/*! For license information please see main.8c494d0f.js.LICENSE.txt */
(()=>{var __webpack_modules__={39632:function(e,t){(function(){var n=!1,r=function(e){return e instanceof r?e:this instanceof r?void(this.EXIFwrapped=e):new r(e)};e.exports&&(t=e.exports=r),t.EXIF=r;var i=r.Tags={36864:"ExifVersion",40960:"FlashpixVersion",40961:"ColorSpace",40962:"PixelXDimension",40963:"PixelYDimension",37121:"ComponentsConfiguration",37122:"CompressedBitsPerPixel",37500:"MakerNote",37510:"UserComment",40964:"RelatedSoundFile",36867:"DateTimeOriginal",36868:"DateTimeDigitized",37520:"SubsecTime",37521:"SubsecTimeOriginal",37522:"SubsecTimeDigitized",33434:"ExposureTime",33437:"FNumber",34850:"ExposureProgram",34852:"SpectralSensitivity",34855:"ISOSpeedRatings",34856:"OECF",37377:"ShutterSpeedValue",37378:"ApertureValue",37379:"BrightnessValue",37380:"ExposureBias",37381:"MaxApertureValue",37382:"SubjectDistance",37383:"MeteringMode",37384:"LightSource",37385:"Flash",37396:"SubjectArea",37386:"FocalLength",41483:"FlashEnergy",41484:"SpatialFrequencyResponse",41486:"FocalPlaneXResolution",41487:"FocalPlaneYResolution",41488:"FocalPlaneResolutionUnit",41492:"SubjectLocation",41493:"ExposureIndex",41495:"SensingMethod",41728:"FileSource",41729:"SceneType",41730:"CFAPattern",41985:"CustomRendered",41986:"ExposureMode",41987:"WhiteBalance",41988:"DigitalZoomRation",41989:"FocalLengthIn35mmFilm",41990:"SceneCaptureType",41991:"GainControl",41992:"Contrast",41993:"Saturation",41994:"Sharpness",41995:"DeviceSettingDescription",41996:"SubjectDistanceRange",40965:"InteroperabilityIFDPointer",42016:"ImageUniqueID"},o=r.TiffTags={256:"ImageWidth",257:"ImageHeight",34665:"ExifIFDPointer",34853:"GPSInfoIFDPointer",40965:"InteroperabilityIFDPointer",258:"BitsPerSample",259:"Compression",262:"PhotometricInterpretation",274:"Orientation",277:"SamplesPerPixel",284:"PlanarConfiguration",530:"YCbCrSubSampling",531:"YCbCrPositioning",282:"XResolution",283:"YResolution",296:"ResolutionUnit",273:"StripOffsets",278:"RowsPerStrip",279:"StripByteCounts",513:"JPEGInterchangeFormat",514:"JPEGInterchangeFormatLength",301:"TransferFunction",318:"WhitePoint",319:"PrimaryChromaticities",529:"YCbCrCoefficients",532:"ReferenceBlackWhite",306:"DateTime",270:"ImageDescription",271:"Make",272:"Model",305:"Software",315:"Artist",33432:"Copyright"},s=r.GPSTags={0:"GPSVersionID",1:"GPSLatitudeRef",2:"GPSLatitude",3:"GPSLongitudeRef",4:"GPSLongitude",5:"GPSAltitudeRef",6:"GPSAltitude",7:"GPSTimeStamp",8:"GPSSatellites",9:"GPSStatus",10:"GPSMeasureMode",11:"GPSDOP",12:"GPSSpeedRef",13:"GPSSpeed",14:"GPSTrackRef",15:"GPSTrack",16:"GPSImgDirectionRef",17:"GPSImgDirection",18:"GPSMapDatum",19:"GPSDestLatitudeRef",20:"GPSDestLatitude",21:"GPSDestLongitudeRef",22:"GPSDestLongitude",23:"GPSDestBearingRef",24:"GPSDestBearing",25:"GPSDestDistanceRef",26:"GPSDestDistance",27:"GPSProcessingMethod",28:"GPSAreaInformation",29:"GPSDateStamp",30:"GPSDifferential"},a=r.IFD1Tags={256:"ImageWidth",257:"ImageHeight",258:"BitsPerSample",259:"Compression",262:"PhotometricInterpretation",273:"StripOffsets",274:"Orientation",277:"SamplesPerPixel",278:"RowsPerStrip",279:"StripByteCounts",282:"XResolution",283:"YResolution",284:"PlanarConfiguration",296:"ResolutionUnit",513:"JpegIFOffset",514:"JpegIFByteCount",529:"YCbCrCoefficients",530:"YCbCrSubSampling",531:"YCbCrPositioning",532:"ReferenceBlackWhite"},l=r.StringValues={ExposureProgram:{0:"Not defined",1:"Manual",2:"Normal program",3:"Aperture priority",4:"Shutter priority",5:"Creative program",6:"Action program",7:"Portrait mode",8:"Landscape mode"},MeteringMode:{0:"Unknown",1:"Average",2:"CenterWeightedAverage",3:"Spot",4:"MultiSpot",5:"Pattern",6:"Partial",255:"Other"},LightSource:{0:"Unknown",1:"Daylight",2:"Fluorescent",3:"Tungsten (incandescent light)",4:"Flash",9:"Fine weather",10:"Cloudy weather",11:"Shade",12:"Daylight fluorescent (D 5700 - 7100K)",13:"Day white fluorescent (N 4600 - 5400K)",14:"Cool white fluorescent (W 3900 - 4500K)",15:"White fluorescent (WW 3200 - 3700K)",17:"Standard light A",18:"Standard light B",19:"Standard light C",20:"D55",21:"D65",22:"D75",23:"D50",24:"ISO studio tungsten",255:"Other"},Flash:{0:"Flash did not fire",1:"Flash fired",5:"Strobe return light not detected",7:"Strobe return light detected",9:"Flash fired, compulsory flash mode",13:"Flash fired, compulsory flash mode, return light not detected",15:"Flash fired, compulsory flash mode, return light detected",16:"Flash did not fire, compulsory flash mode",24:"Flash did not fire, auto mode",25:"Flash fired, auto mode",29:"Flash fired, auto mode, return light not detected",31:"Flash fired, auto mode, return light detected",32:"No flash function",65:"Flash fired, red-eye reduction mode",69:"Flash fired, red-eye reduction mode, return light not detected",71:"Flash fired, red-eye reduction mode, return light detected",73:"Flash fired, compulsory flash mode, red-eye reduction mode",77:"Flash fired, compulsory flash mode, red-eye reduction mode, return light not detected",79:"Flash fired, compulsory flash mode, red-eye reduction mode, return light detected",89:"Flash fired, auto mode, red-eye reduction mode",93:"Flash fired, auto mode, return light not detected, red-eye reduction mode",95:"Flash fired, auto mode, return light detected, red-eye reduction mode"},SensingMethod:{1:"Not defined",2:"One-chip color area sensor",3:"Two-chip color area sensor",4:"Three-chip color area sensor",5:"Color sequential area sensor",7:"Trilinear sensor",8:"Color sequential linear sensor"},SceneCaptureType:{0:"Standard",1:"Landscape",2:"Portrait",3:"Night scene"},SceneType:{1:"Directly photographed"},CustomRendered:{0:"Normal process",1:"Custom process"},WhiteBalance:{0:"Auto white balance",1:"Manual white balance"},GainControl:{0:"None",1:"Low gain up",2:"High gain up",3:"Low gain down",4:"High gain down"},Contrast:{0:"Normal",1:"Soft",2:"Hard"},Saturation:{0:"Normal",1:"Low saturation",2:"High saturation"},Sharpness:{0:"Normal",1:"Soft",2:"Hard"},SubjectDistanceRange:{0:"Unknown",1:"Macro",2:"Close view",3:"Distant view"},FileSource:{3:"DSC"},Components:{0:"",1:"Y",2:"Cb",3:"Cr",4:"R",5:"G",6:"B"}};function c(e){return!!e.exifdata}function u(e,t){function i(i){try{var o=d(i);e.exifdata=o||{};var s=function(e){var t=new DataView(e);n&&console.log("Got file of length "+e.byteLength);if(255!=t.getUint8(0)||216!=t.getUint8(1))return n&&console.log("Not a valid JPEG"),!1;var r=2,i=e.byteLength,o=function(e,t){return 56===e.getUint8(t)&&66===e.getUint8(t+1)&&73===e.getUint8(t+2)&&77===e.getUint8(t+3)&&4===e.getUint8(t+4)&&4===e.getUint8(t+5)};for(;r<i;){if(o(t,r)){var s=t.getUint8(r+7);return s%2!==0&&(s+=1),0===s&&(s=4),p(e,r+8+s,t.getUint16(r+6+s))}r++}}(i);if(e.iptcdata=s||{},r.isXmpEnabled){var a=function(e){if(!("DOMParser"in this))return;var t=new DataView(e);n&&console.log("Got file of length "+e.byteLength);if(255!=t.getUint8(0)||216!=t.getUint8(1))return n&&console.log("Not a valid JPEG"),!1;var r=2,i=e.byteLength,o=new DOMParser;for(;r<i-4;){if("http"==m(t,r,4)){var s=r-1,a=t.getUint16(r-2)-1,l=m(t,s,a),c=l.indexOf("xmpmeta>")+8,u=(l=l.substring(l.indexOf("<x:xmpmeta"),c)).indexOf("x:xmpmeta")+10;return l=l.slice(0,u)+'xmlns:Iptc4xmpCore="http://iptc.org/std/Iptc4xmpCore/1.0/xmlns/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:tiff="http://ns.adobe.com/tiff/1.0/" xmlns:plus="http://schemas.android.com/apk/lib/com.google.android.gms.plus" xmlns:ext="http://www.gettyimages.com/xsltExtension/1.0" xmlns:exif="http://ns.adobe.com/exif/1.0/" xmlns:stEvt="http://ns.adobe.com/xap/1.0/sType/ResourceEvent#" xmlns:stRef="http://ns.adobe.com/xap/1.0/sType/ResourceRef#" xmlns:crs="http://ns.adobe.com/camera-raw-settings/1.0/" xmlns:xapGImg="http://ns.adobe.com/xap/1.0/g/img/" xmlns:Iptc4xmpExt="http://iptc.org/std/Iptc4xmpExt/2008-02-29/" '+l.slice(u),_(o.parseFromString(l,"text/xml"))}r++}}(i);e.xmpdata=a||{}}}catch(l){console.log(l)}t&&t.call(e)}if(e.src)if(/^data\:/i.test(e.src))i(function(e,t){t=t||e.match(/^data\:([^\;]+)\;base64,/im)[1]||"",e=e.replace(/^data\:([^\;]+)\;base64,/gim,"");for(var n=atob(e),r=n.length,i=new ArrayBuffer(r),o=new Uint8Array(i),s=0;s<r;s++)o[s]=n.charCodeAt(s);return i}(e.src));else if(/^blob\:/i.test(e.src)){(s=new FileReader).onload=function(e){i(e.target.result)},function(e,t){var n=new XMLHttpRequest;n.open("GET",e,!0),n.responseType="blob",n.onload=function(e){200!=this.status&&0!==this.status||t(this.response)},n.send()}(e.src,(function(e){s.readAsArrayBuffer(e)}))}else{var o=new XMLHttpRequest;o.onload=function(){if(200!=this.status&&0!==this.status)throw"Could not load image";i(o.response),o=null},o.open("GET",e.src,!0),o.responseType="arraybuffer",o.send(null)}else if(this.FileReader&&(e instanceof this.Blob||e instanceof this.File)){var s;(s=new FileReader).onload=function(e){n&&console.log("Got file of length "+e.target.result.byteLength),i(e.target.result)},s.readAsArrayBuffer(e)}}function d(e){var t=new DataView(e);if(n&&console.log("Got file of length "+e.byteLength),255!=t.getUint8(0)||216!=t.getUint8(1))return n&&console.log("Not a valid JPEG"),!1;for(var r,i=2,o=e.byteLength;i<o;){if(255!=t.getUint8(i))return n&&console.log("Not a valid marker at offset "+i+", found: "+t.getUint8(i)),!1;if(r=t.getUint8(i+1),n&&console.log(r),225==r)return n&&console.log("Found 0xFFE1 marker"),y(t,i+4,t.getUint16(i+2));i+=2+t.getUint16(i+2)}}var h={120:"caption",110:"credit",25:"keywords",55:"dateCreated",80:"byline",85:"bylineTitle",122:"captionWriter",105:"headline",116:"copyright",15:"category"};function p(e,t,n){for(var r,i,o,s,a=new DataView(e),l={},c=t;c<t+n;)28===a.getUint8(c)&&2===a.getUint8(c+1)&&(s=a.getUint8(c+2))in h&&((o=a.getInt16(c+3))+5,i=h[s],r=m(a,c+5,o),l.hasOwnProperty(i)?l[i]instanceof Array?l[i].push(r):l[i]=[l[i],r]:l[i]=r),c++;return l}function f(e,t,r,i,o){var s,a,l,c=e.getUint16(r,!o),u={};for(l=0;l<c;l++)s=r+12*l+2,!(a=i[e.getUint16(s,!o)])&&n&&console.log("Unknown tag: "+e.getUint16(s,!o)),u[a]=g(e,s,t,r,o);return u}function g(e,t,n,r,i){var o,s,a,l,c,u=e.getUint16(t+2,!i),d=e.getUint32(t+4,!i),h=e.getUint32(t+8,!i)+n;switch(u){case 1:case 7:if(1==d)return e.getUint8(t+8,!i);o=d>4?h:t+8,s=[];for(let t=0;t<d;t++)s[t]=e.getUint8(o+t);return s;case 2:return m(e,o=d>4?h:t+8,d-1);case 3:if(1==d)return e.getUint16(t+8,!i);o=d>2?h:t+8,s=[];for(let t=0;t<d;t++)s[t]=e.getUint16(o+2*t,!i);return s;case 4:if(1==d)return e.getUint32(t+8,!i);s=[];for(let t=0;t<d;t++)s[t]=e.getUint32(h+4*t,!i);return s;case 5:if(1==d)return l=e.getUint32(h,!i),c=e.getUint32(h+4,!i),(a=new Number(l/c)).numerator=l,a.denominator=c,a;s=[];for(let t=0;t<d;t++)l=e.getUint32(h+8*t,!i),c=e.getUint32(h+4+8*t,!i),s[t]=new Number(l/c),s[t].numerator=l,s[t].denominator=c;return s;case 9:if(1==d)return e.getInt32(t+8,!i);s=[];for(let t=0;t<d;t++)s[t]=e.getInt32(h+4*t,!i);return s;case 10:if(1==d)return e.getInt32(h,!i)/e.getInt32(h+4,!i);s=[];for(let t=0;t<d;t++)s[t]=e.getInt32(h+8*t,!i)/e.getInt32(h+4+8*t,!i);return s}}function m(e,t,n){var r="";for(let i=t;i<t+n;i++)r+=String.fromCharCode(e.getUint8(i));return r}function y(e,t){if("Exif"!=m(e,t,4))return n&&console.log("Not valid EXIF data! "+m(e,t,4)),!1;var r,c,u,d,h,p=t+6;if(18761==e.getUint16(p))r=!1;else{if(19789!=e.getUint16(p))return n&&console.log("Not valid TIFF data! (no 0x4949 or 0x4D4D)"),!1;r=!0}if(42!=e.getUint16(p+2,!r))return n&&console.log("Not valid TIFF data! (no 0x002A)"),!1;var g=e.getUint32(p+4,!r);if(g<8)return n&&console.log("Not valid TIFF data! (First offset less than 8)",e.getUint32(p+4,!r)),!1;if((c=f(e,p,p+g,o,r)).ExifIFDPointer)for(u in d=f(e,p,p+c.ExifIFDPointer,i,r)){switch(u){case"LightSource":case"Flash":case"MeteringMode":case"ExposureProgram":case"SensingMethod":case"SceneCaptureType":case"SceneType":case"CustomRendered":case"WhiteBalance":case"GainControl":case"Contrast":case"Saturation":case"Sharpness":case"SubjectDistanceRange":case"FileSource":d[u]=l[u][d[u]];break;case"ExifVersion":case"FlashpixVersion":d[u]=String.fromCharCode(d[u][0],d[u][1],d[u][2],d[u][3]);break;case"ComponentsConfiguration":d[u]=l.Components[d[u][0]]+l.Components[d[u][1]]+l.Components[d[u][2]]+l.Components[d[u][3]]}c[u]=d[u]}if(c.GPSInfoIFDPointer)for(u in h=f(e,p,p+c.GPSInfoIFDPointer,s,r)){if("GPSVersionID"===u)h[u]=h[u][0]+"."+h[u][1]+"."+h[u][2]+"."+h[u][3];c[u]=h[u]}return c.thumbnail=function(e,t,n,r){var i=function(e,t,n){var r=e.getUint16(t,!n);return e.getUint32(t+2+12*r,!n)}(e,t+n,r);if(!i)return{};if(i>e.byteLength)return{};var o=f(e,t,t+i,a,r);if(o.Compression)switch(o.Compression){case 6:if(o.JpegIFOffset&&o.JpegIFByteCount){var s=t+o.JpegIFOffset,l=o.JpegIFByteCount;o.blob=new Blob([new Uint8Array(e.buffer,s,l)],{type:"image/jpeg"})}break;case 1:console.log("Thumbnail image format is TIFF, which is not implemented.");break;default:console.log("Unknown thumbnail image format '%s'",o.Compression)}else 2==o.PhotometricInterpretation&&console.log("Thumbnail image format is RGB, which is not implemented.");return o}(e,p,g,r),c}function v(e){var t={};if(1==e.nodeType){if(e.attributes.length>0){t["@attributes"]={};for(var n=0;n<e.attributes.length;n++){var r=e.attributes.item(n);t["@attributes"][r.nodeName]=r.nodeValue}}}else if(3==e.nodeType)return e.nodeValue;if(e.hasChildNodes())for(var i=0;i<e.childNodes.length;i++){var o=e.childNodes.item(i),s=o.nodeName;if(null==t[s])t[s]=v(o);else{if(null==t[s].push){var a=t[s];t[s]=[],t[s].push(a)}t[s].push(v(o))}}return t}function _(e){try{var t={};if(e.children.length>0)for(var n=0;n<e.children.length;n++){var r=e.children.item(n),i=r.attributes;for(var o in i){var s=i[o],a=s.nodeName,l=s.nodeValue;void 0!==a&&(t[a]=l)}var c=r.nodeName;if("undefined"==typeof t[c])t[c]=v(r);else{if("undefined"==typeof t[c].push){var u=t[c];t[c]=[],t[c].push(u)}t[c].push(v(r))}}else t=e.textContent;return t}catch(d){console.log(d.message)}}return r.enableXmp=function(){r.isXmpEnabled=!0},r.disableXmp=function(){r.isXmpEnabled=!1},r.getData=function(e,t){return!((this.Image&&e instanceof this.Image||this.HTMLImageElement&&e instanceof this.HTMLImageElement)&&!e.complete)&&(c(e)?t&&t.call(e):u(e,t),!0)},r.getTag=function(e,t){if(c(e))return e.exifdata[t]},r.getIptcTag=function(e,t){if(c(e))return e.iptcdata[t]},r.getAllTags=function(e){if(!c(e))return{};var t,n=e.exifdata,r={};for(t in n)n.hasOwnProperty(t)&&(r[t]=n[t]);return r},r.getAllIptcTags=function(e){if(!c(e))return{};var t,n=e.iptcdata,r={};for(t in n)n.hasOwnProperty(t)&&(r[t]=n[t]);return r},r.pretty=function(e){if(!c(e))return"";var t,n=e.exifdata,r="";for(t in n)n.hasOwnProperty(t)&&("object"==typeof n[t]?n[t]instanceof Number?r+=t+" : "+n[t]+" ["+n[t].numerator+"/"+n[t].denominator+"]\r\n":r+=t+" : ["+n[t].length+" values]\r\n":r+=t+" : "+n[t]+"\r\n");return r},r.readFromBinaryFile=function(e){return d(e)},r}).call(this)},23392:(e,t,n)=>{"use strict";n.d(t,{c:()=>ie});var r=function(){function e(e){var t=this;this._insertTag=function(e){var n;n=0===t.tags.length?t.insertionPoint?t.insertionPoint.nextSibling:t.prepend?t.container.firstChild:t.before:t.tags[t.tags.length-1].nextSibling,t.container.insertBefore(e,n),t.tags.push(e)},this.isSpeedy=void 0===e.speedy||e.speedy,this.tags=[],this.ctr=0,this.nonce=e.nonce,this.key=e.key,this.container=e.container,this.prepend=e.prepend,this.insertionPoint=e.insertionPoint,this.before=null}var t=e.prototype;return t.hydrate=function(e){e.forEach(this._insertTag)},t.insert=function(e){this.ctr%(this.isSpeedy?65e3:1)===0&&this._insertTag(function(e){var t=document.createElement("style");return t.setAttribute("data-emotion",e.key),void 0!==e.nonce&&t.setAttribute("nonce",e.nonce),t.appendChild(document.createTextNode("")),t.setAttribute("data-s",""),t}(this));var t=this.tags[this.tags.length-1];if(this.isSpeedy){var n=function(e){if(e.sheet)return e.sheet;for(var t=0;t<document.styleSheets.length;t++)if(document.styleSheets[t].ownerNode===e)return document.styleSheets[t]}(t);try{n.insertRule(e,n.cssRules.length)}catch(r){0}}else t.appendChild(document.createTextNode(e));this.ctr++},t.flush=function(){this.tags.forEach((function(e){return e.parentNode&&e.parentNode.removeChild(e)})),this.tags=[],this.ctr=0},e}(),i=Math.abs,o=String.fromCharCode,s=Object.assign;function a(e){return e.trim()}function l(e,t,n){return e.replace(t,n)}function c(e,t){return e.indexOf(t)}function u(e,t){return 0|e.charCodeAt(t)}function d(e,t,n){return e.slice(t,n)}function h(e){return e.length}function p(e){return e.length}function f(e,t){return t.push(e),e}var g=1,m=1,y=0,v=0,_=0,b="";function x(e,t,n,r,i,o,s){return{value:e,root:t,parent:n,type:r,props:i,children:o,line:g,column:m,length:s,return:""}}function S(e,t){return s(x("",null,null,"",null,null,0),e,{length:-e.length},t)}function w(){return _=v>0?u(b,--v):0,m--,10===_&&(m=1,g--),_}function E(){return _=v<y?u(b,v++):0,m++,10===_&&(m=1,g++),_}function P(){return u(b,v)}function C(){return v}function A(e,t){return d(b,e,t)}function k(e){switch(e){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function j(e){return g=m=1,y=h(b=e),v=0,[]}function I(e){return b="",e}function G(e){return a(A(v-1,O(91===e?e+2:40===e?e+1:e)))}function T(e){for(;(_=P())&&_<33;)E();return k(e)>2||k(_)>3?"":" "}function M(e,t){for(;--t&&E()&&!(_<48||_>102||_>57&&_<65||_>70&&_<97););return A(e,C()+(t<6&&32==P()&&32==E()))}function O(e){for(;E();)switch(_){case e:return v;case 34:case 39:34!==e&&39!==e&&O(_);break;case 40:41===e&&O(e);break;case 92:E()}return v}function R(e,t){for(;E()&&e+_!==57&&(e+_!==84||47!==P()););return"/*"+A(t,v-1)+"*"+o(47===e?e:E())}function D(e){for(;!k(P());)E();return A(e,v)}var N="-ms-",L="-moz-",V="-webkit-",F="comm",z="rule",B="decl",U="@keyframes";function W(e,t){for(var n="",r=p(e),i=0;i<r;i++)n+=t(e[i],i,e,t)||"";return n}function H(e,t,n,r){switch(e.type){case"@import":case B:return e.return=e.return||e.value;case F:return"";case U:return e.return=e.value+"{"+W(e.children,r)+"}";case z:e.value=e.props.join(",")}return h(n=W(e.children,r))?e.return=e.value+"{"+n+"}":""}function q(e){return I(X("",null,null,null,[""],e=j(e),0,[0],e))}function X(e,t,n,r,i,s,a,d,p){for(var g=0,m=0,y=a,v=0,_=0,b=0,x=1,S=1,A=1,k=0,j="",I=i,O=s,N=r,L=j;S;)switch(b=k,k=E()){case 40:if(108!=b&&58==u(L,y-1)){-1!=c(L+=l(G(k),"&","&\f"),"&\f")&&(A=-1);break}case 34:case 39:case 91:L+=G(k);break;case 9:case 10:case 13:case 32:L+=T(b);break;case 92:L+=M(C()-1,7);continue;case 47:switch(P()){case 42:case 47:f(K(R(E(),C()),t,n),p);break;default:L+="/"}break;case 123*x:d[g++]=h(L)*A;case 125*x:case 59:case 0:switch(k){case 0:case 125:S=0;case 59+m:_>0&&h(L)-y&&f(_>32?Z(L+";",r,n,y-1):Z(l(L," ","")+";",r,n,y-2),p);break;case 59:L+=";";default:if(f(N=Y(L,t,n,g,m,i,d,j,I=[],O=[],y),s),123===k)if(0===m)X(L,t,N,N,I,s,y,d,O);else switch(99===v&&110===u(L,3)?100:v){case 100:case 109:case 115:X(e,N,N,r&&f(Y(e,N,N,0,0,i,d,j,i,I=[],y),O),i,O,y,d,r?I:O);break;default:X(L,N,N,N,[""],O,0,d,O)}}g=m=_=0,x=A=1,j=L="",y=a;break;case 58:y=1+h(L),_=b;default:if(x<1)if(123==k)--x;else if(125==k&&0==x++&&125==w())continue;switch(L+=o(k),k*x){case 38:A=m>0?1:(L+="\f",-1);break;case 44:d[g++]=(h(L)-1)*A,A=1;break;case 64:45===P()&&(L+=G(E())),v=P(),m=y=h(j=L+=D(C())),k++;break;case 45:45===b&&2==h(L)&&(x=0)}}return s}function Y(e,t,n,r,o,s,c,u,h,f,g){for(var m=o-1,y=0===o?s:[""],v=p(y),_=0,b=0,S=0;_<r;++_)for(var w=0,E=d(e,m+1,m=i(b=c[_])),P=e;w<v;++w)(P=a(b>0?y[w]+" "+E:l(E,/&\f/g,y[w])))&&(h[S++]=P);return x(e,t,n,0===o?z:u,h,f,g)}function K(e,t,n){return x(e,t,n,F,o(_),d(e,2,-2),0)}function Z(e,t,n,r){return x(e,t,n,B,d(e,0,r),d(e,r+1,-1),r)}var $=function(e,t,n){for(var r=0,i=0;r=i,i=P(),38===r&&12===i&&(t[n]=1),!k(i);)E();return A(e,v)},J=function(e,t){return I(function(e,t){var n=-1,r=44;do{switch(k(r)){case 0:38===r&&12===P()&&(t[n]=1),e[n]+=$(v-1,t,n);break;case 2:e[n]+=G(r);break;case 4:if(44===r){e[++n]=58===P()?"&\f":"",t[n]=e[n].length;break}default:e[n]+=o(r)}}while(r=E());return e}(j(e),t))},Q=new WeakMap,ee=function(e){if("rule"===e.type&&e.parent&&!(e.length<1)){for(var t=e.value,n=e.parent,r=e.column===n.column&&e.line===n.line;"rule"!==n.type;)if(!(n=n.parent))return;if((1!==e.props.length||58===t.charCodeAt(0)||Q.get(n))&&!r){Q.set(e,!0);for(var i=[],o=J(t,i),s=n.props,a=0,l=0;a<o.length;a++)for(var c=0;c<s.length;c++,l++)e.props[l]=i[a]?o[a].replace(/&\f/g,s[c]):s[c]+" "+o[a]}}},te=function(e){if("decl"===e.type){var t=e.value;108===t.charCodeAt(0)&&98===t.charCodeAt(2)&&(e.return="",e.value="")}};function ne(e,t){switch(function(e,t){return 45^u(e,0)?(((t<<2^u(e,0))<<2^u(e,1))<<2^u(e,2))<<2^u(e,3):0}(e,t)){case 5103:return V+"print-"+e+e;case 5737:case 4201:case 3177:case 3433:case 1641:case 4457:case 2921:case 5572:case 6356:case 5844:case 3191:case 6645:case 3005:case 6391:case 5879:case 5623:case 6135:case 4599:case 4855:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:return V+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return V+e+L+e+N+e+e;case 6828:case 4268:return V+e+N+e+e;case 6165:return V+e+N+"flex-"+e+e;case 5187:return V+e+l(e,/(\w+).+(:[^]+)/,V+"box-$1$2"+N+"flex-$1$2")+e;case 5443:return V+e+N+"flex-item-"+l(e,/flex-|-self/,"")+e;case 4675:return V+e+N+"flex-line-pack"+l(e,/align-content|flex-|-self/,"")+e;case 5548:return V+e+N+l(e,"shrink","negative")+e;case 5292:return V+e+N+l(e,"basis","preferred-size")+e;case 6060:return V+"box-"+l(e,"-grow","")+V+e+N+l(e,"grow","positive")+e;case 4554:return V+l(e,/([^-])(transform)/g,"$1"+V+"$2")+e;case 6187:return l(l(l(e,/(zoom-|grab)/,V+"$1"),/(image-set)/,V+"$1"),e,"")+e;case 5495:case 3959:return l(e,/(image-set\([^]*)/,V+"$1$`$1");case 4968:return l(l(e,/(.+:)(flex-)?(.*)/,V+"box-pack:$3"+N+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+V+e+e;case 4095:case 3583:case 4068:case 2532:return l(e,/(.+)-inline(.+)/,V+"$1$2")+e;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if(h(e)-1-t>6)switch(u(e,t+1)){case 109:if(45!==u(e,t+4))break;case 102:return l(e,/(.+:)(.+)-([^]+)/,"$1"+V+"$2-$3$1"+L+(108==u(e,t+3)?"$3":"$2-$3"))+e;case 115:return~c(e,"stretch")?ne(l(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(115!==u(e,t+1))break;case 6444:switch(u(e,h(e)-3-(~c(e,"!important")&&10))){case 107:return l(e,":",":"+V)+e;case 101:return l(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+V+(45===u(e,14)?"inline-":"")+"box$3$1"+V+"$2$3$1"+N+"$2box$3")+e}break;case 5936:switch(u(e,t+11)){case 114:return V+e+N+l(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return V+e+N+l(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return V+e+N+l(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return V+e+N+e+e}return e}var re=[function(e,t,n,r){if(e.length>-1&&!e.return)switch(e.type){case B:e.return=ne(e.value,e.length);break;case U:return W([S(e,{value:l(e.value,"@","@"+V)})],r);case z:if(e.length)return function(e,t){return e.map(t).join("")}(e.props,(function(t){switch(function(e,t){return(e=t.exec(e))?e[0]:e}(t,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return W([S(e,{props:[l(t,/:(read-\w+)/,":-moz-$1")]})],r);case"::placeholder":return W([S(e,{props:[l(t,/:(plac\w+)/,":"+V+"input-$1")]}),S(e,{props:[l(t,/:(plac\w+)/,":-moz-$1")]}),S(e,{props:[l(t,/:(plac\w+)/,N+"input-$1")]})],r)}return""}))}}];const ie=function(e){var t=e.key;if("css"===t){var n=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(n,(function(e){-1!==e.getAttribute("data-emotion").indexOf(" ")&&(document.head.appendChild(e),e.setAttribute("data-s",""))}))}var i=e.stylisPlugins||re;var o,s,a={},l=[];o=e.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+t+' "]'),(function(e){for(var t=e.getAttribute("data-emotion").split(" "),n=1;n<t.length;n++)a[t[n]]=!0;l.push(e)}));var c,u,d=[H,(u=function(e){c.insert(e)},function(e){e.root||(e=e.return)&&u(e)})],h=function(e){var t=p(e);return function(n,r,i,o){for(var s="",a=0;a<t;a++)s+=e[a](n,r,i,o)||"";return s}}([ee,te].concat(i,d));s=function(e,t,n,r){c=n,W(q(e?e+"{"+t.styles+"}":t.styles),h),r&&(f.inserted[t.name]=!0)};var f={key:t,sheet:new r({key:t,container:o,nonce:e.nonce,speedy:e.speedy,prepend:e.prepend,insertionPoint:e.insertionPoint}),nonce:e.nonce,inserted:a,registered:{},insert:s};return f.sheet.hydrate(l),f}},31628:(e,t,n)=>{"use strict";n.d(t,{c:()=>r});const r=function(e){var t=Object.create(null);return function(n){return void 0===t[n]&&(t[n]=e(n)),t[n]}}},74079:(e,t,n)=>{"use strict";n.d(t,{E:()=>m,T:()=>h,_:()=>u,c:()=>f,h:()=>l,w:()=>d});var r=n(99584),i=n(23392),o=n(64440),s=n(7700),a=n(27820),l={}.hasOwnProperty,c=(0,r.createContext)("undefined"!==typeof HTMLElement?(0,i.c)({key:"css"}):null);c.Provider;var u=function(){return(0,r.useContext)(c)},d=function(e){return(0,r.forwardRef)((function(t,n){var i=(0,r.useContext)(c);return e(t,i,n)}))},h=(0,r.createContext)({});var p="__EMOTION_TYPE_PLEASE_DO_NOT_USE__",f=function(e,t){var n={};for(var r in t)l.call(t,r)&&(n[r]=t[r]);return n[p]=e,n},g=function(e){var t=e.cache,n=e.serialized,r=e.isStringTag;(0,o.Up)(t,n,r);(0,a.A)((function(){return(0,o.aE)(t,n,r)}));return null},m=d((function(e,t,n){var i=e.css;"string"===typeof i&&void 0!==t.registered[i]&&(i=t.registered[i]);var a=e[p],c=[i],u="";"string"===typeof e.className?u=(0,o.yI)(t.registered,c,e.className):null!=e.className&&(u=e.className+" ");var d=(0,s.k)(c,void 0,(0,r.useContext)(h));u+=t.key+"-"+d.name;var f={};for(var m in e)l.call(e,m)&&"css"!==m&&m!==p&&(f[m]=e[m]);return f.ref=n,f.className=u,(0,r.createElement)(r.Fragment,null,(0,r.createElement)(g,{cache:t,serialized:d,isStringTag:"string"===typeof a}),(0,r.createElement)(a,f))}))},7700:(e,t,n)=>{"use strict";n.d(t,{k:()=>g});const r=function(e){for(var t,n=0,r=0,i=e.length;i>=4;++r,i-=4)t=1540483477*(65535&(t=255&e.charCodeAt(r)|(255&e.charCodeAt(++r))<<8|(255&e.charCodeAt(++r))<<16|(255&e.charCodeAt(++r))<<24))+(59797*(t>>>16)<<16),n=1540483477*(65535&(t^=t>>>24))+(59797*(t>>>16)<<16)^1540483477*(65535&n)+(59797*(n>>>16)<<16);switch(i){case 3:n^=(255&e.charCodeAt(r+2))<<16;case 2:n^=(255&e.charCodeAt(r+1))<<8;case 1:n=1540483477*(65535&(n^=255&e.charCodeAt(r)))+(59797*(n>>>16)<<16)}return(((n=1540483477*(65535&(n^=n>>>13))+(59797*(n>>>16)<<16))^n>>>15)>>>0).toString(36)};const i={animationIterationCount:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1};var o=n(31628),s=/[A-Z]|^ms/g,a=/_EMO_([^_]+?)_([^]*?)_EMO_/g,l=function(e){return 45===e.charCodeAt(1)},c=function(e){return null!=e&&"boolean"!==typeof e},u=(0,o.c)((function(e){return l(e)?e:e.replace(s,"-$&").toLowerCase()})),d=function(e,t){switch(e){case"animation":case"animationName":if("string"===typeof t)return t.replace(a,(function(e,t,n){return p={name:t,styles:n,next:p},t}))}return 1===i[e]||l(e)||"number"!==typeof t||0===t?t:t+"px"};function h(e,t,n){if(null==n)return"";if(void 0!==n.__emotion_styles)return n;switch(typeof n){case"boolean":return"";case"object":if(1===n.anim)return p={name:n.name,styles:n.styles,next:p},n.name;if(void 0!==n.styles){var r=n.next;if(void 0!==r)for(;void 0!==r;)p={name:r.name,styles:r.styles,next:p},r=r.next;return n.styles+";"}return function(e,t,n){var r="";if(Array.isArray(n))for(var i=0;i<n.length;i++)r+=h(e,t,n[i])+";";else for(var o in n){var s=n[o];if("object"!==typeof s)null!=t&&void 0!==t[s]?r+=o+"{"+t[s]+"}":c(s)&&(r+=u(o)+":"+d(o,s)+";");else if(!Array.isArray(s)||"string"!==typeof s[0]||null!=t&&void 0!==t[s[0]]){var a=h(e,t,s);switch(o){case"animation":case"animationName":r+=u(o)+":"+a+";";break;default:r+=o+"{"+a+"}"}}else for(var l=0;l<s.length;l++)c(s[l])&&(r+=u(o)+":"+d(o,s[l])+";")}return r}(e,t,n);case"function":if(void 0!==e){var i=p,o=n(e);return p=i,h(e,t,o)}}if(null==t)return n;var s=t[n];return void 0!==s?s:n}var p,f=/label:\s*([^\s;\n{]+)\s*(;|$)/g;var g=function(e,t,n){if(1===e.length&&"object"===typeof e[0]&&null!==e[0]&&void 0!==e[0].styles)return e[0];var i=!0,o="";p=void 0;var s=e[0];null==s||void 0===s.raw?(i=!1,o+=h(n,t,s)):o+=s[0];for(var a=1;a<e.length;a++)o+=h(n,t,e[a]),i&&(o+=s[a]);f.lastIndex=0;for(var l,c="";null!==(l=f.exec(o));)c+="-"+l[1];return{name:r(o)+c,styles:o,next:p}}},27820:(e,t,n)=>{"use strict";var r;n.d(t,{A:()=>s,k:()=>a});var i=n(99584),o=!!(r||(r=n.t(i,2))).useInsertionEffect&&(r||(r=n.t(i,2))).useInsertionEffect,s=o||function(e){return e()},a=o||i.useLayoutEffect},64440:(e,t,n)=>{"use strict";n.d(t,{Up:()=>i,aE:()=>o,yI:()=>r});function r(e,t,n){var r="";return n.split(" ").forEach((function(n){void 0!==e[n]?t.push(e[n]+";"):r+=n+" "})),r}var i=function(e,t,n){var r=e.key+"-"+t.name;!1===n&&void 0===e.registered[r]&&(e.registered[r]=t.styles)},o=function(e,t,n){i(e,t,n);var r=e.key+"-"+t.name;if(void 0===e.inserted[t.name]){var o=t;do{e.insert(t===o?"."+r:"",o,e.sheet,!0);o=o.next}while(void 0!==o)}}},85596:(e,t,n)=>{"use strict";var r=n(22411);t.c=void 0;var i=r(n(2124)),o=n(97884),s=(0,i.default)([(0,o.jsx)("path",{d:"M11.99 2C6.47 2 2 6.48 2 12s4.47 10 9.99 10C17.52 22 22 17.52 22 12S17.52 2 11.99 2zM12 20c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8z"},"0"),(0,o.jsx)("path",{d:"M12.5 7H11v6l5.25 3.15.75-1.23-4.5-2.67z"},"1")],"AccessTime");t.c=s},50780:(e,t,n)=>{"use strict";var r=n(22411);t.c=void 0;var i=r(n(2124)),o=n(97884),s=(0,i.default)((0,o.jsx)("path",{d:"M13 7h-2v4H7v2h4v4h2v-4h4v-2h-4V7zm-1-5C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm0 18c-4.41 0-8-3.59-8-8s3.59-8 8-8 8 3.59 8 8-3.59 8-8 8z"}),"AddCircleOutline");t.c=s},84804:(e,t,n)=>{"use strict";var r=n(22411);t.c=void 0;var i=r(n(2124)),o=n(97884),s=(0,i.default)([(0,o.jsx)("path",{d:"M17 11c.34 0 .67.04 1 .09V6.27L10.5 3 3 6.27v4.91c0 4.54 3.2 8.79 7.5 9.82.55-.13 1.08-.32 1.6-.55-.69-.98-1.1-2.17-1.1-3.45 0-3.31 2.69-6 6-6z"},"0"),(0,o.jsx)("path",{d:"M17 13c-2.21 0-4 1.79-4 4s1.79 4 4 4 4-1.79 4-4-1.79-4-4-4zm0 1.38c.62 0 1.12.51 1.12 1.12s-.51 1.12-1.12 1.12-1.12-.51-1.12-1.12.5-1.12 1.12-1.12zm0 5.37c-.93 0-1.74-.46-2.24-1.17.05-.72 1.51-1.08 2.24-1.08s2.19.36 2.24 1.08c-.5.71-1.31 1.17-2.24 1.17z"},"1")],"AdminPanelSettings");t.c=s},35488:(e,t,n)=>{"use strict";var r=n(22411);t.c=void 0;var i=r(n(2124)),o=n(97884),s=(0,i.default)((0,o.jsx)("path",{d:"M14.5 17c0 1.65-1.35 3-3 3s-3-1.35-3-3h2c0 .55.45 1 1 1s1-.45 1-1-.45-1-1-1H2v-2h9.5c1.65 0 3 1.35 3 3zM19 6.5C19 4.57 17.43 3 15.5 3S12 4.57 12 6.5h2c0-.83.67-1.5 1.5-1.5s1.5.67 1.5 1.5S16.33 8 15.5 8H2v2h13.5c1.93 0 3.5-1.57 3.5-3.5zm-.5 4.5H2v2h16.5c.83 0 1.5.67 1.5 1.5s-.67 1.5-1.5 1.5v2c1.93 0 3.5-1.57 3.5-3.5S20.43 11 18.5 11z"}),"Air");t.c=s},68963:(e,t,n)=>{"use strict";var r=n(22411);t.c=void 0;var i=r(n(2124)),o=n(97884),s=(0,i.default)((0,o.jsx)("path",{d:"M4 16v6h16v-6c0-1.1-.9-2-2-2H6c-1.1 0-2 .9-2 2zm14 2H6v-2h12v2zM12 2C9.24 2 7 4.24 7 7l5 7 5-7c0-2.76-2.24-5-5-5zm0 9L9 7c0-1.66 1.34-3 3-3s3 1.34 3 3l-3 4z"}),"Approval");t.c=s},81504:(e,t,n)=>{"use strict";var r=n(22411);t.c=void 0;var i=r(n(2124)),o=n(97884),s=(0,i.default)((0,o.jsx)("path",{d:"M6.36 18.78 6.61 21l1.62-1.54 2.77-7.6c-.68-.17-1.28-.51-1.77-.98l-2.87 7.9zm8.41-7.9c-.49.47-1.1.81-1.77.98l2.77 7.6L17.39 21l.26-2.22-2.88-7.9zM15 8c0-1.3-.84-2.4-2-2.82V3h-2v2.18C9.84 5.6 9 6.7 9 8c0 1.66 1.34 3 3 3s3-1.34 3-3zm-3 1c-.55 0-1-.45-1-1s.45-1 1-1 1 .45 1 1-.45 1-1 1z"}),"Architecture");t.c=s},35696:(e,t,n)=>{"use strict";var r=n(22411);t.c=void 0;var i=r(n(2124)),o=n(97884),s=(0,i.default)((0,o.jsx)("path",{d:"M20 11H7.83l5.59-5.59L12 4l-8 8 8 8 1.41-1.41L7.83 13H20v-2z"}),"ArrowBack");t.c=s},54732:(e,t,n)=>{"use strict";var r=n(22411);t.c=void 0;var i=r(n(2124)),o=n(97884),s=(0,i.default)((0,o.jsx)("path",{d:"m20 12-1.41-1.41L13 16.17V4h-2v12.17l-5.58-5.59L4 12l8 8 8-8z"}),"ArrowDownward");t.c=s},79084:(e,t,n)=>{"use strict";var r=n(22411);t.c=void 0;var i=r(n(2124)),o=n(97884),s=(0,i.default)((0,o.jsx)("path",{d:"m12 4-1.41 1.41L16.17 11H4v2h12.17l-5.58 5.59L12 20l8-8z"}),"ArrowForward");t.c=s},6388:(e,t,n)=>{"use strict";var r=n(22411);t.c=void 0;var i=r(n(2124)),o=n(97884),s=(0,i.default)((0,o.jsx)("path",{d:"M6 6v2h8.59L5 17.59 6.41 19 16 9.41V18h2V6z"}),"ArrowOutward");t.c=s},15532:(e,t,n)=>{"use strict";var r=n(22411);t.c=void 0;var i=r(n(2124)),o=n(97884),s=(0,i.default)((0,o.jsx)("path",{d:"M16.01 11H4v2h12.01v3L20 12l-3.99-4z"}),"ArrowRightAlt");t.c=s},44160:(e,t,n)=>{"use strict";var r=n(22411);t.c=void 0;var i=r(n(2124)),o=n(97884),s=(0,i.default)((0,o.jsx)("path",{d:"m4 12 1.41 1.41L11 7.83V20h2V7.83l5.58 5.59L20 12l-8-8-8 8z"}),"ArrowUpward");t.c=s},71512:(e,t,n)=>{"use strict";var r=n(22411);t.c=void 0;var i=r(n(2124)),o=n(97884),s=(0,i.default)((0,o.jsx)("path",{d:"M7.5 5.6 10 7 8.6 4.5 10 2 7.5 3.4 5 2l1.4 2.5L5 7zm12 9.8L17 14l1.4 2.5L17 19l2.5-1.4L22 19l-1.4-2.5L22 14zM22 2l-2.5 1.4L17 2l1.4 2.5L17 7l2.5-1.4L22 7l-1.4-2.5zm-7.63 5.29a.9959.9959 0 0 0-1.41 0L1.29 18.96c-.39.39-.39 1.02 0 1.41l2.34 2.34c.39.39 1.02.39 1.41 0L16.7 11.05c.39-.39.39-1.02 0-1.41l-2.33-2.35zm-1.03 5.49-2.12-2.12 2.44-2.44 2.12 2.12-2.44 2.44z"}),"AutoFixHigh");t.c=s},15812:(e,t,n)=>{"use strict";var r=n(22411);t.c=void 0;var i=r(n(2124)),o=n(97884),s=(0,i.default)((0,o.jsx)("path",{d:"M4 9h4v11H4zm12 4h4v7h-4zm-6-9h4v16h-4z"}),"BarChart");t.c=s},93080:(e,t,n)=>{"use strict";var r=n(22411);t.c=void 0;var i=r(n(2124)),o=n(97884),s=(0,i.default)((0,o.jsx)("path",{d:"M11 21h-1l1-7H7.5c-.58 0-.57-.32-.38-.66.19-.34.05-.08.07-.12C8.48 10.94 10.42 7.54 13 3h1l-1 7h3.5c.49 0 .56.33.47.51l-.07.15C12.96 17.55 11 21 11 21z"}),"Bolt");t.c=s},56840:(e,t,n)=>{"use strict";var r=n(22411);t.c=void 0;var i=r(n(2124)),o=n(97884),s=(0,i.default)((0,o.jsx)("path",{d:"M21 5v6.59l-3-3.01-4 4.01-4-4-4 4-3-3.01V5c0-1.1.9-2 2-2h14c1.1 0 2 .9 2 2zm-3 6.42 3 3.01V19c0 1.1-.9 2-2 2H5c-1.1 0-2-.9-2-2v-6.58l3 2.99 4-4 4 4 4-3.99z"}),"BrokenImage");t.c=s},59568:(e,t,n)=>{"use strict";var r=n(22411);t.c=void 0;var i=r(n(2124)),o=n(97884),s=(0,i.default)([(0,o.jsx)("circle",{cx:"12",cy:"12",r:"3.2"},"0"),(0,o.jsx)("path",{d:"M9 2 7.17 4H4c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2h-3.17L15 2H9zm3 15c-2.76 0-5-2.24-5-5s2.24-5 5-5 5 2.24 5 5-2.24 5-5 5z"},"1")],"CameraAlt");t.c=s},92448:(e,t,n)=>{"use strict";var r=n(22411);t.c=void 0;var i=r(n(2124)),o=n(97884),s=(0,i.default)([(0,o.jsx)("path",{d:"M16 7h-1l-1-1h-4L9 7H8c-1.1 0-2 .9-2 2v6c0 1.1.9 2 2 2h8c1.1 0 2-.9 2-2V9c0-1.1-.9-2-2-2zm-4 7c-1.1 0-2-.9-2-2s.9-2 2-2 2 .9 2 2-.9 2-2 2z"},"0"),(0,o.jsx)("path",{d:"m8.57.51 4.48 4.48V2.04c4.72.47 8.48 4.23 8.95 8.95h2C23.34 3.02 15.49-1.59 8.57.51zm2.38 21.45c-4.72-.47-8.48-4.23-8.95-8.95H0c.66 7.97 8.51 12.58 15.43 10.48l-4.48-4.48v2.95z"},"1")],"Cameraswitch");t.c=s},41360:(e,t,n)=>{"use strict";var r=n(22411);t.c=void 0;var i=r(n(2124)),o=n(97884),s=(0,i.default)((0,o.jsx)("path",{d:"M12 2C6.47 2 2 6.47 2 12s4.47 10 10 10 10-4.47 10-10S17.53 2 12 2zm5 13.59L15.59 17 12 13.41 8.41 17 7 15.59 10.59 12 7 8.41 8.41 7 12 10.59 15.59 7 17 8.41 13.41 12 17 15.59z"}),"Cancel");t.c=s},44060:(e,t,n)=>{"use strict";var r=n(22411);t.c=void 0;var i=r(n(2124)),o=n(97884),s=(0,i.default)((0,o.jsx)("path",{d:"M12 2C6.47 2 2 6.47 2 12s4.47 10 10 10 10-4.47 10-10S17.53 2 12 2zm0 18c-4.41 0-8-3.59-8-8s3.59-8 8-8 8 3.59 8 8-3.59 8-8 8zm3.59-13L12 10.59 8.41 7 7 8.41 10.59 12 7 15.59 8.41 17 12 13.41 15.59 17 17 15.59 13.41 12 17 8.41z"}),"CancelOutlined");t.c=s},212:(e,t,n)=>{"use strict";var r=n(22411);t.c=void 0;var i=r(n(2124)),o=n(97884),s=(0,i.default)((0,o.jsx)("path",{d:"M12 7.77 18.39 18H5.61L12 7.77M12 4 2 20h20L12 4z"}),"ChangeHistory");t.c=s},98868:(e,t,n)=>{"use strict";var r=n(22411);t.c=void 0;var i=r(n(2124)),o=n(97884),s=(0,i.default)((0,o.jsx)("path",{d:"M9 16.17 4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41z"}),"Check");t.c=s},22912:(e,t,n)=>{"use strict";var r=n(22411);t.c=void 0;var i=r(n(2124)),o=n(97884),s=(0,i.default)((0,o.jsx)("path",{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm-2 15-5-5 1.41-1.41L10 14.17l7.59-7.59L19 8l-9 9z"}),"CheckCircle");t.c=s},86744:(e,t,n)=>{"use strict";var r=n(22411);t.c=void 0;var i=r(n(2124)),o=n(97884),s=(0,i.default)((0,o.jsx)("path",{d:"M16.59 7.58 10 14.17l-3.59-3.58L5 12l5 5 8-8zM12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm0 18c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8z"}),"CheckCircleOutline");t.c=s},42016:(e,t,n)=>{"use strict";var r=n(22411);t.c=void 0;var i=r(n(2124)),o=n(97884),s=(0,i.default)((0,o.jsx)("path",{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zM9.29 16.29 5.7 12.7a.9959.9959 0 0 1 0-1.41c.39-.39 1.02-.39 1.41 0L10 14.17l6.88-6.88c.39-.39 1.02-.39 1.41 0 .39.39.39 1.02 0 1.41l-7.59 7.59c-.38.39-1.02.39-1.41 0z"}),"CheckCircleRounded");t.c=s},27901:(e,t,n)=>{"use strict";var r=n(22411);t.c=void 0;var i=r(n(2124)),o=n(97884),s=(0,i.default)((0,o.jsx)("path",{d:"M15.41 7.41 14 6l-6 6 6 6 1.41-1.41L10.83 12z"}),"ChevronLeft");t.c=s},40580:(e,t,n)=>{"use strict";var r=n(22411);t.c=void 0;var i=r(n(2124)),o=n(97884),s=(0,i.default)((0,o.jsx)("path",{d:"M10 6 8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6z"}),"ChevronRight");t.c=s},9172:(e,t,n)=>{"use strict";var r=n(22411);t.c=void 0;var i=r(n(2124)),o=n(97884),s=(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"}),"Clear");t.c=s},86632:(e,t,n)=>{"use strict";var r=n(22411);t.c=void 0;var i=r(n(2124)),o=n(97884),s=(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");t.c=s},28004:(e,t,n)=>{"use strict";var r=n(22411);t.c=void 0;var i=r(n(2124)),o=n(97884),s=(0,i.default)((0,o.jsx)("path",{d:"M19.35 10.04C18.67 6.59 15.64 4 12 4 9.11 4 6.6 5.64 5.35 8.04 2.34 8.36 0 10.91 0 14c0 3.31 2.69 6 6 6h13c2.76 0 5-2.24 5-5 0-2.64-2.05-4.78-4.65-4.96zM10 17l-3.5-3.5 1.41-1.41L10 14.17 15.18 9l1.41 1.41L10 17z"}),"CloudDone");t.c=s},56824:(e,t,n)=>{"use strict";var r=n(22411);t.c=void 0;var i=r(n(2124)),o=n(97884),s=(0,i.default)((0,o.jsx)("path",{d:"M19.35 10.04C18.67 6.59 15.64 4 12 4 9.11 4 6.6 5.64 5.35 8.04 2.34 8.36 0 10.91 0 14c0 3.31 2.69 6 6 6h13c2.76 0 5-2.24 5-5 0-2.64-2.05-4.78-4.65-4.96zM17 13l-5 5-5-5h3V9h4v4h3z"}),"CloudDownload");t.c=s},55808:(e,t,n)=>{"use strict";var r=n(22411);t.c=void 0;var i=r(n(2124)),o=n(97884),s=(0,i.default)((0,o.jsx)("path",{d:"M19.35 10.04C18.67 6.59 15.64 4 12 4c-1.48 0-2.85.43-4.01 1.17l1.46 1.46C10.21 6.23 11.08 6 12 6c3.04 0 5.5 2.46 5.5 5.5v.5H19c1.66 0 3 1.34 3 3 0 1.13-.64 2.11-1.56 2.62l1.45 1.45C23.16 18.16 24 16.68 24 15c0-2.64-2.05-4.78-4.65-4.96zM3 5.27l2.75 2.74C2.56 8.15 0 10.77 0 14c0 3.31 2.69 6 6 6h11.73l2 2L21 20.73 4.27 4 3 5.27zM7.73 10l8 8H6c-2.21 0-4-1.79-4-4s1.79-4 4-4h1.73z"}),"CloudOff");t.c=s},71608:(e,t,n)=>{"use strict";var r=n(22411);t.c=void 0;var i=r(n(2124)),o=n(97884),s=(0,i.default)((0,o.jsx)("path",{d:"M16 1H4c-1.1 0-2 .9-2 2v14h2V3h12V1zm3 4H8c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h11c1.1 0 2-.9 2-2V7c0-1.1-.9-2-2-2zm0 16H8V7h11v14z"}),"ContentCopy");t.c=s},18344:(e,t,n)=>{"use strict";var r=n(22411);t.c=void 0;var i=r(n(2124)),o=n(97884),s=(0,i.default)((0,o.jsx)("path",{d:"M13 7h-2v4H7v2h4v4h2v-4h4v-2h-4V7zm-1-5C6.49 2 2 6.49 2 12s4.49 10 10 10 10-4.49 10-10S17.51 2 12 2zm0 18c-4.41 0-8-3.59-8-8s3.59-8 8-8 8 3.59 8 8-3.59 8-8 8z"}),"ControlPoint");t.c=s},75164:(e,t,n)=>{"use strict";var r=n(22411);t.c=void 0;var i=r(n(2124)),o=n(97884),s=(0,i.default)((0,o.jsx)("path",{d:"M19 5H5c-1.1 0-2 .9-2 2v10c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V7c0-1.1-.9-2-2-2zm0 12H5V7h14v10z"}),"Crop75");t.c=s},56540:(e,t,n)=>{"use strict";var r=n(22411);t.c=void 0;var i=r(n(2124)),o=n(97884),s=(0,i.default)((0,o.jsx)("path",{d:"M17 3H7c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h10c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm0 16H7V5h10v14z"}),"CropPortrait");t.c=s},54096:(e,t,n)=>{"use strict";var r=n(22411);t.c=void 0;var i=r(n(2124)),o=n(97884),s=(0,i.default)((0,o.jsx)("path",{d:"M6 19c0 1.1.9 2 2 2h8c1.1 0 2-.9 2-2V7H6v12zM19 4h-3.5l-1-1h-5l-1 1H5v2h14V4z"}),"Delete");t.c=s},16016:(e,t,n)=>{"use strict";var r=n(22411);t.c=void 0;var i=r(n(2124)),o=n(97884),s=(0,i.default)((0,o.jsx)("path",{d:"M14.12 10.47 12 12.59l-2.13-2.12-1.41 1.41L10.59 14l-2.12 2.12 1.41 1.41L12 15.41l2.12 2.12 1.41-1.41L13.41 14l2.12-2.12zM15.5 4l-1-1h-5l-1 1H5v2h14V4zM6 19c0 1.1.9 2 2 2h8c1.1 0 2-.9 2-2V7H6v12zM8 9h8v10H8V9z"}),"DeleteForeverOutlined");t.c=s},88136:(e,t,n)=>{"use strict";var r=n(22411);t.c=void 0;var i=r(n(2124)),o=n(97884),s=(0,i.default)((0,o.jsx)("path",{d:"M6 19c0 1.1.9 2 2 2h8c1.1 0 2-.9 2-2V7H6v12zM8 9h8v10H8V9zm7.5-5-1-1h-5l-1 1H5v2h14V4z"}),"DeleteOutline");t.c=s},37048:(e,t,n)=>{"use strict";var r=n(22411);t.c=void 0;var i=r(n(2124)),o=n(97884),s=(0,i.default)((0,o.jsx)("path",{d:"M15 13V5c0-1.66-1.34-3-3-3S9 3.34 9 5v8c-1.21.91-2 2.37-2 4 0 2.76 2.24 5 5 5s5-2.24 5-5c0-1.63-.79-3.09-2-4zm-4-8c0-.55.45-1 1-1s1 .45 1 1h-1v1h1v2h-1v1h1v2h-2V5z"}),"DeviceThermostat");t.c=s},99800:(e,t,n)=>{"use strict";var r=n(22411);t.c=void 0;var i=r(n(2124)),o=n(97884),s=(0,i.default)((0,o.jsx)("path",{d:"M9 16.2 4.8 12l-1.4 1.4L9 19 21 7l-1.4-1.4L9 16.2z"}),"Done");t.c=s},18440:(e,t,n)=>{"use strict";var r=n(22411);t.c=void 0;var i=r(n(2124)),o=n(97884),s=(0,i.default)((0,o.jsx)("path",{d:"M20 9H4v2h16V9zM4 15h16v-2H4v2z"}),"DragHandle");t.c=s},84908:(e,t,n)=>{"use strict";var r=n(22411);t.c=void 0;var i=r(n(2124)),o=n(97884),s=(0,i.default)((0,o.jsx)("path",{d:"M3 17.25V21h3.75L17.81 9.94l-3.75-3.75L3 17.25zM20.71 7.04c.39-.39.39-1.02 0-1.41l-2.34-2.34a.9959.9959 0 0 0-1.41 0l-1.83 1.83 3.75 3.75 1.83-1.83z"}),"Edit");t.c=s},31356:(e,t,n)=>{"use strict";var r=n(22411);t.c=void 0;var i=r(n(2124)),o=n(97884),s=(0,i.default)((0,o.jsx)("path",{d:"M10 20h4V4h-4v16zm-6 0h4v-8H4v8zM16 9v11h4V9h-4z"}),"EqualizerOutlined");t.c=s},42428:(e,t,n)=>{"use strict";var r=n(22411);t.c=void 0;var i=r(n(2124)),o=n(97884),s=(0,i.default)((0,o.jsx)("path",{d:"m12 8-6 6 1.41 1.41L12 10.83l4.59 4.58L18 14z"}),"ExpandLess");t.c=s},46239:(e,t,n)=>{"use strict";var r=n(22411);t.c=void 0;var i=r(n(2124)),o=n(97884),s=(0,i.default)((0,o.jsx)("path",{d:"M16.59 8.59 12 13.17 7.41 8.59 6 10l6 6 6-6z"}),"ExpandMore");t.c=s},30636:(e,t,n)=>{"use strict";var r=n(22411);t.c=void 0;var i=r(n(2124)),o=n(97884),s=(0,i.default)((0,o.jsx)("path",{d:"M22 10v12H2V10l7-3v2l5-2v3h8zm-4.8-1.5L18 2h3l.8 6.5h-4.6zM11 18h2v-4h-2v4zm-4 0h2v-4H7v4zm10-4h-2v4h2v-4z"}),"Factory");t.c=s},59056:(e,t,n)=>{"use strict";var r=n(22411);t.c=void 0;var i=r(n(2124)),o=n(97884),s=(0,i.default)((0,o.jsx)("path",{d:"M20 4H4c-1.11 0-1.99.89-1.99 2L2 18c0 1.11.89 2 2 2h16c1.11 0 2-.89 2-2V6c0-1.11-.89-2-2-2zM8.5 15H7.3l-2.55-3.5V15H3.5V9h1.25l2.5 3.5V9H8.5v6zm5-4.74H11v1.12h2.5v1.26H11v1.11h2.5V15h-4V9h4v1.26zm7 3.74c0 .55-.45 1-1 1h-4c-.55 0-1-.45-1-1V9h1.25v4.51h1.13V9.99h1.25v3.51h1.12V9h1.25v5z"}),"FiberNew");t.c=s},16512:(e,t,n)=>{"use strict";var r=n(22411);t.c=void 0;var i=r(n(2124)),o=n(97884),s=(0,i.default)((0,o.jsx)("path",{d:"M7.25 12.5 4.75 9H3.5v6h1.25v-3.5L7.3 15h1.2V9H7.25zM9.5 15h4v-1.25H11v-1.11h2.5v-1.26H11v-1.12h2.5V9h-4zm9.75-6v4.5h-1.12V9.99h-1.25v3.52h-1.13V9H14.5v5c0 .55.45 1 1 1h4c.55 0 1-.45 1-1V9h-1.25z"}),"FiberNewOutlined");t.c=s},58132:(e,t,n)=>{"use strict";var r=n(22411);t.c=void 0;var i=r(n(2124)),o=n(97884),s=(0,i.default)((0,o.jsx)("path",{d:"M18 15v3H6v-3H4v3c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2v-3h-2zm-1-4-1.41-1.41L13 12.17V4h-2v8.17L8.41 9.59 7 11l5 5 5-5z"}),"FileDownloadOutlined");t.c=s},65076:(e,t,n)=>{"use strict";var r=n(22411);t.c=void 0;var i=r(n(2124)),o=n(97884),s=(0,i.default)((0,o.jsx)("path",{d:"M19.79 5.61C20.3 4.95 19.83 4 19 4H6.83l7.97 7.97 4.99-6.36zM2.81 2.81 1.39 4.22 10 13v6c0 .55.45 1 1 1h2c.55 0 1-.45 1-1v-2.17l5.78 5.78 1.41-1.41L2.81 2.81z"}),"FilterAltOff");t.c=s},23820:(e,t,n)=>{"use strict";var r=n(22411);t.c=void 0;var i=r(n(2124)),o=n(97884),s=(0,i.default)([(0,o.jsx)("path",{d:"M16 12 9 2 2 12h1.86L0 18h7v4h4v-4h7l-3.86-6z"},"0"),(0,o.jsx)("path",{d:"M20.14 12H22L15 2l-2.39 3.41L17.92 13h-1.95l3.22 5H24zM13 19h4v3h-4z"},"1")],"Forest");t.c=s},45744:(e,t,n)=>{"use strict";var r=n(22411);t.c=void 0;var i=r(n(2124)),o=n(97884),s=(0,i.default)((0,o.jsx)("path",{d:"M2 17h2v.5H3v1h1v.5H2v1h3v-4H2v1zm1-9h1V4H2v1h1v3zm-1 3h1.8L2 13.1v.9h3v-1H3.2L5 10.9V10H2v1zm5-6v2h14V5H7zm0 14h14v-2H7v2zm0-6h14v-2H7v2z"}),"FormatListNumbered");t.c=s},81124:(e,t,n)=>{"use strict";var r=n(22411);t.c=void 0;var i=r(n(2124)),o=n(97884),s=(0,i.default)((0,o.jsx)("path",{d:"M7 14H5v5h5v-2H7v-3zm-2-4h2V7h3V5H5v5zm12 7h-3v2h5v-5h-2v3zM14 5v2h3v3h2V5h-5z"}),"Fullscreen");t.c=s},40040:(e,t,n)=>{"use strict";var r=n(22411);t.c=void 0;var i=r(n(2124)),o=n(97884),s=(0,i.default)((0,o.jsx)("path",{d:"M4.59 6.89c.7-.71 1.4-1.35 1.71-1.22.5.2 0 1.03-.3 1.52-.25.42-2.86 3.89-2.86 6.31 0 1.28.48 2.34 1.34 2.98.75.56 1.74.73 2.64.46 1.07-.31 1.95-1.4 3.06-2.77 1.21-1.49 2.83-3.44 4.08-3.44 1.63 0 1.65 1.01 1.76 1.79-3.78.64-5.38 3.67-5.38 5.37 0 1.7 1.44 3.09 3.21 3.09 1.63 0 4.29-1.33 4.69-6.1H21v-2.5h-2.47c-.15-1.65-1.09-4.2-4.03-4.2-2.25 0-4.18 1.91-4.94 2.84-.58.73-2.06 2.48-2.29 2.72-.25.3-.68.84-1.11.84-.45 0-.72-.83-.36-1.92.35-1.09 1.4-2.86 1.85-3.52.78-1.14 1.3-1.92 1.3-3.28C8.95 3.69 7.31 3 6.44 3 5.12 3 3.97 4 3.72 4.25c-.36.36-.66.66-.88.93l1.75 1.71zm9.29 11.66c-.31 0-.74-.26-.74-.72 0-.6.73-2.2 2.87-2.76-.3 2.69-1.43 3.48-2.13 3.48z"}),"Gesture");t.c=s},89944:(e,t,n)=>{"use strict";var r=n(22411);t.c=void 0;var i=r(n(2124)),o=n(97884),s=(0,i.default)((0,o.jsx)("path",{d:"M12 8c-2.21 0-4 1.79-4 4s1.79 4 4 4 4-1.79 4-4-1.79-4-4-4zm8.94 3c-.46-4.17-3.77-7.48-7.94-7.94V1h-2v2.06C6.83 3.52 3.52 6.83 3.06 11H1v2h2.06c.46 4.17 3.77 7.48 7.94 7.94V23h2v-2.06c4.17-.46 7.48-3.77 7.94-7.94H23v-2h-2.06zM12 19c-3.87 0-7-3.13-7-7s3.13-7 7-7 7 3.13 7 7-3.13 7-7 7z"}),"GpsFixed");t.c=s},99064:(e,t,n)=>{"use strict";var r=n(22411);t.c=void 0;var i=r(n(2124)),o=n(97884),s=(0,i.default)((0,o.jsx)("path",{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm1 17h-2v-2h2v2zm2.07-7.75-.9.92C13.45 12.9 13 13.5 13 15h-2v-.5c0-1.1.45-2.1 1.17-2.83l1.24-1.26c.37-.36.59-.86.59-1.41 0-1.1-.9-2-2-2s-2 .9-2 2H8c0-2.21 1.79-4 4-4s4 1.79 4 4c0 .88-.36 1.68-.93 2.25z"}),"Help");t.c=s},60888:(e,t,n)=>{"use strict";var r=n(22411);t.c=void 0;var i=r(n(2124)),o=n(97884),s=(0,i.default)((0,o.jsx)("path",{d:"M17 5h-2V3h2v2zm-2 16h2v-2.59L19.59 21 21 19.59 18.41 17H21v-2h-6v6zm4-12h2V7h-2v2zm0 4h2v-2h-2v2zm-8 8h2v-2h-2v2zM7 5h2V3H7v2zM3 17h2v-2H3v2zm2 4v-2H3c0 1.1.9 2 2 2zM19 3v2h2c0-1.1-.9-2-2-2zm-8 2h2V3h-2v2zM3 9h2V7H3v2zm4 12h2v-2H7v2zm-4-8h2v-2H3v2zm0-8h2V3c-1.1 0-2 .9-2 2z"}),"HighlightAlt");t.c=s},66664:(e,t,n)=>{"use strict";var r=n(22411);t.c=void 0;var i=r(n(2124)),o=n(97884),s=(0,i.default)((0,o.jsx)("path",{d:"m18 22-.01-6L14 12l3.99-4.01L18 2H6v6l4 4-4 3.99V22h12zM8 7.5V4h8v3.5l-4 4-4-4z"}),"HourglassBottom");t.c=s},85936:(e,t,n)=>{"use strict";var r=n(22411);t.c=void 0;var i=r(n(2124)),o=n(97884),s=(0,i.default)((0,o.jsx)("path",{d:"M21 19V5c0-1.1-.9-2-2-2H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2zM8.5 13.5l2.5 3.01L14.5 12l4.5 6H5l3.5-4.5z"}),"Image");t.c=s},31812:(e,t,n)=>{"use strict";var r=n(22411);t.c=void 0;var i=r(n(2124)),o=n(97884),s=(0,i.default)((0,o.jsx)("path",{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm1 15h-2v-6h2v6zm0-8h-2V7h2v2z"}),"Info");t.c=s},45636:(e,t,n)=>{"use strict";var r=n(22411);t.c=void 0;var i=r(n(2124)),o=n(97884),s=(0,i.default)((0,o.jsx)("path",{d:"M11 7h2v2h-2zm0 4h2v6h-2zm1-9C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm0 18c-4.41 0-8-3.59-8-8s3.59-8 8-8 8 3.59 8 8-3.59 8-8 8z"}),"InfoOutlined");t.c=s},91428:(e,t,n)=>{"use strict";var r=n(22411);t.c=void 0;var i=r(n(2124)),o=n(97884),s=(0,i.default)((0,o.jsx)("path",{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm0 15c-.55 0-1-.45-1-1v-4c0-.55.45-1 1-1s1 .45 1 1v4c0 .55-.45 1-1 1zm1-8h-2V7h2v2z"}),"InfoRounded");t.c=s},15040:(e,t,n)=>{"use strict";var r=n(22411);t.c=void 0;var i=r(n(2124)),o=n(97884),s=(0,i.default)((0,o.jsx)("path",{d:"M21 10h-8.35C11.83 7.67 9.61 6 7 6c-3.31 0-6 2.69-6 6s2.69 6 6 6c2.61 0 4.83-1.67 5.65-4H13l2 2 2-2 2 2 4-4.04L21 10zM7 15c-1.65 0-3-1.35-3-3s1.35-3 3-3 3 1.35 3 3-1.35 3-3 3z"}),"Key");t.c=s},12992:(e,t,n)=>{"use strict";var r=n(22411);t.c=void 0;var i=r(n(2124)),o=n(97884),s=(0,i.default)((0,o.jsx)("path",{d:"M7.41 8.59 12 13.17l4.59-4.58L18 10l-6 6-6-6 1.41-1.41z"}),"KeyboardArrowDown");t.c=s},2432:(e,t,n)=>{"use strict";var r=n(22411);t.c=void 0;var i=r(n(2124)),o=n(97884),s=(0,i.default)((0,o.jsx)("path",{d:"M15.41 16.59 10.83 12l4.58-4.59L14 6l-6 6 6 6 1.41-1.41z"}),"KeyboardArrowLeft");t.c=s},31388:(e,t,n)=>{"use strict";var r=n(22411);t.c=void 0;var i=r(n(2124)),o=n(97884),s=(0,i.default)((0,o.jsx)("path",{d:"M8.59 16.59 13.17 12 8.59 7.41 10 6l6 6-6 6-1.41-1.41z"}),"KeyboardArrowRight");t.c=s},19416:(e,t,n)=>{"use strict";var r=n(22411);t.c=void 0;var i=r(n(2124)),o=n(97884),s=(0,i.default)((0,o.jsx)("path",{d:"M7.41 15.41 12 10.83l4.59 4.58L18 14l-6-6-6 6z"}),"KeyboardArrowUp");t.c=s},3616:(e,t,n)=>{"use strict";var r=n(22411);t.c=void 0;var i=r(n(2124)),o=n(97884),s=(0,i.default)((0,o.jsx)("path",{d:"m14 6-3.75 5 2.85 3.8-1.6 1.2C9.81 13.75 7 10 7 10l-6 8h22L14 6z"}),"Landscape");t.c=s},60400:(e,t,n)=>{"use strict";var r=n(22411);t.c=void 0;var i=r(n(2124)),o=n(97884),s=(0,i.default)((0,o.jsx)("path",{d:"M11.99 2C6.47 2 2 6.48 2 12s4.47 10 9.99 10C17.52 22 22 17.52 22 12S17.52 2 11.99 2zm6.93 6h-2.95c-.32-1.25-.78-2.45-1.38-3.56 1.84.63 3.37 1.91 4.33 3.56zM12 4.04c.83 1.2 1.48 2.53 1.91 3.96h-3.82c.43-1.43 1.08-2.76 1.91-3.96zM4.26 14C4.1 13.36 4 12.69 4 12s.1-1.36.26-2h3.38c-.08.66-.14 1.32-.14 2 0 .68.06 1.34.14 2H4.26zm.82 2h2.95c.32 1.25.78 2.45 1.38 3.56-1.84-.63-3.37-1.9-4.33-3.56zm2.95-8H5.08c.96-1.66 2.49-2.93 4.33-3.56C8.81 5.55 8.35 6.75 8.03 8zM12 19.96c-.83-1.2-1.48-2.53-1.91-3.96h3.82c-.43 1.43-1.08 2.76-1.91 3.96zM14.34 14H9.66c-.09-.66-.16-1.32-.16-2 0-.68.07-1.35.16-2h4.68c.09.65.16 1.32.16 2 0 .68-.07 1.34-.16 2zm.25 5.56c.6-1.11 1.06-2.31 1.38-3.56h2.95c-.96 1.65-2.49 2.93-4.33 3.56zM16.36 14c.08-.66.14-1.32.14-2 0-.68-.06-1.34-.14-2h3.38c.16.64.26 1.31.26 2s-.1 1.36-.26 2h-3.38z"}),"Language");t.c=s},84840:(e,t,n)=>{"use strict";var r=n(22411);t.c=void 0;var i=r(n(2124)),o=n(97884),s=(0,i.default)((0,o.jsx)("path",{d:"m11.99 18.54-7.37-5.73L3 14.07l9 7 9-7-1.63-1.27-7.38 5.74zM12 16l7.36-5.73L21 9l-9-7-9 7 1.63 1.27L12 16z"}),"Layers");t.c=s},38280:(e,t,n)=>{"use strict";var r=n(22411);t.c=void 0;var i=r(n(2124)),o=n(97884),s=(0,i.default)((0,o.jsx)("path",{d:"M3 13h2v-2H3v2zm0 4h2v-2H3v2zm0-8h2V7H3v2zm4 4h14v-2H7v2zm0 4h14v-2H7v2zM7 7v2h14V7H7z"}),"List");t.c=s},74560:(e,t,n)=>{"use strict";var r=n(22411);t.c=void 0;var i=r(n(2124)),o=n(97884),s=(0,i.default)([(0,o.jsx)("circle",{cx:"12",cy:"12",r:"3.2"},"0"),(0,o.jsx)("path",{d:"M9 2 7.17 4H4c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2h-3.17L15 2H9zm3 15c-2.76 0-5-2.24-5-5s2.24-5 5-5 5 2.24 5 5-2.24 5-5 5z"},"1")],"LocalSee");t.c=s},10852:(e,t,n)=>{"use strict";var r=n(22411);t.c=void 0;var i=r(n(2124)),o=n(97884),s=(0,i.default)((0,o.jsx)("path",{d:"M18 8h-1V6c0-2.76-2.24-5-5-5S7 3.24 7 6v2H6c-1.1 0-2 .9-2 2v10c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2V10c0-1.1-.9-2-2-2zm-6 9c-1.1 0-2-.9-2-2s.9-2 2-2 2 .9 2 2-.9 2-2 2zm3.1-9H8.9V6c0-1.71 1.39-3.1 3.1-3.1 1.71 0 3.1 1.39 3.1 3.1v2z"}),"Lock");t.c=s},24192:(e,t,n)=>{"use strict";var r=n(22411);t.c=void 0;var i=r(n(2124)),o=n(97884),s=(0,i.default)((0,o.jsx)("path",{d:"m20.5 3-.16.03L15 5.1 9 3 3.36 4.9c-.21.07-.36.25-.36.48V20.5c0 .28.22.5.5.5l.16-.03L9 18.9l6 2.1 5.64-1.9c.21-.07.36-.25.36-.48V3.5c0-.28-.22-.5-.5-.5zM15 19l-6-2.11V5l6 2.11V19z"}),"Map");t.c=s},53760:(e,t,n)=>{"use strict";var r=n(22411);t.c=void 0;var i=r(n(2124)),o=n(97884),s=(0,i.default)((0,o.jsx)("path",{d:"M3 17.25V21h3.75L17.81 9.94l-3.75-3.75L3 17.25zM20.71 7.04c.39-.39.39-1.02 0-1.41l-2.34-2.34a.9959.9959 0 0 0-1.41 0l-1.83 1.83 3.75 3.75 1.83-1.83z"}),"ModeEdit");t.c=s},62584:(e,t,n)=>{"use strict";var r=n(22411);t.c=void 0;var i=r(n(2124)),o=n(97884),s=(0,i.default)((0,o.jsx)("path",{d:"M12 2C6.49 2 2 6.49 2 12s4.49 10 10 10 10-4.49 10-10S17.51 2 12 2zm0 18c-4.41 0-8-3.59-8-8s3.59-8 8-8 8 3.59 8 8-3.59 8-8 8zm3-8c0 1.66-1.34 3-3 3s-3-1.34-3-3 1.34-3 3-3 3 1.34 3 3z"}),"ModeStandby");t.c=s},93344:(e,t,n)=>{"use strict";var r=n(22411);t.c=void 0;var i=r(n(2124)),o=n(97884),s=(0,i.default)((0,o.jsx)("path",{d:"M19 19H5V5h7V3H5c-1.11 0-2 .9-2 2v14c0 1.1.89 2 2 2h14c1.1 0 2-.9 2-2v-7h-2v7zM14 3v2h3.59l-9.83 9.83 1.41 1.41L19 6.41V10h2V3h-7z"}),"OpenInNew");t.c=s},90972:(e,t,n)=>{"use strict";var r=n(22411);t.c=void 0;var i=r(n(2124)),o=n(97884),s=(0,i.default)((0,o.jsx)("path",{d:"M18 24h-6.55c-1.08 0-2.14-.45-2.89-1.23l-7.3-7.61 2.07-1.83c.62-.55 1.53-.66 2.26-.27L8 14.34V4.79c0-1.38 1.12-2.5 2.5-2.5.17 0 .34.02.51.05.09-1.3 1.17-2.33 2.49-2.33.86 0 1.61.43 2.06 1.09.29-.12.61-.18.94-.18 1.38 0 2.5 1.12 2.5 2.5v.28c.16-.03.33-.05.5-.05 1.38 0 2.5 1.12 2.5 2.5V20c0 2.21-1.79 4-4 4zM4.14 15.28l5.86 6.1c.38.39.9.62 1.44.62H18c1.1 0 2-.9 2-2V6.15c0-.28-.22-.5-.5-.5s-.5.22-.5.5V12h-2V3.42c0-.28-.22-.5-.5-.5s-.5.22-.5.5V12h-2V2.51c0-.28-.22-.5-.5-.5s-.5.22-.5.5V12h-2V4.79c0-.28-.22-.5-.5-.5s-.5.23-.5.5v12.87l-5.35-2.83-.51.45z"}),"PanToolOutlined");t.c=s},71472:(e,t,n)=>{"use strict";var r=n(22411);t.c=void 0;var i=r(n(2124)),o=n(97884),s=(0,i.default)((0,o.jsx)("path",{d:"M12 2C6.47 2 2 6.47 2 12s4.47 10 10 10 10-4.47 10-10S17.53 2 12 2zm0 18c-4.41 0-8-3.59-8-8s3.59-8 8-8 8 3.59 8 8-3.59 8-8 8z"}),"PanoramaFishEye");t.c=s},76544:(e,t,n)=>{"use strict";var r=n(22411);t.c=void 0;var i=r(n(2124)),o=n(97884),s=(0,i.default)((0,o.jsx)("path",{d:"M15 12c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm-9-2V7H4v3H1v2h3v3h2v-3h3v-2H6zm9 4c-2.67 0-8 1.34-8 4v2h16v-2c0-2.66-5.33-4-8-4z"}),"PersonAdd");t.c=s},76208:(e,t,n)=>{"use strict";var r=n(22411);t.c=void 0;var i=r(n(2124)),o=n(97884),s=(0,i.default)((0,o.jsx)("path",{d:"M21 19V5c0-1.1-.9-2-2-2H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2zM8.5 13.5l2.5 3.01L14.5 12l4.5 6H5l3.5-4.5z"}),"Photo");t.c=s},7644:(e,t,n)=>{"use strict";var r=n(22411);t.c=void 0;var i=r(n(2124)),o=n(97884),s=(0,i.default)((0,o.jsx)("path",{d:"M20 2H8c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2V4c0-1.1-.9-2-2-2zm-8.5 7.5c0 .83-.67 1.5-1.5 1.5H9v2H7.5V7H10c.83 0 1.5.67 1.5 1.5v1zm5 2c0 .83-.67 1.5-1.5 1.5h-2.5V7H15c.83 0 1.5.67 1.5 1.5v3zm4-3H19v1h1.5V11H19v2h-1.5V7h3v1.5zM9 9.5h1v-1H9v1zM4 6H2v14c0 1.1.9 2 2 2h14v-2H4V6zm10 5.5h1v-3h-1v3z"}),"PictureAsPdf");t.c=s},31136:(e,t,n)=>{"use strict";var r=n(22411);t.c=void 0;var i=r(n(2124)),o=n(97884),s=(0,i.default)((0,o.jsx)("path",{d:"M8 5v14l11-7z"}),"PlayArrow");t.c=s},79365:(e,t,n)=>{"use strict";var r=n(22411);t.c=void 0;var i=r(n(2124)),o=n(97884),s=(0,i.default)([(0,o.jsx)("circle",{cx:"12",cy:"19",r:"2"},"0"),(0,o.jsx)("path",{d:"M10 3h4v12h-4z"},"1")],"PriorityHigh");t.c=s},25544:(e,t,n)=>{"use strict";var r=n(22411);t.c=void 0;var i=r(n(2124)),o=n(97884),s=(0,i.default)((0,o.jsx)("path",{d:"M18.4 10.6C16.55 8.99 14.15 8 11.5 8c-4.65 0-8.58 3.03-9.96 7.22L3.9 16c1.05-3.19 4.05-5.5 7.6-5.5 1.95 0 3.73.72 5.12 1.88L13 16h9V7l-3.6 3.6z"}),"Redo");t.c=s},78796:(e,t,n)=>{"use strict";var r=n(22411);t.c=void 0;var i=r(n(2124)),o=n(97884),s=(0,i.default)((0,o.jsx)("path",{d:"M1 21h22L12 2 1 21zm12-3h-2v-2h2v2zm0-4h-2v-4h2v4z"}),"ReportProblem");t.c=s},31888:(e,t,n)=>{"use strict";var r=n(22411);t.c=void 0;var i=r(n(2124)),o=n(97884),s=(0,i.default)((0,o.jsx)("path",{d:"M15.5 14h-.79l-.28-.27C15.41 12.59 16 11.11 16 9.5 16 5.91 13.09 3 9.5 3S3 5.91 3 9.5 5.91 16 9.5 16c1.61 0 3.09-.59 4.23-1.57l.27.28v.79l5 4.99L20.49 19l-4.99-5zm-6 0C7.01 14 5 11.99 5 9.5S7.01 5 9.5 5 14 7.01 14 9.5 11.99 14 9.5 14z"}),"Search");t.c=s},98608:(e,t,n)=>{"use strict";var r=n(22411);t.c=void 0;var i=r(n(2124)),o=n(97884),s=(0,i.default)((0,o.jsx)("path",{d:"M2.01 21 23 12 2.01 3 2 10l15 2-15 2z"}),"Send");t.c=s},61128:(e,t,n)=>{"use strict";var r=n(22411);t.c=void 0;var i=r(n(2124)),o=n(97884),s=(0,i.default)((0,o.jsx)("path",{d:"M18 16.08c-.76 0-1.44.3-1.96.77L8.91 12.7c.05-.23.09-.46.09-.7s-.04-.47-.09-.7l7.05-4.11c.54.5 1.25.81 2.04.81 1.66 0 3-1.34 3-3s-1.34-3-3-3-3 1.34-3 3c0 .24.04.47.09.7L8.04 9.81C7.5 9.31 6.79 9 6 9c-1.66 0-3 1.34-3 3s1.34 3 3 3c.79 0 1.5-.31 2.04-.81l7.12 4.16c-.05.21-.08.43-.08.65 0 1.61 1.31 2.92 2.92 2.92 1.61 0 2.92-1.31 2.92-2.92s-1.31-2.92-2.92-2.92z"}),"Share");t.c=s},87424:(e,t,n)=>{"use strict";var r=n(22411);t.c=void 0;var i=r(n(2124)),o=n(97884),s=(0,i.default)((0,o.jsx)("path",{d:"M3.33 16H11v-3H4zM13 16h7.67L20 13h-7zm8.11 2H13v4h9zM2 22h9v-4H2.89zm9-14h2v3h-2zm4.7644-.7948 1.4143-1.4142L19.3 7.9123l-1.4142 1.4142zm-11.0596.7076 2.1213-2.1213 1.4143 1.4142L6.119 9.327zM3 2h3v2H3zm15 0h3v2h-3zm-6 5c2.76 0 5-2.24 5-5H7c0 2.76 2.24 5 5 5z"}),"SolarPower");t.c=s},92280:(e,t,n)=>{"use strict";var r=n(22411);t.c=void 0;var i=r(n(2124)),o=n(97884),s=(0,i.default)((0,o.jsx)("path",{d:"M21 6H3c-1.1 0-2 .9-2 2v8c0 1.1.9 2 2 2h18c1.1 0 2-.9 2-2V8c0-1.1-.9-2-2-2zm0 10H3V8h2v4h2V8h2v4h2V8h2v4h2V8h2v4h2V8h2v8z"}),"StraightenOutlined");t.c=s},41716:(e,t,n)=>{"use strict";var r=n(22411);t.c=void 0;var i=r(n(2124)),o=n(97884),s=(0,i.default)((0,o.jsx)("path",{d:"M22 5.18 10.59 16.6l-4.24-4.24 1.41-1.41 2.83 2.83 10-10L22 5.18zm-2.21 5.04c.13.57.21 1.17.21 1.78 0 4.42-3.58 8-8 8s-8-3.58-8-8 3.58-8 8-8c1.58 0 3.04.46 4.28 1.25l1.44-1.44C16.1 2.67 14.13 2 12 2 6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10c0-1.19-.22-2.33-.6-3.39l-1.61 1.61z"}),"TaskAltOutlined");t.c=s},33800:(e,t,n)=>{"use strict";var r=n(22411);t.c=void 0;var i=r(n(2124)),o=n(97884),s=(0,i.default)((0,o.jsx)("path",{d:"M23 8c0 1.1-.9 2-2 2-.18 0-.35-.02-.51-.07l-3.56 3.55c.05.16.07.34.07.52 0 1.1-.9 2-2 2s-2-.9-2-2c0-.18.02-.36.07-.52l-2.55-2.55c-.16.05-.34.07-.52.07s-.36-.02-.52-.07l-4.55 4.56c.05.16.07.33.07.51 0 1.1-.9 2-2 2s-2-.9-2-2 .9-2 2-2c.18 0 .35.02.51.07l4.56-4.55C8.02 9.36 8 9.18 8 9c0-1.1.9-2 2-2s2 .9 2 2c0 .18-.02.36-.07.52l2.55 2.55c.16-.05.34-.07.52-.07s.36.02.52.07l3.55-3.56C19.02 8.35 19 8.18 19 8c0-1.1.9-2 2-2s2 .9 2 2z"}),"TimelineOutlined");t.c=s},95588:(e,t,n)=>{"use strict";var r=n(22411);t.c=void 0;var i=r(n(2124)),o=n(97884),s=(0,i.default)((0,o.jsx)("path",{d:"M12.5 8c-2.65 0-5.05.99-6.9 2.6L2 7v9h9l-3.62-3.62c1.39-1.16 3.16-1.88 5.12-1.88 3.54 0 6.55 2.31 7.6 5.5l2.37-.78C21.08 11.03 17.15 8 12.5 8z"}),"Undo");t.c=s},55680:(e,t,n)=>{"use strict";var r=n(22411);t.c=void 0;var i=r(n(2124)),o=n(97884),s=(0,i.default)((0,o.jsx)("path",{d:"M14 2H6c-1.1 0-1.99.9-1.99 2L4 20c0 1.1.89 2 1.99 2H18c1.1 0 2-.9 2-2V8l-6-6zm4 18H6V4h7v5h5v11zM8 15.01l1.41 1.41L11 14.84V19h2v-4.16l1.59 1.59L16 15.01 12.01 11z"}),"UploadFile");t.c=s},65848:(e,t,n)=>{"use strict";var r=n(22411);t.c=void 0;var i=r(n(2124)),o=n(97884),s=(0,i.default)((0,o.jsx)("path",{d:"M12 4.5C7 4.5 2.73 7.61 1 12c1.73 4.39 6 7.5 11 7.5s9.27-3.11 11-7.5c-1.73-4.39-6-7.5-11-7.5zM12 17c-2.76 0-5-2.24-5-5s2.24-5 5-5 5 2.24 5 5-2.24 5-5 5zm0-8c-1.66 0-3 1.34-3 3s1.34 3 3 3 3-1.34 3-3-1.34-3-3-3z"}),"Visibility");t.c=s},836:(e,t,n)=>{"use strict";var r=n(22411);t.c=void 0;var i=r(n(2124)),o=n(97884),s=(0,i.default)((0,o.jsx)("path",{d:"M12 7c2.76 0 5 2.24 5 5 0 .65-.13 1.26-.36 1.83l2.92 2.92c1.51-1.26 2.7-2.89 3.43-4.75-1.73-4.39-6-7.5-11-7.5-1.4 0-2.74.25-3.98.7l2.16 2.16C10.74 7.13 11.35 7 12 7zM2 4.27l2.28 2.28.46.46C3.08 8.3 1.78 10.02 1 12c1.73 4.39 6 7.5 11 7.5 1.55 0 3.03-.3 4.38-.84l.42.42L19.73 22 21 20.73 3.27 3 2 4.27zM7.53 9.8l1.55 1.55c-.05.21-.08.43-.08.65 0 1.66 1.34 3 3 3 .22 0 .44-.03.65-.08l1.55 1.55c-.67.33-1.41.53-2.2.53-2.76 0-5-2.24-5-5 0-.79.2-1.53.53-2.2zm4.31-.78 3.15 3.15.02-.16c0-1.66-1.34-3-3-3l-.17.01z"}),"VisibilityOff");t.c=s},49912:(e,t,n)=>{"use strict";var r=n(22411);t.c=void 0;var i=r(n(2124)),o=n(97884),s=(0,i.default)((0,o.jsx)("path",{d:"M1 21h22L12 2 1 21zm12-3h-2v-2h2v2zm0-4h-2v-4h2v4z"}),"Warning");t.c=s},80712:(e,t,n)=>{"use strict";var r=n(22411);t.c=void 0;var i=r(n(2124)),o=n(97884),s=(0,i.default)([(0,o.jsx)("path",{d:"M12 5.99 19.53 19H4.47L12 5.99M12 2 1 21h22L12 2z"},"0"),(0,o.jsx)("path",{d:"M13 16h-2v2h2zm0-6h-2v5h2z"},"1")],"WarningAmber");t.c=s},40676:(e,t,n)=>{"use strict";var r=n(22411);t.c=void 0;var i=r(n(2124)),o=n(97884),s=(0,i.default)((0,o.jsx)("path",{d:"m15 3 2.3 2.3-2.89 2.87 1.42 1.42L18.7 6.7 21 9V3h-6zM3 9l2.3-2.3 2.87 2.89 1.42-1.42L6.7 5.3 9 3H3v6zm6 12-2.3-2.3 2.89-2.87-1.42-1.42L5.3 17.3 3 15v6h6zm12-6-2.3 2.3-2.87-2.89-1.42 1.42 2.89 2.87L15 21h6v-6z"}),"ZoomOutMap");t.c=s},2124:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return r.createSvgIcon}});var r=n(78272)},53458:(e,t,n)=>{"use strict";n.d(t,{c:()=>v});var r=n(45072),i=n(95656),o=n(99584),s=n(39816),a=n(43980),l=n(84892),c=n(47901),u=n(25496),d=n(82952),h=n(10948);function p(e){return(0,h.c)("MuiSvgIcon",e)}(0,d.c)("MuiSvgIcon",["root","colorPrimary","colorSecondary","colorAction","colorError","colorDisabled","fontSizeInherit","fontSizeSmall","fontSizeMedium","fontSizeLarge"]);var f=n(97884);const g=["children","className","color","component","fontSize","htmlColor","inheritViewBox","titleAccess","viewBox"],m=(0,u.cp)("svg",{name:"MuiSvgIcon",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,"inherit"!==n.color&&t["color".concat((0,l.c)(n.color))],t["fontSize".concat((0,l.c)(n.fontSize))]]}})((e=>{let{theme:t,ownerState:n}=e;var r,i,o,s,a,l,c,u,d,h,p,f,g,m,y,v,_;return{userSelect:"none",width:"1em",height:"1em",display:"inline-block",fill:"currentColor",flexShrink:0,transition:null==(r=t.transitions)||null==(i=r.create)?void 0:i.call(r,"fill",{duration:null==(o=t.transitions)||null==(s=o.duration)?void 0:s.shorter}),fontSize:{inherit:"inherit",small:(null==(a=t.typography)||null==(l=a.pxToRem)?void 0:l.call(a,20))||"1.25rem",medium:(null==(c=t.typography)||null==(u=c.pxToRem)?void 0:u.call(c,24))||"1.5rem",large:(null==(d=t.typography)||null==(h=d.pxToRem)?void 0:h.call(d,35))||"2.1875rem"}[n.fontSize],color:null!=(p=null==(f=(t.vars||t).palette)||null==(g=f[n.color])?void 0:g.main)?p:{action:null==(m=(t.vars||t).palette)||null==(y=m.action)?void 0:y.active,disabled:null==(v=(t.vars||t).palette)||null==(_=v.action)?void 0:_.disabled,inherit:void 0}[n.color]}})),y=o.forwardRef((function(e,t){const n=(0,c.c)({props:e,name:"MuiSvgIcon"}),{children:o,className:u,color:d="inherit",component:h="svg",fontSize:y="medium",htmlColor:v,inheritViewBox:_=!1,titleAccess:b,viewBox:x="0 0 24 24"}=n,S=(0,i.c)(n,g),w=(0,r.c)({},n,{color:d,component:h,fontSize:y,instanceFontSize:e.fontSize,inheritViewBox:_,viewBox:x}),E={};_||(E.viewBox=x);const P=(e=>{const{color:t,fontSize:n,classes:r}=e,i={root:["root","inherit"!==t&&"color".concat((0,l.c)(t)),"fontSize".concat((0,l.c)(n))]};return(0,a.c)(i,p,r)})(w);return(0,f.jsxs)(m,(0,r.c)({as:h,className:(0,s.c)(P.root,u),focusable:"false",color:v,"aria-hidden":!b||void 0,role:b?"img":void 0,ref:t},E,S,{ownerState:w,children:[o,b?(0,f.jsx)("title",{children:b}):null]}))}));y.muiName="SvgIcon";const v=y},47971:(e,t,n)=>{"use strict";n.d(t,{c:()=>r});const r={50:"#e8f5e9",100:"#c8e6c9",200:"#a5d6a7",300:"#81c784",400:"#66bb6a",500:"#4caf50",600:"#43a047",700:"#388e3c",800:"#2e7d32",900:"#1b5e20",A100:"#b9f6ca",A200:"#69f0ae",A400:"#00e676",A700:"#00c853"}},28200:(e,t,n)=>{"use strict";n.d(t,{c:()=>r});const r={50:"#ffebee",100:"#ffcdd2",200:"#ef9a9a",300:"#e57373",400:"#ef5350",500:"#f44336",600:"#e53935",700:"#d32f2f",800:"#c62828",900:"#b71c1c",A100:"#ff8a80",A200:"#ff5252",A400:"#ff1744",A700:"#d50000"}},4400:(e,t,n)=>{"use strict";n.d(t,{c:()=>O});var r=n(45072),i=n(95656),o=n(37016),s=n(59232),a=n(61572),l=n(65064),c=n(76280);var u=n(35576);const d={black:"#000",white:"#fff"},h={50:"#fafafa",100:"#f5f5f5",200:"#eeeeee",300:"#e0e0e0",400:"#bdbdbd",500:"#9e9e9e",600:"#757575",700:"#616161",800:"#424242",900:"#212121",A100:"#f5f5f5",A200:"#eeeeee",A400:"#bdbdbd",A700:"#616161"},p={50:"#f3e5f5",100:"#e1bee7",200:"#ce93d8",300:"#ba68c8",400:"#ab47bc",500:"#9c27b0",600:"#8e24aa",700:"#7b1fa2",800:"#6a1b9a",900:"#4a148c",A100:"#ea80fc",A200:"#e040fb",A400:"#d500f9",A700:"#aa00ff"};var f=n(28200);const g={50:"#fff3e0",100:"#ffe0b2",200:"#ffcc80",300:"#ffb74d",400:"#ffa726",500:"#ff9800",600:"#fb8c00",700:"#f57c00",800:"#ef6c00",900:"#e65100",A100:"#ffd180",A200:"#ffab40",A400:"#ff9100",A700:"#ff6d00"},m={50:"#e3f2fd",100:"#bbdefb",200:"#90caf9",300:"#64b5f6",400:"#42a5f5",500:"#2196f3",600:"#1e88e5",700:"#1976d2",800:"#1565c0",900:"#0d47a1",A100:"#82b1ff",A200:"#448aff",A400:"#2979ff",A700:"#2962ff"},y={50:"#e1f5fe",100:"#b3e5fc",200:"#81d4fa",300:"#4fc3f7",400:"#29b6f6",500:"#03a9f4",600:"#039be5",700:"#0288d1",800:"#0277bd",900:"#01579b",A100:"#80d8ff",A200:"#40c4ff",A400:"#00b0ff",A700:"#0091ea"};var v=n(47971);const _=["mode","contrastThreshold","tonalOffset"],b={text:{primary:"rgba(0, 0, 0, 0.87)",secondary:"rgba(0, 0, 0, 0.6)",disabled:"rgba(0, 0, 0, 0.38)"},divider:"rgba(0, 0, 0, 0.12)",background:{paper:d.white,default:d.white},action:{active:"rgba(0, 0, 0, 0.54)",hover:"rgba(0, 0, 0, 0.04)",hoverOpacity:.04,selected:"rgba(0, 0, 0, 0.08)",selectedOpacity:.08,disabled:"rgba(0, 0, 0, 0.26)",disabledBackground:"rgba(0, 0, 0, 0.12)",disabledOpacity:.38,focus:"rgba(0, 0, 0, 0.12)",focusOpacity:.12,activatedOpacity:.12}},x={text:{primary:d.white,secondary:"rgba(255, 255, 255, 0.7)",disabled:"rgba(255, 255, 255, 0.5)",icon:"rgba(255, 255, 255, 0.5)"},divider:"rgba(255, 255, 255, 0.12)",background:{paper:"#121212",default:"#121212"},action:{active:d.white,hover:"rgba(255, 255, 255, 0.08)",hoverOpacity:.08,selected:"rgba(255, 255, 255, 0.16)",selectedOpacity:.16,disabled:"rgba(255, 255, 255, 0.3)",disabledBackground:"rgba(255, 255, 255, 0.12)",disabledOpacity:.38,focus:"rgba(255, 255, 255, 0.12)",focusOpacity:.12,activatedOpacity:.24}};function S(e,t,n,r){const i=r.light||r,o=r.dark||1.5*r;e[t]||(e.hasOwnProperty(n)?e[t]=e[n]:"light"===t?e.light=(0,u.IV)(e.main,i):"dark"===t&&(e.dark=(0,u.sP)(e.main,o)))}function w(e){const{mode:t="light",contrastThreshold:n=3,tonalOffset:a=.2}=e,l=(0,i.c)(e,_),c=e.primary||function(){return"dark"===(arguments.length>0&&void 0!==arguments[0]?arguments[0]:"light")?{main:m[200],light:m[50],dark:m[400]}:{main:m[700],light:m[400],dark:m[800]}}(t),w=e.secondary||function(){return"dark"===(arguments.length>0&&void 0!==arguments[0]?arguments[0]:"light")?{main:p[200],light:p[50],dark:p[400]}:{main:p[500],light:p[300],dark:p[700]}}(t),E=e.error||function(){return"dark"===(arguments.length>0&&void 0!==arguments[0]?arguments[0]:"light")?{main:f.c[500],light:f.c[300],dark:f.c[700]}:{main:f.c[700],light:f.c[400],dark:f.c[800]}}(t),P=e.info||function(){return"dark"===(arguments.length>0&&void 0!==arguments[0]?arguments[0]:"light")?{main:y[400],light:y[300],dark:y[700]}:{main:y[700],light:y[500],dark:y[900]}}(t),C=e.success||function(){return"dark"===(arguments.length>0&&void 0!==arguments[0]?arguments[0]:"light")?{main:v.c[400],light:v.c[300],dark:v.c[700]}:{main:v.c[800],light:v.c[500],dark:v.c[900]}}(t),A=e.warning||function(){return"dark"===(arguments.length>0&&void 0!==arguments[0]?arguments[0]:"light")?{main:g[400],light:g[300],dark:g[700]}:{main:"#ed6c02",light:g[500],dark:g[900]}}(t);function k(e){return(0,u.OM)(e,x.text.primary)>=n?x.text.primary:b.text.primary}const j=e=>{let{color:t,name:n,mainShade:i=500,lightShade:s=300,darkShade:l=700}=e;if(t=(0,r.c)({},t),!t.main&&t[i]&&(t.main=t[i]),!t.hasOwnProperty("main"))throw new Error((0,o.c)(11,n?" (".concat(n,")"):"",i));if("string"!==typeof t.main)throw new Error((0,o.c)(12,n?" (".concat(n,")"):"",JSON.stringify(t.main)));return S(t,"light",s,a),S(t,"dark",l,a),t.contrastText||(t.contrastText=k(t.main)),t},I={dark:x,light:b};return(0,s.c)((0,r.c)({common:(0,r.c)({},d),mode:t,primary:j({color:c,name:"primary"}),secondary:j({color:w,name:"secondary",mainShade:"A400",lightShade:"A200",darkShade:"A700"}),error:j({color:E,name:"error"}),warning:j({color:A,name:"warning"}),info:j({color:P,name:"info"}),success:j({color:C,name:"success"}),grey:h,contrastThreshold:n,getContrastText:k,augmentColor:j,tonalOffset:a},I[t]),l)}const E=["fontFamily","fontSize","fontWeightLight","fontWeightRegular","fontWeightMedium","fontWeightBold","htmlFontSize","allVariants","pxToRem"];const P={textTransform:"uppercase"},C='"Roboto", "Helvetica", "Arial", sans-serif';function A(e,t){const n="function"===typeof t?t(e):t,{fontFamily:o=C,fontSize:a=14,fontWeightLight:l=300,fontWeightRegular:c=400,fontWeightMedium:u=500,fontWeightBold:d=700,htmlFontSize:h=16,allVariants:p,pxToRem:f}=n,g=(0,i.c)(n,E);const m=a/14,y=f||(e=>"".concat(e/h*m,"rem")),v=(e,t,n,i,s)=>{return(0,r.c)({fontFamily:o,fontWeight:e,fontSize:y(t),lineHeight:n},o===C?{letterSpacing:"".concat((a=i/t,Math.round(1e5*a)/1e5),"em")}:{},s,p);var a},_={h1:v(l,96,1.167,-1.5),h2:v(l,60,1.2,-.5),h3:v(c,48,1.167,0),h4:v(c,34,1.235,.25),h5:v(c,24,1.334,0),h6:v(u,20,1.6,.15),subtitle1:v(c,16,1.75,.15),subtitle2:v(u,14,1.57,.1),body1:v(c,16,1.5,.15),body2:v(c,14,1.43,.15),button:v(u,14,1.75,.4,P),caption:v(c,12,1.66,.4),overline:v(c,12,2.66,1,P)};return(0,s.c)((0,r.c)({htmlFontSize:h,pxToRem:y,fontFamily:o,fontSize:a,fontWeightLight:l,fontWeightRegular:c,fontWeightMedium:u,fontWeightBold:d},_),g,{clone:!1})}function k(){return["".concat(arguments.length<=0?void 0:arguments[0],"px ").concat(arguments.length<=1?void 0:arguments[1],"px ").concat(arguments.length<=2?void 0:arguments[2],"px ").concat(arguments.length<=3?void 0:arguments[3],"px rgba(0,0,0,").concat(.2,")"),"".concat(arguments.length<=4?void 0:arguments[4],"px ").concat(arguments.length<=5?void 0:arguments[5],"px ").concat(arguments.length<=6?void 0:arguments[6],"px ").concat(arguments.length<=7?void 0:arguments[7],"px rgba(0,0,0,").concat(.14,")"),"".concat(arguments.length<=8?void 0:arguments[8],"px ").concat(arguments.length<=9?void 0:arguments[9],"px ").concat(arguments.length<=10?void 0:arguments[10],"px ").concat(arguments.length<=11?void 0:arguments[11],"px rgba(0,0,0,").concat(.12,")")].join(",")}const j=["none",k(0,2,1,-1,0,1,1,0,0,1,3,0),k(0,3,1,-2,0,2,2,0,0,1,5,0),k(0,3,3,-2,0,3,4,0,0,1,8,0),k(0,2,4,-1,0,4,5,0,0,1,10,0),k(0,3,5,-1,0,5,8,0,0,1,14,0),k(0,3,5,-1,0,6,10,0,0,1,18,0),k(0,4,5,-2,0,7,10,1,0,2,16,1),k(0,5,5,-3,0,8,10,1,0,3,14,2),k(0,5,6,-3,0,9,12,1,0,3,16,2),k(0,6,6,-3,0,10,14,1,0,4,18,3),k(0,6,7,-4,0,11,15,1,0,4,20,3),k(0,7,8,-4,0,12,17,2,0,5,22,4),k(0,7,8,-4,0,13,19,2,0,5,24,4),k(0,7,9,-4,0,14,21,2,0,5,26,4),k(0,8,9,-5,0,15,22,2,0,6,28,5),k(0,8,10,-5,0,16,24,2,0,6,30,5),k(0,8,11,-5,0,17,26,2,0,6,32,5),k(0,9,11,-5,0,18,28,2,0,7,34,6),k(0,9,12,-6,0,19,29,2,0,7,36,6),k(0,10,13,-6,0,20,31,3,0,8,38,7),k(0,10,13,-6,0,21,33,3,0,8,40,7),k(0,10,14,-6,0,22,35,3,0,8,42,7),k(0,11,14,-7,0,23,36,3,0,9,44,8),k(0,11,15,-7,0,24,38,3,0,9,46,8)];var I=n(59656);const G={mobileStepper:1e3,fab:1050,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500},T=["breakpoints","mixins","spacing","palette","transitions","typography","shape"];function M(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const{mixins:t={},palette:n={},transitions:u={},typography:d={}}=e,h=(0,i.c)(e,T);if(e.vars)throw new Error((0,o.c)(18));const p=w(n),f=(0,a.c)(e);let g=(0,s.c)(f,{mixins:(m=f.breakpoints,y=t,(0,r.c)({toolbar:{minHeight:56,[m.up("xs")]:{"@media (orientation: landscape)":{minHeight:48}},[m.up("sm")]:{minHeight:64}}},y)),palette:p,shadows:j.slice(),typography:A(p,d),transitions:(0,I.cp)(u),zIndex:(0,r.c)({},G)});var m,y;g=(0,s.c)(g,h);for(var v=arguments.length,_=new Array(v>1?v-1:0),b=1;b<v;b++)_[b-1]=arguments[b];return g=_.reduce(((e,t)=>(0,s.c)(e,t)),g),g.unstable_sxConfig=(0,r.c)({},l.c,null==h?void 0:h.unstable_sxConfig),g.unstable_sx=function(e){return(0,c.c)({sx:e,theme:this})},g}const O=M},59656:(e,t,n)=>{"use strict";n.d(t,{cp:()=>u,rV:()=>a});var r=n(95656),i=n(45072);const o=["duration","easing","delay"],s={easeInOut:"cubic-bezier(0.4, 0, 0.2, 1)",easeOut:"cubic-bezier(0.0, 0, 0.2, 1)",easeIn:"cubic-bezier(0.4, 0, 1, 1)",sharp:"cubic-bezier(0.4, 0, 0.6, 1)"},a={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function l(e){return"".concat(Math.round(e),"ms")}function c(e){if(!e)return 0;const t=e/36;return Math.round(10*(4+15*t**.25+t/5))}function u(e){const t=(0,i.c)({},s,e.easing),n=(0,i.c)({},a,e.duration);return(0,i.c)({getAutoHeightDuration:c,create:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:["all"],i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const{duration:s=n.standard,easing:a=t.easeInOut,delay:c=0}=i;(0,r.c)(i,o);return(Array.isArray(e)?e:[e]).map((e=>"".concat(e," ").concat("string"===typeof s?s:l(s)," ").concat(a," ").concat("string"===typeof c?c:l(c)))).join(",")}},e,{easing:t,duration:n})}},55552:(e,t,n)=>{"use strict";n.d(t,{c:()=>r});const r=(0,n(4400).c)()},25496:(e,t,n)=>{"use strict";n.d(t,{CU:()=>o,Cq:()=>s,cp:()=>a});var r=n(8676),i=n(55552);const o=e=>(0,r.YJ)(e)&&"classes"!==e,s=r.YJ,a=(0,r.cp)({defaultTheme:i.c,rootShouldForwardProp:o})},47901:(e,t,n)=>{"use strict";n.d(t,{c:()=>o});var r=n(75484),i=n(55552);function o(e){let{props:t,name:n}=e;return(0,r.c)({props:t,name:n,defaultTheme:i.c})}},84892:(e,t,n)=>{"use strict";n.d(t,{c:()=>r});const r=n(28672).c},468:(e,t,n)=>{"use strict";n.d(t,{c:()=>r});const r=n(71196).c},65912:(e,t,n)=>{"use strict";n.d(t,{c:()=>a});var r=n(45072),i=n(99584),o=n(53458),s=n(97884);function a(e,t){function n(n,i){return(0,s.jsx)(o.c,(0,r.c)({"data-testid":"".concat(t,"Icon"),ref:i},n,{children:e}))}return n.muiName=o.c.muiName,i.memo(i.forwardRef(n))}},14008:(e,t,n)=>{"use strict";n.d(t,{c:()=>r});const r=n(82732).c},78272:(e,t,n)=>{"use strict";n.r(t),n.d(t,{capitalize:()=>i.c,createChainedFunction:()=>o.c,createSvgIcon:()=>s.c,debounce:()=>a.c,deprecatedPropType:()=>l,isMuiElement:()=>c.c,ownerDocument:()=>u.c,ownerWindow:()=>d.c,requirePropFactory:()=>h,setRef:()=>p,unstable_ClassNameGenerator:()=>x,unstable_useEnhancedEffect:()=>f.c,unstable_useId:()=>g.c,unsupportedProp:()=>m,useControlled:()=>y.c,useEventCallback:()=>v.c,useForkRef:()=>_.c,useIsFocusVisible:()=>b.c});var r=n(85115),i=n(84892),o=n(468),s=n(65912),a=n(14008);const l=function(e,t){return()=>null};var c=n(59600),u=n(25784),d=n(30360);n(45072);const h=function(e,t){return()=>null};const p=n(77472).c;var f=n(58536),g=n(25432);const m=function(e,t,n,r,i){return null};var y=n(9408),v=n(92532),_=n(38628),b=n(86516);const x={configure:e=>{r.c.configure(e)}}},59600:(e,t,n)=>{"use strict";n.d(t,{c:()=>i});var r=n(99584);const i=function(e,t){return r.isValidElement(e)&&-1!==t.indexOf(e.type.muiName)}},25784:(e,t,n)=>{"use strict";n.d(t,{c:()=>r});const r=n(75192).c},30360:(e,t,n)=>{"use strict";n.d(t,{c:()=>r});const r=n(79092).c},9408:(e,t,n)=>{"use strict";n.d(t,{c:()=>r});const r=n(55476).c},58536:(e,t,n)=>{"use strict";n.d(t,{c:()=>r});const r=n(52048).c},92532:(e,t,n)=>{"use strict";n.d(t,{c:()=>r});const r=n(9772).c},38628:(e,t,n)=>{"use strict";n.d(t,{c:()=>r});const r=n(68724).c},25432:(e,t,n)=>{"use strict";n.d(t,{c:()=>r});const r=n(52308).c},86516:(e,t,n)=>{"use strict";n.d(t,{c:()=>r});const r=n(39956).c},48021:(e,t,n)=>{"use strict";n.d(t,{c:()=>r});const r=n(99584).createContext(null)},28248:(e,t,n)=>{"use strict";n.d(t,{c:()=>o});var r=n(99584),i=n(48021);function o(){return r.useContext(i.c)}},11032:(e,t,n)=>{"use strict";n.d(t,{cp:()=>b,ot:()=>x});var r=n(99584),i=n(45072),o=n(31628),s=/^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|abbr|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|download|draggable|encType|enterKeyHint|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|translate|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|incremental|fallback|inert|itemProp|itemScope|itemType|itemID|itemRef|on|option|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/;const a=(0,o.c)((function(e){return s.test(e)||111===e.charCodeAt(0)&&110===e.charCodeAt(1)&&e.charCodeAt(2)<91}));var l=n(74079),c=n(64440),u=n(7700),d=n(27820),h=a,p=function(e){return"theme"!==e},f=function(e){return"string"===typeof e&&e.charCodeAt(0)>96?h:p},g=function(e,t,n){var r;if(t){var i=t.shouldForwardProp;r=e.__emotion_forwardProp&&i?function(t){return e.__emotion_forwardProp(t)&&i(t)}:i}return"function"!==typeof r&&n&&(r=e.__emotion_forwardProp),r},m=function(e){var t=e.cache,n=e.serialized,r=e.isStringTag;(0,c.Up)(t,n,r);(0,d.A)((function(){return(0,c.aE)(t,n,r)}));return null};const y=function e(t,n){var o,s,a=t.__emotion_real===t,d=a&&t.__emotion_base||t;void 0!==n&&(o=n.label,s=n.target);var h=g(t,n,a),p=h||f(d),y=!p("as");return function(){var v=arguments,_=a&&void 0!==t.__emotion_styles?t.__emotion_styles.slice(0):[];if(void 0!==o&&_.push("label:"+o+";"),null==v[0]||void 0===v[0].raw)_.push.apply(_,v);else{0,_.push(v[0][0]);for(var b=v.length,x=1;x<b;x++)_.push(v[x],v[0][x])}var S=(0,l.w)((function(e,t,n){var i=y&&e.as||d,o="",a=[],g=e;if(null==e.theme){for(var v in g={},e)g[v]=e[v];g.theme=(0,r.useContext)(l.T)}"string"===typeof e.className?o=(0,c.yI)(t.registered,a,e.className):null!=e.className&&(o=e.className+" ");var b=(0,u.k)(_.concat(a),t.registered,g);o+=t.key+"-"+b.name,void 0!==s&&(o+=" "+s);var x=y&&void 0===h?f(i):p,S={};for(var w in e)y&&"as"===w||x(w)&&(S[w]=e[w]);return S.className=o,S.ref=n,(0,r.createElement)(r.Fragment,null,(0,r.createElement)(m,{cache:t,serialized:b,isStringTag:"string"===typeof i}),(0,r.createElement)(i,S))}));return S.displayName=void 0!==o?o:"Styled("+("string"===typeof d?d:d.displayName||d.name||"Component")+")",S.defaultProps=t.defaultProps,S.__emotion_real=S,S.__emotion_base=d,S.__emotion_styles=_,S.__emotion_forwardProp=h,Object.defineProperty(S,"toString",{value:function(){return"."+s}}),S.withComponent=function(t,r){return e(t,(0,i.c)({},n,r,{shouldForwardProp:g(S,r,!0)})).apply(void 0,_)},S}};var v=y.bind();["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","big","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","marquee","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strong","style","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","title","tr","track","u","ul","var","video","wbr","circle","clipPath","defs","ellipse","foreignObject","g","image","line","linearGradient","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","tspan"].forEach((function(e){v[e]=v(e)}));const _=v;function b(e,t){return _(e,t)}const x=(e,t)=>{Array.isArray(e.__emotion_styles)&&(e.__emotion_styles=t(e.__emotion_styles))}},82568:(e,t,n)=>{"use strict";n.d(t,{Ws:()=>u,Yn:()=>l,cD:()=>c,gv:()=>a,ls:()=>s,my:()=>i});var r=n(59232);const i={xs:0,sm:600,md:900,lg:1200,xl:1536},o={keys:["xs","sm","md","lg","xl"],up:e=>"@media (min-width:".concat(i[e],"px)")};function s(e,t,n){const r=e.theme||{};if(Array.isArray(t)){const e=r.breakpoints||o;return t.reduce(((r,i,o)=>(r[e.up(e.keys[o])]=n(t[o]),r)),{})}if("object"===typeof t){const e=r.breakpoints||o;return Object.keys(t).reduce(((r,o)=>{if(-1!==Object.keys(e.values||i).indexOf(o)){r[e.up(o)]=n(t[o],o)}else{const e=o;r[e]=t[e]}return r}),{})}return n(t)}function a(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};var t;return(null==(t=e.keys)?void 0:t.reduce(((t,n)=>(t[e.up(n)]={},t)),{}))||{}}function l(e,t){return e.reduce(((e,t)=>{const n=e[t];return(!n||0===Object.keys(n).length)&&delete e[t],e}),t)}function c(e){const t=a(e);for(var n=arguments.length,i=new Array(n>1?n-1:0),o=1;o<n;o++)i[o-1]=arguments[o];const s=[t,...i].reduce(((e,t)=>(0,r.c)(e,t)),{});return l(Object.keys(t),s)}function u(e){let{values:t,breakpoints:n,base:r}=e;const i=r||function(e,t){if("object"!==typeof e)return{};const n={},r=Object.keys(t);return Array.isArray(e)?r.forEach(((t,r)=>{r<e.length&&(n[t]=!0)})):r.forEach((t=>{null!=e[t]&&(n[t]=!0)})),n}(t,n),o=Object.keys(i);if(0===o.length)return t;let s;return o.reduce(((e,n,r)=>(Array.isArray(t)?(e[n]=null!=t[r]?t[r]:t[s],s=r):"object"===typeof t?(e[n]=null!=t[n]?t[n]:t[s],s=n):e[n]=t,e)),{})}},35576:(e,t,n)=>{"use strict";n.d(t,{IV:()=>d,OM:()=>l,W4:()=>c,ct:()=>h,sP:()=>u});var r=n(37016);function i(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1;return Math.min(Math.max(t,e),n)}function o(e){if(e.type)return e;if("#"===e.charAt(0))return o(function(e){e=e.slice(1);const t=new RegExp(".{1,".concat(e.length>=6?2:1,"}"),"g");let n=e.match(t);return n&&1===n[0].length&&(n=n.map((e=>e+e))),n?"rgb".concat(4===n.length?"a":"","(").concat(n.map(((e,t)=>t<3?parseInt(e,16):Math.round(parseInt(e,16)/255*1e3)/1e3)).join(", "),")"):""}(e));const t=e.indexOf("("),n=e.substring(0,t);if(-1===["rgb","rgba","hsl","hsla","color"].indexOf(n))throw new Error((0,r.c)(9,e));let i,s=e.substring(t+1,e.length-1);if("color"===n){if(s=s.split(" "),i=s.shift(),4===s.length&&"/"===s[3].charAt(0)&&(s[3]=s[3].slice(1)),-1===["srgb","display-p3","a98-rgb","prophoto-rgb","rec-2020"].indexOf(i))throw new Error((0,r.c)(10,i))}else s=s.split(",");return s=s.map((e=>parseFloat(e))),{type:n,values:s,colorSpace:i}}function s(e){const{type:t,colorSpace:n}=e;let{values:r}=e;return-1!==t.indexOf("rgb")?r=r.map(((e,t)=>t<3?parseInt(e,10):e)):-1!==t.indexOf("hsl")&&(r[1]="".concat(r[1],"%"),r[2]="".concat(r[2],"%")),r=-1!==t.indexOf("color")?"".concat(n," ").concat(r.join(" ")):"".concat(r.join(", ")),"".concat(t,"(").concat(r,")")}function a(e){let t="hsl"===(e=o(e)).type||"hsla"===e.type?o(function(e){e=o(e);const{values:t}=e,n=t[0],r=t[1]/100,i=t[2]/100,a=r*Math.min(i,1-i),l=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:(e+n/30)%12;return i-a*Math.max(Math.min(t-3,9-t,1),-1)};let c="rgb";const u=[Math.round(255*l(0)),Math.round(255*l(8)),Math.round(255*l(4))];return"hsla"===e.type&&(c+="a",u.push(t[3])),s({type:c,values:u})}(e)).values:e.values;return t=t.map((t=>("color"!==e.type&&(t/=255),t<=.03928?t/12.92:((t+.055)/1.055)**2.4))),Number((.2126*t[0]+.7152*t[1]+.0722*t[2]).toFixed(3))}function l(e,t){const n=a(e),r=a(t);return(Math.max(n,r)+.05)/(Math.min(n,r)+.05)}function c(e,t){return e=o(e),t=i(t),"rgb"!==e.type&&"hsl"!==e.type||(e.type+="a"),"color"===e.type?e.values[3]="/".concat(t):e.values[3]=t,s(e)}function u(e,t){if(e=o(e),t=i(t),-1!==e.type.indexOf("hsl"))e.values[2]*=1-t;else if(-1!==e.type.indexOf("rgb")||-1!==e.type.indexOf("color"))for(let n=0;n<3;n+=1)e.values[n]*=1-t;return s(e)}function d(e,t){if(e=o(e),t=i(t),-1!==e.type.indexOf("hsl"))e.values[2]+=(100-e.values[2])*t;else if(-1!==e.type.indexOf("rgb"))for(let n=0;n<3;n+=1)e.values[n]+=(255-e.values[n])*t;else if(-1!==e.type.indexOf("color"))for(let n=0;n<3;n+=1)e.values[n]+=(1-e.values[n])*t;return s(e)}function h(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:.15;return a(e)>.5?u(e,t):d(e,t)}},8676:(e,t,n)=>{"use strict";n.d(t,{cp:()=>x,YJ:()=>_});var r=n(95656),i=n(45072),o=n(11032),s=n(61572),a=n(28672);const l=["variant"];function c(e){return 0===e.length}function u(e){const{variant:t}=e,n=(0,r.c)(e,l);let i=t||"";return Object.keys(n).sort().forEach((t=>{i+="color"===t?c(i)?e[t]:(0,a.c)(e[t]):"".concat(c(i)?t:(0,a.c)(t)).concat((0,a.c)(e[t].toString()))})),i}var d=n(76280);const h=["name","slot","skipVariantsResolver","skipSx","overridesResolver"],p=["theme"],f=["theme"];function g(e){return 0===Object.keys(e).length}const m=(e,t)=>t.components&&t.components[e]&&t.components[e].styleOverrides?t.components[e].styleOverrides:null,y=(e,t)=>{let n=[];t&&t.components&&t.components[e]&&t.components[e].variants&&(n=t.components[e].variants);const r={};return n.forEach((e=>{const t=u(e.props);r[t]=e.style})),r},v=(e,t,n,r)=>{var i,o;const{ownerState:s={}}=e,a=[],l=null==n||null==(i=n.components)||null==(o=i[r])?void 0:o.variants;return l&&l.forEach((n=>{let r=!0;Object.keys(n.props).forEach((t=>{s[t]!==n.props[t]&&e[t]!==n.props[t]&&(r=!1)})),r&&a.push(t[u(n.props)])})),a};function _(e){return"ownerState"!==e&&"theme"!==e&&"sx"!==e&&"as"!==e}const b=(0,s.c)();function x(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const{defaultTheme:t=b,rootShouldForwardProp:n=_,slotShouldForwardProp:s=_}=e,a=e=>{const n=g(e.theme)?t:e.theme;return(0,d.c)((0,i.c)({},e,{theme:n}))};return a.__mui_systemSx=!0,function(e){let l=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};(0,o.ot)(e,(e=>e.filter((e=>!(null!=e&&e.__mui_systemSx)))));const{name:c,slot:u,skipVariantsResolver:d,skipSx:b,overridesResolver:x}=l,S=(0,r.c)(l,h),w=void 0!==d?d:u&&"Root"!==u||!1,E=b||!1;let P=_;"Root"===u?P=n:u?P=s:function(e){return"string"===typeof e&&e.charCodeAt(0)>96}(e)&&(P=void 0);const C=(0,o.cp)(e,(0,i.c)({shouldForwardProp:P,label:undefined},S)),A=function(e){for(var n=arguments.length,o=new Array(n>1?n-1:0),s=1;s<n;s++)o[s-1]=arguments[s];const l=o?o.map((e=>"function"===typeof e&&e.__emotion_real!==e?n=>{let{theme:o}=n,s=(0,r.c)(n,p);return e((0,i.c)({theme:g(o)?t:o},s))}:e)):[];let u=e;c&&x&&l.push((e=>{const n=g(e.theme)?t:e.theme,r=m(c,n);if(r){const t={};return Object.entries(r).forEach((r=>{let[o,s]=r;t[o]="function"===typeof s?s((0,i.c)({},e,{theme:n})):s})),x(e,t)}return null})),c&&!w&&l.push((e=>{const n=g(e.theme)?t:e.theme;return v(e,y(c,n),n,c)})),E||l.push(a);const d=l.length-o.length;if(Array.isArray(e)&&d>0){const t=new Array(d).fill("");u=[...e,...t],u.raw=[...e.raw,...t]}else"function"===typeof e&&e.__emotion_real!==e&&(u=n=>{let{theme:o}=n,s=(0,r.c)(n,f);return e((0,i.c)({theme:g(o)?t:o},s))});return C(u,...l)};return C.withConfig&&(A.withConfig=C.withConfig),A}}},61572:(e,t,n)=>{"use strict";n.d(t,{c:()=>p});var r=n(45072),i=n(95656),o=n(59232);const s=["values","unit","step"],a=e=>{const t=Object.keys(e).map((t=>({key:t,val:e[t]})))||[];return t.sort(((e,t)=>e.val-t.val)),t.reduce(((e,t)=>(0,r.c)({},e,{[t.key]:t.val})),{})};const l={borderRadius:4};var c=n(54044);var u=n(76280),d=n(65064);const h=["breakpoints","palette","spacing","shape"];const p=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const{breakpoints:t={},palette:n={},spacing:p,shape:f={}}=e,g=(0,i.c)(e,h),m=function(e){const{values:t={xs:0,sm:600,md:900,lg:1200,xl:1536},unit:n="px",step:o=5}=e,l=(0,i.c)(e,s),c=a(t),u=Object.keys(c);function d(e){const r="number"===typeof t[e]?t[e]:e;return"@media (min-width:".concat(r).concat(n,")")}function h(e){const r="number"===typeof t[e]?t[e]:e;return"@media (max-width:".concat(r-o/100).concat(n,")")}function p(e,r){const i=u.indexOf(r);return"@media (min-width:".concat("number"===typeof t[e]?t[e]:e).concat(n,") and ")+"(max-width:".concat((-1!==i&&"number"===typeof t[u[i]]?t[u[i]]:r)-o/100).concat(n,")")}return(0,r.c)({keys:u,values:c,up:d,down:h,between:p,only:function(e){return u.indexOf(e)+1<u.length?p(e,u[u.indexOf(e)+1]):d(e)},not:function(e){const t=u.indexOf(e);return 0===t?d(u[1]):t===u.length-1?h(u[t]):p(e,u[u.indexOf(e)+1]).replace("@media","@media not all and")},unit:n},l)}(t),y=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:8;if(e.mui)return e;const t=(0,c.IV)({spacing:e}),n=function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return(0===n.length?[1]:n).map((e=>{const n=t(e);return"number"===typeof n?"".concat(n,"px"):n})).join(" ")};return n.mui=!0,n}(p);let v=(0,o.c)({breakpoints:m,direction:"ltr",components:{},palette:(0,r.c)({mode:"light"},n),spacing:y,shape:(0,r.c)({},l,f)},g);for(var _=arguments.length,b=new Array(_>1?_-1:0),x=1;x<_;x++)b[x-1]=arguments[x];return v=b.reduce(((e,t)=>(0,o.c)(e,t)),v),v.unstable_sxConfig=(0,r.c)({},d.c,null==g?void 0:g.unstable_sxConfig),v.unstable_sx=function(e){return(0,u.c)({sx:e,theme:this})},v}},4816:(e,t,n)=>{"use strict";n.d(t,{c:()=>i});var r=n(59232);const i=function(e,t){return t?(0,r.c)(e,t,{clone:!1}):e}},54044:(e,t,n)=>{"use strict";n.d(t,{IV:()=>f,WC:()=>p,uc:()=>g,qq:()=>v,UD:()=>_});var r=n(82568),i=n(92576),o=n(4816);const s={m:"margin",p:"padding"},a={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},l={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},c=function(e){const t={};return n=>(void 0===t[n]&&(t[n]=e(n)),t[n])}((e=>{if(e.length>2){if(!l[e])return[e];e=l[e]}const[t,n]=e.split(""),r=s[t],i=a[n]||"";return Array.isArray(i)?i.map((e=>r+e)):[r+i]})),u=["m","mt","mr","mb","ml","mx","my","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","marginInline","marginInlineStart","marginInlineEnd","marginBlock","marginBlockStart","marginBlockEnd"],d=["p","pt","pr","pb","pl","px","py","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY","paddingInline","paddingInlineStart","paddingInlineEnd","paddingBlock","paddingBlockStart","paddingBlockEnd"],h=[...u,...d];function p(e,t,n,r){var o;const s=null!=(o=(0,i.O0)(e,t,!1))?o:n;return"number"===typeof s?e=>"string"===typeof e?e:s*e:Array.isArray(s)?e=>"string"===typeof e?e:s[e]:"function"===typeof s?s:()=>{}}function f(e){return p(e,"spacing",8)}function g(e,t){if("string"===typeof t||null==t)return t;const n=e(Math.abs(t));return t>=0?n:"number"===typeof n?-n:"-".concat(n)}function m(e,t,n,i){if(-1===t.indexOf(n))return null;const o=function(e,t){return n=>e.reduce(((e,r)=>(e[r]=g(t,n),e)),{})}(c(n),i),s=e[n];return(0,r.ls)(e,s,o)}function y(e,t){const n=f(e.theme);return Object.keys(e).map((r=>m(e,t,r,n))).reduce(o.c,{})}function v(e){return y(e,u)}function _(e){return y(e,d)}function b(e){return y(e,h)}v.propTypes={},v.filterProps=u,_.propTypes={},_.filterProps=d,b.propTypes={},b.filterProps=h},92576:(e,t,n)=>{"use strict";n.d(t,{O0:()=>o,cp:()=>a,wt:()=>s});var r=n(28672),i=n(82568);function o(e,t){let n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];if(!t||"string"!==typeof t)return null;if(e&&e.vars&&n){const n="vars.".concat(t).split(".").reduce(((e,t)=>e&&e[t]?e[t]:null),e);if(null!=n)return n}return t.split(".").reduce(((e,t)=>e&&null!=e[t]?e[t]:null),e)}function s(e,t,n){let r,i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:n;return r="function"===typeof e?e(n):Array.isArray(e)?e[n]||i:o(e,n)||i,t&&(r=t(r,i,e)),r}const a=function(e){const{prop:t,cssProperty:n=e.prop,themeKey:a,transform:l}=e,c=e=>{if(null==e[t])return null;const c=e[t],u=o(e.theme,a)||{};return(0,i.ls)(e,c,(e=>{let i=s(u,l,e);return e===i&&"string"===typeof e&&(i=s(u,l,"".concat(t).concat("default"===e?"":(0,r.c)(e)),e)),!1===n?i:{[n]:i}}))};return c.propTypes={},c.filterProps=[t],c}},65064:(e,t,n)=>{"use strict";n.d(t,{c:()=>G});var r=n(54044),i=n(92576),o=n(4816);const s=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];const r=t.reduce(((e,t)=>(t.filterProps.forEach((n=>{e[n]=t})),e)),{}),i=e=>Object.keys(e).reduce(((t,n)=>r[n]?(0,o.c)(t,r[n](e)):t),{});return i.propTypes={},i.filterProps=t.reduce(((e,t)=>e.concat(t.filterProps)),[]),i};var a=n(82568);function l(e){return"number"!==typeof e?e:"".concat(e,"px solid")}const c=(0,i.cp)({prop:"border",themeKey:"borders",transform:l}),u=(0,i.cp)({prop:"borderTop",themeKey:"borders",transform:l}),d=(0,i.cp)({prop:"borderRight",themeKey:"borders",transform:l}),h=(0,i.cp)({prop:"borderBottom",themeKey:"borders",transform:l}),p=(0,i.cp)({prop:"borderLeft",themeKey:"borders",transform:l}),f=(0,i.cp)({prop:"borderColor",themeKey:"palette"}),g=(0,i.cp)({prop:"borderTopColor",themeKey:"palette"}),m=(0,i.cp)({prop:"borderRightColor",themeKey:"palette"}),y=(0,i.cp)({prop:"borderBottomColor",themeKey:"palette"}),v=(0,i.cp)({prop:"borderLeftColor",themeKey:"palette"}),_=e=>{if(void 0!==e.borderRadius&&null!==e.borderRadius){const t=(0,r.WC)(e.theme,"shape.borderRadius",4,"borderRadius"),n=e=>({borderRadius:(0,r.uc)(t,e)});return(0,a.ls)(e,e.borderRadius,n)}return null};_.propTypes={},_.filterProps=["borderRadius"];s(c,u,d,h,p,f,g,m,y,v,_);const b=e=>{if(void 0!==e.gap&&null!==e.gap){const t=(0,r.WC)(e.theme,"spacing",8,"gap"),n=e=>({gap:(0,r.uc)(t,e)});return(0,a.ls)(e,e.gap,n)}return null};b.propTypes={},b.filterProps=["gap"];const x=e=>{if(void 0!==e.columnGap&&null!==e.columnGap){const t=(0,r.WC)(e.theme,"spacing",8,"columnGap"),n=e=>({columnGap:(0,r.uc)(t,e)});return(0,a.ls)(e,e.columnGap,n)}return null};x.propTypes={},x.filterProps=["columnGap"];const S=e=>{if(void 0!==e.rowGap&&null!==e.rowGap){const t=(0,r.WC)(e.theme,"spacing",8,"rowGap"),n=e=>({rowGap:(0,r.uc)(t,e)});return(0,a.ls)(e,e.rowGap,n)}return null};S.propTypes={},S.filterProps=["rowGap"];s(b,x,S,(0,i.cp)({prop:"gridColumn"}),(0,i.cp)({prop:"gridRow"}),(0,i.cp)({prop:"gridAutoFlow"}),(0,i.cp)({prop:"gridAutoColumns"}),(0,i.cp)({prop:"gridAutoRows"}),(0,i.cp)({prop:"gridTemplateColumns"}),(0,i.cp)({prop:"gridTemplateRows"}),(0,i.cp)({prop:"gridTemplateAreas"}),(0,i.cp)({prop:"gridArea"}));function w(e,t){return"grey"===t?t:e}s((0,i.cp)({prop:"color",themeKey:"palette",transform:w}),(0,i.cp)({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette",transform:w}),(0,i.cp)({prop:"backgroundColor",themeKey:"palette",transform:w}));function E(e){return e<=1&&0!==e?"".concat(100*e,"%"):e}const P=(0,i.cp)({prop:"width",transform:E}),C=e=>{if(void 0!==e.maxWidth&&null!==e.maxWidth){const t=t=>{var n,r,i;return{maxWidth:(null==(n=e.theme)||null==(r=n.breakpoints)||null==(i=r.values)?void 0:i[t])||a.my[t]||E(t)}};return(0,a.ls)(e,e.maxWidth,t)}return null};C.filterProps=["maxWidth"];const A=(0,i.cp)({prop:"minWidth",transform:E}),k=(0,i.cp)({prop:"height",transform:E}),j=(0,i.cp)({prop:"maxHeight",transform:E}),I=(0,i.cp)({prop:"minHeight",transform:E}),G=((0,i.cp)({prop:"size",cssProperty:"width",transform:E}),(0,i.cp)({prop:"size",cssProperty:"height",transform:E}),s(P,C,A,k,j,I,(0,i.cp)({prop:"boxSizing"})),{border:{themeKey:"borders",transform:l},borderTop:{themeKey:"borders",transform:l},borderRight:{themeKey:"borders",transform:l},borderBottom:{themeKey:"borders",transform:l},borderLeft:{themeKey:"borders",transform:l},borderColor:{themeKey:"palette"},borderTopColor:{themeKey:"palette"},borderRightColor:{themeKey:"palette"},borderBottomColor:{themeKey:"palette"},borderLeftColor:{themeKey:"palette"},borderRadius:{themeKey:"shape.borderRadius",style:_},color:{themeKey:"palette",transform:w},bgcolor:{themeKey:"palette",cssProperty:"backgroundColor",transform:w},backgroundColor:{themeKey:"palette",transform:w},p:{style:r.UD},pt:{style:r.UD},pr:{style:r.UD},pb:{style:r.UD},pl:{style:r.UD},px:{style:r.UD},py:{style:r.UD},padding:{style:r.UD},paddingTop:{style:r.UD},paddingRight:{style:r.UD},paddingBottom:{style:r.UD},paddingLeft:{style:r.UD},paddingX:{style:r.UD},paddingY:{style:r.UD},paddingInline:{style:r.UD},paddingInlineStart:{style:r.UD},paddingInlineEnd:{style:r.UD},paddingBlock:{style:r.UD},paddingBlockStart:{style:r.UD},paddingBlockEnd:{style:r.UD},m:{style:r.qq},mt:{style:r.qq},mr:{style:r.qq},mb:{style:r.qq},ml:{style:r.qq},mx:{style:r.qq},my:{style:r.qq},margin:{style:r.qq},marginTop:{style:r.qq},marginRight:{style:r.qq},marginBottom:{style:r.qq},marginLeft:{style:r.qq},marginX:{style:r.qq},marginY:{style:r.qq},marginInline:{style:r.qq},marginInlineStart:{style:r.qq},marginInlineEnd:{style:r.qq},marginBlock:{style:r.qq},marginBlockStart:{style:r.qq},marginBlockEnd:{style:r.qq},displayPrint:{cssProperty:!1,transform:e=>({"@media print":{display:e}})},display:{},overflow:{},textOverflow:{},visibility:{},whiteSpace:{},flexBasis:{},flexDirection:{},flexWrap:{},justifyContent:{},alignItems:{},alignContent:{},order:{},flex:{},flexGrow:{},flexShrink:{},alignSelf:{},justifyItems:{},justifySelf:{},gap:{style:b},rowGap:{style:S},columnGap:{style:x},gridColumn:{},gridRow:{},gridAutoFlow:{},gridAutoColumns:{},gridAutoRows:{},gridTemplateColumns:{},gridTemplateRows:{},gridTemplateAreas:{},gridArea:{},position:{},zIndex:{themeKey:"zIndex"},top:{},right:{},bottom:{},left:{},boxShadow:{themeKey:"shadows"},width:{transform:E},maxWidth:{style:C},minWidth:{transform:E},height:{transform:E},maxHeight:{transform:E},minHeight:{transform:E},boxSizing:{},fontFamily:{themeKey:"typography"},fontSize:{themeKey:"typography"},fontStyle:{themeKey:"typography"},fontWeight:{themeKey:"typography"},letterSpacing:{},textTransform:{},lineHeight:{},textAlign:{},typography:{cssProperty:!1,themeKey:"typography"}})},76280:(e,t,n)=>{"use strict";n.d(t,{c:()=>c});var r=n(28672),i=n(4816),o=n(92576),s=n(82568),a=n(65064);const l=function(){function e(e,t,n,i){const a={[e]:t,theme:n},l=i[e];if(!l)return{[e]:t};const{cssProperty:c=e,themeKey:u,transform:d,style:h}=l;if(null==t)return null;const p=(0,o.O0)(n,u)||{};if(h)return h(a);return(0,s.ls)(a,t,(t=>{let n=(0,o.wt)(p,d,t);return t===n&&"string"===typeof t&&(n=(0,o.wt)(p,d,"".concat(e).concat("default"===t?"":(0,r.c)(t)),t)),!1===c?n:{[c]:n}}))}return function t(n){var r;const{sx:o,theme:l={}}=n||{};if(!o)return null;const c=null!=(r=l.unstable_sxConfig)?r:a.c;function u(n){let r=n;if("function"===typeof n)r=n(l);else if("object"!==typeof n)return n;if(!r)return null;const o=(0,s.gv)(l.breakpoints),a=Object.keys(o);let u=o;return Object.keys(r).forEach((n=>{const o=(a=r[n],d=l,"function"===typeof a?a(d):a);var a,d;if(null!==o&&void 0!==o)if("object"===typeof o)if(c[n])u=(0,i.c)(u,e(n,o,l,c));else{const e=(0,s.ls)({theme:l},o,(e=>({[n]:e})));!function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];const r=t.reduce(((e,t)=>e.concat(Object.keys(t))),[]),i=new Set(r);return t.every((e=>i.size===Object.keys(e).length))}(e,o)?u=(0,i.c)(u,e):u[n]=t({sx:o,theme:l})}else u=(0,i.c)(u,e(n,o,l,c))})),(0,s.Yn)(a,u)}return Array.isArray(o)?o.map(u):u(o)}}();l.filterProps=["sx"];const c=l},85648:(e,t,n)=>{"use strict";n.d(t,{c:()=>s});var r=n(61572),i=n(21564);const o=(0,r.c)();const s=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:o;return(0,i.c)(e)}},10232:(e,t,n)=>{"use strict";n.d(t,{c:()=>i});var r=n(34036);function i(e){const{theme:t,name:n,props:i}=e;return t&&t.components&&t.components[n]&&t.components[n].defaultProps?(0,r.c)(t.components[n].defaultProps,i):i}},75484:(e,t,n)=>{"use strict";n.d(t,{c:()=>o});var r=n(10232),i=n(85648);function o(e){let{props:t,name:n,defaultTheme:o}=e;const s=(0,i.c)(o);return(0,r.c)({theme:s,name:n,props:t})}},21564:(e,t,n)=>{"use strict";n.d(t,{c:()=>i});var r=n(28248);const i=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;const t=(0,r.c)();return t&&(n=t,0!==Object.keys(n).length)?t:e;var n}},85115:(e,t,n)=>{"use strict";n.d(t,{c:()=>i});const r=e=>e,i=(()=>{let e=r;return{configure(t){e=t},generate:t=>e(t),reset(){e=r}}})()},28672:(e,t,n)=>{"use strict";n.d(t,{c:()=>i});var r=n(37016);function i(e){if("string"!==typeof e)throw new Error((0,r.c)(7));return e.charAt(0).toUpperCase()+e.slice(1)}},43980:(e,t,n)=>{"use strict";function r(e,t,n){const r={};return Object.keys(e).forEach((i=>{r[i]=e[i].reduce(((e,r)=>(r&&(e.push(t(r)),n&&n[r]&&e.push(n[r])),e)),[]).join(" ")})),r}n.d(t,{c:()=>r})},71196:(e,t,n)=>{"use strict";function r(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return t.reduce(((e,t)=>null==t?e:function(){for(var n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];e.apply(this,r),t.apply(this,r)}),(()=>{}))}n.d(t,{c:()=>r})},82732:(e,t,n)=>{"use strict";function r(e){let t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:166;function r(){for(var r=arguments.length,i=new Array(r),o=0;o<r;o++)i[o]=arguments[o];clearTimeout(t),t=setTimeout((()=>{e.apply(this,i)}),n)}return r.clear=()=>{clearTimeout(t)},r}n.d(t,{c:()=>r})},59232:(e,t,n)=>{"use strict";n.d(t,{c:()=>o,o:()=>i});var r=n(45072);function i(e){return null!==e&&"object"===typeof e&&e.constructor===Object}function o(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{clone:!0};const s=n.clone?(0,r.c)({},e):e;return i(e)&&i(t)&&Object.keys(t).forEach((r=>{"__proto__"!==r&&(i(t[r])&&r in e&&i(e[r])?s[r]=o(e[r],t[r],n):s[r]=t[r])})),s}},37016:(e,t,n)=>{"use strict";function r(e){let t="https://mui.com/production-error/?code="+e;for(let n=1;n<arguments.length;n+=1)t+="&args[]="+encodeURIComponent(arguments[n]);return"Minified MUI error #"+e+"; visit "+t+" for the full message."}n.d(t,{c:()=>r})},10948:(e,t,n)=>{"use strict";n.d(t,{c:()=>o});var r=n(85115);const i={active:"active",checked:"checked",completed:"completed",disabled:"disabled",error:"error",expanded:"expanded",focused:"focused",focusVisible:"focusVisible",required:"required",selected:"selected"};function o(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"Mui";const o=i[t];return o?"".concat(n,"-").concat(o):"".concat(r.c.generate(e),"-").concat(t)}},82952:(e,t,n)=>{"use strict";n.d(t,{c:()=>i});var r=n(10948);function i(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"Mui";const i={};return t.forEach((t=>{i[t]=(0,r.c)(e,t,n)})),i}},75192:(e,t,n)=>{"use strict";function r(e){return e&&e.ownerDocument||document}n.d(t,{c:()=>r})},79092:(e,t,n)=>{"use strict";n.d(t,{c:()=>i});var r=n(75192);function i(e){return(0,r.c)(e).defaultView||window}},34036:(e,t,n)=>{"use strict";n.d(t,{c:()=>i});var r=n(45072);function i(e,t){const n=(0,r.c)({},t);return Object.keys(e).forEach((t=>{void 0===n[t]&&(n[t]=e[t])})),n}},77472:(e,t,n)=>{"use strict";function r(e,t){"function"===typeof e?e(t):e&&(e.current=t)}n.d(t,{c:()=>r})},55476:(e,t,n)=>{"use strict";n.d(t,{c:()=>i});var r=n(99584);function i(e){let{controlled:t,default:n,name:i,state:o="value"}=e;const{current:s}=r.useRef(void 0!==t),[a,l]=r.useState(n);return[s?t:a,r.useCallback((e=>{s||l(e)}),[])]}},52048:(e,t,n)=>{"use strict";n.d(t,{c:()=>i});var r=n(99584);const i="undefined"!==typeof window?r.useLayoutEffect:r.useEffect},9772:(e,t,n)=>{"use strict";n.d(t,{c:()=>o});var r=n(99584),i=n(52048);function o(e){const t=r.useRef(e);return(0,i.c)((()=>{t.current=e})),r.useCallback((function(){return(0,t.current)(...arguments)}),[])}},68724:(e,t,n)=>{"use strict";n.d(t,{c:()=>o});var r=n(99584),i=n(77472);function o(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return r.useMemo((()=>t.every((e=>null==e))?null:e=>{t.forEach((t=>{(0,i.c)(t,e)}))}),t)}},52308:(e,t,n)=>{"use strict";var r;n.d(t,{c:()=>a});var i=n(99584);let o=0;const s=(r||(r=n.t(i,2))).useId;function a(e){if(void 0!==s){const t=s();return null!=e?e:t}return function(e){const[t,n]=i.useState(e),r=e||t;return i.useEffect((()=>{null==t&&(o+=1,n("mui-".concat(o)))}),[t]),r}(e)}},39956:(e,t,n)=>{"use strict";n.d(t,{c:()=>h});var r=n(99584);let i,o=!0,s=!1;const a={text:!0,search:!0,url:!0,tel:!0,email:!0,password:!0,number:!0,date:!0,month:!0,week:!0,time:!0,datetime:!0,"datetime-local":!0};function l(e){e.metaKey||e.altKey||e.ctrlKey||(o=!0)}function c(){o=!1}function u(){"hidden"===this.visibilityState&&s&&(o=!0)}function d(e){const{target:t}=e;try{return t.matches(":focus-visible")}catch(n){}return o||function(e){const{type:t,tagName:n}=e;return!("INPUT"!==n||!a[t]||e.readOnly)||"TEXTAREA"===n&&!e.readOnly||!!e.isContentEditable}(t)}function h(){const e=r.useCallback((e=>{var t;null!=e&&((t=e.ownerDocument).addEventListener("keydown",l,!0),t.addEventListener("mousedown",c,!0),t.addEventListener("pointerdown",c,!0),t.addEventListener("touchstart",c,!0),t.addEventListener("visibilitychange",u,!0))}),[]),t=r.useRef(!1);return{isFocusVisibleRef:t,onFocus:function(e){return!!d(e)&&(t.current=!0,!0)},onBlur:function(){return!!t.current&&(s=!0,window.clearTimeout(i),i=window.setTimeout((()=>{s=!1}),100),t.current=!1,!0)},ref:e}}},6264:(e,t,n)=>{"use strict";var r=n(8520);function i(e){var t=[1/0,1/0,-1/0,-1/0];return r.coordEach(e,(function(e){t[0]>e[0]&&(t[0]=e[0]),t[1]>e[1]&&(t[1]=e[1]),t[2]<e[0]&&(t[2]=e[0]),t[3]<e[1]&&(t[3]=e[1])})),t}i.default=i,t.c=i},10320:function(e){e.exports=function(){"use strict";function e(e,n,i,o,s){t(e,n,i||0,o||e.length-1,s||r)}function t(e,r,i,o,s){for(;o>i;){if(o-i>600){var a=o-i+1,l=r-i+1,c=Math.log(a),u=.5*Math.exp(2*c/3),d=.5*Math.sqrt(c*u*(a-u)/a)*(l-a/2<0?-1:1);t(e,r,Math.max(i,Math.floor(r-l*u/a+d)),Math.min(o,Math.floor(r+(a-l)*u/a+d)),s)}var h=e[r],p=i,f=o;for(n(e,i,r),s(e[o],h)>0&&n(e,i,o);p<f;){for(n(e,p,f),p++,f--;s(e[p],h)<0;)p++;for(;s(e[f],h)>0;)f--}0===s(e[i],h)?n(e,i,f):n(e,++f,o),f<=r&&(i=f+1),r<=f&&(o=f-1)}}function n(e,t,n){var r=e[t];e[t]=e[n],e[n]=r}function r(e,t){return e<t?-1:e>t?1:0}return e}()},30519:(e,t,n)=>{"use strict";e.exports=i,e.exports.default=i;var r=n(10320);function i(e,t){if(!(this instanceof i))return new i(e,t);this._maxEntries=Math.max(4,e||9),this._minEntries=Math.max(2,Math.ceil(.4*this._maxEntries)),t&&this._initFormat(t),this.clear()}function o(e,t,n){if(!n)return t.indexOf(e);for(var r=0;r<t.length;r++)if(n(e,t[r]))return r;return-1}function s(e,t){a(e,0,e.children.length,t,e)}function a(e,t,n,r,i){i||(i=m(null)),i.minX=1/0,i.minY=1/0,i.maxX=-1/0,i.maxY=-1/0;for(var o,s=t;s<n;s++)o=e.children[s],l(i,e.leaf?r(o):o);return i}function l(e,t){return e.minX=Math.min(e.minX,t.minX),e.minY=Math.min(e.minY,t.minY),e.maxX=Math.max(e.maxX,t.maxX),e.maxY=Math.max(e.maxY,t.maxY),e}function c(e,t){return e.minX-t.minX}function u(e,t){return e.minY-t.minY}function d(e){return(e.maxX-e.minX)*(e.maxY-e.minY)}function h(e){return e.maxX-e.minX+(e.maxY-e.minY)}function p(e,t){var n=Math.max(e.minX,t.minX),r=Math.max(e.minY,t.minY),i=Math.min(e.maxX,t.maxX),o=Math.min(e.maxY,t.maxY);return Math.max(0,i-n)*Math.max(0,o-r)}function f(e,t){return e.minX<=t.minX&&e.minY<=t.minY&&t.maxX<=e.maxX&&t.maxY<=e.maxY}function g(e,t){return t.minX<=e.maxX&&t.minY<=e.maxY&&t.maxX>=e.minX&&t.maxY>=e.minY}function m(e){return{children:e,height:1,leaf:!0,minX:1/0,minY:1/0,maxX:-1/0,maxY:-1/0}}function y(e,t,n,i,o){for(var s,a=[t,n];a.length;)(n=a.pop())-(t=a.pop())<=i||(s=t+Math.ceil((n-t)/i/2)*i,r(e,s,t,n,o),a.push(t,s,s,n))}i.prototype={all:function(){return this._all(this.data,[])},search:function(e){var t=this.data,n=[],r=this.toBBox;if(!g(e,t))return n;for(var i,o,s,a,l=[];t;){for(i=0,o=t.children.length;i<o;i++)s=t.children[i],g(e,a=t.leaf?r(s):s)&&(t.leaf?n.push(s):f(e,a)?this._all(s,n):l.push(s));t=l.pop()}return n},collides:function(e){var t=this.data,n=this.toBBox;if(!g(e,t))return!1;for(var r,i,o,s,a=[];t;){for(r=0,i=t.children.length;r<i;r++)if(o=t.children[r],g(e,s=t.leaf?n(o):o)){if(t.leaf||f(e,s))return!0;a.push(o)}t=a.pop()}return!1},load:function(e){if(!e||!e.length)return this;if(e.length<this._minEntries){for(var t=0,n=e.length;t<n;t++)this.insert(e[t]);return this}var r=this._build(e.slice(),0,e.length-1,0);if(this.data.children.length)if(this.data.height===r.height)this._splitRoot(this.data,r);else{if(this.data.height<r.height){var i=this.data;this.data=r,r=i}this._insert(r,this.data.height-r.height-1,!0)}else this.data=r;return this},insert:function(e){return e&&this._insert(e,this.data.height-1),this},clear:function(){return this.data=m([]),this},remove:function(e,t){if(!e)return this;for(var n,r,i,s,a=this.data,l=this.toBBox(e),c=[],u=[];a||c.length;){if(a||(a=c.pop(),r=c[c.length-1],n=u.pop(),s=!0),a.leaf&&-1!==(i=o(e,a.children,t)))return a.children.splice(i,1),c.push(a),this._condense(c),this;s||a.leaf||!f(a,l)?r?(n++,a=r.children[n],s=!1):a=null:(c.push(a),u.push(n),n=0,r=a,a=a.children[0])}return this},toBBox:function(e){return e},compareMinX:c,compareMinY:u,toJSON:function(){return this.data},fromJSON:function(e){return this.data=e,this},_all:function(e,t){for(var n=[];e;)e.leaf?t.push.apply(t,e.children):n.push.apply(n,e.children),e=n.pop();return t},_build:function(e,t,n,r){var i,o=n-t+1,a=this._maxEntries;if(o<=a)return s(i=m(e.slice(t,n+1)),this.toBBox),i;r||(r=Math.ceil(Math.log(o)/Math.log(a)),a=Math.ceil(o/Math.pow(a,r-1))),(i=m([])).leaf=!1,i.height=r;var l,c,u,d,h=Math.ceil(o/a),p=h*Math.ceil(Math.sqrt(a));for(y(e,t,n,p,this.compareMinX),l=t;l<=n;l+=p)for(y(e,l,u=Math.min(l+p-1,n),h,this.compareMinY),c=l;c<=u;c+=h)d=Math.min(c+h-1,u),i.children.push(this._build(e,c,d,r-1));return s(i,this.toBBox),i},_chooseSubtree:function(e,t,n,r){for(var i,o,s,a,l,c,u,h,p,f;r.push(t),!t.leaf&&r.length-1!==n;){for(u=h=1/0,i=0,o=t.children.length;i<o;i++)l=d(s=t.children[i]),p=e,f=s,(c=(Math.max(f.maxX,p.maxX)-Math.min(f.minX,p.minX))*(Math.max(f.maxY,p.maxY)-Math.min(f.minY,p.minY))-l)<h?(h=c,u=l<u?l:u,a=s):c===h&&l<u&&(u=l,a=s);t=a||t.children[0]}return t},_insert:function(e,t,n){var r=this.toBBox,i=n?e:r(e),o=[],s=this._chooseSubtree(i,this.data,t,o);for(s.children.push(e),l(s,i);t>=0&&o[t].children.length>this._maxEntries;)this._split(o,t),t--;this._adjustParentBBoxes(i,o,t)},_split:function(e,t){var n=e[t],r=n.children.length,i=this._minEntries;this._chooseSplitAxis(n,i,r);var o=this._chooseSplitIndex(n,i,r),a=m(n.children.splice(o,n.children.length-o));a.height=n.height,a.leaf=n.leaf,s(n,this.toBBox),s(a,this.toBBox),t?e[t-1].children.push(a):this._splitRoot(n,a)},_splitRoot:function(e,t){this.data=m([e,t]),this.data.height=e.height+1,this.data.leaf=!1,s(this.data,this.toBBox)},_chooseSplitIndex:function(e,t,n){var r,i,o,s,l,c,u,h;for(c=u=1/0,r=t;r<=n-t;r++)s=p(i=a(e,0,r,this.toBBox),o=a(e,r,n,this.toBBox)),l=d(i)+d(o),s<c?(c=s,h=r,u=l<u?l:u):s===c&&l<u&&(u=l,h=r);return h},_chooseSplitAxis:function(e,t,n){var r=e.leaf?this.compareMinX:c,i=e.leaf?this.compareMinY:u;this._allDistMargin(e,t,n,r)<this._allDistMargin(e,t,n,i)&&e.children.sort(r)},_allDistMargin:function(e,t,n,r){e.children.sort(r);var i,o,s=this.toBBox,c=a(e,0,t,s),u=a(e,n-t,n,s),d=h(c)+h(u);for(i=t;i<n-t;i++)o=e.children[i],l(c,e.leaf?s(o):o),d+=h(c);for(i=n-t-1;i>=t;i--)o=e.children[i],l(u,e.leaf?s(o):o),d+=h(u);return d},_adjustParentBBoxes:function(e,t,n){for(var r=n;r>=0;r--)l(t[r],e)},_condense:function(e){for(var t,n=e.length-1;n>=0;n--)0===e[n].children.length?n>0?(t=e[n-1].children).splice(t.indexOf(e[n]),1):this.clear():s(e[n],this.toBBox)},_initFormat:function(e){var t=["return a"," - b",";"];this.compareMinX=new Function("a","b",t.join(e[0])),this.compareMinY=new Function("a","b",t.join(e[1])),this.toBBox=new Function("a","return {minX: a"+e[0]+", minY: a"+e[1]+", maxX: a"+e[2]+", maxY: a"+e[3]+"};")}}},34896:(e,t)=>{"use strict";function n(e,t,n){void 0===n&&(n={});var r={type:"Feature"};return(0===n.id||n.id)&&(r.id=n.id),n.bbox&&(r.bbox=n.bbox),r.properties=t||{},r.geometry=e,r}function r(e,t,r){if(void 0===r&&(r={}),!e)throw new Error("coordinates is required");if(!Array.isArray(e))throw new Error("coordinates must be an Array");if(e.length<2)throw new Error("coordinates must be at least 2 numbers long");if(!p(e[0])||!p(e[1]))throw new Error("coordinates must contain numbers");return n({type:"Point",coordinates:e},t,r)}function i(e,t,r){void 0===r&&(r={});for(var i=0,o=e;i<o.length;i++){var s=o[i];if(s.length<4)throw new Error("Each LinearRing of a Polygon must have 4 or more Positions.");for(var a=0;a<s[s.length-1].length;a++)if(s[s.length-1][a]!==s[0][a])throw new Error("First and last Position are not equivalent.")}return n({type:"Polygon",coordinates:e},t,r)}function o(e,t,r){if(void 0===r&&(r={}),e.length<2)throw new Error("coordinates must be an array of two or more positions");return n({type:"LineString",coordinates:e},t,r)}function s(e,t){void 0===t&&(t={});var n={type:"FeatureCollection"};return t.id&&(n.id=t.id),t.bbox&&(n.bbox=t.bbox),n.features=e,n}function a(e,t,r){return void 0===r&&(r={}),n({type:"MultiLineString",coordinates:e},t,r)}function l(e,t,r){return void 0===r&&(r={}),n({type:"MultiPoint",coordinates:e},t,r)}function c(e,t,r){return void 0===r&&(r={}),n({type:"MultiPolygon",coordinates:e},t,r)}function u(e,n){void 0===n&&(n="kilometers");var r=t.factors[n];if(!r)throw new Error(n+" units is invalid");return e*r}function d(e,n){void 0===n&&(n="kilometers");var r=t.factors[n];if(!r)throw new Error(n+" units is invalid");return e/r}function h(e){return 180*(e%(2*Math.PI))/Math.PI}function p(e){return!isNaN(e)&&null!==e&&!Array.isArray(e)}Object.defineProperty(t,"__esModule",{value:!0}),t.earthRadius=6371008.8,t.factors={centimeters:100*t.earthRadius,centimetres:100*t.earthRadius,degrees:t.earthRadius/111325,feet:3.28084*t.earthRadius,inches:39.37*t.earthRadius,kilometers:t.earthRadius/1e3,kilometres:t.earthRadius/1e3,meters:t.earthRadius,metres:t.earthRadius,miles:t.earthRadius/1609.344,millimeters:1e3*t.earthRadius,millimetres:1e3*t.earthRadius,nauticalmiles:t.earthRadius/1852,radians:1,yards:1.0936*t.earthRadius},t.unitsFactors={centimeters:100,centimetres:100,degrees:1/111325,feet:3.28084,inches:39.37,kilometers:.001,kilometres:.001,meters:1,metres:1,miles:1/1609.344,millimeters:1e3,millimetres:1e3,nauticalmiles:1/1852,radians:1/t.earthRadius,yards:1.0936133},t.areaFactors={acres:247105e-9,centimeters:1e4,centimetres:1e4,feet:10.763910417,hectares:1e-4,inches:1550.003100006,kilometers:1e-6,kilometres:1e-6,meters:1,metres:1,miles:386e-9,millimeters:1e6,millimetres:1e6,yards:1.195990046},t.feature=n,t.geometry=function(e,t,n){switch(void 0===n&&(n={}),e){case"Point":return r(t).geometry;case"LineString":return o(t).geometry;case"Polygon":return i(t).geometry;case"MultiPoint":return l(t).geometry;case"MultiLineString":return a(t).geometry;case"MultiPolygon":return c(t).geometry;default:throw new Error(e+" is invalid")}},t.point=r,t.points=function(e,t,n){return void 0===n&&(n={}),s(e.map((function(e){return r(e,t)})),n)},t.polygon=i,t.polygons=function(e,t,n){return void 0===n&&(n={}),s(e.map((function(e){return i(e,t)})),n)},t.lineString=o,t.lineStrings=function(e,t,n){return void 0===n&&(n={}),s(e.map((function(e){return o(e,t)})),n)},t.featureCollection=s,t.multiLineString=a,t.multiPoint=l,t.multiPolygon=c,t.geometryCollection=function(e,t,r){return void 0===r&&(r={}),n({type:"GeometryCollection",geometries:e},t,r)},t.round=function(e,t){if(void 0===t&&(t=0),t&&!(t>=0))throw new Error("precision must be a positive number");var n=Math.pow(10,t||0);return Math.round(e*n)/n},t.radiansToLength=u,t.lengthToRadians=d,t.lengthToDegrees=function(e,t){return h(d(e,t))},t.bearingToAzimuth=function(e){var t=e%360;return t<0&&(t+=360),t},t.radiansToDegrees=h,t.degreesToRadians=function(e){return e%360*Math.PI/180},t.convertLength=function(e,t,n){if(void 0===t&&(t="kilometers"),void 0===n&&(n="kilometers"),!(e>=0))throw new Error("length must be a positive number");return u(d(e,t),n)},t.convertArea=function(e,n,r){if(void 0===n&&(n="meters"),void 0===r&&(r="kilometers"),!(e>=0))throw new Error("area must be a positive number");var i=t.areaFactors[n];if(!i)throw new Error("invalid original units");var o=t.areaFactors[r];if(!o)throw new Error("invalid final units");return e/i*o},t.isNumber=p,t.isObject=function(e){return!!e&&e.constructor===Object},t.validateBBox=function(e){if(!e)throw new Error("bbox is required");if(!Array.isArray(e))throw new Error("bbox must be an Array");if(4!==e.length&&6!==e.length)throw new Error("bbox must be an Array of 4 or 6 numbers");e.forEach((function(e){if(!p(e))throw new Error("bbox must only contain numbers")}))},t.validateId=function(e){if(!e)throw new Error("id is required");if(-1===["string","number"].indexOf(typeof e))throw new Error("id must be a number or a string")}},8520:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(34896);function i(e,t,n){if(null!==e)for(var r,o,s,a,l,c,u,d,h=0,p=0,f=e.type,g="FeatureCollection"===f,m="Feature"===f,y=g?e.features.length:1,v=0;v<y;v++){l=(d=!!(u=g?e.features[v].geometry:m?e.geometry:e)&&"GeometryCollection"===u.type)?u.geometries.length:1;for(var _=0;_<l;_++){var b=0,x=0;if(null!==(a=d?u.geometries[_]:u)){c=a.coordinates;var S=a.type;switch(h=!n||"Polygon"!==S&&"MultiPolygon"!==S?0:1,S){case null:break;case"Point":if(!1===t(c,p,v,b,x))return!1;p++,b++;break;case"LineString":case"MultiPoint":for(r=0;r<c.length;r++){if(!1===t(c[r],p,v,b,x))return!1;p++,"MultiPoint"===S&&b++}"LineString"===S&&b++;break;case"Polygon":case"MultiLineString":for(r=0;r<c.length;r++){for(o=0;o<c[r].length-h;o++){if(!1===t(c[r][o],p,v,b,x))return!1;p++}"MultiLineString"===S&&b++,"Polygon"===S&&x++}"Polygon"===S&&b++;break;case"MultiPolygon":for(r=0;r<c.length;r++){for(x=0,o=0;o<c[r].length;o++){for(s=0;s<c[r][o].length-h;s++){if(!1===t(c[r][o][s],p,v,b,x))return!1;p++}x++}b++}break;case"GeometryCollection":for(r=0;r<a.geometries.length;r++)if(!1===i(a.geometries[r],t,n))return!1;break;default:throw new Error("Unknown Geometry Type")}}}}}function o(e,t){var n;switch(e.type){case"FeatureCollection":for(n=0;n<e.features.length&&!1!==t(e.features[n].properties,n);n++);break;case"Feature":t(e.properties,0)}}function s(e,t){if("Feature"===e.type)t(e,0);else if("FeatureCollection"===e.type)for(var n=0;n<e.features.length&&!1!==t(e.features[n],n);n++);}function a(e,t){var n,r,i,o,s,a,l,c,u,d,h=0,p="FeatureCollection"===e.type,f="Feature"===e.type,g=p?e.features.length:1;for(n=0;n<g;n++){for(a=p?e.features[n].geometry:f?e.geometry:e,c=p?e.features[n].properties:f?e.properties:{},u=p?e.features[n].bbox:f?e.bbox:void 0,d=p?e.features[n].id:f?e.id:void 0,s=(l=!!a&&"GeometryCollection"===a.type)?a.geometries.length:1,i=0;i<s;i++)if(null!==(o=l?a.geometries[i]:a))switch(o.type){case"Point":case"LineString":case"MultiPoint":case"Polygon":case"MultiLineString":case"MultiPolygon":if(!1===t(o,h,c,u,d))return!1;break;case"GeometryCollection":for(r=0;r<o.geometries.length;r++)if(!1===t(o.geometries[r],h,c,u,d))return!1;break;default:throw new Error("Unknown Geometry Type")}else if(!1===t(null,h,c,u,d))return!1;h++}}function l(e,t){a(e,(function(e,n,i,o,s){var a,l=null===e?null:e.type;switch(l){case null:case"Point":case"LineString":case"Polygon":return!1!==t(r.feature(e,i,{bbox:o,id:s}),n,0)&&void 0}switch(l){case"MultiPoint":a="Point";break;case"MultiLineString":a="LineString";break;case"MultiPolygon":a="Polygon"}for(var c=0;c<e.coordinates.length;c++){var u={type:a,coordinates:e.coordinates[c]};if(!1===t(r.feature(u,i),n,c))return!1}}))}function c(e,t){l(e,(function(e,n,o){var s=0;if(e.geometry){var a=e.geometry.type;if("Point"!==a&&"MultiPoint"!==a){var l,c=0,u=0,d=0;return!1!==i(e,(function(i,a,h,p,f){if(void 0===l||n>c||p>u||f>d)return l=i,c=n,u=p,d=f,void(s=0);var g=r.lineString([l,i],e.properties);if(!1===t(g,n,o,f,s))return!1;s++,l=i}))&&void 0}}}))}function u(e,t){if(!e)throw new Error("geojson is required");l(e,(function(e,n,i){if(null!==e.geometry){var o=e.geometry.type,s=e.geometry.coordinates;switch(o){case"LineString":if(!1===t(e,n,i,0,0))return!1;break;case"Polygon":for(var a=0;a<s.length;a++)if(!1===t(r.lineString(s[a],e.properties),n,i,a))return!1}}}))}t.coordAll=function(e){var t=[];return i(e,(function(e){t.push(e)})),t},t.coordEach=i,t.coordReduce=function(e,t,n,r){var o=n;return i(e,(function(e,r,i,s,a){o=0===r&&void 0===n?e:t(o,e,r,i,s,a)}),r),o},t.featureEach=s,t.featureReduce=function(e,t,n){var r=n;return s(e,(function(e,i){r=0===i&&void 0===n?e:t(r,e,i)})),r},t.findPoint=function(e,t){if(t=t||{},!r.isObject(t))throw new Error("options is invalid");var n,i=t.featureIndex||0,o=t.multiFeatureIndex||0,s=t.geometryIndex||0,a=t.coordIndex||0,l=t.properties;switch(e.type){case"FeatureCollection":i<0&&(i=e.features.length+i),l=l||e.features[i].properties,n=e.features[i].geometry;break;case"Feature":l=l||e.properties,n=e.geometry;break;case"Point":case"MultiPoint":return null;case"LineString":case"Polygon":case"MultiLineString":case"MultiPolygon":n=e;break;default:throw new Error("geojson is invalid")}if(null===n)return null;var c=n.coordinates;switch(n.type){case"Point":return r.point(c,l,t);case"MultiPoint":return o<0&&(o=c.length+o),r.point(c[o],l,t);case"LineString":return a<0&&(a=c.length+a),r.point(c[a],l,t);case"Polygon":return s<0&&(s=c.length+s),a<0&&(a=c[s].length+a),r.point(c[s][a],l,t);case"MultiLineString":return o<0&&(o=c.length+o),a<0&&(a=c[o].length+a),r.point(c[o][a],l,t);case"MultiPolygon":return o<0&&(o=c.length+o),s<0&&(s=c[o].length+s),a<0&&(a=c[o][s].length-a),r.point(c[o][s][a],l,t)}throw new Error("geojson is invalid")},t.findSegment=function(e,t){if(t=t||{},!r.isObject(t))throw new Error("options is invalid");var n,i=t.featureIndex||0,o=t.multiFeatureIndex||0,s=t.geometryIndex||0,a=t.segmentIndex||0,l=t.properties;switch(e.type){case"FeatureCollection":i<0&&(i=e.features.length+i),l=l||e.features[i].properties,n=e.features[i].geometry;break;case"Feature":l=l||e.properties,n=e.geometry;break;case"Point":case"MultiPoint":return null;case"LineString":case"Polygon":case"MultiLineString":case"MultiPolygon":n=e;break;default:throw new Error("geojson is invalid")}if(null===n)return null;var c=n.coordinates;switch(n.type){case"Point":case"MultiPoint":return null;case"LineString":return a<0&&(a=c.length+a-1),r.lineString([c[a],c[a+1]],l,t);case"Polygon":return s<0&&(s=c.length+s),a<0&&(a=c[s].length+a-1),r.lineString([c[s][a],c[s][a+1]],l,t);case"MultiLineString":return o<0&&(o=c.length+o),a<0&&(a=c[o].length+a-1),r.lineString([c[o][a],c[o][a+1]],l,t);case"MultiPolygon":return o<0&&(o=c.length+o),s<0&&(s=c[o].length+s),a<0&&(a=c[o][s].length-a-1),r.lineString([c[o][s][a],c[o][s][a+1]],l,t)}throw new Error("geojson is invalid")},t.flattenEach=l,t.flattenReduce=function(e,t,n){var r=n;return l(e,(function(e,i,o){r=0===i&&0===o&&void 0===n?e:t(r,e,i,o)})),r},t.geomEach=a,t.geomReduce=function(e,t,n){var r=n;return a(e,(function(e,i,o,s,a){r=0===i&&void 0===n?e:t(r,e,i,o,s,a)})),r},t.lineEach=u,t.lineReduce=function(e,t,n){var r=n;return u(e,(function(e,i,o,s){r=0===i&&void 0===n?e:t(r,e,i,o,s)})),r},t.propEach=o,t.propReduce=function(e,t,n){var r=n;return o(e,(function(e,i){r=0===i&&void 0===n?e:t(r,e,i)})),r},t.segmentEach=c,t.segmentReduce=function(e,t,n){var r=n,i=!1;return c(e,(function(e,o,s,a,l){r=!1===i&&void 0===n?e:t(r,e,o,s,a,l),i=!0})),r}},23924:function(e){e.exports=function(){"use strict";function e(e,n,i,o,s){t(e,n,i||0,o||e.length-1,s||r)}function t(e,r,i,o,s){for(;o>i;){if(o-i>600){var a=o-i+1,l=r-i+1,c=Math.log(a),u=.5*Math.exp(2*c/3),d=.5*Math.sqrt(c*u*(a-u)/a)*(l-a/2<0?-1:1);t(e,r,Math.max(i,Math.floor(r-l*u/a+d)),Math.min(o,Math.floor(r+(a-l)*u/a+d)),s)}var h=e[r],p=i,f=o;for(n(e,i,r),s(e[o],h)>0&&n(e,i,o);p<f;){for(n(e,p,f),p++,f--;s(e[p],h)<0;)p++;for(;s(e[f],h)>0;)f--}0===s(e[i],h)?n(e,i,f):n(e,++f,o),f<=r&&(i=f+1),r<=f&&(o=f-1)}}function n(e,t,n){var r=e[t];e[t]=e[n],e[n]=r}function r(e,t){return e<t?-1:e>t?1:0}return e}()},40664:(e,t,n)=>{"use strict";e.exports=i,e.exports.default=i;var r=n(23924);function i(e,t){if(!(this instanceof i))return new i(e,t);this._maxEntries=Math.max(4,e||9),this._minEntries=Math.max(2,Math.ceil(.4*this._maxEntries)),t&&this._initFormat(t),this.clear()}function o(e,t,n){if(!n)return t.indexOf(e);for(var r=0;r<t.length;r++)if(n(e,t[r]))return r;return-1}function s(e,t){a(e,0,e.children.length,t,e)}function a(e,t,n,r,i){i||(i=m(null)),i.minX=1/0,i.minY=1/0,i.maxX=-1/0,i.maxY=-1/0;for(var o,s=t;s<n;s++)o=e.children[s],l(i,e.leaf?r(o):o);return i}function l(e,t){return e.minX=Math.min(e.minX,t.minX),e.minY=Math.min(e.minY,t.minY),e.maxX=Math.max(e.maxX,t.maxX),e.maxY=Math.max(e.maxY,t.maxY),e}function c(e,t){return e.minX-t.minX}function u(e,t){return e.minY-t.minY}function d(e){return(e.maxX-e.minX)*(e.maxY-e.minY)}function h(e){return e.maxX-e.minX+(e.maxY-e.minY)}function p(e,t){var n=Math.max(e.minX,t.minX),r=Math.max(e.minY,t.minY),i=Math.min(e.maxX,t.maxX),o=Math.min(e.maxY,t.maxY);return Math.max(0,i-n)*Math.max(0,o-r)}function f(e,t){return e.minX<=t.minX&&e.minY<=t.minY&&t.maxX<=e.maxX&&t.maxY<=e.maxY}function g(e,t){return t.minX<=e.maxX&&t.minY<=e.maxY&&t.maxX>=e.minX&&t.maxY>=e.minY}function m(e){return{children:e,height:1,leaf:!0,minX:1/0,minY:1/0,maxX:-1/0,maxY:-1/0}}function y(e,t,n,i,o){for(var s,a=[t,n];a.length;)(n=a.pop())-(t=a.pop())<=i||(s=t+Math.ceil((n-t)/i/2)*i,r(e,s,t,n,o),a.push(t,s,s,n))}i.prototype={all:function(){return this._all(this.data,[])},search:function(e){var t=this.data,n=[],r=this.toBBox;if(!g(e,t))return n;for(var i,o,s,a,l=[];t;){for(i=0,o=t.children.length;i<o;i++)s=t.children[i],g(e,a=t.leaf?r(s):s)&&(t.leaf?n.push(s):f(e,a)?this._all(s,n):l.push(s));t=l.pop()}return n},collides:function(e){var t=this.data,n=this.toBBox;if(!g(e,t))return!1;for(var r,i,o,s,a=[];t;){for(r=0,i=t.children.length;r<i;r++)if(o=t.children[r],g(e,s=t.leaf?n(o):o)){if(t.leaf||f(e,s))return!0;a.push(o)}t=a.pop()}return!1},load:function(e){if(!e||!e.length)return this;if(e.length<this._minEntries){for(var t=0,n=e.length;t<n;t++)this.insert(e[t]);return this}var r=this._build(e.slice(),0,e.length-1,0);if(this.data.children.length)if(this.data.height===r.height)this._splitRoot(this.data,r);else{if(this.data.height<r.height){var i=this.data;this.data=r,r=i}this._insert(r,this.data.height-r.height-1,!0)}else this.data=r;return this},insert:function(e){return e&&this._insert(e,this.data.height-1),this},clear:function(){return this.data=m([]),this},remove:function(e,t){if(!e)return this;for(var n,r,i,s,a=this.data,l=this.toBBox(e),c=[],u=[];a||c.length;){if(a||(a=c.pop(),r=c[c.length-1],n=u.pop(),s=!0),a.leaf&&-1!==(i=o(e,a.children,t)))return a.children.splice(i,1),c.push(a),this._condense(c),this;s||a.leaf||!f(a,l)?r?(n++,a=r.children[n],s=!1):a=null:(c.push(a),u.push(n),n=0,r=a,a=a.children[0])}return this},toBBox:function(e){return e},compareMinX:c,compareMinY:u,toJSON:function(){return this.data},fromJSON:function(e){return this.data=e,this},_all:function(e,t){for(var n=[];e;)e.leaf?t.push.apply(t,e.children):n.push.apply(n,e.children),e=n.pop();return t},_build:function(e,t,n,r){var i,o=n-t+1,a=this._maxEntries;if(o<=a)return s(i=m(e.slice(t,n+1)),this.toBBox),i;r||(r=Math.ceil(Math.log(o)/Math.log(a)),a=Math.ceil(o/Math.pow(a,r-1))),(i=m([])).leaf=!1,i.height=r;var l,c,u,d,h=Math.ceil(o/a),p=h*Math.ceil(Math.sqrt(a));for(y(e,t,n,p,this.compareMinX),l=t;l<=n;l+=p)for(y(e,l,u=Math.min(l+p-1,n),h,this.compareMinY),c=l;c<=u;c+=h)d=Math.min(c+h-1,u),i.children.push(this._build(e,c,d,r-1));return s(i,this.toBBox),i},_chooseSubtree:function(e,t,n,r){for(var i,o,s,a,l,c,u,h,p,f;r.push(t),!t.leaf&&r.length-1!==n;){for(u=h=1/0,i=0,o=t.children.length;i<o;i++)l=d(s=t.children[i]),p=e,f=s,(c=(Math.max(f.maxX,p.maxX)-Math.min(f.minX,p.minX))*(Math.max(f.maxY,p.maxY)-Math.min(f.minY,p.minY))-l)<h?(h=c,u=l<u?l:u,a=s):c===h&&l<u&&(u=l,a=s);t=a||t.children[0]}return t},_insert:function(e,t,n){var r=this.toBBox,i=n?e:r(e),o=[],s=this._chooseSubtree(i,this.data,t,o);for(s.children.push(e),l(s,i);t>=0&&o[t].children.length>this._maxEntries;)this._split(o,t),t--;this._adjustParentBBoxes(i,o,t)},_split:function(e,t){var n=e[t],r=n.children.length,i=this._minEntries;this._chooseSplitAxis(n,i,r);var o=this._chooseSplitIndex(n,i,r),a=m(n.children.splice(o,n.children.length-o));a.height=n.height,a.leaf=n.leaf,s(n,this.toBBox),s(a,this.toBBox),t?e[t-1].children.push(a):this._splitRoot(n,a)},_splitRoot:function(e,t){this.data=m([e,t]),this.data.height=e.height+1,this.data.leaf=!1,s(this.data,this.toBBox)},_chooseSplitIndex:function(e,t,n){var r,i,o,s,l,c,u,h;for(c=u=1/0,r=t;r<=n-t;r++)s=p(i=a(e,0,r,this.toBBox),o=a(e,r,n,this.toBBox)),l=d(i)+d(o),s<c?(c=s,h=r,u=l<u?l:u):s===c&&l<u&&(u=l,h=r);return h},_chooseSplitAxis:function(e,t,n){var r=e.leaf?this.compareMinX:c,i=e.leaf?this.compareMinY:u;this._allDistMargin(e,t,n,r)<this._allDistMargin(e,t,n,i)&&e.children.sort(r)},_allDistMargin:function(e,t,n,r){e.children.sort(r);var i,o,s=this.toBBox,c=a(e,0,t,s),u=a(e,n-t,n,s),d=h(c)+h(u);for(i=t;i<n-t;i++)o=e.children[i],l(c,e.leaf?s(o):o),d+=h(c);for(i=n-t-1;i>=t;i--)o=e.children[i],l(u,e.leaf?s(o):o),d+=h(u);return d},_adjustParentBBoxes:function(e,t,n){for(var r=n;r>=0;r--)l(t[r],e)},_condense:function(e){for(var t,n=e.length-1;n>=0;n--)0===e[n].children.length?n>0?(t=e[n-1].children).splice(t.indexOf(e[n]),1):this.clear():s(e[n],this.toBBox)},_initFormat:function(e){var t=["return a"," - b",";"];this.compareMinX=new Function("a","b",t.join(e[0])),this.compareMinY=new Function("a","b",t.join(e[1])),this.toBBox=new Function("a","return {minX: a"+e[0]+", minY: a"+e[1]+", maxX: a"+e[2]+", maxY: a"+e[3]+"};")}}},88856:(e,t)=>{"use strict";t.c=function(e,t){if(e&&t){var n=Array.isArray(t)?t:t.split(","),r=e.name||"",i=(e.type||"").toLowerCase(),o=i.replace(/\/.*$/,"");return n.some((function(e){var t=e.trim().toLowerCase();return"."===t.charAt(0)?r.toLowerCase().endsWith(t):t.endsWith("/*")?o===t.replace(/\/.*$/,""):i===t}))}return!0}},37172:(e,t)=>{"use strict";t.byteLength=function(e){var t=a(e),n=t[0],r=t[1];return 3*(n+r)/4-r},t.toByteArray=function(e){var t,n,o=a(e),s=o[0],l=o[1],c=new i(function(e,t,n){return 3*(t+n)/4-n}(0,s,l)),u=0,d=l>0?s-4:s;for(n=0;n<d;n+=4)t=r[e.charCodeAt(n)]<<18|r[e.charCodeAt(n+1)]<<12|r[e.charCodeAt(n+2)]<<6|r[e.charCodeAt(n+3)],c[u++]=t>>16&255,c[u++]=t>>8&255,c[u++]=255&t;2===l&&(t=r[e.charCodeAt(n)]<<2|r[e.charCodeAt(n+1)]>>4,c[u++]=255&t);1===l&&(t=r[e.charCodeAt(n)]<<10|r[e.charCodeAt(n+1)]<<4|r[e.charCodeAt(n+2)]>>2,c[u++]=t>>8&255,c[u++]=255&t);return c},t.fromByteArray=function(e){for(var t,r=e.length,i=r%3,o=[],s=16383,a=0,c=r-i;a<c;a+=s)o.push(l(e,a,a+s>c?c:a+s));1===i?(t=e[r-1],o.push(n[t>>2]+n[t<<4&63]+"==")):2===i&&(t=(e[r-2]<<8)+e[r-1],o.push(n[t>>10]+n[t>>4&63]+n[t<<2&63]+"="));return o.join("")};for(var n=[],r=[],i="undefined"!==typeof Uint8Array?Uint8Array:Array,o="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",s=0;s<64;++s)n[s]=o[s],r[o.charCodeAt(s)]=s;function a(e){var t=e.length;if(t%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var n=e.indexOf("=");return-1===n&&(n=t),[n,n===t?0:4-n%4]}function l(e,t,r){for(var i,o,s=[],a=t;a<r;a+=3)i=(e[a]<<16&16711680)+(e[a+1]<<8&65280)+(255&e[a+2]),s.push(n[(o=i)>>18&63]+n[o>>12&63]+n[o>>6&63]+n[63&o]);return s.join("")}r["-".charCodeAt(0)]=62,r["_".charCodeAt(0)]=63},37160:(e,t,n)=>{"use strict";const r=n(37172),i=n(28580),o="function"===typeof Symbol&&"function"===typeof Symbol.for?Symbol.for("nodejs.util.inspect.custom"):null;t.Sn=l,t.ZK=50;const s=2147483647;function a(e){if(e>s)throw new RangeError('The value "'+e+'" is invalid for option "size"');const t=new Uint8Array(e);return Object.setPrototypeOf(t,l.prototype),t}function l(e,t,n){if("number"===typeof e){if("string"===typeof t)throw new TypeError('The "string" argument must be of type string. Received type number');return d(e)}return c(e,t,n)}function c(e,t,n){if("string"===typeof e)return function(e,t){"string"===typeof t&&""!==t||(t="utf8");if(!l.isEncoding(t))throw new TypeError("Unknown encoding: "+t);const n=0|g(e,t);let r=a(n);const i=r.write(e,t);i!==n&&(r=r.slice(0,i));return r}(e,t);if(ArrayBuffer.isView(e))return function(e){if(K(e,Uint8Array)){const t=new Uint8Array(e);return p(t.buffer,t.byteOffset,t.byteLength)}return h(e)}(e);if(null==e)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof e);if(K(e,ArrayBuffer)||e&&K(e.buffer,ArrayBuffer))return p(e,t,n);if("undefined"!==typeof SharedArrayBuffer&&(K(e,SharedArrayBuffer)||e&&K(e.buffer,SharedArrayBuffer)))return p(e,t,n);if("number"===typeof e)throw new TypeError('The "value" argument must not be of type number. Received type number');const r=e.valueOf&&e.valueOf();if(null!=r&&r!==e)return l.from(r,t,n);const i=function(e){if(l.isBuffer(e)){const t=0|f(e.length),n=a(t);return 0===n.length||e.copy(n,0,0,t),n}if(void 0!==e.length)return"number"!==typeof e.length||Z(e.length)?a(0):h(e);if("Buffer"===e.type&&Array.isArray(e.data))return h(e.data)}(e);if(i)return i;if("undefined"!==typeof Symbol&&null!=Symbol.toPrimitive&&"function"===typeof e[Symbol.toPrimitive])return l.from(e[Symbol.toPrimitive]("string"),t,n);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof e)}function u(e){if("number"!==typeof e)throw new TypeError('"size" argument must be of type number');if(e<0)throw new RangeError('The value "'+e+'" is invalid for option "size"')}function d(e){return u(e),a(e<0?0:0|f(e))}function h(e){const t=e.length<0?0:0|f(e.length),n=a(t);for(let r=0;r<t;r+=1)n[r]=255&e[r];return n}function p(e,t,n){if(t<0||e.byteLength<t)throw new RangeError('"offset" is outside of buffer bounds');if(e.byteLength<t+(n||0))throw new RangeError('"length" is outside of buffer bounds');let r;return r=void 0===t&&void 0===n?new Uint8Array(e):void 0===n?new Uint8Array(e,t):new Uint8Array(e,t,n),Object.setPrototypeOf(r,l.prototype),r}function f(e){if(e>=s)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+s.toString(16)+" bytes");return 0|e}function g(e,t){if(l.isBuffer(e))return e.length;if(ArrayBuffer.isView(e)||K(e,ArrayBuffer))return e.byteLength;if("string"!==typeof e)throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof e);const n=e.length,r=arguments.length>2&&!0===arguments[2];if(!r&&0===n)return 0;let i=!1;for(;;)switch(t){case"ascii":case"latin1":case"binary":return n;case"utf8":case"utf-8":return q(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*n;case"hex":return n>>>1;case"base64":return X(e).length;default:if(i)return r?-1:q(e).length;t=(""+t).toLowerCase(),i=!0}}function m(e,t,n){let r=!1;if((void 0===t||t<0)&&(t=0),t>this.length)return"";if((void 0===n||n>this.length)&&(n=this.length),n<=0)return"";if((n>>>=0)<=(t>>>=0))return"";for(e||(e="utf8");;)switch(e){case"hex":return I(this,t,n);case"utf8":case"utf-8":return C(this,t,n);case"ascii":return k(this,t,n);case"latin1":case"binary":return j(this,t,n);case"base64":return P(this,t,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return G(this,t,n);default:if(r)throw new TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),r=!0}}function y(e,t,n){const r=e[t];e[t]=e[n],e[n]=r}function v(e,t,n,r,i){if(0===e.length)return-1;if("string"===typeof n?(r=n,n=0):n>2147483647?n=2147483647:n<-2147483648&&(n=-2147483648),Z(n=+n)&&(n=i?0:e.length-1),n<0&&(n=e.length+n),n>=e.length){if(i)return-1;n=e.length-1}else if(n<0){if(!i)return-1;n=0}if("string"===typeof t&&(t=l.from(t,r)),l.isBuffer(t))return 0===t.length?-1:_(e,t,n,r,i);if("number"===typeof t)return t&=255,"function"===typeof Uint8Array.prototype.indexOf?i?Uint8Array.prototype.indexOf.call(e,t,n):Uint8Array.prototype.lastIndexOf.call(e,t,n):_(e,[t],n,r,i);throw new TypeError("val must be string, number or Buffer")}function _(e,t,n,r,i){let o,s=1,a=e.length,l=t.length;if(void 0!==r&&("ucs2"===(r=String(r).toLowerCase())||"ucs-2"===r||"utf16le"===r||"utf-16le"===r)){if(e.length<2||t.length<2)return-1;s=2,a/=2,l/=2,n/=2}function c(e,t){return 1===s?e[t]:e.readUInt16BE(t*s)}if(i){let r=-1;for(o=n;o<a;o++)if(c(e,o)===c(t,-1===r?0:o-r)){if(-1===r&&(r=o),o-r+1===l)return r*s}else-1!==r&&(o-=o-r),r=-1}else for(n+l>a&&(n=a-l),o=n;o>=0;o--){let n=!0;for(let r=0;r<l;r++)if(c(e,o+r)!==c(t,r)){n=!1;break}if(n)return o}return-1}function b(e,t,n,r){n=Number(n)||0;const i=e.length-n;r?(r=Number(r))>i&&(r=i):r=i;const o=t.length;let s;for(r>o/2&&(r=o/2),s=0;s<r;++s){const r=parseInt(t.substr(2*s,2),16);if(Z(r))return s;e[n+s]=r}return s}function x(e,t,n,r){return Y(q(t,e.length-n),e,n,r)}function S(e,t,n,r){return Y(function(e){const t=[];for(let n=0;n<e.length;++n)t.push(255&e.charCodeAt(n));return t}(t),e,n,r)}function w(e,t,n,r){return Y(X(t),e,n,r)}function E(e,t,n,r){return Y(function(e,t){let n,r,i;const o=[];for(let s=0;s<e.length&&!((t-=2)<0);++s)n=e.charCodeAt(s),r=n>>8,i=n%256,o.push(i),o.push(r);return o}(t,e.length-n),e,n,r)}function P(e,t,n){return 0===t&&n===e.length?r.fromByteArray(e):r.fromByteArray(e.slice(t,n))}function C(e,t,n){n=Math.min(e.length,n);const r=[];let i=t;for(;i<n;){const t=e[i];let o=null,s=t>239?4:t>223?3:t>191?2:1;if(i+s<=n){let n,r,a,l;switch(s){case 1:t<128&&(o=t);break;case 2:n=e[i+1],128===(192&n)&&(l=(31&t)<<6|63&n,l>127&&(o=l));break;case 3:n=e[i+1],r=e[i+2],128===(192&n)&&128===(192&r)&&(l=(15&t)<<12|(63&n)<<6|63&r,l>2047&&(l<55296||l>57343)&&(o=l));break;case 4:n=e[i+1],r=e[i+2],a=e[i+3],128===(192&n)&&128===(192&r)&&128===(192&a)&&(l=(15&t)<<18|(63&n)<<12|(63&r)<<6|63&a,l>65535&&l<1114112&&(o=l))}}null===o?(o=65533,s=1):o>65535&&(o-=65536,r.push(o>>>10&1023|55296),o=56320|1023&o),r.push(o),i+=s}return function(e){const t=e.length;if(t<=A)return String.fromCharCode.apply(String,e);let n="",r=0;for(;r<t;)n+=String.fromCharCode.apply(String,e.slice(r,r+=A));return n}(r)}l.TYPED_ARRAY_SUPPORT=function(){try{const e=new Uint8Array(1),t={foo:function(){return 42}};return Object.setPrototypeOf(t,Uint8Array.prototype),Object.setPrototypeOf(e,t),42===e.foo()}catch(e){return!1}}(),l.TYPED_ARRAY_SUPPORT||"undefined"===typeof console||"function"!==typeof console.error||console.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support."),Object.defineProperty(l.prototype,"parent",{enumerable:!0,get:function(){if(l.isBuffer(this))return this.buffer}}),Object.defineProperty(l.prototype,"offset",{enumerable:!0,get:function(){if(l.isBuffer(this))return this.byteOffset}}),l.poolSize=8192,l.from=function(e,t,n){return c(e,t,n)},Object.setPrototypeOf(l.prototype,Uint8Array.prototype),Object.setPrototypeOf(l,Uint8Array),l.alloc=function(e,t,n){return function(e,t,n){return u(e),e<=0?a(e):void 0!==t?"string"===typeof n?a(e).fill(t,n):a(e).fill(t):a(e)}(e,t,n)},l.allocUnsafe=function(e){return d(e)},l.allocUnsafeSlow=function(e){return d(e)},l.isBuffer=function(e){return null!=e&&!0===e._isBuffer&&e!==l.prototype},l.compare=function(e,t){if(K(e,Uint8Array)&&(e=l.from(e,e.offset,e.byteLength)),K(t,Uint8Array)&&(t=l.from(t,t.offset,t.byteLength)),!l.isBuffer(e)||!l.isBuffer(t))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(e===t)return 0;let n=e.length,r=t.length;for(let i=0,o=Math.min(n,r);i<o;++i)if(e[i]!==t[i]){n=e[i],r=t[i];break}return n<r?-1:r<n?1:0},l.isEncoding=function(e){switch(String(e).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},l.concat=function(e,t){if(!Array.isArray(e))throw new TypeError('"list" argument must be an Array of Buffers');if(0===e.length)return l.alloc(0);let n;if(void 0===t)for(t=0,n=0;n<e.length;++n)t+=e[n].length;const r=l.allocUnsafe(t);let i=0;for(n=0;n<e.length;++n){let t=e[n];if(K(t,Uint8Array))i+t.length>r.length?(l.isBuffer(t)||(t=l.from(t)),t.copy(r,i)):Uint8Array.prototype.set.call(r,t,i);else{if(!l.isBuffer(t))throw new TypeError('"list" argument must be an Array of Buffers');t.copy(r,i)}i+=t.length}return r},l.byteLength=g,l.prototype._isBuffer=!0,l.prototype.swap16=function(){const e=this.length;if(e%2!==0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(let t=0;t<e;t+=2)y(this,t,t+1);return this},l.prototype.swap32=function(){const e=this.length;if(e%4!==0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(let t=0;t<e;t+=4)y(this,t,t+3),y(this,t+1,t+2);return this},l.prototype.swap64=function(){const e=this.length;if(e%8!==0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(let t=0;t<e;t+=8)y(this,t,t+7),y(this,t+1,t+6),y(this,t+2,t+5),y(this,t+3,t+4);return this},l.prototype.toString=function(){const e=this.length;return 0===e?"":0===arguments.length?C(this,0,e):m.apply(this,arguments)},l.prototype.toLocaleString=l.prototype.toString,l.prototype.equals=function(e){if(!l.isBuffer(e))throw new TypeError("Argument must be a Buffer");return this===e||0===l.compare(this,e)},l.prototype.inspect=function(){let e="";const n=t.ZK;return e=this.toString("hex",0,n).replace(/(.{2})/g,"$1 ").trim(),this.length>n&&(e+=" ... "),"<Buffer "+e+">"},o&&(l.prototype[o]=l.prototype.inspect),l.prototype.compare=function(e,t,n,r,i){if(K(e,Uint8Array)&&(e=l.from(e,e.offset,e.byteLength)),!l.isBuffer(e))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof e);if(void 0===t&&(t=0),void 0===n&&(n=e?e.length:0),void 0===r&&(r=0),void 0===i&&(i=this.length),t<0||n>e.length||r<0||i>this.length)throw new RangeError("out of range index");if(r>=i&&t>=n)return 0;if(r>=i)return-1;if(t>=n)return 1;if(this===e)return 0;let o=(i>>>=0)-(r>>>=0),s=(n>>>=0)-(t>>>=0);const a=Math.min(o,s),c=this.slice(r,i),u=e.slice(t,n);for(let l=0;l<a;++l)if(c[l]!==u[l]){o=c[l],s=u[l];break}return o<s?-1:s<o?1:0},l.prototype.includes=function(e,t,n){return-1!==this.indexOf(e,t,n)},l.prototype.indexOf=function(e,t,n){return v(this,e,t,n,!0)},l.prototype.lastIndexOf=function(e,t,n){return v(this,e,t,n,!1)},l.prototype.write=function(e,t,n,r){if(void 0===t)r="utf8",n=this.length,t=0;else if(void 0===n&&"string"===typeof t)r=t,n=this.length,t=0;else{if(!isFinite(t))throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");t>>>=0,isFinite(n)?(n>>>=0,void 0===r&&(r="utf8")):(r=n,n=void 0)}const i=this.length-t;if((void 0===n||n>i)&&(n=i),e.length>0&&(n<0||t<0)||t>this.length)throw new RangeError("Attempt to write outside buffer bounds");r||(r="utf8");let o=!1;for(;;)switch(r){case"hex":return b(this,e,t,n);case"utf8":case"utf-8":return x(this,e,t,n);case"ascii":case"latin1":case"binary":return S(this,e,t,n);case"base64":return w(this,e,t,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return E(this,e,t,n);default:if(o)throw new TypeError("Unknown encoding: "+r);r=(""+r).toLowerCase(),o=!0}},l.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};const A=4096;function k(e,t,n){let r="";n=Math.min(e.length,n);for(let i=t;i<n;++i)r+=String.fromCharCode(127&e[i]);return r}function j(e,t,n){let r="";n=Math.min(e.length,n);for(let i=t;i<n;++i)r+=String.fromCharCode(e[i]);return r}function I(e,t,n){const r=e.length;(!t||t<0)&&(t=0),(!n||n<0||n>r)&&(n=r);let i="";for(let o=t;o<n;++o)i+=$[e[o]];return i}function G(e,t,n){const r=e.slice(t,n);let i="";for(let o=0;o<r.length-1;o+=2)i+=String.fromCharCode(r[o]+256*r[o+1]);return i}function T(e,t,n){if(e%1!==0||e<0)throw new RangeError("offset is not uint");if(e+t>n)throw new RangeError("Trying to access beyond buffer length")}function M(e,t,n,r,i,o){if(!l.isBuffer(e))throw new TypeError('"buffer" argument must be a Buffer instance');if(t>i||t<o)throw new RangeError('"value" argument is out of bounds');if(n+r>e.length)throw new RangeError("Index out of range")}function O(e,t,n,r,i){B(t,r,i,e,n,7);let o=Number(t&BigInt(4294967295));e[n++]=o,o>>=8,e[n++]=o,o>>=8,e[n++]=o,o>>=8,e[n++]=o;let s=Number(t>>BigInt(32)&BigInt(4294967295));return e[n++]=s,s>>=8,e[n++]=s,s>>=8,e[n++]=s,s>>=8,e[n++]=s,n}function R(e,t,n,r,i){B(t,r,i,e,n,7);let o=Number(t&BigInt(4294967295));e[n+7]=o,o>>=8,e[n+6]=o,o>>=8,e[n+5]=o,o>>=8,e[n+4]=o;let s=Number(t>>BigInt(32)&BigInt(4294967295));return e[n+3]=s,s>>=8,e[n+2]=s,s>>=8,e[n+1]=s,s>>=8,e[n]=s,n+8}function D(e,t,n,r,i,o){if(n+r>e.length)throw new RangeError("Index out of range");if(n<0)throw new RangeError("Index out of range")}function N(e,t,n,r,o){return t=+t,n>>>=0,o||D(e,0,n,4),i.write(e,t,n,r,23,4),n+4}function L(e,t,n,r,o){return t=+t,n>>>=0,o||D(e,0,n,8),i.write(e,t,n,r,52,8),n+8}l.prototype.slice=function(e,t){const n=this.length;(e=~~e)<0?(e+=n)<0&&(e=0):e>n&&(e=n),(t=void 0===t?n:~~t)<0?(t+=n)<0&&(t=0):t>n&&(t=n),t<e&&(t=e);const r=this.subarray(e,t);return Object.setPrototypeOf(r,l.prototype),r},l.prototype.readUintLE=l.prototype.readUIntLE=function(e,t,n){e>>>=0,t>>>=0,n||T(e,t,this.length);let r=this[e],i=1,o=0;for(;++o<t&&(i*=256);)r+=this[e+o]*i;return r},l.prototype.readUintBE=l.prototype.readUIntBE=function(e,t,n){e>>>=0,t>>>=0,n||T(e,t,this.length);let r=this[e+--t],i=1;for(;t>0&&(i*=256);)r+=this[e+--t]*i;return r},l.prototype.readUint8=l.prototype.readUInt8=function(e,t){return e>>>=0,t||T(e,1,this.length),this[e]},l.prototype.readUint16LE=l.prototype.readUInt16LE=function(e,t){return e>>>=0,t||T(e,2,this.length),this[e]|this[e+1]<<8},l.prototype.readUint16BE=l.prototype.readUInt16BE=function(e,t){return e>>>=0,t||T(e,2,this.length),this[e]<<8|this[e+1]},l.prototype.readUint32LE=l.prototype.readUInt32LE=function(e,t){return e>>>=0,t||T(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+16777216*this[e+3]},l.prototype.readUint32BE=l.prototype.readUInt32BE=function(e,t){return e>>>=0,t||T(e,4,this.length),16777216*this[e]+(this[e+1]<<16|this[e+2]<<8|this[e+3])},l.prototype.readBigUInt64LE=J((function(e){U(e>>>=0,"offset");const t=this[e],n=this[e+7];void 0!==t&&void 0!==n||W(e,this.length-8);const r=t+256*this[++e]+65536*this[++e]+this[++e]*2**24,i=this[++e]+256*this[++e]+65536*this[++e]+n*2**24;return BigInt(r)+(BigInt(i)<<BigInt(32))})),l.prototype.readBigUInt64BE=J((function(e){U(e>>>=0,"offset");const t=this[e],n=this[e+7];void 0!==t&&void 0!==n||W(e,this.length-8);const r=t*2**24+65536*this[++e]+256*this[++e]+this[++e],i=this[++e]*2**24+65536*this[++e]+256*this[++e]+n;return(BigInt(r)<<BigInt(32))+BigInt(i)})),l.prototype.readIntLE=function(e,t,n){e>>>=0,t>>>=0,n||T(e,t,this.length);let r=this[e],i=1,o=0;for(;++o<t&&(i*=256);)r+=this[e+o]*i;return i*=128,r>=i&&(r-=Math.pow(2,8*t)),r},l.prototype.readIntBE=function(e,t,n){e>>>=0,t>>>=0,n||T(e,t,this.length);let r=t,i=1,o=this[e+--r];for(;r>0&&(i*=256);)o+=this[e+--r]*i;return i*=128,o>=i&&(o-=Math.pow(2,8*t)),o},l.prototype.readInt8=function(e,t){return e>>>=0,t||T(e,1,this.length),128&this[e]?-1*(255-this[e]+1):this[e]},l.prototype.readInt16LE=function(e,t){e>>>=0,t||T(e,2,this.length);const n=this[e]|this[e+1]<<8;return 32768&n?4294901760|n:n},l.prototype.readInt16BE=function(e,t){e>>>=0,t||T(e,2,this.length);const n=this[e+1]|this[e]<<8;return 32768&n?4294901760|n:n},l.prototype.readInt32LE=function(e,t){return e>>>=0,t||T(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24},l.prototype.readInt32BE=function(e,t){return e>>>=0,t||T(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]},l.prototype.readBigInt64LE=J((function(e){U(e>>>=0,"offset");const t=this[e],n=this[e+7];void 0!==t&&void 0!==n||W(e,this.length-8);const r=this[e+4]+256*this[e+5]+65536*this[e+6]+(n<<24);return(BigInt(r)<<BigInt(32))+BigInt(t+256*this[++e]+65536*this[++e]+this[++e]*2**24)})),l.prototype.readBigInt64BE=J((function(e){U(e>>>=0,"offset");const t=this[e],n=this[e+7];void 0!==t&&void 0!==n||W(e,this.length-8);const r=(t<<24)+65536*this[++e]+256*this[++e]+this[++e];return(BigInt(r)<<BigInt(32))+BigInt(this[++e]*2**24+65536*this[++e]+256*this[++e]+n)})),l.prototype.readFloatLE=function(e,t){return e>>>=0,t||T(e,4,this.length),i.read(this,e,!0,23,4)},l.prototype.readFloatBE=function(e,t){return e>>>=0,t||T(e,4,this.length),i.read(this,e,!1,23,4)},l.prototype.readDoubleLE=function(e,t){return e>>>=0,t||T(e,8,this.length),i.read(this,e,!0,52,8)},l.prototype.readDoubleBE=function(e,t){return e>>>=0,t||T(e,8,this.length),i.read(this,e,!1,52,8)},l.prototype.writeUintLE=l.prototype.writeUIntLE=function(e,t,n,r){if(e=+e,t>>>=0,n>>>=0,!r){M(this,e,t,n,Math.pow(2,8*n)-1,0)}let i=1,o=0;for(this[t]=255&e;++o<n&&(i*=256);)this[t+o]=e/i&255;return t+n},l.prototype.writeUintBE=l.prototype.writeUIntBE=function(e,t,n,r){if(e=+e,t>>>=0,n>>>=0,!r){M(this,e,t,n,Math.pow(2,8*n)-1,0)}let i=n-1,o=1;for(this[t+i]=255&e;--i>=0&&(o*=256);)this[t+i]=e/o&255;return t+n},l.prototype.writeUint8=l.prototype.writeUInt8=function(e,t,n){return e=+e,t>>>=0,n||M(this,e,t,1,255,0),this[t]=255&e,t+1},l.prototype.writeUint16LE=l.prototype.writeUInt16LE=function(e,t,n){return e=+e,t>>>=0,n||M(this,e,t,2,65535,0),this[t]=255&e,this[t+1]=e>>>8,t+2},l.prototype.writeUint16BE=l.prototype.writeUInt16BE=function(e,t,n){return e=+e,t>>>=0,n||M(this,e,t,2,65535,0),this[t]=e>>>8,this[t+1]=255&e,t+2},l.prototype.writeUint32LE=l.prototype.writeUInt32LE=function(e,t,n){return e=+e,t>>>=0,n||M(this,e,t,4,4294967295,0),this[t+3]=e>>>24,this[t+2]=e>>>16,this[t+1]=e>>>8,this[t]=255&e,t+4},l.prototype.writeUint32BE=l.prototype.writeUInt32BE=function(e,t,n){return e=+e,t>>>=0,n||M(this,e,t,4,4294967295,0),this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e,t+4},l.prototype.writeBigUInt64LE=J((function(e){return O(this,e,arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,BigInt(0),BigInt("0xffffffffffffffff"))})),l.prototype.writeBigUInt64BE=J((function(e){return R(this,e,arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,BigInt(0),BigInt("0xffffffffffffffff"))})),l.prototype.writeIntLE=function(e,t,n,r){if(e=+e,t>>>=0,!r){const r=Math.pow(2,8*n-1);M(this,e,t,n,r-1,-r)}let i=0,o=1,s=0;for(this[t]=255&e;++i<n&&(o*=256);)e<0&&0===s&&0!==this[t+i-1]&&(s=1),this[t+i]=(e/o>>0)-s&255;return t+n},l.prototype.writeIntBE=function(e,t,n,r){if(e=+e,t>>>=0,!r){const r=Math.pow(2,8*n-1);M(this,e,t,n,r-1,-r)}let i=n-1,o=1,s=0;for(this[t+i]=255&e;--i>=0&&(o*=256);)e<0&&0===s&&0!==this[t+i+1]&&(s=1),this[t+i]=(e/o>>0)-s&255;return t+n},l.prototype.writeInt8=function(e,t,n){return e=+e,t>>>=0,n||M(this,e,t,1,127,-128),e<0&&(e=255+e+1),this[t]=255&e,t+1},l.prototype.writeInt16LE=function(e,t,n){return e=+e,t>>>=0,n||M(this,e,t,2,32767,-32768),this[t]=255&e,this[t+1]=e>>>8,t+2},l.prototype.writeInt16BE=function(e,t,n){return e=+e,t>>>=0,n||M(this,e,t,2,32767,-32768),this[t]=e>>>8,this[t+1]=255&e,t+2},l.prototype.writeInt32LE=function(e,t,n){return e=+e,t>>>=0,n||M(this,e,t,4,2147483647,-2147483648),this[t]=255&e,this[t+1]=e>>>8,this[t+2]=e>>>16,this[t+3]=e>>>24,t+4},l.prototype.writeInt32BE=function(e,t,n){return e=+e,t>>>=0,n||M(this,e,t,4,2147483647,-2147483648),e<0&&(e=4294967295+e+1),this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e,t+4},l.prototype.writeBigInt64LE=J((function(e){return O(this,e,arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))})),l.prototype.writeBigInt64BE=J((function(e){return R(this,e,arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))})),l.prototype.writeFloatLE=function(e,t,n){return N(this,e,t,!0,n)},l.prototype.writeFloatBE=function(e,t,n){return N(this,e,t,!1,n)},l.prototype.writeDoubleLE=function(e,t,n){return L(this,e,t,!0,n)},l.prototype.writeDoubleBE=function(e,t,n){return L(this,e,t,!1,n)},l.prototype.copy=function(e,t,n,r){if(!l.isBuffer(e))throw new TypeError("argument should be a Buffer");if(n||(n=0),r||0===r||(r=this.length),t>=e.length&&(t=e.length),t||(t=0),r>0&&r<n&&(r=n),r===n)return 0;if(0===e.length||0===this.length)return 0;if(t<0)throw new RangeError("targetStart out of bounds");if(n<0||n>=this.length)throw new RangeError("Index out of range");if(r<0)throw new RangeError("sourceEnd out of bounds");r>this.length&&(r=this.length),e.length-t<r-n&&(r=e.length-t+n);const i=r-n;return this===e&&"function"===typeof Uint8Array.prototype.copyWithin?this.copyWithin(t,n,r):Uint8Array.prototype.set.call(e,this.subarray(n,r),t),i},l.prototype.fill=function(e,t,n,r){if("string"===typeof e){if("string"===typeof t?(r=t,t=0,n=this.length):"string"===typeof n&&(r=n,n=this.length),void 0!==r&&"string"!==typeof r)throw new TypeError("encoding must be a string");if("string"===typeof r&&!l.isEncoding(r))throw new TypeError("Unknown encoding: "+r);if(1===e.length){const t=e.charCodeAt(0);("utf8"===r&&t<128||"latin1"===r)&&(e=t)}}else"number"===typeof e?e&=255:"boolean"===typeof e&&(e=Number(e));if(t<0||this.length<t||this.length<n)throw new RangeError("Out of range index");if(n<=t)return this;let i;if(t>>>=0,n=void 0===n?this.length:n>>>0,e||(e=0),"number"===typeof e)for(i=t;i<n;++i)this[i]=e;else{const o=l.isBuffer(e)?e:l.from(e,r),s=o.length;if(0===s)throw new TypeError('The value "'+e+'" is invalid for argument "value"');for(i=0;i<n-t;++i)this[i+t]=o[i%s]}return this};const V={};function F(e,t,n){V[e]=class extends n{constructor(){super(),Object.defineProperty(this,"message",{value:t.apply(this,arguments),writable:!0,configurable:!0}),this.name="".concat(this.name," [").concat(e,"]"),this.stack,delete this.name}get code(){return e}set code(e){Object.defineProperty(this,"code",{configurable:!0,enumerable:!0,value:e,writable:!0})}toString(){return"".concat(this.name," [").concat(e,"]: ").concat(this.message)}}}function z(e){let t="",n=e.length;const r="-"===e[0]?1:0;for(;n>=r+4;n-=3)t="_".concat(e.slice(n-3,n)).concat(t);return"".concat(e.slice(0,n)).concat(t)}function B(e,t,n,r,i,o){if(e>n||e<t){const r="bigint"===typeof t?"n":"";let i;throw i=o>3?0===t||t===BigInt(0)?">= 0".concat(r," and < 2").concat(r," ** ").concat(8*(o+1)).concat(r):">= -(2".concat(r," ** ").concat(8*(o+1)-1).concat(r,") and < 2 ** ")+"".concat(8*(o+1)-1).concat(r):">= ".concat(t).concat(r," and <= ").concat(n).concat(r),new V.ERR_OUT_OF_RANGE("value",i,e)}!function(e,t,n){U(t,"offset"),void 0!==e[t]&&void 0!==e[t+n]||W(t,e.length-(n+1))}(r,i,o)}function U(e,t){if("number"!==typeof e)throw new V.ERR_INVALID_ARG_TYPE(t,"number",e)}function W(e,t,n){if(Math.floor(e)!==e)throw U(e,n),new V.ERR_OUT_OF_RANGE(n||"offset","an integer",e);if(t<0)throw new V.ERR_BUFFER_OUT_OF_BOUNDS;throw new V.ERR_OUT_OF_RANGE(n||"offset",">= ".concat(n?1:0," and <= ").concat(t),e)}F("ERR_BUFFER_OUT_OF_BOUNDS",(function(e){return e?"".concat(e," is outside of buffer bounds"):"Attempt to access memory outside buffer bounds"}),RangeError),F("ERR_INVALID_ARG_TYPE",(function(e,t){return'The "'.concat(e,'" argument must be of type number. Received type ').concat(typeof t)}),TypeError),F("ERR_OUT_OF_RANGE",(function(e,t,n){let r='The value of "'.concat(e,'" is out of range.'),i=n;return Number.isInteger(n)&&Math.abs(n)>2**32?i=z(String(n)):"bigint"===typeof n&&(i=String(n),(n>BigInt(2)**BigInt(32)||n<-(BigInt(2)**BigInt(32)))&&(i=z(i)),i+="n"),r+=" It must be ".concat(t,". Received ").concat(i),r}),RangeError);const H=/[^+/0-9A-Za-z-_]/g;function q(e,t){let n;t=t||1/0;const r=e.length;let i=null;const o=[];for(let s=0;s<r;++s){if(n=e.charCodeAt(s),n>55295&&n<57344){if(!i){if(n>56319){(t-=3)>-1&&o.push(239,191,189);continue}if(s+1===r){(t-=3)>-1&&o.push(239,191,189);continue}i=n;continue}if(n<56320){(t-=3)>-1&&o.push(239,191,189),i=n;continue}n=65536+(i-55296<<10|n-56320)}else i&&(t-=3)>-1&&o.push(239,191,189);if(i=null,n<128){if((t-=1)<0)break;o.push(n)}else if(n<2048){if((t-=2)<0)break;o.push(n>>6|192,63&n|128)}else if(n<65536){if((t-=3)<0)break;o.push(n>>12|224,n>>6&63|128,63&n|128)}else{if(!(n<1114112))throw new Error("Invalid code point");if((t-=4)<0)break;o.push(n>>18|240,n>>12&63|128,n>>6&63|128,63&n|128)}}return o}function X(e){return r.toByteArray(function(e){if((e=(e=e.split("=")[0]).trim().replace(H,"")).length<2)return"";for(;e.length%4!==0;)e+="=";return e}(e))}function Y(e,t,n,r){let i;for(i=0;i<r&&!(i+n>=t.length||i>=e.length);++i)t[i+n]=e[i];return i}function K(e,t){return e instanceof t||null!=e&&null!=e.constructor&&null!=e.constructor.name&&e.constructor.name===t.name}function Z(e){return e!==e}const $=function(){const e="0123456789abcdef",t=new Array(256);for(let n=0;n<16;++n){const r=16*n;for(let i=0;i<16;++i)t[r+i]=e[n]+e[i]}return t}();function J(e){return"undefined"===typeof BigInt?Q:e}function Q(){throw new Error("BigInt not supported")}},6396:(e,t,n)=>{"use strict";var r=n(56344),i=n(25520),o=i(r("String.prototype.indexOf"));e.exports=function(e,t){var n=r(e,!!t);return"function"===typeof n&&o(e,".prototype.")>-1?i(n):n}},25520:(e,t,n)=>{"use strict";var r=n(56160),i=n(56344),o=n(804),s=n(97896),a=i("%Function.prototype.apply%"),l=i("%Function.prototype.call%"),c=i("%Reflect.apply%",!0)||r.call(l,a),u=n(23384),d=i("%Math.max%");e.exports=function(e){if("function"!==typeof e)throw new s("a function is required");var t=c(r,l,arguments);return o(t,1+d(0,e.length-(arguments.length-1)),!0)};var h=function(){return c(r,a,arguments)};u?u(e.exports,"apply",{value:h}):e.exports.apply=h},39816:(e,t,n)=>{"use strict";function r(e){var t,n,i="";if("string"==typeof e||"number"==typeof e)i+=e;else if("object"==typeof e)if(Array.isArray(e))for(t=0;t<e.length;t++)e[t]&&(n=r(e[t]))&&(i&&(i+=" "),i+=n);else for(t in e)e[t]&&(i&&(i+=" "),i+=t);return i}n.d(t,{c:()=>i});const i=function(){for(var e,t,n=0,i="";n<arguments.length;)(e=arguments[n++])&&(t=r(e))&&(i&&(i+=" "),i+=t);return i}},64039:(e,t,n)=>{"use strict";var r=n(24288),i=n(53696),o=n(4188),s=n(80928).orient2d;function a(e,t,n){t=Math.max(0,void 0===t?2:t),n=n||0;var i=function(e){for(var t=e[0],n=e[0],r=e[0],i=e[0],s=0;s<e.length;s++){var a=e[s];a[0]<t[0]&&(t=a),a[0]>r[0]&&(r=a),a[1]<n[1]&&(n=a),a[1]>i[1]&&(i=a)}var l=[t,n,r,i],c=l.slice();for(s=0;s<e.length;s++)o(e[s],l)||c.push(e[s]);return function(e){e.sort(_);for(var t=[],n=0;n<e.length;n++){for(;t.length>=2&&p(t[t.length-2],t[t.length-1],e[n])<=0;)t.pop();t.push(e[n])}for(var r=[],i=e.length-1;i>=0;i--){for(;r.length>=2&&p(r[r.length-2],r[r.length-1],e[i])<=0;)r.pop();r.push(e[i])}return r.pop(),t.pop(),t.concat(r)}(c)}(e),s=new r(16);s.toBBox=function(e){return{minX:e[0],minY:e[1],maxX:e[0],maxY:e[1]}},s.compareMinX=function(e,t){return e[0]-t[0]},s.compareMinY=function(e,t){return e[1]-t[1]},s.load(e);for(var a,c=[],u=0;u<i.length;u++){var d=i[u];s.remove(d),a=g(d,a),c.push(a)}var h=new r(16);for(u=0;u<c.length;u++)h.insert(f(c[u]));for(var y=t*t,v=n*n;c.length;){var b=c.shift(),x=b.p,S=b.next.p,w=m(x,S);if(!(w<v)){var E=w/y;(d=l(s,b.prev.p,x,S,b.next.next.p,E,h))&&Math.min(m(d,x),m(d,S))<=E&&(c.push(b),c.push(g(d,b)),s.remove(d),h.remove(b),h.insert(f(b)),h.insert(f(b.next)))}}b=a;var P=[];do{P.push(b.p),b=b.next}while(b!==a);return P.push(b.p),P}function l(e,t,n,r,o,s,a){for(var l=new i([],c),d=e.data;d;){for(var p=0;p<d.children.length;p++){var f=d.children[p],g=d.leaf?y(f,n,r):u(n,r,f);g>s||l.push({node:f,dist:g})}for(;l.length&&!l.peek().node.children;){var m=l.pop(),v=m.node,_=y(v,t,n),b=y(v,r,o);if(m.dist<_&&m.dist<b&&h(n,v,a)&&h(r,v,a))return v}(d=l.pop())&&(d=d.node)}return null}function c(e,t){return e.dist-t.dist}function u(e,t,n){if(d(e,n)||d(t,n))return 0;var r=v(e[0],e[1],t[0],t[1],n.minX,n.minY,n.maxX,n.minY);if(0===r)return 0;var i=v(e[0],e[1],t[0],t[1],n.minX,n.minY,n.minX,n.maxY);if(0===i)return 0;var o=v(e[0],e[1],t[0],t[1],n.maxX,n.minY,n.maxX,n.maxY);if(0===o)return 0;var s=v(e[0],e[1],t[0],t[1],n.minX,n.maxY,n.maxX,n.maxY);return 0===s?0:Math.min(r,i,o,s)}function d(e,t){return e[0]>=t.minX&&e[0]<=t.maxX&&e[1]>=t.minY&&e[1]<=t.maxY}function h(e,t,n){for(var r,i,o,s,a=Math.min(e[0],t[0]),l=Math.min(e[1],t[1]),c=Math.max(e[0],t[0]),u=Math.max(e[1],t[1]),d=n.search({minX:a,minY:l,maxX:c,maxY:u}),h=0;h<d.length;h++)if(r=d[h].p,i=d[h].next.p,o=e,r!==(s=t)&&i!==o&&p(r,i,o)>0!==p(r,i,s)>0&&p(o,s,r)>0!==p(o,s,i)>0)return!1;return!0}function p(e,t,n){return s(e[0],e[1],t[0],t[1],n[0],n[1])}function f(e){var t=e.p,n=e.next.p;return e.minX=Math.min(t[0],n[0]),e.minY=Math.min(t[1],n[1]),e.maxX=Math.max(t[0],n[0]),e.maxY=Math.max(t[1],n[1]),e}function g(e,t){var n={p:e,prev:null,next:null,minX:0,minY:0,maxX:0,maxY:0};return t?(n.next=t.next,n.prev=t,t.next.prev=n,t.next=n):(n.prev=n,n.next=n),n}function m(e,t){var n=e[0]-t[0],r=e[1]-t[1];return n*n+r*r}function y(e,t,n){var r=t[0],i=t[1],o=n[0]-r,s=n[1]-i;if(0!==o||0!==s){var a=((e[0]-r)*o+(e[1]-i)*s)/(o*o+s*s);a>1?(r=n[0],i=n[1]):a>0&&(r+=o*a,i+=s*a)}return(o=e[0]-r)*o+(s=e[1]-i)*s}function v(e,t,n,r,i,o,s,a){var l,c,u,d,h=n-e,p=r-t,f=s-i,g=a-o,m=e-i,y=t-o,v=h*h+p*p,_=h*f+p*g,b=f*f+g*g,x=h*m+p*y,S=f*m+g*y,w=v*b-_*_,E=w,P=w;0===w?(c=0,E=1,d=S,P=b):(d=v*S-_*x,(c=_*S-b*x)<0?(c=0,d=S,P=b):c>E&&(c=E,d=S+_,P=b)),d<0?(d=0,-x<0?c=0:-x>v?c=E:(c=-x,E=v)):d>P&&(d=P,-x+_<0?c=0:-x+_>v?c=E:(c=-x+_,E=v));var C=(1-(u=0===d?0:d/P))*i+u*s-((1-(l=0===c?0:c/E))*e+l*n),A=(1-u)*o+u*a-((1-l)*t+l*r);return C*C+A*A}function _(e,t){return e[0]===t[0]?e[1]-t[1]:e[0]-t[0]}i.default&&(i=i.default),e.exports=a,e.exports.default=a},33931:function(e){e.exports=function(){"use strict";var e=1e3,t=6e4,n=36e5,r="millisecond",i="second",o="minute",s="hour",a="day",l="week",c="month",u="quarter",d="year",h="date",p="Invalid Date",f=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,g=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,m={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(e){var t=["th","st","nd","rd"],n=e%100;return"["+e+(t[(n-20)%10]||t[n]||t[0])+"]"}},y=function(e,t,n){var r=String(e);return!r||r.length>=t?e:""+Array(t+1-r.length).join(n)+e},v={s:y,z:function(e){var t=-e.utcOffset(),n=Math.abs(t),r=Math.floor(n/60),i=n%60;return(t<=0?"+":"-")+y(r,2,"0")+":"+y(i,2,"0")},m:function e(t,n){if(t.date()<n.date())return-e(n,t);var r=12*(n.year()-t.year())+(n.month()-t.month()),i=t.clone().add(r,c),o=n-i<0,s=t.clone().add(r+(o?-1:1),c);return+(-(r+(n-i)/(o?i-s:s-i))||0)},a:function(e){return e<0?Math.ceil(e)||0:Math.floor(e)},p:function(e){return{M:c,y:d,w:l,d:a,D:h,h:s,m:o,s:i,ms:r,Q:u}[e]||String(e||"").toLowerCase().replace(/s$/,"")},u:function(e){return void 0===e}},_="en",b={};b[_]=m;var x=function(e){return e instanceof P},S=function e(t,n,r){var i;if(!t)return _;if("string"==typeof t){var o=t.toLowerCase();b[o]&&(i=o),n&&(b[o]=n,i=o);var s=t.split("-");if(!i&&s.length>1)return e(s[0])}else{var a=t.name;b[a]=t,i=a}return!r&&i&&(_=i),i||!r&&_},w=function(e,t){if(x(e))return e.clone();var n="object"==typeof t?t:{};return n.date=e,n.args=arguments,new P(n)},E=v;E.l=S,E.i=x,E.w=function(e,t){return w(e,{locale:t.$L,utc:t.$u,x:t.$x,$offset:t.$offset})};var P=function(){function m(e){this.$L=S(e.locale,null,!0),this.parse(e)}var y=m.prototype;return y.parse=function(e){this.$d=function(e){var t=e.date,n=e.utc;if(null===t)return new Date(NaN);if(E.u(t))return new Date;if(t instanceof Date)return new Date(t);if("string"==typeof t&&!/Z$/i.test(t)){var r=t.match(f);if(r){var i=r[2]-1||0,o=(r[7]||"0").substring(0,3);return n?new Date(Date.UTC(r[1],i,r[3]||1,r[4]||0,r[5]||0,r[6]||0,o)):new Date(r[1],i,r[3]||1,r[4]||0,r[5]||0,r[6]||0,o)}}return new Date(t)}(e),this.$x=e.x||{},this.init()},y.init=function(){var e=this.$d;this.$y=e.getFullYear(),this.$M=e.getMonth(),this.$D=e.getDate(),this.$W=e.getDay(),this.$H=e.getHours(),this.$m=e.getMinutes(),this.$s=e.getSeconds(),this.$ms=e.getMilliseconds()},y.$utils=function(){return E},y.isValid=function(){return!(this.$d.toString()===p)},y.isSame=function(e,t){var n=w(e);return this.startOf(t)<=n&&n<=this.endOf(t)},y.isAfter=function(e,t){return w(e)<this.startOf(t)},y.isBefore=function(e,t){return this.endOf(t)<w(e)},y.$g=function(e,t,n){return E.u(e)?this[t]:this.set(n,e)},y.unix=function(){return Math.floor(this.valueOf()/1e3)},y.valueOf=function(){return this.$d.getTime()},y.startOf=function(e,t){var n=this,r=!!E.u(t)||t,u=E.p(e),p=function(e,t){var i=E.w(n.$u?Date.UTC(n.$y,t,e):new Date(n.$y,t,e),n);return r?i:i.endOf(a)},f=function(e,t){return E.w(n.toDate()[e].apply(n.toDate("s"),(r?[0,0,0,0]:[23,59,59,999]).slice(t)),n)},g=this.$W,m=this.$M,y=this.$D,v="set"+(this.$u?"UTC":"");switch(u){case d:return r?p(1,0):p(31,11);case c:return r?p(1,m):p(0,m+1);case l:var _=this.$locale().weekStart||0,b=(g<_?g+7:g)-_;return p(r?y-b:y+(6-b),m);case a:case h:return f(v+"Hours",0);case s:return f(v+"Minutes",1);case o:return f(v+"Seconds",2);case i:return f(v+"Milliseconds",3);default:return this.clone()}},y.endOf=function(e){return this.startOf(e,!1)},y.$set=function(e,t){var n,l=E.p(e),u="set"+(this.$u?"UTC":""),p=(n={},n[a]=u+"Date",n[h]=u+"Date",n[c]=u+"Month",n[d]=u+"FullYear",n[s]=u+"Hours",n[o]=u+"Minutes",n[i]=u+"Seconds",n[r]=u+"Milliseconds",n)[l],f=l===a?this.$D+(t-this.$W):t;if(l===c||l===d){var g=this.clone().set(h,1);g.$d[p](f),g.init(),this.$d=g.set(h,Math.min(this.$D,g.daysInMonth())).$d}else p&&this.$d[p](f);return this.init(),this},y.set=function(e,t){return this.clone().$set(e,t)},y.get=function(e){return this[E.p(e)]()},y.add=function(r,u){var h,p=this;r=Number(r);var f=E.p(u),g=function(e){var t=w(p);return E.w(t.date(t.date()+Math.round(e*r)),p)};if(f===c)return this.set(c,this.$M+r);if(f===d)return this.set(d,this.$y+r);if(f===a)return g(1);if(f===l)return g(7);var m=(h={},h[o]=t,h[s]=n,h[i]=e,h)[f]||1,y=this.$d.getTime()+r*m;return E.w(y,this)},y.subtract=function(e,t){return this.add(-1*e,t)},y.format=function(e){var t=this,n=this.$locale();if(!this.isValid())return n.invalidDate||p;var r=e||"YYYY-MM-DDTHH:mm:ssZ",i=E.z(this),o=this.$H,s=this.$m,a=this.$M,l=n.weekdays,c=n.months,u=function(e,n,i,o){return e&&(e[n]||e(t,r))||i[n].slice(0,o)},d=function(e){return E.s(o%12||12,e,"0")},h=n.meridiem||function(e,t,n){var r=e<12?"AM":"PM";return n?r.toLowerCase():r},f={YY:String(this.$y).slice(-2),YYYY:this.$y,M:a+1,MM:E.s(a+1,2,"0"),MMM:u(n.monthsShort,a,c,3),MMMM:u(c,a),D:this.$D,DD:E.s(this.$D,2,"0"),d:String(this.$W),dd:u(n.weekdaysMin,this.$W,l,2),ddd:u(n.weekdaysShort,this.$W,l,3),dddd:l[this.$W],H:String(o),HH:E.s(o,2,"0"),h:d(1),hh:d(2),a:h(o,s,!0),A:h(o,s,!1),m:String(s),mm:E.s(s,2,"0"),s:String(this.$s),ss:E.s(this.$s,2,"0"),SSS:E.s(this.$ms,3,"0"),Z:i};return r.replace(g,(function(e,t){return t||f[e]||i.replace(":","")}))},y.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},y.diff=function(r,h,p){var f,g=E.p(h),m=w(r),y=(m.utcOffset()-this.utcOffset())*t,v=this-m,_=E.m(this,m);return _=(f={},f[d]=_/12,f[c]=_,f[u]=_/3,f[l]=(v-y)/6048e5,f[a]=(v-y)/864e5,f[s]=v/n,f[o]=v/t,f[i]=v/e,f)[g]||v,p?_:E.a(_)},y.daysInMonth=function(){return this.endOf(c).$D},y.$locale=function(){return b[this.$L]},y.locale=function(e,t){if(!e)return this.$L;var n=this.clone(),r=S(e,t,!0);return r&&(n.$L=r),n},y.clone=function(){return E.w(this.$d,this)},y.toDate=function(){return new Date(this.valueOf())},y.toJSON=function(){return this.isValid()?this.toISOString():null},y.toISOString=function(){return this.$d.toISOString()},y.toString=function(){return this.$d.toUTCString()},m}(),C=P.prototype;return w.prototype=C,[["$ms",r],["$s",i],["$m",o],["$H",s],["$W",a],["$M",c],["$y",d],["$D",h]].forEach((function(e){C[e[1]]=function(t){return this.$g(t,e[0],e[1])}})),w.extend=function(e,t){return e.$i||(e(t,P,w),e.$i=!0),w},w.locale=S,w.isDayjs=x,w.unix=function(e){return w(1e3*e)},w.en=b[_],w.Ls=b,w.p={},w}()},19724:function(e){e.exports=function(){"use strict";var e={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"},t=/(\[[^[]*\])|([-_:/.,()\s]+)|(A|a|YYYY|YY?|MM?M?M?|Do|DD?|hh?|HH?|mm?|ss?|S{1,3}|z|ZZ?)/g,n=/\d\d/,r=/\d\d?/,i=/\d*[^-_:/,()\s\d]+/,o={},s=function(e){return(e=+e)+(e>68?1900:2e3)},a=function(e){return function(t){this[e]=+t}},l=[/[+-]\d\d:?(\d\d)?|Z/,function(e){(this.zone||(this.zone={})).offset=function(e){if(!e)return 0;if("Z"===e)return 0;var t=e.match(/([+-]|\d\d)/g),n=60*t[1]+(+t[2]||0);return 0===n?0:"+"===t[0]?-n:n}(e)}],c=function(e){var t=o[e];return t&&(t.indexOf?t:t.s.concat(t.f))},u=function(e,t){var n,r=o.meridiem;if(r){for(var i=1;i<=24;i+=1)if(e.indexOf(r(i,0,t))>-1){n=i>12;break}}else n=e===(t?"pm":"PM");return n},d={A:[i,function(e){this.afternoon=u(e,!1)}],a:[i,function(e){this.afternoon=u(e,!0)}],S:[/\d/,function(e){this.milliseconds=100*+e}],SS:[n,function(e){this.milliseconds=10*+e}],SSS:[/\d{3}/,function(e){this.milliseconds=+e}],s:[r,a("seconds")],ss:[r,a("seconds")],m:[r,a("minutes")],mm:[r,a("minutes")],H:[r,a("hours")],h:[r,a("hours")],HH:[r,a("hours")],hh:[r,a("hours")],D:[r,a("day")],DD:[n,a("day")],Do:[i,function(e){var t=o.ordinal,n=e.match(/\d+/);if(this.day=n[0],t)for(var r=1;r<=31;r+=1)t(r).replace(/\[|\]/g,"")===e&&(this.day=r)}],M:[r,a("month")],MM:[n,a("month")],MMM:[i,function(e){var t=c("months"),n=(c("monthsShort")||t.map((function(e){return e.slice(0,3)}))).indexOf(e)+1;if(n<1)throw new Error;this.month=n%12||n}],MMMM:[i,function(e){var t=c("months").indexOf(e)+1;if(t<1)throw new Error;this.month=t%12||t}],Y:[/[+-]?\d+/,a("year")],YY:[n,function(e){this.year=s(e)}],YYYY:[/\d{4}/,a("year")],Z:l,ZZ:l};function h(n){var r,i;r=n,i=o&&o.formats;for(var s=(n=r.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,(function(t,n,r){var o=r&&r.toUpperCase();return n||i[r]||e[r]||i[o].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,(function(e,t,n){return t||n.slice(1)}))}))).match(t),a=s.length,l=0;l<a;l+=1){var c=s[l],u=d[c],h=u&&u[0],p=u&&u[1];s[l]=p?{regex:h,parser:p}:c.replace(/^\[|\]$/g,"")}return function(e){for(var t={},n=0,r=0;n<a;n+=1){var i=s[n];if("string"==typeof i)r+=i.length;else{var o=i.regex,l=i.parser,c=e.slice(r),u=o.exec(c)[0];l.call(t,u),e=e.replace(u,"")}}return function(e){var t=e.afternoon;if(void 0!==t){var n=e.hours;t?n<12&&(e.hours+=12):12===n&&(e.hours=0),delete e.afternoon}}(t),t}}return function(e,t,n){n.p.customParseFormat=!0,e&&e.parseTwoDigitYear&&(s=e.parseTwoDigitYear);var r=t.prototype,i=r.parse;r.parse=function(e){var t=e.date,r=e.utc,s=e.args;this.$u=r;var a=s[1];if("string"==typeof a){var l=!0===s[2],c=!0===s[3],u=l||c,d=s[2];c&&(d=s[2]),o=this.$locale(),!l&&d&&(o=n.Ls[d]),this.$d=function(e,t,n){try{if(["x","X"].indexOf(t)>-1)return new Date(("X"===t?1e3:1)*e);var r=h(t)(e),i=r.year,o=r.month,s=r.day,a=r.hours,l=r.minutes,c=r.seconds,u=r.milliseconds,d=r.zone,p=new Date,f=s||(i||o?1:p.getDate()),g=i||p.getFullYear(),m=0;i&&!o||(m=o>0?o-1:p.getMonth());var y=a||0,v=l||0,_=c||0,b=u||0;return d?new Date(Date.UTC(g,m,f,y,v,_,b+60*d.offset*1e3)):n?new Date(Date.UTC(g,m,f,y,v,_,b)):new Date(g,m,f,y,v,_,b)}catch(e){return new Date("")}}(t,a,r),this.init(),d&&!0!==d&&(this.$L=this.locale(d).$L),u&&t!=this.format(a)&&(this.$d=new Date("")),o={}}else if(a instanceof Array)for(var p=a.length,f=1;f<=p;f+=1){s[1]=a[f-1];var g=n.apply(this,s);if(g.isValid()){this.$d=g.$d,this.$L=g.$L,this.init();break}f===p&&(this.$d=new Date(""))}else i.call(this,e)}}}()},21916:function(e){e.exports=function(){"use strict";return function(e,t,n){t.prototype.isBetween=function(e,t,r,i){var o=n(e),s=n(t),a="("===(i=i||"()")[0],l=")"===i[1];return(a?this.isAfter(o,r):!this.isBefore(o,r))&&(l?this.isBefore(s,r):!this.isAfter(s,r))||(a?this.isBefore(o,r):!this.isAfter(o,r))&&(l?this.isAfter(s,r):!this.isBefore(s,r))}}}()},50475:function(e){e.exports=function(){"use strict";var e={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"};return function(t,n,r){var i=n.prototype,o=i.format;r.en.formats=e,i.format=function(t){void 0===t&&(t="YYYY-MM-DDTHH:mm:ssZ");var n=this.$locale().formats,r=function(t,n){return t.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,(function(t,r,i){var o=i&&i.toUpperCase();return r||n[i]||e[i]||n[o].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,(function(e,t,n){return t||n.slice(1)}))}))}(t,void 0===n?{}:n);return o.call(this,r)}}}()},69184:function(e,t,n){var r;!function(i){"use strict";var o,s=1e9,a={precision:20,rounding:4,toExpNeg:-7,toExpPos:21,LN10:"2.302585092994045684017991454684364207601101488628772976033327900967572609677352480235997205089598298341967784042286"},l=!0,c="[DecimalError] ",u=c+"Invalid argument: ",d=c+"Exponent out of range: ",h=Math.floor,p=Math.pow,f=/^(\d+(\.\d*)?|\.\d+)(e[+-]?\d+)?$/i,g=1e7,m=7,y=9007199254740991,v=h(y/m),_={};function b(e,t){var n,r,i,o,s,a,c,u,d=e.constructor,h=d.precision;if(!e.s||!t.s)return t.s||(t=new d(e)),l?I(t,h):t;if(c=e.d,u=t.d,s=e.e,i=t.e,c=c.slice(),o=s-i){for(o<0?(r=c,o=-o,a=u.length):(r=u,i=s,a=c.length),o>(a=(s=Math.ceil(h/m))>a?s+1:a+1)&&(o=a,r.length=1),r.reverse();o--;)r.push(0);r.reverse()}for((a=c.length)-(o=u.length)<0&&(o=a,r=u,u=c,c=r),n=0;o;)n=(c[--o]=c[o]+u[o]+n)/g|0,c[o]%=g;for(n&&(c.unshift(n),++i),a=c.length;0==c[--a];)c.pop();return t.d=c,t.e=i,l?I(t,h):t}function x(e,t,n){if(e!==~~e||e<t||e>n)throw Error(u+e)}function S(e){var t,n,r,i=e.length-1,o="",s=e[0];if(i>0){for(o+=s,t=1;t<i;t++)r=e[t]+"",(n=m-r.length)&&(o+=A(n)),o+=r;s=e[t],(n=m-(r=s+"").length)&&(o+=A(n))}else if(0===s)return"0";for(;s%10===0;)s/=10;return o+s}_.absoluteValue=_.abs=function(){var e=new this.constructor(this);return e.s&&(e.s=1),e},_.comparedTo=_.cmp=function(e){var t,n,r,i,o=this;if(e=new o.constructor(e),o.s!==e.s)return o.s||-e.s;if(o.e!==e.e)return o.e>e.e^o.s<0?1:-1;for(t=0,n=(r=o.d.length)<(i=e.d.length)?r:i;t<n;++t)if(o.d[t]!==e.d[t])return o.d[t]>e.d[t]^o.s<0?1:-1;return r===i?0:r>i^o.s<0?1:-1},_.decimalPlaces=_.dp=function(){var e=this,t=e.d.length-1,n=(t-e.e)*m;if(t=e.d[t])for(;t%10==0;t/=10)n--;return n<0?0:n},_.dividedBy=_.div=function(e){return w(this,new this.constructor(e))},_.dividedToIntegerBy=_.idiv=function(e){var t=this.constructor;return I(w(this,new t(e),0,1),t.precision)},_.equals=_.eq=function(e){return!this.cmp(e)},_.exponent=function(){return P(this)},_.greaterThan=_.gt=function(e){return this.cmp(e)>0},_.greaterThanOrEqualTo=_.gte=function(e){return this.cmp(e)>=0},_.isInteger=_.isint=function(){return this.e>this.d.length-2},_.isNegative=_.isneg=function(){return this.s<0},_.isPositive=_.ispos=function(){return this.s>0},_.isZero=function(){return 0===this.s},_.lessThan=_.lt=function(e){return this.cmp(e)<0},_.lessThanOrEqualTo=_.lte=function(e){return this.cmp(e)<1},_.logarithm=_.log=function(e){var t,n=this,r=n.constructor,i=r.precision,s=i+5;if(void 0===e)e=new r(10);else if((e=new r(e)).s<1||e.eq(o))throw Error(c+"NaN");if(n.s<1)throw Error(c+(n.s?"NaN":"-Infinity"));return n.eq(o)?new r(0):(l=!1,t=w(k(n,s),k(e,s),s),l=!0,I(t,i))},_.minus=_.sub=function(e){var t=this;return e=new t.constructor(e),t.s==e.s?G(t,e):b(t,(e.s=-e.s,e))},_.modulo=_.mod=function(e){var t,n=this,r=n.constructor,i=r.precision;if(!(e=new r(e)).s)throw Error(c+"NaN");return n.s?(l=!1,t=w(n,e,0,1).times(e),l=!0,n.minus(t)):I(new r(n),i)},_.naturalExponential=_.exp=function(){return E(this)},_.naturalLogarithm=_.ln=function(){return k(this)},_.negated=_.neg=function(){var e=new this.constructor(this);return e.s=-e.s||0,e},_.plus=_.add=function(e){var t=this;return e=new t.constructor(e),t.s==e.s?b(t,e):G(t,(e.s=-e.s,e))},_.precision=_.sd=function(e){var t,n,r,i=this;if(void 0!==e&&e!==!!e&&1!==e&&0!==e)throw Error(u+e);if(t=P(i)+1,n=(r=i.d.length-1)*m+1,r=i.d[r]){for(;r%10==0;r/=10)n--;for(r=i.d[0];r>=10;r/=10)n++}return e&&t>n?t:n},_.squareRoot=_.sqrt=function(){var e,t,n,r,i,o,s,a=this,u=a.constructor;if(a.s<1){if(!a.s)return new u(0);throw Error(c+"NaN")}for(e=P(a),l=!1,0==(i=Math.sqrt(+a))||i==1/0?(((t=S(a.d)).length+e)%2==0&&(t+="0"),i=Math.sqrt(t),e=h((e+1)/2)-(e<0||e%2),r=new u(t=i==1/0?"5e"+e:(t=i.toExponential()).slice(0,t.indexOf("e")+1)+e)):r=new u(i.toString()),i=s=(n=u.precision)+3;;)if(r=(o=r).plus(w(a,o,s+2)).times(.5),S(o.d).slice(0,s)===(t=S(r.d)).slice(0,s)){if(t=t.slice(s-3,s+1),i==s&&"4999"==t){if(I(o,n+1,0),o.times(o).eq(a)){r=o;break}}else if("9999"!=t)break;s+=4}return l=!0,I(r,n)},_.times=_.mul=function(e){var t,n,r,i,o,s,a,c,u,d=this,h=d.constructor,p=d.d,f=(e=new h(e)).d;if(!d.s||!e.s)return new h(0);for(e.s*=d.s,n=d.e+e.e,(c=p.length)<(u=f.length)&&(o=p,p=f,f=o,s=c,c=u,u=s),o=[],r=s=c+u;r--;)o.push(0);for(r=u;--r>=0;){for(t=0,i=c+r;i>r;)a=o[i]+f[r]*p[i-r-1]+t,o[i--]=a%g|0,t=a/g|0;o[i]=(o[i]+t)%g|0}for(;!o[--s];)o.pop();return t?++n:o.shift(),e.d=o,e.e=n,l?I(e,h.precision):e},_.toDecimalPlaces=_.todp=function(e,t){var n=this,r=n.constructor;return n=new r(n),void 0===e?n:(x(e,0,s),void 0===t?t=r.rounding:x(t,0,8),I(n,e+P(n)+1,t))},_.toExponential=function(e,t){var n,r=this,i=r.constructor;return void 0===e?n=T(r,!0):(x(e,0,s),void 0===t?t=i.rounding:x(t,0,8),n=T(r=I(new i(r),e+1,t),!0,e+1)),n},_.toFixed=function(e,t){var n,r,i=this,o=i.constructor;return void 0===e?T(i):(x(e,0,s),void 0===t?t=o.rounding:x(t,0,8),n=T((r=I(new o(i),e+P(i)+1,t)).abs(),!1,e+P(r)+1),i.isneg()&&!i.isZero()?"-"+n:n)},_.toInteger=_.toint=function(){var e=this,t=e.constructor;return I(new t(e),P(e)+1,t.rounding)},_.toNumber=function(){return+this},_.toPower=_.pow=function(e){var t,n,r,i,s,a,u=this,d=u.constructor,p=+(e=new d(e));if(!e.s)return new d(o);if(!(u=new d(u)).s){if(e.s<1)throw Error(c+"Infinity");return u}if(u.eq(o))return u;if(r=d.precision,e.eq(o))return I(u,r);if(a=(t=e.e)>=(n=e.d.length-1),s=u.s,a){if((n=p<0?-p:p)<=y){for(i=new d(o),t=Math.ceil(r/m+4),l=!1;n%2&&M((i=i.times(u)).d,t),0!==(n=h(n/2));)M((u=u.times(u)).d,t);return l=!0,e.s<0?new d(o).div(i):I(i,r)}}else if(s<0)throw Error(c+"NaN");return s=s<0&&1&e.d[Math.max(t,n)]?-1:1,u.s=1,l=!1,i=e.times(k(u,r+12)),l=!0,(i=E(i)).s=s,i},_.toPrecision=function(e,t){var n,r,i=this,o=i.constructor;return void 0===e?r=T(i,(n=P(i))<=o.toExpNeg||n>=o.toExpPos):(x(e,1,s),void 0===t?t=o.rounding:x(t,0,8),r=T(i=I(new o(i),e,t),e<=(n=P(i))||n<=o.toExpNeg,e)),r},_.toSignificantDigits=_.tosd=function(e,t){var n=this.constructor;return void 0===e?(e=n.precision,t=n.rounding):(x(e,1,s),void 0===t?t=n.rounding:x(t,0,8)),I(new n(this),e,t)},_.toString=_.valueOf=_.val=_.toJSON=function(){var e=this,t=P(e),n=e.constructor;return T(e,t<=n.toExpNeg||t>=n.toExpPos)};var w=function(){function e(e,t){var n,r=0,i=e.length;for(e=e.slice();i--;)n=e[i]*t+r,e[i]=n%g|0,r=n/g|0;return r&&e.unshift(r),e}function t(e,t,n,r){var i,o;if(n!=r)o=n>r?1:-1;else for(i=o=0;i<n;i++)if(e[i]!=t[i]){o=e[i]>t[i]?1:-1;break}return o}function n(e,t,n){for(var r=0;n--;)e[n]-=r,r=e[n]<t[n]?1:0,e[n]=r*g+e[n]-t[n];for(;!e[0]&&e.length>1;)e.shift()}return function(r,i,o,s){var a,l,u,d,h,p,f,y,v,_,b,x,S,w,E,C,A,k,j=r.constructor,G=r.s==i.s?1:-1,T=r.d,M=i.d;if(!r.s)return new j(r);if(!i.s)throw Error(c+"Division by zero");for(l=r.e-i.e,A=M.length,E=T.length,y=(f=new j(G)).d=[],u=0;M[u]==(T[u]||0);)++u;if(M[u]>(T[u]||0)&&--l,(x=null==o?o=j.precision:s?o+(P(r)-P(i))+1:o)<0)return new j(0);if(x=x/m+2|0,u=0,1==A)for(d=0,M=M[0],x++;(u<E||d)&&x--;u++)S=d*g+(T[u]||0),y[u]=S/M|0,d=S%M|0;else{for((d=g/(M[0]+1)|0)>1&&(M=e(M,d),T=e(T,d),A=M.length,E=T.length),w=A,_=(v=T.slice(0,A)).length;_<A;)v[_++]=0;(k=M.slice()).unshift(0),C=M[0],M[1]>=g/2&&++C;do{d=0,(a=t(M,v,A,_))<0?(b=v[0],A!=_&&(b=b*g+(v[1]||0)),(d=b/C|0)>1?(d>=g&&(d=g-1),1==(a=t(h=e(M,d),v,p=h.length,_=v.length))&&(d--,n(h,A<p?k:M,p))):(0==d&&(a=d=1),h=M.slice()),(p=h.length)<_&&h.unshift(0),n(v,h,_),-1==a&&(a=t(M,v,A,_=v.length))<1&&(d++,n(v,A<_?k:M,_)),_=v.length):0===a&&(d++,v=[0]),y[u++]=d,a&&v[0]?v[_++]=T[w]||0:(v=[T[w]],_=1)}while((w++<E||void 0!==v[0])&&x--)}return y[0]||y.shift(),f.e=l,I(f,s?o+P(f)+1:o)}}();function E(e,t){var n,r,i,s,a,c=0,u=0,h=e.constructor,f=h.precision;if(P(e)>16)throw Error(d+P(e));if(!e.s)return new h(o);for(null==t?(l=!1,a=f):a=t,s=new h(.03125);e.abs().gte(.1);)e=e.times(s),u+=5;for(a+=Math.log(p(2,u))/Math.LN10*2+5|0,n=r=i=new h(o),h.precision=a;;){if(r=I(r.times(e),a),n=n.times(++c),S((s=i.plus(w(r,n,a))).d).slice(0,a)===S(i.d).slice(0,a)){for(;u--;)i=I(i.times(i),a);return h.precision=f,null==t?(l=!0,I(i,f)):i}i=s}}function P(e){for(var t=e.e*m,n=e.d[0];n>=10;n/=10)t++;return t}function C(e,t,n){if(t>e.LN10.sd())throw l=!0,n&&(e.precision=n),Error(c+"LN10 precision limit exceeded");return I(new e(e.LN10),t)}function A(e){for(var t="";e--;)t+="0";return t}function k(e,t){var n,r,i,s,a,u,d,h,p,f=1,g=e,m=g.d,y=g.constructor,v=y.precision;if(g.s<1)throw Error(c+(g.s?"NaN":"-Infinity"));if(g.eq(o))return new y(0);if(null==t?(l=!1,h=v):h=t,g.eq(10))return null==t&&(l=!0),C(y,h);if(h+=10,y.precision=h,r=(n=S(m)).charAt(0),s=P(g),!(Math.abs(s)<15e14))return d=C(y,h+2,v).times(s+""),g=k(new y(r+"."+n.slice(1)),h-10).plus(d),y.precision=v,null==t?(l=!0,I(g,v)):g;for(;r<7&&1!=r||1==r&&n.charAt(1)>3;)r=(n=S((g=g.times(e)).d)).charAt(0),f++;for(s=P(g),r>1?(g=new y("0."+n),s++):g=new y(r+"."+n.slice(1)),u=a=g=w(g.minus(o),g.plus(o),h),p=I(g.times(g),h),i=3;;){if(a=I(a.times(p),h),S((d=u.plus(w(a,new y(i),h))).d).slice(0,h)===S(u.d).slice(0,h))return u=u.times(2),0!==s&&(u=u.plus(C(y,h+2,v).times(s+""))),u=w(u,new y(f),h),y.precision=v,null==t?(l=!0,I(u,v)):u;u=d,i+=2}}function j(e,t){var n,r,i;for((n=t.indexOf("."))>-1&&(t=t.replace(".","")),(r=t.search(/e/i))>0?(n<0&&(n=r),n+=+t.slice(r+1),t=t.substring(0,r)):n<0&&(n=t.length),r=0;48===t.charCodeAt(r);)++r;for(i=t.length;48===t.charCodeAt(i-1);)--i;if(t=t.slice(r,i)){if(i-=r,n=n-r-1,e.e=h(n/m),e.d=[],r=(n+1)%m,n<0&&(r+=m),r<i){for(r&&e.d.push(+t.slice(0,r)),i-=m;r<i;)e.d.push(+t.slice(r,r+=m));t=t.slice(r),r=m-t.length}else r-=i;for(;r--;)t+="0";if(e.d.push(+t),l&&(e.e>v||e.e<-v))throw Error(d+n)}else e.s=0,e.e=0,e.d=[0];return e}function I(e,t,n){var r,i,o,s,a,c,u,f,y=e.d;for(s=1,o=y[0];o>=10;o/=10)s++;if((r=t-s)<0)r+=m,i=t,u=y[f=0];else{if((f=Math.ceil((r+1)/m))>=(o=y.length))return e;for(u=o=y[f],s=1;o>=10;o/=10)s++;i=(r%=m)-m+s}if(void 0!==n&&(a=u/(o=p(10,s-i-1))%10|0,c=t<0||void 0!==y[f+1]||u%o,c=n<4?(a||c)&&(0==n||n==(e.s<0?3:2)):a>5||5==a&&(4==n||c||6==n&&(r>0?i>0?u/p(10,s-i):0:y[f-1])%10&1||n==(e.s<0?8:7))),t<1||!y[0])return c?(o=P(e),y.length=1,t=t-o-1,y[0]=p(10,(m-t%m)%m),e.e=h(-t/m)||0):(y.length=1,y[0]=e.e=e.s=0),e;if(0==r?(y.length=f,o=1,f--):(y.length=f+1,o=p(10,m-r),y[f]=i>0?(u/p(10,s-i)%p(10,i)|0)*o:0),c)for(;;){if(0==f){(y[0]+=o)==g&&(y[0]=1,++e.e);break}if(y[f]+=o,y[f]!=g)break;y[f--]=0,o=1}for(r=y.length;0===y[--r];)y.pop();if(l&&(e.e>v||e.e<-v))throw Error(d+P(e));return e}function G(e,t){var n,r,i,o,s,a,c,u,d,h,p=e.constructor,f=p.precision;if(!e.s||!t.s)return t.s?t.s=-t.s:t=new p(e),l?I(t,f):t;if(c=e.d,h=t.d,r=t.e,u=e.e,c=c.slice(),s=u-r){for((d=s<0)?(n=c,s=-s,a=h.length):(n=h,r=u,a=c.length),s>(i=Math.max(Math.ceil(f/m),a)+2)&&(s=i,n.length=1),n.reverse(),i=s;i--;)n.push(0);n.reverse()}else{for((d=(i=c.length)<(a=h.length))&&(a=i),i=0;i<a;i++)if(c[i]!=h[i]){d=c[i]<h[i];break}s=0}for(d&&(n=c,c=h,h=n,t.s=-t.s),a=c.length,i=h.length-a;i>0;--i)c[a++]=0;for(i=h.length;i>s;){if(c[--i]<h[i]){for(o=i;o&&0===c[--o];)c[o]=g-1;--c[o],c[i]+=g}c[i]-=h[i]}for(;0===c[--a];)c.pop();for(;0===c[0];c.shift())--r;return c[0]?(t.d=c,t.e=r,l?I(t,f):t):new p(0)}function T(e,t,n){var r,i=P(e),o=S(e.d),s=o.length;return t?(n&&(r=n-s)>0?o=o.charAt(0)+"."+o.slice(1)+A(r):s>1&&(o=o.charAt(0)+"."+o.slice(1)),o=o+(i<0?"e":"e+")+i):i<0?(o="0."+A(-i-1)+o,n&&(r=n-s)>0&&(o+=A(r))):i>=s?(o+=A(i+1-s),n&&(r=n-i-1)>0&&(o=o+"."+A(r))):((r=i+1)<s&&(o=o.slice(0,r)+"."+o.slice(r)),n&&(r=n-s)>0&&(i+1===s&&(o+="."),o+=A(r))),e.s<0?"-"+o:o}function M(e,t){if(e.length>t)return e.length=t,!0}function O(e){if(!e||"object"!==typeof e)throw Error(c+"Object expected");var t,n,r,i=["precision",1,s,"rounding",0,8,"toExpNeg",-1/0,0,"toExpPos",0,1/0];for(t=0;t<i.length;t+=3)if(void 0!==(r=e[n=i[t]])){if(!(h(r)===r&&r>=i[t+1]&&r<=i[t+2]))throw Error(u+n+": "+r);this[n]=r}if(void 0!==(r=e[n="LN10"])){if(r!=Math.LN10)throw Error(u+n+": "+r);this[n]=new this(r)}return this}a=function e(t){var n,r,i;function o(e){var t=this;if(!(t instanceof o))return new o(e);if(t.constructor=o,e instanceof o)return t.s=e.s,t.e=e.e,void(t.d=(e=e.d)?e.slice():e);if("number"===typeof e){if(0*e!==0)throw Error(u+e);if(e>0)t.s=1;else{if(!(e<0))return t.s=0,t.e=0,void(t.d=[0]);e=-e,t.s=-1}return e===~~e&&e<1e7?(t.e=0,void(t.d=[e])):j(t,e.toString())}if("string"!==typeof e)throw Error(u+e);if(45===e.charCodeAt(0)?(e=e.slice(1),t.s=-1):t.s=1,!f.test(e))throw Error(u+e);j(t,e)}if(o.prototype=_,o.ROUND_UP=0,o.ROUND_DOWN=1,o.ROUND_CEIL=2,o.ROUND_FLOOR=3,o.ROUND_HALF_UP=4,o.ROUND_HALF_DOWN=5,o.ROUND_HALF_EVEN=6,o.ROUND_HALF_CEIL=7,o.ROUND_HALF_FLOOR=8,o.clone=e,o.config=o.set=O,void 0===t&&(t={}),t)for(i=["precision","rounding","toExpNeg","toExpPos","LN10"],n=0;n<i.length;)t.hasOwnProperty(r=i[n++])||(t[r]=this[r]);return o.config(t),o}(a),a.default=a.Decimal=a,o=new a(1),void 0===(r=function(){return a}.call(t,n,t,e))||(e.exports=r)}()},20240:(e,t,n)=>{var r=n(38564),i=n(38512),o=n(7360),s=n(86420),a=n(68912),l=n(75028),c=Date.prototype.getTime;function u(e,t,n){var p=n||{};return!!(p.strict?o(e,t):e===t)||(!e||!t||"object"!==typeof e&&"object"!==typeof t?p.strict?o(e,t):e==t:function(e,t,n){var o,p;if(typeof e!==typeof t)return!1;if(d(e)||d(t))return!1;if(e.prototype!==t.prototype)return!1;if(i(e)!==i(t))return!1;var f=s(e),g=s(t);if(f!==g)return!1;if(f||g)return e.source===t.source&&a(e)===a(t);if(l(e)&&l(t))return c.call(e)===c.call(t);var m=h(e),y=h(t);if(m!==y)return!1;if(m||y){if(e.length!==t.length)return!1;for(o=0;o<e.length;o++)if(e[o]!==t[o])return!1;return!0}if(typeof e!==typeof t)return!1;try{var v=r(e),_=r(t)}catch(b){return!1}if(v.length!==_.length)return!1;for(v.sort(),_.sort(),o=v.length-1;o>=0;o--)if(v[o]!=_[o])return!1;for(o=v.length-1;o>=0;o--)if(!u(e[p=v[o]],t[p],n))return!1;return!0}(e,t,p))}function d(e){return null===e||void 0===e}function h(e){return!(!e||"object"!==typeof e||"number"!==typeof e.length)&&("function"===typeof e.copy&&"function"===typeof e.slice&&!(e.length>0&&"number"!==typeof e[0]))}e.exports=u},64152:(e,t,n)=>{"use strict";var r=n(23384),i=n(72612),o=n(97896),s=n(56948);e.exports=function(e,t,n){if(!e||"object"!==typeof e&&"function"!==typeof e)throw new o("`obj` must be an object or a function`");if("string"!==typeof t&&"symbol"!==typeof t)throw new o("`property` must be a string or a symbol`");if(arguments.length>3&&"boolean"!==typeof arguments[3]&&null!==arguments[3])throw new o("`nonEnumerable`, if provided, must be a boolean or null");if(arguments.length>4&&"boolean"!==typeof arguments[4]&&null!==arguments[4])throw new o("`nonWritable`, if provided, must be a boolean or null");if(arguments.length>5&&"boolean"!==typeof arguments[5]&&null!==arguments[5])throw new o("`nonConfigurable`, if provided, must be a boolean or null");if(arguments.length>6&&"boolean"!==typeof arguments[6])throw new o("`loose`, if provided, must be a boolean");var a=arguments.length>3?arguments[3]:null,l=arguments.length>4?arguments[4]:null,c=arguments.length>5?arguments[5]:null,u=arguments.length>6&&arguments[6],d=!!s&&s(e,t);if(r)r(e,t,{configurable:null===c&&d?d.configurable:!c,enumerable:null===a&&d?d.enumerable:!a,value:n,writable:null===l&&d?d.writable:!l});else{if(!u&&(a||l||c))throw new i("This environment does not support defining a property as non-configurable, non-writable, or non-enumerable.");e[t]=n}}},40108:(e,t,n)=>{"use strict";var r=n(38564),i="function"===typeof Symbol&&"symbol"===typeof Symbol("foo"),o=Object.prototype.toString,s=Array.prototype.concat,a=n(64152),l=n(11040)(),c=function(e,t,n,r){if(t in e)if(!0===r){if(e[t]===n)return}else if("function"!==typeof(i=r)||"[object Function]"!==o.call(i)||!r())return;var i;l?a(e,t,n,!0):a(e,t,n)},u=function(e,t){var n=arguments.length>2?arguments[2]:{},o=r(t);i&&(o=s.call(o,Object.getOwnPropertySymbols(t)));for(var a=0;a<o.length;a+=1)c(e,o[a],t[o[a]],n[o[a]])};u.supportsDescriptors=!!l,e.exports=u},39779:e=>{function t(e,t,n,r){this.dataset=[],this.epsilon=1,this.minPts=2,this.distance=this._euclideanDistance,this.clusters=[],this.noise=[],this._visited=[],this._assigned=[],this._datasetLength=0,this._init(e,t,n,r)}t.prototype.run=function(e,t,n,r){this._init(e,t,n,r);for(var i=0;i<this._datasetLength;i++)if(1!==this._visited[i]){this._visited[i]=1;var o=this._regionQuery(i);if(o.length<this.minPts)this.noise.push(i);else{var s=this.clusters.length;this.clusters.push([]),this._addToCluster(i,s),this._expandCluster(s,o)}}return this.clusters},t.prototype._init=function(e,t,n,r){if(e){if(!(e instanceof Array))throw Error("Dataset must be of type array, "+typeof e+" given");this.dataset=e,this.clusters=[],this.noise=[],this._datasetLength=e.length,this._visited=new Array(this._datasetLength),this._assigned=new Array(this._datasetLength)}t&&(this.epsilon=t),n&&(this.minPts=n),r&&(this.distance=r)},t.prototype._expandCluster=function(e,t){for(var n=0;n<t.length;n++){var r=t[n];if(1!==this._visited[r]){this._visited[r]=1;var i=this._regionQuery(r);i.length>=this.minPts&&(t=this._mergeArrays(t,i))}1!==this._assigned[r]&&this._addToCluster(r,e)}},t.prototype._addToCluster=function(e,t){this.clusters[t].push(e),this._assigned[e]=1},t.prototype._regionQuery=function(e){for(var t=[],n=0;n<this._datasetLength;n++){this.distance(this.dataset[e],this.dataset[n])<this.epsilon&&t.push(n)}return t},t.prototype._mergeArrays=function(e,t){for(var n=t.length,r=0;r<n;r++){var i=t[r];e.indexOf(i)<0&&e.push(i)}return e},t.prototype._euclideanDistance=function(e,t){for(var n=0,r=Math.min(e.length,t.length);r--;)n+=(e[r]-t[r])*(e[r]-t[r]);return Math.sqrt(n)},e.exports&&(e.exports=t)},90768:e=>{function t(e,t,n){this.k=3,this.dataset=[],this.assignments=[],this.centroids=[],this.init(e,t,n)}t.prototype.init=function(e,t,n){this.assignments=[],this.centroids=[],"undefined"!==typeof e&&(this.dataset=e),"undefined"!==typeof t&&(this.k=t),"undefined"!==typeof n&&(this.distance=n)},t.prototype.run=function(e,t){this.init(e,t);for(var n=this.dataset.length,r=0;r<this.k;r++)this.centroids[r]=this.randomCentroid();for(var i=!0;i;){i=this.assign();for(var o=0;o<this.k;o++){for(var s=new Array(u),a=0,l=0;l<u;l++)s[l]=0;for(var c=0;c<n;c++){var u=this.dataset[c].length;if(o===this.assignments[c]){for(l=0;l<u;l++)s[l]+=this.dataset[c][l];a++}}if(a>0){for(l=0;l<u;l++)s[l]/=a;this.centroids[o]=s}else this.centroids[o]=this.randomCentroid(),i=!0}}return this.getClusters()},t.prototype.randomCentroid=function(){var e,t,n=this.dataset.length-1;do{t=Math.round(Math.random()*n),e=this.dataset[t]}while(this.centroids.indexOf(e)>=0);return e},t.prototype.assign=function(){for(var e,t=!1,n=this.dataset.length,r=0;r<n;r++)(e=this.argmin(this.dataset[r],this.centroids,this.distance))!=this.assignments[r]&&(this.assignments[r]=e,t=!0);return t},t.prototype.getClusters=function(){for(var e,t=new Array(this.k),n=0;n<this.assignments.length;n++)"undefined"===typeof t[e=this.assignments[n]]&&(t[e]=[]),t[e].push(n);return t},t.prototype.argmin=function(e,t,n){for(var r,i=Number.MAX_VALUE,o=0,s=t.length,a=0;a<s;a++)(r=n(e,t[a]))<i&&(i=r,o=a);return o},t.prototype.distance=function(e,t){for(var n=0,r=Math.min(e.length,t.length);r--;){var i=e[r]-t[r];n+=i*i}return Math.sqrt(n)},e.exports&&(e.exports=t)},50656:(e,t,n)=>{if(e.exports)var r=n(3076);function i(e,t,n,r){this.epsilon=1,this.minPts=1,this.distance=this._euclideanDistance,this._reachability=[],this._processed=[],this._coreDistance=0,this._orderedList=[],this._init(e,t,n,r)}i.prototype.run=function(e,t,n,i){this._init(e,t,n,i);for(var o=0,s=this.dataset.length;o<s;o++)if(1!==this._processed[o]){this._processed[o]=1,this.clusters.push([o]);var a=this.clusters.length-1;this._orderedList.push(o);var l=new r(null,null,"asc"),c=this._regionQuery(o);void 0!==this._distanceToCore(o)&&(this._updateQueue(o,c,l),this._expandCluster(a,l))}return this.clusters},i.prototype.getReachabilityPlot=function(){for(var e=[],t=0,n=this._orderedList.length;t<n;t++){var r=this._orderedList[t],i=this._reachability[r];e.push([r,i])}return e},i.prototype._init=function(e,t,n,r){if(e){if(!(e instanceof Array))throw Error("Dataset must be of type array, "+typeof e+" given");this.dataset=e,this.clusters=[],this._reachability=new Array(this.dataset.length),this._processed=new Array(this.dataset.length),this._coreDistance=0,this._orderedList=[]}t&&(this.epsilon=t),n&&(this.minPts=n),r&&(this.distance=r)},i.prototype._updateQueue=function(e,t,n){var r=this;this._coreDistance=this._distanceToCore(e),t.forEach((function(t){if(void 0===r._processed[t]){var i=r.distance(r.dataset[e],r.dataset[t]),o=Math.max(r._coreDistance,i);void 0===r._reachability[t]?(r._reachability[t]=o,n.insert(t,o)):o<r._reachability[t]&&(r._reachability[t]=o,n.remove(t),n.insert(t,o))}}))},i.prototype._expandCluster=function(e,t){for(var n=t.getElements(),r=0,i=n.length;r<i;r++){var o=n[r];if(void 0===this._processed[o]){var s=this._regionQuery(o);this._processed[o]=1,this.clusters[e].push(o),this._orderedList.push(o),void 0!==this._distanceToCore(o)&&(this._updateQueue(o,s,t),this._expandCluster(e,t))}}},i.prototype._distanceToCore=function(e){for(var t=this.epsilon,n=0;n<t;n++){if(this._regionQuery(e,n).length>=this.minPts)return n}},i.prototype._regionQuery=function(e,t){t=t||this.epsilon;for(var n=[],r=0,i=this.dataset.length;r<i;r++)this.distance(this.dataset[e],this.dataset[r])<t&&n.push(r);return n},i.prototype._euclideanDistance=function(e,t){for(var n=0,r=Math.min(e.length,t.length);r--;)n+=(e[r]-t[r])*(e[r]-t[r]);return Math.sqrt(n)},e.exports&&(e.exports=i)},3076:e=>{function t(e,t,n){this._queue=[],this._priorities=[],this._sorting="desc",this._init(e,t,n)}t.prototype.insert=function(e,t){for(var n=this._queue.length,r=n;r--;){var i=this._priorities[r];"desc"===this._sorting?t>i&&(n=r):t<i&&(n=r)}this._insertAt(e,t,n)},t.prototype.remove=function(e){for(var t=this._queue.length;t--;){if(e===this._queue[t]){this._queue.splice(t,1),this._priorities.splice(t,1);break}}},t.prototype.forEach=function(e){this._queue.forEach(e)},t.prototype.getElements=function(){return this._queue},t.prototype.getElementPriority=function(e){return this._priorities[e]},t.prototype.getPriorities=function(){return this._priorities},t.prototype.getElementsWithPriorities=function(){for(var e=[],t=0,n=this._queue.length;t<n;t++)e.push([this._queue[t],this._priorities[t]]);return e},t.prototype._init=function(e,t,n){if(e&&t){if(this._queue=[],this._priorities=[],e.length!==t.length)throw new Error("Arrays must have the same length");for(var r=0;r<e.length;r++)this.insert(e[r],t[r])}n&&(this._sorting=n)},t.prototype._insertAt=function(e,t,n){this._queue.length===n?(this._queue.push(e),this._priorities.push(t)):(this._queue.splice(n,0,e),this._priorities.splice(n,0,t))},e.exports&&(e.exports=t)},14016:(e,t,n)=>{e.exports&&(e.exports={DBSCAN:n(39779),KMEANS:n(90768),OPTICS:n(50656),PriorityQueue:n(3076)})},42392:function(e,t,n){e.exports=function(){"use strict";var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(t,n)},t=function(){return(t=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e}).apply(this,arguments)};function r(e,t,n){if(n||2===arguments.length)for(var r,i=0,o=t.length;i<o;i++)!r&&i in t||((r=r||Array.prototype.slice.call(t,0,i))[i]=t[i]);return e.concat(r||Array.prototype.slice.call(t))}var i="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:"undefined"!=typeof window?window:n.g,o=Object.keys,s=Array.isArray;function a(e,t){return"object"!=typeof t||o(t).forEach((function(n){e[n]=t[n]})),e}"undefined"==typeof Promise||i.Promise||(i.Promise=Promise);var l=Object.getPrototypeOf,c={}.hasOwnProperty;function u(e,t){return c.call(e,t)}function d(e,t){"function"==typeof t&&(t=t(l(e))),("undefined"==typeof Reflect?o:Reflect.ownKeys)(t).forEach((function(n){p(e,n,t[n])}))}var h=Object.defineProperty;function p(e,t,n,r){h(e,t,a(n&&u(n,"get")&&"function"==typeof n.get?{get:n.get,set:n.set,configurable:!0}:{value:n,configurable:!0,writable:!0},r))}function f(e){return{from:function(t){return e.prototype=Object.create(t.prototype),p(e.prototype,"constructor",e),{extend:d.bind(null,e.prototype)}}}}var g=Object.getOwnPropertyDescriptor,m=[].slice;function y(e,t,n){return m.call(e,t,n)}function v(e,t){return t(e)}function _(e){if(!e)throw new Error("Assertion Failed")}function b(e){i.setImmediate?setImmediate(e):setTimeout(e,0)}function x(e,t){if("string"==typeof t&&u(e,t))return e[t];if(!t)return e;if("string"!=typeof t){for(var n=[],r=0,i=t.length;r<i;++r){var o=x(e,t[r]);n.push(o)}return n}var s=t.indexOf(".");if(-1!==s){var a=e[t.substr(0,s)];return null==a?void 0:x(a,t.substr(s+1))}}function S(e,t,n){if(e&&void 0!==t&&(!("isFrozen"in Object)||!Object.isFrozen(e)))if("string"!=typeof t&&"length"in t){_("string"!=typeof n&&"length"in n);for(var r=0,i=t.length;r<i;++r)S(e,t[r],n[r])}else{var o,a,l=t.indexOf(".");-1!==l?(o=t.substr(0,l),""===(a=t.substr(l+1))?void 0===n?s(e)&&!isNaN(parseInt(o))?e.splice(o,1):delete e[o]:e[o]=n:S(l=(l=e[o])&&u(e,o)?l:e[o]={},a,n)):void 0===n?s(e)&&!isNaN(parseInt(t))?e.splice(t,1):delete e[t]:e[t]=n}}function w(e){var t,n={};for(t in e)u(e,t)&&(n[t]=e[t]);return n}var E=[].concat;function P(e){return E.apply([],e)}var C="BigUint64Array,BigInt64Array,Array,Boolean,String,Date,RegExp,Blob,File,FileList,FileSystemFileHandle,FileSystemDirectoryHandle,ArrayBuffer,DataView,Uint8ClampedArray,ImageBitmap,ImageData,Map,Set,CryptoKey".split(",").concat(P([8,16,32,64].map((function(e){return["Int","Uint","Float"].map((function(t){return t+e+"Array"}))})))).filter((function(e){return i[e]})),A=new Set(C.map((function(e){return i[e]}))),k=null;function j(e){return k=new WeakMap,e=function e(t){if(!t||"object"!=typeof t)return t;var n=k.get(t);if(n)return n;if(s(t)){n=[],k.set(t,n);for(var r=0,i=t.length;r<i;++r)n.push(e(t[r]))}else if(A.has(t.constructor))n=t;else{var o,a=l(t);for(o in n=a===Object.prototype?{}:Object.create(a),k.set(t,n),t)u(t,o)&&(n[o]=e(t[o]))}return n}(e),k=null,e}var I={}.toString;function G(e){return I.call(e).slice(8,-1)}var T="undefined"!=typeof Symbol?Symbol.iterator:"@@iterator",M="symbol"==typeof T?function(e){var t;return null!=e&&(t=e[T])&&t.apply(e)}:function(){return null};function O(e,t){return 0<=(t=e.indexOf(t))&&e.splice(t,1),0<=t}var R={};function D(e){var t,n,r,i;if(1===arguments.length){if(s(e))return e.slice();if(this===R&&"string"==typeof e)return[e];if(i=M(e)){for(n=[];!(r=i.next()).done;)n.push(r.value);return n}if(null==e)return[e];if("number"!=typeof(t=e.length))return[e];for(n=new Array(t);t--;)n[t]=e[t];return n}for(t=arguments.length,n=new Array(t);t--;)n[t]=arguments[t];return n}var N="undefined"!=typeof Symbol?function(e){return"AsyncFunction"===e[Symbol.toStringTag]}:function(){return!1},L=["Modify","Bulk","OpenFailed","VersionChange","Schema","Upgrade","InvalidTable","MissingAPI","NoSuchDatabase","InvalidArgument","SubTransaction","Unsupported","Internal","DatabaseClosed","PrematureCommit","ForeignAwait"].concat(le=["Unknown","Constraint","Data","TransactionInactive","ReadOnly","Version","NotFound","InvalidState","InvalidAccess","Abort","Timeout","QuotaExceeded","Syntax","DataClone"]),V={VersionChanged:"Database version changed by other database connection",DatabaseClosed:"Database has been closed",Abort:"Transaction aborted",TransactionInactive:"Transaction has already completed or failed",MissingAPI:"IndexedDB API missing. Please visit https://tinyurl.com/y2uuvskb"};function F(e,t){this.name=e,this.message=t}function z(e,t){return e+". Errors: "+Object.keys(t).map((function(e){return t[e].toString()})).filter((function(e,t,n){return n.indexOf(e)===t})).join("\n")}function B(e,t,n,r){this.failures=t,this.failedKeys=r,this.successCount=n,this.message=z(e,t)}function U(e,t){this.name="BulkError",this.failures=Object.keys(t).map((function(e){return t[e]})),this.failuresByPos=t,this.message=z(e,this.failures)}f(F).from(Error).extend({toString:function(){return this.name+": "+this.message}}),f(B).from(F),f(U).from(F);var W=L.reduce((function(e,t){return e[t]=t+"Error",e}),{}),H=F,q=L.reduce((function(e,t){var n=t+"Error";function r(e,r){this.name=n,e?"string"==typeof e?(this.message="".concat(e).concat(r?"\n "+r:""),this.inner=r||null):"object"==typeof e&&(this.message="".concat(e.name," ").concat(e.message),this.inner=e):(this.message=V[t]||n,this.inner=null)}return f(r).from(H),e[t]=r,e}),{});q.Syntax=SyntaxError,q.Type=TypeError,q.Range=RangeError;var X=le.reduce((function(e,t){return e[t+"Error"]=q[t],e}),{}),Y=L.reduce((function(e,t){return-1===["Syntax","Type","Range"].indexOf(t)&&(e[t+"Error"]=q[t]),e}),{});function K(){}function Z(e){return e}function $(e,t){return null==e||e===Z?t:function(n){return t(e(n))}}function J(e,t){return function(){e.apply(this,arguments),t.apply(this,arguments)}}function Q(e,t){return e===K?t:function(){var n=e.apply(this,arguments);void 0!==n&&(arguments[0]=n);var r=this.onsuccess,i=this.onerror;this.onsuccess=null,this.onerror=null;var o=t.apply(this,arguments);return r&&(this.onsuccess=this.onsuccess?J(r,this.onsuccess):r),i&&(this.onerror=this.onerror?J(i,this.onerror):i),void 0!==o?o:n}}function ee(e,t){return e===K?t:function(){e.apply(this,arguments);var n=this.onsuccess,r=this.onerror;this.onsuccess=this.onerror=null,t.apply(this,arguments),n&&(this.onsuccess=this.onsuccess?J(n,this.onsuccess):n),r&&(this.onerror=this.onerror?J(r,this.onerror):r)}}function te(e,t){return e===K?t:function(n){var r=e.apply(this,arguments);a(n,r);var i=this.onsuccess,o=this.onerror;return this.onsuccess=null,this.onerror=null,n=t.apply(this,arguments),i&&(this.onsuccess=this.onsuccess?J(i,this.onsuccess):i),o&&(this.onerror=this.onerror?J(o,this.onerror):o),void 0===r?void 0===n?void 0:n:a(r,n)}}function ne(e,t){return e===K?t:function(){return!1!==t.apply(this,arguments)&&e.apply(this,arguments)}}function re(e,t){return e===K?t:function(){var n=e.apply(this,arguments);if(n&&"function"==typeof n.then){for(var r=this,i=arguments.length,o=new Array(i);i--;)o[i]=arguments[i];return n.then((function(){return t.apply(r,o)}))}return t.apply(this,arguments)}}Y.ModifyError=B,Y.DexieError=F,Y.BulkError=U;var ie="undefined"!=typeof location&&/^(http|https):\/\/(localhost|127\.0\.0\.1)/.test(location.href);function oe(e){ie=e}var se={},ae=100,le=(C="undefined"==typeof Promise?[]:function(){var e=Promise.resolve();if("undefined"==typeof crypto||!crypto.subtle)return[e,l(e),e];var t=crypto.subtle.digest("SHA-512",new Uint8Array([0]));return[t,l(t),e]}(),C[0]),ce=(L=C[1],C=C[2],L=L&&L.then,le&&le.constructor),ue=!!C,de=function(e,t){_e.push([e,t]),pe&&(queueMicrotask(je),pe=!1)},he=!0,pe=!0,fe=[],ge=[],me=Z,ye={id:"global",global:!0,ref:0,unhandleds:[],onunhandled:K,pgp:!1,env:{},finalize:K},ve=ye,_e=[],be=0,xe=[];function Se(e){if("object"!=typeof this)throw new TypeError("Promises must be constructed via new");this._listeners=[],this._lib=!1;var t=this._PSD=ve;if("function"!=typeof e){if(e!==se)throw new TypeError("Not a function");return this._state=arguments[1],this._value=arguments[2],void(!1===this._state&&Pe(this,this._value))}this._state=null,this._value=null,++t.ref,function e(t,n){try{n((function(n){if(null===t._state){if(n===t)throw new TypeError("A promise cannot be resolved with itself.");var r=t._lib&&Ie();n&&"function"==typeof n.then?e(t,(function(e,t){n instanceof Se?n._then(e,t):n.then(e,t)})):(t._state=!0,t._value=n,Ce(t)),r&&Ge()}}),Pe.bind(null,t))}catch(n){Pe(t,n)}}(this,e)}var we={get:function(){var e=ve,t=Ve;function n(n,r){var i=this,o=!e.global&&(e!==ve||t!==Ve),s=o&&!Ue(),a=new Se((function(t,a){Ae(i,new Ee(Ke(n,e,o,s),Ke(r,e,o,s),t,a,e))}));return this._consoleTask&&(a._consoleTask=this._consoleTask),a}return n.prototype=se,n},set:function(e){p(this,"then",e&&e.prototype===se?we:{get:function(){return e},set:we.set})}};function Ee(e,t,n,r,i){this.onFulfilled="function"==typeof e?e:null,this.onRejected="function"==typeof t?t:null,this.resolve=n,this.reject=r,this.psd=i}function Pe(e,t){var n,r;ge.push(t),null===e._state&&(n=e._lib&&Ie(),t=me(t),e._state=!1,e._value=t,r=e,fe.some((function(e){return e._value===r._value}))||fe.push(r),Ce(e),n&&Ge())}function Ce(e){var t=e._listeners;e._listeners=[];for(var n=0,r=t.length;n<r;++n)Ae(e,t[n]);var i=e._PSD;--i.ref||i.finalize(),0===be&&(++be,de((function(){0==--be&&Te()}),[]))}function Ae(e,t){if(null!==e._state){var n=e._state?t.onFulfilled:t.onRejected;if(null===n)return(e._state?t.resolve:t.reject)(e._value);++t.psd.ref,++be,de(ke,[n,e,t])}else e._listeners.push(t)}function ke(e,t,n){try{var r,i=t._value;!t._state&&ge.length&&(ge=[]),r=ie&&t._consoleTask?t._consoleTask.run((function(){return e(i)})):e(i),t._state||-1!==ge.indexOf(i)||function(e){for(var t=fe.length;t;)if(fe[--t]._value===e._value)return fe.splice(t,1)}(t),n.resolve(r)}catch(e){n.reject(e)}finally{0==--be&&Te(),--n.psd.ref||n.psd.finalize()}}function je(){Ye(ye,(function(){Ie()&&Ge()}))}function Ie(){var e=he;return pe=he=!1,e}function Ge(){var e,t,n;do{for(;0<_e.length;)for(e=_e,_e=[],n=e.length,t=0;t<n;++t){var r=e[t];r[0].apply(null,r[1])}}while(0<_e.length);pe=he=!0}function Te(){var e=fe;fe=[],e.forEach((function(e){e._PSD.onunhandled.call(null,e._value,e)}));for(var t=xe.slice(0),n=t.length;n;)t[--n]()}function Me(e){return new Se(se,!1,e)}function Oe(e,t){var n=ve;return function(){var r=Ie(),i=ve;try{return qe(n,!0),e.apply(this,arguments)}catch(r){t&&t(r)}finally{qe(i,!1),r&&Ge()}}}d(Se.prototype,{then:we,_then:function(e,t){Ae(this,new Ee(null,null,e,t,ve))},catch:function(e){if(1===arguments.length)return this.then(null,e);var t=e,n=arguments[1];return"function"==typeof t?this.then(null,(function(e){return(e instanceof t?n:Me)(e)})):this.then(null,(function(e){return(e&&e.name===t?n:Me)(e)}))},finally:function(e){return this.then((function(t){return Se.resolve(e()).then((function(){return t}))}),(function(t){return Se.resolve(e()).then((function(){return Me(t)}))}))},timeout:function(e,t){var n=this;return e<1/0?new Se((function(r,i){var o=setTimeout((function(){return i(new q.Timeout(t))}),e);n.then(r,i).finally(clearTimeout.bind(null,o))})):this}}),"undefined"!=typeof Symbol&&Symbol.toStringTag&&p(Se.prototype,Symbol.toStringTag,"Dexie.Promise"),ye.env=Xe(),d(Se,{all:function(){var e=D.apply(null,arguments).map(We);return new Se((function(t,n){0===e.length&&t([]);var r=e.length;e.forEach((function(i,o){return Se.resolve(i).then((function(n){e[o]=n,--r||t(e)}),n)}))}))},resolve:function(e){return e instanceof Se?e:e&&"function"==typeof e.then?new Se((function(t,n){e.then(t,n)})):new Se(se,!0,e)},reject:Me,race:function(){var e=D.apply(null,arguments).map(We);return new Se((function(t,n){e.map((function(e){return Se.resolve(e).then(t,n)}))}))},PSD:{get:function(){return ve},set:function(e){return ve=e}},totalEchoes:{get:function(){return Ve}},newPSD:ze,usePSD:Ye,scheduler:{get:function(){return de},set:function(e){de=e}},rejectionMapper:{get:function(){return me},set:function(e){me=e}},follow:function(e,t){return new Se((function(n,r){return ze((function(t,n){var r=ve;r.unhandleds=[],r.onunhandled=n,r.finalize=J((function(){var e,r=this;e=function(){0===r.unhandleds.length?t():n(r.unhandleds[0])},xe.push((function t(){e(),xe.splice(xe.indexOf(t),1)})),++be,de((function(){0==--be&&Te()}),[])}),r.finalize),e()}),t,n,r)}))}}),ce&&(ce.allSettled&&p(Se,"allSettled",(function(){var e=D.apply(null,arguments).map(We);return new Se((function(t){0===e.length&&t([]);var n=e.length,r=new Array(n);e.forEach((function(e,i){return Se.resolve(e).then((function(e){return r[i]={status:"fulfilled",value:e}}),(function(e){return r[i]={status:"rejected",reason:e}})).then((function(){return--n||t(r)}))}))}))})),ce.any&&"undefined"!=typeof AggregateError&&p(Se,"any",(function(){var e=D.apply(null,arguments).map(We);return new Se((function(t,n){0===e.length&&n(new AggregateError([]));var r=e.length,i=new Array(r);e.forEach((function(e,o){return Se.resolve(e).then((function(e){return t(e)}),(function(e){i[o]=e,--r||n(new AggregateError(i))}))}))}))})));var Re={awaits:0,echoes:0,id:0},De=0,Ne=[],Le=0,Ve=0,Fe=0;function ze(e,t,n,r){var i=ve,o=Object.create(i);return o.parent=i,o.ref=0,o.global=!1,o.id=++Fe,ye.env,o.env=ue?{Promise:Se,PromiseProp:{value:Se,configurable:!0,writable:!0},all:Se.all,race:Se.race,allSettled:Se.allSettled,any:Se.any,resolve:Se.resolve,reject:Se.reject}:{},t&&a(o,t),++i.ref,o.finalize=function(){--this.parent.ref||this.parent.finalize()},r=Ye(o,e,n,r),0===o.ref&&o.finalize(),r}function Be(){return Re.id||(Re.id=++De),++Re.awaits,Re.echoes+=ae,Re.id}function Ue(){return!!Re.awaits&&(0==--Re.awaits&&(Re.id=0),Re.echoes=Re.awaits*ae,!0)}function We(e){return Re.echoes&&e&&e.constructor===ce?(Be(),e.then((function(e){return Ue(),e}),(function(e){return Ue(),$e(e)}))):e}function He(){var e=Ne[Ne.length-1];Ne.pop(),qe(e,!1)}function qe(e,t){var n,r=ve;(t?!Re.echoes||Le++&&e===ve:!Le||--Le&&e===ve)||queueMicrotask(t?function(e){++Ve,Re.echoes&&0!=--Re.echoes||(Re.echoes=Re.awaits=Re.id=0),Ne.push(ve),qe(e,!0)}.bind(null,e):He),e!==ve&&(ve=e,r===ye&&(ye.env=Xe()),ue&&(n=ye.env.Promise,t=e.env,(r.global||e.global)&&(Object.defineProperty(i,"Promise",t.PromiseProp),n.all=t.all,n.race=t.race,n.resolve=t.resolve,n.reject=t.reject,t.allSettled&&(n.allSettled=t.allSettled),t.any&&(n.any=t.any))))}function Xe(){var e=i.Promise;return ue?{Promise:e,PromiseProp:Object.getOwnPropertyDescriptor(i,"Promise"),all:e.all,race:e.race,allSettled:e.allSettled,any:e.any,resolve:e.resolve,reject:e.reject}:{}}function Ye(e,t,n,r,i){var o=ve;try{return qe(e,!0),t(n,r,i)}finally{qe(o,!1)}}function Ke(e,t,n,r){return"function"!=typeof e?e:function(){var i=ve;n&&Be(),qe(t,!0);try{return e.apply(this,arguments)}finally{qe(i,!1),r&&queueMicrotask(Ue)}}}function Ze(e){Promise===ce&&0===Re.echoes?0===Le?e():enqueueNativeMicroTask(e):setTimeout(e,0)}-1===(""+L).indexOf("[native code]")&&(Be=Ue=K);var $e=Se.reject,Je=String.fromCharCode(65535),Qe="Invalid key provided. Keys must be of type string, number, Date or Array<string | number | Date>.",et="String expected.",tt=[],nt="__dbnames",rt="readonly",it="readwrite";function ot(e,t){return e?t?function(){return e.apply(this,arguments)&&t.apply(this,arguments)}:e:t}var st={type:3,lower:-1/0,lowerOpen:!1,upper:[[]],upperOpen:!1};function at(e){return"string"!=typeof e||/\./.test(e)?function(e){return e}:function(t){return void 0===t[e]&&e in t&&delete(t=j(t))[e],t}}function lt(){throw q.Type()}function ct(e,t){try{var n=ut(e),r=ut(t);if(n!==r)return"Array"===n?1:"Array"===r?-1:"binary"===n?1:"binary"===r?-1:"string"===n?1:"string"===r?-1:"Date"===n?1:"Date"!==r?NaN:-1;switch(n){case"number":case"Date":case"string":return t<e?1:e<t?-1:0;case"binary":return function(e,t){for(var n=e.length,r=t.length,i=n<r?n:r,o=0;o<i;++o)if(e[o]!==t[o])return e[o]<t[o]?-1:1;return n===r?0:n<r?-1:1}(dt(e),dt(t));case"Array":return function(e,t){for(var n=e.length,r=t.length,i=n<r?n:r,o=0;o<i;++o){var s=ct(e[o],t[o]);if(0!==s)return s}return n===r?0:n<r?-1:1}(e,t)}}catch(e){}return NaN}function ut(e){var t=typeof e;return"object"!=t?t:ArrayBuffer.isView(e)||"ArrayBuffer"===(e=G(e))?"binary":e}function dt(e){return e instanceof Uint8Array?e:ArrayBuffer.isView(e)?new Uint8Array(e.buffer,e.byteOffset,e.byteLength):new Uint8Array(e)}var ht=(pt.prototype._trans=function(e,t,n){var r=this._tx||ve.trans,i=this.name,o=ie&&"undefined"!=typeof console&&console.createTask&&console.createTask("Dexie: ".concat("readonly"===e?"read":"write"," ").concat(this.name));function s(e,n,r){if(!r.schema[i])throw new q.NotFound("Table "+i+" not part of transaction");return t(r.idbtrans,r)}var a=Ie();try{var l=r&&r.db._novip===this.db._novip?r===ve.trans?r._promise(e,s,n):ze((function(){return r._promise(e,s,n)}),{trans:r,transless:ve.transless||ve}):function t(n,r,i,o){if(n.idbdb&&(n._state.openComplete||ve.letThrough||n._vip)){var s=n._createTransaction(r,i,n._dbSchema);try{s.create(),n._state.PR1398_maxLoop=3}catch(e){return e.name===W.InvalidState&&n.isOpen()&&0<--n._state.PR1398_maxLoop?(console.warn("Dexie: Need to reopen db"),n.close({disableAutoOpen:!1}),n.open().then((function(){return t(n,r,i,o)}))):$e(e)}return s._promise(r,(function(e,t){return ze((function(){return ve.trans=s,o(e,t,s)}))})).then((function(e){if("readwrite"===r)try{s.idbtrans.commit()}catch(e){}return"readonly"===r?e:s._completion.then((function(){return e}))}))}if(n._state.openComplete)return $e(new q.DatabaseClosed(n._state.dbOpenError));if(!n._state.isBeingOpened){if(!n._state.autoOpen)return $e(new q.DatabaseClosed);n.open().catch(K)}return n._state.dbReadyPromise.then((function(){return t(n,r,i,o)}))}(this.db,e,[this.name],s);return o&&(l._consoleTask=o,l=l.catch((function(e){return console.trace(e),$e(e)}))),l}finally{a&&Ge()}},pt.prototype.get=function(e,t){var n=this;return e&&e.constructor===Object?this.where(e).first(t):null==e?$e(new q.Type("Invalid argument to Table.get()")):this._trans("readonly",(function(t){return n.core.get({trans:t,key:e}).then((function(e){return n.hook.reading.fire(e)}))})).then(t)},pt.prototype.where=function(e){if("string"==typeof e)return new this.db.WhereClause(this,e);if(s(e))return new this.db.WhereClause(this,"[".concat(e.join("+"),"]"));var t=o(e);if(1===t.length)return this.where(t[0]).equals(e[t[0]]);var n=this.schema.indexes.concat(this.schema.primKey).filter((function(e){if(e.compound&&t.every((function(t){return 0<=e.keyPath.indexOf(t)}))){for(var n=0;n<t.length;++n)if(-1===t.indexOf(e.keyPath[n]))return!1;return!0}return!1})).sort((function(e,t){return e.keyPath.length-t.keyPath.length}))[0];if(n&&this.db._maxKey!==Je){var r=n.keyPath.slice(0,t.length);return this.where(r).equals(r.map((function(t){return e[t]})))}!n&&ie&&console.warn("The query ".concat(JSON.stringify(e)," on ").concat(this.name," would benefit from a ")+"compound index [".concat(t.join("+"),"]"));var i=this.schema.idxByName,a=this.db._deps.indexedDB;function l(e,t){return 0===a.cmp(e,t)}var c=t.reduce((function(t,n){var r=t[0],o=t[1],a=(t=i[n],e[n]);return[r||t,r||!t?ot(o,t&&t.multi?function(e){return e=x(e,n),s(e)&&e.some((function(e){return l(a,e)}))}:function(e){return l(a,x(e,n))}):o]}),[null,null]);return r=c[0],c=c[1],r?this.where(r.name).equals(e[r.keyPath]).filter(c):n?this.filter(c):this.where(t).equals("")},pt.prototype.filter=function(e){return this.toCollection().and(e)},pt.prototype.count=function(e){return this.toCollection().count(e)},pt.prototype.offset=function(e){return this.toCollection().offset(e)},pt.prototype.limit=function(e){return this.toCollection().limit(e)},pt.prototype.each=function(e){return this.toCollection().each(e)},pt.prototype.toArray=function(e){return this.toCollection().toArray(e)},pt.prototype.toCollection=function(){return new this.db.Collection(new this.db.WhereClause(this))},pt.prototype.orderBy=function(e){return new this.db.Collection(new this.db.WhereClause(this,s(e)?"[".concat(e.join("+"),"]"):e))},pt.prototype.reverse=function(){return this.toCollection().reverse()},pt.prototype.mapToClass=function(t){var n,r=this.db,i=this.name;function o(){return null!==n&&n.apply(this,arguments)||this}(this.schema.mappedClass=t).prototype instanceof lt&&(function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}(o,n=t),Object.defineProperty(o.prototype,"db",{get:function(){return r},enumerable:!1,configurable:!0}),o.prototype.table=function(){return i},t=o);for(var s=new Set,a=t.prototype;a;a=l(a))Object.getOwnPropertyNames(a).forEach((function(e){return s.add(e)}));function c(e){if(!e)return e;var n,r=Object.create(t.prototype);for(n in e)if(!s.has(n))try{r[n]=e[n]}catch(e){}return r}return this.schema.readHook&&this.hook.reading.unsubscribe(this.schema.readHook),this.schema.readHook=c,this.hook("reading",c),t},pt.prototype.defineClass=function(){return this.mapToClass((function(e){a(this,e)}))},pt.prototype.add=function(e,t){var n=this,r=this.schema.primKey,i=r.auto,o=r.keyPath,s=e;return o&&i&&(s=at(o)(e)),this._trans("readwrite",(function(e){return n.core.mutate({trans:e,type:"add",keys:null!=t?[t]:null,values:[s]})})).then((function(e){return e.numFailures?Se.reject(e.failures[0]):e.lastResult})).then((function(t){if(o)try{S(e,o,t)}catch(t){}return t}))},pt.prototype.update=function(e,t){return"object"!=typeof e||s(e)?this.where(":id").equals(e).modify(t):void 0===(e=x(e,this.schema.primKey.keyPath))?$e(new q.InvalidArgument("Given object does not contain its primary key")):this.where(":id").equals(e).modify(t)},pt.prototype.put=function(e,t){var n=this,r=this.schema.primKey,i=r.auto,o=r.keyPath,s=e;return o&&i&&(s=at(o)(e)),this._trans("readwrite",(function(e){return n.core.mutate({trans:e,type:"put",values:[s],keys:null!=t?[t]:null})})).then((function(e){return e.numFailures?Se.reject(e.failures[0]):e.lastResult})).then((function(t){if(o)try{S(e,o,t)}catch(t){}return t}))},pt.prototype.delete=function(e){var t=this;return this._trans("readwrite",(function(n){return t.core.mutate({trans:n,type:"delete",keys:[e]})})).then((function(e){return e.numFailures?Se.reject(e.failures[0]):void 0}))},pt.prototype.clear=function(){var e=this;return this._trans("readwrite",(function(t){return e.core.mutate({trans:t,type:"deleteRange",range:st})})).then((function(e){return e.numFailures?Se.reject(e.failures[0]):void 0}))},pt.prototype.bulkGet=function(e){var t=this;return this._trans("readonly",(function(n){return t.core.getMany({keys:e,trans:n}).then((function(e){return e.map((function(e){return t.hook.reading.fire(e)}))}))}))},pt.prototype.bulkAdd=function(e,t,n){var r=this,i=Array.isArray(t)?t:void 0,o=(n=n||(i?void 0:t))?n.allKeys:void 0;return this._trans("readwrite",(function(t){var n=(a=r.schema.primKey).auto;if((a=a.keyPath)&&i)throw new q.InvalidArgument("bulkAdd(): keys argument invalid on tables with inbound keys");if(i&&i.length!==e.length)throw new q.InvalidArgument("Arguments objects and keys must have the same length");var s=e.length,a=a&&n?e.map(at(a)):e;return r.core.mutate({trans:t,type:"add",keys:i,values:a,wantResults:o}).then((function(e){var t=e.numFailures,n=e.results,i=e.lastResult;if(e=e.failures,0===t)return o?n:i;throw new U("".concat(r.name,".bulkAdd(): ").concat(t," of ").concat(s," operations failed"),e)}))}))},pt.prototype.bulkPut=function(e,t,n){var r=this,i=Array.isArray(t)?t:void 0,o=(n=n||(i?void 0:t))?n.allKeys:void 0;return this._trans("readwrite",(function(t){var n=(a=r.schema.primKey).auto;if((a=a.keyPath)&&i)throw new q.InvalidArgument("bulkPut(): keys argument invalid on tables with inbound keys");if(i&&i.length!==e.length)throw new q.InvalidArgument("Arguments objects and keys must have the same length");var s=e.length,a=a&&n?e.map(at(a)):e;return r.core.mutate({trans:t,type:"put",keys:i,values:a,wantResults:o}).then((function(e){var t=e.numFailures,n=e.results,i=e.lastResult;if(e=e.failures,0===t)return o?n:i;throw new U("".concat(r.name,".bulkPut(): ").concat(t," of ").concat(s," operations failed"),e)}))}))},pt.prototype.bulkUpdate=function(e){var t=this,n=this.core,r=e.map((function(e){return e.key})),i=e.map((function(e){return e.changes})),o=[];return this._trans("readwrite",(function(s){return n.getMany({trans:s,keys:r,cache:"clone"}).then((function(a){var l=[],c=[];e.forEach((function(e,n){var r=e.key,i=e.changes,s=a[n];if(s){for(var u=0,d=Object.keys(i);u<d.length;u++){var h=d[u],p=i[h];if(h===t.schema.primKey.keyPath){if(0!==ct(p,r))throw new q.Constraint("Cannot update primary key in bulkUpdate()")}else S(s,h,p)}o.push(n),l.push(r),c.push(s)}}));var u=l.length;return n.mutate({trans:s,type:"put",keys:l,values:c,updates:{keys:r,changeSpecs:i}}).then((function(e){var n=e.numFailures,r=e.failures;if(0===n)return u;for(var i=0,s=Object.keys(r);i<s.length;i++){var a,l=s[i],c=o[Number(l)];null!=c&&(a=r[l],delete r[l],r[c]=a)}throw new U("".concat(t.name,".bulkUpdate(): ").concat(n," of ").concat(u," operations failed"),r)}))}))}))},pt.prototype.bulkDelete=function(e){var t=this,n=e.length;return this._trans("readwrite",(function(n){return t.core.mutate({trans:n,type:"delete",keys:e})})).then((function(e){var r=e.numFailures,i=e.lastResult;if(e=e.failures,0===r)return i;throw new U("".concat(t.name,".bulkDelete(): ").concat(r," of ").concat(n," operations failed"),e)}))},pt);function pt(){}function ft(e){function t(t,r){if(r){for(var i=arguments.length,o=new Array(i-1);--i;)o[i-1]=arguments[i];return n[t].subscribe.apply(null,o),e}if("string"==typeof t)return n[t]}var n={};t.addEventType=a;for(var r=1,i=arguments.length;r<i;++r)a(arguments[r]);return t;function a(e,r,i){if("object"!=typeof e){var l;r=r||ne;var c={subscribers:[],fire:i=i||K,subscribe:function(e){-1===c.subscribers.indexOf(e)&&(c.subscribers.push(e),c.fire=r(c.fire,e))},unsubscribe:function(e){c.subscribers=c.subscribers.filter((function(t){return t!==e})),c.fire=c.subscribers.reduce(r,i)}};return n[e]=t[e]=c}o(l=e).forEach((function(e){var t=l[e];if(s(t))a(e,l[e][0],l[e][1]);else{if("asap"!==t)throw new q.InvalidArgument("Invalid event config");var n=a(e,Z,(function(){for(var e=arguments.length,t=new Array(e);e--;)t[e]=arguments[e];n.subscribers.forEach((function(e){b((function(){e.apply(null,t)}))}))}))}}))}}function gt(e,t){return f(t).from({prototype:e}),t}function mt(e,t){return!(e.filter||e.algorithm||e.or)&&(t?e.justLimit:!e.replayFilter)}function yt(e,t){e.filter=ot(e.filter,t)}function vt(e,t,n){var r=e.replayFilter;e.replayFilter=r?function(){return ot(r(),t())}:t,e.justLimit=n&&!r}function _t(e,t){if(e.isPrimKey)return t.primaryKey;var n=t.getIndexByKeyPath(e.index);if(!n)throw new q.Schema("KeyPath "+e.index+" on object store "+t.name+" is not indexed");return n}function bt(e,t,n){var r=_t(e,t.schema);return t.openCursor({trans:n,values:!e.keysOnly,reverse:"prev"===e.dir,unique:!!e.unique,query:{index:r,range:e.range}})}function xt(e,t,n,r){var i=e.replayFilter?ot(e.filter,e.replayFilter()):e.filter;if(e.or){var o={},s=function(e,n,r){var s,a;i&&!i(n,r,(function(e){return n.stop(e)}),(function(e){return n.fail(e)}))||("[object ArrayBuffer]"===(a=""+(s=n.primaryKey))&&(a=""+new Uint8Array(s)),u(o,a)||(o[a]=!0,t(e,n,r)))};return Promise.all([e.or._iterate(s,n),St(bt(e,r,n),e.algorithm,s,!e.keysOnly&&e.valueMapper)])}return St(bt(e,r,n),ot(e.algorithm,i),t,!e.keysOnly&&e.valueMapper)}function St(e,t,n,r){var i=Oe(r?function(e,t,i){return n(r(e),t,i)}:n);return e.then((function(e){if(e)return e.start((function(){var n=function(){return e.continue()};t&&!t(e,(function(e){return n=e}),(function(t){e.stop(t),n=K}),(function(t){e.fail(t),n=K}))||i(e.value,e,(function(e){return n=e})),n()}))}))}C=Symbol();var wt=(Et.prototype.execute=function(e){if(void 0!==this.add){var t=this.add;if(s(t))return r(r([],s(e)?e:[],!0),t,!0).sort();if("number"==typeof t)return(Number(e)||0)+t;if("bigint"==typeof t)try{return BigInt(e)+t}catch(e){return BigInt(0)+t}throw new TypeError("Invalid term ".concat(t))}if(void 0!==this.remove){var n=this.remove;if(s(n))return s(e)?e.filter((function(e){return!n.includes(e)})).sort():[];if("number"==typeof n)return Number(e)-n;if("bigint"==typeof n)try{return BigInt(e)-n}catch(e){return BigInt(0)-n}throw new TypeError("Invalid subtrahend ".concat(n))}return(t=null===(t=this.replacePrefix)||void 0===t?void 0:t[0])&&"string"==typeof e&&e.startsWith(t)?this.replacePrefix[1]+e.substring(t.length):e},Et);function Et(e){Object.assign(this,e)}var Pt=(Ct.prototype._read=function(e,t){var n=this._ctx;return n.error?n.table._trans(null,$e.bind(null,n.error)):n.table._trans("readonly",e).then(t)},Ct.prototype._write=function(e){var t=this._ctx;return t.error?t.table._trans(null,$e.bind(null,t.error)):t.table._trans("readwrite",e,"locked")},Ct.prototype._addAlgorithm=function(e){var t=this._ctx;t.algorithm=ot(t.algorithm,e)},Ct.prototype._iterate=function(e,t){return xt(this._ctx,e,t,this._ctx.table.core)},Ct.prototype.clone=function(e){var t=Object.create(this.constructor.prototype),n=Object.create(this._ctx);return e&&a(n,e),t._ctx=n,t},Ct.prototype.raw=function(){return this._ctx.valueMapper=null,this},Ct.prototype.each=function(e){var t=this._ctx;return this._read((function(n){return xt(t,e,n,t.table.core)}))},Ct.prototype.count=function(e){var t=this;return this._read((function(e){var n=t._ctx,r=n.table.core;if(mt(n,!0))return r.count({trans:e,query:{index:_t(n,r.schema),range:n.range}}).then((function(e){return Math.min(e,n.limit)}));var i=0;return xt(n,(function(){return++i,!1}),e,r).then((function(){return i}))})).then(e)},Ct.prototype.sortBy=function(e,t){var n=e.split(".").reverse(),r=n[0],i=n.length-1;function o(e,t){return t?o(e[n[t]],t-1):e[r]}var s="next"===this._ctx.dir?1:-1;function a(e,t){return(e=o(e,i))<(t=o(t,i))?-s:t<e?s:0}return this.toArray((function(e){return e.sort(a)})).then(t)},Ct.prototype.toArray=function(e){var t=this;return this._read((function(e){var n=t._ctx;if("next"===n.dir&&mt(n,!0)&&0<n.limit){var r=n.valueMapper,i=_t(n,n.table.core.schema);return n.table.core.query({trans:e,limit:n.limit,values:!0,query:{index:i,range:n.range}}).then((function(e){return e=e.result,r?e.map(r):e}))}var o=[];return xt(n,(function(e){return o.push(e)}),e,n.table.core).then((function(){return o}))}),e)},Ct.prototype.offset=function(e){var t=this._ctx;return e<=0||(t.offset+=e,mt(t)?vt(t,(function(){var t=e;return function(e,n){return 0===t||(1===t?--t:n((function(){e.advance(t),t=0})),!1)}})):vt(t,(function(){var t=e;return function(){return--t<0}}))),this},Ct.prototype.limit=function(e){return this._ctx.limit=Math.min(this._ctx.limit,e),vt(this._ctx,(function(){var t=e;return function(e,n,r){return--t<=0&&n(r),0<=t}}),!0),this},Ct.prototype.until=function(e,t){return yt(this._ctx,(function(n,r,i){return!e(n.value)||(r(i),t)})),this},Ct.prototype.first=function(e){return this.limit(1).toArray((function(e){return e[0]})).then(e)},Ct.prototype.last=function(e){return this.reverse().first(e)},Ct.prototype.filter=function(e){var t;return yt(this._ctx,(function(t){return e(t.value)})),(t=this._ctx).isMatch=ot(t.isMatch,e),this},Ct.prototype.and=function(e){return this.filter(e)},Ct.prototype.or=function(e){return new this.db.WhereClause(this._ctx.table,e,this)},Ct.prototype.reverse=function(){return this._ctx.dir="prev"===this._ctx.dir?"next":"prev",this._ondirectionchange&&this._ondirectionchange(this._ctx.dir),this},Ct.prototype.desc=function(){return this.reverse()},Ct.prototype.eachKey=function(e){var t=this._ctx;return t.keysOnly=!t.isMatch,this.each((function(t,n){e(n.key,n)}))},Ct.prototype.eachUniqueKey=function(e){return this._ctx.unique="unique",this.eachKey(e)},Ct.prototype.eachPrimaryKey=function(e){var t=this._ctx;return t.keysOnly=!t.isMatch,this.each((function(t,n){e(n.primaryKey,n)}))},Ct.prototype.keys=function(e){var t=this._ctx;t.keysOnly=!t.isMatch;var n=[];return this.each((function(e,t){n.push(t.key)})).then((function(){return n})).then(e)},Ct.prototype.primaryKeys=function(e){var t=this._ctx;if("next"===t.dir&&mt(t,!0)&&0<t.limit)return this._read((function(e){var n=_t(t,t.table.core.schema);return t.table.core.query({trans:e,values:!1,limit:t.limit,query:{index:n,range:t.range}})})).then((function(e){return e.result})).then(e);t.keysOnly=!t.isMatch;var n=[];return this.each((function(e,t){n.push(t.primaryKey)})).then((function(){return n})).then(e)},Ct.prototype.uniqueKeys=function(e){return this._ctx.unique="unique",this.keys(e)},Ct.prototype.firstKey=function(e){return this.limit(1).keys((function(e){return e[0]})).then(e)},Ct.prototype.lastKey=function(e){return this.reverse().firstKey(e)},Ct.prototype.distinct=function(){var e;if(!(e=(e=this._ctx).index&&e.table.schema.idxByName[e.index])||!e.multi)return this;var t={};return yt(this._ctx,(function(e){var n=e.primaryKey.toString();return e=u(t,n),t[n]=!0,!e})),this},Ct.prototype.modify=function(e){var t=this,n=this._ctx;return this._write((function(r){var i,s,a;function l(e,t){var n=t.failures;t=t.numFailures,g+=e-t;for(var r=0,i=o(n);r<i.length;r++){var s=i[r];f.push(n[s])}}a="function"==typeof e?e:(i=o(e),s=i.length,function(t){for(var n=!1,r=0;r<s;++r){var o=i[r],a=e[o],l=x(t,o);a instanceof wt?(S(t,o,a.execute(l)),n=!0):l!==a&&(S(t,o,a),n=!0)}return n});var c=n.table.core,u=c.schema.primaryKey,d=u.outbound,h=u.extractKey,p=t.db._options.modifyChunkSize||200,f=[],g=0,m=[];return t.clone().primaryKeys().then((function(t){function i(n){var s=Math.min(p,t.length-n);return c.getMany({trans:r,keys:t.slice(n,n+s),cache:"immutable"}).then((function(u){for(var f=[],g=[],m=d?[]:null,y=[],v=0;v<s;++v){var _=u[v],b={value:j(_),primKey:t[n+v]};!1!==a.call(b,b.value,b)&&(null==b.value?y.push(t[n+v]):d||0===ct(h(_),h(b.value))?(g.push(b.value),d&&m.push(t[n+v])):(y.push(t[n+v]),f.push(b.value)))}return Promise.resolve(0<f.length&&c.mutate({trans:r,type:"add",values:f}).then((function(e){for(var t in e.failures)y.splice(parseInt(t),1);l(f.length,e)}))).then((function(){return(0<g.length||o&&"object"==typeof e)&&c.mutate({trans:r,type:"put",keys:m,values:g,criteria:o,changeSpec:"function"!=typeof e&&e,isAdditionalChunk:0<n}).then((function(e){return l(g.length,e)}))})).then((function(){return(0<y.length||o&&e===At)&&c.mutate({trans:r,type:"delete",keys:y,criteria:o,isAdditionalChunk:0<n}).then((function(e){return l(y.length,e)}))})).then((function(){return t.length>n+s&&i(n+p)}))}))}var o=mt(n)&&n.limit===1/0&&("function"!=typeof e||e===At)&&{index:n.index,range:n.range};return i(0).then((function(){if(0<f.length)throw new B("Error modifying one or more objects",f,g,m);return t.length}))}))}))},Ct.prototype.delete=function(){var e=this._ctx,t=e.range;return mt(e)&&(e.isPrimKey||3===t.type)?this._write((function(n){var r=e.table.core.schema.primaryKey,i=t;return e.table.core.count({trans:n,query:{index:r,range:i}}).then((function(t){return e.table.core.mutate({trans:n,type:"deleteRange",range:i}).then((function(e){var n=e.failures;if(e.lastResult,e.results,e=e.numFailures)throw new B("Could not delete some values",Object.keys(n).map((function(e){return n[e]})),t-e);return t-e}))}))})):this.modify(At)},Ct);function Ct(){}var At=function(e,t){return t.value=null};function kt(e,t){return e<t?-1:e===t?0:1}function jt(e,t){return t<e?-1:e===t?0:1}function It(e,t,n){return(e=e instanceof Rt?new e.Collection(e):e)._ctx.error=new(n||TypeError)(t),e}function Gt(e){return new e.Collection(e,(function(){return Ot("")})).limit(0)}function Tt(e,t,n,r){var i,o,s,a,l,c,u,d=n.length;if(!n.every((function(e){return"string"==typeof e})))return It(e,et);function h(e){i="next"===e?function(e){return e.toUpperCase()}:function(e){return e.toLowerCase()},o="next"===e?function(e){return e.toLowerCase()}:function(e){return e.toUpperCase()},s="next"===e?kt:jt;var t=n.map((function(e){return{lower:o(e),upper:i(e)}})).sort((function(e,t){return s(e.lower,t.lower)}));a=t.map((function(e){return e.upper})),l=t.map((function(e){return e.lower})),u="next"===(c=e)?"":r}h("next"),(e=new e.Collection(e,(function(){return Mt(a[0],l[d-1]+r)})))._ondirectionchange=function(e){h(e)};var p=0;return e._addAlgorithm((function(e,n,r){var i=e.key;if("string"!=typeof i)return!1;var h=o(i);if(t(h,l,p))return!0;for(var f=null,g=p;g<d;++g){var m=function(e,t,n,r,i,o){for(var s=Math.min(e.length,r.length),a=-1,l=0;l<s;++l){var c=t[l];if(c!==r[l])return i(e[l],n[l])<0?e.substr(0,l)+n[l]+n.substr(l+1):i(e[l],r[l])<0?e.substr(0,l)+r[l]+n.substr(l+1):0<=a?e.substr(0,a)+t[a]+n.substr(a+1):null;i(e[l],c)<0&&(a=l)}return s<r.length&&"next"===o?e+n.substr(e.length):s<e.length&&"prev"===o?e.substr(0,n.length):a<0?null:e.substr(0,a)+r[a]+n.substr(a+1)}(i,h,a[g],l[g],s,c);null===m&&null===f?p=g+1:(null===f||0<s(f,m))&&(f=m)}return n(null!==f?function(){e.continue(f+u)}:r),!1})),e}function Mt(e,t,n,r){return{type:2,lower:e,upper:t,lowerOpen:n,upperOpen:r}}function Ot(e){return{type:1,lower:e,upper:e}}var Rt=(Object.defineProperty(Dt.prototype,"Collection",{get:function(){return this._ctx.table.db.Collection},enumerable:!1,configurable:!0}),Dt.prototype.between=function(e,t,n,r){n=!1!==n,r=!0===r;try{return 0<this._cmp(e,t)||0===this._cmp(e,t)&&(n||r)&&(!n||!r)?Gt(this):new this.Collection(this,(function(){return Mt(e,t,!n,!r)}))}catch(e){return It(this,Qe)}},Dt.prototype.equals=function(e){return null==e?It(this,Qe):new this.Collection(this,(function(){return Ot(e)}))},Dt.prototype.above=function(e){return null==e?It(this,Qe):new this.Collection(this,(function(){return Mt(e,void 0,!0)}))},Dt.prototype.aboveOrEqual=function(e){return null==e?It(this,Qe):new this.Collection(this,(function(){return Mt(e,void 0,!1)}))},Dt.prototype.below=function(e){return null==e?It(this,Qe):new this.Collection(this,(function(){return Mt(void 0,e,!1,!0)}))},Dt.prototype.belowOrEqual=function(e){return null==e?It(this,Qe):new this.Collection(this,(function(){return Mt(void 0,e)}))},Dt.prototype.startsWith=function(e){return"string"!=typeof e?It(this,et):this.between(e,e+Je,!0,!0)},Dt.prototype.startsWithIgnoreCase=function(e){return""===e?this.startsWith(e):Tt(this,(function(e,t){return 0===e.indexOf(t[0])}),[e],Je)},Dt.prototype.equalsIgnoreCase=function(e){return Tt(this,(function(e,t){return e===t[0]}),[e],"")},Dt.prototype.anyOfIgnoreCase=function(){var e=D.apply(R,arguments);return 0===e.length?Gt(this):Tt(this,(function(e,t){return-1!==t.indexOf(e)}),e,"")},Dt.prototype.startsWithAnyOfIgnoreCase=function(){var e=D.apply(R,arguments);return 0===e.length?Gt(this):Tt(this,(function(e,t){return t.some((function(t){return 0===e.indexOf(t)}))}),e,Je)},Dt.prototype.anyOf=function(){var e=this,t=D.apply(R,arguments),n=this._cmp;try{t.sort(n)}catch(r){return It(this,Qe)}if(0===t.length)return Gt(this);var r=new this.Collection(this,(function(){return Mt(t[0],t[t.length-1])}));r._ondirectionchange=function(r){n="next"===r?e._ascending:e._descending,t.sort(n)};var i=0;return r._addAlgorithm((function(e,r,o){for(var s=e.key;0<n(s,t[i]);)if(++i===t.length)return r(o),!1;return 0===n(s,t[i])||(r((function(){e.continue(t[i])})),!1)})),r},Dt.prototype.notEqual=function(e){return this.inAnyRange([[-1/0,e],[e,this.db._maxKey]],{includeLowers:!1,includeUppers:!1})},Dt.prototype.noneOf=function(){var e=D.apply(R,arguments);if(0===e.length)return new this.Collection(this);try{e.sort(this._ascending)}catch(e){return It(this,Qe)}var t=e.reduce((function(e,t){return e?e.concat([[e[e.length-1][1],t]]):[[-1/0,t]]}),null);return t.push([e[e.length-1],this.db._maxKey]),this.inAnyRange(t,{includeLowers:!1,includeUppers:!1})},Dt.prototype.inAnyRange=function(e,t){var n=this,r=this._cmp,i=this._ascending,o=this._descending,s=this._min,a=this._max;if(0===e.length)return Gt(this);if(!e.every((function(e){return void 0!==e[0]&&void 0!==e[1]&&i(e[0],e[1])<=0})))return It(this,"First argument to inAnyRange() must be an Array of two-value Arrays [lower,upper] where upper must not be lower than lower",q.InvalidArgument);var l,c=!t||!1!==t.includeLowers,u=t&&!0===t.includeUppers,d=i;function h(e,t){return d(e[0],t[0])}try{(l=e.reduce((function(e,t){for(var n=0,i=e.length;n<i;++n){var o=e[n];if(r(t[0],o[1])<0&&0<r(t[1],o[0])){o[0]=s(o[0],t[0]),o[1]=a(o[1],t[1]);break}}return n===i&&e.push(t),e}),[])).sort(h)}catch(e){return It(this,Qe)}var p=0,f=u?function(e){return 0<i(e,l[p][1])}:function(e){return 0<=i(e,l[p][1])},g=c?function(e){return 0<o(e,l[p][0])}:function(e){return 0<=o(e,l[p][0])},m=f;return(e=new this.Collection(this,(function(){return Mt(l[0][0],l[l.length-1][1],!c,!u)})))._ondirectionchange=function(e){d="next"===e?(m=f,i):(m=g,o),l.sort(h)},e._addAlgorithm((function(e,t,r){for(var o,s=e.key;m(s);)if(++p===l.length)return t(r),!1;return!f(o=s)&&!g(o)||(0===n._cmp(s,l[p][1])||0===n._cmp(s,l[p][0])||t((function(){d===i?e.continue(l[p][0]):e.continue(l[p][1])})),!1)})),e},Dt.prototype.startsWithAnyOf=function(){var e=D.apply(R,arguments);return e.every((function(e){return"string"==typeof e}))?0===e.length?Gt(this):this.inAnyRange(e.map((function(e){return[e,e+Je]}))):It(this,"startsWithAnyOf() only works with strings")},Dt);function Dt(){}function Nt(e){return Oe((function(t){return Lt(t),e(t.target.error),!1}))}function Lt(e){e.stopPropagation&&e.stopPropagation(),e.preventDefault&&e.preventDefault()}var Vt="storagemutated",Ft="x-storagemutated-1",zt=ft(null,Vt),Bt=(Ut.prototype._lock=function(){return _(!ve.global),++this._reculock,1!==this._reculock||ve.global||(ve.lockOwnerFor=this),this},Ut.prototype._unlock=function(){if(_(!ve.global),0==--this._reculock)for(ve.global||(ve.lockOwnerFor=null);0<this._blockedFuncs.length&&!this._locked();){var e=this._blockedFuncs.shift();try{Ye(e[1],e[0])}catch(e){}}return this},Ut.prototype._locked=function(){return this._reculock&&ve.lockOwnerFor!==this},Ut.prototype.create=function(e){var t=this;if(!this.mode)return this;var n=this.db.idbdb,r=this.db._state.dbOpenError;if(_(!this.idbtrans),!e&&!n)switch(r&&r.name){case"DatabaseClosedError":throw new q.DatabaseClosed(r);case"MissingAPIError":throw new q.MissingAPI(r.message,r);default:throw new q.OpenFailed(r)}if(!this.active)throw new q.TransactionInactive;return _(null===this._completion._state),(e=this.idbtrans=e||(this.db.core||n).transaction(this.storeNames,this.mode,{durability:this.chromeTransactionDurability})).onerror=Oe((function(n){Lt(n),t._reject(e.error)})),e.onabort=Oe((function(n){Lt(n),t.active&&t._reject(new q.Abort(e.error)),t.active=!1,t.on("abort").fire(n)})),e.oncomplete=Oe((function(){t.active=!1,t._resolve(),"mutatedParts"in e&&zt.storagemutated.fire(e.mutatedParts)})),this},Ut.prototype._promise=function(e,t,n){var r=this;if("readwrite"===e&&"readwrite"!==this.mode)return $e(new q.ReadOnly("Transaction is readonly"));if(!this.active)return $e(new q.TransactionInactive);if(this._locked())return new Se((function(i,o){r._blockedFuncs.push([function(){r._promise(e,t,n).then(i,o)},ve])}));if(n)return ze((function(){var e=new Se((function(e,n){r._lock();var i=t(e,n,r);i&&i.then&&i.then(e,n)}));return e.finally((function(){return r._unlock()})),e._lib=!0,e}));var i=new Se((function(e,n){var i=t(e,n,r);i&&i.then&&i.then(e,n)}));return i._lib=!0,i},Ut.prototype._root=function(){return this.parent?this.parent._root():this},Ut.prototype.waitFor=function(e){var t,n=this._root(),r=Se.resolve(e);n._waitingFor?n._waitingFor=n._waitingFor.then((function(){return r})):(n._waitingFor=r,n._waitingQueue=[],t=n.idbtrans.objectStore(n.storeNames[0]),function e(){for(++n._spinCount;n._waitingQueue.length;)n._waitingQueue.shift()();n._waitingFor&&(t.get(-1/0).onsuccess=e)}());var i=n._waitingFor;return new Se((function(e,t){r.then((function(t){return n._waitingQueue.push(Oe(e.bind(null,t)))}),(function(e){return n._waitingQueue.push(Oe(t.bind(null,e)))})).finally((function(){n._waitingFor===i&&(n._waitingFor=null)}))}))},Ut.prototype.abort=function(){this.active&&(this.active=!1,this.idbtrans&&this.idbtrans.abort(),this._reject(new q.Abort))},Ut.prototype.table=function(e){var t=this._memoizedTables||(this._memoizedTables={});if(u(t,e))return t[e];var n=this.schema[e];if(!n)throw new q.NotFound("Table "+e+" not part of transaction");return(n=new this.db.Table(e,n,this)).core=this.db.core.table(e),t[e]=n},Ut);function Ut(){}function Wt(e,t,n,r,i,o,s){return{name:e,keyPath:t,unique:n,multi:r,auto:i,compound:o,src:(n&&!s?"&":"")+(r?"*":"")+(i?"++":"")+Ht(t)}}function Ht(e){return"string"==typeof e?e:e?"["+[].join.call(e,"+")+"]":""}function qt(e,t,n){return{name:e,primKey:t,indexes:n,mappedClass:null,idxByName:(r=function(e){return[e.name,e]},n.reduce((function(e,t,n){return(n=r(t,n))&&(e[n[0]]=n[1]),e}),{}))};var r}var Xt=function(e){try{return e.only([[]]),Xt=function(){return[[]]},[[]]}catch(e){return Xt=function(){return Je},Je}};function Yt(e){return null==e?function(){}:"string"==typeof e?1===(t=e).split(".").length?function(e){return e[t]}:function(e){return x(e,t)}:function(t){return x(t,e)};var t}function Kt(e){return[].slice.call(e)}var Zt=0;function $t(e){return null==e?":id":"string"==typeof e?e:"[".concat(e.join("+"),"]")}function Jt(e,t,n){function r(e){if(3===e.type)return null;if(4===e.type)throw new Error("Cannot convert never type to IDBKeyRange");var n=e.lower,r=e.upper,i=e.lowerOpen;return e=e.upperOpen,void 0===n?void 0===r?null:t.upperBound(r,!!e):void 0===r?t.lowerBound(n,!!i):t.bound(n,r,!!i,!!e)}function i(e){var t,n=e.name;return{name:n,schema:e,mutate:function(e){var t=e.trans,i=e.type,o=e.keys,s=e.values,a=e.range;return new Promise((function(e,l){e=Oe(e);var c=t.objectStore(n),u=null==c.keyPath,d="put"===i||"add"===i;if(!d&&"delete"!==i&&"deleteRange"!==i)throw new Error("Invalid operation type: "+i);var h,p=(o||s||{length:1}).length;if(o&&s&&o.length!==s.length)throw new Error("Given keys array must have same length as given values array.");if(0===p)return e({numFailures:0,failures:{},results:[],lastResult:void 0});function f(e){++y,Lt(e)}var g=[],m=[],y=0;if("deleteRange"===i){if(4===a.type)return e({numFailures:y,failures:m,results:[],lastResult:void 0});3===a.type?g.push(h=c.clear()):g.push(h=c.delete(r(a)))}else{var v=(u=d?u?[s,o]:[s,null]:[o,null])[0],_=u[1];if(d)for(var b=0;b<p;++b)g.push(h=_&&void 0!==_[b]?c[i](v[b],_[b]):c[i](v[b])),h.onerror=f;else for(b=0;b<p;++b)g.push(h=c[i](v[b])),h.onerror=f}function x(t){t=t.target.result,g.forEach((function(e,t){return null!=e.error&&(m[t]=e.error)})),e({numFailures:y,failures:m,results:"delete"===i?o:g.map((function(e){return e.result})),lastResult:t})}h.onerror=function(e){f(e),x(e)},h.onsuccess=x}))},getMany:function(e){var t=e.trans,r=e.keys;return new Promise((function(e,i){e=Oe(e);for(var o,s=t.objectStore(n),a=r.length,l=new Array(a),c=0,u=0,d=function(t){t=t.target,l[t._pos]=t.result,++u===c&&e(l)},h=Nt(i),p=0;p<a;++p)null!=r[p]&&((o=s.get(r[p]))._pos=p,o.onsuccess=d,o.onerror=h,++c);0===c&&e(l)}))},get:function(e){var t=e.trans,r=e.key;return new Promise((function(e,i){e=Oe(e);var o=t.objectStore(n).get(r);o.onsuccess=function(t){return e(t.target.result)},o.onerror=Nt(i)}))},query:(t=u,function(e){return new Promise((function(i,o){i=Oe(i);var s,a,l,c=e.trans,u=e.values,d=e.limit,h=e.query,p=d===1/0?void 0:d,f=h.index;if(h=h.range,c=c.objectStore(n),f=f.isPrimaryKey?c:c.index(f.name),h=r(h),0===d)return i({result:[]});t?((p=u?f.getAll(h,p):f.getAllKeys(h,p)).onsuccess=function(e){return i({result:e.target.result})},p.onerror=Nt(o)):(s=0,a=!u&&"openKeyCursor"in f?f.openKeyCursor(h):f.openCursor(h),l=[],a.onsuccess=function(e){var t=a.result;return t?(l.push(u?t.value:t.primaryKey),++s===d?i({result:l}):void t.continue()):i({result:l})},a.onerror=Nt(o))}))}),openCursor:function(e){var t=e.trans,i=e.values,o=e.query,s=e.reverse,a=e.unique;return new Promise((function(e,l){e=Oe(e);var c=o.index,u=o.range,d=t.objectStore(n),h=(d=c.isPrimaryKey?d:d.index(c.name),c=s?a?"prevunique":"prev":a?"nextunique":"next",!i&&"openKeyCursor"in d?d.openKeyCursor(r(u),c):d.openCursor(r(u),c));h.onerror=Nt(l),h.onsuccess=Oe((function(n){var r,i,o,s,a=h.result;a?(a.___id=++Zt,a.done=!1,r=a.continue.bind(a),i=(i=a.continuePrimaryKey)&&i.bind(a),o=a.advance.bind(a),s=function(){throw new Error("Cursor not stopped")},a.trans=t,a.stop=a.continue=a.continuePrimaryKey=a.advance=function(){throw new Error("Cursor not started")},a.fail=Oe(l),a.next=function(){var e=this,t=1;return this.start((function(){return t--?e.continue():e.stop()})).then((function(){return e}))},a.start=function(e){function t(){if(h.result)try{e()}catch(e){a.fail(e)}else a.done=!0,a.start=function(){throw new Error("Cursor behind last entry")},a.stop()}var n=new Promise((function(e,t){e=Oe(e),h.onerror=Nt(t),a.fail=t,a.stop=function(t){a.stop=a.continue=a.continuePrimaryKey=a.advance=s,e(t)}}));return h.onsuccess=Oe((function(e){h.onsuccess=t,t()})),a.continue=r,a.continuePrimaryKey=i,a.advance=o,t(),n},e(a)):e(null)}),l)}))},count:function(e){var t=e.query,i=e.trans,o=t.index,s=t.range;return new Promise((function(e,t){var a=i.objectStore(n),l=o.isPrimaryKey?a:a.index(o.name);(l=(a=r(s))?l.count(a):l.count()).onsuccess=Oe((function(t){return e(t.target.result)})),l.onerror=Nt(t)}))}}}var o,a,l,c=(a=n,l=Kt((o=e).objectStoreNames),{schema:{name:o.name,tables:l.map((function(e){return a.objectStore(e)})).map((function(e){var t=e.keyPath,n=e.autoIncrement,r=s(t),i={};return n={name:e.name,primaryKey:{name:null,isPrimaryKey:!0,outbound:null==t,compound:r,keyPath:t,autoIncrement:n,unique:!0,extractKey:Yt(t)},indexes:Kt(e.indexNames).map((function(t){return e.index(t)})).map((function(e){var t=e.name,n=e.unique,r=e.multiEntry;return e=e.keyPath,r={name:t,compound:s(e),keyPath:e,unique:n,multiEntry:r,extractKey:Yt(e)},i[$t(e)]=r})),getIndexByKeyPath:function(e){return i[$t(e)]}},i[":id"]=n.primaryKey,null!=t&&(i[$t(t)]=n.primaryKey),n}))},hasGetAll:0<l.length&&"getAll"in a.objectStore(l[0])&&!("undefined"!=typeof navigator&&/Safari/.test(navigator.userAgent)&&!/(Chrome\/|Edge\/)/.test(navigator.userAgent)&&[].concat(navigator.userAgent.match(/Safari\/(\d*)/))[1]<604)}),u=(n=c.schema,c.hasGetAll),d=(c=n.tables.map(i),{});return c.forEach((function(e){return d[e.name]=e})),{stack:"dbcore",transaction:e.transaction.bind(e),table:function(e){if(!d[e])throw new Error("Table '".concat(e,"' not found"));return d[e]},MIN_KEY:-1/0,MAX_KEY:Xt(t),schema:n}}function Qt(e,n,r,i){var o=r.IDBKeyRange;return r.indexedDB,{dbcore:(i=Jt(n,o,i),e.dbcore.reduce((function(e,n){return n=n.create,t(t({},e),n(e))}),i))}}function en(e,t){var n=t.db;t=Qt(e._middlewares,n,e._deps,t),e.core=t.dbcore,e.tables.forEach((function(t){var n=t.name;e.core.schema.tables.some((function(e){return e.name===n}))&&(t.core=e.core.table(n),e[n]instanceof e.Table&&(e[n].core=t.core))}))}function tn(e,t,n,r){n.forEach((function(n){var i=r[n];t.forEach((function(t){var r=function e(t,n){return g(t,n)||(t=l(t))&&e(t,n)}(t,n);(!r||"value"in r&&void 0===r.value)&&(t===e.Transaction.prototype||t instanceof e.Transaction?p(t,n,{get:function(){return this.table(n)},set:function(e){h(this,n,{value:e,writable:!0,configurable:!0,enumerable:!0})}}):t[n]=new e.Table(n,i))}))}))}function nn(e,t){t.forEach((function(t){for(var n in t)t[n]instanceof e.Table&&delete t[n]}))}function rn(e,t){return e._cfg.version-t._cfg.version}function on(e,t,n,r){var i=e._dbSchema;n.objectStoreNames.contains("$meta")&&!i.$meta&&(i.$meta=qt("$meta",pn("")[0],[]),e._storeNames.push("$meta"));var s=e._createTransaction("readwrite",e._storeNames,i);s.create(n),s._completion.catch(r);var a=s._reject.bind(s),l=ve.transless||ve;ze((function(){return ve.trans=s,ve.transless=l,0!==t?(en(e,n),c=t,((r=s).storeNames.includes("$meta")?r.table("$meta").get("version").then((function(e){return null!=e?e:c})):Se.resolve(c)).then((function(t){return i=t,a=s,l=n,c=[],t=(r=e)._versions,u=r._dbSchema=dn(0,r.idbdb,l),0!==(t=t.filter((function(e){return e._cfg.version>=i}))).length?(t.forEach((function(e){c.push((function(){var t=u,n=e._cfg.dbschema;hn(r,t,l),hn(r,n,l),u=r._dbSchema=n;var s=an(t,n);s.add.forEach((function(e){ln(l,e[0],e[1].primKey,e[1].indexes)})),s.change.forEach((function(e){if(e.recreate)throw new q.Upgrade("Not yet support for changing primary key");var t=l.objectStore(e.name);e.add.forEach((function(e){return un(t,e)})),e.change.forEach((function(e){t.deleteIndex(e.name),un(t,e)})),e.del.forEach((function(e){return t.deleteIndex(e)}))}));var c=e._cfg.contentUpgrade;if(c&&e._cfg.version>i){en(r,l),a._memoizedTables={};var d=w(n);s.del.forEach((function(e){d[e]=t[e]})),nn(r,[r.Transaction.prototype]),tn(r,[r.Transaction.prototype],o(d),d),a.schema=d;var h,p=N(c);return p&&Be(),s=Se.follow((function(){var e;(h=c(a))&&p&&(e=Ue.bind(null,null),h.then(e,e))})),h&&"function"==typeof h.then?Se.resolve(h):s.then((function(){return h}))}})),c.push((function(t){var n,i,o=e._cfg.dbschema;n=o,i=t,[].slice.call(i.db.objectStoreNames).forEach((function(e){return null==n[e]&&i.db.deleteObjectStore(e)})),nn(r,[r.Transaction.prototype]),tn(r,[r.Transaction.prototype],r._storeNames,r._dbSchema),a.schema=r._dbSchema})),c.push((function(t){r.idbdb.objectStoreNames.contains("$meta")&&(Math.ceil(r.idbdb.version/10)===e._cfg.version?(r.idbdb.deleteObjectStore("$meta"),delete r._dbSchema.$meta,r._storeNames=r._storeNames.filter((function(e){return"$meta"!==e}))):t.objectStore("$meta").put(e._cfg.version,"version"))}))})),function e(){return c.length?Se.resolve(c.shift()(a.idbtrans)).then(e):Se.resolve()}().then((function(){cn(u,l)}))):Se.resolve();var r,i,a,l,c,u})).catch(a)):(o(i).forEach((function(e){ln(n,e,i[e].primKey,i[e].indexes)})),en(e,n),void Se.follow((function(){return e.on.populate.fire(s)})).catch(a));var r,c}))}function sn(e,t){cn(e._dbSchema,t),t.db.version%10!=0||t.objectStoreNames.contains("$meta")||t.db.createObjectStore("$meta").add(Math.ceil(t.db.version/10-1),"version");var n=dn(0,e.idbdb,t);hn(e,e._dbSchema,t);for(var r=0,i=an(n,e._dbSchema).change;r<i.length;r++){var o=function(e){if(e.change.length||e.recreate)return console.warn("Unable to patch indexes of table ".concat(e.name," because it has changes on the type of index or primary key.")),{value:void 0};var n=t.objectStore(e.name);e.add.forEach((function(t){ie&&console.debug("Dexie upgrade patch: Creating missing index ".concat(e.name,".").concat(t.src)),un(n,t)}))}(i[r]);if("object"==typeof o)return o.value}}function an(e,t){var n,r={del:[],add:[],change:[]};for(n in e)t[n]||r.del.push(n);for(n in t){var i=e[n],o=t[n];if(i){var s={name:n,def:o,recreate:!1,del:[],add:[],change:[]};if(""+(i.primKey.keyPath||"")!=""+(o.primKey.keyPath||"")||i.primKey.auto!==o.primKey.auto)s.recreate=!0,r.change.push(s);else{var a=i.idxByName,l=o.idxByName,c=void 0;for(c in a)l[c]||s.del.push(c);for(c in l){var u=a[c],d=l[c];u?u.src!==d.src&&s.change.push(d):s.add.push(d)}(0<s.del.length||0<s.add.length||0<s.change.length)&&r.change.push(s)}}else r.add.push([n,o])}return r}function ln(e,t,n,r){var i=e.db.createObjectStore(t,n.keyPath?{keyPath:n.keyPath,autoIncrement:n.auto}:{autoIncrement:n.auto});return r.forEach((function(e){return un(i,e)})),i}function cn(e,t){o(e).forEach((function(n){t.db.objectStoreNames.contains(n)||(ie&&console.debug("Dexie: Creating missing table",n),ln(t,n,e[n].primKey,e[n].indexes))}))}function un(e,t){e.createIndex(t.name,t.keyPath,{unique:t.unique,multiEntry:t.multi})}function dn(e,t,n){var r={};return y(t.objectStoreNames,0).forEach((function(e){for(var t=n.objectStore(e),i=Wt(Ht(a=t.keyPath),a||"",!0,!1,!!t.autoIncrement,a&&"string"!=typeof a,!0),o=[],s=0;s<t.indexNames.length;++s){var a=(l=t.index(t.indexNames[s])).keyPath,l=Wt(l.name,a,!!l.unique,!!l.multiEntry,!1,a&&"string"!=typeof a,!1);o.push(l)}r[e]=qt(e,i,o)})),r}function hn(e,t,n){for(var r=n.db.objectStoreNames,o=0;o<r.length;++o){var s=r[o],a=n.objectStore(s);e._hasGetAll="getAll"in a;for(var l=0;l<a.indexNames.length;++l){var c=a.indexNames[l],u=a.index(c).keyPath,d="string"==typeof u?u:"["+y(u).join("+")+"]";!t[s]||(u=t[s].idxByName[d])&&(u.name=c,delete t[s].idxByName[d],t[s].idxByName[c]=u)}}"undefined"!=typeof navigator&&/Safari/.test(navigator.userAgent)&&!/(Chrome\/|Edge\/)/.test(navigator.userAgent)&&i.WorkerGlobalScope&&i instanceof i.WorkerGlobalScope&&[].concat(navigator.userAgent.match(/Safari\/(\d*)/))[1]<604&&(e._hasGetAll=!1)}function pn(e){return e.split(",").map((function(e,t){var n=(e=e.trim()).replace(/([&*]|\+\+)/g,""),r=/^\[/.test(n)?n.match(/^\[(.*)\]$/)[1].split("+"):n;return Wt(n,r||null,/\&/.test(e),/\*/.test(e),/\+\+/.test(e),s(r),0===t)}))}var fn=(gn.prototype._parseStoresSpec=function(e,t){o(e).forEach((function(n){if(null!==e[n]){var r=pn(e[n]),i=r.shift();if(i.unique=!0,i.multi)throw new q.Schema("Primary key cannot be multi-valued");r.forEach((function(e){if(e.auto)throw new q.Schema("Only primary key can be marked as autoIncrement (++)");if(!e.keyPath)throw new q.Schema("Index must have a name and cannot be an empty string")})),t[n]=qt(n,i,r)}}))},gn.prototype.stores=function(e){var t=this.db;this._cfg.storesSource=this._cfg.storesSource?a(this._cfg.storesSource,e):e,e=t._versions;var n={},r={};return e.forEach((function(e){a(n,e._cfg.storesSource),r=e._cfg.dbschema={},e._parseStoresSpec(n,r)})),t._dbSchema=r,nn(t,[t._allTables,t,t.Transaction.prototype]),tn(t,[t._allTables,t,t.Transaction.prototype,this._cfg.tables],o(r),r),t._storeNames=o(r),this},gn.prototype.upgrade=function(e){return this._cfg.contentUpgrade=re(this._cfg.contentUpgrade||K,e),this},gn);function gn(){}function mn(e,t){var n=e._dbNamesDB;return n||(n=e._dbNamesDB=new tr(nt,{addons:[],indexedDB:e,IDBKeyRange:t})).version(1).stores({dbnames:"name"}),n.table("dbnames")}function yn(e){return e&&"function"==typeof e.databases}function vn(e){return ze((function(){return ve.letThrough=!0,e()}))}function _n(e){return!("from"in e)}var bn=function(e,t){if(!this){var n=new bn;return e&&"d"in e&&a(n,e),n}a(this,arguments.length?{d:1,from:e,to:1<arguments.length?t:e}:{d:0})};function xn(e,t,n){var r=ct(t,n);if(!isNaN(r)){if(0<r)throw RangeError();if(_n(e))return a(e,{from:t,to:n,d:1});var i=e.l;if(r=e.r,ct(n,e.from)<0)return i?xn(i,t,n):e.l={from:t,to:n,d:1,l:null,r:null},Pn(e);if(0<ct(t,e.to))return r?xn(r,t,n):e.r={from:t,to:n,d:1,l:null,r:null},Pn(e);ct(t,e.from)<0&&(e.from=t,e.l=null,e.d=r?r.d+1:1),0<ct(n,e.to)&&(e.to=n,e.r=null,e.d=e.l?e.l.d+1:1),n=!e.r,i&&!e.l&&Sn(e,i),r&&n&&Sn(e,r)}}function Sn(e,t){_n(t)||function e(t,n){var r=n.from,i=n.to,o=n.l;n=n.r,xn(t,r,i),o&&e(t,o),n&&e(t,n)}(e,t)}function wn(e,t){var n=En(t),r=n.next();if(r.done)return!1;for(var i=r.value,o=En(e),s=o.next(i.from),a=s.value;!r.done&&!s.done;){if(ct(a.from,i.to)<=0&&0<=ct(a.to,i.from))return!0;ct(i.from,a.from)<0?i=(r=n.next(a.from)).value:a=(s=o.next(i.from)).value}return!1}function En(e){var t=_n(e)?null:{s:0,n:e};return{next:function(e){for(var n=0<arguments.length;t;)switch(t.s){case 0:if(t.s=1,n)for(;t.n.l&&ct(e,t.n.from)<0;)t={up:t,n:t.n.l,s:1};else for(;t.n.l;)t={up:t,n:t.n.l,s:1};case 1:if(t.s=2,!n||ct(e,t.n.to)<=0)return{value:t.n,done:!1};case 2:if(t.n.r){t.s=3,t={up:t,n:t.n.r,s:0};continue}case 3:t=t.up}return{done:!0}}}}function Pn(e){var n,r,i=((null===(n=e.r)||void 0===n?void 0:n.d)||0)-((null===(r=e.l)||void 0===r?void 0:r.d)||0),o=1<i?"r":i<-1?"l":"";o&&(n="r"==o?"l":"r",r=t({},e),i=e[o],e.from=i.from,e.to=i.to,e[o]=i[o],r[o]=i[n],(e[n]=r).d=Cn(r)),e.d=Cn(e)}function Cn(e){var t=e.r;return e=e.l,(t?e?Math.max(t.d,e.d):t.d:e?e.d:0)+1}function An(e,t){return o(t).forEach((function(n){e[n]?Sn(e[n],t[n]):e[n]=function e(t){var n,r,i={};for(n in t)u(t,n)&&(r=t[n],i[n]=!r||"object"!=typeof r||A.has(r.constructor)?r:e(r));return i}(t[n])})),e}function kn(e,t){return e.all||t.all||Object.keys(e).some((function(n){return t[n]&&wn(t[n],e[n])}))}d(bn.prototype,((L={add:function(e){return Sn(this,e),this},addKey:function(e){return xn(this,e,e),this},addKeys:function(e){var t=this;return e.forEach((function(e){return xn(t,e,e)})),this},hasKey:function(e){var t=En(this).next(e).value;return t&&ct(t.from,e)<=0&&0<=ct(t.to,e)}})[T]=function(){return En(this)},L));var jn={},In={},Gn=!1;function Tn(e){An(In,e),Gn||(Gn=!0,setTimeout((function(){Gn=!1,Mn(In,!(In={}))}),0))}function Mn(e,t){void 0===t&&(t=!1);var n=new Set;if(e.all)for(var r=0,i=Object.values(jn);r<i.length;r++)On(s=i[r],e,n,t);else for(var o in e){var s,a=/^idb\:\/\/(.*)\/(.*)\//.exec(o);a&&(o=a[1],a=a[2],(s=jn["idb://".concat(o,"/").concat(a)])&&On(s,e,n,t))}n.forEach((function(e){return e()}))}function On(e,t,n,r){for(var i=[],o=0,s=Object.entries(e.queries.query);o<s.length;o++){for(var a=s[o],l=a[0],c=[],u=0,d=a[1];u<d.length;u++){var h=d[u];kn(t,h.obsSet)?h.subscribers.forEach((function(e){return n.add(e)})):r&&c.push(h)}r&&i.push([l,c])}if(r)for(var p=0,f=i;p<f.length;p++){var g=f[p];l=g[0],c=g[1],e.queries.query[l]=c}}function Rn(e){var t=e._state,n=e._deps.indexedDB;if(t.isBeingOpened||e.idbdb)return t.dbReadyPromise.then((function(){return t.dbOpenError?$e(t.dbOpenError):e}));t.isBeingOpened=!0,t.dbOpenError=null,t.openComplete=!1;var r=t.openCanceller,i=Math.round(10*e.verno),s=!1;function a(){if(t.openCanceller!==r)throw new q.DatabaseClosed("db.open() was cancelled")}function l(){return new Se((function(r,c){if(a(),!n)throw new q.MissingAPI;var u=e.name,p=t.autoSchema||!i?n.open(u):n.open(u,i);if(!p)throw new q.MissingAPI;p.onerror=Nt(c),p.onblocked=Oe(e._fireOnBlocked),p.onupgradeneeded=Oe((function(r){var i;d=p.transaction,t.autoSchema&&!e._options.allowEmptyDB?(p.onerror=Lt,d.abort(),p.result.close(),(i=n.deleteDatabase(u)).onsuccess=i.onerror=Oe((function(){c(new q.NoSuchDatabase("Database ".concat(u," doesnt exist")))}))):(d.onerror=Nt(c),r=r.oldVersion>Math.pow(2,62)?0:r.oldVersion,h=r<1,e.idbdb=p.result,s&&sn(e,d),on(e,r/10,d,c))}),c),p.onsuccess=Oe((function(){d=null;var n,a,c,f,g,m=e.idbdb=p.result,v=y(m.objectStoreNames);if(0<v.length)try{var _=m.transaction(1===(f=v).length?f[0]:f,"readonly");if(t.autoSchema)a=m,c=_,(n=e).verno=a.version/10,c=n._dbSchema=dn(0,a,c),n._storeNames=y(a.objectStoreNames,0),tn(n,[n._allTables],o(c),c);else if(hn(e,e._dbSchema,_),((g=an(dn(0,(g=e).idbdb,_),g._dbSchema)).add.length||g.change.some((function(e){return e.add.length||e.change.length})))&&!s)return console.warn("Dexie SchemaDiff: Schema was extended without increasing the number passed to db.version(). Dexie will add missing parts and increment native version number to workaround this."),m.close(),i=m.version+1,s=!0,r(l());en(e,_)}catch(n){}tt.push(e),m.onversionchange=Oe((function(n){t.vcFired=!0,e.on("versionchange").fire(n)})),m.onclose=Oe((function(t){e.on("close").fire(t)})),h&&(g=e._deps,_=u,m=g.indexedDB,g=g.IDBKeyRange,yn(m)||_===nt||mn(m,g).put({name:_}).catch(K)),r()}),c)})).catch((function(e){switch(null==e?void 0:e.name){case"UnknownError":if(0<t.PR1398_maxLoop)return t.PR1398_maxLoop--,console.warn("Dexie: Workaround for Chrome UnknownError on open()"),l();break;case"VersionError":if(0<i)return i=0,l()}return Se.reject(e)}))}var c,u=t.dbReadyResolve,d=null,h=!1;return Se.race([r,("undefined"==typeof navigator?Se.resolve():!navigator.userAgentData&&/Safari\//.test(navigator.userAgent)&&!/Chrom(e|ium)\//.test(navigator.userAgent)&&indexedDB.databases?new Promise((function(e){function t(){return indexedDB.databases().finally(e)}c=setInterval(t,100),t()})).finally((function(){return clearInterval(c)})):Promise.resolve()).then(l)]).then((function(){return a(),t.onReadyBeingFired=[],Se.resolve(vn((function(){return e.on.ready.fire(e.vip)}))).then((function n(){if(0<t.onReadyBeingFired.length){var r=t.onReadyBeingFired.reduce(re,K);return t.onReadyBeingFired=[],Se.resolve(vn((function(){return r(e.vip)}))).then(n)}}))})).finally((function(){t.openCanceller===r&&(t.onReadyBeingFired=null,t.isBeingOpened=!1)})).catch((function(n){t.dbOpenError=n;try{d&&d.abort()}catch(n){}return r===t.openCanceller&&e._close(),$e(n)})).finally((function(){t.openComplete=!0,u()})).then((function(){var t;return h&&(t={},e.tables.forEach((function(n){n.schema.indexes.forEach((function(r){r.name&&(t["idb://".concat(e.name,"/").concat(n.name,"/").concat(r.name)]=new bn(-1/0,[[[]]]))})),t["idb://".concat(e.name,"/").concat(n.name,"/")]=t["idb://".concat(e.name,"/").concat(n.name,"/:dels")]=new bn(-1/0,[[[]]])})),zt(Vt).fire(t),Mn(t,!0)),e}))}function Dn(e){function t(t){return e.next(t)}var n=i(t),r=i((function(t){return e.throw(t)}));function i(e){return function(t){var i=e(t);return t=i.value,i.done?t:t&&"function"==typeof t.then?t.then(n,r):s(t)?Promise.all(t).then(n,r):n(t)}}return i(t)()}function Nn(e,t,n){for(var r=s(e)?e.slice():[e],i=0;i<n;++i)r.push(t);return r}var Ln={stack:"dbcore",name:"VirtualIndexMiddleware",level:1,create:function(e){return t(t({},e),{table:function(n){var r=e.table(n),i=r.schema,o={},s=[];function a(e,n,r){var i=$t(e),l=o[i]=o[i]||[],c=null==e?0:"string"==typeof e?1:e.length,u=0<n;return u=t(t({},r),{name:u?"".concat(i,"(virtual-from:").concat(r.name,")"):r.name,lowLevelIndex:r,isVirtual:u,keyTail:n,keyLength:c,extractKey:Yt(e),unique:!u&&r.unique}),l.push(u),u.isPrimaryKey||s.push(u),1<c&&a(2===c?e[0]:e.slice(0,c-1),n+1,r),l.sort((function(e,t){return e.keyTail-t.keyTail})),u}n=a(i.primaryKey.keyPath,0,i.primaryKey),o[":id"]=[n];for(var l=0,c=i.indexes;l<c.length;l++){var u=c[l];a(u.keyPath,0,u)}function d(n){var r,i=n.query.index;return i.isVirtual?t(t({},n),{query:{index:i.lowLevelIndex,range:(r=n.query.range,i=i.keyTail,{type:1===r.type?2:r.type,lower:Nn(r.lower,r.lowerOpen?e.MAX_KEY:e.MIN_KEY,i),lowerOpen:!0,upper:Nn(r.upper,r.upperOpen?e.MIN_KEY:e.MAX_KEY,i),upperOpen:!0})}}):n}return t(t({},r),{schema:t(t({},i),{primaryKey:n,indexes:s,getIndexByKeyPath:function(e){return(e=o[$t(e)])&&e[0]}}),count:function(e){return r.count(d(e))},query:function(e){return r.query(d(e))},openCursor:function(t){var n=t.query.index,i=n.keyTail,o=n.isVirtual,s=n.keyLength;return o?r.openCursor(d(t)).then((function(e){return e&&a(e)})):r.openCursor(t);function a(n){return Object.create(n,{continue:{value:function(r){null!=r?n.continue(Nn(r,t.reverse?e.MAX_KEY:e.MIN_KEY,i)):t.unique?n.continue(n.key.slice(0,s).concat(t.reverse?e.MIN_KEY:e.MAX_KEY,i)):n.continue()}},continuePrimaryKey:{value:function(t,r){n.continuePrimaryKey(Nn(t,e.MAX_KEY,i),r)}},primaryKey:{get:function(){return n.primaryKey}},key:{get:function(){var e=n.key;return 1===s?e[0]:e.slice(0,s)}},value:{get:function(){return n.value}}})}}})}})}};function Vn(e,t,n,r){return n=n||{},r=r||"",o(e).forEach((function(i){var o,s,a;u(t,i)?(o=e[i],s=t[i],"object"==typeof o&&"object"==typeof s&&o&&s?(a=G(o))!==G(s)?n[r+i]=t[i]:"Object"===a?Vn(o,s,n,r+i+"."):o!==s&&(n[r+i]=t[i]):o!==s&&(n[r+i]=t[i])):n[r+i]=void 0})),o(t).forEach((function(i){u(e,i)||(n[r+i]=t[i])})),n}function Fn(e,t){return"delete"===t.type?t.keys:t.keys||t.values.map(e.extractKey)}var zn={stack:"dbcore",name:"HooksMiddleware",level:2,create:function(e){return t(t({},e),{table:function(n){var i=e.table(n),o=i.schema.primaryKey;return t(t({},i),{mutate:function(e){var s=ve.trans,a=s.table(n).hook,l=a.deleting,c=a.creating,d=a.updating;switch(e.type){case"add":if(c.fire===K)break;return s._promise("readwrite",(function(){return h(e)}),!0);case"put":if(c.fire===K&&d.fire===K)break;return s._promise("readwrite",(function(){return h(e)}),!0);case"delete":if(l.fire===K)break;return s._promise("readwrite",(function(){return h(e)}),!0);case"deleteRange":if(l.fire===K)break;return s._promise("readwrite",(function(){return function e(n,r,s){return i.query({trans:n,values:!1,query:{index:o,range:r},limit:s}).then((function(i){var o=i.result;return h({type:"delete",keys:o,trans:n}).then((function(i){return 0<i.numFailures?Promise.reject(i.failures[0]):o.length<s?{failures:[],numFailures:0,lastResult:void 0}:e(n,t(t({},r),{lower:o[o.length-1],lowerOpen:!0}),s)}))}))}(e.trans,e.range,1e4)}),!0)}return i.mutate(e);function h(e){var n,s,a,h=ve.trans,p=e.keys||Fn(o,e);if(!p)throw new Error("Keys missing");return"delete"!==(e="add"===e.type||"put"===e.type?t(t({},e),{keys:p}):t({},e)).type&&(e.values=r([],e.values,!0)),e.keys&&(e.keys=r([],e.keys,!0)),n=i,a=p,("add"===(s=e).type?Promise.resolve([]):n.getMany({trans:s.trans,keys:a,cache:"immutable"})).then((function(t){var n=p.map((function(n,r){var i,s,a,p=t[r],f={onerror:null,onsuccess:null};return"delete"===e.type?l.fire.call(f,n,p,h):"add"===e.type||void 0===p?(i=c.fire.call(f,n,e.values[r],h),null==n&&null!=i&&(e.keys[r]=n=i,o.outbound||S(e.values[r],o.keyPath,n))):(i=Vn(p,e.values[r]),(s=d.fire.call(f,i,n,p,h))&&(a=e.values[r],Object.keys(s).forEach((function(e){u(a,e)?a[e]=s[e]:S(a,e,s[e])})))),f}));return i.mutate(e).then((function(r){for(var i=r.failures,o=r.results,s=r.numFailures,a=(r=r.lastResult,0);a<p.length;++a){var l=(o||p)[a],c=n[a];null==l?c.onerror&&c.onerror(i[a]):c.onsuccess&&c.onsuccess("put"===e.type&&t[a]?e.values[a]:l)}return{failures:i,results:o,numFailures:s,lastResult:r}})).catch((function(e){return n.forEach((function(t){return t.onerror&&t.onerror(e)})),Promise.reject(e)}))}))}}})}})}};function Bn(e,t,n){try{if(!t)return null;if(t.keys.length<e.length)return null;for(var r=[],i=0,o=0;i<t.keys.length&&o<e.length;++i)0===ct(t.keys[i],e[o])&&(r.push(n?j(t.values[i]):t.values[i]),++o);return r.length===e.length?r:null}catch(e){return null}}var Un={stack:"dbcore",level:-1,create:function(e){return{table:function(n){var r=e.table(n);return t(t({},r),{getMany:function(e){if(!e.cache)return r.getMany(e);var t=Bn(e.keys,e.trans._cache,"clone"===e.cache);return t?Se.resolve(t):r.getMany(e).then((function(t){return e.trans._cache={keys:e.keys,values:"clone"===e.cache?j(t):t},t}))},mutate:function(e){return"add"!==e.type&&(e.trans._cache=null),r.mutate(e)}})}}}};function Wn(e,t){return"readonly"===e.trans.mode&&!!e.subscr&&!e.trans.explicit&&"disabled"!==e.trans.db._options.cache&&!t.schema.primaryKey.outbound}function Hn(e,t){switch(e){case"query":return t.values&&!t.unique;case"get":case"getMany":case"count":case"openCursor":return!1}}var qn={stack:"dbcore",level:0,name:"Observability",create:function(e){var n=e.schema.name,r=new bn(e.MIN_KEY,e.MAX_KEY);return t(t({},e),{transaction:function(t,n,r){if(ve.subscr&&"readonly"!==n)throw new q.ReadOnly("Readwrite transaction in liveQuery context. Querier source: ".concat(ve.querier));return e.transaction(t,n,r)},table:function(i){var a=e.table(i),l=a.schema,c=l.primaryKey,u=l.indexes,d=c.extractKey,h=c.outbound,p=c.autoIncrement&&u.filter((function(e){return e.compound&&e.keyPath.includes(c.keyPath)})),f=t(t({},a),{mutate:function(e){function t(e){return e="idb://".concat(n,"/").concat(i,"/").concat(e),f[e]||(f[e]=new bn)}var o,u,d,h=e.trans,f=e.mutatedParts||(e.mutatedParts={}),g=t(""),m=t(":dels"),y=e.type,v="deleteRange"===e.type?[e.range]:"delete"===e.type?[e.keys]:e.values.length<50?[Fn(c,e).filter((function(e){return e})),e.values]:[],_=v[0],b=v[1];return v=e.trans._cache,s(_)?(g.addKeys(_),(v="delete"===y||_.length===b.length?Bn(_,v):null)||m.addKeys(_),(v||b)&&(o=t,u=v,d=b,l.indexes.forEach((function(e){var t=o(e.name||"");function n(t){return null!=t?e.extractKey(t):null}function r(n){return e.multiEntry&&s(n)?n.forEach((function(e){return t.addKey(e)})):t.addKey(n)}(u||d).forEach((function(e,t){var i=u&&n(u[t]);0!==ct(i,t=d&&n(d[t]))&&(null!=i&&r(i),null!=t&&r(t))}))})))):_?(b={from:_.lower,to:_.upper},m.add(b),g.add(b)):(g.add(r),m.add(r),l.indexes.forEach((function(e){return t(e.name).add(r)}))),a.mutate(e).then((function(n){return!_||"add"!==e.type&&"put"!==e.type||(g.addKeys(n.results),p&&p.forEach((function(r){var i=e.values.map((function(e){return r.extractKey(e)})),o=r.keyPath.findIndex((function(e){return e===c.keyPath}));n.results.forEach((function(e){return i[o]=e})),t(r.name).addKeys(i)}))),h.mutatedParts=An(h.mutatedParts||{},f),n}))}}),g=(u=function(t){t=(n=t.query).index;var n=n.range;return[t,new bn(null!==(t=n.lower)&&void 0!==t?t:e.MIN_KEY,null!==(n=n.upper)&&void 0!==n?n:e.MAX_KEY)]},{get:function(e){return[c,new bn(e.key)]},getMany:function(e){return[c,(new bn).addKeys(e.keys)]},count:u,query:u,openCursor:u});return o(g).forEach((function(e){f[e]=function(o){var s=!!(f=ve.subscr),l=Wn(ve,a)&&Hn(e,o)?o.obsSet={}:f;if(s){var c=function(e){return e="idb://".concat(n,"/").concat(i,"/").concat(e),l[e]||(l[e]=new bn)},u=c(""),p=c(":dels"),f=(s=(f=g[e](o))[0],f[1]);if(("query"===e&&s.isPrimaryKey&&!o.values?p:c(s.name||"")).add(f),!s.isPrimaryKey){if("count"!==e){var m="query"===e&&h&&o.values&&a.query(t(t({},o),{values:!1}));return a[e].apply(this,arguments).then((function(t){if("query"===e){if(h&&o.values)return m.then((function(e){return e=e.result,u.addKeys(e),t}));var n=o.values?t.result.map(d):t.result;(o.values?u:p).addKeys(n)}else if("openCursor"===e){var r=t,i=o.values;return r&&Object.create(r,{key:{get:function(){return p.addKey(r.primaryKey),r.key}},primaryKey:{get:function(){var e=r.primaryKey;return p.addKey(e),e}},value:{get:function(){return i&&u.addKey(r.primaryKey),r.value}}})}return t}))}p.add(r)}}return a[e].apply(this,arguments)}})),f}})}};function Xn(e,n,r){if(0===r.numFailures)return n;if("deleteRange"===n.type)return null;var i=n.keys?n.keys.length:"values"in n&&n.values?n.values.length:1;return r.numFailures===i?null:(n=t({},n),s(n.keys)&&(n.keys=n.keys.filter((function(e,t){return!(t in r.failures)}))),"values"in n&&s(n.values)&&(n.values=n.values.filter((function(e,t){return!(t in r.failures)}))),n)}function Yn(e,t){return n=e,(void 0===(r=t).lower||(r.lowerOpen?0<ct(n,r.lower):0<=ct(n,r.lower)))&&(void 0===t.upper||(t.upperOpen?ct(e,t.upper)<0:ct(e,t.upper)<=0));var n,r}function Kn(e,t,n,r,i,o){if(!n||0===n.length)return e;var a=t.query.index,l=a.multiEntry,c=t.query.range,u=r.schema.primaryKey.extractKey,d=a.extractKey,h=(a.lowLevelIndex||a).extractKey;return n=n.reduce((function(e,n){var r=e,i=[];if("add"===n.type||"put"===n.type)for(var o=new bn,a=n.values.length-1;0<=a;--a){var h,p=n.values[a],f=u(p);o.hasKey(f)||(h=d(p),(l&&s(h)?h.some((function(e){return Yn(e,c)})):Yn(h,c))&&(o.addKey(f),i.push(p)))}switch(n.type){case"add":r=e.concat(t.values?i:i.map((function(e){return u(e)})));break;case"put":var g=(new bn).addKeys(n.values.map((function(e){return u(e)})));r=e.filter((function(e){return!g.hasKey(t.values?u(e):e)})).concat(t.values?i:i.map((function(e){return u(e)})));break;case"delete":var m=(new bn).addKeys(n.keys);r=e.filter((function(e){return!m.hasKey(t.values?u(e):e)}));break;case"deleteRange":var y=n.range;r=e.filter((function(e){return!Yn(u(e),y)}))}return r}),e),n===e?e:(n.sort((function(e,t){return ct(h(e),h(t))||ct(u(e),u(t))})),t.limit&&t.limit<1/0&&(n.length>t.limit?n.length=t.limit:e.length===t.limit&&n.length<t.limit&&(i.dirty=!0)),o?Object.freeze(n):n)}function Zn(e,t){return 0===ct(e.lower,t.lower)&&0===ct(e.upper,t.upper)&&!!e.lowerOpen==!!t.lowerOpen&&!!e.upperOpen==!!t.upperOpen}function $n(e,t){return function(e,t,n,r){if(void 0===e)return void 0!==t?-1:0;if(void 0===t)return 1;if(0===(t=ct(e,t))){if(n&&r)return 0;if(n)return 1;if(r)return-1}return t}(e.lower,t.lower,e.lowerOpen,t.lowerOpen)<=0&&0<=function(e,t,n,r){if(void 0===e)return void 0!==t?1:0;if(void 0===t)return-1;if(0===(t=ct(e,t))){if(n&&r)return 0;if(n)return-1;if(r)return 1}return t}(e.upper,t.upper,e.upperOpen,t.upperOpen)}function Jn(e,t,n,r){e.subscribers.add(n),r.addEventListener("abort",(function(){var r,i;e.subscribers.delete(n),0===e.subscribers.size&&(r=e,i=t,setTimeout((function(){0===r.subscribers.size&&O(i,r)}),3e3))}))}var Qn={stack:"dbcore",level:0,name:"Cache",create:function(e){var n=e.schema.name;return t(t({},e),{transaction:function(t,r,i){var o,s,a=e.transaction(t,r,i);return"readwrite"===r&&(s=(o=new AbortController).signal,i=function(i){return function(){if(o.abort(),"readwrite"===r){for(var s=new Set,l=0,c=t;l<c.length;l++){var u=c[l],d=jn["idb://".concat(n,"/").concat(u)];if(d){var h=e.table(u),p=d.optimisticOps.filter((function(e){return e.trans===a}));if(a._explicit&&i&&a.mutatedParts)for(var f=0,g=Object.values(d.queries.query);f<g.length;f++)for(var m=0,y=(b=g[f]).slice();m<y.length;m++)kn((x=y[m]).obsSet,a.mutatedParts)&&(O(b,x),x.subscribers.forEach((function(e){return s.add(e)})));else if(0<p.length){d.optimisticOps=d.optimisticOps.filter((function(e){return e.trans!==a}));for(var v=0,_=Object.values(d.queries.query);v<_.length;v++)for(var b,x,S,w=0,E=(b=_[v]).slice();w<E.length;w++)null!=(x=E[w]).res&&a.mutatedParts&&(i&&!x.dirty?(S=Object.isFrozen(x.res),S=Kn(x.res,x.req,p,h,x,S),x.dirty?(O(b,x),x.subscribers.forEach((function(e){return s.add(e)}))):S!==x.res&&(x.res=S,x.promise=Se.resolve({result:S}))):(x.dirty&&O(b,x),x.subscribers.forEach((function(e){return s.add(e)}))))}}}s.forEach((function(e){return e()}))}}},a.addEventListener("abort",i(!1),{signal:s}),a.addEventListener("error",i(!1),{signal:s}),a.addEventListener("complete",i(!0),{signal:s})),a},table:function(r){var i=e.table(r),o=i.schema.primaryKey;return t(t({},i),{mutate:function(e){var s=ve.trans;if(o.outbound||"disabled"===s.db._options.cache||s.explicit)return i.mutate(e);var a=jn["idb://".concat(n,"/").concat(r)];return a?(s=i.mutate(e),"add"!==e.type&&"put"!==e.type||!(50<=e.values.length||Fn(o,e).some((function(e){return null==e})))?(a.optimisticOps.push(e),e.mutatedParts&&Tn(e.mutatedParts),s.then((function(t){0<t.numFailures&&(O(a.optimisticOps,e),(t=Xn(0,e,t))&&a.optimisticOps.push(t),e.mutatedParts&&Tn(e.mutatedParts))})),s.catch((function(){O(a.optimisticOps,e),e.mutatedParts&&Tn(e.mutatedParts)}))):s.then((function(n){var r=Xn(0,t(t({},e),{values:e.values.map((function(e,r){var i;return S(e=null!==(i=o.keyPath)&&void 0!==i&&i.includes(".")?j(e):t({},e),o.keyPath,n.results[r]),e}))}),n);a.optimisticOps.push(r),queueMicrotask((function(){return e.mutatedParts&&Tn(e.mutatedParts)}))})),s):i.mutate(e)},query:function(e){if(!Wn(ve,i)||!Hn("query",e))return i.query(e);var t="immutable"===(null===(a=ve.trans)||void 0===a?void 0:a.db._options.cache),o=(c=ve).requery,s=c.signal,a=function(e,t,n,r){var i=jn["idb://".concat(e,"/").concat(t)];if(!i)return[];if(!(t=i.queries[n]))return[null,!1,i,null];var o=t[(r.query?r.query.index.name:null)||""];if(!o)return[null,!1,i,null];switch(n){case"query":var s=o.find((function(e){return e.req.limit===r.limit&&e.req.values===r.values&&Zn(e.req.query.range,r.query.range)}));return s?[s,!0,i,o]:[o.find((function(e){return("limit"in e.req?e.req.limit:1/0)>=r.limit&&(!r.values||e.req.values)&&$n(e.req.query.range,r.query.range)})),!1,i,o];case"count":return s=o.find((function(e){return Zn(e.req.query.range,r.query.range)})),[s,!!s,i,o]}}(n,r,"query",e),l=a[0],c=a[1],u=a[2],d=a[3];return l&&c?l.obsSet=e.obsSet:(c=i.query(e).then((function(e){var n=e.result;if(l&&(l.res=n),t){for(var r=0,i=n.length;r<i;++r)Object.freeze(n[r]);Object.freeze(n)}else e.result=j(n);return e})).catch((function(e){return d&&l&&O(d,l),Promise.reject(e)})),l={obsSet:e.obsSet,promise:c,subscribers:new Set,type:"query",req:e,dirty:!1},d?d.push(l):(d=[l],(u=u||(jn["idb://".concat(n,"/").concat(r)]={queries:{query:{},count:{}},objs:new Map,optimisticOps:[],unsignaledParts:{}})).queries.query[e.query.index.name||""]=d)),Jn(l,d,o,s),l.promise.then((function(n){return{result:Kn(n.result,e,null==u?void 0:u.optimisticOps,i,l,t)}}))}})}})}};function er(e,t){return new Proxy(e,{get:function(e,n,r){return"db"===n?t:Reflect.get(e,n,r)}})}var tr=(nr.prototype.version=function(e){if(isNaN(e)||e<.1)throw new q.Type("Given version is not a positive number");if(e=Math.round(10*e)/10,this.idbdb||this._state.isBeingOpened)throw new q.Schema("Cannot add version when database is open");this.verno=Math.max(this.verno,e);var t=this._versions,n=t.filter((function(t){return t._cfg.version===e}))[0];return n||(n=new this.Version(e),t.push(n),t.sort(rn),n.stores({}),this._state.autoSchema=!1,n)},nr.prototype._whenReady=function(e){var t=this;return this.idbdb&&(this._state.openComplete||ve.letThrough||this._vip)?e():new Se((function(e,n){if(t._state.openComplete)return n(new q.DatabaseClosed(t._state.dbOpenError));if(!t._state.isBeingOpened){if(!t._state.autoOpen)return void n(new q.DatabaseClosed);t.open().catch(K)}t._state.dbReadyPromise.then(e,n)})).then(e)},nr.prototype.use=function(e){var t=e.stack,n=e.create,r=e.level,i=e.name;return i&&this.unuse({stack:t,name:i}),(e=this._middlewares[t]||(this._middlewares[t]=[])).push({stack:t,create:n,level:null==r?10:r,name:i}),e.sort((function(e,t){return e.level-t.level})),this},nr.prototype.unuse=function(e){var t=e.stack,n=e.name,r=e.create;return t&&this._middlewares[t]&&(this._middlewares[t]=this._middlewares[t].filter((function(e){return r?e.create!==r:!!n&&e.name!==n}))),this},nr.prototype.open=function(){var e=this;return Ye(ye,(function(){return Rn(e)}))},nr.prototype._close=function(){var e=this._state,t=tt.indexOf(this);if(0<=t&&tt.splice(t,1),this.idbdb){try{this.idbdb.close()}catch(t){}this.idbdb=null}e.isBeingOpened||(e.dbReadyPromise=new Se((function(t){e.dbReadyResolve=t})),e.openCanceller=new Se((function(t,n){e.cancelOpen=n})))},nr.prototype.close=function(e){var t=(void 0===e?{disableAutoOpen:!0}:e).disableAutoOpen;e=this._state,t?(e.isBeingOpened&&e.cancelOpen(new q.DatabaseClosed),this._close(),e.autoOpen=!1,e.dbOpenError=new q.DatabaseClosed):(this._close(),e.autoOpen=this._options.autoOpen||e.isBeingOpened,e.openComplete=!1,e.dbOpenError=null)},nr.prototype.delete=function(e){var t=this;void 0===e&&(e={disableAutoOpen:!0});var n=0<arguments.length&&"object"!=typeof arguments[0],r=this._state;return new Se((function(i,o){function s(){t.close(e);var n=t._deps.indexedDB.deleteDatabase(t.name);n.onsuccess=Oe((function(){var e,n,r;e=t._deps,n=t.name,r=e.indexedDB,e=e.IDBKeyRange,yn(r)||n===nt||mn(r,e).delete(n).catch(K),i()})),n.onerror=Nt(o),n.onblocked=t._fireOnBlocked}if(n)throw new q.InvalidArgument("Invalid closeOptions argument to db.delete()");r.isBeingOpened?r.dbReadyPromise.then(s):s()}))},nr.prototype.backendDB=function(){return this.idbdb},nr.prototype.isOpen=function(){return null!==this.idbdb},nr.prototype.hasBeenClosed=function(){var e=this._state.dbOpenError;return e&&"DatabaseClosed"===e.name},nr.prototype.hasFailed=function(){return null!==this._state.dbOpenError},nr.prototype.dynamicallyOpened=function(){return this._state.autoSchema},Object.defineProperty(nr.prototype,"tables",{get:function(){var e=this;return o(this._allTables).map((function(t){return e._allTables[t]}))},enumerable:!1,configurable:!0}),nr.prototype.transaction=function(){var e=function(e,t,n){var r=arguments.length;if(r<2)throw new q.InvalidArgument("Too few arguments");for(var i=new Array(r-1);--r;)i[r-1]=arguments[r];return n=i.pop(),[e,P(i),n]}.apply(this,arguments);return this._transaction.apply(this,e)},nr.prototype._transaction=function(e,t,n){var r=this,i=ve.trans;i&&i.db===this&&-1===e.indexOf("!")||(i=null);var o,s,a=-1!==e.indexOf("?");e=e.replace("!","").replace("?","");try{if(s=t.map((function(e){if("string"!=typeof(e=e instanceof r.Table?e.name:e))throw new TypeError("Invalid table argument to Dexie.transaction(). Only Table or String are allowed");return e})),"r"==e||e===rt)o=rt;else{if("rw"!=e&&e!=it)throw new q.InvalidArgument("Invalid transaction mode: "+e);o=it}if(i){if(i.mode===rt&&o===it){if(!a)throw new q.SubTransaction("Cannot enter a sub-transaction with READWRITE mode when parent transaction is READONLY");i=null}i&&s.forEach((function(e){if(i&&-1===i.storeNames.indexOf(e)){if(!a)throw new q.SubTransaction("Table "+e+" not included in parent transaction.");i=null}})),a&&i&&!i.active&&(i=null)}}catch(n){return i?i._promise(null,(function(e,t){t(n)})):$e(n)}var l=function e(t,n,r,i,o){return Se.resolve().then((function(){var s=ve.transless||ve,a=t._createTransaction(n,r,t._dbSchema,i);if(a.explicit=!0,s={trans:a,transless:s},i)a.idbtrans=i.idbtrans;else try{a.create(),a.idbtrans._explicit=!0,t._state.PR1398_maxLoop=3}catch(s){return s.name===W.InvalidState&&t.isOpen()&&0<--t._state.PR1398_maxLoop?(console.warn("Dexie: Need to reopen db"),t.close({disableAutoOpen:!1}),t.open().then((function(){return e(t,n,r,null,o)}))):$e(s)}var l,c=N(o);return c&&Be(),s=Se.follow((function(){var e;(l=o.call(a,a))&&(c?(e=Ue.bind(null,null),l.then(e,e)):"function"==typeof l.next&&"function"==typeof l.throw&&(l=Dn(l)))}),s),(l&&"function"==typeof l.then?Se.resolve(l).then((function(e){return a.active?e:$e(new q.PrematureCommit("Transaction committed too early. See http://bit.ly/2kdckMn"))})):s.then((function(){return l}))).then((function(e){return i&&a._resolve(),a._completion.then((function(){return e}))})).catch((function(e){return a._reject(e),$e(e)}))}))}.bind(null,this,o,s,i,n);return i?i._promise(o,l,"lock"):ve.trans?Ye(ve.transless,(function(){return r._whenReady(l)})):this._whenReady(l)},nr.prototype.table=function(e){if(!u(this._allTables,e))throw new q.InvalidTable("Table ".concat(e," does not exist"));return this._allTables[e]},nr);function nr(e,n){var r=this;this._middlewares={},this.verno=0;var i=nr.dependencies;this._options=n=t({addons:nr.addons,autoOpen:!0,indexedDB:i.indexedDB,IDBKeyRange:i.IDBKeyRange,cache:"cloned"},n),this._deps={indexedDB:n.indexedDB,IDBKeyRange:n.IDBKeyRange},i=n.addons,this._dbSchema={},this._versions=[],this._storeNames=[],this._allTables={},this.idbdb=null,this._novip=this;var o,s,a,l,c,u={dbOpenError:null,isBeingOpened:!1,onReadyBeingFired:null,openComplete:!1,dbReadyResolve:K,dbReadyPromise:null,cancelOpen:K,openCanceller:null,autoSchema:!0,PR1398_maxLoop:3,autoOpen:n.autoOpen};u.dbReadyPromise=new Se((function(e){u.dbReadyResolve=e})),u.openCanceller=new Se((function(e,t){u.cancelOpen=t})),this._state=u,this.name=e,this.on=ft(this,"populate","blocked","versionchange","close",{ready:[re,K]}),this.on.ready.subscribe=v(this.on.ready.subscribe,(function(e){return function(t,n){nr.vip((function(){var i,o=r._state;o.openComplete?(o.dbOpenError||Se.resolve().then(t),n&&e(t)):o.onReadyBeingFired?(o.onReadyBeingFired.push(t),n&&e(t)):(e(t),i=r,n||e((function e(){i.on.ready.unsubscribe(t),i.on.ready.unsubscribe(e)})))}))}})),this.Collection=(o=this,gt(Pt.prototype,(function(e,t){this.db=o;var n=st,r=null;if(t)try{n=t()}catch(e){r=e}var i=e._ctx;e=(t=i.table).hook.reading.fire,this._ctx={table:t,index:i.index,isPrimKey:!i.index||t.schema.primKey.keyPath&&i.index===t.schema.primKey.name,range:n,keysOnly:!1,dir:"next",unique:"",algorithm:null,filter:null,replayFilter:null,justLimit:!0,isMatch:null,offset:0,limit:1/0,error:r,or:i.or,valueMapper:e!==Z?e:null}}))),this.Table=(s=this,gt(ht.prototype,(function(e,t,n){this.db=s,this._tx=n,this.name=e,this.schema=t,this.hook=s._allTables[e]?s._allTables[e].hook:ft(null,{creating:[Q,K],reading:[$,Z],updating:[te,K],deleting:[ee,K]})}))),this.Transaction=(a=this,gt(Bt.prototype,(function(e,t,n,r,i){var o=this;this.db=a,this.mode=e,this.storeNames=t,this.schema=n,this.chromeTransactionDurability=r,this.idbtrans=null,this.on=ft(this,"complete","error","abort"),this.parent=i||null,this.active=!0,this._reculock=0,this._blockedFuncs=[],this._resolve=null,this._reject=null,this._waitingFor=null,this._waitingQueue=null,this._spinCount=0,this._completion=new Se((function(e,t){o._resolve=e,o._reject=t})),this._completion.then((function(){o.active=!1,o.on.complete.fire()}),(function(e){var t=o.active;return o.active=!1,o.on.error.fire(e),o.parent?o.parent._reject(e):t&&o.idbtrans&&o.idbtrans.abort(),$e(e)}))}))),this.Version=(l=this,gt(fn.prototype,(function(e){this.db=l,this._cfg={version:e,storesSource:null,dbschema:{},tables:{},contentUpgrade:null}}))),this.WhereClause=(c=this,gt(Rt.prototype,(function(e,t,n){if(this.db=c,this._ctx={table:e,index:":id"===t?null:t,or:n},this._cmp=this._ascending=ct,this._descending=function(e,t){return ct(t,e)},this._max=function(e,t){return 0<ct(e,t)?e:t},this._min=function(e,t){return ct(e,t)<0?e:t},this._IDBKeyRange=c._deps.IDBKeyRange,!this._IDBKeyRange)throw new q.MissingAPI}))),this.on("versionchange",(function(e){0<e.newVersion?console.warn("Another connection wants to upgrade database '".concat(r.name,"'. Closing db now to resume the upgrade.")):console.warn("Another connection wants to delete database '".concat(r.name,"'. Closing db now to resume the delete request.")),r.close({disableAutoOpen:!1})})),this.on("blocked",(function(e){!e.newVersion||e.newVersion<e.oldVersion?console.warn("Dexie.delete('".concat(r.name,"') was blocked")):console.warn("Upgrade '".concat(r.name,"' blocked by other connection holding version ").concat(e.oldVersion/10))})),this._maxKey=Xt(n.IDBKeyRange),this._createTransaction=function(e,t,n,i){return new r.Transaction(e,t,n,r._options.chromeTransactionDurability,i)},this._fireOnBlocked=function(e){r.on("blocked").fire(e),tt.filter((function(e){return e.name===r.name&&e!==r&&!e._state.vcFired})).map((function(t){return t.on("versionchange").fire(e)}))},this.use(Un),this.use(Qn),this.use(qn),this.use(Ln),this.use(zn);var d=new Proxy(this,{get:function(e,t,n){if("_vip"===t)return!0;if("table"===t)return function(e){return er(r.table(e),d)};var i=Reflect.get(e,t,n);return i instanceof ht?er(i,d):"tables"===t?i.map((function(e){return er(e,d)})):"_createTransaction"===t?function(){return er(i.apply(this,arguments),d)}:i}});this.vip=d,i.forEach((function(e){return e(r)}))}L="undefined"!=typeof Symbol&&"observable"in Symbol?Symbol.observable:"@@observable";var rr,ir=(or.prototype.subscribe=function(e,t,n){return this._subscribe(e&&"function"!=typeof e?e:{next:e,error:t,complete:n})},or.prototype[L]=function(){return this},or);function or(e){this._subscribe=e}try{rr={indexedDB:i.indexedDB||i.mozIndexedDB||i.webkitIndexedDB||i.msIndexedDB,IDBKeyRange:i.IDBKeyRange||i.webkitIDBKeyRange}}catch(C){rr={indexedDB:null,IDBKeyRange:null}}function sr(e){var t,n=!1,r=new ir((function(r){var i,o=N(e),s=!1,a={},l={},c={get closed(){return s},unsubscribe:function(){s||(s=!0,i&&i.abort(),d&&zt.storagemutated.unsubscribe(p))}};r.start&&r.start(c);var d=!1,h=function(){return Ze(f)},p=function(e){An(a,e),kn(l,a)&&h()},f=function(){var c,f,g;!s&&rr.indexedDB&&(a={},c={},i&&i.abort(),i=new AbortController,g=function(t){var n=Ie();try{o&&Be();var r=ze(e,t);return r=o?r.finally(Ue):r}finally{n&&Ge()}}(f={subscr:c,signal:i.signal,requery:h,querier:e,trans:null}),Promise.resolve(g).then((function(e){n=!0,t=e,s||f.signal.aborted||(a={},function(e){for(var t in e)if(u(e,t))return;return 1}(l=c)||d||(zt(Vt,p),d=!0),Ze((function(){return!s&&r.next&&r.next(e)})))}),(function(e){n=!1,["DatabaseClosedError","AbortError"].includes(null==e?void 0:e.name)||s||Ze((function(){s||r.error&&r.error(e)}))})))};return setTimeout(h,0),c}));return r.hasValue=function(){return n},r.getValue=function(){return t},r}var ar=tr;function lr(e){var t=ur;try{ur=!0,zt.storagemutated.fire(e),Mn(e,!0)}finally{ur=t}}d(ar,t(t({},Y),{delete:function(e){return new ar(e,{addons:[]}).delete()},exists:function(e){return new ar(e,{addons:[]}).open().then((function(e){return e.close(),!0})).catch("NoSuchDatabaseError",(function(){return!1}))},getDatabaseNames:function(e){try{return n=(t=ar.dependencies).indexedDB,t=t.IDBKeyRange,(yn(n)?Promise.resolve(n.databases()).then((function(e){return e.map((function(e){return e.name})).filter((function(e){return e!==nt}))})):mn(n,t).toCollection().primaryKeys()).then(e)}catch(e){return $e(new q.MissingAPI)}var t,n},defineClass:function(){return function(e){a(this,e)}},ignoreTransaction:function(e){return ve.trans?Ye(ve.transless,e):e()},vip:vn,async:function(e){return function(){try{var t=Dn(e.apply(this,arguments));return t&&"function"==typeof t.then?t:Se.resolve(t)}catch(t){return $e(t)}}},spawn:function(e,t,n){try{var r=Dn(e.apply(n,t||[]));return r&&"function"==typeof r.then?r:Se.resolve(r)}catch(e){return $e(e)}},currentTransaction:{get:function(){return ve.trans||null}},waitFor:function(e,t){return t=Se.resolve("function"==typeof e?ar.ignoreTransaction(e):e).timeout(t||6e4),ve.trans?ve.trans.waitFor(t):t},Promise:Se,debug:{get:function(){return ie},set:function(e){oe(e)}},derive:f,extend:a,props:d,override:v,Events:ft,on:zt,liveQuery:sr,extendObservabilitySet:An,getByKeyPath:x,setByKeyPath:S,delByKeyPath:function(e,t){"string"==typeof t?S(e,t,void 0):"length"in t&&[].map.call(t,(function(t){S(e,t,void 0)}))},shallowClone:w,deepClone:j,getObjectDiff:Vn,cmp:ct,asap:b,minKey:-1/0,addons:[],connections:tt,errnames:W,dependencies:rr,cache:jn,semVer:"4.0.8",version:"4.0.8".split(".").map((function(e){return parseInt(e)})).reduce((function(e,t,n){return e+t/Math.pow(10,2*n)}))})),ar.maxKey=Xt(ar.dependencies.IDBKeyRange),"undefined"!=typeof dispatchEvent&&"undefined"!=typeof addEventListener&&(zt(Vt,(function(e){ur||(e=new CustomEvent(Ft,{detail:e}),ur=!0,dispatchEvent(e),ur=!1)})),addEventListener(Ft,(function(e){e=e.detail,ur||lr(e)})));var cr,ur=!1,dr=function(){};return"undefined"!=typeof BroadcastChannel&&((dr=function(){(cr=new BroadcastChannel(Ft)).onmessage=function(e){return e.data&&lr(e.data)}})(),"function"==typeof cr.unref&&cr.unref(),zt(Vt,(function(e){ur||cr.postMessage(e)}))),"undefined"!=typeof addEventListener&&(addEventListener("pagehide",(function(e){if(!tr.disableBfCache&&e.persisted){ie&&console.debug("Dexie: handling persisted pagehide"),null!=cr&&cr.close();for(var t=0,n=tt;t<n.length;t++)n[t].close({disableAutoOpen:!1})}})),addEventListener("pageshow",(function(e){!tr.disableBfCache&&e.persisted&&(ie&&console.debug("Dexie: handling persisted pageshow"),dr(),lr({all:new bn(-1/0,[[]])}))}))),Se.rejectionMapper=function(e,t){return!e||e instanceof F||e instanceof TypeError||e instanceof SyntaxError||!e.name||!X[e.name]?e:(t=new X[e.name](t||e.message,e),"stack"in e&&p(t,"stack",{get:function(){return this.inner.stack}}),t)},oe(ie),t(tr,Object.freeze({__proto__:null,Dexie:tr,liveQuery:sr,Entity:lt,cmp:ct,PropModSymbol:C,PropModification:wt,replacePrefix:function(e,t){return new wt({replacePrefix:[e,t]})},add:function(e){return new wt({add:e})},remove:function(e){return new wt({remove:e})},default:tr,RangeSet:bn,mergeRanges:Sn,rangesOverlap:wn}),{default:tr}),tr}()},76188:e=>{"use strict";function t(e,t,r){r=r||2;var o,s,a,l,d,h,f,g=t&&t.length,m=g?t[0]*r:e.length,y=n(e,0,m,r,!0),v=[];if(!y||y.next===y.prev)return v;if(g&&(y=function(e,t,r,i){var o,s,a,l=[];for(o=0,s=t.length;o<s;o++)(a=n(e,t[o]*i,o<s-1?t[o+1]*i:e.length,i,!1))===a.next&&(a.steiner=!0),l.push(p(a));for(l.sort(c),o=0;o<l.length;o++)r=u(l[o],r);return r}(e,t,y,r)),e.length>80*r){o=a=e[0],s=l=e[1];for(var _=r;_<m;_+=r)(d=e[_])<o&&(o=d),(h=e[_+1])<s&&(s=h),d>a&&(a=d),h>l&&(l=h);f=0!==(f=Math.max(a-o,l-s))?32767/f:0}return i(y,v,r,o,s,f,0),v}function n(e,t,n,r,i){var o,s;if(i===C(e,t,n,r)>0)for(o=t;o<n;o+=r)s=w(o,e[o],e[o+1],s);else for(o=n-r;o>=t;o-=r)s=w(o,e[o],e[o+1],s);return s&&y(s,s.next)&&(E(s),s=s.next),s}function r(e,t){if(!e)return e;t||(t=e);var n,r=e;do{if(n=!1,r.steiner||!y(r,r.next)&&0!==m(r.prev,r,r.next))r=r.next;else{if(E(r),(r=t=r.prev)===r.next)break;n=!0}}while(n||r!==t);return t}function i(e,t,n,c,u,d,p){if(e){!p&&d&&function(e,t,n,r){var i=e;do{0===i.z&&(i.z=h(i.x,i.y,t,n,r)),i.prevZ=i.prev,i.nextZ=i.next,i=i.next}while(i!==e);i.prevZ.nextZ=null,i.prevZ=null,function(e){var t,n,r,i,o,s,a,l,c=1;do{for(n=e,e=null,o=null,s=0;n;){for(s++,r=n,a=0,t=0;t<c&&(a++,r=r.nextZ);t++);for(l=c;a>0||l>0&&r;)0!==a&&(0===l||!r||n.z<=r.z)?(i=n,n=n.nextZ,a--):(i=r,r=r.nextZ,l--),o?o.nextZ=i:e=i,i.prevZ=o,o=i;n=r}o.nextZ=null,c*=2}while(s>1)}(i)}(e,c,u,d);for(var f,g,m=e;e.prev!==e.next;)if(f=e.prev,g=e.next,d?s(e,c,u,d):o(e))t.push(f.i/n|0),t.push(e.i/n|0),t.push(g.i/n|0),E(e),e=g.next,m=g.next;else if((e=g)===m){p?1===p?i(e=a(r(e),t,n),t,n,c,u,d,2):2===p&&l(e,t,n,c,u,d):i(r(e),t,n,c,u,d,1);break}}}function o(e){var t=e.prev,n=e,r=e.next;if(m(t,n,r)>=0)return!1;for(var i=t.x,o=n.x,s=r.x,a=t.y,l=n.y,c=r.y,u=i<o?i<s?i:s:o<s?o:s,d=a<l?a<c?a:c:l<c?l:c,h=i>o?i>s?i:s:o>s?o:s,p=a>l?a>c?a:c:l>c?l:c,g=r.next;g!==t;){if(g.x>=u&&g.x<=h&&g.y>=d&&g.y<=p&&f(i,a,o,l,s,c,g.x,g.y)&&m(g.prev,g,g.next)>=0)return!1;g=g.next}return!0}function s(e,t,n,r){var i=e.prev,o=e,s=e.next;if(m(i,o,s)>=0)return!1;for(var a=i.x,l=o.x,c=s.x,u=i.y,d=o.y,p=s.y,g=a<l?a<c?a:c:l<c?l:c,y=u<d?u<p?u:p:d<p?d:p,v=a>l?a>c?a:c:l>c?l:c,_=u>d?u>p?u:p:d>p?d:p,b=h(g,y,t,n,r),x=h(v,_,t,n,r),S=e.prevZ,w=e.nextZ;S&&S.z>=b&&w&&w.z<=x;){if(S.x>=g&&S.x<=v&&S.y>=y&&S.y<=_&&S!==i&&S!==s&&f(a,u,l,d,c,p,S.x,S.y)&&m(S.prev,S,S.next)>=0)return!1;if(S=S.prevZ,w.x>=g&&w.x<=v&&w.y>=y&&w.y<=_&&w!==i&&w!==s&&f(a,u,l,d,c,p,w.x,w.y)&&m(w.prev,w,w.next)>=0)return!1;w=w.nextZ}for(;S&&S.z>=b;){if(S.x>=g&&S.x<=v&&S.y>=y&&S.y<=_&&S!==i&&S!==s&&f(a,u,l,d,c,p,S.x,S.y)&&m(S.prev,S,S.next)>=0)return!1;S=S.prevZ}for(;w&&w.z<=x;){if(w.x>=g&&w.x<=v&&w.y>=y&&w.y<=_&&w!==i&&w!==s&&f(a,u,l,d,c,p,w.x,w.y)&&m(w.prev,w,w.next)>=0)return!1;w=w.nextZ}return!0}function a(e,t,n){var i=e;do{var o=i.prev,s=i.next.next;!y(o,s)&&v(o,i,i.next,s)&&x(o,s)&&x(s,o)&&(t.push(o.i/n|0),t.push(i.i/n|0),t.push(s.i/n|0),E(i),E(i.next),i=e=s),i=i.next}while(i!==e);return r(i)}function l(e,t,n,o,s,a){var l=e;do{for(var c=l.next.next;c!==l.prev;){if(l.i!==c.i&&g(l,c)){var u=S(l,c);return l=r(l,l.next),u=r(u,u.next),i(l,t,n,o,s,a,0),void i(u,t,n,o,s,a,0)}c=c.next}l=l.next}while(l!==e)}function c(e,t){return e.x-t.x}function u(e,t){var n=function(e,t){var n,r=t,i=e.x,o=e.y,s=-1/0;do{if(o<=r.y&&o>=r.next.y&&r.next.y!==r.y){var a=r.x+(o-r.y)*(r.next.x-r.x)/(r.next.y-r.y);if(a<=i&&a>s&&(s=a,n=r.x<r.next.x?r:r.next,a===i))return n}r=r.next}while(r!==t);if(!n)return null;var l,c=n,u=n.x,h=n.y,p=1/0;r=n;do{i>=r.x&&r.x>=u&&i!==r.x&&f(o<h?i:s,o,u,h,o<h?s:i,o,r.x,r.y)&&(l=Math.abs(o-r.y)/(i-r.x),x(r,e)&&(l<p||l===p&&(r.x>n.x||r.x===n.x&&d(n,r)))&&(n=r,p=l)),r=r.next}while(r!==c);return n}(e,t);if(!n)return t;var i=S(n,e);return r(i,i.next),r(n,n.next)}function d(e,t){return m(e.prev,e,t.prev)<0&&m(t.next,e,e.next)<0}function h(e,t,n,r,i){return(e=1431655765&((e=858993459&((e=252645135&((e=16711935&((e=(e-n)*i|0)|e<<8))|e<<4))|e<<2))|e<<1))|(t=1431655765&((t=858993459&((t=252645135&((t=16711935&((t=(t-r)*i|0)|t<<8))|t<<4))|t<<2))|t<<1))<<1}function p(e){var t=e,n=e;do{(t.x<n.x||t.x===n.x&&t.y<n.y)&&(n=t),t=t.next}while(t!==e);return n}function f(e,t,n,r,i,o,s,a){return(i-s)*(t-a)>=(e-s)*(o-a)&&(e-s)*(r-a)>=(n-s)*(t-a)&&(n-s)*(o-a)>=(i-s)*(r-a)}function g(e,t){return e.next.i!==t.i&&e.prev.i!==t.i&&!function(e,t){var n=e;do{if(n.i!==e.i&&n.next.i!==e.i&&n.i!==t.i&&n.next.i!==t.i&&v(n,n.next,e,t))return!0;n=n.next}while(n!==e);return!1}(e,t)&&(x(e,t)&&x(t,e)&&function(e,t){var n=e,r=!1,i=(e.x+t.x)/2,o=(e.y+t.y)/2;do{n.y>o!==n.next.y>o&&n.next.y!==n.y&&i<(n.next.x-n.x)*(o-n.y)/(n.next.y-n.y)+n.x&&(r=!r),n=n.next}while(n!==e);return r}(e,t)&&(m(e.prev,e,t.prev)||m(e,t.prev,t))||y(e,t)&&m(e.prev,e,e.next)>0&&m(t.prev,t,t.next)>0)}function m(e,t,n){return(t.y-e.y)*(n.x-t.x)-(t.x-e.x)*(n.y-t.y)}function y(e,t){return e.x===t.x&&e.y===t.y}function v(e,t,n,r){var i=b(m(e,t,n)),o=b(m(e,t,r)),s=b(m(n,r,e)),a=b(m(n,r,t));return i!==o&&s!==a||(!(0!==i||!_(e,n,t))||(!(0!==o||!_(e,r,t))||(!(0!==s||!_(n,e,r))||!(0!==a||!_(n,t,r)))))}function _(e,t,n){return t.x<=Math.max(e.x,n.x)&&t.x>=Math.min(e.x,n.x)&&t.y<=Math.max(e.y,n.y)&&t.y>=Math.min(e.y,n.y)}function b(e){return e>0?1:e<0?-1:0}function x(e,t){return m(e.prev,e,e.next)<0?m(e,t,e.next)>=0&&m(e,e.prev,t)>=0:m(e,t,e.prev)<0||m(e,e.next,t)<0}function S(e,t){var n=new P(e.i,e.x,e.y),r=new P(t.i,t.x,t.y),i=e.next,o=t.prev;return e.next=t,t.prev=e,n.next=i,i.prev=n,r.next=n,n.prev=r,o.next=r,r.prev=o,r}function w(e,t,n,r){var i=new P(e,t,n);return r?(i.next=r.next,i.prev=r,r.next.prev=i,r.next=i):(i.prev=i,i.next=i),i}function E(e){e.next.prev=e.prev,e.prev.next=e.next,e.prevZ&&(e.prevZ.nextZ=e.nextZ),e.nextZ&&(e.nextZ.prevZ=e.prevZ)}function P(e,t,n){this.i=e,this.x=t,this.y=n,this.prev=null,this.next=null,this.z=0,this.prevZ=null,this.nextZ=null,this.steiner=!1}function C(e,t,n,r){for(var i=0,o=t,s=n-r;o<n;o+=r)i+=(e[s]-e[o])*(e[o+1]+e[s+1]),s=o;return i}e.exports=t,e.exports.default=t,t.deviation=function(e,t,n,r){var i=t&&t.length,o=i?t[0]*n:e.length,s=Math.abs(C(e,0,o,n));if(i)for(var a=0,l=t.length;a<l;a++){var c=t[a]*n,u=a<l-1?t[a+1]*n:e.length;s-=Math.abs(C(e,c,u,n))}var d=0;for(a=0;a<r.length;a+=3){var h=r[a]*n,p=r[a+1]*n,f=r[a+2]*n;d+=Math.abs((e[h]-e[f])*(e[p+1]-e[h+1])-(e[h]-e[p])*(e[f+1]-e[h+1]))}return 0===s&&0===d?0:Math.abs((d-s)/s)},t.flatten=function(e){for(var t=e[0][0].length,n={vertices:[],holes:[],dimensions:t},r=0,i=0;i<e.length;i++){for(var o=0;o<e[i].length;o++)for(var s=0;s<t;s++)n.vertices.push(e[i][o][s]);i>0&&(r+=e[i-1].length,n.holes.push(r))}return n}},23384:(e,t,n)=>{"use strict";var r=n(56344)("%Object.defineProperty%",!0)||!1;if(r)try{r({},"a",{value:1})}catch(i){r=!1}e.exports=r},69560:e=>{"use strict";e.exports=EvalError},71748:e=>{"use strict";e.exports=Error},37372:e=>{"use strict";e.exports=RangeError},24376:e=>{"use strict";e.exports=ReferenceError},72612:e=>{"use strict";e.exports=SyntaxError},97896:e=>{"use strict";e.exports=TypeError},35004:e=>{"use strict";e.exports=URIError},39512:e=>{"use strict";var t=Object.prototype.hasOwnProperty,n="~";function r(){}function i(e,t,n){this.fn=e,this.context=t,this.once=n||!1}function o(e,t,r,o,s){if("function"!==typeof r)throw new TypeError("The listener must be a function");var a=new i(r,o||e,s),l=n?n+t:t;return e._events[l]?e._events[l].fn?e._events[l]=[e._events[l],a]:e._events[l].push(a):(e._events[l]=a,e._eventsCount++),e}function s(e,t){0===--e._eventsCount?e._events=new r:delete e._events[t]}function a(){this._events=new r,this._eventsCount=0}Object.create&&(r.prototype=Object.create(null),(new r).__proto__||(n=!1)),a.prototype.eventNames=function(){var e,r,i=[];if(0===this._eventsCount)return i;for(r in e=this._events)t.call(e,r)&&i.push(n?r.slice(1):r);return Object.getOwnPropertySymbols?i.concat(Object.getOwnPropertySymbols(e)):i},a.prototype.listeners=function(e){var t=n?n+e:e,r=this._events[t];if(!r)return[];if(r.fn)return[r.fn];for(var i=0,o=r.length,s=new Array(o);i<o;i++)s[i]=r[i].fn;return s},a.prototype.listenerCount=function(e){var t=n?n+e:e,r=this._events[t];return r?r.fn?1:r.length:0},a.prototype.emit=function(e,t,r,i,o,s){var a=n?n+e:e;if(!this._events[a])return!1;var l,c,u=this._events[a],d=arguments.length;if(u.fn){switch(u.once&&this.removeListener(e,u.fn,void 0,!0),d){case 1:return u.fn.call(u.context),!0;case 2:return u.fn.call(u.context,t),!0;case 3:return u.fn.call(u.context,t,r),!0;case 4:return u.fn.call(u.context,t,r,i),!0;case 5:return u.fn.call(u.context,t,r,i,o),!0;case 6:return u.fn.call(u.context,t,r,i,o,s),!0}for(c=1,l=new Array(d-1);c<d;c++)l[c-1]=arguments[c];u.fn.apply(u.context,l)}else{var h,p=u.length;for(c=0;c<p;c++)switch(u[c].once&&this.removeListener(e,u[c].fn,void 0,!0),d){case 1:u[c].fn.call(u[c].context);break;case 2:u[c].fn.call(u[c].context,t);break;case 3:u[c].fn.call(u[c].context,t,r);break;case 4:u[c].fn.call(u[c].context,t,r,i);break;default:if(!l)for(h=1,l=new Array(d-1);h<d;h++)l[h-1]=arguments[h];u[c].fn.apply(u[c].context,l)}}return!0},a.prototype.on=function(e,t,n){return o(this,e,t,n,!1)},a.prototype.once=function(e,t,n){return o(this,e,t,n,!0)},a.prototype.removeListener=function(e,t,r,i){var o=n?n+e:e;if(!this._events[o])return this;if(!t)return s(this,o),this;var a=this._events[o];if(a.fn)a.fn!==t||i&&!a.once||r&&a.context!==r||s(this,o);else{for(var l=0,c=[],u=a.length;l<u;l++)(a[l].fn!==t||i&&!a[l].once||r&&a[l].context!==r)&&c.push(a[l]);c.length?this._events[o]=1===c.length?c[0]:c:s(this,o)}return this},a.prototype.removeAllListeners=function(e){var t;return e?(t=n?n+e:e,this._events[t]&&s(this,t)):(this._events=new r,this._eventsCount=0),this},a.prototype.off=a.prototype.removeListener,a.prototype.addListener=a.prototype.on,a.prefixed=n,a.EventEmitter=a,e.exports=a},68016:e=>{"use strict";var t=Object.prototype.toString,n=Math.max,r=function(e,t){for(var n=[],r=0;r<e.length;r+=1)n[r]=e[r];for(var i=0;i<t.length;i+=1)n[i+e.length]=t[i];return n};e.exports=function(e){var i=this;if("function"!==typeof i||"[object Function]"!==t.apply(i))throw new TypeError("Function.prototype.bind called on incompatible "+i);for(var o,s=function(e,t){for(var n=[],r=t||0,i=0;r<e.length;r+=1,i+=1)n[i]=e[r];return n}(arguments,1),a=n(0,i.length-s.length),l=[],c=0;c<a;c++)l[c]="$"+c;if(o=Function("binder","return function ("+function(e,t){for(var n="",r=0;r<e.length;r+=1)n+=e[r],r+1<e.length&&(n+=t);return n}(l,",")+"){ return binder.apply(this,arguments); }")((function(){if(this instanceof o){var t=i.apply(this,r(s,arguments));return Object(t)===t?t:this}return i.apply(e,r(s,arguments))})),i.prototype){var u=function(){};u.prototype=i.prototype,o.prototype=new u,u.prototype=null}return o}},56160:(e,t,n)=>{"use strict";var r=n(68016);e.exports=Function.prototype.bind||r},53672:e=>{"use strict";var t=function(){return"string"===typeof function(){}.name},n=Object.getOwnPropertyDescriptor;if(n)try{n([],"length")}catch(i){n=null}t.functionsHaveConfigurableNames=function(){if(!t()||!n)return!1;var e=n((function(){}),"name");return!!e&&!!e.configurable};var r=Function.prototype.bind;t.boundFunctionsHaveNames=function(){return t()&&"function"===typeof r&&""!==function(){}.bind().name},e.exports=t},85952:(e,t,n)=>{var r=n(20240),i=function(e){this.precision=e&&e.precision?e.precision:17,this.direction=!(!e||!e.direction)&&e.direction,this.pseudoNode=!(!e||!e.pseudoNode)&&e.pseudoNode,this.objectComparator=e&&e.objectComparator?e.objectComparator:a};function o(e){return e.coordinates.map((function(t){return{type:e.type.replace("Multi",""),coordinates:t}}))}function s(e,t){return e.hasOwnProperty("coordinates")?e.coordinates.length===t.coordinates.length:e.length===t.length}function a(e,t){return r(e,t,{strict:!0})}i.prototype.compare=function(e,t){if(e.type!==t.type||!s(e,t))return!1;switch(e.type){case"Point":return this.compareCoord(e.coordinates,t.coordinates);case"LineString":return this.compareLine(e.coordinates,t.coordinates,0,!1);case"Polygon":return this.comparePolygon(e,t);case"Feature":return this.compareFeature(e,t);default:if(0===e.type.indexOf("Multi")){var n=this,r=o(e),i=o(t);return r.every((function(e){return this.some((function(t){return n.compare(e,t)}))}),i)}}return!1},i.prototype.compareCoord=function(e,t){if(e.length!==t.length)return!1;for(var n=0;n<e.length;n++)if(e[n].toFixed(this.precision)!==t[n].toFixed(this.precision))return!1;return!0},i.prototype.compareLine=function(e,t,n,r){if(!s(e,t))return!1;var i=this.pseudoNode?e:this.removePseudo(e),o=this.pseudoNode?t:this.removePseudo(t);if(!r||this.compareCoord(i[0],o[0])||(o=this.fixStartIndex(o,i))){var a=this.compareCoord(i[n],o[n]);return this.direction||a?this.comparePath(i,o):!!this.compareCoord(i[n],o[o.length-(1+n)])&&this.comparePath(i.slice().reverse(),o)}},i.prototype.fixStartIndex=function(e,t){for(var n,r=-1,i=0;i<e.length;i++)if(this.compareCoord(e[i],t[0])){r=i;break}return r>=0&&(n=[].concat(e.slice(r,e.length),e.slice(1,r+1))),n},i.prototype.comparePath=function(e,t){var n=this;return e.every((function(e,t){return n.compareCoord(e,this[t])}),t)},i.prototype.comparePolygon=function(e,t){if(this.compareLine(e.coordinates[0],t.coordinates[0],1,!0)){var n=e.coordinates.slice(1,e.coordinates.length),r=t.coordinates.slice(1,t.coordinates.length),i=this;return n.every((function(e){return this.some((function(t){return i.compareLine(e,t,1,!0)}))}),r)}return!1},i.prototype.compareFeature=function(e,t){return!(e.id!==t.id||!this.objectComparator(e.properties,t.properties)||!this.compareBBox(e,t))&&this.compare(e.geometry,t.geometry)},i.prototype.compareBBox=function(e,t){return!!(!e.bbox&&!t.bbox||e.bbox&&t.bbox&&this.compareCoord(e.bbox,t.bbox))},i.prototype.removePseudo=function(e){return e},e.exports=i},29380:(e,t,n)=>{var r=n(24288),i=n(34896),o=n(8520),s=n(6264).c,a=o.featureEach,l=(o.coordEach,i.polygon,i.featureCollection);function c(e){var t=new r(e);return t.insert=function(e){if("Feature"!==e.type)throw new Error("invalid feature");return e.bbox=e.bbox?e.bbox:s(e),r.prototype.insert.call(this,e)},t.load=function(e){var t=[];return Array.isArray(e)?e.forEach((function(e){if("Feature"!==e.type)throw new Error("invalid features");e.bbox=e.bbox?e.bbox:s(e),t.push(e)})):a(e,(function(e){if("Feature"!==e.type)throw new Error("invalid features");e.bbox=e.bbox?e.bbox:s(e),t.push(e)})),r.prototype.load.call(this,t)},t.remove=function(e,t){if("Feature"!==e.type)throw new Error("invalid feature");return e.bbox=e.bbox?e.bbox:s(e),r.prototype.remove.call(this,e,t)},t.clear=function(){return r.prototype.clear.call(this)},t.search=function(e){var t=r.prototype.search.call(this,this.toBBox(e));return l(t)},t.collides=function(e){return r.prototype.collides.call(this,this.toBBox(e))},t.all=function(){var e=r.prototype.all.call(this);return l(e)},t.toJSON=function(){return r.prototype.toJSON.call(this)},t.fromJSON=function(e){return r.prototype.fromJSON.call(this,e)},t.toBBox=function(e){var t;if(e.bbox)t=e.bbox;else if(Array.isArray(e)&&4===e.length)t=e;else if(Array.isArray(e)&&6===e.length)t=[e[0],e[1],e[3],e[4]];else if("Feature"===e.type)t=s(e);else{if("FeatureCollection"!==e.type)throw new Error("invalid geojson");t=s(e)}return{minX:t[0],minY:t[1],maxX:t[2],maxY:t[3]}},t}e.exports=c,e.exports.default=c},57400:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=l(n(53056)),i=l(n(37560)),o=l(n(57512)),s=l(n(13452)),a=n(5224);function l(e){return e&&e.__esModule?e:{default:e}}var c=function(e,t,n){var l=arguments.length>3&&void 0!==arguments[3]?arguments[3]:6371e3,c=(0,r.default)(e),u=(0,i.default)(e),d=t/l,h=(0,o.default)(n),p=(0,o.default)(c),f=(0,o.default)(u),g=Math.asin(Math.sin(p)*Math.cos(d)+Math.cos(p)*Math.sin(d)*Math.cos(h)),m=f+Math.atan2(Math.sin(h)*Math.sin(d)*Math.cos(p),Math.cos(d)-Math.sin(p)*Math.sin(g)),y=(0,s.default)(m);return(y<a.MINLON||y>a.MAXLON)&&(m=(m+3*Math.PI)%(2*Math.PI)-Math.PI,y=(0,s.default)(m)),{latitude:(0,s.default)(g),longitude:y}};t.default=c},5224:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.areaConversion=t.timeConversion=t.distanceConversion=t.altitudeKeys=t.latitudeKeys=t.longitudeKeys=t.MAXLON=t.MINLON=t.MAXLAT=t.MINLAT=t.earthRadius=t.sexagesimalPattern=void 0;t.sexagesimalPattern=/^([0-9]{1,3})\xb0\s*([0-9]{1,3}(?:\.(?:[0-9]{1,}))?)['\u2032]\s*(([0-9]{1,3}(\.([0-9]{1,}))?)["\u2033]\s*)?([NEOSW]?)$/;t.earthRadius=6378137;t.MINLAT=-90;t.MAXLAT=90;t.MINLON=-180;t.MAXLON=180;t.longitudeKeys=["lng","lon","longitude",0];t.latitudeKeys=["lat","latitude",1];t.altitudeKeys=["alt","altitude","elevation","elev",2];t.distanceConversion={m:1,km:.001,cm:100,mm:1e3,mi:1/1609.344,sm:1/1852.216,ft:100/30.48,in:100/2.54,yd:1/.9144};t.timeConversion={m:60,h:3600,d:86400};var n={m2:1,km2:1e-6,ha:1e-4,a:.01,ft2:10.763911,yd2:1.19599,in2:1550.0031};t.areaConversion=n,n.sqm=n.m2,n.sqkm=n.km2,n.sqft=n.ft2,n.sqyd=n.yd2,n.sqin=n.in2},21024:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=n(5224),i=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"m",n=r.areaConversion[t];if(n)return e*n;throw new Error("Invalid unit used for area conversion.")};t.default=i},65872:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=n(5224),i=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"m",n=r.distanceConversion[t];if(n)return e*n;throw new Error("Invalid unit used for distance conversion.")};t.default=i},27472:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=n(5224),i=function(e){switch(arguments.length>1&&void 0!==arguments[1]?arguments[1]:"kmh"){case"kmh":return e*r.timeConversion.h*r.distanceConversion.km;case"mph":return e*r.timeConversion.h*r.distanceConversion.mi;default:return e}};t.default=i},7343:(e,t)=>{"use strict";function n(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"===typeof Symbol||!(Symbol.iterator in Object(e)))return;var n=[],r=!0,i=!1,o=void 0;try{for(var s,a=e[Symbol.iterator]();!(r=(s=a.next()).done)&&(n.push(s.value),!t||n.length!==t);r=!0);}catch(l){i=!0,o=l}finally{try{r||null==a.return||a.return()}finally{if(i)throw o}}return n}(e,t)||function(e,t){if(!e)return;if("string"===typeof e)return r(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return r(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function r(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i=function(e){var t=n(e.toString().split("."),2),r=t[0],i=t[1],o=Math.abs(Number(r)),s=60*Number("0."+(i||0)),a=s.toString().split("."),l=Math.floor(s),c=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:4,n=Math.pow(10,t);return Math.round(e*n)/n}(60*Number("0."+(a[1]||0))).toString(),u=n(c.split("."),2),d=u[0],h=u[1],p=void 0===h?"0":h;return o+"\xb0 "+l.toString().padStart(2,"0")+"' "+d.padStart(2,"0")+"."+p.padEnd(1,"0")+'"'};t.default=i},1520:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r,i=(r=n(35072))&&r.__esModule?r:{default:r};var o=function(e,t){return(0,i.default)(e,t)[0]};t.default=o},44848:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=a(n(57512)),i=a(n(53056)),o=a(n(37560)),s=n(5224);function a(e){return e&&e.__esModule?e:{default:e}}var l=function(e){var t=0;if(e.length>2){for(var n,a,l,c=0;c<e.length;c++){c===e.length-2?(n=e.length-2,a=e.length-1,l=0):c===e.length-1?(n=e.length-1,a=0,l=1):(n=c,a=c+1,l=c+2);var u=(0,o.default)(e[n]),d=(0,i.default)(e[a]),h=(0,o.default)(e[l]);t+=((0,r.default)(h)-(0,r.default)(u))*Math.sin((0,r.default)(d))}t=t*s.earthRadius*s.earthRadius/2}return Math.abs(t)};t.default=l},84612:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=o(n(53056)),i=o(n(37560));function o(e){return e&&e.__esModule?e:{default:e}}var s=function(e){if(!1===Array.isArray(e)||0===e.length)throw new Error("No points were given.");return e.reduce((function(e,t){var n=(0,r.default)(t),o=(0,i.default)(t);return{maxLat:Math.max(n,e.maxLat),minLat:Math.min(n,e.minLat),maxLng:Math.max(o,e.maxLng),minLng:Math.min(o,e.minLng)}}),{maxLat:-1/0,minLat:1/0,maxLng:-1/0,minLng:1/0})};t.default=s},24304:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=l(n(53056)),i=l(n(37560)),o=l(n(57512)),s=l(n(13452)),a=n(5224);function l(e){return e&&e.__esModule?e:{default:e}}var c=function(e,t){var n,l,c=(0,r.default)(e),u=(0,i.default)(e),d=(0,o.default)(c),h=(0,o.default)(u),p=t/a.earthRadius,f=d-p,g=d+p,m=(0,o.default)(a.MAXLAT),y=(0,o.default)(a.MINLAT),v=(0,o.default)(a.MAXLON),_=(0,o.default)(a.MINLON);if(f>y&&g<m){var b=Math.asin(Math.sin(p)/Math.cos(d));(n=h-b)<_&&(n+=2*Math.PI),(l=h+b)>v&&(l-=2*Math.PI)}else f=Math.max(f,y),g=Math.min(g,m),n=_,l=v;return[{latitude:(0,s.default)(f),longitude:(0,s.default)(n)},{latitude:(0,s.default)(g),longitude:(0,s.default)(l)}]};t.default=c},72848:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=a(n(53056)),i=a(n(37560)),o=a(n(57512)),s=a(n(13452));function a(e){return e&&e.__esModule?e:{default:e}}var l=function(e){if(!1===Array.isArray(e)||0===e.length)return!1;var t=e.length,n=e.reduce((function(e,t){var n=(0,o.default)((0,r.default)(t)),s=(0,o.default)((0,i.default)(t));return{X:e.X+Math.cos(n)*Math.cos(s),Y:e.Y+Math.cos(n)*Math.sin(s),Z:e.Z+Math.sin(n)}}),{X:0,Y:0,Z:0}),a=n.X/t,l=n.Y/t,c=n.Z/t;return{longitude:(0,s.default)(Math.atan2(l,a)),latitude:(0,s.default)(Math.atan2(c,Math.sqrt(a*a+l*l)))}};t.default=l},66488:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r,i=(r=n(84612))&&r.__esModule?r:{default:r};var o=function(e){var t=(0,i.default)(e),n=t.minLat+(t.maxLat-t.minLat)/2,r=t.minLng+(t.maxLng-t.minLng)/2;return{latitude:parseFloat(n.toFixed(6)),longitude:parseFloat(r.toFixed(6))}};t.default=o},968:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r,i=(r=n(84236))&&r.__esModule?r:{default:r};var o=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:i.default,r="function"===typeof n?n(e,t):(0,i.default)(e,t);if(isNaN(r))throw new Error("Could not calculate bearing for given points. Check your bearing function");switch(Math.round(r/22.5)){case 1:return"NNE";case 2:return"NE";case 3:return"ENE";case 4:return"E";case 5:return"ESE";case 6:return"SE";case 7:return"SSE";case 8:return"S";case 9:return"SSW";case 10:return"SW";case 11:return"WSW";case 12:return"W";case 13:return"WNW";case 14:return"NW";case 15:return"NNW";default:return"N"}};t.default=o},20848:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=function(e,t){return t.reduce((function(t,n){if("undefined"===typeof e||null===e)throw new Error("'".concat(e,"' is no valid coordinate."));return Object.prototype.hasOwnProperty.call(e,n)&&"undefined"!==typeof n&&"undefined"===typeof t?(t=n,n):t}),void 0)};t.default=n},82848:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r,i=n(5224),o=(r=n(20848))&&r.__esModule?r:{default:r};function s(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function a(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var l=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{longitude:i.longitudeKeys,latitude:i.latitudeKeys,altitude:i.altitudeKeys},n=(0,o.default)(e,t.longitude),r=(0,o.default)(e,t.latitude),l=(0,o.default)(e,t.altitude);return function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?s(Object(n),!0).forEach((function(t){a(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):s(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({latitude:r,longitude:n},l?{altitude:l}:{})};t.default=l},28420:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=l(n(53056)),i=l(n(37560)),o=l(n(57512)),s=l(n(17508)),a=n(5224);function l(e){return e&&e.__esModule?e:{default:e}}var c=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1;n="undefined"===typeof n||isNaN(n)?1:n;var l=(0,r.default)(e),c=(0,i.default)(e),u=(0,r.default)(t),d=(0,i.default)(t),h=Math.acos((0,s.default)(Math.sin((0,o.default)(u))*Math.sin((0,o.default)(l))+Math.cos((0,o.default)(u))*Math.cos((0,o.default)(l))*Math.cos((0,o.default)(c)-(0,o.default)(d))))*a.earthRadius;return Math.round(h/n)*n};t.default=c},43084:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=o(n(28420)),i=o(n(17508));function o(e){return e&&e.__esModule?e:{default:e}}var s=function(e,t,n){var o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:1,s=(0,r.default)(t,e,o),a=(0,r.default)(e,n,o),l=(0,r.default)(t,n,o),c=Math.acos((0,i.default)((s*s+l*l-a*a)/(2*s*l))),u=Math.acos((0,i.default)((a*a+l*l-s*s)/(2*a*l)));return c>Math.PI/2?s:u>Math.PI/2?a:Math.sin(c)*s};t.default=s},42988:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=a(n(53056)),i=a(n(37560)),o=a(n(57512)),s=a(n(13452));function a(e){return e&&e.__esModule?e:{default:e}}var l=function(e,t){var n=(0,r.default)(t),a=(0,i.default)(t),l=(0,r.default)(e),c=(0,i.default)(e);return((0,s.default)(Math.atan2(Math.sin((0,o.default)(a)-(0,o.default)(c))*Math.cos((0,o.default)(n)),Math.cos((0,o.default)(l))*Math.sin((0,o.default)(n))-Math.sin((0,o.default)(l))*Math.cos((0,o.default)(n))*Math.cos((0,o.default)(a)-(0,o.default)(c))))+360)%360};t.default=l},53056:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=n(5224),i=s(n(20848)),o=s(n(91995));function s(e){return e&&e.__esModule?e:{default:e}}var a=function(e,t){var n=(0,i.default)(e,r.latitudeKeys);if("undefined"!==typeof n&&null!==n){var s=e[n];return!0===t?s:(0,o.default)(s)}};t.default=a},37560:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=n(5224),i=s(n(20848)),o=s(n(91995));function s(e){return e&&e.__esModule?e:{default:e}}var a=function(e,t){var n=(0,i.default)(e,r.longitudeKeys);if("undefined"!==typeof n&&null!==n){var s=e[n];return!0===t?s:(0,o.default)(s)}};t.default=a},81643:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r,i=(r=n(28420))&&r.__esModule?r:{default:r};function o(e){return o="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"===typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},o(e)}var s=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:i.default;return e.reduce((function(e,n){return"object"===o(e)&&null!==e.last&&(e.distance+=t(n,e.last)),e.last=n,e}),{last:null,distance:0}).distance};t.default=s},68956:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=a(n(53056)),i=a(n(37560)),o=a(n(57512)),s=n(5224);function a(e){return e&&e.__esModule?e:{default:e}}var l=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1;n="undefined"===typeof n||isNaN(n)?1:n;var a,l,c,u,d,h,p,f=(0,r.default)(e),g=(0,i.default)(e),m=(0,r.default)(t),y=(0,i.default)(t),v=6356752.314245,_=1/298.257223563,b=(0,o.default)(y-g),x=Math.atan((1-_)*Math.tan((0,o.default)(parseFloat(f)))),S=Math.atan((1-_)*Math.tan((0,o.default)(parseFloat(m)))),w=Math.sin(x),E=Math.cos(x),P=Math.sin(S),C=Math.cos(S),A=b,k=100;do{var j=Math.sin(A),I=Math.cos(A);if(0===(h=Math.sqrt(C*j*(C*j)+(E*P-w*C*I)*(E*P-w*C*I))))return 0;a=w*P+E*C*I,l=Math.atan2(h,a),d=a-2*w*P/(u=1-(c=E*C*j/h)*c),isNaN(d)&&(d=0);var G=_/16*u*(4+_*(4-3*u));p=A,A=b+(1-G)*_*c*(l+G*h*(d+G*a*(2*d*d-1)))}while(Math.abs(A-p)>1e-12&&--k>0);if(0===k)return NaN;var T=u*(s.earthRadius*s.earthRadius-v*v)/(v*v),M=T/1024*(256+T*(T*(74-47*T)-128)),O=v*(1+T/16384*(4096+T*(T*(320-175*T)-768)))*(l-M*h*(d+M/4*(a*(2*d*d-1)-M/6*d*(4*h*h-3)*(4*d*d-3))));return Math.round(O/n)*n};t.default=l},84236:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=a(n(53056)),i=a(n(37560)),o=a(n(57512)),s=a(n(13452));function a(e){return e&&e.__esModule?e:{default:e}}var l=function(e,t){var n=(0,o.default)((0,i.default)(t))-(0,o.default)((0,i.default)(e)),a=Math.log(Math.tan((0,o.default)((0,r.default)(t))/2+Math.PI/4)/Math.tan((0,o.default)((0,r.default)(e))/2+Math.PI/4));return Math.abs(n)>Math.PI&&(n=n>0?-1*(2*Math.PI-n):2*Math.PI+n),((0,s.default)(Math.atan2(n,a))+360)%360};t.default=l},10836:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=function(e){return/^NNE|NE|NNW|N$/.test(e)?"N":/^ENE|E|ESE|SE$/.test(e)?"E":/^SSE|S|SSW|SW$/.test(e)?"S":/^WSW|W|WNW|NW$/.test(e)?"W":void 0};t.default=n},95853:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r,i=(r=n(28420))&&r.__esModule?r:{default:r};var o=function(e,t){return(arguments.length>2&&void 0!==arguments[2]?arguments[2]:i.default)(e,t)/(Number(t.time)-Number(e.time))*1e3};t.default=o},54396:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r={computeDestinationPoint:!0,convertArea:!0,convertDistance:!0,convertSpeed:!0,decimalToSexagesimal:!0,findNearest:!0,getAreaOfPolygon:!0,getBounds:!0,getBoundsOfDistance:!0,getCenter:!0,getCenterOfBounds:!0,getCompassDirection:!0,getCoordinateKey:!0,getCoordinateKeys:!0,getDistance:!0,getDistanceFromLine:!0,getGreatCircleBearing:!0,getLatitude:!0,getLongitude:!0,getPathLength:!0,getPreciseDistance:!0,getRhumbLineBearing:!0,getRoughCompassDirection:!0,getSpeed:!0,isDecimal:!0,isPointInLine:!0,isPointInPolygon:!0,isPointNearLine:!0,isPointWithinRadius:!0,isSexagesimal:!0,isValidCoordinate:!0,isValidLatitude:!0,isValidLongitude:!0,orderByDistance:!0,sexagesimalToDecimal:!0,toDecimal:!0,toRad:!0,toDeg:!0,wktToPolygon:!0};Object.defineProperty(t,"computeDestinationPoint",{enumerable:!0,get:function(){return i.default}}),Object.defineProperty(t,"convertArea",{enumerable:!0,get:function(){return o.default}}),Object.defineProperty(t,"convertDistance",{enumerable:!0,get:function(){return s.default}}),Object.defineProperty(t,"convertSpeed",{enumerable:!0,get:function(){return a.default}}),Object.defineProperty(t,"decimalToSexagesimal",{enumerable:!0,get:function(){return l.default}}),Object.defineProperty(t,"findNearest",{enumerable:!0,get:function(){return c.default}}),Object.defineProperty(t,"getAreaOfPolygon",{enumerable:!0,get:function(){return u.default}}),Object.defineProperty(t,"getBounds",{enumerable:!0,get:function(){return d.default}}),Object.defineProperty(t,"getBoundsOfDistance",{enumerable:!0,get:function(){return h.default}}),Object.defineProperty(t,"getCenter",{enumerable:!0,get:function(){return p.default}}),Object.defineProperty(t,"getCenterOfBounds",{enumerable:!0,get:function(){return f.default}}),Object.defineProperty(t,"getCompassDirection",{enumerable:!0,get:function(){return g.default}}),Object.defineProperty(t,"getCoordinateKey",{enumerable:!0,get:function(){return m.default}}),Object.defineProperty(t,"getCoordinateKeys",{enumerable:!0,get:function(){return y.default}}),Object.defineProperty(t,"getDistance",{enumerable:!0,get:function(){return v.default}}),Object.defineProperty(t,"getDistanceFromLine",{enumerable:!0,get:function(){return _.default}}),Object.defineProperty(t,"getGreatCircleBearing",{enumerable:!0,get:function(){return b.default}}),Object.defineProperty(t,"getLatitude",{enumerable:!0,get:function(){return x.default}}),Object.defineProperty(t,"getLongitude",{enumerable:!0,get:function(){return S.default}}),Object.defineProperty(t,"getPathLength",{enumerable:!0,get:function(){return w.default}}),Object.defineProperty(t,"getPreciseDistance",{enumerable:!0,get:function(){return E.default}}),Object.defineProperty(t,"getRhumbLineBearing",{enumerable:!0,get:function(){return P.default}}),Object.defineProperty(t,"getRoughCompassDirection",{enumerable:!0,get:function(){return C.default}}),Object.defineProperty(t,"getSpeed",{enumerable:!0,get:function(){return A.default}}),Object.defineProperty(t,"isDecimal",{enumerable:!0,get:function(){return k.default}}),Object.defineProperty(t,"isPointInLine",{enumerable:!0,get:function(){return j.default}}),Object.defineProperty(t,"isPointInPolygon",{enumerable:!0,get:function(){return I.default}}),Object.defineProperty(t,"isPointNearLine",{enumerable:!0,get:function(){return G.default}}),Object.defineProperty(t,"isPointWithinRadius",{enumerable:!0,get:function(){return T.default}}),Object.defineProperty(t,"isSexagesimal",{enumerable:!0,get:function(){return M.default}}),Object.defineProperty(t,"isValidCoordinate",{enumerable:!0,get:function(){return O.default}}),Object.defineProperty(t,"isValidLatitude",{enumerable:!0,get:function(){return R.default}}),Object.defineProperty(t,"isValidLongitude",{enumerable:!0,get:function(){return D.default}}),Object.defineProperty(t,"orderByDistance",{enumerable:!0,get:function(){return N.default}}),Object.defineProperty(t,"sexagesimalToDecimal",{enumerable:!0,get:function(){return L.default}}),Object.defineProperty(t,"toDecimal",{enumerable:!0,get:function(){return V.default}}),Object.defineProperty(t,"toRad",{enumerable:!0,get:function(){return F.default}}),Object.defineProperty(t,"toDeg",{enumerable:!0,get:function(){return z.default}}),Object.defineProperty(t,"wktToPolygon",{enumerable:!0,get:function(){return B.default}});var i=W(n(57400)),o=W(n(21024)),s=W(n(65872)),a=W(n(27472)),l=W(n(7343)),c=W(n(1520)),u=W(n(44848)),d=W(n(84612)),h=W(n(24304)),p=W(n(72848)),f=W(n(66488)),g=W(n(968)),m=W(n(20848)),y=W(n(82848)),v=W(n(28420)),_=W(n(43084)),b=W(n(42988)),x=W(n(53056)),S=W(n(37560)),w=W(n(81643)),E=W(n(68956)),P=W(n(84236)),C=W(n(10836)),A=W(n(95853)),k=W(n(91480)),j=W(n(49672)),I=W(n(2800)),G=W(n(44152)),T=W(n(10952)),M=W(n(23672)),O=W(n(39584)),R=W(n(58335)),D=W(n(31728)),N=W(n(35072)),L=W(n(58420)),V=W(n(91995)),F=W(n(57512)),z=W(n(13452)),B=W(n(24356)),U=n(5224);function W(e){return e&&e.__esModule?e:{default:e}}Object.keys(U).forEach((function(e){"default"!==e&&"__esModule"!==e&&(Object.prototype.hasOwnProperty.call(r,e)||Object.defineProperty(t,e,{enumerable:!0,get:function(){return U[e]}}))}))},91480:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=function(e){var t=e.toString().trim();return!isNaN(parseFloat(t))&&parseFloat(t)===Number(t)};t.default=n},49672:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r,i=(r=n(28420))&&r.__esModule?r:{default:r};var o=function(e,t,n){return(0,i.default)(t,e)+(0,i.default)(e,n)===(0,i.default)(t,n)};t.default=o},2800:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=o(n(53056)),i=o(n(37560));function o(e){return e&&e.__esModule?e:{default:e}}var s=function(e,t){for(var n=!1,o=t.length,s=-1,a=o-1;++s<o;a=s)((0,i.default)(t[s])<=(0,i.default)(e)&&(0,i.default)(e)<(0,i.default)(t[a])||(0,i.default)(t[a])<=(0,i.default)(e)&&(0,i.default)(e)<(0,i.default)(t[s]))&&(0,r.default)(e)<((0,r.default)(t[a])-(0,r.default)(t[s]))*((0,i.default)(e)-(0,i.default)(t[s]))/((0,i.default)(t[a])-(0,i.default)(t[s]))+(0,r.default)(t[s])&&(n=!n);return n};t.default=s},44152:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r,i=(r=n(43084))&&r.__esModule?r:{default:r};var o=function(e,t,n,r){return(0,i.default)(e,t,n)<r};t.default=o},10952:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r,i=(r=n(28420))&&r.__esModule?r:{default:r};var o=function(e,t,n){return(0,i.default)(e,t)<n};t.default=o},23672:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=n(5224),i=function(e){return r.sexagesimalPattern.test(e.toString().trim())};t.default=i},39584:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=s(n(82848)),i=s(n(58335)),o=s(n(31728));function s(e){return e&&e.__esModule?e:{default:e}}var a=function(e){var t=(0,r.default)(e),n=t.latitude,s=t.longitude;if(Array.isArray(e)&&e.length>=2)return(0,o.default)(e[0])&&(0,i.default)(e[1]);if("undefined"===typeof n||"undefined"===typeof s)return!1;var a=e[s],l=e[n];return"undefined"!==typeof l&&"undefined"!==typeof a&&(!1!==(0,i.default)(l)&&!1!==(0,o.default)(a))};t.default=a},58335:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=a(n(91480)),i=a(n(23672)),o=a(n(58420)),s=n(5224);function a(e){return e&&e.__esModule?e:{default:e}}var l=function e(t){return(0,r.default)(t)?!(parseFloat(t)>s.MAXLAT||t<s.MINLAT):!!(0,i.default)(t)&&e((0,o.default)(t))};t.default=l},31728:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=a(n(91480)),i=a(n(23672)),o=a(n(58420)),s=n(5224);function a(e){return e&&e.__esModule?e:{default:e}}var l=function e(t){return(0,r.default)(t)?!(parseFloat(t)>s.MAXLON||t<s.MINLON):!!(0,i.default)(t)&&e((0,o.default)(t))};t.default=l},35072:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r,i=(r=n(28420))&&r.__esModule?r:{default:r};var o=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:i.default;return n="function"===typeof n?n:i.default,t.slice().sort((function(t,r){return n(e,t)-n(e,r)}))};t.default=o},17508:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=function(e){return e>1?1:e<-1?-1:e};t.default=n},58420:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=n(5224),i=function(e){var t=new RegExp(r.sexagesimalPattern).exec(e.toString().trim());if("undefined"===typeof t||null===t)throw new Error("Given value is not in sexagesimal format");var n=Number(t[2])/60||0,i=Number(t[4])/3600||0,o=parseFloat(t[1])+n+i;return["S","W"].includes(t[7])?-o:o};t.default=i},91995:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=l(n(91480)),i=l(n(23672)),o=l(n(58420)),s=l(n(39584)),a=l(n(82848));function l(e){return e&&e.__esModule?e:{default:e}}function c(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function u(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?c(Object(n),!0).forEach((function(t){d(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):c(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function d(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var h=function e(t){if((0,r.default)(t))return Number(t);if((0,i.default)(t))return(0,o.default)(t);if((0,s.default)(t)){var n=(0,a.default)(t);return Array.isArray(t)?t.map((function(t,n){return[0,1].includes(n)?e(t):t})):u(u(u({},t),n.latitude&&d({},n.latitude,e(t[n.latitude]))),n.longitude&&d({},n.longitude,e(t[n.longitude])))}return Array.isArray(t)?t.map((function(t){return(0,s.default)(t)?e(t):t})):t};t.default=h},13452:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=function(e){return 180*e/Math.PI};t.default=n},57512:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=function(e){return e*Math.PI/180};t.default=n},24356:(e,t)=>{"use strict";function n(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"===typeof Symbol||!(Symbol.iterator in Object(e)))return;var n=[],r=!0,i=!1,o=void 0;try{for(var s,a=e[Symbol.iterator]();!(r=(s=a.next()).done)&&(n.push(s.value),!t||n.length!==t);r=!0);}catch(l){i=!0,o=l}finally{try{r||null==a.return||a.return()}finally{if(i)throw o}}return n}(e,t)||function(e,t){if(!e)return;if("string"===typeof e)return r(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return r(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function r(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i=function(e){if(!e.startsWith("POLYGON"))throw new Error("Invalid wkt.");return e.slice(e.indexOf("(")+2,e.indexOf(")")).split(", ").map((function(e){var t=n(e.split(" "),2),r=t[0],i=t[1];return{longitude:parseFloat(r),latitude:parseFloat(i)}}))};t.default=i},56344:(e,t,n)=>{"use strict";var r,i=n(71748),o=n(69560),s=n(37372),a=n(24376),l=n(72612),c=n(97896),u=n(35004),d=Function,h=function(e){try{return d('"use strict"; return ('+e+").constructor;")()}catch(t){}},p=Object.getOwnPropertyDescriptor;if(p)try{p({},"")}catch(R){p=null}var f=function(){throw new c},g=p?function(){try{return f}catch(e){try{return p(arguments,"callee").get}catch(t){return f}}}():f,m=n(77740)(),y=n(83588)(),v=Object.getPrototypeOf||(y?function(e){return e.__proto__}:null),_={},b="undefined"!==typeof Uint8Array&&v?v(Uint8Array):r,x={__proto__:null,"%AggregateError%":"undefined"===typeof AggregateError?r:AggregateError,"%Array%":Array,"%ArrayBuffer%":"undefined"===typeof ArrayBuffer?r:ArrayBuffer,"%ArrayIteratorPrototype%":m&&v?v([][Symbol.iterator]()):r,"%AsyncFromSyncIteratorPrototype%":r,"%AsyncFunction%":_,"%AsyncGenerator%":_,"%AsyncGeneratorFunction%":_,"%AsyncIteratorPrototype%":_,"%Atomics%":"undefined"===typeof Atomics?r:Atomics,"%BigInt%":"undefined"===typeof BigInt?r:BigInt,"%BigInt64Array%":"undefined"===typeof BigInt64Array?r:BigInt64Array,"%BigUint64Array%":"undefined"===typeof BigUint64Array?r:BigUint64Array,"%Boolean%":Boolean,"%DataView%":"undefined"===typeof DataView?r:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":i,"%eval%":eval,"%EvalError%":o,"%Float32Array%":"undefined"===typeof Float32Array?r:Float32Array,"%Float64Array%":"undefined"===typeof Float64Array?r:Float64Array,"%FinalizationRegistry%":"undefined"===typeof FinalizationRegistry?r:FinalizationRegistry,"%Function%":d,"%GeneratorFunction%":_,"%Int8Array%":"undefined"===typeof Int8Array?r:Int8Array,"%Int16Array%":"undefined"===typeof Int16Array?r:Int16Array,"%Int32Array%":"undefined"===typeof Int32Array?r:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":m&&v?v(v([][Symbol.iterator]())):r,"%JSON%":"object"===typeof JSON?JSON:r,"%Map%":"undefined"===typeof Map?r:Map,"%MapIteratorPrototype%":"undefined"!==typeof Map&&m&&v?v((new Map)[Symbol.iterator]()):r,"%Math%":Math,"%Number%":Number,"%Object%":Object,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":"undefined"===typeof Promise?r:Promise,"%Proxy%":"undefined"===typeof Proxy?r:Proxy,"%RangeError%":s,"%ReferenceError%":a,"%Reflect%":"undefined"===typeof Reflect?r:Reflect,"%RegExp%":RegExp,"%Set%":"undefined"===typeof Set?r:Set,"%SetIteratorPrototype%":"undefined"!==typeof Set&&m&&v?v((new Set)[Symbol.iterator]()):r,"%SharedArrayBuffer%":"undefined"===typeof SharedArrayBuffer?r:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":m&&v?v(""[Symbol.iterator]()):r,"%Symbol%":m?Symbol:r,"%SyntaxError%":l,"%ThrowTypeError%":g,"%TypedArray%":b,"%TypeError%":c,"%Uint8Array%":"undefined"===typeof Uint8Array?r:Uint8Array,"%Uint8ClampedArray%":"undefined"===typeof Uint8ClampedArray?r:Uint8ClampedArray,"%Uint16Array%":"undefined"===typeof Uint16Array?r:Uint16Array,"%Uint32Array%":"undefined"===typeof Uint32Array?r:Uint32Array,"%URIError%":u,"%WeakMap%":"undefined"===typeof WeakMap?r:WeakMap,"%WeakRef%":"undefined"===typeof WeakRef?r:WeakRef,"%WeakSet%":"undefined"===typeof WeakSet?r:WeakSet};if(v)try{null.error}catch(R){var S=v(v(R));x["%Error.prototype%"]=S}var w=function e(t){var n;if("%AsyncFunction%"===t)n=h("async function () {}");else if("%GeneratorFunction%"===t)n=h("function* () {}");else if("%AsyncGeneratorFunction%"===t)n=h("async function* () {}");else if("%AsyncGenerator%"===t){var r=e("%AsyncGeneratorFunction%");r&&(n=r.prototype)}else if("%AsyncIteratorPrototype%"===t){var i=e("%AsyncGenerator%");i&&v&&(n=v(i.prototype))}return x[t]=n,n},E={__proto__:null,"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction","prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date","prototype"],"%ErrorPrototype%":["Error","prototype"],"%EvalErrorPrototype%":["EvalError","prototype"],"%Float32ArrayPrototype%":["Float32Array","prototype"],"%Float64ArrayPrototype%":["Float64Array","prototype"],"%FunctionPrototype%":["Function","prototype"],"%Generator%":["GeneratorFunction","prototype"],"%GeneratorPrototype%":["GeneratorFunction","prototype","prototype"],"%Int8ArrayPrototype%":["Int8Array","prototype"],"%Int16ArrayPrototype%":["Int16Array","prototype"],"%Int32ArrayPrototype%":["Int32Array","prototype"],"%JSONParse%":["JSON","parse"],"%JSONStringify%":["JSON","stringify"],"%MapPrototype%":["Map","prototype"],"%NumberPrototype%":["Number","prototype"],"%ObjectPrototype%":["Object","prototype"],"%ObjProto_toString%":["Object","prototype","toString"],"%ObjProto_valueOf%":["Object","prototype","valueOf"],"%PromisePrototype%":["Promise","prototype"],"%PromiseProto_then%":["Promise","prototype","then"],"%Promise_all%":["Promise","all"],"%Promise_reject%":["Promise","reject"],"%Promise_resolve%":["Promise","resolve"],"%RangeErrorPrototype%":["RangeError","prototype"],"%ReferenceErrorPrototype%":["ReferenceError","prototype"],"%RegExpPrototype%":["RegExp","prototype"],"%SetPrototype%":["Set","prototype"],"%SharedArrayBufferPrototype%":["SharedArrayBuffer","prototype"],"%StringPrototype%":["String","prototype"],"%SymbolPrototype%":["Symbol","prototype"],"%SyntaxErrorPrototype%":["SyntaxError","prototype"],"%TypedArrayPrototype%":["TypedArray","prototype"],"%TypeErrorPrototype%":["TypeError","prototype"],"%Uint8ArrayPrototype%":["Uint8Array","prototype"],"%Uint8ClampedArrayPrototype%":["Uint8ClampedArray","prototype"],"%Uint16ArrayPrototype%":["Uint16Array","prototype"],"%Uint32ArrayPrototype%":["Uint32Array","prototype"],"%URIErrorPrototype%":["URIError","prototype"],"%WeakMapPrototype%":["WeakMap","prototype"],"%WeakSetPrototype%":["WeakSet","prototype"]},P=n(56160),C=n(37344),A=P.call(Function.call,Array.prototype.concat),k=P.call(Function.apply,Array.prototype.splice),j=P.call(Function.call,String.prototype.replace),I=P.call(Function.call,String.prototype.slice),G=P.call(Function.call,RegExp.prototype.exec),T=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,M=/\\(\\)?/g,O=function(e,t){var n,r=e;if(C(E,r)&&(r="%"+(n=E[r])[0]+"%"),C(x,r)){var i=x[r];if(i===_&&(i=w(r)),"undefined"===typeof i&&!t)throw new c("intrinsic "+e+" exists, but is not available. Please file an issue!");return{alias:n,name:r,value:i}}throw new l("intrinsic "+e+" does not exist!")};e.exports=function(e,t){if("string"!==typeof e||0===e.length)throw new c("intrinsic name must be a non-empty string");if(arguments.length>1&&"boolean"!==typeof t)throw new c('"allowMissing" argument must be a boolean');if(null===G(/^%?[^%]*%?$/,e))throw new l("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var n=function(e){var t=I(e,0,1),n=I(e,-1);if("%"===t&&"%"!==n)throw new l("invalid intrinsic syntax, expected closing `%`");if("%"===n&&"%"!==t)throw new l("invalid intrinsic syntax, expected opening `%`");var r=[];return j(e,T,(function(e,t,n,i){r[r.length]=n?j(i,M,"$1"):t||e})),r}(e),r=n.length>0?n[0]:"",i=O("%"+r+"%",t),o=i.name,s=i.value,a=!1,u=i.alias;u&&(r=u[0],k(n,A([0,1],u)));for(var d=1,h=!0;d<n.length;d+=1){var f=n[d],g=I(f,0,1),m=I(f,-1);if(('"'===g||"'"===g||"`"===g||'"'===m||"'"===m||"`"===m)&&g!==m)throw new l("property names with quotes must have matching quotes");if("constructor"!==f&&h||(a=!0),C(x,o="%"+(r+="."+f)+"%"))s=x[o];else if(null!=s){if(!(f in s)){if(!t)throw new c("base intrinsic for "+e+" exists, but the property is not available.");return}if(p&&d+1>=n.length){var y=p(s,f);s=(h=!!y)&&"get"in y&&!("originalValue"in y.get)?y.get:s[f]}else h=C(s,f),s=s[f];h&&!a&&(x[o]=s)}}return s}},56948:(e,t,n)=>{"use strict";var r=n(56344)("%Object.getOwnPropertyDescriptor%",!0);if(r)try{r([],"length")}catch(i){r=null}e.exports=r},11040:(e,t,n)=>{"use strict";var r=n(23384),i=function(){return!!r};i.hasArrayLengthDefineBug=function(){if(!r)return null;try{return 1!==r([],"length",{value:1}).length}catch(e){return!0}},e.exports=i},83588:e=>{"use strict";var t={foo:{}},n=Object;e.exports=function(){return{__proto__:t}.foo===t.foo&&!({__proto__:null}instanceof n)}},77740:(e,t,n)=>{"use strict";var r="undefined"!==typeof Symbol&&Symbol,i=n(58092);e.exports=function(){return"function"===typeof r&&("function"===typeof Symbol&&("symbol"===typeof r("foo")&&("symbol"===typeof Symbol("bar")&&i())))}},58092:e=>{"use strict";e.exports=function(){if("function"!==typeof Symbol||"function"!==typeof Object.getOwnPropertySymbols)return!1;if("symbol"===typeof Symbol.iterator)return!0;var e={},t=Symbol("test"),n=Object(t);if("string"===typeof t)return!1;if("[object Symbol]"!==Object.prototype.toString.call(t))return!1;if("[object Symbol]"!==Object.prototype.toString.call(n))return!1;for(t in e[t]=42,e)return!1;if("function"===typeof Object.keys&&0!==Object.keys(e).length)return!1;if("function"===typeof Object.getOwnPropertyNames&&0!==Object.getOwnPropertyNames(e).length)return!1;var r=Object.getOwnPropertySymbols(e);if(1!==r.length||r[0]!==t)return!1;if(!Object.prototype.propertyIsEnumerable.call(e,t))return!1;if("function"===typeof Object.getOwnPropertyDescriptor){var i=Object.getOwnPropertyDescriptor(e,t);if(42!==i.value||!0!==i.enumerable)return!1}return!0}},72728:(e,t,n)=>{"use strict";var r=n(58092);e.exports=function(){return r()&&!!Symbol.toStringTag}},37344:(e,t,n)=>{"use strict";var r=Function.prototype.call,i=Object.prototype.hasOwnProperty,o=n(56160);e.exports=o.call(r,i)},27396:(e,t,n)=>{"use strict";var r=n(64072),i={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},o={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},s={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},a={};function l(e){return r.isMemo(e)?s:a[e.$$typeof]||i}a[r.ForwardRef]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},a[r.Memo]=s;var c=Object.defineProperty,u=Object.getOwnPropertyNames,d=Object.getOwnPropertySymbols,h=Object.getOwnPropertyDescriptor,p=Object.getPrototypeOf,f=Object.prototype;e.exports=function e(t,n,r){if("string"!==typeof n){if(f){var i=p(n);i&&i!==f&&e(t,i,r)}var s=u(n);d&&(s=s.concat(d(n)));for(var a=l(t),g=l(n),m=0;m<s.length;++m){var y=s[m];if(!o[y]&&(!r||!r[y])&&(!g||!g[y])&&(!a||!a[y])){var v=h(n,y);try{c(t,y,v)}catch(_){}}}}return t}},17640:(e,t)=>{"use strict";var n="function"===typeof Symbol&&Symbol.for,r=n?Symbol.for("react.element"):60103,i=n?Symbol.for("react.portal"):60106,o=n?Symbol.for("react.fragment"):60107,s=n?Symbol.for("react.strict_mode"):60108,a=n?Symbol.for("react.profiler"):60114,l=n?Symbol.for("react.provider"):60109,c=n?Symbol.for("react.context"):60110,u=n?Symbol.for("react.async_mode"):60111,d=n?Symbol.for("react.concurrent_mode"):60111,h=n?Symbol.for("react.forward_ref"):60112,p=n?Symbol.for("react.suspense"):60113,f=n?Symbol.for("react.suspense_list"):60120,g=n?Symbol.for("react.memo"):60115,m=n?Symbol.for("react.lazy"):60116,y=n?Symbol.for("react.block"):60121,v=n?Symbol.for("react.fundamental"):60117,_=n?Symbol.for("react.responder"):60118,b=n?Symbol.for("react.scope"):60119;function x(e){if("object"===typeof e&&null!==e){var t=e.$$typeof;switch(t){case r:switch(e=e.type){case u:case d:case o:case a:case s:case p:return e;default:switch(e=e&&e.$$typeof){case c:case h:case m:case g:case l:return e;default:return t}}case i:return t}}}function S(e){return x(e)===d}t.AsyncMode=u,t.ConcurrentMode=d,t.ContextConsumer=c,t.ContextProvider=l,t.Element=r,t.ForwardRef=h,t.Fragment=o,t.Lazy=m,t.Memo=g,t.Portal=i,t.Profiler=a,t.StrictMode=s,t.Suspense=p,t.isAsyncMode=function(e){return S(e)||x(e)===u},t.isConcurrentMode=S,t.isContextConsumer=function(e){return x(e)===c},t.isContextProvider=function(e){return x(e)===l},t.isElement=function(e){return"object"===typeof e&&null!==e&&e.$$typeof===r},t.isForwardRef=function(e){return x(e)===h},t.isFragment=function(e){return x(e)===o},t.isLazy=function(e){return x(e)===m},t.isMemo=function(e){return x(e)===g},t.isPortal=function(e){return x(e)===i},t.isProfiler=function(e){return x(e)===a},t.isStrictMode=function(e){return x(e)===s},t.isSuspense=function(e){return x(e)===p},t.isValidElementType=function(e){return"string"===typeof e||"function"===typeof e||e===o||e===d||e===a||e===s||e===p||e===f||"object"===typeof e&&null!==e&&(e.$$typeof===m||e.$$typeof===g||e.$$typeof===l||e.$$typeof===c||e.$$typeof===h||e.$$typeof===v||e.$$typeof===_||e.$$typeof===b||e.$$typeof===y)},t.typeOf=x},64072:(e,t,n)=>{"use strict";e.exports=n(17640)},28580:(e,t)=>{t.read=function(e,t,n,r,i){var o,s,a=8*i-r-1,l=(1<<a)-1,c=l>>1,u=-7,d=n?i-1:0,h=n?-1:1,p=e[t+d];for(d+=h,o=p&(1<<-u)-1,p>>=-u,u+=a;u>0;o=256*o+e[t+d],d+=h,u-=8);for(s=o&(1<<-u)-1,o>>=-u,u+=r;u>0;s=256*s+e[t+d],d+=h,u-=8);if(0===o)o=1-c;else{if(o===l)return s?NaN:1/0*(p?-1:1);s+=Math.pow(2,r),o-=c}return(p?-1:1)*s*Math.pow(2,o-r)},t.write=function(e,t,n,r,i,o){var s,a,l,c=8*o-i-1,u=(1<<c)-1,d=u>>1,h=23===i?Math.pow(2,-24)-Math.pow(2,-77):0,p=r?0:o-1,f=r?1:-1,g=t<0||0===t&&1/t<0?1:0;for(t=Math.abs(t),isNaN(t)||t===1/0?(a=isNaN(t)?1:0,s=u):(s=Math.floor(Math.log(t)/Math.LN2),t*(l=Math.pow(2,-s))<1&&(s--,l*=2),(t+=s+d>=1?h/l:h*Math.pow(2,1-d))*l>=2&&(s++,l/=2),s+d>=u?(a=0,s=u):s+d>=1?(a=(t*l-1)*Math.pow(2,i),s+=d):(a=t*Math.pow(2,d-1)*Math.pow(2,i),s=0));i>=8;e[n+p]=255&a,p+=f,a/=256,i-=8);for(s=s<<i|a,c+=i;c>0;e[n+p]=255&s,p+=f,s/=256,c-=8);e[n+p-f]|=128*g}},76187:e=>{"use strict";e.exports=function(e,t,n,r,i,o,s,a){if(!e){var l;if(void 0===t)l=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var c=[n,r,i,o,s,a],u=0;(l=new Error(t.replace(/%s/g,(function(){return c[u++]})))).name="Invariant Violation"}throw l.framesToPop=1,l}}},38512:(e,t,n)=>{"use strict";var r=n(72728)(),i=n(6396)("Object.prototype.toString"),o=function(e){return!(r&&e&&"object"===typeof e&&Symbol.toStringTag in e)&&"[object Arguments]"===i(e)},s=function(e){return!!o(e)||null!==e&&"object"===typeof e&&"number"===typeof e.length&&e.length>=0&&"[object Array]"!==i(e)&&"[object Function]"===i(e.callee)},a=function(){return o(arguments)}();o.isLegacyArguments=s,e.exports=a?o:s},75028:(e,t,n)=>{"use strict";var r=Date.prototype.getDay,i=Object.prototype.toString,o=n(72728)();e.exports=function(e){return"object"===typeof e&&null!==e&&(o?function(e){try{return r.call(e),!0}catch(t){return!1}}(e):"[object Date]"===i.call(e))}},86420:(e,t,n)=>{"use strict";var r,i,o,s,a=n(6396),l=n(72728)();if(l){r=a("Object.prototype.hasOwnProperty"),i=a("RegExp.prototype.exec"),o={};var c=function(){throw o};s={toString:c,valueOf:c},"symbol"===typeof Symbol.toPrimitive&&(s[Symbol.toPrimitive]=c)}var u=a("Object.prototype.toString"),d=Object.getOwnPropertyDescriptor;e.exports=l?function(e){if(!e||"object"!==typeof e)return!1;var t=d(e,"lastIndex");if(!(t&&r(t,"value")))return!1;try{i(e,s)}catch(n){return n===o}}:function(e){return!(!e||"object"!==typeof e&&"function"!==typeof e)&&"[object RegExp]"===u(e)}},95399:e=>{e.exports=Array.isArray||function(e){return"[object Array]"==Object.prototype.toString.call(e)}},48187:function(e,t){var n;!function(t,n){"use strict";"object"===typeof e.exports?e.exports=t.document?n(t,!0):function(e){if(!e.document)throw new Error("jQuery requires a window with a document");return n(e)}:n(t)}("undefined"!==typeof window?window:this,(function(r,i){"use strict";var o=[],s=Object.getPrototypeOf,a=o.slice,l=o.flat?function(e){return o.flat.call(e)}:function(e){return o.concat.apply([],e)},c=o.push,u=o.indexOf,d={},h=d.toString,p=d.hasOwnProperty,f=p.toString,g=f.call(Object),m={},y=function(e){return"function"===typeof e&&"number"!==typeof e.nodeType&&"function"!==typeof e.item},v=function(e){return null!=e&&e===e.window},_=r.document,b={type:!0,src:!0,nonce:!0,noModule:!0};function x(e,t,n){var r,i,o=(n=n||_).createElement("script");if(o.text=e,t)for(r in b)(i=t[r]||t.getAttribute&&t.getAttribute(r))&&o.setAttribute(r,i);n.head.appendChild(o).parentNode.removeChild(o)}function S(e){return null==e?e+"":"object"===typeof e||"function"===typeof e?d[h.call(e)]||"object":typeof e}var w="3.6.2",E=function(e,t){return new E.fn.init(e,t)};function P(e){var t=!!e&&"length"in e&&e.length,n=S(e);return!y(e)&&!v(e)&&("array"===n||0===t||"number"===typeof t&&t>0&&t-1 in e)}E.fn=E.prototype={jquery:w,constructor:E,length:0,toArray:function(){return a.call(this)},get:function(e){return null==e?a.call(this):e<0?this[e+this.length]:this[e]},pushStack:function(e){var t=E.merge(this.constructor(),e);return t.prevObject=this,t},each:function(e){return E.each(this,e)},map:function(e){return this.pushStack(E.map(this,(function(t,n){return e.call(t,n,t)})))},slice:function(){return this.pushStack(a.apply(this,arguments))},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},even:function(){return this.pushStack(E.grep(this,(function(e,t){return(t+1)%2})))},odd:function(){return this.pushStack(E.grep(this,(function(e,t){return t%2})))},eq:function(e){var t=this.length,n=+e+(e<0?t:0);return this.pushStack(n>=0&&n<t?[this[n]]:[])},end:function(){return this.prevObject||this.constructor()},push:c,sort:o.sort,splice:o.splice},E.extend=E.fn.extend=function(){var e,t,n,r,i,o,s=arguments[0]||{},a=1,l=arguments.length,c=!1;for("boolean"===typeof s&&(c=s,s=arguments[a]||{},a++),"object"===typeof s||y(s)||(s={}),a===l&&(s=this,a--);a<l;a++)if(null!=(e=arguments[a]))for(t in e)r=e[t],"__proto__"!==t&&s!==r&&(c&&r&&(E.isPlainObject(r)||(i=Array.isArray(r)))?(n=s[t],o=i&&!Array.isArray(n)?[]:i||E.isPlainObject(n)?n:{},i=!1,s[t]=E.extend(c,o,r)):void 0!==r&&(s[t]=r));return s},E.extend({expando:"jQuery"+(w+Math.random()).replace(/\D/g,""),isReady:!0,error:function(e){throw new Error(e)},noop:function(){},isPlainObject:function(e){var t,n;return!(!e||"[object Object]"!==h.call(e))&&(!(t=s(e))||"function"===typeof(n=p.call(t,"constructor")&&t.constructor)&&f.call(n)===g)},isEmptyObject:function(e){var t;for(t in e)return!1;return!0},globalEval:function(e,t,n){x(e,{nonce:t&&t.nonce},n)},each:function(e,t){var n,r=0;if(P(e))for(n=e.length;r<n&&!1!==t.call(e[r],r,e[r]);r++);else for(r in e)if(!1===t.call(e[r],r,e[r]))break;return e},makeArray:function(e,t){var n=t||[];return null!=e&&(P(Object(e))?E.merge(n,"string"===typeof e?[e]:e):c.call(n,e)),n},inArray:function(e,t,n){return null==t?-1:u.call(t,e,n)},merge:function(e,t){for(var n=+t.length,r=0,i=e.length;r<n;r++)e[i++]=t[r];return e.length=i,e},grep:function(e,t,n){for(var r=[],i=0,o=e.length,s=!n;i<o;i++)!t(e[i],i)!==s&&r.push(e[i]);return r},map:function(e,t,n){var r,i,o=0,s=[];if(P(e))for(r=e.length;o<r;o++)null!=(i=t(e[o],o,n))&&s.push(i);else for(o in e)null!=(i=t(e[o],o,n))&&s.push(i);return l(s)},guid:1,support:m}),"function"===typeof Symbol&&(E.fn[Symbol.iterator]=o[Symbol.iterator]),E.each("Boolean Number String Function Array Date RegExp Object Error Symbol".split(" "),(function(e,t){d["[object "+t+"]"]=t.toLowerCase()}));var C=function(e){var t,n,r,i,o,s,a,l,c,u,d,h,p,f,g,m,y,v,_,b="sizzle"+1*new Date,x=e.document,S=0,w=0,E=le(),P=le(),C=le(),A=le(),k=function(e,t){return e===t&&(d=!0),0},j={}.hasOwnProperty,I=[],G=I.pop,T=I.push,M=I.push,O=I.slice,R=function(e,t){for(var n=0,r=e.length;n<r;n++)if(e[n]===t)return n;return-1},D="checked|selected|async|autofocus|autoplay|controls|defer|disabled|hidden|ismap|loop|multiple|open|readonly|required|scoped",N="[\\x20\\t\\r\\n\\f]",L="(?:\\\\[\\da-fA-F]{1,6}"+N+"?|\\\\[^\\r\\n\\f]|[\\w-]|[^\0-\\x7f])+",V="\\["+N+"*("+L+")(?:"+N+"*([*^$|!~]?=)"+N+"*(?:'((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\"|("+L+"))|)"+N+"*\\]",F=":("+L+")(?:\\((('((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\")|((?:\\\\.|[^\\\\()[\\]]|"+V+")*)|.*)\\)|)",z=new RegExp(N+"+","g"),B=new RegExp("^"+N+"+|((?:^|[^\\\\])(?:\\\\.)*)"+N+"+$","g"),U=new RegExp("^"+N+"*,"+N+"*"),W=new RegExp("^"+N+"*([>+~]|"+N+")"+N+"*"),H=new RegExp(N+"|>"),q=new RegExp(F),X=new RegExp("^"+L+"$"),Y={ID:new RegExp("^#("+L+")"),CLASS:new RegExp("^\\.("+L+")"),TAG:new RegExp("^("+L+"|[*])"),ATTR:new RegExp("^"+V),PSEUDO:new RegExp("^"+F),CHILD:new RegExp("^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\("+N+"*(even|odd|(([+-]|)(\\d*)n|)"+N+"*(?:([+-]|)"+N+"*(\\d+)|))"+N+"*\\)|)","i"),bool:new RegExp("^(?:"+D+")$","i"),needsContext:new RegExp("^"+N+"*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\("+N+"*((?:-\\d)?\\d*)"+N+"*\\)|)(?=[^-]|$)","i")},K=/HTML$/i,Z=/^(?:input|select|textarea|button)$/i,$=/^h\d$/i,J=/^[^{]+\{\s*\[native \w/,Q=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,ee=/[+~]/,te=new RegExp("\\\\[\\da-fA-F]{1,6}"+N+"?|\\\\([^\\r\\n\\f])","g"),ne=function(e,t){var n="0x"+e.slice(1)-65536;return t||(n<0?String.fromCharCode(n+65536):String.fromCharCode(n>>10|55296,1023&n|56320))},re=/([\0-\x1f\x7f]|^-?\d)|^-$|[^\0-\x1f\x7f-\uFFFF\w-]/g,ie=function(e,t){return t?"\0"===e?"\ufffd":e.slice(0,-1)+"\\"+e.charCodeAt(e.length-1).toString(16)+" ":"\\"+e},oe=function(){h()},se=be((function(e){return!0===e.disabled&&"fieldset"===e.nodeName.toLowerCase()}),{dir:"parentNode",next:"legend"});try{M.apply(I=O.call(x.childNodes),x.childNodes),I[x.childNodes.length].nodeType}catch(Pe){M={apply:I.length?function(e,t){T.apply(e,O.call(t))}:function(e,t){for(var n=e.length,r=0;e[n++]=t[r++];);e.length=n-1}}}function ae(e,t,r,i){var o,a,c,u,d,f,y,v=t&&t.ownerDocument,x=t?t.nodeType:9;if(r=r||[],"string"!==typeof e||!e||1!==x&&9!==x&&11!==x)return r;if(!i&&(h(t),t=t||p,g)){if(11!==x&&(d=Q.exec(e)))if(o=d[1]){if(9===x){if(!(c=t.getElementById(o)))return r;if(c.id===o)return r.push(c),r}else if(v&&(c=v.getElementById(o))&&_(t,c)&&c.id===o)return r.push(c),r}else{if(d[2])return M.apply(r,t.getElementsByTagName(e)),r;if((o=d[3])&&n.getElementsByClassName&&t.getElementsByClassName)return M.apply(r,t.getElementsByClassName(o)),r}if(n.qsa&&!A[e+" "]&&(!m||!m.test(e))&&(1!==x||"object"!==t.nodeName.toLowerCase())){if(y=e,v=t,1===x&&(H.test(e)||W.test(e))){for((v=ee.test(e)&&ye(t.parentNode)||t)===t&&n.scope||((u=t.getAttribute("id"))?u=u.replace(re,ie):t.setAttribute("id",u=b)),a=(f=s(e)).length;a--;)f[a]=(u?"#"+u:":scope")+" "+_e(f[a]);y=f.join(",")}try{if(n.cssSupportsSelector&&!CSS.supports("selector("+y+")"))throw new Error;return M.apply(r,v.querySelectorAll(y)),r}catch(S){A(e,!0)}finally{u===b&&t.removeAttribute("id")}}}return l(e.replace(B,"$1"),t,r,i)}function le(){var e=[];return function t(n,i){return e.push(n+" ")>r.cacheLength&&delete t[e.shift()],t[n+" "]=i}}function ce(e){return e[b]=!0,e}function ue(e){var t=p.createElement("fieldset");try{return!!e(t)}catch(Pe){return!1}finally{t.parentNode&&t.parentNode.removeChild(t),t=null}}function de(e,t){for(var n=e.split("|"),i=n.length;i--;)r.attrHandle[n[i]]=t}function he(e,t){var n=t&&e,r=n&&1===e.nodeType&&1===t.nodeType&&e.sourceIndex-t.sourceIndex;if(r)return r;if(n)for(;n=n.nextSibling;)if(n===t)return-1;return e?1:-1}function pe(e){return function(t){return"input"===t.nodeName.toLowerCase()&&t.type===e}}function fe(e){return function(t){var n=t.nodeName.toLowerCase();return("input"===n||"button"===n)&&t.type===e}}function ge(e){return function(t){return"form"in t?t.parentNode&&!1===t.disabled?"label"in t?"label"in t.parentNode?t.parentNode.disabled===e:t.disabled===e:t.isDisabled===e||t.isDisabled!==!e&&se(t)===e:t.disabled===e:"label"in t&&t.disabled===e}}function me(e){return ce((function(t){return t=+t,ce((function(n,r){for(var i,o=e([],n.length,t),s=o.length;s--;)n[i=o[s]]&&(n[i]=!(r[i]=n[i]))}))}))}function ye(e){return e&&"undefined"!==typeof e.getElementsByTagName&&e}for(t in n=ae.support={},o=ae.isXML=function(e){var t=e&&e.namespaceURI,n=e&&(e.ownerDocument||e).documentElement;return!K.test(t||n&&n.nodeName||"HTML")},h=ae.setDocument=function(e){var t,i,s=e?e.ownerDocument||e:x;return s!=p&&9===s.nodeType&&s.documentElement?(f=(p=s).documentElement,g=!o(p),x!=p&&(i=p.defaultView)&&i.top!==i&&(i.addEventListener?i.addEventListener("unload",oe,!1):i.attachEvent&&i.attachEvent("onunload",oe)),n.scope=ue((function(e){return f.appendChild(e).appendChild(p.createElement("div")),"undefined"!==typeof e.querySelectorAll&&!e.querySelectorAll(":scope fieldset div").length})),n.cssSupportsSelector=ue((function(){return CSS.supports("selector(*)")&&p.querySelectorAll(":is(:jqfake)")&&!CSS.supports("selector(:is(*,:jqfake))")})),n.attributes=ue((function(e){return e.className="i",!e.getAttribute("className")})),n.getElementsByTagName=ue((function(e){return e.appendChild(p.createComment("")),!e.getElementsByTagName("*").length})),n.getElementsByClassName=J.test(p.getElementsByClassName),n.getById=ue((function(e){return f.appendChild(e).id=b,!p.getElementsByName||!p.getElementsByName(b).length})),n.getById?(r.filter.ID=function(e){var t=e.replace(te,ne);return function(e){return e.getAttribute("id")===t}},r.find.ID=function(e,t){if("undefined"!==typeof t.getElementById&&g){var n=t.getElementById(e);return n?[n]:[]}}):(r.filter.ID=function(e){var t=e.replace(te,ne);return function(e){var n="undefined"!==typeof e.getAttributeNode&&e.getAttributeNode("id");return n&&n.value===t}},r.find.ID=function(e,t){if("undefined"!==typeof t.getElementById&&g){var n,r,i,o=t.getElementById(e);if(o){if((n=o.getAttributeNode("id"))&&n.value===e)return[o];for(i=t.getElementsByName(e),r=0;o=i[r++];)if((n=o.getAttributeNode("id"))&&n.value===e)return[o]}return[]}}),r.find.TAG=n.getElementsByTagName?function(e,t){return"undefined"!==typeof t.getElementsByTagName?t.getElementsByTagName(e):n.qsa?t.querySelectorAll(e):void 0}:function(e,t){var n,r=[],i=0,o=t.getElementsByTagName(e);if("*"===e){for(;n=o[i++];)1===n.nodeType&&r.push(n);return r}return o},r.find.CLASS=n.getElementsByClassName&&function(e,t){if("undefined"!==typeof t.getElementsByClassName&&g)return t.getElementsByClassName(e)},y=[],m=[],(n.qsa=J.test(p.querySelectorAll))&&(ue((function(e){var t;f.appendChild(e).innerHTML="<a id='"+b+"'></a><select id='"+b+"-\r\\' msallowcapture=''><option selected=''></option></select>",e.querySelectorAll("[msallowcapture^='']").length&&m.push("[*^$]="+N+"*(?:''|\"\")"),e.querySelectorAll("[selected]").length||m.push("\\["+N+"*(?:value|"+D+")"),e.querySelectorAll("[id~="+b+"-]").length||m.push("~="),(t=p.createElement("input")).setAttribute("name",""),e.appendChild(t),e.querySelectorAll("[name='']").length||m.push("\\["+N+"*name"+N+"*="+N+"*(?:''|\"\")"),e.querySelectorAll(":checked").length||m.push(":checked"),e.querySelectorAll("a#"+b+"+*").length||m.push(".#.+[+~]"),e.querySelectorAll("\\\f"),m.push("[\\r\\n\\f]")})),ue((function(e){e.innerHTML="<a href='' disabled='disabled'></a><select disabled='disabled'><option/></select>";var t=p.createElement("input");t.setAttribute("type","hidden"),e.appendChild(t).setAttribute("name","D"),e.querySelectorAll("[name=d]").length&&m.push("name"+N+"*[*^$|!~]?="),2!==e.querySelectorAll(":enabled").length&&m.push(":enabled",":disabled"),f.appendChild(e).disabled=!0,2!==e.querySelectorAll(":disabled").length&&m.push(":enabled",":disabled"),e.querySelectorAll("*,:x"),m.push(",.*:")}))),(n.matchesSelector=J.test(v=f.matches||f.webkitMatchesSelector||f.mozMatchesSelector||f.oMatchesSelector||f.msMatchesSelector))&&ue((function(e){n.disconnectedMatch=v.call(e,"*"),v.call(e,"[s!='']:x"),y.push("!=",F)})),n.cssSupportsSelector||m.push(":has"),m=m.length&&new RegExp(m.join("|")),y=y.length&&new RegExp(y.join("|")),t=J.test(f.compareDocumentPosition),_=t||J.test(f.contains)?function(e,t){var n=9===e.nodeType&&e.documentElement||e,r=t&&t.parentNode;return e===r||!(!r||1!==r.nodeType||!(n.contains?n.contains(r):e.compareDocumentPosition&&16&e.compareDocumentPosition(r)))}:function(e,t){if(t)for(;t=t.parentNode;)if(t===e)return!0;return!1},k=t?function(e,t){if(e===t)return d=!0,0;var r=!e.compareDocumentPosition-!t.compareDocumentPosition;return r||(1&(r=(e.ownerDocument||e)==(t.ownerDocument||t)?e.compareDocumentPosition(t):1)||!n.sortDetached&&t.compareDocumentPosition(e)===r?e==p||e.ownerDocument==x&&_(x,e)?-1:t==p||t.ownerDocument==x&&_(x,t)?1:u?R(u,e)-R(u,t):0:4&r?-1:1)}:function(e,t){if(e===t)return d=!0,0;var n,r=0,i=e.parentNode,o=t.parentNode,s=[e],a=[t];if(!i||!o)return e==p?-1:t==p?1:i?-1:o?1:u?R(u,e)-R(u,t):0;if(i===o)return he(e,t);for(n=e;n=n.parentNode;)s.unshift(n);for(n=t;n=n.parentNode;)a.unshift(n);for(;s[r]===a[r];)r++;return r?he(s[r],a[r]):s[r]==x?-1:a[r]==x?1:0},p):p},ae.matches=function(e,t){return ae(e,null,null,t)},ae.matchesSelector=function(e,t){if(h(e),n.matchesSelector&&g&&!A[t+" "]&&(!y||!y.test(t))&&(!m||!m.test(t)))try{var r=v.call(e,t);if(r||n.disconnectedMatch||e.document&&11!==e.document.nodeType)return r}catch(Pe){A(t,!0)}return ae(t,p,null,[e]).length>0},ae.contains=function(e,t){return(e.ownerDocument||e)!=p&&h(e),_(e,t)},ae.attr=function(e,t){(e.ownerDocument||e)!=p&&h(e);var i=r.attrHandle[t.toLowerCase()],o=i&&j.call(r.attrHandle,t.toLowerCase())?i(e,t,!g):void 0;return void 0!==o?o:n.attributes||!g?e.getAttribute(t):(o=e.getAttributeNode(t))&&o.specified?o.value:null},ae.escape=function(e){return(e+"").replace(re,ie)},ae.error=function(e){throw new Error("Syntax error, unrecognized expression: "+e)},ae.uniqueSort=function(e){var t,r=[],i=0,o=0;if(d=!n.detectDuplicates,u=!n.sortStable&&e.slice(0),e.sort(k),d){for(;t=e[o++];)t===e[o]&&(i=r.push(o));for(;i--;)e.splice(r[i],1)}return u=null,e},i=ae.getText=function(e){var t,n="",r=0,o=e.nodeType;if(o){if(1===o||9===o||11===o){if("string"===typeof e.textContent)return e.textContent;for(e=e.firstChild;e;e=e.nextSibling)n+=i(e)}else if(3===o||4===o)return e.nodeValue}else for(;t=e[r++];)n+=i(t);return n},r=ae.selectors={cacheLength:50,createPseudo:ce,match:Y,attrHandle:{},find:{},relative:{">":{dir:"parentNode",first:!0}," ":{dir:"parentNode"},"+":{dir:"previousSibling",first:!0},"~":{dir:"previousSibling"}},preFilter:{ATTR:function(e){return e[1]=e[1].replace(te,ne),e[3]=(e[3]||e[4]||e[5]||"").replace(te,ne),"~="===e[2]&&(e[3]=" "+e[3]+" "),e.slice(0,4)},CHILD:function(e){return e[1]=e[1].toLowerCase(),"nth"===e[1].slice(0,3)?(e[3]||ae.error(e[0]),e[4]=+(e[4]?e[5]+(e[6]||1):2*("even"===e[3]||"odd"===e[3])),e[5]=+(e[7]+e[8]||"odd"===e[3])):e[3]&&ae.error(e[0]),e},PSEUDO:function(e){var t,n=!e[6]&&e[2];return Y.CHILD.test(e[0])?null:(e[3]?e[2]=e[4]||e[5]||"":n&&q.test(n)&&(t=s(n,!0))&&(t=n.indexOf(")",n.length-t)-n.length)&&(e[0]=e[0].slice(0,t),e[2]=n.slice(0,t)),e.slice(0,3))}},filter:{TAG:function(e){var t=e.replace(te,ne).toLowerCase();return"*"===e?function(){return!0}:function(e){return e.nodeName&&e.nodeName.toLowerCase()===t}},CLASS:function(e){var t=E[e+" "];return t||(t=new RegExp("(^|"+N+")"+e+"("+N+"|$)"))&&E(e,(function(e){return t.test("string"===typeof e.className&&e.className||"undefined"!==typeof e.getAttribute&&e.getAttribute("class")||"")}))},ATTR:function(e,t,n){return function(r){var i=ae.attr(r,e);return null==i?"!="===t:!t||(i+="","="===t?i===n:"!="===t?i!==n:"^="===t?n&&0===i.indexOf(n):"*="===t?n&&i.indexOf(n)>-1:"$="===t?n&&i.slice(-n.length)===n:"~="===t?(" "+i.replace(z," ")+" ").indexOf(n)>-1:"|="===t&&(i===n||i.slice(0,n.length+1)===n+"-"))}},CHILD:function(e,t,n,r,i){var o="nth"!==e.slice(0,3),s="last"!==e.slice(-4),a="of-type"===t;return 1===r&&0===i?function(e){return!!e.parentNode}:function(t,n,l){var c,u,d,h,p,f,g=o!==s?"nextSibling":"previousSibling",m=t.parentNode,y=a&&t.nodeName.toLowerCase(),v=!l&&!a,_=!1;if(m){if(o){for(;g;){for(h=t;h=h[g];)if(a?h.nodeName.toLowerCase()===y:1===h.nodeType)return!1;f=g="only"===e&&!f&&"nextSibling"}return!0}if(f=[s?m.firstChild:m.lastChild],s&&v){for(_=(p=(c=(u=(d=(h=m)[b]||(h[b]={}))[h.uniqueID]||(d[h.uniqueID]={}))[e]||[])[0]===S&&c[1])&&c[2],h=p&&m.childNodes[p];h=++p&&h&&h[g]||(_=p=0)||f.pop();)if(1===h.nodeType&&++_&&h===t){u[e]=[S,p,_];break}}else if(v&&(_=p=(c=(u=(d=(h=t)[b]||(h[b]={}))[h.uniqueID]||(d[h.uniqueID]={}))[e]||[])[0]===S&&c[1]),!1===_)for(;(h=++p&&h&&h[g]||(_=p=0)||f.pop())&&((a?h.nodeName.toLowerCase()!==y:1!==h.nodeType)||!++_||(v&&((u=(d=h[b]||(h[b]={}))[h.uniqueID]||(d[h.uniqueID]={}))[e]=[S,_]),h!==t)););return(_-=i)===r||_%r===0&&_/r>=0}}},PSEUDO:function(e,t){var n,i=r.pseudos[e]||r.setFilters[e.toLowerCase()]||ae.error("unsupported pseudo: "+e);return i[b]?i(t):i.length>1?(n=[e,e,"",t],r.setFilters.hasOwnProperty(e.toLowerCase())?ce((function(e,n){for(var r,o=i(e,t),s=o.length;s--;)e[r=R(e,o[s])]=!(n[r]=o[s])})):function(e){return i(e,0,n)}):i}},pseudos:{not:ce((function(e){var t=[],n=[],r=a(e.replace(B,"$1"));return r[b]?ce((function(e,t,n,i){for(var o,s=r(e,null,i,[]),a=e.length;a--;)(o=s[a])&&(e[a]=!(t[a]=o))})):function(e,i,o){return t[0]=e,r(t,null,o,n),t[0]=null,!n.pop()}})),has:ce((function(e){return function(t){return ae(e,t).length>0}})),contains:ce((function(e){return e=e.replace(te,ne),function(t){return(t.textContent||i(t)).indexOf(e)>-1}})),lang:ce((function(e){return X.test(e||"")||ae.error("unsupported lang: "+e),e=e.replace(te,ne).toLowerCase(),function(t){var n;do{if(n=g?t.lang:t.getAttribute("xml:lang")||t.getAttribute("lang"))return(n=n.toLowerCase())===e||0===n.indexOf(e+"-")}while((t=t.parentNode)&&1===t.nodeType);return!1}})),target:function(t){var n=e.location&&e.location.hash;return n&&n.slice(1)===t.id},root:function(e){return e===f},focus:function(e){return e===p.activeElement&&(!p.hasFocus||p.hasFocus())&&!!(e.type||e.href||~e.tabIndex)},enabled:ge(!1),disabled:ge(!0),checked:function(e){var t=e.nodeName.toLowerCase();return"input"===t&&!!e.checked||"option"===t&&!!e.selected},selected:function(e){return e.parentNode&&e.parentNode.selectedIndex,!0===e.selected},empty:function(e){for(e=e.firstChild;e;e=e.nextSibling)if(e.nodeType<6)return!1;return!0},parent:function(e){return!r.pseudos.empty(e)},header:function(e){return $.test(e.nodeName)},input:function(e){return Z.test(e.nodeName)},button:function(e){var t=e.nodeName.toLowerCase();return"input"===t&&"button"===e.type||"button"===t},text:function(e){var t;return"input"===e.nodeName.toLowerCase()&&"text"===e.type&&(null==(t=e.getAttribute("type"))||"text"===t.toLowerCase())},first:me((function(){return[0]})),last:me((function(e,t){return[t-1]})),eq:me((function(e,t,n){return[n<0?n+t:n]})),even:me((function(e,t){for(var n=0;n<t;n+=2)e.push(n);return e})),odd:me((function(e,t){for(var n=1;n<t;n+=2)e.push(n);return e})),lt:me((function(e,t,n){for(var r=n<0?n+t:n>t?t:n;--r>=0;)e.push(r);return e})),gt:me((function(e,t,n){for(var r=n<0?n+t:n;++r<t;)e.push(r);return e}))}},r.pseudos.nth=r.pseudos.eq,{radio:!0,checkbox:!0,file:!0,password:!0,image:!0})r.pseudos[t]=pe(t);for(t in{submit:!0,reset:!0})r.pseudos[t]=fe(t);function ve(){}function _e(e){for(var t=0,n=e.length,r="";t<n;t++)r+=e[t].value;return r}function be(e,t,n){var r=t.dir,i=t.next,o=i||r,s=n&&"parentNode"===o,a=w++;return t.first?function(t,n,i){for(;t=t[r];)if(1===t.nodeType||s)return e(t,n,i);return!1}:function(t,n,l){var c,u,d,h=[S,a];if(l){for(;t=t[r];)if((1===t.nodeType||s)&&e(t,n,l))return!0}else for(;t=t[r];)if(1===t.nodeType||s)if(u=(d=t[b]||(t[b]={}))[t.uniqueID]||(d[t.uniqueID]={}),i&&i===t.nodeName.toLowerCase())t=t[r]||t;else{if((c=u[o])&&c[0]===S&&c[1]===a)return h[2]=c[2];if(u[o]=h,h[2]=e(t,n,l))return!0}return!1}}function xe(e){return e.length>1?function(t,n,r){for(var i=e.length;i--;)if(!e[i](t,n,r))return!1;return!0}:e[0]}function Se(e,t,n,r,i){for(var o,s=[],a=0,l=e.length,c=null!=t;a<l;a++)(o=e[a])&&(n&&!n(o,r,i)||(s.push(o),c&&t.push(a)));return s}function we(e,t,n,r,i,o){return r&&!r[b]&&(r=we(r)),i&&!i[b]&&(i=we(i,o)),ce((function(o,s,a,l){var c,u,d,h=[],p=[],f=s.length,g=o||function(e,t,n){for(var r=0,i=t.length;r<i;r++)ae(e,t[r],n);return n}(t||"*",a.nodeType?[a]:a,[]),m=!e||!o&&t?g:Se(g,h,e,a,l),y=n?i||(o?e:f||r)?[]:s:m;if(n&&n(m,y,a,l),r)for(c=Se(y,p),r(c,[],a,l),u=c.length;u--;)(d=c[u])&&(y[p[u]]=!(m[p[u]]=d));if(o){if(i||e){if(i){for(c=[],u=y.length;u--;)(d=y[u])&&c.push(m[u]=d);i(null,y=[],c,l)}for(u=y.length;u--;)(d=y[u])&&(c=i?R(o,d):h[u])>-1&&(o[c]=!(s[c]=d))}}else y=Se(y===s?y.splice(f,y.length):y),i?i(null,s,y,l):M.apply(s,y)}))}function Ee(e){for(var t,n,i,o=e.length,s=r.relative[e[0].type],a=s||r.relative[" "],l=s?1:0,u=be((function(e){return e===t}),a,!0),d=be((function(e){return R(t,e)>-1}),a,!0),h=[function(e,n,r){var i=!s&&(r||n!==c)||((t=n).nodeType?u(e,n,r):d(e,n,r));return t=null,i}];l<o;l++)if(n=r.relative[e[l].type])h=[be(xe(h),n)];else{if((n=r.filter[e[l].type].apply(null,e[l].matches))[b]){for(i=++l;i<o&&!r.relative[e[i].type];i++);return we(l>1&&xe(h),l>1&&_e(e.slice(0,l-1).concat({value:" "===e[l-2].type?"*":""})).replace(B,"$1"),n,l<i&&Ee(e.slice(l,i)),i<o&&Ee(e=e.slice(i)),i<o&&_e(e))}h.push(n)}return xe(h)}return ve.prototype=r.filters=r.pseudos,r.setFilters=new ve,s=ae.tokenize=function(e,t){var n,i,o,s,a,l,c,u=P[e+" "];if(u)return t?0:u.slice(0);for(a=e,l=[],c=r.preFilter;a;){for(s in n&&!(i=U.exec(a))||(i&&(a=a.slice(i[0].length)||a),l.push(o=[])),n=!1,(i=W.exec(a))&&(n=i.shift(),o.push({value:n,type:i[0].replace(B," ")}),a=a.slice(n.length)),r.filter)!(i=Y[s].exec(a))||c[s]&&!(i=c[s](i))||(n=i.shift(),o.push({value:n,type:s,matches:i}),a=a.slice(n.length));if(!n)break}return t?a.length:a?ae.error(e):P(e,l).slice(0)},a=ae.compile=function(e,t){var n,i=[],o=[],a=C[e+" "];if(!a){for(t||(t=s(e)),n=t.length;n--;)(a=Ee(t[n]))[b]?i.push(a):o.push(a);a=C(e,function(e,t){var n=t.length>0,i=e.length>0,o=function(o,s,a,l,u){var d,f,m,y=0,v="0",_=o&&[],b=[],x=c,w=o||i&&r.find.TAG("*",u),E=S+=null==x?1:Math.random()||.1,P=w.length;for(u&&(c=s==p||s||u);v!==P&&null!=(d=w[v]);v++){if(i&&d){for(f=0,s||d.ownerDocument==p||(h(d),a=!g);m=e[f++];)if(m(d,s||p,a)){l.push(d);break}u&&(S=E)}n&&((d=!m&&d)&&y--,o&&_.push(d))}if(y+=v,n&&v!==y){for(f=0;m=t[f++];)m(_,b,s,a);if(o){if(y>0)for(;v--;)_[v]||b[v]||(b[v]=G.call(l));b=Se(b)}M.apply(l,b),u&&!o&&b.length>0&&y+t.length>1&&ae.uniqueSort(l)}return u&&(S=E,c=x),_};return n?ce(o):o}(o,i)),a.selector=e}return a},l=ae.select=function(e,t,n,i){var o,l,c,u,d,h="function"===typeof e&&e,p=!i&&s(e=h.selector||e);if(n=n||[],1===p.length){if((l=p[0]=p[0].slice(0)).length>2&&"ID"===(c=l[0]).type&&9===t.nodeType&&g&&r.relative[l[1].type]){if(!(t=(r.find.ID(c.matches[0].replace(te,ne),t)||[])[0]))return n;h&&(t=t.parentNode),e=e.slice(l.shift().value.length)}for(o=Y.needsContext.test(e)?0:l.length;o--&&(c=l[o],!r.relative[u=c.type]);)if((d=r.find[u])&&(i=d(c.matches[0].replace(te,ne),ee.test(l[0].type)&&ye(t.parentNode)||t))){if(l.splice(o,1),!(e=i.length&&_e(l)))return M.apply(n,i),n;break}}return(h||a(e,p))(i,t,!g,n,!t||ee.test(e)&&ye(t.parentNode)||t),n},n.sortStable=b.split("").sort(k).join("")===b,n.detectDuplicates=!!d,h(),n.sortDetached=ue((function(e){return 1&e.compareDocumentPosition(p.createElement("fieldset"))})),ue((function(e){return e.innerHTML="<a href='#'></a>","#"===e.firstChild.getAttribute("href")}))||de("type|href|height|width",(function(e,t,n){if(!n)return e.getAttribute(t,"type"===t.toLowerCase()?1:2)})),n.attributes&&ue((function(e){return e.innerHTML="<input/>",e.firstChild.setAttribute("value",""),""===e.firstChild.getAttribute("value")}))||de("value",(function(e,t,n){if(!n&&"input"===e.nodeName.toLowerCase())return e.defaultValue})),ue((function(e){return null==e.getAttribute("disabled")}))||de(D,(function(e,t,n){var r;if(!n)return!0===e[t]?t.toLowerCase():(r=e.getAttributeNode(t))&&r.specified?r.value:null})),ae}(r);E.find=C,E.expr=C.selectors,E.expr[":"]=E.expr.pseudos,E.uniqueSort=E.unique=C.uniqueSort,E.text=C.getText,E.isXMLDoc=C.isXML,E.contains=C.contains,E.escapeSelector=C.escape;var A=function(e,t,n){for(var r=[],i=void 0!==n;(e=e[t])&&9!==e.nodeType;)if(1===e.nodeType){if(i&&E(e).is(n))break;r.push(e)}return r},k=function(e,t){for(var n=[];e;e=e.nextSibling)1===e.nodeType&&e!==t&&n.push(e);return n},j=E.expr.match.needsContext;function I(e,t){return e.nodeName&&e.nodeName.toLowerCase()===t.toLowerCase()}var G=/^<([a-z][^\/\0>:\x20\t\r\n\f]*)[\x20\t\r\n\f]*\/?>(?:<\/\1>|)$/i;function T(e,t,n){return y(t)?E.grep(e,(function(e,r){return!!t.call(e,r,e)!==n})):t.nodeType?E.grep(e,(function(e){return e===t!==n})):"string"!==typeof t?E.grep(e,(function(e){return u.call(t,e)>-1!==n})):E.filter(t,e,n)}E.filter=function(e,t,n){var r=t[0];return n&&(e=":not("+e+")"),1===t.length&&1===r.nodeType?E.find.matchesSelector(r,e)?[r]:[]:E.find.matches(e,E.grep(t,(function(e){return 1===e.nodeType})))},E.fn.extend({find:function(e){var t,n,r=this.length,i=this;if("string"!==typeof e)return this.pushStack(E(e).filter((function(){for(t=0;t<r;t++)if(E.contains(i[t],this))return!0})));for(n=this.pushStack([]),t=0;t<r;t++)E.find(e,i[t],n);return r>1?E.uniqueSort(n):n},filter:function(e){return this.pushStack(T(this,e||[],!1))},not:function(e){return this.pushStack(T(this,e||[],!0))},is:function(e){return!!T(this,"string"===typeof e&&j.test(e)?E(e):e||[],!1).length}});var M,O=/^(?:\s*(<[\w\W]+>)[^>]*|#([\w-]+))$/;(E.fn.init=function(e,t,n){var r,i;if(!e)return this;if(n=n||M,"string"===typeof e){if(!(r="<"===e[0]&&">"===e[e.length-1]&&e.length>=3?[null,e,null]:O.exec(e))||!r[1]&&t)return!t||t.jquery?(t||n).find(e):this.constructor(t).find(e);if(r[1]){if(t=t instanceof E?t[0]:t,E.merge(this,E.parseHTML(r[1],t&&t.nodeType?t.ownerDocument||t:_,!0)),G.test(r[1])&&E.isPlainObject(t))for(r in t)y(this[r])?this[r](t[r]):this.attr(r,t[r]);return this}return(i=_.getElementById(r[2]))&&(this[0]=i,this.length=1),this}return e.nodeType?(this[0]=e,this.length=1,this):y(e)?void 0!==n.ready?n.ready(e):e(E):E.makeArray(e,this)}).prototype=E.fn,M=E(_);var R=/^(?:parents|prev(?:Until|All))/,D={children:!0,contents:!0,next:!0,prev:!0};function N(e,t){for(;(e=e[t])&&1!==e.nodeType;);return e}E.fn.extend({has:function(e){var t=E(e,this),n=t.length;return this.filter((function(){for(var e=0;e<n;e++)if(E.contains(this,t[e]))return!0}))},closest:function(e,t){var n,r=0,i=this.length,o=[],s="string"!==typeof e&&E(e);if(!j.test(e))for(;r<i;r++)for(n=this[r];n&&n!==t;n=n.parentNode)if(n.nodeType<11&&(s?s.index(n)>-1:1===n.nodeType&&E.find.matchesSelector(n,e))){o.push(n);break}return this.pushStack(o.length>1?E.uniqueSort(o):o)},index:function(e){return e?"string"===typeof e?u.call(E(e),this[0]):u.call(this,e.jquery?e[0]:e):this[0]&&this[0].parentNode?this.first().prevAll().length:-1},add:function(e,t){return this.pushStack(E.uniqueSort(E.merge(this.get(),E(e,t))))},addBack:function(e){return this.add(null==e?this.prevObject:this.prevObject.filter(e))}}),E.each({parent:function(e){var t=e.parentNode;return t&&11!==t.nodeType?t:null},parents:function(e){return A(e,"parentNode")},parentsUntil:function(e,t,n){return A(e,"parentNode",n)},next:function(e){return N(e,"nextSibling")},prev:function(e){return N(e,"previousSibling")},nextAll:function(e){return A(e,"nextSibling")},prevAll:function(e){return A(e,"previousSibling")},nextUntil:function(e,t,n){return A(e,"nextSibling",n)},prevUntil:function(e,t,n){return A(e,"previousSibling",n)},siblings:function(e){return k((e.parentNode||{}).firstChild,e)},children:function(e){return k(e.firstChild)},contents:function(e){return null!=e.contentDocument&&s(e.contentDocument)?e.contentDocument:(I(e,"template")&&(e=e.content||e),E.merge([],e.childNodes))}},(function(e,t){E.fn[e]=function(n,r){var i=E.map(this,t,n);return"Until"!==e.slice(-5)&&(r=n),r&&"string"===typeof r&&(i=E.filter(r,i)),this.length>1&&(D[e]||E.uniqueSort(i),R.test(e)&&i.reverse()),this.pushStack(i)}}));var L=/[^\x20\t\r\n\f]+/g;function V(e){return e}function F(e){throw e}function z(e,t,n,r){var i;try{e&&y(i=e.promise)?i.call(e).done(t).fail(n):e&&y(i=e.then)?i.call(e,t,n):t.apply(void 0,[e].slice(r))}catch(e){n.apply(void 0,[e])}}E.Callbacks=function(e){e="string"===typeof e?function(e){var t={};return E.each(e.match(L)||[],(function(e,n){t[n]=!0})),t}(e):E.extend({},e);var t,n,r,i,o=[],s=[],a=-1,l=function(){for(i=i||e.once,r=t=!0;s.length;a=-1)for(n=s.shift();++a<o.length;)!1===o[a].apply(n[0],n[1])&&e.stopOnFalse&&(a=o.length,n=!1);e.memory||(n=!1),t=!1,i&&(o=n?[]:"")},c={add:function(){return o&&(n&&!t&&(a=o.length-1,s.push(n)),function t(n){E.each(n,(function(n,r){y(r)?e.unique&&c.has(r)||o.push(r):r&&r.length&&"string"!==S(r)&&t(r)}))}(arguments),n&&!t&&l()),this},remove:function(){return E.each(arguments,(function(e,t){for(var n;(n=E.inArray(t,o,n))>-1;)o.splice(n,1),n<=a&&a--})),this},has:function(e){return e?E.inArray(e,o)>-1:o.length>0},empty:function(){return o&&(o=[]),this},disable:function(){return i=s=[],o=n="",this},disabled:function(){return!o},lock:function(){return i=s=[],n||t||(o=n=""),this},locked:function(){return!!i},fireWith:function(e,n){return i||(n=[e,(n=n||[]).slice?n.slice():n],s.push(n),t||l()),this},fire:function(){return c.fireWith(this,arguments),this},fired:function(){return!!r}};return c},E.extend({Deferred:function(e){var t=[["notify","progress",E.Callbacks("memory"),E.Callbacks("memory"),2],["resolve","done",E.Callbacks("once memory"),E.Callbacks("once memory"),0,"resolved"],["reject","fail",E.Callbacks("once memory"),E.Callbacks("once memory"),1,"rejected"]],n="pending",i={state:function(){return n},always:function(){return o.done(arguments).fail(arguments),this},catch:function(e){return i.then(null,e)},pipe:function(){var e=arguments;return E.Deferred((function(n){E.each(t,(function(t,r){var i=y(e[r[4]])&&e[r[4]];o[r[1]]((function(){var e=i&&i.apply(this,arguments);e&&y(e.promise)?e.promise().progress(n.notify).done(n.resolve).fail(n.reject):n[r[0]+"With"](this,i?[e]:arguments)}))})),e=null})).promise()},then:function(e,n,i){var o=0;function s(e,t,n,i){return function(){var a=this,l=arguments,c=function(){var r,c;if(!(e<o)){if((r=n.apply(a,l))===t.promise())throw new TypeError("Thenable self-resolution");c=r&&("object"===typeof r||"function"===typeof r)&&r.then,y(c)?i?c.call(r,s(o,t,V,i),s(o,t,F,i)):(o++,c.call(r,s(o,t,V,i),s(o,t,F,i),s(o,t,V,t.notifyWith))):(n!==V&&(a=void 0,l=[r]),(i||t.resolveWith)(a,l))}},u=i?c:function(){try{c()}catch(r){E.Deferred.exceptionHook&&E.Deferred.exceptionHook(r,u.stackTrace),e+1>=o&&(n!==F&&(a=void 0,l=[r]),t.rejectWith(a,l))}};e?u():(E.Deferred.getStackHook&&(u.stackTrace=E.Deferred.getStackHook()),r.setTimeout(u))}}return E.Deferred((function(r){t[0][3].add(s(0,r,y(i)?i:V,r.notifyWith)),t[1][3].add(s(0,r,y(e)?e:V)),t[2][3].add(s(0,r,y(n)?n:F))})).promise()},promise:function(e){return null!=e?E.extend(e,i):i}},o={};return E.each(t,(function(e,r){var s=r[2],a=r[5];i[r[1]]=s.add,a&&s.add((function(){n=a}),t[3-e][2].disable,t[3-e][3].disable,t[0][2].lock,t[0][3].lock),s.add(r[3].fire),o[r[0]]=function(){return o[r[0]+"With"](this===o?void 0:this,arguments),this},o[r[0]+"With"]=s.fireWith})),i.promise(o),e&&e.call(o,o),o},when:function(e){var t=arguments.length,n=t,r=Array(n),i=a.call(arguments),o=E.Deferred(),s=function(e){return function(n){r[e]=this,i[e]=arguments.length>1?a.call(arguments):n,--t||o.resolveWith(r,i)}};if(t<=1&&(z(e,o.done(s(n)).resolve,o.reject,!t),"pending"===o.state()||y(i[n]&&i[n].then)))return o.then();for(;n--;)z(i[n],s(n),o.reject);return o.promise()}});var B=/^(Eval|Internal|Range|Reference|Syntax|Type|URI)Error$/;E.Deferred.exceptionHook=function(e,t){r.console&&r.console.warn&&e&&B.test(e.name)&&r.console.warn("jQuery.Deferred exception: "+e.message,e.stack,t)},E.readyException=function(e){r.setTimeout((function(){throw e}))};var U=E.Deferred();function W(){_.removeEventListener("DOMContentLoaded",W),r.removeEventListener("load",W),E.ready()}E.fn.ready=function(e){return U.then(e).catch((function(e){E.readyException(e)})),this},E.extend({isReady:!1,readyWait:1,ready:function(e){(!0===e?--E.readyWait:E.isReady)||(E.isReady=!0,!0!==e&&--E.readyWait>0||U.resolveWith(_,[E]))}}),E.ready.then=U.then,"complete"===_.readyState||"loading"!==_.readyState&&!_.documentElement.doScroll?r.setTimeout(E.ready):(_.addEventListener("DOMContentLoaded",W),r.addEventListener("load",W));var H=function(e,t,n,r,i,o,s){var a=0,l=e.length,c=null==n;if("object"===S(n))for(a in i=!0,n)H(e,t,a,n[a],!0,o,s);else if(void 0!==r&&(i=!0,y(r)||(s=!0),c&&(s?(t.call(e,r),t=null):(c=t,t=function(e,t,n){return c.call(E(e),n)})),t))for(;a<l;a++)t(e[a],n,s?r:r.call(e[a],a,t(e[a],n)));return i?e:c?t.call(e):l?t(e[0],n):o},q=/^-ms-/,X=/-([a-z])/g;function Y(e,t){return t.toUpperCase()}function K(e){return e.replace(q,"ms-").replace(X,Y)}var Z=function(e){return 1===e.nodeType||9===e.nodeType||!+e.nodeType};function $(){this.expando=E.expando+$.uid++}$.uid=1,$.prototype={cache:function(e){var t=e[this.expando];return t||(t={},Z(e)&&(e.nodeType?e[this.expando]=t:Object.defineProperty(e,this.expando,{value:t,configurable:!0}))),t},set:function(e,t,n){var r,i=this.cache(e);if("string"===typeof t)i[K(t)]=n;else for(r in t)i[K(r)]=t[r];return i},get:function(e,t){return void 0===t?this.cache(e):e[this.expando]&&e[this.expando][K(t)]},access:function(e,t,n){return void 0===t||t&&"string"===typeof t&&void 0===n?this.get(e,t):(this.set(e,t,n),void 0!==n?n:t)},remove:function(e,t){var n,r=e[this.expando];if(void 0!==r){if(void 0!==t){n=(t=Array.isArray(t)?t.map(K):(t=K(t))in r?[t]:t.match(L)||[]).length;for(;n--;)delete r[t[n]]}(void 0===t||E.isEmptyObject(r))&&(e.nodeType?e[this.expando]=void 0:delete e[this.expando])}},hasData:function(e){var t=e[this.expando];return void 0!==t&&!E.isEmptyObject(t)}};var J=new $,Q=new $,ee=/^(?:\{[\w\W]*\}|\[[\w\W]*\])$/,te=/[A-Z]/g;function ne(e,t,n){var r;if(void 0===n&&1===e.nodeType)if(r="data-"+t.replace(te,"-$&").toLowerCase(),"string"===typeof(n=e.getAttribute(r))){try{n=function(e){return"true"===e||"false"!==e&&("null"===e?null:e===+e+""?+e:ee.test(e)?JSON.parse(e):e)}(n)}catch(i){}Q.set(e,t,n)}else n=void 0;return n}E.extend({hasData:function(e){return Q.hasData(e)||J.hasData(e)},data:function(e,t,n){return Q.access(e,t,n)},removeData:function(e,t){Q.remove(e,t)},_data:function(e,t,n){return J.access(e,t,n)},_removeData:function(e,t){J.remove(e,t)}}),E.fn.extend({data:function(e,t){var n,r,i,o=this[0],s=o&&o.attributes;if(void 0===e){if(this.length&&(i=Q.get(o),1===o.nodeType&&!J.get(o,"hasDataAttrs"))){for(n=s.length;n--;)s[n]&&0===(r=s[n].name).indexOf("data-")&&(r=K(r.slice(5)),ne(o,r,i[r]));J.set(o,"hasDataAttrs",!0)}return i}return"object"===typeof e?this.each((function(){Q.set(this,e)})):H(this,(function(t){var n;if(o&&void 0===t)return void 0!==(n=Q.get(o,e))||void 0!==(n=ne(o,e))?n:void 0;this.each((function(){Q.set(this,e,t)}))}),null,t,arguments.length>1,null,!0)},removeData:function(e){return this.each((function(){Q.remove(this,e)}))}}),E.extend({queue:function(e,t,n){var r;if(e)return t=(t||"fx")+"queue",r=J.get(e,t),n&&(!r||Array.isArray(n)?r=J.access(e,t,E.makeArray(n)):r.push(n)),r||[]},dequeue:function(e,t){t=t||"fx";var n=E.queue(e,t),r=n.length,i=n.shift(),o=E._queueHooks(e,t);"inprogress"===i&&(i=n.shift(),r--),i&&("fx"===t&&n.unshift("inprogress"),delete o.stop,i.call(e,(function(){E.dequeue(e,t)}),o)),!r&&o&&o.empty.fire()},_queueHooks:function(e,t){var n=t+"queueHooks";return J.get(e,n)||J.access(e,n,{empty:E.Callbacks("once memory").add((function(){J.remove(e,[t+"queue",n])}))})}}),E.fn.extend({queue:function(e,t){var n=2;return"string"!==typeof e&&(t=e,e="fx",n--),arguments.length<n?E.queue(this[0],e):void 0===t?this:this.each((function(){var n=E.queue(this,e,t);E._queueHooks(this,e),"fx"===e&&"inprogress"!==n[0]&&E.dequeue(this,e)}))},dequeue:function(e){return this.each((function(){E.dequeue(this,e)}))},clearQueue:function(e){return this.queue(e||"fx",[])},promise:function(e,t){var n,r=1,i=E.Deferred(),o=this,s=this.length,a=function(){--r||i.resolveWith(o,[o])};for("string"!==typeof e&&(t=e,e=void 0),e=e||"fx";s--;)(n=J.get(o[s],e+"queueHooks"))&&n.empty&&(r++,n.empty.add(a));return a(),i.promise(t)}});var re=/[+-]?(?:\d*\.|)\d+(?:[eE][+-]?\d+|)/.source,ie=new RegExp("^(?:([+-])=|)("+re+")([a-z%]*)$","i"),oe=["Top","Right","Bottom","Left"],se=_.documentElement,ae=function(e){return E.contains(e.ownerDocument,e)},le={composed:!0};se.getRootNode&&(ae=function(e){return E.contains(e.ownerDocument,e)||e.getRootNode(le)===e.ownerDocument});var ce=function(e,t){return"none"===(e=t||e).style.display||""===e.style.display&&ae(e)&&"none"===E.css(e,"display")};function ue(e,t,n,r){var i,o,s=20,a=r?function(){return r.cur()}:function(){return E.css(e,t,"")},l=a(),c=n&&n[3]||(E.cssNumber[t]?"":"px"),u=e.nodeType&&(E.cssNumber[t]||"px"!==c&&+l)&&ie.exec(E.css(e,t));if(u&&u[3]!==c){for(l/=2,c=c||u[3],u=+l||1;s--;)E.style(e,t,u+c),(1-o)*(1-(o=a()/l||.5))<=0&&(s=0),u/=o;u*=2,E.style(e,t,u+c),n=n||[]}return n&&(u=+u||+l||0,i=n[1]?u+(n[1]+1)*n[2]:+n[2],r&&(r.unit=c,r.start=u,r.end=i)),i}var de={};function he(e){var t,n=e.ownerDocument,r=e.nodeName,i=de[r];return i||(t=n.body.appendChild(n.createElement(r)),i=E.css(t,"display"),t.parentNode.removeChild(t),"none"===i&&(i="block"),de[r]=i,i)}function pe(e,t){for(var n,r,i=[],o=0,s=e.length;o<s;o++)(r=e[o]).style&&(n=r.style.display,t?("none"===n&&(i[o]=J.get(r,"display")||null,i[o]||(r.style.display="")),""===r.style.display&&ce(r)&&(i[o]=he(r))):"none"!==n&&(i[o]="none",J.set(r,"display",n)));for(o=0;o<s;o++)null!=i[o]&&(e[o].style.display=i[o]);return e}E.fn.extend({show:function(){return pe(this,!0)},hide:function(){return pe(this)},toggle:function(e){return"boolean"===typeof e?e?this.show():this.hide():this.each((function(){ce(this)?E(this).show():E(this).hide()}))}});var fe=/^(?:checkbox|radio)$/i,ge=/<([a-z][^\/\0>\x20\t\r\n\f]*)/i,me=/^$|^module$|\/(?:java|ecma)script/i;!function(){var e=_.createDocumentFragment().appendChild(_.createElement("div")),t=_.createElement("input");t.setAttribute("type","radio"),t.setAttribute("checked","checked"),t.setAttribute("name","t"),e.appendChild(t),m.checkClone=e.cloneNode(!0).cloneNode(!0).lastChild.checked,e.innerHTML="<textarea>x</textarea>",m.noCloneChecked=!!e.cloneNode(!0).lastChild.defaultValue,e.innerHTML="<option></option>",m.option=!!e.lastChild}();var ye={thead:[1,"<table>","</table>"],col:[2,"<table><colgroup>","</colgroup></table>"],tr:[2,"<table><tbody>","</tbody></table>"],td:[3,"<table><tbody><tr>","</tr></tbody></table>"],_default:[0,"",""]};function ve(e,t){var n;return n="undefined"!==typeof e.getElementsByTagName?e.getElementsByTagName(t||"*"):"undefined"!==typeof e.querySelectorAll?e.querySelectorAll(t||"*"):[],void 0===t||t&&I(e,t)?E.merge([e],n):n}function _e(e,t){for(var n=0,r=e.length;n<r;n++)J.set(e[n],"globalEval",!t||J.get(t[n],"globalEval"))}ye.tbody=ye.tfoot=ye.colgroup=ye.caption=ye.thead,ye.th=ye.td,m.option||(ye.optgroup=ye.option=[1,"<select multiple='multiple'>","</select>"]);var be=/<|&#?\w+;/;function xe(e,t,n,r,i){for(var o,s,a,l,c,u,d=t.createDocumentFragment(),h=[],p=0,f=e.length;p<f;p++)if((o=e[p])||0===o)if("object"===S(o))E.merge(h,o.nodeType?[o]:o);else if(be.test(o)){for(s=s||d.appendChild(t.createElement("div")),a=(ge.exec(o)||["",""])[1].toLowerCase(),l=ye[a]||ye._default,s.innerHTML=l[1]+E.htmlPrefilter(o)+l[2],u=l[0];u--;)s=s.lastChild;E.merge(h,s.childNodes),(s=d.firstChild).textContent=""}else h.push(t.createTextNode(o));for(d.textContent="",p=0;o=h[p++];)if(r&&E.inArray(o,r)>-1)i&&i.push(o);else if(c=ae(o),s=ve(d.appendChild(o),"script"),c&&_e(s),n)for(u=0;o=s[u++];)me.test(o.type||"")&&n.push(o);return d}var Se=/^([^.]*)(?:\.(.+)|)/;function we(){return!0}function Ee(){return!1}function Pe(e,t){return e===function(){try{return _.activeElement}catch(e){}}()===("focus"===t)}function Ce(e,t,n,r,i,o){var s,a;if("object"===typeof t){for(a in"string"!==typeof n&&(r=r||n,n=void 0),t)Ce(e,a,n,r,t[a],o);return e}if(null==r&&null==i?(i=n,r=n=void 0):null==i&&("string"===typeof n?(i=r,r=void 0):(i=r,r=n,n=void 0)),!1===i)i=Ee;else if(!i)return e;return 1===o&&(s=i,i=function(e){return E().off(e),s.apply(this,arguments)},i.guid=s.guid||(s.guid=E.guid++)),e.each((function(){E.event.add(this,t,i,r,n)}))}function Ae(e,t,n){n?(J.set(e,t,!1),E.event.add(e,t,{namespace:!1,handler:function(e){var r,i,o=J.get(this,t);if(1&e.isTrigger&&this[t]){if(o.length)(E.event.special[t]||{}).delegateType&&e.stopPropagation();else if(o=a.call(arguments),J.set(this,t,o),r=n(this,t),this[t](),o!==(i=J.get(this,t))||r?J.set(this,t,!1):i={},o!==i)return e.stopImmediatePropagation(),e.preventDefault(),i&&i.value}else o.length&&(J.set(this,t,{value:E.event.trigger(E.extend(o[0],E.Event.prototype),o.slice(1),this)}),e.stopImmediatePropagation())}})):void 0===J.get(e,t)&&E.event.add(e,t,we)}E.event={global:{},add:function(e,t,n,r,i){var o,s,a,l,c,u,d,h,p,f,g,m=J.get(e);if(Z(e))for(n.handler&&(n=(o=n).handler,i=o.selector),i&&E.find.matchesSelector(se,i),n.guid||(n.guid=E.guid++),(l=m.events)||(l=m.events=Object.create(null)),(s=m.handle)||(s=m.handle=function(t){return"undefined"!==typeof E&&E.event.triggered!==t.type?E.event.dispatch.apply(e,arguments):void 0}),c=(t=(t||"").match(L)||[""]).length;c--;)p=g=(a=Se.exec(t[c])||[])[1],f=(a[2]||"").split(".").sort(),p&&(d=E.event.special[p]||{},p=(i?d.delegateType:d.bindType)||p,d=E.event.special[p]||{},u=E.extend({type:p,origType:g,data:r,handler:n,guid:n.guid,selector:i,needsContext:i&&E.expr.match.needsContext.test(i),namespace:f.join(".")},o),(h=l[p])||((h=l[p]=[]).delegateCount=0,d.setup&&!1!==d.setup.call(e,r,f,s)||e.addEventListener&&e.addEventListener(p,s)),d.add&&(d.add.call(e,u),u.handler.guid||(u.handler.guid=n.guid)),i?h.splice(h.delegateCount++,0,u):h.push(u),E.event.global[p]=!0)},remove:function(e,t,n,r,i){var o,s,a,l,c,u,d,h,p,f,g,m=J.hasData(e)&&J.get(e);if(m&&(l=m.events)){for(c=(t=(t||"").match(L)||[""]).length;c--;)if(p=g=(a=Se.exec(t[c])||[])[1],f=(a[2]||"").split(".").sort(),p){for(d=E.event.special[p]||{},h=l[p=(r?d.delegateType:d.bindType)||p]||[],a=a[2]&&new RegExp("(^|\\.)"+f.join("\\.(?:.*\\.|)")+"(\\.|$)"),s=o=h.length;o--;)u=h[o],!i&&g!==u.origType||n&&n.guid!==u.guid||a&&!a.test(u.namespace)||r&&r!==u.selector&&("**"!==r||!u.selector)||(h.splice(o,1),u.selector&&h.delegateCount--,d.remove&&d.remove.call(e,u));s&&!h.length&&(d.teardown&&!1!==d.teardown.call(e,f,m.handle)||E.removeEvent(e,p,m.handle),delete l[p])}else for(p in l)E.event.remove(e,p+t[c],n,r,!0);E.isEmptyObject(l)&&J.remove(e,"handle events")}},dispatch:function(e){var t,n,r,i,o,s,a=new Array(arguments.length),l=E.event.fix(e),c=(J.get(this,"events")||Object.create(null))[l.type]||[],u=E.event.special[l.type]||{};for(a[0]=l,t=1;t<arguments.length;t++)a[t]=arguments[t];if(l.delegateTarget=this,!u.preDispatch||!1!==u.preDispatch.call(this,l)){for(s=E.event.handlers.call(this,l,c),t=0;(i=s[t++])&&!l.isPropagationStopped();)for(l.currentTarget=i.elem,n=0;(o=i.handlers[n++])&&!l.isImmediatePropagationStopped();)l.rnamespace&&!1!==o.namespace&&!l.rnamespace.test(o.namespace)||(l.handleObj=o,l.data=o.data,void 0!==(r=((E.event.special[o.origType]||{}).handle||o.handler).apply(i.elem,a))&&!1===(l.result=r)&&(l.preventDefault(),l.stopPropagation()));return u.postDispatch&&u.postDispatch.call(this,l),l.result}},handlers:function(e,t){var n,r,i,o,s,a=[],l=t.delegateCount,c=e.target;if(l&&c.nodeType&&!("click"===e.type&&e.button>=1))for(;c!==this;c=c.parentNode||this)if(1===c.nodeType&&("click"!==e.type||!0!==c.disabled)){for(o=[],s={},n=0;n<l;n++)void 0===s[i=(r=t[n]).selector+" "]&&(s[i]=r.needsContext?E(i,this).index(c)>-1:E.find(i,this,null,[c]).length),s[i]&&o.push(r);o.length&&a.push({elem:c,handlers:o})}return c=this,l<t.length&&a.push({elem:c,handlers:t.slice(l)}),a},addProp:function(e,t){Object.defineProperty(E.Event.prototype,e,{enumerable:!0,configurable:!0,get:y(t)?function(){if(this.originalEvent)return t(this.originalEvent)}:function(){if(this.originalEvent)return this.originalEvent[e]},set:function(t){Object.defineProperty(this,e,{enumerable:!0,configurable:!0,writable:!0,value:t})}})},fix:function(e){return e[E.expando]?e:new E.Event(e)},special:{load:{noBubble:!0},click:{setup:function(e){var t=this||e;return fe.test(t.type)&&t.click&&I(t,"input")&&Ae(t,"click",we),!1},trigger:function(e){var t=this||e;return fe.test(t.type)&&t.click&&I(t,"input")&&Ae(t,"click"),!0},_default:function(e){var t=e.target;return fe.test(t.type)&&t.click&&I(t,"input")&&J.get(t,"click")||I(t,"a")}},beforeunload:{postDispatch:function(e){void 0!==e.result&&e.originalEvent&&(e.originalEvent.returnValue=e.result)}}}},E.removeEvent=function(e,t,n){e.removeEventListener&&e.removeEventListener(t,n)},E.Event=function(e,t){if(!(this instanceof E.Event))return new E.Event(e,t);e&&e.type?(this.originalEvent=e,this.type=e.type,this.isDefaultPrevented=e.defaultPrevented||void 0===e.defaultPrevented&&!1===e.returnValue?we:Ee,this.target=e.target&&3===e.target.nodeType?e.target.parentNode:e.target,this.currentTarget=e.currentTarget,this.relatedTarget=e.relatedTarget):this.type=e,t&&E.extend(this,t),this.timeStamp=e&&e.timeStamp||Date.now(),this[E.expando]=!0},E.Event.prototype={constructor:E.Event,isDefaultPrevented:Ee,isPropagationStopped:Ee,isImmediatePropagationStopped:Ee,isSimulated:!1,preventDefault:function(){var e=this.originalEvent;this.isDefaultPrevented=we,e&&!this.isSimulated&&e.preventDefault()},stopPropagation:function(){var e=this.originalEvent;this.isPropagationStopped=we,e&&!this.isSimulated&&e.stopPropagation()},stopImmediatePropagation:function(){var e=this.originalEvent;this.isImmediatePropagationStopped=we,e&&!this.isSimulated&&e.stopImmediatePropagation(),this.stopPropagation()}},E.each({altKey:!0,bubbles:!0,cancelable:!0,changedTouches:!0,ctrlKey:!0,detail:!0,eventPhase:!0,metaKey:!0,pageX:!0,pageY:!0,shiftKey:!0,view:!0,char:!0,code:!0,charCode:!0,key:!0,keyCode:!0,button:!0,buttons:!0,clientX:!0,clientY:!0,offsetX:!0,offsetY:!0,pointerId:!0,pointerType:!0,screenX:!0,screenY:!0,targetTouches:!0,toElement:!0,touches:!0,which:!0},E.event.addProp),E.each({focus:"focusin",blur:"focusout"},(function(e,t){E.event.special[e]={setup:function(){return Ae(this,e,Pe),!1},trigger:function(){return Ae(this,e),!0},_default:function(t){return J.get(t.target,e)},delegateType:t}})),E.each({mouseenter:"mouseover",mouseleave:"mouseout",pointerenter:"pointerover",pointerleave:"pointerout"},(function(e,t){E.event.special[e]={delegateType:t,bindType:t,handle:function(e){var n,r=e.relatedTarget,i=e.handleObj;return r&&(r===this||E.contains(this,r))||(e.type=i.origType,n=i.handler.apply(this,arguments),e.type=t),n}}})),E.fn.extend({on:function(e,t,n,r){return Ce(this,e,t,n,r)},one:function(e,t,n,r){return Ce(this,e,t,n,r,1)},off:function(e,t,n){var r,i;if(e&&e.preventDefault&&e.handleObj)return r=e.handleObj,E(e.delegateTarget).off(r.namespace?r.origType+"."+r.namespace:r.origType,r.selector,r.handler),this;if("object"===typeof e){for(i in e)this.off(i,t,e[i]);return this}return!1!==t&&"function"!==typeof t||(n=t,t=void 0),!1===n&&(n=Ee),this.each((function(){E.event.remove(this,e,n,t)}))}});var ke=/<script|<style|<link/i,je=/checked\s*(?:[^=]|=\s*.checked.)/i,Ie=/^\s*<!\[CDATA\[|\]\]>\s*$/g;function Ge(e,t){return I(e,"table")&&I(11!==t.nodeType?t:t.firstChild,"tr")&&E(e).children("tbody")[0]||e}function Te(e){return e.type=(null!==e.getAttribute("type"))+"/"+e.type,e}function Me(e){return"true/"===(e.type||"").slice(0,5)?e.type=e.type.slice(5):e.removeAttribute("type"),e}function Oe(e,t){var n,r,i,o,s,a;if(1===t.nodeType){if(J.hasData(e)&&(a=J.get(e).events))for(i in J.remove(t,"handle events"),a)for(n=0,r=a[i].length;n<r;n++)E.event.add(t,i,a[i][n]);Q.hasData(e)&&(o=Q.access(e),s=E.extend({},o),Q.set(t,s))}}function Re(e,t){var n=t.nodeName.toLowerCase();"input"===n&&fe.test(e.type)?t.checked=e.checked:"input"!==n&&"textarea"!==n||(t.defaultValue=e.defaultValue)}function De(e,t,n,r){t=l(t);var i,o,s,a,c,u,d=0,h=e.length,p=h-1,f=t[0],g=y(f);if(g||h>1&&"string"===typeof f&&!m.checkClone&&je.test(f))return e.each((function(i){var o=e.eq(i);g&&(t[0]=f.call(this,i,o.html())),De(o,t,n,r)}));if(h&&(o=(i=xe(t,e[0].ownerDocument,!1,e,r)).firstChild,1===i.childNodes.length&&(i=o),o||r)){for(a=(s=E.map(ve(i,"script"),Te)).length;d<h;d++)c=i,d!==p&&(c=E.clone(c,!0,!0),a&&E.merge(s,ve(c,"script"))),n.call(e[d],c,d);if(a)for(u=s[s.length-1].ownerDocument,E.map(s,Me),d=0;d<a;d++)c=s[d],me.test(c.type||"")&&!J.access(c,"globalEval")&&E.contains(u,c)&&(c.src&&"module"!==(c.type||"").toLowerCase()?E._evalUrl&&!c.noModule&&E._evalUrl(c.src,{nonce:c.nonce||c.getAttribute("nonce")},u):x(c.textContent.replace(Ie,""),c,u))}return e}function Ne(e,t,n){for(var r,i=t?E.filter(t,e):e,o=0;null!=(r=i[o]);o++)n||1!==r.nodeType||E.cleanData(ve(r)),r.parentNode&&(n&&ae(r)&&_e(ve(r,"script")),r.parentNode.removeChild(r));return e}E.extend({htmlPrefilter:function(e){return e},clone:function(e,t,n){var r,i,o,s,a=e.cloneNode(!0),l=ae(e);if(!m.noCloneChecked&&(1===e.nodeType||11===e.nodeType)&&!E.isXMLDoc(e))for(s=ve(a),r=0,i=(o=ve(e)).length;r<i;r++)Re(o[r],s[r]);if(t)if(n)for(o=o||ve(e),s=s||ve(a),r=0,i=o.length;r<i;r++)Oe(o[r],s[r]);else Oe(e,a);return(s=ve(a,"script")).length>0&&_e(s,!l&&ve(e,"script")),a},cleanData:function(e){for(var t,n,r,i=E.event.special,o=0;void 0!==(n=e[o]);o++)if(Z(n)){if(t=n[J.expando]){if(t.events)for(r in t.events)i[r]?E.event.remove(n,r):E.removeEvent(n,r,t.handle);n[J.expando]=void 0}n[Q.expando]&&(n[Q.expando]=void 0)}}}),E.fn.extend({detach:function(e){return Ne(this,e,!0)},remove:function(e){return Ne(this,e)},text:function(e){return H(this,(function(e){return void 0===e?E.text(this):this.empty().each((function(){1!==this.nodeType&&11!==this.nodeType&&9!==this.nodeType||(this.textContent=e)}))}),null,e,arguments.length)},append:function(){return De(this,arguments,(function(e){1!==this.nodeType&&11!==this.nodeType&&9!==this.nodeType||Ge(this,e).appendChild(e)}))},prepend:function(){return De(this,arguments,(function(e){if(1===this.nodeType||11===this.nodeType||9===this.nodeType){var t=Ge(this,e);t.insertBefore(e,t.firstChild)}}))},before:function(){return De(this,arguments,(function(e){this.parentNode&&this.parentNode.insertBefore(e,this)}))},after:function(){return De(this,arguments,(function(e){this.parentNode&&this.parentNode.insertBefore(e,this.nextSibling)}))},empty:function(){for(var e,t=0;null!=(e=this[t]);t++)1===e.nodeType&&(E.cleanData(ve(e,!1)),e.textContent="");return this},clone:function(e,t){return e=null!=e&&e,t=null==t?e:t,this.map((function(){return E.clone(this,e,t)}))},html:function(e){return H(this,(function(e){var t=this[0]||{},n=0,r=this.length;if(void 0===e&&1===t.nodeType)return t.innerHTML;if("string"===typeof e&&!ke.test(e)&&!ye[(ge.exec(e)||["",""])[1].toLowerCase()]){e=E.htmlPrefilter(e);try{for(;n<r;n++)1===(t=this[n]||{}).nodeType&&(E.cleanData(ve(t,!1)),t.innerHTML=e);t=0}catch(i){}}t&&this.empty().append(e)}),null,e,arguments.length)},replaceWith:function(){var e=[];return De(this,arguments,(function(t){var n=this.parentNode;E.inArray(this,e)<0&&(E.cleanData(ve(this)),n&&n.replaceChild(t,this))}),e)}}),E.each({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},(function(e,t){E.fn[e]=function(e){for(var n,r=[],i=E(e),o=i.length-1,s=0;s<=o;s++)n=s===o?this:this.clone(!0),E(i[s])[t](n),c.apply(r,n.get());return this.pushStack(r)}}));var Le=new RegExp("^("+re+")(?!px)[a-z%]+$","i"),Ve=/^--/,Fe=function(e){var t=e.ownerDocument.defaultView;return t&&t.opener||(t=r),t.getComputedStyle(e)},ze=function(e,t,n){var r,i,o={};for(i in t)o[i]=e.style[i],e.style[i]=t[i];for(i in r=n.call(e),t)e.style[i]=o[i];return r},Be=new RegExp(oe.join("|"),"i"),Ue="[\\x20\\t\\r\\n\\f]",We=new RegExp("^"+Ue+"+|((?:^|[^\\\\])(?:\\\\.)*)"+Ue+"+$","g");function He(e,t,n){var r,i,o,s,a=Ve.test(t),l=e.style;return(n=n||Fe(e))&&(s=n.getPropertyValue(t)||n[t],a&&s&&(s=s.replace(We,"$1")||void 0),""!==s||ae(e)||(s=E.style(e,t)),!m.pixelBoxStyles()&&Le.test(s)&&Be.test(t)&&(r=l.width,i=l.minWidth,o=l.maxWidth,l.minWidth=l.maxWidth=l.width=s,s=n.width,l.width=r,l.minWidth=i,l.maxWidth=o)),void 0!==s?s+"":s}function qe(e,t){return{get:function(){if(!e())return(this.get=t).apply(this,arguments);delete this.get}}}!function(){function e(){if(u){c.style.cssText="position:absolute;left:-11111px;width:60px;margin-top:1px;padding:0;border:0",u.style.cssText="position:relative;display:block;box-sizing:border-box;overflow:scroll;margin:auto;border:1px;padding:1px;width:60%;top:1%",se.appendChild(c).appendChild(u);var e=r.getComputedStyle(u);n="1%"!==e.top,l=12===t(e.marginLeft),u.style.right="60%",s=36===t(e.right),i=36===t(e.width),u.style.position="absolute",o=12===t(u.offsetWidth/3),se.removeChild(c),u=null}}function t(e){return Math.round(parseFloat(e))}var n,i,o,s,a,l,c=_.createElement("div"),u=_.createElement("div");u.style&&(u.style.backgroundClip="content-box",u.cloneNode(!0).style.backgroundClip="",m.clearCloneStyle="content-box"===u.style.backgroundClip,E.extend(m,{boxSizingReliable:function(){return e(),i},pixelBoxStyles:function(){return e(),s},pixelPosition:function(){return e(),n},reliableMarginLeft:function(){return e(),l},scrollboxSize:function(){return e(),o},reliableTrDimensions:function(){var e,t,n,i;return null==a&&(e=_.createElement("table"),t=_.createElement("tr"),n=_.createElement("div"),e.style.cssText="position:absolute;left:-11111px;border-collapse:separate",t.style.cssText="border:1px solid",t.style.height="1px",n.style.height="9px",n.style.display="block",se.appendChild(e).appendChild(t).appendChild(n),i=r.getComputedStyle(t),a=parseInt(i.height,10)+parseInt(i.borderTopWidth,10)+parseInt(i.borderBottomWidth,10)===t.offsetHeight,se.removeChild(e)),a}}))}();var Xe=["Webkit","Moz","ms"],Ye=_.createElement("div").style,Ke={};function Ze(e){var t=E.cssProps[e]||Ke[e];return t||(e in Ye?e:Ke[e]=function(e){for(var t=e[0].toUpperCase()+e.slice(1),n=Xe.length;n--;)if((e=Xe[n]+t)in Ye)return e}(e)||e)}var $e=/^(none|table(?!-c[ea]).+)/,Je={position:"absolute",visibility:"hidden",display:"block"},Qe={letterSpacing:"0",fontWeight:"400"};function et(e,t,n){var r=ie.exec(t);return r?Math.max(0,r[2]-(n||0))+(r[3]||"px"):t}function tt(e,t,n,r,i,o){var s="width"===t?1:0,a=0,l=0;if(n===(r?"border":"content"))return 0;for(;s<4;s+=2)"margin"===n&&(l+=E.css(e,n+oe[s],!0,i)),r?("content"===n&&(l-=E.css(e,"padding"+oe[s],!0,i)),"margin"!==n&&(l-=E.css(e,"border"+oe[s]+"Width",!0,i))):(l+=E.css(e,"padding"+oe[s],!0,i),"padding"!==n?l+=E.css(e,"border"+oe[s]+"Width",!0,i):a+=E.css(e,"border"+oe[s]+"Width",!0,i));return!r&&o>=0&&(l+=Math.max(0,Math.ceil(e["offset"+t[0].toUpperCase()+t.slice(1)]-o-l-a-.5))||0),l}function nt(e,t,n){var r=Fe(e),i=(!m.boxSizingReliable()||n)&&"border-box"===E.css(e,"boxSizing",!1,r),o=i,s=He(e,t,r),a="offset"+t[0].toUpperCase()+t.slice(1);if(Le.test(s)){if(!n)return s;s="auto"}return(!m.boxSizingReliable()&&i||!m.reliableTrDimensions()&&I(e,"tr")||"auto"===s||!parseFloat(s)&&"inline"===E.css(e,"display",!1,r))&&e.getClientRects().length&&(i="border-box"===E.css(e,"boxSizing",!1,r),(o=a in e)&&(s=e[a])),(s=parseFloat(s)||0)+tt(e,t,n||(i?"border":"content"),o,r,s)+"px"}function rt(e,t,n,r,i){return new rt.prototype.init(e,t,n,r,i)}E.extend({cssHooks:{opacity:{get:function(e,t){if(t){var n=He(e,"opacity");return""===n?"1":n}}}},cssNumber:{animationIterationCount:!0,columnCount:!0,fillOpacity:!0,flexGrow:!0,flexShrink:!0,fontWeight:!0,gridArea:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnStart:!0,gridRow:!0,gridRowEnd:!0,gridRowStart:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,widows:!0,zIndex:!0,zoom:!0},cssProps:{},style:function(e,t,n,r){if(e&&3!==e.nodeType&&8!==e.nodeType&&e.style){var i,o,s,a=K(t),l=Ve.test(t),c=e.style;if(l||(t=Ze(a)),s=E.cssHooks[t]||E.cssHooks[a],void 0===n)return s&&"get"in s&&void 0!==(i=s.get(e,!1,r))?i:c[t];"string"===(o=typeof n)&&(i=ie.exec(n))&&i[1]&&(n=ue(e,t,i),o="number"),null!=n&&n===n&&("number"!==o||l||(n+=i&&i[3]||(E.cssNumber[a]?"":"px")),m.clearCloneStyle||""!==n||0!==t.indexOf("background")||(c[t]="inherit"),s&&"set"in s&&void 0===(n=s.set(e,n,r))||(l?c.setProperty(t,n):c[t]=n))}},css:function(e,t,n,r){var i,o,s,a=K(t);return Ve.test(t)||(t=Ze(a)),(s=E.cssHooks[t]||E.cssHooks[a])&&"get"in s&&(i=s.get(e,!0,n)),void 0===i&&(i=He(e,t,r)),"normal"===i&&t in Qe&&(i=Qe[t]),""===n||n?(o=parseFloat(i),!0===n||isFinite(o)?o||0:i):i}}),E.each(["height","width"],(function(e,t){E.cssHooks[t]={get:function(e,n,r){if(n)return!$e.test(E.css(e,"display"))||e.getClientRects().length&&e.getBoundingClientRect().width?nt(e,t,r):ze(e,Je,(function(){return nt(e,t,r)}))},set:function(e,n,r){var i,o=Fe(e),s=!m.scrollboxSize()&&"absolute"===o.position,a=(s||r)&&"border-box"===E.css(e,"boxSizing",!1,o),l=r?tt(e,t,r,a,o):0;return a&&s&&(l-=Math.ceil(e["offset"+t[0].toUpperCase()+t.slice(1)]-parseFloat(o[t])-tt(e,t,"border",!1,o)-.5)),l&&(i=ie.exec(n))&&"px"!==(i[3]||"px")&&(e.style[t]=n,n=E.css(e,t)),et(0,n,l)}}})),E.cssHooks.marginLeft=qe(m.reliableMarginLeft,(function(e,t){if(t)return(parseFloat(He(e,"marginLeft"))||e.getBoundingClientRect().left-ze(e,{marginLeft:0},(function(){return e.getBoundingClientRect().left})))+"px"})),E.each({margin:"",padding:"",border:"Width"},(function(e,t){E.cssHooks[e+t]={expand:function(n){for(var r=0,i={},o="string"===typeof n?n.split(" "):[n];r<4;r++)i[e+oe[r]+t]=o[r]||o[r-2]||o[0];return i}},"margin"!==e&&(E.cssHooks[e+t].set=et)})),E.fn.extend({css:function(e,t){return H(this,(function(e,t,n){var r,i,o={},s=0;if(Array.isArray(t)){for(r=Fe(e),i=t.length;s<i;s++)o[t[s]]=E.css(e,t[s],!1,r);return o}return void 0!==n?E.style(e,t,n):E.css(e,t)}),e,t,arguments.length>1)}}),E.Tween=rt,rt.prototype={constructor:rt,init:function(e,t,n,r,i,o){this.elem=e,this.prop=n,this.easing=i||E.easing._default,this.options=t,this.start=this.now=this.cur(),this.end=r,this.unit=o||(E.cssNumber[n]?"":"px")},cur:function(){var e=rt.propHooks[this.prop];return e&&e.get?e.get(this):rt.propHooks._default.get(this)},run:function(e){var t,n=rt.propHooks[this.prop];return this.options.duration?this.pos=t=E.easing[this.easing](e,this.options.duration*e,0,1,this.options.duration):this.pos=t=e,this.now=(this.end-this.start)*t+this.start,this.options.step&&this.options.step.call(this.elem,this.now,this),n&&n.set?n.set(this):rt.propHooks._default.set(this),this}},rt.prototype.init.prototype=rt.prototype,rt.propHooks={_default:{get:function(e){var t;return 1!==e.elem.nodeType||null!=e.elem[e.prop]&&null==e.elem.style[e.prop]?e.elem[e.prop]:(t=E.css(e.elem,e.prop,""))&&"auto"!==t?t:0},set:function(e){E.fx.step[e.prop]?E.fx.step[e.prop](e):1!==e.elem.nodeType||!E.cssHooks[e.prop]&&null==e.elem.style[Ze(e.prop)]?e.elem[e.prop]=e.now:E.style(e.elem,e.prop,e.now+e.unit)}}},rt.propHooks.scrollTop=rt.propHooks.scrollLeft={set:function(e){e.elem.nodeType&&e.elem.parentNode&&(e.elem[e.prop]=e.now)}},E.easing={linear:function(e){return e},swing:function(e){return.5-Math.cos(e*Math.PI)/2},_default:"swing"},E.fx=rt.prototype.init,E.fx.step={};var it,ot,st=/^(?:toggle|show|hide)$/,at=/queueHooks$/;function lt(){ot&&(!1===_.hidden&&r.requestAnimationFrame?r.requestAnimationFrame(lt):r.setTimeout(lt,E.fx.interval),E.fx.tick())}function ct(){return r.setTimeout((function(){it=void 0})),it=Date.now()}function ut(e,t){var n,r=0,i={height:e};for(t=t?1:0;r<4;r+=2-t)i["margin"+(n=oe[r])]=i["padding"+n]=e;return t&&(i.opacity=i.width=e),i}function dt(e,t,n){for(var r,i=(ht.tweeners[t]||[]).concat(ht.tweeners["*"]),o=0,s=i.length;o<s;o++)if(r=i[o].call(n,t,e))return r}function ht(e,t,n){var r,i,o=0,s=ht.prefilters.length,a=E.Deferred().always((function(){delete l.elem})),l=function(){if(i)return!1;for(var t=it||ct(),n=Math.max(0,c.startTime+c.duration-t),r=1-(n/c.duration||0),o=0,s=c.tweens.length;o<s;o++)c.tweens[o].run(r);return a.notifyWith(e,[c,r,n]),r<1&&s?n:(s||a.notifyWith(e,[c,1,0]),a.resolveWith(e,[c]),!1)},c=a.promise({elem:e,props:E.extend({},t),opts:E.extend(!0,{specialEasing:{},easing:E.easing._default},n),originalProperties:t,originalOptions:n,startTime:it||ct(),duration:n.duration,tweens:[],createTween:function(t,n){var r=E.Tween(e,c.opts,t,n,c.opts.specialEasing[t]||c.opts.easing);return c.tweens.push(r),r},stop:function(t){var n=0,r=t?c.tweens.length:0;if(i)return this;for(i=!0;n<r;n++)c.tweens[n].run(1);return t?(a.notifyWith(e,[c,1,0]),a.resolveWith(e,[c,t])):a.rejectWith(e,[c,t]),this}}),u=c.props;for(!function(e,t){var n,r,i,o,s;for(n in e)if(i=t[r=K(n)],o=e[n],Array.isArray(o)&&(i=o[1],o=e[n]=o[0]),n!==r&&(e[r]=o,delete e[n]),(s=E.cssHooks[r])&&"expand"in s)for(n in o=s.expand(o),delete e[r],o)n in e||(e[n]=o[n],t[n]=i);else t[r]=i}(u,c.opts.specialEasing);o<s;o++)if(r=ht.prefilters[o].call(c,e,u,c.opts))return y(r.stop)&&(E._queueHooks(c.elem,c.opts.queue).stop=r.stop.bind(r)),r;return E.map(u,dt,c),y(c.opts.start)&&c.opts.start.call(e,c),c.progress(c.opts.progress).done(c.opts.done,c.opts.complete).fail(c.opts.fail).always(c.opts.always),E.fx.timer(E.extend(l,{elem:e,anim:c,queue:c.opts.queue})),c}E.Animation=E.extend(ht,{tweeners:{"*":[function(e,t){var n=this.createTween(e,t);return ue(n.elem,e,ie.exec(t),n),n}]},tweener:function(e,t){y(e)?(t=e,e=["*"]):e=e.match(L);for(var n,r=0,i=e.length;r<i;r++)n=e[r],ht.tweeners[n]=ht.tweeners[n]||[],ht.tweeners[n].unshift(t)},prefilters:[function(e,t,n){var r,i,o,s,a,l,c,u,d="width"in t||"height"in t,h=this,p={},f=e.style,g=e.nodeType&&ce(e),m=J.get(e,"fxshow");for(r in n.queue||(null==(s=E._queueHooks(e,"fx")).unqueued&&(s.unqueued=0,a=s.empty.fire,s.empty.fire=function(){s.unqueued||a()}),s.unqueued++,h.always((function(){h.always((function(){s.unqueued--,E.queue(e,"fx").length||s.empty.fire()}))}))),t)if(i=t[r],st.test(i)){if(delete t[r],o=o||"toggle"===i,i===(g?"hide":"show")){if("show"!==i||!m||void 0===m[r])continue;g=!0}p[r]=m&&m[r]||E.style(e,r)}if((l=!E.isEmptyObject(t))||!E.isEmptyObject(p))for(r in d&&1===e.nodeType&&(n.overflow=[f.overflow,f.overflowX,f.overflowY],null==(c=m&&m.display)&&(c=J.get(e,"display")),"none"===(u=E.css(e,"display"))&&(c?u=c:(pe([e],!0),c=e.style.display||c,u=E.css(e,"display"),pe([e]))),("inline"===u||"inline-block"===u&&null!=c)&&"none"===E.css(e,"float")&&(l||(h.done((function(){f.display=c})),null==c&&(u=f.display,c="none"===u?"":u)),f.display="inline-block")),n.overflow&&(f.overflow="hidden",h.always((function(){f.overflow=n.overflow[0],f.overflowX=n.overflow[1],f.overflowY=n.overflow[2]}))),l=!1,p)l||(m?"hidden"in m&&(g=m.hidden):m=J.access(e,"fxshow",{display:c}),o&&(m.hidden=!g),g&&pe([e],!0),h.done((function(){for(r in g||pe([e]),J.remove(e,"fxshow"),p)E.style(e,r,p[r])}))),l=dt(g?m[r]:0,r,h),r in m||(m[r]=l.start,g&&(l.end=l.start,l.start=0))}],prefilter:function(e,t){t?ht.prefilters.unshift(e):ht.prefilters.push(e)}}),E.speed=function(e,t,n){var r=e&&"object"===typeof e?E.extend({},e):{complete:n||!n&&t||y(e)&&e,duration:e,easing:n&&t||t&&!y(t)&&t};return E.fx.off?r.duration=0:"number"!==typeof r.duration&&(r.duration in E.fx.speeds?r.duration=E.fx.speeds[r.duration]:r.duration=E.fx.speeds._default),null!=r.queue&&!0!==r.queue||(r.queue="fx"),r.old=r.complete,r.complete=function(){y(r.old)&&r.old.call(this),r.queue&&E.dequeue(this,r.queue)},r},E.fn.extend({fadeTo:function(e,t,n,r){return this.filter(ce).css("opacity",0).show().end().animate({opacity:t},e,n,r)},animate:function(e,t,n,r){var i=E.isEmptyObject(e),o=E.speed(t,n,r),s=function(){var t=ht(this,E.extend({},e),o);(i||J.get(this,"finish"))&&t.stop(!0)};return s.finish=s,i||!1===o.queue?this.each(s):this.queue(o.queue,s)},stop:function(e,t,n){var r=function(e){var t=e.stop;delete e.stop,t(n)};return"string"!==typeof e&&(n=t,t=e,e=void 0),t&&this.queue(e||"fx",[]),this.each((function(){var t=!0,i=null!=e&&e+"queueHooks",o=E.timers,s=J.get(this);if(i)s[i]&&s[i].stop&&r(s[i]);else for(i in s)s[i]&&s[i].stop&&at.test(i)&&r(s[i]);for(i=o.length;i--;)o[i].elem!==this||null!=e&&o[i].queue!==e||(o[i].anim.stop(n),t=!1,o.splice(i,1));!t&&n||E.dequeue(this,e)}))},finish:function(e){return!1!==e&&(e=e||"fx"),this.each((function(){var t,n=J.get(this),r=n[e+"queue"],i=n[e+"queueHooks"],o=E.timers,s=r?r.length:0;for(n.finish=!0,E.queue(this,e,[]),i&&i.stop&&i.stop.call(this,!0),t=o.length;t--;)o[t].elem===this&&o[t].queue===e&&(o[t].anim.stop(!0),o.splice(t,1));for(t=0;t<s;t++)r[t]&&r[t].finish&&r[t].finish.call(this);delete n.finish}))}}),E.each(["toggle","show","hide"],(function(e,t){var n=E.fn[t];E.fn[t]=function(e,r,i){return null==e||"boolean"===typeof e?n.apply(this,arguments):this.animate(ut(t,!0),e,r,i)}})),E.each({slideDown:ut("show"),slideUp:ut("hide"),slideToggle:ut("toggle"),fadeIn:{opacity:"show"},fadeOut:{opacity:"hide"},fadeToggle:{opacity:"toggle"}},(function(e,t){E.fn[e]=function(e,n,r){return this.animate(t,e,n,r)}})),E.timers=[],E.fx.tick=function(){var e,t=0,n=E.timers;for(it=Date.now();t<n.length;t++)(e=n[t])()||n[t]!==e||n.splice(t--,1);n.length||E.fx.stop(),it=void 0},E.fx.timer=function(e){E.timers.push(e),E.fx.start()},E.fx.interval=13,E.fx.start=function(){ot||(ot=!0,lt())},E.fx.stop=function(){ot=null},E.fx.speeds={slow:600,fast:200,_default:400},E.fn.delay=function(e,t){return e=E.fx&&E.fx.speeds[e]||e,t=t||"fx",this.queue(t,(function(t,n){var i=r.setTimeout(t,e);n.stop=function(){r.clearTimeout(i)}}))},function(){var e=_.createElement("input"),t=_.createElement("select").appendChild(_.createElement("option"));e.type="checkbox",m.checkOn=""!==e.value,m.optSelected=t.selected,(e=_.createElement("input")).value="t",e.type="radio",m.radioValue="t"===e.value}();var pt,ft=E.expr.attrHandle;E.fn.extend({attr:function(e,t){return H(this,E.attr,e,t,arguments.length>1)},removeAttr:function(e){return this.each((function(){E.removeAttr(this,e)}))}}),E.extend({attr:function(e,t,n){var r,i,o=e.nodeType;if(3!==o&&8!==o&&2!==o)return"undefined"===typeof e.getAttribute?E.prop(e,t,n):(1===o&&E.isXMLDoc(e)||(i=E.attrHooks[t.toLowerCase()]||(E.expr.match.bool.test(t)?pt:void 0)),void 0!==n?null===n?void E.removeAttr(e,t):i&&"set"in i&&void 0!==(r=i.set(e,n,t))?r:(e.setAttribute(t,n+""),n):i&&"get"in i&&null!==(r=i.get(e,t))?r:null==(r=E.find.attr(e,t))?void 0:r)},attrHooks:{type:{set:function(e,t){if(!m.radioValue&&"radio"===t&&I(e,"input")){var n=e.value;return e.setAttribute("type",t),n&&(e.value=n),t}}}},removeAttr:function(e,t){var n,r=0,i=t&&t.match(L);if(i&&1===e.nodeType)for(;n=i[r++];)e.removeAttribute(n)}}),pt={set:function(e,t,n){return!1===t?E.removeAttr(e,n):e.setAttribute(n,n),n}},E.each(E.expr.match.bool.source.match(/\w+/g),(function(e,t){var n=ft[t]||E.find.attr;ft[t]=function(e,t,r){var i,o,s=t.toLowerCase();return r||(o=ft[s],ft[s]=i,i=null!=n(e,t,r)?s:null,ft[s]=o),i}}));var gt=/^(?:input|select|textarea|button)$/i,mt=/^(?:a|area)$/i;function yt(e){return(e.match(L)||[]).join(" ")}function vt(e){return e.getAttribute&&e.getAttribute("class")||""}function _t(e){return Array.isArray(e)?e:"string"===typeof e&&e.match(L)||[]}E.fn.extend({prop:function(e,t){return H(this,E.prop,e,t,arguments.length>1)},removeProp:function(e){return this.each((function(){delete this[E.propFix[e]||e]}))}}),E.extend({prop:function(e,t,n){var r,i,o=e.nodeType;if(3!==o&&8!==o&&2!==o)return 1===o&&E.isXMLDoc(e)||(t=E.propFix[t]||t,i=E.propHooks[t]),void 0!==n?i&&"set"in i&&void 0!==(r=i.set(e,n,t))?r:e[t]=n:i&&"get"in i&&null!==(r=i.get(e,t))?r:e[t]},propHooks:{tabIndex:{get:function(e){var t=E.find.attr(e,"tabindex");return t?parseInt(t,10):gt.test(e.nodeName)||mt.test(e.nodeName)&&e.href?0:-1}}},propFix:{for:"htmlFor",class:"className"}}),m.optSelected||(E.propHooks.selected={get:function(e){var t=e.parentNode;return t&&t.parentNode&&t.parentNode.selectedIndex,null},set:function(e){var t=e.parentNode;t&&(t.selectedIndex,t.parentNode&&t.parentNode.selectedIndex)}}),E.each(["tabIndex","readOnly","maxLength","cellSpacing","cellPadding","rowSpan","colSpan","useMap","frameBorder","contentEditable"],(function(){E.propFix[this.toLowerCase()]=this})),E.fn.extend({addClass:function(e){var t,n,r,i,o,s;return y(e)?this.each((function(t){E(this).addClass(e.call(this,t,vt(this)))})):(t=_t(e)).length?this.each((function(){if(r=vt(this),n=1===this.nodeType&&" "+yt(r)+" "){for(o=0;o<t.length;o++)i=t[o],n.indexOf(" "+i+" ")<0&&(n+=i+" ");s=yt(n),r!==s&&this.setAttribute("class",s)}})):this},removeClass:function(e){var t,n,r,i,o,s;return y(e)?this.each((function(t){E(this).removeClass(e.call(this,t,vt(this)))})):arguments.length?(t=_t(e)).length?this.each((function(){if(r=vt(this),n=1===this.nodeType&&" "+yt(r)+" "){for(o=0;o<t.length;o++)for(i=t[o];n.indexOf(" "+i+" ")>-1;)n=n.replace(" "+i+" "," ");s=yt(n),r!==s&&this.setAttribute("class",s)}})):this:this.attr("class","")},toggleClass:function(e,t){var n,r,i,o,s=typeof e,a="string"===s||Array.isArray(e);return y(e)?this.each((function(n){E(this).toggleClass(e.call(this,n,vt(this),t),t)})):"boolean"===typeof t&&a?t?this.addClass(e):this.removeClass(e):(n=_t(e),this.each((function(){if(a)for(o=E(this),i=0;i<n.length;i++)r=n[i],o.hasClass(r)?o.removeClass(r):o.addClass(r);else void 0!==e&&"boolean"!==s||((r=vt(this))&&J.set(this,"__className__",r),this.setAttribute&&this.setAttribute("class",r||!1===e?"":J.get(this,"__className__")||""))})))},hasClass:function(e){var t,n,r=0;for(t=" "+e+" ";n=this[r++];)if(1===n.nodeType&&(" "+yt(vt(n))+" ").indexOf(t)>-1)return!0;return!1}});var bt=/\r/g;E.fn.extend({val:function(e){var t,n,r,i=this[0];return arguments.length?(r=y(e),this.each((function(n){var i;1===this.nodeType&&(null==(i=r?e.call(this,n,E(this).val()):e)?i="":"number"===typeof i?i+="":Array.isArray(i)&&(i=E.map(i,(function(e){return null==e?"":e+""}))),(t=E.valHooks[this.type]||E.valHooks[this.nodeName.toLowerCase()])&&"set"in t&&void 0!==t.set(this,i,"value")||(this.value=i))}))):i?(t=E.valHooks[i.type]||E.valHooks[i.nodeName.toLowerCase()])&&"get"in t&&void 0!==(n=t.get(i,"value"))?n:"string"===typeof(n=i.value)?n.replace(bt,""):null==n?"":n:void 0}}),E.extend({valHooks:{option:{get:function(e){var t=E.find.attr(e,"value");return null!=t?t:yt(E.text(e))}},select:{get:function(e){var t,n,r,i=e.options,o=e.selectedIndex,s="select-one"===e.type,a=s?null:[],l=s?o+1:i.length;for(r=o<0?l:s?o:0;r<l;r++)if(((n=i[r]).selected||r===o)&&!n.disabled&&(!n.parentNode.disabled||!I(n.parentNode,"optgroup"))){if(t=E(n).val(),s)return t;a.push(t)}return a},set:function(e,t){for(var n,r,i=e.options,o=E.makeArray(t),s=i.length;s--;)((r=i[s]).selected=E.inArray(E.valHooks.option.get(r),o)>-1)&&(n=!0);return n||(e.selectedIndex=-1),o}}}}),E.each(["radio","checkbox"],(function(){E.valHooks[this]={set:function(e,t){if(Array.isArray(t))return e.checked=E.inArray(E(e).val(),t)>-1}},m.checkOn||(E.valHooks[this].get=function(e){return null===e.getAttribute("value")?"on":e.value})})),m.focusin="onfocusin"in r;var xt=/^(?:focusinfocus|focusoutblur)$/,St=function(e){e.stopPropagation()};E.extend(E.event,{trigger:function(e,t,n,i){var o,s,a,l,c,u,d,h,f=[n||_],g=p.call(e,"type")?e.type:e,m=p.call(e,"namespace")?e.namespace.split("."):[];if(s=h=a=n=n||_,3!==n.nodeType&&8!==n.nodeType&&!xt.test(g+E.event.triggered)&&(g.indexOf(".")>-1&&(m=g.split("."),g=m.shift(),m.sort()),c=g.indexOf(":")<0&&"on"+g,(e=e[E.expando]?e:new E.Event(g,"object"===typeof e&&e)).isTrigger=i?2:3,e.namespace=m.join("."),e.rnamespace=e.namespace?new RegExp("(^|\\.)"+m.join("\\.(?:.*\\.|)")+"(\\.|$)"):null,e.result=void 0,e.target||(e.target=n),t=null==t?[e]:E.makeArray(t,[e]),d=E.event.special[g]||{},i||!d.trigger||!1!==d.trigger.apply(n,t))){if(!i&&!d.noBubble&&!v(n)){for(l=d.delegateType||g,xt.test(l+g)||(s=s.parentNode);s;s=s.parentNode)f.push(s),a=s;a===(n.ownerDocument||_)&&f.push(a.defaultView||a.parentWindow||r)}for(o=0;(s=f[o++])&&!e.isPropagationStopped();)h=s,e.type=o>1?l:d.bindType||g,(u=(J.get(s,"events")||Object.create(null))[e.type]&&J.get(s,"handle"))&&u.apply(s,t),(u=c&&s[c])&&u.apply&&Z(s)&&(e.result=u.apply(s,t),!1===e.result&&e.preventDefault());return e.type=g,i||e.isDefaultPrevented()||d._default&&!1!==d._default.apply(f.pop(),t)||!Z(n)||c&&y(n[g])&&!v(n)&&((a=n[c])&&(n[c]=null),E.event.triggered=g,e.isPropagationStopped()&&h.addEventListener(g,St),n[g](),e.isPropagationStopped()&&h.removeEventListener(g,St),E.event.triggered=void 0,a&&(n[c]=a)),e.result}},simulate:function(e,t,n){var r=E.extend(new E.Event,n,{type:e,isSimulated:!0});E.event.trigger(r,null,t)}}),E.fn.extend({trigger:function(e,t){return this.each((function(){E.event.trigger(e,t,this)}))},triggerHandler:function(e,t){var n=this[0];if(n)return E.event.trigger(e,t,n,!0)}}),m.focusin||E.each({focus:"focusin",blur:"focusout"},(function(e,t){var n=function(e){E.event.simulate(t,e.target,E.event.fix(e))};E.event.special[t]={setup:function(){var r=this.ownerDocument||this.document||this,i=J.access(r,t);i||r.addEventListener(e,n,!0),J.access(r,t,(i||0)+1)},teardown:function(){var r=this.ownerDocument||this.document||this,i=J.access(r,t)-1;i?J.access(r,t,i):(r.removeEventListener(e,n,!0),J.remove(r,t))}}}));var wt=r.location,Et={guid:Date.now()},Pt=/\?/;E.parseXML=function(e){var t,n;if(!e||"string"!==typeof e)return null;try{t=(new r.DOMParser).parseFromString(e,"text/xml")}catch(i){}return n=t&&t.getElementsByTagName("parsererror")[0],t&&!n||E.error("Invalid XML: "+(n?E.map(n.childNodes,(function(e){return e.textContent})).join("\n"):e)),t};var Ct=/\[\]$/,At=/\r?\n/g,kt=/^(?:submit|button|image|reset|file)$/i,jt=/^(?:input|select|textarea|keygen)/i;function It(e,t,n,r){var i;if(Array.isArray(t))E.each(t,(function(t,i){n||Ct.test(e)?r(e,i):It(e+"["+("object"===typeof i&&null!=i?t:"")+"]",i,n,r)}));else if(n||"object"!==S(t))r(e,t);else for(i in t)It(e+"["+i+"]",t[i],n,r)}E.param=function(e,t){var n,r=[],i=function(e,t){var n=y(t)?t():t;r[r.length]=encodeURIComponent(e)+"="+encodeURIComponent(null==n?"":n)};if(null==e)return"";if(Array.isArray(e)||e.jquery&&!E.isPlainObject(e))E.each(e,(function(){i(this.name,this.value)}));else for(n in e)It(n,e[n],t,i);return r.join("&")},E.fn.extend({serialize:function(){return E.param(this.serializeArray())},serializeArray:function(){return this.map((function(){var e=E.prop(this,"elements");return e?E.makeArray(e):this})).filter((function(){var e=this.type;return this.name&&!E(this).is(":disabled")&&jt.test(this.nodeName)&&!kt.test(e)&&(this.checked||!fe.test(e))})).map((function(e,t){var n=E(this).val();return null==n?null:Array.isArray(n)?E.map(n,(function(e){return{name:t.name,value:e.replace(At,"\r\n")}})):{name:t.name,value:n.replace(At,"\r\n")}})).get()}});var Gt=/%20/g,Tt=/#.*$/,Mt=/([?&])_=[^&]*/,Ot=/^(.*?):[ \t]*([^\r\n]*)$/gm,Rt=/^(?:GET|HEAD)$/,Dt=/^\/\//,Nt={},Lt={},Vt="*/".concat("*"),Ft=_.createElement("a");function zt(e){return function(t,n){"string"!==typeof t&&(n=t,t="*");var r,i=0,o=t.toLowerCase().match(L)||[];if(y(n))for(;r=o[i++];)"+"===r[0]?(r=r.slice(1)||"*",(e[r]=e[r]||[]).unshift(n)):(e[r]=e[r]||[]).push(n)}}function Bt(e,t,n,r){var i={},o=e===Lt;function s(a){var l;return i[a]=!0,E.each(e[a]||[],(function(e,a){var c=a(t,n,r);return"string"!==typeof c||o||i[c]?o?!(l=c):void 0:(t.dataTypes.unshift(c),s(c),!1)})),l}return s(t.dataTypes[0])||!i["*"]&&s("*")}function Ut(e,t){var n,r,i=E.ajaxSettings.flatOptions||{};for(n in t)void 0!==t[n]&&((i[n]?e:r||(r={}))[n]=t[n]);return r&&E.extend(!0,e,r),e}Ft.href=wt.href,E.extend({active:0,lastModified:{},etag:{},ajaxSettings:{url:wt.href,type:"GET",isLocal:/^(?:about|app|app-storage|.+-extension|file|res|widget):$/.test(wt.protocol),global:!0,processData:!0,async:!0,contentType:"application/x-www-form-urlencoded; charset=UTF-8",accepts:{"*":Vt,text:"text/plain",html:"text/html",xml:"application/xml, text/xml",json:"application/json, text/javascript"},contents:{xml:/\bxml\b/,html:/\bhtml/,json:/\bjson\b/},responseFields:{xml:"responseXML",text:"responseText",json:"responseJSON"},converters:{"* text":String,"text html":!0,"text json":JSON.parse,"text xml":E.parseXML},flatOptions:{url:!0,context:!0}},ajaxSetup:function(e,t){return t?Ut(Ut(e,E.ajaxSettings),t):Ut(E.ajaxSettings,e)},ajaxPrefilter:zt(Nt),ajaxTransport:zt(Lt),ajax:function(e,t){"object"===typeof e&&(t=e,e=void 0),t=t||{};var n,i,o,s,a,l,c,u,d,h,p=E.ajaxSetup({},t),f=p.context||p,g=p.context&&(f.nodeType||f.jquery)?E(f):E.event,m=E.Deferred(),y=E.Callbacks("once memory"),v=p.statusCode||{},b={},x={},S="canceled",w={readyState:0,getResponseHeader:function(e){var t;if(c){if(!s)for(s={};t=Ot.exec(o);)s[t[1].toLowerCase()+" "]=(s[t[1].toLowerCase()+" "]||[]).concat(t[2]);t=s[e.toLowerCase()+" "]}return null==t?null:t.join(", ")},getAllResponseHeaders:function(){return c?o:null},setRequestHeader:function(e,t){return null==c&&(e=x[e.toLowerCase()]=x[e.toLowerCase()]||e,b[e]=t),this},overrideMimeType:function(e){return null==c&&(p.mimeType=e),this},statusCode:function(e){var t;if(e)if(c)w.always(e[w.status]);else for(t in e)v[t]=[v[t],e[t]];return this},abort:function(e){var t=e||S;return n&&n.abort(t),P(0,t),this}};if(m.promise(w),p.url=((e||p.url||wt.href)+"").replace(Dt,wt.protocol+"//"),p.type=t.method||t.type||p.method||p.type,p.dataTypes=(p.dataType||"*").toLowerCase().match(L)||[""],null==p.crossDomain){l=_.createElement("a");try{l.href=p.url,l.href=l.href,p.crossDomain=Ft.protocol+"//"+Ft.host!==l.protocol+"//"+l.host}catch(C){p.crossDomain=!0}}if(p.data&&p.processData&&"string"!==typeof p.data&&(p.data=E.param(p.data,p.traditional)),Bt(Nt,p,t,w),c)return w;for(d in(u=E.event&&p.global)&&0===E.active++&&E.event.trigger("ajaxStart"),p.type=p.type.toUpperCase(),p.hasContent=!Rt.test(p.type),i=p.url.replace(Tt,""),p.hasContent?p.data&&p.processData&&0===(p.contentType||"").indexOf("application/x-www-form-urlencoded")&&(p.data=p.data.replace(Gt,"+")):(h=p.url.slice(i.length),p.data&&(p.processData||"string"===typeof p.data)&&(i+=(Pt.test(i)?"&":"?")+p.data,delete p.data),!1===p.cache&&(i=i.replace(Mt,"$1"),h=(Pt.test(i)?"&":"?")+"_="+Et.guid+++h),p.url=i+h),p.ifModified&&(E.lastModified[i]&&w.setRequestHeader("If-Modified-Since",E.lastModified[i]),E.etag[i]&&w.setRequestHeader("If-None-Match",E.etag[i])),(p.data&&p.hasContent&&!1!==p.contentType||t.contentType)&&w.setRequestHeader("Content-Type",p.contentType),w.setRequestHeader("Accept",p.dataTypes[0]&&p.accepts[p.dataTypes[0]]?p.accepts[p.dataTypes[0]]+("*"!==p.dataTypes[0]?", "+Vt+"; q=0.01":""):p.accepts["*"]),p.headers)w.setRequestHeader(d,p.headers[d]);if(p.beforeSend&&(!1===p.beforeSend.call(f,w,p)||c))return w.abort();if(S="abort",y.add(p.complete),w.done(p.success),w.fail(p.error),n=Bt(Lt,p,t,w)){if(w.readyState=1,u&&g.trigger("ajaxSend",[w,p]),c)return w;p.async&&p.timeout>0&&(a=r.setTimeout((function(){w.abort("timeout")}),p.timeout));try{c=!1,n.send(b,P)}catch(C){if(c)throw C;P(-1,C)}}else P(-1,"No Transport");function P(e,t,s,l){var d,h,_,b,x,S=t;c||(c=!0,a&&r.clearTimeout(a),n=void 0,o=l||"",w.readyState=e>0?4:0,d=e>=200&&e<300||304===e,s&&(b=function(e,t,n){for(var r,i,o,s,a=e.contents,l=e.dataTypes;"*"===l[0];)l.shift(),void 0===r&&(r=e.mimeType||t.getResponseHeader("Content-Type"));if(r)for(i in a)if(a[i]&&a[i].test(r)){l.unshift(i);break}if(l[0]in n)o=l[0];else{for(i in n){if(!l[0]||e.converters[i+" "+l[0]]){o=i;break}s||(s=i)}o=o||s}if(o)return o!==l[0]&&l.unshift(o),n[o]}(p,w,s)),!d&&E.inArray("script",p.dataTypes)>-1&&E.inArray("json",p.dataTypes)<0&&(p.converters["text script"]=function(){}),b=function(e,t,n,r){var i,o,s,a,l,c={},u=e.dataTypes.slice();if(u[1])for(s in e.converters)c[s.toLowerCase()]=e.converters[s];for(o=u.shift();o;)if(e.responseFields[o]&&(n[e.responseFields[o]]=t),!l&&r&&e.dataFilter&&(t=e.dataFilter(t,e.dataType)),l=o,o=u.shift())if("*"===o)o=l;else if("*"!==l&&l!==o){if(!(s=c[l+" "+o]||c["* "+o]))for(i in c)if((a=i.split(" "))[1]===o&&(s=c[l+" "+a[0]]||c["* "+a[0]])){!0===s?s=c[i]:!0!==c[i]&&(o=a[0],u.unshift(a[1]));break}if(!0!==s)if(s&&e.throws)t=s(t);else try{t=s(t)}catch(C){return{state:"parsererror",error:s?C:"No conversion from "+l+" to "+o}}}return{state:"success",data:t}}(p,b,w,d),d?(p.ifModified&&((x=w.getResponseHeader("Last-Modified"))&&(E.lastModified[i]=x),(x=w.getResponseHeader("etag"))&&(E.etag[i]=x)),204===e||"HEAD"===p.type?S="nocontent":304===e?S="notmodified":(S=b.state,h=b.data,d=!(_=b.error))):(_=S,!e&&S||(S="error",e<0&&(e=0))),w.status=e,w.statusText=(t||S)+"",d?m.resolveWith(f,[h,S,w]):m.rejectWith(f,[w,S,_]),w.statusCode(v),v=void 0,u&&g.trigger(d?"ajaxSuccess":"ajaxError",[w,p,d?h:_]),y.fireWith(f,[w,S]),u&&(g.trigger("ajaxComplete",[w,p]),--E.active||E.event.trigger("ajaxStop")))}return w},getJSON:function(e,t,n){return E.get(e,t,n,"json")},getScript:function(e,t){return E.get(e,void 0,t,"script")}}),E.each(["get","post"],(function(e,t){E[t]=function(e,n,r,i){return y(n)&&(i=i||r,r=n,n=void 0),E.ajax(E.extend({url:e,type:t,dataType:i,data:n,success:r},E.isPlainObject(e)&&e))}})),E.ajaxPrefilter((function(e){var t;for(t in e.headers)"content-type"===t.toLowerCase()&&(e.contentType=e.headers[t]||"")})),E._evalUrl=function(e,t,n){return E.ajax({url:e,type:"GET",dataType:"script",cache:!0,async:!1,global:!1,converters:{"text script":function(){}},dataFilter:function(e){E.globalEval(e,t,n)}})},E.fn.extend({wrapAll:function(e){var t;return this[0]&&(y(e)&&(e=e.call(this[0])),t=E(e,this[0].ownerDocument).eq(0).clone(!0),this[0].parentNode&&t.insertBefore(this[0]),t.map((function(){for(var e=this;e.firstElementChild;)e=e.firstElementChild;return e})).append(this)),this},wrapInner:function(e){return y(e)?this.each((function(t){E(this).wrapInner(e.call(this,t))})):this.each((function(){var t=E(this),n=t.contents();n.length?n.wrapAll(e):t.append(e)}))},wrap:function(e){var t=y(e);return this.each((function(n){E(this).wrapAll(t?e.call(this,n):e)}))},unwrap:function(e){return this.parent(e).not("body").each((function(){E(this).replaceWith(this.childNodes)})),this}}),E.expr.pseudos.hidden=function(e){return!E.expr.pseudos.visible(e)},E.expr.pseudos.visible=function(e){return!!(e.offsetWidth||e.offsetHeight||e.getClientRects().length)},E.ajaxSettings.xhr=function(){try{return new r.XMLHttpRequest}catch(e){}};var Wt={0:200,1223:204},Ht=E.ajaxSettings.xhr();m.cors=!!Ht&&"withCredentials"in Ht,m.ajax=Ht=!!Ht,E.ajaxTransport((function(e){var t,n;if(m.cors||Ht&&!e.crossDomain)return{send:function(i,o){var s,a=e.xhr();if(a.open(e.type,e.url,e.async,e.username,e.password),e.xhrFields)for(s in e.xhrFields)a[s]=e.xhrFields[s];for(s in e.mimeType&&a.overrideMimeType&&a.overrideMimeType(e.mimeType),e.crossDomain||i["X-Requested-With"]||(i["X-Requested-With"]="XMLHttpRequest"),i)a.setRequestHeader(s,i[s]);t=function(e){return function(){t&&(t=n=a.onload=a.onerror=a.onabort=a.ontimeout=a.onreadystatechange=null,"abort"===e?a.abort():"error"===e?"number"!==typeof a.status?o(0,"error"):o(a.status,a.statusText):o(Wt[a.status]||a.status,a.statusText,"text"!==(a.responseType||"text")||"string"!==typeof a.responseText?{binary:a.response}:{text:a.responseText},a.getAllResponseHeaders()))}},a.onload=t(),n=a.onerror=a.ontimeout=t("error"),void 0!==a.onabort?a.onabort=n:a.onreadystatechange=function(){4===a.readyState&&r.setTimeout((function(){t&&n()}))},t=t("abort");try{a.send(e.hasContent&&e.data||null)}catch(l){if(t)throw l}},abort:function(){t&&t()}}})),E.ajaxPrefilter((function(e){e.crossDomain&&(e.contents.script=!1)})),E.ajaxSetup({accepts:{script:"text/javascript, application/javascript, application/ecmascript, application/x-ecmascript"},contents:{script:/\b(?:java|ecma)script\b/},converters:{"text script":function(e){return E.globalEval(e),e}}}),E.ajaxPrefilter("script",(function(e){void 0===e.cache&&(e.cache=!1),e.crossDomain&&(e.type="GET")})),E.ajaxTransport("script",(function(e){var t,n;if(e.crossDomain||e.scriptAttrs)return{send:function(r,i){t=E("<script>").attr(e.scriptAttrs||{}).prop({charset:e.scriptCharset,src:e.url}).on("load error",n=function(e){t.remove(),n=null,e&&i("error"===e.type?404:200,e.type)}),_.head.appendChild(t[0])},abort:function(){n&&n()}}}));var qt=[],Xt=/(=)\?(?=&|$)|\?\?/;E.ajaxSetup({jsonp:"callback",jsonpCallback:function(){var e=qt.pop()||E.expando+"_"+Et.guid++;return this[e]=!0,e}}),E.ajaxPrefilter("json jsonp",(function(e,t,n){var i,o,s,a=!1!==e.jsonp&&(Xt.test(e.url)?"url":"string"===typeof e.data&&0===(e.contentType||"").indexOf("application/x-www-form-urlencoded")&&Xt.test(e.data)&&"data");if(a||"jsonp"===e.dataTypes[0])return i=e.jsonpCallback=y(e.jsonpCallback)?e.jsonpCallback():e.jsonpCallback,a?e[a]=e[a].replace(Xt,"$1"+i):!1!==e.jsonp&&(e.url+=(Pt.test(e.url)?"&":"?")+e.jsonp+"="+i),e.converters["script json"]=function(){return s||E.error(i+" was not called"),s[0]},e.dataTypes[0]="json",o=r[i],r[i]=function(){s=arguments},n.always((function(){void 0===o?E(r).removeProp(i):r[i]=o,e[i]&&(e.jsonpCallback=t.jsonpCallback,qt.push(i)),s&&y(o)&&o(s[0]),s=o=void 0})),"script"})),m.createHTMLDocument=function(){var e=_.implementation.createHTMLDocument("").body;return e.innerHTML="<form></form><form></form>",2===e.childNodes.length}(),E.parseHTML=function(e,t,n){return"string"!==typeof e?[]:("boolean"===typeof t&&(n=t,t=!1),t||(m.createHTMLDocument?((r=(t=_.implementation.createHTMLDocument("")).createElement("base")).href=_.location.href,t.head.appendChild(r)):t=_),o=!n&&[],(i=G.exec(e))?[t.createElement(i[1])]:(i=xe([e],t,o),o&&o.length&&E(o).remove(),E.merge([],i.childNodes)));var r,i,o},E.fn.load=function(e,t,n){var r,i,o,s=this,a=e.indexOf(" ");return a>-1&&(r=yt(e.slice(a)),e=e.slice(0,a)),y(t)?(n=t,t=void 0):t&&"object"===typeof t&&(i="POST"),s.length>0&&E.ajax({url:e,type:i||"GET",dataType:"html",data:t}).done((function(e){o=arguments,s.html(r?E("<div>").append(E.parseHTML(e)).find(r):e)})).always(n&&function(e,t){s.each((function(){n.apply(this,o||[e.responseText,t,e])}))}),this},E.expr.pseudos.animated=function(e){return E.grep(E.timers,(function(t){return e===t.elem})).length},E.offset={setOffset:function(e,t,n){var r,i,o,s,a,l,c=E.css(e,"position"),u=E(e),d={};"static"===c&&(e.style.position="relative"),a=u.offset(),o=E.css(e,"top"),l=E.css(e,"left"),("absolute"===c||"fixed"===c)&&(o+l).indexOf("auto")>-1?(s=(r=u.position()).top,i=r.left):(s=parseFloat(o)||0,i=parseFloat(l)||0),y(t)&&(t=t.call(e,n,E.extend({},a))),null!=t.top&&(d.top=t.top-a.top+s),null!=t.left&&(d.left=t.left-a.left+i),"using"in t?t.using.call(e,d):u.css(d)}},E.fn.extend({offset:function(e){if(arguments.length)return void 0===e?this:this.each((function(t){E.offset.setOffset(this,e,t)}));var t,n,r=this[0];return r?r.getClientRects().length?(t=r.getBoundingClientRect(),n=r.ownerDocument.defaultView,{top:t.top+n.pageYOffset,left:t.left+n.pageXOffset}):{top:0,left:0}:void 0},position:function(){if(this[0]){var e,t,n,r=this[0],i={top:0,left:0};if("fixed"===E.css(r,"position"))t=r.getBoundingClientRect();else{for(t=this.offset(),n=r.ownerDocument,e=r.offsetParent||n.documentElement;e&&(e===n.body||e===n.documentElement)&&"static"===E.css(e,"position");)e=e.parentNode;e&&e!==r&&1===e.nodeType&&((i=E(e).offset()).top+=E.css(e,"borderTopWidth",!0),i.left+=E.css(e,"borderLeftWidth",!0))}return{top:t.top-i.top-E.css(r,"marginTop",!0),left:t.left-i.left-E.css(r,"marginLeft",!0)}}},offsetParent:function(){return this.map((function(){for(var e=this.offsetParent;e&&"static"===E.css(e,"position");)e=e.offsetParent;return e||se}))}}),E.each({scrollLeft:"pageXOffset",scrollTop:"pageYOffset"},(function(e,t){var n="pageYOffset"===t;E.fn[e]=function(r){return H(this,(function(e,r,i){var o;if(v(e)?o=e:9===e.nodeType&&(o=e.defaultView),void 0===i)return o?o[t]:e[r];o?o.scrollTo(n?o.pageXOffset:i,n?i:o.pageYOffset):e[r]=i}),e,r,arguments.length)}})),E.each(["top","left"],(function(e,t){E.cssHooks[t]=qe(m.pixelPosition,(function(e,n){if(n)return n=He(e,t),Le.test(n)?E(e).position()[t]+"px":n}))})),E.each({Height:"height",Width:"width"},(function(e,t){E.each({padding:"inner"+e,content:t,"":"outer"+e},(function(n,r){E.fn[r]=function(i,o){var s=arguments.length&&(n||"boolean"!==typeof i),a=n||(!0===i||!0===o?"margin":"border");return H(this,(function(t,n,i){var o;return v(t)?0===r.indexOf("outer")?t["inner"+e]:t.document.documentElement["client"+e]:9===t.nodeType?(o=t.documentElement,Math.max(t.body["scroll"+e],o["scroll"+e],t.body["offset"+e],o["offset"+e],o["client"+e])):void 0===i?E.css(t,n,a):E.style(t,n,i,a)}),t,s?i:void 0,s)}}))})),E.each(["ajaxStart","ajaxStop","ajaxComplete","ajaxError","ajaxSuccess","ajaxSend"],(function(e,t){E.fn[t]=function(e){return this.on(t,e)}})),E.fn.extend({bind:function(e,t,n){return this.on(e,null,t,n)},unbind:function(e,t){return this.off(e,null,t)},delegate:function(e,t,n,r){return this.on(t,e,n,r)},undelegate:function(e,t,n){return 1===arguments.length?this.off(e,"**"):this.off(t,e||"**",n)},hover:function(e,t){return this.mouseenter(e).mouseleave(t||e)}}),E.each("blur focus focusin focusout resize scroll click dblclick mousedown mouseup mousemove mouseover mouseout mouseenter mouseleave change select submit keydown keypress keyup contextmenu".split(" "),(function(e,t){E.fn[t]=function(e,n){return arguments.length>0?this.on(t,null,e,n):this.trigger(t)}}));var Yt=/^[\s\uFEFF\xA0]+|([^\s\uFEFF\xA0])[\s\uFEFF\xA0]+$/g;E.proxy=function(e,t){var n,r,i;if("string"===typeof t&&(n=e[t],t=e,e=n),y(e))return r=a.call(arguments,2),i=function(){return e.apply(t||this,r.concat(a.call(arguments)))},i.guid=e.guid=e.guid||E.guid++,i},E.holdReady=function(e){e?E.readyWait++:E.ready(!0)},E.isArray=Array.isArray,E.parseJSON=JSON.parse,E.nodeName=I,E.isFunction=y,E.isWindow=v,E.camelCase=K,E.type=S,E.now=Date.now,E.isNumeric=function(e){var t=E.type(e);return("number"===t||"string"===t)&&!isNaN(e-parseFloat(e))},E.trim=function(e){return null==e?"":(e+"").replace(Yt,"$1")},void 0===(n=function(){return E}.apply(t,[]))||(e.exports=n);var Kt=r.jQuery,Zt=r.$;return E.noConflict=function(e){return r.$===E&&(r.$=Zt),e&&r.jQuery===E&&(r.jQuery=Kt),E},"undefined"===typeof i&&(r.jQuery=r.$=E),E}))},31736:(e,t,n)=>{var r=1/0,i="[object Symbol]",o="object"==typeof n.g&&n.g&&n.g.Object===Object&&n.g,s="object"==typeof self&&self&&self.Object===Object&&self,a=o||s||Function("return this")(),l=Object.prototype,c=0,u=l.toString,d=a.Symbol,h=d?d.prototype:void 0,p=h?h.toString:void 0;function f(e){if("string"==typeof e)return e;if(function(e){return"symbol"==typeof e||function(e){return!!e&&"object"==typeof e}(e)&&u.call(e)==i}(e))return p?p.call(e):"";var t=e+"";return"0"==t&&1/e==-r?"-0":t}e.exports=function(e){var t,n=++c;return(null==(t=e)?"":f(t))+n}},39472:(e,t,n)=>{var r=n(33892)(n(31560),"DataView");e.exports=r},40432:(e,t,n)=>{var r=n(69620),i=n(56600),o=n(99299),s=n(54032),a=n(73320);function l(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}l.prototype.clear=r,l.prototype.delete=i,l.prototype.get=o,l.prototype.has=s,l.prototype.set=a,e.exports=l},48860:(e,t,n)=>{var r=n(5880),i=n(27604),o=n(2208),s=n(96792),a=n(49076);function l(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}l.prototype.clear=r,l.prototype.delete=i,l.prototype.get=o,l.prototype.has=s,l.prototype.set=a,e.exports=l},12472:(e,t,n)=>{var r=n(33892)(n(31560),"Map");e.exports=r},20828:(e,t,n)=>{var r=n(2984),i=n(90888),o=n(33184),s=n(6472),a=n(93856);function l(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}l.prototype.clear=r,l.prototype.delete=i,l.prototype.get=o,l.prototype.has=s,l.prototype.set=a,e.exports=l},69476:(e,t,n)=>{var r=n(33892)(n(31560),"Promise");e.exports=r},91156:(e,t,n)=>{var r=n(33892)(n(31560),"Set");e.exports=r},4088:(e,t,n)=>{var r=n(20828),i=n(9068),o=n(99804);function s(e){var t=-1,n=null==e?0:e.length;for(this.__data__=new r;++t<n;)this.add(e[t])}s.prototype.add=s.prototype.push=i,s.prototype.has=o,e.exports=s},43444:(e,t,n)=>{var r=n(48860),i=n(99088),o=n(80436),s=n(47763),a=n(20092),l=n(65104);function c(e){var t=this.__data__=new r(e);this.size=t.size}c.prototype.clear=i,c.prototype.delete=o,c.prototype.get=s,c.prototype.has=a,c.prototype.set=l,e.exports=c},81424:(e,t,n)=>{var r=n(31560).Symbol;e.exports=r},72180:(e,t,n)=>{var r=n(31560).Uint8Array;e.exports=r},71984:(e,t,n)=>{var r=n(33892)(n(31560),"WeakMap");e.exports=r},13168:e=>{e.exports=function(e,t,n){switch(n.length){case 0:return e.call(t);case 1:return e.call(t,n[0]);case 2:return e.call(t,n[0],n[1]);case 3:return e.call(t,n[0],n[1],n[2])}return e.apply(t,n)}},56536:e=>{e.exports=function(e,t){for(var n=-1,r=null==e?0:e.length;++n<r;)if(!t(e[n],n,e))return!1;return!0}},94724:e=>{e.exports=function(e,t){for(var n=-1,r=null==e?0:e.length,i=0,o=[];++n<r;){var s=e[n];t(s,n,e)&&(o[i++]=s)}return o}},7576:(e,t,n)=>{var r=n(18936);e.exports=function(e,t){return!!(null==e?0:e.length)&&r(e,t,0)>-1}},10304:e=>{e.exports=function(e,t,n){for(var r=-1,i=null==e?0:e.length;++r<i;)if(n(t,e[r]))return!0;return!1}},34520:(e,t,n)=>{var r=n(12800),i=n(21384),o=n(21336),s=n(50703),a=n(28452),l=n(83112),c=Object.prototype.hasOwnProperty;e.exports=function(e,t){var n=o(e),u=!n&&i(e),d=!n&&!u&&s(e),h=!n&&!u&&!d&&l(e),p=n||u||d||h,f=p?r(e.length,String):[],g=f.length;for(var m in e)!t&&!c.call(e,m)||p&&("length"==m||d&&("offset"==m||"parent"==m)||h&&("buffer"==m||"byteLength"==m||"byteOffset"==m)||a(m,g))||f.push(m);return f}},95556:e=>{e.exports=function(e,t){for(var n=-1,r=null==e?0:e.length,i=Array(r);++n<r;)i[n]=t(e[n],n,e);return i}},89485:e=>{e.exports=function(e,t){for(var n=-1,r=t.length,i=e.length;++n<r;)e[i+n]=t[n];return e}},46128:e=>{e.exports=function(e,t){for(var n=-1,r=null==e?0:e.length;++n<r;)if(t(e[n],n,e))return!0;return!1}},56916:e=>{e.exports=function(e){return e.split("")}},81484:(e,t,n)=>{var r=n(93096);e.exports=function(e,t){for(var n=e.length;n--;)if(r(e[n][0],t))return n;return-1}},48475:(e,t,n)=>{var r=n(0);e.exports=function(e,t,n){"__proto__"==t&&r?r(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n}},12292:(e,t,n)=>{var r=n(41936),i=n(64116)(r);e.exports=i},39896:(e,t,n)=>{var r=n(12292);e.exports=function(e,t){var n=!0;return r(e,(function(e,r,i){return n=!!t(e,r,i)})),n}},93076:(e,t,n)=>{var r=n(78808);e.exports=function(e,t,n){for(var i=-1,o=e.length;++i<o;){var s=e[i],a=t(s);if(null!=a&&(void 0===l?a===a&&!r(a):n(a,l)))var l=a,c=s}return c}},40748:e=>{e.exports=function(e,t,n,r){for(var i=e.length,o=n+(r?1:-1);r?o--:++o<i;)if(t(e[o],o,e))return o;return-1}},89800:(e,t,n)=>{var r=n(89485),i=n(68768);e.exports=function e(t,n,o,s,a){var l=-1,c=t.length;for(o||(o=i),a||(a=[]);++l<c;){var u=t[l];n>0&&o(u)?n>1?e(u,n-1,o,s,a):r(a,u):s||(a[a.length]=u)}return a}},75736:(e,t,n)=>{var r=n(19440)();e.exports=r},41936:(e,t,n)=>{var r=n(75736),i=n(7464);e.exports=function(e,t){return e&&r(e,t,i)}},8916:(e,t,n)=>{var r=n(55416),i=n(25120);e.exports=function(e,t){for(var n=0,o=(t=r(t,e)).length;null!=e&&n<o;)e=e[i(t[n++])];return n&&n==o?e:void 0}},23112:(e,t,n)=>{var r=n(89485),i=n(21336);e.exports=function(e,t,n){var o=t(e);return i(e)?o:r(o,n(e))}},21428:(e,t,n)=>{var r=n(81424),i=n(15434),o=n(68464),s=r?r.toStringTag:void 0;e.exports=function(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":s&&s in Object(e)?i(e):o(e)}},29384:e=>{e.exports=function(e,t){return e>t}},16304:e=>{e.exports=function(e,t){return null!=e&&t in Object(e)}},18936:(e,t,n)=>{var r=n(40748),i=n(41764),o=n(1328);e.exports=function(e,t,n){return t===t?o(e,t,n):r(e,i,n)}},84224:(e,t,n)=>{var r=n(21428),i=n(5744);e.exports=function(e){return i(e)&&"[object Arguments]"==r(e)}},26048:(e,t,n)=>{var r=n(62400),i=n(5744);e.exports=function e(t,n,o,s,a){return t===n||(null==t||null==n||!i(t)&&!i(n)?t!==t&&n!==n:r(t,n,o,s,e,a))}},62400:(e,t,n)=>{var r=n(43444),i=n(29456),o=n(71536),s=n(19828),a=n(62864),l=n(21336),c=n(50703),u=n(83112),d="[object Arguments]",h="[object Array]",p="[object Object]",f=Object.prototype.hasOwnProperty;e.exports=function(e,t,n,g,m,y){var v=l(e),_=l(t),b=v?h:a(e),x=_?h:a(t),S=(b=b==d?p:b)==p,w=(x=x==d?p:x)==p,E=b==x;if(E&&c(e)){if(!c(t))return!1;v=!0,S=!1}if(E&&!S)return y||(y=new r),v||u(e)?i(e,t,n,g,m,y):o(e,t,b,n,g,m,y);if(!(1&n)){var P=S&&f.call(e,"__wrapped__"),C=w&&f.call(t,"__wrapped__");if(P||C){var A=P?e.value():e,k=C?t.value():t;return y||(y=new r),m(A,k,n,g,y)}}return!!E&&(y||(y=new r),s(e,t,n,g,m,y))}},24872:(e,t,n)=>{var r=n(43444),i=n(26048);e.exports=function(e,t,n,o){var s=n.length,a=s,l=!o;if(null==e)return!a;for(e=Object(e);s--;){var c=n[s];if(l&&c[2]?c[1]!==e[c[0]]:!(c[0]in e))return!1}for(;++s<a;){var u=(c=n[s])[0],d=e[u],h=c[1];if(l&&c[2]){if(void 0===d&&!(u in e))return!1}else{var p=new r;if(o)var f=o(d,h,u,e,t,p);if(!(void 0===f?i(h,d,3,o,p):f))return!1}}return!0}},41764:e=>{e.exports=function(e){return e!==e}},91952:(e,t,n)=>{var r=n(25640),i=n(24752),o=n(49668),s=n(52492),a=/^\[object .+?Constructor\]$/,l=Function.prototype,c=Object.prototype,u=l.toString,d=c.hasOwnProperty,h=RegExp("^"+u.call(d).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");e.exports=function(e){return!(!o(e)||i(e))&&(r(e)?h:a).test(s(e))}},75184:(e,t,n)=>{var r=n(21428),i=n(48344),o=n(5744),s={};s["[object Float32Array]"]=s["[object Float64Array]"]=s["[object Int8Array]"]=s["[object Int16Array]"]=s["[object Int32Array]"]=s["[object Uint8Array]"]=s["[object Uint8ClampedArray]"]=s["[object Uint16Array]"]=s["[object Uint32Array]"]=!0,s["[object Arguments]"]=s["[object Array]"]=s["[object ArrayBuffer]"]=s["[object Boolean]"]=s["[object DataView]"]=s["[object Date]"]=s["[object Error]"]=s["[object Function]"]=s["[object Map]"]=s["[object Number]"]=s["[object Object]"]=s["[object RegExp]"]=s["[object Set]"]=s["[object String]"]=s["[object WeakMap]"]=!1,e.exports=function(e){return o(e)&&i(e.length)&&!!s[r(e)]}},2464:(e,t,n)=>{var r=n(19544),i=n(77280),o=n(44216),s=n(21336),a=n(98048);e.exports=function(e){return"function"==typeof e?e:null==e?o:"object"==typeof e?s(e)?i(e[0],e[1]):r(e):a(e)}},25064:(e,t,n)=>{var r=n(59432),i=n(30876),o=Object.prototype.hasOwnProperty;e.exports=function(e){if(!r(e))return i(e);var t=[];for(var n in Object(e))o.call(e,n)&&"constructor"!=n&&t.push(n);return t}},13116:e=>{e.exports=function(e,t){return e<t}},5972:(e,t,n)=>{var r=n(12292),i=n(58832);e.exports=function(e,t){var n=-1,o=i(e)?Array(e.length):[];return r(e,(function(e,r,i){o[++n]=t(e,r,i)})),o}},19544:(e,t,n)=>{var r=n(24872),i=n(97788),o=n(73200);e.exports=function(e){var t=i(e);return 1==t.length&&t[0][2]?o(t[0][0],t[0][1]):function(n){return n===e||r(n,e,t)}}},77280:(e,t,n)=>{var r=n(26048),i=n(58772),o=n(18556),s=n(33256),a=n(80312),l=n(73200),c=n(25120);e.exports=function(e,t){return s(e)&&a(t)?l(c(e),t):function(n){var s=i(n,e);return void 0===s&&s===t?o(n,e):r(t,s,3)}}},75396:(e,t,n)=>{var r=n(95556),i=n(8916),o=n(2464),s=n(5972),a=n(89728),l=n(41888),c=n(86076),u=n(44216),d=n(21336);e.exports=function(e,t,n){t=t.length?r(t,(function(e){return d(e)?function(t){return i(t,1===e.length?e[0]:e)}:e})):[u];var h=-1;t=r(t,l(o));var p=s(e,(function(e,n,i){return{criteria:r(t,(function(t){return t(e)})),index:++h,value:e}}));return a(p,(function(e,t){return c(e,t,n)}))}},54128:e=>{e.exports=function(e){return function(t){return null==t?void 0:t[e]}}},90447:(e,t,n)=>{var r=n(8916);e.exports=function(e){return function(t){return r(t,e)}}},80836:e=>{var t=Math.ceil,n=Math.max;e.exports=function(e,r,i,o){for(var s=-1,a=n(t((r-e)/(i||1)),0),l=Array(a);a--;)l[o?a:++s]=e,e+=i;return l}},41120:(e,t,n)=>{var r=n(44216),i=n(97864),o=n(82448);e.exports=function(e,t){return o(i(e,t,r),e+"")}},57484:(e,t,n)=>{var r=n(8372),i=n(0),o=n(44216),s=i?function(e,t){return i(e,"toString",{configurable:!0,enumerable:!1,value:r(t),writable:!0})}:o;e.exports=s},49064:e=>{e.exports=function(e,t,n){var r=-1,i=e.length;t<0&&(t=-t>i?0:i+t),(n=n>i?i:n)<0&&(n+=i),i=t>n?0:n-t>>>0,t>>>=0;for(var o=Array(i);++r<i;)o[r]=e[r+t];return o}},36764:(e,t,n)=>{var r=n(12292);e.exports=function(e,t){var n;return r(e,(function(e,r,i){return!(n=t(e,r,i))})),!!n}},89728:e=>{e.exports=function(e,t){var n=e.length;for(e.sort(t);n--;)e[n]=e[n].value;return e}},12800:e=>{e.exports=function(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r}},30416:(e,t,n)=>{var r=n(81424),i=n(95556),o=n(21336),s=n(78808),a=r?r.prototype:void 0,l=a?a.toString:void 0;e.exports=function e(t){if("string"==typeof t)return t;if(o(t))return i(t,e)+"";if(s(t))return l?l.call(t):"";var n=t+"";return"0"==n&&1/t==-Infinity?"-0":n}},87349:(e,t,n)=>{var r=n(73944),i=/^\s+/;e.exports=function(e){return e?e.slice(0,r(e)+1).replace(i,""):e}},41888:e=>{e.exports=function(e){return function(t){return e(t)}}},71144:(e,t,n)=>{var r=n(4088),i=n(7576),o=n(10304),s=n(45016),a=n(68176),l=n(17712);e.exports=function(e,t,n){var c=-1,u=i,d=e.length,h=!0,p=[],f=p;if(n)h=!1,u=o;else if(d>=200){var g=t?null:a(e);if(g)return l(g);h=!1,u=s,f=new r}else f=t?[]:p;e:for(;++c<d;){var m=e[c],y=t?t(m):m;if(m=n||0!==m?m:0,h&&y===y){for(var v=f.length;v--;)if(f[v]===y)continue e;t&&f.push(y),p.push(m)}else u(f,y,n)||(f!==p&&f.push(y),p.push(m))}return p}},45016:e=>{e.exports=function(e,t){return e.has(t)}},55416:(e,t,n)=>{var r=n(21336),i=n(33256),o=n(91016),s=n(36720);e.exports=function(e,t){return r(e)?e:i(e,t)?[e]:o(s(e))}},95388:(e,t,n)=>{var r=n(49064);e.exports=function(e,t,n){var i=e.length;return n=void 0===n?i:n,!t&&n>=i?e:r(e,t,n)}},84888:(e,t,n)=>{var r=n(78808);e.exports=function(e,t){if(e!==t){var n=void 0!==e,i=null===e,o=e===e,s=r(e),a=void 0!==t,l=null===t,c=t===t,u=r(t);if(!l&&!u&&!s&&e>t||s&&a&&c&&!l&&!u||i&&a&&c||!n&&c||!o)return 1;if(!i&&!s&&!u&&e<t||u&&n&&o&&!i&&!s||l&&n&&o||!a&&o||!c)return-1}return 0}},86076:(e,t,n)=>{var r=n(84888);e.exports=function(e,t,n){for(var i=-1,o=e.criteria,s=t.criteria,a=o.length,l=n.length;++i<a;){var c=r(o[i],s[i]);if(c)return i>=l?c:c*("desc"==n[i]?-1:1)}return e.index-t.index}},74768:(e,t,n)=>{var r=n(31560)["__core-js_shared__"];e.exports=r},64116:(e,t,n)=>{var r=n(58832);e.exports=function(e,t){return function(n,i){if(null==n)return n;if(!r(n))return e(n,i);for(var o=n.length,s=t?o:-1,a=Object(n);(t?s--:++s<o)&&!1!==i(a[s],s,a););return n}}},19440:e=>{e.exports=function(e){return function(t,n,r){for(var i=-1,o=Object(t),s=r(t),a=s.length;a--;){var l=s[e?a:++i];if(!1===n(o[l],l,o))break}return t}}},84976:(e,t,n)=>{var r=n(95388),i=n(96716),o=n(7016),s=n(36720);e.exports=function(e){return function(t){t=s(t);var n=i(t)?o(t):void 0,a=n?n[0]:t.charAt(0),l=n?r(n,1).join(""):t.slice(1);return a[e]()+l}}},22956:(e,t,n)=>{var r=n(2464),i=n(58832),o=n(7464);e.exports=function(e){return function(t,n,s){var a=Object(t);if(!i(t)){var l=r(n,3);t=o(t),n=function(e){return l(a[e],e,a)}}var c=e(t,n,s);return c>-1?a[l?t[c]:c]:void 0}}},99596:(e,t,n)=>{var r=n(80836),i=n(8280),o=n(24320);e.exports=function(e){return function(t,n,s){return s&&"number"!=typeof s&&i(t,n,s)&&(n=s=void 0),t=o(t),void 0===n?(n=t,t=0):n=o(n),s=void 0===s?t<n?1:-1:o(s),r(t,n,s,e)}}},68176:(e,t,n)=>{var r=n(91156),i=n(45824),o=n(17712),s=r&&1/o(new r([,-0]))[1]==1/0?function(e){return new r(e)}:i;e.exports=s},0:(e,t,n)=>{var r=n(33892),i=function(){try{var e=r(Object,"defineProperty");return e({},"",{}),e}catch(t){}}();e.exports=i},29456:(e,t,n)=>{var r=n(4088),i=n(46128),o=n(45016);e.exports=function(e,t,n,s,a,l){var c=1&n,u=e.length,d=t.length;if(u!=d&&!(c&&d>u))return!1;var h=l.get(e),p=l.get(t);if(h&&p)return h==t&&p==e;var f=-1,g=!0,m=2&n?new r:void 0;for(l.set(e,t),l.set(t,e);++f<u;){var y=e[f],v=t[f];if(s)var _=c?s(v,y,f,t,e,l):s(y,v,f,e,t,l);if(void 0!==_){if(_)continue;g=!1;break}if(m){if(!i(t,(function(e,t){if(!o(m,t)&&(y===e||a(y,e,n,s,l)))return m.push(t)}))){g=!1;break}}else if(y!==v&&!a(y,v,n,s,l)){g=!1;break}}return l.delete(e),l.delete(t),g}},71536:(e,t,n)=>{var r=n(81424),i=n(72180),o=n(93096),s=n(29456),a=n(6848),l=n(17712),c=r?r.prototype:void 0,u=c?c.valueOf:void 0;e.exports=function(e,t,n,r,c,d,h){switch(n){case"[object DataView]":if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case"[object ArrayBuffer]":return!(e.byteLength!=t.byteLength||!d(new i(e),new i(t)));case"[object Boolean]":case"[object Date]":case"[object Number]":return o(+e,+t);case"[object Error]":return e.name==t.name&&e.message==t.message;case"[object RegExp]":case"[object String]":return e==t+"";case"[object Map]":var p=a;case"[object Set]":var f=1&r;if(p||(p=l),e.size!=t.size&&!f)return!1;var g=h.get(e);if(g)return g==t;r|=2,h.set(e,t);var m=s(p(e),p(t),r,c,d,h);return h.delete(e),m;case"[object Symbol]":if(u)return u.call(e)==u.call(t)}return!1}},19828:(e,t,n)=>{var r=n(21356),i=Object.prototype.hasOwnProperty;e.exports=function(e,t,n,o,s,a){var l=1&n,c=r(e),u=c.length;if(u!=r(t).length&&!l)return!1;for(var d=u;d--;){var h=c[d];if(!(l?h in t:i.call(t,h)))return!1}var p=a.get(e),f=a.get(t);if(p&&f)return p==t&&f==e;var g=!0;a.set(e,t),a.set(t,e);for(var m=l;++d<u;){var y=e[h=c[d]],v=t[h];if(o)var _=l?o(v,y,h,t,e,a):o(y,v,h,e,t,a);if(!(void 0===_?y===v||s(y,v,n,o,a):_)){g=!1;break}m||(m="constructor"==h)}if(g&&!m){var b=e.constructor,x=t.constructor;b==x||!("constructor"in e)||!("constructor"in t)||"function"==typeof b&&b instanceof b&&"function"==typeof x&&x instanceof x||(g=!1)}return a.delete(e),a.delete(t),g}},5819:(e,t,n)=>{var r="object"==typeof n.g&&n.g&&n.g.Object===Object&&n.g;e.exports=r},21356:(e,t,n)=>{var r=n(23112),i=n(89492),o=n(7464);e.exports=function(e){return r(e,o,i)}},53680:(e,t,n)=>{var r=n(75528);e.exports=function(e,t){var n=e.__data__;return r(t)?n["string"==typeof t?"string":"hash"]:n.map}},97788:(e,t,n)=>{var r=n(80312),i=n(7464);e.exports=function(e){for(var t=i(e),n=t.length;n--;){var o=t[n],s=e[o];t[n]=[o,s,r(s)]}return t}},33892:(e,t,n)=>{var r=n(91952),i=n(3360);e.exports=function(e,t){var n=i(e,t);return r(n)?n:void 0}},21776:(e,t,n)=>{var r=n(52700)(Object.getPrototypeOf,Object);e.exports=r},15434:(e,t,n)=>{var r=n(81424),i=Object.prototype,o=i.hasOwnProperty,s=i.toString,a=r?r.toStringTag:void 0;e.exports=function(e){var t=o.call(e,a),n=e[a];try{e[a]=void 0;var r=!0}catch(l){}var i=s.call(e);return r&&(t?e[a]=n:delete e[a]),i}},89492:(e,t,n)=>{var r=n(94724),i=n(59304),o=Object.prototype.propertyIsEnumerable,s=Object.getOwnPropertySymbols,a=s?function(e){return null==e?[]:(e=Object(e),r(s(e),(function(t){return o.call(e,t)})))}:i;e.exports=a},62864:(e,t,n)=>{var r=n(39472),i=n(12472),o=n(69476),s=n(91156),a=n(71984),l=n(21428),c=n(52492),u="[object Map]",d="[object Promise]",h="[object Set]",p="[object WeakMap]",f="[object DataView]",g=c(r),m=c(i),y=c(o),v=c(s),_=c(a),b=l;(r&&b(new r(new ArrayBuffer(1)))!=f||i&&b(new i)!=u||o&&b(o.resolve())!=d||s&&b(new s)!=h||a&&b(new a)!=p)&&(b=function(e){var t=l(e),n="[object Object]"==t?e.constructor:void 0,r=n?c(n):"";if(r)switch(r){case g:return f;case m:return u;case y:return d;case v:return h;case _:return p}return t}),e.exports=b},3360:e=>{e.exports=function(e,t){return null==e?void 0:e[t]}},53136:(e,t,n)=>{var r=n(55416),i=n(21384),o=n(21336),s=n(28452),a=n(48344),l=n(25120);e.exports=function(e,t,n){for(var c=-1,u=(t=r(t,e)).length,d=!1;++c<u;){var h=l(t[c]);if(!(d=null!=e&&n(e,h)))break;e=e[h]}return d||++c!=u?d:!!(u=null==e?0:e.length)&&a(u)&&s(h,u)&&(o(e)||i(e))}},96716:e=>{var t=RegExp("[\\u200d\\ud800-\\udfff\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff\\ufe0e\\ufe0f]");e.exports=function(e){return t.test(e)}},69620:(e,t,n)=>{var r=n(64212);e.exports=function(){this.__data__=r?r(null):{},this.size=0}},56600:e=>{e.exports=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}},99299:(e,t,n)=>{var r=n(64212),i=Object.prototype.hasOwnProperty;e.exports=function(e){var t=this.__data__;if(r){var n=t[e];return"__lodash_hash_undefined__"===n?void 0:n}return i.call(t,e)?t[e]:void 0}},54032:(e,t,n)=>{var r=n(64212),i=Object.prototype.hasOwnProperty;e.exports=function(e){var t=this.__data__;return r?void 0!==t[e]:i.call(t,e)}},73320:(e,t,n)=>{var r=n(64212);e.exports=function(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=r&&void 0===t?"__lodash_hash_undefined__":t,this}},68768:(e,t,n)=>{var r=n(81424),i=n(21384),o=n(21336),s=r?r.isConcatSpreadable:void 0;e.exports=function(e){return o(e)||i(e)||!!(s&&e&&e[s])}},28452:e=>{var t=/^(?:0|[1-9]\d*)$/;e.exports=function(e,n){var r=typeof e;return!!(n=null==n?9007199254740991:n)&&("number"==r||"symbol"!=r&&t.test(e))&&e>-1&&e%1==0&&e<n}},8280:(e,t,n)=>{var r=n(93096),i=n(58832),o=n(28452),s=n(49668);e.exports=function(e,t,n){if(!s(n))return!1;var a=typeof t;return!!("number"==a?i(n)&&o(t,n.length):"string"==a&&t in n)&&r(n[t],e)}},33256:(e,t,n)=>{var r=n(21336),i=n(78808),o=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,s=/^\w*$/;e.exports=function(e,t){if(r(e))return!1;var n=typeof e;return!("number"!=n&&"symbol"!=n&&"boolean"!=n&&null!=e&&!i(e))||(s.test(e)||!o.test(e)||null!=t&&e in Object(t))}},75528:e=>{e.exports=function(e){var t=typeof e;return"string"==t||"number"==t||"symbol"==t||"boolean"==t?"__proto__"!==e:null===e}},24752:(e,t,n)=>{var r=n(74768),i=function(){var e=/[^.]+$/.exec(r&&r.keys&&r.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}();e.exports=function(e){return!!i&&i in e}},59432:e=>{var t=Object.prototype;e.exports=function(e){var n=e&&e.constructor;return e===("function"==typeof n&&n.prototype||t)}},80312:(e,t,n)=>{var r=n(49668);e.exports=function(e){return e===e&&!r(e)}},5880:e=>{e.exports=function(){this.__data__=[],this.size=0}},27604:(e,t,n)=>{var r=n(81484),i=Array.prototype.splice;e.exports=function(e){var t=this.__data__,n=r(t,e);return!(n<0)&&(n==t.length-1?t.pop():i.call(t,n,1),--this.size,!0)}},2208:(e,t,n)=>{var r=n(81484);e.exports=function(e){var t=this.__data__,n=r(t,e);return n<0?void 0:t[n][1]}},96792:(e,t,n)=>{var r=n(81484);e.exports=function(e){return r(this.__data__,e)>-1}},49076:(e,t,n)=>{var r=n(81484);e.exports=function(e,t){var n=this.__data__,i=r(n,e);return i<0?(++this.size,n.push([e,t])):n[i][1]=t,this}},2984:(e,t,n)=>{var r=n(40432),i=n(48860),o=n(12472);e.exports=function(){this.size=0,this.__data__={hash:new r,map:new(o||i),string:new r}}},90888:(e,t,n)=>{var r=n(53680);e.exports=function(e){var t=r(this,e).delete(e);return this.size-=t?1:0,t}},33184:(e,t,n)=>{var r=n(53680);e.exports=function(e){return r(this,e).get(e)}},6472:(e,t,n)=>{var r=n(53680);e.exports=function(e){return r(this,e).has(e)}},93856:(e,t,n)=>{var r=n(53680);e.exports=function(e,t){var n=r(this,e),i=n.size;return n.set(e,t),this.size+=n.size==i?0:1,this}},6848:e=>{e.exports=function(e){var t=-1,n=Array(e.size);return e.forEach((function(e,r){n[++t]=[r,e]})),n}},73200:e=>{e.exports=function(e,t){return function(n){return null!=n&&(n[e]===t&&(void 0!==t||e in Object(n)))}}},36768:(e,t,n)=>{var r=n(5012);e.exports=function(e){var t=r(e,(function(e){return 500===n.size&&n.clear(),e})),n=t.cache;return t}},64212:(e,t,n)=>{var r=n(33892)(Object,"create");e.exports=r},30876:(e,t,n)=>{var r=n(52700)(Object.keys,Object);e.exports=r},86536:(e,t,n)=>{e=n.nmd(e);var r=n(5819),i=t&&!t.nodeType&&t,o=i&&e&&!e.nodeType&&e,s=o&&o.exports===i&&r.process,a=function(){try{var e=o&&o.require&&o.require("util").types;return e||s&&s.binding&&s.binding("util")}catch(t){}}();e.exports=a},68464:e=>{var t=Object.prototype.toString;e.exports=function(e){return t.call(e)}},52700:e=>{e.exports=function(e,t){return function(n){return e(t(n))}}},97864:(e,t,n)=>{var r=n(13168),i=Math.max;e.exports=function(e,t,n){return t=i(void 0===t?e.length-1:t,0),function(){for(var o=arguments,s=-1,a=i(o.length-t,0),l=Array(a);++s<a;)l[s]=o[t+s];s=-1;for(var c=Array(t+1);++s<t;)c[s]=o[s];return c[t]=n(l),r(e,this,c)}}},31560:(e,t,n)=>{var r=n(5819),i="object"==typeof self&&self&&self.Object===Object&&self,o=r||i||Function("return this")();e.exports=o},9068:e=>{e.exports=function(e){return this.__data__.set(e,"__lodash_hash_undefined__"),this}},99804:e=>{e.exports=function(e){return this.__data__.has(e)}},17712:e=>{e.exports=function(e){var t=-1,n=Array(e.size);return e.forEach((function(e){n[++t]=e})),n}},82448:(e,t,n)=>{var r=n(57484),i=n(98996)(r);e.exports=i},98996:e=>{var t=Date.now;e.exports=function(e){var n=0,r=0;return function(){var i=t(),o=16-(i-r);if(r=i,o>0){if(++n>=800)return arguments[0]}else n=0;return e.apply(void 0,arguments)}}},99088:(e,t,n)=>{var r=n(48860);e.exports=function(){this.__data__=new r,this.size=0}},80436:e=>{e.exports=function(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n}},47763:e=>{e.exports=function(e){return this.__data__.get(e)}},20092:e=>{e.exports=function(e){return this.__data__.has(e)}},65104:(e,t,n)=>{var r=n(48860),i=n(12472),o=n(20828);e.exports=function(e,t){var n=this.__data__;if(n instanceof r){var s=n.__data__;if(!i||s.length<199)return s.push([e,t]),this.size=++n.size,this;n=this.__data__=new o(s)}return n.set(e,t),this.size=n.size,this}},1328:e=>{e.exports=function(e,t,n){for(var r=n-1,i=e.length;++r<i;)if(e[r]===t)return r;return-1}},7016:(e,t,n)=>{var r=n(56916),i=n(96716),o=n(68235);e.exports=function(e){return i(e)?o(e):r(e)}},91016:(e,t,n)=>{var r=n(36768),i=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,o=/\\(\\)?/g,s=r((function(e){var t=[];return 46===e.charCodeAt(0)&&t.push(""),e.replace(i,(function(e,n,r,i){t.push(r?i.replace(o,"$1"):n||e)})),t}));e.exports=s},25120:(e,t,n)=>{var r=n(78808);e.exports=function(e){if("string"==typeof e||r(e))return e;var t=e+"";return"0"==t&&1/e==-Infinity?"-0":t}},52492:e=>{var t=Function.prototype.toString;e.exports=function(e){if(null!=e){try{return t.call(e)}catch(n){}try{return e+""}catch(n){}}return""}},73944:e=>{var t=/\s/;e.exports=function(e){for(var n=e.length;n--&&t.test(e.charAt(n)););return n}},68235:e=>{var t="\\ud800-\\udfff",n="["+t+"]",r="[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]",i="\\ud83c[\\udffb-\\udfff]",o="[^"+t+"]",s="(?:\\ud83c[\\udde6-\\uddff]){2}",a="[\\ud800-\\udbff][\\udc00-\\udfff]",l="(?:"+r+"|"+i+")"+"?",c="[\\ufe0e\\ufe0f]?",u=c+l+("(?:\\u200d(?:"+[o,s,a].join("|")+")"+c+l+")*"),d="(?:"+[o+r+"?",r,s,a,n].join("|")+")",h=RegExp(i+"(?="+i+")|"+d+u,"g");e.exports=function(e){return e.match(h)||[]}},8372:e=>{e.exports=function(e){return function(){return e}}},95976:(e,t,n)=>{var r=n(49668),i=n(82844),o=n(72060),s=Math.max,a=Math.min;e.exports=function(e,t,n){var l,c,u,d,h,p,f=0,g=!1,m=!1,y=!0;if("function"!=typeof e)throw new TypeError("Expected a function");function v(t){var n=l,r=c;return l=c=void 0,f=t,d=e.apply(r,n)}function _(e){var n=e-p;return void 0===p||n>=t||n<0||m&&e-f>=u}function b(){var e=i();if(_(e))return x(e);h=setTimeout(b,function(e){var n=t-(e-p);return m?a(n,u-(e-f)):n}(e))}function x(e){return h=void 0,y&&l?v(e):(l=c=void 0,d)}function S(){var e=i(),n=_(e);if(l=arguments,c=this,p=e,n){if(void 0===h)return function(e){return f=e,h=setTimeout(b,t),g?v(e):d}(p);if(m)return clearTimeout(h),h=setTimeout(b,t),v(p)}return void 0===h&&(h=setTimeout(b,t)),d}return t=o(t)||0,r(n)&&(g=!!n.leading,u=(m="maxWait"in n)?s(o(n.maxWait)||0,t):u,y="trailing"in n?!!n.trailing:y),S.cancel=function(){void 0!==h&&clearTimeout(h),f=0,l=p=c=h=void 0},S.flush=function(){return void 0===h?d:x(i())},S}},93096:e=>{e.exports=function(e,t){return e===t||e!==e&&t!==t}},32152:(e,t,n)=>{var r=n(56536),i=n(39896),o=n(2464),s=n(21336),a=n(8280);e.exports=function(e,t,n){var l=s(e)?r:i;return n&&a(e,t,n)&&(t=void 0),l(e,o(t,3))}},30864:(e,t,n)=>{var r=n(22956)(n(38248));e.exports=r},38248:(e,t,n)=>{var r=n(40748),i=n(2464),o=n(15836),s=Math.max;e.exports=function(e,t,n){var a=null==e?0:e.length;if(!a)return-1;var l=null==n?0:o(n);return l<0&&(l=s(a+l,0)),r(e,i(t,3),l)}},63768:(e,t,n)=>{var r=n(89800),i=n(23592);e.exports=function(e,t){return r(i(e,t),1)}},58772:(e,t,n)=>{var r=n(8916);e.exports=function(e,t,n){var i=null==e?void 0:r(e,t);return void 0===i?n:i}},18556:(e,t,n)=>{var r=n(16304),i=n(53136);e.exports=function(e,t){return null!=e&&i(e,t,r)}},44216:e=>{e.exports=function(e){return e}},21384:(e,t,n)=>{var r=n(84224),i=n(5744),o=Object.prototype,s=o.hasOwnProperty,a=o.propertyIsEnumerable,l=r(function(){return arguments}())?r:function(e){return i(e)&&s.call(e,"callee")&&!a.call(e,"callee")};e.exports=l},21336:e=>{var t=Array.isArray;e.exports=t},58832:(e,t,n)=>{var r=n(25640),i=n(48344);e.exports=function(e){return null!=e&&i(e.length)&&!r(e)}},8740:(e,t,n)=>{var r=n(21428),i=n(5744);e.exports=function(e){return!0===e||!1===e||i(e)&&"[object Boolean]"==r(e)}},50703:(e,t,n)=>{e=n.nmd(e);var r=n(31560),i=n(39664),o=t&&!t.nodeType&&t,s=o&&e&&!e.nodeType&&e,a=s&&s.exports===o?r.Buffer:void 0,l=(a?a.isBuffer:void 0)||i;e.exports=l},61264:(e,t,n)=>{var r=n(26048);e.exports=function(e,t){return r(e,t)}},25640:(e,t,n)=>{var r=n(21428),i=n(49668);e.exports=function(e){if(!i(e))return!1;var t=r(e);return"[object Function]"==t||"[object GeneratorFunction]"==t||"[object AsyncFunction]"==t||"[object Proxy]"==t}},48344:e=>{e.exports=function(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=9007199254740991}},52872:(e,t,n)=>{var r=n(49600);e.exports=function(e){return r(e)&&e!=+e}},71780:e=>{e.exports=function(e){return null==e}},49600:(e,t,n)=>{var r=n(21428),i=n(5744);e.exports=function(e){return"number"==typeof e||i(e)&&"[object Number]"==r(e)}},49668:e=>{e.exports=function(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}},5744:e=>{e.exports=function(e){return null!=e&&"object"==typeof e}},6479:(e,t,n)=>{var r=n(21428),i=n(21776),o=n(5744),s=Function.prototype,a=Object.prototype,l=s.toString,c=a.hasOwnProperty,u=l.call(Object);e.exports=function(e){if(!o(e)||"[object Object]"!=r(e))return!1;var t=i(e);if(null===t)return!0;var n=c.call(t,"constructor")&&t.constructor;return"function"==typeof n&&n instanceof n&&l.call(n)==u}},6296:(e,t,n)=>{var r=n(21428),i=n(21336),o=n(5744);e.exports=function(e){return"string"==typeof e||!i(e)&&o(e)&&"[object String]"==r(e)}},78808:(e,t,n)=>{var r=n(21428),i=n(5744);e.exports=function(e){return"symbol"==typeof e||i(e)&&"[object Symbol]"==r(e)}},83112:(e,t,n)=>{var r=n(75184),i=n(41888),o=n(86536),s=o&&o.isTypedArray,a=s?i(s):r;e.exports=a},7464:(e,t,n)=>{var r=n(34520),i=n(25064),o=n(58832);e.exports=function(e){return o(e)?r(e):i(e)}},11140:e=>{e.exports=function(e){var t=null==e?0:e.length;return t?e[t-1]:void 0}},78816:function(e,t,n){var r;e=n.nmd(e),function(){var i,o="Expected a function",s="__lodash_hash_undefined__",a="__lodash_placeholder__",l=16,c=32,u=64,d=128,h=256,p=1/0,f=9007199254740991,g=NaN,m=4294967295,y=[["ary",d],["bind",1],["bindKey",2],["curry",8],["curryRight",l],["flip",512],["partial",c],["partialRight",u],["rearg",h]],v="[object Arguments]",_="[object Array]",b="[object Boolean]",x="[object Date]",S="[object Error]",w="[object Function]",E="[object GeneratorFunction]",P="[object Map]",C="[object Number]",A="[object Object]",k="[object Promise]",j="[object RegExp]",I="[object Set]",G="[object String]",T="[object Symbol]",M="[object WeakMap]",O="[object ArrayBuffer]",R="[object DataView]",D="[object Float32Array]",N="[object Float64Array]",L="[object Int8Array]",V="[object Int16Array]",F="[object Int32Array]",z="[object Uint8Array]",B="[object Uint8ClampedArray]",U="[object Uint16Array]",W="[object Uint32Array]",H=/\b__p \+= '';/g,q=/\b(__p \+=) '' \+/g,X=/(__e\(.*?\)|\b__t\)) \+\n'';/g,Y=/&(?:amp|lt|gt|quot|#39);/g,K=/[&<>"']/g,Z=RegExp(Y.source),$=RegExp(K.source),J=/<%-([\s\S]+?)%>/g,Q=/<%([\s\S]+?)%>/g,ee=/<%=([\s\S]+?)%>/g,te=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,ne=/^\w*$/,re=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,ie=/[\\^$.*+?()[\]{}|]/g,oe=RegExp(ie.source),se=/^\s+/,ae=/\s/,le=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,ce=/\{\n\/\* \[wrapped with (.+)\] \*/,ue=/,? & /,de=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,he=/[()=,{}\[\]\/\s]/,pe=/\\(\\)?/g,fe=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,ge=/\w*$/,me=/^[-+]0x[0-9a-f]+$/i,ye=/^0b[01]+$/i,ve=/^\[object .+?Constructor\]$/,_e=/^0o[0-7]+$/i,be=/^(?:0|[1-9]\d*)$/,xe=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,Se=/($^)/,we=/['\n\r\u2028\u2029\\]/g,Ee="\\ud800-\\udfff",Pe="\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff",Ce="\\u2700-\\u27bf",Ae="a-z\\xdf-\\xf6\\xf8-\\xff",ke="A-Z\\xc0-\\xd6\\xd8-\\xde",je="\\ufe0e\\ufe0f",Ie="\\xac\\xb1\\xd7\\xf7\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf\\u2000-\\u206f \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",Ge="['\u2019]",Te="["+Ee+"]",Me="["+Ie+"]",Oe="["+Pe+"]",Re="\\d+",De="["+Ce+"]",Ne="["+Ae+"]",Le="[^"+Ee+Ie+Re+Ce+Ae+ke+"]",Ve="\\ud83c[\\udffb-\\udfff]",Fe="[^"+Ee+"]",ze="(?:\\ud83c[\\udde6-\\uddff]){2}",Be="[\\ud800-\\udbff][\\udc00-\\udfff]",Ue="["+ke+"]",We="\\u200d",He="(?:"+Ne+"|"+Le+")",qe="(?:"+Ue+"|"+Le+")",Xe="(?:['\u2019](?:d|ll|m|re|s|t|ve))?",Ye="(?:['\u2019](?:D|LL|M|RE|S|T|VE))?",Ke="(?:"+Oe+"|"+Ve+")"+"?",Ze="["+je+"]?",$e=Ze+Ke+("(?:"+We+"(?:"+[Fe,ze,Be].join("|")+")"+Ze+Ke+")*"),Je="(?:"+[De,ze,Be].join("|")+")"+$e,Qe="(?:"+[Fe+Oe+"?",Oe,ze,Be,Te].join("|")+")",et=RegExp(Ge,"g"),tt=RegExp(Oe,"g"),nt=RegExp(Ve+"(?="+Ve+")|"+Qe+$e,"g"),rt=RegExp([Ue+"?"+Ne+"+"+Xe+"(?="+[Me,Ue,"$"].join("|")+")",qe+"+"+Ye+"(?="+[Me,Ue+He,"$"].join("|")+")",Ue+"?"+He+"+"+Xe,Ue+"+"+Ye,"\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])","\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",Re,Je].join("|"),"g"),it=RegExp("["+We+Ee+Pe+je+"]"),ot=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,st=["Array","Buffer","DataView","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Promise","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","clearTimeout","isFinite","parseInt","setTimeout"],at=-1,lt={};lt[D]=lt[N]=lt[L]=lt[V]=lt[F]=lt[z]=lt[B]=lt[U]=lt[W]=!0,lt[v]=lt[_]=lt[O]=lt[b]=lt[R]=lt[x]=lt[S]=lt[w]=lt[P]=lt[C]=lt[A]=lt[j]=lt[I]=lt[G]=lt[M]=!1;var ct={};ct[v]=ct[_]=ct[O]=ct[R]=ct[b]=ct[x]=ct[D]=ct[N]=ct[L]=ct[V]=ct[F]=ct[P]=ct[C]=ct[A]=ct[j]=ct[I]=ct[G]=ct[T]=ct[z]=ct[B]=ct[U]=ct[W]=!0,ct[S]=ct[w]=ct[M]=!1;var ut={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},dt=parseFloat,ht=parseInt,pt="object"==typeof n.g&&n.g&&n.g.Object===Object&&n.g,ft="object"==typeof self&&self&&self.Object===Object&&self,gt=pt||ft||Function("return this")(),mt=t&&!t.nodeType&&t,yt=mt&&e&&!e.nodeType&&e,vt=yt&&yt.exports===mt,_t=vt&&pt.process,bt=function(){try{var e=yt&&yt.require&&yt.require("util").types;return e||_t&&_t.binding&&_t.binding("util")}catch(t){}}(),xt=bt&&bt.isArrayBuffer,St=bt&&bt.isDate,wt=bt&&bt.isMap,Et=bt&&bt.isRegExp,Pt=bt&&bt.isSet,Ct=bt&&bt.isTypedArray;function At(e,t,n){switch(n.length){case 0:return e.call(t);case 1:return e.call(t,n[0]);case 2:return e.call(t,n[0],n[1]);case 3:return e.call(t,n[0],n[1],n[2])}return e.apply(t,n)}function kt(e,t,n,r){for(var i=-1,o=null==e?0:e.length;++i<o;){var s=e[i];t(r,s,n(s),e)}return r}function jt(e,t){for(var n=-1,r=null==e?0:e.length;++n<r&&!1!==t(e[n],n,e););return e}function It(e,t){for(var n=null==e?0:e.length;n--&&!1!==t(e[n],n,e););return e}function Gt(e,t){for(var n=-1,r=null==e?0:e.length;++n<r;)if(!t(e[n],n,e))return!1;return!0}function Tt(e,t){for(var n=-1,r=null==e?0:e.length,i=0,o=[];++n<r;){var s=e[n];t(s,n,e)&&(o[i++]=s)}return o}function Mt(e,t){return!!(null==e?0:e.length)&&Ut(e,t,0)>-1}function Ot(e,t,n){for(var r=-1,i=null==e?0:e.length;++r<i;)if(n(t,e[r]))return!0;return!1}function Rt(e,t){for(var n=-1,r=null==e?0:e.length,i=Array(r);++n<r;)i[n]=t(e[n],n,e);return i}function Dt(e,t){for(var n=-1,r=t.length,i=e.length;++n<r;)e[i+n]=t[n];return e}function Nt(e,t,n,r){var i=-1,o=null==e?0:e.length;for(r&&o&&(n=e[++i]);++i<o;)n=t(n,e[i],i,e);return n}function Lt(e,t,n,r){var i=null==e?0:e.length;for(r&&i&&(n=e[--i]);i--;)n=t(n,e[i],i,e);return n}function Vt(e,t){for(var n=-1,r=null==e?0:e.length;++n<r;)if(t(e[n],n,e))return!0;return!1}var Ft=Xt("length");function zt(e,t,n){var r;return n(e,(function(e,n,i){if(t(e,n,i))return r=n,!1})),r}function Bt(e,t,n,r){for(var i=e.length,o=n+(r?1:-1);r?o--:++o<i;)if(t(e[o],o,e))return o;return-1}function Ut(e,t,n){return t===t?function(e,t,n){var r=n-1,i=e.length;for(;++r<i;)if(e[r]===t)return r;return-1}(e,t,n):Bt(e,Ht,n)}function Wt(e,t,n,r){for(var i=n-1,o=e.length;++i<o;)if(r(e[i],t))return i;return-1}function Ht(e){return e!==e}function qt(e,t){var n=null==e?0:e.length;return n?Zt(e,t)/n:g}function Xt(e){return function(t){return null==t?i:t[e]}}function Yt(e){return function(t){return null==e?i:e[t]}}function Kt(e,t,n,r,i){return i(e,(function(e,i,o){n=r?(r=!1,e):t(n,e,i,o)})),n}function Zt(e,t){for(var n,r=-1,o=e.length;++r<o;){var s=t(e[r]);s!==i&&(n=n===i?s:n+s)}return n}function $t(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r}function Jt(e){return e?e.slice(0,mn(e)+1).replace(se,""):e}function Qt(e){return function(t){return e(t)}}function en(e,t){return Rt(t,(function(t){return e[t]}))}function tn(e,t){return e.has(t)}function nn(e,t){for(var n=-1,r=e.length;++n<r&&Ut(t,e[n],0)>-1;);return n}function rn(e,t){for(var n=e.length;n--&&Ut(t,e[n],0)>-1;);return n}var on=Yt({"\xc0":"A","\xc1":"A","\xc2":"A","\xc3":"A","\xc4":"A","\xc5":"A","\xe0":"a","\xe1":"a","\xe2":"a","\xe3":"a","\xe4":"a","\xe5":"a","\xc7":"C","\xe7":"c","\xd0":"D","\xf0":"d","\xc8":"E","\xc9":"E","\xca":"E","\xcb":"E","\xe8":"e","\xe9":"e","\xea":"e","\xeb":"e","\xcc":"I","\xcd":"I","\xce":"I","\xcf":"I","\xec":"i","\xed":"i","\xee":"i","\xef":"i","\xd1":"N","\xf1":"n","\xd2":"O","\xd3":"O","\xd4":"O","\xd5":"O","\xd6":"O","\xd8":"O","\xf2":"o","\xf3":"o","\xf4":"o","\xf5":"o","\xf6":"o","\xf8":"o","\xd9":"U","\xda":"U","\xdb":"U","\xdc":"U","\xf9":"u","\xfa":"u","\xfb":"u","\xfc":"u","\xdd":"Y","\xfd":"y","\xff":"y","\xc6":"Ae","\xe6":"ae","\xde":"Th","\xfe":"th","\xdf":"ss","\u0100":"A","\u0102":"A","\u0104":"A","\u0101":"a","\u0103":"a","\u0105":"a","\u0106":"C","\u0108":"C","\u010a":"C","\u010c":"C","\u0107":"c","\u0109":"c","\u010b":"c","\u010d":"c","\u010e":"D","\u0110":"D","\u010f":"d","\u0111":"d","\u0112":"E","\u0114":"E","\u0116":"E","\u0118":"E","\u011a":"E","\u0113":"e","\u0115":"e","\u0117":"e","\u0119":"e","\u011b":"e","\u011c":"G","\u011e":"G","\u0120":"G","\u0122":"G","\u011d":"g","\u011f":"g","\u0121":"g","\u0123":"g","\u0124":"H","\u0126":"H","\u0125":"h","\u0127":"h","\u0128":"I","\u012a":"I","\u012c":"I","\u012e":"I","\u0130":"I","\u0129":"i","\u012b":"i","\u012d":"i","\u012f":"i","\u0131":"i","\u0134":"J","\u0135":"j","\u0136":"K","\u0137":"k","\u0138":"k","\u0139":"L","\u013b":"L","\u013d":"L","\u013f":"L","\u0141":"L","\u013a":"l","\u013c":"l","\u013e":"l","\u0140":"l","\u0142":"l","\u0143":"N","\u0145":"N","\u0147":"N","\u014a":"N","\u0144":"n","\u0146":"n","\u0148":"n","\u014b":"n","\u014c":"O","\u014e":"O","\u0150":"O","\u014d":"o","\u014f":"o","\u0151":"o","\u0154":"R","\u0156":"R","\u0158":"R","\u0155":"r","\u0157":"r","\u0159":"r","\u015a":"S","\u015c":"S","\u015e":"S","\u0160":"S","\u015b":"s","\u015d":"s","\u015f":"s","\u0161":"s","\u0162":"T","\u0164":"T","\u0166":"T","\u0163":"t","\u0165":"t","\u0167":"t","\u0168":"U","\u016a":"U","\u016c":"U","\u016e":"U","\u0170":"U","\u0172":"U","\u0169":"u","\u016b":"u","\u016d":"u","\u016f":"u","\u0171":"u","\u0173":"u","\u0174":"W","\u0175":"w","\u0176":"Y","\u0177":"y","\u0178":"Y","\u0179":"Z","\u017b":"Z","\u017d":"Z","\u017a":"z","\u017c":"z","\u017e":"z","\u0132":"IJ","\u0133":"ij","\u0152":"Oe","\u0153":"oe","\u0149":"'n","\u017f":"s"}),sn=Yt({"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"});function an(e){return"\\"+ut[e]}function ln(e){return it.test(e)}function cn(e){var t=-1,n=Array(e.size);return e.forEach((function(e,r){n[++t]=[r,e]})),n}function un(e,t){return function(n){return e(t(n))}}function dn(e,t){for(var n=-1,r=e.length,i=0,o=[];++n<r;){var s=e[n];s!==t&&s!==a||(e[n]=a,o[i++]=n)}return o}function hn(e){var t=-1,n=Array(e.size);return e.forEach((function(e){n[++t]=e})),n}function pn(e){var t=-1,n=Array(e.size);return e.forEach((function(e){n[++t]=[e,e]})),n}function fn(e){return ln(e)?function(e){var t=nt.lastIndex=0;for(;nt.test(e);)++t;return t}(e):Ft(e)}function gn(e){return ln(e)?function(e){return e.match(nt)||[]}(e):function(e){return e.split("")}(e)}function mn(e){for(var t=e.length;t--&&ae.test(e.charAt(t)););return t}var yn=Yt({"&amp;":"&","&lt;":"<","&gt;":">","&quot;":'"',"&#39;":"'"});var vn=function e(t){var n=(t=null==t?gt:vn.defaults(gt.Object(),t,vn.pick(gt,st))).Array,r=t.Date,ae=t.Error,Ee=t.Function,Pe=t.Math,Ce=t.Object,Ae=t.RegExp,ke=t.String,je=t.TypeError,Ie=n.prototype,Ge=Ee.prototype,Te=Ce.prototype,Me=t["__core-js_shared__"],Oe=Ge.toString,Re=Te.hasOwnProperty,De=0,Ne=function(){var e=/[^.]+$/.exec(Me&&Me.keys&&Me.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}(),Le=Te.toString,Ve=Oe.call(Ce),Fe=gt._,ze=Ae("^"+Oe.call(Re).replace(ie,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),Be=vt?t.Buffer:i,Ue=t.Symbol,We=t.Uint8Array,He=Be?Be.allocUnsafe:i,qe=un(Ce.getPrototypeOf,Ce),Xe=Ce.create,Ye=Te.propertyIsEnumerable,Ke=Ie.splice,Ze=Ue?Ue.isConcatSpreadable:i,$e=Ue?Ue.iterator:i,Je=Ue?Ue.toStringTag:i,Qe=function(){try{var e=ho(Ce,"defineProperty");return e({},"",{}),e}catch(t){}}(),nt=t.clearTimeout!==gt.clearTimeout&&t.clearTimeout,it=r&&r.now!==gt.Date.now&&r.now,ut=t.setTimeout!==gt.setTimeout&&t.setTimeout,pt=Pe.ceil,ft=Pe.floor,mt=Ce.getOwnPropertySymbols,yt=Be?Be.isBuffer:i,_t=t.isFinite,bt=Ie.join,Ft=un(Ce.keys,Ce),Yt=Pe.max,_n=Pe.min,bn=r.now,xn=t.parseInt,Sn=Pe.random,wn=Ie.reverse,En=ho(t,"DataView"),Pn=ho(t,"Map"),Cn=ho(t,"Promise"),An=ho(t,"Set"),kn=ho(t,"WeakMap"),jn=ho(Ce,"create"),In=kn&&new kn,Gn={},Tn=Lo(En),Mn=Lo(Pn),On=Lo(Cn),Rn=Lo(An),Dn=Lo(kn),Nn=Ue?Ue.prototype:i,Ln=Nn?Nn.valueOf:i,Vn=Nn?Nn.toString:i;function Fn(e){if(ta(e)&&!Ws(e)&&!(e instanceof Wn)){if(e instanceof Un)return e;if(Re.call(e,"__wrapped__"))return Vo(e)}return new Un(e)}var zn=function(){function e(){}return function(t){if(!ea(t))return{};if(Xe)return Xe(t);e.prototype=t;var n=new e;return e.prototype=i,n}}();function Bn(){}function Un(e,t){this.__wrapped__=e,this.__actions__=[],this.__chain__=!!t,this.__index__=0,this.__values__=i}function Wn(e){this.__wrapped__=e,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=m,this.__views__=[]}function Hn(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function qn(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function Xn(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function Yn(e){var t=-1,n=null==e?0:e.length;for(this.__data__=new Xn;++t<n;)this.add(e[t])}function Kn(e){var t=this.__data__=new qn(e);this.size=t.size}function Zn(e,t){var n=Ws(e),r=!n&&Us(e),i=!n&&!r&&Ys(e),o=!n&&!r&&!i&&ca(e),s=n||r||i||o,a=s?$t(e.length,ke):[],l=a.length;for(var c in e)!t&&!Re.call(e,c)||s&&("length"==c||i&&("offset"==c||"parent"==c)||o&&("buffer"==c||"byteLength"==c||"byteOffset"==c)||_o(c,l))||a.push(c);return a}function $n(e){var t=e.length;return t?e[Yr(0,t-1)]:i}function Jn(e,t){return Ro(ji(e),ar(t,0,e.length))}function Qn(e){return Ro(ji(e))}function er(e,t,n){(n!==i&&!Fs(e[t],n)||n===i&&!(t in e))&&or(e,t,n)}function tr(e,t,n){var r=e[t];Re.call(e,t)&&Fs(r,n)&&(n!==i||t in e)||or(e,t,n)}function nr(e,t){for(var n=e.length;n--;)if(Fs(e[n][0],t))return n;return-1}function rr(e,t,n,r){return hr(e,(function(e,i,o){t(r,e,n(e),o)})),r}function ir(e,t){return e&&Ii(t,Ga(t),e)}function or(e,t,n){"__proto__"==t&&Qe?Qe(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n}function sr(e,t){for(var r=-1,o=t.length,s=n(o),a=null==e;++r<o;)s[r]=a?i:Ca(e,t[r]);return s}function ar(e,t,n){return e===e&&(n!==i&&(e=e<=n?e:n),t!==i&&(e=e>=t?e:t)),e}function lr(e,t,n,r,o,s){var a,l=1&t,c=2&t,u=4&t;if(n&&(a=o?n(e,r,o,s):n(e)),a!==i)return a;if(!ea(e))return e;var d=Ws(e);if(d){if(a=function(e){var t=e.length,n=new e.constructor(t);t&&"string"==typeof e[0]&&Re.call(e,"index")&&(n.index=e.index,n.input=e.input);return n}(e),!l)return ji(e,a)}else{var h=go(e),p=h==w||h==E;if(Ys(e))return wi(e,l);if(h==A||h==v||p&&!o){if(a=c||p?{}:yo(e),!l)return c?function(e,t){return Ii(e,fo(e),t)}(e,function(e,t){return e&&Ii(t,Ta(t),e)}(a,e)):function(e,t){return Ii(e,po(e),t)}(e,ir(a,e))}else{if(!ct[h])return o?e:{};a=function(e,t,n){var r=e.constructor;switch(t){case O:return Ei(e);case b:case x:return new r(+e);case R:return function(e,t){var n=t?Ei(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.byteLength)}(e,n);case D:case N:case L:case V:case F:case z:case B:case U:case W:return Pi(e,n);case P:return new r;case C:case G:return new r(e);case j:return function(e){var t=new e.constructor(e.source,ge.exec(e));return t.lastIndex=e.lastIndex,t}(e);case I:return new r;case T:return i=e,Ln?Ce(Ln.call(i)):{}}var i}(e,h,l)}}s||(s=new Kn);var f=s.get(e);if(f)return f;s.set(e,a),sa(e)?e.forEach((function(r){a.add(lr(r,t,n,r,e,s))})):na(e)&&e.forEach((function(r,i){a.set(i,lr(r,t,n,i,e,s))}));var g=d?i:(u?c?io:ro:c?Ta:Ga)(e);return jt(g||e,(function(r,i){g&&(r=e[i=r]),tr(a,i,lr(r,t,n,i,e,s))})),a}function cr(e,t,n){var r=n.length;if(null==e)return!r;for(e=Ce(e);r--;){var o=n[r],s=t[o],a=e[o];if(a===i&&!(o in e)||!s(a))return!1}return!0}function ur(e,t,n){if("function"!=typeof e)throw new je(o);return Go((function(){e.apply(i,n)}),t)}function dr(e,t,n,r){var i=-1,o=Mt,s=!0,a=e.length,l=[],c=t.length;if(!a)return l;n&&(t=Rt(t,Qt(n))),r?(o=Ot,s=!1):t.length>=200&&(o=tn,s=!1,t=new Yn(t));e:for(;++i<a;){var u=e[i],d=null==n?u:n(u);if(u=r||0!==u?u:0,s&&d===d){for(var h=c;h--;)if(t[h]===d)continue e;l.push(u)}else o(t,d,r)||l.push(u)}return l}Fn.templateSettings={escape:J,evaluate:Q,interpolate:ee,variable:"",imports:{_:Fn}},Fn.prototype=Bn.prototype,Fn.prototype.constructor=Fn,Un.prototype=zn(Bn.prototype),Un.prototype.constructor=Un,Wn.prototype=zn(Bn.prototype),Wn.prototype.constructor=Wn,Hn.prototype.clear=function(){this.__data__=jn?jn(null):{},this.size=0},Hn.prototype.delete=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t},Hn.prototype.get=function(e){var t=this.__data__;if(jn){var n=t[e];return n===s?i:n}return Re.call(t,e)?t[e]:i},Hn.prototype.has=function(e){var t=this.__data__;return jn?t[e]!==i:Re.call(t,e)},Hn.prototype.set=function(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=jn&&t===i?s:t,this},qn.prototype.clear=function(){this.__data__=[],this.size=0},qn.prototype.delete=function(e){var t=this.__data__,n=nr(t,e);return!(n<0)&&(n==t.length-1?t.pop():Ke.call(t,n,1),--this.size,!0)},qn.prototype.get=function(e){var t=this.__data__,n=nr(t,e);return n<0?i:t[n][1]},qn.prototype.has=function(e){return nr(this.__data__,e)>-1},qn.prototype.set=function(e,t){var n=this.__data__,r=nr(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this},Xn.prototype.clear=function(){this.size=0,this.__data__={hash:new Hn,map:new(Pn||qn),string:new Hn}},Xn.prototype.delete=function(e){var t=co(this,e).delete(e);return this.size-=t?1:0,t},Xn.prototype.get=function(e){return co(this,e).get(e)},Xn.prototype.has=function(e){return co(this,e).has(e)},Xn.prototype.set=function(e,t){var n=co(this,e),r=n.size;return n.set(e,t),this.size+=n.size==r?0:1,this},Yn.prototype.add=Yn.prototype.push=function(e){return this.__data__.set(e,s),this},Yn.prototype.has=function(e){return this.__data__.has(e)},Kn.prototype.clear=function(){this.__data__=new qn,this.size=0},Kn.prototype.delete=function(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n},Kn.prototype.get=function(e){return this.__data__.get(e)},Kn.prototype.has=function(e){return this.__data__.has(e)},Kn.prototype.set=function(e,t){var n=this.__data__;if(n instanceof qn){var r=n.__data__;if(!Pn||r.length<199)return r.push([e,t]),this.size=++n.size,this;n=this.__data__=new Xn(r)}return n.set(e,t),this.size=n.size,this};var hr=Mi(br),pr=Mi(xr,!0);function fr(e,t){var n=!0;return hr(e,(function(e,r,i){return n=!!t(e,r,i)})),n}function gr(e,t,n){for(var r=-1,o=e.length;++r<o;){var s=e[r],a=t(s);if(null!=a&&(l===i?a===a&&!la(a):n(a,l)))var l=a,c=s}return c}function mr(e,t){var n=[];return hr(e,(function(e,r,i){t(e,r,i)&&n.push(e)})),n}function yr(e,t,n,r,i){var o=-1,s=e.length;for(n||(n=vo),i||(i=[]);++o<s;){var a=e[o];t>0&&n(a)?t>1?yr(a,t-1,n,r,i):Dt(i,a):r||(i[i.length]=a)}return i}var vr=Oi(),_r=Oi(!0);function br(e,t){return e&&vr(e,t,Ga)}function xr(e,t){return e&&_r(e,t,Ga)}function Sr(e,t){return Tt(t,(function(t){return $s(e[t])}))}function wr(e,t){for(var n=0,r=(t=_i(t,e)).length;null!=e&&n<r;)e=e[No(t[n++])];return n&&n==r?e:i}function Er(e,t,n){var r=t(e);return Ws(e)?r:Dt(r,n(e))}function Pr(e){return null==e?e===i?"[object Undefined]":"[object Null]":Je&&Je in Ce(e)?function(e){var t=Re.call(e,Je),n=e[Je];try{e[Je]=i;var r=!0}catch(s){}var o=Le.call(e);r&&(t?e[Je]=n:delete e[Je]);return o}(e):function(e){return Le.call(e)}(e)}function Cr(e,t){return e>t}function Ar(e,t){return null!=e&&Re.call(e,t)}function kr(e,t){return null!=e&&t in Ce(e)}function jr(e,t,r){for(var o=r?Ot:Mt,s=e[0].length,a=e.length,l=a,c=n(a),u=1/0,d=[];l--;){var h=e[l];l&&t&&(h=Rt(h,Qt(t))),u=_n(h.length,u),c[l]=!r&&(t||s>=120&&h.length>=120)?new Yn(l&&h):i}h=e[0];var p=-1,f=c[0];e:for(;++p<s&&d.length<u;){var g=h[p],m=t?t(g):g;if(g=r||0!==g?g:0,!(f?tn(f,m):o(d,m,r))){for(l=a;--l;){var y=c[l];if(!(y?tn(y,m):o(e[l],m,r)))continue e}f&&f.push(m),d.push(g)}}return d}function Ir(e,t,n){var r=null==(e=ko(e,t=_i(t,e)))?e:e[No(Zo(t))];return null==r?i:At(r,e,n)}function Gr(e){return ta(e)&&Pr(e)==v}function Tr(e,t,n,r,o){return e===t||(null==e||null==t||!ta(e)&&!ta(t)?e!==e&&t!==t:function(e,t,n,r,o,s){var a=Ws(e),l=Ws(t),c=a?_:go(e),u=l?_:go(t),d=(c=c==v?A:c)==A,h=(u=u==v?A:u)==A,p=c==u;if(p&&Ys(e)){if(!Ys(t))return!1;a=!0,d=!1}if(p&&!d)return s||(s=new Kn),a||ca(e)?to(e,t,n,r,o,s):function(e,t,n,r,i,o,s){switch(n){case R:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case O:return!(e.byteLength!=t.byteLength||!o(new We(e),new We(t)));case b:case x:case C:return Fs(+e,+t);case S:return e.name==t.name&&e.message==t.message;case j:case G:return e==t+"";case P:var a=cn;case I:var l=1&r;if(a||(a=hn),e.size!=t.size&&!l)return!1;var c=s.get(e);if(c)return c==t;r|=2,s.set(e,t);var u=to(a(e),a(t),r,i,o,s);return s.delete(e),u;case T:if(Ln)return Ln.call(e)==Ln.call(t)}return!1}(e,t,c,n,r,o,s);if(!(1&n)){var f=d&&Re.call(e,"__wrapped__"),g=h&&Re.call(t,"__wrapped__");if(f||g){var m=f?e.value():e,y=g?t.value():t;return s||(s=new Kn),o(m,y,n,r,s)}}if(!p)return!1;return s||(s=new Kn),function(e,t,n,r,o,s){var a=1&n,l=ro(e),c=l.length,u=ro(t),d=u.length;if(c!=d&&!a)return!1;var h=c;for(;h--;){var p=l[h];if(!(a?p in t:Re.call(t,p)))return!1}var f=s.get(e),g=s.get(t);if(f&&g)return f==t&&g==e;var m=!0;s.set(e,t),s.set(t,e);var y=a;for(;++h<c;){var v=e[p=l[h]],_=t[p];if(r)var b=a?r(_,v,p,t,e,s):r(v,_,p,e,t,s);if(!(b===i?v===_||o(v,_,n,r,s):b)){m=!1;break}y||(y="constructor"==p)}if(m&&!y){var x=e.constructor,S=t.constructor;x==S||!("constructor"in e)||!("constructor"in t)||"function"==typeof x&&x instanceof x&&"function"==typeof S&&S instanceof S||(m=!1)}return s.delete(e),s.delete(t),m}(e,t,n,r,o,s)}(e,t,n,r,Tr,o))}function Mr(e,t,n,r){var o=n.length,s=o,a=!r;if(null==e)return!s;for(e=Ce(e);o--;){var l=n[o];if(a&&l[2]?l[1]!==e[l[0]]:!(l[0]in e))return!1}for(;++o<s;){var c=(l=n[o])[0],u=e[c],d=l[1];if(a&&l[2]){if(u===i&&!(c in e))return!1}else{var h=new Kn;if(r)var p=r(u,d,c,e,t,h);if(!(p===i?Tr(d,u,3,r,h):p))return!1}}return!0}function Or(e){return!(!ea(e)||(t=e,Ne&&Ne in t))&&($s(e)?ze:ve).test(Lo(e));var t}function Rr(e){return"function"==typeof e?e:null==e?rl:"object"==typeof e?Ws(e)?zr(e[0],e[1]):Fr(e):hl(e)}function Dr(e){if(!Eo(e))return Ft(e);var t=[];for(var n in Ce(e))Re.call(e,n)&&"constructor"!=n&&t.push(n);return t}function Nr(e){if(!ea(e))return function(e){var t=[];if(null!=e)for(var n in Ce(e))t.push(n);return t}(e);var t=Eo(e),n=[];for(var r in e)("constructor"!=r||!t&&Re.call(e,r))&&n.push(r);return n}function Lr(e,t){return e<t}function Vr(e,t){var r=-1,i=qs(e)?n(e.length):[];return hr(e,(function(e,n,o){i[++r]=t(e,n,o)})),i}function Fr(e){var t=uo(e);return 1==t.length&&t[0][2]?Co(t[0][0],t[0][1]):function(n){return n===e||Mr(n,e,t)}}function zr(e,t){return xo(e)&&Po(t)?Co(No(e),t):function(n){var r=Ca(n,e);return r===i&&r===t?Aa(n,e):Tr(t,r,3)}}function Br(e,t,n,r,o){e!==t&&vr(t,(function(s,a){if(o||(o=new Kn),ea(s))!function(e,t,n,r,o,s,a){var l=jo(e,n),c=jo(t,n),u=a.get(c);if(u)return void er(e,n,u);var d=s?s(l,c,n+"",e,t,a):i,h=d===i;if(h){var p=Ws(c),f=!p&&Ys(c),g=!p&&!f&&ca(c);d=c,p||f||g?Ws(l)?d=l:Xs(l)?d=ji(l):f?(h=!1,d=wi(c,!0)):g?(h=!1,d=Pi(c,!0)):d=[]:ia(c)||Us(c)?(d=l,Us(l)?d=ya(l):ea(l)&&!$s(l)||(d=yo(c))):h=!1}h&&(a.set(c,d),o(d,c,r,s,a),a.delete(c));er(e,n,d)}(e,t,a,n,Br,r,o);else{var l=r?r(jo(e,a),s,a+"",e,t,o):i;l===i&&(l=s),er(e,a,l)}}),Ta)}function Ur(e,t){var n=e.length;if(n)return _o(t+=t<0?n:0,n)?e[t]:i}function Wr(e,t,n){t=t.length?Rt(t,(function(e){return Ws(e)?function(t){return wr(t,1===e.length?e[0]:e)}:e})):[rl];var r=-1;t=Rt(t,Qt(lo()));var i=Vr(e,(function(e,n,i){var o=Rt(t,(function(t){return t(e)}));return{criteria:o,index:++r,value:e}}));return function(e,t){var n=e.length;for(e.sort(t);n--;)e[n]=e[n].value;return e}(i,(function(e,t){return function(e,t,n){var r=-1,i=e.criteria,o=t.criteria,s=i.length,a=n.length;for(;++r<s;){var l=Ci(i[r],o[r]);if(l)return r>=a?l:l*("desc"==n[r]?-1:1)}return e.index-t.index}(e,t,n)}))}function Hr(e,t,n){for(var r=-1,i=t.length,o={};++r<i;){var s=t[r],a=wr(e,s);n(a,s)&&Qr(o,_i(s,e),a)}return o}function qr(e,t,n,r){var i=r?Wt:Ut,o=-1,s=t.length,a=e;for(e===t&&(t=ji(t)),n&&(a=Rt(e,Qt(n)));++o<s;)for(var l=0,c=t[o],u=n?n(c):c;(l=i(a,u,l,r))>-1;)a!==e&&Ke.call(a,l,1),Ke.call(e,l,1);return e}function Xr(e,t){for(var n=e?t.length:0,r=n-1;n--;){var i=t[n];if(n==r||i!==o){var o=i;_o(i)?Ke.call(e,i,1):di(e,i)}}return e}function Yr(e,t){return e+ft(Sn()*(t-e+1))}function Kr(e,t){var n="";if(!e||t<1||t>f)return n;do{t%2&&(n+=e),(t=ft(t/2))&&(e+=e)}while(t);return n}function Zr(e,t){return To(Ao(e,t,rl),e+"")}function $r(e){return $n(Fa(e))}function Jr(e,t){var n=Fa(e);return Ro(n,ar(t,0,n.length))}function Qr(e,t,n,r){if(!ea(e))return e;for(var o=-1,s=(t=_i(t,e)).length,a=s-1,l=e;null!=l&&++o<s;){var c=No(t[o]),u=n;if("__proto__"===c||"constructor"===c||"prototype"===c)return e;if(o!=a){var d=l[c];(u=r?r(d,c,l):i)===i&&(u=ea(d)?d:_o(t[o+1])?[]:{})}tr(l,c,u),l=l[c]}return e}var ei=In?function(e,t){return In.set(e,t),e}:rl,ti=Qe?function(e,t){return Qe(e,"toString",{configurable:!0,enumerable:!1,value:el(t),writable:!0})}:rl;function ni(e){return Ro(Fa(e))}function ri(e,t,r){var i=-1,o=e.length;t<0&&(t=-t>o?0:o+t),(r=r>o?o:r)<0&&(r+=o),o=t>r?0:r-t>>>0,t>>>=0;for(var s=n(o);++i<o;)s[i]=e[i+t];return s}function ii(e,t){var n;return hr(e,(function(e,r,i){return!(n=t(e,r,i))})),!!n}function oi(e,t,n){var r=0,i=null==e?r:e.length;if("number"==typeof t&&t===t&&i<=2147483647){for(;r<i;){var o=r+i>>>1,s=e[o];null!==s&&!la(s)&&(n?s<=t:s<t)?r=o+1:i=o}return i}return si(e,t,rl,n)}function si(e,t,n,r){var o=0,s=null==e?0:e.length;if(0===s)return 0;for(var a=(t=n(t))!==t,l=null===t,c=la(t),u=t===i;o<s;){var d=ft((o+s)/2),h=n(e[d]),p=h!==i,f=null===h,g=h===h,m=la(h);if(a)var y=r||g;else y=u?g&&(r||p):l?g&&p&&(r||!f):c?g&&p&&!f&&(r||!m):!f&&!m&&(r?h<=t:h<t);y?o=d+1:s=d}return _n(s,4294967294)}function ai(e,t){for(var n=-1,r=e.length,i=0,o=[];++n<r;){var s=e[n],a=t?t(s):s;if(!n||!Fs(a,l)){var l=a;o[i++]=0===s?0:s}}return o}function li(e){return"number"==typeof e?e:la(e)?g:+e}function ci(e){if("string"==typeof e)return e;if(Ws(e))return Rt(e,ci)+"";if(la(e))return Vn?Vn.call(e):"";var t=e+"";return"0"==t&&1/e==-1/0?"-0":t}function ui(e,t,n){var r=-1,i=Mt,o=e.length,s=!0,a=[],l=a;if(n)s=!1,i=Ot;else if(o>=200){var c=t?null:Ki(e);if(c)return hn(c);s=!1,i=tn,l=new Yn}else l=t?[]:a;e:for(;++r<o;){var u=e[r],d=t?t(u):u;if(u=n||0!==u?u:0,s&&d===d){for(var h=l.length;h--;)if(l[h]===d)continue e;t&&l.push(d),a.push(u)}else i(l,d,n)||(l!==a&&l.push(d),a.push(u))}return a}function di(e,t){return null==(e=ko(e,t=_i(t,e)))||delete e[No(Zo(t))]}function hi(e,t,n,r){return Qr(e,t,n(wr(e,t)),r)}function pi(e,t,n,r){for(var i=e.length,o=r?i:-1;(r?o--:++o<i)&&t(e[o],o,e););return n?ri(e,r?0:o,r?o+1:i):ri(e,r?o+1:0,r?i:o)}function fi(e,t){var n=e;return n instanceof Wn&&(n=n.value()),Nt(t,(function(e,t){return t.func.apply(t.thisArg,Dt([e],t.args))}),n)}function gi(e,t,r){var i=e.length;if(i<2)return i?ui(e[0]):[];for(var o=-1,s=n(i);++o<i;)for(var a=e[o],l=-1;++l<i;)l!=o&&(s[o]=dr(s[o]||a,e[l],t,r));return ui(yr(s,1),t,r)}function mi(e,t,n){for(var r=-1,o=e.length,s=t.length,a={};++r<o;){var l=r<s?t[r]:i;n(a,e[r],l)}return a}function yi(e){return Xs(e)?e:[]}function vi(e){return"function"==typeof e?e:rl}function _i(e,t){return Ws(e)?e:xo(e,t)?[e]:Do(va(e))}var bi=Zr;function xi(e,t,n){var r=e.length;return n=n===i?r:n,!t&&n>=r?e:ri(e,t,n)}var Si=nt||function(e){return gt.clearTimeout(e)};function wi(e,t){if(t)return e.slice();var n=e.length,r=He?He(n):new e.constructor(n);return e.copy(r),r}function Ei(e){var t=new e.constructor(e.byteLength);return new We(t).set(new We(e)),t}function Pi(e,t){var n=t?Ei(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)}function Ci(e,t){if(e!==t){var n=e!==i,r=null===e,o=e===e,s=la(e),a=t!==i,l=null===t,c=t===t,u=la(t);if(!l&&!u&&!s&&e>t||s&&a&&c&&!l&&!u||r&&a&&c||!n&&c||!o)return 1;if(!r&&!s&&!u&&e<t||u&&n&&o&&!r&&!s||l&&n&&o||!a&&o||!c)return-1}return 0}function Ai(e,t,r,i){for(var o=-1,s=e.length,a=r.length,l=-1,c=t.length,u=Yt(s-a,0),d=n(c+u),h=!i;++l<c;)d[l]=t[l];for(;++o<a;)(h||o<s)&&(d[r[o]]=e[o]);for(;u--;)d[l++]=e[o++];return d}function ki(e,t,r,i){for(var o=-1,s=e.length,a=-1,l=r.length,c=-1,u=t.length,d=Yt(s-l,0),h=n(d+u),p=!i;++o<d;)h[o]=e[o];for(var f=o;++c<u;)h[f+c]=t[c];for(;++a<l;)(p||o<s)&&(h[f+r[a]]=e[o++]);return h}function ji(e,t){var r=-1,i=e.length;for(t||(t=n(i));++r<i;)t[r]=e[r];return t}function Ii(e,t,n,r){var o=!n;n||(n={});for(var s=-1,a=t.length;++s<a;){var l=t[s],c=r?r(n[l],e[l],l,n,e):i;c===i&&(c=e[l]),o?or(n,l,c):tr(n,l,c)}return n}function Gi(e,t){return function(n,r){var i=Ws(n)?kt:rr,o=t?t():{};return i(n,e,lo(r,2),o)}}function Ti(e){return Zr((function(t,n){var r=-1,o=n.length,s=o>1?n[o-1]:i,a=o>2?n[2]:i;for(s=e.length>3&&"function"==typeof s?(o--,s):i,a&&bo(n[0],n[1],a)&&(s=o<3?i:s,o=1),t=Ce(t);++r<o;){var l=n[r];l&&e(t,l,r,s)}return t}))}function Mi(e,t){return function(n,r){if(null==n)return n;if(!qs(n))return e(n,r);for(var i=n.length,o=t?i:-1,s=Ce(n);(t?o--:++o<i)&&!1!==r(s[o],o,s););return n}}function Oi(e){return function(t,n,r){for(var i=-1,o=Ce(t),s=r(t),a=s.length;a--;){var l=s[e?a:++i];if(!1===n(o[l],l,o))break}return t}}function Ri(e){return function(t){var n=ln(t=va(t))?gn(t):i,r=n?n[0]:t.charAt(0),o=n?xi(n,1).join(""):t.slice(1);return r[e]()+o}}function Di(e){return function(t){return Nt($a(Ua(t).replace(et,"")),e,"")}}function Ni(e){return function(){var t=arguments;switch(t.length){case 0:return new e;case 1:return new e(t[0]);case 2:return new e(t[0],t[1]);case 3:return new e(t[0],t[1],t[2]);case 4:return new e(t[0],t[1],t[2],t[3]);case 5:return new e(t[0],t[1],t[2],t[3],t[4]);case 6:return new e(t[0],t[1],t[2],t[3],t[4],t[5]);case 7:return new e(t[0],t[1],t[2],t[3],t[4],t[5],t[6])}var n=zn(e.prototype),r=e.apply(n,t);return ea(r)?r:n}}function Li(e){return function(t,n,r){var o=Ce(t);if(!qs(t)){var s=lo(n,3);t=Ga(t),n=function(e){return s(o[e],e,o)}}var a=e(t,n,r);return a>-1?o[s?t[a]:a]:i}}function Vi(e){return no((function(t){var n=t.length,r=n,s=Un.prototype.thru;for(e&&t.reverse();r--;){var a=t[r];if("function"!=typeof a)throw new je(o);if(s&&!l&&"wrapper"==so(a))var l=new Un([],!0)}for(r=l?r:n;++r<n;){var c=so(a=t[r]),u="wrapper"==c?oo(a):i;l=u&&So(u[0])&&424==u[1]&&!u[4].length&&1==u[9]?l[so(u[0])].apply(l,u[3]):1==a.length&&So(a)?l[c]():l.thru(a)}return function(){var e=arguments,r=e[0];if(l&&1==e.length&&Ws(r))return l.plant(r).value();for(var i=0,o=n?t[i].apply(this,e):r;++i<n;)o=t[i].call(this,o);return o}}))}function Fi(e,t,r,o,s,a,l,c,u,h){var p=t&d,f=1&t,g=2&t,m=24&t,y=512&t,v=g?i:Ni(e);return function d(){for(var _=arguments.length,b=n(_),x=_;x--;)b[x]=arguments[x];if(m)var S=ao(d),w=function(e,t){for(var n=e.length,r=0;n--;)e[n]===t&&++r;return r}(b,S);if(o&&(b=Ai(b,o,s,m)),a&&(b=ki(b,a,l,m)),_-=w,m&&_<h){var E=dn(b,S);return Xi(e,t,Fi,d.placeholder,r,b,E,c,u,h-_)}var P=f?r:this,C=g?P[e]:e;return _=b.length,c?b=function(e,t){var n=e.length,r=_n(t.length,n),o=ji(e);for(;r--;){var s=t[r];e[r]=_o(s,n)?o[s]:i}return e}(b,c):y&&_>1&&b.reverse(),p&&u<_&&(b.length=u),this&&this!==gt&&this instanceof d&&(C=v||Ni(C)),C.apply(P,b)}}function zi(e,t){return function(n,r){return function(e,t,n,r){return br(e,(function(e,i,o){t(r,n(e),i,o)})),r}(n,e,t(r),{})}}function Bi(e,t){return function(n,r){var o;if(n===i&&r===i)return t;if(n!==i&&(o=n),r!==i){if(o===i)return r;"string"==typeof n||"string"==typeof r?(n=ci(n),r=ci(r)):(n=li(n),r=li(r)),o=e(n,r)}return o}}function Ui(e){return no((function(t){return t=Rt(t,Qt(lo())),Zr((function(n){var r=this;return e(t,(function(e){return At(e,r,n)}))}))}))}function Wi(e,t){var n=(t=t===i?" ":ci(t)).length;if(n<2)return n?Kr(t,e):t;var r=Kr(t,pt(e/fn(t)));return ln(t)?xi(gn(r),0,e).join(""):r.slice(0,e)}function Hi(e){return function(t,r,o){return o&&"number"!=typeof o&&bo(t,r,o)&&(r=o=i),t=pa(t),r===i?(r=t,t=0):r=pa(r),function(e,t,r,i){for(var o=-1,s=Yt(pt((t-e)/(r||1)),0),a=n(s);s--;)a[i?s:++o]=e,e+=r;return a}(t,r,o=o===i?t<r?1:-1:pa(o),e)}}function qi(e){return function(t,n){return"string"==typeof t&&"string"==typeof n||(t=ma(t),n=ma(n)),e(t,n)}}function Xi(e,t,n,r,o,s,a,l,d,h){var p=8&t;t|=p?c:u,4&(t&=~(p?u:c))||(t&=-4);var f=[e,t,o,p?s:i,p?a:i,p?i:s,p?i:a,l,d,h],g=n.apply(i,f);return So(e)&&Io(g,f),g.placeholder=r,Mo(g,e,t)}function Yi(e){var t=Pe[e];return function(e,n){if(e=ma(e),(n=null==n?0:_n(fa(n),292))&&_t(e)){var r=(va(e)+"e").split("e");return+((r=(va(t(r[0]+"e"+(+r[1]+n)))+"e").split("e"))[0]+"e"+(+r[1]-n))}return t(e)}}var Ki=An&&1/hn(new An([,-0]))[1]==p?function(e){return new An(e)}:ll;function Zi(e){return function(t){var n=go(t);return n==P?cn(t):n==I?pn(t):function(e,t){return Rt(t,(function(t){return[t,e[t]]}))}(t,e(t))}}function $i(e,t,r,s,p,f,g,m){var y=2&t;if(!y&&"function"!=typeof e)throw new je(o);var v=s?s.length:0;if(v||(t&=-97,s=p=i),g=g===i?g:Yt(fa(g),0),m=m===i?m:fa(m),v-=p?p.length:0,t&u){var _=s,b=p;s=p=i}var x=y?i:oo(e),S=[e,t,r,s,p,_,b,f,g,m];if(x&&function(e,t){var n=e[1],r=t[1],i=n|r,o=i<131,s=r==d&&8==n||r==d&&n==h&&e[7].length<=t[8]||384==r&&t[7].length<=t[8]&&8==n;if(!o&&!s)return e;1&r&&(e[2]=t[2],i|=1&n?0:4);var l=t[3];if(l){var c=e[3];e[3]=c?Ai(c,l,t[4]):l,e[4]=c?dn(e[3],a):t[4]}(l=t[5])&&(c=e[5],e[5]=c?ki(c,l,t[6]):l,e[6]=c?dn(e[5],a):t[6]);(l=t[7])&&(e[7]=l);r&d&&(e[8]=null==e[8]?t[8]:_n(e[8],t[8]));null==e[9]&&(e[9]=t[9]);e[0]=t[0],e[1]=i}(S,x),e=S[0],t=S[1],r=S[2],s=S[3],p=S[4],!(m=S[9]=S[9]===i?y?0:e.length:Yt(S[9]-v,0))&&24&t&&(t&=-25),t&&1!=t)w=8==t||t==l?function(e,t,r){var o=Ni(e);return function s(){for(var a=arguments.length,l=n(a),c=a,u=ao(s);c--;)l[c]=arguments[c];var d=a<3&&l[0]!==u&&l[a-1]!==u?[]:dn(l,u);return(a-=d.length)<r?Xi(e,t,Fi,s.placeholder,i,l,d,i,i,r-a):At(this&&this!==gt&&this instanceof s?o:e,this,l)}}(e,t,m):t!=c&&33!=t||p.length?Fi.apply(i,S):function(e,t,r,i){var o=1&t,s=Ni(e);return function t(){for(var a=-1,l=arguments.length,c=-1,u=i.length,d=n(u+l),h=this&&this!==gt&&this instanceof t?s:e;++c<u;)d[c]=i[c];for(;l--;)d[c++]=arguments[++a];return At(h,o?r:this,d)}}(e,t,r,s);else var w=function(e,t,n){var r=1&t,i=Ni(e);return function t(){return(this&&this!==gt&&this instanceof t?i:e).apply(r?n:this,arguments)}}(e,t,r);return Mo((x?ei:Io)(w,S),e,t)}function Ji(e,t,n,r){return e===i||Fs(e,Te[n])&&!Re.call(r,n)?t:e}function Qi(e,t,n,r,o,s){return ea(e)&&ea(t)&&(s.set(t,e),Br(e,t,i,Qi,s),s.delete(t)),e}function eo(e){return ia(e)?i:e}function to(e,t,n,r,o,s){var a=1&n,l=e.length,c=t.length;if(l!=c&&!(a&&c>l))return!1;var u=s.get(e),d=s.get(t);if(u&&d)return u==t&&d==e;var h=-1,p=!0,f=2&n?new Yn:i;for(s.set(e,t),s.set(t,e);++h<l;){var g=e[h],m=t[h];if(r)var y=a?r(m,g,h,t,e,s):r(g,m,h,e,t,s);if(y!==i){if(y)continue;p=!1;break}if(f){if(!Vt(t,(function(e,t){if(!tn(f,t)&&(g===e||o(g,e,n,r,s)))return f.push(t)}))){p=!1;break}}else if(g!==m&&!o(g,m,n,r,s)){p=!1;break}}return s.delete(e),s.delete(t),p}function no(e){return To(Ao(e,i,Ho),e+"")}function ro(e){return Er(e,Ga,po)}function io(e){return Er(e,Ta,fo)}var oo=In?function(e){return In.get(e)}:ll;function so(e){for(var t=e.name+"",n=Gn[t],r=Re.call(Gn,t)?n.length:0;r--;){var i=n[r],o=i.func;if(null==o||o==e)return i.name}return t}function ao(e){return(Re.call(Fn,"placeholder")?Fn:e).placeholder}function lo(){var e=Fn.iteratee||il;return e=e===il?Rr:e,arguments.length?e(arguments[0],arguments[1]):e}function co(e,t){var n=e.__data__;return function(e){var t=typeof e;return"string"==t||"number"==t||"symbol"==t||"boolean"==t?"__proto__"!==e:null===e}(t)?n["string"==typeof t?"string":"hash"]:n.map}function uo(e){for(var t=Ga(e),n=t.length;n--;){var r=t[n],i=e[r];t[n]=[r,i,Po(i)]}return t}function ho(e,t){var n=function(e,t){return null==e?i:e[t]}(e,t);return Or(n)?n:i}var po=mt?function(e){return null==e?[]:(e=Ce(e),Tt(mt(e),(function(t){return Ye.call(e,t)})))}:gl,fo=mt?function(e){for(var t=[];e;)Dt(t,po(e)),e=qe(e);return t}:gl,go=Pr;function mo(e,t,n){for(var r=-1,i=(t=_i(t,e)).length,o=!1;++r<i;){var s=No(t[r]);if(!(o=null!=e&&n(e,s)))break;e=e[s]}return o||++r!=i?o:!!(i=null==e?0:e.length)&&Qs(i)&&_o(s,i)&&(Ws(e)||Us(e))}function yo(e){return"function"!=typeof e.constructor||Eo(e)?{}:zn(qe(e))}function vo(e){return Ws(e)||Us(e)||!!(Ze&&e&&e[Ze])}function _o(e,t){var n=typeof e;return!!(t=null==t?f:t)&&("number"==n||"symbol"!=n&&be.test(e))&&e>-1&&e%1==0&&e<t}function bo(e,t,n){if(!ea(n))return!1;var r=typeof t;return!!("number"==r?qs(n)&&_o(t,n.length):"string"==r&&t in n)&&Fs(n[t],e)}function xo(e,t){if(Ws(e))return!1;var n=typeof e;return!("number"!=n&&"symbol"!=n&&"boolean"!=n&&null!=e&&!la(e))||(ne.test(e)||!te.test(e)||null!=t&&e in Ce(t))}function So(e){var t=so(e),n=Fn[t];if("function"!=typeof n||!(t in Wn.prototype))return!1;if(e===n)return!0;var r=oo(n);return!!r&&e===r[0]}(En&&go(new En(new ArrayBuffer(1)))!=R||Pn&&go(new Pn)!=P||Cn&&go(Cn.resolve())!=k||An&&go(new An)!=I||kn&&go(new kn)!=M)&&(go=function(e){var t=Pr(e),n=t==A?e.constructor:i,r=n?Lo(n):"";if(r)switch(r){case Tn:return R;case Mn:return P;case On:return k;case Rn:return I;case Dn:return M}return t});var wo=Me?$s:ml;function Eo(e){var t=e&&e.constructor;return e===("function"==typeof t&&t.prototype||Te)}function Po(e){return e===e&&!ea(e)}function Co(e,t){return function(n){return null!=n&&(n[e]===t&&(t!==i||e in Ce(n)))}}function Ao(e,t,r){return t=Yt(t===i?e.length-1:t,0),function(){for(var i=arguments,o=-1,s=Yt(i.length-t,0),a=n(s);++o<s;)a[o]=i[t+o];o=-1;for(var l=n(t+1);++o<t;)l[o]=i[o];return l[t]=r(a),At(e,this,l)}}function ko(e,t){return t.length<2?e:wr(e,ri(t,0,-1))}function jo(e,t){if(("constructor"!==t||"function"!==typeof e[t])&&"__proto__"!=t)return e[t]}var Io=Oo(ei),Go=ut||function(e,t){return gt.setTimeout(e,t)},To=Oo(ti);function Mo(e,t,n){var r=t+"";return To(e,function(e,t){var n=t.length;if(!n)return e;var r=n-1;return t[r]=(n>1?"& ":"")+t[r],t=t.join(n>2?", ":" "),e.replace(le,"{\n/* [wrapped with "+t+"] */\n")}(r,function(e,t){return jt(y,(function(n){var r="_."+n[0];t&n[1]&&!Mt(e,r)&&e.push(r)})),e.sort()}(function(e){var t=e.match(ce);return t?t[1].split(ue):[]}(r),n)))}function Oo(e){var t=0,n=0;return function(){var r=bn(),o=16-(r-n);if(n=r,o>0){if(++t>=800)return arguments[0]}else t=0;return e.apply(i,arguments)}}function Ro(e,t){var n=-1,r=e.length,o=r-1;for(t=t===i?r:t;++n<t;){var s=Yr(n,o),a=e[s];e[s]=e[n],e[n]=a}return e.length=t,e}var Do=function(e){var t=Os(e,(function(e){return 500===n.size&&n.clear(),e})),n=t.cache;return t}((function(e){var t=[];return 46===e.charCodeAt(0)&&t.push(""),e.replace(re,(function(e,n,r,i){t.push(r?i.replace(pe,"$1"):n||e)})),t}));function No(e){if("string"==typeof e||la(e))return e;var t=e+"";return"0"==t&&1/e==-1/0?"-0":t}function Lo(e){if(null!=e){try{return Oe.call(e)}catch(t){}try{return e+""}catch(t){}}return""}function Vo(e){if(e instanceof Wn)return e.clone();var t=new Un(e.__wrapped__,e.__chain__);return t.__actions__=ji(e.__actions__),t.__index__=e.__index__,t.__values__=e.__values__,t}var Fo=Zr((function(e,t){return Xs(e)?dr(e,yr(t,1,Xs,!0)):[]})),zo=Zr((function(e,t){var n=Zo(t);return Xs(n)&&(n=i),Xs(e)?dr(e,yr(t,1,Xs,!0),lo(n,2)):[]})),Bo=Zr((function(e,t){var n=Zo(t);return Xs(n)&&(n=i),Xs(e)?dr(e,yr(t,1,Xs,!0),i,n):[]}));function Uo(e,t,n){var r=null==e?0:e.length;if(!r)return-1;var i=null==n?0:fa(n);return i<0&&(i=Yt(r+i,0)),Bt(e,lo(t,3),i)}function Wo(e,t,n){var r=null==e?0:e.length;if(!r)return-1;var o=r-1;return n!==i&&(o=fa(n),o=n<0?Yt(r+o,0):_n(o,r-1)),Bt(e,lo(t,3),o,!0)}function Ho(e){return(null==e?0:e.length)?yr(e,1):[]}function qo(e){return e&&e.length?e[0]:i}var Xo=Zr((function(e){var t=Rt(e,yi);return t.length&&t[0]===e[0]?jr(t):[]})),Yo=Zr((function(e){var t=Zo(e),n=Rt(e,yi);return t===Zo(n)?t=i:n.pop(),n.length&&n[0]===e[0]?jr(n,lo(t,2)):[]})),Ko=Zr((function(e){var t=Zo(e),n=Rt(e,yi);return(t="function"==typeof t?t:i)&&n.pop(),n.length&&n[0]===e[0]?jr(n,i,t):[]}));function Zo(e){var t=null==e?0:e.length;return t?e[t-1]:i}var $o=Zr(Jo);function Jo(e,t){return e&&e.length&&t&&t.length?qr(e,t):e}var Qo=no((function(e,t){var n=null==e?0:e.length,r=sr(e,t);return Xr(e,Rt(t,(function(e){return _o(e,n)?+e:e})).sort(Ci)),r}));function es(e){return null==e?e:wn.call(e)}var ts=Zr((function(e){return ui(yr(e,1,Xs,!0))})),ns=Zr((function(e){var t=Zo(e);return Xs(t)&&(t=i),ui(yr(e,1,Xs,!0),lo(t,2))})),rs=Zr((function(e){var t=Zo(e);return t="function"==typeof t?t:i,ui(yr(e,1,Xs,!0),i,t)}));function is(e){if(!e||!e.length)return[];var t=0;return e=Tt(e,(function(e){if(Xs(e))return t=Yt(e.length,t),!0})),$t(t,(function(t){return Rt(e,Xt(t))}))}function os(e,t){if(!e||!e.length)return[];var n=is(e);return null==t?n:Rt(n,(function(e){return At(t,i,e)}))}var ss=Zr((function(e,t){return Xs(e)?dr(e,t):[]})),as=Zr((function(e){return gi(Tt(e,Xs))})),ls=Zr((function(e){var t=Zo(e);return Xs(t)&&(t=i),gi(Tt(e,Xs),lo(t,2))})),cs=Zr((function(e){var t=Zo(e);return t="function"==typeof t?t:i,gi(Tt(e,Xs),i,t)})),us=Zr(is);var ds=Zr((function(e){var t=e.length,n=t>1?e[t-1]:i;return n="function"==typeof n?(e.pop(),n):i,os(e,n)}));function hs(e){var t=Fn(e);return t.__chain__=!0,t}function ps(e,t){return t(e)}var fs=no((function(e){var t=e.length,n=t?e[0]:0,r=this.__wrapped__,o=function(t){return sr(t,e)};return!(t>1||this.__actions__.length)&&r instanceof Wn&&_o(n)?((r=r.slice(n,+n+(t?1:0))).__actions__.push({func:ps,args:[o],thisArg:i}),new Un(r,this.__chain__).thru((function(e){return t&&!e.length&&e.push(i),e}))):this.thru(o)}));var gs=Gi((function(e,t,n){Re.call(e,n)?++e[n]:or(e,n,1)}));var ms=Li(Uo),ys=Li(Wo);function vs(e,t){return(Ws(e)?jt:hr)(e,lo(t,3))}function _s(e,t){return(Ws(e)?It:pr)(e,lo(t,3))}var bs=Gi((function(e,t,n){Re.call(e,n)?e[n].push(t):or(e,n,[t])}));var xs=Zr((function(e,t,r){var i=-1,o="function"==typeof t,s=qs(e)?n(e.length):[];return hr(e,(function(e){s[++i]=o?At(t,e,r):Ir(e,t,r)})),s})),Ss=Gi((function(e,t,n){or(e,n,t)}));function ws(e,t){return(Ws(e)?Rt:Vr)(e,lo(t,3))}var Es=Gi((function(e,t,n){e[n?0:1].push(t)}),(function(){return[[],[]]}));var Ps=Zr((function(e,t){if(null==e)return[];var n=t.length;return n>1&&bo(e,t[0],t[1])?t=[]:n>2&&bo(t[0],t[1],t[2])&&(t=[t[0]]),Wr(e,yr(t,1),[])})),Cs=it||function(){return gt.Date.now()};function As(e,t,n){return t=n?i:t,t=e&&null==t?e.length:t,$i(e,d,i,i,i,i,t)}function ks(e,t){var n;if("function"!=typeof t)throw new je(o);return e=fa(e),function(){return--e>0&&(n=t.apply(this,arguments)),e<=1&&(t=i),n}}var js=Zr((function(e,t,n){var r=1;if(n.length){var i=dn(n,ao(js));r|=c}return $i(e,r,t,n,i)})),Is=Zr((function(e,t,n){var r=3;if(n.length){var i=dn(n,ao(Is));r|=c}return $i(t,r,e,n,i)}));function Gs(e,t,n){var r,s,a,l,c,u,d=0,h=!1,p=!1,f=!0;if("function"!=typeof e)throw new je(o);function g(t){var n=r,o=s;return r=s=i,d=t,l=e.apply(o,n)}function m(e){var n=e-u;return u===i||n>=t||n<0||p&&e-d>=a}function y(){var e=Cs();if(m(e))return v(e);c=Go(y,function(e){var n=t-(e-u);return p?_n(n,a-(e-d)):n}(e))}function v(e){return c=i,f&&r?g(e):(r=s=i,l)}function _(){var e=Cs(),n=m(e);if(r=arguments,s=this,u=e,n){if(c===i)return function(e){return d=e,c=Go(y,t),h?g(e):l}(u);if(p)return Si(c),c=Go(y,t),g(u)}return c===i&&(c=Go(y,t)),l}return t=ma(t)||0,ea(n)&&(h=!!n.leading,a=(p="maxWait"in n)?Yt(ma(n.maxWait)||0,t):a,f="trailing"in n?!!n.trailing:f),_.cancel=function(){c!==i&&Si(c),d=0,r=u=s=c=i},_.flush=function(){return c===i?l:v(Cs())},_}var Ts=Zr((function(e,t){return ur(e,1,t)})),Ms=Zr((function(e,t,n){return ur(e,ma(t)||0,n)}));function Os(e,t){if("function"!=typeof e||null!=t&&"function"!=typeof t)throw new je(o);var n=function(){var r=arguments,i=t?t.apply(this,r):r[0],o=n.cache;if(o.has(i))return o.get(i);var s=e.apply(this,r);return n.cache=o.set(i,s)||o,s};return n.cache=new(Os.Cache||Xn),n}function Rs(e){if("function"!=typeof e)throw new je(o);return function(){var t=arguments;switch(t.length){case 0:return!e.call(this);case 1:return!e.call(this,t[0]);case 2:return!e.call(this,t[0],t[1]);case 3:return!e.call(this,t[0],t[1],t[2])}return!e.apply(this,t)}}Os.Cache=Xn;var Ds=bi((function(e,t){var n=(t=1==t.length&&Ws(t[0])?Rt(t[0],Qt(lo())):Rt(yr(t,1),Qt(lo()))).length;return Zr((function(r){for(var i=-1,o=_n(r.length,n);++i<o;)r[i]=t[i].call(this,r[i]);return At(e,this,r)}))})),Ns=Zr((function(e,t){var n=dn(t,ao(Ns));return $i(e,c,i,t,n)})),Ls=Zr((function(e,t){var n=dn(t,ao(Ls));return $i(e,u,i,t,n)})),Vs=no((function(e,t){return $i(e,h,i,i,i,t)}));function Fs(e,t){return e===t||e!==e&&t!==t}var zs=qi(Cr),Bs=qi((function(e,t){return e>=t})),Us=Gr(function(){return arguments}())?Gr:function(e){return ta(e)&&Re.call(e,"callee")&&!Ye.call(e,"callee")},Ws=n.isArray,Hs=xt?Qt(xt):function(e){return ta(e)&&Pr(e)==O};function qs(e){return null!=e&&Qs(e.length)&&!$s(e)}function Xs(e){return ta(e)&&qs(e)}var Ys=yt||ml,Ks=St?Qt(St):function(e){return ta(e)&&Pr(e)==x};function Zs(e){if(!ta(e))return!1;var t=Pr(e);return t==S||"[object DOMException]"==t||"string"==typeof e.message&&"string"==typeof e.name&&!ia(e)}function $s(e){if(!ea(e))return!1;var t=Pr(e);return t==w||t==E||"[object AsyncFunction]"==t||"[object Proxy]"==t}function Js(e){return"number"==typeof e&&e==fa(e)}function Qs(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=f}function ea(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}function ta(e){return null!=e&&"object"==typeof e}var na=wt?Qt(wt):function(e){return ta(e)&&go(e)==P};function ra(e){return"number"==typeof e||ta(e)&&Pr(e)==C}function ia(e){if(!ta(e)||Pr(e)!=A)return!1;var t=qe(e);if(null===t)return!0;var n=Re.call(t,"constructor")&&t.constructor;return"function"==typeof n&&n instanceof n&&Oe.call(n)==Ve}var oa=Et?Qt(Et):function(e){return ta(e)&&Pr(e)==j};var sa=Pt?Qt(Pt):function(e){return ta(e)&&go(e)==I};function aa(e){return"string"==typeof e||!Ws(e)&&ta(e)&&Pr(e)==G}function la(e){return"symbol"==typeof e||ta(e)&&Pr(e)==T}var ca=Ct?Qt(Ct):function(e){return ta(e)&&Qs(e.length)&&!!lt[Pr(e)]};var ua=qi(Lr),da=qi((function(e,t){return e<=t}));function ha(e){if(!e)return[];if(qs(e))return aa(e)?gn(e):ji(e);if($e&&e[$e])return function(e){for(var t,n=[];!(t=e.next()).done;)n.push(t.value);return n}(e[$e]());var t=go(e);return(t==P?cn:t==I?hn:Fa)(e)}function pa(e){return e?(e=ma(e))===p||e===-1/0?17976931348623157e292*(e<0?-1:1):e===e?e:0:0===e?e:0}function fa(e){var t=pa(e),n=t%1;return t===t?n?t-n:t:0}function ga(e){return e?ar(fa(e),0,m):0}function ma(e){if("number"==typeof e)return e;if(la(e))return g;if(ea(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=ea(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=Jt(e);var n=ye.test(e);return n||_e.test(e)?ht(e.slice(2),n?2:8):me.test(e)?g:+e}function ya(e){return Ii(e,Ta(e))}function va(e){return null==e?"":ci(e)}var _a=Ti((function(e,t){if(Eo(t)||qs(t))Ii(t,Ga(t),e);else for(var n in t)Re.call(t,n)&&tr(e,n,t[n])})),ba=Ti((function(e,t){Ii(t,Ta(t),e)})),xa=Ti((function(e,t,n,r){Ii(t,Ta(t),e,r)})),Sa=Ti((function(e,t,n,r){Ii(t,Ga(t),e,r)})),wa=no(sr);var Ea=Zr((function(e,t){e=Ce(e);var n=-1,r=t.length,o=r>2?t[2]:i;for(o&&bo(t[0],t[1],o)&&(r=1);++n<r;)for(var s=t[n],a=Ta(s),l=-1,c=a.length;++l<c;){var u=a[l],d=e[u];(d===i||Fs(d,Te[u])&&!Re.call(e,u))&&(e[u]=s[u])}return e})),Pa=Zr((function(e){return e.push(i,Qi),At(Oa,i,e)}));function Ca(e,t,n){var r=null==e?i:wr(e,t);return r===i?n:r}function Aa(e,t){return null!=e&&mo(e,t,kr)}var ka=zi((function(e,t,n){null!=t&&"function"!=typeof t.toString&&(t=Le.call(t)),e[t]=n}),el(rl)),ja=zi((function(e,t,n){null!=t&&"function"!=typeof t.toString&&(t=Le.call(t)),Re.call(e,t)?e[t].push(n):e[t]=[n]}),lo),Ia=Zr(Ir);function Ga(e){return qs(e)?Zn(e):Dr(e)}function Ta(e){return qs(e)?Zn(e,!0):Nr(e)}var Ma=Ti((function(e,t,n){Br(e,t,n)})),Oa=Ti((function(e,t,n,r){Br(e,t,n,r)})),Ra=no((function(e,t){var n={};if(null==e)return n;var r=!1;t=Rt(t,(function(t){return t=_i(t,e),r||(r=t.length>1),t})),Ii(e,io(e),n),r&&(n=lr(n,7,eo));for(var i=t.length;i--;)di(n,t[i]);return n}));var Da=no((function(e,t){return null==e?{}:function(e,t){return Hr(e,t,(function(t,n){return Aa(e,n)}))}(e,t)}));function Na(e,t){if(null==e)return{};var n=Rt(io(e),(function(e){return[e]}));return t=lo(t),Hr(e,n,(function(e,n){return t(e,n[0])}))}var La=Zi(Ga),Va=Zi(Ta);function Fa(e){return null==e?[]:en(e,Ga(e))}var za=Di((function(e,t,n){return t=t.toLowerCase(),e+(n?Ba(t):t)}));function Ba(e){return Za(va(e).toLowerCase())}function Ua(e){return(e=va(e))&&e.replace(xe,on).replace(tt,"")}var Wa=Di((function(e,t,n){return e+(n?"-":"")+t.toLowerCase()})),Ha=Di((function(e,t,n){return e+(n?" ":"")+t.toLowerCase()})),qa=Ri("toLowerCase");var Xa=Di((function(e,t,n){return e+(n?"_":"")+t.toLowerCase()}));var Ya=Di((function(e,t,n){return e+(n?" ":"")+Za(t)}));var Ka=Di((function(e,t,n){return e+(n?" ":"")+t.toUpperCase()})),Za=Ri("toUpperCase");function $a(e,t,n){return e=va(e),(t=n?i:t)===i?function(e){return ot.test(e)}(e)?function(e){return e.match(rt)||[]}(e):function(e){return e.match(de)||[]}(e):e.match(t)||[]}var Ja=Zr((function(e,t){try{return At(e,i,t)}catch(n){return Zs(n)?n:new ae(n)}})),Qa=no((function(e,t){return jt(t,(function(t){t=No(t),or(e,t,js(e[t],e))})),e}));function el(e){return function(){return e}}var tl=Vi(),nl=Vi(!0);function rl(e){return e}function il(e){return Rr("function"==typeof e?e:lr(e,1))}var ol=Zr((function(e,t){return function(n){return Ir(n,e,t)}})),sl=Zr((function(e,t){return function(n){return Ir(e,n,t)}}));function al(e,t,n){var r=Ga(t),i=Sr(t,r);null!=n||ea(t)&&(i.length||!r.length)||(n=t,t=e,e=this,i=Sr(t,Ga(t)));var o=!(ea(n)&&"chain"in n)||!!n.chain,s=$s(e);return jt(i,(function(n){var r=t[n];e[n]=r,s&&(e.prototype[n]=function(){var t=this.__chain__;if(o||t){var n=e(this.__wrapped__);return(n.__actions__=ji(this.__actions__)).push({func:r,args:arguments,thisArg:e}),n.__chain__=t,n}return r.apply(e,Dt([this.value()],arguments))})})),e}function ll(){}var cl=Ui(Rt),ul=Ui(Gt),dl=Ui(Vt);function hl(e){return xo(e)?Xt(No(e)):function(e){return function(t){return wr(t,e)}}(e)}var pl=Hi(),fl=Hi(!0);function gl(){return[]}function ml(){return!1}var yl=Bi((function(e,t){return e+t}),0),vl=Yi("ceil"),_l=Bi((function(e,t){return e/t}),1),bl=Yi("floor");var xl=Bi((function(e,t){return e*t}),1),Sl=Yi("round"),wl=Bi((function(e,t){return e-t}),0);return Fn.after=function(e,t){if("function"!=typeof t)throw new je(o);return e=fa(e),function(){if(--e<1)return t.apply(this,arguments)}},Fn.ary=As,Fn.assign=_a,Fn.assignIn=ba,Fn.assignInWith=xa,Fn.assignWith=Sa,Fn.at=wa,Fn.before=ks,Fn.bind=js,Fn.bindAll=Qa,Fn.bindKey=Is,Fn.castArray=function(){if(!arguments.length)return[];var e=arguments[0];return Ws(e)?e:[e]},Fn.chain=hs,Fn.chunk=function(e,t,r){t=(r?bo(e,t,r):t===i)?1:Yt(fa(t),0);var o=null==e?0:e.length;if(!o||t<1)return[];for(var s=0,a=0,l=n(pt(o/t));s<o;)l[a++]=ri(e,s,s+=t);return l},Fn.compact=function(e){for(var t=-1,n=null==e?0:e.length,r=0,i=[];++t<n;){var o=e[t];o&&(i[r++]=o)}return i},Fn.concat=function(){var e=arguments.length;if(!e)return[];for(var t=n(e-1),r=arguments[0],i=e;i--;)t[i-1]=arguments[i];return Dt(Ws(r)?ji(r):[r],yr(t,1))},Fn.cond=function(e){var t=null==e?0:e.length,n=lo();return e=t?Rt(e,(function(e){if("function"!=typeof e[1])throw new je(o);return[n(e[0]),e[1]]})):[],Zr((function(n){for(var r=-1;++r<t;){var i=e[r];if(At(i[0],this,n))return At(i[1],this,n)}}))},Fn.conforms=function(e){return function(e){var t=Ga(e);return function(n){return cr(n,e,t)}}(lr(e,1))},Fn.constant=el,Fn.countBy=gs,Fn.create=function(e,t){var n=zn(e);return null==t?n:ir(n,t)},Fn.curry=function e(t,n,r){var o=$i(t,8,i,i,i,i,i,n=r?i:n);return o.placeholder=e.placeholder,o},Fn.curryRight=function e(t,n,r){var o=$i(t,l,i,i,i,i,i,n=r?i:n);return o.placeholder=e.placeholder,o},Fn.debounce=Gs,Fn.defaults=Ea,Fn.defaultsDeep=Pa,Fn.defer=Ts,Fn.delay=Ms,Fn.difference=Fo,Fn.differenceBy=zo,Fn.differenceWith=Bo,Fn.drop=function(e,t,n){var r=null==e?0:e.length;return r?ri(e,(t=n||t===i?1:fa(t))<0?0:t,r):[]},Fn.dropRight=function(e,t,n){var r=null==e?0:e.length;return r?ri(e,0,(t=r-(t=n||t===i?1:fa(t)))<0?0:t):[]},Fn.dropRightWhile=function(e,t){return e&&e.length?pi(e,lo(t,3),!0,!0):[]},Fn.dropWhile=function(e,t){return e&&e.length?pi(e,lo(t,3),!0):[]},Fn.fill=function(e,t,n,r){var o=null==e?0:e.length;return o?(n&&"number"!=typeof n&&bo(e,t,n)&&(n=0,r=o),function(e,t,n,r){var o=e.length;for((n=fa(n))<0&&(n=-n>o?0:o+n),(r=r===i||r>o?o:fa(r))<0&&(r+=o),r=n>r?0:ga(r);n<r;)e[n++]=t;return e}(e,t,n,r)):[]},Fn.filter=function(e,t){return(Ws(e)?Tt:mr)(e,lo(t,3))},Fn.flatMap=function(e,t){return yr(ws(e,t),1)},Fn.flatMapDeep=function(e,t){return yr(ws(e,t),p)},Fn.flatMapDepth=function(e,t,n){return n=n===i?1:fa(n),yr(ws(e,t),n)},Fn.flatten=Ho,Fn.flattenDeep=function(e){return(null==e?0:e.length)?yr(e,p):[]},Fn.flattenDepth=function(e,t){return(null==e?0:e.length)?yr(e,t=t===i?1:fa(t)):[]},Fn.flip=function(e){return $i(e,512)},Fn.flow=tl,Fn.flowRight=nl,Fn.fromPairs=function(e){for(var t=-1,n=null==e?0:e.length,r={};++t<n;){var i=e[t];r[i[0]]=i[1]}return r},Fn.functions=function(e){return null==e?[]:Sr(e,Ga(e))},Fn.functionsIn=function(e){return null==e?[]:Sr(e,Ta(e))},Fn.groupBy=bs,Fn.initial=function(e){return(null==e?0:e.length)?ri(e,0,-1):[]},Fn.intersection=Xo,Fn.intersectionBy=Yo,Fn.intersectionWith=Ko,Fn.invert=ka,Fn.invertBy=ja,Fn.invokeMap=xs,Fn.iteratee=il,Fn.keyBy=Ss,Fn.keys=Ga,Fn.keysIn=Ta,Fn.map=ws,Fn.mapKeys=function(e,t){var n={};return t=lo(t,3),br(e,(function(e,r,i){or(n,t(e,r,i),e)})),n},Fn.mapValues=function(e,t){var n={};return t=lo(t,3),br(e,(function(e,r,i){or(n,r,t(e,r,i))})),n},Fn.matches=function(e){return Fr(lr(e,1))},Fn.matchesProperty=function(e,t){return zr(e,lr(t,1))},Fn.memoize=Os,Fn.merge=Ma,Fn.mergeWith=Oa,Fn.method=ol,Fn.methodOf=sl,Fn.mixin=al,Fn.negate=Rs,Fn.nthArg=function(e){return e=fa(e),Zr((function(t){return Ur(t,e)}))},Fn.omit=Ra,Fn.omitBy=function(e,t){return Na(e,Rs(lo(t)))},Fn.once=function(e){return ks(2,e)},Fn.orderBy=function(e,t,n,r){return null==e?[]:(Ws(t)||(t=null==t?[]:[t]),Ws(n=r?i:n)||(n=null==n?[]:[n]),Wr(e,t,n))},Fn.over=cl,Fn.overArgs=Ds,Fn.overEvery=ul,Fn.overSome=dl,Fn.partial=Ns,Fn.partialRight=Ls,Fn.partition=Es,Fn.pick=Da,Fn.pickBy=Na,Fn.property=hl,Fn.propertyOf=function(e){return function(t){return null==e?i:wr(e,t)}},Fn.pull=$o,Fn.pullAll=Jo,Fn.pullAllBy=function(e,t,n){return e&&e.length&&t&&t.length?qr(e,t,lo(n,2)):e},Fn.pullAllWith=function(e,t,n){return e&&e.length&&t&&t.length?qr(e,t,i,n):e},Fn.pullAt=Qo,Fn.range=pl,Fn.rangeRight=fl,Fn.rearg=Vs,Fn.reject=function(e,t){return(Ws(e)?Tt:mr)(e,Rs(lo(t,3)))},Fn.remove=function(e,t){var n=[];if(!e||!e.length)return n;var r=-1,i=[],o=e.length;for(t=lo(t,3);++r<o;){var s=e[r];t(s,r,e)&&(n.push(s),i.push(r))}return Xr(e,i),n},Fn.rest=function(e,t){if("function"!=typeof e)throw new je(o);return Zr(e,t=t===i?t:fa(t))},Fn.reverse=es,Fn.sampleSize=function(e,t,n){return t=(n?bo(e,t,n):t===i)?1:fa(t),(Ws(e)?Jn:Jr)(e,t)},Fn.set=function(e,t,n){return null==e?e:Qr(e,t,n)},Fn.setWith=function(e,t,n,r){return r="function"==typeof r?r:i,null==e?e:Qr(e,t,n,r)},Fn.shuffle=function(e){return(Ws(e)?Qn:ni)(e)},Fn.slice=function(e,t,n){var r=null==e?0:e.length;return r?(n&&"number"!=typeof n&&bo(e,t,n)?(t=0,n=r):(t=null==t?0:fa(t),n=n===i?r:fa(n)),ri(e,t,n)):[]},Fn.sortBy=Ps,Fn.sortedUniq=function(e){return e&&e.length?ai(e):[]},Fn.sortedUniqBy=function(e,t){return e&&e.length?ai(e,lo(t,2)):[]},Fn.split=function(e,t,n){return n&&"number"!=typeof n&&bo(e,t,n)&&(t=n=i),(n=n===i?m:n>>>0)?(e=va(e))&&("string"==typeof t||null!=t&&!oa(t))&&!(t=ci(t))&&ln(e)?xi(gn(e),0,n):e.split(t,n):[]},Fn.spread=function(e,t){if("function"!=typeof e)throw new je(o);return t=null==t?0:Yt(fa(t),0),Zr((function(n){var r=n[t],i=xi(n,0,t);return r&&Dt(i,r),At(e,this,i)}))},Fn.tail=function(e){var t=null==e?0:e.length;return t?ri(e,1,t):[]},Fn.take=function(e,t,n){return e&&e.length?ri(e,0,(t=n||t===i?1:fa(t))<0?0:t):[]},Fn.takeRight=function(e,t,n){var r=null==e?0:e.length;return r?ri(e,(t=r-(t=n||t===i?1:fa(t)))<0?0:t,r):[]},Fn.takeRightWhile=function(e,t){return e&&e.length?pi(e,lo(t,3),!1,!0):[]},Fn.takeWhile=function(e,t){return e&&e.length?pi(e,lo(t,3)):[]},Fn.tap=function(e,t){return t(e),e},Fn.throttle=function(e,t,n){var r=!0,i=!0;if("function"!=typeof e)throw new je(o);return ea(n)&&(r="leading"in n?!!n.leading:r,i="trailing"in n?!!n.trailing:i),Gs(e,t,{leading:r,maxWait:t,trailing:i})},Fn.thru=ps,Fn.toArray=ha,Fn.toPairs=La,Fn.toPairsIn=Va,Fn.toPath=function(e){return Ws(e)?Rt(e,No):la(e)?[e]:ji(Do(va(e)))},Fn.toPlainObject=ya,Fn.transform=function(e,t,n){var r=Ws(e),i=r||Ys(e)||ca(e);if(t=lo(t,4),null==n){var o=e&&e.constructor;n=i?r?new o:[]:ea(e)&&$s(o)?zn(qe(e)):{}}return(i?jt:br)(e,(function(e,r,i){return t(n,e,r,i)})),n},Fn.unary=function(e){return As(e,1)},Fn.union=ts,Fn.unionBy=ns,Fn.unionWith=rs,Fn.uniq=function(e){return e&&e.length?ui(e):[]},Fn.uniqBy=function(e,t){return e&&e.length?ui(e,lo(t,2)):[]},Fn.uniqWith=function(e,t){return t="function"==typeof t?t:i,e&&e.length?ui(e,i,t):[]},Fn.unset=function(e,t){return null==e||di(e,t)},Fn.unzip=is,Fn.unzipWith=os,Fn.update=function(e,t,n){return null==e?e:hi(e,t,vi(n))},Fn.updateWith=function(e,t,n,r){return r="function"==typeof r?r:i,null==e?e:hi(e,t,vi(n),r)},Fn.values=Fa,Fn.valuesIn=function(e){return null==e?[]:en(e,Ta(e))},Fn.without=ss,Fn.words=$a,Fn.wrap=function(e,t){return Ns(vi(t),e)},Fn.xor=as,Fn.xorBy=ls,Fn.xorWith=cs,Fn.zip=us,Fn.zipObject=function(e,t){return mi(e||[],t||[],tr)},Fn.zipObjectDeep=function(e,t){return mi(e||[],t||[],Qr)},Fn.zipWith=ds,Fn.entries=La,Fn.entriesIn=Va,Fn.extend=ba,Fn.extendWith=xa,al(Fn,Fn),Fn.add=yl,Fn.attempt=Ja,Fn.camelCase=za,Fn.capitalize=Ba,Fn.ceil=vl,Fn.clamp=function(e,t,n){return n===i&&(n=t,t=i),n!==i&&(n=(n=ma(n))===n?n:0),t!==i&&(t=(t=ma(t))===t?t:0),ar(ma(e),t,n)},Fn.clone=function(e){return lr(e,4)},Fn.cloneDeep=function(e){return lr(e,5)},Fn.cloneDeepWith=function(e,t){return lr(e,5,t="function"==typeof t?t:i)},Fn.cloneWith=function(e,t){return lr(e,4,t="function"==typeof t?t:i)},Fn.conformsTo=function(e,t){return null==t||cr(e,t,Ga(t))},Fn.deburr=Ua,Fn.defaultTo=function(e,t){return null==e||e!==e?t:e},Fn.divide=_l,Fn.endsWith=function(e,t,n){e=va(e),t=ci(t);var r=e.length,o=n=n===i?r:ar(fa(n),0,r);return(n-=t.length)>=0&&e.slice(n,o)==t},Fn.eq=Fs,Fn.escape=function(e){return(e=va(e))&&$.test(e)?e.replace(K,sn):e},Fn.escapeRegExp=function(e){return(e=va(e))&&oe.test(e)?e.replace(ie,"\\$&"):e},Fn.every=function(e,t,n){var r=Ws(e)?Gt:fr;return n&&bo(e,t,n)&&(t=i),r(e,lo(t,3))},Fn.find=ms,Fn.findIndex=Uo,Fn.findKey=function(e,t){return zt(e,lo(t,3),br)},Fn.findLast=ys,Fn.findLastIndex=Wo,Fn.findLastKey=function(e,t){return zt(e,lo(t,3),xr)},Fn.floor=bl,Fn.forEach=vs,Fn.forEachRight=_s,Fn.forIn=function(e,t){return null==e?e:vr(e,lo(t,3),Ta)},Fn.forInRight=function(e,t){return null==e?e:_r(e,lo(t,3),Ta)},Fn.forOwn=function(e,t){return e&&br(e,lo(t,3))},Fn.forOwnRight=function(e,t){return e&&xr(e,lo(t,3))},Fn.get=Ca,Fn.gt=zs,Fn.gte=Bs,Fn.has=function(e,t){return null!=e&&mo(e,t,Ar)},Fn.hasIn=Aa,Fn.head=qo,Fn.identity=rl,Fn.includes=function(e,t,n,r){e=qs(e)?e:Fa(e),n=n&&!r?fa(n):0;var i=e.length;return n<0&&(n=Yt(i+n,0)),aa(e)?n<=i&&e.indexOf(t,n)>-1:!!i&&Ut(e,t,n)>-1},Fn.indexOf=function(e,t,n){var r=null==e?0:e.length;if(!r)return-1;var i=null==n?0:fa(n);return i<0&&(i=Yt(r+i,0)),Ut(e,t,i)},Fn.inRange=function(e,t,n){return t=pa(t),n===i?(n=t,t=0):n=pa(n),function(e,t,n){return e>=_n(t,n)&&e<Yt(t,n)}(e=ma(e),t,n)},Fn.invoke=Ia,Fn.isArguments=Us,Fn.isArray=Ws,Fn.isArrayBuffer=Hs,Fn.isArrayLike=qs,Fn.isArrayLikeObject=Xs,Fn.isBoolean=function(e){return!0===e||!1===e||ta(e)&&Pr(e)==b},Fn.isBuffer=Ys,Fn.isDate=Ks,Fn.isElement=function(e){return ta(e)&&1===e.nodeType&&!ia(e)},Fn.isEmpty=function(e){if(null==e)return!0;if(qs(e)&&(Ws(e)||"string"==typeof e||"function"==typeof e.splice||Ys(e)||ca(e)||Us(e)))return!e.length;var t=go(e);if(t==P||t==I)return!e.size;if(Eo(e))return!Dr(e).length;for(var n in e)if(Re.call(e,n))return!1;return!0},Fn.isEqual=function(e,t){return Tr(e,t)},Fn.isEqualWith=function(e,t,n){var r=(n="function"==typeof n?n:i)?n(e,t):i;return r===i?Tr(e,t,i,n):!!r},Fn.isError=Zs,Fn.isFinite=function(e){return"number"==typeof e&&_t(e)},Fn.isFunction=$s,Fn.isInteger=Js,Fn.isLength=Qs,Fn.isMap=na,Fn.isMatch=function(e,t){return e===t||Mr(e,t,uo(t))},Fn.isMatchWith=function(e,t,n){return n="function"==typeof n?n:i,Mr(e,t,uo(t),n)},Fn.isNaN=function(e){return ra(e)&&e!=+e},Fn.isNative=function(e){if(wo(e))throw new ae("Unsupported core-js use. Try https://npms.io/search?q=ponyfill.");return Or(e)},Fn.isNil=function(e){return null==e},Fn.isNull=function(e){return null===e},Fn.isNumber=ra,Fn.isObject=ea,Fn.isObjectLike=ta,Fn.isPlainObject=ia,Fn.isRegExp=oa,Fn.isSafeInteger=function(e){return Js(e)&&e>=-9007199254740991&&e<=f},Fn.isSet=sa,Fn.isString=aa,Fn.isSymbol=la,Fn.isTypedArray=ca,Fn.isUndefined=function(e){return e===i},Fn.isWeakMap=function(e){return ta(e)&&go(e)==M},Fn.isWeakSet=function(e){return ta(e)&&"[object WeakSet]"==Pr(e)},Fn.join=function(e,t){return null==e?"":bt.call(e,t)},Fn.kebabCase=Wa,Fn.last=Zo,Fn.lastIndexOf=function(e,t,n){var r=null==e?0:e.length;if(!r)return-1;var o=r;return n!==i&&(o=(o=fa(n))<0?Yt(r+o,0):_n(o,r-1)),t===t?function(e,t,n){for(var r=n+1;r--;)if(e[r]===t)return r;return r}(e,t,o):Bt(e,Ht,o,!0)},Fn.lowerCase=Ha,Fn.lowerFirst=qa,Fn.lt=ua,Fn.lte=da,Fn.max=function(e){return e&&e.length?gr(e,rl,Cr):i},Fn.maxBy=function(e,t){return e&&e.length?gr(e,lo(t,2),Cr):i},Fn.mean=function(e){return qt(e,rl)},Fn.meanBy=function(e,t){return qt(e,lo(t,2))},Fn.min=function(e){return e&&e.length?gr(e,rl,Lr):i},Fn.minBy=function(e,t){return e&&e.length?gr(e,lo(t,2),Lr):i},Fn.stubArray=gl,Fn.stubFalse=ml,Fn.stubObject=function(){return{}},Fn.stubString=function(){return""},Fn.stubTrue=function(){return!0},Fn.multiply=xl,Fn.nth=function(e,t){return e&&e.length?Ur(e,fa(t)):i},Fn.noConflict=function(){return gt._===this&&(gt._=Fe),this},Fn.noop=ll,Fn.now=Cs,Fn.pad=function(e,t,n){e=va(e);var r=(t=fa(t))?fn(e):0;if(!t||r>=t)return e;var i=(t-r)/2;return Wi(ft(i),n)+e+Wi(pt(i),n)},Fn.padEnd=function(e,t,n){e=va(e);var r=(t=fa(t))?fn(e):0;return t&&r<t?e+Wi(t-r,n):e},Fn.padStart=function(e,t,n){e=va(e);var r=(t=fa(t))?fn(e):0;return t&&r<t?Wi(t-r,n)+e:e},Fn.parseInt=function(e,t,n){return n||null==t?t=0:t&&(t=+t),xn(va(e).replace(se,""),t||0)},Fn.random=function(e,t,n){if(n&&"boolean"!=typeof n&&bo(e,t,n)&&(t=n=i),n===i&&("boolean"==typeof t?(n=t,t=i):"boolean"==typeof e&&(n=e,e=i)),e===i&&t===i?(e=0,t=1):(e=pa(e),t===i?(t=e,e=0):t=pa(t)),e>t){var r=e;e=t,t=r}if(n||e%1||t%1){var o=Sn();return _n(e+o*(t-e+dt("1e-"+((o+"").length-1))),t)}return Yr(e,t)},Fn.reduce=function(e,t,n){var r=Ws(e)?Nt:Kt,i=arguments.length<3;return r(e,lo(t,4),n,i,hr)},Fn.reduceRight=function(e,t,n){var r=Ws(e)?Lt:Kt,i=arguments.length<3;return r(e,lo(t,4),n,i,pr)},Fn.repeat=function(e,t,n){return t=(n?bo(e,t,n):t===i)?1:fa(t),Kr(va(e),t)},Fn.replace=function(){var e=arguments,t=va(e[0]);return e.length<3?t:t.replace(e[1],e[2])},Fn.result=function(e,t,n){var r=-1,o=(t=_i(t,e)).length;for(o||(o=1,e=i);++r<o;){var s=null==e?i:e[No(t[r])];s===i&&(r=o,s=n),e=$s(s)?s.call(e):s}return e},Fn.round=Sl,Fn.runInContext=e,Fn.sample=function(e){return(Ws(e)?$n:$r)(e)},Fn.size=function(e){if(null==e)return 0;if(qs(e))return aa(e)?fn(e):e.length;var t=go(e);return t==P||t==I?e.size:Dr(e).length},Fn.snakeCase=Xa,Fn.some=function(e,t,n){var r=Ws(e)?Vt:ii;return n&&bo(e,t,n)&&(t=i),r(e,lo(t,3))},Fn.sortedIndex=function(e,t){return oi(e,t)},Fn.sortedIndexBy=function(e,t,n){return si(e,t,lo(n,2))},Fn.sortedIndexOf=function(e,t){var n=null==e?0:e.length;if(n){var r=oi(e,t);if(r<n&&Fs(e[r],t))return r}return-1},Fn.sortedLastIndex=function(e,t){return oi(e,t,!0)},Fn.sortedLastIndexBy=function(e,t,n){return si(e,t,lo(n,2),!0)},Fn.sortedLastIndexOf=function(e,t){if(null==e?0:e.length){var n=oi(e,t,!0)-1;if(Fs(e[n],t))return n}return-1},Fn.startCase=Ya,Fn.startsWith=function(e,t,n){return e=va(e),n=null==n?0:ar(fa(n),0,e.length),t=ci(t),e.slice(n,n+t.length)==t},Fn.subtract=wl,Fn.sum=function(e){return e&&e.length?Zt(e,rl):0},Fn.sumBy=function(e,t){return e&&e.length?Zt(e,lo(t,2)):0},Fn.template=function(e,t,n){var r=Fn.templateSettings;n&&bo(e,t,n)&&(t=i),e=va(e),t=xa({},t,r,Ji);var o,s,a=xa({},t.imports,r.imports,Ji),l=Ga(a),c=en(a,l),u=0,d=t.interpolate||Se,h="__p += '",p=Ae((t.escape||Se).source+"|"+d.source+"|"+(d===ee?fe:Se).source+"|"+(t.evaluate||Se).source+"|$","g"),f="//# sourceURL="+(Re.call(t,"sourceURL")?(t.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++at+"]")+"\n";e.replace(p,(function(t,n,r,i,a,l){return r||(r=i),h+=e.slice(u,l).replace(we,an),n&&(o=!0,h+="' +\n__e("+n+") +\n'"),a&&(s=!0,h+="';\n"+a+";\n__p += '"),r&&(h+="' +\n((__t = ("+r+")) == null ? '' : __t) +\n'"),u=l+t.length,t})),h+="';\n";var g=Re.call(t,"variable")&&t.variable;if(g){if(he.test(g))throw new ae("Invalid `variable` option passed into `_.template`")}else h="with (obj) {\n"+h+"\n}\n";h=(s?h.replace(H,""):h).replace(q,"$1").replace(X,"$1;"),h="function("+(g||"obj")+") {\n"+(g?"":"obj || (obj = {});\n")+"var __t, __p = ''"+(o?", __e = _.escape":"")+(s?", __j = Array.prototype.join;\nfunction print() { __p += __j.call(arguments, '') }\n":";\n")+h+"return __p\n}";var m=Ja((function(){return Ee(l,f+"return "+h).apply(i,c)}));if(m.source=h,Zs(m))throw m;return m},Fn.times=function(e,t){if((e=fa(e))<1||e>f)return[];var n=m,r=_n(e,m);t=lo(t),e-=m;for(var i=$t(r,t);++n<e;)t(n);return i},Fn.toFinite=pa,Fn.toInteger=fa,Fn.toLength=ga,Fn.toLower=function(e){return va(e).toLowerCase()},Fn.toNumber=ma,Fn.toSafeInteger=function(e){return e?ar(fa(e),-9007199254740991,f):0===e?e:0},Fn.toString=va,Fn.toUpper=function(e){return va(e).toUpperCase()},Fn.trim=function(e,t,n){if((e=va(e))&&(n||t===i))return Jt(e);if(!e||!(t=ci(t)))return e;var r=gn(e),o=gn(t);return xi(r,nn(r,o),rn(r,o)+1).join("")},Fn.trimEnd=function(e,t,n){if((e=va(e))&&(n||t===i))return e.slice(0,mn(e)+1);if(!e||!(t=ci(t)))return e;var r=gn(e);return xi(r,0,rn(r,gn(t))+1).join("")},Fn.trimStart=function(e,t,n){if((e=va(e))&&(n||t===i))return e.replace(se,"");if(!e||!(t=ci(t)))return e;var r=gn(e);return xi(r,nn(r,gn(t))).join("")},Fn.truncate=function(e,t){var n=30,r="...";if(ea(t)){var o="separator"in t?t.separator:o;n="length"in t?fa(t.length):n,r="omission"in t?ci(t.omission):r}var s=(e=va(e)).length;if(ln(e)){var a=gn(e);s=a.length}if(n>=s)return e;var l=n-fn(r);if(l<1)return r;var c=a?xi(a,0,l).join(""):e.slice(0,l);if(o===i)return c+r;if(a&&(l+=c.length-l),oa(o)){if(e.slice(l).search(o)){var u,d=c;for(o.global||(o=Ae(o.source,va(ge.exec(o))+"g")),o.lastIndex=0;u=o.exec(d);)var h=u.index;c=c.slice(0,h===i?l:h)}}else if(e.indexOf(ci(o),l)!=l){var p=c.lastIndexOf(o);p>-1&&(c=c.slice(0,p))}return c+r},Fn.unescape=function(e){return(e=va(e))&&Z.test(e)?e.replace(Y,yn):e},Fn.uniqueId=function(e){var t=++De;return va(e)+t},Fn.upperCase=Ka,Fn.upperFirst=Za,Fn.each=vs,Fn.eachRight=_s,Fn.first=qo,al(Fn,function(){var e={};return br(Fn,(function(t,n){Re.call(Fn.prototype,n)||(e[n]=t)})),e}(),{chain:!1}),Fn.VERSION="4.17.21",jt(["bind","bindKey","curry","curryRight","partial","partialRight"],(function(e){Fn[e].placeholder=Fn})),jt(["drop","take"],(function(e,t){Wn.prototype[e]=function(n){n=n===i?1:Yt(fa(n),0);var r=this.__filtered__&&!t?new Wn(this):this.clone();return r.__filtered__?r.__takeCount__=_n(n,r.__takeCount__):r.__views__.push({size:_n(n,m),type:e+(r.__dir__<0?"Right":"")}),r},Wn.prototype[e+"Right"]=function(t){return this.reverse()[e](t).reverse()}})),jt(["filter","map","takeWhile"],(function(e,t){var n=t+1,r=1==n||3==n;Wn.prototype[e]=function(e){var t=this.clone();return t.__iteratees__.push({iteratee:lo(e,3),type:n}),t.__filtered__=t.__filtered__||r,t}})),jt(["head","last"],(function(e,t){var n="take"+(t?"Right":"");Wn.prototype[e]=function(){return this[n](1).value()[0]}})),jt(["initial","tail"],(function(e,t){var n="drop"+(t?"":"Right");Wn.prototype[e]=function(){return this.__filtered__?new Wn(this):this[n](1)}})),Wn.prototype.compact=function(){return this.filter(rl)},Wn.prototype.find=function(e){return this.filter(e).head()},Wn.prototype.findLast=function(e){return this.reverse().find(e)},Wn.prototype.invokeMap=Zr((function(e,t){return"function"==typeof e?new Wn(this):this.map((function(n){return Ir(n,e,t)}))})),Wn.prototype.reject=function(e){return this.filter(Rs(lo(e)))},Wn.prototype.slice=function(e,t){e=fa(e);var n=this;return n.__filtered__&&(e>0||t<0)?new Wn(n):(e<0?n=n.takeRight(-e):e&&(n=n.drop(e)),t!==i&&(n=(t=fa(t))<0?n.dropRight(-t):n.take(t-e)),n)},Wn.prototype.takeRightWhile=function(e){return this.reverse().takeWhile(e).reverse()},Wn.prototype.toArray=function(){return this.take(m)},br(Wn.prototype,(function(e,t){var n=/^(?:filter|find|map|reject)|While$/.test(t),r=/^(?:head|last)$/.test(t),o=Fn[r?"take"+("last"==t?"Right":""):t],s=r||/^find/.test(t);o&&(Fn.prototype[t]=function(){var t=this.__wrapped__,a=r?[1]:arguments,l=t instanceof Wn,c=a[0],u=l||Ws(t),d=function(e){var t=o.apply(Fn,Dt([e],a));return r&&h?t[0]:t};u&&n&&"function"==typeof c&&1!=c.length&&(l=u=!1);var h=this.__chain__,p=!!this.__actions__.length,f=s&&!h,g=l&&!p;if(!s&&u){t=g?t:new Wn(this);var m=e.apply(t,a);return m.__actions__.push({func:ps,args:[d],thisArg:i}),new Un(m,h)}return f&&g?e.apply(this,a):(m=this.thru(d),f?r?m.value()[0]:m.value():m)})})),jt(["pop","push","shift","sort","splice","unshift"],(function(e){var t=Ie[e],n=/^(?:push|sort|unshift)$/.test(e)?"tap":"thru",r=/^(?:pop|shift)$/.test(e);Fn.prototype[e]=function(){var e=arguments;if(r&&!this.__chain__){var i=this.value();return t.apply(Ws(i)?i:[],e)}return this[n]((function(n){return t.apply(Ws(n)?n:[],e)}))}})),br(Wn.prototype,(function(e,t){var n=Fn[t];if(n){var r=n.name+"";Re.call(Gn,r)||(Gn[r]=[]),Gn[r].push({name:t,func:n})}})),Gn[Fi(i,2).name]=[{name:"wrapper",func:i}],Wn.prototype.clone=function(){var e=new Wn(this.__wrapped__);return e.__actions__=ji(this.__actions__),e.__dir__=this.__dir__,e.__filtered__=this.__filtered__,e.__iteratees__=ji(this.__iteratees__),e.__takeCount__=this.__takeCount__,e.__views__=ji(this.__views__),e},Wn.prototype.reverse=function(){if(this.__filtered__){var e=new Wn(this);e.__dir__=-1,e.__filtered__=!0}else(e=this.clone()).__dir__*=-1;return e},Wn.prototype.value=function(){var e=this.__wrapped__.value(),t=this.__dir__,n=Ws(e),r=t<0,i=n?e.length:0,o=function(e,t,n){var r=-1,i=n.length;for(;++r<i;){var o=n[r],s=o.size;switch(o.type){case"drop":e+=s;break;case"dropRight":t-=s;break;case"take":t=_n(t,e+s);break;case"takeRight":e=Yt(e,t-s)}}return{start:e,end:t}}(0,i,this.__views__),s=o.start,a=o.end,l=a-s,c=r?a:s-1,u=this.__iteratees__,d=u.length,h=0,p=_n(l,this.__takeCount__);if(!n||!r&&i==l&&p==l)return fi(e,this.__actions__);var f=[];e:for(;l--&&h<p;){for(var g=-1,m=e[c+=t];++g<d;){var y=u[g],v=y.iteratee,_=y.type,b=v(m);if(2==_)m=b;else if(!b){if(1==_)continue e;break e}}f[h++]=m}return f},Fn.prototype.at=fs,Fn.prototype.chain=function(){return hs(this)},Fn.prototype.commit=function(){return new Un(this.value(),this.__chain__)},Fn.prototype.next=function(){this.__values__===i&&(this.__values__=ha(this.value()));var e=this.__index__>=this.__values__.length;return{done:e,value:e?i:this.__values__[this.__index__++]}},Fn.prototype.plant=function(e){for(var t,n=this;n instanceof Bn;){var r=Vo(n);r.__index__=0,r.__values__=i,t?o.__wrapped__=r:t=r;var o=r;n=n.__wrapped__}return o.__wrapped__=e,t},Fn.prototype.reverse=function(){var e=this.__wrapped__;if(e instanceof Wn){var t=e;return this.__actions__.length&&(t=new Wn(this)),(t=t.reverse()).__actions__.push({func:ps,args:[es],thisArg:i}),new Un(t,this.__chain__)}return this.thru(es)},Fn.prototype.toJSON=Fn.prototype.valueOf=Fn.prototype.value=function(){return fi(this.__wrapped__,this.__actions__)},Fn.prototype.first=Fn.prototype.head,$e&&(Fn.prototype[$e]=function(){return this}),Fn}();gt._=vn,(r=function(){return vn}.call(t,n,t,e))===i||(e.exports=r)}.call(this)},23592:(e,t,n)=>{var r=n(95556),i=n(2464),o=n(5972),s=n(21336);e.exports=function(e,t){return(s(e)?r:o)(e,i(t,3))}},65880:(e,t,n)=>{var r=n(48475),i=n(41936),o=n(2464);e.exports=function(e,t){var n={};return t=o(t,3),i(e,(function(e,i,o){r(n,i,t(e,i,o))})),n}},94720:(e,t,n)=>{var r=n(93076),i=n(29384),o=n(44216);e.exports=function(e){return e&&e.length?r(e,o,i):void 0}},460:(e,t,n)=>{var r=n(93076),i=n(29384),o=n(2464);e.exports=function(e,t){return e&&e.length?r(e,o(t,2),i):void 0}},5012:(e,t,n)=>{var r=n(20828);function i(e,t){if("function"!=typeof e||null!=t&&"function"!=typeof t)throw new TypeError("Expected a function");var n=function(){var r=arguments,i=t?t.apply(this,r):r[0],o=n.cache;if(o.has(i))return o.get(i);var s=e.apply(this,r);return n.cache=o.set(i,s)||o,s};return n.cache=new(i.Cache||r),n}i.Cache=r,e.exports=i},13464:(e,t,n)=>{var r=n(93076),i=n(13116),o=n(44216);e.exports=function(e){return e&&e.length?r(e,o,i):void 0}},11832:(e,t,n)=>{var r=n(93076),i=n(2464),o=n(13116);e.exports=function(e,t){return e&&e.length?r(e,i(t,2),o):void 0}},45824:e=>{e.exports=function(){}},82844:(e,t,n)=>{var r=n(31560);e.exports=function(){return r.Date.now()}},98048:(e,t,n)=>{var r=n(54128),i=n(90447),o=n(33256),s=n(25120);e.exports=function(e){return o(e)?r(s(e)):i(e)}},73656:(e,t,n)=>{var r=n(99596)();e.exports=r},20916:(e,t,n)=>{var r=n(46128),i=n(2464),o=n(36764),s=n(21336),a=n(8280);e.exports=function(e,t,n){var l=s(e)?r:o;return n&&a(e,t,n)&&(t=void 0),l(e,i(t,3))}},45416:(e,t,n)=>{var r=n(89800),i=n(75396),o=n(41120),s=n(8280),a=o((function(e,t){if(null==e)return[];var n=t.length;return n>1&&s(e,t[0],t[1])?t=[]:n>2&&s(t[0],t[1],t[2])&&(t=[t[0]]),i(e,r(t,1),[])}));e.exports=a},59304:e=>{e.exports=function(){return[]}},39664:e=>{e.exports=function(){return!1}},33192:(e,t,n)=>{var r=n(95976),i=n(49668);e.exports=function(e,t,n){var o=!0,s=!0;if("function"!=typeof e)throw new TypeError("Expected a function");return i(n)&&(o="leading"in n?!!n.leading:o,s="trailing"in n?!!n.trailing:s),r(e,t,{leading:o,maxWait:t,trailing:s})}},24320:(e,t,n)=>{var r=n(72060),i=1/0;e.exports=function(e){return e?(e=r(e))===i||e===-1/0?17976931348623157e292*(e<0?-1:1):e===e?e:0:0===e?e:0}},15836:(e,t,n)=>{var r=n(24320);e.exports=function(e){var t=r(e),n=t%1;return t===t?n?t-n:t:0}},72060:(e,t,n)=>{var r=n(87349),i=n(49668),o=n(78808),s=/^[-+]0x[0-9a-f]+$/i,a=/^0b[01]+$/i,l=/^0o[0-7]+$/i,c=parseInt;e.exports=function(e){if("number"==typeof e)return e;if(o(e))return NaN;if(i(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=i(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=r(e);var n=a.test(e);return n||l.test(e)?c(e.slice(2),n?2:8):s.test(e)?NaN:+e}},36720:(e,t,n)=>{var r=n(30416);e.exports=function(e){return null==e?"":r(e)}},75264:(e,t,n)=>{var r=n(2464),i=n(71144);e.exports=function(e,t){return e&&e.length?i(e,r(t,2)):[]}},57987:(e,t,n)=>{var r=n(84976)("toUpperCase");e.exports=r},14652:e=>{"use strict";var t=Object.getOwnPropertySymbols,n=Object.prototype.hasOwnProperty,r=Object.prototype.propertyIsEnumerable;e.exports=function(){try{if(!Object.assign)return!1;var e=new String("abc");if(e[5]="de","5"===Object.getOwnPropertyNames(e)[0])return!1;for(var t={},n=0;n<10;n++)t["_"+String.fromCharCode(n)]=n;if("0123456789"!==Object.getOwnPropertyNames(t).map((function(e){return t[e]})).join(""))return!1;var r={};return"abcdefghijklmnopqrst".split("").forEach((function(e){r[e]=e})),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},r)).join("")}catch(i){return!1}}()?Object.assign:function(e,i){for(var o,s,a=function(e){if(null===e||void 0===e)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}(e),l=1;l<arguments.length;l++){for(var c in o=Object(arguments[l]))n.call(o,c)&&(a[c]=o[c]);if(t){s=t(o);for(var u=0;u<s.length;u++)r.call(o,s[u])&&(a[s[u]]=o[s[u]])}}return a}},46412:e=>{"use strict";var t=function(e){return e!==e};e.exports=function(e,n){return 0===e&&0===n?1/e===1/n:e===n||!(!t(e)||!t(n))}},7360:(e,t,n)=>{"use strict";var r=n(40108),i=n(25520),o=n(46412),s=n(72816),a=n(69800),l=i(s(),Object);r(l,{getPolyfill:s,implementation:o,shim:a}),e.exports=l},72816:(e,t,n)=>{"use strict";var r=n(46412);e.exports=function(){return"function"===typeof Object.is?Object.is:r}},69800:(e,t,n)=>{"use strict";var r=n(72816),i=n(40108);e.exports=function(){var e=r();return i(Object,{is:e},{is:function(){return Object.is!==e}}),e}},39488:(e,t,n)=>{"use strict";var r;if(!Object.keys){var i=Object.prototype.hasOwnProperty,o=Object.prototype.toString,s=n(72048),a=Object.prototype.propertyIsEnumerable,l=!a.call({toString:null},"toString"),c=a.call((function(){}),"prototype"),u=["toString","toLocaleString","valueOf","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","constructor"],d=function(e){var t=e.constructor;return t&&t.prototype===e},h={$applicationCache:!0,$console:!0,$external:!0,$frame:!0,$frameElement:!0,$frames:!0,$innerHeight:!0,$innerWidth:!0,$onmozfullscreenchange:!0,$onmozfullscreenerror:!0,$outerHeight:!0,$outerWidth:!0,$pageXOffset:!0,$pageYOffset:!0,$parent:!0,$scrollLeft:!0,$scrollTop:!0,$scrollX:!0,$scrollY:!0,$self:!0,$webkitIndexedDB:!0,$webkitStorageInfo:!0,$window:!0},p=function(){if("undefined"===typeof window)return!1;for(var e in window)try{if(!h["$"+e]&&i.call(window,e)&&null!==window[e]&&"object"===typeof window[e])try{d(window[e])}catch(t){return!0}}catch(t){return!0}return!1}();r=function(e){var t=null!==e&&"object"===typeof e,n="[object Function]"===o.call(e),r=s(e),a=t&&"[object String]"===o.call(e),h=[];if(!t&&!n&&!r)throw new TypeError("Object.keys called on a non-object");var f=c&&n;if(a&&e.length>0&&!i.call(e,0))for(var g=0;g<e.length;++g)h.push(String(g));if(r&&e.length>0)for(var m=0;m<e.length;++m)h.push(String(m));else for(var y in e)f&&"prototype"===y||!i.call(e,y)||h.push(String(y));if(l)for(var v=function(e){if("undefined"===typeof window||!p)return d(e);try{return d(e)}catch(t){return!1}}(e),_=0;_<u.length;++_)v&&"constructor"===u[_]||!i.call(e,u[_])||h.push(u[_]);return h}}e.exports=r},38564:(e,t,n)=>{"use strict";var r=Array.prototype.slice,i=n(72048),o=Object.keys,s=o?function(e){return o(e)}:n(39488),a=Object.keys;s.shim=function(){if(Object.keys){var e=function(){var e=Object.keys(arguments);return e&&e.length===arguments.length}(1,2);e||(Object.keys=function(e){return i(e)?a(r.call(e)):a(e)})}else Object.keys=s;return Object.keys||s},e.exports=s},72048:e=>{"use strict";var t=Object.prototype.toString;e.exports=function(e){var n=t.call(e),r="[object Arguments]"===n;return r||(r="[object Array]"!==n&&null!==e&&"object"===typeof e&&"number"===typeof e.length&&e.length>=0&&"[object Function]"===t.call(e.callee)),r}},4128:(e,t,n)=>{var r=n(95399);e.exports=p,e.exports.parse=o,e.exports.compile=function(e,t){return a(o(e,t),t)},e.exports.tokensToFunction=a,e.exports.tokensToRegExp=h;var i=new RegExp(["(\\\\.)","([\\/.])?(?:(?:\\:(\\w+)(?:\\(((?:\\\\.|[^\\\\()])+)\\))?|\\(((?:\\\\.|[^\\\\()])+)\\))([+*?])?|(\\*))"].join("|"),"g");function o(e,t){for(var n,r=[],o=0,s=0,a="",u=t&&t.delimiter||"/";null!=(n=i.exec(e));){var d=n[0],h=n[1],p=n.index;if(a+=e.slice(s,p),s=p+d.length,h)a+=h[1];else{var f=e[s],g=n[2],m=n[3],y=n[4],v=n[5],_=n[6],b=n[7];a&&(r.push(a),a="");var x=null!=g&&null!=f&&f!==g,S="+"===_||"*"===_,w="?"===_||"*"===_,E=n[2]||u,P=y||v;r.push({name:m||o++,prefix:g||"",delimiter:E,optional:w,repeat:S,partial:x,asterisk:!!b,pattern:P?c(P):b?".*":"[^"+l(E)+"]+?"})}}return s<e.length&&(a+=e.substr(s)),a&&r.push(a),r}function s(e){return encodeURI(e).replace(/[\/?#]/g,(function(e){return"%"+e.charCodeAt(0).toString(16).toUpperCase()}))}function a(e,t){for(var n=new Array(e.length),i=0;i<e.length;i++)"object"===typeof e[i]&&(n[i]=new RegExp("^(?:"+e[i].pattern+")$",d(t)));return function(t,i){for(var o="",a=t||{},l=(i||{}).pretty?s:encodeURIComponent,c=0;c<e.length;c++){var u=e[c];if("string"!==typeof u){var d,h=a[u.name];if(null==h){if(u.optional){u.partial&&(o+=u.prefix);continue}throw new TypeError('Expected "'+u.name+'" to be defined')}if(r(h)){if(!u.repeat)throw new TypeError('Expected "'+u.name+'" to not repeat, but received `'+JSON.stringify(h)+"`");if(0===h.length){if(u.optional)continue;throw new TypeError('Expected "'+u.name+'" to not be empty')}for(var p=0;p<h.length;p++){if(d=l(h[p]),!n[c].test(d))throw new TypeError('Expected all "'+u.name+'" to match "'+u.pattern+'", but received `'+JSON.stringify(d)+"`");o+=(0===p?u.prefix:u.delimiter)+d}}else{if(d=u.asterisk?encodeURI(h).replace(/[?#]/g,(function(e){return"%"+e.charCodeAt(0).toString(16).toUpperCase()})):l(h),!n[c].test(d))throw new TypeError('Expected "'+u.name+'" to match "'+u.pattern+'", but received "'+d+'"');o+=u.prefix+d}}else o+=u}return o}}function l(e){return e.replace(/([.+*?=^!:${}()[\]|\/\\])/g,"\\$1")}function c(e){return e.replace(/([=!:$\/()])/g,"\\$1")}function u(e,t){return e.keys=t,e}function d(e){return e&&e.sensitive?"":"i"}function h(e,t,n){r(t)||(n=t||n,t=[]);for(var i=(n=n||{}).strict,o=!1!==n.end,s="",a=0;a<e.length;a++){var c=e[a];if("string"===typeof c)s+=l(c);else{var h=l(c.prefix),p="(?:"+c.pattern+")";t.push(c),c.repeat&&(p+="(?:"+h+p+")*"),s+=p=c.optional?c.partial?h+"("+p+")?":"(?:"+h+"("+p+"))?":h+"("+p+")"}}var f=l(n.delimiter||"/"),g=s.slice(-f.length)===f;return i||(s=(g?s.slice(0,-f.length):s)+"(?:"+f+"(?=$))?"),s+=o?"$":i&&g?"":"(?="+f+"|$)",u(new RegExp("^"+s,d(n)),t)}function p(e,t,n){return r(t)||(n=t||n,t=[]),n=n||{},e instanceof RegExp?function(e,t){var n=e.source.match(/\((?!\?)/g);if(n)for(var r=0;r<n.length;r++)t.push({name:r,prefix:null,delimiter:null,optional:!1,repeat:!1,partial:!1,asterisk:!1,pattern:null});return u(e,t)}(e,t):r(e)?function(e,t,n){for(var r=[],i=0;i<e.length;i++)r.push(p(e[i],t,n).source);return u(new RegExp("(?:"+r.join("|")+")",d(n)),t)}(e,t,n):function(e,t,n){return h(o(e,n),t,n)}(e,t,n)}},77052:(module,__unused_webpack_exports,__webpack_require__)=>{var _classStaticPrivateMethodGet=__webpack_require__(69628).default,_defineProperty=__webpack_require__(2676).default,_classPrivateMethodInitSpec=__webpack_require__(33092).default,_classPrivateMethodGet=__webpack_require__(75692).default,_classPrivateFieldInitSpec=__webpack_require__(66516).default,_classPrivateFieldSet=__webpack_require__(31960).default,_classPrivateFieldGet=__webpack_require__(46680).default,_classStaticPrivateFieldSpecSet=__webpack_require__(23196).default,_classStaticPrivateFieldSpecGet=__webpack_require__(12448).default,factory;globalThis,factory=()=>(()=>{"use strict";var __webpack_modules__=[,(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.VerbosityLevel=t.Util=t.UnknownErrorException=t.UnexpectedResponseException=t.UNSUPPORTED_FEATURES=t.TextRenderingMode=t.RenderingIntentFlag=t.PermissionFlag=t.PasswordResponses=t.PasswordException=t.PageActionEventType=t.OPS=t.MissingPDFException=t.LINE_FACTOR=t.LINE_DESCENT_FACTOR=t.InvalidPDFException=t.ImageKind=t.IDENTITY_MATRIX=t.FormatError=t.FeatureTest=t.FONT_IDENTITY_MATRIX=t.DocumentActionEventType=t.CMapCompressionType=t.BaseException=t.BASELINE_FACTOR=t.AnnotationType=t.AnnotationStateModelType=t.AnnotationReviewState=t.AnnotationReplyType=t.AnnotationMode=t.AnnotationMarkedState=t.AnnotationFlag=t.AnnotationFieldFlag=t.AnnotationEditorType=t.AnnotationEditorPrefix=t.AnnotationEditorParamsType=t.AnnotationBorderStyleType=t.AnnotationActionEventType=t.AbortException=void 0,t.arrayByteLength=c,t.arraysToBytes=function(e){const t=e.length;if(1===t&&e[0]instanceof Uint8Array)return e[0];let n=0;for(let o=0;o<t;o++)n+=c(e[o]);let r=0;const i=new Uint8Array(n);for(let o=0;o<t;o++){let t=e[o];t instanceof Uint8Array||(t="string"===typeof t?l(t):new Uint8Array(t));const n=t.byteLength;i.set(t,r),r+=n}return i},t.assert=function(e,t){e||o(t)},t.bytesToString=function(e){"object"===typeof e&&null!==e&&void 0!==e.length||o("Invalid argument for bytesToString");const t=e.length,n=8192;if(t<n)return String.fromCharCode.apply(null,e);const r=[];for(let i=0;i<t;i+=n){const o=Math.min(i+n,t),s=e.subarray(i,o);r.push(String.fromCharCode.apply(null,s))}return r.join("")},t.createPromiseCapability=function(){const e=Object.create(null);let t=!1;return Object.defineProperty(e,"settled",{get:()=>t}),e.promise=new Promise((function(n,r){e.resolve=function(e){t=!0,n(e)},e.reject=function(e){t=!0,r(e)}})),e},t.createValidAbsoluteUrl=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;if(!e)return null;try{if(n&&"string"===typeof e){if(n.addDefaultProtocol&&e.startsWith("www.")){const t=e.match(/\./g);t&&t.length>=2&&(e="http://".concat(e))}if(n.tryConvertEncoding)try{e=p(e)}catch(r){}}const i=t?new URL(e,t):new URL(e);if(function(e){if(!e)return!1;switch(e.protocol){case"http:":case"https:":case"ftp:":case"mailto:":case"tel:":return!0;default:return!1}}(i))return i}catch(r){}return null},t.getModificationDate=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:new Date;return[e.getUTCFullYear().toString(),(e.getUTCMonth()+1).toString().padStart(2,"0"),e.getUTCDate().toString().padStart(2,"0"),e.getUTCHours().toString().padStart(2,"0"),e.getUTCMinutes().toString().padStart(2,"0"),e.getUTCSeconds().toString().padStart(2,"0")].join("")},t.getVerbosityLevel=function(){return r},t.info=function(e){r>=n.INFOS&&console.log("Info: ".concat(e))},t.isArrayBuffer=function(e){return"object"===typeof e&&null!==e&&void 0!==e.byteLength},t.isArrayEqual=function(e,t){if(e.length!==t.length)return!1;for(let n=0,r=e.length;n<r;n++)if(e[n]!==t[n])return!1;return!0},t.objectFromMap=function(e){const t=Object.create(null);for(const[n,r]of e)t[n]=r;return t},t.objectSize=function(e){return Object.keys(e).length},t.setVerbosityLevel=function(e){Number.isInteger(e)&&(r=e)},t.shadow=s,t.string32=function(e){return String.fromCharCode(e>>24&255,e>>16&255,e>>8&255,255&e)},t.stringToBytes=l,t.stringToPDFString=function(e){if(e[0]>="\xef"){let t;if("\xfe"===e[0]&&"\xff"===e[1]?t="utf-16be":"\xff"===e[0]&&"\xfe"===e[1]?t="utf-16le":"\xef"===e[0]&&"\xbb"===e[1]&&"\xbf"===e[2]&&(t="utf-8"),t)try{const n=new TextDecoder(t,{fatal:!0}),r=l(e);return n.decode(r)}catch(n){i('stringToPDFString: "'.concat(n,'".'))}}const t=[];for(let r=0,i=e.length;r<i;r++){const n=h[e.charCodeAt(r)];t.push(n?String.fromCharCode(n):e.charAt(r))}return t.join("")},t.stringToUTF8String=p,t.unreachable=o,t.utf8StringToString=function(e){return unescape(encodeURIComponent(e))},t.warn=i,t.IDENTITY_MATRIX=[1,0,0,1,0,0],t.FONT_IDENTITY_MATRIX=[.001,0,0,.001,0,0],t.LINE_FACTOR=1.35,t.LINE_DESCENT_FACTOR=.35,t.BASELINE_FACTOR=.25925925925925924,t.RenderingIntentFlag={ANY:1,DISPLAY:2,PRINT:4,SAVE:8,ANNOTATIONS_FORMS:16,ANNOTATIONS_STORAGE:32,ANNOTATIONS_DISABLE:64,OPLIST:256},t.AnnotationMode={DISABLE:0,ENABLE:1,ENABLE_FORMS:2,ENABLE_STORAGE:3},t.AnnotationEditorPrefix="pdfjs_internal_editor_",t.AnnotationEditorType={DISABLE:-1,NONE:0,FREETEXT:3,INK:15},t.AnnotationEditorParamsType={FREETEXT_SIZE:1,FREETEXT_COLOR:2,FREETEXT_OPACITY:3,INK_COLOR:11,INK_THICKNESS:12,INK_OPACITY:13},t.PermissionFlag={PRINT:4,MODIFY_CONTENTS:8,COPY:16,MODIFY_ANNOTATIONS:32,FILL_INTERACTIVE_FORMS:256,COPY_FOR_ACCESSIBILITY:512,ASSEMBLE:1024,PRINT_HIGH_QUALITY:2048},t.TextRenderingMode={FILL:0,STROKE:1,FILL_STROKE:2,INVISIBLE:3,FILL_ADD_TO_PATH:4,STROKE_ADD_TO_PATH:5,FILL_STROKE_ADD_TO_PATH:6,ADD_TO_PATH:7,FILL_STROKE_MASK:3,ADD_TO_PATH_FLAG:4},t.ImageKind={GRAYSCALE_1BPP:1,RGB_24BPP:2,RGBA_32BPP:3},t.AnnotationType={TEXT:1,LINK:2,FREETEXT:3,LINE:4,SQUARE:5,CIRCLE:6,POLYGON:7,POLYLINE:8,HIGHLIGHT:9,UNDERLINE:10,SQUIGGLY:11,STRIKEOUT:12,STAMP:13,CARET:14,INK:15,POPUP:16,FILEATTACHMENT:17,SOUND:18,MOVIE:19,WIDGET:20,SCREEN:21,PRINTERMARK:22,TRAPNET:23,WATERMARK:24,THREED:25,REDACT:26},t.AnnotationStateModelType={MARKED:"Marked",REVIEW:"Review"},t.AnnotationMarkedState={MARKED:"Marked",UNMARKED:"Unmarked"},t.AnnotationReviewState={ACCEPTED:"Accepted",REJECTED:"Rejected",CANCELLED:"Cancelled",COMPLETED:"Completed",NONE:"None"},t.AnnotationReplyType={GROUP:"Group",REPLY:"R"},t.AnnotationFlag={INVISIBLE:1,HIDDEN:2,PRINT:4,NOZOOM:8,NOROTATE:16,NOVIEW:32,READONLY:64,LOCKED:128,TOGGLENOVIEW:256,LOCKEDCONTENTS:512},t.AnnotationFieldFlag={READONLY:1,REQUIRED:2,NOEXPORT:4,MULTILINE:4096,PASSWORD:8192,NOTOGGLETOOFF:16384,RADIO:32768,PUSHBUTTON:65536,COMBO:131072,EDIT:262144,SORT:524288,FILESELECT:1048576,MULTISELECT:2097152,DONOTSPELLCHECK:4194304,DONOTSCROLL:8388608,COMB:16777216,RICHTEXT:33554432,RADIOSINUNISON:33554432,COMMITONSELCHANGE:67108864},t.AnnotationBorderStyleType={SOLID:1,DASHED:2,BEVELED:3,INSET:4,UNDERLINE:5},t.AnnotationActionEventType={E:"Mouse Enter",X:"Mouse Exit",D:"Mouse Down",U:"Mouse Up",Fo:"Focus",Bl:"Blur",PO:"PageOpen",PC:"PageClose",PV:"PageVisible",PI:"PageInvisible",K:"Keystroke",F:"Format",V:"Validate",C:"Calculate"},t.DocumentActionEventType={WC:"WillClose",WS:"WillSave",DS:"DidSave",WP:"WillPrint",DP:"DidPrint"},t.PageActionEventType={O:"PageOpen",C:"PageClose"};const n={ERRORS:0,WARNINGS:1,INFOS:5};t.VerbosityLevel=n,t.CMapCompressionType={NONE:0,BINARY:1},t.OPS={dependency:1,setLineWidth:2,setLineCap:3,setLineJoin:4,setMiterLimit:5,setDash:6,setRenderingIntent:7,setFlatness:8,setGState:9,save:10,restore:11,transform:12,moveTo:13,lineTo:14,curveTo:15,curveTo2:16,curveTo3:17,closePath:18,rectangle:19,stroke:20,closeStroke:21,fill:22,eoFill:23,fillStroke:24,eoFillStroke:25,closeFillStroke:26,closeEOFillStroke:27,endPath:28,clip:29,eoClip:30,beginText:31,endText:32,setCharSpacing:33,setWordSpacing:34,setHScale:35,setLeading:36,setFont:37,setTextRenderingMode:38,setTextRise:39,moveText:40,setLeadingMoveText:41,setTextMatrix:42,nextLine:43,showText:44,showSpacedText:45,nextLineShowText:46,nextLineSetSpacingShowText:47,setCharWidth:48,setCharWidthAndBounds:49,setStrokeColorSpace:50,setFillColorSpace:51,setStrokeColor:52,setStrokeColorN:53,setFillColor:54,setFillColorN:55,setStrokeGray:56,setFillGray:57,setStrokeRGBColor:58,setFillRGBColor:59,setStrokeCMYKColor:60,setFillCMYKColor:61,shadingFill:62,beginInlineImage:63,beginImageData:64,endInlineImage:65,paintXObject:66,markPoint:67,markPointProps:68,beginMarkedContent:69,beginMarkedContentProps:70,endMarkedContent:71,beginCompat:72,endCompat:73,paintFormXObjectBegin:74,paintFormXObjectEnd:75,beginGroup:76,endGroup:77,beginAnnotation:80,endAnnotation:81,paintImageMaskXObject:83,paintImageMaskXObjectGroup:84,paintImageXObject:85,paintInlineImageXObject:86,paintInlineImageXObjectGroup:87,paintImageXObjectRepeat:88,paintImageMaskXObjectRepeat:89,paintSolidColorImageMask:90,constructPath:91},t.UNSUPPORTED_FEATURES={forms:"forms",javaScript:"javaScript",signatures:"signatures",smask:"smask",shadingPattern:"shadingPattern",errorTilingPattern:"errorTilingPattern",errorExtGState:"errorExtGState",errorXObject:"errorXObject",errorFontLoadType3:"errorFontLoadType3",errorFontState:"errorFontState",errorFontMissing:"errorFontMissing",errorFontTranslate:"errorFontTranslate",errorColorSpace:"errorColorSpace",errorOperatorList:"errorOperatorList",errorFontToUnicode:"errorFontToUnicode",errorFontLoadNative:"errorFontLoadNative",errorFontBuildPath:"errorFontBuildPath",errorFontGetPath:"errorFontGetPath",errorMarkedContent:"errorMarkedContent",errorContentSubStream:"errorContentSubStream"},t.PasswordResponses={NEED_PASSWORD:1,INCORRECT_PASSWORD:2};let r=n.WARNINGS;function i(e){r>=n.WARNINGS&&console.log("Warning: ".concat(e))}function o(e){throw new Error(e)}function s(e,t,n){let r=arguments.length>3&&void 0!==arguments[3]&&arguments[3];return Object.defineProperty(e,t,{value:n,enumerable:!r,configurable:!0,writable:!1}),n}const a=function(){function e(t,n){this.constructor===e&&o("Cannot initialize BaseException."),this.message=t,this.name=n}return e.prototype=new Error,e.constructor=e,e}();function l(e){"string"!==typeof e&&o("Invalid argument for stringToBytes");const t=e.length,n=new Uint8Array(t);for(let r=0;r<t;++r)n[r]=255&e.charCodeAt(r);return n}function c(e){return void 0!==e.length?e.length:void 0!==e.byteLength?e.byteLength:void o("Invalid argument for arrayByteLength")}t.BaseException=a,t.PasswordException=class extends a{constructor(e,t){super(e,"PasswordException"),this.code=t}},t.UnknownErrorException=class extends a{constructor(e,t){super(e,"UnknownErrorException"),this.details=t}},t.InvalidPDFException=class extends a{constructor(e){super(e,"InvalidPDFException")}},t.MissingPDFException=class extends a{constructor(e){super(e,"MissingPDFException")}},t.UnexpectedResponseException=class extends a{constructor(e,t){super(e,"UnexpectedResponseException"),this.status=t}},t.FormatError=class extends a{constructor(e){super(e,"FormatError")}},t.AbortException=class extends a{constructor(e){super(e,"AbortException")}},t.FeatureTest=class{static get isLittleEndian(){return s(this,"isLittleEndian",function(){const e=new Uint8Array(4);return e[0]=1,1===new Uint32Array(e.buffer,0,1)[0]}())}static get isEvalSupported(){return s(this,"isEvalSupported",function(){try{return new Function(""),!0}catch(e){return!1}}())}static get isOffscreenCanvasSupported(){return s(this,"isOffscreenCanvasSupported","undefined"!==typeof OffscreenCanvas)}static get platform(){return"undefined"===typeof navigator?s(this,"platform",{isWin:!1,isMac:!1}):s(this,"platform",{isWin:navigator.platform.includes("Win"),isMac:navigator.platform.includes("Mac")})}};const u=[...Array(256).keys()].map((e=>e.toString(16).padStart(2,"0")));class d{static makeHexColor(e,t,n){return"#".concat(u[e]).concat(u[t]).concat(u[n])}static scaleMinMax(e,t){let n;e[0]?(e[0]<0&&(n=t[0],t[0]=t[1],t[1]=n),t[0]*=e[0],t[1]*=e[0],e[3]<0&&(n=t[2],t[2]=t[3],t[3]=n),t[2]*=e[3],t[3]*=e[3]):(n=t[0],t[0]=t[2],t[2]=n,n=t[1],t[1]=t[3],t[3]=n,e[1]<0&&(n=t[2],t[2]=t[3],t[3]=n),t[2]*=e[1],t[3]*=e[1],e[2]<0&&(n=t[0],t[0]=t[1],t[1]=n),t[0]*=e[2],t[1]*=e[2]),t[0]+=e[4],t[1]+=e[4],t[2]+=e[5],t[3]+=e[5]}static transform(e,t){return[e[0]*t[0]+e[2]*t[1],e[1]*t[0]+e[3]*t[1],e[0]*t[2]+e[2]*t[3],e[1]*t[2]+e[3]*t[3],e[0]*t[4]+e[2]*t[5]+e[4],e[1]*t[4]+e[3]*t[5]+e[5]]}static applyTransform(e,t){return[e[0]*t[0]+e[1]*t[2]+t[4],e[0]*t[1]+e[1]*t[3]+t[5]]}static applyInverseTransform(e,t){const n=t[0]*t[3]-t[1]*t[2];return[(e[0]*t[3]-e[1]*t[2]+t[2]*t[5]-t[4]*t[3])/n,(-e[0]*t[1]+e[1]*t[0]+t[4]*t[1]-t[5]*t[0])/n]}static getAxialAlignedBoundingBox(e,t){const n=d.applyTransform(e,t),r=d.applyTransform(e.slice(2,4),t),i=d.applyTransform([e[0],e[3]],t),o=d.applyTransform([e[2],e[1]],t);return[Math.min(n[0],r[0],i[0],o[0]),Math.min(n[1],r[1],i[1],o[1]),Math.max(n[0],r[0],i[0],o[0]),Math.max(n[1],r[1],i[1],o[1])]}static inverseTransform(e){const t=e[0]*e[3]-e[1]*e[2];return[e[3]/t,-e[1]/t,-e[2]/t,e[0]/t,(e[2]*e[5]-e[4]*e[3])/t,(e[4]*e[1]-e[5]*e[0])/t]}static singularValueDecompose2dScale(e){const t=[e[0],e[2],e[1],e[3]],n=e[0]*t[0]+e[1]*t[2],r=e[0]*t[1]+e[1]*t[3],i=e[2]*t[0]+e[3]*t[2],o=e[2]*t[1]+e[3]*t[3],s=(n+o)/2,a=Math.sqrt((n+o)**2-4*(n*o-i*r))/2,l=s+a||1,c=s-a||1;return[Math.sqrt(l),Math.sqrt(c)]}static normalizeRect(e){const t=e.slice(0);return e[0]>e[2]&&(t[0]=e[2],t[2]=e[0]),e[1]>e[3]&&(t[1]=e[3],t[3]=e[1]),t}static intersect(e,t){const n=Math.max(Math.min(e[0],e[2]),Math.min(t[0],t[2])),r=Math.min(Math.max(e[0],e[2]),Math.max(t[0],t[2]));if(n>r)return null;const i=Math.max(Math.min(e[1],e[3]),Math.min(t[1],t[3])),o=Math.min(Math.max(e[1],e[3]),Math.max(t[1],t[3]));return i>o?null:[n,i,r,o]}static bezierBoundingBox(e,t,n,r,i,o,s,a){const l=[],c=[[],[]];let u,d,h,p,f,g,m,y;for(let x=0;x<2;++x)if(0===x?(d=6*e-12*n+6*i,u=-3*e+9*n-9*i+3*s,h=3*n-3*e):(d=6*t-12*r+6*o,u=-3*t+9*r-9*o+3*a,h=3*r-3*t),Math.abs(u)<1e-12){if(Math.abs(d)<1e-12)continue;p=-h/d,0<p&&p<1&&l.push(p)}else m=d*d-4*h*u,y=Math.sqrt(m),m<0||(f=(-d+y)/(2*u),0<f&&f<1&&l.push(f),g=(-d-y)/(2*u),0<g&&g<1&&l.push(g));let v,_=l.length;const b=_;for(;_--;)p=l[_],v=1-p,c[0][_]=v*v*v*e+3*v*v*p*n+3*v*p*p*i+p*p*p*s,c[1][_]=v*v*v*t+3*v*v*p*r+3*v*p*p*o+p*p*p*a;return c[0][b]=e,c[1][b]=t,c[0][b+1]=s,c[1][b+1]=a,c[0].length=c[1].length=b+2,[Math.min(...c[0]),Math.min(...c[1]),Math.max(...c[0]),Math.max(...c[1])]}}t.Util=d;const h=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,728,711,710,729,733,731,730,732,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,8226,8224,8225,8230,8212,8211,402,8260,8249,8250,8722,8240,8222,8220,8221,8216,8217,8218,8482,64257,64258,321,338,352,376,381,305,322,339,353,382,0,8364];function p(e){return decodeURIComponent(escape(e))}},(__unused_webpack_module,exports,__w_pdfjs_require__)=>{Object.defineProperty(exports,"__esModule",{value:!0}),exports.build=exports.RenderTask=exports.PDFWorkerUtil=exports.PDFWorker=exports.PDFPageProxy=exports.PDFDocumentProxy=exports.PDFDocumentLoadingTask=exports.PDFDataRangeTransport=exports.LoopbackPort=exports.DefaultStandardFontDataFactory=exports.DefaultCanvasFactory=exports.DefaultCMapReaderFactory=void 0,exports.getDocument=getDocument,exports.version=void 0;var _util=__w_pdfjs_require__(1),_annotation_storage=__w_pdfjs_require__(3),_display_utils=__w_pdfjs_require__(6),_font_loader=__w_pdfjs_require__(9),_canvas=__w_pdfjs_require__(11),_worker_options=__w_pdfjs_require__(14),_is_node=__w_pdfjs_require__(10),_message_handler=__w_pdfjs_require__(15),_metadata=__w_pdfjs_require__(16),_optional_content_config=__w_pdfjs_require__(17),_transport_stream=__w_pdfjs_require__(18),_xfa_text=__w_pdfjs_require__(19);const DEFAULT_RANGE_CHUNK_SIZE=65536,RENDERING_CANCELLED_TIMEOUT=100;let DefaultCanvasFactory=_display_utils.DOMCanvasFactory;exports.DefaultCanvasFactory=DefaultCanvasFactory;let DefaultCMapReaderFactory=_display_utils.DOMCMapReaderFactory;exports.DefaultCMapReaderFactory=DefaultCMapReaderFactory;let DefaultStandardFontDataFactory=_display_utils.DOMStandardFontDataFactory,createPDFNetworkStream;if(exports.DefaultStandardFontDataFactory=DefaultStandardFontDataFactory,_is_node.isNodeJS){const{NodeCanvasFactory:e,NodeCMapReaderFactory:t,NodeStandardFontDataFactory:n}=__w_pdfjs_require__(20);exports.DefaultCanvasFactory=DefaultCanvasFactory=e,exports.DefaultCMapReaderFactory=DefaultCMapReaderFactory=t,exports.DefaultStandardFontDataFactory=DefaultStandardFontDataFactory=n}if(_is_node.isNodeJS){const{PDFNodeStream:e}=__w_pdfjs_require__(21);createPDFNetworkStream=t=>new e(t)}else{const{PDFNetworkStream:e}=__w_pdfjs_require__(24),{PDFFetchStream:t}=__w_pdfjs_require__(25);createPDFNetworkStream=n=>(0,_display_utils.isValidFetchUrl)(n.url)?new t(n):new e(n)}function getDocument(e){if("string"===typeof e||e instanceof URL)e={url:e};else if((0,_util.isArrayBuffer)(e))e={data:e};else if(e instanceof PDFDataRangeTransport)(0,_display_utils.deprecated)("`PDFDataRangeTransport`-instance, please use a parameter object with `range`-property instead."),e={range:e};else if("object"!==typeof e)throw new Error("Invalid parameter in getDocument, need either string, URL, TypedArray, or parameter object.");if(!e.url&&!e.data&&!e.range)throw new Error("Invalid parameter object: need either .data, .range or .url");const t=new PDFDocumentLoadingTask,n=Object.create(null);let r=null,i=null;for(const a in e){const t=e[a];switch(a){case"url":if(t instanceof URL){n[a]=t.href;continue}try{n[a]=new URL(t,window.location).href;continue}catch(s){if(_is_node.isNodeJS&&"string"===typeof t)break}throw new Error("Invalid PDF url data: either string or URL-object is expected in the url property.");case"range":r=t;continue;case"worker":i=t;continue;case"data":if(_is_node.isNodeJS&&"undefined"!==typeof Buffer&&t instanceof Buffer)n[a]=new Uint8Array(t);else{if(t instanceof Uint8Array&&t.byteLength===t.buffer.byteLength)break;if("string"===typeof t)n[a]=(0,_util.stringToBytes)(t);else{if(("object"!==typeof t||null===t||isNaN(t.length))&&!(0,_util.isArrayBuffer)(t))throw new Error("Invalid PDF binary data: either TypedArray, string, or array-like object is expected in the data property.");n[a]=new Uint8Array(t)}}continue}n[a]=t}if(n.CMapReaderFactory=n.CMapReaderFactory||DefaultCMapReaderFactory,n.StandardFontDataFactory=n.StandardFontDataFactory||DefaultStandardFontDataFactory,n.ignoreErrors=!0!==n.stopAtErrors,n.fontExtraProperties=!0===n.fontExtraProperties,n.pdfBug=!0===n.pdfBug,n.enableXfa=!0===n.enableXfa,(!Number.isInteger(n.rangeChunkSize)||n.rangeChunkSize<1)&&(n.rangeChunkSize=DEFAULT_RANGE_CHUNK_SIZE),("string"!==typeof n.docBaseUrl||(0,_display_utils.isDataScheme)(n.docBaseUrl))&&(n.docBaseUrl=null),(!Number.isInteger(n.maxImageSize)||n.maxImageSize<-1)&&(n.maxImageSize=-1),"string"!==typeof n.cMapUrl&&(n.cMapUrl=null),"string"!==typeof n.standardFontDataUrl&&(n.standardFontDataUrl=null),"boolean"!==typeof n.useWorkerFetch&&(n.useWorkerFetch=n.CMapReaderFactory===_display_utils.DOMCMapReaderFactory&&n.StandardFontDataFactory===_display_utils.DOMStandardFontDataFactory&&(0,_display_utils.isValidFetchUrl)(n.cMapUrl,document.baseURI)&&(0,_display_utils.isValidFetchUrl)(n.standardFontDataUrl,document.baseURI)),"boolean"!==typeof n.isEvalSupported&&(n.isEvalSupported=!0),"boolean"!==typeof n.isOffscreenCanvasSupported&&(n.isOffscreenCanvasSupported=!_is_node.isNodeJS),"boolean"!==typeof n.disableFontFace&&(n.disableFontFace=_is_node.isNodeJS),"boolean"!==typeof n.useSystemFonts&&(n.useSystemFonts=!_is_node.isNodeJS&&!n.disableFontFace),"object"===typeof n.ownerDocument&&null!==n.ownerDocument||(n.ownerDocument=globalThis.document),"boolean"!==typeof n.disableRange&&(n.disableRange=!1),"boolean"!==typeof n.disableStream&&(n.disableStream=!1),"boolean"!==typeof n.disableAutoFetch&&(n.disableAutoFetch=!1),(0,_util.setVerbosityLevel)(n.verbosity),!i){const e={verbosity:n.verbosity,port:_worker_options.GlobalWorkerOptions.workerPort};i=e.port?PDFWorker.fromPort(e):new PDFWorker(e),t._worker=i}const o=t.docId;return i.promise.then((function(){if(t.destroyed)throw new Error("Loading aborted");const e=_fetchDocument(i,n,r,o),s=new Promise((function(e){let t;r?t=new _transport_stream.PDFDataTransportStream({length:n.length,initialData:n.initialData,progressiveDone:n.progressiveDone,contentDispositionFilename:n.contentDispositionFilename,disableRange:n.disableRange,disableStream:n.disableStream},r):n.data||(t=createPDFNetworkStream({url:n.url,length:n.length,httpHeaders:n.httpHeaders,withCredentials:n.withCredentials,rangeChunkSize:n.rangeChunkSize,disableRange:n.disableRange,disableStream:n.disableStream})),e(t)}));return Promise.all([e,s]).then((function(e){let[r,s]=e;if(t.destroyed)throw new Error("Loading aborted");const a=new _message_handler.MessageHandler(o,r,i.port),l=new WorkerTransport(a,t,s,n);t._transport=l,a.send("Ready",null)}))})).catch(t._capability.reject),t}async function _fetchDocument(e,t,n,r){if(e.destroyed)throw new Error("Worker was destroyed");n&&(t.length=n.length,t.initialData=n.initialData,t.progressiveDone=n.progressiveDone,t.contentDispositionFilename=n.contentDispositionFilename);const i=t.data?[t.data.buffer]:null,o=await e.messageHandler.sendWithPromise("GetDocRequest",{docId:r,apiVersion:"3.3.122",data:t.data,password:t.password,disableAutoFetch:t.disableAutoFetch,rangeChunkSize:t.rangeChunkSize,length:t.length,docBaseUrl:t.docBaseUrl,enableXfa:t.enableXfa,evaluatorOptions:{maxImageSize:t.maxImageSize,disableFontFace:t.disableFontFace,ignoreErrors:t.ignoreErrors,isEvalSupported:t.isEvalSupported,isOffscreenCanvasSupported:t.isOffscreenCanvasSupported,fontExtraProperties:t.fontExtraProperties,useSystemFonts:t.useSystemFonts,cMapUrl:t.useWorkerFetch?t.cMapUrl:null,standardFontDataUrl:t.useWorkerFetch?t.standardFontDataUrl:null}},i);if(e.destroyed)throw new Error("Worker was destroyed");return o}var _onUnsupportedFeature=new WeakMap;class PDFDocumentLoadingTask{constructor(){var e,t;_classPrivateFieldInitSpec(this,_onUnsupportedFeature,{writable:!0,value:null}),this._capability=(0,_util.createPromiseCapability)(),this._transport=null,this._worker=null,this.docId="d".concat((_classStaticPrivateFieldSpecSet(PDFDocumentLoadingTask,PDFDocumentLoadingTask,_docId,(e=_classStaticPrivateFieldSpecGet(PDFDocumentLoadingTask,PDFDocumentLoadingTask,_docId),t=e++,e)),t)),this.destroyed=!1,this.onPassword=null,this.onProgress=null}get onUnsupportedFeature(){return _classPrivateFieldGet(this,_onUnsupportedFeature)}set onUnsupportedFeature(e){(0,_display_utils.deprecated)("The PDFDocumentLoadingTask onUnsupportedFeature property will be removed in the future."),_classPrivateFieldSet(this,_onUnsupportedFeature,e)}get promise(){return this._capability.promise}async destroy(){var e;this.destroyed=!0,await(null===(e=this._transport)||void 0===e?void 0:e.destroy()),this._transport=null,this._worker&&(this._worker.destroy(),this._worker=null)}}var _docId={writable:!0,value:0};exports.PDFDocumentLoadingTask=PDFDocumentLoadingTask;class PDFDataRangeTransport{constructor(e,t){let n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null;this.length=e,this.initialData=t,this.progressiveDone=n,this.contentDispositionFilename=r,this._rangeListeners=[],this._progressListeners=[],this._progressiveReadListeners=[],this._progressiveDoneListeners=[],this._readyCapability=(0,_util.createPromiseCapability)()}addRangeListener(e){this._rangeListeners.push(e)}addProgressListener(e){this._progressListeners.push(e)}addProgressiveReadListener(e){this._progressiveReadListeners.push(e)}addProgressiveDoneListener(e){this._progressiveDoneListeners.push(e)}onDataRange(e,t){for(const n of this._rangeListeners)n(e,t)}onDataProgress(e,t){this._readyCapability.promise.then((()=>{for(const n of this._progressListeners)n(e,t)}))}onDataProgressiveRead(e){this._readyCapability.promise.then((()=>{for(const t of this._progressiveReadListeners)t(e)}))}onDataProgressiveDone(){this._readyCapability.promise.then((()=>{for(const e of this._progressiveDoneListeners)e()}))}transportReady(){this._readyCapability.resolve()}requestDataRange(e,t){(0,_util.unreachable)("Abstract method PDFDataRangeTransport.requestDataRange")}abort(){}}exports.PDFDataRangeTransport=PDFDataRangeTransport;class PDFDocumentProxy{constructor(e,t){this._pdfInfo=e,this._transport=t}get annotationStorage(){return this._transport.annotationStorage}get numPages(){return this._pdfInfo.numPages}get fingerprints(){return this._pdfInfo.fingerprints}get isPureXfa(){return(0,_util.shadow)(this,"isPureXfa",!!this._transport._htmlForXfa)}get allXfaHtml(){return this._transport._htmlForXfa}getPage(e){return this._transport.getPage(e)}getPageIndex(e){return this._transport.getPageIndex(e)}getDestinations(){return this._transport.getDestinations()}getDestination(e){return this._transport.getDestination(e)}getPageLabels(){return this._transport.getPageLabels()}getPageLayout(){return this._transport.getPageLayout()}getPageMode(){return this._transport.getPageMode()}getViewerPreferences(){return this._transport.getViewerPreferences()}getOpenAction(){return this._transport.getOpenAction()}getAttachments(){return this._transport.getAttachments()}getJavaScript(){return this._transport.getJavaScript()}getJSActions(){return this._transport.getDocJSActions()}getOutline(){return this._transport.getOutline()}getOptionalContentConfig(){return this._transport.getOptionalContentConfig()}getPermissions(){return this._transport.getPermissions()}getMetadata(){return this._transport.getMetadata()}getMarkInfo(){return this._transport.getMarkInfo()}getData(){return this._transport.getData()}saveDocument(){return this._transport.saveDocument()}getDownloadInfo(){return this._transport.downloadInfoCapability.promise}cleanup(){let e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return this._transport.startCleanup(e||this.isPureXfa)}destroy(){return this.loadingTask.destroy()}get loadingParams(){return this._transport.loadingParams}get loadingTask(){return this._transport.loadingTask}getFieldObjects(){return this._transport.getFieldObjects()}hasJSActions(){return this._transport.hasJSActions()}getCalculationOrderIds(){return this._transport.getCalculationOrderIds()}}exports.PDFDocumentProxy=PDFDocumentProxy;class PDFPageProxy{constructor(e,t,n,r){let i=arguments.length>4&&void 0!==arguments[4]&&arguments[4];this._pageIndex=e,this._pageInfo=t,this._ownerDocument=r,this._transport=n,this._stats=i?new _display_utils.StatTimer:null,this._pdfBug=i,this.commonObjs=n.commonObjs,this.objs=new PDFObjects,this._bitmaps=new Set,this.cleanupAfterRender=!1,this.pendingCleanup=!1,this._intentStates=new Map,this.destroyed=!1}get pageNumber(){return this._pageIndex+1}get rotate(){return this._pageInfo.rotate}get ref(){return this._pageInfo.ref}get userUnit(){return this._pageInfo.userUnit}get view(){return this._pageInfo.view}getViewport(){let{scale:e,rotation:t=this.rotate,offsetX:n=0,offsetY:r=0,dontFlip:i=!1}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return new _display_utils.PageViewport({viewBox:this.view,scale:e,rotation:t,offsetX:n,offsetY:r,dontFlip:i})}getAnnotations(){let{intent:e="display"}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const t=this._transport.getRenderingIntent(e);return this._transport.getAnnotations(this._pageIndex,t.renderingIntent)}getJSActions(){return this._transport.getPageJSActions(this._pageIndex)}get isPureXfa(){return(0,_util.shadow)(this,"isPureXfa",!!this._transport._htmlForXfa)}async getXfa(){var e;return(null===(e=this._transport._htmlForXfa)||void 0===e?void 0:e.children[this._pageIndex])||null}render(e){var t,n;let{canvasContext:r,viewport:i,intent:o="display",annotationMode:s=_util.AnnotationMode.ENABLE,transform:a=null,canvasFactory:l=null,background:c=null,optionalContentConfigPromise:u=null,annotationCanvasMap:d=null,pageColors:h=null,printAnnotationStorage:p=null}=e;null===(t=this._stats)||void 0===t||t.time("Overall");const f=this._transport.getRenderingIntent(o,s,p);this.pendingCleanup=!1,u||(u=this._transport.getOptionalContentConfig());let g=this._intentStates.get(f.cacheKey);g||(g=Object.create(null),this._intentStates.set(f.cacheKey,g)),g.streamReaderCancelTimeout&&(clearTimeout(g.streamReaderCancelTimeout),g.streamReaderCancelTimeout=null);const m=l||new DefaultCanvasFactory({ownerDocument:this._ownerDocument}),y=!!(f.renderingIntent&_util.RenderingIntentFlag.PRINT);var v;g.displayReadyCapability||(g.displayReadyCapability=(0,_util.createPromiseCapability)(),g.operatorList={fnArray:[],argsArray:[],lastChunk:!1,separateAnnots:null},null===(v=this._stats)||void 0===v||v.time("Page Request"),this._pumpOperatorList(f));const _=e=>{var t,n;g.renderTasks.delete(b),(this.cleanupAfterRender||y)&&(this.pendingCleanup=!0),this._tryCleanup(),e?(b.capability.reject(e),this._abortOperatorList({intentState:g,reason:e instanceof Error?e:new Error(e)})):b.capability.resolve(),null===(t=this._stats)||void 0===t||t.timeEnd("Rendering"),null===(n=this._stats)||void 0===n||n.timeEnd("Overall")},b=new InternalRenderTask({callback:_,params:{canvasContext:r,viewport:i,transform:a,background:c},objs:this.objs,commonObjs:this.commonObjs,annotationCanvasMap:d,operatorList:g.operatorList,pageIndex:this._pageIndex,canvasFactory:m,useRequestAnimationFrame:!y,pdfBug:this._pdfBug,pageColors:h});((n=g).renderTasks||(n.renderTasks=new Set)).add(b);const x=b.task;return Promise.all([g.displayReadyCapability.promise,u]).then((e=>{var t;let[n,r]=e;this.pendingCleanup?_():(null===(t=this._stats)||void 0===t||t.time("Rendering"),b.initializeGraphics({transparency:n,optionalContentConfig:r}),b.operatorListChanged())})).catch(_),x}getOperatorList(){let{intent:e="display",annotationMode:t=_util.AnnotationMode.ENABLE,printAnnotationStorage:n=null}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const r=this._transport.getRenderingIntent(e,t,n,!0);let i,o=this._intentStates.get(r.cacheKey);var s,a;return o||(o=Object.create(null),this._intentStates.set(r.cacheKey,o)),o.opListReadCapability||(i=Object.create(null),i.operatorListChanged=function(){o.operatorList.lastChunk&&(o.opListReadCapability.resolve(o.operatorList),o.renderTasks.delete(i))},o.opListReadCapability=(0,_util.createPromiseCapability)(),((s=o).renderTasks||(s.renderTasks=new Set)).add(i),o.operatorList={fnArray:[],argsArray:[],lastChunk:!1,separateAnnots:null},null===(a=this._stats)||void 0===a||a.time("Page Request"),this._pumpOperatorList(r)),o.opListReadCapability.promise}streamTextContent(){let{disableCombineTextItems:e=!1,includeMarkedContent:t=!1}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return this._transport.messageHandler.sendWithStream("GetTextContent",{pageIndex:this._pageIndex,combineTextItems:!0!==e,includeMarkedContent:!0===t},{highWaterMark:100,size:e=>e.items.length})}getTextContent(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(this._transport._htmlForXfa)return this.getXfa().then((e=>_xfa_text.XfaText.textContent(e)));const t=this.streamTextContent(e);return new Promise((function(e,n){const r=t.getReader(),i={items:[],styles:Object.create(null)};!function t(){r.read().then((function(n){let{value:r,done:o}=n;o?e(i):(Object.assign(i.styles,r.styles),i.items.push(...r.items),t())}),n)}()}))}getStructTree(){return this._transport.getStructTree(this._pageIndex)}_destroy(){this.destroyed=!0;const e=[];for(const t of this._intentStates.values())if(this._abortOperatorList({intentState:t,reason:new Error("Page was destroyed."),force:!0}),!t.opListReadCapability)for(const n of t.renderTasks)e.push(n.completed),n.cancel();this.objs.clear();for(const t of this._bitmaps)t.close();return this._bitmaps.clear(),this.pendingCleanup=!1,Promise.all(e)}cleanup(){let e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return this.pendingCleanup=!0,this._tryCleanup(e)}_tryCleanup(){let e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];if(!this.pendingCleanup)return!1;for(const{renderTasks:t,operatorList:n}of this._intentStates.values())if(t.size>0||!n.lastChunk)return!1;this._intentStates.clear(),this.objs.clear(),e&&this._stats&&(this._stats=new _display_utils.StatTimer);for(const t of this._bitmaps)t.close();return this._bitmaps.clear(),this.pendingCleanup=!1,!0}_startRenderPage(e,t){var n,r;const i=this._intentStates.get(t);i&&(null===(n=this._stats)||void 0===n||n.timeEnd("Page Request"),null===(r=i.displayReadyCapability)||void 0===r||r.resolve(e))}_renderPageChunk(e,t){for(let n=0,r=e.length;n<r;n++)t.operatorList.fnArray.push(e.fnArray[n]),t.operatorList.argsArray.push(e.argsArray[n]);t.operatorList.lastChunk=e.lastChunk,t.operatorList.separateAnnots=e.separateAnnots;for(const n of t.renderTasks)n.operatorListChanged();e.lastChunk&&this._tryCleanup()}_pumpOperatorList(e){let{renderingIntent:t,cacheKey:n,annotationStorageMap:r}=e;const i=this._transport.messageHandler.sendWithStream("GetOperatorList",{pageIndex:this._pageIndex,intent:t,cacheKey:n,annotationStorage:r}).getReader(),o=this._intentStates.get(n);o.streamReader=i;const s=()=>{i.read().then((e=>{let{value:t,done:n}=e;n?o.streamReader=null:this._transport.destroyed||(this._renderPageChunk(t,o),s())}),(e=>{if(o.streamReader=null,!this._transport.destroyed){if(o.operatorList){o.operatorList.lastChunk=!0;for(const e of o.renderTasks)e.operatorListChanged();this._tryCleanup()}if(o.displayReadyCapability)o.displayReadyCapability.reject(e);else{if(!o.opListReadCapability)throw e;o.opListReadCapability.reject(e)}}}))};s()}_abortOperatorList(e){let{intentState:t,reason:n,force:r=!1}=e;if(t.streamReader){if(t.streamReaderCancelTimeout&&(clearTimeout(t.streamReaderCancelTimeout),t.streamReaderCancelTimeout=null),!r){if(t.renderTasks.size>0)return;if(n instanceof _display_utils.RenderingCancelledException){let e=RENDERING_CANCELLED_TIMEOUT;return n.extraDelay>0&&n.extraDelay<1e3&&(e+=n.extraDelay),void(t.streamReaderCancelTimeout=setTimeout((()=>{t.streamReaderCancelTimeout=null,this._abortOperatorList({intentState:t,reason:n,force:!0})}),e))}}if(t.streamReader.cancel(new _util.AbortException(n.message)).catch((()=>{})),t.streamReader=null,!this._transport.destroyed){for(const[e,n]of this._intentStates)if(n===t){this._intentStates.delete(e);break}this.cleanup()}}}get stats(){return this._stats}}exports.PDFPageProxy=PDFPageProxy;var _listeners=new WeakMap,_deferred=new WeakMap;class LoopbackPort{constructor(){_classPrivateFieldInitSpec(this,_listeners,{writable:!0,value:[]}),_classPrivateFieldInitSpec(this,_deferred,{writable:!0,value:Promise.resolve()})}postMessage(e,t){const n={data:structuredClone(e,t)};_classPrivateFieldGet(this,_deferred).then((()=>{for(const e of _classPrivateFieldGet(this,_listeners))e.call(this,n)}))}addEventListener(e,t){_classPrivateFieldGet(this,_listeners).push(t)}removeEventListener(e,t){const n=_classPrivateFieldGet(this,_listeners).indexOf(t);_classPrivateFieldGet(this,_listeners).splice(n,1)}terminate(){_classPrivateFieldGet(this,_listeners).length=0}}exports.LoopbackPort=LoopbackPort;const PDFWorkerUtil={isWorkerDisabled:!1,fallbackWorkerSrc:null,fakeWorkerId:0};if(exports.PDFWorkerUtil=PDFWorkerUtil,_is_node.isNodeJS)PDFWorkerUtil.isWorkerDisabled=!0,PDFWorkerUtil.fallbackWorkerSrc="./pdf.worker.js";else if("object"===typeof document){var _document;const e=null===(_document=document)||void 0===_document||null===(_document=_document.currentScript)||void 0===_document?void 0:_document.src;e&&(PDFWorkerUtil.fallbackWorkerSrc=e.replace(/(\.(?:min\.)?js)(\?.*)?$/i,".worker$1$2"))}PDFWorkerUtil.isSameOrigin=function(e,t){let n;try{if(n=new URL(e),!n.origin||"null"===n.origin)return!1}catch(i){return!1}const r=new URL(t,n);return n.origin===r.origin},PDFWorkerUtil.createCDNWrapper=function(e){const t='importScripts("'.concat(e,'");');return URL.createObjectURL(new Blob([t]))};class PDFWorker{constructor(){let{name:e=null,port:t=null,verbosity:n=(0,_util.getVerbosityLevel)()}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(t&&_classStaticPrivateFieldSpecGet(PDFWorker,PDFWorker,_workerPorts).has(t))throw new Error("Cannot use more than one PDFWorker per port.");if(this.name=e,this.destroyed=!1,this.verbosity=n,this._readyCapability=(0,_util.createPromiseCapability)(),this._port=null,this._webWorker=null,this._messageHandler=null,t)return _classStaticPrivateFieldSpecGet(PDFWorker,PDFWorker,_workerPorts).set(t,this),void this._initializeFromPort(t);this._initialize()}get promise(){return this._readyCapability.promise}get port(){return this._port}get messageHandler(){return this._messageHandler}_initializeFromPort(e){this._port=e,this._messageHandler=new _message_handler.MessageHandler("main","worker",e),this._messageHandler.on("ready",(function(){})),this._readyCapability.resolve(),this._messageHandler.send("configure",{verbosity:this.verbosity})}_initialize(){if(!PDFWorkerUtil.isWorkerDisabled&&!PDFWorker._mainThreadWorkerMessageHandler){let{workerSrc:t}=PDFWorker;try{PDFWorkerUtil.isSameOrigin(window.location.href,t)||(t=PDFWorkerUtil.createCDNWrapper(new URL(t,window.location).href));const e=new Worker(t),n=new _message_handler.MessageHandler("main","worker",e),r=()=>{e.removeEventListener("error",i),n.destroy(),e.terminate(),this.destroyed?this._readyCapability.reject(new Error("Worker was destroyed")):this._setupFakeWorker()},i=()=>{this._webWorker||r()};e.addEventListener("error",i),n.on("test",(t=>{e.removeEventListener("error",i),this.destroyed?r():t?(this._messageHandler=n,this._port=e,this._webWorker=e,this._readyCapability.resolve(),n.send("configure",{verbosity:this.verbosity})):(this._setupFakeWorker(),n.destroy(),e.terminate())})),n.on("ready",(t=>{if(e.removeEventListener("error",i),this.destroyed)r();else try{o()}catch(n){this._setupFakeWorker()}}));const o=()=>{const e=new Uint8Array;n.send("test",e,[e.buffer])};return void o()}catch(e){(0,_util.info)("The worker has been disabled.")}}this._setupFakeWorker()}_setupFakeWorker(){PDFWorkerUtil.isWorkerDisabled||((0,_util.warn)("Setting up fake worker."),PDFWorkerUtil.isWorkerDisabled=!0),PDFWorker._setupFakeWorkerGlobal.then((e=>{if(this.destroyed)return void this._readyCapability.reject(new Error("Worker was destroyed"));const t=new LoopbackPort;this._port=t;const n="fake".concat(PDFWorkerUtil.fakeWorkerId++),r=new _message_handler.MessageHandler(n+"_worker",n,t);e.setup(r,t);const i=new _message_handler.MessageHandler(n,n+"_worker",t);this._messageHandler=i,this._readyCapability.resolve(),i.send("configure",{verbosity:this.verbosity})})).catch((e=>{this._readyCapability.reject(new Error('Setting up fake worker failed: "'.concat(e.message,'".')))}))}destroy(){this.destroyed=!0,this._webWorker&&(this._webWorker.terminate(),this._webWorker=null),_classStaticPrivateFieldSpecGet(PDFWorker,PDFWorker,_workerPorts).delete(this._port),this._port=null,this._messageHandler&&(this._messageHandler.destroy(),this._messageHandler=null)}static fromPort(e){if(null===e||void 0===e||!e.port)throw new Error("PDFWorker.fromPort - invalid method signature.");return _classStaticPrivateFieldSpecGet(this,PDFWorker,_workerPorts).has(e.port)?_classStaticPrivateFieldSpecGet(this,PDFWorker,_workerPorts).get(e.port):new PDFWorker(e)}static get workerSrc(){if(_worker_options.GlobalWorkerOptions.workerSrc)return _worker_options.GlobalWorkerOptions.workerSrc;if(null!==PDFWorkerUtil.fallbackWorkerSrc)return _is_node.isNodeJS||(0,_display_utils.deprecated)('No "GlobalWorkerOptions.workerSrc" specified.'),PDFWorkerUtil.fallbackWorkerSrc;throw new Error('No "GlobalWorkerOptions.workerSrc" specified.')}static get _mainThreadWorkerMessageHandler(){try{var e;return(null===(e=globalThis.pdfjsWorker)||void 0===e?void 0:e.WorkerMessageHandler)||null}catch(t){return null}}static get _setupFakeWorkerGlobal(){const loader=async()=>{const mainWorkerMessageHandler=this._mainThreadWorkerMessageHandler;if(mainWorkerMessageHandler)return mainWorkerMessageHandler;if(_is_node.isNodeJS){const worker=eval("require")(this.workerSrc);return worker.WorkerMessageHandler}return await(0,_display_utils.loadScript)(this.workerSrc),window.pdfjsWorker.WorkerMessageHandler};return(0,_util.shadow)(this,"_setupFakeWorkerGlobal",loader())}}var _workerPorts={writable:!0,value:new WeakMap};exports.PDFWorker=PDFWorker;var _pageCache=new WeakMap,_pagePromises=new WeakMap,_metadataPromise=new WeakMap;class WorkerTransport{constructor(e,t,n,r){_classPrivateFieldInitSpec(this,_pageCache,{writable:!0,value:new Map}),_classPrivateFieldInitSpec(this,_pagePromises,{writable:!0,value:new Map}),_classPrivateFieldInitSpec(this,_metadataPromise,{writable:!0,value:null}),this.messageHandler=e,this.loadingTask=t,this.commonObjs=new PDFObjects,this.fontLoader=new _font_loader.FontLoader({onUnsupportedFeature:this._onUnsupportedFeature.bind(this),ownerDocument:r.ownerDocument,styleElement:r.styleElement}),this._params=r,r.useWorkerFetch||(this.CMapReaderFactory=new r.CMapReaderFactory({baseUrl:r.cMapUrl,isCompressed:r.cMapPacked}),this.StandardFontDataFactory=new r.StandardFontDataFactory({baseUrl:r.standardFontDataUrl})),this.destroyed=!1,this.destroyCapability=null,this._passwordCapability=null,this._networkStream=n,this._fullReader=null,this._lastProgress=null,this.downloadInfoCapability=(0,_util.createPromiseCapability)(),this.setupMessageHandler()}get annotationStorage(){return(0,_util.shadow)(this,"annotationStorage",new _annotation_storage.AnnotationStorage)}getRenderingIntent(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:_util.AnnotationMode.ENABLE,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,r=arguments.length>3&&void 0!==arguments[3]&&arguments[3],i=_util.RenderingIntentFlag.DISPLAY,o=null;switch(e){case"any":i=_util.RenderingIntentFlag.ANY;break;case"display":break;case"print":i=_util.RenderingIntentFlag.PRINT;break;default:(0,_util.warn)("getRenderingIntent - invalid intent: ".concat(e))}switch(t){case _util.AnnotationMode.DISABLE:i+=_util.RenderingIntentFlag.ANNOTATIONS_DISABLE;break;case _util.AnnotationMode.ENABLE:break;case _util.AnnotationMode.ENABLE_FORMS:i+=_util.RenderingIntentFlag.ANNOTATIONS_FORMS;break;case _util.AnnotationMode.ENABLE_STORAGE:i+=_util.RenderingIntentFlag.ANNOTATIONS_STORAGE,o=(i&_util.RenderingIntentFlag.PRINT&&n instanceof _annotation_storage.PrintAnnotationStorage?n:this.annotationStorage).serializable;break;default:(0,_util.warn)("getRenderingIntent - invalid annotationMode: ".concat(t))}return r&&(i+=_util.RenderingIntentFlag.OPLIST),{renderingIntent:i,cacheKey:"".concat(i,"_").concat(_annotation_storage.AnnotationStorage.getHash(o)),annotationStorageMap:o}}destroy(){if(this.destroyCapability)return this.destroyCapability.promise;this.destroyed=!0,this.destroyCapability=(0,_util.createPromiseCapability)(),this._passwordCapability&&this._passwordCapability.reject(new Error("Worker was destroyed during onPassword callback"));const e=[];for(const n of _classPrivateFieldGet(this,_pageCache).values())e.push(n._destroy());_classPrivateFieldGet(this,_pageCache).clear(),_classPrivateFieldGet(this,_pagePromises).clear(),this.hasOwnProperty("annotationStorage")&&this.annotationStorage.resetModified();const t=this.messageHandler.sendWithPromise("Terminate",null);return e.push(t),Promise.all(e).then((()=>{this.commonObjs.clear(),this.fontLoader.clear(),_classPrivateFieldSet(this,_metadataPromise,null),this._getFieldObjectsPromise=null,this._hasJSActionsPromise=null,this._networkStream&&this._networkStream.cancelAllRequests(new _util.AbortException("Worker was terminated.")),this.messageHandler&&(this.messageHandler.destroy(),this.messageHandler=null),this.destroyCapability.resolve()}),this.destroyCapability.reject),this.destroyCapability.promise}setupMessageHandler(){const{messageHandler:e,loadingTask:t}=this;e.on("GetReader",((e,t)=>{(0,_util.assert)(this._networkStream,"GetReader - no `IPDFStream` instance available."),this._fullReader=this._networkStream.getFullReader(),this._fullReader.onProgress=e=>{this._lastProgress={loaded:e.loaded,total:e.total}},t.onPull=()=>{this._fullReader.read().then((function(e){let{value:n,done:r}=e;r?t.close():((0,_util.assert)(n instanceof ArrayBuffer,"GetReader - expected an ArrayBuffer."),t.enqueue(new Uint8Array(n),1,[n]))})).catch((e=>{t.error(e)}))},t.onCancel=e=>{this._fullReader.cancel(e),t.ready.catch((e=>{if(!this.destroyed)throw e}))}})),e.on("ReaderHeadersReady",(e=>{const n=(0,_util.createPromiseCapability)(),r=this._fullReader;return r.headersReady.then((()=>{var e;r.isStreamingSupported&&r.isRangeSupported||(this._lastProgress&&(null===(e=t.onProgress)||void 0===e||e.call(t,this._lastProgress)),r.onProgress=e=>{var n;null===(n=t.onProgress)||void 0===n||n.call(t,{loaded:e.loaded,total:e.total})});n.resolve({isStreamingSupported:r.isStreamingSupported,isRangeSupported:r.isRangeSupported,contentLength:r.contentLength})}),n.reject),n.promise})),e.on("GetRangeReader",((e,t)=>{(0,_util.assert)(this._networkStream,"GetRangeReader - no `IPDFStream` instance available.");const n=this._networkStream.getRangeReader(e.begin,e.end);n?(t.onPull=()=>{n.read().then((function(e){let{value:n,done:r}=e;r?t.close():((0,_util.assert)(n instanceof ArrayBuffer,"GetRangeReader - expected an ArrayBuffer."),t.enqueue(new Uint8Array(n),1,[n]))})).catch((e=>{t.error(e)}))},t.onCancel=e=>{n.cancel(e),t.ready.catch((e=>{if(!this.destroyed)throw e}))}):t.close()})),e.on("GetDoc",(e=>{let{pdfInfo:n}=e;this._numPages=n.numPages,this._htmlForXfa=n.htmlForXfa,delete n.htmlForXfa,t._capability.resolve(new PDFDocumentProxy(n,this))})),e.on("DocException",(function(e){let n;switch(e.name){case"PasswordException":n=new _util.PasswordException(e.message,e.code);break;case"InvalidPDFException":n=new _util.InvalidPDFException(e.message);break;case"MissingPDFException":n=new _util.MissingPDFException(e.message);break;case"UnexpectedResponseException":n=new _util.UnexpectedResponseException(e.message,e.status);break;case"UnknownErrorException":n=new _util.UnknownErrorException(e.message,e.details);break;default:(0,_util.unreachable)("DocException - expected a valid Error.")}t._capability.reject(n)})),e.on("PasswordRequest",(e=>{if(this._passwordCapability=(0,_util.createPromiseCapability)(),t.onPassword){const r=e=>{e instanceof Error?this._passwordCapability.reject(e):this._passwordCapability.resolve({password:e})};try{t.onPassword(r,e.code)}catch(n){this._passwordCapability.reject(n)}}else this._passwordCapability.reject(new _util.PasswordException(e.message,e.code));return this._passwordCapability.promise})),e.on("DataLoaded",(e=>{var n;null===(n=t.onProgress)||void 0===n||n.call(t,{loaded:e.length,total:e.length}),this.downloadInfoCapability.resolve(e)})),e.on("StartRenderPage",(e=>{this.destroyed||_classPrivateFieldGet(this,_pageCache).get(e.pageIndex)._startRenderPage(e.transparency,e.cacheKey)})),e.on("commonobj",(t=>{var n;let[r,i,o]=t;if(!this.destroyed&&!this.commonObjs.has(r))switch(i){case"Font":const t=this._params;if("error"in o){const e=o.error;(0,_util.warn)("Error during font loading: ".concat(e)),this.commonObjs.resolve(r,e);break}let s=null;t.pdfBug&&null!==(n=globalThis.FontInspector)&&void 0!==n&&n.enabled&&(s={registerFont(e,t){globalThis.FontInspector.fontAdded(e,t)}});const a=new _font_loader.FontFaceObject(o,{isEvalSupported:t.isEvalSupported,disableFontFace:t.disableFontFace,ignoreErrors:t.ignoreErrors,onUnsupportedFeature:this._onUnsupportedFeature.bind(this),fontRegistry:s});this.fontLoader.bind(a).catch((t=>e.sendWithPromise("FontFallback",{id:r}))).finally((()=>{!t.fontExtraProperties&&a.data&&(a.data=null),this.commonObjs.resolve(r,a)}));break;case"FontPath":case"Image":this.commonObjs.resolve(r,o);break;default:throw new Error("Got unknown common object type ".concat(i))}})),e.on("obj",(e=>{let[t,n,r,i]=e;if(this.destroyed)return;const o=_classPrivateFieldGet(this,_pageCache).get(n);if(!o.objs.has(t))switch(r){case"Image":o.objs.resolve(t,i);const e=8e6;if(i){let t;if(i.bitmap){const{bitmap:e,width:n,height:r}=i;t=n*r*4,o._bitmaps.add(e)}else{var s;t=(null===(s=i.data)||void 0===s?void 0:s.length)||0}t>e&&(o.cleanupAfterRender=!0)}break;case"Pattern":o.objs.resolve(t,i);break;default:throw new Error("Got unknown object type ".concat(r))}})),e.on("DocProgress",(e=>{var n;this.destroyed||null===(n=t.onProgress)||void 0===n||n.call(t,{loaded:e.loaded,total:e.total})})),e.on("UnsupportedFeature",this._onUnsupportedFeature.bind(this)),e.on("FetchBuiltInCMap",(e=>this.destroyed?Promise.reject(new Error("Worker was destroyed.")):this.CMapReaderFactory?this.CMapReaderFactory.fetch(e):Promise.reject(new Error("CMapReaderFactory not initialized, see the `useWorkerFetch` parameter.")))),e.on("FetchStandardFontData",(e=>this.destroyed?Promise.reject(new Error("Worker was destroyed.")):this.StandardFontDataFactory?this.StandardFontDataFactory.fetch(e):Promise.reject(new Error("StandardFontDataFactory not initialized, see the `useWorkerFetch` parameter."))))}_onUnsupportedFeature(e){var t,n;let{featureId:r}=e;this.destroyed||null===(t=(n=this.loadingTask).onUnsupportedFeature)||void 0===t||t.call(n,r)}getData(){return this.messageHandler.sendWithPromise("GetData",null)}saveDocument(){var e,t;return this.annotationStorage.size<=0&&(0,_util.warn)("saveDocument called while `annotationStorage` is empty, please use the getData-method instead."),this.messageHandler.sendWithPromise("SaveDocument",{isPureXfa:!!this._htmlForXfa,numPages:this._numPages,annotationStorage:this.annotationStorage.serializable,filename:null!==(e=null===(t=this._fullReader)||void 0===t?void 0:t.filename)&&void 0!==e?e:null}).finally((()=>{this.annotationStorage.resetModified()}))}getPage(e){if(!Number.isInteger(e)||e<=0||e>this._numPages)return Promise.reject(new Error("Invalid page request."));const t=e-1,n=_classPrivateFieldGet(this,_pagePromises).get(t);if(n)return n;const r=this.messageHandler.sendWithPromise("GetPage",{pageIndex:t}).then((e=>{if(this.destroyed)throw new Error("Transport destroyed");const n=new PDFPageProxy(t,e,this,this._params.ownerDocument,this._params.pdfBug);return _classPrivateFieldGet(this,_pageCache).set(t,n),n}));return _classPrivateFieldGet(this,_pagePromises).set(t,r),r}getPageIndex(e){return"object"!==typeof e||null===e||!Number.isInteger(e.num)||e.num<0||!Number.isInteger(e.gen)||e.gen<0?Promise.reject(new Error("Invalid pageIndex request.")):this.messageHandler.sendWithPromise("GetPageIndex",{num:e.num,gen:e.gen})}getAnnotations(e,t){return this.messageHandler.sendWithPromise("GetAnnotations",{pageIndex:e,intent:t})}getFieldObjects(){return this._getFieldObjectsPromise||(this._getFieldObjectsPromise=this.messageHandler.sendWithPromise("GetFieldObjects",null))}hasJSActions(){return this._hasJSActionsPromise||(this._hasJSActionsPromise=this.messageHandler.sendWithPromise("HasJSActions",null))}getCalculationOrderIds(){return this.messageHandler.sendWithPromise("GetCalculationOrderIds",null)}getDestinations(){return this.messageHandler.sendWithPromise("GetDestinations",null)}getDestination(e){return"string"!==typeof e?Promise.reject(new Error("Invalid destination request.")):this.messageHandler.sendWithPromise("GetDestination",{id:e})}getPageLabels(){return this.messageHandler.sendWithPromise("GetPageLabels",null)}getPageLayout(){return this.messageHandler.sendWithPromise("GetPageLayout",null)}getPageMode(){return this.messageHandler.sendWithPromise("GetPageMode",null)}getViewerPreferences(){return this.messageHandler.sendWithPromise("GetViewerPreferences",null)}getOpenAction(){return this.messageHandler.sendWithPromise("GetOpenAction",null)}getAttachments(){return this.messageHandler.sendWithPromise("GetAttachments",null)}getJavaScript(){return this.messageHandler.sendWithPromise("GetJavaScript",null)}getDocJSActions(){return this.messageHandler.sendWithPromise("GetDocJSActions",null)}getPageJSActions(e){return this.messageHandler.sendWithPromise("GetPageJSActions",{pageIndex:e})}getStructTree(e){return this.messageHandler.sendWithPromise("GetStructTree",{pageIndex:e})}getOutline(){return this.messageHandler.sendWithPromise("GetOutline",null)}getOptionalContentConfig(){return this.messageHandler.sendWithPromise("GetOptionalContentConfig",null).then((e=>new _optional_content_config.OptionalContentConfig(e)))}getPermissions(){return this.messageHandler.sendWithPromise("GetPermissions",null)}getMetadata(){return _classPrivateFieldGet(this,_metadataPromise)||_classPrivateFieldSet(this,_metadataPromise,this.messageHandler.sendWithPromise("GetMetadata",null).then((e=>{var t,n,r,i;return{info:e[0],metadata:e[1]?new _metadata.Metadata(e[1]):null,contentDispositionFilename:null!==(t=null===(n=this._fullReader)||void 0===n?void 0:n.filename)&&void 0!==t?t:null,contentLength:null!==(r=null===(i=this._fullReader)||void 0===i?void 0:i.contentLength)&&void 0!==r?r:null}})))}getMarkInfo(){return this.messageHandler.sendWithPromise("GetMarkInfo",null)}async startCleanup(){let e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];if(!this.destroyed){await this.messageHandler.sendWithPromise("Cleanup",null);for(const e of _classPrivateFieldGet(this,_pageCache).values())if(!e.cleanup())throw new Error("startCleanup: Page ".concat(e.pageNumber," is currently rendering."));this.commonObjs.clear(),e||this.fontLoader.clear(),_classPrivateFieldSet(this,_metadataPromise,null),this._getFieldObjectsPromise=null,this._hasJSActionsPromise=null}}get loadingParams(){const e=this._params;return(0,_util.shadow)(this,"loadingParams",{disableAutoFetch:e.disableAutoFetch,enableXfa:e.enableXfa})}}var _objs=new WeakMap,_ensureObj=new WeakSet;class PDFObjects{constructor(){_classPrivateMethodInitSpec(this,_ensureObj),_classPrivateFieldInitSpec(this,_objs,{writable:!0,value:Object.create(null)})}get(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;if(t){const n=_classPrivateMethodGet(this,_ensureObj,_ensureObj2).call(this,e);return n.capability.promise.then((()=>t(n.data))),null}const n=_classPrivateFieldGet(this,_objs)[e];if(null===n||void 0===n||!n.capability.settled)throw new Error("Requesting object that isn't resolved yet ".concat(e,"."));return n.data}has(e){const t=_classPrivateFieldGet(this,_objs)[e];return(null===t||void 0===t?void 0:t.capability.settled)||!1}resolve(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;const n=_classPrivateMethodGet(this,_ensureObj,_ensureObj2).call(this,e);n.data=t,n.capability.resolve()}clear(){_classPrivateFieldSet(this,_objs,Object.create(null))}}function _ensureObj2(e){const t=_classPrivateFieldGet(this,_objs)[e];return t||(_classPrivateFieldGet(this,_objs)[e]={capability:(0,_util.createPromiseCapability)(),data:null})}var _internalRenderTask=new WeakMap;class RenderTask{constructor(e){_classPrivateFieldInitSpec(this,_internalRenderTask,{writable:!0,value:null}),_classPrivateFieldSet(this,_internalRenderTask,e),this.onContinue=null}get promise(){return _classPrivateFieldGet(this,_internalRenderTask).capability.promise}cancel(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;_classPrivateFieldGet(this,_internalRenderTask).cancel(null,e)}get separateAnnots(){const{separateAnnots:e}=_classPrivateFieldGet(this,_internalRenderTask).operatorList;if(!e)return!1;const{annotationCanvasMap:t}=_classPrivateFieldGet(this,_internalRenderTask);return e.form||e.canvas&&(null===t||void 0===t?void 0:t.size)>0}}exports.RenderTask=RenderTask;class InternalRenderTask{constructor(e){let{callback:t,params:n,objs:r,commonObjs:i,annotationCanvasMap:o,operatorList:s,pageIndex:a,canvasFactory:l,useRequestAnimationFrame:c=!1,pdfBug:u=!1,pageColors:d=null}=e;this.callback=t,this.params=n,this.objs=r,this.commonObjs=i,this.annotationCanvasMap=o,this.operatorListIdx=null,this.operatorList=s,this._pageIndex=a,this.canvasFactory=l,this._pdfBug=u,this.pageColors=d,this.running=!1,this.graphicsReadyCallback=null,this.graphicsReady=!1,this._useRequestAnimationFrame=!0===c&&"undefined"!==typeof window,this.cancelled=!1,this.capability=(0,_util.createPromiseCapability)(),this.task=new RenderTask(this),this._cancelBound=this.cancel.bind(this),this._continueBound=this._continue.bind(this),this._scheduleNextBound=this._scheduleNext.bind(this),this._nextBound=this._next.bind(this),this._canvas=n.canvasContext.canvas}get completed(){return this.capability.promise.catch((function(){}))}initializeGraphics(e){var t,n;let{transparency:r=!1,optionalContentConfig:i}=e;if(this.cancelled)return;if(this._canvas){if(_classStaticPrivateFieldSpecGet(InternalRenderTask,InternalRenderTask,_canvasInUse).has(this._canvas))throw new Error("Cannot use the same canvas during multiple render() operations. Use different canvas or ensure previous operations were cancelled or completed.");_classStaticPrivateFieldSpecGet(InternalRenderTask,InternalRenderTask,_canvasInUse).add(this._canvas)}this._pdfBug&&null!==(t=globalThis.StepperManager)&&void 0!==t&&t.enabled&&(this.stepper=globalThis.StepperManager.create(this._pageIndex),this.stepper.init(this.operatorList),this.stepper.nextBreakPoint=this.stepper.getNextBreakPoint());const{canvasContext:o,viewport:s,transform:a,background:l}=this.params;this.gfx=new _canvas.CanvasGraphics(o,this.commonObjs,this.objs,this.canvasFactory,{optionalContentConfig:i},this.annotationCanvasMap,this.pageColors),this.gfx.beginDrawing({transform:a,viewport:s,transparency:r,background:l}),this.operatorListIdx=0,this.graphicsReady=!0,null===(n=this.graphicsReadyCallback)||void 0===n||n.call(this)}cancel(){var e;let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;this.running=!1,this.cancelled=!0,null===(e=this.gfx)||void 0===e||e.endDrawing(),this._canvas&&_classStaticPrivateFieldSpecGet(InternalRenderTask,InternalRenderTask,_canvasInUse).delete(this._canvas),this.callback(t||new _display_utils.RenderingCancelledException("Rendering cancelled, page ".concat(this._pageIndex+1),"canvas",n))}operatorListChanged(){var e;this.graphicsReady?(null===(e=this.stepper)||void 0===e||e.updateOperatorList(this.operatorList),this.running||this._continue()):this.graphicsReadyCallback||(this.graphicsReadyCallback=this._continueBound)}_continue(){this.running=!0,this.cancelled||(this.task.onContinue?this.task.onContinue(this._scheduleNextBound):this._scheduleNext())}_scheduleNext(){this._useRequestAnimationFrame?window.requestAnimationFrame((()=>{this._nextBound().catch(this._cancelBound)})):Promise.resolve().then(this._nextBound).catch(this._cancelBound)}async _next(){this.cancelled||(this.operatorListIdx=this.gfx.executeOperatorList(this.operatorList,this.operatorListIdx,this._continueBound,this.stepper),this.operatorListIdx===this.operatorList.argsArray.length&&(this.running=!1,this.operatorList.lastChunk&&(this.gfx.endDrawing(),this._canvas&&_classStaticPrivateFieldSpecGet(InternalRenderTask,InternalRenderTask,_canvasInUse).delete(this._canvas),this.callback())))}}var _canvasInUse={writable:!0,value:new WeakSet};const version="3.3.122";exports.version=version;const build="562045607";exports.build=build},(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.PrintAnnotationStorage=t.AnnotationStorage=void 0;var r=n(1),i=n(4),o=n(8),s=new WeakMap,a=new WeakMap,l=new WeakSet;class c{constructor(){_classPrivateMethodInitSpec(this,l),_classPrivateFieldInitSpec(this,s,{writable:!0,value:!1}),_classPrivateFieldInitSpec(this,a,{writable:!0,value:new Map}),this.onSetModified=null,this.onResetModified=null,this.onAnnotationEditor=null}getValue(e,t){const n=_classPrivateFieldGet(this,a).get(e);return void 0===n?t:Object.assign(t,n)}getRawValue(e){return _classPrivateFieldGet(this,a).get(e)}remove(e){if(_classPrivateFieldGet(this,a).delete(e),0===_classPrivateFieldGet(this,a).size&&this.resetModified(),"function"===typeof this.onAnnotationEditor){for(const e of _classPrivateFieldGet(this,a).values())if(e instanceof i.AnnotationEditor)return;this.onAnnotationEditor(null)}}setValue(e,t){const n=_classPrivateFieldGet(this,a).get(e);let r=!1;if(void 0!==n)for(const[i,o]of Object.entries(t))n[i]!==o&&(r=!0,n[i]=o);else r=!0,_classPrivateFieldGet(this,a).set(e,t);r&&_classPrivateMethodGet(this,l,u).call(this),t instanceof i.AnnotationEditor&&"function"===typeof this.onAnnotationEditor&&this.onAnnotationEditor(t.constructor._type)}has(e){return _classPrivateFieldGet(this,a).has(e)}getAll(){return _classPrivateFieldGet(this,a).size>0?(0,r.objectFromMap)(_classPrivateFieldGet(this,a)):null}get size(){return _classPrivateFieldGet(this,a).size}resetModified(){_classPrivateFieldGet(this,s)&&(_classPrivateFieldSet(this,s,!1),"function"===typeof this.onResetModified&&this.onResetModified())}get print(){return new h(this)}get serializable(){if(0===_classPrivateFieldGet(this,a).size)return null;const e=new Map;for(const[t,n]of _classPrivateFieldGet(this,a)){const r=n instanceof i.AnnotationEditor?n.serialize():n;r&&e.set(t,r)}return e}static getHash(e){if(!e)return"";const t=new o.MurmurHash3_64;for(const[n,r]of e)t.update("".concat(n,":").concat(JSON.stringify(r)));return t.hexdigest()}}function u(){_classPrivateFieldGet(this,s)||(_classPrivateFieldSet(this,s,!0),"function"===typeof this.onSetModified&&this.onSetModified())}t.AnnotationStorage=c;var d=new WeakMap;class h extends c{constructor(e){super(),_classPrivateFieldInitSpec(this,d,{writable:!0,value:null}),_classPrivateFieldSet(this,d,structuredClone(e.serializable))}get print(){(0,r.unreachable)("Should not call PrintAnnotationStorage.print")}get serializable(){return _classPrivateFieldGet(this,d)}}t.PrintAnnotationStorage=h},(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.AnnotationEditor=void 0;var r=n(5),i=n(1),o=new WeakMap,s=new WeakMap,a=new WeakMap,l=new WeakMap,c=new WeakMap,u=new WeakMap;class d{constructor(e){_classPrivateFieldInitSpec(this,o,{writable:!0,value:this.focusin.bind(this)}),_classPrivateFieldInitSpec(this,s,{writable:!0,value:this.focusout.bind(this)}),_classPrivateFieldInitSpec(this,a,{writable:!0,value:!1}),_classPrivateFieldInitSpec(this,l,{writable:!0,value:!1}),_classPrivateFieldInitSpec(this,c,{writable:!0,value:!1}),_defineProperty(this,"_uiManager",null),_classPrivateFieldInitSpec(this,u,{writable:!0,value:d._zIndex++}),this.constructor===d&&(0,i.unreachable)("Cannot initialize AnnotationEditor."),this.parent=e.parent,this.id=e.id,this.width=this.height=null,this.pageIndex=e.parent.pageIndex,this.name=e.name,this.div=null,this._uiManager=e.uiManager;const{rotation:t,rawDims:{pageWidth:n,pageHeight:r,pageX:h,pageY:p}}=this.parent.viewport;this.rotation=t,this.pageDimensions=[n,r],this.pageTranslation=[h,p];const[f,g]=this.parentDimensions;this.x=e.x/f,this.y=e.y/g,this.isAttachedToDOM=!1}static get _defaultLineColor(){return(0,i.shadow)(this,"_defaultLineColor",this._colorManager.getHexCode("CanvasText"))}addCommands(e){this._uiManager.addCommands(e)}get currentLayer(){return this._uiManager.currentLayer}setInBackground(){this.div.style.zIndex=0}setInForeground(){this.div.style.zIndex=_classPrivateFieldGet(this,u)}setParent(e){null!==e&&(this.pageIndex=e.pageIndex,this.pageDimensions=e.pageDimensions),this.parent=e}focusin(e){_classPrivateFieldGet(this,a)?_classPrivateFieldSet(this,a,!1):this.parent.setSelected(this)}focusout(e){var t;if(!this.isAttachedToDOM)return;const n=e.relatedTarget;null!==n&&void 0!==n&&n.closest("#".concat(this.id))||(e.preventDefault(),null!==(t=this.parent)&&void 0!==t&&t.isMultipleSelection||this.commitOrRemove())}commitOrRemove(){this.isEmpty()?this.remove():this.commit()}commit(){this.addToAnnotationStorage()}addToAnnotationStorage(){this._uiManager.addToAnnotationStorage(this)}dragstart(e){const t=this.parent.div.getBoundingClientRect();this.startX=e.clientX-t.x,this.startY=e.clientY-t.y,e.dataTransfer.setData("text/plain",this.id),e.dataTransfer.effectAllowed="move"}setAt(e,t,n,r){const[i,o]=this.parentDimensions;[n,r]=this.screenToPageTranslation(n,r),this.x=(e+n)/i,this.y=(t+r)/o,this.div.style.left="".concat(100*this.x,"%"),this.div.style.top="".concat(100*this.y,"%")}translate(e,t){const[n,r]=this.parentDimensions;[e,t]=this.screenToPageTranslation(e,t),this.x+=e/n,this.y+=t/r,this.div.style.left="".concat(100*this.x,"%"),this.div.style.top="".concat(100*this.y,"%")}screenToPageTranslation(e,t){switch(this.parentRotation){case 90:return[t,-e];case 180:return[-e,-t];case 270:return[-t,e];default:return[e,t]}}get parentScale(){return this._uiManager.viewParameters.realScale}get parentRotation(){return this._uiManager.viewParameters.rotation}get parentDimensions(){const{realScale:e}=this._uiManager.viewParameters,[t,n]=this.pageDimensions;return[t*e,n*e]}setDims(e,t){const[n,r]=this.parentDimensions;this.div.style.width="".concat(100*e/n,"%"),this.div.style.height="".concat(100*t/r,"%")}fixDims(){const{style:e}=this.div,{height:t,width:n}=e,r=n.endsWith("%"),i=t.endsWith("%");if(r&&i)return;const[o,s]=this.parentDimensions;r||(e.width="".concat(100*parseFloat(n)/o,"%")),i||(e.height="".concat(100*parseFloat(t)/s,"%"))}getInitialTranslation(){return[0,0]}render(){this.div=document.createElement("div"),this.div.setAttribute("data-editor-rotation",(360-this.rotation)%360),this.div.className=this.name,this.div.setAttribute("id",this.id),this.div.setAttribute("tabIndex",0),this.setInForeground(),this.div.addEventListener("focusin",_classPrivateFieldGet(this,o)),this.div.addEventListener("focusout",_classPrivateFieldGet(this,s));const[e,t]=this.getInitialTranslation();return this.translate(e,t),(0,r.bindEvents)(this,this.div,["dragstart","pointerdown"]),this.div}pointerdown(e){const{isMac:t}=i.FeatureTest.platform;0!==e.button||e.ctrlKey&&t?e.preventDefault():(e.ctrlKey&&!t||e.shiftKey||e.metaKey&&t?this.parent.toggleSelected(this):this.parent.setSelected(this),_classPrivateFieldSet(this,a,!0))}getRect(e,t){const n=this.parentScale,[r,i]=this.pageDimensions,[o,s]=this.pageTranslation,a=e/n,l=t/n,c=this.x*r,u=this.y*i,d=this.width*r,h=this.height*i;switch(this.rotation){case 0:return[c+a+o,i-u-l-h+s,c+a+d+o,i-u-l+s];case 90:return[c+l+o,i-u+a+s,c+l+h+o,i-u+a+d+s];case 180:return[c-a-d+o,i-u+l+s,c-a+o,i-u+l+h+s];case 270:return[c-l-h+o,i-u-a-d+s,c-l+o,i-u-a+s];default:throw new Error("Invalid rotation")}}getRectInCurrentCoords(e,t){const[n,r,i,o]=e,s=i-n,a=o-r;switch(this.rotation){case 0:return[n,t-o,s,a];case 90:return[n,t-r,a,s];case 180:return[i,t-r,s,a];case 270:return[i,t-o,a,s];default:throw new Error("Invalid rotation")}}onceAdded(){}isEmpty(){return!1}enableEditMode(){_classPrivateFieldSet(this,c,!0)}disableEditMode(){_classPrivateFieldSet(this,c,!1)}isInEditMode(){return _classPrivateFieldGet(this,c)}shouldGetKeyboardEvents(){return!1}needsToBeRebuilt(){return this.div&&!this.isAttachedToDOM}rebuild(){var e;null===(e=this.div)||void 0===e||e.addEventListener("focusin",_classPrivateFieldGet(this,o))}serialize(){(0,i.unreachable)("An editor must be serializable")}static deserialize(e,t,n){const r=new this.prototype.constructor({parent:t,id:t.getNextId(),uiManager:n});r.rotation=e.rotation;const[i,o]=r.pageDimensions,[s,a,l,c]=r.getRectInCurrentCoords(e.rect,o);return r.x=s/i,r.y=a/o,r.width=l/i,r.height=c/o,r}remove(){this.div.removeEventListener("focusin",_classPrivateFieldGet(this,o)),this.div.removeEventListener("focusout",_classPrivateFieldGet(this,s)),this.isEmpty()||this.commit(),this.parent.remove(this)}select(){var e;null===(e=this.div)||void 0===e||e.classList.add("selectedEditor")}unselect(){var e;null===(e=this.div)||void 0===e||e.classList.remove("selectedEditor")}updateParams(e,t){}disableEditing(){}enableEditing(){}get propertiesToUpdate(){return{}}get contentDiv(){return this.div}get isEditing(){return _classPrivateFieldGet(this,l)}set isEditing(e){_classPrivateFieldSet(this,l,e),e?(this.parent.setSelected(this),this.parent.setActiveEditor(this)):this.parent.setActiveEditor(null)}}_defineProperty(d,"_colorManager",new r.ColorManager),_defineProperty(d,"_zIndex",1),t.AnnotationEditor=d},(e,t,n)=>{var r;Object.defineProperty(t,"__esModule",{value:!0}),t.KeyboardManager=t.CommandManager=t.ColorManager=t.AnnotationEditorUIManager=void 0,t.bindEvents=function(e,t,n){for(const r of n)t.addEventListener(r,e[r].bind(e))},t.opacityToHex=function(e){return Math.round(Math.min(255,Math.max(1,255*e))).toString(16).padStart(2,"0")};var i=n(1),o=n(6),s=new WeakMap;class a{constructor(){_classPrivateFieldInitSpec(this,s,{writable:!0,value:0})}getId(){var e,t;return"".concat(i.AnnotationEditorPrefix).concat((_classPrivateFieldSet(this,s,(e=_classPrivateFieldGet(this,s),t=e++,e)),t))}}var l=new WeakMap,c=new WeakMap,u=new WeakMap,d=new WeakMap;class h{constructor(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:128;_classPrivateFieldInitSpec(this,l,{writable:!0,value:[]}),_classPrivateFieldInitSpec(this,c,{writable:!0,value:!1}),_classPrivateFieldInitSpec(this,u,{writable:!0,value:void 0}),_classPrivateFieldInitSpec(this,d,{writable:!0,value:-1}),_classPrivateFieldSet(this,u,e)}add(e){let{cmd:t,undo:n,mustExec:r,type:i=NaN,overwriteIfSameType:o=!1,keepUndo:s=!1}=e;if(r&&t(),_classPrivateFieldGet(this,c))return;const a={cmd:t,undo:n,type:i};if(-1===_classPrivateFieldGet(this,d))return _classPrivateFieldGet(this,l).length>0&&(_classPrivateFieldGet(this,l).length=0),_classPrivateFieldSet(this,d,0),void _classPrivateFieldGet(this,l).push(a);if(o&&_classPrivateFieldGet(this,l)[_classPrivateFieldGet(this,d)].type===i)return s&&(a.undo=_classPrivateFieldGet(this,l)[_classPrivateFieldGet(this,d)].undo),void(_classPrivateFieldGet(this,l)[_classPrivateFieldGet(this,d)]=a);const h=_classPrivateFieldGet(this,d)+1;h===_classPrivateFieldGet(this,u)?_classPrivateFieldGet(this,l).splice(0,1):(_classPrivateFieldSet(this,d,h),h<_classPrivateFieldGet(this,l).length&&_classPrivateFieldGet(this,l).splice(h)),_classPrivateFieldGet(this,l).push(a)}undo(){-1!==_classPrivateFieldGet(this,d)&&(_classPrivateFieldSet(this,c,!0),_classPrivateFieldGet(this,l)[_classPrivateFieldGet(this,d)].undo(),_classPrivateFieldSet(this,c,!1),_classPrivateFieldSet(this,d,_classPrivateFieldGet(this,d)-1))}redo(){_classPrivateFieldGet(this,d)<_classPrivateFieldGet(this,l).length-1&&(_classPrivateFieldSet(this,d,_classPrivateFieldGet(this,d)+1),_classPrivateFieldSet(this,c,!0),_classPrivateFieldGet(this,l)[_classPrivateFieldGet(this,d)].cmd(),_classPrivateFieldSet(this,c,!1))}hasSomethingToUndo(){return-1!==_classPrivateFieldGet(this,d)}hasSomethingToRedo(){return _classPrivateFieldGet(this,d)<_classPrivateFieldGet(this,l).length-1}destroy(){_classPrivateFieldSet(this,l,null)}}t.CommandManager=h;var p=new WeakSet;class f{constructor(e){_classPrivateMethodInitSpec(this,p),this.buffer=[],this.callbacks=new Map,this.allKeys=new Set;const{isMac:t}=i.FeatureTest.platform;for(const[n,r]of e)for(const e of n){const n=e.startsWith("mac+");t&&n?(this.callbacks.set(e.slice(4),r),this.allKeys.add(e.split("+").at(-1))):t||n||(this.callbacks.set(e,r),this.allKeys.add(e.split("+").at(-1)))}}exec(e,t){if(!this.allKeys.has(t.key))return;const n=this.callbacks.get(_classPrivateMethodGet(this,p,g).call(this,t));n&&(n.bind(e)(),t.stopPropagation(),t.preventDefault())}}function g(e){e.altKey&&this.buffer.push("alt"),e.ctrlKey&&this.buffer.push("ctrl"),e.metaKey&&this.buffer.push("meta"),e.shiftKey&&this.buffer.push("shift"),this.buffer.push(e.key);const t=this.buffer.join("+");return this.buffer.length=0,t}t.KeyboardManager=f;class m{get _colors(){const e=new Map([["CanvasText",null],["Canvas",null]]);return(0,o.getColorValues)(e),(0,i.shadow)(this,"_colors",e)}convert(e){const t=(0,o.getRGB)(e);if(!window.matchMedia("(forced-colors: active)").matches)return t;for(const[n,r]of this._colors)if(r.every(((e,n)=>e===t[n])))return m._colorsMapping.get(n);return t}getHexCode(e){const t=this._colors.get(e);return t?i.Util.makeHexColor(...t):e}}_defineProperty(m,"_colorsMapping",new Map([["CanvasText",[0,0,0]],["Canvas",[255,255,255]]])),t.ColorManager=m;var y=new WeakMap,v=new WeakMap,_=new WeakMap,b=new WeakMap,x=new WeakMap,S=new WeakMap,w=new WeakMap,E=new WeakMap,P=new WeakMap,C=new WeakMap,A=new WeakMap,k=new WeakMap,j=new WeakMap,I=new WeakMap,G=new WeakMap,T=new WeakMap,M=new WeakMap,O=new WeakMap,R=new WeakMap,D=new WeakMap,N=new WeakMap,L=new WeakMap,V=new WeakMap,F=new WeakSet,z=new WeakSet,B=new WeakSet,U=new WeakSet,W=new WeakSet,H=new WeakSet,q=new WeakSet,X=new WeakSet,Y=new WeakSet,K=new WeakSet,Z=new WeakSet;class ${constructor(e,t,n){_classPrivateMethodInitSpec(this,Z),_classPrivateMethodInitSpec(this,K),_classPrivateMethodInitSpec(this,Y),_classPrivateMethodInitSpec(this,X),_classPrivateMethodInitSpec(this,q),_classPrivateMethodInitSpec(this,H),_classPrivateMethodInitSpec(this,W),_classPrivateMethodInitSpec(this,U),_classPrivateMethodInitSpec(this,B),_classPrivateMethodInitSpec(this,z),_classPrivateMethodInitSpec(this,F),_classPrivateFieldInitSpec(this,y,{writable:!0,value:null}),_classPrivateFieldInitSpec(this,v,{writable:!0,value:new Map}),_classPrivateFieldInitSpec(this,_,{writable:!0,value:new Map}),_classPrivateFieldInitSpec(this,b,{writable:!0,value:null}),_classPrivateFieldInitSpec(this,x,{writable:!0,value:new h}),_classPrivateFieldInitSpec(this,S,{writable:!0,value:0}),_classPrivateFieldInitSpec(this,w,{writable:!0,value:null}),_classPrivateFieldInitSpec(this,E,{writable:!0,value:new Set}),_classPrivateFieldInitSpec(this,P,{writable:!0,value:null}),_classPrivateFieldInitSpec(this,C,{writable:!0,value:new a}),_classPrivateFieldInitSpec(this,A,{writable:!0,value:!1}),_classPrivateFieldInitSpec(this,k,{writable:!0,value:i.AnnotationEditorType.NONE}),_classPrivateFieldInitSpec(this,j,{writable:!0,value:new Set}),_classPrivateFieldInitSpec(this,I,{writable:!0,value:this.copy.bind(this)}),_classPrivateFieldInitSpec(this,G,{writable:!0,value:this.cut.bind(this)}),_classPrivateFieldInitSpec(this,T,{writable:!0,value:this.paste.bind(this)}),_classPrivateFieldInitSpec(this,M,{writable:!0,value:this.keydown.bind(this)}),_classPrivateFieldInitSpec(this,O,{writable:!0,value:this.onEditingAction.bind(this)}),_classPrivateFieldInitSpec(this,R,{writable:!0,value:this.onPageChanging.bind(this)}),_classPrivateFieldInitSpec(this,D,{writable:!0,value:this.onScaleChanging.bind(this)}),_classPrivateFieldInitSpec(this,N,{writable:!0,value:this.onRotationChanging.bind(this)}),_classPrivateFieldInitSpec(this,L,{writable:!0,value:{isEditing:!1,isEmpty:!0,hasSomethingToUndo:!1,hasSomethingToRedo:!1,hasSelectedEditor:!1}}),_classPrivateFieldInitSpec(this,V,{writable:!0,value:null}),_classPrivateFieldSet(this,V,e),_classPrivateFieldSet(this,P,t),_classPrivateFieldGet(this,P)._on("editingaction",_classPrivateFieldGet(this,O)),_classPrivateFieldGet(this,P)._on("pagechanging",_classPrivateFieldGet(this,R)),_classPrivateFieldGet(this,P)._on("scalechanging",_classPrivateFieldGet(this,D)),_classPrivateFieldGet(this,P)._on("rotationchanging",_classPrivateFieldGet(this,N)),_classPrivateFieldSet(this,b,n),this.viewParameters={realScale:o.PixelsPerInch.PDF_TO_CSS_UNITS,rotation:0}}destroy(){_classPrivateMethodGet(this,z,Q).call(this),_classPrivateFieldGet(this,P)._off("editingaction",_classPrivateFieldGet(this,O)),_classPrivateFieldGet(this,P)._off("pagechanging",_classPrivateFieldGet(this,R)),_classPrivateFieldGet(this,P)._off("scalechanging",_classPrivateFieldGet(this,D)),_classPrivateFieldGet(this,P)._off("rotationchanging",_classPrivateFieldGet(this,N));for(const e of _classPrivateFieldGet(this,_).values())e.destroy();_classPrivateFieldGet(this,_).clear(),_classPrivateFieldGet(this,v).clear(),_classPrivateFieldGet(this,E).clear(),_classPrivateFieldSet(this,y,null),_classPrivateFieldGet(this,j).clear(),_classPrivateFieldGet(this,x).destroy()}onPageChanging(e){let{pageNumber:t}=e;_classPrivateFieldSet(this,S,t-1)}focusMainContainer(){_classPrivateFieldGet(this,V).focus()}addShouldRescale(e){_classPrivateFieldGet(this,E).add(e)}removeShouldRescale(e){_classPrivateFieldGet(this,E).delete(e)}onScaleChanging(e){let{scale:t}=e;this.commitOrRemove(),this.viewParameters.realScale=t*o.PixelsPerInch.PDF_TO_CSS_UNITS;for(const n of _classPrivateFieldGet(this,E))n.onScaleChanging()}onRotationChanging(e){let{pagesRotation:t}=e;this.commitOrRemove(),this.viewParameters.rotation=t}addToAnnotationStorage(e){e.isEmpty()||!_classPrivateFieldGet(this,b)||_classPrivateFieldGet(this,b).has(e.id)||_classPrivateFieldGet(this,b).setValue(e.id,e)}copy(e){if(e.preventDefault(),_classPrivateFieldGet(this,y)&&_classPrivateFieldGet(this,y).commitOrRemove(),!this.hasSelection)return;const t=[];for(const n of _classPrivateFieldGet(this,j))n.isEmpty()||t.push(n.serialize());0!==t.length&&e.clipboardData.setData("application/pdfjs",JSON.stringify(t))}cut(e){this.copy(e),this.delete()}paste(e){e.preventDefault();let t=e.clipboardData.getData("application/pdfjs");if(!t)return;try{t=JSON.parse(t)}catch(r){return void(0,i.warn)('paste: "'.concat(r.message,'".'))}if(!Array.isArray(t))return;this.unselectAll();const n=_classPrivateFieldGet(this,_).get(_classPrivateFieldGet(this,S));try{const e=[];for(const o of t){const t=n.deserialize(o);if(!t)return;e.push(t)}const r=()=>{for(const t of e)_classPrivateMethodGet(this,Y,se).call(this,t);_classPrivateMethodGet(this,Z,le).call(this,e)},i=()=>{for(const t of e)t.remove()};this.addCommands({cmd:r,undo:i,mustExec:!0})}catch(r){(0,i.warn)('paste: "'.concat(r.message,'".'))}}keydown(e){var t;null!==(t=this.getActive())&&void 0!==t&&t.shouldGetKeyboardEvents()||$._keyboardManager.exec(this,e)}onEditingAction(e){["undo","redo","delete","selectAll"].includes(e.name)&&this[e.name]()}setEditingState(e){e?(_classPrivateMethodGet(this,F,J).call(this),_classPrivateMethodGet(this,B,ee).call(this),_classPrivateMethodGet(this,W,ne).call(this,{isEditing:_classPrivateFieldGet(this,k)!==i.AnnotationEditorType.NONE,isEmpty:_classPrivateMethodGet(this,K,ae).call(this),hasSomethingToUndo:_classPrivateFieldGet(this,x).hasSomethingToUndo(),hasSomethingToRedo:_classPrivateFieldGet(this,x).hasSomethingToRedo(),hasSelectedEditor:!1})):(_classPrivateMethodGet(this,z,Q).call(this),_classPrivateMethodGet(this,U,te).call(this),_classPrivateMethodGet(this,W,ne).call(this,{isEditing:!1}))}registerEditorTypes(e){if(!_classPrivateFieldGet(this,w)){_classPrivateFieldSet(this,w,e);for(const e of _classPrivateFieldGet(this,w))_classPrivateMethodGet(this,H,re).call(this,e.defaultPropertiesToUpdate)}}getId(){return _classPrivateFieldGet(this,C).getId()}get currentLayer(){return _classPrivateFieldGet(this,_).get(_classPrivateFieldGet(this,S))}get currentPageIndex(){return _classPrivateFieldGet(this,S)}addLayer(e){_classPrivateFieldGet(this,_).set(e.pageIndex,e),_classPrivateFieldGet(this,A)?e.enable():e.disable()}removeLayer(e){_classPrivateFieldGet(this,_).delete(e.pageIndex)}updateMode(e){if(_classPrivateFieldSet(this,k,e),e===i.AnnotationEditorType.NONE)this.setEditingState(!1),_classPrivateMethodGet(this,X,oe).call(this);else{this.setEditingState(!0),_classPrivateMethodGet(this,q,ie).call(this);for(const t of _classPrivateFieldGet(this,_).values())t.updateMode(e)}}updateToolbar(e){e!==_classPrivateFieldGet(this,k)&&_classPrivateFieldGet(this,P).dispatch("switchannotationeditormode",{source:this,mode:e})}updateParams(e,t){if(_classPrivateFieldGet(this,w)){for(const n of _classPrivateFieldGet(this,j))n.updateParams(e,t);for(const n of _classPrivateFieldGet(this,w))n.updateDefaultParams(e,t)}}getEditors(e){const t=[];for(const n of _classPrivateFieldGet(this,v).values())n.pageIndex===e&&t.push(n);return t}getEditor(e){return _classPrivateFieldGet(this,v).get(e)}addEditor(e){_classPrivateFieldGet(this,v).set(e.id,e)}removeEditor(e){var t;_classPrivateFieldGet(this,v).delete(e.id),this.unselect(e),null===(t=_classPrivateFieldGet(this,b))||void 0===t||t.remove(e.id)}setActiveEditor(e){_classPrivateFieldGet(this,y)!==e&&(_classPrivateFieldSet(this,y,e),e&&_classPrivateMethodGet(this,H,re).call(this,e.propertiesToUpdate))}toggleSelected(e){if(_classPrivateFieldGet(this,j).has(e))return _classPrivateFieldGet(this,j).delete(e),e.unselect(),void _classPrivateMethodGet(this,W,ne).call(this,{hasSelectedEditor:this.hasSelection});_classPrivateFieldGet(this,j).add(e),e.select(),_classPrivateMethodGet(this,H,re).call(this,e.propertiesToUpdate),_classPrivateMethodGet(this,W,ne).call(this,{hasSelectedEditor:!0})}setSelected(e){for(const t of _classPrivateFieldGet(this,j))t!==e&&t.unselect();_classPrivateFieldGet(this,j).clear(),_classPrivateFieldGet(this,j).add(e),e.select(),_classPrivateMethodGet(this,H,re).call(this,e.propertiesToUpdate),_classPrivateMethodGet(this,W,ne).call(this,{hasSelectedEditor:!0})}isSelected(e){return _classPrivateFieldGet(this,j).has(e)}unselect(e){e.unselect(),_classPrivateFieldGet(this,j).delete(e),_classPrivateMethodGet(this,W,ne).call(this,{hasSelectedEditor:this.hasSelection})}get hasSelection(){return 0!==_classPrivateFieldGet(this,j).size}undo(){_classPrivateFieldGet(this,x).undo(),_classPrivateMethodGet(this,W,ne).call(this,{hasSomethingToUndo:_classPrivateFieldGet(this,x).hasSomethingToUndo(),hasSomethingToRedo:!0,isEmpty:_classPrivateMethodGet(this,K,ae).call(this)})}redo(){_classPrivateFieldGet(this,x).redo(),_classPrivateMethodGet(this,W,ne).call(this,{hasSomethingToUndo:!0,hasSomethingToRedo:_classPrivateFieldGet(this,x).hasSomethingToRedo(),isEmpty:_classPrivateMethodGet(this,K,ae).call(this)})}addCommands(e){_classPrivateFieldGet(this,x).add(e),_classPrivateMethodGet(this,W,ne).call(this,{hasSomethingToUndo:!0,hasSomethingToRedo:!1,isEmpty:_classPrivateMethodGet(this,K,ae).call(this)})}delete(){if(this.commitOrRemove(),!this.hasSelection)return;const e=[..._classPrivateFieldGet(this,j)];this.addCommands({cmd:()=>{for(const t of e)t.remove()},undo:()=>{for(const t of e)_classPrivateMethodGet(this,Y,se).call(this,t)},mustExec:!0})}commitOrRemove(){var e;null===(e=_classPrivateFieldGet(this,y))||void 0===e||e.commitOrRemove()}selectAll(){for(const e of _classPrivateFieldGet(this,j))e.commit();_classPrivateMethodGet(this,Z,le).call(this,_classPrivateFieldGet(this,v).values())}unselectAll(){if(_classPrivateFieldGet(this,y))_classPrivateFieldGet(this,y).commitOrRemove();else if(0!==_classPrivateFieldGet(this,j).size){for(const e of _classPrivateFieldGet(this,j))e.unselect();_classPrivateFieldGet(this,j).clear(),_classPrivateMethodGet(this,W,ne).call(this,{hasSelectedEditor:!1})}}isActive(e){return _classPrivateFieldGet(this,y)===e}getActive(){return _classPrivateFieldGet(this,y)}getMode(){return _classPrivateFieldGet(this,k)}}function J(){_classPrivateFieldGet(this,V).addEventListener("keydown",_classPrivateFieldGet(this,M))}function Q(){_classPrivateFieldGet(this,V).removeEventListener("keydown",_classPrivateFieldGet(this,M))}function ee(){document.addEventListener("copy",_classPrivateFieldGet(this,I)),document.addEventListener("cut",_classPrivateFieldGet(this,G)),document.addEventListener("paste",_classPrivateFieldGet(this,T))}function te(){document.removeEventListener("copy",_classPrivateFieldGet(this,I)),document.removeEventListener("cut",_classPrivateFieldGet(this,G)),document.removeEventListener("paste",_classPrivateFieldGet(this,T))}function ne(e){Object.entries(e).some((e=>{let[t,n]=e;return _classPrivateFieldGet(this,L)[t]!==n}))&&_classPrivateFieldGet(this,P).dispatch("annotationeditorstateschanged",{source:this,details:Object.assign(_classPrivateFieldGet(this,L),e)})}function re(e){_classPrivateFieldGet(this,P).dispatch("annotationeditorparamschanged",{source:this,details:e})}function ie(){if(!_classPrivateFieldGet(this,A)){_classPrivateFieldSet(this,A,!0);for(const e of _classPrivateFieldGet(this,_).values())e.enable()}}function oe(){if(this.unselectAll(),_classPrivateFieldGet(this,A)){_classPrivateFieldSet(this,A,!1);for(const e of _classPrivateFieldGet(this,_).values())e.disable()}}function se(e){const t=_classPrivateFieldGet(this,_).get(e.pageIndex);t?t.addOrRebuild(e):this.addEditor(e)}function ae(){if(0===_classPrivateFieldGet(this,v).size)return!0;if(1===_classPrivateFieldGet(this,v).size)for(const e of _classPrivateFieldGet(this,v).values())return e.isEmpty();return!1}function le(e){_classPrivateFieldGet(this,j).clear();for(const t of e)t.isEmpty()||(_classPrivateFieldGet(this,j).add(t),t.select());_classPrivateMethodGet(this,W,ne).call(this,{hasSelectedEditor:!0})}_defineProperty($,"_keyboardManager",new f([[["ctrl+a","mac+meta+a"],(r=$).prototype.selectAll],[["ctrl+z","mac+meta+z"],r.prototype.undo],[["ctrl+y","ctrl+shift+Z","mac+meta+shift+Z"],r.prototype.redo],[["Backspace","alt+Backspace","ctrl+Backspace","shift+Backspace","mac+Backspace","mac+alt+Backspace","mac+ctrl+Backspace","Delete","ctrl+Delete","shift+Delete"],r.prototype.delete],[["Escape","mac+Escape"],r.prototype.unselectAll]])),t.AnnotationEditorUIManager=$},(e,t,n)=>{var r;Object.defineProperty(t,"__esModule",{value:!0}),t.StatTimer=t.RenderingCancelledException=t.PixelsPerInch=t.PageViewport=t.PDFDateString=t.DOMStandardFontDataFactory=t.DOMSVGFactory=t.DOMCanvasFactory=t.DOMCMapReaderFactory=t.AnnotationPrefix=void 0,t.deprecated=function(e){console.log("Deprecated API usage: "+e)},t.getColorValues=function(e){const t=document.createElement("span");t.style.visibility="hidden",document.body.append(t);for(const n of e.keys()){t.style.color=n;const r=window.getComputedStyle(t).color;e.set(n,y(r))}t.remove()},t.getCurrentTransform=function(e){const{a:t,b:n,c:r,d:i,e:o,f:s}=e.getTransform();return[t,n,r,i,o,s]},t.getCurrentTransformInverse=function(e){const{a:t,b:n,c:r,d:i,e:o,f:s}=e.getTransform().invertSelf();return[t,n,r,i,o,s]},t.getFilenameFromUrl=function(e){return arguments.length>1&&void 0!==arguments[1]&&arguments[1]||([e]=e.split(/[#?]/,1)),e.substring(e.lastIndexOf("/")+1)},t.getPdfFilenameFromUrl=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"document.pdf";if("string"!==typeof e)return t;if(f(e))return(0,o.warn)('getPdfFilenameFromUrl: ignore "data:"-URL for performance reasons.'),t;const n=/[^/?#=]+\.pdf\b(?!.*\.pdf\b)/i,r=/^(?:(?:[^:]+:)?\/\/[^/]+)?([^?#]*)(\?[^#]*)?(#.*)?$/.exec(e);let i=n.exec(r[1])||n.exec(r[2])||n.exec(r[3]);if(i&&(i=i[0],i.includes("%")))try{i=n.exec(decodeURIComponent(i))[0]}catch(s){}return i||t},t.getRGB=y,t.getXfaPageViewport=function(e,t){let{scale:n=1,rotation:r=0}=t;const{width:i,height:o}=e.attributes.style,s=[0,0,parseInt(i),parseInt(o)];return new h({viewBox:s,scale:n,rotation:r})},t.isDataScheme=f,t.isPdfFile=function(e){return"string"===typeof e&&/\.pdf$/i.test(e)},t.isValidFetchUrl=g,t.loadScript=function(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return new Promise(((n,r)=>{const i=document.createElement("script");i.src=e,i.onload=function(e){t&&i.remove(),n(e)},i.onerror=function(){r(new Error("Cannot load script at: ".concat(i.src)))},(document.head||document.documentElement).append(i)}))},t.setLayerDimensions=function(e,t){let n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=!(arguments.length>3&&void 0!==arguments[3])||arguments[3];if(t instanceof h){const{pageWidth:r,pageHeight:i}=t.rawDims,{style:o}=e,s="calc(var(--scale-factor) * ".concat(r,"px)"),a="calc(var(--scale-factor) * ".concat(i,"px)");n&&t.rotation%180!==0?(o.width=a,o.height=s):(o.width=s,o.height=a)}r&&e.setAttribute("data-main-rotation",t.rotation)};var i=n(7),o=n(1);t.AnnotationPrefix="pdfjs_internal_id_";class s{}r=s,_defineProperty(s,"CSS",96),_defineProperty(s,"PDF",72),_defineProperty(s,"PDF_TO_CSS_UNITS",r.CSS/r.PDF),t.PixelsPerInch=s;class a extends i.BaseCanvasFactory{constructor(){let{ownerDocument:e=globalThis.document}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};super(),this._document=e}_createCanvas(e,t){const n=this._document.createElement("canvas");return n.width=e,n.height=t,n}}async function l(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(g(e,document.baseURI)){const n=await fetch(e);if(!n.ok)throw new Error(n.statusText);return t?new Uint8Array(await n.arrayBuffer()):(0,o.stringToBytes)(await n.text())}return new Promise(((n,r)=>{const i=new XMLHttpRequest;i.open("GET",e,!0),t&&(i.responseType="arraybuffer"),i.onreadystatechange=()=>{if(i.readyState===XMLHttpRequest.DONE){if(200===i.status||0===i.status){let e;if(t&&i.response?e=new Uint8Array(i.response):!t&&i.responseText&&(e=(0,o.stringToBytes)(i.responseText)),e)return void n(e)}r(new Error(i.statusText))}},i.send(null)}))}t.DOMCanvasFactory=a;class c extends i.BaseCMapReaderFactory{_fetchData(e,t){return l(e,this.isCompressed).then((e=>({cMapData:e,compressionType:t})))}}t.DOMCMapReaderFactory=c;class u extends i.BaseStandardFontDataFactory{_fetchData(e){return l(e,!0)}}t.DOMStandardFontDataFactory=u;class d extends i.BaseSVGFactory{_createSVG(e){return document.createElementNS("http://www.w3.org/2000/svg",e)}}t.DOMSVGFactory=d;class h{constructor(e){let{viewBox:t,scale:n,rotation:r,offsetX:i=0,offsetY:o=0,dontFlip:s=!1}=e;this.viewBox=t,this.scale=n,this.rotation=r,this.offsetX=i,this.offsetY=o;const a=(t[2]+t[0])/2,l=(t[3]+t[1])/2;let c,u,d,h,p,f,g,m;switch(r%=360,r<0&&(r+=360),r){case 180:c=-1,u=0,d=0,h=1;break;case 90:c=0,u=1,d=1,h=0;break;case 270:c=0,u=-1,d=-1,h=0;break;case 0:c=1,u=0,d=0,h=-1;break;default:throw new Error("PageViewport: Invalid rotation, must be a multiple of 90 degrees.")}s&&(d=-d,h=-h),0===c?(p=Math.abs(l-t[1])*n+i,f=Math.abs(a-t[0])*n+o,g=(t[3]-t[1])*n,m=(t[2]-t[0])*n):(p=Math.abs(a-t[0])*n+i,f=Math.abs(l-t[1])*n+o,g=(t[2]-t[0])*n,m=(t[3]-t[1])*n),this.transform=[c*n,u*n,d*n,h*n,p-c*n*a-d*n*l,f-u*n*a-h*n*l],this.width=g,this.height=m}get rawDims(){const{viewBox:e}=this;return(0,o.shadow)(this,"rawDims",{pageWidth:e[2]-e[0],pageHeight:e[3]-e[1],pageX:e[0],pageY:e[1]})}clone(){let{scale:e=this.scale,rotation:t=this.rotation,offsetX:n=this.offsetX,offsetY:r=this.offsetY,dontFlip:i=!1}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return new h({viewBox:this.viewBox.slice(),scale:e,rotation:t,offsetX:n,offsetY:r,dontFlip:i})}convertToViewportPoint(e,t){return o.Util.applyTransform([e,t],this.transform)}convertToViewportRectangle(e){const t=o.Util.applyTransform([e[0],e[1]],this.transform),n=o.Util.applyTransform([e[2],e[3]],this.transform);return[t[0],t[1],n[0],n[1]]}convertToPdfPoint(e,t){return o.Util.applyInverseTransform([e,t],this.transform)}}t.PageViewport=h;class p extends o.BaseException{constructor(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;super(e,"RenderingCancelledException"),this.type=t,this.extraDelay=n}}function f(e){const t=e.length;let n=0;for(;n<t&&""===e[n].trim();)n++;return"data:"===e.substring(n,n+5).toLowerCase()}function g(e,t){try{const{protocol:n}=t?new URL(e,t):new URL(e);return"http:"===n||"https:"===n}catch(n){return!1}}let m;function y(e){if(e.startsWith("#")){const t=parseInt(e.slice(1),16);return[(16711680&t)>>16,(65280&t)>>8,255&t]}return e.startsWith("rgb(")?e.slice(4,-1).split(",").map((e=>parseInt(e))):e.startsWith("rgba(")?e.slice(5,-1).split(",").map((e=>parseInt(e))).slice(0,3):((0,o.warn)('Not a valid color format: "'.concat(e,'"')),[0,0,0])}t.RenderingCancelledException=p,t.StatTimer=class{constructor(){_defineProperty(this,"started",Object.create(null)),_defineProperty(this,"times",[])}time(e){e in this.started&&(0,o.warn)("Timer is already running for ".concat(e)),this.started[e]=Date.now()}timeEnd(e){e in this.started||(0,o.warn)("Timer has not been started for ".concat(e)),this.times.push({name:e,start:this.started[e],end:Date.now()}),delete this.started[e]}toString(){const e=[];let t=0;for(const{name:n}of this.times)t=Math.max(n.length,t);for(const{name:n,start:r,end:i}of this.times)e.push("".concat(n.padEnd(t)," ").concat(i-r,"ms\n"));return e.join("")}},t.PDFDateString=class{static toDateObject(e){if(!e||"string"!==typeof e)return null;m||(m=new RegExp("^D:(\\d{4})(\\d{2})?(\\d{2})?(\\d{2})?(\\d{2})?(\\d{2})?([Z|+|-])?(\\d{2})?'?(\\d{2})?'?"));const t=m.exec(e);if(!t)return null;const n=parseInt(t[1],10);let r=parseInt(t[2],10);r=r>=1&&r<=12?r-1:0;let i=parseInt(t[3],10);i=i>=1&&i<=31?i:1;let o=parseInt(t[4],10);o=o>=0&&o<=23?o:0;let s=parseInt(t[5],10);s=s>=0&&s<=59?s:0;let a=parseInt(t[6],10);a=a>=0&&a<=59?a:0;const l=t[7]||"Z";let c=parseInt(t[8],10);c=c>=0&&c<=23?c:0;let u=parseInt(t[9],10)||0;return u=u>=0&&u<=59?u:0,"-"===l?(o+=c,s+=u):"+"===l&&(o-=c,s-=u),new Date(Date.UTC(n,r,i,o,s,a))}}},(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.BaseStandardFontDataFactory=t.BaseSVGFactory=t.BaseCanvasFactory=t.BaseCMapReaderFactory=void 0;var r=n(1);class i{constructor(){this.constructor===i&&(0,r.unreachable)("Cannot initialize BaseCanvasFactory.")}create(e,t){if(e<=0||t<=0)throw new Error("Invalid canvas size");const n=this._createCanvas(e,t);return{canvas:n,context:n.getContext("2d")}}reset(e,t,n){if(!e.canvas)throw new Error("Canvas is not specified");if(t<=0||n<=0)throw new Error("Invalid canvas size");e.canvas.width=t,e.canvas.height=n}destroy(e){if(!e.canvas)throw new Error("Canvas is not specified");e.canvas.width=0,e.canvas.height=0,e.canvas=null,e.context=null}_createCanvas(e,t){(0,r.unreachable)("Abstract method `_createCanvas` called.")}}t.BaseCanvasFactory=i;class o{constructor(e){let{baseUrl:t=null,isCompressed:n=!1}=e;this.constructor===o&&(0,r.unreachable)("Cannot initialize BaseCMapReaderFactory."),this.baseUrl=t,this.isCompressed=n}async fetch(e){let{name:t}=e;if(!this.baseUrl)throw new Error('The CMap "baseUrl" parameter must be specified, ensure that the "cMapUrl" and "cMapPacked" API parameters are provided.');if(!t)throw new Error("CMap name must be specified.");const n=this.baseUrl+t+(this.isCompressed?".bcmap":""),i=this.isCompressed?r.CMapCompressionType.BINARY:r.CMapCompressionType.NONE;return this._fetchData(n,i).catch((e=>{throw new Error("Unable to load ".concat(this.isCompressed?"binary ":"","CMap at: ").concat(n))}))}_fetchData(e,t){(0,r.unreachable)("Abstract method `_fetchData` called.")}}t.BaseCMapReaderFactory=o;class s{constructor(e){let{baseUrl:t=null}=e;this.constructor===s&&(0,r.unreachable)("Cannot initialize BaseStandardFontDataFactory."),this.baseUrl=t}async fetch(e){let{filename:t}=e;if(!this.baseUrl)throw new Error('The standard font "baseUrl" parameter must be specified, ensure that the "standardFontDataUrl" API parameter is provided.');if(!t)throw new Error("Font filename must be specified.");const n="".concat(this.baseUrl).concat(t);return this._fetchData(n).catch((e=>{throw new Error("Unable to load font data at: ".concat(n))}))}_fetchData(e){(0,r.unreachable)("Abstract method `_fetchData` called.")}}t.BaseStandardFontDataFactory=s;class a{constructor(){this.constructor===a&&(0,r.unreachable)("Cannot initialize BaseSVGFactory.")}create(e,t){let n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(e<=0||t<=0)throw new Error("Invalid SVG dimensions");const r=this._createSVG("svg:svg");return r.setAttribute("version","1.1"),n||(r.setAttribute("width","".concat(e,"px")),r.setAttribute("height","".concat(t,"px"))),r.setAttribute("preserveAspectRatio","none"),r.setAttribute("viewBox","0 0 ".concat(e," ").concat(t)),r}createElement(e){if("string"!==typeof e)throw new Error("Invalid SVG element type");return this._createSVG(e)}_createSVG(e){(0,r.unreachable)("Abstract method `_createSVG` called.")}}t.BaseSVGFactory=a},(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.MurmurHash3_64=void 0;var r=n(1);const i=3285377520,o=4294901760,s=65535;t.MurmurHash3_64=class{constructor(e){this.h1=e?4294967295&e:i,this.h2=e?4294967295&e:i}update(e){let t,n;if("string"===typeof e){t=new Uint8Array(2*e.length),n=0;for(let r=0,i=e.length;r<i;r++){const i=e.charCodeAt(r);i<=255?t[n++]=i:(t[n++]=i>>>8,t[n++]=255&i)}}else{if(!(0,r.isArrayBuffer)(e))throw new Error("Wrong data format in MurmurHash3_64_update. Input must be a string or array.");t=e.slice(),n=t.byteLength}const i=n>>2,a=n-4*i,l=new Uint32Array(t.buffer,0,i);let c=0,u=0,d=this.h1,h=this.h2;const p=3432918353,f=461845907,g=11601,m=13715;for(let r=0;r<i;r++)1&r?(c=l[r],c=c*p&o|c*g&s,c=c<<15|c>>>17,c=c*f&o|c*m&s,d^=c,d=d<<13|d>>>19,d=5*d+3864292196):(u=l[r],u=u*p&o|u*g&s,u=u<<15|u>>>17,u=u*f&o|u*m&s,h^=u,h=h<<13|h>>>19,h=5*h+3864292196);switch(c=0,a){case 3:c^=t[4*i+2]<<16;case 2:c^=t[4*i+1]<<8;case 1:c^=t[4*i],c=c*p&o|c*g&s,c=c<<15|c>>>17,c=c*f&o|c*m&s,1&i?d^=c:h^=c}this.h1=d,this.h2=h}hexdigest(){let e=this.h1,t=this.h2;return e^=t>>>1,e=3981806797*e&o|36045*e&s,t=4283543511*t&o|(2950163797*(t<<16|e>>>16)&o)>>>16,e^=t>>>1,e=444984403*e&o|60499*e&s,t=3301882366*t&o|(3120437893*(t<<16|e>>>16)&o)>>>16,e^=t>>>1,(e>>>0).toString(16).padStart(8,"0")+(t>>>0).toString(16).padStart(8,"0")}}},(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.FontLoader=t.FontFaceObject=void 0;var r=n(1),i=n(10);t.FontLoader=class{constructor(e){let{onUnsupportedFeature:t,ownerDocument:n=globalThis.document,styleElement:r=null}=e;this._onUnsupportedFeature=t,this._document=n,this.nativeFontFaces=[],this.styleElement=null,this.loadingRequests=[],this.loadTestFontId=0}addNativeFontFace(e){this.nativeFontFaces.push(e),this._document.fonts.add(e)}insertRule(e){this.styleElement||(this.styleElement=this._document.createElement("style"),this._document.documentElement.getElementsByTagName("head")[0].append(this.styleElement));const t=this.styleElement.sheet;t.insertRule(e,t.cssRules.length)}clear(){for(const e of this.nativeFontFaces)this._document.fonts.delete(e);this.nativeFontFaces.length=0,this.styleElement&&(this.styleElement.remove(),this.styleElement=null)}async bind(e){if(e.attached||e.missingFile)return;if(e.attached=!0,this.isFontLoadingAPISupported){const t=e.createNativeFontFace();if(t){this.addNativeFontFace(t);try{await t.loaded}catch(n){throw this._onUnsupportedFeature({featureId:r.UNSUPPORTED_FEATURES.errorFontLoadNative}),(0,r.warn)("Failed to load font '".concat(t.family,"': '").concat(n,"'.")),e.disableFontFace=!0,n}}return}const t=e.createFontFaceRule();if(t){if(this.insertRule(t),this.isSyncFontLoadingSupported)return;await new Promise((t=>{const n=this._queueLoadingCallback(t);this._prepareFontLoadEvent(e,n)}))}}get isFontLoadingAPISupported(){var e;const t=!(null===(e=this._document)||void 0===e||!e.fonts);return(0,r.shadow)(this,"isFontLoadingAPISupported",t)}get isSyncFontLoadingSupported(){let e=!1;return(i.isNodeJS||"undefined"!==typeof navigator&&/Mozilla\/5.0.*?rv:\d+.*? Gecko/.test(navigator.userAgent))&&(e=!0),(0,r.shadow)(this,"isSyncFontLoadingSupported",e)}_queueLoadingCallback(e){const{loadingRequests:t}=this,n={done:!1,complete:function(){for((0,r.assert)(!n.done,"completeRequest() cannot be called twice."),n.done=!0;t.length>0&&t[0].done;){const e=t.shift();setTimeout(e.callback,0)}},callback:e};return t.push(n),n}get _loadTestFont(){const e=atob("T1RUTwALAIAAAwAwQ0ZGIDHtZg4AAAOYAAAAgUZGVE1lkzZwAAAEHAAAABxHREVGABQAFQAABDgAAAAeT1MvMlYNYwkAAAEgAAAAYGNtYXABDQLUAAACNAAAAUJoZWFk/xVFDQAAALwAAAA2aGhlYQdkA+oAAAD0AAAAJGhtdHgD6AAAAAAEWAAAAAZtYXhwAAJQAAAAARgAAAAGbmFtZVjmdH4AAAGAAAAAsXBvc3T/hgAzAAADeAAAACAAAQAAAAEAALZRFsRfDzz1AAsD6AAAAADOBOTLAAAAAM4KHDwAAAAAA+gDIQAAAAgAAgAAAAAAAAABAAADIQAAAFoD6AAAAAAD6AABAAAAAAAAAAAAAAAAAAAAAQAAUAAAAgAAAAQD6AH0AAUAAAKKArwAAACMAooCvAAAAeAAMQECAAACAAYJAAAAAAAAAAAAAQAAAAAAAAAAAAAAAFBmRWQAwAAuAC4DIP84AFoDIQAAAAAAAQAAAAAAAAAAACAAIAABAAAADgCuAAEAAAAAAAAAAQAAAAEAAAAAAAEAAQAAAAEAAAAAAAIAAQAAAAEAAAAAAAMAAQAAAAEAAAAAAAQAAQAAAAEAAAAAAAUAAQAAAAEAAAAAAAYAAQAAAAMAAQQJAAAAAgABAAMAAQQJAAEAAgABAAMAAQQJAAIAAgABAAMAAQQJAAMAAgABAAMAAQQJAAQAAgABAAMAAQQJAAUAAgABAAMAAQQJAAYAAgABWABYAAAAAAAAAwAAAAMAAAAcAAEAAAAAADwAAwABAAAAHAAEACAAAAAEAAQAAQAAAC7//wAAAC7////TAAEAAAAAAAABBgAAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAMAAAAAAAD/gwAyAAAAAQAAAAAAAAAAAAAAAAAAAAABAAQEAAEBAQJYAAEBASH4DwD4GwHEAvgcA/gXBIwMAYuL+nz5tQXkD5j3CBLnEQACAQEBIVhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYAAABAQAADwACAQEEE/t3Dov6fAH6fAT+fPp8+nwHDosMCvm1Cvm1DAz6fBQAAAAAAAABAAAAAMmJbzEAAAAAzgTjFQAAAADOBOQpAAEAAAAAAAAADAAUAAQAAAABAAAAAgABAAAAAAAAAAAD6AAAAAAAAA==");return(0,r.shadow)(this,"_loadTestFont",e)}_prepareFontLoadEvent(e,t){function n(e,t){return e.charCodeAt(t)<<24|e.charCodeAt(t+1)<<16|e.charCodeAt(t+2)<<8|255&e.charCodeAt(t+3)}function i(e,t,n,r){return e.substring(0,t)+r+e.substring(t+n)}let o,s;const a=this._document.createElement("canvas");a.width=1,a.height=1;const l=a.getContext("2d");let c=0;const u="lt".concat(Date.now()).concat(this.loadTestFontId++);let d=this._loadTestFont;d=i(d,976,u.length,u);const h=1482184792;let p=n(d,16);for(o=0,s=u.length-3;o<s;o+=4)p=p-h+n(u,o)|0;o<u.length&&(p=p-h+n(u+"XXX",o)|0),d=i(d,16,4,(0,r.string32)(p));const f="url(data:font/opentype;base64,".concat(btoa(d),");"),g='@font-face {font-family:"'.concat(u,'";src:').concat(f,"}");this.insertRule(g);const m=this._document.createElement("div");m.style.visibility="hidden",m.style.width=m.style.height="10px",m.style.position="absolute",m.style.top=m.style.left="0px";for(const r of[e.loadedName,u]){const e=this._document.createElement("span");e.textContent="Hi",e.style.fontFamily=r,m.append(e)}this._document.body.append(m),function e(t,n){if(++c>30)return(0,r.warn)("Load test font never loaded."),void n();l.font="30px "+t,l.fillText(".",0,20),l.getImageData(0,0,1,1).data[3]>0?n():setTimeout(e.bind(null,t,n))}(u,(()=>{m.remove(),t.complete()}))}},t.FontFaceObject=class{constructor(e,t){let{isEvalSupported:n=!0,disableFontFace:r=!1,ignoreErrors:i=!1,onUnsupportedFeature:o,fontRegistry:s=null}=t;this.compiledGlyphs=Object.create(null);for(const a in e)this[a]=e[a];this.isEvalSupported=!1!==n,this.disableFontFace=!0===r,this.ignoreErrors=!0===i,this._onUnsupportedFeature=o,this.fontRegistry=s}createNativeFontFace(){var e;if(!this.data||this.disableFontFace)return null;let t;if(this.cssFontInfo){const e={weight:this.cssFontInfo.fontWeight};this.cssFontInfo.italicAngle&&(e.style="oblique ".concat(this.cssFontInfo.italicAngle,"deg")),t=new FontFace(this.cssFontInfo.fontFamily,this.data,e)}else t=new FontFace(this.loadedName,this.data,{});return null===(e=this.fontRegistry)||void 0===e||e.registerFont(this),t}createFontFaceRule(){var e;if(!this.data||this.disableFontFace)return null;const t=(0,r.bytesToString)(this.data),n="url(data:".concat(this.mimetype,";base64,").concat(btoa(t),");");let i;if(this.cssFontInfo){let e="font-weight: ".concat(this.cssFontInfo.fontWeight,";");this.cssFontInfo.italicAngle&&(e+="font-style: oblique ".concat(this.cssFontInfo.italicAngle,"deg;")),i='@font-face {font-family:"'.concat(this.cssFontInfo.fontFamily,'";').concat(e,"src:").concat(n,"}")}else i='@font-face {font-family:"'.concat(this.loadedName,'";src:').concat(n,"}");return null===(e=this.fontRegistry)||void 0===e||e.registerFont(this,n),i}getPathGenerator(e,t){if(void 0!==this.compiledGlyphs[t])return this.compiledGlyphs[t];let n;try{n=e.get(this.loadedName+"_path_"+t)}catch(i){if(!this.ignoreErrors)throw i;return this._onUnsupportedFeature({featureId:r.UNSUPPORTED_FEATURES.errorFontGetPath}),(0,r.warn)('getPathGenerator - ignoring character: "'.concat(i,'".')),this.compiledGlyphs[t]=function(e,t){}}if(this.isEvalSupported&&r.FeatureTest.isEvalSupported){const e=[];for(const t of n){const n=void 0!==t.args?t.args.join(","):"";e.push("c.",t.cmd,"(",n,");\n")}return this.compiledGlyphs[t]=new Function("c","size",e.join(""))}return this.compiledGlyphs[t]=function(e,t){for(const r of n)"scale"===r.cmd&&(r.args=[t,-t]),e[r.cmd].apply(e,r.args)}}}},(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.isNodeJS=void 0;const n="object"===typeof process&&process+""==="[object process]"&&!process.versions.nw&&!(process.versions.electron&&process.type&&"browser"!==process.type);t.isNodeJS=n},(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.CanvasGraphics=void 0;var r=n(1),i=n(6),o=n(12),s=n(13);const a=4096,l=16;class c{constructor(e){this.canvasFactory=e,this.cache=Object.create(null)}getCanvas(e,t,n){let r;return void 0!==this.cache[e]?(r=this.cache[e],this.canvasFactory.reset(r,t,n)):(r=this.canvasFactory.create(t,n),this.cache[e]=r),r}delete(e){delete this.cache[e]}clear(){for(const e in this.cache){const t=this.cache[e];this.canvasFactory.destroy(t),delete this.cache[e]}}}function u(e,t,n,r,o,s,a,l,c,u){const[d,h,p,f,g,m]=(0,i.getCurrentTransform)(e);if(0===h&&0===p){const i=a*d+g,y=Math.round(i),v=l*f+m,_=Math.round(v),b=(a+c)*d+g,x=Math.abs(Math.round(b)-y)||1,S=(l+u)*f+m,w=Math.abs(Math.round(S)-_)||1;return e.setTransform(Math.sign(d),0,0,Math.sign(f),y,_),e.drawImage(t,n,r,o,s,0,0,x,w),e.setTransform(d,h,p,f,g,m),[x,w]}if(0===d&&0===f){const i=l*p+g,y=Math.round(i),v=a*h+m,_=Math.round(v),b=(l+u)*p+g,x=Math.abs(Math.round(b)-y)||1,S=(a+c)*h+m,w=Math.abs(Math.round(S)-_)||1;return e.setTransform(0,Math.sign(h),Math.sign(p),0,y,_),e.drawImage(t,n,r,o,s,0,0,w,x),e.setTransform(d,h,p,f,g,m),[w,x]}return e.drawImage(t,n,r,o,s,a,l,c,u),[Math.hypot(d,h)*c,Math.hypot(p,f)*u]}class d{constructor(e,t){this.alphaIsShape=!1,this.fontSize=0,this.fontSizeScale=1,this.textMatrix=r.IDENTITY_MATRIX,this.textMatrixScale=1,this.fontMatrix=r.FONT_IDENTITY_MATRIX,this.leading=0,this.x=0,this.y=0,this.lineX=0,this.lineY=0,this.charSpacing=0,this.wordSpacing=0,this.textHScale=1,this.textRenderingMode=r.TextRenderingMode.FILL,this.textRise=0,this.fillColor="#000000",this.strokeColor="#000000",this.patternFill=!1,this.fillAlpha=1,this.strokeAlpha=1,this.lineWidth=1,this.activeSMask=null,this.transferMaps=null,this.startNewPathAndClipBox([0,0,e,t])}clone(){const e=Object.create(this);return e.clipBox=this.clipBox.slice(),e}setCurrentPoint(e,t){this.x=e,this.y=t}updatePathMinMax(e,t,n){[t,n]=r.Util.applyTransform([t,n],e),this.minX=Math.min(this.minX,t),this.minY=Math.min(this.minY,n),this.maxX=Math.max(this.maxX,t),this.maxY=Math.max(this.maxY,n)}updateRectMinMax(e,t){const n=r.Util.applyTransform(t,e),i=r.Util.applyTransform(t.slice(2),e);this.minX=Math.min(this.minX,n[0],i[0]),this.minY=Math.min(this.minY,n[1],i[1]),this.maxX=Math.max(this.maxX,n[0],i[0]),this.maxY=Math.max(this.maxY,n[1],i[1])}updateScalingPathMinMax(e,t){r.Util.scaleMinMax(e,t),this.minX=Math.min(this.minX,t[0]),this.maxX=Math.max(this.maxX,t[1]),this.minY=Math.min(this.minY,t[2]),this.maxY=Math.max(this.maxY,t[3])}updateCurvePathMinMax(e,t,n,i,o,s,a,l,c,u){const d=r.Util.bezierBoundingBox(t,n,i,o,s,a,l,c);if(u)return u[0]=Math.min(u[0],d[0],d[2]),u[1]=Math.max(u[1],d[0],d[2]),u[2]=Math.min(u[2],d[1],d[3]),void(u[3]=Math.max(u[3],d[1],d[3]));this.updateRectMinMax(e,d)}getPathBoundingBox(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:o.PathType.FILL,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;const n=[this.minX,this.minY,this.maxX,this.maxY];if(e===o.PathType.STROKE){t||(0,r.unreachable)("Stroke bounding box must include transform.");const e=r.Util.singularValueDecompose2dScale(t),i=e[0]*this.lineWidth/2,o=e[1]*this.lineWidth/2;n[0]-=i,n[1]-=o,n[2]+=i,n[3]+=o}return n}updateClipFromPath(){const e=r.Util.intersect(this.clipBox,this.getPathBoundingBox());this.startNewPathAndClipBox(e||[0,0,0,0])}isEmptyClip(){return this.minX===1/0}startNewPathAndClipBox(e){this.clipBox=e,this.minX=1/0,this.minY=1/0,this.maxX=0,this.maxY=0}getClippedPathBoundingBox(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:o.PathType.FILL,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return r.Util.intersect(this.clipBox,this.getPathBoundingBox(e,t))}}function h(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;if("undefined"!==typeof ImageData&&t instanceof ImageData)return void e.putImageData(t,0,0);const i=t.height,o=t.width,s=i%l,a=(i-s)/l,c=0===s?a:a+1,u=e.createImageData(o,l);let d,h=0;const p=t.data,f=u.data;let g,m,y,v,_,b,x,S;if(n)switch(n.length){case 1:_=n[0],b=n[0],x=n[0],S=n[0];break;case 4:_=n[0],b=n[1],x=n[2],S=n[3]}if(t.kind===r.ImageKind.GRAYSCALE_1BPP){const t=p.byteLength,n=new Uint32Array(f.buffer,0,f.byteLength>>2),i=n.length,v=o+7>>3;let _=4294967295,b=r.FeatureTest.isLittleEndian?4278190080:255;for(S&&255===S[0]&&0===S[255]&&([_,b]=[b,_]),g=0;g<c;g++){for(y=g<a?l:s,d=0,m=0;m<y;m++){const e=t-h;let r=0;const i=e>v?o:8*e-7,s=-8&i;let a=0,l=0;for(;r<s;r+=8)l=p[h++],n[d++]=128&l?_:b,n[d++]=64&l?_:b,n[d++]=32&l?_:b,n[d++]=16&l?_:b,n[d++]=8&l?_:b,n[d++]=4&l?_:b,n[d++]=2&l?_:b,n[d++]=1&l?_:b;for(;r<i;r++)0===a&&(l=p[h++],a=128),n[d++]=l&a?_:b,a>>=1}for(;d<i;)n[d++]=0;e.putImageData(u,0,g*l)}}else if(t.kind===r.ImageKind.RGBA_32BPP){const t=!!(_||b||x);for(m=0,v=o*l*4,g=0;g<a;g++){if(f.set(p.subarray(h,h+v)),h+=v,t)for(let e=0;e<v;e+=4)_&&(f[e+0]=_[f[e+0]]),b&&(f[e+1]=b[f[e+1]]),x&&(f[e+2]=x[f[e+2]]);e.putImageData(u,0,m),m+=l}if(g<c){if(v=o*s*4,f.set(p.subarray(h,h+v)),t)for(let e=0;e<v;e+=4)_&&(f[e+0]=_[f[e+0]]),b&&(f[e+1]=b[f[e+1]]),x&&(f[e+2]=x[f[e+2]]);e.putImageData(u,0,m)}}else{if(t.kind!==r.ImageKind.RGB_24BPP)throw new Error("bad image kind: ".concat(t.kind));{const t=!!(_||b||x);for(y=l,v=o*y,g=0;g<c;g++){for(g>=a&&(y=s,v=o*y),d=0,m=v;m--;)f[d++]=p[h++],f[d++]=p[h++],f[d++]=p[h++],f[d++]=255;if(t)for(let e=0;e<d;e+=4)_&&(f[e+0]=_[f[e+0]]),b&&(f[e+1]=b[f[e+1]]),x&&(f[e+2]=x[f[e+2]]);e.putImageData(u,0,g*l)}}}}function p(e,t){if(t.bitmap)return void e.drawImage(t.bitmap,0,0);const n=t.height,r=t.width,i=n%l,o=(n-i)/l,a=0===i?o:o+1,c=e.createImageData(r,l);let u=0;const d=t.data,h=c.data;for(let p=0;p<a;p++){const t=p<o?l:i;({srcPos:u}=(0,s.applyMaskImageData)({src:d,srcPos:u,dest:h,width:r,height:t})),e.putImageData(c,0,p*l)}}function f(e,t){const n=["strokeStyle","fillStyle","fillRule","globalAlpha","lineWidth","lineCap","lineJoin","miterLimit","globalCompositeOperation","font"];for(const r of n)void 0!==e[r]&&(t[r]=e[r]);void 0!==e.setLineDash&&(t.setLineDash(e.getLineDash()),t.lineDashOffset=e.lineDashOffset)}function g(e,t){e.strokeStyle=e.fillStyle=t||"#000000",e.fillRule="nonzero",e.globalAlpha=1,e.lineWidth=1,e.lineCap="butt",e.lineJoin="miter",e.miterLimit=10,e.globalCompositeOperation="source-over",e.font="10px sans-serif",void 0!==e.setLineDash&&(e.setLineDash([]),e.lineDashOffset=0)}function m(e,t,n,r){const i=e.length;for(let o=3;o<i;o+=4){const i=e[o];if(0===i)e[o-3]=t,e[o-2]=n,e[o-1]=r;else if(i<255){const s=255-i;e[o-3]=e[o-3]*i+t*s>>8,e[o-2]=e[o-2]*i+n*s>>8,e[o-1]=e[o-1]*i+r*s>>8}}}function y(e,t,n){const r=e.length;for(let i=3;i<r;i+=4){const r=n?n[e[i]]:e[i];t[i]=t[i]*r*.00392156862745098|0}}function v(e,t,n){const r=e.length;for(let i=3;i<r;i+=4){const r=77*e[i-3]+152*e[i-2]+28*e[i-1];t[i]=n?t[i]*n[r>>8]>>8:t[i]*r>>16}}function _(e,t,n,r){const i=r[0],o=r[1],s=r[2]-i,a=r[3]-o;0!==s&&0!==a&&(function(e,t,n,r,i,o,s,a,l,c,u){const d=!!o,h=d?o[0]:0,p=d?o[1]:0,f=d?o[2]:0;let g;g="Luminosity"===i?v:y;const _=Math.min(r,Math.ceil(1048576/n));for(let y=0;y<r;y+=_){const i=Math.min(_,r-y),o=e.getImageData(a-c,y+(l-u),n,i),v=t.getImageData(a,y+l,n,i);d&&m(o.data,h,p,f),g(o.data,v.data,s),t.putImageData(v,a,y+l)}}(t.context,n,s,a,t.subtype,t.backdrop,t.transferMap,i,o,t.offsetX,t.offsetY),e.save(),e.globalAlpha=1,e.globalCompositeOperation="source-over",e.setTransform(1,0,0,1,0,0),e.drawImage(n.canvas,0,0),e.restore())}function b(e,t){const n=r.Util.singularValueDecompose2dScale(e);n[0]=Math.fround(n[0]),n[1]=Math.fround(n[1]);const o=Math.fround((globalThis.devicePixelRatio||1)*i.PixelsPerInch.PDF_TO_CSS_UNITS);return void 0!==t?t:n[0]<=o||n[1]<=o}const x=["butt","round","square"],S=["miter","round","bevel"],w={},E={};var P=new WeakSet;class C{constructor(e,t,n,r,i,o,s){let{optionalContentConfig:a,markedContentStack:l=null}=i;_classPrivateMethodInitSpec(this,P),this.ctx=e,this.current=new d(this.ctx.canvas.width,this.ctx.canvas.height),this.stateStack=[],this.pendingClip=null,this.pendingEOFill=!1,this.res=null,this.xobjs=null,this.commonObjs=t,this.objs=n,this.canvasFactory=r,this.groupStack=[],this.processingType3=null,this.baseTransform=null,this.baseTransformStack=[],this.groupLevel=0,this.smaskStack=[],this.smaskCounter=0,this.tempSMask=null,this.suspendedCtx=null,this.contentVisible=!0,this.markedContentStack=l||[],this.optionalContentConfig=a,this.cachedCanvases=new c(this.canvasFactory),this.cachedPatterns=new Map,this.annotationCanvasMap=o,this.viewportScale=1,this.outputScaleX=1,this.outputScaleY=1,this.backgroundColor=(null===s||void 0===s?void 0:s.background)||null,this.foregroundColor=(null===s||void 0===s?void 0:s.foreground)||null,this._cachedScaleForStroking=null,this._cachedGetSinglePixelWidth=null,this._cachedBitmapsMap=new Map}getObject(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return"string"===typeof e?e.startsWith("g_")?this.commonObjs.get(e):this.objs.get(e):t}beginDrawing(e){let{transform:t,viewport:n,transparency:r=!1,background:o=null}=e;const s=this.ctx.canvas.width,a=this.ctx.canvas.height,l=o||"#ffffff";if(this.ctx.save(),this.foregroundColor&&this.backgroundColor){this.ctx.fillStyle=this.foregroundColor;const e=this.foregroundColor=this.ctx.fillStyle;this.ctx.fillStyle=this.backgroundColor;const t=this.backgroundColor=this.ctx.fillStyle;let n=!0,r=l;if(this.ctx.fillStyle=l,r=this.ctx.fillStyle,n="string"===typeof r&&/^#[0-9A-Fa-f]{6}$/.test(r),"#000000"===e&&"#ffffff"===t||e===t||!n)this.foregroundColor=this.backgroundColor=null;else{const[n,o,s]=(0,i.getRGB)(r),a=e=>(e/=255)<=.03928?e/12.92:((e+.055)/1.055)**2.4,l=Math.round(.2126*a(n)+.7152*a(o)+.0722*a(s));this.selectColor=(n,r,i)=>{const o=.2126*a(n)+.7152*a(r)+.0722*a(i);return Math.round(o)===l?t:e}}}if(this.ctx.fillStyle=this.backgroundColor||l,this.ctx.fillRect(0,0,s,a),this.ctx.restore(),r){const e=this.cachedCanvases.getCanvas("transparent",s,a);this.compositeCtx=this.ctx,this.transparentCanvas=e.canvas,this.ctx=e.context,this.ctx.save(),this.ctx.transform(...(0,i.getCurrentTransform)(this.compositeCtx))}this.ctx.save(),g(this.ctx,this.foregroundColor),t&&(this.ctx.transform(...t),this.outputScaleX=t[0],this.outputScaleY=t[0]),this.ctx.transform(...n.transform),this.viewportScale=n.scale,this.baseTransform=(0,i.getCurrentTransform)(this.ctx)}executeOperatorList(e,t,n,i){const o=e.argsArray,s=e.fnArray;let a=t||0;const l=o.length;if(l===a)return a;const c=l-a>10&&"function"===typeof n,u=c?Date.now()+15:0;let d=0;const h=this.commonObjs,p=this.objs;let f;for(;;){if(void 0!==i&&a===i.nextBreakPoint)return i.breakIt(a,n),a;if(f=s[a],f!==r.OPS.dependency)this[f].apply(this,o[a]);else for(const e of o[a]){const t=e.startsWith("g_")?h:p;if(!t.has(e))return t.get(e,n),a}if(a++,a===l)return a;if(c&&++d>10){if(Date.now()>u)return n(),a;d=0}}}endDrawing(){_classPrivateMethodGet(this,P,A).call(this),this.cachedCanvases.clear(),this.cachedPatterns.clear();for(const e of this._cachedBitmapsMap.values()){for(const t of e.values())"undefined"!==typeof HTMLCanvasElement&&t instanceof HTMLCanvasElement&&(t.width=t.height=0);e.clear()}this._cachedBitmapsMap.clear()}_scaleImage(e,t){const n=e.width,r=e.height;let i,o,s=Math.max(Math.hypot(t[0],t[1]),1),a=Math.max(Math.hypot(t[2],t[3]),1),l=n,c=r,u="prescale1";for(;s>2&&l>1||a>2&&c>1;){let t=l,n=c;s>2&&l>1&&(t=Math.ceil(l/2),s/=l/t),a>2&&c>1&&(n=Math.ceil(c/2),a/=c/n),i=this.cachedCanvases.getCanvas(u,t,n),o=i.context,o.clearRect(0,0,t,n),o.drawImage(e,0,0,l,c,0,0,t,n),e=i.canvas,l=t,c=n,u="prescale1"===u?"prescale2":"prescale1"}return{img:e,paintWidth:l,paintHeight:c}}_createMaskCanvas(e){const t=this.ctx,{width:n,height:s}=e,a=this.current.fillColor,l=this.current.patternFill,c=(0,i.getCurrentTransform)(t);let d,h,f,g;if((e.bitmap||e.data)&&e.count>1){const t=e.bitmap||e.data.buffer;h=JSON.stringify(l?c:[c.slice(0,4),a]),d=this._cachedBitmapsMap.get(t),d||(d=new Map,this._cachedBitmapsMap.set(t,d));const n=d.get(h);if(n&&!l)return{canvas:n,offsetX:Math.round(Math.min(c[0],c[2])+c[4]),offsetY:Math.round(Math.min(c[1],c[3])+c[5])};f=n}f||(g=this.cachedCanvases.getCanvas("maskCanvas",n,s),p(g.context,e));let m=r.Util.transform(c,[1/n,0,0,-1/s,0,0]);m=r.Util.transform(m,[1,0,0,1,0,-s]);const y=r.Util.applyTransform([0,0],m),v=r.Util.applyTransform([n,s],m),_=r.Util.normalizeRect([y[0],y[1],v[0],v[1]]),x=Math.round(_[2]-_[0])||1,S=Math.round(_[3]-_[1])||1,w=this.cachedCanvases.getCanvas("fillCanvas",x,S),E=w.context,P=Math.min(y[0],v[0]),C=Math.min(y[1],v[1]);E.translate(-P,-C),E.transform(...m),f||(f=this._scaleImage(g.canvas,(0,i.getCurrentTransformInverse)(E)),f=f.img,d&&l&&d.set(h,f)),E.imageSmoothingEnabled=b((0,i.getCurrentTransform)(E),e.interpolate),u(E,f,0,0,f.width,f.height,0,0,n,s),E.globalCompositeOperation="source-in";const A=r.Util.transform((0,i.getCurrentTransformInverse)(E),[1,0,0,1,-P,-C]);return E.fillStyle=l?a.getPattern(t,this,A,o.PathType.FILL):a,E.fillRect(0,0,n,s),d&&!l&&(this.cachedCanvases.delete("fillCanvas"),d.set(h,w.canvas)),{canvas:w.canvas,offsetX:Math.round(P),offsetY:Math.round(C)}}setLineWidth(e){e!==this.current.lineWidth&&(this._cachedScaleForStroking=null),this.current.lineWidth=e,this.ctx.lineWidth=e}setLineCap(e){this.ctx.lineCap=x[e]}setLineJoin(e){this.ctx.lineJoin=S[e]}setMiterLimit(e){this.ctx.miterLimit=e}setDash(e,t){const n=this.ctx;void 0!==n.setLineDash&&(n.setLineDash(e),n.lineDashOffset=t)}setRenderingIntent(e){}setFlatness(e){}setGState(e){for(const[t,n]of e)switch(t){case"LW":this.setLineWidth(n);break;case"LC":this.setLineCap(n);break;case"LJ":this.setLineJoin(n);break;case"ML":this.setMiterLimit(n);break;case"D":this.setDash(n[0],n[1]);break;case"RI":this.setRenderingIntent(n);break;case"FL":this.setFlatness(n);break;case"Font":this.setFont(n[0],n[1]);break;case"CA":this.current.strokeAlpha=n;break;case"ca":this.current.fillAlpha=n,this.ctx.globalAlpha=n;break;case"BM":this.ctx.globalCompositeOperation=n;break;case"SMask":this.current.activeSMask=n?this.tempSMask:null,this.tempSMask=null,this.checkSMaskState();break;case"TR":this.current.transferMaps=n}}get inSMaskMode(){return!!this.suspendedCtx}checkSMaskState(){const e=this.inSMaskMode;this.current.activeSMask&&!e?this.beginSMaskMode():!this.current.activeSMask&&e&&this.endSMaskMode()}beginSMaskMode(){if(this.inSMaskMode)throw new Error("beginSMaskMode called while already in smask mode");const e=this.ctx.canvas.width,t=this.ctx.canvas.height,n="smaskGroupAt"+this.groupLevel,r=this.cachedCanvases.getCanvas(n,e,t);this.suspendedCtx=this.ctx,this.ctx=r.context;const o=this.ctx;o.setTransform(...(0,i.getCurrentTransform)(this.suspendedCtx)),f(this.suspendedCtx,o),function(e,t){if(e._removeMirroring)throw new Error("Context is already forwarding operations.");e.__originalSave=e.save,e.__originalRestore=e.restore,e.__originalRotate=e.rotate,e.__originalScale=e.scale,e.__originalTranslate=e.translate,e.__originalTransform=e.transform,e.__originalSetTransform=e.setTransform,e.__originalResetTransform=e.resetTransform,e.__originalClip=e.clip,e.__originalMoveTo=e.moveTo,e.__originalLineTo=e.lineTo,e.__originalBezierCurveTo=e.bezierCurveTo,e.__originalRect=e.rect,e.__originalClosePath=e.closePath,e.__originalBeginPath=e.beginPath,e._removeMirroring=()=>{e.save=e.__originalSave,e.restore=e.__originalRestore,e.rotate=e.__originalRotate,e.scale=e.__originalScale,e.translate=e.__originalTranslate,e.transform=e.__originalTransform,e.setTransform=e.__originalSetTransform,e.resetTransform=e.__originalResetTransform,e.clip=e.__originalClip,e.moveTo=e.__originalMoveTo,e.lineTo=e.__originalLineTo,e.bezierCurveTo=e.__originalBezierCurveTo,e.rect=e.__originalRect,e.closePath=e.__originalClosePath,e.beginPath=e.__originalBeginPath,delete e._removeMirroring},e.save=function(){t.save(),this.__originalSave()},e.restore=function(){t.restore(),this.__originalRestore()},e.translate=function(e,n){t.translate(e,n),this.__originalTranslate(e,n)},e.scale=function(e,n){t.scale(e,n),this.__originalScale(e,n)},e.transform=function(e,n,r,i,o,s){t.transform(e,n,r,i,o,s),this.__originalTransform(e,n,r,i,o,s)},e.setTransform=function(e,n,r,i,o,s){t.setTransform(e,n,r,i,o,s),this.__originalSetTransform(e,n,r,i,o,s)},e.resetTransform=function(){t.resetTransform(),this.__originalResetTransform()},e.rotate=function(e){t.rotate(e),this.__originalRotate(e)},e.clip=function(e){t.clip(e),this.__originalClip(e)},e.moveTo=function(e,n){t.moveTo(e,n),this.__originalMoveTo(e,n)},e.lineTo=function(e,n){t.lineTo(e,n),this.__originalLineTo(e,n)},e.bezierCurveTo=function(e,n,r,i,o,s){t.bezierCurveTo(e,n,r,i,o,s),this.__originalBezierCurveTo(e,n,r,i,o,s)},e.rect=function(e,n,r,i){t.rect(e,n,r,i),this.__originalRect(e,n,r,i)},e.closePath=function(){t.closePath(),this.__originalClosePath()},e.beginPath=function(){t.beginPath(),this.__originalBeginPath()}}(o,this.suspendedCtx),this.setGState([["BM","source-over"],["ca",1],["CA",1]])}endSMaskMode(){if(!this.inSMaskMode)throw new Error("endSMaskMode called while not in smask mode");this.ctx._removeMirroring(),f(this.ctx,this.suspendedCtx),this.ctx=this.suspendedCtx,this.suspendedCtx=null}compose(e){if(!this.current.activeSMask)return;e?(e[0]=Math.floor(e[0]),e[1]=Math.floor(e[1]),e[2]=Math.ceil(e[2]),e[3]=Math.ceil(e[3])):e=[0,0,this.ctx.canvas.width,this.ctx.canvas.height];const t=this.current.activeSMask;_(this.suspendedCtx,t,this.ctx,e),this.ctx.save(),this.ctx.setTransform(1,0,0,1,0,0),this.ctx.clearRect(0,0,this.ctx.canvas.width,this.ctx.canvas.height),this.ctx.restore()}save(){this.inSMaskMode?(f(this.ctx,this.suspendedCtx),this.suspendedCtx.save()):this.ctx.save();const e=this.current;this.stateStack.push(e),this.current=e.clone()}restore(){0===this.stateStack.length&&this.inSMaskMode&&this.endSMaskMode(),0!==this.stateStack.length&&(this.current=this.stateStack.pop(),this.inSMaskMode?(this.suspendedCtx.restore(),f(this.suspendedCtx,this.ctx)):this.ctx.restore(),this.checkSMaskState(),this.pendingClip=null,this._cachedScaleForStroking=null,this._cachedGetSinglePixelWidth=null)}transform(e,t,n,r,i,o){this.ctx.transform(e,t,n,r,i,o),this._cachedScaleForStroking=null,this._cachedGetSinglePixelWidth=null}constructPath(e,t,n){const o=this.ctx,s=this.current;let a,l,c=s.x,u=s.y;const d=(0,i.getCurrentTransform)(o),h=0===d[0]&&0===d[3]||0===d[1]&&0===d[2],p=h?n.slice(0):null;for(let i=0,f=0,g=e.length;i<g;i++)switch(0|e[i]){case r.OPS.rectangle:c=t[f++],u=t[f++];const e=t[f++],n=t[f++],i=c+e,g=u+n;o.moveTo(c,u),0===e||0===n?o.lineTo(i,g):(o.lineTo(i,u),o.lineTo(i,g),o.lineTo(c,g)),h||s.updateRectMinMax(d,[c,u,i,g]),o.closePath();break;case r.OPS.moveTo:c=t[f++],u=t[f++],o.moveTo(c,u),h||s.updatePathMinMax(d,c,u);break;case r.OPS.lineTo:c=t[f++],u=t[f++],o.lineTo(c,u),h||s.updatePathMinMax(d,c,u);break;case r.OPS.curveTo:a=c,l=u,c=t[f+4],u=t[f+5],o.bezierCurveTo(t[f],t[f+1],t[f+2],t[f+3],c,u),s.updateCurvePathMinMax(d,a,l,t[f],t[f+1],t[f+2],t[f+3],c,u,p),f+=6;break;case r.OPS.curveTo2:a=c,l=u,o.bezierCurveTo(c,u,t[f],t[f+1],t[f+2],t[f+3]),s.updateCurvePathMinMax(d,a,l,c,u,t[f],t[f+1],t[f+2],t[f+3],p),c=t[f+2],u=t[f+3],f+=4;break;case r.OPS.curveTo3:a=c,l=u,c=t[f+2],u=t[f+3],o.bezierCurveTo(t[f],t[f+1],c,u,c,u),s.updateCurvePathMinMax(d,a,l,t[f],t[f+1],c,u,c,u,p),f+=4;break;case r.OPS.closePath:o.closePath()}h&&s.updateScalingPathMinMax(d,p),s.setCurrentPoint(c,u)}closePath(){this.ctx.closePath()}stroke(){let e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];const t=this.ctx,n=this.current.strokeColor;t.globalAlpha=this.current.strokeAlpha,this.contentVisible&&("object"===typeof n&&null!==n&&void 0!==n&&n.getPattern?(t.save(),t.strokeStyle=n.getPattern(t,this,(0,i.getCurrentTransformInverse)(t),o.PathType.STROKE),this.rescaleAndStroke(!1),t.restore()):this.rescaleAndStroke(!0)),e&&this.consumePath(this.current.getClippedPathBoundingBox()),t.globalAlpha=this.current.fillAlpha}closeStroke(){this.closePath(),this.stroke()}fill(){let e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];const t=this.ctx,n=this.current.fillColor;let r=!1;this.current.patternFill&&(t.save(),t.fillStyle=n.getPattern(t,this,(0,i.getCurrentTransformInverse)(t),o.PathType.FILL),r=!0);const s=this.current.getClippedPathBoundingBox();this.contentVisible&&null!==s&&(this.pendingEOFill?(t.fill("evenodd"),this.pendingEOFill=!1):t.fill()),r&&t.restore(),e&&this.consumePath(s)}eoFill(){this.pendingEOFill=!0,this.fill()}fillStroke(){this.fill(!1),this.stroke(!1),this.consumePath()}eoFillStroke(){this.pendingEOFill=!0,this.fillStroke()}closeFillStroke(){this.closePath(),this.fillStroke()}closeEOFillStroke(){this.pendingEOFill=!0,this.closePath(),this.fillStroke()}endPath(){this.consumePath()}clip(){this.pendingClip=w}eoClip(){this.pendingClip=E}beginText(){this.current.textMatrix=r.IDENTITY_MATRIX,this.current.textMatrixScale=1,this.current.x=this.current.lineX=0,this.current.y=this.current.lineY=0}endText(){const e=this.pendingTextPaths,t=this.ctx;if(void 0!==e){t.save(),t.beginPath();for(const n of e)t.setTransform(...n.transform),t.translate(n.x,n.y),n.addToPath(t,n.fontSize);t.restore(),t.clip(),t.beginPath(),delete this.pendingTextPaths}else t.beginPath()}setCharSpacing(e){this.current.charSpacing=e}setWordSpacing(e){this.current.wordSpacing=e}setHScale(e){this.current.textHScale=e/100}setLeading(e){this.current.leading=-e}setFont(e,t){const n=this.commonObjs.get(e),i=this.current;if(!n)throw new Error("Can't find font for ".concat(e));if(i.fontMatrix=n.fontMatrix||r.FONT_IDENTITY_MATRIX,0!==i.fontMatrix[0]&&0!==i.fontMatrix[3]||(0,r.warn)("Invalid font matrix for font "+e),t<0?(t=-t,i.fontDirection=-1):i.fontDirection=1,this.current.font=n,this.current.fontSize=t,n.isType3Font)return;const o=n.loadedName||"sans-serif";let s="normal";n.black?s="900":n.bold&&(s="bold");const a=n.italic?"italic":"normal",l='"'.concat(o,'", ').concat(n.fallbackName);let c=t;t<16?c=16:t>100&&(c=100),this.current.fontSizeScale=t/c,this.ctx.font="".concat(a," ").concat(s," ").concat(c,"px ").concat(l)}setTextRenderingMode(e){this.current.textRenderingMode=e}setTextRise(e){this.current.textRise=e}moveText(e,t){this.current.x=this.current.lineX+=e,this.current.y=this.current.lineY+=t}setLeadingMoveText(e,t){this.setLeading(-t),this.moveText(e,t)}setTextMatrix(e,t,n,r,i,o){this.current.textMatrix=[e,t,n,r,i,o],this.current.textMatrixScale=Math.hypot(e,t),this.current.x=this.current.lineX=0,this.current.y=this.current.lineY=0}nextLine(){this.moveText(0,this.current.leading)}paintChar(e,t,n,o){const s=this.ctx,a=this.current,l=a.font,c=a.textRenderingMode,u=a.fontSize/a.fontSizeScale,d=c&r.TextRenderingMode.FILL_STROKE_MASK,h=!!(c&r.TextRenderingMode.ADD_TO_PATH_FLAG),p=a.patternFill&&!l.missingFile;let f;(l.disableFontFace||h||p)&&(f=l.getPathGenerator(this.commonObjs,e)),l.disableFontFace||p?(s.save(),s.translate(t,n),s.beginPath(),f(s,u),o&&s.setTransform(...o),d!==r.TextRenderingMode.FILL&&d!==r.TextRenderingMode.FILL_STROKE||s.fill(),d!==r.TextRenderingMode.STROKE&&d!==r.TextRenderingMode.FILL_STROKE||s.stroke(),s.restore()):(d!==r.TextRenderingMode.FILL&&d!==r.TextRenderingMode.FILL_STROKE||s.fillText(e,t,n),d!==r.TextRenderingMode.STROKE&&d!==r.TextRenderingMode.FILL_STROKE||s.strokeText(e,t,n)),h&&(this.pendingTextPaths||(this.pendingTextPaths=[])).push({transform:(0,i.getCurrentTransform)(s),x:t,y:n,fontSize:u,addToPath:f})}get isFontSubpixelAAEnabled(){const{context:e}=this.cachedCanvases.getCanvas("isFontSubpixelAAEnabled",10,10);e.scale(1.5,1),e.fillText("I",0,10);const t=e.getImageData(0,0,10,10).data;let n=!1;for(let r=3;r<t.length;r+=4)if(t[r]>0&&t[r]<255){n=!0;break}return(0,r.shadow)(this,"isFontSubpixelAAEnabled",n)}showText(e){const t=this.current,n=t.font;if(n.isType3Font)return this.showType3Text(e);const s=t.fontSize;if(0===s)return;const a=this.ctx,l=t.fontSizeScale,c=t.charSpacing,u=t.wordSpacing,d=t.fontDirection,h=t.textHScale*d,p=e.length,f=n.vertical,g=f?1:-1,m=n.defaultVMetrics,y=s*t.fontMatrix[0],v=t.textRenderingMode===r.TextRenderingMode.FILL&&!n.disableFontFace&&!t.patternFill;let _;if(a.save(),a.transform(...t.textMatrix),a.translate(t.x,t.y+t.textRise),d>0?a.scale(h,-1):a.scale(h,1),t.patternFill){a.save();const e=t.fillColor.getPattern(a,this,(0,i.getCurrentTransformInverse)(a),o.PathType.FILL);_=(0,i.getCurrentTransform)(a),a.restore(),a.fillStyle=e}let b=t.lineWidth;const x=t.textMatrixScale;if(0===x||0===b){const e=t.textRenderingMode&r.TextRenderingMode.FILL_STROKE_MASK;e!==r.TextRenderingMode.STROKE&&e!==r.TextRenderingMode.FILL_STROKE||(b=this.getSinglePixelWidth())}else b/=x;if(1!==l&&(a.scale(l,l),b/=l),a.lineWidth=b,n.isInvalidPDFjsFont){const n=[];let r=0;for(const t of e)n.push(t.unicode),r+=t.width;return a.fillText(n.join(""),0,0),t.x+=r*y*h,a.restore(),void this.compose()}let S,w=0;for(S=0;S<p;++S){const t=e[S];if("number"===typeof t){w+=g*t*s/1e3;continue}let r=!1;const i=(t.isSpace?u:0)+c,o=t.fontChar,h=t.accent;let p,b,x,E=t.width;if(f){const e=t.vmetric||m,n=-(t.vmetric?e[1]:.5*E)*y,r=e[2]*y;E=e?-e[0]:E,p=n/l,b=(w+r)/l}else p=w/l,b=0;if(n.remeasure&&E>0){const e=1e3*a.measureText(o).width/s*l;if(E<e&&this.isFontSubpixelAAEnabled){const t=E/e;r=!0,a.save(),a.scale(t,1),p/=t}else E!==e&&(p+=(E-e)/2e3*s/l)}if(this.contentVisible&&(t.isInFont||n.missingFile))if(v&&!h)a.fillText(o,p,b);else if(this.paintChar(o,p,b,_),h){const e=p+s*h.offset.x/l,t=b-s*h.offset.y/l;this.paintChar(h.fontChar,e,t,_)}x=f?E*y-i*d:E*y+i*d,w+=x,r&&a.restore()}f?t.y-=w:t.x+=w*h,a.restore(),this.compose()}showType3Text(e){const t=this.ctx,n=this.current,i=n.font,o=n.fontSize,s=n.fontDirection,a=i.vertical?1:-1,l=n.charSpacing,c=n.wordSpacing,u=n.textHScale*s,d=n.fontMatrix||r.FONT_IDENTITY_MATRIX,h=e.length;let p,f,g,m;if(n.textRenderingMode!==r.TextRenderingMode.INVISIBLE&&0!==o){for(this._cachedScaleForStroking=null,this._cachedGetSinglePixelWidth=null,t.save(),t.transform(...n.textMatrix),t.translate(n.x,n.y),t.scale(u,s),p=0;p<h;++p){if(f=e[p],"number"===typeof f){m=a*f*o/1e3,this.ctx.translate(m,0),n.x+=m*u;continue}const s=(f.isSpace?c:0)+l,h=i.charProcOperatorList[f.operatorListId];h?(this.contentVisible&&(this.processingType3=f,this.save(),t.scale(o,o),t.transform(...d),this.executeOperatorList(h),this.restore()),g=r.Util.applyTransform([f.width,0],d)[0]*o+s,t.translate(g,0),n.x+=g*u):(0,r.warn)('Type3 character "'.concat(f.operatorListId,'" is not available.'))}t.restore(),this.processingType3=null}}setCharWidth(e,t){}setCharWidthAndBounds(e,t,n,r,i,o){this.ctx.rect(n,r,i-n,o-r),this.ctx.clip(),this.endPath()}getColorN_Pattern(e){let t;if("TilingPattern"===e[0]){const n=e[1],r=this.baseTransform||(0,i.getCurrentTransform)(this.ctx),s={createCanvasGraphics:e=>new C(e,this.commonObjs,this.objs,this.canvasFactory,{optionalContentConfig:this.optionalContentConfig,markedContentStack:this.markedContentStack})};t=new o.TilingPattern(e,n,this.ctx,s,r)}else t=this._getPattern(e[1],e[2]);return t}setStrokeColorN(){this.current.strokeColor=this.getColorN_Pattern(arguments)}setFillColorN(){this.current.fillColor=this.getColorN_Pattern(arguments),this.current.patternFill=!0}setStrokeRGBColor(e,t,n){var i;const o=(null===(i=this.selectColor)||void 0===i?void 0:i.call(this,e,t,n))||r.Util.makeHexColor(e,t,n);this.ctx.strokeStyle=o,this.current.strokeColor=o}setFillRGBColor(e,t,n){var i;const o=(null===(i=this.selectColor)||void 0===i?void 0:i.call(this,e,t,n))||r.Util.makeHexColor(e,t,n);this.ctx.fillStyle=o,this.current.fillColor=o,this.current.patternFill=!1}_getPattern(e){let t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return this.cachedPatterns.has(e)?t=this.cachedPatterns.get(e):(t=(0,o.getShadingPattern)(this.objs.get(e)),this.cachedPatterns.set(e,t)),n&&(t.matrix=n),t}shadingFill(e){if(!this.contentVisible)return;const t=this.ctx;this.save();const n=this._getPattern(e);t.fillStyle=n.getPattern(t,this,(0,i.getCurrentTransformInverse)(t),o.PathType.SHADING);const s=(0,i.getCurrentTransformInverse)(t);if(s){const e=t.canvas,n=e.width,i=e.height,o=r.Util.applyTransform([0,0],s),a=r.Util.applyTransform([0,i],s),l=r.Util.applyTransform([n,0],s),c=r.Util.applyTransform([n,i],s),u=Math.min(o[0],a[0],l[0],c[0]),d=Math.min(o[1],a[1],l[1],c[1]),h=Math.max(o[0],a[0],l[0],c[0]),p=Math.max(o[1],a[1],l[1],c[1]);this.ctx.fillRect(u,d,h-u,p-d)}else this.ctx.fillRect(-1e10,-1e10,2e10,2e10);this.compose(this.current.getClippedPathBoundingBox()),this.restore()}beginInlineImage(){(0,r.unreachable)("Should not call beginInlineImage")}beginImageData(){(0,r.unreachable)("Should not call beginImageData")}paintFormXObjectBegin(e,t){if(this.contentVisible&&(this.save(),this.baseTransformStack.push(this.baseTransform),Array.isArray(e)&&6===e.length&&this.transform(...e),this.baseTransform=(0,i.getCurrentTransform)(this.ctx),t)){const e=t[2]-t[0],n=t[3]-t[1];this.ctx.rect(t[0],t[1],e,n),this.current.updateRectMinMax((0,i.getCurrentTransform)(this.ctx),t),this.clip(),this.endPath()}}paintFormXObjectEnd(){this.contentVisible&&(this.restore(),this.baseTransform=this.baseTransformStack.pop())}beginGroup(e){if(!this.contentVisible)return;this.save(),this.inSMaskMode&&(this.endSMaskMode(),this.current.activeSMask=null);const t=this.ctx;e.isolated||(0,r.info)("TODO: Support non-isolated groups."),e.knockout&&(0,r.warn)("Knockout groups not supported.");const n=(0,i.getCurrentTransform)(t);if(e.matrix&&t.transform(...e.matrix),!e.bbox)throw new Error("Bounding box is required.");let o=r.Util.getAxialAlignedBoundingBox(e.bbox,(0,i.getCurrentTransform)(t));const s=[0,0,t.canvas.width,t.canvas.height];o=r.Util.intersect(o,s)||[0,0,0,0];const l=Math.floor(o[0]),c=Math.floor(o[1]);let u=Math.max(Math.ceil(o[2])-l,1),d=Math.max(Math.ceil(o[3])-c,1),h=1,p=1;u>a&&(h=u/a,u=a),d>a&&(p=d/a,d=a),this.current.startNewPathAndClipBox([0,0,u,d]);let g="groupAt"+this.groupLevel;e.smask&&(g+="_smask_"+this.smaskCounter++%2);const m=this.cachedCanvases.getCanvas(g,u,d),y=m.context;y.scale(1/h,1/p),y.translate(-l,-c),y.transform(...n),e.smask?this.smaskStack.push({canvas:m.canvas,context:y,offsetX:l,offsetY:c,scaleX:h,scaleY:p,subtype:e.smask.subtype,backdrop:e.smask.backdrop,transferMap:e.smask.transferMap||null,startTransformInverse:null}):(t.setTransform(1,0,0,1,0,0),t.translate(l,c),t.scale(h,p),t.save()),f(t,y),this.ctx=y,this.setGState([["BM","source-over"],["ca",1],["CA",1]]),this.groupStack.push(t),this.groupLevel++}endGroup(e){if(!this.contentVisible)return;this.groupLevel--;const t=this.ctx,n=this.groupStack.pop();if(this.ctx=n,this.ctx.imageSmoothingEnabled=!1,e.smask)this.tempSMask=this.smaskStack.pop(),this.restore();else{this.ctx.restore();const e=(0,i.getCurrentTransform)(this.ctx);this.restore(),this.ctx.save(),this.ctx.setTransform(...e);const n=r.Util.getAxialAlignedBoundingBox([0,0,t.canvas.width,t.canvas.height],e);this.ctx.drawImage(t.canvas,0,0),this.ctx.restore(),this.compose(n)}}beginAnnotation(e,t,n,o,s){if(_classPrivateMethodGet(this,P,A).call(this),g(this.ctx,this.foregroundColor),this.ctx.save(),this.save(),this.baseTransform&&this.ctx.setTransform(...this.baseTransform),Array.isArray(t)&&4===t.length){const o=t[2]-t[0],a=t[3]-t[1];if(s&&this.annotationCanvasMap){(n=n.slice())[4]-=t[0],n[5]-=t[1],(t=t.slice())[0]=t[1]=0,t[2]=o,t[3]=a;const[s,l]=r.Util.singularValueDecompose2dScale((0,i.getCurrentTransform)(this.ctx)),{viewportScale:c}=this,u=Math.ceil(o*this.outputScaleX*c),d=Math.ceil(a*this.outputScaleY*c);this.annotationCanvas=this.canvasFactory.create(u,d);const{canvas:h,context:p}=this.annotationCanvas;this.annotationCanvasMap.set(e,h),this.annotationCanvas.savedCtx=this.ctx,this.ctx=p,this.ctx.setTransform(s,0,0,-l,0,a*l),g(this.ctx,this.foregroundColor)}else g(this.ctx,this.foregroundColor),this.ctx.rect(t[0],t[1],o,a),this.ctx.clip(),this.endPath()}this.current=new d(this.ctx.canvas.width,this.ctx.canvas.height),this.transform(...n),this.transform(...o)}endAnnotation(){this.annotationCanvas&&(this.ctx=this.annotationCanvas.savedCtx,delete this.annotationCanvas.savedCtx,delete this.annotationCanvas)}paintImageMaskXObject(e){if(!this.contentVisible)return;const t=e.count;(e=this.getObject(e.data,e)).count=t;const n=this.ctx,r=this.processingType3;if(r&&(void 0===r.compiled&&(r.compiled=function(e){const{width:t,height:n}=e;if(t>1e3||n>1e3)return null;const r=new Uint8Array([0,2,4,0,1,0,5,4,8,10,0,8,0,2,1,0]),i=t+1;let o,s,a,l=new Uint8Array(i*(n+1));const c=t+7&-8;let u=new Uint8Array(c*n),d=0;for(const g of e.data){let e=128;for(;e>0;)u[d++]=g&e?0:255,e>>=1}let h=0;for(d=0,0!==u[d]&&(l[0]=1,++h),s=1;s<t;s++)u[d]!==u[d+1]&&(l[s]=u[d]?2:1,++h),d++;for(0!==u[d]&&(l[s]=2,++h),o=1;o<n;o++){d=o*c,a=o*i,u[d-c]!==u[d]&&(l[a]=u[d]?1:8,++h);let e=(u[d]?4:0)+(u[d-c]?8:0);for(s=1;s<t;s++)e=(e>>2)+(u[d+1]?4:0)+(u[d-c+1]?8:0),r[e]&&(l[a+s]=r[e],++h),d++;if(u[d-c]!==u[d]&&(l[a+s]=u[d]?2:4,++h),h>1e3)return null}for(d=c*(n-1),a=o*i,0!==u[d]&&(l[a]=8,++h),s=1;s<t;s++)u[d]!==u[d+1]&&(l[a+s]=u[d]?4:8,++h),d++;if(0!==u[d]&&(l[a+s]=4,++h),h>1e3)return null;const p=new Int32Array([0,i,-1,0,-i,0,0,0,1]),f=new Path2D;for(o=0;h&&o<=n;o++){let e=o*i;const n=e+t;for(;e<n&&!l[e];)e++;if(e===n)continue;f.moveTo(e%i,o);const r=e;let s=l[e];do{const t=p[s];do{e+=t}while(!l[e]);const n=l[e];5!==n&&10!==n?(s=n,l[e]=0):(s=n&51*s>>4,l[e]&=s>>2|s<<2),f.lineTo(e%i,e/i|0),l[e]||--h}while(r!==e);--o}return u=null,l=null,function(e){e.save(),e.scale(1/t,-1/n),e.translate(0,-n),e.fill(f),e.beginPath(),e.restore()}}(e)),r.compiled))return void r.compiled(n);const i=this._createMaskCanvas(e),o=i.canvas;n.save(),n.setTransform(1,0,0,1,0,0),n.drawImage(o,i.offsetX,i.offsetY),n.restore(),this.compose()}paintImageMaskXObjectRepeat(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0,s=arguments.length>4?arguments[4]:void 0,a=arguments.length>5?arguments[5]:void 0;if(!this.contentVisible)return;e=this.getObject(e.data,e);const l=this.ctx;l.save();const c=(0,i.getCurrentTransform)(l);l.transform(t,n,o,s,0,0);const u=this._createMaskCanvas(e);l.setTransform(1,0,0,1,u.offsetX-c[4],u.offsetY-c[5]);for(let i=0,d=a.length;i<d;i+=2){const e=r.Util.transform(c,[t,n,o,s,a[i],a[i+1]]),[d,h]=r.Util.applyTransform([0,0],e);l.drawImage(u.canvas,d,h)}l.restore(),this.compose()}paintImageMaskXObjectGroup(e){if(!this.contentVisible)return;const t=this.ctx,n=this.current.fillColor,r=this.current.patternFill;for(const s of e){const{data:e,width:a,height:l,transform:c}=s,d=this.cachedCanvases.getCanvas("maskCanvas",a,l),h=d.context;h.save(),p(h,this.getObject(e,s)),h.globalCompositeOperation="source-in",h.fillStyle=r?n.getPattern(h,this,(0,i.getCurrentTransformInverse)(t),o.PathType.FILL):n,h.fillRect(0,0,a,l),h.restore(),t.save(),t.transform(...c),t.scale(1,-1),u(t,d.canvas,0,0,a,l,0,-1,1,1),t.restore()}this.compose()}paintImageXObject(e){if(!this.contentVisible)return;const t=this.getObject(e);t?this.paintInlineImageXObject(t):(0,r.warn)("Dependent image isn't ready yet")}paintImageXObjectRepeat(e,t,n,i){if(!this.contentVisible)return;const o=this.getObject(e);if(!o)return void(0,r.warn)("Dependent image isn't ready yet");const s=o.width,a=o.height,l=[];for(let r=0,c=i.length;r<c;r+=2)l.push({transform:[t,0,0,n,i[r],i[r+1]],x:0,y:0,w:s,h:a});this.paintInlineImageXObjectGroup(o,l)}paintInlineImageXObject(e){if(!this.contentVisible)return;const t=e.width,n=e.height,r=this.ctx;let o;if(this.save(),r.scale(1/t,-1/n),"function"===typeof HTMLElement&&e instanceof HTMLElement||!e.data)o=e;else{const r=this.cachedCanvases.getCanvas("inlineImage",t,n);h(r.context,e,this.current.transferMaps),o=r.canvas}const s=this._scaleImage(o,(0,i.getCurrentTransformInverse)(r));r.imageSmoothingEnabled=b((0,i.getCurrentTransform)(r),e.interpolate),u(r,s.img,0,0,s.paintWidth,s.paintHeight,0,-n,t,n),this.compose(),this.restore()}paintInlineImageXObjectGroup(e,t){if(!this.contentVisible)return;const n=this.ctx,r=e.width,i=e.height,o=this.cachedCanvases.getCanvas("inlineImage",r,i);h(o.context,e,this.current.transferMaps);for(const s of t)n.save(),n.transform(...s.transform),n.scale(1,-1),u(n,o.canvas,s.x,s.y,s.w,s.h,0,-1,1,1),n.restore();this.compose()}paintSolidColorImageMask(){this.contentVisible&&(this.ctx.fillRect(0,0,1,1),this.compose())}markPoint(e){}markPointProps(e,t){}beginMarkedContent(e){this.markedContentStack.push({visible:!0})}beginMarkedContentProps(e,t){"OC"===e?this.markedContentStack.push({visible:this.optionalContentConfig.isVisible(t)}):this.markedContentStack.push({visible:!0}),this.contentVisible=this.isContentVisible()}endMarkedContent(){this.markedContentStack.pop(),this.contentVisible=this.isContentVisible()}beginCompat(){}endCompat(){}consumePath(e){const t=this.current.isEmptyClip();this.pendingClip&&this.current.updateClipFromPath(),this.pendingClip||this.compose(e);const n=this.ctx;this.pendingClip&&(t||(this.pendingClip===E?n.clip("evenodd"):n.clip()),this.pendingClip=null),this.current.startNewPathAndClipBox(this.current.clipBox),n.beginPath()}getSinglePixelWidth(){if(!this._cachedGetSinglePixelWidth){const e=(0,i.getCurrentTransform)(this.ctx);if(0===e[1]&&0===e[2])this._cachedGetSinglePixelWidth=1/Math.min(Math.abs(e[0]),Math.abs(e[3]));else{const t=Math.abs(e[0]*e[3]-e[2]*e[1]),n=Math.hypot(e[0],e[2]),r=Math.hypot(e[1],e[3]);this._cachedGetSinglePixelWidth=Math.max(n,r)/t}}return this._cachedGetSinglePixelWidth}getScaleForStroking(){if(!this._cachedScaleForStroking){const{lineWidth:e}=this.current,t=(0,i.getCurrentTransform)(this.ctx);let n,r;if(0===t[1]&&0===t[2]){const i=Math.abs(t[0]),o=Math.abs(t[3]);if(0===e)n=1/i,r=1/o;else{const t=i*e,s=o*e;n=t<1?1/t:1,r=s<1?1/s:1}}else{const i=Math.abs(t[0]*t[3]-t[2]*t[1]),o=Math.hypot(t[0],t[1]),s=Math.hypot(t[2],t[3]);if(0===e)n=s/i,r=o/i;else{const t=e*i;n=s>t?s/t:1,r=o>t?o/t:1}}this._cachedScaleForStroking=[n,r]}return this._cachedScaleForStroking}rescaleAndStroke(e){const{ctx:t}=this,{lineWidth:n}=this.current,[r,o]=this.getScaleForStroking();if(t.lineWidth=n||1,1===r&&1===o)return void t.stroke();let s,a,l;e&&(s=(0,i.getCurrentTransform)(t),a=t.getLineDash().slice(),l=t.lineDashOffset),t.scale(r,o);const c=Math.max(r,o);t.setLineDash(t.getLineDash().map((e=>e/c))),t.lineDashOffset/=c,t.stroke(),e&&(t.setTransform(...s),t.setLineDash(a),t.lineDashOffset=l)}isContentVisible(){for(let e=this.markedContentStack.length-1;e>=0;e--)if(!this.markedContentStack[e].visible)return!1;return!0}}function A(){for(;this.stateStack.length||this.inSMaskMode;)this.restore();this.ctx.restore(),this.transparentCanvas&&(this.ctx=this.compositeCtx,this.ctx.save(),this.ctx.setTransform(1,0,0,1,0,0),this.ctx.drawImage(this.transparentCanvas,0,0),this.ctx.restore(),this.transparentCanvas=null)}t.CanvasGraphics=C;for(const k in r.OPS)void 0!==C.prototype[k]&&(C.prototype[r.OPS[k]]=C.prototype[k])},(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.TilingPattern=t.PathType=void 0,t.getShadingPattern=function(e){switch(e[0]){case"RadialAxial":return new l(e);case"Mesh":return new d(e);case"Dummy":return new h}throw new Error("Unknown IR type: ".concat(e[0]))};var r=n(1),i=n(6);const o={FILL:"Fill",STROKE:"Stroke",SHADING:"Shading"};function s(e,t){if(!t)return;const n=t[2]-t[0],r=t[3]-t[1],i=new Path2D;i.rect(t[0],t[1],n,r),e.clip(i)}t.PathType=o;class a{constructor(){this.constructor===a&&(0,r.unreachable)("Cannot initialize BaseShadingPattern.")}getPattern(){(0,r.unreachable)("Abstract method `getPattern` called.")}}class l extends a{constructor(e){super(),this._type=e[1],this._bbox=e[2],this._colorStops=e[3],this._p0=e[4],this._p1=e[5],this._r0=e[6],this._r1=e[7],this.matrix=null}_createGradient(e){let t;"axial"===this._type?t=e.createLinearGradient(this._p0[0],this._p0[1],this._p1[0],this._p1[1]):"radial"===this._type&&(t=e.createRadialGradient(this._p0[0],this._p0[1],this._r0,this._p1[0],this._p1[1],this._r1));for(const n of this._colorStops)t.addColorStop(n[0],n[1]);return t}getPattern(e,t,n,a){let l;if(a===o.STROKE||a===o.FILL){const o=t.current.getClippedPathBoundingBox(a,(0,i.getCurrentTransform)(e))||[0,0,0,0],c=Math.ceil(o[2]-o[0])||1,u=Math.ceil(o[3]-o[1])||1,d=t.cachedCanvases.getCanvas("pattern",c,u,!0),h=d.context;h.clearRect(0,0,h.canvas.width,h.canvas.height),h.beginPath(),h.rect(0,0,h.canvas.width,h.canvas.height),h.translate(-o[0],-o[1]),n=r.Util.transform(n,[1,0,0,1,o[0],o[1]]),h.transform(...t.baseTransform),this.matrix&&h.transform(...this.matrix),s(h,this._bbox),h.fillStyle=this._createGradient(h),h.fill(),l=e.createPattern(d.canvas,"no-repeat");const p=new DOMMatrix(n);l.setTransform(p)}else s(e,this._bbox),l=this._createGradient(e);return l}}function c(e,t,n,r,i,o,s,a){const l=t.coords,c=t.colors,u=e.data,d=4*e.width;let h;l[n+1]>l[r+1]&&(h=n,n=r,r=h,h=o,o=s,s=h),l[r+1]>l[i+1]&&(h=r,r=i,i=h,h=s,s=a,a=h),l[n+1]>l[r+1]&&(h=n,n=r,r=h,h=o,o=s,s=h);const p=(l[n]+t.offsetX)*t.scaleX,f=(l[n+1]+t.offsetY)*t.scaleY,g=(l[r]+t.offsetX)*t.scaleX,m=(l[r+1]+t.offsetY)*t.scaleY,y=(l[i]+t.offsetX)*t.scaleX,v=(l[i+1]+t.offsetY)*t.scaleY;if(f>=v)return;const _=c[o],b=c[o+1],x=c[o+2],S=c[s],w=c[s+1],E=c[s+2],P=c[a],C=c[a+1],A=c[a+2],k=Math.round(f),j=Math.round(v);let I,G,T,M,O,R,D,N;for(let L=k;L<=j;L++){if(L<m){let e;e=L<f?0:(f-L)/(f-m),I=p-(p-g)*e,G=_-(_-S)*e,T=b-(b-w)*e,M=x-(x-E)*e}else{let e;e=L>v?1:m===v?0:(m-L)/(m-v),I=g-(g-y)*e,G=S-(S-P)*e,T=w-(w-C)*e,M=E-(E-A)*e}let e;e=L<f?0:L>v?1:(f-L)/(f-v),O=p-(p-y)*e,R=_-(_-P)*e,D=b-(b-C)*e,N=x-(x-A)*e;const t=Math.round(Math.min(I,O)),n=Math.round(Math.max(I,O));let r=d*L+4*t;for(let i=t;i<=n;i++)e=(I-i)/(I-O),e<0?e=0:e>1&&(e=1),u[r++]=G-(G-R)*e|0,u[r++]=T-(T-D)*e|0,u[r++]=M-(M-N)*e|0,u[r++]=255}}function u(e,t,n){const r=t.coords,i=t.colors;let o,s;switch(t.type){case"lattice":const a=t.verticesPerRow,l=Math.floor(r.length/a)-1,u=a-1;for(o=0;o<l;o++){let t=o*a;for(let o=0;o<u;o++,t++)c(e,n,r[t],r[t+1],r[t+a],i[t],i[t+1],i[t+a]),c(e,n,r[t+a+1],r[t+1],r[t+a],i[t+a+1],i[t+1],i[t+a])}break;case"triangles":for(o=0,s=r.length;o<s;o+=3)c(e,n,r[o],r[o+1],r[o+2],i[o],i[o+1],i[o+2]);break;default:throw new Error("illegal figure")}}class d extends a{constructor(e){super(),this._coords=e[2],this._colors=e[3],this._figures=e[4],this._bounds=e[5],this._bbox=e[7],this._background=e[8],this.matrix=null}_createMeshCanvas(e,t,n){const r=Math.floor(this._bounds[0]),i=Math.floor(this._bounds[1]),o=Math.ceil(this._bounds[2])-r,s=Math.ceil(this._bounds[3])-i,a=Math.min(Math.ceil(Math.abs(o*e[0]*1.1)),3e3),l=Math.min(Math.ceil(Math.abs(s*e[1]*1.1)),3e3),c=o/a,d=s/l,h={coords:this._coords,colors:this._colors,offsetX:-r,offsetY:-i,scaleX:1/c,scaleY:1/d},p=a+4,f=l+4,g=n.getCanvas("mesh",p,f,!1),m=g.context,y=m.createImageData(a,l);if(t){const e=y.data;for(let n=0,r=e.length;n<r;n+=4)e[n]=t[0],e[n+1]=t[1],e[n+2]=t[2],e[n+3]=255}for(const v of this._figures)u(y,v,h);return m.putImageData(y,2,2),{canvas:g.canvas,offsetX:r-2*c,offsetY:i-2*d,scaleX:c,scaleY:d}}getPattern(e,t,n,a){let l;if(s(e,this._bbox),a===o.SHADING)l=r.Util.singularValueDecompose2dScale((0,i.getCurrentTransform)(e));else if(l=r.Util.singularValueDecompose2dScale(t.baseTransform),this.matrix){const e=r.Util.singularValueDecompose2dScale(this.matrix);l=[l[0]*e[0],l[1]*e[1]]}const c=this._createMeshCanvas(l,a===o.SHADING?null:this._background,t.cachedCanvases);return a!==o.SHADING&&(e.setTransform(...t.baseTransform),this.matrix&&e.transform(...this.matrix)),e.translate(c.offsetX,c.offsetY),e.scale(c.scaleX,c.scaleY),e.createPattern(c.canvas,"no-repeat")}}class h extends a{getPattern(){return"hotpink"}}const p=1,f=2;class g{static get MAX_PATTERN_SIZE(){return(0,r.shadow)(this,"MAX_PATTERN_SIZE",3e3)}constructor(e,t,n,r,i){this.operatorList=e[2],this.matrix=e[3]||[1,0,0,1,0,0],this.bbox=e[4],this.xstep=e[5],this.ystep=e[6],this.paintType=e[7],this.tilingType=e[8],this.color=t,this.ctx=n,this.canvasGraphicsFactory=r,this.baseTransform=i}createPatternCanvas(e){const t=this.operatorList,n=this.bbox,o=this.xstep,s=this.ystep,a=this.paintType,l=this.tilingType,c=this.color,u=this.canvasGraphicsFactory;(0,r.info)("TilingType: "+l);const d=n[0],h=n[1],p=n[2],f=n[3],g=r.Util.singularValueDecompose2dScale(this.matrix),m=r.Util.singularValueDecompose2dScale(this.baseTransform),y=[g[0]*m[0],g[1]*m[1]],v=this.getSizeAndScale(o,this.ctx.canvas.width,y[0]),_=this.getSizeAndScale(s,this.ctx.canvas.height,y[1]),b=e.cachedCanvases.getCanvas("pattern",v.size,_.size,!0),x=b.context,S=u.createCanvasGraphics(x);S.groupLevel=e.groupLevel,this.setFillAndStrokeStyleToContext(S,a,c);let w=d,E=h,P=p,C=f;return d<0&&(w=0,P+=Math.abs(d)),h<0&&(E=0,C+=Math.abs(h)),x.translate(-v.scale*w,-_.scale*E),S.transform(v.scale,0,0,_.scale,0,0),x.save(),this.clipBbox(S,w,E,P,C),S.baseTransform=(0,i.getCurrentTransform)(S.ctx),S.executeOperatorList(t),S.endDrawing(),{canvas:b.canvas,scaleX:v.scale,scaleY:_.scale,offsetX:w,offsetY:E}}getSizeAndScale(e,t,n){e=Math.abs(e);const r=Math.max(g.MAX_PATTERN_SIZE,t);let i=Math.ceil(e*n);return i>=r?i=r:n=i/e,{scale:n,size:i}}clipBbox(e,t,n,r,o){const s=r-t,a=o-n;e.ctx.rect(t,n,s,a),e.current.updateRectMinMax((0,i.getCurrentTransform)(e.ctx),[t,n,r,o]),e.clip(),e.endPath()}setFillAndStrokeStyleToContext(e,t,n){const i=e.ctx,o=e.current;switch(t){case p:const e=this.ctx;i.fillStyle=e.fillStyle,i.strokeStyle=e.strokeStyle,o.fillColor=e.fillStyle,o.strokeColor=e.strokeStyle;break;case f:const s=r.Util.makeHexColor(n[0],n[1],n[2]);i.fillStyle=s,i.strokeStyle=s,o.fillColor=s,o.strokeColor=s;break;default:throw new r.FormatError("Unsupported paint type: ".concat(t))}}getPattern(e,t,n,i){let s=n;i!==o.SHADING&&(s=r.Util.transform(s,t.baseTransform),this.matrix&&(s=r.Util.transform(s,this.matrix)));const a=this.createPatternCanvas(t);let l=new DOMMatrix(s);l=l.translate(a.offsetX,a.offsetY),l=l.scale(1/a.scaleX,1/a.scaleY);const c=e.createPattern(a.canvas,"repeat");return c.setTransform(l),c}}t.TilingPattern=g},(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.applyMaskImageData=function(e){let{src:t,srcPos:n=0,dest:i,destPos:o=0,width:s,height:a,inverseDecode:l=!1}=e;const c=r.FeatureTest.isLittleEndian?4278190080:255,[u,d]=l?[0,c]:[c,0],h=s>>3,p=7&s,f=t.length;i=new Uint32Array(i.buffer);for(let r=0;r<a;r++){for(const r=n+h;n<r;n++){const e=n<f?t[n]:255;i[o++]=128&e?d:u,i[o++]=64&e?d:u,i[o++]=32&e?d:u,i[o++]=16&e?d:u,i[o++]=8&e?d:u,i[o++]=4&e?d:u,i[o++]=2&e?d:u,i[o++]=1&e?d:u}if(0===p)continue;const e=n<f?t[n++]:255;for(let t=0;t<p;t++)i[o++]=e&1<<7-t?d:u}return{srcPos:n,destPos:o}};var r=n(1)},(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.GlobalWorkerOptions=void 0;const n=Object.create(null);t.GlobalWorkerOptions=n,n.workerPort=null,n.workerSrc=""},(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.MessageHandler=void 0;var r=n(1);const i=1,o=2,s=1,a=2,l=3,c=4,u=5,d=6,h=7,p=8;function f(e){switch(e instanceof Error||"object"===typeof e&&null!==e||(0,r.unreachable)('wrapReason: Expected "reason" to be a (possibly cloned) Error.'),e.name){case"AbortException":return new r.AbortException(e.message);case"MissingPDFException":return new r.MissingPDFException(e.message);case"PasswordException":return new r.PasswordException(e.message,e.code);case"UnexpectedResponseException":return new r.UnexpectedResponseException(e.message,e.status);case"UnknownErrorException":return new r.UnknownErrorException(e.message,e.details);default:return new r.UnknownErrorException(e.message,e.toString())}}t.MessageHandler=class{constructor(e,t,n){this.sourceName=e,this.targetName=t,this.comObj=n,this.callbackId=1,this.streamId=1,this.streamSinks=Object.create(null),this.streamControllers=Object.create(null),this.callbackCapabilities=Object.create(null),this.actionHandler=Object.create(null),this._onComObjOnMessage=e=>{const t=e.data;if(t.targetName!==this.sourceName)return;if(t.stream)return void this._processStreamMessage(t);if(t.callback){const e=t.callbackId,n=this.callbackCapabilities[e];if(!n)throw new Error("Cannot resolve callback ".concat(e));if(delete this.callbackCapabilities[e],t.callback===i)n.resolve(t.data);else{if(t.callback!==o)throw new Error("Unexpected callback case");n.reject(f(t.reason))}return}const r=this.actionHandler[t.action];if(!r)throw new Error("Unknown action from worker: ".concat(t.action));if(t.callbackId){const e=this.sourceName,s=t.sourceName;new Promise((function(e){e(r(t.data))})).then((function(r){n.postMessage({sourceName:e,targetName:s,callback:i,callbackId:t.callbackId,data:r})}),(function(r){n.postMessage({sourceName:e,targetName:s,callback:o,callbackId:t.callbackId,reason:f(r)})}))}else t.streamId?this._createStreamSink(t):r(t.data)},n.addEventListener("message",this._onComObjOnMessage)}on(e,t){const n=this.actionHandler;if(n[e])throw new Error('There is already an actionName called "'.concat(e,'"'));n[e]=t}send(e,t,n){this.comObj.postMessage({sourceName:this.sourceName,targetName:this.targetName,action:e,data:t},n)}sendWithPromise(e,t,n){const i=this.callbackId++,o=(0,r.createPromiseCapability)();this.callbackCapabilities[i]=o;try{this.comObj.postMessage({sourceName:this.sourceName,targetName:this.targetName,action:e,callbackId:i,data:t},n)}catch(s){o.reject(s)}return o.promise}sendWithStream(e,t,n,i){const o=this.streamId++,a=this.sourceName,l=this.targetName,c=this.comObj;return new ReadableStream({start:n=>{const s=(0,r.createPromiseCapability)();return this.streamControllers[o]={controller:n,startCall:s,pullCall:null,cancelCall:null,isClosed:!1},c.postMessage({sourceName:a,targetName:l,action:e,streamId:o,data:t,desiredSize:n.desiredSize},i),s.promise},pull:e=>{const t=(0,r.createPromiseCapability)();return this.streamControllers[o].pullCall=t,c.postMessage({sourceName:a,targetName:l,stream:d,streamId:o,desiredSize:e.desiredSize}),t.promise},cancel:e=>{(0,r.assert)(e instanceof Error,"cancel must have a valid reason");const t=(0,r.createPromiseCapability)();return this.streamControllers[o].cancelCall=t,this.streamControllers[o].isClosed=!0,c.postMessage({sourceName:a,targetName:l,stream:s,streamId:o,reason:f(e)}),t.promise}},n)}_createStreamSink(e){const t=e.streamId,n=this.sourceName,i=e.sourceName,o=this.comObj,s=this,a=this.actionHandler[e.action],d={enqueue(e){let s=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1,a=arguments.length>2?arguments[2]:void 0;if(this.isCancelled)return;const l=this.desiredSize;this.desiredSize-=s,l>0&&this.desiredSize<=0&&(this.sinkCapability=(0,r.createPromiseCapability)(),this.ready=this.sinkCapability.promise),o.postMessage({sourceName:n,targetName:i,stream:c,streamId:t,chunk:e},a)},close(){this.isCancelled||(this.isCancelled=!0,o.postMessage({sourceName:n,targetName:i,stream:l,streamId:t}),delete s.streamSinks[t])},error(e){(0,r.assert)(e instanceof Error,"error must have a valid reason"),this.isCancelled||(this.isCancelled=!0,o.postMessage({sourceName:n,targetName:i,stream:u,streamId:t,reason:f(e)}))},sinkCapability:(0,r.createPromiseCapability)(),onPull:null,onCancel:null,isCancelled:!1,desiredSize:e.desiredSize,ready:null};d.sinkCapability.resolve(),d.ready=d.sinkCapability.promise,this.streamSinks[t]=d,new Promise((function(t){t(a(e.data,d))})).then((function(){o.postMessage({sourceName:n,targetName:i,stream:p,streamId:t,success:!0})}),(function(e){o.postMessage({sourceName:n,targetName:i,stream:p,streamId:t,reason:f(e)})}))}_processStreamMessage(e){const t=e.streamId,n=this.sourceName,i=e.sourceName,o=this.comObj,g=this.streamControllers[t],m=this.streamSinks[t];switch(e.stream){case p:e.success?g.startCall.resolve():g.startCall.reject(f(e.reason));break;case h:e.success?g.pullCall.resolve():g.pullCall.reject(f(e.reason));break;case d:if(!m){o.postMessage({sourceName:n,targetName:i,stream:h,streamId:t,success:!0});break}m.desiredSize<=0&&e.desiredSize>0&&m.sinkCapability.resolve(),m.desiredSize=e.desiredSize,new Promise((function(e){e(m.onPull&&m.onPull())})).then((function(){o.postMessage({sourceName:n,targetName:i,stream:h,streamId:t,success:!0})}),(function(e){o.postMessage({sourceName:n,targetName:i,stream:h,streamId:t,reason:f(e)})}));break;case c:if((0,r.assert)(g,"enqueue should have stream controller"),g.isClosed)break;g.controller.enqueue(e.chunk);break;case l:if((0,r.assert)(g,"close should have stream controller"),g.isClosed)break;g.isClosed=!0,g.controller.close(),this._deleteStreamController(g,t);break;case u:(0,r.assert)(g,"error should have stream controller"),g.controller.error(f(e.reason)),this._deleteStreamController(g,t);break;case a:e.success?g.cancelCall.resolve():g.cancelCall.reject(f(e.reason)),this._deleteStreamController(g,t);break;case s:if(!m)break;new Promise((function(t){t(m.onCancel&&m.onCancel(f(e.reason)))})).then((function(){o.postMessage({sourceName:n,targetName:i,stream:a,streamId:t,success:!0})}),(function(e){o.postMessage({sourceName:n,targetName:i,stream:a,streamId:t,reason:f(e)})})),m.sinkCapability.reject(f(e.reason)),m.isCancelled=!0,delete this.streamSinks[t];break;default:throw new Error("Unexpected stream case")}}async _deleteStreamController(e,t){await Promise.allSettled([e.startCall&&e.startCall.promise,e.pullCall&&e.pullCall.promise,e.cancelCall&&e.cancelCall.promise]),delete this.streamControllers[t]}destroy(){this.comObj.removeEventListener("message",this._onComObjOnMessage)}}},(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.Metadata=void 0;var r=n(1),i=new WeakMap,o=new WeakMap;t.Metadata=class{constructor(e){let{parsedData:t,rawData:n}=e;_classPrivateFieldInitSpec(this,i,{writable:!0,value:void 0}),_classPrivateFieldInitSpec(this,o,{writable:!0,value:void 0}),_classPrivateFieldSet(this,i,t),_classPrivateFieldSet(this,o,n)}getRaw(){return _classPrivateFieldGet(this,o)}get(e){var t;return null!==(t=_classPrivateFieldGet(this,i).get(e))&&void 0!==t?t:null}getAll(){return(0,r.objectFromMap)(_classPrivateFieldGet(this,i))}has(e){return _classPrivateFieldGet(this,i).has(e)}}},(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.OptionalContentConfig=void 0;var r=n(1),i=n(8);const o=Symbol("INTERNAL");var s=new WeakMap;class a{constructor(e,t){_classPrivateFieldInitSpec(this,s,{writable:!0,value:!0}),this.name=e,this.intent=t}get visible(){return _classPrivateFieldGet(this,s)}_setVisible(e,t){e!==o&&(0,r.unreachable)("Internal method `_setVisible` called."),_classPrivateFieldSet(this,s,t)}}var l=new WeakMap,c=new WeakMap,u=new WeakMap,d=new WeakMap,h=new WeakSet;function p(e){const t=e.length;if(t<2)return!0;const n=e[0];for(let i=1;i<t;i++){const t=e[i];let o;if(Array.isArray(t))o=_classPrivateMethodGet(this,h,p).call(this,t);else{if(!_classPrivateFieldGet(this,c).has(t))return(0,r.warn)("Optional content group not found: ".concat(t)),!0;o=_classPrivateFieldGet(this,c).get(t).visible}switch(n){case"And":if(!o)return!1;break;case"Or":if(o)return!0;break;case"Not":return!o;default:return!0}}return"And"===n}t.OptionalContentConfig=class{constructor(e){if(_classPrivateMethodInitSpec(this,h),_classPrivateFieldInitSpec(this,l,{writable:!0,value:null}),_classPrivateFieldInitSpec(this,c,{writable:!0,value:new Map}),_classPrivateFieldInitSpec(this,u,{writable:!0,value:null}),_classPrivateFieldInitSpec(this,d,{writable:!0,value:null}),this.name=null,this.creator=null,null!==e){this.name=e.name,this.creator=e.creator,_classPrivateFieldSet(this,d,e.order);for(const t of e.groups)_classPrivateFieldGet(this,c).set(t.id,new a(t.name,t.intent));if("OFF"===e.baseState)for(const e of _classPrivateFieldGet(this,c).values())e._setVisible(o,!1);for(const t of e.on)_classPrivateFieldGet(this,c).get(t)._setVisible(o,!0);for(const t of e.off)_classPrivateFieldGet(this,c).get(t)._setVisible(o,!1);_classPrivateFieldSet(this,u,this.getHash())}}isVisible(e){if(0===_classPrivateFieldGet(this,c).size)return!0;if(!e)return(0,r.warn)("Optional content group not defined."),!0;if("OCG"===e.type)return _classPrivateFieldGet(this,c).has(e.id)?_classPrivateFieldGet(this,c).get(e.id).visible:((0,r.warn)("Optional content group not found: ".concat(e.id)),!0);if("OCMD"===e.type){if(e.expression)return _classPrivateMethodGet(this,h,p).call(this,e.expression);if(!e.policy||"AnyOn"===e.policy){for(const t of e.ids){if(!_classPrivateFieldGet(this,c).has(t))return(0,r.warn)("Optional content group not found: ".concat(t)),!0;if(_classPrivateFieldGet(this,c).get(t).visible)return!0}return!1}if("AllOn"===e.policy){for(const t of e.ids){if(!_classPrivateFieldGet(this,c).has(t))return(0,r.warn)("Optional content group not found: ".concat(t)),!0;if(!_classPrivateFieldGet(this,c).get(t).visible)return!1}return!0}if("AnyOff"===e.policy){for(const t of e.ids){if(!_classPrivateFieldGet(this,c).has(t))return(0,r.warn)("Optional content group not found: ".concat(t)),!0;if(!_classPrivateFieldGet(this,c).get(t).visible)return!0}return!1}if("AllOff"===e.policy){for(const t of e.ids){if(!_classPrivateFieldGet(this,c).has(t))return(0,r.warn)("Optional content group not found: ".concat(t)),!0;if(_classPrivateFieldGet(this,c).get(t).visible)return!1}return!0}return(0,r.warn)("Unknown optional content policy ".concat(e.policy,".")),!0}return(0,r.warn)("Unknown group type ".concat(e.type,".")),!0}setVisibility(e){let t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];_classPrivateFieldGet(this,c).has(e)?(_classPrivateFieldGet(this,c).get(e)._setVisible(o,!!t),_classPrivateFieldSet(this,l,null)):(0,r.warn)("Optional content group not found: ".concat(e))}get hasInitialVisibility(){return this.getHash()===_classPrivateFieldGet(this,u)}getOrder(){return _classPrivateFieldGet(this,c).size?_classPrivateFieldGet(this,d)?_classPrivateFieldGet(this,d).slice():[..._classPrivateFieldGet(this,c).keys()]:null}getGroups(){return _classPrivateFieldGet(this,c).size>0?(0,r.objectFromMap)(_classPrivateFieldGet(this,c)):null}getGroup(e){return _classPrivateFieldGet(this,c).get(e)||null}getHash(){if(null!==_classPrivateFieldGet(this,l))return _classPrivateFieldGet(this,l);const e=new i.MurmurHash3_64;for(const[t,n]of _classPrivateFieldGet(this,c))e.update("".concat(t,":").concat(n.visible));return _classPrivateFieldSet(this,l,e.hexdigest())}}},(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.PDFDataTransportStream=void 0;var r=n(1),i=n(6);t.PDFDataTransportStream=class{constructor(e,t){let{length:n,initialData:i,progressiveDone:o=!1,contentDispositionFilename:s=null,disableRange:a=!1,disableStream:l=!1}=e;if((0,r.assert)(t,'PDFDataTransportStream - missing required "pdfDataRangeTransport" argument.'),this._queuedChunks=[],this._progressiveDone=o,this._contentDispositionFilename=s,(null===i||void 0===i?void 0:i.length)>0){const e=i instanceof Uint8Array&&i.byteLength===i.buffer.byteLength?i.buffer:new Uint8Array(i).buffer;this._queuedChunks.push(e)}this._pdfDataRangeTransport=t,this._isStreamingSupported=!l,this._isRangeSupported=!a,this._contentLength=n,this._fullRequestReader=null,this._rangeReaders=[],this._pdfDataRangeTransport.addRangeListener(((e,t)=>{this._onReceiveData({begin:e,chunk:t})})),this._pdfDataRangeTransport.addProgressListener(((e,t)=>{this._onProgress({loaded:e,total:t})})),this._pdfDataRangeTransport.addProgressiveReadListener((e=>{this._onReceiveData({chunk:e})})),this._pdfDataRangeTransport.addProgressiveDoneListener((()=>{this._onProgressiveDone()})),this._pdfDataRangeTransport.transportReady()}_onReceiveData(e){let{begin:t,chunk:n}=e;const i=n instanceof Uint8Array&&n.byteLength===n.buffer.byteLength?n.buffer:new Uint8Array(n).buffer;if(void 0===t)this._fullRequestReader?this._fullRequestReader._enqueue(i):this._queuedChunks.push(i);else{const e=this._rangeReaders.some((function(e){return e._begin===t&&(e._enqueue(i),!0)}));(0,r.assert)(e,"_onReceiveData - no `PDFDataTransportStreamRangeReader` instance found.")}}get _progressiveDataLength(){var e,t;return null!==(e=null===(t=this._fullRequestReader)||void 0===t?void 0:t._loaded)&&void 0!==e?e:0}_onProgress(e){var t,n,r,i;void 0===e.total?null===(t=this._rangeReaders[0])||void 0===t||null===(n=t.onProgress)||void 0===n||n.call(t,{loaded:e.loaded}):null===(r=this._fullRequestReader)||void 0===r||null===(i=r.onProgress)||void 0===i||i.call(r,{loaded:e.loaded,total:e.total})}_onProgressiveDone(){var e;null===(e=this._fullRequestReader)||void 0===e||e.progressiveDone(),this._progressiveDone=!0}_removeRangeReader(e){const t=this._rangeReaders.indexOf(e);t>=0&&this._rangeReaders.splice(t,1)}getFullReader(){(0,r.assert)(!this._fullRequestReader,"PDFDataTransportStream.getFullReader can only be called once.");const e=this._queuedChunks;return this._queuedChunks=null,new o(this,e,this._progressiveDone,this._contentDispositionFilename)}getRangeReader(e,t){if(t<=this._progressiveDataLength)return null;const n=new s(this,e,t);return this._pdfDataRangeTransport.requestDataRange(e,t),this._rangeReaders.push(n),n}cancelAllRequests(e){var t;null===(t=this._fullRequestReader)||void 0===t||t.cancel(e);for(const n of this._rangeReaders.slice(0))n.cancel(e);this._pdfDataRangeTransport.abort()}};class o{constructor(e,t){let n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null;this._stream=e,this._done=n||!1,this._filename=(0,i.isPdfFile)(r)?r:null,this._queuedChunks=t||[],this._loaded=0;for(const i of this._queuedChunks)this._loaded+=i.byteLength;this._requests=[],this._headersReady=Promise.resolve(),e._fullRequestReader=this,this.onProgress=null}_enqueue(e){this._done||(this._requests.length>0?this._requests.shift().resolve({value:e,done:!1}):this._queuedChunks.push(e),this._loaded+=e.byteLength)}get headersReady(){return this._headersReady}get filename(){return this._filename}get isRangeSupported(){return this._stream._isRangeSupported}get isStreamingSupported(){return this._stream._isStreamingSupported}get contentLength(){return this._stream._contentLength}async read(){if(this._queuedChunks.length>0)return{value:this._queuedChunks.shift(),done:!1};if(this._done)return{value:void 0,done:!0};const e=(0,r.createPromiseCapability)();return this._requests.push(e),e.promise}cancel(e){this._done=!0;for(const t of this._requests)t.resolve({value:void 0,done:!0});this._requests.length=0}progressiveDone(){this._done||(this._done=!0)}}class s{constructor(e,t,n){this._stream=e,this._begin=t,this._end=n,this._queuedChunk=null,this._requests=[],this._done=!1,this.onProgress=null}_enqueue(e){if(!this._done){if(0===this._requests.length)this._queuedChunk=e;else{this._requests.shift().resolve({value:e,done:!1});for(const e of this._requests)e.resolve({value:void 0,done:!0});this._requests.length=0}this._done=!0,this._stream._removeRangeReader(this)}}get isStreamingSupported(){return!1}async read(){if(this._queuedChunk){const e=this._queuedChunk;return this._queuedChunk=null,{value:e,done:!1}}if(this._done)return{value:void 0,done:!0};const e=(0,r.createPromiseCapability)();return this._requests.push(e),e.promise}cancel(e){this._done=!0;for(const t of this._requests)t.resolve({value:void 0,done:!0});this._requests.length=0,this._stream._removeRangeReader(this)}}},(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.XfaText=void 0;class n{static textContent(e){const t=[],r={items:t,styles:Object.create(null)};return function e(r){var i;if(!r)return;let o=null;const s=r.name;if("#text"===s)o=r.value;else{if(!n.shouldBuildText(s))return;null!==r&&void 0!==r&&null!==(i=r.attributes)&&void 0!==i&&i.textContent?o=r.attributes.textContent:r.value&&(o=r.value)}if(null!==o&&t.push({str:o}),r.children)for(const t of r.children)e(t)}(e),r}static shouldBuildText(e){return!("textarea"===e||"input"===e||"option"===e||"select"===e)}}t.XfaText=n},(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.NodeStandardFontDataFactory=t.NodeCanvasFactory=t.NodeCMapReaderFactory=void 0;var r=n(7);const i=function(e){return new Promise(((t,n)=>{__webpack_require__(45344).readFile(e,((e,r)=>{!e&&r?t(new Uint8Array(r)):n(new Error(e))}))}))};class o extends r.BaseCanvasFactory{_createCanvas(e,t){return __webpack_require__(22892).createCanvas(e,t)}}t.NodeCanvasFactory=o;class s extends r.BaseCMapReaderFactory{_fetchData(e,t){return i(e).then((e=>({cMapData:e,compressionType:t})))}}t.NodeCMapReaderFactory=s;class a extends r.BaseStandardFontDataFactory{_fetchData(e){return i(e)}}t.NodeStandardFontDataFactory=a},(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.PDFNodeStream=void 0;var r=n(1),i=n(22);const o=__webpack_require__(45344),s=__webpack_require__(10440),a=__webpack_require__(22224),l=__webpack_require__(65724),c=/^file:\/\/\/[a-zA-Z]:\//;t.PDFNodeStream=class{constructor(e){this.source=e,this.url=function(e){const t=l.parse(e);return"file:"===t.protocol||t.host?t:/^[a-z]:[/\\]/i.test(e)?l.parse("file:///".concat(e)):(t.host||(t.protocol="file:"),t)}(e.url),this.isHttp="http:"===this.url.protocol||"https:"===this.url.protocol,this.isFsUrl="file:"===this.url.protocol,this.httpHeaders=this.isHttp&&e.httpHeaders||{},this._fullRequestReader=null,this._rangeRequestReaders=[]}get _progressiveDataLength(){var e,t;return null!==(e=null===(t=this._fullRequestReader)||void 0===t?void 0:t._loaded)&&void 0!==e?e:0}getFullReader(){return(0,r.assert)(!this._fullRequestReader,"PDFNodeStream.getFullReader can only be called once."),this._fullRequestReader=this.isFsUrl?new g(this):new p(this),this._fullRequestReader}getRangeReader(e,t){if(t<=this._progressiveDataLength)return null;const n=this.isFsUrl?new m(this,e,t):new f(this,e,t);return this._rangeRequestReaders.push(n),n}cancelAllRequests(e){var t;null===(t=this._fullRequestReader)||void 0===t||t.cancel(e);for(const n of this._rangeRequestReaders.slice(0))n.cancel(e)}};class u{constructor(e){this._url=e.url,this._done=!1,this._storedError=null,this.onProgress=null;const t=e.source;this._contentLength=t.length,this._loaded=0,this._filename=null,this._disableRange=t.disableRange||!1,this._rangeChunkSize=t.rangeChunkSize,this._rangeChunkSize||this._disableRange||(this._disableRange=!0),this._isStreamingSupported=!t.disableStream,this._isRangeSupported=!t.disableRange,this._readableStream=null,this._readCapability=(0,r.createPromiseCapability)(),this._headersCapability=(0,r.createPromiseCapability)()}get headersReady(){return this._headersCapability.promise}get filename(){return this._filename}get contentLength(){return this._contentLength}get isRangeSupported(){return this._isRangeSupported}get isStreamingSupported(){return this._isStreamingSupported}async read(){var e;if(await this._readCapability.promise,this._done)return{value:void 0,done:!0};if(this._storedError)throw this._storedError;const t=this._readableStream.read();return null===t?(this._readCapability=(0,r.createPromiseCapability)(),this.read()):(this._loaded+=t.length,null===(e=this.onProgress)||void 0===e||e.call(this,{loaded:this._loaded,total:this._contentLength}),{value:new Uint8Array(t).buffer,done:!1})}cancel(e){this._readableStream?this._readableStream.destroy(e):this._error(e)}_error(e){this._storedError=e,this._readCapability.resolve()}_setReadableStream(e){this._readableStream=e,e.on("readable",(()=>{this._readCapability.resolve()})),e.on("end",(()=>{e.destroy(),this._done=!0,this._readCapability.resolve()})),e.on("error",(e=>{this._error(e)})),!this._isStreamingSupported&&this._isRangeSupported&&this._error(new r.AbortException("streaming is disabled")),this._storedError&&this._readableStream.destroy(this._storedError)}}class d{constructor(e){this._url=e.url,this._done=!1,this._storedError=null,this.onProgress=null,this._loaded=0,this._readableStream=null,this._readCapability=(0,r.createPromiseCapability)();const t=e.source;this._isStreamingSupported=!t.disableStream}get isStreamingSupported(){return this._isStreamingSupported}async read(){var e;if(await this._readCapability.promise,this._done)return{value:void 0,done:!0};if(this._storedError)throw this._storedError;const t=this._readableStream.read();return null===t?(this._readCapability=(0,r.createPromiseCapability)(),this.read()):(this._loaded+=t.length,null===(e=this.onProgress)||void 0===e||e.call(this,{loaded:this._loaded}),{value:new Uint8Array(t).buffer,done:!1})}cancel(e){this._readableStream?this._readableStream.destroy(e):this._error(e)}_error(e){this._storedError=e,this._readCapability.resolve()}_setReadableStream(e){this._readableStream=e,e.on("readable",(()=>{this._readCapability.resolve()})),e.on("end",(()=>{e.destroy(),this._done=!0,this._readCapability.resolve()})),e.on("error",(e=>{this._error(e)})),this._storedError&&this._readableStream.destroy(this._storedError)}}function h(e,t){return{protocol:e.protocol,auth:e.auth,host:e.hostname,port:e.port,path:e.path,method:"GET",headers:t}}class p extends u{constructor(e){super(e);const t=t=>{if(404===t.statusCode){const e=new r.MissingPDFException('Missing PDF "'.concat(this._url,'".'));return this._storedError=e,void this._headersCapability.reject(e)}this._headersCapability.resolve(),this._setReadableStream(t);const n=e=>this._readableStream.headers[e.toLowerCase()],{allowRangeRequests:o,suggestedLength:s}=(0,i.validateRangeRequestCapabilities)({getResponseHeader:n,isHttp:e.isHttp,rangeChunkSize:this._rangeChunkSize,disableRange:this._disableRange});this._isRangeSupported=o,this._contentLength=s||this._contentLength,this._filename=(0,i.extractFilenameFromHeader)(n)};this._request=null,"http:"===this._url.protocol?this._request=s.request(h(this._url,e.httpHeaders),t):this._request=a.request(h(this._url,e.httpHeaders),t),this._request.on("error",(e=>{this._storedError=e,this._headersCapability.reject(e)})),this._request.end()}}class f extends d{constructor(e,t,n){super(e),this._httpHeaders={};for(const r in e.httpHeaders){const t=e.httpHeaders[r];void 0!==t&&(this._httpHeaders[r]=t)}this._httpHeaders.Range="bytes=".concat(t,"-").concat(n-1);const i=e=>{if(404!==e.statusCode)this._setReadableStream(e);else{const e=new r.MissingPDFException('Missing PDF "'.concat(this._url,'".'));this._storedError=e}};this._request=null,"http:"===this._url.protocol?this._request=s.request(h(this._url,this._httpHeaders),i):this._request=a.request(h(this._url,this._httpHeaders),i),this._request.on("error",(e=>{this._storedError=e})),this._request.end()}}class g extends u{constructor(e){super(e);let t=decodeURIComponent(this._url.path);c.test(this._url.href)&&(t=t.replace(/^\//,"")),o.lstat(t,((e,n)=>{if(e)return"ENOENT"===e.code&&(e=new r.MissingPDFException('Missing PDF "'.concat(t,'".'))),this._storedError=e,void this._headersCapability.reject(e);this._contentLength=n.size,this._setReadableStream(o.createReadStream(t)),this._headersCapability.resolve()}))}}class m extends d{constructor(e,t,n){super(e);let r=decodeURIComponent(this._url.path);c.test(this._url.href)&&(r=r.replace(/^\//,"")),this._setReadableStream(o.createReadStream(r,{start:t,end:n-1}))}}},(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.createResponseStatusError=function(e,t){return 404===e||0===e&&t.startsWith("file:")?new r.MissingPDFException('Missing PDF "'+t+'".'):new r.UnexpectedResponseException("Unexpected server response (".concat(e,') while retrieving PDF "').concat(t,'".'),e)},t.extractFilenameFromHeader=function(e){const t=e("Content-Disposition");if(t){let e=(0,i.getFilenameFromContentDispositionHeader)(t);if(e.includes("%"))try{e=decodeURIComponent(e)}catch(n){}if((0,o.isPdfFile)(e))return e}return null},t.validateRangeRequestCapabilities=function(e){let{getResponseHeader:t,isHttp:n,rangeChunkSize:r,disableRange:i}=e;const o={allowRangeRequests:!1,suggestedLength:void 0},s=parseInt(t("Content-Length"),10);return Number.isInteger(s)?(o.suggestedLength=s,s<=2*r||i||!n||"bytes"!==t("Accept-Ranges")||"identity"!==(t("Content-Encoding")||"identity")||(o.allowRangeRequests=!0),o):o},t.validateResponseStatus=function(e){return 200===e||206===e};var r=n(1),i=n(23),o=n(6)},(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.getFilenameFromContentDispositionHeader=function(e){let t=!0,n=i("filename\\*","i").exec(e);if(n){n=n[1];let e=a(n);return e=unescape(e),e=l(e),e=c(e),s(e)}if(n=function(e){const t=[];let n;const r=i("filename\\*((?!0\\d)\\d+)(\\*?)","ig");for(;null!==(n=r.exec(e));){let[,e,r,i]=n;if(e=parseInt(e,10),e in t){if(0===e)break}else t[e]=[r,i]}const o=[];for(let i=0;i<t.length&&i in t;++i){let[e,n]=t[i];n=a(n),e&&(n=unescape(n),0===i&&(n=l(n))),o.push(n)}return o.join("")}(e),n)return s(c(n));if(n=i("filename","i").exec(e),n){n=n[1];let e=a(n);return e=c(e),s(e)}function i(e,t){return new RegExp("(?:^|;)\\s*"+e+'\\s*=\\s*([^";\\s][^;\\s]*|"(?:[^"\\\\]|\\\\"?)+"?)',t)}function o(e,n){if(e){if(!/^[\x00-\xFF]+$/.test(n))return n;try{const i=new TextDecoder(e,{fatal:!0}),o=(0,r.stringToBytes)(n);n=i.decode(o),t=!1}catch(i){}}return n}function s(e){return t&&/[\x80-\xff]/.test(e)&&(e=o("utf-8",e),t&&(e=o("iso-8859-1",e))),e}function a(e){if(e.startsWith('"')){const t=e.slice(1).split('\\"');for(let e=0;e<t.length;++e){const n=t[e].indexOf('"');-1!==n&&(t[e]=t[e].slice(0,n),t.length=e+1),t[e]=t[e].replace(/\\(.)/g,"$1")}e=t.join('"')}return e}function l(e){const t=e.indexOf("'");return-1===t?e:o(e.slice(0,t),e.slice(t+1).replace(/^[^']*'/,""))}function c(e){return!e.startsWith("=?")||/[\x00-\x19\x80-\xff]/.test(e)?e:e.replace(/=\?([\w-]*)\?([QqBb])\?((?:[^?]|\?(?!=))*)\?=/g,(function(e,t,n,r){if("q"===n||"Q"===n)return o(t,r=(r=r.replace(/_/g," ")).replace(/=([0-9a-fA-F]{2})/g,(function(e,t){return String.fromCharCode(parseInt(t,16))})));try{r=atob(r)}catch(i){}return o(t,r)}))}return""};var r=n(1)},(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.PDFNetworkStream=void 0;var r=n(1),i=n(22);class o{constructor(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.url=e,this.isHttp=/^https?:/i.test(e),this.httpHeaders=this.isHttp&&t.httpHeaders||Object.create(null),this.withCredentials=t.withCredentials||!1,this.getXhr=t.getXhr||function(){return new XMLHttpRequest},this.currXhrId=0,this.pendingRequests=Object.create(null)}requestRange(e,t,n){const r={begin:e,end:t};for(const i in n)r[i]=n[i];return this.request(r)}requestFull(e){return this.request(e)}request(e){const t=this.getXhr(),n=this.currXhrId++,r=this.pendingRequests[n]={xhr:t};t.open("GET",this.url),t.withCredentials=this.withCredentials;for(const i in this.httpHeaders){const e=this.httpHeaders[i];void 0!==e&&t.setRequestHeader(i,e)}return this.isHttp&&"begin"in e&&"end"in e?(t.setRequestHeader("Range","bytes=".concat(e.begin,"-").concat(e.end-1)),r.expectedStatus=206):r.expectedStatus=200,t.responseType="arraybuffer",e.onError&&(t.onerror=function(n){e.onError(t.status)}),t.onreadystatechange=this.onStateChange.bind(this,n),t.onprogress=this.onProgress.bind(this,n),r.onHeadersReceived=e.onHeadersReceived,r.onDone=e.onDone,r.onError=e.onError,r.onProgress=e.onProgress,t.send(null),n}onProgress(e,t){var n;const r=this.pendingRequests[e];r&&(null===(n=r.onProgress)||void 0===n||n.call(r,t))}onStateChange(e,t){const n=this.pendingRequests[e];if(!n)return;const i=n.xhr;if(i.readyState>=2&&n.onHeadersReceived&&(n.onHeadersReceived(),delete n.onHeadersReceived),4!==i.readyState)return;if(!(e in this.pendingRequests))return;var o;if(delete this.pendingRequests[e],0===i.status&&this.isHttp)return void(null===(o=n.onError)||void 0===o||o.call(n,i.status));const s=i.status||200;var a;if((200!==s||206!==n.expectedStatus)&&s!==n.expectedStatus)return void(null===(a=n.onError)||void 0===a||a.call(n,i.status));const l=function(e){const t=e.response;return"string"!==typeof t?t:(0,r.stringToBytes)(t).buffer}(i);if(206===s){const e=i.getResponseHeader("Content-Range"),t=/bytes (\d+)-(\d+)\/(\d+)/.exec(e);n.onDone({begin:parseInt(t[1],10),chunk:l})}else if(l)n.onDone({begin:0,chunk:l});else{var c;null===(c=n.onError)||void 0===c||c.call(n,i.status)}}getRequestXhr(e){return this.pendingRequests[e].xhr}isPendingRequest(e){return e in this.pendingRequests}abortRequest(e){const t=this.pendingRequests[e].xhr;delete this.pendingRequests[e],t.abort()}}t.PDFNetworkStream=class{constructor(e){this._source=e,this._manager=new o(e.url,{httpHeaders:e.httpHeaders,withCredentials:e.withCredentials}),this._rangeChunkSize=e.rangeChunkSize,this._fullRequestReader=null,this._rangeRequestReaders=[]}_onRangeRequestReaderClosed(e){const t=this._rangeRequestReaders.indexOf(e);t>=0&&this._rangeRequestReaders.splice(t,1)}getFullReader(){return(0,r.assert)(!this._fullRequestReader,"PDFNetworkStream.getFullReader can only be called once."),this._fullRequestReader=new s(this._manager,this._source),this._fullRequestReader}getRangeReader(e,t){const n=new a(this._manager,e,t);return n.onClosed=this._onRangeRequestReaderClosed.bind(this),this._rangeRequestReaders.push(n),n}cancelAllRequests(e){var t;null===(t=this._fullRequestReader)||void 0===t||t.cancel(e);for(const n of this._rangeRequestReaders.slice(0))n.cancel(e)}};class s{constructor(e,t){this._manager=e;const n={onHeadersReceived:this._onHeadersReceived.bind(this),onDone:this._onDone.bind(this),onError:this._onError.bind(this),onProgress:this._onProgress.bind(this)};this._url=t.url,this._fullRequestId=e.requestFull(n),this._headersReceivedCapability=(0,r.createPromiseCapability)(),this._disableRange=t.disableRange||!1,this._contentLength=t.length,this._rangeChunkSize=t.rangeChunkSize,this._rangeChunkSize||this._disableRange||(this._disableRange=!0),this._isStreamingSupported=!1,this._isRangeSupported=!1,this._cachedChunks=[],this._requests=[],this._done=!1,this._storedError=void 0,this._filename=null,this.onProgress=null}_onHeadersReceived(){const e=this._fullRequestId,t=this._manager.getRequestXhr(e),n=e=>t.getResponseHeader(e),{allowRangeRequests:r,suggestedLength:o}=(0,i.validateRangeRequestCapabilities)({getResponseHeader:n,isHttp:this._manager.isHttp,rangeChunkSize:this._rangeChunkSize,disableRange:this._disableRange});r&&(this._isRangeSupported=!0),this._contentLength=o||this._contentLength,this._filename=(0,i.extractFilenameFromHeader)(n),this._isRangeSupported&&this._manager.abortRequest(e),this._headersReceivedCapability.resolve()}_onDone(e){if(e&&(this._requests.length>0?this._requests.shift().resolve({value:e.chunk,done:!1}):this._cachedChunks.push(e.chunk)),this._done=!0,!(this._cachedChunks.length>0)){for(const e of this._requests)e.resolve({value:void 0,done:!0});this._requests.length=0}}_onError(e){this._storedError=(0,i.createResponseStatusError)(e,this._url),this._headersReceivedCapability.reject(this._storedError);for(const t of this._requests)t.reject(this._storedError);this._requests.length=0,this._cachedChunks.length=0}_onProgress(e){var t;null===(t=this.onProgress)||void 0===t||t.call(this,{loaded:e.loaded,total:e.lengthComputable?e.total:this._contentLength})}get filename(){return this._filename}get isRangeSupported(){return this._isRangeSupported}get isStreamingSupported(){return this._isStreamingSupported}get contentLength(){return this._contentLength}get headersReady(){return this._headersReceivedCapability.promise}async read(){if(this._storedError)throw this._storedError;if(this._cachedChunks.length>0)return{value:this._cachedChunks.shift(),done:!1};if(this._done)return{value:void 0,done:!0};const e=(0,r.createPromiseCapability)();return this._requests.push(e),e.promise}cancel(e){this._done=!0,this._headersReceivedCapability.reject(e);for(const t of this._requests)t.resolve({value:void 0,done:!0});this._requests.length=0,this._manager.isPendingRequest(this._fullRequestId)&&this._manager.abortRequest(this._fullRequestId),this._fullRequestReader=null}}class a{constructor(e,t,n){this._manager=e;const r={onDone:this._onDone.bind(this),onError:this._onError.bind(this),onProgress:this._onProgress.bind(this)};this._url=e.url,this._requestId=e.requestRange(t,n,r),this._requests=[],this._queuedChunk=null,this._done=!1,this._storedError=void 0,this.onProgress=null,this.onClosed=null}_close(){var e;null===(e=this.onClosed)||void 0===e||e.call(this,this)}_onDone(e){const t=e.chunk;this._requests.length>0?this._requests.shift().resolve({value:t,done:!1}):this._queuedChunk=t,this._done=!0;for(const n of this._requests)n.resolve({value:void 0,done:!0});this._requests.length=0,this._close()}_onError(e){this._storedError=(0,i.createResponseStatusError)(e,this._url);for(const t of this._requests)t.reject(this._storedError);this._requests.length=0,this._queuedChunk=null}_onProgress(e){var t;this.isStreamingSupported||null===(t=this.onProgress)||void 0===t||t.call(this,{loaded:e.loaded})}get isStreamingSupported(){return!1}async read(){if(this._storedError)throw this._storedError;if(null!==this._queuedChunk){const e=this._queuedChunk;return this._queuedChunk=null,{value:e,done:!1}}if(this._done)return{value:void 0,done:!0};const e=(0,r.createPromiseCapability)();return this._requests.push(e),e.promise}cancel(e){this._done=!0;for(const t of this._requests)t.resolve({value:void 0,done:!0});this._requests.length=0,this._manager.isPendingRequest(this._requestId)&&this._manager.abortRequest(this._requestId),this._close()}}},(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.PDFFetchStream=void 0;var r=n(1),i=n(22);function o(e,t,n){return{method:"GET",headers:e,signal:n.signal,mode:"cors",credentials:t?"include":"same-origin",redirect:"follow"}}function s(e){const t=new Headers;for(const n in e){const r=e[n];void 0!==r&&t.append(n,r)}return t}function a(e){return e instanceof Uint8Array?e.buffer:e instanceof ArrayBuffer?e:((0,r.warn)("getArrayBuffer - unexpected data format: ".concat(e)),new Uint8Array(e).buffer)}t.PDFFetchStream=class{constructor(e){this.source=e,this.isHttp=/^https?:/i.test(e.url),this.httpHeaders=this.isHttp&&e.httpHeaders||{},this._fullRequestReader=null,this._rangeRequestReaders=[]}get _progressiveDataLength(){var e,t;return null!==(e=null===(t=this._fullRequestReader)||void 0===t?void 0:t._loaded)&&void 0!==e?e:0}getFullReader(){return(0,r.assert)(!this._fullRequestReader,"PDFFetchStream.getFullReader can only be called once."),this._fullRequestReader=new l(this),this._fullRequestReader}getRangeReader(e,t){if(t<=this._progressiveDataLength)return null;const n=new c(this,e,t);return this._rangeRequestReaders.push(n),n}cancelAllRequests(e){var t;null===(t=this._fullRequestReader)||void 0===t||t.cancel(e);for(const n of this._rangeRequestReaders.slice(0))n.cancel(e)}};class l{constructor(e){this._stream=e,this._reader=null,this._loaded=0,this._filename=null;const t=e.source;this._withCredentials=t.withCredentials||!1,this._contentLength=t.length,this._headersCapability=(0,r.createPromiseCapability)(),this._disableRange=t.disableRange||!1,this._rangeChunkSize=t.rangeChunkSize,this._rangeChunkSize||this._disableRange||(this._disableRange=!0),this._abortController=new AbortController,this._isStreamingSupported=!t.disableStream,this._isRangeSupported=!t.disableRange,this._headers=s(this._stream.httpHeaders);const n=t.url;fetch(n,o(this._headers,this._withCredentials,this._abortController)).then((e=>{if(!(0,i.validateResponseStatus)(e.status))throw(0,i.createResponseStatusError)(e.status,n);this._reader=e.body.getReader(),this._headersCapability.resolve();const t=t=>e.headers.get(t),{allowRangeRequests:o,suggestedLength:s}=(0,i.validateRangeRequestCapabilities)({getResponseHeader:t,isHttp:this._stream.isHttp,rangeChunkSize:this._rangeChunkSize,disableRange:this._disableRange});this._isRangeSupported=o,this._contentLength=s||this._contentLength,this._filename=(0,i.extractFilenameFromHeader)(t),!this._isStreamingSupported&&this._isRangeSupported&&this.cancel(new r.AbortException("Streaming is disabled."))})).catch(this._headersCapability.reject),this.onProgress=null}get headersReady(){return this._headersCapability.promise}get filename(){return this._filename}get contentLength(){return this._contentLength}get isRangeSupported(){return this._isRangeSupported}get isStreamingSupported(){return this._isStreamingSupported}async read(){var e;await this._headersCapability.promise;const{value:t,done:n}=await this._reader.read();return n?{value:t,done:n}:(this._loaded+=t.byteLength,null===(e=this.onProgress)||void 0===e||e.call(this,{loaded:this._loaded,total:this._contentLength}),{value:a(t),done:!1})}cancel(e){var t;null===(t=this._reader)||void 0===t||t.cancel(e),this._abortController.abort()}}class c{constructor(e,t,n){this._stream=e,this._reader=null,this._loaded=0;const a=e.source;this._withCredentials=a.withCredentials||!1,this._readCapability=(0,r.createPromiseCapability)(),this._isStreamingSupported=!a.disableStream,this._abortController=new AbortController,this._headers=s(this._stream.httpHeaders),this._headers.append("Range","bytes=".concat(t,"-").concat(n-1));const l=a.url;fetch(l,o(this._headers,this._withCredentials,this._abortController)).then((e=>{if(!(0,i.validateResponseStatus)(e.status))throw(0,i.createResponseStatusError)(e.status,l);this._readCapability.resolve(),this._reader=e.body.getReader()})).catch(this._readCapability.reject),this.onProgress=null}get isStreamingSupported(){return this._isStreamingSupported}async read(){var e;await this._readCapability.promise;const{value:t,done:n}=await this._reader.read();return n?{value:t,done:n}:(this._loaded+=t.byteLength,null===(e=this.onProgress)||void 0===e||e.call(this,{loaded:this._loaded}),{value:a(t),done:!1})}cancel(e){var t;null===(t=this._reader)||void 0===t||t.cancel(e),this._abortController.abort()}}},(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.TextLayerRenderTask=void 0,t.renderTextLayer=function(e){e.textContentSource||!e.textContent&&!e.textContentStream||((0,i.deprecated)("The TextLayerRender `textContent`/`textContentStream` parameters will be removed in the future, please use `textContentSource` instead."),e.textContentSource=e.textContent||e.textContentStream);const t=new d(e);return t._render(),t},t.updateTextLayer=function(e){let{container:t,viewport:n,textDivs:r,textDivProperties:o,isOffscreenCanvasSupported:s,mustRotate:a=!0,mustRescale:c=!0}=e;if(a&&(0,i.setLayerDimensions)(t,{rotation:n.rotation}),c){const e=l(0,s),t={prevFontSize:null,prevFontFamily:null,div:null,scale:n.scale*(globalThis.devicePixelRatio||1),properties:null,ctx:e};for(const n of r)t.properties=o.get(n),t.div=n,u(t)}};var r=n(1),i=n(6);const o=30,s=.8,a=new Map;function l(e,t){let n;if(t&&r.FeatureTest.isOffscreenCanvasSupported)n=new OffscreenCanvas(e,e).getContext("2d",{alpha:!1});else{const t=document.createElement("canvas");t.width=t.height=e,n=t.getContext("2d",{alpha:!1})}return n}function c(e,t,n){const i=document.createElement("span"),c={angle:0,canvasWidth:0,hasText:""!==t.str,hasEOL:t.hasEOL,fontSize:0};e._textDivs.push(i);const u=r.Util.transform(e._transform,t.transform);let d=Math.atan2(u[1],u[0]);const h=n[t.fontName];h.vertical&&(d+=Math.PI/2);const p=Math.hypot(u[2],u[3]),f=p*function(e,t){const n=a.get(e);if(n)return n;const r=l(o,t);r.font="".concat(o,"px ").concat(e);const i=r.measureText("");let c=i.fontBoundingBoxAscent,u=Math.abs(i.fontBoundingBoxDescent);if(c){const t=c/(c+u);return a.set(e,t),r.canvas.width=r.canvas.height=0,t}r.strokeStyle="red",r.clearRect(0,0,o,o),r.strokeText("g",0,0);let d=r.getImageData(0,0,o,o).data;u=0;for(let s=d.length-1-3;s>=0;s-=4)if(d[s]>0){u=Math.ceil(s/4/o);break}r.clearRect(0,0,o,o),r.strokeText("A",0,o),d=r.getImageData(0,0,o,o).data,c=0;for(let s=0,a=d.length;s<a;s+=4)if(d[s]>0){c=o-Math.floor(s/4/o);break}if(r.canvas.width=r.canvas.height=0,c){const t=c/(c+u);return a.set(e,t),t}return a.set(e,s),s}(h.fontFamily,e._isOffscreenCanvasSupported);let g,m;0===d?(g=u[4],m=u[5]-f):(g=u[4]+f*Math.sin(d),m=u[5]-f*Math.cos(d));const y="calc(var(--scale-factor)*",v=i.style;e._container===e._rootContainer?(v.left="".concat((100*g/e._pageWidth).toFixed(2),"%"),v.top="".concat((100*m/e._pageHeight).toFixed(2),"%")):(v.left="".concat(y).concat(g.toFixed(2),"px)"),v.top="".concat(y).concat(m.toFixed(2),"px)")),v.fontSize="".concat(y).concat(p.toFixed(2),"px)"),v.fontFamily=h.fontFamily,c.fontSize=p,i.setAttribute("role","presentation"),i.textContent=t.str,i.dir=t.dir,e._fontInspectorEnabled&&(i.dataset.fontName=t.fontName),0!==d&&(c.angle=d*(180/Math.PI));let _=!1;if(t.str.length>1)_=!0;else if(" "!==t.str&&t.transform[0]!==t.transform[3]){const e=Math.abs(t.transform[0]),n=Math.abs(t.transform[3]);e!==n&&Math.max(e,n)/Math.min(e,n)>1.5&&(_=!0)}_&&(c.canvasWidth=h.vertical?t.height:t.width),e._textDivProperties.set(i,c),e._isReadableStream&&e._layoutText(i)}function u(e){const{div:t,scale:n,properties:r,ctx:i,prevFontSize:o,prevFontFamily:s}=e,{style:a}=t;let l="";if(0!==r.canvasWidth&&r.hasText){const{fontFamily:c}=a,{canvasWidth:u,fontSize:d}=r;o===d&&s===c||(i.font="".concat(d*n,"px ").concat(c),e.prevFontSize=d,e.prevFontFamily=c);const{width:h}=i.measureText(t.textContent);h>0&&(l="scaleX(".concat(u*n/h,")"))}0!==r.angle&&(l="rotate(".concat(r.angle,"deg) ").concat(l)),l.length>0&&(a.transform=l)}class d{constructor(e){var t;let{textContentSource:n,container:o,viewport:s,textDivs:a,textDivProperties:c,textContentItemsStr:u,isOffscreenCanvasSupported:d}=e;this._textContentSource=n,this._isReadableStream=n instanceof ReadableStream,this._container=this._rootContainer=o,this._textDivs=a||[],this._textContentItemsStr=u||[],this._fontInspectorEnabled=!(null===(t=globalThis.FontInspector)||void 0===t||!t.enabled),this._reader=null,this._textDivProperties=c||new WeakMap,this._canceled=!1,this._capability=(0,r.createPromiseCapability)(),this._layoutTextParams={prevFontSize:null,prevFontFamily:null,div:null,scale:s.scale*(globalThis.devicePixelRatio||1),properties:null,ctx:l(0,d)};const{pageWidth:h,pageHeight:p,pageX:f,pageY:g}=s.rawDims;this._transform=[1,0,0,-1,-f,g+p],this._pageWidth=h,this._pageHeight=p,(0,i.setLayerDimensions)(o,s),this._capability.promise.finally((()=>{this._layoutTextParams=null})).catch((()=>{}))}get promise(){return this._capability.promise}cancel(){this._canceled=!0,this._reader&&(this._reader.cancel(new r.AbortException("TextLayer task cancelled.")).catch((()=>{})),this._reader=null),this._capability.reject(new r.AbortException("TextLayer task cancelled."))}_processItems(e,t){for(const n of e)if(void 0!==n.str)this._textContentItemsStr.push(n.str),c(this,n,t);else if("beginMarkedContentProps"===n.type||"beginMarkedContent"===n.type){const e=this._container;this._container=document.createElement("span"),this._container.classList.add("markedContent"),null!==n.id&&this._container.setAttribute("id","".concat(n.id)),e.append(this._container)}else"endMarkedContent"===n.type&&(this._container=this._container.parentNode)}_layoutText(e){const t=this._layoutTextParams.properties=this._textDivProperties.get(e);if(this._layoutTextParams.div=e,u(this._layoutTextParams),t.hasText&&this._container.append(e),t.hasEOL){const e=document.createElement("br");e.setAttribute("role","presentation"),this._container.append(e)}}_render(){const e=(0,r.createPromiseCapability)();let t=Object.create(null);if(this._isReadableStream){const n=()=>{this._reader.read().then((r=>{let{value:i,done:o}=r;o?e.resolve():(Object.assign(t,i.styles),this._processItems(i.items,t),n())}),e.reject)};this._reader=this._textContentSource.getReader(),n()}else{if(!this._textContentSource)throw new Error('No "textContentSource" parameter specified.');{const{items:t,styles:n}=this._textContentSource;this._processItems(t,n),e.resolve()}}e.promise.then((()=>{t=null,function(e){if(e._canceled)return;const t=e._textDivs,n=e._capability;if(t.length>1e5)n.resolve();else{if(!e._isReadableStream)for(const n of t)e._layoutText(n);n.resolve()}}(this)}),this._capability.reject)}}t.TextLayerRenderTask=d},(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.AnnotationEditorLayer=void 0;var r=n(1),i=n(5),o=n(28),s=n(29),a=n(6),l=new WeakMap,c=new WeakMap,u=new WeakMap,d=new WeakMap,h=new WeakMap,p=new WeakMap,f=new WeakMap,g=new WeakMap,m=new WeakSet,y=new WeakSet,v=new WeakSet,_=new WeakSet;class b{constructor(e){_classPrivateMethodInitSpec(this,_),_classPrivateMethodInitSpec(this,v),_classPrivateMethodInitSpec(this,y),_classPrivateMethodInitSpec(this,m),_classPrivateFieldInitSpec(this,l,{writable:!0,value:void 0}),_classPrivateFieldInitSpec(this,c,{writable:!0,value:!1}),_classPrivateFieldInitSpec(this,u,{writable:!0,value:this.pointerup.bind(this)}),_classPrivateFieldInitSpec(this,d,{writable:!0,value:this.pointerdown.bind(this)}),_classPrivateFieldInitSpec(this,h,{writable:!0,value:new Map}),_classPrivateFieldInitSpec(this,p,{writable:!0,value:!1}),_classPrivateFieldInitSpec(this,f,{writable:!0,value:!1}),_classPrivateFieldInitSpec(this,g,{writable:!0,value:void 0}),b._initialized||(b._initialized=!0,o.FreeTextEditor.initialize(e.l10n),s.InkEditor.initialize(e.l10n)),e.uiManager.registerEditorTypes([o.FreeTextEditor,s.InkEditor]),_classPrivateFieldSet(this,g,e.uiManager),this.pageIndex=e.pageIndex,this.div=e.div,_classPrivateFieldSet(this,l,e.accessibilityManager),_classPrivateFieldGet(this,g).addLayer(this)}updateToolbar(e){_classPrivateFieldGet(this,g).updateToolbar(e)}updateMode(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:_classPrivateFieldGet(this,g).getMode();_classPrivateMethodGet(this,_,E).call(this),e===r.AnnotationEditorType.INK?(this.addInkEditorIfNeeded(!1),this.disableClick()):this.enableClick(),_classPrivateFieldGet(this,g).unselectAll(),this.div.classList.toggle("freeTextEditing",e===r.AnnotationEditorType.FREETEXT),this.div.classList.toggle("inkEditing",e===r.AnnotationEditorType.INK)}addInkEditorIfNeeded(e){if(e||_classPrivateFieldGet(this,g).getMode()===r.AnnotationEditorType.INK){if(!e)for(const e of _classPrivateFieldGet(this,h).values())if(e.isEmpty())return void e.setInBackground();_classPrivateMethodGet(this,v,w).call(this,{offsetX:0,offsetY:0}).setInBackground()}}setEditingState(e){_classPrivateFieldGet(this,g).setEditingState(e)}addCommands(e){_classPrivateFieldGet(this,g).addCommands(e)}enable(){this.div.style.pointerEvents="auto";for(const e of _classPrivateFieldGet(this,h).values())e.enableEditing()}disable(){this.div.style.pointerEvents="none";for(const e of _classPrivateFieldGet(this,h).values())e.disableEditing()}setActiveEditor(e){_classPrivateFieldGet(this,g).getActive()!==e&&_classPrivateFieldGet(this,g).setActiveEditor(e)}enableClick(){this.div.addEventListener("pointerdown",_classPrivateFieldGet(this,d)),this.div.addEventListener("pointerup",_classPrivateFieldGet(this,u))}disableClick(){this.div.removeEventListener("pointerdown",_classPrivateFieldGet(this,d)),this.div.removeEventListener("pointerup",_classPrivateFieldGet(this,u))}attach(e){_classPrivateFieldGet(this,h).set(e.id,e)}detach(e){var t;_classPrivateFieldGet(this,h).delete(e.id),null===(t=_classPrivateFieldGet(this,l))||void 0===t||t.removePointerInTextLayer(e.contentDiv)}remove(e){_classPrivateFieldGet(this,g).removeEditor(e),this.detach(e),e.div.style.display="none",setTimeout((()=>{e.div.style.display="",e.div.remove(),e.isAttachedToDOM=!1,document.activeElement===document.body&&_classPrivateFieldGet(this,g).focusMainContainer()}),0),_classPrivateFieldGet(this,f)||this.addInkEditorIfNeeded(!1)}add(e){if(_classPrivateMethodGet(this,m,x).call(this,e),_classPrivateFieldGet(this,g).addEditor(e),this.attach(e),!e.isAttachedToDOM){const t=e.render();this.div.append(t),e.isAttachedToDOM=!0}this.moveEditorInDOM(e),e.onceAdded(),_classPrivateFieldGet(this,g).addToAnnotationStorage(e)}moveEditorInDOM(e){var t;null===(t=_classPrivateFieldGet(this,l))||void 0===t||t.moveElementInDOM(this.div,e.div,e.contentDiv,!0)}addOrRebuild(e){e.needsToBeRebuilt()?e.rebuild():this.add(e)}addANewEditor(e){this.addCommands({cmd:()=>{this.addOrRebuild(e)},undo:()=>{e.remove()},mustExec:!0})}addUndoableEditor(e){this.addCommands({cmd:()=>{this.addOrRebuild(e)},undo:()=>{e.remove()},mustExec:!1})}getNextId(){return _classPrivateFieldGet(this,g).getId()}deserialize(e){switch(e.annotationType){case r.AnnotationEditorType.FREETEXT:return o.FreeTextEditor.deserialize(e,this,_classPrivateFieldGet(this,g));case r.AnnotationEditorType.INK:return s.InkEditor.deserialize(e,this,_classPrivateFieldGet(this,g))}return null}setSelected(e){_classPrivateFieldGet(this,g).setSelected(e)}toggleSelected(e){_classPrivateFieldGet(this,g).toggleSelected(e)}isSelected(e){return _classPrivateFieldGet(this,g).isSelected(e)}unselect(e){_classPrivateFieldGet(this,g).unselect(e)}pointerup(e){const{isMac:t}=r.FeatureTest.platform;0!==e.button||e.ctrlKey&&t||e.target===this.div&&_classPrivateFieldGet(this,p)&&(_classPrivateFieldSet(this,p,!1),_classPrivateFieldGet(this,c)?_classPrivateMethodGet(this,v,w).call(this,e):_classPrivateFieldSet(this,c,!0))}pointerdown(e){const{isMac:t}=r.FeatureTest.platform;if(0!==e.button||e.ctrlKey&&t)return;if(e.target!==this.div)return;_classPrivateFieldSet(this,p,!0);const n=_classPrivateFieldGet(this,g).getActive();_classPrivateFieldSet(this,c,!n||n.isEmpty())}drop(e){const t=e.dataTransfer.getData("text/plain"),n=_classPrivateFieldGet(this,g).getEditor(t);if(!n)return;e.preventDefault(),e.dataTransfer.dropEffect="move",_classPrivateMethodGet(this,m,x).call(this,n);const r=this.div.getBoundingClientRect(),i=e.clientX-r.x,o=e.clientY-r.y;n.translate(i-n.startX,o-n.startY),this.moveEditorInDOM(n),n.div.focus()}dragover(e){e.preventDefault()}destroy(){var e;(null===(e=_classPrivateFieldGet(this,g).getActive())||void 0===e?void 0:e.parent)===this&&_classPrivateFieldGet(this,g).setActiveEditor(null);for(const n of _classPrivateFieldGet(this,h).values()){var t;null===(t=_classPrivateFieldGet(this,l))||void 0===t||t.removePointerInTextLayer(n.contentDiv),n.setParent(null),n.isAttachedToDOM=!1,n.div.remove()}this.div=null,_classPrivateFieldGet(this,h).clear(),_classPrivateFieldGet(this,g).removeLayer(this)}render(e){let{viewport:t}=e;this.viewport=t,(0,a.setLayerDimensions)(this.div,t),(0,i.bindEvents)(this,this.div,["dragover","drop"]);for(const n of _classPrivateFieldGet(this,g).getEditors(this.pageIndex))this.add(n);this.updateMode()}update(e){let{viewport:t}=e;_classPrivateFieldGet(this,g).commitOrRemove(),this.viewport=t,(0,a.setLayerDimensions)(this.div,{rotation:t.rotation}),this.updateMode()}get pageDimensions(){const{pageWidth:e,pageHeight:t}=this.viewport.rawDims;return[e,t]}}function x(e){var t;e.parent!==this&&(this.attach(e),null===(t=e.parent)||void 0===t||t.detach(e),e.setParent(this),e.div&&e.isAttachedToDOM&&(e.div.remove(),this.div.append(e.div)))}function S(e){switch(_classPrivateFieldGet(this,g).getMode()){case r.AnnotationEditorType.FREETEXT:return new o.FreeTextEditor(e);case r.AnnotationEditorType.INK:return new s.InkEditor(e)}return null}function w(e){const t=this.getNextId(),n=_classPrivateMethodGet(this,y,S).call(this,{parent:this,id:t,x:e.offsetX,y:e.offsetY,uiManager:_classPrivateFieldGet(this,g)});return n&&this.add(n),n}function E(){_classPrivateFieldSet(this,f,!0);for(const e of _classPrivateFieldGet(this,h).values())e.isEmpty()&&e.remove();_classPrivateFieldSet(this,f,!1)}_defineProperty(b,"_initialized",!1),t.AnnotationEditorLayer=b},(e,t,n)=>{var r;Object.defineProperty(t,"__esModule",{value:!0}),t.FreeTextEditor=void 0;var i=n(1),o=n(5),s=n(4),a=new WeakMap,l=new WeakMap,c=new WeakMap,u=new WeakMap,d=new WeakMap,h=new WeakMap,p=new WeakMap,f=new WeakMap,g=new WeakMap,m=new WeakSet,y=new WeakSet,v=new WeakSet,_=new WeakSet;class b extends s.AnnotationEditor{constructor(e){super({...e,name:"freeTextEditor"}),_classPrivateMethodInitSpec(this,_),_classPrivateMethodInitSpec(this,v),_classPrivateMethodInitSpec(this,y),_classPrivateMethodInitSpec(this,m),_classPrivateFieldInitSpec(this,a,{writable:!0,value:this.editorDivBlur.bind(this)}),_classPrivateFieldInitSpec(this,l,{writable:!0,value:this.editorDivFocus.bind(this)}),_classPrivateFieldInitSpec(this,c,{writable:!0,value:this.editorDivInput.bind(this)}),_classPrivateFieldInitSpec(this,u,{writable:!0,value:this.editorDivKeydown.bind(this)}),_classPrivateFieldInitSpec(this,d,{writable:!0,value:void 0}),_classPrivateFieldInitSpec(this,h,{writable:!0,value:""}),_classPrivateFieldInitSpec(this,p,{writable:!0,value:"".concat(this.id,"-editor")}),_classPrivateFieldInitSpec(this,f,{writable:!0,value:!1}),_classPrivateFieldInitSpec(this,g,{writable:!0,value:void 0}),_classPrivateFieldSet(this,d,e.color||b._defaultColor||s.AnnotationEditor._defaultLineColor),_classPrivateFieldSet(this,g,e.fontSize||b._defaultFontSize)}static initialize(e){this._l10nPromise=new Map(["free_text2_default_content","editor_free_text2_aria_label"].map((t=>[t,e.get(t)])));const t=getComputedStyle(document.documentElement);this._internalPadding=parseFloat(t.getPropertyValue("--freetext-padding"))}static updateDefaultParams(e,t){switch(e){case i.AnnotationEditorParamsType.FREETEXT_SIZE:b._defaultFontSize=t;break;case i.AnnotationEditorParamsType.FREETEXT_COLOR:b._defaultColor=t}}updateParams(e,t){switch(e){case i.AnnotationEditorParamsType.FREETEXT_SIZE:_classPrivateMethodGet(this,m,x).call(this,t);break;case i.AnnotationEditorParamsType.FREETEXT_COLOR:_classPrivateMethodGet(this,y,S).call(this,t)}}static get defaultPropertiesToUpdate(){return[[i.AnnotationEditorParamsType.FREETEXT_SIZE,b._defaultFontSize],[i.AnnotationEditorParamsType.FREETEXT_COLOR,b._defaultColor||s.AnnotationEditor._defaultLineColor]]}get propertiesToUpdate(){return[[i.AnnotationEditorParamsType.FREETEXT_SIZE,_classPrivateFieldGet(this,g)],[i.AnnotationEditorParamsType.FREETEXT_COLOR,_classPrivateFieldGet(this,d)]]}getInitialTranslation(){const e=this.parentScale;return[-b._internalPadding*e,-(b._internalPadding+_classPrivateFieldGet(this,g))*e]}rebuild(){super.rebuild(),null!==this.div&&(this.isAttachedToDOM||this.parent.add(this))}enableEditMode(){this.isInEditMode()||(this.parent.setEditingState(!1),this.parent.updateToolbar(i.AnnotationEditorType.FREETEXT),super.enableEditMode(),this.overlayDiv.classList.remove("enabled"),this.editorDiv.contentEditable=!0,this.div.draggable=!1,this.div.removeAttribute("aria-activedescendant"),this.editorDiv.addEventListener("keydown",_classPrivateFieldGet(this,u)),this.editorDiv.addEventListener("focus",_classPrivateFieldGet(this,l)),this.editorDiv.addEventListener("blur",_classPrivateFieldGet(this,a)),this.editorDiv.addEventListener("input",_classPrivateFieldGet(this,c)))}disableEditMode(){this.isInEditMode()&&(this.parent.setEditingState(!0),super.disableEditMode(),this.overlayDiv.classList.add("enabled"),this.editorDiv.contentEditable=!1,this.div.setAttribute("aria-activedescendant",_classPrivateFieldGet(this,p)),this.div.draggable=!0,this.editorDiv.removeEventListener("keydown",_classPrivateFieldGet(this,u)),this.editorDiv.removeEventListener("focus",_classPrivateFieldGet(this,l)),this.editorDiv.removeEventListener("blur",_classPrivateFieldGet(this,a)),this.editorDiv.removeEventListener("input",_classPrivateFieldGet(this,c)),this.div.focus({preventScroll:!0}),this.isEditing=!1,this.parent.div.classList.add("freeTextEditing"))}focusin(e){super.focusin(e),e.target!==this.editorDiv&&this.editorDiv.focus()}onceAdded(){this.width||(this.enableEditMode(),this.editorDiv.focus())}isEmpty(){return!this.editorDiv||""===this.editorDiv.innerText.trim()}remove(){this.isEditing=!1,this.parent.setEditingState(!0),this.parent.div.classList.add("freeTextEditing"),super.remove()}commit(){this.isInEditMode()&&(super.commit(),_classPrivateFieldGet(this,f)||(_classPrivateFieldSet(this,f,!0),this.parent.addUndoableEditor(this)),this.disableEditMode(),_classPrivateFieldSet(this,h,_classPrivateMethodGet(this,v,w).call(this).trimEnd()),_classPrivateMethodGet(this,_,E).call(this))}shouldGetKeyboardEvents(){return this.isInEditMode()}dblclick(e){this.enableEditMode(),this.editorDiv.focus()}keydown(e){e.target===this.div&&"Enter"===e.key&&(this.enableEditMode(),this.editorDiv.focus())}editorDivKeydown(e){b._keyboardManager.exec(this,e)}editorDivFocus(e){this.isEditing=!0}editorDivBlur(e){this.isEditing=!1}editorDivInput(e){this.parent.div.classList.toggle("freeTextEditing",this.isEmpty())}disableEditing(){this.editorDiv.setAttribute("role","comment"),this.editorDiv.removeAttribute("aria-multiline")}enableEditing(){this.editorDiv.setAttribute("role","textbox"),this.editorDiv.setAttribute("aria-multiline",!0)}render(){if(this.div)return this.div;let e,t;this.width&&(e=this.x,t=this.y),super.render(),this.editorDiv=document.createElement("div"),this.editorDiv.className="internal",this.editorDiv.setAttribute("id",_classPrivateFieldGet(this,p)),this.enableEditing(),b._l10nPromise.get("editor_free_text2_aria_label").then((e=>{var t;return null===(t=this.editorDiv)||void 0===t?void 0:t.setAttribute("aria-label",e)})),b._l10nPromise.get("free_text2_default_content").then((e=>{var t;return null===(t=this.editorDiv)||void 0===t?void 0:t.setAttribute("default-content",e)})),this.editorDiv.contentEditable=!0;const{style:n}=this.editorDiv;if(n.fontSize="calc(".concat(_classPrivateFieldGet(this,g),"px * var(--scale-factor))"),n.color=_classPrivateFieldGet(this,d),this.div.append(this.editorDiv),this.overlayDiv=document.createElement("div"),this.overlayDiv.classList.add("overlay","enabled"),this.div.append(this.overlayDiv),(0,o.bindEvents)(this,this.div,["dblclick","keydown"]),this.width){const[n,r]=this.parentDimensions;this.setAt(e*n,t*r,this.width*n,this.height*r);for(const e of _classPrivateFieldGet(this,h).split("\n")){const t=document.createElement("div");t.append(e?document.createTextNode(e):document.createElement("br")),this.editorDiv.append(t)}this.div.draggable=!0,this.editorDiv.contentEditable=!1}else this.div.draggable=!1,this.editorDiv.contentEditable=!0;return this.div}get contentDiv(){return this.editorDiv}static deserialize(e,t,n){const r=super.deserialize(e,t,n);return _classPrivateFieldSet(r,g,e.fontSize),_classPrivateFieldSet(r,d,i.Util.makeHexColor(...e.color)),_classPrivateFieldSet(r,h,e.value),r}serialize(){if(this.isEmpty())return null;const e=b._internalPadding*this.parentScale,t=this.getRect(e,e),n=s.AnnotationEditor._colorManager.convert(this.isAttachedToDOM?getComputedStyle(this.editorDiv).color:_classPrivateFieldGet(this,d));return{annotationType:i.AnnotationEditorType.FREETEXT,color:n,fontSize:_classPrivateFieldGet(this,g),value:_classPrivateFieldGet(this,h),pageIndex:this.pageIndex,rect:t,rotation:this.rotation}}}function x(e){const t=e=>{this.editorDiv.style.fontSize="calc(".concat(e,"px * var(--scale-factor))"),this.translate(0,-(e-_classPrivateFieldGet(this,g))*this.parentScale),_classPrivateFieldSet(this,g,e),_classPrivateMethodGet(this,_,E).call(this)},n=_classPrivateFieldGet(this,g);this.addCommands({cmd:()=>{t(e)},undo:()=>{t(n)},mustExec:!0,type:i.AnnotationEditorParamsType.FREETEXT_SIZE,overwriteIfSameType:!0,keepUndo:!0})}function S(e){const t=_classPrivateFieldGet(this,d);this.addCommands({cmd:()=>{_classPrivateFieldSet(this,d,this.editorDiv.style.color=e)},undo:()=>{_classPrivateFieldSet(this,d,this.editorDiv.style.color=t)},mustExec:!0,type:i.AnnotationEditorParamsType.FREETEXT_COLOR,overwriteIfSameType:!0,keepUndo:!0})}function w(){const e=this.editorDiv.getElementsByTagName("div");if(0===e.length)return this.editorDiv.innerText;const t=[];for(const n of e)t.push(n.innerText.replace(/\r\n?|\n/,""));return t.join("\n")}function E(){const[e,t]=this.parentDimensions;let n;if(this.isAttachedToDOM)n=this.div.getBoundingClientRect();else{const{currentLayer:e,div:t}=this,r=t.style.display;t.style.display="hidden",e.div.append(this.div),n=t.getBoundingClientRect(),t.remove(),t.style.display=r}this.width=n.width/e,this.height=n.height/t}r=b,_defineProperty(b,"_freeTextDefaultContent",""),_defineProperty(b,"_l10nPromise",void 0),_defineProperty(b,"_internalPadding",0),_defineProperty(b,"_defaultColor",null),_defineProperty(b,"_defaultFontSize",10),_defineProperty(b,"_keyboardManager",new o.KeyboardManager([[["ctrl+Enter","mac+meta+Enter","Escape","mac+Escape"],r.prototype.commitOrRemove]])),_defineProperty(b,"_type","freetext"),t.FreeTextEditor=b},(e,t,n)=>{var r;Object.defineProperty(t,"__esModule",{value:!0}),t.InkEditor=void 0,Object.defineProperty(t,"fitCurve",{enumerable:!0,get:function(){return s.fitCurve}});var i=n(1),o=n(4),s=n(30),a=n(5);const l=16,c=100;var u=new WeakMap,d=new WeakMap,h=new WeakMap,p=new WeakMap,f=new WeakMap,g=new WeakMap,m=new WeakMap,y=new WeakMap,v=new WeakMap,_=new WeakMap,b=new WeakMap,x=new WeakMap,S=new WeakMap,w=new WeakMap,E=new WeakSet,P=new WeakSet,C=new WeakSet,A=new WeakSet,k=new WeakSet,j=new WeakSet,I=new WeakSet,G=new WeakSet,T=new WeakSet,M=new WeakSet,O=new WeakSet,R=new WeakSet,D=new WeakSet,N=new WeakSet,L=new WeakSet,V=new WeakSet,F=new WeakSet,z=new WeakSet,B=new WeakSet,U=new WeakSet,W=new WeakSet,H=new WeakSet;class q extends o.AnnotationEditor{constructor(e){super({...e,name:"inkEditor"}),_classPrivateMethodInitSpec(this,H),_classPrivateMethodInitSpec(this,W),_classPrivateMethodInitSpec(this,U),_classPrivateMethodInitSpec(this,B),_classPrivateMethodInitSpec(this,z),_classPrivateMethodInitSpec(this,F),_classPrivateMethodInitSpec(this,V),_classPrivateMethodInitSpec(this,L),_classPrivateMethodInitSpec(this,N),_classPrivateMethodInitSpec(this,D),_classPrivateMethodInitSpec(this,R),_classPrivateMethodInitSpec(this,O),_classPrivateMethodInitSpec(this,M),_classPrivateMethodInitSpec(this,T),_classPrivateMethodInitSpec(this,G),_classPrivateMethodInitSpec(this,I),_classPrivateMethodInitSpec(this,j),_classPrivateMethodInitSpec(this,k),_classPrivateMethodInitSpec(this,A),_classPrivateMethodInitSpec(this,C),_classPrivateMethodInitSpec(this,P),_classPrivateMethodInitSpec(this,E),_classPrivateFieldInitSpec(this,u,{writable:!0,value:0}),_classPrivateFieldInitSpec(this,d,{writable:!0,value:0}),_classPrivateFieldInitSpec(this,h,{writable:!0,value:0}),_classPrivateFieldInitSpec(this,p,{writable:!0,value:this.canvasPointermove.bind(this)}),_classPrivateFieldInitSpec(this,f,{writable:!0,value:this.canvasPointerleave.bind(this)}),_classPrivateFieldInitSpec(this,g,{writable:!0,value:this.canvasPointerup.bind(this)}),_classPrivateFieldInitSpec(this,m,{writable:!0,value:this.canvasPointerdown.bind(this)}),_classPrivateFieldInitSpec(this,y,{writable:!0,value:!1}),_classPrivateFieldInitSpec(this,v,{writable:!0,value:!1}),_classPrivateFieldInitSpec(this,_,{writable:!0,value:null}),_classPrivateFieldInitSpec(this,b,{writable:!0,value:null}),_classPrivateFieldInitSpec(this,x,{writable:!0,value:0}),_classPrivateFieldInitSpec(this,S,{writable:!0,value:0}),_classPrivateFieldInitSpec(this,w,{writable:!0,value:null}),this.color=e.color||null,this.thickness=e.thickness||null,this.opacity=e.opacity||null,this.paths=[],this.bezierPath2D=[],this.currentPath=[],this.scaleFactor=1,this.translationX=this.translationY=0,this.x=0,this.y=0}static initialize(e){this._l10nPromise=new Map(["editor_ink_canvas_aria_label","editor_ink2_aria_label"].map((t=>[t,e.get(t)])))}static updateDefaultParams(e,t){switch(e){case i.AnnotationEditorParamsType.INK_THICKNESS:q._defaultThickness=t;break;case i.AnnotationEditorParamsType.INK_COLOR:q._defaultColor=t;break;case i.AnnotationEditorParamsType.INK_OPACITY:q._defaultOpacity=t/100}}updateParams(e,t){switch(e){case i.AnnotationEditorParamsType.INK_THICKNESS:_classPrivateMethodGet(this,E,X).call(this,t);break;case i.AnnotationEditorParamsType.INK_COLOR:_classPrivateMethodGet(this,P,Y).call(this,t);break;case i.AnnotationEditorParamsType.INK_OPACITY:_classPrivateMethodGet(this,C,K).call(this,t)}}static get defaultPropertiesToUpdate(){return[[i.AnnotationEditorParamsType.INK_THICKNESS,q._defaultThickness],[i.AnnotationEditorParamsType.INK_COLOR,q._defaultColor||o.AnnotationEditor._defaultLineColor],[i.AnnotationEditorParamsType.INK_OPACITY,Math.round(100*q._defaultOpacity)]]}get propertiesToUpdate(){var e;return[[i.AnnotationEditorParamsType.INK_THICKNESS,this.thickness||q._defaultThickness],[i.AnnotationEditorParamsType.INK_COLOR,this.color||q._defaultColor||o.AnnotationEditor._defaultLineColor],[i.AnnotationEditorParamsType.INK_OPACITY,Math.round(100*(null!==(e=this.opacity)&&void 0!==e?e:q._defaultOpacity))]]}rebuild(){super.rebuild(),null!==this.div&&(this.canvas||(_classPrivateMethodGet(this,O,re).call(this),_classPrivateMethodGet(this,R,ie).call(this)),this.isAttachedToDOM||(this.parent.add(this),_classPrivateMethodGet(this,D,oe).call(this)),_classPrivateMethodGet(this,W,fe).call(this))}remove(){null!==this.canvas&&(this.isEmpty()||this.commit(),this.canvas.width=this.canvas.height=0,this.canvas.remove(),this.canvas=null,_classPrivateFieldGet(this,b).disconnect(),_classPrivateFieldSet(this,b,null),super.remove())}setParent(e){!this.parent&&e?this._uiManager.removeShouldRescale(this):this.parent&&null===e&&this._uiManager.addShouldRescale(this),super.setParent(e)}onScaleChanging(){const[e,t]=this.parentDimensions,n=this.width*e,r=this.height*t;this.setDimensions(n,r)}enableEditMode(){_classPrivateFieldGet(this,y)||null===this.canvas||(super.enableEditMode(),this.div.draggable=!1,this.canvas.addEventListener("pointerdown",_classPrivateFieldGet(this,m)),this.canvas.addEventListener("pointerup",_classPrivateFieldGet(this,g)))}disableEditMode(){this.isInEditMode()&&null!==this.canvas&&(super.disableEditMode(),this.div.draggable=!this.isEmpty(),this.div.classList.remove("editing"),this.canvas.removeEventListener("pointerdown",_classPrivateFieldGet(this,m)),this.canvas.removeEventListener("pointerup",_classPrivateFieldGet(this,g)))}onceAdded(){this.div.draggable=!this.isEmpty()}isEmpty(){return 0===this.paths.length||1===this.paths.length&&0===this.paths[0].length}commit(){_classPrivateFieldGet(this,y)||(super.commit(),this.isEditing=!1,this.disableEditMode(),this.setInForeground(),_classPrivateFieldSet(this,y,!0),this.div.classList.add("disabled"),_classPrivateMethodGet(this,W,fe).call(this,!0),this.parent.addInkEditorIfNeeded(!0),this.parent.moveEditorInDOM(this),this.div.focus({preventScroll:!0}))}focusin(e){super.focusin(e),this.enableEditMode()}canvasPointerdown(e){0===e.button&&this.isInEditMode()&&!_classPrivateFieldGet(this,y)&&(this.setInForeground(),"mouse"!==e.type&&this.div.focus(),e.stopPropagation(),this.canvas.addEventListener("pointerleave",_classPrivateFieldGet(this,f)),this.canvas.addEventListener("pointermove",_classPrivateFieldGet(this,p)),_classPrivateMethodGet(this,j,J).call(this,e.offsetX,e.offsetY))}canvasPointermove(e){e.stopPropagation(),_classPrivateMethodGet(this,I,Q).call(this,e.offsetX,e.offsetY)}canvasPointerup(e){0===e.button&&this.isInEditMode()&&0!==this.currentPath.length&&(e.stopPropagation(),_classPrivateMethodGet(this,M,ne).call(this,e),this.setInBackground())}canvasPointerleave(e){_classPrivateMethodGet(this,M,ne).call(this,e),this.setInBackground()}render(){if(this.div)return this.div;let e,t;this.width&&(e=this.x,t=this.y),super.render(),q._l10nPromise.get("editor_ink2_aria_label").then((e=>{var t;return null===(t=this.div)||void 0===t?void 0:t.setAttribute("aria-label",e)}));const[n,r,i,o]=_classPrivateMethodGet(this,A,Z).call(this);if(this.setAt(n,r,0,0),this.setDims(i,o),_classPrivateMethodGet(this,O,re).call(this),this.width){const[n,r]=this.parentDimensions;this.setAt(e*n,t*r,this.width*n,this.height*r),_classPrivateFieldSet(this,v,!0),_classPrivateMethodGet(this,D,oe).call(this),this.setDims(this.width*n,this.height*r),_classPrivateMethodGet(this,T,te).call(this),_classPrivateMethodGet(this,H,ge).call(this),this.div.classList.add("disabled")}else this.div.classList.add("editing"),this.enableEditMode();return _classPrivateMethodGet(this,R,ie).call(this),this.div}setDimensions(e,t){const n=Math.round(e),r=Math.round(t);if(_classPrivateFieldGet(this,x)===n&&_classPrivateFieldGet(this,S)===r)return;_classPrivateFieldSet(this,x,n),_classPrivateFieldSet(this,S,r),this.canvas.style.visibility="hidden",_classPrivateFieldGet(this,u)&&Math.abs(_classPrivateFieldGet(this,u)-e/t)>.01&&(t=Math.ceil(e/_classPrivateFieldGet(this,u)),this.setDims(e,t));const[i,o]=this.parentDimensions;this.width=e/i,this.height=t/o,_classPrivateFieldGet(this,y)&&_classPrivateMethodGet(this,N,se).call(this,e,t),_classPrivateMethodGet(this,D,oe).call(this),_classPrivateMethodGet(this,T,te).call(this),this.canvas.style.visibility="visible"}static deserialize(e,t,n){const r=super.deserialize(e,t,n);r.thickness=e.thickness,r.color=i.Util.makeHexColor(...e.color),r.opacity=e.opacity;const[o,s]=r.pageDimensions,a=r.width*o,c=r.height*s,p=r.parentScale,f=e.thickness/2;_classPrivateFieldSet(r,u,a/c),_classPrivateFieldSet(r,y,!0),_classPrivateFieldSet(r,x,Math.round(a)),_classPrivateFieldSet(r,S,Math.round(c));for(const{bezier:i}of e.paths){const e=[];r.paths.push(e);let t=p*(i[0]-f),n=p*(c-i[1]-f);for(let r=2,s=i.length;r<s;r+=6){const o=p*(i[r]-f),s=p*(c-i[r+1]-f),a=p*(i[r+2]-f),l=p*(c-i[r+3]-f),u=p*(i[r+4]-f),d=p*(c-i[r+5]-f);e.push([[t,n],[o,s],[a,l],[u,d]]),t=u,n=d}const o=_classStaticPrivateMethodGet(this,q,le).call(this,e);r.bezierPath2D.push(o)}const g=_classPrivateMethodGet(r,B,he).call(r);return _classPrivateFieldSet(r,h,Math.max(l,g[2]-g[0])),_classPrivateFieldSet(r,d,Math.max(l,g[3]-g[1])),_classPrivateMethodGet(r,N,se).call(r,a,c),r}serialize(){if(this.isEmpty())return null;const e=this.getRect(0,0),t=this.rotation%180===0?e[3]-e[1]:e[2]-e[0],n=o.AnnotationEditor._colorManager.convert(this.ctx.strokeStyle);return{annotationType:i.AnnotationEditorType.INK,color:n,thickness:this.thickness,opacity:this.opacity,paths:_classPrivateMethodGet(this,V,ce).call(this,this.scaleFactor/this.parentScale,this.translationX,this.translationY,t),pageIndex:this.pageIndex,rect:e,rotation:this.rotation}}}function X(e){const t=this.thickness;this.addCommands({cmd:()=>{this.thickness=e,_classPrivateMethodGet(this,W,fe).call(this)},undo:()=>{this.thickness=t,_classPrivateMethodGet(this,W,fe).call(this)},mustExec:!0,type:i.AnnotationEditorParamsType.INK_THICKNESS,overwriteIfSameType:!0,keepUndo:!0})}function Y(e){const t=this.color;this.addCommands({cmd:()=>{this.color=e,_classPrivateMethodGet(this,T,te).call(this)},undo:()=>{this.color=t,_classPrivateMethodGet(this,T,te).call(this)},mustExec:!0,type:i.AnnotationEditorParamsType.INK_COLOR,overwriteIfSameType:!0,keepUndo:!0})}function K(e){e/=100;const t=this.opacity;this.addCommands({cmd:()=>{this.opacity=e,_classPrivateMethodGet(this,T,te).call(this)},undo:()=>{this.opacity=t,_classPrivateMethodGet(this,T,te).call(this)},mustExec:!0,type:i.AnnotationEditorParamsType.INK_OPACITY,overwriteIfSameType:!0,keepUndo:!0})}function Z(){const{parentRotation:e,parentDimensions:[t,n]}=this;switch(e){case 90:return[0,n,n,t];case 180:return[t,n,t,n];case 270:return[t,0,n,t];default:return[0,0,t,n]}}function $(){const{ctx:e,color:t,opacity:n,thickness:r,parentScale:i,scaleFactor:o}=this;e.lineWidth=r*i/o,e.lineCap="round",e.lineJoin="round",e.miterLimit=10,e.strokeStyle="".concat(t).concat((0,a.opacityToHex)(n))}function J(e,t){var n;this.isEditing=!0,_classPrivateFieldGet(this,v)||(_classPrivateFieldSet(this,v,!0),_classPrivateMethodGet(this,D,oe).call(this),this.thickness||(this.thickness=r._defaultThickness),this.color||(this.color=r._defaultColor||o.AnnotationEditor._defaultLineColor),null!==(n=this.opacity)&&void 0!==n||(this.opacity=r._defaultOpacity)),this.currentPath.push([e,t]),_classPrivateFieldSet(this,_,null),_classPrivateMethodGet(this,k,$).call(this),this.ctx.beginPath(),this.ctx.moveTo(e,t),_classPrivateFieldSet(this,w,(()=>{_classPrivateFieldGet(this,w)&&(_classPrivateFieldGet(this,_)&&(this.isEmpty()?(this.ctx.setTransform(1,0,0,1,0,0),this.ctx.clearRect(0,0,this.canvas.width,this.canvas.height)):_classPrivateMethodGet(this,T,te).call(this),this.ctx.lineTo(..._classPrivateFieldGet(this,_)),_classPrivateFieldSet(this,_,null),this.ctx.stroke()),window.requestAnimationFrame(_classPrivateFieldGet(this,w)))})),window.requestAnimationFrame(_classPrivateFieldGet(this,w))}function Q(e,t){const[n,r]=this.currentPath.at(-1);e===n&&t===r||(this.currentPath.push([e,t]),_classPrivateFieldSet(this,_,[e,t]))}function ee(e,t){this.ctx.closePath(),_classPrivateFieldSet(this,w,null),e=Math.min(Math.max(e,0),this.canvas.width),t=Math.min(Math.max(t,0),this.canvas.height);const[n,i]=this.currentPath.at(-1);let o;if(e===n&&t===i||this.currentPath.push([e,t]),1!==this.currentPath.length)o=(0,s.fitCurve)(this.currentPath,30,null);else{const n=[e,t];o=[[n,n.slice(),n.slice(),n]]}const a=_classStaticPrivateMethodGet(r,r,le).call(r,o);this.currentPath.length=0,this.addCommands({cmd:()=>{this.paths.push(o),this.bezierPath2D.push(a),this.rebuild()},undo:()=>{this.paths.pop(),this.bezierPath2D.pop(),0===this.paths.length?this.remove():(this.canvas||(_classPrivateMethodGet(this,O,re).call(this),_classPrivateMethodGet(this,R,ie).call(this)),_classPrivateMethodGet(this,W,fe).call(this))},mustExec:!0})}function te(){if(this.isEmpty())return void _classPrivateMethodGet(this,L,ae).call(this);_classPrivateMethodGet(this,k,$).call(this);const{canvas:e,ctx:t}=this;t.setTransform(1,0,0,1,0,0),t.clearRect(0,0,e.width,e.height),_classPrivateMethodGet(this,L,ae).call(this);for(const n of this.bezierPath2D)t.stroke(n)}function ne(e){_classPrivateMethodGet(this,G,ee).call(this,e.offsetX,e.offsetY),this.canvas.removeEventListener("pointerleave",_classPrivateFieldGet(this,f)),this.canvas.removeEventListener("pointermove",_classPrivateFieldGet(this,p)),this.addToAnnotationStorage()}function re(){this.canvas=document.createElement("canvas"),this.canvas.width=this.canvas.height=0,this.canvas.className="inkEditorCanvas",r._l10nPromise.get("editor_ink_canvas_aria_label").then((e=>{var t;return null===(t=this.canvas)||void 0===t?void 0:t.setAttribute("aria-label",e)})),this.div.append(this.canvas),this.ctx=this.canvas.getContext("2d")}function ie(){let e=null;_classPrivateFieldSet(this,b,new ResizeObserver((t=>{const n=t[0].contentRect;n.width&&n.height&&(null!==e&&clearTimeout(e),e=setTimeout((()=>{this.fixDims(),e=null}),c),this.setDimensions(n.width,n.height))}))),_classPrivateFieldGet(this,b).observe(this.div)}function oe(){if(!_classPrivateFieldGet(this,v))return;const[e,t]=this.parentDimensions;this.canvas.width=Math.ceil(this.width*e),this.canvas.height=Math.ceil(this.height*t),_classPrivateMethodGet(this,L,ae).call(this)}function se(e,t){const n=_classPrivateMethodGet(this,U,pe).call(this),r=(e-n)/_classPrivateFieldGet(this,h),i=(t-n)/_classPrivateFieldGet(this,d);this.scaleFactor=Math.min(r,i)}function ae(){const e=_classPrivateMethodGet(this,U,pe).call(this)/2;this.ctx.setTransform(this.scaleFactor,0,0,this.scaleFactor,this.translationX*this.scaleFactor+e,this.translationY*this.scaleFactor+e)}function le(e){const t=new Path2D;for(let n=0,r=e.length;n<r;n++){const[r,i,o,s]=e[n];0===n&&t.moveTo(...r),t.bezierCurveTo(i[0],i[1],o[0],o[1],s[0],s[1])}return t}function ce(e,t,n,r){const i=[],o=this.thickness/2;let s,a;for(const l of this.paths){s=[],a=[];for(let i=0,c=l.length;i<c;i++){const[c,u,d,h]=l[i],p=e*(c[0]+t)+o,f=r-e*(c[1]+n)-o,g=e*(u[0]+t)+o,m=r-e*(u[1]+n)-o,y=e*(d[0]+t)+o,v=r-e*(d[1]+n)-o,_=e*(h[0]+t)+o,b=r-e*(h[1]+n)-o;0===i&&(s.push(p,f),a.push(p,f)),s.push(g,m,y,v,_,b),_classPrivateMethodGet(this,F,ue).call(this,p,f,g,m,y,v,_,b,4,a)}i.push({bezier:s,points:a})}return i}function ue(e,t,n,r,i,o,s,a,l,c){if(_classPrivateMethodGet(this,z,de).call(this,e,t,n,r,i,o,s,a))c.push(s,a);else{for(let u=1;u<l-1;u++){const d=u/l,h=1-d;let p=d*e+h*n,f=d*t+h*r,g=d*n+h*i,m=d*r+h*o;p=d*p+h*g,f=d*f+h*m,g=d*g+h*(d*i+h*s),m=d*m+h*(d*o+h*a),p=d*p+h*g,f=d*f+h*m,c.push(p,f)}c.push(s,a)}}function de(e,t,n,r,i,o,s,a){const l=(3*n-2*e-s)**2,c=(3*r-2*t-a)**2,u=(3*i-e-2*s)**2,d=(3*o-t-2*a)**2;return Math.max(l,u)+Math.max(c,d)<=10}function he(){let e=1/0,t=-1/0,n=1/0,r=-1/0;for(const o of this.paths)for(const[s,a,l,c]of o){const o=i.Util.bezierBoundingBox(...s,...a,...l,...c);e=Math.min(e,o[0]),n=Math.min(n,o[1]),t=Math.max(t,o[2]),r=Math.max(r,o[3])}return[e,n,t,r]}function pe(){return _classPrivateFieldGet(this,y)?Math.ceil(this.thickness*this.parentScale):0}function fe(){let e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];if(this.isEmpty())return;if(!_classPrivateFieldGet(this,y))return void _classPrivateMethodGet(this,T,te).call(this);const t=_classPrivateMethodGet(this,B,he).call(this),n=_classPrivateMethodGet(this,U,pe).call(this);_classPrivateFieldSet(this,h,Math.max(l,t[2]-t[0])),_classPrivateFieldSet(this,d,Math.max(l,t[3]-t[1]));const r=Math.ceil(n+_classPrivateFieldGet(this,h)*this.scaleFactor),i=Math.ceil(n+_classPrivateFieldGet(this,d)*this.scaleFactor),[o,s]=this.parentDimensions;this.width=r/o,this.height=i/s,_classPrivateFieldSet(this,u,r/i),_classPrivateMethodGet(this,H,ge).call(this);const a=this.translationX,c=this.translationY;this.translationX=-t[0],this.translationY=-t[1],_classPrivateMethodGet(this,D,oe).call(this),_classPrivateMethodGet(this,T,te).call(this),_classPrivateFieldSet(this,x,r),_classPrivateFieldSet(this,S,i),this.setDims(r,i);const p=e?n/this.scaleFactor/2:0;this.translate(a-this.translationX-p,c-this.translationY-p)}function ge(){const{style:e}=this.div;_classPrivateFieldGet(this,u)>=1?(e.minHeight="".concat(l,"px"),e.minWidth="".concat(Math.round(_classPrivateFieldGet(this,u)*l),"px")):(e.minWidth="".concat(l,"px"),e.minHeight="".concat(Math.round(l/_classPrivateFieldGet(this,u)),"px"))}r=q,_defineProperty(q,"_defaultColor",null),_defineProperty(q,"_defaultOpacity",1),_defineProperty(q,"_defaultThickness",1),_defineProperty(q,"_l10nPromise",void 0),_defineProperty(q,"_type","ink"),t.InkEditor=q},(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.fitCurve=void 0;const r=n(31);t.fitCurve=r},e=>{function t(e,i,o,s,a){var c,u,d,h,p,f,g,m,y,v,_,b,x;if(2===e.length)return b=l.vectorLen(l.subtract(e[0],e[1]))/3,[c=[e[0],l.addArrays(e[0],l.mulItems(i,b)),l.addArrays(e[1],l.mulItems(o,b)),e[1]]];if(u=function(e){var t,n,r,i=[];return e.forEach(((e,o)=>{t=o?n+l.vectorLen(l.subtract(e,r)):0,i.push(t),n=t,r=e})),i=i.map((e=>e/n))}(e),[c,h,f]=n(e,u,u,i,o,a),0===h||h<s)return[c];if(h<s*s)for(d=u,p=h,g=f,x=0;x<20;x++){if(d=r(c,e,d),[c,h,f]=n(e,u,d,i,o,a),h<s)return[c];if(f===g){let e=h/p;if(e>.9999&&e<1.0001)break}p=h,g=f}return _=[],(m=l.subtract(e[f-1],e[f+1])).every((e=>0===e))&&(m=l.subtract(e[f-1],e[f]),[m[0],m[1]]=[-m[1],m[0]]),y=l.normalize(m),v=l.mulItems(y,-1),_=(_=_.concat(t(e.slice(0,f+1),i,y,s,a))).concat(t(e.slice(f),v,o,s,a))}function n(e,t,n,r,i,a){var u,d,h;return u=function(e,t,n,r){var i,o,s,a,u,d,h,p,f,g,m,y,v,_,b,x,S,w=e[0],E=e[e.length-1];for(i=[w,null,null,E],o=l.zeros_Xx2x2(t.length),v=0,_=t.length;v<_;v++)S=1-(x=t[v]),(s=o[v])[0]=l.mulItems(n,3*x*(S*S)),s[1]=l.mulItems(r,3*S*(x*x));for(a=[[0,0],[0,0]],u=[0,0],v=0,_=e.length;v<_;v++)x=t[v],s=o[v],a[0][0]+=l.dot(s[0],s[0]),a[0][1]+=l.dot(s[0],s[1]),a[1][0]+=l.dot(s[0],s[1]),a[1][1]+=l.dot(s[1],s[1]),b=l.subtract(e[v],c.q([w,w,E,E],x)),u[0]+=l.dot(s[0],b),u[1]+=l.dot(s[1],b);return d=a[0][0]*a[1][1]-a[1][0]*a[0][1],h=a[0][0]*u[1]-a[1][0]*u[0],p=u[0]*a[1][1]-u[1]*a[0][1],f=0===d?0:p/d,g=0===d?0:h/d,y=l.vectorLen(l.subtract(w,E)),f<(m=1e-6*y)||g<m?(i[1]=l.addArrays(w,l.mulItems(n,y/3)),i[2]=l.addArrays(E,l.mulItems(r,y/3))):(i[1]=l.addArrays(w,l.mulItems(n,f)),i[2]=l.addArrays(E,l.mulItems(r,g))),i}(e,n,r,i),[d,h]=function(e,t,n){var r,i,a,u,d,h,p,f;i=0,a=Math.floor(e.length/2);const g=o(t,10);for(d=0,h=e.length;d<h;d++)p=e[d],f=s(0,n[d],g,10),(r=(u=l.subtract(c.q(t,f),p))[0]*u[0]+u[1]*u[1])>i&&(i=r,a=d);return[i,a]}(e,u,t),a&&a({bez:u,points:e,params:t,maxErr:d,maxPoint:h}),[u,d,h]}function r(e,t,n){return n.map(((n,r)=>i(e,t[r],n)))}function i(e,t,n){var r=l.subtract(c.q(e,n),t),i=c.qprime(e,n),o=l.mulMatrix(r,i),s=l.sum(l.squareItems(i))+2*l.mulMatrix(r,c.qprimeprime(e,n));return 0===s?n:n-o/s}var o=function(e,t){for(var n,r=[0],i=e[0],o=0,s=1;s<=t;s++)n=c.q(e,s/t),o+=l.vectorLen(l.subtract(n,i)),r.push(o),i=n;return r=r.map((e=>e/o))};function s(e,t,n,r){if(t<0)return 0;if(t>1)return 1;for(var i,o,s,a,l=1;l<=r;l++)if(t<=n[l]){s=(l-1)/r,o=l/r,a=(t-(i=n[l-1]))/(n[l]-i)*(o-s)+s;break}return a}function a(e,t){return l.normalize(l.subtract(e,t))}class l{static zeros_Xx2x2(e){for(var t=[];e--;)t.push([0,0]);return t}static mulItems(e,t){return e.map((e=>e*t))}static mulMatrix(e,t){return e.reduce(((e,n,r)=>e+n*t[r]),0)}static subtract(e,t){return e.map(((e,n)=>e-t[n]))}static addArrays(e,t){return e.map(((e,n)=>e+t[n]))}static addItems(e,t){return e.map((e=>e+t))}static sum(e){return e.reduce(((e,t)=>e+t))}static dot(e,t){return l.mulMatrix(e,t)}static vectorLen(e){return Math.hypot(...e)}static divItems(e,t){return e.map((e=>e/t))}static squareItems(e){return e.map((e=>e*e))}static normalize(e){return this.divItems(e,this.vectorLen(e))}}class c{static q(e,t){var n=1-t,r=l.mulItems(e[0],n*n*n),i=l.mulItems(e[1],3*n*n*t),o=l.mulItems(e[2],3*n*t*t),s=l.mulItems(e[3],t*t*t);return l.addArrays(l.addArrays(r,i),l.addArrays(o,s))}static qprime(e,t){var n=1-t,r=l.mulItems(l.subtract(e[1],e[0]),3*n*n),i=l.mulItems(l.subtract(e[2],e[1]),6*n*t),o=l.mulItems(l.subtract(e[3],e[2]),3*t*t);return l.addArrays(l.addArrays(r,i),o)}static qprimeprime(e,t){return l.addArrays(l.mulItems(l.addArrays(l.subtract(e[2],l.mulItems(e[1],2)),e[0]),6*(1-t)),l.mulItems(l.addArrays(l.subtract(e[3],l.mulItems(e[2],2)),e[1]),6*t))}}e.exports=function(e,n,r){if(!Array.isArray(e))throw new TypeError("First argument should be an array");if(e.forEach((t=>{if(!Array.isArray(t)||t.some((e=>"number"!==typeof e))||t.length!==e[0].length)throw Error("Each point should be an array of numbers. Each point should have the same amount of numbers.")})),(e=e.filter(((t,n)=>0===n||!t.every(((t,r)=>t===e[n-1][r]))))).length<2)return[];const i=e.length,o=a(e[1],e[0]),s=a(e[i-2],e[i-1]);return t(e,o,s,n,r)},e.exports.fitCubic=t,e.exports.createTangent=a},(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.AnnotationLayer=void 0;var r=n(1),i=n(6),o=n(3),s=n(33),a=n(34);const l=1e3,c=new WeakSet;function u(e){return{width:e[2]-e[0],height:e[3]-e[1]}}class d{static create(e){switch(e.data.annotationType){case r.AnnotationType.LINK:return new g(e);case r.AnnotationType.TEXT:return new v(e);case r.AnnotationType.WIDGET:switch(e.data.fieldType){case"Tx":return new b(e);case"Btn":return e.data.radioButton?new S(e):e.data.checkBox?new x(e):new w(e);case"Ch":return new E(e)}return new _(e);case r.AnnotationType.POPUP:return new P(e);case r.AnnotationType.FREETEXT:return new A(e);case r.AnnotationType.LINE:return new k(e);case r.AnnotationType.SQUARE:return new j(e);case r.AnnotationType.CIRCLE:return new I(e);case r.AnnotationType.POLYLINE:return new G(e);case r.AnnotationType.CARET:return new M(e);case r.AnnotationType.INK:return new O(e);case r.AnnotationType.POLYGON:return new T(e);case r.AnnotationType.HIGHLIGHT:return new R(e);case r.AnnotationType.UNDERLINE:return new D(e);case r.AnnotationType.SQUIGGLY:return new N(e);case r.AnnotationType.STRIKEOUT:return new L(e);case r.AnnotationType.STAMP:return new V(e);case r.AnnotationType.FILEATTACHMENT:return new F(e);default:return new h(e)}}}class h{constructor(e){let{isRenderable:t=!1,ignoreBorder:n=!1,createQuadrilaterals:r=!1}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.isRenderable=t,this.data=e.data,this.layer=e.layer,this.page=e.page,this.viewport=e.viewport,this.linkService=e.linkService,this.downloadManager=e.downloadManager,this.imageResourcesPath=e.imageResourcesPath,this.renderForms=e.renderForms,this.svgFactory=e.svgFactory,this.annotationStorage=e.annotationStorage,this.enableScripting=e.enableScripting,this.hasJSActions=e.hasJSActions,this._fieldObjects=e.fieldObjects,t&&(this.container=this._createContainer(n)),r&&(this.quadrilaterals=this._createQuadrilaterals(n))}_createContainer(){let e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];const{data:t,page:n,viewport:i}=this,o=document.createElement("section");o.setAttribute("data-annotation-id",t.id);const{pageWidth:s,pageHeight:a,pageX:l,pageY:c}=i.rawDims,{width:d,height:h}=u(t.rect),p=r.Util.normalizeRect([t.rect[0],n.view[3]-t.rect[1]+n.view[1],t.rect[2],n.view[3]-t.rect[3]+n.view[1]]);if(!e&&t.borderStyle.width>0){o.style.borderWidth="".concat(t.borderStyle.width,"px");const e=t.borderStyle.horizontalCornerRadius,n=t.borderStyle.verticalCornerRadius;if(e>0||n>0){const t="calc(".concat(e,"px * var(--scale-factor)) / calc(").concat(n,"px * var(--scale-factor))");o.style.borderRadius=t}else if(this instanceof S){const e="calc(".concat(d,"px * var(--scale-factor)) / calc(").concat(h,"px * var(--scale-factor))");o.style.borderRadius=e}switch(t.borderStyle.style){case r.AnnotationBorderStyleType.SOLID:o.style.borderStyle="solid";break;case r.AnnotationBorderStyleType.DASHED:o.style.borderStyle="dashed";break;case r.AnnotationBorderStyleType.BEVELED:(0,r.warn)("Unimplemented border style: beveled");break;case r.AnnotationBorderStyleType.INSET:(0,r.warn)("Unimplemented border style: inset");break;case r.AnnotationBorderStyleType.UNDERLINE:o.style.borderBottomStyle="solid"}const i=t.borderColor||null;i?o.style.borderColor=r.Util.makeHexColor(0|i[0],0|i[1],0|i[2]):o.style.borderWidth=0}o.style.left="".concat(100*(p[0]-l)/s,"%"),o.style.top="".concat(100*(p[1]-c)/a,"%");const{rotation:f}=t;return t.hasOwnCanvas||0===f?(o.style.width="".concat(100*d/s,"%"),o.style.height="".concat(100*h/a,"%")):this.setRotation(f,o),o}setRotation(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.container;const{pageWidth:n,pageHeight:r}=this.viewport.rawDims,{width:i,height:o}=u(this.data.rect);let s,a;e%180===0?(s=100*i/n,a=100*o/r):(s=100*o/n,a=100*i/r),t.style.width="".concat(s,"%"),t.style.height="".concat(a,"%"),t.setAttribute("data-main-rotation",(360-e)%360)}get _commonActions(){const e=(e,t,n)=>{const r=n.detail[e];n.target.style[t]=s.ColorConverters["".concat(r[0],"_HTML")](r.slice(1))};return(0,r.shadow)(this,"_commonActions",{display:e=>{const t=e.detail.display%2===1;this.container.style.visibility=t?"hidden":"visible",this.annotationStorage.setValue(this.data.id,{hidden:t,print:0===e.detail.display||3===e.detail.display})},print:e=>{this.annotationStorage.setValue(this.data.id,{print:e.detail.print})},hidden:e=>{this.container.style.visibility=e.detail.hidden?"hidden":"visible",this.annotationStorage.setValue(this.data.id,{hidden:e.detail.hidden})},focus:e=>{setTimeout((()=>e.target.focus({preventScroll:!1})),0)},userName:e=>{e.target.title=e.detail.userName},readonly:e=>{e.detail.readonly?e.target.setAttribute("readonly",""):e.target.removeAttribute("readonly")},required:e=>{this._setRequired(e.target,e.detail.required)},bgColor:t=>{e("bgColor","backgroundColor",t)},fillColor:t=>{e("fillColor","backgroundColor",t)},fgColor:t=>{e("fgColor","color",t)},textColor:t=>{e("textColor","color",t)},borderColor:t=>{e("borderColor","borderColor",t)},strokeColor:t=>{e("strokeColor","borderColor",t)},rotation:e=>{const t=e.detail.rotation;this.setRotation(t),this.annotationStorage.setValue(this.data.id,{rotation:t})}})}_dispatchEventFromSandbox(e,t){const n=this._commonActions;for(const r of Object.keys(t.detail)){const i=e[r]||n[r];null===i||void 0===i||i(t)}}_setDefaultPropertiesFromJS(e){if(!this.enableScripting)return;const t=this.annotationStorage.getRawValue(this.data.id);if(!t)return;const n=this._commonActions;for(const[r,i]of Object.entries(t)){const o=n[r];o&&(o({detail:{[r]:i},target:e}),delete t[r])}}_createQuadrilaterals(){let e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];if(!this.data.quadPoints)return null;const t=[],n=this.data.rect;for(const r of this.data.quadPoints)this.data.rect=[r[2].x,r[2].y,r[1].x,r[1].y],t.push(this._createContainer(e));return this.data.rect=n,t}_createPopup(e,t){let n=this.container;this.quadrilaterals&&(e=e||this.quadrilaterals,n=this.quadrilaterals[0]),e||((e=document.createElement("div")).className="popupTriggerArea",n.append(e));const r=new C({container:n,trigger:e,color:t.color,titleObj:t.titleObj,modificationDate:t.modificationDate,contentsObj:t.contentsObj,richText:t.richText,hideWrapper:!0}).render();r.style.left="100%",n.append(r)}_renderQuadrilaterals(e){for(const t of this.quadrilaterals)t.className=e;return this.quadrilaterals}render(){(0,r.unreachable)("Abstract method `AnnotationElement.render` called")}_getElementsByName(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;const n=[];if(this._fieldObjects){const i=this._fieldObjects[e];if(i)for(const{page:e,id:o,exportValues:s}of i){if(-1===e)continue;if(o===t)continue;const i="string"===typeof s?s:null,a=document.querySelector('[data-element-id="'.concat(o,'"]'));!a||c.has(a)?n.push({id:o,exportValue:i,domElement:a}):(0,r.warn)("_getElementsByName - element not allowed: ".concat(o))}return n}for(const r of document.getElementsByName(e)){const{exportValue:e}=r,i=r.getAttribute("data-element-id");i!==t&&c.has(r)&&n.push({id:i,exportValue:e,domElement:r})}return n}}var p=new WeakSet,f=new WeakSet;class g extends h{constructor(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;super(e,{isRenderable:!0,ignoreBorder:!(null===t||void 0===t||!t.ignoreBorder),createQuadrilaterals:!0}),_classPrivateMethodInitSpec(this,f),_classPrivateMethodInitSpec(this,p),this.isTooltipOnly=e.data.isTooltipOnly}render(){const{data:e,linkService:t}=this,n=document.createElement("a");n.setAttribute("data-element-id",e.id);let r=!1;return e.url?(t.addLinkAttributes(n,e.url,e.newWindow),r=!0):e.action?(this._bindNamedAction(n,e.action),r=!0):e.attachment?(this._bindAttachment(n,e.attachment),r=!0):e.setOCGState?(_classPrivateMethodGet(this,f,y).call(this,n,e.setOCGState),r=!0):e.dest?(this._bindLink(n,e.dest),r=!0):(e.actions&&(e.actions.Action||e.actions["Mouse Up"]||e.actions["Mouse Down"])&&this.enableScripting&&this.hasJSActions&&(this._bindJSAction(n,e),r=!0),e.resetForm?(this._bindResetFormAction(n,e.resetForm),r=!0):this.isTooltipOnly&&!r&&(this._bindLink(n,""),r=!0)),this.quadrilaterals?this._renderQuadrilaterals("linkAnnotation").map(((e,t)=>{const r=0===t?n:n.cloneNode();return e.append(r),e})):(this.container.className="linkAnnotation",r&&this.container.append(n),this.container)}_bindLink(e,t){e.href=this.linkService.getDestinationHash(t),e.onclick=()=>(t&&this.linkService.goToDestination(t),!1),(t||""===t)&&_classPrivateMethodGet(this,p,m).call(this)}_bindNamedAction(e,t){e.href=this.linkService.getAnchorUrl(""),e.onclick=()=>(this.linkService.executeNamedAction(t),!1),_classPrivateMethodGet(this,p,m).call(this)}_bindAttachment(e,t){e.href=this.linkService.getAnchorUrl(""),e.onclick=()=>{var e;return null===(e=this.downloadManager)||void 0===e||e.openOrDownloadData(this.container,t.content,t.filename),!1},_classPrivateMethodGet(this,p,m).call(this)}_bindJSAction(e,t){e.href=this.linkService.getAnchorUrl("");const n=new Map([["Action","onclick"],["Mouse Up","onmouseup"],["Mouse Down","onmousedown"]]);for(const r of Object.keys(t.actions)){const i=n.get(r);i&&(e[i]=()=>{var e;return null===(e=this.linkService.eventBus)||void 0===e||e.dispatch("dispatcheventinsandbox",{source:this,detail:{id:t.id,name:r}}),!1})}e.onclick||(e.onclick=()=>!1),_classPrivateMethodGet(this,p,m).call(this)}_bindResetFormAction(e,t){const n=e.onclick;if(n||(e.href=this.linkService.getAnchorUrl("")),_classPrivateMethodGet(this,p,m).call(this),!this._fieldObjects)return(0,r.warn)('_bindResetFormAction - "resetForm" action not supported, ensure that the `fieldObjects` parameter is provided.'),void(n||(e.onclick=()=>!1));e.onclick=()=>{null===n||void 0===n||n();const{fields:e,refs:i,include:o}=t,s=[];if(0!==e.length||0!==i.length){const t=new Set(i);for(const n of e){const e=this._fieldObjects[n]||[];for(const{id:n}of e)t.add(n)}for(const e of Object.values(this._fieldObjects))for(const n of e)t.has(n.id)===o&&s.push(n)}else for(const t of Object.values(this._fieldObjects))s.push(...t);const a=this.annotationStorage,l=[];for(const t of s){const{id:e}=t;switch(l.push(e),t.type){case"text":{const n=t.defaultValue||"";a.setValue(e,{value:n});break}case"checkbox":case"radiobutton":{const n=t.defaultValue===t.exportValues;a.setValue(e,{value:n});break}case"combobox":case"listbox":{const n=t.defaultValue||"";a.setValue(e,{value:n});break}default:continue}const n=document.querySelector('[data-element-id="'.concat(e,'"]'));n&&(c.has(n)?n.dispatchEvent(new Event("resetform")):(0,r.warn)("_bindResetFormAction - element not allowed: ".concat(e)))}var u;return this.enableScripting&&(null===(u=this.linkService.eventBus)||void 0===u||u.dispatch("dispatcheventinsandbox",{source:this,detail:{id:"app",ids:l,name:"ResetForm"}})),!1}}}function m(){this.container.setAttribute("data-internal-link","")}function y(e,t){e.href=this.linkService.getAnchorUrl(""),e.onclick=()=>(this.linkService.executeSetOCGState(t),!1),_classPrivateMethodGet(this,p,m).call(this)}class v extends h{constructor(e){var t,n,r;super(e,{isRenderable:!!(e.data.hasPopup||null!==(t=e.data.titleObj)&&void 0!==t&&t.str||null!==(n=e.data.contentsObj)&&void 0!==n&&n.str||null!==(r=e.data.richText)&&void 0!==r&&r.str)})}render(){this.container.className="textAnnotation";const e=document.createElement("img");return e.src=this.imageResourcesPath+"annotation-"+this.data.name.toLowerCase()+".svg",e.alt="[{{type}} Annotation]",e.dataset.l10nId="text_annotation_type",e.dataset.l10nArgs=JSON.stringify({type:this.data.name}),this.data.hasPopup||this._createPopup(e,this.data),this.container.append(e),this.container}}class _ extends h{render(){return this.data.alternativeText&&(this.container.title=this.data.alternativeText),this.container}_getKeyModifier(e){const{isWin:t,isMac:n}=r.FeatureTest.platform;return t&&e.ctrlKey||n&&e.metaKey}_setEventListener(e,t,n,r){t.includes("mouse")?e.addEventListener(t,(e=>{var t;null===(t=this.linkService.eventBus)||void 0===t||t.dispatch("dispatcheventinsandbox",{source:this,detail:{id:this.data.id,name:n,value:r(e),shift:e.shiftKey,modifier:this._getKeyModifier(e)}})})):e.addEventListener(t,(e=>{var t;null===(t=this.linkService.eventBus)||void 0===t||t.dispatch("dispatcheventinsandbox",{source:this,detail:{id:this.data.id,name:n,value:r(e)}})}))}_setEventListeners(e,t,n){for(const[i,o]of t){var r;("Action"===o||null!==(r=this.data.actions)&&void 0!==r&&r[o])&&this._setEventListener(e,i,o,n)}}_setBackgroundColor(e){const t=this.data.backgroundColor||null;e.style.backgroundColor=null===t?"transparent":r.Util.makeHexColor(t[0],t[1],t[2])}_setTextStyle(e){const t=["left","center","right"],{fontColor:n}=this.data.defaultAppearanceData,i=this.data.defaultAppearanceData.fontSize||9,o=e.style;let s;const a=e=>Math.round(10*e)/10;if(this.data.multiLine){const e=Math.abs(this.data.rect[3]-this.data.rect[1]-2),t=e/(Math.round(e/(r.LINE_FACTOR*i))||1);s=Math.min(i,a(t/r.LINE_FACTOR))}else{const e=Math.abs(this.data.rect[3]-this.data.rect[1]-2);s=Math.min(i,a(e/r.LINE_FACTOR))}o.fontSize="calc(".concat(s,"px * var(--scale-factor))"),o.color=r.Util.makeHexColor(n[0],n[1],n[2]),null!==this.data.textAlignment&&(o.textAlign=t[this.data.textAlignment])}_setRequired(e,t){t?e.setAttribute("required",!0):e.removeAttribute("required"),e.setAttribute("aria-required",t)}}class b extends _{constructor(e){super(e,{isRenderable:e.renderForms||!e.data.hasAppearance&&!!e.data.fieldValue})}setPropertyOnSiblings(e,t,n,r){const i=this.annotationStorage;for(const o of this._getElementsByName(e.name,e.id))o.domElement&&(o.domElement[t]=n),i.setValue(o.id,{[r]:n})}render(){const e=this.annotationStorage,t=this.data.id;this.container.className="textWidgetAnnotation";let n=null;if(this.renderForms){const i=e.getValue(t,{value:this.data.fieldValue});let o=i.formattedValue||i.value||"";const s=e.getValue(t,{charLimit:this.data.maxLen}).charLimit;s&&o.length>s&&(o=o.slice(0,s));const a={userValue:o,formattedValue:null,lastCommittedValue:null,commitKey:1};this.data.multiLine?(n=document.createElement("textarea"),n.textContent=o,this.data.doNotScroll&&(n.style.overflowY="hidden")):(n=document.createElement("input"),n.type="text",n.setAttribute("value",o),this.data.doNotScroll&&(n.style.overflowX="hidden")),c.add(n),n.setAttribute("data-element-id",t),n.disabled=this.data.readOnly,n.name=this.data.fieldName,n.tabIndex=l,this._setRequired(n,this.data.required),s&&(n.maxLength=s),n.addEventListener("input",(r=>{e.setValue(t,{value:r.target.value}),this.setPropertyOnSiblings(n,"value",r.target.value,"value")})),n.addEventListener("resetform",(e=>{var t;const r=null!==(t=this.data.defaultFieldValue)&&void 0!==t?t:"";n.value=a.userValue=r,a.formattedValue=null}));let u=e=>{const{formattedValue:t}=a;null!==t&&void 0!==t&&(e.target.value=t),e.target.scrollLeft=0};if(this.enableScripting&&this.hasJSActions){var r;n.addEventListener("focus",(e=>{const{target:t}=e;a.userValue&&(t.value=a.userValue),a.lastCommittedValue=t.value,a.commitKey=1})),n.addEventListener("updatefromsandbox",(n=>{const r={value(n){var r;a.userValue=null!==(r=n.detail.value)&&void 0!==r?r:"",e.setValue(t,{value:a.userValue.toString()}),n.target.value=a.userValue},formattedValue(n){const{formattedValue:r}=n.detail;a.formattedValue=r,null!==r&&void 0!==r&&n.target!==document.activeElement&&(n.target.value=r),e.setValue(t,{formattedValue:r})},selRange(e){e.target.setSelectionRange(...e.detail.selRange)},charLimit:n=>{var r;const{charLimit:i}=n.detail,{target:o}=n;if(0===i)return void o.removeAttribute("maxLength");o.setAttribute("maxLength",i);let s=a.userValue;!s||s.length<=i||(s=s.slice(0,i),o.value=a.userValue=s,e.setValue(t,{value:s}),null===(r=this.linkService.eventBus)||void 0===r||r.dispatch("dispatcheventinsandbox",{source:this,detail:{id:t,name:"Keystroke",value:s,willCommit:!0,commitKey:1,selStart:o.selectionStart,selEnd:o.selectionEnd}}))}};this._dispatchEventFromSandbox(r,n)})),n.addEventListener("keydown",(e=>{var n;a.commitKey=1;let r=-1;if("Escape"===e.key?r=0:"Enter"!==e.key||this.data.multiLine?"Tab"===e.key&&(a.commitKey=3):r=2,-1===r)return;const{value:i}=e.target;a.lastCommittedValue!==i&&(a.lastCommittedValue=i,a.userValue=i,null===(n=this.linkService.eventBus)||void 0===n||n.dispatch("dispatcheventinsandbox",{source:this,detail:{id:t,name:"Keystroke",value:i,willCommit:!0,commitKey:r,selStart:e.target.selectionStart,selEnd:e.target.selectionEnd}}))}));const i=u;u=null,n.addEventListener("blur",(e=>{if(!e.relatedTarget)return;const{value:n}=e.target;var r;a.userValue=n,a.lastCommittedValue!==n&&(null===(r=this.linkService.eventBus)||void 0===r||r.dispatch("dispatcheventinsandbox",{source:this,detail:{id:t,name:"Keystroke",value:n,willCommit:!0,commitKey:a.commitKey,selStart:e.target.selectionStart,selEnd:e.target.selectionEnd}})),i(e)})),null!==(r=this.data.actions)&&void 0!==r&&r.Keystroke&&n.addEventListener("beforeinput",(e=>{var n;a.lastCommittedValue=null;const{data:r,target:i}=e,{value:o,selectionStart:s,selectionEnd:l}=i;let c=s,u=l;switch(e.inputType){case"deleteWordBackward":{const e=o.substring(0,s).match(/\w*[^\w]*$/);e&&(c-=e[0].length);break}case"deleteWordForward":{const e=o.substring(s).match(/^[^\w]*\w*/);e&&(u+=e[0].length);break}case"deleteContentBackward":s===l&&(c-=1);break;case"deleteContentForward":s===l&&(u+=1)}e.preventDefault(),null===(n=this.linkService.eventBus)||void 0===n||n.dispatch("dispatcheventinsandbox",{source:this,detail:{id:t,name:"Keystroke",value:o,change:r||"",willCommit:!1,selStart:c,selEnd:u}})})),this._setEventListeners(n,[["focus","Focus"],["blur","Blur"],["mousedown","Mouse Down"],["mouseenter","Mouse Enter"],["mouseleave","Mouse Exit"],["mouseup","Mouse Up"]],(e=>e.target.value))}if(u&&n.addEventListener("blur",u),this.data.comb){const e=(this.data.rect[2]-this.data.rect[0])/s;n.classList.add("comb"),n.style.letterSpacing="calc(".concat(e,"px * var(--scale-factor) - 1ch)")}}else n=document.createElement("div"),n.textContent=this.data.fieldValue,n.style.verticalAlign="middle",n.style.display="table-cell";return this._setTextStyle(n),this._setBackgroundColor(n),this._setDefaultPropertiesFromJS(n),this.container.append(n),this.container}}class x extends _{constructor(e){super(e,{isRenderable:e.renderForms})}render(){const e=this.annotationStorage,t=this.data,n=t.id;let r=e.getValue(n,{value:t.exportValue===t.fieldValue}).value;"string"===typeof r&&(r="Off"!==r,e.setValue(n,{value:r})),this.container.className="buttonWidgetAnnotation checkBox";const i=document.createElement("input");return c.add(i),i.setAttribute("data-element-id",n),i.disabled=t.readOnly,this._setRequired(i,this.data.required),i.type="checkbox",i.name=t.fieldName,r&&i.setAttribute("checked",!0),i.setAttribute("exportValue",t.exportValue),i.tabIndex=l,i.addEventListener("change",(r=>{const{name:i,checked:o}=r.target;for(const s of this._getElementsByName(i,n)){const n=o&&s.exportValue===t.exportValue;s.domElement&&(s.domElement.checked=n),e.setValue(s.id,{value:n})}e.setValue(n,{value:o})})),i.addEventListener("resetform",(e=>{const n=t.defaultFieldValue||"Off";e.target.checked=n===t.exportValue})),this.enableScripting&&this.hasJSActions&&(i.addEventListener("updatefromsandbox",(t=>{const r={value(t){t.target.checked="Off"!==t.detail.value,e.setValue(n,{value:t.target.checked})}};this._dispatchEventFromSandbox(r,t)})),this._setEventListeners(i,[["change","Validate"],["change","Action"],["focus","Focus"],["blur","Blur"],["mousedown","Mouse Down"],["mouseenter","Mouse Enter"],["mouseleave","Mouse Exit"],["mouseup","Mouse Up"]],(e=>e.target.checked))),this._setBackgroundColor(i),this._setDefaultPropertiesFromJS(i),this.container.append(i),this.container}}class S extends _{constructor(e){super(e,{isRenderable:e.renderForms})}render(){this.container.className="buttonWidgetAnnotation radioButton";const e=this.annotationStorage,t=this.data,n=t.id;let r=e.getValue(n,{value:t.fieldValue===t.buttonValue}).value;"string"===typeof r&&(r=r!==t.buttonValue,e.setValue(n,{value:r}));const i=document.createElement("input");if(c.add(i),i.setAttribute("data-element-id",n),i.disabled=t.readOnly,this._setRequired(i,this.data.required),i.type="radio",i.name=t.fieldName,r&&i.setAttribute("checked",!0),i.tabIndex=l,i.addEventListener("change",(t=>{const{name:r,checked:i}=t.target;for(const o of this._getElementsByName(r,n))e.setValue(o.id,{value:!1});e.setValue(n,{value:i})})),i.addEventListener("resetform",(e=>{const n=t.defaultFieldValue;e.target.checked=null!==n&&void 0!==n&&n===t.buttonValue})),this.enableScripting&&this.hasJSActions){const r=t.buttonValue;i.addEventListener("updatefromsandbox",(t=>{const i={value:t=>{const i=r===t.detail.value;for(const r of this._getElementsByName(t.target.name)){const t=i&&r.id===n;r.domElement&&(r.domElement.checked=t),e.setValue(r.id,{value:t})}}};this._dispatchEventFromSandbox(i,t)})),this._setEventListeners(i,[["change","Validate"],["change","Action"],["focus","Focus"],["blur","Blur"],["mousedown","Mouse Down"],["mouseenter","Mouse Enter"],["mouseleave","Mouse Exit"],["mouseup","Mouse Up"]],(e=>e.target.checked))}return this._setBackgroundColor(i),this._setDefaultPropertiesFromJS(i),this.container.append(i),this.container}}class w extends g{constructor(e){super(e,{ignoreBorder:e.data.hasAppearance})}render(){const e=super.render();e.className="buttonWidgetAnnotation pushButton",this.data.alternativeText&&(e.title=this.data.alternativeText);const t=e.lastChild;return this.enableScripting&&this.hasJSActions&&t&&(this._setDefaultPropertiesFromJS(t),t.addEventListener("updatefromsandbox",(e=>{this._dispatchEventFromSandbox({},e)}))),e}}class E extends _{constructor(e){super(e,{isRenderable:e.renderForms})}render(){this.container.className="choiceWidgetAnnotation";const e=this.annotationStorage,t=this.data.id,n=e.getValue(t,{value:this.data.fieldValue}),r=document.createElement("select");c.add(r),r.setAttribute("data-element-id",t),r.disabled=this.data.readOnly,this._setRequired(r,this.data.required),r.name=this.data.fieldName,r.tabIndex=l;let i=this.data.combo&&this.data.options.length>0;this.data.combo||(r.size=this.data.options.length,this.data.multiSelect&&(r.multiple=!0)),r.addEventListener("resetform",(e=>{const t=this.data.defaultFieldValue;for(const n of r.options)n.selected=n.value===t}));for(const l of this.data.options){const e=document.createElement("option");e.textContent=l.displayValue,e.value=l.exportValue,n.value.includes(l.exportValue)&&(e.setAttribute("selected",!0),i=!1),r.append(e)}let o=null;if(i){const e=document.createElement("option");e.value=" ",e.setAttribute("hidden",!0),e.setAttribute("selected",!0),r.prepend(e),o=()=>{e.remove(),r.removeEventListener("input",o),o=null},r.addEventListener("input",o)}const s=e=>{const t=e?"value":"textContent",{options:n,multiple:i}=r;return i?Array.prototype.filter.call(n,(e=>e.selected)).map((e=>e[t])):-1===n.selectedIndex?null:n[n.selectedIndex][t]};let a=s(!1);const u=e=>{const t=e.target.options;return Array.prototype.map.call(t,(e=>({displayValue:e.textContent,exportValue:e.value})))};return this.enableScripting&&this.hasJSActions?(r.addEventListener("updatefromsandbox",(n=>{const i={value(n){var i;null===(i=o)||void 0===i||i();const l=n.detail.value,c=new Set(Array.isArray(l)?l:[l]);for(const e of r.options)e.selected=c.has(e.value);e.setValue(t,{value:s(!0)}),a=s(!1)},multipleSelection(e){r.multiple=!0},remove(n){const i=r.options,o=n.detail.remove;i[o].selected=!1,r.remove(o),i.length>0&&-1===Array.prototype.findIndex.call(i,(e=>e.selected))&&(i[0].selected=!0),e.setValue(t,{value:s(!0),items:u(n)}),a=s(!1)},clear(n){for(;0!==r.length;)r.remove(0);e.setValue(t,{value:null,items:[]}),a=s(!1)},insert(n){const{index:i,displayValue:o,exportValue:l}=n.detail.insert,c=r.children[i],d=document.createElement("option");d.textContent=o,d.value=l,c?c.before(d):r.append(d),e.setValue(t,{value:s(!0),items:u(n)}),a=s(!1)},items(n){const{items:i}=n.detail;for(;0!==r.length;)r.remove(0);for(const e of i){const{displayValue:t,exportValue:n}=e,i=document.createElement("option");i.textContent=t,i.value=n,r.append(i)}r.options.length>0&&(r.options[0].selected=!0),e.setValue(t,{value:s(!0),items:u(n)}),a=s(!1)},indices(n){const r=new Set(n.detail.indices);for(const e of n.target.options)e.selected=r.has(e.index);e.setValue(t,{value:s(!0)}),a=s(!1)},editable(e){e.target.disabled=!e.detail.editable}};this._dispatchEventFromSandbox(i,n)})),r.addEventListener("input",(n=>{var r;const i=s(!0);e.setValue(t,{value:i}),n.preventDefault(),null===(r=this.linkService.eventBus)||void 0===r||r.dispatch("dispatcheventinsandbox",{source:this,detail:{id:t,name:"Keystroke",value:a,changeEx:i,willCommit:!1,commitKey:1,keyDown:!1}})})),this._setEventListeners(r,[["focus","Focus"],["blur","Blur"],["mousedown","Mouse Down"],["mouseenter","Mouse Enter"],["mouseleave","Mouse Exit"],["mouseup","Mouse Up"],["input","Action"]],(e=>e.target.checked))):r.addEventListener("input",(function(n){e.setValue(t,{value:s(!0)})})),this.data.combo&&this._setTextStyle(r),this._setBackgroundColor(r),this._setDefaultPropertiesFromJS(r),this.container.append(r),this.container}}class P extends h{constructor(e){var t,n,r;const{data:i}=e;super(e,{isRenderable:!P.IGNORE_TYPES.has(i.parentType)&&!!(null!==(t=i.titleObj)&&void 0!==t&&t.str||null!==(n=i.contentsObj)&&void 0!==n&&n.str||null!==(r=i.richText)&&void 0!==r&&r.str)})}render(){this.container.className="popupAnnotation";const e=this.layer.querySelectorAll('[data-annotation-id="'.concat(this.data.parentId,'"]'));if(0===e.length)return this.container;const t=new C({container:this.container,trigger:Array.from(e),color:this.data.color,titleObj:this.data.titleObj,modificationDate:this.data.modificationDate,contentsObj:this.data.contentsObj,richText:this.data.richText}),n=this.page,i=r.Util.normalizeRect([this.data.parentRect[0],n.view[3]-this.data.parentRect[1]+n.view[1],this.data.parentRect[2],n.view[3]-this.data.parentRect[3]+n.view[1]]),o=i[0]+this.data.parentRect[2]-this.data.parentRect[0],s=i[1],{pageWidth:a,pageHeight:l,pageX:c,pageY:u}=this.viewport.rawDims;return this.container.style.left="".concat(100*(o-c)/a,"%"),this.container.style.top="".concat(100*(s-u)/l,"%"),this.container.append(t.render()),this.container}}_defineProperty(P,"IGNORE_TYPES",new Set(["Line","Square","Circle","PolyLine","Polygon","Ink"]));class C{constructor(e){this.container=e.container,this.trigger=e.trigger,this.color=e.color,this.titleObj=e.titleObj,this.modificationDate=e.modificationDate,this.contentsObj=e.contentsObj,this.richText=e.richText,this.hideWrapper=e.hideWrapper||!1,this.pinned=!1}render(){var e,t;const n=document.createElement("div");n.className="popupWrapper",this.hideElement=this.hideWrapper?n:this.container,this.hideElement.hidden=!0;const o=document.createElement("div");o.className="popup";const s=this.color;if(s){const e=.7*(255-s[0])+s[0],t=.7*(255-s[1])+s[1],n=.7*(255-s[2])+s[2];o.style.backgroundColor=r.Util.makeHexColor(0|e,0|t,0|n)}const l=document.createElement("h1");l.dir=this.titleObj.dir,l.textContent=this.titleObj.str,o.append(l);const c=i.PDFDateString.toDateObject(this.modificationDate);if(c){const e=document.createElement("span");e.className="popupDate",e.textContent="{{date}}, {{time}}",e.dataset.l10nId="annotation_date_string",e.dataset.l10nArgs=JSON.stringify({date:c.toLocaleDateString(),time:c.toLocaleTimeString()}),o.append(e)}if(null===(e=this.richText)||void 0===e||!e.str||null!==(t=this.contentsObj)&&void 0!==t&&t.str&&this.contentsObj.str!==this.richText.str){const e=this._formatContents(this.contentsObj);o.append(e)}else a.XfaLayer.render({xfaHtml:this.richText.html,intent:"richText",div:o}),o.lastChild.className="richText popupContent";Array.isArray(this.trigger)||(this.trigger=[this.trigger]);for(const r of this.trigger)r.addEventListener("click",this._toggle.bind(this)),r.addEventListener("mouseover",this._show.bind(this,!1)),r.addEventListener("mouseout",this._hide.bind(this,!1));return o.addEventListener("click",this._hide.bind(this,!0)),n.append(o),n}_formatContents(e){let{str:t,dir:n}=e;const r=document.createElement("p");r.className="popupContent",r.dir=n;const i=t.split(/(?:\r\n?|\n)/);for(let o=0,s=i.length;o<s;++o){const e=i[o];r.append(document.createTextNode(e)),o<s-1&&r.append(document.createElement("br"))}return r}_toggle(){this.pinned?this._hide(!0):this._show(!0)}_show(){arguments.length>0&&void 0!==arguments[0]&&arguments[0]&&(this.pinned=!0),this.hideElement.hidden&&(this.hideElement.hidden=!1,this.container.style.zIndex=parseInt(this.container.style.zIndex)+1e3)}_hide(){(!(arguments.length>0&&void 0!==arguments[0])||arguments[0])&&(this.pinned=!1),this.hideElement.hidden||this.pinned||(this.hideElement.hidden=!0,this.container.style.zIndex=parseInt(this.container.style.zIndex)-1e3)}}class A extends h{constructor(e){var t,n,r;super(e,{isRenderable:!!(e.data.hasPopup||null!==(t=e.data.titleObj)&&void 0!==t&&t.str||null!==(n=e.data.contentsObj)&&void 0!==n&&n.str||null!==(r=e.data.richText)&&void 0!==r&&r.str),ignoreBorder:!0}),this.textContent=e.data.textContent}render(){if(this.container.className="freeTextAnnotation",this.textContent){const e=document.createElement("div");e.className="annotationTextContent",e.setAttribute("role","comment");for(const t of this.textContent){const n=document.createElement("span");n.textContent=t,e.append(n)}this.container.append(e)}return this.data.hasPopup||this._createPopup(null,this.data),this.container}}class k extends h{constructor(e){var t,n,r;super(e,{isRenderable:!!(e.data.hasPopup||null!==(t=e.data.titleObj)&&void 0!==t&&t.str||null!==(n=e.data.contentsObj)&&void 0!==n&&n.str||null!==(r=e.data.richText)&&void 0!==r&&r.str),ignoreBorder:!0})}render(){this.container.className="lineAnnotation";const e=this.data,{width:t,height:n}=u(e.rect),r=this.svgFactory.create(t,n,!0),i=this.svgFactory.createElement("svg:line");return i.setAttribute("x1",e.rect[2]-e.lineCoordinates[0]),i.setAttribute("y1",e.rect[3]-e.lineCoordinates[1]),i.setAttribute("x2",e.rect[2]-e.lineCoordinates[2]),i.setAttribute("y2",e.rect[3]-e.lineCoordinates[3]),i.setAttribute("stroke-width",e.borderStyle.width||1),i.setAttribute("stroke","transparent"),i.setAttribute("fill","transparent"),r.append(i),this.container.append(r),this._createPopup(i,e),this.container}}class j extends h{constructor(e){var t,n,r;super(e,{isRenderable:!!(e.data.hasPopup||null!==(t=e.data.titleObj)&&void 0!==t&&t.str||null!==(n=e.data.contentsObj)&&void 0!==n&&n.str||null!==(r=e.data.richText)&&void 0!==r&&r.str),ignoreBorder:!0})}render(){this.container.className="squareAnnotation";const e=this.data,{width:t,height:n}=u(e.rect),r=this.svgFactory.create(t,n,!0),i=e.borderStyle.width,o=this.svgFactory.createElement("svg:rect");return o.setAttribute("x",i/2),o.setAttribute("y",i/2),o.setAttribute("width",t-i),o.setAttribute("height",n-i),o.setAttribute("stroke-width",i||1),o.setAttribute("stroke","transparent"),o.setAttribute("fill","transparent"),r.append(o),this.container.append(r),this._createPopup(o,e),this.container}}class I extends h{constructor(e){var t,n,r;super(e,{isRenderable:!!(e.data.hasPopup||null!==(t=e.data.titleObj)&&void 0!==t&&t.str||null!==(n=e.data.contentsObj)&&void 0!==n&&n.str||null!==(r=e.data.richText)&&void 0!==r&&r.str),ignoreBorder:!0})}render(){this.container.className="circleAnnotation";const e=this.data,{width:t,height:n}=u(e.rect),r=this.svgFactory.create(t,n,!0),i=e.borderStyle.width,o=this.svgFactory.createElement("svg:ellipse");return o.setAttribute("cx",t/2),o.setAttribute("cy",n/2),o.setAttribute("rx",t/2-i/2),o.setAttribute("ry",n/2-i/2),o.setAttribute("stroke-width",i||1),o.setAttribute("stroke","transparent"),o.setAttribute("fill","transparent"),r.append(o),this.container.append(r),this._createPopup(o,e),this.container}}class G extends h{constructor(e){var t,n,r;super(e,{isRenderable:!!(e.data.hasPopup||null!==(t=e.data.titleObj)&&void 0!==t&&t.str||null!==(n=e.data.contentsObj)&&void 0!==n&&n.str||null!==(r=e.data.richText)&&void 0!==r&&r.str),ignoreBorder:!0}),this.containerClassName="polylineAnnotation",this.svgElementName="svg:polyline"}render(){this.container.className=this.containerClassName;const e=this.data,{width:t,height:n}=u(e.rect),r=this.svgFactory.create(t,n,!0);let i=[];for(const s of e.vertices){const t=s.x-e.rect[0],n=e.rect[3]-s.y;i.push(t+","+n)}i=i.join(" ");const o=this.svgFactory.createElement(this.svgElementName);return o.setAttribute("points",i),o.setAttribute("stroke-width",e.borderStyle.width||1),o.setAttribute("stroke","transparent"),o.setAttribute("fill","transparent"),r.append(o),this.container.append(r),this._createPopup(o,e),this.container}}class T extends G{constructor(e){super(e),this.containerClassName="polygonAnnotation",this.svgElementName="svg:polygon"}}class M extends h{constructor(e){var t,n,r;super(e,{isRenderable:!!(e.data.hasPopup||null!==(t=e.data.titleObj)&&void 0!==t&&t.str||null!==(n=e.data.contentsObj)&&void 0!==n&&n.str||null!==(r=e.data.richText)&&void 0!==r&&r.str),ignoreBorder:!0})}render(){return this.container.className="caretAnnotation",this.data.hasPopup||this._createPopup(null,this.data),this.container}}class O extends h{constructor(e){var t,n,r;super(e,{isRenderable:!!(e.data.hasPopup||null!==(t=e.data.titleObj)&&void 0!==t&&t.str||null!==(n=e.data.contentsObj)&&void 0!==n&&n.str||null!==(r=e.data.richText)&&void 0!==r&&r.str),ignoreBorder:!0}),this.containerClassName="inkAnnotation",this.svgElementName="svg:polyline"}render(){this.container.className=this.containerClassName;const e=this.data,{width:t,height:n}=u(e.rect),r=this.svgFactory.create(t,n,!0);for(const i of e.inkLists){let t=[];for(const r of i){const n=r.x-e.rect[0],i=e.rect[3]-r.y;t.push("".concat(n,",").concat(i))}t=t.join(" ");const n=this.svgFactory.createElement(this.svgElementName);n.setAttribute("points",t),n.setAttribute("stroke-width",e.borderStyle.width||1),n.setAttribute("stroke","transparent"),n.setAttribute("fill","transparent"),this._createPopup(n,e),r.append(n)}return this.container.append(r),this.container}}class R extends h{constructor(e){var t,n,r;super(e,{isRenderable:!!(e.data.hasPopup||null!==(t=e.data.titleObj)&&void 0!==t&&t.str||null!==(n=e.data.contentsObj)&&void 0!==n&&n.str||null!==(r=e.data.richText)&&void 0!==r&&r.str),ignoreBorder:!0,createQuadrilaterals:!0})}render(){return this.data.hasPopup||this._createPopup(null,this.data),this.quadrilaterals?this._renderQuadrilaterals("highlightAnnotation"):(this.container.className="highlightAnnotation",this.container)}}class D extends h{constructor(e){var t,n,r;super(e,{isRenderable:!!(e.data.hasPopup||null!==(t=e.data.titleObj)&&void 0!==t&&t.str||null!==(n=e.data.contentsObj)&&void 0!==n&&n.str||null!==(r=e.data.richText)&&void 0!==r&&r.str),ignoreBorder:!0,createQuadrilaterals:!0})}render(){return this.data.hasPopup||this._createPopup(null,this.data),this.quadrilaterals?this._renderQuadrilaterals("underlineAnnotation"):(this.container.className="underlineAnnotation",this.container)}}class N extends h{constructor(e){var t,n,r;super(e,{isRenderable:!!(e.data.hasPopup||null!==(t=e.data.titleObj)&&void 0!==t&&t.str||null!==(n=e.data.contentsObj)&&void 0!==n&&n.str||null!==(r=e.data.richText)&&void 0!==r&&r.str),ignoreBorder:!0,createQuadrilaterals:!0})}render(){return this.data.hasPopup||this._createPopup(null,this.data),this.quadrilaterals?this._renderQuadrilaterals("squigglyAnnotation"):(this.container.className="squigglyAnnotation",this.container)}}class L extends h{constructor(e){var t,n,r;super(e,{isRenderable:!!(e.data.hasPopup||null!==(t=e.data.titleObj)&&void 0!==t&&t.str||null!==(n=e.data.contentsObj)&&void 0!==n&&n.str||null!==(r=e.data.richText)&&void 0!==r&&r.str),ignoreBorder:!0,createQuadrilaterals:!0})}render(){return this.data.hasPopup||this._createPopup(null,this.data),this.quadrilaterals?this._renderQuadrilaterals("strikeoutAnnotation"):(this.container.className="strikeoutAnnotation",this.container)}}class V extends h{constructor(e){var t,n,r;super(e,{isRenderable:!!(e.data.hasPopup||null!==(t=e.data.titleObj)&&void 0!==t&&t.str||null!==(n=e.data.contentsObj)&&void 0!==n&&n.str||null!==(r=e.data.richText)&&void 0!==r&&r.str),ignoreBorder:!0})}render(){return this.container.className="stampAnnotation",this.data.hasPopup||this._createPopup(null,this.data),this.container}}class F extends h{constructor(e){var t;super(e,{isRenderable:!0});const{filename:n,content:r}=this.data.file;this.filename=(0,i.getFilenameFromUrl)(n,!0),this.content=r,null===(t=this.linkService.eventBus)||void 0===t||t.dispatch("fileattachmentannotation",{source:this,filename:n,content:r})}render(){var e,t;let n;return this.container.className="fileAttachmentAnnotation",this.data.hasAppearance?n=document.createElement("div"):(n=document.createElement("img"),n.src="".concat(this.imageResourcesPath,"annotation-").concat(/paperclip/i.test(this.data.name)?"paperclip":"pushpin",".svg")),n.className="popupTriggerArea",n.addEventListener("dblclick",this._download.bind(this)),!this.data.hasPopup&&(null!==(e=this.data.titleObj)&&void 0!==e&&e.str||null!==(t=this.data.contentsObj)&&void 0!==t&&t.str||this.data.richText)&&this._createPopup(n,this.data),this.container.append(n),this.container}_download(){var e;null===(e=this.downloadManager)||void 0===e||e.openOrDownloadData(this.container,this.content,this.filename)}}class z{static render(e){const{annotations:t,div:n,viewport:s,accessibilityManager:a}=e;(0,i.setLayerDimensions)(n,s);const l={data:null,layer:n,page:e.page,viewport:s,linkService:e.linkService,downloadManager:e.downloadManager,imageResourcesPath:e.imageResourcesPath||"",renderForms:!1!==e.renderForms,svgFactory:new i.DOMSVGFactory,annotationStorage:e.annotationStorage||new o.AnnotationStorage,enableScripting:!0===e.enableScripting,hasJSActions:e.hasJSActions,fieldObjects:e.fieldObjects};let c=0;for(const i of t){if(i.annotationType!==r.AnnotationType.POPUP){const{width:e,height:t}=u(i.rect);if(e<=0||t<=0)continue}l.data=i;const e=d.create(l);if(!e.isRenderable)continue;const t=e.render();if(i.hidden&&(t.style.visibility="hidden"),Array.isArray(t))for(const r of t)r.style.zIndex=c++,_classStaticPrivateMethodGet(z,z,B).call(z,r,i.id,n,a);else t.style.zIndex=c++,e instanceof P?n.prepend(t):_classStaticPrivateMethodGet(z,z,B).call(z,t,i.id,n,a)}_classStaticPrivateMethodGet(this,z,U).call(this,n,e.annotationCanvasMap)}static update(e){const{annotationCanvasMap:t,div:n,viewport:r}=e;(0,i.setLayerDimensions)(n,{rotation:r.rotation}),_classStaticPrivateMethodGet(this,z,U).call(this,n,t),n.hidden=!1}}function B(e,t,n,r){const o=e.firstChild||e;o.id="".concat(i.AnnotationPrefix).concat(t),n.append(e),null===r||void 0===r||r.moveElementInDOM(n,e,o,!1)}function U(e,t){if(t){for(const[n,r]of t){const t=e.querySelector('[data-annotation-id="'.concat(n,'"]'));if(!t)continue;const{firstChild:i}=t;i?"CANVAS"===i.nodeName?i.replaceWith(r):i.before(r):t.append(r)}t.clear()}}t.AnnotationLayer=z},(e,t)=>{function n(e){return Math.floor(255*Math.max(0,Math.min(1,e))).toString(16).padStart(2,"0")}Object.defineProperty(t,"__esModule",{value:!0}),t.ColorConverters=void 0,t.ColorConverters=class{static CMYK_G(e){let[t,n,r,i]=e;return["G",1-Math.min(1,.3*t+.59*r+.11*n+i)]}static G_CMYK(e){let[t]=e;return["CMYK",0,0,0,1-t]}static G_RGB(e){let[t]=e;return["RGB",t,t,t]}static G_HTML(e){let[t]=e;const r=n(t);return"#".concat(r).concat(r).concat(r)}static RGB_G(e){let[t,n,r]=e;return["G",.3*t+.59*n+.11*r]}static RGB_HTML(e){let[t,r,i]=e;const o=n(t),s=n(r),a=n(i);return"#".concat(o).concat(s).concat(a)}static T_HTML(){return"#00000000"}static CMYK_RGB(e){let[t,n,r,i]=e;return["RGB",1-Math.min(1,t+i),1-Math.min(1,r+i),1-Math.min(1,n+i)]}static CMYK_HTML(e){const t=this.CMYK_RGB(e).slice(1);return this.RGB_HTML(t)}static RGB_CMYK(e){let[t,n,r]=e;const i=1-t,o=1-n,s=1-r;return["CMYK",i,o,s,Math.min(i,o,s)]}}},(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.XfaLayer=void 0;var r=n(19);t.XfaLayer=class{static setupStorage(e,t,n,r,i){const o=r.getValue(t,{value:null});switch(n.name){case"textarea":if(null!==o.value&&(e.textContent=o.value),"print"===i)break;e.addEventListener("input",(e=>{r.setValue(t,{value:e.target.value})}));break;case"input":if("radio"===n.attributes.type||"checkbox"===n.attributes.type){if(o.value===n.attributes.xfaOn?e.setAttribute("checked",!0):o.value===n.attributes.xfaOff&&e.removeAttribute("checked"),"print"===i)break;e.addEventListener("change",(e=>{r.setValue(t,{value:e.target.checked?e.target.getAttribute("xfaOn"):e.target.getAttribute("xfaOff")})}))}else{if(null!==o.value&&e.setAttribute("value",o.value),"print"===i)break;e.addEventListener("input",(e=>{r.setValue(t,{value:e.target.value})}))}break;case"select":if(null!==o.value)for(const e of n.children)e.attributes.value===o.value&&(e.attributes.selected=!0);e.addEventListener("input",(e=>{const n=e.target.options,i=-1===n.selectedIndex?"":n[n.selectedIndex].value;r.setValue(t,{value:i})}))}}static setAttributes(e){let{html:t,element:n,storage:r=null,intent:i,linkService:o}=e;const{attributes:s}=n,a=t instanceof HTMLAnchorElement;"radio"===s.type&&(s.name="".concat(s.name,"-").concat(i));for(const[l,c]of Object.entries(s))if(null!==c&&void 0!==c)switch(l){case"class":c.length&&t.setAttribute(l,c.join(" "));break;case"dataId":break;case"id":t.setAttribute("data-element-id",c);break;case"style":Object.assign(t.style,c);break;case"textContent":t.textContent=c;break;default:(!a||"href"!==l&&"newWindow"!==l)&&t.setAttribute(l,c)}a&&o.addLinkAttributes(t,s.href,s.newWindow),r&&s.dataId&&this.setupStorage(t,s.dataId,n,r)}static render(e){const t=e.annotationStorage,n=e.linkService,i=e.xfaHtml,o=e.intent||"display",s=document.createElement(i.name);i.attributes&&this.setAttributes({html:s,element:i,intent:o,linkService:n});const a=[[i,-1,s]],l=e.div;if(l.append(s),e.viewport){const t="matrix(".concat(e.viewport.transform.join(","),")");l.style.transform=t}"richText"!==o&&l.setAttribute("class","xfaLayer xfaFont");const c=[];for(;a.length>0;){var u;const[e,i,s]=a.at(-1);if(i+1===e.children.length){a.pop();continue}const l=e.children[++a.at(-1)[1]];if(null===l)continue;const{name:d}=l;if("#text"===d){const e=document.createTextNode(l.value);c.push(e),s.append(e);continue}let h;if(h=null!==l&&void 0!==l&&null!==(u=l.attributes)&&void 0!==u&&u.xmlns?document.createElementNS(l.attributes.xmlns,d):document.createElement(d),s.append(h),l.attributes&&this.setAttributes({html:h,element:l,storage:t,intent:o,linkService:n}),l.children&&l.children.length>0)a.push([l,-1,h]);else if(l.value){const e=document.createTextNode(l.value);r.XfaText.shouldBuildText(d)&&c.push(e),h.append(e)}}for(const r of l.querySelectorAll(".xfaNonInteractive input, .xfaNonInteractive textarea"))r.setAttribute("readOnly",!0);return{textDivs:c}}static update(e){const t="matrix(".concat(e.viewport.transform.join(","),")");e.div.style.transform=t,e.div.hidden=!1}}},(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.SVGGraphics=void 0;var r=n(6),i=n(1),o=n(10);let s=class{constructor(){(0,i.unreachable)("Not implemented: SVGGraphics")}};t.SVGGraphics=s;{const a={fontStyle:"normal",fontWeight:"normal",fillColor:"#000000"},l="http://www.w3.org/XML/1998/namespace",c="http://www.w3.org/1999/xlink",u=["butt","round","square"],d=["miter","round","bevel"],h=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(URL.createObjectURL&&"undefined"!==typeof Blob&&!n)return URL.createObjectURL(new Blob([e],{type:t}));const r="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";let i="data:".concat(t,";base64,");for(let o=0,s=e.length;o<s;o+=3){const t=255&e[o],n=255&e[o+1],a=255&e[o+2];i+=r[t>>2]+r[(3&t)<<4|n>>4]+r[o+1<s?(15&n)<<2|a>>6:64]+r[o+2<s?63&a:64]}return i},p=function(){const e=new Uint8Array([137,80,78,71,13,10,26,10]),t=new Int32Array(256);for(let i=0;i<256;i++){let e=i;for(let t=0;t<8;t++)e=1&e?3988292384^e>>1&2147483647:e>>1&2147483647;t[i]=e}function n(e,n,r,i){let o=i;const s=n.length;r[o]=s>>24&255,r[o+1]=s>>16&255,r[o+2]=s>>8&255,r[o+3]=255&s,o+=4,r[o]=255&e.charCodeAt(0),r[o+1]=255&e.charCodeAt(1),r[o+2]=255&e.charCodeAt(2),r[o+3]=255&e.charCodeAt(3),o+=4,r.set(n,o),o+=n.length;const a=function(e,n,r){let i=-1;for(let o=n;o<r;o++){const n=255&(i^e[o]);i=i>>>8^t[n]}return-1^i}(r,i+4,o);r[o]=a>>24&255,r[o+1]=a>>16&255,r[o+2]=a>>8&255,r[o+3]=255&a}function r(e){let t=e.length;const n=65535,r=Math.ceil(t/n),i=new Uint8Array(2+t+5*r+4);let o=0;i[o++]=120,i[o++]=156;let s=0;for(;t>n;)i[o++]=0,i[o++]=255,i[o++]=255,i[o++]=0,i[o++]=0,i.set(e.subarray(s,s+n),o),o+=n,s+=n,t-=n;i[o++]=1,i[o++]=255&t,i[o++]=t>>8&255,i[o++]=255&~t,i[o++]=(65535&~t)>>8&255,i.set(e.subarray(s),o),o+=e.length-s;const a=function(e,t,n){let r=1,i=0;for(let o=t;o<n;++o)r=(r+(255&e[o]))%65521,i=(i+r)%65521;return i<<16|r}(e,0,e.length);return i[o++]=a>>24&255,i[o++]=a>>16&255,i[o++]=a>>8&255,i[o++]=255&a,i}function s(t,s,a,l){const c=t.width,u=t.height;let d,p,f;const g=t.data;switch(s){case i.ImageKind.GRAYSCALE_1BPP:p=0,d=1,f=c+7>>3;break;case i.ImageKind.RGB_24BPP:p=2,d=8,f=3*c;break;case i.ImageKind.RGBA_32BPP:p=6,d=8,f=4*c;break;default:throw new Error("invalid format")}const m=new Uint8Array((1+f)*u);let y=0,v=0;for(let e=0;e<u;++e)m[y++]=0,m.set(g.subarray(v,v+f),y),v+=f,y+=f;if(s===i.ImageKind.GRAYSCALE_1BPP&&l){y=0;for(let e=0;e<u;e++){y++;for(let e=0;e<f;e++)m[y++]^=255}}const _=new Uint8Array([c>>24&255,c>>16&255,c>>8&255,255&c,u>>24&255,u>>16&255,u>>8&255,255&u,d,p,0,0,0]),b=function(e){if(!o.isNodeJS)return r(e);try{let t;t=parseInt(process.versions.node)>=8?e:Buffer.from(e);const n=__webpack_require__(8160).deflateSync(t,{level:9});return n instanceof Uint8Array?n:new Uint8Array(n)}catch(t){(0,i.warn)("Not compressing PNG because zlib.deflateSync is unavailable: "+t)}return r(e)}(m),x=e.length+36+_.length+b.length,S=new Uint8Array(x);let w=0;return S.set(e,w),w+=e.length,n("IHDR",_,S,w),w+=12+_.length,n("IDATA",b,S,w),w+=12+b.length,n("IEND",new Uint8Array(0),S,w),h(S,"image/png",a)}return function(e,t,n){return s(e,void 0===e.kind?i.ImageKind.GRAYSCALE_1BPP:e.kind,t,n)}}();class f{constructor(){this.fontSizeScale=1,this.fontWeight=a.fontWeight,this.fontSize=0,this.textMatrix=i.IDENTITY_MATRIX,this.fontMatrix=i.FONT_IDENTITY_MATRIX,this.leading=0,this.textRenderingMode=i.TextRenderingMode.FILL,this.textMatrixScale=1,this.x=0,this.y=0,this.lineX=0,this.lineY=0,this.charSpacing=0,this.wordSpacing=0,this.textHScale=1,this.textRise=0,this.fillColor=a.fillColor,this.strokeColor="#000000",this.fillAlpha=1,this.strokeAlpha=1,this.lineWidth=1,this.lineJoin="",this.lineCap="",this.miterLimit=0,this.dashArray=[],this.dashPhase=0,this.dependencies=[],this.activeClipUrl=null,this.clipGroup=null,this.maskId=""}clone(){return Object.create(this)}setCurrentPoint(e,t){this.x=e,this.y=t}}function g(e){let t=[];const n=[];for(const r of e)"save"!==r.fn?"restore"===r.fn?t=n.pop():t.push(r):(t.push({fnId:92,fn:"group",items:[]}),n.push(t),t=t.at(-1).items);return t}function m(e){if(Number.isInteger(e))return e.toString();const t=e.toFixed(10);let n=t.length-1;if("0"!==t[n])return t;do{n--}while("0"===t[n]);return t.substring(0,"."===t[n]?n:n+1)}function y(e){if(0===e[4]&&0===e[5]){if(0===e[1]&&0===e[2])return 1===e[0]&&1===e[3]?"":"scale(".concat(m(e[0])," ").concat(m(e[3]),")");if(e[0]===e[3]&&e[1]===-e[2]){const t=180*Math.acos(e[0])/Math.PI;return"rotate(".concat(m(t),")")}}else if(1===e[0]&&0===e[1]&&0===e[2]&&1===e[3])return"translate(".concat(m(e[4])," ").concat(m(e[5]),")");return"matrix(".concat(m(e[0])," ").concat(m(e[1])," ").concat(m(e[2])," ").concat(m(e[3])," ").concat(m(e[4])," ")+"".concat(m(e[5]),")")}let v=0,_=0,b=0;t.SVGGraphics=s=class{constructor(e,t){let n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];(0,r.deprecated)("The SVG back-end is no longer maintained and *may* be removed in the future."),this.svgFactory=new r.DOMSVGFactory,this.current=new f,this.transformMatrix=i.IDENTITY_MATRIX,this.transformStack=[],this.extraStack=[],this.commonObjs=e,this.objs=t,this.pendingClip=null,this.pendingEOFill=!1,this.embedFonts=!1,this.embeddedFonts=Object.create(null),this.cssStyle=null,this.forceDataSchema=!!n,this._operatorIdMapping=[];for(const r in i.OPS)this._operatorIdMapping[i.OPS[r]]=r}getObject(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return"string"===typeof e?e.startsWith("g_")?this.commonObjs.get(e):this.objs.get(e):t}save(){this.transformStack.push(this.transformMatrix);const e=this.current;this.extraStack.push(e),this.current=e.clone()}restore(){this.transformMatrix=this.transformStack.pop(),this.current=this.extraStack.pop(),this.pendingClip=null,this.tgrp=null}group(e){this.save(),this.executeOpTree(e),this.restore()}loadDependencies(e){const t=e.fnArray,n=e.argsArray;for(let r=0,o=t.length;r<o;r++)if(t[r]===i.OPS.dependency)for(const e of n[r]){const t=e.startsWith("g_")?this.commonObjs:this.objs,n=new Promise((n=>{t.get(e,n)}));this.current.dependencies.push(n)}return Promise.all(this.current.dependencies)}transform(e,t,n,r,o,s){const a=[e,t,n,r,o,s];this.transformMatrix=i.Util.transform(this.transformMatrix,a),this.tgrp=null}getSVG(e,t){this.viewport=t;const n=this._initialize(t);return this.loadDependencies(e).then((()=>(this.transformMatrix=i.IDENTITY_MATRIX,this.executeOpTree(this.convertOpList(e)),n)))}convertOpList(e){const t=this._operatorIdMapping,n=e.argsArray,r=e.fnArray,i=[];for(let o=0,s=r.length;o<s;o++){const e=r[o];i.push({fnId:e,fn:t[e],args:n[o]})}return g(i)}executeOpTree(e){for(const t of e){const e=t.fn,n=t.fnId,r=t.args;switch(0|n){case i.OPS.beginText:this.beginText();break;case i.OPS.dependency:break;case i.OPS.setLeading:this.setLeading(r);break;case i.OPS.setLeadingMoveText:this.setLeadingMoveText(r[0],r[1]);break;case i.OPS.setFont:this.setFont(r);break;case i.OPS.showText:case i.OPS.showSpacedText:this.showText(r[0]);break;case i.OPS.endText:this.endText();break;case i.OPS.moveText:this.moveText(r[0],r[1]);break;case i.OPS.setCharSpacing:this.setCharSpacing(r[0]);break;case i.OPS.setWordSpacing:this.setWordSpacing(r[0]);break;case i.OPS.setHScale:this.setHScale(r[0]);break;case i.OPS.setTextMatrix:this.setTextMatrix(r[0],r[1],r[2],r[3],r[4],r[5]);break;case i.OPS.setTextRise:this.setTextRise(r[0]);break;case i.OPS.setTextRenderingMode:this.setTextRenderingMode(r[0]);break;case i.OPS.setLineWidth:this.setLineWidth(r[0]);break;case i.OPS.setLineJoin:this.setLineJoin(r[0]);break;case i.OPS.setLineCap:this.setLineCap(r[0]);break;case i.OPS.setMiterLimit:this.setMiterLimit(r[0]);break;case i.OPS.setFillRGBColor:this.setFillRGBColor(r[0],r[1],r[2]);break;case i.OPS.setStrokeRGBColor:this.setStrokeRGBColor(r[0],r[1],r[2]);break;case i.OPS.setStrokeColorN:this.setStrokeColorN(r);break;case i.OPS.setFillColorN:this.setFillColorN(r);break;case i.OPS.shadingFill:this.shadingFill(r[0]);break;case i.OPS.setDash:this.setDash(r[0],r[1]);break;case i.OPS.setRenderingIntent:this.setRenderingIntent(r[0]);break;case i.OPS.setFlatness:this.setFlatness(r[0]);break;case i.OPS.setGState:this.setGState(r[0]);break;case i.OPS.fill:this.fill();break;case i.OPS.eoFill:this.eoFill();break;case i.OPS.stroke:this.stroke();break;case i.OPS.fillStroke:this.fillStroke();break;case i.OPS.eoFillStroke:this.eoFillStroke();break;case i.OPS.clip:this.clip("nonzero");break;case i.OPS.eoClip:this.clip("evenodd");break;case i.OPS.paintSolidColorImageMask:this.paintSolidColorImageMask();break;case i.OPS.paintImageXObject:this.paintImageXObject(r[0]);break;case i.OPS.paintInlineImageXObject:this.paintInlineImageXObject(r[0]);break;case i.OPS.paintImageMaskXObject:this.paintImageMaskXObject(r[0]);break;case i.OPS.paintFormXObjectBegin:this.paintFormXObjectBegin(r[0],r[1]);break;case i.OPS.paintFormXObjectEnd:this.paintFormXObjectEnd();break;case i.OPS.closePath:this.closePath();break;case i.OPS.closeStroke:this.closeStroke();break;case i.OPS.closeFillStroke:this.closeFillStroke();break;case i.OPS.closeEOFillStroke:this.closeEOFillStroke();break;case i.OPS.nextLine:this.nextLine();break;case i.OPS.transform:this.transform(r[0],r[1],r[2],r[3],r[4],r[5]);break;case i.OPS.constructPath:this.constructPath(r[0],r[1]);break;case i.OPS.endPath:this.endPath();break;case 92:this.group(t.items);break;default:(0,i.warn)("Unimplemented operator ".concat(e))}}}setWordSpacing(e){this.current.wordSpacing=e}setCharSpacing(e){this.current.charSpacing=e}nextLine(){this.moveText(0,this.current.leading)}setTextMatrix(e,t,n,r,i,o){const s=this.current;s.textMatrix=s.lineMatrix=[e,t,n,r,i,o],s.textMatrixScale=Math.hypot(e,t),s.x=s.lineX=0,s.y=s.lineY=0,s.xcoords=[],s.ycoords=[],s.tspan=this.svgFactory.createElement("svg:tspan"),s.tspan.setAttributeNS(null,"font-family",s.fontFamily),s.tspan.setAttributeNS(null,"font-size","".concat(m(s.fontSize),"px")),s.tspan.setAttributeNS(null,"y",m(-s.y)),s.txtElement=this.svgFactory.createElement("svg:text"),s.txtElement.append(s.tspan)}beginText(){const e=this.current;e.x=e.lineX=0,e.y=e.lineY=0,e.textMatrix=i.IDENTITY_MATRIX,e.lineMatrix=i.IDENTITY_MATRIX,e.textMatrixScale=1,e.tspan=this.svgFactory.createElement("svg:tspan"),e.txtElement=this.svgFactory.createElement("svg:text"),e.txtgrp=this.svgFactory.createElement("svg:g"),e.xcoords=[],e.ycoords=[]}moveText(e,t){const n=this.current;n.x=n.lineX+=e,n.y=n.lineY+=t,n.xcoords=[],n.ycoords=[],n.tspan=this.svgFactory.createElement("svg:tspan"),n.tspan.setAttributeNS(null,"font-family",n.fontFamily),n.tspan.setAttributeNS(null,"font-size","".concat(m(n.fontSize),"px")),n.tspan.setAttributeNS(null,"y",m(-n.y))}showText(e){const t=this.current,n=t.font,r=t.fontSize;if(0===r)return;const o=t.fontSizeScale,s=t.charSpacing,c=t.wordSpacing,u=t.fontDirection,d=t.textHScale*u,h=n.vertical,p=h?1:-1,f=n.defaultVMetrics,g=r*t.fontMatrix[0];let v=0;for(const i of e){if(null===i){v+=u*c;continue}if("number"===typeof i){v+=p*i*r/1e3;continue}const e=(i.isSpace?c:0)+s,a=i.fontChar;let l,d,m,y=i.width;if(h){let e;const t=i.vmetric||f;e=i.vmetric?t[1]:.5*y,e=-e*g;const n=t[2]*g;y=t?-t[0]:y,l=e/o,d=(v+n)/o}else l=v/o,d=0;(i.isInFont||n.missingFile)&&(t.xcoords.push(t.x+l),h&&t.ycoords.push(-t.y+d),t.tspan.textContent+=a),m=h?y*g-e*u:y*g+e*u,v+=m}t.tspan.setAttributeNS(null,"x",t.xcoords.map(m).join(" ")),h?t.tspan.setAttributeNS(null,"y",t.ycoords.map(m).join(" ")):t.tspan.setAttributeNS(null,"y",m(-t.y)),h?t.y-=v:t.x+=v*d,t.tspan.setAttributeNS(null,"font-family",t.fontFamily),t.tspan.setAttributeNS(null,"font-size","".concat(m(t.fontSize),"px")),t.fontStyle!==a.fontStyle&&t.tspan.setAttributeNS(null,"font-style",t.fontStyle),t.fontWeight!==a.fontWeight&&t.tspan.setAttributeNS(null,"font-weight",t.fontWeight);const _=t.textRenderingMode&i.TextRenderingMode.FILL_STROKE_MASK;if(_===i.TextRenderingMode.FILL||_===i.TextRenderingMode.FILL_STROKE?(t.fillColor!==a.fillColor&&t.tspan.setAttributeNS(null,"fill",t.fillColor),t.fillAlpha<1&&t.tspan.setAttributeNS(null,"fill-opacity",t.fillAlpha)):t.textRenderingMode===i.TextRenderingMode.ADD_TO_PATH?t.tspan.setAttributeNS(null,"fill","transparent"):t.tspan.setAttributeNS(null,"fill","none"),_===i.TextRenderingMode.STROKE||_===i.TextRenderingMode.FILL_STROKE){const e=1/(t.textMatrixScale||1);this._setStrokeAttributes(t.tspan,e)}let b=t.textMatrix;0!==t.textRise&&(b=b.slice(),b[5]+=t.textRise),t.txtElement.setAttributeNS(null,"transform","".concat(y(b)," scale(").concat(m(d),", -1)")),t.txtElement.setAttributeNS(l,"xml:space","preserve"),t.txtElement.append(t.tspan),t.txtgrp.append(t.txtElement),this._ensureTransformGroup().append(t.txtElement)}setLeadingMoveText(e,t){this.setLeading(-t),this.moveText(e,t)}addFontStyle(e){if(!e.data)throw new Error('addFontStyle: No font data available, ensure that the "fontExtraProperties" API parameter is set.');this.cssStyle||(this.cssStyle=this.svgFactory.createElement("svg:style"),this.cssStyle.setAttributeNS(null,"type","text/css"),this.defs.append(this.cssStyle));const t=h(e.data,e.mimetype,this.forceDataSchema);this.cssStyle.textContent+='@font-face { font-family: "'.concat(e.loadedName,'";')+" src: url(".concat(t,"); }\n")}setFont(e){const t=this.current,n=this.commonObjs.get(e[0]);let r=e[1];t.font=n,!this.embedFonts||n.missingFile||this.embeddedFonts[n.loadedName]||(this.addFontStyle(n),this.embeddedFonts[n.loadedName]=n),t.fontMatrix=n.fontMatrix||i.FONT_IDENTITY_MATRIX;let o="normal";n.black?o="900":n.bold&&(o="bold");const s=n.italic?"italic":"normal";r<0?(r=-r,t.fontDirection=-1):t.fontDirection=1,t.fontSize=r,t.fontFamily=n.loadedName,t.fontWeight=o,t.fontStyle=s,t.tspan=this.svgFactory.createElement("svg:tspan"),t.tspan.setAttributeNS(null,"y",m(-t.y)),t.xcoords=[],t.ycoords=[]}endText(){var e;const t=this.current;t.textRenderingMode&i.TextRenderingMode.ADD_TO_PATH_FLAG&&null!==(e=t.txtElement)&&void 0!==e&&e.hasChildNodes()&&(t.element=t.txtElement,this.clip("nonzero"),this.endPath())}setLineWidth(e){e>0&&(this.current.lineWidth=e)}setLineCap(e){this.current.lineCap=u[e]}setLineJoin(e){this.current.lineJoin=d[e]}setMiterLimit(e){this.current.miterLimit=e}setStrokeAlpha(e){this.current.strokeAlpha=e}setStrokeRGBColor(e,t,n){this.current.strokeColor=i.Util.makeHexColor(e,t,n)}setFillAlpha(e){this.current.fillAlpha=e}setFillRGBColor(e,t,n){this.current.fillColor=i.Util.makeHexColor(e,t,n),this.current.tspan=this.svgFactory.createElement("svg:tspan"),this.current.xcoords=[],this.current.ycoords=[]}setStrokeColorN(e){this.current.strokeColor=this._makeColorN_Pattern(e)}setFillColorN(e){this.current.fillColor=this._makeColorN_Pattern(e)}shadingFill(e){const t=this.viewport.width,n=this.viewport.height,r=i.Util.inverseTransform(this.transformMatrix),o=i.Util.applyTransform([0,0],r),s=i.Util.applyTransform([0,n],r),a=i.Util.applyTransform([t,0],r),l=i.Util.applyTransform([t,n],r),c=Math.min(o[0],s[0],a[0],l[0]),u=Math.min(o[1],s[1],a[1],l[1]),d=Math.max(o[0],s[0],a[0],l[0]),h=Math.max(o[1],s[1],a[1],l[1]),p=this.svgFactory.createElement("svg:rect");p.setAttributeNS(null,"x",c),p.setAttributeNS(null,"y",u),p.setAttributeNS(null,"width",d-c),p.setAttributeNS(null,"height",h-u),p.setAttributeNS(null,"fill",this._makeShadingPattern(e)),this.current.fillAlpha<1&&p.setAttributeNS(null,"fill-opacity",this.current.fillAlpha),this._ensureTransformGroup().append(p)}_makeColorN_Pattern(e){return"TilingPattern"===e[0]?this._makeTilingPattern(e):this._makeShadingPattern(e)}_makeTilingPattern(e){const t=e[1],n=e[2],r=e[3]||i.IDENTITY_MATRIX,[o,s,a,l]=e[4],c=e[5],u=e[6],d=e[7],h="shading".concat(b++),[p,f,g,m]=i.Util.normalizeRect([...i.Util.applyTransform([o,s],r),...i.Util.applyTransform([a,l],r)]),[y,v]=i.Util.singularValueDecompose2dScale(r),_=c*y,x=u*v,S=this.svgFactory.createElement("svg:pattern");S.setAttributeNS(null,"id",h),S.setAttributeNS(null,"patternUnits","userSpaceOnUse"),S.setAttributeNS(null,"width",_),S.setAttributeNS(null,"height",x),S.setAttributeNS(null,"x","".concat(p)),S.setAttributeNS(null,"y","".concat(f));const w=this.svg,E=this.transformMatrix,P=this.current.fillColor,C=this.current.strokeColor,A=this.svgFactory.create(g-p,m-f);if(this.svg=A,this.transformMatrix=r,2===d){const e=i.Util.makeHexColor(...t);this.current.fillColor=e,this.current.strokeColor=e}return this.executeOpTree(this.convertOpList(n)),this.svg=w,this.transformMatrix=E,this.current.fillColor=P,this.current.strokeColor=C,S.append(A.childNodes[0]),this.defs.append(S),"url(#".concat(h,")")}_makeShadingPattern(e){switch("string"===typeof e&&(e=this.objs.get(e)),e[0]){case"RadialAxial":const t="shading".concat(b++),n=e[3];let r;switch(e[1]){case"axial":const n=e[4],i=e[5];r=this.svgFactory.createElement("svg:linearGradient"),r.setAttributeNS(null,"id",t),r.setAttributeNS(null,"gradientUnits","userSpaceOnUse"),r.setAttributeNS(null,"x1",n[0]),r.setAttributeNS(null,"y1",n[1]),r.setAttributeNS(null,"x2",i[0]),r.setAttributeNS(null,"y2",i[1]);break;case"radial":const o=e[4],s=e[5],a=e[6],l=e[7];r=this.svgFactory.createElement("svg:radialGradient"),r.setAttributeNS(null,"id",t),r.setAttributeNS(null,"gradientUnits","userSpaceOnUse"),r.setAttributeNS(null,"cx",s[0]),r.setAttributeNS(null,"cy",s[1]),r.setAttributeNS(null,"r",l),r.setAttributeNS(null,"fx",o[0]),r.setAttributeNS(null,"fy",o[1]),r.setAttributeNS(null,"fr",a);break;default:throw new Error("Unknown RadialAxial type: ".concat(e[1]))}for(const e of n){const t=this.svgFactory.createElement("svg:stop");t.setAttributeNS(null,"offset",e[0]),t.setAttributeNS(null,"stop-color",e[1]),r.append(t)}return this.defs.append(r),"url(#".concat(t,")");case"Mesh":return(0,i.warn)("Unimplemented pattern Mesh"),null;case"Dummy":return"hotpink";default:throw new Error("Unknown IR type: ".concat(e[0]))}}setDash(e,t){this.current.dashArray=e,this.current.dashPhase=t}constructPath(e,t){const n=this.current;let r=n.x,o=n.y,s=[],a=0;for(const l of e)switch(0|l){case i.OPS.rectangle:r=t[a++],o=t[a++];const e=r+t[a++],n=o+t[a++];s.push("M",m(r),m(o),"L",m(e),m(o),"L",m(e),m(n),"L",m(r),m(n),"Z");break;case i.OPS.moveTo:r=t[a++],o=t[a++],s.push("M",m(r),m(o));break;case i.OPS.lineTo:r=t[a++],o=t[a++],s.push("L",m(r),m(o));break;case i.OPS.curveTo:r=t[a+4],o=t[a+5],s.push("C",m(t[a]),m(t[a+1]),m(t[a+2]),m(t[a+3]),m(r),m(o)),a+=6;break;case i.OPS.curveTo2:s.push("C",m(r),m(o),m(t[a]),m(t[a+1]),m(t[a+2]),m(t[a+3])),r=t[a+2],o=t[a+3],a+=4;break;case i.OPS.curveTo3:r=t[a+2],o=t[a+3],s.push("C",m(t[a]),m(t[a+1]),m(r),m(o),m(r),m(o)),a+=4;break;case i.OPS.closePath:s.push("Z")}s=s.join(" "),n.path&&e.length>0&&e[0]!==i.OPS.rectangle&&e[0]!==i.OPS.moveTo?s=n.path.getAttributeNS(null,"d")+s:(n.path=this.svgFactory.createElement("svg:path"),this._ensureTransformGroup().append(n.path)),n.path.setAttributeNS(null,"d",s),n.path.setAttributeNS(null,"fill","none"),n.element=n.path,n.setCurrentPoint(r,o)}endPath(){const e=this.current;if(e.path=null,!this.pendingClip)return;if(!e.element)return void(this.pendingClip=null);const t="clippath".concat(v++),n=this.svgFactory.createElement("svg:clipPath");n.setAttributeNS(null,"id",t),n.setAttributeNS(null,"transform",y(this.transformMatrix));const r=e.element.cloneNode(!0);if("evenodd"===this.pendingClip?r.setAttributeNS(null,"clip-rule","evenodd"):r.setAttributeNS(null,"clip-rule","nonzero"),this.pendingClip=null,n.append(r),this.defs.append(n),e.activeClipUrl){e.clipGroup=null;for(const e of this.extraStack)e.clipGroup=null;n.setAttributeNS(null,"clip-path",e.activeClipUrl)}e.activeClipUrl="url(#".concat(t,")"),this.tgrp=null}clip(e){this.pendingClip=e}closePath(){const e=this.current;if(e.path){const t="".concat(e.path.getAttributeNS(null,"d"),"Z");e.path.setAttributeNS(null,"d",t)}}setLeading(e){this.current.leading=-e}setTextRise(e){this.current.textRise=e}setTextRenderingMode(e){this.current.textRenderingMode=e}setHScale(e){this.current.textHScale=e/100}setRenderingIntent(e){}setFlatness(e){}setGState(e){for(const[t,n]of e)switch(t){case"LW":this.setLineWidth(n);break;case"LC":this.setLineCap(n);break;case"LJ":this.setLineJoin(n);break;case"ML":this.setMiterLimit(n);break;case"D":this.setDash(n[0],n[1]);break;case"RI":this.setRenderingIntent(n);break;case"FL":this.setFlatness(n);break;case"Font":this.setFont(n);break;case"CA":this.setStrokeAlpha(n);break;case"ca":this.setFillAlpha(n);break;default:(0,i.warn)("Unimplemented graphic state operator ".concat(t))}}fill(){const e=this.current;e.element&&(e.element.setAttributeNS(null,"fill",e.fillColor),e.element.setAttributeNS(null,"fill-opacity",e.fillAlpha),this.endPath())}stroke(){const e=this.current;e.element&&(this._setStrokeAttributes(e.element),e.element.setAttributeNS(null,"fill","none"),this.endPath())}_setStrokeAttributes(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1;const n=this.current;let r=n.dashArray;1!==t&&r.length>0&&(r=r.map((function(e){return t*e}))),e.setAttributeNS(null,"stroke",n.strokeColor),e.setAttributeNS(null,"stroke-opacity",n.strokeAlpha),e.setAttributeNS(null,"stroke-miterlimit",m(n.miterLimit)),e.setAttributeNS(null,"stroke-linecap",n.lineCap),e.setAttributeNS(null,"stroke-linejoin",n.lineJoin),e.setAttributeNS(null,"stroke-width",m(t*n.lineWidth)+"px"),e.setAttributeNS(null,"stroke-dasharray",r.map(m).join(" ")),e.setAttributeNS(null,"stroke-dashoffset",m(t*n.dashPhase)+"px")}eoFill(){var e;null===(e=this.current.element)||void 0===e||e.setAttributeNS(null,"fill-rule","evenodd"),this.fill()}fillStroke(){this.stroke(),this.fill()}eoFillStroke(){var e;null===(e=this.current.element)||void 0===e||e.setAttributeNS(null,"fill-rule","evenodd"),this.fillStroke()}closeStroke(){this.closePath(),this.stroke()}closeFillStroke(){this.closePath(),this.fillStroke()}closeEOFillStroke(){this.closePath(),this.eoFillStroke()}paintSolidColorImageMask(){const e=this.svgFactory.createElement("svg:rect");e.setAttributeNS(null,"x","0"),e.setAttributeNS(null,"y","0"),e.setAttributeNS(null,"width","1px"),e.setAttributeNS(null,"height","1px"),e.setAttributeNS(null,"fill",this.current.fillColor),this._ensureTransformGroup().append(e)}paintImageXObject(e){const t=this.getObject(e);t?this.paintInlineImageXObject(t):(0,i.warn)("Dependent image with object ID ".concat(e," is not ready yet"))}paintInlineImageXObject(e,t){const n=e.width,r=e.height,i=p(e,this.forceDataSchema,!!t),o=this.svgFactory.createElement("svg:rect");o.setAttributeNS(null,"x","0"),o.setAttributeNS(null,"y","0"),o.setAttributeNS(null,"width",m(n)),o.setAttributeNS(null,"height",m(r)),this.current.element=o,this.clip("nonzero");const s=this.svgFactory.createElement("svg:image");s.setAttributeNS(c,"xlink:href",i),s.setAttributeNS(null,"x","0"),s.setAttributeNS(null,"y",m(-r)),s.setAttributeNS(null,"width",m(n)+"px"),s.setAttributeNS(null,"height",m(r)+"px"),s.setAttributeNS(null,"transform","scale(".concat(m(1/n)," ").concat(m(-1/r),")")),t?t.append(s):this._ensureTransformGroup().append(s)}paintImageMaskXObject(e){const t=this.getObject(e.data,e);if(t.bitmap)return void(0,i.warn)("paintImageMaskXObject: ImageBitmap support is not implemented, ensure that the `isOffscreenCanvasSupported` API parameter is disabled.");const n=this.current,r=t.width,o=t.height,s=n.fillColor;n.maskId="mask".concat(_++);const a=this.svgFactory.createElement("svg:mask");a.setAttributeNS(null,"id",n.maskId);const l=this.svgFactory.createElement("svg:rect");l.setAttributeNS(null,"x","0"),l.setAttributeNS(null,"y","0"),l.setAttributeNS(null,"width",m(r)),l.setAttributeNS(null,"height",m(o)),l.setAttributeNS(null,"fill",s),l.setAttributeNS(null,"mask","url(#".concat(n.maskId,")")),this.defs.append(a),this._ensureTransformGroup().append(l),this.paintInlineImageXObject(t,a)}paintFormXObjectBegin(e,t){if(Array.isArray(e)&&6===e.length&&this.transform(e[0],e[1],e[2],e[3],e[4],e[5]),t){const e=t[2]-t[0],n=t[3]-t[1],r=this.svgFactory.createElement("svg:rect");r.setAttributeNS(null,"x",t[0]),r.setAttributeNS(null,"y",t[1]),r.setAttributeNS(null,"width",m(e)),r.setAttributeNS(null,"height",m(n)),this.current.element=r,this.clip("nonzero"),this.endPath()}}paintFormXObjectEnd(){}_initialize(e){const t=this.svgFactory.create(e.width,e.height),n=this.svgFactory.createElement("svg:defs");t.append(n),this.defs=n;const r=this.svgFactory.createElement("svg:g");return r.setAttributeNS(null,"transform",y(e.transform)),t.append(r),this.svg=r,t}_ensureClipGroup(){if(!this.current.clipGroup){const e=this.svgFactory.createElement("svg:g");e.setAttributeNS(null,"clip-path",this.current.activeClipUrl),this.svg.append(e),this.current.clipGroup=e}return this.current.clipGroup}_ensureTransformGroup(){return this.tgrp||(this.tgrp=this.svgFactory.createElement("svg:g"),this.tgrp.setAttributeNS(null,"transform",y(this.transformMatrix)),this.current.activeClipUrl?this._ensureClipGroup().append(this.tgrp):this.svg.append(this.tgrp)),this.tgrp}}}}],__webpack_module_cache__={};function __w_pdfjs_require__(e){var t=__webpack_module_cache__[e];if(void 0!==t)return t.exports;var n=__webpack_module_cache__[e]={exports:{}};return __webpack_modules__[e](n,n.exports,__w_pdfjs_require__),n.exports}var __nested_webpack_exports__={};return(()=>{var e=__nested_webpack_exports__;Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"AbortException",{enumerable:!0,get:function(){return t.AbortException}}),Object.defineProperty(e,"AnnotationEditorLayer",{enumerable:!0,get:function(){return o.AnnotationEditorLayer}}),Object.defineProperty(e,"AnnotationEditorParamsType",{enumerable:!0,get:function(){return t.AnnotationEditorParamsType}}),Object.defineProperty(e,"AnnotationEditorType",{enumerable:!0,get:function(){return t.AnnotationEditorType}}),Object.defineProperty(e,"AnnotationEditorUIManager",{enumerable:!0,get:function(){return s.AnnotationEditorUIManager}}),Object.defineProperty(e,"AnnotationLayer",{enumerable:!0,get:function(){return a.AnnotationLayer}}),Object.defineProperty(e,"AnnotationMode",{enumerable:!0,get:function(){return t.AnnotationMode}}),Object.defineProperty(e,"CMapCompressionType",{enumerable:!0,get:function(){return t.CMapCompressionType}}),Object.defineProperty(e,"GlobalWorkerOptions",{enumerable:!0,get:function(){return l.GlobalWorkerOptions}}),Object.defineProperty(e,"InvalidPDFException",{enumerable:!0,get:function(){return t.InvalidPDFException}}),Object.defineProperty(e,"MissingPDFException",{enumerable:!0,get:function(){return t.MissingPDFException}}),Object.defineProperty(e,"OPS",{enumerable:!0,get:function(){return t.OPS}}),Object.defineProperty(e,"PDFDataRangeTransport",{enumerable:!0,get:function(){return n.PDFDataRangeTransport}}),Object.defineProperty(e,"PDFDateString",{enumerable:!0,get:function(){return r.PDFDateString}}),Object.defineProperty(e,"PDFWorker",{enumerable:!0,get:function(){return n.PDFWorker}}),Object.defineProperty(e,"PasswordResponses",{enumerable:!0,get:function(){return t.PasswordResponses}}),Object.defineProperty(e,"PermissionFlag",{enumerable:!0,get:function(){return t.PermissionFlag}}),Object.defineProperty(e,"PixelsPerInch",{enumerable:!0,get:function(){return r.PixelsPerInch}}),Object.defineProperty(e,"RenderingCancelledException",{enumerable:!0,get:function(){return r.RenderingCancelledException}}),Object.defineProperty(e,"SVGGraphics",{enumerable:!0,get:function(){return c.SVGGraphics}}),Object.defineProperty(e,"UNSUPPORTED_FEATURES",{enumerable:!0,get:function(){return t.UNSUPPORTED_FEATURES}}),Object.defineProperty(e,"UnexpectedResponseException",{enumerable:!0,get:function(){return t.UnexpectedResponseException}}),Object.defineProperty(e,"Util",{enumerable:!0,get:function(){return t.Util}}),Object.defineProperty(e,"VerbosityLevel",{enumerable:!0,get:function(){return t.VerbosityLevel}}),Object.defineProperty(e,"XfaLayer",{enumerable:!0,get:function(){return u.XfaLayer}}),Object.defineProperty(e,"build",{enumerable:!0,get:function(){return n.build}}),Object.defineProperty(e,"createPromiseCapability",{enumerable:!0,get:function(){return t.createPromiseCapability}}),Object.defineProperty(e,"createValidAbsoluteUrl",{enumerable:!0,get:function(){return t.createValidAbsoluteUrl}}),Object.defineProperty(e,"getDocument",{enumerable:!0,get:function(){return n.getDocument}}),Object.defineProperty(e,"getFilenameFromUrl",{enumerable:!0,get:function(){return r.getFilenameFromUrl}}),Object.defineProperty(e,"getPdfFilenameFromUrl",{enumerable:!0,get:function(){return r.getPdfFilenameFromUrl}}),Object.defineProperty(e,"getXfaPageViewport",{enumerable:!0,get:function(){return r.getXfaPageViewport}}),Object.defineProperty(e,"isDataScheme",{enumerable:!0,get:function(){return r.isDataScheme}}),Object.defineProperty(e,"isPdfFile",{enumerable:!0,get:function(){return r.isPdfFile}}),Object.defineProperty(e,"loadScript",{enumerable:!0,get:function(){return r.loadScript}}),Object.defineProperty(e,"renderTextLayer",{enumerable:!0,get:function(){return i.renderTextLayer}}),Object.defineProperty(e,"setLayerDimensions",{enumerable:!0,get:function(){return r.setLayerDimensions}}),Object.defineProperty(e,"shadow",{enumerable:!0,get:function(){return t.shadow}}),Object.defineProperty(e,"updateTextLayer",{enumerable:!0,get:function(){return i.updateTextLayer}}),Object.defineProperty(e,"version",{enumerable:!0,get:function(){return n.version}});var t=__w_pdfjs_require__(1),n=__w_pdfjs_require__(2),r=__w_pdfjs_require__(6),i=__w_pdfjs_require__(26),o=__w_pdfjs_require__(27),s=__w_pdfjs_require__(5),a=__w_pdfjs_require__(32),l=__w_pdfjs_require__(14),c=__w_pdfjs_require__(35),u=__w_pdfjs_require__(34)})(),__nested_webpack_exports__})(),module.exports=factory()},38816:(e,t,n)=>{("undefined"!==typeof window?window:{}).pdfjsWorker=n(71048)},71048:e=>{var t;globalThis,t=()=>(()=>{"use strict";var e=[,(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.WorkerTask=t.WorkerMessageHandler=void 0;var r,i=n(2),o=n(3),s=n(4),a=n(6),l=n(69),c=n(63),u=n(100),d=n(101),h=n(102);class p{constructor(e){this.name=e,this.terminated=!1,this._capability=(0,i.createPromiseCapability)()}get finished(){return this._capability.promise}finish(){this._capability.resolve()}terminate(){this.terminated=!0}ensureNotTerminated(){if(this.terminated)throw new Error("Worker task was terminated")}}t.WorkerTask=p;class f{static setup(e,t){let n=!1;e.on("test",(function(t){n||(n=!0,e.send("test",t instanceof Uint8Array))})),e.on("configure",(function(e){(0,i.setVerbosityLevel)(e.verbosity)})),e.on("GetDocRequest",(function(e){return f.createDocumentHandler(e,t)}))}static createDocumentHandler(e,t){let n,r=!1,f=null;const g=[],m=(0,i.getVerbosityLevel)(),{docId:y,apiVersion:v}=e,_="3.3.122";if(v!==_)throw new Error('The API version "'.concat(v,'" does not match ')+'the Worker version "'.concat(_,'".'));const b=[];for(const i in[])b.push(i);if(b.length)throw new Error("The `Array.prototype` contains unexpected enumerable properties: "+b.join(", ")+"; thus breaking e.g. `for...in` iteration of `Array`s.");if("undefined"===typeof ReadableStream){const e="The browser/environment lacks native support for critical functionality used by the PDF.js library (e.g. `ReadableStream`); ";if(u.isNodeJS)throw new Error(e+"please use a `legacy`-build instead.");throw new Error(e+"please update to a supported browser.")}const x=y+"_worker";let S=new d.MessageHandler(x,y,t);function w(){if(r)throw new Error("Worker was terminated")}function E(e){g.push(e)}function P(e){e.finish();const t=g.indexOf(e);g.splice(t,1)}async function C(e){await n.ensureDoc("checkHeader"),await n.ensureDoc("parseStartXRef"),await n.ensureDoc("parse",[e]),await n.ensureDoc("checkFirstPage",[e]),await n.ensureDoc("checkLastPage",[e]);const t=await n.ensureDoc("isPureXfa");if(t){const e=new p("loadXfaFonts");E(e),await Promise.all([n.loadXfaFonts(S,e).catch((e=>{})).then((()=>P(e))),n.loadXfaImages()])}const[r,i]=await Promise.all([n.ensureDoc("numPages"),n.ensureDoc("fingerprints")]);return{numPages:r,fingerprints:i,htmlForXfa:t?await n.ensureDoc("htmlForXfa"):null}}function A(e){let{data:t,password:n,disableAutoFetch:r,rangeChunkSize:o,length:s,docBaseUrl:l,enableXfa:c,evaluatorOptions:u}=e;const d=(0,i.createPromiseCapability)();let p;if(t){try{p=new a.LocalPdfManager(y,t,n,S,u,c,l),d.resolve(p)}catch(b){d.reject(b)}return d.promise}let g,m=[];try{g=new h.PDFWorkerStream(S)}catch(b){return d.reject(b),d.promise}const v=g.getFullReader();v.headersReady.then((function(){if(v.isRangeSupported){r=r||v.isStreamingSupported,p=new a.NetworkPdfManager(y,g,{msgHandler:S,password:n,length:v.contentLength,disableAutoFetch:r,rangeChunkSize:o},u,c,l);for(const e of m)p.sendProgressiveData(e);m=[],d.resolve(p),f=null}})).catch((function(e){d.reject(e),f=null}));let _=0;return new Promise((function(e,t){const r=function(e){let{value:o,done:h}=e;try{if(w(),h)return p||function(){const e=(0,i.arraysToBytes)(m);s&&e.length!==s&&(0,i.warn)("reported HTTP length is different from actual");try{p=new a.LocalPdfManager(y,e,n,S,u,c,l),d.resolve(p)}catch(b){d.reject(b)}m=[]}(),void(f=null);_+=(0,i.arrayByteLength)(o),v.isStreamingSupported||S.send("DocProgress",{loaded:_,total:Math.max(_,v.contentLength||0)}),p?p.sendProgressiveData(o):m.push(o),v.read().then(r,t)}catch(g){t(g)}};v.read().then(r,t)})).catch((function(e){d.reject(e),f=null})),f=function(e){g.cancelAllRequests(e)},d.promise}return S.on("GetPage",(function(e){return n.getPage(e.pageIndex).then((function(e){return Promise.all([n.ensure(e,"rotate"),n.ensure(e,"ref"),n.ensure(e,"userUnit"),n.ensure(e,"view")]).then((function(e){let[t,n,r,i]=e;return{rotate:t,ref:n,userUnit:r,view:i}}))}))})),S.on("GetPageIndex",(function(e){const t=o.Ref.get(e.num,e.gen);return n.ensureCatalog("getPageIndex",[t])})),S.on("GetDestinations",(function(e){return n.ensureCatalog("destinations")})),S.on("GetDestination",(function(e){return n.ensureCatalog("getDestination",[e.id])})),S.on("GetPageLabels",(function(e){return n.ensureCatalog("pageLabels")})),S.on("GetPageLayout",(function(e){return n.ensureCatalog("pageLayout")})),S.on("GetPageMode",(function(e){return n.ensureCatalog("pageMode")})),S.on("GetViewerPreferences",(function(e){return n.ensureCatalog("viewerPreferences")})),S.on("GetOpenAction",(function(e){return n.ensureCatalog("openAction")})),S.on("GetAttachments",(function(e){return n.ensureCatalog("attachments")})),S.on("GetJavaScript",(function(e){return n.ensureCatalog("javaScript")})),S.on("GetDocJSActions",(function(e){return n.ensureCatalog("jsActions")})),S.on("GetPageJSActions",(function(e){let{pageIndex:t}=e;return n.getPage(t).then((function(e){return n.ensure(e,"jsActions")}))})),S.on("GetOutline",(function(e){return n.ensureCatalog("documentOutline")})),S.on("GetOptionalContentConfig",(function(e){return n.ensureCatalog("optionalContentConfig")})),S.on("GetPermissions",(function(e){return n.ensureCatalog("permissions")})),S.on("GetMetadata",(function(e){return Promise.all([n.ensureDoc("documentInfo"),n.ensureCatalog("metadata")])})),S.on("GetMarkInfo",(function(e){return n.ensureCatalog("markInfo")})),S.on("GetData",(function(e){return n.requestLoadedStream().then((function(e){return e.bytes}))})),S.on("GetAnnotations",(function(e){let{pageIndex:t,intent:r}=e;return n.getPage(t).then((function(e){const n=new p("GetAnnotations: page ".concat(t));return E(n),e.getAnnotationsData(S,n,r).then((e=>(P(n),e)),(e=>{P(n)}))}))})),S.on("GetFieldObjects",(function(e){return n.ensureDoc("fieldObjects")})),S.on("HasJSActions",(function(e){return n.ensureDoc("hasJSActions")})),S.on("GetCalculationOrderIds",(function(e){return n.ensureDoc("calculationOrderIds")})),S.on("SaveDocument",(function(e){let{isPureXfa:t,numPages:r,annotationStorage:a,filename:l}=e;const u=[n.requestLoadedStream(),n.ensureCatalog("acroForm"),n.ensureCatalog("acroFormRef"),n.ensureDoc("xref"),n.ensureDoc("startXRef")],d=t?null:(0,s.getNewAnnotationsMap)(a);if(d)for(const[i,o]of d)u.push(n.getPage(i).then((e=>{const t=new p("Save (editor): page ".concat(i));return e.saveNewAnnotations(S,t,o).finally((function(){P(t)}))})));if(t)u.push(n.serializeXfaData(a));else for(let i=0;i<r;i++)u.push(n.getPage(i).then((function(e){const t=new p("Save: page ".concat(i));return e.save(S,t,a).finally((function(){P(t)}))})));return Promise.all(u).then((function(e){let[n,r,s,a,u,...d]=e,h=[],p=null;if(t){if(p=d[0],!p)return n.bytes}else if(h=d.flat(2),0===h.length)return n.bytes;const f=s&&r instanceof o.Dict&&h.some((e=>e.needAppearances)),g=r instanceof o.Dict&&r.get("XFA")||null;let m=null,y=!1;if(Array.isArray(g)){for(let e=0,t=g.length;e<t;e+=2)"datasets"===g[e]&&(m=g[e+1],y=!0);null===m&&(m=a.getNewTemporaryRef())}else g&&(0,i.warn)("Unsupported XFA type.");let v=Object.create(null);if(a.trailer){const e=Object.create(null),t=a.trailer.get("Info")||null;t instanceof o.Dict&&t.forEach(((t,n)=>{"string"===typeof n&&(e[t]=(0,i.stringToPDFString)(n))})),v={rootRef:a.trailer.getRaw("Root")||null,encryptRef:a.trailer.getRaw("Encrypt")||null,newRef:a.getNewTemporaryRef(),infoRef:a.trailer.getRaw("Info")||null,info:e,fileIds:a.trailer.get("ID")||null,startXRef:u,filename:l}}try{return(0,c.incrementalUpdate)({originalData:n.bytes,xrefInfo:v,newRefs:h,xref:a,hasXfa:!!g,xfaDatasetsRef:m,hasXfaDatasetsEntry:y,needAppearances:f,acroFormRef:s,acroForm:r,xfaData:p})}finally{a.resetNewTemporaryRef()}}))})),S.on("GetOperatorList",(function(e,t){const r=e.pageIndex;n.getPage(r).then((function(n){const o=new p("GetOperatorList: page ".concat(r));E(o);const s=m>=i.VerbosityLevel.INFOS?Date.now():0;n.getOperatorList({handler:S,sink:t,task:o,intent:e.intent,cacheKey:e.cacheKey,annotationStorage:e.annotationStorage}).then((function(e){P(o),s&&(0,i.info)("page=".concat(r+1," - getOperatorList: time=")+"".concat(Date.now()-s,"ms, len=").concat(e.length)),t.close()}),(function(e){P(o),o.terminated||t.error(e)}))}))})),S.on("GetTextContent",(function(e,t){const r=e.pageIndex;n.getPage(r).then((function(n){const o=new p("GetTextContent: page "+r);E(o);const s=m>=i.VerbosityLevel.INFOS?Date.now():0;n.extractTextContent({handler:S,task:o,sink:t,includeMarkedContent:e.includeMarkedContent,combineTextItems:e.combineTextItems}).then((function(){P(o),s&&(0,i.info)("page=".concat(r+1," - getTextContent: time=")+"".concat(Date.now()-s,"ms")),t.close()}),(function(e){P(o),o.terminated||t.error(e)}))}))})),S.on("GetStructTree",(function(e){return n.getPage(e.pageIndex).then((function(e){return n.ensure(e,"getStructTree")}))})),S.on("FontFallback",(function(e){return n.fontFallback(e.id,S)})),S.on("Cleanup",(function(e){return n.cleanup(!0)})),S.on("Terminate",(function(e){r=!0;const t=[];if(n){n.terminate(new i.AbortException("Worker was terminated."));const e=n.cleanup();t.push(e),n=null}else(0,l.clearGlobalCaches)();f&&f(new i.AbortException("Worker was terminated."));for(const n of g)t.push(n.finished),n.terminate();return Promise.all(t).then((function(){S.destroy(),S=null}))})),S.on("Ready",(function(t){!function(e){function t(e){w(),S.send("GetDoc",{pdfInfo:e})}function o(e){if(w(),e instanceof i.PasswordException){const t=new p("PasswordException: response ".concat(e.code));E(t),S.sendWithPromise("PasswordRequest",e).then((function(e){let{password:r}=e;P(t),n.updatePassword(r),a()})).catch((function(){P(t),S.send("DocException",e)}))}else e instanceof i.InvalidPDFException||e instanceof i.MissingPDFException||e instanceof i.UnexpectedResponseException||e instanceof i.UnknownErrorException?S.send("DocException",e):S.send("DocException",new i.UnknownErrorException(e.message,e.toString()))}function a(){w(),C(!1).then(t,(function(e){w(),e instanceof s.XRefParseException?n.requestLoadedStream().then((function(){w(),C(!0).then(t,o)})):o(e)}))}w(),A(e).then((function(e){if(r)throw e.terminate(new i.AbortException("Worker was terminated.")),new Error("Worker was terminated");n=e,n.requestLoadedStream(!0).then((e=>{S.send("DataLoaded",{length:e.bytes.byteLength})}))})).then(a,o)}(e),e=null})),x}static initializeFromPort(e){const t=new d.MessageHandler("worker","main",e);f.setup(t,e),t.send("ready",null)}}t.WorkerMessageHandler=f,"undefined"===typeof window&&!u.isNodeJS&&"undefined"!==typeof self&&"function"===typeof(r=self).postMessage&&"onmessage"in r&&f.initializeFromPort(self)},(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.VerbosityLevel=t.Util=t.UnknownErrorException=t.UnexpectedResponseException=t.UNSUPPORTED_FEATURES=t.TextRenderingMode=t.RenderingIntentFlag=t.PermissionFlag=t.PasswordResponses=t.PasswordException=t.PageActionEventType=t.OPS=t.MissingPDFException=t.LINE_FACTOR=t.LINE_DESCENT_FACTOR=t.InvalidPDFException=t.ImageKind=t.IDENTITY_MATRIX=t.FormatError=t.FeatureTest=t.FONT_IDENTITY_MATRIX=t.DocumentActionEventType=t.CMapCompressionType=t.BaseException=t.BASELINE_FACTOR=t.AnnotationType=t.AnnotationStateModelType=t.AnnotationReviewState=t.AnnotationReplyType=t.AnnotationMode=t.AnnotationMarkedState=t.AnnotationFlag=t.AnnotationFieldFlag=t.AnnotationEditorType=t.AnnotationEditorPrefix=t.AnnotationEditorParamsType=t.AnnotationBorderStyleType=t.AnnotationActionEventType=t.AbortException=void 0,t.arrayByteLength=c,t.arraysToBytes=function(e){const t=e.length;if(1===t&&e[0]instanceof Uint8Array)return e[0];let n=0;for(let o=0;o<t;o++)n+=c(e[o]);let r=0;const i=new Uint8Array(n);for(let o=0;o<t;o++){let t=e[o];t instanceof Uint8Array||(t="string"===typeof t?l(t):new Uint8Array(t));const n=t.byteLength;i.set(t,r),r+=n}return i},t.assert=function(e,t){e||o(t)},t.bytesToString=function(e){"object"===typeof e&&null!==e&&void 0!==e.length||o("Invalid argument for bytesToString");const t=e.length,n=8192;if(t<n)return String.fromCharCode.apply(null,e);const r=[];for(let i=0;i<t;i+=n){const o=Math.min(i+n,t),s=e.subarray(i,o);r.push(String.fromCharCode.apply(null,s))}return r.join("")},t.createPromiseCapability=function(){const e=Object.create(null);let t=!1;return Object.defineProperty(e,"settled",{get:()=>t}),e.promise=new Promise((function(n,r){e.resolve=function(e){t=!0,n(e)},e.reject=function(e){t=!0,r(e)}})),e},t.createValidAbsoluteUrl=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;if(!e)return null;try{if(n&&"string"===typeof e){if(n.addDefaultProtocol&&e.startsWith("www.")){const t=e.match(/\./g);t&&t.length>=2&&(e="http://".concat(e))}if(n.tryConvertEncoding)try{e=p(e)}catch(r){}}const i=t?new URL(e,t):new URL(e);if(function(e){if(!e)return!1;switch(e.protocol){case"http:":case"https:":case"ftp:":case"mailto:":case"tel:":return!0;default:return!1}}(i))return i}catch(r){}return null},t.getModificationDate=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:new Date;return[e.getUTCFullYear().toString(),(e.getUTCMonth()+1).toString().padStart(2,"0"),e.getUTCDate().toString().padStart(2,"0"),e.getUTCHours().toString().padStart(2,"0"),e.getUTCMinutes().toString().padStart(2,"0"),e.getUTCSeconds().toString().padStart(2,"0")].join("")},t.getVerbosityLevel=function(){return r},t.info=function(e){r>=n.INFOS&&console.log("Info: ".concat(e))},t.isArrayBuffer=function(e){return"object"===typeof e&&null!==e&&void 0!==e.byteLength},t.isArrayEqual=function(e,t){if(e.length!==t.length)return!1;for(let n=0,r=e.length;n<r;n++)if(e[n]!==t[n])return!1;return!0},t.objectFromMap=function(e){const t=Object.create(null);for(const[n,r]of e)t[n]=r;return t},t.objectSize=function(e){return Object.keys(e).length},t.setVerbosityLevel=function(e){Number.isInteger(e)&&(r=e)},t.shadow=s,t.string32=function(e){return String.fromCharCode(e>>24&255,e>>16&255,e>>8&255,255&e)},t.stringToBytes=l,t.stringToPDFString=function(e){if(e[0]>="\xef"){let t;if("\xfe"===e[0]&&"\xff"===e[1]?t="utf-16be":"\xff"===e[0]&&"\xfe"===e[1]?t="utf-16le":"\xef"===e[0]&&"\xbb"===e[1]&&"\xbf"===e[2]&&(t="utf-8"),t)try{const n=new TextDecoder(t,{fatal:!0}),r=l(e);return n.decode(r)}catch(n){i('stringToPDFString: "'.concat(n,'".'))}}const t=[];for(let r=0,i=e.length;r<i;r++){const n=h[e.charCodeAt(r)];t.push(n?String.fromCharCode(n):e.charAt(r))}return t.join("")},t.stringToUTF8String=p,t.unreachable=o,t.utf8StringToString=function(e){return unescape(encodeURIComponent(e))},t.warn=i,t.IDENTITY_MATRIX=[1,0,0,1,0,0],t.FONT_IDENTITY_MATRIX=[.001,0,0,.001,0,0],t.LINE_FACTOR=1.35,t.LINE_DESCENT_FACTOR=.35,t.BASELINE_FACTOR=.25925925925925924,t.RenderingIntentFlag={ANY:1,DISPLAY:2,PRINT:4,SAVE:8,ANNOTATIONS_FORMS:16,ANNOTATIONS_STORAGE:32,ANNOTATIONS_DISABLE:64,OPLIST:256},t.AnnotationMode={DISABLE:0,ENABLE:1,ENABLE_FORMS:2,ENABLE_STORAGE:3},t.AnnotationEditorPrefix="pdfjs_internal_editor_",t.AnnotationEditorType={DISABLE:-1,NONE:0,FREETEXT:3,INK:15},t.AnnotationEditorParamsType={FREETEXT_SIZE:1,FREETEXT_COLOR:2,FREETEXT_OPACITY:3,INK_COLOR:11,INK_THICKNESS:12,INK_OPACITY:13},t.PermissionFlag={PRINT:4,MODIFY_CONTENTS:8,COPY:16,MODIFY_ANNOTATIONS:32,FILL_INTERACTIVE_FORMS:256,COPY_FOR_ACCESSIBILITY:512,ASSEMBLE:1024,PRINT_HIGH_QUALITY:2048},t.TextRenderingMode={FILL:0,STROKE:1,FILL_STROKE:2,INVISIBLE:3,FILL_ADD_TO_PATH:4,STROKE_ADD_TO_PATH:5,FILL_STROKE_ADD_TO_PATH:6,ADD_TO_PATH:7,FILL_STROKE_MASK:3,ADD_TO_PATH_FLAG:4},t.ImageKind={GRAYSCALE_1BPP:1,RGB_24BPP:2,RGBA_32BPP:3},t.AnnotationType={TEXT:1,LINK:2,FREETEXT:3,LINE:4,SQUARE:5,CIRCLE:6,POLYGON:7,POLYLINE:8,HIGHLIGHT:9,UNDERLINE:10,SQUIGGLY:11,STRIKEOUT:12,STAMP:13,CARET:14,INK:15,POPUP:16,FILEATTACHMENT:17,SOUND:18,MOVIE:19,WIDGET:20,SCREEN:21,PRINTERMARK:22,TRAPNET:23,WATERMARK:24,THREED:25,REDACT:26},t.AnnotationStateModelType={MARKED:"Marked",REVIEW:"Review"},t.AnnotationMarkedState={MARKED:"Marked",UNMARKED:"Unmarked"},t.AnnotationReviewState={ACCEPTED:"Accepted",REJECTED:"Rejected",CANCELLED:"Cancelled",COMPLETED:"Completed",NONE:"None"},t.AnnotationReplyType={GROUP:"Group",REPLY:"R"},t.AnnotationFlag={INVISIBLE:1,HIDDEN:2,PRINT:4,NOZOOM:8,NOROTATE:16,NOVIEW:32,READONLY:64,LOCKED:128,TOGGLENOVIEW:256,LOCKEDCONTENTS:512},t.AnnotationFieldFlag={READONLY:1,REQUIRED:2,NOEXPORT:4,MULTILINE:4096,PASSWORD:8192,NOTOGGLETOOFF:16384,RADIO:32768,PUSHBUTTON:65536,COMBO:131072,EDIT:262144,SORT:524288,FILESELECT:1048576,MULTISELECT:2097152,DONOTSPELLCHECK:4194304,DONOTSCROLL:8388608,COMB:16777216,RICHTEXT:33554432,RADIOSINUNISON:33554432,COMMITONSELCHANGE:67108864},t.AnnotationBorderStyleType={SOLID:1,DASHED:2,BEVELED:3,INSET:4,UNDERLINE:5},t.AnnotationActionEventType={E:"Mouse Enter",X:"Mouse Exit",D:"Mouse Down",U:"Mouse Up",Fo:"Focus",Bl:"Blur",PO:"PageOpen",PC:"PageClose",PV:"PageVisible",PI:"PageInvisible",K:"Keystroke",F:"Format",V:"Validate",C:"Calculate"},t.DocumentActionEventType={WC:"WillClose",WS:"WillSave",DS:"DidSave",WP:"WillPrint",DP:"DidPrint"},t.PageActionEventType={O:"PageOpen",C:"PageClose"};const n={ERRORS:0,WARNINGS:1,INFOS:5};t.VerbosityLevel=n,t.CMapCompressionType={NONE:0,BINARY:1},t.OPS={dependency:1,setLineWidth:2,setLineCap:3,setLineJoin:4,setMiterLimit:5,setDash:6,setRenderingIntent:7,setFlatness:8,setGState:9,save:10,restore:11,transform:12,moveTo:13,lineTo:14,curveTo:15,curveTo2:16,curveTo3:17,closePath:18,rectangle:19,stroke:20,closeStroke:21,fill:22,eoFill:23,fillStroke:24,eoFillStroke:25,closeFillStroke:26,closeEOFillStroke:27,endPath:28,clip:29,eoClip:30,beginText:31,endText:32,setCharSpacing:33,setWordSpacing:34,setHScale:35,setLeading:36,setFont:37,setTextRenderingMode:38,setTextRise:39,moveText:40,setLeadingMoveText:41,setTextMatrix:42,nextLine:43,showText:44,showSpacedText:45,nextLineShowText:46,nextLineSetSpacingShowText:47,setCharWidth:48,setCharWidthAndBounds:49,setStrokeColorSpace:50,setFillColorSpace:51,setStrokeColor:52,setStrokeColorN:53,setFillColor:54,setFillColorN:55,setStrokeGray:56,setFillGray:57,setStrokeRGBColor:58,setFillRGBColor:59,setStrokeCMYKColor:60,setFillCMYKColor:61,shadingFill:62,beginInlineImage:63,beginImageData:64,endInlineImage:65,paintXObject:66,markPoint:67,markPointProps:68,beginMarkedContent:69,beginMarkedContentProps:70,endMarkedContent:71,beginCompat:72,endCompat:73,paintFormXObjectBegin:74,paintFormXObjectEnd:75,beginGroup:76,endGroup:77,beginAnnotation:80,endAnnotation:81,paintImageMaskXObject:83,paintImageMaskXObjectGroup:84,paintImageXObject:85,paintInlineImageXObject:86,paintInlineImageXObjectGroup:87,paintImageXObjectRepeat:88,paintImageMaskXObjectRepeat:89,paintSolidColorImageMask:90,constructPath:91},t.UNSUPPORTED_FEATURES={forms:"forms",javaScript:"javaScript",signatures:"signatures",smask:"smask",shadingPattern:"shadingPattern",errorTilingPattern:"errorTilingPattern",errorExtGState:"errorExtGState",errorXObject:"errorXObject",errorFontLoadType3:"errorFontLoadType3",errorFontState:"errorFontState",errorFontMissing:"errorFontMissing",errorFontTranslate:"errorFontTranslate",errorColorSpace:"errorColorSpace",errorOperatorList:"errorOperatorList",errorFontToUnicode:"errorFontToUnicode",errorFontLoadNative:"errorFontLoadNative",errorFontBuildPath:"errorFontBuildPath",errorFontGetPath:"errorFontGetPath",errorMarkedContent:"errorMarkedContent",errorContentSubStream:"errorContentSubStream"},t.PasswordResponses={NEED_PASSWORD:1,INCORRECT_PASSWORD:2};let r=n.WARNINGS;function i(e){r>=n.WARNINGS&&console.log("Warning: ".concat(e))}function o(e){throw new Error(e)}function s(e,t,n){let r=arguments.length>3&&void 0!==arguments[3]&&arguments[3];return Object.defineProperty(e,t,{value:n,enumerable:!r,configurable:!0,writable:!1}),n}const a=function(){function e(t,n){this.constructor===e&&o("Cannot initialize BaseException."),this.message=t,this.name=n}return e.prototype=new Error,e.constructor=e,e}();function l(e){"string"!==typeof e&&o("Invalid argument for stringToBytes");const t=e.length,n=new Uint8Array(t);for(let r=0;r<t;++r)n[r]=255&e.charCodeAt(r);return n}function c(e){return void 0!==e.length?e.length:void 0!==e.byteLength?e.byteLength:void o("Invalid argument for arrayByteLength")}t.BaseException=a,t.PasswordException=class extends a{constructor(e,t){super(e,"PasswordException"),this.code=t}},t.UnknownErrorException=class extends a{constructor(e,t){super(e,"UnknownErrorException"),this.details=t}},t.InvalidPDFException=class extends a{constructor(e){super(e,"InvalidPDFException")}},t.MissingPDFException=class extends a{constructor(e){super(e,"MissingPDFException")}},t.UnexpectedResponseException=class extends a{constructor(e,t){super(e,"UnexpectedResponseException"),this.status=t}},t.FormatError=class extends a{constructor(e){super(e,"FormatError")}},t.AbortException=class extends a{constructor(e){super(e,"AbortException")}},t.FeatureTest=class{static get isLittleEndian(){return s(this,"isLittleEndian",function(){const e=new Uint8Array(4);return e[0]=1,1===new Uint32Array(e.buffer,0,1)[0]}())}static get isEvalSupported(){return s(this,"isEvalSupported",function(){try{return new Function(""),!0}catch(e){return!1}}())}static get isOffscreenCanvasSupported(){return s(this,"isOffscreenCanvasSupported","undefined"!==typeof OffscreenCanvas)}static get platform(){return"undefined"===typeof navigator?s(this,"platform",{isWin:!1,isMac:!1}):s(this,"platform",{isWin:navigator.platform.includes("Win"),isMac:navigator.platform.includes("Mac")})}};const u=[...Array(256).keys()].map((e=>e.toString(16).padStart(2,"0")));class d{static makeHexColor(e,t,n){return"#".concat(u[e]).concat(u[t]).concat(u[n])}static scaleMinMax(e,t){let n;e[0]?(e[0]<0&&(n=t[0],t[0]=t[1],t[1]=n),t[0]*=e[0],t[1]*=e[0],e[3]<0&&(n=t[2],t[2]=t[3],t[3]=n),t[2]*=e[3],t[3]*=e[3]):(n=t[0],t[0]=t[2],t[2]=n,n=t[1],t[1]=t[3],t[3]=n,e[1]<0&&(n=t[2],t[2]=t[3],t[3]=n),t[2]*=e[1],t[3]*=e[1],e[2]<0&&(n=t[0],t[0]=t[1],t[1]=n),t[0]*=e[2],t[1]*=e[2]),t[0]+=e[4],t[1]+=e[4],t[2]+=e[5],t[3]+=e[5]}static transform(e,t){return[e[0]*t[0]+e[2]*t[1],e[1]*t[0]+e[3]*t[1],e[0]*t[2]+e[2]*t[3],e[1]*t[2]+e[3]*t[3],e[0]*t[4]+e[2]*t[5]+e[4],e[1]*t[4]+e[3]*t[5]+e[5]]}static applyTransform(e,t){return[e[0]*t[0]+e[1]*t[2]+t[4],e[0]*t[1]+e[1]*t[3]+t[5]]}static applyInverseTransform(e,t){const n=t[0]*t[3]-t[1]*t[2];return[(e[0]*t[3]-e[1]*t[2]+t[2]*t[5]-t[4]*t[3])/n,(-e[0]*t[1]+e[1]*t[0]+t[4]*t[1]-t[5]*t[0])/n]}static getAxialAlignedBoundingBox(e,t){const n=d.applyTransform(e,t),r=d.applyTransform(e.slice(2,4),t),i=d.applyTransform([e[0],e[3]],t),o=d.applyTransform([e[2],e[1]],t);return[Math.min(n[0],r[0],i[0],o[0]),Math.min(n[1],r[1],i[1],o[1]),Math.max(n[0],r[0],i[0],o[0]),Math.max(n[1],r[1],i[1],o[1])]}static inverseTransform(e){const t=e[0]*e[3]-e[1]*e[2];return[e[3]/t,-e[1]/t,-e[2]/t,e[0]/t,(e[2]*e[5]-e[4]*e[3])/t,(e[4]*e[1]-e[5]*e[0])/t]}static singularValueDecompose2dScale(e){const t=[e[0],e[2],e[1],e[3]],n=e[0]*t[0]+e[1]*t[2],r=e[0]*t[1]+e[1]*t[3],i=e[2]*t[0]+e[3]*t[2],o=e[2]*t[1]+e[3]*t[3],s=(n+o)/2,a=Math.sqrt((n+o)**2-4*(n*o-i*r))/2,l=s+a||1,c=s-a||1;return[Math.sqrt(l),Math.sqrt(c)]}static normalizeRect(e){const t=e.slice(0);return e[0]>e[2]&&(t[0]=e[2],t[2]=e[0]),e[1]>e[3]&&(t[1]=e[3],t[3]=e[1]),t}static intersect(e,t){const n=Math.max(Math.min(e[0],e[2]),Math.min(t[0],t[2])),r=Math.min(Math.max(e[0],e[2]),Math.max(t[0],t[2]));if(n>r)return null;const i=Math.max(Math.min(e[1],e[3]),Math.min(t[1],t[3])),o=Math.min(Math.max(e[1],e[3]),Math.max(t[1],t[3]));return i>o?null:[n,i,r,o]}static bezierBoundingBox(e,t,n,r,i,o,s,a){const l=[],c=[[],[]];let u,d,h,p,f,g,m,y;for(let x=0;x<2;++x)if(0===x?(d=6*e-12*n+6*i,u=-3*e+9*n-9*i+3*s,h=3*n-3*e):(d=6*t-12*r+6*o,u=-3*t+9*r-9*o+3*a,h=3*r-3*t),Math.abs(u)<1e-12){if(Math.abs(d)<1e-12)continue;p=-h/d,0<p&&p<1&&l.push(p)}else m=d*d-4*h*u,y=Math.sqrt(m),m<0||(f=(-d+y)/(2*u),0<f&&f<1&&l.push(f),g=(-d-y)/(2*u),0<g&&g<1&&l.push(g));let v,_=l.length;const b=_;for(;_--;)p=l[_],v=1-p,c[0][_]=v*v*v*e+3*v*v*p*n+3*v*p*p*i+p*p*p*s,c[1][_]=v*v*v*t+3*v*v*p*r+3*v*p*p*o+p*p*p*a;return c[0][b]=e,c[1][b]=t,c[0][b+1]=s,c[1][b+1]=a,c[0].length=c[1].length=b+2,[Math.min(...c[0]),Math.min(...c[1]),Math.max(...c[0]),Math.max(...c[1])]}}t.Util=d;const h=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,728,711,710,729,733,731,730,732,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,8226,8224,8225,8230,8212,8211,402,8260,8249,8250,8722,8240,8222,8220,8221,8216,8217,8218,8482,64257,64258,321,338,352,376,381,305,322,339,353,382,0,8364];function p(e){return decodeURIComponent(escape(e))}},(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.RefSetCache=t.RefSet=t.Ref=t.Name=t.EOF=t.Dict=t.Cmd=t.CIRCULAR_REF=void 0,t.clearPrimitiveCaches=function(){a._clearCache(),s._clearCache(),u._clearCache()},t.isCmd=function(e,t){return e instanceof a&&(void 0===t||e.cmd===t)},t.isDict=function(e,t){return e instanceof c&&(void 0===t||p(e.get("Type"),t))},t.isName=p,t.isRefsEqual=function(e,t){return e.num===t.num&&e.gen===t.gen};var r=n(2);const i=Symbol("CIRCULAR_REF");t.CIRCULAR_REF=i;const o=Symbol("EOF");t.EOF=o;const s=function(){let e=Object.create(null);class t{constructor(e){this.name=e}static get(n){return e[n]||(e[n]=new t(n))}static _clearCache(){e=Object.create(null)}}return t}();t.Name=s;const a=function(){let e=Object.create(null);class t{constructor(e){this.cmd=e}static get(n){return e[n]||(e[n]=new t(n))}static _clearCache(){e=Object.create(null)}}return t}();t.Cmd=a;const l=function(){return l};class c{constructor(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;this._map=Object.create(null),this.xref=e,this.objId=null,this.suppressEncryption=!1,this.__nonSerializable__=l}assignXref(e){this.xref=e}get size(){return Object.keys(this._map).length}get(e,t,n){let r=this._map[e];return void 0===r&&void 0!==t&&(r=this._map[t],void 0===r&&void 0!==n&&(r=this._map[n])),r instanceof u&&this.xref?this.xref.fetch(r,this.suppressEncryption):r}async getAsync(e,t,n){let r=this._map[e];return void 0===r&&void 0!==t&&(r=this._map[t],void 0===r&&void 0!==n&&(r=this._map[n])),r instanceof u&&this.xref?this.xref.fetchAsync(r,this.suppressEncryption):r}getArray(e,t,n){let r=this._map[e];if(void 0===r&&void 0!==t&&(r=this._map[t],void 0===r&&void 0!==n&&(r=this._map[n])),r instanceof u&&this.xref&&(r=this.xref.fetch(r,this.suppressEncryption)),Array.isArray(r)){r=r.slice();for(let e=0,t=r.length;e<t;e++)r[e]instanceof u&&this.xref&&(r[e]=this.xref.fetch(r[e],this.suppressEncryption))}return r}getRaw(e){return this._map[e]}getKeys(){return Object.keys(this._map)}getRawValues(){return Object.values(this._map)}set(e,t){this._map[e]=t}has(e){return void 0!==this._map[e]}forEach(e){for(const t in this._map)e(t,this.get(t))}static get empty(){const e=new c(null);return e.set=(e,t)=>{(0,r.unreachable)("Should not call `set` on the empty dictionary.")},(0,r.shadow)(this,"empty",e)}static merge(e){let{xref:t,dictArray:n,mergeSubDicts:r=!1}=e;const i=new c(t),o=new Map;for(const s of n)if(s instanceof c)for(const[e,t]of Object.entries(s._map)){let n=o.get(e);if(void 0===n)n=[],o.set(e,n);else if(!r||!(t instanceof c))continue;n.push(t)}for(const[s,a]of o){if(1===a.length||!(a[0]instanceof c)){i._map[s]=a[0];continue}const e=new c(t);for(const t of a)for(const[n,r]of Object.entries(t._map))void 0===e._map[n]&&(e._map[n]=r);e.size>0&&(i._map[s]=e)}return o.clear(),i.size>0?i:c.empty}}t.Dict=c;const u=function(){let e=Object.create(null);class t{constructor(e,t){this.num=e,this.gen=t}toString(){return 0===this.gen?"".concat(this.num,"R"):"".concat(this.num,"R").concat(this.gen)}static get(n,r){const i=0===r?"".concat(n,"R"):"".concat(n,"R").concat(r);return e[i]||(e[i]=new t(n,r))}static _clearCache(){e=Object.create(null)}}return t}();t.Ref=u;class d{constructor(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;this._set=new Set(e&&e._set)}has(e){return this._set.has(e.toString())}put(e){this._set.add(e.toString())}remove(e){this._set.delete(e.toString())}[Symbol.iterator](){return this._set.values()}clear(){this._set.clear()}}t.RefSet=d;class h{constructor(){this._map=new Map}get size(){return this._map.size}get(e){return this._map.get(e.toString())}has(e){return this._map.has(e.toString())}put(e,t){this._map.set(e.toString(),t)}putAlias(e,t){this._map.set(e.toString(),this.get(t))}[Symbol.iterator](){return this._map.values()}clear(){this._map.clear()}}function p(e,t){return e instanceof s&&(void 0===t||e.name===t)}t.RefSetCache=h},(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.XRefParseException=t.XRefEntryException=t.ParserEOFException=t.PDF_VERSION_REGEXP=t.MissingDataException=void 0,t.collectActions=function(e,t,n){const o=Object.create(null),s=u({dict:t,key:"AA",stopWhenFound:!1});if(s)for(let r=s.length-1;r>=0;r--){const t=s[r];if(t instanceof i.Dict)for(const r of t.getKeys()){const s=n[r];if(!s)continue;const a=[];h(t.getRaw(r),e,a,new i.RefSet),a.length>0&&(o[s]=a)}}if(t.has("A")){const n=[];h(t.get("A"),e,n,new i.RefSet),n.length>0&&(o.Action=n)}return(0,r.objectSize)(o)>0?o:null},t.encodeToXmlString=function(e){const t=[];let n=0;for(let r=0,i=e.length;r<i;r++){const i=e.codePointAt(r);if(32<=i&&i<=126){const o=p[i];o&&(n<r&&t.push(e.substring(n,r)),t.push(o),n=r+1)}else n<r&&t.push(e.substring(n,r)),t.push("&#x".concat(i.toString(16).toUpperCase(),";")),i>55295&&(i<57344||i>65533)&&r++,n=r+1}return 0===t.length?e:(n<e.length&&t.push(e.substring(n,e.length)),t.join(""))},t.escapePDFName=function(e){const t=[];let n=0;for(let r=0,i=e.length;r<i;r++){const i=e.charCodeAt(r);(i<33||i>126||35===i||40===i||41===i||60===i||62===i||91===i||93===i||123===i||125===i||47===i||37===i)&&(n<r&&t.push(e.substring(n,r)),t.push("#".concat(i.toString(16))),n=r+1)}return 0===t.length?e:(n<e.length&&t.push(e.substring(n,e.length)),t.join(""))},t.escapeString=function(e){return e.replace(/([()\\\n\r])/g,(e=>"\n"===e?"\\n":"\r"===e?"\\r":"\\".concat(e)))},t.getArrayLookupTableFactory=function(e){let t;return function(){if(e){let n=e();e=null,t=Object.create(null);for(let e=0,r=n.length;e<r;e+=2)t[n[e]]=n[e+1];n=null}return t}},t.getInheritableProperty=u,t.getLookupTableFactory=function(e){let t;return function(){return e&&(t=Object.create(null),e(t),e=null),t}},t.getNewAnnotationsMap=function(e){if(!e)return null;const t=new Map;for(const[n,i]of e){if(!n.startsWith(r.AnnotationEditorPrefix))continue;let e=t.get(i.pageIndex);e||(e=[],t.set(i.pageIndex,e)),e.push(i)}return t.size>0?t:null},t.getRotationMatrix=function(e,t,n){switch(e){case 90:return[0,1,-1,0,t,0];case 180:return[-1,0,0,-1,t,n];case 270:return[0,-1,1,0,0,n];default:throw new Error("Invalid rotation")}},t.isAscii=function(e){return/^[\x00-\x7F]*$/.test(e)},t.isWhiteSpace=function(e){return 32===e||9===e||13===e||10===e},t.log2=function(e){return e<=0?0:Math.ceil(Math.log2(e))},t.numberToString=function(e){if(Number.isInteger(e))return e.toString();const t=Math.round(100*e);return t%100===0?(t/100).toString():t%10===0?e.toFixed(1):e.toFixed(2)},t.parseXFAPath=function(e){const t=/(.+)\[(\d+)\]$/;return e.split(".").map((e=>{const n=e.match(t);return n?{name:n[1],pos:parseInt(n[2],10)}:{name:e,pos:0}}))},t.readInt8=function(e,t){return e[t]<<24>>24},t.readUint16=function(e,t){return e[t]<<8|e[t+1]},t.readUint32=function(e,t){return(e[t]<<24|e[t+1]<<16|e[t+2]<<8|e[t+3])>>>0},t.recoverJsURL=function(e){const t=new RegExp("^\\s*("+["app.launchURL","window.open","xfa.host.gotoURL"].join("|").split(".").join("\\.")+")\\((?:'|\")([^'\"]*)(?:'|\")(?:,\\s*(\\w+)\\)|\\))","i").exec(e);if(t&&t[2]){const e=t[2];let n=!1;return"true"===t[3]&&"app.launchURL"===t[1]&&(n=!0),{url:e,newWindow:n}}return null},t.stringToUTF16HexString=function(e){const t=[];for(let n=0,r=e.length;n<r;n++){const r=e.charCodeAt(n);t.push((r>>8&255).toString(16).padStart(2,"0"),(255&r).toString(16).padStart(2,"0"))}return t.join("")},t.stringToUTF16String=function(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];const n=[];t&&n.push("\xfe\xff");for(let r=0,i=e.length;r<i;r++){const t=e.charCodeAt(r);n.push(String.fromCharCode(t>>8&255),String.fromCharCode(255&t))}return n.join("")},t.toRomanNumerals=function(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];(0,r.assert)(Number.isInteger(e)&&e>0,"The number should be a positive integer.");const n=[];let i;for(;e>=1e3;)e-=1e3,n.push("M");i=e/100|0,e%=100,n.push(d[i]),i=e/10|0,e%=10,n.push(d[10+i]),n.push(d[20+e]);const o=n.join("");return t?o.toLowerCase():o},t.validateCSSFont=function(e){const t=new Set(["100","200","300","400","500","600","700","800","900","1000","normal","bold","bolder","lighter"]),{fontFamily:n,fontWeight:i,italicAngle:o}=e;if(/^".*"$/.test(n)){if(/[^\\]"/.test(n.slice(1,n.length-1)))return(0,r.warn)('XFA - FontFamily contains some unescaped ": '.concat(n,".")),!1}else if(/^'.*'$/.test(n)){if(/[^\\]'/.test(n.slice(1,n.length-1)))return(0,r.warn)("XFA - FontFamily contains some unescaped ': ".concat(n,".")),!1}else for(const l of n.split(/[ \t]+/))if(/^(\d|(-(\d|-)))/.test(l)||!/^[\w-\\]+$/.test(l))return(0,r.warn)("XFA - FontFamily contains some invalid <custom-ident>: ".concat(n,".")),!1;const s=i?i.toString():"";e.fontWeight=t.has(s)?s:"400";const a=parseFloat(o);return e.italicAngle=isNaN(a)||a<-90||a>90?"14":o.toString(),!0};var r=n(2),i=n(3),o=n(5);t.PDF_VERSION_REGEXP=/^[1-9]\.\d$/;class s extends r.BaseException{constructor(e,t){super("Missing data [".concat(e,", ").concat(t,")"),"MissingDataException"),this.begin=e,this.end=t}}t.MissingDataException=s;class a extends r.BaseException{constructor(e){super(e,"ParserEOFException")}}t.ParserEOFException=a;class l extends r.BaseException{constructor(e){super(e,"XRefEntryException")}}t.XRefEntryException=l;class c extends r.BaseException{constructor(e){super(e,"XRefParseException")}}function u(e){let t,{dict:n,key:r,getArray:o=!1,stopWhenFound:s=!0}=e;const a=new i.RefSet;for(;n instanceof i.Dict&&(!n.objId||!a.has(n.objId));){n.objId&&a.put(n.objId);const e=o?n.getArray(r):n.get(r);if(void 0!==e){if(s)return e;t||(t=[]),t.push(e)}n=n.get("Parent")}return t}t.XRefParseException=c;const d=["","C","CC","CCC","CD","D","DC","DCC","DCCC","CM","","X","XX","XXX","XL","L","LX","LXX","LXXX","XC","","I","II","III","IV","V","VI","VII","VIII","IX"];function h(e,t,n,s){if(!e)return;let a=null;if(e instanceof i.Ref){if(s.has(e))return;a=e,s.put(a),e=t.fetch(e)}if(Array.isArray(e))for(const r of e)h(r,t,n,s);else if(e instanceof i.Dict){if((0,i.isName)(e.get("S"),"JavaScript")){const t=e.get("JS");let i;t instanceof o.BaseStream?i=t.getString():"string"===typeof t&&(i=t),i=i&&(0,r.stringToPDFString)(i).replace(/\u0000/g,""),i&&n.push(i)}h(e.getRaw("Next"),t,n,s)}a&&s.remove(a)}const p={60:"&lt;",62:"&gt;",38:"&amp;",34:"&quot;",39:"&apos;"}},(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.BaseStream=void 0;var r=n(2);class i{constructor(){this.constructor===i&&(0,r.unreachable)("Cannot initialize BaseStream.")}get length(){(0,r.unreachable)("Abstract getter `length` accessed")}get isEmpty(){(0,r.unreachable)("Abstract getter `isEmpty` accessed")}get isDataLoaded(){return(0,r.shadow)(this,"isDataLoaded",!0)}getByte(){(0,r.unreachable)("Abstract method `getByte` called")}getBytes(e){(0,r.unreachable)("Abstract method `getBytes` called")}peekByte(){const e=this.getByte();return-1!==e&&this.pos--,e}peekBytes(e){const t=this.getBytes(e);return this.pos-=t.length,t}getUint16(){const e=this.getByte(),t=this.getByte();return-1===e||-1===t?-1:(e<<8)+t}getInt32(){return(this.getByte()<<24)+(this.getByte()<<16)+(this.getByte()<<8)+this.getByte()}getByteRange(e,t){(0,r.unreachable)("Abstract method `getByteRange` called")}getString(e){return(0,r.bytesToString)(this.getBytes(e))}skip(e){this.pos+=e||1}reset(){(0,r.unreachable)("Abstract method `reset` called")}moveStart(){(0,r.unreachable)("Abstract method `moveStart` called")}makeSubStream(e,t){(0,r.unreachable)("Abstract method `makeSubStream` called")}getBaseStreams(){return null}}t.BaseStream=i},(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.NetworkPdfManager=t.LocalPdfManager=void 0;var r=n(2),i=n(7),o=n(4),s=n(9),a=n(8);function l(e){if(e){const t=(0,r.createValidAbsoluteUrl)(e);if(t)return t.href;(0,r.warn)('Invalid absolute docBaseUrl: "'.concat(e,'".'))}return null}class c{constructor(){this.constructor===c&&(0,r.unreachable)("Cannot initialize BasePdfManager.")}get docId(){return this._docId}get password(){return this._password}get docBaseUrl(){const e=this.pdfDocument.catalog;return(0,r.shadow)(this,"docBaseUrl",e.baseUrl||this._docBaseUrl)}ensureDoc(e,t){return this.ensure(this.pdfDocument,e,t)}ensureXRef(e,t){return this.ensure(this.pdfDocument.xref,e,t)}ensureCatalog(e,t){return this.ensure(this.pdfDocument.catalog,e,t)}getPage(e){return this.pdfDocument.getPage(e)}fontFallback(e,t){return this.pdfDocument.fontFallback(e,t)}loadXfaFonts(e,t){return this.pdfDocument.loadXfaFonts(e,t)}loadXfaImages(){return this.pdfDocument.loadXfaImages()}serializeXfaData(e){return this.pdfDocument.serializeXfaData(e)}cleanup(){let e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return this.pdfDocument.cleanup(e)}async ensure(e,t,n){(0,r.unreachable)("Abstract method `ensure` called")}requestRange(e,t){(0,r.unreachable)("Abstract method `requestRange` called")}requestLoadedStream(){(0,r.unreachable)("Abstract method `requestLoadedStream` called")}sendProgressiveData(e){(0,r.unreachable)("Abstract method `sendProgressiveData` called")}updatePassword(e){this._password=e}terminate(e){(0,r.unreachable)("Abstract method `terminate` called")}}t.LocalPdfManager=class extends c{constructor(e,t,n,r,i,o,c){super(),this._docId=e,this._password=n,this._docBaseUrl=l(c),this.msgHandler=r,this.evaluatorOptions=i,this.enableXfa=o;const u=new a.Stream(t);this.pdfDocument=new s.PDFDocument(this,u),this._loadedStreamPromise=Promise.resolve(u)}async ensure(e,t,n){const r=e[t];return"function"===typeof r?r.apply(e,n):r}requestRange(e,t){return Promise.resolve()}requestLoadedStream(){return this._loadedStreamPromise}terminate(e){}},t.NetworkPdfManager=class extends c{constructor(e,t,n,r,o,a){super(),this._docId=e,this._password=n.password,this._docBaseUrl=l(a),this.msgHandler=n.msgHandler,this.evaluatorOptions=r,this.enableXfa=o,this.streamManager=new i.ChunkedStreamManager(t,{msgHandler:n.msgHandler,length:n.length,disableAutoFetch:n.disableAutoFetch,rangeChunkSize:n.rangeChunkSize}),this.pdfDocument=new s.PDFDocument(this,this.streamManager.getStream())}async ensure(e,t,n){try{const r=e[t];return"function"===typeof r?r.apply(e,n):r}catch(r){if(!(r instanceof o.MissingDataException))throw r;return await this.requestRange(r.begin,r.end),this.ensure(e,t,n)}}requestRange(e,t){return this.streamManager.requestRange(e,t)}requestLoadedStream(){let e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return this.streamManager.requestAllChunks(e)}sendProgressiveData(e){this.streamManager.onReceiveData({chunk:e})}terminate(e){this.streamManager.abort(e)}}},(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.ChunkedStreamManager=t.ChunkedStream=void 0;var r=n(2),i=n(4),o=n(8);class s extends o.Stream{constructor(e,t,n){super(new Uint8Array(e),0,e,null),this.chunkSize=t,this._loadedChunks=new Set,this.numChunks=Math.ceil(e/t),this.manager=n,this.progressiveDataLength=0,this.lastSuccessfulEnsureByteChunk=-1}getMissingChunks(){const e=[];for(let t=0,n=this.numChunks;t<n;++t)this._loadedChunks.has(t)||e.push(t);return e}get numChunksLoaded(){return this._loadedChunks.size}get isDataLoaded(){return this.numChunksLoaded===this.numChunks}onReceiveData(e,t){const n=this.chunkSize;if(e%n!==0)throw new Error("Bad begin offset: ".concat(e));const r=e+t.byteLength;if(r%n!==0&&r!==this.bytes.length)throw new Error("Bad end offset: ".concat(r));this.bytes.set(new Uint8Array(t),e);const i=Math.floor(e/n),o=Math.floor((r-1)/n)+1;for(let s=i;s<o;++s)this._loadedChunks.add(s)}onReceiveProgressiveData(e){let t=this.progressiveDataLength;const n=Math.floor(t/this.chunkSize);this.bytes.set(new Uint8Array(e),t),t+=e.byteLength,this.progressiveDataLength=t;const r=t>=this.end?this.numChunks:Math.floor(t/this.chunkSize);for(let i=n;i<r;++i)this._loadedChunks.add(i)}ensureByte(e){if(e<this.progressiveDataLength)return;const t=Math.floor(e/this.chunkSize);if(!(t>this.numChunks)&&t!==this.lastSuccessfulEnsureByteChunk){if(!this._loadedChunks.has(t))throw new i.MissingDataException(e,e+1);this.lastSuccessfulEnsureByteChunk=t}}ensureRange(e,t){if(e>=t)return;if(t<=this.progressiveDataLength)return;const n=Math.floor(e/this.chunkSize);if(n>this.numChunks)return;const r=Math.min(Math.floor((t-1)/this.chunkSize)+1,this.numChunks);for(let o=n;o<r;++o)if(!this._loadedChunks.has(o))throw new i.MissingDataException(e,t)}nextEmptyChunk(e){const t=this.numChunks;for(let n=0;n<t;++n){const r=(e+n)%t;if(!this._loadedChunks.has(r))return r}return null}hasChunk(e){return this._loadedChunks.has(e)}getByte(){const e=this.pos;return e>=this.end?-1:(e>=this.progressiveDataLength&&this.ensureByte(e),this.bytes[this.pos++])}getBytes(e){const t=this.bytes,n=this.pos,r=this.end;if(!e)return r>this.progressiveDataLength&&this.ensureRange(n,r),t.subarray(n,r);let i=n+e;return i>r&&(i=r),i>this.progressiveDataLength&&this.ensureRange(n,i),this.pos=i,t.subarray(n,i)}getByteRange(e,t){return e<0&&(e=0),t>this.end&&(t=this.end),t>this.progressiveDataLength&&this.ensureRange(e,t),this.bytes.subarray(e,t)}makeSubStream(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;function r(){}t?e+t>this.progressiveDataLength&&this.ensureRange(e,e+t):e>=this.progressiveDataLength&&this.ensureByte(e),r.prototype=Object.create(this),r.prototype.getMissingChunks=function(){const e=this.chunkSize,t=Math.floor(this.start/e),n=Math.floor((this.end-1)/e)+1,r=[];for(let i=t;i<n;++i)this._loadedChunks.has(i)||r.push(i);return r},Object.defineProperty(r.prototype,"isDataLoaded",{get(){return this.numChunksLoaded===this.numChunks||0===this.getMissingChunks().length},configurable:!0});const i=new r;return i.pos=i.start=e,i.end=e+t||this.end,i.dict=n,i}getBaseStreams(){return[this]}}t.ChunkedStream=s,t.ChunkedStreamManager=class{constructor(e,t){this.length=t.length,this.chunkSize=t.rangeChunkSize,this.stream=new s(this.length,this.chunkSize,this),this.pdfNetworkStream=e,this.disableAutoFetch=t.disableAutoFetch,this.msgHandler=t.msgHandler,this.currRequestId=0,this._chunksNeededByRequest=new Map,this._requestsByChunk=new Map,this._promisesByRequest=new Map,this.progressiveDataLength=0,this.aborted=!1,this._loadedStreamCapability=(0,r.createPromiseCapability)()}sendRequest(e,t){const n=this.pdfNetworkStream.getRangeReader(e,t);n.isStreamingSupported||(n.onProgress=this.onProgress.bind(this));let i=[],o=0;return new Promise(((e,t)=>{const s=a=>{try{if(!a.done){const e=a.value;return i.push(e),o+=(0,r.arrayByteLength)(e),n.isStreamingSupported&&this.onProgress({loaded:o}),void n.read().then(s,t)}const l=(0,r.arraysToBytes)(i);i=null,e(l)}catch(l){t(l)}};n.read().then(s,t)})).then((t=>{this.aborted||this.onReceiveData({chunk:t,begin:e})}))}requestAllChunks(){if(!(arguments.length>0&&void 0!==arguments[0]&&arguments[0])){const e=this.stream.getMissingChunks();this._requestChunks(e)}return this._loadedStreamCapability.promise}_requestChunks(e){const t=this.currRequestId++,n=new Set;this._chunksNeededByRequest.set(t,n);for(const r of e)this.stream.hasChunk(r)||n.add(r);if(0===n.size)return Promise.resolve();const i=(0,r.createPromiseCapability)();this._promisesByRequest.set(t,i);const o=[];for(const r of n){let e=this._requestsByChunk.get(r);e||(e=[],this._requestsByChunk.set(r,e),o.push(r)),e.push(t)}if(o.length>0){const e=this.groupChunks(o);for(const t of e){const e=t.beginChunk*this.chunkSize,n=Math.min(t.endChunk*this.chunkSize,this.length);this.sendRequest(e,n).catch(i.reject)}}return i.promise.catch((e=>{if(!this.aborted)throw e}))}getStream(){return this.stream}requestRange(e,t){t=Math.min(t,this.length);const n=this.getBeginChunk(e),r=this.getEndChunk(t),i=[];for(let o=n;o<r;++o)i.push(o);return this._requestChunks(i)}requestRanges(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];const t=[];for(const n of e){const e=this.getBeginChunk(n.begin),r=this.getEndChunk(n.end);for(let n=e;n<r;++n)t.includes(n)||t.push(n)}return t.sort((function(e,t){return e-t})),this._requestChunks(t)}groupChunks(e){const t=[];let n=-1,r=-1;for(let i=0,o=e.length;i<o;++i){const o=e[i];n<0&&(n=o),r>=0&&r+1!==o&&(t.push({beginChunk:n,endChunk:r+1}),n=o),i+1===e.length&&t.push({beginChunk:n,endChunk:o+1}),r=o}return t}onProgress(e){this.msgHandler.send("DocProgress",{loaded:this.stream.numChunksLoaded*this.chunkSize+e.loaded,total:this.length})}onReceiveData(e){const t=e.chunk,n=void 0===e.begin,r=n?this.progressiveDataLength:e.begin,i=r+t.byteLength,o=Math.floor(r/this.chunkSize),s=i<this.length?Math.floor(i/this.chunkSize):Math.ceil(i/this.chunkSize);n?(this.stream.onReceiveProgressiveData(t),this.progressiveDataLength=i):this.stream.onReceiveData(r,t),this.stream.isDataLoaded&&this._loadedStreamCapability.resolve(this.stream);const a=[];for(let l=o;l<s;++l){const e=this._requestsByChunk.get(l);if(e){this._requestsByChunk.delete(l);for(const t of e){const e=this._chunksNeededByRequest.get(t);e.has(l)&&e.delete(l),e.size>0||a.push(t)}}}if(!this.disableAutoFetch&&0===this._requestsByChunk.size){let e;if(1===this.stream.numChunksLoaded){const t=this.stream.numChunks-1;this.stream.hasChunk(t)||(e=t)}else e=this.stream.nextEmptyChunk(s);Number.isInteger(e)&&this._requestChunks([e])}for(const l of a){const e=this._promisesByRequest.get(l);this._promisesByRequest.delete(l),e.resolve()}this.msgHandler.send("DocProgress",{loaded:this.stream.numChunksLoaded*this.chunkSize,total:this.length})}onError(e){this._loadedStreamCapability.reject(e)}getBeginChunk(e){return Math.floor(e/this.chunkSize)}getEndChunk(e){return Math.floor((e-1)/this.chunkSize)+1}abort(e){this.aborted=!0,this.pdfNetworkStream&&this.pdfNetworkStream.cancelAllRequests(e);for(const t of this._promisesByRequest.values())t.reject(e)}}},(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.StringStream=t.Stream=t.NullStream=void 0;var r=n(5),i=n(2);class o extends r.BaseStream{constructor(e,t,n,r){super(),this.bytes=e instanceof Uint8Array?e:new Uint8Array(e),this.start=t||0,this.pos=this.start,this.end=t+n||this.bytes.length,this.dict=r}get length(){return this.end-this.start}get isEmpty(){return 0===this.length}getByte(){return this.pos>=this.end?-1:this.bytes[this.pos++]}getBytes(e){const t=this.bytes,n=this.pos,r=this.end;if(!e)return t.subarray(n,r);let i=n+e;return i>r&&(i=r),this.pos=i,t.subarray(n,i)}getByteRange(e,t){return e<0&&(e=0),t>this.end&&(t=this.end),this.bytes.subarray(e,t)}reset(){this.pos=this.start}moveStart(){this.start=this.pos}makeSubStream(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;return new o(this.bytes.buffer,e,t,n)}}t.Stream=o,t.StringStream=class extends o{constructor(e){super((0,i.stringToBytes)(e))}},t.NullStream=class extends o{constructor(){super(new Uint8Array(0))}}},(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.Page=t.PDFDocument=void 0;var r=n(10),i=n(2),o=n(4),s=n(3),a=n(49),l=n(5),c=n(65),u=n(67),d=n(69),h=n(98),p=n(15),f=n(8),g=n(73),m=n(60),y=n(13),v=n(17),_=n(72),b=n(63),x=n(74),S=n(99);const w=[0,0,612,792];class E{constructor(e){let{pdfManager:t,xref:n,pageIndex:r,pageDict:i,ref:o,globalIdFactory:s,fontCache:a,builtInCMapCache:l,standardFontDataCache:c,globalImageCache:u,nonBlendModesSet:d,xfaFactory:h}=e;this.pdfManager=t,this.pageIndex=r,this.pageDict=i,this.xref=n,this.ref=o,this.fontCache=a,this.builtInCMapCache=l,this.standardFontDataCache=c,this.globalImageCache=u,this.nonBlendModesSet=d,this.evaluatorOptions=t.evaluatorOptions,this.resourcesPromise=null,this.xfaFactory=h;const p={obj:0};this._localIdFactory=class extends s{static createObjId(){return"p".concat(r,"_").concat(++p.obj)}static getPageObjId(){return"page".concat(o.toString())}}}_getInheritableProperty(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];const n=(0,o.getInheritableProperty)({dict:this.pageDict,key:e,getArray:t,stopWhenFound:!1});return Array.isArray(n)?1!==n.length&&n[0]instanceof s.Dict?s.Dict.merge({xref:this.xref,dictArray:n}):n[0]:n}get content(){return this.pageDict.getArray("Contents")}get resources(){const e=this._getInheritableProperty("Resources");return(0,i.shadow)(this,"resources",e instanceof s.Dict?e:s.Dict.empty)}_getBoundingBox(e){if(this.xfaData)return this.xfaData.bbox;let t=this._getInheritableProperty(e,!0);if(Array.isArray(t)&&4===t.length){if(t=i.Util.normalizeRect(t),t[2]-t[0]>0&&t[3]-t[1]>0)return t;(0,i.warn)("Empty, or invalid, /".concat(e," entry."))}return null}get mediaBox(){return(0,i.shadow)(this,"mediaBox",this._getBoundingBox("MediaBox")||w)}get cropBox(){return(0,i.shadow)(this,"cropBox",this._getBoundingBox("CropBox")||this.mediaBox)}get userUnit(){let e=this.pageDict.get("UserUnit");return("number"!==typeof e||e<=0)&&(e=1),(0,i.shadow)(this,"userUnit",e)}get view(){const{cropBox:e,mediaBox:t}=this;if(e!==t&&!(0,i.isArrayEqual)(e,t)){const n=i.Util.intersect(e,t);if(n&&n[2]-n[0]>0&&n[3]-n[1]>0)return(0,i.shadow)(this,"view",n);(0,i.warn)("Empty /CropBox and /MediaBox intersection.")}return(0,i.shadow)(this,"view",t)}get rotate(){let e=this._getInheritableProperty("Rotate")||0;return e%90!==0?e=0:e>=360?e%=360:e<0&&(e=(e%360+360)%360),(0,i.shadow)(this,"rotate",e)}_onSubStreamError(e,t,n){if(this.evaluatorOptions.ignoreErrors)return e.send("UnsupportedFeature",{featureId:i.UNSUPPORTED_FEATURES.errorContentSubStream}),void(0,i.warn)("getContentStream - ignoring sub-stream (".concat(n,'): "').concat(t,'".'));throw t}getContentStream(e){return this.pdfManager.ensure(this,"content").then((t=>t instanceof l.BaseStream?t:Array.isArray(t)?new v.StreamsSequenceStream(t,this._onSubStreamError.bind(this,e)):new f.NullStream))}get xfaData(){return(0,i.shadow)(this,"xfaData",this.xfaFactory?{bbox:this.xfaFactory.getBoundingBox(this.pageIndex)}:null)}async saveNewAnnotations(e,t,n){if(this.xfaFactory)throw new Error("XFA: Cannot save new annotations.");const i=new y.PartialEvaluator({xref:this.xref,handler:e,pageIndex:this.pageIndex,idFactory:this._localIdFactory,fontCache:this.fontCache,builtInCMapCache:this.builtInCMapCache,standardFontDataCache:this.standardFontDataCache,globalImageCache:this.globalImageCache,options:this.evaluatorOptions}),o=this.pageDict,s=this.annotations.slice(),a=await r.AnnotationFactory.saveNewAnnotations(i,t,n);for(const{ref:r}of a.annotations)s.push(r);const l=o.get("Annots");o.set("Annots",s);const c=[];let u=null;this.xref.encrypt&&(u=this.xref.encrypt.createCipherTransform(this.ref.num,this.ref.gen)),(0,b.writeObject)(this.ref,o,c,u),l&&o.set("Annots",l);const d=a.dependencies;return d.push({ref:this.ref,data:c.join("")},...a.annotations),d}save(e,t,n){const r=new y.PartialEvaluator({xref:this.xref,handler:e,pageIndex:this.pageIndex,idFactory:this._localIdFactory,fontCache:this.fontCache,builtInCMapCache:this.builtInCMapCache,standardFontDataCache:this.standardFontDataCache,globalImageCache:this.globalImageCache,options:this.evaluatorOptions});return this._parsedAnnotations.then((function(e){const o=[];for(const s of e)s.mustBePrinted(n)&&o.push(s.save(r,t,n).catch((function(e){return(0,i.warn)("save - ignoring annotation data during "+'"'.concat(t.name,'" task: "').concat(e,'".')),null})));return Promise.all(o).then((function(e){return e.filter((e=>!!e))}))}))}loadResources(e){return this.resourcesPromise||(this.resourcesPromise=this.pdfManager.ensure(this,"resources")),this.resourcesPromise.then((()=>new g.ObjectLoader(this.resources,e,this.xref).load()))}getOperatorList(e){let{handler:t,sink:n,task:s,intent:a,cacheKey:l,annotationStorage:c=null}=e;const u=this.getContentStream(t),d=this.loadResources(["ColorSpace","ExtGState","Font","Pattern","Properties","Shading","XObject"]),h=new y.PartialEvaluator({xref:this.xref,handler:t,pageIndex:this.pageIndex,idFactory:this._localIdFactory,fontCache:this.fontCache,builtInCMapCache:this.builtInCMapCache,standardFontDataCache:this.standardFontDataCache,globalImageCache:this.globalImageCache,options:this.evaluatorOptions}),p=this.xfaFactory?null:(0,o.getNewAnnotationsMap)(c);let f=Promise.resolve(null);if(p){const e=p.get(this.pageIndex);e&&(f=r.AnnotationFactory.printNewAnnotations(h,s,e))}const g=Promise.all([u,d]).then((e=>{let[r]=e;const i=new m.OperatorList(a,n);return t.send("StartRenderPage",{transparency:h.hasBlendModes(this.resources,this.nonBlendModesSet),pageIndex:this.pageIndex,cacheKey:l}),h.getOperatorList({stream:r,task:s,resources:this.resources,operatorList:i}).then((function(){return i}))}));return Promise.all([g,this._parsedAnnotations,f]).then((function(e){let[t,n,r]=e;if(r&&(n=n.concat(r)),0===n.length||a&i.RenderingIntentFlag.ANNOTATIONS_DISABLE)return t.flush(!0),{length:t.totalLength};const o=!!(a&i.RenderingIntentFlag.ANNOTATIONS_FORMS),l=!!(a&i.RenderingIntentFlag.ANY),u=!!(a&i.RenderingIntentFlag.DISPLAY),d=!!(a&i.RenderingIntentFlag.PRINT),p=[];for(const f of n)(l||u&&f.mustBeViewed(c)||d&&f.mustBePrinted(c))&&p.push(f.getOperatorList(h,s,a,o,c).catch((function(e){return(0,i.warn)("getOperatorList - ignoring annotation data during "+'"'.concat(s.name,'" task: "').concat(e,'".')),{opList:null,separateForm:!1,separateCanvas:!1}})));return Promise.all(p).then((function(e){let n=!1,r=!1;for(const{opList:i,separateForm:o,separateCanvas:s}of e)t.addOpList(i),o&&(n=o),s&&(r=s);return t.flush(!0,{form:n,canvas:r}),{length:t.totalLength}}))}))}extractTextContent(e){let{handler:t,task:n,includeMarkedContent:r,sink:i,combineTextItems:o}=e;const s=this.getContentStream(t),a=this.loadResources(["ExtGState","Font","Properties","XObject"]);return Promise.all([s,a]).then((e=>{let[s]=e;return new y.PartialEvaluator({xref:this.xref,handler:t,pageIndex:this.pageIndex,idFactory:this._localIdFactory,fontCache:this.fontCache,builtInCMapCache:this.builtInCMapCache,standardFontDataCache:this.standardFontDataCache,globalImageCache:this.globalImageCache,options:this.evaluatorOptions}).getTextContent({stream:s,task:n,resources:this.resources,includeMarkedContent:r,combineTextItems:o,sink:i,viewBox:this.view})}))}async getStructTree(){const e=await this.pdfManager.ensureCatalog("structTreeRoot");return e?(await this.pdfManager.ensure(this,"_parseStructTree",[e])).serializable:null}_parseStructTree(e){const t=new _.StructTreePage(e,this.pageDict);return t.parse(),t}async getAnnotationsData(e,t,n){const r=await this._parsedAnnotations;if(0===r.length)return[];const o=[],s=[];let a;const l=!!(n&i.RenderingIntentFlag.ANY),c=!!(n&i.RenderingIntentFlag.DISPLAY),u=!!(n&i.RenderingIntentFlag.PRINT);for(const d of r){const n=l||c&&d.viewable;(n||u&&d.printable)&&s.push(d.data),d.hasTextContent&&n&&(a||(a=new y.PartialEvaluator({xref:this.xref,handler:e,pageIndex:this.pageIndex,idFactory:this._localIdFactory,fontCache:this.fontCache,builtInCMapCache:this.builtInCMapCache,standardFontDataCache:this.standardFontDataCache,globalImageCache:this.globalImageCache,options:this.evaluatorOptions})),o.push(d.extractTextContent(a,t,this.view).catch((function(e){(0,i.warn)('getAnnotationsData - ignoring textContent during "'.concat(t.name,'" task: "').concat(e,'".'))}))))}return await Promise.all(o),s}get annotations(){const e=this._getInheritableProperty("Annots");return(0,i.shadow)(this,"annotations",Array.isArray(e)?e:[])}get _parsedAnnotations(){const e=this.pdfManager.ensure(this,"annotations").then((()=>{const e=[];for(const t of this.annotations)e.push(r.AnnotationFactory.create(this.xref,t,this.pdfManager,this._localIdFactory,!1).catch((function(e){return(0,i.warn)('_parsedAnnotations: "'.concat(e,'".')),null})));return Promise.all(e).then((function(e){if(0===e.length)return e;const t=[];let n;for(const i of e)i&&(i instanceof r.PopupAnnotation?(n||(n=[]),n.push(i)):t.push(i));return n&&t.push(...n),t}))}));return(0,i.shadow)(this,"_parsedAnnotations",e)}get jsActions(){const e=(0,o.collectActions)(this.xref,this.pageDict,i.PageActionEventType);return(0,i.shadow)(this,"jsActions",e)}}t.Page=E;const P=new Uint8Array([37,80,68,70,45]),C=new Uint8Array([115,116,97,114,116,120,114,101,102]),A=new Uint8Array([101,110,100,111,98,106]);function k(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1024,r=arguments.length>3&&void 0!==arguments[3]&&arguments[3];const i=t.length,o=e.peekBytes(n),s=o.length-i;if(s<=0)return!1;if(r){const n=i-1;let r=o.length-1;for(;r>=n;){let s=0;for(;s<i&&o[r-s]===t[n-s];)s++;if(s>=i)return e.pos+=r-n,!0;r--}}else{let n=0;for(;n<=s;){let r=0;for(;r<i&&o[n+r]===t[r];)r++;if(r>=i)return e.pos+=n,!0;n++}}return!1}t.PDFDocument=class{constructor(e,t){if(t.length<=0)throw new i.InvalidPDFException("The PDF file is empty, i.e. its size is zero bytes.");this.pdfManager=e,this.stream=t,this.xref=new S.XRef(t,e),this._pagePromises=new Map,this._version=null;const n={font:0};this._globalIdFactory=class{static getDocId(){return"g_".concat(e.docId)}static createFontId(){return"f".concat(++n.font)}static createObjId(){(0,i.unreachable)("Abstract method `createObjId` called.")}static getPageObjId(){(0,i.unreachable)("Abstract method `getPageObjId` called.")}}}parse(e){this.xref.parse(e),this.catalog=new u.Catalog(this.pdfManager,this.xref)}get linearization(){let e=null;try{e=p.Linearization.create(this.stream)}catch(t){if(t instanceof o.MissingDataException)throw t;(0,i.info)(t)}return(0,i.shadow)(this,"linearization",e)}get startXRef(){const e=this.stream;let t=0;if(this.linearization)e.reset(),k(e,A)&&(t=e.pos+6-e.start);else{const n=1024,r=C.length;let i=!1,s=e.end;for(;!i&&s>0;)s-=n-r,s<0&&(s=0),e.pos=s,i=k(e,C,n,!0);if(i){let n;e.skip(9);do{n=e.getByte()}while((0,o.isWhiteSpace)(n));let r="";for(;n>=32&&n<=57;)r+=String.fromCharCode(n),n=e.getByte();t=parseInt(r,10),isNaN(t)&&(t=0)}}return(0,i.shadow)(this,"startXRef",t)}checkHeader(){const e=this.stream;if(e.reset(),!k(e,P))return;e.moveStart(),e.skip(P.length);let t,n="";for(;(t=e.getByte())>32&&n.length<7;)n+=String.fromCharCode(t);o.PDF_VERSION_REGEXP.test(n)?this._version=n:(0,i.warn)("Invalid PDF header version: ".concat(n))}parseStartXRef(){this.xref.setStartXRef(this.startXRef)}get numPages(){let e=0;return e=this.catalog.hasActualNumPages?this.catalog.numPages:this.xfaFactory?this.xfaFactory.getNumPages():this.linearization?this.linearization.numPages:this.catalog.numPages,(0,i.shadow)(this,"numPages",e)}_hasOnlyDocumentSignatures(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return!!Array.isArray(e)&&e.every((e=>{if(!((e=this.xref.fetchIfRef(e))instanceof s.Dict))return!1;if(e.has("Kids"))return++t>10?((0,i.warn)("_hasOnlyDocumentSignatures: maximum recursion depth reached"),!1):this._hasOnlyDocumentSignatures(e.get("Kids"),t);const n=(0,s.isName)(e.get("FT"),"Sig"),r=e.get("Rect"),o=Array.isArray(r)&&r.every((e=>0===e));return n&&o}))}get _xfaStreams(){const e=this.catalog.acroForm;if(!e)return null;const t=e.get("XFA"),n={"xdp:xdp":"",template:"",datasets:"",config:"",connectionSet:"",localeSet:"",stylesheet:"","/xdp:xdp":""};if(t instanceof l.BaseStream&&!t.isEmpty)return n["xdp:xdp"]=t,n;if(!Array.isArray(t)||0===t.length)return null;for(let r=0,i=t.length;r<i;r+=2){let e;if(e=0===r?"xdp:xdp":r===i-2?"/xdp:xdp":t[r],!n.hasOwnProperty(e))continue;const o=this.xref.fetchIfRef(t[r+1]);o instanceof l.BaseStream&&!o.isEmpty&&(n[e]=o)}return n}get xfaDatasets(){const e=this._xfaStreams;if(!e)return(0,i.shadow)(this,"xfaDatasets",null);for(const n of["datasets","xdp:xdp"]){const r=e[n];if(r)try{const e={[n]:(0,i.stringToUTF8String)(r.getString())};return(0,i.shadow)(this,"xfaDatasets",new h.DatasetReader(e))}catch(t){(0,i.warn)("XFA - Invalid utf-8 string.");break}}return(0,i.shadow)(this,"xfaDatasets",null)}get xfaData(){const e=this._xfaStreams;if(!e)return null;const t=Object.create(null);for(const[r,o]of Object.entries(e))if(o)try{t[r]=(0,i.stringToUTF8String)(o.getString())}catch(n){return(0,i.warn)("XFA - Invalid utf-8 string."),null}return t}get xfaFactory(){let e;return this.pdfManager.enableXfa&&this.catalog.needsRendering&&this.formInfo.hasXfa&&!this.formInfo.hasAcroForm&&(e=this.xfaData),(0,i.shadow)(this,"xfaFactory",e?new x.XFAFactory(e):null)}get isPureXfa(){return!!this.xfaFactory&&this.xfaFactory.isValid()}get htmlForXfa(){return this.xfaFactory?this.xfaFactory.getPages():null}async loadXfaImages(){const e=await this.pdfManager.ensureCatalog("xfaImages");if(!e)return;const t=e.getKeys(),n=new g.ObjectLoader(e,t,this.xref);await n.load();const r=new Map;for(const i of t){const t=e.get(i);t instanceof l.BaseStream&&r.set(i,t.getBytes())}this.xfaFactory.setImages(r)}async loadXfaFonts(e,t){const n=await this.pdfManager.ensureCatalog("acroForm");if(!n)return;const r=await n.getAsync("DR");if(!(r instanceof s.Dict))return;const l=new g.ObjectLoader(r,["Font"],this.xref);await l.load();const c=r.get("Font");if(!(c instanceof s.Dict))return;const u=Object.assign(Object.create(null),this.pdfManager.evaluatorOptions);u.useSystemFonts=!1;const d=new y.PartialEvaluator({xref:this.xref,handler:e,pageIndex:-1,idFactory:this._globalIdFactory,fontCache:this.catalog.fontCache,builtInCMapCache:this.catalog.builtInCMapCache,standardFontDataCache:this.catalog.standardFontDataCache,options:u}),h=new m.OperatorList,p=[],f={get font(){return p.at(-1)},set font(e){p.push(e)},clone(){return this}},v=new Map;c.forEach(((e,t)=>{v.set(e,t)}));const _=[];for(const[a,g]of v){const e=g.get("FontDescriptor");if(!(e instanceof s.Dict))continue;let n=e.get("FontFamily");n=n.replace(/[ ]+(\d)/g,"$1");const l={fontFamily:n,fontWeight:e.get("FontWeight"),italicAngle:-e.get("ItalicAngle")};(0,o.validateCSSFont)(l)&&_.push(d.handleSetFont(r,[s.Name.get(a),1],null,h,t,f,null,l).catch((function(e){return(0,i.warn)('loadXfaFonts: "'.concat(e,'".')),null})))}await Promise.all(_);const b=this.xfaFactory.setFonts(p);if(!b)return;u.ignoreErrors=!0,_.length=0,p.length=0;const x=new Set;for(const i of b)(0,a.getXfaFontName)("".concat(i,"-Regular"))||x.add(i);x.size&&b.push("PdfJS-Fallback");for(const o of b)if(!x.has(o))for(const e of[{name:"Regular",fontWeight:400,italicAngle:0},{name:"Bold",fontWeight:700,italicAngle:0},{name:"Italic",fontWeight:400,italicAngle:12},{name:"BoldItalic",fontWeight:700,italicAngle:12}]){const n="".concat(o,"-").concat(e.name),l=(0,a.getXfaFontDict)(n);_.push(d.handleSetFont(r,[s.Name.get(n),1],null,h,t,f,l,{fontFamily:o,fontWeight:e.fontWeight,italicAngle:e.italicAngle}).catch((function(e){return(0,i.warn)('loadXfaFonts: "'.concat(e,'".')),null})))}await Promise.all(_),this.xfaFactory.appendFonts(p,x)}async serializeXfaData(e){return this.xfaFactory?this.xfaFactory.serializeData(e):null}get version(){return this.catalog.version||this._version}get formInfo(){const e={hasFields:!1,hasAcroForm:!1,hasXfa:!1,hasSignatures:!1},t=this.catalog.acroForm;if(!t)return(0,i.shadow)(this,"formInfo",e);try{const n=t.get("Fields"),r=Array.isArray(n)&&n.length>0;e.hasFields=r;const i=t.get("XFA");e.hasXfa=Array.isArray(i)&&i.length>0||i instanceof l.BaseStream&&!i.isEmpty;const o=!!(1&t.get("SigFlags")),s=o&&this._hasOnlyDocumentSignatures(n);e.hasAcroForm=r&&!s,e.hasSignatures=o}catch(n){if(n instanceof o.MissingDataException)throw n;(0,i.warn)('Cannot fetch form information: "'.concat(n,'".'))}return(0,i.shadow)(this,"formInfo",e)}get documentInfo(){const e={PDFFormatVersion:this.version,Language:this.catalog.lang,EncryptFilterName:this.xref.encrypt?this.xref.encrypt.filterName:null,IsLinearized:!!this.linearization,IsAcroFormPresent:this.formInfo.hasAcroForm,IsXFAPresent:this.formInfo.hasXfa,IsCollectionPresent:!!this.catalog.collection,IsSignaturesPresent:this.formInfo.hasSignatures};let t;try{t=this.xref.trailer.get("Info")}catch(n){if(n instanceof o.MissingDataException)throw n;(0,i.info)("The document information dictionary is invalid.")}if(!(t instanceof s.Dict))return(0,i.shadow)(this,"documentInfo",e);for(const r of t.getKeys()){const n=t.get(r);switch(r){case"Title":case"Author":case"Subject":case"Keywords":case"Creator":case"Producer":case"CreationDate":case"ModDate":if("string"===typeof n){e[r]=(0,i.stringToPDFString)(n);continue}break;case"Trapped":if(n instanceof s.Name){e[r]=n;continue}break;default:let t;switch(typeof n){case"string":t=(0,i.stringToPDFString)(n);break;case"number":case"boolean":t=n;break;default:n instanceof s.Name&&(t=n)}if(void 0===t){(0,i.warn)('Bad value, for custom key "'.concat(r,'", in Info: ').concat(n,"."));continue}e.Custom||(e.Custom=Object.create(null)),e.Custom[r]=t;continue}(0,i.warn)('Bad value, for key "'.concat(r,'", in Info: ').concat(n,"."))}return(0,i.shadow)(this,"documentInfo",e)}get fingerprints(){function e(e){return"string"===typeof e&&e.length>0&&"\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0"!==e}function t(e){const t=[];for(const n of e){const e=n.toString(16);t.push(e.padStart(2,"0"))}return t.join("")}const n=this.xref.trailer.get("ID");let r,o;return Array.isArray(n)&&e(n[0])?(r=(0,i.stringToBytes)(n[0]),n[1]!==n[0]&&e(n[1])&&(o=(0,i.stringToBytes)(n[1]))):r=(0,c.calculateMD5)(this.stream.getByteRange(0,1024),0,1024),(0,i.shadow)(this,"fingerprints",[t(r),o?t(o):null])}async _getLinearizationPage(e){const{catalog:t,linearization:n,xref:r}=this,o=s.Ref.get(n.objectNumberFirst,0);try{const e=await r.fetchAsync(o);if(e instanceof s.Dict){let n=e.getRaw("Type");if(n instanceof s.Ref&&(n=await r.fetchAsync(n)),(0,s.isName)(n,"Page")||!e.has("Type")&&!e.has("Kids"))return t.pageKidsCountCache.has(o)||t.pageKidsCountCache.put(o,1),t.pageIndexCache.has(o)||t.pageIndexCache.put(o,0),[e,o]}throw new i.FormatError("The Linearization dictionary doesn't point to a valid Page dictionary.")}catch(a){return(0,i.warn)('_getLinearizationPage: "'.concat(a.message,'".')),t.getPageDict(e)}}getPage(e){const t=this._pagePromises.get(e);if(t)return t;const{catalog:n,linearization:r,xfaFactory:i}=this;let o;return o=i?Promise.resolve([s.Dict.empty,null]):r&&r.pageFirst===e?this._getLinearizationPage(e):n.getPageDict(e),o=o.then((t=>{let[r,o]=t;return new E({pdfManager:this.pdfManager,xref:this.xref,pageIndex:e,pageDict:r,ref:o,globalIdFactory:this._globalIdFactory,fontCache:n.fontCache,builtInCMapCache:n.builtInCMapCache,standardFontDataCache:n.standardFontDataCache,globalImageCache:n.globalImageCache,nonBlendModesSet:n.nonBlendModesSet,xfaFactory:i})})),this._pagePromises.set(e,o),o}async checkFirstPage(){if(!(arguments.length>0&&void 0!==arguments[0]&&arguments[0]))try{await this.getPage(0)}catch(e){if(e instanceof o.XRefEntryException)throw this._pagePromises.delete(0),await this.cleanup(),new o.XRefParseException}}async checkLastPage(){let e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];const{catalog:t,pdfManager:n}=this;let r;t.setActualNumPages();try{if(await Promise.all([n.ensureDoc("xfaFactory"),n.ensureDoc("linearization"),n.ensureCatalog("numPages")]),this.xfaFactory)return;if(r=this.linearization?this.linearization.numPages:t.numPages,!Number.isInteger(r))throw new i.FormatError("Page count is not an integer.");if(r<=1)return;await this.getPage(r-1)}catch(s){if(this._pagePromises.delete(r-1),await this.cleanup(),s instanceof o.XRefEntryException&&!e)throw new o.XRefParseException;let l;(0,i.warn)("checkLastPage - invalid /Pages tree /Count: ".concat(r,"."));try{l=await t.getAllPageDicts(e)}catch(a){if(a instanceof o.XRefEntryException&&!e)throw new o.XRefParseException;return void t.setActualNumPages(1)}for(const[e,[r,i]]of l){let o;r instanceof Error?(o=Promise.reject(r),o.catch((()=>{}))):o=Promise.resolve(new E({pdfManager:n,xref:this.xref,pageIndex:e,pageDict:r,ref:i,globalIdFactory:this._globalIdFactory,fontCache:t.fontCache,builtInCMapCache:t.builtInCMapCache,standardFontDataCache:t.standardFontDataCache,globalImageCache:t.globalImageCache,nonBlendModesSet:t.nonBlendModesSet,xfaFactory:null})),this._pagePromises.set(e,o)}t.setActualNumPages(l.size)}}fontFallback(e,t){return this.catalog.fontFallback(e,t)}async cleanup(){let e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return this.catalog?this.catalog.cleanup(e):(0,d.clearGlobalCaches)()}_collectFieldObjects(e,t,n){const o=this.xref.fetchIfRef(t);if(o.has("T")){const t=(0,i.stringToPDFString)(o.get("T"));e=""===e?t:"".concat(e,".").concat(t)}if(n.has(e)||n.set(e,[]),n.get(e).push(r.AnnotationFactory.create(this.xref,t,this.pdfManager,this._localIdFactory,!0).then((e=>e&&e.getFieldObject())).catch((function(e){return(0,i.warn)('_collectFieldObjects: "'.concat(e,'".')),null}))),o.has("Kids")){const t=o.get("Kids");for(const r of t)this._collectFieldObjects(e,r,n)}}get fieldObjects(){if(!this.formInfo.hasFields)return(0,i.shadow)(this,"fieldObjects",Promise.resolve(null));const e=Object.create(null),t=new Map;for(const r of this.catalog.acroForm.get("Fields"))this._collectFieldObjects("",r,t);const n=[];for(const[r,i]of t)n.push(Promise.all(i).then((t=>{(t=t.filter((e=>!!e))).length>0&&(e[r]=t)})));return(0,i.shadow)(this,"fieldObjects",Promise.all(n).then((()=>e)))}get hasJSActions(){const e=this.pdfManager.ensureDoc("_parseHasJSActions");return(0,i.shadow)(this,"hasJSActions",e)}async _parseHasJSActions(){const[e,t]=await Promise.all([this.pdfManager.ensureCatalog("jsActions"),this.pdfManager.ensureDoc("fieldObjects")]);return!!e||!!t&&Object.values(t).some((e=>e.some((e=>null!==e.actions))))}get calculationOrderIds(){const e=this.catalog.acroForm;if(!e||!e.has("CO"))return(0,i.shadow)(this,"calculationOrderIds",null);const t=e.get("CO");if(!Array.isArray(t)||0===t.length)return(0,i.shadow)(this,"calculationOrderIds",null);const n=[];for(const r of t)r instanceof s.Ref&&n.push(r.toString());return 0===n.length?(0,i.shadow)(this,"calculationOrderIds",null):(0,i.shadow)(this,"calculationOrderIds",n)}}},(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.PopupAnnotation=t.MarkupAnnotation=t.AnnotationFactory=t.AnnotationBorderStyle=t.Annotation=void 0,t.getQuadPoints=_;var r=n(2),i=n(4),o=n(11),s=n(3),a=n(63),l=n(5),c=n(58),u=n(67),d=n(12),h=n(70),p=n(73),f=n(60),g=n(8),m=n(74);function y(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:new Uint8ClampedArray(3);if(!Array.isArray(e))return t;const n=t||new Uint8ClampedArray(3);switch(e.length){case 0:return null;case 1:return d.ColorSpace.singletons.gray.getRgbItem(e,0,n,0),n;case 3:return d.ColorSpace.singletons.rgb.getRgbItem(e,0,n,0),n;case 4:return d.ColorSpace.singletons.cmyk.getRgbItem(e,0,n,0),n;default:return t}}function v(e){return Array.from(e,(e=>e/255))}function _(e,t){const n=e.getArray("QuadPoints");if(!Array.isArray(n)||0===n.length||n.length%8>0)return null;const r=[];for(let i=0,o=n.length/8;i<o;i++){let e=1/0,o=-1/0,s=1/0,a=-1/0;for(let t=8*i,r=8*i+8;t<r;t+=2){const r=n[t],i=n[t+1];e=Math.min(r,e),o=Math.max(r,o),s=Math.min(i,s),a=Math.max(i,a)}if(null!==t&&(e<t[0]||o>t[2]||s<t[1]||a>t[3]))return null;r.push([{x:e,y:a},{x:o,y:a},{x:e,y:s},{x:o,y:s}])}return r}function b(e,t,n){const[i,o,s,a]=r.Util.getAxialAlignedBoundingBox(t,n);if(i===s||o===a)return[1,0,0,1,e[0],e[1]];const l=(e[2]-e[0])/(s-i),c=(e[3]-e[1])/(a-o);return[l,0,0,c,e[0]-i*l,e[1]-o*c]}t.AnnotationFactory=class{static create(e,t,n,r,i){return Promise.all([n.ensureCatalog("acroForm"),n.ensureCatalog("baseUrl"),n.ensureCatalog("attachments"),n.ensureDoc("xfaDatasets"),i?this._getPageIndex(e,t,n):-1]).then((o=>{let[s,a,l,c,u]=o;return n.ensure(this,"_create",[e,t,n,r,s,l,c,i,u])}))}static _create(e,t,n,o,a){let l=arguments.length>5&&void 0!==arguments[5]?arguments[5]:null,c=arguments.length>6?arguments[6]:void 0,u=arguments.length>7?arguments[7]:void 0,d=arguments.length>8&&void 0!==arguments[8]?arguments[8]:-1;const h=e.fetchIfRef(t);if(!(h instanceof s.Dict))return;const p=t instanceof s.Ref?t.toString():"annot_".concat(o.createObjId());let f=h.get("Subtype");f=f instanceof s.Name?f.name:null;const g=a instanceof s.Dict?a:s.Dict.empty,m={xref:e,ref:t,dict:h,subtype:f,id:p,pdfManager:n,acroForm:g,attachments:l,xfaDatasets:c,collectFields:u,needAppearances:!u&&!0===g.get("NeedAppearances"),pageIndex:d,isOffscreenCanvasSupported:r.FeatureTest.isOffscreenCanvasSupported&&n.evaluatorOptions.isOffscreenCanvasSupported};switch(f){case"Link":return new I(m);case"Text":return new j(m);case"Widget":let e=(0,i.getInheritableProperty)({dict:h,key:"FT"});switch(e=e instanceof s.Name?e.name:null,e){case"Tx":return new P(m);case"Btn":return new C(m);case"Ch":return new A(m);case"Sig":return new k(m)}return(0,r.warn)('Unimplemented widget field type "'.concat(e,'", ')+"falling back to base field type."),new E(m);case"Popup":return new G(m);case"FreeText":return new T(m);case"Line":return new M(m);case"Square":return new O(m);case"Circle":return new R(m);case"PolyLine":return new D(m);case"Polygon":return new N(m);case"Caret":return new L(m);case"Ink":return new V(m);case"Highlight":return new F(m);case"Underline":return new z(m);case"Squiggly":return new B(m);case"StrikeOut":return new U(m);case"Stamp":return new W(m);case"FileAttachment":return new H(m);default:return u||(f?(0,r.warn)('Unimplemented annotation type "'.concat(f,'", ')+"falling back to base annotation."):(0,r.warn)("Annotation is missing the required /Subtype.")),new x(m)}}static async _getPageIndex(e,t,n){try{const r=await e.fetchIfRefAsync(t);if(!(r instanceof s.Dict))return-1;const i=r.getRaw("P");return i instanceof s.Ref?await n.ensureCatalog("getPageIndex",[i]):-1}catch(i){return(0,r.warn)('_getPageIndex: "'.concat(i,'".')),-1}}static async saveNewAnnotations(e,t,n){const i=e.xref;let o;const l=[],c=[];for(const u of n)switch(u.annotationType){case r.AnnotationEditorType.FREETEXT:if(!o){const e=new s.Dict(i);e.set("BaseFont",s.Name.get("Helvetica")),e.set("Type",s.Name.get("Font")),e.set("Subtype",s.Name.get("Type1")),e.set("Encoding",s.Name.get("WinAnsiEncoding"));const t=[];o=i.getNewTemporaryRef(),(0,a.writeObject)(o,e,t,null),l.push({ref:o,data:t.join("")})}c.push(T.createNewAnnotation(i,u,l,{evaluator:e,task:t,baseFontRef:o}));break;case r.AnnotationEditorType.INK:c.push(V.createNewAnnotation(i,u,l))}return{annotations:await Promise.all(c),dependencies:l}}static async printNewAnnotations(e,t,n){if(!n)return null;const i=e.xref,o=[],s=r.FeatureTest.isOffscreenCanvasSupported&&e.options.isOffscreenCanvasSupported;for(const a of n)switch(a.annotationType){case r.AnnotationEditorType.FREETEXT:o.push(T.createNewPrintAnnotation(i,a,{evaluator:e,task:t,isOffscreenCanvasSupported:s}));break;case r.AnnotationEditorType.INK:o.push(V.createNewPrintAnnotation(i,a,{isOffscreenCanvasSupported:s}))}return Promise.all(o)}};class x{constructor(e){const{dict:t,xref:n}=e;this.setTitle(t.get("T")),this.setContents(t.get("Contents")),this.setModificationDate(t.get("M")),this.setFlags(t.get("F")),this.setRectangle(t.getArray("Rect")),this.setColor(t.getArray("C")),this.setBorderStyle(t),this.setAppearance(t),this.setOptionalContent(t);const o=t.get("MK");if(this.setBorderAndBackgroundColors(o),this.setRotation(o),this._streams=[],this.appearance&&this._streams.push(this.appearance),this.data={annotationFlags:this.flags,borderStyle:this.borderStyle,color:this.color,backgroundColor:this.backgroundColor,borderColor:this.borderColor,rotation:this.rotation,contentsObj:this._contents,hasAppearance:!!this.appearance,id:e.id,modificationDate:this.modificationDate,rect:this.rectangle,subtype:e.subtype,hasOwnCanvas:!1},e.collectFields){const o=t.get("Kids");if(Array.isArray(o)){const e=[];for(const t of o)t instanceof s.Ref&&e.push(t.toString());0!==e.length&&(this.data.kidIds=e)}this.data.actions=(0,i.collectActions)(n,t,r.AnnotationActionEventType),this.data.fieldName=this._constructFieldName(t),this.data.pageIndex=e.pageIndex}this._isOffscreenCanvasSupported=e.isOffscreenCanvasSupported,this._fallbackFontDict=null,this._needAppearances=!1}_hasFlag(e,t){return!!(e&t)}_isViewable(e){return!this._hasFlag(e,r.AnnotationFlag.INVISIBLE)&&!this._hasFlag(e,r.AnnotationFlag.NOVIEW)}_isPrintable(e){return this._hasFlag(e,r.AnnotationFlag.PRINT)&&!this._hasFlag(e,r.AnnotationFlag.INVISIBLE)}mustBeViewed(e){const t=e&&e.get(this.data.id);return t&&void 0!==t.hidden?!t.hidden:this.viewable&&!this._hasFlag(this.flags,r.AnnotationFlag.HIDDEN)}mustBePrinted(e){const t=e&&e.get(this.data.id);return t&&void 0!==t.print?t.print:this.printable}get viewable(){return null!==this.data.quadPoints&&(0===this.flags||this._isViewable(this.flags))}get printable(){return null!==this.data.quadPoints&&0!==this.flags&&this._isPrintable(this.flags)}_parseStringHelper(e){const t="string"===typeof e?(0,r.stringToPDFString)(e):"";return{str:t,dir:t&&"rtl"===(0,c.bidi)(t).dir?"rtl":"ltr"}}setDefaultAppearance(e){const t=(0,i.getInheritableProperty)({dict:e.dict,key:"DA"})||e.acroForm.get("DA");this._defaultAppearance="string"===typeof t?t:"",this.data.defaultAppearanceData=(0,o.parseDefaultAppearance)(this._defaultAppearance)}setTitle(e){this._title=this._parseStringHelper(e)}setContents(e){this._contents=this._parseStringHelper(e)}setModificationDate(e){this.modificationDate="string"===typeof e?e:null}setFlags(e){this.flags=Number.isInteger(e)&&e>0?e:0}hasFlag(e){return this._hasFlag(this.flags,e)}setRectangle(e){Array.isArray(e)&&4===e.length?this.rectangle=r.Util.normalizeRect(e):this.rectangle=[0,0,0,0]}setColor(e){this.color=y(e)}setLineEndings(e){if(this.lineEndings=["None","None"],Array.isArray(e)&&2===e.length)for(let t=0;t<2;t++){const n=e[t];if(n instanceof s.Name)switch(n.name){case"None":continue;case"Square":case"Circle":case"Diamond":case"OpenArrow":case"ClosedArrow":case"Butt":case"ROpenArrow":case"RClosedArrow":case"Slash":this.lineEndings[t]=n.name;continue}(0,r.warn)("Ignoring invalid lineEnding: ".concat(n))}}setRotation(e){if(this.rotation=0,e instanceof s.Dict){let t=e.get("R")||0;Number.isInteger(t)&&0!==t&&(t%=360,t<0&&(t+=360),t%90===0&&(this.rotation=t))}}setBorderAndBackgroundColors(e){e instanceof s.Dict?(this.borderColor=y(e.getArray("BC"),null),this.backgroundColor=y(e.getArray("BG"),null)):this.borderColor=this.backgroundColor=null}setBorderStyle(e){if(this.borderStyle=new S,e instanceof s.Dict)if(e.has("BS")){const t=e.get("BS"),n=t.get("Type");n&&!(0,s.isName)(n,"Border")||(this.borderStyle.setWidth(t.get("W"),this.rectangle),this.borderStyle.setStyle(t.get("S")),this.borderStyle.setDashArray(t.getArray("D")))}else if(e.has("Border")){const t=e.getArray("Border");Array.isArray(t)&&t.length>=3&&(this.borderStyle.setHorizontalCornerRadius(t[0]),this.borderStyle.setVerticalCornerRadius(t[1]),this.borderStyle.setWidth(t[2],this.rectangle),4===t.length&&this.borderStyle.setDashArray(t[3],!0))}else this.borderStyle.setWidth(0)}setAppearance(e){this.appearance=null;const t=e.get("AP");if(!(t instanceof s.Dict))return;const n=t.get("N");if(n instanceof l.BaseStream)return void(this.appearance=n);if(!(n instanceof s.Dict))return;const r=e.get("AS");if(!(r instanceof s.Name)||!n.has(r.name))return;const i=n.get(r.name);i instanceof l.BaseStream&&(this.appearance=i)}setOptionalContent(e){this.oc=null;const t=e.get("OC");t instanceof s.Name?(0,r.warn)("setOptionalContent: Support for /Name-entry is not implemented."):t instanceof s.Dict&&(this.oc=t)}loadResources(e,t){return t.dict.getAsync("Resources").then((t=>{if(t)return new p.ObjectLoader(t,e,t.xref).load().then((function(){return t}))}))}async getOperatorList(e,t,n,i,o){const a=this.data;let l=this.appearance;const c=!!(this.data.hasOwnCanvas&&n&r.RenderingIntentFlag.DISPLAY);if(!l){if(!c)return{opList:new f.OperatorList,separateForm:!1,separateCanvas:!1};l=new g.StringStream(""),l.dict=new s.Dict}const u=l.dict,d=await this.loadResources(["ExtGState","ColorSpace","Pattern","Shading","XObject","Font"],l),h=u.getArray("BBox")||[0,0,1,1],p=u.getArray("Matrix")||[1,0,0,1,0,0],m=b(a.rect,h,p),y=new f.OperatorList;let v;return this.oc&&(v=await e.parseMarkedContentProps(this.oc,null)),void 0!==v&&y.addOp(r.OPS.beginMarkedContentProps,["OC",v]),y.addOp(r.OPS.beginAnnotation,[a.id,a.rect,m,p,c]),await e.getOperatorList({stream:l,task:t,resources:d,operatorList:y,fallbackFontDict:this._fallbackFontDict}),y.addOp(r.OPS.endAnnotation,[]),void 0!==v&&y.addOp(r.OPS.endMarkedContent,[]),this.reset(),{opList:y,separateForm:!1,separateCanvas:c}}async save(e,t,n){return null}get hasTextContent(){return!1}async extractTextContent(e,t,n){if(!this.appearance)return;const r=await this.loadResources(["ExtGState","Font","Properties","XObject"],this.appearance),i=[],o=[],s={desiredSize:Math.Infinity,ready:!0,enqueue(e,t){for(const n of e.items)o.push(n.str),n.hasEOL&&(i.push(o.join("")),o.length=0)}};await e.getTextContent({stream:this.appearance,task:t,resources:r,includeMarkedContent:!0,combineTextItems:!0,sink:s,viewBox:n}),this.reset(),o.length&&i.push(o.join("")),i.length>0&&(this.data.textContent=i)}getFieldObject(){return this.data.kidIds?{id:this.data.id,actions:this.data.actions,name:this.data.fieldName,strokeColor:this.data.borderColor,fillColor:this.data.backgroundColor,type:"",kidIds:this.data.kidIds,page:this.data.pageIndex,rotation:this.rotation}:null}reset(){for(const e of this._streams)e.reset()}_constructFieldName(e){if(!e.has("T")&&!e.has("Parent"))return(0,r.warn)("Unknown field name, falling back to empty field name."),"";if(!e.has("Parent"))return(0,r.stringToPDFString)(e.get("T"));const t=[];e.has("T")&&t.unshift((0,r.stringToPDFString)(e.get("T")));let n=e;const i=new s.RefSet;for(e.objId&&i.put(e.objId);n.has("Parent")&&(n=n.get("Parent"),n instanceof s.Dict&&(!n.objId||!i.has(n.objId)));)n.objId&&i.put(n.objId),n.has("T")&&t.unshift((0,r.stringToPDFString)(n.get("T")));return t.join(".")}}t.Annotation=x;class S{constructor(){this.width=1,this.style=r.AnnotationBorderStyleType.SOLID,this.dashArray=[3],this.horizontalCornerRadius=0,this.verticalCornerRadius=0}setWidth(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[0,0,0,0];if(e instanceof s.Name)this.width=0;else if("number"===typeof e){if(e>0){const n=(t[2]-t[0])/2,i=(t[3]-t[1])/2;n>0&&i>0&&(e>n||e>i)&&((0,r.warn)("AnnotationBorderStyle.setWidth - ignoring width: ".concat(e)),e=1)}this.width=e}}setStyle(e){if(e instanceof s.Name)switch(e.name){case"S":this.style=r.AnnotationBorderStyleType.SOLID;break;case"D":this.style=r.AnnotationBorderStyleType.DASHED;break;case"B":this.style=r.AnnotationBorderStyleType.BEVELED;break;case"I":this.style=r.AnnotationBorderStyleType.INSET;break;case"U":this.style=r.AnnotationBorderStyleType.UNDERLINE}}setDashArray(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(Array.isArray(e)&&e.length>0){let n=!0,r=!0;for(const t of e){if(!(+t>=0)){n=!1;break}t>0&&(r=!1)}n&&!r?(this.dashArray=e,t&&this.setStyle(s.Name.get("D"))):this.width=0}else e&&(this.width=0)}setHorizontalCornerRadius(e){Number.isInteger(e)&&(this.horizontalCornerRadius=e)}setVerticalCornerRadius(e){Number.isInteger(e)&&(this.verticalCornerRadius=e)}}t.AnnotationBorderStyle=S;class w extends x{constructor(e){super(e);const{dict:t}=e;if(t.has("IRT")){const e=t.getRaw("IRT");this.data.inReplyTo=e instanceof s.Ref?e.toString():null;const n=t.get("RT");this.data.replyType=n instanceof s.Name?n.name:r.AnnotationReplyType.REPLY}if(this.data.replyType===r.AnnotationReplyType.GROUP){const e=t.get("IRT");this.setTitle(e.get("T")),this.data.titleObj=this._title,this.setContents(e.get("Contents")),this.data.contentsObj=this._contents,e.has("CreationDate")?(this.setCreationDate(e.get("CreationDate")),this.data.creationDate=this.creationDate):this.data.creationDate=null,e.has("M")?(this.setModificationDate(e.get("M")),this.data.modificationDate=this.modificationDate):this.data.modificationDate=null,this.data.hasPopup=e.has("Popup"),e.has("C")?(this.setColor(e.getArray("C")),this.data.color=this.color):this.data.color=null}else this.data.titleObj=this._title,this.setCreationDate(t.get("CreationDate")),this.data.creationDate=this.creationDate,this.data.hasPopup=t.has("Popup"),t.has("C")||(this.data.color=null);t.has("RC")&&(this.data.richText=m.XFAFactory.getRichTextAsHtml(t.get("RC")))}setCreationDate(e){this.creationDate="string"===typeof e?e:null}_setDefaultAppearance(e){let{xref:t,extra:n,strokeColor:r,fillColor:i,blendMode:o,strokeAlpha:a,fillAlpha:l,pointsCallback:c}=e,u=Number.MAX_VALUE,d=Number.MAX_VALUE,h=Number.MIN_VALUE,p=Number.MIN_VALUE;const f=["q"];n&&f.push(n),r&&f.push("".concat(r[0]," ").concat(r[1]," ").concat(r[2]," RG")),i&&f.push("".concat(i[0]," ").concat(i[1]," ").concat(i[2]," rg"));let m=this.data.quadPoints;m||(m=[[{x:this.rectangle[0],y:this.rectangle[3]},{x:this.rectangle[2],y:this.rectangle[3]},{x:this.rectangle[0],y:this.rectangle[1]},{x:this.rectangle[2],y:this.rectangle[1]}]]);for(const s of m){const[e,t,n,r]=c(f,s);u=Math.min(u,e),h=Math.max(h,t),d=Math.min(d,n),p=Math.max(p,r)}f.push("Q");const y=new s.Dict(t),v=new s.Dict(t);v.set("Subtype",s.Name.get("Form"));const _=new g.StringStream(f.join(" "));_.dict=v,y.set("Fm0",_);const b=new s.Dict(t);o&&b.set("BM",s.Name.get(o)),"number"===typeof a&&b.set("CA",a),"number"===typeof l&&b.set("ca",l);const x=new s.Dict(t);x.set("GS0",b);const S=new s.Dict(t);S.set("ExtGState",x),S.set("XObject",y);const w=new s.Dict(t);w.set("Resources",S);const E=this.data.rect=[u,d,h,p];w.set("BBox",E),this.appearance=new g.StringStream("/GS0 gs /Fm0 Do"),this.appearance.dict=w,this._streams.push(this.appearance,_)}static async createNewAnnotation(e,t,n,r){const i=e.getNewTemporaryRef(),o=await this.createNewAppearanceStream(t,e,r),s=[];let l;if(o){const r=e.getNewTemporaryRef();l=this.createNewDict(t,e,{apRef:r});const i=e.encrypt?e.encrypt.createCipherTransform(r.num,r.gen):null;(0,a.writeObject)(r,o,s,i),n.push({ref:r,data:s.join("")})}else l=this.createNewDict(t,e,{});s.length=0;const c=e.encrypt?e.encrypt.createCipherTransform(i.num,i.gen):null;return(0,a.writeObject)(i,l,s,c),{ref:i,data:s.join("")}}static async createNewPrintAnnotation(e,t,n){const r=await this.createNewAppearanceStream(t,e,n),i=this.createNewDict(t,e,{ap:r});return new this.prototype.constructor({dict:i,xref:e,isOffscreenCanvasSupported:n.isOffscreenCanvasSupported})}}t.MarkupAnnotation=w;class E extends x{constructor(e){super(e);const{dict:t,xref:n}=e,o=this.data;this.ref=e.ref,this._needAppearances=e.needAppearances,o.annotationType=r.AnnotationType.WIDGET,void 0===o.fieldName&&(o.fieldName=this._constructFieldName(t)),void 0===o.actions&&(o.actions=(0,i.collectActions)(n,t,r.AnnotationActionEventType));let a=(0,i.getInheritableProperty)({dict:t,key:"V",getArray:!0});o.fieldValue=this._decodeFormValue(a);const l=(0,i.getInheritableProperty)({dict:t,key:"DV",getArray:!0});if(o.defaultFieldValue=this._decodeFormValue(l),void 0===a&&e.xfaDatasets){const t=this._title.str;t&&(this._hasValueFromXFA=!0,o.fieldValue=a=e.xfaDatasets.getValue(t))}void 0===a&&null!==o.defaultFieldValue&&(o.fieldValue=o.defaultFieldValue),o.alternativeText=(0,r.stringToPDFString)(t.get("TU")||""),this.setDefaultAppearance(e),o.hasAppearance=this._needAppearances&&void 0!==o.fieldValue&&null!==o.fieldValue||o.hasAppearance;const c=(0,i.getInheritableProperty)({dict:t,key:"FT"});o.fieldType=c instanceof s.Name?c.name:null;const u=(0,i.getInheritableProperty)({dict:t,key:"DR"}),d=e.acroForm.get("DR"),h=this.appearance&&this.appearance.dict.get("Resources");this._fieldResources={localResources:u,acroFormResources:d,appearanceResources:h,mergedResources:s.Dict.merge({xref:n,dictArray:[u,h,d],mergeSubDicts:!0})},o.fieldFlags=(0,i.getInheritableProperty)({dict:t,key:"Ff"}),(!Number.isInteger(o.fieldFlags)||o.fieldFlags<0)&&(o.fieldFlags=0),o.readOnly=this.hasFieldFlag(r.AnnotationFieldFlag.READONLY),o.required=this.hasFieldFlag(r.AnnotationFieldFlag.REQUIRED),o.hidden=this._hasFlag(o.annotationFlags,r.AnnotationFlag.HIDDEN)}_decodeFormValue(e){return Array.isArray(e)?e.filter((e=>"string"===typeof e)).map((e=>(0,r.stringToPDFString)(e))):e instanceof s.Name?(0,r.stringToPDFString)(e.name):"string"===typeof e?(0,r.stringToPDFString)(e):null}hasFieldFlag(e){return!!(this.data.fieldFlags&e)}getRotationMatrix(e){const t=e?e.get(this.data.id):void 0;let n=t&&t.rotation;if(void 0===n&&(n=this.rotation),0===n)return r.IDENTITY_MATRIX;const o=this.data.rect[2]-this.data.rect[0],s=this.data.rect[3]-this.data.rect[1];return(0,i.getRotationMatrix)(n,o,s)}getBorderAndBackgroundAppearances(e){const t=e?e.get(this.data.id):void 0;let n=t&&t.rotation;if(void 0===n&&(n=this.rotation),!this.backgroundColor&&!this.borderColor)return"";const r=this.data.rect[2]-this.data.rect[0],i=this.data.rect[3]-this.data.rect[1],s=0===n||180===n?"0 0 ".concat(r," ").concat(i," re"):"0 0 ".concat(i," ").concat(r," re");let a="";if(this.backgroundColor&&(a="".concat((0,o.getPdfColor)(this.backgroundColor,!0)," ").concat(s," f ")),this.borderColor){const e=this.borderStyle.width||1;a+="".concat(e," w ").concat((0,o.getPdfColor)(this.borderColor,!1)," ").concat(s," S ")}return a}async getOperatorList(e,t,n,i,o){if(i&&!(this instanceof k))return{opList:new f.OperatorList,separateForm:!0,separateCanvas:!1};if(!this._hasText)return super.getOperatorList(e,t,n,i,o);const s=await this._getAppearance(e,t,n,o);if(this.appearance&&null===s)return super.getOperatorList(e,t,n,i,o);const a=new f.OperatorList;if(!this._defaultAppearance||null===s)return{opList:a,separateForm:!1,separateCanvas:!1};const l=[0,0,this.data.rect[2]-this.data.rect[0],this.data.rect[3]-this.data.rect[1]],c=b(this.data.rect,l,[1,0,0,1,0,0]);let u;this.oc&&(u=await e.parseMarkedContentProps(this.oc,null)),void 0!==u&&a.addOp(r.OPS.beginMarkedContentProps,["OC",u]),a.addOp(r.OPS.beginAnnotation,[this.data.id,this.data.rect,c,this.getRotationMatrix(o),!1]);const d=new g.StringStream(s);return await e.getOperatorList({stream:d,task:t,resources:this._fieldResources.mergedResources,operatorList:a}),a.addOp(r.OPS.endAnnotation,[]),void 0!==u&&a.addOp(r.OPS.endMarkedContent,[]),{opList:a,separateForm:!1,separateCanvas:!1}}_getMKDict(e){const t=new s.Dict(null);return e&&t.set("R",e),this.borderColor&&t.set("BC",v(this.borderColor)),this.backgroundColor&&t.set("BG",v(this.backgroundColor)),t.size>0?t:null}async save(e,t,n){const o=n?n.get(this.data.id):void 0;let l=o&&o.value,c=o&&o.rotation;if(l===this.data.fieldValue||void 0===l){if(!this._hasValueFromXFA&&void 0===c)return null;l=l||this.data.fieldValue}if(void 0===c&&!this._hasValueFromXFA&&Array.isArray(l)&&Array.isArray(this.data.fieldValue)&&l.length===this.data.fieldValue.length&&l.every(((e,t)=>e===this.data.fieldValue[t])))return null;void 0===c&&(c=this.rotation);let u=null;if(!this._needAppearances&&(u=await this._getAppearance(e,t,r.RenderingIntentFlag.SAVE,n),null===u))return null;let d=!1;u&&u.needAppearances&&(d=!0,u=null);const{xref:h}=e,p=h.fetchIfRef(this.ref);if(!(p instanceof s.Dict))return null;const f=new s.Dict(h);for(const r of p.getKeys())"AP"!==r&&f.set(r,p.getRaw(r));const m={path:(0,r.stringToPDFString)(f.get("T")||""),value:l},y=e=>(0,i.isAscii)(e)?e:(0,i.stringToUTF16String)(e,!0);f.set("V",Array.isArray(l)?l.map(y):y(l));const v=this._getMKDict(c);v&&f.set("MK",v);const _=h.encrypt,b=_?_.createCipherTransform(this.ref.num,this.ref.gen):null,x=[],S=[{ref:this.ref,data:"",xfa:m,needAppearances:d}];if(null!==u){const e=h.getNewTemporaryRef(),t=new s.Dict(h);f.set("AP",t),t.set("N",e);let i=null;_&&(i=_.createCipherTransform(e.num,e.gen),u=i.encryptString(u));const o=this._getSaveFieldResources(h),l=new g.StringStream(u),c=l.dict=new s.Dict(h);c.set("Length",u.length),c.set("Subtype",s.Name.get("Form")),c.set("Resources",o),c.set("BBox",[0,0,this.data.rect[2]-this.data.rect[0],this.data.rect[3]-this.data.rect[1]]);const d=this.getRotationMatrix(n);d!==r.IDENTITY_MATRIX&&c.set("Matrix",d),(0,a.writeObject)(e,l,x,i),S.push({ref:e,data:x.join(""),xfa:null,needAppearances:!1}),x.length=0}return f.set("M","D:".concat((0,r.getModificationDate)())),(0,a.writeObject)(this.ref,f,x,b),S[0].data=x.join(""),S}async _getAppearance(e,t,n,s){if(this.hasFieldFlag(r.AnnotationFieldFlag.PASSWORD))return null;const a=s?s.get(this.data.id):void 0;let l,c;if(a&&(l=a.formattedValue||a.value,c=a.rotation),void 0===c&&void 0===l&&!this._needAppearances&&(!this._hasValueFromXFA||this.appearance))return null;const u=this.getBorderAndBackgroundAppearances(s);if(void 0===l&&(l=this.data.fieldValue,!l))return"/Tx BMC q ".concat(u,"Q EMC");if(Array.isArray(l)&&1===l.length&&(l=l[0]),(0,r.assert)("string"===typeof l,"Expected `value` to be a string."),this.data.combo){const e=this.data.options.find((e=>{let{exportValue:t}=e;return l===t}))||this.data.options[0];l=e&&e.displayValue||""}else l=l.trim();if(""===l)return"/Tx BMC q ".concat(u,"Q EMC");void 0===c&&(c=this.rotation);let d,h=-1;this.data.multiLine?(d=l.split(/\r\n?|\n/).map((e=>e.normalize("NFC"))),h=d.length):d=[l.replace(/\r\n?|\n/,"").normalize("NFC")];let p=this.data.rect[3]-this.data.rect[1],f=this.data.rect[2]-this.data.rect[0];90!==c&&270!==c||([f,p]=[p,f]),this._defaultAppearance||(this.data.defaultAppearanceData=(0,o.parseDefaultAppearance)(this._defaultAppearance="/Helvetica 0 Tf 0 g"));let g,m,y,v=await E._getFontData(e,t,this.data.defaultAppearanceData,this._fieldResources.mergedResources);const _=[];let b=!1;for(const r of d){const e=v.encodeString(r);e.length>1&&(b=!0),_.push(e.join(""))}if(b&&n&r.RenderingIntentFlag.SAVE)return{needAppearances:!0};if(b&&this._isOffscreenCanvasSupported){const n=this.data.comb?"monospace":"sans-serif",r=new o.FakeUnicodeFont(e.xref,n),s=r.createFontResources(d.join("")),a=s.getRaw("Font");if(this._fieldResources.mergedResources.has("Font")){const e=this._fieldResources.mergedResources.get("Font");for(const t of a.getKeys())e.set(t,a.getRaw(t))}else this._fieldResources.mergedResources.set("Font",a);const c=r.fontName.name;v=await E._getFontData(e,t,{fontName:c,fontSize:0},s);for(let e=0,t=_.length;e<t;e++)_[e]=(0,i.stringToUTF16String)(d[e]);const u=Object.assign(Object.create(null),this.data.defaultAppearanceData);this.data.defaultAppearanceData.fontSize=0,this.data.defaultAppearanceData.fontName=c,[g,m,y]=this._computeFontSize(p-2,f-4,l,v,h),this.data.defaultAppearanceData=u}else this._isOffscreenCanvasSupported||(0,r.warn)("_getAppearance: OffscreenCanvas is not supported, annotation may not render correctly."),[g,m,y]=this._computeFontSize(p-2,f-4,l,v,h);let x=v.descent;x=isNaN(x)?r.BASELINE_FACTOR*y:Math.max(r.BASELINE_FACTOR*y,Math.abs(x)*m);const S=Math.min(Math.floor((p-m)/2),1),w=this.data.textAlignment;if(this.data.multiLine)return this._getMultilineAppearance(g,_,v,m,f,p,w,2,S,x,y,s);if(this.data.comb)return this._getCombAppearance(g,v,_[0],m,f,p,2,S,x,y,s);const P=S+x;if(0===w||w>2)return"/Tx BMC q ".concat(u,"BT ")+g+" 1 0 0 1 ".concat((0,i.numberToString)(2)," ").concat((0,i.numberToString)(P)," Tm (").concat((0,i.escapeString)(_[0]),") Tj")+" ET Q EMC";const C=this._renderText(_[0],v,m,f,w,{shift:0},2,P);return"/Tx BMC q ".concat(u,"BT ")+g+" 1 0 0 1 0 0 Tm ".concat(C)+" ET Q EMC"}static async _getFontData(e,t,n,r){const i=new f.OperatorList,o={font:null,clone(){return this}},{fontName:a,fontSize:l}=n;return await e.handleSetFont(r,[a&&s.Name.get(a),l],null,i,t,o,null),o.font}_getTextWidth(e,t){return t.charsToGlyphs(e).reduce(((e,t)=>e+t.width),0)/1e3}_computeFontSize(e,t,n,i,s){let{fontSize:a}=this.data.defaultAppearanceData,l=(a||12)*r.LINE_FACTOR,c=Math.round(e/l);if(!a){const u=e=>Math.floor(100*e)/100;if(-1===s){const o=this._getTextWidth(n,i);a=u(Math.min(e/r.LINE_FACTOR,o>t?t/o:1/0)),c=1}else{const o=n.split(/\r\n?|\n/),d=[];for(const e of o){const t=i.encodeString(e).join(""),n=i.charsToGlyphs(t),r=i.getCharPositions(t);d.push({line:t,glyphs:n,positions:r})}const h=n=>{let r=0;for(const o of d)if(r+=this._splitLine(null,i,n,t,o).length*n,r>e)return!0;return!1};for(c=Math.max(c,s);l=e/c,a=u(l/r.LINE_FACTOR),h(a);)c++}const{fontName:d,fontColor:h}=this.data.defaultAppearanceData;this._defaultAppearance=(0,o.createDefaultAppearance)({fontSize:a,fontName:d,fontColor:h})}return[this._defaultAppearance,a,e/c]}_renderText(e,t,n,r,o,s,a,l){let c;c=1===o?(r-this._getTextWidth(e,t)*n)/2:2===o?r-this._getTextWidth(e,t)*n-a:a;const u=(0,i.numberToString)(c-s.shift);return s.shift=c,l=(0,i.numberToString)(l),"".concat(u," ").concat(l," Td (").concat((0,i.escapeString)(e),") Tj")}_getSaveFieldResources(e){const{localResources:t,appearanceResources:n,acroFormResources:r}=this._fieldResources,i=this.data.defaultAppearanceData&&this.data.defaultAppearanceData.fontName;if(!i)return t||s.Dict.empty;for(const o of[t,n])if(o instanceof s.Dict){const e=o.get("Font");if(e instanceof s.Dict&&e.has(i))return o}if(r instanceof s.Dict){const n=r.get("Font");if(n instanceof s.Dict&&n.has(i)){const r=new s.Dict(e);r.set(i,n.getRaw(i));const o=new s.Dict(e);return o.set("Font",r),s.Dict.merge({xref:e,dictArray:[o,t],mergeSubDicts:!0})}}return t||s.Dict.empty}getFieldObject(){return null}}class P extends E{constructor(e){super(e),this._hasText=!0;const t=e.dict;"string"!==typeof this.data.fieldValue&&(this.data.fieldValue="");let n=(0,i.getInheritableProperty)({dict:t,key:"Q"});(!Number.isInteger(n)||n<0||n>2)&&(n=null),this.data.textAlignment=n;let o=(0,i.getInheritableProperty)({dict:t,key:"MaxLen"});(!Number.isInteger(o)||o<0)&&(o=0),this.data.maxLen=o,this.data.multiLine=this.hasFieldFlag(r.AnnotationFieldFlag.MULTILINE),this.data.comb=this.hasFieldFlag(r.AnnotationFieldFlag.COMB)&&!this.hasFieldFlag(r.AnnotationFieldFlag.MULTILINE)&&!this.hasFieldFlag(r.AnnotationFieldFlag.PASSWORD)&&!this.hasFieldFlag(r.AnnotationFieldFlag.FILESELECT)&&0!==this.data.maxLen,this.data.doNotScroll=this.hasFieldFlag(r.AnnotationFieldFlag.DONOTSCROLL)}_getCombAppearance(e,t,n,r,o,s,a,l,c,u,d){const h=o/this.data.maxLen,p=this.getBorderAndBackgroundAppearances(d),f=[],g=t.getCharPositions(n);for(const[y,v]of g)f.push("(".concat((0,i.escapeString)(n.substring(y,v)),") Tj"));const m=f.join(" ".concat((0,i.numberToString)(h)," 0 Td "));return"/Tx BMC q ".concat(p,"BT ")+e+" 1 0 0 1 ".concat((0,i.numberToString)(a)," ").concat((0,i.numberToString)(l+c)," Tm ").concat(m)+" ET Q EMC"}_getMultilineAppearance(e,t,n,r,o,s,a,l,c,u,d,h){const p=[],f=o-2*l,g={shift:0};for(let i=0,v=t.length;i<v;i++){const e=t[i],s=this._splitLine(e,n,r,f);for(let t=0,h=s.length;t<h;t++){const e=s[t],h=0===i&&0===t?-c-(d-u):-d;p.push(this._renderText(e,n,r,o,a,g,l,h))}}const m=this.getBorderAndBackgroundAppearances(h),y=p.join("\n");return"/Tx BMC q ".concat(m,"BT ")+e+" 1 0 0 1 0 ".concat((0,i.numberToString)(s)," Tm ").concat(y)+" ET Q EMC"}_splitLine(e,t,n,r){let i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{};e=i.line||e;const o=i.glyphs||t.charsToGlyphs(e);if(o.length<=1)return[e];const s=i.positions||t.getCharPositions(e),a=n/1e3,l=[];let c=-1,u=-1,d=-1,h=0,p=0;for(let f=0,g=o.length;f<g;f++){const[t,n]=s[f],i=o[f],g=i.width*a;" "===i.unicode?p+g>r?(l.push(e.substring(h,t)),h=t,p=g,c=-1,d=-1):(p+=g,c=t,u=n,d=f):p+g>r?-1!==c?(l.push(e.substring(h,u)),h=u,f=d+1,c=-1,p=0):(l.push(e.substring(h,t)),h=t,p=g):p+=g}return h<e.length&&l.push(e.substring(h,e.length)),l}getFieldObject(){return{id:this.data.id,value:this.data.fieldValue,defaultValue:this.data.defaultFieldValue||"",multiline:this.data.multiLine,password:this.hasFieldFlag(r.AnnotationFieldFlag.PASSWORD),charLimit:this.data.maxLen,comb:this.data.comb,editable:!this.data.readOnly,hidden:this.data.hidden,name:this.data.fieldName,rect:this.data.rect,actions:this.data.actions,page:this.data.pageIndex,strokeColor:this.data.borderColor,fillColor:this.data.backgroundColor,rotation:this.rotation,type:"text"}}}class C extends E{constructor(e){super(e),this.checkedAppearance=null,this.uncheckedAppearance=null,this.data.checkBox=!this.hasFieldFlag(r.AnnotationFieldFlag.RADIO)&&!this.hasFieldFlag(r.AnnotationFieldFlag.PUSHBUTTON),this.data.radioButton=this.hasFieldFlag(r.AnnotationFieldFlag.RADIO)&&!this.hasFieldFlag(r.AnnotationFieldFlag.PUSHBUTTON),this.data.pushButton=this.hasFieldFlag(r.AnnotationFieldFlag.PUSHBUTTON),this.data.isTooltipOnly=!1,this.data.checkBox?this._processCheckBox(e):this.data.radioButton?this._processRadioButton(e):this.data.pushButton?(this.data.hasOwnCanvas=!0,this._processPushButton(e)):(0,r.warn)("Invalid field flags for button widget annotation")}async getOperatorList(e,t,n,i,o){if(this.data.pushButton)return super.getOperatorList(e,t,n,!1,o);let s=null,a=null;if(o){const e=o.get(this.data.id);s=e?e.value:null,a=e?e.rotation:null}if(null===s&&this.appearance)return super.getOperatorList(e,t,n,i,o);null!==s&&void 0!==s||(s=this.data.checkBox?this.data.fieldValue===this.data.exportValue:this.data.fieldValue===this.data.buttonValue);const l=s?this.checkedAppearance:this.uncheckedAppearance;if(l){const s=this.appearance,c=l.dict.getArray("Matrix")||r.IDENTITY_MATRIX;a&&l.dict.set("Matrix",this.getRotationMatrix(o)),this.appearance=l;const u=super.getOperatorList(e,t,n,i,o);return this.appearance=s,l.dict.set("Matrix",c),u}return{opList:new f.OperatorList,separateForm:!1,separateCanvas:!1}}async save(e,t,n){return this.data.checkBox?this._saveCheckbox(e,t,n):this.data.radioButton?this._saveRadioButton(e,t,n):null}async _saveCheckbox(e,t,n){if(!n)return null;const i=n.get(this.data.id);let o=i&&i.rotation,l=i&&i.value;if(void 0===o){if(void 0===l)return null;if(this.data.fieldValue===this.data.exportValue===l)return null}const c=e.xref.fetchIfRef(this.ref);if(!(c instanceof s.Dict))return null;void 0===o&&(o=this.rotation),void 0===l&&(l=this.data.fieldValue===this.data.exportValue);const u={path:(0,r.stringToPDFString)(c.get("T")||""),value:l?this.data.exportValue:""},d=s.Name.get(l?this.data.exportValue:"Off");c.set("V",d),c.set("AS",d),c.set("M","D:".concat((0,r.getModificationDate)()));const h=this._getMKDict(o);h&&c.set("MK",h);const p=e.xref.encrypt;let f=null;p&&(f=p.createCipherTransform(this.ref.num,this.ref.gen));const g=["".concat(this.ref.num," ").concat(this.ref.gen," obj\n")];return(0,a.writeDict)(c,g,f),g.push("\nendobj\n"),[{ref:this.ref,data:g.join(""),xfa:u}]}async _saveRadioButton(e,t,n){if(!n)return null;const i=n.get(this.data.id);let o=i&&i.rotation,l=i&&i.value;if(void 0===o){if(void 0===l)return null;if(this.data.fieldValue===this.data.buttonValue===l)return null}const c=e.xref.fetchIfRef(this.ref);if(!(c instanceof s.Dict))return null;void 0===l&&(l=this.data.fieldValue===this.data.buttonValue),void 0===o&&(o=this.rotation);const u={path:(0,r.stringToPDFString)(c.get("T")||""),value:l?this.data.buttonValue:""},d=s.Name.get(l?this.data.buttonValue:"Off");let h=null;const p=e.xref.encrypt;if(l)if(this.parent instanceof s.Ref){const t=e.xref.fetch(this.parent);let n=null;p&&(n=p.createCipherTransform(this.parent.num,this.parent.gen)),t.set("V",d),h=["".concat(this.parent.num," ").concat(this.parent.gen," obj\n")],(0,a.writeDict)(t,h,n),h.push("\nendobj\n")}else this.parent instanceof s.Dict&&this.parent.set("V",d);c.set("AS",d),c.set("M","D:".concat((0,r.getModificationDate)()));const f=this._getMKDict(o);f&&c.set("MK",f);let g=null;p&&(g=p.createCipherTransform(this.ref.num,this.ref.gen));const m=["".concat(this.ref.num," ").concat(this.ref.gen," obj\n")];(0,a.writeDict)(c,m,g),m.push("\nendobj\n");const y=[{ref:this.ref,data:m.join(""),xfa:u}];return null!==h&&y.push({ref:this.parent,data:h.join(""),xfa:null}),y}_getDefaultCheckedAppearance(e,t){const n=this.data.rect[2]-this.data.rect[0],o=this.data.rect[3]-this.data.rect[1],a=[0,0,n,o],l=.8*Math.min(n,o);let c,u;"check"===t?(c={width:.755*l,height:.705*l},u="3"):"disc"===t?(c={width:.791*l,height:.705*l},u="l"):(0,r.unreachable)("_getDefaultCheckedAppearance - unsupported type: ".concat(t));const d=(0,i.numberToString)((n-c.width)/2),h=(0,i.numberToString)((o-c.height)/2),p="q BT /PdfJsZaDb ".concat(l," Tf 0 g ").concat(d," ").concat(h," Td (").concat(u,") Tj ET Q"),f=new s.Dict(e.xref);f.set("FormType",1),f.set("Subtype",s.Name.get("Form")),f.set("Type",s.Name.get("XObject")),f.set("BBox",a),f.set("Matrix",[1,0,0,1,0,0]),f.set("Length",p.length);const m=new s.Dict(e.xref),y=new s.Dict(e.xref);y.set("PdfJsZaDb",this.fallbackFontDict),m.set("Font",y),f.set("Resources",m),this.checkedAppearance=new g.StringStream(p),this.checkedAppearance.dict=f,this._streams.push(this.checkedAppearance)}_processCheckBox(e){const t=e.dict.get("AP");if(!(t instanceof s.Dict))return;const n=t.get("N");if(!(n instanceof s.Dict))return;const r=this._decodeFormValue(e.dict.get("AS"));"string"===typeof r&&(this.data.fieldValue=r);const i=null!==this.data.fieldValue&&"Off"!==this.data.fieldValue?this.data.fieldValue:"Yes",o=n.getKeys();if(0===o.length)o.push("Off",i);else if(1===o.length)"Off"===o[0]?o.push(i):o.unshift("Off");else if(o.includes(i))o.length=0,o.push("Off",i);else{const e=o.find((e=>"Off"!==e));o.length=0,o.push("Off",e)}o.includes(this.data.fieldValue)||(this.data.fieldValue="Off"),this.data.exportValue=o[1];const a=n.get(this.data.exportValue);this.checkedAppearance=a instanceof l.BaseStream?a:null;const c=n.get("Off");this.uncheckedAppearance=c instanceof l.BaseStream?c:null,this.checkedAppearance?this._streams.push(this.checkedAppearance):this._getDefaultCheckedAppearance(e,"check"),this.uncheckedAppearance&&this._streams.push(this.uncheckedAppearance),this._fallbackFontDict=this.fallbackFontDict}_processRadioButton(e){this.data.fieldValue=this.data.buttonValue=null;const t=e.dict.get("Parent");if(t instanceof s.Dict){this.parent=e.dict.getRaw("Parent");const n=t.get("V");n instanceof s.Name&&(this.data.fieldValue=this._decodeFormValue(n))}const n=e.dict.get("AP");if(!(n instanceof s.Dict))return;const r=n.get("N");if(!(r instanceof s.Dict))return;for(const s of r.getKeys())if("Off"!==s){this.data.buttonValue=this._decodeFormValue(s);break}const i=r.get(this.data.buttonValue);this.checkedAppearance=i instanceof l.BaseStream?i:null;const o=r.get("Off");this.uncheckedAppearance=o instanceof l.BaseStream?o:null,this.checkedAppearance?this._streams.push(this.checkedAppearance):this._getDefaultCheckedAppearance(e,"disc"),this.uncheckedAppearance&&this._streams.push(this.uncheckedAppearance),this._fallbackFontDict=this.fallbackFontDict}_processPushButton(e){e.dict.has("A")||e.dict.has("AA")||this.data.alternativeText?(this.data.isTooltipOnly=!e.dict.has("A")&&!e.dict.has("AA"),u.Catalog.parseDestDictionary({destDict:e.dict,resultObj:this.data,docBaseUrl:e.pdfManager.docBaseUrl,docAttachments:e.attachments})):(0,r.warn)("Push buttons without action dictionaries are not supported")}getFieldObject(){let e,t="button";return this.data.checkBox?(t="checkbox",e=this.data.exportValue):this.data.radioButton&&(t="radiobutton",e=this.data.buttonValue),{id:this.data.id,value:this.data.fieldValue||"Off",defaultValue:this.data.defaultFieldValue,exportValues:e,editable:!this.data.readOnly,name:this.data.fieldName,rect:this.data.rect,hidden:this.data.hidden,actions:this.data.actions,page:this.data.pageIndex,strokeColor:this.data.borderColor,fillColor:this.data.backgroundColor,rotation:this.rotation,type:t}}get fallbackFontDict(){const e=new s.Dict;return e.set("BaseFont",s.Name.get("ZapfDingbats")),e.set("Type",s.Name.get("FallbackType")),e.set("Subtype",s.Name.get("FallbackType")),e.set("Encoding",s.Name.get("ZapfDingbatsEncoding")),(0,r.shadow)(this,"fallbackFontDict",e)}}class A extends E{constructor(e){super(e);const{dict:t,xref:n}=e;this.data.options=[];const o=(0,i.getInheritableProperty)({dict:t,key:"Opt"});if(Array.isArray(o))for(let r=0,i=o.length;r<i;r++){const e=n.fetchIfRef(o[r]),t=Array.isArray(e);this.data.options[r]={exportValue:this._decodeFormValue(t?n.fetchIfRef(e[0]):e),displayValue:this._decodeFormValue(t?n.fetchIfRef(e[1]):e)}}"string"===typeof this.data.fieldValue?this.data.fieldValue=[this.data.fieldValue]:this.data.fieldValue||(this.data.fieldValue=[]),this.data.combo=this.hasFieldFlag(r.AnnotationFieldFlag.COMBO),this.data.multiSelect=this.hasFieldFlag(r.AnnotationFieldFlag.MULTISELECT),this._hasText=!0}getFieldObject(){const e=this.data.combo?"combobox":"listbox",t=this.data.fieldValue.length>0?this.data.fieldValue[0]:null;return{id:this.data.id,value:t,defaultValue:this.data.defaultFieldValue,editable:!this.data.readOnly,name:this.data.fieldName,rect:this.data.rect,numItems:this.data.fieldValue.length,multipleSelection:this.data.multiSelect,hidden:this.data.hidden,actions:this.data.actions,items:this.data.options,page:this.data.pageIndex,strokeColor:this.data.borderColor,fillColor:this.data.backgroundColor,rotation:this.rotation,type:e}}async _getAppearance(e,t,n,i){if(this.data.combo)return super._getAppearance(e,t,n,i);let s,a;const l=i?i.get(this.data.id):void 0;if(l&&(a=l.rotation,s=l.value),void 0===a&&void 0===s&&!this._needAppearances)return null;void 0===s?s=this.data.fieldValue:Array.isArray(s)||(s=[s]);let c=this.data.rect[3]-this.data.rect[1],u=this.data.rect[2]-this.data.rect[0];90!==a&&270!==a||([u,c]=[c,u]);const d=this.data.options.length,h=[];for(let r=0;r<d;r++){const{exportValue:e}=this.data.options[r];s.includes(e)&&h.push(r)}this._defaultAppearance||(this.data.defaultAppearanceData=(0,o.parseDefaultAppearance)(this._defaultAppearance="/Helvetica 0 Tf 0 g"));const p=await E._getFontData(e,t,this.data.defaultAppearanceData,this._fieldResources.mergedResources);let f,{fontSize:g}=this.data.defaultAppearanceData;if(g)f=this._defaultAppearance;else{const e=(c-1)/d;let t,n=-1;for(const{displayValue:r}of this.data.options){const e=this._getTextWidth(r,p);e>n&&(n=e,t=r)}[f,g]=this._computeFontSize(e,u-4,t,p,-1)}const m=g*r.LINE_FACTOR,y=(m-g)/2,v=Math.floor(c/m);let _;if(1===h.length){const e=h[0];_=e-e%v}else _=h.length?h[0]:0;const b=Math.min(_+v+1,d),x=["/Tx BMC q","1 1 ".concat(u," ").concat(c," re W n")];if(h.length){x.push("0.600006 0.756866 0.854904 rg");for(const e of h)_<=e&&e<b&&x.push("1 ".concat(c-(e-_+1)*m," ").concat(u," ").concat(m," re f"))}x.push("BT",f,"1 0 0 1 0 ".concat(c," Tm"));const S={shift:0};for(let r=_;r<b;r++){const{displayValue:e}=this.data.options[r],t=r===_?y:0;x.push(this._renderText(e,p,g,u,0,S,2,-m+t))}return x.push("ET Q EMC"),x.join("\n")}}class k extends E{constructor(e){super(e),this.data.fieldValue=null}getFieldObject(){return{id:this.data.id,value:null,page:this.data.pageIndex,type:"signature"}}}class j extends w{constructor(e){super(e);const{dict:t}=e;this.data.annotationType=r.AnnotationType.TEXT,this.data.hasAppearance?this.data.name="NoIcon":(this.data.rect[1]=this.data.rect[3]-22,this.data.rect[2]=this.data.rect[0]+22,this.data.name=t.has("Name")?t.get("Name").name:"Note"),t.has("State")?(this.data.state=t.get("State")||null,this.data.stateModel=t.get("StateModel")||null):(this.data.state=null,this.data.stateModel=null)}}class I extends x{constructor(e){super(e),this.data.annotationType=r.AnnotationType.LINK;const t=_(e.dict,this.rectangle);t&&(this.data.quadPoints=t),this.data.borderColor=this.data.borderColor||this.data.color,u.Catalog.parseDestDictionary({destDict:e.dict,resultObj:this.data,docBaseUrl:e.pdfManager.docBaseUrl,docAttachments:e.attachments})}}class G extends x{constructor(e){super(e);const{dict:t}=e;this.data.annotationType=r.AnnotationType.POPUP;let n=t.get("Parent");if(!n)return void(0,r.warn)("Popup annotation has a missing or invalid parent annotation.");const i=n.get("Subtype");this.data.parentType=i instanceof s.Name?i.name:null;const o=t.getRaw("Parent");this.data.parentId=o instanceof s.Ref?o.toString():null;const a=n.getArray("Rect");Array.isArray(a)&&4===a.length?this.data.parentRect=r.Util.normalizeRect(a):this.data.parentRect=[0,0,0,0];const l=n.get("RT");if((0,s.isName)(l,r.AnnotationReplyType.GROUP)&&(n=n.get("IRT")),n.has("M")?(this.setModificationDate(n.get("M")),this.data.modificationDate=this.modificationDate):this.data.modificationDate=null,n.has("C")?(this.setColor(n.getArray("C")),this.data.color=this.color):this.data.color=null,!this.viewable){const e=n.get("F");this._isViewable(e)&&this.setFlags(e)}this.setTitle(n.get("T")),this.data.titleObj=this._title,this.setContents(n.get("Contents")),this.data.contentsObj=this._contents,n.has("RC")&&(this.data.richText=m.XFAFactory.getRichTextAsHtml(n.get("RC")))}}t.PopupAnnotation=G;class T extends w{constructor(e){super(e);const{xref:t}=e;if(this.data.annotationType=r.AnnotationType.FREETEXT,this.setDefaultAppearance(e),!this.appearance&&this._isOffscreenCanvasSupported){const e=new o.FakeUnicodeFont(t,"sans-serif"),n=this.data.defaultAppearanceData;this.appearance=e.createAppearance(this._contents.str,this.rectangle,this.rotation,n.fontSize||10,n.fontColor),this._streams.push(this.appearance,o.FakeUnicodeFont.toUnicodeStream)}else this._isOffscreenCanvasSupported||(0,r.warn)("FreeTextAnnotation: OffscreenCanvas is not supported, annotation may not render correctly.")}get hasTextContent(){return!!this.appearance}static createNewDict(e,t,n){let{apRef:a,ap:l}=n;const{color:c,fontSize:u,rect:d,rotation:h,user:p,value:f}=e,g=new s.Dict(t);g.set("Type",s.Name.get("Annot")),g.set("Subtype",s.Name.get("FreeText")),g.set("CreationDate","D:".concat((0,r.getModificationDate)())),g.set("Rect",d);const m="/Helv ".concat(u," Tf ").concat((0,o.getPdfColor)(c,!0));if(g.set("DA",m),g.set("Contents",(0,i.isAscii)(f)?f:(0,i.stringToUTF16String)(f,!0)),g.set("F",4),g.set("Border",[0,0,0]),g.set("Rotate",h),p&&g.set("T",(0,i.isAscii)(p)?p:(0,i.stringToUTF16String)(p,!0)),a||l){const e=new s.Dict(t);g.set("AP",e),a?e.set("N",a):e.set("N",l)}return g}static async createNewAppearanceStream(e,t,n){const{baseFontRef:a,evaluator:l,task:c}=n,{color:u,fontSize:d,rect:h,rotation:p,value:f}=e,m=new s.Dict(t),y=new s.Dict(t);if(a)y.set("Helv",a);else{const e=new s.Dict(t);e.set("BaseFont",s.Name.get("Helvetica")),e.set("Type",s.Name.get("Font")),e.set("Subtype",s.Name.get("Type1")),e.set("Encoding",s.Name.get("WinAnsiEncoding")),y.set("Helv",e)}m.set("Font",y);const v=await E._getFontData(l,c,{fontName:"Helvetica",fontSize:d},m),[_,b,x,S]=h;let w=x-_,P=S-b;p%180!==0&&([w,P]=[P,w]);const C=f.split("\n"),A=d/1e3;let k=-1/0;const j=[];for(let r of C){const e=v.encodeString(r);if(e.length>1)return null;r=e.join(""),j.push(r);let t=0;const n=v.charsToGlyphs(r);for(const r of n)t+=r.width*A;k=Math.max(k,t)}let I=1;k>w&&(I=w/k);let G=1;const T=r.LINE_FACTOR*d,M=r.LINE_DESCENT_FACTOR*d,O=T*C.length;O>P&&(G=P/O);const R=d*Math.min(I,G),D=["q","0 0 ".concat((0,i.numberToString)(w)," ").concat((0,i.numberToString)(P)," re W n"),"BT","1 0 0 1 0 ".concat((0,i.numberToString)(P+M)," Tm 0 Tc ").concat((0,o.getPdfColor)(u,!0)),"/Helv ".concat((0,i.numberToString)(R)," Tf")],N=(0,i.numberToString)(T);for(const r of j)D.push("0 -".concat(N," Td (").concat((0,i.escapeString)(r),") Tj"));D.push("ET","Q");const L=D.join("\n"),V=new s.Dict(t);if(V.set("FormType",1),V.set("Subtype",s.Name.get("Form")),V.set("Type",s.Name.get("XObject")),V.set("BBox",[0,0,w,P]),V.set("Length",L.length),V.set("Resources",m),p){const e=(0,i.getRotationMatrix)(p,w,P);V.set("Matrix",e)}const F=new g.StringStream(L);return F.dict=V,F}}class M extends w{constructor(e){super(e);const{dict:t,xref:n}=e;this.data.annotationType=r.AnnotationType.LINE;const i=t.getArray("L");if(this.data.lineCoordinates=r.Util.normalizeRect(i),this.setLineEndings(t.getArray("LE")),this.data.lineEndings=this.lineEndings,!this.appearance){const e=this.color?v(this.color):[0,0,0],o=t.get("CA"),s=y(t.getArray("IC"),null),a=s?v(s):null,l=a?o:null,c=this.borderStyle.width||1,u=2*c,d=[this.data.lineCoordinates[0]-u,this.data.lineCoordinates[1]-u,this.data.lineCoordinates[2]+u,this.data.lineCoordinates[3]+u];r.Util.intersect(this.rectangle,d)||(this.rectangle=d),this._setDefaultAppearance({xref:n,extra:"".concat(c," w"),strokeColor:e,fillColor:a,strokeAlpha:o,fillAlpha:l,pointsCallback:(e,t)=>(e.push("".concat(i[0]," ").concat(i[1]," m"),"".concat(i[2]," ").concat(i[3]," l"),"S"),[t[0].x-c,t[1].x+c,t[3].y-c,t[1].y+c])})}}}class O extends w{constructor(e){super(e);const{dict:t,xref:n}=e;if(this.data.annotationType=r.AnnotationType.SQUARE,!this.appearance){const e=this.color?v(this.color):[0,0,0],r=t.get("CA"),i=y(t.getArray("IC"),null),o=i?v(i):null,s=o?r:null;if(0===this.borderStyle.width&&!o)return;this._setDefaultAppearance({xref:n,extra:"".concat(this.borderStyle.width," w"),strokeColor:e,fillColor:o,strokeAlpha:r,fillAlpha:s,pointsCallback:(e,t)=>{const n=t[2].x+this.borderStyle.width/2,r=t[2].y+this.borderStyle.width/2,i=t[3].x-t[2].x-this.borderStyle.width,s=t[1].y-t[3].y-this.borderStyle.width;return e.push("".concat(n," ").concat(r," ").concat(i," ").concat(s," re")),o?e.push("B"):e.push("S"),[t[0].x,t[1].x,t[3].y,t[1].y]}})}}}class R extends w{constructor(e){super(e);const{dict:t,xref:n}=e;if(this.data.annotationType=r.AnnotationType.CIRCLE,!this.appearance){const e=this.color?v(this.color):[0,0,0],r=t.get("CA"),i=y(t.getArray("IC"),null),o=i?v(i):null,s=o?r:null;if(0===this.borderStyle.width&&!o)return;const a=4/3*Math.tan(Math.PI/8);this._setDefaultAppearance({xref:n,extra:"".concat(this.borderStyle.width," w"),strokeColor:e,fillColor:o,strokeAlpha:r,fillAlpha:s,pointsCallback:(e,t)=>{const n=t[0].x+this.borderStyle.width/2,r=t[0].y-this.borderStyle.width/2,i=t[3].x-this.borderStyle.width/2,s=t[3].y+this.borderStyle.width/2,l=n+(i-n)/2,c=r+(s-r)/2,u=(i-n)/2*a,d=(s-r)/2*a;return e.push("".concat(l," ").concat(s," m"),"".concat(l+u," ").concat(s," ").concat(i," ").concat(c+d," ").concat(i," ").concat(c," c"),"".concat(i," ").concat(c-d," ").concat(l+u," ").concat(r," ").concat(l," ").concat(r," c"),"".concat(l-u," ").concat(r," ").concat(n," ").concat(c-d," ").concat(n," ").concat(c," c"),"".concat(n," ").concat(c+d," ").concat(l-u," ").concat(s," ").concat(l," ").concat(s," c"),"h"),o?e.push("B"):e.push("S"),[t[0].x,t[1].x,t[3].y,t[1].y]}})}}}class D extends w{constructor(e){super(e);const{dict:t,xref:n}=e;this.data.annotationType=r.AnnotationType.POLYLINE,this.data.vertices=[],this instanceof N||(this.setLineEndings(t.getArray("LE")),this.data.lineEndings=this.lineEndings);const i=t.getArray("Vertices");if(Array.isArray(i)){for(let e=0,t=i.length;e<t;e+=2)this.data.vertices.push({x:i[e],y:i[e+1]});if(!this.appearance){const e=this.color?v(this.color):[0,0,0],i=t.get("CA"),o=this.borderStyle.width||1,s=2*o,a=[1/0,1/0,-1/0,-1/0];for(const t of this.data.vertices)a[0]=Math.min(a[0],t.x-s),a[1]=Math.min(a[1],t.y-s),a[2]=Math.max(a[2],t.x+s),a[3]=Math.max(a[3],t.y+s);r.Util.intersect(this.rectangle,a)||(this.rectangle=a),this._setDefaultAppearance({xref:n,extra:"".concat(o," w"),strokeColor:e,strokeAlpha:i,pointsCallback:(e,t)=>{const n=this.data.vertices;for(let r=0,i=n.length;r<i;r++)e.push("".concat(n[r].x," ").concat(n[r].y," ").concat(0===r?"m":"l"));return e.push("S"),[t[0].x,t[1].x,t[3].y,t[1].y]}})}}}}class N extends D{constructor(e){super(e),this.data.annotationType=r.AnnotationType.POLYGON}}class L extends w{constructor(e){super(e),this.data.annotationType=r.AnnotationType.CARET}}class V extends w{constructor(e){super(e);const{dict:t,xref:n}=e;this.data.annotationType=r.AnnotationType.INK,this.data.inkLists=[];const i=t.getArray("InkList");if(Array.isArray(i)){for(let e=0,t=i.length;e<t;++e){this.data.inkLists.push([]);for(let t=0,r=i[e].length;t<r;t+=2)this.data.inkLists[e].push({x:n.fetchIfRef(i[e][t]),y:n.fetchIfRef(i[e][t+1])})}if(!this.appearance){const e=this.color?v(this.color):[0,0,0],i=t.get("CA"),o=this.borderStyle.width||1,s=2*o,a=[1/0,1/0,-1/0,-1/0];for(const t of this.data.inkLists)for(const e of t)a[0]=Math.min(a[0],e.x-s),a[1]=Math.min(a[1],e.y-s),a[2]=Math.max(a[2],e.x+s),a[3]=Math.max(a[3],e.y+s);r.Util.intersect(this.rectangle,a)||(this.rectangle=a),this._setDefaultAppearance({xref:n,extra:"".concat(o," w"),strokeColor:e,strokeAlpha:i,pointsCallback:(e,t)=>{for(const n of this.data.inkLists){for(let t=0,r=n.length;t<r;t++)e.push("".concat(n[t].x," ").concat(n[t].y," ").concat(0===t?"m":"l"));e.push("S")}return[t[0].x,t[1].x,t[3].y,t[1].y]}})}}}static createNewDict(e,t,n){let{apRef:i,ap:o}=n;const{paths:a,rect:l,rotation:c}=e,u=new s.Dict(t);u.set("Type",s.Name.get("Annot")),u.set("Subtype",s.Name.get("Ink")),u.set("CreationDate","D:".concat((0,r.getModificationDate)())),u.set("Rect",l),u.set("InkList",a.map((e=>e.points))),u.set("F",4),u.set("Border",[0,0,0]),u.set("Rotate",c);const d=new s.Dict(t);return u.set("AP",d),i?d.set("N",i):d.set("N",o),u}static async createNewAppearanceStream(e,t,n){const{color:r,rect:a,rotation:l,paths:c,thickness:u,opacity:d}=e,[h,p,f,m]=a;let y=f-h,v=m-p;l%180!==0&&([y,v]=[v,y]);const _=["".concat(u," w 1 J 1 j"),"".concat((0,o.getPdfColor)(r,!1))];1!==d&&_.push("/R0 gs");const b=[];for(const{bezier:o}of c){b.length=0,b.push("".concat((0,i.numberToString)(o[0])," ").concat((0,i.numberToString)(o[1])," m"));for(let e=2,t=o.length;e<t;e+=6){const t=o.slice(e,e+6).map(i.numberToString).join(" ");b.push("".concat(t," c"))}b.push("S"),_.push(b.join("\n"))}const x=_.join("\n"),S=new s.Dict(t);if(S.set("FormType",1),S.set("Subtype",s.Name.get("Form")),S.set("Type",s.Name.get("XObject")),S.set("BBox",[0,0,y,v]),S.set("Length",x.length),l){const e=(0,i.getRotationMatrix)(l,y,v);S.set("Matrix",e)}if(1!==d){const e=new s.Dict(t),n=new s.Dict(t),r=new s.Dict(t);r.set("CA",d),r.set("Type",s.Name.get("ExtGState")),n.set("R0",r),e.set("ExtGState",n),S.set("Resources",e)}const w=new g.StringStream(x);return w.dict=S,w}}class F extends w{constructor(e){super(e);const{dict:t,xref:n}=e;if(this.data.annotationType=r.AnnotationType.HIGHLIGHT,this.data.quadPoints=_(t,null)){const e=this.appearance&&this.appearance.dict.get("Resources");if(!this.appearance||!e||!e.has("ExtGState")){this.appearance&&(0,r.warn)("HighlightAnnotation - ignoring built-in appearance stream.");const e=this.color?v(this.color):[1,1,0],i=t.get("CA");this._setDefaultAppearance({xref:n,fillColor:e,blendMode:"Multiply",fillAlpha:i,pointsCallback:(e,t)=>(e.push("".concat(t[0].x," ").concat(t[0].y," m"),"".concat(t[1].x," ").concat(t[1].y," l"),"".concat(t[3].x," ").concat(t[3].y," l"),"".concat(t[2].x," ").concat(t[2].y," l"),"f"),[t[0].x,t[1].x,t[3].y,t[1].y])})}}else this.data.hasPopup=!1}}class z extends w{constructor(e){super(e);const{dict:t,xref:n}=e;if(this.data.annotationType=r.AnnotationType.UNDERLINE,this.data.quadPoints=_(t,null)){if(!this.appearance){const e=this.color?v(this.color):[0,0,0],r=t.get("CA");this._setDefaultAppearance({xref:n,extra:"[] 0 d 1 w",strokeColor:e,strokeAlpha:r,pointsCallback:(e,t)=>(e.push("".concat(t[2].x," ").concat(t[2].y," m"),"".concat(t[3].x," ").concat(t[3].y," l"),"S"),[t[0].x,t[1].x,t[3].y,t[1].y])})}}else this.data.hasPopup=!1}}class B extends w{constructor(e){super(e);const{dict:t,xref:n}=e;if(this.data.annotationType=r.AnnotationType.SQUIGGLY,this.data.quadPoints=_(t,null)){if(!this.appearance){const e=this.color?v(this.color):[0,0,0],r=t.get("CA");this._setDefaultAppearance({xref:n,extra:"[] 0 d 1 w",strokeColor:e,strokeAlpha:r,pointsCallback:(e,t)=>{const n=(t[0].y-t[2].y)/6;let r=n,i=t[2].x;const o=t[2].y,s=t[3].x;e.push("".concat(i," ").concat(o+r," m"));do{i+=2,r=0===r?n:0,e.push("".concat(i," ").concat(o+r," l"))}while(i<s);return e.push("S"),[t[2].x,s,o-2*n,o+2*n]}})}}else this.data.hasPopup=!1}}class U extends w{constructor(e){super(e);const{dict:t,xref:n}=e;if(this.data.annotationType=r.AnnotationType.STRIKEOUT,this.data.quadPoints=_(t,null)){if(!this.appearance){const e=this.color?v(this.color):[0,0,0],r=t.get("CA");this._setDefaultAppearance({xref:n,extra:"[] 0 d 1 w",strokeColor:e,strokeAlpha:r,pointsCallback:(e,t)=>(e.push("".concat((t[0].x+t[2].x)/2," ")+"".concat((t[0].y+t[2].y)/2," m"),"".concat((t[1].x+t[3].x)/2," ")+"".concat((t[1].y+t[3].y)/2," l"),"S"),[t[0].x,t[1].x,t[3].y,t[1].y])})}}else this.data.hasPopup=!1}}class W extends w{constructor(e){super(e),this.data.annotationType=r.AnnotationType.STAMP}}class H extends w{constructor(e){super(e);const{dict:t,xref:n}=e,i=new h.FileSpec(t.get("FS"),n);this.data.annotationType=r.AnnotationType.FILEATTACHMENT,this.data.file=i.serializable;const o=t.get("Name");this.data.name=o instanceof s.Name?(0,r.stringToPDFString)(o.name):"PushPin"}}},(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.FakeUnicodeFont=void 0,t.createDefaultAppearance=function(e){let{fontSize:t,fontName:n,fontColor:r}=e;return"/".concat((0,i.escapePDFName)(n)," ").concat(t," Tf ").concat(u(r,!0))},t.getPdfColor=u,t.parseDefaultAppearance=function(e){return new c(e).parse()};var r=n(3),i=n(4),o=n(2),s=n(12),a=n(13),l=n(8);class c extends a.EvaluatorPreprocessor{constructor(e){super(new l.StringStream(e))}parse(){const e={fn:0,args:[]},t={fontSize:0,fontName:"",fontColor:new Uint8ClampedArray(3)};try{for(;e.args.length=0,this.read(e);){if(0!==this.savedStatesDepth)continue;const{fn:n,args:i}=e;switch(0|n){case o.OPS.setFont:const[e,n]=i;e instanceof r.Name&&(t.fontName=e.name),"number"===typeof n&&n>0&&(t.fontSize=n);break;case o.OPS.setFillRGBColor:s.ColorSpace.singletons.rgb.getRgbItem(i,0,t.fontColor,0);break;case o.OPS.setFillGray:s.ColorSpace.singletons.gray.getRgbItem(i,0,t.fontColor,0);break;case o.OPS.setFillColorSpace:s.ColorSpace.singletons.cmyk.getRgbItem(i,0,t.fontColor,0)}}}catch(n){(0,o.warn)('parseDefaultAppearance - ignoring errors: "'.concat(n,'".'))}return t}}function u(e,t){if(e[0]===e[1]&&e[1]===e[2]){const n=e[0]/255;return"".concat((0,i.numberToString)(n)," ").concat(t?"g":"G")}return Array.from(e,(e=>(0,i.numberToString)(e/255))).join(" ")+" ".concat(t?"rg":"RG")}class d{constructor(e,t){this.xref=e,this.widths=null,this.firstChar=1/0,this.lastChar=-1/0,this.fontFamily=t;const n=new OffscreenCanvas(1,1);this.ctxMeasure=n.getContext("2d"),d._fontNameId||(d._fontNameId=1),this.fontName=r.Name.get("InvalidPDFjsFont_".concat(t,"_").concat(d._fontNameId++))}get toUnicodeRef(){if(!d._toUnicodeRef){const e="/CIDInit /ProcSet findresource begin\n12 dict begin\nbegincmap\n/CIDSystemInfo\n<< /Registry (Adobe)\n/Ordering (UCS) /Supplement 0 >> def\n/CMapName /Adobe-Identity-UCS def\n/CMapType 2 def\n1 begincodespacerange\n<0000> <FFFF>\nendcodespacerange\n1 beginbfrange\n<0000> <FFFF> <0000>\nendbfrange\nendcmap CMapName currentdict /CMap defineresource pop end end",t=d.toUnicodeStream=new l.StringStream(e),n=new r.Dict(this.xref);t.dict=n,n.set("Length",e.length),d._toUnicodeRef=this.xref.getNewPersistentRef(t)}return d._toUnicodeRef}get fontDescriptorRef(){if(!d._fontDescriptorRef){const e=new r.Dict(this.xref);e.set("Type",r.Name.get("FontDescriptor")),e.set("FontName",this.fontName),e.set("FontFamily","MyriadPro Regular"),e.set("FontBBox",[0,0,0,0]),e.set("FontStretch",r.Name.get("Normal")),e.set("FontWeight",400),e.set("ItalicAngle",0),d._fontDescriptorRef=this.xref.getNewPersistentRef(e)}return d._fontDescriptorRef}get descendantFontRef(){const e=new r.Dict(this.xref);e.set("BaseFont",this.fontName),e.set("Type",r.Name.get("Font")),e.set("Subtype",r.Name.get("CIDFontType0")),e.set("CIDToGIDMap",r.Name.get("Identity")),e.set("FirstChar",this.firstChar),e.set("LastChar",this.lastChar),e.set("FontDescriptor",this.fontDescriptorRef),e.set("DW",1e3);const t=[],n=[...this.widths.entries()].sort();let i=null,o=null;for(const[r,a]of n)i?r===i+o.length?o.push(a):(t.push(i,o),i=r,o=[a]):(i=r,o=[a]);i&&t.push(i,o),e.set("W",t);const s=new r.Dict(this.xref);return s.set("Ordering","Identity"),s.set("Registry","Adobe"),s.set("Supplement",0),e.set("CIDSystemInfo",s),this.xref.getNewPersistentRef(e)}get baseFontRef(){const e=new r.Dict(this.xref);return e.set("BaseFont",this.fontName),e.set("Type",r.Name.get("Font")),e.set("Subtype",r.Name.get("Type0")),e.set("Encoding",r.Name.get("Identity-H")),e.set("DescendantFonts",[this.descendantFontRef]),e.set("ToUnicode",this.toUnicodeRef),this.xref.getNewPersistentRef(e)}get resources(){const e=new r.Dict(this.xref),t=new r.Dict(this.xref);return t.set(this.fontName.name,this.baseFontRef),e.set("Font",t),e}_createContext(){return this.widths=new Map,this.ctxMeasure.font="1000px ".concat(this.fontFamily),this.ctxMeasure}createFontResources(e){const t=this._createContext();for(const n of e.split(/\r\n?|\n/))for(const e of n.split("")){const n=e.charCodeAt(0);if(this.widths.has(n))continue;const r=t.measureText(e),i=Math.ceil(r.width);this.widths.set(n,i),this.firstChar=Math.min(n,this.firstChar),this.lastChar=Math.max(n,this.lastChar)}return this.resources}createAppearance(e,t,n,s,a){const c=this._createContext(),d=[];let h=-1/0;for(const r of e.split(/\r\n?|\n/)){d.push(r);const e=c.measureText(r).width;h=Math.max(h,e);for(const t of r.split("")){const e=t.charCodeAt(0);let n=this.widths.get(e);if(void 0===n){const r=c.measureText(t);n=Math.ceil(r.width),this.widths.set(e,n),this.firstChar=Math.min(e,this.firstChar),this.lastChar=Math.max(e,this.lastChar)}}}h*=s/1e3;const[p,f,g,m]=t;let y=g-p,v=m-f;n%180!==0&&([y,v]=[v,y]);let _=1;h>y&&(_=y/h);let b=1;const x=o.LINE_FACTOR*s,S=o.LINE_DESCENT_FACTOR*s,w=x*d.length;w>v&&(b=v/w);const E=s*Math.min(_,b),P=["q","0 0 ".concat((0,i.numberToString)(y)," ").concat((0,i.numberToString)(v)," re W n"),"BT","1 0 0 1 0 ".concat((0,i.numberToString)(v+S)," Tm 0 Tc ").concat(u(a,!0)),"/".concat(this.fontName.name," ").concat((0,i.numberToString)(E)," Tf")],C=(0,i.numberToString)(x);for(const r of d)P.push("0 -".concat(C," Td <").concat((0,i.stringToUTF16HexString)(r),"> Tj"));P.push("ET","Q");const A=P.join("\n"),k=new r.Dict(this.xref);if(k.set("Subtype",r.Name.get("Form")),k.set("Type",r.Name.get("XObject")),k.set("BBox",[0,0,y,v]),k.set("Length",A.length),k.set("Resources",this.resources),n){const e=(0,i.getRotationMatrix)(n,y,v);k.set("Matrix",e)}const j=new l.StringStream(A);return j.dict=k,j}}t.FakeUnicodeFont=d},(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.ColorSpace=void 0;var r=n(2),i=n(3),o=n(5),s=n(4);class a{constructor(e,t){this.constructor===a&&(0,r.unreachable)("Cannot initialize ColorSpace."),this.name=e,this.numComps=t}getRgb(e,t){const n=new Uint8ClampedArray(3);return this.getRgbItem(e,t,n,0),n}getRgbItem(e,t,n,i){(0,r.unreachable)("Should not call ColorSpace.getRgbItem")}getRgbBuffer(e,t,n,i,o,s,a){(0,r.unreachable)("Should not call ColorSpace.getRgbBuffer")}getOutputLength(e,t){(0,r.unreachable)("Should not call ColorSpace.getOutputLength")}isPassthrough(e){return!1}isDefaultDecode(e,t){return a.isDefaultDecode(e,this.numComps)}fillRgb(e,t,n,r,i,o,s,a,l){const c=t*n;let u=null;const d=1<<s,h=n!==i||t!==r;if(this.isPassthrough(s))u=a;else if(1===this.numComps&&c>d&&"DeviceGray"!==this.name&&"DeviceRGB"!==this.name){const t=s<=8?new Uint8Array(d):new Uint16Array(d);for(let e=0;e<d;e++)t[e]=e;const n=new Uint8ClampedArray(3*d);if(this.getRgbBuffer(t,0,d,n,0,s,0),h){u=new Uint8Array(3*c);let e=0;for(let t=0;t<c;++t){const r=3*a[t];u[e++]=n[r],u[e++]=n[r+1],u[e++]=n[r+2]}}else{let t=0;for(let r=0;r<c;++r){const i=3*a[r];e[t++]=n[i],e[t++]=n[i+1],e[t++]=n[i+2],t+=l}}}else h?(u=new Uint8ClampedArray(3*c),this.getRgbBuffer(a,0,c,u,0,s,0)):this.getRgbBuffer(a,0,r*o,e,0,s,l);if(u)if(h)!function(e,t,n,r,i,o,s){s=1!==s?0:s;const a=n/i,l=r/o;let c,u=0;const d=new Uint16Array(i),h=3*n;for(let p=0;p<i;p++)d[p]=3*Math.floor(p*a);for(let p=0;p<o;p++){const n=Math.floor(p*l)*h;for(let r=0;r<i;r++)c=n+d[r],t[u++]=e[c++],t[u++]=e[c++],t[u++]=e[c++],u+=s}}(u,e,t,n,r,i,l);else{let t=0,n=0;for(let i=0,s=r*o;i<s;i++)e[t++]=u[n++],e[t++]=u[n++],e[t++]=u[n++],t+=l}}get usesZeroToOneRange(){return(0,r.shadow)(this,"usesZeroToOneRange",!0)}static _cache(e,t,n,r){if(!n)throw new Error('ColorSpace._cache - expected "localColorSpaceCache" argument.');if(!r)throw new Error('ColorSpace._cache - expected "parsedColorSpace" argument.');let o,s;e instanceof i.Ref&&(s=e,e=t.fetch(e)),e instanceof i.Name&&(o=e.name),(o||s)&&n.set(o,s,r)}static getCached(e,t,n){if(!n)throw new Error('ColorSpace.getCached - expected "localColorSpaceCache" argument.');if(e instanceof i.Ref){const i=n.getByRef(e);if(i)return i;try{e=t.fetch(e)}catch(r){if(r instanceof s.MissingDataException)throw r}}if(e instanceof i.Name){const t=n.getByName(e.name);if(t)return t}return null}static async parseAsync(e){let{cs:t,xref:n,resources:r=null,pdfFunctionFactory:i,localColorSpaceCache:o}=e;const s=this._parse(t,n,r,i);return this._cache(t,n,o,s),s}static parse(e){let{cs:t,xref:n,resources:r=null,pdfFunctionFactory:i,localColorSpaceCache:o}=e;const s=this.getCached(t,n,o);if(s)return s;const a=this._parse(t,n,r,i);return this._cache(t,n,o,a),a}static _parse(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,o=arguments.length>3?arguments[3]:void 0;if((e=t.fetchIfRef(e))instanceof i.Name)switch(e.name){case"G":case"DeviceGray":return this.singletons.gray;case"RGB":case"DeviceRGB":return this.singletons.rgb;case"CMYK":case"DeviceCMYK":return this.singletons.cmyk;case"Pattern":return new c(null);default:if(n instanceof i.Dict){const r=n.get("ColorSpace");if(r instanceof i.Dict){const s=r.get(e.name);if(s){if(s instanceof i.Name)return this._parse(s,t,n,o);e=s;break}}}throw new r.FormatError("Unrecognized ColorSpace: ".concat(e.name))}if(Array.isArray(e)){const i=t.fetchIfRef(e[0]).name;let s,a,d,h,p,y;switch(i){case"G":case"DeviceGray":return this.singletons.gray;case"RGB":case"DeviceRGB":return this.singletons.rgb;case"CMYK":case"DeviceCMYK":return this.singletons.cmyk;case"CalGray":return s=t.fetchIfRef(e[1]),h=s.getArray("WhitePoint"),p=s.getArray("BlackPoint"),y=s.get("Gamma"),new f(h,p,y);case"CalRGB":s=t.fetchIfRef(e[1]),h=s.getArray("WhitePoint"),p=s.getArray("BlackPoint"),y=s.getArray("Gamma");const v=s.getArray("Matrix");return new g(h,p,y,v);case"ICCBased":const _=t.fetchIfRef(e[1]).dict;a=_.get("N");const b=_.get("Alternate");if(b){const e=this._parse(b,t,n,o);if(e.numComps===a)return e;(0,r.warn)("ICCBased color space: Ignoring incorrect /Alternate entry.")}if(1===a)return this.singletons.gray;if(3===a)return this.singletons.rgb;if(4===a)return this.singletons.cmyk;break;case"Pattern":return d=e[1]||null,d&&(d=this._parse(d,t,n,o)),new c(d);case"I":case"Indexed":d=this._parse(e[1],t,n,o);const x=t.fetchIfRef(e[2])+1,S=t.fetchIfRef(e[3]);return new u(d,x,S);case"Separation":case"DeviceN":const w=t.fetchIfRef(e[1]);a=Array.isArray(w)?w.length:1,d=this._parse(e[2],t,n,o);const E=o.create(e[3]);return new l(a,d,E);case"Lab":s=t.fetchIfRef(e[1]),h=s.getArray("WhitePoint"),p=s.getArray("BlackPoint");const P=s.getArray("Range");return new m(h,p,P);default:throw new r.FormatError("Unimplemented ColorSpace object: ".concat(i))}}throw new r.FormatError("Unrecognized ColorSpace object: ".concat(e))}static isDefaultDecode(e,t){if(!Array.isArray(e))return!0;if(2*t!==e.length)return(0,r.warn)("The decode map is not the correct length"),!0;for(let n=0,r=e.length;n<r;n+=2)if(0!==e[n]||1!==e[n+1])return!1;return!0}static get singletons(){return(0,r.shadow)(this,"singletons",{get gray(){return(0,r.shadow)(this,"gray",new d)},get rgb(){return(0,r.shadow)(this,"rgb",new h)},get cmyk(){return(0,r.shadow)(this,"cmyk",new p)}})}}t.ColorSpace=a;class l extends a{constructor(e,t,n){super("Alternate",e),this.base=t,this.tintFn=n,this.tmpBuf=new Float32Array(t.numComps)}getRgbItem(e,t,n,r){const i=this.tmpBuf;this.tintFn(e,t,i,0),this.base.getRgbItem(i,0,n,r)}getRgbBuffer(e,t,n,r,i,o,s){const a=this.tintFn,l=this.base,c=1/((1<<o)-1),u=l.numComps,d=l.usesZeroToOneRange,h=(l.isPassthrough(8)||!d)&&0===s;let p=h?i:0;const f=h?r:new Uint8ClampedArray(u*n),g=this.numComps,m=new Float32Array(g),y=new Float32Array(u);let v,_;for(v=0;v<n;v++){for(_=0;_<g;_++)m[_]=e[t++]*c;if(a(m,0,y,0),d)for(_=0;_<u;_++)f[p++]=255*y[_];else l.getRgbItem(y,0,f,p),p+=u}h||l.getRgbBuffer(f,0,n,r,i,8,s)}getOutputLength(e,t){return this.base.getOutputLength(e*this.base.numComps/this.numComps,t)}}class c extends a{constructor(e){super("Pattern",null),this.base=e}isDefaultDecode(e,t){(0,r.unreachable)("Should not call PatternCS.isDefaultDecode")}}class u extends a{constructor(e,t,n){super("Indexed",1),this.base=e,this.highVal=t;const i=e.numComps*t;if(this.lookup=new Uint8Array(i),n instanceof o.BaseStream){const e=n.getBytes(i);this.lookup.set(e)}else{if("string"!==typeof n)throw new r.FormatError("IndexedCS - unrecognized lookup table: ".concat(n));for(let e=0;e<i;++e)this.lookup[e]=255&n.charCodeAt(e)}}getRgbItem(e,t,n,r){const i=this.base.numComps,o=e[t]*i;this.base.getRgbBuffer(this.lookup,o,1,n,r,8,0)}getRgbBuffer(e,t,n,r,i,o,s){const a=this.base,l=a.numComps,c=a.getOutputLength(l,s),u=this.lookup;for(let d=0;d<n;++d){const n=e[t++]*l;a.getRgbBuffer(u,n,1,r,i,8,s),i+=c}}getOutputLength(e,t){return this.base.getOutputLength(e*this.base.numComps,t)}isDefaultDecode(e,t){return!Array.isArray(e)||(2!==e.length?((0,r.warn)("Decode map length is not correct"),!0):!Number.isInteger(t)||t<1?((0,r.warn)("Bits per component is not correct"),!0):0===e[0]&&e[1]===(1<<t)-1)}}class d extends a{constructor(){super("DeviceGray",1)}getRgbItem(e,t,n,r){const i=255*e[t];n[r]=n[r+1]=n[r+2]=i}getRgbBuffer(e,t,n,r,i,o,s){const a=255/((1<<o)-1);let l=t,c=i;for(let u=0;u<n;++u){const t=a*e[l++];r[c++]=t,r[c++]=t,r[c++]=t,c+=s}}getOutputLength(e,t){return e*(3+t)}}class h extends a{constructor(){super("DeviceRGB",3)}getRgbItem(e,t,n,r){n[r]=255*e[t],n[r+1]=255*e[t+1],n[r+2]=255*e[t+2]}getRgbBuffer(e,t,n,r,i,o,s){if(8===o&&0===s)return void r.set(e.subarray(t,t+3*n),i);const a=255/((1<<o)-1);let l=t,c=i;for(let u=0;u<n;++u)r[c++]=a*e[l++],r[c++]=a*e[l++],r[c++]=a*e[l++],c+=s}getOutputLength(e,t){return e*(3+t)/3|0}isPassthrough(e){return 8===e}}const p=function(){function e(e,t,n,r,i){const o=e[t]*n,s=e[t+1]*n,a=e[t+2]*n,l=e[t+3]*n;r[i]=255+o*(-4.387332384609988*o+54.48615194189176*s+18.82290502165302*a+212.25662451639585*l-285.2331026137004)+s*(1.7149763477362134*s-5.6096736904047315*a+-17.873870861415444*l-5.497006427196366)+a*(-2.5217340131683033*a-21.248923337353073*l+17.5119270841813)+l*(-21.86122147463605*l-189.48180835922747),r[i+1]=255+o*(8.841041422036149*o+60.118027045597366*s+6.871425592049007*a+31.159100130055922*l-79.2970844816548)+s*(-15.310361306967817*s+17.575251261109482*a+131.35250912493976*l-190.9453302588951)+a*(4.444339102852739*a+9.8632861493405*l-24.86741582555878)+l*(-20.737325471181034*l-187.80453709719578),r[i+2]=255+o*(.8842522430003296*o+8.078677503112928*s+30.89978309703729*a-.23883238689178934*l-14.183576799673286)+s*(10.49593273432072*s+63.02378494754052*a+50.606957656360734*l-112.23884253719248)+a*(.03296041114873217*a+115.60384449646641*l-193.58209356861505)+l*(-22.33816807309886*l-180.12613974708367)}return class extends a{constructor(){super("DeviceCMYK",4)}getRgbItem(t,n,r,i){e(t,n,1,r,i)}getRgbBuffer(t,n,r,i,o,s,a){const l=1/((1<<s)-1);for(let c=0;c<r;c++)e(t,n,l,i,o),n+=4,o+=3+a}getOutputLength(e,t){return e/4*(3+t)|0}}}(),f=function(){function e(e,t,n,r,i,o){const s=(t[n]*o)**e.G,a=e.YW*s,l=Math.max(295.8*a**.3333333333333333-40.8,0);r[i]=l,r[i+1]=l,r[i+2]=l}return class extends a{constructor(e,t,n){if(super("CalGray",1),!e)throw new r.FormatError("WhitePoint missing - required for color space CalGray");if(t=t||[0,0,0],n=n||1,this.XW=e[0],this.YW=e[1],this.ZW=e[2],this.XB=t[0],this.YB=t[1],this.ZB=t[2],this.G=n,this.XW<0||this.ZW<0||1!==this.YW)throw new r.FormatError("Invalid WhitePoint components for ".concat(this.name)+", no fallback available");(this.XB<0||this.YB<0||this.ZB<0)&&((0,r.info)("Invalid BlackPoint for ".concat(this.name,", falling back to default.")),this.XB=this.YB=this.ZB=0),0===this.XB&&0===this.YB&&0===this.ZB||(0,r.warn)("".concat(this.name,", BlackPoint: XB: ").concat(this.XB,", YB: ").concat(this.YB,", ")+"ZB: ".concat(this.ZB,", only default values are supported.")),this.G<1&&((0,r.info)("Invalid Gamma: ".concat(this.G," for ").concat(this.name,", ")+"falling back to default."),this.G=1)}getRgbItem(t,n,r,i){e(this,t,n,r,i,1)}getRgbBuffer(t,n,r,i,o,s,a){const l=1/((1<<s)-1);for(let c=0;c<r;++c)e(this,t,n,i,o,l),n+=1,o+=3+a}getOutputLength(e,t){return e*(3+t)}}}(),g=function(){const e=new Float32Array([.8951,.2664,-.1614,-.7502,1.7135,.0367,.0389,-.0685,1.0296]),t=new Float32Array([.9869929,-.1470543,.1599627,.4323053,.5183603,.0492912,-.0085287,.0400428,.9684867]),n=new Float32Array([3.2404542,-1.5371385,-.4985314,-.969266,1.8760108,.041556,.0556434,-.2040259,1.0572252]),i=new Float32Array([1,1,1]),o=new Float32Array(3),s=new Float32Array(3),l=new Float32Array(3),c=(24/116)**3/8;function u(e,t,n){n[0]=e[0]*t[0]+e[1]*t[1]+e[2]*t[2],n[1]=e[3]*t[0]+e[4]*t[1]+e[5]*t[2],n[2]=e[6]*t[0]+e[7]*t[1]+e[8]*t[2]}function d(e){return e<=.0031308?h(0,1,12.92*e):e>=.99554525?1:h(0,1,1.055*e**(1/2.4)-.055)}function h(e,t,n){return Math.max(e,Math.min(t,n))}function p(e){return e<0?-p(-e):e>8?((e+16)/116)**3:e*c}function f(r,a,c,f,g,m){const y=h(0,1,a[c]*m),v=h(0,1,a[c+1]*m),_=h(0,1,a[c+2]*m),b=1===y?1:y**r.GR,x=1===v?1:v**r.GG,S=1===_?1:_**r.GB,w=r.MXA*b+r.MXB*x+r.MXC*S,E=r.MYA*b+r.MYB*x+r.MYC*S,P=r.MZA*b+r.MZB*x+r.MZC*S,C=s;C[0]=w,C[1]=E,C[2]=P;const A=l;!function(n,r,i){if(1===n[0]&&1===n[2])return i[0]=r[0],i[1]=r[1],void(i[2]=r[2]);const s=i;u(e,r,s);const a=o;!function(e,t,n){n[0]=1*t[0]/e[0],n[1]=1*t[1]/e[1],n[2]=1*t[2]/e[2]}(n,s,a),u(t,a,i)}(r.whitePoint,C,A);const k=s;!function(e,t,n){if(0===e[0]&&0===e[1]&&0===e[2])return n[0]=t[0],n[1]=t[1],void(n[2]=t[2]);const r=p(0),i=(1-r)/(1-p(e[0])),o=1-i,s=(1-r)/(1-p(e[1])),a=1-s,l=(1-r)/(1-p(e[2])),c=1-l;n[0]=t[0]*i+o,n[1]=t[1]*s+a,n[2]=t[2]*l+c}(r.blackPoint,A,k);const j=l;!function(n,r,i){const s=i;u(e,r,s);const a=o;!function(e,t,n){n[0]=.95047*t[0]/e[0],n[1]=1*t[1]/e[1],n[2]=1.08883*t[2]/e[2]}(n,s,a),u(t,a,i)}(i,k,j);const I=s;u(n,j,I),f[g]=255*d(I[0]),f[g+1]=255*d(I[1]),f[g+2]=255*d(I[2])}return class extends a{constructor(e,t,n,i){if(super("CalRGB",3),!e)throw new r.FormatError("WhitePoint missing - required for color space CalRGB");t=t||new Float32Array(3),n=n||new Float32Array([1,1,1]),i=i||new Float32Array([1,0,0,0,1,0,0,0,1]);const o=e[0],s=e[1],a=e[2];this.whitePoint=e;const l=t[0],c=t[1],u=t[2];if(this.blackPoint=t,this.GR=n[0],this.GG=n[1],this.GB=n[2],this.MXA=i[0],this.MYA=i[1],this.MZA=i[2],this.MXB=i[3],this.MYB=i[4],this.MZB=i[5],this.MXC=i[6],this.MYC=i[7],this.MZC=i[8],o<0||a<0||1!==s)throw new r.FormatError("Invalid WhitePoint components for ".concat(this.name)+", no fallback available");(l<0||c<0||u<0)&&((0,r.info)("Invalid BlackPoint for ".concat(this.name," [").concat(l,", ").concat(c,", ").concat(u,"], ")+"falling back to default."),this.blackPoint=new Float32Array(3)),(this.GR<0||this.GG<0||this.GB<0)&&((0,r.info)("Invalid Gamma [".concat(this.GR,", ").concat(this.GG,", ").concat(this.GB,"] for ")+"".concat(this.name,", falling back to default.")),this.GR=this.GG=this.GB=1)}getRgbItem(e,t,n,r){f(this,e,t,n,r,1)}getRgbBuffer(e,t,n,r,i,o,s){const a=1/((1<<o)-1);for(let l=0;l<n;++l)f(this,e,t,r,i,a),t+=3,i+=3+s}getOutputLength(e,t){return e*(3+t)/3|0}}}(),m=function(){function e(e){let t;return t=e>=6/29?e**3:108/841*(e-4/29),t}function t(e,t,n,r){return n+e*(r-n)/t}function n(n,r,i,o,s,a){let l=r[i],c=r[i+1],u=r[i+2];!1!==o&&(l=t(l,o,0,100),c=t(c,o,n.amin,n.amax),u=t(u,o,n.bmin,n.bmax)),c>n.amax?c=n.amax:c<n.amin&&(c=n.amin),u>n.bmax?u=n.bmax:u<n.bmin&&(u=n.bmin);const d=(l+16)/116,h=d+c/500,p=d-u/200,f=n.XW*e(h),g=n.YW*e(d),m=n.ZW*e(p);let y,v,_;n.ZW<1?(y=3.1339*f+-1.617*g+-.4906*m,v=-.9785*f+1.916*g+.0333*m,_=.072*f+-.229*g+1.4057*m):(y=3.2406*f+-1.5372*g+-.4986*m,v=-.9689*f+1.8758*g+.0415*m,_=.0557*f+-.204*g+1.057*m),s[a]=255*Math.sqrt(y),s[a+1]=255*Math.sqrt(v),s[a+2]=255*Math.sqrt(_)}return class extends a{constructor(e,t,n){if(super("Lab",3),!e)throw new r.FormatError("WhitePoint missing - required for color space Lab");if(t=t||[0,0,0],n=n||[-100,100,-100,100],this.XW=e[0],this.YW=e[1],this.ZW=e[2],this.amin=n[0],this.amax=n[1],this.bmin=n[2],this.bmax=n[3],this.XB=t[0],this.YB=t[1],this.ZB=t[2],this.XW<0||this.ZW<0||1!==this.YW)throw new r.FormatError("Invalid WhitePoint components, no fallback available");(this.XB<0||this.YB<0||this.ZB<0)&&((0,r.info)("Invalid BlackPoint, falling back to default"),this.XB=this.YB=this.ZB=0),(this.amin>this.amax||this.bmin>this.bmax)&&((0,r.info)("Invalid Range, falling back to defaults"),this.amin=-100,this.amax=100,this.bmin=-100,this.bmax=100)}getRgbItem(e,t,r,i){n(this,e,t,!1,r,i)}getRgbBuffer(e,t,r,i,o,s,a){const l=(1<<s)-1;for(let c=0;c<r;c++)n(this,e,t,l,i,o),t+=3,o+=3+a}getOutputLength(e,t){return e*(3+t)/3|0}isDefaultDecode(e,t){return!0}get usesZeroToOneRange(){return(0,r.shadow)(this,"usesZeroToOneRange",!1)}}}()},(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.PartialEvaluator=t.EvaluatorPreprocessor=void 0;var r=n(2),i=n(14),o=n(3),s=n(32),a=n(35),l=n(39),c=n(48),u=n(49),d=n(40),h=n(55),p=n(15),f=n(57),g=n(8),m=n(5),y=n(58),v=n(12),_=n(17),b=n(36),x=n(37),S=n(4),w=n(43),E=n(38),P=n(59),C=n(60),A=n(61);const k=Object.freeze({maxImageSize:-1,disableFontFace:!1,ignoreErrors:!1,isEvalSupported:!0,isOffscreenCanvasSupported:!0,fontExtraProperties:!1,useSystemFonts:!0,cMapUrl:null,standardFontDataUrl:null}),j=1,I=2,G=Promise.resolve();function T(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(Array.isArray(e)){for(const t of e){const e=T(t,!0);if(e)return e}return(0,r.warn)("Unsupported blend mode Array: ".concat(e)),"source-over"}if(!(e instanceof o.Name))return t?null:"source-over";switch(e.name){case"Normal":case"Compatible":return"source-over";case"Multiply":return"multiply";case"Screen":return"screen";case"Overlay":return"overlay";case"Darken":return"darken";case"Lighten":return"lighten";case"ColorDodge":return"color-dodge";case"ColorBurn":return"color-burn";case"HardLight":return"hard-light";case"SoftLight":return"soft-light";case"Difference":return"difference";case"Exclusion":return"exclusion";case"Hue":return"hue";case"Saturation":return"saturation";case"Color":return"color";case"Luminosity":return"luminosity"}return t?null:((0,r.warn)("Unsupported blend mode: ".concat(e.name)),"source-over")}function M(e){e.fn===r.OPS.paintImageMaskXObject&&e.args[0]&&e.args[0].count>0&&e.args[0].count++}class O{static get TIME_SLOT_DURATION_MS(){return(0,r.shadow)(this,"TIME_SLOT_DURATION_MS",20)}static get CHECK_TIME_EVERY(){return(0,r.shadow)(this,"CHECK_TIME_EVERY",100)}constructor(){this.reset()}check(){return!(++this.checked<O.CHECK_TIME_EVERY)&&(this.checked=0,this.endTime<=Date.now())}reset(){this.endTime=Date.now()+O.TIME_SLOT_DURATION_MS,this.checked=0}}class R{constructor(e){let{xref:t,handler:n,pageIndex:r,idFactory:i,fontCache:o,builtInCMapCache:s,standardFontDataCache:a,globalImageCache:l,options:c=null}=e;this.xref=t,this.handler=n,this.pageIndex=r,this.idFactory=i,this.fontCache=o,this.builtInCMapCache=s,this.standardFontDataCache=a,this.globalImageCache=l,this.options=c||k,this.parsingType3Font=!1,this._fetchBuiltInCMapBound=this.fetchBuiltInCMap.bind(this)}get _pdfFunctionFactory(){const e=new h.PDFFunctionFactory({xref:this.xref,isEvalSupported:this.options.isEvalSupported});return(0,r.shadow)(this,"_pdfFunctionFactory",e)}clone(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;const t=Object.create(this);return t.options=Object.assign(Object.create(null),this.options,e),t}hasBlendModes(e,t){if(!(e instanceof o.Dict))return!1;if(e.objId&&t.has(e.objId))return!1;const n=new o.RefSet(t);e.objId&&n.put(e.objId);const i=[e],s=this.xref;for(;i.length;){const e=i.shift(),t=e.get("ExtGState");if(t instanceof o.Dict)for(let i of t.getRawValues()){if(i instanceof o.Ref){if(n.has(i))continue;try{i=s.fetch(i)}catch(a){n.put(i),(0,r.info)('hasBlendModes - ignoring ExtGState: "'.concat(a,'".'));continue}}if(!(i instanceof o.Dict))continue;i.objId&&n.put(i.objId);const e=i.get("BM");if(e instanceof o.Name){if("Normal"!==e.name)return!0}else if(void 0!==e&&Array.isArray(e))for(const t of e)if(t instanceof o.Name&&"Normal"!==t.name)return!0}const l=e.get("XObject");if(l instanceof o.Dict)for(let c of l.getRawValues()){if(c instanceof o.Ref){if(n.has(c))continue;try{c=s.fetch(c)}catch(a){n.put(c),(0,r.info)('hasBlendModes - ignoring XObject: "'.concat(a,'".'));continue}}if(!(c instanceof m.BaseStream))continue;c.dict.objId&&n.put(c.dict.objId);const e=c.dict.get("Resources");e instanceof o.Dict&&(e.objId&&n.has(e.objId)||(i.push(e),e.objId&&n.put(e.objId)))}}for(const r of n)t.put(r);return!1}async fetchBuiltInCMap(e){const t=this.builtInCMapCache.get(e);if(t)return t;let n;if(null!==this.options.cMapUrl){const t="".concat(this.options.cMapUrl).concat(e,".bcmap"),i=await fetch(t);if(!i.ok)throw new Error('fetchBuiltInCMap: failed to fetch file "'.concat(t,'" with "').concat(i.statusText,'".'));n={cMapData:new Uint8Array(await i.arrayBuffer()),compressionType:r.CMapCompressionType.BINARY}}else n=await this.handler.sendWithPromise("FetchBuiltInCMap",{name:e});return n.compressionType!==r.CMapCompressionType.NONE&&this.builtInCMapCache.set(e,n),n}async fetchStandardFontData(e){const t=this.standardFontDataCache.get(e);if(t)return new g.Stream(t);if(this.options.useSystemFonts&&"Symbol"!==e&&"ZapfDingbats"!==e)return null;const n=(0,l.getFontNameToFileMap)()[e];let i;if(null!==this.options.standardFontDataUrl){const e="".concat(this.options.standardFontDataUrl).concat(n),t=await fetch(e);t.ok?i=await t.arrayBuffer():(0,r.warn)('fetchStandardFontData: failed to fetch file "'.concat(e,'" with "').concat(t.statusText,'".'))}else try{i=await this.handler.sendWithPromise("FetchStandardFontData",{filename:n})}catch(o){(0,r.warn)('fetchStandardFontData: failed to fetch file "'.concat(n,'" with "').concat(o,'".'))}return i?(this.standardFontDataCache.set(e,i),new g.Stream(i)):null}async buildFormXObject(e,t,n,i,s,a,l){const c=t.dict,u=c.getArray("Matrix");let d,h,p=c.getArray("BBox");p=Array.isArray(p)&&4===p.length?r.Util.normalizeRect(p):null,c.has("OC")&&(d=await this.parseMarkedContentProps(c.get("OC"),e)),void 0!==d&&i.addOp(r.OPS.beginMarkedContentProps,["OC",d]);const f=c.get("Group");if(f){h={matrix:u,bbox:p,smask:n,isolated:!1,knockout:!1};const t=f.get("S");let s=null;if((0,o.isName)(t,"Transparency")&&(h.isolated=f.get("I")||!1,h.knockout=f.get("K")||!1,f.has("CS"))){const t=f.getRaw("CS"),n=v.ColorSpace.getCached(t,this.xref,l);s=n||await this.parseColorSpace({cs:t,resources:e,localColorSpaceCache:l})}n&&n.backdrop&&(s=s||v.ColorSpace.singletons.rgb,n.backdrop=s.getRgb(n.backdrop,0)),i.addOp(r.OPS.beginGroup,[h])}const g=f?[u,null]:[u,p];return i.addOp(r.OPS.paintFormXObjectBegin,g),this.getOperatorList({stream:t,task:s,resources:c.get("Resources")||e,operatorList:i,initialState:a}).then((function(){i.addOp(r.OPS.paintFormXObjectEnd,[]),f&&i.addOp(r.OPS.endGroup,[h]),void 0!==d&&i.addOp(r.OPS.endMarkedContent,[])}))}_sendImgData(e,t){let n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];const r=t?[t.bitmap||t.data.buffer]:null;return this.parsingType3Font||n?this.handler.send("commonobj",[e,"Image",t],r):this.handler.send("obj",[e,this.pageIndex,"Image",t],r)}async buildPaintImageXObject(e){let{resources:t,image:n,isInline:i=!1,operatorList:o,cacheKey:s,localImageCache:a,localColorSpaceCache:l}=e;const c=n.dict,u=c.objId,d=c.get("W","Width"),h=c.get("H","Height");if(!d||"number"!==typeof d||!h||"number"!==typeof h)return void(0,r.warn)("Image dimensions are missing, or not numbers.");const p=this.options.maxImageSize;if(-1!==p&&d*h>p){const e="Image exceeded maximum allowed size and was removed.";if(this.options.ignoreErrors)return void(0,r.warn)(e);throw new Error(e)}let f,g,m;if(c.has("OC")&&(f=await this.parseMarkedContentProps(c.get("OC"),t)),c.get("IM","ImageMask")){const e=c.get("I","Interpolate"),t=d+7>>3,i=n.getBytes(t*h),l=c.getArray("D","Decode");if(this.parsingType3Font)return g=A.PDFImage.createRawMask({imgArray:i,width:d,height:h,imageIsFromDecodeStream:n instanceof _.DecodeStream,inverseDecode:!!l&&l[0]>0,interpolate:e}),g.cached=!!s,m=[g],o.addImageOps(r.OPS.paintImageMaskXObject,m,f),void(s&&a.set(s,u,{fn:r.OPS.paintImageMaskXObject,args:m,optionalContent:f}));if(g=A.PDFImage.createMask({imgArray:i,width:d,height:h,imageIsFromDecodeStream:n instanceof _.DecodeStream,inverseDecode:!!l&&l[0]>0,interpolate:e,isOffscreenCanvasSupported:this.options.isOffscreenCanvasSupported}),g.isSingleOpaquePixel)return o.addImageOps(r.OPS.paintSolidColorImageMask,[],f),void(s&&a.set(s,u,{fn:r.OPS.paintSolidColorImageMask,args:[],optionalContent:f}));const p="mask_".concat(this.idFactory.createObjId());return o.addDependency(p),this._sendImgData(p,g),m=[{data:p,width:g.width,height:g.height,interpolate:g.interpolate,count:1}],o.addImageOps(r.OPS.paintImageMaskXObject,m,f),void(s&&a.set(s,u,{fn:r.OPS.paintImageMaskXObject,args:m,optionalContent:f}))}const y=c.get("SM","SMask")||!1,v=c.get("Mask")||!1;if(i&&!y&&!v&&d+h<200){const e=new A.PDFImage({xref:this.xref,res:t,image:n,isInline:i,pdfFunctionFactory:this._pdfFunctionFactory,localColorSpaceCache:l});return g=e.createImageData(!0),void o.addImageOps(r.OPS.paintInlineImageXObject,[g],f)}let b="img_".concat(this.idFactory.createObjId()),x=!1;this.parsingType3Font?b="".concat(this.idFactory.getDocId(),"_type3_").concat(b):u&&(x=this.globalImageCache.shouldCache(u,this.pageIndex),x&&(b="".concat(this.idFactory.getDocId(),"_").concat(b))),o.addDependency(b),m=[b,d,h],A.PDFImage.buildImage({xref:this.xref,res:t,image:n,isInline:i,pdfFunctionFactory:this._pdfFunctionFactory,localColorSpaceCache:l}).then((e=>(g=e.createImageData(!1),s&&u&&x&&this.globalImageCache.addByteSize(u,g.data.length),this._sendImgData(b,g,x)))).catch((e=>((0,r.warn)('Unable to decode image "'.concat(b,'": "').concat(e,'".')),this._sendImgData(b,null,x)))),o.addImageOps(r.OPS.paintImageXObject,m,f),s&&(a.set(s,u,{fn:r.OPS.paintImageXObject,args:m,optionalContent:f}),u&&((0,r.assert)(!i,"Cannot cache an inline image globally."),this.globalImageCache.addPageIndex(u,this.pageIndex),x&&this.globalImageCache.setData(u,{objId:b,fn:r.OPS.paintImageXObject,args:m,optionalContent:f,byteSize:0})))}handleSMask(e,t,n,r,i,o){const s=e.get("G"),a={subtype:e.get("S").name,backdrop:e.get("BC")},l=e.get("TR");if((0,h.isPDFFunction)(l)){const e=this._pdfFunctionFactory.create(l),t=new Uint8Array(256),n=new Float32Array(1);for(let r=0;r<256;r++)n[0]=r/255,e(n,0,n,0),t[r]=255*n[0]|0;a.transferMap=t}return this.buildFormXObject(t,s,a,n,r,i.state.clone(),o)}handleTransferFunction(e){let t;if(Array.isArray(e))t=e;else{if(!(0,h.isPDFFunction)(e))return null;t=[e]}const n=[];let r=0,i=0;for(const s of t){const e=this.xref.fetchIfRef(s);if(r++,(0,o.isName)(e,"Identity")){n.push(null);continue}if(!(0,h.isPDFFunction)(e))return null;const t=this._pdfFunctionFactory.create(e),a=new Uint8Array(256),l=new Float32Array(1);for(let n=0;n<256;n++)l[0]=n/255,t(l,0,l,0),a[n]=255*l[0]|0;n.push(a),i++}return 1!==r&&4!==r||0===i?null:n}handleTilingType(e,t,n,i,s,a,l,u){const d=new C.OperatorList,h=o.Dict.merge({xref:this.xref,dictArray:[s.get("Resources"),n]});return this.getOperatorList({stream:i,task:l,resources:h,operatorList:d}).then((function(){const n=d.getIR(),r=(0,c.getTilingPatternIR)(n,s,t);a.addDependencies(d.dependencies),a.addOp(e,r),s.objId&&u.set(null,s.objId,{operatorListIR:n,dict:s})})).catch((e=>{if(!(e instanceof r.AbortException)){if(this.options.ignoreErrors)return this.handler.send("UnsupportedFeature",{featureId:r.UNSUPPORTED_FEATURES.errorTilingPattern}),void(0,r.warn)('handleTilingType - ignoring pattern: "'.concat(e,'".'));throw e}}))}handleSetFont(e,t,n,i,a,l){let c=arguments.length>6&&void 0!==arguments[6]?arguments[6]:null,u=arguments.length>7&&void 0!==arguments[7]?arguments[7]:null;const d=t&&t[0]instanceof o.Name?t[0].name:null;return this.loadFont(d,n,e,c,u).then((t=>t.font.isType3Font?t.loadType3Data(this,e,a).then((function(){return i.addDependencies(t.type3Dependencies),t})).catch((e=>(this.handler.send("UnsupportedFeature",{featureId:r.UNSUPPORTED_FEATURES.errorFontLoadType3}),new D({loadedName:"g_font_error",font:new s.ErrorFont("Type3 font load error: ".concat(e)),dict:t.font,evaluatorOptions:this.options})))):t)).then((e=>(l.font=e.font,e.send(this.handler),e.loadedName)))}handleText(e,t){const n=t.font,i=n.charsToGlyphs(e);return n.data&&(t.textRenderingMode&r.TextRenderingMode.ADD_TO_PATH_FLAG||"Pattern"===t.fillColorSpace.name||n.disableFontFace||this.options.disableFontFace)&&R.buildFontPaths(n,i,this.handler,this.options),i}ensureStateFont(e){if(e.font)return;const t=new r.FormatError("Missing setFont (Tf) operator before text rendering operator.");if(this.options.ignoreErrors)return this.handler.send("UnsupportedFeature",{featureId:r.UNSUPPORTED_FEATURES.errorFontState}),void(0,r.warn)('ensureStateFont: "'.concat(t,'".'));throw t}async setGState(e){let{resources:t,gState:n,operatorList:i,cacheKey:s,task:a,stateManager:l,localGStateCache:c,localColorSpaceCache:u}=e;const d=n.objId;let h=!0;const p=[];let f=Promise.resolve();for(const g of n.getKeys()){const e=n.get(g);switch(g){case"Type":break;case"LW":case"LC":case"LJ":case"ML":case"D":case"RI":case"FL":case"CA":case"ca":p.push([g,e]);break;case"Font":h=!1,f=f.then((()=>this.handleSetFont(t,null,e[0],i,a,l.state).then((function(t){i.addDependency(t),p.push([g,[t,e[1]]])}))));break;case"BM":p.push([g,T(e)]);break;case"SMask":if((0,o.isName)(e,"None")){p.push([g,!1]);break}e instanceof o.Dict?(h=!1,f=f.then((()=>this.handleSMask(e,t,i,a,l,u))),p.push([g,!0])):(0,r.warn)("Unsupported SMask type");break;case"TR":const n=this.handleTransferFunction(e);p.push([g,n]);break;case"OP":case"op":case"OPM":case"BG":case"BG2":case"UCR":case"UCR2":case"TR2":case"HT":case"SM":case"SA":case"AIS":case"TK":(0,r.info)("graphic state operator "+g);break;default:(0,r.info)("Unknown graphic state operator "+g)}}return f.then((function(){p.length>0&&i.addOp(r.OPS.setGState,[p]),h&&c.set(s,d,p)}))}loadFont(e,t,n){let i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null,a=arguments.length>4&&void 0!==arguments[4]?arguments[4]:null;const l=async()=>new D({loadedName:"g_font_error",font:new s.ErrorFont('Font "'.concat(e,'" is not available.')),dict:t,evaluatorOptions:this.options}),c=this.xref;let u;if(t)t instanceof o.Ref&&(u=t);else{const t=n.get("Font");t&&(u=t.getRaw(e))}if(!u){const n='Font "'.concat(e||t&&t.toString(),'" is not available');if(!this.options.ignoreErrors&&!this.parsingType3Font)return(0,r.warn)("".concat(n,".")),l();this.handler.send("UnsupportedFeature",{featureId:r.UNSUPPORTED_FEATURES.errorFontMissing}),(0,r.warn)("".concat(n," -- attempting to fallback to a default font.")),u=i||R.fallbackFontDict}if(this.parsingType3Font&&this.type3FontRefs.has(u))return l();if(this.fontCache.has(u))return this.fontCache.get(u);if(!((t=c.fetchIfRef(u))instanceof o.Dict))return l();if(t.cacheKey&&this.fontCache.has(t.cacheKey))return this.fontCache.get(t.cacheKey);const d=(0,r.createPromiseCapability)();let h;try{h=this.preEvaluateFont(t),h.cssFontInfo=a}catch(y){return(0,r.warn)('loadFont - preEvaluateFont failed: "'.concat(y,'".')),l()}const{descriptor:p,hash:f}=h,g=u instanceof o.Ref;let m;if(g&&(m="f".concat(u.toString())),f&&p instanceof o.Dict){p.fontAliases||(p.fontAliases=Object.create(null));const e=p.fontAliases;if(e[f]){const t=e[f].aliasRef;if(g&&t&&this.fontCache.has(t))return this.fontCache.putAlias(u,t),this.fontCache.get(u)}else e[f]={fontID:this.idFactory.createFontId()};g&&(e[f].aliasRef=u),m=e[f].fontID}return g?this.fontCache.put(u,d.promise):(m||(m=this.idFactory.createFontId()),t.cacheKey="cacheKey_".concat(m),this.fontCache.put(t.cacheKey,d.promise)),(0,r.assert)(m&&m.startsWith("f"),'The "fontID" must be (correctly) defined.'),t.loadedName="".concat(this.idFactory.getDocId(),"_").concat(m),this.translateFont(h).then((e=>{d.resolve(new D({loadedName:t.loadedName,font:e,dict:t,evaluatorOptions:this.options}))})).catch((e=>{this.handler.send("UnsupportedFeature",{featureId:r.UNSUPPORTED_FEATURES.errorFontTranslate}),(0,r.warn)('loadFont - translateFont failed: "'.concat(e,'".')),d.resolve(new D({loadedName:t.loadedName,font:new s.ErrorFont(e instanceof Error?e.message:e),dict:t,evaluatorOptions:this.options}))})),d.promise}buildPath(e,t,n){let i=arguments.length>3&&void 0!==arguments[3]&&arguments[3];const o=e.length-1;if(n||(n=[]),o<0||e.fnArray[o]!==r.OPS.constructPath){let o;switch(i&&((0,r.warn)('Encountered path operator "'.concat(t,'" inside of a text object.')),e.addOp(r.OPS.save,null)),t){case r.OPS.rectangle:const e=n[0]+n[2],t=n[1]+n[3];o=[Math.min(n[0],e),Math.max(n[0],e),Math.min(n[1],t),Math.max(n[1],t)];break;case r.OPS.moveTo:case r.OPS.lineTo:o=[n[0],n[0],n[1],n[1]];break;default:o=[1/0,-1/0,1/0,-1/0]}e.addOp(r.OPS.constructPath,[[t],n,o]),i&&e.addOp(r.OPS.restore,null)}else{const i=e.argsArray[o];i[0].push(t),i[1].push(...n);const s=i[2];switch(t){case r.OPS.rectangle:const e=n[0]+n[2],t=n[1]+n[3];s[0]=Math.min(s[0],n[0],e),s[1]=Math.max(s[1],n[0],e),s[2]=Math.min(s[2],n[1],t),s[3]=Math.max(s[3],n[1],t);break;case r.OPS.moveTo:case r.OPS.lineTo:s[0]=Math.min(s[0],n[0]),s[1]=Math.max(s[1],n[0]),s[2]=Math.min(s[2],n[1]),s[3]=Math.max(s[3],n[1])}}}parseColorSpace(e){let{cs:t,resources:n,localColorSpaceCache:i}=e;return v.ColorSpace.parseAsync({cs:t,xref:this.xref,resources:n,pdfFunctionFactory:this._pdfFunctionFactory,localColorSpaceCache:i}).catch((e=>{if(e instanceof r.AbortException)return null;if(this.options.ignoreErrors)return this.handler.send("UnsupportedFeature",{featureId:r.UNSUPPORTED_FEATURES.errorColorSpace}),(0,r.warn)('parseColorSpace - ignoring ColorSpace: "'.concat(e,'".')),null;throw e}))}parseShading(e){let{shading:t,resources:n,localColorSpaceCache:r,localShadingPatternCache:i}=e,o=i.get(t);if(!o){const e=c.Pattern.parseShading(t,this.xref,n,this.handler,this._pdfFunctionFactory,r).getIR();o="pattern_".concat(this.idFactory.createObjId()),i.set(t,o),this.handler.send("obj",[o,this.pageIndex,"Pattern",e])}return o}handleColorN(e,t,n,i,s,a,l,u,d,h){const p=n.pop();if(p instanceof o.Name){const g=s.getRaw(p.name),y=g instanceof o.Ref&&d.getByRef(g);if(y)try{const r=i.base?i.base.getRgb(n,0):null,o=(0,c.getTilingPatternIR)(y.operatorListIR,y.dict,r);return void e.addOp(t,o)}catch(f){}const v=this.xref.fetchIfRef(g);if(v){const o=v instanceof m.BaseStream?v.dict:v,s=o.get("PatternType");if(s===j){const r=i.base?i.base.getRgb(n,0):null;return this.handleTilingType(t,r,a,v,o,e,l,d)}if(s===I){const n=o.get("Shading"),r=o.getArray("Matrix"),i=this.parseShading({shading:n,resources:a,localColorSpaceCache:u,localShadingPatternCache:h});return void e.addOp(t,["Shading",i,r])}throw new r.FormatError("Unknown PatternType: ".concat(s))}}throw new r.FormatError("Unknown PatternName: ".concat(p))}_parseVisibilityExpression(e,t,n){if(++t>10)return void(0,r.warn)("Visibility expression is too deeply nested");const i=e.length,s=this.xref.fetchIfRef(e[0]);if(!(i<2)&&s instanceof o.Name){switch(s.name){case"And":case"Or":case"Not":n.push(s.name);break;default:return void(0,r.warn)("Invalid operator ".concat(s.name," in visibility expression"))}for(let r=1;r<i;r++){const i=e[r],s=this.xref.fetchIfRef(i);if(Array.isArray(s)){const e=[];n.push(e),this._parseVisibilityExpression(s,t,e)}else i instanceof o.Ref&&n.push(i.toString())}}else(0,r.warn)("Invalid visibility expression")}async parseMarkedContentProps(e,t){let n;if(e instanceof o.Name)n=t.get("Properties").get(e.name);else{if(!(e instanceof o.Dict))throw new r.FormatError("Optional content properties malformed.");n=e}const i=n.get("Type").name;if("OCG"===i)return{type:i,id:n.objId};if("OCMD"===i){const e=n.get("VE");if(Array.isArray(e)){const t=[];if(this._parseVisibilityExpression(e,0,t),t.length>0)return{type:"OCMD",expression:t}}const t=n.get("OCGs");if(Array.isArray(t)||t instanceof o.Dict){const e=[];if(Array.isArray(t))for(const n of t)e.push(n.toString());else e.push(t.objId);return{type:i,ids:e,policy:n.get("P")instanceof o.Name?n.get("P").name:null,expression:null}}if(t instanceof o.Ref)return{type:i,id:t.toString()}}return null}getOperatorList(e){let{stream:t,task:n,resources:i,operatorList:s,initialState:a=null,fallbackFontDict:l=null}=e;if(i=i||o.Dict.empty,a=a||new V,!s)throw new Error('getOperatorList: missing "operatorList" parameter');const c=this,u=this.xref;let d=!1;const h=new f.LocalImageCache,p=new f.LocalColorSpaceCache,g=new f.LocalGStateCache,y=new f.LocalTilingPatternCache,_=new Map,b=i.get("XObject")||o.Dict.empty,x=i.get("Pattern")||o.Dict.empty,S=new N(a),w=new F(t,u,S),E=new O;function P(e){for(let t=0,n=w.savedStatesDepth;t<n;t++)s.addOp(r.OPS.restore,[])}return new Promise((function e(t,a){const f=function(n){Promise.all([n,s.ready]).then((function(){try{e(t,a)}catch(n){a(n)}}),a)};n.ensureNotTerminated(),E.reset();const C={};let A,k,j,I,T,O;for(;!(A=E.check())&&(C.args=null,w.read(C));){let e=C.args,t=C.fn;switch(0|t){case r.OPS.paintXObject:if(O=e[0]instanceof o.Name,T=e[0].name,O){const t=h.getByName(T);if(t){s.addImageOps(t.fn,t.args,t.optionalContent),M(t),e=null;continue}}return void f(new Promise((function(e,t){if(!O)throw new r.FormatError("XObject must be referred to by name.");let a=b.getRaw(T);if(a instanceof o.Ref){const t=h.getByRef(a);if(t)return s.addImageOps(t.fn,t.args,t.optionalContent),M(t),void e();const n=c.globalImageCache.getData(a,c.pageIndex);if(n)return s.addDependency(n.objId),s.addImageOps(n.fn,n.args,n.optionalContent),void e();a=u.fetch(a)}if(!(a instanceof m.BaseStream))throw new r.FormatError("XObject should be a stream");const l=a.dict.get("Subtype");if(!(l instanceof o.Name))throw new r.FormatError("XObject should have a Name subtype");if("Form"===l.name)return S.save(),void c.buildFormXObject(i,a,null,s,n,S.state.clone(),p).then((function(){S.restore(),e()}),t);if("Image"!==l.name){if("PS"!==l.name)throw new r.FormatError("Unhandled XObject subtype ".concat(l.name));(0,r.info)("Ignored XObject subtype PS"),e()}else c.buildPaintImageXObject({resources:i,image:a,operatorList:s,cacheKey:T,localImageCache:h,localColorSpaceCache:p}).then(e,t)})).catch((function(e){if(!(e instanceof r.AbortException)){if(c.options.ignoreErrors)return c.handler.send("UnsupportedFeature",{featureId:r.UNSUPPORTED_FEATURES.errorXObject}),void(0,r.warn)('getOperatorList - ignoring XObject: "'.concat(e,'".'));throw e}})));case r.OPS.setFont:var R=e[1];return void f(c.handleSetFont(i,e,null,s,n,S.state,l).then((function(e){s.addDependency(e),s.addOp(r.OPS.setFont,[e,R])})));case r.OPS.beginText:d=!0;break;case r.OPS.endText:d=!1;break;case r.OPS.endInlineImage:var D=e[0].cacheKey;if(D){const t=h.getByName(D);if(t){s.addImageOps(t.fn,t.args,t.optionalContent),M(t),e=null;continue}}return void f(c.buildPaintImageXObject({resources:i,image:e[0],isInline:!0,operatorList:s,cacheKey:D,localImageCache:h,localColorSpaceCache:p}));case r.OPS.showText:if(!S.state.font){c.ensureStateFont(S.state);continue}e[0]=c.handleText(e[0],S.state);break;case r.OPS.showSpacedText:if(!S.state.font){c.ensureStateFont(S.state);continue}var N=[],L=S.state;for(const t of e[0])"string"===typeof t?N.push(...c.handleText(t,L)):"number"===typeof t&&N.push(t);e[0]=N,t=r.OPS.showText;break;case r.OPS.nextLineShowText:if(!S.state.font){c.ensureStateFont(S.state);continue}s.addOp(r.OPS.nextLine),e[0]=c.handleText(e[0],S.state),t=r.OPS.showText;break;case r.OPS.nextLineSetSpacingShowText:if(!S.state.font){c.ensureStateFont(S.state);continue}s.addOp(r.OPS.nextLine),s.addOp(r.OPS.setWordSpacing,[e.shift()]),s.addOp(r.OPS.setCharSpacing,[e.shift()]),e[0]=c.handleText(e[0],S.state),t=r.OPS.showText;break;case r.OPS.setTextRenderingMode:S.state.textRenderingMode=e[0];break;case r.OPS.setFillColorSpace:{const t=v.ColorSpace.getCached(e[0],u,p);if(t){S.state.fillColorSpace=t;continue}return void f(c.parseColorSpace({cs:e[0],resources:i,localColorSpaceCache:p}).then((function(e){e&&(S.state.fillColorSpace=e)})))}case r.OPS.setStrokeColorSpace:{const t=v.ColorSpace.getCached(e[0],u,p);if(t){S.state.strokeColorSpace=t;continue}return void f(c.parseColorSpace({cs:e[0],resources:i,localColorSpaceCache:p}).then((function(e){e&&(S.state.strokeColorSpace=e)})))}case r.OPS.setFillColor:I=S.state.fillColorSpace,e=I.getRgb(e,0),t=r.OPS.setFillRGBColor;break;case r.OPS.setStrokeColor:I=S.state.strokeColorSpace,e=I.getRgb(e,0),t=r.OPS.setStrokeRGBColor;break;case r.OPS.setFillGray:S.state.fillColorSpace=v.ColorSpace.singletons.gray,e=v.ColorSpace.singletons.gray.getRgb(e,0),t=r.OPS.setFillRGBColor;break;case r.OPS.setStrokeGray:S.state.strokeColorSpace=v.ColorSpace.singletons.gray,e=v.ColorSpace.singletons.gray.getRgb(e,0),t=r.OPS.setStrokeRGBColor;break;case r.OPS.setFillCMYKColor:S.state.fillColorSpace=v.ColorSpace.singletons.cmyk,e=v.ColorSpace.singletons.cmyk.getRgb(e,0),t=r.OPS.setFillRGBColor;break;case r.OPS.setStrokeCMYKColor:S.state.strokeColorSpace=v.ColorSpace.singletons.cmyk,e=v.ColorSpace.singletons.cmyk.getRgb(e,0),t=r.OPS.setStrokeRGBColor;break;case r.OPS.setFillRGBColor:S.state.fillColorSpace=v.ColorSpace.singletons.rgb,e=v.ColorSpace.singletons.rgb.getRgb(e,0);break;case r.OPS.setStrokeRGBColor:S.state.strokeColorSpace=v.ColorSpace.singletons.rgb,e=v.ColorSpace.singletons.rgb.getRgb(e,0);break;case r.OPS.setFillColorN:if(I=S.state.fillColorSpace,"Pattern"===I.name)return void f(c.handleColorN(s,r.OPS.setFillColorN,e,I,x,i,n,p,y,_));e=I.getRgb(e,0),t=r.OPS.setFillRGBColor;break;case r.OPS.setStrokeColorN:if(I=S.state.strokeColorSpace,"Pattern"===I.name)return void f(c.handleColorN(s,r.OPS.setStrokeColorN,e,I,x,i,n,p,y,_));e=I.getRgb(e,0),t=r.OPS.setStrokeRGBColor;break;case r.OPS.shadingFill:var V=i.get("Shading");if(!V)throw new r.FormatError("No shading resource found");var F=V.get(e[0].name);if(!F)throw new r.FormatError("No shading object found");e=[c.parseShading({shading:F,resources:i,localColorSpaceCache:p,localShadingPatternCache:_})],t=r.OPS.shadingFill;break;case r.OPS.setGState:if(O=e[0]instanceof o.Name,T=e[0].name,O){const t=g.getByName(T);if(t){t.length>0&&s.addOp(r.OPS.setGState,[t]),e=null;continue}}return void f(new Promise((function(e,t){if(!O)throw new r.FormatError("GState must be referred to by name.");const a=i.get("ExtGState");if(!(a instanceof o.Dict))throw new r.FormatError("ExtGState should be a dictionary.");const l=a.get(T);if(!(l instanceof o.Dict))throw new r.FormatError("GState should be a dictionary.");c.setGState({resources:i,gState:l,operatorList:s,cacheKey:T,task:n,stateManager:S,localGStateCache:g,localColorSpaceCache:p}).then(e,t)})).catch((function(e){if(!(e instanceof r.AbortException)){if(c.options.ignoreErrors)return c.handler.send("UnsupportedFeature",{featureId:r.UNSUPPORTED_FEATURES.errorExtGState}),void(0,r.warn)('getOperatorList - ignoring ExtGState: "'.concat(e,'".'));throw e}})));case r.OPS.moveTo:case r.OPS.lineTo:case r.OPS.curveTo:case r.OPS.curveTo2:case r.OPS.curveTo3:case r.OPS.closePath:case r.OPS.rectangle:c.buildPath(s,t,e,d);continue;case r.OPS.markPoint:case r.OPS.markPointProps:case r.OPS.beginCompat:case r.OPS.endCompat:continue;case r.OPS.beginMarkedContentProps:if(!(e[0]instanceof o.Name)){(0,r.warn)("Expected name for beginMarkedContentProps arg0=".concat(e[0]));continue}if("OC"===e[0].name)return void f(c.parseMarkedContentProps(e[1],i).then((e=>{s.addOp(r.OPS.beginMarkedContentProps,["OC",e])})).catch((e=>{if(!(e instanceof r.AbortException)){if(c.options.ignoreErrors)return c.handler.send("UnsupportedFeature",{featureId:r.UNSUPPORTED_FEATURES.errorMarkedContent}),void(0,r.warn)('getOperatorList - ignoring beginMarkedContentProps: "'.concat(e,'".'));throw e}})));e=[e[0].name,e[1]instanceof o.Dict?e[1].get("MCID"):null];break;case r.OPS.beginMarkedContent:case r.OPS.endMarkedContent:default:if(null!==e){for(k=0,j=e.length;k<j&&!(e[k]instanceof o.Dict);k++);if(k<j){(0,r.warn)("getOperatorList - ignoring operator: "+t);continue}}}s.addOp(t,e)}A?f(G):(P(),t())})).catch((e=>{if(!(e instanceof r.AbortException)){if(this.options.ignoreErrors)return this.handler.send("UnsupportedFeature",{featureId:r.UNSUPPORTED_FEATURES.errorOperatorList}),(0,r.warn)('getOperatorList - ignoring errors during "'.concat(n.name,'" ')+'task: "'.concat(e,'".')),void P();throw e}}))}getTextContent(e){let{stream:t,task:n,resources:i,stateManager:s=null,combineTextItems:a=!1,includeMarkedContent:l=!1,sink:c,seenStyles:u=new Set,viewBox:d,markedContentData:h=null}=e;i=i||o.Dict.empty,s=s||new N(new L),l&&(h=h||{level:0});const p={items:[],styles:Object.create(null)},g={initialized:!1,str:[],totalWidth:0,totalHeight:0,width:0,height:0,vertical:!1,prevTransform:null,textAdvanceScale:0,spaceInFlowMin:0,spaceInFlowMax:0,trackingSpaceMin:1/0,negativeSpaceMax:-1/0,notASpace:-1/0,transform:null,fontName:null,hasEOL:!1},v=[" "," "];let _=0;function b(e){const t=(_+1)%2,n=" "!==v[_]&&" "===v[t];return v[_]=e,_=t,n}function x(){v[0]=v[1]=" ",_=0}const S=this,w=this.xref,E=[];let P=null;const C=new f.LocalImageCache,A=new f.LocalGStateCache,k=new F(t,w,s);let j;function I(){const e=j.font,t=[j.fontSize*j.textHScale,0,0,j.fontSize,0,j.textRise];if(e.isType3Font&&(j.fontSize<=1||e.isCharBBox)&&!(0,r.isArrayEqual)(j.fontMatrix,r.FONT_IDENTITY_MATRIX)){const n=e.bbox[3]-e.bbox[1];n>0&&(t[3]*=n*j.fontMatrix[3])}return r.Util.transform(j.ctm,r.Util.transform(j.textMatrix,t))}function T(){if(g.initialized)return g;const{font:e,loadedName:t}=j;u.has(t)||(u.add(t),p.styles[t]={fontFamily:e.fallbackName,ascent:e.ascent,descent:e.descent,vertical:e.vertical}),g.fontName=t;const n=g.transform=I();e.vertical?(g.width=g.totalWidth=Math.hypot(n[0],n[1]),g.height=g.totalHeight=0,g.vertical=!0):(g.width=g.totalWidth=0,g.height=g.totalHeight=Math.hypot(n[2],n[3]),g.vertical=!1);const r=Math.hypot(j.textLineMatrix[0],j.textLineMatrix[1]),i=Math.hypot(j.ctm[0],j.ctm[1]);return g.textAdvanceScale=i*r,g.trackingSpaceMin=.1*j.fontSize,g.notASpace=.03*j.fontSize,g.negativeSpaceMax=-.2*j.fontSize,g.spaceInFlowMin=.1*j.fontSize,g.spaceInFlowMax=.6*j.fontSize,g.hasEOL=!1,g.initialized=!0,g}function M(){if(!g.initialized)return;const e=Math.hypot(j.textLineMatrix[0],j.textLineMatrix[1]),t=Math.hypot(j.ctm[0],j.ctm[1])*e;t!==g.textAdvanceScale&&(g.vertical?(g.totalHeight+=g.height*g.textAdvanceScale,g.height=0):(g.totalWidth+=g.width*g.textAdvanceScale,g.width=0),g.textAdvanceScale=t)}function R(e,t){return S.loadFont(e,t,i).then((function(e){return e.font.isType3Font?e.loadType3Data(S,i,n).catch((function(){})).then((function(){return e})):e})).then((function(e){j.loadedName=e.loadedName,j.font=e.font,j.fontMatrix=e.font.fontMatrix||r.FONT_IDENTITY_MATRIX}))}function D(e,t,n){const r=Math.hypot(n[0],n[1]);return[(n[0]*e+n[1]*t)/r,(n[2]*e+n[3]*t)/r]}function V(){const e=I();let t=e[4],n=e[5];const r=t-d[0],i=n-d[1];if(r<0||r>d[2]||i<0||i>d[3])return!1;if(!a||!j.font||!g.prevTransform)return!0;let o=g.prevTransform[4],s=g.prevTransform[5];if(o===t&&s===n)return!0;let l=-1;switch(e[0]&&0===e[1]&&0===e[2]?l=e[0]>0?0:180:e[1]&&0===e[0]&&0===e[3]&&(l=e[1]>0?90:270),l){case 0:break;case 90:[t,n]=[n,t],[o,s]=[s,o];break;case 180:[t,n,o,s]=[-t,-n,-o,-s];break;case 270:[t,n]=[-n,-t],[o,s]=[-s,-o];break;default:[t,n]=D(t,n,e),[o,s]=D(o,s,g.prevTransform)}if(j.font.vertical){const e=(s-n)/g.textAdvanceScale,r=t-o,i=Math.sign(g.height);return e<i*g.negativeSpaceMax?Math.abs(r)>.5*g.width?(B(),!0):(x(),W(),!0):Math.abs(r)>g.width?(B(),!0):(e<=i*g.notASpace&&x(),e<=i*g.trackingSpaceMin?g.height+=e:U(e,g.prevTransform,i)||(0===g.str.length?(x(),p.items.push({str:" ",dir:"ltr",width:0,height:Math.abs(e),transform:g.prevTransform,fontName:g.fontName,hasEOL:!1})):g.height+=e),!0)}const c=(t-o)/g.textAdvanceScale,u=n-s,h=Math.sign(g.width);return c<h*g.negativeSpaceMax?Math.abs(u)>.5*g.height?(B(),!0):(x(),W(),!0):Math.abs(u)>g.height?(B(),!0):(c<=h*g.notASpace&&x(),c<=h*g.trackingSpaceMin?g.width+=c:U(c,g.prevTransform,h)||(0===g.str.length?(x(),p.items.push({str:" ",dir:"ltr",width:Math.abs(c),height:0,transform:g.prevTransform,fontName:g.fontName,hasEOL:!1})):g.width+=c),!0)}function z(e){let{chars:t,extraSpacing:n}=e;const r=j.font;if(!t){const e=j.charSpacing+n;return void(e&&(r.vertical?j.translateTextMatrix(0,-e):j.translateTextMatrix(e*j.textHScale,0)))}const i=r.charsToGlyphs(t),o=j.fontMatrix[0]*j.fontSize;for(let s=0,a=i.length;s<a;s++){const e=i[s],{category:t}=e;if(t.isInvisibleFormatMark)continue;let l=j.charSpacing+(s+1===a?n:0),c=e.width;r.vertical&&(c=e.vmetric?e.vmetric[0]:-c);let u=c*o;if(t.isWhitespace){r.vertical?(l+=-u+j.wordSpacing,j.translateTextMatrix(0,-l)):(l+=u+j.wordSpacing,j.translateTextMatrix(l*j.textHScale,0)),b(" ");continue}if(!V())continue;const d=T();t.isZeroWidthDiacritic&&(u=0),r.vertical?(j.translateTextMatrix(0,u),u=Math.abs(u),d.height+=u):(u*=j.textHScale,j.translateTextMatrix(u,0),d.width+=u),u&&(d.prevTransform=I());const h=e.normalizedUnicode;b(h)&&d.str.push(" "),d.str.push(h),l&&(r.vertical?j.translateTextMatrix(0,-l):j.translateTextMatrix(l*j.textHScale,0))}}function B(){x(),g.initialized?(g.hasEOL=!0,W()):p.items.push({str:"",dir:"ltr",width:0,height:0,transform:I(),fontName:j.loadedName,hasEOL:!0})}function U(e,t,n){if(n*g.spaceInFlowMin<=e&&e<=n*g.spaceInFlowMax)return g.initialized&&(x(),g.str.push(" ")),!1;const r=g.fontName;let i=0;return g.vertical&&(i=e,e=0),W(),x(),p.items.push({str:" ",dir:"ltr",width:Math.abs(e),height:Math.abs(i),transform:t||I(),fontName:r,hasEOL:!1}),!0}function W(){g.initialized&&g.str&&(g.vertical?g.totalHeight+=g.height*g.textAdvanceScale:g.totalWidth+=g.width*g.textAdvanceScale,p.items.push(function(e){const t=e.str.join(""),n=(0,y.bidi)(t,-1,e.vertical);return{str:n.str,dir:n.dir,width:Math.abs(e.totalWidth),height:Math.abs(e.totalHeight),transform:e.transform,fontName:e.fontName,hasEOL:e.hasEOL}}(g)),g.initialized=!1,g.str.length=0)}function H(){let e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];const t=p.items.length;0!==t&&(e&&t<10||(c.enqueue(p,t),p.items=[],p.styles=Object.create(null)))}const q=new O;return new Promise((function e(t,f){const g=function(n){H(!0),Promise.all([n,c.ready]).then((function(){try{e(t,f)}catch(n){f(n)}}),f)};n.ensureNotTerminated(),q.reset();const y={};let v,_=[];for(;!(v=q.check())&&(_.length=0,y.args=_,k.read(y));){j=s.state;const e=y.fn;switch(_=y.args,0|e){case r.OPS.setFont:var b=_[0].name,x=_[1];if(j.font&&b===j.fontName&&x===j.fontSize)break;return W(),j.fontName=b,j.fontSize=x,void g(R(b,null));case r.OPS.setTextRise:j.textRise=_[0];break;case r.OPS.setHScale:j.textHScale=_[0]/100;break;case r.OPS.setLeading:j.leading=_[0];break;case r.OPS.moveText:j.translateTextLineMatrix(_[0],_[1]),j.textMatrix=j.textLineMatrix.slice();break;case r.OPS.setLeadingMoveText:j.leading=-_[1],j.translateTextLineMatrix(_[0],_[1]),j.textMatrix=j.textLineMatrix.slice();break;case r.OPS.nextLine:j.carriageReturn();break;case r.OPS.setTextMatrix:j.setTextMatrix(_[0],_[1],_[2],_[3],_[4],_[5]),j.setTextLineMatrix(_[0],_[1],_[2],_[3],_[4],_[5]),M();break;case r.OPS.setCharSpacing:j.charSpacing=_[0];break;case r.OPS.setWordSpacing:j.wordSpacing=_[0];break;case r.OPS.beginText:j.textMatrix=r.IDENTITY_MATRIX.slice(),j.textLineMatrix=r.IDENTITY_MATRIX.slice();break;case r.OPS.showSpacedText:if(!s.state.font){S.ensureStateFont(s.state);continue}const e=(j.font.vertical?1:-1)*j.fontSize/1e3,t=_[0];for(let n=0,r=t.length;n<r-1;n++){const r=t[n];if("string"===typeof r)E.push(r);else if("number"===typeof r&&0!==r){const t=E.join("");E.length=0,z({chars:t,extraSpacing:r*e})}}const f=t.at(-1);if("string"===typeof f&&E.push(f),E.length>0){const e=E.join("");E.length=0,z({chars:e,extraSpacing:0})}break;case r.OPS.showText:if(!s.state.font){S.ensureStateFont(s.state);continue}z({chars:_[0],extraSpacing:0});break;case r.OPS.nextLineShowText:if(!s.state.font){S.ensureStateFont(s.state);continue}j.carriageReturn(),z({chars:_[0],extraSpacing:0});break;case r.OPS.nextLineSetSpacingShowText:if(!s.state.font){S.ensureStateFont(s.state);continue}j.wordSpacing=_[0],j.charSpacing=_[1],j.carriageReturn(),z({chars:_[2],extraSpacing:0});break;case r.OPS.paintXObject:W(),P||(P=i.get("XObject")||o.Dict.empty);var I=_[0]instanceof o.Name,T=_[0].name;if(I&&C.getByName(T))break;return void g(new Promise((function(e,t){if(!I)throw new r.FormatError("XObject must be referred to by name.");let p=P.getRaw(T);if(p instanceof o.Ref){if(C.getByRef(p))return void e();if(S.globalImageCache.getData(p,S.pageIndex))return void e();p=w.fetch(p)}if(!(p instanceof m.BaseStream))throw new r.FormatError("XObject should be a stream");const f=p.dict.get("Subtype");if(!(f instanceof o.Name))throw new r.FormatError("XObject should have a Name subtype");if("Form"!==f.name)return C.set(T,p.dict.objId,!0),void e();const g=s.state.clone(),y=new N(g),v=p.dict.getArray("Matrix");Array.isArray(v)&&6===v.length&&y.transform(v),H();const _={enqueueInvoked:!1,enqueue(e,t){this.enqueueInvoked=!0,c.enqueue(e,t)},get desiredSize(){return c.desiredSize},get ready(){return c.ready}};S.getTextContent({stream:p,task:n,resources:p.dict.get("Resources")||i,stateManager:y,combineTextItems:a,includeMarkedContent:l,sink:_,seenStyles:u,viewBox:d,markedContentData:h}).then((function(){_.enqueueInvoked||C.set(T,p.dict.objId,!0),e()}),t)})).catch((function(e){if(!(e instanceof r.AbortException)){if(!S.options.ignoreErrors)throw e;(0,r.warn)('getTextContent - ignoring XObject: "'.concat(e,'".'))}})));case r.OPS.setGState:if(I=_[0]instanceof o.Name,T=_[0].name,I&&A.getByName(T))break;return void g(new Promise((function(e,t){if(!I)throw new r.FormatError("GState must be referred to by name.");const n=i.get("ExtGState");if(!(n instanceof o.Dict))throw new r.FormatError("ExtGState should be a dictionary.");const s=n.get(T);if(!(s instanceof o.Dict))throw new r.FormatError("GState should be a dictionary.");const a=s.get("Font");if(!a)return A.set(T,s.objId,!0),void e();W(),j.fontName=null,j.fontSize=a[1],R(null,a[0]).then(e,t)})).catch((function(e){if(!(e instanceof r.AbortException)){if(!S.options.ignoreErrors)throw e;(0,r.warn)('getTextContent - ignoring ExtGState: "'.concat(e,'".'))}})));case r.OPS.beginMarkedContent:W(),l&&(h.level++,p.items.push({type:"beginMarkedContent",tag:_[0]instanceof o.Name?_[0].name:null}));break;case r.OPS.beginMarkedContentProps:if(W(),l){h.level++;let e=null;_[1]instanceof o.Dict&&(e=_[1].get("MCID")),p.items.push({type:"beginMarkedContentProps",id:Number.isInteger(e)?"".concat(S.idFactory.getPageObjId(),"_mcid").concat(e):null,tag:_[0]instanceof o.Name?_[0].name:null})}break;case r.OPS.endMarkedContent:if(W(),l){if(0===h.level)break;h.level--,p.items.push({type:"endMarkedContent"})}}if(p.items.length>=c.desiredSize){v=!0;break}}v?g(G):(W(),H(),t())})).catch((e=>{if(!(e instanceof r.AbortException)){if(this.options.ignoreErrors)return(0,r.warn)('getTextContent - ignoring errors during "'.concat(n.name,'" ')+'task: "'.concat(e,'".')),W(),void H();throw e}}))}extractDataStructures(e,t,n){const i=this.xref;let s;const l=this.readToUnicode(n.toUnicode||e.get("ToUnicode")||t.get("ToUnicode"));if(n.composite){const t=e.get("CIDSystemInfo");t instanceof o.Dict&&(n.cidSystemInfo={registry:(0,r.stringToPDFString)(t.get("Registry")),ordering:(0,r.stringToPDFString)(t.get("Ordering")),supplement:t.get("Supplement")});try{const t=e.get("CIDToGIDMap");t instanceof m.BaseStream&&(s=t.getBytes())}catch(h){if(!this.options.ignoreErrors)throw h;(0,r.warn)('extractDataStructures - ignoring CIDToGIDMap data: "'.concat(h,'".'))}}const c=[];let u,d=null;if(e.has("Encoding")){if(u=e.get("Encoding"),u instanceof o.Dict){if(d=u.get("BaseEncoding"),d=d instanceof o.Name?d.name:null,u.has("Differences")){const e=u.get("Differences");let t=0;for(const n of e){const e=i.fetchIfRef(n);if("number"===typeof e)t=e;else{if(!(e instanceof o.Name))throw new r.FormatError("Invalid entry in 'Differences' array: ".concat(e));c[t++]=e.name}}}}else if(u instanceof o.Name)d=u.name;else{const e="Encoding is not a Name nor a Dict";if(!this.options.ignoreErrors)throw new r.FormatError(e);(0,r.warn)(e)}"MacRomanEncoding"!==d&&"MacExpertEncoding"!==d&&"WinAnsiEncoding"!==d&&(d=null)}if(d)n.defaultEncoding=(0,a.getEncoding)(d);else{const e=!!(n.flags&b.FontFlags.Symbolic),t=!!(n.flags&b.FontFlags.Nonsymbolic);u=a.StandardEncoding,"TrueType"!==n.type||t||(u=a.WinAnsiEncoding),e&&(u=a.MacRomanEncoding,n.file&&!n.isInternalFont||(/Symbol/i.test(n.name)?u=a.SymbolSetEncoding:/Dingbats|Wingdings/i.test(n.name)&&(u=a.ZapfDingbatsEncoding))),n.defaultEncoding=u}return n.differences=c,n.baseEncodingName=d,n.hasEncoding=!!d||c.length>0,n.dict=e,l.then((e=>(n.toUnicode=e,this.buildToUnicode(n)))).then((e=>(n.toUnicode=e,s&&(n.cidToGidMap=this.readCidToGidMap(s,e)),n)))}_simpleFontToUnicode(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];(0,r.assert)(!e.composite,"Must be a simple font.");const n=[],i=e.defaultEncoding.slice(),o=e.baseEncodingName,s=e.differences;for(const r in s){const e=s[r];".notdef"!==e&&(i[r]=e)}const l=(0,x.getGlyphsUnicode)();for(const r in i){let s=i[r];if(""===s)continue;let c=l[s];if(void 0!==c){n[r]=String.fromCharCode(c);continue}let u=0;switch(s[0]){case"G":3===s.length&&(u=parseInt(s.substring(1),16));break;case"g":5===s.length&&(u=parseInt(s.substring(1),16));break;case"C":case"c":if(s.length>=3&&s.length<=4){const n=s.substring(1);if(t){u=parseInt(n,16);break}if(u=+n,Number.isNaN(u)&&Number.isInteger(parseInt(n,16)))return this._simpleFontToUnicode(e,!0)}break;case"u":c=(0,E.getUnicodeForGlyph)(s,l),-1!==c&&(u=c)}if(u>0&&u<=1114111&&Number.isInteger(u)){if(o&&u===+r){const e=(0,a.getEncoding)(o);if(e&&(s=e[r])){n[r]=String.fromCharCode(l[s]);continue}}n[r]=String.fromCodePoint(u)}}return n}async buildToUnicode(e){if(e.hasIncludedToUnicodeMap=!!e.toUnicode&&e.toUnicode.length>0,e.hasIncludedToUnicodeMap)return!e.composite&&e.hasEncoding&&(e.fallbackToUnicode=this._simpleFontToUnicode(e)),e.toUnicode;if(!e.composite)return new d.ToUnicodeMap(this._simpleFontToUnicode(e));if(e.composite&&(e.cMap.builtInCMap&&!(e.cMap instanceof i.IdentityCMap)||"Adobe"===e.cidSystemInfo.registry&&("GB1"===e.cidSystemInfo.ordering||"CNS1"===e.cidSystemInfo.ordering||"Japan1"===e.cidSystemInfo.ordering||"Korea1"===e.cidSystemInfo.ordering))){const{registry:t,ordering:n}=e.cidSystemInfo,s=o.Name.get("".concat(t,"-").concat(n,"-UCS2")),a=await i.CMapFactory.create({encoding:s,fetchBuiltInCMap:this._fetchBuiltInCMapBound,useCMap:null}),l=[];return e.cMap.forEach((function(e,t){if(t>65535)throw new r.FormatError("Max size of CID is 65,535");const n=a.lookup(t);n&&(l[e]=String.fromCharCode((n.charCodeAt(0)<<8)+n.charCodeAt(1)))})),new d.ToUnicodeMap(l)}return new d.IdentityToUnicodeMap(e.firstChar,e.lastChar)}readToUnicode(e){return e?e instanceof o.Name?i.CMapFactory.create({encoding:e,fetchBuiltInCMap:this._fetchBuiltInCMapBound,useCMap:null}).then((function(e){return e instanceof i.IdentityCMap?new d.IdentityToUnicodeMap(0,65535):new d.ToUnicodeMap(e.getMap())})):e instanceof m.BaseStream?i.CMapFactory.create({encoding:e,fetchBuiltInCMap:this._fetchBuiltInCMapBound,useCMap:null}).then((function(e){if(e instanceof i.IdentityCMap)return new d.IdentityToUnicodeMap(0,65535);const t=new Array(e.length);return e.forEach((function(e,n){if("number"===typeof n)return void(t[e]=String.fromCodePoint(n));const r=[];for(let t=0;t<n.length;t+=2){const e=n.charCodeAt(t)<<8|n.charCodeAt(t+1);if(55296!==(63488&e)){r.push(e);continue}t+=2;const i=n.charCodeAt(t)<<8|n.charCodeAt(t+1);r.push(((1023&e)<<10)+(1023&i)+65536)}t[e]=String.fromCodePoint(...r)})),new d.ToUnicodeMap(t)}),(e=>{if(e instanceof r.AbortException)return null;if(this.options.ignoreErrors)return this.handler.send("UnsupportedFeature",{featureId:r.UNSUPPORTED_FEATURES.errorFontToUnicode}),(0,r.warn)('readToUnicode - ignoring ToUnicode data: "'.concat(e,'".')),null;throw e})):Promise.resolve(null):Promise.resolve(null)}readCidToGidMap(e,t){const n=[];for(let r=0,i=e.length;r<i;r++){const i=e[r++]<<8|e[r],o=r>>1;(0!==i||t.has(o))&&(n[o]=i)}return n}extractWidths(e,t,n){const r=this.xref;let i=[],s=0;const a=[];let l,c,u,d,h,p,f,g;if(n.composite){if(s=e.has("DW")?e.get("DW"):1e3,g=e.get("W"),g)for(c=0,u=g.length;c<u;c++)if(p=r.fetchIfRef(g[c++]),f=r.fetchIfRef(g[c]),Array.isArray(f))for(d=0,h=f.length;d<h;d++)i[p++]=r.fetchIfRef(f[d]);else{const e=r.fetchIfRef(g[++c]);for(d=p;d<=f;d++)i[d]=e}if(n.vertical){let t=e.getArray("DW2")||[880,-1e3];if(l=[t[1],.5*s,t[0]],t=e.get("W2"),t)for(c=0,u=t.length;c<u;c++)if(p=r.fetchIfRef(t[c++]),f=r.fetchIfRef(t[c]),Array.isArray(f))for(d=0,h=f.length;d<h;d++)a[p++]=[r.fetchIfRef(f[d++]),r.fetchIfRef(f[d++]),r.fetchIfRef(f[d])];else{const e=[r.fetchIfRef(t[++c]),r.fetchIfRef(t[++c]),r.fetchIfRef(t[++c])];for(d=p;d<=f;d++)a[d]=e}}}else{const a=n.firstChar;if(g=e.get("Widths"),g){for(d=a,c=0,u=g.length;c<u;c++)i[d++]=r.fetchIfRef(g[c]);s=parseFloat(t.get("MissingWidth"))||0}else{const t=e.get("BaseFont");if(t instanceof o.Name){const e=this.getBaseFontMetrics(t.name);i=this.buildCharCodeToWidth(e.widths,n),s=e.defaultWidth}}}let m=!0,y=s;for(const o in i){const e=i[o];if(e)if(y){if(y!==e){m=!1;break}}else y=e}m&&(n.flags|=b.FontFlags.FixedPitch),n.defaultWidth=s,n.widths=i,n.defaultVMetrics=l,n.vmetrics=a}isSerifFont(e){const t=e.split("-")[0];return t in(0,l.getSerifFonts)()||/serif/gi.test(t)}getBaseFontMetrics(e){let t=0,n=Object.create(null),r=!1,i=(0,l.getStdFontMap)()[e]||e;const o=(0,w.getMetrics)();i in o||(i=this.isSerifFont(e)?"Times-Roman":"Helvetica");const s=o[i];return"number"===typeof s?(t=s,r=!0):n=s(),{defaultWidth:t,monospace:r,widths:n}}buildCharCodeToWidth(e,t){const n=Object.create(null),r=t.differences,i=t.defaultEncoding;for(let o=0;o<256;o++)o in r&&e[r[o]]?n[o]=e[r[o]]:o in i&&e[i[o]]&&(n[o]=e[i[o]]);return n}preEvaluateFont(e){const t=e;let n=e.get("Subtype");if(!(n instanceof o.Name))throw new r.FormatError("invalid font Subtype");let i,s,a=!1;if("Type0"===n.name){const t=e.get("DescendantFonts");if(!t)throw new r.FormatError("Descendant fonts are not specified");if(!((e=Array.isArray(t)?this.xref.fetchIfRef(t[0]):t)instanceof o.Dict))throw new r.FormatError("Descendant font is not a dictionary.");if(n=e.get("Subtype"),!(n instanceof o.Name))throw new r.FormatError("invalid font Subtype");a=!0}const l=e.get("FirstChar")||0,c=e.get("LastChar")||(a?65535:255),u=e.get("FontDescriptor");if(u){i=new P.MurmurHash3_64;const n=t.getRaw("Encoding");if(n instanceof o.Name)i.update(n.name);else if(n instanceof o.Ref)i.update(n.toString());else if(n instanceof o.Dict)for(const e of n.getRawValues())if(e instanceof o.Name)i.update(e.name);else if(e instanceof o.Ref)i.update(e.toString());else if(Array.isArray(e)){const t=e.length,n=new Array(t);for(let r=0;r<t;r++){const t=e[r];t instanceof o.Name?n[r]=t.name:("number"===typeof t||t instanceof o.Ref)&&(n[r]=t.toString())}i.update(n.join())}if(i.update("".concat(l,"-").concat(c)),s=e.get("ToUnicode")||t.get("ToUnicode"),s instanceof m.BaseStream){const e=s.str||s,t=e.buffer?new Uint8Array(e.buffer.buffer,0,e.bufferLength):new Uint8Array(e.bytes.buffer,e.start,e.end-e.start);i.update(t)}else s instanceof o.Name&&i.update(s.name);const r=e.get("Widths")||t.get("Widths");if(Array.isArray(r)){const e=[];for(const t of r)("number"===typeof t||t instanceof o.Ref)&&e.push(t.toString());i.update(e.join())}if(a){i.update("compositeFont");const n=e.get("W")||t.get("W");if(Array.isArray(n)){const e=[];for(const t of n)if("number"===typeof t||t instanceof o.Ref)e.push(t.toString());else if(Array.isArray(t)){const n=[];for(const e of t)("number"===typeof e||e instanceof o.Ref)&&n.push(e.toString());e.push("[".concat(n.join(),"]"))}i.update(e.join())}const r=e.getRaw("CIDToGIDMap")||t.getRaw("CIDToGIDMap");r instanceof o.Name?i.update(r.name):r instanceof o.Ref?i.update(r.toString()):r instanceof m.BaseStream&&i.update(r.peekBytes())}}return{descriptor:u,dict:e,baseDict:t,composite:a,type:n.name,firstChar:l,lastChar:c,toUnicode:s,hash:i?i.hexdigest():""}}async translateFont(e){let{descriptor:t,dict:n,baseDict:a,composite:c,type:d,firstChar:h,lastChar:p,toUnicode:f,cssFontInfo:m}=e;const y="Type3"===d;let v;if(!t){if(!y){let e=n.get("BaseFont");if(!(e instanceof o.Name))throw new r.FormatError("Base font is not specified");e=e.name.replace(/[,_]/g,"-");const t=this.getBaseFontMetrics(e),i=e.split("-")[0],c=(this.isSerifFont(i)?b.FontFlags.Serif:0)|(t.monospace?b.FontFlags.FixedPitch:0)|((0,l.getSymbolsFonts)()[i]?b.FontFlags.Symbolic:b.FontFlags.Nonsymbolic);v={type:d,name:e,loadedName:a.loadedName,widths:t.widths,defaultWidth:t.defaultWidth,isSimulatedFlags:!0,flags:c,firstChar:h,lastChar:p,toUnicode:f,xHeight:0,capHeight:0,italicAngle:0,isType3Font:y};const u=n.get("Widths"),g=(0,l.getStandardFontName)(e);let m=null;return g&&(v.isStandardFont=!0,m=await this.fetchStandardFontData(g),v.isInternalFont=!!m),this.extractDataStructures(n,n,v).then((n=>{if(u){const e=[];let t=h;for(const n of u)e[t++]=this.xref.fetchIfRef(n);n.widths=e}else n.widths=this.buildCharCodeToWidth(t.widths,n);return new s.Font(e,m,n)}))}t=new o.Dict(null),t.set("FontName",o.Name.get(d)),t.set("FontBBox",n.getArray("FontBBox")||[0,0,0,0])}let _,x,S,w,E,P=t.get("FontName"),C=n.get("BaseFont");if("string"===typeof P&&(P=o.Name.get(P)),"string"===typeof C&&(C=o.Name.get(C)),!y){const e=P&&P.name,t=C&&C.name;e!==t&&((0,r.info)("The FontDescriptor's FontName is \"".concat(e,'" but ')+"should be the same as the Font's BaseFont \"".concat(t,'".')),e&&t&&t.startsWith(e)&&(P=C))}if(P=P||C,!(P instanceof o.Name))throw new r.FormatError("invalid font name");try{_=t.get("FontFile","FontFile2","FontFile3")}catch(I){if(!this.options.ignoreErrors)throw I;(0,r.warn)('translateFont - fetching "'.concat(P.name,'" font file: "').concat(I,'".')),_=new g.NullStream}let A=!1,k=!1,j=null;if(_){if(_.dict){const e=_.dict.get("Subtype");e instanceof o.Name&&(x=e.name),S=_.dict.get("Length1"),w=_.dict.get("Length2"),E=_.dict.get("Length3")}}else if(m){const e=(0,u.getXfaFontName)(P.name);e&&(m.fontFamily="".concat(m.fontFamily,"-PdfJS-XFA"),m.metrics=e.metrics||null,j=e.factors||null,_=await this.fetchStandardFontData(e.name),k=!!_,a=n=(0,u.getXfaFontDict)(P.name),c=!0)}else if(!y){const e=(0,l.getStandardFontName)(P.name);e&&(A=!0,_=await this.fetchStandardFontData(e),k=!!_)}if(v={type:d,name:P.name,subtype:x,file:_,length1:S,length2:w,length3:E,isStandardFont:A,isInternalFont:k,loadedName:a.loadedName,composite:c,fixedPitch:!1,fontMatrix:n.getArray("FontMatrix")||r.FONT_IDENTITY_MATRIX,firstChar:h,lastChar:p,toUnicode:f,bbox:t.getArray("FontBBox")||n.getArray("FontBBox"),ascent:t.get("Ascent"),descent:t.get("Descent"),xHeight:t.get("XHeight")||0,capHeight:t.get("CapHeight")||0,flags:t.get("Flags"),italicAngle:t.get("ItalicAngle")||0,isType3Font:y,cssFontInfo:m,scaleFactors:j},c){const e=a.get("Encoding");e instanceof o.Name&&(v.cidEncoding=e.name);const t=await i.CMapFactory.create({encoding:e,fetchBuiltInCMap:this._fetchBuiltInCMapBound,useCMap:null});v.cMap=t,v.vertical=v.cMap.vertical}return this.extractDataStructures(n,a,v).then((e=>(this.extractWidths(n,t,e),new s.Font(P.name,_,e))))}static buildFontPaths(e,t,n,i){function o(t){const o="".concat(e.loadedName,"_path_").concat(t);try{if(e.renderer.hasBuiltPath(t))return;n.send("commonobj",[o,"FontPath",e.renderer.getPathJs(t)])}catch(s){if(i.ignoreErrors)return n.send("UnsupportedFeature",{featureId:r.UNSUPPORTED_FEATURES.errorFontBuildPath}),void(0,r.warn)("buildFontPaths - ignoring ".concat(o,' glyph: "').concat(s,'".'));throw s}}for(const r of t){o(r.fontChar);const e=r.accent;e&&e.fontChar&&o(e.fontChar)}}static get fallbackFontDict(){const e=new o.Dict;return e.set("BaseFont",o.Name.get("PDFJS-FallbackFont")),e.set("Type",o.Name.get("FallbackType")),e.set("Subtype",o.Name.get("FallbackType")),e.set("Encoding",o.Name.get("WinAnsiEncoding")),(0,r.shadow)(this,"fallbackFontDict",e)}}t.PartialEvaluator=R;class D{constructor(e){let{loadedName:t,font:n,dict:r,evaluatorOptions:i}=e;this.loadedName=t,this.font=n,this.dict=r,this._evaluatorOptions=i||k,this.type3Loaded=null,this.type3Dependencies=n.isType3Font?new Set:null,this.sent=!1}send(e){this.sent||(this.sent=!0,e.send("commonobj",[this.loadedName,"Font",this.font.exportData(this._evaluatorOptions.fontExtraProperties)]))}fallback(e){this.font.data&&(this.font.disableFontFace=!0,R.buildFontPaths(this.font,this.font.glyphCacheValues,e,this._evaluatorOptions))}loadType3Data(e,t,n){if(this.type3Loaded)return this.type3Loaded;if(!this.font.isType3Font)throw new Error("Must be a Type3 font.");const i=e.clone({ignoreErrors:!1});i.parsingType3Font=!0;const s=new o.RefSet(e.type3FontRefs);this.dict.objId&&!s.has(this.dict.objId)&&s.put(this.dict.objId),i.type3FontRefs=s;const a=this.font,l=this.type3Dependencies;let c=Promise.resolve();const u=this.dict.get("CharProcs"),d=this.dict.get("Resources")||t,h=Object.create(null),p=r.Util.normalizeRect(a.bbox||[0,0,0,0]),f=p[2]-p[0],g=p[3]-p[1],m=Math.hypot(f,g);for(const o of u.getKeys())c=c.then((()=>{const e=u.get(o),t=new C.OperatorList;return i.getOperatorList({stream:e,task:n,resources:d,operatorList:t}).then((()=>{t.fnArray[0]===r.OPS.setCharWidthAndBounds&&this._removeType3ColorOperators(t,m),h[o]=t.getIR();for(const e of t.dependencies)l.add(e)})).catch((function(e){(0,r.warn)('Type3 font resource "'.concat(o,'" is not available.'));const t=new C.OperatorList;h[o]=t.getIR()}))}));return this.type3Loaded=c.then((()=>{a.charProcOperatorList=h,this._bbox&&(a.isCharBBox=!0,a.bbox=this._bbox)})),this.type3Loaded}_removeType3ColorOperators(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:NaN;const n=r.Util.normalizeRect(e.argsArray[0].slice(2)),i=n[2]-n[0],o=n[3]-n[1],s=Math.hypot(i,o);0===i||0===o?(e.fnArray.splice(0,1),e.argsArray.splice(0,1)):(0===t||Math.round(s/t)>=10)&&(this._bbox||(this._bbox=[1/0,1/0,-1/0,-1/0]),this._bbox[0]=Math.min(this._bbox[0],n[0]),this._bbox[1]=Math.min(this._bbox[1],n[1]),this._bbox[2]=Math.max(this._bbox[2],n[2]),this._bbox[3]=Math.max(this._bbox[3],n[3]));let a=0,l=e.length;for(;a<l;){switch(e.fnArray[a]){case r.OPS.setCharWidthAndBounds:break;case r.OPS.setStrokeColorSpace:case r.OPS.setFillColorSpace:case r.OPS.setStrokeColor:case r.OPS.setStrokeColorN:case r.OPS.setFillColor:case r.OPS.setFillColorN:case r.OPS.setStrokeGray:case r.OPS.setFillGray:case r.OPS.setStrokeRGBColor:case r.OPS.setFillRGBColor:case r.OPS.setStrokeCMYKColor:case r.OPS.setFillCMYKColor:case r.OPS.shadingFill:case r.OPS.setRenderingIntent:e.fnArray.splice(a,1),e.argsArray.splice(a,1),l--;continue;case r.OPS.setGState:const[t]=e.argsArray[a];let n=0,i=t.length;for(;n<i;){const[e]=t[n];switch(e){case"TR":case"TR2":case"HT":case"BG":case"BG2":case"UCR":case"UCR2":t.splice(n,1),i--;continue}n++}}a++}}}class N{constructor(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:new V;this.state=e,this.stateStack=[]}save(){const e=this.state;this.stateStack.push(this.state),this.state=e.clone()}restore(){const e=this.stateStack.pop();e&&(this.state=e)}transform(e){this.state.ctm=r.Util.transform(this.state.ctm,e)}}class L{constructor(){this.ctm=new Float32Array(r.IDENTITY_MATRIX),this.fontName=null,this.fontSize=0,this.loadedName=null,this.font=null,this.fontMatrix=r.FONT_IDENTITY_MATRIX,this.textMatrix=r.IDENTITY_MATRIX.slice(),this.textLineMatrix=r.IDENTITY_MATRIX.slice(),this.charSpacing=0,this.wordSpacing=0,this.leading=0,this.textHScale=1,this.textRise=0}setTextMatrix(e,t,n,r,i,o){const s=this.textMatrix;s[0]=e,s[1]=t,s[2]=n,s[3]=r,s[4]=i,s[5]=o}setTextLineMatrix(e,t,n,r,i,o){const s=this.textLineMatrix;s[0]=e,s[1]=t,s[2]=n,s[3]=r,s[4]=i,s[5]=o}translateTextMatrix(e,t){const n=this.textMatrix;n[4]=n[0]*e+n[2]*t+n[4],n[5]=n[1]*e+n[3]*t+n[5]}translateTextLineMatrix(e,t){const n=this.textLineMatrix;n[4]=n[0]*e+n[2]*t+n[4],n[5]=n[1]*e+n[3]*t+n[5]}carriageReturn(){this.translateTextLineMatrix(0,-this.leading),this.textMatrix=this.textLineMatrix.slice()}clone(){const e=Object.create(this);return e.textMatrix=this.textMatrix.slice(),e.textLineMatrix=this.textLineMatrix.slice(),e.fontMatrix=this.fontMatrix.slice(),e}}class V{constructor(){this.ctm=new Float32Array(r.IDENTITY_MATRIX),this.font=null,this.textRenderingMode=r.TextRenderingMode.FILL,this.fillColorSpace=v.ColorSpace.singletons.gray,this.strokeColorSpace=v.ColorSpace.singletons.gray}clone(){return Object.create(this)}}class F{static get opMap(){const e=(0,S.getLookupTableFactory)((function(e){e.w={id:r.OPS.setLineWidth,numArgs:1,variableArgs:!1},e.J={id:r.OPS.setLineCap,numArgs:1,variableArgs:!1},e.j={id:r.OPS.setLineJoin,numArgs:1,variableArgs:!1},e.M={id:r.OPS.setMiterLimit,numArgs:1,variableArgs:!1},e.d={id:r.OPS.setDash,numArgs:2,variableArgs:!1},e.ri={id:r.OPS.setRenderingIntent,numArgs:1,variableArgs:!1},e.i={id:r.OPS.setFlatness,numArgs:1,variableArgs:!1},e.gs={id:r.OPS.setGState,numArgs:1,variableArgs:!1},e.q={id:r.OPS.save,numArgs:0,variableArgs:!1},e.Q={id:r.OPS.restore,numArgs:0,variableArgs:!1},e.cm={id:r.OPS.transform,numArgs:6,variableArgs:!1},e.m={id:r.OPS.moveTo,numArgs:2,variableArgs:!1},e.l={id:r.OPS.lineTo,numArgs:2,variableArgs:!1},e.c={id:r.OPS.curveTo,numArgs:6,variableArgs:!1},e.v={id:r.OPS.curveTo2,numArgs:4,variableArgs:!1},e.y={id:r.OPS.curveTo3,numArgs:4,variableArgs:!1},e.h={id:r.OPS.closePath,numArgs:0,variableArgs:!1},e.re={id:r.OPS.rectangle,numArgs:4,variableArgs:!1},e.S={id:r.OPS.stroke,numArgs:0,variableArgs:!1},e.s={id:r.OPS.closeStroke,numArgs:0,variableArgs:!1},e.f={id:r.OPS.fill,numArgs:0,variableArgs:!1},e.F={id:r.OPS.fill,numArgs:0,variableArgs:!1},e["f*"]={id:r.OPS.eoFill,numArgs:0,variableArgs:!1},e.B={id:r.OPS.fillStroke,numArgs:0,variableArgs:!1},e["B*"]={id:r.OPS.eoFillStroke,numArgs:0,variableArgs:!1},e.b={id:r.OPS.closeFillStroke,numArgs:0,variableArgs:!1},e["b*"]={id:r.OPS.closeEOFillStroke,numArgs:0,variableArgs:!1},e.n={id:r.OPS.endPath,numArgs:0,variableArgs:!1},e.W={id:r.OPS.clip,numArgs:0,variableArgs:!1},e["W*"]={id:r.OPS.eoClip,numArgs:0,variableArgs:!1},e.BT={id:r.OPS.beginText,numArgs:0,variableArgs:!1},e.ET={id:r.OPS.endText,numArgs:0,variableArgs:!1},e.Tc={id:r.OPS.setCharSpacing,numArgs:1,variableArgs:!1},e.Tw={id:r.OPS.setWordSpacing,numArgs:1,variableArgs:!1},e.Tz={id:r.OPS.setHScale,numArgs:1,variableArgs:!1},e.TL={id:r.OPS.setLeading,numArgs:1,variableArgs:!1},e.Tf={id:r.OPS.setFont,numArgs:2,variableArgs:!1},e.Tr={id:r.OPS.setTextRenderingMode,numArgs:1,variableArgs:!1},e.Ts={id:r.OPS.setTextRise,numArgs:1,variableArgs:!1},e.Td={id:r.OPS.moveText,numArgs:2,variableArgs:!1},e.TD={id:r.OPS.setLeadingMoveText,numArgs:2,variableArgs:!1},e.Tm={id:r.OPS.setTextMatrix,numArgs:6,variableArgs:!1},e["T*"]={id:r.OPS.nextLine,numArgs:0,variableArgs:!1},e.Tj={id:r.OPS.showText,numArgs:1,variableArgs:!1},e.TJ={id:r.OPS.showSpacedText,numArgs:1,variableArgs:!1},e["'"]={id:r.OPS.nextLineShowText,numArgs:1,variableArgs:!1},e['"']={id:r.OPS.nextLineSetSpacingShowText,numArgs:3,variableArgs:!1},e.d0={id:r.OPS.setCharWidth,numArgs:2,variableArgs:!1},e.d1={id:r.OPS.setCharWidthAndBounds,numArgs:6,variableArgs:!1},e.CS={id:r.OPS.setStrokeColorSpace,numArgs:1,variableArgs:!1},e.cs={id:r.OPS.setFillColorSpace,numArgs:1,variableArgs:!1},e.SC={id:r.OPS.setStrokeColor,numArgs:4,variableArgs:!0},e.SCN={id:r.OPS.setStrokeColorN,numArgs:33,variableArgs:!0},e.sc={id:r.OPS.setFillColor,numArgs:4,variableArgs:!0},e.scn={id:r.OPS.setFillColorN,numArgs:33,variableArgs:!0},e.G={id:r.OPS.setStrokeGray,numArgs:1,variableArgs:!1},e.g={id:r.OPS.setFillGray,numArgs:1,variableArgs:!1},e.RG={id:r.OPS.setStrokeRGBColor,numArgs:3,variableArgs:!1},e.rg={id:r.OPS.setFillRGBColor,numArgs:3,variableArgs:!1},e.K={id:r.OPS.setStrokeCMYKColor,numArgs:4,variableArgs:!1},e.k={id:r.OPS.setFillCMYKColor,numArgs:4,variableArgs:!1},e.sh={id:r.OPS.shadingFill,numArgs:1,variableArgs:!1},e.BI={id:r.OPS.beginInlineImage,numArgs:0,variableArgs:!1},e.ID={id:r.OPS.beginImageData,numArgs:0,variableArgs:!1},e.EI={id:r.OPS.endInlineImage,numArgs:1,variableArgs:!1},e.Do={id:r.OPS.paintXObject,numArgs:1,variableArgs:!1},e.MP={id:r.OPS.markPoint,numArgs:1,variableArgs:!1},e.DP={id:r.OPS.markPointProps,numArgs:2,variableArgs:!1},e.BMC={id:r.OPS.beginMarkedContent,numArgs:1,variableArgs:!1},e.BDC={id:r.OPS.beginMarkedContentProps,numArgs:2,variableArgs:!1},e.EMC={id:r.OPS.endMarkedContent,numArgs:0,variableArgs:!1},e.BX={id:r.OPS.beginCompat,numArgs:0,variableArgs:!1},e.EX={id:r.OPS.endCompat,numArgs:0,variableArgs:!1},e.BM=null,e.BD=null,e.true=null,e.fa=null,e.fal=null,e.fals=null,e.false=null,e.nu=null,e.nul=null,e.null=null}));return(0,r.shadow)(this,"opMap",e())}static get MAX_INVALID_PATH_OPS(){return(0,r.shadow)(this,"MAX_INVALID_PATH_OPS",10)}constructor(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:new N;this.parser=new p.Parser({lexer:new p.Lexer(e,F.opMap),xref:t}),this.stateManager=n,this.nonProcessedArgs=[],this._isPathOp=!1,this._numInvalidPathOPS=0}get savedStatesDepth(){return this.stateManager.stateStack.length}read(e){let t=e.args;for(;;){const n=this.parser.getObj();if(n instanceof o.Cmd){const i=n.cmd,o=F.opMap[i];if(!o){(0,r.warn)('Unknown command "'.concat(i,'".'));continue}const s=o.id,a=o.numArgs;let l=null!==t?t.length:0;if(this._isPathOp||(this._numInvalidPathOPS=0),this._isPathOp=s>=r.OPS.moveTo&&s<=r.OPS.endPath,o.variableArgs)l>a&&(0,r.info)("Command ".concat(i,": expected [0, ").concat(a,"] args, ")+"but received ".concat(l," args."));else{if(l!==a){const e=this.nonProcessedArgs;for(;l>a;)e.push(t.shift()),l--;for(;l<a&&0!==e.length;)null===t&&(t=[]),t.unshift(e.pop()),l++}if(l<a){const e="command ".concat(i,": expected ").concat(a," args, ")+"but received ".concat(l," args.");if(this._isPathOp&&++this._numInvalidPathOPS>F.MAX_INVALID_PATH_OPS)throw new r.FormatError("Invalid ".concat(e));(0,r.warn)("Skipping ".concat(e)),null!==t&&(t.length=0);continue}}return this.preprocessCommand(s,t),e.fn=s,e.args=t,!0}if(n===o.EOF)return!1;if(null!==n&&(null===t&&(t=[]),t.push(n),t.length>33))throw new r.FormatError("Too many arguments")}}preprocessCommand(e,t){switch(0|e){case r.OPS.save:this.stateManager.save();break;case r.OPS.restore:this.stateManager.restore();break;case r.OPS.transform:this.stateManager.transform(t)}}}t.EvaluatorPreprocessor=F},(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.IdentityCMap=t.CMapFactory=t.CMap=void 0;var r=n(2),i=n(3),o=n(5),s=n(15),a=n(4),l=n(8);const c=["Adobe-GB1-UCS2","Adobe-CNS1-UCS2","Adobe-Japan1-UCS2","Adobe-Korea1-UCS2","78-EUC-H","78-EUC-V","78-H","78-RKSJ-H","78-RKSJ-V","78-V","78ms-RKSJ-H","78ms-RKSJ-V","83pv-RKSJ-H","90ms-RKSJ-H","90ms-RKSJ-V","90msp-RKSJ-H","90msp-RKSJ-V","90pv-RKSJ-H","90pv-RKSJ-V","Add-H","Add-RKSJ-H","Add-RKSJ-V","Add-V","Adobe-CNS1-0","Adobe-CNS1-1","Adobe-CNS1-2","Adobe-CNS1-3","Adobe-CNS1-4","Adobe-CNS1-5","Adobe-CNS1-6","Adobe-GB1-0","Adobe-GB1-1","Adobe-GB1-2","Adobe-GB1-3","Adobe-GB1-4","Adobe-GB1-5","Adobe-Japan1-0","Adobe-Japan1-1","Adobe-Japan1-2","Adobe-Japan1-3","Adobe-Japan1-4","Adobe-Japan1-5","Adobe-Japan1-6","Adobe-Korea1-0","Adobe-Korea1-1","Adobe-Korea1-2","B5-H","B5-V","B5pc-H","B5pc-V","CNS-EUC-H","CNS-EUC-V","CNS1-H","CNS1-V","CNS2-H","CNS2-V","ETHK-B5-H","ETHK-B5-V","ETen-B5-H","ETen-B5-V","ETenms-B5-H","ETenms-B5-V","EUC-H","EUC-V","Ext-H","Ext-RKSJ-H","Ext-RKSJ-V","Ext-V","GB-EUC-H","GB-EUC-V","GB-H","GB-V","GBK-EUC-H","GBK-EUC-V","GBK2K-H","GBK2K-V","GBKp-EUC-H","GBKp-EUC-V","GBT-EUC-H","GBT-EUC-V","GBT-H","GBT-V","GBTpc-EUC-H","GBTpc-EUC-V","GBpc-EUC-H","GBpc-EUC-V","H","HKdla-B5-H","HKdla-B5-V","HKdlb-B5-H","HKdlb-B5-V","HKgccs-B5-H","HKgccs-B5-V","HKm314-B5-H","HKm314-B5-V","HKm471-B5-H","HKm471-B5-V","HKscs-B5-H","HKscs-B5-V","Hankaku","Hiragana","KSC-EUC-H","KSC-EUC-V","KSC-H","KSC-Johab-H","KSC-Johab-V","KSC-V","KSCms-UHC-H","KSCms-UHC-HW-H","KSCms-UHC-HW-V","KSCms-UHC-V","KSCpc-EUC-H","KSCpc-EUC-V","Katakana","NWP-H","NWP-V","RKSJ-H","RKSJ-V","Roman","UniCNS-UCS2-H","UniCNS-UCS2-V","UniCNS-UTF16-H","UniCNS-UTF16-V","UniCNS-UTF32-H","UniCNS-UTF32-V","UniCNS-UTF8-H","UniCNS-UTF8-V","UniGB-UCS2-H","UniGB-UCS2-V","UniGB-UTF16-H","UniGB-UTF16-V","UniGB-UTF32-H","UniGB-UTF32-V","UniGB-UTF8-H","UniGB-UTF8-V","UniJIS-UCS2-H","UniJIS-UCS2-HW-H","UniJIS-UCS2-HW-V","UniJIS-UCS2-V","UniJIS-UTF16-H","UniJIS-UTF16-V","UniJIS-UTF32-H","UniJIS-UTF32-V","UniJIS-UTF8-H","UniJIS-UTF8-V","UniJIS2004-UTF16-H","UniJIS2004-UTF16-V","UniJIS2004-UTF32-H","UniJIS2004-UTF32-V","UniJIS2004-UTF8-H","UniJIS2004-UTF8-V","UniJISPro-UCS2-HW-V","UniJISPro-UCS2-V","UniJISPro-UTF8-V","UniJISX0213-UTF32-H","UniJISX0213-UTF32-V","UniJISX02132004-UTF32-H","UniJISX02132004-UTF32-V","UniKS-UCS2-H","UniKS-UCS2-V","UniKS-UTF16-H","UniKS-UTF16-V","UniKS-UTF32-H","UniKS-UTF32-V","UniKS-UTF8-H","UniKS-UTF8-V","V","WP-Symbol"],u=2**24-1;class d{constructor(){let e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];this.codespaceRanges=[[],[],[],[]],this.numCodespaceRanges=0,this._map=[],this.name="",this.vertical=!1,this.useCMap=null,this.builtInCMap=e}addCodespaceRange(e,t,n){this.codespaceRanges[e-1].push(t,n),this.numCodespaceRanges++}mapCidRange(e,t,n){if(t-e>u)throw new Error("mapCidRange - ignoring data above MAX_MAP_RANGE.");for(;e<=t;)this._map[e++]=n++}mapBfRange(e,t,n){if(t-e>u)throw new Error("mapBfRange - ignoring data above MAX_MAP_RANGE.");const r=n.length-1;for(;e<=t;){this._map[e++]=n;const t=n.charCodeAt(r)+1;n=t>255?n.substring(0,r-1)+String.fromCharCode(n.charCodeAt(r-1)+1)+"\0":n.substring(0,r)+String.fromCharCode(t)}}mapBfRangeToArray(e,t,n){if(t-e>u)throw new Error("mapBfRangeToArray - ignoring data above MAX_MAP_RANGE.");const r=n.length;let i=0;for(;e<=t&&i<r;)this._map[e]=n[i++],++e}mapOne(e,t){this._map[e]=t}lookup(e){return this._map[e]}contains(e){return void 0!==this._map[e]}forEach(e){const t=this._map,n=t.length;if(n<=65536)for(let r=0;r<n;r++)void 0!==t[r]&&e(r,t[r]);else for(const r in t)e(r,t[r])}charCodeOf(e){const t=this._map;if(t.length<=65536)return t.indexOf(e);for(const n in t)if(t[n]===e)return 0|n;return-1}getMap(){return this._map}readCharCode(e,t,n){let r=0;const i=this.codespaceRanges;for(let o=0,s=i.length;o<s;o++){r=(r<<8|e.charCodeAt(t+o))>>>0;const s=i[o];for(let e=0,t=s.length;e<t;){const t=s[e++],i=s[e++];if(r>=t&&r<=i)return n.charcode=r,void(n.length=o+1)}}n.charcode=0,n.length=1}getCharCodeLength(e){const t=this.codespaceRanges;for(let n=0,r=t.length;n<r;n++){const r=t[n];for(let t=0,i=r.length;t<i;){const i=r[t++],o=r[t++];if(e>=i&&e<=o)return n+1}}return 1}get length(){return this._map.length}get isIdentityCMap(){if("Identity-H"!==this.name&&"Identity-V"!==this.name)return!1;if(65536!==this._map.length)return!1;for(let e=0;e<65536;e++)if(this._map[e]!==e)return!1;return!0}}t.CMap=d;class h extends d{constructor(e,t){super(),this.vertical=e,this.addCodespaceRange(t,0,65535)}mapCidRange(e,t,n){(0,r.unreachable)("should not call mapCidRange")}mapBfRange(e,t,n){(0,r.unreachable)("should not call mapBfRange")}mapBfRangeToArray(e,t,n){(0,r.unreachable)("should not call mapBfRangeToArray")}mapOne(e,t){(0,r.unreachable)("should not call mapCidOne")}lookup(e){return Number.isInteger(e)&&e<=65535?e:void 0}contains(e){return Number.isInteger(e)&&e<=65535}forEach(e){for(let t=0;t<=65535;t++)e(t,t)}charCodeOf(e){return Number.isInteger(e)&&e<=65535?e:-1}getMap(){const e=new Array(65536);for(let t=0;t<=65535;t++)e[t]=t;return e}get length(){return 65536}get isIdentityCMap(){(0,r.unreachable)("should not access .isIdentityCMap")}}t.IdentityCMap=h;const p=function(){function e(e,t){let n=0;for(let r=0;r<=t;r++)n=n<<8|e[r];return n>>>0}function t(e,t){return 1===t?String.fromCharCode(e[0],e[1]):3===t?String.fromCharCode(e[0],e[1],e[2],e[3]):String.fromCharCode.apply(null,e.subarray(0,t+1))}function n(e,t,n){let r=0;for(let i=n;i>=0;i--)r+=e[i]+t[i],e[i]=255&r,r>>=8}function i(e,t){let n=1;for(let r=t;r>=0&&n>0;r--)n+=e[r],e[r]=255&n,n>>=8}const o=16;class s{constructor(e){this.buffer=e,this.pos=0,this.end=e.length,this.tmpBuf=new Uint8Array(19)}readByte(){return this.pos>=this.end?-1:this.buffer[this.pos++]}readNumber(){let e,t=0;do{const n=this.readByte();if(n<0)throw new r.FormatError("unexpected EOF in bcmap");e=!(128&n),t=t<<7|127&n}while(!e);return t}readSigned(){const e=this.readNumber();return 1&e?~(e>>>1):e>>>1}readHex(e,t){e.set(this.buffer.subarray(this.pos,this.pos+t+1)),this.pos+=t+1}readHexNumber(e,t){let n;const i=this.tmpBuf;let o=0;do{const e=this.readByte();if(e<0)throw new r.FormatError("unexpected EOF in bcmap");n=!(128&e),i[o++]=127&e}while(!n);let s=t,a=0,l=0;for(;s>=0;){for(;l<8&&i.length>0;)a|=i[--o]<<l,l+=7;e[s]=255&a,s--,a>>=8,l-=8}}readHexSigned(e,t){this.readHexNumber(e,t);const n=1&e[t]?255:0;let r=0;for(let i=0;i<=t;i++)r=(1&r)<<8|e[i],e[i]=r>>1^n}readString(){const e=this.readNumber();let t="";for(let n=0;n<e;n++)t+=String.fromCharCode(this.readNumber());return t}}return class{async process(r,a,l){const c=new s(r),u=c.readByte();a.vertical=!!(1&u);let d=null;const h=new Uint8Array(o),p=new Uint8Array(o),f=new Uint8Array(o),g=new Uint8Array(o),m=new Uint8Array(o);let y,v;for(;(v=c.readByte())>=0;){const r=v>>5;if(7===r){switch(31&v){case 0:c.readString();break;case 1:d=c.readString()}continue}const s=!!(16&v),l=15&v;if(l+1>o)throw new Error("BinaryCMapReader.process: Invalid dataSize.");const u=1,_=c.readNumber();switch(r){case 0:c.readHex(h,l),c.readHexNumber(p,l),n(p,h,l),a.addCodespaceRange(l+1,e(h,l),e(p,l));for(let t=1;t<_;t++)i(p,l),c.readHexNumber(h,l),n(h,p,l),c.readHexNumber(p,l),n(p,h,l),a.addCodespaceRange(l+1,e(h,l),e(p,l));break;case 1:c.readHex(h,l),c.readHexNumber(p,l),n(p,h,l),c.readNumber();for(let e=1;e<_;e++)i(p,l),c.readHexNumber(h,l),n(h,p,l),c.readHexNumber(p,l),n(p,h,l),c.readNumber();break;case 2:c.readHex(f,l),y=c.readNumber(),a.mapOne(e(f,l),y);for(let t=1;t<_;t++)i(f,l),s||(c.readHexNumber(m,l),n(f,m,l)),y=c.readSigned()+(y+1),a.mapOne(e(f,l),y);break;case 3:c.readHex(h,l),c.readHexNumber(p,l),n(p,h,l),y=c.readNumber(),a.mapCidRange(e(h,l),e(p,l),y);for(let t=1;t<_;t++)i(p,l),s?h.set(p):(c.readHexNumber(h,l),n(h,p,l)),c.readHexNumber(p,l),n(p,h,l),y=c.readNumber(),a.mapCidRange(e(h,l),e(p,l),y);break;case 4:c.readHex(f,u),c.readHex(g,l),a.mapOne(e(f,u),t(g,l));for(let r=1;r<_;r++)i(f,u),s||(c.readHexNumber(m,u),n(f,m,u)),i(g,l),c.readHexSigned(m,l),n(g,m,l),a.mapOne(e(f,u),t(g,l));break;case 5:c.readHex(h,u),c.readHexNumber(p,u),n(p,h,u),c.readHex(g,l),a.mapBfRange(e(h,u),e(p,u),t(g,l));for(let r=1;r<_;r++)i(p,u),s?h.set(p):(c.readHexNumber(h,u),n(h,p,u)),c.readHexNumber(p,u),n(p,h,u),c.readHex(g,l),a.mapBfRange(e(h,u),e(p,u),t(g,l));break;default:throw new Error("BinaryCMapReader.process - unknown type: ".concat(r))}}return d?l(d):a}}}(),f=function(){function e(e){let t=0;for(let n=0;n<e.length;n++)t=t<<8|e.charCodeAt(n);return t>>>0}function t(e){if("string"!==typeof e)throw new r.FormatError("Malformed CMap: expected string.")}function n(e){if(!Number.isInteger(e))throw new r.FormatError("Malformed CMap: expected int.")}function u(n,r){for(;;){let o=r.getObj();if(o===i.EOF)break;if((0,i.isCmd)(o,"endbfchar"))return;t(o);const s=e(o);o=r.getObj(),t(o);const a=o;n.mapOne(s,a)}}function f(n,o){for(;;){let r=o.getObj();if(r===i.EOF)break;if((0,i.isCmd)(r,"endbfrange"))return;t(r);const s=e(r);r=o.getObj(),t(r);const a=e(r);if(r=o.getObj(),Number.isInteger(r)||"string"===typeof r){const e=Number.isInteger(r)?String.fromCharCode(r):r;n.mapBfRange(s,a,e)}else{if(!(0,i.isCmd)(r,"["))break;{r=o.getObj();const e=[];for(;!(0,i.isCmd)(r,"]")&&r!==i.EOF;)e.push(r),r=o.getObj();n.mapBfRangeToArray(s,a,e)}}}throw new r.FormatError("Invalid bf range.")}function g(r,o){for(;;){let s=o.getObj();if(s===i.EOF)break;if((0,i.isCmd)(s,"endcidchar"))return;t(s);const a=e(s);s=o.getObj(),n(s);const l=s;r.mapOne(a,l)}}function m(r,o){for(;;){let s=o.getObj();if(s===i.EOF)break;if((0,i.isCmd)(s,"endcidrange"))return;t(s);const a=e(s);s=o.getObj(),t(s);const l=e(s);s=o.getObj(),n(s);const c=s;r.mapCidRange(a,l,c)}}function y(t,n){for(;;){let r=n.getObj();if(r===i.EOF)break;if((0,i.isCmd)(r,"endcodespacerange"))return;if("string"!==typeof r)break;const o=e(r);if(r=n.getObj(),"string"!==typeof r)break;const s=e(r);t.addCodespaceRange(r.length,o,s)}throw new r.FormatError("Invalid codespace range.")}function v(e,t){const n=t.getObj();Number.isInteger(n)&&(e.vertical=!!n)}function _(e,t){const n=t.getObj();n instanceof i.Name&&(e.name=n.name)}async function b(e,t,n,o){let s,l;e:for(;;)try{const n=t.getObj();if(n===i.EOF)break;if(n instanceof i.Name)"WMode"===n.name?v(e,t):"CMapName"===n.name&&_(e,t),s=n;else if(n instanceof i.Cmd)switch(n.cmd){case"endcmap":break e;case"usecmap":s instanceof i.Name&&(l=s.name);break;case"begincodespacerange":y(e,t);break;case"beginbfchar":u(e,t);break;case"begincidchar":g(e,t);break;case"beginbfrange":f(e,t);break;case"begincidrange":m(e,t)}}catch(c){if(c instanceof a.MissingDataException)throw c;(0,r.warn)("Invalid cMap data: "+c);continue}return!o&&l&&(o=l),o?x(e,n,o):e}async function x(e,t,n){if(e.useCMap=await S(n,t),0===e.numCodespaceRanges){const t=e.useCMap.codespaceRanges;for(let n=0;n<t.length;n++)e.codespaceRanges[n]=t[n].slice();e.numCodespaceRanges=e.useCMap.numCodespaceRanges}return e.useCMap.forEach((function(t,n){e.contains(t)||e.mapOne(t,e.useCMap.lookup(t))})),e}async function S(e,t){if("Identity-H"===e)return new h(!1,2);if("Identity-V"===e)return new h(!0,2);if(!c.includes(e))throw new Error("Unknown CMap name: "+e);if(!t)throw new Error("Built-in CMap parameters are not provided.");const{cMapData:n,compressionType:i}=await t(e),o=new d(!0);if(i===r.CMapCompressionType.BINARY)return(new p).process(n,o,(e=>x(o,t,e)));if(i===r.CMapCompressionType.NONE){const e=new s.Lexer(new l.Stream(n));return b(o,e,t,null)}throw new Error('Invalid CMap "compressionType" value: '.concat(i))}return{async create(e){const t=e.encoding,n=e.fetchBuiltInCMap,r=e.useCMap;if(t instanceof i.Name)return S(t.name,n);if(t instanceof o.BaseStream){const e=await b(new d,new s.Lexer(t),n,r);return e.isIdentityCMap?S(e.name,n):e}throw new Error("Encoding required.")}}}();t.CMapFactory=f},(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.Parser=t.Linearization=t.Lexer=void 0;var r=n(2),i=n(3),o=n(4),s=n(16),a=n(18),l=n(19),c=n(21),u=n(22),d=n(25),h=n(27),p=n(29),f=n(8),g=n(30),m=n(31);class y{constructor(e){let{lexer:t,xref:n,allowStreams:r=!1,recoveryMode:i=!1}=e;this.lexer=t,this.xref=n,this.allowStreams=r,this.recoveryMode=i,this.imageCache=Object.create(null),this._imageId=0,this.refill()}refill(){this.buf1=this.lexer.getObj(),this.buf2=this.lexer.getObj()}shift(){this.buf2 instanceof i.Cmd&&"ID"===this.buf2.cmd?(this.buf1=this.buf2,this.buf2=null):(this.buf1=this.buf2,this.buf2=this.lexer.getObj())}tryShift(){try{return this.shift(),!0}catch(e){if(e instanceof o.MissingDataException)throw e;return!1}}getObj(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;const t=this.buf1;if(this.shift(),t instanceof i.Cmd)switch(t.cmd){case"BI":return this.makeInlineImage(e);case"[":const n=[];for(;!(0,i.isCmd)(this.buf1,"]")&&this.buf1!==i.EOF;)n.push(this.getObj(e));if(this.buf1===i.EOF){if(this.recoveryMode)return n;throw new o.ParserEOFException("End of file inside array.")}return this.shift(),n;case"<<":const s=new i.Dict(this.xref);for(;!(0,i.isCmd)(this.buf1,">>")&&this.buf1!==i.EOF;){if(!(this.buf1 instanceof i.Name)){(0,r.info)("Malformed dictionary: key must be a name object"),this.shift();continue}const t=this.buf1.name;if(this.shift(),this.buf1===i.EOF)break;s.set(t,this.getObj(e))}if(this.buf1===i.EOF){if(this.recoveryMode)return s;throw new o.ParserEOFException("End of file inside dictionary.")}return(0,i.isCmd)(this.buf2,"stream")?this.allowStreams?this.makeStream(s,e):s:(this.shift(),s);default:return t}if(Number.isInteger(t)){if(Number.isInteger(this.buf1)&&(0,i.isCmd)(this.buf2,"R")){const e=i.Ref.get(t,this.buf1);return this.shift(),this.shift(),e}return t}return"string"===typeof t&&e?e.decryptString(t):t}findDefaultInlineStreamEnd(e){const t=this.lexer,n=e.pos;let s,a,l=0;for(;-1!==(s=e.getByte());)if(0===l)l=69===s?1:0;else if(1===l)l=73===s?2:0;else if(32===s||10===s||13===s){a=e.pos;const n=e.peekBytes(10);for(let e=0,t=n.length;e<t;e++)if(s=n[e],(0!==s||0===n[e+1])&&10!==s&&13!==s&&(s<32||s>127)){l=0;break}if(2!==l)continue;if(t.knownCommands){const e=t.peekObj();e instanceof i.Cmd&&!t.knownCommands[e.cmd]&&(l=0)}else(0,r.warn)("findDefaultInlineStreamEnd - `lexer.knownCommands` is undefined.");if(2===l)break}else l=0;-1===s&&((0,r.warn)("findDefaultInlineStreamEnd: Reached the end of the stream without finding a valid EI marker"),a&&((0,r.warn)('... trying to recover by using the last "EI" occurrence.'),e.skip(-(e.pos-a))));let c=4;return e.skip(-c),s=e.peekByte(),e.skip(c),(0,o.isWhiteSpace)(s)||c--,e.pos-c-n}findDCTDecodeInlineStreamEnd(e){const t=e.pos;let n,i,o=!1;for(;-1!==(n=e.getByte());)if(255===n){switch(e.getByte()){case 0:break;case 255:e.skip(-1);break;case 217:o=!0;break;case 192:case 193:case 194:case 195:case 197:case 198:case 199:case 201:case 202:case 203:case 205:case 206:case 207:case 196:case 204:case 218:case 219:case 220:case 221:case 222:case 223:case 224:case 225:case 226:case 227:case 228:case 229:case 230:case 231:case 232:case 233:case 234:case 235:case 236:case 237:case 238:case 239:case 254:i=e.getUint16(),i>2?e.skip(i-2):e.skip(-2)}if(o)break}const s=e.pos-t;return-1===n?((0,r.warn)("Inline DCTDecode image stream: EOI marker not found, searching for /EI/ instead."),e.skip(-s),this.findDefaultInlineStreamEnd(e)):(this.inlineStreamSkipEI(e),s)}findASCII85DecodeInlineStreamEnd(e){const t=e.pos;let n;for(;-1!==(n=e.getByte());)if(126===n){const t=e.pos;for(n=e.peekByte();(0,o.isWhiteSpace)(n);)e.skip(),n=e.peekByte();if(62===n){e.skip();break}if(e.pos>t){const t=e.peekBytes(2);if(69===t[0]&&73===t[1])break}}const i=e.pos-t;return-1===n?((0,r.warn)("Inline ASCII85Decode image stream: EOD marker not found, searching for /EI/ instead."),e.skip(-i),this.findDefaultInlineStreamEnd(e)):(this.inlineStreamSkipEI(e),i)}findASCIIHexDecodeInlineStreamEnd(e){const t=e.pos;let n;for(;-1!==(n=e.getByte())&&62!==n;);const i=e.pos-t;return-1===n?((0,r.warn)("Inline ASCIIHexDecode image stream: EOD marker not found, searching for /EI/ instead."),e.skip(-i),this.findDefaultInlineStreamEnd(e)):(this.inlineStreamSkipEI(e),i)}inlineStreamSkipEI(e){let t,n=0;for(;-1!==(t=e.getByte());)if(0===n)n=69===t?1:0;else if(1===n)n=73===t?2:0;else if(2===n)break}makeInlineImage(e){const t=this.lexer,n=t.stream,o=Object.create(null);let s;for(;!(0,i.isCmd)(this.buf1,"ID")&&this.buf1!==i.EOF;){if(!(this.buf1 instanceof i.Name))throw new r.FormatError("Dictionary key must be a name object");const t=this.buf1.name;if(this.shift(),this.buf1===i.EOF)break;o[t]=this.getObj(e)}-1!==t.beginInlineImagePos&&(s=n.pos-t.beginInlineImagePos);const a=this.xref.fetchIfRef(o.F||o.Filter);let l;if(a instanceof i.Name)l=a.name;else if(Array.isArray(a)){const e=this.xref.fetchIfRef(a[0]);e instanceof i.Name&&(l=e.name)}const c=n.pos;let u,d;switch(l){case"DCT":case"DCTDecode":u=this.findDCTDecodeInlineStreamEnd(n);break;case"A85":case"ASCII85Decode":u=this.findASCII85DecodeInlineStreamEnd(n);break;case"AHx":case"ASCIIHexDecode":u=this.findASCIIHexDecodeInlineStreamEnd(n);break;default:u=this.findDefaultInlineStreamEnd(n)}if(u<1e3&&s>0){const e=n.pos;n.pos=t.beginInlineImagePos,d=function(e){const t=[],n=e.length;let r=0;for(;r<n-1;)t.push(e[r++]<<8|e[r++]);return r<n&&t.push(e[r]),n+"_"+String.fromCharCode.apply(null,t)}(n.getBytes(s+u)),n.pos=e;const r=this.imageCache[d];if(void 0!==r)return this.buf2=i.Cmd.get("EI"),this.shift(),r.reset(),r}const h=new i.Dict(this.xref);for(const r in o)h.set(r,o[r]);let p=n.makeSubStream(c,u,h);return e&&(p=e.createStream(p,u)),p=this.filter(p,h,u),p.dict=h,void 0!==d&&(p.cacheKey="inline_img_".concat(++this._imageId),this.imageCache[d]=p),this.buf2=i.Cmd.get("EI"),this.shift(),p}_findStreamLength(e,t){const{stream:n}=this.lexer;n.pos=e;const r=t.length;for(;n.pos<n.end;){const i=n.peekBytes(2048),o=i.length-r;if(o<=0)break;let s=0;for(;s<o;){let o=0;for(;o<r&&i[s+o]===t[o];)o++;if(o>=r)return n.pos+=s,n.pos-e;s++}n.pos+=o}return-1}makeStream(e,t){const n=this.lexer;let s=n.stream;n.skipToNextLine();const a=s.pos-1;let l=e.get("Length");if(Number.isInteger(l)||((0,r.info)('Bad length "'.concat(l&&l.toString(),'" in stream.')),l=0),s.pos=a+l,n.nextChar(),this.tryShift()&&(0,i.isCmd)(this.buf2,"endstream"))this.shift();else{const e=new Uint8Array([101,110,100,115,116,114,101,97,109]);let t=this._findStreamLength(a,e);if(t<0){const n=1;for(let i=1;i<=n;i++){const n=e.length-i,l=e.slice(0,n),c=this._findStreamLength(a,l);if(c>=0){const e=s.peekBytes(n+1)[n];if(!(0,o.isWhiteSpace)(e))break;(0,r.info)('Found "'.concat((0,r.bytesToString)(l),'" when ')+"searching for endstream command."),t=c;break}}if(t<0)throw new r.FormatError("Missing endstream command.")}l=t,n.nextChar(),this.shift(),this.shift()}return this.shift(),s=s.makeSubStream(a,l,e),t&&(s=t.createStream(s,l)),s=this.filter(s,e,l),s.dict=e,s}filter(e,t,n){let o=t.get("F","Filter"),s=t.get("DP","DecodeParms");if(o instanceof i.Name)return Array.isArray(s)&&(0,r.warn)("/DecodeParms should not be an Array, when /Filter is a Name."),this.makeFilter(e,o.name,n,s);let a=n;if(Array.isArray(o)){const t=o,n=s;for(let l=0,c=t.length;l<c;++l){if(o=this.xref.fetchIfRef(t[l]),!(o instanceof i.Name))throw new r.FormatError('Bad filter name "'.concat(o,'"'));s=null,Array.isArray(n)&&l in n&&(s=this.xref.fetchIfRef(n[l])),e=this.makeFilter(e,o.name,a,s),a=null}}return e}makeFilter(e,t,n,i){if(0===n)return(0,r.warn)('Empty "'.concat(t,'" stream.')),new f.NullStream;try{switch(t){case"Fl":case"FlateDecode":return i?new g.PredictorStream(new c.FlateStream(e,n),n,i):new c.FlateStream(e,n);case"LZW":case"LZWDecode":let t=1;return i?(i.has("EarlyChange")&&(t=i.get("EarlyChange")),new g.PredictorStream(new p.LZWStream(e,n,t),n,i)):new p.LZWStream(e,n,t);case"DCT":case"DCTDecode":return new d.JpegStream(e,n,i);case"JPX":case"JPXDecode":return new h.JpxStream(e,n,i);case"A85":case"ASCII85Decode":return new s.Ascii85Stream(e,n);case"AHx":case"ASCIIHexDecode":return new a.AsciiHexStream(e,n);case"CCF":case"CCITTFaxDecode":return new l.CCITTFaxStream(e,n,i);case"RL":case"RunLengthDecode":return new m.RunLengthStream(e,n);case"JBIG2Decode":return new u.Jbig2Stream(e,n,i)}return(0,r.warn)('Filter "'.concat(t,'" is not supported.')),e}catch(y){if(y instanceof o.MissingDataException)throw y;return(0,r.warn)('Invalid stream: "'.concat(y,'"')),new f.NullStream}}}t.Parser=y;const v=[1,0,0,0,0,0,0,0,0,1,1,0,1,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,2,0,0,2,2,0,0,0,0,0,2,0,0,0,0,0,0,0,0,0,0,0,0,2,0,2,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,0,2,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,0,2,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0];function _(e){return e>=48&&e<=57?15&e:e>=65&&e<=70||e>=97&&e<=102?9+(15&e):-1}class b{constructor(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;this.stream=e,this.nextChar(),this.strBuf=[],this.knownCommands=t,this._hexStringNumWarn=0,this.beginInlineImagePos=-1}nextChar(){return this.currentChar=this.stream.getByte()}peekChar(){return this.stream.peekByte()}getNumber(){let e=this.currentChar,t=!1,n=0,i=0;if(45===e?(i=-1,e=this.nextChar(),45===e&&(e=this.nextChar())):43===e&&(i=1,e=this.nextChar()),10===e||13===e)do{e=this.nextChar()}while(10===e||13===e);if(46===e&&(n=10,e=this.nextChar()),e<48||e>57){const t="Invalid number: ".concat(String.fromCharCode(e)," (charCode ").concat(e,")");if((0,o.isWhiteSpace)(e)||-1===e)return(0,r.info)('Lexer.getNumber - "'.concat(t,'".')),0;throw new r.FormatError(t)}i=i||1;let s=e-48,a=0,l=1;for(;(e=this.nextChar())>=0;)if(e>=48&&e<=57){const r=e-48;t?a=10*a+r:(0!==n&&(n*=10),s=10*s+r)}else if(46===e){if(0!==n)break;n=1}else if(45===e)(0,r.warn)("Badly formatted number: minus sign in the middle");else{if(69!==e&&101!==e)break;if(e=this.peekChar(),43===e||45===e)l=45===e?-1:1,this.nextChar();else if(e<48||e>57)break;t=!0}return 0!==n&&(s/=n),t&&(s*=10**(l*a)),i*s}getString(){let e=1,t=!1;const n=this.strBuf;n.length=0;let i=this.nextChar();for(;;){let o=!1;switch(0|i){case-1:(0,r.warn)("Unterminated string"),t=!0;break;case 40:++e,n.push("(");break;case 41:0===--e?(this.nextChar(),t=!0):n.push(")");break;case 92:switch(i=this.nextChar(),i){case-1:(0,r.warn)("Unterminated string"),t=!0;break;case 110:n.push("\n");break;case 114:n.push("\r");break;case 116:n.push("\t");break;case 98:n.push("\b");break;case 102:n.push("\f");break;case 92:case 40:case 41:n.push(String.fromCharCode(i));break;case 48:case 49:case 50:case 51:case 52:case 53:case 54:case 55:let e=15&i;i=this.nextChar(),o=!0,i>=48&&i<=55&&(e=(e<<3)+(15&i),i=this.nextChar(),i>=48&&i<=55&&(o=!1,e=(e<<3)+(15&i))),n.push(String.fromCharCode(e));break;case 13:10===this.peekChar()&&this.nextChar();break;case 10:break;default:n.push(String.fromCharCode(i))}break;default:n.push(String.fromCharCode(i))}if(t)break;o||(i=this.nextChar())}return n.join("")}getName(){let e,t;const n=this.strBuf;for(n.length=0;(e=this.nextChar())>=0&&!v[e];)if(35===e){if(e=this.nextChar(),v[e]){(0,r.warn)("Lexer_getName: NUMBER SIGN (#) should be followed by a hexadecimal number."),n.push("#");break}const i=_(e);if(-1!==i){t=e,e=this.nextChar();const o=_(e);if(-1===o){if((0,r.warn)("Lexer_getName: Illegal digit (".concat(String.fromCharCode(e),") ")+"in hexadecimal number."),n.push("#",String.fromCharCode(t)),v[e])break;n.push(String.fromCharCode(e));continue}n.push(String.fromCharCode(i<<4|o))}else n.push("#",String.fromCharCode(e))}else n.push(String.fromCharCode(e));return n.length>127&&(0,r.warn)("Name token is longer than allowed by the spec: ".concat(n.length)),i.Name.get(n.join(""))}_hexStringWarn(e){5!==this._hexStringNumWarn++?this._hexStringNumWarn>5||(0,r.warn)("getHexString - ignoring invalid character: ".concat(e)):(0,r.warn)("getHexString - ignoring additional invalid characters.")}getHexString(){const e=this.strBuf;e.length=0;let t,n,i=this.currentChar,o=!0;for(this._hexStringNumWarn=0;;){if(i<0){(0,r.warn)("Unterminated hex string");break}if(62===i){this.nextChar();break}if(1!==v[i]){if(o){if(t=_(i),-1===t){this._hexStringWarn(i),i=this.nextChar();continue}}else{if(n=_(i),-1===n){this._hexStringWarn(i),i=this.nextChar();continue}e.push(String.fromCharCode(t<<4|n))}o=!o,i=this.nextChar()}else i=this.nextChar()}return e.join("")}getObj(){let e=!1,t=this.currentChar;for(;;){if(t<0)return i.EOF;if(e)10!==t&&13!==t||(e=!1);else if(37===t)e=!0;else if(1!==v[t])break;t=this.nextChar()}switch(0|t){case 48:case 49:case 50:case 51:case 52:case 53:case 54:case 55:case 56:case 57:case 43:case 45:case 46:return this.getNumber();case 40:return this.getString();case 47:return this.getName();case 91:return this.nextChar(),i.Cmd.get("[");case 93:return this.nextChar(),i.Cmd.get("]");case 60:return t=this.nextChar(),60===t?(this.nextChar(),i.Cmd.get("<<")):this.getHexString();case 62:return t=this.nextChar(),62===t?(this.nextChar(),i.Cmd.get(">>")):i.Cmd.get(">");case 123:return this.nextChar(),i.Cmd.get("{");case 125:return this.nextChar(),i.Cmd.get("}");case 41:throw this.nextChar(),new r.FormatError("Illegal character: ".concat(t))}let n=String.fromCharCode(t);if(t<32||t>127){const e=this.peekChar();if(e>=32&&e<=127)return this.nextChar(),i.Cmd.get(n)}const o=this.knownCommands;let s=o&&void 0!==o[n];for(;(t=this.nextChar())>=0&&!v[t];){const e=n+String.fromCharCode(t);if(s&&void 0===o[e])break;if(128===n.length)throw new r.FormatError("Command token too long: ".concat(n.length));n=e,s=o&&void 0!==o[n]}return"true"===n||"false"!==n&&("null"===n?null:("BI"===n&&(this.beginInlineImagePos=this.stream.pos),i.Cmd.get(n)))}peekObj(){const e=this.stream.pos,t=this.currentChar,n=this.beginInlineImagePos;let i;try{i=this.getObj()}catch(s){if(s instanceof o.MissingDataException)throw s;(0,r.warn)("peekObj: ".concat(s))}return this.stream.pos=e,this.currentChar=t,this.beginInlineImagePos=n,i}skipToNextLine(){let e=this.currentChar;for(;e>=0;){if(13===e){e=this.nextChar(),10===e&&this.nextChar();break}if(10===e){this.nextChar();break}e=this.nextChar()}}}t.Lexer=b,t.Linearization=class{static create(e){function t(e,t){let n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];const r=e.get(t);if(Number.isInteger(r)&&(n?r>=0:r>0))return r;throw new Error('The "'.concat(t,'" parameter in the linearization ')+"dictionary is invalid.")}const n=new y({lexer:new b(e),xref:null}),r=n.getObj(),o=n.getObj(),s=n.getObj(),a=n.getObj();let l,c;if(!(Number.isInteger(r)&&Number.isInteger(o)&&(0,i.isCmd)(s,"obj")&&a instanceof i.Dict&&"number"===typeof(l=a.get("Linearized"))&&l>0))return null;if((c=t(a,"L"))!==e.length)throw new Error('The "L" parameter in the linearization dictionary does not equal the stream length.');return{length:c,hints:function(e){const t=e.get("H");let n;if(Array.isArray(t)&&(2===(n=t.length)||4===n)){for(let e=0;e<n;e++){const n=t[e];if(!(Number.isInteger(n)&&n>0))throw new Error("Hint (".concat(e,") in the linearization dictionary is invalid."))}return t}throw new Error("Hint array in the linearization dictionary is invalid.")}(a),objectNumberFirst:t(a,"O"),endFirst:t(a,"E"),numPages:t(a,"N"),mainXRefEntriesOffset:t(a,"T"),pageFirst:a.has("P")?t(a,"P",!0):0}}}},(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.Ascii85Stream=void 0;var r=n(17),i=n(4);class o extends r.DecodeStream{constructor(e,t){t&&(t*=.8),super(t),this.str=e,this.dict=e.dict,this.input=new Uint8Array(5)}readBlock(){const e=this.str;let t=e.getByte();for(;(0,i.isWhiteSpace)(t);)t=e.getByte();if(-1===t||126===t)return void(this.eof=!0);const n=this.bufferLength;let r,o;if(122===t){for(r=this.ensureBuffer(n+4),o=0;o<4;++o)r[n+o]=0;this.bufferLength+=4}else{const s=this.input;for(s[0]=t,o=1;o<5;++o){for(t=e.getByte();(0,i.isWhiteSpace)(t);)t=e.getByte();if(s[o]=t,-1===t||126===t)break}if(r=this.ensureBuffer(n+o-1),this.bufferLength+=o-1,o<5){for(;o<5;++o)s[o]=117;this.eof=!0}let a=0;for(o=0;o<5;++o)a=85*a+(s[o]-33);for(o=3;o>=0;--o)r[n+o]=255&a,a>>=8}}}t.Ascii85Stream=o},(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.StreamsSequenceStream=t.DecodeStream=void 0;var r=n(5),i=n(8);const o=new Uint8Array(0);class s extends r.BaseStream{constructor(e){if(super(),this._rawMinBufferLength=e||0,this.pos=0,this.bufferLength=0,this.eof=!1,this.buffer=o,this.minBufferLength=512,e)for(;this.minBufferLength<e;)this.minBufferLength*=2}get isEmpty(){for(;!this.eof&&0===this.bufferLength;)this.readBlock();return 0===this.bufferLength}ensureBuffer(e){const t=this.buffer;if(e<=t.byteLength)return t;let n=this.minBufferLength;for(;n<e;)n*=2;const r=new Uint8Array(n);return r.set(t),this.buffer=r}getByte(){const e=this.pos;for(;this.bufferLength<=e;){if(this.eof)return-1;this.readBlock()}return this.buffer[this.pos++]}getBytes(e){const t=this.pos;let n;if(e){for(this.ensureBuffer(t+e),n=t+e;!this.eof&&this.bufferLength<n;)this.readBlock();const r=this.bufferLength;n>r&&(n=r)}else{for(;!this.eof;)this.readBlock();n=this.bufferLength}return this.pos=n,this.buffer.subarray(t,n)}reset(){this.pos=0}makeSubStream(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;if(void 0===t)for(;!this.eof;)this.readBlock();else{const n=e+t;for(;this.bufferLength<=n&&!this.eof;)this.readBlock()}return new i.Stream(this.buffer,e,t,n)}getBaseStreams(){return this.str?this.str.getBaseStreams():null}}t.DecodeStream=s,t.StreamsSequenceStream=class extends s{constructor(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=0;for(const r of e)n+=r instanceof s?r._rawMinBufferLength:r.length;super(n),this.streams=e,this._onError=t}readBlock(){const e=this.streams;if(0===e.length)return void(this.eof=!0);const t=e.shift();let n;try{n=t.getBytes()}catch(o){if(this._onError)return void this._onError(o,t.dict&&t.dict.objId);throw o}const r=this.bufferLength,i=r+n.length;this.ensureBuffer(i).set(n,r),this.bufferLength=i}getBaseStreams(){const e=[];for(const t of this.streams){const n=t.getBaseStreams();n&&e.push(...n)}return e.length>0?e:null}}},(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.AsciiHexStream=void 0;var r=n(17);class i extends r.DecodeStream{constructor(e,t){t&&(t*=.5),super(t),this.str=e,this.dict=e.dict,this.firstDigit=-1}readBlock(){const e=this.str.getBytes(8e3);if(!e.length)return void(this.eof=!0);const t=e.length+1>>1,n=this.ensureBuffer(this.bufferLength+t);let r=this.bufferLength,i=this.firstDigit;for(const o of e){let e;if(o>=48&&o<=57)e=15&o;else{if(!(o>=65&&o<=70||o>=97&&o<=102)){if(62===o){this.eof=!0;break}continue}e=9+(15&o)}i<0?i=e:(n[r++]=i<<4|e,i=-1)}i>=0&&this.eof&&(n[r++]=i<<4,i=-1),this.firstDigit=i,this.bufferLength=r}}t.AsciiHexStream=i},(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.CCITTFaxStream=void 0;var r=n(20),i=n(17),o=n(3);class s extends i.DecodeStream{constructor(e,t,n){super(t),this.str=e,this.dict=e.dict,n instanceof o.Dict||(n=o.Dict.empty);const i={next:()=>e.getByte()};this.ccittFaxDecoder=new r.CCITTFaxDecoder(i,{K:n.get("K"),EndOfLine:n.get("EndOfLine"),EncodedByteAlign:n.get("EncodedByteAlign"),Columns:n.get("Columns"),Rows:n.get("Rows"),EndOfBlock:n.get("EndOfBlock"),BlackIs1:n.get("BlackIs1")})}readBlock(){for(;!this.eof;){const e=this.ccittFaxDecoder.readNextChar();if(-1===e)return void(this.eof=!0);this.ensureBuffer(this.bufferLength+1),this.buffer[this.bufferLength++]=e}}}t.CCITTFaxStream=s},(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.CCITTFaxDecoder=void 0;var r=n(2);const i=-1,o=[[-1,-1],[-1,-1],[7,8],[7,7],[6,6],[6,6],[6,5],[6,5],[4,0],[4,0],[4,0],[4,0],[4,0],[4,0],[4,0],[4,0],[3,1],[3,1],[3,1],[3,1],[3,1],[3,1],[3,1],[3,1],[3,1],[3,1],[3,1],[3,1],[3,1],[3,1],[3,1],[3,1],[3,4],[3,4],[3,4],[3,4],[3,4],[3,4],[3,4],[3,4],[3,4],[3,4],[3,4],[3,4],[3,4],[3,4],[3,4],[3,4],[3,3],[3,3],[3,3],[3,3],[3,3],[3,3],[3,3],[3,3],[3,3],[3,3],[3,3],[3,3],[3,3],[3,3],[3,3],[3,3],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2]],s=[[-1,-1],[12,-2],[-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],[11,1792],[11,1792],[12,1984],[12,2048],[12,2112],[12,2176],[12,2240],[12,2304],[11,1856],[11,1856],[11,1920],[11,1920],[12,2368],[12,2432],[12,2496],[12,2560]],a=[[-1,-1],[-1,-1],[-1,-1],[-1,-1],[8,29],[8,29],[8,30],[8,30],[8,45],[8,45],[8,46],[8,46],[7,22],[7,22],[7,22],[7,22],[7,23],[7,23],[7,23],[7,23],[8,47],[8,47],[8,48],[8,48],[6,13],[6,13],[6,13],[6,13],[6,13],[6,13],[6,13],[6,13],[7,20],[7,20],[7,20],[7,20],[8,33],[8,33],[8,34],[8,34],[8,35],[8,35],[8,36],[8,36],[8,37],[8,37],[8,38],[8,38],[7,19],[7,19],[7,19],[7,19],[8,31],[8,31],[8,32],[8,32],[6,1],[6,1],[6,1],[6,1],[6,1],[6,1],[6,1],[6,1],[6,12],[6,12],[6,12],[6,12],[6,12],[6,12],[6,12],[6,12],[8,53],[8,53],[8,54],[8,54],[7,26],[7,26],[7,26],[7,26],[8,39],[8,39],[8,40],[8,40],[8,41],[8,41],[8,42],[8,42],[8,43],[8,43],[8,44],[8,44],[7,21],[7,21],[7,21],[7,21],[7,28],[7,28],[7,28],[7,28],[8,61],[8,61],[8,62],[8,62],[8,63],[8,63],[8,0],[8,0],[8,320],[8,320],[8,384],[8,384],[5,10],[5,10],[5,10],[5,10],[5,10],[5,10],[5,10],[5,10],[5,10],[5,10],[5,10],[5,10],[5,10],[5,10],[5,10],[5,10],[5,11],[5,11],[5,11],[5,11],[5,11],[5,11],[5,11],[5,11],[5,11],[5,11],[5,11],[5,11],[5,11],[5,11],[5,11],[5,11],[7,27],[7,27],[7,27],[7,27],[8,59],[8,59],[8,60],[8,60],[9,1472],[9,1536],[9,1600],[9,1728],[7,18],[7,18],[7,18],[7,18],[7,24],[7,24],[7,24],[7,24],[8,49],[8,49],[8,50],[8,50],[8,51],[8,51],[8,52],[8,52],[7,25],[7,25],[7,25],[7,25],[8,55],[8,55],[8,56],[8,56],[8,57],[8,57],[8,58],[8,58],[6,192],[6,192],[6,192],[6,192],[6,192],[6,192],[6,192],[6,192],[6,1664],[6,1664],[6,1664],[6,1664],[6,1664],[6,1664],[6,1664],[6,1664],[8,448],[8,448],[8,512],[8,512],[9,704],[9,768],[8,640],[8,640],[8,576],[8,576],[9,832],[9,896],[9,960],[9,1024],[9,1088],[9,1152],[9,1216],[9,1280],[9,1344],[9,1408],[7,256],[7,256],[7,256],[7,256],[4,2],[4,2],[4,2],[4,2],[4,2],[4,2],[4,2],[4,2],[4,2],[4,2],[4,2],[4,2],[4,2],[4,2],[4,2],[4,2],[4,2],[4,2],[4,2],[4,2],[4,2],[4,2],[4,2],[4,2],[4,2],[4,2],[4,2],[4,2],[4,2],[4,2],[4,2],[4,2],[4,3],[4,3],[4,3],[4,3],[4,3],[4,3],[4,3],[4,3],[4,3],[4,3],[4,3],[4,3],[4,3],[4,3],[4,3],[4,3],[4,3],[4,3],[4,3],[4,3],[4,3],[4,3],[4,3],[4,3],[4,3],[4,3],[4,3],[4,3],[4,3],[4,3],[4,3],[4,3],[5,128],[5,128],[5,128],[5,128],[5,128],[5,128],[5,128],[5,128],[5,128],[5,128],[5,128],[5,128],[5,128],[5,128],[5,128],[5,128],[5,8],[5,8],[5,8],[5,8],[5,8],[5,8],[5,8],[5,8],[5,8],[5,8],[5,8],[5,8],[5,8],[5,8],[5,8],[5,8],[5,9],[5,9],[5,9],[5,9],[5,9],[5,9],[5,9],[5,9],[5,9],[5,9],[5,9],[5,9],[5,9],[5,9],[5,9],[5,9],[6,16],[6,16],[6,16],[6,16],[6,16],[6,16],[6,16],[6,16],[6,17],[6,17],[6,17],[6,17],[6,17],[6,17],[6,17],[6,17],[4,4],[4,4],[4,4],[4,4],[4,4],[4,4],[4,4],[4,4],[4,4],[4,4],[4,4],[4,4],[4,4],[4,4],[4,4],[4,4],[4,4],[4,4],[4,4],[4,4],[4,4],[4,4],[4,4],[4,4],[4,4],[4,4],[4,4],[4,4],[4,4],[4,4],[4,4],[4,4],[4,5],[4,5],[4,5],[4,5],[4,5],[4,5],[4,5],[4,5],[4,5],[4,5],[4,5],[4,5],[4,5],[4,5],[4,5],[4,5],[4,5],[4,5],[4,5],[4,5],[4,5],[4,5],[4,5],[4,5],[4,5],[4,5],[4,5],[4,5],[4,5],[4,5],[4,5],[4,5],[6,14],[6,14],[6,14],[6,14],[6,14],[6,14],[6,14],[6,14],[6,15],[6,15],[6,15],[6,15],[6,15],[6,15],[6,15],[6,15],[5,64],[5,64],[5,64],[5,64],[5,64],[5,64],[5,64],[5,64],[5,64],[5,64],[5,64],[5,64],[5,64],[5,64],[5,64],[5,64],[4,6],[4,6],[4,6],[4,6],[4,6],[4,6],[4,6],[4,6],[4,6],[4,6],[4,6],[4,6],[4,6],[4,6],[4,6],[4,6],[4,6],[4,6],[4,6],[4,6],[4,6],[4,6],[4,6],[4,6],[4,6],[4,6],[4,6],[4,6],[4,6],[4,6],[4,6],[4,6],[4,7],[4,7],[4,7],[4,7],[4,7],[4,7],[4,7],[4,7],[4,7],[4,7],[4,7],[4,7],[4,7],[4,7],[4,7],[4,7],[4,7],[4,7],[4,7],[4,7],[4,7],[4,7],[4,7],[4,7],[4,7],[4,7],[4,7],[4,7],[4,7],[4,7],[4,7],[4,7]],l=[[-1,-1],[-1,-1],[12,-2],[12,-2],[-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],[-1,-1],[-1,-1],[-1,-1],[-1,-1],[-1,-1],[-1,-1],[-1,-1],[-1,-1],[-1,-1],[-1,-1],[-1,-1],[-1,-1],[11,1792],[11,1792],[11,1792],[11,1792],[12,1984],[12,1984],[12,2048],[12,2048],[12,2112],[12,2112],[12,2176],[12,2176],[12,2240],[12,2240],[12,2304],[12,2304],[11,1856],[11,1856],[11,1856],[11,1856],[11,1920],[11,1920],[11,1920],[11,1920],[12,2368],[12,2368],[12,2432],[12,2432],[12,2496],[12,2496],[12,2560],[12,2560],[10,18],[10,18],[10,18],[10,18],[10,18],[10,18],[10,18],[10,18],[12,52],[12,52],[13,640],[13,704],[13,768],[13,832],[12,55],[12,55],[12,56],[12,56],[13,1280],[13,1344],[13,1408],[13,1472],[12,59],[12,59],[12,60],[12,60],[13,1536],[13,1600],[11,24],[11,24],[11,24],[11,24],[11,25],[11,25],[11,25],[11,25],[13,1664],[13,1728],[12,320],[12,320],[12,384],[12,384],[12,448],[12,448],[13,512],[13,576],[12,53],[12,53],[12,54],[12,54],[13,896],[13,960],[13,1024],[13,1088],[13,1152],[13,1216],[10,64],[10,64],[10,64],[10,64],[10,64],[10,64],[10,64],[10,64]],c=[[8,13],[8,13],[8,13],[8,13],[8,13],[8,13],[8,13],[8,13],[8,13],[8,13],[8,13],[8,13],[8,13],[8,13],[8,13],[8,13],[11,23],[11,23],[12,50],[12,51],[12,44],[12,45],[12,46],[12,47],[12,57],[12,58],[12,61],[12,256],[10,16],[10,16],[10,16],[10,16],[10,17],[10,17],[10,17],[10,17],[12,48],[12,49],[12,62],[12,63],[12,30],[12,31],[12,32],[12,33],[12,40],[12,41],[11,22],[11,22],[8,14],[8,14],[8,14],[8,14],[8,14],[8,14],[8,14],[8,14],[8,14],[8,14],[8,14],[8,14],[8,14],[8,14],[8,14],[8,14],[7,10],[7,10],[7,10],[7,10],[7,10],[7,10],[7,10],[7,10],[7,10],[7,10],[7,10],[7,10],[7,10],[7,10],[7,10],[7,10],[7,10],[7,10],[7,10],[7,10],[7,10],[7,10],[7,10],[7,10],[7,10],[7,10],[7,10],[7,10],[7,10],[7,10],[7,10],[7,10],[7,11],[7,11],[7,11],[7,11],[7,11],[7,11],[7,11],[7,11],[7,11],[7,11],[7,11],[7,11],[7,11],[7,11],[7,11],[7,11],[7,11],[7,11],[7,11],[7,11],[7,11],[7,11],[7,11],[7,11],[7,11],[7,11],[7,11],[7,11],[7,11],[7,11],[7,11],[7,11],[9,15],[9,15],[9,15],[9,15],[9,15],[9,15],[9,15],[9,15],[12,128],[12,192],[12,26],[12,27],[12,28],[12,29],[11,19],[11,19],[11,20],[11,20],[12,34],[12,35],[12,36],[12,37],[12,38],[12,39],[11,21],[11,21],[12,42],[12,43],[10,0],[10,0],[10,0],[10,0],[7,12],[7,12],[7,12],[7,12],[7,12],[7,12],[7,12],[7,12],[7,12],[7,12],[7,12],[7,12],[7,12],[7,12],[7,12],[7,12],[7,12],[7,12],[7,12],[7,12],[7,12],[7,12],[7,12],[7,12],[7,12],[7,12],[7,12],[7,12],[7,12],[7,12],[7,12],[7,12]],u=[[-1,-1],[-1,-1],[-1,-1],[-1,-1],[6,9],[6,8],[5,7],[5,7],[4,6],[4,6],[4,6],[4,6],[4,5],[4,5],[4,5],[4,5],[3,1],[3,1],[3,1],[3,1],[3,1],[3,1],[3,1],[3,1],[3,4],[3,4],[3,4],[3,4],[3,4],[3,4],[3,4],[3,4],[2,3],[2,3],[2,3],[2,3],[2,3],[2,3],[2,3],[2,3],[2,3],[2,3],[2,3],[2,3],[2,3],[2,3],[2,3],[2,3],[2,2],[2,2],[2,2],[2,2],[2,2],[2,2],[2,2],[2,2],[2,2],[2,2],[2,2],[2,2],[2,2],[2,2],[2,2],[2,2]];t.CCITTFaxDecoder=class{constructor(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!e||"function"!==typeof e.next)throw new Error('CCITTFaxDecoder - invalid "source" parameter.');this.source=e,this.eof=!1,this.encoding=t.K||0,this.eoline=t.EndOfLine||!1,this.byteAlign=t.EncodedByteAlign||!1,this.columns=t.Columns||1728,this.rows=t.Rows||0;let n,r=t.EndOfBlock;for(null!==r&&void 0!==r||(r=!0),this.eoblock=r,this.black=t.BlackIs1||!1,this.codingLine=new Uint32Array(this.columns+1),this.refLine=new Uint32Array(this.columns+2),this.codingLine[0]=this.columns,this.codingPos=0,this.row=0,this.nextLine2D=this.encoding<0,this.inputBits=0,this.inputBuf=0,this.outputBits=0,this.rowsDone=!1;0===(n=this._lookBits(12));)this._eatBits(1);1===n&&this._eatBits(12),this.encoding>0&&(this.nextLine2D=!this._lookBits(1),this._eatBits(1))}readNextChar(){if(this.eof)return-1;const e=this.refLine,t=this.codingLine,n=this.columns;let o,s,a,l,c;if(0===this.outputBits){if(this.rowsDone&&(this.eof=!0),this.eof)return-1;let a,c,u;if(this.err=!1,this.nextLine2D){for(l=0;t[l]<n;++l)e[l]=t[l];for(e[l++]=n,e[l]=n,t[0]=0,this.codingPos=0,o=0,s=0;t[this.codingPos]<n;)switch(a=this._getTwoDimCode(),a){case 0:this._addPixels(e[o+1],s),e[o+1]<n&&(o+=2);break;case 1:if(a=c=0,s){do{a+=u=this._getBlackCode()}while(u>=64);do{c+=u=this._getWhiteCode()}while(u>=64)}else{do{a+=u=this._getWhiteCode()}while(u>=64);do{c+=u=this._getBlackCode()}while(u>=64)}for(this._addPixels(t[this.codingPos]+a,s),t[this.codingPos]<n&&this._addPixels(t[this.codingPos]+c,1^s);e[o]<=t[this.codingPos]&&e[o]<n;)o+=2;break;case 7:if(this._addPixels(e[o]+3,s),s^=1,t[this.codingPos]<n)for(++o;e[o]<=t[this.codingPos]&&e[o]<n;)o+=2;break;case 5:if(this._addPixels(e[o]+2,s),s^=1,t[this.codingPos]<n)for(++o;e[o]<=t[this.codingPos]&&e[o]<n;)o+=2;break;case 3:if(this._addPixels(e[o]+1,s),s^=1,t[this.codingPos]<n)for(++o;e[o]<=t[this.codingPos]&&e[o]<n;)o+=2;break;case 2:if(this._addPixels(e[o],s),s^=1,t[this.codingPos]<n)for(++o;e[o]<=t[this.codingPos]&&e[o]<n;)o+=2;break;case 8:if(this._addPixelsNeg(e[o]-3,s),s^=1,t[this.codingPos]<n)for(o>0?--o:++o;e[o]<=t[this.codingPos]&&e[o]<n;)o+=2;break;case 6:if(this._addPixelsNeg(e[o]-2,s),s^=1,t[this.codingPos]<n)for(o>0?--o:++o;e[o]<=t[this.codingPos]&&e[o]<n;)o+=2;break;case 4:if(this._addPixelsNeg(e[o]-1,s),s^=1,t[this.codingPos]<n)for(o>0?--o:++o;e[o]<=t[this.codingPos]&&e[o]<n;)o+=2;break;case i:this._addPixels(n,0),this.eof=!0;break;default:(0,r.info)("bad 2d code"),this._addPixels(n,0),this.err=!0}}else for(t[0]=0,this.codingPos=0,s=0;t[this.codingPos]<n;){if(a=0,s)do{a+=u=this._getBlackCode()}while(u>=64);else do{a+=u=this._getWhiteCode()}while(u>=64);this._addPixels(t[this.codingPos]+a,s),s^=1}let d=!1;if(this.byteAlign&&(this.inputBits&=-8),this.eoblock||this.row!==this.rows-1){if(a=this._lookBits(12),this.eoline)for(;a!==i&&1!==a;)this._eatBits(1),a=this._lookBits(12);else for(;0===a;)this._eatBits(1),a=this._lookBits(12);1===a?(this._eatBits(12),d=!0):a===i&&(this.eof=!0)}else this.rowsDone=!0;if(!this.eof&&this.encoding>0&&!this.rowsDone&&(this.nextLine2D=!this._lookBits(1),this._eatBits(1)),this.eoblock&&d&&this.byteAlign){if(a=this._lookBits(12),1===a){if(this._eatBits(12),this.encoding>0&&(this._lookBits(1),this._eatBits(1)),this.encoding>=0)for(l=0;l<4;++l)a=this._lookBits(12),1!==a&&(0,r.info)("bad rtc code: "+a),this._eatBits(12),this.encoding>0&&(this._lookBits(1),this._eatBits(1));this.eof=!0}}else if(this.err&&this.eoline){for(;;){if(a=this._lookBits(13),a===i)return this.eof=!0,-1;if(a>>1===1)break;this._eatBits(1)}this._eatBits(12),this.encoding>0&&(this._eatBits(1),this.nextLine2D=!(1&a))}t[0]>0?this.outputBits=t[this.codingPos=0]:this.outputBits=t[this.codingPos=1],this.row++}if(this.outputBits>=8)c=1&this.codingPos?0:255,this.outputBits-=8,0===this.outputBits&&t[this.codingPos]<n&&(this.codingPos++,this.outputBits=t[this.codingPos]-t[this.codingPos-1]);else{a=8,c=0;do{if("number"!==typeof this.outputBits)throw new r.FormatError('Invalid /CCITTFaxDecode data, "outputBits" must be a number.');this.outputBits>a?(c<<=a,1&this.codingPos||(c|=255>>8-a),this.outputBits-=a,a=0):(c<<=this.outputBits,1&this.codingPos||(c|=255>>8-this.outputBits),a-=this.outputBits,this.outputBits=0,t[this.codingPos]<n?(this.codingPos++,this.outputBits=t[this.codingPos]-t[this.codingPos-1]):a>0&&(c<<=a,a=0))}while(a)}return this.black&&(c^=255),c}_addPixels(e,t){const n=this.codingLine;let i=this.codingPos;e>n[i]&&(e>this.columns&&((0,r.info)("row is wrong length"),this.err=!0,e=this.columns),1&i^t&&++i,n[i]=e),this.codingPos=i}_addPixelsNeg(e,t){const n=this.codingLine;let i=this.codingPos;if(e>n[i])e>this.columns&&((0,r.info)("row is wrong length"),this.err=!0,e=this.columns),1&i^t&&++i,n[i]=e;else if(e<n[i]){for(e<0&&((0,r.info)("invalid code"),this.err=!0,e=0);i>0&&e<n[i-1];)--i;n[i]=e}this.codingPos=i}_findTableCode(e,t,n,r){const o=r||0;for(let s=e;s<=t;++s){let e=this._lookBits(s);if(e===i)return[!0,1,!1];if(s<t&&(e<<=t-s),!o||e>=o){const t=n[e-o];if(t[0]===s)return this._eatBits(s),[!0,t[1],!0]}}return[!1,0,!1]}_getTwoDimCode(){let e,t=0;if(this.eoblock){if(t=this._lookBits(7),e=o[t],e&&e[0]>0)return this._eatBits(e[0]),e[1]}else{const e=this._findTableCode(1,7,o);if(e[0]&&e[2])return e[1]}return(0,r.info)("Bad two dim code"),i}_getWhiteCode(){let e,t=0;if(this.eoblock){if(t=this._lookBits(12),t===i)return 1;if(e=t>>5===0?s[t]:a[t>>3],e[0]>0)return this._eatBits(e[0]),e[1]}else{let e=this._findTableCode(1,9,a);if(e[0])return e[1];if(e=this._findTableCode(11,12,s),e[0])return e[1]}return(0,r.info)("bad white code"),this._eatBits(1),1}_getBlackCode(){let e,t;if(this.eoblock){if(e=this._lookBits(13),e===i)return 1;if(t=e>>7===0?l[e]:e>>9===0&&e>>7!==0?c[(e>>1)-64]:u[e>>7],t[0]>0)return this._eatBits(t[0]),t[1]}else{let e=this._findTableCode(2,6,u);if(e[0])return e[1];if(e=this._findTableCode(7,12,c,64),e[0])return e[1];if(e=this._findTableCode(10,13,l),e[0])return e[1]}return(0,r.info)("bad black code"),this._eatBits(1),1}_lookBits(e){let t;for(;this.inputBits<e;){if(-1===(t=this.source.next()))return 0===this.inputBits?i:this.inputBuf<<e-this.inputBits&65535>>16-e;this.inputBuf=this.inputBuf<<8|t,this.inputBits+=8}return this.inputBuf>>this.inputBits-e&65535>>16-e}_eatBits(e){(this.inputBits-=e)<0&&(this.inputBits=0)}}},(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.FlateStream=void 0;var r=n(17),i=n(2);const o=new Int32Array([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),s=new Int32Array([3,4,5,6,7,8,9,10,65547,65549,65551,65553,131091,131095,131099,131103,196643,196651,196659,196667,262211,262227,262243,262259,327811,327843,327875,327907,258,258,258]),a=new Int32Array([1,2,3,4,65541,65543,131081,131085,196625,196633,262177,262193,327745,327777,393345,393409,459009,459137,524801,525057,590849,591361,657409,658433,724993,727041,794625,798721,868353,876545]),l=[new Int32Array([459008,524368,524304,524568,459024,524400,524336,590016,459016,524384,524320,589984,524288,524416,524352,590048,459012,524376,524312,589968,459028,524408,524344,590032,459020,524392,524328,59e4,524296,524424,524360,590064,459010,524372,524308,524572,459026,524404,524340,590024,459018,524388,524324,589992,524292,524420,524356,590056,459014,524380,524316,589976,459030,524412,524348,590040,459022,524396,524332,590008,524300,524428,524364,590072,459009,524370,524306,524570,459025,524402,524338,590020,459017,524386,524322,589988,524290,524418,524354,590052,459013,524378,524314,589972,459029,524410,524346,590036,459021,524394,524330,590004,524298,524426,524362,590068,459011,524374,524310,524574,459027,524406,524342,590028,459019,524390,524326,589996,524294,524422,524358,590060,459015,524382,524318,589980,459031,524414,524350,590044,459023,524398,524334,590012,524302,524430,524366,590076,459008,524369,524305,524569,459024,524401,524337,590018,459016,524385,524321,589986,524289,524417,524353,590050,459012,524377,524313,589970,459028,524409,524345,590034,459020,524393,524329,590002,524297,524425,524361,590066,459010,524373,524309,524573,459026,524405,524341,590026,459018,524389,524325,589994,524293,524421,524357,590058,459014,524381,524317,589978,459030,524413,524349,590042,459022,524397,524333,590010,524301,524429,524365,590074,459009,524371,524307,524571,459025,524403,524339,590022,459017,524387,524323,589990,524291,524419,524355,590054,459013,524379,524315,589974,459029,524411,524347,590038,459021,524395,524331,590006,524299,524427,524363,590070,459011,524375,524311,524575,459027,524407,524343,590030,459019,524391,524327,589998,524295,524423,524359,590062,459015,524383,524319,589982,459031,524415,524351,590046,459023,524399,524335,590014,524303,524431,524367,590078,459008,524368,524304,524568,459024,524400,524336,590017,459016,524384,524320,589985,524288,524416,524352,590049,459012,524376,524312,589969,459028,524408,524344,590033,459020,524392,524328,590001,524296,524424,524360,590065,459010,524372,524308,524572,459026,524404,524340,590025,459018,524388,524324,589993,524292,524420,524356,590057,459014,524380,524316,589977,459030,524412,524348,590041,459022,524396,524332,590009,524300,524428,524364,590073,459009,524370,524306,524570,459025,524402,524338,590021,459017,524386,524322,589989,524290,524418,524354,590053,459013,524378,524314,589973,459029,524410,524346,590037,459021,524394,524330,590005,524298,524426,524362,590069,459011,524374,524310,524574,459027,524406,524342,590029,459019,524390,524326,589997,524294,524422,524358,590061,459015,524382,524318,589981,459031,524414,524350,590045,459023,524398,524334,590013,524302,524430,524366,590077,459008,524369,524305,524569,459024,524401,524337,590019,459016,524385,524321,589987,524289,524417,524353,590051,459012,524377,524313,589971,459028,524409,524345,590035,459020,524393,524329,590003,524297,524425,524361,590067,459010,524373,524309,524573,459026,524405,524341,590027,459018,524389,524325,589995,524293,524421,524357,590059,459014,524381,524317,589979,459030,524413,524349,590043,459022,524397,524333,590011,524301,524429,524365,590075,459009,524371,524307,524571,459025,524403,524339,590023,459017,524387,524323,589991,524291,524419,524355,590055,459013,524379,524315,589975,459029,524411,524347,590039,459021,524395,524331,590007,524299,524427,524363,590071,459011,524375,524311,524575,459027,524407,524343,590031,459019,524391,524327,589999,524295,524423,524359,590063,459015,524383,524319,589983,459031,524415,524351,590047,459023,524399,524335,590015,524303,524431,524367,590079]),9],c=[new Int32Array([327680,327696,327688,327704,327684,327700,327692,327708,327682,327698,327690,327706,327686,327702,327694,0,327681,327697,327689,327705,327685,327701,327693,327709,327683,327699,327691,327707,327687,327703,327695,0]),5];class u extends r.DecodeStream{constructor(e,t){super(t),this.str=e,this.dict=e.dict;const n=e.getByte(),r=e.getByte();if(-1===n||-1===r)throw new i.FormatError("Invalid header in flate stream: ".concat(n,", ").concat(r));if(8!==(15&n))throw new i.FormatError("Unknown compression method in flate stream: ".concat(n,", ").concat(r));if(((n<<8)+r)%31!==0)throw new i.FormatError("Bad FCHECK in flate stream: ".concat(n,", ").concat(r));if(32&r)throw new i.FormatError("FDICT bit set in flate stream: ".concat(n,", ").concat(r));this.codeSize=0,this.codeBuf=0}getBits(e){const t=this.str;let n,r=this.codeSize,o=this.codeBuf;for(;r<e;){if(-1===(n=t.getByte()))throw new i.FormatError("Bad encoding in flate stream");o|=n<<r,r+=8}return n=o&(1<<e)-1,this.codeBuf=o>>e,this.codeSize=r-=e,n}getCode(e){const t=this.str,n=e[0],r=e[1];let o,s=this.codeSize,a=this.codeBuf;for(;s<r&&-1!==(o=t.getByte());)a|=o<<s,s+=8;const l=n[a&(1<<r)-1],c=l>>16,u=65535&l;if(c<1||s<c)throw new i.FormatError("Bad encoding in flate stream");return this.codeBuf=a>>c,this.codeSize=s-c,u}generateHuffmanTable(e){const t=e.length;let n,r=0;for(n=0;n<t;++n)e[n]>r&&(r=e[n]);const i=1<<r,o=new Int32Array(i);for(let s=1,a=0,l=2;s<=r;++s,a<<=1,l<<=1)for(let r=0;r<t;++r)if(e[r]===s){let e=0,t=a;for(n=0;n<s;++n)e=e<<1|1&t,t>>=1;for(n=e;n<i;n+=l)o[n]=s<<16|r;++a}return[o,r]}readBlock(){let e,t;const n=this.str;let r,u,d=this.getBits(3);if(1&d&&(this.eof=!0),d>>=1,0===d){let t;if(-1===(t=n.getByte()))throw new i.FormatError("Bad block header in flate stream");let r=t;if(-1===(t=n.getByte()))throw new i.FormatError("Bad block header in flate stream");if(r|=t<<8,-1===(t=n.getByte()))throw new i.FormatError("Bad block header in flate stream");let o=t;if(-1===(t=n.getByte()))throw new i.FormatError("Bad block header in flate stream");if(o|=t<<8,o!==(65535&~r)&&(0!==r||0!==o))throw new i.FormatError("Bad uncompressed block length in flate stream");this.codeBuf=0,this.codeSize=0;const s=this.bufferLength,a=s+r;if(e=this.ensureBuffer(a),this.bufferLength=a,0===r)-1===n.peekByte()&&(this.eof=!0);else{const t=n.getBytes(r);e.set(t,s),t.length<r&&(this.eof=!0)}return}if(1===d)r=l,u=c;else{if(2!==d)throw new i.FormatError("Unknown block type in flate stream");{const e=this.getBits(5)+257,n=this.getBits(5)+1,i=this.getBits(4)+4,s=new Uint8Array(o.length);let a;for(a=0;a<i;++a)s[o[a]]=this.getBits(3);const l=this.generateHuffmanTable(s);t=0,a=0;const c=e+n,d=new Uint8Array(c);let h,p,f;for(;a<c;){const e=this.getCode(l);if(16===e)h=2,p=3,f=t;else if(17===e)h=3,p=3,f=t=0;else{if(18!==e){d[a++]=t=e;continue}h=7,p=11,f=t=0}let n=this.getBits(h)+p;for(;n-- >0;)d[a++]=f}r=this.generateHuffmanTable(d.subarray(0,e)),u=this.generateHuffmanTable(d.subarray(e,c))}}e=this.buffer;let h=e?e.length:0,p=this.bufferLength;for(;;){let n=this.getCode(r);if(n<256){p+1>=h&&(e=this.ensureBuffer(p+1),h=e.length),e[p++]=n;continue}if(256===n)return void(this.bufferLength=p);n-=257,n=s[n];let i=n>>16;i>0&&(i=this.getBits(i)),t=(65535&n)+i,n=this.getCode(u),n=a[n],i=n>>16,i>0&&(i=this.getBits(i));const o=(65535&n)+i;p+t>=h&&(e=this.ensureBuffer(p+t),h=e.length);for(let r=0;r<t;++r,++p)e[p]=e[p-o]}}}t.FlateStream=u},(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.Jbig2Stream=void 0;var r=n(5),i=n(17),o=n(3),s=n(23),a=n(2);class l extends i.DecodeStream{constructor(e,t,n){super(t),this.stream=e,this.dict=e.dict,this.maybeLength=t,this.params=n}get bytes(){return(0,a.shadow)(this,"bytes",this.stream.getBytes(this.maybeLength))}ensureBuffer(e){}readBlock(){if(this.eof)return;const e=new s.Jbig2Image,t=[];if(this.params instanceof o.Dict){const e=this.params.get("JBIG2Globals");if(e instanceof r.BaseStream){const n=e.getBytes();t.push({data:n,start:0,end:n.length})}}t.push({data:this.bytes,start:0,end:this.bytes.length});const n=e.parseChunks(t),i=n.length;for(let r=0;r<i;r++)n[r]^=255;this.buffer=n,this.bufferLength=i,this.eof=!0}}t.Jbig2Stream=l},(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.Jbig2Image=void 0;var r=n(2),i=n(4),o=n(24),s=n(20);class a extends r.BaseException{constructor(e){super("JBIG2 error: ".concat(e),"Jbig2Error")}}class l{getContexts(e){return e in this?this[e]:this[e]=new Int8Array(65536)}}class c{constructor(e,t,n){this.data=e,this.start=t,this.end=n}get decoder(){const e=new o.ArithmeticDecoder(this.data,this.start,this.end);return(0,r.shadow)(this,"decoder",e)}get contextCache(){const e=new l;return(0,r.shadow)(this,"contextCache",e)}}const u=2**31-1,d=-(2**31);function h(e,t,n){const r=e.getContexts(t);let i=1;function o(e){let t=0;for(let o=0;o<e;o++){const e=n.readBit(r,i);i=i<256?i<<1|e:511&(i<<1|e)|256,t=t<<1|e}return t>>>0}const s=o(1),a=o(1)?o(1)?o(1)?o(1)?o(1)?o(32)+4436:o(12)+340:o(8)+84:o(6)+20:o(4)+4:o(2);let l;return 0===s?l=a:a>0&&(l=-a),l>=d&&l<=u?l:null}function p(e,t,n){const r=e.getContexts("IAID");let i=1;for(let o=0;o<n;o++)i=i<<1|t.readBit(r,i);return n<31?i&(1<<n)-1:2147483647&i}const f=["SymbolDictionary",null,null,null,"IntermediateTextRegion",null,"ImmediateTextRegion","ImmediateLosslessTextRegion",null,null,null,null,null,null,null,null,"PatternDictionary",null,null,null,"IntermediateHalftoneRegion",null,"ImmediateHalftoneRegion","ImmediateLosslessHalftoneRegion",null,null,null,null,null,null,null,null,null,null,null,null,"IntermediateGenericRegion",null,"ImmediateGenericRegion","ImmediateLosslessGenericRegion","IntermediateGenericRefinementRegion",null,"ImmediateGenericRefinementRegion","ImmediateLosslessGenericRefinementRegion",null,null,null,null,"PageInformation","EndOfPage","EndOfStripe","EndOfFile","Profiles","Tables",null,null,null,null,null,null,null,null,"Extension"],g=[[{x:-1,y:-2},{x:0,y:-2},{x:1,y:-2},{x:-2,y:-1},{x:-1,y:-1},{x:0,y:-1},{x:1,y:-1},{x:2,y:-1},{x:-4,y:0},{x:-3,y:0},{x:-2,y:0},{x:-1,y:0}],[{x:-1,y:-2},{x:0,y:-2},{x:1,y:-2},{x:2,y:-2},{x:-2,y:-1},{x:-1,y:-1},{x:0,y:-1},{x:1,y:-1},{x:2,y:-1},{x:-3,y:0},{x:-2,y:0},{x:-1,y:0}],[{x:-1,y:-2},{x:0,y:-2},{x:1,y:-2},{x:-2,y:-1},{x:-1,y:-1},{x:0,y:-1},{x:1,y:-1},{x:-2,y:0},{x:-1,y:0}],[{x:-3,y:-1},{x:-2,y:-1},{x:-1,y:-1},{x:0,y:-1},{x:1,y:-1},{x:-4,y:0},{x:-3,y:0},{x:-2,y:0},{x:-1,y:0}]],m=[{coding:[{x:0,y:-1},{x:1,y:-1},{x:-1,y:0}],reference:[{x:0,y:-1},{x:1,y:-1},{x:-1,y:0},{x:0,y:0},{x:1,y:0},{x:-1,y:1},{x:0,y:1},{x:1,y:1}]},{coding:[{x:-1,y:-1},{x:0,y:-1},{x:1,y:-1},{x:-1,y:0}],reference:[{x:0,y:-1},{x:-1,y:0},{x:0,y:0},{x:1,y:0},{x:0,y:1},{x:1,y:1}]}],y=[39717,1941,229,405],v=[32,8];function _(e,t,n,r,i,o,s,a){if(e)return N(new O(a.data,a.start,a.end),t,n,!1);if(0===r&&!o&&!i&&4===s.length&&3===s[0].x&&-1===s[0].y&&-3===s[1].x&&-1===s[1].y&&2===s[2].x&&-2===s[2].y&&-2===s[3].x&&-2===s[3].y)return function(e,t,n){const r=n.decoder,i=n.contextCache.getContexts("GB"),o=[];let s,a,l,c,u,d,h;for(a=0;a<t;a++)for(u=o[a]=new Uint8Array(e),d=a<1?u:o[a-1],h=a<2?u:o[a-2],s=h[0]<<13|h[1]<<12|h[2]<<11|d[0]<<7|d[1]<<6|d[2]<<5|d[3]<<4,l=0;l<e;l++)u[l]=c=r.readBit(i,s),s=(31735&s)<<1|(l+3<e?h[l+3]<<11:0)|(l+4<e?d[l+4]<<4:0)|c;return o}(t,n,a);const l=!!o,c=g[r].concat(s);c.sort((function(e,t){return e.y-t.y||e.x-t.x}));const u=c.length,d=new Int8Array(u),h=new Int8Array(u),p=[];let f,m,v=0,_=0,b=0,x=0;for(m=0;m<u;m++)d[m]=c[m].x,h[m]=c[m].y,_=Math.min(_,c[m].x),b=Math.max(b,c[m].x),x=Math.min(x,c[m].y),m<u-1&&c[m].y===c[m+1].y&&c[m].x===c[m+1].x-1?v|=1<<u-1-m:p.push(m);const S=p.length,w=new Int8Array(S),E=new Int8Array(S),P=new Uint16Array(S);for(f=0;f<S;f++)m=p[f],w[f]=c[m].x,E[f]=c[m].y,P[f]=1<<u-1-m;const C=-_,A=-x,k=t-b,j=y[r];let I=new Uint8Array(t);const G=[],T=a.decoder,M=a.contextCache.getContexts("GB");let R,D,L,V,F,z=0,B=0;for(let g=0;g<n;g++)if(i&&(z^=T.readBit(M,j),z))G.push(I);else for(I=new Uint8Array(I),G.push(I),R=0;R<t;R++){if(l&&o[g][R]){I[R]=0;continue}if(R>=C&&R<k&&g>=A)for(B=B<<1&v,m=0;m<S;m++)D=g+E[m],L=R+w[m],V=G[D][L],V&&(V=P[m],B|=V);else for(B=0,F=u-1,m=0;m<u;m++,F--)L=R+d[m],L>=0&&L<t&&(D=g+h[m],D>=0&&(V=G[D][L],V&&(B|=V<<F)));const e=T.readBit(M,B);I[R]=e}return G}function b(e,t,n,r,i,o,s,l,c){let u=m[n].coding;0===n&&(u=u.concat([l[0]]));const d=u.length,h=new Int32Array(d),p=new Int32Array(d);let f;for(f=0;f<d;f++)h[f]=u[f].x,p[f]=u[f].y;let g=m[n].reference;0===n&&(g=g.concat([l[1]]));const y=g.length,_=new Int32Array(y),b=new Int32Array(y);for(f=0;f<y;f++)_[f]=g[f].x,b[f]=g[f].y;const x=r[0].length,S=r.length,w=v[n],E=[],P=c.decoder,C=c.contextCache.getContexts("GR");let A=0;for(let m=0;m<t;m++){if(s&&(A^=P.readBit(C,w),A))throw new a("prediction is not supported");const t=new Uint8Array(e);E.push(t);for(let n=0;n<e;n++){let s,a,l=0;for(f=0;f<d;f++)s=m+p[f],a=n+h[f],s<0||a<0||a>=e?l<<=1:l=l<<1|E[s][a];for(f=0;f<y;f++)s=m+b[f]-o,a=n+_[f]-i,s<0||s>=S||a<0||a>=x?l<<=1:l=l<<1|r[s][a];const c=P.readBit(C,l);t[n]=c}}return E}function x(e,t,n,r,i,o,s,l,c,u,d,f,g,m,y,v,_,x,S){if(e&&t)throw new a("refinement with Huffman is not supported");const w=[];let E,P;for(E=0;E<r;E++){if(P=new Uint8Array(n),i)for(let e=0;e<n;e++)P[e]=i;w.push(P)}const C=_.decoder,A=_.contextCache;let k=e?-m.tableDeltaT.decode(S):-h(A,"IADT",C),j=0;for(E=0;E<o;){k+=e?m.tableDeltaT.decode(S):h(A,"IADT",C),j+=e?m.tableFirstS.decode(S):h(A,"IAFS",C);let r=j;for(;;){let i=0;s>1&&(i=e?S.readBits(x):h(A,"IAIT",C));const o=s*k+i,j=e?m.symbolIDTable.decode(S):p(A,C,c),I=t&&(e?S.readBit():h(A,"IARI",C));let G=l[j],T=G[0].length,M=G.length;if(I){const e=h(A,"IARDW",C),t=h(A,"IARDH",C);T+=e,M+=t,G=b(T,M,y,G,(e>>1)+h(A,"IARDX",C),(t>>1)+h(A,"IARDY",C),!1,v,_)}const O=o-(1&f?0:M-1),R=r-(2&f?T-1:0);let D,N,L;if(u){for(D=0;D<M;D++){if(P=w[R+D],!P)continue;L=G[D];const e=Math.min(n-O,T);switch(g){case 0:for(N=0;N<e;N++)P[O+N]|=L[N];break;case 2:for(N=0;N<e;N++)P[O+N]^=L[N];break;default:throw new a("operator ".concat(g," is not supported"))}}r+=M-1}else{for(N=0;N<M;N++)if(P=w[O+N],P)switch(L=G[N],g){case 0:for(D=0;D<T;D++)P[R+D]|=L[D];break;case 2:for(D=0;D<T;D++)P[R+D]^=L[D];break;default:throw new a("operator ".concat(g," is not supported"))}r+=T-1}E++;const V=e?m.tableDeltaS.decode(S):h(A,"IADS",C);if(null===V)break;r+=V+d}}return w}function S(e,t){const n={};n.number=(0,i.readUint32)(e,t);const r=e[t+4],o=63&r;if(!f[o])throw new a("invalid segment type: "+o);n.type=o,n.typeName=f[o],n.deferredNonRetain=!!(128&r);const s=!!(64&r),l=e[t+5];let c=l>>5&7;const u=[31&l];let d=t+6;if(7===l){c=536870911&(0,i.readUint32)(e,d-1),d+=3;let t=c+7>>3;for(u[0]=e[d++];--t>0;)u.push(e[d++])}else if(5===l||6===l)throw new a("invalid referred-to flags");n.retainBits=u;let h=4;n.number<=256?h=1:n.number<=65536&&(h=2);const p=[];let g,m;for(g=0;g<c;g++){let t;t=1===h?e[d]:2===h?(0,i.readUint16)(e,d):(0,i.readUint32)(e,d),p.push(t),d+=h}if(n.referredTo=p,s?(n.pageAssociation=(0,i.readUint32)(e,d),d+=4):n.pageAssociation=e[d++],n.length=(0,i.readUint32)(e,d),d+=4,4294967295===n.length){if(38!==o)throw new a("invalid unknown segment length");{const t=E(e,d),r=!!(1&e[d+P]),i=6,o=new Uint8Array(i);for(r||(o[0]=255,o[1]=172),o[2]=t.height>>>24&255,o[3]=t.height>>16&255,o[4]=t.height>>8&255,o[5]=255&t.height,g=d,m=e.length;g<m;g++){let t=0;for(;t<i&&o[t]===e[g+t];)t++;if(t===i){n.length=g+i;break}}if(4294967295===n.length)throw new a("segment end was not found")}}return n.headerEnd=d,n}function w(e,t,n,r){const i=[];let o=n;for(;o<r;){const n=S(t,o);o=n.headerEnd;const r={header:n,data:t};if(e.randomAccess||(r.start=o,o+=n.length,r.end=o),i.push(r),51===n.type)break}if(e.randomAccess)for(let s=0,a=i.length;s<a;s++)i[s].start=o,o+=i[s].header.length,i[s].end=o;return i}function E(e,t){return{width:(0,i.readUint32)(e,t),height:(0,i.readUint32)(e,t+4),x:(0,i.readUint32)(e,t+8),y:(0,i.readUint32)(e,t+12),combinationOperator:7&e[t+16]}}const P=17;function C(e,t){const n=e.header,r=e.data,o=e.end;let s,l,c,u,d=e.start;switch(n.type){case 0:const e={},t=(0,i.readUint16)(r,d);if(e.huffman=!!(1&t),e.refinement=!!(2&t),e.huffmanDHSelector=t>>2&3,e.huffmanDWSelector=t>>4&3,e.bitmapSizeSelector=t>>6&1,e.aggregationInstancesSelector=t>>7&1,e.bitmapCodingContextUsed=!!(256&t),e.bitmapCodingContextRetained=!!(512&t),e.template=t>>10&3,e.refinementTemplate=t>>12&1,d+=2,!e.huffman){for(u=0===e.template?4:1,l=[],c=0;c<u;c++)l.push({x:(0,i.readInt8)(r,d),y:(0,i.readInt8)(r,d+1)}),d+=2;e.at=l}if(e.refinement&&!e.refinementTemplate){for(l=[],c=0;c<2;c++)l.push({x:(0,i.readInt8)(r,d),y:(0,i.readInt8)(r,d+1)}),d+=2;e.refinementAt=l}e.numberOfExportedSymbols=(0,i.readUint32)(r,d),d+=4,e.numberOfNewSymbols=(0,i.readUint32)(r,d),d+=4,s=[e,n.number,n.referredTo,r,d,o];break;case 6:case 7:const h={};h.info=E(r,d),d+=P;const p=(0,i.readUint16)(r,d);if(d+=2,h.huffman=!!(1&p),h.refinement=!!(2&p),h.logStripSize=p>>2&3,h.stripSize=1<<h.logStripSize,h.referenceCorner=p>>4&3,h.transposed=!!(64&p),h.combinationOperator=p>>7&3,h.defaultPixelValue=p>>9&1,h.dsOffset=p<<17>>27,h.refinementTemplate=p>>15&1,h.huffman){const e=(0,i.readUint16)(r,d);d+=2,h.huffmanFS=3&e,h.huffmanDS=e>>2&3,h.huffmanDT=e>>4&3,h.huffmanRefinementDW=e>>6&3,h.huffmanRefinementDH=e>>8&3,h.huffmanRefinementDX=e>>10&3,h.huffmanRefinementDY=e>>12&3,h.huffmanRefinementSizeSelector=!!(16384&e)}if(h.refinement&&!h.refinementTemplate){for(l=[],c=0;c<2;c++)l.push({x:(0,i.readInt8)(r,d),y:(0,i.readInt8)(r,d+1)}),d+=2;h.refinementAt=l}h.numberOfSymbolInstances=(0,i.readUint32)(r,d),d+=4,s=[h,n.referredTo,r,d,o];break;case 16:const f={},g=r[d++];f.mmr=!!(1&g),f.template=g>>1&3,f.patternWidth=r[d++],f.patternHeight=r[d++],f.maxPatternIndex=(0,i.readUint32)(r,d),d+=4,s=[f,n.number,r,d,o];break;case 22:case 23:const m={};m.info=E(r,d),d+=P;const y=r[d++];m.mmr=!!(1&y),m.template=y>>1&3,m.enableSkip=!!(8&y),m.combinationOperator=y>>4&7,m.defaultPixelValue=y>>7&1,m.gridWidth=(0,i.readUint32)(r,d),d+=4,m.gridHeight=(0,i.readUint32)(r,d),d+=4,m.gridOffsetX=4294967295&(0,i.readUint32)(r,d),d+=4,m.gridOffsetY=4294967295&(0,i.readUint32)(r,d),d+=4,m.gridVectorX=(0,i.readUint16)(r,d),d+=2,m.gridVectorY=(0,i.readUint16)(r,d),d+=2,s=[m,n.referredTo,r,d,o];break;case 38:case 39:const v={};v.info=E(r,d),d+=P;const _=r[d++];if(v.mmr=!!(1&_),v.template=_>>1&3,v.prediction=!!(8&_),!v.mmr){for(u=0===v.template?4:1,l=[],c=0;c<u;c++)l.push({x:(0,i.readInt8)(r,d),y:(0,i.readInt8)(r,d+1)}),d+=2;v.at=l}s=[v,r,d,o];break;case 48:const b={width:(0,i.readUint32)(r,d),height:(0,i.readUint32)(r,d+4),resolutionX:(0,i.readUint32)(r,d+8),resolutionY:(0,i.readUint32)(r,d+12)};4294967295===b.height&&delete b.height;const x=r[d+16];(0,i.readUint16)(r,d+17),b.lossless=!!(1&x),b.refinement=!!(2&x),b.defaultPixelValue=x>>2&1,b.combinationOperator=x>>3&3,b.requiresBuffer=!!(32&x),b.combinationOperatorOverride=!!(64&x),s=[b];break;case 49:case 50:case 51:case 62:break;case 53:s=[n.number,r,d,o];break;default:throw new a("segment type ".concat(n.typeName,"(").concat(n.type,") is not implemented"))}const h="on"+n.typeName;h in t&&t[h].apply(t,s)}function A(e,t){for(let n=0,r=e.length;n<r;n++)C(e[n],t)}class k{onPageInformation(e){this.currentPageInfo=e;const t=e.width+7>>3,n=new Uint8ClampedArray(t*e.height);e.defaultPixelValue&&n.fill(255),this.buffer=n}drawBitmap(e,t){const n=this.currentPageInfo,r=e.width,i=e.height,o=n.width+7>>3,s=n.combinationOperatorOverride?e.combinationOperator:n.combinationOperator,l=this.buffer,c=128>>(7&e.x);let u,d,h,p,f=e.y*o+(e.x>>3);switch(s){case 0:for(u=0;u<i;u++){for(h=c,p=f,d=0;d<r;d++)t[u][d]&&(l[p]|=h),h>>=1,h||(h=128,p++);f+=o}break;case 2:for(u=0;u<i;u++){for(h=c,p=f,d=0;d<r;d++)t[u][d]&&(l[p]^=h),h>>=1,h||(h=128,p++);f+=o}break;default:throw new a("operator ".concat(s," is not supported"))}}onImmediateGenericRegion(e,t,n,r){const i=e.info,o=new c(t,n,r),s=_(e.mmr,i.width,i.height,e.template,e.prediction,null,e.at,o);this.drawBitmap(i,s)}onImmediateLosslessGenericRegion(){this.onImmediateGenericRegion(...arguments)}onSymbolDictionary(e,t,n,r,o,s){let l,u;e.huffman&&(l=function(e,t,n){let r,i,o,s,l=0;switch(e.huffmanDHSelector){case 0:case 1:r=M(e.huffmanDHSelector+4);break;case 3:r=R(l,t,n),l++;break;default:throw new a("invalid Huffman DH selector")}switch(e.huffmanDWSelector){case 0:case 1:i=M(e.huffmanDWSelector+2);break;case 3:i=R(l,t,n),l++;break;default:throw new a("invalid Huffman DW selector")}return e.bitmapSizeSelector?(o=R(l,t,n),l++):o=M(1),s=e.aggregationInstancesSelector?R(l,t,n):M(1),{tableDeltaHeight:r,tableDeltaWidth:i,tableBitmapSize:o,tableAggregateInstances:s}}(e,n,this.customTables),u=new O(r,o,s));let d=this.symbols;d||(this.symbols=d={});const f=[];for(const i of n){const e=d[i];e&&f.push(...e)}const g=new c(r,o,s);d[t]=function(e,t,n,r,o,s,l,c,u,d,f,g){if(e&&t)throw new a("symbol refinement with Huffman is not supported");const m=[];let y=0,v=(0,i.log2)(n.length+r);const S=f.decoder,w=f.contextCache;let E,P;for(e&&(E=M(1),P=[],v=Math.max(v,1));m.length<r;){y+=e?s.tableDeltaHeight.decode(g):h(w,"IADH",S);let r=0,i=0;const o=e?P.length:0;for(;;){const o=e?s.tableDeltaWidth.decode(g):h(w,"IADW",S);if(null===o)break;let a;if(r+=o,i+=r,t){const i=h(w,"IAAI",S);if(i>1)a=x(e,t,r,y,0,i,1,n.concat(m),v,0,0,1,0,s,u,d,f,0,g);else{const e=p(w,S,v),t=h(w,"IARDX",S),i=h(w,"IARDY",S);a=b(r,y,u,e<n.length?n[e]:m[e-n.length],t,i,!1,d,f)}m.push(a)}else e?P.push(r):(a=_(!1,r,y,l,!1,null,c,f),m.push(a))}if(e&&!t){const e=s.tableBitmapSize.decode(g);let t;if(g.byteAlign(),0===e)t=D(g,i,y);else{const n=g.end,r=g.position+e;g.end=r,t=N(g,i,y,!1),g.end=n,g.position=r}const n=P.length;if(o===n-1)m.push(t);else{let e,r,i,s,a,l=0;for(e=o;e<n;e++){for(s=P[e],i=l+s,a=[],r=0;r<y;r++)a.push(t[r].subarray(l,i));m.push(a),l=i}}}}const C=[],A=[];let k,j,I=!1;const G=n.length+r;for(;A.length<G;){let t=e?E.decode(g):h(w,"IAEX",S);for(;t--;)A.push(I);I=!I}for(k=0,j=n.length;k<j;k++)A[k]&&C.push(n[k]);for(let i=0;i<r;k++,i++)A[k]&&C.push(m[i]);return C}(e.huffman,e.refinement,f,e.numberOfNewSymbols,e.numberOfExportedSymbols,l,e.template,e.at,e.refinementTemplate,e.refinementAt,g,u)}onImmediateTextRegion(e,t,n,r,o){const s=e.info;let l,u;const d=this.symbols,h=[];for(const i of t){const e=d[i];e&&h.push(...e)}const p=(0,i.log2)(h.length);e.huffman&&(u=new O(n,r,o),l=function(e,t,n,r,i){const o=[];for(let a=0;a<=34;a++){const e=i.readBits(4);o.push(new j([a,e,0,0]))}const s=new G(o,!1);o.length=0;for(let p=0;p<r;){const e=s.decode(i);if(e>=32){let t,n,r;switch(e){case 32:if(0===p)throw new a("no previous value in symbol ID table");n=i.readBits(2)+3,t=o[p-1].prefixLength;break;case 33:n=i.readBits(3)+3,t=0;break;case 34:n=i.readBits(7)+11,t=0;break;default:throw new a("invalid code length in symbol ID table")}for(r=0;r<n;r++)o.push(new j([p,t,0,0])),p++}else o.push(new j([p,e,0,0])),p++}i.byteAlign();const l=new G(o,!1);let c,u,d,h=0;switch(e.huffmanFS){case 0:case 1:c=M(e.huffmanFS+6);break;case 3:c=R(h,t,n),h++;break;default:throw new a("invalid Huffman FS selector")}switch(e.huffmanDS){case 0:case 1:case 2:u=M(e.huffmanDS+8);break;case 3:u=R(h,t,n),h++;break;default:throw new a("invalid Huffman DS selector")}switch(e.huffmanDT){case 0:case 1:case 2:d=M(e.huffmanDT+11);break;case 3:d=R(h,t,n),h++;break;default:throw new a("invalid Huffman DT selector")}if(e.refinement)throw new a("refinement with Huffman is not supported");return{symbolIDTable:l,tableFirstS:c,tableDeltaS:u,tableDeltaT:d}}(e,t,this.customTables,h.length,u));const f=new c(n,r,o),g=x(e.huffman,e.refinement,s.width,s.height,e.defaultPixelValue,e.numberOfSymbolInstances,e.stripSize,h,p,e.transposed,e.dsOffset,e.referenceCorner,e.combinationOperator,l,e.refinementTemplate,e.refinementAt,f,e.logStripSize,u);this.drawBitmap(s,g)}onImmediateLosslessTextRegion(){this.onImmediateTextRegion(...arguments)}onPatternDictionary(e,t,n,r,i){let o=this.patterns;o||(this.patterns=o={});const s=new c(n,r,i);o[t]=function(e,t,n,r,i,o){const s=[];e||(s.push({x:-t,y:0}),0===i&&s.push({x:-3,y:-1},{x:2,y:-2},{x:-2,y:-2}));const a=_(e,(r+1)*t,n,i,!1,null,s,o),l=[];for(let c=0;c<=r;c++){const e=[],r=t*c,i=r+t;for(let t=0;t<n;t++)e.push(a[t].subarray(r,i));l.push(e)}return l}(e.mmr,e.patternWidth,e.patternHeight,e.maxPatternIndex,e.template,s)}onImmediateHalftoneRegion(e,t,n,r,o){const s=this.patterns[t[0]],l=e.info,u=new c(n,r,o),d=function(e,t,n,r,o,s,l,c,u,d,h,p,f,g,m){if(l)throw new a("skip is not supported");if(0!==c)throw new a('operator "'.concat(c,'" is not supported in halftone region'));const y=[];let v,b,x;for(v=0;v<o;v++){if(x=new Uint8Array(r),s)for(b=0;b<r;b++)x[b]=s;y.push(x)}const S=t.length,w=t[0],E=w[0].length,P=w.length,C=(0,i.log2)(S),A=[];e||(A.push({x:n<=1?3:2,y:-1}),0===n&&A.push({x:-3,y:-1},{x:2,y:-2},{x:-2,y:-2}));const k=[];let j,I,G,T,M,R,D,L,V,F,z;for(e&&(j=new O(m.data,m.start,m.end)),v=C-1;v>=0;v--)I=e?N(j,u,d,!0):_(!1,u,d,n,!1,null,A,m),k[v]=I;for(G=0;G<d;G++)for(T=0;T<u;T++){for(M=0,R=0,b=C-1;b>=0;b--)M^=k[b][G][T],R|=M<<b;if(D=t[R],L=h+G*g+T*f>>8,V=p+G*f-T*g>>8,L>=0&&L+E<=r&&V>=0&&V+P<=o)for(v=0;v<P;v++)for(z=y[V+v],F=D[v],b=0;b<E;b++)z[L+b]|=F[b];else{let e,t;for(v=0;v<P;v++)if(t=V+v,!(t<0||t>=o))for(z=y[t],F=D[v],b=0;b<E;b++)e=L+b,e>=0&&e<r&&(z[e]|=F[b])}}return y}(e.mmr,s,e.template,l.width,l.height,e.defaultPixelValue,e.enableSkip,e.combinationOperator,e.gridWidth,e.gridHeight,e.gridOffsetX,e.gridOffsetY,e.gridVectorX,e.gridVectorY,u);this.drawBitmap(l,d)}onImmediateLosslessHalftoneRegion(){this.onImmediateHalftoneRegion(...arguments)}onTables(e,t,n,r){let o=this.customTables;o||(this.customTables=o={}),o[e]=function(e,t,n){const r=e[t],o=4294967295&(0,i.readUint32)(e,t+1),s=4294967295&(0,i.readUint32)(e,t+5),a=new O(e,t+9,n),l=1+(r>>1&7),c=1+(r>>4&7),u=[];let d,h,p=o;do{d=a.readBits(l),h=a.readBits(c),u.push(new j([p,d,h,0])),p+=1<<h}while(p<s);return d=a.readBits(l),u.push(new j([o-1,d,32,0,"lower"])),d=a.readBits(l),u.push(new j([s,d,32,0])),1&r&&(d=a.readBits(l),u.push(new j([d,0]))),new G(u,!1)}(t,n,r)}}class j{constructor(e){2===e.length?(this.isOOB=!0,this.rangeLow=0,this.prefixLength=e[0],this.rangeLength=0,this.prefixCode=e[1],this.isLowerRange=!1):(this.isOOB=!1,this.rangeLow=e[0],this.prefixLength=e[1],this.rangeLength=e[2],this.prefixCode=e[3],this.isLowerRange="lower"===e[4])}}class I{constructor(e){this.children=[],e?(this.isLeaf=!0,this.rangeLength=e.rangeLength,this.rangeLow=e.rangeLow,this.isLowerRange=e.isLowerRange,this.isOOB=e.isOOB):this.isLeaf=!1}buildTree(e,t){const n=e.prefixCode>>t&1;if(t<=0)this.children[n]=new I(e);else{let r=this.children[n];r||(this.children[n]=r=new I(null)),r.buildTree(e,t-1)}}decodeNode(e){if(this.isLeaf){if(this.isOOB)return null;const t=e.readBits(this.rangeLength);return this.rangeLow+(this.isLowerRange?-t:t)}const t=this.children[e.readBit()];if(!t)throw new a("invalid Huffman data");return t.decodeNode(e)}}class G{constructor(e,t){t||this.assignPrefixCodes(e),this.rootNode=new I(null);for(let n=0,r=e.length;n<r;n++){const t=e[n];t.prefixLength>0&&this.rootNode.buildTree(t,t.prefixLength-1)}}decode(e){return this.rootNode.decodeNode(e)}assignPrefixCodes(e){const t=e.length;let n=0;for(let c=0;c<t;c++)n=Math.max(n,e[c].prefixLength);const r=new Uint32Array(n+1);for(let c=0;c<t;c++)r[e[c].prefixLength]++;let i,o,s,a=1,l=0;for(r[0]=0;a<=n;){for(l=l+r[a-1]<<1,i=l,o=0;o<t;)s=e[o],s.prefixLength===a&&(s.prefixCode=i,i++),o++;a++}}}const T={};function M(e){let t,n=T[e];if(n)return n;switch(e){case 1:t=[[0,1,4,0],[16,2,8,2],[272,3,16,6],[65808,3,32,7]];break;case 2:t=[[0,1,0,0],[1,2,0,2],[2,3,0,6],[3,4,3,14],[11,5,6,30],[75,6,32,62],[6,63]];break;case 3:t=[[-256,8,8,254],[0,1,0,0],[1,2,0,2],[2,3,0,6],[3,4,3,14],[11,5,6,30],[-257,8,32,255,"lower"],[75,7,32,126],[6,62]];break;case 4:t=[[1,1,0,0],[2,2,0,2],[3,3,0,6],[4,4,3,14],[12,5,6,30],[76,5,32,31]];break;case 5:t=[[-255,7,8,126],[1,1,0,0],[2,2,0,2],[3,3,0,6],[4,4,3,14],[12,5,6,30],[-256,7,32,127,"lower"],[76,6,32,62]];break;case 6:t=[[-2048,5,10,28],[-1024,4,9,8],[-512,4,8,9],[-256,4,7,10],[-128,5,6,29],[-64,5,5,30],[-32,4,5,11],[0,2,7,0],[128,3,7,2],[256,3,8,3],[512,4,9,12],[1024,4,10,13],[-2049,6,32,62,"lower"],[2048,6,32,63]];break;case 7:t=[[-1024,4,9,8],[-512,3,8,0],[-256,4,7,9],[-128,5,6,26],[-64,5,5,27],[-32,4,5,10],[0,4,5,11],[32,5,5,28],[64,5,6,29],[128,4,7,12],[256,3,8,1],[512,3,9,2],[1024,3,10,3],[-1025,5,32,30,"lower"],[2048,5,32,31]];break;case 8:t=[[-15,8,3,252],[-7,9,1,508],[-5,8,1,253],[-3,9,0,509],[-2,7,0,124],[-1,4,0,10],[0,2,1,0],[2,5,0,26],[3,6,0,58],[4,3,4,4],[20,6,1,59],[22,4,4,11],[38,4,5,12],[70,5,6,27],[134,5,7,28],[262,6,7,60],[390,7,8,125],[646,6,10,61],[-16,9,32,510,"lower"],[1670,9,32,511],[2,1]];break;case 9:t=[[-31,8,4,252],[-15,9,2,508],[-11,8,2,253],[-7,9,1,509],[-5,7,1,124],[-3,4,1,10],[-1,3,1,2],[1,3,1,3],[3,5,1,26],[5,6,1,58],[7,3,5,4],[39,6,2,59],[43,4,5,11],[75,4,6,12],[139,5,7,27],[267,5,8,28],[523,6,8,60],[779,7,9,125],[1291,6,11,61],[-32,9,32,510,"lower"],[3339,9,32,511],[2,0]];break;case 10:t=[[-21,7,4,122],[-5,8,0,252],[-4,7,0,123],[-3,5,0,24],[-2,2,2,0],[2,5,0,25],[3,6,0,54],[4,7,0,124],[5,8,0,253],[6,2,6,1],[70,5,5,26],[102,6,5,55],[134,6,6,56],[198,6,7,57],[326,6,8,58],[582,6,9,59],[1094,6,10,60],[2118,7,11,125],[-22,8,32,254,"lower"],[4166,8,32,255],[2,2]];break;case 11:t=[[1,1,0,0],[2,2,1,2],[4,4,0,12],[5,4,1,13],[7,5,1,28],[9,5,2,29],[13,6,2,60],[17,7,2,122],[21,7,3,123],[29,7,4,124],[45,7,5,125],[77,7,6,126],[141,7,32,127]];break;case 12:t=[[1,1,0,0],[2,2,0,2],[3,3,1,6],[5,5,0,28],[6,5,1,29],[8,6,1,60],[10,7,0,122],[11,7,1,123],[13,7,2,124],[17,7,3,125],[25,7,4,126],[41,8,5,254],[73,8,32,255]];break;case 13:t=[[1,1,0,0],[2,3,0,4],[3,4,0,12],[4,5,0,28],[5,4,1,13],[7,3,3,5],[15,6,1,58],[17,6,2,59],[21,6,3,60],[29,6,4,61],[45,6,5,62],[77,7,6,126],[141,7,32,127]];break;case 14:t=[[-2,3,0,4],[-1,3,0,5],[0,1,0,0],[1,3,0,6],[2,3,0,7]];break;case 15:t=[[-24,7,4,124],[-8,6,2,60],[-4,5,1,28],[-2,4,0,12],[-1,3,0,4],[0,1,0,0],[1,3,0,5],[2,4,0,13],[3,5,1,29],[5,6,2,61],[9,7,4,125],[-25,7,32,126,"lower"],[25,7,32,127]];break;default:throw new a("standard table B.".concat(e," does not exist"))}for(let r=0,i=t.length;r<i;r++)t[r]=new j(t[r]);return n=new G(t,!0),T[e]=n,n}class O{constructor(e,t,n){this.data=e,this.start=t,this.end=n,this.position=t,this.shift=-1,this.currentByte=0}readBit(){if(this.shift<0){if(this.position>=this.end)throw new a("end of data while reading bit");this.currentByte=this.data[this.position++],this.shift=7}const e=this.currentByte>>this.shift&1;return this.shift--,e}readBits(e){let t,n=0;for(t=e-1;t>=0;t--)n|=this.readBit()<<t;return n}byteAlign(){this.shift=-1}next(){return this.position>=this.end?-1:this.data[this.position++]}}function R(e,t,n){let r=0;for(let i=0,o=t.length;i<o;i++){const o=n[t[i]];if(o){if(e===r)return o;r++}}throw new a("can't find custom Huffman table")}function D(e,t,n){const r=[];for(let i=0;i<n;i++){const n=new Uint8Array(t);r.push(n);for(let r=0;r<t;r++)n[r]=e.readBit();e.byteAlign()}return r}function N(e,t,n,r){const i={K:-1,Columns:t,Rows:n,BlackIs1:!0,EndOfBlock:r},o=new s.CCITTFaxDecoder(e,i),a=[];let l,c=!1;for(let s=0;s<n;s++){const e=new Uint8Array(t);a.push(e);let n=-1;for(let r=0;r<t;r++)n<0&&(l=o.readNextChar(),-1===l&&(l=0,c=!0),n=7),e[r]=l>>n&1,n--}if(r&&!c){const e=5;for(let t=0;t<e&&-1!==o.readNextChar();t++);}return a}t.Jbig2Image=class{parseChunks(e){return function(e){const t=new k;for(let n=0,r=e.length;n<r;n++){const r=e[n];A(w({},r.data,r.start,r.end),t)}return t.buffer}(e)}parse(e){throw new Error("Not implemented: Jbig2Image.parse")}}},(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.ArithmeticDecoder=void 0;const n=[{qe:22017,nmps:1,nlps:1,switchFlag:1},{qe:13313,nmps:2,nlps:6,switchFlag:0},{qe:6145,nmps:3,nlps:9,switchFlag:0},{qe:2753,nmps:4,nlps:12,switchFlag:0},{qe:1313,nmps:5,nlps:29,switchFlag:0},{qe:545,nmps:38,nlps:33,switchFlag:0},{qe:22017,nmps:7,nlps:6,switchFlag:1},{qe:21505,nmps:8,nlps:14,switchFlag:0},{qe:18433,nmps:9,nlps:14,switchFlag:0},{qe:14337,nmps:10,nlps:14,switchFlag:0},{qe:12289,nmps:11,nlps:17,switchFlag:0},{qe:9217,nmps:12,nlps:18,switchFlag:0},{qe:7169,nmps:13,nlps:20,switchFlag:0},{qe:5633,nmps:29,nlps:21,switchFlag:0},{qe:22017,nmps:15,nlps:14,switchFlag:1},{qe:21505,nmps:16,nlps:14,switchFlag:0},{qe:20737,nmps:17,nlps:15,switchFlag:0},{qe:18433,nmps:18,nlps:16,switchFlag:0},{qe:14337,nmps:19,nlps:17,switchFlag:0},{qe:13313,nmps:20,nlps:18,switchFlag:0},{qe:12289,nmps:21,nlps:19,switchFlag:0},{qe:10241,nmps:22,nlps:19,switchFlag:0},{qe:9217,nmps:23,nlps:20,switchFlag:0},{qe:8705,nmps:24,nlps:21,switchFlag:0},{qe:7169,nmps:25,nlps:22,switchFlag:0},{qe:6145,nmps:26,nlps:23,switchFlag:0},{qe:5633,nmps:27,nlps:24,switchFlag:0},{qe:5121,nmps:28,nlps:25,switchFlag:0},{qe:4609,nmps:29,nlps:26,switchFlag:0},{qe:4353,nmps:30,nlps:27,switchFlag:0},{qe:2753,nmps:31,nlps:28,switchFlag:0},{qe:2497,nmps:32,nlps:29,switchFlag:0},{qe:2209,nmps:33,nlps:30,switchFlag:0},{qe:1313,nmps:34,nlps:31,switchFlag:0},{qe:1089,nmps:35,nlps:32,switchFlag:0},{qe:673,nmps:36,nlps:33,switchFlag:0},{qe:545,nmps:37,nlps:34,switchFlag:0},{qe:321,nmps:38,nlps:35,switchFlag:0},{qe:273,nmps:39,nlps:36,switchFlag:0},{qe:133,nmps:40,nlps:37,switchFlag:0},{qe:73,nmps:41,nlps:38,switchFlag:0},{qe:37,nmps:42,nlps:39,switchFlag:0},{qe:21,nmps:43,nlps:40,switchFlag:0},{qe:9,nmps:44,nlps:41,switchFlag:0},{qe:5,nmps:45,nlps:42,switchFlag:0},{qe:1,nmps:45,nlps:43,switchFlag:0},{qe:22017,nmps:46,nlps:46,switchFlag:0}];t.ArithmeticDecoder=class{constructor(e,t,n){this.data=e,this.bp=t,this.dataEnd=n,this.chigh=e[t],this.clow=0,this.byteIn(),this.chigh=this.chigh<<7&65535|this.clow>>9&127,this.clow=this.clow<<7&65535,this.ct-=7,this.a=32768}byteIn(){const e=this.data;let t=this.bp;255===e[t]?e[t+1]>143?(this.clow+=65280,this.ct=8):(t++,this.clow+=e[t]<<9,this.ct=7,this.bp=t):(t++,this.clow+=t<this.dataEnd?e[t]<<8:65280,this.ct=8,this.bp=t),this.clow>65535&&(this.chigh+=this.clow>>16,this.clow&=65535)}readBit(e,t){let r=e[t]>>1,i=1&e[t];const o=n[r],s=o.qe;let a,l=this.a-s;if(this.chigh<s)l<s?(l=s,a=i,r=o.nmps):(l=s,a=1^i,1===o.switchFlag&&(i=a),r=o.nlps);else{if(this.chigh-=s,0!==(32768&l))return this.a=l,i;l<s?(a=1^i,1===o.switchFlag&&(i=a),r=o.nlps):(a=i,r=o.nmps)}do{0===this.ct&&this.byteIn(),l<<=1,this.chigh=this.chigh<<1&65535|this.clow>>15&1,this.clow=this.clow<<1&65535,this.ct--}while(0===(32768&l));return this.a=l,e[t]=r<<1|i,a}}},(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.JpegStream=void 0;var r=n(17),i=n(3),o=n(26),s=n(2);class a extends r.DecodeStream{constructor(e,t,n){let r;for(;-1!==(r=e.getByte());)if(255===r){e.skip(-1);break}super(t),this.stream=e,this.dict=e.dict,this.maybeLength=t,this.params=n}get bytes(){return(0,s.shadow)(this,"bytes",this.stream.getBytes(this.maybeLength))}ensureBuffer(e){}readBlock(){if(this.eof)return;const e={decodeTransform:void 0,colorTransform:void 0},t=this.dict.getArray("D","Decode");if(this.forceRGB&&Array.isArray(t)){const n=this.dict.get("BPC","BitsPerComponent")||8,r=t.length,i=new Int32Array(r);let o=!1;const s=(1<<n)-1;for(let e=0;e<r;e+=2)i[e]=256*(t[e+1]-t[e])|0,i[e+1]=t[e]*s|0,256===i[e]&&0===i[e+1]||(o=!0);o&&(e.decodeTransform=i)}if(this.params instanceof i.Dict){const t=this.params.get("ColorTransform");Number.isInteger(t)&&(e.colorTransform=t)}const n=new o.JpegImage(e);n.parse(this.bytes);const r=n.getData({width:this.drawWidth,height:this.drawHeight,forceRGB:this.forceRGB,isSourcePDF:!0});this.buffer=r,this.bufferLength=r.length,this.eof=!0}}t.JpegStream=a},(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.JpegImage=void 0;var r=n(2),i=n(4);class o extends r.BaseException{constructor(e){super("JPEG error: ".concat(e),"JpegError")}}class s extends r.BaseException{constructor(e,t){super(e,"DNLMarkerError"),this.scanLines=t}}class a extends r.BaseException{constructor(e){super(e,"EOIMarkerError")}}const l=new Uint8Array([0,1,8,16,9,2,3,10,17,24,32,25,18,11,4,5,12,19,26,33,40,48,41,34,27,20,13,6,7,14,21,28,35,42,49,56,57,50,43,36,29,22,15,23,30,37,44,51,58,59,52,45,38,31,39,46,53,60,61,54,47,55,62,63]),c=4017,u=799,d=3406,h=2276,p=1567,f=3784,g=5793,m=2896;function y(e,t){let n,r,i=0,o=16;for(;o>0&&!e[o-1];)o--;const s=[{children:[],index:0}];let a,l=s[0];for(n=0;n<o;n++){for(r=0;r<e[n];r++){for(l=s.pop(),l.children[l.index]=t[i];l.index>0;)l=s.pop();for(l.index++,s.push(l);s.length<=n;)s.push(a={children:[],index:0}),l.children[l.index]=a.children,l=a;i++}n+1<o&&(s.push(a={children:[],index:0}),l.children[l.index]=a.children,l=a)}return s[0].children}function v(e,t,n){return 64*((e.blocksPerLine+1)*t+n)}function _(e,t,n,c,u,d,h,p,f){let g=arguments.length>9&&void 0!==arguments[9]&&arguments[9];const m=n.mcusPerLine,y=n.progressive,_=t;let b=0,x=0;function w(){if(x>0)return x--,b>>x&1;if(b=e[t++],255===b){const r=e[t++];if(r){if(220===r&&g){t+=2;const r=(0,i.readUint16)(e,t);if(t+=2,r>0&&r!==n.scanLines)throw new s("Found DNL marker (0xFFDC) while parsing scan data",r)}else if(217===r){if(g){const e=I*(8===n.precision?8:0);if(e>0&&Math.round(n.scanLines/e)>=5)throw new s("Found EOI marker (0xFFD9) while parsing scan data, possibly caused by incorrect `scanLines` parameter",e)}throw new a("Found EOI marker (0xFFD9) while parsing scan data")}throw new o("unexpected marker ".concat((b<<8|r).toString(16)))}}return x=7,b>>>7}function E(e){let t=e;for(;;){switch(t=t[w()],typeof t){case"number":return t;case"object":continue}throw new o("invalid huffman sequence")}}function P(e){let t=0;for(;e>0;)t=t<<1|w(),e--;return t}function C(e){if(1===e)return 1===w()?1:-1;const t=P(e);return t>=1<<e-1?t:t+(-1<<e)+1}let A,k=0,j=0,I=0;function G(e,t,n,r,i){const o=n%m;I=(n/m|0)*e.v+r;const s=o*e.h+i;t(e,v(e,I,s))}function T(e,t,n){I=n/e.blocksPerLine|0;const r=n%e.blocksPerLine;t(e,v(e,I,r))}const M=c.length;let O,R,D,N,L,V;V=y?0===d?0===p?function(e,t){const n=E(e.huffmanTableDC),r=0===n?0:C(n)<<f;e.blockData[t]=e.pred+=r}:function(e,t){e.blockData[t]|=w()<<f}:0===p?function(e,t){if(k>0)return void k--;let n=d;const r=h;for(;n<=r;){const r=E(e.huffmanTableAC),i=15&r,o=r>>4;if(0===i){if(o<15){k=P(o)+(1<<o)-1;break}n+=16;continue}n+=o;const s=l[n];e.blockData[t+s]=C(i)*(1<<f),n++}}:function(e,t){let n=d;const r=h;let i,s,a=0;for(;n<=r;){const r=t+l[n],c=e.blockData[r]<0?-1:1;switch(j){case 0:if(s=E(e.huffmanTableAC),i=15&s,a=s>>4,0===i)a<15?(k=P(a)+(1<<a),j=4):(a=16,j=1);else{if(1!==i)throw new o("invalid ACn encoding");A=C(i),j=a?2:3}continue;case 1:case 2:e.blockData[r]?e.blockData[r]+=c*(w()<<f):(a--,0===a&&(j=2===j?3:0));break;case 3:e.blockData[r]?e.blockData[r]+=c*(w()<<f):(e.blockData[r]=A<<f,j=0);break;case 4:e.blockData[r]&&(e.blockData[r]+=c*(w()<<f))}n++}4===j&&(k--,0===k&&(j=0))}:function(e,t){const n=E(e.huffmanTableDC),r=0===n?0:C(n);e.blockData[t]=e.pred+=r;let i=1;for(;i<64;){const n=E(e.huffmanTableAC),r=15&n,o=n>>4;if(0===r){if(o<15)break;i+=16;continue}i+=o;const s=l[i];e.blockData[t+s]=C(r),i++}};let F,z,B,U,W=0;for(z=1===M?c[0].blocksPerLine*c[0].blocksPerColumn:m*n.mcusPerColumn;W<=z;){const n=u?Math.min(z-W,u):z;if(n>0){for(R=0;R<M;R++)c[R].pred=0;if(k=0,1===M)for(O=c[0],L=0;L<n;L++)T(O,V,W),W++;else for(L=0;L<n;L++){for(R=0;R<M;R++)for(O=c[R],B=O.h,U=O.v,D=0;D<U;D++)for(N=0;N<B;N++)G(O,V,W,D,N);W++}}if(x=0,F=S(e,t),!F)break;if(F.invalid){const e=n>0?"unexpected":"excessive";(0,r.warn)("decodeScan - ".concat(e," MCU data, current marker is: ").concat(F.invalid)),t=F.offset}if(!(F.marker>=65488&&F.marker<=65495))break;t+=2}return t-_}function b(e,t,n){const r=e.quantizationTable,i=e.blockData;let s,a,l,y,v,_,b,x,S,w,E,P,C,A,k,j,I;if(!r)throw new o("missing required Quantization Table.");for(let o=0;o<64;o+=8)S=i[t+o],w=i[t+o+1],E=i[t+o+2],P=i[t+o+3],C=i[t+o+4],A=i[t+o+5],k=i[t+o+6],j=i[t+o+7],S*=r[o],0!==(w|E|P|C|A|k|j)?(w*=r[o+1],E*=r[o+2],P*=r[o+3],C*=r[o+4],A*=r[o+5],k*=r[o+6],j*=r[o+7],s=g*S+128>>8,a=g*C+128>>8,l=E,y=k,v=m*(w-j)+128>>8,x=m*(w+j)+128>>8,_=P<<4,b=A<<4,s=s+a+1>>1,a=s-a,I=l*f+y*p+128>>8,l=l*p-y*f+128>>8,y=I,v=v+b+1>>1,b=v-b,x=x+_+1>>1,_=x-_,s=s+y+1>>1,y=s-y,a=a+l+1>>1,l=a-l,I=v*h+x*d+2048>>12,v=v*d-x*h+2048>>12,x=I,I=_*u+b*c+2048>>12,_=_*c-b*u+2048>>12,b=I,n[o]=s+x,n[o+7]=s-x,n[o+1]=a+b,n[o+6]=a-b,n[o+2]=l+_,n[o+5]=l-_,n[o+3]=y+v,n[o+4]=y-v):(I=g*S+512>>10,n[o]=I,n[o+1]=I,n[o+2]=I,n[o+3]=I,n[o+4]=I,n[o+5]=I,n[o+6]=I,n[o+7]=I);for(let o=0;o<8;++o)S=n[o],w=n[o+8],E=n[o+16],P=n[o+24],C=n[o+32],A=n[o+40],k=n[o+48],j=n[o+56],0!==(w|E|P|C|A|k|j)?(s=g*S+2048>>12,a=g*C+2048>>12,l=E,y=k,v=m*(w-j)+2048>>12,x=m*(w+j)+2048>>12,_=P,b=A,s=4112+(s+a+1>>1),a=s-a,I=l*f+y*p+2048>>12,l=l*p-y*f+2048>>12,y=I,v=v+b+1>>1,b=v-b,x=x+_+1>>1,_=x-_,s=s+y+1>>1,y=s-y,a=a+l+1>>1,l=a-l,I=v*h+x*d+2048>>12,v=v*d-x*h+2048>>12,x=I,I=_*u+b*c+2048>>12,_=_*c-b*u+2048>>12,b=I,S=s+x,j=s-x,w=a+b,k=a-b,E=l+_,A=l-_,P=y+v,C=y-v,S<16?S=0:S>=4080?S=255:S>>=4,w<16?w=0:w>=4080?w=255:w>>=4,E<16?E=0:E>=4080?E=255:E>>=4,P<16?P=0:P>=4080?P=255:P>>=4,C<16?C=0:C>=4080?C=255:C>>=4,A<16?A=0:A>=4080?A=255:A>>=4,k<16?k=0:k>=4080?k=255:k>>=4,j<16?j=0:j>=4080?j=255:j>>=4,i[t+o]=S,i[t+o+8]=w,i[t+o+16]=E,i[t+o+24]=P,i[t+o+32]=C,i[t+o+40]=A,i[t+o+48]=k,i[t+o+56]=j):(I=g*S+8192>>14,I=I<-2040?0:I>=2024?255:I+2056>>4,i[t+o]=I,i[t+o+8]=I,i[t+o+16]=I,i[t+o+24]=I,i[t+o+32]=I,i[t+o+40]=I,i[t+o+48]=I,i[t+o+56]=I)}function x(e,t){const n=t.blocksPerLine,r=t.blocksPerColumn,i=new Int16Array(64);for(let o=0;o<r;o++)for(let e=0;e<n;e++)b(t,v(t,o,e),i);return t.blockData}function S(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:t;const r=e.length-1;let o=n<t?n:t;if(t>=r)return null;const s=(0,i.readUint16)(e,t);if(s>=65472&&s<=65534)return{invalid:null,marker:s,offset:t};let a=(0,i.readUint16)(e,o);for(;!(a>=65472&&a<=65534);){if(++o>=r)return null;a=(0,i.readUint16)(e,o)}return{invalid:s.toString(16),marker:a,offset:o}}t.JpegImage=class{constructor(){let{decodeTransform:e=null,colorTransform:t=-1}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this._decodeTransform=e,this._colorTransform=t}parse(e){let{dnlScanLines:t=null}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};function n(){const t=(0,i.readUint16)(e,h);h+=2;let n=h+t-2;const o=S(e,n,h);o&&o.invalid&&((0,r.warn)("readDataBlock - incorrect length, current marker is: "+o.invalid),n=o.offset);const s=e.subarray(h,n);return h+=s.length,s}function c(e){const t=Math.ceil(e.samplesPerLine/8/e.maxH),n=Math.ceil(e.scanLines/8/e.maxV);for(const r of e.components){const i=Math.ceil(Math.ceil(e.samplesPerLine/8)*r.h/e.maxH),o=Math.ceil(Math.ceil(e.scanLines/8)*r.v/e.maxV),s=t*r.h,a=n*r.v*64*(s+1);r.blockData=new Int16Array(a),r.blocksPerLine=i,r.blocksPerColumn=o}e.mcusPerLine=t,e.mcusPerColumn=n}let u,d,h=0,p=null,f=null,g=0;const m=[],v=[],b=[];let w=(0,i.readUint16)(e,h);if(h+=2,65496!==w)throw new o("SOI not found");w=(0,i.readUint16)(e,h),h+=2;e:for(;65497!==w;){let x,P,C;switch(w){case 65504:case 65505:case 65506:case 65507:case 65508:case 65509:case 65510:case 65511:case 65512:case 65513:case 65514:case 65515:case 65516:case 65517:case 65518:case 65519:case 65534:const A=n();65504===w&&74===A[0]&&70===A[1]&&73===A[2]&&70===A[3]&&0===A[4]&&(p={version:{major:A[5],minor:A[6]},densityUnits:A[7],xDensity:A[8]<<8|A[9],yDensity:A[10]<<8|A[11],thumbWidth:A[12],thumbHeight:A[13],thumbData:A.subarray(14,14+3*A[12]*A[13])}),65518===w&&65===A[0]&&100===A[1]&&111===A[2]&&98===A[3]&&101===A[4]&&(f={version:A[5]<<8|A[6],flags0:A[7]<<8|A[8],flags1:A[9]<<8|A[10],transformCode:A[11]});break;case 65499:const k=(0,i.readUint16)(e,h);h+=2;const j=k+h-2;let I;for(;h<j;){const t=e[h++],n=new Uint16Array(64);if(t>>4===0)for(P=0;P<64;P++)I=l[P],n[I]=e[h++];else{if(t>>4!==1)throw new o("DQT - invalid table spec");for(P=0;P<64;P++)I=l[P],n[I]=(0,i.readUint16)(e,h),h+=2}m[15&t]=n}break;case 65472:case 65473:case 65474:if(u)throw new o("Only single frame JPEGs supported");h+=2,u={},u.extended=65473===w,u.progressive=65474===w,u.precision=e[h++];const G=(0,i.readUint16)(e,h);h+=2,u.scanLines=t||G,u.samplesPerLine=(0,i.readUint16)(e,h),h+=2,u.components=[],u.componentIds={};const T=e[h++];let M=0,O=0;for(x=0;x<T;x++){const t=e[h],n=e[h+1]>>4,r=15&e[h+1];M<n&&(M=n),O<r&&(O=r);const i=e[h+2];C=u.components.push({h:n,v:r,quantizationId:i,quantizationTable:null}),u.componentIds[t]=C-1,h+=3}u.maxH=M,u.maxV=O,c(u);break;case 65476:const R=(0,i.readUint16)(e,h);for(h+=2,x=2;x<R;){const t=e[h++],n=new Uint8Array(16);let r=0;for(P=0;P<16;P++,h++)r+=n[P]=e[h];const i=new Uint8Array(r);for(P=0;P<r;P++,h++)i[P]=e[h];x+=17+r,(t>>4===0?b:v)[15&t]=y(n,i)}break;case 65501:h+=2,d=(0,i.readUint16)(e,h),h+=2;break;case 65498:const D=1===++g&&!t;h+=2;const N=e[h++],L=[];for(x=0;x<N;x++){const t=e[h++],n=u.componentIds[t],r=u.components[n];r.index=t;const i=e[h++];r.huffmanTableDC=b[i>>4],r.huffmanTableAC=v[15&i],L.push(r)}const V=e[h++],F=e[h++],z=e[h++];try{const t=_(e,h,u,L,d,V,F,z>>4,15&z,D);h+=t}catch(E){if(E instanceof s)return(0,r.warn)("".concat(E.message," -- attempting to re-parse the JPEG image.")),this.parse(e,{dnlScanLines:E.scanLines});if(E instanceof a){(0,r.warn)("".concat(E.message," -- ignoring the rest of the image data."));break e}throw E}break;case 65500:h+=4;break;case 65535:255!==e[h]&&h--;break;default:const B=S(e,h-2,h-3);if(B&&B.invalid){(0,r.warn)("JpegImage.parse - unexpected data, current marker is: "+B.invalid),h=B.offset;break}if(!B||h>=e.length-1){(0,r.warn)("JpegImage.parse - reached the end of the image data without finding an EOI marker (0xFFD9).");break e}throw new o("JpegImage.parse - unknown marker: "+w.toString(16))}w=(0,i.readUint16)(e,h),h+=2}this.width=u.samplesPerLine,this.height=u.scanLines,this.jfif=p,this.adobe=f,this.components=[];for(const r of u.components){const e=m[r.quantizationId];e&&(r.quantizationTable=e),this.components.push({index:r.index,output:x(0,r),scaleX:r.h/u.maxH,scaleY:r.v/u.maxV,blocksPerLine:r.blocksPerLine,blocksPerColumn:r.blocksPerColumn})}this.numComponents=this.components.length}_getLinearizedBlockData(e,t){let n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];const r=this.width/e,i=this.height/t;let o,s,a,l,c,u,d,h,p,f,g,m=0;const y=this.components.length,v=e*t*y,_=new Uint8ClampedArray(v),b=new Uint32Array(e),x=4294967288;let S;for(d=0;d<y;d++){if(o=this.components[d],s=o.scaleX*r,a=o.scaleY*i,m=d,g=o.output,l=o.blocksPerLine+1<<3,s!==S){for(c=0;c<e;c++)h=0|c*s,b[c]=(h&x)<<3|7&h;S=s}for(u=0;u<t;u++)for(h=0|u*a,f=l*(h&x)|(7&h)<<3,c=0;c<e;c++)_[m]=g[f+b[c]],m+=y}let w=this._decodeTransform;if(n||4!==y||w||(w=new Int32Array([-256,255,-256,255,-256,255,-256,255])),w)for(d=0;d<v;)for(h=0,p=0;h<y;h++,d++,p+=2)_[d]=(_[d]*w[p]>>8)+w[p+1];return _}get _isColorConversionNeeded(){return this.adobe?!!this.adobe.transformCode:3===this.numComponents?0!==this._colorTransform&&(82!==this.components[0].index||71!==this.components[1].index||66!==this.components[2].index):1===this._colorTransform}_convertYccToRgb(e){let t,n,r;for(let i=0,o=e.length;i<o;i+=3)t=e[i],n=e[i+1],r=e[i+2],e[i]=t-179.456+1.402*r,e[i+1]=t+135.459-.344*n-.714*r,e[i+2]=t-226.816+1.772*n;return e}_convertYcckToRgb(e){let t,n,r,i,o=0;for(let s=0,a=e.length;s<a;s+=4)t=e[s],n=e[s+1],r=e[s+2],i=e[s+3],e[o++]=n*(-660635669420364e-19*n+.000437130475926232*r-54080610064599e-18*t+.00048449797120281*i-.154362151871126)-122.67195406894+r*(-.000957964378445773*r+.000817076911346625*t-.00477271405408747*i+1.53380253221734)+t*(.000961250184130688*t-.00266257332283933*i+.48357088451265)+i*(-.000336197177618394*i+.484791561490776),e[o++]=107.268039397724+n*(219927104525741e-19*n-.000640992018297945*r+.000659397001245577*t+.000426105652938837*i-.176491792462875)+r*(-.000778269941513683*r+.00130872261408275*t+.000770482631801132*i-.151051492775562)+t*(.00126935368114843*t-.00265090189010898*i+.25802910206845)+i*(-.000318913117588328*i-.213742400323665),e[o++]=n*(-.000570115196973677*n-263409051004589e-19*r+.0020741088115012*t-.00288260236853442*i+.814272968359295)-20.810012546947+r*(-153496057440975e-19*r-.000132689043961446*t+.000560833691242812*i-.195152027534049)+t*(.00174418132927582*t-.00255243321439347*i+.116935020465145)+i*(-.000343531996510555*i+.24165260232407);return e.subarray(0,o)}_convertYcckToCmyk(e){let t,n,r;for(let i=0,o=e.length;i<o;i+=4)t=e[i],n=e[i+1],r=e[i+2],e[i]=434.456-t-1.402*r,e[i+1]=119.541-t+.344*n+.714*r,e[i+2]=481.816-t-1.772*n;return e}_convertCmykToRgb(e){let t,n,r,i,o=0;for(let s=0,a=e.length;s<a;s+=4)t=e[s],n=e[s+1],r=e[s+2],i=e[s+3],e[o++]=255+t*(-6747147073602441e-20*t+.0008379262121013727*n+.0002894718188643294*r+.003264231057537806*i-1.1185611867203937)+n*(26374107616089405e-21*n-8626949158638572e-20*r-.0002748769067499491*i-.02155688794978967)+r*(-3878099212869363e-20*r-.0003267808279485286*i+.0686742238595345)-i*(.0003361971776183937*i+.7430659151342254),e[o++]=255+t*(.00013596372813588848*t+.000924537132573585*n+.00010567359618683593*r+.0004791864687436512*i-.3109689587515875)+n*(-.00023545346108370344*n+.0002702845253534714*r+.0020200308977307156*i-.7488052167015494)+r*(6834815998235662e-20*r+.00015168452363460973*i-.09751927774728933)-i*(.0003189131175883281*i+.7364883807733168),e[o++]=255+t*(13598650411385307e-21*t+.00012423956175490851*n+.0004751985097583589*r-36729317476630422e-22*i-.05562186980264034)+n*(.00016141380598724676*n+.0009692239130725186*r+.0007782692450036253*i-.44015232367526463)+r*(5.068882914068769e-7*r+.0017778369011375071*i-.7591454649749609)-i*(.0003435319965105553*i+.7063770186160144);return e.subarray(0,o)}getData(e){let{width:t,height:n,forceRGB:r=!1,isSourcePDF:i=!1}=e;if(this.numComponents>4)throw new o("Unsupported color mode");const s=this._getLinearizedBlockData(t,n,i);if(1===this.numComponents&&r){const e=new Uint8ClampedArray(3*s.length);let t=0;for(const n of s)e[t++]=n,e[t++]=n,e[t++]=n;return e}if(3===this.numComponents&&this._isColorConversionNeeded)return this._convertYccToRgb(s);if(4===this.numComponents){if(this._isColorConversionNeeded)return r?this._convertYcckToRgb(s):this._convertYcckToCmyk(s);if(r)return this._convertCmykToRgb(s)}return s}}},(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.JpxStream=void 0;var r=n(17),i=n(28),o=n(2);class s extends r.DecodeStream{constructor(e,t,n){super(t),this.stream=e,this.dict=e.dict,this.maybeLength=t,this.params=n}get bytes(){return(0,o.shadow)(this,"bytes",this.stream.getBytes(this.maybeLength))}ensureBuffer(e){}readBlock(){if(this.eof)return;const e=new i.JpxImage;e.parse(this.bytes);const t=e.width,n=e.height,r=e.componentsCount,o=e.tiles.length;if(1===o)this.buffer=e.tiles[0].items;else{const i=new Uint8ClampedArray(t*n*r);for(let n=0;n<o;n++){const o=e.tiles[n],s=o.width,a=o.height,l=o.left,c=o.top,u=o.items;let d=0,h=(t*c+l)*r;const p=t*r,f=s*r;for(let e=0;e<a;e++){const e=u.subarray(d,d+f);i.set(e,h),d+=f,h+=p}}this.buffer=i}this.bufferLength=this.buffer.length,this.eof=!0}}t.JpxStream=s},(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.JpxImage=void 0;var r=n(2),i=n(4),o=n(24);class s extends r.BaseException{constructor(e){super("JPX error: ".concat(e),"JpxError")}}const a={LL:0,LH:1,HL:1,HH:2};function l(e,t){e.x0=Math.ceil(t.XOsiz/e.XRsiz),e.x1=Math.ceil(t.Xsiz/e.XRsiz),e.y0=Math.ceil(t.YOsiz/e.YRsiz),e.y1=Math.ceil(t.Ysiz/e.YRsiz),e.width=e.x1-e.x0,e.height=e.y1-e.y0}function c(e,t){const n=e.SIZ,r=[];let i;const o=Math.ceil((n.Xsiz-n.XTOsiz)/n.XTsiz),s=Math.ceil((n.Ysiz-n.YTOsiz)/n.YTsiz);for(let a=0;a<s;a++)for(let e=0;e<o;e++)i={},i.tx0=Math.max(n.XTOsiz+e*n.XTsiz,n.XOsiz),i.ty0=Math.max(n.YTOsiz+a*n.YTsiz,n.YOsiz),i.tx1=Math.min(n.XTOsiz+(e+1)*n.XTsiz,n.Xsiz),i.ty1=Math.min(n.YTOsiz+(a+1)*n.YTsiz,n.Ysiz),i.width=i.tx1-i.tx0,i.height=i.ty1-i.ty0,i.components=[],r.push(i);e.tiles=r;for(let a=0,l=n.Csiz;a<l;a++){const e=t[a];for(let t=0,n=r.length;t<n;t++){const n={};i=r[t],n.tcx0=Math.ceil(i.tx0/e.XRsiz),n.tcy0=Math.ceil(i.ty0/e.YRsiz),n.tcx1=Math.ceil(i.tx1/e.XRsiz),n.tcy1=Math.ceil(i.ty1/e.YRsiz),n.width=n.tcx1-n.tcx0,n.height=n.tcy1-n.tcy0,i.components[a]=n}}}function u(e,t,n){const r=t.codingStyleParameters,i={};return r.entropyCoderWithCustomPrecincts?(i.PPx=r.precinctsSizes[n].PPx,i.PPy=r.precinctsSizes[n].PPy):(i.PPx=15,i.PPy=15),i.xcb_=n>0?Math.min(r.xcb,i.PPx-1):Math.min(r.xcb,i.PPx),i.ycb_=n>0?Math.min(r.ycb,i.PPy-1):Math.min(r.ycb,i.PPy),i}function d(e,t,n){const r=1<<n.PPx,i=1<<n.PPy,o=0===t.resLevel,s=1<<n.PPx+(o?0:-1),a=1<<n.PPy+(o?0:-1),l=t.trx1>t.trx0?Math.ceil(t.trx1/r)-Math.floor(t.trx0/r):0,c=t.try1>t.try0?Math.ceil(t.try1/i)-Math.floor(t.try0/i):0,u=l*c;t.precinctParameters={precinctWidth:r,precinctHeight:i,numprecinctswide:l,numprecinctshigh:c,numprecincts:u,precinctWidthInSubband:s,precinctHeightInSubband:a}}function h(e,t,n){const r=n.xcb_,i=n.ycb_,o=1<<r,s=1<<i,a=t.tbx0>>r,l=t.tby0>>i,c=t.tbx1+o-1>>r,u=t.tby1+s-1>>i,d=t.resolution.precinctParameters,h=[],p=[];let f,g,m,y;for(g=l;g<u;g++)for(f=a;f<c;f++){if(m={cbx:f,cby:g,tbx0:o*f,tby0:s*g,tbx1:o*(f+1),tby1:s*(g+1)},m.tbx0_=Math.max(t.tbx0,m.tbx0),m.tby0_=Math.max(t.tby0,m.tby0),m.tbx1_=Math.min(t.tbx1,m.tbx1),m.tby1_=Math.min(t.tby1,m.tby1),y=Math.floor((m.tbx0_-t.tbx0)/d.precinctWidthInSubband)+Math.floor((m.tby0_-t.tby0)/d.precinctHeightInSubband)*d.numprecinctswide,m.precinctNumber=y,m.subbandType=t.type,m.Lblock=3,m.tbx1_<=m.tbx0_||m.tby1_<=m.tby0_)continue;h.push(m);let e=p[y];void 0!==e?(f<e.cbxMin?e.cbxMin=f:f>e.cbxMax&&(e.cbxMax=f),g<e.cbyMin?e.cbxMin=g:g>e.cbyMax&&(e.cbyMax=g)):p[y]=e={cbxMin:f,cbyMin:g,cbxMax:f,cbyMax:g},m.precinct=e}t.codeblockParameters={codeblockWidth:r,codeblockHeight:i,numcodeblockwide:c-a+1,numcodeblockhigh:u-l+1},t.codeblocks=h,t.precincts=p}function p(e,t,n){const r=[],i=e.subbands;for(let o=0,s=i.length;o<s;o++){const e=i[o].codeblocks;for(let n=0,i=e.length;n<i;n++){const i=e[n];i.precinctNumber===t&&r.push(i)}}return{layerNumber:n,codeblocks:r}}function f(e){const t=e.SIZ,n=e.currentTile.index,r=e.tiles[n],i=r.codingStyleDefaultParameters.layersCount,o=t.Csiz;let a=0;for(let s=0;s<o;s++)a=Math.max(a,r.components[s].codingStyleParameters.decompositionLevelsCount);let l=0,c=0,u=0,d=0;this.nextPacket=function(){for(;l<i;l++){for(;c<=a;c++){for(;u<o;u++){const e=r.components[u];if(c>e.codingStyleParameters.decompositionLevelsCount)continue;const t=e.resolutions[c],n=t.precinctParameters.numprecincts;for(;d<n;){const e=p(t,d,l);return d++,e}d=0}u=0}c=0}throw new s("Out of packets")}}function g(e){const t=e.SIZ,n=e.currentTile.index,r=e.tiles[n],i=r.codingStyleDefaultParameters.layersCount,o=t.Csiz;let a=0;for(let s=0;s<o;s++)a=Math.max(a,r.components[s].codingStyleParameters.decompositionLevelsCount);let l=0,c=0,u=0,d=0;this.nextPacket=function(){for(;l<=a;l++){for(;c<i;c++){for(;u<o;u++){const e=r.components[u];if(l>e.codingStyleParameters.decompositionLevelsCount)continue;const t=e.resolutions[l],n=t.precinctParameters.numprecincts;for(;d<n;){const e=p(t,d,c);return d++,e}d=0}u=0}c=0}throw new s("Out of packets")}}function m(e){const t=e.SIZ,n=e.currentTile.index,r=e.tiles[n],i=r.codingStyleDefaultParameters.layersCount,o=t.Csiz;let a,l,c,u,d=0;for(c=0;c<o;c++){const e=r.components[c];d=Math.max(d,e.codingStyleParameters.decompositionLevelsCount)}const h=new Int32Array(d+1);for(l=0;l<=d;++l){let e=0;for(c=0;c<o;++c){const t=r.components[c].resolutions;l<t.length&&(e=Math.max(e,t[l].precinctParameters.numprecincts))}h[l]=e}a=0,l=0,c=0,u=0,this.nextPacket=function(){for(;l<=d;l++){for(;u<h[l];u++){for(;c<o;c++){const e=r.components[c];if(l>e.codingStyleParameters.decompositionLevelsCount)continue;const t=e.resolutions[l],n=t.precinctParameters.numprecincts;if(!(u>=n)){for(;a<i;){const e=p(t,u,a);return a++,e}a=0}}c=0}u=0}throw new s("Out of packets")}}function y(e){const t=e.SIZ,n=e.currentTile.index,r=e.tiles[n],i=r.codingStyleDefaultParameters.layersCount,o=t.Csiz,a=b(r),l=a;let c=0,u=0,d=0,h=0,f=0;this.nextPacket=function(){for(;f<l.maxNumHigh;f++){for(;h<l.maxNumWide;h++){for(;d<o;d++){const e=r.components[d],t=e.codingStyleParameters.decompositionLevelsCount;for(;u<=t;u++){const t=e.resolutions[u],n=a.components[d].resolutions[u],r=_(h,f,n,l,t);if(null!==r){for(;c<i;){const e=p(t,r,c);return c++,e}c=0}}u=0}d=0}h=0}throw new s("Out of packets")}}function v(e){const t=e.SIZ,n=e.currentTile.index,r=e.tiles[n],i=r.codingStyleDefaultParameters.layersCount,o=t.Csiz,a=b(r);let l=0,c=0,u=0,d=0,h=0;this.nextPacket=function(){for(;u<o;++u){const e=r.components[u],t=a.components[u],n=e.codingStyleParameters.decompositionLevelsCount;for(;h<t.maxNumHigh;h++){for(;d<t.maxNumWide;d++){for(;c<=n;c++){const n=e.resolutions[c],r=t.resolutions[c],o=_(d,h,r,t,n);if(null!==o){for(;l<i;){const e=p(n,o,l);return l++,e}l=0}}c=0}d=0}h=0}throw new s("Out of packets")}}function _(e,t,n,r,i){const o=e*r.minWidth,s=t*r.minHeight;if(o%n.width!==0||s%n.height!==0)return null;const a=s/n.width*i.precinctParameters.numprecinctswide;return o/n.height+a}function b(e){const t=e.components.length;let n=Number.MAX_VALUE,r=Number.MAX_VALUE,i=0,o=0;const s=new Array(t);for(let a=0;a<t;a++){const t=e.components[a],l=t.codingStyleParameters.decompositionLevelsCount,c=new Array(l+1);let u=Number.MAX_VALUE,d=Number.MAX_VALUE,h=0,p=0,f=1;for(let e=l;e>=0;--e){const n=t.resolutions[e],r=f*n.precinctParameters.precinctWidth,i=f*n.precinctParameters.precinctHeight;u=Math.min(u,r),d=Math.min(d,i),h=Math.max(h,n.precinctParameters.numprecinctswide),p=Math.max(p,n.precinctParameters.numprecinctshigh),c[e]={width:r,height:i},f<<=1}n=Math.min(n,u),r=Math.min(r,d),i=Math.max(i,h),o=Math.max(o,p),s[a]={resolutions:c,minWidth:u,minHeight:d,maxNumWide:h,maxNumHigh:p}}return{components:s,minWidth:n,minHeight:r,maxNumWide:i,maxNumHigh:o}}function x(e){const t=e.SIZ,n=e.currentTile.index,r=e.tiles[n],i=t.Csiz;for(let s=0;s<i;s++){const e=r.components[s],t=e.codingStyleParameters.decompositionLevelsCount,n=[],i=[];for(let r=0;r<=t;r++){const o=u(0,e,r),s={},a=1<<t-r;let l;if(s.trx0=Math.ceil(e.tcx0/a),s.try0=Math.ceil(e.tcy0/a),s.trx1=Math.ceil(e.tcx1/a),s.try1=Math.ceil(e.tcy1/a),s.resLevel=r,d(0,s,o),n.push(s),0===r)l={},l.type="LL",l.tbx0=Math.ceil(e.tcx0/a),l.tby0=Math.ceil(e.tcy0/a),l.tbx1=Math.ceil(e.tcx1/a),l.tby1=Math.ceil(e.tcy1/a),l.resolution=s,h(0,l,o),i.push(l),s.subbands=[l];else{const n=1<<t-r+1,a=[];l={},l.type="HL",l.tbx0=Math.ceil(e.tcx0/n-.5),l.tby0=Math.ceil(e.tcy0/n),l.tbx1=Math.ceil(e.tcx1/n-.5),l.tby1=Math.ceil(e.tcy1/n),l.resolution=s,h(0,l,o),i.push(l),a.push(l),l={},l.type="LH",l.tbx0=Math.ceil(e.tcx0/n),l.tby0=Math.ceil(e.tcy0/n-.5),l.tbx1=Math.ceil(e.tcx1/n),l.tby1=Math.ceil(e.tcy1/n-.5),l.resolution=s,h(0,l,o),i.push(l),a.push(l),l={},l.type="HH",l.tbx0=Math.ceil(e.tcx0/n-.5),l.tby0=Math.ceil(e.tcy0/n-.5),l.tbx1=Math.ceil(e.tcx1/n-.5),l.tby1=Math.ceil(e.tcy1/n-.5),l.resolution=s,h(0,l,o),i.push(l),a.push(l),s.subbands=a}}e.resolutions=n,e.subbands=i}const o=r.codingStyleDefaultParameters.progressionOrder;switch(o){case 0:r.packetsIterator=new f(e);break;case 1:r.packetsIterator=new g(e);break;case 2:r.packetsIterator=new m(e);break;case 3:r.packetsIterator=new y(e);break;case 4:r.packetsIterator=new v(e);break;default:throw new s("Unsupported progression order ".concat(o))}}function S(e,t,n,r){let o,a=0,l=0,c=!1;function u(e){for(;l<e;){const e=t[n+a];a++,c?(o=o<<7|e,l+=7,c=!1):(o=o<<8|e,l+=8),255===e&&(c=!0)}return l-=e,o>>>l&(1<<e)-1}function d(e){return 255===t[n+a-1]&&t[n+a]===e?(h(1),!0):255===t[n+a]&&t[n+a+1]===e&&(h(2),!0)}function h(e){a+=e}function p(){l=0,c&&(a++,c=!1)}function f(){if(0===u(1))return 1;if(0===u(1))return 2;let e=u(2);return e<3?e+3:(e=u(5),e<31?e+6:(e=u(7),e+37))}const g=e.currentTile.index,m=e.tiles[g],y=e.COD.sopMarkerUsed,v=e.COD.ephMarkerUsed,_=m.packetsIterator;for(;a<r;){p(),y&&d(145)&&h(4);const e=_.nextPacket();if(!u(1))continue;const r=e.layerNumber,o=[];let l;for(let t=0,n=e.codeblocks.length;t<n;t++){l=e.codeblocks[t];let n=l.precinct;const a=l.cbx-n.cbxMin,c=l.cby-n.cbyMin;let d,h,p=!1,g=!1;if(void 0!==l.included)p=!!u(1);else{let e;if(n=l.precinct,void 0!==n.inclusionTree)e=n.inclusionTree;else{const t=n.cbxMax-n.cbxMin+1,i=n.cbyMax-n.cbyMin+1;e=new A(t,i,r),h=new C(t,i),n.inclusionTree=e,n.zeroBitPlanesTree=h;for(let e=0;e<r;e++)if(0!==u(1))throw new s("Invalid tag tree")}if(e.reset(a,c,r))for(;;){if(!u(1)){e.incrementValue(r);break}if(d=!e.nextLevel(),d){l.included=!0,p=g=!0;break}}}if(!p)continue;if(g){for(h=n.zeroBitPlanesTree,h.reset(a,c);;)if(u(1)){if(d=!h.nextLevel(),d)break}else h.incrementValue();l.zeroBitPlanes=h.value}const m=f();for(;u(1);)l.Lblock++;const y=(0,i.log2)(m),v=u((m<1<<y?y-1:y)+l.Lblock);o.push({codeblock:l,codingpasses:m,dataLength:v})}for(p(),v&&d(146);o.length>0;){const e=o.shift();l=e.codeblock,void 0===l.data&&(l.data=[]),l.data.push({data:t,start:n+a,end:n+a+e.dataLength,codingpasses:e.codingpasses}),a+=e.dataLength}}return a}function w(e,t,n,r,i,s,a,l,c){const u=r.tbx0,d=r.tby0,h=r.tbx1-r.tbx0,p=r.codeblocks,f="H"===r.type.charAt(0)?1:0,g="H"===r.type.charAt(1)?t:0;for(let m=0,y=p.length;m<y;++m){const n=p[m],y=n.tbx1_-n.tbx0_,v=n.tby1_-n.tby0_;if(0===y||0===v)continue;if(void 0===n.data)continue;const _=new k(y,v,n.subbandType,n.zeroBitPlanes,s);let b=2;const x=n.data;let S,w,E,P=0,C=0;for(S=0,w=x.length;S<w;S++)E=x[S],P+=E.end-E.start,C+=E.codingpasses;const A=new Uint8Array(P);let j=0;for(S=0,w=x.length;S<w;S++){E=x[S];const e=E.data.subarray(E.start,E.end);A.set(e,j),j+=e.length}const I=new o.ArithmeticDecoder(A,0,P);for(_.setDecoder(I),S=0;S<C;S++){switch(b){case 0:_.runSignificancePropagationPass();break;case 1:_.runMagnitudeRefinementPass();break;case 2:_.runCleanupPass(),l&&_.checkSegmentationSymbol()}c&&_.reset(),b=(b+1)%3}let G=n.tbx0_-u+(n.tby0_-d)*h;const T=_.coefficentsSign,M=_.coefficentsMagnitude,O=_.bitsDecoded,R=a?0:.5;let D,N,L;j=0;const V="LL"!==r.type;for(S=0;S<v;S++){const n=2*(G/h|0)*(t-h)+f+g;for(D=0;D<y;D++){if(N=M[j],0!==N){N=(N+R)*i,0!==T[j]&&(N=-N),L=O[j];const t=V?n+(G<<1):G;e[t]=a&&L>=s?N:N*(1<<s-L)}G++,j++}G+=h-y}}}function E(e,t,n){const r=t.components[n],i=r.codingStyleParameters,o=r.quantizationParameters,s=i.decompositionLevelsCount,l=o.SPqcds,c=o.scalarExpounded,u=o.guardBits,d=i.segmentationSymbolUsed,h=i.resetContextProbabilities,p=e.components[n].precision,f=i.reversibleTransformation,g=f?new G:new I,m=[];let y=0;for(let _=0;_<=s;_++){const e=r.resolutions[_],t=e.trx1-e.trx0,n=e.try1-e.try0,i=new Float32Array(t*n);for(let r=0,o=e.subbands.length;r<o;r++){let n,o;c?(n=l[y].mu,o=l[y].epsilon,y++):(n=l[0].mu,o=l[0].epsilon+(_>0?1-_:0));const s=e.subbands[r],g=a[s.type];w(i,t,0,s,f?1:2**(p+g-o)*(1+n/2048),u+o-1,f,d,h)}m.push({width:t,height:n,items:i})}const v=g.calculate(m,r.tcx0,r.tcy0);return{left:r.tcx0,top:r.tcy0,width:v.width,height:v.height,items:v.items}}function P(e,t){const n=e.SIZ.Csiz,r=e.tiles[t];for(let i=0;i<n;i++){const t=r.components[i],n=void 0!==e.currentTile.QCC[i]?e.currentTile.QCC[i]:e.currentTile.QCD;t.quantizationParameters=n;const o=void 0!==e.currentTile.COC[i]?e.currentTile.COC[i]:e.currentTile.COD;t.codingStyleParameters=o}r.codingStyleDefaultParameters=e.currentTile.COD}t.JpxImage=class{constructor(){this.failOnCorruptedImage=!1}parse(e){if(65359===(0,i.readUint16)(e,0))return void this.parseCodestream(e,0,e.length);const t=e.length;let n=0;for(;n<t;){let o=8,a=(0,i.readUint32)(e,n);const l=(0,i.readUint32)(e,n+4);if(n+=o,1===a&&(a=4294967296*(0,i.readUint32)(e,n)+(0,i.readUint32)(e,n+4),n+=8,o+=8),0===a&&(a=t-n+o),a<o)throw new s("Invalid box field size");const c=a-o;let u=!0;switch(l){case 1785737832:u=!1;break;case 1668246642:const t=e[n];if(1===t){const t=(0,i.readUint32)(e,n+3);switch(t){case 16:case 17:case 18:break;default:(0,r.warn)("Unknown colorspace "+t)}}else 2===t&&(0,r.info)("ICC profile not supported");break;case 1785737827:this.parseCodestream(e,n,n+c);break;case 1783636e3:218793738!==(0,i.readUint32)(e,n)&&(0,r.warn)("Invalid JP2 signature");break;case 1783634458:case 1718909296:case 1920099697:case 1919251232:case 1768449138:break;default:const o=String.fromCharCode(l>>24&255,l>>16&255,l>>8&255,255&l);(0,r.warn)("Unsupported header type ".concat(l," (").concat(o,")."))}u&&(n+=c)}}parseImageProperties(e){let t=e.getByte();for(;t>=0;){const n=t;if(t=e.getByte(),65361===(n<<8|t)){e.skip(4);const t=e.getInt32()>>>0,n=e.getInt32()>>>0,r=e.getInt32()>>>0,i=e.getInt32()>>>0;e.skip(16);const o=e.getUint16();return this.width=t-r,this.height=n-i,this.componentsCount=o,void(this.bitsPerComponent=8)}}throw new s("No size marker found in JPX stream")}parseCodestream(e,t,n){const o={};let a=!1;try{let s=t;for(;s+1<n;){const t=(0,i.readUint16)(e,s);s+=2;let n,u,d,h,p,f,g=0;switch(t){case 65359:o.mainHeader=!0;break;case 65497:break;case 65361:g=(0,i.readUint16)(e,s);const m={};m.Xsiz=(0,i.readUint32)(e,s+4),m.Ysiz=(0,i.readUint32)(e,s+8),m.XOsiz=(0,i.readUint32)(e,s+12),m.YOsiz=(0,i.readUint32)(e,s+16),m.XTsiz=(0,i.readUint32)(e,s+20),m.YTsiz=(0,i.readUint32)(e,s+24),m.XTOsiz=(0,i.readUint32)(e,s+28),m.YTOsiz=(0,i.readUint32)(e,s+32);const y=(0,i.readUint16)(e,s+36);m.Csiz=y;const v=[];n=s+38;for(let t=0;t<y;t++){const t={precision:1+(127&e[n]),isSigned:!!(128&e[n]),XRsiz:e[n+1],YRsiz:e[n+2]};n+=3,l(t,m),v.push(t)}o.SIZ=m,o.components=v,c(o,v),o.QCC=[],o.COC=[];break;case 65372:g=(0,i.readUint16)(e,s);const _={};switch(n=s+2,u=e[n++],31&u){case 0:h=8,p=!0;break;case 1:h=16,p=!1;break;case 2:h=16,p=!0;break;default:throw new Error("Invalid SQcd value "+u)}for(_.noQuantization=8===h,_.scalarExpounded=p,_.guardBits=u>>5,d=[];n<g+s;){const t={};8===h?(t.epsilon=e[n++]>>3,t.mu=0):(t.epsilon=e[n]>>3,t.mu=(7&e[n])<<8|e[n+1],n+=2),d.push(t)}_.SPqcds=d,o.mainHeader?o.QCD=_:(o.currentTile.QCD=_,o.currentTile.QCC=[]);break;case 65373:g=(0,i.readUint16)(e,s);const b={};let w;switch(n=s+2,o.SIZ.Csiz<257?w=e[n++]:(w=(0,i.readUint16)(e,n),n+=2),u=e[n++],31&u){case 0:h=8,p=!0;break;case 1:h=16,p=!1;break;case 2:h=16,p=!0;break;default:throw new Error("Invalid SQcd value "+u)}for(b.noQuantization=8===h,b.scalarExpounded=p,b.guardBits=u>>5,d=[];n<g+s;){const t={};8===h?(t.epsilon=e[n++]>>3,t.mu=0):(t.epsilon=e[n]>>3,t.mu=(7&e[n])<<8|e[n+1],n+=2),d.push(t)}b.SPqcds=d,o.mainHeader?o.QCC[w]=b:o.currentTile.QCC[w]=b;break;case 65362:g=(0,i.readUint16)(e,s);const E={};n=s+2;const C=e[n++];E.entropyCoderWithCustomPrecincts=!!(1&C),E.sopMarkerUsed=!!(2&C),E.ephMarkerUsed=!!(4&C),E.progressionOrder=e[n++],E.layersCount=(0,i.readUint16)(e,n),n+=2,E.multipleComponentTransform=e[n++],E.decompositionLevelsCount=e[n++],E.xcb=2+(15&e[n++]),E.ycb=2+(15&e[n++]);const A=e[n++];if(E.selectiveArithmeticCodingBypass=!!(1&A),E.resetContextProbabilities=!!(2&A),E.terminationOnEachCodingPass=!!(4&A),E.verticallyStripe=!!(8&A),E.predictableTermination=!!(16&A),E.segmentationSymbolUsed=!!(32&A),E.reversibleTransformation=e[n++],E.entropyCoderWithCustomPrecincts){const t=[];for(;n<g+s;){const r=e[n++];t.push({PPx:15&r,PPy:r>>4})}E.precinctsSizes=t}const k=[];E.selectiveArithmeticCodingBypass&&k.push("selectiveArithmeticCodingBypass"),E.terminationOnEachCodingPass&&k.push("terminationOnEachCodingPass"),E.verticallyStripe&&k.push("verticallyStripe"),E.predictableTermination&&k.push("predictableTermination"),k.length>0&&(a=!0,(0,r.warn)("JPX: Unsupported COD options (".concat(k.join(", "),")."))),o.mainHeader?o.COD=E:(o.currentTile.COD=E,o.currentTile.COC=[]);break;case 65424:g=(0,i.readUint16)(e,s),f={},f.index=(0,i.readUint16)(e,s+2),f.length=(0,i.readUint32)(e,s+4),f.dataEnd=f.length+s-2,f.partIndex=e[s+8],f.partsCount=e[s+9],o.mainHeader=!1,0===f.partIndex&&(f.COD=o.COD,f.COC=o.COC.slice(0),f.QCD=o.QCD,f.QCC=o.QCC.slice(0)),o.currentTile=f;break;case 65427:f=o.currentTile,0===f.partIndex&&(P(o,f.index),x(o)),g=f.dataEnd-s,S(o,e,s,g);break;case 65363:(0,r.warn)("JPX: Codestream code 0xFF53 (COC) is not implemented.");case 65365:case 65367:case 65368:case 65380:g=(0,i.readUint16)(e,s);break;default:throw new Error("Unknown codestream code: "+t.toString(16))}s+=g}}catch(u){if(a||this.failOnCorruptedImage)throw new s(u.message);(0,r.warn)('JPX: Trying to recover from: "'.concat(u.message,'".'))}this.tiles=function(e){const t=e.SIZ,n=e.components,r=t.Csiz,i=[];for(let o=0,s=e.tiles.length;o<s;o++){const t=e.tiles[o],s=[];for(let n=0;n<r;n++)s[n]=E(e,t,n);const a=s[0],l=new Uint8ClampedArray(a.items.length*r),c={left:a.left,top:a.top,width:a.width,height:a.height,items:l};let u,d,h,p,f,g,m,y=0;if(t.codingStyleDefaultParameters.multipleComponentTransform){const e=4===r,i=s[0].items,o=s[1].items,a=s[2].items,c=e?s[3].items:null;u=n[0].precision-8,d=.5+(128<<u);const v=t.components[0],_=r-3;if(p=i.length,v.codingStyleParameters.reversibleTransformation)for(h=0;h<p;h++,y+=_){f=i[h]+d,g=o[h],m=a[h];const e=f-(m+g>>2);l[y++]=e+m>>u,l[y++]=e>>u,l[y++]=e+g>>u}else for(h=0;h<p;h++,y+=_)f=i[h]+d,g=o[h],m=a[h],l[y++]=f+1.402*m>>u,l[y++]=f-.34413*g-.71414*m>>u,l[y++]=f+1.772*g>>u;if(e)for(h=0,y=3;h<p;h++,y+=4)l[y]=c[h]+d>>u}else for(let e=0;e<r;e++){const t=s[e].items;for(u=n[e].precision-8,d=.5+(128<<u),y=e,h=0,p=t.length;h<p;h++)l[y]=t[h]+d>>u,y+=r}i.push(c)}return i}(o),this.width=o.SIZ.Xsiz-o.SIZ.XOsiz,this.height=o.SIZ.Ysiz-o.SIZ.YOsiz,this.componentsCount=o.SIZ.Csiz}};class C{constructor(e,t){const n=(0,i.log2)(Math.max(e,t))+1;this.levels=[];for(let r=0;r<n;r++){const n={width:e,height:t,items:[]};this.levels.push(n),e=Math.ceil(e/2),t=Math.ceil(t/2)}}reset(e,t){let n,r=0,i=0;for(;r<this.levels.length;){n=this.levels[r];const o=e+t*n.width;if(void 0!==n.items[o]){i=n.items[o];break}n.index=o,e>>=1,t>>=1,r++}r--,n=this.levels[r],n.items[n.index]=i,this.currentLevel=r,delete this.value}incrementValue(){const e=this.levels[this.currentLevel];e.items[e.index]++}nextLevel(){let e=this.currentLevel,t=this.levels[e];const n=t.items[t.index];return e--,e<0?(this.value=n,!1):(this.currentLevel=e,t=this.levels[e],t.items[t.index]=n,!0)}}class A{constructor(e,t,n){const r=(0,i.log2)(Math.max(e,t))+1;this.levels=[];for(let i=0;i<r;i++){const r=new Uint8Array(e*t);for(let e=0,t=r.length;e<t;e++)r[e]=n;const i={width:e,height:t,items:r};this.levels.push(i),e=Math.ceil(e/2),t=Math.ceil(t/2)}}reset(e,t,n){let r=0;for(;r<this.levels.length;){const i=this.levels[r],o=e+t*i.width;i.index=o;const s=i.items[o];if(255===s)break;if(s>n)return this.currentLevel=r,this.propagateValues(),!1;e>>=1,t>>=1,r++}return this.currentLevel=r-1,!0}incrementValue(e){const t=this.levels[this.currentLevel];t.items[t.index]=e+1,this.propagateValues()}propagateValues(){let e=this.currentLevel,t=this.levels[e];const n=t.items[t.index];for(;--e>=0;)t=this.levels[e],t.items[t.index]=n}nextLevel(){let e=this.currentLevel,t=this.levels[e];const n=t.items[t.index];return t.items[t.index]=255,e--,!(e<0)&&(this.currentLevel=e,t=this.levels[e],t.items[t.index]=n,!0)}}const k=function(){const e=17,t=new Uint8Array([0,5,8,0,3,7,8,0,4,7,8,0,0,0,0,0,1,6,8,0,3,7,8,0,4,7,8,0,0,0,0,0,2,6,8,0,3,7,8,0,4,7,8,0,0,0,0,0,2,6,8,0,3,7,8,0,4,7,8,0,0,0,0,0,2,6,8,0,3,7,8,0,4,7,8]),n=new Uint8Array([0,3,4,0,5,7,7,0,8,8,8,0,0,0,0,0,1,3,4,0,6,7,7,0,8,8,8,0,0,0,0,0,2,3,4,0,6,7,7,0,8,8,8,0,0,0,0,0,2,3,4,0,6,7,7,0,8,8,8,0,0,0,0,0,2,3,4,0,6,7,7,0,8,8,8]),r=new Uint8Array([0,1,2,0,1,2,2,0,2,2,2,0,0,0,0,0,3,4,5,0,4,5,5,0,5,5,5,0,0,0,0,0,6,7,7,0,7,7,7,0,7,7,7,0,0,0,0,0,8,8,8,0,8,8,8,0,8,8,8,0,0,0,0,0,8,8,8,0,8,8,8,0,8,8,8]);return class{constructor(e,i,o,s,a){let l;this.width=e,this.height=i,l="HH"===o?r:"HL"===o?n:t,this.contextLabelTable=l;const c=e*i;let u;this.neighborsSignificance=new Uint8Array(c),this.coefficentsSign=new Uint8Array(c),u=a>14?new Uint32Array(c):a>6?new Uint16Array(c):new Uint8Array(c),this.coefficentsMagnitude=u,this.processingFlags=new Uint8Array(c);const d=new Uint8Array(c);if(0!==s)for(let t=0;t<c;t++)d[t]=s;this.bitsDecoded=d,this.reset()}setDecoder(e){this.decoder=e}reset(){this.contexts=new Int8Array(19),this.contexts[0]=8,this.contexts[17]=92,this.contexts[18]=6}setNeighborsSignificance(e,t,n){const r=this.neighborsSignificance,i=this.width,o=this.height,s=t>0,a=t+1<i;let l;e>0&&(l=n-i,s&&(r[l-1]+=16),a&&(r[l+1]+=16),r[l]+=4),e+1<o&&(l=n+i,s&&(r[l-1]+=16),a&&(r[l+1]+=16),r[l]+=4),s&&(r[n-1]+=1),a&&(r[n+1]+=1),r[n]|=128}runSignificancePropagationPass(){const e=this.decoder,t=this.width,n=this.height,r=this.coefficentsMagnitude,i=this.coefficentsSign,o=this.neighborsSignificance,s=this.processingFlags,a=this.contexts,l=this.contextLabelTable,c=this.bitsDecoded;for(let u=0;u<n;u+=4)for(let d=0;d<t;d++){let h=u*t+d;for(let p=0;p<4;p++,h+=t){const t=u+p;if(t>=n)break;if(s[h]&=-2,r[h]||!o[h])continue;const f=l[o[h]];if(e.readBit(a,f)){const e=this.decodeSignBit(t,d,h);i[h]=e,r[h]=1,this.setNeighborsSignificance(t,d,h),s[h]|=2}c[h]++,s[h]|=1}}}decodeSignBit(e,t,n){const r=this.width,i=this.height,o=this.coefficentsMagnitude,s=this.coefficentsSign;let a,l,c,u,d,h;u=t>0&&0!==o[n-1],t+1<r&&0!==o[n+1]?(c=s[n+1],u?(l=s[n-1],a=1-c-l):a=1-c-c):u?(l=s[n-1],a=1-l-l):a=0;const p=3*a;return u=e>0&&0!==o[n-r],e+1<i&&0!==o[n+r]?(c=s[n+r],u?(l=s[n-r],a=1-c-l+p):a=1-c-c+p):u?(l=s[n-r],a=1-l-l+p):a=p,a>=0?(d=9+a,h=this.decoder.readBit(this.contexts,d)):(d=9-a,h=1^this.decoder.readBit(this.contexts,d)),h}runMagnitudeRefinementPass(){const e=this.decoder,t=this.width,n=this.height,r=this.coefficentsMagnitude,i=this.neighborsSignificance,o=this.contexts,s=this.bitsDecoded,a=this.processingFlags,l=t*n,c=4*t;for(let u,d=0;d<l;d=u){u=Math.min(l,d+c);for(let n=0;n<t;n++)for(let l=d+n;l<u;l+=t){if(!r[l]||0!==(1&a[l]))continue;let t=16;0!==(2&a[l])&&(a[l]^=2,t=0===(127&i[l])?15:14);const n=e.readBit(o,t);r[l]=r[l]<<1|n,s[l]++,a[l]|=1}}}runCleanupPass(){const t=this.decoder,n=this.width,r=this.height,i=this.neighborsSignificance,o=this.coefficentsMagnitude,s=this.coefficentsSign,a=this.contexts,l=this.contextLabelTable,c=this.bitsDecoded,u=this.processingFlags,d=n,h=2*n,p=3*n;let f;for(let g=0;g<r;g=f){f=Math.min(g+4,r);const m=g*n,y=g+3<r;for(let r=0;r<n;r++){const v=m+r;let _,b=0,x=v,S=g;if(y&&0===u[v]&&0===u[v+d]&&0===u[v+h]&&0===u[v+p]&&0===i[v]&&0===i[v+d]&&0===i[v+h]&&0===i[v+p]){if(!t.readBit(a,18)){c[v]++,c[v+d]++,c[v+h]++,c[v+p]++;continue}b=t.readBit(a,e)<<1|t.readBit(a,e),0!==b&&(S=g+b,x+=b*n),_=this.decodeSignBit(S,r,x),s[x]=_,o[x]=1,this.setNeighborsSignificance(S,r,x),u[x]|=2,x=v;for(let e=g;e<=S;e++,x+=n)c[x]++;b++}for(S=g+b;S<f;S++,x+=n){if(o[x]||0!==(1&u[x]))continue;const e=l[i[x]];1===t.readBit(a,e)&&(_=this.decodeSignBit(S,r,x),s[x]=_,o[x]=1,this.setNeighborsSignificance(S,r,x),u[x]|=2),c[x]++}}}}checkSegmentationSymbol(){const t=this.decoder,n=this.contexts;if(10!==(t.readBit(n,e)<<3|t.readBit(n,e)<<2|t.readBit(n,e)<<1|t.readBit(n,e)))throw new s("Invalid segmentation symbol")}}}();class j{constructor(){this.constructor===j&&(0,r.unreachable)("Cannot initialize Transform.")}calculate(e,t,n){let r=e[0];for(let i=1,o=e.length;i<o;i++)r=this.iterate(r,e[i],t,n);return r}extend(e,t,n){let r=t-1,i=t+1,o=t+n-2,s=t+n;e[r--]=e[i++],e[s++]=e[o--],e[r--]=e[i++],e[s++]=e[o--],e[r--]=e[i++],e[s++]=e[o--],e[r]=e[i],e[s]=e[o]}filter(e,t,n){(0,r.unreachable)("Abstract method `filter` called")}iterate(e,t,n,r){const i=e.width,o=e.height;let s=e.items;const a=t.width,l=t.height,c=t.items;let u,d,h,p,f,g;for(h=0,u=0;u<o;u++)for(p=2*u*a,d=0;d<i;d++,h++,p+=2)c[p]=s[h];s=e.items=null;const m=new Float32Array(a+8);if(1===a){if(0!==(1&n))for(g=0,h=0;g<l;g++,h+=a)c[h]*=.5}else for(g=0,h=0;g<l;g++,h+=a)m.set(c.subarray(h,h+a),4),this.extend(m,4,a),this.filter(m,4,a),c.set(m.subarray(4,4+a),h);let y=16;const v=[];for(u=0;u<y;u++)v.push(new Float32Array(l+8));let _,b=0;if(e=4+l,1===l){if(0!==(1&r))for(f=0;f<a;f++)c[f]*=.5}else for(f=0;f<a;f++){if(0===b){for(y=Math.min(a-f,y),h=f,p=4;p<e;h+=a,p++)for(_=0;_<y;_++)v[_][p]=c[h+_];b=y}b--;const t=v[b];if(this.extend(t,4,l),this.filter(t,4,l),0===b)for(h=f-y+1,p=4;p<e;h+=a,p++)for(_=0;_<y;_++)c[h+_]=v[_][p]}return{width:a,height:l,items:c}}}class I extends j{filter(e,t,n){const r=n>>1;let i,o,s,a;const l=-1.586134342059924,c=-.052980118572961,u=.882911075530934,d=.443506852043971,h=1.230174104914001;for(i=(t|=0)-3,o=r+4;o--;i+=2)e[i]*=.8128930661159609;for(i=t-2,s=d*e[i-1],o=r+3;o--&&(a=d*e[i+1],e[i]=h*e[i]-s-a,o--);i+=2)i+=2,s=d*e[i+1],e[i]=h*e[i]-s-a;for(i=t-1,s=u*e[i-1],o=r+2;o--&&(a=u*e[i+1],e[i]-=s+a,o--);i+=2)i+=2,s=u*e[i+1],e[i]-=s+a;for(i=t,s=c*e[i-1],o=r+1;o--&&(a=c*e[i+1],e[i]-=s+a,o--);i+=2)i+=2,s=c*e[i+1],e[i]-=s+a;if(0!==r)for(i=t+1,s=l*e[i-1],o=r;o--&&(a=l*e[i+1],e[i]-=s+a,o--);i+=2)i+=2,s=l*e[i+1],e[i]-=s+a}}class G extends j{filter(e,t,n){const r=n>>1;let i,o;for(i=t|=0,o=r+1;o--;i+=2)e[i]-=e[i-1]+e[i+1]+2>>2;for(i=t+1,o=r;o--;i+=2)e[i]+=e[i-1]+e[i+1]>>1}}},(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.LZWStream=void 0;var r=n(17);class i extends r.DecodeStream{constructor(e,t,n){super(t),this.str=e,this.dict=e.dict,this.cachedData=0,this.bitsCached=0;const r=4096,i={earlyChange:n,codeLength:9,nextCode:258,dictionaryValues:new Uint8Array(r),dictionaryLengths:new Uint16Array(r),dictionaryPrevCodes:new Uint16Array(r),currentSequence:new Uint8Array(r),currentSequenceLength:0};for(let o=0;o<256;++o)i.dictionaryValues[o]=o,i.dictionaryLengths[o]=1;this.lzwState=i}readBits(e){let t=this.bitsCached,n=this.cachedData;for(;t<e;){const e=this.str.getByte();if(-1===e)return this.eof=!0,null;n=n<<8|e,t+=8}return this.bitsCached=t-=e,this.cachedData=n,this.lastCode=null,n>>>t&(1<<e)-1}readBlock(){let e,t,n,r=1024;const i=this.lzwState;if(!i)return;const o=i.earlyChange;let s=i.nextCode;const a=i.dictionaryValues,l=i.dictionaryLengths,c=i.dictionaryPrevCodes;let u=i.codeLength,d=i.prevCode;const h=i.currentSequence;let p=i.currentSequenceLength,f=0,g=this.bufferLength,m=this.ensureBuffer(this.bufferLength+r);for(e=0;e<512;e++){const e=this.readBits(u),i=p>0;if(e<256)h[0]=e,p=1;else{if(!(e>=258)){if(256===e){u=9,s=258,p=0;continue}this.eof=!0,delete this.lzwState;break}if(e<s)for(p=l[e],t=p-1,n=e;t>=0;t--)h[t]=a[n],n=c[n];else h[p++]=h[0]}if(i&&(c[s]=d,l[s]=l[d]+1,a[s]=h[0],s++,u=s+o&s+o-1?u:0|Math.min(Math.log(s+o)/.6931471805599453+1,12)),d=e,f+=p,r<f){do{r+=512}while(r<f);m=this.ensureBuffer(this.bufferLength+r)}for(t=0;t<p;t++)m[g++]=h[t]}i.nextCode=s,i.codeLength=u,i.prevCode=d,i.currentSequenceLength=p,this.bufferLength=g}}t.LZWStream=i},(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.PredictorStream=void 0;var r=n(17),i=n(3),o=n(2);class s extends r.DecodeStream{constructor(e,t,n){if(super(t),!(n instanceof i.Dict))return e;const r=this.predictor=n.get("Predictor")||1;if(r<=1)return e;if(2!==r&&(r<10||r>15))throw new o.FormatError("Unsupported predictor: ".concat(r));this.readBlock=2===r?this.readBlockTiff:this.readBlockPng,this.str=e,this.dict=e.dict;const s=this.colors=n.get("Colors")||1,a=this.bits=n.get("BPC","BitsPerComponent")||8,l=this.columns=n.get("Columns")||1;return this.pixBytes=s*a+7>>3,this.rowBytes=l*s*a+7>>3,this}readBlockTiff(){const e=this.rowBytes,t=this.bufferLength,n=this.ensureBuffer(t+e),r=this.bits,i=this.colors,o=this.str.getBytes(e);if(this.eof=!o.length,this.eof)return;let s,a=0,l=0,c=0,u=0,d=t;if(1===r&&1===i)for(s=0;s<e;++s){let e=o[s]^a;e^=e>>1,e^=e>>2,e^=e>>4,a=(1&e)<<7,n[d++]=e}else if(8===r){for(s=0;s<i;++s)n[d++]=o[s];for(;s<e;++s)n[d]=n[d-i]+o[s],d++}else if(16===r){const t=2*i;for(s=0;s<t;++s)n[d++]=o[s];for(;s<e;s+=2){const e=((255&o[s])<<8)+(255&o[s+1])+((255&n[d-t])<<8)+(255&n[d-t+1]);n[d++]=e>>8&255,n[d++]=255&e}}else{const e=new Uint8Array(i+1),d=(1<<r)-1;let h=0,p=t;const f=this.columns;for(s=0;s<f;++s)for(let t=0;t<i;++t)c<r&&(a=a<<8|255&o[h++],c+=8),e[t]=e[t]+(a>>c-r)&d,c-=r,l=l<<r|e[t],u+=r,u>=8&&(n[p++]=l>>u-8&255,u-=8);u>0&&(n[p++]=(l<<8-u)+(a&(1<<8-u)-1))}this.bufferLength+=e}readBlockPng(){const e=this.rowBytes,t=this.pixBytes,n=this.str.getByte(),r=this.str.getBytes(e);if(this.eof=!r.length,this.eof)return;const i=this.bufferLength,s=this.ensureBuffer(i+e);let a=s.subarray(i-e,i);0===a.length&&(a=new Uint8Array(e));let l,c,u,d=i;switch(n){case 0:for(l=0;l<e;++l)s[d++]=r[l];break;case 1:for(l=0;l<t;++l)s[d++]=r[l];for(;l<e;++l)s[d]=s[d-t]+r[l]&255,d++;break;case 2:for(l=0;l<e;++l)s[d++]=a[l]+r[l]&255;break;case 3:for(l=0;l<t;++l)s[d++]=(a[l]>>1)+r[l];for(;l<e;++l)s[d]=(a[l]+s[d-t]>>1)+r[l]&255,d++;break;case 4:for(l=0;l<t;++l)c=a[l],u=r[l],s[d++]=c+u;for(;l<e;++l){c=a[l];const e=a[l-t],n=s[d-t],i=n+c-e;let o=i-n;o<0&&(o=-o);let h=i-c;h<0&&(h=-h);let p=i-e;p<0&&(p=-p),u=r[l],s[d++]=o<=h&&o<=p?n+u:h<=p?c+u:e+u}break;default:throw new o.FormatError("Unsupported predictor: ".concat(n))}this.bufferLength+=e}}t.PredictorStream=s},(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.RunLengthStream=void 0;var r=n(17);class i extends r.DecodeStream{constructor(e,t){super(t),this.str=e,this.dict=e.dict}readBlock(){const e=this.str.getBytes(2);if(!e||e.length<2||128===e[0])return void(this.eof=!0);let t,n=this.bufferLength,r=e[0];if(r<128){if(t=this.ensureBuffer(n+r+1),t[n++]=e[1],r>0){const e=this.str.getBytes(r);t.set(e,n),n+=r}}else{r=257-r;const i=e[1];t=this.ensureBuffer(n+r+1);for(let e=0;e<r;e++)t[n++]=i}this.bufferLength=n}}t.RunLengthStream=i},(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.Font=t.ErrorFont=void 0;var r=n(2),i=n(33),o=n(36),s=n(38),a=n(37),l=n(35),c=n(39),u=n(40),d=n(41),h=n(42),p=n(43),f=n(44),g=n(14),m=n(45),y=n(4),v=n(8),_=n(46);const b=[[57344,63743],[1048576,1114109]],x=1e3,S=["ascent","bbox","black","bold","charProcOperatorList","composite","cssFontInfo","data","defaultVMetrics","defaultWidth","descent","fallbackName","fontMatrix","isInvalidPDFjsFont","isType3Font","italic","loadedName","mimetype","missingFile","name","remeasure","subtype","type","vertical"],w=["cMap","defaultEncoding","differences","isMonospace","isSerifFont","isSymbolicFont","seacMap","toFontChar","toUnicode","vmetrics","widths"];function E(e){if(!e.fontMatrix)return;if(e.fontMatrix[0]===r.FONT_IDENTITY_MATRIX[0])return;const t=.001/e.fontMatrix[0],n=e.widths;for(const r in n)n[r]*=t;e.defaultWidth*=t}function P(e){if(!e.fallbackToUnicode)return;if(e.toUnicode instanceof u.IdentityToUnicodeMap)return;const t=[];for(const n in e.fallbackToUnicode)e.toUnicode.has(n)||(t[n]=e.fallbackToUnicode[n]);t.length>0&&e.toUnicode.amend(t)}class C{constructor(e,t,n,r,i,o,s,a,l){this.originalCharCode=e,this.fontChar=t,this.unicode=n,this.accent=r,this.width=i,this.vmetric=o,this.operatorListId=s,this.isSpace=a,this.isInFont=l}get category(){return(0,r.shadow)(this,"category",(0,s.getCharUnicodeCategory)(this.unicode),!0)}get normalizedUnicode(){return(0,r.shadow)(this,"normalizedUnicode",(0,s.reverseIfRtl)(C._NormalizedUnicodes[this.unicode]||this.unicode),!0)}static get _NormalizedUnicodes(){return(0,r.shadow)(this,"_NormalizedUnicodes",(0,s.getNormalizedUnicodes)())}}function A(e,t){return(e<<8)+t}function k(e,t,n){e[t+1]=n,e[t]=n>>>8}function j(e,t){const n=(e<<8)+t;return 32768&n?n-65536:n}function I(e){return String.fromCharCode(e>>8&255,255&e)}function G(e){return e>32767?e=32767:e<-32768&&(e=-32768),String.fromCharCode(e>>8&255,255&e)}function T(e){const t=e.peekBytes(4);return"ttcf"===(0,r.bytesToString)(t)}function M(e,t){let n,i,{type:o,subtype:s,composite:a}=t;return function(e){const t=e.peekBytes(4);return 65536===(0,y.readUint32)(t,0)||"true"===(0,r.bytesToString)(t)}(e)||T(e)?n=a?"CIDFontType2":"TrueType":function(e){const t=e.peekBytes(4);return"OTTO"===(0,r.bytesToString)(t)}(e)?n=a?"CIDFontType2":"OpenType":function(e){const t=e.peekBytes(2);return 37===t[0]&&33===t[1]||128===t[0]&&1===t[1]}(e)?n=a?"CIDFontType0":"MMType1"===o?"MMType1":"Type1":function(e){const t=e.peekBytes(4);return t[0]>=1&&t[3]>=1&&t[3]<=4}(e)?a?(n="CIDFontType0",i="CIDFontType0C"):(n="MMType1"===o?"MMType1":"Type1",i="Type1C"):((0,r.warn)("getFontFileType: Unable to detect correct font file Type/Subtype."),n=o,i=s),[n,i]}function O(e,t){for(const n in t)e[+n]=t[n]}function R(e,t,n){const r=[];let i;for(let o=0,a=e.length;o<a;o++)i=(0,s.getUnicodeForGlyph)(e[o],t),-1!==i&&(r[o]=i);for(const o in n)i=(0,s.getUnicodeForGlyph)(n[o],t),-1!==i&&(r[+o]=i);return r}function D(e){return 1===e.platform&&0===e.encoding&&0===e.language}function N(e){return 3===e.platform&&1===e.encoding&&1033===e.language}function L(e,t){let n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];switch(t.length){case 1:return t.charCodeAt(0);case 2:return t.charCodeAt(0)<<8|t.charCodeAt(1)}const i="Unsupported CID string (charCode ".concat(e,'): "').concat(t,'".');if(n)throw new r.FormatError(i);return(0,r.warn)(i),t}function V(e,t,n,i){const o=Object.create(null),s=new Map,a=[],l=new Set;let c=0;const u=b[c][0];let d=u,h=b[c][1];for(let p in e){p|=0;let f=e[p];if(!t(f))continue;if(d>h){if(c++,c>=b.length){(0,r.warn)("Ran out of space in font private use area.");break}d=b[c][0],h=b[c][1]}const g=d++;0===f&&(f=n);let m=i.get(p);"string"===typeof m&&(m=m.codePointAt(0)),m&&m<u&&!l.has(f)&&(s.set(m,f),l.add(f)),o[g]=f,a[p]=g}return{toFontChar:a,charCodeToGlyphId:o,toUnicodeExtraMap:s,nextAvailableFontCharCode:d}}function F(e,t,n){const i=function(e,t,n){const r=[];for(const s in e)e[s]>=n||r.push({fontCharCode:0|s,glyphId:e[s]});if(t)for(const[s,a]of t)a>=n||r.push({fontCharCode:s,glyphId:a});0===r.length&&r.push({fontCharCode:0,glyphId:0}),r.sort((function(e,t){return e.fontCharCode-t.fontCharCode}));const i=[],o=r.length;for(let s=0;s<o;){const e=r[s].fontCharCode,t=[r[s].glyphId];++s;let n=e;for(;s<o&&n+1===r[s].fontCharCode&&(t.push(r[s].glyphId),++n,++s,65535!==n););i.push([e,n,t])}return i}(e,t,n),o=i.at(-1)[1]>65535?2:1;let s,a,l,c,u="\0\0"+I(o)+"\0\x03\0\x01"+(0,r.string32)(4+8*o);for(s=i.length-1;s>=0&&!(i[s][0]<=65535);--s);const d=s+1;i[s][0]<65535&&65535===i[s][1]&&(i[s][1]=65534);const h=i[s][1]<65535?1:0,p=d+h,f=m.OpenTypeFileBuilder.getSearchParams(p,2);let g,y,v,_,b="",x="",S="",w="",E="",P=0;for(s=0,a=d;s<a;s++){g=i[s],y=g[0],v=g[1],b+=I(y),x+=I(v),_=g[2];let e=!0;for(l=1,c=_.length;l<c;++l)if(_[l]!==_[l-1]+1){e=!1;break}if(e)S+=I(_[0]-y&65535),w+=I(0);else{const e=2*(p-s)+2*P;for(P+=v-y+1,S+=I(0),w+=I(e),l=0,c=_.length;l<c;++l)E+=I(_[l])}}h>0&&(x+="\xff\xff",b+="\xff\xff",S+="\0\x01",w+="\0\0");const C="\0\0"+I(2*p)+I(f.range)+I(f.entry)+I(f.rangeShift)+x+"\0\0"+b+S+w+E;let A="",k="";if(o>1){for(u+="\0\x03\0\n"+(0,r.string32)(4+8*o+4+C.length),A="",s=0,a=i.length;s<a;s++){g=i[s],y=g[0],_=g[2];let e=_[0];for(l=1,c=_.length;l<c;++l)_[l]!==_[l-1]+1&&(v=g[0]+l-1,A+=(0,r.string32)(y)+(0,r.string32)(v)+(0,r.string32)(e),y=v+1,e=_[l]);A+=(0,r.string32)(y)+(0,r.string32)(g[1])+(0,r.string32)(e)}k="\0\f\0\0"+(0,r.string32)(A.length+16)+"\0\0\0\0"+(0,r.string32)(A.length/12)}return u+"\0\x04"+I(C.length+4)+C+k+A}function z(e,t,n){n=n||{unitsPerEm:0,yMax:0,yMin:0,ascent:0,descent:0};let i=0,o=0,a=0,l=0,c=null,u=0;if(t){for(let e in t){e|=0,(c>e||!c)&&(c=e),u<e&&(u=e);const t=(0,s.getUnicodeRangeFor)(e);if(t<32)i|=1<<t;else if(t<64)o|=1<<t-32;else if(t<96)a|=1<<t-64;else{if(!(t<123))throw new r.FormatError("Unicode ranges Bits > 123 are reserved for internal usage");l|=1<<t-96}}u>65535&&(u=65535)}else c=0,u=255;const d=e.bbox||[0,0,0,0],h=n.unitsPerEm||1/(e.fontMatrix||r.FONT_IDENTITY_MATRIX)[0],p=e.ascentScaled?1:h/x,f=n.ascent||Math.round(p*(e.ascent||d[3]));let g=n.descent||Math.round(p*(e.descent||d[1]));g>0&&e.descent>0&&d[1]<0&&(g=-g);const m=n.yMax||f,y=-n.yMin||-g;return"\0\x03\x02$\x01\xf4\0\x05\0\0\x02\x8a\x02\xbb\0\0\0\x8c\x02\x8a\x02\xbb\0\0\x01\xdf\x001\x01\x02\0\0\0\0\x06"+String.fromCharCode(e.fixedPitch?9:0)+"\0\0\0\0\0\0"+(0,r.string32)(i)+(0,r.string32)(o)+(0,r.string32)(a)+(0,r.string32)(l)+"*21*"+I(e.italicAngle?1:0)+I(c||e.firstChar)+I(u||e.lastChar)+I(f)+I(g)+"\0d"+I(m)+I(y)+"\0\0\0\0\0\0\0\0"+I(e.xHeight)+I(e.capHeight)+I(0)+I(c||e.firstChar)+"\0\x03"}function B(e){const t=Math.floor(65536*e.italicAngle);return"\0\x03\0\0"+(0,r.string32)(t)+"\0\0\0\0"+(0,r.string32)(e.fixedPitch?1:0)+"\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0"}function U(e){return e.replace(/[^\x21-\x7E]|[[\](){}<>/%]/g,"").slice(0,63)}function W(e,t){t||(t=[[],[]]);const n=[t[0][0]||"Original licence",t[0][1]||e,t[0][2]||"Unknown",t[0][3]||"uniqueID",t[0][4]||e,t[0][5]||"Version 0.11",t[0][6]||U(e),t[0][7]||"Unknown",t[0][8]||"Unknown",t[0][9]||"Unknown"],r=[];let i,o,s,a,l;for(i=0,o=n.length;i<o;i++){l=t[1][i]||n[i];const e=[];for(s=0,a=l.length;s<a;s++)e.push(I(l.charCodeAt(s)));r.push(e.join(""))}const c=[n,r],u=["\0\x01","\0\x03"],d=["\0\0","\0\x01"],h=["\0\0","\x04\t"],p=n.length*u.length;let f="\0\0"+I(p)+I(12*p+6),g=0;for(i=0,o=u.length;i<o;i++){const e=c[i];for(s=0,a=e.length;s<a;s++)l=e[s],f+=u[i]+d[i]+h[i]+I(s)+I(l.length)+I(g),g+=l.length}return f+=n.join("")+r.join(""),f}t.Font=class{constructor(e,t,n){this.name=e,this.psName=null,this.mimetype=null,this.disableFontFace=!1,this.loadedName=n.loadedName,this.isType3Font=n.isType3Font,this.missingFile=!1,this.cssFontInfo=n.cssFontInfo,this._charsCache=Object.create(null),this._glyphCache=Object.create(null);let i=!!(n.flags&o.FontFlags.Serif);if(!i&&!n.isSimulatedFlags){const t=e.replace(/[,_]/g,"-").split("-")[0],n=(0,c.getSerifFonts)();for(const e of t.split("+"))if(n[e]){i=!0;break}}this.isSerifFont=i,this.isSymbolicFont=!!(n.flags&o.FontFlags.Symbolic),this.isMonospace=!!(n.flags&o.FontFlags.FixedPitch);let{type:s,subtype:a}=n;this.type=s,this.subtype=a;const l=e.match(/^InvalidPDFjsFont_(.*)_\d+$/);if(this.isInvalidPDFjsFont=!!l,this.isInvalidPDFjsFont?this.fallbackName=l[1]:this.isMonospace?this.fallbackName="monospace":this.isSerifFont?this.fallbackName="serif":this.fallbackName="sans-serif",this.differences=n.differences,this.widths=n.widths,this.defaultWidth=n.defaultWidth,this.composite=n.composite,this.cMap=n.cMap,this.capHeight=n.capHeight/x,this.ascent=n.ascent/x,this.descent=n.descent/x,this.lineHeight=this.ascent-this.descent,this.fontMatrix=n.fontMatrix,this.bbox=n.bbox,this.defaultEncoding=n.defaultEncoding,this.toUnicode=n.toUnicode,this.toFontChar=[],"Type3"===n.type){for(let e=0;e<256;e++)this.toFontChar[e]=this.differences[e]||n.defaultEncoding[e];return}if(this.cidEncoding=n.cidEncoding||"",this.vertical=!!n.vertical,this.vertical&&(this.vmetrics=n.vmetrics,this.defaultVMetrics=n.defaultVMetrics),!t||t.isEmpty)return t&&(0,r.warn)('Font file is empty in "'+e+'" ('+this.loadedName+")"),void this.fallbackToSystemFont(n);let u;[s,a]=M(t,n),s===this.type&&a===this.subtype||(0,r.info)("Inconsistent font file Type/SubType, expected: "+"".concat(this.type,"/").concat(this.subtype," but found: ").concat(s,"/").concat(a,"."));try{switch(s){case"MMType1":(0,r.info)("MMType1 font ("+e+"), falling back to Type1.");case"Type1":case"CIDFontType0":this.mimetype="font/opentype";const i="Type1C"===a||"CIDFontType0C"===a?new d.CFFFont(t,n):new _.Type1Font(e,t,n);E(n),u=this.convert(e,i,n);break;case"OpenType":case"TrueType":case"CIDFontType2":this.mimetype="font/opentype",u=this.checkAndRepair(e,t,n),this.isOpenType&&(E(n),s="OpenType");break;default:throw new r.FormatError("Font ".concat(s," is not supported"))}}catch(h){return(0,r.warn)(h),void this.fallbackToSystemFont(n)}P(n),this.data=u,this.type=s,this.subtype=a,this.fontMatrix=n.fontMatrix,this.widths=n.widths,this.defaultWidth=n.defaultWidth,this.toUnicode=n.toUnicode,this.seacMap=n.seacMap}get renderer(){const e=h.FontRendererFactory.create(this,o.SEAC_ANALYSIS_ENABLED);return(0,r.shadow)(this,"renderer",e)}exportData(){const e=arguments.length>0&&void 0!==arguments[0]&&arguments[0]?[...S,...w]:S,t=Object.create(null);let n,r;for(n of e)r=this[n],void 0!==r&&(t[n]=r);return t}fallbackToSystemFont(e){this.missingFile=!0;const{name:t,type:n}=this;let i=(0,o.normalizeFontName)(t);const d=(0,c.getStdFontMap)(),h=(0,c.getNonStdFontMap)(),f=!!d[i],g=!(!h[i]||!d[h[i]]);i=d[i]||h[i]||i;const m=(0,p.getFontBasicMetrics)()[i];m&&(isNaN(this.ascent)&&(this.ascent=m.ascent/x),isNaN(this.descent)&&(this.descent=m.descent/x),isNaN(this.capHeight)&&(this.capHeight=m.capHeight/x)),this.bold=/bold/gi.test(i),this.italic=/oblique|italic/gi.test(i),this.black=/Black/g.test(t);const y=/Narrow/g.test(t);if(this.remeasure=(!f||y)&&Object.keys(this.widths).length>0,(f||g)&&"CIDFontType2"===n&&this.cidEncoding.startsWith("Identity-")){const n=e.cidToGidMap,r=[];if(O(r,(0,c.getGlyphMapForStandardFonts)()),/Arial-?Black/i.test(t)?O(r,(0,c.getSupplementalGlyphMapForArialBlack)()):/Calibri/i.test(t)&&O(r,(0,c.getSupplementalGlyphMapForCalibri)()),n){for(const e in r){const t=r[e];void 0!==n[t]&&(r[+e]=n[t])}n.length!==this.toUnicode.length&&e.hasIncludedToUnicodeMap&&this.toUnicode instanceof u.IdentityToUnicodeMap&&this.toUnicode.forEach((function(e,t){const i=r[e];void 0===n[i]&&(r[+e]=t)}))}this.toUnicode instanceof u.IdentityToUnicodeMap||this.toUnicode.forEach((function(e,t){r[+e]=t})),this.toFontChar=r,this.toUnicode=new u.ToUnicodeMap(r)}else if(/Symbol/i.test(i))this.toFontChar=R(l.SymbolSetEncoding,(0,a.getGlyphsUnicode)(),this.differences);else if(/Dingbats/i.test(i))/Wingdings/i.test(t)&&(0,r.warn)("Non-embedded Wingdings font, falling back to ZapfDingbats."),this.toFontChar=R(l.ZapfDingbatsEncoding,(0,a.getDingbatsGlyphsUnicode)(),this.differences);else if(f){const e=R(this.defaultEncoding,(0,a.getGlyphsUnicode)(),this.differences);"CIDFontType2"!==n||this.cidEncoding.startsWith("Identity-")||this.toUnicode instanceof u.IdentityToUnicodeMap||this.toUnicode.forEach((function(t,n){e[+t]=n})),this.toFontChar=e}else{const e=(0,a.getGlyphsUnicode)(),n=[];this.toUnicode.forEach(((t,r)=>{if(!this.composite){const n=this.differences[t]||this.defaultEncoding[t],i=(0,s.getUnicodeForGlyph)(n,e);-1!==i&&(r=i)}n[+t]=r})),this.composite&&this.toUnicode instanceof u.IdentityToUnicodeMap&&/Tahoma|Verdana/i.test(t)&&O(n,(0,c.getGlyphMapForStandardFonts)()),this.toFontChar=n}P(e),this.loadedName=i.split("-")[0]}checkAndRepair(e,t,n){const s=["OS/2","cmap","head","hhea","hmtx","maxp","name","post","loca","glyf","fpgm","prep","cvt ","CFF "];function c(e,t){const n=Object.create(null);n["OS/2"]=null,n.cmap=null,n.head=null,n.hhea=null,n.hmtx=null,n.maxp=null,n.name=null,n.post=null;for(let r=0;r<t;r++){const t=h(e);s.includes(t.tag)&&0!==t.length&&(n[t.tag]=t)}return n}function h(e){const t=e.getString(4),n=e.getInt32()>>>0,r=e.getInt32()>>>0,i=e.getInt32()>>>0,o=e.pos;e.pos=e.start||0,e.skip(r);const s=e.getBytes(i);return e.pos=o,"head"===t&&(s[8]=s[9]=s[10]=s[11]=0,s[17]|=32),{tag:t,checksum:n,length:i,offset:r,data:s}}function p(e){return{version:e.getString(4),numTables:e.getUint16(),searchRange:e.getUint16(),entrySelector:e.getUint16(),rangeShift:e.getUint16()}}function y(e,t,n,r,i,o){const s={length:0,sizeOfInstructions:0};if(n-t<=12)return s;const a=e.subarray(t,n);let l=j(a[0],a[1]);if(l<0)return l=-1,k(a,0,l),r.set(a,i),s.length=a.length,s;let c,u=10,d=0;for(c=0;c<l;c++)d=1+(a[u]<<8|a[u+1]),u+=2;const h=u,p=a[u]<<8|a[u+1];s.sizeOfInstructions=p,u+=2+p;const f=u;let g=0;for(c=0;c<d;c++){const e=a[u++];192&e&&(a[u-1]=63&e);let t=2;2&e?t=1:16&e&&(t=0);let n=2;4&e?n=1:32&e&&(n=0);const r=t+n;if(g+=r,8&e){const e=a[u++];c+=e,g+=e*r}}if(0===g)return s;let m=u+g;return m>a.length?s:!o&&p>0?(r.set(a.subarray(0,h),i),r.set([0,0],i+h),r.set(a.subarray(f,m),i+h+2),m-=p,a.length-m>3&&(m=m+3&-4),s.length=m,s):a.length-m>3?(m=m+3&-4,r.set(a.subarray(0,m),i),s.length=m,s):(r.set(a,i),s.length=a.length,s)}function _(e){const n=(t.start||0)+e.offset;t.pos=n;const r=[[],[]],i=[],o=e.length,s=n+o;if(0!==t.getUint16()||o<6)return[r,i];const a=t.getUint16(),l=t.getUint16();let c,u;for(c=0;c<a&&t.pos+12<=s;c++){const e={platform:t.getUint16(),encoding:t.getUint16(),language:t.getUint16(),name:t.getUint16(),length:t.getUint16(),offset:t.getUint16()};(D(e)||N(e))&&i.push(e)}for(c=0,u=i.length;c<u;c++){const e=i[c];if(e.length<=0)continue;const o=n+l+e.offset;if(o+e.length>s)continue;t.pos=o;const a=e.name;if(e.encoding){let n="";for(let r=0,i=e.length;r<i;r+=2)n+=String.fromCharCode(t.getUint16());r[1][a]=n}else r[0][a]=t.getString(e.length)}return[r,i]}const b=[0,0,0,0,0,0,0,0,-2,-2,-2,-2,0,0,-2,-5,-1,-1,-1,-1,-1,-1,-1,-1,0,0,-1,0,-1,-1,-1,-1,1,-1,-999,0,1,0,-1,-2,0,-1,-2,-1,-1,0,-1,-1,0,0,-999,-999,-1,-1,-1,-1,-2,-999,-2,-2,-999,0,-2,-2,0,0,-2,0,-2,0,0,0,-2,-1,-1,1,1,0,0,-1,-1,-1,-1,-1,-1,-1,0,0,-1,0,-1,-1,0,-999,-1,-1,-1,-1,-1,-1,0,0,0,0,0,0,0,0,0,0,0,0,-2,-999,-999,-999,-999,-999,-1,-1,-2,-2,0,0,0,0,-1,-1,-999,-2,-2,0,0,-1,-2,-2,0,0,0,-1,-1,-1,-2];function x(e,t){let n,i,o,s,a,l=e.data,c=0,u=0,d=0;const h=[],p=[],f=[];let g=t.tooComplexToFollowFunctions,m=!1,y=0,v=0;for(let x=l.length;c<x;){const e=l[c++];if(64===e)if(i=l[c++],m||v)c+=i;else for(n=0;n<i;n++)h.push(l[c++]);else if(65===e)if(i=l[c++],m||v)c+=2*i;else for(n=0;n<i;n++)o=l[c++],h.push(o<<8|l[c++]);else if(176===(248&e))if(i=e-176+1,m||v)c+=i;else for(n=0;n<i;n++)h.push(l[c++]);else if(184===(248&e))if(i=e-184+1,m||v)c+=2*i;else for(n=0;n<i;n++)o=l[c++],h.push(o<<8|l[c++]);else if(43!==e||g)if(44!==e||g){if(45===e)if(m)m=!1,u=c;else{if(a=p.pop(),!a)return(0,r.warn)("TT: ENDF bad stack"),void(t.hintsValid=!1);s=f.pop(),l=a.data,c=a.i,t.functionsStackDeltas[s]=h.length-a.stackTop}else if(137===e)(m||v)&&((0,r.warn)("TT: nested IDEFs not allowed"),g=!0),m=!0,d=c;else if(88===e)++y;else if(27===e)v=y;else if(89===e)v===y&&(v=0),--y;else if(28===e&&!m&&!v){const e=h.at(-1);e>0&&(c+=e-1)}}else(m||v)&&((0,r.warn)("TT: nested FDEFs not allowed"),g=!0),m=!0,d=c,s=h.pop(),t.functionsDefined[s]={data:l,i:c};else if(!m&&!v)if(s=h.at(-1),isNaN(s))(0,r.info)("TT: CALL empty stack (or invalid entry).");else if(t.functionsUsed[s]=!0,s in t.functionsStackDeltas){const e=h.length+t.functionsStackDeltas[s];if(e<0)return(0,r.warn)("TT: CALL invalid functions stack delta."),void(t.hintsValid=!1);h.length=e}else if(s in t.functionsDefined&&!f.includes(s)){if(p.push({data:l,i:c,stackTop:h.length-1}),f.push(s),a=t.functionsDefined[s],!a)return(0,r.warn)("TT: CALL non-existent function"),void(t.hintsValid=!1);l=a.data,c=a.i}if(!m&&!v){let t=0;for(e<=142?t=b[e]:e>=192&&e<=223?t=-1:e>=224&&(t=-2),e>=113&&e<=117&&(i=h.pop(),isNaN(i)||(t=2*-i));t<0&&h.length>0;)h.pop(),t++;for(;t>0;)h.push(NaN),t--}}t.tooComplexToFollowFunctions=g;const _=[l];c>l.length&&_.push(new Uint8Array(c-l.length)),d>u&&((0,r.warn)("TT: complementing a missing function tail"),_.push(new Uint8Array([34,45]))),function(e,t){if(t.length>1){let n,r,i=0;for(n=0,r=t.length;n<r;n++)i+=t[n].length;i=i+3&-4;const o=new Uint8Array(i);let s=0;for(n=0,r=t.length;n<r;n++)o.set(t[n],s),s+=t[n].length;e.data=o,e.length=i}}(e,_)}let S,w,P,C;if(T(t=new v.Stream(new Uint8Array(t.getBytes())))){const e=function(e,t){const{numFonts:n,offsetTable:i}=function(e){const t=e.getString(4);(0,r.assert)("ttcf"===t,"Must be a TrueType Collection font.");const n=e.getUint16(),i=e.getUint16(),o=e.getInt32()>>>0,s=[];for(let r=0;r<o;r++)s.push(e.getInt32()>>>0);const a={ttcTag:t,majorVersion:n,minorVersion:i,numFonts:o,offsetTable:s};switch(n){case 1:return a;case 2:return a.dsigTag=e.getInt32()>>>0,a.dsigLength=e.getInt32()>>>0,a.dsigOffset=e.getInt32()>>>0,a}throw new r.FormatError("Invalid TrueType Collection majorVersion: ".concat(n,"."))}(e),o=t.split("+");let s;for(let a=0;a<n;a++){e.pos=(e.start||0)+i[a];const n=p(e),l=c(e,n.numTables);if(!l.name)throw new r.FormatError('TrueType Collection font must contain a "name" table.');const[u]=_(l.name);for(let e=0,r=u.length;e<r;e++)for(let i=0,a=u[e].length;i<a;i++){const r=u[e][i]&&u[e][i].replace(/\s/g,"");if(r){if(r===t)return{header:n,tables:l};if(!(o.length<2))for(const e of o)r===e&&(s={name:e,header:n,tables:l})}}}if(s)return(0,r.warn)('TrueType Collection does not contain "'.concat(t,'" font, ')+'falling back to "'.concat(s.name,'" font instead.')),{header:s.header,tables:s.tables};throw new r.FormatError('TrueType Collection does not contain "'.concat(t,'" font.'))}(t,this.name);S=e.header,w=e.tables}else S=p(t),w=c(t,S.numTables);const I=!w["CFF "];if(I){if(!w.loca)throw new r.FormatError('Required "loca" table is not found');w.glyf||((0,r.warn)('Required "glyf" table is not found -- trying to recover.'),w.glyf={tag:"glyf",data:new Uint8Array(0)}),this.isOpenType=!1}else{const t=n.composite&&((n.cidToGidMap||[]).length>0||!(n.cMap instanceof g.IdentityCMap));if("OTTO"===S.version&&!t||!w.head||!w.hhea||!w.maxp||!w.post)return C=new v.Stream(w["CFF "].data),P=new d.CFFFont(C,n),E(n),this.convert(e,P,n);delete w.glyf,delete w.loca,delete w.fpgm,delete w.prep,delete w["cvt "],this.isOpenType=!0}if(!w.maxp)throw new r.FormatError('Required "maxp" table is not found');t.pos=(t.start||0)+w.maxp.offset;const G=t.getInt32(),M=t.getUint16();if(n.scaleFactors&&n.scaleFactors.length===M&&I){const{scaleFactors:e}=n,t=A(w.head.data[50],w.head.data[51]),r=new f.GlyfTable({glyfTable:w.glyf.data,isGlyphLocationsLong:t,locaTable:w.loca.data,numGlyphs:M});r.scale(e);const{glyf:i,loca:o,isLocationLong:s}=r.write();w.glyf.data=i,w.loca.data=o,s!==!!t&&(w.head.data[50]=0,w.head.data[51]=s?1:0);const a=w.hmtx.data;for(let n=0;n<M;n++){const t=4*n,r=Math.round(e[n]*A(a[t],a[t+1]));a[t]=r>>8&255,a[t+1]=255&r,k(a,t+2,Math.round(e[n]*j(a[t+2],a[t+3])))}}let O=M+1,R=!0;O>65535&&(R=!1,O=M,(0,r.warn)("Not enough space in glyfs to duplicate first glyph."));let U=0,H=0;G>=65536&&w.maxp.length>=22&&(t.pos+=8,t.getUint16()>2&&(w.maxp.data[14]=0,w.maxp.data[15]=2),t.pos+=4,U=t.getUint16(),t.pos+=4,H=t.getUint16()),w.maxp.data[4]=O>>8,w.maxp.data[5]=255&O;const q=function(e,t,n,i){const o={functionsDefined:[],functionsUsed:[],functionsStackDeltas:[],tooComplexToFollowFunctions:!1,hintsValid:!0};if(e&&x(e,o),t&&x(t,o),e&&function(e,t){if(!e.tooComplexToFollowFunctions){if(e.functionsDefined.length>t)return(0,r.warn)("TT: more functions defined than expected"),void(e.hintsValid=!1);for(let n=0,i=e.functionsUsed.length;n<i;n++){if(n>t)return(0,r.warn)("TT: invalid function id: "+n),void(e.hintsValid=!1);if(e.functionsUsed[n]&&!e.functionsDefined[n])return(0,r.warn)("TT: undefined function: "+n),void(e.hintsValid=!1)}}}(o,i),n&&1&n.length){const e=new Uint8Array(n.length+1);e.set(n.data),n.data=e}return o.hintsValid}(w.fpgm,w.prep,w["cvt "],U);if(q||(delete w.fpgm,delete w.prep,delete w["cvt "]),function(e,t,n,i,o,s){if(!t)return void(n&&(n.data=null));e.pos=(e.start||0)+t.offset,e.pos+=4,e.pos+=2,e.pos+=2,e.pos+=2,e.pos+=2,e.pos+=2,e.pos+=2,e.pos+=2,e.pos+=2,e.pos+=2;const a=e.getUint16();e.pos+=8,e.pos+=2;let l=e.getUint16();0!==a&&(2&A(i.data[44],i.data[45])||(t.data[22]=0,t.data[23]=0)),l>o&&((0,r.info)("The numOfMetrics (".concat(l,") should not be ")+"greater than the numGlyphs (".concat(o,").")),l=o,t.data[34]=(65280&l)>>8,t.data[35]=255&l);const c=o-l-(n.length-4*l>>1);if(c>0){const e=new Uint8Array(n.length+2*c);e.set(n.data),s&&(e[n.length]=n.data[2],e[n.length+1]=n.data[3]),n.data=e}}(t,w.hhea,w.hmtx,w.head,O,R),!w.head)throw new r.FormatError('Required "head" table is not found');!function(e,t,n){const i=e.data,o=(s=i[0],a=i[1],l=i[2],c=i[3],(s<<24)+(a<<16)+(l<<8)+c);var s,a,l,c;o>>16!==1&&((0,r.info)("Attempting to fix invalid version in head table: "+o),i[0]=0,i[1]=1,i[2]=0,i[3]=0);const u=A(i[50],i[51]);if(u<0||u>1){(0,r.info)("Attempting to fix invalid indexToLocFormat in head table: "+u);const e=t+1;if(n===e<<1)i[50]=0,i[51]=0;else{if(n!==e<<2)throw new r.FormatError("Could not fix indexToLocFormat: "+u);i[50]=0,i[51]=1}}}(w.head,M,I?w.loca.length:0);let X=Object.create(null);if(I){const e=A(w.head.data[50],w.head.data[51]),t=function(e,t,n,r,i,o,s){let a,l,c;r?(a=4,l=function(e,t){return e[t]<<24|e[t+1]<<16|e[t+2]<<8|e[t+3]},c=function(e,t,n){e[t]=n>>>24&255,e[t+1]=n>>16&255,e[t+2]=n>>8&255,e[t+3]=255&n}):(a=2,l=function(e,t){return e[t]<<9|e[t+1]<<1},c=function(e,t,n){e[t]=n>>9&255,e[t+1]=n>>1&255});const u=o?n+1:n,d=a*(1+u),h=new Uint8Array(d);h.set(e.data.subarray(0,d)),e.data=h;const p=t.data,f=p.length,g=new Uint8Array(f);let m,v;const _=[];for(m=0,v=0;m<n+1;m++,v+=a){let e=l(h,v);e>f&&(e=f),_.push({index:m,offset:e,endOffset:0})}for(_.sort(((e,t)=>e.offset-t.offset)),m=0;m<n;m++)_[m].endOffset=_[m+1].offset;for(_.sort(((e,t)=>e.index-t.index)),m=0;m<n;m++){const{offset:e,endOffset:t}=_[m];if(0!==e||0!==t)break;const n=_[m+1].offset;if(0!==n){_[m].endOffset=n;break}}const b=Object.create(null);let x=0;for(c(h,0,x),m=0,v=a;m<n;m++,v+=a){const e=y(p,_[m].offset,_[m].endOffset,g,x,i),t=e.length;0===t&&(b[m]=!0),e.sizeOfInstructions>s&&(s=e.sizeOfInstructions),x+=t,c(h,v,x)}if(0===x){const e=new Uint8Array([0,1,0,0,0,0,0,0,0,0,0,0,0,0,49,0]);for(m=0,v=a;m<u;m++,v+=a)c(h,v,e.length);t.data=e}else if(o){const n=l(h,a);g.length>n+x?t.data=g.subarray(0,n+x):(t.data=new Uint8Array(n+x),t.data.set(g.subarray(0,x))),t.data.set(g.subarray(0,n),x),c(e.data,h.length-a,x+n)}else t.data=g.subarray(0,x);return{missingGlyphs:b,maxSizeOfInstructions:s}}(w.loca,w.glyf,M,e,q,R,H);X=t.missingGlyphs,G>=65536&&w.maxp.length>=22&&(w.maxp.data[26]=t.maxSizeOfInstructions>>8,w.maxp.data[27]=255&t.maxSizeOfInstructions)}if(!w.hhea)throw new r.FormatError('Required "hhea" table is not found');0===w.hhea.data[10]&&0===w.hhea.data[11]&&(w.hhea.data[10]=255,w.hhea.data[11]=255);const Y={unitsPerEm:A(w.head.data[18],w.head.data[19]),yMax:A(w.head.data[42],w.head.data[43]),yMin:j(w.head.data[38],w.head.data[39]),ascent:j(w.hhea.data[4],w.hhea.data[5]),descent:j(w.hhea.data[6],w.hhea.data[7]),lineGap:j(w.hhea.data[8],w.hhea.data[9])};this.ascent=Y.ascent/Y.unitsPerEm,this.descent=Y.descent/Y.unitsPerEm,this.lineGap=Y.lineGap/Y.unitsPerEm,this.cssFontInfo&&this.cssFontInfo.lineHeight?(this.lineHeight=this.cssFontInfo.metrics.lineHeight,this.lineGap=this.cssFontInfo.metrics.lineGap):this.lineHeight=this.ascent-this.descent+this.lineGap,w.post&&function(e,n,i){const s=(t.start||0)+e.offset;t.pos=s;const a=s+e.length,l=t.getInt32();let c;t.skip(28);let u,d=!0;switch(l){case 65536:c=o.MacStandardGlyphOrdering;break;case 131072:const e=t.getUint16();if(e!==i){d=!1;break}const s=[];for(u=0;u<e;++u){const e=t.getUint16();if(e>=32768){d=!1;break}s.push(e)}if(!d)break;const h=[],p=[];for(;t.pos<a;){const e=t.getByte();for(p.length=e,u=0;u<e;++u)p[u]=String.fromCharCode(t.getByte());h.push(p.join(""))}for(c=[],u=0;u<e;++u){const e=s[u];e<258?c.push(o.MacStandardGlyphOrdering[e]):c.push(h[e-258])}break;case 196608:break;default:(0,r.warn)("Unknown/unsupported post table version "+l),d=!1,n.defaultEncoding&&(c=n.defaultEncoding)}n.glyphNames=c}(w.post,n,M),w.post={tag:"post",data:B(n)};const K=[];function Z(e){return!X[e]}if(n.composite){const e=n.cidToGidMap||[],t=0===e.length;n.cMap.forEach((function(n,i){if("string"===typeof i&&(i=L(n,i,!0)),i>65535)throw new r.FormatError("Max size of CID is 65,535");let o=-1;t?o=i:void 0!==e[i]&&(o=e[i]),o>=0&&o<M&&Z(o)&&(K[n]=o)}))}else{const e=function(e,t,n,i){if(!e)return(0,r.warn)("No cmap table available."),{platformId:-1,encodingId:-1,mappings:[],hasShortCmap:!1};let o,s=(t.start||0)+e.offset;t.pos=s,t.skip(2);const a=t.getUint16();let l,c=!1;for(let r=0;r<a;r++){const e=t.getUint16(),o=t.getUint16(),s=t.getInt32()>>>0;let u=!1;if(!l||l.platformId!==e||l.encodingId!==o){if(0!==e||0!==o&&1!==o&&3!==o)if(1===e&&0===o)u=!0;else if(3!==e||1!==o||!i&&l){if(n&&3===e&&0===o){u=!0;let n=!0;if(r<a-1){const r=t.peekBytes(2);A(r[0],r[1])<e&&(n=!1)}n&&(c=!0)}}else u=!0,n||(c=!0);else u=!0;if(u&&(l={platformId:e,encodingId:o,offset:s}),c)break}}if(l&&(t.pos=s+l.offset),!l||-1===t.peekByte())return(0,r.warn)("Could not find a preferred cmap table."),{platformId:-1,encodingId:-1,mappings:[],hasShortCmap:!1};const u=t.getUint16();let d=!1;const h=[];let p,f;if(0===u){for(t.skip(4),p=0;p<256;p++){const e=t.getByte();e&&h.push({charCode:p,glyphId:e})}d=!0}else if(2===u){t.skip(4);const e=[];let n=0;for(let i=0;i<256;i++){const r=t.getUint16()>>3;e.push(r),n=Math.max(r,n)}const r=[];for(let i=0;i<=n;i++)r.push({firstCode:t.getUint16(),entryCount:t.getUint16(),idDelta:j(t.getByte(),t.getByte()),idRangePos:t.pos+t.getUint16()});for(let i=0;i<256;i++)if(0===e[i])t.pos=r[0].idRangePos+2*i,f=t.getUint16(),h.push({charCode:i,glyphId:f});else{const n=r[e[i]];for(p=0;p<n.entryCount;p++){const e=(i<<8)+p+n.firstCode;t.pos=n.idRangePos+2*p,f=t.getUint16(),0!==f&&(f=(f+n.idDelta)%65536),h.push({charCode:e,glyphId:f})}}}else if(4===u){t.skip(4);const e=t.getUint16()>>1;t.skip(6);const n=[];let r;for(r=0;r<e;r++)n.push({end:t.getUint16()});for(t.skip(2),r=0;r<e;r++)n[r].start=t.getUint16();for(r=0;r<e;r++)n[r].delta=t.getUint16();let i,a=0;for(r=0;r<e;r++){o=n[r];const s=t.getUint16();s?(i=(s>>1)-(e-r),o.offsetIndex=i,a=Math.max(a,i+o.end-o.start+1)):o.offsetIndex=-1}const l=[];for(p=0;p<a;p++)l.push(t.getUint16());for(r=0;r<e;r++){o=n[r],s=o.start;const e=o.end,t=o.delta;for(i=o.offsetIndex,p=s;p<=e;p++)65535!==p&&(f=i<0?p:l[i+p-s],f=f+t&65535,h.push({charCode:p,glyphId:f}))}}else if(6===u){t.skip(4);const e=t.getUint16(),n=t.getUint16();for(p=0;p<n;p++){f=t.getUint16();const n=e+p;h.push({charCode:n,glyphId:f})}}else{if(12!==u)return(0,r.warn)("cmap table has unsupported format: "+u),{platformId:-1,encodingId:-1,mappings:[],hasShortCmap:!1};{t.skip(10);const e=t.getInt32()>>>0;for(p=0;p<e;p++){const e=t.getInt32()>>>0,n=t.getInt32()>>>0;let r=t.getInt32()>>>0;for(let t=e;t<=n;t++)h.push({charCode:t,glyphId:r++})}}}h.sort((function(e,t){return e.charCode-t.charCode}));for(let r=1;r<h.length;r++)h[r-1].charCode===h[r].charCode&&(h.splice(r,1),r--);return{platformId:l.platformId,encodingId:l.encodingId,mappings:h,hasShortCmap:d}}(w.cmap,t,this.isSymbolicFont,n.hasEncoding),i=e.platformId,s=e.encodingId,c=e.mappings;let d=[],h=!1;if(!n.hasEncoding||"MacRomanEncoding"!==n.baseEncodingName&&"WinAnsiEncoding"!==n.baseEncodingName||(d=(0,l.getEncoding)(n.baseEncodingName)),n.hasEncoding&&!this.isSymbolicFont&&(3===i&&1===s||1===i&&0===s)){const e=(0,a.getGlyphsUnicode)();for(let t=0;t<256;t++){let r;if(r=void 0!==this.differences[t]?this.differences[t]:d.length&&""!==d[t]?d[t]:l.StandardEncoding[t],!r)continue;const a=(0,o.recoverGlyphName)(r,e);let h;if(3===i&&1===s?h=e[a]:1===i&&0===s&&(h=l.MacRomanEncoding.indexOf(a)),void 0===h){if(!n.glyphNames&&n.hasIncludedToUnicodeMap&&!(this.toUnicode instanceof u.IdentityToUnicodeMap)){const e=this.toUnicode.get(t);e&&(h=e.codePointAt(0))}if(void 0===h)continue}for(const e of c)if(e.charCode===h){K[t]=e.glyphId;break}}}else if(0===i){for(const e of c)K[e.charCode]=e.glyphId;h=!0}else for(const t of c){let e=t.charCode;3===i&&e>=61440&&e<=61695&&(e&=255),K[e]=t.glyphId}if(n.glyphNames&&(d.length||this.differences.length))for(let t=0;t<256;++t){if(!h&&void 0!==K[t])continue;const e=this.differences[t]||d[t];if(!e)continue;const r=n.glyphNames.indexOf(e);r>0&&Z(r)&&(K[t]=r)}}0===K.length&&(K[0]=0);let $=O-1;if(R||($=0),!n.cssFontInfo){const e=V(K,Z,$,this.toUnicode);this.toFontChar=e.toFontChar,w.cmap={tag:"cmap",data:F(e.charCodeToGlyphId,e.toUnicodeExtraMap,O)},w["OS/2"]&&function(e,t){t.pos=(t.start||0)+e.offset;const n=t.getUint16();t.skip(60);const r=t.getUint16();return!(n<4&&768&r)&&!(t.getUint16()>t.getUint16())&&(t.skip(6),0!==t.getUint16()&&(e.data[8]=e.data[9]=0,!0))}(w["OS/2"],t)||(w["OS/2"]={tag:"OS/2",data:z(n,e.charCodeToGlyphId,Y)})}if(!I)try{C=new v.Stream(w["CFF "].data),P=new i.CFFParser(C,n,o.SEAC_ANALYSIS_ENABLED).parse(),P.duplicateFirstGlyph();const e=new i.CFFCompiler(P);w["CFF "].data=e.compile()}catch(Q){(0,r.warn)("Failed to compile font "+n.loadedName)}if(w.name){const[t,r]=_(w.name);w.name.data=W(e,t),this.psName=t[0][6]||null,n.composite||function(e,t,n){if(e.isInternalFont)return;if(e.hasIncludedToUnicodeMap)return;if(e.hasEncoding)return;if(e.toUnicode instanceof u.IdentityToUnicodeMap)return;if(!t)return;if(0===n.length)return;if(e.defaultEncoding===l.WinAnsiEncoding)return;for(const s of n)if(!N(s))return;const r=l.WinAnsiEncoding,i=[],o=(0,a.getGlyphsUnicode)();for(const s in r){const e=r[s];if(""===e)continue;const t=o[e];void 0!==t&&(i[s]=String.fromCharCode(t))}i.length>0&&e.toUnicode.amend(i)}(n,this.isSymbolicFont,r)}else w.name={tag:"name",data:W(this.name)};const J=new m.OpenTypeFileBuilder(S.version);for(const r in w)J.addTable(r,w[r].data);return J.toArray()}convert(e,t,n){n.fixedPitch=!1,n.builtInEncoding&&function(e,t){if(e.isInternalFont)return;if(e.hasIncludedToUnicodeMap)return;if(t===e.defaultEncoding)return;if(e.toUnicode instanceof u.IdentityToUnicodeMap)return;const n=[],r=(0,a.getGlyphsUnicode)();for(const i in t){if(e.hasEncoding&&(e.baseEncodingName||void 0!==e.differences[i]))continue;const o=t[i],a=(0,s.getUnicodeForGlyph)(o,r);-1!==a&&(n[i]=String.fromCharCode(a))}n.length>0&&e.toUnicode.amend(n)}(n,n.builtInEncoding);let i=1;t instanceof d.CFFFont&&(i=t.numGlyphs-1);const c=t.getGlyphMapping(n);let h=null,p=c,f=null;n.cssFontInfo||(h=V(c,t.hasGlyphId.bind(t),i,this.toUnicode),this.toFontChar=h.toFontChar,p=h.charCodeToGlyphId,f=h.toUnicodeExtraMap);const g=t.numGlyphs;function y(e,t){let n=null;for(const r in e)t===e[r]&&(n||(n=[]),n.push(0|r));return n}function v(e,t){for(const n in e)if(t===e[n])return 0|n;return h.charCodeToGlyphId[h.nextAvailableFontCharCode]=t,h.nextAvailableFontCharCode++}const _=t.seacs;if(h&&o.SEAC_ANALYSIS_ENABLED&&_&&_.length){const e=n.fontMatrix||r.FONT_IDENTITY_MATRIX,i=t.getCharset(),o=Object.create(null);for(let t in _){t|=0;const n=_[t],r=l.StandardEncoding[n[2]],s=l.StandardEncoding[n[3]],a=i.indexOf(r),u=i.indexOf(s);if(a<0||u<0)continue;const d={x:n[0]*e[0]+n[1]*e[2]+e[4],y:n[0]*e[1]+n[1]*e[3]+e[5]},p=y(c,t);if(p)for(const e of p){const t=h.charCodeToGlyphId,n=v(t,a),r=v(t,u);o[e]={baseFontCharCode:n,accentFontCharCode:r,accentOffset:d}}}n.seacMap=o}const b=1/(n.fontMatrix||r.FONT_IDENTITY_MATRIX)[0],x=new m.OpenTypeFileBuilder("OTTO");return x.addTable("CFF ",t.data),x.addTable("OS/2",z(n,p)),x.addTable("cmap",F(p,f,g)),x.addTable("head","\0\x01\0\0\0\0\x10\0\0\0\0\0_\x0f<\xf5\0\0"+G(b)+"\0\0\0\0\x9e\v~'\0\0\0\0\x9e\v~'\0\0"+G(n.descent)+"\x0f\xff"+G(n.ascent)+I(n.italicAngle?2:0)+"\0\x11\0\0\0\0\0\0"),x.addTable("hhea","\0\x01\0\0"+G(n.ascent)+G(n.descent)+"\0\0\xff\xff\0\0\0\0\0\0"+G(n.capHeight)+G(Math.tan(n.italicAngle)*n.xHeight)+"\0\0\0\0\0\0\0\0\0\0\0\0"+I(g)),x.addTable("hmtx",function(){const e=t.charstrings,n=t.cff?t.cff.widths:null;let r="\0\0\0\0";for(let t=1,i=g;t<i;t++){let i=0;if(e){const n=e[t-1];i="width"in n?n.width:0}else n&&(i=Math.ceil(n[t]||0));r+=I(i)+I(0)}return r}()),x.addTable("maxp","\0\0P\0"+I(g)),x.addTable("name",W(e)),x.addTable("post",B(n)),x.toArray()}get spaceWidth(){const e=["space","minus","one","i","I"];let t;for(const n of e){if(n in this.widths){t=this.widths[n];break}const e=(0,a.getGlyphsUnicode)()[n];let r=0;if(this.composite&&this.cMap.contains(e)&&(r=this.cMap.lookup(e),"string"===typeof r&&(r=L(e,r))),!r&&this.toUnicode&&(r=this.toUnicode.charCodeOf(e)),r<=0&&(r=e),t=this.widths[r],t)break}return t=t||this.defaultWidth,(0,r.shadow)(this,"spaceWidth",t)}_charToGlyph(e){let t,n,i,o=arguments.length>1&&void 0!==arguments[1]&&arguments[1],a=this._glyphCache[e];if(a&&a.isSpace===o)return a;let l=e;this.cMap&&this.cMap.contains(e)&&(l=this.cMap.lookup(e),"string"===typeof l&&(l=L(e,l))),n=this.widths[l],"number"!==typeof n&&(n=this.defaultWidth);const c=this.vmetrics&&this.vmetrics[l];let u=this.toUnicode.get(e)||e;"number"===typeof u&&(u=String.fromCharCode(u));let d=void 0!==this.toFontChar[e];if(t=this.toFontChar[e]||e,this.missingFile){const n=this.differences[e]||this.defaultEncoding[e];".notdef"!==n&&""!==n||"Type1"!==this.type||(t=32),t=(0,s.mapSpecialUnicodeValues)(t)}this.isType3Font&&(i=t);let h=null;if(this.seacMap&&this.seacMap[e]){d=!0;const n=this.seacMap[e];t=n.baseFontCharCode,h={fontChar:String.fromCodePoint(n.accentFontCharCode),offset:n.accentOffset}}let p="";return"number"===typeof t&&(t<=1114111?p=String.fromCodePoint(t):(0,r.warn)("charToGlyph - invalid fontCharCode: ".concat(t))),a=new C(e,p,u,h,n,c,i,o,d),this._glyphCache[e]=a}charsToGlyphs(e){let t=this._charsCache[e];if(t)return t;if(t=[],this.cMap){const n=Object.create(null),r=e.length;let i=0;for(;i<r;){this.cMap.readCharCode(e,i,n);const{charcode:r,length:o}=n;i+=o;const s=this._charToGlyph(r,1===o&&32===e.charCodeAt(i-1));t.push(s)}}else for(let n=0,r=e.length;n<r;++n){const r=e.charCodeAt(n),i=this._charToGlyph(r,32===r);t.push(i)}return this._charsCache[e]=t}getCharPositions(e){const t=[];if(this.cMap){const n=Object.create(null);let r=0;for(;r<e.length;){this.cMap.readCharCode(e,r,n);const i=n.length;t.push([r,r+i]),r+=i}}else for(let n=0,r=e.length;n<r;++n)t.push([n,n+1]);return t}get glyphCacheValues(){return Object.values(this._glyphCache)}encodeString(e){const t=[],n=[],r=()=>t.length%2===1,i=this.toUnicode instanceof u.IdentityToUnicodeMap?e=>this.toUnicode.charCodeOf(e):e=>this.toUnicode.charCodeOf(String.fromCodePoint(e));for(let o=0,s=e.length;o<s;o++){const s=e.codePointAt(o);if(s>55295&&(s<57344||s>65533)&&o++,this.toUnicode){const e=i(s);if(-1!==e){r()&&(t.push(n.join("")),n.length=0);for(let t=(this.cMap?this.cMap.getCharCodeLength(e):1)-1;t>=0;t--)n.push(String.fromCharCode(e>>8*t&255));continue}}r()||(t.push(n.join("")),n.length=0),n.push(String.fromCodePoint(s))}return t.push(n.join("")),t}},t.ErrorFont=class{constructor(e){this.error=e,this.loadedName="g_font_error",this.missingFile=!0}charsToGlyphs(){return[]}encodeString(e){return[e]}exportData(){return{error:this.error}}}},(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.CFFTopDict=t.CFFStrings=t.CFFStandardStrings=t.CFFPrivateDict=t.CFFParser=t.CFFIndex=t.CFFHeader=t.CFFFDSelect=t.CFFCompiler=t.CFFCharset=t.CFF=void 0;var r=n(2),i=n(34),o=n(35);const s=[".notdef","space","exclam","quotedbl","numbersign","dollar","percent","ampersand","quoteright","parenleft","parenright","asterisk","plus","comma","hyphen","period","slash","zero","one","two","three","four","five","six","seven","eight","nine","colon","semicolon","less","equal","greater","question","at","A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z","bracketleft","backslash","bracketright","asciicircum","underscore","quoteleft","a","b","c","d","e","f","g","h","i","j","k","l","m","n","o","p","q","r","s","t","u","v","w","x","y","z","braceleft","bar","braceright","asciitilde","exclamdown","cent","sterling","fraction","yen","florin","section","currency","quotesingle","quotedblleft","guillemotleft","guilsinglleft","guilsinglright","fi","fl","endash","dagger","daggerdbl","periodcentered","paragraph","bullet","quotesinglbase","quotedblbase","quotedblright","guillemotright","ellipsis","perthousand","questiondown","grave","acute","circumflex","tilde","macron","breve","dotaccent","dieresis","ring","cedilla","hungarumlaut","ogonek","caron","emdash","AE","ordfeminine","Lslash","Oslash","OE","ordmasculine","ae","dotlessi","lslash","oslash","oe","germandbls","onesuperior","logicalnot","mu","trademark","Eth","onehalf","plusminus","Thorn","onequarter","divide","brokenbar","degree","thorn","threequarters","twosuperior","registered","minus","eth","multiply","threesuperior","copyright","Aacute","Acircumflex","Adieresis","Agrave","Aring","Atilde","Ccedilla","Eacute","Ecircumflex","Edieresis","Egrave","Iacute","Icircumflex","Idieresis","Igrave","Ntilde","Oacute","Ocircumflex","Odieresis","Ograve","Otilde","Scaron","Uacute","Ucircumflex","Udieresis","Ugrave","Yacute","Ydieresis","Zcaron","aacute","acircumflex","adieresis","agrave","aring","atilde","ccedilla","eacute","ecircumflex","edieresis","egrave","iacute","icircumflex","idieresis","igrave","ntilde","oacute","ocircumflex","odieresis","ograve","otilde","scaron","uacute","ucircumflex","udieresis","ugrave","yacute","ydieresis","zcaron","exclamsmall","Hungarumlautsmall","dollaroldstyle","dollarsuperior","ampersandsmall","Acutesmall","parenleftsuperior","parenrightsuperior","twodotenleader","onedotenleader","zerooldstyle","oneoldstyle","twooldstyle","threeoldstyle","fouroldstyle","fiveoldstyle","sixoldstyle","sevenoldstyle","eightoldstyle","nineoldstyle","commasuperior","threequartersemdash","periodsuperior","questionsmall","asuperior","bsuperior","centsuperior","dsuperior","esuperior","isuperior","lsuperior","msuperior","nsuperior","osuperior","rsuperior","ssuperior","tsuperior","ff","ffi","ffl","parenleftinferior","parenrightinferior","Circumflexsmall","hyphensuperior","Gravesmall","Asmall","Bsmall","Csmall","Dsmall","Esmall","Fsmall","Gsmall","Hsmall","Ismall","Jsmall","Ksmall","Lsmall","Msmall","Nsmall","Osmall","Psmall","Qsmall","Rsmall","Ssmall","Tsmall","Usmall","Vsmall","Wsmall","Xsmall","Ysmall","Zsmall","colonmonetary","onefitted","rupiah","Tildesmall","exclamdownsmall","centoldstyle","Lslashsmall","Scaronsmall","Zcaronsmall","Dieresissmall","Brevesmall","Caronsmall","Dotaccentsmall","Macronsmall","figuredash","hypheninferior","Ogoneksmall","Ringsmall","Cedillasmall","questiondownsmall","oneeighth","threeeighths","fiveeighths","seveneighths","onethird","twothirds","zerosuperior","foursuperior","fivesuperior","sixsuperior","sevensuperior","eightsuperior","ninesuperior","zeroinferior","oneinferior","twoinferior","threeinferior","fourinferior","fiveinferior","sixinferior","seveninferior","eightinferior","nineinferior","centinferior","dollarinferior","periodinferior","commainferior","Agravesmall","Aacutesmall","Acircumflexsmall","Atildesmall","Adieresissmall","Aringsmall","AEsmall","Ccedillasmall","Egravesmall","Eacutesmall","Ecircumflexsmall","Edieresissmall","Igravesmall","Iacutesmall","Icircumflexsmall","Idieresissmall","Ethsmall","Ntildesmall","Ogravesmall","Oacutesmall","Ocircumflexsmall","Otildesmall","Odieresissmall","OEsmall","Oslashsmall","Ugravesmall","Uacutesmall","Ucircumflexsmall","Udieresissmall","Yacutesmall","Thornsmall","Ydieresissmall","001.000","001.001","001.002","001.003","Black","Bold","Book","Light","Medium","Regular","Roman","Semibold"];t.CFFStandardStrings=s;const a=391,l=[null,{id:"hstem",min:2,stackClearing:!0,stem:!0},null,{id:"vstem",min:2,stackClearing:!0,stem:!0},{id:"vmoveto",min:1,stackClearing:!0},{id:"rlineto",min:2,resetStack:!0},{id:"hlineto",min:1,resetStack:!0},{id:"vlineto",min:1,resetStack:!0},{id:"rrcurveto",min:6,resetStack:!0},null,{id:"callsubr",min:1,undefStack:!0},{id:"return",min:0,undefStack:!0},null,null,{id:"endchar",min:0,stackClearing:!0},null,null,null,{id:"hstemhm",min:2,stackClearing:!0,stem:!0},{id:"hintmask",min:0,stackClearing:!0},{id:"cntrmask",min:0,stackClearing:!0},{id:"rmoveto",min:2,stackClearing:!0},{id:"hmoveto",min:1,stackClearing:!0},{id:"vstemhm",min:2,stackClearing:!0,stem:!0},{id:"rcurveline",min:8,resetStack:!0},{id:"rlinecurve",min:8,resetStack:!0},{id:"vvcurveto",min:4,resetStack:!0},{id:"hhcurveto",min:4,resetStack:!0},null,{id:"callgsubr",min:1,undefStack:!0},{id:"vhcurveto",min:4,resetStack:!0},{id:"hvcurveto",min:4,resetStack:!0}],c=[null,null,null,{id:"and",min:2,stackDelta:-1},{id:"or",min:2,stackDelta:-1},{id:"not",min:1,stackDelta:0},null,null,null,{id:"abs",min:1,stackDelta:0},{id:"add",min:2,stackDelta:-1,stackFn(e,t){e[t-2]=e[t-2]+e[t-1]}},{id:"sub",min:2,stackDelta:-1,stackFn(e,t){e[t-2]=e[t-2]-e[t-1]}},{id:"div",min:2,stackDelta:-1,stackFn(e,t){e[t-2]=e[t-2]/e[t-1]}},null,{id:"neg",min:1,stackDelta:0,stackFn(e,t){e[t-1]=-e[t-1]}},{id:"eq",min:2,stackDelta:-1},null,null,{id:"drop",min:1,stackDelta:-1},null,{id:"put",min:2,stackDelta:-2},{id:"get",min:1,stackDelta:0},{id:"ifelse",min:4,stackDelta:-3},{id:"random",min:0,stackDelta:1},{id:"mul",min:2,stackDelta:-1,stackFn(e,t){e[t-2]=e[t-2]*e[t-1]}},null,{id:"sqrt",min:1,stackDelta:0},{id:"dup",min:1,stackDelta:1},{id:"exch",min:2,stackDelta:0},{id:"index",min:2,stackDelta:0},{id:"roll",min:3,stackDelta:-2},null,null,null,{id:"hflex",min:7,resetStack:!0},{id:"flex",min:13,resetStack:!0},{id:"hflex1",min:9,resetStack:!0},{id:"flex1",min:11,resetStack:!0}];t.CFFParser=class{constructor(e,t,n){this.bytes=e.getBytes(),this.properties=t,this.seacAnalysisEnabled=!!n}parse(){const e=this.properties,t=new u;this.cff=t;const n=this.parseHeader(),r=this.parseIndex(n.endPos),i=this.parseIndex(r.endPos),o=this.parseIndex(i.endPos),s=this.parseIndex(o.endPos),a=this.parseDict(i.obj.get(0)),l=this.createDict(m,a,t.strings);t.header=n.obj,t.names=this.parseNameIndex(r.obj),t.strings=this.parseStringIndex(o.obj),t.topDict=l,t.globalSubrIndex=s.obj,this.parsePrivateDict(t.topDict),t.isCIDFont=l.hasName("ROS");const c=l.getByName("CharStrings"),d=this.parseIndex(c).obj,h=l.getByName("FontMatrix");h&&(e.fontMatrix=h);const p=l.getByName("FontBBox");let f,g;if(p&&(e.ascent=Math.max(p[3],p[1]),e.descent=Math.min(p[1],p[3]),e.ascentScaled=!0),t.isCIDFont){const e=this.parseIndex(l.getByName("FDArray")).obj;for(let n=0,r=e.count;n<r;++n){const r=e.get(n),i=this.createDict(m,this.parseDict(r),t.strings);this.parsePrivateDict(i),t.fdArray.push(i)}g=null,f=this.parseCharsets(l.getByName("charset"),d.count,t.strings,!0),t.fdSelect=this.parseFDSelect(l.getByName("FDSelect"),d.count)}else f=this.parseCharsets(l.getByName("charset"),d.count,t.strings,!1),g=this.parseEncoding(l.getByName("Encoding"),e,t.strings,f.charset);t.charset=f,t.encoding=g;const y=this.parseCharStrings({charStrings:d,localSubrIndex:l.privateDict.subrsIndex,globalSubrIndex:s.obj,fdSelect:t.fdSelect,fdArray:t.fdArray,privateDict:l.privateDict});return t.charStrings=y.charStrings,t.seacs=y.seacs,t.widths=y.widths,t}parseHeader(){let e=this.bytes;const t=e.length;let n=0;for(;n<t&&1!==e[n];)++n;if(n>=t)throw new r.FormatError("Invalid CFF header");0!==n&&((0,r.info)("cff data is shifted"),e=e.subarray(n),this.bytes=e);const i=e[0],o=e[1],s=e[2],a=e[3];return{obj:new d(i,o,s,a),endPos:s}}parseDict(e){let t=0;function n(){let n=e[t++];return 30===n?function(){let n="";const r=15,i=["0","1","2","3","4","5","6","7","8","9",".","E","E-",null,"-"],o=e.length;for(;t<o;){const o=e[t++],s=o>>4,a=15&o;if(s===r)break;if(n+=i[s],a===r)break;n+=i[a]}return parseFloat(n)}():28===n?(n=e[t++],n=(n<<24|e[t++]<<16)>>16,n):29===n?(n=e[t++],n=n<<8|e[t++],n=n<<8|e[t++],n=n<<8|e[t++],n):n>=32&&n<=246?n-139:n>=247&&n<=250?256*(n-247)+e[t++]+108:n>=251&&n<=254?-256*(n-251)-e[t++]-108:((0,r.warn)('CFFParser_parseDict: "'+n+'" is a reserved command.'),NaN)}let i=[];const o=[];t=0;const s=e.length;for(;t<s;){let r=e[t];r<=21?(12===r&&(r=r<<8|e[++t]),o.push([r,i]),i=[],++t):i.push(n())}return o}parseIndex(e){const t=new p,n=this.bytes,r=n[e++]<<8|n[e++],i=[];let o,s,a=e;if(0!==r){const t=n[e++],l=e+(r+1)*t-1;for(o=0,s=r+1;o<s;++o){let r=0;for(let i=0;i<t;++i)r<<=8,r+=n[e++];i.push(l+r)}a=i[r]}for(o=0,s=i.length-1;o<s;++o){const e=i[o],r=i[o+1];t.add(n.subarray(e,r))}return{obj:t,endPos:a}}parseNameIndex(e){const t=[];for(let n=0,i=e.count;n<i;++n){const i=e.get(n);t.push((0,r.bytesToString)(i))}return t}parseStringIndex(e){const t=new h;for(let n=0,i=e.count;n<i;++n){const i=e.get(n);t.add((0,r.bytesToString)(i))}return t}createDict(e,t,n){const r=new e(n);for(const[i,o]of t)r.setByKey(i,o);return r}parseCharString(e,t,n,i){if(!t||e.callDepth>10)return!1;let o=e.stackSize;const s=e.stack;let a=t.length;for(let u=0;u<a;){const d=t[u++];let h=null;if(12===d){const e=t[u++];0===e?(t[u-2]=139,t[u-1]=22,o=0):h=c[e]}else if(28===d)s[o]=(t[u]<<24|t[u+1]<<16)>>16,u+=2,o++;else if(14===d){if(o>=4&&(o-=4,this.seacAnalysisEnabled))return e.seac=s.slice(o,o+4),!1;h=l[d]}else if(d>=32&&d<=246)s[o]=d-139,o++;else if(d>=247&&d<=254)s[o]=d<251?(d-247<<8)+t[u]+108:-(d-251<<8)-t[u]-108,u++,o++;else if(255===d)s[o]=(t[u]<<24|t[u+1]<<16|t[u+2]<<8|t[u+3])/65536,u+=4,o++;else if(19===d||20===d)e.hints+=o>>1,u+=e.hints+7>>3,o%=2,h=l[d];else{if(10===d||29===d){let t;if(t=10===d?n:i,!t)return h=l[d],(0,r.warn)("Missing subrsIndex for "+h.id),!1;let a=32768;t.count<1240?a=107:t.count<33900&&(a=1131);const c=s[--o]+a;if(c<0||c>=t.count||isNaN(c))return h=l[d],(0,r.warn)("Out of bounds subrIndex for "+h.id),!1;if(e.stackSize=o,e.callDepth++,!this.parseCharString(e,t.get(c),n,i))return!1;e.callDepth--,o=e.stackSize;continue}if(11===d)return e.stackSize=o,!0;if(0===d&&u===t.length)t[u-1]=14,h=l[14];else{if(9===d){t.copyWithin(u-1,u,-1),u-=1,a-=1;continue}h=l[d]}}if(h){if(h.stem&&(e.hints+=o>>1,3===d||23===d?e.hasVStems=!0:!e.hasVStems||1!==d&&18!==d||((0,r.warn)("CFF stem hints are in wrong order"),t[u-1]=1===d?3:23)),"min"in h&&!e.undefStack&&o<h.min)return(0,r.warn)("Not enough parameters for "+h.id+"; actual: "+o+", expected: "+h.min),0===o&&(t[u-1]=14,!0);e.firstStackClearing&&h.stackClearing&&(e.firstStackClearing=!1,o-=h.min,o>=2&&h.stem?o%=2:o>1&&(0,r.warn)("Found too many parameters for stack-clearing command"),o>0&&(e.width=s[o-1])),"stackDelta"in h?("stackFn"in h&&h.stackFn(s,o),o+=h.stackDelta):h.stackClearing?o=0:h.resetStack?(o=0,e.undefStack=!1):h.undefStack&&(o=0,e.undefStack=!0,e.firstStackClearing=!1)}}return a<t.length&&t.fill(14,a),e.stackSize=o,!0}parseCharStrings(e){let{charStrings:t,localSubrIndex:n,globalSubrIndex:i,fdSelect:o,fdArray:s,privateDict:a}=e;const l=[],c=[],u=t.count;for(let d=0;d<u;d++){const e=t.get(d),u={callDepth:0,stackSize:0,stack:[],undefStack:!0,hints:0,firstStackClearing:!0,seac:null,width:null,hasVStems:!1};let h=!0,p=null,f=a;if(o&&s.length){const e=o.getFDIndex(d);-1===e&&((0,r.warn)("Glyph index is not in fd select."),h=!1),e>=s.length&&((0,r.warn)("Invalid fd index for glyph index."),h=!1),h&&(f=s[e].privateDict,p=f.subrsIndex)}else n&&(p=n);if(h&&(h=this.parseCharString(u,e,p,i)),null!==u.width){const e=f.getByName("nominalWidthX");c[d]=e+u.width}else{const e=f.getByName("defaultWidthX");c[d]=e}null!==u.seac&&(l[d]=u.seac),h||t.set(d,new Uint8Array([14]))}return{charStrings:t,seacs:l,widths:c}}emptyPrivateDictionary(e){const t=this.createDict(v,[],e.strings);e.setByKey(18,[0,0]),e.privateDict=t}parsePrivateDict(e){if(!e.hasName("Private"))return void this.emptyPrivateDictionary(e);const t=e.getByName("Private");if(!Array.isArray(t)||2!==t.length)return void e.removeByName("Private");const n=t[0],r=t[1];if(0===n||r>=this.bytes.length)return void this.emptyPrivateDictionary(e);const i=r+n,o=this.bytes.subarray(r,i),s=this.parseDict(o),a=this.createDict(v,s,e.strings);if(e.privateDict=a,0===a.getByName("ExpansionFactor")&&a.setByName("ExpansionFactor",.06),!a.getByName("Subrs"))return;const l=a.getByName("Subrs"),c=r+l;if(0===l||c>=this.bytes.length)return void this.emptyPrivateDictionary(e);const u=this.parseIndex(c);a.subrsIndex=u.obj}parseCharsets(e,t,n,o){if(0===e)return new b(!0,_.ISO_ADOBE,i.ISOAdobeCharset);if(1===e)return new b(!0,_.EXPERT,i.ExpertCharset);if(2===e)return new b(!0,_.EXPERT_SUBSET,i.ExpertSubsetCharset);const s=this.bytes,a=e,l=s[e++],c=[o?0:".notdef"];let u,d,h;switch(t-=1,l){case 0:for(h=0;h<t;h++)u=s[e++]<<8|s[e++],c.push(o?u:n.get(u));break;case 1:for(;c.length<=t;)for(u=s[e++]<<8|s[e++],d=s[e++],h=0;h<=d;h++)c.push(o?u++:n.get(u++));break;case 2:for(;c.length<=t;)for(u=s[e++]<<8|s[e++],d=s[e++]<<8|s[e++],h=0;h<=d;h++)c.push(o?u++:n.get(u++));break;default:throw new r.FormatError("Unknown charset format")}const p=e,f=s.subarray(a,p);return new b(!1,l,c,f)}parseEncoding(e,t,n,i){const s=Object.create(null),a=this.bytes;let l,c,u,d=!1,h=null;if(0===e||1===e){d=!0,l=e;const t=e?o.ExpertEncoding:o.StandardEncoding;for(c=0,u=i.length;c<u;c++){const e=t.indexOf(i[c]);-1!==e&&(s[e]=c)}}else{const t=e;switch(l=a[e++],127&l){case 0:const t=a[e++];for(c=1;c<=t;c++)s[a[e++]]=c;break;case 1:const n=a[e++];let i=1;for(c=0;c<n;c++){const t=a[e++],n=a[e++];for(let e=t;e<=t+n;e++)s[e]=i++}break;default:throw new r.FormatError("Unknown encoding format: ".concat(l," in CFF"))}const o=e;128&l&&(a[t]&=127,function(){const t=a[e++];for(c=0;c<t;c++){const t=a[e++],r=(a[e++]<<8)+(255&a[e++]);s[t]=i.indexOf(n.get(r))}}()),h=a.subarray(t,o)}return l&=127,new x(d,l,s,h)}parseFDSelect(e,t){const n=this.bytes,i=n[e++],o=[];let s;switch(i){case 0:for(s=0;s<t;++s){const t=n[e++];o.push(t)}break;case 3:const a=n[e++]<<8|n[e++];for(s=0;s<a;++s){let t=n[e++]<<8|n[e++];0===s&&0!==t&&((0,r.warn)("parseFDSelect: The first range must have a first GID of 0 -- trying to recover."),t=0);const i=n[e++],a=n[e]<<8|n[e+1];for(let e=t;e<a;++e)o.push(i)}e+=2;break;default:throw new r.FormatError('parseFDSelect: Unknown format "'.concat(i,'".'))}if(o.length!==t)throw new r.FormatError("parseFDSelect: Invalid font data.");return new S(i,o)}};class u{constructor(){this.header=null,this.names=[],this.topDict=null,this.strings=new h,this.globalSubrIndex=null,this.encoding=null,this.charset=null,this.charStrings=null,this.fdArray=[],this.fdSelect=null,this.isCIDFont=!1}duplicateFirstGlyph(){if(this.charStrings.count>=65535)return void(0,r.warn)("Not enough space in charstrings to duplicate first glyph.");const e=this.charStrings.get(0);this.charStrings.add(e),this.isCIDFont&&this.fdSelect.fdSelect.push(this.fdSelect.fdSelect[0])}hasGlyphId(e){return!(e<0||e>=this.charStrings.count)&&this.charStrings.get(e).length>0}}t.CFF=u;class d{constructor(e,t,n,r){this.major=e,this.minor=t,this.hdrSize=n,this.offSize=r}}t.CFFHeader=d;class h{constructor(){this.strings=[]}get(e){return e>=0&&e<=390?s[e]:e-a<=this.strings.length?this.strings[e-a]:s[0]}getSID(e){let t=s.indexOf(e);return-1!==t?t:(t=this.strings.indexOf(e),-1!==t?t+a:-1)}add(e){this.strings.push(e)}get count(){return this.strings.length}}t.CFFStrings=h;class p{constructor(){this.objects=[],this.length=0}add(e){this.length+=e.length,this.objects.push(e)}set(e,t){this.length+=t.length-this.objects[e].length,this.objects[e]=t}get(e){return this.objects[e]}get count(){return this.objects.length}}t.CFFIndex=p;class f{constructor(e,t){this.keyToNameMap=e.keyToNameMap,this.nameToKeyMap=e.nameToKeyMap,this.defaults=e.defaults,this.types=e.types,this.opcodes=e.opcodes,this.order=e.order,this.strings=t,this.values=Object.create(null)}setByKey(e,t){if(!(e in this.keyToNameMap))return!1;if(0===t.length)return!0;for(const i of t)if(isNaN(i))return(0,r.warn)('Invalid CFFDict value: "'.concat(t,'" for key "').concat(e,'".')),!0;const n=this.types[e];return"num"!==n&&"sid"!==n&&"offset"!==n||(t=t[0]),this.values[e]=t,!0}setByName(e,t){if(!(e in this.nameToKeyMap))throw new r.FormatError('Invalid dictionary name "'.concat(e,'"'));this.values[this.nameToKeyMap[e]]=t}hasName(e){return this.nameToKeyMap[e]in this.values}getByName(e){if(!(e in this.nameToKeyMap))throw new r.FormatError("Invalid dictionary name ".concat(e,'"'));const t=this.nameToKeyMap[e];return t in this.values?this.values[t]:this.defaults[t]}removeByName(e){delete this.values[this.nameToKeyMap[e]]}static createTables(e){const t={keyToNameMap:{},nameToKeyMap:{},defaults:{},types:{},opcodes:{},order:[]};for(const n of e){const e=Array.isArray(n[0])?(n[0][0]<<8)+n[0][1]:n[0];t.keyToNameMap[e]=n[1],t.nameToKeyMap[n[1]]=e,t.types[e]=n[2],t.defaults[e]=n[3],t.opcodes[e]=Array.isArray(n[0])?n[0]:[n[0]],t.order.push(e)}return t}}const g=[[[12,30],"ROS",["sid","sid","num"],null],[[12,20],"SyntheticBase","num",null],[0,"version","sid",null],[1,"Notice","sid",null],[[12,0],"Copyright","sid",null],[2,"FullName","sid",null],[3,"FamilyName","sid",null],[4,"Weight","sid",null],[[12,1],"isFixedPitch","num",0],[[12,2],"ItalicAngle","num",0],[[12,3],"UnderlinePosition","num",-100],[[12,4],"UnderlineThickness","num",50],[[12,5],"PaintType","num",0],[[12,6],"CharstringType","num",2],[[12,7],"FontMatrix",["num","num","num","num","num","num"],[.001,0,0,.001,0,0]],[13,"UniqueID","num",null],[5,"FontBBox",["num","num","num","num"],[0,0,0,0]],[[12,8],"StrokeWidth","num",0],[14,"XUID","array",null],[15,"charset","offset",0],[16,"Encoding","offset",0],[17,"CharStrings","offset",0],[18,"Private",["offset","offset"],null],[[12,21],"PostScript","sid",null],[[12,22],"BaseFontName","sid",null],[[12,23],"BaseFontBlend","delta",null],[[12,31],"CIDFontVersion","num",0],[[12,32],"CIDFontRevision","num",0],[[12,33],"CIDFontType","num",0],[[12,34],"CIDCount","num",8720],[[12,35],"UIDBase","num",null],[[12,37],"FDSelect","offset",null],[[12,36],"FDArray","offset",null],[[12,38],"FontName","sid",null]];class m extends f{static get tables(){return(0,r.shadow)(this,"tables",this.createTables(g))}constructor(e){super(m.tables,e),this.privateDict=null}}t.CFFTopDict=m;const y=[[6,"BlueValues","delta",null],[7,"OtherBlues","delta",null],[8,"FamilyBlues","delta",null],[9,"FamilyOtherBlues","delta",null],[[12,9],"BlueScale","num",.039625],[[12,10],"BlueShift","num",7],[[12,11],"BlueFuzz","num",1],[10,"StdHW","num",null],[11,"StdVW","num",null],[[12,12],"StemSnapH","delta",null],[[12,13],"StemSnapV","delta",null],[[12,14],"ForceBold","num",0],[[12,17],"LanguageGroup","num",0],[[12,18],"ExpansionFactor","num",.06],[[12,19],"initialRandomSeed","num",0],[20,"defaultWidthX","num",0],[21,"nominalWidthX","num",0],[19,"Subrs","offset",null]];class v extends f{static get tables(){return(0,r.shadow)(this,"tables",this.createTables(y))}constructor(e){super(v.tables,e),this.subrsIndex=null}}t.CFFPrivateDict=v;const _={ISO_ADOBE:0,EXPERT:1,EXPERT_SUBSET:2};class b{constructor(e,t,n,r){this.predefined=e,this.format=t,this.charset=n,this.raw=r}}t.CFFCharset=b;class x{constructor(e,t,n,r){this.predefined=e,this.format=t,this.encoding=n,this.raw=r}}class S{constructor(e,t){this.format=e,this.fdSelect=t}getFDIndex(e){return e<0||e>=this.fdSelect.length?-1:this.fdSelect[e]}}t.CFFFDSelect=S;class w{constructor(){this.offsets=Object.create(null)}isTracking(e){return e in this.offsets}track(e,t){if(e in this.offsets)throw new r.FormatError("Already tracking location of ".concat(e));this.offsets[e]=t}offset(e){for(const t in this.offsets)this.offsets[t]+=e}setEntryLocation(e,t,n){if(!(e in this.offsets))throw new r.FormatError("Not tracking location of ".concat(e));const i=n.data,o=this.offsets[e];for(let s=0,a=t.length;s<a;++s){const e=5*s+o,n=e+1,a=e+2,l=e+3,c=e+4;if(29!==i[e]||0!==i[n]||0!==i[a]||0!==i[l]||0!==i[c])throw new r.FormatError("writing to an offset that is not empty");const u=t[s];i[e]=29,i[n]=u>>24&255,i[a]=u>>16&255,i[l]=u>>8&255,i[c]=255&u}}}class E{constructor(e){this.cff=e}compile(){const e=this.cff,t={data:[],length:0,add(e){this.data=this.data.concat(e),this.length=this.data.length}},n=this.compileHeader(e.header);t.add(n);const i=this.compileNameIndex(e.names);if(t.add(i),e.isCIDFont&&e.topDict.hasName("FontMatrix")){const t=e.topDict.getByName("FontMatrix");e.topDict.removeByName("FontMatrix");for(const n of e.fdArray){let e=t.slice(0);n.hasName("FontMatrix")&&(e=r.Util.transform(e,n.getByName("FontMatrix"))),n.setByName("FontMatrix",e)}}const o=e.topDict.getByName("XUID");o&&o.length>16&&e.topDict.removeByName("XUID"),e.topDict.setByName("charset",0);let s=this.compileTopDicts([e.topDict],t.length,e.isCIDFont);t.add(s.output);const a=s.trackers[0],l=this.compileStringIndex(e.strings.strings);t.add(l);const c=this.compileIndex(e.globalSubrIndex);if(t.add(c),e.encoding&&e.topDict.hasName("Encoding"))if(e.encoding.predefined)a.setEntryLocation("Encoding",[e.encoding.format],t);else{const n=this.compileEncoding(e.encoding);a.setEntryLocation("Encoding",[t.length],t),t.add(n)}const u=this.compileCharset(e.charset,e.charStrings.count,e.strings,e.isCIDFont);a.setEntryLocation("charset",[t.length],t),t.add(u);const d=this.compileCharStrings(e.charStrings);if(a.setEntryLocation("CharStrings",[t.length],t),t.add(d),e.isCIDFont){a.setEntryLocation("FDSelect",[t.length],t);const n=this.compileFDSelect(e.fdSelect);t.add(n),s=this.compileTopDicts(e.fdArray,t.length,!0),a.setEntryLocation("FDArray",[t.length],t),t.add(s.output);const r=s.trackers;this.compilePrivateDicts(e.fdArray,r,t)}return this.compilePrivateDicts([e.topDict],[a],t),t.add([0]),t.data}encodeNumber(e){return Number.isInteger(e)?this.encodeInteger(e):this.encodeFloat(e)}static get EncodeFloatRegExp(){return(0,r.shadow)(this,"EncodeFloatRegExp",/\.(\d*?)(?:9{5,20}|0{5,20})\d{0,2}(?:e(.+)|$)/)}encodeFloat(e){let t=e.toString();const n=E.EncodeFloatRegExp.exec(t);if(n){const r=parseFloat("1e"+((n[2]?+n[2]:0)+n[1].length));t=(Math.round(e*r)/r).toString()}let r,i,o="";for(r=0,i=t.length;r<i;++r){const e=t[r];o+="e"===e?"-"===t[++r]?"c":"b":"."===e?"a":"-"===e?"e":e}o+=1&o.length?"f":"ff";const s=[30];for(r=0,i=o.length;r<i;r+=2)s.push(parseInt(o.substring(r,r+2),16));return s}encodeInteger(e){let t;return t=e>=-107&&e<=107?[e+139]:e>=108&&e<=1131?[247+((e-=108)>>8),255&e]:e>=-1131&&e<=-108?[251+((e=-e-108)>>8),255&e]:e>=-32768&&e<=32767?[28,e>>8&255,255&e]:[29,e>>24&255,e>>16&255,e>>8&255,255&e],t}compileHeader(e){return[e.major,e.minor,4,e.offSize]}compileNameIndex(e){const t=new p;for(const n of e){const e=Math.min(n.length,127);let i=new Array(e);for(let t=0;t<e;t++){let e=n[t];(e<"!"||e>"~"||"["===e||"]"===e||"("===e||")"===e||"{"===e||"}"===e||"<"===e||">"===e||"/"===e||"%"===e)&&(e="_"),i[t]=e}i=i.join(""),""===i&&(i="Bad_Font_Name"),t.add((0,r.stringToBytes)(i))}return this.compileIndex(t)}compileTopDicts(e,t,n){const r=[];let i=new p;for(const o of e){n&&(o.removeByName("CIDFontVersion"),o.removeByName("CIDFontRevision"),o.removeByName("CIDFontType"),o.removeByName("CIDCount"),o.removeByName("UIDBase"));const e=new w,s=this.compileDict(o,e);r.push(e),i.add(s),e.offset(t)}return i=this.compileIndex(i,r),{trackers:r,output:i}}compilePrivateDicts(e,t,n){for(let i=0,o=e.length;i<o;++i){const o=e[i],s=o.privateDict;if(!s||!o.hasName("Private"))throw new r.FormatError("There must be a private dictionary.");const a=new w,l=this.compileDict(s,a);let c=n.length;if(a.offset(c),l.length||(c=0),t[i].setEntryLocation("Private",[l.length,c],n),n.add(l),s.subrsIndex&&s.hasName("Subrs")){const e=this.compileIndex(s.subrsIndex);a.setEntryLocation("Subrs",[l.length],n),n.add(e)}}}compileDict(e,t){const n=[];for(const i of e.order){if(!(i in e.values))continue;let o=e.values[i],s=e.types[i];if(Array.isArray(s)||(s=[s]),Array.isArray(o)||(o=[o]),0!==o.length){for(let a=0,l=s.length;a<l;++a){const l=s[a],c=o[a];switch(l){case"num":case"sid":n.push(...this.encodeNumber(c));break;case"offset":const s=e.keyToNameMap[i];t.isTracking(s)||t.track(s,n.length),n.push(29,0,0,0,0);break;case"array":case"delta":n.push(...this.encodeNumber(c));for(let e=1,t=o.length;e<t;++e)n.push(...this.encodeNumber(o[e]));break;default:throw new r.FormatError("Unknown data type of ".concat(l))}}n.push(...e.opcodes[i])}}return n}compileStringIndex(e){const t=new p;for(const n of e)t.add((0,r.stringToBytes)(n));return this.compileIndex(t)}compileGlobalSubrIndex(){const e=this.cff.globalSubrIndex;this.out.writeByteArray(this.compileIndex(e))}compileCharStrings(e){const t=new p;for(let n=0;n<e.count;n++){const r=e.get(n);0!==r.length?t.add(r):t.add(new Uint8Array([139,14]))}return this.compileIndex(t)}compileCharset(e,t,n,i){let o;const s=t-1;if(i)o=new Uint8Array([2,0,0,s>>8&255,255&s]);else{o=new Uint8Array(1+2*s),o[0]=0;let t=0;const i=e.charset.length;let a=!1;for(let s=1;s<o.length;s+=2){let l=0;if(t<i){const i=e.charset[t++];l=n.getSID(i),-1===l&&(l=0,a||(a=!0,(0,r.warn)("Couldn't find ".concat(i," in CFF strings"))))}o[s]=l>>8&255,o[s+1]=255&l}}return this.compileTypedArray(o)}compileEncoding(e){return this.compileTypedArray(e.raw)}compileFDSelect(e){const t=e.format;let n,r;switch(t){case 0:for(n=new Uint8Array(1+e.fdSelect.length),n[0]=t,r=0;r<e.fdSelect.length;r++)n[r+1]=e.fdSelect[r];break;case 3:const i=0;let o=e.fdSelect[0];const s=[t,0,0,i>>8&255,255&i,o];for(r=1;r<e.fdSelect.length;r++){const t=e.fdSelect[r];t!==o&&(s.push(r>>8&255,255&r,t),o=t)}const a=(s.length-3)/3;s[1]=a>>8&255,s[2]=255&a,s.push(r>>8&255,255&r),n=new Uint8Array(s)}return this.compileTypedArray(n)}compileTypedArray(e){const t=[];for(let n=0,r=e.length;n<r;++n)t[n]=e[n];return t}compileIndex(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];const n=e.objects,r=n.length;if(0===r)return[0,0];const i=[r>>8&255,255&r];let o,s,a=1;for(o=0;o<r;++o)a+=n[o].length;s=a<256?1:a<65536?2:a<16777216?3:4,i.push(s);let l=1;for(o=0;o<r+1;o++)1===s?i.push(255&l):2===s?i.push(l>>8&255,255&l):3===s?i.push(l>>16&255,l>>8&255,255&l):i.push(l>>>24&255,l>>16&255,l>>8&255,255&l),n[o]&&(l+=n[o].length);for(o=0;o<r;o++)t[o]&&t[o].offset(i.length),i.push(...n[o]);return i}}t.CFFCompiler=E},(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.ISOAdobeCharset=t.ExpertSubsetCharset=t.ExpertCharset=void 0,t.ISOAdobeCharset=[".notdef","space","exclam","quotedbl","numbersign","dollar","percent","ampersand","quoteright","parenleft","parenright","asterisk","plus","comma","hyphen","period","slash","zero","one","two","three","four","five","six","seven","eight","nine","colon","semicolon","less","equal","greater","question","at","A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z","bracketleft","backslash","bracketright","asciicircum","underscore","quoteleft","a","b","c","d","e","f","g","h","i","j","k","l","m","n","o","p","q","r","s","t","u","v","w","x","y","z","braceleft","bar","braceright","asciitilde","exclamdown","cent","sterling","fraction","yen","florin","section","currency","quotesingle","quotedblleft","guillemotleft","guilsinglleft","guilsinglright","fi","fl","endash","dagger","daggerdbl","periodcentered","paragraph","bullet","quotesinglbase","quotedblbase","quotedblright","guillemotright","ellipsis","perthousand","questiondown","grave","acute","circumflex","tilde","macron","breve","dotaccent","dieresis","ring","cedilla","hungarumlaut","ogonek","caron","emdash","AE","ordfeminine","Lslash","Oslash","OE","ordmasculine","ae","dotlessi","lslash","oslash","oe","germandbls","onesuperior","logicalnot","mu","trademark","Eth","onehalf","plusminus","Thorn","onequarter","divide","brokenbar","degree","thorn","threequarters","twosuperior","registered","minus","eth","multiply","threesuperior","copyright","Aacute","Acircumflex","Adieresis","Agrave","Aring","Atilde","Ccedilla","Eacute","Ecircumflex","Edieresis","Egrave","Iacute","Icircumflex","Idieresis","Igrave","Ntilde","Oacute","Ocircumflex","Odieresis","Ograve","Otilde","Scaron","Uacute","Ucircumflex","Udieresis","Ugrave","Yacute","Ydieresis","Zcaron","aacute","acircumflex","adieresis","agrave","aring","atilde","ccedilla","eacute","ecircumflex","edieresis","egrave","iacute","icircumflex","idieresis","igrave","ntilde","oacute","ocircumflex","odieresis","ograve","otilde","scaron","uacute","ucircumflex","udieresis","ugrave","yacute","ydieresis","zcaron"],t.ExpertCharset=[".notdef","space","exclamsmall","Hungarumlautsmall","dollaroldstyle","dollarsuperior","ampersandsmall","Acutesmall","parenleftsuperior","parenrightsuperior","twodotenleader","onedotenleader","comma","hyphen","period","fraction","zerooldstyle","oneoldstyle","twooldstyle","threeoldstyle","fouroldstyle","fiveoldstyle","sixoldstyle","sevenoldstyle","eightoldstyle","nineoldstyle","colon","semicolon","commasuperior","threequartersemdash","periodsuperior","questionsmall","asuperior","bsuperior","centsuperior","dsuperior","esuperior","isuperior","lsuperior","msuperior","nsuperior","osuperior","rsuperior","ssuperior","tsuperior","ff","fi","fl","ffi","ffl","parenleftinferior","parenrightinferior","Circumflexsmall","hyphensuperior","Gravesmall","Asmall","Bsmall","Csmall","Dsmall","Esmall","Fsmall","Gsmall","Hsmall","Ismall","Jsmall","Ksmall","Lsmall","Msmall","Nsmall","Osmall","Psmall","Qsmall","Rsmall","Ssmall","Tsmall","Usmall","Vsmall","Wsmall","Xsmall","Ysmall","Zsmall","colonmonetary","onefitted","rupiah","Tildesmall","exclamdownsmall","centoldstyle","Lslashsmall","Scaronsmall","Zcaronsmall","Dieresissmall","Brevesmall","Caronsmall","Dotaccentsmall","Macronsmall","figuredash","hypheninferior","Ogoneksmall","Ringsmall","Cedillasmall","onequarter","onehalf","threequarters","questiondownsmall","oneeighth","threeeighths","fiveeighths","seveneighths","onethird","twothirds","zerosuperior","onesuperior","twosuperior","threesuperior","foursuperior","fivesuperior","sixsuperior","sevensuperior","eightsuperior","ninesuperior","zeroinferior","oneinferior","twoinferior","threeinferior","fourinferior","fiveinferior","sixinferior","seveninferior","eightinferior","nineinferior","centinferior","dollarinferior","periodinferior","commainferior","Agravesmall","Aacutesmall","Acircumflexsmall","Atildesmall","Adieresissmall","Aringsmall","AEsmall","Ccedillasmall","Egravesmall","Eacutesmall","Ecircumflexsmall","Edieresissmall","Igravesmall","Iacutesmall","Icircumflexsmall","Idieresissmall","Ethsmall","Ntildesmall","Ogravesmall","Oacutesmall","Ocircumflexsmall","Otildesmall","Odieresissmall","OEsmall","Oslashsmall","Ugravesmall","Uacutesmall","Ucircumflexsmall","Udieresissmall","Yacutesmall","Thornsmall","Ydieresissmall"],t.ExpertSubsetCharset=[".notdef","space","dollaroldstyle","dollarsuperior","parenleftsuperior","parenrightsuperior","twodotenleader","onedotenleader","comma","hyphen","period","fraction","zerooldstyle","oneoldstyle","twooldstyle","threeoldstyle","fouroldstyle","fiveoldstyle","sixoldstyle","sevenoldstyle","eightoldstyle","nineoldstyle","colon","semicolon","commasuperior","threequartersemdash","periodsuperior","asuperior","bsuperior","centsuperior","dsuperior","esuperior","isuperior","lsuperior","msuperior","nsuperior","osuperior","rsuperior","ssuperior","tsuperior","ff","fi","fl","ffi","ffl","parenleftinferior","parenrightinferior","hyphensuperior","colonmonetary","onefitted","rupiah","centoldstyle","figuredash","hypheninferior","onequarter","onehalf","threequarters","oneeighth","threeeighths","fiveeighths","seveneighths","onethird","twothirds","zerosuperior","onesuperior","twosuperior","threesuperior","foursuperior","fivesuperior","sixsuperior","sevensuperior","eightsuperior","ninesuperior","zeroinferior","oneinferior","twoinferior","threeinferior","fourinferior","fiveinferior","sixinferior","seveninferior","eightinferior","nineinferior","centinferior","dollarinferior","periodinferior","commainferior"]},(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.ZapfDingbatsEncoding=t.WinAnsiEncoding=t.SymbolSetEncoding=t.StandardEncoding=t.MacRomanEncoding=t.ExpertEncoding=void 0,t.getEncoding=function(e){switch(e){case"WinAnsiEncoding":return s;case"StandardEncoding":return o;case"MacRomanEncoding":return i;case"SymbolSetEncoding":return a;case"ZapfDingbatsEncoding":return l;case"ExpertEncoding":return n;case"MacExpertEncoding":return r;default:return null}};const n=["","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","space","exclamsmall","Hungarumlautsmall","","dollaroldstyle","dollarsuperior","ampersandsmall","Acutesmall","parenleftsuperior","parenrightsuperior","twodotenleader","onedotenleader","comma","hyphen","period","fraction","zerooldstyle","oneoldstyle","twooldstyle","threeoldstyle","fouroldstyle","fiveoldstyle","sixoldstyle","sevenoldstyle","eightoldstyle","nineoldstyle","colon","semicolon","commasuperior","threequartersemdash","periodsuperior","questionsmall","","asuperior","bsuperior","centsuperior","dsuperior","esuperior","","","","isuperior","","","lsuperior","msuperior","nsuperior","osuperior","","","rsuperior","ssuperior","tsuperior","","ff","fi","fl","ffi","ffl","parenleftinferior","","parenrightinferior","Circumflexsmall","hyphensuperior","Gravesmall","Asmall","Bsmall","Csmall","Dsmall","Esmall","Fsmall","Gsmall","Hsmall","Ismall","Jsmall","Ksmall","Lsmall","Msmall","Nsmall","Osmall","Psmall","Qsmall","Rsmall","Ssmall","Tsmall","Usmall","Vsmall","Wsmall","Xsmall","Ysmall","Zsmall","colonmonetary","onefitted","rupiah","Tildesmall","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","exclamdownsmall","centoldstyle","Lslashsmall","","","Scaronsmall","Zcaronsmall","Dieresissmall","Brevesmall","Caronsmall","","Dotaccentsmall","","","Macronsmall","","","figuredash","hypheninferior","","","Ogoneksmall","Ringsmall","Cedillasmall","","","","onequarter","onehalf","threequarters","questiondownsmall","oneeighth","threeeighths","fiveeighths","seveneighths","onethird","twothirds","","","zerosuperior","onesuperior","twosuperior","threesuperior","foursuperior","fivesuperior","sixsuperior","sevensuperior","eightsuperior","ninesuperior","zeroinferior","oneinferior","twoinferior","threeinferior","fourinferior","fiveinferior","sixinferior","seveninferior","eightinferior","nineinferior","centinferior","dollarinferior","periodinferior","commainferior","Agravesmall","Aacutesmall","Acircumflexsmall","Atildesmall","Adieresissmall","Aringsmall","AEsmall","Ccedillasmall","Egravesmall","Eacutesmall","Ecircumflexsmall","Edieresissmall","Igravesmall","Iacutesmall","Icircumflexsmall","Idieresissmall","Ethsmall","Ntildesmall","Ogravesmall","Oacutesmall","Ocircumflexsmall","Otildesmall","Odieresissmall","OEsmall","Oslashsmall","Ugravesmall","Uacutesmall","Ucircumflexsmall","Udieresissmall","Yacutesmall","Thornsmall","Ydieresissmall"];t.ExpertEncoding=n;const r=["","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","space","exclamsmall","Hungarumlautsmall","centoldstyle","dollaroldstyle","dollarsuperior","ampersandsmall","Acutesmall","parenleftsuperior","parenrightsuperior","twodotenleader","onedotenleader","comma","hyphen","period","fraction","zerooldstyle","oneoldstyle","twooldstyle","threeoldstyle","fouroldstyle","fiveoldstyle","sixoldstyle","sevenoldstyle","eightoldstyle","nineoldstyle","colon","semicolon","","threequartersemdash","","questionsmall","","","","","Ethsmall","","","onequarter","onehalf","threequarters","oneeighth","threeeighths","fiveeighths","seveneighths","onethird","twothirds","","","","","","","ff","fi","fl","ffi","ffl","parenleftinferior","","parenrightinferior","Circumflexsmall","hypheninferior","Gravesmall","Asmall","Bsmall","Csmall","Dsmall","Esmall","Fsmall","Gsmall","Hsmall","Ismall","Jsmall","Ksmall","Lsmall","Msmall","Nsmall","Osmall","Psmall","Qsmall","Rsmall","Ssmall","Tsmall","Usmall","Vsmall","Wsmall","Xsmall","Ysmall","Zsmall","colonmonetary","onefitted","rupiah","Tildesmall","","","asuperior","centsuperior","","","","","Aacutesmall","Agravesmall","Acircumflexsmall","Adieresissmall","Atildesmall","Aringsmall","Ccedillasmall","Eacutesmall","Egravesmall","Ecircumflexsmall","Edieresissmall","Iacutesmall","Igravesmall","Icircumflexsmall","Idieresissmall","Ntildesmall","Oacutesmall","Ogravesmall","Ocircumflexsmall","Odieresissmall","Otildesmall","Uacutesmall","Ugravesmall","Ucircumflexsmall","Udieresissmall","","eightsuperior","fourinferior","threeinferior","sixinferior","eightinferior","seveninferior","Scaronsmall","","centinferior","twoinferior","","Dieresissmall","","Caronsmall","osuperior","fiveinferior","","commainferior","periodinferior","Yacutesmall","","dollarinferior","","","Thornsmall","","nineinferior","zeroinferior","Zcaronsmall","AEsmall","Oslashsmall","questiondownsmall","oneinferior","Lslashsmall","","","","","","","Cedillasmall","","","","","","OEsmall","figuredash","hyphensuperior","","","","","exclamdownsmall","","Ydieresissmall","","onesuperior","twosuperior","threesuperior","foursuperior","fivesuperior","sixsuperior","sevensuperior","ninesuperior","zerosuperior","","esuperior","rsuperior","tsuperior","","","isuperior","ssuperior","dsuperior","","","","","","lsuperior","Ogoneksmall","Brevesmall","Macronsmall","bsuperior","nsuperior","msuperior","commasuperior","periodsuperior","Dotaccentsmall","Ringsmall","","","",""],i=["","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","space","exclam","quotedbl","numbersign","dollar","percent","ampersand","quotesingle","parenleft","parenright","asterisk","plus","comma","hyphen","period","slash","zero","one","two","three","four","five","six","seven","eight","nine","colon","semicolon","less","equal","greater","question","at","A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z","bracketleft","backslash","bracketright","asciicircum","underscore","grave","a","b","c","d","e","f","g","h","i","j","k","l","m","n","o","p","q","r","s","t","u","v","w","x","y","z","braceleft","bar","braceright","asciitilde","","Adieresis","Aring","Ccedilla","Eacute","Ntilde","Odieresis","Udieresis","aacute","agrave","acircumflex","adieresis","atilde","aring","ccedilla","eacute","egrave","ecircumflex","edieresis","iacute","igrave","icircumflex","idieresis","ntilde","oacute","ograve","ocircumflex","odieresis","otilde","uacute","ugrave","ucircumflex","udieresis","dagger","degree","cent","sterling","section","bullet","paragraph","germandbls","registered","copyright","trademark","acute","dieresis","notequal","AE","Oslash","infinity","plusminus","lessequal","greaterequal","yen","mu","partialdiff","summation","product","pi","integral","ordfeminine","ordmasculine","Omega","ae","oslash","questiondown","exclamdown","logicalnot","radical","florin","approxequal","Delta","guillemotleft","guillemotright","ellipsis","space","Agrave","Atilde","Otilde","OE","oe","endash","emdash","quotedblleft","quotedblright","quoteleft","quoteright","divide","lozenge","ydieresis","Ydieresis","fraction","currency","guilsinglleft","guilsinglright","fi","fl","daggerdbl","periodcentered","quotesinglbase","quotedblbase","perthousand","Acircumflex","Ecircumflex","Aacute","Edieresis","Egrave","Iacute","Icircumflex","Idieresis","Igrave","Oacute","Ocircumflex","apple","Ograve","Uacute","Ucircumflex","Ugrave","dotlessi","circumflex","tilde","macron","breve","dotaccent","ring","cedilla","hungarumlaut","ogonek","caron"];t.MacRomanEncoding=i;const o=["","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","space","exclam","quotedbl","numbersign","dollar","percent","ampersand","quoteright","parenleft","parenright","asterisk","plus","comma","hyphen","period","slash","zero","one","two","three","four","five","six","seven","eight","nine","colon","semicolon","less","equal","greater","question","at","A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z","bracketleft","backslash","bracketright","asciicircum","underscore","quoteleft","a","b","c","d","e","f","g","h","i","j","k","l","m","n","o","p","q","r","s","t","u","v","w","x","y","z","braceleft","bar","braceright","asciitilde","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","exclamdown","cent","sterling","fraction","yen","florin","section","currency","quotesingle","quotedblleft","guillemotleft","guilsinglleft","guilsinglright","fi","fl","","endash","dagger","daggerdbl","periodcentered","","paragraph","bullet","quotesinglbase","quotedblbase","quotedblright","guillemotright","ellipsis","perthousand","","questiondown","","grave","acute","circumflex","tilde","macron","breve","dotaccent","dieresis","","ring","cedilla","","hungarumlaut","ogonek","caron","emdash","","","","","","","","","","","","","","","","","AE","","ordfeminine","","","","","Lslash","Oslash","OE","ordmasculine","","","","","","ae","","","","dotlessi","","","lslash","oslash","oe","germandbls","","","",""];t.StandardEncoding=o;const s=["","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","space","exclam","quotedbl","numbersign","dollar","percent","ampersand","quotesingle","parenleft","parenright","asterisk","plus","comma","hyphen","period","slash","zero","one","two","three","four","five","six","seven","eight","nine","colon","semicolon","less","equal","greater","question","at","A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z","bracketleft","backslash","bracketright","asciicircum","underscore","grave","a","b","c","d","e","f","g","h","i","j","k","l","m","n","o","p","q","r","s","t","u","v","w","x","y","z","braceleft","bar","braceright","asciitilde","bullet","Euro","bullet","quotesinglbase","florin","quotedblbase","ellipsis","dagger","daggerdbl","circumflex","perthousand","Scaron","guilsinglleft","OE","bullet","Zcaron","bullet","bullet","quoteleft","quoteright","quotedblleft","quotedblright","bullet","endash","emdash","tilde","trademark","scaron","guilsinglright","oe","bullet","zcaron","Ydieresis","space","exclamdown","cent","sterling","currency","yen","brokenbar","section","dieresis","copyright","ordfeminine","guillemotleft","logicalnot","hyphen","registered","macron","degree","plusminus","twosuperior","threesuperior","acute","mu","paragraph","periodcentered","cedilla","onesuperior","ordmasculine","guillemotright","onequarter","onehalf","threequarters","questiondown","Agrave","Aacute","Acircumflex","Atilde","Adieresis","Aring","AE","Ccedilla","Egrave","Eacute","Ecircumflex","Edieresis","Igrave","Iacute","Icircumflex","Idieresis","Eth","Ntilde","Ograve","Oacute","Ocircumflex","Otilde","Odieresis","multiply","Oslash","Ugrave","Uacute","Ucircumflex","Udieresis","Yacute","Thorn","germandbls","agrave","aacute","acircumflex","atilde","adieresis","aring","ae","ccedilla","egrave","eacute","ecircumflex","edieresis","igrave","iacute","icircumflex","idieresis","eth","ntilde","ograve","oacute","ocircumflex","otilde","odieresis","divide","oslash","ugrave","uacute","ucircumflex","udieresis","yacute","thorn","ydieresis"];t.WinAnsiEncoding=s;const a=["","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","space","exclam","universal","numbersign","existential","percent","ampersand","suchthat","parenleft","parenright","asteriskmath","plus","comma","minus","period","slash","zero","one","two","three","four","five","six","seven","eight","nine","colon","semicolon","less","equal","greater","question","congruent","Alpha","Beta","Chi","Delta","Epsilon","Phi","Gamma","Eta","Iota","theta1","Kappa","Lambda","Mu","Nu","Omicron","Pi","Theta","Rho","Sigma","Tau","Upsilon","sigma1","Omega","Xi","Psi","Zeta","bracketleft","therefore","bracketright","perpendicular","underscore","radicalex","alpha","beta","chi","delta","epsilon","phi","gamma","eta","iota","phi1","kappa","lambda","mu","nu","omicron","pi","theta","rho","sigma","tau","upsilon","omega1","omega","xi","psi","zeta","braceleft","bar","braceright","similar","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","Euro","Upsilon1","minute","lessequal","fraction","infinity","florin","club","diamond","heart","spade","arrowboth","arrowleft","arrowup","arrowright","arrowdown","degree","plusminus","second","greaterequal","multiply","proportional","partialdiff","bullet","divide","notequal","equivalence","approxequal","ellipsis","arrowvertex","arrowhorizex","carriagereturn","aleph","Ifraktur","Rfraktur","weierstrass","circlemultiply","circleplus","emptyset","intersection","union","propersuperset","reflexsuperset","notsubset","propersubset","reflexsubset","element","notelement","angle","gradient","registerserif","copyrightserif","trademarkserif","product","radical","dotmath","logicalnot","logicaland","logicalor","arrowdblboth","arrowdblleft","arrowdblup","arrowdblright","arrowdbldown","lozenge","angleleft","registersans","copyrightsans","trademarksans","summation","parenlefttp","parenleftex","parenleftbt","bracketlefttp","bracketleftex","bracketleftbt","bracelefttp","braceleftmid","braceleftbt","braceex","","angleright","integral","integraltp","integralex","integralbt","parenrighttp","parenrightex","parenrightbt","bracketrighttp","bracketrightex","bracketrightbt","bracerighttp","bracerightmid","bracerightbt",""];t.SymbolSetEncoding=a;const l=["","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","space","a1","a2","a202","a3","a4","a5","a119","a118","a117","a11","a12","a13","a14","a15","a16","a105","a17","a18","a19","a20","a21","a22","a23","a24","a25","a26","a27","a28","a6","a7","a8","a9","a10","a29","a30","a31","a32","a33","a34","a35","a36","a37","a38","a39","a40","a41","a42","a43","a44","a45","a46","a47","a48","a49","a50","a51","a52","a53","a54","a55","a56","a57","a58","a59","a60","a61","a62","a63","a64","a65","a66","a67","a68","a69","a70","a71","a72","a73","a74","a203","a75","a204","a76","a77","a78","a79","a81","a82","a83","a84","a97","a98","a99","a100","","a89","a90","a93","a94","a91","a92","a205","a85","a206","a86","a87","a88","a95","a96","","","","","","","","","","","","","","","","","","","","a101","a102","a103","a104","a106","a107","a108","a112","a111","a110","a109","a120","a121","a122","a123","a124","a125","a126","a127","a128","a129","a130","a131","a132","a133","a134","a135","a136","a137","a138","a139","a140","a141","a142","a143","a144","a145","a146","a147","a148","a149","a150","a151","a152","a153","a154","a155","a156","a157","a158","a159","a160","a161","a163","a164","a196","a165","a192","a166","a167","a168","a169","a170","a171","a172","a173","a162","a174","a175","a176","a177","a178","a179","a193","a180","a199","a181","a200","a182","","a201","a183","a184","a197","a185","a194","a198","a186","a195","a187","a188","a189","a190","a191",""];t.ZapfDingbatsEncoding=l},(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.SEAC_ANALYSIS_ENABLED=t.MacStandardGlyphOrdering=t.FontFlags=void 0,t.normalizeFontName=function(e){return e.replace(/[,_]/g,"-").replace(/\s/g,"")},t.recoverGlyphName=l,t.type1FontGlyphMapping=function(e,t,n){const o=Object.create(null);let s,c,u;const d=!!(e.flags&a.Symbolic);if(e.isInternalFont)for(u=t,c=0;c<u.length;c++)s=n.indexOf(u[c]),o[c]=s>=0?s:0;else if(e.baseEncodingName)for(u=(0,r.getEncoding)(e.baseEncodingName),c=0;c<u.length;c++)s=n.indexOf(u[c]),o[c]=s>=0?s:0;else if(d)for(c in t)o[c]=t[c];else for(u=r.StandardEncoding,c=0;c<u.length;c++)s=n.indexOf(u[c]),o[c]=s>=0?s:0;const h=e.differences;let p;if(h)for(c in h){const e=h[c];if(s=n.indexOf(e),-1===s){p||(p=(0,i.getGlyphsUnicode)());const t=l(e,p);t!==e&&(s=n.indexOf(t))}o[c]=s>=0?s:0}return o};var r=n(35),i=n(37),o=n(38),s=n(2);t.SEAC_ANALYSIS_ENABLED=!0;const a={FixedPitch:1,Serif:2,Symbolic:4,Script:8,Nonsymbolic:32,Italic:64,AllCap:65536,SmallCap:131072,ForceBold:262144};function l(e,t){if(void 0!==t[e])return e;const n=(0,o.getUnicodeForGlyph)(e,t);if(-1!==n)for(const r in t)if(t[r]===n)return r;return(0,s.info)("Unable to recover a standard glyph name for: "+e),e}t.FontFlags=a,t.MacStandardGlyphOrdering=[".notdef",".null","nonmarkingreturn","space","exclam","quotedbl","numbersign","dollar","percent","ampersand","quotesingle","parenleft","parenright","asterisk","plus","comma","hyphen","period","slash","zero","one","two","three","four","five","six","seven","eight","nine","colon","semicolon","less","equal","greater","question","at","A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z","bracketleft","backslash","bracketright","asciicircum","underscore","grave","a","b","c","d","e","f","g","h","i","j","k","l","m","n","o","p","q","r","s","t","u","v","w","x","y","z","braceleft","bar","braceright","asciitilde","Adieresis","Aring","Ccedilla","Eacute","Ntilde","Odieresis","Udieresis","aacute","agrave","acircumflex","adieresis","atilde","aring","ccedilla","eacute","egrave","ecircumflex","edieresis","iacute","igrave","icircumflex","idieresis","ntilde","oacute","ograve","ocircumflex","odieresis","otilde","uacute","ugrave","ucircumflex","udieresis","dagger","degree","cent","sterling","section","bullet","paragraph","germandbls","registered","copyright","trademark","acute","dieresis","notequal","AE","Oslash","infinity","plusminus","lessequal","greaterequal","yen","mu","partialdiff","summation","product","pi","integral","ordfeminine","ordmasculine","Omega","ae","oslash","questiondown","exclamdown","logicalnot","radical","florin","approxequal","Delta","guillemotleft","guillemotright","ellipsis","nonbreakingspace","Agrave","Atilde","Otilde","OE","oe","endash","emdash","quotedblleft","quotedblright","quoteleft","quoteright","divide","lozenge","ydieresis","Ydieresis","fraction","currency","guilsinglleft","guilsinglright","fi","fl","daggerdbl","periodcentered","quotesinglbase","quotedblbase","perthousand","Acircumflex","Ecircumflex","Aacute","Edieresis","Egrave","Iacute","Icircumflex","Idieresis","Igrave","Oacute","Ocircumflex","apple","Ograve","Uacute","Ucircumflex","Ugrave","dotlessi","circumflex","tilde","macron","breve","dotaccent","ring","cedilla","hungarumlaut","ogonek","caron","Lslash","lslash","Scaron","scaron","Zcaron","zcaron","brokenbar","Eth","eth","Yacute","yacute","Thorn","thorn","minus","multiply","onesuperior","twosuperior","threesuperior","onehalf","onequarter","threequarters","franc","Gbreve","gbreve","Idotaccent","Scedilla","scedilla","Cacute","cacute","Ccaron","ccaron","dcroat"]},(e,t,n)=>{n.r(t),n.d(t,{getDingbatsGlyphsUnicode:()=>o,getGlyphsUnicode:()=>i});var r=n(4);const i=(0,r.getArrayLookupTableFactory)((function(){return["A",65,"AE",198,"AEacute",508,"AEmacron",482,"AEsmall",63462,"Aacute",193,"Aacutesmall",63457,"Abreve",258,"Abreveacute",7854,"Abrevecyrillic",1232,"Abrevedotbelow",7862,"Abrevegrave",7856,"Abrevehookabove",7858,"Abrevetilde",7860,"Acaron",461,"Acircle",9398,"Acircumflex",194,"Acircumflexacute",7844,"Acircumflexdotbelow",7852,"Acircumflexgrave",7846,"Acircumflexhookabove",7848,"Acircumflexsmall",63458,"Acircumflextilde",7850,"Acute",63177,"Acutesmall",63412,"Acyrillic",1040,"Adblgrave",512,"Adieresis",196,"Adieresiscyrillic",1234,"Adieresismacron",478,"Adieresissmall",63460,"Adotbelow",7840,"Adotmacron",480,"Agrave",192,"Agravesmall",63456,"Ahookabove",7842,"Aiecyrillic",1236,"Ainvertedbreve",514,"Alpha",913,"Alphatonos",902,"Amacron",256,"Amonospace",65313,"Aogonek",260,"Aring",197,"Aringacute",506,"Aringbelow",7680,"Aringsmall",63461,"Asmall",63329,"Atilde",195,"Atildesmall",63459,"Aybarmenian",1329,"B",66,"Bcircle",9399,"Bdotaccent",7682,"Bdotbelow",7684,"Becyrillic",1041,"Benarmenian",1330,"Beta",914,"Bhook",385,"Blinebelow",7686,"Bmonospace",65314,"Brevesmall",63220,"Bsmall",63330,"Btopbar",386,"C",67,"Caarmenian",1342,"Cacute",262,"Caron",63178,"Caronsmall",63221,"Ccaron",268,"Ccedilla",199,"Ccedillaacute",7688,"Ccedillasmall",63463,"Ccircle",9400,"Ccircumflex",264,"Cdot",266,"Cdotaccent",266,"Cedillasmall",63416,"Chaarmenian",1353,"Cheabkhasiancyrillic",1212,"Checyrillic",1063,"Chedescenderabkhasiancyrillic",1214,"Chedescendercyrillic",1206,"Chedieresiscyrillic",1268,"Cheharmenian",1347,"Chekhakassiancyrillic",1227,"Cheverticalstrokecyrillic",1208,"Chi",935,"Chook",391,"Circumflexsmall",63222,"Cmonospace",65315,"Coarmenian",1361,"Csmall",63331,"D",68,"DZ",497,"DZcaron",452,"Daarmenian",1332,"Dafrican",393,"Dcaron",270,"Dcedilla",7696,"Dcircle",9401,"Dcircumflexbelow",7698,"Dcroat",272,"Ddotaccent",7690,"Ddotbelow",7692,"Decyrillic",1044,"Deicoptic",1006,"Delta",8710,"Deltagreek",916,"Dhook",394,"Dieresis",63179,"DieresisAcute",63180,"DieresisGrave",63181,"Dieresissmall",63400,"Digammagreek",988,"Djecyrillic",1026,"Dlinebelow",7694,"Dmonospace",65316,"Dotaccentsmall",63223,"Dslash",272,"Dsmall",63332,"Dtopbar",395,"Dz",498,"Dzcaron",453,"Dzeabkhasiancyrillic",1248,"Dzecyrillic",1029,"Dzhecyrillic",1039,"E",69,"Eacute",201,"Eacutesmall",63465,"Ebreve",276,"Ecaron",282,"Ecedillabreve",7708,"Echarmenian",1333,"Ecircle",9402,"Ecircumflex",202,"Ecircumflexacute",7870,"Ecircumflexbelow",7704,"Ecircumflexdotbelow",7878,"Ecircumflexgrave",7872,"Ecircumflexhookabove",7874,"Ecircumflexsmall",63466,"Ecircumflextilde",7876,"Ecyrillic",1028,"Edblgrave",516,"Edieresis",203,"Edieresissmall",63467,"Edot",278,"Edotaccent",278,"Edotbelow",7864,"Efcyrillic",1060,"Egrave",200,"Egravesmall",63464,"Eharmenian",1335,"Ehookabove",7866,"Eightroman",8551,"Einvertedbreve",518,"Eiotifiedcyrillic",1124,"Elcyrillic",1051,"Elevenroman",8554,"Emacron",274,"Emacronacute",7702,"Emacrongrave",7700,"Emcyrillic",1052,"Emonospace",65317,"Encyrillic",1053,"Endescendercyrillic",1186,"Eng",330,"Enghecyrillic",1188,"Enhookcyrillic",1223,"Eogonek",280,"Eopen",400,"Epsilon",917,"Epsilontonos",904,"Ercyrillic",1056,"Ereversed",398,"Ereversedcyrillic",1069,"Escyrillic",1057,"Esdescendercyrillic",1194,"Esh",425,"Esmall",63333,"Eta",919,"Etarmenian",1336,"Etatonos",905,"Eth",208,"Ethsmall",63472,"Etilde",7868,"Etildebelow",7706,"Euro",8364,"Ezh",439,"Ezhcaron",494,"Ezhreversed",440,"F",70,"Fcircle",9403,"Fdotaccent",7710,"Feharmenian",1366,"Feicoptic",996,"Fhook",401,"Fitacyrillic",1138,"Fiveroman",8548,"Fmonospace",65318,"Fourroman",8547,"Fsmall",63334,"G",71,"GBsquare",13191,"Gacute",500,"Gamma",915,"Gammaafrican",404,"Gangiacoptic",1002,"Gbreve",286,"Gcaron",486,"Gcedilla",290,"Gcircle",9404,"Gcircumflex",284,"Gcommaaccent",290,"Gdot",288,"Gdotaccent",288,"Gecyrillic",1043,"Ghadarmenian",1346,"Ghemiddlehookcyrillic",1172,"Ghestrokecyrillic",1170,"Gheupturncyrillic",1168,"Ghook",403,"Gimarmenian",1331,"Gjecyrillic",1027,"Gmacron",7712,"Gmonospace",65319,"Grave",63182,"Gravesmall",63328,"Gsmall",63335,"Gsmallhook",667,"Gstroke",484,"H",72,"H18533",9679,"H18543",9642,"H18551",9643,"H22073",9633,"HPsquare",13259,"Haabkhasiancyrillic",1192,"Hadescendercyrillic",1202,"Hardsigncyrillic",1066,"Hbar",294,"Hbrevebelow",7722,"Hcedilla",7720,"Hcircle",9405,"Hcircumflex",292,"Hdieresis",7718,"Hdotaccent",7714,"Hdotbelow",7716,"Hmonospace",65320,"Hoarmenian",1344,"Horicoptic",1e3,"Hsmall",63336,"Hungarumlaut",63183,"Hungarumlautsmall",63224,"Hzsquare",13200,"I",73,"IAcyrillic",1071,"IJ",306,"IUcyrillic",1070,"Iacute",205,"Iacutesmall",63469,"Ibreve",300,"Icaron",463,"Icircle",9406,"Icircumflex",206,"Icircumflexsmall",63470,"Icyrillic",1030,"Idblgrave",520,"Idieresis",207,"Idieresisacute",7726,"Idieresiscyrillic",1252,"Idieresissmall",63471,"Idot",304,"Idotaccent",304,"Idotbelow",7882,"Iebrevecyrillic",1238,"Iecyrillic",1045,"Ifraktur",8465,"Igrave",204,"Igravesmall",63468,"Ihookabove",7880,"Iicyrillic",1048,"Iinvertedbreve",522,"Iishortcyrillic",1049,"Imacron",298,"Imacroncyrillic",1250,"Imonospace",65321,"Iniarmenian",1339,"Iocyrillic",1025,"Iogonek",302,"Iota",921,"Iotaafrican",406,"Iotadieresis",938,"Iotatonos",906,"Ismall",63337,"Istroke",407,"Itilde",296,"Itildebelow",7724,"Izhitsacyrillic",1140,"Izhitsadblgravecyrillic",1142,"J",74,"Jaarmenian",1345,"Jcircle",9407,"Jcircumflex",308,"Jecyrillic",1032,"Jheharmenian",1355,"Jmonospace",65322,"Jsmall",63338,"K",75,"KBsquare",13189,"KKsquare",13261,"Kabashkircyrillic",1184,"Kacute",7728,"Kacyrillic",1050,"Kadescendercyrillic",1178,"Kahookcyrillic",1219,"Kappa",922,"Kastrokecyrillic",1182,"Kaverticalstrokecyrillic",1180,"Kcaron",488,"Kcedilla",310,"Kcircle",9408,"Kcommaaccent",310,"Kdotbelow",7730,"Keharmenian",1364,"Kenarmenian",1343,"Khacyrillic",1061,"Kheicoptic",998,"Khook",408,"Kjecyrillic",1036,"Klinebelow",7732,"Kmonospace",65323,"Koppacyrillic",1152,"Koppagreek",990,"Ksicyrillic",1134,"Ksmall",63339,"L",76,"LJ",455,"LL",63167,"Lacute",313,"Lambda",923,"Lcaron",317,"Lcedilla",315,"Lcircle",9409,"Lcircumflexbelow",7740,"Lcommaaccent",315,"Ldot",319,"Ldotaccent",319,"Ldotbelow",7734,"Ldotbelowmacron",7736,"Liwnarmenian",1340,"Lj",456,"Ljecyrillic",1033,"Llinebelow",7738,"Lmonospace",65324,"Lslash",321,"Lslashsmall",63225,"Lsmall",63340,"M",77,"MBsquare",13190,"Macron",63184,"Macronsmall",63407,"Macute",7742,"Mcircle",9410,"Mdotaccent",7744,"Mdotbelow",7746,"Menarmenian",1348,"Mmonospace",65325,"Msmall",63341,"Mturned",412,"Mu",924,"N",78,"NJ",458,"Nacute",323,"Ncaron",327,"Ncedilla",325,"Ncircle",9411,"Ncircumflexbelow",7754,"Ncommaaccent",325,"Ndotaccent",7748,"Ndotbelow",7750,"Nhookleft",413,"Nineroman",8552,"Nj",459,"Njecyrillic",1034,"Nlinebelow",7752,"Nmonospace",65326,"Nowarmenian",1350,"Nsmall",63342,"Ntilde",209,"Ntildesmall",63473,"Nu",925,"O",79,"OE",338,"OEsmall",63226,"Oacute",211,"Oacutesmall",63475,"Obarredcyrillic",1256,"Obarreddieresiscyrillic",1258,"Obreve",334,"Ocaron",465,"Ocenteredtilde",415,"Ocircle",9412,"Ocircumflex",212,"Ocircumflexacute",7888,"Ocircumflexdotbelow",7896,"Ocircumflexgrave",7890,"Ocircumflexhookabove",7892,"Ocircumflexsmall",63476,"Ocircumflextilde",7894,"Ocyrillic",1054,"Odblacute",336,"Odblgrave",524,"Odieresis",214,"Odieresiscyrillic",1254,"Odieresissmall",63478,"Odotbelow",7884,"Ogoneksmall",63227,"Ograve",210,"Ogravesmall",63474,"Oharmenian",1365,"Ohm",8486,"Ohookabove",7886,"Ohorn",416,"Ohornacute",7898,"Ohorndotbelow",7906,"Ohorngrave",7900,"Ohornhookabove",7902,"Ohorntilde",7904,"Ohungarumlaut",336,"Oi",418,"Oinvertedbreve",526,"Omacron",332,"Omacronacute",7762,"Omacrongrave",7760,"Omega",8486,"Omegacyrillic",1120,"Omegagreek",937,"Omegaroundcyrillic",1146,"Omegatitlocyrillic",1148,"Omegatonos",911,"Omicron",927,"Omicrontonos",908,"Omonospace",65327,"Oneroman",8544,"Oogonek",490,"Oogonekmacron",492,"Oopen",390,"Oslash",216,"Oslashacute",510,"Oslashsmall",63480,"Osmall",63343,"Ostrokeacute",510,"Otcyrillic",1150,"Otilde",213,"Otildeacute",7756,"Otildedieresis",7758,"Otildesmall",63477,"P",80,"Pacute",7764,"Pcircle",9413,"Pdotaccent",7766,"Pecyrillic",1055,"Peharmenian",1354,"Pemiddlehookcyrillic",1190,"Phi",934,"Phook",420,"Pi",928,"Piwrarmenian",1363,"Pmonospace",65328,"Psi",936,"Psicyrillic",1136,"Psmall",63344,"Q",81,"Qcircle",9414,"Qmonospace",65329,"Qsmall",63345,"R",82,"Raarmenian",1356,"Racute",340,"Rcaron",344,"Rcedilla",342,"Rcircle",9415,"Rcommaaccent",342,"Rdblgrave",528,"Rdotaccent",7768,"Rdotbelow",7770,"Rdotbelowmacron",7772,"Reharmenian",1360,"Rfraktur",8476,"Rho",929,"Ringsmall",63228,"Rinvertedbreve",530,"Rlinebelow",7774,"Rmonospace",65330,"Rsmall",63346,"Rsmallinverted",641,"Rsmallinvertedsuperior",694,"S",83,"SF010000",9484,"SF020000",9492,"SF030000",9488,"SF040000",9496,"SF050000",9532,"SF060000",9516,"SF070000",9524,"SF080000",9500,"SF090000",9508,"SF100000",9472,"SF110000",9474,"SF190000",9569,"SF200000",9570,"SF210000",9558,"SF220000",9557,"SF230000",9571,"SF240000",9553,"SF250000",9559,"SF260000",9565,"SF270000",9564,"SF280000",9563,"SF360000",9566,"SF370000",9567,"SF380000",9562,"SF390000",9556,"SF400000",9577,"SF410000",9574,"SF420000",9568,"SF430000",9552,"SF440000",9580,"SF450000",9575,"SF460000",9576,"SF470000",9572,"SF480000",9573,"SF490000",9561,"SF500000",9560,"SF510000",9554,"SF520000",9555,"SF530000",9579,"SF540000",9578,"Sacute",346,"Sacutedotaccent",7780,"Sampigreek",992,"Scaron",352,"Scarondotaccent",7782,"Scaronsmall",63229,"Scedilla",350,"Schwa",399,"Schwacyrillic",1240,"Schwadieresiscyrillic",1242,"Scircle",9416,"Scircumflex",348,"Scommaaccent",536,"Sdotaccent",7776,"Sdotbelow",7778,"Sdotbelowdotaccent",7784,"Seharmenian",1357,"Sevenroman",8550,"Shaarmenian",1351,"Shacyrillic",1064,"Shchacyrillic",1065,"Sheicoptic",994,"Shhacyrillic",1210,"Shimacoptic",1004,"Sigma",931,"Sixroman",8549,"Smonospace",65331,"Softsigncyrillic",1068,"Ssmall",63347,"Stigmagreek",986,"T",84,"Tau",932,"Tbar",358,"Tcaron",356,"Tcedilla",354,"Tcircle",9417,"Tcircumflexbelow",7792,"Tcommaaccent",354,"Tdotaccent",7786,"Tdotbelow",7788,"Tecyrillic",1058,"Tedescendercyrillic",1196,"Tenroman",8553,"Tetsecyrillic",1204,"Theta",920,"Thook",428,"Thorn",222,"Thornsmall",63486,"Threeroman",8546,"Tildesmall",63230,"Tiwnarmenian",1359,"Tlinebelow",7790,"Tmonospace",65332,"Toarmenian",1337,"Tonefive",444,"Tonesix",388,"Tonetwo",423,"Tretroflexhook",430,"Tsecyrillic",1062,"Tshecyrillic",1035,"Tsmall",63348,"Twelveroman",8555,"Tworoman",8545,"U",85,"Uacute",218,"Uacutesmall",63482,"Ubreve",364,"Ucaron",467,"Ucircle",9418,"Ucircumflex",219,"Ucircumflexbelow",7798,"Ucircumflexsmall",63483,"Ucyrillic",1059,"Udblacute",368,"Udblgrave",532,"Udieresis",220,"Udieresisacute",471,"Udieresisbelow",7794,"Udieresiscaron",473,"Udieresiscyrillic",1264,"Udieresisgrave",475,"Udieresismacron",469,"Udieresissmall",63484,"Udotbelow",7908,"Ugrave",217,"Ugravesmall",63481,"Uhookabove",7910,"Uhorn",431,"Uhornacute",7912,"Uhorndotbelow",7920,"Uhorngrave",7914,"Uhornhookabove",7916,"Uhorntilde",7918,"Uhungarumlaut",368,"Uhungarumlautcyrillic",1266,"Uinvertedbreve",534,"Ukcyrillic",1144,"Umacron",362,"Umacroncyrillic",1262,"Umacrondieresis",7802,"Umonospace",65333,"Uogonek",370,"Upsilon",933,"Upsilon1",978,"Upsilonacutehooksymbolgreek",979,"Upsilonafrican",433,"Upsilondieresis",939,"Upsilondieresishooksymbolgreek",980,"Upsilonhooksymbol",978,"Upsilontonos",910,"Uring",366,"Ushortcyrillic",1038,"Usmall",63349,"Ustraightcyrillic",1198,"Ustraightstrokecyrillic",1200,"Utilde",360,"Utildeacute",7800,"Utildebelow",7796,"V",86,"Vcircle",9419,"Vdotbelow",7806,"Vecyrillic",1042,"Vewarmenian",1358,"Vhook",434,"Vmonospace",65334,"Voarmenian",1352,"Vsmall",63350,"Vtilde",7804,"W",87,"Wacute",7810,"Wcircle",9420,"Wcircumflex",372,"Wdieresis",7812,"Wdotaccent",7814,"Wdotbelow",7816,"Wgrave",7808,"Wmonospace",65335,"Wsmall",63351,"X",88,"Xcircle",9421,"Xdieresis",7820,"Xdotaccent",7818,"Xeharmenian",1341,"Xi",926,"Xmonospace",65336,"Xsmall",63352,"Y",89,"Yacute",221,"Yacutesmall",63485,"Yatcyrillic",1122,"Ycircle",9422,"Ycircumflex",374,"Ydieresis",376,"Ydieresissmall",63487,"Ydotaccent",7822,"Ydotbelow",7924,"Yericyrillic",1067,"Yerudieresiscyrillic",1272,"Ygrave",7922,"Yhook",435,"Yhookabove",7926,"Yiarmenian",1349,"Yicyrillic",1031,"Yiwnarmenian",1362,"Ymonospace",65337,"Ysmall",63353,"Ytilde",7928,"Yusbigcyrillic",1130,"Yusbigiotifiedcyrillic",1132,"Yuslittlecyrillic",1126,"Yuslittleiotifiedcyrillic",1128,"Z",90,"Zaarmenian",1334,"Zacute",377,"Zcaron",381,"Zcaronsmall",63231,"Zcircle",9423,"Zcircumflex",7824,"Zdot",379,"Zdotaccent",379,"Zdotbelow",7826,"Zecyrillic",1047,"Zedescendercyrillic",1176,"Zedieresiscyrillic",1246,"Zeta",918,"Zhearmenian",1338,"Zhebrevecyrillic",1217,"Zhecyrillic",1046,"Zhedescendercyrillic",1174,"Zhedieresiscyrillic",1244,"Zlinebelow",7828,"Zmonospace",65338,"Zsmall",63354,"Zstroke",437,"a",97,"aabengali",2438,"aacute",225,"aadeva",2310,"aagujarati",2694,"aagurmukhi",2566,"aamatragurmukhi",2622,"aarusquare",13059,"aavowelsignbengali",2494,"aavowelsigndeva",2366,"aavowelsigngujarati",2750,"abbreviationmarkarmenian",1375,"abbreviationsigndeva",2416,"abengali",2437,"abopomofo",12570,"abreve",259,"abreveacute",7855,"abrevecyrillic",1233,"abrevedotbelow",7863,"abrevegrave",7857,"abrevehookabove",7859,"abrevetilde",7861,"acaron",462,"acircle",9424,"acircumflex",226,"acircumflexacute",7845,"acircumflexdotbelow",7853,"acircumflexgrave",7847,"acircumflexhookabove",7849,"acircumflextilde",7851,"acute",180,"acutebelowcmb",791,"acutecmb",769,"acutecomb",769,"acutedeva",2388,"acutelowmod",719,"acutetonecmb",833,"acyrillic",1072,"adblgrave",513,"addakgurmukhi",2673,"adeva",2309,"adieresis",228,"adieresiscyrillic",1235,"adieresismacron",479,"adotbelow",7841,"adotmacron",481,"ae",230,"aeacute",509,"aekorean",12624,"aemacron",483,"afii00208",8213,"afii08941",8356,"afii10017",1040,"afii10018",1041,"afii10019",1042,"afii10020",1043,"afii10021",1044,"afii10022",1045,"afii10023",1025,"afii10024",1046,"afii10025",1047,"afii10026",1048,"afii10027",1049,"afii10028",1050,"afii10029",1051,"afii10030",1052,"afii10031",1053,"afii10032",1054,"afii10033",1055,"afii10034",1056,"afii10035",1057,"afii10036",1058,"afii10037",1059,"afii10038",1060,"afii10039",1061,"afii10040",1062,"afii10041",1063,"afii10042",1064,"afii10043",1065,"afii10044",1066,"afii10045",1067,"afii10046",1068,"afii10047",1069,"afii10048",1070,"afii10049",1071,"afii10050",1168,"afii10051",1026,"afii10052",1027,"afii10053",1028,"afii10054",1029,"afii10055",1030,"afii10056",1031,"afii10057",1032,"afii10058",1033,"afii10059",1034,"afii10060",1035,"afii10061",1036,"afii10062",1038,"afii10063",63172,"afii10064",63173,"afii10065",1072,"afii10066",1073,"afii10067",1074,"afii10068",1075,"afii10069",1076,"afii10070",1077,"afii10071",1105,"afii10072",1078,"afii10073",1079,"afii10074",1080,"afii10075",1081,"afii10076",1082,"afii10077",1083,"afii10078",1084,"afii10079",1085,"afii10080",1086,"afii10081",1087,"afii10082",1088,"afii10083",1089,"afii10084",1090,"afii10085",1091,"afii10086",1092,"afii10087",1093,"afii10088",1094,"afii10089",1095,"afii10090",1096,"afii10091",1097,"afii10092",1098,"afii10093",1099,"afii10094",1100,"afii10095",1101,"afii10096",1102,"afii10097",1103,"afii10098",1169,"afii10099",1106,"afii10100",1107,"afii10101",1108,"afii10102",1109,"afii10103",1110,"afii10104",1111,"afii10105",1112,"afii10106",1113,"afii10107",1114,"afii10108",1115,"afii10109",1116,"afii10110",1118,"afii10145",1039,"afii10146",1122,"afii10147",1138,"afii10148",1140,"afii10192",63174,"afii10193",1119,"afii10194",1123,"afii10195",1139,"afii10196",1141,"afii10831",63175,"afii10832",63176,"afii10846",1241,"afii299",8206,"afii300",8207,"afii301",8205,"afii57381",1642,"afii57388",1548,"afii57392",1632,"afii57393",1633,"afii57394",1634,"afii57395",1635,"afii57396",1636,"afii57397",1637,"afii57398",1638,"afii57399",1639,"afii57400",1640,"afii57401",1641,"afii57403",1563,"afii57407",1567,"afii57409",1569,"afii57410",1570,"afii57411",1571,"afii57412",1572,"afii57413",1573,"afii57414",1574,"afii57415",1575,"afii57416",1576,"afii57417",1577,"afii57418",1578,"afii57419",1579,"afii57420",1580,"afii57421",1581,"afii57422",1582,"afii57423",1583,"afii57424",1584,"afii57425",1585,"afii57426",1586,"afii57427",1587,"afii57428",1588,"afii57429",1589,"afii57430",1590,"afii57431",1591,"afii57432",1592,"afii57433",1593,"afii57434",1594,"afii57440",1600,"afii57441",1601,"afii57442",1602,"afii57443",1603,"afii57444",1604,"afii57445",1605,"afii57446",1606,"afii57448",1608,"afii57449",1609,"afii57450",1610,"afii57451",1611,"afii57452",1612,"afii57453",1613,"afii57454",1614,"afii57455",1615,"afii57456",1616,"afii57457",1617,"afii57458",1618,"afii57470",1607,"afii57505",1700,"afii57506",1662,"afii57507",1670,"afii57508",1688,"afii57509",1711,"afii57511",1657,"afii57512",1672,"afii57513",1681,"afii57514",1722,"afii57519",1746,"afii57534",1749,"afii57636",8362,"afii57645",1470,"afii57658",1475,"afii57664",1488,"afii57665",1489,"afii57666",1490,"afii57667",1491,"afii57668",1492,"afii57669",1493,"afii57670",1494,"afii57671",1495,"afii57672",1496,"afii57673",1497,"afii57674",1498,"afii57675",1499,"afii57676",1500,"afii57677",1501,"afii57678",1502,"afii57679",1503,"afii57680",1504,"afii57681",1505,"afii57682",1506,"afii57683",1507,"afii57684",1508,"afii57685",1509,"afii57686",1510,"afii57687",1511,"afii57688",1512,"afii57689",1513,"afii57690",1514,"afii57694",64298,"afii57695",64299,"afii57700",64331,"afii57705",64287,"afii57716",1520,"afii57717",1521,"afii57718",1522,"afii57723",64309,"afii57793",1460,"afii57794",1461,"afii57795",1462,"afii57796",1467,"afii57797",1464,"afii57798",1463,"afii57799",1456,"afii57800",1458,"afii57801",1457,"afii57802",1459,"afii57803",1474,"afii57804",1473,"afii57806",1465,"afii57807",1468,"afii57839",1469,"afii57841",1471,"afii57842",1472,"afii57929",700,"afii61248",8453,"afii61289",8467,"afii61352",8470,"afii61573",8236,"afii61574",8237,"afii61575",8238,"afii61664",8204,"afii63167",1645,"afii64937",701,"agrave",224,"agujarati",2693,"agurmukhi",2565,"ahiragana",12354,"ahookabove",7843,"aibengali",2448,"aibopomofo",12574,"aideva",2320,"aiecyrillic",1237,"aigujarati",2704,"aigurmukhi",2576,"aimatragurmukhi",2632,"ainarabic",1593,"ainfinalarabic",65226,"aininitialarabic",65227,"ainmedialarabic",65228,"ainvertedbreve",515,"aivowelsignbengali",2504,"aivowelsigndeva",2376,"aivowelsigngujarati",2760,"akatakana",12450,"akatakanahalfwidth",65393,"akorean",12623,"alef",1488,"alefarabic",1575,"alefdageshhebrew",64304,"aleffinalarabic",65166,"alefhamzaabovearabic",1571,"alefhamzaabovefinalarabic",65156,"alefhamzabelowarabic",1573,"alefhamzabelowfinalarabic",65160,"alefhebrew",1488,"aleflamedhebrew",64335,"alefmaddaabovearabic",1570,"alefmaddaabovefinalarabic",65154,"alefmaksuraarabic",1609,"alefmaksurafinalarabic",65264,"alefmaksurainitialarabic",65267,"alefmaksuramedialarabic",65268,"alefpatahhebrew",64302,"alefqamatshebrew",64303,"aleph",8501,"allequal",8780,"alpha",945,"alphatonos",940,"amacron",257,"amonospace",65345,"ampersand",38,"ampersandmonospace",65286,"ampersandsmall",63270,"amsquare",13250,"anbopomofo",12578,"angbopomofo",12580,"angbracketleft",12296,"angbracketright",12297,"angkhankhuthai",3674,"angle",8736,"anglebracketleft",12296,"anglebracketleftvertical",65087,"anglebracketright",12297,"anglebracketrightvertical",65088,"angleleft",9001,"angleright",9002,"angstrom",8491,"anoteleia",903,"anudattadeva",2386,"anusvarabengali",2434,"anusvaradeva",2306,"anusvaragujarati",2690,"aogonek",261,"apaatosquare",13056,"aparen",9372,"apostrophearmenian",1370,"apostrophemod",700,"apple",63743,"approaches",8784,"approxequal",8776,"approxequalorimage",8786,"approximatelyequal",8773,"araeaekorean",12686,"araeakorean",12685,"arc",8978,"arighthalfring",7834,"aring",229,"aringacute",507,"aringbelow",7681,"arrowboth",8596,"arrowdashdown",8675,"arrowdashleft",8672,"arrowdashright",8674,"arrowdashup",8673,"arrowdblboth",8660,"arrowdbldown",8659,"arrowdblleft",8656,"arrowdblright",8658,"arrowdblup",8657,"arrowdown",8595,"arrowdownleft",8601,"arrowdownright",8600,"arrowdownwhite",8681,"arrowheaddownmod",709,"arrowheadleftmod",706,"arrowheadrightmod",707,"arrowheadupmod",708,"arrowhorizex",63719,"arrowleft",8592,"arrowleftdbl",8656,"arrowleftdblstroke",8653,"arrowleftoverright",8646,"arrowleftwhite",8678,"arrowright",8594,"arrowrightdblstroke",8655,"arrowrightheavy",10142,"arrowrightoverleft",8644,"arrowrightwhite",8680,"arrowtableft",8676,"arrowtabright",8677,"arrowup",8593,"arrowupdn",8597,"arrowupdnbse",8616,"arrowupdownbase",8616,"arrowupleft",8598,"arrowupleftofdown",8645,"arrowupright",8599,"arrowupwhite",8679,"arrowvertex",63718,"asciicircum",94,"asciicircummonospace",65342,"asciitilde",126,"asciitildemonospace",65374,"ascript",593,"ascriptturned",594,"asmallhiragana",12353,"asmallkatakana",12449,"asmallkatakanahalfwidth",65383,"asterisk",42,"asteriskaltonearabic",1645,"asteriskarabic",1645,"asteriskmath",8727,"asteriskmonospace",65290,"asterisksmall",65121,"asterism",8258,"asuperior",63209,"asymptoticallyequal",8771,"at",64,"atilde",227,"atmonospace",65312,"atsmall",65131,"aturned",592,"aubengali",2452,"aubopomofo",12576,"audeva",2324,"augujarati",2708,"augurmukhi",2580,"aulengthmarkbengali",2519,"aumatragurmukhi",2636,"auvowelsignbengali",2508,"auvowelsigndeva",2380,"auvowelsigngujarati",2764,"avagrahadeva",2365,"aybarmenian",1377,"ayin",1506,"ayinaltonehebrew",64288,"ayinhebrew",1506,"b",98,"babengali",2476,"backslash",92,"backslashmonospace",65340,"badeva",2348,"bagujarati",2732,"bagurmukhi",2604,"bahiragana",12400,"bahtthai",3647,"bakatakana",12496,"bar",124,"barmonospace",65372,"bbopomofo",12549,"bcircle",9425,"bdotaccent",7683,"bdotbelow",7685,"beamedsixteenthnotes",9836,"because",8757,"becyrillic",1073,"beharabic",1576,"behfinalarabic",65168,"behinitialarabic",65169,"behiragana",12409,"behmedialarabic",65170,"behmeeminitialarabic",64671,"behmeemisolatedarabic",64520,"behnoonfinalarabic",64621,"bekatakana",12505,"benarmenian",1378,"bet",1489,"beta",946,"betasymbolgreek",976,"betdagesh",64305,"betdageshhebrew",64305,"bethebrew",1489,"betrafehebrew",64332,"bhabengali",2477,"bhadeva",2349,"bhagujarati",2733,"bhagurmukhi",2605,"bhook",595,"bihiragana",12403,"bikatakana",12499,"bilabialclick",664,"bindigurmukhi",2562,"birusquare",13105,"blackcircle",9679,"blackdiamond",9670,"blackdownpointingtriangle",9660,"blackleftpointingpointer",9668,"blackleftpointingtriangle",9664,"blacklenticularbracketleft",12304,"blacklenticularbracketleftvertical",65083,"blacklenticularbracketright",12305,"blacklenticularbracketrightvertical",65084,"blacklowerlefttriangle",9699,"blacklowerrighttriangle",9698,"blackrectangle",9644,"blackrightpointingpointer",9658,"blackrightpointingtriangle",9654,"blacksmallsquare",9642,"blacksmilingface",9787,"blacksquare",9632,"blackstar",9733,"blackupperlefttriangle",9700,"blackupperrighttriangle",9701,"blackuppointingsmalltriangle",9652,"blackuppointingtriangle",9650,"blank",9251,"blinebelow",7687,"block",9608,"bmonospace",65346,"bobaimaithai",3610,"bohiragana",12412,"bokatakana",12508,"bparen",9373,"bqsquare",13251,"braceex",63732,"braceleft",123,"braceleftbt",63731,"braceleftmid",63730,"braceleftmonospace",65371,"braceleftsmall",65115,"bracelefttp",63729,"braceleftvertical",65079,"braceright",125,"bracerightbt",63742,"bracerightmid",63741,"bracerightmonospace",65373,"bracerightsmall",65116,"bracerighttp",63740,"bracerightvertical",65080,"bracketleft",91,"bracketleftbt",63728,"bracketleftex",63727,"bracketleftmonospace",65339,"bracketlefttp",63726,"bracketright",93,"bracketrightbt",63739,"bracketrightex",63738,"bracketrightmonospace",65341,"bracketrighttp",63737,"breve",728,"brevebelowcmb",814,"brevecmb",774,"breveinvertedbelowcmb",815,"breveinvertedcmb",785,"breveinverteddoublecmb",865,"bridgebelowcmb",810,"bridgeinvertedbelowcmb",826,"brokenbar",166,"bstroke",384,"bsuperior",63210,"btopbar",387,"buhiragana",12406,"bukatakana",12502,"bullet",8226,"bulletinverse",9688,"bulletoperator",8729,"bullseye",9678,"c",99,"caarmenian",1390,"cabengali",2458,"cacute",263,"cadeva",2330,"cagujarati",2714,"cagurmukhi",2586,"calsquare",13192,"candrabindubengali",2433,"candrabinducmb",784,"candrabindudeva",2305,"candrabindugujarati",2689,"capslock",8682,"careof",8453,"caron",711,"caronbelowcmb",812,"caroncmb",780,"carriagereturn",8629,"cbopomofo",12568,"ccaron",269,"ccedilla",231,"ccedillaacute",7689,"ccircle",9426,"ccircumflex",265,"ccurl",597,"cdot",267,"cdotaccent",267,"cdsquare",13253,"cedilla",184,"cedillacmb",807,"cent",162,"centigrade",8451,"centinferior",63199,"centmonospace",65504,"centoldstyle",63394,"centsuperior",63200,"chaarmenian",1401,"chabengali",2459,"chadeva",2331,"chagujarati",2715,"chagurmukhi",2587,"chbopomofo",12564,"cheabkhasiancyrillic",1213,"checkmark",10003,"checyrillic",1095,"chedescenderabkhasiancyrillic",1215,"chedescendercyrillic",1207,"chedieresiscyrillic",1269,"cheharmenian",1395,"chekhakassiancyrillic",1228,"cheverticalstrokecyrillic",1209,"chi",967,"chieuchacirclekorean",12919,"chieuchaparenkorean",12823,"chieuchcirclekorean",12905,"chieuchkorean",12618,"chieuchparenkorean",12809,"chochangthai",3594,"chochanthai",3592,"chochingthai",3593,"chochoethai",3596,"chook",392,"cieucacirclekorean",12918,"cieucaparenkorean",12822,"cieuccirclekorean",12904,"cieuckorean",12616,"cieucparenkorean",12808,"cieucuparenkorean",12828,"circle",9675,"circlecopyrt",169,"circlemultiply",8855,"circleot",8857,"circleplus",8853,"circlepostalmark",12342,"circlewithlefthalfblack",9680,"circlewithrighthalfblack",9681,"circumflex",710,"circumflexbelowcmb",813,"circumflexcmb",770,"clear",8999,"clickalveolar",450,"clickdental",448,"clicklateral",449,"clickretroflex",451,"club",9827,"clubsuitblack",9827,"clubsuitwhite",9831,"cmcubedsquare",13220,"cmonospace",65347,"cmsquaredsquare",13216,"coarmenian",1409,"colon",58,"colonmonetary",8353,"colonmonospace",65306,"colonsign",8353,"colonsmall",65109,"colontriangularhalfmod",721,"colontriangularmod",720,"comma",44,"commaabovecmb",787,"commaaboverightcmb",789,"commaaccent",63171,"commaarabic",1548,"commaarmenian",1373,"commainferior",63201,"commamonospace",65292,"commareversedabovecmb",788,"commareversedmod",701,"commasmall",65104,"commasuperior",63202,"commaturnedabovecmb",786,"commaturnedmod",699,"compass",9788,"congruent",8773,"contourintegral",8750,"control",8963,"controlACK",6,"controlBEL",7,"controlBS",8,"controlCAN",24,"controlCR",13,"controlDC1",17,"controlDC2",18,"controlDC3",19,"controlDC4",20,"controlDEL",127,"controlDLE",16,"controlEM",25,"controlENQ",5,"controlEOT",4,"controlESC",27,"controlETB",23,"controlETX",3,"controlFF",12,"controlFS",28,"controlGS",29,"controlHT",9,"controlLF",10,"controlNAK",21,"controlNULL",0,"controlRS",30,"controlSI",15,"controlSO",14,"controlSOT",2,"controlSTX",1,"controlSUB",26,"controlSYN",22,"controlUS",31,"controlVT",11,"copyright",169,"copyrightsans",63721,"copyrightserif",63193,"cornerbracketleft",12300,"cornerbracketlefthalfwidth",65378,"cornerbracketleftvertical",65089,"cornerbracketright",12301,"cornerbracketrighthalfwidth",65379,"cornerbracketrightvertical",65090,"corporationsquare",13183,"cosquare",13255,"coverkgsquare",13254,"cparen",9374,"cruzeiro",8354,"cstretched",663,"curlyand",8911,"curlyor",8910,"currency",164,"cyrBreve",63185,"cyrFlex",63186,"cyrbreve",63188,"cyrflex",63189,"d",100,"daarmenian",1380,"dabengali",2470,"dadarabic",1590,"dadeva",2342,"dadfinalarabic",65214,"dadinitialarabic",65215,"dadmedialarabic",65216,"dagesh",1468,"dageshhebrew",1468,"dagger",8224,"daggerdbl",8225,"dagujarati",2726,"dagurmukhi",2598,"dahiragana",12384,"dakatakana",12480,"dalarabic",1583,"dalet",1491,"daletdagesh",64307,"daletdageshhebrew",64307,"dalethebrew",1491,"dalfinalarabic",65194,"dammaarabic",1615,"dammalowarabic",1615,"dammatanaltonearabic",1612,"dammatanarabic",1612,"danda",2404,"dargahebrew",1447,"dargalefthebrew",1447,"dasiapneumatacyrilliccmb",1157,"dblGrave",63187,"dblanglebracketleft",12298,"dblanglebracketleftvertical",65085,"dblanglebracketright",12299,"dblanglebracketrightvertical",65086,"dblarchinvertedbelowcmb",811,"dblarrowleft",8660,"dblarrowright",8658,"dbldanda",2405,"dblgrave",63190,"dblgravecmb",783,"dblintegral",8748,"dbllowline",8215,"dbllowlinecmb",819,"dbloverlinecmb",831,"dblprimemod",698,"dblverticalbar",8214,"dblverticallineabovecmb",782,"dbopomofo",12553,"dbsquare",13256,"dcaron",271,"dcedilla",7697,"dcircle",9427,"dcircumflexbelow",7699,"dcroat",273,"ddabengali",2465,"ddadeva",2337,"ddagujarati",2721,"ddagurmukhi",2593,"ddalarabic",1672,"ddalfinalarabic",64393,"dddhadeva",2396,"ddhabengali",2466,"ddhadeva",2338,"ddhagujarati",2722,"ddhagurmukhi",2594,"ddotaccent",7691,"ddotbelow",7693,"decimalseparatorarabic",1643,"decimalseparatorpersian",1643,"decyrillic",1076,"degree",176,"dehihebrew",1453,"dehiragana",12391,"deicoptic",1007,"dekatakana",12487,"deleteleft",9003,"deleteright",8998,"delta",948,"deltaturned",397,"denominatorminusonenumeratorbengali",2552,"dezh",676,"dhabengali",2471,"dhadeva",2343,"dhagujarati",2727,"dhagurmukhi",2599,"dhook",599,"dialytikatonos",901,"dialytikatonoscmb",836,"diamond",9830,"diamondsuitwhite",9826,"dieresis",168,"dieresisacute",63191,"dieresisbelowcmb",804,"dieresiscmb",776,"dieresisgrave",63192,"dieresistonos",901,"dihiragana",12386,"dikatakana",12482,"dittomark",12291,"divide",247,"divides",8739,"divisionslash",8725,"djecyrillic",1106,"dkshade",9619,"dlinebelow",7695,"dlsquare",13207,"dmacron",273,"dmonospace",65348,"dnblock",9604,"dochadathai",3598,"dodekthai",3604,"dohiragana",12393,"dokatakana",12489,"dollar",36,"dollarinferior",63203,"dollarmonospace",65284,"dollaroldstyle",63268,"dollarsmall",65129,"dollarsuperior",63204,"dong",8363,"dorusquare",13094,"dotaccent",729,"dotaccentcmb",775,"dotbelowcmb",803,"dotbelowcomb",803,"dotkatakana",12539,"dotlessi",305,"dotlessj",63166,"dotlessjstrokehook",644,"dotmath",8901,"dottedcircle",9676,"doubleyodpatah",64287,"doubleyodpatahhebrew",64287,"downtackbelowcmb",798,"downtackmod",725,"dparen",9375,"dsuperior",63211,"dtail",598,"dtopbar",396,"duhiragana",12389,"dukatakana",12485,"dz",499,"dzaltone",675,"dzcaron",454,"dzcurl",677,"dzeabkhasiancyrillic",1249,"dzecyrillic",1109,"dzhecyrillic",1119,"e",101,"eacute",233,"earth",9793,"ebengali",2447,"ebopomofo",12572,"ebreve",277,"ecandradeva",2317,"ecandragujarati",2701,"ecandravowelsigndeva",2373,"ecandravowelsigngujarati",2757,"ecaron",283,"ecedillabreve",7709,"echarmenian",1381,"echyiwnarmenian",1415,"ecircle",9428,"ecircumflex",234,"ecircumflexacute",7871,"ecircumflexbelow",7705,"ecircumflexdotbelow",7879,"ecircumflexgrave",7873,"ecircumflexhookabove",7875,"ecircumflextilde",7877,"ecyrillic",1108,"edblgrave",517,"edeva",2319,"edieresis",235,"edot",279,"edotaccent",279,"edotbelow",7865,"eegurmukhi",2575,"eematragurmukhi",2631,"efcyrillic",1092,"egrave",232,"egujarati",2703,"eharmenian",1383,"ehbopomofo",12573,"ehiragana",12360,"ehookabove",7867,"eibopomofo",12575,"eight",56,"eightarabic",1640,"eightbengali",2542,"eightcircle",9319,"eightcircleinversesansserif",10129,"eightdeva",2414,"eighteencircle",9329,"eighteenparen",9349,"eighteenperiod",9369,"eightgujarati",2798,"eightgurmukhi",2670,"eighthackarabic",1640,"eighthangzhou",12328,"eighthnotebeamed",9835,"eightideographicparen",12839,"eightinferior",8328,"eightmonospace",65304,"eightoldstyle",63288,"eightparen",9339,"eightperiod",9359,"eightpersian",1784,"eightroman",8567,"eightsuperior",8312,"eightthai",3672,"einvertedbreve",519,"eiotifiedcyrillic",1125,"ekatakana",12456,"ekatakanahalfwidth",65396,"ekonkargurmukhi",2676,"ekorean",12628,"elcyrillic",1083,"element",8712,"elevencircle",9322,"elevenparen",9342,"elevenperiod",9362,"elevenroman",8570,"ellipsis",8230,"ellipsisvertical",8942,"emacron",275,"emacronacute",7703,"emacrongrave",7701,"emcyrillic",1084,"emdash",8212,"emdashvertical",65073,"emonospace",65349,"emphasismarkarmenian",1371,"emptyset",8709,"enbopomofo",12579,"encyrillic",1085,"endash",8211,"endashvertical",65074,"endescendercyrillic",1187,"eng",331,"engbopomofo",12581,"enghecyrillic",1189,"enhookcyrillic",1224,"enspace",8194,"eogonek",281,"eokorean",12627,"eopen",603,"eopenclosed",666,"eopenreversed",604,"eopenreversedclosed",606,"eopenreversedhook",605,"eparen",9376,"epsilon",949,"epsilontonos",941,"equal",61,"equalmonospace",65309,"equalsmall",65126,"equalsuperior",8316,"equivalence",8801,"erbopomofo",12582,"ercyrillic",1088,"ereversed",600,"ereversedcyrillic",1101,"escyrillic",1089,"esdescendercyrillic",1195,"esh",643,"eshcurl",646,"eshortdeva",2318,"eshortvowelsigndeva",2374,"eshreversedloop",426,"eshsquatreversed",645,"esmallhiragana",12359,"esmallkatakana",12455,"esmallkatakanahalfwidth",65386,"estimated",8494,"esuperior",63212,"eta",951,"etarmenian",1384,"etatonos",942,"eth",240,"etilde",7869,"etildebelow",7707,"etnahtafoukhhebrew",1425,"etnahtafoukhlefthebrew",1425,"etnahtahebrew",1425,"etnahtalefthebrew",1425,"eturned",477,"eukorean",12641,"euro",8364,"evowelsignbengali",2503,"evowelsigndeva",2375,"evowelsigngujarati",2759,"exclam",33,"exclamarmenian",1372,"exclamdbl",8252,"exclamdown",161,"exclamdownsmall",63393,"exclammonospace",65281,"exclamsmall",63265,"existential",8707,"ezh",658,"ezhcaron",495,"ezhcurl",659,"ezhreversed",441,"ezhtail",442,"f",102,"fadeva",2398,"fagurmukhi",2654,"fahrenheit",8457,"fathaarabic",1614,"fathalowarabic",1614,"fathatanarabic",1611,"fbopomofo",12552,"fcircle",9429,"fdotaccent",7711,"feharabic",1601,"feharmenian",1414,"fehfinalarabic",65234,"fehinitialarabic",65235,"fehmedialarabic",65236,"feicoptic",997,"female",9792,"ff",64256,"f_f",64256,"ffi",64259,"f_f_i",64259,"ffl",64260,"f_f_l",64260,"fi",64257,"f_i",64257,"fifteencircle",9326,"fifteenparen",9346,"fifteenperiod",9366,"figuredash",8210,"filledbox",9632,"filledrect",9644,"finalkaf",1498,"finalkafdagesh",64314,"finalkafdageshhebrew",64314,"finalkafhebrew",1498,"finalmem",1501,"finalmemhebrew",1501,"finalnun",1503,"finalnunhebrew",1503,"finalpe",1507,"finalpehebrew",1507,"finaltsadi",1509,"finaltsadihebrew",1509,"firsttonechinese",713,"fisheye",9673,"fitacyrillic",1139,"five",53,"fivearabic",1637,"fivebengali",2539,"fivecircle",9316,"fivecircleinversesansserif",10126,"fivedeva",2411,"fiveeighths",8541,"fivegujarati",2795,"fivegurmukhi",2667,"fivehackarabic",1637,"fivehangzhou",12325,"fiveideographicparen",12836,"fiveinferior",8325,"fivemonospace",65301,"fiveoldstyle",63285,"fiveparen",9336,"fiveperiod",9356,"fivepersian",1781,"fiveroman",8564,"fivesuperior",8309,"fivethai",3669,"fl",64258,"f_l",64258,"florin",402,"fmonospace",65350,"fmsquare",13209,"fofanthai",3615,"fofathai",3613,"fongmanthai",3663,"forall",8704,"four",52,"fourarabic",1636,"fourbengali",2538,"fourcircle",9315,"fourcircleinversesansserif",10125,"fourdeva",2410,"fourgujarati",2794,"fourgurmukhi",2666,"fourhackarabic",1636,"fourhangzhou",12324,"fourideographicparen",12835,"fourinferior",8324,"fourmonospace",65300,"fournumeratorbengali",2551,"fouroldstyle",63284,"fourparen",9335,"fourperiod",9355,"fourpersian",1780,"fourroman",8563,"foursuperior",8308,"fourteencircle",9325,"fourteenparen",9345,"fourteenperiod",9365,"fourthai",3668,"fourthtonechinese",715,"fparen",9377,"fraction",8260,"franc",8355,"g",103,"gabengali",2455,"gacute",501,"gadeva",2327,"gafarabic",1711,"gaffinalarabic",64403,"gafinitialarabic",64404,"gafmedialarabic",64405,"gagujarati",2711,"gagurmukhi",2583,"gahiragana",12364,"gakatakana",12460,"gamma",947,"gammalatinsmall",611,"gammasuperior",736,"gangiacoptic",1003,"gbopomofo",12557,"gbreve",287,"gcaron",487,"gcedilla",291,"gcircle",9430,"gcircumflex",285,"gcommaaccent",291,"gdot",289,"gdotaccent",289,"gecyrillic",1075,"gehiragana",12370,"gekatakana",12466,"geometricallyequal",8785,"gereshaccenthebrew",1436,"gereshhebrew",1523,"gereshmuqdamhebrew",1437,"germandbls",223,"gershayimaccenthebrew",1438,"gershayimhebrew",1524,"getamark",12307,"ghabengali",2456,"ghadarmenian",1394,"ghadeva",2328,"ghagujarati",2712,"ghagurmukhi",2584,"ghainarabic",1594,"ghainfinalarabic",65230,"ghaininitialarabic",65231,"ghainmedialarabic",65232,"ghemiddlehookcyrillic",1173,"ghestrokecyrillic",1171,"gheupturncyrillic",1169,"ghhadeva",2394,"ghhagurmukhi",2650,"ghook",608,"ghzsquare",13203,"gihiragana",12366,"gikatakana",12462,"gimarmenian",1379,"gimel",1490,"gimeldagesh",64306,"gimeldageshhebrew",64306,"gimelhebrew",1490,"gjecyrillic",1107,"glottalinvertedstroke",446,"glottalstop",660,"glottalstopinverted",662,"glottalstopmod",704,"glottalstopreversed",661,"glottalstopreversedmod",705,"glottalstopreversedsuperior",740,"glottalstopstroke",673,"glottalstopstrokereversed",674,"gmacron",7713,"gmonospace",65351,"gohiragana",12372,"gokatakana",12468,"gparen",9378,"gpasquare",13228,"gradient",8711,"grave",96,"gravebelowcmb",790,"gravecmb",768,"gravecomb",768,"gravedeva",2387,"gravelowmod",718,"gravemonospace",65344,"gravetonecmb",832,"greater",62,"greaterequal",8805,"greaterequalorless",8923,"greatermonospace",65310,"greaterorequivalent",8819,"greaterorless",8823,"greateroverequal",8807,"greatersmall",65125,"gscript",609,"gstroke",485,"guhiragana",12368,"guillemotleft",171,"guillemotright",187,"guilsinglleft",8249,"guilsinglright",8250,"gukatakana",12464,"guramusquare",13080,"gysquare",13257,"h",104,"haabkhasiancyrillic",1193,"haaltonearabic",1729,"habengali",2489,"hadescendercyrillic",1203,"hadeva",2361,"hagujarati",2745,"hagurmukhi",2617,"haharabic",1581,"hahfinalarabic",65186,"hahinitialarabic",65187,"hahiragana",12399,"hahmedialarabic",65188,"haitusquare",13098,"hakatakana",12495,"hakatakanahalfwidth",65418,"halantgurmukhi",2637,"hamzaarabic",1569,"hamzalowarabic",1569,"hangulfiller",12644,"hardsigncyrillic",1098,"harpoonleftbarbup",8636,"harpoonrightbarbup",8640,"hasquare",13258,"hatafpatah",1458,"hatafpatah16",1458,"hatafpatah23",1458,"hatafpatah2f",1458,"hatafpatahhebrew",1458,"hatafpatahnarrowhebrew",1458,"hatafpatahquarterhebrew",1458,"hatafpatahwidehebrew",1458,"hatafqamats",1459,"hatafqamats1b",1459,"hatafqamats28",1459,"hatafqamats34",1459,"hatafqamatshebrew",1459,"hatafqamatsnarrowhebrew",1459,"hatafqamatsquarterhebrew",1459,"hatafqamatswidehebrew",1459,"hatafsegol",1457,"hatafsegol17",1457,"hatafsegol24",1457,"hatafsegol30",1457,"hatafsegolhebrew",1457,"hatafsegolnarrowhebrew",1457,"hatafsegolquarterhebrew",1457,"hatafsegolwidehebrew",1457,"hbar",295,"hbopomofo",12559,"hbrevebelow",7723,"hcedilla",7721,"hcircle",9431,"hcircumflex",293,"hdieresis",7719,"hdotaccent",7715,"hdotbelow",7717,"he",1492,"heart",9829,"heartsuitblack",9829,"heartsuitwhite",9825,"hedagesh",64308,"hedageshhebrew",64308,"hehaltonearabic",1729,"heharabic",1607,"hehebrew",1492,"hehfinalaltonearabic",64423,"hehfinalalttwoarabic",65258,"hehfinalarabic",65258,"hehhamzaabovefinalarabic",64421,"hehhamzaaboveisolatedarabic",64420,"hehinitialaltonearabic",64424,"hehinitialarabic",65259,"hehiragana",12408,"hehmedialaltonearabic",64425,"hehmedialarabic",65260,"heiseierasquare",13179,"hekatakana",12504,"hekatakanahalfwidth",65421,"hekutaarusquare",13110,"henghook",615,"herutusquare",13113,"het",1495,"hethebrew",1495,"hhook",614,"hhooksuperior",689,"hieuhacirclekorean",12923,"hieuhaparenkorean",12827,"hieuhcirclekorean",12909,"hieuhkorean",12622,"hieuhparenkorean",12813,"hihiragana",12402,"hikatakana",12498,"hikatakanahalfwidth",65419,"hiriq",1460,"hiriq14",1460,"hiriq21",1460,"hiriq2d",1460,"hiriqhebrew",1460,"hiriqnarrowhebrew",1460,"hiriqquarterhebrew",1460,"hiriqwidehebrew",1460,"hlinebelow",7830,"hmonospace",65352,"hoarmenian",1392,"hohipthai",3627,"hohiragana",12411,"hokatakana",12507,"hokatakanahalfwidth",65422,"holam",1465,"holam19",1465,"holam26",1465,"holam32",1465,"holamhebrew",1465,"holamnarrowhebrew",1465,"holamquarterhebrew",1465,"holamwidehebrew",1465,"honokhukthai",3630,"hookabovecomb",777,"hookcmb",777,"hookpalatalizedbelowcmb",801,"hookretroflexbelowcmb",802,"hoonsquare",13122,"horicoptic",1001,"horizontalbar",8213,"horncmb",795,"hotsprings",9832,"house",8962,"hparen",9379,"hsuperior",688,"hturned",613,"huhiragana",12405,"huiitosquare",13107,"hukatakana",12501,"hukatakanahalfwidth",65420,"hungarumlaut",733,"hungarumlautcmb",779,"hv",405,"hyphen",45,"hypheninferior",63205,"hyphenmonospace",65293,"hyphensmall",65123,"hyphensuperior",63206,"hyphentwo",8208,"i",105,"iacute",237,"iacyrillic",1103,"ibengali",2439,"ibopomofo",12583,"ibreve",301,"icaron",464,"icircle",9432,"icircumflex",238,"icyrillic",1110,"idblgrave",521,"ideographearthcircle",12943,"ideographfirecircle",12939,"ideographicallianceparen",12863,"ideographiccallparen",12858,"ideographiccentrecircle",12965,"ideographicclose",12294,"ideographiccomma",12289,"ideographiccommaleft",65380,"ideographiccongratulationparen",12855,"ideographiccorrectcircle",12963,"ideographicearthparen",12847,"ideographicenterpriseparen",12861,"ideographicexcellentcircle",12957,"ideographicfestivalparen",12864,"ideographicfinancialcircle",12950,"ideographicfinancialparen",12854,"ideographicfireparen",12843,"ideographichaveparen",12850,"ideographichighcircle",12964,"ideographiciterationmark",12293,"ideographiclaborcircle",12952,"ideographiclaborparen",12856,"ideographicleftcircle",12967,"ideographiclowcircle",12966,"ideographicmedicinecircle",12969,"ideographicmetalparen",12846,"ideographicmoonparen",12842,"ideographicnameparen",12852,"ideographicperiod",12290,"ideographicprintcircle",12958,"ideographicreachparen",12867,"ideographicrepresentparen",12857,"ideographicresourceparen",12862,"ideographicrightcircle",12968,"ideographicsecretcircle",12953,"ideographicselfparen",12866,"ideographicsocietyparen",12851,"ideographicspace",12288,"ideographicspecialparen",12853,"ideographicstockparen",12849,"ideographicstudyparen",12859,"ideographicsunparen",12848,"ideographicsuperviseparen",12860,"ideographicwaterparen",12844,"ideographicwoodparen",12845,"ideographiczero",12295,"ideographmetalcircle",12942,"ideographmooncircle",12938,"ideographnamecircle",12948,"ideographsuncircle",12944,"ideographwatercircle",12940,"ideographwoodcircle",12941,"ideva",2311,"idieresis",239,"idieresisacute",7727,"idieresiscyrillic",1253,"idotbelow",7883,"iebrevecyrillic",1239,"iecyrillic",1077,"ieungacirclekorean",12917,"ieungaparenkorean",12821,"ieungcirclekorean",12903,"ieungkorean",12615,"ieungparenkorean",12807,"igrave",236,"igujarati",2695,"igurmukhi",2567,"ihiragana",12356,"ihookabove",7881,"iibengali",2440,"iicyrillic",1080,"iideva",2312,"iigujarati",2696,"iigurmukhi",2568,"iimatragurmukhi",2624,"iinvertedbreve",523,"iishortcyrillic",1081,"iivowelsignbengali",2496,"iivowelsigndeva",2368,"iivowelsigngujarati",2752,"ij",307,"ikatakana",12452,"ikatakanahalfwidth",65394,"ikorean",12643,"ilde",732,"iluyhebrew",1452,"imacron",299,"imacroncyrillic",1251,"imageorapproximatelyequal",8787,"imatragurmukhi",2623,"imonospace",65353,"increment",8710,"infinity",8734,"iniarmenian",1387,"integral",8747,"integralbottom",8993,"integralbt",8993,"integralex",63733,"integraltop",8992,"integraltp",8992,"intersection",8745,"intisquare",13061,"invbullet",9688,"invcircle",9689,"invsmileface",9787,"iocyrillic",1105,"iogonek",303,"iota",953,"iotadieresis",970,"iotadieresistonos",912,"iotalatin",617,"iotatonos",943,"iparen",9380,"irigurmukhi",2674,"ismallhiragana",12355,"ismallkatakana",12451,"ismallkatakanahalfwidth",65384,"issharbengali",2554,"istroke",616,"isuperior",63213,"iterationhiragana",12445,"iterationkatakana",12541,"itilde",297,"itildebelow",7725,"iubopomofo",12585,"iucyrillic",1102,"ivowelsignbengali",2495,"ivowelsigndeva",2367,"ivowelsigngujarati",2751,"izhitsacyrillic",1141,"izhitsadblgravecyrillic",1143,"j",106,"jaarmenian",1393,"jabengali",2460,"jadeva",2332,"jagujarati",2716,"jagurmukhi",2588,"jbopomofo",12560,"jcaron",496,"jcircle",9433,"jcircumflex",309,"jcrossedtail",669,"jdotlessstroke",607,"jecyrillic",1112,"jeemarabic",1580,"jeemfinalarabic",65182,"jeeminitialarabic",65183,"jeemmedialarabic",65184,"jeharabic",1688,"jehfinalarabic",64395,"jhabengali",2461,"jhadeva",2333,"jhagujarati",2717,"jhagurmukhi",2589,"jheharmenian",1403,"jis",12292,"jmonospace",65354,"jparen",9381,"jsuperior",690,"k",107,"kabashkircyrillic",1185,"kabengali",2453,"kacute",7729,"kacyrillic",1082,"kadescendercyrillic",1179,"kadeva",2325,"kaf",1499,"kafarabic",1603,"kafdagesh",64315,"kafdageshhebrew",64315,"kaffinalarabic",65242,"kafhebrew",1499,"kafinitialarabic",65243,"kafmedialarabic",65244,"kafrafehebrew",64333,"kagujarati",2709,"kagurmukhi",2581,"kahiragana",12363,"kahookcyrillic",1220,"kakatakana",12459,"kakatakanahalfwidth",65398,"kappa",954,"kappasymbolgreek",1008,"kapyeounmieumkorean",12657,"kapyeounphieuphkorean",12676,"kapyeounpieupkorean",12664,"kapyeounssangpieupkorean",12665,"karoriisquare",13069,"kashidaautoarabic",1600,"kashidaautonosidebearingarabic",1600,"kasmallkatakana",12533,"kasquare",13188,"kasraarabic",1616,"kasratanarabic",1613,"kastrokecyrillic",1183,"katahiraprolongmarkhalfwidth",65392,"kaverticalstrokecyrillic",1181,"kbopomofo",12558,"kcalsquare",13193,"kcaron",489,"kcedilla",311,"kcircle",9434,"kcommaaccent",311,"kdotbelow",7731,"keharmenian",1412,"kehiragana",12369,"kekatakana",12465,"kekatakanahalfwidth",65401,"kenarmenian",1391,"kesmallkatakana",12534,"kgreenlandic",312,"khabengali",2454,"khacyrillic",1093,"khadeva",2326,"khagujarati",2710,"khagurmukhi",2582,"khaharabic",1582,"khahfinalarabic",65190,"khahinitialarabic",65191,"khahmedialarabic",65192,"kheicoptic",999,"khhadeva",2393,"khhagurmukhi",2649,"khieukhacirclekorean",12920,"khieukhaparenkorean",12824,"khieukhcirclekorean",12906,"khieukhkorean",12619,"khieukhparenkorean",12810,"khokhaithai",3586,"khokhonthai",3589,"khokhuatthai",3587,"khokhwaithai",3588,"khomutthai",3675,"khook",409,"khorakhangthai",3590,"khzsquare",13201,"kihiragana",12365,"kikatakana",12461,"kikatakanahalfwidth",65399,"kiroguramusquare",13077,"kiromeetorusquare",13078,"kirosquare",13076,"kiyeokacirclekorean",12910,"kiyeokaparenkorean",12814,"kiyeokcirclekorean",12896,"kiyeokkorean",12593,"kiyeokparenkorean",12800,"kiyeoksioskorean",12595,"kjecyrillic",1116,"klinebelow",7733,"klsquare",13208,"kmcubedsquare",13222,"kmonospace",65355,"kmsquaredsquare",13218,"kohiragana",12371,"kohmsquare",13248,"kokaithai",3585,"kokatakana",12467,"kokatakanahalfwidth",65402,"kooposquare",13086,"koppacyrillic",1153,"koreanstandardsymbol",12927,"koroniscmb",835,"kparen",9382,"kpasquare",13226,"ksicyrillic",1135,"ktsquare",13263,"kturned",670,"kuhiragana",12367,"kukatakana",12463,"kukatakanahalfwidth",65400,"kvsquare",13240,"kwsquare",13246,"l",108,"labengali",2482,"lacute",314,"ladeva",2354,"lagujarati",2738,"lagurmukhi",2610,"lakkhangyaothai",3653,"lamaleffinalarabic",65276,"lamalefhamzaabovefinalarabic",65272,"lamalefhamzaaboveisolatedarabic",65271,"lamalefhamzabelowfinalarabic",65274,"lamalefhamzabelowisolatedarabic",65273,"lamalefisolatedarabic",65275,"lamalefmaddaabovefinalarabic",65270,"lamalefmaddaaboveisolatedarabic",65269,"lamarabic",1604,"lambda",955,"lambdastroke",411,"lamed",1500,"lameddagesh",64316,"lameddageshhebrew",64316,"lamedhebrew",1500,"lamfinalarabic",65246,"lamhahinitialarabic",64714,"laminitialarabic",65247,"lamjeeminitialarabic",64713,"lamkhahinitialarabic",64715,"lamlamhehisolatedarabic",65010,"lammedialarabic",65248,"lammeemhahinitialarabic",64904,"lammeeminitialarabic",64716,"largecircle",9711,"lbar",410,"lbelt",620,"lbopomofo",12556,"lcaron",318,"lcedilla",316,"lcircle",9435,"lcircumflexbelow",7741,"lcommaaccent",316,"ldot",320,"ldotaccent",320,"ldotbelow",7735,"ldotbelowmacron",7737,"leftangleabovecmb",794,"lefttackbelowcmb",792,"less",60,"lessequal",8804,"lessequalorgreater",8922,"lessmonospace",65308,"lessorequivalent",8818,"lessorgreater",8822,"lessoverequal",8806,"lesssmall",65124,"lezh",622,"lfblock",9612,"lhookretroflex",621,"lira",8356,"liwnarmenian",1388,"lj",457,"ljecyrillic",1113,"ll",63168,"lladeva",2355,"llagujarati",2739,"llinebelow",7739,"llladeva",2356,"llvocalicbengali",2529,"llvocalicdeva",2401,"llvocalicvowelsignbengali",2531,"llvocalicvowelsigndeva",2403,"lmiddletilde",619,"lmonospace",65356,"lmsquare",13264,"lochulathai",3628,"logicaland",8743,"logicalnot",172,"logicalnotreversed",8976,"logicalor",8744,"lolingthai",3621,"longs",383,"lowlinecenterline",65102,"lowlinecmb",818,"lowlinedashed",65101,"lozenge",9674,"lparen",9383,"lslash",322,"lsquare",8467,"lsuperior",63214,"ltshade",9617,"luthai",3622,"lvocalicbengali",2444,"lvocalicdeva",2316,"lvocalicvowelsignbengali",2530,"lvocalicvowelsigndeva",2402,"lxsquare",13267,"m",109,"mabengali",2478,"macron",175,"macronbelowcmb",817,"macroncmb",772,"macronlowmod",717,"macronmonospace",65507,"macute",7743,"madeva",2350,"magujarati",2734,"magurmukhi",2606,"mahapakhhebrew",1444,"mahapakhlefthebrew",1444,"mahiragana",12414,"maichattawalowleftthai",63637,"maichattawalowrightthai",63636,"maichattawathai",3659,"maichattawaupperleftthai",63635,"maieklowleftthai",63628,"maieklowrightthai",63627,"maiekthai",3656,"maiekupperleftthai",63626,"maihanakatleftthai",63620,"maihanakatthai",3633,"maitaikhuleftthai",63625,"maitaikhuthai",3655,"maitholowleftthai",63631,"maitholowrightthai",63630,"maithothai",3657,"maithoupperleftthai",63629,"maitrilowleftthai",63634,"maitrilowrightthai",63633,"maitrithai",3658,"maitriupperleftthai",63632,"maiyamokthai",3654,"makatakana",12510,"makatakanahalfwidth",65423,"male",9794,"mansyonsquare",13127,"maqafhebrew",1470,"mars",9794,"masoracirclehebrew",1455,"masquare",13187,"mbopomofo",12551,"mbsquare",13268,"mcircle",9436,"mcubedsquare",13221,"mdotaccent",7745,"mdotbelow",7747,"meemarabic",1605,"meemfinalarabic",65250,"meeminitialarabic",65251,"meemmedialarabic",65252,"meemmeeminitialarabic",64721,"meemmeemisolatedarabic",64584,"meetorusquare",13133,"mehiragana",12417,"meizierasquare",13182,"mekatakana",12513,"mekatakanahalfwidth",65426,"mem",1502,"memdagesh",64318,"memdageshhebrew",64318,"memhebrew",1502,"menarmenian",1396,"merkhahebrew",1445,"merkhakefulahebrew",1446,"merkhakefulalefthebrew",1446,"merkhalefthebrew",1445,"mhook",625,"mhzsquare",13202,"middledotkatakanahalfwidth",65381,"middot",183,"mieumacirclekorean",12914,"mieumaparenkorean",12818,"mieumcirclekorean",12900,"mieumkorean",12609,"mieumpansioskorean",12656,"mieumparenkorean",12804,"mieumpieupkorean",12654,"mieumsioskorean",12655,"mihiragana",12415,"mikatakana",12511,"mikatakanahalfwidth",65424,"minus",8722,"minusbelowcmb",800,"minuscircle",8854,"minusmod",727,"minusplus",8723,"minute",8242,"miribaarusquare",13130,"mirisquare",13129,"mlonglegturned",624,"mlsquare",13206,"mmcubedsquare",13219,"mmonospace",65357,"mmsquaredsquare",13215,"mohiragana",12418,"mohmsquare",13249,"mokatakana",12514,"mokatakanahalfwidth",65427,"molsquare",13270,"momathai",3617,"moverssquare",13223,"moverssquaredsquare",13224,"mparen",9384,"mpasquare",13227,"mssquare",13235,"msuperior",63215,"mturned",623,"mu",181,"mu1",181,"muasquare",13186,"muchgreater",8811,"muchless",8810,"mufsquare",13196,"mugreek",956,"mugsquare",13197,"muhiragana",12416,"mukatakana",12512,"mukatakanahalfwidth",65425,"mulsquare",13205,"multiply",215,"mumsquare",13211,"munahhebrew",1443,"munahlefthebrew",1443,"musicalnote",9834,"musicalnotedbl",9835,"musicflatsign",9837,"musicsharpsign",9839,"mussquare",13234,"muvsquare",13238,"muwsquare",13244,"mvmegasquare",13241,"mvsquare",13239,"mwmegasquare",13247,"mwsquare",13245,"n",110,"nabengali",2472,"nabla",8711,"nacute",324,"nadeva",2344,"nagujarati",2728,"nagurmukhi",2600,"nahiragana",12394,"nakatakana",12490,"nakatakanahalfwidth",65413,"napostrophe",329,"nasquare",13185,"nbopomofo",12555,"nbspace",160,"ncaron",328,"ncedilla",326,"ncircle",9437,"ncircumflexbelow",7755,"ncommaaccent",326,"ndotaccent",7749,"ndotbelow",7751,"nehiragana",12397,"nekatakana",12493,"nekatakanahalfwidth",65416,"newsheqelsign",8362,"nfsquare",13195,"ngabengali",2457,"ngadeva",2329,"ngagujarati",2713,"ngagurmukhi",2585,"ngonguthai",3591,"nhiragana",12435,"nhookleft",626,"nhookretroflex",627,"nieunacirclekorean",12911,"nieunaparenkorean",12815,"nieuncieuckorean",12597,"nieuncirclekorean",12897,"nieunhieuhkorean",12598,"nieunkorean",12596,"nieunpansioskorean",12648,"nieunparenkorean",12801,"nieunsioskorean",12647,"nieuntikeutkorean",12646,"nihiragana",12395,"nikatakana",12491,"nikatakanahalfwidth",65414,"nikhahitleftthai",63641,"nikhahitthai",3661,"nine",57,"ninearabic",1641,"ninebengali",2543,"ninecircle",9320,"ninecircleinversesansserif",10130,"ninedeva",2415,"ninegujarati",2799,"ninegurmukhi",2671,"ninehackarabic",1641,"ninehangzhou",12329,"nineideographicparen",12840,"nineinferior",8329,"ninemonospace",65305,"nineoldstyle",63289,"nineparen",9340,"nineperiod",9360,"ninepersian",1785,"nineroman",8568,"ninesuperior",8313,"nineteencircle",9330,"nineteenparen",9350,"nineteenperiod",9370,"ninethai",3673,"nj",460,"njecyrillic",1114,"nkatakana",12531,"nkatakanahalfwidth",65437,"nlegrightlong",414,"nlinebelow",7753,"nmonospace",65358,"nmsquare",13210,"nnabengali",2467,"nnadeva",2339,"nnagujarati",2723,"nnagurmukhi",2595,"nnnadeva",2345,"nohiragana",12398,"nokatakana",12494,"nokatakanahalfwidth",65417,"nonbreakingspace",160,"nonenthai",3603,"nonuthai",3609,"noonarabic",1606,"noonfinalarabic",65254,"noonghunnaarabic",1722,"noonghunnafinalarabic",64415,"nooninitialarabic",65255,"noonjeeminitialarabic",64722,"noonjeemisolatedarabic",64587,"noonmedialarabic",65256,"noonmeeminitialarabic",64725,"noonmeemisolatedarabic",64590,"noonnoonfinalarabic",64653,"notcontains",8716,"notelement",8713,"notelementof",8713,"notequal",8800,"notgreater",8815,"notgreaternorequal",8817,"notgreaternorless",8825,"notidentical",8802,"notless",8814,"notlessnorequal",8816,"notparallel",8742,"notprecedes",8832,"notsubset",8836,"notsucceeds",8833,"notsuperset",8837,"nowarmenian",1398,"nparen",9385,"nssquare",13233,"nsuperior",8319,"ntilde",241,"nu",957,"nuhiragana",12396,"nukatakana",12492,"nukatakanahalfwidth",65415,"nuktabengali",2492,"nuktadeva",2364,"nuktagujarati",2748,"nuktagurmukhi",2620,"numbersign",35,"numbersignmonospace",65283,"numbersignsmall",65119,"numeralsigngreek",884,"numeralsignlowergreek",885,"numero",8470,"nun",1504,"nundagesh",64320,"nundageshhebrew",64320,"nunhebrew",1504,"nvsquare",13237,"nwsquare",13243,"nyabengali",2462,"nyadeva",2334,"nyagujarati",2718,"nyagurmukhi",2590,"o",111,"oacute",243,"oangthai",3629,"obarred",629,"obarredcyrillic",1257,"obarreddieresiscyrillic",1259,"obengali",2451,"obopomofo",12571,"obreve",335,"ocandradeva",2321,"ocandragujarati",2705,"ocandravowelsigndeva",2377,"ocandravowelsigngujarati",2761,"ocaron",466,"ocircle",9438,"ocircumflex",244,"ocircumflexacute",7889,"ocircumflexdotbelow",7897,"ocircumflexgrave",7891,"ocircumflexhookabove",7893,"ocircumflextilde",7895,"ocyrillic",1086,"odblacute",337,"odblgrave",525,"odeva",2323,"odieresis",246,"odieresiscyrillic",1255,"odotbelow",7885,"oe",339,"oekorean",12634,"ogonek",731,"ogonekcmb",808,"ograve",242,"ogujarati",2707,"oharmenian",1413,"ohiragana",12362,"ohookabove",7887,"ohorn",417,"ohornacute",7899,"ohorndotbelow",7907,"ohorngrave",7901,"ohornhookabove",7903,"ohorntilde",7905,"ohungarumlaut",337,"oi",419,"oinvertedbreve",527,"okatakana",12458,"okatakanahalfwidth",65397,"okorean",12631,"olehebrew",1451,"omacron",333,"omacronacute",7763,"omacrongrave",7761,"omdeva",2384,"omega",969,"omega1",982,"omegacyrillic",1121,"omegalatinclosed",631,"omegaroundcyrillic",1147,"omegatitlocyrillic",1149,"omegatonos",974,"omgujarati",2768,"omicron",959,"omicrontonos",972,"omonospace",65359,"one",49,"onearabic",1633,"onebengali",2535,"onecircle",9312,"onecircleinversesansserif",10122,"onedeva",2407,"onedotenleader",8228,"oneeighth",8539,"onefitted",63196,"onegujarati",2791,"onegurmukhi",2663,"onehackarabic",1633,"onehalf",189,"onehangzhou",12321,"oneideographicparen",12832,"oneinferior",8321,"onemonospace",65297,"onenumeratorbengali",2548,"oneoldstyle",63281,"oneparen",9332,"oneperiod",9352,"onepersian",1777,"onequarter",188,"oneroman",8560,"onesuperior",185,"onethai",3665,"onethird",8531,"oogonek",491,"oogonekmacron",493,"oogurmukhi",2579,"oomatragurmukhi",2635,"oopen",596,"oparen",9386,"openbullet",9702,"option",8997,"ordfeminine",170,"ordmasculine",186,"orthogonal",8735,"oshortdeva",2322,"oshortvowelsigndeva",2378,"oslash",248,"oslashacute",511,"osmallhiragana",12361,"osmallkatakana",12457,"osmallkatakanahalfwidth",65387,"ostrokeacute",511,"osuperior",63216,"otcyrillic",1151,"otilde",245,"otildeacute",7757,"otildedieresis",7759,"oubopomofo",12577,"overline",8254,"overlinecenterline",65098,"overlinecmb",773,"overlinedashed",65097,"overlinedblwavy",65100,"overlinewavy",65099,"overscore",175,"ovowelsignbengali",2507,"ovowelsigndeva",2379,"ovowelsigngujarati",2763,"p",112,"paampssquare",13184,"paasentosquare",13099,"pabengali",2474,"pacute",7765,"padeva",2346,"pagedown",8671,"pageup",8670,"pagujarati",2730,"pagurmukhi",2602,"pahiragana",12401,"paiyannoithai",3631,"pakatakana",12497,"palatalizationcyrilliccmb",1156,"palochkacyrillic",1216,"pansioskorean",12671,"paragraph",182,"parallel",8741,"parenleft",40,"parenleftaltonearabic",64830,"parenleftbt",63725,"parenleftex",63724,"parenleftinferior",8333,"parenleftmonospace",65288,"parenleftsmall",65113,"parenleftsuperior",8317,"parenlefttp",63723,"parenleftvertical",65077,"parenright",41,"parenrightaltonearabic",64831,"parenrightbt",63736,"parenrightex",63735,"parenrightinferior",8334,"parenrightmonospace",65289,"parenrightsmall",65114,"parenrightsuperior",8318,"parenrighttp",63734,"parenrightvertical",65078,"partialdiff",8706,"paseqhebrew",1472,"pashtahebrew",1433,"pasquare",13225,"patah",1463,"patah11",1463,"patah1d",1463,"patah2a",1463,"patahhebrew",1463,"patahnarrowhebrew",1463,"patahquarterhebrew",1463,"patahwidehebrew",1463,"pazerhebrew",1441,"pbopomofo",12550,"pcircle",9439,"pdotaccent",7767,"pe",1508,"pecyrillic",1087,"pedagesh",64324,"pedageshhebrew",64324,"peezisquare",13115,"pefinaldageshhebrew",64323,"peharabic",1662,"peharmenian",1402,"pehebrew",1508,"pehfinalarabic",64343,"pehinitialarabic",64344,"pehiragana",12410,"pehmedialarabic",64345,"pekatakana",12506,"pemiddlehookcyrillic",1191,"perafehebrew",64334,"percent",37,"percentarabic",1642,"percentmonospace",65285,"percentsmall",65130,"period",46,"periodarmenian",1417,"periodcentered",183,"periodhalfwidth",65377,"periodinferior",63207,"periodmonospace",65294,"periodsmall",65106,"periodsuperior",63208,"perispomenigreekcmb",834,"perpendicular",8869,"perthousand",8240,"peseta",8359,"pfsquare",13194,"phabengali",2475,"phadeva",2347,"phagujarati",2731,"phagurmukhi",2603,"phi",966,"phi1",981,"phieuphacirclekorean",12922,"phieuphaparenkorean",12826,"phieuphcirclekorean",12908,"phieuphkorean",12621,"phieuphparenkorean",12812,"philatin",632,"phinthuthai",3642,"phisymbolgreek",981,"phook",421,"phophanthai",3614,"phophungthai",3612,"phosamphaothai",3616,"pi",960,"pieupacirclekorean",12915,"pieupaparenkorean",12819,"pieupcieuckorean",12662,"pieupcirclekorean",12901,"pieupkiyeokkorean",12658,"pieupkorean",12610,"pieupparenkorean",12805,"pieupsioskiyeokkorean",12660,"pieupsioskorean",12612,"pieupsiostikeutkorean",12661,"pieupthieuthkorean",12663,"pieuptikeutkorean",12659,"pihiragana",12404,"pikatakana",12500,"pisymbolgreek",982,"piwrarmenian",1411,"plus",43,"plusbelowcmb",799,"pluscircle",8853,"plusminus",177,"plusmod",726,"plusmonospace",65291,"plussmall",65122,"plussuperior",8314,"pmonospace",65360,"pmsquare",13272,"pohiragana",12413,"pointingindexdownwhite",9759,"pointingindexleftwhite",9756,"pointingindexrightwhite",9758,"pointingindexupwhite",9757,"pokatakana",12509,"poplathai",3611,"postalmark",12306,"postalmarkface",12320,"pparen",9387,"precedes",8826,"prescription",8478,"primemod",697,"primereversed",8245,"product",8719,"projective",8965,"prolongedkana",12540,"propellor",8984,"propersubset",8834,"propersuperset",8835,"proportion",8759,"proportional",8733,"psi",968,"psicyrillic",1137,"psilipneumatacyrilliccmb",1158,"pssquare",13232,"puhiragana",12407,"pukatakana",12503,"pvsquare",13236,"pwsquare",13242,"q",113,"qadeva",2392,"qadmahebrew",1448,"qafarabic",1602,"qaffinalarabic",65238,"qafinitialarabic",65239,"qafmedialarabic",65240,"qamats",1464,"qamats10",1464,"qamats1a",1464,"qamats1c",1464,"qamats27",1464,"qamats29",1464,"qamats33",1464,"qamatsde",1464,"qamatshebrew",1464,"qamatsnarrowhebrew",1464,"qamatsqatanhebrew",1464,"qamatsqatannarrowhebrew",1464,"qamatsqatanquarterhebrew",1464,"qamatsqatanwidehebrew",1464,"qamatsquarterhebrew",1464,"qamatswidehebrew",1464,"qarneyparahebrew",1439,"qbopomofo",12561,"qcircle",9440,"qhook",672,"qmonospace",65361,"qof",1511,"qofdagesh",64327,"qofdageshhebrew",64327,"qofhebrew",1511,"qparen",9388,"quarternote",9833,"qubuts",1467,"qubuts18",1467,"qubuts25",1467,"qubuts31",1467,"qubutshebrew",1467,"qubutsnarrowhebrew",1467,"qubutsquarterhebrew",1467,"qubutswidehebrew",1467,"question",63,"questionarabic",1567,"questionarmenian",1374,"questiondown",191,"questiondownsmall",63423,"questiongreek",894,"questionmonospace",65311,"questionsmall",63295,"quotedbl",34,"quotedblbase",8222,"quotedblleft",8220,"quotedblmonospace",65282,"quotedblprime",12318,"quotedblprimereversed",12317,"quotedblright",8221,"quoteleft",8216,"quoteleftreversed",8219,"quotereversed",8219,"quoteright",8217,"quoterightn",329,"quotesinglbase",8218,"quotesingle",39,"quotesinglemonospace",65287,"r",114,"raarmenian",1404,"rabengali",2480,"racute",341,"radeva",2352,"radical",8730,"radicalex",63717,"radoverssquare",13230,"radoverssquaredsquare",13231,"radsquare",13229,"rafe",1471,"rafehebrew",1471,"ragujarati",2736,"ragurmukhi",2608,"rahiragana",12425,"rakatakana",12521,"rakatakanahalfwidth",65431,"ralowerdiagonalbengali",2545,"ramiddlediagonalbengali",2544,"ramshorn",612,"ratio",8758,"rbopomofo",12566,"rcaron",345,"rcedilla",343,"rcircle",9441,"rcommaaccent",343,"rdblgrave",529,"rdotaccent",7769,"rdotbelow",7771,"rdotbelowmacron",7773,"referencemark",8251,"reflexsubset",8838,"reflexsuperset",8839,"registered",174,"registersans",63720,"registerserif",63194,"reharabic",1585,"reharmenian",1408,"rehfinalarabic",65198,"rehiragana",12428,"rekatakana",12524,"rekatakanahalfwidth",65434,"resh",1512,"reshdageshhebrew",64328,"reshhebrew",1512,"reversedtilde",8765,"reviahebrew",1431,"reviamugrashhebrew",1431,"revlogicalnot",8976,"rfishhook",638,"rfishhookreversed",639,"rhabengali",2525,"rhadeva",2397,"rho",961,"rhook",637,"rhookturned",635,"rhookturnedsuperior",693,"rhosymbolgreek",1009,"rhotichookmod",734,"rieulacirclekorean",12913,"rieulaparenkorean",12817,"rieulcirclekorean",12899,"rieulhieuhkorean",12608,"rieulkiyeokkorean",12602,"rieulkiyeoksioskorean",12649,"rieulkorean",12601,"rieulmieumkorean",12603,"rieulpansioskorean",12652,"rieulparenkorean",12803,"rieulphieuphkorean",12607,"rieulpieupkorean",12604,"rieulpieupsioskorean",12651,"rieulsioskorean",12605,"rieulthieuthkorean",12606,"rieultikeutkorean",12650,"rieulyeorinhieuhkorean",12653,"rightangle",8735,"righttackbelowcmb",793,"righttriangle",8895,"rihiragana",12426,"rikatakana",12522,"rikatakanahalfwidth",65432,"ring",730,"ringbelowcmb",805,"ringcmb",778,"ringhalfleft",703,"ringhalfleftarmenian",1369,"ringhalfleftbelowcmb",796,"ringhalfleftcentered",723,"ringhalfright",702,"ringhalfrightbelowcmb",825,"ringhalfrightcentered",722,"rinvertedbreve",531,"rittorusquare",13137,"rlinebelow",7775,"rlongleg",636,"rlonglegturned",634,"rmonospace",65362,"rohiragana",12429,"rokatakana",12525,"rokatakanahalfwidth",65435,"roruathai",3619,"rparen",9389,"rrabengali",2524,"rradeva",2353,"rragurmukhi",2652,"rreharabic",1681,"rrehfinalarabic",64397,"rrvocalicbengali",2528,"rrvocalicdeva",2400,"rrvocalicgujarati",2784,"rrvocalicvowelsignbengali",2500,"rrvocalicvowelsigndeva",2372,"rrvocalicvowelsigngujarati",2756,"rsuperior",63217,"rtblock",9616,"rturned",633,"rturnedsuperior",692,"ruhiragana",12427,"rukatakana",12523,"rukatakanahalfwidth",65433,"rupeemarkbengali",2546,"rupeesignbengali",2547,"rupiah",63197,"ruthai",3620,"rvocalicbengali",2443,"rvocalicdeva",2315,"rvocalicgujarati",2699,"rvocalicvowelsignbengali",2499,"rvocalicvowelsigndeva",2371,"rvocalicvowelsigngujarati",2755,"s",115,"sabengali",2488,"sacute",347,"sacutedotaccent",7781,"sadarabic",1589,"sadeva",2360,"sadfinalarabic",65210,"sadinitialarabic",65211,"sadmedialarabic",65212,"sagujarati",2744,"sagurmukhi",2616,"sahiragana",12373,"sakatakana",12469,"sakatakanahalfwidth",65403,"sallallahoualayhewasallamarabic",65018,"samekh",1505,"samekhdagesh",64321,"samekhdageshhebrew",64321,"samekhhebrew",1505,"saraaathai",3634,"saraaethai",3649,"saraaimaimalaithai",3652,"saraaimaimuanthai",3651,"saraamthai",3635,"saraathai",3632,"saraethai",3648,"saraiileftthai",63622,"saraiithai",3637,"saraileftthai",63621,"saraithai",3636,"saraothai",3650,"saraueeleftthai",63624,"saraueethai",3639,"saraueleftthai",63623,"sarauethai",3638,"sarauthai",3640,"sarauuthai",3641,"sbopomofo",12569,"scaron",353,"scarondotaccent",7783,"scedilla",351,"schwa",601,"schwacyrillic",1241,"schwadieresiscyrillic",1243,"schwahook",602,"scircle",9442,"scircumflex",349,"scommaaccent",537,"sdotaccent",7777,"sdotbelow",7779,"sdotbelowdotaccent",7785,"seagullbelowcmb",828,"second",8243,"secondtonechinese",714,"section",167,"seenarabic",1587,"seenfinalarabic",65202,"seeninitialarabic",65203,"seenmedialarabic",65204,"segol",1462,"segol13",1462,"segol1f",1462,"segol2c",1462,"segolhebrew",1462,"segolnarrowhebrew",1462,"segolquarterhebrew",1462,"segoltahebrew",1426,"segolwidehebrew",1462,"seharmenian",1405,"sehiragana",12379,"sekatakana",12475,"sekatakanahalfwidth",65406,"semicolon",59,"semicolonarabic",1563,"semicolonmonospace",65307,"semicolonsmall",65108,"semivoicedmarkkana",12444,"semivoicedmarkkanahalfwidth",65439,"sentisquare",13090,"sentosquare",13091,"seven",55,"sevenarabic",1639,"sevenbengali",2541,"sevencircle",9318,"sevencircleinversesansserif",10128,"sevendeva",2413,"seveneighths",8542,"sevengujarati",2797,"sevengurmukhi",2669,"sevenhackarabic",1639,"sevenhangzhou",12327,"sevenideographicparen",12838,"seveninferior",8327,"sevenmonospace",65303,"sevenoldstyle",63287,"sevenparen",9338,"sevenperiod",9358,"sevenpersian",1783,"sevenroman",8566,"sevensuperior",8311,"seventeencircle",9328,"seventeenparen",9348,"seventeenperiod",9368,"seventhai",3671,"sfthyphen",173,"shaarmenian",1399,"shabengali",2486,"shacyrillic",1096,"shaddaarabic",1617,"shaddadammaarabic",64609,"shaddadammatanarabic",64606,"shaddafathaarabic",64608,"shaddakasraarabic",64610,"shaddakasratanarabic",64607,"shade",9618,"shadedark",9619,"shadelight",9617,"shademedium",9618,"shadeva",2358,"shagujarati",2742,"shagurmukhi",2614,"shalshelethebrew",1427,"shbopomofo",12565,"shchacyrillic",1097,"sheenarabic",1588,"sheenfinalarabic",65206,"sheeninitialarabic",65207,"sheenmedialarabic",65208,"sheicoptic",995,"sheqel",8362,"sheqelhebrew",8362,"sheva",1456,"sheva115",1456,"sheva15",1456,"sheva22",1456,"sheva2e",1456,"shevahebrew",1456,"shevanarrowhebrew",1456,"shevaquarterhebrew",1456,"shevawidehebrew",1456,"shhacyrillic",1211,"shimacoptic",1005,"shin",1513,"shindagesh",64329,"shindageshhebrew",64329,"shindageshshindot",64300,"shindageshshindothebrew",64300,"shindageshsindot",64301,"shindageshsindothebrew",64301,"shindothebrew",1473,"shinhebrew",1513,"shinshindot",64298,"shinshindothebrew",64298,"shinsindot",64299,"shinsindothebrew",64299,"shook",642,"sigma",963,"sigma1",962,"sigmafinal",962,"sigmalunatesymbolgreek",1010,"sihiragana",12375,"sikatakana",12471,"sikatakanahalfwidth",65404,"siluqhebrew",1469,"siluqlefthebrew",1469,"similar",8764,"sindothebrew",1474,"siosacirclekorean",12916,"siosaparenkorean",12820,"sioscieuckorean",12670,"sioscirclekorean",12902,"sioskiyeokkorean",12666,"sioskorean",12613,"siosnieunkorean",12667,"siosparenkorean",12806,"siospieupkorean",12669,"siostikeutkorean",12668,"six",54,"sixarabic",1638,"sixbengali",2540,"sixcircle",9317,"sixcircleinversesansserif",10127,"sixdeva",2412,"sixgujarati",2796,"sixgurmukhi",2668,"sixhackarabic",1638,"sixhangzhou",12326,"sixideographicparen",12837,"sixinferior",8326,"sixmonospace",65302,"sixoldstyle",63286,"sixparen",9337,"sixperiod",9357,"sixpersian",1782,"sixroman",8565,"sixsuperior",8310,"sixteencircle",9327,"sixteencurrencydenominatorbengali",2553,"sixteenparen",9347,"sixteenperiod",9367,"sixthai",3670,"slash",47,"slashmonospace",65295,"slong",383,"slongdotaccent",7835,"smileface",9786,"smonospace",65363,"sofpasuqhebrew",1475,"softhyphen",173,"softsigncyrillic",1100,"sohiragana",12381,"sokatakana",12477,"sokatakanahalfwidth",65407,"soliduslongoverlaycmb",824,"solidusshortoverlaycmb",823,"sorusithai",3625,"sosalathai",3624,"sosothai",3595,"sosuathai",3626,"space",32,"spacehackarabic",32,"spade",9824,"spadesuitblack",9824,"spadesuitwhite",9828,"sparen",9390,"squarebelowcmb",827,"squarecc",13252,"squarecm",13213,"squarediagonalcrosshatchfill",9641,"squarehorizontalfill",9636,"squarekg",13199,"squarekm",13214,"squarekmcapital",13262,"squareln",13265,"squarelog",13266,"squaremg",13198,"squaremil",13269,"squaremm",13212,"squaremsquared",13217,"squareorthogonalcrosshatchfill",9638,"squareupperlefttolowerrightfill",9639,"squareupperrighttolowerleftfill",9640,"squareverticalfill",9637,"squarewhitewithsmallblack",9635,"srsquare",13275,"ssabengali",2487,"ssadeva",2359,"ssagujarati",2743,"ssangcieuckorean",12617,"ssanghieuhkorean",12677,"ssangieungkorean",12672,"ssangkiyeokkorean",12594,"ssangnieunkorean",12645,"ssangpieupkorean",12611,"ssangsioskorean",12614,"ssangtikeutkorean",12600,"ssuperior",63218,"sterling",163,"sterlingmonospace",65505,"strokelongoverlaycmb",822,"strokeshortoverlaycmb",821,"subset",8834,"subsetnotequal",8842,"subsetorequal",8838,"succeeds",8827,"suchthat",8715,"suhiragana",12377,"sukatakana",12473,"sukatakanahalfwidth",65405,"sukunarabic",1618,"summation",8721,"sun",9788,"superset",8835,"supersetnotequal",8843,"supersetorequal",8839,"svsquare",13276,"syouwaerasquare",13180,"t",116,"tabengali",2468,"tackdown",8868,"tackleft",8867,"tadeva",2340,"tagujarati",2724,"tagurmukhi",2596,"taharabic",1591,"tahfinalarabic",65218,"tahinitialarabic",65219,"tahiragana",12383,"tahmedialarabic",65220,"taisyouerasquare",13181,"takatakana",12479,"takatakanahalfwidth",65408,"tatweelarabic",1600,"tau",964,"tav",1514,"tavdages",64330,"tavdagesh",64330,"tavdageshhebrew",64330,"tavhebrew",1514,"tbar",359,"tbopomofo",12554,"tcaron",357,"tccurl",680,"tcedilla",355,"tcheharabic",1670,"tchehfinalarabic",64379,"tchehinitialarabic",64380,"tchehmedialarabic",64381,"tcircle",9443,"tcircumflexbelow",7793,"tcommaaccent",355,"tdieresis",7831,"tdotaccent",7787,"tdotbelow",7789,"tecyrillic",1090,"tedescendercyrillic",1197,"teharabic",1578,"tehfinalarabic",65174,"tehhahinitialarabic",64674,"tehhahisolatedarabic",64524,"tehinitialarabic",65175,"tehiragana",12390,"tehjeeminitialarabic",64673,"tehjeemisolatedarabic",64523,"tehmarbutaarabic",1577,"tehmarbutafinalarabic",65172,"tehmedialarabic",65176,"tehmeeminitialarabic",64676,"tehmeemisolatedarabic",64526,"tehnoonfinalarabic",64627,"tekatakana",12486,"tekatakanahalfwidth",65411,"telephone",8481,"telephoneblack",9742,"telishagedolahebrew",1440,"telishaqetanahebrew",1449,"tencircle",9321,"tenideographicparen",12841,"tenparen",9341,"tenperiod",9361,"tenroman",8569,"tesh",679,"tet",1496,"tetdagesh",64312,"tetdageshhebrew",64312,"tethebrew",1496,"tetsecyrillic",1205,"tevirhebrew",1435,"tevirlefthebrew",1435,"thabengali",2469,"thadeva",2341,"thagujarati",2725,"thagurmukhi",2597,"thalarabic",1584,"thalfinalarabic",65196,"thanthakhatlowleftthai",63640,"thanthakhatlowrightthai",63639,"thanthakhatthai",3660,"thanthakhatupperleftthai",63638,"theharabic",1579,"thehfinalarabic",65178,"thehinitialarabic",65179,"thehmedialarabic",65180,"thereexists",8707,"therefore",8756,"theta",952,"theta1",977,"thetasymbolgreek",977,"thieuthacirclekorean",12921,"thieuthaparenkorean",12825,"thieuthcirclekorean",12907,"thieuthkorean",12620,"thieuthparenkorean",12811,"thirteencircle",9324,"thirteenparen",9344,"thirteenperiod",9364,"thonangmonthothai",3601,"thook",429,"thophuthaothai",3602,"thorn",254,"thothahanthai",3607,"thothanthai",3600,"thothongthai",3608,"thothungthai",3606,"thousandcyrillic",1154,"thousandsseparatorarabic",1644,"thousandsseparatorpersian",1644,"three",51,"threearabic",1635,"threebengali",2537,"threecircle",9314,"threecircleinversesansserif",10124,"threedeva",2409,"threeeighths",8540,"threegujarati",2793,"threegurmukhi",2665,"threehackarabic",1635,"threehangzhou",12323,"threeideographicparen",12834,"threeinferior",8323,"threemonospace",65299,"threenumeratorbengali",2550,"threeoldstyle",63283,"threeparen",9334,"threeperiod",9354,"threepersian",1779,"threequarters",190,"threequartersemdash",63198,"threeroman",8562,"threesuperior",179,"threethai",3667,"thzsquare",13204,"tihiragana",12385,"tikatakana",12481,"tikatakanahalfwidth",65409,"tikeutacirclekorean",12912,"tikeutaparenkorean",12816,"tikeutcirclekorean",12898,"tikeutkorean",12599,"tikeutparenkorean",12802,"tilde",732,"tildebelowcmb",816,"tildecmb",771,"tildecomb",771,"tildedoublecmb",864,"tildeoperator",8764,"tildeoverlaycmb",820,"tildeverticalcmb",830,"timescircle",8855,"tipehahebrew",1430,"tipehalefthebrew",1430,"tippigurmukhi",2672,"titlocyrilliccmb",1155,"tiwnarmenian",1407,"tlinebelow",7791,"tmonospace",65364,"toarmenian",1385,"tohiragana",12392,"tokatakana",12488,"tokatakanahalfwidth",65412,"tonebarextrahighmod",741,"tonebarextralowmod",745,"tonebarhighmod",742,"tonebarlowmod",744,"tonebarmidmod",743,"tonefive",445,"tonesix",389,"tonetwo",424,"tonos",900,"tonsquare",13095,"topatakthai",3599,"tortoiseshellbracketleft",12308,"tortoiseshellbracketleftsmall",65117,"tortoiseshellbracketleftvertical",65081,"tortoiseshellbracketright",12309,"tortoiseshellbracketrightsmall",65118,"tortoiseshellbracketrightvertical",65082,"totaothai",3605,"tpalatalhook",427,"tparen",9391,"trademark",8482,"trademarksans",63722,"trademarkserif",63195,"tretroflexhook",648,"triagdn",9660,"triaglf",9668,"triagrt",9658,"triagup",9650,"ts",678,"tsadi",1510,"tsadidagesh",64326,"tsadidageshhebrew",64326,"tsadihebrew",1510,"tsecyrillic",1094,"tsere",1461,"tsere12",1461,"tsere1e",1461,"tsere2b",1461,"tserehebrew",1461,"tserenarrowhebrew",1461,"tserequarterhebrew",1461,"tserewidehebrew",1461,"tshecyrillic",1115,"tsuperior",63219,"ttabengali",2463,"ttadeva",2335,"ttagujarati",2719,"ttagurmukhi",2591,"tteharabic",1657,"ttehfinalarabic",64359,"ttehinitialarabic",64360,"ttehmedialarabic",64361,"tthabengali",2464,"tthadeva",2336,"tthagujarati",2720,"tthagurmukhi",2592,"tturned",647,"tuhiragana",12388,"tukatakana",12484,"tukatakanahalfwidth",65410,"tusmallhiragana",12387,"tusmallkatakana",12483,"tusmallkatakanahalfwidth",65391,"twelvecircle",9323,"twelveparen",9343,"twelveperiod",9363,"twelveroman",8571,"twentycircle",9331,"twentyhangzhou",21316,"twentyparen",9351,"twentyperiod",9371,"two",50,"twoarabic",1634,"twobengali",2536,"twocircle",9313,"twocircleinversesansserif",10123,"twodeva",2408,"twodotenleader",8229,"twodotleader",8229,"twodotleadervertical",65072,"twogujarati",2792,"twogurmukhi",2664,"twohackarabic",1634,"twohangzhou",12322,"twoideographicparen",12833,"twoinferior",8322,"twomonospace",65298,"twonumeratorbengali",2549,"twooldstyle",63282,"twoparen",9333,"twoperiod",9353,"twopersian",1778,"tworoman",8561,"twostroke",443,"twosuperior",178,"twothai",3666,"twothirds",8532,"u",117,"uacute",250,"ubar",649,"ubengali",2441,"ubopomofo",12584,"ubreve",365,"ucaron",468,"ucircle",9444,"ucircumflex",251,"ucircumflexbelow",7799,"ucyrillic",1091,"udattadeva",2385,"udblacute",369,"udblgrave",533,"udeva",2313,"udieresis",252,"udieresisacute",472,"udieresisbelow",7795,"udieresiscaron",474,"udieresiscyrillic",1265,"udieresisgrave",476,"udieresismacron",470,"udotbelow",7909,"ugrave",249,"ugujarati",2697,"ugurmukhi",2569,"uhiragana",12358,"uhookabove",7911,"uhorn",432,"uhornacute",7913,"uhorndotbelow",7921,"uhorngrave",7915,"uhornhookabove",7917,"uhorntilde",7919,"uhungarumlaut",369,"uhungarumlautcyrillic",1267,"uinvertedbreve",535,"ukatakana",12454,"ukatakanahalfwidth",65395,"ukcyrillic",1145,"ukorean",12636,"umacron",363,"umacroncyrillic",1263,"umacrondieresis",7803,"umatragurmukhi",2625,"umonospace",65365,"underscore",95,"underscoredbl",8215,"underscoremonospace",65343,"underscorevertical",65075,"underscorewavy",65103,"union",8746,"universal",8704,"uogonek",371,"uparen",9392,"upblock",9600,"upperdothebrew",1476,"upsilon",965,"upsilondieresis",971,"upsilondieresistonos",944,"upsilonlatin",650,"upsilontonos",973,"uptackbelowcmb",797,"uptackmod",724,"uragurmukhi",2675,"uring",367,"ushortcyrillic",1118,"usmallhiragana",12357,"usmallkatakana",12453,"usmallkatakanahalfwidth",65385,"ustraightcyrillic",1199,"ustraightstrokecyrillic",1201,"utilde",361,"utildeacute",7801,"utildebelow",7797,"uubengali",2442,"uudeva",2314,"uugujarati",2698,"uugurmukhi",2570,"uumatragurmukhi",2626,"uuvowelsignbengali",2498,"uuvowelsigndeva",2370,"uuvowelsigngujarati",2754,"uvowelsignbengali",2497,"uvowelsigndeva",2369,"uvowelsigngujarati",2753,"v",118,"vadeva",2357,"vagujarati",2741,"vagurmukhi",2613,"vakatakana",12535,"vav",1493,"vavdagesh",64309,"vavdagesh65",64309,"vavdageshhebrew",64309,"vavhebrew",1493,"vavholam",64331,"vavholamhebrew",64331,"vavvavhebrew",1520,"vavyodhebrew",1521,"vcircle",9445,"vdotbelow",7807,"vecyrillic",1074,"veharabic",1700,"vehfinalarabic",64363,"vehinitialarabic",64364,"vehmedialarabic",64365,"vekatakana",12537,"venus",9792,"verticalbar",124,"verticallineabovecmb",781,"verticallinebelowcmb",809,"verticallinelowmod",716,"verticallinemod",712,"vewarmenian",1406,"vhook",651,"vikatakana",12536,"viramabengali",2509,"viramadeva",2381,"viramagujarati",2765,"visargabengali",2435,"visargadeva",2307,"visargagujarati",2691,"vmonospace",65366,"voarmenian",1400,"voicediterationhiragana",12446,"voicediterationkatakana",12542,"voicedmarkkana",12443,"voicedmarkkanahalfwidth",65438,"vokatakana",12538,"vparen",9393,"vtilde",7805,"vturned",652,"vuhiragana",12436,"vukatakana",12532,"w",119,"wacute",7811,"waekorean",12633,"wahiragana",12431,"wakatakana",12527,"wakatakanahalfwidth",65436,"wakorean",12632,"wasmallhiragana",12430,"wasmallkatakana",12526,"wattosquare",13143,"wavedash",12316,"wavyunderscorevertical",65076,"wawarabic",1608,"wawfinalarabic",65262,"wawhamzaabovearabic",1572,"wawhamzaabovefinalarabic",65158,"wbsquare",13277,"wcircle",9446,"wcircumflex",373,"wdieresis",7813,"wdotaccent",7815,"wdotbelow",7817,"wehiragana",12433,"weierstrass",8472,"wekatakana",12529,"wekorean",12638,"weokorean",12637,"wgrave",7809,"whitebullet",9702,"whitecircle",9675,"whitecircleinverse",9689,"whitecornerbracketleft",12302,"whitecornerbracketleftvertical",65091,"whitecornerbracketright",12303,"whitecornerbracketrightvertical",65092,"whitediamond",9671,"whitediamondcontainingblacksmalldiamond",9672,"whitedownpointingsmalltriangle",9663,"whitedownpointingtriangle",9661,"whiteleftpointingsmalltriangle",9667,"whiteleftpointingtriangle",9665,"whitelenticularbracketleft",12310,"whitelenticularbracketright",12311,"whiterightpointingsmalltriangle",9657,"whiterightpointingtriangle",9655,"whitesmallsquare",9643,"whitesmilingface",9786,"whitesquare",9633,"whitestar",9734,"whitetelephone",9743,"whitetortoiseshellbracketleft",12312,"whitetortoiseshellbracketright",12313,"whiteuppointingsmalltriangle",9653,"whiteuppointingtriangle",9651,"wihiragana",12432,"wikatakana",12528,"wikorean",12639,"wmonospace",65367,"wohiragana",12434,"wokatakana",12530,"wokatakanahalfwidth",65382,"won",8361,"wonmonospace",65510,"wowaenthai",3623,"wparen",9394,"wring",7832,"wsuperior",695,"wturned",653,"wynn",447,"x",120,"xabovecmb",829,"xbopomofo",12562,"xcircle",9447,"xdieresis",7821,"xdotaccent",7819,"xeharmenian",1389,"xi",958,"xmonospace",65368,"xparen",9395,"xsuperior",739,"y",121,"yaadosquare",13134,"yabengali",2479,"yacute",253,"yadeva",2351,"yaekorean",12626,"yagujarati",2735,"yagurmukhi",2607,"yahiragana",12420,"yakatakana",12516,"yakatakanahalfwidth",65428,"yakorean",12625,"yamakkanthai",3662,"yasmallhiragana",12419,"yasmallkatakana",12515,"yasmallkatakanahalfwidth",65388,"yatcyrillic",1123,"ycircle",9448,"ycircumflex",375,"ydieresis",255,"ydotaccent",7823,"ydotbelow",7925,"yeharabic",1610,"yehbarreearabic",1746,"yehbarreefinalarabic",64431,"yehfinalarabic",65266,"yehhamzaabovearabic",1574,"yehhamzaabovefinalarabic",65162,"yehhamzaaboveinitialarabic",65163,"yehhamzaabovemedialarabic",65164,"yehinitialarabic",65267,"yehmedialarabic",65268,"yehmeeminitialarabic",64733,"yehmeemisolatedarabic",64600,"yehnoonfinalarabic",64660,"yehthreedotsbelowarabic",1745,"yekorean",12630,"yen",165,"yenmonospace",65509,"yeokorean",12629,"yeorinhieuhkorean",12678,"yerahbenyomohebrew",1450,"yerahbenyomolefthebrew",1450,"yericyrillic",1099,"yerudieresiscyrillic",1273,"yesieungkorean",12673,"yesieungpansioskorean",12675,"yesieungsioskorean",12674,"yetivhebrew",1434,"ygrave",7923,"yhook",436,"yhookabove",7927,"yiarmenian",1397,"yicyrillic",1111,"yikorean",12642,"yinyang",9775,"yiwnarmenian",1410,"ymonospace",65369,"yod",1497,"yoddagesh",64313,"yoddageshhebrew",64313,"yodhebrew",1497,"yodyodhebrew",1522,"yodyodpatahhebrew",64287,"yohiragana",12424,"yoikorean",12681,"yokatakana",12520,"yokatakanahalfwidth",65430,"yokorean",12635,"yosmallhiragana",12423,"yosmallkatakana",12519,"yosmallkatakanahalfwidth",65390,"yotgreek",1011,"yoyaekorean",12680,"yoyakorean",12679,"yoyakthai",3618,"yoyingthai",3597,"yparen",9396,"ypogegrammeni",890,"ypogegrammenigreekcmb",837,"yr",422,"yring",7833,"ysuperior",696,"ytilde",7929,"yturned",654,"yuhiragana",12422,"yuikorean",12684,"yukatakana",12518,"yukatakanahalfwidth",65429,"yukorean",12640,"yusbigcyrillic",1131,"yusbigiotifiedcyrillic",1133,"yuslittlecyrillic",1127,"yuslittleiotifiedcyrillic",1129,"yusmallhiragana",12421,"yusmallkatakana",12517,"yusmallkatakanahalfwidth",65389,"yuyekorean",12683,"yuyeokorean",12682,"yyabengali",2527,"yyadeva",2399,"z",122,"zaarmenian",1382,"zacute",378,"zadeva",2395,"zagurmukhi",2651,"zaharabic",1592,"zahfinalarabic",65222,"zahinitialarabic",65223,"zahiragana",12374,"zahmedialarabic",65224,"zainarabic",1586,"zainfinalarabic",65200,"zakatakana",12470,"zaqefgadolhebrew",1429,"zaqefqatanhebrew",1428,"zarqahebrew",1432,"zayin",1494,"zayindagesh",64310,"zayindageshhebrew",64310,"zayinhebrew",1494,"zbopomofo",12567,"zcaron",382,"zcircle",9449,"zcircumflex",7825,"zcurl",657,"zdot",380,"zdotaccent",380,"zdotbelow",7827,"zecyrillic",1079,"zedescendercyrillic",1177,"zedieresiscyrillic",1247,"zehiragana",12380,"zekatakana",12476,"zero",48,"zeroarabic",1632,"zerobengali",2534,"zerodeva",2406,"zerogujarati",2790,"zerogurmukhi",2662,"zerohackarabic",1632,"zeroinferior",8320,"zeromonospace",65296,"zerooldstyle",63280,"zeropersian",1776,"zerosuperior",8304,"zerothai",3664,"zerowidthjoiner",65279,"zerowidthnonjoiner",8204,"zerowidthspace",8203,"zeta",950,"zhbopomofo",12563,"zhearmenian",1386,"zhebrevecyrillic",1218,"zhecyrillic",1078,"zhedescendercyrillic",1175,"zhedieresiscyrillic",1245,"zihiragana",12376,"zikatakana",12472,"zinorhebrew",1454,"zlinebelow",7829,"zmonospace",65370,"zohiragana",12382,"zokatakana",12478,"zparen",9397,"zretroflexhook",656,"zstroke",438,"zuhiragana",12378,"zukatakana",12474,".notdef",0,"angbracketleftbig",9001,"angbracketleftBig",9001,"angbracketleftbigg",9001,"angbracketleftBigg",9001,"angbracketrightBig",9002,"angbracketrightbig",9002,"angbracketrightBigg",9002,"angbracketrightbigg",9002,"arrowhookleft",8618,"arrowhookright",8617,"arrowlefttophalf",8636,"arrowleftbothalf",8637,"arrownortheast",8599,"arrownorthwest",8598,"arrowrighttophalf",8640,"arrowrightbothalf",8641,"arrowsoutheast",8600,"arrowsouthwest",8601,"backslashbig",8726,"backslashBig",8726,"backslashBigg",8726,"backslashbigg",8726,"bardbl",8214,"bracehtipdownleft",65079,"bracehtipdownright",65079,"bracehtipupleft",65080,"bracehtipupright",65080,"braceleftBig",123,"braceleftbig",123,"braceleftbigg",123,"braceleftBigg",123,"bracerightBig",125,"bracerightbig",125,"bracerightbigg",125,"bracerightBigg",125,"bracketleftbig",91,"bracketleftBig",91,"bracketleftbigg",91,"bracketleftBigg",91,"bracketrightBig",93,"bracketrightbig",93,"bracketrightbigg",93,"bracketrightBigg",93,"ceilingleftbig",8968,"ceilingleftBig",8968,"ceilingleftBigg",8968,"ceilingleftbigg",8968,"ceilingrightbig",8969,"ceilingrightBig",8969,"ceilingrightbigg",8969,"ceilingrightBigg",8969,"circledotdisplay",8857,"circledottext",8857,"circlemultiplydisplay",8855,"circlemultiplytext",8855,"circleplusdisplay",8853,"circleplustext",8853,"contintegraldisplay",8750,"contintegraltext",8750,"coproductdisplay",8720,"coproducttext",8720,"floorleftBig",8970,"floorleftbig",8970,"floorleftbigg",8970,"floorleftBigg",8970,"floorrightbig",8971,"floorrightBig",8971,"floorrightBigg",8971,"floorrightbigg",8971,"hatwide",770,"hatwider",770,"hatwidest",770,"intercal",7488,"integraldisplay",8747,"integraltext",8747,"intersectiondisplay",8898,"intersectiontext",8898,"logicalanddisplay",8743,"logicalandtext",8743,"logicalordisplay",8744,"logicalortext",8744,"parenleftBig",40,"parenleftbig",40,"parenleftBigg",40,"parenleftbigg",40,"parenrightBig",41,"parenrightbig",41,"parenrightBigg",41,"parenrightbigg",41,"prime",8242,"productdisplay",8719,"producttext",8719,"radicalbig",8730,"radicalBig",8730,"radicalBigg",8730,"radicalbigg",8730,"radicalbt",8730,"radicaltp",8730,"radicalvertex",8730,"slashbig",47,"slashBig",47,"slashBigg",47,"slashbigg",47,"summationdisplay",8721,"summationtext",8721,"tildewide",732,"tildewider",732,"tildewidest",732,"uniondisplay",8899,"unionmultidisplay",8846,"unionmultitext",8846,"unionsqdisplay",8852,"unionsqtext",8852,"uniontext",8899,"vextenddouble",8741,"vextendsingle",8739]})),o=(0,r.getArrayLookupTableFactory)((function(){return["space",32,"a1",9985,"a2",9986,"a202",9987,"a3",9988,"a4",9742,"a5",9990,"a119",9991,"a118",9992,"a117",9993,"a11",9755,"a12",9758,"a13",9996,"a14",9997,"a15",9998,"a16",9999,"a105",1e4,"a17",10001,"a18",10002,"a19",10003,"a20",10004,"a21",10005,"a22",10006,"a23",10007,"a24",10008,"a25",10009,"a26",10010,"a27",10011,"a28",10012,"a6",10013,"a7",10014,"a8",10015,"a9",10016,"a10",10017,"a29",10018,"a30",10019,"a31",10020,"a32",10021,"a33",10022,"a34",10023,"a35",9733,"a36",10025,"a37",10026,"a38",10027,"a39",10028,"a40",10029,"a41",10030,"a42",10031,"a43",10032,"a44",10033,"a45",10034,"a46",10035,"a47",10036,"a48",10037,"a49",10038,"a50",10039,"a51",10040,"a52",10041,"a53",10042,"a54",10043,"a55",10044,"a56",10045,"a57",10046,"a58",10047,"a59",10048,"a60",10049,"a61",10050,"a62",10051,"a63",10052,"a64",10053,"a65",10054,"a66",10055,"a67",10056,"a68",10057,"a69",10058,"a70",10059,"a71",9679,"a72",10061,"a73",9632,"a74",10063,"a203",10064,"a75",10065,"a204",10066,"a76",9650,"a77",9660,"a78",9670,"a79",10070,"a81",9687,"a82",10072,"a83",10073,"a84",10074,"a97",10075,"a98",10076,"a99",10077,"a100",10078,"a101",10081,"a102",10082,"a103",10083,"a104",10084,"a106",10085,"a107",10086,"a108",10087,"a112",9827,"a111",9830,"a110",9829,"a109",9824,"a120",9312,"a121",9313,"a122",9314,"a123",9315,"a124",9316,"a125",9317,"a126",9318,"a127",9319,"a128",9320,"a129",9321,"a130",10102,"a131",10103,"a132",10104,"a133",10105,"a134",10106,"a135",10107,"a136",10108,"a137",10109,"a138",10110,"a139",10111,"a140",10112,"a141",10113,"a142",10114,"a143",10115,"a144",10116,"a145",10117,"a146",10118,"a147",10119,"a148",10120,"a149",10121,"a150",10122,"a151",10123,"a152",10124,"a153",10125,"a154",10126,"a155",10127,"a156",10128,"a157",10129,"a158",10130,"a159",10131,"a160",10132,"a161",8594,"a163",8596,"a164",8597,"a196",10136,"a165",10137,"a192",10138,"a166",10139,"a167",10140,"a168",10141,"a169",10142,"a170",10143,"a171",10144,"a172",10145,"a173",10146,"a162",10147,"a174",10148,"a175",10149,"a176",10150,"a177",10151,"a178",10152,"a179",10153,"a193",10154,"a180",10155,"a199",10156,"a181",10157,"a200",10158,"a182",10159,"a201",10161,"a183",10162,"a184",10163,"a197",10164,"a185",10165,"a194",10166,"a198",10167,"a186",10168,"a195",10169,"a187",10170,"a188",10171,"a189",10172,"a190",10173,"a191",10174,"a89",10088,"a90",10089,"a93",10090,"a94",10091,"a91",10092,"a92",10093,"a205",10094,"a85",10095,"a206",10096,"a86",10097,"a87",10098,"a88",10099,"a95",10100,"a96",10101,".notdef",0]}))},(e,t,n)=>{n.r(t),n.d(t,{clearUnicodeCaches:()=>f,getCharUnicodeCategory:()=>p,getNormalizedUnicodes:()=>c,getUnicodeForGlyph:()=>s,getUnicodeRangeFor:()=>l,mapSpecialUnicodeValues:()=>o,reverseIfRtl:()=>u});var r=n(4);const i=(0,r.getLookupTableFactory)((function(e){e[63721]=169,e[63193]=169,e[63720]=174,e[63194]=174,e[63722]=8482,e[63195]=8482,e[63729]=9127,e[63730]=9128,e[63731]=9129,e[63740]=9131,e[63741]=9132,e[63742]=9133,e[63726]=9121,e[63727]=9122,e[63728]=9123,e[63737]=9124,e[63738]=9125,e[63739]=9126,e[63723]=9115,e[63724]=9116,e[63725]=9117,e[63734]=9118,e[63735]=9119,e[63736]=9120}));function o(e){return e>=65520&&e<=65535?0:e>=62976&&e<=63743?i()[e]||e:173===e?45:e}function s(e,t){let n=t[e];if(void 0!==n)return n;if(!e)return-1;if("u"===e[0]){const t=e.length;let r;if(7===t&&"n"===e[1]&&"i"===e[2])r=e.substring(3);else{if(!(t>=5&&t<=7))return-1;r=e.substring(1)}if(r===r.toUpperCase()&&(n=parseInt(r,16),n>=0))return n}return-1}const a=[{begin:0,end:127},{begin:128,end:255},{begin:256,end:383},{begin:384,end:591},{begin:592,end:687},{begin:688,end:767},{begin:768,end:879},{begin:880,end:1023},{begin:11392,end:11519},{begin:1024,end:1279},{begin:1328,end:1423},{begin:1424,end:1535},{begin:42240,end:42559},{begin:1536,end:1791},{begin:1984,end:2047},{begin:2304,end:2431},{begin:2432,end:2559},{begin:2560,end:2687},{begin:2688,end:2815},{begin:2816,end:2943},{begin:2944,end:3071},{begin:3072,end:3199},{begin:3200,end:3327},{begin:3328,end:3455},{begin:3584,end:3711},{begin:3712,end:3839},{begin:4256,end:4351},{begin:6912,end:7039},{begin:4352,end:4607},{begin:7680,end:7935},{begin:7936,end:8191},{begin:8192,end:8303},{begin:8304,end:8351},{begin:8352,end:8399},{begin:8400,end:8447},{begin:8448,end:8527},{begin:8528,end:8591},{begin:8592,end:8703},{begin:8704,end:8959},{begin:8960,end:9215},{begin:9216,end:9279},{begin:9280,end:9311},{begin:9312,end:9471},{begin:9472,end:9599},{begin:9600,end:9631},{begin:9632,end:9727},{begin:9728,end:9983},{begin:9984,end:10175},{begin:12288,end:12351},{begin:12352,end:12447},{begin:12448,end:12543},{begin:12544,end:12591},{begin:12592,end:12687},{begin:43072,end:43135},{begin:12800,end:13055},{begin:13056,end:13311},{begin:44032,end:55215},{begin:55296,end:57343},{begin:67840,end:67871},{begin:19968,end:40959},{begin:57344,end:63743},{begin:12736,end:12783},{begin:64256,end:64335},{begin:64336,end:65023},{begin:65056,end:65071},{begin:65040,end:65055},{begin:65104,end:65135},{begin:65136,end:65279},{begin:65280,end:65519},{begin:65520,end:65535},{begin:3840,end:4095},{begin:1792,end:1871},{begin:1920,end:1983},{begin:3456,end:3583},{begin:4096,end:4255},{begin:4608,end:4991},{begin:5024,end:5119},{begin:5120,end:5759},{begin:5760,end:5791},{begin:5792,end:5887},{begin:6016,end:6143},{begin:6144,end:6319},{begin:10240,end:10495},{begin:40960,end:42127},{begin:5888,end:5919},{begin:66304,end:66351},{begin:66352,end:66383},{begin:66560,end:66639},{begin:118784,end:119039},{begin:119808,end:120831},{begin:1044480,end:1048573},{begin:65024,end:65039},{begin:917504,end:917631},{begin:6400,end:6479},{begin:6480,end:6527},{begin:6528,end:6623},{begin:6656,end:6687},{begin:11264,end:11359},{begin:11568,end:11647},{begin:19904,end:19967},{begin:43008,end:43055},{begin:65536,end:65663},{begin:65856,end:65935},{begin:66432,end:66463},{begin:66464,end:66527},{begin:66640,end:66687},{begin:66688,end:66735},{begin:67584,end:67647},{begin:68096,end:68191},{begin:119552,end:119647},{begin:73728,end:74751},{begin:119648,end:119679},{begin:7040,end:7103},{begin:7168,end:7247},{begin:7248,end:7295},{begin:43136,end:43231},{begin:43264,end:43311},{begin:43312,end:43359},{begin:43520,end:43615},{begin:65936,end:65999},{begin:66e3,end:66047},{begin:66208,end:66271},{begin:127024,end:127135}];function l(e){for(let t=0,n=a.length;t<n;t++){const n=a[t];if(e>=n.begin&&e<n.end)return t}return-1}const c=(0,r.getArrayLookupTableFactory)((function(){return["\xa8"," \u0308","\xaf"," \u0304","\xb4"," \u0301","\xb5","\u03bc","\xb8"," \u0327","\u0132","IJ","\u0133","ij","\u013f","L\xb7","\u0140","l\xb7","\u0149","\u02bcn","\u017f","s","\u01c4","D\u017d","\u01c5","D\u017e","\u01c6","d\u017e","\u01c7","LJ","\u01c8","Lj","\u01c9","lj","\u01ca","NJ","\u01cb","Nj","\u01cc","nj","\u01f1","DZ","\u01f2","Dz","\u01f3","dz","\u02d8"," \u0306","\u02d9"," \u0307","\u02da"," \u030a","\u02db"," \u0328","\u02dc"," \u0303","\u02dd"," \u030b","\u037a"," \u0345","\u0384"," \u0301","\u03d0","\u03b2","\u03d1","\u03b8","\u03d2","\u03a5","\u03d5","\u03c6","\u03d6","\u03c0","\u03f0","\u03ba","\u03f1","\u03c1","\u03f2","\u03c2","\u03f4","\u0398","\u03f5","\u03b5","\u03f9","\u03a3","\u0587","\u0565\u0582","\u0675","\u0627\u0674","\u0676","\u0648\u0674","\u0677","\u06c7\u0674","\u0678","\u064a\u0674","\u0e33","\u0e4d\u0e32","\u0eb3","\u0ecd\u0eb2","\u0edc","\u0eab\u0e99","\u0edd","\u0eab\u0ea1","\u0f77","\u0fb2\u0f81","\u0f79","\u0fb3\u0f81","\u1e9a","a\u02be","\u1fbd"," \u0313","\u1fbf"," \u0313","\u1fc0"," \u0342","\u1ffe"," \u0314","\u2002"," ","\u2003"," ","\u2004"," ","\u2005"," ","\u2006"," ","\u2008"," ","\u2009"," ","\u200a"," ","\u2017"," \u0333","\u2024",".","\u2025","..","\u2026","...","\u2033","\u2032\u2032","\u2034","\u2032\u2032\u2032","\u2036","\u2035\u2035","\u2037","\u2035\u2035\u2035","\u203c","!!","\u203e"," \u0305","\u2047","??","\u2048","?!","\u2049","!?","\u2057","\u2032\u2032\u2032\u2032","\u205f"," ","\u20a8","Rs","\u2100","a/c","\u2101","a/s","\u2103","\xb0C","\u2105","c/o","\u2106","c/u","\u2107","\u0190","\u2109","\xb0F","\u2116","No","\u2121","TEL","\u2135","\u05d0","\u2136","\u05d1","\u2137","\u05d2","\u2138","\u05d3","\u213b","FAX","\u2160","I","\u2161","II","\u2162","III","\u2163","IV","\u2164","V","\u2165","VI","\u2166","VII","\u2167","VIII","\u2168","IX","\u2169","X","\u216a","XI","\u216b","XII","\u216c","L","\u216d","C","\u216e","D","\u216f","M","\u2170","i","\u2171","ii","\u2172","iii","\u2173","iv","\u2174","v","\u2175","vi","\u2176","vii","\u2177","viii","\u2178","ix","\u2179","x","\u217a","xi","\u217b","xii","\u217c","l","\u217d","c","\u217e","d","\u217f","m","\u222c","\u222b\u222b","\u222d","\u222b\u222b\u222b","\u222f","\u222e\u222e","\u2230","\u222e\u222e\u222e","\u2474","(1)","\u2475","(2)","\u2476","(3)","\u2477","(4)","\u2478","(5)","\u2479","(6)","\u247a","(7)","\u247b","(8)","\u247c","(9)","\u247d","(10)","\u247e","(11)","\u247f","(12)","\u2480","(13)","\u2481","(14)","\u2482","(15)","\u2483","(16)","\u2484","(17)","\u2485","(18)","\u2486","(19)","\u2487","(20)","\u2488","1.","\u2489","2.","\u248a","3.","\u248b","4.","\u248c","5.","\u248d","6.","\u248e","7.","\u248f","8.","\u2490","9.","\u2491","10.","\u2492","11.","\u2493","12.","\u2494","13.","\u2495","14.","\u2496","15.","\u2497","16.","\u2498","17.","\u2499","18.","\u249a","19.","\u249b","20.","\u249c","(a)","\u249d","(b)","\u249e","(c)","\u249f","(d)","\u24a0","(e)","\u24a1","(f)","\u24a2","(g)","\u24a3","(h)","\u24a4","(i)","\u24a5","(j)","\u24a6","(k)","\u24a7","(l)","\u24a8","(m)","\u24a9","(n)","\u24aa","(o)","\u24ab","(p)","\u24ac","(q)","\u24ad","(r)","\u24ae","(s)","\u24af","(t)","\u24b0","(u)","\u24b1","(v)","\u24b2","(w)","\u24b3","(x)","\u24b4","(y)","\u24b5","(z)","\u2a0c","\u222b\u222b\u222b\u222b","\u2a74","::=","\u2a75","==","\u2a76","===","\u2e9f","\u6bcd","\u2ef3","\u9f9f","\u2f00","\u4e00","\u2f01","\u4e28","\u2f02","\u4e36","\u2f03","\u4e3f","\u2f04","\u4e59","\u2f05","\u4e85","\u2f06","\u4e8c","\u2f07","\u4ea0","\u2f08","\u4eba","\u2f09","\u513f","\u2f0a","\u5165","\u2f0b","\u516b","\u2f0c","\u5182","\u2f0d","\u5196","\u2f0e","\u51ab","\u2f0f","\u51e0","\u2f10","\u51f5","\u2f11","\u5200","\u2f12","\u529b","\u2f13","\u52f9","\u2f14","\u5315","\u2f15","\u531a","\u2f16","\u5338","\u2f17","\u5341","\u2f18","\u535c","\u2f19","\u5369","\u2f1a","\u5382","\u2f1b","\u53b6","\u2f1c","\u53c8","\u2f1d","\u53e3","\u2f1e","\u56d7","\u2f1f","\u571f","\u2f20","\u58eb","\u2f21","\u5902","\u2f22","\u590a","\u2f23","\u5915","\u2f24","\u5927","\u2f25","\u5973","\u2f26","\u5b50","\u2f27","\u5b80","\u2f28","\u5bf8","\u2f29","\u5c0f","\u2f2a","\u5c22","\u2f2b","\u5c38","\u2f2c","\u5c6e","\u2f2d","\u5c71","\u2f2e","\u5ddb","\u2f2f","\u5de5","\u2f30","\u5df1","\u2f31","\u5dfe","\u2f32","\u5e72","\u2f33","\u5e7a","\u2f34","\u5e7f","\u2f35","\u5ef4","\u2f36","\u5efe","\u2f37","\u5f0b","\u2f38","\u5f13","\u2f39","\u5f50","\u2f3a","\u5f61","\u2f3b","\u5f73","\u2f3c","\u5fc3","\u2f3d","\u6208","\u2f3e","\u6236","\u2f3f","\u624b","\u2f40","\u652f","\u2f41","\u6534","\u2f42","\u6587","\u2f43","\u6597","\u2f44","\u65a4","\u2f45","\u65b9","\u2f46","\u65e0","\u2f47","\u65e5","\u2f48","\u66f0","\u2f49","\u6708","\u2f4a","\u6728","\u2f4b","\u6b20","\u2f4c","\u6b62","\u2f4d","\u6b79","\u2f4e","\u6bb3","\u2f4f","\u6bcb","\u2f50","\u6bd4","\u2f51","\u6bdb","\u2f52","\u6c0f","\u2f53","\u6c14","\u2f54","\u6c34","\u2f55","\u706b","\u2f56","\u722a","\u2f57","\u7236","\u2f58","\u723b","\u2f59","\u723f","\u2f5a","\u7247","\u2f5b","\u7259","\u2f5c","\u725b","\u2f5d","\u72ac","\u2f5e","\u7384","\u2f5f","\u7389","\u2f60","\u74dc","\u2f61","\u74e6","\u2f62","\u7518","\u2f63","\u751f","\u2f64","\u7528","\u2f65","\u7530","\u2f66","\u758b","\u2f67","\u7592","\u2f68","\u7676","\u2f69","\u767d","\u2f6a","\u76ae","\u2f6b","\u76bf","\u2f6c","\u76ee","\u2f6d","\u77db","\u2f6e","\u77e2","\u2f6f","\u77f3","\u2f70","\u793a","\u2f71","\u79b8","\u2f72","\u79be","\u2f73","\u7a74","\u2f74","\u7acb","\u2f75","\u7af9","\u2f76","\u7c73","\u2f77","\u7cf8","\u2f78","\u7f36","\u2f79","\u7f51","\u2f7a","\u7f8a","\u2f7b","\u7fbd","\u2f7c","\u8001","\u2f7d","\u800c","\u2f7e","\u8012","\u2f7f","\u8033","\u2f80","\u807f","\u2f81","\u8089","\u2f82","\u81e3","\u2f83","\u81ea","\u2f84","\u81f3","\u2f85","\u81fc","\u2f86","\u820c","\u2f87","\u821b","\u2f88","\u821f","\u2f89","\u826e","\u2f8a","\u8272","\u2f8b","\u8278","\u2f8c","\u864d","\u2f8d","\u866b","\u2f8e","\u8840","\u2f8f","\u884c","\u2f90","\u8863","\u2f91","\u897e","\u2f92","\u898b","\u2f93","\u89d2","\u2f94","\u8a00","\u2f95","\u8c37","\u2f96","\u8c46","\u2f97","\u8c55","\u2f98","\u8c78","\u2f99","\u8c9d","\u2f9a","\u8d64","\u2f9b","\u8d70","\u2f9c","\u8db3","\u2f9d","\u8eab","\u2f9e","\u8eca","\u2f9f","\u8f9b","\u2fa0","\u8fb0","\u2fa1","\u8fb5","\u2fa2","\u9091","\u2fa3","\u9149","\u2fa4","\u91c6","\u2fa5","\u91cc","\u2fa6","\u91d1","\u2fa7","\u9577","\u2fa8","\u9580","\u2fa9","\u961c","\u2faa","\u96b6","\u2fab","\u96b9","\u2fac","\u96e8","\u2fad","\u9751","\u2fae","\u975e","\u2faf","\u9762","\u2fb0","\u9769","\u2fb1","\u97cb","\u2fb2","\u97ed","\u2fb3","\u97f3","\u2fb4","\u9801","\u2fb5","\u98a8","\u2fb6","\u98db","\u2fb7","\u98df","\u2fb8","\u9996","\u2fb9","\u9999","\u2fba","\u99ac","\u2fbb","\u9aa8","\u2fbc","\u9ad8","\u2fbd","\u9adf","\u2fbe","\u9b25","\u2fbf","\u9b2f","\u2fc0","\u9b32","\u2fc1","\u9b3c","\u2fc2","\u9b5a","\u2fc3","\u9ce5","\u2fc4","\u9e75","\u2fc5","\u9e7f","\u2fc6","\u9ea5","\u2fc7","\u9ebb","\u2fc8","\u9ec3","\u2fc9","\u9ecd","\u2fca","\u9ed1","\u2fcb","\u9ef9","\u2fcc","\u9efd","\u2fcd","\u9f0e","\u2fce","\u9f13","\u2fcf","\u9f20","\u2fd0","\u9f3b","\u2fd1","\u9f4a","\u2fd2","\u9f52","\u2fd3","\u9f8d","\u2fd4","\u9f9c","\u2fd5","\u9fa0","\u3036","\u3012","\u3038","\u5341","\u3039","\u5344","\u303a","\u5345","\u309b"," \u3099","\u309c"," \u309a","\u3131","\u1100","\u3132","\u1101","\u3133","\u11aa","\u3134","\u1102","\u3135","\u11ac","\u3136","\u11ad","\u3137","\u1103","\u3138","\u1104","\u3139","\u1105","\u313a","\u11b0","\u313b","\u11b1","\u313c","\u11b2","\u313d","\u11b3","\u313e","\u11b4","\u313f","\u11b5","\u3140","\u111a","\u3141","\u1106","\u3142","\u1107","\u3143","\u1108","\u3144","\u1121","\u3145","\u1109","\u3146","\u110a","\u3147","\u110b","\u3148","\u110c","\u3149","\u110d","\u314a","\u110e","\u314b","\u110f","\u314c","\u1110","\u314d","\u1111","\u314e","\u1112","\u314f","\u1161","\u3150","\u1162","\u3151","\u1163","\u3152","\u1164","\u3153","\u1165","\u3154","\u1166","\u3155","\u1167","\u3156","\u1168","\u3157","\u1169","\u3158","\u116a","\u3159","\u116b","\u315a","\u116c","\u315b","\u116d","\u315c","\u116e","\u315d","\u116f","\u315e","\u1170","\u315f","\u1171","\u3160","\u1172","\u3161","\u1173","\u3162","\u1174","\u3163","\u1175","\u3164","\u1160","\u3165","\u1114","\u3166","\u1115","\u3167","\u11c7","\u3168","\u11c8","\u3169","\u11cc","\u316a","\u11ce","\u316b","\u11d3","\u316c","\u11d7","\u316d","\u11d9","\u316e","\u111c","\u316f","\u11dd","\u3170","\u11df","\u3171","\u111d","\u3172","\u111e","\u3173","\u1120","\u3174","\u1122","\u3175","\u1123","\u3176","\u1127","\u3177","\u1129","\u3178","\u112b","\u3179","\u112c","\u317a","\u112d","\u317b","\u112e","\u317c","\u112f","\u317d","\u1132","\u317e","\u1136","\u317f","\u1140","\u3180","\u1147","\u3181","\u114c","\u3182","\u11f1","\u3183","\u11f2","\u3184","\u1157","\u3185","\u1158","\u3186","\u1159","\u3187","\u1184","\u3188","\u1185","\u3189","\u1188","\u318a","\u1191","\u318b","\u1192","\u318c","\u1194","\u318d","\u119e","\u318e","\u11a1","\u3200","(\u1100)","\u3201","(\u1102)","\u3202","(\u1103)","\u3203","(\u1105)","\u3204","(\u1106)","\u3205","(\u1107)","\u3206","(\u1109)","\u3207","(\u110b)","\u3208","(\u110c)","\u3209","(\u110e)","\u320a","(\u110f)","\u320b","(\u1110)","\u320c","(\u1111)","\u320d","(\u1112)","\u320e","(\u1100\u1161)","\u320f","(\u1102\u1161)","\u3210","(\u1103\u1161)","\u3211","(\u1105\u1161)","\u3212","(\u1106\u1161)","\u3213","(\u1107\u1161)","\u3214","(\u1109\u1161)","\u3215","(\u110b\u1161)","\u3216","(\u110c\u1161)","\u3217","(\u110e\u1161)","\u3218","(\u110f\u1161)","\u3219","(\u1110\u1161)","\u321a","(\u1111\u1161)","\u321b","(\u1112\u1161)","\u321c","(\u110c\u116e)","\u321d","(\u110b\u1169\u110c\u1165\u11ab)","\u321e","(\u110b\u1169\u1112\u116e)","\u3220","(\u4e00)","\u3221","(\u4e8c)","\u3222","(\u4e09)","\u3223","(\u56db)","\u3224","(\u4e94)","\u3225","(\u516d)","\u3226","(\u4e03)","\u3227","(\u516b)","\u3228","(\u4e5d)","\u3229","(\u5341)","\u322a","(\u6708)","\u322b","(\u706b)","\u322c","(\u6c34)","\u322d","(\u6728)","\u322e","(\u91d1)","\u322f","(\u571f)","\u3230","(\u65e5)","\u3231","(\u682a)","\u3232","(\u6709)","\u3233","(\u793e)","\u3234","(\u540d)","\u3235","(\u7279)","\u3236","(\u8ca1)","\u3237","(\u795d)","\u3238","(\u52b4)","\u3239","(\u4ee3)","\u323a","(\u547c)","\u323b","(\u5b66)","\u323c","(\u76e3)","\u323d","(\u4f01)","\u323e","(\u8cc7)","\u323f","(\u5354)","\u3240","(\u796d)","\u3241","(\u4f11)","\u3242","(\u81ea)","\u3243","(\u81f3)","\u32c0","1\u6708","\u32c1","2\u6708","\u32c2","3\u6708","\u32c3","4\u6708","\u32c4","5\u6708","\u32c5","6\u6708","\u32c6","7\u6708","\u32c7","8\u6708","\u32c8","9\u6708","\u32c9","10\u6708","\u32ca","11\u6708","\u32cb","12\u6708","\u3358","0\u70b9","\u3359","1\u70b9","\u335a","2\u70b9","\u335b","3\u70b9","\u335c","4\u70b9","\u335d","5\u70b9","\u335e","6\u70b9","\u335f","7\u70b9","\u3360","8\u70b9","\u3361","9\u70b9","\u3362","10\u70b9","\u3363","11\u70b9","\u3364","12\u70b9","\u3365","13\u70b9","\u3366","14\u70b9","\u3367","15\u70b9","\u3368","16\u70b9","\u3369","17\u70b9","\u336a","18\u70b9","\u336b","19\u70b9","\u336c","20\u70b9","\u336d","21\u70b9","\u336e","22\u70b9","\u336f","23\u70b9","\u3370","24\u70b9","\u33e0","1\u65e5","\u33e1","2\u65e5","\u33e2","3\u65e5","\u33e3","4\u65e5","\u33e4","5\u65e5","\u33e5","6\u65e5","\u33e6","7\u65e5","\u33e7","8\u65e5","\u33e8","9\u65e5","\u33e9","10\u65e5","\u33ea","11\u65e5","\u33eb","12\u65e5","\u33ec","13\u65e5","\u33ed","14\u65e5","\u33ee","15\u65e5","\u33ef","16\u65e5","\u33f0","17\u65e5","\u33f1","18\u65e5","\u33f2","19\u65e5","\u33f3","20\u65e5","\u33f4","21\u65e5","\u33f5","22\u65e5","\u33f6","23\u65e5","\u33f7","24\u65e5","\u33f8","25\u65e5","\u33f9","26\u65e5","\u33fa","27\u65e5","\u33fb","28\u65e5","\u33fc","29\u65e5","\u33fd","30\u65e5","\u33fe","31\u65e5","\ufb00","ff","\ufb01","fi","\ufb02","fl","\ufb03","ffi","\ufb04","ffl","\ufb05","\u017ft","\ufb06","st","\ufb13","\u0574\u0576","\ufb14","\u0574\u0565","\ufb15","\u0574\u056b","\ufb16","\u057e\u0576","\ufb17","\u0574\u056d","\ufb4f","\u05d0\u05dc","\ufb50","\u0671","\ufb51","\u0671","\ufb52","\u067b","\ufb53","\u067b","\ufb54","\u067b","\ufb55","\u067b","\ufb56","\u067e","\ufb57","\u067e","\ufb58","\u067e","\ufb59","\u067e","\ufb5a","\u0680","\ufb5b","\u0680","\ufb5c","\u0680","\ufb5d","\u0680","\ufb5e","\u067a","\ufb5f","\u067a","\ufb60","\u067a","\ufb61","\u067a","\ufb62","\u067f","\ufb63","\u067f","\ufb64","\u067f","\ufb65","\u067f","\ufb66","\u0679","\ufb67","\u0679","\ufb68","\u0679","\ufb69","\u0679","\ufb6a","\u06a4","\ufb6b","\u06a4","\ufb6c","\u06a4","\ufb6d","\u06a4","\ufb6e","\u06a6","\ufb6f","\u06a6","\ufb70","\u06a6","\ufb71","\u06a6","\ufb72","\u0684","\ufb73","\u0684","\ufb74","\u0684","\ufb75","\u0684","\ufb76","\u0683","\ufb77","\u0683","\ufb78","\u0683","\ufb79","\u0683","\ufb7a","\u0686","\ufb7b","\u0686","\ufb7c","\u0686","\ufb7d","\u0686","\ufb7e","\u0687","\ufb7f","\u0687","\ufb80","\u0687","\ufb81","\u0687","\ufb82","\u068d","\ufb83","\u068d","\ufb84","\u068c","\ufb85","\u068c","\ufb86","\u068e","\ufb87","\u068e","\ufb88","\u0688","\ufb89","\u0688","\ufb8a","\u0698","\ufb8b","\u0698","\ufb8c","\u0691","\ufb8d","\u0691","\ufb8e","\u06a9","\ufb8f","\u06a9","\ufb90","\u06a9","\ufb91","\u06a9","\ufb92","\u06af","\ufb93","\u06af","\ufb94","\u06af","\ufb95","\u06af","\ufb96","\u06b3","\ufb97","\u06b3","\ufb98","\u06b3","\ufb99","\u06b3","\ufb9a","\u06b1","\ufb9b","\u06b1","\ufb9c","\u06b1","\ufb9d","\u06b1","\ufb9e","\u06ba","\ufb9f","\u06ba","\ufba0","\u06bb","\ufba1","\u06bb","\ufba2","\u06bb","\ufba3","\u06bb","\ufba4","\u06c0","\ufba5","\u06c0","\ufba6","\u06c1","\ufba7","\u06c1","\ufba8","\u06c1","\ufba9","\u06c1","\ufbaa","\u06be","\ufbab","\u06be","\ufbac","\u06be","\ufbad","\u06be","\ufbae","\u06d2","\ufbaf","\u06d2","\ufbb0","\u06d3","\ufbb1","\u06d3","\ufbd3","\u06ad","\ufbd4","\u06ad","\ufbd5","\u06ad","\ufbd6","\u06ad","\ufbd7","\u06c7","\ufbd8","\u06c7","\ufbd9","\u06c6","\ufbda","\u06c6","\ufbdb","\u06c8","\ufbdc","\u06c8","\ufbdd","\u0677","\ufbde","\u06cb","\ufbdf","\u06cb","\ufbe0","\u06c5","\ufbe1","\u06c5","\ufbe2","\u06c9","\ufbe3","\u06c9","\ufbe4","\u06d0","\ufbe5","\u06d0","\ufbe6","\u06d0","\ufbe7","\u06d0","\ufbe8","\u0649","\ufbe9","\u0649","\ufbea","\u0626\u0627","\ufbeb","\u0626\u0627","\ufbec","\u0626\u06d5","\ufbed","\u0626\u06d5","\ufbee","\u0626\u0648","\ufbef","\u0626\u0648","\ufbf0","\u0626\u06c7","\ufbf1","\u0626\u06c7","\ufbf2","\u0626\u06c6","\ufbf3","\u0626\u06c6","\ufbf4","\u0626\u06c8","\ufbf5","\u0626\u06c8","\ufbf6","\u0626\u06d0","\ufbf7","\u0626\u06d0","\ufbf8","\u0626\u06d0","\ufbf9","\u0626\u0649","\ufbfa","\u0626\u0649","\ufbfb","\u0626\u0649","\ufbfc","\u06cc","\ufbfd","\u06cc","\ufbfe","\u06cc","\ufbff","\u06cc","\ufc00","\u0626\u062c","\ufc01","\u0626\u062d","\ufc02","\u0626\u0645","\ufc03","\u0626\u0649","\ufc04","\u0626\u064a","\ufc05","\u0628\u062c","\ufc06","\u0628\u062d","\ufc07","\u0628\u062e","\ufc08","\u0628\u0645","\ufc09","\u0628\u0649","\ufc0a","\u0628\u064a","\ufc0b","\u062a\u062c","\ufc0c","\u062a\u062d","\ufc0d","\u062a\u062e","\ufc0e","\u062a\u0645","\ufc0f","\u062a\u0649","\ufc10","\u062a\u064a","\ufc11","\u062b\u062c","\ufc12","\u062b\u0645","\ufc13","\u062b\u0649","\ufc14","\u062b\u064a","\ufc15","\u062c\u062d","\ufc16","\u062c\u0645","\ufc17","\u062d\u062c","\ufc18","\u062d\u0645","\ufc19","\u062e\u062c","\ufc1a","\u062e\u062d","\ufc1b","\u062e\u0645","\ufc1c","\u0633\u062c","\ufc1d","\u0633\u062d","\ufc1e","\u0633\u062e","\ufc1f","\u0633\u0645","\ufc20","\u0635\u062d","\ufc21","\u0635\u0645","\ufc22","\u0636\u062c","\ufc23","\u0636\u062d","\ufc24","\u0636\u062e","\ufc25","\u0636\u0645","\ufc26","\u0637\u062d","\ufc27","\u0637\u0645","\ufc28","\u0638\u0645","\ufc29","\u0639\u062c","\ufc2a","\u0639\u0645","\ufc2b","\u063a\u062c","\ufc2c","\u063a\u0645","\ufc2d","\u0641\u062c","\ufc2e","\u0641\u062d","\ufc2f","\u0641\u062e","\ufc30","\u0641\u0645","\ufc31","\u0641\u0649","\ufc32","\u0641\u064a","\ufc33","\u0642\u062d","\ufc34","\u0642\u0645","\ufc35","\u0642\u0649","\ufc36","\u0642\u064a","\ufc37","\u0643\u0627","\ufc38","\u0643\u062c","\ufc39","\u0643\u062d","\ufc3a","\u0643\u062e","\ufc3b","\u0643\u0644","\ufc3c","\u0643\u0645","\ufc3d","\u0643\u0649","\ufc3e","\u0643\u064a","\ufc3f","\u0644\u062c","\ufc40","\u0644\u062d","\ufc41","\u0644\u062e","\ufc42","\u0644\u0645","\ufc43","\u0644\u0649","\ufc44","\u0644\u064a","\ufc45","\u0645\u062c","\ufc46","\u0645\u062d","\ufc47","\u0645\u062e","\ufc48","\u0645\u0645","\ufc49","\u0645\u0649","\ufc4a","\u0645\u064a","\ufc4b","\u0646\u062c","\ufc4c","\u0646\u062d","\ufc4d","\u0646\u062e","\ufc4e","\u0646\u0645","\ufc4f","\u0646\u0649","\ufc50","\u0646\u064a","\ufc51","\u0647\u062c","\ufc52","\u0647\u0645","\ufc53","\u0647\u0649","\ufc54","\u0647\u064a","\ufc55","\u064a\u062c","\ufc56","\u064a\u062d","\ufc57","\u064a\u062e","\ufc58","\u064a\u0645","\ufc59","\u064a\u0649","\ufc5a","\u064a\u064a","\ufc5b","\u0630\u0670","\ufc5c","\u0631\u0670","\ufc5d","\u0649\u0670","\ufc5e"," \u064c\u0651","\ufc5f"," \u064d\u0651","\ufc60"," \u064e\u0651","\ufc61"," \u064f\u0651","\ufc62"," \u0650\u0651","\ufc63"," \u0651\u0670","\ufc64","\u0626\u0631","\ufc65","\u0626\u0632","\ufc66","\u0626\u0645","\ufc67","\u0626\u0646","\ufc68","\u0626\u0649","\ufc69","\u0626\u064a","\ufc6a","\u0628\u0631","\ufc6b","\u0628\u0632","\ufc6c","\u0628\u0645","\ufc6d","\u0628\u0646","\ufc6e","\u0628\u0649","\ufc6f","\u0628\u064a","\ufc70","\u062a\u0631","\ufc71","\u062a\u0632","\ufc72","\u062a\u0645","\ufc73","\u062a\u0646","\ufc74","\u062a\u0649","\ufc75","\u062a\u064a","\ufc76","\u062b\u0631","\ufc77","\u062b\u0632","\ufc78","\u062b\u0645","\ufc79","\u062b\u0646","\ufc7a","\u062b\u0649","\ufc7b","\u062b\u064a","\ufc7c","\u0641\u0649","\ufc7d","\u0641\u064a","\ufc7e","\u0642\u0649","\ufc7f","\u0642\u064a","\ufc80","\u0643\u0627","\ufc81","\u0643\u0644","\ufc82","\u0643\u0645","\ufc83","\u0643\u0649","\ufc84","\u0643\u064a","\ufc85","\u0644\u0645","\ufc86","\u0644\u0649","\ufc87","\u0644\u064a","\ufc88","\u0645\u0627","\ufc89","\u0645\u0645","\ufc8a","\u0646\u0631","\ufc8b","\u0646\u0632","\ufc8c","\u0646\u0645","\ufc8d","\u0646\u0646","\ufc8e","\u0646\u0649","\ufc8f","\u0646\u064a","\ufc90","\u0649\u0670","\ufc91","\u064a\u0631","\ufc92","\u064a\u0632","\ufc93","\u064a\u0645","\ufc94","\u064a\u0646","\ufc95","\u064a\u0649","\ufc96","\u064a\u064a","\ufc97","\u0626\u062c","\ufc98","\u0626\u062d","\ufc99","\u0626\u062e","\ufc9a","\u0626\u0645","\ufc9b","\u0626\u0647","\ufc9c","\u0628\u062c","\ufc9d","\u0628\u062d","\ufc9e","\u0628\u062e","\ufc9f","\u0628\u0645","\ufca0","\u0628\u0647","\ufca1","\u062a\u062c","\ufca2","\u062a\u062d","\ufca3","\u062a\u062e","\ufca4","\u062a\u0645","\ufca5","\u062a\u0647","\ufca6","\u062b\u0645","\ufca7","\u062c\u062d","\ufca8","\u062c\u0645","\ufca9","\u062d\u062c","\ufcaa","\u062d\u0645","\ufcab","\u062e\u062c","\ufcac","\u062e\u0645","\ufcad","\u0633\u062c","\ufcae","\u0633\u062d","\ufcaf","\u0633\u062e","\ufcb0","\u0633\u0645","\ufcb1","\u0635\u062d","\ufcb2","\u0635\u062e","\ufcb3","\u0635\u0645","\ufcb4","\u0636\u062c","\ufcb5","\u0636\u062d","\ufcb6","\u0636\u062e","\ufcb7","\u0636\u0645","\ufcb8","\u0637\u062d","\ufcb9","\u0638\u0645","\ufcba","\u0639\u062c","\ufcbb","\u0639\u0645","\ufcbc","\u063a\u062c","\ufcbd","\u063a\u0645","\ufcbe","\u0641\u062c","\ufcbf","\u0641\u062d","\ufcc0","\u0641\u062e","\ufcc1","\u0641\u0645","\ufcc2","\u0642\u062d","\ufcc3","\u0642\u0645","\ufcc4","\u0643\u062c","\ufcc5","\u0643\u062d","\ufcc6","\u0643\u062e","\ufcc7","\u0643\u0644","\ufcc8","\u0643\u0645","\ufcc9","\u0644\u062c","\ufcca","\u0644\u062d","\ufccb","\u0644\u062e","\ufccc","\u0644\u0645","\ufccd","\u0644\u0647","\ufcce","\u0645\u062c","\ufccf","\u0645\u062d","\ufcd0","\u0645\u062e","\ufcd1","\u0645\u0645","\ufcd2","\u0646\u062c","\ufcd3","\u0646\u062d","\ufcd4","\u0646\u062e","\ufcd5","\u0646\u0645","\ufcd6","\u0646\u0647","\ufcd7","\u0647\u062c","\ufcd8","\u0647\u0645","\ufcd9","\u0647\u0670","\ufcda","\u064a\u062c","\ufcdb","\u064a\u062d","\ufcdc","\u064a\u062e","\ufcdd","\u064a\u0645","\ufcde","\u064a\u0647","\ufcdf","\u0626\u0645","\ufce0","\u0626\u0647","\ufce1","\u0628\u0645","\ufce2","\u0628\u0647","\ufce3","\u062a\u0645","\ufce4","\u062a\u0647","\ufce5","\u062b\u0645","\ufce6","\u062b\u0647","\ufce7","\u0633\u0645","\ufce8","\u0633\u0647","\ufce9","\u0634\u0645","\ufcea","\u0634\u0647","\ufceb","\u0643\u0644","\ufcec","\u0643\u0645","\ufced","\u0644\u0645","\ufcee","\u0646\u0645","\ufcef","\u0646\u0647","\ufcf0","\u064a\u0645","\ufcf1","\u064a\u0647","\ufcf2","\u0640\u064e\u0651","\ufcf3","\u0640\u064f\u0651","\ufcf4","\u0640\u0650\u0651","\ufcf5","\u0637\u0649","\ufcf6","\u0637\u064a","\ufcf7","\u0639\u0649","\ufcf8","\u0639\u064a","\ufcf9","\u063a\u0649","\ufcfa","\u063a\u064a","\ufcfb","\u0633\u0649","\ufcfc","\u0633\u064a","\ufcfd","\u0634\u0649","\ufcfe","\u0634\u064a","\ufcff","\u062d\u0649","\ufd00","\u062d\u064a","\ufd01","\u062c\u0649","\ufd02","\u062c\u064a","\ufd03","\u062e\u0649","\ufd04","\u062e\u064a","\ufd05","\u0635\u0649","\ufd06","\u0635\u064a","\ufd07","\u0636\u0649","\ufd08","\u0636\u064a","\ufd09","\u0634\u062c","\ufd0a","\u0634\u062d","\ufd0b","\u0634\u062e","\ufd0c","\u0634\u0645","\ufd0d","\u0634\u0631","\ufd0e","\u0633\u0631","\ufd0f","\u0635\u0631","\ufd10","\u0636\u0631","\ufd11","\u0637\u0649","\ufd12","\u0637\u064a","\ufd13","\u0639\u0649","\ufd14","\u0639\u064a","\ufd15","\u063a\u0649","\ufd16","\u063a\u064a","\ufd17","\u0633\u0649","\ufd18","\u0633\u064a","\ufd19","\u0634\u0649","\ufd1a","\u0634\u064a","\ufd1b","\u062d\u0649","\ufd1c","\u062d\u064a","\ufd1d","\u062c\u0649","\ufd1e","\u062c\u064a","\ufd1f","\u062e\u0649","\ufd20","\u062e\u064a","\ufd21","\u0635\u0649","\ufd22","\u0635\u064a","\ufd23","\u0636\u0649","\ufd24","\u0636\u064a","\ufd25","\u0634\u062c","\ufd26","\u0634\u062d","\ufd27","\u0634\u062e","\ufd28","\u0634\u0645","\ufd29","\u0634\u0631","\ufd2a","\u0633\u0631","\ufd2b","\u0635\u0631","\ufd2c","\u0636\u0631","\ufd2d","\u0634\u062c","\ufd2e","\u0634\u062d","\ufd2f","\u0634\u062e","\ufd30","\u0634\u0645","\ufd31","\u0633\u0647","\ufd32","\u0634\u0647","\ufd33","\u0637\u0645","\ufd34","\u0633\u062c","\ufd35","\u0633\u062d","\ufd36","\u0633\u062e","\ufd37","\u0634\u062c","\ufd38","\u0634\u062d","\ufd39","\u0634\u062e","\ufd3a","\u0637\u0645","\ufd3b","\u0638\u0645","\ufd3c","\u0627\u064b","\ufd3d","\u0627\u064b","\ufd50","\u062a\u062c\u0645","\ufd51","\u062a\u062d\u062c","\ufd52","\u062a\u062d\u062c","\ufd53","\u062a\u062d\u0645","\ufd54","\u062a\u062e\u0645","\ufd55","\u062a\u0645\u062c","\ufd56","\u062a\u0645\u062d","\ufd57","\u062a\u0645\u062e","\ufd58","\u062c\u0645\u062d","\ufd59","\u062c\u0645\u062d","\ufd5a","\u062d\u0645\u064a","\ufd5b","\u062d\u0645\u0649","\ufd5c","\u0633\u062d\u062c","\ufd5d","\u0633\u062c\u062d","\ufd5e","\u0633\u062c\u0649","\ufd5f","\u0633\u0645\u062d","\ufd60","\u0633\u0645\u062d","\ufd61","\u0633\u0645\u062c","\ufd62","\u0633\u0645\u0645","\ufd63","\u0633\u0645\u0645","\ufd64","\u0635\u062d\u062d","\ufd65","\u0635\u062d\u062d","\ufd66","\u0635\u0645\u0645","\ufd67","\u0634\u062d\u0645","\ufd68","\u0634\u062d\u0645","\ufd69","\u0634\u062c\u064a","\ufd6a","\u0634\u0645\u062e","\ufd6b","\u0634\u0645\u062e","\ufd6c","\u0634\u0645\u0645","\ufd6d","\u0634\u0645\u0645","\ufd6e","\u0636\u062d\u0649","\ufd6f","\u0636\u062e\u0645","\ufd70","\u0636\u062e\u0645","\ufd71","\u0637\u0645\u062d","\ufd72","\u0637\u0645\u062d","\ufd73","\u0637\u0645\u0645","\ufd74","\u0637\u0645\u064a","\ufd75","\u0639\u062c\u0645","\ufd76","\u0639\u0645\u0645","\ufd77","\u0639\u0645\u0645","\ufd78","\u0639\u0645\u0649","\ufd79","\u063a\u0645\u0645","\ufd7a","\u063a\u0645\u064a","\ufd7b","\u063a\u0645\u0649","\ufd7c","\u0641\u062e\u0645","\ufd7d","\u0641\u062e\u0645","\ufd7e","\u0642\u0645\u062d","\ufd7f","\u0642\u0645\u0645","\ufd80","\u0644\u062d\u0645","\ufd81","\u0644\u062d\u064a","\ufd82","\u0644\u062d\u0649","\ufd83","\u0644\u062c\u062c","\ufd84","\u0644\u062c\u062c","\ufd85","\u0644\u062e\u0645","\ufd86","\u0644\u062e\u0645","\ufd87","\u0644\u0645\u062d","\ufd88","\u0644\u0645\u062d","\ufd89","\u0645\u062d\u062c","\ufd8a","\u0645\u062d\u0645","\ufd8b","\u0645\u062d\u064a","\ufd8c","\u0645\u062c\u062d","\ufd8d","\u0645\u062c\u0645","\ufd8e","\u0645\u062e\u062c","\ufd8f","\u0645\u062e\u0645","\ufd92","\u0645\u062c\u062e","\ufd93","\u0647\u0645\u062c","\ufd94","\u0647\u0645\u0645","\ufd95","\u0646\u062d\u0645","\ufd96","\u0646\u062d\u0649","\ufd97","\u0646\u062c\u0645","\ufd98","\u0646\u062c\u0645","\ufd99","\u0646\u062c\u0649","\ufd9a","\u0646\u0645\u064a","\ufd9b","\u0646\u0645\u0649","\ufd9c","\u064a\u0645\u0645","\ufd9d","\u064a\u0645\u0645","\ufd9e","\u0628\u062e\u064a","\ufd9f","\u062a\u062c\u064a","\ufda0","\u062a\u062c\u0649","\ufda1","\u062a\u062e\u064a","\ufda2","\u062a\u062e\u0649","\ufda3","\u062a\u0645\u064a","\ufda4","\u062a\u0645\u0649","\ufda5","\u062c\u0645\u064a","\ufda6","\u062c\u062d\u0649","\ufda7","\u062c\u0645\u0649","\ufda8","\u0633\u062e\u0649","\ufda9","\u0635\u062d\u064a","\ufdaa","\u0634\u062d\u064a","\ufdab","\u0636\u062d\u064a","\ufdac","\u0644\u062c\u064a","\ufdad","\u0644\u0645\u064a","\ufdae","\u064a\u062d\u064a","\ufdaf","\u064a\u062c\u064a","\ufdb0","\u064a\u0645\u064a","\ufdb1","\u0645\u0645\u064a","\ufdb2","\u0642\u0645\u064a","\ufdb3","\u0646\u062d\u064a","\ufdb4","\u0642\u0645\u062d","\ufdb5","\u0644\u062d\u0645","\ufdb6","\u0639\u0645\u064a","\ufdb7","\u0643\u0645\u064a","\ufdb8","\u0646\u062c\u062d","\ufdb9","\u0645\u062e\u064a","\ufdba","\u0644\u062c\u0645","\ufdbb","\u0643\u0645\u0645","\ufdbc","\u0644\u062c\u0645","\ufdbd","\u0646\u062c\u062d","\ufdbe","\u062c\u062d\u064a","\ufdbf","\u062d\u062c\u064a","\ufdc0","\u0645\u062c\u064a","\ufdc1","\u0641\u0645\u064a","\ufdc2","\u0628\u062d\u064a","\ufdc3","\u0643\u0645\u0645","\ufdc4","\u0639\u062c\u0645","\ufdc5","\u0635\u0645\u0645","\ufdc6","\u0633\u062e\u064a","\ufdc7","\u0646\u062c\u064a","\ufe49","\u203e","\ufe4a","\u203e","\ufe4b","\u203e","\ufe4c","\u203e","\ufe4d","_","\ufe4e","_","\ufe4f","_","\ufe80","\u0621","\ufe81","\u0622","\ufe82","\u0622","\ufe83","\u0623","\ufe84","\u0623","\ufe85","\u0624","\ufe86","\u0624","\ufe87","\u0625","\ufe88","\u0625","\ufe89","\u0626","\ufe8a","\u0626","\ufe8b","\u0626","\ufe8c","\u0626","\ufe8d","\u0627","\ufe8e","\u0627","\ufe8f","\u0628","\ufe90","\u0628","\ufe91","\u0628","\ufe92","\u0628","\ufe93","\u0629","\ufe94","\u0629","\ufe95","\u062a","\ufe96","\u062a","\ufe97","\u062a","\ufe98","\u062a","\ufe99","\u062b","\ufe9a","\u062b","\ufe9b","\u062b","\ufe9c","\u062b","\ufe9d","\u062c","\ufe9e","\u062c","\ufe9f","\u062c","\ufea0","\u062c","\ufea1","\u062d","\ufea2","\u062d","\ufea3","\u062d","\ufea4","\u062d","\ufea5","\u062e","\ufea6","\u062e","\ufea7","\u062e","\ufea8","\u062e","\ufea9","\u062f","\ufeaa","\u062f","\ufeab","\u0630","\ufeac","\u0630","\ufead","\u0631","\ufeae","\u0631","\ufeaf","\u0632","\ufeb0","\u0632","\ufeb1","\u0633","\ufeb2","\u0633","\ufeb3","\u0633","\ufeb4","\u0633","\ufeb5","\u0634","\ufeb6","\u0634","\ufeb7","\u0634","\ufeb8","\u0634","\ufeb9","\u0635","\ufeba","\u0635","\ufebb","\u0635","\ufebc","\u0635","\ufebd","\u0636","\ufebe","\u0636","\ufebf","\u0636","\ufec0","\u0636","\ufec1","\u0637","\ufec2","\u0637","\ufec3","\u0637","\ufec4","\u0637","\ufec5","\u0638","\ufec6","\u0638","\ufec7","\u0638","\ufec8","\u0638","\ufec9","\u0639","\ufeca","\u0639","\ufecb","\u0639","\ufecc","\u0639","\ufecd","\u063a","\ufece","\u063a","\ufecf","\u063a","\ufed0","\u063a","\ufed1","\u0641","\ufed2","\u0641","\ufed3","\u0641","\ufed4","\u0641","\ufed5","\u0642","\ufed6","\u0642","\ufed7","\u0642","\ufed8","\u0642","\ufed9","\u0643","\ufeda","\u0643","\ufedb","\u0643","\ufedc","\u0643","\ufedd","\u0644","\ufede","\u0644","\ufedf","\u0644","\ufee0","\u0644","\ufee1","\u0645","\ufee2","\u0645","\ufee3","\u0645","\ufee4","\u0645","\ufee5","\u0646","\ufee6","\u0646","\ufee7","\u0646","\ufee8","\u0646","\ufee9","\u0647","\ufeea","\u0647","\ufeeb","\u0647","\ufeec","\u0647","\ufeed","\u0648","\ufeee","\u0648","\ufeef","\u0649","\ufef0","\u0649","\ufef1","\u064a","\ufef2","\u064a","\ufef3","\u064a","\ufef4","\u064a","\ufef5","\u0644\u0622","\ufef6","\u0644\u0622","\ufef7","\u0644\u0623","\ufef8","\u0644\u0623","\ufef9","\u0644\u0625","\ufefa","\u0644\u0625","\ufefb","\u0644\u0627","\ufefc","\u0644\u0627"]}));function u(e){const t=e.length;if(t<=1||!function(e){let t=a[13];return e>=t.begin&&e<t.end||(t=a[11],e>=t.begin&&e<t.end)}(e.charCodeAt(0)))return e;const n=[];for(let r=t-1;r>=0;r--)n.push(e[r]);return n.join("")}const d=new RegExp("^(\\s)|(\\p{Mn})|(\\p{Cf})$","u"),h=new Map;function p(e){const t=h.get(e);if(t)return t;const n=e.match(d),r={isWhitespace:!(!n||!n[1]),isZeroWidthDiacritic:!(!n||!n[2]),isInvisibleFormatMark:!(!n||!n[3])};return h.set(e,r),r}function f(){h.clear()}},(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.getSerifFonts=t.getNonStdFontMap=t.getGlyphMapForStandardFonts=t.getFontNameToFileMap=void 0,t.getStandardFontName=function(e){const t=(0,i.normalizeFontName)(e);return o()[t]},t.getSymbolsFonts=t.getSupplementalGlyphMapForCalibri=t.getSupplementalGlyphMapForArialBlack=t.getStdFontMap=void 0;var r=n(4),i=n(36);const o=(0,r.getLookupTableFactory)((function(e){e["Times-Roman"]="Times-Roman",e.Helvetica="Helvetica",e.Courier="Courier",e.Symbol="Symbol",e["Times-Bold"]="Times-Bold",e["Helvetica-Bold"]="Helvetica-Bold",e["Courier-Bold"]="Courier-Bold",e.ZapfDingbats="ZapfDingbats",e["Times-Italic"]="Times-Italic",e["Helvetica-Oblique"]="Helvetica-Oblique",e["Courier-Oblique"]="Courier-Oblique",e["Times-BoldItalic"]="Times-BoldItalic",e["Helvetica-BoldOblique"]="Helvetica-BoldOblique",e["Courier-BoldOblique"]="Courier-BoldOblique",e.ArialNarrow="Helvetica",e["ArialNarrow-Bold"]="Helvetica-Bold",e["ArialNarrow-BoldItalic"]="Helvetica-BoldOblique",e["ArialNarrow-Italic"]="Helvetica-Oblique",e.ArialBlack="Helvetica",e["ArialBlack-Bold"]="Helvetica-Bold",e["ArialBlack-BoldItalic"]="Helvetica-BoldOblique",e["ArialBlack-Italic"]="Helvetica-Oblique",e["Arial-Black"]="Helvetica",e["Arial-Black-Bold"]="Helvetica-Bold",e["Arial-Black-BoldItalic"]="Helvetica-BoldOblique",e["Arial-Black-Italic"]="Helvetica-Oblique",e.Arial="Helvetica",e["Arial-Bold"]="Helvetica-Bold",e["Arial-BoldItalic"]="Helvetica-BoldOblique",e["Arial-Italic"]="Helvetica-Oblique",e.ArialMT="Helvetica",e["Arial-BoldItalicMT"]="Helvetica-BoldOblique",e["Arial-BoldMT"]="Helvetica-Bold",e["Arial-ItalicMT"]="Helvetica-Oblique",e.ArialUnicodeMS="Helvetica",e["ArialUnicodeMS-Bold"]="Helvetica-Bold",e["ArialUnicodeMS-BoldItalic"]="Helvetica-BoldOblique",e["ArialUnicodeMS-Italic"]="Helvetica-Oblique",e["Courier-BoldItalic"]="Courier-BoldOblique",e["Courier-Italic"]="Courier-Oblique",e.CourierNew="Courier",e["CourierNew-Bold"]="Courier-Bold",e["CourierNew-BoldItalic"]="Courier-BoldOblique",e["CourierNew-Italic"]="Courier-Oblique",e["CourierNewPS-BoldItalicMT"]="Courier-BoldOblique",e["CourierNewPS-BoldMT"]="Courier-Bold",e["CourierNewPS-ItalicMT"]="Courier-Oblique",e.CourierNewPSMT="Courier",e["Helvetica-BoldItalic"]="Helvetica-BoldOblique",e["Helvetica-Italic"]="Helvetica-Oblique",e["Symbol-Bold"]="Symbol",e["Symbol-BoldItalic"]="Symbol",e["Symbol-Italic"]="Symbol",e.TimesNewRoman="Times-Roman",e["TimesNewRoman-Bold"]="Times-Bold",e["TimesNewRoman-BoldItalic"]="Times-BoldItalic",e["TimesNewRoman-Italic"]="Times-Italic",e.TimesNewRomanPS="Times-Roman",e["TimesNewRomanPS-Bold"]="Times-Bold",e["TimesNewRomanPS-BoldItalic"]="Times-BoldItalic",e["TimesNewRomanPS-BoldItalicMT"]="Times-BoldItalic",e["TimesNewRomanPS-BoldMT"]="Times-Bold",e["TimesNewRomanPS-Italic"]="Times-Italic",e["TimesNewRomanPS-ItalicMT"]="Times-Italic",e.TimesNewRomanPSMT="Times-Roman",e["TimesNewRomanPSMT-Bold"]="Times-Bold",e["TimesNewRomanPSMT-BoldItalic"]="Times-BoldItalic",e["TimesNewRomanPSMT-Italic"]="Times-Italic"}));t.getStdFontMap=o;const s=(0,r.getLookupTableFactory)((function(e){e.Courier="FoxitFixed.pfb",e["Courier-Bold"]="FoxitFixedBold.pfb",e["Courier-BoldOblique"]="FoxitFixedBoldItalic.pfb",e["Courier-Oblique"]="FoxitFixedItalic.pfb",e.Helvetica="FoxitSans.pfb",e["Helvetica-Bold"]="FoxitSansBold.pfb",e["Helvetica-BoldOblique"]="FoxitSansBoldItalic.pfb",e["Helvetica-Oblique"]="FoxitSansItalic.pfb",e["Times-Roman"]="FoxitSerif.pfb",e["Times-Bold"]="FoxitSerifBold.pfb",e["Times-BoldItalic"]="FoxitSerifBoldItalic.pfb",e["Times-Italic"]="FoxitSerifItalic.pfb",e.Symbol="FoxitSymbol.pfb",e.ZapfDingbats="FoxitDingbats.pfb",e["LiberationSans-Regular"]="LiberationSans-Regular.ttf",e["LiberationSans-Bold"]="LiberationSans-Bold.ttf",e["LiberationSans-Italic"]="LiberationSans-Italic.ttf",e["LiberationSans-BoldItalic"]="LiberationSans-BoldItalic.ttf"}));t.getFontNameToFileMap=s;const a=(0,r.getLookupTableFactory)((function(e){e.Calibri="Helvetica",e["Calibri-Bold"]="Helvetica-Bold",e["Calibri-BoldItalic"]="Helvetica-BoldOblique",e["Calibri-Italic"]="Helvetica-Oblique",e.CenturyGothic="Helvetica",e["CenturyGothic-Bold"]="Helvetica-Bold",e["CenturyGothic-BoldItalic"]="Helvetica-BoldOblique",e["CenturyGothic-Italic"]="Helvetica-Oblique",e.ComicSansMS="Comic Sans MS",e["ComicSansMS-Bold"]="Comic Sans MS-Bold",e["ComicSansMS-BoldItalic"]="Comic Sans MS-BoldItalic",e["ComicSansMS-Italic"]="Comic Sans MS-Italic",e["ItcSymbol-Bold"]="Helvetica-Bold",e["ItcSymbol-BoldItalic"]="Helvetica-BoldOblique",e["ItcSymbol-Book"]="Helvetica",e["ItcSymbol-BookItalic"]="Helvetica-Oblique",e["ItcSymbol-Medium"]="Helvetica",e["ItcSymbol-MediumItalic"]="Helvetica-Oblique",e.LucidaConsole="Courier",e["LucidaConsole-Bold"]="Courier-Bold",e["LucidaConsole-BoldItalic"]="Courier-BoldOblique",e["LucidaConsole-Italic"]="Courier-Oblique",e["LucidaSans-Demi"]="Helvetica-Bold",e["MS-Gothic"]="MS Gothic",e["MS-Gothic-Bold"]="MS Gothic-Bold",e["MS-Gothic-BoldItalic"]="MS Gothic-BoldItalic",e["MS-Gothic-Italic"]="MS Gothic-Italic",e["MS-Mincho"]="MS Mincho",e["MS-Mincho-Bold"]="MS Mincho-Bold",e["MS-Mincho-BoldItalic"]="MS Mincho-BoldItalic",e["MS-Mincho-Italic"]="MS Mincho-Italic",e["MS-PGothic"]="MS PGothic",e["MS-PGothic-Bold"]="MS PGothic-Bold",e["MS-PGothic-BoldItalic"]="MS PGothic-BoldItalic",e["MS-PGothic-Italic"]="MS PGothic-Italic",e["MS-PMincho"]="MS PMincho",e["MS-PMincho-Bold"]="MS PMincho-Bold",e["MS-PMincho-BoldItalic"]="MS PMincho-BoldItalic",e["MS-PMincho-Italic"]="MS PMincho-Italic",e.NuptialScript="Times-Italic",e.SegoeUISymbol="Helvetica",e.Wingdings="ZapfDingbats",e["Wingdings-Regular"]="ZapfDingbats"}));t.getNonStdFontMap=a;const l=(0,r.getLookupTableFactory)((function(e){e["Adobe Jenson"]=!0,e["Adobe Text"]=!0,e.Albertus=!0,e.Aldus=!0,e.Alexandria=!0,e.Algerian=!0,e["American Typewriter"]=!0,e.Antiqua=!0,e.Apex=!0,e.Arno=!0,e.Aster=!0,e.Aurora=!0,e.Baskerville=!0,e.Bell=!0,e.Bembo=!0,e["Bembo Schoolbook"]=!0,e.Benguiat=!0,e["Berkeley Old Style"]=!0,e["Bernhard Modern"]=!0,e["Berthold City"]=!0,e.Bodoni=!0,e["Bauer Bodoni"]=!0,e["Book Antiqua"]=!0,e.Bookman=!0,e["Bordeaux Roman"]=!0,e["Californian FB"]=!0,e.Calisto=!0,e.Calvert=!0,e.Capitals=!0,e.Cambria=!0,e.Cartier=!0,e.Caslon=!0,e.Catull=!0,e.Centaur=!0,e["Century Old Style"]=!0,e["Century Schoolbook"]=!0,e.Chaparral=!0,e["Charis SIL"]=!0,e.Cheltenham=!0,e["Cholla Slab"]=!0,e.Clarendon=!0,e.Clearface=!0,e.Cochin=!0,e.Colonna=!0,e["Computer Modern"]=!0,e["Concrete Roman"]=!0,e.Constantia=!0,e["Cooper Black"]=!0,e.Corona=!0,e.Ecotype=!0,e.Egyptienne=!0,e.Elephant=!0,e.Excelsior=!0,e.Fairfield=!0,e["FF Scala"]=!0,e.Folkard=!0,e.Footlight=!0,e.FreeSerif=!0,e["Friz Quadrata"]=!0,e.Garamond=!0,e.Gentium=!0,e.Georgia=!0,e.Gloucester=!0,e["Goudy Old Style"]=!0,e["Goudy Schoolbook"]=!0,e["Goudy Pro Font"]=!0,e.Granjon=!0,e["Guardian Egyptian"]=!0,e.Heather=!0,e.Hercules=!0,e["High Tower Text"]=!0,e.Hiroshige=!0,e["Hoefler Text"]=!0,e["Humana Serif"]=!0,e.Imprint=!0,e["Ionic No. 5"]=!0,e.Janson=!0,e.Joanna=!0,e.Korinna=!0,e.Lexicon=!0,e.LiberationSerif=!0,e["Liberation Serif"]=!0,e["Linux Libertine"]=!0,e.Literaturnaya=!0,e.Lucida=!0,e["Lucida Bright"]=!0,e.Melior=!0,e.Memphis=!0,e.Miller=!0,e.Minion=!0,e.Modern=!0,e["Mona Lisa"]=!0,e["Mrs Eaves"]=!0,e["MS Serif"]=!0,e["Museo Slab"]=!0,e["New York"]=!0,e["Nimbus Roman"]=!0,e["NPS Rawlinson Roadway"]=!0,e.NuptialScript=!0,e.Palatino=!0,e.Perpetua=!0,e.Plantin=!0,e["Plantin Schoolbook"]=!0,e.Playbill=!0,e["Poor Richard"]=!0,e["Rawlinson Roadway"]=!0,e.Renault=!0,e.Requiem=!0,e.Rockwell=!0,e.Roman=!0,e["Rotis Serif"]=!0,e.Sabon=!0,e.Scala=!0,e.Seagull=!0,e.Sistina=!0,e.Souvenir=!0,e.STIX=!0,e["Stone Informal"]=!0,e["Stone Serif"]=!0,e.Sylfaen=!0,e.Times=!0,e.Trajan=!0,e["Trinit\xe9"]=!0,e["Trump Mediaeval"]=!0,e.Utopia=!0,e["Vale Type"]=!0,e["Bitstream Vera"]=!0,e["Vera Serif"]=!0,e.Versailles=!0,e.Wanted=!0,e.Weiss=!0,e["Wide Latin"]=!0,e.Windsor=!0,e.XITS=!0}));t.getSerifFonts=l;const c=(0,r.getLookupTableFactory)((function(e){e.Dingbats=!0,e.Symbol=!0,e.ZapfDingbats=!0}));t.getSymbolsFonts=c;const u=(0,r.getLookupTableFactory)((function(e){e[2]=10,e[3]=32,e[4]=33,e[5]=34,e[6]=35,e[7]=36,e[8]=37,e[9]=38,e[10]=39,e[11]=40,e[12]=41,e[13]=42,e[14]=43,e[15]=44,e[16]=45,e[17]=46,e[18]=47,e[19]=48,e[20]=49,e[21]=50,e[22]=51,e[23]=52,e[24]=53,e[25]=54,e[26]=55,e[27]=56,e[28]=57,e[29]=58,e[30]=894,e[31]=60,e[32]=61,e[33]=62,e[34]=63,e[35]=64,e[36]=65,e[37]=66,e[38]=67,e[39]=68,e[40]=69,e[41]=70,e[42]=71,e[43]=72,e[44]=73,e[45]=74,e[46]=75,e[47]=76,e[48]=77,e[49]=78,e[50]=79,e[51]=80,e[52]=81,e[53]=82,e[54]=83,e[55]=84,e[56]=85,e[57]=86,e[58]=87,e[59]=88,e[60]=89,e[61]=90,e[62]=91,e[63]=92,e[64]=93,e[65]=94,e[66]=95,e[67]=96,e[68]=97,e[69]=98,e[70]=99,e[71]=100,e[72]=101,e[73]=102,e[74]=103,e[75]=104,e[76]=105,e[77]=106,e[78]=107,e[79]=108,e[80]=109,e[81]=110,e[82]=111,e[83]=112,e[84]=113,e[85]=114,e[86]=115,e[87]=116,e[88]=117,e[89]=118,e[90]=119,e[91]=120,e[92]=121,e[93]=122,e[94]=123,e[95]=124,e[96]=125,e[97]=126,e[98]=196,e[99]=197,e[100]=199,e[101]=201,e[102]=209,e[103]=214,e[104]=220,e[105]=225,e[106]=224,e[107]=226,e[108]=228,e[109]=227,e[110]=229,e[111]=231,e[112]=233,e[113]=232,e[114]=234,e[115]=235,e[116]=237,e[117]=236,e[118]=238,e[119]=239,e[120]=241,e[121]=243,e[122]=242,e[123]=244,e[124]=246,e[125]=245,e[126]=250,e[127]=249,e[128]=251,e[129]=252,e[130]=8224,e[131]=176,e[132]=162,e[133]=163,e[134]=167,e[135]=8226,e[136]=182,e[137]=223,e[138]=174,e[139]=169,e[140]=8482,e[141]=180,e[142]=168,e[143]=8800,e[144]=198,e[145]=216,e[146]=8734,e[147]=177,e[148]=8804,e[149]=8805,e[150]=165,e[151]=181,e[152]=8706,e[153]=8721,e[154]=8719,e[156]=8747,e[157]=170,e[158]=186,e[159]=8486,e[160]=230,e[161]=248,e[162]=191,e[163]=161,e[164]=172,e[165]=8730,e[166]=402,e[167]=8776,e[168]=8710,e[169]=171,e[170]=187,e[171]=8230,e[179]=8220,e[180]=8221,e[181]=8216,e[182]=8217,e[200]=193,e[203]=205,e[210]=218,e[223]=711,e[224]=321,e[225]=322,e[226]=352,e[227]=353,e[228]=381,e[229]=382,e[233]=221,e[234]=253,e[252]=263,e[253]=268,e[254]=269,e[258]=258,e[260]=260,e[261]=261,e[265]=280,e[266]=281,e[267]=282,e[268]=283,e[269]=313,e[275]=323,e[276]=324,e[278]=328,e[283]=344,e[284]=345,e[285]=346,e[286]=347,e[292]=367,e[295]=377,e[296]=378,e[298]=380,e[305]=963,e[306]=964,e[307]=966,e[308]=8215,e[309]=8252,e[310]=8319,e[311]=8359,e[312]=8592,e[313]=8593,e[337]=9552,e[493]=1039,e[494]=1040,e[672]=1488,e[673]=1489,e[674]=1490,e[675]=1491,e[676]=1492,e[677]=1493,e[678]=1494,e[679]=1495,e[680]=1496,e[681]=1497,e[682]=1498,e[683]=1499,e[684]=1500,e[685]=1501,e[686]=1502,e[687]=1503,e[688]=1504,e[689]=1505,e[690]=1506,e[691]=1507,e[692]=1508,e[693]=1509,e[694]=1510,e[695]=1511,e[696]=1512,e[697]=1513,e[698]=1514,e[705]=1524,e[706]=8362,e[710]=64288,e[711]=64298,e[759]=1617,e[761]=1776,e[763]=1778,e[775]=1652,e[777]=1764,e[778]=1780,e[779]=1781,e[780]=1782,e[782]=771,e[783]=64726,e[786]=8363,e[788]=8532,e[790]=768,e[791]=769,e[792]=768,e[795]=803,e[797]=64336,e[798]=64337,e[799]=64342,e[800]=64343,e[801]=64344,e[802]=64345,e[803]=64362,e[804]=64363,e[805]=64364,e[2424]=7821,e[2425]=7822,e[2426]=7823,e[2427]=7824,e[2428]=7825,e[2429]=7826,e[2430]=7827,e[2433]=7682,e[2678]=8045,e[2679]=8046,e[2830]=1552,e[2838]=686,e[2840]=751,e[2842]=753,e[2843]=754,e[2844]=755,e[2846]=757,e[2856]=767,e[2857]=848,e[2858]=849,e[2862]=853,e[2863]=854,e[2864]=855,e[2865]=861,e[2866]=862,e[2906]=7460,e[2908]=7462,e[2909]=7463,e[2910]=7464,e[2912]=7466,e[2913]=7467,e[2914]=7468,e[2916]=7470,e[2917]=7471,e[2918]=7472,e[2920]=7474,e[2921]=7475,e[2922]=7476,e[2924]=7478,e[2925]=7479,e[2926]=7480,e[2928]=7482,e[2929]=7483,e[2930]=7484,e[2932]=7486,e[2933]=7487,e[2934]=7488,e[2936]=7490,e[2937]=7491,e[2938]=7492,e[2940]=7494,e[2941]=7495,e[2942]=7496,e[2944]=7498,e[2946]=7500,e[2948]=7502,e[2950]=7504,e[2951]=7505,e[2952]=7506,e[2954]=7508,e[2955]=7509,e[2956]=7510,e[2958]=7512,e[2959]=7513,e[2960]=7514,e[2962]=7516,e[2963]=7517,e[2964]=7518,e[2966]=7520,e[2967]=7521,e[2968]=7522,e[2970]=7524,e[2971]=7525,e[2972]=7526,e[2974]=7528,e[2975]=7529,e[2976]=7530,e[2978]=1537,e[2979]=1538,e[2980]=1539,e[2982]=1549,e[2983]=1551,e[2984]=1552,e[2986]=1554,e[2987]=1555,e[2988]=1556,e[2990]=1623,e[2991]=1624,e[2995]=1775,e[2999]=1791,e[3002]=64290,e[3003]=64291,e[3004]=64292,e[3006]=64294,e[3007]=64295,e[3008]=64296,e[3011]=1900,e[3014]=8223,e[3015]=8244,e[3017]=7532,e[3018]=7533,e[3019]=7534,e[3075]=7590,e[3076]=7591,e[3079]=7594,e[3080]=7595,e[3083]=7598,e[3084]=7599,e[3087]=7602,e[3088]=7603,e[3091]=7606,e[3092]=7607,e[3095]=7610,e[3096]=7611,e[3099]=7614,e[3100]=7615,e[3103]=7618,e[3104]=7619,e[3107]=8337,e[3108]=8338,e[3116]=1884,e[3119]=1885,e[3120]=1885,e[3123]=1886,e[3124]=1886,e[3127]=1887,e[3128]=1887,e[3131]=1888,e[3132]=1888,e[3135]=1889,e[3136]=1889,e[3139]=1890,e[3140]=1890,e[3143]=1891,e[3144]=1891,e[3147]=1892,e[3148]=1892,e[3153]=580,e[3154]=581,e[3157]=584,e[3158]=585,e[3161]=588,e[3162]=589,e[3165]=891,e[3166]=892,e[3169]=1274,e[3170]=1275,e[3173]=1278,e[3174]=1279,e[3181]=7622,e[3182]=7623,e[3282]=11799,e[3316]=578,e[3379]=42785,e[3393]=1159,e[3416]=8377}));t.getGlyphMapForStandardFonts=u;const d=(0,r.getLookupTableFactory)((function(e){e[227]=322,e[264]=261,e[291]=346}));t.getSupplementalGlyphMapForArialBlack=d;const h=(0,r.getLookupTableFactory)((function(e){e[1]=32,e[4]=65,e[5]=192,e[6]=193,e[9]=196,e[17]=66,e[18]=67,e[21]=268,e[24]=68,e[28]=69,e[29]=200,e[30]=201,e[32]=282,e[38]=70,e[39]=71,e[44]=72,e[47]=73,e[48]=204,e[49]=205,e[58]=74,e[60]=75,e[62]=76,e[68]=77,e[69]=78,e[75]=79,e[76]=210,e[80]=214,e[87]=80,e[89]=81,e[90]=82,e[92]=344,e[94]=83,e[97]=352,e[100]=84,e[104]=85,e[109]=220,e[115]=86,e[116]=87,e[121]=88,e[122]=89,e[124]=221,e[127]=90,e[129]=381,e[258]=97,e[259]=224,e[260]=225,e[263]=228,e[268]=261,e[271]=98,e[272]=99,e[273]=263,e[275]=269,e[282]=100,e[286]=101,e[287]=232,e[288]=233,e[290]=283,e[295]=281,e[296]=102,e[336]=103,e[346]=104,e[349]=105,e[350]=236,e[351]=237,e[361]=106,e[364]=107,e[367]=108,e[371]=322,e[373]=109,e[374]=110,e[381]=111,e[382]=242,e[383]=243,e[386]=246,e[393]=112,e[395]=113,e[396]=114,e[398]=345,e[400]=115,e[401]=347,e[403]=353,e[410]=116,e[437]=117,e[442]=252,e[448]=118,e[449]=119,e[454]=120,e[455]=121,e[457]=253,e[460]=122,e[462]=382,e[463]=380,e[853]=44,e[855]=58,e[856]=46,e[876]=47,e[878]=45,e[882]=45,e[894]=40,e[895]=41,e[896]=91,e[897]=93,e[923]=64,e[1004]=48,e[1005]=49,e[1006]=50,e[1007]=51,e[1008]=52,e[1009]=53,e[1010]=54,e[1011]=55,e[1012]=56,e[1013]=57,e[1081]=37,e[1085]=43,e[1086]=45}));t.getSupplementalGlyphMapForCalibri=h},(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.ToUnicodeMap=t.IdentityToUnicodeMap=void 0;var r=n(2);t.ToUnicodeMap=class{constructor(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];this._map=e}get length(){return this._map.length}forEach(e){for(const t in this._map)e(t,this._map[t].charCodeAt(0))}has(e){return void 0!==this._map[e]}get(e){return this._map[e]}charCodeOf(e){const t=this._map;if(t.length<=65536)return t.indexOf(e);for(const n in t)if(t[n]===e)return 0|n;return-1}amend(e){for(const t in e)this._map[t]=e[t]}},t.IdentityToUnicodeMap=class{constructor(e,t){this.firstChar=e,this.lastChar=t}get length(){return this.lastChar+1-this.firstChar}forEach(e){for(let t=this.firstChar,n=this.lastChar;t<=n;t++)e(t,t)}has(e){return this.firstChar<=e&&e<=this.lastChar}get(e){if(this.firstChar<=e&&e<=this.lastChar)return String.fromCharCode(e)}charCodeOf(e){return Number.isInteger(e)&&e>=this.firstChar&&e<=this.lastChar?e:-1}amend(e){(0,r.unreachable)("Should not call amend()")}}},(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.CFFFont=void 0;var r=n(33),i=n(36),o=n(2);t.CFFFont=class{constructor(e,t){this.properties=t;const n=new r.CFFParser(e,t,i.SEAC_ANALYSIS_ENABLED);this.cff=n.parse(),this.cff.duplicateFirstGlyph();const s=new r.CFFCompiler(this.cff);this.seacs=this.cff.seacs;try{this.data=s.compile()}catch(a){(0,o.warn)("Failed to compile font "+t.loadedName),this.data=e}this._createBuiltInEncoding()}get numGlyphs(){return this.cff.charStrings.count}getCharset(){return this.cff.charset.charset}getGlyphMapping(){const e=this.cff,t=this.properties,{cidToGidMap:n,cMap:r}=t,o=e.charset.charset;let s,a;if(t.composite){let t,i;if(n&&n.length>0){t=Object.create(null);for(let e=0,r=n.length;e<r;e++){const r=n[e];void 0!==r&&(t[r]=e)}}if(s=Object.create(null),e.isCIDFont)for(a=0;a<o.length;a++){const e=o[a];i=r.charCodeOf(e),t&&void 0!==t[i]&&(i=t[i]),s[i]=a}else for(a=0;a<e.charStrings.count;a++)i=r.charCodeOf(a),s[i]=a;return s}let l=e.encoding?e.encoding.encoding:null;return t.isInternalFont&&(l=t.defaultEncoding),s=(0,i.type1FontGlyphMapping)(t,l,o),s}hasGlyphId(e){return this.cff.hasGlyphId(e)}_createBuiltInEncoding(){const{charset:e,encoding:t}=this.cff;if(!e||!t)return;const n=e.charset,r=t.encoding,i=[];for(const o in r){const e=r[o];if(e>=0){const t=n[e];t&&(i[o]=t)}}i.length>0&&(this.properties.builtInEncoding=i)}}},(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.FontRendererFactory=void 0;var r=n(2),i=n(33),o=n(37),s=n(35),a=n(8);function l(e,t){return(e[t]<<24|e[t+1]<<16|e[t+2]<<8|e[t+3])>>>0}function c(e,t){return e[t]<<8|e[t+1]}function u(e,t){return(e[t]<<24|e[t+1]<<16)>>16}function d(e,t){return e[t]<<24>>24}function h(e,t){return u(e,t)/16384}function p(e){const t=e.length;let n=32768;return t<1240?n=107:t<33900&&(n=1131),n}function f(e,t,n){const i=1===c(e,t+2)?l(e,t+8):l(e,t+16),o=c(e,t+i);let s,a,u;if(4===o){c(e,t+i+2);const n=c(e,t+i+6)>>1;for(a=t+i+14,s=[],u=0;u<n;u++,a+=2)s[u]={end:c(e,a)};for(a+=2,u=0;u<n;u++,a+=2)s[u].start=c(e,a);for(u=0;u<n;u++,a+=2)s[u].idDelta=c(e,a);for(u=0;u<n;u++,a+=2){let t=c(e,a);if(0!==t){s[u].ids=[];for(let n=0,r=s[u].end-s[u].start+1;n<r;n++)s[u].ids[n]=c(e,a+t),t+=2}}return s}if(12===o){const n=l(e,t+i+12);for(a=t+i+16,s=[],u=0;u<n;u++)t=l(e,a),s.push({start:t,end:l(e,a+4),idDelta:l(e,a+8)-t}),a+=12;return s}throw new r.FormatError("unsupported cmap: ".concat(o))}function g(e,t,n,r){const o=new i.CFFParser(new a.Stream(e,t,n-t),{},r).parse();return{glyphs:o.charStrings.objects,subrs:o.topDict.privateDict&&o.topDict.privateDict.subrsIndex&&o.topDict.privateDict.subrsIndex.objects,gsubrs:o.globalSubrIndex&&o.globalSubrIndex.objects,isCFFCIDFont:o.isCIDFont,fdSelect:o.fdSelect,fdArray:o.fdArray}}function m(e,t){const n=t.codePointAt(0);let r=0,i=0,o=e.length-1;for(;i<o;){const t=i+o+1>>1;n<e[t].start?o=t-1:i=t}return e[i].start<=n&&n<=e[i].end&&(r=e[i].idDelta+(e[i].ids?e[i].ids[n-e[i].start]:n)&65535),{charCode:n,glyphId:r}}function y(e,t,n){function r(e,n){t.push({cmd:"moveTo",args:[e,n]})}function i(e,n){t.push({cmd:"lineTo",args:[e,n]})}function o(e,n,r,i){t.push({cmd:"quadraticCurveTo",args:[e,n,r,i]})}let s=0;const a=u(e,s);let l,p=0,f=0;if(s+=10,a<0)do{l=c(e,s);const r=c(e,s+2);let i,o;s+=4,1&l?(2&l?(i=u(e,s),o=u(e,s+2)):(i=c(e,s),o=c(e,s+2)),s+=4):2&l?(i=d(e,s++),o=d(e,s++)):(i=e[s++],o=e[s++]),2&l?(p=i,f=o):(p=0,f=0);let a=1,g=1,m=0,v=0;8&l?(a=g=h(e,s),s+=2):64&l?(a=h(e,s),g=h(e,s+2),s+=4):128&l&&(a=h(e,s),m=h(e,s+2),v=h(e,s+4),g=h(e,s+6),s+=8);const _=n.glyphs[r];_&&(t.push({cmd:"save"},{cmd:"transform",args:[a,m,v,g,p,f]}),y(_,t,n),t.push({cmd:"restore"}))}while(32&l);else{const t=[];let n,d;for(n=0;n<a;n++)t.push(c(e,s)),s+=2;s+=2+c(e,s);const h=t.at(-1)+1,g=[];for(;g.length<h;){l=e[s++];let t=1;for(8&l&&(t+=e[s++]);t-- >0;)g.push({flags:l})}for(n=0;n<h;n++){switch(18&g[n].flags){case 0:p+=u(e,s),s+=2;break;case 2:p-=e[s++];break;case 18:p+=e[s++]}g[n].x=p}for(n=0;n<h;n++){switch(36&g[n].flags){case 0:f+=u(e,s),s+=2;break;case 4:f-=e[s++];break;case 36:f+=e[s++]}g[n].y=f}let m=0;for(s=0;s<a;s++){const e=t[s],a=g.slice(m,e+1);if(1&a[0].flags)a.push(a[0]);else if(1&a.at(-1).flags)a.unshift(a.at(-1));else{const e={flags:1,x:(a[0].x+a.at(-1).x)/2,y:(a[0].y+a.at(-1).y)/2};a.unshift(e),a.push(e)}for(r(a[0].x,a[0].y),n=1,d=a.length;n<d;n++)1&a[n].flags?i(a[n].x,a[n].y):1&a[n+1].flags?(o(a[n].x,a[n].y,a[n+1].x,a[n+1].y),n++):o(a[n].x,a[n].y,(a[n].x+a[n+1].x)/2,(a[n].y+a[n+1].y)/2);m=e+1}}}function v(e,t,n,i){function o(e,n){t.push({cmd:"moveTo",args:[e,n]})}function a(e,n){t.push({cmd:"lineTo",args:[e,n]})}function l(e,n,r,i,o,s){t.push({cmd:"bezierCurveTo",args:[e,n,r,i,o,s]})}const c=[];let u=0,d=0,h=0;!function e(f){let g=0;for(;g<f.length;){let y,_,b,x,S,w,E,P,C,A=!1,k=f[g++];switch(k){case 1:case 3:case 18:case 23:h+=c.length>>1,A=!0;break;case 4:d+=c.pop(),o(u,d),A=!0;break;case 5:for(;c.length>0;)u+=c.shift(),d+=c.shift(),a(u,d);break;case 6:for(;c.length>0&&(u+=c.shift(),a(u,d),0!==c.length);)d+=c.shift(),a(u,d);break;case 7:for(;c.length>0&&(d+=c.shift(),a(u,d),0!==c.length);)u+=c.shift(),a(u,d);break;case 8:for(;c.length>0;)y=u+c.shift(),b=d+c.shift(),_=y+c.shift(),x=b+c.shift(),u=_+c.shift(),d=x+c.shift(),l(y,b,_,x,u,d);break;case 10:if(P=c.pop(),C=null,n.isCFFCIDFont){const e=n.fdSelect.getFDIndex(i);if(e>=0&&e<n.fdArray.length){const t=n.fdArray[e];let r;t.privateDict&&t.privateDict.subrsIndex&&(r=t.privateDict.subrsIndex.objects),r&&(P+=p(r),C=r[P])}else(0,r.warn)("Invalid fd index for glyph index.")}else C=n.subrs[P+n.subrsBias];C&&e(C);break;case 11:return;case 12:switch(k=f[g++],k){case 34:y=u+c.shift(),_=y+c.shift(),S=d+c.shift(),u=_+c.shift(),l(y,d,_,S,u,S),y=u+c.shift(),_=y+c.shift(),u=_+c.shift(),l(y,S,_,d,u,d);break;case 35:y=u+c.shift(),b=d+c.shift(),_=y+c.shift(),x=b+c.shift(),u=_+c.shift(),d=x+c.shift(),l(y,b,_,x,u,d),y=u+c.shift(),b=d+c.shift(),_=y+c.shift(),x=b+c.shift(),u=_+c.shift(),d=x+c.shift(),l(y,b,_,x,u,d),c.pop();break;case 36:y=u+c.shift(),S=d+c.shift(),_=y+c.shift(),w=S+c.shift(),u=_+c.shift(),l(y,S,_,w,u,w),y=u+c.shift(),_=y+c.shift(),E=w+c.shift(),u=_+c.shift(),l(y,w,_,E,u,d);break;case 37:const e=u,t=d;y=u+c.shift(),b=d+c.shift(),_=y+c.shift(),x=b+c.shift(),u=_+c.shift(),d=x+c.shift(),l(y,b,_,x,u,d),y=u+c.shift(),b=d+c.shift(),_=y+c.shift(),x=b+c.shift(),u=_,d=x,Math.abs(u-e)>Math.abs(d-t)?u+=c.shift():d+=c.shift(),l(y,b,_,x,u,d);break;default:throw new r.FormatError("unknown operator: 12 ".concat(k))}break;case 14:if(c.length>=4){const e=c.pop(),r=c.pop();d=c.pop(),u=c.pop(),t.push({cmd:"save"},{cmd:"translate",args:[u,d]});let i=m(n.cmap,String.fromCharCode(n.glyphNameMap[s.StandardEncoding[e]]));v(n.glyphs[i.glyphId],t,n,i.glyphId),t.push({cmd:"restore"}),i=m(n.cmap,String.fromCharCode(n.glyphNameMap[s.StandardEncoding[r]])),v(n.glyphs[i.glyphId],t,n,i.glyphId)}return;case 19:case 20:h+=c.length>>1,g+=h+7>>3,A=!0;break;case 21:d+=c.pop(),u+=c.pop(),o(u,d),A=!0;break;case 22:u+=c.pop(),o(u,d),A=!0;break;case 24:for(;c.length>2;)y=u+c.shift(),b=d+c.shift(),_=y+c.shift(),x=b+c.shift(),u=_+c.shift(),d=x+c.shift(),l(y,b,_,x,u,d);u+=c.shift(),d+=c.shift(),a(u,d);break;case 25:for(;c.length>6;)u+=c.shift(),d+=c.shift(),a(u,d);y=u+c.shift(),b=d+c.shift(),_=y+c.shift(),x=b+c.shift(),u=_+c.shift(),d=x+c.shift(),l(y,b,_,x,u,d);break;case 26:for(c.length%2&&(u+=c.shift());c.length>0;)y=u,b=d+c.shift(),_=y+c.shift(),x=b+c.shift(),u=_,d=x+c.shift(),l(y,b,_,x,u,d);break;case 27:for(c.length%2&&(d+=c.shift());c.length>0;)y=u+c.shift(),b=d,_=y+c.shift(),x=b+c.shift(),u=_+c.shift(),d=x,l(y,b,_,x,u,d);break;case 28:c.push((f[g]<<24|f[g+1]<<16)>>16),g+=2;break;case 29:P=c.pop()+n.gsubrsBias,C=n.gsubrs[P],C&&e(C);break;case 30:for(;c.length>0&&(y=u,b=d+c.shift(),_=y+c.shift(),x=b+c.shift(),u=_+c.shift(),d=x+(1===c.length?c.shift():0),l(y,b,_,x,u,d),0!==c.length);)y=u+c.shift(),b=d,_=y+c.shift(),x=b+c.shift(),d=x+c.shift(),u=_+(1===c.length?c.shift():0),l(y,b,_,x,u,d);break;case 31:for(;c.length>0&&(y=u+c.shift(),b=d,_=y+c.shift(),x=b+c.shift(),d=x+c.shift(),u=_+(1===c.length?c.shift():0),l(y,b,_,x,u,d),0!==c.length);)y=u,b=d+c.shift(),_=y+c.shift(),x=b+c.shift(),u=_+c.shift(),d=x+(1===c.length?c.shift():0),l(y,b,_,x,u,d);break;default:if(k<32)throw new r.FormatError("unknown operator: ".concat(k));k<247?c.push(k-139):k<251?c.push(256*(k-247)+f[g++]+108):k<255?c.push(256*-(k-251)-f[g++]-108):(c.push((f[g]<<24|f[g+1]<<16|f[g+2]<<8|f[g+3])/65536),g+=4)}A&&(c.length=0)}}(e)}const _=[];class b{constructor(e){this.constructor===b&&(0,r.unreachable)("Cannot initialize CompiledFont."),this.fontMatrix=e,this.compiledGlyphs=Object.create(null),this.compiledCharCodeToGlyphId=Object.create(null)}getPathJs(e){const{charCode:t,glyphId:n}=m(this.cmap,e);let r=this.compiledGlyphs[n];if(!r)try{r=this.compileGlyph(this.glyphs[n],n),this.compiledGlyphs[n]=r}catch(i){throw this.compiledGlyphs[n]=_,void 0===this.compiledCharCodeToGlyphId[t]&&(this.compiledCharCodeToGlyphId[t]=n),i}return void 0===this.compiledCharCodeToGlyphId[t]&&(this.compiledCharCodeToGlyphId[t]=n),r}compileGlyph(e,t){if(!e||0===e.length||14===e[0])return _;let n=this.fontMatrix;if(this.isCFFCIDFont){const e=this.fdSelect.getFDIndex(t);e>=0&&e<this.fdArray.length?n=this.fdArray[e].getByName("FontMatrix")||r.FONT_IDENTITY_MATRIX:(0,r.warn)("Invalid fd index for glyph index.")}const i=[{cmd:"save"},{cmd:"transform",args:n.slice()},{cmd:"scale",args:["size","-size"]}];return this.compileGlyphImpl(e,i,t),i.push({cmd:"restore"}),i}compileGlyphImpl(){(0,r.unreachable)("Children classes should implement this.")}hasBuiltPath(e){const{charCode:t,glyphId:n}=m(this.cmap,e);return void 0!==this.compiledGlyphs[n]&&void 0!==this.compiledCharCodeToGlyphId[t]}}class x extends b{constructor(e,t,n){super(n||[488e-6,0,0,488e-6,0,0]),this.glyphs=e,this.cmap=t}compileGlyphImpl(e,t){y(e,t,this)}}class S extends b{constructor(e,t,n,r){super(n||[.001,0,0,.001,0,0]),this.glyphs=e.glyphs,this.gsubrs=e.gsubrs||[],this.subrs=e.subrs||[],this.cmap=t,this.glyphNameMap=r||(0,o.getGlyphsUnicode)(),this.gsubrsBias=p(this.gsubrs),this.subrsBias=p(this.subrs),this.isCFFCIDFont=e.isCFFCIDFont,this.fdSelect=e.fdSelect,this.fdArray=e.fdArray}compileGlyphImpl(e,t,n){v(e,t,this,n)}}t.FontRendererFactory=class{static create(e,t){const n=new Uint8Array(e.data);let i,o,s,a,u,d;const h=c(n,4);for(let p=0,m=12;p<h;p++,m+=16){const e=(0,r.bytesToString)(n.subarray(m,m+4)),h=l(n,m+8),p=l(n,m+12);switch(e){case"cmap":i=f(n,h);break;case"glyf":o=n.subarray(h,h+p);break;case"loca":s=n.subarray(h,h+p);break;case"head":d=c(n,h+18),u=c(n,h+50);break;case"CFF ":a=g(n,h,h+p,t)}}if(o){const t=d?[1/d,0,0,1/d,0,0]:e.fontMatrix;return new x(function(e,t,n){let r,i;n?(r=4,i=l):(r=2,i=(e,t)=>2*c(e,t));const o=[];let s=i(t,0);for(let a=r;a<t.length;a+=r){const n=i(t,a);o.push(e.subarray(s,n)),s=n}return o}(o,s,u),i,t)}return new S(a,i,e.fontMatrix,e.glyphNameMap)}}},(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.getMetrics=t.getFontBasicMetrics=void 0;var r=n(4);const i=(0,r.getLookupTableFactory)((function(e){e.Courier=600,e["Courier-Bold"]=600,e["Courier-BoldOblique"]=600,e["Courier-Oblique"]=600,e.Helvetica=(0,r.getLookupTableFactory)((function(e){e.space=278,e.exclam=278,e.quotedbl=355,e.numbersign=556,e.dollar=556,e.percent=889,e.ampersand=667,e.quoteright=222,e.parenleft=333,e.parenright=333,e.asterisk=389,e.plus=584,e.comma=278,e.hyphen=333,e.period=278,e.slash=278,e.zero=556,e.one=556,e.two=556,e.three=556,e.four=556,e.five=556,e.six=556,e.seven=556,e.eight=556,e.nine=556,e.colon=278,e.semicolon=278,e.less=584,e.equal=584,e.greater=584,e.question=556,e.at=1015,e.A=667,e.B=667,e.C=722,e.D=722,e.E=667,e.F=611,e.G=778,e.H=722,e.I=278,e.J=500,e.K=667,e.L=556,e.M=833,e.N=722,e.O=778,e.P=667,e.Q=778,e.R=722,e.S=667,e.T=611,e.U=722,e.V=667,e.W=944,e.X=667,e.Y=667,e.Z=611,e.bracketleft=278,e.backslash=278,e.bracketright=278,e.asciicircum=469,e.underscore=556,e.quoteleft=222,e.a=556,e.b=556,e.c=500,e.d=556,e.e=556,e.f=278,e.g=556,e.h=556,e.i=222,e.j=222,e.k=500,e.l=222,e.m=833,e.n=556,e.o=556,e.p=556,e.q=556,e.r=333,e.s=500,e.t=278,e.u=556,e.v=500,e.w=722,e.x=500,e.y=500,e.z=500,e.braceleft=334,e.bar=260,e.braceright=334,e.asciitilde=584,e.exclamdown=333,e.cent=556,e.sterling=556,e.fraction=167,e.yen=556,e.florin=556,e.section=556,e.currency=556,e.quotesingle=191,e.quotedblleft=333,e.guillemotleft=556,e.guilsinglleft=333,e.guilsinglright=333,e.fi=500,e.fl=500,e.endash=556,e.dagger=556,e.daggerdbl=556,e.periodcentered=278,e.paragraph=537,e.bullet=350,e.quotesinglbase=222,e.quotedblbase=333,e.quotedblright=333,e.guillemotright=556,e.ellipsis=1e3,e.perthousand=1e3,e.questiondown=611,e.grave=333,e.acute=333,e.circumflex=333,e.tilde=333,e.macron=333,e.breve=333,e.dotaccent=333,e.dieresis=333,e.ring=333,e.cedilla=333,e.hungarumlaut=333,e.ogonek=333,e.caron=333,e.emdash=1e3,e.AE=1e3,e.ordfeminine=370,e.Lslash=556,e.Oslash=778,e.OE=1e3,e.ordmasculine=365,e.ae=889,e.dotlessi=278,e.lslash=222,e.oslash=611,e.oe=944,e.germandbls=611,e.Idieresis=278,e.eacute=556,e.abreve=556,e.uhungarumlaut=556,e.ecaron=556,e.Ydieresis=667,e.divide=584,e.Yacute=667,e.Acircumflex=667,e.aacute=556,e.Ucircumflex=722,e.yacute=500,e.scommaaccent=500,e.ecircumflex=556,e.Uring=722,e.Udieresis=722,e.aogonek=556,e.Uacute=722,e.uogonek=556,e.Edieresis=667,e.Dcroat=722,e.commaaccent=250,e.copyright=737,e.Emacron=667,e.ccaron=500,e.aring=556,e.Ncommaaccent=722,e.lacute=222,e.agrave=556,e.Tcommaaccent=611,e.Cacute=722,e.atilde=556,e.Edotaccent=667,e.scaron=500,e.scedilla=500,e.iacute=278,e.lozenge=471,e.Rcaron=722,e.Gcommaaccent=778,e.ucircumflex=556,e.acircumflex=556,e.Amacron=667,e.rcaron=333,e.ccedilla=500,e.Zdotaccent=611,e.Thorn=667,e.Omacron=778,e.Racute=722,e.Sacute=667,e.dcaron=643,e.Umacron=722,e.uring=556,e.threesuperior=333,e.Ograve=778,e.Agrave=667,e.Abreve=667,e.multiply=584,e.uacute=556,e.Tcaron=611,e.partialdiff=476,e.ydieresis=500,e.Nacute=722,e.icircumflex=278,e.Ecircumflex=667,e.adieresis=556,e.edieresis=556,e.cacute=500,e.nacute=556,e.umacron=556,e.Ncaron=722,e.Iacute=278,e.plusminus=584,e.brokenbar=260,e.registered=737,e.Gbreve=778,e.Idotaccent=278,e.summation=600,e.Egrave=667,e.racute=333,e.omacron=556,e.Zacute=611,e.Zcaron=611,e.greaterequal=549,e.Eth=722,e.Ccedilla=722,e.lcommaaccent=222,e.tcaron=317,e.eogonek=556,e.Uogonek=722,e.Aacute=667,e.Adieresis=667,e.egrave=556,e.zacute=500,e.iogonek=222,e.Oacute=778,e.oacute=556,e.amacron=556,e.sacute=500,e.idieresis=278,e.Ocircumflex=778,e.Ugrave=722,e.Delta=612,e.thorn=556,e.twosuperior=333,e.Odieresis=778,e.mu=556,e.igrave=278,e.ohungarumlaut=556,e.Eogonek=667,e.dcroat=556,e.threequarters=834,e.Scedilla=667,e.lcaron=299,e.Kcommaaccent=667,e.Lacute=556,e.trademark=1e3,e.edotaccent=556,e.Igrave=278,e.Imacron=278,e.Lcaron=556,e.onehalf=834,e.lessequal=549,e.ocircumflex=556,e.ntilde=556,e.Uhungarumlaut=722,e.Eacute=667,e.emacron=556,e.gbreve=556,e.onequarter=834,e.Scaron=667,e.Scommaaccent=667,e.Ohungarumlaut=778,e.degree=400,e.ograve=556,e.Ccaron=722,e.ugrave=556,e.radical=453,e.Dcaron=722,e.rcommaaccent=333,e.Ntilde=722,e.otilde=556,e.Rcommaaccent=722,e.Lcommaaccent=556,e.Atilde=667,e.Aogonek=667,e.Aring=667,e.Otilde=778,e.zdotaccent=500,e.Ecaron=667,e.Iogonek=278,e.kcommaaccent=500,e.minus=584,e.Icircumflex=278,e.ncaron=556,e.tcommaaccent=278,e.logicalnot=584,e.odieresis=556,e.udieresis=556,e.notequal=549,e.gcommaaccent=556,e.eth=556,e.zcaron=500,e.ncommaaccent=556,e.onesuperior=333,e.imacron=278,e.Euro=556})),e["Helvetica-Bold"]=(0,r.getLookupTableFactory)((function(e){e.space=278,e.exclam=333,e.quotedbl=474,e.numbersign=556,e.dollar=556,e.percent=889,e.ampersand=722,e.quoteright=278,e.parenleft=333,e.parenright=333,e.asterisk=389,e.plus=584,e.comma=278,e.hyphen=333,e.period=278,e.slash=278,e.zero=556,e.one=556,e.two=556,e.three=556,e.four=556,e.five=556,e.six=556,e.seven=556,e.eight=556,e.nine=556,e.colon=333,e.semicolon=333,e.less=584,e.equal=584,e.greater=584,e.question=611,e.at=975,e.A=722,e.B=722,e.C=722,e.D=722,e.E=667,e.F=611,e.G=778,e.H=722,e.I=278,e.J=556,e.K=722,e.L=611,e.M=833,e.N=722,e.O=778,e.P=667,e.Q=778,e.R=722,e.S=667,e.T=611,e.U=722,e.V=667,e.W=944,e.X=667,e.Y=667,e.Z=611,e.bracketleft=333,e.backslash=278,e.bracketright=333,e.asciicircum=584,e.underscore=556,e.quoteleft=278,e.a=556,e.b=611,e.c=556,e.d=611,e.e=556,e.f=333,e.g=611,e.h=611,e.i=278,e.j=278,e.k=556,e.l=278,e.m=889,e.n=611,e.o=611,e.p=611,e.q=611,e.r=389,e.s=556,e.t=333,e.u=611,e.v=556,e.w=778,e.x=556,e.y=556,e.z=500,e.braceleft=389,e.bar=280,e.braceright=389,e.asciitilde=584,e.exclamdown=333,e.cent=556,e.sterling=556,e.fraction=167,e.yen=556,e.florin=556,e.section=556,e.currency=556,e.quotesingle=238,e.quotedblleft=500,e.guillemotleft=556,e.guilsinglleft=333,e.guilsinglright=333,e.fi=611,e.fl=611,e.endash=556,e.dagger=556,e.daggerdbl=556,e.periodcentered=278,e.paragraph=556,e.bullet=350,e.quotesinglbase=278,e.quotedblbase=500,e.quotedblright=500,e.guillemotright=556,e.ellipsis=1e3,e.perthousand=1e3,e.questiondown=611,e.grave=333,e.acute=333,e.circumflex=333,e.tilde=333,e.macron=333,e.breve=333,e.dotaccent=333,e.dieresis=333,e.ring=333,e.cedilla=333,e.hungarumlaut=333,e.ogonek=333,e.caron=333,e.emdash=1e3,e.AE=1e3,e.ordfeminine=370,e.Lslash=611,e.Oslash=778,e.OE=1e3,e.ordmasculine=365,e.ae=889,e.dotlessi=278,e.lslash=278,e.oslash=611,e.oe=944,e.germandbls=611,e.Idieresis=278,e.eacute=556,e.abreve=556,e.uhungarumlaut=611,e.ecaron=556,e.Ydieresis=667,e.divide=584,e.Yacute=667,e.Acircumflex=722,e.aacute=556,e.Ucircumflex=722,e.yacute=556,e.scommaaccent=556,e.ecircumflex=556,e.Uring=722,e.Udieresis=722,e.aogonek=556,e.Uacute=722,e.uogonek=611,e.Edieresis=667,e.Dcroat=722,e.commaaccent=250,e.copyright=737,e.Emacron=667,e.ccaron=556,e.aring=556,e.Ncommaaccent=722,e.lacute=278,e.agrave=556,e.Tcommaaccent=611,e.Cacute=722,e.atilde=556,e.Edotaccent=667,e.scaron=556,e.scedilla=556,e.iacute=278,e.lozenge=494,e.Rcaron=722,e.Gcommaaccent=778,e.ucircumflex=611,e.acircumflex=556,e.Amacron=722,e.rcaron=389,e.ccedilla=556,e.Zdotaccent=611,e.Thorn=667,e.Omacron=778,e.Racute=722,e.Sacute=667,e.dcaron=743,e.Umacron=722,e.uring=611,e.threesuperior=333,e.Ograve=778,e.Agrave=722,e.Abreve=722,e.multiply=584,e.uacute=611,e.Tcaron=611,e.partialdiff=494,e.ydieresis=556,e.Nacute=722,e.icircumflex=278,e.Ecircumflex=667,e.adieresis=556,e.edieresis=556,e.cacute=556,e.nacute=611,e.umacron=611,e.Ncaron=722,e.Iacute=278,e.plusminus=584,e.brokenbar=280,e.registered=737,e.Gbreve=778,e.Idotaccent=278,e.summation=600,e.Egrave=667,e.racute=389,e.omacron=611,e.Zacute=611,e.Zcaron=611,e.greaterequal=549,e.Eth=722,e.Ccedilla=722,e.lcommaaccent=278,e.tcaron=389,e.eogonek=556,e.Uogonek=722,e.Aacute=722,e.Adieresis=722,e.egrave=556,e.zacute=500,e.iogonek=278,e.Oacute=778,e.oacute=611,e.amacron=556,e.sacute=556,e.idieresis=278,e.Ocircumflex=778,e.Ugrave=722,e.Delta=612,e.thorn=611,e.twosuperior=333,e.Odieresis=778,e.mu=611,e.igrave=278,e.ohungarumlaut=611,e.Eogonek=667,e.dcroat=611,e.threequarters=834,e.Scedilla=667,e.lcaron=400,e.Kcommaaccent=722,e.Lacute=611,e.trademark=1e3,e.edotaccent=556,e.Igrave=278,e.Imacron=278,e.Lcaron=611,e.onehalf=834,e.lessequal=549,e.ocircumflex=611,e.ntilde=611,e.Uhungarumlaut=722,e.Eacute=667,e.emacron=556,e.gbreve=611,e.onequarter=834,e.Scaron=667,e.Scommaaccent=667,e.Ohungarumlaut=778,e.degree=400,e.ograve=611,e.Ccaron=722,e.ugrave=611,e.radical=549,e.Dcaron=722,e.rcommaaccent=389,e.Ntilde=722,e.otilde=611,e.Rcommaaccent=722,e.Lcommaaccent=611,e.Atilde=722,e.Aogonek=722,e.Aring=722,e.Otilde=778,e.zdotaccent=500,e.Ecaron=667,e.Iogonek=278,e.kcommaaccent=556,e.minus=584,e.Icircumflex=278,e.ncaron=611,e.tcommaaccent=333,e.logicalnot=584,e.odieresis=611,e.udieresis=611,e.notequal=549,e.gcommaaccent=611,e.eth=611,e.zcaron=500,e.ncommaaccent=611,e.onesuperior=333,e.imacron=278,e.Euro=556})),e["Helvetica-BoldOblique"]=(0,r.getLookupTableFactory)((function(e){e.space=278,e.exclam=333,e.quotedbl=474,e.numbersign=556,e.dollar=556,e.percent=889,e.ampersand=722,e.quoteright=278,e.parenleft=333,e.parenright=333,e.asterisk=389,e.plus=584,e.comma=278,e.hyphen=333,e.period=278,e.slash=278,e.zero=556,e.one=556,e.two=556,e.three=556,e.four=556,e.five=556,e.six=556,e.seven=556,e.eight=556,e.nine=556,e.colon=333,e.semicolon=333,e.less=584,e.equal=584,e.greater=584,e.question=611,e.at=975,e.A=722,e.B=722,e.C=722,e.D=722,e.E=667,e.F=611,e.G=778,e.H=722,e.I=278,e.J=556,e.K=722,e.L=611,e.M=833,e.N=722,e.O=778,e.P=667,e.Q=778,e.R=722,e.S=667,e.T=611,e.U=722,e.V=667,e.W=944,e.X=667,e.Y=667,e.Z=611,e.bracketleft=333,e.backslash=278,e.bracketright=333,e.asciicircum=584,e.underscore=556,e.quoteleft=278,e.a=556,e.b=611,e.c=556,e.d=611,e.e=556,e.f=333,e.g=611,e.h=611,e.i=278,e.j=278,e.k=556,e.l=278,e.m=889,e.n=611,e.o=611,e.p=611,e.q=611,e.r=389,e.s=556,e.t=333,e.u=611,e.v=556,e.w=778,e.x=556,e.y=556,e.z=500,e.braceleft=389,e.bar=280,e.braceright=389,e.asciitilde=584,e.exclamdown=333,e.cent=556,e.sterling=556,e.fraction=167,e.yen=556,e.florin=556,e.section=556,e.currency=556,e.quotesingle=238,e.quotedblleft=500,e.guillemotleft=556,e.guilsinglleft=333,e.guilsinglright=333,e.fi=611,e.fl=611,e.endash=556,e.dagger=556,e.daggerdbl=556,e.periodcentered=278,e.paragraph=556,e.bullet=350,e.quotesinglbase=278,e.quotedblbase=500,e.quotedblright=500,e.guillemotright=556,e.ellipsis=1e3,e.perthousand=1e3,e.questiondown=611,e.grave=333,e.acute=333,e.circumflex=333,e.tilde=333,e.macron=333,e.breve=333,e.dotaccent=333,e.dieresis=333,e.ring=333,e.cedilla=333,e.hungarumlaut=333,e.ogonek=333,e.caron=333,e.emdash=1e3,e.AE=1e3,e.ordfeminine=370,e.Lslash=611,e.Oslash=778,e.OE=1e3,e.ordmasculine=365,e.ae=889,e.dotlessi=278,e.lslash=278,e.oslash=611,e.oe=944,e.germandbls=611,e.Idieresis=278,e.eacute=556,e.abreve=556,e.uhungarumlaut=611,e.ecaron=556,e.Ydieresis=667,e.divide=584,e.Yacute=667,e.Acircumflex=722,e.aacute=556,e.Ucircumflex=722,e.yacute=556,e.scommaaccent=556,e.ecircumflex=556,e.Uring=722,e.Udieresis=722,e.aogonek=556,e.Uacute=722,e.uogonek=611,e.Edieresis=667,e.Dcroat=722,e.commaaccent=250,e.copyright=737,e.Emacron=667,e.ccaron=556,e.aring=556,e.Ncommaaccent=722,e.lacute=278,e.agrave=556,e.Tcommaaccent=611,e.Cacute=722,e.atilde=556,e.Edotaccent=667,e.scaron=556,e.scedilla=556,e.iacute=278,e.lozenge=494,e.Rcaron=722,e.Gcommaaccent=778,e.ucircumflex=611,e.acircumflex=556,e.Amacron=722,e.rcaron=389,e.ccedilla=556,e.Zdotaccent=611,e.Thorn=667,e.Omacron=778,e.Racute=722,e.Sacute=667,e.dcaron=743,e.Umacron=722,e.uring=611,e.threesuperior=333,e.Ograve=778,e.Agrave=722,e.Abreve=722,e.multiply=584,e.uacute=611,e.Tcaron=611,e.partialdiff=494,e.ydieresis=556,e.Nacute=722,e.icircumflex=278,e.Ecircumflex=667,e.adieresis=556,e.edieresis=556,e.cacute=556,e.nacute=611,e.umacron=611,e.Ncaron=722,e.Iacute=278,e.plusminus=584,e.brokenbar=280,e.registered=737,e.Gbreve=778,e.Idotaccent=278,e.summation=600,e.Egrave=667,e.racute=389,e.omacron=611,e.Zacute=611,e.Zcaron=611,e.greaterequal=549,e.Eth=722,e.Ccedilla=722,e.lcommaaccent=278,e.tcaron=389,e.eogonek=556,e.Uogonek=722,e.Aacute=722,e.Adieresis=722,e.egrave=556,e.zacute=500,e.iogonek=278,e.Oacute=778,e.oacute=611,e.amacron=556,e.sacute=556,e.idieresis=278,e.Ocircumflex=778,e.Ugrave=722,e.Delta=612,e.thorn=611,e.twosuperior=333,e.Odieresis=778,e.mu=611,e.igrave=278,e.ohungarumlaut=611,e.Eogonek=667,e.dcroat=611,e.threequarters=834,e.Scedilla=667,e.lcaron=400,e.Kcommaaccent=722,e.Lacute=611,e.trademark=1e3,e.edotaccent=556,e.Igrave=278,e.Imacron=278,e.Lcaron=611,e.onehalf=834,e.lessequal=549,e.ocircumflex=611,e.ntilde=611,e.Uhungarumlaut=722,e.Eacute=667,e.emacron=556,e.gbreve=611,e.onequarter=834,e.Scaron=667,e.Scommaaccent=667,e.Ohungarumlaut=778,e.degree=400,e.ograve=611,e.Ccaron=722,e.ugrave=611,e.radical=549,e.Dcaron=722,e.rcommaaccent=389,e.Ntilde=722,e.otilde=611,e.Rcommaaccent=722,e.Lcommaaccent=611,e.Atilde=722,e.Aogonek=722,e.Aring=722,e.Otilde=778,e.zdotaccent=500,e.Ecaron=667,e.Iogonek=278,e.kcommaaccent=556,e.minus=584,e.Icircumflex=278,e.ncaron=611,e.tcommaaccent=333,e.logicalnot=584,e.odieresis=611,e.udieresis=611,e.notequal=549,e.gcommaaccent=611,e.eth=611,e.zcaron=500,e.ncommaaccent=611,e.onesuperior=333,e.imacron=278,e.Euro=556})),e["Helvetica-Oblique"]=(0,r.getLookupTableFactory)((function(e){e.space=278,e.exclam=278,e.quotedbl=355,e.numbersign=556,e.dollar=556,e.percent=889,e.ampersand=667,e.quoteright=222,e.parenleft=333,e.parenright=333,e.asterisk=389,e.plus=584,e.comma=278,e.hyphen=333,e.period=278,e.slash=278,e.zero=556,e.one=556,e.two=556,e.three=556,e.four=556,e.five=556,e.six=556,e.seven=556,e.eight=556,e.nine=556,e.colon=278,e.semicolon=278,e.less=584,e.equal=584,e.greater=584,e.question=556,e.at=1015,e.A=667,e.B=667,e.C=722,e.D=722,e.E=667,e.F=611,e.G=778,e.H=722,e.I=278,e.J=500,e.K=667,e.L=556,e.M=833,e.N=722,e.O=778,e.P=667,e.Q=778,e.R=722,e.S=667,e.T=611,e.U=722,e.V=667,e.W=944,e.X=667,e.Y=667,e.Z=611,e.bracketleft=278,e.backslash=278,e.bracketright=278,e.asciicircum=469,e.underscore=556,e.quoteleft=222,e.a=556,e.b=556,e.c=500,e.d=556,e.e=556,e.f=278,e.g=556,e.h=556,e.i=222,e.j=222,e.k=500,e.l=222,e.m=833,e.n=556,e.o=556,e.p=556,e.q=556,e.r=333,e.s=500,e.t=278,e.u=556,e.v=500,e.w=722,e.x=500,e.y=500,e.z=500,e.braceleft=334,e.bar=260,e.braceright=334,e.asciitilde=584,e.exclamdown=333,e.cent=556,e.sterling=556,e.fraction=167,e.yen=556,e.florin=556,e.section=556,e.currency=556,e.quotesingle=191,e.quotedblleft=333,e.guillemotleft=556,e.guilsinglleft=333,e.guilsinglright=333,e.fi=500,e.fl=500,e.endash=556,e.dagger=556,e.daggerdbl=556,e.periodcentered=278,e.paragraph=537,e.bullet=350,e.quotesinglbase=222,e.quotedblbase=333,e.quotedblright=333,e.guillemotright=556,e.ellipsis=1e3,e.perthousand=1e3,e.questiondown=611,e.grave=333,e.acute=333,e.circumflex=333,e.tilde=333,e.macron=333,e.breve=333,e.dotaccent=333,e.dieresis=333,e.ring=333,e.cedilla=333,e.hungarumlaut=333,e.ogonek=333,e.caron=333,e.emdash=1e3,e.AE=1e3,e.ordfeminine=370,e.Lslash=556,e.Oslash=778,e.OE=1e3,e.ordmasculine=365,e.ae=889,e.dotlessi=278,e.lslash=222,e.oslash=611,e.oe=944,e.germandbls=611,e.Idieresis=278,e.eacute=556,e.abreve=556,e.uhungarumlaut=556,e.ecaron=556,e.Ydieresis=667,e.divide=584,e.Yacute=667,e.Acircumflex=667,e.aacute=556,e.Ucircumflex=722,e.yacute=500,e.scommaaccent=500,e.ecircumflex=556,e.Uring=722,e.Udieresis=722,e.aogonek=556,e.Uacute=722,e.uogonek=556,e.Edieresis=667,e.Dcroat=722,e.commaaccent=250,e.copyright=737,e.Emacron=667,e.ccaron=500,e.aring=556,e.Ncommaaccent=722,e.lacute=222,e.agrave=556,e.Tcommaaccent=611,e.Cacute=722,e.atilde=556,e.Edotaccent=667,e.scaron=500,e.scedilla=500,e.iacute=278,e.lozenge=471,e.Rcaron=722,e.Gcommaaccent=778,e.ucircumflex=556,e.acircumflex=556,e.Amacron=667,e.rcaron=333,e.ccedilla=500,e.Zdotaccent=611,e.Thorn=667,e.Omacron=778,e.Racute=722,e.Sacute=667,e.dcaron=643,e.Umacron=722,e.uring=556,e.threesuperior=333,e.Ograve=778,e.Agrave=667,e.Abreve=667,e.multiply=584,e.uacute=556,e.Tcaron=611,e.partialdiff=476,e.ydieresis=500,e.Nacute=722,e.icircumflex=278,e.Ecircumflex=667,e.adieresis=556,e.edieresis=556,e.cacute=500,e.nacute=556,e.umacron=556,e.Ncaron=722,e.Iacute=278,e.plusminus=584,e.brokenbar=260,e.registered=737,e.Gbreve=778,e.Idotaccent=278,e.summation=600,e.Egrave=667,e.racute=333,e.omacron=556,e.Zacute=611,e.Zcaron=611,e.greaterequal=549,e.Eth=722,e.Ccedilla=722,e.lcommaaccent=222,e.tcaron=317,e.eogonek=556,e.Uogonek=722,e.Aacute=667,e.Adieresis=667,e.egrave=556,e.zacute=500,e.iogonek=222,e.Oacute=778,e.oacute=556,e.amacron=556,e.sacute=500,e.idieresis=278,e.Ocircumflex=778,e.Ugrave=722,e.Delta=612,e.thorn=556,e.twosuperior=333,e.Odieresis=778,e.mu=556,e.igrave=278,e.ohungarumlaut=556,e.Eogonek=667,e.dcroat=556,e.threequarters=834,e.Scedilla=667,e.lcaron=299,e.Kcommaaccent=667,e.Lacute=556,e.trademark=1e3,e.edotaccent=556,e.Igrave=278,e.Imacron=278,e.Lcaron=556,e.onehalf=834,e.lessequal=549,e.ocircumflex=556,e.ntilde=556,e.Uhungarumlaut=722,e.Eacute=667,e.emacron=556,e.gbreve=556,e.onequarter=834,e.Scaron=667,e.Scommaaccent=667,e.Ohungarumlaut=778,e.degree=400,e.ograve=556,e.Ccaron=722,e.ugrave=556,e.radical=453,e.Dcaron=722,e.rcommaaccent=333,e.Ntilde=722,e.otilde=556,e.Rcommaaccent=722,e.Lcommaaccent=556,e.Atilde=667,e.Aogonek=667,e.Aring=667,e.Otilde=778,e.zdotaccent=500,e.Ecaron=667,e.Iogonek=278,e.kcommaaccent=500,e.minus=584,e.Icircumflex=278,e.ncaron=556,e.tcommaaccent=278,e.logicalnot=584,e.odieresis=556,e.udieresis=556,e.notequal=549,e.gcommaaccent=556,e.eth=556,e.zcaron=500,e.ncommaaccent=556,e.onesuperior=333,e.imacron=278,e.Euro=556})),e.Symbol=(0,r.getLookupTableFactory)((function(e){e.space=250,e.exclam=333,e.universal=713,e.numbersign=500,e.existential=549,e.percent=833,e.ampersand=778,e.suchthat=439,e.parenleft=333,e.parenright=333,e.asteriskmath=500,e.plus=549,e.comma=250,e.minus=549,e.period=250,e.slash=278,e.zero=500,e.one=500,e.two=500,e.three=500,e.four=500,e.five=500,e.six=500,e.seven=500,e.eight=500,e.nine=500,e.colon=278,e.semicolon=278,e.less=549,e.equal=549,e.greater=549,e.question=444,e.congruent=549,e.Alpha=722,e.Beta=667,e.Chi=722,e.Delta=612,e.Epsilon=611,e.Phi=763,e.Gamma=603,e.Eta=722,e.Iota=333,e.theta1=631,e.Kappa=722,e.Lambda=686,e.Mu=889,e.Nu=722,e.Omicron=722,e.Pi=768,e.Theta=741,e.Rho=556,e.Sigma=592,e.Tau=611,e.Upsilon=690,e.sigma1=439,e.Omega=768,e.Xi=645,e.Psi=795,e.Zeta=611,e.bracketleft=333,e.therefore=863,e.bracketright=333,e.perpendicular=658,e.underscore=500,e.radicalex=500,e.alpha=631,e.beta=549,e.chi=549,e.delta=494,e.epsilon=439,e.phi=521,e.gamma=411,e.eta=603,e.iota=329,e.phi1=603,e.kappa=549,e.lambda=549,e.mu=576,e.nu=521,e.omicron=549,e.pi=549,e.theta=521,e.rho=549,e.sigma=603,e.tau=439,e.upsilon=576,e.omega1=713,e.omega=686,e.xi=493,e.psi=686,e.zeta=494,e.braceleft=480,e.bar=200,e.braceright=480,e.similar=549,e.Euro=750,e.Upsilon1=620,e.minute=247,e.lessequal=549,e.fraction=167,e.infinity=713,e.florin=500,e.club=753,e.diamond=753,e.heart=753,e.spade=753,e.arrowboth=1042,e.arrowleft=987,e.arrowup=603,e.arrowright=987,e.arrowdown=603,e.degree=400,e.plusminus=549,e.second=411,e.greaterequal=549,e.multiply=549,e.proportional=713,e.partialdiff=494,e.bullet=460,e.divide=549,e.notequal=549,e.equivalence=549,e.approxequal=549,e.ellipsis=1e3,e.arrowvertex=603,e.arrowhorizex=1e3,e.carriagereturn=658,e.aleph=823,e.Ifraktur=686,e.Rfraktur=795,e.weierstrass=987,e.circlemultiply=768,e.circleplus=768,e.emptyset=823,e.intersection=768,e.union=768,e.propersuperset=713,e.reflexsuperset=713,e.notsubset=713,e.propersubset=713,e.reflexsubset=713,e.element=713,e.notelement=713,e.angle=768,e.gradient=713,e.registerserif=790,e.copyrightserif=790,e.trademarkserif=890,e.product=823,e.radical=549,e.dotmath=250,e.logicalnot=713,e.logicaland=603,e.logicalor=603,e.arrowdblboth=1042,e.arrowdblleft=987,e.arrowdblup=603,e.arrowdblright=987,e.arrowdbldown=603,e.lozenge=494,e.angleleft=329,e.registersans=790,e.copyrightsans=790,e.trademarksans=786,e.summation=713,e.parenlefttp=384,e.parenleftex=384,e.parenleftbt=384,e.bracketlefttp=384,e.bracketleftex=384,e.bracketleftbt=384,e.bracelefttp=494,e.braceleftmid=494,e.braceleftbt=494,e.braceex=494,e.angleright=329,e.integral=274,e.integraltp=686,e.integralex=686,e.integralbt=686,e.parenrighttp=384,e.parenrightex=384,e.parenrightbt=384,e.bracketrighttp=384,e.bracketrightex=384,e.bracketrightbt=384,e.bracerighttp=494,e.bracerightmid=494,e.bracerightbt=494,e.apple=790})),e["Times-Roman"]=(0,r.getLookupTableFactory)((function(e){e.space=250,e.exclam=333,e.quotedbl=408,e.numbersign=500,e.dollar=500,e.percent=833,e.ampersand=778,e.quoteright=333,e.parenleft=333,e.parenright=333,e.asterisk=500,e.plus=564,e.comma=250,e.hyphen=333,e.period=250,e.slash=278,e.zero=500,e.one=500,e.two=500,e.three=500,e.four=500,e.five=500,e.six=500,e.seven=500,e.eight=500,e.nine=500,e.colon=278,e.semicolon=278,e.less=564,e.equal=564,e.greater=564,e.question=444,e.at=921,e.A=722,e.B=667,e.C=667,e.D=722,e.E=611,e.F=556,e.G=722,e.H=722,e.I=333,e.J=389,e.K=722,e.L=611,e.M=889,e.N=722,e.O=722,e.P=556,e.Q=722,e.R=667,e.S=556,e.T=611,e.U=722,e.V=722,e.W=944,e.X=722,e.Y=722,e.Z=611,e.bracketleft=333,e.backslash=278,e.bracketright=333,e.asciicircum=469,e.underscore=500,e.quoteleft=333,e.a=444,e.b=500,e.c=444,e.d=500,e.e=444,e.f=333,e.g=500,e.h=500,e.i=278,e.j=278,e.k=500,e.l=278,e.m=778,e.n=500,e.o=500,e.p=500,e.q=500,e.r=333,e.s=389,e.t=278,e.u=500,e.v=500,e.w=722,e.x=500,e.y=500,e.z=444,e.braceleft=480,e.bar=200,e.braceright=480,e.asciitilde=541,e.exclamdown=333,e.cent=500,e.sterling=500,e.fraction=167,e.yen=500,e.florin=500,e.section=500,e.currency=500,e.quotesingle=180,e.quotedblleft=444,e.guillemotleft=500,e.guilsinglleft=333,e.guilsinglright=333,e.fi=556,e.fl=556,e.endash=500,e.dagger=500,e.daggerdbl=500,e.periodcentered=250,e.paragraph=453,e.bullet=350,e.quotesinglbase=333,e.quotedblbase=444,e.quotedblright=444,e.guillemotright=500,e.ellipsis=1e3,e.perthousand=1e3,e.questiondown=444,e.grave=333,e.acute=333,e.circumflex=333,e.tilde=333,e.macron=333,e.breve=333,e.dotaccent=333,e.dieresis=333,e.ring=333,e.cedilla=333,e.hungarumlaut=333,e.ogonek=333,e.caron=333,e.emdash=1e3,e.AE=889,e.ordfeminine=276,e.Lslash=611,e.Oslash=722,e.OE=889,e.ordmasculine=310,e.ae=667,e.dotlessi=278,e.lslash=278,e.oslash=500,e.oe=722,e.germandbls=500,e.Idieresis=333,e.eacute=444,e.abreve=444,e.uhungarumlaut=500,e.ecaron=444,e.Ydieresis=722,e.divide=564,e.Yacute=722,e.Acircumflex=722,e.aacute=444,e.Ucircumflex=722,e.yacute=500,e.scommaaccent=389,e.ecircumflex=444,e.Uring=722,e.Udieresis=722,e.aogonek=444,e.Uacute=722,e.uogonek=500,e.Edieresis=611,e.Dcroat=722,e.commaaccent=250,e.copyright=760,e.Emacron=611,e.ccaron=444,e.aring=444,e.Ncommaaccent=722,e.lacute=278,e.agrave=444,e.Tcommaaccent=611,e.Cacute=667,e.atilde=444,e.Edotaccent=611,e.scaron=389,e.scedilla=389,e.iacute=278,e.lozenge=471,e.Rcaron=667,e.Gcommaaccent=722,e.ucircumflex=500,e.acircumflex=444,e.Amacron=722,e.rcaron=333,e.ccedilla=444,e.Zdotaccent=611,e.Thorn=556,e.Omacron=722,e.Racute=667,e.Sacute=556,e.dcaron=588,e.Umacron=722,e.uring=500,e.threesuperior=300,e.Ograve=722,e.Agrave=722,e.Abreve=722,e.multiply=564,e.uacute=500,e.Tcaron=611,e.partialdiff=476,e.ydieresis=500,e.Nacute=722,e.icircumflex=278,e.Ecircumflex=611,e.adieresis=444,e.edieresis=444,e.cacute=444,e.nacute=500,e.umacron=500,e.Ncaron=722,e.Iacute=333,e.plusminus=564,e.brokenbar=200,e.registered=760,e.Gbreve=722,e.Idotaccent=333,e.summation=600,e.Egrave=611,e.racute=333,e.omacron=500,e.Zacute=611,e.Zcaron=611,e.greaterequal=549,e.Eth=722,e.Ccedilla=667,e.lcommaaccent=278,e.tcaron=326,e.eogonek=444,e.Uogonek=722,e.Aacute=722,e.Adieresis=722,e.egrave=444,e.zacute=444,e.iogonek=278,e.Oacute=722,e.oacute=500,e.amacron=444,e.sacute=389,e.idieresis=278,e.Ocircumflex=722,e.Ugrave=722,e.Delta=612,e.thorn=500,e.twosuperior=300,e.Odieresis=722,e.mu=500,e.igrave=278,e.ohungarumlaut=500,e.Eogonek=611,e.dcroat=500,e.threequarters=750,e.Scedilla=556,e.lcaron=344,e.Kcommaaccent=722,e.Lacute=611,e.trademark=980,e.edotaccent=444,e.Igrave=333,e.Imacron=333,e.Lcaron=611,e.onehalf=750,e.lessequal=549,e.ocircumflex=500,e.ntilde=500,e.Uhungarumlaut=722,e.Eacute=611,e.emacron=444,e.gbreve=500,e.onequarter=750,e.Scaron=556,e.Scommaaccent=556,e.Ohungarumlaut=722,e.degree=400,e.ograve=500,e.Ccaron=667,e.ugrave=500,e.radical=453,e.Dcaron=722,e.rcommaaccent=333,e.Ntilde=722,e.otilde=500,e.Rcommaaccent=667,e.Lcommaaccent=611,e.Atilde=722,e.Aogonek=722,e.Aring=722,e.Otilde=722,e.zdotaccent=444,e.Ecaron=611,e.Iogonek=333,e.kcommaaccent=500,e.minus=564,e.Icircumflex=333,e.ncaron=500,e.tcommaaccent=278,e.logicalnot=564,e.odieresis=500,e.udieresis=500,e.notequal=549,e.gcommaaccent=500,e.eth=500,e.zcaron=444,e.ncommaaccent=500,e.onesuperior=300,e.imacron=278,e.Euro=500})),e["Times-Bold"]=(0,r.getLookupTableFactory)((function(e){e.space=250,e.exclam=333,e.quotedbl=555,e.numbersign=500,e.dollar=500,e.percent=1e3,e.ampersand=833,e.quoteright=333,e.parenleft=333,e.parenright=333,e.asterisk=500,e.plus=570,e.comma=250,e.hyphen=333,e.period=250,e.slash=278,e.zero=500,e.one=500,e.two=500,e.three=500,e.four=500,e.five=500,e.six=500,e.seven=500,e.eight=500,e.nine=500,e.colon=333,e.semicolon=333,e.less=570,e.equal=570,e.greater=570,e.question=500,e.at=930,e.A=722,e.B=667,e.C=722,e.D=722,e.E=667,e.F=611,e.G=778,e.H=778,e.I=389,e.J=500,e.K=778,e.L=667,e.M=944,e.N=722,e.O=778,e.P=611,e.Q=778,e.R=722,e.S=556,e.T=667,e.U=722,e.V=722,e.W=1e3,e.X=722,e.Y=722,e.Z=667,e.bracketleft=333,e.backslash=278,e.bracketright=333,e.asciicircum=581,e.underscore=500,e.quoteleft=333,e.a=500,e.b=556,e.c=444,e.d=556,e.e=444,e.f=333,e.g=500,e.h=556,e.i=278,e.j=333,e.k=556,e.l=278,e.m=833,e.n=556,e.o=500,e.p=556,e.q=556,e.r=444,e.s=389,e.t=333,e.u=556,e.v=500,e.w=722,e.x=500,e.y=500,e.z=444,e.braceleft=394,e.bar=220,e.braceright=394,e.asciitilde=520,e.exclamdown=333,e.cent=500,e.sterling=500,e.fraction=167,e.yen=500,e.florin=500,e.section=500,e.currency=500,e.quotesingle=278,e.quotedblleft=500,e.guillemotleft=500,e.guilsinglleft=333,e.guilsinglright=333,e.fi=556,e.fl=556,e.endash=500,e.dagger=500,e.daggerdbl=500,e.periodcentered=250,e.paragraph=540,e.bullet=350,e.quotesinglbase=333,e.quotedblbase=500,e.quotedblright=500,e.guillemotright=500,e.ellipsis=1e3,e.perthousand=1e3,e.questiondown=500,e.grave=333,e.acute=333,e.circumflex=333,e.tilde=333,e.macron=333,e.breve=333,e.dotaccent=333,e.dieresis=333,e.ring=333,e.cedilla=333,e.hungarumlaut=333,e.ogonek=333,e.caron=333,e.emdash=1e3,e.AE=1e3,e.ordfeminine=300,e.Lslash=667,e.Oslash=778,e.OE=1e3,e.ordmasculine=330,e.ae=722,e.dotlessi=278,e.lslash=278,e.oslash=500,e.oe=722,e.germandbls=556,e.Idieresis=389,e.eacute=444,e.abreve=500,e.uhungarumlaut=556,e.ecaron=444,e.Ydieresis=722,e.divide=570,e.Yacute=722,e.Acircumflex=722,e.aacute=500,e.Ucircumflex=722,e.yacute=500,e.scommaaccent=389,e.ecircumflex=444,e.Uring=722,e.Udieresis=722,e.aogonek=500,e.Uacute=722,e.uogonek=556,e.Edieresis=667,e.Dcroat=722,e.commaaccent=250,e.copyright=747,e.Emacron=667,e.ccaron=444,e.aring=500,e.Ncommaaccent=722,e.lacute=278,e.agrave=500,e.Tcommaaccent=667,e.Cacute=722,e.atilde=500,e.Edotaccent=667,e.scaron=389,e.scedilla=389,e.iacute=278,e.lozenge=494,e.Rcaron=722,e.Gcommaaccent=778,e.ucircumflex=556,e.acircumflex=500,e.Amacron=722,e.rcaron=444,e.ccedilla=444,e.Zdotaccent=667,e.Thorn=611,e.Omacron=778,e.Racute=722,e.Sacute=556,e.dcaron=672,e.Umacron=722,e.uring=556,e.threesuperior=300,e.Ograve=778,e.Agrave=722,e.Abreve=722,e.multiply=570,e.uacute=556,e.Tcaron=667,e.partialdiff=494,e.ydieresis=500,e.Nacute=722,e.icircumflex=278,e.Ecircumflex=667,e.adieresis=500,e.edieresis=444,e.cacute=444,e.nacute=556,e.umacron=556,e.Ncaron=722,e.Iacute=389,e.plusminus=570,e.brokenbar=220,e.registered=747,e.Gbreve=778,e.Idotaccent=389,e.summation=600,e.Egrave=667,e.racute=444,e.omacron=500,e.Zacute=667,e.Zcaron=667,e.greaterequal=549,e.Eth=722,e.Ccedilla=722,e.lcommaaccent=278,e.tcaron=416,e.eogonek=444,e.Uogonek=722,e.Aacute=722,e.Adieresis=722,e.egrave=444,e.zacute=444,e.iogonek=278,e.Oacute=778,e.oacute=500,e.amacron=500,e.sacute=389,e.idieresis=278,e.Ocircumflex=778,e.Ugrave=722,e.Delta=612,e.thorn=556,e.twosuperior=300,e.Odieresis=778,e.mu=556,e.igrave=278,e.ohungarumlaut=500,e.Eogonek=667,e.dcroat=556,e.threequarters=750,e.Scedilla=556,e.lcaron=394,e.Kcommaaccent=778,e.Lacute=667,e.trademark=1e3,e.edotaccent=444,e.Igrave=389,e.Imacron=389,e.Lcaron=667,e.onehalf=750,e.lessequal=549,e.ocircumflex=500,e.ntilde=556,e.Uhungarumlaut=722,e.Eacute=667,e.emacron=444,e.gbreve=500,e.onequarter=750,e.Scaron=556,e.Scommaaccent=556,e.Ohungarumlaut=778,e.degree=400,e.ograve=500,e.Ccaron=722,e.ugrave=556,e.radical=549,e.Dcaron=722,e.rcommaaccent=444,e.Ntilde=722,e.otilde=500,e.Rcommaaccent=722,e.Lcommaaccent=667,e.Atilde=722,e.Aogonek=722,e.Aring=722,e.Otilde=778,e.zdotaccent=444,e.Ecaron=667,e.Iogonek=389,e.kcommaaccent=556,e.minus=570,e.Icircumflex=389,e.ncaron=556,e.tcommaaccent=333,e.logicalnot=570,e.odieresis=500,e.udieresis=556,e.notequal=549,e.gcommaaccent=500,e.eth=500,e.zcaron=444,e.ncommaaccent=556,e.onesuperior=300,e.imacron=278,e.Euro=500})),e["Times-BoldItalic"]=(0,r.getLookupTableFactory)((function(e){e.space=250,e.exclam=389,e.quotedbl=555,e.numbersign=500,e.dollar=500,e.percent=833,e.ampersand=778,e.quoteright=333,e.parenleft=333,e.parenright=333,e.asterisk=500,e.plus=570,e.comma=250,e.hyphen=333,e.period=250,e.slash=278,e.zero=500,e.one=500,e.two=500,e.three=500,e.four=500,e.five=500,e.six=500,e.seven=500,e.eight=500,e.nine=500,e.colon=333,e.semicolon=333,e.less=570,e.equal=570,e.greater=570,e.question=500,e.at=832,e.A=667,e.B=667,e.C=667,e.D=722,e.E=667,e.F=667,e.G=722,e.H=778,e.I=389,e.J=500,e.K=667,e.L=611,e.M=889,e.N=722,e.O=722,e.P=611,e.Q=722,e.R=667,e.S=556,e.T=611,e.U=722,e.V=667,e.W=889,e.X=667,e.Y=611,e.Z=611,e.bracketleft=333,e.backslash=278,e.bracketright=333,e.asciicircum=570,e.underscore=500,e.quoteleft=333,e.a=500,e.b=500,e.c=444,e.d=500,e.e=444,e.f=333,e.g=500,e.h=556,e.i=278,e.j=278,e.k=500,e.l=278,e.m=778,e.n=556,e.o=500,e.p=500,e.q=500,e.r=389,e.s=389,e.t=278,e.u=556,e.v=444,e.w=667,e.x=500,e.y=444,e.z=389,e.braceleft=348,e.bar=220,e.braceright=348,e.asciitilde=570,e.exclamdown=389,e.cent=500,e.sterling=500,e.fraction=167,e.yen=500,e.florin=500,e.section=500,e.currency=500,e.quotesingle=278,e.quotedblleft=500,e.guillemotleft=500,e.guilsinglleft=333,e.guilsinglright=333,e.fi=556,e.fl=556,e.endash=500,e.dagger=500,e.daggerdbl=500,e.periodcentered=250,e.paragraph=500,e.bullet=350,e.quotesinglbase=333,e.quotedblbase=500,e.quotedblright=500,e.guillemotright=500,e.ellipsis=1e3,e.perthousand=1e3,e.questiondown=500,e.grave=333,e.acute=333,e.circumflex=333,e.tilde=333,e.macron=333,e.breve=333,e.dotaccent=333,e.dieresis=333,e.ring=333,e.cedilla=333,e.hungarumlaut=333,e.ogonek=333,e.caron=333,e.emdash=1e3,e.AE=944,e.ordfeminine=266,e.Lslash=611,e.Oslash=722,e.OE=944,e.ordmasculine=300,e.ae=722,e.dotlessi=278,e.lslash=278,e.oslash=500,e.oe=722,e.germandbls=500,e.Idieresis=389,e.eacute=444,e.abreve=500,e.uhungarumlaut=556,e.ecaron=444,e.Ydieresis=611,e.divide=570,e.Yacute=611,e.Acircumflex=667,e.aacute=500,e.Ucircumflex=722,e.yacute=444,e.scommaaccent=389,e.ecircumflex=444,e.Uring=722,e.Udieresis=722,e.aogonek=500,e.Uacute=722,e.uogonek=556,e.Edieresis=667,e.Dcroat=722,e.commaaccent=250,e.copyright=747,e.Emacron=667,e.ccaron=444,e.aring=500,e.Ncommaaccent=722,e.lacute=278,e.agrave=500,e.Tcommaaccent=611,e.Cacute=667,e.atilde=500,e.Edotaccent=667,e.scaron=389,e.scedilla=389,e.iacute=278,e.lozenge=494,e.Rcaron=667,e.Gcommaaccent=722,e.ucircumflex=556,e.acircumflex=500,e.Amacron=667,e.rcaron=389,e.ccedilla=444,e.Zdotaccent=611,e.Thorn=611,e.Omacron=722,e.Racute=667,e.Sacute=556,e.dcaron=608,e.Umacron=722,e.uring=556,e.threesuperior=300,e.Ograve=722,e.Agrave=667,e.Abreve=667,e.multiply=570,e.uacute=556,e.Tcaron=611,e.partialdiff=494,e.ydieresis=444,e.Nacute=722,e.icircumflex=278,e.Ecircumflex=667,e.adieresis=500,e.edieresis=444,e.cacute=444,e.nacute=556,e.umacron=556,e.Ncaron=722,e.Iacute=389,e.plusminus=570,e.brokenbar=220,e.registered=747,e.Gbreve=722,e.Idotaccent=389,e.summation=600,e.Egrave=667,e.racute=389,e.omacron=500,e.Zacute=611,e.Zcaron=611,e.greaterequal=549,e.Eth=722,e.Ccedilla=667,e.lcommaaccent=278,e.tcaron=366,e.eogonek=444,e.Uogonek=722,e.Aacute=667,e.Adieresis=667,e.egrave=444,e.zacute=389,e.iogonek=278,e.Oacute=722,e.oacute=500,e.amacron=500,e.sacute=389,e.idieresis=278,e.Ocircumflex=722,e.Ugrave=722,e.Delta=612,e.thorn=500,e.twosuperior=300,e.Odieresis=722,e.mu=576,e.igrave=278,e.ohungarumlaut=500,e.Eogonek=667,e.dcroat=500,e.threequarters=750,e.Scedilla=556,e.lcaron=382,e.Kcommaaccent=667,e.Lacute=611,e.trademark=1e3,e.edotaccent=444,e.Igrave=389,e.Imacron=389,e.Lcaron=611,e.onehalf=750,e.lessequal=549,e.ocircumflex=500,e.ntilde=556,e.Uhungarumlaut=722,e.Eacute=667,e.emacron=444,e.gbreve=500,e.onequarter=750,e.Scaron=556,e.Scommaaccent=556,e.Ohungarumlaut=722,e.degree=400,e.ograve=500,e.Ccaron=667,e.ugrave=556,e.radical=549,e.Dcaron=722,e.rcommaaccent=389,e.Ntilde=722,e.otilde=500,e.Rcommaaccent=667,e.Lcommaaccent=611,e.Atilde=667,e.Aogonek=667,e.Aring=667,e.Otilde=722,e.zdotaccent=389,e.Ecaron=667,e.Iogonek=389,e.kcommaaccent=500,e.minus=606,e.Icircumflex=389,e.ncaron=556,e.tcommaaccent=278,e.logicalnot=606,e.odieresis=500,e.udieresis=556,e.notequal=549,e.gcommaaccent=500,e.eth=500,e.zcaron=389,e.ncommaaccent=556,e.onesuperior=300,e.imacron=278,e.Euro=500})),e["Times-Italic"]=(0,r.getLookupTableFactory)((function(e){e.space=250,e.exclam=333,e.quotedbl=420,e.numbersign=500,e.dollar=500,e.percent=833,e.ampersand=778,e.quoteright=333,e.parenleft=333,e.parenright=333,e.asterisk=500,e.plus=675,e.comma=250,e.hyphen=333,e.period=250,e.slash=278,e.zero=500,e.one=500,e.two=500,e.three=500,e.four=500,e.five=500,e.six=500,e.seven=500,e.eight=500,e.nine=500,e.colon=333,e.semicolon=333,e.less=675,e.equal=675,e.greater=675,e.question=500,e.at=920,e.A=611,e.B=611,e.C=667,e.D=722,e.E=611,e.F=611,e.G=722,e.H=722,e.I=333,e.J=444,e.K=667,e.L=556,e.M=833,e.N=667,e.O=722,e.P=611,e.Q=722,e.R=611,e.S=500,e.T=556,e.U=722,e.V=611,e.W=833,e.X=611,e.Y=556,e.Z=556,e.bracketleft=389,e.backslash=278,e.bracketright=389,e.asciicircum=422,e.underscore=500,e.quoteleft=333,e.a=500,e.b=500,e.c=444,e.d=500,e.e=444,e.f=278,e.g=500,e.h=500,e.i=278,e.j=278,e.k=444,e.l=278,e.m=722,e.n=500,e.o=500,e.p=500,e.q=500,e.r=389,e.s=389,e.t=278,e.u=500,e.v=444,e.w=667,e.x=444,e.y=444,e.z=389,e.braceleft=400,e.bar=275,e.braceright=400,e.asciitilde=541,e.exclamdown=389,e.cent=500,e.sterling=500,e.fraction=167,e.yen=500,e.florin=500,e.section=500,e.currency=500,e.quotesingle=214,e.quotedblleft=556,e.guillemotleft=500,e.guilsinglleft=333,e.guilsinglright=333,e.fi=500,e.fl=500,e.endash=500,e.dagger=500,e.daggerdbl=500,e.periodcentered=250,e.paragraph=523,e.bullet=350,e.quotesinglbase=333,e.quotedblbase=556,e.quotedblright=556,e.guillemotright=500,e.ellipsis=889,e.perthousand=1e3,e.questiondown=500,e.grave=333,e.acute=333,e.circumflex=333,e.tilde=333,e.macron=333,e.breve=333,e.dotaccent=333,e.dieresis=333,e.ring=333,e.cedilla=333,e.hungarumlaut=333,e.ogonek=333,e.caron=333,e.emdash=889,e.AE=889,e.ordfeminine=276,e.Lslash=556,e.Oslash=722,e.OE=944,e.ordmasculine=310,e.ae=667,e.dotlessi=278,e.lslash=278,e.oslash=500,e.oe=667,e.germandbls=500,e.Idieresis=333,e.eacute=444,e.abreve=500,e.uhungarumlaut=500,e.ecaron=444,e.Ydieresis=556,e.divide=675,e.Yacute=556,e.Acircumflex=611,e.aacute=500,e.Ucircumflex=722,e.yacute=444,e.scommaaccent=389,e.ecircumflex=444,e.Uring=722,e.Udieresis=722,e.aogonek=500,e.Uacute=722,e.uogonek=500,e.Edieresis=611,e.Dcroat=722,e.commaaccent=250,e.copyright=760,e.Emacron=611,e.ccaron=444,e.aring=500,e.Ncommaaccent=667,e.lacute=278,e.agrave=500,e.Tcommaaccent=556,e.Cacute=667,e.atilde=500,e.Edotaccent=611,e.scaron=389,e.scedilla=389,e.iacute=278,e.lozenge=471,e.Rcaron=611,e.Gcommaaccent=722,e.ucircumflex=500,e.acircumflex=500,e.Amacron=611,e.rcaron=389,e.ccedilla=444,e.Zdotaccent=556,e.Thorn=611,e.Omacron=722,e.Racute=611,e.Sacute=500,e.dcaron=544,e.Umacron=722,e.uring=500,e.threesuperior=300,e.Ograve=722,e.Agrave=611,e.Abreve=611,e.multiply=675,e.uacute=500,e.Tcaron=556,e.partialdiff=476,e.ydieresis=444,e.Nacute=667,e.icircumflex=278,e.Ecircumflex=611,e.adieresis=500,e.edieresis=444,e.cacute=444,e.nacute=500,e.umacron=500,e.Ncaron=667,e.Iacute=333,e.plusminus=675,e.brokenbar=275,e.registered=760,e.Gbreve=722,e.Idotaccent=333,e.summation=600,e.Egrave=611,e.racute=389,e.omacron=500,e.Zacute=556,e.Zcaron=556,e.greaterequal=549,e.Eth=722,e.Ccedilla=667,e.lcommaaccent=278,e.tcaron=300,e.eogonek=444,e.Uogonek=722,e.Aacute=611,e.Adieresis=611,e.egrave=444,e.zacute=389,e.iogonek=278,e.Oacute=722,e.oacute=500,e.amacron=500,e.sacute=389,e.idieresis=278,e.Ocircumflex=722,e.Ugrave=722,e.Delta=612,e.thorn=500,e.twosuperior=300,e.Odieresis=722,e.mu=500,e.igrave=278,e.ohungarumlaut=500,e.Eogonek=611,e.dcroat=500,e.threequarters=750,e.Scedilla=500,e.lcaron=300,e.Kcommaaccent=667,e.Lacute=556,e.trademark=980,e.edotaccent=444,e.Igrave=333,e.Imacron=333,e.Lcaron=611,e.onehalf=750,e.lessequal=549,e.ocircumflex=500,e.ntilde=500,e.Uhungarumlaut=722,e.Eacute=611,e.emacron=444,e.gbreve=500,e.onequarter=750,e.Scaron=500,e.Scommaaccent=500,e.Ohungarumlaut=722,e.degree=400,e.ograve=500,e.Ccaron=667,e.ugrave=500,e.radical=453,e.Dcaron=722,e.rcommaaccent=389,e.Ntilde=667,e.otilde=500,e.Rcommaaccent=611,e.Lcommaaccent=556,e.Atilde=611,e.Aogonek=611,e.Aring=611,e.Otilde=722,e.zdotaccent=389,e.Ecaron=611,e.Iogonek=333,e.kcommaaccent=444,e.minus=675,e.Icircumflex=333,e.ncaron=500,e.tcommaaccent=278,e.logicalnot=675,e.odieresis=500,e.udieresis=500,e.notequal=549,e.gcommaaccent=500,e.eth=500,e.zcaron=389,e.ncommaaccent=500,e.onesuperior=300,e.imacron=278,e.Euro=500})),e.ZapfDingbats=(0,r.getLookupTableFactory)((function(e){e.space=278,e.a1=974,e.a2=961,e.a202=974,e.a3=980,e.a4=719,e.a5=789,e.a119=790,e.a118=791,e.a117=690,e.a11=960,e.a12=939,e.a13=549,e.a14=855,e.a15=911,e.a16=933,e.a105=911,e.a17=945,e.a18=974,e.a19=755,e.a20=846,e.a21=762,e.a22=761,e.a23=571,e.a24=677,e.a25=763,e.a26=760,e.a27=759,e.a28=754,e.a6=494,e.a7=552,e.a8=537,e.a9=577,e.a10=692,e.a29=786,e.a30=788,e.a31=788,e.a32=790,e.a33=793,e.a34=794,e.a35=816,e.a36=823,e.a37=789,e.a38=841,e.a39=823,e.a40=833,e.a41=816,e.a42=831,e.a43=923,e.a44=744,e.a45=723,e.a46=749,e.a47=790,e.a48=792,e.a49=695,e.a50=776,e.a51=768,e.a52=792,e.a53=759,e.a54=707,e.a55=708,e.a56=682,e.a57=701,e.a58=826,e.a59=815,e.a60=789,e.a61=789,e.a62=707,e.a63=687,e.a64=696,e.a65=689,e.a66=786,e.a67=787,e.a68=713,e.a69=791,e.a70=785,e.a71=791,e.a72=873,e.a73=761,e.a74=762,e.a203=762,e.a75=759,e.a204=759,e.a76=892,e.a77=892,e.a78=788,e.a79=784,e.a81=438,e.a82=138,e.a83=277,e.a84=415,e.a97=392,e.a98=392,e.a99=668,e.a100=668,e.a89=390,e.a90=390,e.a93=317,e.a94=317,e.a91=276,e.a92=276,e.a205=509,e.a85=509,e.a206=410,e.a86=410,e.a87=234,e.a88=234,e.a95=334,e.a96=334,e.a101=732,e.a102=544,e.a103=544,e.a104=910,e.a106=667,e.a107=760,e.a108=760,e.a112=776,e.a111=595,e.a110=694,e.a109=626,e.a120=788,e.a121=788,e.a122=788,e.a123=788,e.a124=788,e.a125=788,e.a126=788,e.a127=788,e.a128=788,e.a129=788,e.a130=788,e.a131=788,e.a132=788,e.a133=788,e.a134=788,e.a135=788,e.a136=788,e.a137=788,e.a138=788,e.a139=788,e.a140=788,e.a141=788,e.a142=788,e.a143=788,e.a144=788,e.a145=788,e.a146=788,e.a147=788,e.a148=788,e.a149=788,e.a150=788,e.a151=788,e.a152=788,e.a153=788,e.a154=788,e.a155=788,e.a156=788,e.a157=788,e.a158=788,e.a159=788,e.a160=894,e.a161=838,e.a163=1016,e.a164=458,e.a196=748,e.a165=924,e.a192=748,e.a166=918,e.a167=927,e.a168=928,e.a169=928,e.a170=834,e.a171=873,e.a172=828,e.a173=924,e.a162=924,e.a174=917,e.a175=930,e.a176=931,e.a177=463,e.a178=883,e.a179=836,e.a193=836,e.a180=867,e.a199=867,e.a181=696,e.a200=696,e.a182=874,e.a201=874,e.a183=760,e.a184=946,e.a197=771,e.a185=865,e.a194=771,e.a198=888,e.a186=967,e.a195=888,e.a187=831,e.a188=873,e.a189=927,e.a190=970,e.a191=918}))}));t.getMetrics=i;const o=(0,r.getLookupTableFactory)((function(e){e.Courier={ascent:629,descent:-157,capHeight:562,xHeight:-426},e["Courier-Bold"]={ascent:629,descent:-157,capHeight:562,xHeight:439},e["Courier-Oblique"]={ascent:629,descent:-157,capHeight:562,xHeight:426},e["Courier-BoldOblique"]={ascent:629,descent:-157,capHeight:562,xHeight:426},e.Helvetica={ascent:718,descent:-207,capHeight:718,xHeight:523},e["Helvetica-Bold"]={ascent:718,descent:-207,capHeight:718,xHeight:532},e["Helvetica-Oblique"]={ascent:718,descent:-207,capHeight:718,xHeight:523},e["Helvetica-BoldOblique"]={ascent:718,descent:-207,capHeight:718,xHeight:532},e["Times-Roman"]={ascent:683,descent:-217,capHeight:662,xHeight:450},e["Times-Bold"]={ascent:683,descent:-217,capHeight:676,xHeight:461},e["Times-Italic"]={ascent:683,descent:-217,capHeight:653,xHeight:441},e["Times-BoldItalic"]={ascent:683,descent:-217,capHeight:669,xHeight:462},e.Symbol={ascent:Math.NaN,descent:Math.NaN,capHeight:Math.NaN,xHeight:Math.NaN},e.ZapfDingbats={ascent:Math.NaN,descent:Math.NaN,capHeight:Math.NaN,xHeight:Math.NaN}}));t.getFontBasicMetrics=o},(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.GlyfTable=void 0,t.GlyfTable=class{constructor(e){let{glyfTable:t,isGlyphLocationsLong:r,locaTable:i,numGlyphs:o}=e;this.glyphs=[];const s=new DataView(i.buffer,i.byteOffset,i.byteLength),a=new DataView(t.buffer,t.byteOffset,t.byteLength),l=r?4:2;let c=r?s.getUint32(0):2*s.getUint16(0),u=0;for(let d=0;d<o;d++){u+=l;const e=r?s.getUint32(u):2*s.getUint16(u);if(e===c){this.glyphs.push(new n({}));continue}const t=n.parse(c,a);this.glyphs.push(t),c=e}}getSize(){return this.glyphs.reduce(((e,t)=>e+(t.getSize()+3&-4)),0)}write(){const e=this.getSize(),t=new DataView(new ArrayBuffer(e)),n=e>131070,r=n?4:2,i=new DataView(new ArrayBuffer((this.glyphs.length+1)*r));n?i.setUint32(0,0):i.setUint16(0,0);let o=0,s=0;for(const a of this.glyphs)o+=a.write(o,t),o=o+3&-4,s+=r,n?i.setUint32(s,o):i.setUint16(s,o>>1);return{isLocationLong:n,loca:new Uint8Array(i.buffer),glyf:new Uint8Array(t.buffer)}}scale(e){for(let t=0,n=this.glyphs.length;t<n;t++)this.glyphs[t].scale(e[t])}};class n{constructor(e){let{header:t=null,simple:n=null,composites:r=null}=e;this.header=t,this.simple=n,this.composites=r}static parse(e,t){const[i,a]=r.parse(e,t);if(e+=i,a.numberOfContours<0){const r=[];for(;;){const[n,i]=s.parse(e,t);if(e+=n,r.push(i),!(32&i.flags))break}return new n({header:a,composites:r})}const l=o.parse(e,t,a.numberOfContours);return new n({header:a,simple:l})}getSize(){if(!this.header)return 0;const e=this.simple?this.simple.getSize():this.composites.reduce(((e,t)=>e+t.getSize()),0);return this.header.getSize()+e}write(e,t){if(!this.header)return 0;const n=e;if(e+=this.header.write(e,t),this.simple)e+=this.simple.write(e,t);else for(const r of this.composites)e+=r.write(e,t);return e-n}scale(e){if(!this.header)return;const t=(this.header.xMin+this.header.xMax)/2;if(this.header.scale(t,e),this.simple)this.simple.scale(t,e);else for(const n of this.composites)n.scale(t,e)}}class r{constructor(e){let{numberOfContours:t,xMin:n,yMin:r,xMax:i,yMax:o}=e;this.numberOfContours=t,this.xMin=n,this.yMin=r,this.xMax=i,this.yMax=o}static parse(e,t){return[10,new r({numberOfContours:t.getInt16(e),xMin:t.getInt16(e+2),yMin:t.getInt16(e+4),xMax:t.getInt16(e+6),yMax:t.getInt16(e+8)})]}getSize(){return 10}write(e,t){return t.setInt16(e,this.numberOfContours),t.setInt16(e+2,this.xMin),t.setInt16(e+4,this.yMin),t.setInt16(e+6,this.xMax),t.setInt16(e+8,this.yMax),10}scale(e,t){this.xMin=Math.round(e+(this.xMin-e)*t),this.xMax=Math.round(e+(this.xMax-e)*t)}}class i{constructor(e){let{flags:t,xCoordinates:n,yCoordinates:r}=e;this.xCoordinates=n,this.yCoordinates=r,this.flags=t}}class o{constructor(e){let{contours:t,instructions:n}=e;this.contours=t,this.instructions=n}static parse(e,t,n){const r=[];for(let i=0;i<n;i++){const n=t.getUint16(e);e+=2,r.push(n)}const s=r[n-1]+1,a=t.getUint16(e);e+=2;const l=new Uint8Array(t).slice(e,e+a);e+=a;const c=[];for(let i=0;i<s;e++,i++){let n=t.getUint8(e);if(c.push(n),8&n){const r=t.getUint8(++e);n^=8;for(let e=0;e<r;e++)c.push(n);i+=r}}const u=[];let d=[],h=[],p=[];const f=[];let g=0,m=0;for(let i=0;i<s;i++){const n=c[i];if(2&n){const r=t.getUint8(e++);m+=16&n?r:-r,d.push(m)}else 16&n||(m+=t.getInt16(e),e+=2),d.push(m);r[g]===i&&(g++,u.push(d),d=[])}m=0,g=0;for(let o=0;o<s;o++){const n=c[o];if(4&n){const r=t.getUint8(e++);m+=32&n?r:-r,h.push(m)}else 32&n||(m+=t.getInt16(e),e+=2),h.push(m);p.push(1&n|64&n),r[g]===o&&(d=u[g],g++,f.push(new i({flags:p,xCoordinates:d,yCoordinates:h})),h=[],p=[])}return new o({contours:f,instructions:l})}getSize(){let e=2*this.contours.length+2+this.instructions.length,t=0,n=0;for(const r of this.contours){e+=r.flags.length;for(let i=0,o=r.xCoordinates.length;i<o;i++){const o=r.xCoordinates[i],s=r.yCoordinates[i];let a=Math.abs(o-t);a>255?e+=2:a>0&&(e+=1),t=o,a=Math.abs(s-n),a>255?e+=2:a>0&&(e+=1),n=s}}return e}write(e,t){const n=e,r=[],i=[],o=[];let s=0,a=0;for(const l of this.contours){for(let e=0,t=l.xCoordinates.length;e<t;e++){let t=l.flags[e];const n=l.xCoordinates[e];let c=n-s;if(0===c)t|=16,r.push(0);else{const e=Math.abs(c);e<=255?(t|=c>=0?18:2,r.push(e)):r.push(c)}s=n;const u=l.yCoordinates[e];if(c=u-a,0===c)t|=32,i.push(0);else{const e=Math.abs(c);e<=255?(t|=c>=0?36:4,i.push(e)):i.push(c)}a=u,o.push(t)}t.setUint16(e,r.length-1),e+=2}t.setUint16(e,this.instructions.length),e+=2,this.instructions.length&&(new Uint8Array(t.buffer,0,t.buffer.byteLength).set(this.instructions,e),e+=this.instructions.length);for(const l of o)t.setUint8(e++,l);for(let l=0,c=r.length;l<c;l++){const n=r[l],i=o[l];2&i?t.setUint8(e++,n):16&i||(t.setInt16(e,n),e+=2)}for(let l=0,c=i.length;l<c;l++){const n=i[l],r=o[l];4&r?t.setUint8(e++,n):32&r||(t.setInt16(e,n),e+=2)}return e-n}scale(e,t){for(const n of this.contours)if(0!==n.xCoordinates.length)for(let r=0,i=n.xCoordinates.length;r<i;r++)n.xCoordinates[r]=Math.round(e+(n.xCoordinates[r]-e)*t)}}class s{constructor(e){let{flags:t,glyphIndex:n,argument1:r,argument2:i,transf:o,instructions:s}=e;this.flags=t,this.glyphIndex=n,this.argument1=r,this.argument2=i,this.transf=o,this.instructions=s}static parse(e,t){const n=e,r=[];let i=t.getUint16(e);const o=t.getUint16(e+2);let a,l;e+=4,1&i?(2&i?(a=t.getInt16(e),l=t.getInt16(e+2)):(a=t.getUint16(e),l=t.getUint16(e+2)),e+=4,i^=1):(2&i?(a=t.getInt8(e),l=t.getInt8(e+1)):(a=t.getUint8(e),l=t.getUint8(e+1)),e+=2),8&i?(r.push(t.getUint16(e)),e+=2):64&i?(r.push(t.getUint16(e),t.getUint16(e+2)),e+=4):128&i&&(r.push(t.getUint16(e),t.getUint16(e+2),t.getUint16(e+4),t.getUint16(e+6)),e+=8);let c=null;if(256&i){const n=t.getUint16(e);e+=2,c=new Uint8Array(t).slice(e,e+n),e+=n}return[e-n,new s({flags:i,glyphIndex:o,argument1:a,argument2:l,transf:r,instructions:c})]}getSize(){let e=4+2*this.transf.length;return 256&this.flags&&(e+=2+this.instructions.length),e+=2,2&this.flags?this.argument1>=-128&&this.argument1<=127&&this.argument2>=-128&&this.argument2<=127||(e+=2):this.argument1>=0&&this.argument1<=255&&this.argument2>=0&&this.argument2<=255||(e+=2),e}write(e,t){const n=e;return 2&this.flags?this.argument1>=-128&&this.argument1<=127&&this.argument2>=-128&&this.argument2<=127||(this.flags|=1):this.argument1>=0&&this.argument1<=255&&this.argument2>=0&&this.argument2<=255||(this.flags|=1),t.setUint16(e,this.flags),t.setUint16(e+2,this.glyphIndex),e+=4,1&this.flags?(2&this.flags?(t.setInt16(e,this.argument1),t.setInt16(e+2,this.argument2)):(t.setUint16(e,this.argument1),t.setUint16(e+2,this.argument2)),e+=4):(t.setUint8(e,this.argument1),t.setUint8(e+1,this.argument2),e+=2),256&this.flags&&(t.setUint16(e,this.instructions.length),e+=2,this.instructions.length&&(new Uint8Array(t.buffer,0,t.buffer.byteLength).set(this.instructions,e),e+=this.instructions.length)),e-n}scale(e,t){}}},(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.OpenTypeFileBuilder=void 0;var r=n(4),i=n(2);function o(e,t,n){e[t]=n>>8&255,e[t+1]=255&n}function s(e,t,n){e[t]=n>>24&255,e[t+1]=n>>16&255,e[t+2]=n>>8&255,e[t+3]=255&n}function a(e,t,n){if(n instanceof Uint8Array)e.set(n,t);else if("string"===typeof n)for(let r=0,i=n.length;r<i;r++)e[t++]=255&n.charCodeAt(r);else for(const r of n)e[t++]=255&r}class l{constructor(e){this.sfnt=e,this.tables=Object.create(null)}static getSearchParams(e,t){let n=1,r=0;for(;(n^e)>n;)n<<=1,r++;const i=n*t;return{range:i,entry:r,rangeShift:t*e-i}}toArray(){let e=this.sfnt;const t=this.tables,n=Object.keys(t);n.sort();const c=n.length;let u,d,h,p,f,g=12+16*c;const m=[g];for(u=0;u<c;u++)p=t[n[u]],g+=(p.length+3&-4)>>>0,m.push(g);const y=new Uint8Array(g);for(u=0;u<c;u++)p=t[n[u]],a(y,m[u],p);"true"===e&&(e=(0,i.string32)(65536)),y[0]=255&e.charCodeAt(0),y[1]=255&e.charCodeAt(1),y[2]=255&e.charCodeAt(2),y[3]=255&e.charCodeAt(3),o(y,4,c);const v=l.getSearchParams(c,16);for(o(y,6,v.range),o(y,8,v.entry),o(y,10,v.rangeShift),g=12,u=0;u<c;u++){f=n[u],y[g]=255&f.charCodeAt(0),y[g+1]=255&f.charCodeAt(1),y[g+2]=255&f.charCodeAt(2),y[g+3]=255&f.charCodeAt(3);let e=0;for(d=m[u],h=m[u+1];d<h;d+=4)e=e+(0,r.readUint32)(y,d)>>>0;s(y,g+4,e),s(y,g+8,m[u]),s(y,g+12,t[f].length),g+=16}return y}addTable(e,t){if(e in this.tables)throw new Error("Table "+e+" already exists");this.tables[e]=t}}t.OpenTypeFileBuilder=l},(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.Type1Font=void 0;var r=n(33),i=n(2),o=n(36),s=n(4),a=n(8),l=n(47);function c(e,t,n){const r=e.length,i=t.length,o=r-i;let a=n,l=!1;for(;a<o;){let n=0;for(;n<i&&e[a+n]===t[n];)n++;if(n>=i){for(a+=n;a<r&&(0,s.isWhiteSpace)(e[a]);)a++;l=!0;break}a++}return{found:l,length:a}}t.Type1Font=class{constructor(e,t,n){let r=n.length1,s=n.length2,u=t.peekBytes(6);const d=128===u[0]&&1===u[1];d&&(t.skip(6),r=u[5]<<24|u[4]<<16|u[3]<<8|u[2]);const h=function(e,t){const n=[101,101,120,101,99],r=e.pos;let o,s,l,u;try{o=e.getBytes(t),s=o.length}catch(d){}if(s===t&&(l=c(o,n,t-2*n.length),l.found&&l.length===t))return{stream:new a.Stream(o),length:t};for((0,i.warn)('Invalid "Length1" property in Type1 font -- trying to recover.'),e.pos=r;l=c(e.peekBytes(2048),n,0),0!==l.length;)if(e.pos+=l.length,l.found){u=e.pos-r;break}return e.pos=r,u?{stream:new a.Stream(e.getBytes(u)),length:u}:((0,i.warn)('Unable to recover "Length1" property in Type1 font -- using as is.'),{stream:new a.Stream(e.getBytes(t)),length:t})}(t,r);new l.Type1Parser(h.stream,!1,o.SEAC_ANALYSIS_ENABLED).extractFontHeader(n),d&&(u=t.getBytes(6),s=u[5]<<24|u[4]<<16|u[3]<<8|u[2]);const p=function(e,t){const n=e.getBytes();if(0===n.length)throw new i.FormatError("getEexecBlock - no font program found.");return{stream:new a.Stream(n),length:n.length}}(t),f=new l.Type1Parser(p.stream,!0,o.SEAC_ANALYSIS_ENABLED).extractFontProgram(n);for(const i in f.properties)n[i]=f.properties[i];const g=f.charstrings,m=this.getType2Charstrings(g),y=this.getType2Subrs(f.subrs);this.charstrings=g,this.data=this.wrap(e,m,this.charstrings,y,n),this.seacs=this.getSeacs(f.charstrings)}get numGlyphs(){return this.charstrings.length+1}getCharset(){const e=[".notdef"];for(const{glyphName:t}of this.charstrings)e.push(t);return e}getGlyphMapping(e){const t=this.charstrings;if(e.composite){const n=Object.create(null);for(let r=0,i=t.length;r<i;r++)n[e.cMap.charCodeOf(r)]=r+1;return n}const n=[".notdef"];let r,i;for(i=0;i<t.length;i++)n.push(t[i].glyphName);const s=e.builtInEncoding;if(s){r=Object.create(null);for(const e in s)i=n.indexOf(s[e]),i>=0&&(r[e]=i)}return(0,o.type1FontGlyphMapping)(e,r,n)}hasGlyphId(e){return!(e<0||e>=this.numGlyphs)&&(0===e||this.charstrings[e-1].charstring.length>0)}getSeacs(e){const t=[];for(let n=0,r=e.length;n<r;n++){const r=e[n];r.seac&&(t[n+1]=r.seac)}return t}getType2Charstrings(e){const t=[];for(const n of e)t.push(n.charstring);return t}getType2Subrs(e){let t=0;const n=e.length;t=n<1133?107:n<33769?1131:32768;const r=[];let i;for(i=0;i<t;i++)r.push([11]);for(i=0;i<n;i++)r.push(e[i]);return r}wrap(e,t,n,i,o){const s=new r.CFF;s.header=new r.CFFHeader(1,0,4,4),s.names=[e];const a=new r.CFFTopDict;a.setByName("version",391),a.setByName("Notice",392),a.setByName("FullName",393),a.setByName("FamilyName",394),a.setByName("Weight",395),a.setByName("Encoding",null),a.setByName("FontMatrix",o.fontMatrix),a.setByName("FontBBox",o.bbox),a.setByName("charset",null),a.setByName("CharStrings",null),a.setByName("Private",null),s.topDict=a;const l=new r.CFFStrings;l.add("Version 0.11"),l.add("See original notice"),l.add(e),l.add(e),l.add("Medium"),s.strings=l,s.globalSubrIndex=new r.CFFIndex;const c=t.length,u=[".notdef"];let d,h;for(d=0;d<c;d++){const e=n[d].glyphName;-1===r.CFFStandardStrings.indexOf(e)&&l.add(e),u.push(e)}s.charset=new r.CFFCharset(!1,0,u);const p=new r.CFFIndex;for(p.add([139,14]),d=0;d<c;d++)p.add(t[d]);s.charStrings=p;const f=new r.CFFPrivateDict;f.setByName("Subrs",null);const g=["BlueValues","OtherBlues","FamilyBlues","FamilyOtherBlues","StemSnapH","StemSnapV","BlueShift","BlueFuzz","BlueScale","LanguageGroup","ExpansionFactor","ForceBold","StdHW","StdVW"];for(d=0,h=g.length;d<h;d++){const e=g[d];if(!(e in o.privateData))continue;const t=o.privateData[e];if(Array.isArray(t))for(let n=t.length-1;n>0;n--)t[n]-=t[n-1];f.setByName(e,t)}s.topDict.privateDict=f;const m=new r.CFFIndex;for(d=0,h=i.length;d<h;d++)m.add(i[d]);return f.subrsIndex=m,new r.CFFCompiler(s).compile()}}},(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.Type1Parser=void 0;var r=n(35),i=n(4),o=n(8),s=n(2);const a=[4],l=[5],c=[6],u=[7],d=[8],h=[12,35],p=[14],f=[21],g=[22],m=[30],y=[31];class v{constructor(){this.width=0,this.lsb=0,this.flexing=!1,this.output=[],this.stack=[]}convert(e,t,n){const r=e.length;let i,o,v,_=!1;for(let b=0;b<r;b++){let r=e[b];if(r<32){switch(12===r&&(r=(r<<8)+e[++b]),r){case 1:case 3:case 9:case 3072:case 3073:case 3074:case 3105:this.stack=[];break;case 4:if(this.flexing){if(this.stack.length<1){_=!0;break}const e=this.stack.pop();this.stack.push(0,e);break}_=this.executeCommand(1,a);break;case 5:_=this.executeCommand(2,l);break;case 6:_=this.executeCommand(1,c);break;case 7:_=this.executeCommand(1,u);break;case 8:_=this.executeCommand(6,d);break;case 10:if(this.stack.length<1){_=!0;break}if(v=this.stack.pop(),!t[v]){_=!0;break}_=this.convert(t[v],t,n);break;case 11:return _;case 13:if(this.stack.length<2){_=!0;break}i=this.stack.pop(),o=this.stack.pop(),this.lsb=o,this.width=i,this.stack.push(i,o),_=this.executeCommand(2,g);break;case 14:this.output.push(p[0]);break;case 21:if(this.flexing)break;_=this.executeCommand(2,f);break;case 22:if(this.flexing){this.stack.push(0);break}_=this.executeCommand(1,g);break;case 30:_=this.executeCommand(4,m);break;case 31:_=this.executeCommand(4,y);break;case 3078:if(n){const e=this.stack.at(-5);this.seac=this.stack.splice(-4,4),this.seac[0]+=this.lsb-e,_=this.executeCommand(0,p)}else _=this.executeCommand(4,p);break;case 3079:if(this.stack.length<4){_=!0;break}this.stack.pop(),i=this.stack.pop();const e=this.stack.pop();o=this.stack.pop(),this.lsb=o,this.width=i,this.stack.push(i,o,e),_=this.executeCommand(3,f);break;case 3084:if(this.stack.length<2){_=!0;break}const b=this.stack.pop(),x=this.stack.pop();this.stack.push(x/b);break;case 3088:if(this.stack.length<2){_=!0;break}v=this.stack.pop();const S=this.stack.pop();if(0===v&&3===S){const e=this.stack.splice(this.stack.length-17,17);this.stack.push(e[2]+e[0],e[3]+e[1],e[4],e[5],e[6],e[7],e[8],e[9],e[10],e[11],e[12],e[13],e[14]),_=this.executeCommand(13,h,!0),this.flexing=!1,this.stack.push(e[15],e[16])}else 1===v&&0===S&&(this.flexing=!0);break;case 3089:break;default:(0,s.warn)('Unknown type 1 charstring command of "'+r+'"')}if(_)break}else r<=246?r-=139:r=r<=250?256*(r-247)+e[++b]+108:r<=254?-256*(r-251)-e[++b]-108:(255&e[++b])<<24|(255&e[++b])<<16|(255&e[++b])<<8|(255&e[++b])<<0,this.stack.push(r)}return _}executeCommand(e,t,n){const r=this.stack.length;if(e>r)return!0;const i=r-e;for(let o=i;o<r;o++){let e=this.stack[o];Number.isInteger(e)?this.output.push(28,e>>8&255,255&e):(e=65536*e|0,this.output.push(255,e>>24&255,e>>16&255,e>>8&255,255&e))}return this.output.push(...t),n?this.stack.splice(i,e):this.stack.length=0,!1}}function _(e){return e>=48&&e<=57||e>=65&&e<=70||e>=97&&e<=102}function b(e,t,n){if(n>=e.length)return new Uint8Array(0);let r,i,o=0|t;for(r=0;r<n;r++)o=52845*(e[r]+o)+22719&65535;const s=e.length-n,a=new Uint8Array(s);for(r=n,i=0;i<s;r++,i++){const t=e[r];a[i]=t^o>>8,o=52845*(t+o)+22719&65535}return a}function x(e){return 47===e||91===e||93===e||123===e||125===e||40===e||41===e}t.Type1Parser=class{constructor(e,t,n){if(t){const t=e.getBytes(),n=!((_(t[0])||(0,i.isWhiteSpace)(t[0]))&&_(t[1])&&_(t[2])&&_(t[3])&&_(t[4])&&_(t[5])&&_(t[6])&&_(t[7]));e=new o.Stream(n?b(t,55665,4):function(e,t,n){let r=0|t;const i=e.length,o=new Uint8Array(i>>>1);let s,a;for(s=0,a=0;s<i;s++){const t=e[s];if(!_(t))continue;let n;for(s++;s<i&&!_(n=e[s]);)s++;if(s<i){const e=parseInt(String.fromCharCode(t,n),16);o[a++]=e^r>>8,r=52845*(e+r)+22719&65535}}return o.slice(n,a)}(t,55665,4))}this.seacAnalysisEnabled=!!n,this.stream=e,this.nextChar()}readNumberArray(){this.getToken();const e=[];for(;;){const t=this.getToken();if(null===t||"]"===t||"}"===t)break;e.push(parseFloat(t||0))}return e}readNumber(){const e=this.getToken();return parseFloat(e||0)}readInt(){const e=this.getToken();return 0|parseInt(e||0,10)}readBoolean(){return"true"===this.getToken()?1:0}nextChar(){return this.currentChar=this.stream.getByte()}prevChar(){return this.stream.skip(-2),this.currentChar=this.stream.getByte()}getToken(){let e=!1,t=this.currentChar;for(;;){if(-1===t)return null;if(e)10!==t&&13!==t||(e=!1);else if(37===t)e=!0;else if(!(0,i.isWhiteSpace)(t))break;t=this.nextChar()}if(x(t))return this.nextChar(),String.fromCharCode(t);let n="";do{n+=String.fromCharCode(t),t=this.nextChar()}while(t>=0&&!(0,i.isWhiteSpace)(t)&&!x(t));return n}readCharStrings(e,t){return-1===t?e:b(e,4330,t)}extractFontProgram(e){const t=this.stream,n=[],r=[],i=Object.create(null);i.lenIV=4;const o={subrs:[],charstrings:[],properties:{privateData:i}};let s,a,l,c;for(;null!==(s=this.getToken());)if("/"===s)switch(s=this.getToken(),s){case"CharStrings":for(this.getToken(),this.getToken(),this.getToken(),this.getToken();s=this.getToken(),null!==s&&"end"!==s;){if("/"!==s)continue;const e=this.getToken();a=this.readInt(),this.getToken(),l=a>0?t.getBytes(a):new Uint8Array(0),c=o.properties.privateData.lenIV;const n=this.readCharStrings(l,c);this.nextChar(),s=this.getToken(),"noaccess"===s?this.getToken():"/"===s&&this.prevChar(),r.push({glyph:e,encoded:n})}break;case"Subrs":for(this.readInt(),this.getToken();"dup"===this.getToken();){const e=this.readInt();a=this.readInt(),this.getToken(),l=a>0?t.getBytes(a):new Uint8Array(0),c=o.properties.privateData.lenIV;const r=this.readCharStrings(l,c);this.nextChar(),s=this.getToken(),"noaccess"===s&&this.getToken(),n[e]=r}break;case"BlueValues":case"OtherBlues":case"FamilyBlues":case"FamilyOtherBlues":const e=this.readNumberArray();e.length>0&&e.length;break;case"StemSnapH":case"StemSnapV":o.properties.privateData[s]=this.readNumberArray();break;case"StdHW":case"StdVW":o.properties.privateData[s]=this.readNumberArray()[0];break;case"BlueShift":case"lenIV":case"BlueFuzz":case"BlueScale":case"LanguageGroup":o.properties.privateData[s]=this.readNumber();break;case"ExpansionFactor":o.properties.privateData[s]=this.readNumber()||.06;break;case"ForceBold":o.properties.privateData[s]=this.readBoolean()}for(const{encoded:u,glyph:d}of r){const t=new v,r=t.convert(u,n,this.seacAnalysisEnabled);let i=t.output;r&&(i=[14]);const s={glyphName:d,charstring:i,width:t.width,lsb:t.lsb,seac:t.seac};if(".notdef"===d?o.charstrings.unshift(s):o.charstrings.push(s),e.builtInEncoding){const n=e.builtInEncoding.indexOf(d);n>-1&&void 0===e.widths[n]&&n>=e.firstChar&&n<=e.lastChar&&(e.widths[n]=t.width)}}return o}extractFontHeader(e){let t;for(;null!==(t=this.getToken());)if("/"===t)switch(t=this.getToken(),t){case"FontMatrix":const n=this.readNumberArray();e.fontMatrix=n;break;case"Encoding":const i=this.getToken();let o;if(/^\d+$/.test(i)){o=[];const e=0|parseInt(i,10);this.getToken();for(let n=0;n<e;n++){for(t=this.getToken();"dup"!==t&&"def"!==t;)if(t=this.getToken(),null===t)return;if("def"===t)break;const e=this.readInt();this.getToken();const n=this.getToken();o[e]=n,this.getToken()}}else o=(0,r.getEncoding)(i);e.builtInEncoding=o;break;case"FontBBox":const s=this.readNumberArray();e.ascent=Math.max(s[3],s[1]),e.descent=Math.min(s[1],s[3]),e.ascentScaled=!0}}}},(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.Pattern=void 0,t.getTilingPatternIR=function(e,t,n){const i=t.getArray("Matrix"),o=r.Util.normalizeRect(t.getArray("BBox")),s=t.get("XStep"),a=t.get("YStep"),l=t.get("PaintType"),c=t.get("TilingType");if(o[2]-o[0]===0||o[3]-o[1]===0)throw new r.FormatError("Invalid getTilingPatternIR /BBox array: [".concat(o,"]."));return["TilingPattern",n,e,i,o,s,a,l,c]};var r=n(2),i=n(5),o=n(12),s=n(4);const a=2,l=3,c=4,u=5,d=6,h=7;t.Pattern=class{constructor(){(0,r.unreachable)("Cannot initialize Pattern.")}static parseShading(e,t,n,o,p,g){const m=e instanceof i.BaseStream?e.dict:e,_=m.get("ShadingType");try{switch(_){case a:case l:return new f(m,t,n,p,g);case c:case u:case d:case h:return new y(e,t,n,p,g);default:throw new r.FormatError("Unsupported ShadingType: "+_)}}catch(b){if(b instanceof s.MissingDataException)throw b;return o.send("UnsupportedFeature",{featureId:r.UNSUPPORTED_FEATURES.shadingPattern}),(0,r.warn)(b),new v}}};class p{static get SMALL_NUMBER(){return(0,r.shadow)(this,"SMALL_NUMBER",1e-6)}constructor(){this.constructor===p&&(0,r.unreachable)("Cannot initialize BaseShading.")}getIR(){(0,r.unreachable)("Abstract method `getIR` called.")}}class f extends p{constructor(e,t,n,i,s){super(),this.coordsArr=e.getArray("Coords"),this.shadingType=e.get("ShadingType");const a=o.ColorSpace.parse({cs:e.getRaw("CS")||e.getRaw("ColorSpace"),xref:t,resources:n,pdfFunctionFactory:i,localColorSpaceCache:s}),c=e.getArray("BBox");Array.isArray(c)&&4===c.length?this.bbox=r.Util.normalizeRect(c):this.bbox=null;let u=0,d=1;if(e.has("Domain")){const t=e.getArray("Domain");u=t[0],d=t[1]}let h=!1,f=!1;if(e.has("Extend")){const t=e.getArray("Extend");h=t[0],f=t[1]}if(this.shadingType===l&&(!h||!f)){const[e,t,n,i,o,s]=this.coordsArr,a=Math.hypot(e-i,t-o);n<=s+a&&s<=n+a&&(0,r.warn)("Unsupported radial gradient.")}this.extendStart=h,this.extendEnd=f;const g=e.getRaw("Function"),m=i.createFromArray(g),y=(d-u)/10,v=this.colorStops=[];if(u>=d||y<=0)return void(0,r.info)("Bad shading domain.");const _=new Float32Array(a.numComps),b=new Float32Array(1);let x;for(let o=0;o<=10;o++){b[0]=u+o*y,m(b,0,_,0),x=a.getRgb(_,0);const e=r.Util.makeHexColor(x[0],x[1],x[2]);v.push([o/10,e])}let S="transparent";e.has("Background")&&(x=a.getRgb(e.get("Background"),0),S=r.Util.makeHexColor(x[0],x[1],x[2])),h||(v.unshift([0,S]),v[1][0]+=p.SMALL_NUMBER),f||(v.at(-1)[0]-=p.SMALL_NUMBER,v.push([1,S])),this.colorStops=v}getIR(){const e=this.coordsArr,t=this.shadingType;let n,i,o,s,c;return t===a?(i=[e[0],e[1]],o=[e[2],e[3]],s=null,c=null,n="axial"):t===l?(i=[e[0],e[1]],o=[e[3],e[4]],s=e[2],c=e[5],n="radial"):(0,r.unreachable)("getPattern type unknown: ".concat(t)),["RadialAxial",n,this.bbox,this.colorStops,i,o,s,c]}}class g{constructor(e,t){this.stream=e,this.context=t,this.buffer=0,this.bufferLength=0;const n=t.numComps;this.tmpCompsBuf=new Float32Array(n);const r=t.colorSpace.numComps;this.tmpCsCompsBuf=t.colorFn?new Float32Array(r):this.tmpCompsBuf}get hasData(){if(this.stream.end)return this.stream.pos<this.stream.end;if(this.bufferLength>0)return!0;const e=this.stream.getByte();return!(e<0)&&(this.buffer=e,this.bufferLength=8,!0)}readBits(e){let t=this.buffer,n=this.bufferLength;if(32===e){if(0===n)return(this.stream.getByte()<<24|this.stream.getByte()<<16|this.stream.getByte()<<8|this.stream.getByte())>>>0;t=t<<24|this.stream.getByte()<<16|this.stream.getByte()<<8|this.stream.getByte();const e=this.stream.getByte();return this.buffer=e&(1<<n)-1,(t<<8-n|(255&e)>>n)>>>0}if(8===e&&0===n)return this.stream.getByte();for(;n<e;)t=t<<8|this.stream.getByte(),n+=8;return n-=e,this.bufferLength=n,this.buffer=t&(1<<n)-1,t>>n}align(){this.buffer=0,this.bufferLength=0}readFlag(){return this.readBits(this.context.bitsPerFlag)}readCoordinate(){const e=this.context.bitsPerCoordinate,t=this.readBits(e),n=this.readBits(e),r=this.context.decode,i=e<32?1/((1<<e)-1):2.3283064365386963e-10;return[t*i*(r[1]-r[0])+r[0],n*i*(r[3]-r[2])+r[2]]}readComponents(){const e=this.context.numComps,t=this.context.bitsPerComponent,n=t<32?1/((1<<t)-1):2.3283064365386963e-10,r=this.context.decode,i=this.tmpCompsBuf;for(let s=0,a=4;s<e;s++,a+=2){const e=this.readBits(t);i[s]=e*n*(r[a+1]-r[a])+r[a]}const o=this.tmpCsCompsBuf;return this.context.colorFn&&this.context.colorFn(i,0,o,0),this.context.colorSpace.getRgb(o,0)}}const m=function(){const e=[];return function(t){return e[t]||(e[t]=function(e){const t=[];for(let n=0;n<=e;n++){const r=n/e,i=1-r;t.push(new Float32Array([i*i*i,3*r*i*i,3*r*r*i,r*r*r]))}return t}(t)),e[t]}}();class y extends p{static get MIN_SPLIT_PATCH_CHUNKS_AMOUNT(){return(0,r.shadow)(this,"MIN_SPLIT_PATCH_CHUNKS_AMOUNT",3)}static get MAX_SPLIT_PATCH_CHUNKS_AMOUNT(){return(0,r.shadow)(this,"MAX_SPLIT_PATCH_CHUNKS_AMOUNT",20)}static get TRIANGLE_DENSITY(){return(0,r.shadow)(this,"TRIANGLE_DENSITY",20)}constructor(e,t,n,s,a){if(super(),!(e instanceof i.BaseStream))throw new r.FormatError("Mesh data is not a stream");const l=e.dict;this.shadingType=l.get("ShadingType");const p=l.getArray("BBox");Array.isArray(p)&&4===p.length?this.bbox=r.Util.normalizeRect(p):this.bbox=null;const f=o.ColorSpace.parse({cs:l.getRaw("CS")||l.getRaw("ColorSpace"),xref:t,resources:n,pdfFunctionFactory:s,localColorSpaceCache:a});this.background=l.has("Background")?f.getRgb(l.get("Background"),0):null;const m=l.getRaw("Function"),y=m?s.createFromArray(m):null;this.coords=[],this.colors=[],this.figures=[];const v={bitsPerCoordinate:l.get("BitsPerCoordinate"),bitsPerComponent:l.get("BitsPerComponent"),bitsPerFlag:l.get("BitsPerFlag"),decode:l.getArray("Decode"),colorFn:y,colorSpace:f,numComps:y?1:f.numComps},_=new g(e,v);let b=!1;switch(this.shadingType){case c:this._decodeType4Shading(_);break;case u:const e=0|l.get("VerticesPerRow");if(e<2)throw new r.FormatError("Invalid VerticesPerRow");this._decodeType5Shading(_,e);break;case d:this._decodeType6Shading(_),b=!0;break;case h:this._decodeType7Shading(_),b=!0;break;default:(0,r.unreachable)("Unsupported mesh type.")}if(b){this._updateBounds();for(let e=0,t=this.figures.length;e<t;e++)this._buildFigureFromPatch(e)}this._updateBounds(),this._packData()}_decodeType4Shading(e){const t=this.coords,n=this.colors,i=[],o=[];let s=0;for(;e.hasData;){const a=e.readFlag(),l=e.readCoordinate(),c=e.readComponents();if(0===s){if(!(0<=a&&a<=2))throw new r.FormatError("Unknown type4 flag");switch(a){case 0:s=3;break;case 1:o.push(o.at(-2),o.at(-1)),s=1;break;case 2:o.push(o.at(-3),o.at(-1)),s=1}i.push(a)}o.push(t.length),t.push(l),n.push(c),s--,e.align()}this.figures.push({type:"triangles",coords:new Int32Array(o),colors:new Int32Array(o)})}_decodeType5Shading(e,t){const n=this.coords,r=this.colors,i=[];for(;e.hasData;){const t=e.readCoordinate(),o=e.readComponents();i.push(n.length),n.push(t),r.push(o)}this.figures.push({type:"lattice",coords:new Int32Array(i),colors:new Int32Array(i),verticesPerRow:t})}_decodeType6Shading(e){const t=this.coords,n=this.colors,i=new Int32Array(16),o=new Int32Array(4);for(;e.hasData;){const s=e.readFlag();if(!(0<=s&&s<=3))throw new r.FormatError("Unknown type6 flag");const a=t.length;for(let n=0,r=0!==s?8:12;n<r;n++)t.push(e.readCoordinate());const l=n.length;for(let t=0,r=0!==s?2:4;t<r;t++)n.push(e.readComponents());let c,u,d,h;switch(s){case 0:i[12]=a+3,i[13]=a+4,i[14]=a+5,i[15]=a+6,i[8]=a+2,i[11]=a+7,i[4]=a+1,i[7]=a+8,i[0]=a,i[1]=a+11,i[2]=a+10,i[3]=a+9,o[2]=l+1,o[3]=l+2,o[0]=l,o[1]=l+3;break;case 1:c=i[12],u=i[13],d=i[14],h=i[15],i[12]=h,i[13]=a+0,i[14]=a+1,i[15]=a+2,i[8]=d,i[11]=a+3,i[4]=u,i[7]=a+4,i[0]=c,i[1]=a+7,i[2]=a+6,i[3]=a+5,c=o[2],u=o[3],o[2]=u,o[3]=l,o[0]=c,o[1]=l+1;break;case 2:c=i[15],u=i[11],i[12]=i[3],i[13]=a+0,i[14]=a+1,i[15]=a+2,i[8]=i[7],i[11]=a+3,i[4]=u,i[7]=a+4,i[0]=c,i[1]=a+7,i[2]=a+6,i[3]=a+5,c=o[3],o[2]=o[1],o[3]=l,o[0]=c,o[1]=l+1;break;case 3:i[12]=i[0],i[13]=a+0,i[14]=a+1,i[15]=a+2,i[8]=i[1],i[11]=a+3,i[4]=i[2],i[7]=a+4,i[0]=i[3],i[1]=a+7,i[2]=a+6,i[3]=a+5,o[2]=o[0],o[3]=l,o[0]=o[1],o[1]=l+1}i[5]=t.length,t.push([(-4*t[i[0]][0]-t[i[15]][0]+6*(t[i[4]][0]+t[i[1]][0])-2*(t[i[12]][0]+t[i[3]][0])+3*(t[i[13]][0]+t[i[7]][0]))/9,(-4*t[i[0]][1]-t[i[15]][1]+6*(t[i[4]][1]+t[i[1]][1])-2*(t[i[12]][1]+t[i[3]][1])+3*(t[i[13]][1]+t[i[7]][1]))/9]),i[6]=t.length,t.push([(-4*t[i[3]][0]-t[i[12]][0]+6*(t[i[2]][0]+t[i[7]][0])-2*(t[i[0]][0]+t[i[15]][0])+3*(t[i[4]][0]+t[i[14]][0]))/9,(-4*t[i[3]][1]-t[i[12]][1]+6*(t[i[2]][1]+t[i[7]][1])-2*(t[i[0]][1]+t[i[15]][1])+3*(t[i[4]][1]+t[i[14]][1]))/9]),i[9]=t.length,t.push([(-4*t[i[12]][0]-t[i[3]][0]+6*(t[i[8]][0]+t[i[13]][0])-2*(t[i[0]][0]+t[i[15]][0])+3*(t[i[11]][0]+t[i[1]][0]))/9,(-4*t[i[12]][1]-t[i[3]][1]+6*(t[i[8]][1]+t[i[13]][1])-2*(t[i[0]][1]+t[i[15]][1])+3*(t[i[11]][1]+t[i[1]][1]))/9]),i[10]=t.length,t.push([(-4*t[i[15]][0]-t[i[0]][0]+6*(t[i[11]][0]+t[i[14]][0])-2*(t[i[12]][0]+t[i[3]][0])+3*(t[i[2]][0]+t[i[8]][0]))/9,(-4*t[i[15]][1]-t[i[0]][1]+6*(t[i[11]][1]+t[i[14]][1])-2*(t[i[12]][1]+t[i[3]][1])+3*(t[i[2]][1]+t[i[8]][1]))/9]),this.figures.push({type:"patch",coords:new Int32Array(i),colors:new Int32Array(o)})}}_decodeType7Shading(e){const t=this.coords,n=this.colors,i=new Int32Array(16),o=new Int32Array(4);for(;e.hasData;){const s=e.readFlag();if(!(0<=s&&s<=3))throw new r.FormatError("Unknown type7 flag");const a=t.length;for(let n=0,r=0!==s?12:16;n<r;n++)t.push(e.readCoordinate());const l=n.length;for(let t=0,r=0!==s?2:4;t<r;t++)n.push(e.readComponents());let c,u,d,h;switch(s){case 0:i[12]=a+3,i[13]=a+4,i[14]=a+5,i[15]=a+6,i[8]=a+2,i[9]=a+13,i[10]=a+14,i[11]=a+7,i[4]=a+1,i[5]=a+12,i[6]=a+15,i[7]=a+8,i[0]=a,i[1]=a+11,i[2]=a+10,i[3]=a+9,o[2]=l+1,o[3]=l+2,o[0]=l,o[1]=l+3;break;case 1:c=i[12],u=i[13],d=i[14],h=i[15],i[12]=h,i[13]=a+0,i[14]=a+1,i[15]=a+2,i[8]=d,i[9]=a+9,i[10]=a+10,i[11]=a+3,i[4]=u,i[5]=a+8,i[6]=a+11,i[7]=a+4,i[0]=c,i[1]=a+7,i[2]=a+6,i[3]=a+5,c=o[2],u=o[3],o[2]=u,o[3]=l,o[0]=c,o[1]=l+1;break;case 2:c=i[15],u=i[11],i[12]=i[3],i[13]=a+0,i[14]=a+1,i[15]=a+2,i[8]=i[7],i[9]=a+9,i[10]=a+10,i[11]=a+3,i[4]=u,i[5]=a+8,i[6]=a+11,i[7]=a+4,i[0]=c,i[1]=a+7,i[2]=a+6,i[3]=a+5,c=o[3],o[2]=o[1],o[3]=l,o[0]=c,o[1]=l+1;break;case 3:i[12]=i[0],i[13]=a+0,i[14]=a+1,i[15]=a+2,i[8]=i[1],i[9]=a+9,i[10]=a+10,i[11]=a+3,i[4]=i[2],i[5]=a+8,i[6]=a+11,i[7]=a+4,i[0]=i[3],i[1]=a+7,i[2]=a+6,i[3]=a+5,o[2]=o[0],o[3]=l,o[0]=o[1],o[1]=l+1}this.figures.push({type:"patch",coords:new Int32Array(i),colors:new Int32Array(o)})}}_buildFigureFromPatch(e){const t=this.figures[e];(0,r.assert)("patch"===t.type,"Unexpected patch mesh figure");const n=this.coords,i=this.colors,o=t.coords,s=t.colors,a=Math.min(n[o[0]][0],n[o[3]][0],n[o[12]][0],n[o[15]][0]),l=Math.min(n[o[0]][1],n[o[3]][1],n[o[12]][1],n[o[15]][1]),c=Math.max(n[o[0]][0],n[o[3]][0],n[o[12]][0],n[o[15]][0]),u=Math.max(n[o[0]][1],n[o[3]][1],n[o[12]][1],n[o[15]][1]);let d=Math.ceil((c-a)*y.TRIANGLE_DENSITY/(this.bounds[2]-this.bounds[0]));d=Math.max(y.MIN_SPLIT_PATCH_CHUNKS_AMOUNT,Math.min(y.MAX_SPLIT_PATCH_CHUNKS_AMOUNT,d));let h=Math.ceil((u-l)*y.TRIANGLE_DENSITY/(this.bounds[3]-this.bounds[1]));h=Math.max(y.MIN_SPLIT_PATCH_CHUNKS_AMOUNT,Math.min(y.MAX_SPLIT_PATCH_CHUNKS_AMOUNT,h));const p=d+1,f=new Int32Array((h+1)*p),g=new Int32Array((h+1)*p);let v=0;const _=new Uint8Array(3),b=new Uint8Array(3),x=i[s[0]],S=i[s[1]],w=i[s[2]],E=i[s[3]],P=m(h),C=m(d);for(let r=0;r<=h;r++){_[0]=(x[0]*(h-r)+w[0]*r)/h|0,_[1]=(x[1]*(h-r)+w[1]*r)/h|0,_[2]=(x[2]*(h-r)+w[2]*r)/h|0,b[0]=(S[0]*(h-r)+E[0]*r)/h|0,b[1]=(S[1]*(h-r)+E[1]*r)/h|0,b[2]=(S[2]*(h-r)+E[2]*r)/h|0;for(let e=0;e<=d;e++,v++){if((0===r||r===h)&&(0===e||e===d))continue;let t=0,s=0,a=0;for(let i=0;i<=3;i++)for(let l=0;l<=3;l++,a++){const c=P[r][i]*C[e][l];t+=n[o[a]][0]*c,s+=n[o[a]][1]*c}f[v]=n.length,n.push([t,s]),g[v]=i.length;const l=new Uint8Array(3);l[0]=(_[0]*(d-e)+b[0]*e)/d|0,l[1]=(_[1]*(d-e)+b[1]*e)/d|0,l[2]=(_[2]*(d-e)+b[2]*e)/d|0,i.push(l)}}f[0]=o[0],g[0]=s[0],f[d]=o[3],g[d]=s[1],f[p*h]=o[12],g[p*h]=s[2],f[p*h+d]=o[15],g[p*h+d]=s[3],this.figures[e]={type:"lattice",coords:f,colors:g,verticesPerRow:p}}_updateBounds(){let e=this.coords[0][0],t=this.coords[0][1],n=e,r=t;for(let i=1,o=this.coords.length;i<o;i++){const o=this.coords[i][0],s=this.coords[i][1];e=e>o?o:e,t=t>s?s:t,n=n<o?o:n,r=r<s?s:r}this.bounds=[e,t,n,r]}_packData(){let e,t,n,r;const i=this.coords,o=new Float32Array(2*i.length);for(e=0,n=0,t=i.length;e<t;e++){const t=i[e];o[n++]=t[0],o[n++]=t[1]}this.coords=o;const s=this.colors,a=new Uint8Array(3*s.length);for(e=0,n=0,t=s.length;e<t;e++){const t=s[e];a[n++]=t[0],a[n++]=t[1],a[n++]=t[2]}this.colors=a;const l=this.figures;for(e=0,t=l.length;e<t;e++){const t=l[e],i=t.coords,o=t.colors;for(n=0,r=i.length;n<r;n++)i[n]*=2,o[n]*=3}}getIR(){return["Mesh",this.shadingType,this.coords,this.colors,this.figures,this.bounds,this.bbox,this.background]}}class v extends p{getIR(){return["Dummy"]}}},(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.getXfaFontDict=function(e){const t=function(e){const t=h(e);if(!t)return null;const{baseWidths:n,baseMapping:r,factors:i}=t;let o;o=i?n.map(((e,t)=>e*i[t])):n;let s,a=-2;const l=[];for(const[c,u]of r.map(((e,t)=>[e,t])).sort(((e,t)=>{let[n]=e,[r]=t;return n-r})))-1!==c&&(c===a+1?(s.push(o[u]),a+=1):(a=c,s=[o[u]],l.push(c,s)));return l}(e),n=new i.Dict(null);n.set("BaseFont",i.Name.get(e)),n.set("Type",i.Name.get("Font")),n.set("Subtype",i.Name.get("CIDFontType2")),n.set("Encoding",i.Name.get("Identity-H")),n.set("CIDToGIDMap",i.Name.get("Identity")),n.set("W",t),n.set("FirstChar",t[0]),n.set("LastChar",t.at(-2)+t.at(-1).length-1);const r=new i.Dict(null);n.set("FontDescriptor",r);const o=new i.Dict(null);return o.set("Ordering","Identity"),o.set("Registry","Adobe"),o.set("Supplement",0),n.set("CIDSystemInfo",o),n},t.getXfaFontName=h;var r=n(50),i=n(3),o=n(51),s=n(52),a=n(53),l=n(54),c=n(4),u=n(36);const d=(0,c.getLookupTableFactory)((function(e){e["MyriadPro-Regular"]=e["PdfJS-Fallback-Regular"]={name:"LiberationSans-Regular",factors:a.MyriadProRegularFactors,baseWidths:s.LiberationSansRegularWidths,baseMapping:s.LiberationSansRegularMapping,metrics:a.MyriadProRegularMetrics},e["MyriadPro-Bold"]=e["PdfJS-Fallback-Bold"]={name:"LiberationSans-Bold",factors:a.MyriadProBoldFactors,baseWidths:s.LiberationSansBoldWidths,baseMapping:s.LiberationSansBoldMapping,metrics:a.MyriadProBoldMetrics},e["MyriadPro-It"]=e["MyriadPro-Italic"]=e["PdfJS-Fallback-Italic"]={name:"LiberationSans-Italic",factors:a.MyriadProItalicFactors,baseWidths:s.LiberationSansItalicWidths,baseMapping:s.LiberationSansItalicMapping,metrics:a.MyriadProItalicMetrics},e["MyriadPro-BoldIt"]=e["MyriadPro-BoldItalic"]=e["PdfJS-Fallback-BoldItalic"]={name:"LiberationSans-BoldItalic",factors:a.MyriadProBoldItalicFactors,baseWidths:s.LiberationSansBoldItalicWidths,baseMapping:s.LiberationSansBoldItalicMapping,metrics:a.MyriadProBoldItalicMetrics},e.ArialMT=e.Arial=e["Arial-Regular"]={name:"LiberationSans-Regular",baseWidths:s.LiberationSansRegularWidths,baseMapping:s.LiberationSansRegularMapping},e["Arial-BoldMT"]=e["Arial-Bold"]={name:"LiberationSans-Bold",baseWidths:s.LiberationSansBoldWidths,baseMapping:s.LiberationSansBoldMapping},e["Arial-ItalicMT"]=e["Arial-Italic"]={name:"LiberationSans-Italic",baseWidths:s.LiberationSansItalicWidths,baseMapping:s.LiberationSansItalicMapping},e["Arial-BoldItalicMT"]=e["Arial-BoldItalic"]={name:"LiberationSans-BoldItalic",baseWidths:s.LiberationSansBoldItalicWidths,baseMapping:s.LiberationSansBoldItalicMapping},e["Calibri-Regular"]={name:"LiberationSans-Regular",factors:r.CalibriRegularFactors,baseWidths:s.LiberationSansRegularWidths,baseMapping:s.LiberationSansRegularMapping,metrics:r.CalibriRegularMetrics},e["Calibri-Bold"]={name:"LiberationSans-Bold",factors:r.CalibriBoldFactors,baseWidths:s.LiberationSansBoldWidths,baseMapping:s.LiberationSansBoldMapping,metrics:r.CalibriBoldMetrics},e["Calibri-Italic"]={name:"LiberationSans-Italic",factors:r.CalibriItalicFactors,baseWidths:s.LiberationSansItalicWidths,baseMapping:s.LiberationSansItalicMapping,metrics:r.CalibriItalicMetrics},e["Calibri-BoldItalic"]={name:"LiberationSans-BoldItalic",factors:r.CalibriBoldItalicFactors,baseWidths:s.LiberationSansBoldItalicWidths,baseMapping:s.LiberationSansBoldItalicMapping,metrics:r.CalibriBoldItalicMetrics},e["Segoeui-Regular"]={name:"LiberationSans-Regular",factors:l.SegoeuiRegularFactors,baseWidths:s.LiberationSansRegularWidths,baseMapping:s.LiberationSansRegularMapping,metrics:l.SegoeuiRegularMetrics},e["Segoeui-Bold"]={name:"LiberationSans-Bold",factors:l.SegoeuiBoldFactors,baseWidths:s.LiberationSansBoldWidths,baseMapping:s.LiberationSansBoldMapping,metrics:l.SegoeuiBoldMetrics},e["Segoeui-Italic"]={name:"LiberationSans-Italic",factors:l.SegoeuiItalicFactors,baseWidths:s.LiberationSansItalicWidths,baseMapping:s.LiberationSansItalicMapping,metrics:l.SegoeuiItalicMetrics},e["Segoeui-BoldItalic"]={name:"LiberationSans-BoldItalic",factors:l.SegoeuiBoldItalicFactors,baseWidths:s.LiberationSansBoldItalicWidths,baseMapping:s.LiberationSansBoldItalicMapping,metrics:l.SegoeuiBoldItalicMetrics},e["Helvetica-Regular"]=e.Helvetica={name:"LiberationSans-Regular",factors:o.HelveticaRegularFactors,baseWidths:s.LiberationSansRegularWidths,baseMapping:s.LiberationSansRegularMapping,metrics:o.HelveticaRegularMetrics},e["Helvetica-Bold"]={name:"LiberationSans-Bold",factors:o.HelveticaBoldFactors,baseWidths:s.LiberationSansBoldWidths,baseMapping:s.LiberationSansBoldMapping,metrics:o.HelveticaBoldMetrics},e["Helvetica-Italic"]={name:"LiberationSans-Italic",factors:o.HelveticaItalicFactors,baseWidths:s.LiberationSansItalicWidths,baseMapping:s.LiberationSansItalicMapping,metrics:o.HelveticaItalicMetrics},e["Helvetica-BoldItalic"]={name:"LiberationSans-BoldItalic",factors:o.HelveticaBoldItalicFactors,baseWidths:s.LiberationSansBoldItalicWidths,baseMapping:s.LiberationSansBoldItalicMapping,metrics:o.HelveticaBoldItalicMetrics}}));function h(e){const t=(0,u.normalizeFontName)(e);return d()[t]}},(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.CalibriRegularMetrics=t.CalibriRegularFactors=t.CalibriItalicMetrics=t.CalibriItalicFactors=t.CalibriBoldMetrics=t.CalibriBoldItalicMetrics=t.CalibriBoldItalicFactors=t.CalibriBoldFactors=void 0,t.CalibriBoldFactors=[1.3877,1,1,1,.97801,.92482,.89552,.91133,.81988,.97566,.98152,.93548,.93548,1.2798,.85284,.92794,1,.96134,1.54657,.91133,.91133,.91133,.91133,.91133,.91133,.91133,.91133,.91133,.91133,.82845,.82845,.85284,.85284,.85284,.75859,.92138,.83908,.7762,.73293,.87289,.73133,.7514,.81921,.87356,.95958,.59526,.75727,.69225,1.04924,.9121,.86943,.79795,.88198,.77958,.70864,.81055,.90399,.88653,.96017,.82577,.77892,.78257,.97507,1.54657,.97507,.85284,.89552,.90176,.88762,.8785,.75241,.8785,.90518,.95015,.77618,.8785,.88401,.91916,.86304,.88401,.91488,.8785,.8801,.8785,.8785,.91343,.7173,1.04106,.8785,.85075,.95794,.82616,.85162,.79492,.88331,1.69808,.88331,.85284,.97801,.89552,.91133,.89552,.91133,1.7801,.89552,1.24487,1.13254,1.12401,.96839,.85284,.68787,.70645,.85592,.90747,1.01466,1.0088,.90323,1,1.07463,1,.91056,.75806,1.19118,.96839,.78864,.82845,.84133,.75859,.83908,.83908,.83908,.83908,.83908,.83908,.77539,.73293,.73133,.73133,.73133,.73133,.95958,.95958,.95958,.95958,.88506,.9121,.86943,.86943,.86943,.86943,.86943,.85284,.87508,.90399,.90399,.90399,.90399,.77892,.79795,.90807,.88762,.88762,.88762,.88762,.88762,.88762,.8715,.75241,.90518,.90518,.90518,.90518,.88401,.88401,.88401,.88401,.8785,.8785,.8801,.8801,.8801,.8801,.8801,.90747,.89049,.8785,.8785,.8785,.8785,.85162,.8785,.85162,.83908,.88762,.83908,.88762,.83908,.88762,.73293,.75241,.73293,.75241,.73293,.75241,.73293,.75241,.87289,.83016,.88506,.93125,.73133,.90518,.73133,.90518,.73133,.90518,.73133,.90518,.73133,.90518,.81921,.77618,.81921,.77618,.81921,.77618,1,1,.87356,.8785,.91075,.89608,.95958,.88401,.95958,.88401,.95958,.88401,.95958,.88401,.95958,.88401,.76229,.90167,.59526,.91916,1,1,.86304,.69225,.88401,1,1,.70424,.79468,.91926,.88175,.70823,.94903,.9121,.8785,1,1,.9121,.8785,.87802,.88656,.8785,.86943,.8801,.86943,.8801,.86943,.8801,.87402,.89291,.77958,.91343,1,1,.77958,.91343,.70864,.7173,.70864,.7173,.70864,.7173,.70864,.7173,1,1,.81055,.75841,.81055,1.06452,.90399,.8785,.90399,.8785,.90399,.8785,.90399,.8785,.90399,.8785,.90399,.8785,.96017,.95794,.77892,.85162,.77892,.78257,.79492,.78257,.79492,.78257,.79492,.9297,.56892,.83908,.88762,.77539,.8715,.87508,.89049,1,1,.81055,1.04106,1.20528,1.20528,1,1.15543,.70674,.98387,.94721,1.33431,1.45894,.95161,1.06303,.83908,.80352,.57184,.6965,.56289,.82001,.56029,.81235,1.02988,.83908,.7762,.68156,.80367,.73133,.78257,.87356,.86943,.95958,.75727,.89019,1.04924,.9121,.7648,.86943,.87356,.79795,.78275,.81055,.77892,.9762,.82577,.99819,.84896,.95958,.77892,.96108,1.01407,.89049,1.02988,.94211,.96108,.8936,.84021,.87842,.96399,.79109,.89049,1.00813,1.02988,.86077,.87445,.92099,.84723,.86513,.8801,.75638,.85714,.78216,.79586,.87965,.94211,.97747,.78287,.97926,.84971,1.02988,.94211,.8801,.94211,.84971,.73133,1,1,1,1,1,1,1,1,1,1,1,1,.90264,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,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,1,1,.90518,1,1,1,1,1,1,1,1,1,1,1,1,.90548,1,1,1,1,1,1,.96017,.95794,.96017,.95794,.96017,.95794,.77892,.85162,1,1,.89552,.90527,1,.90363,.92794,.92794,.92794,.92794,.87012,.87012,.87012,.89552,.89552,1.42259,.71143,1.06152,1,1,1.03372,1.03372,.97171,1.4956,2.2807,.93835,.83406,.91133,.84107,.91133,1,1,1,.72021,1,1.23108,.83489,.88525,.88525,.81499,.90527,1.81055,.90527,1.81055,1.31006,1.53711,.94434,1.08696,1,.95018,.77192,.85284,.90747,1.17534,.69825,.9716,1.37077,.90747,.90747,.85356,.90747,.90747,1.44947,.85284,.8941,.8941,.70572,.8,.70572,.70572,.70572,.70572,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,1,1,1,1,1,1,1,1,1,1,1,1,.99862,.99862,1,1,1,1,1,1.08004,.91027,1,1,1,.99862,1,1,1,1,1,1,1,1,1,1,1,1,.90727,.90727,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1],t.CalibriBoldMetrics={lineHeight:1.2207,lineGap:.2207},t.CalibriBoldItalicFactors=[1.3877,1,1,1,.97801,.92482,.89552,.91133,.81988,.97566,.98152,.93548,.93548,1.2798,.85284,.92794,1,.96134,1.56239,.91133,.91133,.91133,.91133,.91133,.91133,.91133,.91133,.91133,.91133,.82845,.82845,.85284,.85284,.85284,.75859,.92138,.83908,.7762,.71805,.87289,.73133,.7514,.81921,.87356,.95958,.59526,.75727,.69225,1.04924,.90872,.85938,.79795,.87068,.77958,.69766,.81055,.90399,.88653,.96068,.82577,.77892,.78257,.97507,1.529,.97507,.85284,.89552,.90176,.94908,.86411,.74012,.86411,.88323,.95015,.86411,.86331,.88401,.91916,.86304,.88401,.9039,.86331,.86331,.86411,.86411,.90464,.70852,1.04106,.86331,.84372,.95794,.82616,.84548,.79492,.88331,1.69808,.88331,.85284,.97801,.89552,.91133,.89552,.91133,1.7801,.89552,1.24487,1.13254,1.19129,.96839,.85284,.68787,.70645,.85592,.90747,1.01466,1.0088,.90323,1,1.07463,1,.91056,.75806,1.19118,.96839,.78864,.82845,.84133,.75859,.83908,.83908,.83908,.83908,.83908,.83908,.77539,.71805,.73133,.73133,.73133,.73133,.95958,.95958,.95958,.95958,.88506,.90872,.85938,.85938,.85938,.85938,.85938,.85284,.87068,.90399,.90399,.90399,.90399,.77892,.79795,.90807,.94908,.94908,.94908,.94908,.94908,.94908,.85887,.74012,.88323,.88323,.88323,.88323,.88401,.88401,.88401,.88401,.8785,.86331,.86331,.86331,.86331,.86331,.86331,.90747,.89049,.86331,.86331,.86331,.86331,.84548,.86411,.84548,.83908,.94908,.83908,.94908,.83908,.94908,.71805,.74012,.71805,.74012,.71805,.74012,.71805,.74012,.87289,.79538,.88506,.92726,.73133,.88323,.73133,.88323,.73133,.88323,.73133,.88323,.73133,.88323,.81921,.86411,.81921,.86411,.81921,.86411,1,1,.87356,.86331,.91075,.8777,.95958,.88401,.95958,.88401,.95958,.88401,.95958,.88401,.95958,.88401,.76467,.90167,.59526,.91916,1,1,.86304,.69225,.88401,1,1,.70424,.77312,.91926,.88175,.70823,.94903,.90872,.86331,1,1,.90872,.86331,.86906,.88116,.86331,.85938,.86331,.85938,.86331,.85938,.86331,.87402,.86549,.77958,.90464,1,1,.77958,.90464,.69766,.70852,.69766,.70852,.69766,.70852,.69766,.70852,1,1,.81055,.75841,.81055,1.06452,.90399,.86331,.90399,.86331,.90399,.86331,.90399,.86331,.90399,.86331,.90399,.86331,.96068,.95794,.77892,.84548,.77892,.78257,.79492,.78257,.79492,.78257,.79492,.9297,.56892,.83908,.94908,.77539,.85887,.87068,.89049,1,1,.81055,1.04106,1.20528,1.20528,1,1.15543,.70088,.98387,.94721,1.33431,1.45894,.95161,1.48387,.83908,.80352,.57118,.6965,.56347,.79179,.55853,.80346,1.02988,.83908,.7762,.67174,.86036,.73133,.78257,.87356,.86441,.95958,.75727,.89019,1.04924,.90872,.74889,.85938,.87891,.79795,.7957,.81055,.77892,.97447,.82577,.97466,.87179,.95958,.77892,.94252,.95612,.8753,1.02988,.92733,.94252,.87411,.84021,.8728,.95612,.74081,.8753,1.02189,1.02988,.84814,.87445,.91822,.84723,.85668,.86331,.81344,.87581,.76422,.82046,.96057,.92733,.99375,.78022,.95452,.86015,1.02988,.92733,.86331,.92733,.86015,.73133,1,1,1,1,1,1,1,1,1,1,1,1,.90631,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,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,1,1,.88323,1,1,1,1,1,1,1,1,1,1,1,1,.85174,1,1,1,1,1,1,.96068,.95794,.96068,.95794,.96068,.95794,.77892,.84548,1,1,.89552,.90527,1,.90363,.92794,.92794,.92794,.89807,.87012,.87012,.87012,.89552,.89552,1.42259,.71094,1.06152,1,1,1.03372,1.03372,.97171,1.4956,2.2807,.92972,.83406,.91133,.83326,.91133,1,1,1,.72021,1,1.23108,.83489,.88525,.88525,.81499,.90616,1.81055,.90527,1.81055,1.3107,1.53711,.94434,1.08696,1,.95018,.77192,.85284,.90747,1.17534,.69825,.9716,1.37077,.90747,.90747,.85356,.90747,.90747,1.44947,.85284,.8941,.8941,.70572,.8,.70572,.70572,.70572,.70572,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,1,1,1,1,1,1,1,1,1,1,1,1,.99862,.99862,1,1,1,1,1,1.08004,.91027,1,1,1,.99862,1,1,1,1,1,1,1,1,1,1,1,1,.90727,.90727,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1],t.CalibriBoldItalicMetrics={lineHeight:1.2207,lineGap:.2207},t.CalibriItalicFactors=[1.3877,1,1,1,1.17223,1.1293,.89552,.91133,.80395,1.02269,1.15601,.91056,.91056,1.2798,.85284,.89807,1,.90861,1.39543,.91133,.91133,.91133,.91133,.91133,.91133,.91133,.91133,.91133,.91133,.96309,.96309,.85284,.85284,.85284,.83319,.88071,.8675,.81552,.72346,.85193,.73206,.7522,.81105,.86275,.90685,.6377,.77892,.75593,1.02638,.89249,.84118,.77452,.85374,.75186,.67789,.79776,.88844,.85066,.94309,.77818,.7306,.76659,1.10369,1.38313,1.10369,1.06139,.89552,.8739,.9245,.9245,.83203,.9245,.85865,1.09842,.9245,.9245,1.03297,1.07692,.90918,1.03297,.94959,.9245,.92274,.9245,.9245,1.02933,.77832,1.20562,.9245,.8916,.98986,.86621,.89453,.79004,.94152,1.77256,.94152,.85284,.97801,.89552,.91133,.89552,.91133,1.91729,.89552,1.17889,1.13254,1.16359,.92098,.85284,.68787,.71353,.84737,.90747,1.0088,1.0044,.87683,1,1.09091,1,.92229,.739,1.15642,.92098,.76288,.80504,.80972,.75859,.8675,.8675,.8675,.8675,.8675,.8675,.76318,.72346,.73206,.73206,.73206,.73206,.90685,.90685,.90685,.90685,.86477,.89249,.84118,.84118,.84118,.84118,.84118,.85284,.84557,.88844,.88844,.88844,.88844,.7306,.77452,.86331,.9245,.9245,.9245,.9245,.9245,.9245,.84843,.83203,.85865,.85865,.85865,.85865,.82601,.82601,.82601,.82601,.94469,.9245,.92274,.92274,.92274,.92274,.92274,.90747,.86651,.9245,.9245,.9245,.9245,.89453,.9245,.89453,.8675,.9245,.8675,.9245,.8675,.9245,.72346,.83203,.72346,.83203,.72346,.83203,.72346,.83203,.85193,.8875,.86477,.99034,.73206,.85865,.73206,.85865,.73206,.85865,.73206,.85865,.73206,.85865,.81105,.9245,.81105,.9245,.81105,.9245,1,1,.86275,.9245,.90872,.93591,.90685,.82601,.90685,.82601,.90685,.82601,.90685,1.03297,.90685,.82601,.77896,1.05611,.6377,1.07692,1,1,.90918,.75593,1.03297,1,1,.76032,.9375,.98156,.93407,.77261,1.11429,.89249,.9245,1,1,.89249,.9245,.92534,.86698,.9245,.84118,.92274,.84118,.92274,.84118,.92274,.8667,.86291,.75186,1.02933,1,1,.75186,1.02933,.67789,.77832,.67789,.77832,.67789,.77832,.67789,.77832,1,1,.79776,.97655,.79776,1.23023,.88844,.9245,.88844,.9245,.88844,.9245,.88844,.9245,.88844,.9245,.88844,.9245,.94309,.98986,.7306,.89453,.7306,.76659,.79004,.76659,.79004,.76659,.79004,1.09231,.54873,.8675,.9245,.76318,.84843,.84557,.86651,1,1,.79776,1.20562,1.18622,1.18622,1,1.1437,.67009,.96334,.93695,1.35191,1.40909,.95161,1.48387,.8675,.90861,.6192,.7363,.64824,.82411,.56321,.85696,1.23516,.8675,.81552,.7286,.84134,.73206,.76659,.86275,.84369,.90685,.77892,.85871,1.02638,.89249,.75828,.84118,.85984,.77452,.76466,.79776,.7306,.90782,.77818,.903,.87291,.90685,.7306,.99058,1.03667,.94635,1.23516,.9849,.99058,.92393,.8916,.942,1.03667,.75026,.94635,1.0297,1.23516,.90918,.94048,.98217,.89746,.84153,.92274,.82507,.88832,.84438,.88178,1.03525,.9849,1.00225,.78086,.97248,.89404,1.23516,.9849,.92274,.9849,.89404,.73206,1,1,1,1,1,1,1,1,1,1,1,1,.89693,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,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,1,1,.85865,1,1,1,1,1,1,1,1,1,1,1,1,.90933,1,1,1,1,1,1,.94309,.98986,.94309,.98986,.94309,.98986,.7306,.89453,1,1,.89552,.90527,1,.90186,1.12308,1.12308,1.12308,1.12308,1.2566,1.2566,1.2566,.89552,.89552,1.42259,.68994,1.03809,1,1,1.0176,1.0176,1.11523,1.4956,2.01462,.97858,.82616,.91133,.83437,.91133,1,1,1,.70508,1,1.23108,.79801,.84426,.84426,.774,.90572,1.81055,.90749,1.81055,1.28809,1.55469,.94434,1.07806,1,.97094,.7589,.85284,.90747,1.19658,.69825,.97622,1.33512,.90747,.90747,.85284,.90747,.90747,1.44947,.85284,.8941,.8941,.70572,.8,.70572,.70572,.70572,.70572,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,1,1,1,1,1,1,1,1,1,1,1,1,.99862,.99862,1,1,1,1,1,1.0336,.91027,1,1,1,.99862,1,1,1,1,1,1,1,1,1,1,1,1,1.05859,1.05859,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1],t.CalibriItalicMetrics={lineHeight:1.2207,lineGap:.2207},t.CalibriRegularFactors=[1.3877,1,1,1,1.17223,1.1293,.89552,.91133,.80395,1.02269,1.15601,.91056,.91056,1.2798,.85284,.89807,1,.90861,1.39016,.91133,.91133,.91133,.91133,.91133,.91133,.91133,.91133,.91133,.91133,.96309,.96309,.85284,.85284,.85284,.83319,.88071,.8675,.81552,.73834,.85193,.73206,.7522,.81105,.86275,.90685,.6377,.77892,.75593,1.02638,.89385,.85122,.77452,.86503,.75186,.68887,.79776,.88844,.85066,.94258,.77818,.7306,.76659,1.10369,1.39016,1.10369,1.06139,.89552,.8739,.86128,.94469,.8457,.94469,.89464,1.09842,.84636,.94469,1.03297,1.07692,.90918,1.03297,.95897,.94469,.9482,.94469,.94469,1.04692,.78223,1.20562,.94469,.90332,.98986,.86621,.90527,.79004,.94152,1.77256,.94152,.85284,.97801,.89552,.91133,.89552,.91133,1.91729,.89552,1.17889,1.13254,1.08707,.92098,.85284,.68787,.71353,.84737,.90747,1.0088,1.0044,.87683,1,1.09091,1,.92229,.739,1.15642,.92098,.76288,.80504,.80972,.75859,.8675,.8675,.8675,.8675,.8675,.8675,.76318,.73834,.73206,.73206,.73206,.73206,.90685,.90685,.90685,.90685,.86477,.89385,.85122,.85122,.85122,.85122,.85122,.85284,.85311,.88844,.88844,.88844,.88844,.7306,.77452,.86331,.86128,.86128,.86128,.86128,.86128,.86128,.8693,.8457,.89464,.89464,.89464,.89464,.82601,.82601,.82601,.82601,.94469,.94469,.9482,.9482,.9482,.9482,.9482,.90747,.86651,.94469,.94469,.94469,.94469,.90527,.94469,.90527,.8675,.86128,.8675,.86128,.8675,.86128,.73834,.8457,.73834,.8457,.73834,.8457,.73834,.8457,.85193,.92454,.86477,.9921,.73206,.89464,.73206,.89464,.73206,.89464,.73206,.89464,.73206,.89464,.81105,.84636,.81105,.84636,.81105,.84636,1,1,.86275,.94469,.90872,.95786,.90685,.82601,.90685,.82601,.90685,.82601,.90685,1.03297,.90685,.82601,.77741,1.05611,.6377,1.07692,1,1,.90918,.75593,1.03297,1,1,.76032,.90452,.98156,1.11842,.77261,1.11429,.89385,.94469,1,1,.89385,.94469,.95877,.86901,.94469,.85122,.9482,.85122,.9482,.85122,.9482,.8667,.90016,.75186,1.04692,1,1,.75186,1.04692,.68887,.78223,.68887,.78223,.68887,.78223,.68887,.78223,1,1,.79776,.92188,.79776,1.23023,.88844,.94469,.88844,.94469,.88844,.94469,.88844,.94469,.88844,.94469,.88844,.94469,.94258,.98986,.7306,.90527,.7306,.76659,.79004,.76659,.79004,.76659,.79004,1.09231,.54873,.8675,.86128,.76318,.8693,.85311,.86651,1,1,.79776,1.20562,1.18622,1.18622,1,1.1437,.67742,.96334,.93695,1.35191,1.40909,.95161,1.48387,.86686,.90861,.62267,.74359,.65649,.85498,.56963,.88254,1.23516,.8675,.81552,.75443,.84503,.73206,.76659,.86275,.85122,.90685,.77892,.85746,1.02638,.89385,.75657,.85122,.86275,.77452,.74171,.79776,.7306,.95165,.77818,.89772,.88831,.90685,.7306,.98142,1.02191,.96576,1.23516,.99018,.98142,.9236,.89258,.94035,1.02191,.78848,.96576,.9561,1.23516,.90918,.92578,.95424,.89746,.83969,.9482,.80113,.89442,.85208,.86155,.98022,.99018,1.00452,.81209,.99247,.89181,1.23516,.99018,.9482,.99018,.89181,.73206,1,1,1,1,1,1,1,1,1,1,1,1,.88844,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,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,1,1,.89464,1,1,1,1,1,1,1,1,1,1,1,1,.96766,1,1,1,1,1,1,.94258,.98986,.94258,.98986,.94258,.98986,.7306,.90527,1,1,.89552,.90527,1,.90186,1.12308,1.12308,1.12308,1.12308,1.2566,1.2566,1.2566,.89552,.89552,1.42259,.69043,1.03809,1,1,1.0176,1.0176,1.11523,1.4956,2.01462,.99331,.82616,.91133,.84286,.91133,1,1,1,.70508,1,1.23108,.79801,.84426,.84426,.774,.90527,1.81055,.90527,1.81055,1.28809,1.55469,.94434,1.07806,1,.97094,.7589,.85284,.90747,1.19658,.69825,.97622,1.33512,.90747,.90747,.85356,.90747,.90747,1.44947,.85284,.8941,.8941,.70572,.8,.70572,.70572,.70572,.70572,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,1,1,1,1,1,1,1,1,1,1,1,1,.99862,.99862,1,1,1,1,1,1.0336,.91027,1,1,1,.99862,1,1,1,1,1,1,1,1,1,1,1,1,1.05859,1.05859,1,1,1,1.07185,.99413,.96334,1.08065,1,1,1,1,1,1,1,1,1,1,1],t.CalibriRegularMetrics={lineHeight:1.2207,lineGap:.2207}},(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.HelveticaRegularMetrics=t.HelveticaRegularFactors=t.HelveticaItalicMetrics=t.HelveticaItalicFactors=t.HelveticaBoldMetrics=t.HelveticaBoldItalicMetrics=t.HelveticaBoldItalicFactors=t.HelveticaBoldFactors=void 0,t.HelveticaBoldFactors=[.76116,1,1,1.0006,.99998,.99974,.99973,.99973,.99982,.99977,1.00087,.99998,.99998,.99959,1.00003,1.0006,.99998,1.0006,1.0006,.99973,.99973,.99973,.99973,.99973,.99973,.99973,.99973,.99973,.99973,.99998,1,1.00003,1.00003,1.00003,1.00026,.9999,.99977,.99977,.99977,.99977,1.00001,1.00026,1.00022,.99977,1.0006,.99973,.99977,1.00026,.99999,.99977,1.00022,1.00001,1.00022,.99977,1.00001,1.00026,.99977,1.00001,1.00016,1.00001,1.00001,1.00026,.99998,1.0006,.99998,1.00003,.99973,.99998,.99973,1.00026,.99973,1.00026,.99973,.99998,1.00026,1.00026,1.0006,1.0006,.99973,1.0006,.99982,1.00026,1.00026,1.00026,1.00026,.99959,.99973,.99998,1.00026,.99973,1.00022,.99973,.99973,1,.99959,1.00077,.99959,1.00003,.99998,.99973,.99973,.99973,.99973,1.00077,.99973,.99998,1.00025,.99968,.99973,1.00003,1.00025,.60299,1.00024,1.06409,1,1,.99998,1,.99973,1.0006,.99998,1,.99936,.99973,1.00002,1.00002,1.00002,1.00026,.99977,.99977,.99977,.99977,.99977,.99977,1,.99977,1.00001,1.00001,1.00001,1.00001,1.0006,1.0006,1.0006,1.0006,.99977,.99977,1.00022,1.00022,1.00022,1.00022,1.00022,1.00003,1.00022,.99977,.99977,.99977,.99977,1.00001,1.00001,1.00026,.99973,.99973,.99973,.99973,.99973,.99973,.99982,.99973,.99973,.99973,.99973,.99973,1.0006,1.0006,1.0006,1.0006,1.00026,1.00026,1.00026,1.00026,1.00026,1.00026,1.00026,1.06409,1.00026,1.00026,1.00026,1.00026,1.00026,.99973,1.00026,.99973,.99977,.99973,.99977,.99973,.99977,.99973,.99977,.99973,.99977,.99973,.99977,.99973,.99977,.99973,.99977,1.03374,.99977,1.00026,1.00001,.99973,1.00001,.99973,1.00001,.99973,1.00001,.99973,1.00001,.99973,1.00022,1.00026,1.00022,1.00026,1.00022,1.00026,1.00022,1.00026,.99977,1.00026,.99977,1.00026,1.0006,1.0006,1.0006,1.0006,1.0006,1.0006,1.0006,1.0006,1.0006,1.0006,1.00042,.99973,.99973,1.0006,.99977,.99973,.99973,1.00026,1.0006,1.00026,1.0006,1.00026,1.03828,1.00026,.99999,1.00026,1.0006,.99977,1.00026,.99977,1.00026,.99977,1.00026,.9993,.9998,1.00026,1.00022,1.00026,1.00022,1.00026,1.00022,1.00026,1,1.00016,.99977,.99959,.99977,.99959,.99977,.99959,1.00001,.99973,1.00001,.99973,1.00001,.99973,1.00001,.99973,1.00026,.99998,1.00026,.8121,1.00026,.99998,.99977,1.00026,.99977,1.00026,.99977,1.00026,.99977,1.00026,.99977,1.00026,.99977,1.00026,1.00016,1.00022,1.00001,.99973,1.00001,1.00026,1,1.00026,1,1.00026,1,1.0006,.99973,.99977,.99973,1,.99982,1.00022,1.00026,1.00001,.99973,1.00026,.99998,.99998,.99998,.99998,.99998,.99998,.99998,.99998,.99998,.99998,.99998,1.00034,.99977,1,.99997,1.00026,1.00078,1.00036,.99973,1.00013,1.0006,.99977,.99977,.99988,.85148,1.00001,1.00026,.99977,1.00022,1.0006,.99977,1.00001,.99999,.99977,1.00069,1.00022,.99977,1.00001,.99984,1.00026,1.00001,1.00024,1.00001,.9999,1,1.0006,1.00001,1.00041,.99962,1.00026,1.0006,.99995,1.00041,.99942,.99973,.99927,1.00082,.99902,1.00026,1.00087,1.0006,1.00069,.99973,.99867,.99973,.9993,1.00026,1.00049,1.00056,1,.99988,.99935,.99995,.99954,1.00055,.99945,1.00032,1.0006,.99995,1.00026,.99995,1.00032,1.00001,1.00008,.99971,1.00019,.9994,1.00001,1.0006,1.00044,.99973,1.00023,1.00047,1,.99942,.99561,.99989,1.00035,.99977,1.00035,.99977,1.00019,.99944,1.00001,1.00021,.99926,1.00035,1.00035,.99942,1.00048,.99999,.99977,1.00022,1.00035,1.00001,.99977,1.00026,.99989,1.00057,1.00001,.99936,1.00052,1.00012,.99996,1.00043,1,1.00035,.9994,.99976,1.00035,.99973,1.00052,1.00041,1.00119,1.00037,.99973,1.00002,.99986,1.00041,1.00041,.99902,.9996,1.00034,.99999,1.00026,.99999,1.00026,.99973,1.00052,.99973,1,.99973,1.00041,1.00075,.9994,1.0003,.99999,1,1.00041,.99955,1,.99915,.99973,.99973,1.00026,1.00119,.99955,.99973,1.0006,.99911,1.0006,1.00026,.99972,1.00026,.99902,1.00041,.99973,.99999,1,1,1.00038,1.0005,1.00016,1.00022,1.00016,1.00022,1.00016,1.00022,1.00001,.99973,1,1,.99973,1,1,.99955,1.0006,1.0006,1.0006,1.0006,1,1,1,.99973,.99973,.99972,1,1,1.00106,.99999,.99998,.99998,.99999,.99998,1.66475,1,.99973,.99973,1.00023,.99973,.99971,1.00047,1.00023,1,.99991,.99984,1.00002,1.00002,1.00002,1.00002,1,1,1,1,1,1,1,.99972,1,1.20985,1.39713,1.00003,1.00031,1.00015,1,.99561,1.00027,1.00031,1.00031,.99915,1.00031,1.00031,.99999,1.00003,.99999,.99999,1.41144,1.6,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.40579,1.40579,1.36625,.99999,1,.99861,.99861,1,1.00026,1.00026,1.00026,1.00026,.99972,.99999,.99999,.99999,.99999,1.40483,1,.99977,1.00054,1,1,.99953,.99962,1.00042,.9995,1,1,1,1,1,1,1,1,.99998,.99998,.99998,.99998,1,1,1,1,1,1,1,1,1,1,1],t.HelveticaBoldMetrics={lineHeight:1.2,lineGap:.2},t.HelveticaBoldItalicFactors=[.76116,1,1,1.0006,.99998,.99974,.99973,.99973,.99982,.99977,1.00087,.99998,.99998,.99959,1.00003,1.0006,.99998,1.0006,1.0006,.99973,.99973,.99973,.99973,.99973,.99973,.99973,.99973,.99973,.99973,.99998,1,1.00003,1.00003,1.00003,1.00026,.9999,.99977,.99977,.99977,.99977,1.00001,1.00026,1.00022,.99977,1.0006,.99973,.99977,1.00026,.99999,.99977,1.00022,1.00001,1.00022,.99977,1.00001,1.00026,.99977,1.00001,1.00016,1.00001,1.00001,1.00026,.99998,1.0006,.99998,1.00003,.99973,.99998,.99973,1.00026,.99973,1.00026,.99973,.99998,1.00026,1.00026,1.0006,1.0006,.99973,1.0006,.99982,1.00026,1.00026,1.00026,1.00026,.99959,.99973,.99998,1.00026,.99973,1.00022,.99973,.99973,1,.99959,1.00077,.99959,1.00003,.99998,.99973,.99973,.99973,.99973,1.00077,.99973,.99998,1.00025,.99968,.99973,1.00003,1.00025,.60299,1.00024,1.06409,1,1,.99998,1,.99973,1.0006,.99998,1,.99936,.99973,1.00002,1.00002,1.00002,1.00026,.99977,.99977,.99977,.99977,.99977,.99977,1,.99977,1.00001,1.00001,1.00001,1.00001,1.0006,1.0006,1.0006,1.0006,.99977,.99977,1.00022,1.00022,1.00022,1.00022,1.00022,1.00003,1.00022,.99977,.99977,.99977,.99977,1.00001,1.00001,1.00026,.99973,.99973,.99973,.99973,.99973,.99973,.99982,.99973,.99973,.99973,.99973,.99973,1.0006,1.0006,1.0006,1.0006,1.00026,1.00026,1.00026,1.00026,1.00026,1.00026,1.00026,1.06409,1.00026,1.00026,1.00026,1.00026,1.00026,.99973,1.00026,.99973,.99977,.99973,.99977,.99973,.99977,.99973,.99977,.99973,.99977,.99973,.99977,.99973,.99977,.99973,.99977,1.0044,.99977,1.00026,1.00001,.99973,1.00001,.99973,1.00001,.99973,1.00001,.99973,1.00001,.99973,1.00022,1.00026,1.00022,1.00026,1.00022,1.00026,1.00022,1.00026,.99977,1.00026,.99977,1.00026,1.0006,1.0006,1.0006,1.0006,1.0006,1.0006,1.0006,1.0006,1.0006,1.0006,.99971,.99973,.99973,1.0006,.99977,.99973,.99973,1.00026,1.0006,1.00026,1.0006,1.00026,1.01011,1.00026,.99999,1.00026,1.0006,.99977,1.00026,.99977,1.00026,.99977,1.00026,.9993,.9998,1.00026,1.00022,1.00026,1.00022,1.00026,1.00022,1.00026,1,1.00016,.99977,.99959,.99977,.99959,.99977,.99959,1.00001,.99973,1.00001,.99973,1.00001,.99973,1.00001,.99973,1.00026,.99998,1.00026,.8121,1.00026,.99998,.99977,1.00026,.99977,1.00026,.99977,1.00026,.99977,1.00026,.99977,1.00026,.99977,1.00026,1.00016,1.00022,1.00001,.99973,1.00001,1.00026,1,1.00026,1,1.00026,1,1.0006,.99973,.99977,.99973,1,.99982,1.00022,1.00026,1.00001,.99973,1.00026,.99998,.99998,.99998,.99998,.99998,.99998,.99998,.99998,.99998,.99998,.99998,.99998,.99977,1,1,1.00026,.99969,.99972,.99981,.9998,1.0006,.99977,.99977,1.00022,.91155,1.00001,1.00026,.99977,1.00022,1.0006,.99977,1.00001,.99999,.99977,.99966,1.00022,1.00032,1.00001,.99944,1.00026,1.00001,.99968,1.00001,1.00047,1,1.0006,1.00001,.99981,1.00101,1.00026,1.0006,.99948,.99981,1.00064,.99973,.99942,1.00101,1.00061,1.00026,1.00069,1.0006,1.00014,.99973,1.01322,.99973,1.00065,1.00026,1.00012,.99923,1,1.00064,1.00076,.99948,1.00055,1.00063,1.00007,.99943,1.0006,.99948,1.00026,.99948,.99943,1.00001,1.00001,1.00029,1.00038,1.00035,1.00001,1.0006,1.0006,.99973,.99978,1.00001,1.00057,.99989,.99967,.99964,.99967,.99977,.99999,.99977,1.00038,.99977,1.00001,.99973,1.00066,.99967,.99967,1.00041,.99998,.99999,.99977,1.00022,.99967,1.00001,.99977,1.00026,.99964,1.00031,1.00001,.99999,.99999,1,1.00023,1,1,.99999,1.00035,1.00001,.99999,.99973,.99977,.99999,1.00058,.99973,.99973,.99955,.9995,1.00026,1.00026,1.00032,.99989,1.00034,.99999,1.00026,1.00026,1.00026,.99973,.45998,.99973,1.00026,.99973,1.00001,.99999,.99982,.99994,.99996,1,1.00042,1.00044,1.00029,1.00023,.99973,.99973,1.00026,.99949,1.00002,.99973,1.0006,1.0006,1.0006,.99975,1.00026,1.00026,1.00032,.98685,.99973,1.00026,1,1,.99966,1.00044,1.00016,1.00022,1.00016,1.00022,1.00016,1.00022,1.00001,.99973,1,1,.99973,1,1,.99955,1.0006,1.0006,1.0006,1.0006,1,1,1,.99973,.99973,.99972,1,1,1.00106,.99999,.99998,.99998,.99999,.99998,1.66475,1,.99973,.99973,1,.99973,.99971,.99978,1,1,.99991,.99984,1.00002,1.00002,1.00002,1.00002,1.00098,1,1,1,1.00049,1,1,.99972,1,1.20985,1.39713,1.00003,1.00031,1.00015,1,.99561,1.00027,1.00031,1.00031,.99915,1.00031,1.00031,.99999,1.00003,.99999,.99999,1.41144,1.6,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.40579,1.40579,1.36625,.99999,1,.99861,.99861,1,1.00026,1.00026,1.00026,1.00026,.99972,.99999,.99999,.99999,.99999,1.40483,1,.99977,1.00054,1,1,.99953,.99962,1.00042,.9995,1,1,1,1,1,1,1,1,.99998,.99998,.99998,.99998,1,1,1,1,1,1,1,1,1,1,1],t.HelveticaBoldItalicMetrics={lineHeight:1.35,lineGap:.2},t.HelveticaItalicFactors=[.76116,1,1,1.0006,1.0006,1.00006,.99973,.99973,.99982,1.00001,1.00043,.99998,.99998,.99959,1.00003,1.0006,.99998,1.0006,1.0006,.99973,.99973,.99973,.99973,.99973,.99973,.99973,.99973,.99973,.99973,1.0006,1,1.00003,1.00003,1.00003,.99973,.99987,1.00001,1.00001,.99977,.99977,1.00001,1.00026,1.00022,.99977,1.0006,1,1.00001,.99973,.99999,.99977,1.00022,1.00001,1.00022,.99977,1.00001,1.00026,.99977,1.00001,1.00016,1.00001,1.00001,1.00026,1.0006,1.0006,1.0006,.99949,.99973,.99998,.99973,.99973,1,.99973,.99973,1.0006,.99973,.99973,.99924,.99924,1,.99924,.99999,.99973,.99973,.99973,.99973,.99998,1,1.0006,.99973,1,.99977,1,1,1,1.00005,1.0009,1.00005,1.00003,.99998,.99973,.99973,.99973,.99973,1.0009,.99973,.99998,1.00025,.99968,.99973,1.00003,1.00025,.60299,1.00024,1.06409,1,1,.99998,1,.9998,1.0006,.99998,1,.99936,.99973,1.00002,1.00002,1.00002,1.00026,1.00001,1.00001,1.00001,1.00001,1.00001,1.00001,1,.99977,1.00001,1.00001,1.00001,1.00001,1.0006,1.0006,1.0006,1.0006,.99977,.99977,1.00022,1.00022,1.00022,1.00022,1.00022,1.00003,1.00022,.99977,.99977,.99977,.99977,1.00001,1.00001,1.00026,.99973,.99973,.99973,.99973,.99973,.99973,.99982,1,.99973,.99973,.99973,.99973,1.0006,1.0006,1.0006,1.0006,.99973,.99973,.99973,.99973,.99973,.99973,.99973,1.06409,1.00026,.99973,.99973,.99973,.99973,1,.99973,1,1.00001,.99973,1.00001,.99973,1.00001,.99973,.99977,1,.99977,1,.99977,1,.99977,1,.99977,1.0288,.99977,.99973,1.00001,.99973,1.00001,.99973,1.00001,.99973,1.00001,.99973,1.00001,.99973,1.00022,.99973,1.00022,.99973,1.00022,.99973,1.00022,.99973,.99977,.99973,.99977,.99973,1.0006,1.0006,1.0006,1.0006,1.0006,1.0006,1.0006,.99924,1.0006,1.0006,.99946,1.00034,1,.99924,1.00001,1,1,.99973,.99924,.99973,.99924,.99973,1.06311,.99973,1.00024,.99973,.99924,.99977,.99973,.99977,.99973,.99977,.99973,1.00041,.9998,.99973,1.00022,.99973,1.00022,.99973,1.00022,.99973,1,1.00016,.99977,.99998,.99977,.99998,.99977,.99998,1.00001,1,1.00001,1,1.00001,1,1.00001,1,1.00026,1.0006,1.00026,.89547,1.00026,1.0006,.99977,.99973,.99977,.99973,.99977,.99973,.99977,.99973,.99977,.99973,.99977,.99973,1.00016,.99977,1.00001,1,1.00001,1.00026,1,1.00026,1,1.00026,1,.99924,.99973,1.00001,.99973,1,.99982,1.00022,1.00026,1.00001,1,1.00026,1.0006,.99998,.99998,.99998,.99998,.99998,.99998,.99998,.99998,.99998,.99998,.99998,1.00001,1,1.00054,.99977,1.00084,1.00007,.99973,1.00013,.99924,1.00001,1.00001,.99945,.91221,1.00001,1.00026,.99977,1.00022,1.0006,1.00001,1.00001,.99999,.99977,.99933,1.00022,1.00054,1.00001,1.00065,1.00026,1.00001,1.0001,1.00001,1.00052,1,1.0006,1.00001,.99945,.99897,.99968,.99924,1.00036,.99945,.99949,1,1.0006,.99897,.99918,.99968,.99911,.99924,1,.99962,1.01487,1,1.0005,.99973,1.00012,1.00043,1,.99995,.99994,1.00036,.99947,1.00019,1.00063,1.00025,.99924,1.00036,.99973,1.00036,1.00025,1.00001,1.00001,1.00027,1.0001,1.00068,1.00001,1.0006,1.0006,1,1.00008,.99957,.99972,.9994,.99954,.99975,1.00051,1.00001,1.00019,1.00001,1.0001,.99986,1.00001,1.00001,1.00038,.99954,.99954,.9994,1.00066,.99999,.99977,1.00022,1.00054,1.00001,.99977,1.00026,.99975,1.0001,1.00001,.99993,.9995,.99955,1.00016,.99978,.99974,1.00019,1.00022,.99955,1.00053,.99973,1.00089,1.00005,.99967,1.00048,.99973,1.00002,1.00034,.99973,.99973,.99964,1.00006,1.00066,.99947,.99973,.98894,.99973,1,.44898,1,.99946,1,1.00039,1.00082,.99991,.99991,.99985,1.00022,1.00023,1.00061,1.00006,.99966,.99973,.99973,.99973,1.00019,1.0008,1,.99924,.99924,.99924,.99983,1.00044,.99973,.99964,.98332,1,.99973,1,1,.99962,.99895,1.00016,.99977,1.00016,.99977,1.00016,.99977,1.00001,1,1,1,.99973,1,1,.99955,.99924,.99924,.99924,.99924,.99998,.99998,.99998,.99973,.99973,.99972,1,1,1.00267,.99999,.99998,.99998,1,.99998,1.66475,1,.99973,.99973,1.00023,.99973,1.00423,.99925,.99999,1,.99991,.99984,1.00002,1.00002,1.00002,1.00002,1.00049,1,1.00245,1,1,1,1,.96329,1,1.20985,1.39713,1.00003,.8254,1.00015,1,1.00035,1.00027,1.00031,1.00031,1.00003,1.00031,1.00031,.99999,1.00003,.99999,.99999,1.41144,1.6,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.40579,1.40579,1.36625,.99999,1,.99861,.99861,1,1.00026,1.00026,1.00026,1.00026,.95317,.99999,.99999,.99999,.99999,1.40483,1,.99977,1.00054,1,1,.99953,.99962,1.00042,.9995,1,1,1,1,1,1,1,1,.99998,.99998,.99998,.99998,1,1,1,1,1,1,1,1,1,1,1],t.HelveticaItalicMetrics={lineHeight:1.35,lineGap:.2},t.HelveticaRegularFactors=[.76116,1,1,1.0006,1.0006,1.00006,.99973,.99973,.99982,1.00001,1.00043,.99998,.99998,.99959,1.00003,1.0006,.99998,1.0006,1.0006,.99973,.99973,.99973,.99973,.99973,.99973,.99973,.99973,.99973,.99973,1.0006,1,1.00003,1.00003,1.00003,.99973,.99987,1.00001,1.00001,.99977,.99977,1.00001,1.00026,1.00022,.99977,1.0006,1,1.00001,.99973,.99999,.99977,1.00022,1.00001,1.00022,.99977,1.00001,1.00026,.99977,1.00001,1.00016,1.00001,1.00001,1.00026,1.0006,1.0006,1.0006,.99949,.99973,.99998,.99973,.99973,1,.99973,.99973,1.0006,.99973,.99973,.99924,.99924,1,.99924,.99999,.99973,.99973,.99973,.99973,.99998,1,1.0006,.99973,1,.99977,1,1,1,1.00005,1.0009,1.00005,1.00003,.99998,.99973,.99973,.99973,.99973,1.0009,.99973,.99998,1.00025,.99968,.99973,1.00003,1.00025,.60299,1.00024,1.06409,1,1,.99998,1,.9998,1.0006,.99998,1,.99936,.99973,1.00002,1.00002,1.00002,1.00026,1.00001,1.00001,1.00001,1.00001,1.00001,1.00001,1,.99977,1.00001,1.00001,1.00001,1.00001,1.0006,1.0006,1.0006,1.0006,.99977,.99977,1.00022,1.00022,1.00022,1.00022,1.00022,1.00003,1.00022,.99977,.99977,.99977,.99977,1.00001,1.00001,1.00026,.99973,.99973,.99973,.99973,.99973,.99973,.99982,1,.99973,.99973,.99973,.99973,1.0006,1.0006,1.0006,1.0006,.99973,.99973,.99973,.99973,.99973,.99973,.99973,1.06409,1.00026,.99973,.99973,.99973,.99973,1,.99973,1,1.00001,.99973,1.00001,.99973,1.00001,.99973,.99977,1,.99977,1,.99977,1,.99977,1,.99977,1.04596,.99977,.99973,1.00001,.99973,1.00001,.99973,1.00001,.99973,1.00001,.99973,1.00001,.99973,1.00022,.99973,1.00022,.99973,1.00022,.99973,1.00022,.99973,.99977,.99973,.99977,.99973,1.0006,1.0006,1.0006,1.0006,1.0006,1.0006,1.0006,.99924,1.0006,1.0006,1.00019,1.00034,1,.99924,1.00001,1,1,.99973,.99924,.99973,.99924,.99973,1.02572,.99973,1.00005,.99973,.99924,.99977,.99973,.99977,.99973,.99977,.99973,.99999,.9998,.99973,1.00022,.99973,1.00022,.99973,1.00022,.99973,1,1.00016,.99977,.99998,.99977,.99998,.99977,.99998,1.00001,1,1.00001,1,1.00001,1,1.00001,1,1.00026,1.0006,1.00026,.84533,1.00026,1.0006,.99977,.99973,.99977,.99973,.99977,.99973,.99977,.99973,.99977,.99973,.99977,.99973,1.00016,.99977,1.00001,1,1.00001,1.00026,1,1.00026,1,1.00026,1,.99924,.99973,1.00001,.99973,1,.99982,1.00022,1.00026,1.00001,1,1.00026,1.0006,.99998,.99998,.99998,.99998,.99998,.99998,.99998,.99998,.99998,.99998,.99998,.99928,1,.99977,1.00013,1.00055,.99947,.99945,.99941,.99924,1.00001,1.00001,1.0004,.91621,1.00001,1.00026,.99977,1.00022,1.0006,1.00001,1.00005,.99999,.99977,1.00015,1.00022,.99977,1.00001,.99973,1.00026,1.00001,1.00019,1.00001,.99946,1,1.0006,1.00001,.99978,1.00045,.99973,.99924,1.00023,.99978,.99966,1,1.00065,1.00045,1.00019,.99973,.99973,.99924,1,1,.96499,1,1.00055,.99973,1.00008,1.00027,1,.9997,.99995,1.00023,.99933,1.00019,1.00015,1.00031,.99924,1.00023,.99973,1.00023,1.00031,1.00001,.99928,1.00029,1.00092,1.00035,1.00001,1.0006,1.0006,1,.99988,.99975,1,1.00082,.99561,.9996,1.00035,1.00001,.99962,1.00001,1.00092,.99964,1.00001,.99963,.99999,1.00035,1.00035,1.00082,.99962,.99999,.99977,1.00022,1.00035,1.00001,.99977,1.00026,.9996,.99967,1.00001,1.00034,1.00074,1.00054,1.00053,1.00063,.99971,.99962,1.00035,.99975,.99977,.99973,1.00043,.99953,1.0007,.99915,.99973,1.00008,.99892,1.00073,1.00073,1.00114,.99915,1.00073,.99955,.99973,1.00092,.99973,1,.99998,1,1.0003,1,1.00043,1.00001,.99969,1.0003,1,1.00035,1.00001,.9995,1,1.00092,.99973,.99973,.99973,1.0007,.9995,1,.99924,1.0006,.99924,.99972,1.00062,.99973,1.00114,1.00073,1,.99955,1,1,1.00047,.99968,1.00016,.99977,1.00016,.99977,1.00016,.99977,1.00001,1,1,1,.99973,1,1,.99955,.99924,.99924,.99924,.99924,.99998,.99998,.99998,.99973,.99973,.99972,1,1,1.00267,.99999,.99998,.99998,1,.99998,1.66475,1,.99973,.99973,1.00023,.99973,.99971,.99925,1.00023,1,.99991,.99984,1.00002,1.00002,1.00002,1.00002,1,1,1,1,1,1,1,.96329,1,1.20985,1.39713,1.00003,.8254,1.00015,1,1.00035,1.00027,1.00031,1.00031,.99915,1.00031,1.00031,.99999,1.00003,.99999,.99999,1.41144,1.6,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.40579,1.40579,1.36625,.99999,1,.99861,.99861,1,1.00026,1.00026,1.00026,1.00026,.95317,.99999,.99999,.99999,.99999,1.40483,1,.99977,1.00054,1,1,.99953,.99962,1.00042,.9995,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1],t.HelveticaRegularMetrics={lineHeight:1.2,lineGap:.2}},(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.LiberationSansRegularWidths=t.LiberationSansRegularMapping=t.LiberationSansItalicWidths=t.LiberationSansItalicMapping=t.LiberationSansBoldWidths=t.LiberationSansBoldMapping=t.LiberationSansBoldItalicWidths=t.LiberationSansBoldItalicMapping=void 0,t.LiberationSansBoldWidths=[365,0,333,278,333,474,556,556,889,722,238,333,333,389,584,278,333,278,278,556,556,556,556,556,556,556,556,556,556,333,333,584,584,584,611,975,722,722,722,722,667,611,778,722,278,556,722,611,833,722,778,667,778,722,667,611,722,667,944,667,667,611,333,278,333,584,556,333,556,611,556,611,556,333,611,611,278,278,556,278,889,611,611,611,611,389,556,333,611,556,778,556,556,500,389,280,389,584,333,556,556,556,556,280,556,333,737,370,556,584,737,552,400,549,333,333,333,576,556,278,333,333,365,556,834,834,834,611,722,722,722,722,722,722,1e3,722,667,667,667,667,278,278,278,278,722,722,778,778,778,778,778,584,778,722,722,722,722,667,667,611,556,556,556,556,556,556,889,556,556,556,556,556,278,278,278,278,611,611,611,611,611,611,611,549,611,611,611,611,611,556,611,556,722,556,722,556,722,556,722,556,722,556,722,556,722,556,722,719,722,611,667,556,667,556,667,556,667,556,667,556,778,611,778,611,778,611,778,611,722,611,722,611,278,278,278,278,278,278,278,278,278,278,785,556,556,278,722,556,556,611,278,611,278,611,385,611,479,611,278,722,611,722,611,722,611,708,723,611,778,611,778,611,778,611,1e3,944,722,389,722,389,722,389,667,556,667,556,667,556,667,556,611,333,611,479,611,333,722,611,722,611,722,611,722,611,722,611,722,611,944,778,667,556,667,611,500,611,500,611,500,278,556,722,556,1e3,889,778,611,667,556,611,333,333,333,333,333,333,333,333,333,333,333,465,722,333,853,906,474,825,927,838,278,722,722,601,719,667,611,722,778,278,722,667,833,722,644,778,722,667,600,611,667,821,667,809,802,278,667,615,451,611,278,582,615,610,556,606,475,460,611,541,278,558,556,612,556,445,611,766,619,520,684,446,582,715,576,753,845,278,582,611,582,845,667,669,885,567,711,667,278,276,556,1094,1062,875,610,722,622,719,722,719,722,567,712,667,904,626,719,719,610,702,833,722,778,719,667,722,611,622,854,667,730,703,1005,1019,870,979,719,711,1031,719,556,618,615,417,635,556,709,497,615,615,500,635,740,604,611,604,611,556,490,556,875,556,615,581,833,844,729,854,615,552,854,583,556,556,611,417,552,556,278,281,278,969,906,611,500,615,556,604,778,611,487,447,944,778,944,778,944,778,667,556,333,333,556,1e3,1e3,552,278,278,278,278,500,500,500,556,556,350,1e3,1e3,240,479,333,333,604,333,167,396,556,556,1094,556,885,489,1115,1e3,768,600,834,834,834,834,1e3,500,1e3,500,1e3,500,500,494,612,823,713,584,549,713,979,722,274,549,549,583,549,549,604,584,604,604,708,625,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,729,604,604,354,354,1e3,990,990,990,990,494,604,604,604,604,354,1021,1052,917,750,750,531,656,594,510,500,750,750,611,611,333,333,333,333,333,333,333,333,222,222,333,333,333,333,333,333,333,333],t.LiberationSansBoldMapping=[-1,-1,-1,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,83,84,85,86,87,88,89,90,91,92,93,94,95,96,97,98,99,100,101,102,103,104,105,106,107,108,109,110,111,112,113,114,115,116,117,118,119,120,121,122,123,124,125,126,161,162,163,164,165,166,167,168,169,170,171,172,174,175,176,177,178,179,180,181,182,183,184,185,186,187,188,189,190,191,192,193,194,195,196,197,198,199,200,201,202,203,204,205,206,207,208,209,210,211,212,213,214,215,216,217,218,219,220,221,222,223,224,225,226,227,228,229,230,231,232,233,234,235,236,237,238,239,240,241,242,243,244,245,246,247,248,249,250,251,252,253,254,255,256,257,258,259,260,261,262,263,264,265,266,267,268,269,270,271,272,273,274,275,276,277,278,279,280,281,282,283,284,285,286,287,288,289,290,291,292,293,294,295,296,297,298,299,300,301,302,303,304,305,306,307,308,309,310,311,312,313,314,315,316,317,318,319,320,321,322,323,324,325,326,327,328,329,330,331,332,333,334,335,336,337,338,339,340,341,342,343,344,345,346,347,348,349,350,351,352,353,354,355,356,357,358,359,360,361,362,363,364,365,366,367,368,369,370,371,372,373,374,375,376,377,378,379,380,381,382,383,402,506,507,508,509,510,511,536,537,538,539,710,711,713,728,729,730,731,732,733,900,901,902,903,904,905,906,908,910,911,912,913,914,915,916,917,918,919,920,921,922,923,924,925,926,927,928,929,931,932,933,934,935,936,937,938,939,940,941,942,943,944,945,946,947,948,949,950,951,952,953,954,955,956,957,958,959,960,961,962,963,964,965,966,967,968,969,970,971,972,973,974,1024,1025,1026,1027,1028,1029,1030,1031,1032,1033,1034,1035,1036,1037,1038,1039,1040,1041,1042,1043,1044,1045,1046,1047,1048,1049,1050,1051,1052,1053,1054,1055,1056,1057,1058,1059,1060,1061,1062,1063,1064,1065,1066,1067,1068,1069,1070,1071,1072,1073,1074,1075,1076,1077,1078,1079,1080,1081,1082,1083,1084,1085,1086,1087,1088,1089,1090,1091,1092,1093,1094,1095,1096,1097,1098,1099,1100,1101,1102,1103,1104,1105,1106,1107,1108,1109,1110,1111,1112,1113,1114,1115,1116,1117,1118,1119,1138,1139,1168,1169,7808,7809,7810,7811,7812,7813,7922,7923,8208,8209,8211,8212,8213,8215,8216,8217,8218,8219,8220,8221,8222,8224,8225,8226,8230,8240,8242,8243,8249,8250,8252,8254,8260,8319,8355,8356,8359,8364,8453,8467,8470,8482,8486,8494,8539,8540,8541,8542,8592,8593,8594,8595,8596,8597,8616,8706,8710,8719,8721,8722,8730,8734,8735,8745,8747,8776,8800,8801,8804,8805,8962,8976,8992,8993,9472,9474,9484,9488,9492,9496,9500,9508,9516,9524,9532,9552,9553,9554,9555,9556,9557,9558,9559,9560,9561,9562,9563,9564,9565,9566,9567,9568,9569,9570,9571,9572,9573,9574,9575,9576,9577,9578,9579,9580,9600,9604,9608,9612,9616,9617,9618,9619,9632,9633,9642,9643,9644,9650,9658,9660,9668,9674,9675,9679,9688,9689,9702,9786,9787,9788,9792,9794,9824,9827,9829,9830,9834,9835,9836,61441,61442,61445,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1],t.LiberationSansBoldItalicWidths=[365,0,333,278,333,474,556,556,889,722,238,333,333,389,584,278,333,278,278,556,556,556,556,556,556,556,556,556,556,333,333,584,584,584,611,975,722,722,722,722,667,611,778,722,278,556,722,611,833,722,778,667,778,722,667,611,722,667,944,667,667,611,333,278,333,584,556,333,556,611,556,611,556,333,611,611,278,278,556,278,889,611,611,611,611,389,556,333,611,556,778,556,556,500,389,280,389,584,333,556,556,556,556,280,556,333,737,370,556,584,737,552,400,549,333,333,333,576,556,278,333,333,365,556,834,834,834,611,722,722,722,722,722,722,1e3,722,667,667,667,667,278,278,278,278,722,722,778,778,778,778,778,584,778,722,722,722,722,667,667,611,556,556,556,556,556,556,889,556,556,556,556,556,278,278,278,278,611,611,611,611,611,611,611,549,611,611,611,611,611,556,611,556,722,556,722,556,722,556,722,556,722,556,722,556,722,556,722,740,722,611,667,556,667,556,667,556,667,556,667,556,778,611,778,611,778,611,778,611,722,611,722,611,278,278,278,278,278,278,278,278,278,278,782,556,556,278,722,556,556,611,278,611,278,611,396,611,479,611,278,722,611,722,611,722,611,708,723,611,778,611,778,611,778,611,1e3,944,722,389,722,389,722,389,667,556,667,556,667,556,667,556,611,333,611,479,611,333,722,611,722,611,722,611,722,611,722,611,722,611,944,778,667,556,667,611,500,611,500,611,500,278,556,722,556,1e3,889,778,611,667,556,611,333,333,333,333,333,333,333,333,333,333,333,333,722,333,854,906,473,844,930,847,278,722,722,610,671,667,611,722,778,278,722,667,833,722,657,778,718,667,590,611,667,822,667,829,781,278,667,620,479,611,278,591,620,621,556,610,479,492,611,558,278,566,556,603,556,450,611,712,605,532,664,409,591,704,578,773,834,278,591,611,591,834,667,667,886,614,719,667,278,278,556,1094,1042,854,622,719,677,719,722,708,722,614,722,667,927,643,719,719,615,687,833,722,778,719,667,722,611,677,781,667,729,708,979,989,854,1e3,708,719,1042,729,556,619,604,534,618,556,736,510,611,611,507,622,740,604,611,611,611,556,889,556,885,556,646,583,889,935,707,854,594,552,865,589,556,556,611,469,563,556,278,278,278,969,906,611,507,619,556,611,778,611,575,467,944,778,944,778,944,778,667,556,333,333,556,1e3,1e3,552,278,278,278,278,500,500,500,556,556,350,1e3,1e3,240,479,333,333,604,333,167,396,556,556,1104,556,885,516,1146,1e3,768,600,834,834,834,834,999,500,1e3,500,1e3,500,500,494,612,823,713,584,549,713,979,722,274,549,549,583,549,549,604,584,604,604,708,625,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,729,604,604,354,354,1e3,990,990,990,990,494,604,604,604,604,354,1021,1052,917,750,750,531,656,594,510,500,750,750,611,611,333,333,333,333,333,333,333,333,222,222,333,333,333,333,333,333,333,333],t.LiberationSansBoldItalicMapping=[-1,-1,-1,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,83,84,85,86,87,88,89,90,91,92,93,94,95,96,97,98,99,100,101,102,103,104,105,106,107,108,109,110,111,112,113,114,115,116,117,118,119,120,121,122,123,124,125,126,161,162,163,164,165,166,167,168,169,170,171,172,174,175,176,177,178,179,180,181,182,183,184,185,186,187,188,189,190,191,192,193,194,195,196,197,198,199,200,201,202,203,204,205,206,207,208,209,210,211,212,213,214,215,216,217,218,219,220,221,222,223,224,225,226,227,228,229,230,231,232,233,234,235,236,237,238,239,240,241,242,243,244,245,246,247,248,249,250,251,252,253,254,255,256,257,258,259,260,261,262,263,264,265,266,267,268,269,270,271,272,273,274,275,276,277,278,279,280,281,282,283,284,285,286,287,288,289,290,291,292,293,294,295,296,297,298,299,300,301,302,303,304,305,306,307,308,309,310,311,312,313,314,315,316,317,318,319,320,321,322,323,324,325,326,327,328,329,330,331,332,333,334,335,336,337,338,339,340,341,342,343,344,345,346,347,348,349,350,351,352,353,354,355,356,357,358,359,360,361,362,363,364,365,366,367,368,369,370,371,372,373,374,375,376,377,378,379,380,381,382,383,402,506,507,508,509,510,511,536,537,538,539,710,711,713,728,729,730,731,732,733,900,901,902,903,904,905,906,908,910,911,912,913,914,915,916,917,918,919,920,921,922,923,924,925,926,927,928,929,931,932,933,934,935,936,937,938,939,940,941,942,943,944,945,946,947,948,949,950,951,952,953,954,955,956,957,958,959,960,961,962,963,964,965,966,967,968,969,970,971,972,973,974,1024,1025,1026,1027,1028,1029,1030,1031,1032,1033,1034,1035,1036,1037,1038,1039,1040,1041,1042,1043,1044,1045,1046,1047,1048,1049,1050,1051,1052,1053,1054,1055,1056,1057,1058,1059,1060,1061,1062,1063,1064,1065,1066,1067,1068,1069,1070,1071,1072,1073,1074,1075,1076,1077,1078,1079,1080,1081,1082,1083,1084,1085,1086,1087,1088,1089,1090,1091,1092,1093,1094,1095,1096,1097,1098,1099,1100,1101,1102,1103,1104,1105,1106,1107,1108,1109,1110,1111,1112,1113,1114,1115,1116,1117,1118,1119,1138,1139,1168,1169,7808,7809,7810,7811,7812,7813,7922,7923,8208,8209,8211,8212,8213,8215,8216,8217,8218,8219,8220,8221,8222,8224,8225,8226,8230,8240,8242,8243,8249,8250,8252,8254,8260,8319,8355,8356,8359,8364,8453,8467,8470,8482,8486,8494,8539,8540,8541,8542,8592,8593,8594,8595,8596,8597,8616,8706,8710,8719,8721,8722,8730,8734,8735,8745,8747,8776,8800,8801,8804,8805,8962,8976,8992,8993,9472,9474,9484,9488,9492,9496,9500,9508,9516,9524,9532,9552,9553,9554,9555,9556,9557,9558,9559,9560,9561,9562,9563,9564,9565,9566,9567,9568,9569,9570,9571,9572,9573,9574,9575,9576,9577,9578,9579,9580,9600,9604,9608,9612,9616,9617,9618,9619,9632,9633,9642,9643,9644,9650,9658,9660,9668,9674,9675,9679,9688,9689,9702,9786,9787,9788,9792,9794,9824,9827,9829,9830,9834,9835,9836,61441,61442,61445,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1],t.LiberationSansItalicWidths=[365,0,333,278,278,355,556,556,889,667,191,333,333,389,584,278,333,278,278,556,556,556,556,556,556,556,556,556,556,278,278,584,584,584,556,1015,667,667,722,722,667,611,778,722,278,500,667,556,833,722,778,667,778,722,667,611,722,667,944,667,667,611,278,278,278,469,556,333,556,556,500,556,556,278,556,556,222,222,500,222,833,556,556,556,556,333,500,278,556,500,722,500,500,500,334,260,334,584,333,556,556,556,556,260,556,333,737,370,556,584,737,552,400,549,333,333,333,576,537,278,333,333,365,556,834,834,834,611,667,667,667,667,667,667,1e3,722,667,667,667,667,278,278,278,278,722,722,778,778,778,778,778,584,778,722,722,722,722,667,667,611,556,556,556,556,556,556,889,500,556,556,556,556,278,278,278,278,556,556,556,556,556,556,556,549,611,556,556,556,556,500,556,500,667,556,667,556,667,556,722,500,722,500,722,500,722,500,722,625,722,556,667,556,667,556,667,556,667,556,667,556,778,556,778,556,778,556,778,556,722,556,722,556,278,278,278,278,278,278,278,222,278,278,733,444,500,222,667,500,500,556,222,556,222,556,281,556,400,556,222,722,556,722,556,722,556,615,723,556,778,556,778,556,778,556,1e3,944,722,333,722,333,722,333,667,500,667,500,667,500,667,500,611,278,611,354,611,278,722,556,722,556,722,556,722,556,722,556,722,556,944,722,667,500,667,611,500,611,500,611,500,222,556,667,556,1e3,889,778,611,667,500,611,278,333,333,333,333,333,333,333,333,333,333,333,667,278,789,846,389,794,865,775,222,667,667,570,671,667,611,722,778,278,667,667,833,722,648,778,725,667,600,611,667,837,667,831,761,278,667,570,439,555,222,550,570,571,500,556,439,463,555,542,222,500,492,548,500,447,556,670,573,486,603,374,550,652,546,728,779,222,550,556,550,779,667,667,843,544,708,667,278,278,500,1066,982,844,589,715,639,724,667,651,667,544,704,667,917,614,715,715,589,686,833,722,778,725,667,722,611,639,795,667,727,673,920,923,805,886,651,694,1022,682,556,562,522,493,553,556,688,465,556,556,472,564,686,550,556,556,556,500,833,500,835,500,572,518,830,851,621,736,526,492,752,534,556,556,556,378,496,500,222,222,222,910,828,556,472,565,500,556,778,556,492,339,944,722,944,722,944,722,667,500,333,333,556,1e3,1e3,552,222,222,222,222,333,333,333,556,556,350,1e3,1e3,188,354,333,333,500,333,167,365,556,556,1094,556,885,323,1083,1e3,768,600,834,834,834,834,1e3,500,998,500,1e3,500,500,494,612,823,713,584,549,713,979,719,274,549,549,584,549,549,604,584,604,604,708,625,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,729,604,604,354,354,1e3,990,990,990,990,494,604,604,604,604,354,1021,1052,917,750,750,531,656,594,510,500,750,750,500,500,333,333,333,333,333,333,333,333,222,222,294,294,324,324,316,328,398,285],t.LiberationSansItalicMapping=[-1,-1,-1,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,83,84,85,86,87,88,89,90,91,92,93,94,95,96,97,98,99,100,101,102,103,104,105,106,107,108,109,110,111,112,113,114,115,116,117,118,119,120,121,122,123,124,125,126,161,162,163,164,165,166,167,168,169,170,171,172,174,175,176,177,178,179,180,181,182,183,184,185,186,187,188,189,190,191,192,193,194,195,196,197,198,199,200,201,202,203,204,205,206,207,208,209,210,211,212,213,214,215,216,217,218,219,220,221,222,223,224,225,226,227,228,229,230,231,232,233,234,235,236,237,238,239,240,241,242,243,244,245,246,247,248,249,250,251,252,253,254,255,256,257,258,259,260,261,262,263,264,265,266,267,268,269,270,271,272,273,274,275,276,277,278,279,280,281,282,283,284,285,286,287,288,289,290,291,292,293,294,295,296,297,298,299,300,301,302,303,304,305,306,307,308,309,310,311,312,313,314,315,316,317,318,319,320,321,322,323,324,325,326,327,328,329,330,331,332,333,334,335,336,337,338,339,340,341,342,343,344,345,346,347,348,349,350,351,352,353,354,355,356,357,358,359,360,361,362,363,364,365,366,367,368,369,370,371,372,373,374,375,376,377,378,379,380,381,382,383,402,506,507,508,509,510,511,536,537,538,539,710,711,713,728,729,730,731,732,733,900,901,902,903,904,905,906,908,910,911,912,913,914,915,916,917,918,919,920,921,922,923,924,925,926,927,928,929,931,932,933,934,935,936,937,938,939,940,941,942,943,944,945,946,947,948,949,950,951,952,953,954,955,956,957,958,959,960,961,962,963,964,965,966,967,968,969,970,971,972,973,974,1024,1025,1026,1027,1028,1029,1030,1031,1032,1033,1034,1035,1036,1037,1038,1039,1040,1041,1042,1043,1044,1045,1046,1047,1048,1049,1050,1051,1052,1053,1054,1055,1056,1057,1058,1059,1060,1061,1062,1063,1064,1065,1066,1067,1068,1069,1070,1071,1072,1073,1074,1075,1076,1077,1078,1079,1080,1081,1082,1083,1084,1085,1086,1087,1088,1089,1090,1091,1092,1093,1094,1095,1096,1097,1098,1099,1100,1101,1102,1103,1104,1105,1106,1107,1108,1109,1110,1111,1112,1113,1114,1115,1116,1117,1118,1119,1138,1139,1168,1169,7808,7809,7810,7811,7812,7813,7922,7923,8208,8209,8211,8212,8213,8215,8216,8217,8218,8219,8220,8221,8222,8224,8225,8226,8230,8240,8242,8243,8249,8250,8252,8254,8260,8319,8355,8356,8359,8364,8453,8467,8470,8482,8486,8494,8539,8540,8541,8542,8592,8593,8594,8595,8596,8597,8616,8706,8710,8719,8721,8722,8730,8734,8735,8745,8747,8776,8800,8801,8804,8805,8962,8976,8992,8993,9472,9474,9484,9488,9492,9496,9500,9508,9516,9524,9532,9552,9553,9554,9555,9556,9557,9558,9559,9560,9561,9562,9563,9564,9565,9566,9567,9568,9569,9570,9571,9572,9573,9574,9575,9576,9577,9578,9579,9580,9600,9604,9608,9612,9616,9617,9618,9619,9632,9633,9642,9643,9644,9650,9658,9660,9668,9674,9675,9679,9688,9689,9702,9786,9787,9788,9792,9794,9824,9827,9829,9830,9834,9835,9836,61441,61442,61445,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1],t.LiberationSansRegularWidths=[365,0,333,278,278,355,556,556,889,667,191,333,333,389,584,278,333,278,278,556,556,556,556,556,556,556,556,556,556,278,278,584,584,584,556,1015,667,667,722,722,667,611,778,722,278,500,667,556,833,722,778,667,778,722,667,611,722,667,944,667,667,611,278,278,278,469,556,333,556,556,500,556,556,278,556,556,222,222,500,222,833,556,556,556,556,333,500,278,556,500,722,500,500,500,334,260,334,584,333,556,556,556,556,260,556,333,737,370,556,584,737,552,400,549,333,333,333,576,537,278,333,333,365,556,834,834,834,611,667,667,667,667,667,667,1e3,722,667,667,667,667,278,278,278,278,722,722,778,778,778,778,778,584,778,722,722,722,722,667,667,611,556,556,556,556,556,556,889,500,556,556,556,556,278,278,278,278,556,556,556,556,556,556,556,549,611,556,556,556,556,500,556,500,667,556,667,556,667,556,722,500,722,500,722,500,722,500,722,615,722,556,667,556,667,556,667,556,667,556,667,556,778,556,778,556,778,556,778,556,722,556,722,556,278,278,278,278,278,278,278,222,278,278,735,444,500,222,667,500,500,556,222,556,222,556,292,556,334,556,222,722,556,722,556,722,556,604,723,556,778,556,778,556,778,556,1e3,944,722,333,722,333,722,333,667,500,667,500,667,500,667,500,611,278,611,375,611,278,722,556,722,556,722,556,722,556,722,556,722,556,944,722,667,500,667,611,500,611,500,611,500,222,556,667,556,1e3,889,778,611,667,500,611,278,333,333,333,333,333,333,333,333,333,333,333,667,278,784,838,384,774,855,752,222,667,667,551,668,667,611,722,778,278,667,668,833,722,650,778,722,667,618,611,667,798,667,835,748,278,667,578,446,556,222,547,578,575,500,557,446,441,556,556,222,500,500,576,500,448,556,690,569,482,617,395,547,648,525,713,781,222,547,556,547,781,667,667,865,542,719,667,278,278,500,1057,1010,854,583,722,635,719,667,656,667,542,677,667,923,604,719,719,583,656,833,722,778,719,667,722,611,635,760,667,740,667,917,938,792,885,656,719,1010,722,556,573,531,365,583,556,669,458,559,559,438,583,688,552,556,542,556,500,458,500,823,500,573,521,802,823,625,719,521,510,750,542,556,556,556,365,510,500,222,278,222,906,812,556,438,559,500,552,778,556,489,411,944,722,944,722,944,722,667,500,333,333,556,1e3,1e3,552,222,222,222,222,333,333,333,556,556,350,1e3,1e3,188,354,333,333,500,333,167,365,556,556,1094,556,885,323,1073,1e3,768,600,834,834,834,834,1e3,500,1e3,500,1e3,500,500,494,612,823,713,584,549,713,979,719,274,549,549,583,549,549,604,584,604,604,708,625,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,729,604,604,354,354,1e3,990,990,990,990,494,604,604,604,604,354,1021,1052,917,750,750,531,656,594,510,500,750,750,500,500,333,333,333,333,333,333,333,333,222,222,294,294,324,324,316,328,398,285],t.LiberationSansRegularMapping=[-1,-1,-1,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,83,84,85,86,87,88,89,90,91,92,93,94,95,96,97,98,99,100,101,102,103,104,105,106,107,108,109,110,111,112,113,114,115,116,117,118,119,120,121,122,123,124,125,126,161,162,163,164,165,166,167,168,169,170,171,172,174,175,176,177,178,179,180,181,182,183,184,185,186,187,188,189,190,191,192,193,194,195,196,197,198,199,200,201,202,203,204,205,206,207,208,209,210,211,212,213,214,215,216,217,218,219,220,221,222,223,224,225,226,227,228,229,230,231,232,233,234,235,236,237,238,239,240,241,242,243,244,245,246,247,248,249,250,251,252,253,254,255,256,257,258,259,260,261,262,263,264,265,266,267,268,269,270,271,272,273,274,275,276,277,278,279,280,281,282,283,284,285,286,287,288,289,290,291,292,293,294,295,296,297,298,299,300,301,302,303,304,305,306,307,308,309,310,311,312,313,314,315,316,317,318,319,320,321,322,323,324,325,326,327,328,329,330,331,332,333,334,335,336,337,338,339,340,341,342,343,344,345,346,347,348,349,350,351,352,353,354,355,356,357,358,359,360,361,362,363,364,365,366,367,368,369,370,371,372,373,374,375,376,377,378,379,380,381,382,383,402,506,507,508,509,510,511,536,537,538,539,710,711,713,728,729,730,731,732,733,900,901,902,903,904,905,906,908,910,911,912,913,914,915,916,917,918,919,920,921,922,923,924,925,926,927,928,929,931,932,933,934,935,936,937,938,939,940,941,942,943,944,945,946,947,948,949,950,951,952,953,954,955,956,957,958,959,960,961,962,963,964,965,966,967,968,969,970,971,972,973,974,1024,1025,1026,1027,1028,1029,1030,1031,1032,1033,1034,1035,1036,1037,1038,1039,1040,1041,1042,1043,1044,1045,1046,1047,1048,1049,1050,1051,1052,1053,1054,1055,1056,1057,1058,1059,1060,1061,1062,1063,1064,1065,1066,1067,1068,1069,1070,1071,1072,1073,1074,1075,1076,1077,1078,1079,1080,1081,1082,1083,1084,1085,1086,1087,1088,1089,1090,1091,1092,1093,1094,1095,1096,1097,1098,1099,1100,1101,1102,1103,1104,1105,1106,1107,1108,1109,1110,1111,1112,1113,1114,1115,1116,1117,1118,1119,1138,1139,1168,1169,7808,7809,7810,7811,7812,7813,7922,7923,8208,8209,8211,8212,8213,8215,8216,8217,8218,8219,8220,8221,8222,8224,8225,8226,8230,8240,8242,8243,8249,8250,8252,8254,8260,8319,8355,8356,8359,8364,8453,8467,8470,8482,8486,8494,8539,8540,8541,8542,8592,8593,8594,8595,8596,8597,8616,8706,8710,8719,8721,8722,8730,8734,8735,8745,8747,8776,8800,8801,8804,8805,8962,8976,8992,8993,9472,9474,9484,9488,9492,9496,9500,9508,9516,9524,9532,9552,9553,9554,9555,9556,9557,9558,9559,9560,9561,9562,9563,9564,9565,9566,9567,9568,9569,9570,9571,9572,9573,9574,9575,9576,9577,9578,9579,9580,9600,9604,9608,9612,9616,9617,9618,9619,9632,9633,9642,9643,9644,9650,9658,9660,9668,9674,9675,9679,9688,9689,9702,9786,9787,9788,9792,9794,9824,9827,9829,9830,9834,9835,9836,61441,61442,61445,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1]},(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.MyriadProRegularMetrics=t.MyriadProRegularFactors=t.MyriadProItalicMetrics=t.MyriadProItalicFactors=t.MyriadProBoldMetrics=t.MyriadProBoldItalicMetrics=t.MyriadProBoldItalicFactors=t.MyriadProBoldFactors=void 0,t.MyriadProBoldFactors=[1.36898,1,1,.72706,.80479,.83734,.98894,.99793,.9897,.93884,.86209,.94292,.94292,1.16661,1.02058,.93582,.96694,.93582,1.19137,.99793,.99793,.99793,.99793,.99793,.99793,.99793,.99793,.99793,.99793,.78076,.78076,1.02058,1.02058,1.02058,.72851,.78966,.90838,.83637,.82391,.96376,.80061,.86275,.8768,.95407,1.0258,.73901,.85022,.83655,1.0156,.95546,.92179,.87107,.92179,.82114,.8096,.89713,.94438,.95353,.94083,.91905,.90406,.9446,.94292,1.18777,.94292,1.02058,.89903,.90088,.94938,.97898,.81093,.97571,.94938,1.024,.9577,.95933,.98621,1.0474,.97455,.98981,.9672,.95933,.9446,.97898,.97407,.97646,.78036,1.10208,.95442,.95298,.97579,.9332,.94039,.938,.80687,1.01149,.80687,1.02058,.80479,.99793,.99793,.99793,.99793,1.01149,1.00872,.90088,.91882,1.0213,.8361,1.02058,.62295,.54324,.89022,1.08595,1,1,.90088,1,.97455,.93582,.90088,1,1.05686,.8361,.99642,.99642,.99642,.72851,.90838,.90838,.90838,.90838,.90838,.90838,.868,.82391,.80061,.80061,.80061,.80061,1.0258,1.0258,1.0258,1.0258,.97484,.95546,.92179,.92179,.92179,.92179,.92179,1.02058,.92179,.94438,.94438,.94438,.94438,.90406,.86958,.98225,.94938,.94938,.94938,.94938,.94938,.94938,.9031,.81093,.94938,.94938,.94938,.94938,.98621,.98621,.98621,.98621,.93969,.95933,.9446,.9446,.9446,.9446,.9446,1.08595,.9446,.95442,.95442,.95442,.95442,.94039,.97898,.94039,.90838,.94938,.90838,.94938,.90838,.94938,.82391,.81093,.82391,.81093,.82391,.81093,.82391,.81093,.96376,.84313,.97484,.97571,.80061,.94938,.80061,.94938,.80061,.94938,.80061,.94938,.80061,.94938,.8768,.9577,.8768,.9577,.8768,.9577,1,1,.95407,.95933,.97069,.95933,1.0258,.98621,1.0258,.98621,1.0258,.98621,1.0258,.98621,1.0258,.98621,.887,1.01591,.73901,1.0474,1,1,.97455,.83655,.98981,1,1,.83655,.73977,.83655,.73903,.84638,1.033,.95546,.95933,1,1,.95546,.95933,.8271,.95417,.95933,.92179,.9446,.92179,.9446,.92179,.9446,.936,.91964,.82114,.97646,1,1,.82114,.97646,.8096,.78036,.8096,.78036,1,1,.8096,.78036,1,1,.89713,.77452,.89713,1.10208,.94438,.95442,.94438,.95442,.94438,.95442,.94438,.95442,.94438,.95442,.94438,.95442,.94083,.97579,.90406,.94039,.90406,.9446,.938,.9446,.938,.9446,.938,1,.99793,.90838,.94938,.868,.9031,.92179,.9446,1,1,.89713,1.10208,.90088,.90088,.90088,.90088,.90088,.90088,.90088,.90088,.90088,.90989,.9358,.91945,.83181,.75261,.87992,.82976,.96034,.83689,.97268,1.0078,.90838,.83637,.8019,.90157,.80061,.9446,.95407,.92436,1.0258,.85022,.97153,1.0156,.95546,.89192,.92179,.92361,.87107,.96318,.89713,.93704,.95638,.91905,.91709,.92796,1.0258,.93704,.94836,1.0373,.95933,1.0078,.95871,.94836,.96174,.92601,.9498,.98607,.95776,.95933,1.05453,1.0078,.98275,.9314,.95617,.91701,1.05993,.9446,.78367,.9553,1,.86832,1.0128,.95871,.99394,.87548,.96361,.86774,1.0078,.95871,.9446,.95871,.86774,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,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,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,1,1,1,1,.94083,.97579,.94083,.97579,.94083,.97579,.90406,.94039,.96694,1,.89903,1,1,1,.93582,.93582,.93582,1,.908,.908,.918,.94219,.94219,.96544,1,1.285,1,1,.81079,.81079,1,1,.74854,1,1,1,1,.99793,1,1,1,.65,1,1.36145,1,1,1,1,1,1,1,1,1,1,1,1.17173,1,.80535,.76169,1.02058,1.0732,1.05486,1,1,1.30692,1.08595,1.08595,1,1.08595,1.08595,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,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.16161,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,1,1,1,1,1],t.MyriadProBoldMetrics={lineHeight:1.2,lineGap:.2},t.MyriadProBoldItalicFactors=[1.36898,1,1,.66227,.80779,.81625,.97276,.97276,.97733,.92222,.83266,.94292,.94292,1.16148,1.02058,.93582,.96694,.93582,1.17337,.97276,.97276,.97276,.97276,.97276,.97276,.97276,.97276,.97276,.97276,.78076,.78076,1.02058,1.02058,1.02058,.71541,.76813,.85576,.80591,.80729,.94299,.77512,.83655,.86523,.92222,.98621,.71743,.81698,.79726,.98558,.92222,.90637,.83809,.90637,.80729,.76463,.86275,.90699,.91605,.9154,.85308,.85458,.90531,.94292,1.21296,.94292,1.02058,.89903,1.18616,.99613,.91677,.78216,.91677,.90083,.98796,.9135,.92168,.95381,.98981,.95298,.95381,.93459,.92168,.91513,.92004,.91677,.95077,.748,1.04502,.91677,.92061,.94236,.89544,.89364,.9,.80687,.8578,.80687,1.02058,.80779,.97276,.97276,.97276,.97276,.8578,.99973,1.18616,.91339,1.08074,.82891,1.02058,.55509,.71526,.89022,1.08595,1,1,1.18616,1,.96736,.93582,1.18616,1,1.04864,.82711,.99043,.99043,.99043,.71541,.85576,.85576,.85576,.85576,.85576,.85576,.845,.80729,.77512,.77512,.77512,.77512,.98621,.98621,.98621,.98621,.95961,.92222,.90637,.90637,.90637,.90637,.90637,1.02058,.90251,.90699,.90699,.90699,.90699,.85458,.83659,.94951,.99613,.99613,.99613,.99613,.99613,.99613,.85811,.78216,.90083,.90083,.90083,.90083,.95381,.95381,.95381,.95381,.9135,.92168,.91513,.91513,.91513,.91513,.91513,1.08595,.91677,.91677,.91677,.91677,.91677,.89364,.92332,.89364,.85576,.99613,.85576,.99613,.85576,.99613,.80729,.78216,.80729,.78216,.80729,.78216,.80729,.78216,.94299,.76783,.95961,.91677,.77512,.90083,.77512,.90083,.77512,.90083,.77512,.90083,.77512,.90083,.86523,.9135,.86523,.9135,.86523,.9135,1,1,.92222,.92168,.92222,.92168,.98621,.95381,.98621,.95381,.98621,.95381,.98621,.95381,.98621,.95381,.86036,.97096,.71743,.98981,1,1,.95298,.79726,.95381,1,1,.79726,.6894,.79726,.74321,.81691,1.0006,.92222,.92168,1,1,.92222,.92168,.79464,.92098,.92168,.90637,.91513,.90637,.91513,.90637,.91513,.909,.87514,.80729,.95077,1,1,.80729,.95077,.76463,.748,.76463,.748,1,1,.76463,.748,1,1,.86275,.72651,.86275,1.04502,.90699,.91677,.90699,.91677,.90699,.91677,.90699,.91677,.90699,.91677,.90699,.91677,.9154,.94236,.85458,.89364,.85458,.90531,.9,.90531,.9,.90531,.9,1,.97276,.85576,.99613,.845,.85811,.90251,.91677,1,1,.86275,1.04502,1.18616,1.18616,1.18616,1.18616,1.18616,1.18616,1.18616,1.18616,1.18616,1.00899,1.30628,.85576,.80178,.66862,.7927,.69323,.88127,.72459,.89711,.95381,.85576,.80591,.7805,.94729,.77512,.90531,.92222,.90637,.98621,.81698,.92655,.98558,.92222,.85359,.90637,.90976,.83809,.94523,.86275,.83509,.93157,.85308,.83392,.92346,.98621,.83509,.92886,.91324,.92168,.95381,.90646,.92886,.90557,.86847,.90276,.91324,.86842,.92168,.99531,.95381,.9224,.85408,.92699,.86847,1.0051,.91513,.80487,.93481,1,.88159,1.05214,.90646,.97355,.81539,.89398,.85923,.95381,.90646,.91513,.90646,.85923,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,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,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,1,1,1,1,.9154,.94236,.9154,.94236,.9154,.94236,.85458,.89364,.96694,1,.89903,1,1,1,.91782,.91782,.91782,1,.896,.896,.896,.9332,.9332,.95973,1,1.26,1,1,.80479,.80178,1,1,.85633,1,1,1,1,.97276,1,1,1,.698,1,1.36145,1,1,1,1,1,1,1,1,1,1,1,1.14542,1,.79199,.78694,1.02058,1.03493,1.05486,1,1,1.23026,1.08595,1.08595,1,1.08595,1.08595,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,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.20006,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,1,1,1,1,1],t.MyriadProBoldItalicMetrics={lineHeight:1.2,lineGap:.2},t.MyriadProItalicFactors=[1.36898,1,1,.65507,.84943,.85639,.88465,.88465,.86936,.88307,.86948,.85283,.85283,1.06383,1.02058,.75945,.9219,.75945,1.17337,.88465,.88465,.88465,.88465,.88465,.88465,.88465,.88465,.88465,.88465,.75945,.75945,1.02058,1.02058,1.02058,.69046,.70926,.85158,.77812,.76852,.89591,.70466,.76125,.80094,.86822,.83864,.728,.77212,.79475,.93637,.87514,.8588,.76013,.8588,.72421,.69866,.77598,.85991,.80811,.87832,.78112,.77512,.8562,1.0222,1.18417,1.0222,1.27014,.89903,1.15012,.93859,.94399,.846,.94399,.81453,1.0186,.94219,.96017,1.03075,1.02175,.912,1.03075,.96998,.96017,.93859,.94399,.94399,.95493,.746,1.12658,.94578,.91,.979,.882,.882,.83,.85034,.83537,.85034,1.02058,.70869,.88465,.88465,.88465,.88465,.83537,.90083,1.15012,.9161,.94565,.73541,1.02058,.53609,.69353,.79519,1.08595,1,1,1.15012,1,.91974,.75945,1.15012,1,.9446,.73361,.9005,.9005,.9005,.62864,.85158,.85158,.85158,.85158,.85158,.85158,.773,.76852,.70466,.70466,.70466,.70466,.83864,.83864,.83864,.83864,.90561,.87514,.8588,.8588,.8588,.8588,.8588,1.02058,.85751,.85991,.85991,.85991,.85991,.77512,.76013,.88075,.93859,.93859,.93859,.93859,.93859,.93859,.8075,.846,.81453,.81453,.81453,.81453,.82424,.82424,.82424,.82424,.9278,.96017,.93859,.93859,.93859,.93859,.93859,1.08595,.8562,.94578,.94578,.94578,.94578,.882,.94578,.882,.85158,.93859,.85158,.93859,.85158,.93859,.76852,.846,.76852,.846,.76852,.846,.76852,.846,.89591,.8544,.90561,.94399,.70466,.81453,.70466,.81453,.70466,.81453,.70466,.81453,.70466,.81453,.80094,.94219,.80094,.94219,.80094,.94219,1,1,.86822,.96017,.86822,.96017,.83864,.82424,.83864,.82424,.83864,.82424,.83864,1.03075,.83864,.82424,.81402,1.02738,.728,1.02175,1,1,.912,.79475,1.03075,1,1,.79475,.83911,.79475,.66266,.80553,1.06676,.87514,.96017,1,1,.87514,.96017,.86865,.87396,.96017,.8588,.93859,.8588,.93859,.8588,.93859,.867,.84759,.72421,.95493,1,1,.72421,.95493,.69866,.746,.69866,.746,1,1,.69866,.746,1,1,.77598,.88417,.77598,1.12658,.85991,.94578,.85991,.94578,.85991,.94578,.85991,.94578,.85991,.94578,.85991,.94578,.87832,.979,.77512,.882,.77512,.8562,.83,.8562,.83,.8562,.83,1,.88465,.85158,.93859,.773,.8075,.85751,.8562,1,1,.77598,1.12658,1.15012,1.15012,1.15012,1.15012,1.15012,1.15313,1.15012,1.15012,1.15012,1.08106,1.03901,.85158,.77025,.62264,.7646,.65351,.86026,.69461,.89947,1.03075,.85158,.77812,.76449,.88836,.70466,.8562,.86822,.8588,.83864,.77212,.85308,.93637,.87514,.82352,.8588,.85701,.76013,.89058,.77598,.8156,.82565,.78112,.77899,.89386,.83864,.8156,.9486,.92388,.96186,1.03075,.91123,.9486,.93298,.878,.93942,.92388,.84596,.96186,.95119,1.03075,.922,.88787,.95829,.88,.93559,.93859,.78815,.93758,1,.89217,1.03737,.91123,.93969,.77487,.85769,.86799,1.03075,.91123,.93859,.91123,.86799,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,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,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,1,1,1,1,.87832,.979,.87832,.979,.87832,.979,.77512,.882,.9219,1,.89903,1,1,1,.87321,.87321,.87321,1,1.027,1.027,1.027,.86847,.86847,.79121,1,1.124,1,1,.73572,.73572,1,1,.85034,1,1,1,1,.88465,1,1,1,.669,1,1.36145,1,1,1,1,1,1,1,1,1,1,1,1.04828,1,.74948,.75187,1.02058,.98391,1.02119,1,1,1.06233,1.08595,1.08595,1,1.08595,1.08595,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,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.05233,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,1,1,1,1,1],t.MyriadProItalicMetrics={lineHeight:1.2,lineGap:.2},t.MyriadProRegularFactors=[1.36898,1,1,.76305,.82784,.94935,.89364,.92241,.89073,.90706,.98472,.85283,.85283,1.0664,1.02058,.74505,.9219,.74505,1.23456,.92241,.92241,.92241,.92241,.92241,.92241,.92241,.92241,.92241,.92241,.74505,.74505,1.02058,1.02058,1.02058,.73002,.72601,.91755,.8126,.80314,.92222,.73764,.79726,.83051,.90284,.86023,.74,.8126,.84869,.96518,.91115,.8858,.79761,.8858,.74498,.73914,.81363,.89591,.83659,.89633,.85608,.8111,.90531,1.0222,1.22736,1.0222,1.27014,.89903,.90088,.86667,1.0231,.896,1.01411,.90083,1.05099,1.00512,.99793,1.05326,1.09377,.938,1.06226,1.00119,.99793,.98714,1.0231,1.01231,.98196,.792,1.19137,.99074,.962,1.01915,.926,.942,.856,.85034,.92006,.85034,1.02058,.69067,.92241,.92241,.92241,.92241,.92006,.9332,.90088,.91882,.93484,.75339,1.02058,.56866,.54324,.79519,1.08595,1,1,.90088,1,.95325,.74505,.90088,1,.97198,.75339,.91009,.91009,.91009,.66466,.91755,.91755,.91755,.91755,.91755,.91755,.788,.80314,.73764,.73764,.73764,.73764,.86023,.86023,.86023,.86023,.92915,.91115,.8858,.8858,.8858,.8858,.8858,1.02058,.8858,.89591,.89591,.89591,.89591,.8111,.79611,.89713,.86667,.86667,.86667,.86667,.86667,.86667,.86936,.896,.90083,.90083,.90083,.90083,.84224,.84224,.84224,.84224,.97276,.99793,.98714,.98714,.98714,.98714,.98714,1.08595,.89876,.99074,.99074,.99074,.99074,.942,1.0231,.942,.91755,.86667,.91755,.86667,.91755,.86667,.80314,.896,.80314,.896,.80314,.896,.80314,.896,.92222,.93372,.92915,1.01411,.73764,.90083,.73764,.90083,.73764,.90083,.73764,.90083,.73764,.90083,.83051,1.00512,.83051,1.00512,.83051,1.00512,1,1,.90284,.99793,.90976,.99793,.86023,.84224,.86023,.84224,.86023,.84224,.86023,1.05326,.86023,.84224,.82873,1.07469,.74,1.09377,1,1,.938,.84869,1.06226,1,1,.84869,.83704,.84869,.81441,.85588,1.08927,.91115,.99793,1,1,.91115,.99793,.91887,.90991,.99793,.8858,.98714,.8858,.98714,.8858,.98714,.894,.91434,.74498,.98196,1,1,.74498,.98196,.73914,.792,.73914,.792,1,1,.73914,.792,1,1,.81363,.904,.81363,1.19137,.89591,.99074,.89591,.99074,.89591,.99074,.89591,.99074,.89591,.99074,.89591,.99074,.89633,1.01915,.8111,.942,.8111,.90531,.856,.90531,.856,.90531,.856,1,.92241,.91755,.86667,.788,.86936,.8858,.89876,1,1,.81363,1.19137,.90088,.90088,.90088,.90088,.90088,.90088,.90088,.90088,.90088,.90388,1.03901,.92138,.78105,.7154,.86169,.80513,.94007,.82528,.98612,1.06226,.91755,.8126,.81884,.92819,.73764,.90531,.90284,.8858,.86023,.8126,.91172,.96518,.91115,.83089,.8858,.87791,.79761,.89297,.81363,.88157,.89992,.85608,.81992,.94307,.86023,.88157,.95308,.98699,.99793,1.06226,.95817,.95308,.97358,.928,.98088,.98699,.92761,.99793,.96017,1.06226,.986,.944,.95978,.938,.96705,.98714,.80442,.98972,1,.89762,1.04552,.95817,.99007,.87064,.91879,.88888,1.06226,.95817,.98714,.95817,.88888,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,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,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,1,1,1,1,.89633,1.01915,.89633,1.01915,.89633,1.01915,.8111,.942,.9219,1,.89903,1,1,1,.93173,.93173,.93173,1,1.06304,1.06304,1.06904,.89903,.89903,.80549,1,1.156,1,1,.76575,.76575,1,1,.72458,1,1,1,1,.92241,1,1,1,.619,1,1.36145,1,1,1,1,1,1,1,1,1,1,1,1.07257,1,.74705,.71119,1.02058,1.024,1.02119,1,1,1.1536,1.08595,1.08595,1,1.08595,1.08595,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,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.05638,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,1,1,1,1,1],t.MyriadProRegularMetrics={lineHeight:1.2,lineGap:.2}},(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.SegoeuiRegularMetrics=t.SegoeuiRegularFactors=t.SegoeuiItalicMetrics=t.SegoeuiItalicFactors=t.SegoeuiBoldMetrics=t.SegoeuiBoldItalicMetrics=t.SegoeuiBoldItalicFactors=t.SegoeuiBoldFactors=void 0,t.SegoeuiBoldFactors=[1.76738,1,1,.99297,.9824,1.04016,1.06497,1.03424,.97529,1.17647,1.23203,1.1085,1.1085,1.16939,1.2107,.9754,1.21408,.9754,1.59578,1.03424,1.03424,1.03424,1.03424,1.03424,1.03424,1.03424,1.03424,1.03424,1.03424,.81378,.81378,1.2107,1.2107,1.2107,.71703,.97847,.97363,.88776,.8641,1.02096,.79795,.85132,.914,1.06085,1.1406,.8007,.89858,.83693,1.14889,1.09398,.97489,.92094,.97489,.90399,.84041,.95923,1.00135,1,1.06467,.98243,.90996,.99361,1.1085,1.56942,1.1085,1.2107,.74627,.94282,.96752,1.01519,.86304,1.01359,.97278,1.15103,1.01359,.98561,1.02285,1.02285,1.00527,1.02285,1.0302,.99041,1.0008,1.01519,1.01359,1.02258,.79104,1.16862,.99041,.97454,1.02511,.99298,.96752,.95801,.94856,1.16579,.94856,1.2107,.9824,1.03424,1.03424,1,1.03424,1.16579,.8727,1.3871,1.18622,1.10818,1.04478,1.2107,1.18622,.75155,.94994,1.28826,1.21408,1.21408,.91056,1,.91572,.9754,.64663,1.18328,1.24866,1.04478,1.14169,1.15749,1.17389,.71703,.97363,.97363,.97363,.97363,.97363,.97363,.93506,.8641,.79795,.79795,.79795,.79795,1.1406,1.1406,1.1406,1.1406,1.02096,1.09398,.97426,.97426,.97426,.97426,.97426,1.2107,.97489,1.00135,1.00135,1.00135,1.00135,.90996,.92094,1.02798,.96752,.96752,.96752,.96752,.96752,.96752,.93136,.86304,.97278,.97278,.97278,.97278,1.02285,1.02285,1.02285,1.02285,.97122,.99041,1,1,1,1,1,1.28826,1.0008,.99041,.99041,.99041,.99041,.96752,1.01519,.96752,.97363,.96752,.97363,.96752,.97363,.96752,.8641,.86304,.8641,.86304,.8641,.86304,.8641,.86304,1.02096,1.03057,1.02096,1.03517,.79795,.97278,.79795,.97278,.79795,.97278,.79795,.97278,.79795,.97278,.914,1.01359,.914,1.01359,.914,1.01359,1,1,1.06085,.98561,1.06085,1.00879,1.1406,1.02285,1.1406,1.02285,1.1406,1.02285,1.1406,1.02285,1.1406,1.02285,.97138,1.08692,.8007,1.02285,1,1,1.00527,.83693,1.02285,1,1,.83693,.9455,.83693,.90418,.83693,1.13005,1.09398,.99041,1,1,1.09398,.99041,.96692,1.09251,.99041,.97489,1.0008,.97489,1.0008,.97489,1.0008,.93994,.97931,.90399,1.02258,1,1,.90399,1.02258,.84041,.79104,.84041,.79104,.84041,.79104,.84041,.79104,1,1,.95923,1.07034,.95923,1.16862,1.00135,.99041,1.00135,.99041,1.00135,.99041,1.00135,.99041,1.00135,.99041,1.00135,.99041,1.06467,1.02511,.90996,.96752,.90996,.99361,.95801,.99361,.95801,.99361,.95801,1.07733,1.03424,.97363,.96752,.93506,.93136,.97489,1.0008,1,1,.95923,1.16862,1.15103,1.15103,1.01173,1.03959,.75953,.81378,.79912,1.15103,1.21994,.95161,.87815,1.01149,.81525,.7676,.98167,1.01134,1.02546,.84097,1.03089,1.18102,.97363,.88776,.85134,.97826,.79795,.99361,1.06085,.97489,1.1406,.89858,1.0388,1.14889,1.09398,.86039,.97489,1.0595,.92094,.94793,.95923,.90996,.99346,.98243,1.02112,.95493,1.1406,.90996,1.03574,1.02597,1.0008,1.18102,1.06628,1.03574,1.0192,1.01932,1.00886,.97531,1.0106,1.0008,1.13189,1.18102,1.02277,.98683,1.0016,.99561,1.07237,1.0008,.90434,.99921,.93803,.8965,1.23085,1.06628,1.04983,.96268,1.0499,.98439,1.18102,1.06628,1.0008,1.06628,.98439,.79795,1,1,1,1,1,1,1,1,1,1,1,1,1.09466,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,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,1,1,.97278,1,1,1,1,1,1,1,1,1,1,1,1,1.02065,1,1,1,1,1,1,1.06467,1.02511,1.06467,1.02511,1.06467,1.02511,.90996,.96752,1,1.21408,.89903,1,1,.75155,1.04394,1.04394,1.04394,1.04394,.98633,.98633,.98633,.73047,.73047,1.20642,.91211,1.25635,1.222,1.02956,1.03372,1.03372,.96039,1.24633,1,1.12454,.93503,1.03424,1.19687,1.03424,1,1,1,.771,1,1,1.15749,1.15749,1.15749,1.10948,.86279,.94434,.86279,.94434,.86182,1,1,1.16897,1,.96085,.90137,1.2107,1.18416,1.13973,.69825,.9716,2.10339,1.29004,1.29004,1.21172,1.29004,1.29004,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,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1.42603,1,.99862,.99862,1,.87025,.87025,.87025,.87025,1.18874,1.42603,1,1.42603,1.42603,.99862,1,1,1,1,1,1.2886,1.04315,1.15296,1.34163,1,1,1,1.09193,1.09193,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1],t.SegoeuiBoldMetrics={lineHeight:1.33008,lineGap:0},t.SegoeuiBoldItalicFactors=[1.76738,1,1,.98946,1.03959,1.04016,1.02809,1.036,.97639,1.10953,1.23203,1.11144,1.11144,1.16939,1.21237,.9754,1.21261,.9754,1.59754,1.036,1.036,1.036,1.036,1.036,1.036,1.036,1.036,1.036,1.036,.81378,.81378,1.21237,1.21237,1.21237,.73541,.97847,.97363,.89723,.87897,1.0426,.79429,.85292,.91149,1.05815,1.1406,.79631,.90128,.83853,1.04396,1.10615,.97552,.94436,.97552,.88641,.80527,.96083,1.00135,1,1.06777,.9817,.91142,.99361,1.11144,1.57293,1.11144,1.21237,.74627,1.31818,1.06585,.97042,.83055,.97042,.93503,1.1261,.97042,.97922,1.14236,.94552,1.01054,1.14236,1.02471,.97922,.94165,.97042,.97042,1.0276,.78929,1.1261,.97922,.95874,1.02197,.98507,.96752,.97168,.95107,1.16579,.95107,1.21237,1.03959,1.036,1.036,1,1.036,1.16579,.87357,1.31818,1.18754,1.26781,1.05356,1.21237,1.18622,.79487,.94994,1.29004,1.24047,1.24047,1.31818,1,.91484,.9754,1.31818,1.1349,1.24866,1.05356,1.13934,1.15574,1.17389,.73541,.97363,.97363,.97363,.97363,.97363,.97363,.94385,.87897,.79429,.79429,.79429,.79429,1.1406,1.1406,1.1406,1.1406,1.0426,1.10615,.97552,.97552,.97552,.97552,.97552,1.21237,.97552,1.00135,1.00135,1.00135,1.00135,.91142,.94436,.98721,1.06585,1.06585,1.06585,1.06585,1.06585,1.06585,.96705,.83055,.93503,.93503,.93503,.93503,1.14236,1.14236,1.14236,1.14236,.93125,.97922,.94165,.94165,.94165,.94165,.94165,1.29004,.94165,.97922,.97922,.97922,.97922,.96752,.97042,.96752,.97363,1.06585,.97363,1.06585,.97363,1.06585,.87897,.83055,.87897,.83055,.87897,.83055,.87897,.83055,1.0426,1.0033,1.0426,.97042,.79429,.93503,.79429,.93503,.79429,.93503,.79429,.93503,.79429,.93503,.91149,.97042,.91149,.97042,.91149,.97042,1,1,1.05815,.97922,1.05815,.97922,1.1406,1.14236,1.1406,1.14236,1.1406,1.14236,1.1406,1.14236,1.1406,1.14236,.97441,1.04302,.79631,1.01582,1,1,1.01054,.83853,1.14236,1,1,.83853,1.09125,.83853,.90418,.83853,1.19508,1.10615,.97922,1,1,1.10615,.97922,1.01034,1.10466,.97922,.97552,.94165,.97552,.94165,.97552,.94165,.91602,.91981,.88641,1.0276,1,1,.88641,1.0276,.80527,.78929,.80527,.78929,.80527,.78929,.80527,.78929,1,1,.96083,1.05403,.95923,1.16862,1.00135,.97922,1.00135,.97922,1.00135,.97922,1.00135,.97922,1.00135,.97922,1.00135,.97922,1.06777,1.02197,.91142,.96752,.91142,.99361,.97168,.99361,.97168,.99361,.97168,1.23199,1.036,.97363,1.06585,.94385,.96705,.97552,.94165,1,1,.96083,1.1261,1.31818,1.31818,1.31818,1.31818,1.31818,1.31818,1.31818,1.31818,1.31818,.95161,1.27126,1.00811,.83284,.77702,.99137,.95253,1.0347,.86142,1.07205,1.14236,.97363,.89723,.86869,1.09818,.79429,.99361,1.05815,.97552,1.1406,.90128,1.06662,1.04396,1.10615,.84918,.97552,1.04694,.94436,.98015,.96083,.91142,1.00356,.9817,1.01945,.98999,1.1406,.91142,1.04961,.9898,1.00639,1.14236,1.07514,1.04961,.99607,1.02897,1.008,.9898,.95134,1.00639,1.11121,1.14236,1.00518,.97981,1.02186,1,1.08578,.94165,.99314,.98387,.93028,.93377,1.35125,1.07514,1.10687,.93491,1.04232,1.00351,1.14236,1.07514,.94165,1.07514,1.00351,.79429,1,1,1,1,1,1,1,1,1,1,1,1,1.09097,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,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,1,1,.93503,1,1,1,1,1,1,1,1,1,1,1,1,.96609,1,1,1,1,1,1,1.06777,1.02197,1.06777,1.02197,1.06777,1.02197,.91142,.96752,1,1.21261,.89903,1,1,.75155,1.04745,1.04745,1.04745,1.04394,.98633,.98633,.98633,.72959,.72959,1.20502,.91406,1.26514,1.222,1.02956,1.03372,1.03372,.96039,1.24633,1,1.09125,.93327,1.03336,1.16541,1.036,1,1,1,.771,1,1,1.15574,1.15574,1.15574,1.15574,.86364,.94434,.86279,.94434,.86224,1,1,1.16798,1,.96085,.90068,1.21237,1.18416,1.13904,.69825,.9716,2.10339,1.29004,1.29004,1.21339,1.29004,1.29004,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,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1.42603,1,.99862,.99862,1,.87025,.87025,.87025,.87025,1.18775,1.42603,1,1.42603,1.42603,.99862,1,1,1,1,1,1.2886,1.04315,1.15296,1.34163,1,1,1,1.13269,1.13269,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1],t.SegoeuiBoldItalicMetrics={lineHeight:1.33008,lineGap:0},t.SegoeuiItalicFactors=[1.76738,1,1,.98946,1.14763,1.05365,1.06234,.96927,.92586,1.15373,1.18414,.91349,.91349,1.07403,1.17308,.78383,1.20088,.78383,1.42531,.96927,.96927,.96927,.96927,.96927,.96927,.96927,.96927,.96927,.96927,.78383,.78383,1.17308,1.17308,1.17308,.77349,.94565,.94729,.85944,.88506,.9858,.74817,.80016,.88449,.98039,.95782,.69238,.89898,.83231,.98183,1.03989,.96924,.86237,.96924,.80595,.74524,.86091,.95402,.94143,.98448,.8858,.83089,.93285,1.0949,1.39016,1.0949,1.45994,.74627,1.04839,.97454,.97454,.87207,.97454,.87533,1.06151,.97454,1.00176,1.16484,1.08132,.98047,1.16484,1.02989,1.01054,.96225,.97454,.97454,1.06598,.79004,1.16344,1.00351,.94629,.9973,.91016,.96777,.9043,.91082,.92481,.91082,1.17308,.95748,.96927,.96927,1,.96927,.92481,.80597,1.04839,1.23393,1.1781,.9245,1.17308,1.20808,.63218,.94261,1.24822,1.09971,1.09971,1.04839,1,.85273,.78032,1.04839,1.09971,1.22326,.9245,1.09836,1.13525,1.15222,.70424,.94729,.94729,.94729,.94729,.94729,.94729,.85498,.88506,.74817,.74817,.74817,.74817,.95782,.95782,.95782,.95782,.9858,1.03989,.96924,.96924,.96924,.96924,.96924,1.17308,.96924,.95402,.95402,.95402,.95402,.83089,.86237,.88409,.97454,.97454,.97454,.97454,.97454,.97454,.92916,.87207,.87533,.87533,.87533,.87533,.93146,.93146,.93146,.93146,.93854,1.01054,.96225,.96225,.96225,.96225,.96225,1.24822,.8761,1.00351,1.00351,1.00351,1.00351,.96777,.97454,.96777,.94729,.97454,.94729,.97454,.94729,.97454,.88506,.87207,.88506,.87207,.88506,.87207,.88506,.87207,.9858,.95391,.9858,.97454,.74817,.87533,.74817,.87533,.74817,.87533,.74817,.87533,.74817,.87533,.88449,.97454,.88449,.97454,.88449,.97454,1,1,.98039,1.00176,.98039,1.00176,.95782,.93146,.95782,.93146,.95782,.93146,.95782,1.16484,.95782,.93146,.84421,1.12761,.69238,1.08132,1,1,.98047,.83231,1.16484,1,1,.84723,1.04861,.84723,.78755,.83231,1.23736,1.03989,1.01054,1,1,1.03989,1.01054,.9857,1.03849,1.01054,.96924,.96225,.96924,.96225,.96924,.96225,.92383,.90171,.80595,1.06598,1,1,.80595,1.06598,.74524,.79004,.74524,.79004,.74524,.79004,.74524,.79004,1,1,.86091,1.02759,.85771,1.16344,.95402,1.00351,.95402,1.00351,.95402,1.00351,.95402,1.00351,.95402,1.00351,.95402,1.00351,.98448,.9973,.83089,.96777,.83089,.93285,.9043,.93285,.9043,.93285,.9043,1.31868,.96927,.94729,.97454,.85498,.92916,.96924,.8761,1,1,.86091,1.16344,1.04839,1.04839,1.04839,1.04839,1.04839,1.04839,1.04839,1.04839,1.04839,.81965,.81965,.94729,.78032,.71022,.90883,.84171,.99877,.77596,1.05734,1.2,.94729,.85944,.82791,.9607,.74817,.93285,.98039,.96924,.95782,.89898,.98316,.98183,1.03989,.78614,.96924,.97642,.86237,.86075,.86091,.83089,.90082,.8858,.97296,1.01284,.95782,.83089,1.0976,1.04,1.03342,1.2,1.0675,1.0976,.98205,1.03809,1.05097,1.04,.95364,1.03342,1.05401,1.2,1.02148,1.0119,1.04724,1.0127,1.02732,.96225,.8965,.97783,.93574,.94818,1.30679,1.0675,1.11826,.99821,1.0557,1.0326,1.2,1.0675,.96225,1.0675,1.0326,.74817,1,1,1,1,1,1,1,1,1,1,1,1,1.03754,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,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,1,1,.87533,1,1,1,1,1,1,1,1,1,1,1,1,.98705,1,1,1,1,1,1,.98448,.9973,.98448,.9973,.98448,.9973,.83089,.96777,1,1.20088,.89903,1,1,.75155,.94945,.94945,.94945,.94945,1.12317,1.12317,1.12317,.67603,.67603,1.15621,.73584,1.21191,1.22135,1.06483,.94868,.94868,.95996,1.24633,1,1.07497,.87709,.96927,1.01473,.96927,1,1,1,.77295,1,1,1.09836,1.09836,1.09836,1.01522,.86321,.94434,.8649,.94434,.86182,1,1,1.083,1,.91578,.86438,1.17308,1.18416,1.14589,.69825,.97622,1.96791,1.24822,1.24822,1.17308,1.24822,1.24822,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,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1.42603,1,.99862,.99862,1,.87025,.87025,.87025,.87025,1.17984,1.42603,1,1.42603,1.42603,.99862,1,1,1,1,1,1.2886,1.04315,1.15296,1.34163,1,1,1,1.10742,1.10742,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1],t.SegoeuiItalicMetrics={lineHeight:1.33008,lineGap:0},t.SegoeuiRegularFactors=[1.76738,1,1,.98594,1.02285,1.10454,1.06234,.96927,.92037,1.19985,1.2046,.90616,.90616,1.07152,1.1714,.78032,1.20088,.78032,1.40246,.96927,.96927,.96927,.96927,.96927,.96927,.96927,.96927,.96927,.96927,.78032,.78032,1.1714,1.1714,1.1714,.80597,.94084,.96706,.85944,.85734,.97093,.75842,.79936,.88198,.9831,.95782,.71387,.86969,.84636,1.07796,1.03584,.96924,.83968,.96924,.82826,.79649,.85771,.95132,.93119,.98965,.88433,.8287,.93365,1.08612,1.3638,1.08612,1.45786,.74627,.80499,.91484,1.05707,.92383,1.05882,.9403,1.12654,1.05882,1.01756,1.09011,1.09011,.99414,1.09011,1.034,1.01756,1.05356,1.05707,1.05882,1.04399,.84863,1.21968,1.01756,.95801,1.00068,.91797,.96777,.9043,.90351,.92105,.90351,1.1714,.85337,.96927,.96927,.99912,.96927,.92105,.80597,1.2434,1.20808,1.05937,.90957,1.1714,1.20808,.75155,.94261,1.24644,1.09971,1.09971,.84751,1,.85273,.78032,.61584,1.05425,1.17914,.90957,1.08665,1.11593,1.14169,.73381,.96706,.96706,.96706,.96706,.96706,.96706,.86035,.85734,.75842,.75842,.75842,.75842,.95782,.95782,.95782,.95782,.97093,1.03584,.96924,.96924,.96924,.96924,.96924,1.1714,.96924,.95132,.95132,.95132,.95132,.8287,.83968,.89049,.91484,.91484,.91484,.91484,.91484,.91484,.93575,.92383,.9403,.9403,.9403,.9403,.8717,.8717,.8717,.8717,1.00527,1.01756,1.05356,1.05356,1.05356,1.05356,1.05356,1.24644,.95923,1.01756,1.01756,1.01756,1.01756,.96777,1.05707,.96777,.96706,.91484,.96706,.91484,.96706,.91484,.85734,.92383,.85734,.92383,.85734,.92383,.85734,.92383,.97093,1.0969,.97093,1.05882,.75842,.9403,.75842,.9403,.75842,.9403,.75842,.9403,.75842,.9403,.88198,1.05882,.88198,1.05882,.88198,1.05882,1,1,.9831,1.01756,.9831,1.01756,.95782,.8717,.95782,.8717,.95782,.8717,.95782,1.09011,.95782,.8717,.84784,1.11551,.71387,1.09011,1,1,.99414,.84636,1.09011,1,1,.84636,1.0536,.84636,.94298,.84636,1.23297,1.03584,1.01756,1,1,1.03584,1.01756,1.00323,1.03444,1.01756,.96924,1.05356,.96924,1.05356,.96924,1.05356,.93066,.98293,.82826,1.04399,1,1,.82826,1.04399,.79649,.84863,.79649,.84863,.79649,.84863,.79649,.84863,1,1,.85771,1.17318,.85771,1.21968,.95132,1.01756,.95132,1.01756,.95132,1.01756,.95132,1.01756,.95132,1.01756,.95132,1.01756,.98965,1.00068,.8287,.96777,.8287,.93365,.9043,.93365,.9043,.93365,.9043,1.08571,.96927,.96706,.91484,.86035,.93575,.96924,.95923,1,1,.85771,1.21968,1.11437,1.11437,.93109,.91202,.60411,.84164,.55572,1.01173,.97361,.81818,.81818,.96635,.78032,.72727,.92366,.98601,1.03405,.77968,1.09799,1.2,.96706,.85944,.85638,.96491,.75842,.93365,.9831,.96924,.95782,.86969,.94152,1.07796,1.03584,.78437,.96924,.98715,.83968,.83491,.85771,.8287,.94492,.88433,.9287,1.0098,.95782,.8287,1.0625,.98248,1.03424,1.2,1.01071,1.0625,.95246,1.03809,1.04912,.98248,1.00221,1.03424,1.05443,1.2,1.04785,.99609,1.00169,1.05176,.99346,1.05356,.9087,1.03004,.95542,.93117,1.23362,1.01071,1.07831,1.02512,1.05205,1.03502,1.2,1.01071,1.05356,1.01071,1.03502,.75842,1,1,1,1,1,1,1,1,1,1,1,1,1.03719,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,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,1,1,.9403,1,1,1,1,1,1,1,1,1,1,1,1,1.04021,1,1,1,1,1,1,.98965,1.00068,.98965,1.00068,.98965,1.00068,.8287,.96777,1,1.20088,.89903,1,1,.75155,1.03077,1.03077,1.03077,1.03077,1.13196,1.13196,1.13196,.67428,.67428,1.16039,.73291,1.20996,1.22135,1.06483,.94868,.94868,.95996,1.24633,1,1.07497,.87796,.96927,1.01518,.96927,1,1,1,.77295,1,1,1.10539,1.10539,1.11358,1.06967,.86279,.94434,.86279,.94434,.86182,1,1,1.083,1,.91578,.86507,1.1714,1.18416,1.14589,.69825,.97622,1.9697,1.24822,1.24822,1.17238,1.24822,1.24822,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,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1.42603,1,.99862,.99862,1,.87025,.87025,.87025,.87025,1.18083,1.42603,1,1.42603,1.42603,.99862,1,1,1,1,1,1.2886,1.04315,1.15296,1.34163,1,1,1,1.10938,1.10938,1,1,1,1.05425,1.09971,1.09971,1.09971,1,1,1,1,1,1,1,1,1,1,1],t.SegoeuiRegularMetrics={lineHeight:1.33008,lineGap:0}},(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.PostScriptEvaluator=t.PostScriptCompiler=t.PDFFunctionFactory=void 0,t.isPDFFunction=function(e){let t;if("object"!==typeof e)return!1;if(e instanceof r.Dict)t=e;else{if(!(e instanceof s.BaseStream))return!1;t=e.dict}return t.has("FunctionType")};var r=n(3),i=n(2),o=n(56),s=n(5),a=n(57);function l(e){if(!Array.isArray(e))return null;const t=e.length;for(let n=0;n<t;n++)if("number"!==typeof e[n]){const n=new Array(t);for(let r=0;r<t;r++)n[r]=+e[r];return n}return e}t.PDFFunctionFactory=class{constructor(e){let{xref:t,isEvalSupported:n=!0}=e;this.xref=t,this.isEvalSupported=!1!==n}create(e){const t=this.getCached(e);if(t)return t;const n=c.parse({xref:this.xref,isEvalSupported:this.isEvalSupported,fn:e instanceof r.Ref?this.xref.fetch(e):e});return this._cache(e,n),n}createFromArray(e){const t=this.getCached(e);if(t)return t;const n=c.parseArray({xref:this.xref,isEvalSupported:this.isEvalSupported,fnObj:e instanceof r.Ref?this.xref.fetch(e):e});return this._cache(e,n),n}getCached(e){let t;if(e instanceof r.Ref?t=e:e instanceof r.Dict?t=e.objId:e instanceof s.BaseStream&&(t=e.dict&&e.dict.objId),t){const e=this._localFunctionCache.getByRef(t);if(e)return e}return null}_cache(e,t){if(!t)throw new Error('PDFFunctionFactory._cache - expected "parsedFunction" argument.');let n;e instanceof r.Ref?n=e:e instanceof r.Dict?n=e.objId:e instanceof s.BaseStream&&(n=e.dict&&e.dict.objId),n&&this._localFunctionCache.set(null,n,t)}get _localFunctionCache(){return(0,i.shadow)(this,"_localFunctionCache",new a.LocalFunctionCache)}};class c{static getSampleArray(e,t,n,r){let i,o,s=1;for(i=0,o=e.length;i<o;i++)s*=e[i];s*=t;const a=new Array(s);let l=0,c=0;const u=1/(2**n-1),d=r.getBytes((s*n+7)/8);let h=0;for(i=0;i<s;i++){for(;l<n;)c<<=8,c|=d[h++],l+=8;l-=n,a[i]=(c>>l)*u,c&=(1<<l)-1}return a}static parse(e){let{xref:t,isEvalSupported:n,fn:r}=e;const o=r.dict||r;switch(o.get("FunctionType")){case 0:return this.constructSampled({xref:t,isEvalSupported:n,fn:r,dict:o});case 1:break;case 2:return this.constructInterpolated({xref:t,isEvalSupported:n,dict:o});case 3:return this.constructStiched({xref:t,isEvalSupported:n,dict:o});case 4:return this.constructPostScript({xref:t,isEvalSupported:n,fn:r,dict:o})}throw new i.FormatError("Unknown type of function")}static parseArray(e){let{xref:t,isEvalSupported:n,fnObj:r}=e;if(!Array.isArray(r))return this.parse({xref:t,isEvalSupported:n,fn:r});const i=[];for(const o of r)i.push(this.parse({xref:t,isEvalSupported:n,fn:t.fetchIfRef(o)}));return function(e,t,n,r){for(let o=0,s=i.length;o<s;o++)i[o](e,t,n,r+o)}}static constructSampled(e){let{xref:t,isEvalSupported:n,fn:r,dict:o}=e;function s(e){const t=e.length,n=[];let r=0;for(let i=0;i<t;i+=2)n[r++]=[e[i],e[i+1]];return n}function a(e,t,n,r,i){return r+(i-r)/(n-t)*(e-t)}let c=l(o.getArray("Domain")),u=l(o.getArray("Range"));if(!c||!u)throw new i.FormatError("No domain or range");const d=c.length/2,h=u.length/2;c=s(c),u=s(u);const p=l(o.getArray("Size")),f=o.get("BitsPerSample"),g=o.get("Order")||1;1!==g&&(0,i.info)("No support for cubic spline interpolation: "+g);let m=l(o.getArray("Encode"));if(m)m=s(m);else{m=[];for(let e=0;e<d;++e)m.push([0,p[e]-1])}let y=l(o.getArray("Decode"));y=y?s(y):u;const v=this.getSampleArray(p,h,f,r);return function(e,t,n,r){const i=1<<d,o=new Float64Array(i),s=new Uint32Array(i);let l,f;for(f=0;f<i;f++)o[f]=1;let g=h,_=1;for(l=0;l<d;++l){const n=c[l][0],r=c[l][1];let u=a(Math.min(Math.max(e[t+l],n),r),n,r,m[l][0],m[l][1]);const d=p[l];u=Math.min(Math.max(u,0),d-1);const h=u<d-1?Math.floor(u):u-1,y=h+1-u,v=u-h,b=h*g,x=b+g;for(f=0;f<i;f++)f&_?(o[f]*=v,s[f]+=x):(o[f]*=y,s[f]+=b);g*=d,_<<=1}for(f=0;f<h;++f){let e=0;for(l=0;l<i;l++)e+=v[s[l]+f]*o[l];e=a(e,0,1,y[f][0],y[f][1]),n[r+f]=Math.min(Math.max(e,u[f][0]),u[f][1])}}}static constructInterpolated(e){let{xref:t,isEvalSupported:n,dict:r}=e;const i=l(r.getArray("C0"))||[0],o=l(r.getArray("C1"))||[1],s=r.get("N"),a=[];for(let l=0,u=i.length;l<u;++l)a.push(o[l]-i[l]);const c=a.length;return function(e,t,n,r){const o=1===s?e[t]:e[t]**s;for(let s=0;s<c;++s)n[r+s]=i[s]+o*a[s]}}static constructStiched(e){let{xref:t,isEvalSupported:n,dict:r}=e;const o=l(r.getArray("Domain"));if(!o)throw new i.FormatError("No domain");if(1!==o.length/2)throw new i.FormatError("Bad domain for stiched function");const s=[];for(const i of r.get("Functions"))s.push(this.parse({xref:t,isEvalSupported:n,fn:t.fetchIfRef(i)}));const a=l(r.getArray("Bounds")),c=l(r.getArray("Encode")),u=new Float32Array(1);return function(e,t,n,r){const i=function(e,t,n){return e>n?e=n:e<t&&(e=t),e}(e[t],o[0],o[1]),l=a.length;let d;for(d=0;d<l&&!(i<a[d]);++d);let h=o[0];d>0&&(h=a[d-1]);let p=o[1];d<a.length&&(p=a[d]);const f=c[2*d],g=c[2*d+1];u[0]=h===p?f:f+(i-h)*(g-f)/(p-h),s[d](u,0,n,r)}}static constructPostScript(e){let{xref:t,isEvalSupported:n,fn:r,dict:s}=e;const a=l(s.getArray("Domain")),c=l(s.getArray("Range"));if(!a)throw new i.FormatError("No domain.");if(!c)throw new i.FormatError("No range.");const u=new o.PostScriptLexer(r),h=new o.PostScriptParser(u).parse();if(n&&i.FeatureTest.isEvalSupported){const e=(new E).compile(h,a,c);if(e)return new Function("src","srcOffset","dest","destOffset",e)}(0,i.info)("Unable to compile PS function");const p=c.length>>1,f=a.length>>1,g=new d(h),m=Object.create(null);let y=8192;const v=new Float32Array(f);return function(e,t,n,r){let i,o,s="";const a=v;for(i=0;i<f;i++)o=e[t+i],a[i]=o,s+=o+"_";const l=m[s];if(void 0!==l)return void n.set(l,r);const u=new Float32Array(p),d=g.execute(a),h=d.length-p;for(i=0;i<p;i++){o=d[h+i];let e=c[2*i];o<e?o=e:(e=c[2*i+1],o>e&&(o=e)),u[i]=o}y>0&&(y--,m[s]=u),n.set(u,r)}}}class u{static get MAX_STACK_SIZE(){return(0,i.shadow)(this,"MAX_STACK_SIZE",100)}constructor(e){this.stack=e?Array.from(e):[]}push(e){if(this.stack.length>=u.MAX_STACK_SIZE)throw new Error("PostScript function stack overflow.");this.stack.push(e)}pop(){if(this.stack.length<=0)throw new Error("PostScript function stack underflow.");return this.stack.pop()}copy(e){if(this.stack.length+e>=u.MAX_STACK_SIZE)throw new Error("PostScript function stack overflow.");const t=this.stack;for(let n=t.length-e,r=e-1;r>=0;r--,n++)t.push(t[n])}index(e){this.push(this.stack[this.stack.length-e-1])}roll(e,t){const n=this.stack,r=n.length-e,i=n.length-1,o=r+(t-Math.floor(t/e)*e);for(let s=r,a=i;s<a;s++,a--){const e=n[s];n[s]=n[a],n[a]=e}for(let s=r,a=o-1;s<a;s++,a--){const e=n[s];n[s]=n[a],n[a]=e}for(let s=o,a=i;s<a;s++,a--){const e=n[s];n[s]=n[a],n[a]=e}}}class d{constructor(e){this.operators=e}execute(e){const t=new u(e);let n=0;const r=this.operators,o=r.length;let s,a,l;for(;n<o;)if(s=r[n++],"number"!==typeof s)switch(s){case"jz":l=t.pop(),a=t.pop(),a||(n=l);break;case"j":a=t.pop(),n=a;break;case"abs":a=t.pop(),t.push(Math.abs(a));break;case"add":l=t.pop(),a=t.pop(),t.push(a+l);break;case"and":l=t.pop(),a=t.pop(),"boolean"===typeof a&&"boolean"===typeof l?t.push(a&&l):t.push(a&l);break;case"atan":a=t.pop(),t.push(Math.atan(a));break;case"bitshift":l=t.pop(),a=t.pop(),a>0?t.push(a<<l):t.push(a>>l);break;case"ceiling":a=t.pop(),t.push(Math.ceil(a));break;case"copy":a=t.pop(),t.copy(a);break;case"cos":a=t.pop(),t.push(Math.cos(a));break;case"cvi":a=0|t.pop(),t.push(a);break;case"cvr":break;case"div":l=t.pop(),a=t.pop(),t.push(a/l);break;case"dup":t.copy(1);break;case"eq":l=t.pop(),a=t.pop(),t.push(a===l);break;case"exch":t.roll(2,1);break;case"exp":l=t.pop(),a=t.pop(),t.push(a**l);break;case"false":t.push(!1);break;case"floor":a=t.pop(),t.push(Math.floor(a));break;case"ge":l=t.pop(),a=t.pop(),t.push(a>=l);break;case"gt":l=t.pop(),a=t.pop(),t.push(a>l);break;case"idiv":l=t.pop(),a=t.pop(),t.push(a/l|0);break;case"index":a=t.pop(),t.index(a);break;case"le":l=t.pop(),a=t.pop(),t.push(a<=l);break;case"ln":a=t.pop(),t.push(Math.log(a));break;case"log":a=t.pop(),t.push(Math.log(a)/Math.LN10);break;case"lt":l=t.pop(),a=t.pop(),t.push(a<l);break;case"mod":l=t.pop(),a=t.pop(),t.push(a%l);break;case"mul":l=t.pop(),a=t.pop(),t.push(a*l);break;case"ne":l=t.pop(),a=t.pop(),t.push(a!==l);break;case"neg":a=t.pop(),t.push(-a);break;case"not":a=t.pop(),"boolean"===typeof a?t.push(!a):t.push(~a);break;case"or":l=t.pop(),a=t.pop(),"boolean"===typeof a&&"boolean"===typeof l?t.push(a||l):t.push(a|l);break;case"pop":t.pop();break;case"roll":l=t.pop(),a=t.pop(),t.roll(a,l);break;case"round":a=t.pop(),t.push(Math.round(a));break;case"sin":a=t.pop(),t.push(Math.sin(a));break;case"sqrt":a=t.pop(),t.push(Math.sqrt(a));break;case"sub":l=t.pop(),a=t.pop(),t.push(a-l);break;case"true":t.push(!0);break;case"truncate":a=t.pop(),a=a<0?Math.ceil(a):Math.floor(a),t.push(a);break;case"xor":l=t.pop(),a=t.pop(),"boolean"===typeof a&&"boolean"===typeof l?t.push(a!==l):t.push(a^l);break;default:throw new i.FormatError("Unknown operator ".concat(s))}else t.push(s);return t.stack}}t.PostScriptEvaluator=d;class h{constructor(e){this.type=e}visit(e){(0,i.unreachable)("abstract method")}}class p extends h{constructor(e,t,n){super("args"),this.index=e,this.min=t,this.max=n}visit(e){e.visitArgument(this)}}class f extends h{constructor(e){super("literal"),this.number=e,this.min=e,this.max=e}visit(e){e.visitLiteral(this)}}class g extends h{constructor(e,t,n,r,i){super("binary"),this.op=e,this.arg1=t,this.arg2=n,this.min=r,this.max=i}visit(e){e.visitBinaryOperation(this)}}class m extends h{constructor(e,t){super("max"),this.arg=e,this.min=e.min,this.max=t}visit(e){e.visitMin(this)}}class y extends h{constructor(e,t,n){super("var"),this.index=e,this.min=t,this.max=n}visit(e){e.visitVariable(this)}}class v extends h{constructor(e,t){super("definition"),this.variable=e,this.arg=t}visit(e){e.visitVariableDefinition(this)}}class _{constructor(){this.parts=[]}visitArgument(e){this.parts.push("Math.max(",e.min,", Math.min(",e.max,", src[srcOffset + ",e.index,"]))")}visitVariable(e){this.parts.push("v",e.index)}visitLiteral(e){this.parts.push(e.number)}visitBinaryOperation(e){this.parts.push("("),e.arg1.visit(this),this.parts.push(" ",e.op," "),e.arg2.visit(this),this.parts.push(")")}visitVariableDefinition(e){this.parts.push("var "),e.variable.visit(this),this.parts.push(" = "),e.arg.visit(this),this.parts.push(";")}visitMin(e){this.parts.push("Math.min("),e.arg.visit(this),this.parts.push(", ",e.max,")")}toString(){return this.parts.join("")}}function b(e,t){return"literal"===t.type&&0===t.number?e:"literal"===e.type&&0===e.number?t:"literal"===t.type&&"literal"===e.type?new f(e.number+t.number):new g("+",e,t,e.min+t.min,e.max+t.max)}function x(e,t){if("literal"===t.type){if(0===t.number)return new f(0);if(1===t.number)return e;if("literal"===e.type)return new f(e.number*t.number)}if("literal"===e.type){if(0===e.number)return new f(0);if(1===e.number)return t}const n=Math.min(e.min*t.min,e.min*t.max,e.max*t.min,e.max*t.max),r=Math.max(e.min*t.min,e.min*t.max,e.max*t.min,e.max*t.max);return new g("*",e,t,n,r)}function S(e,t){if("literal"===t.type){if(0===t.number)return e;if("literal"===e.type)return new f(e.number-t.number)}return"binary"===t.type&&"-"===t.op&&"literal"===e.type&&1===e.number&&"literal"===t.arg1.type&&1===t.arg1.number?t.arg2:new g("-",e,t,e.min-t.max,e.max-t.min)}function w(e,t){return e.min>=t?new f(t):e.max<=t?e:new m(e,t)}class E{compile(e,t,n){const r=[],i=[],o=t.length>>1,s=n.length>>1;let a,l,c,u,d,h,g,m,E=0;for(let f=0;f<o;f++)r.push(new p(f,t[2*f],t[2*f+1]));for(let p=0,_=e.length;p<_;p++)if(m=e[p],"number"!==typeof m)switch(m){case"add":if(r.length<2)return null;u=r.pop(),c=r.pop(),r.push(b(c,u));break;case"cvr":if(r.length<1)return null;break;case"mul":if(r.length<2)return null;u=r.pop(),c=r.pop(),r.push(x(c,u));break;case"sub":if(r.length<2)return null;u=r.pop(),c=r.pop(),r.push(S(c,u));break;case"exch":if(r.length<2)return null;d=r.pop(),h=r.pop(),r.push(d,h);break;case"pop":if(r.length<1)return null;r.pop();break;case"index":if(r.length<1)return null;if(c=r.pop(),"literal"!==c.type)return null;if(a=c.number,a<0||!Number.isInteger(a)||r.length<a)return null;if(d=r[r.length-a-1],"literal"===d.type||"var"===d.type){r.push(d);break}g=new y(E++,d.min,d.max),r[r.length-a-1]=g,r.push(g),i.push(new v(g,d));break;case"dup":if(r.length<1)return null;if("number"===typeof e[p+1]&&"gt"===e[p+2]&&e[p+3]===p+7&&"jz"===e[p+4]&&"pop"===e[p+5]&&e[p+6]===e[p+1]){c=r.pop(),r.push(w(c,e[p+1])),p+=6;break}if(d=r.at(-1),"literal"===d.type||"var"===d.type){r.push(d);break}g=new y(E++,d.min,d.max),r[r.length-1]=g,r.push(g),i.push(new v(g,d));break;case"roll":if(r.length<2)return null;if(u=r.pop(),c=r.pop(),"literal"!==u.type||"literal"!==c.type)return null;if(l=u.number,a=c.number,a<=0||!Number.isInteger(a)||!Number.isInteger(l)||r.length<a)return null;if(l=(l%a+a)%a,0===l)break;r.push(...r.splice(r.length-a,a-l));break;default:return null}else r.push(new f(m));if(r.length!==s)return null;const P=[];for(const p of i){const e=new _;p.visit(e),P.push(e.toString())}for(let p=0,f=r.length;p<f;p++){const e=r[p],t=new _;e.visit(t);const i=n[2*p],o=n[2*p+1],s=[t.toString()];i>e.min&&(s.unshift("Math.max(",i,", "),s.push(")")),o<e.max&&(s.unshift("Math.min(",o,", "),s.push(")")),s.unshift("dest[destOffset + ",p,"] = "),s.push(";"),P.push(s.join(""))}return P.join("\n")}}t.PostScriptCompiler=E},(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.PostScriptParser=t.PostScriptLexer=void 0;var r=n(2),i=n(3),o=n(4);t.PostScriptParser=class{constructor(e){this.lexer=e,this.operators=[],this.token=null,this.prev=null}nextToken(){this.prev=this.token,this.token=this.lexer.getToken()}accept(e){return this.token.type===e&&(this.nextToken(),!0)}expect(e){if(this.accept(e))return!0;throw new r.FormatError("Unexpected symbol: found ".concat(this.token.type," expected ").concat(e,"."))}parse(){return this.nextToken(),this.expect(s.LBRACE),this.parseBlock(),this.expect(s.RBRACE),this.operators}parseBlock(){for(;;)if(this.accept(s.NUMBER))this.operators.push(this.prev.value);else if(this.accept(s.OPERATOR))this.operators.push(this.prev.value);else{if(!this.accept(s.LBRACE))return;this.parseCondition()}}parseCondition(){const e=this.operators.length;if(this.operators.push(null,null),this.parseBlock(),this.expect(s.RBRACE),this.accept(s.IF))this.operators[e]=this.operators.length,this.operators[e+1]="jz";else{if(!this.accept(s.LBRACE))throw new r.FormatError("PS Function: error parsing conditional.");{const t=this.operators.length;this.operators.push(null,null);const n=this.operators.length;this.parseBlock(),this.expect(s.RBRACE),this.expect(s.IFELSE),this.operators[t]=this.operators.length,this.operators[t+1]="j",this.operators[e]=n,this.operators[e+1]="jz"}}}};const s={LBRACE:0,RBRACE:1,NUMBER:2,OPERATOR:3,IF:4,IFELSE:5};class a{static get opCache(){return(0,r.shadow)(this,"opCache",Object.create(null))}constructor(e,t){this.type=e,this.value=t}static getOperator(e){const t=a.opCache[e];return t||(a.opCache[e]=new a(s.OPERATOR,e))}static get LBRACE(){return(0,r.shadow)(this,"LBRACE",new a(s.LBRACE,"{"))}static get RBRACE(){return(0,r.shadow)(this,"RBRACE",new a(s.RBRACE,"}"))}static get IF(){return(0,r.shadow)(this,"IF",new a(s.IF,"IF"))}static get IFELSE(){return(0,r.shadow)(this,"IFELSE",new a(s.IFELSE,"IFELSE"))}}t.PostScriptLexer=class{constructor(e){this.stream=e,this.nextChar(),this.strBuf=[]}nextChar(){return this.currentChar=this.stream.getByte()}getToken(){let e=!1,t=this.currentChar;for(;;){if(t<0)return i.EOF;if(e)10!==t&&13!==t||(e=!1);else if(37===t)e=!0;else if(!(0,o.isWhiteSpace)(t))break;t=this.nextChar()}switch(0|t){case 48:case 49:case 50:case 51:case 52:case 53:case 54:case 55:case 56:case 57:case 43:case 45:case 46:return new a(s.NUMBER,this.getNumber());case 123:return this.nextChar(),a.LBRACE;case 125:return this.nextChar(),a.RBRACE}const n=this.strBuf;for(n.length=0,n[0]=String.fromCharCode(t);(t=this.nextChar())>=0&&(t>=65&&t<=90||t>=97&&t<=122);)n.push(String.fromCharCode(t));const r=n.join("");switch(r.toLowerCase()){case"if":return a.IF;case"ifelse":return a.IFELSE;default:return a.getOperator(r)}}getNumber(){let e=this.currentChar;const t=this.strBuf;for(t.length=0,t[0]=String.fromCharCode(e);(e=this.nextChar())>=0&&(e>=48&&e<=57||45===e||46===e);)t.push(String.fromCharCode(e));const n=parseFloat(t.join(""));if(isNaN(n))throw new r.FormatError("Invalid floating point number: ".concat(n));return n}}},(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.LocalTilingPatternCache=t.LocalImageCache=t.LocalGStateCache=t.LocalFunctionCache=t.LocalColorSpaceCache=t.GlobalImageCache=void 0;var r=n(2),i=n(3);class o{constructor(e){this.constructor===o&&(0,r.unreachable)("Cannot initialize BaseLocalCache."),this._onlyRefs=!0===(e&&e.onlyRefs),this._onlyRefs||(this._nameRefMap=new Map,this._imageMap=new Map),this._imageCache=new i.RefSetCache}getByName(e){this._onlyRefs&&(0,r.unreachable)("Should not call `getByName` method.");const t=this._nameRefMap.get(e);return t?this.getByRef(t):this._imageMap.get(e)||null}getByRef(e){return this._imageCache.get(e)||null}set(e,t,n){(0,r.unreachable)("Abstract method `set` called.")}}t.LocalImageCache=class extends o{set(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=arguments.length>2?arguments[2]:void 0;if("string"!==typeof e)throw new Error('LocalImageCache.set - expected "name" argument.');if(t){if(this._imageCache.has(t))return;return this._nameRefMap.set(e,t),void this._imageCache.put(t,n)}this._imageMap.has(e)||this._imageMap.set(e,n)}},t.LocalColorSpaceCache=class extends o{set(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=arguments.length>2?arguments[2]:void 0;if("string"!==typeof e&&!t)throw new Error('LocalColorSpaceCache.set - expected "name" and/or "ref" argument.');if(t){if(this._imageCache.has(t))return;return null!==e&&this._nameRefMap.set(e,t),void this._imageCache.put(t,n)}this._imageMap.has(e)||this._imageMap.set(e,n)}},t.LocalFunctionCache=class extends o{constructor(e){super({onlyRefs:!0})}set(){let e=arguments.length>1?arguments[1]:void 0,t=arguments.length>2?arguments[2]:void 0;if(!e)throw new Error('LocalFunctionCache.set - expected "ref" argument.');this._imageCache.has(e)||this._imageCache.put(e,t)}},t.LocalGStateCache=class extends o{set(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=arguments.length>2?arguments[2]:void 0;if("string"!==typeof e)throw new Error('LocalGStateCache.set - expected "name" argument.');if(t){if(this._imageCache.has(t))return;return this._nameRefMap.set(e,t),void this._imageCache.put(t,n)}this._imageMap.has(e)||this._imageMap.set(e,n)}},t.LocalTilingPatternCache=class extends o{constructor(e){super({onlyRefs:!0})}set(){let e=arguments.length>1?arguments[1]:void 0,t=arguments.length>2?arguments[2]:void 0;if(!e)throw new Error('LocalTilingPatternCache.set - expected "ref" argument.');this._imageCache.has(e)||this._imageCache.put(e,t)}};class s{static get NUM_PAGES_THRESHOLD(){return(0,r.shadow)(this,"NUM_PAGES_THRESHOLD",2)}static get MIN_IMAGES_TO_CACHE(){return(0,r.shadow)(this,"MIN_IMAGES_TO_CACHE",10)}static get MAX_BYTE_SIZE(){return(0,r.shadow)(this,"MAX_BYTE_SIZE",4e7)}constructor(){this._refCache=new i.RefSetCache,this._imageCache=new i.RefSetCache}get _byteSize(){let e=0;for(const t of this._imageCache)e+=t.byteSize;return e}get _cacheLimitReached(){return!(this._imageCache.size<s.MIN_IMAGES_TO_CACHE)&&!(this._byteSize<s.MAX_BYTE_SIZE)}shouldCache(e,t){const n=this._refCache.get(e);return!((n?n.size+(n.has(t)?0:1):1)<s.NUM_PAGES_THRESHOLD)&&!(!this._imageCache.has(e)&&this._cacheLimitReached)}addPageIndex(e,t){let n=this._refCache.get(e);n||(n=new Set,this._refCache.put(e,n)),n.add(t)}addByteSize(e,t){const n=this._imageCache.get(e);n&&(n.byteSize||(n.byteSize=t))}getData(e,t){const n=this._refCache.get(e);if(!n)return null;if(n.size<s.NUM_PAGES_THRESHOLD)return null;const r=this._imageCache.get(e);return r?(n.add(t),r):null}setData(e,t){if(!this._refCache.has(e))throw new Error('GlobalImageCache.setData - expected "addPageIndex" to have been called.');this._imageCache.has(e)||(this._cacheLimitReached?(0,r.warn)("GlobalImageCache.setData - cache limit reached."):this._imageCache.put(e,t))}clear(){arguments.length>0&&void 0!==arguments[0]&&arguments[0]||this._refCache.clear(),this._imageCache.clear()}}t.GlobalImageCache=s},(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.bidi=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:-1,n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],f=!0;const g=e.length;if(0===g||n)return d(e,f,n);h.length=g,p.length=g;let m,y,v=0;for(m=0;m<g;++m){h[m]=e.charAt(m);const t=e.charCodeAt(m);let n="L";t<=255?n=i[t]:1424<=t&&t<=1524?n="R":1536<=t&&t<=1791?(n=o[255&t],n||(0,r.warn)("Bidi: invalid Unicode character "+t.toString(16))):1792<=t&&t<=2220&&(n="AL"),"R"!==n&&"AL"!==n&&"AN"!==n||v++,p[m]=n}if(0===v)return f=!0,d(e,f);-1===t&&(v/g<.3&&g>4?(f=!0,t=0):(f=!1,t=1));const _=[];for(m=0;m<g;++m)_[m]=t;const b=s(t)?"R":"L",x=b,S=x;let w,E=x;for(m=0;m<g;++m)"NSM"===p[m]?p[m]=E:E=p[m];for(E=x,m=0;m<g;++m)w=p[m],"EN"===w?p[m]="AL"===E?"AN":"EN":"R"!==w&&"L"!==w&&"AL"!==w||(E=w);for(m=0;m<g;++m)w=p[m],"AL"===w&&(p[m]="R");for(m=1;m<g-1;++m)"ES"===p[m]&&"EN"===p[m-1]&&"EN"===p[m+1]&&(p[m]="EN"),"CS"!==p[m]||"EN"!==p[m-1]&&"AN"!==p[m-1]||p[m+1]!==p[m-1]||(p[m]=p[m-1]);for(m=0;m<g;++m)if("EN"===p[m]){for(let e=m-1;e>=0&&"ET"===p[e];--e)p[e]="EN";for(let e=m+1;e<g&&"ET"===p[e];++e)p[e]="EN"}for(m=0;m<g;++m)w=p[m],"WS"!==w&&"ES"!==w&&"ET"!==w&&"CS"!==w||(p[m]="ON");for(E=x,m=0;m<g;++m)w=p[m],"EN"===w?p[m]="L"===E?"L":"EN":"R"!==w&&"L"!==w||(E=w);for(m=0;m<g;++m)if("ON"===p[m]){const e=l(p,m+1,"ON");let t=x;m>0&&(t=p[m-1]);let n=S;e+1<g&&(n=p[e+1]),"L"!==t&&(t="R"),"L"!==n&&(n="R"),t===n&&c(p,m,e,t),m=e-1}for(m=0;m<g;++m)"ON"===p[m]&&(p[m]=b);for(m=0;m<g;++m)w=p[m],a(_[m])?"R"===w?_[m]+=1:"AN"!==w&&"EN"!==w||(_[m]+=2):"L"!==w&&"AN"!==w&&"EN"!==w||(_[m]+=1);let P,C=-1,A=99;for(m=0,y=_.length;m<y;++m)P=_[m],C<P&&(C=P),A>P&&s(P)&&(A=P);for(P=C;P>=A;--P){let e=-1;for(m=0,y=_.length;m<y;++m)_[m]<P?e>=0&&(u(h,e,m),e=-1):e<0&&(e=m);e>=0&&u(h,e,_.length)}for(m=0,y=h.length;m<y;++m){const e=h[m];"<"!==e&&">"!==e||(h[m]="")}return d(h.join(""),f)};var r=n(2);const i=["BN","BN","BN","BN","BN","BN","BN","BN","BN","S","B","S","WS","B","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","B","B","B","S","WS","ON","ON","ET","ET","ET","ON","ON","ON","ON","ON","ES","CS","ES","CS","CS","EN","EN","EN","EN","EN","EN","EN","EN","EN","EN","CS","ON","ON","ON","ON","ON","ON","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","ON","ON","ON","ON","ON","ON","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","ON","ON","ON","ON","BN","BN","BN","BN","BN","BN","B","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","CS","ON","ET","ET","ET","ET","ON","ON","ON","ON","L","ON","ON","BN","ON","ON","ET","ET","EN","EN","ON","L","ON","ON","ON","EN","L","ON","ON","ON","ON","ON","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","ON","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","ON","L","L","L","L","L","L","L","L"],o=["AN","AN","AN","AN","AN","AN","ON","ON","AL","ET","ET","AL","CS","AL","ON","ON","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","AL","AL","","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","AN","AN","AN","AN","AN","AN","AN","AN","AN","AN","ET","AN","AN","AL","AL","AL","NSM","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","NSM","NSM","NSM","NSM","NSM","NSM","NSM","AN","ON","NSM","NSM","NSM","NSM","NSM","NSM","AL","AL","NSM","NSM","ON","NSM","NSM","NSM","NSM","AL","AL","EN","EN","EN","EN","EN","EN","EN","EN","EN","EN","AL","AL","AL","AL","AL","AL"];function s(e){return 0!==(1&e)}function a(e){return 0===(1&e)}function l(e,t,n){let r,i;for(r=t,i=e.length;r<i;++r)if(e[r]!==n)return r;return r}function c(e,t,n,r){for(let i=t;i<n;++i)e[i]=r}function u(e,t,n){for(let r=t,i=n-1;r<i;++r,--i){const t=e[r];e[r]=e[i],e[i]=t}}function d(e,t){let n="ltr";return arguments.length>2&&void 0!==arguments[2]&&arguments[2]?n="ttb":t||(n="rtl"),{str:e,dir:n}}const h=[],p=[]},(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.MurmurHash3_64=void 0;var r=n(2);const i=3285377520,o=4294901760,s=65535;t.MurmurHash3_64=class{constructor(e){this.h1=e?4294967295&e:i,this.h2=e?4294967295&e:i}update(e){let t,n;if("string"===typeof e){t=new Uint8Array(2*e.length),n=0;for(let r=0,i=e.length;r<i;r++){const i=e.charCodeAt(r);i<=255?t[n++]=i:(t[n++]=i>>>8,t[n++]=255&i)}}else{if(!(0,r.isArrayBuffer)(e))throw new Error("Wrong data format in MurmurHash3_64_update. Input must be a string or array.");t=e.slice(),n=t.byteLength}const i=n>>2,a=n-4*i,l=new Uint32Array(t.buffer,0,i);let c=0,u=0,d=this.h1,h=this.h2;const p=3432918353,f=461845907,g=11601,m=13715;for(let r=0;r<i;r++)1&r?(c=l[r],c=c*p&o|c*g&s,c=c<<15|c>>>17,c=c*f&o|c*m&s,d^=c,d=d<<13|d>>>19,d=5*d+3864292196):(u=l[r],u=u*p&o|u*g&s,u=u<<15|u>>>17,u=u*f&o|u*m&s,h^=u,h=h<<13|h>>>19,h=5*h+3864292196);switch(c=0,a){case 3:c^=t[4*i+2]<<16;case 2:c^=t[4*i+1]<<8;case 1:c^=t[4*i],c=c*p&o|c*g&s,c=c<<15|c>>>17,c=c*f&o|c*m&s,1&i?d^=c:h^=c}this.h1=d,this.h2=h}hexdigest(){let e=this.h1,t=this.h2;return e^=t>>>1,e=3981806797*e&o|36045*e&s,t=4283543511*t&o|(2950163797*(t<<16|e>>>16)&o)>>>16,e^=t>>>1,e=444984403*e&o|60499*e&s,t=3301882366*t&o|(3120437893*(t<<16|e>>>16)&o)>>>16,e^=t>>>1,(e>>>0).toString(16).padStart(8,"0")+(t>>>0).toString(16).padStart(8,"0")}}},(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.OperatorList=void 0;var r=n(2);function i(e,t,n,r,i){let o=e;for(let s=0,a=t.length-1;s<a;s++){const e=t[s];o=o[e]||(o[e]=[])}o[t.at(-1)]={checkFn:n,iterateFn:r,processFn:i}}const o=[];i(o,[r.OPS.save,r.OPS.transform,r.OPS.paintInlineImageXObject,r.OPS.restore],null,(function(e,t){const n=e.fnArray,i=(t-(e.iCurr-3))%4;switch(i){case 0:return n[t]===r.OPS.save;case 1:return n[t]===r.OPS.transform;case 2:return n[t]===r.OPS.paintInlineImageXObject;case 3:return n[t]===r.OPS.restore}throw new Error("iterateInlineImageGroup - invalid pos: ".concat(i))}),(function(e,t){const n=e.fnArray,i=e.argsArray,o=e.iCurr,s=o-3,a=o-2,l=o-1,c=Math.min(Math.floor((t-s)/4),200);if(c<10)return t-(t-s)%4;let u=0;const d=[];let h=0,p=1,f=1;for(let r=0;r<c;r++){const e=i[a+(r<<2)],t=i[l+(r<<2)][0];p+t.width>1e3&&(u=Math.max(u,p),f+=h+2,p=0,h=0),d.push({transform:e,x:p,y:f,w:t.width,h:t.height}),p+=t.width+2,h=Math.max(h,t.height)}const g=Math.max(u,p)+1,m=f+h+1,y=new Uint8Array(g*m*4),v=g<<2;for(let r=0;r<c;r++){const e=i[l+(r<<2)][0].data,t=d[r].w<<2;let n=0,o=d[r].x+d[r].y*g<<2;y.set(e.subarray(0,t),o-v);for(let i=0,s=d[r].h;i<s;i++)y.set(e.subarray(n,n+t),o),n+=t,o+=v;for(y.set(e.subarray(n-t,n),o);o>=0;)e[o-4]=e[o],e[o-3]=e[o+1],e[o-2]=e[o+2],e[o-1]=e[o+3],e[o+t]=e[o+t-4],e[o+t+1]=e[o+t-3],e[o+t+2]=e[o+t-2],e[o+t+3]=e[o+t-1],o-=v}return n.splice(s,4*c,r.OPS.paintInlineImageXObjectGroup),i.splice(s,4*c,[{width:g,height:m,kind:r.ImageKind.RGBA_32BPP,data:y},d]),s+1})),i(o,[r.OPS.save,r.OPS.transform,r.OPS.paintImageMaskXObject,r.OPS.restore],null,(function(e,t){const n=e.fnArray,i=(t-(e.iCurr-3))%4;switch(i){case 0:return n[t]===r.OPS.save;case 1:return n[t]===r.OPS.transform;case 2:return n[t]===r.OPS.paintImageMaskXObject;case 3:return n[t]===r.OPS.restore}throw new Error("iterateImageMaskGroup - invalid pos: ".concat(i))}),(function(e,t){const n=e.fnArray,i=e.argsArray,o=e.iCurr,s=o-3,a=o-2,l=o-1;let c=Math.floor((t-s)/4);if(c<10)return t-(t-s)%4;let u,d,h=!1;const p=i[l][0],f=i[a][0],g=i[a][1],m=i[a][2],y=i[a][3];if(g===m){h=!0,u=a+4;let e=l+4;for(let t=1;t<c;t++,u+=4,e+=4)if(d=i[u],i[e][0]!==p||d[0]!==f||d[1]!==g||d[2]!==m||d[3]!==y){t<10?h=!1:c=t;break}}if(h){c=Math.min(c,1e3);const e=new Float32Array(2*c);u=a;for(let t=0;t<c;t++,u+=4)d=i[u],e[t<<1]=d[4],e[1+(t<<1)]=d[5];n.splice(s,4*c,r.OPS.paintImageMaskXObjectRepeat),i.splice(s,4*c,[p,f,g,m,y,e])}else{c=Math.min(c,100);const e=[];for(let t=0;t<c;t++){d=i[a+(t<<2)];const n=i[l+(t<<2)][0];e.push({data:n.data,width:n.width,height:n.height,interpolate:n.interpolate,count:n.count,transform:d})}n.splice(s,4*c,r.OPS.paintImageMaskXObjectGroup),i.splice(s,4*c,[e])}return s+1})),i(o,[r.OPS.save,r.OPS.transform,r.OPS.paintImageXObject,r.OPS.restore],(function(e){const t=e.argsArray,n=e.iCurr-2;return 0===t[n][1]&&0===t[n][2]}),(function(e,t){const n=e.fnArray,i=e.argsArray,o=(t-(e.iCurr-3))%4;switch(o){case 0:return n[t]===r.OPS.save;case 1:if(n[t]!==r.OPS.transform)return!1;const o=e.iCurr-2,s=i[o][0],a=i[o][3];return i[t][0]===s&&0===i[t][1]&&0===i[t][2]&&i[t][3]===a;case 2:if(n[t]!==r.OPS.paintImageXObject)return!1;const l=i[e.iCurr-1][0];return i[t][0]===l;case 3:return n[t]===r.OPS.restore}throw new Error("iterateImageGroup - invalid pos: ".concat(o))}),(function(e,t){const n=e.fnArray,i=e.argsArray,o=e.iCurr,s=o-3,a=o-2,l=i[o-1][0],c=i[a][0],u=i[a][3],d=Math.min(Math.floor((t-s)/4),1e3);if(d<3)return t-(t-s)%4;const h=new Float32Array(2*d);let p=a;for(let r=0;r<d;r++,p+=4){const e=i[p];h[r<<1]=e[4],h[1+(r<<1)]=e[5]}const f=[l,c,u,h];return n.splice(s,4*d,r.OPS.paintImageXObjectRepeat),i.splice(s,4*d,f),s+1})),i(o,[r.OPS.beginText,r.OPS.setFont,r.OPS.setTextMatrix,r.OPS.showText,r.OPS.endText],null,(function(e,t){const n=e.fnArray,i=e.argsArray,o=(t-(e.iCurr-4))%5;switch(o){case 0:return n[t]===r.OPS.beginText;case 1:return n[t]===r.OPS.setFont;case 2:return n[t]===r.OPS.setTextMatrix;case 3:if(n[t]!==r.OPS.showText)return!1;const o=e.iCurr-3,s=i[o][0],a=i[o][1];return i[t][0]===s&&i[t][1]===a;case 4:return n[t]===r.OPS.endText}throw new Error("iterateShowTextGroup - invalid pos: ".concat(o))}),(function(e,t){const n=e.fnArray,r=e.argsArray,i=e.iCurr,o=i-4,s=i-3,a=i-2,l=i-1,c=i,u=r[s][0],d=r[s][1];let h=Math.min(Math.floor((t-o)/5),1e3);if(h<3)return t-(t-o)%5;let p=o;o>=4&&n[o-4]===n[s]&&n[o-3]===n[a]&&n[o-2]===n[l]&&n[o-1]===n[c]&&r[o-4][0]===u&&r[o-4][1]===d&&(h++,p-=5);let f=p+4;for(let g=1;g<h;g++)n.splice(f,3),r.splice(f,3),f+=2;return f+1}));class s{constructor(e){this.queue=e}_optimize(){}push(e,t){this.queue.fnArray.push(e),this.queue.argsArray.push(t),this._optimize()}flush(){}reset(){}}class a extends s{constructor(e){super(e),this.state=null,this.context={iCurr:0,fnArray:e.fnArray,argsArray:e.argsArray},this.match=null,this.lastProcessed=0}_optimize(){const e=this.queue.fnArray;let t=this.lastProcessed,n=e.length,r=this.state,i=this.match;if(!r&&!i&&t+1===n&&!o[e[t]])return void(this.lastProcessed=n);const s=this.context;for(;t<n;){if(i){if((0,i.iterateFn)(s,t)){t++;continue}if(t=(0,i.processFn)(s,t+1),n=e.length,i=null,r=null,t>=n)break}r=(r||o)[e[t]],r&&!Array.isArray(r)?(s.iCurr=t,t++,!r.checkFn||(0,r.checkFn)(s)?(i=r,r=null):r=null):t++}this.state=r,this.match=i,this.lastProcessed=t}flush(){for(;this.match;){const e=this.queue.fnArray.length;this.lastProcessed=(0,this.match.processFn)(this.context,e),this.match=null,this.state=null,this._optimize()}}reset(){this.state=null,this.match=null,this.lastProcessed=0}}class l{static get CHUNK_SIZE(){return(0,r.shadow)(this,"CHUNK_SIZE",1e3)}static get CHUNK_SIZE_ABOUT(){return(0,r.shadow)(this,"CHUNK_SIZE_ABOUT",this.CHUNK_SIZE-5)}constructor(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,t=arguments.length>1?arguments[1]:void 0;this._streamSink=t,this.fnArray=[],this.argsArray=[],!t||e&r.RenderingIntentFlag.OPLIST?this.optimizer=new s(this):this.optimizer=new a(this),this.dependencies=new Set,this._totalLength=0,this.weight=0,this._resolved=t?null:Promise.resolve()}get length(){return this.argsArray.length}get ready(){return this._resolved||this._streamSink.ready}get totalLength(){return this._totalLength+this.length}addOp(e,t){this.optimizer.push(e,t),this.weight++,this._streamSink&&(this.weight>=l.CHUNK_SIZE||this.weight>=l.CHUNK_SIZE_ABOUT&&(e===r.OPS.restore||e===r.OPS.endText))&&this.flush()}addImageOps(e,t,n){void 0!==n&&this.addOp(r.OPS.beginMarkedContentProps,["OC",n]),this.addOp(e,t),void 0!==n&&this.addOp(r.OPS.endMarkedContent,[])}addDependency(e){this.dependencies.has(e)||(this.dependencies.add(e),this.addOp(r.OPS.dependency,[e]))}addDependencies(e){for(const t of e)this.addDependency(t)}addOpList(e){if(e instanceof l){for(const t of e.dependencies)this.dependencies.add(t);for(let t=0,n=e.length;t<n;t++)this.addOp(e.fnArray[t],e.argsArray[t])}else(0,r.warn)('addOpList - ignoring invalid "opList" parameter.')}getIR(){return{fnArray:this.fnArray,argsArray:this.argsArray,length:this.length}}get _transfers(){const e=[],{fnArray:t,argsArray:n,length:i}=this;for(let o=0;o<i;o++)switch(t[o]){case r.OPS.paintInlineImageXObject:case r.OPS.paintInlineImageXObjectGroup:case r.OPS.paintImageMaskXObject:const t=n[o][0];!t.cached&&t.data&&t.data.buffer instanceof ArrayBuffer&&e.push(t.data.buffer)}return e}flush(){let e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;this.optimizer.flush();const n=this.length;this._totalLength+=n,this._streamSink.enqueue({fnArray:this.fnArray,argsArray:this.argsArray,lastChunk:e,separateAnnots:t,length:n},1,this._transfers),this.dependencies.clear(),this.fnArray.length=0,this.argsArray.length=0,this.weight=0,this.optimizer.reset()}}t.OperatorList=l},(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.PDFImage=void 0;var r=n(2),i=n(62),o=n(5),s=n(12),a=n(17),l=n(25),c=n(28),u=n(3);function d(e,t,n,r){return(e=t+e*n)<0?e=0:e>r&&(e=r),e}function h(e,t,n,r,i,o){const s=i*o;let a;a=t<=8?new Uint8Array(s):t<=16?new Uint16Array(s):new Uint32Array(s);const l=n/i,c=r/o;let u,d,h,p,f=0;const g=new Uint16Array(i),m=n;for(u=0;u<i;u++)g[u]=Math.floor(u*l);for(u=0;u<o;u++)for(h=Math.floor(u*c)*m,d=0;d<i;d++)p=h+g[d],a[f++]=e[p];return a}class p{constructor(e){let{xref:t,res:n,image:i,isInline:a=!1,smask:l=null,mask:d=null,isMask:h=!1,pdfFunctionFactory:f,localColorSpaceCache:g}=e;this.image=i;const m=i.dict,y=m.get("F","Filter");let v;if(y instanceof u.Name)v=y.name;else if(Array.isArray(y)){const e=t.fetchIfRef(y[0]);e instanceof u.Name&&(v=e.name)}switch(v){case"JPXDecode":const e=new c.JpxImage;e.parseImageProperties(i.stream),i.stream.reset(),i.width=e.width,i.height=e.height,i.bitsPerComponent=e.bitsPerComponent,i.numComps=e.componentsCount;break;case"JBIG2Decode":i.bitsPerComponent=1,i.numComps=1}let _=m.get("W","Width"),b=m.get("H","Height");if(Number.isInteger(i.width)&&i.width>0&&Number.isInteger(i.height)&&i.height>0&&(i.width!==_||i.height!==b)&&((0,r.warn)("PDFImage - using the Width/Height of the image data, rather than the image dictionary."),_=i.width,b=i.height),_<1||b<1)throw new r.FormatError("Invalid image width: ".concat(_," or height: ").concat(b));this.width=_,this.height=b,this.interpolate=m.get("I","Interpolate"),this.imageMask=m.get("IM","ImageMask")||!1,this.matte=m.get("Matte")||!1;let x=i.bitsPerComponent;if(!x&&(x=m.get("BPC","BitsPerComponent"),!x)){if(!this.imageMask)throw new r.FormatError("Bits per component missing in image: ".concat(this.imageMask));x=1}if(this.bpc=x,!this.imageMask){let e=m.getRaw("CS")||m.getRaw("ColorSpace");if(!e)switch((0,r.info)("JPX images (which do not require color spaces)"),i.numComps){case 1:e=u.Name.get("DeviceGray");break;case 3:e=u.Name.get("DeviceRGB");break;case 4:e=u.Name.get("DeviceCMYK");break;default:throw new Error("JPX images with ".concat(i.numComps," color components not supported."))}this.colorSpace=s.ColorSpace.parse({cs:e,xref:t,resources:a?n:null,pdfFunctionFactory:f,localColorSpaceCache:g}),this.numComps=this.colorSpace.numComps}if(this.decode=m.getArray("D","Decode"),this.needsDecode=!1,this.decode&&(this.colorSpace&&!this.colorSpace.isDefaultDecode(this.decode,x)||h&&!s.ColorSpace.isDefaultDecode(this.decode,1))){this.needsDecode=!0;const e=(1<<x)-1;this.decodeCoefficients=[],this.decodeAddends=[];const t=this.colorSpace&&"Indexed"===this.colorSpace.name;for(let n=0,r=0;n<this.decode.length;n+=2,++r){const i=this.decode[n],o=this.decode[n+1];this.decodeCoefficients[r]=t?(o-i)/e:o-i,this.decodeAddends[r]=t?i:e*i}}l?this.smask=new p({xref:t,res:n,image:l,isInline:a,pdfFunctionFactory:f,localColorSpaceCache:g}):d&&(d instanceof o.BaseStream?d.dict.get("IM","ImageMask")?this.mask=new p({xref:t,res:n,image:d,isInline:a,isMask:!0,pdfFunctionFactory:f,localColorSpaceCache:g}):(0,r.warn)("Ignoring /Mask in image without /ImageMask."):this.mask=d)}static async buildImage(e){let{xref:t,res:n,image:i,isInline:s=!1,pdfFunctionFactory:a,localColorSpaceCache:l}=e;const c=i;let u=null,d=null;const h=i.dict.get("SMask"),f=i.dict.get("Mask");return h?h instanceof o.BaseStream?u=h:(0,r.warn)("Unsupported /SMask format."):f&&(f instanceof o.BaseStream||Array.isArray(f)?d=f:(0,r.warn)("Unsupported /Mask format.")),new p({xref:t,res:n,image:c,isInline:s,smask:u,mask:d,pdfFunctionFactory:a,localColorSpaceCache:l})}static createRawMask(e){let{imgArray:t,width:n,height:r,imageIsFromDecodeStream:i,inverseDecode:o,interpolate:s}=e;const a=(n+7>>3)*r,l=t.byteLength;let c,u;if(!i||o&&a!==l?o?(c=new Uint8Array(a),c.set(t),c.fill(255,l)):c=new Uint8Array(t):c=t,o)for(u=0;u<l;u++)c[u]^=255;return{data:c,width:n,height:r,interpolate:s}}static createMask(e){let{imgArray:t,width:n,height:o,imageIsFromDecodeStream:s,inverseDecode:a,interpolate:l,isOffscreenCanvasSupported:c=!0}=e;const u=1===n&&1===o&&a===(0===t.length||!!(128&t[0]));if(u)return{isSingleOpaquePixel:u};if(c&&r.FeatureTest.isOffscreenCanvasSupported){const e=new OffscreenCanvas(n,o),r=e.getContext("2d"),s=r.createImageData(n,o);return(0,i.applyMaskImageData)({src:t,dest:s.data,width:n,height:o,inverseDecode:a}),r.putImageData(s,0,0),{data:null,width:n,height:o,interpolate:l,bitmap:e.transferToImageBitmap()}}return this.createRawMask({imgArray:t,width:n,height:o,inverseDecode:a,imageIsFromDecodeStream:s,interpolate:l})}get drawWidth(){return Math.max(this.width,this.smask&&this.smask.width||0,this.mask&&this.mask.width||0)}get drawHeight(){return Math.max(this.height,this.smask&&this.smask.height||0,this.mask&&this.mask.height||0)}decodeBuffer(e){const t=this.bpc,n=this.numComps,r=this.decodeAddends,i=this.decodeCoefficients,o=(1<<t)-1;let s,a;if(1===t){for(s=0,a=e.length;s<a;s++)e[s]=+!e[s];return}let l=0;for(s=0,a=this.width*this.height;s<a;s++)for(let t=0;t<n;t++)e[l]=d(e[l],r[t],i[t],o),l++}getComponents(e){const t=this.bpc;if(8===t)return e;const n=this.width,r=this.height,i=this.numComps,o=n*r*i;let s,a=0;s=t<=8?new Uint8Array(o):t<=16?new Uint16Array(o):new Uint32Array(o);const l=n*i,c=(1<<t)-1;let u,d,h=0;if(1===t){let t,n,i;for(let o=0;o<r;o++){for(n=h+(-8&l),i=h+l;h<n;)d=e[a++],s[h]=d>>7&1,s[h+1]=d>>6&1,s[h+2]=d>>5&1,s[h+3]=d>>4&1,s[h+4]=d>>3&1,s[h+5]=d>>2&1,s[h+6]=d>>1&1,s[h+7]=1&d,h+=8;if(h<i)for(d=e[a++],t=128;h<i;)s[h++]=+!!(d&t),t>>=1}}else{let n=0;for(d=0,h=0,u=o;h<u;++h){for(h%l===0&&(d=0,n=0);n<t;)d=d<<8|e[a++],n+=8;const r=n-t;let i=d>>r;i<0?i=0:i>c&&(i=c),s[h]=i,d&=(1<<r)-1,n=r}}return s}fillOpacity(e,t,n,i,o){const s=this.smask,a=this.mask;let l,c,u,d,f,g;if(s)c=s.width,u=s.height,l=new Uint8ClampedArray(c*u),s.fillGrayBuffer(l),c===t&&u===n||(l=h(l,s.bpc,c,u,t,n));else if(a)if(a instanceof p){for(c=a.width,u=a.height,l=new Uint8ClampedArray(c*u),a.numComps=1,a.fillGrayBuffer(l),d=0,f=c*u;d<f;++d)l[d]=255-l[d];c===t&&u===n||(l=h(l,a.bpc,c,u,t,n))}else{if(!Array.isArray(a))throw new r.FormatError("Unknown mask format.");{l=new Uint8ClampedArray(t*n);const e=this.numComps;for(d=0,f=t*n;d<f;++d){let t=0;const n=d*e;for(g=0;g<e;++g){const e=o[n+g],r=2*g;if(e<a[r]||e>a[r+1]){t=255;break}}l[d]=t}}}if(l)for(d=0,g=3,f=t*i;d<f;++d,g+=4)e[g]=l[d];else for(d=0,g=3,f=t*i;d<f;++d,g+=4)e[g]=255}undoPreblend(e,t,n){const r=this.smask&&this.smask.matte;if(!r)return;const i=this.colorSpace.getRgb(r,0),o=i[0],s=i[1],a=i[2],l=t*n*4;for(let c=0;c<l;c+=4){const t=e[c+3];if(0===t){e[c]=255,e[c+1]=255,e[c+2]=255;continue}const n=255/t;e[c]=(e[c]-o)*n+o,e[c+1]=(e[c+1]-s)*n+s,e[c+2]=(e[c+2]-a)*n+a}}createImageData(){let e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];const t=this.drawWidth,n=this.drawHeight,i={width:t,height:n,interpolate:this.interpolate,kind:0,data:null},o=this.numComps,s=this.width,a=this.height,c=this.bpc,u=s*o*c+7>>3;if(!e){let e;if("DeviceGray"===this.colorSpace.name&&1===c?e=r.ImageKind.GRAYSCALE_1BPP:"DeviceRGB"!==this.colorSpace.name||8!==c||this.needsDecode||(e=r.ImageKind.RGB_24BPP),e&&!this.smask&&!this.mask&&t===s&&n===a){if(i.kind=e,i.data=this.getImageBytes(a*u,{}),this.needsDecode){(0,r.assert)(e===r.ImageKind.GRAYSCALE_1BPP,"PDFImage.createImageData: The image must be grayscale.");const t=i.data;for(let e=0,n=t.length;e<n;e++)t[e]^=255}return i}if(this.image instanceof l.JpegStream&&!this.smask&&!this.mask){let e=a*u;switch(this.colorSpace.name){case"DeviceGray":e*=3;case"DeviceRGB":case"DeviceCMYK":return i.kind=r.ImageKind.RGB_24BPP,i.data=this.getImageBytes(e,{drawWidth:t,drawHeight:n,forceRGB:!0}),i}}}const d=this.getImageBytes(a*u,{internal:!0}),h=0|d.length/u*n/a,p=this.getComponents(d);let f,g;return e||this.smask||this.mask?(i.kind=r.ImageKind.RGBA_32BPP,i.data=new Uint8ClampedArray(t*n*4),f=1,g=!0,this.fillOpacity(i.data,t,n,h,p)):(i.kind=r.ImageKind.RGB_24BPP,i.data=new Uint8ClampedArray(t*n*3),f=0,g=!1),this.needsDecode&&this.decodeBuffer(p),this.colorSpace.fillRgb(i.data,s,a,t,n,h,c,p,f),g&&this.undoPreblend(i.data,t,h),i}fillGrayBuffer(e){const t=this.numComps;if(1!==t)throw new r.FormatError("Reading gray scale from a color image: ".concat(t));const n=this.width,i=this.height,o=this.bpc,s=n*t*o+7>>3,a=this.getImageBytes(i*s,{internal:!0}),l=this.getComponents(a);let c,u;if(1===o){if(u=n*i,this.needsDecode)for(c=0;c<u;++c)e[c]=l[c]-1&255;else for(c=0;c<u;++c)e[c]=255&-l[c];return}this.needsDecode&&this.decodeBuffer(l),u=n*i;const d=255/((1<<o)-1);for(c=0;c<u;++c)e[c]=d*l[c]}getImageBytes(e,t){let{drawWidth:n,drawHeight:i,forceRGB:o=!1,internal:s=!1}=t;this.image.reset(),this.image.drawWidth=n||this.width,this.image.drawHeight=i||this.height,this.image.forceRGB=!!o;const l=this.image.getBytes(e);return s||this.image instanceof a.DecodeStream?l:((0,r.assert)(l instanceof Uint8Array,'PDFImage.getImageBytes: Unsupported "imageBytes" type.'),new Uint8Array(l))}}t.PDFImage=p},(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.applyMaskImageData=function(e){let{src:t,srcPos:n=0,dest:i,destPos:o=0,width:s,height:a,inverseDecode:l=!1}=e;const c=r.FeatureTest.isLittleEndian?4278190080:255,[u,d]=l?[0,c]:[c,0],h=s>>3,p=7&s,f=t.length;i=new Uint32Array(i.buffer);for(let r=0;r<a;r++){for(const r=n+h;n<r;n++){const e=n<f?t[n]:255;i[o++]=128&e?d:u,i[o++]=64&e?d:u,i[o++]=32&e?d:u,i[o++]=16&e?d:u,i[o++]=8&e?d:u,i[o++]=4&e?d:u,i[o++]=2&e?d:u,i[o++]=1&e?d:u}if(0===p)continue;const e=n<f?t[n++]:255;for(let t=0;t<p;t++)i[o++]=e&1<<7-t?d:u}return{srcPos:n,destPos:o}};var r=n(2)},(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.incrementalUpdate=function(e){let{originalData:t,xrefInfo:n,newRefs:a,xref:d=null,hasXfa:h=!1,xfaDatasetsRef:g=null,hasXfaDatasetsEntry:m=!1,needAppearances:y,acroFormRef:v=null,acroForm:_=null,xfaData:b=null}=e;(function(e){let{xref:t,acroForm:n,acroFormRef:o,hasXfa:s,hasXfaDatasetsEntry:a,xfaDatasetsRef:l,needAppearances:u,newRefs:d}=e;if(!s||a||l||(0,r.warn)("XFA - Cannot save it"),!u&&(!s||!l))return;const h=new i.Dict(t);for(const r of n.getKeys())h.set(r,n.getRaw(r));if(s&&!a){const e=n.get("XFA").slice();e.splice(2,0,"datasets"),e.splice(3,0,l),h.set("XFA",e)}u&&h.set("NeedAppearances",!0);const p=t.encrypt;let f=null;p&&(f=p.createCipherTransform(o.num,o.gen));const g=[];c(o,h,g,f),d.push({ref:o,data:g.join("")})})({xref:d,acroForm:_,acroFormRef:v,hasXfa:h,hasXfaDatasetsEntry:m,xfaDatasetsRef:g,needAppearances:y,newRefs:a}),h&&function(e){let{xfaData:t,xfaDatasetsRef:n,newRefs:i,xref:a}=e;null===t&&(t=function(e,t){const n=new s.SimpleXMLParser({hasAttributes:!0}).parseFromString(e);for(const{xfa:a}of t){if(!a)continue;const{path:e,value:t}=a;if(!e)continue;const i=n.documentElement.searchNode((0,o.parseXFAPath)(e),0);i?Array.isArray(t)?i.childNodes=t.map((e=>new s.SimpleDOMNode("value",e))):i.childNodes=[new s.SimpleDOMNode("#text",t)]:(0,r.warn)("Node not found for path: ".concat(e))}const i=[];return n.documentElement.dump(i),i.join("")}(a.fetchIfRef(n).getString(),i));const l=a.encrypt;l&&(t=l.createCipherTransform(n.num,n.gen).encryptString(t));const c="".concat(n.num," ").concat(n.gen," obj\n")+"<< /Type /EmbeddedFile /Length ".concat(t.length,">>\nstream\n")+t+"\nendstream\nendobj\n";i.push({ref:n,data:c})}({xfaData:b,xfaDatasetsRef:g,newRefs:a,xref:d});const x=new i.Dict(null),S=n.newRef;let w,E;const P=t.at(-1);10===P||13===P?(w=[],E=t.length):(w=["\n"],E=t.length+1),x.set("Size",S.num+1),x.set("Prev",n.startXRef),x.set("Type",i.Name.get("XRef")),null!==n.rootRef&&x.set("Root",n.rootRef),null!==n.infoRef&&x.set("Info",n.infoRef),null!==n.encryptRef&&x.set("Encrypt",n.encryptRef),a.push({ref:S,data:""}),a=a.sort(((e,t)=>e.ref.num-t.ref.num));const C=[[0,1,65535]],A=[0,1];let k=0;for(const{ref:r,data:i}of a)k=Math.max(k,E),C.push([1,E,Math.min(r.gen,65535)]),E+=i.length,A.push(r.num,1),w.push(i);if(x.set("Index",A),Array.isArray(n.fileIds)&&n.fileIds.length>0){const e=function(e,t){const n=Math.floor(Date.now()/1e3),i=t.filename||"",o=[n.toString(),i,e.toString()];let s=o.reduce(((e,t)=>e+t.length),0);for(const r of Object.values(t.info))o.push(r),s+=r.length;const a=new Uint8Array(s);let c=0;for(const r of o)f(r,c,a),c+=r.length;return(0,r.bytesToString)((0,l.calculateMD5)(a))}(E,n);x.set("ID",[n.fileIds[0],e])}const j=[1,Math.ceil(Math.log2(k)/8),2],I=(j[0]+j[1]+j[2])*C.length;x.set("W",j),x.set("Length",I),w.push("".concat(S.num," ").concat(S.gen," obj\n")),u(x,w,null),w.push(" stream\n");const G=w.reduce(((e,t)=>e+t.length),0),T="\nendstream\nendobj\nstartxref\n".concat(E,"\n%%EOF\n"),M=new Uint8Array(t.length+G+I+T.length);M.set(t);let O=t.length;for(const r of w)f(r,O,M),O+=r.length;for(const[r,i,o]of C)O=p(r,j[0],O,M),O=p(i,j[1],O,M),O=p(o,j[2],O,M);return f(T,O,M),M},t.writeDict=u,t.writeObject=c;var r=n(2),i=n(3),o=n(4),s=n(64),a=n(5),l=n(65);function c(e,t,n,r){n.push("".concat(e.num," ").concat(e.gen," obj\n")),t instanceof i.Dict?u(t,n,r):t instanceof a.BaseStream&&d(t,n,r),n.push("\nendobj\n")}function u(e,t,n){t.push("<<");for(const r of e.getKeys())t.push(" /".concat((0,o.escapePDFName)(r)," ")),h(e.getRaw(r),t,n);t.push(">>")}function d(e,t,n){u(e.dict,t,n),t.push(" stream\n");let r=e.getString();null!==n&&(r=n.encryptString(r)),t.push(r,"\nendstream")}function h(e,t,n){e instanceof i.Name?t.push("/".concat((0,o.escapePDFName)(e.name))):e instanceof i.Ref?t.push("".concat(e.num," ").concat(e.gen," R")):Array.isArray(e)?function(e,t,n){t.push("[");let r=!0;for(const i of e)r?r=!1:t.push(" "),h(i,t,n);t.push("]")}(e,t,n):"string"===typeof e?(null!==n&&(e=n.encryptString(e)),t.push("(".concat((0,o.escapeString)(e),")"))):"number"===typeof e?t.push((0,o.numberToString)(e)):"boolean"===typeof e?t.push(e.toString()):e instanceof i.Dict?u(e,t,n):e instanceof a.BaseStream?d(e,t,n):null===e?t.push("null"):(0,r.warn)("Unhandled value in writer: ".concat(typeof e,", please file a bug."))}function p(e,t,n,r){for(let i=t+n-1;i>n-1;i--)r[i]=255&e,e>>=8;return n+t}function f(e,t,n){for(let r=0,i=e.length;r<i;r++)n[t+r]=255&e.charCodeAt(r)}},(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.XMLParserErrorCode=t.XMLParserBase=t.SimpleXMLParser=t.SimpleDOMNode=void 0;var r=n(4);const i={NoError:0,EndOfDocument:-1,UnterminatedCdat:-2,UnterminatedXmlDeclaration:-3,UnterminatedDoctypeDeclaration:-4,UnterminatedComment:-5,MalformedElement:-6,OutOfMemory:-7,UnterminatedAttributeValue:-8,UnterminatedElement:-9,ElementNeverBegun:-10};function o(e,t){const n=e[t];return" "===n||"\n"===n||"\r"===n||"\t"===n}t.XMLParserErrorCode=i;class s{_resolveEntities(e){return e.replace(/&([^;]+);/g,((e,t)=>{if("#x"===t.substring(0,2))return String.fromCodePoint(parseInt(t.substring(2),16));if("#"===t.substring(0,1))return String.fromCodePoint(parseInt(t.substring(1),10));switch(t){case"lt":return"<";case"gt":return">";case"amp":return"&";case"quot":return'"';case"apos":return"'"}return this.onResolveEntity(t)}))}_parseContent(e,t){const n=[];let r=t;function i(){for(;r<e.length&&o(e,r);)++r}for(;r<e.length&&!o(e,r)&&">"!==e[r]&&"/"!==e[r];)++r;const s=e.substring(t,r);for(i();r<e.length&&">"!==e[r]&&"/"!==e[r]&&"?"!==e[r];){i();let t="",s="";for(;r<e.length&&!o(e,r)&&"="!==e[r];)t+=e[r],++r;if(i(),"="!==e[r])return null;++r,i();const a=e[r];if('"'!==a&&"'"!==a)return null;const l=e.indexOf(a,++r);if(l<0)return null;s=e.substring(r,l),n.push({name:t,value:this._resolveEntities(s)}),r=l+1,i()}return{name:s,attributes:n,parsed:r-t}}_parseProcessingInstruction(e,t){let n=t;for(;n<e.length&&!o(e,n)&&">"!==e[n]&&"?"!==e[n]&&"/"!==e[n];)++n;const r=e.substring(t,n);!function(){for(;n<e.length&&o(e,n);)++n}();const i=n;for(;n<e.length&&("?"!==e[n]||">"!==e[n+1]);)++n;return{name:r,value:e.substring(i,n),parsed:n-t}}parseXml(e){let t=0;for(;t<e.length;){let n=t;if("<"===e[t]){let t;switch(++n,e[n]){case"/":if(++n,t=e.indexOf(">",n),t<0)return void this.onError(i.UnterminatedElement);this.onEndElement(e.substring(n,t)),n=t+1;break;case"?":++n;const r=this._parseProcessingInstruction(e,n);if("?>"!==e.substring(n+r.parsed,n+r.parsed+2))return void this.onError(i.UnterminatedXmlDeclaration);this.onPi(r.name,r.value),n+=r.parsed+2;break;case"!":if("--"===e.substring(n+1,n+3)){if(t=e.indexOf("--\x3e",n+3),t<0)return void this.onError(i.UnterminatedComment);this.onComment(e.substring(n+3,t)),n=t+3}else if("[CDATA["===e.substring(n+1,n+8)){if(t=e.indexOf("]]>",n+8),t<0)return void this.onError(i.UnterminatedCdat);this.onCdata(e.substring(n+8,t)),n=t+3}else{if("DOCTYPE"!==e.substring(n+1,n+8))return void this.onError(i.MalformedElement);{const r=e.indexOf("[",n+8);let o=!1;if(t=e.indexOf(">",n+8),t<0)return void this.onError(i.UnterminatedDoctypeDeclaration);if(r>0&&t>r){if(t=e.indexOf("]>",n+8),t<0)return void this.onError(i.UnterminatedDoctypeDeclaration);o=!0}const s=e.substring(n+8,t+(o?1:0));this.onDoctype(s),n=t+(o?2:1)}}break;default:const o=this._parseContent(e,n);if(null===o)return void this.onError(i.MalformedElement);let s=!1;if("/>"===e.substring(n+o.parsed,n+o.parsed+2))s=!0;else if(">"!==e.substring(n+o.parsed,n+o.parsed+1))return void this.onError(i.UnterminatedElement);this.onBeginElement(o.name,o.attributes,s),n+=o.parsed+(s?2:1)}}else{for(;n<e.length&&"<"!==e[n];)n++;const r=e.substring(t,n);this.onText(this._resolveEntities(r))}t=n}}onResolveEntity(e){return"&".concat(e,";")}onPi(e,t){}onComment(e){}onCdata(e){}onDoctype(e){}onText(e){}onBeginElement(e,t,n){}onEndElement(e){}onError(e){}}t.XMLParserBase=s;class a{constructor(e,t){this.nodeName=e,this.nodeValue=t,Object.defineProperty(this,"parentNode",{value:null,writable:!0})}get firstChild(){return this.childNodes&&this.childNodes[0]}get nextSibling(){const e=this.parentNode.childNodes;if(!e)return;const t=e.indexOf(this);return-1!==t?e[t+1]:void 0}get textContent(){return this.childNodes?this.childNodes.map((function(e){return e.textContent})).join(""):this.nodeValue||""}get children(){return this.childNodes||[]}hasChildNodes(){return this.childNodes&&this.childNodes.length>0}searchNode(e,t){if(t>=e.length)return this;const n=e[t],r=[];let i=this;for(;;){if(n.name===i.nodeName){if(0!==n.pos){if(0===r.length)return null;{const[o]=r.pop();let s=0;for(const r of o.childNodes)if(n.name===r.nodeName){if(s===n.pos)return r.searchNode(e,t+1);s++}return i.searchNode(e,t+1)}}{const n=i.searchNode(e,t+1);if(null!==n)return n}}if(i.childNodes&&0!==i.childNodes.length)r.push([i,0]),i=i.childNodes[0];else{if(0===r.length)return null;for(;0!==r.length;){const[e,t]=r.pop(),n=t+1;if(n<e.childNodes.length){r.push([e,n]),i=e.childNodes[n];break}}if(0===r.length)return null}}}dump(e){if("#text"!==this.nodeName){if(e.push("<".concat(this.nodeName)),this.attributes)for(const t of this.attributes)e.push(" ".concat(t.name,'="').concat((0,r.encodeToXmlString)(t.value),'"'));if(this.hasChildNodes()){e.push(">");for(const t of this.childNodes)t.dump(e);e.push("</".concat(this.nodeName,">"))}else this.nodeValue?e.push(">".concat((0,r.encodeToXmlString)(this.nodeValue),"</").concat(this.nodeName,">")):e.push("/>")}else e.push((0,r.encodeToXmlString)(this.nodeValue))}}t.SimpleDOMNode=a,t.SimpleXMLParser=class extends s{constructor(e){let{hasAttributes:t=!1,lowerCaseName:n=!1}=e;super(),this._currentFragment=null,this._stack=null,this._errorCode=i.NoError,this._hasAttributes=t,this._lowerCaseName=n}parseFromString(e){if(this._currentFragment=[],this._stack=[],this._errorCode=i.NoError,this.parseXml(e),this._errorCode!==i.NoError)return;const[t]=this._currentFragment;return t?{documentElement:t}:void 0}onText(e){if(function(e){for(let t=0,n=e.length;t<n;t++)if(!o(e,t))return!1;return!0}(e))return;const t=new a("#text",e);this._currentFragment.push(t)}onCdata(e){const t=new a("#text",e);this._currentFragment.push(t)}onBeginElement(e,t,n){this._lowerCaseName&&(e=e.toLowerCase());const r=new a(e);r.childNodes=[],this._hasAttributes&&(r.attributes=t),this._currentFragment.push(r),n||(this._stack.push(this._currentFragment),this._currentFragment=r.childNodes)}onEndElement(e){this._currentFragment=this._stack.pop()||[];const t=this._currentFragment.at(-1);if(!t)return null;for(const n of t.childNodes)n.parentNode=t;return t}onError(e){this._errorCode=e}}},(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.calculateSHA256=t.calculateMD5=t.PDF20=t.PDF17=t.CipherTransformFactory=t.ARCFourCipher=t.AES256Cipher=t.AES128Cipher=void 0,t.calculateSHA384=d,t.calculateSHA512=void 0;var r=n(2),i=n(3),o=n(66);class s{constructor(e){this.a=0,this.b=0;const t=new Uint8Array(256),n=e.length;for(let r=0;r<256;++r)t[r]=r;for(let r=0,i=0;r<256;++r){const o=t[r];i=i+o+e[r%n]&255,t[r]=t[i],t[i]=o}this.s=t}encryptBlock(e){let t=this.a,n=this.b;const r=this.s,i=e.length,o=new Uint8Array(i);for(let s=0;s<i;++s){t=t+1&255;const i=r[t];n=n+i&255;const a=r[n];r[t]=a,r[n]=i,o[s]=e[s]^r[i+a&255]}return this.a=t,this.b=n,o}decryptBlock(e){return this.encryptBlock(e)}encrypt(e){return this.encryptBlock(e)}}t.ARCFourCipher=s;const a=function(){const e=new Uint8Array([7,12,17,22,7,12,17,22,7,12,17,22,7,12,17,22,5,9,14,20,5,9,14,20,5,9,14,20,5,9,14,20,4,11,16,23,4,11,16,23,4,11,16,23,4,11,16,23,6,10,15,21,6,10,15,21,6,10,15,21,6,10,15,21]),t=new Int32Array([-680876936,-389564586,606105819,-1044525330,-176418897,1200080426,-1473231341,-45705983,1770035416,-1958414417,-42063,-1990404162,1804603682,-40341101,-1502002290,1236535329,-165796510,-1069501632,643717713,-373897302,-701558691,38016083,-660478335,-405537848,568446438,-1019803690,-187363961,1163531501,-1444681467,-51403784,1735328473,-1926607734,-378558,-2022574463,1839030562,-35309556,-1530992060,1272893353,-155497632,-1094730640,681279174,-358537222,-722521979,76029189,-640364487,-421815835,530742520,-995338651,-198630844,1126891415,-1416354905,-57434055,1700485571,-1894986606,-1051523,-2054922799,1873313359,-30611744,-1560198380,1309151649,-145523070,-1120210379,718787259,-343485551]);return function(n,r,i){let o=1732584193,s=-271733879,a=-1732584194,l=271733878;const c=i+72&-64,u=new Uint8Array(c);let d,h;for(d=0;d<i;++d)u[d]=n[r++];u[d++]=128;const p=c-8;for(;d<p;)u[d++]=0;u[d++]=i<<3&255,u[d++]=i>>5&255,u[d++]=i>>13&255,u[d++]=i>>21&255,u[d++]=i>>>29&255,u[d++]=0,u[d++]=0,u[d++]=0;const f=new Int32Array(16);for(d=0;d<c;){for(h=0;h<16;++h,d+=4)f[h]=u[d]|u[d+1]<<8|u[d+2]<<16|u[d+3]<<24;let n,r,i=o,c=s,p=a,g=l;for(h=0;h<64;++h){h<16?(n=c&p|~c&g,r=h):h<32?(n=g&c|~g&p,r=5*h+1&15):h<48?(n=c^p^g,r=3*h+5&15):(n=p^(c|~g),r=7*h&15);const o=g,s=i+n+t[h]+f[r]|0,a=e[h];g=p,p=c,c=c+(s<<a|s>>>32-a)|0,i=o}o=o+i|0,s=s+c|0,a=a+p|0,l=l+g|0}return new Uint8Array([255&o,o>>8&255,o>>16&255,o>>>24&255,255&s,s>>8&255,s>>16&255,s>>>24&255,255&a,a>>8&255,a>>16&255,a>>>24&255,255&l,l>>8&255,l>>16&255,l>>>24&255])}}();t.calculateMD5=a;class l{constructor(e,t){this.high=0|e,this.low=0|t}and(e){this.high&=e.high,this.low&=e.low}xor(e){this.high^=e.high,this.low^=e.low}or(e){this.high|=e.high,this.low|=e.low}shiftRight(e){e>=32?(this.low=this.high>>>e-32|0,this.high=0):(this.low=this.low>>>e|this.high<<32-e,this.high=this.high>>>e|0)}shiftLeft(e){e>=32?(this.high=this.low<<e-32,this.low=0):(this.high=this.high<<e|this.low>>>32-e,this.low<<=e)}rotateRight(e){let t,n;32&e?(n=this.low,t=this.high):(t=this.low,n=this.high),e&=31,this.low=t>>>e|n<<32-e,this.high=n>>>e|t<<32-e}not(){this.high=~this.high,this.low=~this.low}add(e){const t=(this.low>>>0)+(e.low>>>0);let n=(this.high>>>0)+(e.high>>>0);t>4294967295&&(n+=1),this.low=0|t,this.high=0|n}copyTo(e,t){e[t]=this.high>>>24&255,e[t+1]=this.high>>16&255,e[t+2]=this.high>>8&255,e[t+3]=255&this.high,e[t+4]=this.low>>>24&255,e[t+5]=this.low>>16&255,e[t+6]=this.low>>8&255,e[t+7]=255&this.low}assign(e){this.high=e.high,this.low=e.low}}const c=function(){function e(e,t){return e>>>t|e<<32-t}function t(e,t,n){return e&t^~e&n}function n(e,t,n){return e&t^e&n^t&n}function r(t){return e(t,2)^e(t,13)^e(t,22)}function i(t){return e(t,6)^e(t,11)^e(t,25)}function o(t){return e(t,7)^e(t,18)^t>>>3}const s=[1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298];return function(a,l,c){let u=1779033703,d=3144134277,h=1013904242,p=2773480762,f=1359893119,g=2600822924,m=528734635,y=1541459225;const v=64*Math.ceil((c+9)/64),_=new Uint8Array(v);let b,x;for(b=0;b<c;++b)_[b]=a[l++];_[b++]=128;const S=v-8;for(;b<S;)_[b++]=0;_[b++]=0,_[b++]=0,_[b++]=0,_[b++]=c>>>29&255,_[b++]=c>>21&255,_[b++]=c>>13&255,_[b++]=c>>5&255,_[b++]=c<<3&255;const w=new Uint32Array(64);for(b=0;b<v;){for(x=0;x<16;++x)w[x]=_[b]<<24|_[b+1]<<16|_[b+2]<<8|_[b+3],b+=4;for(x=16;x<64;++x)w[x]=0|(e(E=w[x-2],17)^e(E,19)^E>>>10)+w[x-7]+o(w[x-15])+w[x-16];let a,l,c=u,v=d,S=h,P=p,C=f,A=g,k=m,j=y;for(x=0;x<64;++x)a=j+i(C)+t(C,A,k)+s[x]+w[x],l=r(c)+n(c,v,S),j=k,k=A,A=C,C=P+a|0,P=S,S=v,v=c,c=a+l|0;u=u+c|0,d=d+v|0,h=h+S|0,p=p+P|0,f=f+C|0,g=g+A|0,m=m+k|0,y=y+j|0}var E;return new Uint8Array([u>>24&255,u>>16&255,u>>8&255,255&u,d>>24&255,d>>16&255,d>>8&255,255&d,h>>24&255,h>>16&255,h>>8&255,255&h,p>>24&255,p>>16&255,p>>8&255,255&p,f>>24&255,f>>16&255,f>>8&255,255&f,g>>24&255,g>>16&255,g>>8&255,255&g,m>>24&255,m>>16&255,m>>8&255,255&m,y>>24&255,y>>16&255,y>>8&255,255&y])}}();t.calculateSHA256=c;const u=function(){function e(e,t,n,r,i){e.assign(t),e.and(n),i.assign(t),i.not(),i.and(r),e.xor(i)}function t(e,t,n,r,i){e.assign(t),e.and(n),i.assign(t),i.and(r),e.xor(i),i.assign(n),i.and(r),e.xor(i)}function n(e,t,n){e.assign(t),e.rotateRight(28),n.assign(t),n.rotateRight(34),e.xor(n),n.assign(t),n.rotateRight(39),e.xor(n)}function r(e,t,n){e.assign(t),e.rotateRight(14),n.assign(t),n.rotateRight(18),e.xor(n),n.assign(t),n.rotateRight(41),e.xor(n)}function i(e,t,n){e.assign(t),e.rotateRight(1),n.assign(t),n.rotateRight(8),e.xor(n),n.assign(t),n.shiftRight(7),e.xor(n)}function o(e,t,n){e.assign(t),e.rotateRight(19),n.assign(t),n.rotateRight(61),e.xor(n),n.assign(t),n.shiftRight(6),e.xor(n)}const s=[new l(1116352408,3609767458),new l(1899447441,602891725),new l(3049323471,3964484399),new l(3921009573,2173295548),new l(961987163,4081628472),new l(1508970993,3053834265),new l(2453635748,2937671579),new l(2870763221,3664609560),new l(3624381080,2734883394),new l(310598401,1164996542),new l(607225278,1323610764),new l(1426881987,3590304994),new l(1925078388,4068182383),new l(2162078206,991336113),new l(2614888103,633803317),new l(3248222580,3479774868),new l(3835390401,2666613458),new l(4022224774,944711139),new l(264347078,2341262773),new l(604807628,2007800933),new l(770255983,1495990901),new l(1249150122,1856431235),new l(1555081692,3175218132),new l(1996064986,2198950837),new l(2554220882,3999719339),new l(2821834349,766784016),new l(2952996808,2566594879),new l(3210313671,3203337956),new l(3336571891,1034457026),new l(3584528711,2466948901),new l(113926993,3758326383),new l(338241895,168717936),new l(666307205,1188179964),new l(773529912,1546045734),new l(1294757372,1522805485),new l(1396182291,2643833823),new l(1695183700,2343527390),new l(1986661051,1014477480),new l(2177026350,1206759142),new l(2456956037,344077627),new l(2730485921,1290863460),new l(2820302411,3158454273),new l(3259730800,3505952657),new l(3345764771,106217008),new l(3516065817,3606008344),new l(3600352804,1432725776),new l(4094571909,1467031594),new l(275423344,851169720),new l(430227734,3100823752),new l(506948616,1363258195),new l(659060556,3750685593),new l(883997877,3785050280),new l(958139571,3318307427),new l(1322822218,3812723403),new l(1537002063,2003034995),new l(1747873779,3602036899),new l(1955562222,1575990012),new l(2024104815,1125592928),new l(2227730452,2716904306),new l(2361852424,442776044),new l(2428436474,593698344),new l(2756734187,3733110249),new l(3204031479,2999351573),new l(3329325298,3815920427),new l(3391569614,3928383900),new l(3515267271,566280711),new l(3940187606,3454069534),new l(4118630271,4000239992),new l(116418474,1914138554),new l(174292421,2731055270),new l(289380356,3203993006),new l(460393269,320620315),new l(685471733,587496836),new l(852142971,1086792851),new l(1017036298,365543100),new l(1126000580,2618297676),new l(1288033470,3409855158),new l(1501505948,4234509866),new l(1607167915,987167468),new l(1816402316,1246189591)];return function(a,c,u){let d,h,p,f,g,m,y,v,_=arguments.length>3&&void 0!==arguments[3]&&arguments[3];_?(d=new l(3418070365,3238371032),h=new l(1654270250,914150663),p=new l(2438529370,812702999),f=new l(355462360,4144912697),g=new l(1731405415,4290775857),m=new l(2394180231,1750603025),y=new l(3675008525,1694076839),v=new l(1203062813,3204075428)):(d=new l(1779033703,4089235720),h=new l(3144134277,2227873595),p=new l(1013904242,4271175723),f=new l(2773480762,1595750129),g=new l(1359893119,2917565137),m=new l(2600822924,725511199),y=new l(528734635,4215389547),v=new l(1541459225,327033209));const b=128*Math.ceil((u+17)/128),x=new Uint8Array(b);let S,w;for(S=0;S<u;++S)x[S]=a[c++];x[S++]=128;const E=b-16;for(;S<E;)x[S++]=0;x[S++]=0,x[S++]=0,x[S++]=0,x[S++]=0,x[S++]=0,x[S++]=0,x[S++]=0,x[S++]=0,x[S++]=0,x[S++]=0,x[S++]=0,x[S++]=u>>>29&255,x[S++]=u>>21&255,x[S++]=u>>13&255,x[S++]=u>>5&255,x[S++]=u<<3&255;const P=new Array(80);for(S=0;S<80;S++)P[S]=new l(0,0);let C=new l(0,0),A=new l(0,0),k=new l(0,0),j=new l(0,0),I=new l(0,0),G=new l(0,0),T=new l(0,0),M=new l(0,0);const O=new l(0,0),R=new l(0,0),D=new l(0,0),N=new l(0,0);let L,V;for(S=0;S<b;){for(w=0;w<16;++w)P[w].high=x[S]<<24|x[S+1]<<16|x[S+2]<<8|x[S+3],P[w].low=x[S+4]<<24|x[S+5]<<16|x[S+6]<<8|x[S+7],S+=8;for(w=16;w<80;++w)L=P[w],o(L,P[w-2],N),L.add(P[w-7]),i(D,P[w-15],N),L.add(D),L.add(P[w-16]);for(C.assign(d),A.assign(h),k.assign(p),j.assign(f),I.assign(g),G.assign(m),T.assign(y),M.assign(v),w=0;w<80;++w)O.assign(M),r(D,I,N),O.add(D),e(D,I,G,T,N),O.add(D),O.add(s[w]),O.add(P[w]),n(R,C,N),t(D,C,A,k,N),R.add(D),L=M,M=T,T=G,G=I,j.add(O),I=j,j=k,k=A,A=C,L.assign(O),L.add(R),C=L;d.add(C),h.add(A),p.add(k),f.add(j),g.add(I),m.add(G),y.add(T),v.add(M)}return _?(V=new Uint8Array(48),d.copyTo(V,0),h.copyTo(V,8),p.copyTo(V,16),f.copyTo(V,24),g.copyTo(V,32),m.copyTo(V,40)):(V=new Uint8Array(64),d.copyTo(V,0),h.copyTo(V,8),p.copyTo(V,16),f.copyTo(V,24),g.copyTo(V,32),m.copyTo(V,40),y.copyTo(V,48),v.copyTo(V,56)),V}}();function d(e,t,n){return u(e,t,n,!0)}t.calculateSHA512=u;class h{decryptBlock(e){return e}encrypt(e){return e}}class p{constructor(){this.constructor===p&&(0,r.unreachable)("Cannot initialize AESBaseCipher."),this._s=new Uint8Array([99,124,119,123,242,107,111,197,48,1,103,43,254,215,171,118,202,130,201,125,250,89,71,240,173,212,162,175,156,164,114,192,183,253,147,38,54,63,247,204,52,165,229,241,113,216,49,21,4,199,35,195,24,150,5,154,7,18,128,226,235,39,178,117,9,131,44,26,27,110,90,160,82,59,214,179,41,227,47,132,83,209,0,237,32,252,177,91,106,203,190,57,74,76,88,207,208,239,170,251,67,77,51,133,69,249,2,127,80,60,159,168,81,163,64,143,146,157,56,245,188,182,218,33,16,255,243,210,205,12,19,236,95,151,68,23,196,167,126,61,100,93,25,115,96,129,79,220,34,42,144,136,70,238,184,20,222,94,11,219,224,50,58,10,73,6,36,92,194,211,172,98,145,149,228,121,231,200,55,109,141,213,78,169,108,86,244,234,101,122,174,8,186,120,37,46,28,166,180,198,232,221,116,31,75,189,139,138,112,62,181,102,72,3,246,14,97,53,87,185,134,193,29,158,225,248,152,17,105,217,142,148,155,30,135,233,206,85,40,223,140,161,137,13,191,230,66,104,65,153,45,15,176,84,187,22]),this._inv_s=new Uint8Array([82,9,106,213,48,54,165,56,191,64,163,158,129,243,215,251,124,227,57,130,155,47,255,135,52,142,67,68,196,222,233,203,84,123,148,50,166,194,35,61,238,76,149,11,66,250,195,78,8,46,161,102,40,217,36,178,118,91,162,73,109,139,209,37,114,248,246,100,134,104,152,22,212,164,92,204,93,101,182,146,108,112,72,80,253,237,185,218,94,21,70,87,167,141,157,132,144,216,171,0,140,188,211,10,247,228,88,5,184,179,69,6,208,44,30,143,202,63,15,2,193,175,189,3,1,19,138,107,58,145,17,65,79,103,220,234,151,242,207,206,240,180,230,115,150,172,116,34,231,173,53,133,226,249,55,232,28,117,223,110,71,241,26,113,29,41,197,137,111,183,98,14,170,24,190,27,252,86,62,75,198,210,121,32,154,219,192,254,120,205,90,244,31,221,168,51,136,7,199,49,177,18,16,89,39,128,236,95,96,81,127,169,25,181,74,13,45,229,122,159,147,201,156,239,160,224,59,77,174,42,245,176,200,235,187,60,131,83,153,97,23,43,4,126,186,119,214,38,225,105,20,99,85,33,12,125]),this._mix=new Uint32Array([0,235474187,470948374,303765277,941896748,908933415,607530554,708780849,1883793496,2118214995,1817866830,1649639237,1215061108,1181045119,1417561698,1517767529,3767586992,4003061179,4236429990,4069246893,3635733660,3602770327,3299278474,3400528769,2430122216,2664543715,2362090238,2193862645,2835123396,2801107407,3035535058,3135740889,3678124923,3576870512,3341394285,3374361702,3810496343,3977675356,4279080257,4043610186,2876494627,2776292904,3076639029,3110650942,2472011535,2640243204,2403728665,2169303058,1001089995,899835584,666464733,699432150,59727847,226906860,530400753,294930682,1273168787,1172967064,1475418501,1509430414,1942435775,2110667444,1876241833,1641816226,2910219766,2743034109,2976151520,3211623147,2505202138,2606453969,2302690252,2269728455,3711829422,3543599269,3240894392,3475313331,3843699074,3943906441,4178062228,4144047775,1306967366,1139781709,1374988112,1610459739,1975683434,2076935265,1775276924,1742315127,1034867998,866637845,566021896,800440835,92987698,193195065,429456164,395441711,1984812685,2017778566,1784663195,1683407248,1315562145,1080094634,1383856311,1551037884,101039829,135050206,437757123,337553864,1042385657,807962610,573804783,742039012,2531067453,2564033334,2328828971,2227573024,2935566865,2700099354,3001755655,3168937228,3868552805,3902563182,4203181171,4102977912,3736164937,3501741890,3265478751,3433712980,1106041591,1340463100,1576976609,1408749034,2043211483,2009195472,1708848333,1809054150,832877231,1068351396,766945465,599762354,159417987,126454664,361929877,463180190,2709260871,2943682380,3178106961,3009879386,2572697195,2538681184,2236228733,2336434550,3509871135,3745345300,3441850377,3274667266,3910161971,3877198648,4110568485,4211818798,2597806476,2497604743,2261089178,2295101073,2733856160,2902087851,3202437046,2968011453,3936291284,3835036895,4136440770,4169408201,3535486456,3702665459,3467192302,3231722213,2051518780,1951317047,1716890410,1750902305,1113818384,1282050075,1584504582,1350078989,168810852,67556463,371049330,404016761,841739592,1008918595,775550814,540080725,3969562369,3801332234,4035489047,4269907996,3569255213,3669462566,3366754619,3332740144,2631065433,2463879762,2160117071,2395588676,2767645557,2868897406,3102011747,3069049960,202008497,33778362,270040487,504459436,875451293,975658646,675039627,641025152,2084704233,1917518562,1615861247,1851332852,1147550661,1248802510,1484005843,1451044056,933301370,967311729,733156972,632953703,260388950,25965917,328671808,496906059,1206477858,1239443753,1543208500,1441952575,2144161806,1908694277,1675577880,1842759443,3610369226,3644379585,3408119516,3307916247,4011190502,3776767469,4077384432,4245618683,2809771154,2842737049,3144396420,3043140495,2673705150,2438237621,2203032232,2370213795]),this._mixCol=new Uint8Array(256);for(let e=0;e<256;e++)this._mixCol[e]=e<128?e<<1:e<<1^27;this.buffer=new Uint8Array(16),this.bufferPosition=0}_expandKey(e){(0,r.unreachable)("Cannot call `_expandKey` on the base class")}_decrypt(e,t){let n,r,i;const o=new Uint8Array(16);o.set(e);for(let s=0,a=this._keySize;s<16;++s,++a)o[s]^=t[a];for(let s=this._cyclesOfRepetition-1;s>=1;--s){n=o[13],o[13]=o[9],o[9]=o[5],o[5]=o[1],o[1]=n,n=o[14],r=o[10],o[14]=o[6],o[10]=o[2],o[6]=n,o[2]=r,n=o[15],r=o[11],i=o[7],o[15]=o[3],o[11]=n,o[7]=r,o[3]=i;for(let e=0;e<16;++e)o[e]=this._inv_s[o[e]];for(let e=0,n=16*s;e<16;++e,++n)o[e]^=t[n];for(let e=0;e<16;e+=4){const t=this._mix[o[e]],r=this._mix[o[e+1]],i=this._mix[o[e+2]],s=this._mix[o[e+3]];n=t^r>>>8^r<<24^i>>>16^i<<16^s>>>24^s<<8,o[e]=n>>>24&255,o[e+1]=n>>16&255,o[e+2]=n>>8&255,o[e+3]=255&n}}n=o[13],o[13]=o[9],o[9]=o[5],o[5]=o[1],o[1]=n,n=o[14],r=o[10],o[14]=o[6],o[10]=o[2],o[6]=n,o[2]=r,n=o[15],r=o[11],i=o[7],o[15]=o[3],o[11]=n,o[7]=r,o[3]=i;for(let s=0;s<16;++s)o[s]=this._inv_s[o[s]],o[s]^=t[s];return o}_encrypt(e,t){const n=this._s;let r,i,o;const s=new Uint8Array(16);s.set(e);for(let a=0;a<16;++a)s[a]^=t[a];for(let a=1;a<this._cyclesOfRepetition;a++){for(let e=0;e<16;++e)s[e]=n[s[e]];o=s[1],s[1]=s[5],s[5]=s[9],s[9]=s[13],s[13]=o,o=s[2],i=s[6],s[2]=s[10],s[6]=s[14],s[10]=o,s[14]=i,o=s[3],i=s[7],r=s[11],s[3]=s[15],s[7]=o,s[11]=i,s[15]=r;for(let e=0;e<16;e+=4){const t=s[e+0],n=s[e+1],i=s[e+2],o=s[e+3];r=t^n^i^o,s[e+0]^=r^this._mixCol[t^n],s[e+1]^=r^this._mixCol[n^i],s[e+2]^=r^this._mixCol[i^o],s[e+3]^=r^this._mixCol[o^t]}for(let e=0,n=16*a;e<16;++e,++n)s[e]^=t[n]}for(let a=0;a<16;++a)s[a]=n[s[a]];o=s[1],s[1]=s[5],s[5]=s[9],s[9]=s[13],s[13]=o,o=s[2],i=s[6],s[2]=s[10],s[6]=s[14],s[10]=o,s[14]=i,o=s[3],i=s[7],r=s[11],s[3]=s[15],s[7]=o,s[11]=i,s[15]=r;for(let a=0,l=this._keySize;a<16;++a,++l)s[a]^=t[l];return s}_decryptBlock2(e,t){const n=e.length;let r=this.buffer,i=this.bufferPosition;const o=[];let s=this.iv;for(let c=0;c<n;++c){if(r[i]=e[c],++i,i<16)continue;const t=this._decrypt(r,this._key);for(let e=0;e<16;++e)t[e]^=s[e];s=r,o.push(t),r=new Uint8Array(16),i=0}if(this.buffer=r,this.bufferLength=i,this.iv=s,0===o.length)return new Uint8Array(0);let a=16*o.length;if(t){const e=o.at(-1);let t=e[15];if(t<=16){for(let n=15,r=16-t;n>=r;--n)if(e[n]!==t){t=0;break}a-=t,o[o.length-1]=e.subarray(0,16-t)}}const l=new Uint8Array(a);for(let c=0,u=0,d=o.length;c<d;++c,u+=16)l.set(o[c],u);return l}decryptBlock(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;const r=e.length,i=this.buffer;let o=this.bufferPosition;if(n)this.iv=n;else{for(let t=0;o<16&&t<r;++t,++o)i[o]=e[t];if(o<16)return this.bufferLength=o,new Uint8Array(0);this.iv=i,e=e.subarray(16)}return this.buffer=new Uint8Array(16),this.bufferLength=0,this.decryptBlock=this._decryptBlock2,this.decryptBlock(e,t)}encrypt(e,t){const n=e.length;let r=this.buffer,i=this.bufferPosition;const o=[];t||(t=new Uint8Array(16));for(let l=0;l<n;++l){if(r[i]=e[l],++i,i<16)continue;for(let e=0;e<16;++e)r[e]^=t[e];const n=this._encrypt(r,this._key);t=n,o.push(n),r=new Uint8Array(16),i=0}if(this.buffer=r,this.bufferLength=i,this.iv=t,0===o.length)return new Uint8Array(0);const s=16*o.length,a=new Uint8Array(s);for(let l=0,c=0,u=o.length;l<u;++l,c+=16)a.set(o[l],c);return a}}class f extends p{constructor(e){super(),this._cyclesOfRepetition=10,this._keySize=160,this._rcon=new Uint8Array([141,1,2,4,8,16,32,64,128,27,54,108,216,171,77,154,47,94,188,99,198,151,53,106,212,179,125,250,239,197,145,57,114,228,211,189,97,194,159,37,74,148,51,102,204,131,29,58,116,232,203,141,1,2,4,8,16,32,64,128,27,54,108,216,171,77,154,47,94,188,99,198,151,53,106,212,179,125,250,239,197,145,57,114,228,211,189,97,194,159,37,74,148,51,102,204,131,29,58,116,232,203,141,1,2,4,8,16,32,64,128,27,54,108,216,171,77,154,47,94,188,99,198,151,53,106,212,179,125,250,239,197,145,57,114,228,211,189,97,194,159,37,74,148,51,102,204,131,29,58,116,232,203,141,1,2,4,8,16,32,64,128,27,54,108,216,171,77,154,47,94,188,99,198,151,53,106,212,179,125,250,239,197,145,57,114,228,211,189,97,194,159,37,74,148,51,102,204,131,29,58,116,232,203,141,1,2,4,8,16,32,64,128,27,54,108,216,171,77,154,47,94,188,99,198,151,53,106,212,179,125,250,239,197,145,57,114,228,211,189,97,194,159,37,74,148,51,102,204,131,29,58,116,232,203,141]),this._key=this._expandKey(e)}_expandKey(e){const t=this._s,n=this._rcon,r=new Uint8Array(176);r.set(e);for(let i=16,o=1;i<176;++o){let e=r[i-3],s=r[i-2],a=r[i-1],l=r[i-4];e=t[e],s=t[s],a=t[a],l=t[l],e^=n[o];for(let t=0;t<4;++t)r[i]=e^=r[i-16],i++,r[i]=s^=r[i-16],i++,r[i]=a^=r[i-16],i++,r[i]=l^=r[i-16],i++}return r}}t.AES128Cipher=f;class g extends p{constructor(e){super(),this._cyclesOfRepetition=14,this._keySize=224,this._key=this._expandKey(e)}_expandKey(e){const t=this._s,n=new Uint8Array(240);n.set(e);let r,i,o,s,a=1;for(let l=32,c=1;l<240;++c){l%32===16?(r=t[r],i=t[i],o=t[o],s=t[s]):l%32===0&&(r=n[l-3],i=n[l-2],o=n[l-1],s=n[l-4],r=t[r],i=t[i],o=t[o],s=t[s],r^=a,(a<<=1)>=256&&(a=255&(27^a)));for(let e=0;e<4;++e)n[l]=r^=n[l-32],l++,n[l]=i^=n[l-32],l++,n[l]=o^=n[l-32],l++,n[l]=s^=n[l-32],l++}return n}}t.AES256Cipher=g;class m{checkOwnerPassword(e,t,n,i){const o=new Uint8Array(e.length+56);o.set(e,0),o.set(t,e.length),o.set(n,e.length+t.length);const s=c(o,0,o.length);return(0,r.isArrayEqual)(s,i)}checkUserPassword(e,t,n){const i=new Uint8Array(e.length+8);i.set(e,0),i.set(t,e.length);const o=c(i,0,i.length);return(0,r.isArrayEqual)(o,n)}getOwnerKey(e,t,n,r){const i=new Uint8Array(e.length+56);i.set(e,0),i.set(t,e.length),i.set(n,e.length+t.length);const o=c(i,0,i.length);return new g(o).decryptBlock(r,!1,new Uint8Array(16))}getUserKey(e,t,n){const r=new Uint8Array(e.length+8);r.set(e,0),r.set(t,e.length);const i=c(r,0,r.length);return new g(i).decryptBlock(n,!1,new Uint8Array(16))}}t.PDF17=m;const y=function(){function e(e,t,n){let r=c(t,0,t.length).subarray(0,32),i=[0],o=0;for(;o<64||i.at(-1)>o-32;){const t=e.length+r.length+n.length,s=new Uint8Array(t);let a=0;s.set(e,a),a+=e.length,s.set(r,a),a+=r.length,s.set(n,a);const l=new Uint8Array(64*t);for(let e=0,n=0;e<64;e++,n+=t)l.set(s,n);i=new f(r.subarray(0,16)).encrypt(l,r.subarray(16,32));const h=i.slice(0,16).reduce(((e,t)=>e+t),0)%3;0===h?r=c(i,0,i.length):1===h?r=d(i,0,i.length):2===h&&(r=u(i,0,i.length)),o++}return r.subarray(0,32)}return class{hash(t,n,r){return e(t,n,r)}checkOwnerPassword(t,n,i,o){const s=new Uint8Array(t.length+56);s.set(t,0),s.set(n,t.length),s.set(i,t.length+n.length);const a=e(t,s,i);return(0,r.isArrayEqual)(a,o)}checkUserPassword(t,n,i){const o=new Uint8Array(t.length+8);o.set(t,0),o.set(n,t.length);const s=e(t,o,[]);return(0,r.isArrayEqual)(s,i)}getOwnerKey(t,n,r,i){const o=new Uint8Array(t.length+56);o.set(t,0),o.set(n,t.length),o.set(r,t.length+n.length);const s=e(t,o,r);return new g(s).decryptBlock(i,!1,new Uint8Array(16))}getUserKey(t,n,r){const i=new Uint8Array(t.length+8);i.set(t,0),i.set(n,t.length);const o=e(t,i,[]);return new g(o).decryptBlock(r,!1,new Uint8Array(16))}}}();t.PDF20=y;class v{constructor(e,t){this.StringCipherConstructor=e,this.StreamCipherConstructor=t}createStream(e,t){const n=new this.StreamCipherConstructor;return new o.DecryptStream(e,t,(function(e,t){return n.decryptBlock(e,t)}))}decryptString(e){const t=new this.StringCipherConstructor;let n=(0,r.stringToBytes)(e);return n=t.decryptBlock(n,!0),(0,r.bytesToString)(n)}encryptString(e){const t=new this.StringCipherConstructor;if(t instanceof p){const n=16-e.length%16;e+=String.fromCharCode(n).repeat(n);const i=new Uint8Array(16);if("undefined"!==typeof crypto)crypto.getRandomValues(i);else for(let e=0;e<16;e++)i[e]=Math.floor(256*Math.random());let o=(0,r.stringToBytes)(e);o=t.encrypt(o,i);const s=new Uint8Array(16+o.length);return s.set(i),s.set(o,16),(0,r.bytesToString)(s)}let n=(0,r.stringToBytes)(e);return n=t.encrypt(n),(0,r.bytesToString)(n)}}const _=function(){const e=new Uint8Array([40,191,78,94,78,117,138,65,100,0,78,86,255,250,1,8,46,46,0,182,208,104,62,128,47,12,169,254,100,83,105,122]);function t(t,n,r,i,o,l,c,u){const d=40+r.length+t.length,h=new Uint8Array(d);let p,f,g=0;if(n)for(f=Math.min(32,n.length);g<f;++g)h[g]=n[g];for(p=0;g<32;)h[g++]=e[p++];for(p=0,f=r.length;p<f;++p)h[g++]=r[p];for(h[g++]=255&o,h[g++]=o>>8&255,h[g++]=o>>16&255,h[g++]=o>>>24&255,p=0,f=t.length;p<f;++p)h[g++]=t[p];l>=4&&!u&&(h[g++]=255,h[g++]=255,h[g++]=255,h[g++]=255);let m=a(h,0,g);const y=c>>3;if(l>=3)for(p=0;p<50;++p)m=a(m,0,y);const v=m.subarray(0,y);let _,b;if(l>=3){for(g=0;g<32;++g)h[g]=e[g];for(p=0,f=t.length;p<f;++p)h[g++]=t[p];_=new s(v),b=_.encryptBlock(a(h,0,g)),f=v.length;const n=new Uint8Array(f);for(p=1;p<=19;++p){for(let e=0;e<f;++e)n[e]=v[e]^p;_=new s(n),b=_.encryptBlock(b)}for(p=0,f=b.length;p<f;++p)if(i[p]!==b[p])return null}else for(_=new s(v),b=_.encryptBlock(e),p=0,f=b.length;p<f;++p)if(i[p]!==b[p])return null;return v}const n=i.Name.get("Identity");function o(e,t,n){let r=arguments.length>3&&void 0!==arguments[3]&&arguments[3];const i=new Uint8Array(n.length+9),o=n.length;let s;for(s=0;s<o;++s)i[s]=n[s];return i[s++]=255&e,i[s++]=e>>8&255,i[s++]=e>>16&255,i[s++]=255&t,i[s++]=t>>8&255,r&&(i[s++]=115,i[s++]=65,i[s++]=108,i[s++]=84),a(i,0,s).subarray(0,Math.min(n.length+5,16))}function l(e,t,n,a,l){if(!(t instanceof i.Name))throw new r.FormatError("Invalid crypt filter name.");const c=e.get(t.name);let u;if(null!==c&&void 0!==c&&(u=c.get("CFM")),!u||"None"===u.name)return function(){return new h};if("V2"===u.name)return function(){return new s(o(n,a,l,!1))};if("AESV2"===u.name)return function(){return new f(o(n,a,l,!0))};if("AESV3"===u.name)return function(){return new g(l)};throw new r.FormatError("Unknown crypto method")}return class{constructor(o,l,c){const u=o.get("Filter");if(!(0,i.isName)(u,"Standard"))throw new r.FormatError("unknown encryption method");this.filterName=u.name,this.dict=o;const d=o.get("V");if(!Number.isInteger(d)||1!==d&&2!==d&&4!==d&&5!==d)throw new r.FormatError("unsupported encryption algorithm");this.algorithm=d;let h=o.get("Length");if(!h)if(d<=3)h=40;else{const e=o.get("CF"),t=o.get("StmF");if(e instanceof i.Dict&&t instanceof i.Name){e.suppressEncryption=!0;const n=e.get(t.name);h=n&&n.get("Length")||128,h<40&&(h<<=3)}}if(!Number.isInteger(h)||h<40||h%8!==0)throw new r.FormatError("invalid key length");const p=(0,r.stringToBytes)(o.get("O")).subarray(0,32),f=(0,r.stringToBytes)(o.get("U")).subarray(0,32),g=o.get("P"),v=o.get("R"),_=(4===d||5===d)&&!1!==o.get("EncryptMetadata");this.encryptMetadata=_;const b=(0,r.stringToBytes)(l);let x,S;if(c){if(6===v)try{c=(0,r.utf8StringToString)(c)}catch(w){(0,r.warn)("CipherTransformFactory: Unable to convert UTF8 encoded password.")}x=(0,r.stringToBytes)(c)}if(5!==d)S=t(b,x,p,f,g,v,h,_);else{const e=(0,r.stringToBytes)(o.get("O")).subarray(32,40),t=(0,r.stringToBytes)(o.get("O")).subarray(40,48),n=(0,r.stringToBytes)(o.get("U")).subarray(0,48),i=(0,r.stringToBytes)(o.get("U")).subarray(32,40),s=(0,r.stringToBytes)(o.get("U")).subarray(40,48),a=(0,r.stringToBytes)(o.get("OE")),l=(0,r.stringToBytes)(o.get("UE"));(0,r.stringToBytes)(o.get("Perms")),S=function(e,t,n,r,i,o,s,a,l,c,u,d){if(t){const e=Math.min(127,t.length);t=t.subarray(0,e)}else t=[];let h;return h=6===e?new y:new m,h.checkUserPassword(t,a,s)?h.getUserKey(t,l,u):t.length&&h.checkOwnerPassword(t,r,o,n)?h.getOwnerKey(t,i,o,c):null}(v,x,p,e,t,n,f,i,s,a,l)}if(!S&&!c)throw new r.PasswordException("No password given",r.PasswordResponses.NEED_PASSWORD);if(!S&&c){const n=function(t,n,r,i){const o=new Uint8Array(32);let l=0;const c=Math.min(32,t.length);for(;l<c;++l)o[l]=t[l];let u=0;for(;l<32;)o[l++]=e[u++];let d=a(o,0,l);const h=i>>3;if(r>=3)for(u=0;u<50;++u)d=a(d,0,d.length);let p,f;if(r>=3){f=n;const e=new Uint8Array(h);for(u=19;u>=0;u--){for(let t=0;t<h;++t)e[t]=d[t]^u;p=new s(e),f=p.encryptBlock(f)}}else p=new s(d.subarray(0,h)),f=p.encryptBlock(n);return f}(x,p,v,h);S=t(b,n,p,f,g,v,h,_)}if(!S)throw new r.PasswordException("Incorrect Password",r.PasswordResponses.INCORRECT_PASSWORD);if(this.encryptionKey=S,d>=4){const e=o.get("CF");e instanceof i.Dict&&(e.suppressEncryption=!0),this.cf=e,this.stmf=o.get("StmF")||n,this.strf=o.get("StrF")||n,this.eff=o.get("EFF")||this.stmf}}createCipherTransform(e,t){if(4===this.algorithm||5===this.algorithm)return new v(l(this.cf,this.strf,e,t,this.encryptionKey),l(this.cf,this.stmf,e,t,this.encryptionKey));const n=o(e,t,this.encryptionKey,!1),r=function(){return new s(n)};return new v(r,r)}}}();t.CipherTransformFactory=_},(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.DecryptStream=void 0;var r=n(17);class i extends r.DecodeStream{constructor(e,t,n){super(t),this.str=e,this.dict=e.dict,this.decrypt=n,this.nextChunk=null,this.initialized=!1}readBlock(){let e;if(this.initialized?e=this.nextChunk:(e=this.str.getBytes(512),this.initialized=!0),!e||0===e.length)return void(this.eof=!0);this.nextChunk=this.str.getBytes(512);const t=this.nextChunk&&this.nextChunk.length>0;e=(0,this.decrypt)(e,!t);const n=this.bufferLength,r=n+e.length;this.ensureBuffer(r).set(e,n),this.bufferLength=r}}t.DecryptStream=i},(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.Catalog=void 0;var r=n(4),i=n(2),o=n(3),s=n(68),a=n(5),l=n(69),c=n(12),u=n(70),d=n(57),h=n(71),p=n(72);function f(e){return e instanceof o.Dict&&(e=e.get("D")),Array.isArray(e)?e:null}class g{constructor(e,t){if(this.pdfManager=e,this.xref=t,this._catDict=t.getCatalogObj(),!(this._catDict instanceof o.Dict))throw new i.FormatError("Catalog object is not a dictionary.");this.toplevelPagesDict,this._actualNumPages=null,this.fontCache=new o.RefSetCache,this.builtInCMapCache=new Map,this.standardFontDataCache=new Map,this.globalImageCache=new d.GlobalImageCache,this.pageKidsCountCache=new o.RefSetCache,this.pageIndexCache=new o.RefSetCache,this.nonBlendModesSet=new o.RefSet}get version(){const e=this._catDict.get("Version");if(e instanceof o.Name){if(r.PDF_VERSION_REGEXP.test(e.name))return(0,i.shadow)(this,"version",e.name);(0,i.warn)("Invalid PDF catalog version: ".concat(e.name))}return(0,i.shadow)(this,"version",null)}get lang(){const e=this._catDict.get("Lang");return(0,i.shadow)(this,"lang","string"===typeof e?(0,i.stringToPDFString)(e):null)}get needsRendering(){const e=this._catDict.get("NeedsRendering");return(0,i.shadow)(this,"needsRendering","boolean"===typeof e&&e)}get collection(){let e=null;try{const t=this._catDict.get("Collection");t instanceof o.Dict&&t.size>0&&(e=t)}catch(t){if(t instanceof r.MissingDataException)throw t;(0,i.info)("Cannot fetch Collection entry; assuming no collection is present.")}return(0,i.shadow)(this,"collection",e)}get acroForm(){let e=null;try{const t=this._catDict.get("AcroForm");t instanceof o.Dict&&t.size>0&&(e=t)}catch(t){if(t instanceof r.MissingDataException)throw t;(0,i.info)("Cannot fetch AcroForm entry; assuming no forms are present.")}return(0,i.shadow)(this,"acroForm",e)}get acroFormRef(){const e=this._catDict.getRaw("AcroForm");return(0,i.shadow)(this,"acroFormRef",e instanceof o.Ref?e:null)}get metadata(){const e=this._catDict.getRaw("Metadata");if(!(e instanceof o.Ref))return(0,i.shadow)(this,"metadata",null);let t=null;try{const n=!(this.xref.encrypt&&this.xref.encrypt.encryptMetadata),r=this.xref.fetch(e,n);if(r instanceof a.BaseStream&&r.dict instanceof o.Dict){const e=r.dict.get("Type"),n=r.dict.get("Subtype");if((0,o.isName)(e,"Metadata")&&(0,o.isName)(n,"XML")){const e=(0,i.stringToUTF8String)(r.getString());e&&(t=new h.MetadataParser(e).serializable)}}}catch(n){if(n instanceof r.MissingDataException)throw n;(0,i.info)('Skipping invalid Metadata: "'.concat(n,'".'))}return(0,i.shadow)(this,"metadata",t)}get markInfo(){let e=null;try{e=this._readMarkInfo()}catch(t){if(t instanceof r.MissingDataException)throw t;(0,i.warn)("Unable to read mark info.")}return(0,i.shadow)(this,"markInfo",e)}_readMarkInfo(){const e=this._catDict.get("MarkInfo");if(!(e instanceof o.Dict))return null;const t={Marked:!1,UserProperties:!1,Suspects:!1};for(const n in t){const r=e.get(n);"boolean"===typeof r&&(t[n]=r)}return t}get structTreeRoot(){let e=null;try{e=this._readStructTreeRoot()}catch(t){if(t instanceof r.MissingDataException)throw t;(0,i.warn)("Unable read to structTreeRoot info.")}return(0,i.shadow)(this,"structTreeRoot",e)}_readStructTreeRoot(){const e=this._catDict.get("StructTreeRoot");if(!(e instanceof o.Dict))return null;const t=new p.StructTreeRoot(e);return t.init(),t}get toplevelPagesDict(){const e=this._catDict.get("Pages");if(!(e instanceof o.Dict))throw new i.FormatError("Invalid top-level pages dictionary.");return(0,i.shadow)(this,"toplevelPagesDict",e)}get documentOutline(){let e=null;try{e=this._readDocumentOutline()}catch(t){if(t instanceof r.MissingDataException)throw t;(0,i.warn)("Unable to read document outline.")}return(0,i.shadow)(this,"documentOutline",e)}_readDocumentOutline(){let e=this._catDict.get("Outlines");if(!(e instanceof o.Dict))return null;if(e=e.getRaw("First"),!(e instanceof o.Ref))return null;const t={items:[]},n=[{obj:e,parent:t}],r=new o.RefSet;r.put(e);const s=this.xref,a=new Uint8ClampedArray(3);for(;n.length>0;){const t=n.shift(),l=s.fetchIfRef(t.obj);if(null===l)continue;if(!l.has("Title"))throw new i.FormatError("Invalid outline item encountered.");const u={url:null,dest:null,action:null};g.parseDestDictionary({destDict:l,resultObj:u,docBaseUrl:this.pdfManager.docBaseUrl,docAttachments:this.attachments});const d=l.get("Title"),h=l.get("F")||0,p=l.getArray("C"),f=l.get("Count");let m=a;!Array.isArray(p)||3!==p.length||0===p[0]&&0===p[1]&&0===p[2]||(m=c.ColorSpace.singletons.rgb.getRgb(p,0));const y={action:u.action,attachment:u.attachment,dest:u.dest,url:u.url,unsafeUrl:u.unsafeUrl,newWindow:u.newWindow,setOCGState:u.setOCGState,title:(0,i.stringToPDFString)(d),color:m,count:Number.isInteger(f)?f:void 0,bold:!!(2&h),italic:!!(1&h),items:[]};t.parent.items.push(y),e=l.getRaw("First"),e instanceof o.Ref&&!r.has(e)&&(n.push({obj:e,parent:y}),r.put(e)),e=l.getRaw("Next"),e instanceof o.Ref&&!r.has(e)&&(n.push({obj:e,parent:t.parent}),r.put(e))}return t.items.length>0?t.items:null}get permissions(){let e=null;try{e=this._readPermissions()}catch(t){if(t instanceof r.MissingDataException)throw t;(0,i.warn)("Unable to read permissions.")}return(0,i.shadow)(this,"permissions",e)}_readPermissions(){const e=this.xref.trailer.get("Encrypt");if(!(e instanceof o.Dict))return null;let t=e.get("P");if("number"!==typeof t)return null;t+=2**32;const n=[];for(const r in i.PermissionFlag){const e=i.PermissionFlag[r];t&e&&n.push(e)}return n}get optionalContentConfig(){let e=null;try{const t=this._catDict.get("OCProperties");if(!t)return(0,i.shadow)(this,"optionalContentConfig",null);const n=t.get("D");if(!n)return(0,i.shadow)(this,"optionalContentConfig",null);const r=t.get("OCGs");if(!Array.isArray(r))return(0,i.shadow)(this,"optionalContentConfig",null);const s=[],a=[];for(const e of r){if(!(e instanceof o.Ref))continue;a.push(e);const t=this.xref.fetchIfRef(e);s.push({id:e.toString(),name:"string"===typeof t.get("Name")?(0,i.stringToPDFString)(t.get("Name")):null,intent:"string"===typeof t.get("Intent")?(0,i.stringToPDFString)(t.get("Intent")):null})}e=this._readOptionalContentConfig(n,a),e.groups=s}catch(t){if(t instanceof r.MissingDataException)throw t;(0,i.warn)("Unable to read optional content config: ".concat(t))}return(0,i.shadow)(this,"optionalContentConfig",e)}_readOptionalContentConfig(e,t){function n(e){const n=[];if(Array.isArray(e))for(const r of e)r instanceof o.Ref&&t.includes(r)&&n.push(r.toString());return n}function r(e){let n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;if(!Array.isArray(e))return null;const r=[];for(const a of e){if(a instanceof o.Ref&&t.includes(a)){l.put(a),r.push(a.toString());continue}const e=s(a,n);e&&r.push(e)}if(n>0)return r;const i=[];for(const o of t)l.has(o)||i.push(o.toString());return i.length&&r.push({name:null,order:i}),r}function s(e,t){if(++t>c)return(0,i.warn)("parseNestedOrder - reached MAX_NESTED_LEVELS."),null;const n=a.fetchIfRef(e);if(!Array.isArray(n))return null;const o=a.fetchIfRef(n[0]);if("string"!==typeof o)return null;const s=r(n.slice(1),t);return s&&s.length?{name:(0,i.stringToPDFString)(o),order:s}:null}const a=this.xref,l=new o.RefSet,c=10;return{name:"string"===typeof e.get("Name")?(0,i.stringToPDFString)(e.get("Name")):null,creator:"string"===typeof e.get("Creator")?(0,i.stringToPDFString)(e.get("Creator")):null,baseState:e.get("BaseState")instanceof o.Name?e.get("BaseState").name:null,on:n(e.get("ON")),off:n(e.get("OFF")),order:r(e.get("Order")),groups:null}}setActualNumPages(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;this._actualNumPages=e}get hasActualNumPages(){return null!==this._actualNumPages}get _pagesCount(){const e=this.toplevelPagesDict.get("Count");if(!Number.isInteger(e))throw new i.FormatError("Page count in top-level pages dictionary is not an integer.");return(0,i.shadow)(this,"_pagesCount",e)}get numPages(){return this.hasActualNumPages?this._actualNumPages:this._pagesCount}get destinations(){const e=this._readDests(),t=Object.create(null);if(e instanceof s.NameTree)for(const[n,r]of e.getAll()){const e=f(r);e&&(t[(0,i.stringToPDFString)(n)]=e)}else e instanceof o.Dict&&e.forEach((function(e,n){const r=f(n);r&&(t[e]=r)}));return(0,i.shadow)(this,"destinations",t)}getDestination(e){const t=this._readDests();if(t instanceof s.NameTree){const n=f(t.get(e));if(n)return n;const r=this.destinations[e];if(r)return(0,i.warn)('Found "'.concat(e,'" at an incorrect position in the NameTree.')),r}else if(t instanceof o.Dict){const n=f(t.get(e));if(n)return n}return null}_readDests(){const e=this._catDict.get("Names");return e&&e.has("Dests")?new s.NameTree(e.getRaw("Dests"),this.xref):this._catDict.has("Dests")?this._catDict.get("Dests"):void 0}get pageLabels(){let e=null;try{e=this._readPageLabels()}catch(t){if(t instanceof r.MissingDataException)throw t;(0,i.warn)("Unable to read page labels.")}return(0,i.shadow)(this,"pageLabels",e)}_readPageLabels(){const e=this._catDict.getRaw("PageLabels");if(!e)return null;const t=new Array(this.numPages);let n=null,a="";const l=new s.NumberTree(e,this.xref).getAll();let c="",u=1;for(let s=0,d=this.numPages;s<d;s++){const e=l.get(s);if(void 0!==e){if(!(e instanceof o.Dict))throw new i.FormatError("PageLabel is not a dictionary.");if(e.has("Type")&&!(0,o.isName)(e.get("Type"),"PageLabel"))throw new i.FormatError("Invalid type in PageLabel dictionary.");if(e.has("S")){const t=e.get("S");if(!(t instanceof o.Name))throw new i.FormatError("Invalid style in PageLabel dictionary.");n=t.name}else n=null;if(e.has("P")){const t=e.get("P");if("string"!==typeof t)throw new i.FormatError("Invalid prefix in PageLabel dictionary.");a=(0,i.stringToPDFString)(t)}else a="";if(e.has("St")){const t=e.get("St");if(!(Number.isInteger(t)&&t>=1))throw new i.FormatError("Invalid start in PageLabel dictionary.");u=t}else u=1}switch(n){case"D":c=u;break;case"R":case"r":c=(0,r.toRomanNumerals)(u,"r"===n);break;case"A":case"a":const e=26,t="a"===n?97:65,o=u-1;c=String.fromCharCode(t+o%e).repeat(Math.floor(o/e)+1);break;default:if(n)throw new i.FormatError('Invalid style "'.concat(n,'" in PageLabel dictionary.'));c=""}t[s]=a+c,u++}return t}get pageLayout(){const e=this._catDict.get("PageLayout");let t="";if(e instanceof o.Name)switch(e.name){case"SinglePage":case"OneColumn":case"TwoColumnLeft":case"TwoColumnRight":case"TwoPageLeft":case"TwoPageRight":t=e.name}return(0,i.shadow)(this,"pageLayout",t)}get pageMode(){const e=this._catDict.get("PageMode");let t="UseNone";if(e instanceof o.Name)switch(e.name){case"UseNone":case"UseOutlines":case"UseThumbs":case"FullScreen":case"UseOC":case"UseAttachments":t=e.name}return(0,i.shadow)(this,"pageMode",t)}get viewerPreferences(){const e=this._catDict.get("ViewerPreferences");if(!(e instanceof o.Dict))return(0,i.shadow)(this,"viewerPreferences",null);let t=null;for(const n of e.getKeys()){const r=e.get(n);let s;switch(n){case"HideToolbar":case"HideMenubar":case"HideWindowUI":case"FitWindow":case"CenterWindow":case"DisplayDocTitle":case"PickTrayByPDFSize":"boolean"===typeof r&&(s=r);break;case"NonFullScreenPageMode":if(r instanceof o.Name)switch(r.name){case"UseNone":case"UseOutlines":case"UseThumbs":case"UseOC":s=r.name;break;default:s="UseNone"}break;case"Direction":if(r instanceof o.Name)switch(r.name){case"L2R":case"R2L":s=r.name;break;default:s="L2R"}break;case"ViewArea":case"ViewClip":case"PrintArea":case"PrintClip":if(r instanceof o.Name)switch(r.name){case"MediaBox":case"CropBox":case"BleedBox":case"TrimBox":case"ArtBox":s=r.name;break;default:s="CropBox"}break;case"PrintScaling":if(r instanceof o.Name)switch(r.name){case"None":case"AppDefault":s=r.name;break;default:s="AppDefault"}break;case"Duplex":if(r instanceof o.Name)switch(r.name){case"Simplex":case"DuplexFlipShortEdge":case"DuplexFlipLongEdge":s=r.name;break;default:s="None"}break;case"PrintPageRange":Array.isArray(r)&&r.length%2===0&&r.every(((e,t,n)=>Number.isInteger(e)&&e>0&&(0===t||e>=n[t-1])&&e<=this.numPages))&&(s=r);break;case"NumCopies":Number.isInteger(r)&&r>0&&(s=r);break;default:(0,i.warn)("Ignoring non-standard key in ViewerPreferences: ".concat(n,"."));continue}void 0!==s?(t||(t=Object.create(null)),t[n]=s):(0,i.warn)('Bad value, for key "'.concat(n,'", in ViewerPreferences: ').concat(r,"."))}return(0,i.shadow)(this,"viewerPreferences",t)}get openAction(){const e=this._catDict.get("OpenAction"),t=Object.create(null);if(e instanceof o.Dict){const n=new o.Dict(this.xref);n.set("A",e);const r={url:null,dest:null,action:null};g.parseDestDictionary({destDict:n,resultObj:r}),Array.isArray(r.dest)?t.dest=r.dest:r.action&&(t.action=r.action)}else Array.isArray(e)&&(t.dest=e);return(0,i.shadow)(this,"openAction",(0,i.objectSize)(t)>0?t:null)}get attachments(){const e=this._catDict.get("Names");let t=null;if(e instanceof o.Dict&&e.has("EmbeddedFiles")){const n=new s.NameTree(e.getRaw("EmbeddedFiles"),this.xref);for(const[e,r]of n.getAll()){const n=new u.FileSpec(r,this.xref);t||(t=Object.create(null)),t[(0,i.stringToPDFString)(e)]=n.serializable}}return(0,i.shadow)(this,"attachments",t)}get xfaImages(){const e=this._catDict.get("Names");let t=null;if(e instanceof o.Dict&&e.has("XFAImages")){const n=new s.NameTree(e.getRaw("XFAImages"),this.xref);for(const[e,r]of n.getAll())t||(t=new o.Dict(this.xref)),t.set((0,i.stringToPDFString)(e),r)}return(0,i.shadow)(this,"xfaImages",t)}_collectJavaScript(){const e=this._catDict.get("Names");let t=null;function n(e,n){if(!(n instanceof o.Dict))return;if(!(0,o.isName)(n.get("S"),"JavaScript"))return;let r=n.get("JS");if(r instanceof a.BaseStream)r=r.getString();else if("string"!==typeof r)return;null===t&&(t=new Map),r=(0,i.stringToPDFString)(r).replace(/\u0000/g,""),t.set(e,r)}if(e instanceof o.Dict&&e.has("JavaScript")){const t=new s.NameTree(e.getRaw("JavaScript"),this.xref);for(const[e,r]of t.getAll())n((0,i.stringToPDFString)(e),r)}const r=this._catDict.get("OpenAction");return r&&n("OpenAction",r),t}get javaScript(){const e=this._collectJavaScript();return(0,i.shadow)(this,"javaScript",e?[...e.values()]:null)}get jsActions(){const e=this._collectJavaScript();let t=(0,r.collectActions)(this.xref,this._catDict,i.DocumentActionEventType);if(e){t||(t=Object.create(null));for(const[n,r]of e)n in t?t[n].push(r):t[n]=[r]}return(0,i.shadow)(this,"jsActions",t)}async fontFallback(e,t){const n=await Promise.all(this.fontCache);for(const r of n)if(r.loadedName===e)return void r.fallback(t)}async cleanup(){let e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];(0,l.clearGlobalCaches)(),this.globalImageCache.clear(e),this.pageKidsCountCache.clear(),this.pageIndexCache.clear(),this.nonBlendModesSet.clear();const t=await Promise.all(this.fontCache);for(const{dict:n}of t)delete n.cacheKey;this.fontCache.clear(),this.builtInCMapCache.clear(),this.standardFontDataCache.clear()}async getPageDict(e){const t=[this.toplevelPagesDict],n=new o.RefSet,r=this._catDict.getRaw("Pages");r instanceof o.Ref&&n.put(r);const s=this.xref,a=this.pageKidsCountCache,l=this.pageIndexCache;let c=0;for(;t.length;){const r=t.pop();if(r instanceof o.Ref){const u=a.get(r);if(u>=0&&c+u<=e){c+=u;continue}if(n.has(r))throw new i.FormatError("Pages tree contains circular reference.");n.put(r);const d=await s.fetchAsync(r);if(d instanceof o.Dict){let t=d.getRaw("Type");if(t instanceof o.Ref&&(t=await s.fetchAsync(t)),(0,o.isName)(t,"Page")||!d.has("Kids")){if(a.has(r)||a.put(r,1),l.has(r)||l.put(r,c),c===e)return[d,r];c++;continue}}t.push(d);continue}if(!(r instanceof o.Dict))throw new i.FormatError("Page dictionary kid reference points to wrong type of object.");const{objId:u}=r;let d=r.getRaw("Count");if(d instanceof o.Ref&&(d=await s.fetchAsync(d)),Number.isInteger(d)&&d>=0&&(u&&!a.has(u)&&a.put(u,d),c+d<=e)){c+=d;continue}let h=r.getRaw("Kids");if(h instanceof o.Ref&&(h=await s.fetchAsync(h)),!Array.isArray(h)){let t=r.getRaw("Type");if(t instanceof o.Ref&&(t=await s.fetchAsync(t)),(0,o.isName)(t,"Page")||!r.has("Kids")){if(c===e)return[r,null];c++;continue}throw new i.FormatError("Page dictionary kids object is not an array.")}for(let e=h.length-1;e>=0;e--)t.push(h[e])}throw new Error("Page index ".concat(e," not found."))}async getAllPageDicts(){let e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];const{ignoreErrors:t}=this.pdfManager.evaluatorOptions,n=[{currentNode:this.toplevelPagesDict,posInKids:0}],s=new o.RefSet,a=this._catDict.getRaw("Pages");a instanceof o.Ref&&s.put(a);const l=new Map,c=this.xref,u=this.pageIndexCache;let d=0;function h(n){if(n instanceof r.XRefEntryException&&!e)throw n;e&&t&&0===d&&((0,i.warn)('getAllPageDicts - Skipping invalid first page: "'.concat(n,'".')),n=o.Dict.empty),l.set(d++,[n,null])}for(;n.length>0;){const e=n.at(-1),{currentNode:t,posInKids:r}=e;let a=t.getRaw("Kids");if(a instanceof o.Ref)try{a=await c.fetchAsync(a)}catch(g){h(g);break}if(!Array.isArray(a)){h(new i.FormatError("Page dictionary kids object is not an array."));break}if(r>=a.length){n.pop();continue}const m=a[r];let y;if(m instanceof o.Ref){if(s.has(m)){h(new i.FormatError("Pages tree contains circular reference."));break}s.put(m);try{y=await c.fetchAsync(m)}catch(g){h(g);break}}else y=m;if(!(y instanceof o.Dict)){h(new i.FormatError("Page dictionary kid reference points to wrong type of object."));break}let v=y.getRaw("Type");if(v instanceof o.Ref)try{v=await c.fetchAsync(v)}catch(g){h(g);break}(0,o.isName)(v,"Page")||!y.has("Kids")?(p=y,(f=m instanceof o.Ref?m:null)&&!u.has(f)&&u.put(f,d),l.set(d++,[p,f])):n.push({currentNode:y,posInKids:0}),e.posInKids++}var p,f;return l}getPageIndex(e){const t=this.pageIndexCache.get(e);if(void 0!==t)return Promise.resolve(t);const n=this.xref;let r=0;const s=t=>function(t){let r,s=0;return n.fetchAsync(t).then((function(n){if((0,o.isRefsEqual)(t,e)&&!(0,o.isDict)(n,"Page")&&!(n instanceof o.Dict&&!n.has("Type")&&n.has("Contents")))throw new i.FormatError("The reference does not point to a /Page dictionary.");if(!n)return null;if(!(n instanceof o.Dict))throw new i.FormatError("Node must be a dictionary.");return r=n.getRaw("Parent"),n.getAsync("Parent")})).then((function(e){if(!e)return null;if(!(e instanceof o.Dict))throw new i.FormatError("Parent must be a dictionary.");return e.getAsync("Kids")})).then((function(e){if(!e)return null;const a=[];let l=!1;for(const r of e){if(!(r instanceof o.Ref))throw new i.FormatError("Kid must be a reference.");if((0,o.isRefsEqual)(r,t)){l=!0;break}a.push(n.fetchAsync(r).then((function(e){if(!(e instanceof o.Dict))throw new i.FormatError("Kid node must be a dictionary.");e.has("Count")?s+=e.get("Count"):s++})))}if(!l)throw new i.FormatError("Kid reference not found in parent's kids.");return Promise.all(a).then((function(){return[s,r]}))}))}(t).then((t=>{if(!t)return this.pageIndexCache.put(e,r),r;const[n,i]=t;return r+=n,s(i)}));return s(e)}get baseUrl(){const e=this._catDict.get("URI");if(e instanceof o.Dict){const t=e.get("Base");if("string"===typeof t){const e=(0,i.createValidAbsoluteUrl)(t,null,{tryConvertEncoding:!0});if(e)return(0,i.shadow)(this,"baseUrl",e.href)}}return(0,i.shadow)(this,"baseUrl",null)}static parseDestDictionary(e){const t=e.destDict;if(!(t instanceof o.Dict))return void(0,i.warn)("parseDestDictionary: `destDict` must be a dictionary.");const n=e.resultObj;if("object"!==typeof n)return void(0,i.warn)("parseDestDictionary: `resultObj` must be an object.");const s=e.docBaseUrl||null,l=e.docAttachments||null;let c,u,d=t.get("A");if(d instanceof o.Dict||(t.has("Dest")?d=t.get("Dest"):(d=t.get("AA"),d instanceof o.Dict&&(d.has("D")?d=d.get("D"):d.has("U")&&(d=d.get("U"))))),d instanceof o.Dict){const e=d.get("S");if(!(e instanceof o.Name))return void(0,i.warn)("parseDestDictionary: Invalid type in Action dictionary.");const t=e.name;switch(t){case"ResetForm":const e=d.get("Flags"),s=0===(1&("number"===typeof e?e:0)),h=[],p=[];for(const t of d.get("Fields")||[])t instanceof o.Ref?p.push(t.toString()):"string"===typeof t&&h.push((0,i.stringToPDFString)(t));n.resetForm={fields:h,refs:p,include:s};break;case"URI":c=d.get("URI"),c instanceof o.Name&&(c="/"+c.name);break;case"GoTo":u=d.get("D");break;case"Launch":case"GoToR":const f=d.get("F");f instanceof o.Dict?c=f.get("F")||null:"string"===typeof f&&(c=f);let g=d.get("D");if(g&&(g instanceof o.Name&&(g=g.name),"string"===typeof c)){const e=c.split("#")[0];"string"===typeof g?c=e+"#"+g:Array.isArray(g)&&(c=e+"#"+JSON.stringify(g))}const m=d.get("NewWindow");"boolean"===typeof m&&(n.newWindow=m);break;case"GoToE":const y=d.get("T");let v;if(l&&y instanceof o.Dict){const e=y.get("R"),t=y.get("N");(0,o.isName)(e,"C")&&"string"===typeof t&&(v=l[(0,i.stringToPDFString)(t)])}v?n.attachment=v:(0,i.warn)('parseDestDictionary - unimplemented "GoToE" action.');break;case"Named":const _=d.get("N");_ instanceof o.Name&&(n.action=_.name);break;case"SetOCGState":const b=d.get("State"),x=d.get("PreserveRB");if(!Array.isArray(b)||0===b.length)break;const S=[];for(const t of b)if(t instanceof o.Name)switch(t.name){case"ON":case"OFF":case"Toggle":S.push(t.name)}else t instanceof o.Ref&&S.push(t.toString());if(S.length!==b.length)break;n.setOCGState={state:S,preserveRB:"boolean"!==typeof x||x};break;case"JavaScript":const w=d.get("JS");let E;w instanceof a.BaseStream?E=w.getString():"string"===typeof w&&(E=w);const P=E&&(0,r.recoverJsURL)((0,i.stringToPDFString)(E));if(P){c=P.url,n.newWindow=P.newWindow;break}default:if("JavaScript"===t||"SubmitForm"===t)break;(0,i.warn)('parseDestDictionary - unsupported action: "'.concat(t,'".'))}}else t.has("Dest")&&(u=t.get("Dest"));if("string"===typeof c){const e=(0,i.createValidAbsoluteUrl)(c,s,{addDefaultProtocol:!0,tryConvertEncoding:!0});e&&(n.url=e.href),n.unsafeUrl=c}u&&(u instanceof o.Name&&(u=u.name),"string"===typeof u?n.dest=(0,i.stringToPDFString)(u):Array.isArray(u)&&(n.dest=u))}}t.Catalog=g},(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.NumberTree=t.NameTree=void 0;var r=n(3),i=n(2);class o{constructor(e,t,n){this.constructor===o&&(0,i.unreachable)("Cannot initialize NameOrNumberTree."),this.root=e,this.xref=t,this._type=n}getAll(){const e=new Map;if(!this.root)return e;const t=this.xref,n=new r.RefSet;n.put(this.root);const o=[this.root];for(;o.length>0;){const s=t.fetchIfRef(o.shift());if(!(s instanceof r.Dict))continue;if(s.has("Kids")){const e=s.get("Kids");if(!Array.isArray(e))continue;for(const t of e){if(n.has(t))throw new i.FormatError('Duplicate entry in "'.concat(this._type,'" tree.'));o.push(t),n.put(t)}continue}const a=s.get(this._type);if(Array.isArray(a))for(let n=0,r=a.length;n<r;n+=2)e.set(t.fetchIfRef(a[n]),t.fetchIfRef(a[n+1]))}return e}get(e){if(!this.root)return null;const t=this.xref;let n=t.fetchIfRef(this.root),r=0;for(;n.has("Kids");){if(++r>10)return(0,i.warn)('Search depth limit reached for "'.concat(this._type,'" tree.')),null;const o=n.get("Kids");if(!Array.isArray(o))return null;let s=0,a=o.length-1;for(;s<=a;){const r=s+a>>1,i=t.fetchIfRef(o[r]),l=i.get("Limits");if(e<t.fetchIfRef(l[0]))a=r-1;else{if(!(e>t.fetchIfRef(l[1]))){n=i;break}s=r+1}}if(s>a)return null}const o=n.get(this._type);if(Array.isArray(o)){let n=0,r=o.length-2;for(;n<=r;){const i=n+r>>1,s=i+(1&i),a=t.fetchIfRef(o[s]);if(e<a)r=s-2;else{if(!(e>a))return t.fetchIfRef(o[s+1]);n=s+2}}}return null}}t.NameTree=class extends o{constructor(e,t){super(e,t,"Names")}},t.NumberTree=class extends o{constructor(e,t){super(e,t,"Nums")}}},(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.clearGlobalCaches=function(){(0,r.clearPrimitiveCaches)(),(0,i.clearUnicodeCaches)()};var r=n(3),i=n(38)},(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.FileSpec=void 0;var r=n(2),i=n(5),o=n(3);function s(e){return e.has("UF")?e.get("UF"):e.has("F")?e.get("F"):e.has("Unix")?e.get("Unix"):e.has("Mac")?e.get("Mac"):e.has("DOS")?e.get("DOS"):null}t.FileSpec=class{constructor(e,t){e instanceof o.Dict&&(this.xref=t,this.root=e,e.has("FS")&&(this.fs=e.get("FS")),this.description=e.has("Desc")?(0,r.stringToPDFString)(e.get("Desc")):"",e.has("RF")&&(0,r.warn)("Related file specifications are not supported"),this.contentAvailable=!0,e.has("EF")||(this.contentAvailable=!1,(0,r.warn)("Non-embedded file specifications are not supported")))}get filename(){if(!this._filename&&this.root){const e=s(this.root)||"unnamed";this._filename=(0,r.stringToPDFString)(e).replace(/\\\\/g,"\\").replace(/\\\//g,"/").replace(/\\/g,"/")}return this._filename}get content(){if(!this.contentAvailable)return null;!this.contentRef&&this.root&&(this.contentRef=s(this.root.get("EF")));let e=null;if(this.contentRef){const t=this.xref.fetchIfRef(this.contentRef);t instanceof i.BaseStream?e=t.getBytes():(0,r.warn)("Embedded file specification points to non-existing/invalid content")}else(0,r.warn)("Embedded file specification does not have a content");return e}get serializable(){return{filename:this.filename,content:this.content}}}},(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.MetadataParser=void 0;var r=n(64);t.MetadataParser=class{constructor(e){e=this._repair(e);const t=new r.SimpleXMLParser({lowerCaseName:!0}).parseFromString(e);this._metadataMap=new Map,this._data=e,t&&this._parse(t)}_repair(e){return e.replace(/^[^<]+/,"").replace(/>\\376\\377([^<]+)/g,(function(e,t){const n=t.replace(/\\([0-3])([0-7])([0-7])/g,(function(e,t,n,r){return String.fromCharCode(64*t+8*n+1*r)})).replace(/&(amp|apos|gt|lt|quot);/g,(function(e,t){switch(t){case"amp":return"&";case"apos":return"'";case"gt":return">";case"lt":return"<";case"quot":return'"'}throw new Error("_repair: ".concat(t," isn't defined."))})),r=[];for(let i=0,o=n.length;i<o;i+=2){const e=256*n.charCodeAt(i)+n.charCodeAt(i+1);e>=32&&e<127&&60!==e&&62!==e&&38!==e?r.push(String.fromCharCode(e)):r.push("&#x"+(65536+e).toString(16).substring(1)+";")}return">"+r.join("")}))}_getSequence(e){const t=e.nodeName;return"rdf:bag"!==t&&"rdf:seq"!==t&&"rdf:alt"!==t?null:e.childNodes.filter((e=>"rdf:li"===e.nodeName))}_parseArray(e){if(!e.hasChildNodes())return;const[t]=e.childNodes,n=this._getSequence(t)||[];this._metadataMap.set(e.nodeName,n.map((e=>e.textContent.trim())))}_parse(e){let t=e.documentElement;if("rdf:rdf"!==t.nodeName)for(t=t.firstChild;t&&"rdf:rdf"!==t.nodeName;)t=t.nextSibling;if(t&&"rdf:rdf"===t.nodeName&&t.hasChildNodes())for(const n of t.childNodes)if("rdf:description"===n.nodeName)for(const e of n.childNodes){const t=e.nodeName;switch(t){case"#text":continue;case"dc:creator":case"dc:subject":this._parseArray(e);continue}this._metadataMap.set(t,e.textContent.trim())}}get serializable(){return{parsedData:this._metadataMap,rawData:this._data}}}},(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.StructTreeRoot=t.StructTreePage=void 0;var r=n(3),i=n(2),o=n(68);const s="PAGE_CONTENT",a="STREAM_CONTENT",l="OBJECT",c="ELEMENT";t.StructTreeRoot=class{constructor(e){this.dict=e,this.roleMap=new Map}init(){this.readRoleMap()}readRoleMap(){const e=this.dict.get("RoleMap");e instanceof r.Dict&&e.forEach(((e,t)=>{t instanceof r.Name&&this.roleMap.set(e,t.name)}))}};class u{constructor(e,t){this.tree=e,this.dict=t,this.kids=[],this.parseKids()}get role(){const e=this.dict.get("S"),t=e instanceof r.Name?e.name:"",{root:n}=this.tree;return n.roleMap.has(t)?n.roleMap.get(t):t}parseKids(){let e=null;const t=this.dict.getRaw("Pg");t instanceof r.Ref&&(e=t.toString());const n=this.dict.get("K");if(Array.isArray(n))for(const r of n){const t=this.parseKid(e,r);t&&this.kids.push(t)}else{const t=this.parseKid(e,n);t&&this.kids.push(t)}}parseKid(e,t){if(Number.isInteger(t))return this.tree.pageDict.objId!==e?null:new d({type:s,mcid:t,pageObjId:e});let n=null;if(t instanceof r.Ref?n=this.dict.xref.fetch(t):t instanceof r.Dict&&(n=t),!n)return null;const i=n.getRaw("Pg");i instanceof r.Ref&&(e=i.toString());const o=n.get("Type")instanceof r.Name?n.get("Type").name:null;return"MCR"===o?this.tree.pageDict.objId!==e?null:new d({type:a,refObjId:n.getRaw("Stm")instanceof r.Ref?n.getRaw("Stm").toString():null,pageObjId:e,mcid:n.get("MCID")}):"OBJR"===o?this.tree.pageDict.objId!==e?null:new d({type:l,refObjId:n.getRaw("Obj")instanceof r.Ref?n.getRaw("Obj").toString():null,pageObjId:e}):new d({type:c,dict:n})}}class d{constructor(e){let{type:t,dict:n=null,mcid:r=null,pageObjId:i=null,refObjId:o=null}=e;this.type=t,this.dict=n,this.mcid=r,this.pageObjId=i,this.refObjId=o,this.parentNode=null}}t.StructTreePage=class{constructor(e,t){this.root=e,this.rootDict=e?e.dict:null,this.pageDict=t,this.nodes=[]}parse(){if(!this.root||!this.rootDict)return;const e=this.rootDict.get("ParentTree");if(!e)return;const t=this.pageDict.get("StructParents");if(!Number.isInteger(t))return;const n=new o.NumberTree(e,this.rootDict.xref).get(t);if(!Array.isArray(n))return;const i=new Map;for(const o of n)o instanceof r.Ref&&this.addNode(this.rootDict.xref.fetch(o),i)}addNode(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;if(n>40)return(0,i.warn)("StructTree MAX_DEPTH reached."),null;if(t.has(e))return t.get(e);const o=new u(this,e);t.set(e,o);const s=e.get("P");if(!s||(0,r.isName)(s.get("Type"),"StructTreeRoot"))return this.addTopLevelNode(e,o)||t.delete(e),o;const a=this.addNode(s,t,n+1);if(!a)return o;let l=!1;for(const r of a.kids)r.type===c&&r.dict===e&&(r.parentNode=o,l=!0);return l||t.delete(e),o}addTopLevelNode(e,t){const n=this.rootDict.get("K");if(!n)return!1;if(n instanceof r.Dict)return n.objId===e.objId&&(this.nodes[0]=t,!0);if(!Array.isArray(n))return!0;let i=!1;for(let r=0;r<n.length;r++){const o=n[r];o&&o.toString()===e.objId&&(this.nodes[r]=t,i=!0)}return i}get serializable(){function e(t,n){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;if(r>40)return void(0,i.warn)("StructTree too deep to be fully serialized.");const o=Object.create(null);o.role=t.role,o.children=[],n.children.push(o);const u=t.dict.get("Alt");"string"===typeof u&&(o.alt=(0,i.stringToPDFString)(u));const d=t.dict.get("Lang");"string"===typeof d&&(o.lang=(0,i.stringToPDFString)(d));for(const i of t.kids){const t=i.type===c?i.parentNode:null;t?e(t,o,r+1):i.type===s||i.type===a?o.children.push({type:"content",id:"page".concat(i.pageObjId,"_mcid").concat(i.mcid)}):i.type===l&&o.children.push({type:"object",id:i.refObjId})}}const t=Object.create(null);t.children=[],t.role="Root";for(const n of this.nodes)n&&e(n,t);return t}}},(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.ObjectLoader=void 0;var r=n(3),i=n(5),o=n(4),s=n(2);function a(e,t){if(e instanceof r.Dict)e=e.getRawValues();else if(e instanceof i.BaseStream)e=e.dict.getRawValues();else if(!Array.isArray(e))return;for(const o of e)((n=o)instanceof r.Ref||n instanceof r.Dict||n instanceof i.BaseStream||Array.isArray(n))&&t.push(o);var n}t.ObjectLoader=class{constructor(e,t,n){this.dict=e,this.keys=t,this.xref=n,this.refSet=null}async load(){if(this.xref.stream.isDataLoaded)return;const{keys:e,dict:t}=this;this.refSet=new r.RefSet;const n=[];for(const r of e){const e=t.getRaw(r);void 0!==e&&n.push(e)}return this._walk(n)}async _walk(e){const t=[],n=[];for(;e.length;){let c=e.pop();if(c instanceof r.Ref){if(this.refSet.has(c))continue;try{this.refSet.put(c),c=this.xref.fetch(c)}catch(l){if(!(l instanceof o.MissingDataException)){(0,s.warn)('ObjectLoader._walk - requesting all data: "'.concat(l,'".')),this.refSet=null;const{manager:e}=this.xref.stream;return e.requestAllChunks()}t.push(c),n.push({begin:l.begin,end:l.end})}}if(c instanceof i.BaseStream){const e=c.getBaseStreams();if(e){let r=!1;for(const t of e)t.isDataLoaded||(r=!0,n.push({begin:t.start,end:t.end}));r&&t.push(c)}}a(c,e)}if(n.length){await this.xref.stream.manager.requestRanges(n);for(const e of t)e instanceof r.Ref&&this.refSet.remove(e);return this._walk(t)}this.refSet=null}}},(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.XFAFactory=void 0;var r=n(75),i=n(79),o=n(85),s=n(83),a=n(76),l=n(2),c=n(86),u=n(96);class d{constructor(e){try{this.root=(new c.XFAParser).parse(d._createDocument(e));const t=new i.Binder(this.root);this.form=t.bind(),this.dataHandler=new o.DataHandler(this.root,t.getData()),this.form[r.$globalData].template=this.form}catch(t){(0,l.warn)("XFA - an error occurred during parsing and binding: ".concat(t))}}isValid(){return this.root&&this.form}_createPagesHelper(){const e=this.form[r.$toPages]();return new Promise(((t,n)=>{const r=()=>{try{const n=e.next();n.done?t(n.value):setTimeout(r,0)}catch(i){n(i)}};setTimeout(r,0)}))}async _createPages(){try{this.pages=await this._createPagesHelper(),this.dims=this.pages.children.map((e=>{const{width:t,height:n}=e.attributes.style;return[0,0,parseInt(t),parseInt(n)]}))}catch(e){(0,l.warn)("XFA - an error occurred during layout: ".concat(e))}}getBoundingBox(e){return this.dims[e]}async getNumPages(){return this.pages||await this._createPages(),this.dims.length}setImages(e){this.form[r.$globalData].images=e}setFonts(e){this.form[r.$globalData].fontFinder=new s.FontFinder(e);const t=[];for(let n of this.form[r.$globalData].usedTypefaces)n=(0,a.stripQuotes)(n),this.form[r.$globalData].fontFinder.find(n)||t.push(n);return t.length>0?t:null}appendFonts(e,t){this.form[r.$globalData].fontFinder.add(e,t)}async getPages(){this.pages||await this._createPages();const e=this.pages;return this.pages=null,e}serializeData(e){return this.dataHandler.serialize(e)}static _createDocument(e){return e["/xdp:xdp"]?Object.values(e).join(""):e["xdp:xdp"]}static getRichTextAsHtml(e){if(!e||"string"!==typeof e)return null;try{let t=new c.XFAParser(u.XhtmlNamespace,!0).parse(e);if(!["body","xhtml"].includes(t[r.$nodeName])){const e=u.XhtmlNamespace.body({});e[r.$appendChild](t),t=e}const n=t[r.$toHTML]();if(!n.success)return null;const{html:i}=n,{attributes:o}=i;return o&&(o.class&&(o.class=o.class.filter((e=>!e.startsWith("xfa")))),o.dir="auto"),{html:i,str:t[r.$text]()}}catch(t){(0,l.warn)("XFA - an error occurred during parsing of rich text: ".concat(t))}return null}}t.XFAFactory=d},(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.XmlObject=t.XFAObjectArray=t.XFAObject=t.XFAAttribute=t.StringObject=t.OptionObject=t.Option10=t.Option01=t.IntegerObject=t.ContentObject=t.$uid=t.$toStyle=t.$toString=t.$toPages=t.$toHTML=t.$text=t.$tabIndex=t.$setValue=t.$setSetAttributes=t.$setId=t.$searchNode=t.$root=t.$resolvePrototypes=t.$removeChild=t.$pushPara=t.$pushGlyphs=t.$popPara=t.$onText=t.$onChildCheck=t.$onChild=t.$nsAttributes=t.$nodeName=t.$namespaceId=t.$isUsable=t.$isTransparent=t.$isThereMoreWidth=t.$isSplittable=t.$isNsAgnostic=t.$isDescendent=t.$isDataValue=t.$isCDATAXml=t.$isBindable=t.$insertAt=t.$indexOf=t.$ids=t.$hasSettableValue=t.$globalData=t.$getTemplateRoot=t.$getSubformParent=t.$getRealChildrenByNameIt=t.$getParent=t.$getNextPage=t.$getExtra=t.$getDataValue=t.$getContainedChildren=t.$getChildrenByNameIt=t.$getChildrenByName=t.$getChildrenByClass=t.$getChildren=t.$getAvailableSpace=t.$getAttributes=t.$getAttributeIt=t.$flushHTML=t.$finalize=t.$extra=t.$dump=t.$data=t.$content=t.$consumed=t.$clone=t.$cleanup=t.$cleanPage=t.$clean=t.$childrenToHTML=t.$appendChild=t.$addHTML=t.$acceptWhitespace=void 0;var r=n(76),i=n(2),o=n(4),s=n(77),a=n(78);const l=Symbol();t.$acceptWhitespace=l;const c=Symbol();t.$addHTML=c;const u=Symbol();t.$appendChild=u;const d=Symbol();t.$childrenToHTML=d;const h=Symbol();t.$clean=h;const p=Symbol();t.$cleanPage=p;const f=Symbol();t.$cleanup=f;const g=Symbol();t.$clone=g;const m=Symbol();t.$consumed=m;const y=Symbol("content");t.$content=y;const v=Symbol("data");t.$data=v;const _=Symbol();t.$dump=_;const b=Symbol("extra");t.$extra=b;const x=Symbol();t.$finalize=x;const S=Symbol();t.$flushHTML=S;const w=Symbol();t.$getAttributeIt=w;const E=Symbol();t.$getAttributes=E;const P=Symbol();t.$getAvailableSpace=P;const C=Symbol();t.$getChildrenByClass=C;const A=Symbol();t.$getChildrenByName=A;const k=Symbol();t.$getChildrenByNameIt=k;const j=Symbol();t.$getDataValue=j;const I=Symbol();t.$getExtra=I;const G=Symbol();t.$getRealChildrenByNameIt=G;const T=Symbol();t.$getChildren=T;const M=Symbol();t.$getContainedChildren=M;const O=Symbol();t.$getNextPage=O;const R=Symbol();t.$getSubformParent=R;const D=Symbol();t.$getParent=D;const N=Symbol();t.$getTemplateRoot=N;const L=Symbol();t.$globalData=L;const V=Symbol();t.$hasSettableValue=V;const F=Symbol();t.$ids=F;const z=Symbol();t.$indexOf=z;const B=Symbol();t.$insertAt=B;const U=Symbol();t.$isCDATAXml=U;const W=Symbol();t.$isBindable=W;const H=Symbol();t.$isDataValue=H;const q=Symbol();t.$isDescendent=q;const X=Symbol();t.$isNsAgnostic=X;const Y=Symbol();t.$isSplittable=Y;const K=Symbol();t.$isThereMoreWidth=K;const Z=Symbol();t.$isTransparent=Z;const $=Symbol();t.$isUsable=$;const J=Symbol(),Q=Symbol("namespaceId");t.$namespaceId=Q;const ee=Symbol("nodeName");t.$nodeName=ee;const te=Symbol();t.$nsAttributes=te;const ne=Symbol();t.$onChild=ne;const re=Symbol();t.$onChildCheck=re;const ie=Symbol();t.$onText=ie;const oe=Symbol();t.$pushGlyphs=oe;const se=Symbol();t.$popPara=se;const ae=Symbol();t.$pushPara=ae;const le=Symbol();t.$removeChild=le;const ce=Symbol("root");t.$root=ce;const ue=Symbol();t.$resolvePrototypes=ue;const de=Symbol();t.$searchNode=de;const he=Symbol();t.$setId=he;const pe=Symbol();t.$setSetAttributes=pe;const fe=Symbol();t.$setValue=fe;const ge=Symbol();t.$tabIndex=ge;const me=Symbol();t.$text=me;const ye=Symbol();t.$toPages=ye;const ve=Symbol();t.$toHTML=ve;const _e=Symbol();t.$toString=_e;const be=Symbol();t.$toStyle=be;const xe=Symbol("uid");t.$uid=xe;const Se=Symbol(),we=Symbol(),Ee=Symbol(),Pe=Symbol("_children"),Ce=Symbol(),Ae=Symbol(),ke=Symbol(),je=Symbol(),Ie=Symbol(),Ge=Symbol(),Te=Symbol(),Me=Symbol(),Oe=Symbol(),Re=Symbol("parent"),De=Symbol(),Ne=Symbol(),Le=Symbol();let Ve=0;const Fe=s.NamespaceIds.datasets.id;class ze{constructor(e,t){let n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];this[Q]=e,this[ee]=t,this[Te]=n,this[Re]=null,this[Pe]=[],this[xe]="".concat(t).concat(Ve++),this[L]=null}[ne](e){if(!this[Te]||!this[re](e))return!1;const t=e[ee],n=this[t];if(!(n instanceof Be))return null!==n&&this[le](n),this[t]=e,this[u](e),!0;if(n.push(e))return this[u](e),!0;let r="";return this.id?r=" (id: ".concat(this.id,")"):this.name&&(r=" (name: ".concat(this.name," ").concat(this.h.value,")")),(0,i.warn)('XFA - node "'.concat(this[ee],'"').concat(r,' has already enough "').concat(t,'"!')),!1}[re](e){return this.hasOwnProperty(e[ee])&&e[Q]===this[Q]}[X](){return!1}[l](){return!1}[U](){return!1}[W](){return!1}[se](){this.para&&this[N]()[b].paraStack.pop()}[ae](){this[N]()[b].paraStack.push(this.para)}[he](e){this.id&&this[Q]===s.NamespaceIds.template.id&&e.set(this.id,this)}[N](){return this[L].template}[Y](){return!1}[K](){return!1}[u](e){e[Re]=this,this[Pe].push(e),!e[L]&&this[L]&&(e[L]=this[L])}[le](e){const t=this[Pe].indexOf(e);this[Pe].splice(t,1)}[V](){return this.hasOwnProperty("value")}[fe](e){}[ie](e){}[x](){}[h](e){delete this[Te],this[f]&&(e.clean(this[f]),delete this[f])}[z](e){return this[Pe].indexOf(e)}[B](e,t){t[Re]=this,this[Pe].splice(e,0,t),!t[L]&&this[L]&&(t[L]=this[L])}[Z](){return!this.name}[J](){return""}[me](){return 0===this[Pe].length?this[y]:this[Pe].map((e=>e[me]())).join("")}get[Ee](){const e=Object.getPrototypeOf(this);if(!e._attributes){const t=e._attributes=new Set;for(const e of Object.getOwnPropertyNames(this)){if(null===this[e]||this[e]instanceof ze||this[e]instanceof Be)break;t.add(e)}}return(0,i.shadow)(this,Ee,e._attributes)}[q](e){let t=this;for(;t;){if(t===e)return!0;t=t[D]()}return!1}[D](){return this[Re]}[R](){return this[D]()}[T](){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;return e?this[e]:this[Pe]}[_](){const e=Object.create(null);this[y]&&(e.$content=this[y]);for(const t of Object.getOwnPropertyNames(this)){const n=this[t];null!==n&&(n instanceof ze?e[t]=n[_]():n instanceof Be?n.isEmpty()||(e[t]=n.dump()):e[t]=n)}return e}[be](){return null}[ve](){return r.HTMLResult.EMPTY}*[M](){for(const e of this[T]())yield e}*[je](e,t){for(const n of this[M]())if(!e||t===e.has(n[ee])){const e=this[P](),t=n[ve](e);t.success||(this[b].failingNode=n),yield t}}[S](){return null}[c](e,t){this[b].children.push(e)}[P](){}[d](e){let{filter:t=null,include:n=!0}=e;if(this[b].generator){const e=this[P](),t=this[b].failingNode[ve](e);if(!t.success)return t;t.html&&this[c](t.html,t.bbox),delete this[b].failingNode}else this[b].generator=this[je](t,n);for(;;){const e=this[b].generator.next();if(e.done)break;const t=e.value;if(!t.success)return t;t.html&&this[c](t.html,t.bbox)}return this[b].generator=null,r.HTMLResult.EMPTY}[pe](e){this[Ne]=new Set(Object.keys(e))}[Ge](e){const t=this[Ee],n=this[Ne];return[...e].filter((e=>t.has(e)&&!n.has(e)))}[ue](e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:new Set;for(const n of this[Pe])n[De](e,t)}[De](e,t){const n=this[Ie](e,t);n?this[Se](n,e,t):this[ue](e,t)}[Ie](e,t){const{use:n,usehref:r}=this;if(!n&&!r)return null;let o=null,s=null,l=null,c=n;if(r?(c=r,r.startsWith("#som(")&&r.endsWith(")")?s=r.slice(5,r.length-1):r.startsWith(".#som(")&&r.endsWith(")")?s=r.slice(6,r.length-1):r.startsWith("#")?l=r.slice(1):r.startsWith(".#")&&(l=r.slice(2))):n.startsWith("#")?l=n.slice(1):s=n,this.use=this.usehref="",l?o=e.get(l):(o=(0,a.searchNode)(e.get(ce),this,s,!0,!1),o&&(o=o[0])),!o)return(0,i.warn)("XFA - Invalid prototype reference: ".concat(c,".")),null;if(o[ee]!==this[ee])return(0,i.warn)("XFA - Incompatible prototype: ".concat(o[ee]," !== ").concat(this[ee],".")),null;if(t.has(o))return(0,i.warn)("XFA - Cycle detected in prototypes use."),null;t.add(o);const u=o[Ie](e,t);return u&&o[Se](u,e,t),o[ue](e,t),t.delete(o),o}[Se](e,t,n){if(n.has(e))(0,i.warn)("XFA - Cycle detected in prototypes use.");else{!this[y]&&e[y]&&(this[y]=e[y]),new Set(n).add(e);for(const t of this[Ge](e[Ne]))this[t]=e[t],this[Ne]&&this[Ne].add(t);for(const r of Object.getOwnPropertyNames(this)){if(this[Ee].has(r))continue;const i=this[r],o=e[r];if(i instanceof Be){for(const e of i[Pe])e[De](t,n);for(let r=i[Pe].length,s=o[Pe].length;r<s;r++){const o=e[Pe][r][g]();if(!i.push(o))break;o[Re]=this,this[Pe].push(o),o[De](t,n)}}else if(null===i){if(null!==o){const e=o[g]();e[Re]=this,this[r]=e,this[Pe].push(e),e[De](t,n)}}else i[ue](t,n),o&&i[Se](o,t,n)}}}static[Ce](e){return Array.isArray(e)?e.map((e=>ze[Ce](e))):"object"===typeof e&&null!==e?Object.assign({},e):e}[g](){const e=Object.create(Object.getPrototypeOf(this));for(const n of Object.getOwnPropertySymbols(this))try{e[n]=this[n]}catch(t){(0,i.shadow)(e,n,this[n])}e[xe]="".concat(e[ee]).concat(Ve++),e[Pe]=[];for(const n of Object.getOwnPropertyNames(this)){if(this[Ee].has(n)){e[n]=ze[Ce](this[n]);continue}const t=this[n];e[n]=t instanceof Be?new Be(t[Me]):null}for(const n of this[Pe]){const t=n[ee],r=n[g]();e[Pe].push(r),r[Re]=e,null===e[t]?e[t]=r:e[t][Pe].push(r)}return e}[T](){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;return e?this[Pe].filter((t=>t[ee]===e)):this[Pe]}[C](e){return this[e]}[A](e,t){let n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];return Array.from(this[k](e,t,n))}[k](e,t){var n=this;let r=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];return function*(){if("parent"!==e){for(const r of n[Pe])r[ee]===e&&(yield r),r.name===e&&(yield r),(t||r[Z]())&&(yield*r[k](e,t,!1));r&&n[Ee].has(e)&&(yield new Ue(n,e,n[e]))}else yield n[Re]}()}}t.XFAObject=ze;class Be{constructor(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1/0;this[Me]=e,this[Pe]=[]}push(e){return this[Pe].length<=this[Me]?(this[Pe].push(e),!0):((0,i.warn)('XFA - node "'.concat(e[ee],'" accepts no more than ').concat(this[Me]," children")),!1)}isEmpty(){return 0===this[Pe].length}dump(){return 1===this[Pe].length?this[Pe][0][_]():this[Pe].map((e=>e[_]()))}[g](){const e=new Be(this[Me]);return e[Pe]=this[Pe].map((e=>e[g]())),e}get children(){return this[Pe]}clear(){this[Pe].length=0}}t.XFAObjectArray=Be;class Ue{constructor(e,t,n){this[Re]=e,this[ee]=t,this[y]=n,this[m]=!1,this[xe]="attribute".concat(Ve++)}[D](){return this[Re]}[H](){return!0}[j](){return this[y].trim()}[fe](e){e=e.value||"",this[y]=e.toString()}[me](){return this[y]}[q](e){return this[Re]===e||this[Re][q](e)}}t.XFAAttribute=Ue;class We extends ze{constructor(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(super(e,t),this[y]="",this[Ae]=null,"#text"!==t){const e=new Map;this[we]=e;for(const[t,r]of Object.entries(n))e.set(t,new Ue(this,t,r));if(n.hasOwnProperty(te)){const e=n[te].xfa.dataNode;void 0!==e&&("dataGroup"===e?this[Ae]=!1:"dataValue"===e&&(this[Ae]=!0))}}this[m]=!1}[_e](e){const t=this[ee];if("#text"===t)return void e.push((0,o.encodeToXmlString)(this[y]));const n=(0,i.utf8StringToString)(t),r=this[Q]===Fe?"xfa:":"";e.push("<".concat(r).concat(n));for(const[s,a]of this[we].entries()){const t=(0,i.utf8StringToString)(s);e.push(" ".concat(t,'="').concat((0,o.encodeToXmlString)(a[y]),'"'))}if(null!==this[Ae]&&(this[Ae]?e.push(' xfa:dataNode="dataValue"'):e.push(' xfa:dataNode="dataGroup"')),this[y]||0!==this[Pe].length){if(e.push(">"),this[y])"string"===typeof this[y]?e.push((0,o.encodeToXmlString)(this[y])):this[y][_e](e);else for(const t of this[Pe])t[_e](e);e.push("</".concat(r).concat(n,">"))}else e.push("/>")}[ne](e){if(this[y]){const e=new We(this[Q],"#text");this[u](e),e[y]=this[y],this[y]=""}return this[u](e),!0}[ie](e){this[y]+=e}[x](){if(this[y]&&this[Pe].length>0){const e=new We(this[Q],"#text");this[u](e),e[y]=this[y],delete this[y]}}[ve](){return"#text"===this[ee]?r.HTMLResult.success({name:"#text",value:this[y]}):r.HTMLResult.EMPTY}[T](){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;return e?this[Pe].filter((t=>t[ee]===e)):this[Pe]}[E](){return this[we]}[C](e){const t=this[we].get(e);return void 0!==t?t:this[T](e)}*[k](e,t){const n=this[we].get(e);n&&(yield n);for(const r of this[Pe])r[ee]===e&&(yield r),t&&(yield*r[k](e,t))}*[w](e,t){const n=this[we].get(e);!n||t&&n[m]||(yield n);for(const r of this[Pe])yield*r[w](e,t)}*[G](e,t,n){for(const r of this[Pe])r[ee]!==e||n&&r[m]||(yield r),t&&(yield*r[G](e,t,n))}[H](){return null===this[Ae]?0===this[Pe].length||this[Pe][0][Q]===s.NamespaceIds.xhtml.id:this[Ae]}[j](){return null===this[Ae]?0===this[Pe].length?this[y].trim():this[Pe][0][Q]===s.NamespaceIds.xhtml.id?this[Pe][0][me]().trim():null:this[y].trim()}[fe](e){e=e.value||"",this[y]=e.toString()}[_](){let e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];const t=Object.create(null);e&&(t.$ns=this[Q]),this[y]&&(t.$content=this[y]),t.$name=this[ee],t.children=[];for(const n of this[Pe])t.children.push(n[_](e));t.attributes=Object.create(null);for(const[n,r]of this[we])t.attributes[n]=r[y];return t}}t.XmlObject=We;class He extends ze{constructor(e,t){super(e,t),this[y]=""}[ie](e){this[y]+=e}[x](){}}t.ContentObject=He,t.OptionObject=class extends He{constructor(e,t,n){super(e,t),this[Oe]=n}[x](){this[y]=(0,r.getKeyword)({data:this[y],defaultValue:this[Oe][0],validate:e=>this[Oe].includes(e)})}[h](e){super[h](e),delete this[Oe]}},t.StringObject=class extends He{[x](){this[y]=this[y].trim()}};class qe extends He{constructor(e,t,n,r){super(e,t),this[ke]=n,this[Le]=r}[x](){this[y]=(0,r.getInteger)({data:this[y],defaultValue:this[ke],validate:this[Le]})}[h](e){super[h](e),delete this[ke],delete this[Le]}}t.IntegerObject=qe,t.Option01=class extends qe{constructor(e,t){super(e,t,0,(e=>1===e))}},t.Option10=class extends qe{constructor(e,t){super(e,t,1,(e=>0===e))}}},(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.HTMLResult=void 0,t.getBBox=function(e){const t=-1;if(!e)return{x:t,y:t,width:t,height:t};const n=e.trim().split(/\s*,\s*/).map((e=>a(e,"-1")));if(n.length<4||n[2]<0||n[3]<0)return{x:t,y:t,width:t,height:t};const[r,i,o,s]=n;return{x:r,y:i,width:o,height:s}},t.getColor=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[0,0,0],[n,r,i]=t;if(!e)return{r:n,g:r,b:i};const o=e.trim().split(/\s*,\s*/).map((e=>Math.min(Math.max(0,parseInt(e.trim(),10)),255))).map((e=>isNaN(e)?0:e));return o.length<3||([n,r,i]=o),{r:n,g:r,b:i}},t.getFloat=function(e){let{data:t,defaultValue:n,validate:r}=e;if(!t)return n;t=t.trim();const i=parseFloat(t);return!isNaN(i)&&r(i)?i:n},t.getInteger=function(e){let{data:t,defaultValue:n,validate:r}=e;if(!t)return n;t=t.trim();const i=parseInt(t,10);return!isNaN(i)&&r(i)?i:n},t.getKeyword=s,t.getMeasurement=a,t.getRatio=function(e){if(!e)return{num:1,den:1};const t=e.trim().split(/\s*:\s*/).map((e=>parseFloat(e))).filter((e=>!isNaN(e)));if(1===t.length&&t.push(1),0===t.length)return{num:1,den:1};const[n,r]=t;return{num:n,den:r}},t.getRelevant=function(e){return e?e.trim().split(/\s+/).map((e=>({excluded:"-"===e[0],viewname:e.substring(1)}))):[]},t.getStringOption=function(e,t){return s({data:e,defaultValue:t[0],validate:e=>t.includes(e)})},t.stripQuotes=function(e){return e.startsWith("'")||e.startsWith('"')?e.slice(1,e.length-1):e};var r=n(2);const i={pt:e=>e,cm:e=>e/2.54*72,mm:e=>e/25.4*72,in:e=>72*e,px:e=>e},o=/([+-]?\d+\.?\d*)(.*)/;function s(e){let{data:t,defaultValue:n,validate:r}=e;return t?(t=t.trim(),r(t)?t:n):n}function a(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"0";if(t=t||"0",!e)return a(t);const n=e.trim().match(o);if(!n)return a(t);const[,r,s]=n,l=parseFloat(r);if(isNaN(l))return a(t);if(0===l)return 0;const c=i[s];return c?c(l):l}class l{static get FAILURE(){return(0,r.shadow)(this,"FAILURE",new l(!1,null,null,null))}static get EMPTY(){return(0,r.shadow)(this,"EMPTY",new l(!0,null,null,null))}constructor(e,t,n,r){this.success=e,this.html=t,this.bbox=n,this.breakNode=r}isBreak(){return!!this.breakNode}static breakNode(e){return new l(!1,null,null,e)}static success(e){return new l(!0,e,arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,null)}}t.HTMLResult=l},(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.NamespaceIds=t.$buildXFAObject=void 0;const n=Symbol();t.$buildXFAObject=n,t.NamespaceIds={config:{id:0,check:e=>e.startsWith("http://www.xfa.org/schema/xci/")},connectionSet:{id:1,check:e=>e.startsWith("http://www.xfa.org/schema/xfa-connection-set/")},datasets:{id:2,check:e=>e.startsWith("http://www.xfa.org/schema/xfa-data/")},form:{id:3,check:e=>e.startsWith("http://www.xfa.org/schema/xfa-form/")},localeSet:{id:4,check:e=>e.startsWith("http://www.xfa.org/schema/xfa-locale-set/")},pdf:{id:5,check:e=>"http://ns.adobe.com/xdp/pdf/"===e},signature:{id:6,check:e=>"http://www.w3.org/2000/09/xmldsig#"===e},sourceSet:{id:7,check:e=>e.startsWith("http://www.xfa.org/schema/xfa-source-set/")},stylesheet:{id:8,check:e=>"http://www.w3.org/1999/XSL/Transform"===e},template:{id:9,check:e=>e.startsWith("http://www.xfa.org/schema/xfa-template/")},xdc:{id:10,check:e=>e.startsWith("http://www.xfa.org/schema/xdc/")},xdp:{id:11,check:e=>"http://ns.adobe.com/xdp/"===e},xfdf:{id:12,check:e=>"http://ns.adobe.com/xfdf/"===e},xhtml:{id:13,check:e=>"http://www.w3.org/1999/xhtml"===e},xmpmeta:{id:14,check:e=>"http://ns.adobe.com/xmpmeta/"===e}}},(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.createDataNode=function(e,t,n){const i=h(n);if(!i)return null;if(i.some((e=>e.operator===l.dotDot)))return null;const s=c.get(i[0].name);let a=0;s?(e=s(e,t),a=1):e=t||e;for(let c=i.length;a<c;a++){const{name:t,operator:n,index:s}=i[a];if(!isFinite(s))return i[a].index=0,p(e,i.slice(a));let c;switch(n){case l.dot:c=e[r.$getChildrenByName](t,!1);break;case l.dotDot:c=e[r.$getChildrenByName](t,!0);break;case l.dotHash:c=e[r.$getChildrenByClass](t),c=c instanceof r.XFAObjectArray?c.children:[c]}if(0===c.length)return p(e,i.slice(a));if(!(s<c.length))return i[a].index=s-c.length,p(e,i.slice(a));{const t=c[s];if(!(t instanceof r.XFAObject))return(0,o.warn)("XFA - Cannot create a node."),null;e=t}}return null},t.searchNode=function(e,t,n){let i=!(arguments.length>3&&void 0!==arguments[3])||arguments[3],o=!(arguments.length>4&&void 0!==arguments[4])||arguments[4];const s=h(n,i);if(!s)return null;const a=c.get(s[0].name);let d,p=0;a?(d=!0,e=[a(e,t)],p=1):(d=null===t,e=[t||e]);for(let c=s.length;p<c;p++){const{name:n,cacheName:i,operator:a,index:c}=s[p],h=[];for(const t of e){if(!(t instanceof r.XFAObject))continue;let e,s;if(o&&(s=u.get(t),s||(s=new Map,u.set(t,s)),e=s.get(i)),!e){switch(a){case l.dot:e=t[r.$getChildrenByName](n,!1);break;case l.dotDot:e=t[r.$getChildrenByName](n,!0);break;case l.dotHash:e=t[r.$getChildrenByClass](n),e=e instanceof r.XFAObjectArray?e.children:[e]}o&&s.set(i,e)}e.length>0&&h.push(e)}if(0!==h.length||d||0!==p)e=isFinite(c)?h.filter((e=>c<e.length)).map((e=>e[c])):h.flat();else{const n=t[r.$getParent]();if(!(t=n))return null;p=-1,e=[t]}}return 0===e.length?null:e};var r=n(75),i=n(77),o=n(2);const s=/^[^.[]+/,a=/^[^\]]+/,l={dot:0,dotDot:1,dotHash:2,dotBracket:3,dotParen:4},c=new Map([["$data",(e,t)=>e.datasets?e.datasets.data:e],["$record",(e,t)=>(e.datasets?e.datasets.data:e)[r.$getChildren]()[0]],["$template",(e,t)=>e.template],["$connectionSet",(e,t)=>e.connectionSet],["$form",(e,t)=>e.form],["$layout",(e,t)=>e.layout],["$host",(e,t)=>e.host],["$dataWindow",(e,t)=>e.dataWindow],["$event",(e,t)=>e.event],["!",(e,t)=>e.datasets],["$xfa",(e,t)=>e],["xfa",(e,t)=>e],["$",(e,t)=>t]]),u=new WeakMap,d=i.NamespaceIds.datasets.id;function h(e,t){let n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],r=e.match(s);if(!r)return null;let[i]=r;const c=[{name:i,cacheName:"."+i,index:0,js:null,formCalc:null,operator:l.dot}];let u=i.length;for(;u<e.length;){const h=u;if("["===e.charAt(u++)){if(r=e.slice(u).match(a),!r)return(0,o.warn)("XFA - Invalid index in SOM expression"),null;c.at(-1).index="*"===(d=(d=r[0]).trim())?1/0:parseInt(d,10)||0,u+=r[0].length+1;continue}let p;switch(e.charAt(u)){case".":if(!t)return null;u++,p=l.dotDot;break;case"#":u++,p=l.dotHash;break;case"[":if(n)return(0,o.warn)("XFA - SOM expression contains a FormCalc subexpression which is not supported for now."),null;p=l.dotBracket;break;case"(":if(n)return(0,o.warn)("XFA - SOM expression contains a JavaScript subexpression which is not supported for now."),null;p=l.dotParen;break;default:p=l.dot}if(r=e.slice(u).match(s),!r)break;[i]=r,u+=i.length,c.push({name:i,cacheName:e.slice(h,u),operator:p,index:0,js:null,formCalc:null})}var d;return c}function p(e,t){let n=null;for(const{name:i,index:o}of t){for(let t=0,s=isFinite(o)?o:0;t<=s;t++){const t=e[r.$namespaceId]===d?-1:e[r.$namespaceId];n=new r.XmlObject(t,i),e[r.$appendChild](n)}e=n}return n}},(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.Binder=void 0;var r=n(75),i=n(80),o=n(78),s=n(77),a=n(2);const l=s.NamespaceIds.datasets.id;function c(e){const t=new i.Text({});return t[r.$content]=e,t}t.Binder=class{constructor(e){this.root=e,this.datasets=e.datasets,e.datasets&&e.datasets.data?this.data=e.datasets.data:this.data=new r.XmlObject(s.NamespaceIds.datasets.id,"data"),this.emptyMerge=0===this.data[r.$getChildren]().length,this.root.form=this.form=e.template[r.$clone]()}_isConsumeData(){return!this.emptyMerge&&this._mergeMode}_isMatchTemplate(){return!this._isConsumeData()}bind(){return this._bindElement(this.form,this.data),this.form}getData(){return this.data}_bindValue(e,t,n){if(e[r.$data]=t,e[r.$hasSettableValue]())if(t[r.$isDataValue]()){const n=t[r.$getDataValue]();e[r.$setValue](c(n))}else if(e instanceof i.Field&&e.ui&&e.ui.choiceList&&"multiSelect"===e.ui.choiceList.open){const n=t[r.$getChildren]().map((e=>e[r.$content].trim())).join("\n");e[r.$setValue](c(n))}else this._isConsumeData()&&(0,a.warn)("XFA - Nodes haven't the same type.");else!t[r.$isDataValue]()||this._isMatchTemplate()?this._bindElement(e,t):(0,a.warn)("XFA - Nodes haven't the same type.")}_findDataByNameToConsume(e,t,n,i){if(!e)return null;let o,a;for(let l=0;l<3;l++){for(o=n[r.$getRealChildrenByNameIt](e,!1,!0);a=o.next().value,a;)if(t===a[r.$isDataValue]())return a;if(n[r.$namespaceId]===s.NamespaceIds.datasets.id&&"data"===n[r.$nodeName])break;n=n[r.$getParent]()}return i?(o=this.data[r.$getRealChildrenByNameIt](e,!0,!1),a=o.next().value,a||(o=this.data[r.$getAttributeIt](e,!0),a=o.next().value,a&&a[r.$isDataValue]()?a:null)):null}_setProperties(e,t){if(e.hasOwnProperty("setProperty"))for(const{ref:n,target:s,connection:l}of e.setProperty.children){if(l)continue;if(!n)continue;const c=(0,o.searchNode)(this.root,t,n,!1,!1);if(!c){(0,a.warn)("XFA - Invalid reference: ".concat(n,"."));continue}const[u]=c;if(!u[r.$isDescendent](this.data)){(0,a.warn)("XFA - Invalid node: must be a data node.");continue}const d=(0,o.searchNode)(this.root,e,s,!1,!1);if(!d){(0,a.warn)("XFA - Invalid target: ".concat(s,"."));continue}const[h]=d;if(!h[r.$isDescendent](e)){(0,a.warn)("XFA - Invalid target: must be a property or subproperty.");continue}const p=h[r.$getParent]();if(h instanceof i.SetProperty||p instanceof i.SetProperty){(0,a.warn)("XFA - Invalid target: cannot be a setProperty or one of its properties.");continue}if(h instanceof i.BindItems||p instanceof i.BindItems){(0,a.warn)("XFA - Invalid target: cannot be a bindItems or one of its properties.");continue}const f=u[r.$text](),g=h[r.$nodeName];if(h instanceof r.XFAAttribute){const e=Object.create(null);e[g]=f;const t=Reflect.construct(Object.getPrototypeOf(p).constructor,[e]);p[g]=t[g]}else h.hasOwnProperty(r.$content)?(h[r.$data]=u,h[r.$content]=f,h[r.$finalize]()):(0,a.warn)("XFA - Invalid node to use in setProperty")}}_bindItems(e,t){if(!e.hasOwnProperty("items")||!e.hasOwnProperty("bindItems")||e.bindItems.isEmpty())return;for(const i of e.items.children)e[r.$removeChild](i);e.items.clear();const n=new i.Items({}),s=new i.Items({});e[r.$appendChild](n),e.items.push(n),e[r.$appendChild](s),e.items.push(s);for(const{ref:i,labelRef:l,valueRef:u,connection:d}of e.bindItems.children){if(d)continue;if(!i)continue;const e=(0,o.searchNode)(this.root,t,i,!1,!1);if(e)for(const t of e){if(!t[r.$isDescendent](this.datasets)){(0,a.warn)("XFA - Invalid ref (".concat(i,"): must be a datasets child."));continue}const e=(0,o.searchNode)(this.root,t,l,!0,!1);if(!e){(0,a.warn)("XFA - Invalid label: ".concat(l,"."));continue}const[d]=e;if(!d[r.$isDescendent](this.datasets)){(0,a.warn)("XFA - Invalid label: must be a datasets child.");continue}const h=(0,o.searchNode)(this.root,t,u,!0,!1);if(!h){(0,a.warn)("XFA - Invalid value: ".concat(u,"."));continue}const[p]=h;if(!p[r.$isDescendent](this.datasets)){(0,a.warn)("XFA - Invalid value: must be a datasets child.");continue}const f=c(d[r.$text]()),g=c(p[r.$text]());n[r.$appendChild](f),n.text.push(f),s[r.$appendChild](g),s.text.push(g)}else(0,a.warn)("XFA - Invalid reference: ".concat(i,"."))}}_bindOccurrences(e,t,n){let i;if(t.length>1&&(i=e[r.$clone](),i[r.$removeChild](i.occur),i.occur=null),this._bindValue(e,t[0],n),this._setProperties(e,t[0]),this._bindItems(e,t[0]),1===t.length)return;const o=e[r.$getParent](),s=e[r.$nodeName],a=o[r.$indexOf](e);for(let l=1,c=t.length;l<c;l++){const e=t[l],c=i[r.$clone]();o[s].push(c),o[r.$insertAt](a+l,c),this._bindValue(c,e,n),this._setProperties(c,e),this._bindItems(c,e)}}_createOccurrences(e){if(!this.emptyMerge)return;const{occur:t}=e;if(!t||t.initial<=1)return;const n=e[r.$getParent](),i=e[r.$nodeName];if(!(n[i]instanceof r.XFAObjectArray))return;let o;o=e.name?n[i].children.filter((t=>t.name===e.name)).length:n[i].children.length;const s=n[r.$indexOf](e)+1,a=t.initial-o;if(a){const t=e[r.$clone]();t[r.$removeChild](t.occur),t.occur=null,n[i].push(t),n[r.$insertAt](s,t);for(let e=1;e<a;e++){const o=t[r.$clone]();n[i].push(o),n[r.$insertAt](s+e,o)}}}_getOccurInfo(e){const{name:t,occur:n}=e;if(!n||!t)return[1,1];const r=-1===n.max?1/0:n.max;return[n.min,r]}_setAndBind(e,t){this._setProperties(e,t),this._bindItems(e,t),this._bindElement(e,t)}_bindElement(e,t){const n=[];this._createOccurrences(e);for(const i of e[r.$getChildren]()){if(i[r.$data])continue;if(void 0===this._mergeMode&&"subform"===i[r.$nodeName]){this._mergeMode="consumeData"===i.mergeMode;const e=t[r.$getChildren]();if(e.length>0)this._bindOccurrences(i,[e[0]],null);else if(this.emptyMerge){const e=t[r.$namespaceId]===l?-1:t[r.$namespaceId],n=i[r.$data]=new r.XmlObject(e,i.name||"root");t[r.$appendChild](n),this._bindElement(i,n)}continue}if(!i[r.$isBindable]())continue;let e=!1,s=null,c=null,u=null;if(i.bind){switch(i.bind.match){case"none":this._setAndBind(i,t);continue;case"global":e=!0;break;case"dataRef":if(!i.bind.ref){(0,a.warn)("XFA - ref is empty in node ".concat(i[r.$nodeName],".")),this._setAndBind(i,t);continue}c=i.bind.ref}i.bind.picture&&(s=i.bind.picture[r.$content])}const[d,h]=this._getOccurInfo(i);if(c){if(u=(0,o.searchNode)(this.root,t,c,!0,!1),null===u){if(u=(0,o.createDataNode)(this.data,t,c),!u)continue;this._isConsumeData()&&(u[r.$consumed]=!0),this._setAndBind(i,u);continue}this._isConsumeData()&&(u=u.filter((e=>!e[r.$consumed]))),u.length>h?u=u.slice(0,h):0===u.length&&(u=null),u&&this._isConsumeData()&&u.forEach((e=>{e[r.$consumed]=!0}))}else{if(!i.name){this._setAndBind(i,t);continue}if(this._isConsumeData()){const n=[];for(;n.length<h;){const o=this._findDataByNameToConsume(i.name,i[r.$hasSettableValue](),t,e);if(!o)break;o[r.$consumed]=!0,n.push(o)}u=n.length>0?n:null}else{if(u=t[r.$getRealChildrenByNameIt](i.name,!1,this.emptyMerge).next().value,!u){if(0===d){n.push(i);continue}const e=t[r.$namespaceId]===l?-1:t[r.$namespaceId];u=i[r.$data]=new r.XmlObject(e,i.name),this.emptyMerge&&(u[r.$consumed]=!0),t[r.$appendChild](u),this._setAndBind(i,u);continue}this.emptyMerge&&(u[r.$consumed]=!0),u=[u]}}u?this._bindOccurrences(i,u,s):d>0?this._setAndBind(i,t):n.push(i)}n.forEach((e=>e[r.$getParent]()[r.$removeChild](e)))}}},(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.Value=t.Text=t.TemplateNamespace=t.Template=t.SetProperty=t.Items=t.Field=t.BindItems=void 0;var r=n(75),i=n(77),o=n(81),s=n(82),a=n(76),l=n(2),c=n(83),u=n(4),d=n(78);const h=i.NamespaceIds.template.id,p="http://www.w3.org/2000/svg",f=/^H(\d+)$/,g=new Set(["image/gif","image/jpeg","image/jpg","image/pjpeg","image/png","image/apng","image/x-png","image/bmp","image/x-ms-bmp","image/tiff","image/tif","application/octet-stream"]),m=[[[66,77],"image/bmp"],[[255,216,255],"image/jpeg"],[[73,73,42,0],"image/tiff"],[[77,77,0,42],"image/tiff"],[[71,73,70,56,57,97],"image/gif"],[[137,80,78,71,13,10,26,10],"image/png"]];function y(e){if(!e||!e.border)return{w:0,h:0};const t=e.border[r.$getExtra]();return t?{w:t.widths[0]+t.widths[2]+t.insets[0]+t.insets[2],h:t.widths[1]+t.widths[3]+t.insets[1]+t.insets[3]}:{w:0,h:0}}function v(e){return e.margin&&(e.margin.topInset||e.margin.rightInset||e.margin.bottomInset||e.margin.leftInset)}function _(e,t){if(!e.value){const t=new Mt({});e[r.$appendChild](t),e.value=t}e.value[r.$setValue](t)}function*b(e){for(const t of e[r.$getChildren]())t instanceof _t?yield*t[r.$getContainedChildren]():yield t}function x(e){return e.validate&&"error"===e.validate.nullTest}function S(e){for(;e;){if(!e.traversal)return void(e[r.$tabIndex]=e[r.$getParent]()[r.$tabIndex]);if(e[r.$tabIndex])return;let t=null;for(const o of e.traversal[r.$getChildren]())if("next"===o.operation){t=o;break}if(!t||!t.ref)return void(e[r.$tabIndex]=e[r.$getParent]()[r.$tabIndex]);const n=e[r.$getTemplateRoot]();e[r.$tabIndex]=++n[r.$tabIndex];const i=n[r.$searchNode](t.ref,e);if(!i)return;e=i[0]}}function w(e,t){const n=e.assist;if(n){const e=n[r.$toHTML]();e&&(t.title=e);const i=n.role.match(f);if(i){const e="heading",n=i[1];t.role=e,t["aria-level"]=n}}if("table"===e.layout)t.role="table";else if("row"===e.layout)t.role="row";else{const n=e[r.$getParent]();"row"===n.layout&&(n.assist&&"TH"===n.assist.role?t.role="columnheader":t.role="cell")}}function E(e){if(!e.assist)return null;const t=e.assist;return t.speak&&""!==t.speak[r.$content]?t.speak[r.$content]:t.toolTip?t.toolTip[r.$content]:null}function P(e){return a.HTMLResult.success({name:"div",attributes:{class:["xfaRich"],style:Object.create(null)},children:[{name:"span",attributes:{style:Object.create(null)},value:e}]})}function C(e){const t=e[r.$getTemplateRoot]();null===t[r.$extra].firstUnsplittable&&(t[r.$extra].firstUnsplittable=e,t[r.$extra].noLayoutFailure=!0)}function A(e){const t=e[r.$getTemplateRoot]();t[r.$extra].firstUnsplittable===e&&(t[r.$extra].noLayoutFailure=!1)}function k(e){if(e[r.$extra])return!1;if(e[r.$extra]=Object.create(null),"auto"===e.targetType)return!1;const t=e[r.$getTemplateRoot]();let n=null;if(e.target){if(n=t[r.$searchNode](e.target,e[r.$getParent]()),!n)return!1;n=n[0]}const{currentPageArea:i,currentContentArea:o}=t[r.$extra];if("pageArea"===e.targetType)return n instanceof Je||(n=null),e.startNew?(e[r.$extra].target=n||i,!0):!(!n||n===i)&&(e[r.$extra].target=n,!0);n instanceof Q||(n=null);const s=n&&n[r.$getParent]();let a,l=s;if(e.startNew)if(n){const e=s.contentArea.children,t=e.indexOf(o),r=e.indexOf(n);-1!==t&&t<r&&(l=null),a=r-1}else a=i.contentArea.children.indexOf(o);else{if(!n||n===o)return!1;a=s.contentArea.children.indexOf(n)-1,l=s===i?null:s}return e[r.$extra].target=l,e[r.$extra].index=a,!0}function j(e,t,n){const i=e[r.$getTemplateRoot](),o=i[r.$extra].noLayoutFailure,s=t[r.$getSubformParent];t[r.$getSubformParent]=()=>e,i[r.$extra].noLayoutFailure=!0;const a=t[r.$toHTML](n);e[r.$addHTML](a.html,a.bbox),i[r.$extra].noLayoutFailure=o,t[r.$getSubformParent]=s}class I extends r.StringObject{constructor(e){super(h,"appearanceFilter"),this.id=e.id||"",this.type=(0,a.getStringOption)(e.type,["optional","required"]),this.use=e.use||"",this.usehref=e.usehref||""}}class G extends r.XFAObject{constructor(e){super(h,"arc",!0),this.circular=(0,a.getInteger)({data:e.circular,defaultValue:0,validate:e=>1===e}),this.hand=(0,a.getStringOption)(e.hand,["even","left","right"]),this.id=e.id||"",this.startAngle=(0,a.getFloat)({data:e.startAngle,defaultValue:0,validate:e=>!0}),this.sweepAngle=(0,a.getFloat)({data:e.sweepAngle,defaultValue:360,validate:e=>!0}),this.use=e.use||"",this.usehref=e.usehref||"",this.edge=null,this.fill=null}[r.$toHTML](){const e=this.edge||new ue({}),t=e[r.$toStyle](),n=Object.create(null);let i;this.fill&&"visible"===this.fill.presence?Object.assign(n,this.fill[r.$toStyle]()):n.fill="transparent",n.strokeWidth=(0,s.measureToString)("visible"===e.presence?e.thickness:0),n.stroke=t.color;const o={xmlns:p,style:{width:"100%",height:"100%",overflow:"visible"}};if(360===this.sweepAngle)i={name:"ellipse",attributes:{xmlns:p,cx:"50%",cy:"50%",rx:"50%",ry:"50%",style:n}};else{const e=this.startAngle*Math.PI/180,t=this.sweepAngle*Math.PI/180,r=this.sweepAngle>180?1:0,[s,a,l,c]=[50*(1+Math.cos(e)),50*(1-Math.sin(e)),50*(1+Math.cos(e+t)),50*(1-Math.sin(e+t))];i={name:"path",attributes:{xmlns:p,d:"M ".concat(s," ").concat(a," A 50 50 0 ").concat(r," 0 ").concat(l," ").concat(c),vectorEffect:"non-scaling-stroke",style:n}},Object.assign(o,{viewBox:"0 0 100 100",preserveAspectRatio:"none"})}const l={name:"svg",children:[i],attributes:o};return v(this[r.$getParent]()[r.$getParent]())?a.HTMLResult.success({name:"div",attributes:{style:{display:"inline",width:"100%",height:"100%"}},children:[l]}):(l.attributes.style.position="absolute",a.HTMLResult.success(l))}}class T extends r.XFAObject{constructor(e){super(h,"area",!0),this.colSpan=(0,a.getInteger)({data:e.colSpan,defaultValue:1,validate:e=>e>=1||-1===e}),this.id=e.id||"",this.name=e.name||"",this.relevant=(0,a.getRelevant)(e.relevant),this.use=e.use||"",this.usehref=e.usehref||"",this.x=(0,a.getMeasurement)(e.x,"0pt"),this.y=(0,a.getMeasurement)(e.y,"0pt"),this.desc=null,this.extras=null,this.area=new r.XFAObjectArray,this.draw=new r.XFAObjectArray,this.exObject=new r.XFAObjectArray,this.exclGroup=new r.XFAObjectArray,this.field=new r.XFAObjectArray,this.subform=new r.XFAObjectArray,this.subformSet=new r.XFAObjectArray}*[r.$getContainedChildren](){yield*b(this)}[r.$isTransparent](){return!0}[r.$isBindable](){return!0}[r.$addHTML](e,t){const[n,i,o,s]=t;this[r.$extra].width=Math.max(this[r.$extra].width,n+o),this[r.$extra].height=Math.max(this[r.$extra].height,i+s),this[r.$extra].children.push(e)}[r.$getAvailableSpace](){return this[r.$extra].availableSpace}[r.$toHTML](e){const t=(0,s.toStyle)(this,"position"),n={style:t,id:this[r.$uid],class:["xfaArea"]};(0,s.isPrintOnly)(this)&&n.class.push("xfaPrintOnly"),this.name&&(n.xfaName=this.name);const i=[];this[r.$extra]={children:i,width:0,height:0,availableSpace:e};const o=this[r.$childrenToHTML]({filter:new Set(["area","draw","field","exclGroup","subform","subformSet"]),include:!0});if(!o.success)return o.isBreak()?o:(delete this[r.$extra],a.HTMLResult.FAILURE);t.width=(0,s.measureToString)(this[r.$extra].width),t.height=(0,s.measureToString)(this[r.$extra].height);const l={name:"div",attributes:n,children:i},c=[this.x,this.y,this[r.$extra].width,this[r.$extra].height];return delete this[r.$extra],a.HTMLResult.success(l,c)}}class M extends r.XFAObject{constructor(e){super(h,"assist",!0),this.id=e.id||"",this.role=e.role||"",this.use=e.use||"",this.usehref=e.usehref||"",this.speak=null,this.toolTip=null}[r.$toHTML](){return this.toolTip&&this.toolTip[r.$content]?this.toolTip[r.$content]:null}}class O extends r.XFAObject{constructor(e){super(h,"barcode",!0),this.charEncoding=(0,a.getKeyword)({data:e.charEncoding?e.charEncoding.toLowerCase():"",defaultValue:"",validate:e=>["utf-8","big-five","fontspecific","gbk","gb-18030","gb-2312","ksc-5601","none","shift-jis","ucs-2","utf-16"].includes(e)||e.match(/iso-8859-\d{2}/)}),this.checksum=(0,a.getStringOption)(e.checksum,["none","1mod10","1mod10_1mod11","2mod10","auto"]),this.dataColumnCount=(0,a.getInteger)({data:e.dataColumnCount,defaultValue:-1,validate:e=>e>=0}),this.dataLength=(0,a.getInteger)({data:e.dataLength,defaultValue:-1,validate:e=>e>=0}),this.dataPrep=(0,a.getStringOption)(e.dataPrep,["none","flateCompress"]),this.dataRowCount=(0,a.getInteger)({data:e.dataRowCount,defaultValue:-1,validate:e=>e>=0}),this.endChar=e.endChar||"",this.errorCorrectionLevel=(0,a.getInteger)({data:e.errorCorrectionLevel,defaultValue:-1,validate:e=>e>=0&&e<=8}),this.id=e.id||"",this.moduleHeight=(0,a.getMeasurement)(e.moduleHeight,"5mm"),this.moduleWidth=(0,a.getMeasurement)(e.moduleWidth,"0.25mm"),this.printCheckDigit=(0,a.getInteger)({data:e.printCheckDigit,defaultValue:0,validate:e=>1===e}),this.rowColumnRatio=(0,a.getRatio)(e.rowColumnRatio),this.startChar=e.startChar||"",this.textLocation=(0,a.getStringOption)(e.textLocation,["below","above","aboveEmbedded","belowEmbedded","none"]),this.truncate=(0,a.getInteger)({data:e.truncate,defaultValue:0,validate:e=>1===e}),this.type=(0,a.getStringOption)(e.type?e.type.toLowerCase():"",["aztec","codabar","code2of5industrial","code2of5interleaved","code2of5matrix","code2of5standard","code3of9","code3of9extended","code11","code49","code93","code128","code128a","code128b","code128c","code128sscc","datamatrix","ean8","ean8add2","ean8add5","ean13","ean13add2","ean13add5","ean13pwcd","fim","logmars","maxicode","msi","pdf417","pdf417macro","plessey","postauscust2","postauscust3","postausreplypaid","postausstandard","postukrm4scc","postusdpbc","postusimb","postusstandard","postus5zip","qrcode","rfid","rss14","rss14expanded","rss14limited","rss14stacked","rss14stackedomni","rss14truncated","telepen","ucc128","ucc128random","ucc128sscc","upca","upcaadd2","upcaadd5","upcapwcd","upce","upceadd2","upceadd5","upcean2","upcean5","upsmaxicode"]),this.upsMode=(0,a.getStringOption)(e.upsMode,["usCarrier","internationalCarrier","secureSymbol","standardSymbol"]),this.use=e.use||"",this.usehref=e.usehref||"",this.wideNarrowRatio=(0,a.getRatio)(e.wideNarrowRatio),this.encrypt=null,this.extras=null}}class R extends r.XFAObject{constructor(e){super(h,"bind",!0),this.match=(0,a.getStringOption)(e.match,["once","dataRef","global","none"]),this.ref=e.ref||"",this.picture=null}}class D extends r.XFAObject{constructor(e){super(h,"bindItems"),this.connection=e.connection||"",this.labelRef=e.labelRef||"",this.ref=e.ref||"",this.valueRef=e.valueRef||""}}t.BindItems=D;class N extends r.XFAObject{constructor(e){super(h,"bookend"),this.id=e.id||"",this.leader=e.leader||"",this.trailer=e.trailer||"",this.use=e.use||"",this.usehref=e.usehref||""}}class L extends r.Option01{constructor(e){super(h,"boolean"),this.id=e.id||"",this.name=e.name||"",this.use=e.use||"",this.usehref=e.usehref||""}[r.$toHTML](e){return P(1===this[r.$content]?"1":"0")}}class V extends r.XFAObject{constructor(e){super(h,"border",!0),this.break=(0,a.getStringOption)(e.break,["close","open"]),this.hand=(0,a.getStringOption)(e.hand,["even","left","right"]),this.id=e.id||"",this.presence=(0,a.getStringOption)(e.presence,["visible","hidden","inactive","invisible"]),this.relevant=(0,a.getRelevant)(e.relevant),this.use=e.use||"",this.usehref=e.usehref||"",this.corner=new r.XFAObjectArray(4),this.edge=new r.XFAObjectArray(4),this.extras=null,this.fill=null,this.margin=null}[r.$getExtra](){if(!this[r.$extra]){const e=this.edge.children.slice();if(e.length<4){const t=e.at(-1)||new ue({});for(let n=e.length;n<4;n++)e.push(t)}const t=e.map((e=>e.thickness)),n=[0,0,0,0];this.margin&&(n[0]=this.margin.topInset,n[1]=this.margin.rightInset,n[2]=this.margin.bottomInset,n[3]=this.margin.leftInset),this[r.$extra]={widths:t,insets:n,edges:e}}return this[r.$extra]}[r.$toStyle](){const{edges:e}=this[r.$getExtra](),t=e.map((e=>{const t=e[r.$toStyle]();return t.color=t.color||"#000000",t})),n=Object.create(null);if(this.margin&&Object.assign(n,this.margin[r.$toStyle]()),this.fill&&"visible"===this.fill.presence&&Object.assign(n,this.fill[r.$toStyle]()),this.corner.children.some((e=>0!==e.radius))){const e=this.corner.children.map((e=>e[r.$toStyle]()));if(2===e.length||3===e.length){const t=e.at(-1);for(let n=e.length;n<4;n++)e.push(t)}n.borderRadius=e.map((e=>e.radius)).join(" ")}switch(this.presence){case"invisible":case"hidden":n.borderStyle="";break;case"inactive":n.borderStyle="none";break;default:n.borderStyle=t.map((e=>e.style)).join(" ")}return n.borderWidth=t.map((e=>e.width)).join(" "),n.borderColor=t.map((e=>e.color)).join(" "),n}}class F extends r.XFAObject{constructor(e){super(h,"break",!0),this.after=(0,a.getStringOption)(e.after,["auto","contentArea","pageArea","pageEven","pageOdd"]),this.afterTarget=e.afterTarget||"",this.before=(0,a.getStringOption)(e.before,["auto","contentArea","pageArea","pageEven","pageOdd"]),this.beforeTarget=e.beforeTarget||"",this.bookendLeader=e.bookendLeader||"",this.bookendTrailer=e.bookendTrailer||"",this.id=e.id||"",this.overflowLeader=e.overflowLeader||"",this.overflowTarget=e.overflowTarget||"",this.overflowTrailer=e.overflowTrailer||"",this.startNew=(0,a.getInteger)({data:e.startNew,defaultValue:0,validate:e=>1===e}),this.use=e.use||"",this.usehref=e.usehref||"",this.extras=null}}class z extends r.XFAObject{constructor(e){super(h,"breakAfter",!0),this.id=e.id||"",this.leader=e.leader||"",this.startNew=(0,a.getInteger)({data:e.startNew,defaultValue:0,validate:e=>1===e}),this.target=e.target||"",this.targetType=(0,a.getStringOption)(e.targetType,["auto","contentArea","pageArea"]),this.trailer=e.trailer||"",this.use=e.use||"",this.usehref=e.usehref||"",this.script=null}}class B extends r.XFAObject{constructor(e){super(h,"breakBefore",!0),this.id=e.id||"",this.leader=e.leader||"",this.startNew=(0,a.getInteger)({data:e.startNew,defaultValue:0,validate:e=>1===e}),this.target=e.target||"",this.targetType=(0,a.getStringOption)(e.targetType,["auto","contentArea","pageArea"]),this.trailer=e.trailer||"",this.use=e.use||"",this.usehref=e.usehref||"",this.script=null}[r.$toHTML](e){return this[r.$extra]={},a.HTMLResult.FAILURE}}class U extends r.XFAObject{constructor(e){super(h,"button",!0),this.highlight=(0,a.getStringOption)(e.highlight,["inverted","none","outline","push"]),this.id=e.id||"",this.use=e.use||"",this.usehref=e.usehref||"",this.extras=null}[r.$toHTML](e){const t=this[r.$getParent]()[r.$getParent](),n={name:"button",attributes:{id:this[r.$uid],class:["xfaButton"],style:{}},children:[]};for(const i of t.event.children){if("click"!==i.activity||!i.script)continue;const e=(0,u.recoverJsURL)(i.script[r.$content]);if(!e)continue;const t=(0,s.fixURL)(e.url);t&&n.children.push({name:"a",attributes:{id:"link"+this[r.$uid],href:t,newWindow:e.newWindow,class:["xfaLink"],style:{}},children:[]})}return a.HTMLResult.success(n)}}class W extends r.XFAObject{constructor(e){super(h,"calculate",!0),this.id=e.id||"",this.override=(0,a.getStringOption)(e.override,["disabled","error","ignore","warning"]),this.use=e.use||"",this.usehref=e.usehref||"",this.extras=null,this.message=null,this.script=null}}class H extends r.XFAObject{constructor(e){super(h,"caption",!0),this.id=e.id||"",this.placement=(0,a.getStringOption)(e.placement,["left","bottom","inline","right","top"]),this.presence=(0,a.getStringOption)(e.presence,["visible","hidden","inactive","invisible"]),this.reserve=Math.ceil((0,a.getMeasurement)(e.reserve)),this.use=e.use||"",this.usehref=e.usehref||"",this.extras=null,this.font=null,this.margin=null,this.para=null,this.value=null}[r.$setValue](e){_(this,e)}[r.$getExtra](e){if(!this[r.$extra]){let{width:t,height:n}=e;switch(this.placement){case"left":case"right":case"inline":t=this.reserve<=0?t:this.reserve;break;case"top":case"bottom":n=this.reserve<=0?n:this.reserve}this[r.$extra]=(0,s.layoutNode)(this,{width:t,height:n})}return this[r.$extra]}[r.$toHTML](e){if(!this.value)return a.HTMLResult.EMPTY;this[r.$pushPara]();const t=this.value[r.$toHTML](e).html;if(!t)return this[r.$popPara](),a.HTMLResult.EMPTY;const n=this.reserve;if(this.reserve<=0){const{w:t,h:n}=this[r.$getExtra](e);switch(this.placement){case"left":case"right":case"inline":this.reserve=t;break;case"top":case"bottom":this.reserve=n}}const i=[];"string"===typeof t?i.push({name:"#text",value:t}):i.push(t);const o=(0,s.toStyle)(this,"font","margin","visibility");switch(this.placement){case"left":case"right":this.reserve>0&&(o.width=(0,s.measureToString)(this.reserve));break;case"top":case"bottom":this.reserve>0&&(o.height=(0,s.measureToString)(this.reserve))}return(0,s.setPara)(this,null,t),this[r.$popPara](),this.reserve=n,a.HTMLResult.success({name:"div",attributes:{style:o,class:["xfaCaption"]},children:i})}}class q extends r.StringObject{constructor(e){super(h,"certificate"),this.id=e.id||"",this.name=e.name||"",this.use=e.use||"",this.usehref=e.usehref||""}}class X extends r.XFAObject{constructor(e){super(h,"certificates",!0),this.credentialServerPolicy=(0,a.getStringOption)(e.credentialServerPolicy,["optional","required"]),this.id=e.id||"",this.url=e.url||"",this.urlPolicy=e.urlPolicy||"",this.use=e.use||"",this.usehref=e.usehref||"",this.encryption=null,this.issuers=null,this.keyUsage=null,this.oids=null,this.signing=null,this.subjectDNs=null}}class Y extends r.XFAObject{constructor(e){super(h,"checkButton",!0),this.id=e.id||"",this.mark=(0,a.getStringOption)(e.mark,["default","check","circle","cross","diamond","square","star"]),this.shape=(0,a.getStringOption)(e.shape,["square","round"]),this.size=(0,a.getMeasurement)(e.size,"10pt"),this.use=e.use||"",this.usehref=e.usehref||"",this.border=null,this.extras=null,this.margin=null}[r.$toHTML](e){const t=(0,s.toStyle)("margin"),n=(0,s.measureToString)(this.size);let i,o,l;t.width=t.height=n;const c=this[r.$getParent]()[r.$getParent](),u=c.items.children.length&&c.items.children[0][r.$toHTML]().html||[],d={on:(void 0!==u[0]?u[0]:"on").toString(),off:(void 0!==u[1]?u[1]:"off").toString()},h=(c.value&&c.value[r.$text]()||"off")===d.on||void 0,p=c[r.$getSubformParent](),f=c[r.$uid];let g;p instanceof xe?(l=p[r.$uid],i="radio",o="xfaRadio",g=p[r.$data]&&p[r.$data][r.$uid]||p[r.$uid]):(i="checkbox",o="xfaCheckbox",g=c[r.$data]&&c[r.$data][r.$uid]||c[r.$uid]);const m={name:"input",attributes:{class:[o],style:t,fieldId:f,dataId:g,type:i,checked:h,xfaOn:d.on,xfaOff:d.off,"aria-label":E(c),"aria-required":!1}};return l&&(m.attributes.name=l),x(c)&&(m.attributes["aria-required"]=!0,m.attributes.required=!0),a.HTMLResult.success({name:"label",attributes:{class:["xfaLabel"]},children:[m]})}}class K extends r.XFAObject{constructor(e){super(h,"choiceList",!0),this.commitOn=(0,a.getStringOption)(e.commitOn,["select","exit"]),this.id=e.id||"",this.open=(0,a.getStringOption)(e.open,["userControl","always","multiSelect","onEntry"]),this.textEntry=(0,a.getInteger)({data:e.textEntry,defaultValue:0,validate:e=>1===e}),this.use=e.use||"",this.usehref=e.usehref||"",this.border=null,this.extras=null,this.margin=null}[r.$toHTML](e){const t=(0,s.toStyle)(this,"border","margin"),n=this[r.$getParent]()[r.$getParent](),i=n.font&&n.font.size||10,o={fontSize:"calc(".concat(i,"px * var(--scale-factor))")},l=[];if(n.items.children.length>0){const e=n.items;let t=0,i=0;2===e.children.length&&(t=e.children[0].save,i=1-t);const s=e.children[t][r.$toHTML]().html,a=e.children[i][r.$toHTML]().html;let c=!1;const u=n.value&&n.value[r.$text]()||"";for(let n=0,r=s.length;n<r;n++){const e={name:"option",attributes:{value:a[n]||s[n],style:o},value:s[n]};a[n]===u&&(e.attributes.selected=c=!0),l.push(e)}c||l.splice(0,0,{name:"option",attributes:{hidden:!0,selected:!0},value:" "})}const c={class:["xfaSelect"],fieldId:n[r.$uid],dataId:n[r.$data]&&n[r.$data][r.$uid]||n[r.$uid],style:t,"aria-label":E(n),"aria-required":!1};return x(n)&&(c["aria-required"]=!0,c.required=!0),"multiSelect"===this.open&&(c.multiple=!0),a.HTMLResult.success({name:"label",attributes:{class:["xfaLabel"]},children:[{name:"select",children:l,attributes:c}]})}}class Z extends r.XFAObject{constructor(e){super(h,"color",!0),this.cSpace=(0,a.getStringOption)(e.cSpace,["SRGB"]),this.id=e.id||"",this.use=e.use||"",this.usehref=e.usehref||"",this.value=e.value?(0,a.getColor)(e.value):"",this.extras=null}[r.$hasSettableValue](){return!1}[r.$toStyle](){return this.value?l.Util.makeHexColor(this.value.r,this.value.g,this.value.b):null}}class $ extends r.XFAObject{constructor(e){super(h,"comb"),this.id=e.id||"",this.numberOfCells=(0,a.getInteger)({data:e.numberOfCells,defaultValue:0,validate:e=>e>=0}),this.use=e.use||"",this.usehref=e.usehref||""}}class J extends r.XFAObject{constructor(e){super(h,"connect",!0),this.connection=e.connection||"",this.id=e.id||"",this.ref=e.ref||"",this.usage=(0,a.getStringOption)(e.usage,["exportAndImport","exportOnly","importOnly"]),this.use=e.use||"",this.usehref=e.usehref||"",this.picture=null}}class Q extends r.XFAObject{constructor(e){super(h,"contentArea",!0),this.h=(0,a.getMeasurement)(e.h),this.id=e.id||"",this.name=e.name||"",this.relevant=(0,a.getRelevant)(e.relevant),this.use=e.use||"",this.usehref=e.usehref||"",this.w=(0,a.getMeasurement)(e.w),this.x=(0,a.getMeasurement)(e.x,"0pt"),this.y=(0,a.getMeasurement)(e.y,"0pt"),this.desc=null,this.extras=null}[r.$toHTML](e){const t={left:(0,s.measureToString)(this.x),top:(0,s.measureToString)(this.y),width:(0,s.measureToString)(this.w),height:(0,s.measureToString)(this.h)},n=["xfaContentarea"];return(0,s.isPrintOnly)(this)&&n.push("xfaPrintOnly"),a.HTMLResult.success({name:"div",children:[],attributes:{style:t,class:n,id:this[r.$uid]}})}}class ee extends r.XFAObject{constructor(e){super(h,"corner",!0),this.id=e.id||"",this.inverted=(0,a.getInteger)({data:e.inverted,defaultValue:0,validate:e=>1===e}),this.join=(0,a.getStringOption)(e.join,["square","round"]),this.presence=(0,a.getStringOption)(e.presence,["visible","hidden","inactive","invisible"]),this.radius=(0,a.getMeasurement)(e.radius),this.stroke=(0,a.getStringOption)(e.stroke,["solid","dashDot","dashDotDot","dashed","dotted","embossed","etched","lowered","raised"]),this.thickness=(0,a.getMeasurement)(e.thickness,"0.5pt"),this.use=e.use||"",this.usehref=e.usehref||"",this.color=null,this.extras=null}[r.$toStyle](){const e=(0,s.toStyle)(this,"visibility");return e.radius=(0,s.measureToString)("square"===this.join?0:this.radius),e}}class te extends r.ContentObject{constructor(e){super(h,"date"),this.id=e.id||"",this.name=e.name||"",this.use=e.use||"",this.usehref=e.usehref||""}[r.$finalize](){const e=this[r.$content].trim();this[r.$content]=e?new Date(e):null}[r.$toHTML](e){return P(this[r.$content]?this[r.$content].toString():"")}}class ne extends r.ContentObject{constructor(e){super(h,"dateTime"),this.id=e.id||"",this.name=e.name||"",this.use=e.use||"",this.usehref=e.usehref||""}[r.$finalize](){const e=this[r.$content].trim();this[r.$content]=e?new Date(e):null}[r.$toHTML](e){return P(this[r.$content]?this[r.$content].toString():"")}}class re extends r.XFAObject{constructor(e){super(h,"dateTimeEdit",!0),this.hScrollPolicy=(0,a.getStringOption)(e.hScrollPolicy,["auto","off","on"]),this.id=e.id||"",this.picker=(0,a.getStringOption)(e.picker,["host","none"]),this.use=e.use||"",this.usehref=e.usehref||"",this.border=null,this.comb=null,this.extras=null,this.margin=null}[r.$toHTML](e){const t=(0,s.toStyle)(this,"border","font","margin"),n=this[r.$getParent]()[r.$getParent](),i={name:"input",attributes:{type:"text",fieldId:n[r.$uid],dataId:n[r.$data]&&n[r.$data][r.$uid]||n[r.$uid],class:["xfaTextfield"],style:t,"aria-label":E(n),"aria-required":!1}};return x(n)&&(i.attributes["aria-required"]=!0,i.attributes.required=!0),a.HTMLResult.success({name:"label",attributes:{class:["xfaLabel"]},children:[i]})}}class ie extends r.ContentObject{constructor(e){super(h,"decimal"),this.fracDigits=(0,a.getInteger)({data:e.fracDigits,defaultValue:2,validate:e=>!0}),this.id=e.id||"",this.leadDigits=(0,a.getInteger)({data:e.leadDigits,defaultValue:-1,validate:e=>!0}),this.name=e.name||"",this.use=e.use||"",this.usehref=e.usehref||""}[r.$finalize](){const e=parseFloat(this[r.$content].trim());this[r.$content]=isNaN(e)?null:e}[r.$toHTML](e){return P(null!==this[r.$content]?this[r.$content].toString():"")}}class oe extends r.XFAObject{constructor(e){super(h,"defaultUi",!0),this.id=e.id||"",this.use=e.use||"",this.usehref=e.usehref||"",this.extras=null}}class se extends r.XFAObject{constructor(e){super(h,"desc",!0),this.id=e.id||"",this.use=e.use||"",this.usehref=e.usehref||"",this.boolean=new r.XFAObjectArray,this.date=new r.XFAObjectArray,this.dateTime=new r.XFAObjectArray,this.decimal=new r.XFAObjectArray,this.exData=new r.XFAObjectArray,this.float=new r.XFAObjectArray,this.image=new r.XFAObjectArray,this.integer=new r.XFAObjectArray,this.text=new r.XFAObjectArray,this.time=new r.XFAObjectArray}}class ae extends r.OptionObject{constructor(e){super(h,"digestMethod",["","SHA1","SHA256","SHA512","RIPEMD160"]),this.id=e.id||"",this.use=e.use||"",this.usehref=e.usehref||""}}class le extends r.XFAObject{constructor(e){super(h,"digestMethods",!0),this.id=e.id||"",this.type=(0,a.getStringOption)(e.type,["optional","required"]),this.use=e.use||"",this.usehref=e.usehref||"",this.digestMethod=new r.XFAObjectArray}}class ce extends r.XFAObject{constructor(e){super(h,"draw",!0),this.anchorType=(0,a.getStringOption)(e.anchorType,["topLeft","bottomCenter","bottomLeft","bottomRight","middleCenter","middleLeft","middleRight","topCenter","topRight"]),this.colSpan=(0,a.getInteger)({data:e.colSpan,defaultValue:1,validate:e=>e>=1||-1===e}),this.h=e.h?(0,a.getMeasurement)(e.h):"",this.hAlign=(0,a.getStringOption)(e.hAlign,["left","center","justify","justifyAll","radix","right"]),this.id=e.id||"",this.locale=e.locale||"",this.maxH=(0,a.getMeasurement)(e.maxH,"0pt"),this.maxW=(0,a.getMeasurement)(e.maxW,"0pt"),this.minH=(0,a.getMeasurement)(e.minH,"0pt"),this.minW=(0,a.getMeasurement)(e.minW,"0pt"),this.name=e.name||"",this.presence=(0,a.getStringOption)(e.presence,["visible","hidden","inactive","invisible"]),this.relevant=(0,a.getRelevant)(e.relevant),this.rotate=(0,a.getInteger)({data:e.rotate,defaultValue:0,validate:e=>e%90===0}),this.use=e.use||"",this.usehref=e.usehref||"",this.w=e.w?(0,a.getMeasurement)(e.w):"",this.x=(0,a.getMeasurement)(e.x,"0pt"),this.y=(0,a.getMeasurement)(e.y,"0pt"),this.assist=null,this.border=null,this.caption=null,this.desc=null,this.extras=null,this.font=null,this.keep=null,this.margin=null,this.para=null,this.traversal=null,this.ui=null,this.value=null,this.setProperty=new r.XFAObjectArray}[r.$setValue](e){_(this,e)}[r.$toHTML](e){if(S(this),"hidden"===this.presence||"inactive"===this.presence)return a.HTMLResult.EMPTY;(0,s.fixDimensions)(this),this[r.$pushPara]();const t=this.w,n=this.h,{w:i,h:l,isBroken:c}=(0,s.layoutNode)(this,e);if(i&&""===this.w){if(c&&this[r.$getSubformParent]()[r.$isThereMoreWidth]())return this[r.$popPara](),a.HTMLResult.FAILURE;this.w=i}if(l&&""===this.h&&(this.h=l),C(this),!(0,o.checkDimensions)(this,e))return this.w=t,this.h=n,this[r.$popPara](),a.HTMLResult.FAILURE;A(this);const u=(0,s.toStyle)(this,"font","hAlign","dimensions","position","presence","rotate","anchorType","border","margin");(0,s.setMinMaxDimensions)(this,u),u.margin&&(u.padding=u.margin,delete u.margin);const d=["xfaDraw"];this.font&&d.push("xfaFont"),(0,s.isPrintOnly)(this)&&d.push("xfaPrintOnly");const h={style:u,id:this[r.$uid],class:d};this.name&&(h.xfaName=this.name);const p={name:"div",attributes:h,children:[]};w(this,h);const f=(0,s.computeBbox)(this,p,e),g=this.value?this.value[r.$toHTML](e).html:null;return null===g?(this.w=t,this.h=n,this[r.$popPara](),a.HTMLResult.success((0,s.createWrapper)(this,p),f)):(p.children.push(g),(0,s.setPara)(this,u,g),this.w=t,this.h=n,this[r.$popPara](),a.HTMLResult.success((0,s.createWrapper)(this,p),f))}}class ue extends r.XFAObject{constructor(e){super(h,"edge",!0),this.cap=(0,a.getStringOption)(e.cap,["square","butt","round"]),this.id=e.id||"",this.presence=(0,a.getStringOption)(e.presence,["visible","hidden","inactive","invisible"]),this.stroke=(0,a.getStringOption)(e.stroke,["solid","dashDot","dashDotDot","dashed","dotted","embossed","etched","lowered","raised"]),this.thickness=(0,a.getMeasurement)(e.thickness,"0.5pt"),this.use=e.use||"",this.usehref=e.usehref||"",this.color=null,this.extras=null}[r.$toStyle](){const e=(0,s.toStyle)(this,"visibility");if(Object.assign(e,{linecap:this.cap,width:(0,s.measureToString)(this.thickness),color:this.color?this.color[r.$toStyle]():"#000000",style:""}),"visible"!==this.presence)e.style="none";else switch(this.stroke){case"solid":e.style="solid";break;case"dashDot":case"dashDotDot":case"dashed":e.style="dashed";break;case"dotted":e.style="dotted";break;case"embossed":e.style="ridge";break;case"etched":e.style="groove";break;case"lowered":e.style="inset";break;case"raised":e.style="outset"}return e}}class de extends r.OptionObject{constructor(e){super(h,"encoding",["adbe.x509.rsa_sha1","adbe.pkcs7.detached","adbe.pkcs7.sha1"]),this.id=e.id||"",this.use=e.use||"",this.usehref=e.usehref||""}}class he extends r.XFAObject{constructor(e){super(h,"encodings",!0),this.id=e.id||"",this.type=(0,a.getStringOption)(e.type,["optional","required"]),this.use=e.use||"",this.usehref=e.usehref||"",this.encoding=new r.XFAObjectArray}}class pe extends r.XFAObject{constructor(e){super(h,"encrypt",!0),this.id=e.id||"",this.use=e.use||"",this.usehref=e.usehref||"",this.certificate=null}}class fe extends r.XFAObject{constructor(e){super(h,"encryptData",!0),this.id=e.id||"",this.operation=(0,a.getStringOption)(e.operation,["encrypt","decrypt"]),this.target=e.target||"",this.use=e.use||"",this.usehref=e.usehref||"",this.filter=null,this.manifest=null}}class ge extends r.XFAObject{constructor(e){super(h,"encryption",!0),this.id=e.id||"",this.type=(0,a.getStringOption)(e.type,["optional","required"]),this.use=e.use||"",this.usehref=e.usehref||"",this.certificate=new r.XFAObjectArray}}class me extends r.OptionObject{constructor(e){super(h,"encryptionMethod",["","AES256-CBC","TRIPLEDES-CBC","AES128-CBC","AES192-CBC"]),this.id=e.id||"",this.use=e.use||"",this.usehref=e.usehref||""}}class ye extends r.XFAObject{constructor(e){super(h,"encryptionMethods",!0),this.id=e.id||"",this.type=(0,a.getStringOption)(e.type,["optional","required"]),this.use=e.use||"",this.usehref=e.usehref||"",this.encryptionMethod=new r.XFAObjectArray}}class ve extends r.XFAObject{constructor(e){super(h,"event",!0),this.activity=(0,a.getStringOption)(e.activity,["click","change","docClose","docReady","enter","exit","full","indexChange","initialize","mouseDown","mouseEnter","mouseExit","mouseUp","postExecute","postOpen","postPrint","postSave","postSign","postSubmit","preExecute","preOpen","prePrint","preSave","preSign","preSubmit","ready","validationState"]),this.id=e.id||"",this.listen=(0,a.getStringOption)(e.listen,["refOnly","refAndDescendents"]),this.name=e.name||"",this.ref=e.ref||"",this.use=e.use||"",this.usehref=e.usehref||"",this.extras=null,this.encryptData=null,this.execute=null,this.script=null,this.signData=null,this.submit=null}}class _e extends r.ContentObject{constructor(e){super(h,"exData"),this.contentType=e.contentType||"",this.href=e.href||"",this.id=e.id||"",this.maxLength=(0,a.getInteger)({data:e.maxLength,defaultValue:-1,validate:e=>e>=-1}),this.name=e.name||"",this.rid=e.rid||"",this.transferEncoding=(0,a.getStringOption)(e.transferEncoding,["none","base64","package"]),this.use=e.use||"",this.usehref=e.usehref||""}[r.$isCDATAXml](){return"text/html"===this.contentType}[r.$onChild](e){return("text/html"===this.contentType&&e[r.$namespaceId]===i.NamespaceIds.xhtml.id||"text/xml"===this.contentType)&&(this[r.$content]=e,!0)}[r.$toHTML](e){return"text/html"===this.contentType&&this[r.$content]?this[r.$content][r.$toHTML](e):a.HTMLResult.EMPTY}}class be extends r.XFAObject{constructor(e){super(h,"exObject",!0),this.archive=e.archive||"",this.classId=e.classId||"",this.codeBase=e.codeBase||"",this.codeType=e.codeType||"",this.id=e.id||"",this.name=e.name||"",this.use=e.use||"",this.usehref=e.usehref||"",this.extras=null,this.boolean=new r.XFAObjectArray,this.date=new r.XFAObjectArray,this.dateTime=new r.XFAObjectArray,this.decimal=new r.XFAObjectArray,this.exData=new r.XFAObjectArray,this.exObject=new r.XFAObjectArray,this.float=new r.XFAObjectArray,this.image=new r.XFAObjectArray,this.integer=new r.XFAObjectArray,this.text=new r.XFAObjectArray,this.time=new r.XFAObjectArray}}class xe extends r.XFAObject{constructor(e){super(h,"exclGroup",!0),this.access=(0,a.getStringOption)(e.access,["open","nonInteractive","protected","readOnly"]),this.accessKey=e.accessKey||"",this.anchorType=(0,a.getStringOption)(e.anchorType,["topLeft","bottomCenter","bottomLeft","bottomRight","middleCenter","middleLeft","middleRight","topCenter","topRight"]),this.colSpan=(0,a.getInteger)({data:e.colSpan,defaultValue:1,validate:e=>e>=1||-1===e}),this.h=e.h?(0,a.getMeasurement)(e.h):"",this.hAlign=(0,a.getStringOption)(e.hAlign,["left","center","justify","justifyAll","radix","right"]),this.id=e.id||"",this.layout=(0,a.getStringOption)(e.layout,["position","lr-tb","rl-row","rl-tb","row","table","tb"]),this.maxH=(0,a.getMeasurement)(e.maxH,"0pt"),this.maxW=(0,a.getMeasurement)(e.maxW,"0pt"),this.minH=(0,a.getMeasurement)(e.minH,"0pt"),this.minW=(0,a.getMeasurement)(e.minW,"0pt"),this.name=e.name||"",this.presence=(0,a.getStringOption)(e.presence,["visible","hidden","inactive","invisible"]),this.relevant=(0,a.getRelevant)(e.relevant),this.use=e.use||"",this.usehref=e.usehref||"",this.w=e.w?(0,a.getMeasurement)(e.w):"",this.x=(0,a.getMeasurement)(e.x,"0pt"),this.y=(0,a.getMeasurement)(e.y,"0pt"),this.assist=null,this.bind=null,this.border=null,this.calculate=null,this.caption=null,this.desc=null,this.extras=null,this.margin=null,this.para=null,this.traversal=null,this.validate=null,this.connect=new r.XFAObjectArray,this.event=new r.XFAObjectArray,this.field=new r.XFAObjectArray,this.setProperty=new r.XFAObjectArray}[r.$isBindable](){return!0}[r.$hasSettableValue](){return!0}[r.$setValue](e){for(const t of this.field.children){if(!t.value){const e=new Mt({});t[r.$appendChild](e),t.value=e}t.value[r.$setValue](e)}}[r.$isThereMoreWidth](){return this.layout.endsWith("-tb")&&0===this[r.$extra].attempt&&this[r.$extra].numberInLine>0||this[r.$getParent]()[r.$isThereMoreWidth]()}[r.$isSplittable](){const e=this[r.$getSubformParent]();return!!e[r.$isSplittable]()&&(void 0!==this[r.$extra]._isSplittable?this[r.$extra]._isSplittable:"position"===this.layout||this.layout.includes("row")?(this[r.$extra]._isSplittable=!1,!1):(!e.layout||!e.layout.endsWith("-tb")||0===e[r.$extra].numberInLine)&&(this[r.$extra]._isSplittable=!0,!0))}[r.$flushHTML](){return(0,o.flushHTML)(this)}[r.$addHTML](e,t){(0,o.addHTML)(this,e,t)}[r.$getAvailableSpace](){return(0,o.getAvailableSpace)(this)}[r.$toHTML](e){if(S(this),"hidden"===this.presence||"inactive"===this.presence||0===this.h||0===this.w)return a.HTMLResult.EMPTY;(0,s.fixDimensions)(this);const t=[],n={id:this[r.$uid],class:[]};(0,s.setAccess)(this,n.class),this[r.$extra]||(this[r.$extra]=Object.create(null)),Object.assign(this[r.$extra],{children:t,attributes:n,attempt:0,line:null,numberInLine:0,availableSpace:{width:Math.min(this.w||1/0,e.width),height:Math.min(this.h||1/0,e.height)},width:0,height:0,prevHeight:0,currentWidth:0});const i=this[r.$isSplittable]();if(i||C(this),!(0,o.checkDimensions)(this,e))return a.HTMLResult.FAILURE;const l=new Set(["field"]);if(this.layout.includes("row")){const e=this[r.$getSubformParent]().columnWidths;Array.isArray(e)&&e.length>0&&(this[r.$extra].columnWidths=e,this[r.$extra].currentColumn=0)}const c=(0,s.toStyle)(this,"anchorType","dimensions","position","presence","border","margin","hAlign"),u=["xfaExclgroup"],d=(0,s.layoutClass)(this);d&&u.push(d),(0,s.isPrintOnly)(this)&&u.push("xfaPrintOnly"),n.style=c,n.class=u,this.name&&(n.xfaName=this.name),this[r.$pushPara]();const h="lr-tb"===this.layout||"rl-tb"===this.layout,p=h?2:1;for(;this[r.$extra].attempt<p;this[r.$extra].attempt++){h&&1===this[r.$extra].attempt&&(this[r.$extra].numberInLine=0);const e=this[r.$childrenToHTML]({filter:l,include:!0});if(e.success)break;if(e.isBreak())return this[r.$popPara](),e;if(h&&0===this[r.$extra].attempt&&0===this[r.$extra].numberInLine&&!this[r.$getTemplateRoot]()[r.$extra].noLayoutFailure){this[r.$extra].attempt=p;break}}if(this[r.$popPara](),i||A(this),this[r.$extra].attempt===p)return i||delete this[r.$extra],a.HTMLResult.FAILURE;let f=0,g=0;this.margin&&(f=this.margin.leftInset+this.margin.rightInset,g=this.margin.topInset+this.margin.bottomInset);const m=Math.max(this[r.$extra].width+f,this.w||0),y=Math.max(this[r.$extra].height+g,this.h||0),v=[this.x,this.y,m,y];""===this.w&&(c.width=(0,s.measureToString)(m)),""===this.h&&(c.height=(0,s.measureToString)(y));const _={name:"div",attributes:n,children:t};return w(this,n),delete this[r.$extra],a.HTMLResult.success((0,s.createWrapper)(this,_),v)}}class Se extends r.XFAObject{constructor(e){super(h,"execute"),this.connection=e.connection||"",this.executeType=(0,a.getStringOption)(e.executeType,["import","remerge"]),this.id=e.id||"",this.runAt=(0,a.getStringOption)(e.runAt,["client","both","server"]),this.use=e.use||"",this.usehref=e.usehref||""}}class we extends r.XFAObject{constructor(e){super(h,"extras",!0),this.id=e.id||"",this.name=e.name||"",this.use=e.use||"",this.usehref=e.usehref||"",this.boolean=new r.XFAObjectArray,this.date=new r.XFAObjectArray,this.dateTime=new r.XFAObjectArray,this.decimal=new r.XFAObjectArray,this.exData=new r.XFAObjectArray,this.extras=new r.XFAObjectArray,this.float=new r.XFAObjectArray,this.image=new r.XFAObjectArray,this.integer=new r.XFAObjectArray,this.text=new r.XFAObjectArray,this.time=new r.XFAObjectArray}}class Ee extends r.XFAObject{constructor(e){super(h,"field",!0),this.access=(0,a.getStringOption)(e.access,["open","nonInteractive","protected","readOnly"]),this.accessKey=e.accessKey||"",this.anchorType=(0,a.getStringOption)(e.anchorType,["topLeft","bottomCenter","bottomLeft","bottomRight","middleCenter","middleLeft","middleRight","topCenter","topRight"]),this.colSpan=(0,a.getInteger)({data:e.colSpan,defaultValue:1,validate:e=>e>=1||-1===e}),this.h=e.h?(0,a.getMeasurement)(e.h):"",this.hAlign=(0,a.getStringOption)(e.hAlign,["left","center","justify","justifyAll","radix","right"]),this.id=e.id||"",this.locale=e.locale||"",this.maxH=(0,a.getMeasurement)(e.maxH,"0pt"),this.maxW=(0,a.getMeasurement)(e.maxW,"0pt"),this.minH=(0,a.getMeasurement)(e.minH,"0pt"),this.minW=(0,a.getMeasurement)(e.minW,"0pt"),this.name=e.name||"",this.presence=(0,a.getStringOption)(e.presence,["visible","hidden","inactive","invisible"]),this.relevant=(0,a.getRelevant)(e.relevant),this.rotate=(0,a.getInteger)({data:e.rotate,defaultValue:0,validate:e=>e%90===0}),this.use=e.use||"",this.usehref=e.usehref||"",this.w=e.w?(0,a.getMeasurement)(e.w):"",this.x=(0,a.getMeasurement)(e.x,"0pt"),this.y=(0,a.getMeasurement)(e.y,"0pt"),this.assist=null,this.bind=null,this.border=null,this.calculate=null,this.caption=null,this.desc=null,this.extras=null,this.font=null,this.format=null,this.items=new r.XFAObjectArray(2),this.keep=null,this.margin=null,this.para=null,this.traversal=null,this.ui=null,this.validate=null,this.value=null,this.bindItems=new r.XFAObjectArray,this.connect=new r.XFAObjectArray,this.event=new r.XFAObjectArray,this.setProperty=new r.XFAObjectArray}[r.$isBindable](){return!0}[r.$setValue](e){_(this,e)}[r.$toHTML](e){if(S(this),!this.ui){let e;switch(this.ui=new Gt({}),this.ui[r.$globalData]=this[r.$globalData],this[r.$appendChild](this.ui),this.items.children.length){case 0:e=new Pt({}),this.ui.textEdit=e;break;case 1:e=new Y({}),this.ui.checkButton=e;break;case 2:e=new K({}),this.ui.choiceList=e}this.ui[r.$appendChild](e)}if(!this.ui||"hidden"===this.presence||"inactive"===this.presence||0===this.h||0===this.w)return a.HTMLResult.EMPTY;this.caption&&delete this.caption[r.$extra],this[r.$pushPara]();const t=this.caption?this.caption[r.$toHTML](e).html:null,n=this.w,i=this.h;let l=0,u=0;this.margin&&(l=this.margin.leftInset+this.margin.rightInset,u=this.margin.topInset+this.margin.bottomInset);let d=null;if(""===this.w||""===this.h){let t=null,n=null,i=0,o=0;if(this.ui.checkButton)i=o=this.ui.checkButton.size;else{const{w:t,h:n}=(0,s.layoutNode)(this,e);null!==t?(i=t,o=n):o=(0,c.getMetrics)(this.font,!0).lineNoGap}if(d=y(this.ui[r.$getExtra]()),i+=d.w,o+=d.h,this.caption){const{w:s,h:l,isBroken:c}=this.caption[r.$getExtra](e);if(c&&this[r.$getSubformParent]()[r.$isThereMoreWidth]())return this[r.$popPara](),a.HTMLResult.FAILURE;switch(t=s,n=l,this.caption.placement){case"left":case"right":case"inline":t+=i;break;case"top":case"bottom":n+=o}}else t=i,n=o;t&&""===this.w&&(t+=l,this.w=Math.min(this.maxW<=0?1/0:this.maxW,this.minW+1<t?t:this.minW)),n&&""===this.h&&(n+=u,this.h=Math.min(this.maxH<=0?1/0:this.maxH,this.minH+1<n?n:this.minH))}if(this[r.$popPara](),(0,s.fixDimensions)(this),C(this),!(0,o.checkDimensions)(this,e))return this.w=n,this.h=i,this[r.$popPara](),a.HTMLResult.FAILURE;A(this);const h=(0,s.toStyle)(this,"font","dimensions","position","rotate","anchorType","presence","margin","hAlign");(0,s.setMinMaxDimensions)(this,h);const p=["xfaField"];this.font&&p.push("xfaFont"),(0,s.isPrintOnly)(this)&&p.push("xfaPrintOnly");const f={style:h,id:this[r.$uid],class:p};h.margin&&(h.padding=h.margin,delete h.margin),(0,s.setAccess)(this,p),this.name&&(f.xfaName=this.name);const g=[],m={name:"div",attributes:f,children:g};w(this,f);const v=this.border?this.border[r.$toStyle]():null,_=(0,s.computeBbox)(this,m,e),b=this.ui[r.$toHTML]().html;if(!b)return Object.assign(h,v),a.HTMLResult.success((0,s.createWrapper)(this,m),_);this[r.$tabIndex]&&(b.children&&b.children[0]?b.children[0].attributes.tabindex=this[r.$tabIndex]:b.attributes.tabindex=this[r.$tabIndex]),b.attributes.style||(b.attributes.style=Object.create(null));let x=null;if(this.ui.button?(1===b.children.length&&([x]=b.children.splice(0,1)),Object.assign(b.attributes.style,v)):Object.assign(h,v),g.push(b),this.value)if(this.ui.imageEdit)b.children.push(this.value[r.$toHTML]().html);else if(!this.ui.button){let e="";if(this.value.exData)e=this.value.exData[r.$text]();else if(this.value.text)e=this.value.text[r.$getExtra]();else{const t=this.value[r.$toHTML]().html;null!==t&&(e=t.children[0].value)}this.ui.textEdit&&this.value.text&&this.value.text.maxChars&&(b.children[0].attributes.maxLength=this.value.text.maxChars),e&&(this.ui.numericEdit&&(e=parseFloat(e),e=isNaN(e)?"":e.toString()),"textarea"===b.children[0].name?b.children[0].attributes.textContent=e:b.children[0].attributes.value=e)}if(!this.ui.imageEdit&&b.children&&b.children[0]&&this.h){d=d||y(this.ui[r.$getExtra]());let t=0;if(this.caption&&["top","bottom"].includes(this.caption.placement)){t=this.caption.reserve,t<=0&&(t=this.caption[r.$getExtra](e).h);const n=this.h-t-u-d.h;b.children[0].attributes.style.height=(0,s.measureToString)(n)}else b.children[0].attributes.style.height="100%"}if(x&&b.children.push(x),!t)return b.attributes.class&&b.attributes.class.push("xfaLeft"),this.w=n,this.h=i,a.HTMLResult.success((0,s.createWrapper)(this,m),_);if(this.ui.button)return h.padding&&delete h.padding,"div"===t.name&&(t.name="span"),b.children.push(t),a.HTMLResult.success(m,_);switch(this.ui.checkButton&&(t.attributes.class[0]="xfaCaptionForCheckButton"),b.attributes.class||(b.attributes.class=[]),b.children.splice(0,0,t),this.caption.placement){case"left":case"inline":b.attributes.class.push("xfaLeft");break;case"right":b.attributes.class.push("xfaRight");break;case"top":b.attributes.class.push("xfaTop");break;case"bottom":b.attributes.class.push("xfaBottom")}return this.w=n,this.h=i,a.HTMLResult.success((0,s.createWrapper)(this,m),_)}}t.Field=Ee;class Pe extends r.XFAObject{constructor(e){super(h,"fill",!0),this.id=e.id||"",this.presence=(0,a.getStringOption)(e.presence,["visible","hidden","inactive","invisible"]),this.use=e.use||"",this.usehref=e.usehref||"",this.color=null,this.extras=null,this.linear=null,this.pattern=null,this.radial=null,this.solid=null,this.stipple=null}[r.$toStyle](){const e=this[r.$getParent](),t=e[r.$getParent]()[r.$getParent](),n=Object.create(null);let i="color",o=i;e instanceof V&&(i="background-color",o="background",t instanceof Gt&&(n.backgroundColor="white")),(e instanceof lt||e instanceof G)&&(i=o="fill",n.fill="white");for(const s of Object.getOwnPropertyNames(this)){if("extras"===s||"color"===s)continue;const e=this[s];if(!(e instanceof r.XFAObject))continue;const t=e[r.$toStyle](this.color);return t&&(n[t.startsWith("#")?i:o]=t),n}if(this.color&&this.color.value){const e=this.color[r.$toStyle]();n[e.startsWith("#")?i:o]=e}return n}}class Ce extends r.XFAObject{constructor(e){super(h,"filter",!0),this.addRevocationInfo=(0,a.getStringOption)(e.addRevocationInfo,["","required","optional","none"]),this.id=e.id||"",this.name=e.name||"",this.use=e.use||"",this.usehref=e.usehref||"",this.version=(0,a.getInteger)({data:this.version,defaultValue:5,validate:e=>e>=1&&e<=5}),this.appearanceFilter=null,this.certificates=null,this.digestMethods=null,this.encodings=null,this.encryptionMethods=null,this.handler=null,this.lockDocument=null,this.mdp=null,this.reasons=null,this.timeStamp=null}}class Ae extends r.ContentObject{constructor(e){super(h,"float"),this.id=e.id||"",this.name=e.name||"",this.use=e.use||"",this.usehref=e.usehref||""}[r.$finalize](){const e=parseFloat(this[r.$content].trim());this[r.$content]=isNaN(e)?null:e}[r.$toHTML](e){return P(null!==this[r.$content]?this[r.$content].toString():"")}}class ke extends r.XFAObject{constructor(e){super(h,"font",!0),this.baselineShift=(0,a.getMeasurement)(e.baselineShift),this.fontHorizontalScale=(0,a.getFloat)({data:e.fontHorizontalScale,defaultValue:100,validate:e=>e>=0}),this.fontVerticalScale=(0,a.getFloat)({data:e.fontVerticalScale,defaultValue:100,validate:e=>e>=0}),this.id=e.id||"",this.kerningMode=(0,a.getStringOption)(e.kerningMode,["none","pair"]),this.letterSpacing=(0,a.getMeasurement)(e.letterSpacing,"0"),this.lineThrough=(0,a.getInteger)({data:e.lineThrough,defaultValue:0,validate:e=>1===e||2===e}),this.lineThroughPeriod=(0,a.getStringOption)(e.lineThroughPeriod,["all","word"]),this.overline=(0,a.getInteger)({data:e.overline,defaultValue:0,validate:e=>1===e||2===e}),this.overlinePeriod=(0,a.getStringOption)(e.overlinePeriod,["all","word"]),this.posture=(0,a.getStringOption)(e.posture,["normal","italic"]),this.size=(0,a.getMeasurement)(e.size,"10pt"),this.typeface=e.typeface||"Courier",this.underline=(0,a.getInteger)({data:e.underline,defaultValue:0,validate:e=>1===e||2===e}),this.underlinePeriod=(0,a.getStringOption)(e.underlinePeriod,["all","word"]),this.use=e.use||"",this.usehref=e.usehref||"",this.weight=(0,a.getStringOption)(e.weight,["normal","bold"]),this.extras=null,this.fill=null}[r.$clean](e){super[r.$clean](e),this[r.$globalData].usedTypefaces.add(this.typeface)}[r.$toStyle](){const e=(0,s.toStyle)(this,"fill"),t=e.color;return t&&("#000000"===t?delete e.color:t.startsWith("#")||(e.background=t,e.backgroundClip="text",e.color="transparent")),this.baselineShift&&(e.verticalAlign=(0,s.measureToString)(this.baselineShift)),e.fontKerning="none"===this.kerningMode?"none":"normal",e.letterSpacing=(0,s.measureToString)(this.letterSpacing),0!==this.lineThrough&&(e.textDecoration="line-through",2===this.lineThrough&&(e.textDecorationStyle="double")),0!==this.overline&&(e.textDecoration="overline",2===this.overline&&(e.textDecorationStyle="double")),e.fontStyle=this.posture,e.fontSize=(0,s.measureToString)(.99*this.size),(0,s.setFontFamily)(this,this,this[r.$globalData].fontFinder,e),0!==this.underline&&(e.textDecoration="underline",2===this.underline&&(e.textDecorationStyle="double")),e.fontWeight=this.weight,e}}class je extends r.XFAObject{constructor(e){super(h,"format",!0),this.id=e.id||"",this.use=e.use||"",this.usehref=e.usehref||"",this.extras=null,this.picture=null}}class Ie extends r.StringObject{constructor(e){super(h,"handler"),this.id=e.id||"",this.type=(0,a.getStringOption)(e.type,["optional","required"]),this.use=e.use||"",this.usehref=e.usehref||""}}class Ge extends r.XFAObject{constructor(e){super(h,"hyphenation"),this.excludeAllCaps=(0,a.getInteger)({data:e.excludeAllCaps,defaultValue:0,validate:e=>1===e}),this.excludeInitialCap=(0,a.getInteger)({data:e.excludeInitialCap,defaultValue:0,validate:e=>1===e}),this.hyphenate=(0,a.getInteger)({data:e.hyphenate,defaultValue:0,validate:e=>1===e}),this.id=e.id||"",this.pushCharacterCount=(0,a.getInteger)({data:e.pushCharacterCount,defaultValue:3,validate:e=>e>=0}),this.remainCharacterCount=(0,a.getInteger)({data:e.remainCharacterCount,defaultValue:3,validate:e=>e>=0}),this.use=e.use||"",this.usehref=e.usehref||"",this.wordCharacterCount=(0,a.getInteger)({data:e.wordCharacterCount,defaultValue:7,validate:e=>e>=0})}}class Te extends r.StringObject{constructor(e){super(h,"image"),this.aspect=(0,a.getStringOption)(e.aspect,["fit","actual","height","none","width"]),this.contentType=e.contentType||"",this.href=e.href||"",this.id=e.id||"",this.name=e.name||"",this.transferEncoding=(0,a.getStringOption)(e.transferEncoding,["base64","none","package"]),this.use=e.use||"",this.usehref=e.usehref||""}[r.$toHTML](){if(this.contentType&&!g.has(this.contentType.toLowerCase()))return a.HTMLResult.EMPTY;let e=this[r.$globalData].images&&this[r.$globalData].images.get(this.href);if(!e&&(this.href||!this[r.$content]))return a.HTMLResult.EMPTY;if(e||"base64"!==this.transferEncoding||(e=(0,l.stringToBytes)(atob(this[r.$content]))),!e)return a.HTMLResult.EMPTY;if(!this.contentType){for(const[t,n]of m)if(e.length>t.length&&t.every(((t,n)=>t===e[n]))){this.contentType=n;break}if(!this.contentType)return a.HTMLResult.EMPTY}const t=new Blob([e],{type:this.contentType});let n;switch(this.aspect){case"fit":case"actual":break;case"height":n={height:"100%",objectFit:"fill"};break;case"none":n={width:"100%",height:"100%",objectFit:"fill"};break;case"width":n={width:"100%",objectFit:"fill"}}const i=this[r.$getParent]();return a.HTMLResult.success({name:"img",attributes:{class:["xfaImage"],style:n,src:URL.createObjectURL(t),alt:i?E(i[r.$getParent]()):null}})}}class Me extends r.XFAObject{constructor(e){super(h,"imageEdit",!0),this.data=(0,a.getStringOption)(e.data,["link","embed"]),this.id=e.id||"",this.use=e.use||"",this.usehref=e.usehref||"",this.border=null,this.extras=null,this.margin=null}[r.$toHTML](e){return"embed"===this.data?a.HTMLResult.success({name:"div",children:[],attributes:{}}):a.HTMLResult.EMPTY}}class Oe extends r.ContentObject{constructor(e){super(h,"integer"),this.id=e.id||"",this.name=e.name||"",this.use=e.use||"",this.usehref=e.usehref||""}[r.$finalize](){const e=parseInt(this[r.$content].trim(),10);this[r.$content]=isNaN(e)?null:e}[r.$toHTML](e){return P(null!==this[r.$content]?this[r.$content].toString():"")}}class Re extends r.XFAObject{constructor(e){super(h,"issuers",!0),this.id=e.id||"",this.type=(0,a.getStringOption)(e.type,["optional","required"]),this.use=e.use||"",this.usehref=e.usehref||"",this.certificate=new r.XFAObjectArray}}class De extends r.XFAObject{constructor(e){super(h,"items",!0),this.id=e.id||"",this.name=e.name||"",this.presence=(0,a.getStringOption)(e.presence,["visible","hidden","inactive","invisible"]),this.ref=e.ref||"",this.save=(0,a.getInteger)({data:e.save,defaultValue:0,validate:e=>1===e}),this.use=e.use||"",this.usehref=e.usehref||"",this.boolean=new r.XFAObjectArray,this.date=new r.XFAObjectArray,this.dateTime=new r.XFAObjectArray,this.decimal=new r.XFAObjectArray,this.exData=new r.XFAObjectArray,this.float=new r.XFAObjectArray,this.image=new r.XFAObjectArray,this.integer=new r.XFAObjectArray,this.text=new r.XFAObjectArray,this.time=new r.XFAObjectArray}[r.$toHTML](){const e=[];for(const t of this[r.$getChildren]())e.push(t[r.$text]());return a.HTMLResult.success(e)}}t.Items=De;class Ne extends r.XFAObject{constructor(e){super(h,"keep",!0),this.id=e.id||"";const t=["none","contentArea","pageArea"];this.intact=(0,a.getStringOption)(e.intact,t),this.next=(0,a.getStringOption)(e.next,t),this.previous=(0,a.getStringOption)(e.previous,t),this.use=e.use||"",this.usehref=e.usehref||"",this.extras=null}}class Le extends r.XFAObject{constructor(e){super(h,"keyUsage");const t=["","yes","no"];this.crlSign=(0,a.getStringOption)(e.crlSign,t),this.dataEncipherment=(0,a.getStringOption)(e.dataEncipherment,t),this.decipherOnly=(0,a.getStringOption)(e.decipherOnly,t),this.digitalSignature=(0,a.getStringOption)(e.digitalSignature,t),this.encipherOnly=(0,a.getStringOption)(e.encipherOnly,t),this.id=e.id||"",this.keyAgreement=(0,a.getStringOption)(e.keyAgreement,t),this.keyCertSign=(0,a.getStringOption)(e.keyCertSign,t),this.keyEncipherment=(0,a.getStringOption)(e.keyEncipherment,t),this.nonRepudiation=(0,a.getStringOption)(e.nonRepudiation,t),this.type=(0,a.getStringOption)(e.type,["optional","required"]),this.use=e.use||"",this.usehref=e.usehref||""}}class Ve extends r.XFAObject{constructor(e){super(h,"line",!0),this.hand=(0,a.getStringOption)(e.hand,["even","left","right"]),this.id=e.id||"",this.slope=(0,a.getStringOption)(e.slope,["\\","/"]),this.use=e.use||"",this.usehref=e.usehref||"",this.edge=null}[r.$toHTML](){const e=this[r.$getParent]()[r.$getParent](),t=this.edge||new ue({}),n=t[r.$toStyle](),i=Object.create(null),o="visible"===t.presence?t.thickness:0;let l,c,u,d;i.strokeWidth=(0,s.measureToString)(o),i.stroke=n.color;let h="100%",f="100%";e.w<=o?([l,c,u,d]=["50%",0,"50%","100%"],h=i.strokeWidth):e.h<=o?([l,c,u,d]=[0,"50%","100%","50%"],f=i.strokeWidth):"\\"===this.slope?[l,c,u,d]=[0,0,"100%","100%"]:[l,c,u,d]=[0,"100%","100%",0];const g={name:"svg",children:[{name:"line",attributes:{xmlns:p,x1:l,y1:c,x2:u,y2:d,style:i}}],attributes:{xmlns:p,width:h,height:f,style:{overflow:"visible"}}};return v(e)?a.HTMLResult.success({name:"div",attributes:{style:{display:"inline",width:"100%",height:"100%"}},children:[g]}):(g.attributes.style.position="absolute",a.HTMLResult.success(g))}}class Fe extends r.XFAObject{constructor(e){super(h,"linear",!0),this.id=e.id||"",this.type=(0,a.getStringOption)(e.type,["toRight","toBottom","toLeft","toTop"]),this.use=e.use||"",this.usehref=e.usehref||"",this.color=null,this.extras=null}[r.$toStyle](e){e=e?e[r.$toStyle]():"#FFFFFF";const t=this.type.replace(/([RBLT])/," $1").toLowerCase(),n=this.color?this.color[r.$toStyle]():"#000000";return"linear-gradient(".concat(t,", ").concat(e,", ").concat(n,")")}}class ze extends r.ContentObject{constructor(e){super(h,"lockDocument"),this.id=e.id||"",this.type=(0,a.getStringOption)(e.type,["optional","required"]),this.use=e.use||"",this.usehref=e.usehref||""}[r.$finalize](){this[r.$content]=(0,a.getStringOption)(this[r.$content],["auto","0","1"])}}class Be extends r.XFAObject{constructor(e){super(h,"manifest",!0),this.action=(0,a.getStringOption)(e.action,["include","all","exclude"]),this.id=e.id||"",this.name=e.name||"",this.use=e.use||"",this.usehref=e.usehref||"",this.extras=null,this.ref=new r.XFAObjectArray}}class Ue extends r.XFAObject{constructor(e){super(h,"margin",!0),this.bottomInset=(0,a.getMeasurement)(e.bottomInset,"0"),this.id=e.id||"",this.leftInset=(0,a.getMeasurement)(e.leftInset,"0"),this.rightInset=(0,a.getMeasurement)(e.rightInset,"0"),this.topInset=(0,a.getMeasurement)(e.topInset,"0"),this.use=e.use||"",this.usehref=e.usehref||"",this.extras=null}[r.$toStyle](){return{margin:(0,s.measureToString)(this.topInset)+" "+(0,s.measureToString)(this.rightInset)+" "+(0,s.measureToString)(this.bottomInset)+" "+(0,s.measureToString)(this.leftInset)}}}class We extends r.XFAObject{constructor(e){super(h,"mdp"),this.id=e.id||"",this.permissions=(0,a.getInteger)({data:e.permissions,defaultValue:2,validate:e=>1===e||3===e}),this.signatureType=(0,a.getStringOption)(e.signatureType,["filler","author"]),this.use=e.use||"",this.usehref=e.usehref||""}}class He extends r.XFAObject{constructor(e){super(h,"medium"),this.id=e.id||"",this.imagingBBox=(0,a.getBBox)(e.imagingBBox),this.long=(0,a.getMeasurement)(e.long),this.orientation=(0,a.getStringOption)(e.orientation,["portrait","landscape"]),this.short=(0,a.getMeasurement)(e.short),this.stock=e.stock||"",this.trayIn=(0,a.getStringOption)(e.trayIn,["auto","delegate","pageFront"]),this.trayOut=(0,a.getStringOption)(e.trayOut,["auto","delegate"]),this.use=e.use||"",this.usehref=e.usehref||""}}class qe extends r.XFAObject{constructor(e){super(h,"message",!0),this.id=e.id||"",this.use=e.use||"",this.usehref=e.usehref||"",this.text=new r.XFAObjectArray}}class Xe extends r.XFAObject{constructor(e){super(h,"numericEdit",!0),this.hScrollPolicy=(0,a.getStringOption)(e.hScrollPolicy,["auto","off","on"]),this.id=e.id||"",this.use=e.use||"",this.usehref=e.usehref||"",this.border=null,this.comb=null,this.extras=null,this.margin=null}[r.$toHTML](e){const t=(0,s.toStyle)(this,"border","font","margin"),n=this[r.$getParent]()[r.$getParent](),i={name:"input",attributes:{type:"text",fieldId:n[r.$uid],dataId:n[r.$data]&&n[r.$data][r.$uid]||n[r.$uid],class:["xfaTextfield"],style:t,"aria-label":E(n),"aria-required":!1}};return x(n)&&(i.attributes["aria-required"]=!0,i.attributes.required=!0),a.HTMLResult.success({name:"label",attributes:{class:["xfaLabel"]},children:[i]})}}class Ye extends r.XFAObject{constructor(e){super(h,"occur",!0),this.id=e.id||"",this.initial=""!==e.initial?(0,a.getInteger)({data:e.initial,defaultValue:"",validate:e=>!0}):"",this.max=""!==e.max?(0,a.getInteger)({data:e.max,defaultValue:1,validate:e=>!0}):"",this.min=""!==e.min?(0,a.getInteger)({data:e.min,defaultValue:1,validate:e=>!0}):"",this.use=e.use||"",this.usehref=e.usehref||"",this.extras=null}[r.$clean](){const e=this[r.$getParent](),t=this.min;""===this.min&&(this.min=e instanceof Je||e instanceof Qe?0:1),""===this.max&&(this.max=""===t?e instanceof Je||e instanceof Qe?-1:1:this.min),-1!==this.max&&this.max<this.min&&(this.max=this.min),""===this.initial&&(this.initial=e instanceof wt?1:this.min)}}class Ke extends r.StringObject{constructor(e){super(h,"oid"),this.id=e.id||"",this.name=e.name||"",this.use=e.use||"",this.usehref=e.usehref||""}}class Ze extends r.XFAObject{constructor(e){super(h,"oids",!0),this.id=e.id||"",this.type=(0,a.getStringOption)(e.type,["optional","required"]),this.use=e.use||"",this.usehref=e.usehref||"",this.oid=new r.XFAObjectArray}}class $e extends r.XFAObject{constructor(e){super(h,"overflow"),this.id=e.id||"",this.leader=e.leader||"",this.target=e.target||"",this.trailer=e.trailer||"",this.use=e.use||"",this.usehref=e.usehref||""}[r.$getExtra](){if(!this[r.$extra]){const e=this[r.$getParent](),t=this[r.$getTemplateRoot](),n=t[r.$searchNode](this.target,e),i=t[r.$searchNode](this.leader,e),o=t[r.$searchNode](this.trailer,e);this[r.$extra]={target:n&&n[0]||null,leader:i&&i[0]||null,trailer:o&&o[0]||null,addLeader:!1,addTrailer:!1}}return this[r.$extra]}}class Je extends r.XFAObject{constructor(e){super(h,"pageArea",!0),this.blankOrNotBlank=(0,a.getStringOption)(e.blankOrNotBlank,["any","blank","notBlank"]),this.id=e.id||"",this.initialNumber=(0,a.getInteger)({data:e.initialNumber,defaultValue:1,validate:e=>!0}),this.name=e.name||"",this.numbered=(0,a.getInteger)({data:e.numbered,defaultValue:1,validate:e=>!0}),this.oddOrEven=(0,a.getStringOption)(e.oddOrEven,["any","even","odd"]),this.pagePosition=(0,a.getStringOption)(e.pagePosition,["any","first","last","only","rest"]),this.relevant=(0,a.getRelevant)(e.relevant),this.use=e.use||"",this.usehref=e.usehref||"",this.desc=null,this.extras=null,this.medium=null,this.occur=null,this.area=new r.XFAObjectArray,this.contentArea=new r.XFAObjectArray,this.draw=new r.XFAObjectArray,this.exclGroup=new r.XFAObjectArray,this.field=new r.XFAObjectArray,this.subform=new r.XFAObjectArray}[r.$isUsable](){return this[r.$extra]?!this.occur||-1===this.occur.max||this[r.$extra].numberOfUse<this.occur.max:(this[r.$extra]={numberOfUse:0},!0)}[r.$cleanPage](){delete this[r.$extra]}[r.$getNextPage](){this[r.$extra]||(this[r.$extra]={numberOfUse:0});const e=this[r.$getParent]();return"orderedOccurrence"===e.relation&&this[r.$isUsable]()?(this[r.$extra].numberOfUse+=1,this):e[r.$getNextPage]()}[r.$getAvailableSpace](){return this[r.$extra].space||{width:0,height:0}}[r.$toHTML](){this[r.$extra]||(this[r.$extra]={numberOfUse:1});const e=[];this[r.$extra].children=e;const t=Object.create(null);if(this.medium&&this.medium.short&&this.medium.long){if(t.width=(0,s.measureToString)(this.medium.short),t.height=(0,s.measureToString)(this.medium.long),this[r.$extra].space={width:this.medium.short,height:this.medium.long},"landscape"===this.medium.orientation){const e=t.width;t.width=t.height,t.height=e,this[r.$extra].space={width:this.medium.long,height:this.medium.short}}}else(0,l.warn)("XFA - No medium specified in pageArea: please file a bug.");return this[r.$childrenToHTML]({filter:new Set(["area","draw","field","subform"]),include:!0}),this[r.$childrenToHTML]({filter:new Set(["contentArea"]),include:!0}),a.HTMLResult.success({name:"div",children:e,attributes:{class:["xfaPage"],id:this[r.$uid],style:t,xfaName:this.name}})}}class Qe extends r.XFAObject{constructor(e){super(h,"pageSet",!0),this.duplexImposition=(0,a.getStringOption)(e.duplexImposition,["longEdge","shortEdge"]),this.id=e.id||"",this.name=e.name||"",this.relation=(0,a.getStringOption)(e.relation,["orderedOccurrence","duplexPaginated","simplexPaginated"]),this.relevant=(0,a.getRelevant)(e.relevant),this.use=e.use||"",this.usehref=e.usehref||"",this.extras=null,this.occur=null,this.pageArea=new r.XFAObjectArray,this.pageSet=new r.XFAObjectArray}[r.$cleanPage](){for(const e of this.pageArea.children)e[r.$cleanPage]();for(const e of this.pageSet.children)e[r.$cleanPage]()}[r.$isUsable](){return!this.occur||-1===this.occur.max||this[r.$extra].numberOfUse<this.occur.max}[r.$getNextPage](){if(this[r.$extra]||(this[r.$extra]={numberOfUse:1,pageIndex:-1,pageSetIndex:-1}),"orderedOccurrence"===this.relation){if(this[r.$extra].pageIndex+1<this.pageArea.children.length)return this[r.$extra].pageIndex+=1,this.pageArea.children[this[r.$extra].pageIndex][r.$getNextPage]();if(this[r.$extra].pageSetIndex+1<this.pageSet.children.length)return this[r.$extra].pageSetIndex+=1,this.pageSet.children[this[r.$extra].pageSetIndex][r.$getNextPage]();if(this[r.$isUsable]())return this[r.$extra].numberOfUse+=1,this[r.$extra].pageIndex=-1,this[r.$extra].pageSetIndex=-1,this[r.$getNextPage]();const e=this[r.$getParent]();return e instanceof Qe?e[r.$getNextPage]():(this[r.$cleanPage](),this[r.$getNextPage]())}const e=this[r.$getTemplateRoot]()[r.$extra].pageNumber,t=e%2===0?"even":"odd",n=0===e?"first":"rest";let i=this.pageArea.children.find((e=>e.oddOrEven===t&&e.pagePosition===n));return i||(i=this.pageArea.children.find((e=>"any"===e.oddOrEven&&e.pagePosition===n)),i||(i=this.pageArea.children.find((e=>"any"===e.oddOrEven&&"any"===e.pagePosition)),i||this.pageArea.children[0]))}}class et extends r.XFAObject{constructor(e){super(h,"para",!0),this.hAlign=(0,a.getStringOption)(e.hAlign,["left","center","justify","justifyAll","radix","right"]),this.id=e.id||"",this.lineHeight=e.lineHeight?(0,a.getMeasurement)(e.lineHeight,"0pt"):"",this.marginLeft=e.marginLeft?(0,a.getMeasurement)(e.marginLeft,"0pt"):"",this.marginRight=e.marginRight?(0,a.getMeasurement)(e.marginRight,"0pt"):"",this.orphans=(0,a.getInteger)({data:e.orphans,defaultValue:0,validate:e=>e>=0}),this.preserve=e.preserve||"",this.radixOffset=e.radixOffset?(0,a.getMeasurement)(e.radixOffset,"0pt"):"",this.spaceAbove=e.spaceAbove?(0,a.getMeasurement)(e.spaceAbove,"0pt"):"",this.spaceBelow=e.spaceBelow?(0,a.getMeasurement)(e.spaceBelow,"0pt"):"",this.tabDefault=e.tabDefault?(0,a.getMeasurement)(this.tabDefault):"",this.tabStops=(e.tabStops||"").trim().split(/\s+/).map(((e,t)=>t%2===1?(0,a.getMeasurement)(e):e)),this.textIndent=e.textIndent?(0,a.getMeasurement)(e.textIndent,"0pt"):"",this.use=e.use||"",this.usehref=e.usehref||"",this.vAlign=(0,a.getStringOption)(e.vAlign,["top","bottom","middle"]),this.widows=(0,a.getInteger)({data:e.widows,defaultValue:0,validate:e=>e>=0}),this.hyphenation=null}[r.$toStyle](){const e=(0,s.toStyle)(this,"hAlign");return""!==this.marginLeft&&(e.paddingLeft=(0,s.measureToString)(this.marginLeft)),""!==this.marginRight&&(e.paddingight=(0,s.measureToString)(this.marginRight)),""!==this.spaceAbove&&(e.paddingTop=(0,s.measureToString)(this.spaceAbove)),""!==this.spaceBelow&&(e.paddingBottom=(0,s.measureToString)(this.spaceBelow)),""!==this.textIndent&&(e.textIndent=(0,s.measureToString)(this.textIndent),(0,s.fixTextIndent)(e)),this.lineHeight>0&&(e.lineHeight=(0,s.measureToString)(this.lineHeight)),""!==this.tabDefault&&(e.tabSize=(0,s.measureToString)(this.tabDefault)),this.tabStops.length,this.hyphenatation&&Object.assign(e,this.hyphenatation[r.$toStyle]()),e}}class tt extends r.XFAObject{constructor(e){super(h,"passwordEdit",!0),this.hScrollPolicy=(0,a.getStringOption)(e.hScrollPolicy,["auto","off","on"]),this.id=e.id||"",this.passwordChar=e.passwordChar||"*",this.use=e.use||"",this.usehref=e.usehref||"",this.border=null,this.extras=null,this.margin=null}}class nt extends r.XFAObject{constructor(e){super(h,"pattern",!0),this.id=e.id||"",this.type=(0,a.getStringOption)(e.type,["crossHatch","crossDiagonal","diagonalLeft","diagonalRight","horizontal","vertical"]),this.use=e.use||"",this.usehref=e.usehref||"",this.color=null,this.extras=null}[r.$toStyle](e){e=e?e[r.$toStyle]():"#FFFFFF";const t=this.color?this.color[r.$toStyle]():"#000000",n="repeating-linear-gradient",i="".concat(e,",").concat(e," ").concat(5,"px,").concat(t," ").concat(5,"px,").concat(t," ").concat(10,"px");switch(this.type){case"crossHatch":return"".concat(n,"(to top,").concat(i,") ").concat(n,"(to right,").concat(i,")");case"crossDiagonal":return"".concat(n,"(45deg,").concat(i,") ").concat(n,"(-45deg,").concat(i,")");case"diagonalLeft":return"".concat(n,"(45deg,").concat(i,")");case"diagonalRight":return"".concat(n,"(-45deg,").concat(i,")");case"horizontal":return"".concat(n,"(to top,").concat(i,")");case"vertical":return"".concat(n,"(to right,").concat(i,")")}return""}}class rt extends r.StringObject{constructor(e){super(h,"picture"),this.id=e.id||"",this.use=e.use||"",this.usehref=e.usehref||""}}class it extends r.XFAObject{constructor(e){super(h,"proto",!0),this.appearanceFilter=new r.XFAObjectArray,this.arc=new r.XFAObjectArray,this.area=new r.XFAObjectArray,this.assist=new r.XFAObjectArray,this.barcode=new r.XFAObjectArray,this.bindItems=new r.XFAObjectArray,this.bookend=new r.XFAObjectArray,this.boolean=new r.XFAObjectArray,this.border=new r.XFAObjectArray,this.break=new r.XFAObjectArray,this.breakAfter=new r.XFAObjectArray,this.breakBefore=new r.XFAObjectArray,this.button=new r.XFAObjectArray,this.calculate=new r.XFAObjectArray,this.caption=new r.XFAObjectArray,this.certificate=new r.XFAObjectArray,this.certificates=new r.XFAObjectArray,this.checkButton=new r.XFAObjectArray,this.choiceList=new r.XFAObjectArray,this.color=new r.XFAObjectArray,this.comb=new r.XFAObjectArray,this.connect=new r.XFAObjectArray,this.contentArea=new r.XFAObjectArray,this.corner=new r.XFAObjectArray,this.date=new r.XFAObjectArray,this.dateTime=new r.XFAObjectArray,this.dateTimeEdit=new r.XFAObjectArray,this.decimal=new r.XFAObjectArray,this.defaultUi=new r.XFAObjectArray,this.desc=new r.XFAObjectArray,this.digestMethod=new r.XFAObjectArray,this.digestMethods=new r.XFAObjectArray,this.draw=new r.XFAObjectArray,this.edge=new r.XFAObjectArray,this.encoding=new r.XFAObjectArray,this.encodings=new r.XFAObjectArray,this.encrypt=new r.XFAObjectArray,this.encryptData=new r.XFAObjectArray,this.encryption=new r.XFAObjectArray,this.encryptionMethod=new r.XFAObjectArray,this.encryptionMethods=new r.XFAObjectArray,this.event=new r.XFAObjectArray,this.exData=new r.XFAObjectArray,this.exObject=new r.XFAObjectArray,this.exclGroup=new r.XFAObjectArray,this.execute=new r.XFAObjectArray,this.extras=new r.XFAObjectArray,this.field=new r.XFAObjectArray,this.fill=new r.XFAObjectArray,this.filter=new r.XFAObjectArray,this.float=new r.XFAObjectArray,this.font=new r.XFAObjectArray,this.format=new r.XFAObjectArray,this.handler=new r.XFAObjectArray,this.hyphenation=new r.XFAObjectArray,this.image=new r.XFAObjectArray,this.imageEdit=new r.XFAObjectArray,this.integer=new r.XFAObjectArray,this.issuers=new r.XFAObjectArray,this.items=new r.XFAObjectArray,this.keep=new r.XFAObjectArray,this.keyUsage=new r.XFAObjectArray,this.line=new r.XFAObjectArray,this.linear=new r.XFAObjectArray,this.lockDocument=new r.XFAObjectArray,this.manifest=new r.XFAObjectArray,this.margin=new r.XFAObjectArray,this.mdp=new r.XFAObjectArray,this.medium=new r.XFAObjectArray,this.message=new r.XFAObjectArray,this.numericEdit=new r.XFAObjectArray,this.occur=new r.XFAObjectArray,this.oid=new r.XFAObjectArray,this.oids=new r.XFAObjectArray,this.overflow=new r.XFAObjectArray,this.pageArea=new r.XFAObjectArray,this.pageSet=new r.XFAObjectArray,this.para=new r.XFAObjectArray,this.passwordEdit=new r.XFAObjectArray,this.pattern=new r.XFAObjectArray,this.picture=new r.XFAObjectArray,this.radial=new r.XFAObjectArray,this.reason=new r.XFAObjectArray,this.reasons=new r.XFAObjectArray,this.rectangle=new r.XFAObjectArray,this.ref=new r.XFAObjectArray,this.script=new r.XFAObjectArray,this.setProperty=new r.XFAObjectArray,this.signData=new r.XFAObjectArray,this.signature=new r.XFAObjectArray,this.signing=new r.XFAObjectArray,this.solid=new r.XFAObjectArray,this.speak=new r.XFAObjectArray,this.stipple=new r.XFAObjectArray,this.subform=new r.XFAObjectArray,this.subformSet=new r.XFAObjectArray,this.subjectDN=new r.XFAObjectArray,this.subjectDNs=new r.XFAObjectArray,this.submit=new r.XFAObjectArray,this.text=new r.XFAObjectArray,this.textEdit=new r.XFAObjectArray,this.time=new r.XFAObjectArray,this.timeStamp=new r.XFAObjectArray,this.toolTip=new r.XFAObjectArray,this.traversal=new r.XFAObjectArray,this.traverse=new r.XFAObjectArray,this.ui=new r.XFAObjectArray,this.validate=new r.XFAObjectArray,this.value=new r.XFAObjectArray,this.variables=new r.XFAObjectArray}}class ot extends r.XFAObject{constructor(e){super(h,"radial",!0),this.id=e.id||"",this.type=(0,a.getStringOption)(e.type,["toEdge","toCenter"]),this.use=e.use||"",this.usehref=e.usehref||"",this.color=null,this.extras=null}[r.$toStyle](e){e=e?e[r.$toStyle]():"#FFFFFF";const t=this.color?this.color[r.$toStyle]():"#000000",n="toEdge"===this.type?"".concat(e,",").concat(t):"".concat(t,",").concat(e);return"radial-gradient(circle at center, ".concat(n,")")}}class st extends r.StringObject{constructor(e){super(h,"reason"),this.id=e.id||"",this.name=e.name||"",this.use=e.use||"",this.usehref=e.usehref||""}}class at extends r.XFAObject{constructor(e){super(h,"reasons",!0),this.id=e.id||"",this.type=(0,a.getStringOption)(e.type,["optional","required"]),this.use=e.use||"",this.usehref=e.usehref||"",this.reason=new r.XFAObjectArray}}class lt extends r.XFAObject{constructor(e){super(h,"rectangle",!0),this.hand=(0,a.getStringOption)(e.hand,["even","left","right"]),this.id=e.id||"",this.use=e.use||"",this.usehref=e.usehref||"",this.corner=new r.XFAObjectArray(4),this.edge=new r.XFAObjectArray(4),this.fill=null}[r.$toHTML](){const e=this.edge.children.length?this.edge.children[0]:new ue({}),t=e[r.$toStyle](),n=Object.create(null);this.fill&&"visible"===this.fill.presence?Object.assign(n,this.fill[r.$toStyle]()):n.fill="transparent",n.strokeWidth=(0,s.measureToString)("visible"===e.presence?e.thickness:0),n.stroke=t.color;const i=(this.corner.children.length?this.corner.children[0]:new ee({}))[r.$toStyle](),o={name:"svg",children:[{name:"rect",attributes:{xmlns:p,width:"100%",height:"100%",x:0,y:0,rx:i.radius,ry:i.radius,style:n}}],attributes:{xmlns:p,style:{overflow:"visible"},width:"100%",height:"100%"}};return v(this[r.$getParent]()[r.$getParent]())?a.HTMLResult.success({name:"div",attributes:{style:{display:"inline",width:"100%",height:"100%"}},children:[o]}):(o.attributes.style.position="absolute",a.HTMLResult.success(o))}}class ct extends r.StringObject{constructor(e){super(h,"ref"),this.id=e.id||"",this.use=e.use||"",this.usehref=e.usehref||""}}class ut extends r.StringObject{constructor(e){super(h,"script"),this.binding=e.binding||"",this.contentType=e.contentType||"",this.id=e.id||"",this.name=e.name||"",this.runAt=(0,a.getStringOption)(e.runAt,["client","both","server"]),this.use=e.use||"",this.usehref=e.usehref||""}}class dt extends r.XFAObject{constructor(e){super(h,"setProperty"),this.connection=e.connection||"",this.ref=e.ref||"",this.target=e.target||""}}t.SetProperty=dt;class ht extends r.XFAObject{constructor(e){super(h,"signData",!0),this.id=e.id||"",this.operation=(0,a.getStringOption)(e.operation,["sign","clear","verify"]),this.ref=e.ref||"",this.target=e.target||"",this.use=e.use||"",this.usehref=e.usehref||"",this.filter=null,this.manifest=null}}class pt extends r.XFAObject{constructor(e){super(h,"signature",!0),this.id=e.id||"",this.type=(0,a.getStringOption)(e.type,["PDF1.3","PDF1.6"]),this.use=e.use||"",this.usehref=e.usehref||"",this.border=null,this.extras=null,this.filter=null,this.manifest=null,this.margin=null}}class ft extends r.XFAObject{constructor(e){super(h,"signing",!0),this.id=e.id||"",this.type=(0,a.getStringOption)(e.type,["optional","required"]),this.use=e.use||"",this.usehref=e.usehref||"",this.certificate=new r.XFAObjectArray}}class gt extends r.XFAObject{constructor(e){super(h,"solid",!0),this.id=e.id||"",this.use=e.use||"",this.usehref=e.usehref||"",this.extras=null}[r.$toStyle](e){return e?e[r.$toStyle]():"#FFFFFF"}}class mt extends r.StringObject{constructor(e){super(h,"speak"),this.disable=(0,a.getInteger)({data:e.disable,defaultValue:0,validate:e=>1===e}),this.id=e.id||"",this.priority=(0,a.getStringOption)(e.priority,["custom","caption","name","toolTip"]),this.rid=e.rid||"",this.use=e.use||"",this.usehref=e.usehref||""}}class yt extends r.XFAObject{constructor(e){super(h,"stipple",!0),this.id=e.id||"",this.rate=(0,a.getInteger)({data:e.rate,defaultValue:50,validate:e=>e>=0&&e<=100}),this.use=e.use||"",this.usehref=e.usehref||"",this.color=null,this.extras=null}[r.$toStyle](e){const t=this.rate/100;return l.Util.makeHexColor(Math.round(e.value.r*(1-t)+this.value.r*t),Math.round(e.value.g*(1-t)+this.value.g*t),Math.round(e.value.b*(1-t)+this.value.b*t))}}class vt extends r.XFAObject{constructor(e){super(h,"subform",!0),this.access=(0,a.getStringOption)(e.access,["open","nonInteractive","protected","readOnly"]),this.allowMacro=(0,a.getInteger)({data:e.allowMacro,defaultValue:0,validate:e=>1===e}),this.anchorType=(0,a.getStringOption)(e.anchorType,["topLeft","bottomCenter","bottomLeft","bottomRight","middleCenter","middleLeft","middleRight","topCenter","topRight"]),this.colSpan=(0,a.getInteger)({data:e.colSpan,defaultValue:1,validate:e=>e>=1||-1===e}),this.columnWidths=(e.columnWidths||"").trim().split(/\s+/).map((e=>"-1"===e?-1:(0,a.getMeasurement)(e))),this.h=e.h?(0,a.getMeasurement)(e.h):"",this.hAlign=(0,a.getStringOption)(e.hAlign,["left","center","justify","justifyAll","radix","right"]),this.id=e.id||"",this.layout=(0,a.getStringOption)(e.layout,["position","lr-tb","rl-row","rl-tb","row","table","tb"]),this.locale=e.locale||"",this.maxH=(0,a.getMeasurement)(e.maxH,"0pt"),this.maxW=(0,a.getMeasurement)(e.maxW,"0pt"),this.mergeMode=(0,a.getStringOption)(e.mergeMode,["consumeData","matchTemplate"]),this.minH=(0,a.getMeasurement)(e.minH,"0pt"),this.minW=(0,a.getMeasurement)(e.minW,"0pt"),this.name=e.name||"",this.presence=(0,a.getStringOption)(e.presence,["visible","hidden","inactive","invisible"]),this.relevant=(0,a.getRelevant)(e.relevant),this.restoreState=(0,a.getStringOption)(e.restoreState,["manual","auto"]),this.scope=(0,a.getStringOption)(e.scope,["name","none"]),this.use=e.use||"",this.usehref=e.usehref||"",this.w=e.w?(0,a.getMeasurement)(e.w):"",this.x=(0,a.getMeasurement)(e.x,"0pt"),this.y=(0,a.getMeasurement)(e.y,"0pt"),this.assist=null,this.bind=null,this.bookend=null,this.border=null,this.break=null,this.calculate=null,this.desc=null,this.extras=null,this.keep=null,this.margin=null,this.occur=null,this.overflow=null,this.pageSet=null,this.para=null,this.traversal=null,this.validate=null,this.variables=null,this.area=new r.XFAObjectArray,this.breakAfter=new r.XFAObjectArray,this.breakBefore=new r.XFAObjectArray,this.connect=new r.XFAObjectArray,this.draw=new r.XFAObjectArray,this.event=new r.XFAObjectArray,this.exObject=new r.XFAObjectArray,this.exclGroup=new r.XFAObjectArray,this.field=new r.XFAObjectArray,this.proto=new r.XFAObjectArray,this.setProperty=new r.XFAObjectArray,this.subform=new r.XFAObjectArray,this.subformSet=new r.XFAObjectArray}[r.$getSubformParent](){const e=this[r.$getParent]();return e instanceof _t?e[r.$getSubformParent]():e}[r.$isBindable](){return!0}[r.$isThereMoreWidth](){return this.layout.endsWith("-tb")&&0===this[r.$extra].attempt&&this[r.$extra].numberInLine>0||this[r.$getParent]()[r.$isThereMoreWidth]()}*[r.$getContainedChildren](){yield*b(this)}[r.$flushHTML](){return(0,o.flushHTML)(this)}[r.$addHTML](e,t){(0,o.addHTML)(this,e,t)}[r.$getAvailableSpace](){return(0,o.getAvailableSpace)(this)}[r.$isSplittable](){const e=this[r.$getSubformParent]();return!!e[r.$isSplittable]()&&(void 0!==this[r.$extra]._isSplittable?this[r.$extra]._isSplittable:"position"===this.layout||this.layout.includes("row")||this.keep&&"none"!==this.keep.intact?(this[r.$extra]._isSplittable=!1,!1):(!e.layout||!e.layout.endsWith("-tb")||0===e[r.$extra].numberInLine)&&(this[r.$extra]._isSplittable=!0,!0))}[r.$toHTML](e){if(S(this),this.break){if("auto"!==this.break.after||""!==this.break.afterTarget){const e=new z({targetType:this.break.after,target:this.break.afterTarget,startNew:this.break.startNew.toString()});e[r.$globalData]=this[r.$globalData],this[r.$appendChild](e),this.breakAfter.push(e)}if("auto"!==this.break.before||""!==this.break.beforeTarget){const e=new B({targetType:this.break.before,target:this.break.beforeTarget,startNew:this.break.startNew.toString()});e[r.$globalData]=this[r.$globalData],this[r.$appendChild](e),this.breakBefore.push(e)}if(""!==this.break.overflowTarget){const e=new $e({target:this.break.overflowTarget,leader:this.break.overflowLeader,trailer:this.break.overflowTrailer});e[r.$globalData]=this[r.$globalData],this[r.$appendChild](e),this.overflow.push(e)}this[r.$removeChild](this.break),this.break=null}if("hidden"===this.presence||"inactive"===this.presence)return a.HTMLResult.EMPTY;if((this.breakBefore.children.length>1||this.breakAfter.children.length>1)&&(0,l.warn)("XFA - Several breakBefore or breakAfter in subforms: please file a bug."),this.breakBefore.children.length>=1){const e=this.breakBefore.children[0];if(k(e))return a.HTMLResult.breakNode(e)}if(this[r.$extra]&&this[r.$extra].afterBreakAfter)return a.HTMLResult.EMPTY;(0,s.fixDimensions)(this);const t=[],n={id:this[r.$uid],class:[]};(0,s.setAccess)(this,n.class),this[r.$extra]||(this[r.$extra]=Object.create(null)),Object.assign(this[r.$extra],{children:t,line:null,attributes:n,attempt:0,numberInLine:0,availableSpace:{width:Math.min(this.w||1/0,e.width),height:Math.min(this.h||1/0,e.height)},width:0,height:0,prevHeight:0,currentWidth:0});const i=this[r.$getTemplateRoot](),c=i[r.$extra].noLayoutFailure,u=this[r.$isSplittable]();if(u||C(this),!(0,o.checkDimensions)(this,e))return a.HTMLResult.FAILURE;const d=new Set(["area","draw","exclGroup","field","subform","subformSet"]);if(this.layout.includes("row")){const e=this[r.$getSubformParent]().columnWidths;Array.isArray(e)&&e.length>0&&(this[r.$extra].columnWidths=e,this[r.$extra].currentColumn=0)}const h=(0,s.toStyle)(this,"anchorType","dimensions","position","presence","border","margin","hAlign"),p=["xfaSubform"],f=(0,s.layoutClass)(this);if(f&&p.push(f),n.style=h,n.class=p,this.name&&(n.xfaName=this.name),this.overflow){const t=this.overflow[r.$getExtra]();t.addLeader&&(t.addLeader=!1,j(this,t.leader,e))}this[r.$pushPara]();const g="lr-tb"===this.layout||"rl-tb"===this.layout,m=g?2:1;for(;this[r.$extra].attempt<m;this[r.$extra].attempt++){g&&1===this[r.$extra].attempt&&(this[r.$extra].numberInLine=0);const e=this[r.$childrenToHTML]({filter:d,include:!0});if(e.success)break;if(e.isBreak())return this[r.$popPara](),e;if(g&&0===this[r.$extra].attempt&&0===this[r.$extra].numberInLine&&!i[r.$extra].noLayoutFailure){this[r.$extra].attempt=m;break}}if(this[r.$popPara](),u||A(this),i[r.$extra].noLayoutFailure=c,this[r.$extra].attempt===m)return this.overflow&&(this[r.$getTemplateRoot]()[r.$extra].overflowNode=this.overflow),u||delete this[r.$extra],a.HTMLResult.FAILURE;if(this.overflow){const t=this.overflow[r.$getExtra]();t.addTrailer&&(t.addTrailer=!1,j(this,t.trailer,e))}let y=0,v=0;this.margin&&(y=this.margin.leftInset+this.margin.rightInset,v=this.margin.topInset+this.margin.bottomInset);const _=Math.max(this[r.$extra].width+y,this.w||0),b=Math.max(this[r.$extra].height+v,this.h||0),x=[this.x,this.y,_,b];if(""===this.w&&(h.width=(0,s.measureToString)(_)),""===this.h&&(h.height=(0,s.measureToString)(b)),("0px"===h.width||"0px"===h.height)&&0===t.length)return a.HTMLResult.EMPTY;const E={name:"div",attributes:n,children:t};w(this,n);const P=a.HTMLResult.success((0,s.createWrapper)(this,E),x);if(this.breakAfter.children.length>=1){const e=this.breakAfter.children[0];if(k(e))return this[r.$extra].afterBreakAfter=P,a.HTMLResult.breakNode(e)}return delete this[r.$extra],P}}class _t extends r.XFAObject{constructor(e){super(h,"subformSet",!0),this.id=e.id||"",this.name=e.name||"",this.relation=(0,a.getStringOption)(e.relation,["ordered","choice","unordered"]),this.relevant=(0,a.getRelevant)(e.relevant),this.use=e.use||"",this.usehref=e.usehref||"",this.bookend=null,this.break=null,this.desc=null,this.extras=null,this.occur=null,this.overflow=null,this.breakAfter=new r.XFAObjectArray,this.breakBefore=new r.XFAObjectArray,this.subform=new r.XFAObjectArray,this.subformSet=new r.XFAObjectArray}*[r.$getContainedChildren](){yield*b(this)}[r.$getSubformParent](){let e=this[r.$getParent]();for(;!(e instanceof vt);)e=e[r.$getParent]();return e}[r.$isBindable](){return!0}}class bt extends r.ContentObject{constructor(e){super(h,"subjectDN"),this.delimiter=e.delimiter||",",this.id=e.id||"",this.name=e.name||"",this.use=e.use||"",this.usehref=e.usehref||""}[r.$finalize](){this[r.$content]=new Map(this[r.$content].split(this.delimiter).map((e=>((e=e.split("=",2))[0]=e[0].trim(),e))))}}class xt extends r.XFAObject{constructor(e){super(h,"subjectDNs",!0),this.id=e.id||"",this.type=(0,a.getStringOption)(e.type,["optional","required"]),this.use=e.use||"",this.usehref=e.usehref||"",this.subjectDN=new r.XFAObjectArray}}class St extends r.XFAObject{constructor(e){super(h,"submit",!0),this.embedPDF=(0,a.getInteger)({data:e.embedPDF,defaultValue:0,validate:e=>1===e}),this.format=(0,a.getStringOption)(e.format,["xdp","formdata","pdf","urlencoded","xfd","xml"]),this.id=e.id||"",this.target=e.target||"",this.textEncoding=(0,a.getKeyword)({data:e.textEncoding?e.textEncoding.toLowerCase():"",defaultValue:"",validate:e=>["utf-8","big-five","fontspecific","gbk","gb-18030","gb-2312","ksc-5601","none","shift-jis","ucs-2","utf-16"].includes(e)||e.match(/iso-8859-\d{2}/)}),this.use=e.use||"",this.usehref=e.usehref||"",this.xdpContent=e.xdpContent||"",this.encrypt=null,this.encryptData=new r.XFAObjectArray,this.signData=new r.XFAObjectArray}}class wt extends r.XFAObject{constructor(e){super(h,"template",!0),this.baseProfile=(0,a.getStringOption)(e.baseProfile,["full","interactiveForms"]),this.extras=null,this.subform=new r.XFAObjectArray}[r.$finalize](){0===this.subform.children.length&&(0,l.warn)("XFA - No subforms in template node."),this.subform.children.length>=2&&(0,l.warn)("XFA - Several subforms in template node: please file a bug."),this[r.$tabIndex]=5e3}[r.$isSplittable](){return!0}[r.$searchNode](e,t){return e.startsWith("#")?[this[r.$ids].get(e.slice(1))]:(0,d.searchNode)(this,t,e,!0,!0)}*[r.$toPages](){if(!this.subform.children.length)return a.HTMLResult.success({name:"div",children:[]});this[r.$extra]={overflowNode:null,firstUnsplittable:null,currentContentArea:null,currentPageArea:null,noLayoutFailure:!1,pageNumber:1,pagePosition:"first",oddOrEven:"odd",blankOrNotBlank:"nonBlank",paraStack:[]};const e=this.subform.children[0];e.pageSet[r.$cleanPage]();const t=e.pageSet.pageArea.children,n={name:"div",children:[]};let i=null,o=null,s=null;if(e.breakBefore.children.length>=1?(o=e.breakBefore.children[0],s=o.target):e.subform.children.length>=1&&e.subform.children[0].breakBefore.children.length>=1?(o=e.subform.children[0].breakBefore.children[0],s=o.target):e.break&&e.break.beforeTarget?(o=e.break,s=o.beforeTarget):e.subform.children.length>=1&&e.subform.children[0].break&&e.subform.children[0].break.beforeTarget&&(o=e.subform.children[0].break,s=o.beforeTarget),o){const e=this[r.$searchNode](s,o[r.$getParent]());e instanceof Je&&(i=e,o[r.$extra]={})}i||(i=t[0]),i[r.$extra]={numberOfUse:1};const c=i[r.$getParent]();let u;c[r.$extra]={numberOfUse:1,pageIndex:c.pageArea.children.indexOf(i),pageSetIndex:0};let d=null,h=null,p=!0,f=0,g=0;for(;;){if(p)f=0;else if(n.children.pop(),3===++f)return(0,l.warn)("XFA - Something goes wrong: please file a bug."),n;u=null,this[r.$extra].currentPageArea=i;const t=i[r.$toHTML]().html;n.children.push(t),d&&(this[r.$extra].noLayoutFailure=!0,t.children.push(d[r.$toHTML](i[r.$extra].space).html),d=null),h&&(this[r.$extra].noLayoutFailure=!0,t.children.push(h[r.$toHTML](i[r.$extra].space).html),h=null);const o=i.contentArea.children,s=t.children.filter((e=>e.attributes.class.includes("xfaContentarea")));p=!1,this[r.$extra].firstUnsplittable=null,this[r.$extra].noLayoutFailure=!1;const a=t=>{const n=e[r.$flushHTML]();n&&(p=p||n.children&&0!==n.children.length,s[t].children.push(n))};for(let i=g,l=o.length;i<l;i++){const t=this[r.$extra].currentContentArea=o[i],l={width:t.w,height:t.h};g=0,d&&(s[i].children.push(d[r.$toHTML](l).html),d=null),h&&(s[i].children.push(h[r.$toHTML](l).html),h=null);const c=e[r.$toHTML](l);if(c.success)return c.html?(p=p||c.html.children&&0!==c.html.children.length,s[i].children.push(c.html)):!p&&n.children.length>1&&n.children.pop(),n;if(c.isBreak()){const e=c.breakNode;if(a(i),"auto"===e.targetType)continue;e.leader&&(d=this[r.$searchNode](e.leader,e[r.$getParent]()),d=d?d[0]:null),e.trailer&&(h=this[r.$searchNode](e.trailer,e[r.$getParent]()),h=h?h[0]:null),"pageArea"===e.targetType?(u=e[r.$extra].target,i=1/0):e[r.$extra].target?(u=e[r.$extra].target,g=e[r.$extra].index+1,i=1/0):i=e[r.$extra].index}else if(this[r.$extra].overflowNode){const e=this[r.$extra].overflowNode;this[r.$extra].overflowNode=null;const t=e[r.$getExtra](),n=t.target;t.addLeader=null!==t.leader,t.addTrailer=null!==t.trailer,a(i);const s=i;if(i=1/0,n instanceof Je)u=n;else if(n instanceof Q){const e=o.indexOf(n);-1!==e?e>s?i=e-1:g=e:(u=n[r.$getParent](),g=u.contentArea.children.indexOf(n))}}else a(i)}this[r.$extra].pageNumber+=1,u&&(u[r.$isUsable]()?u[r.$extra].numberOfUse+=1:u=null),i=u||i[r.$getNextPage](),yield null}}}t.Template=wt;class Et extends r.ContentObject{constructor(e){super(h,"text"),this.id=e.id||"",this.maxChars=(0,a.getInteger)({data:e.maxChars,defaultValue:0,validate:e=>e>=0}),this.name=e.name||"",this.rid=e.rid||"",this.use=e.use||"",this.usehref=e.usehref||""}[r.$acceptWhitespace](){return!0}[r.$onChild](e){return e[r.$namespaceId]===i.NamespaceIds.xhtml.id?(this[r.$content]=e,!0):((0,l.warn)("XFA - Invalid content in Text: ".concat(e[r.$nodeName],".")),!1)}[r.$onText](e){this[r.$content]instanceof r.XFAObject||super[r.$onText](e)}[r.$finalize](){"string"===typeof this[r.$content]&&(this[r.$content]=this[r.$content].replace(/\r\n/g,"\n"))}[r.$getExtra](){return"string"===typeof this[r.$content]?this[r.$content].split(/[\u2029\u2028\n]/).reduce(((e,t)=>(t&&e.push(t),e)),[]).join("\n"):this[r.$content][r.$text]()}[r.$toHTML](e){if("string"===typeof this[r.$content]){const e=P(this[r.$content]).html;return this[r.$content].includes("\u2029")?(e.name="div",e.children=[],this[r.$content].split("\u2029").map((e=>e.split(/[\u2028\n]/).reduce(((e,t)=>(e.push({name:"span",value:t},{name:"br"}),e)),[]))).forEach((t=>{e.children.push({name:"p",children:t})}))):/[\u2028\n]/.test(this[r.$content])&&(e.name="div",e.children=[],this[r.$content].split(/[\u2028\n]/).forEach((t=>{e.children.push({name:"span",value:t},{name:"br"})}))),a.HTMLResult.success(e)}return this[r.$content][r.$toHTML](e)}}t.Text=Et;class Pt extends r.XFAObject{constructor(e){super(h,"textEdit",!0),this.allowRichText=(0,a.getInteger)({data:e.allowRichText,defaultValue:0,validate:e=>1===e}),this.hScrollPolicy=(0,a.getStringOption)(e.hScrollPolicy,["auto","off","on"]),this.id=e.id||"",this.multiLine=(0,a.getInteger)({data:e.multiLine,defaultValue:"",validate:e=>0===e||1===e}),this.use=e.use||"",this.usehref=e.usehref||"",this.vScrollPolicy=(0,a.getStringOption)(e.vScrollPolicy,["auto","off","on"]),this.border=null,this.comb=null,this.extras=null,this.margin=null}[r.$toHTML](e){const t=(0,s.toStyle)(this,"border","font","margin");let n;const i=this[r.$getParent]()[r.$getParent]();return""===this.multiLine&&(this.multiLine=i instanceof ce?1:0),n=1===this.multiLine?{name:"textarea",attributes:{dataId:i[r.$data]&&i[r.$data][r.$uid]||i[r.$uid],fieldId:i[r.$uid],class:["xfaTextfield"],style:t,"aria-label":E(i),"aria-required":!1}}:{name:"input",attributes:{type:"text",dataId:i[r.$data]&&i[r.$data][r.$uid]||i[r.$uid],fieldId:i[r.$uid],class:["xfaTextfield"],style:t,"aria-label":E(i),"aria-required":!1}},x(i)&&(n.attributes["aria-required"]=!0,n.attributes.required=!0),a.HTMLResult.success({name:"label",attributes:{class:["xfaLabel"]},children:[n]})}}class Ct extends r.StringObject{constructor(e){super(h,"time"),this.id=e.id||"",this.name=e.name||"",this.use=e.use||"",this.usehref=e.usehref||""}[r.$finalize](){const e=this[r.$content].trim();this[r.$content]=e?new Date(e):null}[r.$toHTML](e){return P(this[r.$content]?this[r.$content].toString():"")}}class At extends r.XFAObject{constructor(e){super(h,"timeStamp"),this.id=e.id||"",this.server=e.server||"",this.type=(0,a.getStringOption)(e.type,["optional","required"]),this.use=e.use||"",this.usehref=e.usehref||""}}class kt extends r.StringObject{constructor(e){super(h,"toolTip"),this.id=e.id||"",this.rid=e.rid||"",this.use=e.use||"",this.usehref=e.usehref||""}}class jt extends r.XFAObject{constructor(e){super(h,"traversal",!0),this.id=e.id||"",this.use=e.use||"",this.usehref=e.usehref||"",this.extras=null,this.traverse=new r.XFAObjectArray}}class It extends r.XFAObject{constructor(e){super(h,"traverse",!0),this.id=e.id||"",this.operation=(0,a.getStringOption)(e.operation,["next","back","down","first","left","right","up"]),this.ref=e.ref||"",this.use=e.use||"",this.usehref=e.usehref||"",this.extras=null,this.script=null}get name(){return this.operation}[r.$isTransparent](){return!1}}class Gt extends r.XFAObject{constructor(e){super(h,"ui",!0),this.id=e.id||"",this.use=e.use||"",this.usehref=e.usehref||"",this.extras=null,this.picture=null,this.barcode=null,this.button=null,this.checkButton=null,this.choiceList=null,this.dateTimeEdit=null,this.defaultUi=null,this.imageEdit=null,this.numericEdit=null,this.passwordEdit=null,this.signature=null,this.textEdit=null}[r.$getExtra](){if(void 0===this[r.$extra]){for(const e of Object.getOwnPropertyNames(this)){if("extras"===e||"picture"===e)continue;const t=this[e];if(t instanceof r.XFAObject)return this[r.$extra]=t,t}this[r.$extra]=null}return this[r.$extra]}[r.$toHTML](e){const t=this[r.$getExtra]();return t?t[r.$toHTML](e):a.HTMLResult.EMPTY}}class Tt extends r.XFAObject{constructor(e){super(h,"validate",!0),this.formatTest=(0,a.getStringOption)(e.formatTest,["warning","disabled","error"]),this.id=e.id||"",this.nullTest=(0,a.getStringOption)(e.nullTest,["disabled","error","warning"]),this.scriptTest=(0,a.getStringOption)(e.scriptTest,["error","disabled","warning"]),this.use=e.use||"",this.usehref=e.usehref||"",this.extras=null,this.message=null,this.picture=null,this.script=null}}class Mt extends r.XFAObject{constructor(e){super(h,"value",!0),this.id=e.id||"",this.override=(0,a.getInteger)({data:e.override,defaultValue:0,validate:e=>1===e}),this.relevant=(0,a.getRelevant)(e.relevant),this.use=e.use||"",this.usehref=e.usehref||"",this.arc=null,this.boolean=null,this.date=null,this.dateTime=null,this.decimal=null,this.exData=null,this.float=null,this.image=null,this.integer=null,this.line=null,this.rectangle=null,this.text=null,this.time=null}[r.$setValue](e){const t=this[r.$getParent]();if(t instanceof Ee&&t.ui&&t.ui.imageEdit)return this.image||(this.image=new Te({}),this[r.$appendChild](this.image)),void(this.image[r.$content]=e[r.$content]);const n=e[r.$nodeName];if(null===this[n]){for(const e of Object.getOwnPropertyNames(this)){const t=this[e];t instanceof r.XFAObject&&(this[e]=null,this[r.$removeChild](t))}this[e[r.$nodeName]]=e,this[r.$appendChild](e)}else this[n][r.$content]=e[r.$content]}[r.$text](){if(this.exData)return"string"===typeof this.exData[r.$content]?this.exData[r.$content].trim():this.exData[r.$content][r.$text]().trim();for(const e of Object.getOwnPropertyNames(this)){if("image"===e)continue;const t=this[e];if(t instanceof r.XFAObject)return(t[r.$content]||"").toString().trim()}return null}[r.$toHTML](e){for(const t of Object.getOwnPropertyNames(this)){const n=this[t];if(n instanceof r.XFAObject)return n[r.$toHTML](e)}return a.HTMLResult.EMPTY}}t.Value=Mt;class Ot extends r.XFAObject{constructor(e){super(h,"variables",!0),this.id=e.id||"",this.use=e.use||"",this.usehref=e.usehref||"",this.boolean=new r.XFAObjectArray,this.date=new r.XFAObjectArray,this.dateTime=new r.XFAObjectArray,this.decimal=new r.XFAObjectArray,this.exData=new r.XFAObjectArray,this.float=new r.XFAObjectArray,this.image=new r.XFAObjectArray,this.integer=new r.XFAObjectArray,this.manifest=new r.XFAObjectArray,this.script=new r.XFAObjectArray,this.text=new r.XFAObjectArray,this.time=new r.XFAObjectArray}[r.$isTransparent](){return!0}}class Rt{static[i.$buildXFAObject](e,t){if(Rt.hasOwnProperty(e)){const n=Rt[e](t);return n[r.$setSetAttributes](t),n}}static appearanceFilter(e){return new I(e)}static arc(e){return new G(e)}static area(e){return new T(e)}static assist(e){return new M(e)}static barcode(e){return new O(e)}static bind(e){return new R(e)}static bindItems(e){return new D(e)}static bookend(e){return new N(e)}static boolean(e){return new L(e)}static border(e){return new V(e)}static break(e){return new F(e)}static breakAfter(e){return new z(e)}static breakBefore(e){return new B(e)}static button(e){return new U(e)}static calculate(e){return new W(e)}static caption(e){return new H(e)}static certificate(e){return new q(e)}static certificates(e){return new X(e)}static checkButton(e){return new Y(e)}static choiceList(e){return new K(e)}static color(e){return new Z(e)}static comb(e){return new $(e)}static connect(e){return new J(e)}static contentArea(e){return new Q(e)}static corner(e){return new ee(e)}static date(e){return new te(e)}static dateTime(e){return new ne(e)}static dateTimeEdit(e){return new re(e)}static decimal(e){return new ie(e)}static defaultUi(e){return new oe(e)}static desc(e){return new se(e)}static digestMethod(e){return new ae(e)}static digestMethods(e){return new le(e)}static draw(e){return new ce(e)}static edge(e){return new ue(e)}static encoding(e){return new de(e)}static encodings(e){return new he(e)}static encrypt(e){return new pe(e)}static encryptData(e){return new fe(e)}static encryption(e){return new ge(e)}static encryptionMethod(e){return new me(e)}static encryptionMethods(e){return new ye(e)}static event(e){return new ve(e)}static exData(e){return new _e(e)}static exObject(e){return new be(e)}static exclGroup(e){return new xe(e)}static execute(e){return new Se(e)}static extras(e){return new we(e)}static field(e){return new Ee(e)}static fill(e){return new Pe(e)}static filter(e){return new Ce(e)}static float(e){return new Ae(e)}static font(e){return new ke(e)}static format(e){return new je(e)}static handler(e){return new Ie(e)}static hyphenation(e){return new Ge(e)}static image(e){return new Te(e)}static imageEdit(e){return new Me(e)}static integer(e){return new Oe(e)}static issuers(e){return new Re(e)}static items(e){return new De(e)}static keep(e){return new Ne(e)}static keyUsage(e){return new Le(e)}static line(e){return new Ve(e)}static linear(e){return new Fe(e)}static lockDocument(e){return new ze(e)}static manifest(e){return new Be(e)}static margin(e){return new Ue(e)}static mdp(e){return new We(e)}static medium(e){return new He(e)}static message(e){return new qe(e)}static numericEdit(e){return new Xe(e)}static occur(e){return new Ye(e)}static oid(e){return new Ke(e)}static oids(e){return new Ze(e)}static overflow(e){return new $e(e)}static pageArea(e){return new Je(e)}static pageSet(e){return new Qe(e)}static para(e){return new et(e)}static passwordEdit(e){return new tt(e)}static pattern(e){return new nt(e)}static picture(e){return new rt(e)}static proto(e){return new it(e)}static radial(e){return new ot(e)}static reason(e){return new st(e)}static reasons(e){return new at(e)}static rectangle(e){return new lt(e)}static ref(e){return new ct(e)}static script(e){return new ut(e)}static setProperty(e){return new dt(e)}static signData(e){return new ht(e)}static signature(e){return new pt(e)}static signing(e){return new ft(e)}static solid(e){return new gt(e)}static speak(e){return new mt(e)}static stipple(e){return new yt(e)}static subform(e){return new vt(e)}static subformSet(e){return new _t(e)}static subjectDN(e){return new bt(e)}static subjectDNs(e){return new xt(e)}static submit(e){return new St(e)}static template(e){return new wt(e)}static text(e){return new Et(e)}static textEdit(e){return new Pt(e)}static time(e){return new Ct(e)}static timeStamp(e){return new At(e)}static toolTip(e){return new kt(e)}static traversal(e){return new jt(e)}static traverse(e){return new It(e)}static ui(e){return new Gt(e)}static validate(e){return new Tt(e)}static value(e){return new Mt(e)}static variables(e){return new Ot(e)}}t.TemplateNamespace=Rt},(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.addHTML=function(e,t,n){const s=e[r.$extra],a=s.availableSpace,[l,c,u,d]=n;switch(e.layout){case"position":s.width=Math.max(s.width,l+u),s.height=Math.max(s.height,c+d),s.children.push(t);break;case"lr-tb":case"rl-tb":s.line&&1!==s.attempt||(s.line=o(e,[]),s.children.push(s.line),s.numberInLine=0),s.numberInLine+=1,s.line.children.push(t),0===s.attempt?(s.currentWidth+=u,s.height=Math.max(s.height,s.prevHeight+d)):(s.currentWidth=u,s.prevHeight=s.height,s.height+=d,s.attempt=0),s.width=Math.max(s.width,s.currentWidth);break;case"rl-row":case"row":{s.children.push(t),s.width+=u,s.height=Math.max(s.height,d);const e=(0,i.measureToString)(s.height);for(const t of s.children)t.attributes.style.height=e;break}case"table":case"tb":s.width=Math.min(a.width,Math.max(s.width,u)),s.height+=d,s.children.push(t)}},t.checkDimensions=function(e,t){if(null===e[r.$getTemplateRoot]()[r.$extra].firstUnsplittable)return!0;if(0===e.w||0===e.h)return!0;const n=e[r.$getSubformParent](),i=n[r.$extra]&&n[r.$extra].attempt||0,[,o,s,a]=function(e){let t,n,r=""===e.w?NaN:e.w,i=""===e.h?NaN:e.h,[o,s]=[0,0];switch(e.anchorType||""){case"bottomCenter":[o,s]=[r/2,i];break;case"bottomLeft":[o,s]=[0,i];break;case"bottomRight":[o,s]=[r,i];break;case"middleCenter":[o,s]=[r/2,i/2];break;case"middleLeft":[o,s]=[0,i/2];break;case"middleRight":[o,s]=[r,i/2];break;case"topCenter":[o,s]=[r/2,0];break;case"topRight":[o,s]=[r,0]}switch(e.rotate||0){case 0:[t,n]=[-o,-s];break;case 90:[t,n]=[-s,o],[r,i]=[i,-r];break;case 180:[t,n]=[o,s],[r,i]=[-r,-i];break;case 270:[t,n]=[s,-o],[r,i]=[-i,r]}return[e.x+t+Math.min(0,r),e.y+n+Math.min(0,i),Math.abs(r),Math.abs(i)]}(e);switch(n.layout){case"lr-tb":case"rl-tb":return 0===i?e[r.$getTemplateRoot]()[r.$extra].noLayoutFailure?""!==e.w?Math.round(s-t.width)<=2:t.width>2:!(""!==e.h&&Math.round(a-t.height)>2)&&(""!==e.w?Math.round(s-t.width)<=2||0===n[r.$extra].numberInLine&&t.height>2:t.width>2):!!e[r.$getTemplateRoot]()[r.$extra].noLayoutFailure||!(""!==e.h&&Math.round(a-t.height)>2)&&(""===e.w||Math.round(s-t.width)<=2||!n[r.$isThereMoreWidth]())&&t.height>2;case"table":case"tb":return!!e[r.$getTemplateRoot]()[r.$extra].noLayoutFailure||(""===e.h||e[r.$isSplittable]()?(""===e.w||Math.round(s-t.width)<=2||!n[r.$isThereMoreWidth]())&&t.height>2:Math.round(a-t.height)<=2);case"position":return!!e[r.$getTemplateRoot]()[r.$extra].noLayoutFailure||(""===e.h||Math.round(a+o-t.height)<=2||a+o>e[r.$getTemplateRoot]()[r.$extra].currentContentArea.h);case"rl-row":case"row":return!!e[r.$getTemplateRoot]()[r.$extra].noLayoutFailure||""===e.h||Math.round(a-t.height)<=2;default:return!0}},t.flushHTML=function(e){if(!e[r.$extra])return null;const t={name:"div",attributes:e[r.$extra].attributes,children:e[r.$extra].children};if(e[r.$extra].failingNode){const n=e[r.$extra].failingNode[r.$flushHTML]();n&&(e.layout.endsWith("-tb")?t.children.push(o(e,[n])):t.children.push(n))}return 0===t.children.length?null:t},t.getAvailableSpace=function(e){const t=e[r.$extra].availableSpace,n=e.margin?e.margin.topInset+e.margin.bottomInset:0,i=e.margin?e.margin.leftInset+e.margin.rightInset:0;switch(e.layout){case"lr-tb":case"rl-tb":return 0===e[r.$extra].attempt?{width:t.width-i-e[r.$extra].currentWidth,height:t.height-n-e[r.$extra].prevHeight}:{width:t.width-i,height:t.height-n-e[r.$extra].height};case"rl-row":case"row":return{width:e[r.$extra].columnWidths.slice(e[r.$extra].currentColumn).reduce(((e,t)=>e+t)),height:t.height-i};case"table":case"tb":return{width:t.width-i,height:t.height-n-e[r.$extra].height};default:return t}};var r=n(75),i=n(82);function o(e,t){return{name:"div",attributes:{class:["lr-tb"===e.layout?"xfaLr":"xfaRl"]},children:t}}},(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.computeBbox=function(e,t,n){let i;if(""!==e.w&&""!==e.h)i=[e.x,e.y,e.w,e.h];else{if(!n)return null;let o=e.w;if(""===o){if(0===e.maxW){const t=e[r.$getSubformParent]();o="position"===t.layout&&""!==t.w?0:e.minW}else o=Math.min(e.maxW,n.width);t.attributes.style.width=l(o)}let s=e.h;if(""===s){if(0===e.maxH){const t=e[r.$getSubformParent]();s="position"===t.layout&&""!==t.h?0:e.minH}else s=Math.min(e.maxH,n.height);t.attributes.style.height=l(s)}i=[e.x,e.y,o,s]}return i},t.createWrapper=function(e,t){const{attributes:n}=t,{style:i}=n,o={name:"div",attributes:{class:["xfaWrapper"],style:Object.create(null)},children:[]};if(n.class.push("xfaWrapped"),e.border){const{widths:n,insets:s}=e.border[r.$extra];let a,l,c=s[0],u=s[3];const h=s[0]+s[2],p=s[1]+s[3];switch(e.border.hand){case"even":c-=n[0]/2,u-=n[3]/2,a="calc(100% + ".concat((n[1]+n[3])/2-p,"px)"),l="calc(100% + ".concat((n[0]+n[2])/2-h,"px)");break;case"left":c-=n[0],u-=n[3],a="calc(100% + ".concat(n[1]+n[3]-p,"px)"),l="calc(100% + ".concat(n[0]+n[2]-h,"px)");break;case"right":a=p?"calc(100% - ".concat(p,"px)"):"100%",l=h?"calc(100% - ".concat(h,"px)"):"100%"}const f=["xfaBorder"];d(e.border)&&f.push("xfaPrintOnly");const g={name:"div",attributes:{class:f,style:{top:"".concat(c,"px"),left:"".concat(u,"px"),width:a,height:l}},children:[]};for(const e of["border","borderWidth","borderColor","borderRadius","borderStyle"])void 0!==i[e]&&(g.attributes.style[e]=i[e],delete i[e]);o.children.push(g,t)}else o.children.push(t);for(const r of["background","backgroundClip","top","left","width","height","minWidth","minHeight","maxWidth","maxHeight","transform","transformOrigin","visibility"])void 0!==i[r]&&(o.attributes.style[r]=i[r],delete i[r]);return"absolute"===i.position?o.attributes.style.position="absolute":o.attributes.style.position="relative",delete i.position,i.alignSelf&&(o.attributes.style.alignSelf=i.alignSelf,delete i.alignSelf),o},t.fixDimensions=function(e){const t=e[r.$getSubformParent]();if(t.layout&&t.layout.includes("row")){const n=t[r.$extra],i=e.colSpan;let o;o=-1===i?n.columnWidths.slice(n.currentColumn).reduce(((e,t)=>e+t),0):n.columnWidths.slice(n.currentColumn,n.currentColumn+i).reduce(((e,t)=>e+t),0),isNaN(o)||(e.w=o)}t.layout&&"position"!==t.layout&&(e.x=e.y=0),"table"===e.layout&&""===e.w&&Array.isArray(e.columnWidths)&&(e.w=e.columnWidths.reduce(((e,t)=>e+t),0))},t.fixTextIndent=function(e){const t=(0,o.getMeasurement)(e.textIndent,"0px");if(t>=0)return;const n="padding"+("left"===("right"===e.textAlign?"right":"left")?"Left":"Right"),r=(0,o.getMeasurement)(e[n],"0px");e[n]="".concat(r-t,"px")},t.fixURL=function(e){const t=(0,i.createValidAbsoluteUrl)(e,null,{addDefaultProtocol:!0,tryConvertEncoding:!0});return t?t.href:null},t.isPrintOnly=d,t.layoutClass=function(e){switch(e.layout){case"position":default:return"xfaPosition";case"lr-tb":return"xfaLrTb";case"rl-row":return"xfaRlRow";case"rl-tb":return"xfaRlTb";case"row":return"xfaRow";case"table":return"xfaTable";case"tb":return"xfaTb"}},t.layoutNode=function(e,t){let n=null,i=null,o=!1;if((!e.w||!e.h)&&e.value){let s=0,a=0;e.margin&&(s=e.margin.leftInset+e.margin.rightInset,a=e.margin.topInset+e.margin.bottomInset);let l=null,c=null;e.para&&(c=Object.create(null),l=""===e.para.lineHeight?null:e.para.lineHeight,c.top=""===e.para.spaceAbove?0:e.para.spaceAbove,c.bottom=""===e.para.spaceBelow?0:e.para.spaceBelow,c.left=""===e.para.marginLeft?0:e.para.marginLeft,c.right=""===e.para.marginRight?0:e.para.marginRight);let d=e.font;if(!d){const t=e[r.$getTemplateRoot]();let n=e[r.$getParent]();for(;n&&n!==t;){if(n.font){d=n.font;break}n=n[r.$getParent]()}}const h=(e.w||t.width)-s,p=e[r.$globalData].fontFinder;if(e.value.exData&&e.value.exData[r.$content]&&"text/html"===e.value.exData.contentType){const t=u(e.value.exData[r.$content],d,c,l,p,h);i=t.width,n=t.height,o=t.isBroken}else{const t=e.value[r.$text]();if(t){const e=u(t,d,c,l,p,h);i=e.width,n=e.height,o=e.isBroken}}null===i||e.w||(i+=s),null===n||e.h||(n+=a)}return{w:i,h:n,isBroken:o}},t.measureToString=l,t.setAccess=function(e,t){switch(e.access){case"nonInteractive":t.push("xfaNonInteractive");break;case"readOnly":t.push("xfaReadOnly");break;case"protected":t.push("xfaDisabled")}},t.setFontFamily=function(e,t,n,r){if(!n)return void delete r.fontFamily;const i=(0,o.stripQuotes)(e.typeface);r.fontFamily='"'.concat(i,'"');const a=n.find(i);if(a){const{fontFamily:n}=a.regular.cssFontInfo;n!==i&&(r.fontFamily='"'.concat(n,'"'));const o=h(t);if(o&&""!==o.lineHeight)return;if(r.lineHeight)return;const l=(0,s.selectFont)(e,a);l&&(r.lineHeight=Math.max(1.2,l.lineHeight))}},t.setMinMaxDimensions=function(e,t){"position"===e[r.$getSubformParent]().layout&&(e.minW>0&&(t.minWidth=l(e.minW)),e.maxW>0&&(t.maxWidth=l(e.maxW)),e.minH>0&&(t.minHeight=l(e.minH)),e.maxH>0&&(t.maxHeight=l(e.maxH)))},t.setPara=function(e,t,n){if(n.attributes.class&&n.attributes.class.includes("xfaRich")){t&&(""===e.h&&(t.height="auto"),""===e.w&&(t.width="auto"));const i=h(e);if(i){const e=n.attributes.style;switch(e.display="flex",e.flexDirection="column",i.vAlign){case"top":e.justifyContent="start";break;case"bottom":e.justifyContent="end";break;case"middle":e.justifyContent="center"}const t=i[r.$toStyle]();for(const[n,r]of Object.entries(t))n in e||(e[n]=r)}}},t.toStyle=function(e){const t=Object.create(null);for(var n=arguments.length,o=new Array(n>1?n-1:0),s=1;s<n;s++)o[s-1]=arguments[s];for(const a of o){const n=e[a];if(null!==n)if(c.hasOwnProperty(a))c[a](e,t);else if(n instanceof r.XFAObject){const e=n[r.$toStyle]();e?Object.assign(t,e):(0,i.warn)("(DEBUG) - XFA - style for ".concat(a," not implemented yet"))}}return t};var r=n(75),i=n(2),o=n(76),s=n(83),a=n(84);function l(e){return"string"===typeof e?"0px":Number.isInteger(e)?"".concat(e,"px"):"".concat(e.toFixed(2),"px")}const c={anchorType(e,t){const n=e[r.$getSubformParent]();if(n&&(!n.layout||"position"===n.layout))switch("transform"in t||(t.transform=""),e.anchorType){case"bottomCenter":t.transform+="translate(-50%, -100%)";break;case"bottomLeft":t.transform+="translate(0,-100%)";break;case"bottomRight":t.transform+="translate(-100%,-100%)";break;case"middleCenter":t.transform+="translate(-50%,-50%)";break;case"middleLeft":t.transform+="translate(0,-50%)";break;case"middleRight":t.transform+="translate(-100%,-50%)";break;case"topCenter":t.transform+="translate(-50%,0)";break;case"topRight":t.transform+="translate(-100%,0)"}},dimensions(e,t){const n=e[r.$getSubformParent]();let i=e.w;const o=e.h;if(n.layout&&n.layout.includes("row")){const t=n[r.$extra],o=e.colSpan;let s;-1===o?(s=t.columnWidths.slice(t.currentColumn).reduce(((e,t)=>e+t),0),t.currentColumn=0):(s=t.columnWidths.slice(t.currentColumn,t.currentColumn+o).reduce(((e,t)=>e+t),0),t.currentColumn=(t.currentColumn+e.colSpan)%t.columnWidths.length),isNaN(s)||(i=e.w=s)}t.width=""!==i?l(i):"auto",t.height=""!==o?l(o):"auto"},position(e,t){const n=e[r.$getSubformParent]();n&&n.layout&&"position"!==n.layout||(t.position="absolute",t.left=l(e.x),t.top=l(e.y))},rotate(e,t){e.rotate&&("transform"in t||(t.transform=""),t.transform+="rotate(-".concat(e.rotate,"deg)"),t.transformOrigin="top left")},presence(e,t){switch(e.presence){case"invisible":t.visibility="hidden";break;case"hidden":case"inactive":t.display="none"}},hAlign(e,t){if("para"===e[r.$nodeName])switch(e.hAlign){case"justifyAll":t.textAlign="justify-all";break;case"radix":t.textAlign="left";break;default:t.textAlign=e.hAlign}else switch(e.hAlign){case"left":t.alignSelf="start";break;case"center":t.alignSelf="center";break;case"right":t.alignSelf="end"}},margin(e,t){e.margin&&(t.margin=e.margin[r.$toStyle]().margin)}};function u(e,t,n,i,o,s){const l=new a.TextMeasure(t,n,i,o);return"string"===typeof e?l.addString(e):e[r.$pushGlyphs](l),l.compute(s)}function d(e){return e.relevant.length>0&&!e.relevant[0].excluded&&"print"===e.relevant[0].viewname}function h(e){const t=e[r.$getTemplateRoot]()[r.$extra].paraStack;return t.length?t.at(-1):null}},(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.FontFinder=void 0,t.getMetrics=function(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=null;if(e){const t=(0,i.stripQuotes)(e.typeface),o=e[r.$globalData].fontFinder.find(t);n=s(e,o)}if(!n)return{lineHeight:12,lineGap:2,lineNoGap:10};const o=e.size||10,a=n.lineHeight?Math.max(t?0:1.2,n.lineHeight):1.2,l=void 0===n.lineGap?.2:n.lineGap;return{lineHeight:a*o,lineGap:l*o,lineNoGap:Math.max(1,a-l)*o}},t.selectFont=s;var r=n(75),i=n(76),o=n(2);function s(e,t){return"italic"===e.posture?"bold"===e.weight?t.bolditalic:t.italic:"bold"===e.weight?t.bold:t.regular}t.FontFinder=class{constructor(e){this.fonts=new Map,this.cache=new Map,this.warned=new Set,this.defaultFont=null,this.add(e)}add(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;for(const r of e)this.addPdfFont(r);for(const r of this.fonts.values())r.regular||(r.regular=r.italic||r.bold||r.bolditalic);if(!t||0===t.size)return;const n=this.fonts.get("PdfJS-Fallback-PdfJS-XFA");for(const r of t)this.fonts.set(r,n)}addPdfFont(e){const t=e.cssFontInfo,n=t.fontFamily;let r=this.fonts.get(n);r||(r=Object.create(null),this.fonts.set(n,r),this.defaultFont||(this.defaultFont=r));let i="";const o=parseFloat(t.fontWeight);0!==parseFloat(t.italicAngle)?i=o>=700?"bolditalic":"italic":o>=700&&(i="bold"),i||((e.name.includes("Bold")||e.psName&&e.psName.includes("Bold"))&&(i="bold"),(e.name.includes("Italic")||e.name.endsWith("It")||e.psName&&(e.psName.includes("Italic")||e.psName.endsWith("It")))&&(i+="italic")),i||(i="regular"),r[i]=e}getDefault(){return this.defaultFont}find(e){let t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],n=this.fonts.get(e)||this.cache.get(e);if(n)return n;const r=/,|-|_| |bolditalic|bold|italic|regular|it/gi;let i=e.replace(r,"");if(n=this.fonts.get(i),n)return this.cache.set(e,n),n;i=i.toLowerCase();const s=[];for(const[o,a]of this.fonts.entries())o.replace(r,"").toLowerCase().startsWith(i)&&s.push(a);if(0===s.length)for(const[,o]of this.fonts.entries())o.regular.name&&o.regular.name.replace(r,"").toLowerCase().startsWith(i)&&s.push(o);if(0===s.length){i=i.replace(/psmt|mt/gi,"");for(const[e,t]of this.fonts.entries())e.replace(r,"").toLowerCase().startsWith(i)&&s.push(t)}if(0===s.length)for(const o of this.fonts.values())o.regular.name&&o.regular.name.replace(r,"").toLowerCase().startsWith(i)&&s.push(o);return s.length>=1?(1!==s.length&&t&&(0,o.warn)("XFA - Too many choices to guess the correct font: ".concat(e)),this.cache.set(e,s[0]),s[0]):(t&&!this.warned.has(e)&&(this.warned.add(e),(0,o.warn)("XFA - Cannot find the font: ".concat(e))),null)}}},(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.TextMeasure=void 0;var r=n(83);class i{constructor(e,t,n,i){if(this.lineHeight=n,this.paraMargin=t||{top:0,bottom:0,left:0,right:0},!e)return void([this.pdfFont,this.xfaFont]=this.defaultFont(i));this.xfaFont={typeface:e.typeface,posture:e.posture,weight:e.weight,size:e.size,letterSpacing:e.letterSpacing};const o=i.find(e.typeface);o?(this.pdfFont=(0,r.selectFont)(e,o),this.pdfFont||([this.pdfFont,this.xfaFont]=this.defaultFont(i))):[this.pdfFont,this.xfaFont]=this.defaultFont(i)}defaultFont(e){const t=e.find("Helvetica",!1)||e.find("Myriad Pro",!1)||e.find("Arial",!1)||e.getDefault();if(t&&t.regular){const e=t.regular;return[e,{typeface:e.cssFontInfo.fontFamily,posture:"normal",weight:"normal",size:10,letterSpacing:0}]}return[null,{typeface:"Courier",posture:"normal",weight:"normal",size:10,letterSpacing:0}]}}class o{constructor(e,t,n,r){this.fontFinder=r,this.stack=[new i(e,t,n,r)]}pushData(e,t,n){const r=this.stack.at(-1);for(const i of["typeface","posture","weight","size","letterSpacing"])e[i]||(e[i]=r.xfaFont[i]);for(const i of["top","bottom","left","right"])isNaN(t[i])&&(t[i]=r.paraMargin[i]);const o=new i(e,t,n||r.lineHeight,this.fontFinder);o.pdfFont||(o.pdfFont=r.pdfFont),this.stack.push(o)}popFont(){this.stack.pop()}topFont(){return this.stack.at(-1)}}t.TextMeasure=class{constructor(e,t,n,r){this.glyphs=[],this.fontSelector=new o(e,t,n,r),this.extraHeight=0}pushData(e,t,n){this.fontSelector.pushData(e,t,n)}popFont(e){return this.fontSelector.popFont()}addPara(){const e=this.fontSelector.topFont();this.extraHeight+=e.paraMargin.top+e.paraMargin.bottom}addString(e){if(!e)return;const t=this.fontSelector.topFont(),n=t.xfaFont.size;if(t.pdfFont){const r=t.xfaFont.letterSpacing,i=t.pdfFont,o=i.lineHeight||1.2,s=t.lineHeight||Math.max(1.2,o)*n,a=o-(void 0===i.lineGap?.2:i.lineGap),l=Math.max(1,a)*n,c=n/1e3,u=i.defaultWidth||i.charsToGlyphs(" ")[0].width;for(const t of e.split(/[\u2029\n]/)){const e=i.encodeString(t).join(""),n=i.charsToGlyphs(e);for(const t of n){const e=t.width||u;this.glyphs.push([e*c+r,s,l,t.unicode,!1])}this.glyphs.push([0,0,0,"\n",!0])}this.glyphs.pop()}else{for(const t of e.split(/[\u2029\n]/)){for(const e of t.split(""))this.glyphs.push([n,1.2*n,n,e,!1]);this.glyphs.push([0,0,0,"\n",!0])}this.glyphs.pop()}}compute(e){let t=-1,n=0,r=0,i=0,o=0,s=0,a=!1,l=!0;for(let c=0,u=this.glyphs.length;c<u;c++){const[u,d,h,p,f]=this.glyphs[c],g=" "===p,m=l?h:d;f?(r=Math.max(r,o),o=0,i+=s,s=m,t=-1,n=0,l=!1):g?o+u>e?(r=Math.max(r,o),o=0,i+=s,s=m,t=-1,n=0,a=!0,l=!1):(s=Math.max(m,s),n=o,o+=u,t=c):o+u>e?(i+=s,s=m,-1!==t?(c=t,r=Math.max(r,n),o=0,t=-1,n=0):(r=Math.max(r,o),o=u),a=!0,l=!1):(o+=u,s=Math.max(m,s))}return r=Math.max(r,o),i+=s+this.extraHeight,{width:1.02*r,height:i,isBroken:a}}}},(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.DataHandler=void 0;var r=n(75);t.DataHandler=class{constructor(e,t){this.data=t,this.dataset=e.datasets||null}serialize(e){const t=[[-1,this.data[r.$getChildren]()]];for(;t.length>0;){const n=t.at(-1),[i,o]=n;if(i+1===o.length){t.pop();continue}const s=o[++n[0]],a=e.get(s[r.$uid]);if(a)s[r.$setValue](a);else{const t=s[r.$getAttributes]();for(const n of t.values()){const t=e.get(n[r.$uid]);if(t){n[r.$setValue](t);break}}}const l=s[r.$getChildren]();l.length>0&&t.push([-1,l])}const n=['<xfa:datasets xmlns:xfa="http://www.xfa.org/schema/xfa-data/1.0/">'];if(this.dataset)for(const i of this.dataset[r.$getChildren]())"data"!==i[r.$nodeName]&&i[r.$toString](n);return this.data[r.$toString](n),n.push("</xfa:datasets>"),n.join("")}}},(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.XFAParser=void 0;var r=n(75),i=n(64),o=n(87),s=n(2);class a extends i.XMLParserBase{constructor(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];super(),this._builder=new o.Builder(e),this._stack=[],this._globalData={usedTypefaces:new Set},this._ids=new Map,this._current=this._builder.buildRoot(this._ids),this._errorCode=i.XMLParserErrorCode.NoError,this._whiteRegex=/^\s+$/,this._nbsps=/\xa0+/g,this._richText=t}parse(e){if(this.parseXml(e),this._errorCode===i.XMLParserErrorCode.NoError)return this._current[r.$finalize](),this._current.element}onText(e){e=e.replace(this._nbsps,(e=>e.slice(1)+" ")),this._richText||this._current[r.$acceptWhitespace]()?this._current[r.$onText](e,this._richText):this._whiteRegex.test(e)||this._current[r.$onText](e.trim())}onCdata(e){this._current[r.$onText](e)}_mkAttributes(e,t){let n=null,i=null;const o=Object.create({});for(const{name:a,value:l}of e)if("xmlns"===a)n?(0,s.warn)("XFA - multiple namespace definition in <".concat(t,">")):n=l;else if(a.startsWith("xmlns:")){const e=a.substring(6);i||(i=[]),i.push({prefix:e,value:l})}else{const e=a.indexOf(":");if(-1===e)o[a]=l;else{let t=o[r.$nsAttributes];t||(t=o[r.$nsAttributes]=Object.create(null));const[n,i]=[a.slice(0,e),a.slice(e+1)];let s=t[n];s||(s=t[n]=Object.create(null)),s[i]=l}}return[n,i,o]}_getNameAndPrefix(e,t){const n=e.indexOf(":");return-1===n?[e,null]:[e.substring(n+1),t?"":e.substring(0,n)]}onBeginElement(e,t,n){const[i,o,s]=this._mkAttributes(t,e),[a,l]=this._getNameAndPrefix(e,this._builder.isNsAgnostic()),c=this._builder.build({nsPrefix:l,name:a,attributes:s,namespace:i,prefixes:o});if(c[r.$globalData]=this._globalData,n)return c[r.$finalize](),this._current[r.$onChild](c)&&c[r.$setId](this._ids),void c[r.$clean](this._builder);this._stack.push(this._current),this._current=c}onEndElement(e){const t=this._current;if(t[r.$isCDATAXml]()&&"string"===typeof t[r.$content]){const e=new a;e._globalData=this._globalData;const n=e.parse(t[r.$content]);t[r.$content]=null,t[r.$onChild](n)}t[r.$finalize](),this._current=this._stack.pop(),this._current[r.$onChild](t)&&t[r.$setId](this._ids),t[r.$clean](this._builder)}onError(e){this._errorCode=e}}t.XFAParser=a},(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.Builder=void 0;var r=n(77),i=n(75),o=n(88),s=n(80),a=n(97),l=n(2);class c extends i.XFAObject{constructor(e){super(-1,"root",Object.create(null)),this.element=null,this[i.$ids]=e}[i.$onChild](e){return this.element=e,!0}[i.$finalize](){super[i.$finalize](),this.element.template instanceof s.Template&&(this[i.$ids].set(i.$root,this.element),this.element.template[i.$resolvePrototypes](this[i.$ids]),this.element.template[i.$ids]=this[i.$ids])}}class u extends i.XFAObject{constructor(){super(-1,"",Object.create(null))}[i.$onChild](e){return!1}}t.Builder=class{constructor(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;this._namespaceStack=[],this._nsAgnosticLevel=0,this._namespacePrefixes=new Map,this._namespaces=new Map,this._nextNsId=Math.max(...Object.values(r.NamespaceIds).map((e=>{let{id:t}=e;return t}))),this._currentNamespace=e||new a.UnknownNamespace(++this._nextNsId)}buildRoot(e){return new c(e)}build(e){let{nsPrefix:t,name:n,attributes:s,namespace:a,prefixes:l}=e;const c=null!==a;if(c&&(this._namespaceStack.push(this._currentNamespace),this._currentNamespace=this._searchNamespace(a)),l&&this._addNamespacePrefix(l),s.hasOwnProperty(i.$nsAttributes)){const e=o.NamespaceSetUp.datasets,t=s[i.$nsAttributes];let n=null;for(const[r,i]of Object.entries(t))if(this._getNamespaceToUse(r)===e){n={xfa:i};break}n?s[i.$nsAttributes]=n:delete s[i.$nsAttributes]}const d=this._getNamespaceToUse(t),h=d&&d[r.$buildXFAObject](n,s)||new u;return h[i.$isNsAgnostic]()&&this._nsAgnosticLevel++,(c||l||h[i.$isNsAgnostic]())&&(h[i.$cleanup]={hasNamespace:c,prefixes:l,nsAgnostic:h[i.$isNsAgnostic]()}),h}isNsAgnostic(){return this._nsAgnosticLevel>0}_searchNamespace(e){let t=this._namespaces.get(e);if(t)return t;for(const[n,{check:i}]of Object.entries(r.NamespaceIds))if(i(e)){if(t=o.NamespaceSetUp[n],t)return this._namespaces.set(e,t),t;break}return t=new a.UnknownNamespace(++this._nextNsId),this._namespaces.set(e,t),t}_addNamespacePrefix(e){for(const{prefix:t,value:n}of e){const e=this._searchNamespace(n);let r=this._namespacePrefixes.get(t);r||(r=[],this._namespacePrefixes.set(t,r)),r.push(e)}}_getNamespaceToUse(e){if(!e)return this._currentNamespace;const t=this._namespacePrefixes.get(e);return t&&t.length>0?t.at(-1):((0,l.warn)("Unknown namespace prefix: ".concat(e,".")),null)}clean(e){const{hasNamespace:t,prefixes:n,nsAgnostic:r}=e;t&&(this._currentNamespace=this._namespaceStack.pop()),n&&n.forEach((e=>{let{prefix:t}=e;this._namespacePrefixes.get(t).pop()})),r&&this._nsAgnosticLevel--}}},(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.NamespaceSetUp=void 0;var r=n(89),i=n(90),o=n(91),s=n(92),a=n(93),l=n(94),c=n(80),u=n(95),d=n(96);const h={config:r.ConfigNamespace,connection:i.ConnectionSetNamespace,datasets:o.DatasetsNamespace,localeSet:s.LocaleSetNamespace,signature:a.SignatureNamespace,stylesheet:l.StylesheetNamespace,template:c.TemplateNamespace,xdp:u.XdpNamespace,xhtml:d.XhtmlNamespace};t.NamespaceSetUp=h},(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.ConfigNamespace=void 0;var r=n(77),i=n(75),o=n(76),s=n(2);const a=r.NamespaceIds.config.id;class l extends i.XFAObject{constructor(e){super(a,"acrobat",!0),this.acrobat7=null,this.autoSave=null,this.common=null,this.validate=null,this.validateApprovalSignatures=null,this.submitUrl=new i.XFAObjectArray}}class c extends i.XFAObject{constructor(e){super(a,"acrobat7",!0),this.dynamicRender=null}}class u extends i.OptionObject{constructor(e){super(a,"ADBE_JSConsole",["delegate","Enable","Disable"])}}class d extends i.OptionObject{constructor(e){super(a,"ADBE_JSDebugger",["delegate","Enable","Disable"])}}class h extends i.Option01{constructor(e){super(a,"addSilentPrint")}}class p extends i.Option01{constructor(e){super(a,"addViewerPreferences")}}class f extends i.Option10{constructor(e){super(a,"adjustData")}}class g extends i.IntegerObject{constructor(e){super(a,"adobeExtensionLevel",0,(e=>e>=1&&e<=8))}}class m extends i.XFAObject{constructor(e){super(a,"agent",!0),this.name=e.name?e.name.trim():"",this.common=new i.XFAObjectArray}}class y extends i.ContentObject{constructor(e){super(a,"alwaysEmbed")}}class v extends i.StringObject{constructor(e){super(a,"amd")}}class _ extends i.XFAObject{constructor(e){super(a,"area"),this.level=(0,o.getInteger)({data:e.level,defaultValue:0,validate:e=>e>=1&&e<=3}),this.name=(0,o.getStringOption)(e.name,["","barcode","coreinit","deviceDriver","font","general","layout","merge","script","signature","sourceSet","templateCache"])}}class b extends i.OptionObject{constructor(e){super(a,"attributes",["preserve","delegate","ignore"])}}class x extends i.OptionObject{constructor(e){super(a,"autoSave",["disabled","enabled"])}}class S extends i.StringObject{constructor(e){super(a,"base")}}class w extends i.XFAObject{constructor(e){super(a,"batchOutput"),this.format=(0,o.getStringOption)(e.format,["none","concat","zip","zipCompress"])}}class E extends i.ContentObject{constructor(e){super(a,"behaviorOverride")}[i.$finalize](){this[i.$content]=new Map(this[i.$content].trim().split(/\s+/).filter((e=>e.includes(":"))).map((e=>e.split(":",2))))}}class P extends i.XFAObject{constructor(e){super(a,"cache",!0),this.templateCache=null}}class C extends i.Option01{constructor(e){super(a,"change")}}class A extends i.XFAObject{constructor(e){super(a,"common",!0),this.data=null,this.locale=null,this.localeSet=null,this.messaging=null,this.suppressBanner=null,this.template=null,this.validationMessaging=null,this.versionControl=null,this.log=new i.XFAObjectArray}}class k extends i.XFAObject{constructor(e){super(a,"compress"),this.scope=(0,o.getStringOption)(e.scope,["imageOnly","document"])}}class j extends i.Option01{constructor(e){super(a,"compressLogicalStructure")}}class I extends i.Option10{constructor(e){super(a,"compressObjectStream")}}class G extends i.XFAObject{constructor(e){super(a,"compression",!0),this.compressLogicalStructure=null,this.compressObjectStream=null,this.level=null,this.type=null}}class T extends i.XFAObject{constructor(e){super(a,"config",!0),this.acrobat=null,this.present=null,this.trace=null,this.agent=new i.XFAObjectArray}}class M extends i.OptionObject{constructor(e){super(a,"conformance",["A","B"])}}class O extends i.Option01{constructor(e){super(a,"contentCopy")}}class R extends i.IntegerObject{constructor(e){super(a,"copies",1,(e=>e>=1))}}class D extends i.StringObject{constructor(e){super(a,"creator")}}class N extends i.IntegerObject{constructor(e){super(a,"currentPage",0,(e=>e>=0))}}class L extends i.XFAObject{constructor(e){super(a,"data",!0),this.adjustData=null,this.attributes=null,this.incrementalLoad=null,this.outputXSL=null,this.range=null,this.record=null,this.startNode=null,this.uri=null,this.window=null,this.xsl=null,this.excludeNS=new i.XFAObjectArray,this.transform=new i.XFAObjectArray}}class V extends i.XFAObject{constructor(e){super(a,"debug",!0),this.uri=null}}class F extends i.ContentObject{constructor(e){super(a,"defaultTypeface"),this.writingScript=(0,o.getStringOption)(e.writingScript,["*","Arabic","Cyrillic","EastEuropeanRoman","Greek","Hebrew","Japanese","Korean","Roman","SimplifiedChinese","Thai","TraditionalChinese","Vietnamese"])}}class z extends i.OptionObject{constructor(e){super(a,"destination",["pdf","pcl","ps","webClient","zpl"])}}class B extends i.Option01{constructor(e){super(a,"documentAssembly")}}class U extends i.XFAObject{constructor(e){super(a,"driver",!0),this.name=e.name?e.name.trim():"",this.fontInfo=null,this.xdc=null}}class W extends i.OptionObject{constructor(e){super(a,"duplexOption",["simplex","duplexFlipLongEdge","duplexFlipShortEdge"])}}class H extends i.OptionObject{constructor(e){super(a,"dynamicRender",["forbidden","required"])}}class q extends i.Option01{constructor(e){super(a,"embed")}}class X extends i.Option01{constructor(e){super(a,"encrypt")}}class Y extends i.XFAObject{constructor(e){super(a,"encryption",!0),this.encrypt=null,this.encryptionLevel=null,this.permissions=null}}class K extends i.OptionObject{constructor(e){super(a,"encryptionLevel",["40bit","128bit"])}}class Z extends i.StringObject{constructor(e){super(a,"enforce")}}class $ extends i.XFAObject{constructor(e){super(a,"equate"),this.force=(0,o.getInteger)({data:e.force,defaultValue:1,validate:e=>0===e}),this.from=e.from||"",this.to=e.to||""}}class J extends i.XFAObject{constructor(e){super(a,"equateRange"),this.from=e.from||"",this.to=e.to||"",this._unicodeRange=e.unicodeRange||""}get unicodeRange(){const e=[],t=/U\+([0-9a-fA-F]+)/,n=this._unicodeRange;for(let r of n.split(",").map((e=>e.trim())).filter((e=>!!e)))r=r.split("-",2).map((e=>{const n=e.match(t);return n?parseInt(n[1],16):0})),1===r.length&&r.push(r[0]),e.push(r);return(0,s.shadow)(this,"unicodeRange",e)}}class Q extends i.ContentObject{constructor(e){super(a,"exclude")}[i.$finalize](){this[i.$content]=this[i.$content].trim().split(/\s+/).filter((e=>e&&["calculate","close","enter","exit","initialize","ready","validate"].includes(e)))}}class ee extends i.StringObject{constructor(e){super(a,"excludeNS")}}class te extends i.OptionObject{constructor(e){super(a,"flipLabel",["usePrinterSetting","on","off"])}}class ne extends i.XFAObject{constructor(e){super(a,"fontInfo",!0),this.embed=null,this.map=null,this.subsetBelow=null,this.alwaysEmbed=new i.XFAObjectArray,this.defaultTypeface=new i.XFAObjectArray,this.neverEmbed=new i.XFAObjectArray}}class re extends i.Option01{constructor(e){super(a,"formFieldFilling")}}class ie extends i.StringObject{constructor(e){super(a,"groupParent")}}class oe extends i.OptionObject{constructor(e){super(a,"ifEmpty",["dataValue","dataGroup","ignore","remove"])}}class se extends i.StringObject{constructor(e){super(a,"includeXDPContent")}}class ae extends i.OptionObject{constructor(e){super(a,"incrementalLoad",["none","forwardOnly"])}}class le extends i.Option01{constructor(e){super(a,"incrementalMerge")}}class ce extends i.Option01{constructor(e){super(a,"interactive")}}class ue extends i.OptionObject{constructor(e){super(a,"jog",["usePrinterSetting","none","pageSet"])}}class de extends i.XFAObject{constructor(e){super(a,"labelPrinter",!0),this.name=(0,o.getStringOption)(e.name,["zpl","dpl","ipl","tcpl"]),this.batchOutput=null,this.flipLabel=null,this.fontInfo=null,this.xdc=null}}class he extends i.OptionObject{constructor(e){super(a,"layout",["paginate","panel"])}}class pe extends i.IntegerObject{constructor(e){super(a,"level",0,(e=>e>0))}}class fe extends i.Option01{constructor(e){super(a,"linearized")}}class ge extends i.StringObject{constructor(e){super(a,"locale")}}class me extends i.StringObject{constructor(e){super(a,"localeSet")}}class ye extends i.XFAObject{constructor(e){super(a,"log",!0),this.mode=null,this.threshold=null,this.to=null,this.uri=null}}class ve extends i.XFAObject{constructor(e){super(a,"map",!0),this.equate=new i.XFAObjectArray,this.equateRange=new i.XFAObjectArray}}class _e extends i.XFAObject{constructor(e){super(a,"mediumInfo",!0),this.map=null}}class be extends i.XFAObject{constructor(e){super(a,"message",!0),this.msgId=null,this.severity=null}}class xe extends i.XFAObject{constructor(e){super(a,"messaging",!0),this.message=new i.XFAObjectArray}}class Se extends i.OptionObject{constructor(e){super(a,"mode",["append","overwrite"])}}class we extends i.Option01{constructor(e){super(a,"modifyAnnots")}}class Ee extends i.IntegerObject{constructor(e){super(a,"msgId",1,(e=>e>=1))}}class Pe extends i.StringObject{constructor(e){super(a,"nameAttr")}}class Ce extends i.ContentObject{constructor(e){super(a,"neverEmbed")}}class Ae extends i.IntegerObject{constructor(e){super(a,"numberOfCopies",null,(e=>e>=2&&e<=5))}}class ke extends i.XFAObject{constructor(e){super(a,"openAction",!0),this.destination=null}}class je extends i.XFAObject{constructor(e){super(a,"output",!0),this.to=null,this.type=null,this.uri=null}}class Ie extends i.StringObject{constructor(e){super(a,"outputBin")}}class Ge extends i.XFAObject{constructor(e){super(a,"outputXSL",!0),this.uri=null}}class Te extends i.OptionObject{constructor(e){super(a,"overprint",["none","both","draw","field"])}}class Me extends i.StringObject{constructor(e){super(a,"packets")}[i.$finalize](){"*"!==this[i.$content]&&(this[i.$content]=this[i.$content].trim().split(/\s+/).filter((e=>["config","datasets","template","xfdf","xslt"].includes(e))))}}class Oe extends i.XFAObject{constructor(e){super(a,"pageOffset"),this.x=(0,o.getInteger)({data:e.x,defaultValue:"useXDCSetting",validate:e=>!0}),this.y=(0,o.getInteger)({data:e.y,defaultValue:"useXDCSetting",validate:e=>!0})}}class Re extends i.StringObject{constructor(e){super(a,"pageRange")}[i.$finalize](){const e=this[i.$content].trim().split(/\s+/).map((e=>parseInt(e,10))),t=[];for(let n=0,r=e.length;n<r;n+=2)t.push(e.slice(n,n+2));this[i.$content]=t}}class De extends i.OptionObject{constructor(e){super(a,"pagination",["simplex","duplexShortEdge","duplexLongEdge"])}}class Ne extends i.OptionObject{constructor(e){super(a,"paginationOverride",["none","forceDuplex","forceDuplexLongEdge","forceDuplexShortEdge","forceSimplex"])}}class Le extends i.IntegerObject{constructor(e){super(a,"part",1,(e=>!1))}}class Ve extends i.XFAObject{constructor(e){super(a,"pcl",!0),this.name=e.name||"",this.batchOutput=null,this.fontInfo=null,this.jog=null,this.mediumInfo=null,this.outputBin=null,this.pageOffset=null,this.staple=null,this.xdc=null}}class Fe extends i.XFAObject{constructor(e){super(a,"pdf",!0),this.name=e.name||"",this.adobeExtensionLevel=null,this.batchOutput=null,this.compression=null,this.creator=null,this.encryption=null,this.fontInfo=null,this.interactive=null,this.linearized=null,this.openAction=null,this.pdfa=null,this.producer=null,this.renderPolicy=null,this.scriptModel=null,this.silentPrint=null,this.submitFormat=null,this.tagged=null,this.version=null,this.viewerPreferences=null,this.xdc=null}}class ze extends i.XFAObject{constructor(e){super(a,"pdfa",!0),this.amd=null,this.conformance=null,this.includeXDPContent=null,this.part=null}}class Be extends i.XFAObject{constructor(e){super(a,"permissions",!0),this.accessibleContent=null,this.change=null,this.contentCopy=null,this.documentAssembly=null,this.formFieldFilling=null,this.modifyAnnots=null,this.plaintextMetadata=null,this.print=null,this.printHighQuality=null}}class Ue extends i.Option01{constructor(e){super(a,"pickTrayByPDFSize")}}class We extends i.StringObject{constructor(e){super(a,"picture")}}class He extends i.Option01{constructor(e){super(a,"plaintextMetadata")}}class qe extends i.OptionObject{constructor(e){super(a,"presence",["preserve","dissolve","dissolveStructure","ignore","remove"])}}class Xe extends i.XFAObject{constructor(e){super(a,"present",!0),this.behaviorOverride=null,this.cache=null,this.common=null,this.copies=null,this.destination=null,this.incrementalMerge=null,this.layout=null,this.output=null,this.overprint=null,this.pagination=null,this.paginationOverride=null,this.script=null,this.validate=null,this.xdp=null,this.driver=new i.XFAObjectArray,this.labelPrinter=new i.XFAObjectArray,this.pcl=new i.XFAObjectArray,this.pdf=new i.XFAObjectArray,this.ps=new i.XFAObjectArray,this.submitUrl=new i.XFAObjectArray,this.webClient=new i.XFAObjectArray,this.zpl=new i.XFAObjectArray}}class Ye extends i.Option01{constructor(e){super(a,"print")}}class Ke extends i.Option01{constructor(e){super(a,"printHighQuality")}}class Ze extends i.OptionObject{constructor(e){super(a,"printScaling",["appdefault","noScaling"])}}class $e extends i.StringObject{constructor(e){super(a,"printerName")}}class Je extends i.StringObject{constructor(e){super(a,"producer")}}class Qe extends i.XFAObject{constructor(e){super(a,"ps",!0),this.name=e.name||"",this.batchOutput=null,this.fontInfo=null,this.jog=null,this.mediumInfo=null,this.outputBin=null,this.staple=null,this.xdc=null}}class et extends i.ContentObject{constructor(e){super(a,"range")}[i.$finalize](){this[i.$content]=this[i.$content].trim().split(/\s*,\s*/,2).map((e=>e.split("-").map((e=>parseInt(e.trim(),10))))).filter((e=>e.every((e=>!isNaN(e))))).map((e=>(1===e.length&&e.push(e[0]),e)))}}class tt extends i.ContentObject{constructor(e){super(a,"record")}[i.$finalize](){this[i.$content]=this[i.$content].trim();const e=parseInt(this[i.$content],10);!isNaN(e)&&e>=0&&(this[i.$content]=e)}}class nt extends i.ContentObject{constructor(e){super(a,"relevant")}[i.$finalize](){this[i.$content]=this[i.$content].trim().split(/\s+/)}}class rt extends i.ContentObject{constructor(e){super(a,"rename")}[i.$finalize](){this[i.$content]=this[i.$content].trim(),(this[i.$content].toLowerCase().startsWith("xml")||new RegExp("[\\p{L}_][\\p{L}\\d._\\p{M}-]*","u").test(this[i.$content]))&&(0,s.warn)("XFA - Rename: invalid XFA name")}}class it extends i.OptionObject{constructor(e){super(a,"renderPolicy",["server","client"])}}class ot extends i.OptionObject{constructor(e){super(a,"runScripts",["both","client","none","server"])}}class st extends i.XFAObject{constructor(e){super(a,"script",!0),this.currentPage=null,this.exclude=null,this.runScripts=null}}class at extends i.OptionObject{constructor(e){super(a,"scriptModel",["XFA","none"])}}class lt extends i.OptionObject{constructor(e){super(a,"severity",["ignore","error","information","trace","warning"])}}class ct extends i.XFAObject{constructor(e){super(a,"silentPrint",!0),this.addSilentPrint=null,this.printerName=null}}class ut extends i.XFAObject{constructor(e){super(a,"staple"),this.mode=(0,o.getStringOption)(e.mode,["usePrinterSetting","on","off"])}}class dt extends i.StringObject{constructor(e){super(a,"startNode")}}class ht extends i.IntegerObject{constructor(e){super(a,"startPage",0,(e=>!0))}}class pt extends i.OptionObject{constructor(e){super(a,"submitFormat",["html","delegate","fdf","xml","pdf"])}}class ft extends i.StringObject{constructor(e){super(a,"submitUrl")}}class gt extends i.IntegerObject{constructor(e){super(a,"subsetBelow",100,(e=>e>=0&&e<=100))}}class mt extends i.Option01{constructor(e){super(a,"suppressBanner")}}class yt extends i.Option01{constructor(e){super(a,"tagged")}}class vt extends i.XFAObject{constructor(e){super(a,"template",!0),this.base=null,this.relevant=null,this.startPage=null,this.uri=null,this.xsl=null}}class _t extends i.OptionObject{constructor(e){super(a,"threshold",["trace","error","information","warning"])}}class bt extends i.OptionObject{constructor(e){super(a,"to",["null","memory","stderr","stdout","system","uri"])}}class xt extends i.XFAObject{constructor(e){super(a,"templateCache"),this.maxEntries=(0,o.getInteger)({data:e.maxEntries,defaultValue:5,validate:e=>e>=0})}}class St extends i.XFAObject{constructor(e){super(a,"trace",!0),this.area=new i.XFAObjectArray}}class wt extends i.XFAObject{constructor(e){super(a,"transform",!0),this.groupParent=null,this.ifEmpty=null,this.nameAttr=null,this.picture=null,this.presence=null,this.rename=null,this.whitespace=null}}class Et extends i.OptionObject{constructor(e){super(a,"type",["none","ascii85","asciiHex","ccittfax","flate","lzw","runLength","native","xdp","mergedXDP"])}}class Pt extends i.StringObject{constructor(e){super(a,"uri")}}class Ct extends i.OptionObject{constructor(e){super(a,"validate",["preSubmit","prePrint","preExecute","preSave"])}}class At extends i.ContentObject{constructor(e){super(a,"validateApprovalSignatures")}[i.$finalize](){this[i.$content]=this[i.$content].trim().split(/\s+/).filter((e=>["docReady","postSign"].includes(e)))}}class kt extends i.OptionObject{constructor(e){super(a,"validationMessaging",["allMessagesIndividually","allMessagesTogether","firstMessageOnly","noMessages"])}}class jt extends i.OptionObject{constructor(e){super(a,"version",["1.7","1.6","1.5","1.4","1.3","1.2"])}}class It extends i.XFAObject{constructor(e){super(a,"VersionControl"),this.outputBelow=(0,o.getStringOption)(e.outputBelow,["warn","error","update"]),this.sourceAbove=(0,o.getStringOption)(e.sourceAbove,["warn","error"]),this.sourceBelow=(0,o.getStringOption)(e.sourceBelow,["update","maintain"])}}class Gt extends i.XFAObject{constructor(e){super(a,"viewerPreferences",!0),this.ADBE_JSConsole=null,this.ADBE_JSDebugger=null,this.addViewerPreferences=null,this.duplexOption=null,this.enforce=null,this.numberOfCopies=null,this.pageRange=null,this.pickTrayByPDFSize=null,this.printScaling=null}}class Tt extends i.XFAObject{constructor(e){super(a,"webClient",!0),this.name=e.name?e.name.trim():"",this.fontInfo=null,this.xdc=null}}class Mt extends i.OptionObject{constructor(e){super(a,"whitespace",["preserve","ltrim","normalize","rtrim","trim"])}}class Ot extends i.ContentObject{constructor(e){super(a,"window")}[i.$finalize](){const e=this[i.$content].trim().split(/\s*,\s*/,2).map((e=>parseInt(e,10)));e.some((e=>isNaN(e)))?this[i.$content]=[0,0]:(1===e.length&&e.push(e[0]),this[i.$content]=e)}}class Rt extends i.XFAObject{constructor(e){super(a,"xdc",!0),this.uri=new i.XFAObjectArray,this.xsl=new i.XFAObjectArray}}class Dt extends i.XFAObject{constructor(e){super(a,"xdp",!0),this.packets=null}}class Nt extends i.XFAObject{constructor(e){super(a,"xsl",!0),this.debug=null,this.uri=null}}class Lt extends i.XFAObject{constructor(e){super(a,"zpl",!0),this.name=e.name?e.name.trim():"",this.batchOutput=null,this.flipLabel=null,this.fontInfo=null,this.xdc=null}}class Vt{static[r.$buildXFAObject](e,t){if(Vt.hasOwnProperty(e))return Vt[e](t)}static acrobat(e){return new l(e)}static acrobat7(e){return new c(e)}static ADBE_JSConsole(e){return new u(e)}static ADBE_JSDebugger(e){return new d(e)}static addSilentPrint(e){return new h(e)}static addViewerPreferences(e){return new p(e)}static adjustData(e){return new f(e)}static adobeExtensionLevel(e){return new g(e)}static agent(e){return new m(e)}static alwaysEmbed(e){return new y(e)}static amd(e){return new v(e)}static area(e){return new _(e)}static attributes(e){return new b(e)}static autoSave(e){return new x(e)}static base(e){return new S(e)}static batchOutput(e){return new w(e)}static behaviorOverride(e){return new E(e)}static cache(e){return new P(e)}static change(e){return new C(e)}static common(e){return new A(e)}static compress(e){return new k(e)}static compressLogicalStructure(e){return new j(e)}static compressObjectStream(e){return new I(e)}static compression(e){return new G(e)}static config(e){return new T(e)}static conformance(e){return new M(e)}static contentCopy(e){return new O(e)}static copies(e){return new R(e)}static creator(e){return new D(e)}static currentPage(e){return new N(e)}static data(e){return new L(e)}static debug(e){return new V(e)}static defaultTypeface(e){return new F(e)}static destination(e){return new z(e)}static documentAssembly(e){return new B(e)}static driver(e){return new U(e)}static duplexOption(e){return new W(e)}static dynamicRender(e){return new H(e)}static embed(e){return new q(e)}static encrypt(e){return new X(e)}static encryption(e){return new Y(e)}static encryptionLevel(e){return new K(e)}static enforce(e){return new Z(e)}static equate(e){return new $(e)}static equateRange(e){return new J(e)}static exclude(e){return new Q(e)}static excludeNS(e){return new ee(e)}static flipLabel(e){return new te(e)}static fontInfo(e){return new ne(e)}static formFieldFilling(e){return new re(e)}static groupParent(e){return new ie(e)}static ifEmpty(e){return new oe(e)}static includeXDPContent(e){return new se(e)}static incrementalLoad(e){return new ae(e)}static incrementalMerge(e){return new le(e)}static interactive(e){return new ce(e)}static jog(e){return new ue(e)}static labelPrinter(e){return new de(e)}static layout(e){return new he(e)}static level(e){return new pe(e)}static linearized(e){return new fe(e)}static locale(e){return new ge(e)}static localeSet(e){return new me(e)}static log(e){return new ye(e)}static map(e){return new ve(e)}static mediumInfo(e){return new _e(e)}static message(e){return new be(e)}static messaging(e){return new xe(e)}static mode(e){return new Se(e)}static modifyAnnots(e){return new we(e)}static msgId(e){return new Ee(e)}static nameAttr(e){return new Pe(e)}static neverEmbed(e){return new Ce(e)}static numberOfCopies(e){return new Ae(e)}static openAction(e){return new ke(e)}static output(e){return new je(e)}static outputBin(e){return new Ie(e)}static outputXSL(e){return new Ge(e)}static overprint(e){return new Te(e)}static packets(e){return new Me(e)}static pageOffset(e){return new Oe(e)}static pageRange(e){return new Re(e)}static pagination(e){return new De(e)}static paginationOverride(e){return new Ne(e)}static part(e){return new Le(e)}static pcl(e){return new Ve(e)}static pdf(e){return new Fe(e)}static pdfa(e){return new ze(e)}static permissions(e){return new Be(e)}static pickTrayByPDFSize(e){return new Ue(e)}static picture(e){return new We(e)}static plaintextMetadata(e){return new He(e)}static presence(e){return new qe(e)}static present(e){return new Xe(e)}static print(e){return new Ye(e)}static printHighQuality(e){return new Ke(e)}static printScaling(e){return new Ze(e)}static printerName(e){return new $e(e)}static producer(e){return new Je(e)}static ps(e){return new Qe(e)}static range(e){return new et(e)}static record(e){return new tt(e)}static relevant(e){return new nt(e)}static rename(e){return new rt(e)}static renderPolicy(e){return new it(e)}static runScripts(e){return new ot(e)}static script(e){return new st(e)}static scriptModel(e){return new at(e)}static severity(e){return new lt(e)}static silentPrint(e){return new ct(e)}static staple(e){return new ut(e)}static startNode(e){return new dt(e)}static startPage(e){return new ht(e)}static submitFormat(e){return new pt(e)}static submitUrl(e){return new ft(e)}static subsetBelow(e){return new gt(e)}static suppressBanner(e){return new mt(e)}static tagged(e){return new yt(e)}static template(e){return new vt(e)}static templateCache(e){return new xt(e)}static threshold(e){return new _t(e)}static to(e){return new bt(e)}static trace(e){return new St(e)}static transform(e){return new wt(e)}static type(e){return new Et(e)}static uri(e){return new Pt(e)}static validate(e){return new Ct(e)}static validateApprovalSignatures(e){return new At(e)}static validationMessaging(e){return new kt(e)}static version(e){return new jt(e)}static versionControl(e){return new It(e)}static viewerPreferences(e){return new Gt(e)}static webClient(e){return new Tt(e)}static whitespace(e){return new Mt(e)}static window(e){return new Ot(e)}static xdc(e){return new Rt(e)}static xdp(e){return new Dt(e)}static xsl(e){return new Nt(e)}static zpl(e){return new Lt(e)}}t.ConfigNamespace=Vt},(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.ConnectionSetNamespace=void 0;var r=n(77),i=n(75);const o=r.NamespaceIds.connectionSet.id;class s extends i.XFAObject{constructor(e){super(o,"connectionSet",!0),this.wsdlConnection=new i.XFAObjectArray,this.xmlConnection=new i.XFAObjectArray,this.xsdConnection=new i.XFAObjectArray}}class a extends i.XFAObject{constructor(e){super(o,"effectiveInputPolicy"),this.id=e.id||"",this.name=e.name||"",this.use=e.use||"",this.usehref=e.usehref||""}}class l extends i.XFAObject{constructor(e){super(o,"effectiveOutputPolicy"),this.id=e.id||"",this.name=e.name||"",this.use=e.use||"",this.usehref=e.usehref||""}}class c extends i.StringObject{constructor(e){super(o,"operation"),this.id=e.id||"",this.input=e.input||"",this.name=e.name||"",this.output=e.output||"",this.use=e.use||"",this.usehref=e.usehref||""}}class u extends i.StringObject{constructor(e){super(o,"rootElement"),this.id=e.id||"",this.name=e.name||"",this.use=e.use||"",this.usehref=e.usehref||""}}class d extends i.StringObject{constructor(e){super(o,"soapAction"),this.id=e.id||"",this.name=e.name||"",this.use=e.use||"",this.usehref=e.usehref||""}}class h extends i.StringObject{constructor(e){super(o,"soapAddress"),this.id=e.id||"",this.name=e.name||"",this.use=e.use||"",this.usehref=e.usehref||""}}class p extends i.StringObject{constructor(e){super(o,"uri"),this.id=e.id||"",this.name=e.name||"",this.use=e.use||"",this.usehref=e.usehref||""}}class f extends i.StringObject{constructor(e){super(o,"wsdlAddress"),this.id=e.id||"",this.name=e.name||"",this.use=e.use||"",this.usehref=e.usehref||""}}class g extends i.XFAObject{constructor(e){super(o,"wsdlConnection",!0),this.dataDescription=e.dataDescription||"",this.name=e.name||"",this.effectiveInputPolicy=null,this.effectiveOutputPolicy=null,this.operation=null,this.soapAction=null,this.soapAddress=null,this.wsdlAddress=null}}class m extends i.XFAObject{constructor(e){super(o,"xmlConnection",!0),this.dataDescription=e.dataDescription||"",this.name=e.name||"",this.uri=null}}class y extends i.XFAObject{constructor(e){super(o,"xsdConnection",!0),this.dataDescription=e.dataDescription||"",this.name=e.name||"",this.rootElement=null,this.uri=null}}class v{static[r.$buildXFAObject](e,t){if(v.hasOwnProperty(e))return v[e](t)}static connectionSet(e){return new s(e)}static effectiveInputPolicy(e){return new a(e)}static effectiveOutputPolicy(e){return new l(e)}static operation(e){return new c(e)}static rootElement(e){return new u(e)}static soapAction(e){return new d(e)}static soapAddress(e){return new h(e)}static uri(e){return new p(e)}static wsdlAddress(e){return new f(e)}static wsdlConnection(e){return new g(e)}static xmlConnection(e){return new m(e)}static xsdConnection(e){return new y(e)}}t.ConnectionSetNamespace=v},(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.DatasetsNamespace=void 0;var r=n(75),i=n(77);const o=i.NamespaceIds.datasets.id;class s extends r.XmlObject{constructor(e){super(o,"data",e)}[r.$isNsAgnostic](){return!0}}class a extends r.XFAObject{constructor(e){super(o,"datasets",!0),this.data=null,this.Signature=null}[r.$onChild](e){const t=e[r.$nodeName];("data"===t&&e[r.$namespaceId]===o||"Signature"===t&&e[r.$namespaceId]===i.NamespaceIds.signature.id)&&(this[t]=e),this[r.$appendChild](e)}}class l{static[i.$buildXFAObject](e,t){if(l.hasOwnProperty(e))return l[e](t)}static datasets(e){return new a(e)}static data(e){return new s(e)}}t.DatasetsNamespace=l},(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.LocaleSetNamespace=void 0;var r=n(77),i=n(75),o=n(76);const s=r.NamespaceIds.localeSet.id;class a extends i.XFAObject{constructor(e){super(s,"calendarSymbols",!0),this.name="gregorian",this.dayNames=new i.XFAObjectArray(2),this.eraNames=null,this.meridiemNames=null,this.monthNames=new i.XFAObjectArray(2)}}class l extends i.StringObject{constructor(e){super(s,"currencySymbol"),this.name=(0,o.getStringOption)(e.name,["symbol","isoname","decimal"])}}class c extends i.XFAObject{constructor(e){super(s,"currencySymbols",!0),this.currencySymbol=new i.XFAObjectArray(3)}}class u extends i.StringObject{constructor(e){super(s,"datePattern"),this.name=(0,o.getStringOption)(e.name,["full","long","med","short"])}}class d extends i.XFAObject{constructor(e){super(s,"datePatterns",!0),this.datePattern=new i.XFAObjectArray(4)}}class h extends i.ContentObject{constructor(e){super(s,"dateTimeSymbols")}}class p extends i.StringObject{constructor(e){super(s,"day")}}class f extends i.XFAObject{constructor(e){super(s,"dayNames",!0),this.abbr=(0,o.getInteger)({data:e.abbr,defaultValue:0,validate:e=>1===e}),this.day=new i.XFAObjectArray(7)}}class g extends i.StringObject{constructor(e){super(s,"era")}}class m extends i.XFAObject{constructor(e){super(s,"eraNames",!0),this.era=new i.XFAObjectArray(2)}}class y extends i.XFAObject{constructor(e){super(s,"locale",!0),this.desc=e.desc||"",this.name="isoname",this.calendarSymbols=null,this.currencySymbols=null,this.datePatterns=null,this.dateTimeSymbols=null,this.numberPatterns=null,this.numberSymbols=null,this.timePatterns=null,this.typeFaces=null}}class v extends i.XFAObject{constructor(e){super(s,"localeSet",!0),this.locale=new i.XFAObjectArray}}class _ extends i.StringObject{constructor(e){super(s,"meridiem")}}class b extends i.XFAObject{constructor(e){super(s,"meridiemNames",!0),this.meridiem=new i.XFAObjectArray(2)}}class x extends i.StringObject{constructor(e){super(s,"month")}}class S extends i.XFAObject{constructor(e){super(s,"monthNames",!0),this.abbr=(0,o.getInteger)({data:e.abbr,defaultValue:0,validate:e=>1===e}),this.month=new i.XFAObjectArray(12)}}class w extends i.StringObject{constructor(e){super(s,"numberPattern"),this.name=(0,o.getStringOption)(e.name,["full","long","med","short"])}}class E extends i.XFAObject{constructor(e){super(s,"numberPatterns",!0),this.numberPattern=new i.XFAObjectArray(4)}}class P extends i.StringObject{constructor(e){super(s,"numberSymbol"),this.name=(0,o.getStringOption)(e.name,["decimal","grouping","percent","minus","zero"])}}class C extends i.XFAObject{constructor(e){super(s,"numberSymbols",!0),this.numberSymbol=new i.XFAObjectArray(5)}}class A extends i.StringObject{constructor(e){super(s,"timePattern"),this.name=(0,o.getStringOption)(e.name,["full","long","med","short"])}}class k extends i.XFAObject{constructor(e){super(s,"timePatterns",!0),this.timePattern=new i.XFAObjectArray(4)}}class j extends i.XFAObject{constructor(e){super(s,"typeFace",!0),this.name=""|e.name}}class I extends i.XFAObject{constructor(e){super(s,"typeFaces",!0),this.typeFace=new i.XFAObjectArray}}class G{static[r.$buildXFAObject](e,t){if(G.hasOwnProperty(e))return G[e](t)}static calendarSymbols(e){return new a(e)}static currencySymbol(e){return new l(e)}static currencySymbols(e){return new c(e)}static datePattern(e){return new u(e)}static datePatterns(e){return new d(e)}static dateTimeSymbols(e){return new h(e)}static day(e){return new p(e)}static dayNames(e){return new f(e)}static era(e){return new g(e)}static eraNames(e){return new m(e)}static locale(e){return new y(e)}static localeSet(e){return new v(e)}static meridiem(e){return new _(e)}static meridiemNames(e){return new b(e)}static month(e){return new x(e)}static monthNames(e){return new S(e)}static numberPattern(e){return new w(e)}static numberPatterns(e){return new E(e)}static numberSymbol(e){return new P(e)}static numberSymbols(e){return new C(e)}static timePattern(e){return new A(e)}static timePatterns(e){return new k(e)}static typeFace(e){return new j(e)}static typeFaces(e){return new I(e)}}t.LocaleSetNamespace=G},(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.SignatureNamespace=void 0;var r=n(77),i=n(75);const o=r.NamespaceIds.signature.id;class s extends i.XFAObject{constructor(e){super(o,"signature",!0)}}class a{static[r.$buildXFAObject](e,t){if(a.hasOwnProperty(e))return a[e](t)}static signature(e){return new s(e)}}t.SignatureNamespace=a},(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.StylesheetNamespace=void 0;var r=n(77),i=n(75);const o=r.NamespaceIds.stylesheet.id;class s extends i.XFAObject{constructor(e){super(o,"stylesheet",!0)}}class a{static[r.$buildXFAObject](e,t){if(a.hasOwnProperty(e))return a[e](t)}static stylesheet(e){return new s(e)}}t.StylesheetNamespace=a},(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.XdpNamespace=void 0;var r=n(77),i=n(75);const o=r.NamespaceIds.xdp.id;class s extends i.XFAObject{constructor(e){super(o,"xdp",!0),this.uuid=e.uuid||"",this.timeStamp=e.timeStamp||"",this.config=null,this.connectionSet=null,this.datasets=null,this.localeSet=null,this.stylesheet=new i.XFAObjectArray,this.template=null}[i.$onChildCheck](e){const t=r.NamespaceIds[e[i.$nodeName]];return t&&e[i.$namespaceId]===t.id}}class a{static[r.$buildXFAObject](e,t){if(a.hasOwnProperty(e))return a[e](t)}static xdp(e){return new s(e)}}t.XdpNamespace=a},(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.XhtmlNamespace=void 0;var r=n(75),i=n(77),o=n(82),s=n(76);const a=i.NamespaceIds.xhtml.id,l=Symbol(),c=new Set(["color","font","font-family","font-size","font-stretch","font-style","font-weight","margin","margin-bottom","margin-left","margin-right","margin-top","letter-spacing","line-height","orphans","page-break-after","page-break-before","page-break-inside","tab-interval","tab-stop","text-align","text-decoration","text-indent","vertical-align","widows","kerning-mode","xfa-font-horizontal-scale","xfa-font-vertical-scale","xfa-spacerun","xfa-tab-stops"]),u=new Map([["page-break-after","breakAfter"],["page-break-before","breakBefore"],["page-break-inside","breakInside"],["kerning-mode",e=>"none"===e?"none":"normal"],["xfa-font-horizontal-scale",e=>"scaleX(".concat(Math.max(0,Math.min(parseInt(e)/100)).toFixed(2),")")],["xfa-font-vertical-scale",e=>"scaleY(".concat(Math.max(0,Math.min(parseInt(e)/100)).toFixed(2),")")],["xfa-spacerun",""],["xfa-tab-stops",""],["font-size",(e,t)=>(e=t.fontSize=(0,s.getMeasurement)(e),(0,o.measureToString)(.99*e))],["letter-spacing",e=>(0,o.measureToString)((0,s.getMeasurement)(e))],["line-height",e=>(0,o.measureToString)((0,s.getMeasurement)(e))],["margin",e=>(0,o.measureToString)((0,s.getMeasurement)(e))],["margin-bottom",e=>(0,o.measureToString)((0,s.getMeasurement)(e))],["margin-left",e=>(0,o.measureToString)((0,s.getMeasurement)(e))],["margin-right",e=>(0,o.measureToString)((0,s.getMeasurement)(e))],["margin-top",e=>(0,o.measureToString)((0,s.getMeasurement)(e))],["text-indent",e=>(0,o.measureToString)((0,s.getMeasurement)(e))],["font-family",e=>e],["vertical-align",e=>(0,o.measureToString)((0,s.getMeasurement)(e))]]),d=/\s+/g,h=/[\r\n]+/g,p=/\r\n?/g;function f(e,t,n){const i=Object.create(null);if(!e)return i;const a=Object.create(null);for(const[r,o]of e.split(";").map((e=>e.split(":",2)))){const e=u.get(r);if(""===e)continue;let t=o;e&&(t="string"===typeof e?e:e(o,a)),r.endsWith("scale")?i.transform?i.transform="".concat(i[r]," ").concat(t):i.transform=t:i[r.replaceAll(/-([a-zA-Z])/g,((e,t)=>t.toUpperCase()))]=t}if(i.fontFamily&&(0,o.setFontFamily)({typeface:i.fontFamily,weight:i.fontWeight||"normal",posture:i.fontStyle||"normal",size:a.fontSize||0},t,t[r.$globalData].fontFinder,i),n&&i.verticalAlign&&"0px"!==i.verticalAlign&&i.fontSize){const e=.583,t=.333,n=(0,s.getMeasurement)(i.fontSize);i.fontSize=(0,o.measureToString)(n*e),i.verticalAlign=(0,o.measureToString)(Math.sign((0,s.getMeasurement)(i.verticalAlign))*n*t)}return n&&i.fontSize&&(i.fontSize="calc(".concat(i.fontSize," * var(--scale-factor))")),(0,o.fixTextIndent)(i),i}const g=new Set(["body","html"]);class m extends r.XmlObject{constructor(e,t){super(a,t),this[l]=!1,this.style=e.style||""}[r.$clean](e){var t;super[r.$clean](e),this.style=(t=this).style?t.style.trim().split(/\s*;\s*/).filter((e=>!!e)).map((e=>e.split(/\s*:\s*/,2))).filter((e=>{let[n,i]=e;return"font-family"===n&&t[r.$globalData].usedTypefaces.add(i),c.has(n)})).map((e=>e.join(":"))).join(";"):""}[r.$acceptWhitespace](){return!g.has(this[r.$nodeName])}[r.$onText](e){arguments.length>1&&void 0!==arguments[1]&&arguments[1]?this[l]=!0:(e=e.replace(h,""),this.style.includes("xfa-spacerun:yes")||(e=e.replace(d," "))),e&&(this[r.$content]+=e)}[r.$pushGlyphs](e){let t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];const n=Object.create(null),i={top:NaN,bottom:NaN,left:NaN,right:NaN};let o=null;for(const[r,a]of this.style.split(";").map((e=>e.split(":",2))))switch(r){case"font-family":n.typeface=(0,s.stripQuotes)(a);break;case"font-size":n.size=(0,s.getMeasurement)(a);break;case"font-weight":n.weight=a;break;case"font-style":n.posture=a;break;case"letter-spacing":n.letterSpacing=(0,s.getMeasurement)(a);break;case"margin":const e=a.split(/ \t/).map((e=>(0,s.getMeasurement)(e)));switch(e.length){case 1:i.top=i.bottom=i.left=i.right=e[0];break;case 2:i.top=i.bottom=e[0],i.left=i.right=e[1];break;case 3:i.top=e[0],i.bottom=e[2],i.left=i.right=e[1];break;case 4:i.top=e[0],i.left=e[1],i.bottom=e[2],i.right=e[3]}break;case"margin-top":i.top=(0,s.getMeasurement)(a);break;case"margin-bottom":i.bottom=(0,s.getMeasurement)(a);break;case"margin-left":i.left=(0,s.getMeasurement)(a);break;case"margin-right":i.right=(0,s.getMeasurement)(a);break;case"line-height":o=(0,s.getMeasurement)(a)}if(e.pushData(n,i,o),this[r.$content])e.addString(this[r.$content]);else for(const s of this[r.$getChildren]())"#text"!==s[r.$nodeName]?s[r.$pushGlyphs](e):e.addString(s[r.$content]);t&&e.popFont()}[r.$toHTML](e){const t=[];if(this[r.$extra]={children:t},this[r.$childrenToHTML]({}),0===t.length&&!this[r.$content])return s.HTMLResult.EMPTY;let n;return n=this[l]?this[r.$content]?this[r.$content].replace(p,"\n"):void 0:this[r.$content]||void 0,s.HTMLResult.success({name:this[r.$nodeName],attributes:{href:this.href,style:f(this.style,this,this[l])},children:t,value:n})}}class y extends m{constructor(e){super(e,"a"),this.href=(0,o.fixURL)(e.href)||""}}class v extends m{constructor(e){super(e,"b")}[r.$pushGlyphs](e){e.pushFont({weight:"bold"}),super[r.$pushGlyphs](e),e.popFont()}}class _ extends m{constructor(e){super(e,"body")}[r.$toHTML](e){const t=super[r.$toHTML](e),{html:n}=t;return n?(n.name="div",n.attributes.class=["xfaRich"],t):s.HTMLResult.EMPTY}}class b extends m{constructor(e){super(e,"br")}[r.$text](){return"\n"}[r.$pushGlyphs](e){e.addString("\n")}[r.$toHTML](e){return s.HTMLResult.success({name:"br"})}}class x extends m{constructor(e){super(e,"html")}[r.$toHTML](e){const t=[];if(this[r.$extra]={children:t},this[r.$childrenToHTML]({}),0===t.length)return s.HTMLResult.success({name:"div",attributes:{class:["xfaRich"],style:{}},value:this[r.$content]||""});if(1===t.length){const e=t[0];if(e.attributes&&e.attributes.class.includes("xfaRich"))return s.HTMLResult.success(e)}return s.HTMLResult.success({name:"div",attributes:{class:["xfaRich"],style:{}},children:t})}}class S extends m{constructor(e){super(e,"i")}[r.$pushGlyphs](e){e.pushFont({posture:"italic"}),super[r.$pushGlyphs](e),e.popFont()}}class w extends m{constructor(e){super(e,"li")}}class E extends m{constructor(e){super(e,"ol")}}class P extends m{constructor(e){super(e,"p")}[r.$pushGlyphs](e){super[r.$pushGlyphs](e,!1),e.addString("\n"),e.addPara(),e.popFont()}[r.$text](){return this[r.$getParent]()[r.$getChildren]().at(-1)===this?super[r.$text]():super[r.$text]()+"\n"}}class C extends m{constructor(e){super(e,"span")}}class A extends m{constructor(e){super(e,"sub")}}class k extends m{constructor(e){super(e,"sup")}}class j extends m{constructor(e){super(e,"ul")}}class I{static[i.$buildXFAObject](e,t){if(I.hasOwnProperty(e))return I[e](t)}static a(e){return new y(e)}static b(e){return new v(e)}static body(e){return new _(e)}static br(e){return new b(e)}static html(e){return new x(e)}static i(e){return new S(e)}static li(e){return new w(e)}static ol(e){return new E(e)}static p(e){return new P(e)}static span(e){return new C(e)}static sub(e){return new A(e)}static sup(e){return new k(e)}static ul(e){return new j(e)}}t.XhtmlNamespace=I},(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.UnknownNamespace=void 0;var r=n(77),i=n(75);class o{constructor(e){this.namespaceId=e}[r.$buildXFAObject](e,t){return new i.XmlObject(this.namespaceId,e,t)}}t.UnknownNamespace=o},(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.DatasetReader=void 0;var r=n(2),i=n(4),o=n(64);function s(e){try{return(0,r.stringToUTF8String)(e)}catch(t){return(0,r.warn)('UTF-8 decoding failed: "'.concat(t,'".')),e}}class a extends o.SimpleXMLParser{constructor(e){super(e),this.node=null}onEndElement(e){const t=super.onEndElement(e);if(t&&"xfa:datasets"===e)throw this.node=t,new Error("Aborting DatasetXMLParser.")}}t.DatasetReader=class{constructor(e){if(e.datasets)this.node=new o.SimpleXMLParser({hasAttributes:!0}).parseFromString(e.datasets).documentElement;else{const n=new a({hasAttributes:!0});try{n.parseFromString(e["xdp:xdp"])}catch(t){}this.node=n.node}}getValue(e){if(!this.node||!e)return"";const t=this.node.searchNode((0,i.parseXFAPath)(e),0);if(!t)return"";const n=t.firstChild;return n&&"value"===n.nodeName?t.children.map((e=>s(e.textContent))):s(t.textContent)}}},(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.XRef=void 0;var r=n(2),i=n(3),o=n(15),s=n(4),a=n(5),l=n(65);t.XRef=class{constructor(e,t){this.stream=e,this.pdfManager=t,this.entries=[],this.xrefstms=Object.create(null),this._cacheMap=new Map,this._pendingRefs=new i.RefSet,this._newPersistentRefNum=null,this._newTemporaryRefNum=null}getNewPersistentRef(e){null===this._newPersistentRefNum&&(this._newPersistentRefNum=this.entries.length||1);const t=this._newPersistentRefNum++;return this._cacheMap.set(t,e),i.Ref.get(t,0)}getNewTemporaryRef(){return null===this._newTemporaryRefNum&&(this._newTemporaryRefNum=this.entries.length||1),i.Ref.get(this._newTemporaryRefNum++,0)}resetNewTemporaryRef(){this._newTemporaryRefNum=null}setStartXRef(e){this.startXRefQueue=[e]}parse(){let e,t,n,o=arguments.length>0&&void 0!==arguments[0]&&arguments[0];o?((0,r.warn)("Indexing all PDF objects"),e=this.indexObjects()):e=this.readXRef(),e.assignXref(this),this.trailer=e;try{t=e.get("Encrypt")}catch(a){if(a instanceof s.MissingDataException)throw a;(0,r.warn)('XRef.parse - Invalid "Encrypt" reference: "'.concat(a,'".'))}if(t instanceof i.Dict){const n=e.get("ID"),r=n&&n.length?n[0]:"";t.suppressEncryption=!0,this.encrypt=new l.CipherTransformFactory(t,r,this.pdfManager.password)}try{n=e.get("Root")}catch(a){if(a instanceof s.MissingDataException)throw a;(0,r.warn)('XRef.parse - Invalid "Root" reference: "'.concat(a,'".'))}if(n instanceof i.Dict)try{if(n.get("Pages")instanceof i.Dict)return void(this.root=n)}catch(a){if(a instanceof s.MissingDataException)throw a;(0,r.warn)('XRef.parse - Invalid "Pages" reference: "'.concat(a,'".'))}if(!o)throw new s.XRefParseException;throw new r.InvalidPDFException("Invalid Root reference.")}processXRefTable(e){"tableState"in this||(this.tableState={entryNum:0,streamPos:e.lexer.stream.pos,parserBuf1:e.buf1,parserBuf2:e.buf2});const t=this.readXRefTable(e);if(!(0,i.isCmd)(t,"trailer"))throw new r.FormatError("Invalid XRef table: could not find trailer dictionary");let n=e.getObj();if(n instanceof i.Dict||!n.dict||(n=n.dict),!(n instanceof i.Dict))throw new r.FormatError("Invalid XRef table: could not parse trailer dictionary");return delete this.tableState,n}readXRefTable(e){const t=e.lexer.stream,n=this.tableState;let o;for(t.pos=n.streamPos,e.buf1=n.parserBuf1,e.buf2=n.parserBuf2;;){if(!("firstEntryNum"in n)||!("entryCount"in n)){if((0,i.isCmd)(o=e.getObj(),"trailer"))break;n.firstEntryNum=o,n.entryCount=e.getObj()}let s=n.firstEntryNum;const a=n.entryCount;if(!Number.isInteger(s)||!Number.isInteger(a))throw new r.FormatError("Invalid XRef table: wrong types in subsection header");for(let o=n.entryNum;o<a;o++){n.streamPos=t.pos,n.entryNum=o,n.parserBuf1=e.buf1,n.parserBuf2=e.buf2;const l={};l.offset=e.getObj(),l.gen=e.getObj();const c=e.getObj();if(c instanceof i.Cmd)switch(c.cmd){case"f":l.free=!0;break;case"n":l.uncompressed=!0}if(!Number.isInteger(l.offset)||!Number.isInteger(l.gen)||!l.free&&!l.uncompressed)throw new r.FormatError("Invalid entry in XRef subsection: ".concat(s,", ").concat(a));0===o&&l.free&&1===s&&(s=0),this.entries[o+s]||(this.entries[o+s]=l)}n.entryNum=0,n.streamPos=t.pos,n.parserBuf1=e.buf1,n.parserBuf2=e.buf2,delete n.firstEntryNum,delete n.entryCount}if(this.entries[0]&&!this.entries[0].free)throw new r.FormatError("Invalid XRef table: unexpected first object");return o}processXRefStream(e){if(!("streamState"in this)){const t=e.dict,n=t.get("W");let r=t.get("Index");r||(r=[0,t.get("Size")]),this.streamState={entryRanges:r,byteWidths:n,entryNum:0,streamPos:e.pos}}return this.readXRefStream(e),delete this.streamState,e.dict}readXRefStream(e){const t=this.streamState;e.pos=t.streamPos;const[n,i,o]=t.byteWidths,s=t.entryRanges;for(;s.length>0;){const[a,l]=s;if(!Number.isInteger(a)||!Number.isInteger(l))throw new r.FormatError("Invalid XRef range fields: ".concat(a,", ").concat(l));if(!Number.isInteger(n)||!Number.isInteger(i)||!Number.isInteger(o))throw new r.FormatError("Invalid XRef entry fields length: ".concat(a,", ").concat(l));for(let s=t.entryNum;s<l;++s){t.entryNum=s,t.streamPos=e.pos;let l=0,c=0,u=0;for(let t=0;t<n;++t){const t=e.getByte();if(-1===t)throw new r.FormatError("Invalid XRef byteWidths 'type'.");l=l<<8|t}0===n&&(l=1);for(let t=0;t<i;++t){const t=e.getByte();if(-1===t)throw new r.FormatError("Invalid XRef byteWidths 'offset'.");c=c<<8|t}for(let t=0;t<o;++t){const t=e.getByte();if(-1===t)throw new r.FormatError("Invalid XRef byteWidths 'generation'.");u=u<<8|t}const d={};switch(d.offset=c,d.gen=u,l){case 0:d.free=!0;break;case 1:d.uncompressed=!0;break;case 2:break;default:throw new r.FormatError("Invalid XRef entry type: ".concat(l))}this.entries[a+s]||(this.entries[a+s]=d)}t.entryNum=0,t.streamPos=e.pos,s.splice(0,2)}}indexObjects(){function e(e,t){let n="",r=e[t];for(;10!==r&&13!==r&&60!==r&&!(++t>=e.length);)n+=String.fromCharCode(r),r=e[t];return n}function t(e,t,n){const r=n.length,i=e.length;let o=0;for(;t<i;){let i=0;for(;i<r&&e[t+i]===n[i];)++i;if(i>=r)break;t++,o++}return o}const n=/\b(endobj|\d+\s+\d+\s+obj|xref|trailer)\b/g,a=/\b(startxref|\d+\s+\d+\s+obj)\b/g,l=/^(\d+)\s+(\d+)\s+obj\b/,c=new Uint8Array([116,114,97,105,108,101,114]),u=new Uint8Array([115,116,97,114,116,120,114,101,102]),d=new Uint8Array([47,88,82,101,102]);this.entries.length=0,this._cacheMap.clear();const h=this.stream;h.pos=0;const p=h.getBytes(),f=(0,r.bytesToString)(p),g=p.length;let m=h.start;const y=[],v=[];for(;m<g;){let i=p[m];if(9===i||10===i||13===i||32===i){++m;continue}if(37===i){do{if(++m,m>=g)break;i=p[m]}while(10!==i&&13!==i);continue}const _=e(p,m);let b;if(_.startsWith("xref")&&(4===_.length||/\s/.test(_[4])))m+=t(p,m,c),y.push(m),m+=t(p,m,u);else if(b=l.exec(_)){const e=0|b[1],i=0|b[2],a=m+_.length;let l,c=!1;if(this.entries[e]){if(this.entries[e].gen===i)try{new o.Parser({lexer:new o.Lexer(h.makeSubStream(a))}).getObj(),c=!0}catch(w){w instanceof s.ParserEOFException?(0,r.warn)("indexObjects -- checking object (".concat(_,'): "').concat(w,'".')):c=!0}}else c=!0;c&&(this.entries[e]={offset:m-h.start,gen:i,uncompressed:!0}),n.lastIndex=a;const u=n.exec(f);u?(l=n.lastIndex+1-m,"endobj"!==u[1]&&((0,r.warn)('indexObjects: Found "'.concat(u[1],'" inside of another "obj", ')+'caused by missing "endobj" -- trying to recover.'),l-=u[1].length+1)):l=g-m;const y=p.subarray(m,m+l),x=t(y,0,d);x<l&&y[x+5]<64&&(v.push(m-h.start),this.xrefstms[m-h.start]=1),m+=l}else if(_.startsWith("trailer")&&(7===_.length||/\s/.test(_[7]))){y.push(m);const e=m+_.length;let t;a.lastIndex=e;const n=a.exec(f);n?(t=a.lastIndex+1-m,"startxref"!==n[1]&&((0,r.warn)('indexObjects: Found "'.concat(n[1],'" after "trailer", ')+'caused by missing "startxref" -- trying to recover.'),t-=n[1].length+1)):t=g-m,m+=t}else m+=_.length+1}for(const r of v)this.startXRefQueue.push(r),this.readXRef(!0);const _=[];let b,x,S=!1;for(const r of y){h.pos=r;const e=new o.Parser({lexer:new o.Lexer(h),xref:this,allowStreams:!0,recoveryMode:!0}),t=e.getObj();if(!(0,i.isCmd)(t,"trailer"))continue;const n=e.getObj();n instanceof i.Dict&&(_.push(n),n.has("Encrypt")&&(S=!0))}for(const r of[..._,"genFallback",..._]){if("genFallback"===r){if(!x)break;this._generationFallback=!0;continue}let e=!1;try{const t=r.get("Root");if(!(t instanceof i.Dict))continue;const n=t.get("Pages");if(!(n instanceof i.Dict))continue;const o=n.get("Count");Number.isInteger(o)&&(e=!0)}catch(w){x=w;continue}if(e&&(!S||r.has("Encrypt"))&&r.has("ID"))return r;b=r}if(b)return b;if(this.topDict)return this.topDict;throw new r.InvalidPDFException("Invalid PDF structure.")}readXRef(){let e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];const t=this.stream,n=new Set;for(;this.startXRefQueue.length;){try{const e=this.startXRefQueue[0];if(n.has(e)){(0,r.warn)("readXRef - skipping XRef table since it was already parsed."),this.startXRefQueue.shift();continue}n.add(e),t.pos=e+t.start;const s=new o.Parser({lexer:new o.Lexer(t),xref:this,allowStreams:!0});let l,c=s.getObj();if((0,i.isCmd)(c,"xref")){if(l=this.processXRefTable(s),this.topDict||(this.topDict=l),c=l.get("XRefStm"),Number.isInteger(c)){const e=c;e in this.xrefstms||(this.xrefstms[e]=1,this.startXRefQueue.push(e))}}else{if(!Number.isInteger(c))throw new r.FormatError("Invalid XRef stream header");if(!Number.isInteger(s.getObj())||!(0,i.isCmd)(s.getObj(),"obj")||!((c=s.getObj())instanceof a.BaseStream))throw new r.FormatError("Invalid XRef stream");if(l=this.processXRefStream(c),this.topDict||(this.topDict=l),!l)throw new r.FormatError("Failed to read XRef stream")}c=l.get("Prev"),Number.isInteger(c)?this.startXRefQueue.push(c):c instanceof i.Ref&&this.startXRefQueue.push(c.num)}catch(l){if(l instanceof s.MissingDataException)throw l;(0,r.info)("(while reading XRef): "+l)}this.startXRefQueue.shift()}if(this.topDict)return this.topDict;if(!e)throw new s.XRefParseException}getEntry(e){const t=this.entries[e];return t&&!t.free&&t.offset?t:null}fetchIfRef(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return e instanceof i.Ref?this.fetch(e,t):e}fetch(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(!(e instanceof i.Ref))throw new Error("ref object is not a reference");const n=e.num,o=this._cacheMap.get(n);if(void 0!==o)return o instanceof i.Dict&&!o.objId&&(o.objId=e.toString()),o;let s=this.getEntry(n);if(null===s)return this._cacheMap.set(n,s),s;if(this._pendingRefs.has(e))return this._pendingRefs.remove(e),(0,r.warn)("Ignoring circular reference: ".concat(e,".")),i.CIRCULAR_REF;this._pendingRefs.put(e);try{s=s.uncompressed?this.fetchUncompressed(e,s,t):this.fetchCompressed(e,s,t),this._pendingRefs.remove(e)}catch(l){throw this._pendingRefs.remove(e),l}return s instanceof i.Dict?s.objId=e.toString():s instanceof a.BaseStream&&(s.dict.objId=e.toString()),s}fetchUncompressed(e,t){let n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];const l=e.gen;let c=e.num;if(t.gen!==l){const o="Inconsistent generation in XRef: ".concat(e);if(this._generationFallback&&t.gen<l)return(0,r.warn)(o),this.fetchUncompressed(i.Ref.get(c,t.gen),t,n);throw new s.XRefEntryException(o)}const u=this.stream.makeSubStream(t.offset+this.stream.start),d=new o.Parser({lexer:new o.Lexer(u),xref:this,allowStreams:!0}),h=d.getObj(),p=d.getObj(),f=d.getObj();if(h!==c||p!==l||!(f instanceof i.Cmd))throw new s.XRefEntryException("Bad (uncompressed) XRef entry: ".concat(e));if("obj"!==f.cmd){if(f.cmd.startsWith("obj")&&(c=parseInt(f.cmd.substring(3),10),!Number.isNaN(c)))return c;throw new s.XRefEntryException("Bad (uncompressed) XRef entry: ".concat(e))}return(t=this.encrypt&&!n?d.getObj(this.encrypt.createCipherTransform(c,l)):d.getObj())instanceof a.BaseStream||this._cacheMap.set(c,t),t}fetchCompressed(e,t){const n=t.offset,l=this.fetch(i.Ref.get(n,0));if(!(l instanceof a.BaseStream))throw new r.FormatError("bad ObjStm stream");const c=l.dict.get("First"),u=l.dict.get("N");if(!Number.isInteger(c)||!Number.isInteger(u))throw new r.FormatError("invalid first and n parameters for ObjStm stream");let d=new o.Parser({lexer:new o.Lexer(l),xref:this,allowStreams:!0});const h=new Array(u),p=new Array(u);for(let i=0;i<u;++i){const e=d.getObj();if(!Number.isInteger(e))throw new r.FormatError("invalid object number in the ObjStm stream: ".concat(e));const t=d.getObj();if(!Number.isInteger(t))throw new r.FormatError("invalid object offset in the ObjStm stream: ".concat(t));h[i]=e,p[i]=t}const f=(l.start||0)+c,g=new Array(u);for(let i=0;i<u;++i){const e=i<u-1?p[i+1]-p[i]:void 0;if(e<0)throw new r.FormatError("Invalid offset in the ObjStm stream.");d=new o.Parser({lexer:new o.Lexer(l.makeSubStream(f+p[i],e,l.dict)),xref:this,allowStreams:!0});const t=d.getObj();if(g[i]=t,t instanceof a.BaseStream)continue;const s=h[i],c=this.entries[s];c&&c.offset===n&&c.gen===i&&this._cacheMap.set(s,t)}if(void 0===(t=g[t.gen]))throw new s.XRefEntryException("Bad (compressed) XRef entry: ".concat(e));return t}async fetchIfRefAsync(e,t){return e instanceof i.Ref?this.fetchAsync(e,t):e}async fetchAsync(e,t){try{return this.fetch(e,t)}catch(n){if(!(n instanceof s.MissingDataException))throw n;return await this.pdfManager.requestRange(n.begin,n.end),this.fetchAsync(e,t)}}getCatalogObj(){return this.root}}},(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.isNodeJS=void 0;const n="object"===typeof process&&process+""==="[object process]"&&!process.versions.nw&&!(process.versions.electron&&process.type&&"browser"!==process.type);t.isNodeJS=n},(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.MessageHandler=void 0;var r=n(2);const i=1,o=2,s=1,a=2,l=3,c=4,u=5,d=6,h=7,p=8;function f(e){switch(e instanceof Error||"object"===typeof e&&null!==e||(0,r.unreachable)('wrapReason: Expected "reason" to be a (possibly cloned) Error.'),e.name){case"AbortException":return new r.AbortException(e.message);case"MissingPDFException":return new r.MissingPDFException(e.message);case"PasswordException":return new r.PasswordException(e.message,e.code);case"UnexpectedResponseException":return new r.UnexpectedResponseException(e.message,e.status);case"UnknownErrorException":return new r.UnknownErrorException(e.message,e.details);default:return new r.UnknownErrorException(e.message,e.toString())}}t.MessageHandler=class{constructor(e,t,n){this.sourceName=e,this.targetName=t,this.comObj=n,this.callbackId=1,this.streamId=1,this.streamSinks=Object.create(null),this.streamControllers=Object.create(null),this.callbackCapabilities=Object.create(null),this.actionHandler=Object.create(null),this._onComObjOnMessage=e=>{const t=e.data;if(t.targetName!==this.sourceName)return;if(t.stream)return void this._processStreamMessage(t);if(t.callback){const e=t.callbackId,n=this.callbackCapabilities[e];if(!n)throw new Error("Cannot resolve callback ".concat(e));if(delete this.callbackCapabilities[e],t.callback===i)n.resolve(t.data);else{if(t.callback!==o)throw new Error("Unexpected callback case");n.reject(f(t.reason))}return}const r=this.actionHandler[t.action];if(!r)throw new Error("Unknown action from worker: ".concat(t.action));if(t.callbackId){const e=this.sourceName,s=t.sourceName;new Promise((function(e){e(r(t.data))})).then((function(r){n.postMessage({sourceName:e,targetName:s,callback:i,callbackId:t.callbackId,data:r})}),(function(r){n.postMessage({sourceName:e,targetName:s,callback:o,callbackId:t.callbackId,reason:f(r)})}))}else t.streamId?this._createStreamSink(t):r(t.data)},n.addEventListener("message",this._onComObjOnMessage)}on(e,t){const n=this.actionHandler;if(n[e])throw new Error('There is already an actionName called "'.concat(e,'"'));n[e]=t}send(e,t,n){this.comObj.postMessage({sourceName:this.sourceName,targetName:this.targetName,action:e,data:t},n)}sendWithPromise(e,t,n){const i=this.callbackId++,o=(0,r.createPromiseCapability)();this.callbackCapabilities[i]=o;try{this.comObj.postMessage({sourceName:this.sourceName,targetName:this.targetName,action:e,callbackId:i,data:t},n)}catch(s){o.reject(s)}return o.promise}sendWithStream(e,t,n,i){const o=this.streamId++,a=this.sourceName,l=this.targetName,c=this.comObj;return new ReadableStream({start:n=>{const s=(0,r.createPromiseCapability)();return this.streamControllers[o]={controller:n,startCall:s,pullCall:null,cancelCall:null,isClosed:!1},c.postMessage({sourceName:a,targetName:l,action:e,streamId:o,data:t,desiredSize:n.desiredSize},i),s.promise},pull:e=>{const t=(0,r.createPromiseCapability)();return this.streamControllers[o].pullCall=t,c.postMessage({sourceName:a,targetName:l,stream:d,streamId:o,desiredSize:e.desiredSize}),t.promise},cancel:e=>{(0,r.assert)(e instanceof Error,"cancel must have a valid reason");const t=(0,r.createPromiseCapability)();return this.streamControllers[o].cancelCall=t,this.streamControllers[o].isClosed=!0,c.postMessage({sourceName:a,targetName:l,stream:s,streamId:o,reason:f(e)}),t.promise}},n)}_createStreamSink(e){const t=e.streamId,n=this.sourceName,i=e.sourceName,o=this.comObj,s=this,a=this.actionHandler[e.action],d={enqueue(e){let s=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1,a=arguments.length>2?arguments[2]:void 0;if(this.isCancelled)return;const l=this.desiredSize;this.desiredSize-=s,l>0&&this.desiredSize<=0&&(this.sinkCapability=(0,r.createPromiseCapability)(),this.ready=this.sinkCapability.promise),o.postMessage({sourceName:n,targetName:i,stream:c,streamId:t,chunk:e},a)},close(){this.isCancelled||(this.isCancelled=!0,o.postMessage({sourceName:n,targetName:i,stream:l,streamId:t}),delete s.streamSinks[t])},error(e){(0,r.assert)(e instanceof Error,"error must have a valid reason"),this.isCancelled||(this.isCancelled=!0,o.postMessage({sourceName:n,targetName:i,stream:u,streamId:t,reason:f(e)}))},sinkCapability:(0,r.createPromiseCapability)(),onPull:null,onCancel:null,isCancelled:!1,desiredSize:e.desiredSize,ready:null};d.sinkCapability.resolve(),d.ready=d.sinkCapability.promise,this.streamSinks[t]=d,new Promise((function(t){t(a(e.data,d))})).then((function(){o.postMessage({sourceName:n,targetName:i,stream:p,streamId:t,success:!0})}),(function(e){o.postMessage({sourceName:n,targetName:i,stream:p,streamId:t,reason:f(e)})}))}_processStreamMessage(e){const t=e.streamId,n=this.sourceName,i=e.sourceName,o=this.comObj,g=this.streamControllers[t],m=this.streamSinks[t];switch(e.stream){case p:e.success?g.startCall.resolve():g.startCall.reject(f(e.reason));break;case h:e.success?g.pullCall.resolve():g.pullCall.reject(f(e.reason));break;case d:if(!m){o.postMessage({sourceName:n,targetName:i,stream:h,streamId:t,success:!0});break}m.desiredSize<=0&&e.desiredSize>0&&m.sinkCapability.resolve(),m.desiredSize=e.desiredSize,new Promise((function(e){e(m.onPull&&m.onPull())})).then((function(){o.postMessage({sourceName:n,targetName:i,stream:h,streamId:t,success:!0})}),(function(e){o.postMessage({sourceName:n,targetName:i,stream:h,streamId:t,reason:f(e)})}));break;case c:if((0,r.assert)(g,"enqueue should have stream controller"),g.isClosed)break;g.controller.enqueue(e.chunk);break;case l:if((0,r.assert)(g,"close should have stream controller"),g.isClosed)break;g.isClosed=!0,g.controller.close(),this._deleteStreamController(g,t);break;case u:(0,r.assert)(g,"error should have stream controller"),g.controller.error(f(e.reason)),this._deleteStreamController(g,t);break;case a:e.success?g.cancelCall.resolve():g.cancelCall.reject(f(e.reason)),this._deleteStreamController(g,t);break;case s:if(!m)break;new Promise((function(t){t(m.onCancel&&m.onCancel(f(e.reason)))})).then((function(){o.postMessage({sourceName:n,targetName:i,stream:a,streamId:t,success:!0})}),(function(e){o.postMessage({sourceName:n,targetName:i,stream:a,streamId:t,reason:f(e)})})),m.sinkCapability.reject(f(e.reason)),m.isCancelled=!0,delete this.streamSinks[t];break;default:throw new Error("Unexpected stream case")}}async _deleteStreamController(e,t){await Promise.allSettled([e.startCall&&e.startCall.promise,e.pullCall&&e.pullCall.promise,e.cancelCall&&e.cancelCall.promise]),delete this.streamControllers[t]}destroy(){this.comObj.removeEventListener("message",this._onComObjOnMessage)}}},(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.PDFWorkerStream=void 0;var r=n(2);t.PDFWorkerStream=class{constructor(e){this._msgHandler=e,this._contentLength=null,this._fullRequestReader=null,this._rangeRequestReaders=[]}getFullReader(){return(0,r.assert)(!this._fullRequestReader,"PDFWorkerStream.getFullReader can only be called once."),this._fullRequestReader=new i(this._msgHandler),this._fullRequestReader}getRangeReader(e,t){const n=new o(e,t,this._msgHandler);return this._rangeRequestReaders.push(n),n}cancelAllRequests(e){this._fullRequestReader&&this._fullRequestReader.cancel(e);for(const t of this._rangeRequestReaders.slice(0))t.cancel(e)}};class i{constructor(e){this._msgHandler=e,this.onProgress=null,this._contentLength=null,this._isRangeSupported=!1,this._isStreamingSupported=!1;const t=this._msgHandler.sendWithStream("GetReader");this._reader=t.getReader(),this._headersReady=this._msgHandler.sendWithPromise("ReaderHeadersReady").then((e=>{this._isStreamingSupported=e.isStreamingSupported,this._isRangeSupported=e.isRangeSupported,this._contentLength=e.contentLength}))}get headersReady(){return this._headersReady}get contentLength(){return this._contentLength}get isStreamingSupported(){return this._isStreamingSupported}get isRangeSupported(){return this._isRangeSupported}async read(){const{value:e,done:t}=await this._reader.read();return t?{value:void 0,done:!0}:{value:e.buffer,done:!1}}cancel(e){this._reader.cancel(e)}}class o{constructor(e,t,n){this._msgHandler=n,this.onProgress=null;const r=this._msgHandler.sendWithStream("GetRangeReader",{begin:e,end:t});this._reader=r.getReader()}get isStreamingSupported(){return!1}async read(){const{value:e,done:t}=await this._reader.read();return t?{value:void 0,done:!0}:{value:e.buffer,done:!1}}cancel(e){this._reader.cancel(e)}}}],t={};function n(r){var i=t[r];if(void 0!==i)return i.exports;var o=t[r]={exports:{}};return e[r](o,o.exports,n),o.exports}n.d=(e,t)=>{for(var r in t)n.o(t,r)&&!n.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},n.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),n.r=e=>{"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var r={};return(()=>{var e=r;Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"WorkerMessageHandler",{enumerable:!0,get:function(){return t.WorkerMessageHandler}});var t=n(1)})(),r})(),e.exports=t()},88332:e=>{e.exports=function(e,t,n,r){var i=e[0],o=e[1],s=!1;void 0===n&&(n=0),void 0===r&&(r=t.length);for(var a=(r-n)/2,l=0,c=a-1;l<a;c=l++){var u=t[n+2*l+0],d=t[n+2*l+1],h=t[n+2*c+0],p=t[n+2*c+1];d>o!==p>o&&i<(h-u)*(o-d)/(p-d)+u&&(s=!s)}return s}},4188:(e,t,n)=>{var r=n(88332),i=n(56772);e.exports=function(e,t,n,o){return t.length>0&&Array.isArray(t[0])?i(e,t,n,o):r(e,t,n,o)},e.exports.nested=i,e.exports.flat=r},56772:e=>{e.exports=function(e,t,n,r){var i=e[0],o=e[1],s=!1;void 0===n&&(n=0),void 0===r&&(r=t.length);for(var a=r-n,l=0,c=a-1;l<a;c=l++){var u=t[l+n][0],d=t[l+n][1],h=t[c+n][0],p=t[c+n][1];d>o!==p>o&&i<(h-u)*(o-d)/(p-d)+u&&(s=!s)}return s}},27900:function(e){e.exports=function(){"use strict";function e(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function t(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function n(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}var r=function(){function e(e,t){this.next=null,this.key=e,this.data=t,this.left=null,this.right=null}return e}();function i(e,t){return e>t?1:e<t?-1:0}function o(e,t,n){for(var i=new r(null,null),o=i,s=i;;){var a=n(e,t.key);if(a<0){if(null===t.left)break;if(n(e,t.left.key)<0){var l=t.left;if(t.left=l.right,l.right=t,null===(t=l).left)break}s.left=t,s=t,t=t.left}else{if(!(a>0))break;if(null===t.right)break;if(n(e,t.right.key)>0&&(l=t.right,t.right=l.left,l.left=t,null===(t=l).right))break;o.right=t,o=t,t=t.right}}return o.right=t.left,s.left=t.right,t.left=i.right,t.right=i.left,t}function s(e,t,n,i){var s=new r(e,t);if(null===n)return s.left=s.right=null,s;var a=i(e,(n=o(e,n,i)).key);return a<0?(s.left=n.left,s.right=n,n.left=null):a>=0&&(s.right=n.right,s.left=n,n.right=null),s}function a(e,t,n){var r=null,i=null;if(t){var s=n((t=o(e,t,n)).key,e);0===s?(r=t.left,i=t.right):s<0?(i=t.right,t.right=null,r=t):(r=t.left,t.left=null,i=t)}return{left:r,right:i}}function l(e,t,n){return null===t?e:(null===e||((t=o(e.key,t,n)).left=e),t)}function c(e,t,n,r,i){if(e){r(t+(n?"\u2514\u2500\u2500 ":"\u251c\u2500\u2500 ")+i(e)+"\n");var o=t+(n?"    ":"\u2502   ");e.left&&c(e.left,o,!1,r,i),e.right&&c(e.right,o,!0,r,i)}}var u=function(){function e(e){void 0===e&&(e=i),this._root=null,this._size=0,this._comparator=e}return e.prototype.insert=function(e,t){return this._size++,this._root=s(e,t,this._root,this._comparator)},e.prototype.add=function(e,t){var n=new r(e,t);null===this._root&&(n.left=n.right=null,this._size++,this._root=n);var i=this._comparator,s=o(e,this._root,i),a=i(e,s.key);return 0===a?this._root=s:(a<0?(n.left=s.left,n.right=s,s.left=null):a>0&&(n.right=s.right,n.left=s,s.right=null),this._size++,this._root=n),this._root},e.prototype.remove=function(e){this._root=this._remove(e,this._root,this._comparator)},e.prototype._remove=function(e,t,n){var r;return null===t?null:0===n(e,(t=o(e,t,n)).key)?(null===t.left?r=t.right:(r=o(e,t.left,n)).right=t.right,this._size--,r):t},e.prototype.pop=function(){var e=this._root;if(e){for(;e.left;)e=e.left;return this._root=o(e.key,this._root,this._comparator),this._root=this._remove(e.key,this._root,this._comparator),{key:e.key,data:e.data}}return null},e.prototype.findStatic=function(e){for(var t=this._root,n=this._comparator;t;){var r=n(e,t.key);if(0===r)return t;t=r<0?t.left:t.right}return null},e.prototype.find=function(e){return this._root&&(this._root=o(e,this._root,this._comparator),0!==this._comparator(e,this._root.key))?null:this._root},e.prototype.contains=function(e){for(var t=this._root,n=this._comparator;t;){var r=n(e,t.key);if(0===r)return!0;t=r<0?t.left:t.right}return!1},e.prototype.forEach=function(e,t){for(var n=this._root,r=[],i=!1;!i;)null!==n?(r.push(n),n=n.left):0!==r.length?(n=r.pop(),e.call(t,n),n=n.right):i=!0;return this},e.prototype.range=function(e,t,n,r){for(var i=[],o=this._comparator,s=this._root;0!==i.length||s;)if(s)i.push(s),s=s.left;else{if(o((s=i.pop()).key,t)>0)break;if(o(s.key,e)>=0&&n.call(r,s))return this;s=s.right}return this},e.prototype.keys=function(){var e=[];return this.forEach((function(t){var n=t.key;return e.push(n)})),e},e.prototype.values=function(){var e=[];return this.forEach((function(t){var n=t.data;return e.push(n)})),e},e.prototype.min=function(){return this._root?this.minNode(this._root).key:null},e.prototype.max=function(){return this._root?this.maxNode(this._root).key:null},e.prototype.minNode=function(e){if(void 0===e&&(e=this._root),e)for(;e.left;)e=e.left;return e},e.prototype.maxNode=function(e){if(void 0===e&&(e=this._root),e)for(;e.right;)e=e.right;return e},e.prototype.at=function(e){for(var t=this._root,n=!1,r=0,i=[];!n;)if(t)i.push(t),t=t.left;else if(i.length>0){if(t=i.pop(),r===e)return t;r++,t=t.right}else n=!0;return null},e.prototype.next=function(e){var t=this._root,n=null;if(e.right){for(n=e.right;n.left;)n=n.left;return n}for(var r=this._comparator;t;){var i=r(e.key,t.key);if(0===i)break;i<0?(n=t,t=t.left):t=t.right}return n},e.prototype.prev=function(e){var t=this._root,n=null;if(null!==e.left){for(n=e.left;n.right;)n=n.right;return n}for(var r=this._comparator;t;){var i=r(e.key,t.key);if(0===i)break;i<0?t=t.left:(n=t,t=t.right)}return n},e.prototype.clear=function(){return this._root=null,this._size=0,this},e.prototype.toList=function(){return p(this._root)},e.prototype.load=function(e,t,n){void 0===t&&(t=[]),void 0===n&&(n=!1);var r=e.length,i=this._comparator;if(n&&m(e,t,0,r-1,i),null===this._root)this._root=d(e,t,0,r),this._size=r;else{var o=g(this.toList(),h(e,t),i);r=this._size+r,this._root=f({head:o},0,r)}return this},e.prototype.isEmpty=function(){return null===this._root},Object.defineProperty(e.prototype,"size",{get:function(){return this._size},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"root",{get:function(){return this._root},enumerable:!0,configurable:!0}),e.prototype.toString=function(e){void 0===e&&(e=function(e){return String(e.key)});var t=[];return c(this._root,"",!0,(function(e){return t.push(e)}),e),t.join("")},e.prototype.update=function(e,t,n){var r=this._comparator,i=a(e,this._root,r),o=i.left,c=i.right;r(e,t)<0?c=s(t,n,c,r):o=s(t,n,o,r),this._root=l(o,c,r)},e.prototype.split=function(e){return a(e,this._root,this._comparator)},e}();function d(e,t,n,i){var o=i-n;if(o>0){var s=n+Math.floor(o/2),a=e[s],l=t[s],c=new r(a,l);return c.left=d(e,t,n,s),c.right=d(e,t,s+1,i),c}return null}function h(e,t){for(var n=new r(null,null),i=n,o=0;o<e.length;o++)i=i.next=new r(e[o],t[o]);return i.next=null,n.next}function p(e){for(var t=e,n=[],i=!1,o=new r(null,null),s=o;!i;)t?(n.push(t),t=t.left):n.length>0?t=(t=s=s.next=n.pop()).right:i=!0;return s.next=null,o.next}function f(e,t,n){var r=n-t;if(r>0){var i=t+Math.floor(r/2),o=f(e,t,i),s=e.head;return s.left=o,e.head=e.head.next,s.right=f(e,i+1,n),s}return null}function g(e,t,n){for(var i=new r(null,null),o=i,s=e,a=t;null!==s&&null!==a;)n(s.key,a.key)<0?(o.next=s,s=s.next):(o.next=a,a=a.next),o=o.next;return null!==s?o.next=s:null!==a&&(o.next=a),i.next}function m(e,t,n,r,i){if(!(n>=r)){for(var o=e[n+r>>1],s=n-1,a=r+1;;){do{s++}while(i(e[s],o)<0);do{a--}while(i(e[a],o)>0);if(s>=a)break;var l=e[s];e[s]=e[a],e[a]=l,l=t[s],t[s]=t[a],t[a]=l}m(e,t,n,a,i),m(e,t,a+1,r,i)}}var y=function(e,t){return e.ll.x<=t.x&&t.x<=e.ur.x&&e.ll.y<=t.y&&t.y<=e.ur.y},v=function(e,t){if(t.ur.x<e.ll.x||e.ur.x<t.ll.x||t.ur.y<e.ll.y||e.ur.y<t.ll.y)return null;var n=e.ll.x<t.ll.x?t.ll.x:e.ll.x,r=e.ur.x<t.ur.x?e.ur.x:t.ur.x;return{ll:{x:n,y:e.ll.y<t.ll.y?t.ll.y:e.ll.y},ur:{x:r,y:e.ur.y<t.ur.y?e.ur.y:t.ur.y}}},_=Number.EPSILON;void 0===_&&(_=Math.pow(2,-52));var b=_*_,x=function(e,t){if(-_<e&&e<_&&-_<t&&t<_)return 0;var n=e-t;return n*n<b*e*t?0:e<t?-1:1},S=function(){function t(){e(this,t),this.reset()}return n(t,[{key:"reset",value:function(){this.xRounder=new w,this.yRounder=new w}},{key:"round",value:function(e,t){return{x:this.xRounder.round(e),y:this.yRounder.round(t)}}}]),t}(),w=function(){function t(){e(this,t),this.tree=new u,this.round(0)}return n(t,[{key:"round",value:function(e){var t=this.tree.add(e),n=this.tree.prev(t);if(null!==n&&0===x(t.key,n.key))return this.tree.remove(e),n.key;var r=this.tree.next(t);return null!==r&&0===x(t.key,r.key)?(this.tree.remove(e),r.key):e}}]),t}(),E=new S,P=function(e,t){return e.x*t.y-e.y*t.x},C=function(e,t){return e.x*t.x+e.y*t.y},A=function(e,t,n){var r={x:t.x-e.x,y:t.y-e.y},i={x:n.x-e.x,y:n.y-e.y},o=P(r,i);return x(o,0)},k=function(e){return Math.sqrt(C(e,e))},j=function(e,t,n){var r={x:t.x-e.x,y:t.y-e.y},i={x:n.x-e.x,y:n.y-e.y};return P(i,r)/k(i)/k(r)},I=function(e,t,n){var r={x:t.x-e.x,y:t.y-e.y},i={x:n.x-e.x,y:n.y-e.y};return C(i,r)/k(i)/k(r)},G=function(e,t,n){return 0===t.y?null:{x:e.x+t.x/t.y*(n-e.y),y:n}},T=function(e,t,n){return 0===t.x?null:{x:n,y:e.y+t.y/t.x*(n-e.x)}},M=function(e,t,n,r){if(0===t.x)return T(n,r,e.x);if(0===r.x)return T(e,t,n.x);if(0===t.y)return G(n,r,e.y);if(0===r.y)return G(e,t,n.y);var i=P(t,r);if(0==i)return null;var o={x:n.x-e.x,y:n.y-e.y},s=P(o,t)/i,a=P(o,r)/i;return{x:(e.x+a*t.x+(n.x+s*r.x))/2,y:(e.y+a*t.y+(n.y+s*r.y))/2}},O=function(){function t(n,r){e(this,t),void 0===n.events?n.events=[this]:n.events.push(this),this.point=n,this.isLeft=r}return n(t,null,[{key:"compare",value:function(e,n){var r=t.comparePoints(e.point,n.point);return 0!==r?r:(e.point!==n.point&&e.link(n),e.isLeft!==n.isLeft?e.isLeft?1:-1:D.compare(e.segment,n.segment))}},{key:"comparePoints",value:function(e,t){return e.x<t.x?-1:e.x>t.x?1:e.y<t.y?-1:e.y>t.y?1:0}}]),n(t,[{key:"link",value:function(e){if(e.point===this.point)throw new Error("Tried to link already linked events");for(var t=e.point.events,n=0,r=t.length;n<r;n++){var i=t[n];this.point.events.push(i),i.point=this.point}this.checkForConsuming()}},{key:"checkForConsuming",value:function(){for(var e=this.point.events.length,t=0;t<e;t++){var n=this.point.events[t];if(void 0===n.segment.consumedBy)for(var r=t+1;r<e;r++){var i=this.point.events[r];void 0===i.consumedBy&&n.otherSE.point.events===i.otherSE.point.events&&n.segment.consume(i.segment)}}}},{key:"getAvailableLinkedEvents",value:function(){for(var e=[],t=0,n=this.point.events.length;t<n;t++){var r=this.point.events[t];r!==this&&!r.segment.ringOut&&r.segment.isInResult()&&e.push(r)}return e}},{key:"getLeftmostComparator",value:function(e){var t=this,n=new Map,r=function(r){var i=r.otherSE;n.set(r,{sine:j(t.point,e.point,i.point),cosine:I(t.point,e.point,i.point)})};return function(e,t){n.has(e)||r(e),n.has(t)||r(t);var i=n.get(e),o=i.sine,s=i.cosine,a=n.get(t),l=a.sine,c=a.cosine;return o>=0&&l>=0?s<c?1:s>c?-1:0:o<0&&l<0?s<c?-1:s>c?1:0:l<o?-1:l>o?1:0}}}]),t}(),R=0,D=function(){function t(n,r,i,o){e(this,t),this.id=++R,this.leftSE=n,n.segment=this,n.otherSE=r,this.rightSE=r,r.segment=this,r.otherSE=n,this.rings=i,this.windings=o}return n(t,null,[{key:"compare",value:function(e,t){var n=e.leftSE.point.x,r=t.leftSE.point.x,i=e.rightSE.point.x,o=t.rightSE.point.x;if(o<n)return 1;if(i<r)return-1;var s=e.leftSE.point.y,a=t.leftSE.point.y,l=e.rightSE.point.y,c=t.rightSE.point.y;if(n<r){if(a<s&&a<l)return 1;if(a>s&&a>l)return-1;var u=e.comparePoint(t.leftSE.point);if(u<0)return 1;if(u>0)return-1;var d=t.comparePoint(e.rightSE.point);return 0!==d?d:-1}if(n>r){if(s<a&&s<c)return-1;if(s>a&&s>c)return 1;var h=t.comparePoint(e.leftSE.point);if(0!==h)return h;var p=e.comparePoint(t.rightSE.point);return p<0?1:p>0?-1:1}if(s<a)return-1;if(s>a)return 1;if(i<o){var f=t.comparePoint(e.rightSE.point);if(0!==f)return f}if(i>o){var g=e.comparePoint(t.rightSE.point);if(g<0)return 1;if(g>0)return-1}if(i!==o){var m=l-s,y=i-n,v=c-a,_=o-r;if(m>y&&v<_)return 1;if(m<y&&v>_)return-1}return i>o?1:i<o||l<c?-1:l>c?1:e.id<t.id?-1:e.id>t.id?1:0}}]),n(t,[{key:"replaceRightSE",value:function(e){this.rightSE=e,this.rightSE.segment=this,this.rightSE.otherSE=this.leftSE,this.leftSE.otherSE=this.rightSE}},{key:"bbox",value:function(){var e=this.leftSE.point.y,t=this.rightSE.point.y;return{ll:{x:this.leftSE.point.x,y:e<t?e:t},ur:{x:this.rightSE.point.x,y:e>t?e:t}}}},{key:"vector",value:function(){return{x:this.rightSE.point.x-this.leftSE.point.x,y:this.rightSE.point.y-this.leftSE.point.y}}},{key:"isAnEndpoint",value:function(e){return e.x===this.leftSE.point.x&&e.y===this.leftSE.point.y||e.x===this.rightSE.point.x&&e.y===this.rightSE.point.y}},{key:"comparePoint",value:function(e){if(this.isAnEndpoint(e))return 0;var t=this.leftSE.point,n=this.rightSE.point,r=this.vector();if(t.x===n.x)return e.x===t.x?0:e.x<t.x?1:-1;var i=(e.y-t.y)/r.y,o=t.x+i*r.x;if(e.x===o)return 0;var s=(e.x-t.x)/r.x,a=t.y+s*r.y;return e.y===a?0:e.y<a?-1:1}},{key:"getIntersection",value:function(e){var t=this.bbox(),n=e.bbox(),r=v(t,n);if(null===r)return null;var i=this.leftSE.point,o=this.rightSE.point,s=e.leftSE.point,a=e.rightSE.point,l=y(t,s)&&0===this.comparePoint(s),c=y(n,i)&&0===e.comparePoint(i),u=y(t,a)&&0===this.comparePoint(a),d=y(n,o)&&0===e.comparePoint(o);if(c&&l)return d&&!u?o:!d&&u?a:null;if(c)return u&&i.x===a.x&&i.y===a.y?null:i;if(l)return d&&o.x===s.x&&o.y===s.y?null:s;if(d&&u)return null;if(d)return o;if(u)return a;var h=M(i,this.vector(),s,e.vector());return null===h?null:y(r,h)?E.round(h.x,h.y):null}},{key:"split",value:function(e){var n=[],r=void 0!==e.events,i=new O(e,!0),o=new O(e,!1),s=this.rightSE;this.replaceRightSE(o),n.push(o),n.push(i);var a=new t(i,s,this.rings.slice(),this.windings.slice());return O.comparePoints(a.leftSE.point,a.rightSE.point)>0&&a.swapEvents(),O.comparePoints(this.leftSE.point,this.rightSE.point)>0&&this.swapEvents(),r&&(i.checkForConsuming(),o.checkForConsuming()),n}},{key:"swapEvents",value:function(){var e=this.rightSE;this.rightSE=this.leftSE,this.leftSE=e,this.leftSE.isLeft=!0,this.rightSE.isLeft=!1;for(var t=0,n=this.windings.length;t<n;t++)this.windings[t]*=-1}},{key:"consume",value:function(e){for(var n=this,r=e;n.consumedBy;)n=n.consumedBy;for(;r.consumedBy;)r=r.consumedBy;var i=t.compare(n,r);if(0!==i){if(i>0){var o=n;n=r,r=o}if(n.prev===r){var s=n;n=r,r=s}for(var a=0,l=r.rings.length;a<l;a++){var c=r.rings[a],u=r.windings[a],d=n.rings.indexOf(c);-1===d?(n.rings.push(c),n.windings.push(u)):n.windings[d]+=u}r.rings=null,r.windings=null,r.consumedBy=n,r.leftSE.consumedBy=n.leftSE,r.rightSE.consumedBy=n.rightSE}}},{key:"prevInResult",value:function(){return void 0!==this._prevInResult||(this.prev?this.prev.isInResult()?this._prevInResult=this.prev:this._prevInResult=this.prev.prevInResult():this._prevInResult=null),this._prevInResult}},{key:"beforeState",value:function(){if(void 0!==this._beforeState)return this._beforeState;if(this.prev){var e=this.prev.consumedBy||this.prev;this._beforeState=e.afterState()}else this._beforeState={rings:[],windings:[],multiPolys:[]};return this._beforeState}},{key:"afterState",value:function(){if(void 0!==this._afterState)return this._afterState;var e=this.beforeState();this._afterState={rings:e.rings.slice(0),windings:e.windings.slice(0),multiPolys:[]};for(var t=this._afterState.rings,n=this._afterState.windings,r=this._afterState.multiPolys,i=0,o=this.rings.length;i<o;i++){var s=this.rings[i],a=this.windings[i],l=t.indexOf(s);-1===l?(t.push(s),n.push(a)):n[l]+=a}for(var c=[],u=[],d=0,h=t.length;d<h;d++)if(0!==n[d]){var p=t[d],f=p.poly;if(-1===u.indexOf(f))if(p.isExterior)c.push(f);else{-1===u.indexOf(f)&&u.push(f);var g=c.indexOf(p.poly);-1!==g&&c.splice(g,1)}}for(var m=0,y=c.length;m<y;m++){var v=c[m].multiPoly;-1===r.indexOf(v)&&r.push(v)}return this._afterState}},{key:"isInResult",value:function(){if(this.consumedBy)return!1;if(void 0!==this._isInResult)return this._isInResult;var e=this.beforeState().multiPolys,t=this.afterState().multiPolys;switch(q.type){case"union":var n=0===e.length,r=0===t.length;this._isInResult=n!==r;break;case"intersection":var i,o;e.length<t.length?(i=e.length,o=t.length):(i=t.length,o=e.length),this._isInResult=o===q.numMultiPolys&&i<o;break;case"xor":var s=Math.abs(e.length-t.length);this._isInResult=s%2===1;break;case"difference":var a=function(e){return 1===e.length&&e[0].isSubject};this._isInResult=a(e)!==a(t);break;default:throw new Error("Unrecognized operation type found ".concat(q.type))}return this._isInResult}}],[{key:"fromRing",value:function(e,n,r){var i,o,s,a=O.comparePoints(e,n);if(a<0)i=e,o=n,s=1;else{if(!(a>0))throw new Error("Tried to create degenerate segment at [".concat(e.x,", ").concat(e.y,"]"));i=n,o=e,s=-1}return new t(new O(i,!0),new O(o,!1),[r],[s])}}]),t}(),N=function(){function t(n,r,i){if(e(this,t),!Array.isArray(n)||0===n.length)throw new Error("Input geometry is not a valid Polygon or MultiPolygon");if(this.poly=r,this.isExterior=i,this.segments=[],"number"!==typeof n[0][0]||"number"!==typeof n[0][1])throw new Error("Input geometry is not a valid Polygon or MultiPolygon");var o=E.round(n[0][0],n[0][1]);this.bbox={ll:{x:o.x,y:o.y},ur:{x:o.x,y:o.y}};for(var s=o,a=1,l=n.length;a<l;a++){if("number"!==typeof n[a][0]||"number"!==typeof n[a][1])throw new Error("Input geometry is not a valid Polygon or MultiPolygon");var c=E.round(n[a][0],n[a][1]);c.x===s.x&&c.y===s.y||(this.segments.push(D.fromRing(s,c,this)),c.x<this.bbox.ll.x&&(this.bbox.ll.x=c.x),c.y<this.bbox.ll.y&&(this.bbox.ll.y=c.y),c.x>this.bbox.ur.x&&(this.bbox.ur.x=c.x),c.y>this.bbox.ur.y&&(this.bbox.ur.y=c.y),s=c)}o.x===s.x&&o.y===s.y||this.segments.push(D.fromRing(s,o,this))}return n(t,[{key:"getSweepEvents",value:function(){for(var e=[],t=0,n=this.segments.length;t<n;t++){var r=this.segments[t];e.push(r.leftSE),e.push(r.rightSE)}return e}}]),t}(),L=function(){function t(n,r){if(e(this,t),!Array.isArray(n))throw new Error("Input geometry is not a valid Polygon or MultiPolygon");this.exteriorRing=new N(n[0],this,!0),this.bbox={ll:{x:this.exteriorRing.bbox.ll.x,y:this.exteriorRing.bbox.ll.y},ur:{x:this.exteriorRing.bbox.ur.x,y:this.exteriorRing.bbox.ur.y}},this.interiorRings=[];for(var i=1,o=n.length;i<o;i++){var s=new N(n[i],this,!1);s.bbox.ll.x<this.bbox.ll.x&&(this.bbox.ll.x=s.bbox.ll.x),s.bbox.ll.y<this.bbox.ll.y&&(this.bbox.ll.y=s.bbox.ll.y),s.bbox.ur.x>this.bbox.ur.x&&(this.bbox.ur.x=s.bbox.ur.x),s.bbox.ur.y>this.bbox.ur.y&&(this.bbox.ur.y=s.bbox.ur.y),this.interiorRings.push(s)}this.multiPoly=r}return n(t,[{key:"getSweepEvents",value:function(){for(var e=this.exteriorRing.getSweepEvents(),t=0,n=this.interiorRings.length;t<n;t++)for(var r=this.interiorRings[t].getSweepEvents(),i=0,o=r.length;i<o;i++)e.push(r[i]);return e}}]),t}(),V=function(){function t(n,r){if(e(this,t),!Array.isArray(n))throw new Error("Input geometry is not a valid Polygon or MultiPolygon");try{"number"===typeof n[0][0][0]&&(n=[n])}catch(a){}this.polys=[],this.bbox={ll:{x:Number.POSITIVE_INFINITY,y:Number.POSITIVE_INFINITY},ur:{x:Number.NEGATIVE_INFINITY,y:Number.NEGATIVE_INFINITY}};for(var i=0,o=n.length;i<o;i++){var s=new L(n[i],this);s.bbox.ll.x<this.bbox.ll.x&&(this.bbox.ll.x=s.bbox.ll.x),s.bbox.ll.y<this.bbox.ll.y&&(this.bbox.ll.y=s.bbox.ll.y),s.bbox.ur.x>this.bbox.ur.x&&(this.bbox.ur.x=s.bbox.ur.x),s.bbox.ur.y>this.bbox.ur.y&&(this.bbox.ur.y=s.bbox.ur.y),this.polys.push(s)}this.isSubject=r}return n(t,[{key:"getSweepEvents",value:function(){for(var e=[],t=0,n=this.polys.length;t<n;t++)for(var r=this.polys[t].getSweepEvents(),i=0,o=r.length;i<o;i++)e.push(r[i]);return e}}]),t}(),F=function(){function t(n){e(this,t),this.events=n;for(var r=0,i=n.length;r<i;r++)n[r].segment.ringOut=this;this.poly=null}return n(t,null,[{key:"factory",value:function(e){for(var n=[],r=0,i=e.length;r<i;r++){var o=e[r];if(o.isInResult()&&!o.ringOut){for(var s=null,a=o.leftSE,l=o.rightSE,c=[a],u=a.point,d=[];s=a,a=l,c.push(a),a.point!==u;)for(;;){var h=a.getAvailableLinkedEvents();if(0===h.length){var p=c[0].point,f=c[c.length-1].point;throw new Error("Unable to complete output ring starting at [".concat(p.x,",")+" ".concat(p.y,"]. Last matching segment found ends at")+" [".concat(f.x,", ").concat(f.y,"]."))}if(1===h.length){l=h[0].otherSE;break}for(var g=null,m=0,y=d.length;m<y;m++)if(d[m].point===a.point){g=m;break}if(null===g){d.push({index:c.length,point:a.point});var v=a.getLeftmostComparator(s);l=h.sort(v)[0].otherSE;break}var _=d.splice(g)[0],b=c.splice(_.index);b.unshift(b[0].otherSE),n.push(new t(b.reverse()))}n.push(new t(c))}}return n}}]),n(t,[{key:"getGeom",value:function(){for(var e=this.events[0].point,t=[e],n=1,r=this.events.length-1;n<r;n++){var i=this.events[n].point,o=this.events[n+1].point;0!==A(i,e,o)&&(t.push(i),e=i)}if(1===t.length)return null;var s=t[0],a=t[1];0===A(s,e,a)&&t.shift(),t.push(t[0]);for(var l=this.isExteriorRing()?1:-1,c=this.isExteriorRing()?0:t.length-1,u=this.isExteriorRing()?t.length:-1,d=[],h=c;h!=u;h+=l)d.push([t[h].x,t[h].y]);return d}},{key:"isExteriorRing",value:function(){if(void 0===this._isExteriorRing){var e=this.enclosingRing();this._isExteriorRing=!e||!e.isExteriorRing()}return this._isExteriorRing}},{key:"enclosingRing",value:function(){return void 0===this._enclosingRing&&(this._enclosingRing=this._calcEnclosingRing()),this._enclosingRing}},{key:"_calcEnclosingRing",value:function(){for(var e=this.events[0],t=1,n=this.events.length;t<n;t++){var r=this.events[t];O.compare(e,r)>0&&(e=r)}for(var i=e.segment.prevInResult(),o=i?i.prevInResult():null;;){if(!i)return null;if(!o)return i.ringOut;if(o.ringOut!==i.ringOut)return o.ringOut.enclosingRing()!==i.ringOut?i.ringOut:i.ringOut.enclosingRing();i=o.prevInResult(),o=i?i.prevInResult():null}}}]),t}(),z=function(){function t(n){e(this,t),this.exteriorRing=n,n.poly=this,this.interiorRings=[]}return n(t,[{key:"addInterior",value:function(e){this.interiorRings.push(e),e.poly=this}},{key:"getGeom",value:function(){var e=[this.exteriorRing.getGeom()];if(null===e[0])return null;for(var t=0,n=this.interiorRings.length;t<n;t++){var r=this.interiorRings[t].getGeom();null!==r&&e.push(r)}return e}}]),t}(),B=function(){function t(n){e(this,t),this.rings=n,this.polys=this._composePolys(n)}return n(t,[{key:"getGeom",value:function(){for(var e=[],t=0,n=this.polys.length;t<n;t++){var r=this.polys[t].getGeom();null!==r&&e.push(r)}return e}},{key:"_composePolys",value:function(e){for(var t=[],n=0,r=e.length;n<r;n++){var i=e[n];if(!i.poly)if(i.isExteriorRing())t.push(new z(i));else{var o=i.enclosingRing();o.poly||t.push(new z(o)),o.poly.addInterior(i)}}return t}}]),t}(),U=function(){function t(n){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:D.compare;e(this,t),this.queue=n,this.tree=new u(r),this.segments=[]}return n(t,[{key:"process",value:function(e){var t=e.segment,n=[];if(e.consumedBy)return e.isLeft?this.queue.remove(e.otherSE):this.tree.remove(t),n;var r=e.isLeft?this.tree.insert(t):this.tree.find(t);if(!r)throw new Error("Unable to find segment #".concat(t.id," ")+"[".concat(t.leftSE.point.x,", ").concat(t.leftSE.point.y,"] -> ")+"[".concat(t.rightSE.point.x,", ").concat(t.rightSE.point.y,"] ")+"in SweepLine tree. Please submit a bug report.");for(var i=r,o=r,s=void 0,a=void 0;void 0===s;)null===(i=this.tree.prev(i))?s=null:void 0===i.key.consumedBy&&(s=i.key);for(;void 0===a;)null===(o=this.tree.next(o))?a=null:void 0===o.key.consumedBy&&(a=o.key);if(e.isLeft){var l=null;if(s){var c=s.getIntersection(t);if(null!==c&&(t.isAnEndpoint(c)||(l=c),!s.isAnEndpoint(c)))for(var u=this._splitSafely(s,c),d=0,h=u.length;d<h;d++)n.push(u[d])}var p=null;if(a){var f=a.getIntersection(t);if(null!==f&&(t.isAnEndpoint(f)||(p=f),!a.isAnEndpoint(f)))for(var g=this._splitSafely(a,f),m=0,y=g.length;m<y;m++)n.push(g[m])}if(null!==l||null!==p){var v=null;v=null===l?p:null===p||O.comparePoints(l,p)<=0?l:p,this.queue.remove(t.rightSE),n.push(t.rightSE);for(var _=t.split(v),b=0,x=_.length;b<x;b++)n.push(_[b])}n.length>0?(this.tree.remove(t),n.push(e)):(this.segments.push(t),t.prev=s)}else{if(s&&a){var S=s.getIntersection(a);if(null!==S){if(!s.isAnEndpoint(S))for(var w=this._splitSafely(s,S),E=0,P=w.length;E<P;E++)n.push(w[E]);if(!a.isAnEndpoint(S))for(var C=this._splitSafely(a,S),A=0,k=C.length;A<k;A++)n.push(C[A])}}this.tree.remove(t)}return n}},{key:"_splitSafely",value:function(e,t){this.tree.remove(e);var n=e.rightSE;this.queue.remove(n);var r=e.split(t);return r.push(n),void 0===e.consumedBy&&this.tree.insert(e),r}}]),t}(),W="undefined"!==typeof process&&{NODE_ENV:"production",PUBLIC_URL:"",WDS_SOCKET_HOST:void 0,WDS_SOCKET_PATH:void 0,WDS_SOCKET_PORT:void 0,FAST_REFRESH:!0,REACT_APP_API_KEY:"AIzaSyBHPgV3XKgYOnM990_yTwspgeTvJbOgAhg",REACT_APP_APP_ID:"1:251853988099:web:bab0205739db7f7d060936",REACT_APP_AUTH_DOMAIN:"skyvisor-prod.firebaseapp.com",REACT_APP_DATABASE_URL:"https://skyvisor-prod.firebaseio.com",REACT_APP_GOOGLE_MAPS_API_KEY:"AIzaSyCHaKkxdhCFUJ_YQq_n-sa8zb3jxT8UQio",REACT_APP_MAP_TILER_API_KEY:"9il2HwEuumNUJKgkhkUF",REACT_APP_MESSAGING_SENDER_ID:"251853988099",REACT_APP_PROJECT_ID:"skyvisor-prod",REACT_APP_STORAGE_BUCKET:"skyvisor-prod.appspot.com"}.POLYGON_CLIPPING_MAX_QUEUE_SIZE||1e6,H="undefined"!==typeof process&&{NODE_ENV:"production",PUBLIC_URL:"",WDS_SOCKET_HOST:void 0,WDS_SOCKET_PATH:void 0,WDS_SOCKET_PORT:void 0,FAST_REFRESH:!0,REACT_APP_API_KEY:"AIzaSyBHPgV3XKgYOnM990_yTwspgeTvJbOgAhg",REACT_APP_APP_ID:"1:251853988099:web:bab0205739db7f7d060936",REACT_APP_AUTH_DOMAIN:"skyvisor-prod.firebaseapp.com",REACT_APP_DATABASE_URL:"https://skyvisor-prod.firebaseio.com",REACT_APP_GOOGLE_MAPS_API_KEY:"AIzaSyCHaKkxdhCFUJ_YQq_n-sa8zb3jxT8UQio",REACT_APP_MAP_TILER_API_KEY:"9il2HwEuumNUJKgkhkUF",REACT_APP_MESSAGING_SENDER_ID:"251853988099",REACT_APP_PROJECT_ID:"skyvisor-prod",REACT_APP_STORAGE_BUCKET:"skyvisor-prod.appspot.com"}.POLYGON_CLIPPING_MAX_SWEEPLINE_SEGMENTS||1e6,q=new(function(){function t(){e(this,t)}return n(t,[{key:"run",value:function(e,t,n){q.type=e,E.reset();for(var r=[new V(t,!0)],i=0,o=n.length;i<o;i++)r.push(new V(n[i],!1));if(q.numMultiPolys=r.length,"difference"===q.type)for(var s=r[0],a=1;a<r.length;)null!==v(r[a].bbox,s.bbox)?a++:r.splice(a,1);if("intersection"===q.type)for(var l=0,c=r.length;l<c;l++)for(var d=r[l],h=l+1,p=r.length;h<p;h++)if(null===v(d.bbox,r[h].bbox))return[];for(var f=new u(O.compare),g=0,m=r.length;g<m;g++)for(var y=r[g].getSweepEvents(),_=0,b=y.length;_<b;_++)if(f.insert(y[_]),f.size>W)throw new Error("Infinite loop when putting segment endpoints in a priority queue (queue size too big). Please file a bug report.");for(var x=new U(f),S=f.size,w=f.pop();w;){var P=w.key;if(f.size===S){var C=P.segment;throw new Error("Unable to pop() ".concat(P.isLeft?"left":"right"," SweepEvent ")+"[".concat(P.point.x,", ").concat(P.point.y,"] from segment #").concat(C.id," ")+"[".concat(C.leftSE.point.x,", ").concat(C.leftSE.point.y,"] -> ")+"[".concat(C.rightSE.point.x,", ").concat(C.rightSE.point.y,"] from queue. ")+"Please file a bug report.")}if(f.size>W)throw new Error("Infinite loop when passing sweep line over endpoints (queue size too big). Please file a bug report.");if(x.segments.length>H)throw new Error("Infinite loop when passing sweep line over endpoints (too many sweep line segments). Please file a bug report.");for(var A=x.process(P),k=0,j=A.length;k<j;k++){var I=A[k];void 0===I.consumedBy&&f.insert(I)}S=f.size,w=f.pop()}E.reset();var G=F.factory(x.segments);return new B(G).getGeom()}}]),t}()),X=function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return q.run("union",e,n)},Y=function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return q.run("intersection",e,n)},K=function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return q.run("xor",e,n)},Z=function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return q.run("difference",e,n)};return{union:X,intersection:Y,xor:K,difference:Z}}()},51504:e=>{e.exports={"EPSG:4326":["EPSG:4326","+proj=longlat +datum=WGS84 +no_defs "],"EPSG:3857":["EPSG:3857","+proj=merc +a=6378137 +b=6378137 +lat_ts=0.0 +lon_0=0.0 +x_0=0.0 +y_0=0 +k=1.0 +units=m +nadgrids=@null +wktext  +no_defs"],"EPSG:5514":["EPSG:5514","+proj=krovak +lat_0=49.5 +lon_0=24.83333333333333 +alpha=30.28813972222222 +k=0.9999 +x_0=0 +y_0=0 +ellps=bessel +towgs84=589,76,480,0,0,0,0 +units=m +no_defs "],"EPSG:27700":["EPSG:27700","+proj=tmerc +lat_0=49 +lon_0=-2 +k=0.9996012717 +x_0=400000 +y_0=-100000 +datum=OSGB36 +units=m +no_defs "],"EPSG:28992":["EPSG:28992","+proj=sterea +lat_0=52.15616055555555 +lon_0=5.38763888888889 +k=0.9999079 +x_0=155000 +y_0=463000 +ellps=bessel +towgs84=565.4171,50.3319,465.5524,-0.398957,0.343988,-1.87740,4.0725 +units=m +no_defs "],"EPSG:31300":["EPSG:31300","+proj=lcc +lat_1=49.83333333333334 +lat_2=51.16666666666666 +lat_0=90 +lon_0=4.356939722222222 +x_0=150000.01256 +y_0=5400088.4378 +ellps=intl +towgs84=-106.8686,52.2978,-103.7239,0.3366,-0.457,1.8422,-1.2747 +units=m +no_defs "],"EPSG:3044":["EPSG:3044","+proj=utm +zone=32 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs "],"EPSG:3395":["EPSG:3395","+proj=merc +lon_0=0 +k=1 +x_0=0 +y_0=0 +datum=WGS84 +units=m +no_defs "],"EPSG:3785":["EPSG:3785","+proj=merc +a=6378137 +b=6378137 +lat_ts=0.0 +lon_0=0.0 +x_0=0.0 +y_0=0 +k=1.0 +units=m +nadgrids=@null +wktext  +no_defs"],"EPSG:32646":["EPSG:32646","+proj=utm +zone=46 +datum=WGS84 +units=m +no_defs "],"EPSG:3006":["EPSG:3006","+proj=utm +zone=33 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs "],"EPSG:32640":["EPSG:32640","+proj=utm +zone=40 +datum=WGS84 +units=m +no_defs "],"EPSG:28354":["EPSG:28354","+proj=utm +zone=54 +south +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs "],"EPSG:32632":["EPSG:32632","+proj=utm +zone=32 +datum=WGS84 +units=m +no_defs "],"EPSG:4269":["EPSG:4269","+proj=longlat +datum=NAD83 +no_defs "],"EPSG:32633":["EPSG:32633","+proj=utm +zone=33 +datum=WGS84 +units=m +no_defs "],"EPSG:32616":["EPSG:32616","+proj=utm +zone=16 +datum=WGS84 +units=m +no_defs "],"EPSG:3070":["EPSG:3070","+proj=tmerc +lat_0=0 +lon_0=-90 +k=0.9996 +x_0=520000 +y_0=-4480000 +datum=NAD83 +units=m +no_defs "],"EPSG:2261":["EPSG:2261","+proj=tmerc +lat_0=40 +lon_0=-76.58333333333333 +k=0.9999375 +x_0=249999.9998983998 +y_0=0 +datum=NAD83 +units=us-ft +no_defs "],"EPSG:32039":["EPSG:32039","+proj=lcc +lat_1=30.11666666666667 +lat_2=31.88333333333333 +lat_0=29.66666666666667 +lon_0=-100.3333333333333 +x_0=609601.2192024384 +y_0=0 +datum=NAD27 +units=us-ft +no_defs "],"EPSG:32748":["EPSG:32748","+proj=utm +zone=48 +south +datum=WGS84 +units=m +no_defs "],"EPSG:32618":["EPSG:32618","+proj=utm +zone=18 +datum=WGS84 +units=m +no_defs "],"EPSG:3045":["EPSG:3045","+proj=utm +zone=33 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs "],"EPSG:4283":["EPSG:4283","+proj=longlat +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +no_defs "],"EPSG:31258":["EPSG:31258","+proj=tmerc +lat_0=0 +lon_0=13.33333333333333 +k=1 +x_0=450000 +y_0=-5000000 +datum=hermannskogel +units=m +no_defs "],"EPSG:2154":["EPSG:2154","+proj=lcc +lat_1=49 +lat_2=44 +lat_0=46.5 +lon_0=3 +x_0=700000 +y_0=6600000 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs "],"EPSG:32635":["EPSG:32635","+proj=utm +zone=35 +datum=WGS84 +units=m +no_defs "],"EPSG:4471":["EPSG:4471","+proj=utm +zone=38 +south +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs "],"EPSG:25832":["EPSG:25832","+proj=utm +zone=32 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs "],"EPSG:4203":["EPSG:4203","+proj=longlat +ellps=aust_SA +towgs84=-134,-48,149,0,0,0,0 +no_defs "],"EPSG:2180":["EPSG:2180","+proj=tmerc +lat_0=0 +lon_0=19 +k=0.9993 +x_0=500000 +y_0=-5300000 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs "],"EPSG:3047":["EPSG:3047","+proj=utm +zone=35 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs "],"EPSG:26712":["EPSG:26712","+proj=utm +zone=12 +datum=NAD27 +units=m +no_defs "],"EPSG:32617":["EPSG:32617","+proj=utm +zone=17 +datum=WGS84 +units=m +no_defs "],"EPSG:7405":["EPSG:7405","+proj=tmerc +lat_0=49 +lon_0=-2 +k=0.9996012717 +x_0=400000 +y_0=-100000 +datum=OSGB36 +units=m +vunits=m +no_defs "],"EPSG:32116":["EPSG:32116","+proj=tmerc +lat_0=40 +lon_0=-76.58333333333333 +k=0.9999375 +x_0=250000 +y_0=0 +datum=NAD83 +units=m +no_defs "],"EPSG:32637":["EPSG:32637","+proj=utm +zone=37 +datum=WGS84 +units=m +no_defs "],"EPSG:32719":["EPSG:32719","+proj=utm +zone=19 +south +datum=WGS84 +units=m +no_defs "],"EPSG:32736":["EPSG:32736","+proj=utm +zone=36 +south +datum=WGS84 +units=m +no_defs "],"EPSG:32638":["EPSG:32638","+proj=utm +zone=38 +datum=WGS84 +units=m +no_defs "],"EPSG:21781":["EPSG:21781","+proj=somerc +lat_0=46.95240555555556 +lon_0=7.439583333333333 +k_0=1 +x_0=600000 +y_0=200000 +ellps=bessel +towgs84=674.4,15.1,405.3,0,0,0,0 +units=m +no_defs "],"EPSG:32614":["EPSG:32614","+proj=utm +zone=14 +datum=WGS84 +units=m +no_defs "],"EPSG:4817":["EPSG:4817","+proj=longlat +a=6377492.018 +b=6356173.508712696 +towgs84=278.3,93,474.5,7.889,0.05,-6.61,6.21 +pm=oslo +no_defs "],"EPSG:32643":["EPSG:32643","+proj=utm +zone=43 +datum=WGS84 +units=m +no_defs "],"EPSG:26911":["EPSG:26911","+proj=utm +zone=11 +datum=NAD83 +units=m +no_defs "],"EPSG:2385":["EPSG:2385","+proj=tmerc +lat_0=0 +lon_0=120 +k=1 +x_0=500000 +y_0=0 +a=6378140 +b=6356755.288157528 +units=m +no_defs "],"EPSG:4617":["EPSG:4617","+proj=longlat +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +no_defs "],"EPSG:32630":["EPSG:32630","+proj=utm +zone=30 +datum=WGS84 +units=m +no_defs "],"EPSG:32631":["EPSG:32631","+proj=utm +zone=31 +datum=WGS84 +units=m +no_defs "],"EPSG:3043":["EPSG:3043","+proj=utm +zone=31 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs "],"EPSG:26711":["EPSG:26711","+proj=utm +zone=11 +datum=NAD27 +units=m +no_defs "],"EPSG:4277":["EPSG:4277","+proj=longlat +datum=OSGB36 +no_defs "],"EPSG:32610":["EPSG:32610","+proj=utm +zone=10 +datum=WGS84 +units=m +no_defs "],"EPSG:3064":["EPSG:3064","+proj=utm +zone=32 +ellps=WGS84 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs "],"EPSG:32645":["EPSG:32645","+proj=utm +zone=45 +datum=WGS84 +units=m +no_defs "],"EPSG:20438":["EPSG:20438","+proj=utm +zone=38 +ellps=intl +towgs84=-143,-236,7,0,0,0,0 +units=m +no_defs "],"EPSG:3159":["EPSG:3159","+proj=utm +zone=15 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs "],"EPSG:4978":["EPSG:4978","+proj=geocent +datum=WGS84 +units=m +no_defs "],"EPSG:3035":["EPSG:3035","+proj=laea +lat_0=52 +lon_0=10 +x_0=4321000 +y_0=3210000 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs "],"EPSG:25831":["EPSG:25831","+proj=utm +zone=31 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs "],"EPSG:32651":["EPSG:32651","+proj=utm +zone=51 +datum=WGS84 +units=m +no_defs "],"EPSG:32722":["EPSG:32722","+proj=utm +zone=22 +south +datum=WGS84 +units=m +no_defs "],"EPSG:32662":["EPSG:32662","+proj=eqc +lat_ts=0 +lat_0=0 +lon_0=0 +x_0=0 +y_0=0 +datum=WGS84 +units=m +no_defs "],"EPSG:5513":["EPSG:5513","+proj=krovak +lat_0=49.5 +lon_0=24.83333333333333 +alpha=30.28813972222222 +k=0.9999 +x_0=0 +y_0=0 +ellps=bessel +towgs84=589,76,480,0,0,0,0 +units=m +no_defs "],"EPSG:2227":["EPSG:2227","+proj=lcc +lat_1=38.43333333333333 +lat_2=37.06666666666667 +lat_0=36.5 +lon_0=-120.5 +x_0=2000000.0001016 +y_0=500000.0001016001 +datum=NAD83 +units=us-ft +no_defs "],"EPSG:32644":["EPSG:32644","+proj=utm +zone=44 +datum=WGS84 +units=m +no_defs "],"EPSG:32639":["EPSG:32639","+proj=utm +zone=39 +datum=WGS84 +units=m +no_defs "],"EPSG:2290":["EPSG:2290","+proj=sterea +lat_0=47.25 +lon_0=-63 +k=0.999912 +x_0=700000 +y_0=400000 +a=6378135 +b=6356750.304921594 +units=m +no_defs "],"EPSG:3879":["EPSG:3879","+proj=tmerc +lat_0=0 +lon_0=25 +k=1 +x_0=25500000 +y_0=0 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs "],"EPSG:2077":["EPSG:2077","+proj=utm +zone=32 +ellps=intl +towgs84=-115.8543,-99.0583,-152.4616,0,0,0,0 +units=m +no_defs "],"EPSG:32613":["EPSG:32613","+proj=utm +zone=13 +datum=WGS84 +units=m +no_defs "],"EPSG:32636":["EPSG:32636","+proj=utm +zone=36 +datum=WGS84 +units=m +no_defs "],"EPSG:23700":["EPSG:23700","+proj=somerc +lat_0=47.14439372222222 +lon_0=19.04857177777778 +k_0=0.99993 +x_0=650000 +y_0=200000 +ellps=GRS67 +towgs84=52.17,-71.82,-14.9,0,0,0,0 +units=m +no_defs "],"EPSG:32611":["EPSG:32611","+proj=utm +zone=11 +datum=WGS84 +units=m +no_defs "],"EPSG:26713":["EPSG:26713","+proj=utm +zone=13 +datum=NAD27 +units=m +no_defs "],"EPSG:2149":["EPSG:2149","+proj=utm +zone=18 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs "],"EPSG:32650":["EPSG:32650","+proj=utm +zone=50 +datum=WGS84 +units=m +no_defs "],"EPSG:32718":["EPSG:32718","+proj=utm +zone=18 +south +datum=WGS84 +units=m +no_defs "],"EPSG:5551":["EPSG:5551","+proj=utm +zone=55 +south +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs "],"EPSG:4901":["EPSG:4901","+proj=longlat +a=6376523 +b=6355862.933255573 +pm=2.337208333333333 +no_defs "],"EPSG:4258":["EPSG:4258","+proj=longlat +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +no_defs "],"EPSG:2100":["EPSG:2100","+proj=tmerc +lat_0=0 +lon_0=24 +k=0.9996 +x_0=500000 +y_0=0 +datum=GGRS87 +units=m +no_defs "],"EPSG:32735":["EPSG:32735","+proj=utm +zone=35 +south +datum=WGS84 +units=m +no_defs "],"EPSG:26912":["EPSG:26912","+proj=utm +zone=12 +datum=NAD83 +units=m +no_defs "],"EPSG:32620":["EPSG:32620","+proj=utm +zone=20 +datum=WGS84 +units=m +no_defs "],"EPSG:31700":["EPSG:31700","+proj=sterea +lat_0=46 +lon_0=25 +k=0.99975 +x_0=500000 +y_0=500000 +ellps=krass +towgs84=28,-121,-77,0,0,0,0 +units=m +no_defs "],"EPSG:26958":["EPSG:26958","+proj=tmerc +lat_0=24.33333333333333 +lon_0=-81 +k=0.999941177 +x_0=200000 +y_0=0 +datum=NAD83 +units=m +no_defs "],"EPSG:4954":["EPSG:4954","+proj=geocent +ellps=GRS80 +units=m +no_defs "],"EPSG:32749":["EPSG:32749","+proj=utm +zone=49 +south +datum=WGS84 +units=m +no_defs "],"EPSG:2153":["EPSG:2153","+proj=utm +zone=11 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs "],"EPSG:32615":["EPSG:32615","+proj=utm +zone=15 +datum=WGS84 +units=m +no_defs "],"EPSG:32634":["EPSG:32634","+proj=utm +zone=34 +datum=WGS84 +units=m +no_defs "],"EPSG:28351":["EPSG:28351","+proj=utm +zone=51 +south +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs "],"EPSG:4267":["EPSG:4267","+proj=longlat +datum=NAD27 +no_defs "],"EPSG:2193":["EPSG:2193","+proj=tmerc +lat_0=0 +lon_0=173 +k=0.9996 +x_0=1600000 +y_0=10000000 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs "],"EPSG:28356":["EPSG:28356","+proj=utm +zone=56 +south +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs "],"EPSG:4197":["EPSG:4197","+proj=longlat +ellps=clrk80 +no_defs "],"EPSG:3832":["EPSG:3832","+proj=merc +lon_0=150 +k=1 +x_0=0 +y_0=0 +datum=WGS84 +units=m +no_defs "],"EPSG:26914":["EPSG:26914","+proj=utm +zone=14 +datum=NAD83 +units=m +no_defs "],"EPSG:31370":["EPSG:31370","+proj=lcc +lat_1=51.16666723333333 +lat_2=49.8333339 +lat_0=90 +lon_0=4.367486666666666 +x_0=150000.013 +y_0=5400088.438 +ellps=intl +towgs84=-106.8686,52.2978,-103.7239,0.3366,-0.457,1.8422,-1.2747 +units=m +no_defs "],"EPSG:3577":["EPSG:3577","+proj=aea +lat_1=-18 +lat_2=-36 +lat_0=0 +lon_0=132 +x_0=0 +y_0=0 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs "],"EPSG:32648":["EPSG:32648","+proj=utm +zone=48 +datum=WGS84 +units=m +no_defs "],"EPSG:3042":["EPSG:3042","+proj=utm +zone=30 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs "],"EPSG:4230":["EPSG:4230","+proj=longlat +ellps=intl +towgs84=-87,-98,-121,0,0,0,0 +no_defs "],"EPSG:3300":["EPSG:3300","+proj=lcc +lat_1=59.33333333333334 +lat_2=58 +lat_0=57.51755393055556 +lon_0=24 +x_0=500000 +y_0=6375000 +ellps=GRS80 +towgs84=0.055,-0.541,-0.185,0.0183,-0.0003,-0.007,-0.014 +units=m +no_defs "],"EPSG:3765":["EPSG:3765","+proj=tmerc +lat_0=0 +lon_0=16.5 +k=0.9999 +x_0=500000 +y_0=0 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs "],"EPSG:31468":["EPSG:31468","+proj=tmerc +lat_0=0 +lon_0=12 +k=1 +x_0=4500000 +y_0=0 +datum=potsdam +units=m +no_defs "],"EPSG:31467":["EPSG:31467","+proj=tmerc +lat_0=0 +lon_0=9 +k=1 +x_0=3500000 +y_0=0 +datum=potsdam +units=m +no_defs "],"EPSG:32721":["EPSG:32721","+proj=utm +zone=21 +south +datum=WGS84 +units=m +no_defs "],"EPSG:26710":["EPSG:26710","+proj=utm +zone=10 +datum=NAD27 +units=m +no_defs "],"EPSG:2829":["EPSG:2829","+proj=tmerc +lat_0=40 +lon_0=-76.58333333333333 +k=0.9999375 +x_0=250000 +y_0=0 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs "],"EPSG:2845":["EPSG:2845","+proj=lcc +lat_1=33.96666666666667 +lat_2=32.13333333333333 +lat_0=31.66666666666667 +lon_0=-98.5 +x_0=600000 +y_0=2000000 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs "],"EPSG:23884":["EPSG:23884","+proj=utm +zone=54 +south +ellps=WGS84 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs "],"EPSG:4824":["EPSG:4824","+proj=longlat +ellps=intl +no_defs "],"EPSG:32642":["EPSG:32642","+proj=utm +zone=42 +datum=WGS84 +units=m +no_defs "],"EPSG:3005":["EPSG:3005","+proj=aea +lat_1=50 +lat_2=58.5 +lat_0=45 +lon_0=-126 +x_0=1000000 +y_0=0 +datum=NAD83 +units=m +no_defs "],"EPSG:26915":["EPSG:26915","+proj=utm +zone=15 +datum=NAD83 +units=m +no_defs "],"EPSG:28355":["EPSG:28355","+proj=utm +zone=55 +south +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs "],"EPSG:32647":["EPSG:32647","+proj=utm +zone=47 +datum=WGS84 +units=m +no_defs "],"EPSG:26719":["EPSG:26719","+proj=utm +zone=19 +datum=NAD27 +units=m +no_defs "],"EPSG:5070":["EPSG:5070","+proj=aea +lat_1=29.5 +lat_2=45.5 +lat_0=23 +lon_0=-96 +x_0=0 +y_0=0 +datum=NAD83 +units=m +no_defs "],"EPSG:26910":["EPSG:26910","+proj=utm +zone=10 +datum=NAD83 +units=m +no_defs "],"EPSG:5534":["EPSG:5534","+proj=utm +zone=24 +south +ellps=aust_SA +towgs84=-67.35,3.88,-38.22,0,0,0,0 +units=m +no_defs "],"EPSG:4037":["EPSG:4037","+proj=utm +zone=35 +datum=WGS84 +units=m +no_defs "],"EPSG:26918":["EPSG:26918","+proj=utm +zone=18 +datum=NAD83 +units=m +no_defs "],"EPSG:3065":["EPSG:3065","+proj=utm +zone=33 +ellps=WGS84 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs "],"EPSG:2090":["EPSG:2090","+proj=utm +zone=39 +ellps=WGS84 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs "],"EPSG:2037":["EPSG:2037","+proj=utm +zone=19 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs "],"EPSG:26913":["EPSG:26913","+proj=utm +zone=13 +datum=NAD83 +units=m +no_defs "],"EPSG:23030":["EPSG:23030","+proj=utm +zone=30 +ellps=intl +towgs84=-87,-98,-121,0,0,0,0 +units=m +no_defs "],"EPSG:23879":["EPSG:23879","+proj=utm +zone=49 +south +ellps=WGS84 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs "],"EPSG:5552":["EPSG:5552","+proj=utm +zone=56 +south +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs "],"EPSG:28350":["EPSG:28350","+proj=utm +zone=50 +south +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs "],"EPSG:23032":["EPSG:23032","+proj=utm +zone=32 +ellps=intl +towgs84=-87,-98,-121,0,0,0,0 +units=m +no_defs "],"EPSG:3067":["EPSG:3067","+proj=utm +zone=35 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs "],"EPSG:4055":["EPSG:4055","+proj=longlat +a=6378137 +b=6378137 +towgs84=0,0,0,0,0,0,0 +no_defs "],"EPSG:2039":["EPSG:2039","+proj=tmerc +lat_0=31.73439361111111 +lon_0=35.20451694444445 +k=1.0000067 +x_0=219529.584 +y_0=626907.39 +ellps=GRS80 +towgs84=-48,55,52,0,0,0,0 +units=m +no_defs "],"EPSG:4265":["EPSG:4265","+proj=longlat +ellps=intl +towgs84=-104.1,-49.1,-9.9,0.971,-2.917,0.714,-11.68 +no_defs "],"EPSG:26714":["EPSG:26714","+proj=utm +zone=14 +datum=NAD27 +units=m +no_defs "],"EPSG:26717":["EPSG:26717","+proj=utm +zone=17 +datum=NAD27 +units=m +no_defs "],"EPSG:32652":["EPSG:32652","+proj=utm +zone=52 +datum=WGS84 +units=m +no_defs "],"EPSG:32619":["EPSG:32619","+proj=utm +zone=19 +datum=WGS84 +units=m +no_defs "],"EPSG:32750":["EPSG:32750","+proj=utm +zone=50 +south +datum=WGS84 +units=m +no_defs "],"EPSG:3349":["EPSG:3349","+proj=merc +lon_0=-150 +k=1 +x_0=0 +y_0=0 +datum=WGS84 +units=m +no_defs "],"EPSG:32737":["EPSG:32737","+proj=utm +zone=37 +south +datum=WGS84 +units=m +no_defs "],"EPSG:31984":["EPSG:31984","+proj=utm +zone=24 +south +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs "],"EPSG:32756":["EPSG:32756","+proj=utm +zone=56 +south +datum=WGS84 +units=m +no_defs "],"EPSG:31287":["EPSG:31287","+proj=lcc +lat_1=49 +lat_2=46 +lat_0=47.5 +lon_0=13.33333333333333 +x_0=400000 +y_0=400000 +datum=hermannskogel +units=m +no_defs "],"EPSG:25833":["EPSG:25833","+proj=utm +zone=33 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs "],"EPSG:3003":["EPSG:3003","+proj=tmerc +lat_0=0 +lon_0=9 +k=0.9996 +x_0=1500000 +y_0=0 +ellps=intl +towgs84=-104.1,-49.1,-9.9,0.971,-2.917,0.714,-11.68 +units=m +no_defs "],"EPSG:32724":["EPSG:32724","+proj=utm +zone=24 +south +datum=WGS84 +units=m +no_defs "],"EPSG:32723":["EPSG:32723","+proj=utm +zone=23 +south +datum=WGS84 +units=m +no_defs "],"EPSG:5531":["EPSG:5531","+proj=utm +zone=21 +south +ellps=aust_SA +towgs84=-67.35,3.88,-38.22,0,0,0,0 +units=m +no_defs "],"EPSG:4328":["EPSG:4328","+proj=geocent +datum=WGS84 +units=m +no_defs "],"EPSG:2151":["EPSG:2151","+proj=utm +zone=13 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs "],"EPSG:4807":["EPSG:4807","+proj=longlat +a=6378249.2 +b=6356515 +towgs84=-168,-60,320,0,0,0,0 +pm=paris +no_defs "],"EPSG:32629":["EPSG:32629","+proj=utm +zone=29 +datum=WGS84 +units=m +no_defs "],"EPSG:26916":["EPSG:26916","+proj=utm +zone=16 +datum=NAD83 +units=m +no_defs "],"EPSG:26894":["EPSG:26894","+proj=tmerc +lat_0=0 +lon_0=-87 +k=0.9999 +x_0=304800 +y_0=0 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs "],"EPSG:27393":["EPSG:27393","+proj=tmerc +lat_0=58 +lon_0=0 +k=1 +x_0=0 +y_0=0 +a=6377492.018 +b=6356173.508712696 +towgs84=278.3,93,474.5,7.889,0.05,-6.61,6.21 +pm=oslo +units=m +no_defs "],"EPSG:7415":["EPSG:7415","+proj=sterea +lat_0=52.15616055555555 +lon_0=5.38763888888889 +k=0.9999079 +x_0=155000 +y_0=463000 +ellps=bessel +towgs84=565.4171,50.3319,465.5524,-0.398957,0.343988,-1.87740,4.0725 +units=m +vunits=m +no_defs "],"EPSG:2400":["EPSG:2400","+proj=tmerc +lat_0=0 +lon_0=15.80827777777778 +k=1 +x_0=1500000 +y_0=0 +ellps=bessel +towgs84=414.1,41.3,603.1,-0.855,2.141,-7.023,0 +units=m +no_defs "],"EPSG:3111":["EPSG:3111","+proj=lcc +lat_1=-36 +lat_2=-38 +lat_0=-37 +lon_0=145 +x_0=2500000 +y_0=2500000 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs "],"EPSG:28353":["EPSG:28353","+proj=utm +zone=53 +south +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs "],"EPSG:2230":["EPSG:2230","+proj=lcc +lat_1=33.88333333333333 +lat_2=32.78333333333333 +lat_0=32.16666666666666 +lon_0=-116.25 +x_0=2000000.0001016 +y_0=500000.0001016001 +datum=NAD83 +units=us-ft +no_defs "],"EPSG:27040":["EPSG:27040","+proj=utm +zone=40 +ellps=clrk80 +towgs84=-249,-156,381,0,0,0,0 +units=m +no_defs "],"EPSG:2815":["EPSG:2815","+proj=tmerc +lat_0=35.83333333333334 +lon_0=-90.5 +k=0.999933333 +x_0=250000 +y_0=0 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs "],"EPSG:29101":["EPSG:29101","+proj=poly +lat_0=0 +lon_0=-54 +x_0=5000000 +y_0=10000000 +ellps=aust_SA +towgs84=-66.87,4.37,-38.52,0,0,0,0 +units=m +no_defs "],"EPSG:4618":["EPSG:4618","+proj=longlat +ellps=aust_SA +towgs84=-66.87,4.37,-38.52,0,0,0,0 +no_defs "],"EPSG:2989":["EPSG:2989","+proj=utm +zone=20 +ellps=WGS84 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs "],"EPSG:32757":["EPSG:32757","+proj=utm +zone=57 +south +datum=WGS84 +units=m +no_defs "],"EPSG:2089":["EPSG:2089","+proj=utm +zone=38 +ellps=WGS84 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs "],"EPSG:2220":["EPSG:2220","+proj=utm +zone=20 +a=6378135 +b=6356750.304921594 +units=m +no_defs "],"EPSG:3310":["EPSG:3310","+proj=aea +lat_1=34 +lat_2=40.5 +lat_0=0 +lon_0=-120 +x_0=0 +y_0=-4000000 +datum=NAD83 +units=m +no_defs "],"EPSG:3132":["EPSG:3132","+proj=tmerc +lat_0=0 +lon_0=25 +k=1 +x_0=500000 +y_0=0 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs "],"EPSG:2163":["EPSG:2163","+proj=laea +lat_0=45 +lon_0=-100 +x_0=0 +y_0=0 +a=6370997 +b=6370997 +units=m +no_defs "],"EPSG:32754":["EPSG:32754","+proj=utm +zone=54 +south +datum=WGS84 +units=m +no_defs "],"EPSG:26331":["EPSG:26331","+proj=utm +zone=31 +ellps=clrk80 +towgs84=-92,-93,122,0,0,0,0 +units=m +no_defs "],"EPSG:32213":["EPSG:32213","+proj=utm +zone=13 +ellps=WGS72 +towgs84=0,0,4.5,0,0,0.554,0.2263 +units=m +no_defs "],"EPSG:5533":["EPSG:5533","+proj=utm +zone=23 +south +ellps=aust_SA +towgs84=-67.35,3.88,-38.22,0,0,0,0 +units=m +no_defs "],"EPSG:4180":["EPSG:4180","+proj=longlat +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +no_defs "],"EPSG:3734":["EPSG:3734","+proj=lcc +lat_1=41.7 +lat_2=40.43333333333333 +lat_0=39.66666666666666 +lon_0=-82.5 +x_0=600000 +y_0=0 +datum=NAD83 +units=us-ft +no_defs "],"EPSG:3821":["EPSG:3821","+proj=longlat +ellps=aust_SA +no_defs "],"EPSG:3301":["EPSG:3301","+proj=lcc +lat_1=59.33333333333334 +lat_2=58 +lat_0=57.51755393055556 +lon_0=24 +x_0=500000 +y_0=6375000 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs "],"EPSG:3763":["EPSG:3763","+proj=tmerc +lat_0=39.66825833333333 +lon_0=-8.133108333333334 +k=1 +x_0=0 +y_0=0 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs "],"EPSG:31983":["EPSG:31983","+proj=utm +zone=23 +south +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs "],"EPSG:4214":["EPSG:4214","+proj=longlat +ellps=krass +towgs84=15.8,-154.4,-82.3,0,0,0,0 +no_defs "],"EPSG:32755":["EPSG:32755","+proj=utm +zone=55 +south +datum=WGS84 +units=m +no_defs "],"EPSG:2905":["EPSG:2905","+proj=tmerc +lat_0=38.83333333333334 +lon_0=-74.5 +k=0.9999 +x_0=150000 +y_0=0 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=us-ft +no_defs "],"EPSG:2906":["EPSG:2906","+proj=tmerc +lat_0=40 +lon_0=-76.58333333333333 +k=0.9999375 +x_0=249999.9998983998 +y_0=0 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=us-ft +no_defs "],"EPSG:2260":["EPSG:2260","+proj=tmerc +lat_0=38.83333333333334 +lon_0=-74.5 +k=0.9999 +x_0=150000 +y_0=0 +datum=NAD83 +units=us-ft +no_defs "],"EPSG:2263":["EPSG:2263","+proj=lcc +lat_1=41.03333333333333 +lat_2=40.66666666666666 +lat_0=40.16666666666666 +lon_0=-74 +x_0=300000.0000000001 +y_0=0 +datum=NAD83 +units=us-ft +no_defs "],"EPSG:32621":["EPSG:32621","+proj=utm +zone=21 +datum=WGS84 +units=m +no_defs "],"EPSG:23033":["EPSG:23033","+proj=utm +zone=33 +ellps=intl +towgs84=-87,-98,-121,0,0,0,0 +units=m +no_defs "],"EPSG:32655":["EPSG:32655","+proj=utm +zone=55 +datum=WGS84 +units=m +no_defs "],"EPSG:3160":["EPSG:3160","+proj=utm +zone=16 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs "],"EPSG:3452":["EPSG:3452","+proj=lcc +lat_1=30.7 +lat_2=29.3 +lat_0=28.5 +lon_0=-91.33333333333333 +x_0=999999.9999898402 +y_0=0 +datum=NAD83 +units=us-ft +no_defs "],"EPSG:23029":["EPSG:23029","+proj=utm +zone=29 +ellps=intl +towgs84=-87,-98,-121,0,0,0,0 +units=m +no_defs "],"EPSG:3397":["EPSG:3397","+proj=tmerc +lat_0=0 +lon_0=12 +k=1 +x_0=4500000 +y_0=0 +ellps=bessel +units=m +no_defs "],"EPSG:31464":["EPSG:31464","+proj=tmerc +lat_0=0 +lon_0=12 +k=1 +x_0=4500000 +y_0=0 +datum=potsdam +units=m +no_defs "],"EPSG:3978":["EPSG:3978","+proj=lcc +lat_1=49 +lat_2=77 +lat_0=49 +lon_0=-95 +x_0=0 +y_0=0 +datum=NAD83 +units=m +no_defs "],"EPSG:3011":["EPSG:3011","+proj=tmerc +lat_0=0 +lon_0=18 +k=1 +x_0=150000 +y_0=0 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs "],"EPSG:3098":["EPSG:3098","+proj=utm +zone=52 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs "],"EPSG:25830":["EPSG:25830","+proj=utm +zone=30 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs "],"EPSG:2812":["EPSG:2812","+proj=lcc +lat_1=45.21666666666667 +lat_2=43.78333333333333 +lat_0=43 +lon_0=-94 +x_0=800000 +y_0=100000 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs "],"EPSG:4313":["EPSG:4313","+proj=longlat +ellps=intl +towgs84=-106.8686,52.2978,-103.7239,0.3366,-0.457,1.8422,-1.2747 +no_defs "],"EPSG:2169":["EPSG:2169","+proj=tmerc +lat_0=49.83333333333334 +lon_0=6.166666666666667 +k=1 +x_0=80000 +y_0=100000 +ellps=intl +towgs84=-189.6806,18.3463,-42.7695,-0.33746,-3.09264,2.53861,0.4598 +units=m +no_defs "],"EPSG:29872":["EPSG:29872","+proj=omerc +lat_0=4 +lonc=115 +alpha=53.31582047222222 +k=0.99984 +x_0=590476.8727431979 +y_0=442857.6545573985 +gamma=53.13010236111111 +ellps=evrstSS +towgs84=-679,669,-48,0,0,0,0 +to_meter=0.3047994715386762 +no_defs "],"EPSG:4128":["EPSG:4128","+proj=longlat +ellps=clrk66 +no_defs "],"EPSG:26716":["EPSG:26716","+proj=utm +zone=16 +datum=NAD27 +units=m +no_defs "],"EPSG:3449":["EPSG:3449","+proj=utm +zone=17 +ellps=WGS84 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs "],"EPSG:32649":["EPSG:32649","+proj=utm +zone=49 +datum=WGS84 +units=m +no_defs "],"EPSG:2274":["EPSG:2274","+proj=lcc +lat_1=36.41666666666666 +lat_2=35.25 +lat_0=34.33333333333334 +lon_0=-86 +x_0=600000 +y_0=0 +datum=NAD83 +units=us-ft +no_defs "],"EPSG:3112":["EPSG:3112","+proj=lcc +lat_1=-18 +lat_2=-36 +lat_0=0 +lon_0=134 +x_0=0 +y_0=0 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs "],"EPSG:32612":["EPSG:32612","+proj=utm +zone=12 +datum=WGS84 +units=m +no_defs "],"EPSG:5072":["EPSG:5072","+proj=aea +lat_1=29.5 +lat_2=45.5 +lat_0=23 +lon_0=-96 +x_0=0 +y_0=0 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs "],"EPSG:2393":["EPSG:2393","+proj=tmerc +lat_0=0 +lon_0=27 +k=1 +x_0=3500000 +y_0=0 +ellps=intl +towgs84=-96.062,-82.428,-121.753,4.801,0.345,-1.376,1.496 +units=m +no_defs "],"EPSG:32720":["EPSG:32720","+proj=utm +zone=20 +south +datum=WGS84 +units=m +no_defs "],"EPSG:31285":["EPSG:31285","+proj=tmerc +lat_0=0 +lon_0=13.33333333333333 +k=1 +x_0=450000 +y_0=0 +datum=hermannskogel +units=m +no_defs "],"EPSG:28352":["EPSG:28352","+proj=utm +zone=52 +south +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs "],"EPSG:3049":["EPSG:3049","+proj=utm +zone=37 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs "],"EPSG:32045":["EPSG:32045","+proj=tmerc +lat_0=42.5 +lon_0=-72.5 +k=0.999964286 +x_0=152400.3048006096 +y_0=0 +datum=NAD27 +units=us-ft +no_defs "],"EPSG:3071":["EPSG:3071","+proj=tmerc +lat_0=0 +lon_0=-90 +k=0.9996 +x_0=520000 +y_0=-4480000 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs "],"EPSG:3338":["EPSG:3338","+proj=aea +lat_1=55 +lat_2=65 +lat_0=50 +lon_0=-154 +x_0=0 +y_0=0 +datum=NAD83 +units=m +no_defs "],"EPSG:32751":["EPSG:32751","+proj=utm +zone=51 +south +datum=WGS84 +units=m +no_defs "],"EPSG:27493":["EPSG:27493","+proj=tmerc +lat_0=39.66666666666666 +lon_0=-8.131906111111112 +k=1 +x_0=180.598 +y_0=-86.98999999999999 +ellps=intl +towgs84=-223.237,110.193,36.649,0,0,0,0 +units=m +no_defs "],"EPSG:3943":["EPSG:3943","+proj=lcc +lat_1=42.25 +lat_2=43.75 +lat_0=43 +lon_0=3 +x_0=1700000 +y_0=2200000 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs "],"EPSG:4815":["EPSG:4815","+proj=longlat +ellps=bessel +pm=athens +no_defs "],"EPSG:4619":["EPSG:4619","+proj=longlat +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +no_defs "],"EPSG:2228":["EPSG:2228","+proj=lcc +lat_1=37.25 +lat_2=36 +lat_0=35.33333333333334 +lon_0=-119 +x_0=2000000.0001016 +y_0=500000.0001016001 +datum=NAD83 +units=us-ft +no_defs "],"EPSG:2157":["EPSG:2157","+proj=tmerc +lat_0=53.5 +lon_0=-8 +k=0.99982 +x_0=600000 +y_0=750000 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs "],"EPSG:2229":["EPSG:2229","+proj=lcc +lat_1=35.46666666666667 +lat_2=34.03333333333333 +lat_0=33.5 +lon_0=-118 +x_0=2000000.0001016 +y_0=500000.0001016001 +datum=NAD83 +units=us-ft +no_defs "],"EPSG:4289":["EPSG:4289","+proj=longlat +ellps=bessel +towgs84=565.4171,50.3319,465.5524,-0.398957,0.343988,-1.87740,4.0725 +no_defs "],"EPSG:3113":["EPSG:3113","+proj=tmerc +lat_0=-28 +lon_0=153 +k=0.99999 +x_0=50000 +y_0=100000 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs "],"EPSG:2152":["EPSG:2152","+proj=utm +zone=12 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs "],"EPSG:4171":["EPSG:4171","+proj=longlat +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +no_defs "],"EPSG:4317":["EPSG:4317","+proj=longlat +ellps=krass +towgs84=28,-121,-77,0,0,0,0 +no_defs "],"EPSG:4956":["EPSG:4956","+proj=geocent +ellps=GRS80 +units=m +no_defs "],"EPSG:32623":["EPSG:32623","+proj=utm +zone=23 +datum=WGS84 +units=m +no_defs "],"EPSG:24719":["EPSG:24719","+proj=utm +zone=19 +ellps=intl +towgs84=-273.5,110.6,-357.9,0,0,0,0 +units=m +no_defs "],"EPSG:3157":["EPSG:3157","+proj=utm +zone=10 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs "],"EPSG:2900":["EPSG:2900","+proj=tmerc +lat_0=29.5 +lon_0=-90.33333333333333 +k=0.99995 +x_0=699999.9998983998 +y_0=0 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=us-ft +no_defs "],"EPSG:26718":["EPSG:26718","+proj=utm +zone=18 +datum=NAD27 +units=m +no_defs "],"EPSG:32628":["EPSG:32628","+proj=utm +zone=28 +datum=WGS84 +units=m +no_defs "],"EPSG:4938":["EPSG:4938","+proj=geocent +ellps=GRS80 +units=m +no_defs "],"EPSG:29193":["EPSG:29193","+proj=utm +zone=23 +south +ellps=aust_SA +towgs84=-66.87,4.37,-38.52,0,0,0,0 +units=m +no_defs "],"EPSG:4025":["EPSG:4025","+proj=longlat +ellps=WGS66 +no_defs "],"EPSG:31276":["EPSG:31276","+proj=tmerc +lat_0=0 +lon_0=18 +k=0.9999 +x_0=6500000 +y_0=0 +datum=hermannskogel +units=m +no_defs "],"EPSG:4322":["EPSG:4322","+proj=longlat +ellps=WGS72 +towgs84=0,0,4.5,0,0,0.554,0.2263 +no_defs "],"EPSG:4826":["EPSG:4826","+proj=lcc +lat_1=15 +lat_2=16.66666666666667 +lat_0=15.83333333333333 +lon_0=-24 +x_0=161587.83 +y_0=128511.202 +datum=WGS84 +units=m +no_defs "],"EPSG:2262":["EPSG:2262","+proj=tmerc +lat_0=40 +lon_0=-78.58333333333333 +k=0.9999375 +x_0=350000.0001016001 +y_0=0 +datum=NAD83 +units=us-ft +no_defs "],"EPSG:2264":["EPSG:2264","+proj=lcc +lat_1=36.16666666666666 +lat_2=34.33333333333334 +lat_0=33.75 +lon_0=-79 +x_0=609601.2192024384 +y_0=0 +datum=NAD83 +units=us-ft +no_defs "],"EPSG:2811":["EPSG:2811","+proj=lcc +lat_1=47.05 +lat_2=45.61666666666667 +lat_0=45 +lon_0=-94.25 +x_0=800000 +y_0=100000 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs "],"EPSG:3116":["EPSG:3116","+proj=tmerc +lat_0=4.596200416666666 +lon_0=-74.07750791666666 +k=1 +x_0=1000000 +y_0=1000000 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs "],"EPSG:4940":["EPSG:4940","+proj=geocent +ellps=WGS84 +units=m +no_defs "],"EPSG:3975":["EPSG:3975","+proj=cea +lon_0=0 +lat_ts=30 +x_0=0 +y_0=0 +datum=WGS84 +units=m +no_defs "],"EPSG:26715":["EPSG:26715","+proj=utm +zone=15 +datum=NAD27 +units=m +no_defs "],"EPSG:2956":["EPSG:2956","+proj=utm +zone=12 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs "],"EPSG:26917":["EPSG:26917","+proj=utm +zone=17 +datum=NAD83 +units=m +no_defs "],"EPSG:26920":["EPSG:26920","+proj=utm +zone=20 +datum=NAD83 +units=m +no_defs "],"EPSG:4806":["EPSG:4806","+proj=longlat +ellps=intl +towgs84=-104.1,-49.1,-9.9,0.971,-2.917,0.714,-11.68 +pm=rome +no_defs "],"EPSG:32622":["EPSG:32622","+proj=utm +zone=22 +datum=WGS84 +units=m +no_defs "],"EPSG:3413":["EPSG:3413","+proj=stere +lat_0=90 +lat_ts=70 +lon_0=-45 +k=1 +x_0=0 +y_0=0 +datum=WGS84 +units=m +no_defs "],"EPSG:3009":["EPSG:3009","+proj=tmerc +lat_0=0 +lon_0=15 +k=1 +x_0=150000 +y_0=0 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs "],"EPSG:5256":["EPSG:5256","+proj=tmerc +lat_0=0 +lon_0=36 +k=1 +x_0=500000 +y_0=0 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs "],"EPSG:28991":["EPSG:28991","+proj=sterea +lat_0=52.15616055555555 +lon_0=5.38763888888889 +k=0.9999079 +x_0=0 +y_0=0 +ellps=bessel +towgs84=565.4171,50.3319,465.5524,-0.398957,0.343988,-1.87740,4.0725 +units=m +no_defs "],"EPSG:32747":["EPSG:32747","+proj=utm +zone=47 +south +datum=WGS84 +units=m +no_defs "],"EPSG:4148":["EPSG:4148","+proj=longlat +ellps=WGS84 +towgs84=0,0,0,0,0,0,0 +no_defs "],"EPSG:2004":["EPSG:2004","+proj=tmerc +lat_0=0 +lon_0=-62 +k=0.9995000000000001 +x_0=400000 +y_0=0 +ellps=clrk80 +towgs84=174,359,365,0,0,0,0 +units=m +no_defs "],"EPSG:4210":["EPSG:4210","+proj=longlat +ellps=clrk80 +towgs84=-160,-6,-302,0,0,0,0 +no_defs "],"EPSG:31254":["EPSG:31254","+proj=tmerc +lat_0=0 +lon_0=10.33333333333333 +k=1 +x_0=0 +y_0=-5000000 +datum=hermannskogel +units=m +no_defs "],"EPSG:29902":["EPSG:29902","+proj=tmerc +lat_0=53.5 +lon_0=-8 +k=1.000035 +x_0=200000 +y_0=250000 +datum=ire65 +units=m +no_defs "],"EPSG:3828":["EPSG:3828","+proj=tmerc +lat_0=0 +lon_0=121 +k=0.9999 +x_0=250000 +y_0=0 +ellps=aust_SA +units=m +no_defs "],"EPSG:3578":["EPSG:3578","+proj=aea +lat_1=61.66666666666666 +lat_2=68 +lat_0=59 +lon_0=-132.5 +x_0=500000 +y_0=500000 +datum=NAD83 +units=m +no_defs "],"EPSG:4483":["EPSG:4483","+proj=longlat +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +no_defs "],"EPSG:31463":["EPSG:31463","+proj=tmerc +lat_0=0 +lon_0=9 +k=1 +x_0=3500000 +y_0=0 +datum=potsdam +units=m +no_defs "],"EPSG:23036":["EPSG:23036","+proj=utm +zone=36 +ellps=intl +towgs84=-87,-98,-121,0,0,0,0 +units=m +no_defs "],"EPSG:5550":["EPSG:5550","+proj=utm +zone=54 +south +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs "],"EPSG:3158":["EPSG:3158","+proj=utm +zone=14 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs "],"EPSG:32717":["EPSG:32717","+proj=utm +zone=17 +south +datum=WGS84 +units=m +no_defs "],"EPSG:2285":["EPSG:2285","+proj=lcc +lat_1=48.73333333333333 +lat_2=47.5 +lat_0=47 +lon_0=-120.8333333333333 +x_0=500000.0001016001 +y_0=0 +datum=NAD83 +units=us-ft +no_defs "],"EPSG:24048":["EPSG:24048","+proj=utm +zone=48 +a=6377276.345 +b=6356075.41314024 +towgs84=210,814,289,0,0,0,0 +units=m +no_defs "],"EPSG:27572":["EPSG:27572","+proj=lcc +lat_1=46.8 +lat_0=46.8 +lon_0=0 +k_0=0.99987742 +x_0=600000 +y_0=2200000 +a=6378249.2 +b=6356515 +towgs84=-168,-60,320,0,0,0,0 +pm=paris +units=m +no_defs "],"EPSG:26996":["EPSG:26996","+proj=tmerc +lat_0=35.83333333333334 +lon_0=-90.5 +k=0.999933333 +x_0=250000 +y_0=0 +datum=NAD83 +units=m +no_defs "],"EPSG:3027":["EPSG:3027","+proj=tmerc +lat_0=0 +lon_0=15.80827777777778 +k=1 +x_0=1500000 +y_0=0 +ellps=bessel +units=m +no_defs "],"EPSG:27562":["EPSG:27562","+proj=lcc +lat_1=46.8 +lat_0=46.8 +lon_0=0 +k_0=0.99987742 +x_0=600000 +y_0=200000 +a=6378249.2 +b=6356515 +towgs84=-168,-60,320,0,0,0,0 +pm=paris +units=m +no_defs "],"EPSG:3553":["EPSG:3553","+proj=lcc +lat_1=30.7 +lat_2=29.3 +lat_0=28.5 +lon_0=-91.33333333333333 +x_0=999999.9999898402 +y_0=0 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=us-ft +no_defs "],"EPSG:3034":["EPSG:3034","+proj=lcc +lat_1=35 +lat_2=65 +lat_0=52 +lon_0=10 +x_0=4000000 +y_0=2800000 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs "],"EPSG:26778":["EPSG:26778","+proj=lcc +lat_1=38.56666666666667 +lat_2=37.26666666666667 +lat_0=36.66666666666666 +lon_0=-98.5 +x_0=609601.2192024384 +y_0=0 +datum=NAD27 +units=us-ft +no_defs "],"EPSG:31297":["EPSG:31297","+proj=lcc +lat_1=49 +lat_2=46 +lat_0=47.5 +lon_0=13.33333333333333 +x_0=400000 +y_0=400000 +datum=hermannskogel +units=m +no_defs "],"EPSG:4274":["EPSG:4274","+proj=longlat +ellps=intl +towgs84=-223.237,110.193,36.649,0,0,0,0 +no_defs "],"EPSG:3046":["EPSG:3046","+proj=utm +zone=34 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs "],"EPSG:4896":["EPSG:4896","+proj=geocent +ellps=GRS80 +units=m +no_defs "],"EPSG:3008":["EPSG:3008","+proj=tmerc +lat_0=0 +lon_0=13.5 +k=1 +x_0=150000 +y_0=0 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs "],"EPSG:2907":["EPSG:2907","+proj=tmerc +lat_0=40 +lon_0=-78.58333333333333 +k=0.9999375 +x_0=350000.0001016001 +y_0=0 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=us-ft +no_defs "],"EPSG:26591":["EPSG:26591","+proj=tmerc +lat_0=0 +lon_0=-3.45233333333333 +k=0.9996 +x_0=1500000 +y_0=0 +ellps=intl +towgs84=-104.1,-49.1,-9.9,0.971,-2.917,0.714,-11.68 +pm=rome +units=m +no_defs "],"EPSG:23035":["EPSG:23035","+proj=utm +zone=35 +ellps=intl +towgs84=-87,-98,-121,0,0,0,0 +units=m +no_defs "],"EPSG:5367":["EPSG:5367","+proj=tmerc +lat_0=0 +lon_0=-84 +k=0.9999 +x_0=500000 +y_0=0 +ellps=WGS84 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs "],"EPSG:21892":["EPSG:21892","+proj=tmerc +lat_0=4.599047222222222 +lon_0=-74.08091666666667 +k=1 +x_0=1000000 +y_0=1000000 +ellps=intl +towgs84=307,304,-318,0,0,0,0 +units=m +no_defs "],"EPSG:2226":["EPSG:2226","+proj=lcc +lat_1=39.83333333333334 +lat_2=38.33333333333334 +lat_0=37.66666666666666 +lon_0=-122 +x_0=2000000.0001016 +y_0=500000.0001016001 +datum=NAD83 +units=us-ft +no_defs "],"EPSG:20790":["EPSG:20790","+proj=tmerc +lat_0=39.66666666666666 +lon_0=1 +k=1 +x_0=200000 +y_0=300000 +ellps=intl +towgs84=-304.046,-60.576,103.64,0,0,0,0 +pm=lisbon +units=m +no_defs "],"EPSG:2902":["EPSG:2902","+proj=tmerc +lat_0=31 +lon_0=-104.3333333333333 +k=0.999909091 +x_0=165000 +y_0=0 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=us-ft +no_defs "],"EPSG:2176":["EPSG:2176","+proj=tmerc +lat_0=0 +lon_0=15 +k=0.999923 +x_0=5500000 +y_0=0 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs "],"EPSG:29180":["EPSG:29180","+proj=utm +zone=20 +south +ellps=GRS67 +towgs84=-57,1,-41,0,0,0,0 +units=m +no_defs "],"EPSG:3163":["EPSG:3163","+proj=lcc +lat_1=-20.66666666666667 +lat_2=-22.33333333333333 +lat_0=-21.5 +lon_0=166 +x_0=400000 +y_0=300000 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs "],"EPSG:24047":["EPSG:24047","+proj=utm +zone=47 +a=6377276.345 +b=6356075.41314024 +towgs84=210,814,289,0,0,0,0 +units=m +no_defs "],"EPSG:4479":["EPSG:4479","+proj=geocent +ellps=GRS80 +units=m +no_defs "],"EPSG:27563":["EPSG:27563","+proj=lcc +lat_1=44.10000000000001 +lat_0=44.10000000000001 +lon_0=0 +k_0=0.999877499 +x_0=600000 +y_0=200000 +a=6378249.2 +b=6356515 +towgs84=-168,-60,320,0,0,0,0 +pm=paris +units=m +no_defs "],"EPSG:3057":["EPSG:3057","+proj=lcc +lat_1=64.25 +lat_2=65.75 +lat_0=65 +lon_0=-19 +x_0=500000 +y_0=500000 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs "],"EPSG:29191":["EPSG:29191","+proj=utm +zone=21 +south +ellps=aust_SA +towgs84=-66.87,4.37,-38.52,0,0,0,0 +units=m +no_defs "],"EPSG:2177":["EPSG:2177","+proj=tmerc +lat_0=0 +lon_0=18 +k=0.999923 +x_0=6500000 +y_0=0 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs "],"EPSG:32139":["EPSG:32139","+proj=lcc +lat_1=31.88333333333333 +lat_2=30.11666666666667 +lat_0=29.66666666666667 +lon_0=-100.3333333333333 +x_0=700000 +y_0=3000000 +datum=NAD83 +units=m +no_defs "],"EPSG:3616":["EPSG:3616","+proj=tmerc +lat_0=38.83333333333334 +lon_0=-74.5 +k=0.9999 +x_0=150000 +y_0=0 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=us-ft +no_defs "],"EPSG:2223":["EPSG:2223","+proj=tmerc +lat_0=31 +lon_0=-111.9166666666667 +k=0.9999 +x_0=213360 +y_0=0 +datum=NAD83 +units=ft +no_defs "],"EPSG:32019":["EPSG:32019","+proj=lcc +lat_1=34.33333333333334 +lat_2=36.16666666666666 +lat_0=33.75 +lon_0=-79 +x_0=609601.2192024384 +y_0=0 +datum=NAD27 +units=us-ft +no_defs "],"EPSG:26753":["EPSG:26753","+proj=lcc +lat_1=39.71666666666667 +lat_2=40.78333333333333 +lat_0=39.33333333333334 +lon_0=-105.5 +x_0=609601.2192024384 +y_0=0 +datum=NAD27 +units=us-ft +no_defs "],"EPSG:32654":["EPSG:32654","+proj=utm +zone=54 +datum=WGS84 +units=m +no_defs "],"EPSG:26904":["EPSG:26904","+proj=utm +zone=4 +datum=NAD83 +units=m +no_defs "],"EPSG:5018":["EPSG:5018","+proj=tmerc +lat_0=39.66666666666666 +lon_0=-8.131906111111112 +k=1 +x_0=0 +y_0=0 +ellps=intl +towgs84=-304.046,-60.576,103.64,0,0,0,0 +units=m +no_defs "],"EPSG:21096":["EPSG:21096","+proj=utm +zone=36 +ellps=clrk80 +towgs84=-160,-6,-302,0,0,0,0 +units=m +no_defs "],"EPSG:3822":["EPSG:3822","+proj=geocent +ellps=GRS80 +units=m +no_defs "],"EPSG:3457":["EPSG:3457","+proj=lcc +lat_1=30.7 +lat_2=29.3 +lat_0=28.5 +lon_0=-91.33333333333333 +x_0=999999.9999898402 +y_0=0 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=us-ft +no_defs "],"EPSG:30800":["EPSG:30800","+proj=tmerc +lat_0=0 +lon_0=15.80827777777778 +k=1 +x_0=1500000 +y_0=0 +ellps=bessel +units=m +no_defs "],"EPSG:2065":["EPSG:2065","+proj=krovak +lat_0=49.5 +lon_0=42.5 +alpha=30.28813972222222 +k=0.9999 +x_0=0 +y_0=0 +ellps=bessel +towgs84=570.8,85.7,462.8,4.998,1.587,5.261,3.56 +pm=ferro +units=m +no_defs "],"EPSG:3346":["EPSG:3346","+proj=tmerc +lat_0=0 +lon_0=24 +k=0.9998 +x_0=500000 +y_0=0 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs "],"EPSG:3432":["EPSG:3432","+proj=tmerc +lat_0=38.83333333333334 +lon_0=-74.5 +k=0.9999 +x_0=150000 +y_0=0 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=us-ft +no_defs "],"EPSG:3290":["EPSG:3290","+proj=stere +lat_0=-90 +lat_ts=-80.23861111111111 +lon_0=30 +k=1 +x_0=0 +y_0=0 +datum=WGS84 +units=m +no_defs "],"EPSG:26967":["EPSG:26967","+proj=tmerc +lat_0=30 +lon_0=-84.16666666666667 +k=0.9999 +x_0=700000 +y_0=0 +datum=NAD83 +units=m +no_defs "],"EPSG:2326":["EPSG:2326","+proj=tmerc +lat_0=22.31213333333334 +lon_0=114.1785555555556 +k=1 +x_0=836694.05 +y_0=819069.8 +ellps=intl +towgs84=-162.619,-276.959,-161.764,0.067753,-2.243649,-1.158827,-1.094246 +units=m +no_defs "],"EPSG:2927":["EPSG:2927","+proj=lcc +lat_1=47.33333333333334 +lat_2=45.83333333333334 +lat_0=45.33333333333334 +lon_0=-120.5 +x_0=500000.0001016001 +y_0=0 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=us-ft +no_defs "],"EPSG:3153":["EPSG:3153","+proj=aea +lat_1=50 +lat_2=58.5 +lat_0=45 +lon_0=-126 +x_0=1000000 +y_0=0 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs "],"EPSG:4162":["EPSG:4162","+proj=longlat +ellps=bessel +no_defs "],"EPSG:25829":["EPSG:25829","+proj=utm +zone=29 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs "],"EPSG:4936":["EPSG:4936","+proj=geocent +ellps=GRS80 +units=m +no_defs "],"EPSG:4385":["EPSG:4385","+proj=geocent +ellps=GRS80 +units=m +no_defs "],"EPSG:25828":["EPSG:25828","+proj=utm +zone=28 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs "],"EPSG:3004":["EPSG:3004","+proj=tmerc +lat_0=0 +lon_0=15 +k=0.9996 +x_0=2520000 +y_0=0 +ellps=intl +towgs84=-104.1,-49.1,-9.9,0.971,-2.917,0.714,-11.68 +units=m +no_defs "],"EPSG:2828":["EPSG:2828","+proj=tmerc +lat_0=38.83333333333334 +lon_0=-74.5 +k=0.9999 +x_0=150000 +y_0=0 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs "],"EPSG:5069":["EPSG:5069","+proj=aea +lat_1=29.5 +lat_2=45.5 +lat_0=23 +lon_0=-96 +x_0=0 +y_0=0 +datum=NAD27 +units=m +no_defs "],"EPSG:4149":["EPSG:4149","+proj=longlat +ellps=bessel +towgs84=674.4,15.1,405.3,0,0,0,0 +no_defs "],"EPSG:4156":["EPSG:4156","+proj=longlat +ellps=bessel +towgs84=589,76,480,0,0,0,0 +no_defs "],"EPSG:4181":["EPSG:4181","+proj=longlat +ellps=intl +towgs84=-189.6806,18.3463,-42.7695,-0.33746,-3.09264,2.53861,0.4598 +no_defs "],"EPSG:2231":["EPSG:2231","+proj=lcc +lat_1=40.78333333333333 +lat_2=39.71666666666667 +lat_0=39.33333333333334 +lon_0=-105.5 +x_0=914401.8288036576 +y_0=304800.6096012192 +datum=NAD83 +units=us-ft +no_defs "],"EPSG:4587":["EPSG:4587","+proj=tmerc +lat_0=0 +lon_0=123 +k=1 +x_0=500000 +y_0=0 +ellps=krass +units=m +no_defs "],"EPSG:4348":["EPSG:4348","+proj=geocent +ellps=GRS80 +units=m +no_defs "],"EPSG:22184":["EPSG:22184","+proj=tmerc +lat_0=-90 +lon_0=-63 +k=1 +x_0=4500000 +y_0=0 +ellps=WGS84 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs "],"EPSG:3826":["EPSG:3826","+proj=tmerc +lat_0=0 +lon_0=121 +k=0.9999 +x_0=250000 +y_0=0 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs "],"EPSG:2034":["EPSG:2034","+proj=utm +zone=20 +ellps=clrk66 +units=m +no_defs "],"EPSG:29900":["EPSG:29900","+proj=tmerc +lat_0=53.5 +lon_0=-8 +k=1.000035 +x_0=200000 +y_0=250000 +datum=ire65 +units=m +no_defs "],"EPSG:3331":["EPSG:3331","+proj=tmerc +lat_0=0 +lon_0=21 +k=1 +x_0=7500000 +y_0=0 +ellps=krass +towgs84=2.3287,-147.0425,-92.0802,-0.3092483,0.32482185,0.49729934,5.68906266 +units=m +no_defs "],"EPSG:2768":["EPSG:2768","+proj=lcc +lat_1=38.43333333333333 +lat_2=37.06666666666667 +lat_0=36.5 +lon_0=-120.5 +x_0=2000000 +y_0=500000 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs "],"EPSG:3812":["EPSG:3812","+proj=lcc +lat_1=49.83333333333334 +lat_2=51.16666666666666 +lat_0=50.797815 +lon_0=4.359215833333333 +x_0=649328 +y_0=665262 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs "],"EPSG:3815":["EPSG:3815","+proj=tmerc +lat_0=32.5 +lon_0=-89.75 +k=0.9998335 +x_0=500000 +y_0=1300000 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs "],"EPSG:2525":["EPSG:2525","+proj=tmerc +lat_0=0 +lon_0=27 +k=1 +x_0=9500000 +y_0=0 +ellps=krass +towgs84=23.92,-141.27,-80.9,0,0.35,0.82,-0.12 +units=m +no_defs "],"EPSG:4794":["EPSG:4794","+proj=tmerc +lat_0=0 +lon_0=111 +k=1 +x_0=500000 +y_0=0 +ellps=krass +units=m +no_defs "],"EPSG:4797":["EPSG:4797","+proj=tmerc +lat_0=0 +lon_0=120 +k=1 +x_0=500000 +y_0=0 +ellps=krass +units=m +no_defs "],"EPSG:4674":["EPSG:4674","+proj=longlat +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +no_defs "],"EPSG:4897":["EPSG:4897","+proj=geocent +ellps=WGS84 +units=m +no_defs "],"EPSG:32520":["EPSG:32520","+proj=utm +zone=20 +south +ellps=WGS72 +towgs84=0,0,1.9,0,0,0.814,-0.38 +units=m +no_defs "],"EPSG:4839":["EPSG:4839","+proj=lcc +lat_1=48.66666666666666 +lat_2=53.66666666666666 +lat_0=51 +lon_0=10.5 +x_0=0 +y_0=0 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs "],"EPSG:26771":["EPSG:26771","+proj=tmerc +lat_0=36.66666666666666 +lon_0=-88.33333333333333 +k=0.9999749999999999 +x_0=152400.3048006096 +y_0=0 +datum=NAD27 +units=us-ft +no_defs "],"EPSG:3347":["EPSG:3347","+proj=lcc +lat_1=49 +lat_2=77 +lat_0=63.390675 +lon_0=-91.86666666666666 +x_0=6200000 +y_0=3000000 +datum=NAD83 +units=m +no_defs "],"EPSG:4612":["EPSG:4612","+proj=longlat +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +no_defs "],"EPSG:3571":["EPSG:3571","+proj=laea +lat_0=90 +lon_0=180 +x_0=0 +y_0=0 +datum=WGS84 +units=m +no_defs "],"EPSG:4913":["EPSG:4913","+proj=geocent +ellps=GRS80 +units=m +no_defs "],"EPSG:2272":["EPSG:2272","+proj=lcc +lat_1=40.96666666666667 +lat_2=39.93333333333333 +lat_0=39.33333333333334 +lon_0=-77.75 +x_0=600000 +y_0=0 +datum=NAD83 +units=us-ft +no_defs "],"EPSG:4189":["EPSG:4189","+proj=longlat +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +no_defs "],"EPSG:3575":["EPSG:3575","+proj=laea +lat_0=90 +lon_0=10 +x_0=0 +y_0=0 +datum=WGS84 +units=m +no_defs "],"EPSG:2926":["EPSG:2926","+proj=lcc +lat_1=48.73333333333333 +lat_2=47.5 +lat_0=47 +lon_0=-120.8333333333333 +x_0=500000.0001016001 +y_0=0 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=us-ft +no_defs "],"EPSG:31252":["EPSG:31252","+proj=tmerc +lat_0=0 +lon_0=31 +k=1 +x_0=0 +y_0=-5000000 +ellps=bessel +towgs84=682,-203,480,0,0,0,0 +pm=ferro +units=m +no_defs "],"EPSG:20356":["EPSG:20356","+proj=utm +zone=56 +south +ellps=aust_SA +towgs84=-134,-48,149,0,0,0,0 +units=m +no_defs "],"EPSG:31255":["EPSG:31255","+proj=tmerc +lat_0=0 +lon_0=13.33333333333333 +k=1 +x_0=0 +y_0=-5000000 +datum=hermannskogel +units=m +no_defs "],"EPSG:26785":["EPSG:26785","+proj=lcc +lat_1=38.3 +lat_2=39.45 +lat_0=37.83333333333334 +lon_0=-77 +x_0=243840.4876809754 +y_0=0 +datum=NAD27 +units=us-ft +no_defs "],"EPSG:4004":["EPSG:4004","+proj=longlat +ellps=bessel +no_defs "],"EPSG:31267":["EPSG:31267","+proj=tmerc +lat_0=0 +lon_0=21 +k=1 +x_0=7500000 +y_0=0 +datum=hermannskogel +units=m +no_defs "],"EPSG:2276":["EPSG:2276","+proj=lcc +lat_1=33.96666666666667 +lat_2=32.13333333333333 +lat_0=31.66666666666667 +lon_0=-98.5 +x_0=600000 +y_0=2000000.0001016 +datum=NAD83 +units=us-ft +no_defs "],"EPSG:2277":["EPSG:2277","+proj=lcc +lat_1=31.88333333333333 +lat_2=30.11666666666667 +lat_0=29.66666666666667 +lon_0=-100.3333333333333 +x_0=699999.9998983998 +y_0=3000000 +datum=NAD83 +units=us-ft +no_defs "],"EPSG:2278":["EPSG:2278","+proj=lcc +lat_1=30.28333333333333 +lat_2=28.38333333333333 +lat_0=27.83333333333333 +lon_0=-99 +x_0=600000 +y_0=3999999.9998984 +datum=NAD83 +units=us-ft +no_defs "],"EPSG:4015":["EPSG:4015","+proj=longlat +a=6377276.345 +b=6356075.41314024 +no_defs "],"EPSG:3155":["EPSG:3155","+proj=utm +zone=8 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs "],"EPSG:32624":["EPSG:32624","+proj=utm +zone=24 +datum=WGS84 +units=m +no_defs "],"EPSG:4986":["EPSG:4986","+proj=geocent +ellps=WGS72 +units=m +no_defs "],"EPSG:5048":["EPSG:5048","+proj=utm +zone=35 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs "],"EPSG:2790":["EPSG:2790","+proj=tmerc +lat_0=36.66666666666666 +lon_0=-88.33333333333333 +k=0.9999749999999999 +x_0=300000 +y_0=0 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs "],"EPSG:3907":["EPSG:3907","+proj=tmerc +lat_0=0 +lon_0=15 +k=0.9999 +x_0=5500000 +y_0=0 +ellps=bessel +towgs84=682,-203,480,0,0,0,0 +units=m +no_defs "],"EPSG:3908":["EPSG:3908","+proj=tmerc +lat_0=0 +lon_0=18 +k=0.9999 +x_0=6500000 +y_0=0 +ellps=bessel +towgs84=682,-203,480,0,0,0,0 +units=m +no_defs "],"EPSG:3375":["EPSG:3375","+proj=omerc +lat_0=4 +lonc=102.25 +alpha=323.0257964666666 +k=0.99984 +x_0=804671 +y_0=0 +no_uoff +gamma=323.1301023611111 +ellps=GRS80 +units=m +no_defs "],"EPSG:3995":["EPSG:3995","+proj=stere +lat_0=90 +lat_ts=71 +lon_0=0 +k=1 +x_0=0 +y_0=0 +datum=WGS84 +units=m +no_defs "],"EPSG:3007":["EPSG:3007","+proj=tmerc +lat_0=0 +lon_0=12 +k=1 +x_0=150000 +y_0=0 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs "],"EPSG:4005":["EPSG:4005","+proj=longlat +a=6377492.018 +b=6356173.508712696 +no_defs "],"EPSG:4024":["EPSG:4024","+proj=longlat +ellps=krass +no_defs "],"EPSG:4052":["EPSG:4052","+proj=longlat +a=6370997 +b=6370997 +no_defs "],"EPSG:32734":["EPSG:32734","+proj=utm +zone=34 +south +datum=WGS84 +units=m +no_defs "],"EPSG:32602":["EPSG:32602","+proj=utm +zone=2 +datum=WGS84 +units=m +no_defs "],"EPSG:4225":["EPSG:4225","+proj=longlat +ellps=intl +towgs84=-205.57,168.77,-4.12,0,0,0,0 +no_defs "],"EPSG:2953":["EPSG:2953","+proj=sterea +lat_0=46.5 +lon_0=-66.5 +k=0.999912 +x_0=2500000 +y_0=7500000 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs "],"EPSG:31981":["EPSG:31981","+proj=utm +zone=21 +south +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs "],"EPSG:31985":["EPSG:31985","+proj=utm +zone=25 +south +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs "],"EPSG:2174":["EPSG:2174","+proj=sterea +lat_0=51.67083333333333 +lon_0=16.67222222222222 +k=0.9998 +x_0=3703000 +y_0=5627000 +ellps=krass +towgs84=2.3287,-147.0425,-92.0802,-0.3092483,0.32482185,0.49729934,5.68906266 +units=m +no_defs "],"EPSG:3182":["EPSG:3182","+proj=utm +zone=22 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs "],"EPSG:2175":["EPSG:2175","+proj=tmerc +lat_0=0 +lon_0=18.95833333333333 +k=0.999983 +x_0=237000 +y_0=-4700000 +ellps=krass +towgs84=2.3287,-147.0425,-92.0802,-0.3092483,0.32482185,0.49729934,5.68906266 +units=m +no_defs "],"EPSG:31992":["EPSG:31992","+proj=utm +zone=17 +south +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs "],"EPSG:2958":["EPSG:2958","+proj=utm +zone=17 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs "],"EPSG:2434":["EPSG:2434","+proj=tmerc +lat_0=0 +lon_0=111 +k=1 +x_0=500000 +y_0=0 +ellps=krass +towgs84=15.8,-154.4,-82.3,0,0,0,0 +units=m +no_defs "],"EPSG:4331":["EPSG:4331","+proj=geocent +ellps=GRS80 +units=m +no_defs "],"EPSG:32606":["EPSG:32606","+proj=utm +zone=6 +datum=WGS84 +units=m +no_defs "],"EPSG:2178":["EPSG:2178","+proj=tmerc +lat_0=0 +lon_0=21 +k=0.999923 +x_0=7500000 +y_0=0 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs "],"EPSG:32005":["EPSG:32005","+proj=lcc +lat_1=41.85 +lat_2=42.81666666666667 +lat_0=41.33333333333334 +lon_0=-100 +x_0=609601.2192024384 +y_0=0 +datum=NAD27 +units=us-ft +no_defs "],"EPSG:4917":["EPSG:4917","+proj=geocent +ellps=GRS80 +units=m +no_defs "],"EPSG:26895":["EPSG:26895","+proj=tmerc +lat_0=0 +lon_0=-90 +k=0.9999 +x_0=304800 +y_0=0 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs "],"EPSG:26896":["EPSG:26896","+proj=tmerc +lat_0=0 +lon_0=-93 +k=0.9999 +x_0=304800 +y_0=0 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs "],"EPSG:21897":["EPSG:21897","+proj=tmerc +lat_0=4.599047222222222 +lon_0=-74.08091666666667 +k=1 +x_0=1000000 +y_0=1000000 +ellps=intl +towgs84=307,304,-318,0,0,0,0 +units=m +no_defs "],"EPSG:3403":["EPSG:3403","+proj=tmerc +lat_0=0 +lon_0=-115 +k=0.9992 +x_0=0 +y_0=0 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs "],"EPSG:3630":["EPSG:3630","+proj=tmerc +lat_0=40 +lon_0=-78.58333333333333 +k=0.9999375 +x_0=350000.0001016001 +y_0=0 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=us-ft +no_defs "],"EPSG:5524":["EPSG:5524","+proj=longlat +ellps=intl +no_defs "],"EPSG:32031":["EPSG:32031","+proj=lcc +lat_1=33.76666666666667 +lat_2=34.96666666666667 +lat_0=33 +lon_0=-81 +x_0=609601.2192024384 +y_0=0 +datum=NAD27 +units=us-ft +no_defs "],"EPSG:2816":["EPSG:2816","+proj=tmerc +lat_0=35.83333333333334 +lon_0=-92.5 +k=0.999933333 +x_0=500000 +y_0=0 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs "],"EPSG:4481":["EPSG:4481","+proj=geocent +ellps=GRS80 +units=m +no_defs "],"EPSG:32036":["EPSG:32036","+proj=lcc +lat_1=35.25 +lat_2=36.41666666666666 +lat_0=34.66666666666666 +lon_0=-86 +x_0=30480.06096012192 +y_0=0 +datum=NAD27 +units=us-ft +no_defs "],"EPSG:2817":["EPSG:2817","+proj=tmerc +lat_0=36.16666666666666 +lon_0=-94.5 +k=0.999941177 +x_0=850000 +y_0=0 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs "],"EPSG:4083":["EPSG:4083","+proj=utm +zone=28 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs "],"EPSG:2819":["EPSG:2819","+proj=lcc +lat_1=43 +lat_2=40 +lat_0=39.83333333333334 +lon_0=-100 +x_0=500000 +y_0=0 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs "],"EPSG:5243":["EPSG:5243","+proj=lcc +lat_1=48.66666666666666 +lat_2=53.66666666666666 +lat_0=51 +lon_0=10.5 +x_0=0 +y_0=0 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs "],"EPSG:22185":["EPSG:22185","+proj=tmerc +lat_0=-90 +lon_0=-60 +k=1 +x_0=5500000 +y_0=0 +ellps=WGS84 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs "],"EPSG:4094":["EPSG:4094","+proj=tmerc +lat_0=0 +lon_0=10 +k=0.99998 +x_0=400000 +y_0=-5000000 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs "],"EPSG:32601":["EPSG:32601","+proj=utm +zone=1 +datum=WGS84 +units=m +no_defs "],"EPSG:32049":["EPSG:32049","+proj=lcc +lat_1=45.83333333333334 +lat_2=47.33333333333334 +lat_0=45.33333333333334 +lon_0=-120.5 +x_0=609601.2192024384 +y_0=0 +datum=NAD27 +units=us-ft +no_defs "],"EPSG:2321":["EPSG:2321","+proj=tmerc +lat_0=0 +lon_0=33 +k=1 +x_0=500000 +y_0=0 +ellps=intl +towgs84=-87,-98,-121,0,0,0,0 +units=m +no_defs "],"EPSG:26943":["EPSG:26943","+proj=lcc +lat_1=38.43333333333333 +lat_2=37.06666666666667 +lat_0=36.5 +lon_0=-120.5 +x_0=2000000 +y_0=500000 +datum=NAD83 +units=m +no_defs "],"EPSG:4229":["EPSG:4229","+proj=longlat +ellps=helmert +towgs84=-130,110,-13,0,0,0,0 +no_defs "],"EPSG:4231":["EPSG:4231","+proj=longlat +ellps=intl +towgs84=-83.11,-97.38,-117.22,0.005693,-0.044698,0.044285,0.1218 +no_defs "],"EPSG:5272":["EPSG:5272","+proj=tmerc +lat_0=0 +lon_0=36 +k=1 +x_0=12500000 +y_0=0 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs "],"EPSG:3651":["EPSG:3651","+proj=lcc +lat_1=40.96666666666667 +lat_2=39.93333333333333 +lat_0=39.33333333333334 +lon_0=-77.75 +x_0=600000 +y_0=0 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs "],"EPSG:3652":["EPSG:3652","+proj=lcc +lat_1=40.96666666666667 +lat_2=39.93333333333333 +lat_0=39.33333333333334 +lon_0=-77.75 +x_0=600000 +y_0=0 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=us-ft +no_defs "],"EPSG:3423":["EPSG:3423","+proj=tmerc +lat_0=34.75 +lon_0=-118.5833333333333 +k=0.9999 +x_0=800000.0000101599 +y_0=3999999.99998984 +datum=NAD83 +units=us-ft +no_defs "],"EPSG:2450":["EPSG:2450","+proj=tmerc +lat_0=36 +lon_0=138.5 +k=0.9999 +x_0=0 +y_0=0 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs "],"EPSG:22391":["EPSG:22391","+proj=lcc +lat_1=36 +lat_0=36 +lon_0=9.9 +k_0=0.999625544 +x_0=500000 +y_0=300000 +datum=carthage +units=m +no_defs "],"EPSG:4027":["EPSG:4027","+proj=longlat +a=6376523 +b=6355862.933255573 +no_defs "],"EPSG:22523":["EPSG:22523","+proj=utm +zone=23 +south +ellps=intl +towgs84=-205.57,168.77,-4.12,0,0,0,0 +units=m +no_defs "],"EPSG:22524":["EPSG:22524","+proj=utm +zone=24 +south +ellps=intl +towgs84=-205.57,168.77,-4.12,0,0,0,0 +units=m +no_defs "],"EPSG:32100":["EPSG:32100","+proj=lcc +lat_1=49 +lat_2=45 +lat_0=44.25 +lon_0=-109.5 +x_0=600000 +y_0=0 +datum=NAD83 +units=m +no_defs "],"EPSG:4312":["EPSG:4312","+proj=longlat +datum=hermannskogel +no_defs "],"EPSG:3437":["EPSG:3437","+proj=tmerc +lat_0=42.5 +lon_0=-71.66666666666667 +k=0.999966667 +x_0=300000.0000000001 +y_0=0 +datum=NAD83 +units=us-ft +no_defs "],"EPSG:4314":["EPSG:4314","+proj=longlat +datum=potsdam +no_defs "],"EPSG:32118":["EPSG:32118","+proj=lcc +lat_1=41.03333333333333 +lat_2=40.66666666666666 +lat_0=40.16666666666666 +lon_0=-74 +x_0=300000 +y_0=0 +datum=NAD83 +units=m +no_defs "],"EPSG:32119":["EPSG:32119","+proj=lcc +lat_1=36.16666666666666 +lat_2=34.33333333333334 +lat_0=33.75 +lon_0=-79 +x_0=609601.22 +y_0=0 +datum=NAD83 +units=m +no_defs "],"EPSG:23031":["EPSG:23031","+proj=utm +zone=31 +ellps=intl +towgs84=-87,-98,-121,0,0,0,0 +units=m +no_defs "],"EPSG:3518":["EPSG:3518","+proj=tmerc +lat_0=30 +lon_0=-82.16666666666667 +k=0.9999 +x_0=200000 +y_0=0 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs "],"EPSG:3021":["EPSG:3021","+proj=tmerc +lat_0=0 +lon_0=15.80827777777778 +k=1 +x_0=1500000 +y_0=0 +ellps=bessel +towgs84=414.1,41.3,603.1,-0.855,2.141,-7.023,0 +units=m +no_defs "],"EPSG:3022":["EPSG:3022","+proj=tmerc +lat_0=0 +lon_0=18.05827777777778 +k=1 +x_0=1500000 +y_0=0 +ellps=bessel +towgs84=414.1,41.3,603.1,-0.855,2.141,-7.023,0 +units=m +no_defs "],"EPSG:3447":["EPSG:3447","+proj=lcc +lat_1=49.83333333333334 +lat_2=51.16666666666666 +lat_0=50.797815 +lon_0=4.359215833333333 +x_0=150328 +y_0=166262 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs "],"EPSG:32130":["EPSG:32130","+proj=tmerc +lat_0=41.08333333333334 +lon_0=-71.5 +k=0.99999375 +x_0=100000 +y_0=0 +datum=NAD83 +units=m +no_defs "],"EPSG:26992":["EPSG:26992","+proj=lcc +lat_1=47.05 +lat_2=45.61666666666667 +lat_0=45 +lon_0=-94.25 +x_0=800000 +y_0=100000 +datum=NAD83 +units=m +no_defs "],"EPSG:4920":["EPSG:4920","+proj=geocent +ellps=GRS80 +units=m +no_defs "],"EPSG:23834":["EPSG:23834","+proj=tmerc +lat_0=0 +lon_0=106.5 +k=0.9999 +x_0=200000 +y_0=1500000 +ellps=WGS84 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs "],"EPSG:3453":["EPSG:3453","+proj=lcc +lat_1=27.83333333333333 +lat_2=26.16666666666667 +lat_0=25.5 +lon_0=-91.33333333333333 +x_0=999999.9999898402 +y_0=0 +datum=NAD83 +units=us-ft +no_defs "],"EPSG:27200":["EPSG:27200","+proj=nzmg +lat_0=-41 +lon_0=173 +x_0=2510000 +y_0=6023150 +datum=nzgd49 +units=m +towgs84=59.47,-5.04,187.44,0.47,-0.1,1.024,-4.5993 +nadgrids=nzgd2kgrid0005.gsb +no_defs "],"EPSG:4272":["EPSG:4272","+proj=longlat +datum=nzgd49 +towgs84=59.47,-5.04,187.44,0.47,-0.1,1.024,-4.5993 +nadgrids=nzgd2kgrid0005.gsb +no_defs "],"EPSG:4001":["EPSG:4001","+proj=longlat +ellps=airy +no_defs "],"EPSG:3690":["EPSG:3690","+proj=lcc +lat_1=48.73333333333333 +lat_2=47.5 +lat_0=47 +lon_0=-120.8333333333333 +x_0=500000.0001016001 +y_0=0 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=us-ft +no_defs "],"EPSG:3036":["EPSG:3036","+proj=utm +zone=36 +south +ellps=WGS84 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs "],"EPSG:4455":["EPSG:4455","+proj=lcc +lat_1=40.96666666666667 +lat_2=39.93333333333333 +lat_0=39.33333333333334 +lon_0=-77.75 +x_0=609601.2192024384 +y_0=0 +datum=NAD27 +units=us-ft +no_defs "],"EPSG:4324":["EPSG:4324","+proj=longlat +ellps=WGS72 +towgs84=0,0,1.9,0,0,0.814,-0.38 +no_defs "],"EPSG:2345":["EPSG:2345","+proj=tmerc +lat_0=0 +lon_0=117 +k=1 +x_0=500000 +y_0=0 +a=6378140 +b=6356755.288157528 +units=m +no_defs "],"EPSG:2852":["EPSG:2852","+proj=tmerc +lat_0=42.5 +lon_0=-72.5 +k=0.999964286 +x_0=500000 +y_0=0 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs "],"EPSG:2050":["EPSG:2050","+proj=tmerc +lat_0=0 +lon_0=23 +k=1 +x_0=0 +y_0=0 +axis=wsu +ellps=WGS84 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs "],"EPSG:4487":["EPSG:4487","+proj=utm +zone=14 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs "],"EPSG:2051":["EPSG:2051","+proj=tmerc +lat_0=0 +lon_0=25 +k=1 +x_0=0 +y_0=0 +axis=wsu +ellps=WGS84 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs "],"EPSG:2053":["EPSG:2053","+proj=tmerc +lat_0=0 +lon_0=29 +k=1 +x_0=0 +y_0=0 +axis=wsu +ellps=WGS84 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs "],"EPSG:2219":["EPSG:2219","+proj=utm +zone=19 +a=6378135 +b=6356750.304921594 +units=m +no_defs "],"EPSG:4497":["EPSG:4497","+proj=tmerc +lat_0=0 +lon_0=111 +k=1 +x_0=19500000 +y_0=0 +ellps=GRS80 +units=m +no_defs "],"EPSG:7408":["EPSG:7408","+proj=longlat +ellps=bessel +towgs84=565.4171,50.3319,465.5524,-0.398957,0.343988,-1.87740,4.0725 +vunits=m +no_defs "],"EPSG:32195":["EPSG:32195","+proj=tmerc +lat_0=0 +lon_0=-90 +k=0.9999 +x_0=304800 +y_0=0 +datum=NAD83 +units=m +no_defs "],"EPSG:32196":["EPSG:32196","+proj=tmerc +lat_0=0 +lon_0=-93 +k=0.9999 +x_0=304800 +y_0=0 +datum=NAD83 +units=m +no_defs "],"EPSG:7416":["EPSG:7416","+proj=utm +zone=32 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +vunits=m +no_defs "],"EPSG:3059":["EPSG:3059","+proj=tmerc +lat_0=0 +lon_0=24 +k=0.9996 +x_0=500000 +y_0=-6000000 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs "],"EPSG:27391":["EPSG:27391","+proj=tmerc +lat_0=58 +lon_0=-4.666666666666667 +k=1 +x_0=0 +y_0=0 +a=6377492.018 +b=6356173.508712696 +towgs84=278.3,93,474.5,7.889,0.05,-6.61,6.21 +pm=oslo +units=m +no_defs "],"EPSG:3717":["EPSG:3717","+proj=utm +zone=10 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs "],"EPSG:3062":["EPSG:3062","+proj=utm +zone=26 +ellps=intl +towgs84=-204.619,140.176,55.226,0,0,0,0 +units=m +no_defs "],"EPSG:4508":["EPSG:4508","+proj=tmerc +lat_0=0 +lon_0=111 +k=1 +x_0=500000 +y_0=0 +ellps=GRS80 +units=m +no_defs "],"EPSG:27492":["EPSG:27492","+proj=tmerc +lat_0=39.66666666666666 +lon_0=-8.131906111111112 +k=1 +x_0=180.598 +y_0=-86.98999999999999 +ellps=intl +towgs84=-223.237,110.193,36.649,0,0,0,0 +units=m +no_defs "],"EPSG:5532":["EPSG:5532","+proj=utm +zone=22 +south +ellps=aust_SA +towgs84=-66.87,4.37,-38.52,0,0,0,0 +units=m +no_defs "],"EPSG:27561":["EPSG:27561","+proj=lcc +lat_1=49.50000000000001 +lat_0=49.50000000000001 +lon_0=0 +k_0=0.999877341 +x_0=600000 +y_0=200000 +a=6378249.2 +b=6356515 +towgs84=-168,-60,320,0,0,0,0 +pm=paris +units=m +no_defs "],"EPSG:23948":["EPSG:23948","+proj=utm +zone=48 +a=6377276.345 +b=6356075.41314024 +towgs84=217,823,299,0,0,0,0 +units=m +no_defs "],"EPSG:27573":["EPSG:27573","+proj=lcc +lat_1=44.10000000000001 +lat_0=44.10000000000001 +lon_0=0 +k_0=0.999877499 +x_0=600000 +y_0=3200000 +a=6378249.2 +b=6356515 +towgs84=-168,-60,320,0,0,0,0 +pm=paris +units=m +no_defs "],"EPSG:27582":["EPSG:27582","+proj=lcc +lat_1=46.8 +lat_0=46.8 +lon_0=0 +k_0=0.99987742 +x_0=600000 +y_0=2200000 +a=6378249.2 +b=6356515 +towgs84=-168,-60,320,0,0,0,0 +pm=paris +units=m +no_defs "],"EPSG:5538":["EPSG:5538","+proj=utm +zone=23 +south +ellps=intl +units=m +no_defs "],"EPSG:3725":["EPSG:3725","+proj=utm +zone=18 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs "],"EPSG:32242":["EPSG:32242","+proj=utm +zone=42 +ellps=WGS72 +towgs84=0,0,4.5,0,0,0.554,0.2263 +units=m +no_defs "],"EPSG:32609":["EPSG:32609","+proj=utm +zone=9 +datum=WGS84 +units=m +no_defs "],"EPSG:4658":["EPSG:4658","+proj=longlat +ellps=intl +towgs84=-73,47,-83,0,0,0,0 +no_defs "],"EPSG:3491":["EPSG:3491","+proj=lcc +lat_1=39.83333333333334 +lat_2=38.33333333333334 +lat_0=37.66666666666666 +lon_0=-122 +x_0=2000000 +y_0=500000 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs "],"EPSG:3496":["EPSG:3496","+proj=lcc +lat_1=37.25 +lat_2=36 +lat_0=35.33333333333334 +lon_0=-119 +x_0=2000000.0001016 +y_0=500000.0001016001 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=us-ft +no_defs "],"EPSG:2872":["EPSG:2872","+proj=lcc +lat_1=38.43333333333333 +lat_2=37.06666666666667 +lat_0=36.5 +lon_0=-120.5 +x_0=2000000.0001016 +y_0=500000.0001016001 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=us-ft +no_defs "],"EPSG:2873":["EPSG:2873","+proj=lcc +lat_1=37.25 +lat_2=36 +lat_0=35.33333333333334 +lon_0=-119 +x_0=2000000.0001016 +y_0=500000.0001016001 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=us-ft +no_defs "],"EPSG:3740":["EPSG:3740","+proj=utm +zone=10 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs "],"EPSG:2875":["EPSG:2875","+proj=lcc +lat_1=33.88333333333333 +lat_2=32.78333333333333 +lat_0=32.16666666666666 +lon_0=-116.25 +x_0=2000000.0001016 +y_0=500000.0001016001 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=us-ft +no_defs "],"EPSG:3742":["EPSG:3742","+proj=utm +zone=12 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs "],"EPSG:2237":["EPSG:2237","+proj=tmerc +lat_0=24.33333333333333 +lon_0=-82 +k=0.999941177 +x_0=200000.0001016002 +y_0=0 +datum=NAD83 +units=us-ft +no_defs "],"EPSG:24571":["EPSG:24571","+proj=omerc +lat_0=4 +lonc=102.25 +alpha=323.0257905 +k=0.99984 +x_0=804671.2997750348 +y_0=0 +no_uoff +gamma=323.1301023611111 +a=6377304.063 +b=6356103.038993155 +towgs84=-11,851,5,0,0,0,0 +to_meter=20.11678249437587 +no_defs "],"EPSG:2238":["EPSG:2238","+proj=lcc +lat_1=30.75 +lat_2=29.58333333333333 +lat_0=29 +lon_0=-84.5 +x_0=600000 +y_0=0 +datum=NAD83 +units=us-ft +no_defs "],"EPSG:4976":["EPSG:4976","+proj=geocent +ellps=GRS80 +units=m +no_defs "],"EPSG:3745":["EPSG:3745","+proj=utm +zone=15 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs "],"EPSG:4278":["EPSG:4278","+proj=longlat +ellps=airy +no_defs "],"EPSG:4207":["EPSG:4207","+proj=longlat +ellps=intl +towgs84=-304.046,-60.576,103.64,0,0,0,0 +no_defs "],"EPSG:3511":["EPSG:3511","+proj=tmerc +lat_0=24.33333333333333 +lon_0=-81 +k=0.999941177 +x_0=200000 +y_0=0 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs "],"EPSG:4209":["EPSG:4209","+proj=longlat +a=6378249.145 +b=6356514.966398753 +towgs84=-143,-90,-294,0,0,0,0 +no_defs "],"EPSG:3517":["EPSG:3517","+proj=tmerc +lat_0=24.33333333333333 +lon_0=-82 +k=0.999941177 +x_0=200000.0001016002 +y_0=0 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=us-ft +no_defs "],"EPSG:3824":["EPSG:3824","+proj=longlat +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +no_defs "],"EPSG:4121":["EPSG:4121","+proj=longlat +datum=GGRS87 +no_defs "],"EPSG:32337":["EPSG:32337","+proj=utm +zone=37 +south +ellps=WGS72 +towgs84=0,0,4.5,0,0,0.554,0.2263 +units=m +no_defs "],"EPSG:4728":["EPSG:4728","+proj=longlat +ellps=intl +towgs84=-307,-92,127,0,0,0,0 +no_defs "],"EPSG:25835":["EPSG:25835","+proj=utm +zone=35 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs "],"EPSG:3015":["EPSG:3015","+proj=tmerc +lat_0=0 +lon_0=18.75 +k=1 +x_0=150000 +y_0=0 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs "],"EPSG:2253":["EPSG:2253","+proj=lcc +lat_1=43.66666666666666 +lat_2=42.1 +lat_0=41.5 +lon_0=-84.36666666666666 +x_0=3999999.999984 +y_0=0 +datum=NAD83 +units=ft +no_defs "],"EPSG:26191":["EPSG:26191","+proj=lcc +lat_1=33.3 +lat_0=33.3 +lon_0=-5.4 +k_0=0.999625769 +x_0=500000 +y_0=300000 +a=6378249.2 +b=6356515 +towgs84=31,146,47,0,0,0,0 +units=m +no_defs "],"EPSG:26192":["EPSG:26192","+proj=lcc +lat_1=29.7 +lat_0=29.7 +lon_0=-5.4 +k_0=0.9996155960000001 +x_0=500000 +y_0=300000 +a=6378249.2 +b=6356515 +towgs84=31,146,47,0,0,0,0 +units=m +no_defs "],"EPSG:4247":["EPSG:4247","+proj=longlat +ellps=intl +towgs84=-273.5,110.6,-357.9,0,0,0,0 +no_defs "],"EPSG:2257":["EPSG:2257","+proj=tmerc +lat_0=31 +lon_0=-104.3333333333333 +k=0.999909091 +x_0=165000 +y_0=0 +datum=NAD83 +units=us-ft +no_defs "],"EPSG:29100":["EPSG:29100","+proj=poly +lat_0=0 +lon_0=-54 +x_0=5000000 +y_0=10000000 +ellps=GRS67 +towgs84=-57,1,-41,0,0,0,0 +units=m +no_defs "],"EPSG:4926":["EPSG:4926","+proj=geocent +ellps=GRS80 +units=m +no_defs "],"EPSG:26705":["EPSG:26705","+proj=utm +zone=5 +datum=NAD27 +units=m +no_defs "],"EPSG:2903":["EPSG:2903","+proj=tmerc +lat_0=31 +lon_0=-106.25 +k=0.9999 +x_0=500000.0001016001 +y_0=0 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=us-ft +no_defs "],"EPSG:29182":["EPSG:29182","+proj=utm +zone=22 +south +ellps=GRS67 +towgs84=-57,1,-41,0,0,0,0 +units=m +no_defs "],"EPSG:3973":["EPSG:3973","+proj=laea +lat_0=90 +lon_0=0 +x_0=0 +y_0=0 +datum=WGS84 +units=m +no_defs "],"EPSG:29184":["EPSG:29184","+proj=utm +zone=24 +south +ellps=GRS67 +towgs84=-57,1,-41,0,0,0,0 +units=m +no_defs "],"EPSG:3786":["EPSG:3786","+proj=eqc +lat_ts=0 +lat_0=0 +lon_0=0 +x_0=0 +y_0=0 +a=6371007 +b=6371007 +units=m +no_defs "],"EPSG:3115":["EPSG:3115","+proj=tmerc +lat_0=4.596200416666666 +lon_0=-77.07750791666666 +k=1 +x_0=1000000 +y_0=1000000 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs "],"EPSG:4928":["EPSG:4928","+proj=geocent +ellps=WGS84 +units=m +no_defs "],"EPSG:26730":["EPSG:26730","+proj=tmerc +lat_0=30 +lon_0=-87.5 +k=0.999933333 +x_0=152400.3048006096 +y_0=0 +datum=NAD27 +units=us-ft +no_defs "],"EPSG:2911":["EPSG:2911","+proj=lcc +lat_1=36.76666666666667 +lat_2=35.56666666666667 +lat_0=35 +lon_0=-98 +x_0=600000 +y_0=0 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=us-ft +no_defs "],"EPSG:4364":["EPSG:4364","+proj=geocent +ellps=GRS80 +units=m +no_defs "],"EPSG:2112":["EPSG:2112","+proj=tmerc +lat_0=-40.92527777777777 +lon_0=175.6472222222222 +k=1 +x_0=400000 +y_0=800000 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs "],"EPSG:2113":["EPSG:2113","+proj=tmerc +lat_0=-41.3011111111111 +lon_0=174.7763888888889 +k=1 +x_0=400000 +y_0=800000 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs "],"EPSG:2114":["EPSG:2114","+proj=tmerc +lat_0=-40.71472222222223 +lon_0=172.6719444444444 +k=1 +x_0=400000 +y_0=800000 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs "],"EPSG:2115":["EPSG:2115","+proj=tmerc +lat_0=-41.27444444444444 +lon_0=173.2991666666667 +k=1 +x_0=400000 +y_0=800000 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs "],"EPSG:2116":["EPSG:2116","+proj=tmerc +lat_0=-41.28972222222222 +lon_0=172.1088888888889 +k=1 +x_0=400000 +y_0=800000 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs "],"EPSG:2117":["EPSG:2117","+proj=tmerc +lat_0=-41.81055555555555 +lon_0=171.5811111111111 +k=1 +x_0=400000 +y_0=800000 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs "],"EPSG:2118":["EPSG:2118","+proj=tmerc +lat_0=-42.33361111111111 +lon_0=171.5497222222222 +k=1 +x_0=400000 +y_0=800000 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs "],"EPSG:2119":["EPSG:2119","+proj=tmerc +lat_0=-42.68888888888888 +lon_0=173.01 +k=1 +x_0=400000 +y_0=800000 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs "],"EPSG:2120":["EPSG:2120","+proj=tmerc +lat_0=-41.54444444444444 +lon_0=173.8019444444444 +k=1 +x_0=400000 +y_0=800000 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs "],"EPSG:4366":["EPSG:4366","+proj=geocent +ellps=GRS80 +units=m +no_defs "],"EPSG:2121":["EPSG:2121","+proj=tmerc +lat_0=-42.88611111111111 +lon_0=170.9797222222222 +k=1 +x_0=400000 +y_0=800000 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs "],"EPSG:2122":["EPSG:2122","+proj=tmerc +lat_0=-43.11 +lon_0=170.2608333333333 +k=1 +x_0=400000 +y_0=800000 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs "],"EPSG:2123":["EPSG:2123","+proj=tmerc +lat_0=-43.97777777777778 +lon_0=168.6061111111111 +k=1 +x_0=400000 +y_0=800000 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs "],"EPSG:2124":["EPSG:2124","+proj=tmerc +lat_0=-43.59055555555556 +lon_0=172.7269444444445 +k=1 +x_0=400000 +y_0=800000 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs "],"EPSG:2125":["EPSG:2125","+proj=tmerc +lat_0=-43.74861111111111 +lon_0=171.3605555555555 +k=1 +x_0=400000 +y_0=800000 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs "],"EPSG:2126":["EPSG:2126","+proj=tmerc +lat_0=-44.40194444444445 +lon_0=171.0572222222222 +k=1 +x_0=400000 +y_0=800000 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs "],"EPSG:2127":["EPSG:2127","+proj=tmerc +lat_0=-44.735 +lon_0=169.4675 +k=1 +x_0=400000 +y_0=800000 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs "],"EPSG:2128":["EPSG:2128","+proj=tmerc +lat_0=-45.13277777777778 +lon_0=168.3986111111111 +k=1 +x_0=400000 +y_0=800000 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs "],"EPSG:2129":["EPSG:2129","+proj=tmerc +lat_0=-45.56361111111111 +lon_0=167.7386111111111 +k=1 +x_0=400000 +y_0=800000 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs "],"EPSG:4368":["EPSG:4368","+proj=geocent +ellps=GRS80 +units=m +no_defs "],"EPSG:2130":["EPSG:2130","+proj=tmerc +lat_0=-45.81611111111111 +lon_0=170.6283333333333 +k=1 +x_0=400000 +y_0=800000 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs "],"EPSG:2131":["EPSG:2131","+proj=tmerc +lat_0=-45.86138888888889 +lon_0=170.2825 +k=0.99996 +x_0=400000 +y_0=800000 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs "],"EPSG:2132":["EPSG:2132","+proj=tmerc +lat_0=-46.6 +lon_0=168.3427777777778 +k=1 +x_0=400000 +y_0=800000 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs "],"EPSG:2133":["EPSG:2133","+proj=utm +zone=58 +south +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs "],"EPSG:2134":["EPSG:2134","+proj=utm +zone=59 +south +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs "],"EPSG:2135":["EPSG:2135","+proj=utm +zone=60 +south +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs "],"EPSG:2136":["EPSG:2136","+proj=tmerc +lat_0=4.666666666666667 +lon_0=-1 +k=0.99975 +x_0=274319.7391633579 +y_0=0 +a=6378300 +b=6356751.689189189 +towgs84=-199,32,322,0,0,0,0 +to_meter=0.3047997101815088 +no_defs "],"EPSG:2137":["EPSG:2137","+proj=tmerc +lat_0=0 +lon_0=-1 +k=0.9996 +x_0=500000 +y_0=0 +a=6378300 +b=6356751.689189189 +towgs84=-199,32,322,0,0,0,0 +units=m +no_defs "],"EPSG:2138":["EPSG:2138","+proj=lcc +lat_1=60 +lat_2=46 +lat_0=44 +lon_0=-68.5 +x_0=0 +y_0=0 +ellps=clrk66 +units=m +no_defs "],"EPSG:2312":["EPSG:2312","+proj=utm +zone=33 +ellps=clrk80 +units=m +no_defs "],"EPSG:2139":["EPSG:2139","+proj=tmerc +lat_0=0 +lon_0=-55.5 +k=0.9999 +x_0=304800 +y_0=0 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs "],"EPSG:2140":["EPSG:2140","+proj=tmerc +lat_0=0 +lon_0=-58.5 +k=0.9999 +x_0=304800 +y_0=0 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs "],"EPSG:2141":["EPSG:2141","+proj=tmerc +lat_0=0 +lon_0=-61.5 +k=0.9999 +x_0=304800 +y_0=0 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs "],"EPSG:2142":["EPSG:2142","+proj=tmerc +lat_0=0 +lon_0=-64.5 +k=0.9999 +x_0=304800 +y_0=0 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs "],"EPSG:2143":["EPSG:2143","+proj=tmerc +lat_0=0 +lon_0=-67.5 +k=0.9999 +x_0=304800 +y_0=0 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs "],"EPSG:2144":["EPSG:2144","+proj=tmerc +lat_0=0 +lon_0=-70.5 +k=0.9999 +x_0=304800 +y_0=0 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs "],"EPSG:2145":["EPSG:2145","+proj=tmerc +lat_0=0 +lon_0=-73.5 +k=0.9999 +x_0=304800 +y_0=0 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs "],"EPSG:2146":["EPSG:2146","+proj=tmerc +lat_0=0 +lon_0=-76.5 +k=0.9999 +x_0=304800 +y_0=0 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs "],"EPSG:2147":["EPSG:2147","+proj=tmerc +lat_0=0 +lon_0=-79.5 +k=0.9999 +x_0=304800 +y_0=0 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs "],"EPSG:4370":["EPSG:4370","+proj=geocent +ellps=GRS80 +units=m +no_defs "],"EPSG:2148":["EPSG:2148","+proj=utm +zone=21 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs "],"EPSG:2150":["EPSG:2150","+proj=utm +zone=17 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs "],"EPSG:2155":["EPSG:2155","+proj=lcc +lat_1=-14.26666666666667 +lat_0=-14.26666666666667 +lon_0=170 +k_0=1 +x_0=152400.3048006096 +y_0=0 +ellps=clrk66 +towgs84=-115,118,426,0,0,0,0 +units=us-ft +no_defs "],"EPSG:2156":["EPSG:2156","+proj=utm +zone=59 +south +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs "],"EPSG:3994":["EPSG:3994","+proj=merc +lon_0=100 +lat_ts=-41 +x_0=0 +y_0=0 +datum=WGS84 +units=m +no_defs "],"EPSG:2158":["EPSG:2158","+proj=utm +zone=29 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs "],"EPSG:2159":["EPSG:2159","+proj=tmerc +lat_0=6.666666666666667 +lon_0=-12 +k=1 +x_0=152399.8550907544 +y_0=0 +a=6378300 +b=6356751.689189189 +to_meter=0.3047997101815088 +no_defs "],"EPSG:2160":["EPSG:2160","+proj=tmerc +lat_0=6.666666666666667 +lon_0=-12 +k=1 +x_0=243839.7681452071 +y_0=182879.8261089053 +a=6378300 +b=6356751.689189189 +to_meter=0.3047997101815088 +no_defs "],"EPSG:2161":["EPSG:2161","+proj=utm +zone=28 +ellps=clrk80 +towgs84=-88,4,101,0,0,0,0 +units=m +no_defs "],"EPSG:2162":["EPSG:2162","+proj=utm +zone=29 +ellps=clrk80 +towgs84=-88,4,101,0,0,0,0 +units=m +no_defs "],"EPSG:2164":["EPSG:2164","+proj=tmerc +lat_0=0 +lon_0=-5 +k=0.9996 +x_0=500000 +y_0=0 +ellps=clrk80 +towgs84=-125,53,467,0,0,0,0 +units=m +no_defs "],"EPSG:2165":["EPSG:2165","+proj=tmerc +lat_0=0 +lon_0=-5 +k=0.9996 +x_0=500000 +y_0=0 +ellps=clrk80 +towgs84=-124.76,53,466.79,0,0,0,0 +units=m +no_defs "],"EPSG:2313":["EPSG:2313","+proj=utm +zone=33 +ellps=clrk80 +units=m +no_defs "],"EPSG:2166":["EPSG:2166","+proj=tmerc +lat_0=0 +lon_0=9 +k=1 +x_0=3500000 +y_0=0 +ellps=krass +towgs84=26,-121,-78,0,0,0,0 +units=m +no_defs "],"EPSG:2167":["EPSG:2167","+proj=tmerc +lat_0=0 +lon_0=12 +k=1 +x_0=4500000 +y_0=0 +ellps=krass +towgs84=26,-121,-78,0,0,0,0 +units=m +no_defs "],"EPSG:2168":["EPSG:2168","+proj=tmerc +lat_0=0 +lon_0=15 +k=1 +x_0=5500000 +y_0=0 +ellps=krass +towgs84=26,-121,-78,0,0,0,0 +units=m +no_defs "],"EPSG:2170":["EPSG:2170","+proj=tmerc +lat_0=0 +lon_0=15 +k=0.9999 +x_0=500000 +y_0=0 +datum=hermannskogel +units=m +no_defs "],"EPSG:2171":["EPSG:2171","+proj=sterea +lat_0=50.625 +lon_0=21.08333333333333 +k=0.9998 +x_0=4637000 +y_0=5647000 +ellps=krass +towgs84=2.3287,-147.0425,-92.0802,-0.3092483,0.32482185,0.49729934,5.68906266 +units=m +no_defs "],"EPSG:2172":["EPSG:2172","+proj=sterea +lat_0=53.00194444444445 +lon_0=21.50277777777778 +k=0.9998 +x_0=4603000 +y_0=5806000 +ellps=krass +towgs84=2.3287,-147.0425,-92.0802,-0.3092483,0.32482185,0.49729934,5.68906266 +units=m +no_defs "],"EPSG:2173":["EPSG:2173","+proj=sterea +lat_0=53.58333333333334 +lon_0=17.00833333333333 +k=0.9998 +x_0=3501000 +y_0=5999000 +ellps=krass +towgs84=2.3287,-147.0425,-92.0802,-0.3092483,0.32482185,0.49729934,5.68906266 +units=m +no_defs "],"EPSG:2179":["EPSG:2179","+proj=tmerc +lat_0=0 +lon_0=24 +k=0.999923 +x_0=8500000 +y_0=0 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs "],"EPSG:2188":["EPSG:2188","+proj=utm +zone=25 +ellps=intl +towgs84=-425,-169,81,0,0,0,0 +units=m +no_defs "],"EPSG:2189":["EPSG:2189","+proj=utm +zone=26 +ellps=intl +towgs84=-104,167,-38,0,0,0,0 +units=m +no_defs "],"EPSG:2190":["EPSG:2190","+proj=utm +zone=26 +ellps=intl +towgs84=-203,141,53,0,0,0,0 +units=m +no_defs "],"EPSG:2191":["EPSG:2191","+proj=utm +zone=28 +ellps=intl +units=m +no_defs "],"EPSG:2192":["EPSG:2192","+proj=lcc +lat_1=46.8 +lat_0=46.8 +lon_0=2.337229166666667 +k_0=0.99987742 +x_0=600000 +y_0=2200000 +ellps=intl +towgs84=-87,-98,-121,0,0,0,0 +units=m +no_defs "],"EPSG:2194":["EPSG:2194","+proj=lcc +lat_1=-14.26666666666667 +lat_0=-14.26666666666667 +lon_0=-170 +k_0=1 +x_0=152400.3048006096 +y_0=0 +ellps=clrk66 +towgs84=-115,118,426,0,0,0,0 +units=us-ft +no_defs "],"EPSG:2195":["EPSG:2195","+proj=utm +zone=2 +south +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs "],"EPSG:2196":["EPSG:2196","+proj=tmerc +lat_0=0 +lon_0=9.5 +k=0.99995 +x_0=200000 +y_0=0 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs "],"EPSG:2197":["EPSG:2197","+proj=tmerc +lat_0=0 +lon_0=12 +k=0.99995 +x_0=500000 +y_0=0 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs "],"EPSG:2198":["EPSG:2198","+proj=tmerc +lat_0=0 +lon_0=15 +k=1 +x_0=900000 +y_0=0 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs "],"EPSG:2199":["EPSG:2199","+proj=tmerc +lat_0=0 +lon_0=21 +k=1 +x_0=4500000 +y_0=0 +ellps=krass +towgs84=-44.183,-0.58,-38.489,-2.3867,-2.7072,3.5196,-8.2703 +units=m +no_defs "],"EPSG:2200":["EPSG:2200","+proj=sterea +lat_0=46.5 +lon_0=-66.5 +k=0.999912 +x_0=300000 +y_0=800000 +a=6378135 +b=6356750.304921594 +units=m +no_defs "],"EPSG:4372":["EPSG:4372","+proj=geocent +ellps=GRS80 +units=m +no_defs "],"EPSG:2201":["EPSG:2201","+proj=utm +zone=18 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs "],"EPSG:2202":["EPSG:2202","+proj=utm +zone=19 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs "],"EPSG:2203":["EPSG:2203","+proj=utm +zone=20 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs "],"EPSG:2204":["EPSG:2204","+proj=lcc +lat_1=35.25 +lat_2=36.41666666666666 +lat_0=34.66666666666666 +lon_0=-86 +x_0=609601.2192024384 +y_0=30480.06096012192 +datum=NAD27 +units=us-ft +no_defs "],"EPSG:2205":["EPSG:2205","+proj=lcc +lat_1=37.96666666666667 +lat_2=38.96666666666667 +lat_0=37.5 +lon_0=-84.25 +x_0=500000 +y_0=0 +datum=NAD83 +units=m +no_defs "],"EPSG:2206":["EPSG:2206","+proj=tmerc +lat_0=0 +lon_0=27 +k=1 +x_0=9500000 +y_0=0 +ellps=intl +towgs84=-87,-98,-121,0,0,0,0 +units=m +no_defs "],"EPSG:2207":["EPSG:2207","+proj=tmerc +lat_0=0 +lon_0=30 +k=1 +x_0=10500000 +y_0=0 +ellps=intl +towgs84=-87,-98,-121,0,0,0,0 +units=m +no_defs "],"EPSG:2208":["EPSG:2208","+proj=tmerc +lat_0=0 +lon_0=33 +k=1 +x_0=11500000 +y_0=0 +ellps=intl +towgs84=-87,-98,-121,0,0,0,0 +units=m +no_defs "],"EPSG:2209":["EPSG:2209","+proj=tmerc +lat_0=0 +lon_0=36 +k=1 +x_0=12500000 +y_0=0 +ellps=intl +towgs84=-87,-98,-121,0,0,0,0 +units=m +no_defs "],"EPSG:2210":["EPSG:2210","+proj=tmerc +lat_0=0 +lon_0=39 +k=1 +x_0=13500000 +y_0=0 +ellps=intl +towgs84=-87,-98,-121,0,0,0,0 +units=m +no_defs "],"EPSG:2211":["EPSG:2211","+proj=tmerc +lat_0=0 +lon_0=42 +k=1 +x_0=14500000 +y_0=0 +ellps=intl +towgs84=-87,-98,-121,0,0,0,0 +units=m +no_defs "],"EPSG:2212":["EPSG:2212","+proj=tmerc +lat_0=0 +lon_0=45 +k=1 +x_0=15500000 +y_0=0 +ellps=intl +towgs84=-87,-98,-121,0,0,0,0 +units=m +no_defs "],"EPSG:2213":["EPSG:2213","+proj=tmerc +lat_0=0 +lon_0=30 +k=0.9996 +x_0=500000 +y_0=0 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs "],"EPSG:2214":["EPSG:2214","+proj=tmerc +lat_0=0 +lon_0=10.5 +k=0.999 +x_0=1000000 +y_0=1000000 +ellps=intl +towgs84=-206.1,-174.7,-87.7,0,0,0,0 +units=m +no_defs "],"EPSG:2215":["EPSG:2215","+proj=utm +zone=32 +a=6378249.2 +b=6356515 +towgs84=-70.9,-151.8,-41.4,0,0,0,0 +units=m +no_defs "],"EPSG:2216":["EPSG:2216","+proj=utm +zone=22 +ellps=intl +towgs84=164,138,-189,0,0,0,0 +units=m +no_defs "],"EPSG:2217":["EPSG:2217","+proj=utm +zone=23 +ellps=intl +towgs84=164,138,-189,0,0,0,0 +units=m +no_defs "],"EPSG:2222":["EPSG:2222","+proj=tmerc +lat_0=31 +lon_0=-110.1666666666667 +k=0.9999 +x_0=213360 +y_0=0 +datum=NAD83 +units=ft +no_defs "],"EPSG:2224":["EPSG:2224","+proj=tmerc +lat_0=31 +lon_0=-113.75 +k=0.999933333 +x_0=213360 +y_0=0 +datum=NAD83 +units=ft +no_defs "],"EPSG:2225":["EPSG:2225","+proj=lcc +lat_1=41.66666666666666 +lat_2=40 +lat_0=39.33333333333334 +lon_0=-122 +x_0=2000000.0001016 +y_0=500000.0001016001 +datum=NAD83 +units=us-ft +no_defs "],"EPSG:4374":["EPSG:4374","+proj=geocent +ellps=GRS80 +units=m +no_defs "],"EPSG:2232":["EPSG:2232","+proj=lcc +lat_1=39.75 +lat_2=38.45 +lat_0=37.83333333333334 +lon_0=-105.5 +x_0=914401.8288036576 +y_0=304800.6096012192 +datum=NAD83 +units=us-ft +no_defs "],"EPSG:2233":["EPSG:2233","+proj=lcc +lat_1=38.43333333333333 +lat_2=37.23333333333333 +lat_0=36.66666666666666 +lon_0=-105.5 +x_0=914401.8288036576 +y_0=304800.6096012192 +datum=NAD83 +units=us-ft +no_defs "],"EPSG:2234":["EPSG:2234","+proj=lcc +lat_1=41.86666666666667 +lat_2=41.2 +lat_0=40.83333333333334 +lon_0=-72.75 +x_0=304800.6096012192 +y_0=152400.3048006096 +datum=NAD83 +units=us-ft +no_defs "],"EPSG:2235":["EPSG:2235","+proj=tmerc +lat_0=38 +lon_0=-75.41666666666667 +k=0.999995 +x_0=200000.0001016002 +y_0=0 +datum=NAD83 +units=us-ft +no_defs "],"EPSG:2236":["EPSG:2236","+proj=tmerc +lat_0=24.33333333333333 +lon_0=-81 +k=0.999941177 +x_0=200000.0001016002 +y_0=0 +datum=NAD83 +units=us-ft +no_defs "],"EPSG:2334":["EPSG:2334","+proj=tmerc +lat_0=0 +lon_0=117 +k=1 +x_0=20500000 +y_0=0 +a=6378140 +b=6356755.288157528 +units=m +no_defs "],"EPSG:2239":["EPSG:2239","+proj=tmerc +lat_0=30 +lon_0=-82.16666666666667 +k=0.9999 +x_0=200000.0001016002 +y_0=0 +datum=NAD83 +units=us-ft +no_defs "],"EPSG:2240":["EPSG:2240","+proj=tmerc +lat_0=30 +lon_0=-84.16666666666667 +k=0.9999 +x_0=699999.9998983998 +y_0=0 +datum=NAD83 +units=us-ft +no_defs "],"EPSG:2241":["EPSG:2241","+proj=tmerc +lat_0=41.66666666666666 +lon_0=-112.1666666666667 +k=0.9999473679999999 +x_0=200000.0001016002 +y_0=0 +datum=NAD83 +units=us-ft +no_defs "],"EPSG:2242":["EPSG:2242","+proj=tmerc +lat_0=41.66666666666666 +lon_0=-114 +k=0.9999473679999999 +x_0=500000.0001016001 +y_0=0 +datum=NAD83 +units=us-ft +no_defs "],"EPSG:2243":["EPSG:2243","+proj=tmerc +lat_0=41.66666666666666 +lon_0=-115.75 +k=0.999933333 +x_0=800000.0001016001 +y_0=0 +datum=NAD83 +units=us-ft +no_defs "],"EPSG:2244":["EPSG:2244","+proj=tmerc +lat_0=37.5 +lon_0=-85.66666666666667 +k=0.999966667 +x_0=99999.99989839978 +y_0=249364.9987299975 +datum=NAD83 +units=us-ft +no_defs "],"EPSG:2245":["EPSG:2245","+proj=tmerc +lat_0=37.5 +lon_0=-87.08333333333333 +k=0.999966667 +x_0=900000 +y_0=249364.9987299975 +datum=NAD83 +units=us-ft +no_defs "],"EPSG:2246":["EPSG:2246","+proj=lcc +lat_1=37.96666666666667 +lat_2=38.96666666666667 +lat_0=37.5 +lon_0=-84.25 +x_0=500000.0001016001 +y_0=0 +datum=NAD83 +units=us-ft +no_defs "],"EPSG:2247":["EPSG:2247","+proj=lcc +lat_1=37.93333333333333 +lat_2=36.73333333333333 +lat_0=36.33333333333334 +lon_0=-85.75 +x_0=500000.0001016001 +y_0=500000.0001016001 +datum=NAD83 +units=us-ft +no_defs "],"EPSG:2248":["EPSG:2248","+proj=lcc +lat_1=39.45 +lat_2=38.3 +lat_0=37.66666666666666 +lon_0=-77 +x_0=399999.9998983998 +y_0=0 +datum=NAD83 +units=us-ft +no_defs "],"EPSG:2249":["EPSG:2249","+proj=lcc +lat_1=42.68333333333333 +lat_2=41.71666666666667 +lat_0=41 +lon_0=-71.5 +x_0=200000.0001016002 +y_0=750000 +datum=NAD83 +units=us-ft +no_defs "],"EPSG:2250":["EPSG:2250","+proj=lcc +lat_1=41.48333333333333 +lat_2=41.28333333333333 +lat_0=41 +lon_0=-70.5 +x_0=500000.0001016001 +y_0=0 +datum=NAD83 +units=us-ft +no_defs "],"EPSG:2251":["EPSG:2251","+proj=lcc +lat_1=47.08333333333334 +lat_2=45.48333333333333 +lat_0=44.78333333333333 +lon_0=-87 +x_0=7999999.999968001 +y_0=0 +datum=NAD83 +units=ft +no_defs "],"EPSG:2252":["EPSG:2252","+proj=lcc +lat_1=45.7 +lat_2=44.18333333333333 +lat_0=43.31666666666667 +lon_0=-84.36666666666666 +x_0=5999999.999976001 +y_0=0 +datum=NAD83 +units=ft +no_defs "],"EPSG:2254":["EPSG:2254","+proj=tmerc +lat_0=29.5 +lon_0=-88.83333333333333 +k=0.99995 +x_0=300000.0000000001 +y_0=0 +datum=NAD83 +units=us-ft +no_defs "],"EPSG:2255":["EPSG:2255","+proj=tmerc +lat_0=29.5 +lon_0=-90.33333333333333 +k=0.99995 +x_0=699999.9998983998 +y_0=0 +datum=NAD83 +units=us-ft +no_defs "],"EPSG:2335":["EPSG:2335","+proj=tmerc +lat_0=0 +lon_0=123 +k=1 +x_0=21500000 +y_0=0 +a=6378140 +b=6356755.288157528 +units=m +no_defs "],"EPSG:2256":["EPSG:2256","+proj=lcc +lat_1=49 +lat_2=45 +lat_0=44.25 +lon_0=-109.5 +x_0=599999.9999976 +y_0=0 +datum=NAD83 +units=ft +no_defs "],"EPSG:2258":["EPSG:2258","+proj=tmerc +lat_0=31 +lon_0=-106.25 +k=0.9999 +x_0=500000.0001016001 +y_0=0 +datum=NAD83 +units=us-ft +no_defs "],"EPSG:2259":["EPSG:2259","+proj=tmerc +lat_0=31 +lon_0=-107.8333333333333 +k=0.999916667 +x_0=830000.0001016001 +y_0=0 +datum=NAD83 +units=us-ft +no_defs "],"EPSG:2265":["EPSG:2265","+proj=lcc +lat_1=48.73333333333333 +lat_2=47.43333333333333 +lat_0=47 +lon_0=-100.5 +x_0=599999.9999976 +y_0=0 +datum=NAD83 +units=ft +no_defs "],"EPSG:2266":["EPSG:2266","+proj=lcc +lat_1=47.48333333333333 +lat_2=46.18333333333333 +lat_0=45.66666666666666 +lon_0=-100.5 +x_0=599999.9999976 +y_0=0 +datum=NAD83 +units=ft +no_defs "],"EPSG:2267":["EPSG:2267","+proj=lcc +lat_1=36.76666666666667 +lat_2=35.56666666666667 +lat_0=35 +lon_0=-98 +x_0=600000 +y_0=0 +datum=NAD83 +units=us-ft +no_defs "],"EPSG:2268":["EPSG:2268","+proj=lcc +lat_1=35.23333333333333 +lat_2=33.93333333333333 +lat_0=33.33333333333334 +lon_0=-98 +x_0=600000 +y_0=0 +datum=NAD83 +units=us-ft +no_defs "],"EPSG:2269":["EPSG:2269","+proj=lcc +lat_1=46 +lat_2=44.33333333333334 +lat_0=43.66666666666666 +lon_0=-120.5 +x_0=2500000.0001424 +y_0=0 +datum=NAD83 +units=ft +no_defs "],"EPSG:2270":["EPSG:2270","+proj=lcc +lat_1=44 +lat_2=42.33333333333334 +lat_0=41.66666666666666 +lon_0=-120.5 +x_0=1500000.0001464 +y_0=0 +datum=NAD83 +units=ft +no_defs "],"EPSG:2271":["EPSG:2271","+proj=lcc +lat_1=41.95 +lat_2=40.88333333333333 +lat_0=40.16666666666666 +lon_0=-77.75 +x_0=600000 +y_0=0 +datum=NAD83 +units=us-ft +no_defs "],"EPSG:4376":["EPSG:4376","+proj=geocent +ellps=GRS80 +units=m +no_defs "],"EPSG:2273":["EPSG:2273","+proj=lcc +lat_1=34.83333333333334 +lat_2=32.5 +lat_0=31.83333333333333 +lon_0=-81 +x_0=609600 +y_0=0 +datum=NAD83 +units=ft +no_defs "],"EPSG:2275":["EPSG:2275","+proj=lcc +lat_1=36.18333333333333 +lat_2=34.65 +lat_0=34 +lon_0=-101.5 +x_0=200000.0001016002 +y_0=999999.9998983998 +datum=NAD83 +units=us-ft +no_defs "],"EPSG:2279":["EPSG:2279","+proj=lcc +lat_1=27.83333333333333 +lat_2=26.16666666666667 +lat_0=25.66666666666667 +lon_0=-98.5 +x_0=300000.0000000001 +y_0=5000000.0001016 +datum=NAD83 +units=us-ft +no_defs "],"EPSG:2280":["EPSG:2280","+proj=lcc +lat_1=41.78333333333333 +lat_2=40.71666666666667 +lat_0=40.33333333333334 +lon_0=-111.5 +x_0=500000.0001504 +y_0=999999.9999960001 +datum=NAD83 +units=ft +no_defs "],"EPSG:2281":["EPSG:2281","+proj=lcc +lat_1=40.65 +lat_2=39.01666666666667 +lat_0=38.33333333333334 +lon_0=-111.5 +x_0=500000.0001504 +y_0=1999999.999992 +datum=NAD83 +units=ft +no_defs "],"EPSG:2282":["EPSG:2282","+proj=lcc +lat_1=38.35 +lat_2=37.21666666666667 +lat_0=36.66666666666666 +lon_0=-111.5 +x_0=500000.0001504 +y_0=2999999.999988 +datum=NAD83 +units=ft +no_defs "],"EPSG:2283":["EPSG:2283","+proj=lcc +lat_1=39.2 +lat_2=38.03333333333333 +lat_0=37.66666666666666 +lon_0=-78.5 +x_0=3500000.0001016 +y_0=2000000.0001016 +datum=NAD83 +units=us-ft +no_defs "],"EPSG:2284":["EPSG:2284","+proj=lcc +lat_1=37.96666666666667 +lat_2=36.76666666666667 +lat_0=36.33333333333334 +lon_0=-78.5 +x_0=3500000.0001016 +y_0=999999.9998983998 +datum=NAD83 +units=us-ft +no_defs "],"EPSG:2286":["EPSG:2286","+proj=lcc +lat_1=47.33333333333334 +lat_2=45.83333333333334 +lat_0=45.33333333333334 +lon_0=-120.5 +x_0=500000.0001016001 +y_0=0 +datum=NAD83 +units=us-ft +no_defs "],"EPSG:2287":["EPSG:2287","+proj=lcc +lat_1=46.76666666666667 +lat_2=45.56666666666667 +lat_0=45.16666666666666 +lon_0=-90 +x_0=600000 +y_0=0 +datum=NAD83 +units=us-ft +no_defs "],"EPSG:2288":["EPSG:2288","+proj=lcc +lat_1=45.5 +lat_2=44.25 +lat_0=43.83333333333334 +lon_0=-90 +x_0=600000 +y_0=0 +datum=NAD83 +units=us-ft +no_defs "],"EPSG:4378":["EPSG:4378","+proj=geocent +ellps=GRS80 +units=m +no_defs "],"EPSG:2289":["EPSG:2289","+proj=lcc +lat_1=44.06666666666667 +lat_2=42.73333333333333 +lat_0=42 +lon_0=-90 +x_0=600000 +y_0=0 +datum=NAD83 +units=us-ft +no_defs "],"EPSG:2291":["EPSG:2291","+proj=sterea +lat_0=47.25 +lon_0=-63 +k=0.999912 +x_0=400000 +y_0=800000 +a=6378135 +b=6356750.304921594 +units=m +no_defs "],"EPSG:2292":["EPSG:2292","+proj=sterea +lat_0=47.25 +lon_0=-63 +k=0.999912 +x_0=400000 +y_0=800000 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs "],"EPSG:2294":["EPSG:2294","+proj=tmerc +lat_0=0 +lon_0=-61.5 +k=0.9999 +x_0=4500000 +y_0=0 +a=6378135 +b=6356750.304921594 +units=m +no_defs "],"EPSG:2295":["EPSG:2295","+proj=tmerc +lat_0=0 +lon_0=-64.5 +k=0.9999 +x_0=5500000 +y_0=0 +a=6378135 +b=6356750.304921594 +units=m +no_defs "],"EPSG:2308":["EPSG:2308","+proj=tmerc +lat_0=0 +lon_0=109 +k=0.9996 +x_0=500000 +y_0=10000000 +ellps=bessel +towgs84=-377,681,-50,0,0,0,0 +units=m +no_defs "],"EPSG:2309":["EPSG:2309","+proj=tmerc +lat_0=0 +lon_0=116 +k=0.9996 +x_0=500000 +y_0=10000000 +datum=WGS84 +units=m +no_defs "],"EPSG:2310":["EPSG:2310","+proj=tmerc +lat_0=0 +lon_0=132 +k=0.9996 +x_0=500000 +y_0=10000000 +datum=WGS84 +units=m +no_defs "],"EPSG:4380":["EPSG:4380","+proj=geocent +ellps=WGS84 +units=m +no_defs "],"EPSG:2314":["EPSG:2314","+proj=cass +lat_0=10.44166666666667 +lon_0=-61.33333333333334 +x_0=86501.46392052001 +y_0=65379.0134283 +a=6378293.645208759 +b=6356617.987679838 +towgs84=-61.702,284.488,472.052,0,0,0,0 +to_meter=0.3047972654 +no_defs "],"EPSG:2315":["EPSG:2315","+proj=utm +zone=19 +south +ellps=intl +towgs84=-148,136,90,0,0,0,0 +units=m +no_defs "],"EPSG:2316":["EPSG:2316","+proj=utm +zone=20 +south +ellps=intl +towgs84=-148,136,90,0,0,0,0 +units=m +no_defs "],"EPSG:2317":["EPSG:2317","+proj=lcc +lat_1=9 +lat_2=3 +lat_0=6 +lon_0=-66 +x_0=1000000 +y_0=1000000 +ellps=intl +towgs84=-288,175,-376,0,0,0,0 +units=m +no_defs "],"EPSG:2318":["EPSG:2318","+proj=lcc +lat_1=17 +lat_2=33 +lat_0=25.08951 +lon_0=48 +x_0=0 +y_0=0 +ellps=intl +towgs84=-143,-236,7,0,0,0,0 +units=m +no_defs "],"EPSG:2319":["EPSG:2319","+proj=tmerc +lat_0=0 +lon_0=27 +k=1 +x_0=500000 +y_0=0 +ellps=intl +towgs84=-87,-98,-121,0,0,0,0 +units=m +no_defs "],"EPSG:2320":["EPSG:2320","+proj=tmerc +lat_0=0 +lon_0=30 +k=1 +x_0=500000 +y_0=0 +ellps=intl +towgs84=-87,-98,-121,0,0,0,0 +units=m +no_defs "],"EPSG:2322":["EPSG:2322","+proj=tmerc +lat_0=0 +lon_0=36 +k=1 +x_0=500000 +y_0=0 +ellps=intl +towgs84=-87,-98,-121,0,0,0,0 +units=m +no_defs "],"EPSG:2323":["EPSG:2323","+proj=tmerc +lat_0=0 +lon_0=39 +k=1 +x_0=500000 +y_0=0 +ellps=intl +towgs84=-87,-98,-121,0,0,0,0 +units=m +no_defs "],"EPSG:2324":["EPSG:2324","+proj=tmerc +lat_0=0 +lon_0=42 +k=1 +x_0=500000 +y_0=0 +ellps=intl +towgs84=-87,-98,-121,0,0,0,0 +units=m +no_defs "],"EPSG:2325":["EPSG:2325","+proj=tmerc +lat_0=0 +lon_0=45 +k=1 +x_0=500000 +y_0=0 +ellps=intl +towgs84=-87,-98,-121,0,0,0,0 +units=m +no_defs "],"EPSG:2327":["EPSG:2327","+proj=tmerc +lat_0=0 +lon_0=75 +k=1 +x_0=13500000 +y_0=0 +a=6378140 +b=6356755.288157528 +units=m +no_defs "],"EPSG:2328":["EPSG:2328","+proj=tmerc +lat_0=0 +lon_0=81 +k=1 +x_0=14500000 +y_0=0 +a=6378140 +b=6356755.288157528 +units=m +no_defs "],"EPSG:2329":["EPSG:2329","+proj=tmerc +lat_0=0 +lon_0=87 +k=1 +x_0=15500000 +y_0=0 +a=6378140 +b=6356755.288157528 +units=m +no_defs "],"EPSG:2330":["EPSG:2330","+proj=tmerc +lat_0=0 +lon_0=93 +k=1 +x_0=16500000 +y_0=0 +a=6378140 +b=6356755.288157528 +units=m +no_defs "],"EPSG:2331":["EPSG:2331","+proj=tmerc +lat_0=0 +lon_0=99 +k=1 +x_0=17500000 +y_0=0 +a=6378140 +b=6356755.288157528 +units=m +no_defs "],"EPSG:2332":["EPSG:2332","+proj=tmerc +lat_0=0 +lon_0=105 +k=1 +x_0=18500000 +y_0=0 +a=6378140 +b=6356755.288157528 +units=m +no_defs "],"EPSG:2333":["EPSG:2333","+proj=tmerc +lat_0=0 +lon_0=111 +k=1 +x_0=19500000 +y_0=0 +a=6378140 +b=6356755.288157528 +units=m +no_defs "],"EPSG:4382":["EPSG:4382","+proj=geocent +ellps=intl +units=m +no_defs "],"EPSG:2336":["EPSG:2336","+proj=tmerc +lat_0=0 +lon_0=129 +k=1 +x_0=22500000 +y_0=0 +a=6378140 +b=6356755.288157528 +units=m +no_defs "],"EPSG:2337":["EPSG:2337","+proj=tmerc +lat_0=0 +lon_0=135 +k=1 +x_0=23500000 +y_0=0 +a=6378140 +b=6356755.288157528 +units=m +no_defs "],"EPSG:2338":["EPSG:2338","+proj=tmerc +lat_0=0 +lon_0=75 +k=1 +x_0=500000 +y_0=0 +a=6378140 +b=6356755.288157528 +units=m +no_defs "],"EPSG:2339":["EPSG:2339","+proj=tmerc +lat_0=0 +lon_0=81 +k=1 +x_0=500000 +y_0=0 +a=6378140 +b=6356755.288157528 +units=m +no_defs "],"EPSG:2340":["EPSG:2340","+proj=tmerc +lat_0=0 +lon_0=87 +k=1 +x_0=500000 +y_0=0 +a=6378140 +b=6356755.288157528 +units=m +no_defs "],"EPSG:2341":["EPSG:2341","+proj=tmerc +lat_0=0 +lon_0=93 +k=1 +x_0=500000 +y_0=0 +a=6378140 +b=6356755.288157528 +units=m +no_defs "],"EPSG:2342":["EPSG:2342","+proj=tmerc +lat_0=0 +lon_0=99 +k=1 +x_0=500000 +y_0=0 +a=6378140 +b=6356755.288157528 +units=m +no_defs "],"EPSG:2343":["EPSG:2343","+proj=tmerc +lat_0=0 +lon_0=105 +k=1 +x_0=500000 +y_0=0 +a=6378140 +b=6356755.288157528 +units=m +no_defs "],"EPSG:2344":["EPSG:2344","+proj=tmerc +lat_0=0 +lon_0=111 +k=1 +x_0=500000 +y_0=0 +a=6378140 +b=6356755.288157528 +units=m +no_defs "],"EPSG:2346":["EPSG:2346","+proj=tmerc +lat_0=0 +lon_0=123 +k=1 +x_0=500000 +y_0=0 +a=6378140 +b=6356755.288157528 +units=m +no_defs "],"EPSG:2347":["EPSG:2347","+proj=tmerc +lat_0=0 +lon_0=129 +k=1 +x_0=500000 +y_0=0 +a=6378140 +b=6356755.288157528 +units=m +no_defs "],"EPSG:2348":["EPSG:2348","+proj=tmerc +lat_0=0 +lon_0=135 +k=1 +x_0=500000 +y_0=0 +a=6378140 +b=6356755.288157528 +units=m +no_defs "],"EPSG:2349":["EPSG:2349","+proj=tmerc +lat_0=0 +lon_0=75 +k=1 +x_0=25500000 +y_0=0 +a=6378140 +b=6356755.288157528 +units=m +no_defs "],"EPSG:2350":["EPSG:2350","+proj=tmerc +lat_0=0 +lon_0=78 +k=1 +x_0=26500000 +y_0=0 +a=6378140 +b=6356755.288157528 +units=m +no_defs "],"EPSG:2351":["EPSG:2351","+proj=tmerc +lat_0=0 +lon_0=81 +k=1 +x_0=27500000 +y_0=0 +a=6378140 +b=6356755.288157528 +units=m +no_defs "],"EPSG:2352":["EPSG:2352","+proj=tmerc +lat_0=0 +lon_0=84 +k=1 +x_0=28500000 +y_0=0 +a=6378140 +b=6356755.288157528 +units=m +no_defs "],"EPSG:2353":["EPSG:2353","+proj=tmerc +lat_0=0 +lon_0=87 +k=1 +x_0=29500000 +y_0=0 +a=6378140 +b=6356755.288157528 +units=m +no_defs "],"EPSG:2354":["EPSG:2354","+proj=tmerc +lat_0=0 +lon_0=90 +k=1 +x_0=30500000 +y_0=0 +a=6378140 +b=6356755.288157528 +units=m +no_defs "],"EPSG:2355":["EPSG:2355","+proj=tmerc +lat_0=0 +lon_0=93 +k=1 +x_0=31500000 +y_0=0 +a=6378140 +b=6356755.288157528 +units=m +no_defs "],"EPSG:2356":["EPSG:2356","+proj=tmerc +lat_0=0 +lon_0=96 +k=1 +x_0=32500000 +y_0=0 +a=6378140 +b=6356755.288157528 +units=m +no_defs "],"EPSG:2357":["EPSG:2357","+proj=tmerc +lat_0=0 +lon_0=99 +k=1 +x_0=33500000 +y_0=0 +a=6378140 +b=6356755.288157528 +units=m +no_defs "],"EPSG:2358":["EPSG:2358","+proj=tmerc +lat_0=0 +lon_0=102 +k=1 +x_0=34500000 +y_0=0 +a=6378140 +b=6356755.288157528 +units=m +no_defs "],"EPSG:2359":["EPSG:2359","+proj=tmerc +lat_0=0 +lon_0=105 +k=1 +x_0=35500000 +y_0=0 +a=6378140 +b=6356755.288157528 +units=m +no_defs "],"EPSG:2360":["EPSG:2360","+proj=tmerc +lat_0=0 +lon_0=108 +k=1 +x_0=36500000 +y_0=0 +a=6378140 +b=6356755.288157528 +units=m +no_defs "],"EPSG:2361":["EPSG:2361","+proj=tmerc +lat_0=0 +lon_0=111 +k=1 +x_0=37500000 +y_0=0 +a=6378140 +b=6356755.288157528 +units=m +no_defs "],"EPSG:2362":["EPSG:2362","+proj=tmerc +lat_0=0 +lon_0=114 +k=1 +x_0=38500000 +y_0=0 +a=6378140 +b=6356755.288157528 +units=m +no_defs "],"EPSG:2363":["EPSG:2363","+proj=tmerc +lat_0=0 +lon_0=117 +k=1 +x_0=39500000 +y_0=0 +a=6378140 +b=6356755.288157528 +units=m +no_defs "],"EPSG:2364":["EPSG:2364","+proj=tmerc +lat_0=0 +lon_0=120 +k=1 +x_0=40500000 +y_0=0 +a=6378140 +b=6356755.288157528 +units=m +no_defs "],"EPSG:2365":["EPSG:2365","+proj=tmerc +lat_0=0 +lon_0=123 +k=1 +x_0=41500000 +y_0=0 +a=6378140 +b=6356755.288157528 +units=m +no_defs "],"EPSG:2366":["EPSG:2366","+proj=tmerc +lat_0=0 +lon_0=126 +k=1 +x_0=42500000 +y_0=0 +a=6378140 +b=6356755.288157528 +units=m +no_defs "],"EPSG:2367":["EPSG:2367","+proj=tmerc +lat_0=0 +lon_0=129 +k=1 +x_0=43500000 +y_0=0 +a=6378140 +b=6356755.288157528 +units=m +no_defs "],"EPSG:2368":["EPSG:2368","+proj=tmerc +lat_0=0 +lon_0=132 +k=1 +x_0=44500000 +y_0=0 +a=6378140 +b=6356755.288157528 +units=m +no_defs "],"EPSG:2369":["EPSG:2369","+proj=tmerc +lat_0=0 +lon_0=135 +k=1 +x_0=45500000 +y_0=0 +a=6378140 +b=6356755.288157528 +units=m +no_defs "],"EPSG:2370":["EPSG:2370","+proj=tmerc +lat_0=0 +lon_0=75 +k=1 +x_0=500000 +y_0=0 +a=6378140 +b=6356755.288157528 +units=m +no_defs "],"EPSG:2371":["EPSG:2371","+proj=tmerc +lat_0=0 +lon_0=78 +k=1 +x_0=500000 +y_0=0 +a=6378140 +b=6356755.288157528 +units=m +no_defs "],"EPSG:2372":["EPSG:2372","+proj=tmerc +lat_0=0 +lon_0=81 +k=1 +x_0=500000 +y_0=0 +a=6378140 +b=6356755.288157528 +units=m +no_defs "],"EPSG:2373":["EPSG:2373","+proj=tmerc +lat_0=0 +lon_0=84 +k=1 +x_0=500000 +y_0=0 +a=6378140 +b=6356755.288157528 +units=m +no_defs "],"EPSG:2374":["EPSG:2374","+proj=tmerc +lat_0=0 +lon_0=87 +k=1 +x_0=500000 +y_0=0 +a=6378140 +b=6356755.288157528 +units=m +no_defs "],"EPSG:2375":["EPSG:2375","+proj=tmerc +lat_0=0 +lon_0=90 +k=1 +x_0=500000 +y_0=0 +a=6378140 +b=6356755.288157528 +units=m +no_defs "],"EPSG:2376":["EPSG:2376","+proj=tmerc +lat_0=0 +lon_0=93 +k=1 +x_0=500000 +y_0=0 +a=6378140 +b=6356755.288157528 +units=m +no_defs "],"EPSG:2377":["EPSG:2377","+proj=tmerc +lat_0=0 +lon_0=96 +k=1 +x_0=500000 +y_0=0 +a=6378140 +b=6356755.288157528 +units=m +no_defs "],"EPSG:2378":["EPSG:2378","+proj=tmerc +lat_0=0 +lon_0=99 +k=1 +x_0=500000 +y_0=0 +a=6378140 +b=6356755.288157528 +units=m +no_defs "],"EPSG:2379":["EPSG:2379","+proj=tmerc +lat_0=0 +lon_0=102 +k=1 +x_0=500000 +y_0=0 +a=6378140 +b=6356755.288157528 +units=m +no_defs "],"EPSG:2380":["EPSG:2380","+proj=tmerc +lat_0=0 +lon_0=105 +k=1 +x_0=500000 +y_0=0 +a=6378140 +b=6356755.288157528 +units=m +no_defs "],"EPSG:2381":["EPSG:2381","+proj=tmerc +lat_0=0 +lon_0=108 +k=1 +x_0=500000 +y_0=0 +a=6378140 +b=6356755.288157528 +units=m +no_defs "],"EPSG:2382":["EPSG:2382","+proj=tmerc +lat_0=0 +lon_0=111 +k=1 +x_0=500000 +y_0=0 +a=6378140 +b=6356755.288157528 +units=m +no_defs "],"EPSG:2383":["EPSG:2383","+proj=tmerc +lat_0=0 +lon_0=114 +k=1 +x_0=500000 +y_0=0 +a=6378140 +b=6356755.288157528 +units=m +no_defs "],"EPSG:2384":["EPSG:2384","+proj=tmerc +lat_0=0 +lon_0=117 +k=1 +x_0=500000 +y_0=0 +a=6378140 +b=6356755.288157528 +units=m +no_defs "],"EPSG:2386":["EPSG:2386","+proj=tmerc +lat_0=0 +lon_0=123 +k=1 +x_0=500000 +y_0=0 +a=6378140 +b=6356755.288157528 +units=m +no_defs "],"EPSG:2387":["EPSG:2387","+proj=tmerc +lat_0=0 +lon_0=126 +k=1 +x_0=500000 +y_0=0 +a=6378140 +b=6356755.288157528 +units=m +no_defs "],"EPSG:2388":["EPSG:2388","+proj=tmerc +lat_0=0 +lon_0=129 +k=1 +x_0=500000 +y_0=0 +a=6378140 +b=6356755.288157528 +units=m +no_defs "],"EPSG:2389":["EPSG:2389","+proj=tmerc +lat_0=0 +lon_0=132 +k=1 +x_0=500000 +y_0=0 +a=6378140 +b=6356755.288157528 +units=m +no_defs "],"EPSG:2390":["EPSG:2390","+proj=tmerc +lat_0=0 +lon_0=135 +k=1 +x_0=500000 +y_0=0 +a=6378140 +b=6356755.288157528 +units=m +no_defs "],"EPSG:2391":["EPSG:2391","+proj=tmerc +lat_0=0 +lon_0=21 +k=1 +x_0=1500000 +y_0=0 +ellps=intl +towgs84=-96.062,-82.428,-121.753,4.801,0.345,-1.376,1.496 +units=m +no_defs "],"EPSG:2392":["EPSG:2392","+proj=tmerc +lat_0=0 +lon_0=24 +k=1 +x_0=2500000 +y_0=0 +ellps=intl +towgs84=-96.062,-82.428,-121.753,4.801,0.345,-1.376,1.496 +units=m +no_defs "],"EPSG:2394":["EPSG:2394","+proj=tmerc +lat_0=0 +lon_0=30 +k=1 +x_0=4500000 +y_0=0 +ellps=intl +towgs84=-96.062,-82.428,-121.753,4.801,0.345,-1.376,1.496 +units=m +no_defs "],"EPSG:2395":["EPSG:2395","+proj=tmerc +lat_0=0 +lon_0=45 +k=1 +x_0=8500000 +y_0=0 +ellps=krass +towgs84=-76,-138,67,0,0,0,0 +units=m +no_defs "],"EPSG:2396":["EPSG:2396","+proj=tmerc +lat_0=0 +lon_0=51 +k=1 +x_0=9500000 +y_0=0 +ellps=krass +towgs84=-76,-138,67,0,0,0,0 +units=m +no_defs "],"EPSG:2397":["EPSG:2397","+proj=tmerc +lat_0=0 +lon_0=9 +k=1 +x_0=3500000 +y_0=0 +ellps=krass +towgs84=26,-121,-78,0,0,0,0 +units=m +no_defs "],"EPSG:2398":["EPSG:2398","+proj=tmerc +lat_0=0 +lon_0=12 +k=1 +x_0=4500000 +y_0=0 +ellps=krass +towgs84=26,-121,-78,0,0,0,0 +units=m +no_defs "],"EPSG:2399":["EPSG:2399","+proj=tmerc +lat_0=0 +lon_0=15 +k=1 +x_0=5500000 +y_0=0 +ellps=krass +towgs84=26,-121,-78,0,0,0,0 +units=m +no_defs "],"EPSG:2401":["EPSG:2401","+proj=tmerc +lat_0=0 +lon_0=75 +k=1 +x_0=25500000 +y_0=0 +ellps=krass +towgs84=15.8,-154.4,-82.3,0,0,0,0 +units=m +no_defs "],"EPSG:2402":["EPSG:2402","+proj=tmerc +lat_0=0 +lon_0=78 +k=1 +x_0=26500000 +y_0=0 +ellps=krass +towgs84=15.8,-154.4,-82.3,0,0,0,0 +units=m +no_defs "],"EPSG:2403":["EPSG:2403","+proj=tmerc +lat_0=0 +lon_0=81 +k=1 +x_0=27500000 +y_0=0 +ellps=krass +towgs84=15.8,-154.4,-82.3,0,0,0,0 +units=m +no_defs "],"EPSG:2404":["EPSG:2404","+proj=tmerc +lat_0=0 +lon_0=84 +k=1 +x_0=28500000 +y_0=0 +ellps=krass +towgs84=15.8,-154.4,-82.3,0,0,0,0 +units=m +no_defs "],"EPSG:2405":["EPSG:2405","+proj=tmerc +lat_0=0 +lon_0=87 +k=1 +x_0=29500000 +y_0=0 +ellps=krass +towgs84=15.8,-154.4,-82.3,0,0,0,0 +units=m +no_defs "],"EPSG:2406":["EPSG:2406","+proj=tmerc +lat_0=0 +lon_0=90 +k=1 +x_0=30500000 +y_0=0 +ellps=krass +towgs84=15.8,-154.4,-82.3,0,0,0,0 +units=m +no_defs "],"EPSG:2407":["EPSG:2407","+proj=tmerc +lat_0=0 +lon_0=93 +k=1 +x_0=31500000 +y_0=0 +ellps=krass +towgs84=15.8,-154.4,-82.3,0,0,0,0 +units=m +no_defs "],"EPSG:2408":["EPSG:2408","+proj=tmerc +lat_0=0 +lon_0=96 +k=1 +x_0=32500000 +y_0=0 +ellps=krass +towgs84=15.8,-154.4,-82.3,0,0,0,0 +units=m +no_defs "],"EPSG:2409":["EPSG:2409","+proj=tmerc +lat_0=0 +lon_0=99 +k=1 +x_0=33500000 +y_0=0 +ellps=krass +towgs84=15.8,-154.4,-82.3,0,0,0,0 +units=m +no_defs "],"EPSG:2410":["EPSG:2410","+proj=tmerc +lat_0=0 +lon_0=102 +k=1 +x_0=34500000 +y_0=0 +ellps=krass +towgs84=15.8,-154.4,-82.3,0,0,0,0 +units=m +no_defs "],"EPSG:2411":["EPSG:2411","+proj=tmerc +lat_0=0 +lon_0=105 +k=1 +x_0=35500000 +y_0=0 +ellps=krass +towgs84=15.8,-154.4,-82.3,0,0,0,0 +units=m +no_defs "],"EPSG:2412":["EPSG:2412","+proj=tmerc +lat_0=0 +lon_0=108 +k=1 +x_0=36500000 +y_0=0 +ellps=krass +towgs84=15.8,-154.4,-82.3,0,0,0,0 +units=m +no_defs "],"EPSG:2413":["EPSG:2413","+proj=tmerc +lat_0=0 +lon_0=111 +k=1 +x_0=37500000 +y_0=0 +ellps=krass +towgs84=15.8,-154.4,-82.3,0,0,0,0 +units=m +no_defs "],"EPSG:2414":["EPSG:2414","+proj=tmerc +lat_0=0 +lon_0=114 +k=1 +x_0=38500000 +y_0=0 +ellps=krass +towgs84=15.8,-154.4,-82.3,0,0,0,0 +units=m +no_defs "],"EPSG:2415":["EPSG:2415","+proj=tmerc +lat_0=0 +lon_0=117 +k=1 +x_0=39500000 +y_0=0 +ellps=krass +towgs84=15.8,-154.4,-82.3,0,0,0,0 +units=m +no_defs "],"EPSG:2416":["EPSG:2416","+proj=tmerc +lat_0=0 +lon_0=120 +k=1 +x_0=40500000 +y_0=0 +ellps=krass +towgs84=15.8,-154.4,-82.3,0,0,0,0 +units=m +no_defs "],"EPSG:2417":["EPSG:2417","+proj=tmerc +lat_0=0 +lon_0=123 +k=1 +x_0=41500000 +y_0=0 +ellps=krass +towgs84=15.8,-154.4,-82.3,0,0,0,0 +units=m +no_defs "],"EPSG:2418":["EPSG:2418","+proj=tmerc +lat_0=0 +lon_0=126 +k=1 +x_0=42500000 +y_0=0 +ellps=krass +towgs84=15.8,-154.4,-82.3,0,0,0,0 +units=m +no_defs "],"EPSG:2419":["EPSG:2419","+proj=tmerc +lat_0=0 +lon_0=129 +k=1 +x_0=43500000 +y_0=0 +ellps=krass +towgs84=15.8,-154.4,-82.3,0,0,0,0 +units=m +no_defs "],"EPSG:2420":["EPSG:2420","+proj=tmerc +lat_0=0 +lon_0=132 +k=1 +x_0=44500000 +y_0=0 +ellps=krass +towgs84=15.8,-154.4,-82.3,0,0,0,0 +units=m +no_defs "],"EPSG:2421":["EPSG:2421","+proj=tmerc +lat_0=0 +lon_0=135 +k=1 +x_0=45500000 +y_0=0 +ellps=krass +towgs84=15.8,-154.4,-82.3,0,0,0,0 +units=m +no_defs "],"EPSG:2422":["EPSG:2422","+proj=tmerc +lat_0=0 +lon_0=75 +k=1 +x_0=500000 +y_0=0 +ellps=krass +towgs84=15.8,-154.4,-82.3,0,0,0,0 +units=m +no_defs "],"EPSG:2423":["EPSG:2423","+proj=tmerc +lat_0=0 +lon_0=78 +k=1 +x_0=500000 +y_0=0 +ellps=krass +towgs84=15.8,-154.4,-82.3,0,0,0,0 +units=m +no_defs "],"EPSG:2424":["EPSG:2424","+proj=tmerc +lat_0=0 +lon_0=81 +k=1 +x_0=500000 +y_0=0 +ellps=krass +towgs84=15.8,-154.4,-82.3,0,0,0,0 +units=m +no_defs "],"EPSG:2425":["EPSG:2425","+proj=tmerc +lat_0=0 +lon_0=84 +k=1 +x_0=500000 +y_0=0 +ellps=krass +towgs84=15.8,-154.4,-82.3,0,0,0,0 +units=m +no_defs "],"EPSG:2426":["EPSG:2426","+proj=tmerc +lat_0=0 +lon_0=87 +k=1 +x_0=500000 +y_0=0 +ellps=krass +towgs84=15.8,-154.4,-82.3,0,0,0,0 +units=m +no_defs "],"EPSG:2427":["EPSG:2427","+proj=tmerc +lat_0=0 +lon_0=90 +k=1 +x_0=500000 +y_0=0 +ellps=krass +towgs84=15.8,-154.4,-82.3,0,0,0,0 +units=m +no_defs "],"EPSG:2428":["EPSG:2428","+proj=tmerc +lat_0=0 +lon_0=93 +k=1 +x_0=500000 +y_0=0 +ellps=krass +towgs84=15.8,-154.4,-82.3,0,0,0,0 +units=m +no_defs "],"EPSG:2429":["EPSG:2429","+proj=tmerc +lat_0=0 +lon_0=96 +k=1 +x_0=500000 +y_0=0 +ellps=krass +towgs84=15.8,-154.4,-82.3,0,0,0,0 +units=m +no_defs "],"EPSG:2430":["EPSG:2430","+proj=tmerc +lat_0=0 +lon_0=99 +k=1 +x_0=500000 +y_0=0 +ellps=krass +towgs84=15.8,-154.4,-82.3,0,0,0,0 +units=m +no_defs "],"EPSG:2431":["EPSG:2431","+proj=tmerc +lat_0=0 +lon_0=102 +k=1 +x_0=500000 +y_0=0 +ellps=krass +towgs84=15.8,-154.4,-82.3,0,0,0,0 +units=m +no_defs "],"EPSG:2432":["EPSG:2432","+proj=tmerc +lat_0=0 +lon_0=105 +k=1 +x_0=500000 +y_0=0 +ellps=krass +towgs84=15.8,-154.4,-82.3,0,0,0,0 +units=m +no_defs "],"EPSG:2433":["EPSG:2433","+proj=tmerc +lat_0=0 +lon_0=108 +k=1 +x_0=500000 +y_0=0 +ellps=krass +towgs84=15.8,-154.4,-82.3,0,0,0,0 +units=m +no_defs "],"EPSG:2435":["EPSG:2435","+proj=tmerc +lat_0=0 +lon_0=114 +k=1 +x_0=500000 +y_0=0 +ellps=krass +towgs84=15.8,-154.4,-82.3,0,0,0,0 +units=m +no_defs "],"EPSG:2436":["EPSG:2436","+proj=tmerc +lat_0=0 +lon_0=117 +k=1 +x_0=500000 +y_0=0 +ellps=krass +towgs84=15.8,-154.4,-82.3,0,0,0,0 +units=m +no_defs "],"EPSG:2437":["EPSG:2437","+proj=tmerc +lat_0=0 +lon_0=120 +k=1 +x_0=500000 +y_0=0 +ellps=krass +towgs84=15.8,-154.4,-82.3,0,0,0,0 +units=m +no_defs "],"EPSG:2438":["EPSG:2438","+proj=tmerc +lat_0=0 +lon_0=123 +k=1 +x_0=500000 +y_0=0 +ellps=krass +towgs84=15.8,-154.4,-82.3,0,0,0,0 +units=m +no_defs "],"EPSG:2439":["EPSG:2439","+proj=tmerc +lat_0=0 +lon_0=126 +k=1 +x_0=500000 +y_0=0 +ellps=krass +towgs84=15.8,-154.4,-82.3,0,0,0,0 +units=m +no_defs "],"EPSG:2440":["EPSG:2440","+proj=tmerc +lat_0=0 +lon_0=129 +k=1 +x_0=500000 +y_0=0 +ellps=krass +towgs84=15.8,-154.4,-82.3,0,0,0,0 +units=m +no_defs "],"EPSG:2441":["EPSG:2441","+proj=tmerc +lat_0=0 +lon_0=132 +k=1 +x_0=500000 +y_0=0 +ellps=krass +towgs84=15.8,-154.4,-82.3,0,0,0,0 +units=m +no_defs "],"EPSG:2442":["EPSG:2442","+proj=tmerc +lat_0=0 +lon_0=135 +k=1 +x_0=500000 +y_0=0 +ellps=krass +towgs84=15.8,-154.4,-82.3,0,0,0,0 +units=m +no_defs "],"EPSG:2443":["EPSG:2443","+proj=tmerc +lat_0=33 +lon_0=129.5 +k=0.9999 +x_0=0 +y_0=0 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs "],"EPSG:2444":["EPSG:2444","+proj=tmerc +lat_0=33 +lon_0=131 +k=0.9999 +x_0=0 +y_0=0 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs "],"EPSG:2445":["EPSG:2445","+proj=tmerc +lat_0=36 +lon_0=132.1666666666667 +k=0.9999 +x_0=0 +y_0=0 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs "],"EPSG:2446":["EPSG:2446","+proj=tmerc +lat_0=33 +lon_0=133.5 +k=0.9999 +x_0=0 +y_0=0 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs "],"EPSG:2447":["EPSG:2447","+proj=tmerc +lat_0=36 +lon_0=134.3333333333333 +k=0.9999 +x_0=0 +y_0=0 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs "],"EPSG:2448":["EPSG:2448","+proj=tmerc +lat_0=36 +lon_0=136 +k=0.9999 +x_0=0 +y_0=0 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs "],"EPSG:2449":["EPSG:2449","+proj=tmerc +lat_0=36 +lon_0=137.1666666666667 +k=0.9999 +x_0=0 +y_0=0 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs "],"EPSG:2451":["EPSG:2451","+proj=tmerc +lat_0=36 +lon_0=139.8333333333333 +k=0.9999 +x_0=0 +y_0=0 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs "],"EPSG:2452":["EPSG:2452","+proj=tmerc +lat_0=40 +lon_0=140.8333333333333 +k=0.9999 +x_0=0 +y_0=0 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs "],"EPSG:2453":["EPSG:2453","+proj=tmerc +lat_0=44 +lon_0=140.25 +k=0.9999 +x_0=0 +y_0=0 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs "],"EPSG:2454":["EPSG:2454","+proj=tmerc +lat_0=44 +lon_0=142.25 +k=0.9999 +x_0=0 +y_0=0 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs "],"EPSG:2455":["EPSG:2455","+proj=tmerc +lat_0=44 +lon_0=144.25 +k=0.9999 +x_0=0 +y_0=0 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs "],"EPSG:2456":["EPSG:2456","+proj=tmerc +lat_0=26 +lon_0=142 +k=0.9999 +x_0=0 +y_0=0 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs "],"EPSG:2457":["EPSG:2457","+proj=tmerc +lat_0=26 +lon_0=127.5 +k=0.9999 +x_0=0 +y_0=0 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs "],"EPSG:2458":["EPSG:2458","+proj=tmerc +lat_0=26 +lon_0=124 +k=0.9999 +x_0=0 +y_0=0 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs "],"EPSG:2459":["EPSG:2459","+proj=tmerc +lat_0=26 +lon_0=131 +k=0.9999 +x_0=0 +y_0=0 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs "],"EPSG:2460":["EPSG:2460","+proj=tmerc +lat_0=20 +lon_0=136 +k=0.9999 +x_0=0 +y_0=0 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs "],"EPSG:2461":["EPSG:2461","+proj=tmerc +lat_0=26 +lon_0=154 +k=0.9999 +x_0=0 +y_0=0 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs "],"EPSG:2462":["EPSG:2462","+proj=tmerc +lat_0=0 +lon_0=21 +k=1 +x_0=4500000 +y_0=0 +ellps=krass +towgs84=-44.183,-0.58,-38.489,-2.3867,-2.7072,3.5196,-8.2703 +units=m +no_defs "],"EPSG:2463":["EPSG:2463","+proj=tmerc +lat_0=0 +lon_0=21 +k=1 +x_0=500000 +y_0=0 +ellps=krass +towgs84=24.47,-130.89,-81.56,0,0,0.13,-0.22 +units=m +no_defs "],"EPSG:2464":["EPSG:2464","+proj=tmerc +lat_0=0 +lon_0=27 +k=1 +x_0=500000 +y_0=0 +ellps=krass +towgs84=24.47,-130.89,-81.56,0,0,0.13,-0.22 +units=m +no_defs "],"EPSG:2465":["EPSG:2465","+proj=tmerc +lat_0=0 +lon_0=33 +k=1 +x_0=500000 +y_0=0 +ellps=krass +towgs84=24.47,-130.89,-81.56,0,0,0.13,-0.22 +units=m +no_defs "],"EPSG:2466":["EPSG:2466","+proj=tmerc +lat_0=0 +lon_0=39 +k=1 +x_0=500000 +y_0=0 +ellps=krass +towgs84=24.47,-130.89,-81.56,0,0,0.13,-0.22 +units=m +no_defs "],"EPSG:2467":["EPSG:2467","+proj=tmerc +lat_0=0 +lon_0=45 +k=1 +x_0=500000 +y_0=0 +ellps=krass +towgs84=24.47,-130.89,-81.56,0,0,0.13,-0.22 +units=m +no_defs "],"EPSG:2468":["EPSG:2468","+proj=tmerc +lat_0=0 +lon_0=51 +k=1 +x_0=500000 +y_0=0 +ellps=krass +towgs84=24.47,-130.89,-81.56,0,0,0.13,-0.22 +units=m +no_defs "],"EPSG:2469":["EPSG:2469","+proj=tmerc +lat_0=0 +lon_0=57 +k=1 +x_0=500000 +y_0=0 +ellps=krass +towgs84=24.47,-130.89,-81.56,0,0,0.13,-0.22 +units=m +no_defs "],"EPSG:2470":["EPSG:2470","+proj=tmerc +lat_0=0 +lon_0=63 +k=1 +x_0=500000 +y_0=0 +ellps=krass +towgs84=24.47,-130.89,-81.56,0,0,0.13,-0.22 +units=m +no_defs "],"EPSG:2471":["EPSG:2471","+proj=tmerc +lat_0=0 +lon_0=69 +k=1 +x_0=500000 +y_0=0 +ellps=krass +towgs84=24.47,-130.89,-81.56,0,0,0.13,-0.22 +units=m +no_defs "],"EPSG:2472":["EPSG:2472","+proj=tmerc +lat_0=0 +lon_0=75 +k=1 +x_0=500000 +y_0=0 +ellps=krass +towgs84=24.47,-130.89,-81.56,0,0,0.13,-0.22 +units=m +no_defs "],"EPSG:2473":["EPSG:2473","+proj=tmerc +lat_0=0 +lon_0=81 +k=1 +x_0=500000 +y_0=0 +ellps=krass +towgs84=24.47,-130.89,-81.56,0,0,0.13,-0.22 +units=m +no_defs "],"EPSG:2474":["EPSG:2474","+proj=tmerc +lat_0=0 +lon_0=87 +k=1 +x_0=500000 +y_0=0 +ellps=krass +towgs84=24.47,-130.89,-81.56,0,0,0.13,-0.22 +units=m +no_defs "],"EPSG:2475":["EPSG:2475","+proj=tmerc +lat_0=0 +lon_0=93 +k=1 +x_0=500000 +y_0=0 +ellps=krass +towgs84=24.47,-130.89,-81.56,0,0,0.13,-0.22 +units=m +no_defs "],"EPSG:2476":["EPSG:2476","+proj=tmerc +lat_0=0 +lon_0=99 +k=1 +x_0=500000 +y_0=0 +ellps=krass +towgs84=24.47,-130.89,-81.56,0,0,0.13,-0.22 +units=m +no_defs "],"EPSG:2477":["EPSG:2477","+proj=tmerc +lat_0=0 +lon_0=105 +k=1 +x_0=500000 +y_0=0 +ellps=krass +towgs84=24.47,-130.89,-81.56,0,0,0.13,-0.22 +units=m +no_defs "],"EPSG:2478":["EPSG:2478","+proj=tmerc +lat_0=0 +lon_0=111 +k=1 +x_0=500000 +y_0=0 +ellps=krass +towgs84=24.47,-130.89,-81.56,0,0,0.13,-0.22 +units=m +no_defs "],"EPSG:2479":["EPSG:2479","+proj=tmerc +lat_0=0 +lon_0=117 +k=1 +x_0=500000 +y_0=0 +ellps=krass +towgs84=24.47,-130.89,-81.56,0,0,0.13,-0.22 +units=m +no_defs "],"EPSG:2480":["EPSG:2480","+proj=tmerc +lat_0=0 +lon_0=123 +k=1 +x_0=500000 +y_0=0 +ellps=krass +towgs84=24.47,-130.89,-81.56,0,0,0.13,-0.22 +units=m +no_defs "],"EPSG:2481":["EPSG:2481","+proj=tmerc +lat_0=0 +lon_0=129 +k=1 +x_0=500000 +y_0=0 +ellps=krass +towgs84=24.47,-130.89,-81.56,0,0,0.13,-0.22 +units=m +no_defs "],"EPSG:2482":["EPSG:2482","+proj=tmerc +lat_0=0 +lon_0=135 +k=1 +x_0=500000 +y_0=0 +ellps=krass +towgs84=24.47,-130.89,-81.56,0,0,0.13,-0.22 +units=m +no_defs "],"EPSG:2483":["EPSG:2483","+proj=tmerc +lat_0=0 +lon_0=141 +k=1 +x_0=500000 +y_0=0 +ellps=krass +towgs84=24.47,-130.89,-81.56,0,0,0.13,-0.22 +units=m +no_defs "],"EPSG:2484":["EPSG:2484","+proj=tmerc +lat_0=0 +lon_0=147 +k=1 +x_0=500000 +y_0=0 +ellps=krass +towgs84=24.47,-130.89,-81.56,0,0,0.13,-0.22 +units=m +no_defs "],"EPSG:2485":["EPSG:2485","+proj=tmerc +lat_0=0 +lon_0=153 +k=1 +x_0=500000 +y_0=0 +ellps=krass +towgs84=24.47,-130.89,-81.56,0,0,0.13,-0.22 +units=m +no_defs "],"EPSG:2486":["EPSG:2486","+proj=tmerc +lat_0=0 +lon_0=159 +k=1 +x_0=500000 +y_0=0 +ellps=krass +towgs84=24.47,-130.89,-81.56,0,0,0.13,-0.22 +units=m +no_defs "],"EPSG:2487":["EPSG:2487","+proj=tmerc +lat_0=0 +lon_0=165 +k=1 +x_0=500000 +y_0=0 +ellps=krass +towgs84=24.47,-130.89,-81.56,0,0,0.13,-0.22 +units=m +no_defs "],"EPSG:2488":["EPSG:2488","+proj=tmerc +lat_0=0 +lon_0=171 +k=1 +x_0=500000 +y_0=0 +ellps=krass +towgs84=24.47,-130.89,-81.56,0,0,0.13,-0.22 +units=m +no_defs "],"EPSG:2489":["EPSG:2489","+proj=tmerc +lat_0=0 +lon_0=177 +k=1 +x_0=500000 +y_0=0 +ellps=krass +towgs84=24.47,-130.89,-81.56,0,0,0.13,-0.22 +units=m +no_defs "],"EPSG:2490":["EPSG:2490","+proj=tmerc +lat_0=0 +lon_0=-177 +k=1 +x_0=500000 +y_0=0 +ellps=krass +towgs84=24.47,-130.89,-81.56,0,0,0.13,-0.22 +units=m +no_defs "],"EPSG:2491":["EPSG:2491","+proj=tmerc +lat_0=0 +lon_0=-171 +k=1 +x_0=500000 +y_0=0 +ellps=krass +towgs84=24.47,-130.89,-81.56,0,0,0.13,-0.22 +units=m +no_defs "],"EPSG:2492":["EPSG:2492","+proj=tmerc +lat_0=0 +lon_0=9 +k=1 +x_0=500000 +y_0=0 +ellps=krass +towgs84=23.92,-141.27,-80.9,0,0.35,0.82,-0.12 +units=m +no_defs "],"EPSG:2493":["EPSG:2493","+proj=tmerc +lat_0=0 +lon_0=15 +k=1 +x_0=500000 +y_0=0 +ellps=krass +towgs84=23.92,-141.27,-80.9,0,0.35,0.82,-0.12 +units=m +no_defs "],"EPSG:2494":["EPSG:2494","+proj=tmerc +lat_0=0 +lon_0=21 +k=1 +x_0=500000 +y_0=0 +ellps=krass +towgs84=23.92,-141.27,-80.9,0,0.35,0.82,-0.12 +units=m +no_defs "],"EPSG:2495":["EPSG:2495","+proj=tmerc +lat_0=0 +lon_0=27 +k=1 +x_0=500000 +y_0=0 +ellps=krass +towgs84=23.92,-141.27,-80.9,0,0.35,0.82,-0.12 +units=m +no_defs "],"EPSG:2496":["EPSG:2496","+proj=tmerc +lat_0=0 +lon_0=33 +k=1 +x_0=500000 +y_0=0 +ellps=krass +towgs84=23.92,-141.27,-80.9,0,0.35,0.82,-0.12 +units=m +no_defs "],"EPSG:2497":["EPSG:2497","+proj=tmerc +lat_0=0 +lon_0=39 +k=1 +x_0=500000 +y_0=0 +ellps=krass +towgs84=23.92,-141.27,-80.9,0,0.35,0.82,-0.12 +units=m +no_defs "],"EPSG:2498":["EPSG:2498","+proj=tmerc +lat_0=0 +lon_0=45 +k=1 +x_0=500000 +y_0=0 +ellps=krass +towgs84=23.92,-141.27,-80.9,0,0.35,0.82,-0.12 +units=m +no_defs "],"EPSG:2499":["EPSG:2499","+proj=tmerc +lat_0=0 +lon_0=51 +k=1 +x_0=500000 +y_0=0 +ellps=krass +towgs84=23.92,-141.27,-80.9,0,0.35,0.82,-0.12 +units=m +no_defs "],"EPSG:2500":["EPSG:2500","+proj=tmerc +lat_0=0 +lon_0=57 +k=1 +x_0=500000 +y_0=0 +ellps=krass +towgs84=23.92,-141.27,-80.9,0,0.35,0.82,-0.12 +units=m +no_defs "],"EPSG:2501":["EPSG:2501","+proj=tmerc +lat_0=0 +lon_0=63 +k=1 +x_0=500000 +y_0=0 +ellps=krass +towgs84=23.92,-141.27,-80.9,0,0.35,0.82,-0.12 +units=m +no_defs "],"EPSG:2502":["EPSG:2502","+proj=tmerc +lat_0=0 +lon_0=69 +k=1 +x_0=500000 +y_0=0 +ellps=krass +towgs84=23.92,-141.27,-80.9,0,0.35,0.82,-0.12 +units=m +no_defs "],"EPSG:2503":["EPSG:2503","+proj=tmerc +lat_0=0 +lon_0=75 +k=1 +x_0=500000 +y_0=0 +ellps=krass +towgs84=23.92,-141.27,-80.9,0,0.35,0.82,-0.12 +units=m +no_defs "],"EPSG:2504":["EPSG:2504","+proj=tmerc +lat_0=0 +lon_0=81 +k=1 +x_0=500000 +y_0=0 +ellps=krass +towgs84=23.92,-141.27,-80.9,0,0.35,0.82,-0.12 +units=m +no_defs "],"EPSG:2505":["EPSG:2505","+proj=tmerc +lat_0=0 +lon_0=87 +k=1 +x_0=500000 +y_0=0 +ellps=krass +towgs84=23.92,-141.27,-80.9,0,0.35,0.82,-0.12 +units=m +no_defs "],"EPSG:2506":["EPSG:2506","+proj=tmerc +lat_0=0 +lon_0=93 +k=1 +x_0=500000 +y_0=0 +ellps=krass +towgs84=23.92,-141.27,-80.9,0,0.35,0.82,-0.12 +units=m +no_defs "],"EPSG:2507":["EPSG:2507","+proj=tmerc +lat_0=0 +lon_0=99 +k=1 +x_0=500000 +y_0=0 +ellps=krass +towgs84=23.92,-141.27,-80.9,0,0.35,0.82,-0.12 +units=m +no_defs "],"EPSG:2508":["EPSG:2508","+proj=tmerc +lat_0=0 +lon_0=105 +k=1 +x_0=500000 +y_0=0 +ellps=krass +towgs84=23.92,-141.27,-80.9,0,0.35,0.82,-0.12 +units=m +no_defs "],"EPSG:2509":["EPSG:2509","+proj=tmerc +lat_0=0 +lon_0=111 +k=1 +x_0=500000 +y_0=0 +ellps=krass +towgs84=23.92,-141.27,-80.9,0,0.35,0.82,-0.12 +units=m +no_defs "],"EPSG:2510":["EPSG:2510","+proj=tmerc +lat_0=0 +lon_0=117 +k=1 +x_0=500000 +y_0=0 +ellps=krass +towgs84=23.92,-141.27,-80.9,0,0.35,0.82,-0.12 +units=m +no_defs "],"EPSG:2511":["EPSG:2511","+proj=tmerc +lat_0=0 +lon_0=123 +k=1 +x_0=500000 +y_0=0 +ellps=krass +towgs84=23.92,-141.27,-80.9,0,0.35,0.82,-0.12 +units=m +no_defs "],"EPSG:2512":["EPSG:2512","+proj=tmerc +lat_0=0 +lon_0=129 +k=1 +x_0=500000 +y_0=0 +ellps=krass +towgs84=23.92,-141.27,-80.9,0,0.35,0.82,-0.12 +units=m +no_defs "],"EPSG:2513":["EPSG:2513","+proj=tmerc +lat_0=0 +lon_0=135 +k=1 +x_0=500000 +y_0=0 +ellps=krass +towgs84=23.92,-141.27,-80.9,0,0.35,0.82,-0.12 +units=m +no_defs "],"EPSG:2514":["EPSG:2514","+proj=tmerc +lat_0=0 +lon_0=141 +k=1 +x_0=500000 +y_0=0 +ellps=krass +towgs84=23.92,-141.27,-80.9,0,0.35,0.82,-0.12 +units=m +no_defs "],"EPSG:2515":["EPSG:2515","+proj=tmerc +lat_0=0 +lon_0=147 +k=1 +x_0=500000 +y_0=0 +ellps=krass +towgs84=23.92,-141.27,-80.9,0,0.35,0.82,-0.12 +units=m +no_defs "],"EPSG:2516":["EPSG:2516","+proj=tmerc +lat_0=0 +lon_0=153 +k=1 +x_0=500000 +y_0=0 +ellps=krass +towgs84=23.92,-141.27,-80.9,0,0.35,0.82,-0.12 +units=m +no_defs "],"EPSG:2517":["EPSG:2517","+proj=tmerc +lat_0=0 +lon_0=159 +k=1 +x_0=500000 +y_0=0 +ellps=krass +towgs84=23.92,-141.27,-80.9,0,0.35,0.82,-0.12 +units=m +no_defs "],"EPSG:2518":["EPSG:2518","+proj=tmerc +lat_0=0 +lon_0=165 +k=1 +x_0=500000 +y_0=0 +ellps=krass +towgs84=23.92,-141.27,-80.9,0,0.35,0.82,-0.12 +units=m +no_defs "],"EPSG:2519":["EPSG:2519","+proj=tmerc +lat_0=0 +lon_0=171 +k=1 +x_0=500000 +y_0=0 +ellps=krass +towgs84=23.92,-141.27,-80.9,0,0.35,0.82,-0.12 +units=m +no_defs "],"EPSG:2520":["EPSG:2520","+proj=tmerc +lat_0=0 +lon_0=177 +k=1 +x_0=500000 +y_0=0 +ellps=krass +towgs84=23.92,-141.27,-80.9,0,0.35,0.82,-0.12 +units=m +no_defs "],"EPSG:2521":["EPSG:2521","+proj=tmerc +lat_0=0 +lon_0=-177 +k=1 +x_0=500000 +y_0=0 +ellps=krass +towgs84=23.92,-141.27,-80.9,0,0.35,0.82,-0.12 +units=m +no_defs "],"EPSG:2522":["EPSG:2522","+proj=tmerc +lat_0=0 +lon_0=-171 +k=1 +x_0=500000 +y_0=0 +ellps=krass +towgs84=23.92,-141.27,-80.9,0,0.35,0.82,-0.12 +units=m +no_defs "],"EPSG:2523":["EPSG:2523","+proj=tmerc +lat_0=0 +lon_0=21 +k=1 +x_0=7500000 +y_0=0 +ellps=krass +towgs84=23.92,-141.27,-80.9,0,0.35,0.82,-0.12 +units=m +no_defs "],"EPSG:2524":["EPSG:2524","+proj=tmerc +lat_0=0 +lon_0=24 +k=1 +x_0=8500000 +y_0=0 +ellps=krass +towgs84=23.92,-141.27,-80.9,0,0.35,0.82,-0.12 +units=m +no_defs "],"EPSG:2526":["EPSG:2526","+proj=tmerc +lat_0=0 +lon_0=30 +k=1 +x_0=10500000 +y_0=0 +ellps=krass +towgs84=23.92,-141.27,-80.9,0,0.35,0.82,-0.12 +units=m +no_defs "],"EPSG:2527":["EPSG:2527","+proj=tmerc +lat_0=0 +lon_0=33 +k=1 +x_0=11500000 +y_0=0 +ellps=krass +towgs84=23.92,-141.27,-80.9,0,0.35,0.82,-0.12 +units=m +no_defs "],"EPSG:2528":["EPSG:2528","+proj=tmerc +lat_0=0 +lon_0=36 +k=1 +x_0=12500000 +y_0=0 +ellps=krass +towgs84=23.92,-141.27,-80.9,0,0.35,0.82,-0.12 +units=m +no_defs "],"EPSG:2529":["EPSG:2529","+proj=tmerc +lat_0=0 +lon_0=39 +k=1 +x_0=13500000 +y_0=0 +ellps=krass +towgs84=23.92,-141.27,-80.9,0,0.35,0.82,-0.12 +units=m +no_defs "],"EPSG:2943":["EPSG:2943","+proj=utm +zone=28 +ellps=intl +towgs84=-289,-124,60,0,0,0,0 +units=m +no_defs "],"EPSG:2530":["EPSG:2530","+proj=tmerc +lat_0=0 +lon_0=42 +k=1 +x_0=14500000 +y_0=0 +ellps=krass +towgs84=23.92,-141.27,-80.9,0,0.35,0.82,-0.12 +units=m +no_defs "],"EPSG:2531":["EPSG:2531","+proj=tmerc +lat_0=0 +lon_0=45 +k=1 +x_0=15500000 +y_0=0 +ellps=krass +towgs84=23.92,-141.27,-80.9,0,0.35,0.82,-0.12 +units=m +no_defs "],"EPSG:2532":["EPSG:2532","+proj=tmerc +lat_0=0 +lon_0=48 +k=1 +x_0=16500000 +y_0=0 +ellps=krass +towgs84=23.92,-141.27,-80.9,0,0.35,0.82,-0.12 +units=m +no_defs "],"EPSG:2533":["EPSG:2533","+proj=tmerc +lat_0=0 +lon_0=51 +k=1 +x_0=17500000 +y_0=0 +ellps=krass +towgs84=23.92,-141.27,-80.9,0,0.35,0.82,-0.12 +units=m +no_defs "],"EPSG:2534":["EPSG:2534","+proj=tmerc +lat_0=0 +lon_0=54 +k=1 +x_0=18500000 +y_0=0 +ellps=krass +towgs84=23.92,-141.27,-80.9,0,0.35,0.82,-0.12 +units=m +no_defs "],"EPSG:2535":["EPSG:2535","+proj=tmerc +lat_0=0 +lon_0=57 +k=1 +x_0=19500000 +y_0=0 +ellps=krass +towgs84=23.92,-141.27,-80.9,0,0.35,0.82,-0.12 +units=m +no_defs "],"EPSG:2536":["EPSG:2536","+proj=tmerc +lat_0=0 +lon_0=60 +k=1 +x_0=20500000 +y_0=0 +ellps=krass +towgs84=23.92,-141.27,-80.9,0,0.35,0.82,-0.12 +units=m +no_defs "],"EPSG:2537":["EPSG:2537","+proj=tmerc +lat_0=0 +lon_0=63 +k=1 +x_0=21500000 +y_0=0 +ellps=krass +towgs84=23.92,-141.27,-80.9,0,0.35,0.82,-0.12 +units=m +no_defs "],"EPSG:2538":["EPSG:2538","+proj=tmerc +lat_0=0 +lon_0=66 +k=1 +x_0=22500000 +y_0=0 +ellps=krass +towgs84=23.92,-141.27,-80.9,0,0.35,0.82,-0.12 +units=m +no_defs "],"EPSG:2539":["EPSG:2539","+proj=tmerc +lat_0=0 +lon_0=69 +k=1 +x_0=23500000 +y_0=0 +ellps=krass +towgs84=23.92,-141.27,-80.9,0,0.35,0.82,-0.12 +units=m +no_defs "],"EPSG:2540":["EPSG:2540","+proj=tmerc +lat_0=0 +lon_0=72 +k=1 +x_0=24500000 +y_0=0 +ellps=krass +towgs84=23.92,-141.27,-80.9,0,0.35,0.82,-0.12 +units=m +no_defs "],"EPSG:2541":["EPSG:2541","+proj=tmerc +lat_0=0 +lon_0=75 +k=1 +x_0=25500000 +y_0=0 +ellps=krass +towgs84=23.92,-141.27,-80.9,0,0.35,0.82,-0.12 +units=m +no_defs "],"EPSG:2542":["EPSG:2542","+proj=tmerc +lat_0=0 +lon_0=78 +k=1 +x_0=26500000 +y_0=0 +ellps=krass +towgs84=23.92,-141.27,-80.9,0,0.35,0.82,-0.12 +units=m +no_defs "],"EPSG:2543":["EPSG:2543","+proj=tmerc +lat_0=0 +lon_0=81 +k=1 +x_0=27500000 +y_0=0 +ellps=krass +towgs84=23.92,-141.27,-80.9,0,0.35,0.82,-0.12 +units=m +no_defs "],"EPSG:2544":["EPSG:2544","+proj=tmerc +lat_0=0 +lon_0=84 +k=1 +x_0=28500000 +y_0=0 +ellps=krass +towgs84=23.92,-141.27,-80.9,0,0.35,0.82,-0.12 +units=m +no_defs "],"EPSG:2545":["EPSG:2545","+proj=tmerc +lat_0=0 +lon_0=87 +k=1 +x_0=29500000 +y_0=0 +ellps=krass +towgs84=23.92,-141.27,-80.9,0,0.35,0.82,-0.12 +units=m +no_defs "],"EPSG:2546":["EPSG:2546","+proj=tmerc +lat_0=0 +lon_0=90 +k=1 +x_0=30500000 +y_0=0 +ellps=krass +towgs84=23.92,-141.27,-80.9,0,0.35,0.82,-0.12 +units=m +no_defs "],"EPSG:2547":["EPSG:2547","+proj=tmerc +lat_0=0 +lon_0=93 +k=1 +x_0=31500000 +y_0=0 +ellps=krass +towgs84=23.92,-141.27,-80.9,0,0.35,0.82,-0.12 +units=m +no_defs "],"EPSG:2548":["EPSG:2548","+proj=tmerc +lat_0=0 +lon_0=96 +k=1 +x_0=32500000 +y_0=0 +ellps=krass +towgs84=23.92,-141.27,-80.9,0,0.35,0.82,-0.12 +units=m +no_defs "],"EPSG:2549":["EPSG:2549","+proj=tmerc +lat_0=0 +lon_0=99 +k=1 +x_0=33500000 +y_0=0 +ellps=krass +towgs84=23.92,-141.27,-80.9,0,0.35,0.82,-0.12 +units=m +no_defs "],"EPSG:2550":["EPSG:2550","+proj=utm +zone=50 +south +ellps=bessel +towgs84=-404.78,685.68,45.47,0,0,0,0 +units=m +no_defs "],"EPSG:2551":["EPSG:2551","+proj=tmerc +lat_0=0 +lon_0=102 +k=1 +x_0=34500000 +y_0=0 +ellps=krass +towgs84=23.92,-141.27,-80.9,0,0.35,0.82,-0.12 +units=m +no_defs "],"EPSG:2552":["EPSG:2552","+proj=tmerc +lat_0=0 +lon_0=105 +k=1 +x_0=35500000 +y_0=0 +ellps=krass +towgs84=23.92,-141.27,-80.9,0,0.35,0.82,-0.12 +units=m +no_defs "],"EPSG:2553":["EPSG:2553","+proj=tmerc +lat_0=0 +lon_0=108 +k=1 +x_0=36500000 +y_0=0 +ellps=krass +towgs84=23.92,-141.27,-80.9,0,0.35,0.82,-0.12 +units=m +no_defs "],"EPSG:2554":["EPSG:2554","+proj=tmerc +lat_0=0 +lon_0=111 +k=1 +x_0=37500000 +y_0=0 +ellps=krass +towgs84=23.92,-141.27,-80.9,0,0.35,0.82,-0.12 +units=m +no_defs "],"EPSG:2555":["EPSG:2555","+proj=tmerc +lat_0=0 +lon_0=114 +k=1 +x_0=38500000 +y_0=0 +ellps=krass +towgs84=23.92,-141.27,-80.9,0,0.35,0.82,-0.12 +units=m +no_defs "],"EPSG:2556":["EPSG:2556","+proj=tmerc +lat_0=0 +lon_0=117 +k=1 +x_0=39500000 +y_0=0 +ellps=krass +towgs84=23.92,-141.27,-80.9,0,0.35,0.82,-0.12 +units=m +no_defs "],"EPSG:2557":["EPSG:2557","+proj=tmerc +lat_0=0 +lon_0=120 +k=1 +x_0=40500000 +y_0=0 +ellps=krass +towgs84=23.92,-141.27,-80.9,0,0.35,0.82,-0.12 +units=m +no_defs "],"EPSG:2558":["EPSG:2558","+proj=tmerc +lat_0=0 +lon_0=123 +k=1 +x_0=41500000 +y_0=0 +ellps=krass +towgs84=23.92,-141.27,-80.9,0,0.35,0.82,-0.12 +units=m +no_defs "],"EPSG:2559":["EPSG:2559","+proj=tmerc +lat_0=0 +lon_0=126 +k=1 +x_0=42500000 +y_0=0 +ellps=krass +towgs84=23.92,-141.27,-80.9,0,0.35,0.82,-0.12 +units=m +no_defs "],"EPSG:2560":["EPSG:2560","+proj=tmerc +lat_0=0 +lon_0=129 +k=1 +x_0=43500000 +y_0=0 +ellps=krass +towgs84=23.92,-141.27,-80.9,0,0.35,0.82,-0.12 +units=m +no_defs "],"EPSG:2561":["EPSG:2561","+proj=tmerc +lat_0=0 +lon_0=132 +k=1 +x_0=44500000 +y_0=0 +ellps=krass +towgs84=23.92,-141.27,-80.9,0,0.35,0.82,-0.12 +units=m +no_defs "],"EPSG:2562":["EPSG:2562","+proj=tmerc +lat_0=0 +lon_0=135 +k=1 +x_0=45500000 +y_0=0 +ellps=krass +towgs84=23.92,-141.27,-80.9,0,0.35,0.82,-0.12 +units=m +no_defs "],"EPSG:2563":["EPSG:2563","+proj=tmerc +lat_0=0 +lon_0=138 +k=1 +x_0=46500000 +y_0=0 +ellps=krass +towgs84=23.92,-141.27,-80.9,0,0.35,0.82,-0.12 +units=m +no_defs "],"EPSG:2564":["EPSG:2564","+proj=tmerc +lat_0=0 +lon_0=141 +k=1 +x_0=47500000 +y_0=0 +ellps=krass +towgs84=23.92,-141.27,-80.9,0,0.35,0.82,-0.12 +units=m +no_defs "],"EPSG:2565":["EPSG:2565","+proj=tmerc +lat_0=0 +lon_0=144 +k=1 +x_0=48500000 +y_0=0 +ellps=krass +towgs84=23.92,-141.27,-80.9,0,0.35,0.82,-0.12 +units=m +no_defs "],"EPSG:2566":["EPSG:2566","+proj=tmerc +lat_0=0 +lon_0=147 +k=1 +x_0=49500000 +y_0=0 +ellps=krass +towgs84=23.92,-141.27,-80.9,0,0.35,0.82,-0.12 +units=m +no_defs "],"EPSG:2567":["EPSG:2567","+proj=tmerc +lat_0=0 +lon_0=150 +k=1 +x_0=50500000 +y_0=0 +ellps=krass +towgs84=23.92,-141.27,-80.9,0,0.35,0.82,-0.12 +units=m +no_defs "],"EPSG:2568":["EPSG:2568","+proj=tmerc +lat_0=0 +lon_0=153 +k=1 +x_0=51500000 +y_0=0 +ellps=krass +towgs84=23.92,-141.27,-80.9,0,0.35,0.82,-0.12 +units=m +no_defs "],"EPSG:2569":["EPSG:2569","+proj=tmerc +lat_0=0 +lon_0=156 +k=1 +x_0=52500000 +y_0=0 +ellps=krass +towgs84=23.92,-141.27,-80.9,0,0.35,0.82,-0.12 +units=m +no_defs "],"EPSG:2570":["EPSG:2570","+proj=tmerc +lat_0=0 +lon_0=159 +k=1 +x_0=53500000 +y_0=0 +ellps=krass +towgs84=23.92,-141.27,-80.9,0,0.35,0.82,-0.12 +units=m +no_defs "],"EPSG:2571":["EPSG:2571","+proj=tmerc +lat_0=0 +lon_0=162 +k=1 +x_0=54500000 +y_0=0 +ellps=krass +towgs84=23.92,-141.27,-80.9,0,0.35,0.82,-0.12 +units=m +no_defs "],"EPSG:2572":["EPSG:2572","+proj=tmerc +lat_0=0 +lon_0=165 +k=1 +x_0=55500000 +y_0=0 +ellps=krass +towgs84=23.92,-141.27,-80.9,0,0.35,0.82,-0.12 +units=m +no_defs "],"EPSG:2573":["EPSG:2573","+proj=tmerc +lat_0=0 +lon_0=168 +k=1 +x_0=56500000 +y_0=0 +ellps=krass +towgs84=23.92,-141.27,-80.9,0,0.35,0.82,-0.12 +units=m +no_defs "],"EPSG:2574":["EPSG:2574","+proj=tmerc +lat_0=0 +lon_0=171 +k=1 +x_0=57500000 +y_0=0 +ellps=krass +towgs84=23.92,-141.27,-80.9,0,0.35,0.82,-0.12 +units=m +no_defs "],"EPSG:3010":["EPSG:3010","+proj=tmerc +lat_0=0 +lon_0=16.5 +k=1 +x_0=150000 +y_0=0 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs "],"EPSG:2575":["EPSG:2575","+proj=tmerc +lat_0=0 +lon_0=174 +k=1 +x_0=58500000 +y_0=0 +ellps=krass +towgs84=23.92,-141.27,-80.9,0,0.35,0.82,-0.12 +units=m +no_defs "],"EPSG:2576":["EPSG:2576","+proj=tmerc +lat_0=0 +lon_0=177 +k=1 +x_0=59500000 +y_0=0 +ellps=krass +towgs84=23.92,-141.27,-80.9,0,0.35,0.82,-0.12 +units=m +no_defs "],"EPSG:2577":["EPSG:2577","+proj=tmerc +lat_0=0 +lon_0=180 +k=1 +x_0=60000000 +y_0=0 +ellps=krass +towgs84=23.92,-141.27,-80.9,0,0.35,0.82,-0.12 +units=m +no_defs "],"EPSG:2578":["EPSG:2578","+proj=tmerc +lat_0=0 +lon_0=-177 +k=1 +x_0=61500000 +y_0=0 +ellps=krass +towgs84=23.92,-141.27,-80.9,0,0.35,0.82,-0.12 +units=m +no_defs "],"EPSG:2579":["EPSG:2579","+proj=tmerc +lat_0=0 +lon_0=-174 +k=1 +x_0=62500000 +y_0=0 +ellps=krass +towgs84=23.92,-141.27,-80.9,0,0.35,0.82,-0.12 +units=m +no_defs "],"EPSG:2580":["EPSG:2580","+proj=tmerc +lat_0=0 +lon_0=-171 +k=1 +x_0=63500000 +y_0=0 +ellps=krass +towgs84=23.92,-141.27,-80.9,0,0.35,0.82,-0.12 +units=m +no_defs "],"EPSG:2581":["EPSG:2581","+proj=tmerc +lat_0=0 +lon_0=-168 +k=1 +x_0=64500000 +y_0=0 +ellps=krass +towgs84=23.92,-141.27,-80.9,0,0.35,0.82,-0.12 +units=m +no_defs "],"EPSG:2582":["EPSG:2582","+proj=tmerc +lat_0=0 +lon_0=21 +k=1 +x_0=500000 +y_0=0 +ellps=krass +towgs84=23.92,-141.27,-80.9,0,0.35,0.82,-0.12 +units=m +no_defs "],"EPSG:2583":["EPSG:2583","+proj=tmerc +lat_0=0 +lon_0=24 +k=1 +x_0=500000 +y_0=0 +ellps=krass +towgs84=23.92,-141.27,-80.9,0,0.35,0.82,-0.12 +units=m +no_defs "],"EPSG:2584":["EPSG:2584","+proj=tmerc +lat_0=0 +lon_0=27 +k=1 +x_0=500000 +y_0=0 +ellps=krass +towgs84=23.92,-141.27,-80.9,0,0.35,0.82,-0.12 +units=m +no_defs "],"EPSG:2585":["EPSG:2585","+proj=tmerc +lat_0=0 +lon_0=30 +k=1 +x_0=500000 +y_0=0 +ellps=krass +towgs84=23.92,-141.27,-80.9,0,0.35,0.82,-0.12 +units=m +no_defs "],"EPSG:2586":["EPSG:2586","+proj=tmerc +lat_0=0 +lon_0=33 +k=1 +x_0=500000 +y_0=0 +ellps=krass +towgs84=23.92,-141.27,-80.9,0,0.35,0.82,-0.12 +units=m +no_defs "],"EPSG:2587":["EPSG:2587","+proj=tmerc +lat_0=0 +lon_0=36 +k=1 +x_0=500000 +y_0=0 +ellps=krass +towgs84=23.92,-141.27,-80.9,0,0.35,0.82,-0.12 +units=m +no_defs "],"EPSG:2588":["EPSG:2588","+proj=tmerc +lat_0=0 +lon_0=39 +k=1 +x_0=500000 +y_0=0 +ellps=krass +towgs84=23.92,-141.27,-80.9,0,0.35,0.82,-0.12 +units=m +no_defs "],"EPSG:2589":["EPSG:2589","+proj=tmerc +lat_0=0 +lon_0=42 +k=1 +x_0=500000 +y_0=0 +ellps=krass +towgs84=23.92,-141.27,-80.9,0,0.35,0.82,-0.12 +units=m +no_defs "],"EPSG:2590":["EPSG:2590","+proj=tmerc +lat_0=0 +lon_0=45 +k=1 +x_0=500000 +y_0=0 +ellps=krass +towgs84=23.92,-141.27,-80.9,0,0.35,0.82,-0.12 +units=m +no_defs "],"EPSG:2591":["EPSG:2591","+proj=tmerc +lat_0=0 +lon_0=48 +k=1 +x_0=500000 +y_0=0 +ellps=krass +towgs84=23.92,-141.27,-80.9,0,0.35,0.82,-0.12 +units=m +no_defs "],"EPSG:2592":["EPSG:2592","+proj=tmerc +lat_0=0 +lon_0=51 +k=1 +x_0=500000 +y_0=0 +ellps=krass +towgs84=23.92,-141.27,-80.9,0,0.35,0.82,-0.12 +units=m +no_defs "],"EPSG:3012":["EPSG:3012","+proj=tmerc +lat_0=0 +lon_0=14.25 +k=1 +x_0=150000 +y_0=0 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs "],"EPSG:2593":["EPSG:2593","+proj=tmerc +lat_0=0 +lon_0=54 +k=1 +x_0=500000 +y_0=0 +ellps=krass +towgs84=23.92,-141.27,-80.9,0,0.35,0.82,-0.12 +units=m +no_defs "],"EPSG:2594":["EPSG:2594","+proj=tmerc +lat_0=0 +lon_0=57 +k=1 +x_0=500000 +y_0=0 +ellps=krass +towgs84=23.92,-141.27,-80.9,0,0.35,0.82,-0.12 +units=m +no_defs "],"EPSG:2595":["EPSG:2595","+proj=tmerc +lat_0=0 +lon_0=60 +k=1 +x_0=500000 +y_0=0 +ellps=krass +towgs84=23.92,-141.27,-80.9,0,0.35,0.82,-0.12 +units=m +no_defs "],"EPSG:2596":["EPSG:2596","+proj=tmerc +lat_0=0 +lon_0=63 +k=1 +x_0=500000 +y_0=0 +ellps=krass +towgs84=23.92,-141.27,-80.9,0,0.35,0.82,-0.12 +units=m +no_defs "],"EPSG:2597":["EPSG:2597","+proj=tmerc +lat_0=0 +lon_0=66 +k=1 +x_0=500000 +y_0=0 +ellps=krass +towgs84=23.92,-141.27,-80.9,0,0.35,0.82,-0.12 +units=m +no_defs "],"EPSG:2598":["EPSG:2598","+proj=tmerc +lat_0=0 +lon_0=69 +k=1 +x_0=500000 +y_0=0 +ellps=krass +towgs84=23.92,-141.27,-80.9,0,0.35,0.82,-0.12 +units=m +no_defs "],"EPSG:2599":["EPSG:2599","+proj=tmerc +lat_0=0 +lon_0=72 +k=1 +x_0=500000 +y_0=0 +ellps=krass +towgs84=23.92,-141.27,-80.9,0,0.35,0.82,-0.12 +units=m +no_defs "],"EPSG:2600":["EPSG:2600","+proj=tmerc +lat_0=0 +lon_0=24 +k=0.9998 +x_0=500000 +y_0=0 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs "],"EPSG:2601":["EPSG:2601","+proj=tmerc +lat_0=0 +lon_0=75 +k=1 +x_0=500000 +y_0=0 +ellps=krass +towgs84=23.92,-141.27,-80.9,0,0.35,0.82,-0.12 +units=m +no_defs "],"EPSG:2602":["EPSG:2602","+proj=tmerc +lat_0=0 +lon_0=78 +k=1 +x_0=500000 +y_0=0 +ellps=krass +towgs84=23.92,-141.27,-80.9,0,0.35,0.82,-0.12 +units=m +no_defs "],"EPSG:2603":["EPSG:2603","+proj=tmerc +lat_0=0 +lon_0=81 +k=1 +x_0=500000 +y_0=0 +ellps=krass +towgs84=23.92,-141.27,-80.9,0,0.35,0.82,-0.12 +units=m +no_defs "],"EPSG:2604":["EPSG:2604","+proj=tmerc +lat_0=0 +lon_0=84 +k=1 +x_0=500000 +y_0=0 +ellps=krass +towgs84=23.92,-141.27,-80.9,0,0.35,0.82,-0.12 +units=m +no_defs "],"EPSG:2605":["EPSG:2605","+proj=tmerc +lat_0=0 +lon_0=87 +k=1 +x_0=500000 +y_0=0 +ellps=krass +towgs84=23.92,-141.27,-80.9,0,0.35,0.82,-0.12 +units=m +no_defs "],"EPSG:2606":["EPSG:2606","+proj=tmerc +lat_0=0 +lon_0=90 +k=1 +x_0=500000 +y_0=0 +ellps=krass +towgs84=23.92,-141.27,-80.9,0,0.35,0.82,-0.12 +units=m +no_defs "],"EPSG:2607":["EPSG:2607","+proj=tmerc +lat_0=0 +lon_0=93 +k=1 +x_0=500000 +y_0=0 +ellps=krass +towgs84=23.92,-141.27,-80.9,0,0.35,0.82,-0.12 +units=m +no_defs "],"EPSG:2608":["EPSG:2608","+proj=tmerc +lat_0=0 +lon_0=96 +k=1 +x_0=500000 +y_0=0 +ellps=krass +towgs84=23.92,-141.27,-80.9,0,0.35,0.82,-0.12 +units=m +no_defs "],"EPSG:2609":["EPSG:2609","+proj=tmerc +lat_0=0 +lon_0=99 +k=1 +x_0=500000 +y_0=0 +ellps=krass +towgs84=23.92,-141.27,-80.9,0,0.35,0.82,-0.12 +units=m +no_defs "],"EPSG:2610":["EPSG:2610","+proj=tmerc +lat_0=0 +lon_0=102 +k=1 +x_0=500000 +y_0=0 +ellps=krass +towgs84=23.92,-141.27,-80.9,0,0.35,0.82,-0.12 +units=m +no_defs "],"EPSG:2611":["EPSG:2611","+proj=tmerc +lat_0=0 +lon_0=105 +k=1 +x_0=500000 +y_0=0 +ellps=krass +towgs84=23.92,-141.27,-80.9,0,0.35,0.82,-0.12 +units=m +no_defs "],"EPSG:3013":["EPSG:3013","+proj=tmerc +lat_0=0 +lon_0=15.75 +k=1 +x_0=150000 +y_0=0 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs "],"EPSG:2612":["EPSG:2612","+proj=tmerc +lat_0=0 +lon_0=108 +k=1 +x_0=500000 +y_0=0 +ellps=krass +towgs84=23.92,-141.27,-80.9,0,0.35,0.82,-0.12 +units=m +no_defs "],"EPSG:2613":["EPSG:2613","+proj=tmerc +lat_0=0 +lon_0=111 +k=1 +x_0=500000 +y_0=0 +ellps=krass +towgs84=23.92,-141.27,-80.9,0,0.35,0.82,-0.12 +units=m +no_defs "],"EPSG:2614":["EPSG:2614","+proj=tmerc +lat_0=0 +lon_0=114 +k=1 +x_0=500000 +y_0=0 +ellps=krass +towgs84=23.92,-141.27,-80.9,0,0.35,0.82,-0.12 +units=m +no_defs "],"EPSG:2615":["EPSG:2615","+proj=tmerc +lat_0=0 +lon_0=117 +k=1 +x_0=500000 +y_0=0 +ellps=krass +towgs84=23.92,-141.27,-80.9,0,0.35,0.82,-0.12 +units=m +no_defs "],"EPSG:2616":["EPSG:2616","+proj=tmerc +lat_0=0 +lon_0=120 +k=1 +x_0=500000 +y_0=0 +ellps=krass +towgs84=23.92,-141.27,-80.9,0,0.35,0.82,-0.12 +units=m +no_defs "],"EPSG:2617":["EPSG:2617","+proj=tmerc +lat_0=0 +lon_0=123 +k=1 +x_0=500000 +y_0=0 +ellps=krass +towgs84=23.92,-141.27,-80.9,0,0.35,0.82,-0.12 +units=m +no_defs "],"EPSG:2618":["EPSG:2618","+proj=tmerc +lat_0=0 +lon_0=126 +k=1 +x_0=500000 +y_0=0 +ellps=krass +towgs84=23.92,-141.27,-80.9,0,0.35,0.82,-0.12 +units=m +no_defs "],"EPSG:2619":["EPSG:2619","+proj=tmerc +lat_0=0 +lon_0=129 +k=1 +x_0=500000 +y_0=0 +ellps=krass +towgs84=23.92,-141.27,-80.9,0,0.35,0.82,-0.12 +units=m +no_defs "],"EPSG:2620":["EPSG:2620","+proj=tmerc +lat_0=0 +lon_0=132 +k=1 +x_0=500000 +y_0=0 +ellps=krass +towgs84=23.92,-141.27,-80.9,0,0.35,0.82,-0.12 +units=m +no_defs "],"EPSG:3014":["EPSG:3014","+proj=tmerc +lat_0=0 +lon_0=17.25 +k=1 +x_0=150000 +y_0=0 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs "],"EPSG:2621":["EPSG:2621","+proj=tmerc +lat_0=0 +lon_0=135 +k=1 +x_0=500000 +y_0=0 +ellps=krass +towgs84=23.92,-141.27,-80.9,0,0.35,0.82,-0.12 +units=m +no_defs "],"EPSG:2622":["EPSG:2622","+proj=tmerc +lat_0=0 +lon_0=138 +k=1 +x_0=500000 +y_0=0 +ellps=krass +towgs84=23.92,-141.27,-80.9,0,0.35,0.82,-0.12 +units=m +no_defs "],"EPSG:2623":["EPSG:2623","+proj=tmerc +lat_0=0 +lon_0=141 +k=1 +x_0=500000 +y_0=0 +ellps=krass +towgs84=23.92,-141.27,-80.9,0,0.35,0.82,-0.12 +units=m +no_defs "],"EPSG:2624":["EPSG:2624","+proj=tmerc +lat_0=0 +lon_0=144 +k=1 +x_0=500000 +y_0=0 +ellps=krass +towgs84=23.92,-141.27,-80.9,0,0.35,0.82,-0.12 +units=m +no_defs "],"EPSG:2625":["EPSG:2625","+proj=tmerc +lat_0=0 +lon_0=147 +k=1 +x_0=500000 +y_0=0 +ellps=krass +towgs84=23.92,-141.27,-80.9,0,0.35,0.82,-0.12 +units=m +no_defs "],"EPSG:2626":["EPSG:2626","+proj=tmerc +lat_0=0 +lon_0=150 +k=1 +x_0=500000 +y_0=0 +ellps=krass +towgs84=23.92,-141.27,-80.9,0,0.35,0.82,-0.12 +units=m +no_defs "],"EPSG:2627":["EPSG:2627","+proj=tmerc +lat_0=0 +lon_0=153 +k=1 +x_0=500000 +y_0=0 +ellps=krass +towgs84=23.92,-141.27,-80.9,0,0.35,0.82,-0.12 +units=m +no_defs "],"EPSG:2628":["EPSG:2628","+proj=tmerc +lat_0=0 +lon_0=156 +k=1 +x_0=500000 +y_0=0 +ellps=krass +towgs84=23.92,-141.27,-80.9,0,0.35,0.82,-0.12 +units=m +no_defs "],"EPSG:2629":["EPSG:2629","+proj=tmerc +lat_0=0 +lon_0=159 +k=1 +x_0=500000 +y_0=0 +ellps=krass +towgs84=23.92,-141.27,-80.9,0,0.35,0.82,-0.12 +units=m +no_defs "],"EPSG:2630":["EPSG:2630","+proj=tmerc +lat_0=0 +lon_0=162 +k=1 +x_0=500000 +y_0=0 +ellps=krass +towgs84=23.92,-141.27,-80.9,0,0.35,0.82,-0.12 +units=m +no_defs "],"EPSG:2631":["EPSG:2631","+proj=tmerc +lat_0=0 +lon_0=165 +k=1 +x_0=500000 +y_0=0 +ellps=krass +towgs84=23.92,-141.27,-80.9,0,0.35,0.82,-0.12 +units=m +no_defs "],"EPSG:2632":["EPSG:2632","+proj=tmerc +lat_0=0 +lon_0=168 +k=1 +x_0=500000 +y_0=0 +ellps=krass +towgs84=23.92,-141.27,-80.9,0,0.35,0.82,-0.12 +units=m +no_defs "],"EPSG:2633":["EPSG:2633","+proj=tmerc +lat_0=0 +lon_0=171 +k=1 +x_0=500000 +y_0=0 +ellps=krass +towgs84=23.92,-141.27,-80.9,0,0.35,0.82,-0.12 +units=m +no_defs "],"EPSG:2634":["EPSG:2634","+proj=tmerc +lat_0=0 +lon_0=174 +k=1 +x_0=500000 +y_0=0 +ellps=krass +towgs84=23.92,-141.27,-80.9,0,0.35,0.82,-0.12 +units=m +no_defs "],"EPSG:2635":["EPSG:2635","+proj=tmerc +lat_0=0 +lon_0=177 +k=1 +x_0=500000 +y_0=0 +ellps=krass +towgs84=23.92,-141.27,-80.9,0,0.35,0.82,-0.12 +units=m +no_defs "],"EPSG:2636":["EPSG:2636","+proj=tmerc +lat_0=0 +lon_0=180 +k=1 +x_0=500000 +y_0=0 +ellps=krass +towgs84=23.92,-141.27,-80.9,0,0.35,0.82,-0.12 +units=m +no_defs "],"EPSG:2637":["EPSG:2637","+proj=tmerc +lat_0=0 +lon_0=-177 +k=1 +x_0=500000 +y_0=0 +ellps=krass +towgs84=23.92,-141.27,-80.9,0,0.35,0.82,-0.12 +units=m +no_defs "],"EPSG:2638":["EPSG:2638","+proj=tmerc +lat_0=0 +lon_0=-174 +k=1 +x_0=500000 +y_0=0 +ellps=krass +towgs84=23.92,-141.27,-80.9,0,0.35,0.82,-0.12 +units=m +no_defs "],"EPSG:3016":["EPSG:3016","+proj=tmerc +lat_0=0 +lon_0=20.25 +k=1 +x_0=150000 +y_0=0 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs "],"EPSG:2639":["EPSG:2639","+proj=tmerc +lat_0=0 +lon_0=-171 +k=1 +x_0=500000 +y_0=0 +ellps=krass +towgs84=23.92,-141.27,-80.9,0,0.35,0.82,-0.12 +units=m +no_defs "],"EPSG:2640":["EPSG:2640","+proj=tmerc +lat_0=0 +lon_0=-168 +k=1 +x_0=500000 +y_0=0 +ellps=krass +towgs84=23.92,-141.27,-80.9,0,0.35,0.82,-0.12 +units=m +no_defs "],"EPSG:2641":["EPSG:2641","+proj=tmerc +lat_0=0 +lon_0=21 +k=1 +x_0=7500000 +y_0=0 +ellps=krass +towgs84=24.47,-130.89,-81.56,0,0,0.13,-0.22 +units=m +no_defs "],"EPSG:2642":["EPSG:2642","+proj=tmerc +lat_0=0 +lon_0=24 +k=1 +x_0=8500000 +y_0=0 +ellps=krass +towgs84=24.47,-130.89,-81.56,0,0,0.13,-0.22 +units=m +no_defs "],"EPSG:2643":["EPSG:2643","+proj=tmerc +lat_0=0 +lon_0=27 +k=1 +x_0=9500000 +y_0=0 +ellps=krass +towgs84=24.47,-130.89,-81.56,0,0,0.13,-0.22 +units=m +no_defs "],"EPSG:2644":["EPSG:2644","+proj=tmerc +lat_0=0 +lon_0=30 +k=1 +x_0=10500000 +y_0=0 +ellps=krass +towgs84=24.47,-130.89,-81.56,0,0,0.13,-0.22 +units=m +no_defs "],"EPSG:2645":["EPSG:2645","+proj=tmerc +lat_0=0 +lon_0=33 +k=1 +x_0=11500000 +y_0=0 +ellps=krass +towgs84=24.47,-130.89,-81.56,0,0,0.13,-0.22 +units=m +no_defs "],"EPSG:2646":["EPSG:2646","+proj=tmerc +lat_0=0 +lon_0=36 +k=1 +x_0=12500000 +y_0=0 +ellps=krass +towgs84=24.47,-130.89,-81.56,0,0,0.13,-0.22 +units=m +no_defs "],"EPSG:2647":["EPSG:2647","+proj=tmerc +lat_0=0 +lon_0=39 +k=1 +x_0=13500000 +y_0=0 +ellps=krass +towgs84=24.47,-130.89,-81.56,0,0,0.13,-0.22 +units=m +no_defs "],"EPSG:2973":["EPSG:2973","+proj=utm +zone=20 +ellps=intl +towgs84=186,482,151,0,0,0,0 +units=m +no_defs "],"EPSG:2648":["EPSG:2648","+proj=tmerc +lat_0=0 +lon_0=42 +k=1 +x_0=14500000 +y_0=0 +ellps=krass +towgs84=24.47,-130.89,-81.56,0,0,0.13,-0.22 +units=m +no_defs "],"EPSG:2649":["EPSG:2649","+proj=tmerc +lat_0=0 +lon_0=45 +k=1 +x_0=15500000 +y_0=0 +ellps=krass +towgs84=24.47,-130.89,-81.56,0,0,0.13,-0.22 +units=m +no_defs "],"EPSG:2650":["EPSG:2650","+proj=tmerc +lat_0=0 +lon_0=48 +k=1 +x_0=16500000 +y_0=0 +ellps=krass +towgs84=24.47,-130.89,-81.56,0,0,0.13,-0.22 +units=m +no_defs "],"EPSG:2651":["EPSG:2651","+proj=tmerc +lat_0=0 +lon_0=51 +k=1 +x_0=17500000 +y_0=0 +ellps=krass +towgs84=24.47,-130.89,-81.56,0,0,0.13,-0.22 +units=m +no_defs "],"EPSG:2652":["EPSG:2652","+proj=tmerc +lat_0=0 +lon_0=54 +k=1 +x_0=18500000 +y_0=0 +ellps=krass +towgs84=24.47,-130.89,-81.56,0,0,0.13,-0.22 +units=m +no_defs "],"EPSG:2653":["EPSG:2653","+proj=tmerc +lat_0=0 +lon_0=57 +k=1 +x_0=19500000 +y_0=0 +ellps=krass +towgs84=24.47,-130.89,-81.56,0,0,0.13,-0.22 +units=m +no_defs "],"EPSG:2654":["EPSG:2654","+proj=tmerc +lat_0=0 +lon_0=60 +k=1 +x_0=20500000 +y_0=0 +ellps=krass +towgs84=24.47,-130.89,-81.56,0,0,0.13,-0.22 +units=m +no_defs "],"EPSG:2655":["EPSG:2655","+proj=tmerc +lat_0=0 +lon_0=63 +k=1 +x_0=21500000 +y_0=0 +ellps=krass +towgs84=24.47,-130.89,-81.56,0,0,0.13,-0.22 +units=m +no_defs "],"EPSG:2656":["EPSG:2656","+proj=tmerc +lat_0=0 +lon_0=66 +k=1 +x_0=22500000 +y_0=0 +ellps=krass +towgs84=24.47,-130.89,-81.56,0,0,0.13,-0.22 +units=m +no_defs "],"EPSG:3017":["EPSG:3017","+proj=tmerc +lat_0=0 +lon_0=21.75 +k=1 +x_0=150000 +y_0=0 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs "],"EPSG:2657":["EPSG:2657","+proj=tmerc +lat_0=0 +lon_0=69 +k=1 +x_0=23500000 +y_0=0 +ellps=krass +towgs84=24.47,-130.89,-81.56,0,0,0.13,-0.22 +units=m +no_defs "],"EPSG:2658":["EPSG:2658","+proj=tmerc +lat_0=0 +lon_0=72 +k=1 +x_0=24500000 +y_0=0 +ellps=krass +towgs84=24.47,-130.89,-81.56,0,0,0.13,-0.22 +units=m +no_defs "],"EPSG:2659":["EPSG:2659","+proj=tmerc +lat_0=0 +lon_0=75 +k=1 +x_0=25500000 +y_0=0 +ellps=krass +towgs84=24.47,-130.89,-81.56,0,0,0.13,-0.22 +units=m +no_defs "],"EPSG:2660":["EPSG:2660","+proj=tmerc +lat_0=0 +lon_0=78 +k=1 +x_0=26500000 +y_0=0 +ellps=krass +towgs84=24.47,-130.89,-81.56,0,0,0.13,-0.22 +units=m +no_defs "],"EPSG:2661":["EPSG:2661","+proj=tmerc +lat_0=0 +lon_0=81 +k=1 +x_0=27500000 +y_0=0 +ellps=krass +towgs84=24.47,-130.89,-81.56,0,0,0.13,-0.22 +units=m +no_defs "],"EPSG:2662":["EPSG:2662","+proj=tmerc +lat_0=0 +lon_0=84 +k=1 +x_0=28500000 +y_0=0 +ellps=krass +towgs84=24.47,-130.89,-81.56,0,0,0.13,-0.22 +units=m +no_defs "],"EPSG:2663":["EPSG:2663","+proj=tmerc +lat_0=0 +lon_0=87 +k=1 +x_0=29500000 +y_0=0 +ellps=krass +towgs84=24.47,-130.89,-81.56,0,0,0.13,-0.22 +units=m +no_defs "],"EPSG:2664":["EPSG:2664","+proj=tmerc +lat_0=0 +lon_0=90 +k=1 +x_0=30500000 +y_0=0 +ellps=krass +towgs84=24.47,-130.89,-81.56,0,0,0.13,-0.22 +units=m +no_defs "],"EPSG:2665":["EPSG:2665","+proj=tmerc +lat_0=0 +lon_0=93 +k=1 +x_0=31500000 +y_0=0 +ellps=krass +towgs84=24.47,-130.89,-81.56,0,0,0.13,-0.22 +units=m +no_defs "],"EPSG:3018":["EPSG:3018","+proj=tmerc +lat_0=0 +lon_0=23.25 +k=1 +x_0=150000 +y_0=0 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs "],"EPSG:2666":["EPSG:2666","+proj=tmerc +lat_0=0 +lon_0=96 +k=1 +x_0=32500000 +y_0=0 +ellps=krass +towgs84=24.47,-130.89,-81.56,0,0,0.13,-0.22 +units=m +no_defs "],"EPSG:2667":["EPSG:2667","+proj=tmerc +lat_0=0 +lon_0=99 +k=1 +x_0=33500000 +y_0=0 +ellps=krass +towgs84=24.47,-130.89,-81.56,0,0,0.13,-0.22 +units=m +no_defs "],"EPSG:2668":["EPSG:2668","+proj=tmerc +lat_0=0 +lon_0=102 +k=1 +x_0=34500000 +y_0=0 +ellps=krass +towgs84=24.47,-130.89,-81.56,0,0,0.13,-0.22 +units=m +no_defs "],"EPSG:2669":["EPSG:2669","+proj=tmerc +lat_0=0 +lon_0=105 +k=1 +x_0=35500000 +y_0=0 +ellps=krass +towgs84=24.47,-130.89,-81.56,0,0,0.13,-0.22 +units=m +no_defs "],"EPSG:2670":["EPSG:2670","+proj=tmerc +lat_0=0 +lon_0=108 +k=1 +x_0=36500000 +y_0=0 +ellps=krass +towgs84=24.47,-130.89,-81.56,0,0,0.13,-0.22 +units=m +no_defs "],"EPSG:2671":["EPSG:2671","+proj=tmerc +lat_0=0 +lon_0=111 +k=1 +x_0=37500000 +y_0=0 +ellps=krass +towgs84=24.47,-130.89,-81.56,0,0,0.13,-0.22 +units=m +no_defs "],"EPSG:2672":["EPSG:2672","+proj=tmerc +lat_0=0 +lon_0=114 +k=1 +x_0=38500000 +y_0=0 +ellps=krass +towgs84=24.47,-130.89,-81.56,0,0,0.13,-0.22 +units=m +no_defs "],"EPSG:2673":["EPSG:2673","+proj=tmerc +lat_0=0 +lon_0=117 +k=1 +x_0=39500000 +y_0=0 +ellps=krass +towgs84=24.47,-130.89,-81.56,0,0,0.13,-0.22 +units=m +no_defs "],"EPSG:2674":["EPSG:2674","+proj=tmerc +lat_0=0 +lon_0=120 +k=1 +x_0=40500000 +y_0=0 +ellps=krass +towgs84=24.47,-130.89,-81.56,0,0,0.13,-0.22 +units=m +no_defs "],"EPSG:3029":["EPSG:3029","+proj=tmerc +lat_0=0 +lon_0=20.30827777777778 +k=1 +x_0=1500000 +y_0=0 +ellps=bessel +units=m +no_defs "],"EPSG:2675":["EPSG:2675","+proj=tmerc +lat_0=0 +lon_0=123 +k=1 +x_0=41500000 +y_0=0 +ellps=krass +towgs84=24.47,-130.89,-81.56,0,0,0.13,-0.22 +units=m +no_defs "],"EPSG:2676":["EPSG:2676","+proj=tmerc +lat_0=0 +lon_0=126 +k=1 +x_0=42500000 +y_0=0 +ellps=krass +towgs84=24.47,-130.89,-81.56,0,0,0.13,-0.22 +units=m +no_defs "],"EPSG:2677":["EPSG:2677","+proj=tmerc +lat_0=0 +lon_0=129 +k=1 +x_0=43500000 +y_0=0 +ellps=krass +towgs84=24.47,-130.89,-81.56,0,0,0.13,-0.22 +units=m +no_defs "],"EPSG:2678":["EPSG:2678","+proj=tmerc +lat_0=0 +lon_0=132 +k=1 +x_0=44500000 +y_0=0 +ellps=krass +towgs84=24.47,-130.89,-81.56,0,0,0.13,-0.22 +units=m +no_defs "],"EPSG:2679":["EPSG:2679","+proj=tmerc +lat_0=0 +lon_0=135 +k=1 +x_0=45500000 +y_0=0 +ellps=krass +towgs84=24.47,-130.89,-81.56,0,0,0.13,-0.22 +units=m +no_defs "],"EPSG:2680":["EPSG:2680","+proj=tmerc +lat_0=0 +lon_0=138 +k=1 +x_0=46500000 +y_0=0 +ellps=krass +towgs84=24.47,-130.89,-81.56,0,0,0.13,-0.22 +units=m +no_defs "],"EPSG:2681":["EPSG:2681","+proj=tmerc +lat_0=0 +lon_0=141 +k=1 +x_0=47500000 +y_0=0 +ellps=krass +towgs84=24.47,-130.89,-81.56,0,0,0.13,-0.22 +units=m +no_defs "],"EPSG:2682":["EPSG:2682","+proj=tmerc +lat_0=0 +lon_0=144 +k=1 +x_0=48500000 +y_0=0 +ellps=krass +towgs84=24.47,-130.89,-81.56,0,0,0.13,-0.22 +units=m +no_defs "],"EPSG:2683":["EPSG:2683","+proj=tmerc +lat_0=0 +lon_0=147 +k=1 +x_0=49500000 +y_0=0 +ellps=krass +towgs84=24.47,-130.89,-81.56,0,0,0.13,-0.22 +units=m +no_defs "],"EPSG:3030":["EPSG:3030","+proj=tmerc +lat_0=0 +lon_0=22.55827777777778 +k=1 +x_0=1500000 +y_0=0 +ellps=bessel +units=m +no_defs "],"EPSG:2684":["EPSG:2684","+proj=tmerc +lat_0=0 +lon_0=150 +k=1 +x_0=50500000 +y_0=0 +ellps=krass +towgs84=24.47,-130.89,-81.56,0,0,0.13,-0.22 +units=m +no_defs "],"EPSG:2685":["EPSG:2685","+proj=tmerc +lat_0=0 +lon_0=153 +k=1 +x_0=51500000 +y_0=0 +ellps=krass +towgs84=24.47,-130.89,-81.56,0,0,0.13,-0.22 +units=m +no_defs "],"EPSG:2686":["EPSG:2686","+proj=tmerc +lat_0=0 +lon_0=156 +k=1 +x_0=52500000 +y_0=0 +ellps=krass +towgs84=24.47,-130.89,-81.56,0,0,0.13,-0.22 +units=m +no_defs "],"EPSG:2687":["EPSG:2687","+proj=tmerc +lat_0=0 +lon_0=159 +k=1 +x_0=53500000 +y_0=0 +ellps=krass +towgs84=24.47,-130.89,-81.56,0,0,0.13,-0.22 +units=m +no_defs "],"EPSG:2688":["EPSG:2688","+proj=tmerc +lat_0=0 +lon_0=162 +k=1 +x_0=54500000 +y_0=0 +ellps=krass +towgs84=24.47,-130.89,-81.56,0,0,0.13,-0.22 +units=m +no_defs "],"EPSG:2689":["EPSG:2689","+proj=tmerc +lat_0=0 +lon_0=165 +k=1 +x_0=55500000 +y_0=0 +ellps=krass +towgs84=24.47,-130.89,-81.56,0,0,0.13,-0.22 +units=m +no_defs "],"EPSG:2690":["EPSG:2690","+proj=tmerc +lat_0=0 +lon_0=168 +k=1 +x_0=56500000 +y_0=0 +ellps=krass +towgs84=24.47,-130.89,-81.56,0,0,0.13,-0.22 +units=m +no_defs "],"EPSG:2691":["EPSG:2691","+proj=tmerc +lat_0=0 +lon_0=171 +k=1 +x_0=57500000 +y_0=0 +ellps=krass +towgs84=24.47,-130.89,-81.56,0,0,0.13,-0.22 +units=m +no_defs "],"EPSG:2692":["EPSG:2692","+proj=tmerc +lat_0=0 +lon_0=174 +k=1 +x_0=58500000 +y_0=0 +ellps=krass +towgs84=24.47,-130.89,-81.56,0,0,0.13,-0.22 +units=m +no_defs "],"EPSG:3031":["EPSG:3031","+proj=stere +lat_0=-90 +lat_ts=-71 +lon_0=0 +k=1 +x_0=0 +y_0=0 +datum=WGS84 +units=m +no_defs "],"EPSG:2693":["EPSG:2693","+proj=tmerc +lat_0=0 +lon_0=177 +k=1 +x_0=59500000 +y_0=0 +ellps=krass +towgs84=24.47,-130.89,-81.56,0,0,0.13,-0.22 +units=m +no_defs "],"EPSG:2694":["EPSG:2694","+proj=tmerc +lat_0=0 +lon_0=180 +k=1 +x_0=60000000 +y_0=0 +ellps=krass +towgs84=24.47,-130.89,-81.56,0,0,0.13,-0.22 +units=m +no_defs "],"EPSG:2695":["EPSG:2695","+proj=tmerc +lat_0=0 +lon_0=-177 +k=1 +x_0=61500000 +y_0=0 +ellps=krass +towgs84=24.47,-130.89,-81.56,0,0,0.13,-0.22 +units=m +no_defs "],"EPSG:2696":["EPSG:2696","+proj=tmerc +lat_0=0 +lon_0=-174 +k=1 +x_0=62500000 +y_0=0 +ellps=krass +towgs84=24.47,-130.89,-81.56,0,0,0.13,-0.22 +units=m +no_defs "],"EPSG:2697":["EPSG:2697","+proj=tmerc +lat_0=0 +lon_0=-171 +k=1 +x_0=63500000 +y_0=0 +ellps=krass +towgs84=24.47,-130.89,-81.56,0,0,0.13,-0.22 +units=m +no_defs "],"EPSG:2698":["EPSG:2698","+proj=tmerc +lat_0=0 +lon_0=-168 +k=1 +x_0=64500000 +y_0=0 +ellps=krass +towgs84=24.47,-130.89,-81.56,0,0,0.13,-0.22 +units=m +no_defs "],"EPSG:2699":["EPSG:2699","+proj=tmerc +lat_0=0 +lon_0=21 +k=1 +x_0=500000 +y_0=0 +ellps=krass +towgs84=24.47,-130.89,-81.56,0,0,0.13,-0.22 +units=m +no_defs "],"EPSG:2700":["EPSG:2700","+proj=tmerc +lat_0=0 +lon_0=24 +k=1 +x_0=500000 +y_0=0 +ellps=krass +towgs84=24.47,-130.89,-81.56,0,0,0.13,-0.22 +units=m +no_defs "],"EPSG:2701":["EPSG:2701","+proj=tmerc +lat_0=0 +lon_0=27 +k=1 +x_0=500000 +y_0=0 +ellps=krass +towgs84=24.47,-130.89,-81.56,0,0,0.13,-0.22 +units=m +no_defs "],"EPSG:2702":["EPSG:2702","+proj=tmerc +lat_0=0 +lon_0=30 +k=1 +x_0=500000 +y_0=0 +ellps=krass +towgs84=24.47,-130.89,-81.56,0,0,0.13,-0.22 +units=m +no_defs "],"EPSG:2703":["EPSG:2703","+proj=tmerc +lat_0=0 +lon_0=33 +k=1 +x_0=500000 +y_0=0 +ellps=krass +towgs84=24.47,-130.89,-81.56,0,0,0.13,-0.22 +units=m +no_defs "],"EPSG:2704":["EPSG:2704","+proj=tmerc +lat_0=0 +lon_0=36 +k=1 +x_0=500000 +y_0=0 +ellps=krass +towgs84=24.47,-130.89,-81.56,0,0,0.13,-0.22 +units=m +no_defs "],"EPSG:2705":["EPSG:2705","+proj=tmerc +lat_0=0 +lon_0=39 +k=1 +x_0=500000 +y_0=0 +ellps=krass +towgs84=24.47,-130.89,-81.56,0,0,0.13,-0.22 +units=m +no_defs "],"EPSG:2706":["EPSG:2706","+proj=tmerc +lat_0=0 +lon_0=42 +k=1 +x_0=500000 +y_0=0 +ellps=krass +towgs84=24.47,-130.89,-81.56,0,0,0.13,-0.22 +units=m +no_defs "],"EPSG:2707":["EPSG:2707","+proj=tmerc +lat_0=0 +lon_0=45 +k=1 +x_0=500000 +y_0=0 +ellps=krass +towgs84=24.47,-130.89,-81.56,0,0,0.13,-0.22 +units=m +no_defs "],"EPSG:2708":["EPSG:2708","+proj=tmerc +lat_0=0 +lon_0=48 +k=1 +x_0=500000 +y_0=0 +ellps=krass +towgs84=24.47,-130.89,-81.56,0,0,0.13,-0.22 +units=m +no_defs "],"EPSG:2709":["EPSG:2709","+proj=tmerc +lat_0=0 +lon_0=51 +k=1 +x_0=500000 +y_0=0 +ellps=krass +towgs84=24.47,-130.89,-81.56,0,0,0.13,-0.22 +units=m +no_defs "],"EPSG:2710":["EPSG:2710","+proj=tmerc +lat_0=0 +lon_0=54 +k=1 +x_0=500000 +y_0=0 +ellps=krass +towgs84=24.47,-130.89,-81.56,0,0,0.13,-0.22 +units=m +no_defs "],"EPSG:2711":["EPSG:2711","+proj=tmerc +lat_0=0 +lon_0=57 +k=1 +x_0=500000 +y_0=0 +ellps=krass +towgs84=24.47,-130.89,-81.56,0,0,0.13,-0.22 +units=m +no_defs "],"EPSG:2712":["EPSG:2712","+proj=tmerc +lat_0=0 +lon_0=60 +k=1 +x_0=500000 +y_0=0 +ellps=krass +towgs84=24.47,-130.89,-81.56,0,0,0.13,-0.22 +units=m +no_defs "],"EPSG:2713":["EPSG:2713","+proj=tmerc +lat_0=0 +lon_0=63 +k=1 +x_0=500000 +y_0=0 +ellps=krass +towgs84=24.47,-130.89,-81.56,0,0,0.13,-0.22 +units=m +no_defs "],"EPSG:2714":["EPSG:2714","+proj=tmerc +lat_0=0 +lon_0=66 +k=1 +x_0=500000 +y_0=0 +ellps=krass +towgs84=24.47,-130.89,-81.56,0,0,0.13,-0.22 +units=m +no_defs "],"EPSG:2715":["EPSG:2715","+proj=tmerc +lat_0=0 +lon_0=69 +k=1 +x_0=500000 +y_0=0 +ellps=krass +towgs84=24.47,-130.89,-81.56,0,0,0.13,-0.22 +units=m +no_defs "],"EPSG:2716":["EPSG:2716","+proj=tmerc +lat_0=0 +lon_0=72 +k=1 +x_0=500000 +y_0=0 +ellps=krass +towgs84=24.47,-130.89,-81.56,0,0,0.13,-0.22 +units=m +no_defs "],"EPSG:2717":["EPSG:2717","+proj=tmerc +lat_0=0 +lon_0=75 +k=1 +x_0=500000 +y_0=0 +ellps=krass +towgs84=24.47,-130.89,-81.56,0,0,0.13,-0.22 +units=m +no_defs "],"EPSG:2718":["EPSG:2718","+proj=tmerc +lat_0=0 +lon_0=78 +k=1 +x_0=500000 +y_0=0 +ellps=krass +towgs84=24.47,-130.89,-81.56,0,0,0.13,-0.22 +units=m +no_defs "],"EPSG:2719":["EPSG:2719","+proj=tmerc +lat_0=0 +lon_0=81 +k=1 +x_0=500000 +y_0=0 +ellps=krass +towgs84=24.47,-130.89,-81.56,0,0,0.13,-0.22 +units=m +no_defs "],"EPSG:2720":["EPSG:2720","+proj=tmerc +lat_0=0 +lon_0=84 +k=1 +x_0=500000 +y_0=0 +ellps=krass +towgs84=24.47,-130.89,-81.56,0,0,0.13,-0.22 +units=m +no_defs "],"EPSG:2721":["EPSG:2721","+proj=tmerc +lat_0=0 +lon_0=87 +k=1 +x_0=500000 +y_0=0 +ellps=krass +towgs84=24.47,-130.89,-81.56,0,0,0.13,-0.22 +units=m +no_defs "],"EPSG:2722":["EPSG:2722","+proj=tmerc +lat_0=0 +lon_0=90 +k=1 +x_0=500000 +y_0=0 +ellps=krass +towgs84=24.47,-130.89,-81.56,0,0,0.13,-0.22 +units=m +no_defs "],"EPSG:2723":["EPSG:2723","+proj=tmerc +lat_0=0 +lon_0=93 +k=1 +x_0=500000 +y_0=0 +ellps=krass +towgs84=24.47,-130.89,-81.56,0,0,0.13,-0.22 +units=m +no_defs "],"EPSG:2724":["EPSG:2724","+proj=tmerc +lat_0=0 +lon_0=96 +k=1 +x_0=500000 +y_0=0 +ellps=krass +towgs84=24.47,-130.89,-81.56,0,0,0.13,-0.22 +units=m +no_defs "],"EPSG:2725":["EPSG:2725","+proj=tmerc +lat_0=0 +lon_0=99 +k=1 +x_0=500000 +y_0=0 +ellps=krass +towgs84=24.47,-130.89,-81.56,0,0,0.13,-0.22 +units=m +no_defs "],"EPSG:2726":["EPSG:2726","+proj=tmerc +lat_0=0 +lon_0=102 +k=1 +x_0=500000 +y_0=0 +ellps=krass +towgs84=24.47,-130.89,-81.56,0,0,0.13,-0.22 +units=m +no_defs "],"EPSG:2727":["EPSG:2727","+proj=tmerc +lat_0=0 +lon_0=105 +k=1 +x_0=500000 +y_0=0 +ellps=krass +towgs84=24.47,-130.89,-81.56,0,0,0.13,-0.22 +units=m +no_defs "],"EPSG:2728":["EPSG:2728","+proj=tmerc +lat_0=0 +lon_0=108 +k=1 +x_0=500000 +y_0=0 +ellps=krass +towgs84=24.47,-130.89,-81.56,0,0,0.13,-0.22 +units=m +no_defs "],"EPSG:2729":["EPSG:2729","+proj=tmerc +lat_0=0 +lon_0=111 +k=1 +x_0=500000 +y_0=0 +ellps=krass +towgs84=24.47,-130.89,-81.56,0,0,0.13,-0.22 +units=m +no_defs "],"EPSG:2730":["EPSG:2730","+proj=tmerc +lat_0=0 +lon_0=114 +k=1 +x_0=500000 +y_0=0 +ellps=krass +towgs84=24.47,-130.89,-81.56,0,0,0.13,-0.22 +units=m +no_defs "],"EPSG:2731":["EPSG:2731","+proj=tmerc +lat_0=0 +lon_0=117 +k=1 +x_0=500000 +y_0=0 +ellps=krass +towgs84=24.47,-130.89,-81.56,0,0,0.13,-0.22 +units=m +no_defs "],"EPSG:2732":["EPSG:2732","+proj=tmerc +lat_0=0 +lon_0=120 +k=1 +x_0=500000 +y_0=0 +ellps=krass +towgs84=24.47,-130.89,-81.56,0,0,0.13,-0.22 +units=m +no_defs "],"EPSG:2733":["EPSG:2733","+proj=tmerc +lat_0=0 +lon_0=123 +k=1 +x_0=500000 +y_0=0 +ellps=krass +towgs84=24.47,-130.89,-81.56,0,0,0.13,-0.22 +units=m +no_defs "],"EPSG:2734":["EPSG:2734","+proj=tmerc +lat_0=0 +lon_0=126 +k=1 +x_0=500000 +y_0=0 +ellps=krass +towgs84=24.47,-130.89,-81.56,0,0,0.13,-0.22 +units=m +no_defs "],"EPSG:2735":["EPSG:2735","+proj=tmerc +lat_0=0 +lon_0=129 +k=1 +x_0=500000 +y_0=0 +ellps=krass +towgs84=24.47,-130.89,-81.56,0,0,0.13,-0.22 +units=m +no_defs "],"EPSG:2736":["EPSG:2736","+proj=utm +zone=36 +south +ellps=clrk66 +towgs84=-80,-100,-228,0,0,0,0 +units=m +no_defs "],"EPSG:2737":["EPSG:2737","+proj=utm +zone=37 +south +ellps=clrk66 +towgs84=-80,-100,-228,0,0,0,0 +units=m +no_defs "],"EPSG:2738":["EPSG:2738","+proj=tmerc +lat_0=0 +lon_0=132 +k=1 +x_0=500000 +y_0=0 +ellps=krass +towgs84=24.47,-130.89,-81.56,0,0,0.13,-0.22 +units=m +no_defs "],"EPSG:2739":["EPSG:2739","+proj=tmerc +lat_0=0 +lon_0=135 +k=1 +x_0=500000 +y_0=0 +ellps=krass +towgs84=24.47,-130.89,-81.56,0,0,0.13,-0.22 +units=m +no_defs "],"EPSG:2740":["EPSG:2740","+proj=tmerc +lat_0=0 +lon_0=138 +k=1 +x_0=500000 +y_0=0 +ellps=krass +towgs84=24.47,-130.89,-81.56,0,0,0.13,-0.22 +units=m +no_defs "],"EPSG:2741":["EPSG:2741","+proj=tmerc +lat_0=0 +lon_0=141 +k=1 +x_0=500000 +y_0=0 +ellps=krass +towgs84=24.47,-130.89,-81.56,0,0,0.13,-0.22 +units=m +no_defs "],"EPSG:2742":["EPSG:2742","+proj=tmerc +lat_0=0 +lon_0=144 +k=1 +x_0=500000 +y_0=0 +ellps=krass +towgs84=24.47,-130.89,-81.56,0,0,0.13,-0.22 +units=m +no_defs "],"EPSG:2743":["EPSG:2743","+proj=tmerc +lat_0=0 +lon_0=147 +k=1 +x_0=500000 +y_0=0 +ellps=krass +towgs84=24.47,-130.89,-81.56,0,0,0.13,-0.22 +units=m +no_defs "],"EPSG:2744":["EPSG:2744","+proj=tmerc +lat_0=0 +lon_0=150 +k=1 +x_0=500000 +y_0=0 +ellps=krass +towgs84=24.47,-130.89,-81.56,0,0,0.13,-0.22 +units=m +no_defs "],"EPSG:2745":["EPSG:2745","+proj=tmerc +lat_0=0 +lon_0=153 +k=1 +x_0=500000 +y_0=0 +ellps=krass +towgs84=24.47,-130.89,-81.56,0,0,0.13,-0.22 +units=m +no_defs "],"EPSG:2746":["EPSG:2746","+proj=tmerc +lat_0=0 +lon_0=156 +k=1 +x_0=500000 +y_0=0 +ellps=krass +towgs84=24.47,-130.89,-81.56,0,0,0.13,-0.22 +units=m +no_defs "],"EPSG:2747":["EPSG:2747","+proj=tmerc +lat_0=0 +lon_0=159 +k=1 +x_0=500000 +y_0=0 +ellps=krass +towgs84=24.47,-130.89,-81.56,0,0,0.13,-0.22 +units=m +no_defs "],"EPSG:2748":["EPSG:2748","+proj=tmerc +lat_0=0 +lon_0=162 +k=1 +x_0=500000 +y_0=0 +ellps=krass +towgs84=24.47,-130.89,-81.56,0,0,0.13,-0.22 +units=m +no_defs "],"EPSG:2749":["EPSG:2749","+proj=tmerc +lat_0=0 +lon_0=165 +k=1 +x_0=500000 +y_0=0 +ellps=krass +towgs84=24.47,-130.89,-81.56,0,0,0.13,-0.22 +units=m +no_defs "],"EPSG:2750":["EPSG:2750","+proj=tmerc +lat_0=0 +lon_0=168 +k=1 +x_0=500000 +y_0=0 +ellps=krass +towgs84=24.47,-130.89,-81.56,0,0,0.13,-0.22 +units=m +no_defs "],"EPSG:2751":["EPSG:2751","+proj=tmerc +lat_0=0 +lon_0=171 +k=1 +x_0=500000 +y_0=0 +ellps=krass +towgs84=24.47,-130.89,-81.56,0,0,0.13,-0.22 +units=m +no_defs "],"EPSG:2752":["EPSG:2752","+proj=tmerc +lat_0=0 +lon_0=174 +k=1 +x_0=500000 +y_0=0 +ellps=krass +towgs84=24.47,-130.89,-81.56,0,0,0.13,-0.22 +units=m +no_defs "],"EPSG:2753":["EPSG:2753","+proj=tmerc +lat_0=0 +lon_0=177 +k=1 +x_0=500000 +y_0=0 +ellps=krass +towgs84=24.47,-130.89,-81.56,0,0,0.13,-0.22 +units=m +no_defs "],"EPSG:2754":["EPSG:2754","+proj=tmerc +lat_0=0 +lon_0=180 +k=1 +x_0=500000 +y_0=0 +ellps=krass +towgs84=24.47,-130.89,-81.56,0,0,0.13,-0.22 +units=m +no_defs "],"EPSG:2755":["EPSG:2755","+proj=tmerc +lat_0=0 +lon_0=-177 +k=1 +x_0=500000 +y_0=0 +ellps=krass +towgs84=24.47,-130.89,-81.56,0,0,0.13,-0.22 +units=m +no_defs "],"EPSG:2756":["EPSG:2756","+proj=tmerc +lat_0=0 +lon_0=-174 +k=1 +x_0=500000 +y_0=0 +ellps=krass +towgs84=24.47,-130.89,-81.56,0,0,0.13,-0.22 +units=m +no_defs "],"EPSG:2757":["EPSG:2757","+proj=tmerc +lat_0=0 +lon_0=-171 +k=1 +x_0=500000 +y_0=0 +ellps=krass +towgs84=24.47,-130.89,-81.56,0,0,0.13,-0.22 +units=m +no_defs "],"EPSG:2758":["EPSG:2758","+proj=tmerc +lat_0=0 +lon_0=-168 +k=1 +x_0=500000 +y_0=0 +ellps=krass +towgs84=24.47,-130.89,-81.56,0,0,0.13,-0.22 +units=m +no_defs "],"EPSG:2759":["EPSG:2759","+proj=tmerc +lat_0=30.5 +lon_0=-85.83333333333333 +k=0.99996 +x_0=200000 +y_0=0 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs "],"EPSG:2760":["EPSG:2760","+proj=tmerc +lat_0=30 +lon_0=-87.5 +k=0.999933333 +x_0=600000 +y_0=0 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs "],"EPSG:2761":["EPSG:2761","+proj=tmerc +lat_0=31 +lon_0=-110.1666666666667 +k=0.9999 +x_0=213360 +y_0=0 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs "],"EPSG:2762":["EPSG:2762","+proj=tmerc +lat_0=31 +lon_0=-111.9166666666667 +k=0.9999 +x_0=213360 +y_0=0 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs "],"EPSG:2763":["EPSG:2763","+proj=tmerc +lat_0=31 +lon_0=-113.75 +k=0.999933333 +x_0=213360 +y_0=0 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs "],"EPSG:2764":["EPSG:2764","+proj=lcc +lat_1=36.23333333333333 +lat_2=34.93333333333333 +lat_0=34.33333333333334 +lon_0=-92 +x_0=400000 +y_0=0 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs "],"EPSG:2765":["EPSG:2765","+proj=lcc +lat_1=34.76666666666667 +lat_2=33.3 +lat_0=32.66666666666666 +lon_0=-92 +x_0=400000 +y_0=400000 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs "],"EPSG:2766":["EPSG:2766","+proj=lcc +lat_1=41.66666666666666 +lat_2=40 +lat_0=39.33333333333334 +lon_0=-122 +x_0=2000000 +y_0=500000 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs "],"EPSG:2767":["EPSG:2767","+proj=lcc +lat_1=39.83333333333334 +lat_2=38.33333333333334 +lat_0=37.66666666666666 +lon_0=-122 +x_0=2000000 +y_0=500000 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs "],"EPSG:2769":["EPSG:2769","+proj=lcc +lat_1=37.25 +lat_2=36 +lat_0=35.33333333333334 +lon_0=-119 +x_0=2000000 +y_0=500000 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs "],"EPSG:2770":["EPSG:2770","+proj=lcc +lat_1=35.46666666666667 +lat_2=34.03333333333333 +lat_0=33.5 +lon_0=-118 +x_0=2000000 +y_0=500000 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs "],"EPSG:2771":["EPSG:2771","+proj=lcc +lat_1=33.88333333333333 +lat_2=32.78333333333333 +lat_0=32.16666666666666 +lon_0=-116.25 +x_0=2000000 +y_0=500000 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs "],"EPSG:2772":["EPSG:2772","+proj=lcc +lat_1=40.78333333333333 +lat_2=39.71666666666667 +lat_0=39.33333333333334 +lon_0=-105.5 +x_0=914401.8289 +y_0=304800.6096 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs "],"EPSG:2773":["EPSG:2773","+proj=lcc +lat_1=39.75 +lat_2=38.45 +lat_0=37.83333333333334 +lon_0=-105.5 +x_0=914401.8289 +y_0=304800.6096 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs "],"EPSG:2774":["EPSG:2774","+proj=lcc +lat_1=38.43333333333333 +lat_2=37.23333333333333 +lat_0=36.66666666666666 +lon_0=-105.5 +x_0=914401.8289 +y_0=304800.6096 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs "],"EPSG:2775":["EPSG:2775","+proj=lcc +lat_1=41.86666666666667 +lat_2=41.2 +lat_0=40.83333333333334 +lon_0=-72.75 +x_0=304800.6096 +y_0=152400.3048 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs "],"EPSG:2776":["EPSG:2776","+proj=tmerc +lat_0=38 +lon_0=-75.41666666666667 +k=0.999995 +x_0=200000 +y_0=0 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs "],"EPSG:4384":["EPSG:4384","+proj=geocent +ellps=WGS84 +units=m +no_defs "],"EPSG:2777":["EPSG:2777","+proj=tmerc +lat_0=24.33333333333333 +lon_0=-81 +k=0.999941177 +x_0=200000 +y_0=0 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs "],"EPSG:2778":["EPSG:2778","+proj=tmerc +lat_0=24.33333333333333 +lon_0=-82 +k=0.999941177 +x_0=200000 +y_0=0 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs "],"EPSG:2779":["EPSG:2779","+proj=lcc +lat_1=30.75 +lat_2=29.58333333333333 +lat_0=29 +lon_0=-84.5 +x_0=600000 +y_0=0 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs "],"EPSG:2780":["EPSG:2780","+proj=tmerc +lat_0=30 +lon_0=-82.16666666666667 +k=0.9999 +x_0=200000 +y_0=0 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs "],"EPSG:2781":["EPSG:2781","+proj=tmerc +lat_0=30 +lon_0=-84.16666666666667 +k=0.9999 +x_0=700000 +y_0=0 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs "],"EPSG:2782":["EPSG:2782","+proj=tmerc +lat_0=18.83333333333333 +lon_0=-155.5 +k=0.999966667 +x_0=500000 +y_0=0 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs "],"EPSG:2783":["EPSG:2783","+proj=tmerc +lat_0=20.33333333333333 +lon_0=-156.6666666666667 +k=0.999966667 +x_0=500000 +y_0=0 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs "],"EPSG:2784":["EPSG:2784","+proj=tmerc +lat_0=21.16666666666667 +lon_0=-158 +k=0.99999 +x_0=500000 +y_0=0 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs "],"EPSG:2785":["EPSG:2785","+proj=tmerc +lat_0=21.83333333333333 +lon_0=-159.5 +k=0.99999 +x_0=500000 +y_0=0 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs "],"EPSG:2786":["EPSG:2786","+proj=tmerc +lat_0=21.66666666666667 +lon_0=-160.1666666666667 +k=1 +x_0=500000 +y_0=0 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs "],"EPSG:2787":["EPSG:2787","+proj=tmerc +lat_0=41.66666666666666 +lon_0=-112.1666666666667 +k=0.9999473679999999 +x_0=200000 +y_0=0 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs "],"EPSG:2788":["EPSG:2788","+proj=tmerc +lat_0=41.66666666666666 +lon_0=-114 +k=0.9999473679999999 +x_0=500000 +y_0=0 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs "],"EPSG:2789":["EPSG:2789","+proj=tmerc +lat_0=41.66666666666666 +lon_0=-115.75 +k=0.999933333 +x_0=800000 +y_0=0 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs "],"EPSG:2791":["EPSG:2791","+proj=tmerc +lat_0=36.66666666666666 +lon_0=-90.16666666666667 +k=0.999941177 +x_0=700000 +y_0=0 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs "],"EPSG:2792":["EPSG:2792","+proj=tmerc +lat_0=37.5 +lon_0=-85.66666666666667 +k=0.999966667 +x_0=100000 +y_0=250000 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs "],"EPSG:2793":["EPSG:2793","+proj=tmerc +lat_0=37.5 +lon_0=-87.08333333333333 +k=0.999966667 +x_0=900000 +y_0=250000 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs "],"EPSG:2794":["EPSG:2794","+proj=lcc +lat_1=43.26666666666667 +lat_2=42.06666666666667 +lat_0=41.5 +lon_0=-93.5 +x_0=1500000 +y_0=1000000 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs "],"EPSG:2795":["EPSG:2795","+proj=lcc +lat_1=41.78333333333333 +lat_2=40.61666666666667 +lat_0=40 +lon_0=-93.5 +x_0=500000 +y_0=0 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs "],"EPSG:2796":["EPSG:2796","+proj=lcc +lat_1=39.78333333333333 +lat_2=38.71666666666667 +lat_0=38.33333333333334 +lon_0=-98 +x_0=400000 +y_0=0 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs "],"EPSG:2797":["EPSG:2797","+proj=lcc +lat_1=38.56666666666667 +lat_2=37.26666666666667 +lat_0=36.66666666666666 +lon_0=-98.5 +x_0=400000 +y_0=400000 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs "],"EPSG:2798":["EPSG:2798","+proj=lcc +lat_1=37.96666666666667 +lat_2=38.96666666666667 +lat_0=37.5 +lon_0=-84.25 +x_0=500000 +y_0=0 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs "],"EPSG:2799":["EPSG:2799","+proj=lcc +lat_1=37.93333333333333 +lat_2=36.73333333333333 +lat_0=36.33333333333334 +lon_0=-85.75 +x_0=500000 +y_0=500000 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs "],"EPSG:2800":["EPSG:2800","+proj=lcc +lat_1=32.66666666666666 +lat_2=31.16666666666667 +lat_0=30.5 +lon_0=-92.5 +x_0=1000000 +y_0=0 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs "],"EPSG:2801":["EPSG:2801","+proj=lcc +lat_1=30.7 +lat_2=29.3 +lat_0=28.5 +lon_0=-91.33333333333333 +x_0=1000000 +y_0=0 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs "],"EPSG:2802":["EPSG:2802","+proj=tmerc +lat_0=43.66666666666666 +lon_0=-68.5 +k=0.9999 +x_0=300000 +y_0=0 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs "],"EPSG:2803":["EPSG:2803","+proj=tmerc +lat_0=42.83333333333334 +lon_0=-70.16666666666667 +k=0.999966667 +x_0=900000 +y_0=0 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs "],"EPSG:2804":["EPSG:2804","+proj=lcc +lat_1=39.45 +lat_2=38.3 +lat_0=37.66666666666666 +lon_0=-77 +x_0=400000 +y_0=0 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs "],"EPSG:2805":["EPSG:2805","+proj=lcc +lat_1=42.68333333333333 +lat_2=41.71666666666667 +lat_0=41 +lon_0=-71.5 +x_0=200000 +y_0=750000 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs "],"EPSG:2806":["EPSG:2806","+proj=lcc +lat_1=41.48333333333333 +lat_2=41.28333333333333 +lat_0=41 +lon_0=-70.5 +x_0=500000 +y_0=0 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs "],"EPSG:2807":["EPSG:2807","+proj=lcc +lat_1=47.08333333333334 +lat_2=45.48333333333333 +lat_0=44.78333333333333 +lon_0=-87 +x_0=8000000 +y_0=0 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs "],"EPSG:2808":["EPSG:2808","+proj=lcc +lat_1=45.7 +lat_2=44.18333333333333 +lat_0=43.31666666666667 +lon_0=-84.36666666666666 +x_0=6000000 +y_0=0 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs "],"EPSG:2809":["EPSG:2809","+proj=lcc +lat_1=43.66666666666666 +lat_2=42.1 +lat_0=41.5 +lon_0=-84.36666666666666 +x_0=4000000 +y_0=0 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs "],"EPSG:2810":["EPSG:2810","+proj=lcc +lat_1=48.63333333333333 +lat_2=47.03333333333333 +lat_0=46.5 +lon_0=-93.09999999999999 +x_0=800000 +y_0=100000 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs "],"EPSG:4387":["EPSG:4387","+proj=geocent +ellps=GRS80 +units=m +no_defs "],"EPSG:2813":["EPSG:2813","+proj=tmerc +lat_0=29.5 +lon_0=-88.83333333333333 +k=0.99995 +x_0=300000 +y_0=0 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs "],"EPSG:2814":["EPSG:2814","+proj=tmerc +lat_0=29.5 +lon_0=-90.33333333333333 +k=0.99995 +x_0=700000 +y_0=0 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs "],"EPSG:2818":["EPSG:2818","+proj=lcc +lat_1=49 +lat_2=45 +lat_0=44.25 +lon_0=-109.5 +x_0=600000 +y_0=0 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs "],"EPSG:2820":["EPSG:2820","+proj=tmerc +lat_0=34.75 +lon_0=-115.5833333333333 +k=0.9999 +x_0=200000 +y_0=8000000 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs "],"EPSG:2821":["EPSG:2821","+proj=tmerc +lat_0=34.75 +lon_0=-116.6666666666667 +k=0.9999 +x_0=500000 +y_0=6000000 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs "],"EPSG:2822":["EPSG:2822","+proj=tmerc +lat_0=34.75 +lon_0=-118.5833333333333 +k=0.9999 +x_0=800000 +y_0=4000000 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs "],"EPSG:2823":["EPSG:2823","+proj=tmerc +lat_0=42.5 +lon_0=-71.66666666666667 +k=0.999966667 +x_0=300000 +y_0=0 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs "],"EPSG:2824":["EPSG:2824","+proj=tmerc +lat_0=38.83333333333334 +lon_0=-74.5 +k=0.9999 +x_0=150000 +y_0=0 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs "],"EPSG:2825":["EPSG:2825","+proj=tmerc +lat_0=31 +lon_0=-104.3333333333333 +k=0.999909091 +x_0=165000 +y_0=0 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs "],"EPSG:2826":["EPSG:2826","+proj=tmerc +lat_0=31 +lon_0=-106.25 +k=0.9999 +x_0=500000 +y_0=0 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs "],"EPSG:2827":["EPSG:2827","+proj=tmerc +lat_0=31 +lon_0=-107.8333333333333 +k=0.999916667 +x_0=830000 +y_0=0 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs "],"EPSG:2830":["EPSG:2830","+proj=tmerc +lat_0=40 +lon_0=-78.58333333333333 +k=0.9999375 +x_0=350000 +y_0=0 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs "],"EPSG:2831":["EPSG:2831","+proj=lcc +lat_1=41.03333333333333 +lat_2=40.66666666666666 +lat_0=40.16666666666666 +lon_0=-74 +x_0=300000 +y_0=0 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs "],"EPSG:2832":["EPSG:2832","+proj=lcc +lat_1=48.73333333333333 +lat_2=47.43333333333333 +lat_0=47 +lon_0=-100.5 +x_0=600000 +y_0=0 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs "],"EPSG:2833":["EPSG:2833","+proj=lcc +lat_1=47.48333333333333 +lat_2=46.18333333333333 +lat_0=45.66666666666666 +lon_0=-100.5 +x_0=600000 +y_0=0 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs "],"EPSG:2834":["EPSG:2834","+proj=lcc +lat_1=41.7 +lat_2=40.43333333333333 +lat_0=39.66666666666666 +lon_0=-82.5 +x_0=600000 +y_0=0 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs "],"EPSG:2835":["EPSG:2835","+proj=lcc +lat_1=40.03333333333333 +lat_2=38.73333333333333 +lat_0=38 +lon_0=-82.5 +x_0=600000 +y_0=0 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs "],"EPSG:2836":["EPSG:2836","+proj=lcc +lat_1=36.76666666666667 +lat_2=35.56666666666667 +lat_0=35 +lon_0=-98 +x_0=600000 +y_0=0 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs "],"EPSG:4087":["EPSG:4087","+proj=eqc +lat_ts=0 +lat_0=0 +lon_0=0 +x_0=0 +y_0=0 +datum=WGS84 +units=m +no_defs "],"EPSG:2837":["EPSG:2837","+proj=lcc +lat_1=35.23333333333333 +lat_2=33.93333333333333 +lat_0=33.33333333333334 +lon_0=-98 +x_0=600000 +y_0=0 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs "],"EPSG:2838":["EPSG:2838","+proj=lcc +lat_1=46 +lat_2=44.33333333333334 +lat_0=43.66666666666666 +lon_0=-120.5 +x_0=2500000 +y_0=0 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs "],"EPSG:2839":["EPSG:2839","+proj=lcc +lat_1=44 +lat_2=42.33333333333334 +lat_0=41.66666666666666 +lon_0=-120.5 +x_0=1500000 +y_0=0 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs "],"EPSG:2840":["EPSG:2840","+proj=tmerc +lat_0=41.08333333333334 +lon_0=-71.5 +k=0.99999375 +x_0=100000 +y_0=0 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs "],"EPSG:2841":["EPSG:2841","+proj=lcc +lat_1=45.68333333333333 +lat_2=44.41666666666666 +lat_0=43.83333333333334 +lon_0=-100 +x_0=600000 +y_0=0 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs "],"EPSG:2842":["EPSG:2842","+proj=lcc +lat_1=44.4 +lat_2=42.83333333333334 +lat_0=42.33333333333334 +lon_0=-100.3333333333333 +x_0=600000 +y_0=0 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs "],"EPSG:2843":["EPSG:2843","+proj=lcc +lat_1=36.41666666666666 +lat_2=35.25 +lat_0=34.33333333333334 +lon_0=-86 +x_0=600000 +y_0=0 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs "],"EPSG:2844":["EPSG:2844","+proj=lcc +lat_1=36.18333333333333 +lat_2=34.65 +lat_0=34 +lon_0=-101.5 +x_0=200000 +y_0=1000000 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs "],"EPSG:4389":["EPSG:4389","+proj=geocent +ellps=GRS80 +units=m +no_defs "],"EPSG:2846":["EPSG:2846","+proj=lcc +lat_1=31.88333333333333 +lat_2=30.11666666666667 +lat_0=29.66666666666667 +lon_0=-100.3333333333333 +x_0=700000 +y_0=3000000 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs "],"EPSG:2847":["EPSG:2847","+proj=lcc +lat_1=30.28333333333333 +lat_2=28.38333333333333 +lat_0=27.83333333333333 +lon_0=-99 +x_0=600000 +y_0=4000000 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs "],"EPSG:2848":["EPSG:2848","+proj=lcc +lat_1=27.83333333333333 +lat_2=26.16666666666667 +lat_0=25.66666666666667 +lon_0=-98.5 +x_0=300000 +y_0=5000000 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs "],"EPSG:2849":["EPSG:2849","+proj=lcc +lat_1=41.78333333333333 +lat_2=40.71666666666667 +lat_0=40.33333333333334 +lon_0=-111.5 +x_0=500000 +y_0=1000000 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs "],"EPSG:2850":["EPSG:2850","+proj=lcc +lat_1=40.65 +lat_2=39.01666666666667 +lat_0=38.33333333333334 +lon_0=-111.5 +x_0=500000 +y_0=2000000 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs "],"EPSG:2851":["EPSG:2851","+proj=lcc +lat_1=38.35 +lat_2=37.21666666666667 +lat_0=36.66666666666666 +lon_0=-111.5 +x_0=500000 +y_0=3000000 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs "],"EPSG:6133":["EPSG:6133","+proj=geocent +ellps=GRS80 +units=m +no_defs "],"EPSG:2853":["EPSG:2853","+proj=lcc +lat_1=39.2 +lat_2=38.03333333333333 +lat_0=37.66666666666666 +lon_0=-78.5 +x_0=3500000 +y_0=2000000 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs "],"EPSG:2854":["EPSG:2854","+proj=lcc +lat_1=37.96666666666667 +lat_2=36.76666666666667 +lat_0=36.33333333333334 +lon_0=-78.5 +x_0=3500000 +y_0=1000000 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs "],"EPSG:2855":["EPSG:2855","+proj=lcc +lat_1=48.73333333333333 +lat_2=47.5 +lat_0=47 +lon_0=-120.8333333333333 +x_0=500000 +y_0=0 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs "],"EPSG:2856":["EPSG:2856","+proj=lcc +lat_1=47.33333333333334 +lat_2=45.83333333333334 +lat_0=45.33333333333334 +lon_0=-120.5 +x_0=500000 +y_0=0 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs "],"EPSG:2857":["EPSG:2857","+proj=lcc +lat_1=40.25 +lat_2=39 +lat_0=38.5 +lon_0=-79.5 +x_0=600000 +y_0=0 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs "],"EPSG:2858":["EPSG:2858","+proj=lcc +lat_1=38.88333333333333 +lat_2=37.48333333333333 +lat_0=37 +lon_0=-81 +x_0=600000 +y_0=0 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs "],"EPSG:2859":["EPSG:2859","+proj=lcc +lat_1=46.76666666666667 +lat_2=45.56666666666667 +lat_0=45.16666666666666 +lon_0=-90 +x_0=600000 +y_0=0 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs "],"EPSG:2860":["EPSG:2860","+proj=lcc +lat_1=45.5 +lat_2=44.25 +lat_0=43.83333333333334 +lon_0=-90 +x_0=600000 +y_0=0 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs "],"EPSG:4465":["EPSG:4465","+proj=geocent +ellps=GRS80 +units=m +no_defs "],"EPSG:2861":["EPSG:2861","+proj=lcc +lat_1=44.06666666666667 +lat_2=42.73333333333333 +lat_0=42 +lon_0=-90 +x_0=600000 +y_0=0 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs "],"EPSG:2862":["EPSG:2862","+proj=tmerc +lat_0=40.5 +lon_0=-105.1666666666667 +k=0.9999375 +x_0=200000 +y_0=0 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs "],"EPSG:2863":["EPSG:2863","+proj=tmerc +lat_0=40.5 +lon_0=-107.3333333333333 +k=0.9999375 +x_0=400000 +y_0=100000 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs "],"EPSG:2864":["EPSG:2864","+proj=tmerc +lat_0=40.5 +lon_0=-108.75 +k=0.9999375 +x_0=600000 +y_0=0 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs "],"EPSG:2865":["EPSG:2865","+proj=tmerc +lat_0=40.5 +lon_0=-110.0833333333333 +k=0.9999375 +x_0=800000 +y_0=100000 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs "],"EPSG:2866":["EPSG:2866","+proj=lcc +lat_1=18.43333333333333 +lat_2=18.03333333333333 +lat_0=17.83333333333333 +lon_0=-66.43333333333334 +x_0=200000 +y_0=200000 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs "],"EPSG:2867":["EPSG:2867","+proj=tmerc +lat_0=31 +lon_0=-110.1666666666667 +k=0.9999 +x_0=213360 +y_0=0 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=ft +no_defs "],"EPSG:2868":["EPSG:2868","+proj=tmerc +lat_0=31 +lon_0=-111.9166666666667 +k=0.9999 +x_0=213360 +y_0=0 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=ft +no_defs "],"EPSG:2869":["EPSG:2869","+proj=tmerc +lat_0=31 +lon_0=-113.75 +k=0.999933333 +x_0=213360 +y_0=0 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=ft +no_defs "],"EPSG:2870":["EPSG:2870","+proj=lcc +lat_1=41.66666666666666 +lat_2=40 +lat_0=39.33333333333334 +lon_0=-122 +x_0=2000000.0001016 +y_0=500000.0001016001 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=us-ft +no_defs "],"EPSG:2871":["EPSG:2871","+proj=lcc +lat_1=39.83333333333334 +lat_2=38.33333333333334 +lat_0=37.66666666666666 +lon_0=-122 +x_0=2000000.0001016 +y_0=500000.0001016001 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=us-ft +no_defs "],"EPSG:2874":["EPSG:2874","+proj=lcc +lat_1=35.46666666666667 +lat_2=34.03333333333333 +lat_0=33.5 +lon_0=-118 +x_0=2000000.0001016 +y_0=500000.0001016001 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=us-ft +no_defs "],"EPSG:2876":["EPSG:2876","+proj=lcc +lat_1=40.78333333333333 +lat_2=39.71666666666667 +lat_0=39.33333333333334 +lon_0=-105.5 +x_0=914401.8288036576 +y_0=304800.6096012192 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=us-ft +no_defs "],"EPSG:2885":["EPSG:2885","+proj=tmerc +lat_0=30 +lon_0=-84.16666666666667 +k=0.9999 +x_0=699999.9998983998 +y_0=0 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=us-ft +no_defs "],"EPSG:2877":["EPSG:2877","+proj=lcc +lat_1=39.75 +lat_2=38.45 +lat_0=37.83333333333334 +lon_0=-105.5 +x_0=914401.8288036576 +y_0=304800.6096012192 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=us-ft +no_defs "],"EPSG:2878":["EPSG:2878","+proj=lcc +lat_1=38.43333333333333 +lat_2=37.23333333333333 +lat_0=36.66666666666666 +lon_0=-105.5 +x_0=914401.8288036576 +y_0=304800.6096012192 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=us-ft +no_defs "],"EPSG:2879":["EPSG:2879","+proj=lcc +lat_1=41.86666666666667 +lat_2=41.2 +lat_0=40.83333333333334 +lon_0=-72.75 +x_0=304800.6096012192 +y_0=152400.3048006096 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=us-ft +no_defs "],"EPSG:2880":["EPSG:2880","+proj=tmerc +lat_0=38 +lon_0=-75.41666666666667 +k=0.999995 +x_0=200000.0001016002 +y_0=0 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=us-ft +no_defs "],"EPSG:2881":["EPSG:2881","+proj=tmerc +lat_0=24.33333333333333 +lon_0=-81 +k=0.999941177 +x_0=200000.0001016002 +y_0=0 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=us-ft +no_defs "],"EPSG:2882":["EPSG:2882","+proj=tmerc +lat_0=24.33333333333333 +lon_0=-82 +k=0.999941177 +x_0=200000.0001016002 +y_0=0 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=us-ft +no_defs "],"EPSG:2883":["EPSG:2883","+proj=lcc +lat_1=30.75 +lat_2=29.58333333333333 +lat_0=29 +lon_0=-84.5 +x_0=600000 +y_0=0 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=us-ft +no_defs "],"EPSG:2884":["EPSG:2884","+proj=tmerc +lat_0=30 +lon_0=-82.16666666666667 +k=0.9999 +x_0=200000.0001016002 +y_0=0 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=us-ft +no_defs "],"EPSG:4468":["EPSG:4468","+proj=geocent +ellps=GRS80 +units=m +no_defs "],"EPSG:2886":["EPSG:2886","+proj=tmerc +lat_0=41.66666666666666 +lon_0=-112.1666666666667 +k=0.9999473679999999 +x_0=200000.0001016002 +y_0=0 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=us-ft +no_defs "],"EPSG:2887":["EPSG:2887","+proj=tmerc +lat_0=41.66666666666666 +lon_0=-114 +k=0.9999473679999999 +x_0=500000.0001016001 +y_0=0 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=us-ft +no_defs "],"EPSG:2888":["EPSG:2888","+proj=tmerc +lat_0=41.66666666666666 +lon_0=-115.75 +k=0.999933333 +x_0=800000.0001016001 +y_0=0 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=us-ft +no_defs "],"EPSG:2889":["EPSG:2889","+proj=tmerc +lat_0=37.5 +lon_0=-85.66666666666667 +k=0.999966667 +x_0=99999.99989839978 +y_0=249364.9987299975 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=us-ft +no_defs "],"EPSG:2890":["EPSG:2890","+proj=tmerc +lat_0=37.5 +lon_0=-87.08333333333333 +k=0.999966667 +x_0=900000 +y_0=249364.9987299975 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=us-ft +no_defs "],"EPSG:2891":["EPSG:2891","+proj=lcc +lat_1=37.96666666666667 +lat_2=38.96666666666667 +lat_0=37.5 +lon_0=-84.25 +x_0=500000.0001016001 +y_0=0 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=us-ft +no_defs "],"EPSG:2892":["EPSG:2892","+proj=lcc +lat_1=37.93333333333333 +lat_2=36.73333333333333 +lat_0=36.33333333333334 +lon_0=-85.75 +x_0=500000.0001016001 +y_0=500000.0001016001 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=us-ft +no_defs "],"EPSG:2893":["EPSG:2893","+proj=lcc +lat_1=39.45 +lat_2=38.3 +lat_0=37.66666666666666 +lon_0=-77 +x_0=399999.9998983998 +y_0=0 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=us-ft +no_defs "],"EPSG:4473":["EPSG:4473","+proj=geocent +ellps=intl +units=m +no_defs "],"EPSG:2894":["EPSG:2894","+proj=lcc +lat_1=42.68333333333333 +lat_2=41.71666666666667 +lat_0=41 +lon_0=-71.5 +x_0=200000.0001016002 +y_0=750000 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=us-ft +no_defs "],"EPSG:2895":["EPSG:2895","+proj=lcc +lat_1=41.48333333333333 +lat_2=41.28333333333333 +lat_0=41 +lon_0=-70.5 +x_0=500000.0001016001 +y_0=0 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=us-ft +no_defs "],"EPSG:2896":["EPSG:2896","+proj=lcc +lat_1=47.08333333333334 +lat_2=45.48333333333333 +lat_0=44.78333333333333 +lon_0=-87 +x_0=7999999.999968001 +y_0=0 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=ft +no_defs "],"EPSG:2897":["EPSG:2897","+proj=lcc +lat_1=45.7 +lat_2=44.18333333333333 +lat_0=43.31666666666667 +lon_0=-84.36666666666666 +x_0=5999999.999976001 +y_0=0 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=ft +no_defs "],"EPSG:2898":["EPSG:2898","+proj=lcc +lat_1=43.66666666666666 +lat_2=42.1 +lat_0=41.5 +lon_0=-84.36666666666666 +x_0=3999999.999984 +y_0=0 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=ft +no_defs "],"EPSG:2899":["EPSG:2899","+proj=tmerc +lat_0=29.5 +lon_0=-88.83333333333333 +k=0.99995 +x_0=300000.0000000001 +y_0=0 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=us-ft +no_defs "],"EPSG:2901":["EPSG:2901","+proj=lcc +lat_1=49 +lat_2=45 +lat_0=44.25 +lon_0=-109.5 +x_0=599999.9999976 +y_0=0 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=ft +no_defs "],"EPSG:2904":["EPSG:2904","+proj=tmerc +lat_0=31 +lon_0=-107.8333333333333 +k=0.999916667 +x_0=830000.0001016001 +y_0=0 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=us-ft +no_defs "],"EPSG:2908":["EPSG:2908","+proj=lcc +lat_1=41.03333333333333 +lat_2=40.66666666666666 +lat_0=40.16666666666666 +lon_0=-74 +x_0=300000.0000000001 +y_0=0 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=us-ft +no_defs "],"EPSG:2909":["EPSG:2909","+proj=lcc +lat_1=48.73333333333333 +lat_2=47.43333333333333 +lat_0=47 +lon_0=-100.5 +x_0=599999.9999976 +y_0=0 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=ft +no_defs "],"EPSG:4569":["EPSG:4569","+proj=tmerc +lat_0=0 +lon_0=81 +k=1 +x_0=14500000 +y_0=0 +ellps=krass +units=m +no_defs "],"EPSG:2910":["EPSG:2910","+proj=lcc +lat_1=47.48333333333333 +lat_2=46.18333333333333 +lat_0=45.66666666666666 +lon_0=-100.5 +x_0=599999.9999976 +y_0=0 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=ft +no_defs "],"EPSG:2912":["EPSG:2912","+proj=lcc +lat_1=35.23333333333333 +lat_2=33.93333333333333 +lat_0=33.33333333333334 +lon_0=-98 +x_0=600000 +y_0=0 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=us-ft +no_defs "],"EPSG:2913":["EPSG:2913","+proj=lcc +lat_1=46 +lat_2=44.33333333333334 +lat_0=43.66666666666666 +lon_0=-120.5 +x_0=2500000.0001424 +y_0=0 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=ft +no_defs "],"EPSG:2914":["EPSG:2914","+proj=lcc +lat_1=44 +lat_2=42.33333333333334 +lat_0=41.66666666666666 +lon_0=-120.5 +x_0=1500000.0001464 +y_0=0 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=ft +no_defs "],"EPSG:2915":["EPSG:2915","+proj=lcc +lat_1=36.41666666666666 +lat_2=35.25 +lat_0=34.33333333333334 +lon_0=-86 +x_0=600000 +y_0=0 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=us-ft +no_defs "],"EPSG:2916":["EPSG:2916","+proj=lcc +lat_1=36.18333333333333 +lat_2=34.65 +lat_0=34 +lon_0=-101.5 +x_0=200000.0001016002 +y_0=999999.9998983998 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=us-ft +no_defs "],"EPSG:2917":["EPSG:2917","+proj=lcc +lat_1=33.96666666666667 +lat_2=32.13333333333333 +lat_0=31.66666666666667 +lon_0=-98.5 +x_0=600000 +y_0=2000000.0001016 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=us-ft +no_defs "],"EPSG:2918":["EPSG:2918","+proj=lcc +lat_1=31.88333333333333 +lat_2=30.11666666666667 +lat_0=29.66666666666667 +lon_0=-100.3333333333333 +x_0=699999.9998983998 +y_0=3000000 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=us-ft +no_defs "],"EPSG:2919":["EPSG:2919","+proj=lcc +lat_1=30.28333333333333 +lat_2=28.38333333333333 +lat_0=27.83333333333333 +lon_0=-99 +x_0=600000 +y_0=3999999.9998984 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=us-ft +no_defs "],"EPSG:2920":["EPSG:2920","+proj=lcc +lat_1=27.83333333333333 +lat_2=26.16666666666667 +lat_0=25.66666666666667 +lon_0=-98.5 +x_0=300000.0000000001 +y_0=5000000.0001016 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=us-ft +no_defs "],"EPSG:2921":["EPSG:2921","+proj=lcc +lat_1=41.78333333333333 +lat_2=40.71666666666667 +lat_0=40.33333333333334 +lon_0=-111.5 +x_0=500000.0001504 +y_0=999999.9999960001 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=ft +no_defs "],"EPSG:2922":["EPSG:2922","+proj=lcc +lat_1=40.65 +lat_2=39.01666666666667 +lat_0=38.33333333333334 +lon_0=-111.5 +x_0=500000.0001504 +y_0=1999999.999992 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=ft +no_defs "],"EPSG:2923":["EPSG:2923","+proj=lcc +lat_1=38.35 +lat_2=37.21666666666667 +lat_0=36.66666666666666 +lon_0=-111.5 +x_0=500000.0001504 +y_0=2999999.999988 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=ft +no_defs "],"EPSG:2924":["EPSG:2924","+proj=lcc +lat_1=39.2 +lat_2=38.03333333333333 +lat_0=37.66666666666666 +lon_0=-78.5 +x_0=3500000.0001016 +y_0=2000000.0001016 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=us-ft +no_defs "],"EPSG:2933":["EPSG:2933","+proj=utm +zone=50 +south +ellps=bessel +towgs84=-403,684,41,0,0,0,0 +units=m +no_defs "],"EPSG:2925":["EPSG:2925","+proj=lcc +lat_1=37.96666666666667 +lat_2=36.76666666666667 +lat_0=36.33333333333334 +lon_0=-78.5 +x_0=3500000.0001016 +y_0=999999.9998983998 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=us-ft +no_defs "],"EPSG:2928":["EPSG:2928","+proj=lcc +lat_1=46.76666666666667 +lat_2=45.56666666666667 +lat_0=45.16666666666666 +lon_0=-90 +x_0=600000 +y_0=0 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=us-ft +no_defs "],"EPSG:2929":["EPSG:2929","+proj=lcc +lat_1=45.5 +lat_2=44.25 +lat_0=43.83333333333334 +lon_0=-90 +x_0=600000 +y_0=0 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=us-ft +no_defs "],"EPSG:2930":["EPSG:2930","+proj=lcc +lat_1=44.06666666666667 +lat_2=42.73333333333333 +lat_0=42 +lon_0=-90 +x_0=600000 +y_0=0 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=us-ft +no_defs "],"EPSG:2931":["EPSG:2931","+proj=tmerc +lat_0=0 +lon_0=13 +k=0.9996 +x_0=500000 +y_0=0 +a=6378249.2 +b=6356515 +towgs84=-106,-87,188,0,0,0,0 +units=m +no_defs "],"EPSG:2932":["EPSG:2932","+proj=tmerc +lat_0=24.45 +lon_0=51.21666666666667 +k=0.99999 +x_0=200000 +y_0=300000 +ellps=intl +towgs84=-119.4248,-303.65872,-11.00061,1.164298,0.174458,1.096259,3.657065 +units=m +no_defs "],"EPSG:2934":["EPSG:2934","+proj=merc +lon_0=110 +k=0.997 +x_0=3900000 +y_0=900000 +ellps=bessel +towgs84=-403,684,41,0,0,0,0 +pm=jakarta +units=m +no_defs "],"EPSG:2935":["EPSG:2935","+proj=tmerc +lat_0=0.1166666666666667 +lon_0=41.53333333333333 +k=1 +x_0=1300000 +y_0=0 +ellps=krass +towgs84=23.92,-141.27,-80.9,0,0.35,0.82,-0.12 +units=m +no_defs "],"EPSG:2936":["EPSG:2936","+proj=tmerc +lat_0=0.1166666666666667 +lon_0=44.53333333333333 +k=1 +x_0=2300000 +y_0=0 +ellps=krass +towgs84=23.92,-141.27,-80.9,0,0.35,0.82,-0.12 +units=m +no_defs "],"EPSG:2937":["EPSG:2937","+proj=tmerc +lat_0=0.1166666666666667 +lon_0=47.53333333333333 +k=1 +x_0=3300000 +y_0=0 +ellps=krass +towgs84=23.92,-141.27,-80.9,0,0.35,0.82,-0.12 +units=m +no_defs "],"EPSG:2938":["EPSG:2938","+proj=tmerc +lat_0=0.1166666666666667 +lon_0=50.53333333333333 +k=1 +x_0=4300000 +y_0=0 +ellps=krass +towgs84=23.92,-141.27,-80.9,0,0.35,0.82,-0.12 +units=m +no_defs "],"EPSG:2939":["EPSG:2939","+proj=tmerc +lat_0=0.1333333333333333 +lon_0=50.76666666666667 +k=1 +x_0=2300000 +y_0=0 +ellps=krass +towgs84=23.92,-141.27,-80.9,0,0.35,0.82,-0.12 +units=m +no_defs "],"EPSG:2940":["EPSG:2940","+proj=tmerc +lat_0=0.1333333333333333 +lon_0=53.76666666666667 +k=1 +x_0=3300000 +y_0=0 +ellps=krass +towgs84=23.92,-141.27,-80.9,0,0.35,0.82,-0.12 +units=m +no_defs "],"EPSG:2941":["EPSG:2941","+proj=tmerc +lat_0=0.1333333333333333 +lon_0=56.76666666666667 +k=1 +x_0=4300000 +y_0=0 +ellps=krass +towgs84=23.92,-141.27,-80.9,0,0.35,0.82,-0.12 +units=m +no_defs "],"EPSG:2942":["EPSG:2942","+proj=utm +zone=28 +ellps=intl +towgs84=-499,-249,314,0,0,0,0 +units=m +no_defs "],"EPSG:2944":["EPSG:2944","+proj=tmerc +lat_0=0 +lon_0=-55.5 +k=0.9999 +x_0=304800 +y_0=0 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs "],"EPSG:2945":["EPSG:2945","+proj=tmerc +lat_0=0 +lon_0=-58.5 +k=0.9999 +x_0=304800 +y_0=0 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs "],"EPSG:2946":["EPSG:2946","+proj=tmerc +lat_0=0 +lon_0=-61.5 +k=0.9999 +x_0=304800 +y_0=0 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs "],"EPSG:2947":["EPSG:2947","+proj=tmerc +lat_0=0 +lon_0=-64.5 +k=0.9999 +x_0=304800 +y_0=0 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs "],"EPSG:2948":["EPSG:2948","+proj=tmerc +lat_0=0 +lon_0=-67.5 +k=0.9999 +x_0=304800 +y_0=0 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs "],"EPSG:2949":["EPSG:2949","+proj=tmerc +lat_0=0 +lon_0=-70.5 +k=0.9999 +x_0=304800 +y_0=0 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs "],"EPSG:2950":["EPSG:2950","+proj=tmerc +lat_0=0 +lon_0=-73.5 +k=0.9999 +x_0=304800 +y_0=0 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs "],"EPSG:2951":["EPSG:2951","+proj=tmerc +lat_0=0 +lon_0=-76.5 +k=0.9999 +x_0=304800 +y_0=0 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs "],"EPSG:2952":["EPSG:2952","+proj=tmerc +lat_0=0 +lon_0=-79.5 +k=0.9999 +x_0=304800 +y_0=0 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs "],"EPSG:4570":["EPSG:4570","+proj=tmerc +lat_0=0 +lon_0=87 +k=1 +x_0=15500000 +y_0=0 +ellps=krass +units=m +no_defs "],"EPSG:2954":["EPSG:2954","+proj=sterea +lat_0=47.25 +lon_0=-63 +k=0.999912 +x_0=400000 +y_0=800000 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs "],"EPSG:2955":["EPSG:2955","+proj=utm +zone=11 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs "],"EPSG:2957":["EPSG:2957","+proj=utm +zone=13 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs "],"EPSG:2959":["EPSG:2959","+proj=utm +zone=18 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs "],"EPSG:2960":["EPSG:2960","+proj=utm +zone=19 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs "],"EPSG:2961":["EPSG:2961","+proj=utm +zone=20 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs "],"EPSG:2962":["EPSG:2962","+proj=utm +zone=21 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs "],"EPSG:2964":["EPSG:2964","+proj=aea +lat_1=55 +lat_2=65 +lat_0=50 +lon_0=-154 +x_0=0 +y_0=0 +datum=NAD27 +units=us-ft +no_defs "],"EPSG:2965":["EPSG:2965","+proj=tmerc +lat_0=37.5 +lon_0=-85.66666666666667 +k=0.999966667 +x_0=99999.99989839978 +y_0=249999.9998983998 +datum=NAD83 +units=us-ft +no_defs "],"EPSG:2966":["EPSG:2966","+proj=tmerc +lat_0=37.5 +lon_0=-87.08333333333333 +k=0.999966667 +x_0=900000 +y_0=249999.9998983998 +datum=NAD83 +units=us-ft +no_defs "],"EPSG:2967":["EPSG:2967","+proj=tmerc +lat_0=37.5 +lon_0=-85.66666666666667 +k=0.999966667 +x_0=99999.99989839978 +y_0=249999.9998983998 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=us-ft +no_defs "],"EPSG:2968":["EPSG:2968","+proj=tmerc +lat_0=37.5 +lon_0=-87.08333333333333 +k=0.999966667 +x_0=900000 +y_0=249999.9998983998 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=us-ft +no_defs "],"EPSG:2969":["EPSG:2969","+proj=utm +zone=20 +ellps=intl +towgs84=137,248,-430,0,0,0,0 +units=m +no_defs "],"EPSG:2970":["EPSG:2970","+proj=utm +zone=20 +ellps=intl +towgs84=-467,-16,-300,0,0,0,0 +units=m +no_defs "],"EPSG:2971":["EPSG:2971","+proj=utm +zone=22 +ellps=intl +towgs84=-186,230,110,0,0,0,0 +units=m +no_defs "],"EPSG:2972":["EPSG:2972","+proj=utm +zone=22 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs "],"EPSG:2975":["EPSG:2975","+proj=utm +zone=40 +south +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs "],"EPSG:2976":["EPSG:2976","+proj=utm +zone=6 +south +ellps=intl +towgs84=162,117,154,0,0,0,0 +units=m +no_defs "],"EPSG:2977":["EPSG:2977","+proj=utm +zone=5 +south +ellps=intl +towgs84=72.438,345.918,79.486,1.6045,0.8823,0.5565,1.3746 +units=m +no_defs "],"EPSG:2978":["EPSG:2978","+proj=utm +zone=7 +south +ellps=intl +towgs84=84,274,65,0,0,0,0 +units=m +no_defs "],"EPSG:2979":["EPSG:2979","+proj=utm +zone=42 +south +ellps=intl +towgs84=145,-187,103,0,0,0,0 +units=m +no_defs "],"EPSG:2980":["EPSG:2980","+proj=utm +zone=38 +south +ellps=intl +towgs84=-382,-59,-262,0,0,0,0 +units=m +no_defs "],"EPSG:2981":["EPSG:2981","+proj=utm +zone=58 +south +ellps=intl +towgs84=335.47,222.58,-230.94,0,0,0,0 +units=m +no_defs "],"EPSG:2982":["EPSG:2982","+proj=utm +zone=58 +south +ellps=intl +towgs84=-13,-348,292,0,0,0,0 +units=m +no_defs "],"EPSG:2983":["EPSG:2983","+proj=utm +zone=58 +south +ellps=intl +towgs84=-122.383,-188.696,103.344,3.5107,-4.9668,-5.7047,4.4798 +units=m +no_defs "],"EPSG:2995":["EPSG:2995","+proj=utm +zone=58 +south +ellps=intl +towgs84=287.58,177.78,-135.41,0,0,0,0 +units=m +no_defs "],"EPSG:2984":["EPSG:2984","+proj=lcc +lat_1=-20.66666666666667 +lat_2=-22.33333333333333 +lat_0=-21.5 +lon_0=166 +x_0=400000 +y_0=300000 +ellps=intl +towgs84=0,0,0,0,0,0,0 +units=m +no_defs "],"EPSG:2987":["EPSG:2987","+proj=utm +zone=21 +ellps=clrk66 +towgs84=30,430,368,0,0,0,0 +units=m +no_defs "],"EPSG:2988":["EPSG:2988","+proj=utm +zone=1 +south +ellps=intl +towgs84=253,-132,-127,0,0,0,0 +units=m +no_defs "],"EPSG:2990":["EPSG:2990","+proj=tmerc +lat_0=-21.11666666666667 +lon_0=55.53333333333333 +k=1 +x_0=50000 +y_0=160000 +ellps=intl +towgs84=94,-948,-1262,0,0,0,0 +units=m +no_defs "],"EPSG:2991":["EPSG:2991","+proj=lcc +lat_1=43 +lat_2=45.5 +lat_0=41.75 +lon_0=-120.5 +x_0=400000 +y_0=0 +datum=NAD83 +units=m +no_defs "],"EPSG:2992":["EPSG:2992","+proj=lcc +lat_1=43 +lat_2=45.5 +lat_0=41.75 +lon_0=-120.5 +x_0=399999.9999984 +y_0=0 +datum=NAD83 +units=ft +no_defs "],"EPSG:2993":["EPSG:2993","+proj=lcc +lat_1=43 +lat_2=45.5 +lat_0=41.75 +lon_0=-120.5 +x_0=400000 +y_0=0 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs "],"EPSG:2994":["EPSG:2994","+proj=lcc +lat_1=43 +lat_2=45.5 +lat_0=41.75 +lon_0=-120.5 +x_0=399999.9999984 +y_0=0 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=ft +no_defs "],"EPSG:2996":["EPSG:2996","+proj=utm +zone=58 +south +ellps=intl +towgs84=-13,-348,292,0,0,0,0 +units=m +no_defs "],"EPSG:2997":["EPSG:2997","+proj=utm +zone=58 +south +ellps=intl +towgs84=-480.26,-438.32,-643.429,16.3119,20.1721,-4.0349,-111.7002 +units=m +no_defs "],"EPSG:2998":["EPSG:2998","+proj=utm +zone=58 +south +ellps=intl +towgs84=-10.18,-350.43,291.37,0,0,0,0 +units=m +no_defs "],"EPSG:2999":["EPSG:2999","+proj=utm +zone=38 +south +ellps=intl +towgs84=-963,510,-359,0,0,0,0 +units=m +no_defs "],"EPSG:3000":["EPSG:3000","+proj=merc +lon_0=110 +k=0.997 +x_0=3900000 +y_0=900000 +ellps=bessel +towgs84=-403,684,41,0,0,0,0 +units=m +no_defs "],"EPSG:3001":["EPSG:3001","+proj=merc +lon_0=110 +k=0.997 +x_0=3900000 +y_0=900000 +ellps=bessel +towgs84=-377,681,-50,0,0,0,0 +units=m +no_defs "],"EPSG:3002":["EPSG:3002","+proj=merc +lon_0=110 +k=0.997 +x_0=3900000 +y_0=900000 +ellps=bessel +towgs84=-587.8,519.75,145.76,0,0,0,0 +units=m +no_defs "],"EPSG:3019":["EPSG:3019","+proj=tmerc +lat_0=0 +lon_0=11.30827777777778 +k=1 +x_0=1500000 +y_0=0 +ellps=bessel +towgs84=414.1,41.3,603.1,-0.855,2.141,-7.023,0 +units=m +no_defs "],"EPSG:3020":["EPSG:3020","+proj=tmerc +lat_0=0 +lon_0=13.55827777777778 +k=1 +x_0=1500000 +y_0=0 +ellps=bessel +towgs84=414.1,41.3,603.1,-0.855,2.141,-7.023,0 +units=m +no_defs "],"EPSG:3023":["EPSG:3023","+proj=tmerc +lat_0=0 +lon_0=20.30827777777778 +k=1 +x_0=1500000 +y_0=0 +ellps=bessel +towgs84=414.1,41.3,603.1,-0.855,2.141,-7.023,0 +units=m +no_defs "],"EPSG:3024":["EPSG:3024","+proj=tmerc +lat_0=0 +lon_0=22.55827777777778 +k=1 +x_0=1500000 +y_0=0 +ellps=bessel +towgs84=414.1,41.3,603.1,-0.855,2.141,-7.023,0 +units=m +no_defs "],"EPSG:3025":["EPSG:3025","+proj=tmerc +lat_0=0 +lon_0=11.30827777777778 +k=1 +x_0=1500000 +y_0=0 +ellps=bessel +units=m +no_defs "],"EPSG:3026":["EPSG:3026","+proj=tmerc +lat_0=0 +lon_0=13.55827777777778 +k=1 +x_0=1500000 +y_0=0 +ellps=bessel +units=m +no_defs "],"EPSG:3028":["EPSG:3028","+proj=tmerc +lat_0=0 +lon_0=18.05827777777778 +k=1 +x_0=1500000 +y_0=0 +ellps=bessel +units=m +no_defs "],"EPSG:3032":["EPSG:3032","+proj=stere +lat_0=-90 +lat_ts=-71 +lon_0=70 +k=1 +x_0=6000000 +y_0=6000000 +datum=WGS84 +units=m +no_defs "],"EPSG:3033":["EPSG:3033","+proj=lcc +lat_1=-68.5 +lat_2=-74.5 +lat_0=-50 +lon_0=70 +x_0=6000000 +y_0=6000000 +datum=WGS84 +units=m +no_defs "],"EPSG:3037":["EPSG:3037","+proj=utm +zone=37 +south +ellps=WGS84 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs "],"EPSG:3038":["EPSG:3038","+proj=utm +zone=26 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs "],"EPSG:3039":["EPSG:3039","+proj=utm +zone=27 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs "],"EPSG:3040":["EPSG:3040","+proj=utm +zone=28 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs "],"EPSG:3041":["EPSG:3041","+proj=utm +zone=29 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs "],"EPSG:3048":["EPSG:3048","+proj=utm +zone=36 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs "],"EPSG:3050":["EPSG:3050","+proj=utm +zone=38 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs "],"EPSG:3051":["EPSG:3051","+proj=utm +zone=39 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs "],"EPSG:3054":["EPSG:3054","+proj=utm +zone=26 +ellps=intl +towgs84=-73,47,-83,0,0,0,0 +units=m +no_defs "],"EPSG:3055":["EPSG:3055","+proj=utm +zone=27 +ellps=intl +towgs84=-73,47,-83,0,0,0,0 +units=m +no_defs "],"EPSG:3056":["EPSG:3056","+proj=utm +zone=28 +ellps=intl +towgs84=-73,47,-83,0,0,0,0 +units=m +no_defs "],"EPSG:4556":["EPSG:4556","+proj=geocent +ellps=GRS80 +units=m +no_defs "],"EPSG:3058":["EPSG:3058","+proj=tmerc +lat_0=0 +lon_0=-8.5 +k=1 +x_0=50000 +y_0=-7800000 +ellps=intl +towgs84=982.6087,552.753,-540.873,6.6816266,-31.6114924,-19.84816,16.805 +units=m +no_defs "],"EPSG:3060":["EPSG:3060","+proj=utm +zone=58 +south +ellps=intl +towgs84=-11.64,-348.6,291.98,0,0,0,0 +units=m +no_defs "],"EPSG:3061":["EPSG:3061","+proj=utm +zone=28 +ellps=intl +towgs84=-502.862,-247.438,312.724,0,0,0,0 +units=m +no_defs "],"EPSG:3063":["EPSG:3063","+proj=utm +zone=26 +ellps=intl +towgs84=-106.226,166.366,-37.893,0,0,0,0 +units=m +no_defs "],"EPSG:3066":["EPSG:3066","+proj=tmerc +lat_0=0 +lon_0=37 +k=0.9998 +x_0=500000 +y_0=-3000000 +ellps=intl +towgs84=-87,-98,-121,0,0,0,0 +units=m +no_defs "],"EPSG:3068":["EPSG:3068","+proj=cass +lat_0=52.41864827777778 +lon_0=13.62720366666667 +x_0=40000 +y_0=10000 +datum=potsdam +units=m +no_defs "],"EPSG:3069":["EPSG:3069","+proj=tmerc +lat_0=0 +lon_0=-90 +k=0.9996 +x_0=500000 +y_0=-4500000 +datum=NAD27 +units=m +no_defs "],"EPSG:3072":["EPSG:3072","+proj=tmerc +lat_0=43.83333333333334 +lon_0=-67.875 +k=0.99998 +x_0=700000 +y_0=0 +datum=NAD83 +units=m +no_defs "],"EPSG:3073":["EPSG:3073","+proj=tmerc +lat_0=43 +lon_0=-69.125 +k=0.99998 +x_0=500000 +y_0=0 +datum=NAD83 +units=m +no_defs "],"EPSG:3074":["EPSG:3074","+proj=tmerc +lat_0=42.83333333333334 +lon_0=-70.375 +k=0.99998 +x_0=300000 +y_0=0 +datum=NAD83 +units=m +no_defs "],"EPSG:3075":["EPSG:3075","+proj=tmerc +lat_0=43.83333333333334 +lon_0=-67.875 +k=0.99998 +x_0=700000 +y_0=0 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs "],"EPSG:3076":["EPSG:3076","+proj=tmerc +lat_0=43 +lon_0=-69.125 +k=0.99998 +x_0=500000 +y_0=0 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs "],"EPSG:3077":["EPSG:3077","+proj=tmerc +lat_0=42.83333333333334 +lon_0=-70.375 +k=0.99998 +x_0=300000 +y_0=0 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs "],"EPSG:3078":["EPSG:3078","+proj=omerc +lat_0=45.30916666666666 +lonc=-86 +alpha=337.25556 +k=0.9996 +x_0=2546731.496 +y_0=-4354009.816 +no_uoff +gamma=337.25556 +datum=NAD83 +units=m +no_defs "],"EPSG:3079":["EPSG:3079","+proj=omerc +lat_0=45.30916666666666 +lonc=-86 +alpha=337.25556 +k=0.9996 +x_0=2546731.496 +y_0=-4354009.816 +no_uoff +gamma=337.25556 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs "],"EPSG:3080":["EPSG:3080","+proj=lcc +lat_1=27.41666666666667 +lat_2=34.91666666666666 +lat_0=31.16666666666667 +lon_0=-100 +x_0=914400 +y_0=914400 +datum=NAD27 +units=ft +no_defs "],"EPSG:3081":["EPSG:3081","+proj=lcc +lat_1=27.41666666666667 +lat_2=34.91666666666666 +lat_0=31.16666666666667 +lon_0=-100 +x_0=1000000 +y_0=1000000 +datum=NAD83 +units=m +no_defs "],"EPSG:3082":["EPSG:3082","+proj=lcc +lat_1=27.5 +lat_2=35 +lat_0=18 +lon_0=-100 +x_0=1500000 +y_0=5000000 +datum=NAD83 +units=m +no_defs "],"EPSG:3083":["EPSG:3083","+proj=aea +lat_1=27.5 +lat_2=35 +lat_0=18 +lon_0=-100 +x_0=1500000 +y_0=6000000 +datum=NAD83 +units=m +no_defs "],"EPSG:3084":["EPSG:3084","+proj=lcc +lat_1=27.5 +lat_2=35 +lat_0=18 +lon_0=-100 +x_0=1500000 +y_0=5000000 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs "],"EPSG:3103":["EPSG:3103","+proj=utm +zone=28 +ellps=clrk80 +units=m +no_defs "],"EPSG:3085":["EPSG:3085","+proj=aea +lat_1=27.5 +lat_2=35 +lat_0=18 +lon_0=-100 +x_0=1500000 +y_0=6000000 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs "],"EPSG:3086":["EPSG:3086","+proj=aea +lat_1=24 +lat_2=31.5 +lat_0=24 +lon_0=-84 +x_0=400000 +y_0=0 +datum=NAD83 +units=m +no_defs "],"EPSG:3087":["EPSG:3087","+proj=aea +lat_1=24 +lat_2=31.5 +lat_0=24 +lon_0=-84 +x_0=400000 +y_0=0 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs "],"EPSG:3088":["EPSG:3088","+proj=lcc +lat_1=37.08333333333334 +lat_2=38.66666666666666 +lat_0=36.33333333333334 +lon_0=-85.75 +x_0=1500000 +y_0=1000000 +datum=NAD83 +units=m +no_defs "],"EPSG:3089":["EPSG:3089","+proj=lcc +lat_1=37.08333333333334 +lat_2=38.66666666666666 +lat_0=36.33333333333334 +lon_0=-85.75 +x_0=1500000 +y_0=999999.9998983998 +datum=NAD83 +units=us-ft +no_defs "],"EPSG:3090":["EPSG:3090","+proj=lcc +lat_1=37.08333333333334 +lat_2=38.66666666666666 +lat_0=36.33333333333334 +lon_0=-85.75 +x_0=1500000 +y_0=1000000 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs "],"EPSG:3091":["EPSG:3091","+proj=lcc +lat_1=37.08333333333334 +lat_2=38.66666666666666 +lat_0=36.33333333333334 +lon_0=-85.75 +x_0=1500000 +y_0=999999.9998983998 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=us-ft +no_defs "],"EPSG:3092":["EPSG:3092","+proj=utm +zone=51 +ellps=bessel +towgs84=-146.414,507.337,680.507,0,0,0,0 +units=m +no_defs "],"EPSG:3369":["EPSG:3369","+proj=utm +zone=30 +ellps=clrk80 +units=m +no_defs "],"EPSG:3093":["EPSG:3093","+proj=utm +zone=52 +ellps=bessel +towgs84=-146.414,507.337,680.507,0,0,0,0 +units=m +no_defs "],"EPSG:3094":["EPSG:3094","+proj=utm +zone=53 +ellps=bessel +towgs84=-146.414,507.337,680.507,0,0,0,0 +units=m +no_defs "],"EPSG:3095":["EPSG:3095","+proj=utm +zone=54 +ellps=bessel +towgs84=-146.414,507.337,680.507,0,0,0,0 +units=m +no_defs "],"EPSG:3096":["EPSG:3096","+proj=utm +zone=55 +ellps=bessel +towgs84=-146.414,507.337,680.507,0,0,0,0 +units=m +no_defs "],"EPSG:3097":["EPSG:3097","+proj=utm +zone=51 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs "],"EPSG:3099":["EPSG:3099","+proj=utm +zone=53 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs "],"EPSG:3100":["EPSG:3100","+proj=utm +zone=54 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs "],"EPSG:3101":["EPSG:3101","+proj=utm +zone=55 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs "],"EPSG:3102":["EPSG:3102","+proj=lcc +lat_1=-14.26666666666667 +lat_0=-14.26666666666667 +lon_0=-170 +k_0=1 +x_0=152400.3048006096 +y_0=95169.31165862332 +ellps=clrk66 +towgs84=-115,118,426,0,0,0,0 +units=us-ft +no_defs "],"EPSG:3104":["EPSG:3104","+proj=utm +zone=29 +ellps=clrk80 +units=m +no_defs "],"EPSG:3105":["EPSG:3105","+proj=utm +zone=30 +ellps=clrk80 +units=m +no_defs "],"EPSG:3106":["EPSG:3106","+proj=tmerc +lat_0=0 +lon_0=90 +k=0.9996 +x_0=500000 +y_0=0 +a=6377276.345 +b=6356075.41314024 +towgs84=283.7,735.9,261.1,0,0,0,0 +units=m +no_defs "],"EPSG:3107":["EPSG:3107","+proj=lcc +lat_1=-28 +lat_2=-36 +lat_0=-32 +lon_0=135 +x_0=1000000 +y_0=2000000 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs "],"EPSG:3108":["EPSG:3108","+proj=tmerc +lat_0=49.5 +lon_0=-2.416666666666667 +k=0.999997 +x_0=47000 +y_0=50000 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs "],"EPSG:3109":["EPSG:3109","+proj=tmerc +lat_0=49.225 +lon_0=-2.135 +k=0.9999999000000001 +x_0=40000 +y_0=70000 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs "],"EPSG:3110":["EPSG:3110","+proj=lcc +lat_1=-36 +lat_2=-38 +lat_0=-37 +lon_0=145 +x_0=2500000 +y_0=4500000 +ellps=aust_SA +towgs84=-117.808,-51.536,137.784,0.303,0.446,0.234,-0.29 +units=m +no_defs "],"EPSG:3114":["EPSG:3114","+proj=tmerc +lat_0=4.596200416666666 +lon_0=-80.07750791666666 +k=1 +x_0=1000000 +y_0=1000000 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs "],"EPSG:3117":["EPSG:3117","+proj=tmerc +lat_0=4.596200416666666 +lon_0=-71.07750791666666 +k=1 +x_0=1000000 +y_0=1000000 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs "],"EPSG:3118":["EPSG:3118","+proj=tmerc +lat_0=4.596200416666666 +lon_0=-68.07750791666666 +k=1 +x_0=1000000 +y_0=1000000 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs "],"EPSG:3119":["EPSG:3119","+proj=tmerc +lat_0=0 +lon_0=10.5 +k=0.999 +x_0=1000000 +y_0=1000000 +ellps=intl +towgs84=-206.1,-174.7,-87.7,0,0,0,0 +units=m +no_defs "],"EPSG:3120":["EPSG:3120","+proj=sterea +lat_0=50.625 +lon_0=21.08333333333333 +k=0.9998 +x_0=4637000 +y_0=5467000 +ellps=krass +towgs84=2.3287,-147.0425,-92.0802,-0.3092483,0.32482185,0.49729934,5.68906266 +units=m +no_defs "],"EPSG:3121":["EPSG:3121","+proj=tmerc +lat_0=0 +lon_0=117 +k=0.99995 +x_0=500000 +y_0=0 +ellps=clrk66 +towgs84=-127.62,-67.24,-47.04,-3.068,4.903,1.578,-1.06 +units=m +no_defs "],"EPSG:3122":["EPSG:3122","+proj=tmerc +lat_0=0 +lon_0=119 +k=0.99995 +x_0=500000 +y_0=0 +ellps=clrk66 +towgs84=-127.62,-67.24,-47.04,-3.068,4.903,1.578,-1.06 +units=m +no_defs "],"EPSG:3123":["EPSG:3123","+proj=tmerc +lat_0=0 +lon_0=121 +k=0.99995 +x_0=500000 +y_0=0 +ellps=clrk66 +towgs84=-127.62,-67.24,-47.04,-3.068,4.903,1.578,-1.06 +units=m +no_defs "],"EPSG:3124":["EPSG:3124","+proj=tmerc +lat_0=0 +lon_0=123 +k=0.99995 +x_0=500000 +y_0=0 +ellps=clrk66 +towgs84=-127.62,-67.24,-47.04,-3.068,4.903,1.578,-1.06 +units=m +no_defs "],"EPSG:3125":["EPSG:3125","+proj=tmerc +lat_0=0 +lon_0=125 +k=0.99995 +x_0=500000 +y_0=0 +ellps=clrk66 +towgs84=-127.62,-67.24,-47.04,-3.068,4.903,1.578,-1.06 +units=m +no_defs "],"EPSG:3126":["EPSG:3126","+proj=tmerc +lat_0=0 +lon_0=19 +k=1 +x_0=500000 +y_0=0 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs "],"EPSG:3127":["EPSG:3127","+proj=tmerc +lat_0=0 +lon_0=20 +k=1 +x_0=500000 +y_0=0 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs "],"EPSG:3128":["EPSG:3128","+proj=tmerc +lat_0=0 +lon_0=21 +k=1 +x_0=500000 +y_0=0 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs "],"EPSG:3129":["EPSG:3129","+proj=tmerc +lat_0=0 +lon_0=22 +k=1 +x_0=500000 +y_0=0 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs "],"EPSG:3130":["EPSG:3130","+proj=tmerc +lat_0=0 +lon_0=23 +k=1 +x_0=500000 +y_0=0 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs "],"EPSG:3131":["EPSG:3131","+proj=tmerc +lat_0=0 +lon_0=24 +k=1 +x_0=500000 +y_0=0 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs "],"EPSG:3133":["EPSG:3133","+proj=tmerc +lat_0=0 +lon_0=26 +k=1 +x_0=500000 +y_0=0 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs "],"EPSG:3134":["EPSG:3134","+proj=tmerc +lat_0=0 +lon_0=27 +k=1 +x_0=500000 +y_0=0 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs "],"EPSG:3135":["EPSG:3135","+proj=tmerc +lat_0=0 +lon_0=28 +k=1 +x_0=500000 +y_0=0 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs "],"EPSG:3136":["EPSG:3136","+proj=tmerc +lat_0=0 +lon_0=29 +k=1 +x_0=500000 +y_0=0 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs "],"EPSG:3137":["EPSG:3137","+proj=tmerc +lat_0=0 +lon_0=30 +k=1 +x_0=500000 +y_0=0 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs "],"EPSG:3138":["EPSG:3138","+proj=tmerc +lat_0=0 +lon_0=31 +k=1 +x_0=500000 +y_0=0 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs "],"EPSG:3140":["EPSG:3140","+proj=cass +lat_0=-18 +lon_0=178 +x_0=109435.392 +y_0=141622.272 +a=6378306.3696 +b=6356571.996 +towgs84=98,390,-22,0,0,0,0 +to_meter=0.201168 +no_defs "],"EPSG:3141":["EPSG:3141","+proj=utm +zone=60 +south +ellps=intl +towgs84=265.025,384.929,-194.046,0,0,0,0 +units=m +no_defs "],"EPSG:3142":["EPSG:3142","+proj=utm +zone=1 +south +ellps=intl +towgs84=265.025,384.929,-194.046,0,0,0,0 +units=m +no_defs "],"EPSG:3143":["EPSG:3143","+proj=tmerc +lat_0=-17 +lon_0=178.75 +k=0.99985 +x_0=2000000 +y_0=4000000 +ellps=WGS72 +towgs84=0,0,4.5,0,0,0.554,0.2263 +units=m +no_defs "],"EPSG:3146":["EPSG:3146","+proj=tmerc +lat_0=0 +lon_0=18 +k=1 +x_0=6500000 +y_0=0 +ellps=krass +towgs84=23.92,-141.27,-80.9,0,0.35,0.82,-0.12 +units=m +no_defs "],"EPSG:3147":["EPSG:3147","+proj=tmerc +lat_0=0 +lon_0=18 +k=1 +x_0=500000 +y_0=0 +ellps=krass +towgs84=23.92,-141.27,-80.9,0,0.35,0.82,-0.12 +units=m +no_defs "],"EPSG:3148":["EPSG:3148","+proj=utm +zone=48 +a=6377276.345 +b=6356075.41314024 +towgs84=198,881,317,0,0,0,0 +units=m +no_defs "],"EPSG:3149":["EPSG:3149","+proj=utm +zone=49 +a=6377276.345 +b=6356075.41314024 +towgs84=198,881,317,0,0,0,0 +units=m +no_defs "],"EPSG:3150":["EPSG:3150","+proj=tmerc +lat_0=0 +lon_0=18 +k=1 +x_0=6500000 +y_0=0 +ellps=krass +towgs84=24.47,-130.89,-81.56,0,0,0.13,-0.22 +units=m +no_defs "],"EPSG:3151":["EPSG:3151","+proj=tmerc +lat_0=0 +lon_0=18 +k=1 +x_0=500000 +y_0=0 +ellps=krass +towgs84=24.47,-130.89,-81.56,0,0,0.13,-0.22 +units=m +no_defs "],"EPSG:3152":["EPSG:3152","+proj=tmerc +lat_0=0 +lon_0=18.05779 +k=0.99999425 +x_0=100178.1808 +y_0=-6500614.7836 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs "],"EPSG:4882":["EPSG:4882","+proj=geocent +ellps=GRS80 +units=m +no_defs "],"EPSG:3154":["EPSG:3154","+proj=utm +zone=7 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs "],"EPSG:3156":["EPSG:3156","+proj=utm +zone=9 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs "],"EPSG:3161":["EPSG:3161","+proj=lcc +lat_1=44.5 +lat_2=53.5 +lat_0=0 +lon_0=-85 +x_0=930000 +y_0=6430000 +datum=NAD83 +units=m +no_defs "],"EPSG:3162":["EPSG:3162","+proj=lcc +lat_1=44.5 +lat_2=53.5 +lat_0=0 +lon_0=-85 +x_0=930000 +y_0=6430000 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs "],"EPSG:3172":["EPSG:3172","+proj=utm +zone=59 +south +ellps=intl +towgs84=287.58,177.78,-135.41,0,0,0,0 +units=m +no_defs "],"EPSG:3164":["EPSG:3164","+proj=utm +zone=58 +south +ellps=WGS84 +towgs84=-56.263,16.136,-22.856,0,0,0,0 +units=m +no_defs "],"EPSG:3165":["EPSG:3165","+proj=lcc +lat_1=-22.24469175 +lat_2=-22.29469175 +lat_0=-22.26969175 +lon_0=166.44242575 +x_0=0.66 +y_0=1.02 +ellps=intl +towgs84=-10.18,-350.43,291.37,0,0,0,0 +units=m +no_defs "],"EPSG:3166":["EPSG:3166","+proj=lcc +lat_1=-22.24472222222222 +lat_2=-22.29472222222222 +lat_0=-22.26972222222222 +lon_0=166.4425 +x_0=8.313000000000001 +y_0=-2.354 +ellps=intl +towgs84=-10.18,-350.43,291.37,0,0,0,0 +units=m +no_defs "],"EPSG:3167":["EPSG:3167","+proj=omerc +lat_0=4 +lonc=102.25 +alpha=323.0257905 +k=0.99984 +x_0=40000 +y_0=0 +no_uoff +gamma=323.1301023611111 +a=6377295.664 +b=6356094.667915204 +to_meter=20.116756 +no_defs "],"EPSG:3168":["EPSG:3168","+proj=omerc +lat_0=4 +lonc=102.25 +alpha=323.0257905 +k=0.99984 +x_0=804670.24 +y_0=0 +no_uoff +gamma=323.1301023611111 +a=6377295.664 +b=6356094.667915204 +units=m +no_defs "],"EPSG:3169":["EPSG:3169","+proj=utm +zone=57 +south +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs "],"EPSG:3170":["EPSG:3170","+proj=utm +zone=58 +south +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs "],"EPSG:3171":["EPSG:3171","+proj=utm +zone=59 +south +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs "],"EPSG:3174":["EPSG:3174","+proj=aea +lat_1=42.122774 +lat_2=49.01518 +lat_0=45.568977 +lon_0=-84.455955 +x_0=1000000 +y_0=1000000 +datum=NAD83 +units=m +no_defs "],"EPSG:3175":["EPSG:3175","+proj=aea +lat_1=42.122774 +lat_2=49.01518 +lat_0=45.568977 +lon_0=-83.248627 +x_0=1000000 +y_0=1000000 +datum=NAD83 +units=m +no_defs "],"EPSG:3176":["EPSG:3176","+proj=tmerc +lat_0=0 +lon_0=106 +k=0.9996 +x_0=500000 +y_0=0 +a=6377276.345 +b=6356075.41314024 +towgs84=198,881,317,0,0,0,0 +units=m +no_defs "],"EPSG:3177":["EPSG:3177","+proj=tmerc +lat_0=0 +lon_0=17 +k=0.9965000000000001 +x_0=1000000 +y_0=0 +ellps=intl +towgs84=-208.4058,-109.8777,-2.5764,0,0,0,0 +units=m +no_defs "],"EPSG:3178":["EPSG:3178","+proj=utm +zone=18 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs "],"EPSG:3179":["EPSG:3179","+proj=utm +zone=19 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs "],"EPSG:3180":["EPSG:3180","+proj=utm +zone=20 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs "],"EPSG:3181":["EPSG:3181","+proj=utm +zone=21 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs "],"EPSG:3183":["EPSG:3183","+proj=utm +zone=23 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs "],"EPSG:3184":["EPSG:3184","+proj=utm +zone=24 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs "],"EPSG:3185":["EPSG:3185","+proj=utm +zone=25 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs "],"EPSG:3186":["EPSG:3186","+proj=utm +zone=26 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs "],"EPSG:3187":["EPSG:3187","+proj=utm +zone=27 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs "],"EPSG:3188":["EPSG:3188","+proj=utm +zone=28 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs "],"EPSG:3189":["EPSG:3189","+proj=utm +zone=29 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs "],"EPSG:3190":["EPSG:3190","+proj=tmerc +lat_0=0 +lon_0=9 +k=0.99995 +x_0=200000 +y_0=0 +ellps=intl +towgs84=-208.4058,-109.8777,-2.5764,0,0,0,0 +units=m +no_defs "],"EPSG:3191":["EPSG:3191","+proj=tmerc +lat_0=0 +lon_0=11 +k=0.99995 +x_0=200000 +y_0=0 +ellps=intl +towgs84=-208.4058,-109.8777,-2.5764,0,0,0,0 +units=m +no_defs "],"EPSG:3192":["EPSG:3192","+proj=tmerc +lat_0=0 +lon_0=13 +k=0.99995 +x_0=200000 +y_0=0 +ellps=intl +towgs84=-208.4058,-109.8777,-2.5764,0,0,0,0 +units=m +no_defs "],"EPSG:3193":["EPSG:3193","+proj=tmerc +lat_0=0 +lon_0=15 +k=0.99995 +x_0=200000 +y_0=0 +ellps=intl +towgs84=-208.4058,-109.8777,-2.5764,0,0,0,0 +units=m +no_defs "],"EPSG:3194":["EPSG:3194","+proj=tmerc +lat_0=0 +lon_0=17 +k=0.99995 +x_0=200000 +y_0=0 +ellps=intl +towgs84=-208.4058,-109.8777,-2.5764,0,0,0,0 +units=m +no_defs "],"EPSG:3195":["EPSG:3195","+proj=tmerc +lat_0=0 +lon_0=19 +k=0.99995 +x_0=200000 +y_0=0 +ellps=intl +towgs84=-208.4058,-109.8777,-2.5764,0,0,0,0 +units=m +no_defs "],"EPSG:3196":["EPSG:3196","+proj=tmerc +lat_0=0 +lon_0=21 +k=0.99995 +x_0=200000 +y_0=0 +ellps=intl +towgs84=-208.4058,-109.8777,-2.5764,0,0,0,0 +units=m +no_defs "],"EPSG:3197":["EPSG:3197","+proj=tmerc +lat_0=0 +lon_0=23 +k=0.99995 +x_0=200000 +y_0=0 +ellps=intl +towgs84=-208.4058,-109.8777,-2.5764,0,0,0,0 +units=m +no_defs "],"EPSG:3198":["EPSG:3198","+proj=tmerc +lat_0=0 +lon_0=25 +k=0.99995 +x_0=200000 +y_0=0 +ellps=intl +towgs84=-208.4058,-109.8777,-2.5764,0,0,0,0 +units=m +no_defs "],"EPSG:3199":["EPSG:3199","+proj=utm +zone=32 +ellps=intl +towgs84=-208.4058,-109.8777,-2.5764,0,0,0,0 +units=m +no_defs "],"EPSG:3200":["EPSG:3200","+proj=lcc +lat_1=32.5 +lat_0=32.5 +lon_0=45 +k_0=0.9987864078000001 +x_0=1500000 +y_0=1166200 +ellps=clrk80 +towgs84=-241.54,-163.64,396.06,0,0,0,0 +units=m +no_defs "],"EPSG:3201":["EPSG:3201","+proj=utm +zone=33 +ellps=intl +towgs84=-208.4058,-109.8777,-2.5764,0,0,0,0 +units=m +no_defs "],"EPSG:3202":["EPSG:3202","+proj=utm +zone=34 +ellps=intl +towgs84=-208.4058,-109.8777,-2.5764,0,0,0,0 +units=m +no_defs "],"EPSG:4884":["EPSG:4884","+proj=geocent +ellps=GRS80 +units=m +no_defs "],"EPSG:3203":["EPSG:3203","+proj=utm +zone=35 +ellps=intl +towgs84=-208.4058,-109.8777,-2.5764,0,0,0,0 +units=m +no_defs "],"EPSG:3204":["EPSG:3204","+proj=lcc +lat_1=-60.66666666666666 +lat_2=-63.33333333333334 +lat_0=-90 +lon_0=-66 +x_0=0 +y_0=0 +datum=WGS84 +units=m +no_defs "],"EPSG:3205":["EPSG:3205","+proj=lcc +lat_1=-60.66666666666666 +lat_2=-63.33333333333334 +lat_0=-90 +lon_0=-54 +x_0=0 +y_0=0 +datum=WGS84 +units=m +no_defs "],"EPSG:3206":["EPSG:3206","+proj=lcc +lat_1=-60.66666666666666 +lat_2=-63.33333333333334 +lat_0=-90 +lon_0=-42 +x_0=0 +y_0=0 +datum=WGS84 +units=m +no_defs "],"EPSG:3207":["EPSG:3207","+proj=lcc +lat_1=-64.66666666666667 +lat_2=-67.33333333333333 +lat_0=-90 +lon_0=-174 +x_0=0 +y_0=0 +datum=WGS84 +units=m +no_defs "],"EPSG:3208":["EPSG:3208","+proj=lcc +lat_1=-64.66666666666667 +lat_2=-67.33333333333333 +lat_0=-90 +lon_0=-66 +x_0=0 +y_0=0 +datum=WGS84 +units=m +no_defs "],"EPSG:3209":["EPSG:3209","+proj=lcc +lat_1=-64.66666666666667 +lat_2=-67.33333333333333 +lat_0=-90 +lon_0=-54 +x_0=0 +y_0=0 +datum=WGS84 +units=m +no_defs "],"EPSG:3210":["EPSG:3210","+proj=lcc +lat_1=-64.66666666666667 +lat_2=-67.33333333333333 +lat_0=-90 +lon_0=42 +x_0=0 +y_0=0 +datum=WGS84 +units=m +no_defs "],"EPSG:3211":["EPSG:3211","+proj=lcc +lat_1=-64.66666666666667 +lat_2=-67.33333333333333 +lat_0=-90 +lon_0=54 +x_0=0 +y_0=0 +datum=WGS84 +units=m +no_defs "],"EPSG:4886":["EPSG:4886","+proj=geocent +ellps=WGS84 +units=m +no_defs "],"EPSG:3212":["EPSG:3212","+proj=lcc +lat_1=-64.66666666666667 +lat_2=-67.33333333333333 +lat_0=-90 +lon_0=66 +x_0=0 +y_0=0 +datum=WGS84 +units=m +no_defs "],"EPSG:3213":["EPSG:3213","+proj=lcc +lat_1=-64.66666666666667 +lat_2=-67.33333333333333 +lat_0=-90 +lon_0=78 +x_0=0 +y_0=0 +datum=WGS84 +units=m +no_defs "],"EPSG:3214":["EPSG:3214","+proj=lcc +lat_1=-64.66666666666667 +lat_2=-67.33333333333333 +lat_0=-90 +lon_0=90 +x_0=0 +y_0=0 +datum=WGS84 +units=m +no_defs "],"EPSG:3215":["EPSG:3215","+proj=lcc +lat_1=-64.66666666666667 +lat_2=-67.33333333333333 +lat_0=-90 +lon_0=102 +x_0=0 +y_0=0 +datum=WGS84 +units=m +no_defs "],"EPSG:3216":["EPSG:3216","+proj=lcc +lat_1=-64.66666666666667 +lat_2=-67.33333333333333 +lat_0=-90 +lon_0=114 +x_0=0 +y_0=0 +datum=WGS84 +units=m +no_defs "],"EPSG:3217":["EPSG:3217","+proj=lcc +lat_1=-64.66666666666667 +lat_2=-67.33333333333333 +lat_0=-90 +lon_0=126 +x_0=0 +y_0=0 +datum=WGS84 +units=m +no_defs "],"EPSG:3218":["EPSG:3218","+proj=lcc +lat_1=-64.66666666666667 +lat_2=-67.33333333333333 +lat_0=-90 +lon_0=138 +x_0=0 +y_0=0 +datum=WGS84 +units=m +no_defs "],"EPSG:3219":["EPSG:3219","+proj=lcc +lat_1=-64.66666666666667 +lat_2=-67.33333333333333 +lat_0=-90 +lon_0=150 +x_0=0 +y_0=0 +datum=WGS84 +units=m +no_defs "],"EPSG:3220":["EPSG:3220","+proj=lcc +lat_1=-64.66666666666667 +lat_2=-67.33333333333333 +lat_0=-90 +lon_0=162 +x_0=0 +y_0=0 +datum=WGS84 +units=m +no_defs "],"EPSG:3221":["EPSG:3221","+proj=lcc +lat_1=-68.66666666666667 +lat_2=-71.33333333333333 +lat_0=-90 +lon_0=-102 +x_0=0 +y_0=0 +datum=WGS84 +units=m +no_defs "],"EPSG:3222":["EPSG:3222","+proj=lcc +lat_1=-68.66666666666667 +lat_2=-71.33333333333333 +lat_0=-90 +lon_0=-90 +x_0=0 +y_0=0 +datum=WGS84 +units=m +no_defs "],"EPSG:3223":["EPSG:3223","+proj=lcc +lat_1=-68.66666666666667 +lat_2=-71.33333333333333 +lat_0=-90 +lon_0=-78 +x_0=0 +y_0=0 +datum=WGS84 +units=m +no_defs "],"EPSG:3224":["EPSG:3224","+proj=lcc +lat_1=-68.66666666666667 +lat_2=-71.33333333333333 +lat_0=-90 +lon_0=-66 +x_0=0 +y_0=0 +datum=WGS84 +units=m +no_defs "],"EPSG:3225":["EPSG:3225","+proj=lcc +lat_1=-68.66666666666667 +lat_2=-71.33333333333333 +lat_0=-90 +lon_0=-18 +x_0=0 +y_0=0 +datum=WGS84 +units=m +no_defs "],"EPSG:3226":["EPSG:3226","+proj=lcc +lat_1=-68.66666666666667 +lat_2=-71.33333333333333 +lat_0=-90 +lon_0=-6 +x_0=0 +y_0=0 +datum=WGS84 +units=m +no_defs "],"EPSG:3227":["EPSG:3227","+proj=lcc +lat_1=-68.66666666666667 +lat_2=-71.33333333333333 +lat_0=-90 +lon_0=6 +x_0=0 +y_0=0 +datum=WGS84 +units=m +no_defs "],"EPSG:3228":["EPSG:3228","+proj=lcc +lat_1=-68.66666666666667 +lat_2=-71.33333333333333 +lat_0=-90 +lon_0=18 +x_0=0 +y_0=0 +datum=WGS84 +units=m +no_defs "],"EPSG:3229":["EPSG:3229","+proj=lcc +lat_1=-68.66666666666667 +lat_2=-71.33333333333333 +lat_0=-90 +lon_0=30 +x_0=0 +y_0=0 +datum=WGS84 +units=m +no_defs "],"EPSG:3230":["EPSG:3230","+proj=lcc +lat_1=-68.66666666666667 +lat_2=-71.33333333333333 +lat_0=-90 +lon_0=42 +x_0=0 +y_0=0 +datum=WGS84 +units=m +no_defs "],"EPSG:3231":["EPSG:3231","+proj=lcc +lat_1=-68.66666666666667 +lat_2=-71.33333333333333 +lat_0=-90 +lon_0=54 +x_0=0 +y_0=0 +datum=WGS84 +units=m +no_defs "],"EPSG:3232":["EPSG:3232","+proj=lcc +lat_1=-68.66666666666667 +lat_2=-71.33333333333333 +lat_0=-90 +lon_0=66 +x_0=0 +y_0=0 +datum=WGS84 +units=m +no_defs "],"EPSG:3233":["EPSG:3233","+proj=lcc +lat_1=-68.66666666666667 +lat_2=-71.33333333333333 +lat_0=-90 +lon_0=78 +x_0=0 +y_0=0 +datum=WGS84 +units=m +no_defs "],"EPSG:3234":["EPSG:3234","+proj=lcc +lat_1=-68.66666666666667 +lat_2=-71.33333333333333 +lat_0=-90 +lon_0=90 +x_0=0 +y_0=0 +datum=WGS84 +units=m +no_defs "],"EPSG:3235":["EPSG:3235","+proj=lcc +lat_1=-68.66666666666667 +lat_2=-71.33333333333333 +lat_0=-90 +lon_0=102 +x_0=0 +y_0=0 +datum=WGS84 +units=m +no_defs "],"EPSG:3236":["EPSG:3236","+proj=lcc +lat_1=-68.66666666666667 +lat_2=-71.33333333333333 +lat_0=-90 +lon_0=114 +x_0=0 +y_0=0 +datum=WGS84 +units=m +no_defs "],"EPSG:3237":["EPSG:3237","+proj=lcc +lat_1=-68.66666666666667 +lat_2=-71.33333333333333 +lat_0=-90 +lon_0=126 +x_0=0 +y_0=0 +datum=WGS84 +units=m +no_defs "],"EPSG:3238":["EPSG:3238","+proj=lcc +lat_1=-68.66666666666667 +lat_2=-71.33333333333333 +lat_0=-90 +lon_0=138 +x_0=0 +y_0=0 +datum=WGS84 +units=m +no_defs "],"EPSG:3239":["EPSG:3239","+proj=lcc +lat_1=-68.66666666666667 +lat_2=-71.33333333333333 +lat_0=-90 +lon_0=150 +x_0=0 +y_0=0 +datum=WGS84 +units=m +no_defs "],"EPSG:3240":["EPSG:3240","+proj=lcc +lat_1=-68.66666666666667 +lat_2=-71.33333333333333 +lat_0=-90 +lon_0=162 +x_0=0 +y_0=0 +datum=WGS84 +units=m +no_defs "],"EPSG:3241":["EPSG:3241","+proj=lcc +lat_1=-68.66666666666667 +lat_2=-71.33333333333333 +lat_0=-90 +lon_0=174 +x_0=0 +y_0=0 +datum=WGS84 +units=m +no_defs "],"EPSG:3242":["EPSG:3242","+proj=lcc +lat_1=-72.66666666666667 +lat_2=-75.33333333333333 +lat_0=-90 +lon_0=-153 +x_0=0 +y_0=0 +datum=WGS84 +units=m +no_defs "],"EPSG:3243":["EPSG:3243","+proj=lcc +lat_1=-72.66666666666667 +lat_2=-75.33333333333333 +lat_0=-90 +lon_0=-135 +x_0=0 +y_0=0 +datum=WGS84 +units=m +no_defs "],"EPSG:3244":["EPSG:3244","+proj=lcc +lat_1=-72.66666666666667 +lat_2=-75.33333333333333 +lat_0=-90 +lon_0=-117 +x_0=0 +y_0=0 +datum=WGS84 +units=m +no_defs "],"EPSG:3245":["EPSG:3245","+proj=lcc +lat_1=-72.66666666666667 +lat_2=-75.33333333333333 +lat_0=-90 +lon_0=-99 +x_0=0 +y_0=0 +datum=WGS84 +units=m +no_defs "],"EPSG:3246":["EPSG:3246","+proj=lcc +lat_1=-72.66666666666667 +lat_2=-75.33333333333333 +lat_0=-90 +lon_0=-81 +x_0=0 +y_0=0 +datum=WGS84 +units=m +no_defs "],"EPSG:3247":["EPSG:3247","+proj=lcc +lat_1=-72.66666666666667 +lat_2=-75.33333333333333 +lat_0=-90 +lon_0=-63 +x_0=0 +y_0=0 +datum=WGS84 +units=m +no_defs "],"EPSG:3248":["EPSG:3248","+proj=lcc +lat_1=-72.66666666666667 +lat_2=-75.33333333333333 +lat_0=-90 +lon_0=-27 +x_0=0 +y_0=0 +datum=WGS84 +units=m +no_defs "],"EPSG:3249":["EPSG:3249","+proj=lcc +lat_1=-72.66666666666667 +lat_2=-75.33333333333333 +lat_0=-90 +lon_0=-9 +x_0=0 +y_0=0 +datum=WGS84 +units=m +no_defs "],"EPSG:3250":["EPSG:3250","+proj=lcc +lat_1=-72.66666666666667 +lat_2=-75.33333333333333 +lat_0=-90 +lon_0=9 +x_0=0 +y_0=0 +datum=WGS84 +units=m +no_defs "],"EPSG:3251":["EPSG:3251","+proj=lcc +lat_1=-72.66666666666667 +lat_2=-75.33333333333333 +lat_0=-90 +lon_0=27 +x_0=0 +y_0=0 +datum=WGS84 +units=m +no_defs "],"EPSG:3252":["EPSG:3252","+proj=lcc +lat_1=-72.66666666666667 +lat_2=-75.33333333333333 +lat_0=-90 +lon_0=45 +x_0=0 +y_0=0 +datum=WGS84 +units=m +no_defs "],"EPSG:3253":["EPSG:3253","+proj=lcc +lat_1=-72.66666666666667 +lat_2=-75.33333333333333 +lat_0=-90 +lon_0=63 +x_0=0 +y_0=0 +datum=WGS84 +units=m +no_defs "],"EPSG:3254":["EPSG:3254","+proj=lcc +lat_1=-72.66666666666667 +lat_2=-75.33333333333333 +lat_0=-90 +lon_0=81 +x_0=0 +y_0=0 +datum=WGS84 +units=m +no_defs "],"EPSG:3255":["EPSG:3255","+proj=lcc +lat_1=-72.66666666666667 +lat_2=-75.33333333333333 +lat_0=-90 +lon_0=99 +x_0=0 +y_0=0 +datum=WGS84 +units=m +no_defs "],"EPSG:3256":["EPSG:3256","+proj=lcc +lat_1=-72.66666666666667 +lat_2=-75.33333333333333 +lat_0=-90 +lon_0=117 +x_0=0 +y_0=0 +datum=WGS84 +units=m +no_defs "],"EPSG:3257":["EPSG:3257","+proj=lcc +lat_1=-72.66666666666667 +lat_2=-75.33333333333333 +lat_0=-90 +lon_0=135 +x_0=0 +y_0=0 +datum=WGS84 +units=m +no_defs "],"EPSG:3258":["EPSG:3258","+proj=lcc +lat_1=-72.66666666666667 +lat_2=-75.33333333333333 +lat_0=-90 +lon_0=153 +x_0=0 +y_0=0 +datum=WGS84 +units=m +no_defs "],"EPSG:3259":["EPSG:3259","+proj=lcc +lat_1=-72.66666666666667 +lat_2=-75.33333333333333 +lat_0=-90 +lon_0=171 +x_0=0 +y_0=0 +datum=WGS84 +units=m +no_defs "],"EPSG:3260":["EPSG:3260","+proj=lcc +lat_1=-76.66666666666667 +lat_2=-79.33333333333333 +lat_0=-90 +lon_0=-168 +x_0=0 +y_0=0 +datum=WGS84 +units=m +no_defs "],"EPSG:3261":["EPSG:3261","+proj=lcc +lat_1=-76.66666666666667 +lat_2=-79.33333333333333 +lat_0=-90 +lon_0=-144 +x_0=0 +y_0=0 +datum=WGS84 +units=m +no_defs "],"EPSG:3262":["EPSG:3262","+proj=lcc +lat_1=-76.66666666666667 +lat_2=-79.33333333333333 +lat_0=-90 +lon_0=-120 +x_0=0 +y_0=0 +datum=WGS84 +units=m +no_defs "],"EPSG:3263":["EPSG:3263","+proj=lcc +lat_1=-76.66666666666667 +lat_2=-79.33333333333333 +lat_0=-90 +lon_0=-96 +x_0=0 +y_0=0 +datum=WGS84 +units=m +no_defs "],"EPSG:3264":["EPSG:3264","+proj=lcc +lat_1=-76.66666666666667 +lat_2=-79.33333333333333 +lat_0=-90 +lon_0=-72 +x_0=0 +y_0=0 +datum=WGS84 +units=m +no_defs "],"EPSG:3265":["EPSG:3265","+proj=lcc +lat_1=-76.66666666666667 +lat_2=-79.33333333333333 +lat_0=-90 +lon_0=-48 +x_0=0 +y_0=0 +datum=WGS84 +units=m +no_defs "],"EPSG:3266":["EPSG:3266","+proj=lcc +lat_1=-76.66666666666667 +lat_2=-79.33333333333333 +lat_0=-90 +lon_0=-24 +x_0=0 +y_0=0 +datum=WGS84 +units=m +no_defs "],"EPSG:3267":["EPSG:3267","+proj=lcc +lat_1=-76.66666666666667 +lat_2=-79.33333333333333 +lat_0=-90 +lon_0=0 +x_0=0 +y_0=0 +datum=WGS84 +units=m +no_defs "],"EPSG:3268":["EPSG:3268","+proj=lcc +lat_1=-76.66666666666667 +lat_2=-79.33333333333333 +lat_0=-90 +lon_0=24 +x_0=0 +y_0=0 +datum=WGS84 +units=m +no_defs "],"EPSG:3269":["EPSG:3269","+proj=lcc +lat_1=-76.66666666666667 +lat_2=-79.33333333333333 +lat_0=-90 +lon_0=48 +x_0=0 +y_0=0 +datum=WGS84 +units=m +no_defs "],"EPSG:3270":["EPSG:3270","+proj=lcc +lat_1=-76.66666666666667 +lat_2=-79.33333333333333 +lat_0=-90 +lon_0=72 +x_0=0 +y_0=0 +datum=WGS84 +units=m +no_defs "],"EPSG:3271":["EPSG:3271","+proj=lcc +lat_1=-76.66666666666667 +lat_2=-79.33333333333333 +lat_0=-90 +lon_0=96 +x_0=0 +y_0=0 +datum=WGS84 +units=m +no_defs "],"EPSG:3272":["EPSG:3272","+proj=lcc +lat_1=-76.66666666666667 +lat_2=-79.33333333333333 +lat_0=-90 +lon_0=120 +x_0=0 +y_0=0 +datum=WGS84 +units=m +no_defs "],"EPSG:3273":["EPSG:3273","+proj=lcc +lat_1=-76.66666666666667 +lat_2=-79.33333333333333 +lat_0=-90 +lon_0=144 +x_0=0 +y_0=0 +datum=WGS84 +units=m +no_defs "],"EPSG:3274":["EPSG:3274","+proj=lcc +lat_1=-76.66666666666667 +lat_2=-79.33333333333333 +lat_0=-90 +lon_0=168 +x_0=0 +y_0=0 +datum=WGS84 +units=m +no_defs "],"EPSG:3275":["EPSG:3275","+proj=stere +lat_0=-90 +lat_ts=-80.23861111111111 +lon_0=-165 +k=1 +x_0=0 +y_0=0 +datum=WGS84 +units=m +no_defs "],"EPSG:3276":["EPSG:3276","+proj=stere +lat_0=-90 +lat_ts=-80.23861111111111 +lon_0=-135 +k=1 +x_0=0 +y_0=0 +datum=WGS84 +units=m +no_defs "],"EPSG:3277":["EPSG:3277","+proj=stere +lat_0=-90 +lat_ts=-80.23861111111111 +lon_0=-105 +k=1 +x_0=0 +y_0=0 +datum=WGS84 +units=m +no_defs "],"EPSG:3278":["EPSG:3278","+proj=stere +lat_0=-90 +lat_ts=-80.23861111111111 +lon_0=-75 +k=1 +x_0=0 +y_0=0 +datum=WGS84 +units=m +no_defs "],"EPSG:3279":["EPSG:3279","+proj=stere +lat_0=-90 +lat_ts=-80.23861111111111 +lon_0=-45 +k=1 +x_0=0 +y_0=0 +datum=WGS84 +units=m +no_defs "],"EPSG:3280":["EPSG:3280","+proj=stere +lat_0=-90 +lat_ts=-80.23861111111111 +lon_0=-15 +k=1 +x_0=0 +y_0=0 +datum=WGS84 +units=m +no_defs "],"EPSG:3281":["EPSG:3281","+proj=stere +lat_0=-90 +lat_ts=-80.23861111111111 +lon_0=15 +k=1 +x_0=0 +y_0=0 +datum=WGS84 +units=m +no_defs "],"EPSG:3282":["EPSG:3282","+proj=stere +lat_0=-90 +lat_ts=-80.23861111111111 +lon_0=45 +k=1 +x_0=0 +y_0=0 +datum=WGS84 +units=m +no_defs "],"EPSG:3283":["EPSG:3283","+proj=stere +lat_0=-90 +lat_ts=-80.23861111111111 +lon_0=75 +k=1 +x_0=0 +y_0=0 +datum=WGS84 +units=m +no_defs "],"EPSG:3284":["EPSG:3284","+proj=stere +lat_0=-90 +lat_ts=-80.23861111111111 +lon_0=105 +k=1 +x_0=0 +y_0=0 +datum=WGS84 +units=m +no_defs "],"EPSG:3285":["EPSG:3285","+proj=stere +lat_0=-90 +lat_ts=-80.23861111111111 +lon_0=135 +k=1 +x_0=0 +y_0=0 +datum=WGS84 +units=m +no_defs "],"EPSG:3286":["EPSG:3286","+proj=stere +lat_0=-90 +lat_ts=-80.23861111111111 +lon_0=165 +k=1 +x_0=0 +y_0=0 +datum=WGS84 +units=m +no_defs "],"EPSG:3287":["EPSG:3287","+proj=stere +lat_0=-90 +lat_ts=-80.23861111111111 +lon_0=-150 +k=1 +x_0=0 +y_0=0 +datum=WGS84 +units=m +no_defs "],"EPSG:3288":["EPSG:3288","+proj=stere +lat_0=-90 +lat_ts=-80.23861111111111 +lon_0=-90 +k=1 +x_0=0 +y_0=0 +datum=WGS84 +units=m +no_defs "],"EPSG:3289":["EPSG:3289","+proj=stere +lat_0=-90 +lat_ts=-80.23861111111111 +lon_0=-30 +k=1 +x_0=0 +y_0=0 +datum=WGS84 +units=m +no_defs "],"EPSG:3291":["EPSG:3291","+proj=stere +lat_0=-90 +lat_ts=-80.23861111111111 +lon_0=90 +k=1 +x_0=0 +y_0=0 +datum=WGS84 +units=m +no_defs "],"EPSG:3292":["EPSG:3292","+proj=stere +lat_0=-90 +lat_ts=-80.23861111111111 +lon_0=150 +k=1 +x_0=0 +y_0=0 +datum=WGS84 +units=m +no_defs "],"EPSG:3293":["EPSG:3293","+proj=stere +lat_0=-90 +lat_ts=-80.23861111111111 +lon_0=0 +k=1 +x_0=0 +y_0=0 +datum=WGS84 +units=m +no_defs "],"EPSG:3294":["EPSG:3294","+proj=lcc +lat_1=-76.66666666666667 +lat_2=-79.33333333333333 +lat_0=-78 +lon_0=162 +x_0=0 +y_0=0 +datum=WGS84 +units=m +no_defs "],"EPSG:3296":["EPSG:3296","+proj=utm +zone=5 +south +ellps=GRS80 +towgs84=0.072,-0.507,-0.245,-0.0183,0.0003,-0.007,-0.0093 +units=m +no_defs "],"EPSG:3297":["EPSG:3297","+proj=utm +zone=6 +south +ellps=GRS80 +towgs84=0.072,-0.507,-0.245,-0.0183,0.0003,-0.007,-0.0093 +units=m +no_defs "],"EPSG:3298":["EPSG:3298","+proj=utm +zone=7 +south +ellps=GRS80 +towgs84=0.072,-0.507,-0.245,-0.0183,0.0003,-0.007,-0.0093 +units=m +no_defs "],"EPSG:3299":["EPSG:3299","+proj=utm +zone=8 +south +ellps=GRS80 +towgs84=0.072,-0.507,-0.245,-0.0183,0.0003,-0.007,-0.0093 +units=m +no_defs "],"EPSG:3302":["EPSG:3302","+proj=utm +zone=7 +south +ellps=intl +towgs84=410.721,55.049,80.746,2.5779,2.3514,0.6664,17.3311 +units=m +no_defs "],"EPSG:3303":["EPSG:3303","+proj=utm +zone=7 +south +ellps=intl +towgs84=347.103,1078.125,2623.922,-33.8875,70.6773,-9.3943,186.074 +units=m +no_defs "],"EPSG:3304":["EPSG:3304","+proj=utm +zone=6 +south +ellps=intl +towgs84=221.525,152.948,176.768,-2.3847,-1.3896,-0.877,11.4741 +units=m +no_defs "],"EPSG:3305":["EPSG:3305","+proj=utm +zone=6 +south +ellps=intl +towgs84=215.525,149.593,176.229,-3.2624,-1.692,-1.1571,10.4773 +units=m +no_defs "],"EPSG:3306":["EPSG:3306","+proj=utm +zone=5 +south +ellps=intl +towgs84=217.037,86.959,23.956,0,0,0,0 +units=m +no_defs "],"EPSG:3307":["EPSG:3307","+proj=utm +zone=39 +ellps=WGS84 +towgs84=0,-0.15,0.68,0,0,0,0 +units=m +no_defs "],"EPSG:3308":["EPSG:3308","+proj=lcc +lat_1=-30.75 +lat_2=-35.75 +lat_0=-33.25 +lon_0=147 +x_0=9300000 +y_0=4500000 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs "],"EPSG:3309":["EPSG:3309","+proj=aea +lat_1=34 +lat_2=40.5 +lat_0=0 +lon_0=-120 +x_0=0 +y_0=-4000000 +datum=NAD27 +units=m +no_defs "],"EPSG:3311":["EPSG:3311","+proj=aea +lat_1=34 +lat_2=40.5 +lat_0=0 +lon_0=-120 +x_0=0 +y_0=-4000000 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs "],"EPSG:3312":["EPSG:3312","+proj=utm +zone=21 +ellps=intl +towgs84=-186,230,110,0,0,0,0 +units=m +no_defs "],"EPSG:3313":["EPSG:3313","+proj=utm +zone=21 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs "],"EPSG:4571":["EPSG:4571","+proj=tmerc +lat_0=0 +lon_0=93 +k=1 +x_0=16500000 +y_0=0 +ellps=krass +units=m +no_defs "],"EPSG:3314":["EPSG:3314","+proj=lcc +lat_1=-6.5 +lat_2=-11.5 +lat_0=0 +lon_0=26 +x_0=0 +y_0=0 +ellps=clrk66 +towgs84=-103.746,-9.614,-255.95,0,0,0,0 +units=m +no_defs "],"EPSG:3315":["EPSG:3315","+proj=tmerc +lat_0=-9 +lon_0=26 +k=0.9998 +x_0=0 +y_0=0 +ellps=clrk66 +towgs84=-103.746,-9.614,-255.95,0,0,0,0 +units=m +no_defs "],"EPSG:3316":["EPSG:3316","+proj=tmerc +lat_0=0 +lon_0=22 +k=0.9999 +x_0=500000 +y_0=10000000 +ellps=clrk80 +units=m +no_defs "],"EPSG:3317":["EPSG:3317","+proj=tmerc +lat_0=0 +lon_0=24 +k=0.9999 +x_0=500000 +y_0=10000000 +ellps=clrk80 +units=m +no_defs "],"EPSG:3318":["EPSG:3318","+proj=tmerc +lat_0=0 +lon_0=12 +k=0.9999 +x_0=500000 +y_0=10000000 +ellps=clrk80 +units=m +no_defs "],"EPSG:3319":["EPSG:3319","+proj=tmerc +lat_0=0 +lon_0=14 +k=0.9999 +x_0=500000 +y_0=10000000 +ellps=clrk80 +units=m +no_defs "],"EPSG:3320":["EPSG:3320","+proj=tmerc +lat_0=0 +lon_0=16 +k=0.9999 +x_0=500000 +y_0=10000000 +ellps=clrk80 +units=m +no_defs "],"EPSG:3321":["EPSG:3321","+proj=tmerc +lat_0=0 +lon_0=18 +k=0.9999 +x_0=500000 +y_0=10000000 +ellps=clrk80 +units=m +no_defs "],"EPSG:3322":["EPSG:3322","+proj=tmerc +lat_0=0 +lon_0=20 +k=0.9999 +x_0=500000 +y_0=10000000 +ellps=clrk80 +units=m +no_defs "],"EPSG:4572":["EPSG:4572","+proj=tmerc +lat_0=0 +lon_0=99 +k=1 +x_0=17500000 +y_0=0 +ellps=krass +units=m +no_defs "],"EPSG:3323":["EPSG:3323","+proj=tmerc +lat_0=0 +lon_0=22 +k=0.9999 +x_0=500000 +y_0=10000000 +ellps=clrk80 +units=m +no_defs "],"EPSG:3324":["EPSG:3324","+proj=tmerc +lat_0=0 +lon_0=24 +k=0.9999 +x_0=500000 +y_0=10000000 +ellps=clrk80 +units=m +no_defs "],"EPSG:3325":["EPSG:3325","+proj=tmerc +lat_0=0 +lon_0=26 +k=0.9999 +x_0=500000 +y_0=10000000 +ellps=clrk80 +units=m +no_defs "],"EPSG:3326":["EPSG:3326","+proj=tmerc +lat_0=0 +lon_0=28 +k=0.9999 +x_0=500000 +y_0=10000000 +ellps=clrk80 +units=m +no_defs "],"EPSG:3327":["EPSG:3327","+proj=tmerc +lat_0=0 +lon_0=30 +k=0.9999 +x_0=500000 +y_0=10000000 +ellps=clrk80 +units=m +no_defs "],"EPSG:3328":["EPSG:3328","+proj=sterea +lat_0=52.16666666666666 +lon_0=19.16666666666667 +k=0.999714 +x_0=500000 +y_0=500000 +ellps=krass +towgs84=2.3287,-147.0425,-92.0802,-0.3092483,0.32482185,0.49729934,5.68906266 +units=m +no_defs "],"EPSG:3329":["EPSG:3329","+proj=tmerc +lat_0=0 +lon_0=15 +k=1 +x_0=5500000 +y_0=0 +ellps=krass +towgs84=2.3287,-147.0425,-92.0802,-0.3092483,0.32482185,0.49729934,5.68906266 +units=m +no_defs "],"EPSG:3330":["EPSG:3330","+proj=tmerc +lat_0=0 +lon_0=18 +k=1 +x_0=6500000 +y_0=0 +ellps=krass +towgs84=2.3287,-147.0425,-92.0802,-0.3092483,0.32482185,0.49729934,5.68906266 +units=m +no_defs "],"EPSG:3332":["EPSG:3332","+proj=tmerc +lat_0=0 +lon_0=24 +k=1 +x_0=8500000 +y_0=0 +ellps=krass +towgs84=2.3287,-147.0425,-92.0802,-0.3092483,0.32482185,0.49729934,5.68906266 +units=m +no_defs "],"EPSG:3333":["EPSG:3333","+proj=tmerc +lat_0=0 +lon_0=15 +k=1 +x_0=3500000 +y_0=0 +ellps=krass +towgs84=2.3287,-147.0425,-92.0802,-0.3092483,0.32482185,0.49729934,5.68906266 +units=m +no_defs "],"EPSG:3334":["EPSG:3334","+proj=tmerc +lat_0=0 +lon_0=21 +k=1 +x_0=4500000 +y_0=0 +ellps=krass +towgs84=2.3287,-147.0425,-92.0802,-0.3092483,0.32482185,0.49729934,5.68906266 +units=m +no_defs "],"EPSG:3335":["EPSG:3335","+proj=tmerc +lat_0=0 +lon_0=27 +k=1 +x_0=5500000 +y_0=0 +ellps=krass +towgs84=2.3287,-147.0425,-92.0802,-0.3092483,0.32482185,0.49729934,5.68906266 +units=m +no_defs "],"EPSG:3336":["EPSG:3336","+proj=utm +zone=42 +south +ellps=intl +towgs84=145,-187,103,0,0,0,0 +units=m +no_defs "],"EPSG:3337":["EPSG:3337","+proj=lcc +lat_1=-20.19506944444445 +lat_0=-20.19506944444445 +lon_0=57.52182777777778 +k_0=1 +x_0=1000000 +y_0=1000000 +ellps=clrk80 +towgs84=-770.1,158.4,-498.2,0,0,0,0 +units=m +no_defs "],"EPSG:3339":["EPSG:3339","+proj=tmerc +lat_0=0 +lon_0=12 +k=0.9999 +x_0=500000 +y_0=10000000 +ellps=clrk80 +towgs84=-79.9,-158,-168.9,0,0,0,0 +units=m +no_defs "],"EPSG:3340":["EPSG:3340","+proj=tmerc +lat_0=0 +lon_0=14 +k=0.9999 +x_0=500000 +y_0=10000000 +ellps=clrk80 +towgs84=-79.9,-158,-168.9,0,0,0,0 +units=m +no_defs "],"EPSG:3341":["EPSG:3341","+proj=tmerc +lat_0=0 +lon_0=16 +k=0.9999 +x_0=500000 +y_0=10000000 +ellps=clrk80 +towgs84=-79.9,-158,-168.9,0,0,0,0 +units=m +no_defs "],"EPSG:3342":["EPSG:3342","+proj=utm +zone=33 +south +ellps=clrk80 +towgs84=-79.9,-158,-168.9,0,0,0,0 +units=m +no_defs "],"EPSG:3343":["EPSG:3343","+proj=utm +zone=28 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs "],"EPSG:3344":["EPSG:3344","+proj=utm +zone=29 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs "],"EPSG:3345":["EPSG:3345","+proj=utm +zone=30 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs "],"EPSG:3348":["EPSG:3348","+proj=lcc +lat_1=49 +lat_2=77 +lat_0=63.390675 +lon_0=-91.86666666666666 +x_0=6200000 +y_0=3000000 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs "],"EPSG:3350":["EPSG:3350","+proj=tmerc +lat_0=0.1 +lon_0=21.95 +k=1 +x_0=250000 +y_0=0 +ellps=krass +towgs84=23.92,-141.27,-80.9,0,0.35,0.82,-0.12 +units=m +no_defs "],"EPSG:3351":["EPSG:3351","+proj=tmerc +lat_0=0.1 +lon_0=24.95 +k=1 +x_0=1250000 +y_0=0 +ellps=krass +towgs84=23.92,-141.27,-80.9,0,0.35,0.82,-0.12 +units=m +no_defs "],"EPSG:3352":["EPSG:3352","+proj=tmerc +lat_0=0.1 +lon_0=27.95 +k=1 +x_0=2250000 +y_0=0 +ellps=krass +towgs84=23.92,-141.27,-80.9,0,0.35,0.82,-0.12 +units=m +no_defs "],"EPSG:3353":["EPSG:3353","+proj=utm +zone=32 +south +ellps=intl +units=m +no_defs "],"EPSG:3354":["EPSG:3354","+proj=utm +zone=32 +south +ellps=intl +units=m +no_defs "],"EPSG:3355":["EPSG:3355","+proj=tmerc +lat_0=30 +lon_0=31 +k=1 +x_0=615000 +y_0=810000 +ellps=helmert +towgs84=-146.21,112.63,4.05,0,0,0,0 +units=m +no_defs "],"EPSG:3356":["EPSG:3356","+proj=utm +zone=17 +ellps=clrk66 +towgs84=-179.483,-69.379,-27.584,-7.862,8.163,6.042,-13.925 +units=m +no_defs "],"EPSG:3357":["EPSG:3357","+proj=utm +zone=17 +ellps=clrk66 +towgs84=8.853,-52.644,180.304,-0.393,-2.323,2.96,-24.081 +units=m +no_defs "],"EPSG:3358":["EPSG:3358","+proj=lcc +lat_1=36.16666666666666 +lat_2=34.33333333333334 +lat_0=33.75 +lon_0=-79 +x_0=609601.22 +y_0=0 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs "],"EPSG:3359":["EPSG:3359","+proj=lcc +lat_1=36.16666666666666 +lat_2=34.33333333333334 +lat_0=33.75 +lon_0=-79 +x_0=609601.2192024385 +y_0=0 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=ft +no_defs "],"EPSG:4888":["EPSG:4888","+proj=geocent +ellps=GRS80 +units=m +no_defs "],"EPSG:3360":["EPSG:3360","+proj=lcc +lat_1=34.83333333333334 +lat_2=32.5 +lat_0=31.83333333333333 +lon_0=-81 +x_0=609600 +y_0=0 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs "],"EPSG:3361":["EPSG:3361","+proj=lcc +lat_1=34.83333333333334 +lat_2=32.5 +lat_0=31.83333333333333 +lon_0=-81 +x_0=609600 +y_0=0 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=ft +no_defs "],"EPSG:3362":["EPSG:3362","+proj=lcc +lat_1=41.95 +lat_2=40.88333333333333 +lat_0=40.16666666666666 +lon_0=-77.75 +x_0=600000 +y_0=0 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs "],"EPSG:3363":["EPSG:3363","+proj=lcc +lat_1=41.95 +lat_2=40.88333333333333 +lat_0=40.16666666666666 +lon_0=-77.75 +x_0=600000 +y_0=0 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=us-ft +no_defs "],"EPSG:3364":["EPSG:3364","+proj=lcc +lat_1=40.96666666666667 +lat_2=39.93333333333333 +lat_0=39.33333333333334 +lon_0=-77.75 +x_0=600000 +y_0=0 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs "],"EPSG:3365":["EPSG:3365","+proj=lcc +lat_1=40.96666666666667 +lat_2=39.93333333333333 +lat_0=39.33333333333334 +lon_0=-77.75 +x_0=600000 +y_0=0 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=us-ft +no_defs "],"EPSG:3366":["EPSG:3366","+proj=cass +lat_0=22.31213333333334 +lon_0=114.1785555555556 +x_0=40243.57775604237 +y_0=19069.93351512578 +a=6378293.645208759 +b=6356617.987679838 +units=m +no_defs "],"EPSG:3367":["EPSG:3367","+proj=utm +zone=28 +ellps=clrk80 +units=m +no_defs "],"EPSG:3368":["EPSG:3368","+proj=utm +zone=29 +ellps=clrk80 +units=m +no_defs "],"EPSG:3370":["EPSG:3370","+proj=utm +zone=59 +datum=NAD27 +units=m +no_defs "],"EPSG:3371":["EPSG:3371","+proj=utm +zone=60 +datum=NAD27 +units=m +no_defs "],"EPSG:3372":["EPSG:3372","+proj=utm +zone=59 +datum=NAD83 +units=m +no_defs "],"EPSG:3373":["EPSG:3373","+proj=utm +zone=60 +datum=NAD83 +units=m +no_defs "],"EPSG:3374":["EPSG:3374","+proj=utm +zone=29 +ellps=intl +units=m +no_defs "],"EPSG:3376":["EPSG:3376","+proj=omerc +lat_0=4 +lonc=115 +alpha=53.31580995 +k=0.99984 +x_0=0 +y_0=0 +no_uoff +gamma=53.13010236111111 +ellps=GRS80 +units=m +no_defs "],"EPSG:3377":["EPSG:3377","+proj=cass +lat_0=2.121679744444445 +lon_0=103.4279362361111 +x_0=-14810.562 +y_0=8758.32 +ellps=GRS80 +units=m +no_defs "],"EPSG:3378":["EPSG:3378","+proj=cass +lat_0=2.682347636111111 +lon_0=101.9749050416667 +x_0=3673.785 +y_0=-4240.573 +ellps=GRS80 +units=m +no_defs "],"EPSG:3379":["EPSG:3379","+proj=cass +lat_0=3.769388088888889 +lon_0=102.3682989833333 +x_0=-7368.228 +y_0=6485.858 +ellps=GRS80 +units=m +no_defs "],"EPSG:3380":["EPSG:3380","+proj=cass +lat_0=3.68464905 +lon_0=101.3891079138889 +x_0=-34836.161 +y_0=56464.049 +ellps=GRS80 +units=m +no_defs "],"EPSG:3381":["EPSG:3381","+proj=cass +lat_0=4.9762852 +lon_0=103.070275625 +x_0=19594.245 +y_0=3371.895 +ellps=GRS80 +units=m +no_defs "],"EPSG:3382":["EPSG:3382","+proj=cass +lat_0=5.421517541666667 +lon_0=100.3443769638889 +x_0=-23.414 +y_0=62.283 +ellps=GRS80 +units=m +no_defs "],"EPSG:3383":["EPSG:3383","+proj=cass +lat_0=5.964672713888889 +lon_0=100.6363711111111 +x_0=0 +y_0=0 +ellps=GRS80 +units=m +no_defs "],"EPSG:3384":["EPSG:3384","+proj=cass +lat_0=4.859063022222222 +lon_0=100.8154105861111 +x_0=-1.769 +y_0=133454.779 +ellps=GRS80 +units=m +no_defs "],"EPSG:3385":["EPSG:3385","+proj=cass +lat_0=5.972543658333334 +lon_0=102.2952416694444 +x_0=13227.851 +y_0=8739.894 +ellps=GRS80 +units=m +no_defs "],"EPSG:3386":["EPSG:3386","+proj=tmerc +lat_0=0 +lon_0=18 +k=1 +x_0=500000 +y_0=0 +ellps=intl +towgs84=-96.062,-82.428,-121.753,4.801,0.345,-1.376,1.496 +units=m +no_defs "],"EPSG:3387":["EPSG:3387","+proj=tmerc +lat_0=0 +lon_0=33 +k=1 +x_0=5500000 +y_0=0 +ellps=intl +towgs84=-96.062,-82.428,-121.753,4.801,0.345,-1.376,1.496 +units=m +no_defs "],"EPSG:3388":["EPSG:3388","+proj=merc +lon_0=51 +lat_ts=42 +x_0=0 +y_0=0 +ellps=krass +towgs84=23.92,-141.27,-80.9,0,0.35,0.82,-0.12 +units=m +no_defs "],"EPSG:3389":["EPSG:3389","+proj=tmerc +lat_0=0 +lon_0=180 +k=1 +x_0=60500000 +y_0=0 +ellps=krass +towgs84=23.92,-141.27,-80.9,0,0.35,0.82,-0.12 +units=m +no_defs "],"EPSG:3390":["EPSG:3390","+proj=tmerc +lat_0=0 +lon_0=180 +k=1 +x_0=60500000 +y_0=0 +ellps=krass +towgs84=24.47,-130.89,-81.56,0,0,0.13,-0.22 +units=m +no_defs "],"EPSG:3391":["EPSG:3391","+proj=utm +zone=37 +ellps=clrk80 +towgs84=70.995,-335.916,262.898,0,0,0,0 +units=m +no_defs "],"EPSG:3392":["EPSG:3392","+proj=utm +zone=38 +ellps=clrk80 +towgs84=70.995,-335.916,262.898,0,0,0,0 +units=m +no_defs "],"EPSG:3393":["EPSG:3393","+proj=utm +zone=39 +ellps=clrk80 +towgs84=70.995,-335.916,262.898,0,0,0,0 +units=m +no_defs "],"EPSG:3394":["EPSG:3394","+proj=lcc +lat_1=32.5 +lat_0=32.5 +lon_0=45 +k_0=0.9987864078000001 +x_0=1500000 +y_0=1166200 +ellps=clrk80 +towgs84=-242.2,-144.9,370.3,0,0,0,0 +units=m +no_defs "],"EPSG:3396":["EPSG:3396","+proj=tmerc +lat_0=0 +lon_0=9 +k=1 +x_0=3500000 +y_0=0 +ellps=bessel +units=m +no_defs "],"EPSG:3398":["EPSG:3398","+proj=tmerc +lat_0=0 +lon_0=12 +k=1 +x_0=4500000 +y_0=0 +ellps=bessel +units=m +no_defs "],"EPSG:3399":["EPSG:3399","+proj=tmerc +lat_0=0 +lon_0=15 +k=1 +x_0=5500000 +y_0=0 +ellps=bessel +units=m +no_defs "],"EPSG:4890":["EPSG:4890","+proj=geocent +ellps=WGS66 +units=m +no_defs "],"EPSG:3400":["EPSG:3400","+proj=tmerc +lat_0=0 +lon_0=-115 +k=0.9992 +x_0=500000 +y_0=0 +datum=NAD83 +units=m +no_defs "],"EPSG:3401":["EPSG:3401","+proj=tmerc +lat_0=0 +lon_0=-115 +k=0.9992 +x_0=0 +y_0=0 +datum=NAD83 +units=m +no_defs "],"EPSG:3402":["EPSG:3402","+proj=tmerc +lat_0=0 +lon_0=-115 +k=0.9992 +x_0=500000 +y_0=0 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs "],"EPSG:3404":["EPSG:3404","+proj=lcc +lat_1=36.16666666666666 +lat_2=34.33333333333334 +lat_0=33.75 +lon_0=-79 +x_0=609601.2192024384 +y_0=0 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=us-ft +no_defs "],"EPSG:3405":["EPSG:3405","+proj=utm +zone=48 +ellps=WGS84 +towgs84=-191.90441429,-39.30318279,-111.45032835,0.00928836,-0.01975479,0.00427372,0.252906278 +units=m +no_defs "],"EPSG:3406":["EPSG:3406","+proj=utm +zone=49 +ellps=WGS84 +towgs84=-191.90441429,-39.30318279,-111.45032835,0.00928836,-0.01975479,0.00427372,0.252906278 +units=m +no_defs "],"EPSG:3407":["EPSG:3407","+proj=cass +lat_0=22.31213333333334 +lon_0=114.1785555555556 +x_0=40243.57775604237 +y_0=19069.93351512578 +a=6378293.645208759 +b=6356617.987679838 +to_meter=0.3047972654 +no_defs "],"EPSG:3408":["EPSG:3408","+proj=laea +lat_0=90 +lon_0=0 +x_0=0 +y_0=0 +a=6371228 +b=6371228 +units=m +no_defs "],"EPSG:3409":["EPSG:3409","+proj=laea +lat_0=-90 +lon_0=0 +x_0=0 +y_0=0 +a=6371228 +b=6371228 +units=m +no_defs "],"EPSG:3410":["EPSG:3410","+proj=cea +lon_0=0 +lat_ts=30 +x_0=0 +y_0=0 +a=6371228 +b=6371228 +units=m +no_defs "],"EPSG:3411":["EPSG:3411","+proj=stere +lat_0=90 +lat_ts=70 +lon_0=-45 +k=1 +x_0=0 +y_0=0 +a=6378273 +b=6356889.449 +units=m +no_defs "],"EPSG:3412":["EPSG:3412","+proj=stere +lat_0=-90 +lat_ts=-70 +lon_0=0 +k=1 +x_0=0 +y_0=0 +a=6378273 +b=6356889.449 +units=m +no_defs "],"EPSG:3414":["EPSG:3414","+proj=tmerc +lat_0=1.366666666666667 +lon_0=103.8333333333333 +k=1 +x_0=28001.642 +y_0=38744.572 +ellps=WGS84 +units=m +no_defs "],"EPSG:3415":["EPSG:3415","+proj=lcc +lat_1=18 +lat_2=24 +lat_0=21 +lon_0=114 +x_0=500000 +y_0=500000 +ellps=WGS72 +towgs84=0,0,1.9,0,0,0.814,-0.38 +units=m +no_defs "],"EPSG:3416":["EPSG:3416","+proj=lcc +lat_1=49 +lat_2=46 +lat_0=47.5 +lon_0=13.33333333333333 +x_0=400000 +y_0=400000 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs "],"EPSG:3417":["EPSG:3417","+proj=lcc +lat_1=43.26666666666667 +lat_2=42.06666666666667 +lat_0=41.5 +lon_0=-93.5 +x_0=1500000 +y_0=999999.9999898402 +datum=NAD83 +units=us-ft +no_defs "],"EPSG:4892":["EPSG:4892","+proj=geocent +ellps=GRS80 +units=m +no_defs "],"EPSG:3418":["EPSG:3418","+proj=lcc +lat_1=41.78333333333333 +lat_2=40.61666666666667 +lat_0=40 +lon_0=-93.5 +x_0=500000.00001016 +y_0=0 +datum=NAD83 +units=us-ft +no_defs "],"EPSG:3419":["EPSG:3419","+proj=lcc +lat_1=39.78333333333333 +lat_2=38.71666666666667 +lat_0=38.33333333333334 +lon_0=-98 +x_0=399999.99998984 +y_0=0 +datum=NAD83 +units=us-ft +no_defs "],"EPSG:3420":["EPSG:3420","+proj=lcc +lat_1=38.56666666666667 +lat_2=37.26666666666667 +lat_0=36.66666666666666 +lon_0=-98.5 +x_0=399999.99998984 +y_0=399999.99998984 +datum=NAD83 +units=us-ft +no_defs "],"EPSG:3421":["EPSG:3421","+proj=tmerc +lat_0=34.75 +lon_0=-115.5833333333333 +k=0.9999 +x_0=200000.00001016 +y_0=8000000.000010163 +datum=NAD83 +units=us-ft +no_defs "],"EPSG:3422":["EPSG:3422","+proj=tmerc +lat_0=34.75 +lon_0=-116.6666666666667 +k=0.9999 +x_0=500000.00001016 +y_0=6000000 +datum=NAD83 +units=us-ft +no_defs "],"EPSG:3424":["EPSG:3424","+proj=tmerc +lat_0=38.83333333333334 +lon_0=-74.5 +k=0.9999 +x_0=150000 +y_0=0 +datum=NAD83 +units=us-ft +no_defs "],"EPSG:3425":["EPSG:3425","+proj=lcc +lat_1=43.26666666666667 +lat_2=42.06666666666667 +lat_0=41.5 +lon_0=-93.5 +x_0=1500000 +y_0=999999.9999898402 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=us-ft +no_defs "],"EPSG:4584":["EPSG:4584","+proj=tmerc +lat_0=0 +lon_0=105 +k=1 +x_0=500000 +y_0=0 +ellps=krass +units=m +no_defs "],"EPSG:3426":["EPSG:3426","+proj=lcc +lat_1=41.78333333333333 +lat_2=40.61666666666667 +lat_0=40 +lon_0=-93.5 +x_0=500000.00001016 +y_0=0 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=us-ft +no_defs "],"EPSG:3427":["EPSG:3427","+proj=lcc +lat_1=39.78333333333333 +lat_2=38.71666666666667 +lat_0=38.33333333333334 +lon_0=-98 +x_0=399999.99998984 +y_0=0 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=us-ft +no_defs "],"EPSG:3428":["EPSG:3428","+proj=lcc +lat_1=38.56666666666667 +lat_2=37.26666666666667 +lat_0=36.66666666666666 +lon_0=-98.5 +x_0=399999.99998984 +y_0=399999.99998984 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=us-ft +no_defs "],"EPSG:3429":["EPSG:3429","+proj=tmerc +lat_0=34.75 +lon_0=-115.5833333333333 +k=0.9999 +x_0=200000.00001016 +y_0=8000000.000010163 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=us-ft +no_defs "],"EPSG:3430":["EPSG:3430","+proj=tmerc +lat_0=34.75 +lon_0=-116.6666666666667 +k=0.9999 +x_0=500000.00001016 +y_0=6000000 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=us-ft +no_defs "],"EPSG:3431":["EPSG:3431","+proj=tmerc +lat_0=34.75 +lon_0=-118.5833333333333 +k=0.9999 +x_0=800000.0000101599 +y_0=3999999.99998984 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=us-ft +no_defs "],"EPSG:3433":["EPSG:3433","+proj=lcc +lat_1=36.23333333333333 +lat_2=34.93333333333333 +lat_0=34.33333333333334 +lon_0=-92 +x_0=399999.99998984 +y_0=0 +datum=NAD83 +units=us-ft +no_defs "],"EPSG:4894":["EPSG:4894","+proj=geocent +ellps=WGS84 +units=m +no_defs "],"EPSG:3434":["EPSG:3434","+proj=lcc +lat_1=34.76666666666667 +lat_2=33.3 +lat_0=32.66666666666666 +lon_0=-92 +x_0=399999.99998984 +y_0=399999.99998984 +datum=NAD83 +units=us-ft +no_defs "],"EPSG:3435":["EPSG:3435","+proj=tmerc +lat_0=36.66666666666666 +lon_0=-88.33333333333333 +k=0.9999749999999999 +x_0=300000.0000000001 +y_0=0 +datum=NAD83 +units=us-ft +no_defs "],"EPSG:3436":["EPSG:3436","+proj=tmerc +lat_0=36.66666666666666 +lon_0=-90.16666666666667 +k=0.999941177 +x_0=699999.9999898402 +y_0=0 +datum=NAD83 +units=us-ft +no_defs "],"EPSG:3438":["EPSG:3438","+proj=tmerc +lat_0=41.08333333333334 +lon_0=-71.5 +k=0.99999375 +x_0=99999.99998983997 +y_0=0 +datum=NAD83 +units=us-ft +no_defs "],"EPSG:3439":["EPSG:3439","+proj=utm +zone=39 +ellps=clrk80 +towgs84=-180.624,-225.516,173.919,-0.81,-1.898,8.336,16.71006 +units=m +no_defs "],"EPSG:3440":["EPSG:3440","+proj=utm +zone=40 +ellps=clrk80 +towgs84=-180.624,-225.516,173.919,-0.81,-1.898,8.336,16.71006 +units=m +no_defs "],"EPSG:3441":["EPSG:3441","+proj=lcc +lat_1=36.23333333333333 +lat_2=34.93333333333333 +lat_0=34.33333333333334 +lon_0=-92 +x_0=399999.99998984 +y_0=0 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=us-ft +no_defs "],"EPSG:3442":["EPSG:3442","+proj=lcc +lat_1=34.76666666666667 +lat_2=33.3 +lat_0=32.66666666666666 +lon_0=-92 +x_0=399999.99998984 +y_0=399999.99998984 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=us-ft +no_defs "],"EPSG:3443":["EPSG:3443","+proj=tmerc +lat_0=36.66666666666666 +lon_0=-88.33333333333333 +k=0.9999749999999999 +x_0=300000.0000000001 +y_0=0 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=us-ft +no_defs "],"EPSG:3444":["EPSG:3444","+proj=tmerc +lat_0=36.66666666666666 +lon_0=-90.16666666666667 +k=0.999941177 +x_0=699999.9999898402 +y_0=0 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=us-ft +no_defs "],"EPSG:3445":["EPSG:3445","+proj=tmerc +lat_0=42.5 +lon_0=-71.66666666666667 +k=0.999966667 +x_0=300000.0000000001 +y_0=0 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=us-ft +no_defs "],"EPSG:3446":["EPSG:3446","+proj=tmerc +lat_0=41.08333333333334 +lon_0=-71.5 +k=0.99999375 +x_0=99999.99998983997 +y_0=0 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=us-ft +no_defs "],"EPSG:3448":["EPSG:3448","+proj=lcc +lat_1=18 +lat_0=18 +lon_0=-77 +k_0=1 +x_0=750000 +y_0=650000 +ellps=WGS84 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs "],"EPSG:3450":["EPSG:3450","+proj=utm +zone=18 +ellps=WGS84 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs "],"EPSG:3451":["EPSG:3451","+proj=lcc +lat_1=32.66666666666666 +lat_2=31.16666666666667 +lat_0=30.5 +lon_0=-92.5 +x_0=999999.9999898402 +y_0=0 +datum=NAD83 +units=us-ft +no_defs "],"EPSG:3454":["EPSG:3454","+proj=lcc +lat_1=44.4 +lat_2=42.83333333333334 +lat_0=42.33333333333334 +lon_0=-100.3333333333333 +x_0=600000 +y_0=0 +datum=NAD83 +units=us-ft +no_defs "],"EPSG:3455":["EPSG:3455","+proj=lcc +lat_1=44.4 +lat_2=42.83333333333334 +lat_0=42.33333333333334 +lon_0=-100.3333333333333 +x_0=600000 +y_0=0 +datum=NAD83 +units=us-ft +no_defs "],"EPSG:3456":["EPSG:3456","+proj=lcc +lat_1=32.66666666666666 +lat_2=31.16666666666667 +lat_0=30.5 +lon_0=-92.5 +x_0=999999.9999898402 +y_0=0 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=us-ft +no_defs "],"EPSG:3458":["EPSG:3458","+proj=lcc +lat_1=45.68333333333333 +lat_2=44.41666666666666 +lat_0=43.83333333333334 +lon_0=-100 +x_0=600000 +y_0=0 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=us-ft +no_defs "],"EPSG:3459":["EPSG:3459","+proj=lcc +lat_1=44.4 +lat_2=42.83333333333334 +lat_0=42.33333333333334 +lon_0=-100.3333333333333 +x_0=600000 +y_0=0 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=us-ft +no_defs "],"EPSG:3460":["EPSG:3460","+proj=tmerc +lat_0=-17 +lon_0=178.75 +k=0.99985 +x_0=2000000 +y_0=4000000 +ellps=WGS72 +towgs84=0,0,4.5,0,0,0.554,0.2263 +units=m +no_defs "],"EPSG:3461":["EPSG:3461","+proj=utm +zone=28 +a=6378249.2 +b=6356515 +towgs84=-83,37,124,0,0,0,0 +units=m +no_defs "],"EPSG:3462":["EPSG:3462","+proj=utm +zone=29 +a=6378249.2 +b=6356515 +towgs84=-83,37,124,0,0,0,0 +units=m +no_defs "],"EPSG:3463":["EPSG:3463","+proj=tmerc +lat_0=43.5 +lon_0=-69.125 +k=0.99998 +x_0=500000 +y_0=0 +datum=NAD83 +units=m +no_defs "],"EPSG:3464":["EPSG:3464","+proj=tmerc +lat_0=43.5 +lon_0=-69.125 +k=0.99998 +x_0=500000 +y_0=0 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs "],"EPSG:3465":["EPSG:3465","+proj=tmerc +lat_0=30.5 +lon_0=-85.83333333333333 +k=0.99996 +x_0=200000 +y_0=0 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs "],"EPSG:3466":["EPSG:3466","+proj=tmerc +lat_0=30 +lon_0=-87.5 +k=0.999933333 +x_0=600000 +y_0=0 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs "],"EPSG:3467":["EPSG:3467","+proj=aea +lat_1=55 +lat_2=65 +lat_0=50 +lon_0=-154 +x_0=0 +y_0=0 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs "],"EPSG:3468":["EPSG:3468","+proj=omerc +lat_0=57 +lonc=-133.6666666666667 +alpha=323.1301023611111 +k=0.9999 +x_0=5000000 +y_0=-5000000 +no_uoff +gamma=323.1301023611111 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs "],"EPSG:3469":["EPSG:3469","+proj=tmerc +lat_0=54 +lon_0=-142 +k=0.9999 +x_0=500000 +y_0=0 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs "],"EPSG:3470":["EPSG:3470","+proj=tmerc +lat_0=54 +lon_0=-146 +k=0.9999 +x_0=500000 +y_0=0 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs "],"EPSG:3471":["EPSG:3471","+proj=tmerc +lat_0=54 +lon_0=-150 +k=0.9999 +x_0=500000 +y_0=0 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs "],"EPSG:3472":["EPSG:3472","+proj=tmerc +lat_0=54 +lon_0=-154 +k=0.9999 +x_0=500000 +y_0=0 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs "],"EPSG:3473":["EPSG:3473","+proj=tmerc +lat_0=54 +lon_0=-158 +k=0.9999 +x_0=500000 +y_0=0 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs "],"EPSG:3474":["EPSG:3474","+proj=tmerc +lat_0=54 +lon_0=-162 +k=0.9999 +x_0=500000 +y_0=0 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs "],"EPSG:3475":["EPSG:3475","+proj=tmerc +lat_0=54 +lon_0=-166 +k=0.9999 +x_0=500000 +y_0=0 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs "],"EPSG:3476":["EPSG:3476","+proj=tmerc +lat_0=54 +lon_0=-170 +k=0.9999 +x_0=500000 +y_0=0 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs "],"EPSG:3477":["EPSG:3477","+proj=lcc +lat_1=53.83333333333334 +lat_2=51.83333333333334 +lat_0=51 +lon_0=-176 +x_0=1000000 +y_0=0 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs "],"EPSG:3478":["EPSG:3478","+proj=tmerc +lat_0=31 +lon_0=-111.9166666666667 +k=0.9999 +x_0=213360 +y_0=0 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs "],"EPSG:3479":["EPSG:3479","+proj=tmerc +lat_0=31 +lon_0=-111.9166666666667 +k=0.9999 +x_0=213360 +y_0=0 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=ft +no_defs "],"EPSG:3480":["EPSG:3480","+proj=tmerc +lat_0=31 +lon_0=-110.1666666666667 +k=0.9999 +x_0=213360 +y_0=0 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs "],"EPSG:3481":["EPSG:3481","+proj=tmerc +lat_0=31 +lon_0=-110.1666666666667 +k=0.9999 +x_0=213360 +y_0=0 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=ft +no_defs "],"EPSG:3482":["EPSG:3482","+proj=tmerc +lat_0=31 +lon_0=-113.75 +k=0.999933333 +x_0=213360 +y_0=0 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs "],"EPSG:3483":["EPSG:3483","+proj=tmerc +lat_0=31 +lon_0=-113.75 +k=0.999933333 +x_0=213360 +y_0=0 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=ft +no_defs "],"EPSG:3484":["EPSG:3484","+proj=lcc +lat_1=36.23333333333333 +lat_2=34.93333333333333 +lat_0=34.33333333333334 +lon_0=-92 +x_0=400000 +y_0=0 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs "],"EPSG:3493":["EPSG:3493","+proj=lcc +lat_1=38.43333333333333 +lat_2=37.06666666666667 +lat_0=36.5 +lon_0=-120.5 +x_0=2000000 +y_0=500000 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs "],"EPSG:3485":["EPSG:3485","+proj=lcc +lat_1=36.23333333333333 +lat_2=34.93333333333333 +lat_0=34.33333333333334 +lon_0=-92 +x_0=399999.99998984 +y_0=0 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=us-ft +no_defs "],"EPSG:3486":["EPSG:3486","+proj=lcc +lat_1=34.76666666666667 +lat_2=33.3 +lat_0=32.66666666666666 +lon_0=-92 +x_0=400000 +y_0=400000 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs "],"EPSG:3487":["EPSG:3487","+proj=lcc +lat_1=34.76666666666667 +lat_2=33.3 +lat_0=32.66666666666666 +lon_0=-92 +x_0=399999.99998984 +y_0=399999.99998984 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=us-ft +no_defs "],"EPSG:3488":["EPSG:3488","+proj=aea +lat_1=34 +lat_2=40.5 +lat_0=0 +lon_0=-120 +x_0=0 +y_0=-4000000 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs "],"EPSG:3489":["EPSG:3489","+proj=lcc +lat_1=41.66666666666666 +lat_2=40 +lat_0=39.33333333333334 +lon_0=-122 +x_0=2000000 +y_0=500000 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs "],"EPSG:3490":["EPSG:3490","+proj=lcc +lat_1=41.66666666666666 +lat_2=40 +lat_0=39.33333333333334 +lon_0=-122 +x_0=2000000.0001016 +y_0=500000.0001016001 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=us-ft +no_defs "],"EPSG:3492":["EPSG:3492","+proj=lcc +lat_1=39.83333333333334 +lat_2=38.33333333333334 +lat_0=37.66666666666666 +lon_0=-122 +x_0=2000000.0001016 +y_0=500000.0001016001 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=us-ft +no_defs "],"EPSG:3494":["EPSG:3494","+proj=lcc +lat_1=38.43333333333333 +lat_2=37.06666666666667 +lat_0=36.5 +lon_0=-120.5 +x_0=2000000.0001016 +y_0=500000.0001016001 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=us-ft +no_defs "],"EPSG:3495":["EPSG:3495","+proj=lcc +lat_1=37.25 +lat_2=36 +lat_0=35.33333333333334 +lon_0=-119 +x_0=2000000 +y_0=500000 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs "],"EPSG:3497":["EPSG:3497","+proj=lcc +lat_1=35.46666666666667 +lat_2=34.03333333333333 +lat_0=33.5 +lon_0=-118 +x_0=2000000 +y_0=500000 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs "],"EPSG:3498":["EPSG:3498","+proj=lcc +lat_1=35.46666666666667 +lat_2=34.03333333333333 +lat_0=33.5 +lon_0=-118 +x_0=2000000.0001016 +y_0=500000.0001016001 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=us-ft +no_defs "],"EPSG:3499":["EPSG:3499","+proj=lcc +lat_1=33.88333333333333 +lat_2=32.78333333333333 +lat_0=32.16666666666666 +lon_0=-116.25 +x_0=2000000 +y_0=500000 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs "],"EPSG:3500":["EPSG:3500","+proj=lcc +lat_1=33.88333333333333 +lat_2=32.78333333333333 +lat_0=32.16666666666666 +lon_0=-116.25 +x_0=2000000.0001016 +y_0=500000.0001016001 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=us-ft +no_defs "],"EPSG:3501":["EPSG:3501","+proj=lcc +lat_1=39.75 +lat_2=38.45 +lat_0=37.83333333333334 +lon_0=-105.5 +x_0=914401.8289 +y_0=304800.6096 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs "],"EPSG:3502":["EPSG:3502","+proj=lcc +lat_1=39.75 +lat_2=38.45 +lat_0=37.83333333333334 +lon_0=-105.5 +x_0=914401.8288036576 +y_0=304800.6096012192 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=us-ft +no_defs "],"EPSG:3503":["EPSG:3503","+proj=lcc +lat_1=40.78333333333333 +lat_2=39.71666666666667 +lat_0=39.33333333333334 +lon_0=-105.5 +x_0=914401.8289 +y_0=304800.6096 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs "],"EPSG:3504":["EPSG:3504","+proj=lcc +lat_1=40.78333333333333 +lat_2=39.71666666666667 +lat_0=39.33333333333334 +lon_0=-105.5 +x_0=914401.8288036576 +y_0=304800.6096012192 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=us-ft +no_defs "],"EPSG:3505":["EPSG:3505","+proj=lcc +lat_1=38.43333333333333 +lat_2=37.23333333333333 +lat_0=36.66666666666666 +lon_0=-105.5 +x_0=914401.8289 +y_0=304800.6096 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs "],"EPSG:3506":["EPSG:3506","+proj=lcc +lat_1=38.43333333333333 +lat_2=37.23333333333333 +lat_0=36.66666666666666 +lon_0=-105.5 +x_0=914401.8288036576 +y_0=304800.6096012192 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=us-ft +no_defs "],"EPSG:3507":["EPSG:3507","+proj=lcc +lat_1=41.86666666666667 +lat_2=41.2 +lat_0=40.83333333333334 +lon_0=-72.75 +x_0=304800.6096 +y_0=152400.3048 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs "],"EPSG:3508":["EPSG:3508","+proj=lcc +lat_1=41.86666666666667 +lat_2=41.2 +lat_0=40.83333333333334 +lon_0=-72.75 +x_0=304800.6096012192 +y_0=152400.3048006096 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=us-ft +no_defs "],"EPSG:3509":["EPSG:3509","+proj=tmerc +lat_0=38 +lon_0=-75.41666666666667 +k=0.999995 +x_0=200000 +y_0=0 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs "],"EPSG:3510":["EPSG:3510","+proj=tmerc +lat_0=38 +lon_0=-75.41666666666667 +k=0.999995 +x_0=200000.0001016002 +y_0=0 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=us-ft +no_defs "],"EPSG:3512":["EPSG:3512","+proj=tmerc +lat_0=24.33333333333333 +lon_0=-81 +k=0.999941177 +x_0=200000.0001016002 +y_0=0 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=us-ft +no_defs "],"EPSG:3513":["EPSG:3513","+proj=aea +lat_1=24 +lat_2=31.5 +lat_0=24 +lon_0=-84 +x_0=400000 +y_0=0 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs "],"EPSG:3514":["EPSG:3514","+proj=lcc +lat_1=30.75 +lat_2=29.58333333333333 +lat_0=29 +lon_0=-84.5 +x_0=600000 +y_0=0 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs "],"EPSG:3515":["EPSG:3515","+proj=lcc +lat_1=30.75 +lat_2=29.58333333333333 +lat_0=29 +lon_0=-84.5 +x_0=600000 +y_0=0 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=us-ft +no_defs "],"EPSG:3516":["EPSG:3516","+proj=tmerc +lat_0=24.33333333333333 +lon_0=-82 +k=0.999941177 +x_0=200000 +y_0=0 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs "],"EPSG:3576":["EPSG:3576","+proj=laea +lat_0=90 +lon_0=90 +x_0=0 +y_0=0 +datum=WGS84 +units=m +no_defs "],"EPSG:3519":["EPSG:3519","+proj=tmerc +lat_0=30 +lon_0=-82.16666666666667 +k=0.9999 +x_0=200000.0001016002 +y_0=0 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=us-ft +no_defs "],"EPSG:3520":["EPSG:3520","+proj=tmerc +lat_0=30 +lon_0=-84.16666666666667 +k=0.9999 +x_0=700000 +y_0=0 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs "],"EPSG:3521":["EPSG:3521","+proj=tmerc +lat_0=30 +lon_0=-84.16666666666667 +k=0.9999 +x_0=699999.9998983998 +y_0=0 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=us-ft +no_defs "],"EPSG:3522":["EPSG:3522","+proj=tmerc +lat_0=41.66666666666666 +lon_0=-114 +k=0.9999473679999999 +x_0=500000 +y_0=0 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs "],"EPSG:3523":["EPSG:3523","+proj=tmerc +lat_0=41.66666666666666 +lon_0=-114 +k=0.9999473679999999 +x_0=500000.0001016001 +y_0=0 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=us-ft +no_defs "],"EPSG:3524":["EPSG:3524","+proj=tmerc +lat_0=41.66666666666666 +lon_0=-112.1666666666667 +k=0.9999473679999999 +x_0=200000 +y_0=0 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs "],"EPSG:3525":["EPSG:3525","+proj=tmerc +lat_0=41.66666666666666 +lon_0=-112.1666666666667 +k=0.9999473679999999 +x_0=200000.0001016002 +y_0=0 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=us-ft +no_defs "],"EPSG:3526":["EPSG:3526","+proj=tmerc +lat_0=41.66666666666666 +lon_0=-115.75 +k=0.999933333 +x_0=800000 +y_0=0 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs "],"EPSG:3527":["EPSG:3527","+proj=tmerc +lat_0=41.66666666666666 +lon_0=-115.75 +k=0.999933333 +x_0=800000.0001016001 +y_0=0 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=us-ft +no_defs "],"EPSG:3528":["EPSG:3528","+proj=tmerc +lat_0=36.66666666666666 +lon_0=-88.33333333333333 +k=0.9999749999999999 +x_0=300000 +y_0=0 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs "],"EPSG:3529":["EPSG:3529","+proj=tmerc +lat_0=36.66666666666666 +lon_0=-88.33333333333333 +k=0.9999749999999999 +x_0=300000.0000000001 +y_0=0 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=us-ft +no_defs "],"EPSG:3530":["EPSG:3530","+proj=tmerc +lat_0=36.66666666666666 +lon_0=-90.16666666666667 +k=0.999941177 +x_0=700000 +y_0=0 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs "],"EPSG:3531":["EPSG:3531","+proj=tmerc +lat_0=36.66666666666666 +lon_0=-90.16666666666667 +k=0.999941177 +x_0=699999.9999898402 +y_0=0 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=us-ft +no_defs "],"EPSG:3532":["EPSG:3532","+proj=tmerc +lat_0=37.5 +lon_0=-85.66666666666667 +k=0.999966667 +x_0=100000 +y_0=250000 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs "],"EPSG:3533":["EPSG:3533","+proj=tmerc +lat_0=37.5 +lon_0=-85.66666666666667 +k=0.999966667 +x_0=99999.99989839978 +y_0=249999.9998983998 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=us-ft +no_defs "],"EPSG:3534":["EPSG:3534","+proj=tmerc +lat_0=37.5 +lon_0=-87.08333333333333 +k=0.999966667 +x_0=900000 +y_0=250000 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs "],"EPSG:4585":["EPSG:4585","+proj=tmerc +lat_0=0 +lon_0=111 +k=1 +x_0=500000 +y_0=0 +ellps=krass +units=m +no_defs "],"EPSG:3535":["EPSG:3535","+proj=tmerc +lat_0=37.5 +lon_0=-87.08333333333333 +k=0.999966667 +x_0=900000 +y_0=249999.9998983998 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=us-ft +no_defs "],"EPSG:3536":["EPSG:3536","+proj=lcc +lat_1=43.26666666666667 +lat_2=42.06666666666667 +lat_0=41.5 +lon_0=-93.5 +x_0=1500000 +y_0=1000000 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs "],"EPSG:3537":["EPSG:3537","+proj=lcc +lat_1=43.26666666666667 +lat_2=42.06666666666667 +lat_0=41.5 +lon_0=-93.5 +x_0=1500000 +y_0=999999.9999898402 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=us-ft +no_defs "],"EPSG:3538":["EPSG:3538","+proj=lcc +lat_1=41.78333333333333 +lat_2=40.61666666666667 +lat_0=40 +lon_0=-93.5 +x_0=500000 +y_0=0 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs "],"EPSG:3539":["EPSG:3539","+proj=lcc +lat_1=41.78333333333333 +lat_2=40.61666666666667 +lat_0=40 +lon_0=-93.5 +x_0=500000.00001016 +y_0=0 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=us-ft +no_defs "],"EPSG:3540":["EPSG:3540","+proj=lcc +lat_1=39.78333333333333 +lat_2=38.71666666666667 +lat_0=38.33333333333334 +lon_0=-98 +x_0=400000 +y_0=0 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs "],"EPSG:3541":["EPSG:3541","+proj=lcc +lat_1=39.78333333333333 +lat_2=38.71666666666667 +lat_0=38.33333333333334 +lon_0=-98 +x_0=399999.99998984 +y_0=0 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=us-ft +no_defs "],"EPSG:3542":["EPSG:3542","+proj=lcc +lat_1=38.56666666666667 +lat_2=37.26666666666667 +lat_0=36.66666666666666 +lon_0=-98.5 +x_0=400000 +y_0=400000 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs "],"EPSG:3543":["EPSG:3543","+proj=lcc +lat_1=38.56666666666667 +lat_2=37.26666666666667 +lat_0=36.66666666666666 +lon_0=-98.5 +x_0=399999.99998984 +y_0=399999.99998984 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=us-ft +no_defs "],"EPSG:3544":["EPSG:3544","+proj=lcc +lat_1=37.96666666666667 +lat_2=38.96666666666667 +lat_0=37.5 +lon_0=-84.25 +x_0=500000 +y_0=0 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs "],"EPSG:3545":["EPSG:3545","+proj=lcc +lat_1=37.96666666666667 +lat_2=38.96666666666667 +lat_0=37.5 +lon_0=-84.25 +x_0=500000.0001016001 +y_0=0 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=us-ft +no_defs "],"EPSG:3546":["EPSG:3546","+proj=lcc +lat_1=37.08333333333334 +lat_2=38.66666666666666 +lat_0=36.33333333333334 +lon_0=-85.75 +x_0=1500000 +y_0=1000000 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs "],"EPSG:3547":["EPSG:3547","+proj=lcc +lat_1=37.08333333333334 +lat_2=38.66666666666666 +lat_0=36.33333333333334 +lon_0=-85.75 +x_0=1500000 +y_0=999999.9998983998 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=us-ft +no_defs "],"EPSG:3548":["EPSG:3548","+proj=lcc +lat_1=37.93333333333333 +lat_2=36.73333333333333 +lat_0=36.33333333333334 +lon_0=-85.75 +x_0=500000 +y_0=500000 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs "],"EPSG:3549":["EPSG:3549","+proj=lcc +lat_1=37.93333333333333 +lat_2=36.73333333333333 +lat_0=36.33333333333334 +lon_0=-85.75 +x_0=500000.0001016001 +y_0=500000.0001016001 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=us-ft +no_defs "],"EPSG:3550":["EPSG:3550","+proj=lcc +lat_1=32.66666666666666 +lat_2=31.16666666666667 +lat_0=30.5 +lon_0=-92.5 +x_0=1000000 +y_0=0 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs "],"EPSG:3551":["EPSG:3551","+proj=lcc +lat_1=32.66666666666666 +lat_2=31.16666666666667 +lat_0=30.5 +lon_0=-92.5 +x_0=999999.9999898402 +y_0=0 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=us-ft +no_defs "],"EPSG:3552":["EPSG:3552","+proj=lcc +lat_1=30.7 +lat_2=29.3 +lat_0=28.5 +lon_0=-91.33333333333333 +x_0=1000000 +y_0=0 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs "],"EPSG:3554":["EPSG:3554","+proj=tmerc +lat_0=43.5 +lon_0=-69.125 +k=0.99998 +x_0=500000 +y_0=0 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs "],"EPSG:3555":["EPSG:3555","+proj=tmerc +lat_0=43.83333333333334 +lon_0=-67.875 +k=0.99998 +x_0=700000 +y_0=0 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs "],"EPSG:3556":["EPSG:3556","+proj=tmerc +lat_0=42.83333333333334 +lon_0=-70.375 +k=0.99998 +x_0=300000 +y_0=0 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs "],"EPSG:3557":["EPSG:3557","+proj=tmerc +lat_0=43.66666666666666 +lon_0=-68.5 +k=0.9999 +x_0=300000 +y_0=0 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs "],"EPSG:3558":["EPSG:3558","+proj=tmerc +lat_0=42.83333333333334 +lon_0=-70.16666666666667 +k=0.999966667 +x_0=900000 +y_0=0 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs "],"EPSG:3709":["EPSG:3709","+proj=utm +zone=2 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs "],"EPSG:3559":["EPSG:3559","+proj=lcc +lat_1=39.45 +lat_2=38.3 +lat_0=37.66666666666666 +lon_0=-77 +x_0=400000 +y_0=0 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs "],"EPSG:3560":["EPSG:3560","+proj=lcc +lat_1=41.78333333333333 +lat_2=40.71666666666667 +lat_0=40.33333333333334 +lon_0=-111.5 +x_0=500000.00001016 +y_0=999999.9999898402 +datum=NAD83 +units=us-ft +no_defs "],"EPSG:3561":["EPSG:3561","+proj=tmerc +lat_0=18.83333333333333 +lon_0=-155.5 +k=0.999966667 +x_0=152400.3048006096 +y_0=0 +ellps=clrk66 +towgs84=61,-285,-181,0,0,0,0 +units=us-ft +no_defs "],"EPSG:3562":["EPSG:3562","+proj=tmerc +lat_0=20.33333333333333 +lon_0=-156.6666666666667 +k=0.999966667 +x_0=152400.3048006096 +y_0=0 +ellps=clrk66 +towgs84=61,-285,-181,0,0,0,0 +units=us-ft +no_defs "],"EPSG:3563":["EPSG:3563","+proj=tmerc +lat_0=21.16666666666667 +lon_0=-158 +k=0.99999 +x_0=152400.3048006096 +y_0=0 +ellps=clrk66 +towgs84=61,-285,-181,0,0,0,0 +units=us-ft +no_defs "],"EPSG:3564":["EPSG:3564","+proj=tmerc +lat_0=21.83333333333333 +lon_0=-159.5 +k=0.99999 +x_0=152400.3048006096 +y_0=0 +ellps=clrk66 +towgs84=61,-285,-181,0,0,0,0 +units=us-ft +no_defs "],"EPSG:3565":["EPSG:3565","+proj=tmerc +lat_0=21.66666666666667 +lon_0=-160.1666666666667 +k=1 +x_0=152400.3048006096 +y_0=0 +ellps=clrk66 +towgs84=61,-285,-181,0,0,0,0 +units=us-ft +no_defs "],"EPSG:3566":["EPSG:3566","+proj=lcc +lat_1=40.65 +lat_2=39.01666666666667 +lat_0=38.33333333333334 +lon_0=-111.5 +x_0=500000.00001016 +y_0=2000000.00001016 +datum=NAD83 +units=us-ft +no_defs "],"EPSG:3567":["EPSG:3567","+proj=lcc +lat_1=38.35 +lat_2=37.21666666666667 +lat_0=36.66666666666666 +lon_0=-111.5 +x_0=500000.00001016 +y_0=3000000 +datum=NAD83 +units=us-ft +no_defs "],"EPSG:3568":["EPSG:3568","+proj=lcc +lat_1=41.78333333333333 +lat_2=40.71666666666667 +lat_0=40.33333333333334 +lon_0=-111.5 +x_0=500000.00001016 +y_0=999999.9999898402 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=us-ft +no_defs "],"EPSG:3569":["EPSG:3569","+proj=lcc +lat_1=40.65 +lat_2=39.01666666666667 +lat_0=38.33333333333334 +lon_0=-111.5 +x_0=500000.00001016 +y_0=2000000.00001016 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=us-ft +no_defs "],"EPSG:3570":["EPSG:3570","+proj=lcc +lat_1=38.35 +lat_2=37.21666666666667 +lat_0=36.66666666666666 +lon_0=-111.5 +x_0=500000.00001016 +y_0=3000000 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=us-ft +no_defs "],"EPSG:3572":["EPSG:3572","+proj=laea +lat_0=90 +lon_0=-150 +x_0=0 +y_0=0 +datum=WGS84 +units=m +no_defs "],"EPSG:3573":["EPSG:3573","+proj=laea +lat_0=90 +lon_0=-100 +x_0=0 +y_0=0 +datum=WGS84 +units=m +no_defs "],"EPSG:3574":["EPSG:3574","+proj=laea +lat_0=90 +lon_0=-40 +x_0=0 +y_0=0 +datum=WGS84 +units=m +no_defs "],"EPSG:4899":["EPSG:4899","+proj=geocent +ellps=intl +units=m +no_defs "],"EPSG:3579":["EPSG:3579","+proj=aea +lat_1=61.66666666666666 +lat_2=68 +lat_0=59 +lon_0=-132.5 +x_0=500000 +y_0=500000 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs "],"EPSG:3580":["EPSG:3580","+proj=lcc +lat_1=62 +lat_2=70 +lat_0=0 +lon_0=-112 +x_0=0 +y_0=0 +datum=NAD83 +units=m +no_defs "],"EPSG:3581":["EPSG:3581","+proj=lcc +lat_1=62 +lat_2=70 +lat_0=0 +lon_0=-112 +x_0=0 +y_0=0 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs "],"EPSG:3582":["EPSG:3582","+proj=lcc +lat_1=39.45 +lat_2=38.3 +lat_0=37.66666666666666 +lon_0=-77 +x_0=399999.9998983998 +y_0=0 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=us-ft +no_defs "],"EPSG:3583":["EPSG:3583","+proj=lcc +lat_1=41.48333333333333 +lat_2=41.28333333333333 +lat_0=41 +lon_0=-70.5 +x_0=500000 +y_0=0 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs "],"EPSG:3584":["EPSG:3584","+proj=lcc +lat_1=41.48333333333333 +lat_2=41.28333333333333 +lat_0=41 +lon_0=-70.5 +x_0=500000.0001016001 +y_0=0 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=us-ft +no_defs "],"EPSG:3585":["EPSG:3585","+proj=lcc +lat_1=42.68333333333333 +lat_2=41.71666666666667 +lat_0=41 +lon_0=-71.5 +x_0=200000 +y_0=750000 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs "],"EPSG:4906":["EPSG:4906","+proj=geocent +ellps=GRS80 +units=m +no_defs "],"EPSG:3586":["EPSG:3586","+proj=lcc +lat_1=42.68333333333333 +lat_2=41.71666666666667 +lat_0=41 +lon_0=-71.5 +x_0=200000.0001016002 +y_0=750000 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=us-ft +no_defs "],"EPSG:3587":["EPSG:3587","+proj=lcc +lat_1=45.7 +lat_2=44.18333333333333 +lat_0=43.31666666666667 +lon_0=-84.36666666666666 +x_0=6000000 +y_0=0 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs "],"EPSG:3588":["EPSG:3588","+proj=lcc +lat_1=45.7 +lat_2=44.18333333333333 +lat_0=43.31666666666667 +lon_0=-84.36666666666666 +x_0=5999999.999976001 +y_0=0 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=ft +no_defs "],"EPSG:3589":["EPSG:3589","+proj=lcc +lat_1=47.08333333333334 +lat_2=45.48333333333333 +lat_0=44.78333333333333 +lon_0=-87 +x_0=8000000 +y_0=0 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs "],"EPSG:3590":["EPSG:3590","+proj=lcc +lat_1=47.08333333333334 +lat_2=45.48333333333333 +lat_0=44.78333333333333 +lon_0=-87 +x_0=7999999.999968001 +y_0=0 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=ft +no_defs "],"EPSG:3591":["EPSG:3591","+proj=omerc +lat_0=45.30916666666666 +lonc=-86 +alpha=337.25556 +k=0.9996 +x_0=2546731.496 +y_0=-4354009.816 +no_uoff +gamma=337.25556 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs "],"EPSG:3592":["EPSG:3592","+proj=lcc +lat_1=43.66666666666666 +lat_2=42.1 +lat_0=41.5 +lon_0=-84.36666666666666 +x_0=4000000 +y_0=0 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs "],"EPSG:3593":["EPSG:3593","+proj=lcc +lat_1=43.66666666666666 +lat_2=42.1 +lat_0=41.5 +lon_0=-84.36666666666666 +x_0=3999999.999984 +y_0=0 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=ft +no_defs "],"EPSG:3594":["EPSG:3594","+proj=lcc +lat_1=47.05 +lat_2=45.61666666666667 +lat_0=45 +lon_0=-94.25 +x_0=800000 +y_0=100000 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs "],"EPSG:3595":["EPSG:3595","+proj=lcc +lat_1=48.63333333333333 +lat_2=47.03333333333333 +lat_0=46.5 +lon_0=-93.09999999999999 +x_0=800000 +y_0=100000 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs "],"EPSG:3596":["EPSG:3596","+proj=lcc +lat_1=45.21666666666667 +lat_2=43.78333333333333 +lat_0=43 +lon_0=-94 +x_0=800000 +y_0=100000 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs "],"EPSG:3597":["EPSG:3597","+proj=tmerc +lat_0=29.5 +lon_0=-88.83333333333333 +k=0.99995 +x_0=300000 +y_0=0 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs "],"EPSG:3598":["EPSG:3598","+proj=tmerc +lat_0=29.5 +lon_0=-88.83333333333333 +k=0.99995 +x_0=300000.0000000001 +y_0=0 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=us-ft +no_defs "],"EPSG:3599":["EPSG:3599","+proj=tmerc +lat_0=29.5 +lon_0=-90.33333333333333 +k=0.99995 +x_0=700000 +y_0=0 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs "],"EPSG:3600":["EPSG:3600","+proj=tmerc +lat_0=29.5 +lon_0=-90.33333333333333 +k=0.99995 +x_0=699999.9998983998 +y_0=0 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=us-ft +no_defs "],"EPSG:3601":["EPSG:3601","+proj=tmerc +lat_0=35.83333333333334 +lon_0=-92.5 +k=0.999933333 +x_0=500000 +y_0=0 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs "],"EPSG:3602":["EPSG:3602","+proj=tmerc +lat_0=35.83333333333334 +lon_0=-90.5 +k=0.999933333 +x_0=250000 +y_0=0 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs "],"EPSG:3603":["EPSG:3603","+proj=tmerc +lat_0=36.16666666666666 +lon_0=-94.5 +k=0.999941177 +x_0=850000 +y_0=0 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs "],"EPSG:3604":["EPSG:3604","+proj=lcc +lat_1=49 +lat_2=45 +lat_0=44.25 +lon_0=-109.5 +x_0=600000 +y_0=0 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs "],"EPSG:3605":["EPSG:3605","+proj=lcc +lat_1=49 +lat_2=45 +lat_0=44.25 +lon_0=-109.5 +x_0=599999.9999976 +y_0=0 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=ft +no_defs "],"EPSG:3606":["EPSG:3606","+proj=lcc +lat_1=43 +lat_2=40 +lat_0=39.83333333333334 +lon_0=-100 +x_0=500000 +y_0=0 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs "],"EPSG:3607":["EPSG:3607","+proj=tmerc +lat_0=34.75 +lon_0=-116.6666666666667 +k=0.9999 +x_0=500000 +y_0=6000000 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs "],"EPSG:3608":["EPSG:3608","+proj=tmerc +lat_0=34.75 +lon_0=-116.6666666666667 +k=0.9999 +x_0=500000.00001016 +y_0=6000000 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=us-ft +no_defs "],"EPSG:3609":["EPSG:3609","+proj=tmerc +lat_0=34.75 +lon_0=-115.5833333333333 +k=0.9999 +x_0=200000 +y_0=8000000 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs "],"EPSG:3619":["EPSG:3619","+proj=tmerc +lat_0=31 +lon_0=-104.3333333333333 +k=0.999909091 +x_0=165000 +y_0=0 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs "],"EPSG:3610":["EPSG:3610","+proj=tmerc +lat_0=34.75 +lon_0=-115.5833333333333 +k=0.9999 +x_0=200000.00001016 +y_0=8000000.000010163 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=us-ft +no_defs "],"EPSG:3611":["EPSG:3611","+proj=tmerc +lat_0=34.75 +lon_0=-118.5833333333333 +k=0.9999 +x_0=800000 +y_0=4000000 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs "],"EPSG:3612":["EPSG:3612","+proj=tmerc +lat_0=34.75 +lon_0=-118.5833333333333 +k=0.9999 +x_0=800000.0000101599 +y_0=3999999.99998984 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=us-ft +no_defs "],"EPSG:3613":["EPSG:3613","+proj=tmerc +lat_0=42.5 +lon_0=-71.66666666666667 +k=0.999966667 +x_0=300000 +y_0=0 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs "],"EPSG:3614":["EPSG:3614","+proj=tmerc +lat_0=42.5 +lon_0=-71.66666666666667 +k=0.999966667 +x_0=300000.0000000001 +y_0=0 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=us-ft +no_defs "],"EPSG:3615":["EPSG:3615","+proj=tmerc +lat_0=38.83333333333334 +lon_0=-74.5 +k=0.9999 +x_0=150000 +y_0=0 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs "],"EPSG:3617":["EPSG:3617","+proj=tmerc +lat_0=31 +lon_0=-106.25 +k=0.9999 +x_0=500000 +y_0=0 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs "],"EPSG:3618":["EPSG:3618","+proj=tmerc +lat_0=31 +lon_0=-106.25 +k=0.9999 +x_0=500000.0001016001 +y_0=0 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=us-ft +no_defs "],"EPSG:3620":["EPSG:3620","+proj=tmerc +lat_0=31 +lon_0=-104.3333333333333 +k=0.999909091 +x_0=165000 +y_0=0 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=us-ft +no_defs "],"EPSG:3621":["EPSG:3621","+proj=tmerc +lat_0=31 +lon_0=-107.8333333333333 +k=0.999916667 +x_0=830000 +y_0=0 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs "],"EPSG:3622":["EPSG:3622","+proj=tmerc +lat_0=31 +lon_0=-107.8333333333333 +k=0.999916667 +x_0=830000.0001016001 +y_0=0 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=us-ft +no_defs "],"EPSG:3623":["EPSG:3623","+proj=tmerc +lat_0=40 +lon_0=-76.58333333333333 +k=0.9999375 +x_0=250000 +y_0=0 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs "],"EPSG:3624":["EPSG:3624","+proj=tmerc +lat_0=40 +lon_0=-76.58333333333333 +k=0.9999375 +x_0=249999.9998983998 +y_0=0 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=us-ft +no_defs "],"EPSG:3625":["EPSG:3625","+proj=tmerc +lat_0=38.83333333333334 +lon_0=-74.5 +k=0.9999 +x_0=150000 +y_0=0 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs "],"EPSG:3626":["EPSG:3626","+proj=tmerc +lat_0=38.83333333333334 +lon_0=-74.5 +k=0.9999 +x_0=150000 +y_0=0 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=us-ft +no_defs "],"EPSG:3627":["EPSG:3627","+proj=lcc +lat_1=41.03333333333333 +lat_2=40.66666666666666 +lat_0=40.16666666666666 +lon_0=-74 +x_0=300000 +y_0=0 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs "],"EPSG:3710":["EPSG:3710","+proj=utm +zone=3 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs "],"EPSG:3628":["EPSG:3628","+proj=lcc +lat_1=41.03333333333333 +lat_2=40.66666666666666 +lat_0=40.16666666666666 +lon_0=-74 +x_0=300000.0000000001 +y_0=0 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=us-ft +no_defs "],"EPSG:3629":["EPSG:3629","+proj=tmerc +lat_0=40 +lon_0=-78.58333333333333 +k=0.9999375 +x_0=350000 +y_0=0 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs "],"EPSG:3631":["EPSG:3631","+proj=lcc +lat_1=36.16666666666666 +lat_2=34.33333333333334 +lat_0=33.75 +lon_0=-79 +x_0=609601.22 +y_0=0 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs "],"EPSG:3632":["EPSG:3632","+proj=lcc +lat_1=36.16666666666666 +lat_2=34.33333333333334 +lat_0=33.75 +lon_0=-79 +x_0=609601.2192024384 +y_0=0 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=us-ft +no_defs "],"EPSG:3633":["EPSG:3633","+proj=lcc +lat_1=48.73333333333333 +lat_2=47.43333333333333 +lat_0=47 +lon_0=-100.5 +x_0=600000 +y_0=0 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs "],"EPSG:3634":["EPSG:3634","+proj=lcc +lat_1=48.73333333333333 +lat_2=47.43333333333333 +lat_0=47 +lon_0=-100.5 +x_0=599999.9999976 +y_0=0 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=ft +no_defs "],"EPSG:3635":["EPSG:3635","+proj=lcc +lat_1=47.48333333333333 +lat_2=46.18333333333333 +lat_0=45.66666666666666 +lon_0=-100.5 +x_0=600000 +y_0=0 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs "],"EPSG:3636":["EPSG:3636","+proj=lcc +lat_1=47.48333333333333 +lat_2=46.18333333333333 +lat_0=45.66666666666666 +lon_0=-100.5 +x_0=599999.9999976 +y_0=0 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=ft +no_defs "],"EPSG:3637":["EPSG:3637","+proj=lcc +lat_1=41.7 +lat_2=40.43333333333333 +lat_0=39.66666666666666 +lon_0=-82.5 +x_0=600000 +y_0=0 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs "],"EPSG:3638":["EPSG:3638","+proj=lcc +lat_1=40.03333333333333 +lat_2=38.73333333333333 +lat_0=38 +lon_0=-82.5 +x_0=600000 +y_0=0 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs "],"EPSG:3639":["EPSG:3639","+proj=lcc +lat_1=36.76666666666667 +lat_2=35.56666666666667 +lat_0=35 +lon_0=-98 +x_0=600000 +y_0=0 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs "],"EPSG:3640":["EPSG:3640","+proj=lcc +lat_1=36.76666666666667 +lat_2=35.56666666666667 +lat_0=35 +lon_0=-98 +x_0=600000 +y_0=0 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=us-ft +no_defs "],"EPSG:3641":["EPSG:3641","+proj=lcc +lat_1=35.23333333333333 +lat_2=33.93333333333333 +lat_0=33.33333333333334 +lon_0=-98 +x_0=600000 +y_0=0 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs "],"EPSG:3642":["EPSG:3642","+proj=lcc +lat_1=35.23333333333333 +lat_2=33.93333333333333 +lat_0=33.33333333333334 +lon_0=-98 +x_0=600000 +y_0=0 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=us-ft +no_defs "],"EPSG:3643":["EPSG:3643","+proj=lcc +lat_1=43 +lat_2=45.5 +lat_0=41.75 +lon_0=-120.5 +x_0=400000 +y_0=0 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs "],"EPSG:3644":["EPSG:3644","+proj=lcc +lat_1=43 +lat_2=45.5 +lat_0=41.75 +lon_0=-120.5 +x_0=399999.9999984 +y_0=0 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=ft +no_defs "],"EPSG:3645":["EPSG:3645","+proj=lcc +lat_1=46 +lat_2=44.33333333333334 +lat_0=43.66666666666666 +lon_0=-120.5 +x_0=2500000 +y_0=0 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs "],"EPSG:3646":["EPSG:3646","+proj=lcc +lat_1=46 +lat_2=44.33333333333334 +lat_0=43.66666666666666 +lon_0=-120.5 +x_0=2500000.0001424 +y_0=0 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=ft +no_defs "],"EPSG:3647":["EPSG:3647","+proj=lcc +lat_1=44 +lat_2=42.33333333333334 +lat_0=41.66666666666666 +lon_0=-120.5 +x_0=1500000 +y_0=0 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs "],"EPSG:3648":["EPSG:3648","+proj=lcc +lat_1=44 +lat_2=42.33333333333334 +lat_0=41.66666666666666 +lon_0=-120.5 +x_0=1500000.0001464 +y_0=0 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=ft +no_defs "],"EPSG:3649":["EPSG:3649","+proj=lcc +lat_1=41.95 +lat_2=40.88333333333333 +lat_0=40.16666666666666 +lon_0=-77.75 +x_0=600000 +y_0=0 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs "],"EPSG:3650":["EPSG:3650","+proj=lcc +lat_1=41.95 +lat_2=40.88333333333333 +lat_0=40.16666666666666 +lon_0=-77.75 +x_0=600000 +y_0=0 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=us-ft +no_defs "],"EPSG:3653":["EPSG:3653","+proj=tmerc +lat_0=41.08333333333334 +lon_0=-71.5 +k=0.99999375 +x_0=100000 +y_0=0 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs "],"EPSG:3654":["EPSG:3654","+proj=tmerc +lat_0=41.08333333333334 +lon_0=-71.5 +k=0.99999375 +x_0=99999.99998983997 +y_0=0 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=us-ft +no_defs "],"EPSG:3655":["EPSG:3655","+proj=lcc +lat_1=34.83333333333334 +lat_2=32.5 +lat_0=31.83333333333333 +lon_0=-81 +x_0=609600 +y_0=0 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs "],"EPSG:3656":["EPSG:3656","+proj=lcc +lat_1=34.83333333333334 +lat_2=32.5 +lat_0=31.83333333333333 +lon_0=-81 +x_0=609600 +y_0=0 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=ft +no_defs "],"EPSG:3657":["EPSG:3657","+proj=lcc +lat_1=45.68333333333333 +lat_2=44.41666666666666 +lat_0=43.83333333333334 +lon_0=-100 +x_0=600000 +y_0=0 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs "],"EPSG:3658":["EPSG:3658","+proj=lcc +lat_1=45.68333333333333 +lat_2=44.41666666666666 +lat_0=43.83333333333334 +lon_0=-100 +x_0=600000 +y_0=0 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=us-ft +no_defs "],"EPSG:3659":["EPSG:3659","+proj=lcc +lat_1=44.4 +lat_2=42.83333333333334 +lat_0=42.33333333333334 +lon_0=-100.3333333333333 +x_0=600000 +y_0=0 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs "],"EPSG:3660":["EPSG:3660","+proj=lcc +lat_1=44.4 +lat_2=42.83333333333334 +lat_0=42.33333333333334 +lon_0=-100.3333333333333 +x_0=600000 +y_0=0 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=us-ft +no_defs "],"EPSG:3661":["EPSG:3661","+proj=lcc +lat_1=36.41666666666666 +lat_2=35.25 +lat_0=34.33333333333334 +lon_0=-86 +x_0=600000 +y_0=0 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs "],"EPSG:3662":["EPSG:3662","+proj=lcc +lat_1=36.41666666666666 +lat_2=35.25 +lat_0=34.33333333333334 +lon_0=-86 +x_0=600000 +y_0=0 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=us-ft +no_defs "],"EPSG:3663":["EPSG:3663","+proj=lcc +lat_1=31.88333333333333 +lat_2=30.11666666666667 +lat_0=29.66666666666667 +lon_0=-100.3333333333333 +x_0=700000 +y_0=3000000 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs "],"EPSG:3664":["EPSG:3664","+proj=lcc +lat_1=31.88333333333333 +lat_2=30.11666666666667 +lat_0=29.66666666666667 +lon_0=-100.3333333333333 +x_0=699999.9998983998 +y_0=3000000 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=us-ft +no_defs "],"EPSG:3665":["EPSG:3665","+proj=aea +lat_1=27.5 +lat_2=35 +lat_0=18 +lon_0=-100 +x_0=1500000 +y_0=6000000 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs "],"EPSG:3666":["EPSG:3666","+proj=lcc +lat_1=27.5 +lat_2=35 +lat_0=18 +lon_0=-100 +x_0=1500000 +y_0=5000000 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs "],"EPSG:3667":["EPSG:3667","+proj=lcc +lat_1=36.18333333333333 +lat_2=34.65 +lat_0=34 +lon_0=-101.5 +x_0=200000 +y_0=1000000 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs "],"EPSG:3668":["EPSG:3668","+proj=lcc +lat_1=36.18333333333333 +lat_2=34.65 +lat_0=34 +lon_0=-101.5 +x_0=200000.0001016002 +y_0=999999.9998983998 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=us-ft +no_defs "],"EPSG:3669":["EPSG:3669","+proj=lcc +lat_1=33.96666666666667 +lat_2=32.13333333333333 +lat_0=31.66666666666667 +lon_0=-98.5 +x_0=600000 +y_0=2000000 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs "],"EPSG:3670":["EPSG:3670","+proj=lcc +lat_1=33.96666666666667 +lat_2=32.13333333333333 +lat_0=31.66666666666667 +lon_0=-98.5 +x_0=600000 +y_0=2000000.0001016 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=us-ft +no_defs "],"EPSG:3671":["EPSG:3671","+proj=lcc +lat_1=27.83333333333333 +lat_2=26.16666666666667 +lat_0=25.66666666666667 +lon_0=-98.5 +x_0=300000 +y_0=5000000 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs "],"EPSG:3672":["EPSG:3672","+proj=lcc +lat_1=27.83333333333333 +lat_2=26.16666666666667 +lat_0=25.66666666666667 +lon_0=-98.5 +x_0=300000.0000000001 +y_0=5000000.0001016 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=us-ft +no_defs "],"EPSG:3673":["EPSG:3673","+proj=lcc +lat_1=30.28333333333333 +lat_2=28.38333333333333 +lat_0=27.83333333333333 +lon_0=-99 +x_0=600000 +y_0=4000000 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs "],"EPSG:3674":["EPSG:3674","+proj=lcc +lat_1=30.28333333333333 +lat_2=28.38333333333333 +lat_0=27.83333333333333 +lon_0=-99 +x_0=600000 +y_0=3999999.9998984 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=us-ft +no_defs "],"EPSG:3699":["EPSG:3699","+proj=lcc +lat_1=44.06666666666667 +lat_2=42.73333333333333 +lat_0=42 +lon_0=-90 +x_0=600000 +y_0=0 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs "],"EPSG:3675":["EPSG:3675","+proj=lcc +lat_1=40.65 +lat_2=39.01666666666667 +lat_0=38.33333333333334 +lon_0=-111.5 +x_0=500000 +y_0=2000000 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs "],"EPSG:3676":["EPSG:3676","+proj=lcc +lat_1=40.65 +lat_2=39.01666666666667 +lat_0=38.33333333333334 +lon_0=-111.5 +x_0=500000.0001504 +y_0=1999999.999992 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=ft +no_defs "],"EPSG:3677":["EPSG:3677","+proj=lcc +lat_1=40.65 +lat_2=39.01666666666667 +lat_0=38.33333333333334 +lon_0=-111.5 +x_0=500000.00001016 +y_0=2000000.00001016 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=us-ft +no_defs "],"EPSG:3678":["EPSG:3678","+proj=lcc +lat_1=41.78333333333333 +lat_2=40.71666666666667 +lat_0=40.33333333333334 +lon_0=-111.5 +x_0=500000 +y_0=1000000 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs "],"EPSG:3679":["EPSG:3679","+proj=lcc +lat_1=41.78333333333333 +lat_2=40.71666666666667 +lat_0=40.33333333333334 +lon_0=-111.5 +x_0=500000.0001504 +y_0=999999.9999960001 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=ft +no_defs "],"EPSG:3680":["EPSG:3680","+proj=lcc +lat_1=41.78333333333333 +lat_2=40.71666666666667 +lat_0=40.33333333333334 +lon_0=-111.5 +x_0=500000.00001016 +y_0=999999.9999898402 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=us-ft +no_defs "],"EPSG:3681":["EPSG:3681","+proj=lcc +lat_1=38.35 +lat_2=37.21666666666667 +lat_0=36.66666666666666 +lon_0=-111.5 +x_0=500000 +y_0=3000000 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs "],"EPSG:3682":["EPSG:3682","+proj=lcc +lat_1=38.35 +lat_2=37.21666666666667 +lat_0=36.66666666666666 +lon_0=-111.5 +x_0=500000.0001504 +y_0=2999999.999988 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=ft +no_defs "],"EPSG:3683":["EPSG:3683","+proj=lcc +lat_1=38.35 +lat_2=37.21666666666667 +lat_0=36.66666666666666 +lon_0=-111.5 +x_0=500000.00001016 +y_0=3000000 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=us-ft +no_defs "],"EPSG:3684":["EPSG:3684","+proj=tmerc +lat_0=42.5 +lon_0=-72.5 +k=0.999964286 +x_0=500000 +y_0=0 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs "],"EPSG:3685":["EPSG:3685","+proj=lcc +lat_1=39.2 +lat_2=38.03333333333333 +lat_0=37.66666666666666 +lon_0=-78.5 +x_0=3500000 +y_0=2000000 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs "],"EPSG:3686":["EPSG:3686","+proj=lcc +lat_1=39.2 +lat_2=38.03333333333333 +lat_0=37.66666666666666 +lon_0=-78.5 +x_0=3500000.0001016 +y_0=2000000.0001016 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=us-ft +no_defs "],"EPSG:3687":["EPSG:3687","+proj=lcc +lat_1=37.96666666666667 +lat_2=36.76666666666667 +lat_0=36.33333333333334 +lon_0=-78.5 +x_0=3500000 +y_0=1000000 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs "],"EPSG:3688":["EPSG:3688","+proj=lcc +lat_1=37.96666666666667 +lat_2=36.76666666666667 +lat_0=36.33333333333334 +lon_0=-78.5 +x_0=3500000.0001016 +y_0=999999.9998983998 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=us-ft +no_defs "],"EPSG:3689":["EPSG:3689","+proj=lcc +lat_1=48.73333333333333 +lat_2=47.5 +lat_0=47 +lon_0=-120.8333333333333 +x_0=500000 +y_0=0 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs "],"EPSG:3691":["EPSG:3691","+proj=lcc +lat_1=47.33333333333334 +lat_2=45.83333333333334 +lat_0=45.33333333333334 +lon_0=-120.5 +x_0=500000 +y_0=0 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs "],"EPSG:3692":["EPSG:3692","+proj=lcc +lat_1=47.33333333333334 +lat_2=45.83333333333334 +lat_0=45.33333333333334 +lon_0=-120.5 +x_0=500000.0001016001 +y_0=0 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=us-ft +no_defs "],"EPSG:3693":["EPSG:3693","+proj=lcc +lat_1=40.25 +lat_2=39 +lat_0=38.5 +lon_0=-79.5 +x_0=600000 +y_0=0 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs "],"EPSG:3694":["EPSG:3694","+proj=lcc +lat_1=38.88333333333333 +lat_2=37.48333333333333 +lat_0=37 +lon_0=-81 +x_0=600000 +y_0=0 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs "],"EPSG:3695":["EPSG:3695","+proj=lcc +lat_1=45.5 +lat_2=44.25 +lat_0=43.83333333333334 +lon_0=-90 +x_0=600000 +y_0=0 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs "],"EPSG:3696":["EPSG:3696","+proj=lcc +lat_1=45.5 +lat_2=44.25 +lat_0=43.83333333333334 +lon_0=-90 +x_0=600000 +y_0=0 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=us-ft +no_defs "],"EPSG:3697":["EPSG:3697","+proj=lcc +lat_1=46.76666666666667 +lat_2=45.56666666666667 +lat_0=45.16666666666666 +lon_0=-90 +x_0=600000 +y_0=0 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs "],"EPSG:3698":["EPSG:3698","+proj=lcc +lat_1=46.76666666666667 +lat_2=45.56666666666667 +lat_0=45.16666666666666 +lon_0=-90 +x_0=600000 +y_0=0 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=us-ft +no_defs "],"EPSG:3700":["EPSG:3700","+proj=lcc +lat_1=44.06666666666667 +lat_2=42.73333333333333 +lat_0=42 +lon_0=-90 +x_0=600000 +y_0=0 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=us-ft +no_defs "],"EPSG:3701":["EPSG:3701","+proj=tmerc +lat_0=0 +lon_0=-90 +k=0.9996 +x_0=520000 +y_0=-4480000 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs "],"EPSG:3702":["EPSG:3702","+proj=tmerc +lat_0=40.5 +lon_0=-105.1666666666667 +k=0.9999375 +x_0=200000 +y_0=0 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs "],"EPSG:3703":["EPSG:3703","+proj=tmerc +lat_0=40.5 +lon_0=-107.3333333333333 +k=0.9999375 +x_0=400000 +y_0=100000 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs "],"EPSG:3704":["EPSG:3704","+proj=tmerc +lat_0=40.5 +lon_0=-108.75 +k=0.9999375 +x_0=600000 +y_0=0 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs "],"EPSG:3705":["EPSG:3705","+proj=tmerc +lat_0=40.5 +lon_0=-110.0833333333333 +k=0.9999375 +x_0=800000 +y_0=100000 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs "],"EPSG:3706":["EPSG:3706","+proj=utm +zone=59 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs "],"EPSG:3707":["EPSG:3707","+proj=utm +zone=60 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs "],"EPSG:3708":["EPSG:3708","+proj=utm +zone=1 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs "],"EPSG:3711":["EPSG:3711","+proj=utm +zone=4 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs "],"EPSG:3712":["EPSG:3712","+proj=utm +zone=5 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs "],"EPSG:3713":["EPSG:3713","+proj=utm +zone=6 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs "],"EPSG:3714":["EPSG:3714","+proj=utm +zone=7 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs "],"EPSG:3715":["EPSG:3715","+proj=utm +zone=8 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs "],"EPSG:3716":["EPSG:3716","+proj=utm +zone=9 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs "],"EPSG:3718":["EPSG:3718","+proj=utm +zone=11 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs "],"EPSG:3719":["EPSG:3719","+proj=utm +zone=12 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs "],"EPSG:3720":["EPSG:3720","+proj=utm +zone=13 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs "],"EPSG:3721":["EPSG:3721","+proj=utm +zone=14 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs "],"EPSG:3722":["EPSG:3722","+proj=utm +zone=15 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs "],"EPSG:3723":["EPSG:3723","+proj=utm +zone=16 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs "],"EPSG:3724":["EPSG:3724","+proj=utm +zone=17 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs "],"EPSG:3726":["EPSG:3726","+proj=utm +zone=19 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs "],"EPSG:3727":["EPSG:3727","+proj=tmerc +lat_0=-21.11666666666667 +lon_0=55.53333333333333 +k=1 +x_0=160000 +y_0=50000 +ellps=intl +towgs84=94,-948,-1262,0,0,0,0 +units=m +no_defs "],"EPSG:3728":["EPSG:3728","+proj=lcc +lat_1=41.7 +lat_2=40.43333333333333 +lat_0=39.66666666666666 +lon_0=-82.5 +x_0=600000 +y_0=0 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=us-ft +no_defs "],"EPSG:3729":["EPSG:3729","+proj=lcc +lat_1=40.03333333333333 +lat_2=38.73333333333333 +lat_0=38 +lon_0=-82.5 +x_0=600000 +y_0=0 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=us-ft +no_defs "],"EPSG:4908":["EPSG:4908","+proj=geocent +ellps=GRS80 +units=m +no_defs "],"EPSG:3730":["EPSG:3730","+proj=tmerc +lat_0=40.5 +lon_0=-105.1666666666667 +k=0.9999375 +x_0=200000.00001016 +y_0=0 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=us-ft +no_defs "],"EPSG:3731":["EPSG:3731","+proj=tmerc +lat_0=40.5 +lon_0=-107.3333333333333 +k=0.9999375 +x_0=399999.99998984 +y_0=99999.99998983997 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=us-ft +no_defs "],"EPSG:3732":["EPSG:3732","+proj=tmerc +lat_0=40.5 +lon_0=-108.75 +k=0.9999375 +x_0=600000 +y_0=0 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=us-ft +no_defs "],"EPSG:3733":["EPSG:3733","+proj=tmerc +lat_0=40.5 +lon_0=-110.0833333333333 +k=0.9999375 +x_0=800000.0000101599 +y_0=99999.99998983997 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=us-ft +no_defs "],"EPSG:3735":["EPSG:3735","+proj=lcc +lat_1=40.03333333333333 +lat_2=38.73333333333333 +lat_0=38 +lon_0=-82.5 +x_0=600000 +y_0=0 +datum=NAD83 +units=us-ft +no_defs "],"EPSG:3736":["EPSG:3736","+proj=tmerc +lat_0=40.5 +lon_0=-105.1666666666667 +k=0.9999375 +x_0=200000.00001016 +y_0=0 +datum=NAD83 +units=us-ft +no_defs "],"EPSG:3737":["EPSG:3737","+proj=tmerc +lat_0=40.5 +lon_0=-107.3333333333333 +k=0.9999375 +x_0=399999.99998984 +y_0=99999.99998983997 +datum=NAD83 +units=us-ft +no_defs "],"EPSG:3880":["EPSG:3880","+proj=tmerc +lat_0=0 +lon_0=26 +k=1 +x_0=26500000 +y_0=0 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs "],"EPSG:3738":["EPSG:3738","+proj=tmerc +lat_0=40.5 +lon_0=-108.75 +k=0.9999375 +x_0=600000 +y_0=0 +datum=NAD83 +units=us-ft +no_defs "],"EPSG:3739":["EPSG:3739","+proj=tmerc +lat_0=40.5 +lon_0=-110.0833333333333 +k=0.9999375 +x_0=800000.0000101599 +y_0=99999.99998983997 +datum=NAD83 +units=us-ft +no_defs "],"EPSG:3741":["EPSG:3741","+proj=utm +zone=11 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs "],"EPSG:3743":["EPSG:3743","+proj=utm +zone=13 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs "],"EPSG:3744":["EPSG:3744","+proj=utm +zone=14 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs "],"EPSG:3746":["EPSG:3746","+proj=utm +zone=16 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs "],"EPSG:3747":["EPSG:3747","+proj=utm +zone=17 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs "],"EPSG:3748":["EPSG:3748","+proj=utm +zone=18 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs "],"EPSG:3749":["EPSG:3749","+proj=utm +zone=19 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs "],"EPSG:3750":["EPSG:3750","+proj=utm +zone=4 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs "],"EPSG:3751":["EPSG:3751","+proj=utm +zone=5 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs "],"EPSG:3752":["EPSG:3752","+proj=merc +lon_0=100 +lat_ts=-41 +x_0=0 +y_0=0 +datum=WGS84 +units=m +no_defs "],"EPSG:3753":["EPSG:3753","+proj=lcc +lat_1=41.7 +lat_2=40.43333333333333 +lat_0=39.66666666666666 +lon_0=-82.5 +x_0=600000 +y_0=0 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=us-ft +no_defs "],"EPSG:3754":["EPSG:3754","+proj=lcc +lat_1=40.03333333333333 +lat_2=38.73333333333333 +lat_0=38 +lon_0=-82.5 +x_0=600000 +y_0=0 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=us-ft +no_defs "],"EPSG:3755":["EPSG:3755","+proj=tmerc +lat_0=40.5 +lon_0=-105.1666666666667 +k=0.9999375 +x_0=200000.00001016 +y_0=0 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=us-ft +no_defs "],"EPSG:3756":["EPSG:3756","+proj=tmerc +lat_0=40.5 +lon_0=-107.3333333333333 +k=0.9999375 +x_0=399999.99998984 +y_0=99999.99998983997 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=us-ft +no_defs "],"EPSG:4910":["EPSG:4910","+proj=geocent +ellps=GRS80 +units=m +no_defs "],"EPSG:3757":["EPSG:3757","+proj=tmerc +lat_0=40.5 +lon_0=-108.75 +k=0.9999375 +x_0=600000 +y_0=0 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=us-ft +no_defs "],"EPSG:3758":["EPSG:3758","+proj=tmerc +lat_0=40.5 +lon_0=-110.0833333333333 +k=0.9999375 +x_0=800000.0000101599 +y_0=99999.99998983997 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=us-ft +no_defs "],"EPSG:3759":["EPSG:3759","+proj=tmerc +lat_0=21.16666666666667 +lon_0=-158 +k=0.99999 +x_0=500000.00001016 +y_0=0 +datum=NAD83 +units=us-ft +no_defs "],"EPSG:3760":["EPSG:3760","+proj=tmerc +lat_0=21.16666666666667 +lon_0=-158 +k=0.99999 +x_0=500000.00001016 +y_0=0 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=us-ft +no_defs "],"EPSG:3761":["EPSG:3761","+proj=utm +zone=22 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs "],"EPSG:3762":["EPSG:3762","+proj=lcc +lat_1=-54 +lat_2=-54.75 +lat_0=-55 +lon_0=-37 +x_0=0 +y_0=0 +datum=WGS84 +units=m +no_defs "],"EPSG:3764":["EPSG:3764","+proj=tmerc +lat_0=-44 +lon_0=-176.5 +k=1 +x_0=400000 +y_0=800000 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs "],"EPSG:4911":["EPSG:4911","+proj=geocent +ellps=GRS80 +units=m +no_defs "],"EPSG:3766":["EPSG:3766","+proj=lcc +lat_1=45.91666666666666 +lat_2=43.08333333333334 +lat_0=0 +lon_0=16.5 +x_0=0 +y_0=0 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs "],"EPSG:3767":["EPSG:3767","+proj=utm +zone=33 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs "],"EPSG:3768":["EPSG:3768","+proj=utm +zone=34 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs "],"EPSG:3769":["EPSG:3769","+proj=utm +zone=20 +ellps=clrk66 +towgs84=-73,213,296,0,0,0,0 +units=m +no_defs "],"EPSG:3770":["EPSG:3770","+proj=tmerc +lat_0=32 +lon_0=-64.75 +k=1 +x_0=550000 +y_0=100000 +ellps=WGS84 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs "],"EPSG:3771":["EPSG:3771","+proj=tmerc +lat_0=0 +lon_0=-111 +k=0.9999 +x_0=0 +y_0=0 +datum=NAD27 +units=m +no_defs "],"EPSG:3772":["EPSG:3772","+proj=tmerc +lat_0=0 +lon_0=-114 +k=0.9999 +x_0=0 +y_0=0 +datum=NAD27 +units=m +no_defs "],"EPSG:3773":["EPSG:3773","+proj=tmerc +lat_0=0 +lon_0=-117 +k=0.9999 +x_0=0 +y_0=0 +datum=NAD27 +units=m +no_defs "],"EPSG:3774":["EPSG:3774","+proj=tmerc +lat_0=0 +lon_0=-120 +k=0.9999 +x_0=0 +y_0=0 +datum=NAD27 +units=m +no_defs "],"EPSG:3775":["EPSG:3775","+proj=tmerc +lat_0=0 +lon_0=-111 +k=0.9999 +x_0=0 +y_0=0 +datum=NAD83 +units=m +no_defs "],"EPSG:3776":["EPSG:3776","+proj=tmerc +lat_0=0 +lon_0=-114 +k=0.9999 +x_0=0 +y_0=0 +datum=NAD83 +units=m +no_defs "],"EPSG:3777":["EPSG:3777","+proj=tmerc +lat_0=0 +lon_0=-117 +k=0.9999 +x_0=0 +y_0=0 +datum=NAD83 +units=m +no_defs "],"EPSG:3778":["EPSG:3778","+proj=tmerc +lat_0=0 +lon_0=-120 +k=0.9999 +x_0=0 +y_0=0 +datum=NAD83 +units=m +no_defs "],"EPSG:3779":["EPSG:3779","+proj=tmerc +lat_0=0 +lon_0=-111 +k=0.9999 +x_0=0 +y_0=0 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs "],"EPSG:3780":["EPSG:3780","+proj=tmerc +lat_0=0 +lon_0=-114 +k=0.9999 +x_0=0 +y_0=0 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs "],"EPSG:3781":["EPSG:3781","+proj=tmerc +lat_0=0 +lon_0=-117 +k=0.9999 +x_0=0 +y_0=0 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs "],"EPSG:3782":["EPSG:3782","+proj=tmerc +lat_0=0 +lon_0=-120 +k=0.9999 +x_0=0 +y_0=0 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs "],"EPSG:3783":["EPSG:3783","+proj=tmerc +lat_0=-25.06855261111111 +lon_0=-130.1129671111111 +k=1 +x_0=14200 +y_0=15500 +ellps=WGS84 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs "],"EPSG:3784":["EPSG:3784","+proj=utm +zone=9 +south +ellps=intl +towgs84=185,165,42,0,0,0,0 +units=m +no_defs "],"EPSG:3787":["EPSG:3787","+proj=tmerc +lat_0=0 +lon_0=15 +k=0.9999 +x_0=500000 +y_0=-5000000 +datum=hermannskogel +units=m +no_defs "],"EPSG:3788":["EPSG:3788","+proj=tmerc +lat_0=0 +lon_0=166 +k=1 +x_0=3500000 +y_0=10000000 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs "],"EPSG:3789":["EPSG:3789","+proj=tmerc +lat_0=0 +lon_0=169 +k=1 +x_0=3500000 +y_0=10000000 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs "],"EPSG:3790":["EPSG:3790","+proj=tmerc +lat_0=0 +lon_0=179 +k=1 +x_0=3500000 +y_0=10000000 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs "],"EPSG:3791":["EPSG:3791","+proj=tmerc +lat_0=0 +lon_0=-178 +k=1 +x_0=3500000 +y_0=10000000 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs "],"EPSG:3793":["EPSG:3793","+proj=tmerc +lat_0=0 +lon_0=-176.5 +k=1 +x_0=3500000 +y_0=10000000 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs "],"EPSG:3794":["EPSG:3794","+proj=tmerc +lat_0=0 +lon_0=15 +k=0.9999 +x_0=500000 +y_0=-5000000 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs "],"EPSG:3974":["EPSG:3974","+proj=laea +lat_0=-90 +lon_0=0 +x_0=0 +y_0=0 +datum=WGS84 +units=m +no_defs "],"EPSG:3795":["EPSG:3795","+proj=lcc +lat_1=23 +lat_2=21.7 +lat_0=22.35 +lon_0=-81 +x_0=500000 +y_0=280296.016 +datum=NAD27 +units=m +no_defs "],"EPSG:3796":["EPSG:3796","+proj=lcc +lat_1=21.3 +lat_2=20.13333333333333 +lat_0=20.71666666666667 +lon_0=-76.83333333333333 +x_0=500000 +y_0=229126.939 +datum=NAD27 +units=m +no_defs "],"EPSG:3797":["EPSG:3797","+proj=lcc +lat_1=50 +lat_2=46 +lat_0=44 +lon_0=-70 +x_0=800000 +y_0=0 +datum=NAD27 +units=m +no_defs "],"EPSG:3798":["EPSG:3798","+proj=lcc +lat_1=50 +lat_2=46 +lat_0=44 +lon_0=-70 +x_0=800000 +y_0=0 +datum=NAD83 +units=m +no_defs "],"EPSG:3799":["EPSG:3799","+proj=lcc +lat_1=50 +lat_2=46 +lat_0=44 +lon_0=-70 +x_0=800000 +y_0=0 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs "],"EPSG:3800":["EPSG:3800","+proj=tmerc +lat_0=0 +lon_0=-120 +k=0.9999 +x_0=0 +y_0=0 +datum=NAD27 +units=m +no_defs "],"EPSG:3801":["EPSG:3801","+proj=tmerc +lat_0=0 +lon_0=-120 +k=0.9999 +x_0=0 +y_0=0 +datum=NAD83 +units=m +no_defs "],"EPSG:3802":["EPSG:3802","+proj=tmerc +lat_0=0 +lon_0=-120 +k=0.9999 +x_0=0 +y_0=0 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs "],"EPSG:4912":["EPSG:4912","+proj=geocent +ellps=GRS80 +units=m +no_defs "],"EPSG:3814":["EPSG:3814","+proj=tmerc +lat_0=32.5 +lon_0=-89.75 +k=0.9998335 +x_0=500000 +y_0=1300000 +datum=NAD83 +units=m +no_defs "],"EPSG:3816":["EPSG:3816","+proj=tmerc +lat_0=32.5 +lon_0=-89.75 +k=0.9998335 +x_0=500000 +y_0=1300000 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs "],"EPSG:3825":["EPSG:3825","+proj=tmerc +lat_0=0 +lon_0=119 +k=0.9999 +x_0=250000 +y_0=0 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs "],"EPSG:3827":["EPSG:3827","+proj=tmerc +lat_0=0 +lon_0=119 +k=0.9999 +x_0=250000 +y_0=0 +ellps=aust_SA +units=m +no_defs "],"EPSG:3829":["EPSG:3829","+proj=utm +zone=51 +ellps=intl +towgs84=-637,-549,-203,0,0,0,0 +units=m +no_defs "],"EPSG:3833":["EPSG:3833","+proj=tmerc +lat_0=0 +lon_0=9 +k=1 +x_0=2500000 +y_0=0 +ellps=krass +towgs84=2.3287,-147.0425,-92.0802,-0.3092483,0.32482185,0.49729934,5.68906266 +units=m +no_defs "],"EPSG:3834":["EPSG:3834","+proj=tmerc +lat_0=0 +lon_0=9 +k=1 +x_0=2500000 +y_0=0 +ellps=krass +towgs84=26,-121,-78,0,0,0,0 +units=m +no_defs "],"EPSG:3835":["EPSG:3835","+proj=tmerc +lat_0=0 +lon_0=15 +k=1 +x_0=3500000 +y_0=0 +ellps=krass +towgs84=26,-121,-78,0,0,0,0 +units=m +no_defs "],"EPSG:3836":["EPSG:3836","+proj=tmerc +lat_0=0 +lon_0=21 +k=1 +x_0=4500000 +y_0=0 +ellps=krass +towgs84=26,-121,-78,0,0,0,0 +units=m +no_defs "],"EPSG:3837":["EPSG:3837","+proj=tmerc +lat_0=0 +lon_0=9 +k=1 +x_0=3500000 +y_0=0 +ellps=krass +towgs84=2.3287,-147.0425,-92.0802,-0.3092483,0.32482185,0.49729934,5.68906266 +units=m +no_defs "],"EPSG:3838":["EPSG:3838","+proj=tmerc +lat_0=0 +lon_0=12 +k=1 +x_0=4500000 +y_0=0 +ellps=krass +towgs84=2.3287,-147.0425,-92.0802,-0.3092483,0.32482185,0.49729934,5.68906266 +units=m +no_defs "],"EPSG:3839":["EPSG:3839","+proj=tmerc +lat_0=0 +lon_0=27 +k=1 +x_0=9500000 +y_0=0 +ellps=krass +towgs84=2.3287,-147.0425,-92.0802,-0.3092483,0.32482185,0.49729934,5.68906266 +units=m +no_defs "],"EPSG:3840":["EPSG:3840","+proj=tmerc +lat_0=0 +lon_0=30 +k=1 +x_0=10500000 +y_0=0 +ellps=krass +towgs84=2.3287,-147.0425,-92.0802,-0.3092483,0.32482185,0.49729934,5.68906266 +units=m +no_defs "],"EPSG:3841":["EPSG:3841","+proj=tmerc +lat_0=0 +lon_0=18 +k=1 +x_0=6500000 +y_0=0 +ellps=krass +towgs84=26,-121,-78,0,0,0,0 +units=m +no_defs "],"EPSG:3842":["EPSG:3842","+proj=tmerc +lat_0=0 +lon_0=18 +k=1 +x_0=6500000 +y_0=0 +ellps=krass +towgs84=26,-121,-78,0,0,0,0 +units=m +no_defs "],"EPSG:3843":["EPSG:3843","+proj=tmerc +lat_0=0 +lon_0=18 +k=1 +x_0=6500000 +y_0=0 +ellps=krass +towgs84=26,-121,-78,0,0,0,0 +units=m +no_defs "],"EPSG:3844":["EPSG:3844","+proj=sterea +lat_0=46 +lon_0=25 +k=0.99975 +x_0=500000 +y_0=500000 +ellps=krass +towgs84=2.329,-147.042,-92.08,0.309,-0.325,-0.497,5.69 +units=m +no_defs "],"EPSG:3845":["EPSG:3845","+proj=tmerc +lat_0=0 +lon_0=11.30625 +k=1.000006 +x_0=1500025.141 +y_0=-667.282 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs "],"EPSG:3846":["EPSG:3846","+proj=tmerc +lat_0=0 +lon_0=13.55626666666667 +k=1.0000058 +x_0=1500044.695 +y_0=-667.13 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs "],"EPSG:3847":["EPSG:3847","+proj=tmerc +lat_0=0 +lon_0=15.80628452944445 +k=1.00000561024 +x_0=1500064.274 +y_0=-667.711 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs "],"EPSG:3848":["EPSG:3848","+proj=tmerc +lat_0=0 +lon_0=18.0563 +k=1.0000054 +x_0=1500083.521 +y_0=-668.8440000000001 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs "],"EPSG:3849":["EPSG:3849","+proj=tmerc +lat_0=0 +lon_0=20.30631666666667 +k=1.0000052 +x_0=1500102.765 +y_0=-670.706 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs "],"EPSG:3850":["EPSG:3850","+proj=tmerc +lat_0=0 +lon_0=22.55633333333333 +k=1.0000049 +x_0=1500121.846 +y_0=-672.557 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs "],"EPSG:3851":["EPSG:3851","+proj=lcc +lat_1=-37.5 +lat_2=-44.5 +lat_0=-41 +lon_0=173 +x_0=3000000 +y_0=7000000 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs "],"EPSG:3852":["EPSG:3852","+proj=lcc +lat_1=-76.66666666666667 +lat_2=-79.33333333333333 +lat_0=-90 +lon_0=157 +x_0=500000 +y_0=0 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs "],"EPSG:3854":["EPSG:3854","+proj=tmerc +lat_0=0 +lon_0=18.05787 +k=0.99999506 +x_0=100182.7406 +y_0=-6500620.1207 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs "],"EPSG:3873":["EPSG:3873","+proj=tmerc +lat_0=0 +lon_0=19 +k=1 +x_0=19500000 +y_0=0 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs "],"EPSG:3874":["EPSG:3874","+proj=tmerc +lat_0=0 +lon_0=20 +k=1 +x_0=20500000 +y_0=0 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs "],"EPSG:3875":["EPSG:3875","+proj=tmerc +lat_0=0 +lon_0=21 +k=1 +x_0=21500000 +y_0=0 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs "],"EPSG:3876":["EPSG:3876","+proj=tmerc +lat_0=0 +lon_0=22 +k=1 +x_0=22500000 +y_0=0 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs "],"EPSG:3877":["EPSG:3877","+proj=tmerc +lat_0=0 +lon_0=23 +k=1 +x_0=23500000 +y_0=0 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs "],"EPSG:3878":["EPSG:3878","+proj=tmerc +lat_0=0 +lon_0=24 +k=1 +x_0=24500000 +y_0=0 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs "],"EPSG:3881":["EPSG:3881","+proj=tmerc +lat_0=0 +lon_0=27 +k=1 +x_0=27500000 +y_0=0 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs "],"EPSG:3882":["EPSG:3882","+proj=tmerc +lat_0=0 +lon_0=28 +k=1 +x_0=28500000 +y_0=0 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs "],"EPSG:3883":["EPSG:3883","+proj=tmerc +lat_0=0 +lon_0=29 +k=1 +x_0=29500000 +y_0=0 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs "],"EPSG:3884":["EPSG:3884","+proj=tmerc +lat_0=0 +lon_0=30 +k=1 +x_0=30500000 +y_0=0 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs "],"EPSG:3885":["EPSG:3885","+proj=tmerc +lat_0=0 +lon_0=31 +k=1 +x_0=31500000 +y_0=0 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs "],"EPSG:3890":["EPSG:3890","+proj=utm +zone=37 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs "],"EPSG:3891":["EPSG:3891","+proj=utm +zone=38 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs "],"EPSG:3892":["EPSG:3892","+proj=utm +zone=39 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs "],"EPSG:3893":["EPSG:3893","+proj=tmerc +lat_0=29.02626833333333 +lon_0=46.5 +k=0.9994 +x_0=800000 +y_0=0 +ellps=intl +towgs84=-87,-98,-121,0,0,0,0 +units=m +no_defs "],"EPSG:3909":["EPSG:3909","+proj=tmerc +lat_0=0 +lon_0=21 +k=0.9999 +x_0=7500000 +y_0=0 +ellps=bessel +towgs84=682,-203,480,0,0,0,0 +units=m +no_defs "],"EPSG:3910":["EPSG:3910","+proj=tmerc +lat_0=0 +lon_0=24 +k=0.9999 +x_0=8500000 +y_0=0 +ellps=bessel +towgs84=682,-203,480,0,0,0,0 +units=m +no_defs "],"EPSG:3911":["EPSG:3911","+proj=tmerc +lat_0=0 +lon_0=15 +k=0.9999 +x_0=500000 +y_0=0 +ellps=bessel +towgs84=682,-203,480,0,0,0,0 +units=m +no_defs "],"EPSG:3912":["EPSG:3912","+proj=tmerc +lat_0=0 +lon_0=15 +k=0.9999 +x_0=500000 +y_0=-5000000 +ellps=bessel +towgs84=682,-203,480,0,0,0,0 +units=m +no_defs "],"EPSG:3920":["EPSG:3920","+proj=utm +zone=20 +ellps=clrk66 +towgs84=11,72,-101,0,0,0,0 +units=m +no_defs "],"EPSG:3942":["EPSG:3942","+proj=lcc +lat_1=41.25 +lat_2=42.75 +lat_0=42 +lon_0=3 +x_0=1700000 +y_0=1200000 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs "],"EPSG:3944":["EPSG:3944","+proj=lcc +lat_1=43.25 +lat_2=44.75 +lat_0=44 +lon_0=3 +x_0=1700000 +y_0=3200000 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs "],"EPSG:3976":["EPSG:3976","+proj=stere +lat_0=-90 +lat_ts=-70 +lon_0=0 +k=1 +x_0=0 +y_0=0 +datum=WGS84 +units=m +no_defs "],"EPSG:3945":["EPSG:3945","+proj=lcc +lat_1=44.25 +lat_2=45.75 +lat_0=45 +lon_0=3 +x_0=1700000 +y_0=4200000 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs "],"EPSG:3946":["EPSG:3946","+proj=lcc +lat_1=45.25 +lat_2=46.75 +lat_0=46 +lon_0=3 +x_0=1700000 +y_0=5200000 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs "],"EPSG:3947":["EPSG:3947","+proj=lcc +lat_1=46.25 +lat_2=47.75 +lat_0=47 +lon_0=3 +x_0=1700000 +y_0=6200000 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs "],"EPSG:3948":["EPSG:3948","+proj=lcc +lat_1=47.25 +lat_2=48.75 +lat_0=48 +lon_0=3 +x_0=1700000 +y_0=7200000 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs "],"EPSG:3949":["EPSG:3949","+proj=lcc +lat_1=48.25 +lat_2=49.75 +lat_0=49 +lon_0=3 +x_0=1700000 +y_0=8200000 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs "],"EPSG:3950":["EPSG:3950","+proj=lcc +lat_1=49.25 +lat_2=50.75 +lat_0=50 +lon_0=3 +x_0=1700000 +y_0=9200000 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs "],"EPSG:3968":["EPSG:3968","+proj=lcc +lat_1=37 +lat_2=39.5 +lat_0=36 +lon_0=-79.5 +x_0=0 +y_0=0 +datum=NAD83 +units=m +no_defs "],"EPSG:3969":["EPSG:3969","+proj=lcc +lat_1=37 +lat_2=39.5 +lat_0=36 +lon_0=-79.5 +x_0=0 +y_0=0 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs "],"EPSG:3970":["EPSG:3970","+proj=lcc +lat_1=37 +lat_2=39.5 +lat_0=36 +lon_0=-79.5 +x_0=0 +y_0=0 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs "],"EPSG:3979":["EPSG:3979","+proj=lcc +lat_1=49 +lat_2=77 +lat_0=49 +lon_0=-95 +x_0=0 +y_0=0 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs "],"EPSG:3985":["EPSG:3985","+proj=lcc +lat_1=-6.5 +lat_2=-11.5 +lat_0=9 +lon_0=26 +x_0=500000 +y_0=500000 +ellps=clrk66 +towgs84=-103.746,-9.614,-255.95,0,0,0,0 +units=m +no_defs "],"EPSG:3986":["EPSG:3986","+proj=tmerc +lat_0=-9 +lon_0=30 +k=1 +x_0=200000 +y_0=500000 +ellps=clrk66 +towgs84=-103.746,-9.614,-255.95,0,0,0,0 +units=m +no_defs "],"EPSG:3987":["EPSG:3987","+proj=tmerc +lat_0=-9 +lon_0=28 +k=1 +x_0=200000 +y_0=500000 +ellps=clrk66 +towgs84=-103.746,-9.614,-255.95,0,0,0,0 +units=m +no_defs "],"EPSG:3988":["EPSG:3988","+proj=tmerc +lat_0=-9 +lon_0=26 +k=1 +x_0=200000 +y_0=500000 +ellps=clrk66 +towgs84=-103.746,-9.614,-255.95,0,0,0,0 +units=m +no_defs "],"EPSG:3989":["EPSG:3989","+proj=tmerc +lat_0=-9 +lon_0=24 +k=1 +x_0=200000 +y_0=500000 +ellps=clrk66 +towgs84=-103.746,-9.614,-255.95,0,0,0,0 +units=m +no_defs "],"EPSG:3991":["EPSG:3991","+proj=lcc +lat_1=18.43333333333333 +lat_2=18.03333333333333 +lat_0=17.83333333333333 +lon_0=-66.43333333333334 +x_0=152400.3048006096 +y_0=0 +ellps=clrk66 +towgs84=11,72,-101,0,0,0,0 +units=us-ft +no_defs "],"EPSG:3992":["EPSG:3992","+proj=lcc +lat_1=18.43333333333333 +lat_2=18.03333333333333 +lat_0=17.83333333333333 +lon_0=-66.43333333333334 +x_0=152400.3048006096 +y_0=30480.06096012192 +ellps=clrk66 +towgs84=11,72,-101,0,0,0,0 +units=us-ft +no_defs "],"EPSG:3996":["EPSG:3996","+proj=stere +lat_0=90 +lat_ts=75 +lon_0=0 +k=1 +x_0=0 +y_0=0 +datum=WGS84 +units=m +no_defs "],"EPSG:3997":["EPSG:3997","+proj=tmerc +lat_0=0 +lon_0=55.33333333333334 +k=1 +x_0=500000 +y_0=0 +datum=WGS84 +units=m +no_defs "],"EPSG:4026":["EPSG:4026","+proj=tmerc +lat_0=0 +lon_0=28.4 +k=0.9999400000000001 +x_0=200000 +y_0=-5000000 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs "],"EPSG:4038":["EPSG:4038","+proj=utm +zone=36 +datum=WGS84 +units=m +no_defs "],"EPSG:4048":["EPSG:4048","+proj=tmerc +lat_0=0 +lon_0=12 +k=0.9999 +x_0=500000 +y_0=10000000 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs "],"EPSG:4049":["EPSG:4049","+proj=tmerc +lat_0=0 +lon_0=14 +k=0.9999 +x_0=500000 +y_0=10000000 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs "],"EPSG:4050":["EPSG:4050","+proj=tmerc +lat_0=0 +lon_0=16 +k=0.9999 +x_0=500000 +y_0=10000000 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs "],"EPSG:4051":["EPSG:4051","+proj=tmerc +lat_0=0 +lon_0=18 +k=0.9999 +x_0=500000 +y_0=10000000 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs "],"EPSG:4056":["EPSG:4056","+proj=tmerc +lat_0=0 +lon_0=20 +k=0.9999 +x_0=500000 +y_0=10000000 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs "],"EPSG:4057":["EPSG:4057","+proj=tmerc +lat_0=0 +lon_0=22 +k=0.9999 +x_0=500000 +y_0=10000000 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs "],"EPSG:4058":["EPSG:4058","+proj=tmerc +lat_0=0 +lon_0=24 +k=0.9999 +x_0=500000 +y_0=10000000 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs "],"EPSG:4059":["EPSG:4059","+proj=tmerc +lat_0=0 +lon_0=26 +k=0.9999 +x_0=500000 +y_0=10000000 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs "],"EPSG:4060":["EPSG:4060","+proj=tmerc +lat_0=0 +lon_0=28 +k=0.9999 +x_0=500000 +y_0=10000000 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs "],"EPSG:4061":["EPSG:4061","+proj=utm +zone=33 +south +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs "],"EPSG:4062":["EPSG:4062","+proj=utm +zone=34 +south +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs "],"EPSG:4063":["EPSG:4063","+proj=utm +zone=35 +south +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs "],"EPSG:4071":["EPSG:4071","+proj=utm +zone=23 +south +ellps=intl +towgs84=-143.87,243.37,-33.52,0,0,0,0 +units=m +no_defs "],"EPSG:4082":["EPSG:4082","+proj=utm +zone=27 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs "],"EPSG:4088":["EPSG:4088","+proj=eqc +lat_ts=0 +lat_0=0 +lon_0=0 +x_0=0 +y_0=0 +a=6371007 +b=6371007 +units=m +no_defs "],"EPSG:4093":["EPSG:4093","+proj=tmerc +lat_0=0 +lon_0=9 +k=0.99998 +x_0=200000 +y_0=-5000000 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs "],"EPSG:4095":["EPSG:4095","+proj=tmerc +lat_0=0 +lon_0=11.75 +k=0.99998 +x_0=600000 +y_0=-5000000 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs "],"EPSG:4096":["EPSG:4096","+proj=tmerc +lat_0=0 +lon_0=15 +k=1 +x_0=800000 +y_0=-5000000 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs "],"EPSG:4217":["EPSG:4217","+proj=tmerc +lat_0=0 +lon_0=171 +k=0.9996 +x_0=500000.001016002 +y_0=0 +datum=NAD83 +units=us-ft +no_defs "],"EPSG:4390":["EPSG:4390","+proj=cass +lat_0=2.042583333333333 +lon_0=103.5627583333333 +x_0=0 +y_0=0 +a=6377304.063 +b=6356103.038993155 +towgs84=-11,851,5,0,0,0,0 +units=m +no_defs "],"EPSG:4391":["EPSG:4391","+proj=cass +lat_0=2.712283333333334 +lon_0=101.9411666666667 +x_0=-242.005 +y_0=-948.547 +a=6377304.063 +b=6356103.038993155 +towgs84=-11,851,5,0,0,0,0 +units=m +no_defs "],"EPSG:4392":["EPSG:4392","+proj=cass +lat_0=3.710972222222222 +lon_0=102.4361777777778 +x_0=0 +y_0=0 +a=6377304.063 +b=6356103.038993155 +towgs84=-11,851,5,0,0,0,0 +units=m +no_defs "],"EPSG:4914":["EPSG:4914","+proj=geocent +ellps=GRS80 +units=m +no_defs "],"EPSG:4393":["EPSG:4393","+proj=cass +lat_0=3.680344444444444 +lon_0=101.5082444444444 +x_0=-21759.438 +y_0=55960.906 +a=6377304.063 +b=6356103.038993155 +towgs84=-11,851,5,0,0,0,0 +units=m +no_defs "],"EPSG:4394":["EPSG:4394","+proj=cass +lat_0=4.946141666666667 +lon_0=102.8952083333333 +x_0=0 +y_0=0 +a=6377304.063 +b=6356103.038993155 +towgs84=-11,851,5,0,0,0,0 +units=m +no_defs "],"EPSG:4395":["EPSG:4395","+proj=cass +lat_0=5.421325 +lon_0=100.3458694444444 +x_0=0 +y_0=0 +a=6377304.063 +b=6356103.038993155 +towgs84=-11,851,5,0,0,0,0 +units=m +no_defs "],"EPSG:4396":["EPSG:4396","+proj=cass +lat_0=5.965147222222223 +lon_0=100.6375944444444 +x_0=0 +y_0=0 +a=6377304.063 +b=6356103.038993155 +towgs84=-11,851,5,0,0,0,0 +units=m +no_defs "],"EPSG:4397":["EPSG:4397","+proj=cass +lat_0=4.859380555555555 +lon_0=100.8167666666667 +x_0=0 +y_0=133453.669 +a=6377304.063 +b=6356103.038993155 +towgs84=-11,851,5,0,0,0,0 +units=m +no_defs "],"EPSG:4398":["EPSG:4398","+proj=cass +lat_0=5.893922222222222 +lon_0=102.1772916666667 +x_0=0 +y_0=0 +a=6377304.063 +b=6356103.038993155 +towgs84=-11,851,5,0,0,0,0 +units=m +no_defs "],"EPSG:4399":["EPSG:4399","+proj=tmerc +lat_0=0 +lon_0=171 +k=0.9996 +x_0=500000.001016002 +y_0=0 +datum=NAD27 +units=us-ft +no_defs "],"EPSG:4400":["EPSG:4400","+proj=tmerc +lat_0=0 +lon_0=177 +k=0.9996 +x_0=500000.001016002 +y_0=0 +datum=NAD27 +units=us-ft +no_defs "],"EPSG:4401":["EPSG:4401","+proj=tmerc +lat_0=0 +lon_0=-177 +k=0.9996 +x_0=500000.001016002 +y_0=0 +datum=NAD27 +units=us-ft +no_defs "],"EPSG:4915":["EPSG:4915","+proj=geocent +ellps=GRS80 +units=m +no_defs "],"EPSG:4402":["EPSG:4402","+proj=tmerc +lat_0=0 +lon_0=-171 +k=0.9996 +x_0=500000.001016002 +y_0=0 +datum=NAD27 +units=us-ft +no_defs "],"EPSG:4403":["EPSG:4403","+proj=tmerc +lat_0=0 +lon_0=-165 +k=0.9996 +x_0=500000.001016002 +y_0=0 +datum=NAD27 +units=us-ft +no_defs "],"EPSG:4404":["EPSG:4404","+proj=tmerc +lat_0=0 +lon_0=-159 +k=0.9996 +x_0=500000.001016002 +y_0=0 +datum=NAD27 +units=us-ft +no_defs "],"EPSG:4405":["EPSG:4405","+proj=tmerc +lat_0=0 +lon_0=-153 +k=0.9996 +x_0=500000.001016002 +y_0=0 +datum=NAD27 +units=us-ft +no_defs "],"EPSG:4406":["EPSG:4406","+proj=tmerc +lat_0=0 +lon_0=-147 +k=0.9996 +x_0=500000.001016002 +y_0=0 +datum=NAD27 +units=us-ft +no_defs "],"EPSG:4407":["EPSG:4407","+proj=tmerc +lat_0=0 +lon_0=-141 +k=0.9996 +x_0=500000.001016002 +y_0=0 +datum=NAD27 +units=us-ft +no_defs "],"EPSG:4408":["EPSG:4408","+proj=tmerc +lat_0=0 +lon_0=-135 +k=0.9996 +x_0=500000.001016002 +y_0=0 +datum=NAD27 +units=us-ft +no_defs "],"EPSG:4409":["EPSG:4409","+proj=tmerc +lat_0=0 +lon_0=-129 +k=0.9996 +x_0=500000.001016002 +y_0=0 +datum=NAD27 +units=us-ft +no_defs "],"EPSG:4410":["EPSG:4410","+proj=tmerc +lat_0=0 +lon_0=-123 +k=0.9996 +x_0=500000.001016002 +y_0=0 +datum=NAD27 +units=us-ft +no_defs "],"EPSG:4411":["EPSG:4411","+proj=tmerc +lat_0=0 +lon_0=-117 +k=0.9996 +x_0=500000.001016002 +y_0=0 +datum=NAD27 +units=us-ft +no_defs "],"EPSG:4412":["EPSG:4412","+proj=tmerc +lat_0=0 +lon_0=-111 +k=0.9996 +x_0=500000.001016002 +y_0=0 +datum=NAD27 +units=us-ft +no_defs "],"EPSG:4413":["EPSG:4413","+proj=tmerc +lat_0=0 +lon_0=-105 +k=0.9996 +x_0=500000.001016002 +y_0=0 +datum=NAD27 +units=us-ft +no_defs "],"EPSG:4414":["EPSG:4414","+proj=tmerc +lat_0=13.5 +lon_0=144.75 +k=1 +x_0=100000 +y_0=200000 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs "],"EPSG:4415":["EPSG:4415","+proj=lcc +lat_1=-6.5 +lat_2=-11.5 +lat_0=-9 +lon_0=26 +x_0=500000 +y_0=500000 +ellps=clrk66 +towgs84=-103.746,-9.614,-255.95,0,0,0,0 +units=m +no_defs "],"EPSG:4417":["EPSG:4417","+proj=tmerc +lat_0=0 +lon_0=21 +k=1 +x_0=7500000 +y_0=0 +ellps=krass +towgs84=26,-121,-78,0,0,0,0 +units=m +no_defs "],"EPSG:4418":["EPSG:4418","+proj=tmerc +lat_0=0 +lon_0=-75 +k=0.9996 +x_0=500000.001016002 +y_0=0 +datum=NAD27 +units=us-ft +no_defs "],"EPSG:4419":["EPSG:4419","+proj=tmerc +lat_0=0 +lon_0=-69 +k=0.9996 +x_0=500000.001016002 +y_0=0 +datum=NAD27 +units=us-ft +no_defs "],"EPSG:4420":["EPSG:4420","+proj=tmerc +lat_0=0 +lon_0=177 +k=0.9996 +x_0=500000.001016002 +y_0=0 +datum=NAD83 +units=us-ft +no_defs "],"EPSG:4421":["EPSG:4421","+proj=tmerc +lat_0=0 +lon_0=-177 +k=0.9996 +x_0=500000.001016002 +y_0=0 +datum=NAD83 +units=us-ft +no_defs "],"EPSG:4491":["EPSG:4491","+proj=tmerc +lat_0=0 +lon_0=75 +k=1 +x_0=13500000 +y_0=0 +ellps=GRS80 +units=m +no_defs "],"EPSG:4422":["EPSG:4422","+proj=tmerc +lat_0=0 +lon_0=-171 +k=0.9996 +x_0=500000.001016002 +y_0=0 +datum=NAD83 +units=us-ft +no_defs "],"EPSG:4423":["EPSG:4423","+proj=tmerc +lat_0=0 +lon_0=-165 +k=0.9996 +x_0=500000.001016002 +y_0=0 +datum=NAD83 +units=us-ft +no_defs "],"EPSG:4424":["EPSG:4424","+proj=tmerc +lat_0=0 +lon_0=-159 +k=0.9996 +x_0=500000.001016002 +y_0=0 +datum=NAD83 +units=us-ft +no_defs "],"EPSG:4425":["EPSG:4425","+proj=tmerc +lat_0=0 +lon_0=-153 +k=0.9996 +x_0=500000.001016002 +y_0=0 +datum=NAD83 +units=us-ft +no_defs "],"EPSG:4426":["EPSG:4426","+proj=tmerc +lat_0=0 +lon_0=-147 +k=0.9996 +x_0=500000.001016002 +y_0=0 +datum=NAD83 +units=us-ft +no_defs "],"EPSG:4427":["EPSG:4427","+proj=tmerc +lat_0=0 +lon_0=-141 +k=0.9996 +x_0=500000.001016002 +y_0=0 +datum=NAD83 +units=us-ft +no_defs "],"EPSG:4428":["EPSG:4428","+proj=tmerc +lat_0=0 +lon_0=-135 +k=0.9996 +x_0=500000.001016002 +y_0=0 +datum=NAD83 +units=us-ft +no_defs "],"EPSG:4429":["EPSG:4429","+proj=tmerc +lat_0=0 +lon_0=-129 +k=0.9996 +x_0=500000.001016002 +y_0=0 +datum=NAD83 +units=us-ft +no_defs "],"EPSG:4430":["EPSG:4430","+proj=tmerc +lat_0=0 +lon_0=-123 +k=0.9996 +x_0=500000.001016002 +y_0=0 +datum=NAD83 +units=us-ft +no_defs "],"EPSG:4431":["EPSG:4431","+proj=tmerc +lat_0=0 +lon_0=-117 +k=0.9996 +x_0=500000.001016002 +y_0=0 +datum=NAD83 +units=us-ft +no_defs "],"EPSG:4432":["EPSG:4432","+proj=tmerc +lat_0=0 +lon_0=-111 +k=0.9996 +x_0=500000.001016002 +y_0=0 +datum=NAD83 +units=us-ft +no_defs "],"EPSG:4433":["EPSG:4433","+proj=tmerc +lat_0=0 +lon_0=-105 +k=0.9996 +x_0=500000.001016002 +y_0=0 +datum=NAD83 +units=us-ft +no_defs "],"EPSG:4434":["EPSG:4434","+proj=tmerc +lat_0=0 +lon_0=24 +k=1 +x_0=8500000 +y_0=0 +ellps=krass +towgs84=26,-121,-78,0,0,0,0 +units=m +no_defs "],"EPSG:4437":["EPSG:4437","+proj=lcc +lat_1=18.43333333333333 +lat_2=18.03333333333333 +lat_0=17.83333333333333 +lon_0=-66.43333333333334 +x_0=200000 +y_0=200000 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs "],"EPSG:4438":["EPSG:4438","+proj=tmerc +lat_0=0 +lon_0=-75 +k=0.9996 +x_0=500000.001016002 +y_0=0 +datum=NAD83 +units=us-ft +no_defs "],"EPSG:4439":["EPSG:4439","+proj=tmerc +lat_0=0 +lon_0=-69 +k=0.9996 +x_0=500000.001016002 +y_0=0 +datum=NAD83 +units=us-ft +no_defs "],"EPSG:4456":["EPSG:4456","+proj=lcc +lat_1=41.03333333333333 +lat_2=40.66666666666666 +lat_0=40.5 +lon_0=-74 +x_0=609601.2192024384 +y_0=30480.06096012192 +datum=NAD27 +units=us-ft +no_defs "],"EPSG:4457":["EPSG:4457","+proj=lcc +lat_1=45.68333333333333 +lat_2=44.41666666666666 +lat_0=43.83333333333334 +lon_0=-100 +x_0=600000 +y_0=0 +datum=NAD83 +units=us-ft +no_defs "],"EPSG:4462":["EPSG:4462","+proj=lcc +lat_1=-18 +lat_2=-36 +lat_0=-27 +lon_0=132 +x_0=0 +y_0=0 +datum=WGS84 +units=m +no_defs "],"EPSG:4467":["EPSG:4467","+proj=utm +zone=21 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs "],"EPSG:4474":["EPSG:4474","+proj=utm +zone=38 +south +ellps=intl +towgs84=-382,-59,-262,0,0,0,0 +units=m +no_defs "],"EPSG:4484":["EPSG:4484","+proj=utm +zone=11 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs "],"EPSG:4485":["EPSG:4485","+proj=utm +zone=12 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs "],"EPSG:4486":["EPSG:4486","+proj=utm +zone=13 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs "],"EPSG:4488":["EPSG:4488","+proj=utm +zone=15 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs "],"EPSG:4489":["EPSG:4489","+proj=utm +zone=16 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs "],"EPSG:4492":["EPSG:4492","+proj=tmerc +lat_0=0 +lon_0=81 +k=1 +x_0=14500000 +y_0=0 +ellps=GRS80 +units=m +no_defs "],"EPSG:4493":["EPSG:4493","+proj=tmerc +lat_0=0 +lon_0=87 +k=1 +x_0=15500000 +y_0=0 +ellps=GRS80 +units=m +no_defs "],"EPSG:4494":["EPSG:4494","+proj=tmerc +lat_0=0 +lon_0=93 +k=1 +x_0=16500000 +y_0=0 +ellps=GRS80 +units=m +no_defs "],"EPSG:4495":["EPSG:4495","+proj=tmerc +lat_0=0 +lon_0=99 +k=1 +x_0=17500000 +y_0=0 +ellps=GRS80 +units=m +no_defs "],"EPSG:4496":["EPSG:4496","+proj=tmerc +lat_0=0 +lon_0=105 +k=1 +x_0=18500000 +y_0=0 +ellps=GRS80 +units=m +no_defs "],"EPSG:4498":["EPSG:4498","+proj=tmerc +lat_0=0 +lon_0=117 +k=1 +x_0=20500000 +y_0=0 +ellps=GRS80 +units=m +no_defs "],"EPSG:4499":["EPSG:4499","+proj=tmerc +lat_0=0 +lon_0=123 +k=1 +x_0=21500000 +y_0=0 +ellps=GRS80 +units=m +no_defs "],"EPSG:4500":["EPSG:4500","+proj=tmerc +lat_0=0 +lon_0=129 +k=1 +x_0=22500000 +y_0=0 +ellps=GRS80 +units=m +no_defs "],"EPSG:4501":["EPSG:4501","+proj=tmerc +lat_0=0 +lon_0=135 +k=1 +x_0=23500000 +y_0=0 +ellps=GRS80 +units=m +no_defs "],"EPSG:4502":["EPSG:4502","+proj=tmerc +lat_0=0 +lon_0=75 +k=1 +x_0=500000 +y_0=0 +ellps=GRS80 +units=m +no_defs "],"EPSG:4503":["EPSG:4503","+proj=tmerc +lat_0=0 +lon_0=81 +k=1 +x_0=500000 +y_0=0 +ellps=GRS80 +units=m +no_defs "],"EPSG:4504":["EPSG:4504","+proj=tmerc +lat_0=0 +lon_0=87 +k=1 +x_0=500000 +y_0=0 +ellps=GRS80 +units=m +no_defs "],"EPSG:4505":["EPSG:4505","+proj=tmerc +lat_0=0 +lon_0=93 +k=1 +x_0=500000 +y_0=0 +ellps=GRS80 +units=m +no_defs "],"EPSG:4506":["EPSG:4506","+proj=tmerc +lat_0=0 +lon_0=99 +k=1 +x_0=500000 +y_0=0 +ellps=GRS80 +units=m +no_defs "],"EPSG:4507":["EPSG:4507","+proj=tmerc +lat_0=0 +lon_0=105 +k=1 +x_0=500000 +y_0=0 +ellps=GRS80 +units=m +no_defs "],"EPSG:4509":["EPSG:4509","+proj=tmerc +lat_0=0 +lon_0=117 +k=1 +x_0=500000 +y_0=0 +ellps=GRS80 +units=m +no_defs "],"EPSG:4510":["EPSG:4510","+proj=tmerc +lat_0=0 +lon_0=123 +k=1 +x_0=500000 +y_0=0 +ellps=GRS80 +units=m +no_defs "],"EPSG:4511":["EPSG:4511","+proj=tmerc +lat_0=0 +lon_0=129 +k=1 +x_0=500000 +y_0=0 +ellps=GRS80 +units=m +no_defs "],"EPSG:4512":["EPSG:4512","+proj=tmerc +lat_0=0 +lon_0=135 +k=1 +x_0=500000 +y_0=0 +ellps=GRS80 +units=m +no_defs "],"EPSG:4513":["EPSG:4513","+proj=tmerc +lat_0=0 +lon_0=75 +k=1 +x_0=25500000 +y_0=0 +ellps=GRS80 +units=m +no_defs "],"EPSG:4514":["EPSG:4514","+proj=tmerc +lat_0=0 +lon_0=78 +k=1 +x_0=26500000 +y_0=0 +ellps=GRS80 +units=m +no_defs "],"EPSG:4515":["EPSG:4515","+proj=tmerc +lat_0=0 +lon_0=81 +k=1 +x_0=27500000 +y_0=0 +ellps=GRS80 +units=m +no_defs "],"EPSG:4516":["EPSG:4516","+proj=tmerc +lat_0=0 +lon_0=84 +k=1 +x_0=28500000 +y_0=0 +ellps=GRS80 +units=m +no_defs "],"EPSG:4517":["EPSG:4517","+proj=tmerc +lat_0=0 +lon_0=87 +k=1 +x_0=29500000 +y_0=0 +ellps=GRS80 +units=m +no_defs "],"EPSG:4518":["EPSG:4518","+proj=tmerc +lat_0=0 +lon_0=90 +k=1 +x_0=30500000 +y_0=0 +ellps=GRS80 +units=m +no_defs "],"EPSG:4519":["EPSG:4519","+proj=tmerc +lat_0=0 +lon_0=93 +k=1 +x_0=31500000 +y_0=0 +ellps=GRS80 +units=m +no_defs "],"EPSG:4520":["EPSG:4520","+proj=tmerc +lat_0=0 +lon_0=96 +k=1 +x_0=32500000 +y_0=0 +ellps=GRS80 +units=m +no_defs "],"EPSG:4521":["EPSG:4521","+proj=tmerc +lat_0=0 +lon_0=99 +k=1 +x_0=33500000 +y_0=0 +ellps=GRS80 +units=m +no_defs "],"EPSG:4522":["EPSG:4522","+proj=tmerc +lat_0=0 +lon_0=102 +k=1 +x_0=34500000 +y_0=0 +ellps=GRS80 +units=m +no_defs "],"EPSG:4523":["EPSG:4523","+proj=tmerc +lat_0=0 +lon_0=105 +k=1 +x_0=35500000 +y_0=0 +ellps=GRS80 +units=m +no_defs "],"EPSG:4524":["EPSG:4524","+proj=tmerc +lat_0=0 +lon_0=108 +k=1 +x_0=36500000 +y_0=0 +ellps=GRS80 +units=m +no_defs "],"EPSG:4525":["EPSG:4525","+proj=tmerc +lat_0=0 +lon_0=111 +k=1 +x_0=37500000 +y_0=0 +ellps=GRS80 +units=m +no_defs "],"EPSG:4526":["EPSG:4526","+proj=tmerc +lat_0=0 +lon_0=114 +k=1 +x_0=38500000 +y_0=0 +ellps=GRS80 +units=m +no_defs "],"EPSG:4527":["EPSG:4527","+proj=tmerc +lat_0=0 +lon_0=117 +k=1 +x_0=39500000 +y_0=0 +ellps=GRS80 +units=m +no_defs "],"EPSG:4528":["EPSG:4528","+proj=tmerc +lat_0=0 +lon_0=120 +k=1 +x_0=40500000 +y_0=0 +ellps=GRS80 +units=m +no_defs "],"EPSG:4529":["EPSG:4529","+proj=tmerc +lat_0=0 +lon_0=123 +k=1 +x_0=41500000 +y_0=0 +ellps=GRS80 +units=m +no_defs "],"EPSG:4530":["EPSG:4530","+proj=tmerc +lat_0=0 +lon_0=126 +k=1 +x_0=42500000 +y_0=0 +ellps=GRS80 +units=m +no_defs "],"EPSG:4531":["EPSG:4531","+proj=tmerc +lat_0=0 +lon_0=129 +k=1 +x_0=43500000 +y_0=0 +ellps=GRS80 +units=m +no_defs "],"EPSG:4532":["EPSG:4532","+proj=tmerc +lat_0=0 +lon_0=132 +k=1 +x_0=44500000 +y_0=0 +ellps=GRS80 +units=m +no_defs "],"EPSG:4533":["EPSG:4533","+proj=tmerc +lat_0=0 +lon_0=135 +k=1 +x_0=45500000 +y_0=0 +ellps=GRS80 +units=m +no_defs "],"EPSG:4534":["EPSG:4534","+proj=tmerc +lat_0=0 +lon_0=75 +k=1 +x_0=500000 +y_0=0 +ellps=GRS80 +units=m +no_defs "],"EPSG:4916":["EPSG:4916","+proj=geocent +ellps=GRS80 +units=m +no_defs "],"EPSG:4535":["EPSG:4535","+proj=tmerc +lat_0=0 +lon_0=78 +k=1 +x_0=500000 +y_0=0 +ellps=GRS80 +units=m +no_defs "],"EPSG:4536":["EPSG:4536","+proj=tmerc +lat_0=0 +lon_0=81 +k=1 +x_0=500000 +y_0=0 +ellps=GRS80 +units=m +no_defs "],"EPSG:4537":["EPSG:4537","+proj=tmerc +lat_0=0 +lon_0=84 +k=1 +x_0=500000 +y_0=0 +ellps=GRS80 +units=m +no_defs "],"EPSG:4538":["EPSG:4538","+proj=tmerc +lat_0=0 +lon_0=87 +k=1 +x_0=500000 +y_0=0 +ellps=GRS80 +units=m +no_defs "],"EPSG:4539":["EPSG:4539","+proj=tmerc +lat_0=0 +lon_0=90 +k=1 +x_0=500000 +y_0=0 +ellps=GRS80 +units=m +no_defs "],"EPSG:4540":["EPSG:4540","+proj=tmerc +lat_0=0 +lon_0=93 +k=1 +x_0=500000 +y_0=0 +ellps=GRS80 +units=m +no_defs "],"EPSG:4541":["EPSG:4541","+proj=tmerc +lat_0=0 +lon_0=96 +k=1 +x_0=500000 +y_0=0 +ellps=GRS80 +units=m +no_defs "],"EPSG:4542":["EPSG:4542","+proj=tmerc +lat_0=0 +lon_0=99 +k=1 +x_0=500000 +y_0=0 +ellps=GRS80 +units=m +no_defs "],"EPSG:4543":["EPSG:4543","+proj=tmerc +lat_0=0 +lon_0=102 +k=1 +x_0=500000 +y_0=0 +ellps=GRS80 +units=m +no_defs "],"EPSG:4544":["EPSG:4544","+proj=tmerc +lat_0=0 +lon_0=105 +k=1 +x_0=500000 +y_0=0 +ellps=GRS80 +units=m +no_defs "],"EPSG:4545":["EPSG:4545","+proj=tmerc +lat_0=0 +lon_0=108 +k=1 +x_0=500000 +y_0=0 +ellps=GRS80 +units=m +no_defs "],"EPSG:4546":["EPSG:4546","+proj=tmerc +lat_0=0 +lon_0=111 +k=1 +x_0=500000 +y_0=0 +ellps=GRS80 +units=m +no_defs "],"EPSG:4547":["EPSG:4547","+proj=tmerc +lat_0=0 +lon_0=114 +k=1 +x_0=500000 +y_0=0 +ellps=GRS80 +units=m +no_defs "],"EPSG:4548":["EPSG:4548","+proj=tmerc +lat_0=0 +lon_0=117 +k=1 +x_0=500000 +y_0=0 +ellps=GRS80 +units=m +no_defs "],"EPSG:4549":["EPSG:4549","+proj=tmerc +lat_0=0 +lon_0=120 +k=1 +x_0=500000 +y_0=0 +ellps=GRS80 +units=m +no_defs "],"EPSG:4550":["EPSG:4550","+proj=tmerc +lat_0=0 +lon_0=123 +k=1 +x_0=500000 +y_0=0 +ellps=GRS80 +units=m +no_defs "],"EPSG:4551":["EPSG:4551","+proj=tmerc +lat_0=0 +lon_0=126 +k=1 +x_0=500000 +y_0=0 +ellps=GRS80 +units=m +no_defs "],"EPSG:4552":["EPSG:4552","+proj=tmerc +lat_0=0 +lon_0=129 +k=1 +x_0=500000 +y_0=0 +ellps=GRS80 +units=m +no_defs "],"EPSG:4553":["EPSG:4553","+proj=tmerc +lat_0=0 +lon_0=132 +k=1 +x_0=500000 +y_0=0 +ellps=GRS80 +units=m +no_defs "],"EPSG:4554":["EPSG:4554","+proj=tmerc +lat_0=0 +lon_0=135 +k=1 +x_0=500000 +y_0=0 +ellps=GRS80 +units=m +no_defs "],"EPSG:4559":["EPSG:4559","+proj=utm +zone=20 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs "],"EPSG:4568":["EPSG:4568","+proj=tmerc +lat_0=0 +lon_0=75 +k=1 +x_0=13500000 +y_0=0 +ellps=krass +units=m +no_defs "],"EPSG:4573":["EPSG:4573","+proj=tmerc +lat_0=0 +lon_0=105 +k=1 +x_0=18500000 +y_0=0 +ellps=krass +units=m +no_defs "],"EPSG:4574":["EPSG:4574","+proj=tmerc +lat_0=0 +lon_0=111 +k=1 +x_0=19500000 +y_0=0 +ellps=krass +units=m +no_defs "],"EPSG:4575":["EPSG:4575","+proj=tmerc +lat_0=0 +lon_0=117 +k=1 +x_0=20500000 +y_0=0 +ellps=krass +units=m +no_defs "],"EPSG:4576":["EPSG:4576","+proj=tmerc +lat_0=0 +lon_0=123 +k=1 +x_0=21500000 +y_0=0 +ellps=krass +units=m +no_defs "],"EPSG:4577":["EPSG:4577","+proj=tmerc +lat_0=0 +lon_0=129 +k=1 +x_0=22500000 +y_0=0 +ellps=krass +units=m +no_defs "],"EPSG:4578":["EPSG:4578","+proj=tmerc +lat_0=0 +lon_0=135 +k=1 +x_0=23500000 +y_0=0 +ellps=krass +units=m +no_defs "],"EPSG:4579":["EPSG:4579","+proj=tmerc +lat_0=0 +lon_0=75 +k=1 +x_0=500000 +y_0=0 +ellps=krass +units=m +no_defs "],"EPSG:4580":["EPSG:4580","+proj=tmerc +lat_0=0 +lon_0=81 +k=1 +x_0=500000 +y_0=0 +ellps=krass +units=m +no_defs "],"EPSG:4581":["EPSG:4581","+proj=tmerc +lat_0=0 +lon_0=87 +k=1 +x_0=500000 +y_0=0 +ellps=krass +units=m +no_defs "],"EPSG:4582":["EPSG:4582","+proj=tmerc +lat_0=0 +lon_0=93 +k=1 +x_0=500000 +y_0=0 +ellps=krass +units=m +no_defs "],"EPSG:4583":["EPSG:4583","+proj=tmerc +lat_0=0 +lon_0=99 +k=1 +x_0=500000 +y_0=0 +ellps=krass +units=m +no_defs "],"EPSG:4586":["EPSG:4586","+proj=tmerc +lat_0=0 +lon_0=117 +k=1 +x_0=500000 +y_0=0 +ellps=krass +units=m +no_defs "],"EPSG:4588":["EPSG:4588","+proj=tmerc +lat_0=0 +lon_0=129 +k=1 +x_0=500000 +y_0=0 +ellps=krass +units=m +no_defs "],"EPSG:4589":["EPSG:4589","+proj=tmerc +lat_0=0 +lon_0=135 +k=1 +x_0=500000 +y_0=0 +ellps=krass +units=m +no_defs "],"EPSG:4647":["EPSG:4647","+proj=tmerc +lat_0=0 +lon_0=9 +k=0.9996 +x_0=32500000 +y_0=0 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs "],"EPSG:4652":["EPSG:4652","+proj=tmerc +lat_0=0 +lon_0=75 +k=1 +x_0=25500000 +y_0=0 +ellps=krass +units=m +no_defs "],"EPSG:4653":["EPSG:4653","+proj=tmerc +lat_0=0 +lon_0=78 +k=1 +x_0=26500000 +y_0=0 +ellps=krass +units=m +no_defs "],"EPSG:4654":["EPSG:4654","+proj=tmerc +lat_0=0 +lon_0=81 +k=1 +x_0=27500000 +y_0=0 +ellps=krass +units=m +no_defs "],"EPSG:4655":["EPSG:4655","+proj=tmerc +lat_0=0 +lon_0=84 +k=1 +x_0=28500000 +y_0=0 +ellps=krass +units=m +no_defs "],"EPSG:4656":["EPSG:4656","+proj=tmerc +lat_0=0 +lon_0=87 +k=1 +x_0=29500000 +y_0=0 +ellps=krass +units=m +no_defs "],"EPSG:4766":["EPSG:4766","+proj=tmerc +lat_0=0 +lon_0=90 +k=1 +x_0=30500000 +y_0=0 +ellps=krass +units=m +no_defs "],"EPSG:4767":["EPSG:4767","+proj=tmerc +lat_0=0 +lon_0=93 +k=1 +x_0=31500000 +y_0=0 +ellps=krass +units=m +no_defs "],"EPSG:4768":["EPSG:4768","+proj=tmerc +lat_0=0 +lon_0=96 +k=1 +x_0=32500000 +y_0=0 +ellps=krass +units=m +no_defs "],"EPSG:4769":["EPSG:4769","+proj=tmerc +lat_0=0 +lon_0=99 +k=1 +x_0=33500000 +y_0=0 +ellps=krass +units=m +no_defs "],"EPSG:4770":["EPSG:4770","+proj=tmerc +lat_0=0 +lon_0=102 +k=1 +x_0=34500000 +y_0=0 +ellps=krass +units=m +no_defs "],"EPSG:4771":["EPSG:4771","+proj=tmerc +lat_0=0 +lon_0=105 +k=1 +x_0=35500000 +y_0=0 +ellps=krass +units=m +no_defs "],"EPSG:4772":["EPSG:4772","+proj=tmerc +lat_0=0 +lon_0=108 +k=1 +x_0=36500000 +y_0=0 +ellps=krass +units=m +no_defs "],"EPSG:4773":["EPSG:4773","+proj=tmerc +lat_0=0 +lon_0=111 +k=1 +x_0=37500000 +y_0=0 +ellps=krass +units=m +no_defs "],"EPSG:4774":["EPSG:4774","+proj=tmerc +lat_0=0 +lon_0=114 +k=1 +x_0=38500000 +y_0=0 +ellps=krass +units=m +no_defs "],"EPSG:4775":["EPSG:4775","+proj=tmerc +lat_0=0 +lon_0=117 +k=1 +x_0=39500000 +y_0=0 +ellps=krass +units=m +no_defs "],"EPSG:4776":["EPSG:4776","+proj=tmerc +lat_0=0 +lon_0=120 +k=1 +x_0=40500000 +y_0=0 +ellps=krass +units=m +no_defs "],"EPSG:4777":["EPSG:4777","+proj=tmerc +lat_0=0 +lon_0=123 +k=1 +x_0=41500000 +y_0=0 +ellps=krass +units=m +no_defs "],"EPSG:4778":["EPSG:4778","+proj=tmerc +lat_0=0 +lon_0=126 +k=1 +x_0=42500000 +y_0=0 +ellps=krass +units=m +no_defs "],"EPSG:4779":["EPSG:4779","+proj=tmerc +lat_0=0 +lon_0=129 +k=1 +x_0=43500000 +y_0=0 +ellps=krass +units=m +no_defs "],"EPSG:4780":["EPSG:4780","+proj=tmerc +lat_0=0 +lon_0=132 +k=1 +x_0=44500000 +y_0=0 +ellps=krass +units=m +no_defs "],"EPSG:4781":["EPSG:4781","+proj=tmerc +lat_0=0 +lon_0=135 +k=1 +x_0=45500000 +y_0=0 +ellps=krass +units=m +no_defs "],"EPSG:4782":["EPSG:4782","+proj=tmerc +lat_0=0 +lon_0=75 +k=1 +x_0=500000 +y_0=0 +ellps=krass +units=m +no_defs "],"EPSG:4783":["EPSG:4783","+proj=tmerc +lat_0=0 +lon_0=78 +k=1 +x_0=500000 +y_0=0 +ellps=krass +units=m +no_defs "],"EPSG:4784":["EPSG:4784","+proj=tmerc +lat_0=0 +lon_0=81 +k=1 +x_0=500000 +y_0=0 +ellps=krass +units=m +no_defs "],"EPSG:4785":["EPSG:4785","+proj=tmerc +lat_0=0 +lon_0=84 +k=1 +x_0=500000 +y_0=0 +ellps=krass +units=m +no_defs "],"EPSG:4786":["EPSG:4786","+proj=tmerc +lat_0=0 +lon_0=87 +k=1 +x_0=500000 +y_0=0 +ellps=krass +units=m +no_defs "],"EPSG:4787":["EPSG:4787","+proj=tmerc +lat_0=0 +lon_0=90 +k=1 +x_0=500000 +y_0=0 +ellps=krass +units=m +no_defs "],"EPSG:4788":["EPSG:4788","+proj=tmerc +lat_0=0 +lon_0=93 +k=1 +x_0=500000 +y_0=0 +ellps=krass +units=m +no_defs "],"EPSG:4789":["EPSG:4789","+proj=tmerc +lat_0=0 +lon_0=96 +k=1 +x_0=500000 +y_0=0 +ellps=krass +units=m +no_defs "],"EPSG:4790":["EPSG:4790","+proj=tmerc +lat_0=0 +lon_0=99 +k=1 +x_0=500000 +y_0=0 +ellps=krass +units=m +no_defs "],"EPSG:4791":["EPSG:4791","+proj=tmerc +lat_0=0 +lon_0=102 +k=1 +x_0=500000 +y_0=0 +ellps=krass +units=m +no_defs "],"EPSG:4792":["EPSG:4792","+proj=tmerc +lat_0=0 +lon_0=105 +k=1 +x_0=500000 +y_0=0 +ellps=krass +units=m +no_defs "],"EPSG:4793":["EPSG:4793","+proj=tmerc +lat_0=0 +lon_0=108 +k=1 +x_0=500000 +y_0=0 +ellps=krass +units=m +no_defs "],"EPSG:4795":["EPSG:4795","+proj=tmerc +lat_0=0 +lon_0=114 +k=1 +x_0=500000 +y_0=0 +ellps=krass +units=m +no_defs "],"EPSG:4796":["EPSG:4796","+proj=tmerc +lat_0=0 +lon_0=117 +k=1 +x_0=500000 +y_0=0 +ellps=krass +units=m +no_defs "],"EPSG:4798":["EPSG:4798","+proj=tmerc +lat_0=0 +lon_0=123 +k=1 +x_0=500000 +y_0=0 +ellps=krass +units=m +no_defs "],"EPSG:4799":["EPSG:4799","+proj=tmerc +lat_0=0 +lon_0=126 +k=1 +x_0=500000 +y_0=0 +ellps=krass +units=m +no_defs "],"EPSG:4800":["EPSG:4800","+proj=tmerc +lat_0=0 +lon_0=129 +k=1 +x_0=500000 +y_0=0 +ellps=krass +units=m +no_defs "],"EPSG:4812":["EPSG:4812","+proj=tmerc +lat_0=0 +lon_0=132 +k=1 +x_0=500000 +y_0=0 +ellps=krass +units=m +no_defs "],"EPSG:4822":["EPSG:4822","+proj=tmerc +lat_0=0 +lon_0=135 +k=1 +x_0=500000 +y_0=0 +ellps=krass +units=m +no_defs "],"EPSG:4855":["EPSG:4855","+proj=tmerc +lat_0=0 +lon_0=5.5 +k=1 +x_0=100000 +y_0=1000000 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs "],"EPSG:4856":["EPSG:4856","+proj=tmerc +lat_0=0 +lon_0=6.5 +k=1 +x_0=100000 +y_0=1000000 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs "],"EPSG:4857":["EPSG:4857","+proj=tmerc +lat_0=0 +lon_0=7.5 +k=1 +x_0=100000 +y_0=1000000 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs "],"EPSG:4858":["EPSG:4858","+proj=tmerc +lat_0=0 +lon_0=8.5 +k=1 +x_0=100000 +y_0=1000000 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs "],"EPSG:4859":["EPSG:4859","+proj=tmerc +lat_0=0 +lon_0=9.5 +k=1 +x_0=100000 +y_0=1000000 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs "],"EPSG:4860":["EPSG:4860","+proj=tmerc +lat_0=0 +lon_0=10.5 +k=1 +x_0=100000 +y_0=1000000 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs "],"EPSG:4861":["EPSG:4861","+proj=tmerc +lat_0=0 +lon_0=11.5 +k=1 +x_0=100000 +y_0=1000000 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs "],"EPSG:4862":["EPSG:4862","+proj=tmerc +lat_0=0 +lon_0=12.5 +k=1 +x_0=100000 +y_0=1000000 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs "],"EPSG:4863":["EPSG:4863","+proj=tmerc +lat_0=0 +lon_0=13.5 +k=1 +x_0=100000 +y_0=1000000 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs "],"EPSG:4864":["EPSG:4864","+proj=tmerc +lat_0=0 +lon_0=14.5 +k=1 +x_0=100000 +y_0=1000000 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs "],"EPSG:4865":["EPSG:4865","+proj=tmerc +lat_0=0 +lon_0=15.5 +k=1 +x_0=100000 +y_0=1000000 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs "],"EPSG:4866":["EPSG:4866","+proj=tmerc +lat_0=0 +lon_0=16.5 +k=1 +x_0=100000 +y_0=1000000 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs "],"EPSG:4867":["EPSG:4867","+proj=tmerc +lat_0=0 +lon_0=17.5 +k=1 +x_0=100000 +y_0=1000000 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs "],"EPSG:4868":["EPSG:4868","+proj=tmerc +lat_0=0 +lon_0=18.5 +k=1 +x_0=100000 +y_0=1000000 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs "],"EPSG:4869":["EPSG:4869","+proj=tmerc +lat_0=0 +lon_0=19.5 +k=1 +x_0=100000 +y_0=1000000 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs "],"EPSG:4870":["EPSG:4870","+proj=tmerc +lat_0=0 +lon_0=20.5 +k=1 +x_0=100000 +y_0=1000000 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs "],"EPSG:4871":["EPSG:4871","+proj=tmerc +lat_0=0 +lon_0=21.5 +k=1 +x_0=100000 +y_0=1000000 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs "],"EPSG:4872":["EPSG:4872","+proj=tmerc +lat_0=0 +lon_0=22.5 +k=1 +x_0=100000 +y_0=1000000 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs "],"EPSG:4873":["EPSG:4873","+proj=tmerc +lat_0=0 +lon_0=23.5 +k=1 +x_0=100000 +y_0=1000000 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs "],"EPSG:4874":["EPSG:4874","+proj=tmerc +lat_0=0 +lon_0=24.5 +k=1 +x_0=100000 +y_0=1000000 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs "],"EPSG:4875":["EPSG:4875","+proj=tmerc +lat_0=0 +lon_0=25.5 +k=1 +x_0=100000 +y_0=1000000 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs "],"EPSG:4876":["EPSG:4876","+proj=tmerc +lat_0=0 +lon_0=26.5 +k=1 +x_0=100000 +y_0=1000000 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs "],"EPSG:4877":["EPSG:4877","+proj=tmerc +lat_0=0 +lon_0=27.5 +k=1 +x_0=100000 +y_0=1000000 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs "],"EPSG:4878":["EPSG:4878","+proj=tmerc +lat_0=0 +lon_0=28.5 +k=1 +x_0=100000 +y_0=1000000 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs "],"EPSG:4879":["EPSG:4879","+proj=tmerc +lat_0=0 +lon_0=29.5 +k=1 +x_0=100000 +y_0=1000000 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs "],"EPSG:4880":["EPSG:4880","+proj=tmerc +lat_0=0 +lon_0=30.5 +k=1 +x_0=100000 +y_0=1000000 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs "],"EPSG:5014":["EPSG:5014","+proj=utm +zone=25 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs "],"EPSG:5015":["EPSG:5015","+proj=utm +zone=26 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs "],"EPSG:5016":["EPSG:5016","+proj=utm +zone=28 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs "],"EPSG:5041":["EPSG:5041","+proj=stere +lat_0=90 +lat_ts=90 +lon_0=0 +k=0.994 +x_0=2000000 +y_0=2000000 +datum=WGS84 +units=m +no_defs "],"EPSG:5042":["EPSG:5042","+proj=stere +lat_0=-90 +lat_ts=-90 +lon_0=0 +k=0.994 +x_0=2000000 +y_0=2000000 +datum=WGS84 +units=m +no_defs "],"EPSG:5071":["EPSG:5071","+proj=aea +lat_1=29.5 +lat_2=45.5 +lat_0=23 +lon_0=-96 +x_0=0 +y_0=0 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs "],"EPSG:5105":["EPSG:5105","+proj=tmerc +lat_0=58 +lon_0=5.5 +k=1 +x_0=100000 +y_0=1000000 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs "],"EPSG:5106":["EPSG:5106","+proj=tmerc +lat_0=58 +lon_0=6.5 +k=1 +x_0=100000 +y_0=1000000 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs "],"EPSG:5107":["EPSG:5107","+proj=tmerc +lat_0=58 +lon_0=7.5 +k=1 +x_0=100000 +y_0=1000000 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs "],"EPSG:5108":["EPSG:5108","+proj=tmerc +lat_0=58 +lon_0=8.5 +k=1 +x_0=100000 +y_0=1000000 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs "],"EPSG:5109":["EPSG:5109","+proj=tmerc +lat_0=58 +lon_0=9.5 +k=1 +x_0=100000 +y_0=1000000 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs "],"EPSG:5110":["EPSG:5110","+proj=tmerc +lat_0=58 +lon_0=10.5 +k=1 +x_0=100000 +y_0=1000000 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs "],"EPSG:5111":["EPSG:5111","+proj=tmerc +lat_0=58 +lon_0=11.5 +k=1 +x_0=100000 +y_0=1000000 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs "],"EPSG:5112":["EPSG:5112","+proj=tmerc +lat_0=58 +lon_0=12.5 +k=1 +x_0=100000 +y_0=1000000 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs "],"EPSG:5113":["EPSG:5113","+proj=tmerc +lat_0=58 +lon_0=13.5 +k=1 +x_0=100000 +y_0=1000000 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs "],"EPSG:5114":["EPSG:5114","+proj=tmerc +lat_0=58 +lon_0=14.5 +k=1 +x_0=100000 +y_0=1000000 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs "],"EPSG:5115":["EPSG:5115","+proj=tmerc +lat_0=58 +lon_0=15.5 +k=1 +x_0=100000 +y_0=1000000 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs "],"EPSG:5116":["EPSG:5116","+proj=tmerc +lat_0=58 +lon_0=16.5 +k=1 +x_0=100000 +y_0=1000000 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs "],"EPSG:5117":["EPSG:5117","+proj=tmerc +lat_0=58 +lon_0=17.5 +k=1 +x_0=100000 +y_0=1000000 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs "],"EPSG:5118":["EPSG:5118","+proj=tmerc +lat_0=58 +lon_0=18.5 +k=1 +x_0=100000 +y_0=1000000 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs "],"EPSG:5119":["EPSG:5119","+proj=tmerc +lat_0=58 +lon_0=19.5 +k=1 +x_0=100000 +y_0=1000000 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs "],"EPSG:5120":["EPSG:5120","+proj=tmerc +lat_0=58 +lon_0=20.5 +k=1 +x_0=100000 +y_0=1000000 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs "],"EPSG:5121":["EPSG:5121","+proj=tmerc +lat_0=58 +lon_0=21.5 +k=1 +x_0=100000 +y_0=1000000 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs "],"EPSG:5122":["EPSG:5122","+proj=tmerc +lat_0=58 +lon_0=22.5 +k=1 +x_0=100000 +y_0=1000000 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs "],"EPSG:5123":["EPSG:5123","+proj=tmerc +lat_0=58 +lon_0=23.5 +k=1 +x_0=100000 +y_0=1000000 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs "],"EPSG:5124":["EPSG:5124","+proj=tmerc +lat_0=58 +lon_0=24.5 +k=1 +x_0=100000 +y_0=1000000 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs "],"EPSG:5125":["EPSG:5125","+proj=tmerc +lat_0=58 +lon_0=25.5 +k=1 +x_0=100000 +y_0=1000000 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs "],"EPSG:5126":["EPSG:5126","+proj=tmerc +lat_0=58 +lon_0=26.5 +k=1 +x_0=100000 +y_0=1000000 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs "],"EPSG:5127":["EPSG:5127","+proj=tmerc +lat_0=58 +lon_0=27.5 +k=1 +x_0=100000 +y_0=1000000 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs "],"EPSG:5128":["EPSG:5128","+proj=tmerc +lat_0=58 +lon_0=28.5 +k=1 +x_0=100000 +y_0=1000000 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs "],"EPSG:5129":["EPSG:5129","+proj=tmerc +lat_0=58 +lon_0=29.5 +k=1 +x_0=100000 +y_0=1000000 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs "],"EPSG:5130":["EPSG:5130","+proj=tmerc +lat_0=58 +lon_0=30.5 +k=1 +x_0=100000 +y_0=1000000 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs "],"EPSG:5167":["EPSG:5167","+proj=tmerc +lat_0=38 +lon_0=131 +k=1 +x_0=200000 +y_0=500000 +ellps=bessel +units=m +no_defs "],"EPSG:5168":["EPSG:5168","+proj=tmerc +lat_0=38 +lon_0=127 +k=1 +x_0=200000 +y_0=550000 +ellps=bessel +units=m +no_defs "],"EPSG:5169":["EPSG:5169","+proj=tmerc +lat_0=38 +lon_0=125 +k=1 +x_0=200000 +y_0=500000 +ellps=bessel +units=m +no_defs "],"EPSG:5170":["EPSG:5170","+proj=tmerc +lat_0=38 +lon_0=127 +k=1 +x_0=200000 +y_0=500000 +ellps=bessel +units=m +no_defs "],"EPSG:5171":["EPSG:5171","+proj=tmerc +lat_0=38 +lon_0=129 +k=1 +x_0=200000 +y_0=500000 +ellps=bessel +units=m +no_defs "],"EPSG:5172":["EPSG:5172","+proj=tmerc +lat_0=38 +lon_0=131 +k=1 +x_0=200000 +y_0=500000 +ellps=bessel +units=m +no_defs "],"EPSG:5173":["EPSG:5173","+proj=tmerc +lat_0=38 +lon_0=125.0028902777778 +k=1 +x_0=200000 +y_0=500000 +ellps=bessel +units=m +no_defs "],"EPSG:5174":["EPSG:5174","+proj=tmerc +lat_0=38 +lon_0=127.0028902777778 +k=1 +x_0=200000 +y_0=500000 +ellps=bessel +units=m +no_defs "],"EPSG:5175":["EPSG:5175","+proj=tmerc +lat_0=38 +lon_0=127.0028902777778 +k=1 +x_0=200000 +y_0=550000 +ellps=bessel +units=m +no_defs "],"EPSG:5176":["EPSG:5176","+proj=tmerc +lat_0=38 +lon_0=129.0028902777778 +k=1 +x_0=200000 +y_0=500000 +ellps=bessel +units=m +no_defs "],"EPSG:5177":["EPSG:5177","+proj=tmerc +lat_0=38 +lon_0=131.0028902777778 +k=1 +x_0=200000 +y_0=500000 +ellps=bessel +units=m +no_defs "],"EPSG:5178":["EPSG:5178","+proj=tmerc +lat_0=38 +lon_0=127.5 +k=0.9996 +x_0=1000000 +y_0=2000000 +ellps=bessel +units=m +no_defs "],"EPSG:5179":["EPSG:5179","+proj=tmerc +lat_0=38 +lon_0=127.5 +k=0.9996 +x_0=1000000 +y_0=2000000 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs "],"EPSG:5180":["EPSG:5180","+proj=tmerc +lat_0=38 +lon_0=125 +k=1 +x_0=200000 +y_0=500000 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs "],"EPSG:5181":["EPSG:5181","+proj=tmerc +lat_0=38 +lon_0=127 +k=1 +x_0=200000 +y_0=500000 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs "],"EPSG:5182":["EPSG:5182","+proj=tmerc +lat_0=38 +lon_0=127 +k=1 +x_0=200000 +y_0=550000 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs "],"EPSG:5183":["EPSG:5183","+proj=tmerc +lat_0=38 +lon_0=129 +k=1 +x_0=200000 +y_0=500000 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs "],"EPSG:5184":["EPSG:5184","+proj=tmerc +lat_0=38 +lon_0=131 +k=1 +x_0=200000 +y_0=500000 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs "],"EPSG:5185":["EPSG:5185","+proj=tmerc +lat_0=38 +lon_0=125 +k=1 +x_0=200000 +y_0=600000 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs "],"EPSG:5186":["EPSG:5186","+proj=tmerc +lat_0=38 +lon_0=127 +k=1 +x_0=200000 +y_0=600000 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs "],"EPSG:5187":["EPSG:5187","+proj=tmerc +lat_0=38 +lon_0=129 +k=1 +x_0=200000 +y_0=600000 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs "],"EPSG:5188":["EPSG:5188","+proj=tmerc +lat_0=38 +lon_0=131 +k=1 +x_0=200000 +y_0=600000 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs "],"EPSG:5221":["EPSG:5221","+proj=krovak +lat_0=49.5 +lon_0=42.5 +alpha=30.28813972222222 +k=0.9999 +x_0=0 +y_0=0 +ellps=bessel +towgs84=589,76,480,0,0,0,0 +pm=ferro +units=m +no_defs "],"EPSG:5223":["EPSG:5223","+proj=tmerc +lat_0=0 +lon_0=12 +k=0.9996 +x_0=500000 +y_0=500000 +datum=WGS84 +units=m +no_defs "],"EPSG:5234":["EPSG:5234","+proj=tmerc +lat_0=7.000480277777778 +lon_0=80.77171111111112 +k=0.9999238418 +x_0=200000 +y_0=200000 +a=6377276.345 +b=6356075.41314024 +towgs84=-97,787,86,0,0,0,0 +units=m +no_defs "],"EPSG:5235":["EPSG:5235","+proj=tmerc +lat_0=7.000471527777778 +lon_0=80.77171308333334 +k=0.9999238418 +x_0=500000 +y_0=500000 +a=6377276.345 +b=6356075.41314024 +towgs84=-0.293,766.95,87.713,0.195704,1.695068,3.473016,-0.039338 +units=m +no_defs "],"EPSG:5247":["EPSG:5247","+proj=omerc +lat_0=4 +lonc=115 +alpha=53.31580995 +k=0.99984 +x_0=0 +y_0=0 +no_uoff +gamma=53.13010236111111 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs "],"EPSG:5253":["EPSG:5253","+proj=tmerc +lat_0=0 +lon_0=27 +k=1 +x_0=500000 +y_0=0 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs "],"EPSG:5254":["EPSG:5254","+proj=tmerc +lat_0=0 +lon_0=30 +k=1 +x_0=500000 +y_0=0 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs "],"EPSG:5255":["EPSG:5255","+proj=tmerc +lat_0=0 +lon_0=33 +k=1 +x_0=500000 +y_0=0 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs "],"EPSG:5257":["EPSG:5257","+proj=tmerc +lat_0=0 +lon_0=39 +k=1 +x_0=500000 +y_0=0 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs "],"EPSG:5258":["EPSG:5258","+proj=tmerc +lat_0=0 +lon_0=42 +k=1 +x_0=500000 +y_0=0 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs "],"EPSG:5259":["EPSG:5259","+proj=tmerc +lat_0=0 +lon_0=45 +k=1 +x_0=500000 +y_0=0 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs "],"EPSG:5266":["EPSG:5266","+proj=tmerc +lat_0=0 +lon_0=90 +k=1 +x_0=250000 +y_0=0 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs "],"EPSG:5269":["EPSG:5269","+proj=tmerc +lat_0=0 +lon_0=27 +k=1 +x_0=9500000 +y_0=0 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs "],"EPSG:5270":["EPSG:5270","+proj=tmerc +lat_0=0 +lon_0=30 +k=1 +x_0=10500000 +y_0=0 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs "],"EPSG:5271":["EPSG:5271","+proj=tmerc +lat_0=0 +lon_0=33 +k=1 +x_0=11500000 +y_0=0 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs "],"EPSG:5273":["EPSG:5273","+proj=tmerc +lat_0=0 +lon_0=39 +k=1 +x_0=13500000 +y_0=0 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs "],"EPSG:6309":["EPSG:6309","+proj=geocent +ellps=WGS84 +units=m +no_defs "],"EPSG:5274":["EPSG:5274","+proj=tmerc +lat_0=0 +lon_0=42 +k=1 +x_0=14500000 +y_0=0 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs "],"EPSG:5275":["EPSG:5275","+proj=tmerc +lat_0=0 +lon_0=45 +k=1 +x_0=15500000 +y_0=0 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs "],"EPSG:5292":["EPSG:5292","+proj=tmerc +lat_0=0 +lon_0=90.73333333333333 +k=1 +x_0=250000 +y_0=-2500000 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs "],"EPSG:5293":["EPSG:5293","+proj=tmerc +lat_0=0 +lon_0=89.55 +k=1 +x_0=250000 +y_0=-2500000 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs "],"EPSG:5294":["EPSG:5294","+proj=tmerc +lat_0=0 +lon_0=89.84999999999999 +k=1 +x_0=250000 +y_0=-2500000 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs "],"EPSG:5295":["EPSG:5295","+proj=tmerc +lat_0=0 +lon_0=90.03333333333333 +k=1 +x_0=250000 +y_0=-2500000 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs "],"EPSG:5296":["EPSG:5296","+proj=tmerc +lat_0=0 +lon_0=90.15000000000001 +k=1 +x_0=250000 +y_0=-2500000 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs "],"EPSG:5297":["EPSG:5297","+proj=tmerc +lat_0=0 +lon_0=91.13333333333334 +k=1 +x_0=250000 +y_0=-2500000 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs "],"EPSG:5298":["EPSG:5298","+proj=tmerc +lat_0=0 +lon_0=91.23333333333333 +k=1 +x_0=250000 +y_0=-2500000 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs "],"EPSG:4918":["EPSG:4918","+proj=geocent +ellps=GRS80 +units=m +no_defs "],"EPSG:5299":["EPSG:5299","+proj=tmerc +lat_0=0 +lon_0=89.34999999999999 +k=1 +x_0=250000 +y_0=-2500000 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs "],"EPSG:5300":["EPSG:5300","+proj=tmerc +lat_0=0 +lon_0=91.34999999999999 +k=1 +x_0=250000 +y_0=-2500000 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs "],"EPSG:5301":["EPSG:5301","+proj=tmerc +lat_0=0 +lon_0=89.84999999999999 +k=1 +x_0=250000 +y_0=-2500000 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs "],"EPSG:5302":["EPSG:5302","+proj=tmerc +lat_0=0 +lon_0=91.56666666666666 +k=1 +x_0=250000 +y_0=-2500000 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs "],"EPSG:5303":["EPSG:5303","+proj=tmerc +lat_0=0 +lon_0=89.06666666666666 +k=1 +x_0=250000 +y_0=-2500000 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs "],"EPSG:5304":["EPSG:5304","+proj=tmerc +lat_0=0 +lon_0=90.26666666666667 +k=1 +x_0=250000 +y_0=-2500000 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs "],"EPSG:5305":["EPSG:5305","+proj=tmerc +lat_0=0 +lon_0=89.55 +k=1 +x_0=250000 +y_0=-2500000 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs "],"EPSG:5306":["EPSG:5306","+proj=tmerc +lat_0=0 +lon_0=91.75 +k=1 +x_0=250000 +y_0=-2500000 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs "],"EPSG:5307":["EPSG:5307","+proj=tmerc +lat_0=0 +lon_0=90.5 +k=1 +x_0=250000 +y_0=-2500000 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs "],"EPSG:4919":["EPSG:4919","+proj=geocent +ellps=GRS80 +units=m +no_defs "],"EPSG:5308":["EPSG:5308","+proj=tmerc +lat_0=0 +lon_0=90.16666666666667 +k=1 +x_0=250000 +y_0=-2500000 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs "],"EPSG:5309":["EPSG:5309","+proj=tmerc +lat_0=0 +lon_0=90.11666666666666 +k=1 +x_0=250000 +y_0=-2500000 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs "],"EPSG:5310":["EPSG:5310","+proj=tmerc +lat_0=0 +lon_0=91.56666666666666 +k=1 +x_0=250000 +y_0=-2500000 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs "],"EPSG:5311":["EPSG:5311","+proj=tmerc +lat_0=0 +lon_0=90.86666666666666 +k=1 +x_0=250000 +y_0=-2500000 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs "],"EPSG:5316":["EPSG:5316","+proj=tmerc +lat_0=0 +lon_0=-7 +k=0.999997 +x_0=200000 +y_0=-6000000 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs "],"EPSG:5320":["EPSG:5320","+proj=lcc +lat_1=44.5 +lat_2=54.5 +lat_0=0 +lon_0=-84 +x_0=1000000 +y_0=0 +datum=NAD83 +units=m +no_defs "],"EPSG:5321":["EPSG:5321","+proj=lcc +lat_1=44.5 +lat_2=54.5 +lat_0=0 +lon_0=-84 +x_0=1000000 +y_0=0 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs "],"EPSG:5325":["EPSG:5325","+proj=lcc +lat_1=64.25 +lat_2=65.75 +lat_0=65 +lon_0=-19 +x_0=1700000 +y_0=300000 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs "],"EPSG:5329":["EPSG:5329","+proj=merc +lon_0=3.192280555555556 +k=0.997 +x_0=3900000 +y_0=900000 +ellps=bessel +towgs84=-403,684,41,0,0,0,0 +pm=jakarta +units=m +no_defs "],"EPSG:5330":["EPSG:5330","+proj=merc +lon_0=3.192280555555556 +k=0.997 +x_0=3900000 +y_0=900000 +ellps=bessel +towgs84=-377,681,-50,0,0,0,0 +pm=jakarta +units=m +no_defs "],"EPSG:5331":["EPSG:5331","+proj=merc +lon_0=3.192280555555556 +k=0.997 +x_0=3900000 +y_0=900000 +ellps=bessel +towgs84=-587.8,519.75,145.76,0,0,0,0 +pm=jakarta +units=m +no_defs "],"EPSG:5337":["EPSG:5337","+proj=utm +zone=25 +south +ellps=intl +towgs84=-151.99,287.04,-147.45,0,0,0,0 +units=m +no_defs "],"EPSG:5343":["EPSG:5343","+proj=tmerc +lat_0=-90 +lon_0=-72 +k=1 +x_0=1500000 +y_0=0 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs "],"EPSG:5344":["EPSG:5344","+proj=tmerc +lat_0=-90 +lon_0=-69 +k=1 +x_0=2500000 +y_0=0 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs "],"EPSG:5345":["EPSG:5345","+proj=tmerc +lat_0=-90 +lon_0=-66 +k=1 +x_0=3500000 +y_0=0 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs "],"EPSG:5346":["EPSG:5346","+proj=tmerc +lat_0=-90 +lon_0=-63 +k=1 +x_0=4500000 +y_0=0 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs "],"EPSG:5347":["EPSG:5347","+proj=tmerc +lat_0=-90 +lon_0=-60 +k=1 +x_0=5500000 +y_0=0 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs "],"EPSG:5348":["EPSG:5348","+proj=tmerc +lat_0=-90 +lon_0=-57 +k=1 +x_0=6500000 +y_0=0 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs "],"EPSG:5349":["EPSG:5349","+proj=tmerc +lat_0=-90 +lon_0=-54 +k=1 +x_0=7500000 +y_0=0 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs "],"EPSG:5355":["EPSG:5355","+proj=utm +zone=20 +south +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs "],"EPSG:5356":["EPSG:5356","+proj=utm +zone=19 +south +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs "],"EPSG:5357":["EPSG:5357","+proj=utm +zone=21 +south +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs "],"EPSG:5361":["EPSG:5361","+proj=utm +zone=19 +south +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs "],"EPSG:5362":["EPSG:5362","+proj=utm +zone=18 +south +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs "],"EPSG:5382":["EPSG:5382","+proj=utm +zone=21 +south +ellps=WGS84 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs "],"EPSG:5383":["EPSG:5383","+proj=utm +zone=22 +south +ellps=WGS84 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs "],"EPSG:5387":["EPSG:5387","+proj=utm +zone=18 +south +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs "],"EPSG:5388":["EPSG:5388","+proj=utm +zone=17 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs "],"EPSG:4922":["EPSG:4922","+proj=geocent +a=6378136 +b=6356751.361745712 +units=m +no_defs "],"EPSG:5389":["EPSG:5389","+proj=utm +zone=19 +south +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs "],"EPSG:5396":["EPSG:5396","+proj=utm +zone=26 +south +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs "],"EPSG:5456":["EPSG:5456","+proj=lcc +lat_1=10.46666666666667 +lat_0=10.46666666666667 +lon_0=-84.33333333333333 +k_0=0.99995696 +x_0=500000 +y_0=271820.522 +ellps=clrk66 +towgs84=205,96,-98,0,0,0,0 +units=m +no_defs "],"EPSG:5457":["EPSG:5457","+proj=lcc +lat_1=9 +lat_0=9 +lon_0=-83.66666666666667 +k_0=0.99995696 +x_0=500000 +y_0=327987.436 +ellps=clrk66 +towgs84=205,96,-98,0,0,0,0 +units=m +no_defs "],"EPSG:5458":["EPSG:5458","+proj=lcc +lat_1=16.81666666666667 +lat_0=16.81666666666667 +lon_0=-90.33333333333333 +k_0=0.99992226 +x_0=500000 +y_0=292209.579 +datum=NAD27 +units=m +no_defs "],"EPSG:5459":["EPSG:5459","+proj=lcc +lat_1=14.9 +lat_0=14.9 +lon_0=-90.33333333333333 +k_0=0.99989906 +x_0=500000 +y_0=325992.681 +ellps=clrk66 +towgs84=205,96,-98,0,0,0,0 +units=m +no_defs "],"EPSG:5460":["EPSG:5460","+proj=lcc +lat_1=13.78333333333333 +lat_0=13.78333333333333 +lon_0=-89 +k_0=0.99996704 +x_0=500000 +y_0=295809.184 +ellps=clrk66 +towgs84=205,96,-98,0,0,0,0 +units=m +no_defs "],"EPSG:5461":["EPSG:5461","+proj=lcc +lat_1=13.86666666666667 +lat_0=13.86666666666667 +lon_0=-85.5 +k_0=0.99990314 +x_0=500000 +y_0=359891.816 +ellps=clrk66 +towgs84=205,96,-98,0,0,0,0 +units=m +no_defs "],"EPSG:5462":["EPSG:5462","+proj=lcc +lat_1=11.73333333333333 +lat_0=11.73333333333333 +lon_0=-85.5 +k_0=0.9999222800000001 +x_0=500000 +y_0=288876.327 +ellps=clrk66 +towgs84=205,96,-98,0,0,0,0 +units=m +no_defs "],"EPSG:5463":["EPSG:5463","+proj=utm +zone=17 +ellps=aust_SA +towgs84=-66.87,4.37,-38.52,0,0,0,0 +units=m +no_defs "],"EPSG:5466":["EPSG:5466","+proj=tmerc +lat_0=17.06124194444444 +lon_0=-88.6318575 +k=1 +x_0=66220.02833082761 +y_0=135779.5099885299 +a=6378293.645208759 +b=6356617.987679838 +units=m +no_defs "],"EPSG:5469":["EPSG:5469","+proj=lcc +lat_1=8.416666666666666 +lat_0=8.416666666666666 +lon_0=-80 +k_0=0.99989909 +x_0=500000 +y_0=294865.303 +ellps=clrk66 +units=m +no_defs "],"EPSG:5472":["EPSG:5472","+proj=poly +lat_0=8.25 +lon_0=-81 +x_0=914391.7962 +y_0=999404.7217154861 +ellps=clrk66 +to_meter=0.9143917962 +no_defs "],"EPSG:5479":["EPSG:5479","+proj=lcc +lat_1=-76.66666666666667 +lat_2=-79.33333333333333 +lat_0=-78 +lon_0=163 +x_0=7000000 +y_0=5000000 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs "],"EPSG:5480":["EPSG:5480","+proj=lcc +lat_1=-73.66666666666667 +lat_2=-75.33333333333333 +lat_0=-74.5 +lon_0=165 +x_0=5000000 +y_0=3000000 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs "],"EPSG:5481":["EPSG:5481","+proj=lcc +lat_1=-70.66666666666667 +lat_2=-72.33333333333333 +lat_0=-71.5 +lon_0=166 +x_0=3000000 +y_0=1000000 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs "],"EPSG:5482":["EPSG:5482","+proj=stere +lat_0=-90 +lat_ts=-90 +lon_0=180 +k=0.994 +x_0=5000000 +y_0=1000000 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs "],"EPSG:5490":["EPSG:5490","+proj=utm +zone=20 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs "],"EPSG:5518":["EPSG:5518","+proj=tmerc +lat_0=-44 +lon_0=-176.5 +k=1 +x_0=350000 +y_0=650000 +ellps=intl +towgs84=175,-38,113,0,0,0,0 +units=m +no_defs "],"EPSG:5519":["EPSG:5519","+proj=tmerc +lat_0=-44 +lon_0=-176.5 +k=1 +x_0=350000 +y_0=650000 +ellps=intl +towgs84=174.05,-25.49,112.57,0,0,0.554,0.2263 +units=m +no_defs "],"EPSG:5520":["EPSG:5520","+proj=tmerc +lat_0=0 +lon_0=3 +k=1 +x_0=1500000 +y_0=0 +datum=potsdam +units=m +no_defs "],"EPSG:5523":["EPSG:5523","+proj=tmerc +lat_0=0 +lon_0=11.5 +k=0.9996 +x_0=1500000 +y_0=5500000 +datum=WGS84 +units=m +no_defs "],"EPSG:5530":["EPSG:5530","+proj=poly +lat_0=0 +lon_0=-54 +x_0=5000000 +y_0=10000000 +ellps=aust_SA +towgs84=-67.35,3.88,-38.22,0,0,0,0 +units=m +no_defs "],"EPSG:4924":["EPSG:4924","+proj=geocent +ellps=GRS80 +units=m +no_defs "],"EPSG:5535":["EPSG:5535","+proj=utm +zone=25 +south +ellps=aust_SA +towgs84=-67.35,3.88,-38.22,0,0,0,0 +units=m +no_defs "],"EPSG:5536":["EPSG:5536","+proj=utm +zone=21 +south +ellps=intl +units=m +no_defs "],"EPSG:5537":["EPSG:5537","+proj=utm +zone=22 +south +ellps=intl +units=m +no_defs "],"EPSG:5539":["EPSG:5539","+proj=utm +zone=24 +south +ellps=intl +units=m +no_defs "],"EPSG:5559":["EPSG:5559","+proj=lcc +lat_1=16.81666666666667 +lat_0=16.81666666666667 +lon_0=-90.33333333333333 +k_0=0.99992226 +x_0=500000 +y_0=292209.579 +ellps=clrk66 +towgs84=205,96,-98,0,0,0,0 +units=m +no_defs "],"EPSG:5562":["EPSG:5562","+proj=tmerc +lat_0=0 +lon_0=21 +k=1 +x_0=4500000 +y_0=0 +ellps=krass +towgs84=25,-141,-78.5,0,0.35,0.736,0 +units=m +no_defs "],"EPSG:5563":["EPSG:5563","+proj=tmerc +lat_0=0 +lon_0=27 +k=1 +x_0=5500000 +y_0=0 +ellps=krass +towgs84=25,-141,-78.5,0,0.35,0.736,0 +units=m +no_defs "],"EPSG:5564":["EPSG:5564","+proj=tmerc +lat_0=0 +lon_0=33 +k=1 +x_0=6500000 +y_0=0 +ellps=krass +towgs84=25,-141,-78.5,0,0.35,0.736,0 +units=m +no_defs "],"EPSG:5565":["EPSG:5565","+proj=tmerc +lat_0=0 +lon_0=39 +k=1 +x_0=7500000 +y_0=0 +ellps=krass +towgs84=25,-141,-78.5,0,0.35,0.736,0 +units=m +no_defs "],"EPSG:5566":["EPSG:5566","+proj=tmerc +lat_0=0 +lon_0=21 +k=1 +x_0=500000 +y_0=0 +ellps=krass +towgs84=25,-141,-78.5,0,0.35,0.736,0 +units=m +no_defs "],"EPSG:5567":["EPSG:5567","+proj=tmerc +lat_0=0 +lon_0=27 +k=1 +x_0=500000 +y_0=0 +ellps=krass +towgs84=25,-141,-78.5,0,0.35,0.736,0 +units=m +no_defs "],"EPSG:5568":["EPSG:5568","+proj=tmerc +lat_0=0 +lon_0=33 +k=1 +x_0=500000 +y_0=0 +ellps=krass +towgs84=25,-141,-78.5,0,0.35,0.736,0 +units=m +no_defs "],"EPSG:5569":["EPSG:5569","+proj=tmerc +lat_0=0 +lon_0=39 +k=1 +x_0=500000 +y_0=0 +ellps=krass +towgs84=25,-141,-78.5,0,0.35,0.736,0 +units=m +no_defs "],"EPSG:5570":["EPSG:5570","+proj=tmerc +lat_0=0 +lon_0=21 +k=1 +x_0=7500000 +y_0=0 +ellps=krass +towgs84=25,-141,-78.5,0,0.35,0.736,0 +units=m +no_defs "],"EPSG:5571":["EPSG:5571","+proj=tmerc +lat_0=0 +lon_0=24 +k=1 +x_0=8500000 +y_0=0 +ellps=krass +towgs84=25,-141,-78.5,0,0.35,0.736,0 +units=m +no_defs "],"EPSG:5572":["EPSG:5572","+proj=tmerc +lat_0=0 +lon_0=27 +k=1 +x_0=9500000 +y_0=0 +ellps=krass +towgs84=25,-141,-78.5,0,0.35,0.736,0 +units=m +no_defs "],"EPSG:5573":["EPSG:5573","+proj=tmerc +lat_0=0 +lon_0=30 +k=1 +x_0=10500000 +y_0=0 +ellps=krass +towgs84=25,-141,-78.5,0,0.35,0.736,0 +units=m +no_defs "],"EPSG:5574":["EPSG:5574","+proj=tmerc +lat_0=0 +lon_0=33 +k=1 +x_0=11500000 +y_0=0 +ellps=krass +towgs84=25,-141,-78.5,0,0.35,0.736,0 +units=m +no_defs "],"EPSG:5575":["EPSG:5575","+proj=tmerc +lat_0=0 +lon_0=36 +k=1 +x_0=12500000 +y_0=0 +ellps=krass +towgs84=25,-141,-78.5,0,0.35,0.736,0 +units=m +no_defs "],"EPSG:5576":["EPSG:5576","+proj=tmerc +lat_0=0 +lon_0=39 +k=1 +x_0=13500000 +y_0=0 +ellps=krass +towgs84=25,-141,-78.5,0,0.35,0.736,0 +units=m +no_defs "],"EPSG:5577":["EPSG:5577","+proj=tmerc +lat_0=0 +lon_0=21 +k=1 +x_0=500000 +y_0=0 +ellps=krass +towgs84=25,-141,-78.5,0,0.35,0.736,0 +units=m +no_defs "],"EPSG:5578":["EPSG:5578","+proj=tmerc +lat_0=0 +lon_0=24 +k=1 +x_0=500000 +y_0=0 +ellps=krass +towgs84=25,-141,-78.5,0,0.35,0.736,0 +units=m +no_defs "],"EPSG:5579":["EPSG:5579","+proj=tmerc +lat_0=0 +lon_0=27 +k=1 +x_0=500000 +y_0=0 +ellps=krass +towgs84=25,-141,-78.5,0,0.35,0.736,0 +units=m +no_defs "],"EPSG:5580":["EPSG:5580","+proj=tmerc +lat_0=0 +lon_0=30 +k=1 +x_0=500000 +y_0=0 +ellps=krass +towgs84=25,-141,-78.5,0,0.35,0.736,0 +units=m +no_defs "],"EPSG:5581":["EPSG:5581","+proj=tmerc +lat_0=0 +lon_0=33 +k=1 +x_0=500000 +y_0=0 +ellps=krass +towgs84=25,-141,-78.5,0,0.35,0.736,0 +units=m +no_defs "],"EPSG:5582":["EPSG:5582","+proj=tmerc +lat_0=0 +lon_0=36 +k=1 +x_0=500000 +y_0=0 +ellps=krass +towgs84=25,-141,-78.5,0,0.35,0.736,0 +units=m +no_defs "],"EPSG:5583":["EPSG:5583","+proj=tmerc +lat_0=0 +lon_0=39 +k=1 +x_0=500000 +y_0=0 +ellps=krass +towgs84=25,-141,-78.5,0,0.35,0.736,0 +units=m +no_defs "],"EPSG:5588":["EPSG:5588","+proj=sterea +lat_0=46.5 +lon_0=-66.5 +k=0.999912 +x_0=304800 +y_0=304800 +datum=NAD27 +units=ft +no_defs "],"EPSG:5589":["EPSG:5589","+proj=tmerc +lat_0=17.06124194444444 +lon_0=-88.6318575 +k=1 +x_0=66220.02833082761 +y_0=135779.5099885299 +a=6378293.645208759 +b=6356617.987679838 +to_meter=0.3047972654 +no_defs "],"EPSG:5596":["EPSG:5596","+proj=tmerc +lat_0=0 +lon_0=11.33333333333333 +k=1 +x_0=1000000 +y_0=0 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs "],"EPSG:5623":["EPSG:5623","+proj=tmerc +lat_0=41.5 +lon_0=-83.66666666666667 +k=0.999942857 +x_0=152400.3048006096 +y_0=0 +datum=NAD27 +units=us-ft +no_defs "],"EPSG:5624":["EPSG:5624","+proj=tmerc +lat_0=41.5 +lon_0=-85.75 +k=0.999909091 +x_0=152400.3048006096 +y_0=0 +datum=NAD27 +units=us-ft +no_defs "],"EPSG:5625":["EPSG:5625","+proj=tmerc +lat_0=41.5 +lon_0=-88.75 +k=0.999909091 +x_0=152400.3048006096 +y_0=0 +datum=NAD27 +units=us-ft +no_defs "],"EPSG:6686":["EPSG:6686","+proj=tmerc +lat_0=20 +lon_0=136 +k=0.9999 +x_0=0 +y_0=0 +ellps=GRS80 +units=m +no_defs "],"EPSG:5627":["EPSG:5627","+proj=tmerc +lat_0=0 +lon_0=6 +k=0.9996 +x_0=500000 +y_0=0 +ellps=intl +towgs84=-87,-98,-121,0,0,0,0 +units=m +no_defs "],"EPSG:5629":["EPSG:5629","+proj=utm +zone=38 +south +ellps=WGS84 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs "],"EPSG:5631":["EPSG:5631","+proj=tmerc +lat_0=0 +lon_0=9 +k=1 +x_0=2500000 +y_0=0 +ellps=krass +towgs84=2.3287,-147.0425,-92.0802,-0.3092483,0.32482185,0.49729934,5.68906266 +units=m +no_defs "],"EPSG:5632":["EPSG:5632","+proj=lcc +lat_1=35 +lat_2=65 +lat_0=52 +lon_0=10 +x_0=4000000 +y_0=2800000 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs "],"EPSG:5633":["EPSG:5633","+proj=laea +lat_0=52 +lon_0=10 +x_0=4321000 +y_0=3210000 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs "],"EPSG:5634":["EPSG:5634","+proj=lcc +lat_1=35 +lat_2=65 +lat_0=52 +lon_0=10 +x_0=4000000 +y_0=2800000 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs "],"EPSG:5635":["EPSG:5635","+proj=laea +lat_0=52 +lon_0=10 +x_0=4321000 +y_0=3210000 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs "],"EPSG:5636":["EPSG:5636","+proj=laea +lat_0=52 +lon_0=10 +x_0=4321000 +y_0=3210000 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs "],"EPSG:5637":["EPSG:5637","+proj=lcc +lat_1=35 +lat_2=65 +lat_0=52 +lon_0=10 +x_0=4000000 +y_0=2800000 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs "],"EPSG:5638":["EPSG:5638","+proj=laea +lat_0=52 +lon_0=10 +x_0=4321000 +y_0=3210000 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs "],"EPSG:5639":["EPSG:5639","+proj=lcc +lat_1=35 +lat_2=65 +lat_0=52 +lon_0=10 +x_0=4000000 +y_0=2800000 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs "],"EPSG:5641":["EPSG:5641","+proj=merc +lon_0=-43 +lat_ts=-2 +x_0=5000000 +y_0=10000000 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs "],"EPSG:5643":["EPSG:5643","+proj=lcc +lat_1=52.66666666666666 +lat_2=54.33333333333334 +lat_0=48 +lon_0=10 +x_0=815000 +y_0=0 +ellps=intl +towgs84=-87,-98,-121,0,0,0,0 +units=m +no_defs "],"EPSG:5644":["EPSG:5644","+proj=utm +zone=39 +south +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs "],"EPSG:5646":["EPSG:5646","+proj=tmerc +lat_0=42.5 +lon_0=-72.5 +k=0.999964286 +x_0=500000.00001016 +y_0=0 +datum=NAD83 +units=us-ft +no_defs "],"EPSG:5649":["EPSG:5649","+proj=tmerc +lat_0=0 +lon_0=3 +k=0.9996 +x_0=31500000 +y_0=0 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs "],"EPSG:5650":["EPSG:5650","+proj=tmerc +lat_0=0 +lon_0=15 +k=0.9996 +x_0=33500000 +y_0=0 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs "],"EPSG:5651":["EPSG:5651","+proj=tmerc +lat_0=0 +lon_0=3 +k=0.9996 +x_0=31500000 +y_0=0 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs "],"EPSG:5652":["EPSG:5652","+proj=tmerc +lat_0=0 +lon_0=9 +k=0.9996 +x_0=32500000 +y_0=0 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs "],"EPSG:6687":["EPSG:6687","+proj=tmerc +lat_0=26 +lon_0=154 +k=0.9999 +x_0=0 +y_0=0 +ellps=GRS80 +units=m +no_defs "],"EPSG:5653":["EPSG:5653","+proj=tmerc +lat_0=0 +lon_0=15 +k=0.9996 +x_0=33500000 +y_0=0 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs "],"EPSG:5654":["EPSG:5654","+proj=tmerc +lat_0=42.5 +lon_0=-72.5 +k=0.999964286 +x_0=500000.00001016 +y_0=0 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=us-ft +no_defs "],"EPSG:5655":["EPSG:5655","+proj=tmerc +lat_0=42.5 +lon_0=-72.5 +k=0.999964286 +x_0=500000.00001016 +y_0=0 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=us-ft +no_defs "],"EPSG:5659":["EPSG:5659","+proj=tmerc +lat_0=0 +lon_0=9 +k=0.9996 +x_0=500053 +y_0=-3999820 +ellps=intl +towgs84=-104.1,-49.1,-9.9,0.971,-2.917,0.714,-11.68 +units=m +no_defs "],"EPSG:5663":["EPSG:5663","+proj=tmerc +lat_0=0 +lon_0=15 +k=1 +x_0=3500000 +y_0=0 +ellps=krass +towgs84=2.3287,-147.0425,-92.0802,-0.3092483,0.32482185,0.49729934,5.68906266 +units=m +no_defs "],"EPSG:5664":["EPSG:5664","+proj=tmerc +lat_0=0 +lon_0=9 +k=1 +x_0=2500000 +y_0=0 +ellps=krass +towgs84=26,-121,-78,0,0,0,0 +units=m +no_defs "],"EPSG:5665":["EPSG:5665","+proj=tmerc +lat_0=0 +lon_0=15 +k=1 +x_0=3500000 +y_0=0 +ellps=krass +towgs84=26,-121,-78,0,0,0,0 +units=m +no_defs "],"EPSG:5666":["EPSG:5666","+proj=tmerc +lat_0=0 +lon_0=9 +k=1 +x_0=3500000 +y_0=0 +ellps=bessel +units=m +no_defs "],"EPSG:5667":["EPSG:5667","+proj=tmerc +lat_0=0 +lon_0=12 +k=1 +x_0=4500000 +y_0=0 +ellps=bessel +units=m +no_defs "],"EPSG:5668":["EPSG:5668","+proj=tmerc +lat_0=0 +lon_0=12 +k=1 +x_0=4500000 +y_0=0 +ellps=bessel +units=m +no_defs "],"EPSG:5669":["EPSG:5669","+proj=tmerc +lat_0=0 +lon_0=15 +k=1 +x_0=5500000 +y_0=0 +ellps=bessel +units=m +no_defs "],"EPSG:5670":["EPSG:5670","+proj=tmerc +lat_0=0 +lon_0=9 +k=1 +x_0=3500000 +y_0=0 +ellps=krass +towgs84=2.3287,-147.0425,-92.0802,-0.3092483,0.32482185,0.49729934,5.68906266 +units=m +no_defs "],"EPSG:5671":["EPSG:5671","+proj=tmerc +lat_0=0 +lon_0=12 +k=1 +x_0=4500000 +y_0=0 +ellps=krass +towgs84=2.3287,-147.0425,-92.0802,-0.3092483,0.32482185,0.49729934,5.68906266 +units=m +no_defs "],"EPSG:5672":["EPSG:5672","+proj=tmerc +lat_0=0 +lon_0=15 +k=1 +x_0=5500000 +y_0=0 +ellps=krass +towgs84=2.3287,-147.0425,-92.0802,-0.3092483,0.32482185,0.49729934,5.68906266 +units=m +no_defs "],"EPSG:5673":["EPSG:5673","+proj=tmerc +lat_0=0 +lon_0=9 +k=1 +x_0=3500000 +y_0=0 +ellps=krass +towgs84=26,-121,-78,0,0,0,0 +units=m +no_defs "],"EPSG:5674":["EPSG:5674","+proj=tmerc +lat_0=0 +lon_0=12 +k=1 +x_0=4500000 +y_0=0 +ellps=krass +towgs84=26,-121,-78,0,0,0,0 +units=m +no_defs "],"EPSG:5675":["EPSG:5675","+proj=tmerc +lat_0=0 +lon_0=15 +k=1 +x_0=5500000 +y_0=0 +ellps=krass +towgs84=26,-121,-78,0,0,0,0 +units=m +no_defs "],"EPSG:5676":["EPSG:5676","+proj=tmerc +lat_0=0 +lon_0=6 +k=1 +x_0=2500000 +y_0=0 +datum=potsdam +units=m +no_defs "],"EPSG:5677":["EPSG:5677","+proj=tmerc +lat_0=0 +lon_0=9 +k=1 +x_0=3500000 +y_0=0 +datum=potsdam +units=m +no_defs "],"EPSG:5678":["EPSG:5678","+proj=tmerc +lat_0=0 +lon_0=12 +k=1 +x_0=4500000 +y_0=0 +datum=potsdam +units=m +no_defs "],"EPSG:5679":["EPSG:5679","+proj=tmerc +lat_0=0 +lon_0=15 +k=1 +x_0=5500000 +y_0=0 +datum=potsdam +units=m +no_defs "],"EPSG:5680":["EPSG:5680","+proj=tmerc +lat_0=0 +lon_0=3 +k=1 +x_0=1500000 +y_0=0 +datum=potsdam +units=m +no_defs "],"EPSG:5682":["EPSG:5682","+proj=tmerc +lat_0=0 +lon_0=6 +k=1 +x_0=2500000 +y_0=0 +ellps=bessel +units=m +no_defs "],"EPSG:5683":["EPSG:5683","+proj=tmerc +lat_0=0 +lon_0=9 +k=1 +x_0=3500000 +y_0=0 +ellps=bessel +units=m +no_defs "],"EPSG:5684":["EPSG:5684","+proj=tmerc +lat_0=0 +lon_0=12 +k=1 +x_0=4500000 +y_0=0 +ellps=bessel +units=m +no_defs "],"EPSG:5685":["EPSG:5685","+proj=tmerc +lat_0=0 +lon_0=15 +k=1 +x_0=5500000 +y_0=0 +ellps=bessel +units=m +no_defs "],"EPSG:5700":["EPSG:5700","+proj=utm +zone=1 +south +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs "],"EPSG:5879":["EPSG:5879","+proj=utm +zone=38 +south +ellps=intl +towgs84=-381.788,-57.501,-256.673,0,0,0,0 +units=m +no_defs "],"EPSG:5825":["EPSG:5825","+proj=tmerc +lat_0=-35.31773627777778 +lon_0=149.0092948305555 +k=1.000086 +x_0=200000 +y_0=600000 +ellps=aust_SA +towgs84=-117.808,-51.536,137.784,0.303,0.446,0.234,-0.29 +units=m +no_defs "],"EPSG:5836":["EPSG:5836","+proj=utm +zone=37 +ellps=WGS84 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs "],"EPSG:5837":["EPSG:5837","+proj=utm +zone=40 +ellps=WGS84 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs "],"EPSG:5839":["EPSG:5839","+proj=utm +zone=17 +south +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs "],"EPSG:5842":["EPSG:5842","+proj=tmerc +lat_0=0 +lon_0=12 +k=0.9996 +x_0=500000 +y_0=10000000 +datum=WGS84 +units=m +no_defs "],"EPSG:5844":["EPSG:5844","+proj=tmerc +lat_0=0 +lon_0=30 +k=0.9999 +x_0=500000 +y_0=10000000 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs "],"EPSG:5858":["EPSG:5858","+proj=utm +zone=22 +south +ellps=aust_SA +towgs84=-67.35,3.88,-38.22,0,0,0,0 +units=m +no_defs "],"EPSG:5875":["EPSG:5875","+proj=utm +zone=18 +south +ellps=aust_SA +towgs84=-67.35,3.88,-38.22,0,0,0,0 +units=m +no_defs "],"EPSG:5876":["EPSG:5876","+proj=utm +zone=19 +south +ellps=aust_SA +towgs84=-67.35,3.88,-38.22,0,0,0,0 +units=m +no_defs "],"EPSG:5877":["EPSG:5877","+proj=utm +zone=20 +south +ellps=aust_SA +towgs84=-67.35,3.88,-38.22,0,0,0,0 +units=m +no_defs "],"EPSG:5880":["EPSG:5880","+proj=poly +lat_0=0 +lon_0=-54 +x_0=5000000 +y_0=10000000 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs "],"EPSG:5887":["EPSG:5887","+proj=tmerc +lat_0=0 +lon_0=-177 +k=0.9996 +x_0=1500000 +y_0=5000000 +ellps=GRS80 +units=m +no_defs "],"EPSG:5890":["EPSG:5890","+proj=stere +lat_0=90 +lat_ts=70 +lon_0=90 +k=1 +x_0=0 +y_0=0 +a=6378273 +b=6356889.449 +units=m +no_defs "],"EPSG:5921":["EPSG:5921","+proj=lcc +lat_1=85 +lat_2=77 +lat_0=81.31722600000001 +lon_0=-111 +x_0=0 +y_0=0 +datum=WGS84 +units=m +no_defs "],"EPSG:5922":["EPSG:5922","+proj=lcc +lat_1=85 +lat_2=77 +lat_0=81.31722600000001 +lon_0=-39 +x_0=0 +y_0=0 +datum=WGS84 +units=m +no_defs "],"EPSG:5923":["EPSG:5923","+proj=lcc +lat_1=85 +lat_2=77 +lat_0=81.31722600000001 +lon_0=33 +x_0=0 +y_0=0 +datum=WGS84 +units=m +no_defs "],"EPSG:5924":["EPSG:5924","+proj=lcc +lat_1=85 +lat_2=77 +lat_0=81.31722600000001 +lon_0=105 +x_0=0 +y_0=0 +datum=WGS84 +units=m +no_defs "],"EPSG:5925":["EPSG:5925","+proj=lcc +lat_1=85 +lat_2=77 +lat_0=81.31722600000001 +lon_0=177 +x_0=0 +y_0=0 +datum=WGS84 +units=m +no_defs "],"EPSG:5926":["EPSG:5926","+proj=lcc +lat_1=77 +lat_2=69 +lat_0=73.15574086111111 +lon_0=-111 +x_0=0 +y_0=0 +datum=WGS84 +units=m +no_defs "],"EPSG:6688":["EPSG:6688","+proj=utm +zone=51 +ellps=GRS80 +units=m +no_defs "],"EPSG:5927":["EPSG:5927","+proj=lcc +lat_1=77 +lat_2=69 +lat_0=73.15574086111111 +lon_0=-39 +x_0=0 +y_0=0 +datum=WGS84 +units=m +no_defs "],"EPSG:5928":["EPSG:5928","+proj=lcc +lat_1=77 +lat_2=69 +lat_0=73.15574086111111 +lon_0=33 +x_0=0 +y_0=0 +datum=WGS84 +units=m +no_defs "],"EPSG:5929":["EPSG:5929","+proj=lcc +lat_1=77 +lat_2=69 +lat_0=73.15574086111111 +lon_0=105 +x_0=0 +y_0=0 +datum=WGS84 +units=m +no_defs "],"EPSG:5930":["EPSG:5930","+proj=lcc +lat_1=77 +lat_2=69 +lat_0=73.15574086111111 +lon_0=177 +x_0=0 +y_0=0 +datum=WGS84 +units=m +no_defs "],"EPSG:5931":["EPSG:5931","+proj=lcc +lat_1=69 +lat_2=61 +lat_0=65.10127088888888 +lon_0=-111 +x_0=0 +y_0=0 +datum=WGS84 +units=m +no_defs "],"EPSG:5932":["EPSG:5932","+proj=lcc +lat_1=69 +lat_2=61 +lat_0=65.10127088888888 +lon_0=-39 +x_0=0 +y_0=0 +datum=WGS84 +units=m +no_defs "],"EPSG:5933":["EPSG:5933","+proj=lcc +lat_1=69 +lat_2=61 +lat_0=65.10127088888888 +lon_0=33 +x_0=0 +y_0=0 +datum=WGS84 +units=m +no_defs "],"EPSG:5934":["EPSG:5934","+proj=lcc +lat_1=69 +lat_2=61 +lat_0=65.10127088888888 +lon_0=105 +x_0=0 +y_0=0 +datum=WGS84 +units=m +no_defs "],"EPSG:5935":["EPSG:5935","+proj=lcc +lat_1=69 +lat_2=61 +lat_0=65.10127088888888 +lon_0=177 +x_0=0 +y_0=0 +datum=WGS84 +units=m +no_defs "],"EPSG:4930":["EPSG:4930","+proj=geocent +ellps=GRS80 +units=m +no_defs "],"EPSG:5936":["EPSG:5936","+proj=stere +lat_0=90 +lat_ts=90 +lon_0=-150 +k=0.994 +x_0=2000000 +y_0=2000000 +datum=WGS84 +units=m +no_defs "],"EPSG:5937":["EPSG:5937","+proj=stere +lat_0=90 +lat_ts=90 +lon_0=-100 +k=0.994 +x_0=2000000 +y_0=2000000 +datum=WGS84 +units=m +no_defs "],"EPSG:5938":["EPSG:5938","+proj=stere +lat_0=90 +lat_ts=90 +lon_0=-33 +k=0.994 +x_0=2000000 +y_0=2000000 +datum=WGS84 +units=m +no_defs "],"EPSG:5939":["EPSG:5939","+proj=stere +lat_0=90 +lat_ts=90 +lon_0=18 +k=0.994 +x_0=2000000 +y_0=2000000 +datum=WGS84 +units=m +no_defs "],"EPSG:5940":["EPSG:5940","+proj=stere +lat_0=90 +lat_ts=90 +lon_0=105 +k=0.994 +x_0=2000000 +y_0=2000000 +datum=WGS84 +units=m +no_defs "],"EPSG:6050":["EPSG:6050","+proj=lcc +lat_1=87 +lat_2=83.66666666666667 +lat_0=85.43711833333333 +lon_0=-30 +x_0=25500000 +y_0=1500000 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs "],"EPSG:6051":["EPSG:6051","+proj=lcc +lat_1=83.66666666666667 +lat_2=80.33333333333333 +lat_0=82.05842488888888 +lon_0=-52 +x_0=18500000 +y_0=2500000 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs "],"EPSG:6052":["EPSG:6052","+proj=lcc +lat_1=83.66666666666667 +lat_2=80.33333333333333 +lat_0=82.05842488888888 +lon_0=-12 +x_0=20500000 +y_0=2500000 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs "],"EPSG:6053":["EPSG:6053","+proj=lcc +lat_1=80.33333333333333 +lat_2=77 +lat_0=78.70733752777778 +lon_0=-69 +x_0=29500000 +y_0=3500000 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs "],"EPSG:4932":["EPSG:4932","+proj=geocent +ellps=GRS80 +units=m +no_defs "],"EPSG:6054":["EPSG:6054","+proj=lcc +lat_1=80.33333333333333 +lat_2=77 +lat_0=78.70733752777778 +lon_0=-39 +x_0=31500000 +y_0=3500000 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs "],"EPSG:6055":["EPSG:6055","+proj=lcc +lat_1=80.33333333333333 +lat_2=77 +lat_0=78.70733752777778 +lon_0=-10 +x_0=33500000 +y_0=3500000 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs "],"EPSG:6056":["EPSG:6056","+proj=lcc +lat_1=77 +lat_2=73.66666666666667 +lat_0=75.36440330555556 +lon_0=-64 +x_0=20500000 +y_0=4500000 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs "],"EPSG:6057":["EPSG:6057","+proj=lcc +lat_1=77 +lat_2=73.66666666666667 +lat_0=75.36440330555556 +lon_0=-39 +x_0=22500000 +y_0=4500000 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs "],"EPSG:6058":["EPSG:6058","+proj=lcc +lat_1=77 +lat_2=73.66666666666667 +lat_0=75.36440330555556 +lon_0=-14 +x_0=24500000 +y_0=4500000 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs "],"EPSG:6059":["EPSG:6059","+proj=lcc +lat_1=73.66666666666667 +lat_2=70.33333333333333 +lat_0=72.02500919444445 +lon_0=-62 +x_0=41500000 +y_0=5500000 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs "],"EPSG:6060":["EPSG:6060","+proj=lcc +lat_1=73.66666666666667 +lat_2=70.33333333333333 +lat_0=72.02500919444445 +lon_0=-42 +x_0=43500000 +y_0=5500000 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs "],"EPSG:6061":["EPSG:6061","+proj=lcc +lat_1=73.66666666666667 +lat_2=70.33333333333333 +lat_0=72.02500919444445 +lon_0=-22 +x_0=45500000 +y_0=5500000 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs "],"EPSG:4934":["EPSG:4934","+proj=geocent +ellps=GRS80 +units=m +no_defs "],"EPSG:6062":["EPSG:6062","+proj=lcc +lat_1=70.33333333333333 +lat_2=67 +lat_0=68.68747555555557 +lon_0=-56 +x_0=26500000 +y_0=6500000 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs "],"EPSG:6063":["EPSG:6063","+proj=lcc +lat_1=70.33333333333333 +lat_2=67 +lat_0=68.68747555555557 +lon_0=-38 +x_0=28500000 +y_0=6500000 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs "],"EPSG:6064":["EPSG:6064","+proj=lcc +lat_1=70.33333333333333 +lat_2=67 +lat_0=68.68747555555557 +lon_0=-20 +x_0=30500000 +y_0=6500000 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs "],"EPSG:6065":["EPSG:6065","+proj=lcc +lat_1=67 +lat_2=63.66666666666666 +lat_0=65.35103930555555 +lon_0=-51 +x_0=11500000 +y_0=7500000 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs "],"EPSG:6066":["EPSG:6066","+proj=lcc +lat_1=67 +lat_2=63.66666666666666 +lat_0=65.35103930555555 +lon_0=-34 +x_0=13500000 +y_0=7500000 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs "],"EPSG:6067":["EPSG:6067","+proj=lcc +lat_1=63.66666666666666 +lat_2=60.33333333333334 +lat_0=62.01530688888889 +lon_0=-52 +x_0=20500000 +y_0=8500000 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs "],"EPSG:6068":["EPSG:6068","+proj=lcc +lat_1=63.66666666666666 +lat_2=60.33333333333334 +lat_0=62.01530688888889 +lon_0=-37 +x_0=22500000 +y_0=8500000 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs "],"EPSG:6069":["EPSG:6069","+proj=lcc +lat_1=83.66666666666667 +lat_2=80.33333333333333 +lat_0=82.05842488888888 +lon_0=16 +x_0=22500000 +y_0=2500000 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs "],"EPSG:6070":["EPSG:6070","+proj=lcc +lat_1=80.33333333333333 +lat_2=77 +lat_0=78.70733752777778 +lon_0=21 +x_0=11500000 +y_0=3500000 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs "],"EPSG:6071":["EPSG:6071","+proj=lcc +lat_1=77 +lat_2=73.66666666666667 +lat_0=75.36440330555556 +lon_0=10 +x_0=26500000 +y_0=4500000 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs "],"EPSG:6072":["EPSG:6072","+proj=lcc +lat_1=77 +lat_2=73.66666666666667 +lat_0=75.36440330555556 +lon_0=34 +x_0=28500000 +y_0=4500000 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs "],"EPSG:6073":["EPSG:6073","+proj=lcc +lat_1=73.66666666666667 +lat_2=70.33333333333333 +lat_0=72.02500919444445 +lon_0=14 +x_0=11500000 +y_0=5500000 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs "],"EPSG:6074":["EPSG:6074","+proj=lcc +lat_1=73.66666666666667 +lat_2=70.33333333333333 +lat_0=72.02500919444445 +lon_0=34 +x_0=13500000 +y_0=5500000 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs "],"EPSG:6075":["EPSG:6075","+proj=lcc +lat_1=83.66666666666667 +lat_2=80.33333333333333 +lat_0=82.05842488888888 +lon_0=53 +x_0=24500000 +y_0=2500000 +datum=WGS84 +units=m +no_defs "],"EPSG:6076":["EPSG:6076","+proj=lcc +lat_1=83.66666666666667 +lat_2=80.33333333333333 +lat_0=82.05842488888888 +lon_0=93 +x_0=26500000 +y_0=2500000 +datum=WGS84 +units=m +no_defs "],"EPSG:6077":["EPSG:6077","+proj=lcc +lat_1=80.33333333333333 +lat_2=77 +lat_0=78.70733752777778 +lon_0=52 +x_0=13500000 +y_0=3500000 +datum=WGS84 +units=m +no_defs "],"EPSG:6078":["EPSG:6078","+proj=lcc +lat_1=80.33333333333333 +lat_2=77 +lat_0=78.70733752777778 +lon_0=83 +x_0=15500000 +y_0=3500000 +datum=WGS84 +units=m +no_defs "],"EPSG:6079":["EPSG:6079","+proj=lcc +lat_1=80.33333333333333 +lat_2=77 +lat_0=78.70733752777778 +lon_0=114 +x_0=17500000 +y_0=3500000 +datum=WGS84 +units=m +no_defs "],"EPSG:6080":["EPSG:6080","+proj=lcc +lat_1=80.33333333333333 +lat_2=77 +lat_0=78.70733752777778 +lon_0=145 +x_0=19500000 +y_0=3500000 +datum=WGS84 +units=m +no_defs "],"EPSG:6081":["EPSG:6081","+proj=lcc +lat_1=77 +lat_2=73.66666666666667 +lat_0=75.36440330555556 +lon_0=58 +x_0=30500000 +y_0=4500000 +datum=WGS84 +units=m +no_defs "],"EPSG:6082":["EPSG:6082","+proj=lcc +lat_1=77 +lat_2=73.66666666666667 +lat_0=75.36440330555556 +lon_0=82 +x_0=32500000 +y_0=4500000 +datum=WGS84 +units=m +no_defs "],"EPSG:6083":["EPSG:6083","+proj=lcc +lat_1=77 +lat_2=73.66666666666667 +lat_0=75.36440330555556 +lon_0=106 +x_0=34500000 +y_0=4500000 +datum=WGS84 +units=m +no_defs "],"EPSG:6084":["EPSG:6084","+proj=lcc +lat_1=77 +lat_2=73.66666666666667 +lat_0=75.36440330555556 +lon_0=130 +x_0=36500000 +y_0=4500000 +datum=WGS84 +units=m +no_defs "],"EPSG:6085":["EPSG:6085","+proj=lcc +lat_1=77 +lat_2=73.66666666666667 +lat_0=75.36440330555556 +lon_0=154 +x_0=38500000 +y_0=4500000 +datum=WGS84 +units=m +no_defs "],"EPSG:6086":["EPSG:6086","+proj=lcc +lat_1=77 +lat_2=73.66666666666667 +lat_0=75.36440330555556 +lon_0=179 +x_0=40500000 +y_0=4500000 +datum=WGS84 +units=m +no_defs "],"EPSG:6087":["EPSG:6087","+proj=lcc +lat_1=73.66666666666667 +lat_2=70.33333333333333 +lat_0=72.02500919444445 +lon_0=54 +x_0=15500000 +y_0=5500000 +datum=WGS84 +units=m +no_defs "],"EPSG:6088":["EPSG:6088","+proj=lcc +lat_1=73.66666666666667 +lat_2=70.33333333333333 +lat_0=72.02500919444445 +lon_0=74 +x_0=17500000 +y_0=5500000 +datum=WGS84 +units=m +no_defs "],"EPSG:6089":["EPSG:6089","+proj=lcc +lat_1=73.66666666666667 +lat_2=70.33333333333333 +lat_0=72.02500919444445 +lon_0=95 +x_0=19500000 +y_0=5500000 +datum=WGS84 +units=m +no_defs "],"EPSG:6090":["EPSG:6090","+proj=lcc +lat_1=73.66666666666667 +lat_2=70.33333333333333 +lat_0=72.02500919444445 +lon_0=116 +x_0=21500000 +y_0=5500000 +datum=WGS84 +units=m +no_defs "],"EPSG:6091":["EPSG:6091","+proj=lcc +lat_1=73.66666666666667 +lat_2=70.33333333333333 +lat_0=72.02500919444445 +lon_0=137 +x_0=23500000 +y_0=5500000 +datum=WGS84 +units=m +no_defs "],"EPSG:6092":["EPSG:6092","+proj=lcc +lat_1=73.66666666666667 +lat_2=70.33333333333333 +lat_0=72.02500919444445 +lon_0=158 +x_0=25500000 +y_0=5500000 +datum=WGS84 +units=m +no_defs "],"EPSG:6093":["EPSG:6093","+proj=lcc +lat_1=73.66666666666667 +lat_2=70.33333333333333 +lat_0=72.02500919444445 +lon_0=179 +x_0=27500000 +y_0=5500000 +datum=WGS84 +units=m +no_defs "],"EPSG:6094":["EPSG:6094","+proj=lcc +lat_1=73.66666666666667 +lat_2=70.33333333333333 +lat_0=72.02500919444445 +lon_0=-163 +x_0=29500000 +y_0=5500000 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs "],"EPSG:6095":["EPSG:6095","+proj=lcc +lat_1=73.66666666666667 +lat_2=70.33333333333333 +lat_0=72.02500919444445 +lon_0=-147 +x_0=31500000 +y_0=5500000 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs "],"EPSG:6096":["EPSG:6096","+proj=lcc +lat_1=70.33333333333333 +lat_2=67 +lat_0=68.68747555555557 +lon_0=-165 +x_0=14500000 +y_0=6500000 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs "],"EPSG:6097":["EPSG:6097","+proj=lcc +lat_1=70.33333333333333 +lat_2=67 +lat_0=68.68747555555557 +lon_0=-147 +x_0=16500000 +y_0=6500000 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs "],"EPSG:6098":["EPSG:6098","+proj=lcc +lat_1=87 +lat_2=83.66666666666667 +lat_0=85.43711833333333 +lon_0=-90 +x_0=23500000 +y_0=1500000 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs "],"EPSG:6099":["EPSG:6099","+proj=lcc +lat_1=83.66666666666667 +lat_2=80.33333333333333 +lat_0=82.05842488888888 +lon_0=-115 +x_0=14500000 +y_0=2500000 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs "],"EPSG:6100":["EPSG:6100","+proj=lcc +lat_1=83.66666666666667 +lat_2=80.33333333333333 +lat_0=82.05842488888888 +lon_0=-75 +x_0=16500000 +y_0=2500000 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs "],"EPSG:6101":["EPSG:6101","+proj=lcc +lat_1=80.33333333333333 +lat_2=77 +lat_0=78.70733752777778 +lon_0=-129 +x_0=25500000 +y_0=3500000 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs "],"EPSG:6102":["EPSG:6102","+proj=lcc +lat_1=80.33333333333333 +lat_2=77 +lat_0=78.70733752777778 +lon_0=-99 +x_0=27500000 +y_0=3500000 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs "],"EPSG:6103":["EPSG:6103","+proj=lcc +lat_1=80.33333333333333 +lat_2=77 +lat_0=78.70733752777778 +lon_0=-69 +x_0=29500000 +y_0=3500000 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs "],"EPSG:6104":["EPSG:6104","+proj=lcc +lat_1=77 +lat_2=73.66666666666667 +lat_0=75.36440330555556 +lon_0=-129 +x_0=14500000 +y_0=4500000 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs "],"EPSG:6105":["EPSG:6105","+proj=lcc +lat_1=77 +lat_2=73.66666666666667 +lat_0=75.36440330555556 +lon_0=-104 +x_0=16500000 +y_0=4500000 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs "],"EPSG:6106":["EPSG:6106","+proj=lcc +lat_1=77 +lat_2=73.66666666666667 +lat_0=75.36440330555556 +lon_0=-79 +x_0=18500000 +y_0=4500000 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs "],"EPSG:6107":["EPSG:6107","+proj=lcc +lat_1=73.66666666666667 +lat_2=70.33333333333333 +lat_0=72.02500919444445 +lon_0=-131 +x_0=33500000 +y_0=5500000 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs "],"EPSG:6108":["EPSG:6108","+proj=lcc +lat_1=73.66666666666667 +lat_2=70.33333333333333 +lat_0=72.02500919444445 +lon_0=-111 +x_0=35500000 +y_0=5500000 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs "],"EPSG:6109":["EPSG:6109","+proj=lcc +lat_1=73.66666666666667 +lat_2=70.33333333333333 +lat_0=72.02500919444445 +lon_0=-91 +x_0=37500000 +y_0=5500000 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs "],"EPSG:6110":["EPSG:6110","+proj=lcc +lat_1=73.66666666666667 +lat_2=70.33333333333333 +lat_0=72.02500919444445 +lon_0=-71 +x_0=39500000 +y_0=5500000 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs "],"EPSG:6111":["EPSG:6111","+proj=lcc +lat_1=70.33333333333333 +lat_2=67 +lat_0=68.68747555555557 +lon_0=-132 +x_0=18500000 +y_0=6500000 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs "],"EPSG:6112":["EPSG:6112","+proj=lcc +lat_1=70.33333333333333 +lat_2=67 +lat_0=68.68747555555557 +lon_0=-113 +x_0=20500000 +y_0=6500000 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs "],"EPSG:6113":["EPSG:6113","+proj=lcc +lat_1=70.33333333333333 +lat_2=67 +lat_0=68.68747555555557 +lon_0=-94 +x_0=22500000 +y_0=6500000 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs "],"EPSG:6114":["EPSG:6114","+proj=lcc +lat_1=70.33333333333333 +lat_2=67 +lat_0=68.68747555555557 +lon_0=-75 +x_0=24500000 +y_0=6500000 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs "],"EPSG:6115":["EPSG:6115","+proj=lcc +lat_1=87 +lat_2=83.66666666666667 +lat_0=85.43711833333333 +lon_0=30 +x_0=27500000 +y_0=1500000 +datum=WGS84 +units=m +no_defs "],"EPSG:6116":["EPSG:6116","+proj=lcc +lat_1=87 +lat_2=83.66666666666667 +lat_0=85.43711833333333 +lon_0=90 +x_0=29500000 +y_0=1500000 +datum=WGS84 +units=m +no_defs "],"EPSG:6117":["EPSG:6117","+proj=lcc +lat_1=87 +lat_2=83.66666666666667 +lat_0=85.43711833333333 +lon_0=150 +x_0=31500000 +y_0=1500000 +datum=WGS84 +units=m +no_defs "],"EPSG:6118":["EPSG:6118","+proj=lcc +lat_1=87 +lat_2=83.66666666666667 +lat_0=85.43711833333333 +lon_0=-150 +x_0=21500000 +y_0=1500000 +datum=WGS84 +units=m +no_defs "],"EPSG:6119":["EPSG:6119","+proj=lcc +lat_1=83.66666666666667 +lat_2=80.33333333333333 +lat_0=82.05842488888888 +lon_0=133 +x_0=28500000 +y_0=2500000 +datum=WGS84 +units=m +no_defs "],"EPSG:6120":["EPSG:6120","+proj=lcc +lat_1=83.66666666666667 +lat_2=80.33333333333333 +lat_0=82.05842488888888 +lon_0=166 +x_0=10500000 +y_0=2500000 +datum=WGS84 +units=m +no_defs "],"EPSG:6121":["EPSG:6121","+proj=lcc +lat_1=83.66666666666667 +lat_2=80.33333333333333 +lat_0=82.05842488888888 +lon_0=-154 +x_0=12500000 +y_0=2500000 +datum=WGS84 +units=m +no_defs "],"EPSG:6122":["EPSG:6122","+proj=lcc +lat_1=80.33333333333333 +lat_2=77 +lat_0=78.70733752777778 +lon_0=176 +x_0=21500000 +y_0=3500000 +datum=WGS84 +units=m +no_defs "],"EPSG:6123":["EPSG:6123","+proj=lcc +lat_1=80.33333333333333 +lat_2=77 +lat_0=78.70733752777778 +lon_0=-153 +x_0=23500000 +y_0=3500000 +datum=WGS84 +units=m +no_defs "],"EPSG:6124":["EPSG:6124","+proj=lcc +lat_1=77 +lat_2=73.66666666666667 +lat_0=75.36440330555556 +lon_0=-155 +x_0=12500000 +y_0=4500000 +datum=WGS84 +units=m +no_defs "],"EPSG:6125":["EPSG:6125","+proj=lcc +lat_1=73.66666666666667 +lat_2=70.33333333333333 +lat_0=72.02500919444445 +lon_0=-5 +x_0=47500000 +y_0=5500000 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs "],"EPSG:6128":["EPSG:6128","+proj=utm +zone=17 +ellps=clrk66 +towgs84=-179.483,-69.379,-27.584,-7.862,8.163,6.042,-13.925 +units=ft +no_defs "],"EPSG:6129":["EPSG:6129","+proj=utm +zone=17 +ellps=clrk66 +towgs84=8.853,-52.644,180.304,-0.393,-2.323,2.96,-24.081 +units=ft +no_defs "],"EPSG:6141":["EPSG:6141","+proj=lcc +lat_1=19.33333333333333 +lat_2=19.7 +lat_0=19.33333333333333 +lon_0=80.56666666666666 +x_0=899160 +y_0=579120 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=ft +no_defs "],"EPSG:6204":["EPSG:6204","+proj=tmerc +lat_0=0 +lon_0=21 +k=0.9999 +x_0=500000 +y_0=0 +ellps=bessel +towgs84=682,-203,480,0,0,0,0 +units=m +no_defs "],"EPSG:6210":["EPSG:6210","+proj=utm +zone=23 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs "],"EPSG:6211":["EPSG:6211","+proj=utm +zone=24 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs "],"EPSG:6307":["EPSG:6307","+proj=lcc +lat_1=18.43333333333333 +lat_2=18.03333333333333 +lat_0=17.83333333333333 +lon_0=-66.43333333333334 +x_0=200000 +y_0=200000 +ellps=GRS80 +units=m +no_defs "],"EPSG:6312":["EPSG:6312","+proj=tmerc +lat_0=0 +lon_0=33 +k=0.99995 +x_0=200000 +y_0=-3500000 +ellps=WGS84 +towgs84=8.846,-4.394,-1.122,0.00237,0.146528,-0.130428,0.783926 +units=m +no_defs "],"EPSG:6316":["EPSG:6316","+proj=tmerc +lat_0=0 +lon_0=21 +k=0.9999 +x_0=7500000 +y_0=0 +ellps=bessel +towgs84=682,-203,480,0,0,0,0 +units=m +no_defs "],"EPSG:6328":["EPSG:6328","+proj=utm +zone=59 +ellps=GRS80 +units=m +no_defs "],"EPSG:6329":["EPSG:6329","+proj=utm +zone=60 +ellps=GRS80 +units=m +no_defs "],"EPSG:4942":["EPSG:4942","+proj=geocent +ellps=GRS80 +units=m +no_defs "],"EPSG:6330":["EPSG:6330","+proj=utm +zone=1 +ellps=GRS80 +units=m +no_defs "],"EPSG:6331":["EPSG:6331","+proj=utm +zone=2 +ellps=GRS80 +units=m +no_defs "],"EPSG:6332":["EPSG:6332","+proj=utm +zone=3 +ellps=GRS80 +units=m +no_defs "],"EPSG:6333":["EPSG:6333","+proj=utm +zone=4 +ellps=GRS80 +units=m +no_defs "],"EPSG:6334":["EPSG:6334","+proj=utm +zone=5 +ellps=GRS80 +units=m +no_defs "],"EPSG:6335":["EPSG:6335","+proj=utm +zone=6 +ellps=GRS80 +units=m +no_defs "],"EPSG:6336":["EPSG:6336","+proj=utm +zone=7 +ellps=GRS80 +units=m +no_defs "],"EPSG:6337":["EPSG:6337","+proj=utm +zone=8 +ellps=GRS80 +units=m +no_defs "],"EPSG:6338":["EPSG:6338","+proj=utm +zone=9 +ellps=GRS80 +units=m +no_defs "],"EPSG:6339":["EPSG:6339","+proj=utm +zone=10 +ellps=GRS80 +units=m +no_defs "],"EPSG:4944":["EPSG:4944","+proj=geocent +ellps=GRS80 +units=m +no_defs "],"EPSG:6340":["EPSG:6340","+proj=utm +zone=11 +ellps=GRS80 +units=m +no_defs "],"EPSG:6341":["EPSG:6341","+proj=utm +zone=12 +ellps=GRS80 +units=m +no_defs "],"EPSG:6342":["EPSG:6342","+proj=utm +zone=13 +ellps=GRS80 +units=m +no_defs "],"EPSG:6343":["EPSG:6343","+proj=utm +zone=14 +ellps=GRS80 +units=m +no_defs "],"EPSG:6344":["EPSG:6344","+proj=utm +zone=15 +ellps=GRS80 +units=m +no_defs "],"EPSG:6345":["EPSG:6345","+proj=utm +zone=16 +ellps=GRS80 +units=m +no_defs "],"EPSG:6346":["EPSG:6346","+proj=utm +zone=17 +ellps=GRS80 +units=m +no_defs "],"EPSG:6347":["EPSG:6347","+proj=utm +zone=18 +ellps=GRS80 +units=m +no_defs "],"EPSG:6348":["EPSG:6348","+proj=utm +zone=19 +ellps=GRS80 +units=m +no_defs "],"EPSG:6350":["EPSG:6350","+proj=aea +lat_1=29.5 +lat_2=45.5 +lat_0=23 +lon_0=-96 +x_0=0 +y_0=0 +ellps=GRS80 +units=m +no_defs "],"EPSG:4946":["EPSG:4946","+proj=geocent +ellps=GRS80 +units=m +no_defs "],"EPSG:6351":["EPSG:6351","+proj=lcc +lat_1=73.66666666666667 +lat_2=70.33333333333333 +lat_0=72.02500919444445 +lon_0=-163 +x_0=29500000 +y_0=5500000 +ellps=GRS80 +units=m +no_defs "],"EPSG:6352":["EPSG:6352","+proj=lcc +lat_1=73.66666666666667 +lat_2=70.33333333333333 +lat_0=72.02500919444445 +lon_0=-147 +x_0=31500000 +y_0=5500000 +ellps=GRS80 +units=m +no_defs "],"EPSG:6353":["EPSG:6353","+proj=lcc +lat_1=70.33333333333333 +lat_2=67 +lat_0=68.68747555555557 +lon_0=-165 +x_0=14500000 +y_0=6500000 +ellps=GRS80 +units=m +no_defs "],"EPSG:6354":["EPSG:6354","+proj=lcc +lat_1=70.33333333333333 +lat_2=67 +lat_0=68.68747555555557 +lon_0=-147 +x_0=16500000 +y_0=6500000 +ellps=GRS80 +units=m +no_defs "],"EPSG:6355":["EPSG:6355","+proj=tmerc +lat_0=30.5 +lon_0=-85.83333333333333 +k=0.99996 +x_0=200000 +y_0=0 +ellps=GRS80 +units=m +no_defs "],"EPSG:6356":["EPSG:6356","+proj=tmerc +lat_0=30 +lon_0=-87.5 +k=0.999933333 +x_0=600000 +y_0=0 +ellps=GRS80 +units=m +no_defs "],"EPSG:6362":["EPSG:6362","+proj=lcc +lat_1=17.5 +lat_2=29.5 +lat_0=12 +lon_0=-102 +x_0=2500000 +y_0=0 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs "],"EPSG:6366":["EPSG:6366","+proj=utm +zone=11 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs "],"EPSG:6367":["EPSG:6367","+proj=utm +zone=12 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs "],"EPSG:6368":["EPSG:6368","+proj=utm +zone=13 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs "],"EPSG:6369":["EPSG:6369","+proj=utm +zone=14 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs "],"EPSG:6370":["EPSG:6370","+proj=utm +zone=15 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs "],"EPSG:6371":["EPSG:6371","+proj=utm +zone=16 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs "],"EPSG:6372":["EPSG:6372","+proj=lcc +lat_1=17.5 +lat_2=29.5 +lat_0=12 +lon_0=-102 +x_0=2500000 +y_0=0 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs "],"EPSG:6381":["EPSG:6381","+proj=tmerc +lat_0=0 +lon_0=21 +k=1 +x_0=300000 +y_0=0 +ellps=krass +towgs84=25,-141,-78.5,0,0.35,0.736,0 +units=m +no_defs "],"EPSG:6382":["EPSG:6382","+proj=tmerc +lat_0=0 +lon_0=24 +k=1 +x_0=300000 +y_0=0 +ellps=krass +towgs84=25,-141,-78.5,0,0.35,0.736,0 +units=m +no_defs "],"EPSG:6383":["EPSG:6383","+proj=tmerc +lat_0=0 +lon_0=27 +k=1 +x_0=300000 +y_0=0 +ellps=krass +towgs84=25,-141,-78.5,0,0.35,0.736,0 +units=m +no_defs "],"EPSG:6384":["EPSG:6384","+proj=tmerc +lat_0=0 +lon_0=30 +k=1 +x_0=300000 +y_0=0 +ellps=krass +towgs84=25,-141,-78.5,0,0.35,0.736,0 +units=m +no_defs "],"EPSG:6385":["EPSG:6385","+proj=tmerc +lat_0=0 +lon_0=33 +k=1 +x_0=300000 +y_0=0 +ellps=krass +towgs84=25,-141,-78.5,0,0.35,0.736,0 +units=m +no_defs "],"EPSG:6386":["EPSG:6386","+proj=tmerc +lat_0=0 +lon_0=36 +k=1 +x_0=300000 +y_0=0 +ellps=krass +towgs84=25,-141,-78.5,0,0.35,0.736,0 +units=m +no_defs "],"EPSG:6387":["EPSG:6387","+proj=tmerc +lat_0=0 +lon_0=39 +k=1 +x_0=300000 +y_0=0 +ellps=krass +towgs84=25,-141,-78.5,0,0.35,0.736,0 +units=m +no_defs "],"EPSG:6391":["EPSG:6391","+proj=lcc +lat_1=19.33333333333333 +lat_2=19.7 +lat_0=19.33333333333333 +lon_0=-80.56666666666666 +x_0=899160 +y_0=579120 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=ft +no_defs "],"EPSG:6393":["EPSG:6393","+proj=aea +lat_1=55 +lat_2=65 +lat_0=50 +lon_0=-154 +x_0=0 +y_0=0 +ellps=GRS80 +units=m +no_defs "],"EPSG:6394":["EPSG:6394","+proj=omerc +lat_0=57 +lonc=-133.6666666666667 +alpha=323.1301023611111 +k=0.9999 +x_0=5000000 +y_0=-5000000 +no_uoff +gamma=323.1301023611111 +ellps=GRS80 +units=m +no_defs "],"EPSG:6395":["EPSG:6395","+proj=tmerc +lat_0=54 +lon_0=-142 +k=0.9999 +x_0=500000 +y_0=0 +ellps=GRS80 +units=m +no_defs "],"EPSG:6396":["EPSG:6396","+proj=tmerc +lat_0=54 +lon_0=-146 +k=0.9999 +x_0=500000 +y_0=0 +ellps=GRS80 +units=m +no_defs "],"EPSG:6397":["EPSG:6397","+proj=tmerc +lat_0=54 +lon_0=-150 +k=0.9999 +x_0=500000 +y_0=0 +ellps=GRS80 +units=m +no_defs "],"EPSG:6398":["EPSG:6398","+proj=tmerc +lat_0=54 +lon_0=-154 +k=0.9999 +x_0=500000 +y_0=0 +ellps=GRS80 +units=m +no_defs "],"EPSG:4948":["EPSG:4948","+proj=geocent +ellps=GRS80 +units=m +no_defs "],"EPSG:6399":["EPSG:6399","+proj=tmerc +lat_0=54 +lon_0=-158 +k=0.9999 +x_0=500000 +y_0=0 +ellps=GRS80 +units=m +no_defs "],"EPSG:6400":["EPSG:6400","+proj=tmerc +lat_0=54 +lon_0=-162 +k=0.9999 +x_0=500000 +y_0=0 +ellps=GRS80 +units=m +no_defs "],"EPSG:6401":["EPSG:6401","+proj=tmerc +lat_0=54 +lon_0=-166 +k=0.9999 +x_0=500000 +y_0=0 +ellps=GRS80 +units=m +no_defs "],"EPSG:6402":["EPSG:6402","+proj=tmerc +lat_0=54 +lon_0=-170 +k=0.9999 +x_0=500000 +y_0=0 +ellps=GRS80 +units=m +no_defs "],"EPSG:6403":["EPSG:6403","+proj=lcc +lat_1=53.83333333333334 +lat_2=51.83333333333334 +lat_0=51 +lon_0=-176 +x_0=1000000 +y_0=0 +ellps=GRS80 +units=m +no_defs "],"EPSG:6404":["EPSG:6404","+proj=tmerc +lat_0=31 +lon_0=-111.9166666666667 +k=0.9999 +x_0=213360 +y_0=0 +ellps=GRS80 +units=m +no_defs "],"EPSG:6405":["EPSG:6405","+proj=tmerc +lat_0=31 +lon_0=-111.9166666666667 +k=0.9999 +x_0=213360 +y_0=0 +ellps=GRS80 +units=ft +no_defs "],"EPSG:6406":["EPSG:6406","+proj=tmerc +lat_0=31 +lon_0=-110.1666666666667 +k=0.9999 +x_0=213360 +y_0=0 +ellps=GRS80 +units=m +no_defs "],"EPSG:6407":["EPSG:6407","+proj=tmerc +lat_0=31 +lon_0=-110.1666666666667 +k=0.9999 +x_0=213360 +y_0=0 +ellps=GRS80 +units=ft +no_defs "],"EPSG:6408":["EPSG:6408","+proj=tmerc +lat_0=31 +lon_0=-113.75 +k=0.999933333 +x_0=213360 +y_0=0 +ellps=GRS80 +units=m +no_defs "],"EPSG:6409":["EPSG:6409","+proj=tmerc +lat_0=31 +lon_0=-113.75 +k=0.999933333 +x_0=213360 +y_0=0 +ellps=GRS80 +units=ft +no_defs "],"EPSG:6410":["EPSG:6410","+proj=lcc +lat_1=36.23333333333333 +lat_2=34.93333333333333 +lat_0=34.33333333333334 +lon_0=-92 +x_0=400000 +y_0=0 +ellps=GRS80 +units=m +no_defs "],"EPSG:6411":["EPSG:6411","+proj=lcc +lat_1=36.23333333333333 +lat_2=34.93333333333333 +lat_0=34.33333333333334 +lon_0=-92 +x_0=399999.99998984 +y_0=0 +ellps=GRS80 +units=us-ft +no_defs "],"EPSG:6412":["EPSG:6412","+proj=lcc +lat_1=34.76666666666667 +lat_2=33.3 +lat_0=32.66666666666666 +lon_0=-92 +x_0=400000 +y_0=400000 +ellps=GRS80 +units=m +no_defs "],"EPSG:6413":["EPSG:6413","+proj=lcc +lat_1=34.76666666666667 +lat_2=33.3 +lat_0=32.66666666666666 +lon_0=-92 +x_0=399999.99998984 +y_0=399999.99998984 +ellps=GRS80 +units=us-ft +no_defs "],"EPSG:6414":["EPSG:6414","+proj=aea +lat_1=34 +lat_2=40.5 +lat_0=0 +lon_0=-120 +x_0=0 +y_0=-4000000 +ellps=GRS80 +units=m +no_defs "],"EPSG:6415":["EPSG:6415","+proj=lcc +lat_1=41.66666666666666 +lat_2=40 +lat_0=39.33333333333334 +lon_0=-122 +x_0=2000000 +y_0=500000 +ellps=GRS80 +units=m +no_defs "],"EPSG:6416":["EPSG:6416","+proj=lcc +lat_1=41.66666666666666 +lat_2=40 +lat_0=39.33333333333334 +lon_0=-122 +x_0=2000000.0001016 +y_0=500000.0001016001 +ellps=GRS80 +units=us-ft +no_defs "],"EPSG:6528":["EPSG:6528","+proj=tmerc +lat_0=31 +lon_0=-106.25 +k=0.9999 +x_0=500000 +y_0=0 +ellps=GRS80 +units=m +no_defs "],"EPSG:6417":["EPSG:6417","+proj=lcc +lat_1=39.83333333333334 +lat_2=38.33333333333334 +lat_0=37.66666666666666 +lon_0=-122 +x_0=2000000 +y_0=500000 +ellps=GRS80 +units=m +no_defs "],"EPSG:6418":["EPSG:6418","+proj=lcc +lat_1=39.83333333333334 +lat_2=38.33333333333334 +lat_0=37.66666666666666 +lon_0=-122 +x_0=2000000.0001016 +y_0=500000.0001016001 +ellps=GRS80 +units=us-ft +no_defs "],"EPSG:6419":["EPSG:6419","+proj=lcc +lat_1=38.43333333333333 +lat_2=37.06666666666667 +lat_0=36.5 +lon_0=-120.5 +x_0=2000000 +y_0=500000 +ellps=GRS80 +units=m +no_defs "],"EPSG:6420":["EPSG:6420","+proj=lcc +lat_1=38.43333333333333 +lat_2=37.06666666666667 +lat_0=36.5 +lon_0=-120.5 +x_0=2000000.0001016 +y_0=500000.0001016001 +ellps=GRS80 +units=us-ft +no_defs "],"EPSG:6421":["EPSG:6421","+proj=lcc +lat_1=37.25 +lat_2=36 +lat_0=35.33333333333334 +lon_0=-119 +x_0=2000000 +y_0=500000 +ellps=GRS80 +units=m +no_defs "],"EPSG:6422":["EPSG:6422","+proj=lcc +lat_1=37.25 +lat_2=36 +lat_0=35.33333333333334 +lon_0=-119 +x_0=2000000.0001016 +y_0=500000.0001016001 +ellps=GRS80 +units=us-ft +no_defs "],"EPSG:6423":["EPSG:6423","+proj=lcc +lat_1=35.46666666666667 +lat_2=34.03333333333333 +lat_0=33.5 +lon_0=-118 +x_0=2000000 +y_0=500000 +ellps=GRS80 +units=m +no_defs "],"EPSG:6424":["EPSG:6424","+proj=lcc +lat_1=35.46666666666667 +lat_2=34.03333333333333 +lat_0=33.5 +lon_0=-118 +x_0=2000000.0001016 +y_0=500000.0001016001 +ellps=GRS80 +units=us-ft +no_defs "],"EPSG:4950":["EPSG:4950","+proj=geocent +ellps=GRS80 +units=m +no_defs "],"EPSG:6425":["EPSG:6425","+proj=lcc +lat_1=33.88333333333333 +lat_2=32.78333333333333 +lat_0=32.16666666666666 +lon_0=-116.25 +x_0=2000000 +y_0=500000 +ellps=GRS80 +units=m +no_defs "],"EPSG:6426":["EPSG:6426","+proj=lcc +lat_1=33.88333333333333 +lat_2=32.78333333333333 +lat_0=32.16666666666666 +lon_0=-116.25 +x_0=2000000.0001016 +y_0=500000.0001016001 +ellps=GRS80 +units=us-ft +no_defs "],"EPSG:6427":["EPSG:6427","+proj=lcc +lat_1=39.75 +lat_2=38.45 +lat_0=37.83333333333334 +lon_0=-105.5 +x_0=914401.8289 +y_0=304800.6096 +ellps=GRS80 +units=m +no_defs "],"EPSG:6428":["EPSG:6428","+proj=lcc +lat_1=39.75 +lat_2=38.45 +lat_0=37.83333333333334 +lon_0=-105.5 +x_0=914401.8288036576 +y_0=304800.6096012192 +ellps=GRS80 +units=us-ft +no_defs "],"EPSG:6429":["EPSG:6429","+proj=lcc +lat_1=40.78333333333333 +lat_2=39.71666666666667 +lat_0=39.33333333333334 +lon_0=-105.5 +x_0=914401.8289 +y_0=304800.6096 +ellps=GRS80 +units=m +no_defs "],"EPSG:6430":["EPSG:6430","+proj=lcc +lat_1=40.78333333333333 +lat_2=39.71666666666667 +lat_0=39.33333333333334 +lon_0=-105.5 +x_0=914401.8288036576 +y_0=304800.6096012192 +ellps=GRS80 +units=us-ft +no_defs "],"EPSG:6431":["EPSG:6431","+proj=lcc +lat_1=38.43333333333333 +lat_2=37.23333333333333 +lat_0=36.66666666666666 +lon_0=-105.5 +x_0=914401.8289 +y_0=304800.6096 +ellps=GRS80 +units=m +no_defs "],"EPSG:6432":["EPSG:6432","+proj=lcc +lat_1=38.43333333333333 +lat_2=37.23333333333333 +lat_0=36.66666666666666 +lon_0=-105.5 +x_0=914401.8288036576 +y_0=304800.6096012192 +ellps=GRS80 +units=us-ft +no_defs "],"EPSG:6433":["EPSG:6433","+proj=lcc +lat_1=41.86666666666667 +lat_2=41.2 +lat_0=40.83333333333334 +lon_0=-72.75 +x_0=304800.6096 +y_0=152400.3048 +ellps=GRS80 +units=m +no_defs "],"EPSG:6434":["EPSG:6434","+proj=lcc +lat_1=41.86666666666667 +lat_2=41.2 +lat_0=40.83333333333334 +lon_0=-72.75 +x_0=304800.6096012192 +y_0=152400.3048006096 +ellps=GRS80 +units=us-ft +no_defs "],"EPSG:6435":["EPSG:6435","+proj=tmerc +lat_0=38 +lon_0=-75.41666666666667 +k=0.999995 +x_0=200000 +y_0=0 +ellps=GRS80 +units=m +no_defs "],"EPSG:6436":["EPSG:6436","+proj=tmerc +lat_0=38 +lon_0=-75.41666666666667 +k=0.999995 +x_0=200000.0001016002 +y_0=0 +ellps=GRS80 +units=us-ft +no_defs "],"EPSG:6437":["EPSG:6437","+proj=tmerc +lat_0=24.33333333333333 +lon_0=-81 +k=0.999941177 +x_0=200000 +y_0=0 +ellps=GRS80 +units=m +no_defs "],"EPSG:6438":["EPSG:6438","+proj=tmerc +lat_0=24.33333333333333 +lon_0=-81 +k=0.999941177 +x_0=200000.0001016002 +y_0=0 +ellps=GRS80 +units=us-ft +no_defs "],"EPSG:6439":["EPSG:6439","+proj=aea +lat_1=24 +lat_2=31.5 +lat_0=24 +lon_0=-84 +x_0=400000 +y_0=0 +ellps=GRS80 +units=m +no_defs "],"EPSG:6440":["EPSG:6440","+proj=lcc +lat_1=30.75 +lat_2=29.58333333333333 +lat_0=29 +lon_0=-84.5 +x_0=600000 +y_0=0 +ellps=GRS80 +units=m +no_defs "],"EPSG:6441":["EPSG:6441","+proj=lcc +lat_1=30.75 +lat_2=29.58333333333333 +lat_0=29 +lon_0=-84.5 +x_0=600000 +y_0=0 +ellps=GRS80 +units=us-ft +no_defs "],"EPSG:6442":["EPSG:6442","+proj=tmerc +lat_0=24.33333333333333 +lon_0=-82 +k=0.999941177 +x_0=200000 +y_0=0 +ellps=GRS80 +units=m +no_defs "],"EPSG:6443":["EPSG:6443","+proj=tmerc +lat_0=24.33333333333333 +lon_0=-82 +k=0.999941177 +x_0=200000.0001016002 +y_0=0 +ellps=GRS80 +units=us-ft +no_defs "],"EPSG:6444":["EPSG:6444","+proj=tmerc +lat_0=30 +lon_0=-82.16666666666667 +k=0.9999 +x_0=200000 +y_0=0 +ellps=GRS80 +units=m +no_defs "],"EPSG:6445":["EPSG:6445","+proj=tmerc +lat_0=30 +lon_0=-82.16666666666667 +k=0.9999 +x_0=200000.0001016002 +y_0=0 +ellps=GRS80 +units=us-ft +no_defs "],"EPSG:6446":["EPSG:6446","+proj=tmerc +lat_0=30 +lon_0=-84.16666666666667 +k=0.9999 +x_0=700000 +y_0=0 +ellps=GRS80 +units=m +no_defs "],"EPSG:6447":["EPSG:6447","+proj=tmerc +lat_0=30 +lon_0=-84.16666666666667 +k=0.9999 +x_0=699999.9998983998 +y_0=0 +ellps=GRS80 +units=us-ft +no_defs "],"EPSG:6448":["EPSG:6448","+proj=tmerc +lat_0=41.66666666666666 +lon_0=-114 +k=0.9999473679999999 +x_0=500000 +y_0=0 +ellps=GRS80 +units=m +no_defs "],"EPSG:6449":["EPSG:6449","+proj=tmerc +lat_0=41.66666666666666 +lon_0=-114 +k=0.9999473679999999 +x_0=500000.0001016001 +y_0=0 +ellps=GRS80 +units=us-ft +no_defs "],"EPSG:6450":["EPSG:6450","+proj=tmerc +lat_0=41.66666666666666 +lon_0=-112.1666666666667 +k=0.9999473679999999 +x_0=200000 +y_0=0 +ellps=GRS80 +units=m +no_defs "],"EPSG:4952":["EPSG:4952","+proj=geocent +ellps=WGS84 +units=m +no_defs "],"EPSG:6451":["EPSG:6451","+proj=tmerc +lat_0=41.66666666666666 +lon_0=-112.1666666666667 +k=0.9999473679999999 +x_0=200000.0001016002 +y_0=0 +ellps=GRS80 +units=us-ft +no_defs "],"EPSG:6452":["EPSG:6452","+proj=tmerc +lat_0=41.66666666666666 +lon_0=-115.75 +k=0.999933333 +x_0=800000 +y_0=0 +ellps=GRS80 +units=m +no_defs "],"EPSG:6453":["EPSG:6453","+proj=tmerc +lat_0=41.66666666666666 +lon_0=-115.75 +k=0.999933333 +x_0=800000.0001016001 +y_0=0 +ellps=GRS80 +units=us-ft +no_defs "],"EPSG:6454":["EPSG:6454","+proj=tmerc +lat_0=36.66666666666666 +lon_0=-88.33333333333333 +k=0.9999749999999999 +x_0=300000 +y_0=0 +ellps=GRS80 +units=m +no_defs "],"EPSG:6455":["EPSG:6455","+proj=tmerc +lat_0=36.66666666666666 +lon_0=-88.33333333333333 +k=0.9999749999999999 +x_0=300000.0000000001 +y_0=0 +ellps=GRS80 +units=us-ft +no_defs "],"EPSG:6456":["EPSG:6456","+proj=tmerc +lat_0=36.66666666666666 +lon_0=-90.16666666666667 +k=0.999941177 +x_0=700000 +y_0=0 +ellps=GRS80 +units=m +no_defs "],"EPSG:6457":["EPSG:6457","+proj=tmerc +lat_0=36.66666666666666 +lon_0=-90.16666666666667 +k=0.999941177 +x_0=699999.9999898402 +y_0=0 +ellps=GRS80 +units=us-ft +no_defs "],"EPSG:6458":["EPSG:6458","+proj=tmerc +lat_0=37.5 +lon_0=-85.66666666666667 +k=0.999966667 +x_0=100000 +y_0=250000 +ellps=GRS80 +units=m +no_defs "],"EPSG:6459":["EPSG:6459","+proj=tmerc +lat_0=37.5 +lon_0=-85.66666666666667 +k=0.999966667 +x_0=99999.99989839978 +y_0=249999.9998983998 +ellps=GRS80 +units=us-ft +no_defs "],"EPSG:6460":["EPSG:6460","+proj=tmerc +lat_0=37.5 +lon_0=-87.08333333333333 +k=0.999966667 +x_0=900000 +y_0=250000 +ellps=GRS80 +units=m +no_defs "],"EPSG:6461":["EPSG:6461","+proj=tmerc +lat_0=37.5 +lon_0=-87.08333333333333 +k=0.999966667 +x_0=900000 +y_0=249999.9998983998 +ellps=GRS80 +units=us-ft +no_defs "],"EPSG:6462":["EPSG:6462","+proj=lcc +lat_1=43.26666666666667 +lat_2=42.06666666666667 +lat_0=41.5 +lon_0=-93.5 +x_0=1500000 +y_0=1000000 +ellps=GRS80 +units=m +no_defs "],"EPSG:6463":["EPSG:6463","+proj=lcc +lat_1=43.26666666666667 +lat_2=42.06666666666667 +lat_0=41.5 +lon_0=-93.5 +x_0=1500000 +y_0=999999.9999898402 +ellps=GRS80 +units=us-ft +no_defs "],"EPSG:6464":["EPSG:6464","+proj=lcc +lat_1=41.78333333333333 +lat_2=40.61666666666667 +lat_0=40 +lon_0=-93.5 +x_0=500000 +y_0=0 +ellps=GRS80 +units=m +no_defs "],"EPSG:6465":["EPSG:6465","+proj=lcc +lat_1=41.78333333333333 +lat_2=40.61666666666667 +lat_0=40 +lon_0=-93.5 +x_0=500000.00001016 +y_0=0 +ellps=GRS80 +units=us-ft +no_defs "],"EPSG:6466":["EPSG:6466","+proj=lcc +lat_1=39.78333333333333 +lat_2=38.71666666666667 +lat_0=38.33333333333334 +lon_0=-98 +x_0=400000 +y_0=0 +ellps=GRS80 +units=m +no_defs "],"EPSG:6467":["EPSG:6467","+proj=lcc +lat_1=39.78333333333333 +lat_2=38.71666666666667 +lat_0=38.33333333333334 +lon_0=-98 +x_0=399999.99998984 +y_0=0 +ellps=GRS80 +units=us-ft +no_defs "],"EPSG:6673":["EPSG:6673","+proj=tmerc +lat_0=36 +lon_0=134.3333333333333 +k=0.9999 +x_0=0 +y_0=0 +ellps=GRS80 +units=m +no_defs "],"EPSG:6468":["EPSG:6468","+proj=lcc +lat_1=38.56666666666667 +lat_2=37.26666666666667 +lat_0=36.66666666666666 +lon_0=-98.5 +x_0=400000 +y_0=400000 +ellps=GRS80 +units=m +no_defs "],"EPSG:6469":["EPSG:6469","+proj=lcc +lat_1=38.56666666666667 +lat_2=37.26666666666667 +lat_0=36.66666666666666 +lon_0=-98.5 +x_0=399999.99998984 +y_0=399999.99998984 +ellps=GRS80 +units=us-ft +no_defs "],"EPSG:6470":["EPSG:6470","+proj=lcc +lat_1=37.96666666666667 +lat_2=38.96666666666667 +lat_0=37.5 +lon_0=-84.25 +x_0=500000 +y_0=0 +ellps=GRS80 +units=m +no_defs "],"EPSG:6471":["EPSG:6471","+proj=lcc +lat_1=37.96666666666667 +lat_2=38.96666666666667 +lat_0=37.5 +lon_0=-84.25 +x_0=500000.0001016001 +y_0=0 +ellps=GRS80 +units=us-ft +no_defs "],"EPSG:6472":["EPSG:6472","+proj=lcc +lat_1=37.08333333333334 +lat_2=38.66666666666666 +lat_0=36.33333333333334 +lon_0=-85.75 +x_0=1500000 +y_0=1000000 +ellps=GRS80 +units=m +no_defs "],"EPSG:6473":["EPSG:6473","+proj=lcc +lat_1=37.08333333333334 +lat_2=38.66666666666666 +lat_0=36.33333333333334 +lon_0=-85.75 +x_0=1500000 +y_0=999999.9998983998 +ellps=GRS80 +units=us-ft +no_defs "],"EPSG:6474":["EPSG:6474","+proj=lcc +lat_1=37.93333333333333 +lat_2=36.73333333333333 +lat_0=36.33333333333334 +lon_0=-85.75 +x_0=500000 +y_0=500000 +ellps=GRS80 +units=m +no_defs "],"EPSG:6475":["EPSG:6475","+proj=lcc +lat_1=37.93333333333333 +lat_2=36.73333333333333 +lat_0=36.33333333333334 +lon_0=-85.75 +x_0=500000.0001016001 +y_0=500000.0001016001 +ellps=GRS80 +units=us-ft +no_defs "],"EPSG:6476":["EPSG:6476","+proj=lcc +lat_1=32.66666666666666 +lat_2=31.16666666666667 +lat_0=30.5 +lon_0=-92.5 +x_0=1000000 +y_0=0 +ellps=GRS80 +units=m +no_defs "],"EPSG:6477":["EPSG:6477","+proj=lcc +lat_1=32.66666666666666 +lat_2=31.16666666666667 +lat_0=30.5 +lon_0=-92.5 +x_0=999999.9999898402 +y_0=0 +ellps=GRS80 +units=us-ft +no_defs "],"EPSG:6478":["EPSG:6478","+proj=lcc +lat_1=30.7 +lat_2=29.3 +lat_0=28.5 +lon_0=-91.33333333333333 +x_0=1000000 +y_0=0 +ellps=GRS80 +units=m +no_defs "],"EPSG:6479":["EPSG:6479","+proj=lcc +lat_1=30.7 +lat_2=29.3 +lat_0=28.5 +lon_0=-91.33333333333333 +x_0=999999.9999898402 +y_0=0 +ellps=GRS80 +units=us-ft +no_defs "],"EPSG:6480":["EPSG:6480","+proj=tmerc +lat_0=43.5 +lon_0=-69.125 +k=0.99998 +x_0=500000 +y_0=0 +ellps=GRS80 +units=m +no_defs "],"EPSG:6481":["EPSG:6481","+proj=tmerc +lat_0=43.83333333333334 +lon_0=-67.875 +k=0.99998 +x_0=700000 +y_0=0 +ellps=GRS80 +units=m +no_defs "],"EPSG:6482":["EPSG:6482","+proj=tmerc +lat_0=42.83333333333334 +lon_0=-70.375 +k=0.99998 +x_0=300000 +y_0=0 +ellps=GRS80 +units=m +no_defs "],"EPSG:6483":["EPSG:6483","+proj=tmerc +lat_0=43.66666666666666 +lon_0=-68.5 +k=0.9999 +x_0=300000 +y_0=0 +ellps=GRS80 +units=m +no_defs "],"EPSG:6484":["EPSG:6484","+proj=tmerc +lat_0=43.66666666666666 +lon_0=-68.5 +k=0.9999 +x_0=300000.0000000001 +y_0=0 +ellps=GRS80 +units=us-ft +no_defs "],"EPSG:6485":["EPSG:6485","+proj=tmerc +lat_0=42.83333333333334 +lon_0=-70.16666666666667 +k=0.999966667 +x_0=900000 +y_0=0 +ellps=GRS80 +units=m +no_defs "],"EPSG:6486":["EPSG:6486","+proj=tmerc +lat_0=42.83333333333334 +lon_0=-70.16666666666667 +k=0.999966667 +x_0=900000 +y_0=0 +ellps=GRS80 +units=us-ft +no_defs "],"EPSG:6487":["EPSG:6487","+proj=lcc +lat_1=39.45 +lat_2=38.3 +lat_0=37.66666666666666 +lon_0=-77 +x_0=400000 +y_0=0 +ellps=GRS80 +units=m +no_defs "],"EPSG:6488":["EPSG:6488","+proj=lcc +lat_1=39.45 +lat_2=38.3 +lat_0=37.66666666666666 +lon_0=-77 +x_0=399999.9998983998 +y_0=0 +ellps=GRS80 +units=us-ft +no_defs "],"EPSG:6489":["EPSG:6489","+proj=lcc +lat_1=41.48333333333333 +lat_2=41.28333333333333 +lat_0=41 +lon_0=-70.5 +x_0=500000 +y_0=0 +ellps=GRS80 +units=m +no_defs "],"EPSG:6490":["EPSG:6490","+proj=lcc +lat_1=41.48333333333333 +lat_2=41.28333333333333 +lat_0=41 +lon_0=-70.5 +x_0=500000.0001016001 +y_0=0 +ellps=GRS80 +units=us-ft +no_defs "],"EPSG:6491":["EPSG:6491","+proj=lcc +lat_1=42.68333333333333 +lat_2=41.71666666666667 +lat_0=41 +lon_0=-71.5 +x_0=200000 +y_0=750000 +ellps=GRS80 +units=m +no_defs "],"EPSG:6492":["EPSG:6492","+proj=lcc +lat_1=42.68333333333333 +lat_2=41.71666666666667 +lat_0=41 +lon_0=-71.5 +x_0=200000.0001016002 +y_0=750000 +ellps=GRS80 +units=us-ft +no_defs "],"EPSG:6610":["EPSG:6610","+proj=tmerc +lat_0=0 +lon_0=-90 +k=0.9996 +x_0=520000 +y_0=-4480000 +ellps=GRS80 +units=m +no_defs "],"EPSG:6493":["EPSG:6493","+proj=lcc +lat_1=45.7 +lat_2=44.18333333333333 +lat_0=43.31666666666667 +lon_0=-84.36666666666666 +x_0=6000000 +y_0=0 +ellps=GRS80 +units=m +no_defs "],"EPSG:6494":["EPSG:6494","+proj=lcc +lat_1=45.7 +lat_2=44.18333333333333 +lat_0=43.31666666666667 +lon_0=-84.36666666666666 +x_0=5999999.999976001 +y_0=0 +ellps=GRS80 +units=ft +no_defs "],"EPSG:6495":["EPSG:6495","+proj=lcc +lat_1=47.08333333333334 +lat_2=45.48333333333333 +lat_0=44.78333333333333 +lon_0=-87 +x_0=8000000 +y_0=0 +ellps=GRS80 +units=m +no_defs "],"EPSG:6496":["EPSG:6496","+proj=lcc +lat_1=47.08333333333334 +lat_2=45.48333333333333 +lat_0=44.78333333333333 +lon_0=-87 +x_0=7999999.999968001 +y_0=0 +ellps=GRS80 +units=ft +no_defs "],"EPSG:6497":["EPSG:6497","+proj=omerc +lat_0=45.30916666666666 +lonc=-86 +alpha=337.25556 +k=0.9996 +x_0=2546731.496 +y_0=-4354009.816 +no_uoff +gamma=337.25556 +ellps=GRS80 +units=m +no_defs "],"EPSG:6498":["EPSG:6498","+proj=lcc +lat_1=43.66666666666666 +lat_2=42.1 +lat_0=41.5 +lon_0=-84.36666666666666 +x_0=4000000 +y_0=0 +ellps=GRS80 +units=m +no_defs "],"EPSG:6499":["EPSG:6499","+proj=lcc +lat_1=43.66666666666666 +lat_2=42.1 +lat_0=41.5 +lon_0=-84.36666666666666 +x_0=3999999.999984 +y_0=0 +ellps=GRS80 +units=ft +no_defs "],"EPSG:6500":["EPSG:6500","+proj=lcc +lat_1=47.05 +lat_2=45.61666666666667 +lat_0=45 +lon_0=-94.25 +x_0=800000 +y_0=100000 +ellps=GRS80 +units=m +no_defs "],"EPSG:6501":["EPSG:6501","+proj=lcc +lat_1=47.05 +lat_2=45.61666666666667 +lat_0=45 +lon_0=-94.25 +x_0=800000.0000101599 +y_0=99999.99998983997 +ellps=GRS80 +units=us-ft +no_defs "],"EPSG:6502":["EPSG:6502","+proj=lcc +lat_1=48.63333333333333 +lat_2=47.03333333333333 +lat_0=46.5 +lon_0=-93.09999999999999 +x_0=800000 +y_0=100000 +ellps=GRS80 +units=m +no_defs "],"EPSG:6503":["EPSG:6503","+proj=lcc +lat_1=48.63333333333333 +lat_2=47.03333333333333 +lat_0=46.5 +lon_0=-93.09999999999999 +x_0=800000.0000101599 +y_0=99999.99998983997 +ellps=GRS80 +units=us-ft +no_defs "],"EPSG:6504":["EPSG:6504","+proj=lcc +lat_1=45.21666666666667 +lat_2=43.78333333333333 +lat_0=43 +lon_0=-94 +x_0=800000 +y_0=100000 +ellps=GRS80 +units=m +no_defs "],"EPSG:6505":["EPSG:6505","+proj=lcc +lat_1=45.21666666666667 +lat_2=43.78333333333333 +lat_0=43 +lon_0=-94 +x_0=800000.0000101599 +y_0=99999.99998983997 +ellps=GRS80 +units=us-ft +no_defs "],"EPSG:6506":["EPSG:6506","+proj=tmerc +lat_0=29.5 +lon_0=-88.83333333333333 +k=0.99995 +x_0=300000 +y_0=0 +ellps=GRS80 +units=m +no_defs "],"EPSG:6507":["EPSG:6507","+proj=tmerc +lat_0=29.5 +lon_0=-88.83333333333333 +k=0.99995 +x_0=300000.0000000001 +y_0=0 +ellps=GRS80 +units=us-ft +no_defs "],"EPSG:6508":["EPSG:6508","+proj=tmerc +lat_0=32.5 +lon_0=-89.75 +k=0.9998335 +x_0=500000 +y_0=1300000 +ellps=GRS80 +units=m +no_defs "],"EPSG:6509":["EPSG:6509","+proj=tmerc +lat_0=29.5 +lon_0=-90.33333333333333 +k=0.99995 +x_0=700000 +y_0=0 +ellps=GRS80 +units=m +no_defs "],"EPSG:6510":["EPSG:6510","+proj=tmerc +lat_0=29.5 +lon_0=-90.33333333333333 +k=0.99995 +x_0=699999.9998983998 +y_0=0 +ellps=GRS80 +units=us-ft +no_defs "],"EPSG:6511":["EPSG:6511","+proj=tmerc +lat_0=35.83333333333334 +lon_0=-92.5 +k=0.999933333 +x_0=500000 +y_0=0 +ellps=GRS80 +units=m +no_defs "],"EPSG:6512":["EPSG:6512","+proj=tmerc +lat_0=35.83333333333334 +lon_0=-90.5 +k=0.999933333 +x_0=250000 +y_0=0 +ellps=GRS80 +units=m +no_defs "],"EPSG:6513":["EPSG:6513","+proj=tmerc +lat_0=36.16666666666666 +lon_0=-94.5 +k=0.999941177 +x_0=850000 +y_0=0 +ellps=GRS80 +units=m +no_defs "],"EPSG:6514":["EPSG:6514","+proj=lcc +lat_1=49 +lat_2=45 +lat_0=44.25 +lon_0=-109.5 +x_0=600000 +y_0=0 +ellps=GRS80 +units=m +no_defs "],"EPSG:6515":["EPSG:6515","+proj=lcc +lat_1=49 +lat_2=45 +lat_0=44.25 +lon_0=-109.5 +x_0=599999.9999976 +y_0=0 +ellps=GRS80 +units=ft +no_defs "],"EPSG:6516":["EPSG:6516","+proj=lcc +lat_1=43 +lat_2=40 +lat_0=39.83333333333334 +lon_0=-100 +x_0=500000 +y_0=0 +ellps=GRS80 +units=m +no_defs "],"EPSG:6517":["EPSG:6517","+proj=lcc +lat_1=43 +lat_2=40 +lat_0=39.83333333333334 +lon_0=-100 +x_0=500000.00001016 +y_0=0 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=us-ft +no_defs "],"EPSG:6518":["EPSG:6518","+proj=tmerc +lat_0=34.75 +lon_0=-116.6666666666667 +k=0.9999 +x_0=500000 +y_0=6000000 +ellps=GRS80 +units=m +no_defs "],"EPSG:6519":["EPSG:6519","+proj=tmerc +lat_0=34.75 +lon_0=-116.6666666666667 +k=0.9999 +x_0=500000.00001016 +y_0=6000000 +ellps=GRS80 +units=us-ft +no_defs "],"EPSG:6520":["EPSG:6520","+proj=tmerc +lat_0=34.75 +lon_0=-115.5833333333333 +k=0.9999 +x_0=200000 +y_0=8000000 +ellps=GRS80 +units=m +no_defs "],"EPSG:6521":["EPSG:6521","+proj=tmerc +lat_0=34.75 +lon_0=-115.5833333333333 +k=0.9999 +x_0=200000.00001016 +y_0=8000000.000010163 +ellps=GRS80 +units=us-ft +no_defs "],"EPSG:6522":["EPSG:6522","+proj=tmerc +lat_0=34.75 +lon_0=-118.5833333333333 +k=0.9999 +x_0=800000 +y_0=4000000 +ellps=GRS80 +units=m +no_defs "],"EPSG:6523":["EPSG:6523","+proj=tmerc +lat_0=34.75 +lon_0=-118.5833333333333 +k=0.9999 +x_0=800000.0000101599 +y_0=3999999.99998984 +ellps=GRS80 +units=us-ft +no_defs "],"EPSG:6524":["EPSG:6524","+proj=tmerc +lat_0=42.5 +lon_0=-71.66666666666667 +k=0.999966667 +x_0=300000 +y_0=0 +ellps=GRS80 +units=m +no_defs "],"EPSG:6525":["EPSG:6525","+proj=tmerc +lat_0=42.5 +lon_0=-71.66666666666667 +k=0.999966667 +x_0=300000.0000000001 +y_0=0 +ellps=GRS80 +units=us-ft +no_defs "],"EPSG:6526":["EPSG:6526","+proj=tmerc +lat_0=38.83333333333334 +lon_0=-74.5 +k=0.9999 +x_0=150000 +y_0=0 +ellps=GRS80 +units=m +no_defs "],"EPSG:6527":["EPSG:6527","+proj=tmerc +lat_0=38.83333333333334 +lon_0=-74.5 +k=0.9999 +x_0=150000 +y_0=0 +ellps=GRS80 +units=us-ft +no_defs "],"EPSG:4958":["EPSG:4958","+proj=geocent +ellps=GRS80 +units=m +no_defs "],"EPSG:6529":["EPSG:6529","+proj=tmerc +lat_0=31 +lon_0=-106.25 +k=0.9999 +x_0=500000.0001016001 +y_0=0 +ellps=GRS80 +units=us-ft +no_defs "],"EPSG:6530":["EPSG:6530","+proj=tmerc +lat_0=31 +lon_0=-104.3333333333333 +k=0.999909091 +x_0=165000 +y_0=0 +ellps=GRS80 +units=m +no_defs "],"EPSG:6531":["EPSG:6531","+proj=tmerc +lat_0=31 +lon_0=-104.3333333333333 +k=0.999909091 +x_0=165000 +y_0=0 +ellps=GRS80 +units=us-ft +no_defs "],"EPSG:6532":["EPSG:6532","+proj=tmerc +lat_0=31 +lon_0=-107.8333333333333 +k=0.999916667 +x_0=830000 +y_0=0 +ellps=GRS80 +units=m +no_defs "],"EPSG:6533":["EPSG:6533","+proj=tmerc +lat_0=31 +lon_0=-107.8333333333333 +k=0.999916667 +x_0=830000.0001016001 +y_0=0 +ellps=GRS80 +units=us-ft +no_defs "],"EPSG:6534":["EPSG:6534","+proj=tmerc +lat_0=40 +lon_0=-76.58333333333333 +k=0.9999375 +x_0=250000 +y_0=0 +ellps=GRS80 +units=m +no_defs "],"EPSG:6535":["EPSG:6535","+proj=tmerc +lat_0=40 +lon_0=-76.58333333333333 +k=0.9999375 +x_0=249999.9998983998 +y_0=0 +ellps=GRS80 +units=us-ft +no_defs "],"EPSG:6536":["EPSG:6536","+proj=tmerc +lat_0=38.83333333333334 +lon_0=-74.5 +k=0.9999 +x_0=150000 +y_0=0 +ellps=GRS80 +units=m +no_defs "],"EPSG:6537":["EPSG:6537","+proj=tmerc +lat_0=38.83333333333334 +lon_0=-74.5 +k=0.9999 +x_0=150000 +y_0=0 +ellps=GRS80 +units=us-ft +no_defs "],"EPSG:4960":["EPSG:4960","+proj=geocent +ellps=GRS80 +units=m +no_defs "],"EPSG:6538":["EPSG:6538","+proj=lcc +lat_1=41.03333333333333 +lat_2=40.66666666666666 +lat_0=40.16666666666666 +lon_0=-74 +x_0=300000 +y_0=0 +ellps=GRS80 +units=m +no_defs "],"EPSG:6539":["EPSG:6539","+proj=lcc +lat_1=41.03333333333333 +lat_2=40.66666666666666 +lat_0=40.16666666666666 +lon_0=-74 +x_0=300000.0000000001 +y_0=0 +ellps=GRS80 +units=us-ft +no_defs "],"EPSG:6540":["EPSG:6540","+proj=tmerc +lat_0=40 +lon_0=-78.58333333333333 +k=0.9999375 +x_0=350000 +y_0=0 +ellps=GRS80 +units=m +no_defs "],"EPSG:6541":["EPSG:6541","+proj=tmerc +lat_0=40 +lon_0=-78.58333333333333 +k=0.9999375 +x_0=350000.0001016001 +y_0=0 +ellps=GRS80 +units=us-ft +no_defs "],"EPSG:6542":["EPSG:6542","+proj=lcc +lat_1=36.16666666666666 +lat_2=34.33333333333334 +lat_0=33.75 +lon_0=-79 +x_0=609601.22 +y_0=0 +ellps=GRS80 +units=m +no_defs "],"EPSG:6543":["EPSG:6543","+proj=lcc +lat_1=36.16666666666666 +lat_2=34.33333333333334 +lat_0=33.75 +lon_0=-79 +x_0=609601.2192024384 +y_0=0 +ellps=GRS80 +units=us-ft +no_defs "],"EPSG:6544":["EPSG:6544","+proj=lcc +lat_1=48.73333333333333 +lat_2=47.43333333333333 +lat_0=47 +lon_0=-100.5 +x_0=600000 +y_0=0 +ellps=GRS80 +units=m +no_defs "],"EPSG:6545":["EPSG:6545","+proj=lcc +lat_1=48.73333333333333 +lat_2=47.43333333333333 +lat_0=47 +lon_0=-100.5 +x_0=599999.9999976 +y_0=0 +ellps=GRS80 +units=ft +no_defs "],"EPSG:6611":["EPSG:6611","+proj=tmerc +lat_0=40.5 +lon_0=-105.1666666666667 +k=0.9999375 +x_0=200000 +y_0=0 +ellps=GRS80 +units=m +no_defs "],"EPSG:6546":["EPSG:6546","+proj=lcc +lat_1=47.48333333333333 +lat_2=46.18333333333333 +lat_0=45.66666666666666 +lon_0=-100.5 +x_0=600000 +y_0=0 +ellps=GRS80 +units=m +no_defs "],"EPSG:6547":["EPSG:6547","+proj=lcc +lat_1=47.48333333333333 +lat_2=46.18333333333333 +lat_0=45.66666666666666 +lon_0=-100.5 +x_0=599999.9999976 +y_0=0 +ellps=GRS80 +units=ft +no_defs "],"EPSG:6548":["EPSG:6548","+proj=lcc +lat_1=41.7 +lat_2=40.43333333333333 +lat_0=39.66666666666666 +lon_0=-82.5 +x_0=600000 +y_0=0 +ellps=GRS80 +units=m +no_defs "],"EPSG:6549":["EPSG:6549","+proj=lcc +lat_1=41.7 +lat_2=40.43333333333333 +lat_0=39.66666666666666 +lon_0=-82.5 +x_0=600000 +y_0=0 +ellps=GRS80 +units=us-ft +no_defs "],"EPSG:6550":["EPSG:6550","+proj=lcc +lat_1=40.03333333333333 +lat_2=38.73333333333333 +lat_0=38 +lon_0=-82.5 +x_0=600000 +y_0=0 +ellps=GRS80 +units=m +no_defs "],"EPSG:6551":["EPSG:6551","+proj=lcc +lat_1=40.03333333333333 +lat_2=38.73333333333333 +lat_0=38 +lon_0=-82.5 +x_0=600000 +y_0=0 +ellps=GRS80 +units=us-ft +no_defs "],"EPSG:6552":["EPSG:6552","+proj=lcc +lat_1=36.76666666666667 +lat_2=35.56666666666667 +lat_0=35 +lon_0=-98 +x_0=600000 +y_0=0 +ellps=GRS80 +units=m +no_defs "],"EPSG:6553":["EPSG:6553","+proj=lcc +lat_1=36.76666666666667 +lat_2=35.56666666666667 +lat_0=35 +lon_0=-98 +x_0=600000 +y_0=0 +ellps=GRS80 +units=us-ft +no_defs "],"EPSG:6674":["EPSG:6674","+proj=tmerc +lat_0=36 +lon_0=136 +k=0.9999 +x_0=0 +y_0=0 +ellps=GRS80 +units=m +no_defs "],"EPSG:6554":["EPSG:6554","+proj=lcc +lat_1=35.23333333333333 +lat_2=33.93333333333333 +lat_0=33.33333333333334 +lon_0=-98 +x_0=600000 +y_0=0 +ellps=GRS80 +units=m +no_defs "],"EPSG:6555":["EPSG:6555","+proj=lcc +lat_1=35.23333333333333 +lat_2=33.93333333333333 +lat_0=33.33333333333334 +lon_0=-98 +x_0=600000 +y_0=0 +ellps=GRS80 +units=us-ft +no_defs "],"EPSG:6556":["EPSG:6556","+proj=lcc +lat_1=43 +lat_2=45.5 +lat_0=41.75 +lon_0=-120.5 +x_0=400000 +y_0=0 +ellps=GRS80 +units=m +no_defs "],"EPSG:6557":["EPSG:6557","+proj=lcc +lat_1=43 +lat_2=45.5 +lat_0=41.75 +lon_0=-120.5 +x_0=399999.9999984 +y_0=0 +ellps=GRS80 +units=ft +no_defs "],"EPSG:6558":["EPSG:6558","+proj=lcc +lat_1=46 +lat_2=44.33333333333334 +lat_0=43.66666666666666 +lon_0=-120.5 +x_0=2500000 +y_0=0 +ellps=GRS80 +units=m +no_defs "],"EPSG:6559":["EPSG:6559","+proj=lcc +lat_1=46 +lat_2=44.33333333333334 +lat_0=43.66666666666666 +lon_0=-120.5 +x_0=2500000.0001424 +y_0=0 +ellps=GRS80 +units=ft +no_defs "],"EPSG:6560":["EPSG:6560","+proj=lcc +lat_1=44 +lat_2=42.33333333333334 +lat_0=41.66666666666666 +lon_0=-120.5 +x_0=1500000 +y_0=0 +ellps=GRS80 +units=m +no_defs "],"EPSG:6561":["EPSG:6561","+proj=lcc +lat_1=44 +lat_2=42.33333333333334 +lat_0=41.66666666666666 +lon_0=-120.5 +x_0=1500000.0001464 +y_0=0 +ellps=GRS80 +units=ft +no_defs "],"EPSG:6612":["EPSG:6612","+proj=tmerc +lat_0=40.5 +lon_0=-105.1666666666667 +k=0.9999375 +x_0=200000.00001016 +y_0=0 +ellps=GRS80 +units=us-ft +no_defs "],"EPSG:6562":["EPSG:6562","+proj=lcc +lat_1=41.95 +lat_2=40.88333333333333 +lat_0=40.16666666666666 +lon_0=-77.75 +x_0=600000 +y_0=0 +ellps=GRS80 +units=m +no_defs "],"EPSG:6563":["EPSG:6563","+proj=lcc +lat_1=41.95 +lat_2=40.88333333333333 +lat_0=40.16666666666666 +lon_0=-77.75 +x_0=600000 +y_0=0 +ellps=GRS80 +units=us-ft +no_defs "],"EPSG:6564":["EPSG:6564","+proj=lcc +lat_1=40.96666666666667 +lat_2=39.93333333333333 +lat_0=39.33333333333334 +lon_0=-77.75 +x_0=600000 +y_0=0 +ellps=GRS80 +units=m +no_defs "],"EPSG:6565":["EPSG:6565","+proj=lcc +lat_1=40.96666666666667 +lat_2=39.93333333333333 +lat_0=39.33333333333334 +lon_0=-77.75 +x_0=600000 +y_0=0 +ellps=GRS80 +units=us-ft +no_defs "],"EPSG:6566":["EPSG:6566","+proj=lcc +lat_1=18.43333333333333 +lat_2=18.03333333333333 +lat_0=17.83333333333333 +lon_0=-66.43333333333334 +x_0=200000 +y_0=200000 +ellps=GRS80 +units=m +no_defs "],"EPSG:6567":["EPSG:6567","+proj=tmerc +lat_0=41.08333333333334 +lon_0=-71.5 +k=0.99999375 +x_0=100000 +y_0=0 +ellps=GRS80 +units=m +no_defs "],"EPSG:6568":["EPSG:6568","+proj=tmerc +lat_0=41.08333333333334 +lon_0=-71.5 +k=0.99999375 +x_0=99999.99998983997 +y_0=0 +ellps=GRS80 +units=us-ft +no_defs "],"EPSG:6569":["EPSG:6569","+proj=lcc +lat_1=34.83333333333334 +lat_2=32.5 +lat_0=31.83333333333333 +lon_0=-81 +x_0=609600 +y_0=0 +ellps=GRS80 +units=m +no_defs "],"EPSG:6671":["EPSG:6671","+proj=tmerc +lat_0=36 +lon_0=132.1666666666667 +k=0.9999 +x_0=0 +y_0=0 +ellps=GRS80 +units=m +no_defs "],"EPSG:6570":["EPSG:6570","+proj=lcc +lat_1=34.83333333333334 +lat_2=32.5 +lat_0=31.83333333333333 +lon_0=-81 +x_0=609600 +y_0=0 +ellps=GRS80 +units=ft +no_defs "],"EPSG:6571":["EPSG:6571","+proj=lcc +lat_1=45.68333333333333 +lat_2=44.41666666666666 +lat_0=43.83333333333334 +lon_0=-100 +x_0=600000 +y_0=0 +ellps=GRS80 +units=m +no_defs "],"EPSG:6572":["EPSG:6572","+proj=lcc +lat_1=45.68333333333333 +lat_2=44.41666666666666 +lat_0=43.83333333333334 +lon_0=-100 +x_0=600000 +y_0=0 +ellps=GRS80 +units=us-ft +no_defs "],"EPSG:6573":["EPSG:6573","+proj=lcc +lat_1=44.4 +lat_2=42.83333333333334 +lat_0=42.33333333333334 +lon_0=-100.3333333333333 +x_0=600000 +y_0=0 +ellps=GRS80 +units=m +no_defs "],"EPSG:6574":["EPSG:6574","+proj=lcc +lat_1=44.4 +lat_2=42.83333333333334 +lat_0=42.33333333333334 +lon_0=-100.3333333333333 +x_0=600000 +y_0=0 +ellps=GRS80 +units=us-ft +no_defs "],"EPSG:6575":["EPSG:6575","+proj=lcc +lat_1=36.41666666666666 +lat_2=35.25 +lat_0=34.33333333333334 +lon_0=-86 +x_0=600000 +y_0=0 +ellps=GRS80 +units=m +no_defs "],"EPSG:6576":["EPSG:6576","+proj=lcc +lat_1=36.41666666666666 +lat_2=35.25 +lat_0=34.33333333333334 +lon_0=-86 +x_0=600000 +y_0=0 +ellps=GRS80 +units=us-ft +no_defs "],"EPSG:6577":["EPSG:6577","+proj=lcc +lat_1=31.88333333333333 +lat_2=30.11666666666667 +lat_0=29.66666666666667 +lon_0=-100.3333333333333 +x_0=700000 +y_0=3000000 +ellps=GRS80 +units=m +no_defs "],"EPSG:4962":["EPSG:4962","+proj=geocent +ellps=GRS80 +units=m +no_defs "],"EPSG:6578":["EPSG:6578","+proj=lcc +lat_1=31.88333333333333 +lat_2=30.11666666666667 +lat_0=29.66666666666667 +lon_0=-100.3333333333333 +x_0=699999.9998983998 +y_0=3000000 +ellps=GRS80 +units=us-ft +no_defs "],"EPSG:6579":["EPSG:6579","+proj=aea +lat_1=27.5 +lat_2=35 +lat_0=18 +lon_0=-100 +x_0=1500000 +y_0=6000000 +ellps=GRS80 +units=m +no_defs "],"EPSG:6580":["EPSG:6580","+proj=lcc +lat_1=27.5 +lat_2=35 +lat_0=18 +lon_0=-100 +x_0=1500000 +y_0=5000000 +ellps=GRS80 +units=m +no_defs "],"EPSG:6581":["EPSG:6581","+proj=lcc +lat_1=36.18333333333333 +lat_2=34.65 +lat_0=34 +lon_0=-101.5 +x_0=200000 +y_0=1000000 +ellps=GRS80 +units=m +no_defs "],"EPSG:6582":["EPSG:6582","+proj=lcc +lat_1=36.18333333333333 +lat_2=34.65 +lat_0=34 +lon_0=-101.5 +x_0=200000.0001016002 +y_0=999999.9998983998 +ellps=GRS80 +units=us-ft +no_defs "],"EPSG:6583":["EPSG:6583","+proj=lcc +lat_1=33.96666666666667 +lat_2=32.13333333333333 +lat_0=31.66666666666667 +lon_0=-98.5 +x_0=600000 +y_0=2000000 +ellps=GRS80 +units=m +no_defs "],"EPSG:6584":["EPSG:6584","+proj=lcc +lat_1=33.96666666666667 +lat_2=32.13333333333333 +lat_0=31.66666666666667 +lon_0=-98.5 +x_0=600000 +y_0=2000000.0001016 +ellps=GRS80 +units=us-ft +no_defs "],"EPSG:6585":["EPSG:6585","+proj=lcc +lat_1=27.83333333333333 +lat_2=26.16666666666667 +lat_0=25.66666666666667 +lon_0=-98.5 +x_0=300000 +y_0=5000000 +ellps=GRS80 +units=m +no_defs "],"EPSG:4964":["EPSG:4964","+proj=geocent +ellps=GRS80 +units=m +no_defs "],"EPSG:6586":["EPSG:6586","+proj=lcc +lat_1=27.83333333333333 +lat_2=26.16666666666667 +lat_0=25.66666666666667 +lon_0=-98.5 +x_0=300000.0000000001 +y_0=5000000.0001016 +ellps=GRS80 +units=us-ft +no_defs "],"EPSG:6587":["EPSG:6587","+proj=lcc +lat_1=30.28333333333333 +lat_2=28.38333333333333 +lat_0=27.83333333333333 +lon_0=-99 +x_0=600000 +y_0=4000000 +ellps=GRS80 +units=m +no_defs "],"EPSG:6588":["EPSG:6588","+proj=lcc +lat_1=30.28333333333333 +lat_2=28.38333333333333 +lat_0=27.83333333333333 +lon_0=-99 +x_0=600000 +y_0=3999999.9998984 +ellps=GRS80 +units=us-ft +no_defs "],"EPSG:6589":["EPSG:6589","+proj=tmerc +lat_0=42.5 +lon_0=-72.5 +k=0.999964286 +x_0=500000 +y_0=0 +ellps=GRS80 +units=m +no_defs "],"EPSG:6590":["EPSG:6590","+proj=tmerc +lat_0=42.5 +lon_0=-72.5 +k=0.999964286 +x_0=500000.00001016 +y_0=0 +ellps=GRS80 +units=us-ft +no_defs "],"EPSG:6591":["EPSG:6591","+proj=lcc +lat_1=37 +lat_2=39.5 +lat_0=36 +lon_0=-79.5 +x_0=0 +y_0=0 +ellps=GRS80 +units=m +no_defs "],"EPSG:6592":["EPSG:6592","+proj=lcc +lat_1=39.2 +lat_2=38.03333333333333 +lat_0=37.66666666666666 +lon_0=-78.5 +x_0=3500000 +y_0=2000000 +ellps=GRS80 +units=m +no_defs "],"EPSG:6593":["EPSG:6593","+proj=lcc +lat_1=39.2 +lat_2=38.03333333333333 +lat_0=37.66666666666666 +lon_0=-78.5 +x_0=3500000.0001016 +y_0=2000000.0001016 +ellps=GRS80 +units=us-ft +no_defs "],"EPSG:6672":["EPSG:6672","+proj=tmerc +lat_0=33 +lon_0=133.5 +k=0.9999 +x_0=0 +y_0=0 +ellps=GRS80 +units=m +no_defs "],"EPSG:6594":["EPSG:6594","+proj=lcc +lat_1=37.96666666666667 +lat_2=36.76666666666667 +lat_0=36.33333333333334 +lon_0=-78.5 +x_0=3500000 +y_0=1000000 +ellps=GRS80 +units=m +no_defs "],"EPSG:6595":["EPSG:6595","+proj=lcc +lat_1=37.96666666666667 +lat_2=36.76666666666667 +lat_0=36.33333333333334 +lon_0=-78.5 +x_0=3500000.0001016 +y_0=999999.9998983998 +ellps=GRS80 +units=us-ft +no_defs "],"EPSG:6596":["EPSG:6596","+proj=lcc +lat_1=48.73333333333333 +lat_2=47.5 +lat_0=47 +lon_0=-120.8333333333333 +x_0=500000 +y_0=0 +ellps=GRS80 +units=m +no_defs "],"EPSG:6597":["EPSG:6597","+proj=lcc +lat_1=48.73333333333333 +lat_2=47.5 +lat_0=47 +lon_0=-120.8333333333333 +x_0=500000.0001016001 +y_0=0 +ellps=GRS80 +units=us-ft +no_defs "],"EPSG:6598":["EPSG:6598","+proj=lcc +lat_1=47.33333333333334 +lat_2=45.83333333333334 +lat_0=45.33333333333334 +lon_0=-120.5 +x_0=500000 +y_0=0 +ellps=GRS80 +units=m +no_defs "],"EPSG:6599":["EPSG:6599","+proj=lcc +lat_1=47.33333333333334 +lat_2=45.83333333333334 +lat_0=45.33333333333334 +lon_0=-120.5 +x_0=500000.0001016001 +y_0=0 +ellps=GRS80 +units=us-ft +no_defs "],"EPSG:6600":["EPSG:6600","+proj=lcc +lat_1=40.25 +lat_2=39 +lat_0=38.5 +lon_0=-79.5 +x_0=600000 +y_0=0 +ellps=GRS80 +units=m +no_defs "],"EPSG:6601":["EPSG:6601","+proj=lcc +lat_1=40.25 +lat_2=39 +lat_0=38.5 +lon_0=-79.5 +x_0=600000 +y_0=0 +ellps=GRS80 +units=us-ft +no_defs "],"EPSG:4966":["EPSG:4966","+proj=geocent +ellps=GRS80 +units=m +no_defs "],"EPSG:6602":["EPSG:6602","+proj=lcc +lat_1=38.88333333333333 +lat_2=37.48333333333333 +lat_0=37 +lon_0=-81 +x_0=600000 +y_0=0 +ellps=GRS80 +units=m +no_defs "],"EPSG:6603":["EPSG:6603","+proj=lcc +lat_1=38.88333333333333 +lat_2=37.48333333333333 +lat_0=37 +lon_0=-81 +x_0=600000 +y_0=0 +ellps=GRS80 +units=us-ft +no_defs "],"EPSG:6604":["EPSG:6604","+proj=lcc +lat_1=45.5 +lat_2=44.25 +lat_0=43.83333333333334 +lon_0=-90 +x_0=600000 +y_0=0 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs "],"EPSG:6605":["EPSG:6605","+proj=lcc +lat_1=45.5 +lat_2=44.25 +lat_0=43.83333333333334 +lon_0=-90 +x_0=600000 +y_0=0 +ellps=GRS80 +units=us-ft +no_defs "],"EPSG:6606":["EPSG:6606","+proj=lcc +lat_1=46.76666666666667 +lat_2=45.56666666666667 +lat_0=45.16666666666666 +lon_0=-90 +x_0=600000 +y_0=0 +ellps=GRS80 +units=m +no_defs "],"EPSG:6607":["EPSG:6607","+proj=lcc +lat_1=46.76666666666667 +lat_2=45.56666666666667 +lat_0=45.16666666666666 +lon_0=-90 +x_0=600000 +y_0=0 +ellps=GRS80 +units=us-ft +no_defs "],"EPSG:6608":["EPSG:6608","+proj=lcc +lat_1=44.06666666666667 +lat_2=42.73333333333333 +lat_0=42 +lon_0=-90 +x_0=600000 +y_0=0 +ellps=GRS80 +units=m +no_defs "],"EPSG:6609":["EPSG:6609","+proj=lcc +lat_1=44.06666666666667 +lat_2=42.73333333333333 +lat_0=42 +lon_0=-90 +x_0=600000 +y_0=0 +ellps=GRS80 +units=us-ft +no_defs "],"EPSG:32603":["EPSG:32603","+proj=utm +zone=3 +datum=WGS84 +units=m +no_defs "],"EPSG:6613":["EPSG:6613","+proj=tmerc +lat_0=40.5 +lon_0=-107.3333333333333 +k=0.9999375 +x_0=400000 +y_0=100000 +ellps=GRS80 +units=m +no_defs "],"EPSG:6614":["EPSG:6614","+proj=tmerc +lat_0=40.5 +lon_0=-107.3333333333333 +k=0.9999375 +x_0=399999.99998984 +y_0=99999.99998983997 +ellps=GRS80 +units=us-ft +no_defs "],"EPSG:6615":["EPSG:6615","+proj=tmerc +lat_0=40.5 +lon_0=-110.0833333333333 +k=0.9999375 +x_0=800000 +y_0=100000 +ellps=GRS80 +units=m +no_defs "],"EPSG:6616":["EPSG:6616","+proj=tmerc +lat_0=40.5 +lon_0=-110.0833333333333 +k=0.9999375 +x_0=800000.0000101599 +y_0=99999.99998983997 +ellps=GRS80 +units=us-ft +no_defs "],"EPSG:6617":["EPSG:6617","+proj=tmerc +lat_0=40.5 +lon_0=-108.75 +k=0.9999375 +x_0=600000 +y_0=0 +ellps=GRS80 +units=m +no_defs "],"EPSG:6618":["EPSG:6618","+proj=tmerc +lat_0=40.5 +lon_0=-108.75 +k=0.9999375 +x_0=600000 +y_0=0 +ellps=GRS80 +units=us-ft +no_defs "],"EPSG:6619":["EPSG:6619","+proj=lcc +lat_1=40.65 +lat_2=39.01666666666667 +lat_0=38.33333333333334 +lon_0=-111.5 +x_0=500000 +y_0=2000000 +ellps=GRS80 +units=m +no_defs "],"EPSG:6620":["EPSG:6620","+proj=lcc +lat_1=41.78333333333333 +lat_2=40.71666666666667 +lat_0=40.33333333333334 +lon_0=-111.5 +x_0=500000 +y_0=1000000 +ellps=GRS80 +units=m +no_defs "],"EPSG:6621":["EPSG:6621","+proj=lcc +lat_1=38.35 +lat_2=37.21666666666667 +lat_0=36.66666666666666 +lon_0=-111.5 +x_0=500000 +y_0=3000000 +ellps=GRS80 +units=m +no_defs "],"EPSG:6622":["EPSG:6622","+proj=lcc +lat_1=60 +lat_2=46 +lat_0=44 +lon_0=-68.5 +x_0=0 +y_0=0 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs "],"EPSG:6623":["EPSG:6623","+proj=aea +lat_1=60 +lat_2=46 +lat_0=44 +lon_0=-68.5 +x_0=0 +y_0=0 +datum=NAD83 +units=m +no_defs "],"EPSG:6624":["EPSG:6624","+proj=aea +lat_1=60 +lat_2=46 +lat_0=44 +lon_0=-68.5 +x_0=0 +y_0=0 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs "],"EPSG:6625":["EPSG:6625","+proj=lcc +lat_1=40.65 +lat_2=39.01666666666667 +lat_0=38.33333333333334 +lon_0=-111.5 +x_0=500000.00001016 +y_0=2000000.00001016 +ellps=GRS80 +units=us-ft +no_defs "],"EPSG:6626":["EPSG:6626","+proj=lcc +lat_1=41.78333333333333 +lat_2=40.71666666666667 +lat_0=40.33333333333334 +lon_0=-111.5 +x_0=500000.00001016 +y_0=999999.9999898402 +ellps=GRS80 +units=us-ft +no_defs "],"EPSG:6627":["EPSG:6627","+proj=lcc +lat_1=38.35 +lat_2=37.21666666666667 +lat_0=36.66666666666666 +lon_0=-111.5 +x_0=500000.00001016 +y_0=3000000 +ellps=GRS80 +units=us-ft +no_defs "],"EPSG:6628":["EPSG:6628","+proj=tmerc +lat_0=18.83333333333333 +lon_0=-155.5 +k=0.999966667 +x_0=500000 +y_0=0 +ellps=GRS80 +units=m +no_defs "],"EPSG:6629":["EPSG:6629","+proj=tmerc +lat_0=20.33333333333333 +lon_0=-156.6666666666667 +k=0.999966667 +x_0=500000 +y_0=0 +ellps=GRS80 +units=m +no_defs "],"EPSG:6630":["EPSG:6630","+proj=tmerc +lat_0=21.16666666666667 +lon_0=-158 +k=0.99999 +x_0=500000 +y_0=0 +ellps=GRS80 +units=m +no_defs "],"EPSG:6631":["EPSG:6631","+proj=tmerc +lat_0=21.83333333333333 +lon_0=-159.5 +k=0.99999 +x_0=500000 +y_0=0 +ellps=GRS80 +units=m +no_defs "],"EPSG:6632":["EPSG:6632","+proj=tmerc +lat_0=21.66666666666667 +lon_0=-160.1666666666667 +k=1 +x_0=500000 +y_0=0 +ellps=GRS80 +units=m +no_defs "],"EPSG:6633":["EPSG:6633","+proj=tmerc +lat_0=21.16666666666667 +lon_0=-158 +k=0.99999 +x_0=500000.00001016 +y_0=0 +ellps=GRS80 +units=us-ft +no_defs "],"EPSG:6634":["EPSG:6634","+proj=utm +zone=4 +ellps=GRS80 +units=m +no_defs "],"EPSG:6635":["EPSG:6635","+proj=utm +zone=5 +ellps=GRS80 +units=m +no_defs "],"EPSG:6636":["EPSG:6636","+proj=utm +zone=2 +south +ellps=GRS80 +units=m +no_defs "],"EPSG:6637":["EPSG:6637","+proj=tmerc +lat_0=13.5 +lon_0=144.75 +k=1 +x_0=100000 +y_0=200000 +ellps=GRS80 +units=m +no_defs "],"EPSG:6646":["EPSG:6646","+proj=tmerc +lat_0=29.02626833333333 +lon_0=46.5 +k=0.9994 +x_0=800000 +y_0=0 +ellps=clrk80 +towgs84=70.995,-335.916,262.898,0,0,0,0 +units=m +no_defs "],"EPSG:6669":["EPSG:6669","+proj=tmerc +lat_0=33 +lon_0=129.5 +k=0.9999 +x_0=0 +y_0=0 +ellps=GRS80 +units=m +no_defs "],"EPSG:6670":["EPSG:6670","+proj=tmerc +lat_0=33 +lon_0=131 +k=0.9999 +x_0=0 +y_0=0 +ellps=GRS80 +units=m +no_defs "],"EPSG:6675":["EPSG:6675","+proj=tmerc +lat_0=36 +lon_0=137.1666666666667 +k=0.9999 +x_0=0 +y_0=0 +ellps=GRS80 +units=m +no_defs "],"EPSG:6676":["EPSG:6676","+proj=tmerc +lat_0=36 +lon_0=138.5 +k=0.9999 +x_0=0 +y_0=0 +ellps=GRS80 +units=m +no_defs "],"EPSG:6677":["EPSG:6677","+proj=tmerc +lat_0=36 +lon_0=139.8333333333333 +k=0.9999 +x_0=0 +y_0=0 +ellps=GRS80 +units=m +no_defs "],"EPSG:6678":["EPSG:6678","+proj=tmerc +lat_0=40 +lon_0=140.8333333333333 +k=0.9999 +x_0=0 +y_0=0 +ellps=GRS80 +units=m +no_defs "],"EPSG:6679":["EPSG:6679","+proj=tmerc +lat_0=44 +lon_0=140.25 +k=0.9999 +x_0=0 +y_0=0 +ellps=GRS80 +units=m +no_defs "],"EPSG:6680":["EPSG:6680","+proj=tmerc +lat_0=44 +lon_0=142.25 +k=0.9999 +x_0=0 +y_0=0 +ellps=GRS80 +units=m +no_defs "],"EPSG:6681":["EPSG:6681","+proj=tmerc +lat_0=44 +lon_0=144.25 +k=0.9999 +x_0=0 +y_0=0 +ellps=GRS80 +units=m +no_defs "],"EPSG:6682":["EPSG:6682","+proj=tmerc +lat_0=26 +lon_0=142 +k=0.9999 +x_0=0 +y_0=0 +ellps=GRS80 +units=m +no_defs "],"EPSG:6683":["EPSG:6683","+proj=tmerc +lat_0=26 +lon_0=127.5 +k=0.9999 +x_0=0 +y_0=0 +ellps=GRS80 +units=m +no_defs "],"EPSG:6684":["EPSG:6684","+proj=tmerc +lat_0=26 +lon_0=124 +k=0.9999 +x_0=0 +y_0=0 +ellps=GRS80 +units=m +no_defs "],"EPSG:6685":["EPSG:6685","+proj=tmerc +lat_0=26 +lon_0=131 +k=0.9999 +x_0=0 +y_0=0 +ellps=GRS80 +units=m +no_defs "],"EPSG:6689":["EPSG:6689","+proj=utm +zone=52 +ellps=GRS80 +units=m +no_defs "],"EPSG:6690":["EPSG:6690","+proj=utm +zone=53 +ellps=GRS80 +units=m +no_defs "],"EPSG:6691":["EPSG:6691","+proj=utm +zone=54 +ellps=GRS80 +units=m +no_defs "],"EPSG:6692":["EPSG:6692","+proj=utm +zone=55 +ellps=GRS80 +units=m +no_defs "],"EPSG:6703":["EPSG:6703","+proj=tmerc +lat_0=0 +lon_0=-60 +k=0.9996 +x_0=500000 +y_0=10000000 +datum=WGS84 +units=m +no_defs "],"EPSG:6707":["EPSG:6707","+proj=utm +zone=32 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs "],"EPSG:6708":["EPSG:6708","+proj=utm +zone=33 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs "],"EPSG:6709":["EPSG:6709","+proj=utm +zone=34 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs "],"EPSG:6720":["EPSG:6720","+proj=tmerc +lat_0=0 +lon_0=105.625 +k=1.000024 +x_0=50000 +y_0=1300000 +datum=WGS84 +units=m +no_defs "],"EPSG:6721":["EPSG:6721","+proj=tmerc +lat_0=0 +lon_0=105.625 +k=1.00002514 +x_0=50000 +y_0=1300000 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs "],"EPSG:6722":["EPSG:6722","+proj=tmerc +lat_0=0 +lon_0=96.875 +k=1 +x_0=50000 +y_0=1400000 +datum=WGS84 +units=m +no_defs "],"EPSG:6723":["EPSG:6723","+proj=tmerc +lat_0=0 +lon_0=96.875 +k=0.99999387 +x_0=50000 +y_0=1500000 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs "],"EPSG:6732":["EPSG:6732","+proj=utm +zone=41 +south +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs "],"EPSG:6733":["EPSG:6733","+proj=utm +zone=42 +south +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs "],"EPSG:6734":["EPSG:6734","+proj=utm +zone=43 +south +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs "],"EPSG:6735":["EPSG:6735","+proj=utm +zone=44 +south +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs "],"EPSG:6736":["EPSG:6736","+proj=utm +zone=46 +south +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs "],"EPSG:6737":["EPSG:6737","+proj=utm +zone=47 +south +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs "],"EPSG:6738":["EPSG:6738","+proj=utm +zone=59 +south +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs "],"EPSG:6784":["EPSG:6784","+proj=tmerc +lat_0=44.5 +lon_0=-117.8333333333333 +k=1.00016 +x_0=40000 +y_0=0 +ellps=GRS80 +units=m +no_defs "],"EPSG:6785":["EPSG:6785","+proj=tmerc +lat_0=44.5 +lon_0=-117.8333333333333 +k=1.00016 +x_0=39999.99999984 +y_0=0 +ellps=GRS80 +units=ft +no_defs "],"EPSG:6786":["EPSG:6786","+proj=tmerc +lat_0=44.5 +lon_0=-117.8333333333333 +k=1.00016 +x_0=40000 +y_0=0 +ellps=GRS80 +units=m +no_defs "],"EPSG:6787":["EPSG:6787","+proj=tmerc +lat_0=44.5 +lon_0=-117.8333333333333 +k=1.00016 +x_0=39999.99999984 +y_0=0 +ellps=GRS80 +units=ft +no_defs "],"EPSG:6788":["EPSG:6788","+proj=tmerc +lat_0=41.75 +lon_0=-121.75 +k=1.0002 +x_0=80000 +y_0=0 +ellps=GRS80 +units=m +no_defs "],"EPSG:6789":["EPSG:6789","+proj=tmerc +lat_0=41.75 +lon_0=-121.75 +k=1.0002 +x_0=79999.99999968 +y_0=0 +ellps=GRS80 +units=ft +no_defs "],"EPSG:6790":["EPSG:6790","+proj=tmerc +lat_0=41.75 +lon_0=-121.75 +k=1.0002 +x_0=80000 +y_0=0 +ellps=GRS80 +units=m +no_defs "],"EPSG:6791":["EPSG:6791","+proj=tmerc +lat_0=41.75 +lon_0=-121.75 +k=1.0002 +x_0=79999.99999968 +y_0=0 +ellps=GRS80 +units=ft +no_defs "],"EPSG:6792":["EPSG:6792","+proj=lcc +lat_1=44.66666666666666 +lat_0=44.66666666666666 +lon_0=-121.25 +k_0=1.00012 +x_0=80000 +y_0=130000 +ellps=GRS80 +units=m +no_defs "],"EPSG:6793":["EPSG:6793","+proj=lcc +lat_1=44.66666666666666 +lat_0=44.66666666666666 +lon_0=-121.25 +k_0=1.00012 +x_0=79999.99999968 +y_0=130000.00001472 +ellps=GRS80 +units=ft +no_defs "],"EPSG:6794":["EPSG:6794","+proj=lcc +lat_1=44.66666666666666 +lat_0=44.66666666666666 +lon_0=-121.25 +k_0=1.00012 +x_0=80000 +y_0=130000 +ellps=GRS80 +units=m +no_defs "],"EPSG:4968":["EPSG:4968","+proj=geocent +ellps=intl +units=m +no_defs "],"EPSG:6795":["EPSG:6795","+proj=lcc +lat_1=44.66666666666666 +lat_0=44.66666666666666 +lon_0=-121.25 +k_0=1.00012 +x_0=79999.99999968 +y_0=130000.00001472 +ellps=GRS80 +units=ft +no_defs "],"EPSG:6796":["EPSG:6796","+proj=lcc +lat_1=43.66666666666666 +lat_0=43.66666666666666 +lon_0=-119.75 +k_0=1.0002 +x_0=120000 +y_0=60000 +ellps=GRS80 +units=m +no_defs "],"EPSG:6797":["EPSG:6797","+proj=lcc +lat_1=43.66666666666666 +lat_0=43.66666666666666 +lon_0=-119.75 +k_0=1.0002 +x_0=119999.99999952 +y_0=59999.99999976 +ellps=GRS80 +units=ft +no_defs "],"EPSG:6798":["EPSG:6798","+proj=lcc +lat_1=43.66666666666666 +lat_0=43.66666666666666 +lon_0=-119.75 +k_0=1.0002 +x_0=120000 +y_0=60000 +ellps=GRS80 +units=m +no_defs "],"EPSG:6799":["EPSG:6799","+proj=lcc +lat_1=43.66666666666666 +lat_0=43.66666666666666 +lon_0=-119.75 +k_0=1.0002 +x_0=119999.99999952 +y_0=59999.99999976 +ellps=GRS80 +units=ft +no_defs "],"EPSG:6800":["EPSG:6800","+proj=tmerc +lat_0=42.5 +lon_0=-123.3333333333333 +k=1.00007 +x_0=40000 +y_0=0 +ellps=GRS80 +units=m +no_defs "],"EPSG:6801":["EPSG:6801","+proj=tmerc +lat_0=42.5 +lon_0=-123.3333333333333 +k=1.00007 +x_0=39999.99999984 +y_0=0 +ellps=GRS80 +units=ft +no_defs "],"EPSG:6802":["EPSG:6802","+proj=tmerc +lat_0=42.5 +lon_0=-123.3333333333333 +k=1.00007 +x_0=40000 +y_0=0 +ellps=GRS80 +units=m +no_defs "],"EPSG:6803":["EPSG:6803","+proj=tmerc +lat_0=42.5 +lon_0=-123.3333333333333 +k=1.00007 +x_0=39999.99999984 +y_0=0 +ellps=GRS80 +units=ft +no_defs "],"EPSG:6804":["EPSG:6804","+proj=lcc +lat_1=45.66666666666666 +lat_0=45.66666666666666 +lon_0=-120.5 +k_0=1.000008 +x_0=150000 +y_0=30000 +ellps=GRS80 +units=m +no_defs "],"EPSG:6805":["EPSG:6805","+proj=lcc +lat_1=45.66666666666666 +lat_0=45.66666666666666 +lon_0=-120.5 +k_0=1.000008 +x_0=150000.00001464 +y_0=30000.00001512 +ellps=GRS80 +units=ft +no_defs "],"EPSG:6806":["EPSG:6806","+proj=lcc +lat_1=45.66666666666666 +lat_0=45.66666666666666 +lon_0=-120.5 +k_0=1.000008 +x_0=150000 +y_0=30000 +ellps=GRS80 +units=m +no_defs "],"EPSG:6807":["EPSG:6807","+proj=lcc +lat_1=45.66666666666666 +lat_0=45.66666666666666 +lon_0=-120.5 +k_0=1.000008 +x_0=150000.00001464 +y_0=30000.00001512 +ellps=GRS80 +units=ft +no_defs "],"EPSG:6808":["EPSG:6808","+proj=omerc +lat_0=45.91666666666666 +lonc=-123 +alpha=295 +k=1 +x_0=7000000 +y_0=-3000000 +no_uoff +gamma=295 +ellps=GRS80 +units=m +no_defs "],"EPSG:6809":["EPSG:6809","+proj=omerc +lat_0=45.91666666666666 +lonc=-123 +alpha=295 +k=1 +x_0=7000000.00000248 +y_0=-2999999.999988 +no_uoff +gamma=295 +ellps=GRS80 +units=ft +no_defs "],"EPSG:6810":["EPSG:6810","+proj=omerc +lat_0=45.91666666666666 +lonc=-123 +alpha=295 +k=1 +x_0=7000000 +y_0=-3000000 +no_uoff +gamma=295 +ellps=GRS80 +units=m +no_defs "],"EPSG:6811":["EPSG:6811","+proj=omerc +lat_0=45.91666666666666 +lonc=-123 +alpha=295 +k=1 +x_0=7000000.00000248 +y_0=-2999999.999988 +no_uoff +gamma=295 +ellps=GRS80 +units=ft +no_defs "],"EPSG:4970":["EPSG:4970","+proj=geocent +ellps=GRS80 +units=m +no_defs "],"EPSG:6812":["EPSG:6812","+proj=tmerc +lat_0=42.83333333333334 +lon_0=-123.3333333333333 +k=1.000023 +x_0=50000 +y_0=0 +ellps=GRS80 +units=m +no_defs "],"EPSG:6813":["EPSG:6813","+proj=tmerc +lat_0=42.83333333333334 +lon_0=-123.3333333333333 +k=1.000023 +x_0=50000.00001504 +y_0=0 +ellps=GRS80 +units=ft +no_defs "],"EPSG:6814":["EPSG:6814","+proj=tmerc +lat_0=42.83333333333334 +lon_0=-123.3333333333333 +k=1.000023 +x_0=50000 +y_0=0 +ellps=GRS80 +units=m +no_defs "],"EPSG:6815":["EPSG:6815","+proj=tmerc +lat_0=42.83333333333334 +lon_0=-123.3333333333333 +k=1.000023 +x_0=50000.00001504 +y_0=0 +ellps=GRS80 +units=ft +no_defs "],"EPSG:6816":["EPSG:6816","+proj=tmerc +lat_0=44.5 +lon_0=-121 +k=1.00011 +x_0=80000 +y_0=0 +ellps=GRS80 +units=m +no_defs "],"EPSG:6817":["EPSG:6817","+proj=tmerc +lat_0=44.5 +lon_0=-121 +k=1.00011 +x_0=79999.99999968 +y_0=0 +ellps=GRS80 +units=ft +no_defs "],"EPSG:6818":["EPSG:6818","+proj=tmerc +lat_0=44.5 +lon_0=-121 +k=1.00011 +x_0=80000 +y_0=0 +ellps=GRS80 +units=m +no_defs "],"EPSG:6819":["EPSG:6819","+proj=tmerc +lat_0=44.5 +lon_0=-121 +k=1.00011 +x_0=79999.99999968 +y_0=0 +ellps=GRS80 +units=ft +no_defs "],"EPSG:6820":["EPSG:6820","+proj=tmerc +lat_0=43.75 +lon_0=-123.1666666666667 +k=1.000015 +x_0=50000 +y_0=0 +ellps=GRS80 +units=m +no_defs "],"EPSG:4972":["EPSG:4972","+proj=geocent +ellps=WGS84 +units=m +no_defs "],"EPSG:6821":["EPSG:6821","+proj=tmerc +lat_0=43.75 +lon_0=-123.1666666666667 +k=1.000015 +x_0=50000.00001504 +y_0=0 +ellps=GRS80 +units=ft +no_defs "],"EPSG:6822":["EPSG:6822","+proj=tmerc +lat_0=43.75 +lon_0=-123.1666666666667 +k=1.000015 +x_0=50000 +y_0=0 +ellps=GRS80 +units=m +no_defs "],"EPSG:6823":["EPSG:6823","+proj=tmerc +lat_0=43.75 +lon_0=-123.1666666666667 +k=1.000015 +x_0=50000.00001504 +y_0=0 +ellps=GRS80 +units=ft +no_defs "],"EPSG:6824":["EPSG:6824","+proj=tmerc +lat_0=41.75 +lon_0=-123.3333333333333 +k=1.000043 +x_0=50000 +y_0=0 +ellps=GRS80 +units=m +no_defs "],"EPSG:6825":["EPSG:6825","+proj=tmerc +lat_0=41.75 +lon_0=-123.3333333333333 +k=1.000043 +x_0=50000.00001504 +y_0=0 +ellps=GRS80 +units=ft +no_defs "],"EPSG:6826":["EPSG:6826","+proj=tmerc +lat_0=41.75 +lon_0=-123.3333333333333 +k=1.000043 +x_0=50000 +y_0=0 +ellps=GRS80 +units=m +no_defs "],"EPSG:6827":["EPSG:6827","+proj=tmerc +lat_0=41.75 +lon_0=-123.3333333333333 +k=1.000043 +x_0=50000.00001504 +y_0=0 +ellps=GRS80 +units=ft +no_defs "],"EPSG:6828":["EPSG:6828","+proj=tmerc +lat_0=45 +lon_0=-122.3333333333333 +k=1.00005 +x_0=10000 +y_0=0 +ellps=GRS80 +units=m +no_defs "],"EPSG:6829":["EPSG:6829","+proj=tmerc +lat_0=45 +lon_0=-122.3333333333333 +k=1.00005 +x_0=10000.0000152 +y_0=0 +ellps=GRS80 +units=ft +no_defs "],"EPSG:4974":["EPSG:4974","+proj=geocent +ellps=GRS80 +units=m +no_defs "],"EPSG:6830":["EPSG:6830","+proj=tmerc +lat_0=45 +lon_0=-122.3333333333333 +k=1.00005 +x_0=10000 +y_0=0 +ellps=GRS80 +units=m +no_defs "],"EPSG:6831":["EPSG:6831","+proj=tmerc +lat_0=45 +lon_0=-122.3333333333333 +k=1.00005 +x_0=10000.0000152 +y_0=0 +ellps=GRS80 +units=ft +no_defs "],"EPSG:6832":["EPSG:6832","+proj=tmerc +lat_0=45 +lon_0=-118 +k=1.00013 +x_0=40000 +y_0=0 +ellps=GRS80 +units=m +no_defs "],"EPSG:6833":["EPSG:6833","+proj=tmerc +lat_0=45 +lon_0=-118 +k=1.00013 +x_0=39999.99999984 +y_0=0 +ellps=GRS80 +units=ft +no_defs "],"EPSG:6834":["EPSG:6834","+proj=tmerc +lat_0=45 +lon_0=-118 +k=1.00013 +x_0=40000 +y_0=0 +ellps=GRS80 +units=m +no_defs "],"EPSG:6835":["EPSG:6835","+proj=tmerc +lat_0=45 +lon_0=-118 +k=1.00013 +x_0=39999.99999984 +y_0=0 +ellps=GRS80 +units=ft +no_defs "],"EPSG:6836":["EPSG:6836","+proj=tmerc +lat_0=43.25 +lon_0=-117 +k=1.0001 +x_0=80000 +y_0=0 +ellps=GRS80 +units=m +no_defs "],"EPSG:6837":["EPSG:6837","+proj=tmerc +lat_0=43.25 +lon_0=-117 +k=1.0001 +x_0=79999.99999968 +y_0=0 +ellps=GRS80 +units=ft +no_defs "],"EPSG:6838":["EPSG:6838","+proj=tmerc +lat_0=43.25 +lon_0=-117 +k=1.0001 +x_0=80000 +y_0=0 +ellps=GRS80 +units=m +no_defs "],"EPSG:6870":["EPSG:6870","+proj=tmerc +lat_0=0 +lon_0=20 +k=1 +x_0=500000 +y_0=0 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs "],"EPSG:6839":["EPSG:6839","+proj=tmerc +lat_0=43.25 +lon_0=-117 +k=1.0001 +x_0=79999.99999968 +y_0=0 +ellps=GRS80 +units=ft +no_defs "],"EPSG:6840":["EPSG:6840","+proj=omerc +lat_0=44.75 +lonc=-124.05 +alpha=5 +k=1 +x_0=-300000 +y_0=-4600000 +no_uoff +gamma=5 +ellps=GRS80 +units=m +no_defs "],"EPSG:6841":["EPSG:6841","+proj=omerc +lat_0=44.75 +lonc=-124.05 +alpha=5 +k=1 +x_0=-299999.9999988 +y_0=-4600000.00001208 +no_uoff +gamma=5 +ellps=GRS80 +units=ft +no_defs "],"EPSG:6842":["EPSG:6842","+proj=omerc +lat_0=44.75 +lonc=-124.05 +alpha=5 +k=1 +x_0=-300000 +y_0=-4600000 +no_uoff +gamma=5 +ellps=GRS80 +units=m +no_defs "],"EPSG:6843":["EPSG:6843","+proj=omerc +lat_0=44.75 +lonc=-124.05 +alpha=5 +k=1 +x_0=-299999.9999988 +y_0=-4600000.00001208 +no_uoff +gamma=5 +ellps=GRS80 +units=ft +no_defs "],"EPSG:6844":["EPSG:6844","+proj=tmerc +lat_0=45.25 +lon_0=-119.1666666666667 +k=1.000045 +x_0=60000 +y_0=0 +ellps=GRS80 +units=m +no_defs "],"EPSG:6845":["EPSG:6845","+proj=tmerc +lat_0=45.25 +lon_0=-119.1666666666667 +k=1.000045 +x_0=59999.99999976 +y_0=0 +ellps=GRS80 +units=ft +no_defs "],"EPSG:6846":["EPSG:6846","+proj=tmerc +lat_0=45.25 +lon_0=-119.1666666666667 +k=1.000045 +x_0=60000 +y_0=0 +ellps=GRS80 +units=m +no_defs "],"EPSG:6847":["EPSG:6847","+proj=tmerc +lat_0=45.25 +lon_0=-119.1666666666667 +k=1.000045 +x_0=59999.99999976 +y_0=0 +ellps=GRS80 +units=ft +no_defs "],"EPSG:6848":["EPSG:6848","+proj=tmerc +lat_0=45.08333333333334 +lon_0=-118.3333333333333 +k=1.000175 +x_0=30000 +y_0=0 +ellps=GRS80 +units=m +no_defs "],"EPSG:6849":["EPSG:6849","+proj=tmerc +lat_0=45.08333333333334 +lon_0=-118.3333333333333 +k=1.000175 +x_0=30000.00001512 +y_0=0 +ellps=GRS80 +units=ft +no_defs "],"EPSG:6850":["EPSG:6850","+proj=tmerc +lat_0=45.08333333333334 +lon_0=-118.3333333333333 +k=1.000175 +x_0=30000 +y_0=0 +ellps=GRS80 +units=m +no_defs "],"EPSG:6851":["EPSG:6851","+proj=tmerc +lat_0=45.08333333333334 +lon_0=-118.3333333333333 +k=1.000175 +x_0=30000.00001512 +y_0=0 +ellps=GRS80 +units=ft +no_defs "],"EPSG:6852":["EPSG:6852","+proj=lcc +lat_1=45.5 +lat_0=45.5 +lon_0=-122.75 +k_0=1.000002 +x_0=100000 +y_0=50000 +ellps=GRS80 +units=m +no_defs "],"EPSG:6853":["EPSG:6853","+proj=lcc +lat_1=45.5 +lat_0=45.5 +lon_0=-122.75 +k_0=1.000002 +x_0=99999.99999960001 +y_0=50000.00001504 +ellps=GRS80 +units=ft +no_defs "],"EPSG:6854":["EPSG:6854","+proj=lcc +lat_1=45.5 +lat_0=45.5 +lon_0=-122.75 +k_0=1.000002 +x_0=100000 +y_0=50000 +ellps=GRS80 +units=m +no_defs "],"EPSG:6855":["EPSG:6855","+proj=lcc +lat_1=45.5 +lat_0=45.5 +lon_0=-122.75 +k_0=1.000002 +x_0=99999.99999960001 +y_0=50000.00001504 +ellps=GRS80 +units=ft +no_defs "],"EPSG:6856":["EPSG:6856","+proj=tmerc +lat_0=44.33333333333334 +lon_0=-123.0833333333333 +k=1.00001 +x_0=50000 +y_0=0 +ellps=GRS80 +units=m +no_defs "],"EPSG:6857":["EPSG:6857","+proj=tmerc +lat_0=44.33333333333334 +lon_0=-123.0833333333333 +k=1.00001 +x_0=50000.00001504 +y_0=0 +ellps=GRS80 +units=ft +no_defs "],"EPSG:6858":["EPSG:6858","+proj=tmerc +lat_0=44.33333333333334 +lon_0=-123.0833333333333 +k=1.00001 +x_0=50000 +y_0=0 +ellps=GRS80 +units=m +no_defs "],"EPSG:6859":["EPSG:6859","+proj=tmerc +lat_0=44.33333333333334 +lon_0=-123.0833333333333 +k=1.00001 +x_0=50000.00001504 +y_0=0 +ellps=GRS80 +units=ft +no_defs "],"EPSG:6860":["EPSG:6860","+proj=tmerc +lat_0=44.08333333333334 +lon_0=-122.5 +k=1.000155 +x_0=0 +y_0=0 +ellps=GRS80 +units=m +no_defs "],"EPSG:6861":["EPSG:6861","+proj=tmerc +lat_0=44.08333333333334 +lon_0=-122.5 +k=1.000155 +x_0=0 +y_0=0 +ellps=GRS80 +units=ft +no_defs "],"EPSG:6862":["EPSG:6862","+proj=tmerc +lat_0=44.08333333333334 +lon_0=-122.5 +k=1.000155 +x_0=0 +y_0=0 +ellps=GRS80 +units=m +no_defs "],"EPSG:6863":["EPSG:6863","+proj=tmerc +lat_0=44.08333333333334 +lon_0=-122.5 +k=1.000155 +x_0=0 +y_0=0 +ellps=GRS80 +units=ft +no_defs "],"EPSG:6867":["EPSG:6867","+proj=lcc +lat_1=43 +lat_2=45.5 +lat_0=41.75 +lon_0=-120.5 +x_0=400000 +y_0=0 +ellps=GRS80 +units=m +no_defs "],"EPSG:6868":["EPSG:6868","+proj=lcc +lat_1=43 +lat_2=45.5 +lat_0=41.75 +lon_0=-120.5 +x_0=399999.9999984 +y_0=0 +ellps=GRS80 +units=ft +no_defs "],"EPSG:6875":["EPSG:6875","+proj=tmerc +lat_0=0 +lon_0=12 +k=0.9985000000000001 +x_0=7000000 +y_0=0 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs "],"EPSG:6876":["EPSG:6876","+proj=tmerc +lat_0=0 +lon_0=12 +k=1 +x_0=3000000 +y_0=0 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs "],"EPSG:6879":["EPSG:6879","+proj=lcc +lat_1=45.5 +lat_2=44.25 +lat_0=43.83333333333334 +lon_0=-90 +x_0=600000 +y_0=0 +ellps=GRS80 +units=m +no_defs "],"EPSG:6880":["EPSG:6880","+proj=lcc +lat_1=43 +lat_2=40 +lat_0=39.83333333333334 +lon_0=-100 +x_0=500000.00001016 +y_0=0 +ellps=GRS80 +units=us-ft +no_defs "],"EPSG:6884":["EPSG:6884","+proj=lcc +lat_1=46 +lat_2=44.33333333333334 +lat_0=43.66666666666666 +lon_0=-120.5 +x_0=2500000 +y_0=0 +ellps=GRS80 +units=m +no_defs "],"EPSG:6885":["EPSG:6885","+proj=lcc +lat_1=46 +lat_2=44.33333333333334 +lat_0=43.66666666666666 +lon_0=-120.5 +x_0=2500000.0001424 +y_0=0 +ellps=GRS80 +units=ft +no_defs "],"EPSG:6886":["EPSG:6886","+proj=lcc +lat_1=44 +lat_2=42.33333333333334 +lat_0=41.66666666666666 +lon_0=-120.5 +x_0=1500000 +y_0=0 +ellps=GRS80 +units=m +no_defs "],"EPSG:6887":["EPSG:6887","+proj=lcc +lat_1=44 +lat_2=42.33333333333334 +lat_0=41.66666666666666 +lon_0=-120.5 +x_0=1500000.0001464 +y_0=0 +ellps=GRS80 +units=ft +no_defs "],"EPSG:6915":["EPSG:6915","+proj=utm +zone=40 +ellps=clrk80 +towgs84=-43.685,-179.785,-267.721,0,0,0,0 +units=m +no_defs "],"EPSG:6922":["EPSG:6922","+proj=lcc +lat_1=39.5 +lat_2=37.5 +lat_0=36 +lon_0=-98.25 +x_0=400000 +y_0=0 +datum=NAD83 +units=m +no_defs "],"EPSG:6923":["EPSG:6923","+proj=lcc +lat_1=39.5 +lat_2=37.5 +lat_0=36 +lon_0=-98.25 +x_0=399999.99998984 +y_0=0 +datum=NAD83 +units=us-ft +no_defs "],"EPSG:6924":["EPSG:6924","+proj=lcc +lat_1=39.5 +lat_2=37.5 +lat_0=36 +lon_0=-98.25 +x_0=400000 +y_0=0 +ellps=GRS80 +units=m +no_defs "],"EPSG:6925":["EPSG:6925","+proj=lcc +lat_1=39.5 +lat_2=37.5 +lat_0=36 +lon_0=-98.25 +x_0=399999.99998984 +y_0=0 +ellps=GRS80 +units=us-ft +no_defs "],"EPSG:6931":["EPSG:6931","+proj=laea +lat_0=90 +lon_0=0 +x_0=0 +y_0=0 +datum=WGS84 +units=m +no_defs "],"EPSG:6932":["EPSG:6932","+proj=laea +lat_0=-90 +lon_0=0 +x_0=0 +y_0=0 +datum=WGS84 +units=m +no_defs "],"EPSG:6933":["EPSG:6933","+proj=cea +lon_0=0 +lat_ts=30 +x_0=0 +y_0=0 +datum=WGS84 +units=m +no_defs "],"EPSG:6956":["EPSG:6956","+proj=tmerc +lat_0=0 +lon_0=102 +k=0.9999 +x_0=0 +y_0=500000 +ellps=WGS84 +towgs84=-191.90441429,-39.30318279,-111.45032835,0.00928836,-0.01975479,0.00427372,0.252906278 +units=m +no_defs "],"EPSG:6957":["EPSG:6957","+proj=tmerc +lat_0=0 +lon_0=105 +k=0.9999 +x_0=0 +y_0=500000 +ellps=WGS84 +towgs84=-191.90441429,-39.30318279,-111.45032835,0.00928836,-0.01975479,0.00427372,0.252906278 +units=m +no_defs "],"EPSG:32604":["EPSG:32604","+proj=utm +zone=4 +datum=WGS84 +units=m +no_defs "],"EPSG:6958":["EPSG:6958","+proj=tmerc +lat_0=0 +lon_0=108 +k=0.9999 +x_0=0 +y_0=500000 +ellps=WGS84 +towgs84=-191.90441429,-39.30318279,-111.45032835,0.00928836,-0.01975479,0.00427372,0.252906278 +units=m +no_defs "],"EPSG:6959":["EPSG:6959","+proj=tmerc +lat_0=0 +lon_0=107.75 +k=0.9999 +x_0=0 +y_0=500000 +ellps=WGS84 +towgs84=-191.90441429,-39.30318279,-111.45032835,0.00928836,-0.01975479,0.00427372,0.252906278 +units=m +no_defs "],"EPSG:6962":["EPSG:6962","+proj=lcc +lat_1=39 +lat_2=43 +lat_0=41 +lon_0=20 +x_0=0 +y_0=0 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs "],"EPSG:6984":["EPSG:6984","+proj=tmerc +lat_0=31.73439361111111 +lon_0=35.20451694444445 +k=1.0000067 +x_0=219529.584 +y_0=626907.39 +ellps=GRS80 +units=m +no_defs "],"EPSG:6991":["EPSG:6991","+proj=tmerc +lat_0=31.73439361111111 +lon_0=35.20451694444445 +k=1.0000067 +x_0=219529.584 +y_0=626907.39 +ellps=GRS80 +units=m +no_defs "],"EPSG:6996":["EPSG:6996","+proj=tmerc +lat_0=37.75 +lon_0=-122.45 +k=1.000007 +x_0=48000 +y_0=24000 +ellps=GRS80 +units=m +no_defs "],"EPSG:6997":["EPSG:6997","+proj=tmerc +lat_0=37.75 +lon_0=-122.45 +k=1.000007 +x_0=48000 +y_0=24000 +ellps=GRS80 +units=us-ft +no_defs "],"EPSG:7005":["EPSG:7005","+proj=utm +zone=37 +ellps=clrk80 +towgs84=-242.2,-144.9,370.3,0,0,0,0 +units=m +no_defs "],"EPSG:7006":["EPSG:7006","+proj=utm +zone=38 +ellps=clrk80 +towgs84=-242.2,-144.9,370.3,0,0,0,0 +units=m +no_defs "],"EPSG:7007":["EPSG:7007","+proj=utm +zone=39 +ellps=clrk80 +towgs84=-242.2,-144.9,370.3,0,0,0,0 +units=m +no_defs "],"EPSG:7057":["EPSG:7057","+proj=lcc +lat_1=43.2 +lat_0=43.2 +lon_0=-95.25 +k_0=1.000052 +x_0=3505207.010414021 +y_0=2926085.852171705 +ellps=GRS80 +units=us-ft +no_defs "],"EPSG:7058":["EPSG:7058","+proj=lcc +lat_1=43.16666666666666 +lat_0=43.16666666666666 +lon_0=-92.75 +k_0=1.000043 +x_0=3810007.62001524 +y_0=2987045.974091948 +ellps=GRS80 +units=us-ft +no_defs "],"EPSG:7059":["EPSG:7059","+proj=tmerc +lat_0=40.25 +lon_0=-91.2 +k=1.000035 +x_0=4114808.229616459 +y_0=2529845.05969012 +ellps=GRS80 +units=us-ft +no_defs "],"EPSG:7060":["EPSG:7060","+proj=lcc +lat_1=42.53333333333333 +lat_0=42.53333333333333 +lon_0=-94.83333333333333 +k_0=1.000045 +x_0=4419608.839217679 +y_0=2621285.242570485 +ellps=GRS80 +units=us-ft +no_defs "],"EPSG:7061":["EPSG:7061","+proj=lcc +lat_1=42.65 +lat_0=42.65 +lon_0=-92.25 +k_0=1.000032 +x_0=4724409.448818898 +y_0=2712725.425450851 +ellps=GRS80 +units=us-ft +no_defs "],"EPSG:7062":["EPSG:7062","+proj=tmerc +lat_0=40.25 +lon_0=-95.73333333333333 +k=1.000039 +x_0=5029210.058420117 +y_0=2011684.023368047 +ellps=GRS80 +units=us-ft +no_defs "],"EPSG:7063":["EPSG:7063","+proj=tmerc +lat_0=40.25 +lon_0=-94.63333333333334 +k=1.000045 +x_0=5334010.668021336 +y_0=2072644.145288291 +ellps=GRS80 +units=us-ft +no_defs "],"EPSG:7064":["EPSG:7064","+proj=tmerc +lat_0=40.25 +lon_0=-93.71666666666667 +k=1.000033 +x_0=5638811.277622555 +y_0=2133604.267208535 +ellps=GRS80 +units=us-ft +no_defs "],"EPSG:7065":["EPSG:7065","+proj=tmerc +lat_0=40.25 +lon_0=-92.81666666666666 +k=1.000027 +x_0=5943611.887223775 +y_0=2194564.389128779 +ellps=GRS80 +units=us-ft +no_defs "],"EPSG:7066":["EPSG:7066","+proj=lcc +lat_1=41.83333333333334 +lat_0=41.83333333333334 +lon_0=-91.66666666666667 +k_0=1.00002 +x_0=6248412.496824994 +y_0=2438404.876809754 +ellps=GRS80 +units=us-ft +no_defs "],"EPSG:7067":["EPSG:7067","+proj=tmerc +lat_0=40.25 +lon_0=-90.53333333333333 +k=1.000027 +x_0=6553213.106426213 +y_0=2316484.632969266 +ellps=GRS80 +units=us-ft +no_defs "],"EPSG:7068":["EPSG:7068","+proj=lcc +lat_1=40.91666666666666 +lat_0=40.91666666666666 +lon_0=-93.75 +k_0=1.000037 +x_0=6858013.716027432 +y_0=1889763.779527559 +ellps=GRS80 +units=us-ft +no_defs "],"EPSG:7069":["EPSG:7069","+proj=tmerc +lat_0=40.25 +lon_0=-91.91666666666667 +k=1.00002 +x_0=7162814.325628651 +y_0=1950723.901447803 +ellps=GRS80 +units=us-ft +no_defs "],"EPSG:7070":["EPSG:7070","+proj=tmerc +lat_0=40.25 +lon_0=-91.25 +k=1.000018 +x_0=7467614.93522987 +y_0=1889763.779527559 +ellps=GRS80 +units=us-ft +no_defs "],"EPSG:7074":["EPSG:7074","+proj=utm +zone=37 +south +ellps=GRS80 +units=m +no_defs "],"EPSG:7075":["EPSG:7075","+proj=utm +zone=38 +south +ellps=GRS80 +units=m +no_defs "],"EPSG:7076":["EPSG:7076","+proj=utm +zone=39 +south +ellps=GRS80 +units=m +no_defs "],"EPSG:7077":["EPSG:7077","+proj=utm +zone=40 +south +ellps=GRS80 +units=m +no_defs "],"EPSG:7078":["EPSG:7078","+proj=utm +zone=41 +south +ellps=GRS80 +units=m +no_defs "],"EPSG:7079":["EPSG:7079","+proj=utm +zone=42 +south +ellps=GRS80 +units=m +no_defs "],"EPSG:7080":["EPSG:7080","+proj=utm +zone=43 +south +ellps=GRS80 +units=m +no_defs "],"EPSG:7081":["EPSG:7081","+proj=utm +zone=44 +south +ellps=GRS80 +units=m +no_defs "],"EPSG:7109":["EPSG:7109","+proj=tmerc +lat_0=48.5 +lon_0=-112.5 +k=1.00016 +x_0=150000 +y_0=0 +ellps=GRS80 +units=m +no_defs "],"EPSG:7110":["EPSG:7110","+proj=tmerc +lat_0=48 +lon_0=-112.5 +k=1.00019 +x_0=100000 +y_0=0 +ellps=GRS80 +units=m +no_defs "],"EPSG:7111":["EPSG:7111","+proj=lcc +lat_1=48.5 +lat_0=48.5 +lon_0=-111 +k_0=1.000145 +x_0=150000 +y_0=200000 +ellps=GRS80 +units=m +no_defs "],"EPSG:7112":["EPSG:7112","+proj=lcc +lat_1=48.5 +lat_0=48.5 +lon_0=-108.5 +k_0=1.00012 +x_0=200000 +y_0=150000 +ellps=GRS80 +units=m +no_defs "],"EPSG:7113":["EPSG:7113","+proj=lcc +lat_1=48.33333333333334 +lat_0=48.33333333333334 +lon_0=-105.5 +k_0=1.00012 +x_0=200000 +y_0=100000 +ellps=GRS80 +units=m +no_defs "],"EPSG:7114":["EPSG:7114","+proj=lcc +lat_1=48.33333333333334 +lat_0=48.33333333333334 +lon_0=-105.5 +k_0=1.00009 +x_0=100000 +y_0=50000 +ellps=GRS80 +units=m +no_defs "],"EPSG:7115":["EPSG:7115","+proj=tmerc +lat_0=44.75 +lon_0=-107.75 +k=1.000148 +x_0=200000 +y_0=0 +ellps=GRS80 +units=m +no_defs "],"EPSG:7116":["EPSG:7116","+proj=lcc +lat_1=46.25 +lat_0=46.25 +lon_0=-111.25 +k_0=1.000185 +x_0=100000 +y_0=100000 +ellps=GRS80 +units=m +no_defs "],"EPSG:7117":["EPSG:7117","+proj=lcc +lat_1=45.78333333333333 +lat_0=45.78333333333333 +lon_0=-108.4166666666667 +k_0=1.0001515 +x_0=200000 +y_0=50000 +ellps=GRS80 +units=m +no_defs "],"EPSG:7118":["EPSG:7118","+proj=tmerc +lat_0=42.66666666666666 +lon_0=-108.3333333333333 +k=1.00024 +x_0=100000 +y_0=0 +ellps=GRS80 +units=m +no_defs "],"EPSG:7119":["EPSG:7119","+proj=tmerc +lat_0=48.5 +lon_0=-112.5 +k=1.00016 +x_0=150000.00001464 +y_0=0 +ellps=GRS80 +units=ft +no_defs "],"EPSG:7120":["EPSG:7120","+proj=tmerc +lat_0=48 +lon_0=-112.5 +k=1.00019 +x_0=99999.99999960001 +y_0=0 +ellps=GRS80 +units=ft +no_defs "],"EPSG:7121":["EPSG:7121","+proj=lcc +lat_1=48.5 +lat_0=48.5 +lon_0=-111 +k_0=1.000145 +x_0=150000.00001464 +y_0=199999.9999992 +ellps=GRS80 +units=ft +no_defs "],"EPSG:7122":["EPSG:7122","+proj=lcc +lat_1=48.5 +lat_0=48.5 +lon_0=-108.5 +k_0=1.00012 +x_0=199999.9999992 +y_0=150000.00001464 +ellps=GRS80 +units=ft +no_defs "],"EPSG:4980":["EPSG:4980","+proj=geocent +ellps=WGS84 +units=m +no_defs "],"EPSG:7123":["EPSG:7123","+proj=lcc +lat_1=48.33333333333334 +lat_0=48.33333333333334 +lon_0=-105.5 +k_0=1.00012 +x_0=199999.9999992 +y_0=99999.99999960001 +ellps=GRS80 +units=ft +no_defs "],"EPSG:7124":["EPSG:7124","+proj=lcc +lat_1=48.33333333333334 +lat_0=48.33333333333334 +lon_0=-105.5 +k_0=1.00009 +x_0=99999.99999960001 +y_0=49999.99971024 +ellps=GRS80 +units=ft +no_defs "],"EPSG:7125":["EPSG:7125","+proj=tmerc +lat_0=44.75 +lon_0=-107.75 +k=1.000148 +x_0=199999.9999992 +y_0=0 +ellps=GRS80 +units=ft +no_defs "],"EPSG:7126":["EPSG:7126","+proj=lcc +lat_1=46.25 +lat_0=46.25 +lon_0=-111.25 +k_0=1.000185 +x_0=99999.99999960001 +y_0=99999.99999960001 +ellps=GRS80 +units=ft +no_defs "],"EPSG:7127":["EPSG:7127","+proj=lcc +lat_1=45.78333333333333 +lat_0=45.78333333333333 +lon_0=-108.4166666666667 +k_0=1.0001515 +x_0=199999.9999992 +y_0=50000.00001504 +ellps=GRS80 +units=ft +no_defs "],"EPSG:7128":["EPSG:7128","+proj=tmerc +lat_0=42.66666666666666 +lon_0=-108.3333333333333 +k=1.00024 +x_0=99999.99998983997 +y_0=0 +ellps=GRS80 +units=us-ft +no_defs "],"EPSG:7131":["EPSG:7131","+proj=tmerc +lat_0=37.75 +lon_0=-122.45 +k=1.000007 +x_0=48000 +y_0=24000 +ellps=GRS80 +units=m +no_defs "],"EPSG:7132":["EPSG:7132","+proj=tmerc +lat_0=37.75 +lon_0=-122.45 +k=1.000007 +x_0=48000 +y_0=24000 +ellps=GRS80 +units=us-ft +no_defs "],"EPSG:7142":["EPSG:7142","+proj=tmerc +lat_0=31.73409694444445 +lon_0=35.21208055555556 +k=1 +x_0=170251.555 +y_0=126867.909 +a=6378300.789 +b=6356566.435 +towgs84=-275.7224,94.7824,340.8944,-8.001,-4.42,-11.821,1 +units=m +no_defs "],"EPSG:7257":["EPSG:7257","+proj=tmerc +lat_0=40.55 +lon_0=-84.95 +k=1.000034 +x_0=240000 +y_0=36000 +ellps=GRS80 +units=m +no_defs "],"EPSG:7258":["EPSG:7258","+proj=tmerc +lat_0=40.55 +lon_0=-84.95 +k=1.000034 +x_0=240000 +y_0=36000 +ellps=GRS80 +units=us-ft +no_defs "],"EPSG:7259":["EPSG:7259","+proj=tmerc +lat_0=40.9 +lon_0=-85.05 +k=1.000031 +x_0=240000 +y_0=36000 +ellps=GRS80 +units=m +no_defs "],"EPSG:7260":["EPSG:7260","+proj=tmerc +lat_0=40.9 +lon_0=-85.05 +k=1.000031 +x_0=240000 +y_0=36000 +ellps=GRS80 +units=us-ft +no_defs "],"EPSG:7261":["EPSG:7261","+proj=tmerc +lat_0=39 +lon_0=-85.84999999999999 +k=1.000026 +x_0=240000 +y_0=36000 +ellps=GRS80 +units=m +no_defs "],"EPSG:7262":["EPSG:7262","+proj=tmerc +lat_0=39 +lon_0=-85.84999999999999 +k=1.000026 +x_0=240000 +y_0=36000 +ellps=GRS80 +units=us-ft +no_defs "],"EPSG:7263":["EPSG:7263","+proj=tmerc +lat_0=40.45 +lon_0=-87.3 +k=1.000029 +x_0=240000 +y_0=36000 +ellps=GRS80 +units=m +no_defs "],"EPSG:7264":["EPSG:7264","+proj=tmerc +lat_0=40.45 +lon_0=-87.3 +k=1.000029 +x_0=240000 +y_0=36000 +ellps=GRS80 +units=us-ft +no_defs "],"EPSG:7265":["EPSG:7265","+proj=tmerc +lat_0=40.05 +lon_0=-85.40000000000001 +k=1.000038 +x_0=240000 +y_0=36000 +ellps=GRS80 +units=m +no_defs "],"EPSG:22832":["EPSG:22832","+proj=utm +zone=32 +a=6378249.2 +b=6356515 +units=m +no_defs "],"EPSG:7266":["EPSG:7266","+proj=tmerc +lat_0=40.05 +lon_0=-85.40000000000001 +k=1.000038 +x_0=240000 +y_0=36000 +ellps=GRS80 +units=us-ft +no_defs "],"EPSG:7267":["EPSG:7267","+proj=tmerc +lat_0=39.6 +lon_0=-86.5 +k=1.000036 +x_0=240000 +y_0=36000 +ellps=GRS80 +units=m +no_defs "],"EPSG:7268":["EPSG:7268","+proj=tmerc +lat_0=39.6 +lon_0=-86.5 +k=1.000036 +x_0=240000 +y_0=36000 +ellps=GRS80 +units=us-ft +no_defs "],"EPSG:7269":["EPSG:7269","+proj=tmerc +lat_0=39 +lon_0=-86.3 +k=1.00003 +x_0=240000 +y_0=36000 +ellps=GRS80 +units=m +no_defs "],"EPSG:7270":["EPSG:7270","+proj=tmerc +lat_0=39 +lon_0=-86.3 +k=1.00003 +x_0=240000 +y_0=36000 +ellps=GRS80 +units=us-ft +no_defs "],"EPSG:7271":["EPSG:7271","+proj=tmerc +lat_0=40.4 +lon_0=-86.65000000000001 +k=1.000026 +x_0=240000 +y_0=36000 +ellps=GRS80 +units=m +no_defs "],"EPSG:7272":["EPSG:7272","+proj=tmerc +lat_0=40.4 +lon_0=-86.65000000000001 +k=1.000026 +x_0=240000 +y_0=36000 +ellps=GRS80 +units=us-ft +no_defs "],"EPSG:7273":["EPSG:7273","+proj=tmerc +lat_0=40.55 +lon_0=-86.40000000000001 +k=1.000028 +x_0=240000 +y_0=36000 +ellps=GRS80 +units=m +no_defs "],"EPSG:7274":["EPSG:7274","+proj=tmerc +lat_0=40.55 +lon_0=-86.40000000000001 +k=1.000028 +x_0=240000 +y_0=36000 +ellps=GRS80 +units=us-ft +no_defs "],"EPSG:4982":["EPSG:4982","+proj=geocent +ellps=WGS84 +units=m +no_defs "],"EPSG:7275":["EPSG:7275","+proj=tmerc +lat_0=38.15 +lon_0=-85.59999999999999 +k=1.000021 +x_0=240000 +y_0=36000 +ellps=GRS80 +units=m +no_defs "],"EPSG:7276":["EPSG:7276","+proj=tmerc +lat_0=38.15 +lon_0=-85.59999999999999 +k=1.000021 +x_0=240000 +y_0=36000 +ellps=GRS80 +units=us-ft +no_defs "],"EPSG:7277":["EPSG:7277","+proj=tmerc +lat_0=39.15 +lon_0=-87.15000000000001 +k=1.000024 +x_0=240000 +y_0=36000 +ellps=GRS80 +units=m +no_defs "],"EPSG:7278":["EPSG:7278","+proj=tmerc +lat_0=39.15 +lon_0=-87.15000000000001 +k=1.000024 +x_0=240000 +y_0=36000 +ellps=GRS80 +units=us-ft +no_defs "],"EPSG:7279":["EPSG:7279","+proj=tmerc +lat_0=40.15 +lon_0=-86.59999999999999 +k=1.000032 +x_0=240000 +y_0=36000 +ellps=GRS80 +units=m +no_defs "],"EPSG:7280":["EPSG:7280","+proj=tmerc +lat_0=40.15 +lon_0=-86.59999999999999 +k=1.000032 +x_0=240000 +y_0=36000 +ellps=GRS80 +units=us-ft +no_defs "],"EPSG:7281":["EPSG:7281","+proj=tmerc +lat_0=38.1 +lon_0=-86.5 +k=1.000025 +x_0=240000 +y_0=36000 +ellps=GRS80 +units=m +no_defs "],"EPSG:7282":["EPSG:7282","+proj=tmerc +lat_0=38.1 +lon_0=-86.5 +k=1.000025 +x_0=240000 +y_0=36000 +ellps=GRS80 +units=us-ft +no_defs "],"EPSG:7283":["EPSG:7283","+proj=tmerc +lat_0=38.45 +lon_0=-87.09999999999999 +k=1.000018 +x_0=240000 +y_0=36000 +ellps=GRS80 +units=m +no_defs "],"EPSG:4984":["EPSG:4984","+proj=geocent +ellps=WGS72 +units=m +no_defs "],"EPSG:7284":["EPSG:7284","+proj=tmerc +lat_0=38.45 +lon_0=-87.09999999999999 +k=1.000018 +x_0=240000 +y_0=36000 +ellps=GRS80 +units=us-ft +no_defs "],"EPSG:7285":["EPSG:7285","+proj=tmerc +lat_0=38.65 +lon_0=-84.90000000000001 +k=1.000029 +x_0=240000 +y_0=36000 +ellps=GRS80 +units=m +no_defs "],"EPSG:7286":["EPSG:7286","+proj=tmerc +lat_0=38.65 +lon_0=-84.90000000000001 +k=1.000029 +x_0=240000 +y_0=36000 +ellps=GRS80 +units=us-ft +no_defs "],"EPSG:7287":["EPSG:7287","+proj=tmerc +lat_0=39.1 +lon_0=-85.65000000000001 +k=1.000036 +x_0=240000 +y_0=36000 +ellps=GRS80 +units=m +no_defs "],"EPSG:7288":["EPSG:7288","+proj=tmerc +lat_0=39.1 +lon_0=-85.65000000000001 +k=1.000036 +x_0=240000 +y_0=36000 +ellps=GRS80 +units=us-ft +no_defs "],"EPSG:7289":["EPSG:7289","+proj=tmerc +lat_0=41.25 +lon_0=-84.95 +k=1.000036 +x_0=240000 +y_0=36000 +ellps=GRS80 +units=m +no_defs "],"EPSG:7290":["EPSG:7290","+proj=tmerc +lat_0=41.25 +lon_0=-84.95 +k=1.000036 +x_0=240000 +y_0=36000 +ellps=GRS80 +units=us-ft +no_defs "],"EPSG:7291":["EPSG:7291","+proj=tmerc +lat_0=38.2 +lon_0=-86.95 +k=1.00002 +x_0=240000 +y_0=36000 +ellps=GRS80 +units=m +no_defs "],"EPSG:7292":["EPSG:7292","+proj=tmerc +lat_0=38.2 +lon_0=-86.95 +k=1.00002 +x_0=240000 +y_0=36000 +ellps=GRS80 +units=us-ft +no_defs "],"EPSG:7293":["EPSG:7293","+proj=tmerc +lat_0=40.65 +lon_0=-85.84999999999999 +k=1.000033 +x_0=240000 +y_0=36000 +ellps=GRS80 +units=m +no_defs "],"EPSG:7294":["EPSG:7294","+proj=tmerc +lat_0=40.65 +lon_0=-85.84999999999999 +k=1.000033 +x_0=240000 +y_0=36000 +ellps=GRS80 +units=us-ft +no_defs "],"EPSG:7295":["EPSG:7295","+proj=tmerc +lat_0=39.25 +lon_0=-85.05 +k=1.000038 +x_0=240000 +y_0=36000 +ellps=GRS80 +units=m +no_defs "],"EPSG:7296":["EPSG:7296","+proj=tmerc +lat_0=39.25 +lon_0=-85.05 +k=1.000038 +x_0=240000 +y_0=36000 +ellps=GRS80 +units=us-ft +no_defs "],"EPSG:7297":["EPSG:7297","+proj=tmerc +lat_0=39.95 +lon_0=-87.3 +k=1.000025 +x_0=240000 +y_0=36000 +ellps=GRS80 +units=m +no_defs "],"EPSG:7298":["EPSG:7298","+proj=tmerc +lat_0=39.95 +lon_0=-87.3 +k=1.000025 +x_0=240000 +y_0=36000 +ellps=GRS80 +units=us-ft +no_defs "],"EPSG:7299":["EPSG:7299","+proj=tmerc +lat_0=40.9 +lon_0=-86.3 +k=1.000031 +x_0=240000 +y_0=36000 +ellps=GRS80 +units=m +no_defs "],"EPSG:7300":["EPSG:7300","+proj=tmerc +lat_0=40.9 +lon_0=-86.3 +k=1.000031 +x_0=240000 +y_0=36000 +ellps=GRS80 +units=us-ft +no_defs "],"EPSG:7301":["EPSG:7301","+proj=tmerc +lat_0=38.15 +lon_0=-87.65000000000001 +k=1.000013 +x_0=240000 +y_0=36000 +ellps=GRS80 +units=m +no_defs "],"EPSG:4988":["EPSG:4988","+proj=geocent +ellps=GRS80 +units=m +no_defs "],"EPSG:7302":["EPSG:7302","+proj=tmerc +lat_0=38.15 +lon_0=-87.65000000000001 +k=1.000013 +x_0=240000 +y_0=36000 +ellps=GRS80 +units=us-ft +no_defs "],"EPSG:7303":["EPSG:7303","+proj=tmerc +lat_0=40.35 +lon_0=-85.7 +k=1.000034 +x_0=240000 +y_0=36000 +ellps=GRS80 +units=m +no_defs "],"EPSG:7304":["EPSG:7304","+proj=tmerc +lat_0=40.35 +lon_0=-85.7 +k=1.000034 +x_0=240000 +y_0=36000 +ellps=GRS80 +units=us-ft +no_defs "],"EPSG:7305":["EPSG:7305","+proj=tmerc +lat_0=39.9 +lon_0=-86 +k=1.000034 +x_0=240000 +y_0=36000 +ellps=GRS80 +units=m +no_defs "],"EPSG:7306":["EPSG:7306","+proj=tmerc +lat_0=39.9 +lon_0=-86 +k=1.000034 +x_0=240000 +y_0=36000 +ellps=GRS80 +units=us-ft +no_defs "],"EPSG:7307":["EPSG:7307","+proj=tmerc +lat_0=39.65 +lon_0=-85.8 +k=1.000036 +x_0=240000 +y_0=36000 +ellps=GRS80 +units=m +no_defs "],"EPSG:7308":["EPSG:7308","+proj=tmerc +lat_0=39.65 +lon_0=-85.8 +k=1.000036 +x_0=240000 +y_0=36000 +ellps=GRS80 +units=us-ft +no_defs "],"EPSG:7309":["EPSG:7309","+proj=tmerc +lat_0=37.95 +lon_0=-86.15000000000001 +k=1.000027 +x_0=240000 +y_0=36000 +ellps=GRS80 +units=m +no_defs "],"EPSG:7310":["EPSG:7310","+proj=tmerc +lat_0=37.95 +lon_0=-86.15000000000001 +k=1.000027 +x_0=240000 +y_0=36000 +ellps=GRS80 +units=us-ft +no_defs "],"EPSG:4990":["EPSG:4990","+proj=geocent +ellps=krass +units=m +no_defs "],"EPSG:7311":["EPSG:7311","+proj=tmerc +lat_0=39.75 +lon_0=-85.45 +k=1.000043 +x_0=240000 +y_0=36000 +ellps=GRS80 +units=m +no_defs "],"EPSG:7312":["EPSG:7312","+proj=tmerc +lat_0=39.75 +lon_0=-85.45 +k=1.000043 +x_0=240000 +y_0=36000 +ellps=GRS80 +units=us-ft +no_defs "],"EPSG:7313":["EPSG:7313","+proj=tmerc +lat_0=40.35 +lon_0=-86.15000000000001 +k=1.000031 +x_0=240000 +y_0=36000 +ellps=GRS80 +units=m +no_defs "],"EPSG:7314":["EPSG:7314","+proj=tmerc +lat_0=40.35 +lon_0=-86.15000000000001 +k=1.000031 +x_0=240000 +y_0=36000 +ellps=GRS80 +units=us-ft +no_defs "],"EPSG:7315":["EPSG:7315","+proj=tmerc +lat_0=40.65 +lon_0=-85.5 +k=1.000034 +x_0=240000 +y_0=36000 +ellps=GRS80 +units=m +no_defs "],"EPSG:7316":["EPSG:7316","+proj=tmerc +lat_0=40.65 +lon_0=-85.5 +k=1.000034 +x_0=240000 +y_0=36000 +ellps=GRS80 +units=us-ft +no_defs "],"EPSG:7317":["EPSG:7317","+proj=tmerc +lat_0=38.7 +lon_0=-85.95 +k=1.000022 +x_0=240000 +y_0=36000 +ellps=GRS80 +units=m +no_defs "],"EPSG:7318":["EPSG:7318","+proj=tmerc +lat_0=38.7 +lon_0=-85.95 +k=1.000022 +x_0=240000 +y_0=36000 +ellps=GRS80 +units=us-ft +no_defs "],"EPSG:7319":["EPSG:7319","+proj=tmerc +lat_0=40.7 +lon_0=-87.09999999999999 +k=1.000027 +x_0=240000 +y_0=36000 +ellps=GRS80 +units=m +no_defs "],"EPSG:32605":["EPSG:32605","+proj=utm +zone=5 +datum=WGS84 +units=m +no_defs "],"EPSG:7320":["EPSG:7320","+proj=tmerc +lat_0=40.7 +lon_0=-87.09999999999999 +k=1.000027 +x_0=240000 +y_0=36000 +ellps=GRS80 +units=us-ft +no_defs "],"EPSG:7321":["EPSG:7321","+proj=tmerc +lat_0=40.3 +lon_0=-85 +k=1.000038 +x_0=240000 +y_0=36000 +ellps=GRS80 +units=m +no_defs "],"EPSG:7322":["EPSG:7322","+proj=tmerc +lat_0=40.3 +lon_0=-85 +k=1.000038 +x_0=240000 +y_0=36000 +ellps=GRS80 +units=us-ft +no_defs "],"EPSG:7323":["EPSG:7323","+proj=tmerc +lat_0=38.55 +lon_0=-85.34999999999999 +k=1.000028 +x_0=240000 +y_0=36000 +ellps=GRS80 +units=m +no_defs "],"EPSG:7324":["EPSG:7324","+proj=tmerc +lat_0=38.55 +lon_0=-85.34999999999999 +k=1.000028 +x_0=240000 +y_0=36000 +ellps=GRS80 +units=us-ft +no_defs "],"EPSG:7325":["EPSG:7325","+proj=tmerc +lat_0=38.8 +lon_0=-85.8 +k=1.000025 +x_0=240000 +y_0=36000 +ellps=GRS80 +units=m +no_defs "],"EPSG:7326":["EPSG:7326","+proj=tmerc +lat_0=38.8 +lon_0=-85.8 +k=1.000025 +x_0=240000 +y_0=36000 +ellps=GRS80 +units=us-ft +no_defs "],"EPSG:7327":["EPSG:7327","+proj=tmerc +lat_0=39.3 +lon_0=-86.15000000000001 +k=1.000031 +x_0=240000 +y_0=36000 +ellps=GRS80 +units=m +no_defs "],"EPSG:7328":["EPSG:7328","+proj=tmerc +lat_0=39.3 +lon_0=-86.15000000000001 +k=1.000031 +x_0=240000 +y_0=36000 +ellps=GRS80 +units=us-ft +no_defs "],"EPSG:4992":["EPSG:4992","+proj=geocent +ellps=krass +units=m +no_defs "],"EPSG:7329":["EPSG:7329","+proj=tmerc +lat_0=38.4 +lon_0=-87.45 +k=1.000015 +x_0=240000 +y_0=36000 +ellps=GRS80 +units=m +no_defs "],"EPSG:7330":["EPSG:7330","+proj=tmerc +lat_0=38.4 +lon_0=-87.45 +k=1.000015 +x_0=240000 +y_0=36000 +ellps=GRS80 +units=us-ft +no_defs "],"EPSG:7331":["EPSG:7331","+proj=tmerc +lat_0=41.25 +lon_0=-85.45 +k=1.000037 +x_0=240000 +y_0=36000 +ellps=GRS80 +units=m +no_defs "],"EPSG:7332":["EPSG:7332","+proj=tmerc +lat_0=41.25 +lon_0=-85.45 +k=1.000037 +x_0=240000 +y_0=36000 +ellps=GRS80 +units=us-ft +no_defs "],"EPSG:7333":["EPSG:7333","+proj=tmerc +lat_0=40.7 +lon_0=-87.40000000000001 +k=1.000026 +x_0=240000 +y_0=36000 +ellps=GRS80 +units=m +no_defs "],"EPSG:7334":["EPSG:7334","+proj=tmerc +lat_0=40.7 +lon_0=-87.40000000000001 +k=1.000026 +x_0=240000 +y_0=36000 +ellps=GRS80 +units=us-ft +no_defs "],"EPSG:7335":["EPSG:7335","+proj=tmerc +lat_0=40.9 +lon_0=-86.75 +k=1.000027 +x_0=240000 +y_0=36000 +ellps=GRS80 +units=m +no_defs "],"EPSG:7336":["EPSG:7336","+proj=tmerc +lat_0=40.9 +lon_0=-86.75 +k=1.000027 +x_0=240000 +y_0=36000 +ellps=GRS80 +units=us-ft +no_defs "],"EPSG:7337":["EPSG:7337","+proj=tmerc +lat_0=38.95 +lon_0=-86.5 +k=1.000028 +x_0=240000 +y_0=36000 +ellps=GRS80 +units=m +no_defs "],"EPSG:7338":["EPSG:7338","+proj=tmerc +lat_0=38.95 +lon_0=-86.5 +k=1.000028 +x_0=240000 +y_0=36000 +ellps=GRS80 +units=us-ft +no_defs "],"EPSG:7339":["EPSG:7339","+proj=tmerc +lat_0=39.45 +lon_0=-86.95 +k=1.000031 +x_0=240000 +y_0=36000 +ellps=GRS80 +units=m +no_defs "],"EPSG:7340":["EPSG:7340","+proj=tmerc +lat_0=39.45 +lon_0=-86.95 +k=1.000031 +x_0=240000 +y_0=36000 +ellps=GRS80 +units=us-ft +no_defs "],"EPSG:7341":["EPSG:7341","+proj=tmerc +lat_0=39.15 +lon_0=-86.90000000000001 +k=1.000026 +x_0=240000 +y_0=36000 +ellps=GRS80 +units=m +no_defs "],"EPSG:7342":["EPSG:7342","+proj=tmerc +lat_0=39.15 +lon_0=-86.90000000000001 +k=1.000026 +x_0=240000 +y_0=36000 +ellps=GRS80 +units=us-ft +no_defs "],"EPSG:7343":["EPSG:7343","+proj=tmerc +lat_0=39.6 +lon_0=-87.34999999999999 +k=1.000022 +x_0=240000 +y_0=36000 +ellps=GRS80 +units=m +no_defs "],"EPSG:7344":["EPSG:7344","+proj=tmerc +lat_0=39.6 +lon_0=-87.34999999999999 +k=1.000022 +x_0=240000 +y_0=36000 +ellps=GRS80 +units=us-ft +no_defs "],"EPSG:7345":["EPSG:7345","+proj=tmerc +lat_0=37.8 +lon_0=-86.7 +k=1.00002 +x_0=240000 +y_0=36000 +ellps=GRS80 +units=m +no_defs "],"EPSG:7346":["EPSG:7346","+proj=tmerc +lat_0=37.8 +lon_0=-86.7 +k=1.00002 +x_0=240000 +y_0=36000 +ellps=GRS80 +units=us-ft +no_defs "],"EPSG:4994":["EPSG:4994","+proj=geocent +ellps=clrk66 +units=m +no_defs "],"EPSG:7347":["EPSG:7347","+proj=tmerc +lat_0=37.85 +lon_0=-87.3 +k=1.000015 +x_0=240000 +y_0=36000 +ellps=GRS80 +units=m +no_defs "],"EPSG:7348":["EPSG:7348","+proj=tmerc +lat_0=37.85 +lon_0=-87.3 +k=1.000015 +x_0=240000 +y_0=36000 +ellps=GRS80 +units=us-ft +no_defs "],"EPSG:7349":["EPSG:7349","+proj=tmerc +lat_0=37.75 +lon_0=-87.95 +k=1.000013 +x_0=240000 +y_0=36000 +ellps=GRS80 +units=m +no_defs "],"EPSG:7350":["EPSG:7350","+proj=tmerc +lat_0=37.75 +lon_0=-87.95 +k=1.000013 +x_0=240000 +y_0=36000 +ellps=GRS80 +units=us-ft +no_defs "],"EPSG:7351":["EPSG:7351","+proj=tmerc +lat_0=39.7 +lon_0=-85.05 +k=1.000044 +x_0=240000 +y_0=36000 +ellps=GRS80 +units=m +no_defs "],"EPSG:7352":["EPSG:7352","+proj=tmerc +lat_0=39.7 +lon_0=-85.05 +k=1.000044 +x_0=240000 +y_0=36000 +ellps=GRS80 +units=us-ft +no_defs "],"EPSG:7353":["EPSG:7353","+proj=tmerc +lat_0=38.9 +lon_0=-85.3 +k=1.000038 +x_0=240000 +y_0=36000 +ellps=GRS80 +units=m +no_defs "],"EPSG:7354":["EPSG:7354","+proj=tmerc +lat_0=38.9 +lon_0=-85.3 +k=1.000038 +x_0=240000 +y_0=36000 +ellps=GRS80 +units=us-ft +no_defs "],"EPSG:7355":["EPSG:7355","+proj=tmerc +lat_0=39.3 +lon_0=-85.90000000000001 +k=1.00003 +x_0=240000 +y_0=36000 +ellps=GRS80 +units=m +no_defs "],"EPSG:26702":["EPSG:26702","+proj=utm +zone=2 +datum=NAD27 +units=m +no_defs "],"EPSG:7356":["EPSG:7356","+proj=tmerc +lat_0=39.3 +lon_0=-85.90000000000001 +k=1.00003 +x_0=240000 +y_0=36000 +ellps=GRS80 +units=us-ft +no_defs "],"EPSG:7357":["EPSG:7357","+proj=tmerc +lat_0=37.75 +lon_0=-87.05 +k=1.000014 +x_0=240000 +y_0=36000 +ellps=GRS80 +units=m +no_defs "],"EPSG:7358":["EPSG:7358","+proj=tmerc +lat_0=37.75 +lon_0=-87.05 +k=1.000014 +x_0=240000 +y_0=36000 +ellps=GRS80 +units=us-ft +no_defs "],"EPSG:7359":["EPSG:7359","+proj=tmerc +lat_0=41.5 +lon_0=-85 +k=1.000041 +x_0=240000 +y_0=36000 +ellps=GRS80 +units=m +no_defs "],"EPSG:7360":["EPSG:7360","+proj=tmerc +lat_0=41.5 +lon_0=-85 +k=1.000041 +x_0=240000 +y_0=36000 +ellps=GRS80 +units=us-ft +no_defs "],"EPSG:7361":["EPSG:7361","+proj=tmerc +lat_0=38.9 +lon_0=-87.5 +k=1.000017 +x_0=240000 +y_0=36000 +ellps=GRS80 +units=m +no_defs "],"EPSG:7362":["EPSG:7362","+proj=tmerc +lat_0=38.9 +lon_0=-87.5 +k=1.000017 +x_0=240000 +y_0=36000 +ellps=GRS80 +units=us-ft +no_defs "],"EPSG:7363":["EPSG:7363","+proj=tmerc +lat_0=40.2 +lon_0=-86.90000000000001 +k=1.000026 +x_0=240000 +y_0=36000 +ellps=GRS80 +units=m +no_defs "],"EPSG:7364":["EPSG:7364","+proj=tmerc +lat_0=40.2 +lon_0=-86.90000000000001 +k=1.000026 +x_0=240000 +y_0=36000 +ellps=GRS80 +units=us-ft +no_defs "],"EPSG:32607":["EPSG:32607","+proj=utm +zone=7 +datum=WGS84 +units=m +no_defs "],"EPSG:7365":["EPSG:7365","+proj=tmerc +lat_0=37.8 +lon_0=-87.55 +k=1.000015 +x_0=240000 +y_0=36000 +ellps=GRS80 +units=m +no_defs "],"EPSG:7366":["EPSG:7366","+proj=tmerc +lat_0=37.8 +lon_0=-87.55 +k=1.000015 +x_0=240000 +y_0=36000 +ellps=GRS80 +units=us-ft +no_defs "],"EPSG:7367":["EPSG:7367","+proj=tmerc +lat_0=39.25 +lon_0=-87.45 +k=1.00002 +x_0=240000 +y_0=36000 +ellps=GRS80 +units=m +no_defs "],"EPSG:7368":["EPSG:7368","+proj=tmerc +lat_0=39.25 +lon_0=-87.45 +k=1.00002 +x_0=240000 +y_0=36000 +ellps=GRS80 +units=us-ft +no_defs "],"EPSG:7369":["EPSG:7369","+proj=tmerc +lat_0=40.55 +lon_0=-85.25 +k=1.000034 +x_0=240000 +y_0=36000 +ellps=GRS80 +units=m +no_defs "],"EPSG:7370":["EPSG:7370","+proj=tmerc +lat_0=40.55 +lon_0=-85.25 +k=1.000034 +x_0=240000 +y_0=36000 +ellps=GRS80 +units=us-ft +no_defs "],"EPSG:7374":["EPSG:7374","+proj=utm +zone=39 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs "],"EPSG:7375":["EPSG:7375","+proj=utm +zone=40 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs "],"EPSG:7376":["EPSG:7376","+proj=utm +zone=41 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs "],"EPSG:7528":["EPSG:7528","+proj=tmerc +lat_0=43.36666666666667 +lon_0=-90 +k=1.0000365285 +x_0=147218.6942 +y_0=0.0037 +ellps=GRS80 +units=m +no_defs "],"EPSG:7529":["EPSG:7529","+proj=tmerc +lat_0=45.70611111111111 +lon_0=-90.62222222222222 +k=1.0000495683 +x_0=172821.9461 +y_0=0.0017 +ellps=GRS80 +units=m +no_defs "],"EPSG:7530":["EPSG:7530","+proj=tmerc +lat_0=45.13333333333333 +lon_0=-91.84999999999999 +k=1.0000486665 +x_0=93150 +y_0=0.0029 +ellps=GRS80 +units=m +no_defs "],"EPSG:7531":["EPSG:7531","+proj=lcc +lat_1=46.66964837722222 +lat_0=46.66964837722222 +lon_0=-91.15277777777779 +k_0=1.0000331195 +x_0=228600.4575 +y_0=148551.4837 +ellps=GRS80 +units=m +no_defs "],"EPSG:7532":["EPSG:7532","+proj=tmerc +lat_0=43 +lon_0=-88 +k=1.00002 +x_0=31600 +y_0=4600 +ellps=GRS80 +units=m +no_defs "],"EPSG:7533":["EPSG:7533","+proj=tmerc +lat_0=43.48138888888889 +lon_0=-91.79722222222222 +k=1.0000382778 +x_0=175260.3502 +y_0=0.0048 +ellps=GRS80 +units=m +no_defs "],"EPSG:7534":["EPSG:7534","+proj=lcc +lat_1=45.89871486583333 +lat_0=45.89871486583333 +lon_0=-92.45777777777778 +k_0=1.0000383841 +x_0=64008.1276 +y_0=59445.9043 +ellps=GRS80 +units=m +no_defs "],"EPSG:7535":["EPSG:7535","+proj=tmerc +lat_0=42.71944444444445 +lon_0=-88.5 +k=1.0000286569 +x_0=244754.8893 +y_0=0.0049 +ellps=GRS80 +units=m +no_defs "],"EPSG:7536":["EPSG:7536","+proj=lcc +lat_1=44.97785689861112 +lat_0=44.97785689861112 +lon_0=-91.29444444444444 +k_0=1.0000391127 +x_0=60045.72 +y_0=44091.4346 +ellps=GRS80 +units=m +no_defs "],"EPSG:7537":["EPSG:7537","+proj=tmerc +lat_0=43.6 +lon_0=-90.70833333333334 +k=1.0000463003 +x_0=199949.1989 +y_0=0.0086 +ellps=GRS80 +units=m +no_defs "],"EPSG:7538":["EPSG:7538","+proj=lcc +lat_1=43.46254664583333 +lat_0=43.46254664583333 +lon_0=-89.39444444444445 +k_0=1.00003498 +x_0=169164.3381 +y_0=111569.6134 +ellps=GRS80 +units=m +no_defs "],"EPSG:7539":["EPSG:7539","+proj=lcc +lat_1=43.200055605 +lat_0=43.200055605 +lon_0=-90.9388888888889 +k_0=1.0000349151 +x_0=113690.6274 +y_0=53703.1201 +ellps=GRS80 +units=m +no_defs "],"EPSG:7540":["EPSG:7540","+proj=lcc +lat_1=43.0695160375 +lat_0=43.0695160375 +lon_0=-89.42222222222223 +k_0=1.0000384786 +x_0=247193.2944 +y_0=146591.9896 +ellps=GRS80 +units=m +no_defs "],"EPSG:7541":["EPSG:7541","+proj=tmerc +lat_0=41.47222222222222 +lon_0=-88.77500000000001 +k=1.0000346418 +x_0=263347.7263 +y_0=0.0076 +ellps=GRS80 +units=m +no_defs "],"EPSG:7542":["EPSG:7542","+proj=tmerc +lat_0=44.4 +lon_0=-87.27222222222223 +k=1.0000187521 +x_0=158801.1176 +y_0=0.0023 +ellps=GRS80 +units=m +no_defs "],"EPSG:7543":["EPSG:7543","+proj=tmerc +lat_0=45.88333333333333 +lon_0=-91.91666666666667 +k=1.0000385418 +x_0=59131.3183 +y_0=0.0041 +ellps=GRS80 +units=m +no_defs "],"EPSG:7544":["EPSG:7544","+proj=tmerc +lat_0=44.40833333333333 +lon_0=-91.89444444444445 +k=1.0000410324 +x_0=51816.104 +y_0=0.003 +ellps=GRS80 +units=m +no_defs "],"EPSG:7545":["EPSG:7545","+proj=lcc +lat_1=44.87228112638889 +lat_0=44.87228112638889 +lon_0=-91.28888888888889 +k_0=1.000035079 +x_0=120091.4402 +y_0=91687.92389999999 +ellps=GRS80 +units=m +no_defs "],"EPSG:7546":["EPSG:7546","+proj=tmerc +lat_0=45.43888888888888 +lon_0=-88.14166666666668 +k=1.0000552095 +x_0=133502.6683 +y_0=0.0063 +ellps=GRS80 +units=m +no_defs "],"EPSG:7547":["EPSG:7547","+proj=tmerc +lat_0=44.00555555555555 +lon_0=-88.63333333333334 +k=1.0000673004 +x_0=275844.5533 +y_0=0.0157 +ellps=GRS80 +units=m +no_defs "],"EPSG:7548":["EPSG:7548","+proj=tmerc +lat_0=41.41111111111111 +lon_0=-90.8 +k=1.0000349452 +x_0=242316.4841 +y_0=0.01 +ellps=GRS80 +units=m +no_defs "],"EPSG:7549":["EPSG:7549","+proj=lcc +lat_1=42.63756227694444 +lat_0=42.63756227694444 +lon_0=-89.83888888888889 +k_0=1.0000390487 +x_0=170078.7403 +y_0=45830.2947 +ellps=GRS80 +units=m +no_defs "],"EPSG:7550":["EPSG:7550","+proj=lcc +lat_1=43.80700011777778 +lat_0=43.80700011777778 +lon_0=-89.24166666666667 +k_0=1.0000344057 +x_0=150876.3018 +y_0=79170.7795 +ellps=GRS80 +units=m +no_defs "],"EPSG:7551":["EPSG:7551","+proj=tmerc +lat_0=42.53888888888888 +lon_0=-90.16111111111111 +k=1.0000394961 +x_0=113081.0261 +y_0=0.0045 +ellps=GRS80 +units=m +no_defs "],"EPSG:7552":["EPSG:7552","+proj=tmerc +lat_0=45.43333333333333 +lon_0=-90.25555555555556 +k=1.0000677153 +x_0=220980.4419 +y_0=0.008500000000000001 +ellps=GRS80 +units=m +no_defs "],"EPSG:7553":["EPSG:7553","+proj=tmerc +lat_0=44.25333512777778 +lon_0=-90.84429651944444 +k=1.0000353 +x_0=27000 +y_0=25000 +ellps=GRS80 +units=m +no_defs "],"EPSG:7554":["EPSG:7554","+proj=tmerc +lat_0=42.21666666666667 +lon_0=-87.89444444444445 +k=1.0000260649 +x_0=185928.3728 +y_0=0.0009 +ellps=GRS80 +units=m +no_defs "],"EPSG:7555":["EPSG:7555","+proj=tmerc +lat_0=43.26666666666667 +lon_0=-87.55 +k=1.0000233704 +x_0=79857.7614 +y_0=0.0012 +ellps=GRS80 +units=m +no_defs "],"EPSG:7556":["EPSG:7556","+proj=tmerc +lat_0=43.45111111111111 +lon_0=-91.31666666666666 +k=1.0000319985 +x_0=130454.6598 +y_0=0.0033 +ellps=GRS80 +units=m +no_defs "],"EPSG:7557":["EPSG:7557","+proj=lcc +lat_1=45.15423710527778 +lat_0=45.15423710527778 +lon_0=-89.03333333333333 +k_0=1.0000627024 +x_0=198425.197 +y_0=105279.7829 +ellps=GRS80 +units=m +no_defs "],"EPSG:7558":["EPSG:7558","+proj=tmerc +lat_0=44.84444444444445 +lon_0=-89.73333333333333 +k=1.0000599003 +x_0=116129.0323 +y_0=0.0058 +ellps=GRS80 +units=m +no_defs "],"EPSG:7559":["EPSG:7559","+proj=lcc +lat_1=44.90090442361111 +lat_0=44.90090442361111 +lon_0=-89.77 +k_0=1.000053289 +x_0=74676.1493 +y_0=55049.2669 +ellps=GRS80 +units=m +no_defs "],"EPSG:7560":["EPSG:7560","+proj=tmerc +lat_0=44.69166666666666 +lon_0=-87.71111111111111 +k=1.0000234982 +x_0=238658.8794 +y_0=0.0032 +ellps=GRS80 +units=m +no_defs "],"EPSG:7561":["EPSG:7561","+proj=tmerc +lat_0=44.71666666666667 +lon_0=-88.41666666666667 +k=1.0000362499 +x_0=105461.0121 +y_0=0.0029 +ellps=GRS80 +units=m +no_defs "],"EPSG:7562":["EPSG:7562","+proj=lcc +lat_1=44.00007392861111 +lat_0=44.00007392861111 +lon_0=-90.64166666666668 +k_0=1.0000434122 +x_0=204521.209 +y_0=121923.9861 +ellps=GRS80 +units=m +no_defs "],"EPSG:7563":["EPSG:7563","+proj=tmerc +lat_0=44.39722222222222 +lon_0=-87.90833333333335 +k=1.0000236869 +x_0=182880.3676 +y_0=0.0033 +ellps=GRS80 +units=m +no_defs "],"EPSG:7564":["EPSG:7564","+proj=lcc +lat_1=45.70422377027778 +lat_0=45.70422377027778 +lon_0=-89.54444444444444 +k_0=1.0000686968 +x_0=70104.1401 +y_0=57588.0346 +ellps=GRS80 +units=m +no_defs "],"EPSG:7565":["EPSG:7565","+proj=lcc +lat_1=44.63614887194444 +lat_0=44.63614887194444 +lon_0=-92.22777777777777 +k_0=1.0000362977 +x_0=167640.3354 +y_0=86033.0876 +ellps=GRS80 +units=m +no_defs "],"EPSG:7566":["EPSG:7566","+proj=tmerc +lat_0=44.66111111111111 +lon_0=-92.63333333333334 +k=1.0000433849 +x_0=141732.2823 +y_0=0.0059 +ellps=GRS80 +units=m +no_defs "],"EPSG:7567":["EPSG:7567","+proj=lcc +lat_1=44.41682397527777 +lat_0=44.41682397527777 +lon_0=-89.5 +k_0=1.000039936 +x_0=56388.1128 +y_0=50022.1874 +ellps=GRS80 +units=m +no_defs "],"EPSG:7568":["EPSG:7568","+proj=tmerc +lat_0=44.55555555555555 +lon_0=-90.48888888888889 +k=1.0000649554 +x_0=227990.8546 +y_0=0.0109 +ellps=GRS80 +units=m +no_defs "],"EPSG:7569":["EPSG:7569","+proj=lcc +lat_1=43.3223129275 +lat_0=43.3223129275 +lon_0=-90.43055555555556 +k_0=1.0000375653 +x_0=202387.6048 +y_0=134255.4253 +ellps=GRS80 +units=m +no_defs "],"EPSG:7570":["EPSG:7570","+proj=tmerc +lat_0=41.94444444444444 +lon_0=-89.07222222222222 +k=1.0000337311 +x_0=146304.2926 +y_0=0.0068 +ellps=GRS80 +units=m +no_defs "],"EPSG:7571":["EPSG:7571","+proj=tmerc +lat_0=43.91944444444444 +lon_0=-91.06666666666666 +k=1.0000495976 +x_0=250546.1013 +y_0=0.0234 +ellps=GRS80 +units=m +no_defs "],"EPSG:7572":["EPSG:7572","+proj=tmerc +lat_0=42.81944444444445 +lon_0=-89.90000000000001 +k=1.0000373868 +x_0=185623.5716 +y_0=0.0051 +ellps=GRS80 +units=m +no_defs "],"EPSG:7573":["EPSG:7573","+proj=lcc +lat_1=45.90009913138888 +lat_0=45.90009913138888 +lon_0=-91.11666666666666 +k_0=1.0000573461 +x_0=216713.2336 +y_0=120734.1631 +ellps=GRS80 +units=m +no_defs "],"EPSG:7574":["EPSG:7574","+proj=tmerc +lat_0=44.03611111111111 +lon_0=-88.60555555555555 +k=1.000032144 +x_0=262433.3253 +y_0=0.009599999999999999 +ellps=GRS80 +units=m +no_defs "],"EPSG:7575":["EPSG:7575","+proj=tmerc +lat_0=44.03611111111111 +lon_0=-92.63333333333334 +k=1.0000381803 +x_0=165506.7302 +y_0=0.0103 +ellps=GRS80 +units=m +no_defs "],"EPSG:7576":["EPSG:7576","+proj=lcc +lat_1=45.17782208583333 +lat_0=45.17782208583333 +lon_0=-90.48333333333333 +k_0=1.0000597566 +x_0=187147.5744 +y_0=107746.7522 +ellps=GRS80 +units=m +no_defs "],"EPSG:7577":["EPSG:7577","+proj=tmerc +lat_0=43.16111111111111 +lon_0=-91.36666666666666 +k=1.0000361538 +x_0=256946.9138 +y_0=0.0041 +ellps=GRS80 +units=m +no_defs "],"EPSG:7578":["EPSG:7578","+proj=lcc +lat_1=43.57503293972223 +lat_0=43.57503293972223 +lon_0=-90.78333333333333 +k_0=1.0000408158 +x_0=222504.4451 +y_0=47532.0602 +ellps=GRS80 +units=m +no_defs "],"EPSG:7579":["EPSG:7579","+proj=lcc +lat_1=46.07784409055556 +lat_0=46.07784409055556 +lon_0=-89.48888888888889 +k_0=1.0000730142 +x_0=134417.0689 +y_0=50337.1092 +ellps=GRS80 +units=m +no_defs "],"EPSG:7580":["EPSG:7580","+proj=lcc +lat_1=42.66946209694444 +lat_0=42.66946209694444 +lon_0=-88.54166666666667 +k_0=1.0000367192 +x_0=232562.8651 +y_0=111088.2224 +ellps=GRS80 +units=m +no_defs "],"EPSG:7581":["EPSG:7581","+proj=lcc +lat_1=45.96121983333334 +lat_0=45.96121983333334 +lon_0=-91.78333333333333 +k_0=1.0000475376 +x_0=234086.8682 +y_0=188358.6058 +ellps=GRS80 +units=m +no_defs "],"EPSG:7582":["EPSG:7582","+proj=tmerc +lat_0=42.91805555555555 +lon_0=-88.06388888888888 +k=1.00003738 +x_0=120091.4415 +y_0=0.003 +ellps=GRS80 +units=m +no_defs "],"EPSG:7583":["EPSG:7583","+proj=tmerc +lat_0=42.56944444444445 +lon_0=-88.22499999999999 +k=1.0000346179 +x_0=208788.418 +y_0=0.0034 +ellps=GRS80 +units=m +no_defs "],"EPSG:7584":["EPSG:7584","+proj=tmerc +lat_0=43.42027777777778 +lon_0=-88.81666666666666 +k=1.0000333645 +x_0=185013.9709 +y_0=0.007 +ellps=GRS80 +units=m +no_defs "],"EPSG:7585":["EPSG:7585","+proj=lcc +lat_1=44.11394404583334 +lat_0=44.11394404583334 +lon_0=-89.24166666666667 +k_0=1.0000392096 +x_0=120091.4402 +y_0=45069.7587 +ellps=GRS80 +units=m +no_defs "],"EPSG:7586":["EPSG:7586","+proj=lcc +lat_1=44.36259546944444 +lat_0=44.36259546944444 +lon_0=-90 +k_0=1.0000421209 +x_0=208483.6173 +y_0=134589.754 +ellps=GRS80 +units=m +no_defs "],"EPSG:7587":["EPSG:7587","+proj=tmerc +lat_0=43.36666666666667 +lon_0=-90 +k=1.0000365285 +x_0=147218.6941325883 +y_0=0.00365760731521463 +ellps=GRS80 +units=us-ft +no_defs "],"EPSG:7588":["EPSG:7588","+proj=tmerc +lat_0=45.70611111111111 +lon_0=-90.62222222222222 +k=1.0000495683 +x_0=172821.945948692 +y_0=0.001828803657607315 +ellps=GRS80 +units=us-ft +no_defs "],"EPSG:7589":["EPSG:7589","+proj=tmerc +lat_0=45.13333333333333 +lon_0=-91.84999999999999 +k=1.0000486665 +x_0=93150 +y_0=0.003048006096012192 +ellps=GRS80 +units=us-ft +no_defs "],"EPSG:7590":["EPSG:7590","+proj=lcc +lat_1=46.66964837722222 +lat_0=46.66964837722222 +lon_0=-91.15277777777779 +k_0=1.0000331195 +x_0=228600.4575057151 +y_0=148551.4835661671 +ellps=GRS80 +units=us-ft +no_defs "],"EPSG:7591":["EPSG:7591","+proj=tmerc +lat_0=43 +lon_0=-88 +k=1.00002 +x_0=31599.99989839979 +y_0=4599.999898399797 +ellps=GRS80 +units=us-ft +no_defs "],"EPSG:7592":["EPSG:7592","+proj=tmerc +lat_0=43.48138888888889 +lon_0=-91.79722222222222 +k=1.0000382778 +x_0=175260.3502159004 +y_0=0.004876809753619507 +ellps=GRS80 +units=us-ft +no_defs "],"EPSG:7593":["EPSG:7593","+proj=lcc +lat_1=45.89871486583333 +lat_0=45.89871486583333 +lon_0=-92.45777777777778 +k_0=1.0000383841 +x_0=64008.12771145543 +y_0=59445.90419100838 +ellps=GRS80 +units=us-ft +no_defs "],"EPSG:7594":["EPSG:7594","+proj=tmerc +lat_0=42.71944444444445 +lon_0=-88.5 +k=1.0000286569 +x_0=244754.8892049784 +y_0=0.004876809753619507 +ellps=GRS80 +units=us-ft +no_defs "],"EPSG:7595":["EPSG:7595","+proj=lcc +lat_1=44.97785689861112 +lat_0=44.97785689861112 +lon_0=-91.29444444444444 +k_0=1.0000391127 +x_0=60045.72009144018 +y_0=44091.43449326898 +ellps=GRS80 +units=us-ft +no_defs "],"EPSG:7596":["EPSG:7596","+proj=tmerc +lat_0=43.6 +lon_0=-90.70833333333334 +k=1.0000463003 +x_0=199949.198983998 +y_0=0.008534417068834137 +ellps=GRS80 +units=us-ft +no_defs "],"EPSG:7597":["EPSG:7597","+proj=lcc +lat_1=43.46254664583333 +lat_0=43.46254664583333 +lon_0=-89.39444444444445 +k_0=1.00003498 +x_0=169164.338023876 +y_0=111569.613512827 +ellps=GRS80 +units=us-ft +no_defs "],"EPSG:7598":["EPSG:7598","+proj=lcc +lat_1=43.200055605 +lat_0=43.200055605 +lon_0=-90.9388888888889 +k_0=1.0000349151 +x_0=113690.6273812548 +y_0=53703.12024384048 +ellps=GRS80 +units=us-ft +no_defs "],"EPSG:7599":["EPSG:7599","+proj=lcc +lat_1=43.0695160375 +lat_0=43.0695160375 +lon_0=-89.42222222222223 +k_0=1.0000384786 +x_0=247193.2943865888 +y_0=146591.9896367793 +ellps=GRS80 +units=us-ft +no_defs "],"EPSG:4996":["EPSG:4996","+proj=geocent +ellps=GRS80 +units=m +no_defs "],"EPSG:7600":["EPSG:7600","+proj=tmerc +lat_0=41.47222222222222 +lon_0=-88.77500000000001 +k=1.0000346418 +x_0=263347.7263906528 +y_0=0.00762001524003048 +ellps=GRS80 +units=us-ft +no_defs "],"EPSG:7601":["EPSG:7601","+proj=tmerc +lat_0=44.4 +lon_0=-87.27222222222223 +k=1.0000187521 +x_0=158801.1176022352 +y_0=0.002438404876809754 +ellps=GRS80 +units=us-ft +no_defs "],"EPSG:7602":["EPSG:7602","+proj=tmerc +lat_0=45.88333333333333 +lon_0=-91.91666666666667 +k=1.0000385418 +x_0=59131.31826263652 +y_0=0.003962407924815849 +ellps=GRS80 +units=us-ft +no_defs "],"EPSG:7603":["EPSG:7603","+proj=tmerc +lat_0=44.40833333333333 +lon_0=-91.89444444444445 +k=1.0000410324 +x_0=51816.10393700787 +y_0=0.003048006096012192 +ellps=GRS80 +units=us-ft +no_defs "],"EPSG:7604":["EPSG:7604","+proj=lcc +lat_1=44.87228112638889 +lat_0=44.87228112638889 +lon_0=-91.28888888888889 +k_0=1.000035079 +x_0=120091.4401828804 +y_0=91687.92390144781 +ellps=GRS80 +units=us-ft +no_defs "],"EPSG:7605":["EPSG:7605","+proj=tmerc +lat_0=45.43888888888888 +lon_0=-88.14166666666668 +k=1.0000552095 +x_0=133502.6682245364 +y_0=0.006400812801625603 +ellps=GRS80 +units=us-ft +no_defs "],"EPSG:7606":["EPSG:7606","+proj=tmerc +lat_0=44.00555555555555 +lon_0=-88.63333333333334 +k=1.0000673004 +x_0=275844.5532131065 +y_0=0.0158496316992634 +ellps=GRS80 +units=us-ft +no_defs "],"EPSG:7607":["EPSG:7607","+proj=tmerc +lat_0=41.41111111111111 +lon_0=-90.8 +k=1.0000349452 +x_0=242316.484023368 +y_0=0.01005842011684023 +ellps=GRS80 +units=us-ft +no_defs "],"EPSG:32608":["EPSG:32608","+proj=utm +zone=8 +datum=WGS84 +units=m +no_defs "],"EPSG:7608":["EPSG:7608","+proj=lcc +lat_1=42.63756227694444 +lat_0=42.63756227694444 +lon_0=-89.83888888888889 +k_0=1.0000390487 +x_0=170078.7401574803 +y_0=45830.29484378968 +ellps=GRS80 +units=us-ft +no_defs "],"EPSG:7609":["EPSG:7609","+proj=lcc +lat_1=43.80700011777778 +lat_0=43.80700011777778 +lon_0=-89.24166666666667 +k_0=1.0000344057 +x_0=150876.3017526035 +y_0=79170.77937515875 +ellps=GRS80 +units=us-ft +no_defs "],"EPSG:7610":["EPSG:7610","+proj=tmerc +lat_0=42.53888888888888 +lon_0=-90.16111111111111 +k=1.0000394961 +x_0=113081.0261620523 +y_0=0.004572009144018288 +ellps=GRS80 +units=us-ft +no_defs "],"EPSG:7611":["EPSG:7611","+proj=tmerc +lat_0=45.43333333333333 +lon_0=-90.25555555555556 +k=1.0000677153 +x_0=220980.4419608839 +y_0=0.008534417068834137 +ellps=GRS80 +units=us-ft +no_defs "],"EPSG:7612":["EPSG:7612","+proj=tmerc +lat_0=44.25333512777778 +lon_0=-90.84429651944444 +k=1.0000353 +x_0=27000 +y_0=24999.99989839979 +ellps=GRS80 +units=us-ft +no_defs "],"EPSG:7613":["EPSG:7613","+proj=tmerc +lat_0=42.21666666666667 +lon_0=-87.89444444444445 +k=1.0000260649 +x_0=185928.3727711455 +y_0=0.0009144018288036576 +ellps=GRS80 +units=us-ft +no_defs "],"EPSG:7614":["EPSG:7614","+proj=tmerc +lat_0=43.26666666666667 +lon_0=-87.55 +k=1.0000233704 +x_0=79857.76154432308 +y_0=0.001219202438404877 +ellps=GRS80 +units=us-ft +no_defs "],"EPSG:7615":["EPSG:7615","+proj=tmerc +lat_0=43.45111111111111 +lon_0=-91.31666666666666 +k=1.0000319985 +x_0=130454.6596901194 +y_0=0.003352806705613411 +ellps=GRS80 +units=us-ft +no_defs "],"EPSG:4998":["EPSG:4998","+proj=geocent +ellps=GRS80 +units=m +no_defs "],"EPSG:7616":["EPSG:7616","+proj=lcc +lat_1=45.15423710527778 +lat_0=45.15423710527778 +lon_0=-89.03333333333333 +k_0=1.0000627024 +x_0=198425.1968503937 +y_0=105279.7828803657 +ellps=GRS80 +units=us-ft +no_defs "],"EPSG:7617":["EPSG:7617","+proj=tmerc +lat_0=44.84444444444445 +lon_0=-89.73333333333333 +k=1.0000599003 +x_0=116129.0322580645 +y_0=0.005791211582423164 +ellps=GRS80 +units=us-ft +no_defs "],"EPSG:7618":["EPSG:7618","+proj=lcc +lat_1=44.90090442361111 +lat_0=44.90090442361111 +lon_0=-89.77 +k_0=1.000053289 +x_0=74676.1493522987 +y_0=55049.26695453391 +ellps=GRS80 +units=us-ft +no_defs "],"EPSG:7619":["EPSG:7619","+proj=tmerc +lat_0=44.69166666666666 +lon_0=-87.71111111111111 +k=1.0000234982 +x_0=238658.8794513589 +y_0=0.003048006096012192 +ellps=GRS80 +units=us-ft +no_defs "],"EPSG:7620":["EPSG:7620","+proj=tmerc +lat_0=44.71666666666667 +lon_0=-88.41666666666667 +k=1.0000362499 +x_0=105461.0121412243 +y_0=0.003048006096012192 +ellps=GRS80 +units=us-ft +no_defs "],"EPSG:7621":["EPSG:7621","+proj=lcc +lat_1=44.00007392861111 +lat_0=44.00007392861111 +lon_0=-90.64166666666668 +k_0=1.0000434122 +x_0=204521.2090424181 +y_0=121923.9861823724 +ellps=GRS80 +units=us-ft +no_defs "],"EPSG:7622":["EPSG:7622","+proj=tmerc +lat_0=44.39722222222222 +lon_0=-87.90833333333335 +k=1.0000236869 +x_0=182880.3675895352 +y_0=0.003352806705613411 +ellps=GRS80 +units=us-ft +no_defs "],"EPSG:7623":["EPSG:7623","+proj=lcc +lat_1=45.70422377027778 +lat_0=45.70422377027778 +lon_0=-89.54444444444444 +k_0=1.0000686968 +x_0=70104.14020828041 +y_0=57588.03474726949 +ellps=GRS80 +units=us-ft +no_defs "],"EPSG:5011":["EPSG:5011","+proj=geocent +ellps=GRS80 +units=m +no_defs "],"EPSG:7624":["EPSG:7624","+proj=lcc +lat_1=44.63614887194444 +lat_0=44.63614887194444 +lon_0=-92.22777777777777 +k_0=1.0000362977 +x_0=167640.3352806706 +y_0=86033.08773177546 +ellps=GRS80 +units=us-ft +no_defs "],"EPSG:7625":["EPSG:7625","+proj=tmerc +lat_0=44.66111111111111 +lon_0=-92.63333333333334 +k=1.0000433849 +x_0=141732.2822453645 +y_0=0.005791211582423164 +ellps=GRS80 +units=us-ft +no_defs "],"EPSG:7626":["EPSG:7626","+proj=lcc +lat_1=44.41682397527777 +lat_0=44.41682397527777 +lon_0=-89.5 +k_0=1.000039936 +x_0=56388.11277622555 +y_0=50022.1874523749 +ellps=GRS80 +units=us-ft +no_defs "],"EPSG:7627":["EPSG:7627","+proj=tmerc +lat_0=44.55555555555555 +lon_0=-90.48888888888889 +k=1.0000649554 +x_0=227990.8544577089 +y_0=0.01097282194564389 +ellps=GRS80 +units=us-ft +no_defs "],"EPSG:7628":["EPSG:7628","+proj=lcc +lat_1=43.3223129275 +lat_0=43.3223129275 +lon_0=-90.43055555555556 +k_0=1.0000375653 +x_0=202387.6047752095 +y_0=134255.4254508509 +ellps=GRS80 +units=us-ft +no_defs "],"EPSG:7629":["EPSG:7629","+proj=tmerc +lat_0=41.94444444444444 +lon_0=-89.07222222222222 +k=1.0000337311 +x_0=146304.2926085852 +y_0=0.006705613411226822 +ellps=GRS80 +units=us-ft +no_defs "],"EPSG:7630":["EPSG:7630","+proj=tmerc +lat_0=43.91944444444444 +lon_0=-91.06666666666666 +k=1.0000495976 +x_0=250546.1013970028 +y_0=0.02346964693929388 +ellps=GRS80 +units=us-ft +no_defs "],"EPSG:7631":["EPSG:7631","+proj=tmerc +lat_0=42.81944444444445 +lon_0=-89.90000000000001 +k=1.0000373868 +x_0=185623.5715519431 +y_0=0.005181610363220727 +ellps=GRS80 +units=us-ft +no_defs "],"EPSG:5244":["EPSG:5244","+proj=geocent +ellps=GRS80 +units=m +no_defs "],"EPSG:7632":["EPSG:7632","+proj=lcc +lat_1=45.90009913138888 +lat_0=45.90009913138888 +lon_0=-91.11666666666666 +k_0=1.0000573461 +x_0=216713.2337312675 +y_0=120734.1631699263 +ellps=GRS80 +units=us-ft +no_defs "],"EPSG:7633":["EPSG:7633","+proj=tmerc +lat_0=44.03611111111111 +lon_0=-88.60555555555555 +k=1.000032144 +x_0=262433.3251714504 +y_0=0.009448818897637795 +ellps=GRS80 +units=us-ft +no_defs "],"EPSG:7634":["EPSG:7634","+proj=tmerc +lat_0=44.03611111111111 +lon_0=-92.63333333333334 +k=1.0000381803 +x_0=165506.7300990602 +y_0=0.01036322072644145 +ellps=GRS80 +units=us-ft +no_defs "],"EPSG:7635":["EPSG:7635","+proj=lcc +lat_1=45.17782208583333 +lat_0=45.17782208583333 +lon_0=-90.48333333333333 +k_0=1.0000597566 +x_0=187147.5742951486 +y_0=107746.7521463043 +ellps=GRS80 +units=us-ft +no_defs "],"EPSG:7636":["EPSG:7636","+proj=tmerc +lat_0=43.16111111111111 +lon_0=-91.36666666666666 +k=1.0000361538 +x_0=256946.9138938278 +y_0=0.003962407924815849 +ellps=GRS80 +units=us-ft +no_defs "],"EPSG:7637":["EPSG:7637","+proj=lcc +lat_1=43.57503293972223 +lat_0=43.57503293972223 +lon_0=-90.78333333333333 +k_0=1.0000408158 +x_0=222504.44500889 +y_0=47532.0603505207 +ellps=GRS80 +units=us-ft +no_defs "],"EPSG:7638":["EPSG:7638","+proj=lcc +lat_1=46.07784409055556 +lat_0=46.07784409055556 +lon_0=-89.48888888888889 +k_0=1.0000730142 +x_0=134417.0688341377 +y_0=50337.10927101854 +ellps=GRS80 +units=us-ft +no_defs "],"EPSG:7639":["EPSG:7639","+proj=lcc +lat_1=42.66946209694444 +lat_0=42.66946209694444 +lon_0=-88.54166666666667 +k_0=1.0000367192 +x_0=232562.8651257302 +y_0=111088.2224028448 +ellps=GRS80 +units=us-ft +no_defs "],"EPSG:5250":["EPSG:5250","+proj=geocent +ellps=GRS80 +units=m +no_defs "],"EPSG:7640":["EPSG:7640","+proj=lcc +lat_1=45.96121983333334 +lat_0=45.96121983333334 +lon_0=-91.78333333333333 +k_0=1.0000475376 +x_0=234086.8681737363 +y_0=188358.6059436119 +ellps=GRS80 +units=us-ft +no_defs "],"EPSG:7641":["EPSG:7641","+proj=tmerc +lat_0=42.91805555555555 +lon_0=-88.06388888888888 +k=1.00003738 +x_0=120091.4414020828 +y_0=0.003048006096012192 +ellps=GRS80 +units=us-ft +no_defs "],"EPSG:7642":["EPSG:7642","+proj=tmerc +lat_0=42.56944444444445 +lon_0=-88.22499999999999 +k=1.0000346179 +x_0=208788.4178816358 +y_0=0.003352806705613411 +ellps=GRS80 +units=us-ft +no_defs "],"EPSG:7643":["EPSG:7643","+proj=tmerc +lat_0=43.42027777777778 +lon_0=-88.81666666666666 +k=1.0000333645 +x_0=185013.9709423419 +y_0=0.007010414020828041 +ellps=GRS80 +units=us-ft +no_defs "],"EPSG:7644":["EPSG:7644","+proj=lcc +lat_1=44.11394404583334 +lat_0=44.11394404583334 +lon_0=-89.24166666666667 +k_0=1.0000392096 +x_0=120091.4401828804 +y_0=45069.7588011176 +ellps=GRS80 +units=us-ft +no_defs "],"EPSG:7645":["EPSG:7645","+proj=lcc +lat_1=44.36259546944444 +lat_0=44.36259546944444 +lon_0=-90 +k_0=1.0000421209 +x_0=208483.6172720346 +y_0=134589.7539243078 +ellps=GRS80 +units=us-ft +no_defs "],"EPSG:20004":["EPSG:20004","+proj=tmerc +lat_0=0 +lon_0=21 +k=1 +x_0=4500000 +y_0=0 +ellps=krass +towgs84=24.47,-130.89,-81.56,0,0,0.13,-0.22 +units=m +no_defs "],"EPSG:20005":["EPSG:20005","+proj=tmerc +lat_0=0 +lon_0=27 +k=1 +x_0=5500000 +y_0=0 +ellps=krass +towgs84=24.47,-130.89,-81.56,0,0,0.13,-0.22 +units=m +no_defs "],"EPSG:20006":["EPSG:20006","+proj=tmerc +lat_0=0 +lon_0=33 +k=1 +x_0=6500000 +y_0=0 +ellps=krass +towgs84=24.47,-130.89,-81.56,0,0,0.13,-0.22 +units=m +no_defs "],"EPSG:20007":["EPSG:20007","+proj=tmerc +lat_0=0 +lon_0=39 +k=1 +x_0=7500000 +y_0=0 +ellps=krass +towgs84=24.47,-130.89,-81.56,0,0,0.13,-0.22 +units=m +no_defs "],"EPSG:20008":["EPSG:20008","+proj=tmerc +lat_0=0 +lon_0=45 +k=1 +x_0=8500000 +y_0=0 +ellps=krass +towgs84=24.47,-130.89,-81.56,0,0,0.13,-0.22 +units=m +no_defs "],"EPSG:20009":["EPSG:20009","+proj=tmerc +lat_0=0 +lon_0=51 +k=1 +x_0=9500000 +y_0=0 +ellps=krass +towgs84=24.47,-130.89,-81.56,0,0,0.13,-0.22 +units=m +no_defs "],"EPSG:20010":["EPSG:20010","+proj=tmerc +lat_0=0 +lon_0=57 +k=1 +x_0=10500000 +y_0=0 +ellps=krass +towgs84=24.47,-130.89,-81.56,0,0,0.13,-0.22 +units=m +no_defs "],"EPSG:20011":["EPSG:20011","+proj=tmerc +lat_0=0 +lon_0=63 +k=1 +x_0=11500000 +y_0=0 +ellps=krass +towgs84=24.47,-130.89,-81.56,0,0,0.13,-0.22 +units=m +no_defs "],"EPSG:20012":["EPSG:20012","+proj=tmerc +lat_0=0 +lon_0=69 +k=1 +x_0=12500000 +y_0=0 +ellps=krass +towgs84=24.47,-130.89,-81.56,0,0,0.13,-0.22 +units=m +no_defs "],"EPSG:20013":["EPSG:20013","+proj=tmerc +lat_0=0 +lon_0=75 +k=1 +x_0=13500000 +y_0=0 +ellps=krass +towgs84=24.47,-130.89,-81.56,0,0,0.13,-0.22 +units=m +no_defs "],"EPSG:20014":["EPSG:20014","+proj=tmerc +lat_0=0 +lon_0=81 +k=1 +x_0=14500000 +y_0=0 +ellps=krass +towgs84=24.47,-130.89,-81.56,0,0,0.13,-0.22 +units=m +no_defs "],"EPSG:20015":["EPSG:20015","+proj=tmerc +lat_0=0 +lon_0=87 +k=1 +x_0=15500000 +y_0=0 +ellps=krass +towgs84=24.47,-130.89,-81.56,0,0,0.13,-0.22 +units=m +no_defs "],"EPSG:20016":["EPSG:20016","+proj=tmerc +lat_0=0 +lon_0=93 +k=1 +x_0=16500000 +y_0=0 +ellps=krass +towgs84=24.47,-130.89,-81.56,0,0,0.13,-0.22 +units=m +no_defs "],"EPSG:20017":["EPSG:20017","+proj=tmerc +lat_0=0 +lon_0=99 +k=1 +x_0=17500000 +y_0=0 +ellps=krass +towgs84=24.47,-130.89,-81.56,0,0,0.13,-0.22 +units=m +no_defs "],"EPSG:20018":["EPSG:20018","+proj=tmerc +lat_0=0 +lon_0=105 +k=1 +x_0=18500000 +y_0=0 +ellps=krass +towgs84=24.47,-130.89,-81.56,0,0,0.13,-0.22 +units=m +no_defs "],"EPSG:20019":["EPSG:20019","+proj=tmerc +lat_0=0 +lon_0=111 +k=1 +x_0=19500000 +y_0=0 +ellps=krass +towgs84=24.47,-130.89,-81.56,0,0,0.13,-0.22 +units=m +no_defs "],"EPSG:20020":["EPSG:20020","+proj=tmerc +lat_0=0 +lon_0=117 +k=1 +x_0=20500000 +y_0=0 +ellps=krass +towgs84=24.47,-130.89,-81.56,0,0,0.13,-0.22 +units=m +no_defs "],"EPSG:20021":["EPSG:20021","+proj=tmerc +lat_0=0 +lon_0=123 +k=1 +x_0=21500000 +y_0=0 +ellps=krass +towgs84=24.47,-130.89,-81.56,0,0,0.13,-0.22 +units=m +no_defs "],"EPSG:20022":["EPSG:20022","+proj=tmerc +lat_0=0 +lon_0=129 +k=1 +x_0=22500000 +y_0=0 +ellps=krass +towgs84=24.47,-130.89,-81.56,0,0,0.13,-0.22 +units=m +no_defs "],"EPSG:20023":["EPSG:20023","+proj=tmerc +lat_0=0 +lon_0=135 +k=1 +x_0=23500000 +y_0=0 +ellps=krass +towgs84=24.47,-130.89,-81.56,0,0,0.13,-0.22 +units=m +no_defs "],"EPSG:20024":["EPSG:20024","+proj=tmerc +lat_0=0 +lon_0=141 +k=1 +x_0=24500000 +y_0=0 +ellps=krass +towgs84=24.47,-130.89,-81.56,0,0,0.13,-0.22 +units=m +no_defs "],"EPSG:20025":["EPSG:20025","+proj=tmerc +lat_0=0 +lon_0=147 +k=1 +x_0=25500000 +y_0=0 +ellps=krass +towgs84=24.47,-130.89,-81.56,0,0,0.13,-0.22 +units=m +no_defs "],"EPSG:20026":["EPSG:20026","+proj=tmerc +lat_0=0 +lon_0=153 +k=1 +x_0=26500000 +y_0=0 +ellps=krass +towgs84=24.47,-130.89,-81.56,0,0,0.13,-0.22 +units=m +no_defs "],"EPSG:20027":["EPSG:20027","+proj=tmerc +lat_0=0 +lon_0=159 +k=1 +x_0=27500000 +y_0=0 +ellps=krass +towgs84=24.47,-130.89,-81.56,0,0,0.13,-0.22 +units=m +no_defs "],"EPSG:20028":["EPSG:20028","+proj=tmerc +lat_0=0 +lon_0=165 +k=1 +x_0=28500000 +y_0=0 +ellps=krass +towgs84=24.47,-130.89,-81.56,0,0,0.13,-0.22 +units=m +no_defs "],"EPSG:20029":["EPSG:20029","+proj=tmerc +lat_0=0 +lon_0=171 +k=1 +x_0=29500000 +y_0=0 +ellps=krass +towgs84=24.47,-130.89,-81.56,0,0,0.13,-0.22 +units=m +no_defs "],"EPSG:20030":["EPSG:20030","+proj=tmerc +lat_0=0 +lon_0=177 +k=1 +x_0=30500000 +y_0=0 +ellps=krass +towgs84=24.47,-130.89,-81.56,0,0,0.13,-0.22 +units=m +no_defs "],"EPSG:20031":["EPSG:20031","+proj=tmerc +lat_0=0 +lon_0=-177 +k=1 +x_0=31500000 +y_0=0 +ellps=krass +towgs84=24.47,-130.89,-81.56,0,0,0.13,-0.22 +units=m +no_defs "],"EPSG:20032":["EPSG:20032","+proj=tmerc +lat_0=0 +lon_0=-171 +k=1 +x_0=32500000 +y_0=0 +ellps=krass +towgs84=24.47,-130.89,-81.56,0,0,0.13,-0.22 +units=m +no_defs "],"EPSG:20064":["EPSG:20064","+proj=tmerc +lat_0=0 +lon_0=21 +k=1 +x_0=500000 +y_0=0 +ellps=krass +towgs84=24.47,-130.89,-81.56,0,0,0.13,-0.22 +units=m +no_defs "],"EPSG:20065":["EPSG:20065","+proj=tmerc +lat_0=0 +lon_0=27 +k=1 +x_0=500000 +y_0=0 +ellps=krass +towgs84=24.47,-130.89,-81.56,0,0,0.13,-0.22 +units=m +no_defs "],"EPSG:20066":["EPSG:20066","+proj=tmerc +lat_0=0 +lon_0=33 +k=1 +x_0=500000 +y_0=0 +ellps=krass +towgs84=24.47,-130.89,-81.56,0,0,0.13,-0.22 +units=m +no_defs "],"EPSG:20067":["EPSG:20067","+proj=tmerc +lat_0=0 +lon_0=39 +k=1 +x_0=500000 +y_0=0 +ellps=krass +towgs84=24.47,-130.89,-81.56,0,0,0.13,-0.22 +units=m +no_defs "],"EPSG:20068":["EPSG:20068","+proj=tmerc +lat_0=0 +lon_0=45 +k=1 +x_0=500000 +y_0=0 +ellps=krass +towgs84=24.47,-130.89,-81.56,0,0,0.13,-0.22 +units=m +no_defs "],"EPSG:20069":["EPSG:20069","+proj=tmerc +lat_0=0 +lon_0=51 +k=1 +x_0=500000 +y_0=0 +ellps=krass +towgs84=24.47,-130.89,-81.56,0,0,0.13,-0.22 +units=m +no_defs "],"EPSG:20070":["EPSG:20070","+proj=tmerc +lat_0=0 +lon_0=57 +k=1 +x_0=500000 +y_0=0 +ellps=krass +towgs84=24.47,-130.89,-81.56,0,0,0.13,-0.22 +units=m +no_defs "],"EPSG:20071":["EPSG:20071","+proj=tmerc +lat_0=0 +lon_0=63 +k=1 +x_0=500000 +y_0=0 +ellps=krass +towgs84=24.47,-130.89,-81.56,0,0,0.13,-0.22 +units=m +no_defs "],"EPSG:20072":["EPSG:20072","+proj=tmerc +lat_0=0 +lon_0=69 +k=1 +x_0=500000 +y_0=0 +ellps=krass +towgs84=24.47,-130.89,-81.56,0,0,0.13,-0.22 +units=m +no_defs "],"EPSG:20073":["EPSG:20073","+proj=tmerc +lat_0=0 +lon_0=75 +k=1 +x_0=500000 +y_0=0 +ellps=krass +towgs84=24.47,-130.89,-81.56,0,0,0.13,-0.22 +units=m +no_defs "],"EPSG:20074":["EPSG:20074","+proj=tmerc +lat_0=0 +lon_0=81 +k=1 +x_0=500000 +y_0=0 +ellps=krass +towgs84=24.47,-130.89,-81.56,0,0,0.13,-0.22 +units=m +no_defs "],"EPSG:20075":["EPSG:20075","+proj=tmerc +lat_0=0 +lon_0=87 +k=1 +x_0=500000 +y_0=0 +ellps=krass +towgs84=24.47,-130.89,-81.56,0,0,0.13,-0.22 +units=m +no_defs "],"EPSG:20076":["EPSG:20076","+proj=tmerc +lat_0=0 +lon_0=93 +k=1 +x_0=500000 +y_0=0 +ellps=krass +towgs84=24.47,-130.89,-81.56,0,0,0.13,-0.22 +units=m +no_defs "],"EPSG:20077":["EPSG:20077","+proj=tmerc +lat_0=0 +lon_0=99 +k=1 +x_0=500000 +y_0=0 +ellps=krass +towgs84=24.47,-130.89,-81.56,0,0,0.13,-0.22 +units=m +no_defs "],"EPSG:20078":["EPSG:20078","+proj=tmerc +lat_0=0 +lon_0=105 +k=1 +x_0=500000 +y_0=0 +ellps=krass +towgs84=24.47,-130.89,-81.56,0,0,0.13,-0.22 +units=m +no_defs "],"EPSG:20079":["EPSG:20079","+proj=tmerc +lat_0=0 +lon_0=111 +k=1 +x_0=500000 +y_0=0 +ellps=krass +towgs84=24.47,-130.89,-81.56,0,0,0.13,-0.22 +units=m +no_defs "],"EPSG:20080":["EPSG:20080","+proj=tmerc +lat_0=0 +lon_0=117 +k=1 +x_0=500000 +y_0=0 +ellps=krass +towgs84=24.47,-130.89,-81.56,0,0,0.13,-0.22 +units=m +no_defs "],"EPSG:20081":["EPSG:20081","+proj=tmerc +lat_0=0 +lon_0=123 +k=1 +x_0=500000 +y_0=0 +ellps=krass +towgs84=24.47,-130.89,-81.56,0,0,0.13,-0.22 +units=m +no_defs "],"EPSG:20082":["EPSG:20082","+proj=tmerc +lat_0=0 +lon_0=129 +k=1 +x_0=500000 +y_0=0 +ellps=krass +towgs84=24.47,-130.89,-81.56,0,0,0.13,-0.22 +units=m +no_defs "],"EPSG:20083":["EPSG:20083","+proj=tmerc +lat_0=0 +lon_0=135 +k=1 +x_0=500000 +y_0=0 +ellps=krass +towgs84=24.47,-130.89,-81.56,0,0,0.13,-0.22 +units=m +no_defs "],"EPSG:20084":["EPSG:20084","+proj=tmerc +lat_0=0 +lon_0=141 +k=1 +x_0=500000 +y_0=0 +ellps=krass +towgs84=24.47,-130.89,-81.56,0,0,0.13,-0.22 +units=m +no_defs "],"EPSG:20085":["EPSG:20085","+proj=tmerc +lat_0=0 +lon_0=147 +k=1 +x_0=500000 +y_0=0 +ellps=krass +towgs84=24.47,-130.89,-81.56,0,0,0.13,-0.22 +units=m +no_defs "],"EPSG:20086":["EPSG:20086","+proj=tmerc +lat_0=0 +lon_0=153 +k=1 +x_0=500000 +y_0=0 +ellps=krass +towgs84=24.47,-130.89,-81.56,0,0,0.13,-0.22 +units=m +no_defs "],"EPSG:20087":["EPSG:20087","+proj=tmerc +lat_0=0 +lon_0=159 +k=1 +x_0=500000 +y_0=0 +ellps=krass +towgs84=24.47,-130.89,-81.56,0,0,0.13,-0.22 +units=m +no_defs "],"EPSG:20088":["EPSG:20088","+proj=tmerc +lat_0=0 +lon_0=165 +k=1 +x_0=500000 +y_0=0 +ellps=krass +towgs84=24.47,-130.89,-81.56,0,0,0.13,-0.22 +units=m +no_defs "],"EPSG:20089":["EPSG:20089","+proj=tmerc +lat_0=0 +lon_0=171 +k=1 +x_0=500000 +y_0=0 +ellps=krass +towgs84=24.47,-130.89,-81.56,0,0,0.13,-0.22 +units=m +no_defs "],"EPSG:20090":["EPSG:20090","+proj=tmerc +lat_0=0 +lon_0=177 +k=1 +x_0=500000 +y_0=0 +ellps=krass +towgs84=24.47,-130.89,-81.56,0,0,0.13,-0.22 +units=m +no_defs "],"EPSG:20091":["EPSG:20091","+proj=tmerc +lat_0=0 +lon_0=-177 +k=1 +x_0=500000 +y_0=0 +ellps=krass +towgs84=24.47,-130.89,-81.56,0,0,0.13,-0.22 +units=m +no_defs "],"EPSG:20092":["EPSG:20092","+proj=tmerc +lat_0=0 +lon_0=-171 +k=1 +x_0=500000 +y_0=0 +ellps=krass +towgs84=24.47,-130.89,-81.56,0,0,0.13,-0.22 +units=m +no_defs "],"EPSG:20135":["EPSG:20135","+proj=utm +zone=35 +ellps=clrk80 +towgs84=-166,-15,204,0,0,0,0 +units=m +no_defs "],"EPSG:20136":["EPSG:20136","+proj=utm +zone=36 +ellps=clrk80 +towgs84=-166,-15,204,0,0,0,0 +units=m +no_defs "],"EPSG:20137":["EPSG:20137","+proj=utm +zone=37 +ellps=clrk80 +towgs84=-166,-15,204,0,0,0,0 +units=m +no_defs "],"EPSG:20138":["EPSG:20138","+proj=utm +zone=38 +ellps=clrk80 +towgs84=-166,-15,204,0,0,0,0 +units=m +no_defs "],"EPSG:20248":["EPSG:20248","+proj=utm +zone=48 +south +ellps=aust_SA +towgs84=-117.808,-51.536,137.784,0.303,0.446,0.234,-0.29 +units=m +no_defs "],"EPSG:20249":["EPSG:20249","+proj=utm +zone=49 +south +ellps=aust_SA +towgs84=-117.808,-51.536,137.784,0.303,0.446,0.234,-0.29 +units=m +no_defs "],"EPSG:20250":["EPSG:20250","+proj=utm +zone=50 +south +ellps=aust_SA +towgs84=-117.808,-51.536,137.784,0.303,0.446,0.234,-0.29 +units=m +no_defs "],"EPSG:20251":["EPSG:20251","+proj=utm +zone=51 +south +ellps=aust_SA +towgs84=-117.808,-51.536,137.784,0.303,0.446,0.234,-0.29 +units=m +no_defs "],"EPSG:20252":["EPSG:20252","+proj=utm +zone=52 +south +ellps=aust_SA +towgs84=-117.808,-51.536,137.784,0.303,0.446,0.234,-0.29 +units=m +no_defs "],"EPSG:20253":["EPSG:20253","+proj=utm +zone=53 +south +ellps=aust_SA +towgs84=-117.808,-51.536,137.784,0.303,0.446,0.234,-0.29 +units=m +no_defs "],"EPSG:20254":["EPSG:20254","+proj=utm +zone=54 +south +ellps=aust_SA +towgs84=-117.808,-51.536,137.784,0.303,0.446,0.234,-0.29 +units=m +no_defs "],"EPSG:20255":["EPSG:20255","+proj=utm +zone=55 +south +ellps=aust_SA +towgs84=-117.808,-51.536,137.784,0.303,0.446,0.234,-0.29 +units=m +no_defs "],"EPSG:20256":["EPSG:20256","+proj=utm +zone=56 +south +ellps=aust_SA +towgs84=-117.808,-51.536,137.784,0.303,0.446,0.234,-0.29 +units=m +no_defs "],"EPSG:20257":["EPSG:20257","+proj=utm +zone=57 +south +ellps=aust_SA +towgs84=-117.808,-51.536,137.784,0.303,0.446,0.234,-0.29 +units=m +no_defs "],"EPSG:20258":["EPSG:20258","+proj=utm +zone=58 +south +ellps=aust_SA +towgs84=-117.808,-51.536,137.784,0.303,0.446,0.234,-0.29 +units=m +no_defs "],"EPSG:20348":["EPSG:20348","+proj=utm +zone=48 +south +ellps=aust_SA +towgs84=-134,-48,149,0,0,0,0 +units=m +no_defs "],"EPSG:20349":["EPSG:20349","+proj=utm +zone=49 +south +ellps=aust_SA +towgs84=-134,-48,149,0,0,0,0 +units=m +no_defs "],"EPSG:20350":["EPSG:20350","+proj=utm +zone=50 +south +ellps=aust_SA +towgs84=-134,-48,149,0,0,0,0 +units=m +no_defs "],"EPSG:20351":["EPSG:20351","+proj=utm +zone=51 +south +ellps=aust_SA +towgs84=-134,-48,149,0,0,0,0 +units=m +no_defs "],"EPSG:20352":["EPSG:20352","+proj=utm +zone=52 +south +ellps=aust_SA +towgs84=-134,-48,149,0,0,0,0 +units=m +no_defs "],"EPSG:20353":["EPSG:20353","+proj=utm +zone=53 +south +ellps=aust_SA +towgs84=-134,-48,149,0,0,0,0 +units=m +no_defs "],"EPSG:20354":["EPSG:20354","+proj=utm +zone=54 +south +ellps=aust_SA +towgs84=-134,-48,149,0,0,0,0 +units=m +no_defs "],"EPSG:20355":["EPSG:20355","+proj=utm +zone=55 +south +ellps=aust_SA +towgs84=-134,-48,149,0,0,0,0 +units=m +no_defs "],"EPSG:20539":["EPSG:20539","+proj=utm +zone=39 +ellps=krass +towgs84=-43,-163,45,0,0,0,0 +units=m +no_defs "],"EPSG:20357":["EPSG:20357","+proj=utm +zone=57 +south +ellps=aust_SA +towgs84=-134,-48,149,0,0,0,0 +units=m +no_defs "],"EPSG:20358":["EPSG:20358","+proj=utm +zone=58 +south +ellps=aust_SA +towgs84=-134,-48,149,0,0,0,0 +units=m +no_defs "],"EPSG:20436":["EPSG:20436","+proj=utm +zone=36 +ellps=intl +towgs84=-143,-236,7,0,0,0,0 +units=m +no_defs "],"EPSG:20437":["EPSG:20437","+proj=utm +zone=37 +ellps=intl +towgs84=-143,-236,7,0,0,0,0 +units=m +no_defs "],"EPSG:20439":["EPSG:20439","+proj=utm +zone=39 +ellps=intl +towgs84=-143,-236,7,0,0,0,0 +units=m +no_defs "],"EPSG:20440":["EPSG:20440","+proj=utm +zone=40 +ellps=intl +towgs84=-143,-236,7,0,0,0,0 +units=m +no_defs "],"EPSG:20499":["EPSG:20499","+proj=utm +zone=39 +ellps=intl +towgs84=-143,-236,7,0,0,0,0 +units=m +no_defs "],"EPSG:20538":["EPSG:20538","+proj=utm +zone=38 +ellps=krass +towgs84=-43,-163,45,0,0,0,0 +units=m +no_defs "],"EPSG:20791":["EPSG:20791","+proj=tmerc +lat_0=39.66666666666666 +lon_0=1 +k=1 +x_0=0 +y_0=0 +ellps=intl +towgs84=-304.046,-60.576,103.64,0,0,0,0 +pm=lisbon +units=m +no_defs "],"EPSG:20822":["EPSG:20822","+proj=utm +zone=22 +south +ellps=intl +towgs84=-151.99,287.04,-147.45,0,0,0,0 +units=m +no_defs "],"EPSG:20823":["EPSG:20823","+proj=utm +zone=23 +south +ellps=intl +towgs84=-151.99,287.04,-147.45,0,0,0,0 +units=m +no_defs "],"EPSG:20824":["EPSG:20824","+proj=utm +zone=24 +south +ellps=intl +towgs84=-151.99,287.04,-147.45,0,0,0,0 +units=m +no_defs "],"EPSG:20934":["EPSG:20934","+proj=utm +zone=34 +south +a=6378249.145 +b=6356514.966398753 +towgs84=-143,-90,-294,0,0,0,0 +units=m +no_defs "],"EPSG:20935":["EPSG:20935","+proj=utm +zone=35 +south +a=6378249.145 +b=6356514.966398753 +towgs84=-143,-90,-294,0,0,0,0 +units=m +no_defs "],"EPSG:20936":["EPSG:20936","+proj=utm +zone=36 +south +a=6378249.145 +b=6356514.966398753 +towgs84=-143,-90,-294,0,0,0,0 +units=m +no_defs "],"EPSG:21035":["EPSG:21035","+proj=utm +zone=35 +south +ellps=clrk80 +towgs84=-160,-6,-302,0,0,0,0 +units=m +no_defs "],"EPSG:21036":["EPSG:21036","+proj=utm +zone=36 +south +ellps=clrk80 +towgs84=-160,-6,-302,0,0,0,0 +units=m +no_defs "],"EPSG:21037":["EPSG:21037","+proj=utm +zone=37 +south +ellps=clrk80 +towgs84=-160,-6,-302,0,0,0,0 +units=m +no_defs "],"EPSG:21095":["EPSG:21095","+proj=utm +zone=35 +ellps=clrk80 +towgs84=-160,-6,-302,0,0,0,0 +units=m +no_defs "],"EPSG:21097":["EPSG:21097","+proj=utm +zone=37 +ellps=clrk80 +towgs84=-160,-6,-302,0,0,0,0 +units=m +no_defs "],"EPSG:21100":["EPSG:21100","+proj=merc +lon_0=110 +k=0.997 +x_0=3900000 +y_0=900000 +ellps=bessel +towgs84=-377,681,-50,0,0,0,0 +pm=jakarta +units=m +no_defs "],"EPSG:21148":["EPSG:21148","+proj=utm +zone=48 +south +ellps=bessel +towgs84=-377,681,-50,0,0,0,0 +units=m +no_defs "],"EPSG:21149":["EPSG:21149","+proj=utm +zone=49 +south +ellps=bessel +towgs84=-377,681,-50,0,0,0,0 +units=m +no_defs "],"EPSG:21150":["EPSG:21150","+proj=utm +zone=50 +south +ellps=bessel +towgs84=-377,681,-50,0,0,0,0 +units=m +no_defs "],"EPSG:21291":["EPSG:21291","+proj=tmerc +lat_0=0 +lon_0=-62 +k=0.9995000000000001 +x_0=400000 +y_0=0 +ellps=clrk80 +towgs84=31.95,300.99,419.19,0,0,0,0 +units=m +no_defs "],"EPSG:21292":["EPSG:21292","+proj=tmerc +lat_0=13.17638888888889 +lon_0=-59.55972222222222 +k=0.9999986 +x_0=30000 +y_0=75000 +ellps=clrk80 +towgs84=31.95,300.99,419.19,0,0,0,0 +units=m +no_defs "],"EPSG:21413":["EPSG:21413","+proj=tmerc +lat_0=0 +lon_0=75 +k=1 +x_0=13500000 +y_0=0 +ellps=krass +towgs84=15.8,-154.4,-82.3,0,0,0,0 +units=m +no_defs "],"EPSG:21414":["EPSG:21414","+proj=tmerc +lat_0=0 +lon_0=81 +k=1 +x_0=14500000 +y_0=0 +ellps=krass +towgs84=15.8,-154.4,-82.3,0,0,0,0 +units=m +no_defs "],"EPSG:21415":["EPSG:21415","+proj=tmerc +lat_0=0 +lon_0=87 +k=1 +x_0=15500000 +y_0=0 +ellps=krass +towgs84=15.8,-154.4,-82.3,0,0,0,0 +units=m +no_defs "],"EPSG:21416":["EPSG:21416","+proj=tmerc +lat_0=0 +lon_0=93 +k=1 +x_0=16500000 +y_0=0 +ellps=krass +towgs84=15.8,-154.4,-82.3,0,0,0,0 +units=m +no_defs "],"EPSG:21417":["EPSG:21417","+proj=tmerc +lat_0=0 +lon_0=99 +k=1 +x_0=17500000 +y_0=0 +ellps=krass +towgs84=15.8,-154.4,-82.3,0,0,0,0 +units=m +no_defs "],"EPSG:21418":["EPSG:21418","+proj=tmerc +lat_0=0 +lon_0=105 +k=1 +x_0=18500000 +y_0=0 +ellps=krass +towgs84=15.8,-154.4,-82.3,0,0,0,0 +units=m +no_defs "],"EPSG:21419":["EPSG:21419","+proj=tmerc +lat_0=0 +lon_0=111 +k=1 +x_0=19500000 +y_0=0 +ellps=krass +towgs84=15.8,-154.4,-82.3,0,0,0,0 +units=m +no_defs "],"EPSG:21420":["EPSG:21420","+proj=tmerc +lat_0=0 +lon_0=117 +k=1 +x_0=20500000 +y_0=0 +ellps=krass +towgs84=15.8,-154.4,-82.3,0,0,0,0 +units=m +no_defs "],"EPSG:21421":["EPSG:21421","+proj=tmerc +lat_0=0 +lon_0=123 +k=1 +x_0=21500000 +y_0=0 +ellps=krass +towgs84=15.8,-154.4,-82.3,0,0,0,0 +units=m +no_defs "],"EPSG:21422":["EPSG:21422","+proj=tmerc +lat_0=0 +lon_0=129 +k=1 +x_0=22500000 +y_0=0 +ellps=krass +towgs84=15.8,-154.4,-82.3,0,0,0,0 +units=m +no_defs "],"EPSG:21423":["EPSG:21423","+proj=tmerc +lat_0=0 +lon_0=135 +k=1 +x_0=23500000 +y_0=0 +ellps=krass +towgs84=15.8,-154.4,-82.3,0,0,0,0 +units=m +no_defs "],"EPSG:21453":["EPSG:21453","+proj=tmerc +lat_0=0 +lon_0=75 +k=1 +x_0=500000 +y_0=0 +ellps=krass +towgs84=15.8,-154.4,-82.3,0,0,0,0 +units=m +no_defs "],"EPSG:21454":["EPSG:21454","+proj=tmerc +lat_0=0 +lon_0=81 +k=1 +x_0=500000 +y_0=0 +ellps=krass +towgs84=15.8,-154.4,-82.3,0,0,0,0 +units=m +no_defs "],"EPSG:21455":["EPSG:21455","+proj=tmerc +lat_0=0 +lon_0=87 +k=1 +x_0=500000 +y_0=0 +ellps=krass +towgs84=15.8,-154.4,-82.3,0,0,0,0 +units=m +no_defs "],"EPSG:21456":["EPSG:21456","+proj=tmerc +lat_0=0 +lon_0=93 +k=1 +x_0=500000 +y_0=0 +ellps=krass +towgs84=15.8,-154.4,-82.3,0,0,0,0 +units=m +no_defs "],"EPSG:21457":["EPSG:21457","+proj=tmerc +lat_0=0 +lon_0=99 +k=1 +x_0=500000 +y_0=0 +ellps=krass +towgs84=15.8,-154.4,-82.3,0,0,0,0 +units=m +no_defs "],"EPSG:21458":["EPSG:21458","+proj=tmerc +lat_0=0 +lon_0=105 +k=1 +x_0=500000 +y_0=0 +ellps=krass +towgs84=15.8,-154.4,-82.3,0,0,0,0 +units=m +no_defs "],"EPSG:21459":["EPSG:21459","+proj=tmerc +lat_0=0 +lon_0=111 +k=1 +x_0=500000 +y_0=0 +ellps=krass +towgs84=15.8,-154.4,-82.3,0,0,0,0 +units=m +no_defs "],"EPSG:21460":["EPSG:21460","+proj=tmerc +lat_0=0 +lon_0=117 +k=1 +x_0=500000 +y_0=0 +ellps=krass +towgs84=15.8,-154.4,-82.3,0,0,0,0 +units=m +no_defs "],"EPSG:21461":["EPSG:21461","+proj=tmerc +lat_0=0 +lon_0=123 +k=1 +x_0=500000 +y_0=0 +ellps=krass +towgs84=15.8,-154.4,-82.3,0,0,0,0 +units=m +no_defs "],"EPSG:21462":["EPSG:21462","+proj=tmerc +lat_0=0 +lon_0=129 +k=1 +x_0=500000 +y_0=0 +ellps=krass +towgs84=15.8,-154.4,-82.3,0,0,0,0 +units=m +no_defs "],"EPSG:21463":["EPSG:21463","+proj=tmerc +lat_0=0 +lon_0=135 +k=1 +x_0=500000 +y_0=0 +ellps=krass +towgs84=15.8,-154.4,-82.3,0,0,0,0 +units=m +no_defs "],"EPSG:21473":["EPSG:21473","+proj=tmerc +lat_0=0 +lon_0=75 +k=1 +x_0=500000 +y_0=0 +ellps=krass +towgs84=15.8,-154.4,-82.3,0,0,0,0 +units=m +no_defs "],"EPSG:21474":["EPSG:21474","+proj=tmerc +lat_0=0 +lon_0=81 +k=1 +x_0=500000 +y_0=0 +ellps=krass +towgs84=15.8,-154.4,-82.3,0,0,0,0 +units=m +no_defs "],"EPSG:21475":["EPSG:21475","+proj=tmerc +lat_0=0 +lon_0=87 +k=1 +x_0=500000 +y_0=0 +ellps=krass +towgs84=15.8,-154.4,-82.3,0,0,0,0 +units=m +no_defs "],"EPSG:21476":["EPSG:21476","+proj=tmerc +lat_0=0 +lon_0=93 +k=1 +x_0=500000 +y_0=0 +ellps=krass +towgs84=15.8,-154.4,-82.3,0,0,0,0 +units=m +no_defs "],"EPSG:21477":["EPSG:21477","+proj=tmerc +lat_0=0 +lon_0=99 +k=1 +x_0=500000 +y_0=0 +ellps=krass +towgs84=15.8,-154.4,-82.3,0,0,0,0 +units=m +no_defs "],"EPSG:21478":["EPSG:21478","+proj=tmerc +lat_0=0 +lon_0=105 +k=1 +x_0=500000 +y_0=0 +ellps=krass +towgs84=15.8,-154.4,-82.3,0,0,0,0 +units=m +no_defs "],"EPSG:21479":["EPSG:21479","+proj=tmerc +lat_0=0 +lon_0=111 +k=1 +x_0=500000 +y_0=0 +ellps=krass +towgs84=15.8,-154.4,-82.3,0,0,0,0 +units=m +no_defs "],"EPSG:21480":["EPSG:21480","+proj=tmerc +lat_0=0 +lon_0=117 +k=1 +x_0=500000 +y_0=0 +ellps=krass +towgs84=15.8,-154.4,-82.3,0,0,0,0 +units=m +no_defs "],"EPSG:21481":["EPSG:21481","+proj=tmerc +lat_0=0 +lon_0=123 +k=1 +x_0=500000 +y_0=0 +ellps=krass +towgs84=15.8,-154.4,-82.3,0,0,0,0 +units=m +no_defs "],"EPSG:21482":["EPSG:21482","+proj=tmerc +lat_0=0 +lon_0=129 +k=1 +x_0=500000 +y_0=0 +ellps=krass +towgs84=15.8,-154.4,-82.3,0,0,0,0 +units=m +no_defs "],"EPSG:21483":["EPSG:21483","+proj=tmerc +lat_0=0 +lon_0=135 +k=1 +x_0=500000 +y_0=0 +ellps=krass +towgs84=15.8,-154.4,-82.3,0,0,0,0 +units=m +no_defs "],"EPSG:21500":["EPSG:21500","+proj=lcc +lat_1=49.83333333333334 +lat_2=51.16666666666666 +lat_0=90 +lon_0=0 +x_0=150000 +y_0=5400000 +ellps=intl +pm=brussels +units=m +no_defs "],"EPSG:21780":["EPSG:21780","+proj=somerc +lat_0=46.95240555555556 +lon_0=0 +k_0=1 +x_0=0 +y_0=0 +ellps=bessel +towgs84=674.4,15.1,405.3,0,0,0,0 +pm=bern +units=m +no_defs "],"EPSG:21782":["EPSG:21782","+proj=somerc +lat_0=46.95240555555556 +lon_0=7.439583333333333 +k_0=1 +x_0=0 +y_0=0 +ellps=bessel +towgs84=674.4,15.1,405.3,0,0,0,0 +units=m +no_defs "],"EPSG:21817":["EPSG:21817","+proj=utm +zone=17 +ellps=intl +towgs84=307,304,-318,0,0,0,0 +units=m +no_defs "],"EPSG:21818":["EPSG:21818","+proj=utm +zone=18 +ellps=intl +towgs84=307,304,-318,0,0,0,0 +units=m +no_defs "],"EPSG:5262":["EPSG:5262","+proj=geocent +ellps=GRS80 +units=m +no_defs "],"EPSG:21891":["EPSG:21891","+proj=tmerc +lat_0=4.599047222222222 +lon_0=-77.08091666666667 +k=1 +x_0=1000000 +y_0=1000000 +ellps=intl +towgs84=307,304,-318,0,0,0,0 +units=m +no_defs "],"EPSG:21893":["EPSG:21893","+proj=tmerc +lat_0=4.599047222222222 +lon_0=-71.08091666666667 +k=1 +x_0=1000000 +y_0=1000000 +ellps=intl +towgs84=307,304,-318,0,0,0,0 +units=m +no_defs "],"EPSG:21894":["EPSG:21894","+proj=tmerc +lat_0=4.599047222222222 +lon_0=-68.08091666666667 +k=1 +x_0=1000000 +y_0=1000000 +ellps=intl +towgs84=307,304,-318,0,0,0,0 +units=m +no_defs "],"EPSG:21896":["EPSG:21896","+proj=tmerc +lat_0=4.599047222222222 +lon_0=-77.08091666666667 +k=1 +x_0=1000000 +y_0=1000000 +ellps=intl +towgs84=307,304,-318,0,0,0,0 +units=m +no_defs "],"EPSG:21898":["EPSG:21898","+proj=tmerc +lat_0=4.599047222222222 +lon_0=-71.08091666666667 +k=1 +x_0=1000000 +y_0=1000000 +ellps=intl +towgs84=307,304,-318,0,0,0,0 +units=m +no_defs "],"EPSG:21899":["EPSG:21899","+proj=tmerc +lat_0=4.599047222222222 +lon_0=-68.08091666666667 +k=1 +x_0=1000000 +y_0=1000000 +ellps=intl +towgs84=307,304,-318,0,0,0,0 +units=m +no_defs "],"EPSG:22032":["EPSG:22032","+proj=utm +zone=32 +south +ellps=clrk80 +towgs84=-50.9,-347.6,-231,0,0,0,0 +units=m +no_defs "],"EPSG:22033":["EPSG:22033","+proj=utm +zone=33 +south +ellps=clrk80 +towgs84=-50.9,-347.6,-231,0,0,0,0 +units=m +no_defs "],"EPSG:22091":["EPSG:22091","+proj=tmerc +lat_0=0 +lon_0=11.5 +k=0.9996 +x_0=500000 +y_0=10000000 +ellps=clrk80 +towgs84=-50.9,-347.6,-231,0,0,0,0 +units=m +no_defs "],"EPSG:22092":["EPSG:22092","+proj=tmerc +lat_0=0 +lon_0=12 +k=0.9996 +x_0=500000 +y_0=10000000 +ellps=clrk80 +towgs84=-50.9,-347.6,-231,0,0,0,0 +units=m +no_defs "],"EPSG:22171":["EPSG:22171","+proj=tmerc +lat_0=-90 +lon_0=-72 +k=1 +x_0=1500000 +y_0=0 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs "],"EPSG:22172":["EPSG:22172","+proj=tmerc +lat_0=-90 +lon_0=-69 +k=1 +x_0=2500000 +y_0=0 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs "],"EPSG:22173":["EPSG:22173","+proj=tmerc +lat_0=-90 +lon_0=-66 +k=1 +x_0=3500000 +y_0=0 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs "],"EPSG:22174":["EPSG:22174","+proj=tmerc +lat_0=-90 +lon_0=-63 +k=1 +x_0=4500000 +y_0=0 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs "],"EPSG:22175":["EPSG:22175","+proj=tmerc +lat_0=-90 +lon_0=-60 +k=1 +x_0=5500000 +y_0=0 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs "],"EPSG:22176":["EPSG:22176","+proj=tmerc +lat_0=-90 +lon_0=-57 +k=1 +x_0=6500000 +y_0=0 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs "],"EPSG:22177":["EPSG:22177","+proj=tmerc +lat_0=-90 +lon_0=-54 +k=1 +x_0=7500000 +y_0=0 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs "],"EPSG:22181":["EPSG:22181","+proj=tmerc +lat_0=-90 +lon_0=-72 +k=1 +x_0=1500000 +y_0=0 +ellps=WGS84 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs "],"EPSG:22182":["EPSG:22182","+proj=tmerc +lat_0=-90 +lon_0=-69 +k=1 +x_0=2500000 +y_0=0 +ellps=WGS84 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs "],"EPSG:22183":["EPSG:22183","+proj=tmerc +lat_0=-90 +lon_0=-66 +k=1 +x_0=3500000 +y_0=0 +ellps=WGS84 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs "],"EPSG:22186":["EPSG:22186","+proj=tmerc +lat_0=-90 +lon_0=-57 +k=1 +x_0=6500000 +y_0=0 +ellps=WGS84 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs "],"EPSG:22187":["EPSG:22187","+proj=tmerc +lat_0=-90 +lon_0=-54 +k=1 +x_0=7500000 +y_0=0 +ellps=WGS84 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs "],"EPSG:22191":["EPSG:22191","+proj=tmerc +lat_0=-90 +lon_0=-72 +k=1 +x_0=1500000 +y_0=0 +ellps=intl +towgs84=-148,136,90,0,0,0,0 +units=m +no_defs "],"EPSG:22192":["EPSG:22192","+proj=tmerc +lat_0=-90 +lon_0=-69 +k=1 +x_0=2500000 +y_0=0 +ellps=intl +towgs84=-148,136,90,0,0,0,0 +units=m +no_defs "],"EPSG:22193":["EPSG:22193","+proj=tmerc +lat_0=-90 +lon_0=-66 +k=1 +x_0=3500000 +y_0=0 +ellps=intl +towgs84=-148,136,90,0,0,0,0 +units=m +no_defs "],"EPSG:22194":["EPSG:22194","+proj=tmerc +lat_0=-90 +lon_0=-63 +k=1 +x_0=4500000 +y_0=0 +ellps=intl +towgs84=-148,136,90,0,0,0,0 +units=m +no_defs "],"EPSG:22195":["EPSG:22195","+proj=tmerc +lat_0=-90 +lon_0=-60 +k=1 +x_0=5500000 +y_0=0 +ellps=intl +towgs84=-148,136,90,0,0,0,0 +units=m +no_defs "],"EPSG:22196":["EPSG:22196","+proj=tmerc +lat_0=-90 +lon_0=-57 +k=1 +x_0=6500000 +y_0=0 +ellps=intl +towgs84=-148,136,90,0,0,0,0 +units=m +no_defs "],"EPSG:22197":["EPSG:22197","+proj=tmerc +lat_0=-90 +lon_0=-54 +k=1 +x_0=7500000 +y_0=0 +ellps=intl +towgs84=-148,136,90,0,0,0,0 +units=m +no_defs "],"EPSG:22234":["EPSG:22234","+proj=utm +zone=34 +south +a=6378249.145 +b=6356514.966398753 +towgs84=-136,-108,-292,0,0,0,0 +units=m +no_defs "],"EPSG:22235":["EPSG:22235","+proj=utm +zone=35 +south +a=6378249.145 +b=6356514.966398753 +towgs84=-136,-108,-292,0,0,0,0 +units=m +no_defs "],"EPSG:22236":["EPSG:22236","+proj=utm +zone=36 +south +a=6378249.145 +b=6356514.966398753 +towgs84=-136,-108,-292,0,0,0,0 +units=m +no_defs "],"EPSG:22275":["EPSG:22275","+proj=tmerc +lat_0=0 +lon_0=15 +k=1 +x_0=0 +y_0=0 +axis=wsu +a=6378249.145 +b=6356514.966398753 +towgs84=-136,-108,-292,0,0,0,0 +units=m +no_defs "],"EPSG:22277":["EPSG:22277","+proj=tmerc +lat_0=0 +lon_0=17 +k=1 +x_0=0 +y_0=0 +axis=wsu +a=6378249.145 +b=6356514.966398753 +towgs84=-136,-108,-292,0,0,0,0 +units=m +no_defs "],"EPSG:22279":["EPSG:22279","+proj=tmerc +lat_0=0 +lon_0=19 +k=1 +x_0=0 +y_0=0 +axis=wsu +a=6378249.145 +b=6356514.966398753 +towgs84=-136,-108,-292,0,0,0,0 +units=m +no_defs "],"EPSG:22281":["EPSG:22281","+proj=tmerc +lat_0=0 +lon_0=21 +k=1 +x_0=0 +y_0=0 +axis=wsu +a=6378249.145 +b=6356514.966398753 +towgs84=-136,-108,-292,0,0,0,0 +units=m +no_defs "],"EPSG:22283":["EPSG:22283","+proj=tmerc +lat_0=0 +lon_0=23 +k=1 +x_0=0 +y_0=0 +axis=wsu +a=6378249.145 +b=6356514.966398753 +towgs84=-136,-108,-292,0,0,0,0 +units=m +no_defs "],"EPSG:22285":["EPSG:22285","+proj=tmerc +lat_0=0 +lon_0=25 +k=1 +x_0=0 +y_0=0 +axis=wsu +a=6378249.145 +b=6356514.966398753 +towgs84=-136,-108,-292,0,0,0,0 +units=m +no_defs "],"EPSG:22287":["EPSG:22287","+proj=tmerc +lat_0=0 +lon_0=27 +k=1 +x_0=0 +y_0=0 +axis=wsu +a=6378249.145 +b=6356514.966398753 +towgs84=-136,-108,-292,0,0,0,0 +units=m +no_defs "],"EPSG:22289":["EPSG:22289","+proj=tmerc +lat_0=0 +lon_0=29 +k=1 +x_0=0 +y_0=0 +axis=wsu +a=6378249.145 +b=6356514.966398753 +towgs84=-136,-108,-292,0,0,0,0 +units=m +no_defs "],"EPSG:22291":["EPSG:22291","+proj=tmerc +lat_0=0 +lon_0=31 +k=1 +x_0=0 +y_0=0 +axis=wsu +a=6378249.145 +b=6356514.966398753 +towgs84=-136,-108,-292,0,0,0,0 +units=m +no_defs "],"EPSG:22293":["EPSG:22293","+proj=tmerc +lat_0=0 +lon_0=33 +k=1 +x_0=0 +y_0=0 +axis=wsu +a=6378249.145 +b=6356514.966398753 +towgs84=-136,-108,-292,0,0,0,0 +units=m +no_defs "],"EPSG:22300":["EPSG:22300",""],"EPSG:22332":["EPSG:22332","+proj=utm +zone=32 +datum=carthage +units=m +no_defs "],"EPSG:22392":["EPSG:22392","+proj=lcc +lat_1=33.3 +lat_0=33.3 +lon_0=9.9 +k_0=0.999625769 +x_0=500000 +y_0=300000 +datum=carthage +units=m +no_defs "],"EPSG:22521":["EPSG:22521","+proj=utm +zone=21 +south +ellps=intl +towgs84=-205.57,168.77,-4.12,0,0,0,0 +units=m +no_defs "],"EPSG:22522":["EPSG:22522","+proj=utm +zone=22 +south +ellps=intl +towgs84=-205.57,168.77,-4.12,0,0,0,0 +units=m +no_defs "],"EPSG:22525":["EPSG:22525","+proj=utm +zone=25 +south +ellps=intl +towgs84=-205.57,168.77,-4.12,0,0,0,0 +units=m +no_defs "],"EPSG:22700":["EPSG:22700","+proj=lcc +lat_1=34.65 +lat_0=34.65 +lon_0=37.35 +k_0=0.9996256 +x_0=300000 +y_0=300000 +a=6378249.2 +b=6356515 +towgs84=-190.421,8.532,238.69,0,0,0,0 +units=m +no_defs "],"EPSG:22770":["EPSG:22770","+proj=lcc +lat_1=34.65 +lat_0=34.65 +lon_0=37.35 +k_0=0.9996256 +x_0=300000 +y_0=300000 +a=6378249.2 +b=6356515 +towgs84=-190.421,8.532,238.69,0,0,0,0 +units=m +no_defs "],"EPSG:22780":["EPSG:22780","+proj=sterea +lat_0=34.2 +lon_0=39.15 +k=0.9995341 +x_0=0 +y_0=0 +a=6378249.2 +b=6356515 +towgs84=-190.421,8.532,238.69,0,0,0,0 +units=m +no_defs "],"EPSG:5322":["EPSG:5322","+proj=geocent +ellps=GRS80 +units=m +no_defs "],"EPSG:22991":["EPSG:22991","+proj=tmerc +lat_0=30 +lon_0=35 +k=1 +x_0=300000 +y_0=1100000 +ellps=helmert +towgs84=-130,110,-13,0,0,0,0 +units=m +no_defs "],"EPSG:22992":["EPSG:22992","+proj=tmerc +lat_0=30 +lon_0=31 +k=1 +x_0=615000 +y_0=810000 +ellps=helmert +towgs84=-130,110,-13,0,0,0,0 +units=m +no_defs "],"EPSG:22993":["EPSG:22993","+proj=tmerc +lat_0=30 +lon_0=27 +k=1 +x_0=700000 +y_0=200000 +ellps=helmert +towgs84=-130,110,-13,0,0,0,0 +units=m +no_defs "],"EPSG:22994":["EPSG:22994","+proj=tmerc +lat_0=30 +lon_0=27 +k=1 +x_0=700000 +y_0=1200000 +ellps=helmert +towgs84=-130,110,-13,0,0,0,0 +units=m +no_defs "],"EPSG:23028":["EPSG:23028","+proj=utm +zone=28 +ellps=intl +towgs84=-87,-98,-121,0,0,0,0 +units=m +no_defs "],"EPSG:23034":["EPSG:23034","+proj=utm +zone=34 +ellps=intl +towgs84=-87,-98,-121,0,0,0,0 +units=m +no_defs "],"EPSG:23037":["EPSG:23037","+proj=utm +zone=37 +ellps=intl +towgs84=-87,-98,-121,0,0,0,0 +units=m +no_defs "],"EPSG:23038":["EPSG:23038","+proj=utm +zone=38 +ellps=intl +towgs84=-87,-98,-121,0,0,0,0 +units=m +no_defs "],"EPSG:23090":["EPSG:23090","+proj=tmerc +lat_0=0 +lon_0=0 +k=0.9996 +x_0=500000 +y_0=0 +ellps=intl +towgs84=-87,-98,-121,0,0,0,0 +units=m +no_defs "],"EPSG:23095":["EPSG:23095","+proj=tmerc +lat_0=0 +lon_0=5 +k=0.9996 +x_0=500000 +y_0=0 +ellps=intl +towgs84=-87,-98,-121,0,0,0,0 +units=m +no_defs "],"EPSG:23239":["EPSG:23239","+proj=utm +zone=39 +ellps=clrk80 +towgs84=-333.102,-11.02,230.69,0,0,0.554,0.219 +units=m +no_defs "],"EPSG:23240":["EPSG:23240","+proj=utm +zone=40 +ellps=clrk80 +towgs84=-333.102,-11.02,230.69,0,0,0.554,0.219 +units=m +no_defs "],"EPSG:23433":["EPSG:23433","+proj=utm +zone=33 +a=6378249.2 +b=6356515 +units=m +no_defs "],"EPSG:23830":["EPSG:23830","+proj=tmerc +lat_0=0 +lon_0=94.5 +k=0.9999 +x_0=200000 +y_0=1500000 +ellps=WGS84 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs "],"EPSG:23831":["EPSG:23831","+proj=tmerc +lat_0=0 +lon_0=97.5 +k=0.9999 +x_0=200000 +y_0=1500000 +ellps=WGS84 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs "],"EPSG:23832":["EPSG:23832","+proj=tmerc +lat_0=0 +lon_0=100.5 +k=0.9999 +x_0=200000 +y_0=1500000 +ellps=WGS84 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs "],"EPSG:23833":["EPSG:23833","+proj=tmerc +lat_0=0 +lon_0=103.5 +k=0.9999 +x_0=200000 +y_0=1500000 +ellps=WGS84 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs "],"EPSG:23835":["EPSG:23835","+proj=tmerc +lat_0=0 +lon_0=109.5 +k=0.9999 +x_0=200000 +y_0=1500000 +ellps=WGS84 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs "],"EPSG:23836":["EPSG:23836","+proj=tmerc +lat_0=0 +lon_0=112.5 +k=0.9999 +x_0=200000 +y_0=1500000 +ellps=WGS84 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs "],"EPSG:23837":["EPSG:23837","+proj=tmerc +lat_0=0 +lon_0=115.5 +k=0.9999 +x_0=200000 +y_0=1500000 +ellps=WGS84 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs "],"EPSG:5332":["EPSG:5332","+proj=geocent +ellps=GRS80 +units=m +no_defs "],"EPSG:23838":["EPSG:23838","+proj=tmerc +lat_0=0 +lon_0=118.5 +k=0.9999 +x_0=200000 +y_0=1500000 +ellps=WGS84 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs "],"EPSG:23839":["EPSG:23839","+proj=tmerc +lat_0=0 +lon_0=121.5 +k=0.9999 +x_0=200000 +y_0=1500000 +ellps=WGS84 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs "],"EPSG:23840":["EPSG:23840","+proj=tmerc +lat_0=0 +lon_0=124.5 +k=0.9999 +x_0=200000 +y_0=1500000 +ellps=WGS84 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs "],"EPSG:23841":["EPSG:23841","+proj=tmerc +lat_0=0 +lon_0=127.5 +k=0.9999 +x_0=200000 +y_0=1500000 +ellps=WGS84 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs "],"EPSG:23842":["EPSG:23842","+proj=tmerc +lat_0=0 +lon_0=130.5 +k=0.9999 +x_0=200000 +y_0=1500000 +ellps=WGS84 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs "],"EPSG:23843":["EPSG:23843","+proj=tmerc +lat_0=0 +lon_0=133.5 +k=0.9999 +x_0=200000 +y_0=1500000 +ellps=WGS84 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs "],"EPSG:23844":["EPSG:23844","+proj=tmerc +lat_0=0 +lon_0=136.5 +k=0.9999 +x_0=200000 +y_0=1500000 +ellps=WGS84 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs "],"EPSG:23845":["EPSG:23845","+proj=tmerc +lat_0=0 +lon_0=139.5 +k=0.9999 +x_0=200000 +y_0=1500000 +ellps=WGS84 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs "],"EPSG:23846":["EPSG:23846","+proj=utm +zone=46 +a=6378160 +b=6356774.50408554 +towgs84=-24,-15,5,0,0,0,0 +units=m +no_defs "],"EPSG:23847":["EPSG:23847","+proj=utm +zone=47 +a=6378160 +b=6356774.50408554 +towgs84=-24,-15,5,0,0,0,0 +units=m +no_defs "],"EPSG:23848":["EPSG:23848","+proj=utm +zone=48 +a=6378160 +b=6356774.50408554 +towgs84=-24,-15,5,0,0,0,0 +units=m +no_defs "],"EPSG:23849":["EPSG:23849","+proj=utm +zone=49 +a=6378160 +b=6356774.50408554 +towgs84=-24,-15,5,0,0,0,0 +units=m +no_defs "],"EPSG:23850":["EPSG:23850","+proj=utm +zone=50 +a=6378160 +b=6356774.50408554 +towgs84=-24,-15,5,0,0,0,0 +units=m +no_defs "],"EPSG:23851":["EPSG:23851","+proj=utm +zone=51 +a=6378160 +b=6356774.50408554 +towgs84=-24,-15,5,0,0,0,0 +units=m +no_defs "],"EPSG:23852":["EPSG:23852","+proj=utm +zone=52 +a=6378160 +b=6356774.50408554 +towgs84=-24,-15,5,0,0,0,0 +units=m +no_defs "],"EPSG:23853":["EPSG:23853","+proj=utm +zone=53 +a=6378160 +b=6356774.50408554 +towgs84=-24,-15,5,0,0,0,0 +units=m +no_defs "],"EPSG:23866":["EPSG:23866","+proj=utm +zone=46 +ellps=WGS84 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs "],"EPSG:23867":["EPSG:23867","+proj=utm +zone=47 +ellps=WGS84 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs "],"EPSG:23868":["EPSG:23868","+proj=utm +zone=48 +ellps=WGS84 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs "],"EPSG:23869":["EPSG:23869","+proj=utm +zone=49 +ellps=WGS84 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs "],"EPSG:23870":["EPSG:23870","+proj=utm +zone=50 +ellps=WGS84 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs "],"EPSG:23871":["EPSG:23871","+proj=utm +zone=51 +ellps=WGS84 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs "],"EPSG:23872":["EPSG:23872","+proj=utm +zone=52 +ellps=WGS84 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs "],"EPSG:23877":["EPSG:23877","+proj=utm +zone=47 +south +ellps=WGS84 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs "],"EPSG:23878":["EPSG:23878","+proj=utm +zone=48 +south +ellps=WGS84 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs "],"EPSG:23880":["EPSG:23880","+proj=utm +zone=50 +south +ellps=WGS84 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs "],"EPSG:23881":["EPSG:23881","+proj=utm +zone=51 +south +ellps=WGS84 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs "],"EPSG:23882":["EPSG:23882","+proj=utm +zone=52 +south +ellps=WGS84 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs "],"EPSG:23883":["EPSG:23883","+proj=utm +zone=53 +south +ellps=WGS84 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs "],"EPSG:23886":["EPSG:23886","+proj=utm +zone=46 +south +a=6378160 +b=6356774.50408554 +towgs84=-24,-15,5,0,0,0,0 +units=m +no_defs "],"EPSG:23887":["EPSG:23887","+proj=utm +zone=47 +south +a=6378160 +b=6356774.50408554 +towgs84=-24,-15,5,0,0,0,0 +units=m +no_defs "],"EPSG:23888":["EPSG:23888","+proj=utm +zone=48 +south +a=6378160 +b=6356774.50408554 +towgs84=-24,-15,5,0,0,0,0 +units=m +no_defs "],"EPSG:23889":["EPSG:23889","+proj=utm +zone=49 +south +a=6378160 +b=6356774.50408554 +towgs84=-24,-15,5,0,0,0,0 +units=m +no_defs "],"EPSG:23890":["EPSG:23890","+proj=utm +zone=50 +south +a=6378160 +b=6356774.50408554 +towgs84=-24,-15,5,0,0,0,0 +units=m +no_defs "],"EPSG:23891":["EPSG:23891","+proj=utm +zone=51 +south +a=6378160 +b=6356774.50408554 +towgs84=-24,-15,5,0,0,0,0 +units=m +no_defs "],"EPSG:23892":["EPSG:23892","+proj=utm +zone=52 +south +a=6378160 +b=6356774.50408554 +towgs84=-24,-15,5,0,0,0,0 +units=m +no_defs "],"EPSG:23893":["EPSG:23893","+proj=utm +zone=53 +south +a=6378160 +b=6356774.50408554 +towgs84=-24,-15,5,0,0,0,0 +units=m +no_defs "],"EPSG:23894":["EPSG:23894","+proj=utm +zone=54 +south +a=6378160 +b=6356774.50408554 +towgs84=-24,-15,5,0,0,0,0 +units=m +no_defs "],"EPSG:23946":["EPSG:23946","+proj=utm +zone=46 +a=6377276.345 +b=6356075.41314024 +towgs84=217,823,299,0,0,0,0 +units=m +no_defs "],"EPSG:23947":["EPSG:23947","+proj=utm +zone=47 +a=6377276.345 +b=6356075.41314024 +towgs84=217,823,299,0,0,0,0 +units=m +no_defs "],"EPSG:24100":["EPSG:24100","+proj=lcc +lat_1=18 +lat_0=18 +lon_0=-77 +k_0=1 +x_0=167638.49597 +y_0=121918.90616 +a=6378249.144808011 +b=6356514.966204134 +to_meter=0.3047972654 +no_defs "],"EPSG:24200":["EPSG:24200","+proj=lcc +lat_1=18 +lat_0=18 +lon_0=-77 +k_0=1 +x_0=250000 +y_0=150000 +ellps=clrk66 +towgs84=70,207,389.5,0,0,0,0 +units=m +no_defs "],"EPSG:24305":["EPSG:24305","+proj=utm +zone=45 +a=6377276.345 +b=6356075.41314024 +towgs84=214,804,268,0,0,0,0 +units=m +no_defs "],"EPSG:24306":["EPSG:24306","+proj=utm +zone=46 +a=6377276.345 +b=6356075.41314024 +towgs84=214,804,268,0,0,0,0 +units=m +no_defs "],"EPSG:5341":["EPSG:5341","+proj=geocent +ellps=GRS80 +units=m +no_defs "],"EPSG:24311":["EPSG:24311","+proj=utm +zone=41 +a=6377301.243 +b=6356100.230165384 +towgs84=283,682,231,0,0,0,0 +units=m +no_defs "],"EPSG:24312":["EPSG:24312","+proj=utm +zone=42 +a=6377301.243 +b=6356100.230165384 +towgs84=283,682,231,0,0,0,0 +units=m +no_defs "],"EPSG:24313":["EPSG:24313","+proj=utm +zone=43 +a=6377301.243 +b=6356100.230165384 +towgs84=283,682,231,0,0,0,0 +units=m +no_defs "],"EPSG:24342":["EPSG:24342","+proj=utm +zone=42 +a=6377299.151 +b=6356098.145120132 +towgs84=295,736,257,0,0,0,0 +units=m +no_defs "],"EPSG:24343":["EPSG:24343","+proj=utm +zone=43 +a=6377299.151 +b=6356098.145120132 +towgs84=295,736,257,0,0,0,0 +units=m +no_defs "],"EPSG:24344":["EPSG:24344","+proj=utm +zone=44 +a=6377299.151 +b=6356098.145120132 +towgs84=295,736,257,0,0,0,0 +units=m +no_defs "],"EPSG:24345":["EPSG:24345","+proj=utm +zone=45 +a=6377299.151 +b=6356098.145120132 +towgs84=295,736,257,0,0,0,0 +units=m +no_defs "],"EPSG:24346":["EPSG:24346","+proj=utm +zone=46 +a=6377299.151 +b=6356098.145120132 +towgs84=295,736,257,0,0,0,0 +units=m +no_defs "],"EPSG:24347":["EPSG:24347","+proj=utm +zone=47 +a=6377299.151 +b=6356098.145120132 +towgs84=295,736,257,0,0,0,0 +units=m +no_defs "],"EPSG:24370":["EPSG:24370","+proj=lcc +lat_1=39.5 +lat_0=39.5 +lon_0=68 +k_0=0.99846154 +x_0=2153865.73916853 +y_0=2368292.194628102 +a=6377299.36559538 +b=6356098.359005156 +to_meter=0.9143985307444408 +no_defs "],"EPSG:24371":["EPSG:24371","+proj=lcc +lat_1=32.5 +lat_0=32.5 +lon_0=68 +k_0=0.99878641 +x_0=2743195.592233322 +y_0=914398.5307444407 +a=6377299.36559538 +b=6356098.359005156 +to_meter=0.9143985307444408 +no_defs "],"EPSG:24372":["EPSG:24372","+proj=lcc +lat_1=26 +lat_0=26 +lon_0=74 +k_0=0.99878641 +x_0=2743195.592233322 +y_0=914398.5307444407 +a=6377299.36559538 +b=6356098.359005156 +to_meter=0.9143985307444408 +no_defs "],"EPSG:24373":["EPSG:24373","+proj=lcc +lat_1=19 +lat_0=19 +lon_0=80 +k_0=0.99878641 +x_0=2743195.592233322 +y_0=914398.5307444407 +a=6377299.36559538 +b=6356098.359005156 +to_meter=0.9143985307444408 +no_defs "],"EPSG:24374":["EPSG:24374","+proj=lcc +lat_1=12 +lat_0=12 +lon_0=80 +k_0=0.99878641 +x_0=2743195.592233322 +y_0=914398.5307444407 +a=6377299.36559538 +b=6356098.359005156 +to_meter=0.9143985307444408 +no_defs "],"EPSG:24375":["EPSG:24375","+proj=lcc +lat_1=26 +lat_0=26 +lon_0=90 +k_0=0.99878641 +x_0=2743185.69 +y_0=914395.23 +a=6377276.345 +b=6356075.41314024 +towgs84=214,804,268,0,0,0,0 +units=m +no_defs "],"EPSG:24376":["EPSG:24376","+proj=lcc +lat_1=32.5 +lat_0=32.5 +lon_0=68 +k_0=0.99878641 +x_0=2743196.4 +y_0=914398.8 +a=6377301.243 +b=6356100.230165384 +towgs84=283,682,231,0,0,0,0 +units=m +no_defs "],"EPSG:24377":["EPSG:24377","+proj=lcc +lat_1=26 +lat_0=26 +lon_0=74 +k_0=0.99878641 +x_0=2743196.4 +y_0=914398.8 +a=6377301.243 +b=6356100.230165384 +towgs84=283,682,231,0,0,0,0 +units=m +no_defs "],"EPSG:24378":["EPSG:24378","+proj=lcc +lat_1=32.5 +lat_0=32.5 +lon_0=68 +k_0=0.99878641 +x_0=2743195.5 +y_0=914398.5 +a=6377299.151 +b=6356098.145120132 +towgs84=295,736,257,0,0,0,0 +units=m +no_defs "],"EPSG:24379":["EPSG:24379","+proj=lcc +lat_1=26 +lat_0=26 +lon_0=74 +k_0=0.99878641 +x_0=2743195.5 +y_0=914398.5 +a=6377299.151 +b=6356098.145120132 +towgs84=295,736,257,0,0,0,0 +units=m +no_defs "],"EPSG:24380":["EPSG:24380","+proj=lcc +lat_1=26 +lat_0=26 +lon_0=90 +k_0=0.99878641 +x_0=2743195.5 +y_0=914398.5 +a=6377299.151 +b=6356098.145120132 +towgs84=295,736,257,0,0,0,0 +units=m +no_defs "],"EPSG:24381":["EPSG:24381","+proj=lcc +lat_1=19 +lat_0=19 +lon_0=80 +k_0=0.99878641 +x_0=2743195.5 +y_0=914398.5 +a=6377299.151 +b=6356098.145120132 +towgs84=295,736,257,0,0,0,0 +units=m +no_defs "],"EPSG:24382":["EPSG:24382","+proj=lcc +lat_1=26 +lat_0=26 +lon_0=90 +k_0=0.99878641 +x_0=2743195.592233322 +y_0=914398.5307444407 +a=6377299.36559538 +b=6356098.359005156 +to_meter=0.9143985307444408 +no_defs "],"EPSG:24383":["EPSG:24383","+proj=lcc +lat_1=12 +lat_0=12 +lon_0=80 +k_0=0.99878641 +x_0=2743195.5 +y_0=914398.5 +a=6377299.151 +b=6356098.145120132 +towgs84=295,736,257,0,0,0,0 +units=m +no_defs "],"EPSG:24500":["EPSG:24500","+proj=cass +lat_0=1.287646666666667 +lon_0=103.8530022222222 +x_0=30000 +y_0=30000 +a=6377304.063 +b=6356103.038993155 +towgs84=-11,851,5,0,0,0,0 +units=m +no_defs "],"EPSG:24547":["EPSG:24547","+proj=utm +zone=47 +a=6377304.063 +b=6356103.038993155 +towgs84=-11,851,5,0,0,0,0 +units=m +no_defs "],"EPSG:24548":["EPSG:24548","+proj=utm +zone=48 +a=6377304.063 +b=6356103.038993155 +towgs84=-11,851,5,0,0,0,0 +units=m +no_defs "],"EPSG:24600":["EPSG:24600","+proj=lcc +lat_1=32.5 +lat_0=32.5 +lon_0=45 +k_0=0.9987864078000001 +x_0=1500000 +y_0=1166200 +ellps=clrk80 +towgs84=-294.7,-200.1,525.5,0,0,0,0 +units=m +no_defs "],"EPSG:24718":["EPSG:24718","+proj=utm +zone=18 +ellps=intl +towgs84=-273.5,110.6,-357.9,0,0,0,0 +units=m +no_defs "],"EPSG:24720":["EPSG:24720","+proj=utm +zone=20 +ellps=intl +towgs84=-273.5,110.6,-357.9,0,0,0,0 +units=m +no_defs "],"EPSG:24817":["EPSG:24817","+proj=utm +zone=17 +ellps=intl +towgs84=-288,175,-376,0,0,0,0 +units=m +no_defs "],"EPSG:24818":["EPSG:24818","+proj=utm +zone=18 +ellps=intl +towgs84=-288,175,-376,0,0,0,0 +units=m +no_defs "],"EPSG:24819":["EPSG:24819","+proj=utm +zone=19 +ellps=intl +towgs84=-288,175,-376,0,0,0,0 +units=m +no_defs "],"EPSG:24820":["EPSG:24820","+proj=utm +zone=20 +ellps=intl +towgs84=-288,175,-376,0,0,0,0 +units=m +no_defs "],"EPSG:5352":["EPSG:5352","+proj=geocent +ellps=GRS80 +units=m +no_defs "],"EPSG:24821":["EPSG:24821","+proj=utm +zone=21 +ellps=intl +towgs84=-288,175,-376,0,0,0,0 +units=m +no_defs "],"EPSG:24877":["EPSG:24877","+proj=utm +zone=17 +south +ellps=intl +towgs84=-288,175,-376,0,0,0,0 +units=m +no_defs "],"EPSG:24878":["EPSG:24878","+proj=utm +zone=18 +south +ellps=intl +towgs84=-288,175,-376,0,0,0,0 +units=m +no_defs "],"EPSG:24879":["EPSG:24879","+proj=utm +zone=19 +south +ellps=intl +towgs84=-288,175,-376,0,0,0,0 +units=m +no_defs "],"EPSG:24880":["EPSG:24880","+proj=utm +zone=20 +south +ellps=intl +towgs84=-288,175,-376,0,0,0,0 +units=m +no_defs "],"EPSG:24881":["EPSG:24881","+proj=utm +zone=21 +south +ellps=intl +towgs84=-288,175,-376,0,0,0,0 +units=m +no_defs "],"EPSG:24882":["EPSG:24882","+proj=utm +zone=22 +south +ellps=intl +towgs84=-288,175,-376,0,0,0,0 +units=m +no_defs "],"EPSG:24891":["EPSG:24891","+proj=tmerc +lat_0=-6 +lon_0=-80.5 +k=0.99983008 +x_0=222000 +y_0=1426834.743 +ellps=intl +towgs84=-288,175,-376,0,0,0,0 +units=m +no_defs "],"EPSG:24892":["EPSG:24892","+proj=tmerc +lat_0=-9.5 +lon_0=-76 +k=0.99932994 +x_0=720000 +y_0=1039979.159 +ellps=intl +towgs84=-288,175,-376,0,0,0,0 +units=m +no_defs "],"EPSG:24893":["EPSG:24893","+proj=tmerc +lat_0=-9.5 +lon_0=-70.5 +k=0.99952992 +x_0=1324000 +y_0=1040084.558 +ellps=intl +towgs84=-288,175,-376,0,0,0,0 +units=m +no_defs "],"EPSG:25000":["EPSG:25000","+proj=tmerc +lat_0=4.666666666666667 +lon_0=-1 +k=0.99975 +x_0=274319.51 +y_0=0 +ellps=clrk80 +towgs84=-130,29,364,0,0,0,0 +units=m +no_defs "],"EPSG:25231":["EPSG:25231","+proj=utm +zone=31 +a=6378249.2 +b=6356515 +units=m +no_defs "],"EPSG:25391":["EPSG:25391","+proj=tmerc +lat_0=0 +lon_0=117 +k=0.99995 +x_0=500000 +y_0=0 +ellps=clrk66 +towgs84=-133,-77,-51,0,0,0,0 +units=m +no_defs "],"EPSG:25392":["EPSG:25392","+proj=tmerc +lat_0=0 +lon_0=119 +k=0.99995 +x_0=500000 +y_0=0 +ellps=clrk66 +towgs84=-133,-77,-51,0,0,0,0 +units=m +no_defs "],"EPSG:25393":["EPSG:25393","+proj=tmerc +lat_0=0 +lon_0=121 +k=0.99995 +x_0=500000 +y_0=0 +ellps=clrk66 +towgs84=-133,-77,-51,0,0,0,0 +units=m +no_defs "],"EPSG:25394":["EPSG:25394","+proj=tmerc +lat_0=0 +lon_0=123 +k=0.99995 +x_0=500000 +y_0=0 +ellps=clrk66 +towgs84=-133,-77,-51,0,0,0,0 +units=m +no_defs "],"EPSG:25395":["EPSG:25395","+proj=tmerc +lat_0=0 +lon_0=125 +k=0.99995 +x_0=500000 +y_0=0 +ellps=clrk66 +towgs84=-133,-77,-51,0,0,0,0 +units=m +no_defs "],"EPSG:25700":["EPSG:25700","+proj=merc +lon_0=110 +k=0.997 +x_0=3900000 +y_0=900000 +ellps=bessel +towgs84=-587.8,519.75,145.76,0,0,0,0 +pm=jakarta +units=m +no_defs "],"EPSG:25834":["EPSG:25834","+proj=utm +zone=34 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs "],"EPSG:25836":["EPSG:25836","+proj=utm +zone=36 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs "],"EPSG:25837":["EPSG:25837","+proj=utm +zone=37 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs "],"EPSG:25838":["EPSG:25838","+proj=utm +zone=38 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs "],"EPSG:25884":["EPSG:25884","+proj=tmerc +lat_0=0 +lon_0=24 +k=0.9996 +x_0=500000 +y_0=0 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs "],"EPSG:25932":["EPSG:25932","+proj=utm +zone=32 +south +ellps=intl +towgs84=-254.1,-5.36,-100.29,0,0,0,0 +units=m +no_defs "],"EPSG:26193":["EPSG:26193","+proj=lcc +lat_1=26.1 +lat_0=26.1 +lon_0=-5.4 +k_0=0.9996 +x_0=1200000 +y_0=400000 +a=6378249.2 +b=6356515 +towgs84=31,146,47,0,0,0,0 +units=m +no_defs "],"EPSG:26194":["EPSG:26194","+proj=lcc +lat_1=26.1 +lat_0=26.1 +lon_0=-5.4 +k_0=0.999616304 +x_0=1200000 +y_0=400000 +a=6378249.2 +b=6356515 +towgs84=31,146,47,0,0,0,0 +units=m +no_defs "],"EPSG:26195":["EPSG:26195","+proj=lcc +lat_1=22.5 +lat_0=22.5 +lon_0=-5.4 +k_0=0.999616437 +x_0=1500000 +y_0=400000 +a=6378249.2 +b=6356515 +towgs84=31,146,47,0,0,0,0 +units=m +no_defs "],"EPSG:26237":["EPSG:26237","+proj=utm +zone=37 +ellps=bessel +towgs84=639,405,60,0,0,0,0 +units=m +no_defs "],"EPSG:26332":["EPSG:26332","+proj=utm +zone=32 +ellps=clrk80 +towgs84=-92,-93,122,0,0,0,0 +units=m +no_defs "],"EPSG:26391":["EPSG:26391","+proj=tmerc +lat_0=4 +lon_0=4.5 +k=0.99975 +x_0=230738.26 +y_0=0 +ellps=clrk80 +towgs84=-92,-93,122,0,0,0,0 +units=m +no_defs "],"EPSG:26392":["EPSG:26392","+proj=tmerc +lat_0=4 +lon_0=8.5 +k=0.99975 +x_0=670553.98 +y_0=0 +ellps=clrk80 +towgs84=-92,-93,122,0,0,0,0 +units=m +no_defs "],"EPSG:26393":["EPSG:26393","+proj=tmerc +lat_0=4 +lon_0=12.5 +k=0.99975 +x_0=1110369.7 +y_0=0 +ellps=clrk80 +towgs84=-92,-93,122,0,0,0,0 +units=m +no_defs "],"EPSG:26432":["EPSG:26432","+proj=utm +zone=32 +south +ellps=intl +towgs84=-252.95,-4.11,-96.38,0,0,0,0 +units=m +no_defs "],"EPSG:26592":["EPSG:26592","+proj=tmerc +lat_0=0 +lon_0=2.54766666666666 +k=0.9996 +x_0=2520000 +y_0=0 +ellps=intl +towgs84=-104.1,-49.1,-9.9,0.971,-2.917,0.714,-11.68 +pm=rome +units=m +no_defs "],"EPSG:26632":["EPSG:26632","+proj=utm +zone=32 +a=6378249.2 +b=6356515 +towgs84=-74,-130,42,0,0,0,0 +units=m +no_defs "],"EPSG:26692":["EPSG:26692","+proj=utm +zone=32 +south +a=6378249.2 +b=6356515 +towgs84=-74,-130,42,0,0,0,0 +units=m +no_defs "],"EPSG:26701":["EPSG:26701","+proj=utm +zone=1 +datum=NAD27 +units=m +no_defs "],"EPSG:26703":["EPSG:26703","+proj=utm +zone=3 +datum=NAD27 +units=m +no_defs "],"EPSG:26704":["EPSG:26704","+proj=utm +zone=4 +datum=NAD27 +units=m +no_defs "],"EPSG:26706":["EPSG:26706","+proj=utm +zone=6 +datum=NAD27 +units=m +no_defs "],"EPSG:26707":["EPSG:26707","+proj=utm +zone=7 +datum=NAD27 +units=m +no_defs "],"EPSG:26708":["EPSG:26708","+proj=utm +zone=8 +datum=NAD27 +units=m +no_defs "],"EPSG:26709":["EPSG:26709","+proj=utm +zone=9 +datum=NAD27 +units=m +no_defs "],"EPSG:26720":["EPSG:26720","+proj=utm +zone=20 +datum=NAD27 +units=m +no_defs "],"EPSG:26721":["EPSG:26721","+proj=utm +zone=21 +datum=NAD27 +units=m +no_defs "],"EPSG:26722":["EPSG:26722","+proj=utm +zone=22 +datum=NAD27 +units=m +no_defs "],"EPSG:26729":["EPSG:26729","+proj=tmerc +lat_0=30.5 +lon_0=-85.83333333333333 +k=0.99996 +x_0=152400.3048006096 +y_0=0 +datum=NAD27 +units=us-ft +no_defs "],"EPSG:26731":["EPSG:26731","+proj=omerc +lat_0=57 +lonc=-133.6666666666667 +alpha=323.1301023611111 +k=0.9999 +x_0=5000000.001016002 +y_0=-5000000.001016002 +no_uoff +gamma=323.1301023611111 +datum=NAD27 +units=us-ft +no_defs "],"EPSG:26732":["EPSG:26732","+proj=tmerc +lat_0=54 +lon_0=-142 +k=0.9999 +x_0=152400.3048006096 +y_0=0 +datum=NAD27 +units=us-ft +no_defs "],"EPSG:26733":["EPSG:26733","+proj=tmerc +lat_0=54 +lon_0=-146 +k=0.9999 +x_0=152400.3048006096 +y_0=0 +datum=NAD27 +units=us-ft +no_defs "],"EPSG:26734":["EPSG:26734","+proj=tmerc +lat_0=54 +lon_0=-150 +k=0.9999 +x_0=152400.3048006096 +y_0=0 +datum=NAD27 +units=us-ft +no_defs "],"EPSG:26735":["EPSG:26735","+proj=tmerc +lat_0=54 +lon_0=-154 +k=0.9999 +x_0=152400.3048006096 +y_0=0 +datum=NAD27 +units=us-ft +no_defs "],"EPSG:26736":["EPSG:26736","+proj=tmerc +lat_0=54 +lon_0=-158 +k=0.9999 +x_0=152400.3048006096 +y_0=0 +datum=NAD27 +units=us-ft +no_defs "],"EPSG:26737":["EPSG:26737","+proj=tmerc +lat_0=54 +lon_0=-162 +k=0.9999 +x_0=213360.4267208534 +y_0=0 +datum=NAD27 +units=us-ft +no_defs "],"EPSG:26738":["EPSG:26738","+proj=tmerc +lat_0=54 +lon_0=-166 +k=0.9999 +x_0=152400.3048006096 +y_0=0 +datum=NAD27 +units=us-ft +no_defs "],"EPSG:26739":["EPSG:26739","+proj=tmerc +lat_0=54 +lon_0=-170 +k=0.9999 +x_0=182880.3657607315 +y_0=0 +datum=NAD27 +units=us-ft +no_defs "],"EPSG:26740":["EPSG:26740","+proj=lcc +lat_1=53.83333333333334 +lat_2=51.83333333333334 +lat_0=51 +lon_0=-176 +x_0=914401.8288036576 +y_0=0 +datum=NAD27 +units=us-ft +no_defs "],"EPSG:26741":["EPSG:26741","+proj=lcc +lat_1=41.66666666666666 +lat_2=40 +lat_0=39.33333333333334 +lon_0=-122 +x_0=609601.2192024384 +y_0=0 +datum=NAD27 +units=us-ft +no_defs "],"EPSG:26742":["EPSG:26742","+proj=lcc +lat_1=39.83333333333334 +lat_2=38.33333333333334 +lat_0=37.66666666666666 +lon_0=-122 +x_0=609601.2192024384 +y_0=0 +datum=NAD27 +units=us-ft +no_defs "],"EPSG:26743":["EPSG:26743","+proj=lcc +lat_1=38.43333333333333 +lat_2=37.06666666666667 +lat_0=36.5 +lon_0=-120.5 +x_0=609601.2192024384 +y_0=0 +datum=NAD27 +units=us-ft +no_defs "],"EPSG:26744":["EPSG:26744","+proj=lcc +lat_1=37.25 +lat_2=36 +lat_0=35.33333333333334 +lon_0=-119 +x_0=609601.2192024384 +y_0=0 +datum=NAD27 +units=us-ft +no_defs "],"EPSG:26745":["EPSG:26745","+proj=lcc +lat_1=35.46666666666667 +lat_2=34.03333333333333 +lat_0=33.5 +lon_0=-118 +x_0=609601.2192024384 +y_0=0 +datum=NAD27 +units=us-ft +no_defs "],"EPSG:26746":["EPSG:26746","+proj=lcc +lat_1=33.88333333333333 +lat_2=32.78333333333333 +lat_0=32.16666666666666 +lon_0=-116.25 +x_0=609601.2192024384 +y_0=0 +datum=NAD27 +units=us-ft +no_defs "],"EPSG:26747":["EPSG:26747","+proj=lcc +lat_1=34.41666666666666 +lat_2=33.86666666666667 +lat_0=34.13333333333333 +lon_0=-118.3333333333333 +x_0=1276106.450596901 +y_0=127079.524511049 +datum=NAD27 +units=us-ft +no_defs "],"EPSG:5358":["EPSG:5358","+proj=geocent +ellps=GRS80 +units=m +no_defs "],"EPSG:26748":["EPSG:26748","+proj=tmerc +lat_0=31 +lon_0=-110.1666666666667 +k=0.9999 +x_0=152400.3048006096 +y_0=0 +datum=NAD27 +units=us-ft +no_defs "],"EPSG:26749":["EPSG:26749","+proj=tmerc +lat_0=31 +lon_0=-111.9166666666667 +k=0.9999 +x_0=152400.3048006096 +y_0=0 +datum=NAD27 +units=us-ft +no_defs "],"EPSG:26750":["EPSG:26750","+proj=tmerc +lat_0=31 +lon_0=-113.75 +k=0.999933333 +x_0=152400.3048006096 +y_0=0 +datum=NAD27 +units=us-ft +no_defs "],"EPSG:26751":["EPSG:26751","+proj=lcc +lat_1=36.23333333333333 +lat_2=34.93333333333333 +lat_0=34.33333333333334 +lon_0=-92 +x_0=609601.2192024384 +y_0=0 +datum=NAD27 +units=us-ft +no_defs "],"EPSG:26752":["EPSG:26752","+proj=lcc +lat_1=34.76666666666667 +lat_2=33.3 +lat_0=32.66666666666666 +lon_0=-92 +x_0=609601.2192024384 +y_0=0 +datum=NAD27 +units=us-ft +no_defs "],"EPSG:26754":["EPSG:26754","+proj=lcc +lat_1=39.75 +lat_2=38.45 +lat_0=37.83333333333334 +lon_0=-105.5 +x_0=609601.2192024384 +y_0=0 +datum=NAD27 +units=us-ft +no_defs "],"EPSG:26755":["EPSG:26755","+proj=lcc +lat_1=38.43333333333333 +lat_2=37.23333333333333 +lat_0=36.66666666666666 +lon_0=-105.5 +x_0=609601.2192024384 +y_0=0 +datum=NAD27 +units=us-ft +no_defs "],"EPSG:26756":["EPSG:26756","+proj=lcc +lat_1=41.86666666666667 +lat_2=41.2 +lat_0=40.83333333333334 +lon_0=-72.75 +x_0=182880.3657607315 +y_0=0 +datum=NAD27 +units=us-ft +no_defs "],"EPSG:26757":["EPSG:26757","+proj=tmerc +lat_0=38 +lon_0=-75.41666666666667 +k=0.999995 +x_0=152400.3048006096 +y_0=0 +datum=NAD27 +units=us-ft +no_defs "],"EPSG:26758":["EPSG:26758","+proj=tmerc +lat_0=24.33333333333333 +lon_0=-81 +k=0.999941177 +x_0=152400.3048006096 +y_0=0 +datum=NAD27 +units=us-ft +no_defs "],"EPSG:26759":["EPSG:26759","+proj=tmerc +lat_0=24.33333333333333 +lon_0=-82 +k=0.999941177 +x_0=152400.3048006096 +y_0=0 +datum=NAD27 +units=us-ft +no_defs "],"EPSG:26760":["EPSG:26760","+proj=lcc +lat_1=30.75 +lat_2=29.58333333333333 +lat_0=29 +lon_0=-84.5 +x_0=609601.2192024384 +y_0=0 +datum=NAD27 +units=us-ft +no_defs "],"EPSG:26766":["EPSG:26766","+proj=tmerc +lat_0=30 +lon_0=-82.16666666666667 +k=0.9999 +x_0=152400.3048006096 +y_0=0 +datum=NAD27 +units=us-ft +no_defs "],"EPSG:26767":["EPSG:26767","+proj=tmerc +lat_0=30 +lon_0=-84.16666666666667 +k=0.9999 +x_0=152400.3048006096 +y_0=0 +datum=NAD27 +units=us-ft +no_defs "],"EPSG:26768":["EPSG:26768","+proj=tmerc +lat_0=41.66666666666666 +lon_0=-112.1666666666667 +k=0.9999473679999999 +x_0=152400.3048006096 +y_0=0 +datum=NAD27 +units=us-ft +no_defs "],"EPSG:26769":["EPSG:26769","+proj=tmerc +lat_0=41.66666666666666 +lon_0=-114 +k=0.9999473679999999 +x_0=152400.3048006096 +y_0=0 +datum=NAD27 +units=us-ft +no_defs "],"EPSG:26770":["EPSG:26770","+proj=tmerc +lat_0=41.66666666666666 +lon_0=-115.75 +k=0.999933333 +x_0=152400.3048006096 +y_0=0 +datum=NAD27 +units=us-ft +no_defs "],"EPSG:5363":["EPSG:5363","+proj=geocent +ellps=WGS84 +units=m +no_defs "],"EPSG:26772":["EPSG:26772","+proj=tmerc +lat_0=36.66666666666666 +lon_0=-90.16666666666667 +k=0.999941177 +x_0=152400.3048006096 +y_0=0 +datum=NAD27 +units=us-ft +no_defs "],"EPSG:26773":["EPSG:26773","+proj=tmerc +lat_0=37.5 +lon_0=-85.66666666666667 +k=0.999966667 +x_0=152400.3048006096 +y_0=0 +datum=NAD27 +units=us-ft +no_defs "],"EPSG:26774":["EPSG:26774","+proj=tmerc +lat_0=37.5 +lon_0=-87.08333333333333 +k=0.999966667 +x_0=152400.3048006096 +y_0=0 +datum=NAD27 +units=us-ft +no_defs "],"EPSG:26775":["EPSG:26775","+proj=lcc +lat_1=43.26666666666667 +lat_2=42.06666666666667 +lat_0=41.5 +lon_0=-93.5 +x_0=609601.2192024384 +y_0=0 +datum=NAD27 +units=us-ft +no_defs "],"EPSG:26776":["EPSG:26776","+proj=lcc +lat_1=41.78333333333333 +lat_2=40.61666666666667 +lat_0=40 +lon_0=-93.5 +x_0=609601.2192024384 +y_0=0 +datum=NAD27 +units=us-ft +no_defs "],"EPSG:26777":["EPSG:26777","+proj=lcc +lat_1=39.78333333333333 +lat_2=38.71666666666667 +lat_0=38.33333333333334 +lon_0=-98 +x_0=609601.2192024384 +y_0=0 +datum=NAD27 +units=us-ft +no_defs "],"EPSG:26779":["EPSG:26779","+proj=lcc +lat_1=37.96666666666667 +lat_2=38.96666666666667 +lat_0=37.5 +lon_0=-84.25 +x_0=609601.2192024384 +y_0=0 +datum=NAD27 +units=us-ft +no_defs "],"EPSG:26780":["EPSG:26780","+proj=lcc +lat_1=36.73333333333333 +lat_2=37.93333333333333 +lat_0=36.33333333333334 +lon_0=-85.75 +x_0=609601.2192024384 +y_0=0 +datum=NAD27 +units=us-ft +no_defs "],"EPSG:26781":["EPSG:26781","+proj=lcc +lat_1=31.16666666666667 +lat_2=32.66666666666666 +lat_0=30.66666666666667 +lon_0=-92.5 +x_0=609601.2192024384 +y_0=0 +datum=NAD27 +units=us-ft +no_defs "],"EPSG:26782":["EPSG:26782","+proj=lcc +lat_1=29.3 +lat_2=30.7 +lat_0=28.66666666666667 +lon_0=-91.33333333333333 +x_0=609601.2192024384 +y_0=0 +datum=NAD27 +units=us-ft +no_defs "],"EPSG:26783":["EPSG:26783","+proj=tmerc +lat_0=43.83333333333334 +lon_0=-68.5 +k=0.9999 +x_0=152400.3048006096 +y_0=0 +datum=NAD27 +units=us-ft +no_defs "],"EPSG:26784":["EPSG:26784","+proj=tmerc +lat_0=42.83333333333334 +lon_0=-70.16666666666667 +k=0.999966667 +x_0=152400.3048006096 +y_0=0 +datum=NAD27 +units=us-ft +no_defs "],"EPSG:26786":["EPSG:26786","+proj=lcc +lat_1=41.71666666666667 +lat_2=42.68333333333333 +lat_0=41 +lon_0=-71.5 +x_0=182880.3657607315 +y_0=0 +datum=NAD27 +units=us-ft +no_defs "],"EPSG:26787":["EPSG:26787","+proj=lcc +lat_1=41.28333333333333 +lat_2=41.48333333333333 +lat_0=41 +lon_0=-70.5 +x_0=60960.12192024384 +y_0=0 +datum=NAD27 +units=us-ft +no_defs "],"EPSG:26893":["EPSG:26893","+proj=tmerc +lat_0=0 +lon_0=-84 +k=0.9999 +x_0=304800 +y_0=0 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs "],"EPSG:26791":["EPSG:26791","+proj=lcc +lat_1=47.03333333333333 +lat_2=48.63333333333333 +lat_0=46.5 +lon_0=-93.09999999999999 +x_0=609601.2192024384 +y_0=0 +datum=NAD27 +units=us-ft +no_defs "],"EPSG:26792":["EPSG:26792","+proj=lcc +lat_1=45.61666666666667 +lat_2=47.05 +lat_0=45 +lon_0=-94.25 +x_0=609601.2192024384 +y_0=0 +datum=NAD27 +units=us-ft +no_defs "],"EPSG:26793":["EPSG:26793","+proj=lcc +lat_1=43.78333333333333 +lat_2=45.21666666666667 +lat_0=43 +lon_0=-94 +x_0=609601.2192024384 +y_0=0 +datum=NAD27 +units=us-ft +no_defs "],"EPSG:26794":["EPSG:26794","+proj=tmerc +lat_0=29.66666666666667 +lon_0=-88.83333333333333 +k=0.99996 +x_0=152400.3048006096 +y_0=0 +datum=NAD27 +units=us-ft +no_defs "],"EPSG:26795":["EPSG:26795","+proj=tmerc +lat_0=30.5 +lon_0=-90.33333333333333 +k=0.999941177 +x_0=152400.3048006096 +y_0=0 +datum=NAD27 +units=us-ft +no_defs "],"EPSG:26796":["EPSG:26796","+proj=tmerc +lat_0=35.83333333333334 +lon_0=-90.5 +k=0.999933333 +x_0=152400.3048006096 +y_0=0 +datum=NAD27 +units=us-ft +no_defs "],"EPSG:26797":["EPSG:26797","+proj=tmerc +lat_0=35.83333333333334 +lon_0=-92.5 +k=0.999933333 +x_0=152400.3048006096 +y_0=0 +datum=NAD27 +units=us-ft +no_defs "],"EPSG:26798":["EPSG:26798","+proj=tmerc +lat_0=36.16666666666666 +lon_0=-94.5 +k=0.999941177 +x_0=152400.3048006096 +y_0=0 +datum=NAD27 +units=us-ft +no_defs "],"EPSG:26799":["EPSG:26799","+proj=lcc +lat_1=34.41666666666666 +lat_2=33.86666666666667 +lat_0=34.13333333333333 +lon_0=-118.3333333333333 +x_0=1276106.450596901 +y_0=1268253.006858014 +datum=NAD27 +units=us-ft +no_defs "],"EPSG:26801":["EPSG:26801","+proj=tmerc +lat_0=41.5 +lon_0=-83.66666666666667 +k=0.999942857 +x_0=152400.3048006096 +y_0=0 +a=6378450.047548896 +b=6356826.621488444 +units=us-ft +no_defs "],"EPSG:26802":["EPSG:26802","+proj=tmerc +lat_0=41.5 +lon_0=-85.75 +k=0.999909091 +x_0=152400.3048006096 +y_0=0 +a=6378450.047548896 +b=6356826.621488444 +units=us-ft +no_defs "],"EPSG:26803":["EPSG:26803","+proj=tmerc +lat_0=41.5 +lon_0=-88.75 +k=0.999909091 +x_0=152400.3048006096 +y_0=0 +a=6378450.047548896 +b=6356826.621488444 +units=us-ft +no_defs "],"EPSG:26811":["EPSG:26811","+proj=lcc +lat_1=45.48333333333333 +lat_2=47.08333333333334 +lat_0=44.78333333333333 +lon_0=-87 +x_0=609601.2192024384 +y_0=0 +a=6378450.047548896 +b=6356826.621488444 +units=us-ft +no_defs "],"EPSG:26812":["EPSG:26812","+proj=lcc +lat_1=44.18333333333333 +lat_2=45.7 +lat_0=43.31666666666667 +lon_0=-84.33333333333333 +x_0=609601.2192024384 +y_0=0 +a=6378450.047548896 +b=6356826.621488444 +units=us-ft +no_defs "],"EPSG:26813":["EPSG:26813","+proj=lcc +lat_1=42.1 +lat_2=43.66666666666666 +lat_0=41.5 +lon_0=-84.33333333333333 +x_0=609601.2192024384 +y_0=0 +a=6378450.047548896 +b=6356826.621488444 +units=us-ft +no_defs "],"EPSG:26814":["EPSG:26814","+proj=tmerc +lat_0=43.66666666666666 +lon_0=-68.5 +k=0.9999 +x_0=300000 +y_0=0 +datum=NAD83 +units=m +no_defs "],"EPSG:26815":["EPSG:26815","+proj=tmerc +lat_0=42.83333333333334 +lon_0=-70.16666666666667 +k=0.999966667 +x_0=900000 +y_0=0 +datum=NAD83 +units=m +no_defs "],"EPSG:26905":["EPSG:26905","+proj=utm +zone=5 +datum=NAD83 +units=m +no_defs "],"EPSG:26819":["EPSG:26819","+proj=lcc +lat_1=48.63333333333333 +lat_2=47.03333333333333 +lat_0=46.5 +lon_0=-93.09999999999999 +x_0=800000.0000101601 +y_0=99999.99998984 +datum=NAD83 +units=m +no_defs "],"EPSG:26820":["EPSG:26820","+proj=lcc +lat_1=47.05 +lat_2=45.61666666666667 +lat_0=45 +lon_0=-94.25 +x_0=800000.0000101601 +y_0=99999.99998984 +datum=NAD83 +units=m +no_defs "],"EPSG:26821":["EPSG:26821","+proj=lcc +lat_1=45.21666666666667 +lat_2=43.78333333333333 +lat_0=43 +lon_0=-94 +x_0=800000.0000101601 +y_0=99999.99998984 +datum=NAD83 +units=m +no_defs "],"EPSG:26822":["EPSG:26822","+proj=lcc +lat_1=43 +lat_2=40 +lat_0=39.83333333333334 +lon_0=-100 +x_0=500000.0000101601 +y_0=0 +datum=NAD83 +units=m +no_defs "],"EPSG:26823":["EPSG:26823","+proj=lcc +lat_1=40.25 +lat_2=39 +lat_0=38.5 +lon_0=-79.5 +x_0=1968500 +y_0=0 +datum=NAD83 +units=m +no_defs "],"EPSG:26824":["EPSG:26824","+proj=lcc +lat_1=38.88333333333333 +lat_2=37.48333333333333 +lat_0=37 +lon_0=-81 +x_0=1968500 +y_0=0 +datum=NAD83 +units=m +no_defs "],"EPSG:26825":["EPSG:26825","+proj=tmerc +lat_0=43.66666666666666 +lon_0=-68.5 +k=0.9999 +x_0=300000 +y_0=0 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs "],"EPSG:26826":["EPSG:26826","+proj=tmerc +lat_0=42.83333333333334 +lon_0=-70.16666666666667 +k=0.999966667 +x_0=900000 +y_0=0 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs "],"EPSG:26906":["EPSG:26906","+proj=utm +zone=6 +datum=NAD83 +units=m +no_defs "],"EPSG:26830":["EPSG:26830","+proj=lcc +lat_1=48.63333333333333 +lat_2=47.03333333333333 +lat_0=46.5 +lon_0=-93.09999999999999 +x_0=800000.0000101601 +y_0=99999.99998984 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs "],"EPSG:26831":["EPSG:26831","+proj=lcc +lat_1=47.05 +lat_2=45.61666666666667 +lat_0=45 +lon_0=-94.25 +x_0=800000.0000101601 +y_0=99999.99998984 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs "],"EPSG:26832":["EPSG:26832","+proj=lcc +lat_1=45.21666666666667 +lat_2=43.78333333333333 +lat_0=43 +lon_0=-94 +x_0=800000.0000101601 +y_0=99999.99998984 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs "],"EPSG:26833":["EPSG:26833","+proj=lcc +lat_1=43 +lat_2=40 +lat_0=39.83333333333334 +lon_0=-100 +x_0=500000.0000101601 +y_0=0 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs "],"EPSG:26834":["EPSG:26834","+proj=lcc +lat_1=40.25 +lat_2=39 +lat_0=38.5 +lon_0=-79.5 +x_0=1968500 +y_0=0 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs "],"EPSG:26835":["EPSG:26835","+proj=lcc +lat_1=38.88333333333333 +lat_2=37.48333333333333 +lat_0=37 +lon_0=-81 +x_0=1968500 +y_0=0 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs "],"EPSG:26836":["EPSG:26836","+proj=tmerc +lat_0=43.66666666666666 +lon_0=-68.5 +k=0.9999 +x_0=300000 +y_0=0 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs "],"EPSG:26837":["EPSG:26837","+proj=tmerc +lat_0=42.83333333333334 +lon_0=-70.16666666666667 +k=0.999966667 +x_0=900000 +y_0=0 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs "],"EPSG:5368":["EPSG:5368","+proj=geocent +ellps=GRS80 +units=m +no_defs "],"EPSG:26841":["EPSG:26841","+proj=lcc +lat_1=48.63333333333333 +lat_2=47.03333333333333 +lat_0=46.5 +lon_0=-93.09999999999999 +x_0=800000.0000101601 +y_0=99999.99998984 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs "],"EPSG:26842":["EPSG:26842","+proj=lcc +lat_1=47.05 +lat_2=45.61666666666667 +lat_0=45 +lon_0=-94.25 +x_0=800000.0000101601 +y_0=99999.99998984 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs "],"EPSG:26843":["EPSG:26843","+proj=lcc +lat_1=45.21666666666667 +lat_2=43.78333333333333 +lat_0=43 +lon_0=-94 +x_0=800000.0000101601 +y_0=99999.99998984 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs "],"EPSG:26844":["EPSG:26844","+proj=lcc +lat_1=43 +lat_2=40 +lat_0=39.83333333333334 +lon_0=-100 +x_0=500000.0000101601 +y_0=0 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs "],"EPSG:26845":["EPSG:26845","+proj=lcc +lat_1=40.25 +lat_2=39 +lat_0=38.5 +lon_0=-79.5 +x_0=1968500 +y_0=0 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs "],"EPSG:26846":["EPSG:26846","+proj=lcc +lat_1=38.88333333333333 +lat_2=37.48333333333333 +lat_0=37 +lon_0=-81 +x_0=1968500 +y_0=0 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs "],"EPSG:26847":["EPSG:26847","+proj=tmerc +lat_0=43.66666666666666 +lon_0=-68.5 +k=0.9999 +x_0=300000.0000000001 +y_0=0 +datum=NAD83 +units=us-ft +no_defs "],"EPSG:26848":["EPSG:26848","+proj=tmerc +lat_0=42.83333333333334 +lon_0=-70.16666666666667 +k=0.999966667 +x_0=900000 +y_0=0 +datum=NAD83 +units=us-ft +no_defs "],"EPSG:5369":["EPSG:5369","+proj=geocent +ellps=GRS80 +units=m +no_defs "],"EPSG:26849":["EPSG:26849","+proj=lcc +lat_1=48.63333333333333 +lat_2=47.03333333333333 +lat_0=46.5 +lon_0=-93.09999999999999 +x_0=800000.0000101599 +y_0=99999.99998983997 +datum=NAD83 +units=us-ft +no_defs "],"EPSG:26850":["EPSG:26850","+proj=lcc +lat_1=47.05 +lat_2=45.61666666666667 +lat_0=45 +lon_0=-94.25 +x_0=800000.0000101599 +y_0=99999.99998983997 +datum=NAD83 +units=us-ft +no_defs "],"EPSG:26851":["EPSG:26851","+proj=lcc +lat_1=45.21666666666667 +lat_2=43.78333333333333 +lat_0=43 +lon_0=-94 +x_0=800000.0000101599 +y_0=99999.99998983997 +datum=NAD83 +units=us-ft +no_defs "],"EPSG:26852":["EPSG:26852","+proj=lcc +lat_1=43 +lat_2=40 +lat_0=39.83333333333334 +lon_0=-100 +x_0=500000.00001016 +y_0=0 +datum=NAD83 +units=us-ft +no_defs "],"EPSG:26853":["EPSG:26853","+proj=lcc +lat_1=40.25 +lat_2=39 +lat_0=38.5 +lon_0=-79.5 +x_0=600000 +y_0=0 +datum=NAD83 +units=us-ft +no_defs "],"EPSG:26854":["EPSG:26854","+proj=lcc +lat_1=38.88333333333333 +lat_2=37.48333333333333 +lat_0=37 +lon_0=-81 +x_0=600000 +y_0=0 +datum=NAD83 +units=us-ft +no_defs "],"EPSG:26855":["EPSG:26855","+proj=tmerc +lat_0=43.66666666666666 +lon_0=-68.5 +k=0.9999 +x_0=300000.0000000001 +y_0=0 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=us-ft +no_defs "],"EPSG:26856":["EPSG:26856","+proj=tmerc +lat_0=42.83333333333334 +lon_0=-70.16666666666667 +k=0.999966667 +x_0=900000 +y_0=0 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=us-ft +no_defs "],"EPSG:5379":["EPSG:5379","+proj=geocent +ellps=WGS84 +units=m +no_defs "],"EPSG:26857":["EPSG:26857","+proj=lcc +lat_1=48.63333333333333 +lat_2=47.03333333333333 +lat_0=46.5 +lon_0=-93.09999999999999 +x_0=800000.0000101599 +y_0=99999.99998983997 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=us-ft +no_defs "],"EPSG:26858":["EPSG:26858","+proj=lcc +lat_1=47.05 +lat_2=45.61666666666667 +lat_0=45 +lon_0=-94.25 +x_0=800000.0000101599 +y_0=99999.99998983997 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=us-ft +no_defs "],"EPSG:26859":["EPSG:26859","+proj=lcc +lat_1=45.21666666666667 +lat_2=43.78333333333333 +lat_0=43 +lon_0=-94 +x_0=800000.0000101599 +y_0=99999.99998983997 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=us-ft +no_defs "],"EPSG:26860":["EPSG:26860","+proj=lcc +lat_1=43 +lat_2=40 +lat_0=39.83333333333334 +lon_0=-100 +x_0=500000.00001016 +y_0=0 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=us-ft +no_defs "],"EPSG:26861":["EPSG:26861","+proj=lcc +lat_1=40.25 +lat_2=39 +lat_0=38.5 +lon_0=-79.5 +x_0=600000 +y_0=0 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=us-ft +no_defs "],"EPSG:26862":["EPSG:26862","+proj=lcc +lat_1=38.88333333333333 +lat_2=37.48333333333333 +lat_0=37 +lon_0=-81 +x_0=600000 +y_0=0 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=us-ft +no_defs "],"EPSG:26863":["EPSG:26863","+proj=tmerc +lat_0=43.66666666666666 +lon_0=-68.5 +k=0.9999 +x_0=300000.0000000001 +y_0=0 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=us-ft +no_defs "],"EPSG:26864":["EPSG:26864","+proj=tmerc +lat_0=42.83333333333334 +lon_0=-70.16666666666667 +k=0.999966667 +x_0=900000 +y_0=0 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=us-ft +no_defs "],"EPSG:26865":["EPSG:26865","+proj=lcc +lat_1=48.63333333333333 +lat_2=47.03333333333333 +lat_0=46.5 +lon_0=-93.09999999999999 +x_0=800000.0000101599 +y_0=99999.99998983997 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=us-ft +no_defs "],"EPSG:26866":["EPSG:26866","+proj=lcc +lat_1=47.05 +lat_2=45.61666666666667 +lat_0=45 +lon_0=-94.25 +x_0=800000.0000101599 +y_0=99999.99998983997 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=us-ft +no_defs "],"EPSG:26867":["EPSG:26867","+proj=lcc +lat_1=45.21666666666667 +lat_2=43.78333333333333 +lat_0=43 +lon_0=-94 +x_0=800000.0000101599 +y_0=99999.99998983997 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=us-ft +no_defs "],"EPSG:26868":["EPSG:26868","+proj=lcc +lat_1=43 +lat_2=40 +lat_0=39.83333333333334 +lon_0=-100 +x_0=500000.00001016 +y_0=0 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=us-ft +no_defs "],"EPSG:26869":["EPSG:26869","+proj=lcc +lat_1=40.25 +lat_2=39 +lat_0=38.5 +lon_0=-79.5 +x_0=600000 +y_0=0 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=us-ft +no_defs "],"EPSG:26870":["EPSG:26870","+proj=lcc +lat_1=38.88333333333333 +lat_2=37.48333333333333 +lat_0=37 +lon_0=-81 +x_0=600000 +y_0=0 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=us-ft +no_defs "],"EPSG:26891":["EPSG:26891","+proj=tmerc +lat_0=0 +lon_0=-82.5 +k=0.9999 +x_0=304800 +y_0=0 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs "],"EPSG:26892":["EPSG:26892","+proj=tmerc +lat_0=0 +lon_0=-81 +k=0.9999 +x_0=304800 +y_0=0 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs "],"EPSG:5391":["EPSG:5391","+proj=geocent +ellps=GRS80 +units=m +no_defs "],"EPSG:26897":["EPSG:26897","+proj=tmerc +lat_0=0 +lon_0=-96 +k=0.9999 +x_0=304800 +y_0=0 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs "],"EPSG:26898":["EPSG:26898","+proj=tmerc +lat_0=0 +lon_0=-53 +k=0.9999 +x_0=304800 +y_0=0 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs "],"EPSG:26899":["EPSG:26899","+proj=tmerc +lat_0=0 +lon_0=-56 +k=0.9999 +x_0=304800 +y_0=0 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs "],"EPSG:26901":["EPSG:26901","+proj=utm +zone=1 +datum=NAD83 +units=m +no_defs "],"EPSG:26902":["EPSG:26902","+proj=utm +zone=2 +datum=NAD83 +units=m +no_defs "],"EPSG:26903":["EPSG:26903","+proj=utm +zone=3 +datum=NAD83 +units=m +no_defs "],"EPSG:26907":["EPSG:26907","+proj=utm +zone=7 +datum=NAD83 +units=m +no_defs "],"EPSG:26908":["EPSG:26908","+proj=utm +zone=8 +datum=NAD83 +units=m +no_defs "],"EPSG:26909":["EPSG:26909","+proj=utm +zone=9 +datum=NAD83 +units=m +no_defs "],"EPSG:26919":["EPSG:26919","+proj=utm +zone=19 +datum=NAD83 +units=m +no_defs "],"EPSG:26921":["EPSG:26921","+proj=utm +zone=21 +datum=NAD83 +units=m +no_defs "],"EPSG:26922":["EPSG:26922","+proj=utm +zone=22 +datum=NAD83 +units=m +no_defs "],"EPSG:26923":["EPSG:26923","+proj=utm +zone=23 +datum=NAD83 +units=m +no_defs "],"EPSG:26929":["EPSG:26929","+proj=tmerc +lat_0=30.5 +lon_0=-85.83333333333333 +k=0.99996 +x_0=200000 +y_0=0 +datum=NAD83 +units=m +no_defs "],"EPSG:26930":["EPSG:26930","+proj=tmerc +lat_0=30 +lon_0=-87.5 +k=0.999933333 +x_0=600000 +y_0=0 +datum=NAD83 +units=m +no_defs "],"EPSG:26931":["EPSG:26931","+proj=omerc +lat_0=57 +lonc=-133.6666666666667 +alpha=323.1301023611111 +k=0.9999 +x_0=5000000 +y_0=-5000000 +no_uoff +gamma=323.1301023611111 +datum=NAD83 +units=m +no_defs "],"EPSG:26932":["EPSG:26932","+proj=tmerc +lat_0=54 +lon_0=-142 +k=0.9999 +x_0=500000 +y_0=0 +datum=NAD83 +units=m +no_defs "],"EPSG:26933":["EPSG:26933","+proj=tmerc +lat_0=54 +lon_0=-146 +k=0.9999 +x_0=500000 +y_0=0 +datum=NAD83 +units=m +no_defs "],"EPSG:26934":["EPSG:26934","+proj=tmerc +lat_0=54 +lon_0=-150 +k=0.9999 +x_0=500000 +y_0=0 +datum=NAD83 +units=m +no_defs "],"EPSG:26935":["EPSG:26935","+proj=tmerc +lat_0=54 +lon_0=-154 +k=0.9999 +x_0=500000 +y_0=0 +datum=NAD83 +units=m +no_defs "],"EPSG:26936":["EPSG:26936","+proj=tmerc +lat_0=54 +lon_0=-158 +k=0.9999 +x_0=500000 +y_0=0 +datum=NAD83 +units=m +no_defs "],"EPSG:26937":["EPSG:26937","+proj=tmerc +lat_0=54 +lon_0=-162 +k=0.9999 +x_0=500000 +y_0=0 +datum=NAD83 +units=m +no_defs "],"EPSG:26938":["EPSG:26938","+proj=tmerc +lat_0=54 +lon_0=-166 +k=0.9999 +x_0=500000 +y_0=0 +datum=NAD83 +units=m +no_defs "],"EPSG:26939":["EPSG:26939","+proj=tmerc +lat_0=54 +lon_0=-170 +k=0.9999 +x_0=500000 +y_0=0 +datum=NAD83 +units=m +no_defs "],"EPSG:26940":["EPSG:26940","+proj=lcc +lat_1=53.83333333333334 +lat_2=51.83333333333334 +lat_0=51 +lon_0=-176 +x_0=1000000 +y_0=0 +datum=NAD83 +units=m +no_defs "],"EPSG:26941":["EPSG:26941","+proj=lcc +lat_1=41.66666666666666 +lat_2=40 +lat_0=39.33333333333334 +lon_0=-122 +x_0=2000000 +y_0=500000 +datum=NAD83 +units=m +no_defs "],"EPSG:26942":["EPSG:26942","+proj=lcc +lat_1=39.83333333333334 +lat_2=38.33333333333334 +lat_0=37.66666666666666 +lon_0=-122 +x_0=2000000 +y_0=500000 +datum=NAD83 +units=m +no_defs "],"EPSG:26944":["EPSG:26944","+proj=lcc +lat_1=37.25 +lat_2=36 +lat_0=35.33333333333334 +lon_0=-119 +x_0=2000000 +y_0=500000 +datum=NAD83 +units=m +no_defs "],"EPSG:26945":["EPSG:26945","+proj=lcc +lat_1=35.46666666666667 +lat_2=34.03333333333333 +lat_0=33.5 +lon_0=-118 +x_0=2000000 +y_0=500000 +datum=NAD83 +units=m +no_defs "],"EPSG:26946":["EPSG:26946","+proj=lcc +lat_1=33.88333333333333 +lat_2=32.78333333333333 +lat_0=32.16666666666666 +lon_0=-116.25 +x_0=2000000 +y_0=500000 +datum=NAD83 +units=m +no_defs "],"EPSG:26948":["EPSG:26948","+proj=tmerc +lat_0=31 +lon_0=-110.1666666666667 +k=0.9999 +x_0=213360 +y_0=0 +datum=NAD83 +units=m +no_defs "],"EPSG:26949":["EPSG:26949","+proj=tmerc +lat_0=31 +lon_0=-111.9166666666667 +k=0.9999 +x_0=213360 +y_0=0 +datum=NAD83 +units=m +no_defs "],"EPSG:26950":["EPSG:26950","+proj=tmerc +lat_0=31 +lon_0=-113.75 +k=0.999933333 +x_0=213360 +y_0=0 +datum=NAD83 +units=m +no_defs "],"EPSG:26951":["EPSG:26951","+proj=lcc +lat_1=36.23333333333333 +lat_2=34.93333333333333 +lat_0=34.33333333333334 +lon_0=-92 +x_0=400000 +y_0=0 +datum=NAD83 +units=m +no_defs "],"EPSG:26952":["EPSG:26952","+proj=lcc +lat_1=34.76666666666667 +lat_2=33.3 +lat_0=32.66666666666666 +lon_0=-92 +x_0=400000 +y_0=400000 +datum=NAD83 +units=m +no_defs "],"EPSG:26953":["EPSG:26953","+proj=lcc +lat_1=40.78333333333333 +lat_2=39.71666666666667 +lat_0=39.33333333333334 +lon_0=-105.5 +x_0=914401.8289 +y_0=304800.6096 +datum=NAD83 +units=m +no_defs "],"EPSG:26954":["EPSG:26954","+proj=lcc +lat_1=39.75 +lat_2=38.45 +lat_0=37.83333333333334 +lon_0=-105.5 +x_0=914401.8289 +y_0=304800.6096 +datum=NAD83 +units=m +no_defs "],"EPSG:26955":["EPSG:26955","+proj=lcc +lat_1=38.43333333333333 +lat_2=37.23333333333333 +lat_0=36.66666666666666 +lon_0=-105.5 +x_0=914401.8289 +y_0=304800.6096 +datum=NAD83 +units=m +no_defs "],"EPSG:26956":["EPSG:26956","+proj=lcc +lat_1=41.86666666666667 +lat_2=41.2 +lat_0=40.83333333333334 +lon_0=-72.75 +x_0=304800.6096 +y_0=152400.3048 +datum=NAD83 +units=m +no_defs "],"EPSG:26957":["EPSG:26957","+proj=tmerc +lat_0=38 +lon_0=-75.41666666666667 +k=0.999995 +x_0=200000 +y_0=0 +datum=NAD83 +units=m +no_defs "],"EPSG:26959":["EPSG:26959","+proj=tmerc +lat_0=24.33333333333333 +lon_0=-82 +k=0.999941177 +x_0=200000 +y_0=0 +datum=NAD83 +units=m +no_defs "],"EPSG:26960":["EPSG:26960","+proj=lcc +lat_1=30.75 +lat_2=29.58333333333333 +lat_0=29 +lon_0=-84.5 +x_0=600000 +y_0=0 +datum=NAD83 +units=m +no_defs "],"EPSG:26961":["EPSG:26961","+proj=tmerc +lat_0=18.83333333333333 +lon_0=-155.5 +k=0.999966667 +x_0=500000 +y_0=0 +datum=NAD83 +units=m +no_defs "],"EPSG:26962":["EPSG:26962","+proj=tmerc +lat_0=20.33333333333333 +lon_0=-156.6666666666667 +k=0.999966667 +x_0=500000 +y_0=0 +datum=NAD83 +units=m +no_defs "],"EPSG:26963":["EPSG:26963","+proj=tmerc +lat_0=21.16666666666667 +lon_0=-158 +k=0.99999 +x_0=500000 +y_0=0 +datum=NAD83 +units=m +no_defs "],"EPSG:26964":["EPSG:26964","+proj=tmerc +lat_0=21.83333333333333 +lon_0=-159.5 +k=0.99999 +x_0=500000 +y_0=0 +datum=NAD83 +units=m +no_defs "],"EPSG:26965":["EPSG:26965","+proj=tmerc +lat_0=21.66666666666667 +lon_0=-160.1666666666667 +k=1 +x_0=500000 +y_0=0 +datum=NAD83 +units=m +no_defs "],"EPSG:26966":["EPSG:26966","+proj=tmerc +lat_0=30 +lon_0=-82.16666666666667 +k=0.9999 +x_0=200000 +y_0=0 +datum=NAD83 +units=m +no_defs "],"EPSG:26968":["EPSG:26968","+proj=tmerc +lat_0=41.66666666666666 +lon_0=-112.1666666666667 +k=0.9999473679999999 +x_0=200000 +y_0=0 +datum=NAD83 +units=m +no_defs "],"EPSG:26969":["EPSG:26969","+proj=tmerc +lat_0=41.66666666666666 +lon_0=-114 +k=0.9999473679999999 +x_0=500000 +y_0=0 +datum=NAD83 +units=m +no_defs "],"EPSG:26970":["EPSG:26970","+proj=tmerc +lat_0=41.66666666666666 +lon_0=-115.75 +k=0.999933333 +x_0=800000 +y_0=0 +datum=NAD83 +units=m +no_defs "],"EPSG:29635":["EPSG:29635","+proj=utm +zone=35 +a=6378249.2 +b=6356515 +units=m +no_defs "],"EPSG:26971":["EPSG:26971","+proj=tmerc +lat_0=36.66666666666666 +lon_0=-88.33333333333333 +k=0.9999749999999999 +x_0=300000 +y_0=0 +datum=NAD83 +units=m +no_defs "],"EPSG:26972":["EPSG:26972","+proj=tmerc +lat_0=36.66666666666666 +lon_0=-90.16666666666667 +k=0.999941177 +x_0=700000 +y_0=0 +datum=NAD83 +units=m +no_defs "],"EPSG:26973":["EPSG:26973","+proj=tmerc +lat_0=37.5 +lon_0=-85.66666666666667 +k=0.999966667 +x_0=100000 +y_0=250000 +datum=NAD83 +units=m +no_defs "],"EPSG:26974":["EPSG:26974","+proj=tmerc +lat_0=37.5 +lon_0=-87.08333333333333 +k=0.999966667 +x_0=900000 +y_0=250000 +datum=NAD83 +units=m +no_defs "],"EPSG:26975":["EPSG:26975","+proj=lcc +lat_1=43.26666666666667 +lat_2=42.06666666666667 +lat_0=41.5 +lon_0=-93.5 +x_0=1500000 +y_0=1000000 +datum=NAD83 +units=m +no_defs "],"EPSG:26976":["EPSG:26976","+proj=lcc +lat_1=41.78333333333333 +lat_2=40.61666666666667 +lat_0=40 +lon_0=-93.5 +x_0=500000 +y_0=0 +datum=NAD83 +units=m +no_defs "],"EPSG:26977":["EPSG:26977","+proj=lcc +lat_1=39.78333333333333 +lat_2=38.71666666666667 +lat_0=38.33333333333334 +lon_0=-98 +x_0=400000 +y_0=0 +datum=NAD83 +units=m +no_defs "],"EPSG:26978":["EPSG:26978","+proj=lcc +lat_1=38.56666666666667 +lat_2=37.26666666666667 +lat_0=36.66666666666666 +lon_0=-98.5 +x_0=400000 +y_0=400000 +datum=NAD83 +units=m +no_defs "],"EPSG:26979":["EPSG:26979","+proj=lcc +lat_1=37.96666666666667 +lat_2=37.96666666666667 +lat_0=37.5 +lon_0=-84.25 +x_0=500000 +y_0=0 +datum=NAD83 +units=m +no_defs "],"EPSG:26980":["EPSG:26980","+proj=lcc +lat_1=37.93333333333333 +lat_2=36.73333333333333 +lat_0=36.33333333333334 +lon_0=-85.75 +x_0=500000 +y_0=500000 +datum=NAD83 +units=m +no_defs "],"EPSG:26981":["EPSG:26981","+proj=lcc +lat_1=32.66666666666666 +lat_2=31.16666666666667 +lat_0=30.5 +lon_0=-92.5 +x_0=1000000 +y_0=0 +datum=NAD83 +units=m +no_defs "],"EPSG:26982":["EPSG:26982","+proj=lcc +lat_1=30.7 +lat_2=29.3 +lat_0=28.5 +lon_0=-91.33333333333333 +x_0=1000000 +y_0=0 +datum=NAD83 +units=m +no_defs "],"EPSG:26983":["EPSG:26983","+proj=tmerc +lat_0=43.66666666666666 +lon_0=-68.5 +k=0.9999 +x_0=300000 +y_0=0 +datum=NAD83 +units=m +no_defs "],"EPSG:26984":["EPSG:26984","+proj=tmerc +lat_0=42.83333333333334 +lon_0=-70.16666666666667 +k=0.999966667 +x_0=900000 +y_0=0 +datum=NAD83 +units=m +no_defs "],"EPSG:26985":["EPSG:26985","+proj=lcc +lat_1=39.45 +lat_2=38.3 +lat_0=37.66666666666666 +lon_0=-77 +x_0=400000 +y_0=0 +datum=NAD83 +units=m +no_defs "],"EPSG:26986":["EPSG:26986","+proj=lcc +lat_1=42.68333333333333 +lat_2=41.71666666666667 +lat_0=41 +lon_0=-71.5 +x_0=200000 +y_0=750000 +datum=NAD83 +units=m +no_defs "],"EPSG:26987":["EPSG:26987","+proj=lcc +lat_1=41.48333333333333 +lat_2=41.28333333333333 +lat_0=41 +lon_0=-70.5 +x_0=500000 +y_0=0 +datum=NAD83 +units=m +no_defs "],"EPSG:26988":["EPSG:26988","+proj=lcc +lat_1=47.08333333333334 +lat_2=45.48333333333333 +lat_0=44.78333333333333 +lon_0=-87 +x_0=8000000 +y_0=0 +datum=NAD83 +units=m +no_defs "],"EPSG:26989":["EPSG:26989","+proj=lcc +lat_1=45.7 +lat_2=44.18333333333333 +lat_0=43.31666666666667 +lon_0=-84.36666666666666 +x_0=6000000 +y_0=0 +datum=NAD83 +units=m +no_defs "],"EPSG:26990":["EPSG:26990","+proj=lcc +lat_1=43.66666666666666 +lat_2=42.1 +lat_0=41.5 +lon_0=-84.36666666666666 +x_0=4000000 +y_0=0 +datum=NAD83 +units=m +no_defs "],"EPSG:26991":["EPSG:26991","+proj=lcc +lat_1=48.63333333333333 +lat_2=47.03333333333333 +lat_0=46.5 +lon_0=-93.09999999999999 +x_0=800000 +y_0=100000 +datum=NAD83 +units=m +no_defs "],"EPSG:26993":["EPSG:26993","+proj=lcc +lat_1=45.21666666666667 +lat_2=43.78333333333333 +lat_0=43 +lon_0=-94 +x_0=800000 +y_0=100000 +datum=NAD83 +units=m +no_defs "],"EPSG:26994":["EPSG:26994","+proj=tmerc +lat_0=29.5 +lon_0=-88.83333333333333 +k=0.99995 +x_0=300000 +y_0=0 +datum=NAD83 +units=m +no_defs "],"EPSG:26995":["EPSG:26995","+proj=tmerc +lat_0=29.5 +lon_0=-90.33333333333333 +k=0.99995 +x_0=700000 +y_0=0 +datum=NAD83 +units=m +no_defs "],"EPSG:26997":["EPSG:26997","+proj=tmerc +lat_0=35.83333333333334 +lon_0=-92.5 +k=0.999933333 +x_0=500000 +y_0=0 +datum=NAD83 +units=m +no_defs "],"EPSG:26998":["EPSG:26998","+proj=tmerc +lat_0=36.16666666666666 +lon_0=-94.5 +k=0.999941177 +x_0=850000 +y_0=0 +datum=NAD83 +units=m +no_defs "],"EPSG:27037":["EPSG:27037","+proj=utm +zone=37 +ellps=clrk80 +towgs84=-249,-156,381,0,0,0,0 +units=m +no_defs "],"EPSG:27038":["EPSG:27038","+proj=utm +zone=38 +ellps=clrk80 +towgs84=-249,-156,381,0,0,0,0 +units=m +no_defs "],"EPSG:27039":["EPSG:27039","+proj=utm +zone=39 +ellps=clrk80 +towgs84=-249,-156,381,0,0,0,0 +units=m +no_defs "],"EPSG:27120":["EPSG:27120","+proj=utm +zone=20 +ellps=intl +towgs84=-10,375,165,0,0,0,0 +units=m +no_defs "],"EPSG:27205":["EPSG:27205","+proj=tmerc +lat_0=-36.87986527777778 +lon_0=174.7643393611111 +k=0.9999 +x_0=300000 +y_0=700000 +datum=nzgd49 +units=m +towgs84=59.47,-5.04,187.44,0.47,-0.1,1.024,-4.5993 +nadgrids=nzgd2kgrid0005.gsb +no_defs "],"EPSG:27206":["EPSG:27206","+proj=tmerc +lat_0=-37.76124980555556 +lon_0=176.46619725 +k=1 +x_0=300000 +y_0=700000 +datum=nzgd49 +units=m +towgs84=59.47,-5.04,187.44,0.47,-0.1,1.024,-4.5993 +nadgrids=nzgd2kgrid0005.gsb +no_defs "],"EPSG:5487":["EPSG:5487","+proj=geocent +ellps=GRS80 +units=m +no_defs "],"EPSG:27207":["EPSG:27207","+proj=tmerc +lat_0=-38.62470277777778 +lon_0=177.8856362777778 +k=1 +x_0=300000 +y_0=700000 +datum=nzgd49 +units=m +towgs84=59.47,-5.04,187.44,0.47,-0.1,1.024,-4.5993 +nadgrids=nzgd2kgrid0005.gsb +no_defs "],"EPSG:27208":["EPSG:27208","+proj=tmerc +lat_0=-39.65092930555556 +lon_0=176.6736805277778 +k=1 +x_0=300000 +y_0=700000 +datum=nzgd49 +units=m +towgs84=59.47,-5.04,187.44,0.47,-0.1,1.024,-4.5993 +nadgrids=nzgd2kgrid0005.gsb +no_defs "],"EPSG:27209":["EPSG:27209","+proj=tmerc +lat_0=-39.13575830555556 +lon_0=174.22801175 +k=1 +x_0=300000 +y_0=700000 +datum=nzgd49 +units=m +towgs84=59.47,-5.04,187.44,0.47,-0.1,1.024,-4.5993 +nadgrids=nzgd2kgrid0005.gsb +no_defs "],"EPSG:27210":["EPSG:27210","+proj=tmerc +lat_0=-39.51247038888889 +lon_0=175.6400368055556 +k=1 +x_0=300000 +y_0=700000 +datum=nzgd49 +units=m +towgs84=59.47,-5.04,187.44,0.47,-0.1,1.024,-4.5993 +nadgrids=nzgd2kgrid0005.gsb +no_defs "],"EPSG:27211":["EPSG:27211","+proj=tmerc +lat_0=-40.24194713888889 +lon_0=175.4880996111111 +k=1 +x_0=300000 +y_0=700000 +datum=nzgd49 +units=m +towgs84=59.47,-5.04,187.44,0.47,-0.1,1.024,-4.5993 +nadgrids=nzgd2kgrid0005.gsb +no_defs "],"EPSG:27212":["EPSG:27212","+proj=tmerc +lat_0=-40.92553263888889 +lon_0=175.6473496666667 +k=1 +x_0=300000 +y_0=700000 +datum=nzgd49 +units=m +towgs84=59.47,-5.04,187.44,0.47,-0.1,1.024,-4.5993 +nadgrids=nzgd2kgrid0005.gsb +no_defs "],"EPSG:27213":["EPSG:27213","+proj=tmerc +lat_0=-41.30131963888888 +lon_0=174.7766231111111 +k=1 +x_0=300000 +y_0=700000 +datum=nzgd49 +units=m +towgs84=59.47,-5.04,187.44,0.47,-0.1,1.024,-4.5993 +nadgrids=nzgd2kgrid0005.gsb +no_defs "],"EPSG:27214":["EPSG:27214","+proj=tmerc +lat_0=-40.71475905555556 +lon_0=172.6720465 +k=1 +x_0=300000 +y_0=700000 +datum=nzgd49 +units=m +towgs84=59.47,-5.04,187.44,0.47,-0.1,1.024,-4.5993 +nadgrids=nzgd2kgrid0005.gsb +no_defs "],"EPSG:29636":["EPSG:29636","+proj=utm +zone=36 +a=6378249.2 +b=6356515 +units=m +no_defs "],"EPSG:27215":["EPSG:27215","+proj=tmerc +lat_0=-41.27454472222222 +lon_0=173.2993168055555 +k=1 +x_0=300000 +y_0=700000 +datum=nzgd49 +units=m +towgs84=59.47,-5.04,187.44,0.47,-0.1,1.024,-4.5993 +nadgrids=nzgd2kgrid0005.gsb +no_defs "],"EPSG:27216":["EPSG:27216","+proj=tmerc +lat_0=-41.28991152777778 +lon_0=172.1090281944444 +k=1 +x_0=300000 +y_0=700000 +datum=nzgd49 +units=m +towgs84=59.47,-5.04,187.44,0.47,-0.1,1.024,-4.5993 +nadgrids=nzgd2kgrid0005.gsb +no_defs "],"EPSG:27217":["EPSG:27217","+proj=tmerc +lat_0=-41.81080286111111 +lon_0=171.5812600555556 +k=1 +x_0=300000 +y_0=700000 +datum=nzgd49 +units=m +towgs84=59.47,-5.04,187.44,0.47,-0.1,1.024,-4.5993 +nadgrids=nzgd2kgrid0005.gsb +no_defs "],"EPSG:27218":["EPSG:27218","+proj=tmerc +lat_0=-42.33369427777778 +lon_0=171.5497713055556 +k=1 +x_0=300000 +y_0=700000 +datum=nzgd49 +units=m +towgs84=59.47,-5.04,187.44,0.47,-0.1,1.024,-4.5993 +nadgrids=nzgd2kgrid0005.gsb +no_defs "],"EPSG:27219":["EPSG:27219","+proj=tmerc +lat_0=-42.68911658333333 +lon_0=173.0101333888889 +k=1 +x_0=300000 +y_0=700000 +datum=nzgd49 +units=m +towgs84=59.47,-5.04,187.44,0.47,-0.1,1.024,-4.5993 +nadgrids=nzgd2kgrid0005.gsb +no_defs "],"EPSG:27220":["EPSG:27220","+proj=tmerc +lat_0=-41.54448666666666 +lon_0=173.8020741111111 +k=1 +x_0=300000 +y_0=700000 +datum=nzgd49 +units=m +towgs84=59.47,-5.04,187.44,0.47,-0.1,1.024,-4.5993 +nadgrids=nzgd2kgrid0005.gsb +no_defs "],"EPSG:27221":["EPSG:27221","+proj=tmerc +lat_0=-42.88632236111111 +lon_0=170.9799935 +k=1 +x_0=300000 +y_0=700000 +datum=nzgd49 +units=m +towgs84=59.47,-5.04,187.44,0.47,-0.1,1.024,-4.5993 +nadgrids=nzgd2kgrid0005.gsb +no_defs "],"EPSG:27222":["EPSG:27222","+proj=tmerc +lat_0=-43.11012813888889 +lon_0=170.2609258333333 +k=1 +x_0=300000 +y_0=700000 +datum=nzgd49 +units=m +towgs84=59.47,-5.04,187.44,0.47,-0.1,1.024,-4.5993 +nadgrids=nzgd2kgrid0005.gsb +no_defs "],"EPSG:27223":["EPSG:27223","+proj=tmerc +lat_0=-43.97780288888889 +lon_0=168.606267 +k=1 +x_0=300000 +y_0=700000 +datum=nzgd49 +units=m +towgs84=59.47,-5.04,187.44,0.47,-0.1,1.024,-4.5993 +nadgrids=nzgd2kgrid0005.gsb +no_defs "],"EPSG:27224":["EPSG:27224","+proj=tmerc +lat_0=-43.59063758333333 +lon_0=172.7271935833333 +k=1 +x_0=300000 +y_0=700000 +datum=nzgd49 +towgs84=59.47,-5.04,187.44,0.47,-0.1,1.024,-4.5993 +nadgrids=nzgd2kgrid0005.gsb +units=m +no_defs "],"EPSG:27225":["EPSG:27225","+proj=tmerc +lat_0=-43.74871155555556 +lon_0=171.3607484722222 +k=1 +x_0=300000 +y_0=700000 +datum=nzgd49 +units=m +towgs84=59.47,-5.04,187.44,0.47,-0.1,1.024,-4.5993 +nadgrids=nzgd2kgrid0005.gsb +no_defs "],"EPSG:27226":["EPSG:27226","+proj=tmerc +lat_0=-44.40222036111111 +lon_0=171.0572508333333 +k=1 +x_0=300000 +y_0=700000 +datum=nzgd49 +units=m +towgs84=59.47,-5.04,187.44,0.47,-0.1,1.024,-4.5993 +nadgrids=nzgd2kgrid0005.gsb +no_defs "],"EPSG:27227":["EPSG:27227","+proj=tmerc +lat_0=-44.73526797222222 +lon_0=169.4677550833333 +k=1 +x_0=300000 +y_0=700000 +datum=nzgd49 +units=m +towgs84=59.47,-5.04,187.44,0.47,-0.1,1.024,-4.5993 +nadgrids=nzgd2kgrid0005.gsb +no_defs "],"EPSG:27228":["EPSG:27228","+proj=tmerc +lat_0=-45.13290258333333 +lon_0=168.3986411944444 +k=1 +x_0=300000 +y_0=700000 +datum=nzgd49 +units=m +towgs84=59.47,-5.04,187.44,0.47,-0.1,1.024,-4.5993 +nadgrids=nzgd2kgrid0005.gsb +no_defs "],"EPSG:27229":["EPSG:27229","+proj=tmerc +lat_0=-45.56372616666666 +lon_0=167.7388617777778 +k=1 +x_0=300000 +y_0=700000 +datum=nzgd49 +units=m +towgs84=59.47,-5.04,187.44,0.47,-0.1,1.024,-4.5993 +nadgrids=nzgd2kgrid0005.gsb +no_defs "],"EPSG:27230":["EPSG:27230","+proj=tmerc +lat_0=-45.81619661111111 +lon_0=170.6285951666667 +k=1 +x_0=300000 +y_0=700000 +datum=nzgd49 +towgs84=59.47,-5.04,187.44,0.47,-0.1,1.024,-4.5993 +nadgrids=nzgd2kgrid0005.gsb +units=m +no_defs "],"EPSG:27231":["EPSG:27231","+proj=tmerc +lat_0=-45.86151336111111 +lon_0=170.2825891111111 +k=0.99996 +x_0=300000 +y_0=700000 +datum=nzgd49 +units=m +towgs84=59.47,-5.04,187.44,0.47,-0.1,1.024,-4.5993 +nadgrids=nzgd2kgrid0005.gsb +no_defs "],"EPSG:27232":["EPSG:27232","+proj=tmerc +lat_0=-46.60000961111111 +lon_0=168.342872 +k=1 +x_0=300002.66 +y_0=699999.58 +datum=nzgd49 +units=m +towgs84=59.47,-5.04,187.44,0.47,-0.1,1.024,-4.5993 +nadgrids=nzgd2kgrid0005.gsb +no_defs "],"EPSG:27258":["EPSG:27258","+proj=utm +zone=58 +south +datum=nzgd49 +units=m +towgs84=59.47,-5.04,187.44,0.47,-0.1,1.024,-4.5993 +nadgrids=nzgd2kgrid0005.gsb +no_defs "],"EPSG:27259":["EPSG:27259","+proj=utm +zone=59 +south +datum=nzgd49 +units=m +towgs84=59.47,-5.04,187.44,0.47,-0.1,1.024,-4.5993 +nadgrids=nzgd2kgrid0005.gsb +no_defs "],"EPSG:27260":["EPSG:27260","+proj=utm +zone=60 +south +datum=nzgd49 +units=m +towgs84=59.47,-5.04,187.44,0.47,-0.1,1.024,-4.5993 +nadgrids=nzgd2kgrid0005.gsb +no_defs "],"EPSG:27291":["EPSG:27291","+proj=tmerc +lat_0=-39 +lon_0=175.5 +k=1 +x_0=274319.5243848086 +y_0=365759.3658464114 +datum=nzgd49 +to_meter=0.9143984146160287 +towgs84=59.47,-5.04,187.44,0.47,-0.1,1.024,-4.5993 +nadgrids=nzgd2kgrid0005.gsb +no_defs "],"EPSG:27292":["EPSG:27292","+proj=tmerc +lat_0=-44 +lon_0=171.5 +k=1 +x_0=457199.2073080143 +y_0=457199.2073080143 +datum=nzgd49 +to_meter=0.9143984146160287 +towgs84=59.47,-5.04,187.44,0.47,-0.1,1.024,-4.5993 +nadgrids=nzgd2kgrid0005.gsb +no_defs "],"EPSG:31121":["EPSG:31121","+proj=utm +zone=21 +ellps=intl +towgs84=-265,120,-358,0,0,0,0 +units=m +no_defs "],"EPSG:27392":["EPSG:27392","+proj=tmerc +lat_0=58 +lon_0=-2.333333333333333 +k=1 +x_0=0 +y_0=0 +a=6377492.018 +b=6356173.508712696 +towgs84=278.3,93,474.5,7.889,0.05,-6.61,6.21 +pm=oslo +units=m +no_defs "],"EPSG:27394":["EPSG:27394","+proj=tmerc +lat_0=58 +lon_0=2.5 +k=1 +x_0=0 +y_0=0 +a=6377492.018 +b=6356173.508712696 +towgs84=278.3,93,474.5,7.889,0.05,-6.61,6.21 +pm=oslo +units=m +no_defs "],"EPSG:27395":["EPSG:27395","+proj=tmerc +lat_0=58 +lon_0=6.166666666666667 +k=1 +x_0=0 +y_0=0 +a=6377492.018 +b=6356173.508712696 +towgs84=278.3,93,474.5,7.889,0.05,-6.61,6.21 +pm=oslo +units=m +no_defs "],"EPSG:27396":["EPSG:27396","+proj=tmerc +lat_0=58 +lon_0=10.16666666666667 +k=1 +x_0=0 +y_0=0 +a=6377492.018 +b=6356173.508712696 +towgs84=278.3,93,474.5,7.889,0.05,-6.61,6.21 +pm=oslo +units=m +no_defs "],"EPSG:27397":["EPSG:27397","+proj=tmerc +lat_0=58 +lon_0=14.16666666666667 +k=1 +x_0=0 +y_0=0 +a=6377492.018 +b=6356173.508712696 +towgs84=278.3,93,474.5,7.889,0.05,-6.61,6.21 +pm=oslo +units=m +no_defs "],"EPSG:27398":["EPSG:27398","+proj=tmerc +lat_0=58 +lon_0=18.33333333333333 +k=1 +x_0=0 +y_0=0 +a=6377492.018 +b=6356173.508712696 +towgs84=278.3,93,474.5,7.889,0.05,-6.61,6.21 +pm=oslo +units=m +no_defs "],"EPSG:27429":["EPSG:27429","+proj=utm +zone=29 +ellps=intl +towgs84=-223.237,110.193,36.649,0,0,0,0 +units=m +no_defs "],"EPSG:27500":["EPSG:27500","+proj=lcc +lat_1=49.50000000000001 +lat_0=49.50000000000001 +lon_0=5.399999999999999 +k_0=0.99950908 +x_0=500000 +y_0=300000 +a=6376523 +b=6355862.933255573 +pm=2.337208333333333 +units=m +no_defs "],"EPSG:27564":["EPSG:27564","+proj=lcc +lat_1=42.16500000000001 +lat_0=42.16500000000001 +lon_0=0 +k_0=0.99994471 +x_0=234.358 +y_0=185861.369 +a=6378249.2 +b=6356515 +towgs84=-168,-60,320,0,0,0,0 +pm=paris +units=m +no_defs "],"EPSG:27571":["EPSG:27571","+proj=lcc +lat_1=49.50000000000001 +lat_0=49.50000000000001 +lon_0=0 +k_0=0.999877341 +x_0=600000 +y_0=1200000 +a=6378249.2 +b=6356515 +towgs84=-168,-60,320,0,0,0,0 +pm=paris +units=m +no_defs "],"EPSG:5544":["EPSG:5544","+proj=geocent +ellps=GRS80 +units=m +no_defs "],"EPSG:27574":["EPSG:27574","+proj=lcc +lat_1=42.16500000000001 +lat_0=42.16500000000001 +lon_0=0 +k_0=0.99994471 +x_0=234.358 +y_0=4185861.369 +a=6378249.2 +b=6356515 +towgs84=-168,-60,320,0,0,0,0 +pm=paris +units=m +no_defs "],"EPSG:27581":["EPSG:27581","+proj=lcc +lat_1=49.50000000000001 +lat_0=49.50000000000001 +lon_0=0 +k_0=0.999877341 +x_0=600000 +y_0=1200000 +a=6378249.2 +b=6356515 +towgs84=-168,-60,320,0,0,0,0 +pm=paris +units=m +no_defs "],"EPSG:27583":["EPSG:27583","+proj=lcc +lat_1=44.10000000000001 +lat_0=44.10000000000001 +lon_0=0 +k_0=0.999877499 +x_0=600000 +y_0=3200000 +a=6378249.2 +b=6356515 +towgs84=-168,-60,320,0,0,0,0 +pm=paris +units=m +no_defs "],"EPSG:27584":["EPSG:27584","+proj=lcc +lat_1=42.16500000000001 +lat_0=42.16500000000001 +lon_0=0 +k_0=0.99994471 +x_0=234.358 +y_0=4185861.369 +a=6378249.2 +b=6356515 +towgs84=-168,-60,320,0,0,0,0 +pm=paris +units=m +no_defs "],"EPSG:27591":["EPSG:27591","+proj=lcc +lat_1=49.50000000000001 +lat_0=49.50000000000001 +lon_0=0 +k_0=0.999877341 +x_0=600000 +y_0=200000 +a=6378249.2 +b=6356515 +towgs84=-168,-60,320,0,0,0,0 +pm=paris +units=m +no_defs "],"EPSG:27592":["EPSG:27592","+proj=lcc +lat_1=46.8 +lat_0=46.8 +lon_0=0 +k_0=0.99987742 +x_0=600000 +y_0=200000 +a=6378249.2 +b=6356515 +towgs84=-168,-60,320,0,0,0,0 +pm=paris +units=m +no_defs "],"EPSG:5558":["EPSG:5558","+proj=geocent +ellps=krass +units=m +no_defs "],"EPSG:27593":["EPSG:27593","+proj=lcc +lat_1=44.10000000000001 +lat_0=44.10000000000001 +lon_0=0 +k_0=0.999877499 +x_0=600000 +y_0=200000 +a=6378249.2 +b=6356515 +towgs84=-168,-60,320,0,0,0,0 +pm=paris +units=m +no_defs "],"EPSG:27594":["EPSG:27594","+proj=lcc +lat_1=42.16500000000001 +lat_0=42.16500000000001 +lon_0=0 +k_0=0.99994471 +x_0=234.358 +y_0=185861.369 +a=6378249.2 +b=6356515 +towgs84=-168,-60,320,0,0,0,0 +pm=paris +units=m +no_defs "],"EPSG:28191":["EPSG:28191","+proj=cass +lat_0=31.73409694444445 +lon_0=35.21208055555556 +x_0=170251.555 +y_0=126867.909 +a=6378300.789 +b=6356566.435 +towgs84=-275.7224,94.7824,340.8944,-8.001,-4.42,-11.821,1 +units=m +no_defs "],"EPSG:28192":["EPSG:28192","+proj=tmerc +lat_0=31.73409694444445 +lon_0=35.21208055555556 +k=1 +x_0=170251.555 +y_0=1126867.909 +a=6378300.789 +b=6356566.435 +towgs84=-275.7224,94.7824,340.8944,-8.001,-4.42,-11.821,1 +units=m +no_defs "],"EPSG:28193":["EPSG:28193","+proj=cass +lat_0=31.73409694444445 +lon_0=35.21208055555556 +x_0=170251.555 +y_0=1126867.909 +a=6378300.789 +b=6356566.435 +towgs84=-275.7224,94.7824,340.8944,-8.001,-4.42,-11.821,1 +units=m +no_defs "],"EPSG:28232":["EPSG:28232","+proj=utm +zone=32 +south +a=6378249.2 +b=6356515 +towgs84=-148,51,-291,0,0,0,0 +units=m +no_defs "],"EPSG:28348":["EPSG:28348","+proj=utm +zone=48 +south +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs "],"EPSG:28349":["EPSG:28349","+proj=utm +zone=49 +south +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs "],"EPSG:28357":["EPSG:28357","+proj=utm +zone=57 +south +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs "],"EPSG:28358":["EPSG:28358","+proj=utm +zone=58 +south +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs "],"EPSG:28402":["EPSG:28402","+proj=tmerc +lat_0=0 +lon_0=9 +k=1 +x_0=2500000 +y_0=0 +ellps=krass +towgs84=23.92,-141.27,-80.9,0,0.35,0.82,-0.12 +units=m +no_defs "],"EPSG:28403":["EPSG:28403","+proj=tmerc +lat_0=0 +lon_0=15 +k=1 +x_0=3500000 +y_0=0 +ellps=krass +towgs84=23.92,-141.27,-80.9,0,0.35,0.82,-0.12 +units=m +no_defs "],"EPSG:28404":["EPSG:28404","+proj=tmerc +lat_0=0 +lon_0=21 +k=1 +x_0=4500000 +y_0=0 +ellps=krass +towgs84=23.92,-141.27,-80.9,0,0.35,0.82,-0.12 +units=m +no_defs "],"EPSG:28405":["EPSG:28405","+proj=tmerc +lat_0=0 +lon_0=27 +k=1 +x_0=5500000 +y_0=0 +ellps=krass +towgs84=23.92,-141.27,-80.9,0,0.35,0.82,-0.12 +units=m +no_defs "],"EPSG:28406":["EPSG:28406","+proj=tmerc +lat_0=0 +lon_0=33 +k=1 +x_0=6500000 +y_0=0 +ellps=krass +towgs84=23.92,-141.27,-80.9,0,0.35,0.82,-0.12 +units=m +no_defs "],"EPSG:28407":["EPSG:28407","+proj=tmerc +lat_0=0 +lon_0=39 +k=1 +x_0=7500000 +y_0=0 +ellps=krass +towgs84=23.92,-141.27,-80.9,0,0.35,0.82,-0.12 +units=m +no_defs "],"EPSG:28408":["EPSG:28408","+proj=tmerc +lat_0=0 +lon_0=45 +k=1 +x_0=8500000 +y_0=0 +ellps=krass +towgs84=23.92,-141.27,-80.9,0,0.35,0.82,-0.12 +units=m +no_defs "],"EPSG:28409":["EPSG:28409","+proj=tmerc +lat_0=0 +lon_0=51 +k=1 +x_0=9500000 +y_0=0 +ellps=krass +towgs84=23.92,-141.27,-80.9,0,0.35,0.82,-0.12 +units=m +no_defs "],"EPSG:28410":["EPSG:28410","+proj=tmerc +lat_0=0 +lon_0=57 +k=1 +x_0=10500000 +y_0=0 +ellps=krass +towgs84=23.92,-141.27,-80.9,0,0.35,0.82,-0.12 +units=m +no_defs "],"EPSG:28411":["EPSG:28411","+proj=tmerc +lat_0=0 +lon_0=63 +k=1 +x_0=11500000 +y_0=0 +ellps=krass +towgs84=23.92,-141.27,-80.9,0,0.35,0.82,-0.12 +units=m +no_defs "],"EPSG:28412":["EPSG:28412","+proj=tmerc +lat_0=0 +lon_0=69 +k=1 +x_0=12500000 +y_0=0 +ellps=krass +towgs84=23.92,-141.27,-80.9,0,0.35,0.82,-0.12 +units=m +no_defs "],"EPSG:28413":["EPSG:28413","+proj=tmerc +lat_0=0 +lon_0=75 +k=1 +x_0=13500000 +y_0=0 +ellps=krass +towgs84=23.92,-141.27,-80.9,0,0.35,0.82,-0.12 +units=m +no_defs "],"EPSG:28414":["EPSG:28414","+proj=tmerc +lat_0=0 +lon_0=81 +k=1 +x_0=14500000 +y_0=0 +ellps=krass +towgs84=23.92,-141.27,-80.9,0,0.35,0.82,-0.12 +units=m +no_defs "],"EPSG:28415":["EPSG:28415","+proj=tmerc +lat_0=0 +lon_0=87 +k=1 +x_0=15500000 +y_0=0 +ellps=krass +towgs84=23.92,-141.27,-80.9,0,0.35,0.82,-0.12 +units=m +no_defs "],"EPSG:28416":["EPSG:28416","+proj=tmerc +lat_0=0 +lon_0=93 +k=1 +x_0=16500000 +y_0=0 +ellps=krass +towgs84=23.92,-141.27,-80.9,0,0.35,0.82,-0.12 +units=m +no_defs "],"EPSG:28417":["EPSG:28417","+proj=tmerc +lat_0=0 +lon_0=99 +k=1 +x_0=17500000 +y_0=0 +ellps=krass +towgs84=23.92,-141.27,-80.9,0,0.35,0.82,-0.12 +units=m +no_defs "],"EPSG:28418":["EPSG:28418","+proj=tmerc +lat_0=0 +lon_0=105 +k=1 +x_0=18500000 +y_0=0 +ellps=krass +towgs84=23.92,-141.27,-80.9,0,0.35,0.82,-0.12 +units=m +no_defs "],"EPSG:28419":["EPSG:28419","+proj=tmerc +lat_0=0 +lon_0=111 +k=1 +x_0=19500000 +y_0=0 +ellps=krass +towgs84=23.92,-141.27,-80.9,0,0.35,0.82,-0.12 +units=m +no_defs "],"EPSG:28420":["EPSG:28420","+proj=tmerc +lat_0=0 +lon_0=117 +k=1 +x_0=20500000 +y_0=0 +ellps=krass +towgs84=23.92,-141.27,-80.9,0,0.35,0.82,-0.12 +units=m +no_defs "],"EPSG:28421":["EPSG:28421","+proj=tmerc +lat_0=0 +lon_0=123 +k=1 +x_0=21500000 +y_0=0 +ellps=krass +towgs84=23.92,-141.27,-80.9,0,0.35,0.82,-0.12 +units=m +no_defs "],"EPSG:28422":["EPSG:28422","+proj=tmerc +lat_0=0 +lon_0=129 +k=1 +x_0=22500000 +y_0=0 +ellps=krass +towgs84=23.92,-141.27,-80.9,0,0.35,0.82,-0.12 +units=m +no_defs "],"EPSG:28423":["EPSG:28423","+proj=tmerc +lat_0=0 +lon_0=135 +k=1 +x_0=23500000 +y_0=0 +ellps=krass +towgs84=23.92,-141.27,-80.9,0,0.35,0.82,-0.12 +units=m +no_defs "],"EPSG:28424":["EPSG:28424","+proj=tmerc +lat_0=0 +lon_0=141 +k=1 +x_0=24500000 +y_0=0 +ellps=krass +towgs84=23.92,-141.27,-80.9,0,0.35,0.82,-0.12 +units=m +no_defs "],"EPSG:28425":["EPSG:28425","+proj=tmerc +lat_0=0 +lon_0=147 +k=1 +x_0=25500000 +y_0=0 +ellps=krass +towgs84=23.92,-141.27,-80.9,0,0.35,0.82,-0.12 +units=m +no_defs "],"EPSG:28426":["EPSG:28426","+proj=tmerc +lat_0=0 +lon_0=153 +k=1 +x_0=26500000 +y_0=0 +ellps=krass +towgs84=23.92,-141.27,-80.9,0,0.35,0.82,-0.12 +units=m +no_defs "],"EPSG:28427":["EPSG:28427","+proj=tmerc +lat_0=0 +lon_0=159 +k=1 +x_0=27500000 +y_0=0 +ellps=krass +towgs84=23.92,-141.27,-80.9,0,0.35,0.82,-0.12 +units=m +no_defs "],"EPSG:28428":["EPSG:28428","+proj=tmerc +lat_0=0 +lon_0=165 +k=1 +x_0=28500000 +y_0=0 +ellps=krass +towgs84=23.92,-141.27,-80.9,0,0.35,0.82,-0.12 +units=m +no_defs "],"EPSG:28429":["EPSG:28429","+proj=tmerc +lat_0=0 +lon_0=171 +k=1 +x_0=29500000 +y_0=0 +ellps=krass +towgs84=23.92,-141.27,-80.9,0,0.35,0.82,-0.12 +units=m +no_defs "],"EPSG:28430":["EPSG:28430","+proj=tmerc +lat_0=0 +lon_0=177 +k=1 +x_0=30500000 +y_0=0 +ellps=krass +towgs84=23.92,-141.27,-80.9,0,0.35,0.82,-0.12 +units=m +no_defs "],"EPSG:28431":["EPSG:28431","+proj=tmerc +lat_0=0 +lon_0=-177 +k=1 +x_0=31500000 +y_0=0 +ellps=krass +towgs84=23.92,-141.27,-80.9,0,0.35,0.82,-0.12 +units=m +no_defs "],"EPSG:28432":["EPSG:28432","+proj=tmerc +lat_0=0 +lon_0=-171 +k=1 +x_0=32500000 +y_0=0 +ellps=krass +towgs84=23.92,-141.27,-80.9,0,0.35,0.82,-0.12 +units=m +no_defs "],"EPSG:28462":["EPSG:28462","+proj=tmerc +lat_0=0 +lon_0=9 +k=1 +x_0=500000 +y_0=0 +ellps=krass +towgs84=23.92,-141.27,-80.9,0,0.35,0.82,-0.12 +units=m +no_defs "],"EPSG:28463":["EPSG:28463","+proj=tmerc +lat_0=0 +lon_0=15 +k=1 +x_0=500000 +y_0=0 +ellps=krass +towgs84=23.92,-141.27,-80.9,0,0.35,0.82,-0.12 +units=m +no_defs "],"EPSG:28464":["EPSG:28464","+proj=tmerc +lat_0=0 +lon_0=21 +k=1 +x_0=500000 +y_0=0 +ellps=krass +towgs84=23.92,-141.27,-80.9,0,0.35,0.82,-0.12 +units=m +no_defs "],"EPSG:28465":["EPSG:28465","+proj=tmerc +lat_0=0 +lon_0=27 +k=1 +x_0=500000 +y_0=0 +ellps=krass +towgs84=23.92,-141.27,-80.9,0,0.35,0.82,-0.12 +units=m +no_defs "],"EPSG:28466":["EPSG:28466","+proj=tmerc +lat_0=0 +lon_0=33 +k=1 +x_0=500000 +y_0=0 +ellps=krass +towgs84=23.92,-141.27,-80.9,0,0.35,0.82,-0.12 +units=m +no_defs "],"EPSG:28467":["EPSG:28467","+proj=tmerc +lat_0=0 +lon_0=39 +k=1 +x_0=500000 +y_0=0 +ellps=krass +towgs84=23.92,-141.27,-80.9,0,0.35,0.82,-0.12 +units=m +no_defs "],"EPSG:28468":["EPSG:28468","+proj=tmerc +lat_0=0 +lon_0=45 +k=1 +x_0=500000 +y_0=0 +ellps=krass +towgs84=23.92,-141.27,-80.9,0,0.35,0.82,-0.12 +units=m +no_defs "],"EPSG:28469":["EPSG:28469","+proj=tmerc +lat_0=0 +lon_0=51 +k=1 +x_0=500000 +y_0=0 +ellps=krass +towgs84=23.92,-141.27,-80.9,0,0.35,0.82,-0.12 +units=m +no_defs "],"EPSG:28470":["EPSG:28470","+proj=tmerc +lat_0=0 +lon_0=57 +k=1 +x_0=500000 +y_0=0 +ellps=krass +towgs84=23.92,-141.27,-80.9,0,0.35,0.82,-0.12 +units=m +no_defs "],"EPSG:28471":["EPSG:28471","+proj=tmerc +lat_0=0 +lon_0=63 +k=1 +x_0=500000 +y_0=0 +ellps=krass +towgs84=23.92,-141.27,-80.9,0,0.35,0.82,-0.12 +units=m +no_defs "],"EPSG:28472":["EPSG:28472","+proj=tmerc +lat_0=0 +lon_0=69 +k=1 +x_0=500000 +y_0=0 +ellps=krass +towgs84=23.92,-141.27,-80.9,0,0.35,0.82,-0.12 +units=m +no_defs "],"EPSG:28473":["EPSG:28473","+proj=tmerc +lat_0=0 +lon_0=75 +k=1 +x_0=500000 +y_0=0 +ellps=krass +towgs84=23.92,-141.27,-80.9,0,0.35,0.82,-0.12 +units=m +no_defs "],"EPSG:28474":["EPSG:28474","+proj=tmerc +lat_0=0 +lon_0=81 +k=1 +x_0=500000 +y_0=0 +ellps=krass +towgs84=23.92,-141.27,-80.9,0,0.35,0.82,-0.12 +units=m +no_defs "],"EPSG:28475":["EPSG:28475","+proj=tmerc +lat_0=0 +lon_0=87 +k=1 +x_0=500000 +y_0=0 +ellps=krass +towgs84=23.92,-141.27,-80.9,0,0.35,0.82,-0.12 +units=m +no_defs "],"EPSG:28476":["EPSG:28476","+proj=tmerc +lat_0=0 +lon_0=93 +k=1 +x_0=500000 +y_0=0 +ellps=krass +towgs84=23.92,-141.27,-80.9,0,0.35,0.82,-0.12 +units=m +no_defs "],"EPSG:28477":["EPSG:28477","+proj=tmerc +lat_0=0 +lon_0=99 +k=1 +x_0=500000 +y_0=0 +ellps=krass +towgs84=23.92,-141.27,-80.9,0,0.35,0.82,-0.12 +units=m +no_defs "],"EPSG:28478":["EPSG:28478","+proj=tmerc +lat_0=0 +lon_0=105 +k=1 +x_0=500000 +y_0=0 +ellps=krass +towgs84=23.92,-141.27,-80.9,0,0.35,0.82,-0.12 +units=m +no_defs "],"EPSG:28479":["EPSG:28479","+proj=tmerc +lat_0=0 +lon_0=111 +k=1 +x_0=500000 +y_0=0 +ellps=krass +towgs84=23.92,-141.27,-80.9,0,0.35,0.82,-0.12 +units=m +no_defs "],"EPSG:32207":["EPSG:32207","+proj=utm +zone=7 +ellps=WGS72 +towgs84=0,0,4.5,0,0,0.554,0.2263 +units=m +no_defs "],"EPSG:28480":["EPSG:28480","+proj=tmerc +lat_0=0 +lon_0=117 +k=1 +x_0=500000 +y_0=0 +ellps=krass +towgs84=23.92,-141.27,-80.9,0,0.35,0.82,-0.12 +units=m +no_defs "],"EPSG:28481":["EPSG:28481","+proj=tmerc +lat_0=0 +lon_0=123 +k=1 +x_0=500000 +y_0=0 +ellps=krass +towgs84=23.92,-141.27,-80.9,0,0.35,0.82,-0.12 +units=m +no_defs "],"EPSG:28482":["EPSG:28482","+proj=tmerc +lat_0=0 +lon_0=129 +k=1 +x_0=500000 +y_0=0 +ellps=krass +towgs84=23.92,-141.27,-80.9,0,0.35,0.82,-0.12 +units=m +no_defs "],"EPSG:28483":["EPSG:28483","+proj=tmerc +lat_0=0 +lon_0=135 +k=1 +x_0=500000 +y_0=0 +ellps=krass +towgs84=23.92,-141.27,-80.9,0,0.35,0.82,-0.12 +units=m +no_defs "],"EPSG:28484":["EPSG:28484","+proj=tmerc +lat_0=0 +lon_0=141 +k=1 +x_0=500000 +y_0=0 +ellps=krass +towgs84=23.92,-141.27,-80.9,0,0.35,0.82,-0.12 +units=m +no_defs "],"EPSG:28485":["EPSG:28485","+proj=tmerc +lat_0=0 +lon_0=147 +k=1 +x_0=500000 +y_0=0 +ellps=krass +towgs84=23.92,-141.27,-80.9,0,0.35,0.82,-0.12 +units=m +no_defs "],"EPSG:28486":["EPSG:28486","+proj=tmerc +lat_0=0 +lon_0=153 +k=1 +x_0=500000 +y_0=0 +ellps=krass +towgs84=23.92,-141.27,-80.9,0,0.35,0.82,-0.12 +units=m +no_defs "],"EPSG:28487":["EPSG:28487","+proj=tmerc +lat_0=0 +lon_0=159 +k=1 +x_0=500000 +y_0=0 +ellps=krass +towgs84=23.92,-141.27,-80.9,0,0.35,0.82,-0.12 +units=m +no_defs "],"EPSG:28488":["EPSG:28488","+proj=tmerc +lat_0=0 +lon_0=165 +k=1 +x_0=500000 +y_0=0 +ellps=krass +towgs84=23.92,-141.27,-80.9,0,0.35,0.82,-0.12 +units=m +no_defs "],"EPSG:32208":["EPSG:32208","+proj=utm +zone=8 +ellps=WGS72 +towgs84=0,0,4.5,0,0,0.554,0.2263 +units=m +no_defs "],"EPSG:28489":["EPSG:28489","+proj=tmerc +lat_0=0 +lon_0=171 +k=1 +x_0=500000 +y_0=0 +ellps=krass +towgs84=23.92,-141.27,-80.9,0,0.35,0.82,-0.12 +units=m +no_defs "],"EPSG:28490":["EPSG:28490","+proj=tmerc +lat_0=0 +lon_0=177 +k=1 +x_0=500000 +y_0=0 +ellps=krass +towgs84=23.92,-141.27,-80.9,0,0.35,0.82,-0.12 +units=m +no_defs "],"EPSG:28491":["EPSG:28491","+proj=tmerc +lat_0=0 +lon_0=-177 +k=1 +x_0=500000 +y_0=0 +ellps=krass +towgs84=23.92,-141.27,-80.9,0,0.35,0.82,-0.12 +units=m +no_defs "],"EPSG:28492":["EPSG:28492","+proj=tmerc +lat_0=0 +lon_0=-171 +k=1 +x_0=500000 +y_0=0 +ellps=krass +towgs84=23.92,-141.27,-80.9,0,0.35,0.82,-0.12 +units=m +no_defs "],"EPSG:28600":["EPSG:28600","+proj=tmerc +lat_0=24.45 +lon_0=51.21666666666667 +k=0.99999 +x_0=200000 +y_0=300000 +ellps=intl +towgs84=-128.16,-282.42,21.93,0,0,0,0 +units=m +no_defs "],"EPSG:5591":["EPSG:5591","+proj=geocent +ellps=GRS80 +units=m +no_defs "],"EPSG:29118":["EPSG:29118","+proj=utm +zone=18 +ellps=GRS67 +towgs84=-57,1,-41,0,0,0,0 +units=m +no_defs "],"EPSG:29119":["EPSG:29119","+proj=utm +zone=19 +ellps=GRS67 +towgs84=-57,1,-41,0,0,0,0 +units=m +no_defs "],"EPSG:29120":["EPSG:29120","+proj=utm +zone=20 +ellps=GRS67 +towgs84=-57,1,-41,0,0,0,0 +units=m +no_defs "],"EPSG:29121":["EPSG:29121","+proj=utm +zone=21 +ellps=GRS67 +towgs84=-57,1,-41,0,0,0,0 +units=m +no_defs "],"EPSG:29122":["EPSG:29122","+proj=utm +zone=22 +ellps=GRS67 +towgs84=-57,1,-41,0,0,0,0 +units=m +no_defs "],"EPSG:29168":["EPSG:29168","+proj=utm +zone=18 +ellps=aust_SA +towgs84=-66.87,4.37,-38.52,0,0,0,0 +units=m +no_defs "],"EPSG:29169":["EPSG:29169","+proj=utm +zone=19 +ellps=aust_SA +towgs84=-66.87,4.37,-38.52,0,0,0,0 +units=m +no_defs "],"EPSG:29170":["EPSG:29170","+proj=utm +zone=20 +ellps=aust_SA +towgs84=-66.87,4.37,-38.52,0,0,0,0 +units=m +no_defs "],"EPSG:29171":["EPSG:29171","+proj=utm +zone=21 +ellps=aust_SA +towgs84=-66.87,4.37,-38.52,0,0,0,0 +units=m +no_defs "],"EPSG:29172":["EPSG:29172","+proj=utm +zone=22 +ellps=aust_SA +towgs84=-66.87,4.37,-38.52,0,0,0,0 +units=m +no_defs "],"EPSG:29177":["EPSG:29177","+proj=utm +zone=17 +south +ellps=GRS67 +towgs84=-57,1,-41,0,0,0,0 +units=m +no_defs "],"EPSG:29178":["EPSG:29178","+proj=utm +zone=18 +south +ellps=GRS67 +towgs84=-57,1,-41,0,0,0,0 +units=m +no_defs "],"EPSG:29179":["EPSG:29179","+proj=utm +zone=19 +south +ellps=GRS67 +towgs84=-57,1,-41,0,0,0,0 +units=m +no_defs "],"EPSG:29181":["EPSG:29181","+proj=utm +zone=21 +south +ellps=GRS67 +towgs84=-57,1,-41,0,0,0,0 +units=m +no_defs "],"EPSG:29183":["EPSG:29183","+proj=utm +zone=23 +south +ellps=GRS67 +towgs84=-57,1,-41,0,0,0,0 +units=m +no_defs "],"EPSG:29185":["EPSG:29185","+proj=utm +zone=25 +south +ellps=GRS67 +towgs84=-57,1,-41,0,0,0,0 +units=m +no_defs "],"EPSG:29187":["EPSG:29187","+proj=utm +zone=17 +south +ellps=aust_SA +towgs84=-66.87,4.37,-38.52,0,0,0,0 +units=m +no_defs "],"EPSG:29188":["EPSG:29188","+proj=utm +zone=18 +south +ellps=aust_SA +towgs84=-66.87,4.37,-38.52,0,0,0,0 +units=m +no_defs "],"EPSG:29189":["EPSG:29189","+proj=utm +zone=19 +south +ellps=aust_SA +towgs84=-66.87,4.37,-38.52,0,0,0,0 +units=m +no_defs "],"EPSG:29190":["EPSG:29190","+proj=utm +zone=20 +south +ellps=aust_SA +towgs84=-66.87,4.37,-38.52,0,0,0,0 +units=m +no_defs "],"EPSG:29192":["EPSG:29192","+proj=utm +zone=22 +south +ellps=aust_SA +towgs84=-66.87,4.37,-38.52,0,0,0,0 +units=m +no_defs "],"EPSG:29194":["EPSG:29194","+proj=utm +zone=24 +south +ellps=aust_SA +towgs84=-66.87,4.37,-38.52,0,0,0,0 +units=m +no_defs "],"EPSG:29195":["EPSG:29195","+proj=utm +zone=25 +south +ellps=aust_SA +towgs84=-66.87,4.37,-38.52,0,0,0,0 +units=m +no_defs "],"EPSG:29220":["EPSG:29220","+proj=utm +zone=20 +south +ellps=intl +towgs84=-355,21,72,0,0,0,0 +units=m +no_defs "],"EPSG:29221":["EPSG:29221","+proj=utm +zone=21 +south +ellps=intl +towgs84=-355,21,72,0,0,0,0 +units=m +no_defs "],"EPSG:29333":["EPSG:29333","+proj=utm +zone=33 +south +ellps=bess_nam +towgs84=616,97,-251,0,0,0,0 +units=m +no_defs "],"EPSG:29371":["EPSG:29371","+proj=tmerc +lat_0=-22 +lon_0=11 +k=1 +x_0=0 +y_0=0 +axis=wsu +ellps=bess_nam +towgs84=616,97,-251,0,0,0,0 +to_meter=1.0000135965 +no_defs "],"EPSG:29373":["EPSG:29373","+proj=tmerc +lat_0=-22 +lon_0=13 +k=1 +x_0=0 +y_0=0 +axis=wsu +ellps=bess_nam +towgs84=616,97,-251,0,0,0,0 +to_meter=1.0000135965 +no_defs "],"EPSG:29375":["EPSG:29375","+proj=tmerc +lat_0=-22 +lon_0=15 +k=1 +x_0=0 +y_0=0 +axis=wsu +ellps=bess_nam +towgs84=616,97,-251,0,0,0,0 +to_meter=1.0000135965 +no_defs "],"EPSG:29377":["EPSG:29377","+proj=tmerc +lat_0=-22 +lon_0=17 +k=1 +x_0=0 +y_0=0 +axis=wsu +ellps=bess_nam +towgs84=616,97,-251,0,0,0,0 +to_meter=1.0000135965 +no_defs "],"EPSG:29379":["EPSG:29379","+proj=tmerc +lat_0=-22 +lon_0=19 +k=1 +x_0=0 +y_0=0 +axis=wsu +ellps=bess_nam +towgs84=616,97,-251,0,0,0,0 +to_meter=1.0000135965 +no_defs "],"EPSG:29381":["EPSG:29381","+proj=tmerc +lat_0=-22 +lon_0=21 +k=1 +x_0=0 +y_0=0 +axis=wsu +ellps=bess_nam +towgs84=616,97,-251,0,0,0,0 +to_meter=1.0000135965 +no_defs "],"EPSG:29383":["EPSG:29383","+proj=tmerc +lat_0=-22 +lon_0=23 +k=1 +x_0=0 +y_0=0 +axis=wsu +ellps=bess_nam +towgs84=616,97,-251,0,0,0,0 +to_meter=1.0000135965 +no_defs "],"EPSG:29385":["EPSG:29385","+proj=tmerc +lat_0=-22 +lon_0=25 +k=1 +x_0=0 +y_0=0 +axis=wsu +ellps=bess_nam +towgs84=616,97,-251,0,0,0,0 +to_meter=1.0000135965 +no_defs "],"EPSG:29700":["EPSG:29700","+proj=omerc +lat_0=-18.9 +lonc=44.10000000000001 +alpha=18.9 +k=0.9995000000000001 +x_0=400000 +y_0=800000 +gamma=18.9 +ellps=intl +towgs84=-189,-242,-91,0,0,0,0 +pm=paris +units=m +no_defs "],"EPSG:29701":["EPSG:29701",""],"EPSG:29702":["EPSG:29702","+proj=omerc +lat_0=-18.9 +lonc=44.10000000000001 +alpha=18.9 +k=0.9995000000000001 +x_0=400000 +y_0=800000 +gamma=18.9 +ellps=intl +towgs84=-189,-242,-91,0,0,0,0 +pm=paris +units=m +no_defs "],"EPSG:29738":["EPSG:29738","+proj=utm +zone=38 +south +ellps=intl +towgs84=-189,-242,-91,0,0,0,0 +units=m +no_defs "],"EPSG:29739":["EPSG:29739","+proj=utm +zone=39 +south +ellps=intl +towgs84=-189,-242,-91,0,0,0,0 +units=m +no_defs "],"EPSG:29849":["EPSG:29849","+proj=utm +zone=49 +ellps=evrstSS +towgs84=-679,669,-48,0,0,0,0 +units=m +no_defs "],"EPSG:29850":["EPSG:29850","+proj=utm +zone=50 +ellps=evrstSS +towgs84=-679,669,-48,0,0,0,0 +units=m +no_defs "],"EPSG:29871":["EPSG:29871","+proj=omerc +lat_0=4 +lonc=115 +alpha=53.31582047222222 +k=0.99984 +x_0=590476.8714630401 +y_0=442857.653094361 +gamma=53.13010236111111 +ellps=evrstSS +towgs84=-679,669,-48,0,0,0,0 +to_meter=20.11676512155263 +no_defs "],"EPSG:29873":["EPSG:29873","+proj=omerc +lat_0=4 +lonc=115 +alpha=53.31582047222222 +k=0.99984 +x_0=590476.87 +y_0=442857.65 +gamma=53.13010236111111 +ellps=evrstSS +towgs84=-679,669,-48,0,0,0,0 +units=m +no_defs "],"EPSG:29901":["EPSG:29901","+proj=tmerc +lat_0=53.5 +lon_0=-8 +k=1 +x_0=200000 +y_0=250000 +ellps=airy +towgs84=482.5,-130.6,564.6,-1.042,-0.214,-0.631,8.15 +units=m +no_defs "],"EPSG:29903":["EPSG:29903","+proj=tmerc +lat_0=53.5 +lon_0=-8 +k=1.000035 +x_0=200000 +y_0=250000 +ellps=mod_airy +towgs84=482.5,-130.6,564.6,-1.042,-0.214,-0.631,8.15 +units=m +no_defs "],"EPSG:30161":["EPSG:30161","+proj=tmerc +lat_0=33 +lon_0=129.5 +k=0.9999 +x_0=0 +y_0=0 +ellps=bessel +towgs84=-146.414,507.337,680.507,0,0,0,0 +units=m +no_defs "],"EPSG:30162":["EPSG:30162","+proj=tmerc +lat_0=33 +lon_0=131 +k=0.9999 +x_0=0 +y_0=0 +ellps=bessel +towgs84=-146.414,507.337,680.507,0,0,0,0 +units=m +no_defs "],"EPSG:30163":["EPSG:30163","+proj=tmerc +lat_0=36 +lon_0=132.1666666666667 +k=0.9999 +x_0=0 +y_0=0 +ellps=bessel +towgs84=-146.414,507.337,680.507,0,0,0,0 +units=m +no_defs "],"EPSG:30164":["EPSG:30164","+proj=tmerc +lat_0=33 +lon_0=133.5 +k=0.9999 +x_0=0 +y_0=0 +ellps=bessel +towgs84=-146.414,507.337,680.507,0,0,0,0 +units=m +no_defs "],"EPSG:5828":["EPSG:5828","+proj=geocent +ellps=bessel +units=m +no_defs "],"EPSG:30165":["EPSG:30165","+proj=tmerc +lat_0=36 +lon_0=134.3333333333333 +k=0.9999 +x_0=0 +y_0=0 +ellps=bessel +towgs84=-146.414,507.337,680.507,0,0,0,0 +units=m +no_defs "],"EPSG:30166":["EPSG:30166","+proj=tmerc +lat_0=36 +lon_0=136 +k=0.9999 +x_0=0 +y_0=0 +ellps=bessel +towgs84=-146.414,507.337,680.507,0,0,0,0 +units=m +no_defs "],"EPSG:30167":["EPSG:30167","+proj=tmerc +lat_0=36 +lon_0=137.1666666666667 +k=0.9999 +x_0=0 +y_0=0 +ellps=bessel +towgs84=-146.414,507.337,680.507,0,0,0,0 +units=m +no_defs "],"EPSG:30168":["EPSG:30168","+proj=tmerc +lat_0=36 +lon_0=138.5 +k=0.9999 +x_0=0 +y_0=0 +ellps=bessel +towgs84=-146.414,507.337,680.507,0,0,0,0 +units=m +no_defs "],"EPSG:30169":["EPSG:30169","+proj=tmerc +lat_0=36 +lon_0=139.8333333333333 +k=0.9999 +x_0=0 +y_0=0 +ellps=bessel +towgs84=-146.414,507.337,680.507,0,0,0,0 +units=m +no_defs "],"EPSG:30170":["EPSG:30170","+proj=tmerc +lat_0=40 +lon_0=140.8333333333333 +k=0.9999 +x_0=0 +y_0=0 +ellps=bessel +towgs84=-146.414,507.337,680.507,0,0,0,0 +units=m +no_defs "],"EPSG:30171":["EPSG:30171","+proj=tmerc +lat_0=44 +lon_0=140.25 +k=0.9999 +x_0=0 +y_0=0 +ellps=bessel +towgs84=-146.414,507.337,680.507,0,0,0,0 +units=m +no_defs "],"EPSG:30172":["EPSG:30172","+proj=tmerc +lat_0=44 +lon_0=142.25 +k=0.9999 +x_0=0 +y_0=0 +ellps=bessel +towgs84=-146.414,507.337,680.507,0,0,0,0 +units=m +no_defs "],"EPSG:30173":["EPSG:30173","+proj=tmerc +lat_0=44 +lon_0=144.25 +k=0.9999 +x_0=0 +y_0=0 +ellps=bessel +towgs84=-146.414,507.337,680.507,0,0,0,0 +units=m +no_defs "],"EPSG:30174":["EPSG:30174","+proj=tmerc +lat_0=26 +lon_0=142 +k=0.9999 +x_0=0 +y_0=0 +ellps=bessel +towgs84=-146.414,507.337,680.507,0,0,0,0 +units=m +no_defs "],"EPSG:30175":["EPSG:30175","+proj=tmerc +lat_0=26 +lon_0=127.5 +k=0.9999 +x_0=0 +y_0=0 +ellps=bessel +towgs84=-146.414,507.337,680.507,0,0,0,0 +units=m +no_defs "],"EPSG:30176":["EPSG:30176","+proj=tmerc +lat_0=26 +lon_0=124 +k=0.9999 +x_0=0 +y_0=0 +ellps=bessel +towgs84=-146.414,507.337,680.507,0,0,0,0 +units=m +no_defs "],"EPSG:30177":["EPSG:30177","+proj=tmerc +lat_0=26 +lon_0=131 +k=0.9999 +x_0=0 +y_0=0 +ellps=bessel +towgs84=-146.414,507.337,680.507,0,0,0,0 +units=m +no_defs "],"EPSG:30178":["EPSG:30178","+proj=tmerc +lat_0=20 +lon_0=136 +k=0.9999 +x_0=0 +y_0=0 +ellps=bessel +towgs84=-146.414,507.337,680.507,0,0,0,0 +units=m +no_defs "],"EPSG:30179":["EPSG:30179","+proj=tmerc +lat_0=26 +lon_0=154 +k=0.9999 +x_0=0 +y_0=0 +ellps=bessel +towgs84=-146.414,507.337,680.507,0,0,0,0 +units=m +no_defs "],"EPSG:30200":["EPSG:30200","+proj=cass +lat_0=10.44166666666667 +lon_0=-61.33333333333334 +x_0=86501.46392051999 +y_0=65379.0134283 +a=6378293.645208759 +b=6356617.987679838 +towgs84=-61.702,284.488,472.052,0,0,0,0 +to_meter=0.201166195164 +no_defs "],"EPSG:30339":["EPSG:30339","+proj=utm +zone=39 +ellps=helmert +units=m +no_defs "],"EPSG:30340":["EPSG:30340","+proj=utm +zone=40 +ellps=helmert +units=m +no_defs "],"EPSG:30491":["EPSG:30491","+proj=lcc +lat_1=36 +lat_0=36 +lon_0=2.7 +k_0=0.999625544 +x_0=500000 +y_0=300000 +a=6378249.2 +b=6356515 +towgs84=-73,-247,227,0,0,0,0 +units=m +no_defs "],"EPSG:31028":["EPSG:31028","+proj=utm +zone=28 +a=6378249.2 +b=6356515 +towgs84=-30,190,89,0,0,0,0 +units=m +no_defs "],"EPSG:30492":["EPSG:30492","+proj=lcc +lat_1=33.3 +lat_0=33.3 +lon_0=2.7 +k_0=0.999625769 +x_0=500000 +y_0=300000 +a=6378249.2 +b=6356515 +towgs84=-73,-247,227,0,0,0,0 +units=m +no_defs "],"EPSG:30493":["EPSG:30493","+proj=lcc +lat_1=36 +lat_0=36 +lon_0=2.7 +k_0=0.999625544 +x_0=500000 +y_0=300000 +a=6378249.2 +b=6356515 +units=m +no_defs "],"EPSG:30494":["EPSG:30494","+proj=lcc +lat_1=33.3 +lat_0=33.3 +lon_0=2.7 +k_0=0.999625769 +x_0=500000 +y_0=300000 +a=6378249.2 +b=6356515 +units=m +no_defs "],"EPSG:30729":["EPSG:30729","+proj=utm +zone=29 +ellps=clrk80 +towgs84=-209.3622,-87.8162,404.6198,0.0046,3.4784,0.5805,-1.4547 +units=m +no_defs "],"EPSG:30730":["EPSG:30730","+proj=utm +zone=30 +ellps=clrk80 +towgs84=-209.3622,-87.8162,404.6198,0.0046,3.4784,0.5805,-1.4547 +units=m +no_defs "],"EPSG:30731":["EPSG:30731","+proj=utm +zone=31 +ellps=clrk80 +towgs84=-209.3622,-87.8162,404.6198,0.0046,3.4784,0.5805,-1.4547 +units=m +no_defs "],"EPSG:30732":["EPSG:30732","+proj=utm +zone=32 +ellps=clrk80 +towgs84=-209.3622,-87.8162,404.6198,0.0046,3.4784,0.5805,-1.4547 +units=m +no_defs "],"EPSG:30791":["EPSG:30791","+proj=lcc +lat_1=36 +lat_0=36 +lon_0=2.7 +k_0=0.999625544 +x_0=500135 +y_0=300090 +ellps=clrk80 +towgs84=-209.3622,-87.8162,404.6198,0.0046,3.4784,0.5805,-1.4547 +units=m +no_defs "],"EPSG:30792":["EPSG:30792","+proj=lcc +lat_1=33.3 +lat_0=33.3 +lon_0=2.7 +k_0=0.999625769 +x_0=500135 +y_0=300090 +ellps=clrk80 +towgs84=-209.3622,-87.8162,404.6198,0.0046,3.4784,0.5805,-1.4547 +units=m +no_defs "],"EPSG:31154":["EPSG:31154","+proj=tmerc +lat_0=0 +lon_0=-54 +k=0.9996 +x_0=500000 +y_0=0 +ellps=intl +towgs84=-265,120,-358,0,0,0,0 +units=m +no_defs "],"EPSG:31170":["EPSG:31170","+proj=tmerc +lat_0=0 +lon_0=-55.68333333333333 +k=0.9996 +x_0=500000 +y_0=0 +ellps=intl +towgs84=-265,120,-358,0,0,0,0 +units=m +no_defs "],"EPSG:31171":["EPSG:31171","+proj=tmerc +lat_0=0 +lon_0=-55.68333333333333 +k=0.9999 +x_0=500000 +y_0=0 +ellps=intl +towgs84=-265,120,-358,0,0,0,0 +units=m +no_defs "],"EPSG:31251":["EPSG:31251","+proj=tmerc +lat_0=0 +lon_0=28 +k=1 +x_0=0 +y_0=-5000000 +ellps=bessel +towgs84=682,-203,480,0,0,0,0 +pm=ferro +units=m +no_defs "],"EPSG:31253":["EPSG:31253","+proj=tmerc +lat_0=0 +lon_0=34 +k=1 +x_0=0 +y_0=-5000000 +ellps=bessel +towgs84=682,-203,480,0,0,0,0 +pm=ferro +units=m +no_defs "],"EPSG:31256":["EPSG:31256","+proj=tmerc +lat_0=0 +lon_0=16.33333333333333 +k=1 +x_0=0 +y_0=-5000000 +datum=hermannskogel +units=m +no_defs "],"EPSG:31257":["EPSG:31257","+proj=tmerc +lat_0=0 +lon_0=10.33333333333333 +k=1 +x_0=150000 +y_0=-5000000 +datum=hermannskogel +units=m +no_defs "],"EPSG:31259":["EPSG:31259","+proj=tmerc +lat_0=0 +lon_0=16.33333333333333 +k=1 +x_0=750000 +y_0=-5000000 +datum=hermannskogel +units=m +no_defs "],"EPSG:31265":["EPSG:31265","+proj=tmerc +lat_0=0 +lon_0=15 +k=1 +x_0=5500000 +y_0=0 +datum=hermannskogel +units=m +no_defs "],"EPSG:31266":["EPSG:31266","+proj=tmerc +lat_0=0 +lon_0=18 +k=1 +x_0=6500000 +y_0=0 +datum=hermannskogel +units=m +no_defs "],"EPSG:31268":["EPSG:31268","+proj=tmerc +lat_0=0 +lon_0=24 +k=1 +x_0=8500000 +y_0=0 +datum=hermannskogel +units=m +no_defs "],"EPSG:31275":["EPSG:31275","+proj=tmerc +lat_0=0 +lon_0=15 +k=0.9999 +x_0=5500000 +y_0=0 +datum=hermannskogel +units=m +no_defs "],"EPSG:32209":["EPSG:32209","+proj=utm +zone=9 +ellps=WGS72 +towgs84=0,0,4.5,0,0,0.554,0.2263 +units=m +no_defs "],"EPSG:31277":["EPSG:31277","+proj=tmerc +lat_0=0 +lon_0=21 +k=0.9999 +x_0=7500000 +y_0=0 +datum=hermannskogel +units=m +no_defs "],"EPSG:31278":["EPSG:31278","+proj=tmerc +lat_0=0 +lon_0=21 +k=0.9999 +x_0=7500000 +y_0=0 +datum=hermannskogel +units=m +no_defs "],"EPSG:31279":["EPSG:31279","+proj=tmerc +lat_0=0 +lon_0=24 +k=0.9999 +x_0=8500000 +y_0=0 +datum=hermannskogel +units=m +no_defs "],"EPSG:31281":["EPSG:31281","+proj=tmerc +lat_0=0 +lon_0=28 +k=1 +x_0=0 +y_0=0 +ellps=bessel +towgs84=682,-203,480,0,0,0,0 +pm=ferro +units=m +no_defs "],"EPSG:31282":["EPSG:31282","+proj=tmerc +lat_0=0 +lon_0=31 +k=1 +x_0=0 +y_0=0 +ellps=bessel +towgs84=682,-203,480,0,0,0,0 +pm=ferro +units=m +no_defs "],"EPSG:31283":["EPSG:31283","+proj=tmerc +lat_0=0 +lon_0=34 +k=1 +x_0=0 +y_0=0 +ellps=bessel +towgs84=682,-203,480,0,0,0,0 +pm=ferro +units=m +no_defs "],"EPSG:31284":["EPSG:31284","+proj=tmerc +lat_0=0 +lon_0=10.33333333333333 +k=1 +x_0=150000 +y_0=0 +datum=hermannskogel +units=m +no_defs "],"EPSG:31286":["EPSG:31286","+proj=tmerc +lat_0=0 +lon_0=16.33333333333333 +k=1 +x_0=750000 +y_0=0 +datum=hermannskogel +units=m +no_defs "],"EPSG:31288":["EPSG:31288","+proj=tmerc +lat_0=0 +lon_0=28 +k=1 +x_0=150000 +y_0=0 +ellps=bessel +towgs84=682,-203,480,0,0,0,0 +pm=ferro +units=m +no_defs "],"EPSG:31289":["EPSG:31289","+proj=tmerc +lat_0=0 +lon_0=31 +k=1 +x_0=450000 +y_0=0 +ellps=bessel +towgs84=682,-203,480,0,0,0,0 +pm=ferro +units=m +no_defs "],"EPSG:31290":["EPSG:31290","+proj=tmerc +lat_0=0 +lon_0=34 +k=1 +x_0=750000 +y_0=0 +ellps=bessel +towgs84=682,-203,480,0,0,0,0 +pm=ferro +units=m +no_defs "],"EPSG:31291":["EPSG:31291","+proj=tmerc +lat_0=0 +lon_0=28 +k=1 +x_0=0 +y_0=0 +ellps=bessel +towgs84=682,-203,480,0,0,0,0 +pm=ferro +units=m +no_defs "],"EPSG:31292":["EPSG:31292","+proj=tmerc +lat_0=0 +lon_0=31 +k=1 +x_0=0 +y_0=0 +ellps=bessel +towgs84=682,-203,480,0,0,0,0 +pm=ferro +units=m +no_defs "],"EPSG:31293":["EPSG:31293","+proj=tmerc +lat_0=0 +lon_0=34 +k=1 +x_0=0 +y_0=0 +ellps=bessel +towgs84=682,-203,480,0,0,0,0 +pm=ferro +units=m +no_defs "],"EPSG:31294":["EPSG:31294","+proj=tmerc +lat_0=0 +lon_0=10.33333333333333 +k=1 +x_0=150000 +y_0=0 +datum=hermannskogel +units=m +no_defs "],"EPSG:31295":["EPSG:31295","+proj=tmerc +lat_0=0 +lon_0=13.33333333333333 +k=1 +x_0=450000 +y_0=0 +datum=hermannskogel +units=m +no_defs "],"EPSG:31296":["EPSG:31296","+proj=tmerc +lat_0=0 +lon_0=16.33333333333333 +k=1 +x_0=750000 +y_0=0 +datum=hermannskogel +units=m +no_defs "],"EPSG:4334":["EPSG:4334","+proj=geocent +ellps=GRS80 +units=m +no_defs "],"EPSG:31461":["EPSG:31461","+proj=tmerc +lat_0=0 +lon_0=3 +k=1 +x_0=1500000 +y_0=0 +datum=potsdam +units=m +no_defs "],"EPSG:31462":["EPSG:31462","+proj=tmerc +lat_0=0 +lon_0=6 +k=1 +x_0=2500000 +y_0=0 +datum=potsdam +units=m +no_defs "],"EPSG:31465":["EPSG:31465","+proj=tmerc +lat_0=0 +lon_0=15 +k=1 +x_0=5500000 +y_0=0 +datum=potsdam +units=m +no_defs "],"EPSG:31466":["EPSG:31466","+proj=tmerc +lat_0=0 +lon_0=6 +k=1 +x_0=2500000 +y_0=0 +datum=potsdam +units=m +no_defs "],"EPSG:31469":["EPSG:31469","+proj=tmerc +lat_0=0 +lon_0=15 +k=1 +x_0=5500000 +y_0=0 +datum=potsdam +units=m +no_defs "],"EPSG:31528":["EPSG:31528","+proj=utm +zone=28 +a=6378249.2 +b=6356515 +towgs84=-23,259,-9,0,0,0,0 +units=m +no_defs "],"EPSG:31529":["EPSG:31529","+proj=utm +zone=29 +a=6378249.2 +b=6356515 +towgs84=-23,259,-9,0,0,0,0 +units=m +no_defs "],"EPSG:31600":["EPSG:31600","+proj=sterea +lat_0=45.9 +lon_0=25.39246588888889 +k=0.9996667 +x_0=500000 +y_0=500000 +ellps=intl +towgs84=103.25,-100.4,-307.19,0,0,0,0 +units=m +no_defs "],"EPSG:31838":["EPSG:31838","+proj=utm +zone=38 +ellps=WGS84 +towgs84=-3.2,-5.7,2.8,0,0,0,0 +units=m +no_defs "],"EPSG:31839":["EPSG:31839","+proj=utm +zone=39 +ellps=WGS84 +towgs84=-3.2,-5.7,2.8,0,0,0,0 +units=m +no_defs "],"EPSG:31900":["EPSG:31900","+proj=tmerc +lat_0=0 +lon_0=48 +k=0.9996 +x_0=500000 +y_0=0 +ellps=GRS80 +towgs84=-20.8,11.3,2.4,0,0,0,0 +units=m +no_defs "],"EPSG:31901":["EPSG:31901","+proj=tmerc +lat_0=0 +lon_0=48 +k=1 +x_0=500000 +y_0=0 +ellps=GRS80 +towgs84=-20.8,11.3,2.4,0,0,0,0 +units=m +no_defs "],"EPSG:31965":["EPSG:31965","+proj=utm +zone=11 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs "],"EPSG:31966":["EPSG:31966","+proj=utm +zone=12 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs "],"EPSG:31967":["EPSG:31967","+proj=utm +zone=13 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs "],"EPSG:31968":["EPSG:31968","+proj=utm +zone=14 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs "],"EPSG:31969":["EPSG:31969","+proj=utm +zone=15 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs "],"EPSG:31970":["EPSG:31970","+proj=utm +zone=16 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs "],"EPSG:31971":["EPSG:31971","+proj=utm +zone=17 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs "],"EPSG:31972":["EPSG:31972","+proj=utm +zone=18 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs "],"EPSG:31973":["EPSG:31973","+proj=utm +zone=19 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs "],"EPSG:31974":["EPSG:31974","+proj=utm +zone=20 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs "],"EPSG:31975":["EPSG:31975","+proj=utm +zone=21 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs "],"EPSG:31976":["EPSG:31976","+proj=utm +zone=22 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs "],"EPSG:31977":["EPSG:31977","+proj=utm +zone=17 +south +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs "],"EPSG:31978":["EPSG:31978","+proj=utm +zone=18 +south +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs "],"EPSG:31979":["EPSG:31979","+proj=utm +zone=19 +south +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs "],"EPSG:31980":["EPSG:31980","+proj=utm +zone=20 +south +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs "],"EPSG:31982":["EPSG:31982","+proj=utm +zone=22 +south +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs "],"EPSG:31986":["EPSG:31986","+proj=utm +zone=17 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs "],"EPSG:31987":["EPSG:31987","+proj=utm +zone=18 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs "],"EPSG:31988":["EPSG:31988","+proj=utm +zone=19 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs "],"EPSG:31989":["EPSG:31989","+proj=utm +zone=20 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs "],"EPSG:31990":["EPSG:31990","+proj=utm +zone=21 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs "],"EPSG:31991":["EPSG:31991","+proj=utm +zone=22 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs "],"EPSG:31993":["EPSG:31993","+proj=utm +zone=18 +south +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs "],"EPSG:31994":["EPSG:31994","+proj=utm +zone=19 +south +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs "],"EPSG:31995":["EPSG:31995","+proj=utm +zone=20 +south +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs "],"EPSG:31996":["EPSG:31996","+proj=utm +zone=21 +south +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs "],"EPSG:31997":["EPSG:31997","+proj=utm +zone=22 +south +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs "],"EPSG:31998":["EPSG:31998","+proj=utm +zone=23 +south +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs "],"EPSG:31999":["EPSG:31999","+proj=utm +zone=24 +south +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs "],"EPSG:32000":["EPSG:32000","+proj=utm +zone=25 +south +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs "],"EPSG:32001":["EPSG:32001","+proj=lcc +lat_1=48.71666666666667 +lat_2=47.85 +lat_0=47 +lon_0=-109.5 +x_0=609601.2192024384 +y_0=0 +datum=NAD27 +units=us-ft +no_defs "],"EPSG:32002":["EPSG:32002","+proj=lcc +lat_1=47.88333333333333 +lat_2=46.45 +lat_0=45.83333333333334 +lon_0=-109.5 +x_0=609601.2192024384 +y_0=0 +datum=NAD27 +units=us-ft +no_defs "],"EPSG:32003":["EPSG:32003","+proj=lcc +lat_1=46.4 +lat_2=44.86666666666667 +lat_0=44 +lon_0=-109.5 +x_0=609601.2192024384 +y_0=0 +datum=NAD27 +units=us-ft +no_defs "],"EPSG:4335":["EPSG:4335","+proj=geocent +ellps=GRS80 +units=m +no_defs "],"EPSG:32006":["EPSG:32006","+proj=lcc +lat_1=40.28333333333333 +lat_2=41.71666666666667 +lat_0=39.66666666666666 +lon_0=-99.5 +x_0=609601.2192024384 +y_0=0 +datum=NAD27 +units=us-ft +no_defs "],"EPSG:32007":["EPSG:32007","+proj=tmerc +lat_0=34.75 +lon_0=-115.5833333333333 +k=0.9999 +x_0=152400.3048006096 +y_0=0 +datum=NAD27 +units=us-ft +no_defs "],"EPSG:32008":["EPSG:32008","+proj=tmerc +lat_0=34.75 +lon_0=-116.6666666666667 +k=0.9999 +x_0=152400.3048006096 +y_0=0 +datum=NAD27 +units=us-ft +no_defs "],"EPSG:32009":["EPSG:32009","+proj=tmerc +lat_0=34.75 +lon_0=-118.5833333333333 +k=0.9999 +x_0=152400.3048006096 +y_0=0 +datum=NAD27 +units=us-ft +no_defs "],"EPSG:32010":["EPSG:32010","+proj=tmerc +lat_0=42.5 +lon_0=-71.66666666666667 +k=0.999966667 +x_0=152400.3048006096 +y_0=0 +datum=NAD27 +units=us-ft +no_defs "],"EPSG:32011":["EPSG:32011","+proj=tmerc +lat_0=38.83333333333334 +lon_0=-74.66666666666667 +k=0.9999749999999999 +x_0=609601.2192024384 +y_0=0 +datum=NAD27 +units=us-ft +no_defs "],"EPSG:32012":["EPSG:32012","+proj=tmerc +lat_0=31 +lon_0=-104.3333333333333 +k=0.999909091 +x_0=152400.3048006096 +y_0=0 +datum=NAD27 +units=us-ft +no_defs "],"EPSG:32013":["EPSG:32013","+proj=tmerc +lat_0=31 +lon_0=-106.25 +k=0.9999 +x_0=152400.3048006096 +y_0=0 +datum=NAD27 +units=us-ft +no_defs "],"EPSG:32014":["EPSG:32014","+proj=tmerc +lat_0=31 +lon_0=-107.8333333333333 +k=0.999916667 +x_0=152400.3048006096 +y_0=0 +datum=NAD27 +units=us-ft +no_defs "],"EPSG:32015":["EPSG:32015","+proj=tmerc +lat_0=40 +lon_0=-74.33333333333333 +k=0.999966667 +x_0=152400.3048006096 +y_0=0 +datum=NAD27 +units=us-ft +no_defs "],"EPSG:32016":["EPSG:32016","+proj=tmerc +lat_0=40 +lon_0=-76.58333333333333 +k=0.9999375 +x_0=152400.3048006096 +y_0=0 +datum=NAD27 +units=us-ft +no_defs "],"EPSG:32017":["EPSG:32017","+proj=tmerc +lat_0=40 +lon_0=-78.58333333333333 +k=0.9999375 +x_0=152400.3048006096 +y_0=0 +datum=NAD27 +units=us-ft +no_defs "],"EPSG:32018":["EPSG:32018","+proj=lcc +lat_1=41.03333333333333 +lat_2=40.66666666666666 +lat_0=40.5 +lon_0=-74 +x_0=304800.6096012192 +y_0=0 +datum=NAD27 +units=us-ft +no_defs "],"EPSG:32020":["EPSG:32020","+proj=lcc +lat_1=47.43333333333333 +lat_2=48.73333333333333 +lat_0=47 +lon_0=-100.5 +x_0=609601.2192024384 +y_0=0 +datum=NAD27 +units=us-ft +no_defs "],"EPSG:32021":["EPSG:32021","+proj=lcc +lat_1=46.18333333333333 +lat_2=47.48333333333333 +lat_0=45.66666666666666 +lon_0=-100.5 +x_0=609601.2192024384 +y_0=0 +datum=NAD27 +units=us-ft +no_defs "],"EPSG:32022":["EPSG:32022","+proj=lcc +lat_1=40.43333333333333 +lat_2=41.7 +lat_0=39.66666666666666 +lon_0=-82.5 +x_0=609601.2192024384 +y_0=0 +datum=NAD27 +units=us-ft +no_defs "],"EPSG:32023":["EPSG:32023","+proj=lcc +lat_1=38.73333333333333 +lat_2=40.03333333333333 +lat_0=38 +lon_0=-82.5 +x_0=609601.2192024384 +y_0=0 +datum=NAD27 +units=us-ft +no_defs "],"EPSG:32024":["EPSG:32024","+proj=lcc +lat_1=35.56666666666667 +lat_2=36.76666666666667 +lat_0=35 +lon_0=-98 +x_0=609601.2192024384 +y_0=0 +datum=NAD27 +units=us-ft +no_defs "],"EPSG:32025":["EPSG:32025","+proj=lcc +lat_1=33.93333333333333 +lat_2=35.23333333333333 +lat_0=33.33333333333334 +lon_0=-98 +x_0=609601.2192024384 +y_0=0 +datum=NAD27 +units=us-ft +no_defs "],"EPSG:32026":["EPSG:32026","+proj=lcc +lat_1=44.33333333333334 +lat_2=46 +lat_0=43.66666666666666 +lon_0=-120.5 +x_0=609601.2192024384 +y_0=0 +datum=NAD27 +units=us-ft +no_defs "],"EPSG:32027":["EPSG:32027","+proj=lcc +lat_1=42.33333333333334 +lat_2=44 +lat_0=41.66666666666666 +lon_0=-120.5 +x_0=609601.2192024384 +y_0=0 +datum=NAD27 +units=us-ft +no_defs "],"EPSG:32028":["EPSG:32028","+proj=lcc +lat_1=40.88333333333333 +lat_2=41.95 +lat_0=40.16666666666666 +lon_0=-77.75 +x_0=609601.2192024384 +y_0=0 +datum=NAD27 +units=us-ft +no_defs "],"EPSG:32029":["EPSG:32029","+proj=lcc +lat_1=39.93333333333333 +lat_2=40.8 +lat_0=39.33333333333334 +lon_0=-77.75 +x_0=609601.2192024384 +y_0=0 +datum=NAD27 +units=us-ft +no_defs "],"EPSG:32030":["EPSG:32030","+proj=tmerc +lat_0=41.08333333333334 +lon_0=-71.5 +k=0.9999938 +x_0=152400.3048006096 +y_0=0 +datum=NAD27 +units=us-ft +no_defs "],"EPSG:32210":["EPSG:32210","+proj=utm +zone=10 +ellps=WGS72 +towgs84=0,0,4.5,0,0,0.554,0.2263 +units=m +no_defs "],"EPSG:32033":["EPSG:32033","+proj=lcc +lat_1=32.33333333333334 +lat_2=33.66666666666666 +lat_0=31.83333333333333 +lon_0=-81 +x_0=609601.2192024384 +y_0=0 +datum=NAD27 +units=us-ft +no_defs "],"EPSG:32034":["EPSG:32034","+proj=lcc +lat_1=44.41666666666666 +lat_2=45.68333333333333 +lat_0=43.83333333333334 +lon_0=-100 +x_0=609601.2192024384 +y_0=0 +datum=NAD27 +units=us-ft +no_defs "],"EPSG:32035":["EPSG:32035","+proj=lcc +lat_1=42.83333333333334 +lat_2=44.4 +lat_0=42.33333333333334 +lon_0=-100.3333333333333 +x_0=609601.2192024384 +y_0=0 +datum=NAD27 +units=us-ft +no_defs "],"EPSG:32037":["EPSG:32037","+proj=lcc +lat_1=34.65 +lat_2=36.18333333333333 +lat_0=34 +lon_0=-101.5 +x_0=609601.2192024384 +y_0=0 +datum=NAD27 +units=us-ft +no_defs "],"EPSG:32038":["EPSG:32038","+proj=lcc +lat_1=32.13333333333333 +lat_2=33.96666666666667 +lat_0=31.66666666666667 +lon_0=-97.5 +x_0=609601.2192024384 +y_0=0 +datum=NAD27 +units=us-ft +no_defs "],"EPSG:4336":["EPSG:4336","+proj=geocent +ellps=GRS80 +units=m +no_defs "],"EPSG:32040":["EPSG:32040","+proj=lcc +lat_1=28.38333333333333 +lat_2=30.28333333333333 +lat_0=27.83333333333333 +lon_0=-99 +x_0=609601.2192024384 +y_0=0 +datum=NAD27 +units=us-ft +no_defs "],"EPSG:32041":["EPSG:32041","+proj=lcc +lat_1=26.16666666666667 +lat_2=27.83333333333333 +lat_0=25.66666666666667 +lon_0=-98.5 +x_0=609601.2192024384 +y_0=0 +datum=NAD27 +units=us-ft +no_defs "],"EPSG:32042":["EPSG:32042","+proj=lcc +lat_1=40.71666666666667 +lat_2=41.78333333333333 +lat_0=40.33333333333334 +lon_0=-111.5 +x_0=609601.2192024384 +y_0=0 +datum=NAD27 +units=us-ft +no_defs "],"EPSG:32043":["EPSG:32043","+proj=lcc +lat_1=39.01666666666667 +lat_2=40.65 +lat_0=38.33333333333334 +lon_0=-111.5 +x_0=609601.2192024384 +y_0=0 +datum=NAD27 +units=us-ft +no_defs "],"EPSG:32044":["EPSG:32044","+proj=lcc +lat_1=37.21666666666667 +lat_2=38.35 +lat_0=36.66666666666666 +lon_0=-111.5 +x_0=609601.2192024384 +y_0=0 +datum=NAD27 +units=us-ft +no_defs "],"EPSG:32046":["EPSG:32046","+proj=lcc +lat_1=38.03333333333333 +lat_2=39.2 +lat_0=37.66666666666666 +lon_0=-78.5 +x_0=609601.2192024384 +y_0=0 +datum=NAD27 +units=us-ft +no_defs "],"EPSG:32047":["EPSG:32047","+proj=lcc +lat_1=36.76666666666667 +lat_2=37.96666666666667 +lat_0=36.33333333333334 +lon_0=-78.5 +x_0=609601.2192024384 +y_0=0 +datum=NAD27 +units=us-ft +no_defs "],"EPSG:32048":["EPSG:32048","+proj=lcc +lat_1=47.5 +lat_2=48.73333333333333 +lat_0=47 +lon_0=-120.8333333333333 +x_0=609601.2192024384 +y_0=0 +datum=NAD27 +units=us-ft +no_defs "],"EPSG:32050":["EPSG:32050","+proj=lcc +lat_1=39 +lat_2=40.25 +lat_0=38.5 +lon_0=-79.5 +x_0=609601.2192024384 +y_0=0 +datum=NAD27 +units=us-ft +no_defs "],"EPSG:32051":["EPSG:32051","+proj=lcc +lat_1=37.48333333333333 +lat_2=38.88333333333333 +lat_0=37 +lon_0=-81 +x_0=609601.2192024384 +y_0=0 +datum=NAD27 +units=us-ft +no_defs "],"EPSG:32052":["EPSG:32052","+proj=lcc +lat_1=45.56666666666667 +lat_2=46.76666666666667 +lat_0=45.16666666666666 +lon_0=-90 +x_0=609601.2192024384 +y_0=0 +datum=NAD27 +units=us-ft +no_defs "],"EPSG:32053":["EPSG:32053","+proj=lcc +lat_1=44.25 +lat_2=45.5 +lat_0=43.83333333333334 +lon_0=-90 +x_0=609601.2192024384 +y_0=0 +datum=NAD27 +units=us-ft +no_defs "],"EPSG:32054":["EPSG:32054","+proj=lcc +lat_1=42.73333333333333 +lat_2=44.06666666666667 +lat_0=42 +lon_0=-90 +x_0=609601.2192024384 +y_0=0 +datum=NAD27 +units=us-ft +no_defs "],"EPSG:32055":["EPSG:32055","+proj=tmerc +lat_0=40.66666666666666 +lon_0=-105.1666666666667 +k=0.999941177 +x_0=152400.3048006096 +y_0=0 +datum=NAD27 +units=us-ft +no_defs "],"EPSG:32185":["EPSG:32185","+proj=tmerc +lat_0=0 +lon_0=-64.5 +k=0.9999 +x_0=304800 +y_0=0 +datum=NAD83 +units=m +no_defs "],"EPSG:32056":["EPSG:32056","+proj=tmerc +lat_0=40.66666666666666 +lon_0=-107.3333333333333 +k=0.999941177 +x_0=152400.3048006096 +y_0=0 +datum=NAD27 +units=us-ft +no_defs "],"EPSG:32057":["EPSG:32057","+proj=tmerc +lat_0=40.66666666666666 +lon_0=-108.75 +k=0.999941177 +x_0=152400.3048006096 +y_0=0 +datum=NAD27 +units=us-ft +no_defs "],"EPSG:32058":["EPSG:32058","+proj=tmerc +lat_0=40.66666666666666 +lon_0=-110.0833333333333 +k=0.999941177 +x_0=152400.3048006096 +y_0=0 +datum=NAD27 +units=us-ft +no_defs "],"EPSG:32061":["EPSG:32061","+proj=lcc +lat_1=16.81666666666667 +lat_0=16.81666666666667 +lon_0=-90.33333333333333 +k_0=0.99992226 +x_0=500000 +y_0=292209.579 +datum=NAD27 +units=m +no_defs "],"EPSG:32062":["EPSG:32062","+proj=lcc +lat_1=14.9 +lat_0=14.9 +lon_0=-90.33333333333333 +k_0=0.99989906 +x_0=500000 +y_0=325992.681 +datum=NAD27 +units=m +no_defs "],"EPSG:32064":["EPSG:32064","+proj=tmerc +lat_0=0 +lon_0=-99 +k=0.9996 +x_0=500000.001016002 +y_0=0 +datum=NAD27 +units=us-ft +no_defs "],"EPSG:32065":["EPSG:32065","+proj=tmerc +lat_0=0 +lon_0=-93 +k=0.9996 +x_0=500000.001016002 +y_0=0 +datum=NAD27 +units=us-ft +no_defs "],"EPSG:32066":["EPSG:32066","+proj=tmerc +lat_0=0 +lon_0=-87 +k=0.9996 +x_0=500000.001016002 +y_0=0 +datum=NAD27 +units=us-ft +no_defs "],"EPSG:32067":["EPSG:32067","+proj=tmerc +lat_0=0 +lon_0=-81 +k=0.9996 +x_0=500000.001016002 +y_0=0 +datum=NAD27 +units=us-ft +no_defs "],"EPSG:4337":["EPSG:4337","+proj=geocent +ellps=GRS80 +units=m +no_defs "],"EPSG:32074":["EPSG:32074","+proj=tmerc +lat_0=0 +lon_0=-99 +k=0.9996 +x_0=500000.001016002 +y_0=0 +datum=NAD27 +units=us-ft +no_defs "],"EPSG:32075":["EPSG:32075","+proj=tmerc +lat_0=0 +lon_0=-93 +k=0.9996 +x_0=500000.001016002 +y_0=0 +datum=NAD27 +units=us-ft +no_defs "],"EPSG:32076":["EPSG:32076","+proj=tmerc +lat_0=0 +lon_0=-87 +k=0.9996 +x_0=500000.001016002 +y_0=0 +datum=NAD27 +units=us-ft +no_defs "],"EPSG:32077":["EPSG:32077","+proj=tmerc +lat_0=0 +lon_0=-81 +k=0.9996 +x_0=500000.001016002 +y_0=0 +datum=NAD27 +units=us-ft +no_defs "],"EPSG:32081":["EPSG:32081","+proj=tmerc +lat_0=0 +lon_0=-53 +k=0.9999 +x_0=304800 +y_0=0 +datum=NAD27 +units=m +no_defs "],"EPSG:32082":["EPSG:32082","+proj=tmerc +lat_0=0 +lon_0=-56 +k=0.9999 +x_0=304800 +y_0=0 +datum=NAD27 +units=m +no_defs "],"EPSG:32083":["EPSG:32083","+proj=tmerc +lat_0=0 +lon_0=-58.5 +k=0.9999 +x_0=304800 +y_0=0 +datum=NAD27 +units=m +no_defs "],"EPSG:32084":["EPSG:32084","+proj=tmerc +lat_0=0 +lon_0=-61.5 +k=0.9999 +x_0=304800 +y_0=0 +datum=NAD27 +units=m +no_defs "],"EPSG:32085":["EPSG:32085","+proj=tmerc +lat_0=0 +lon_0=-64.5 +k=0.9999 +x_0=304800 +y_0=0 +datum=NAD27 +units=m +no_defs "],"EPSG:32086":["EPSG:32086","+proj=tmerc +lat_0=0 +lon_0=-67.5 +k=0.9999 +x_0=304800 +y_0=0 +datum=NAD27 +units=m +no_defs "],"EPSG:32098":["EPSG:32098","+proj=lcc +lat_1=60 +lat_2=46 +lat_0=44 +lon_0=-68.5 +x_0=0 +y_0=0 +datum=NAD27 +units=m +no_defs "],"EPSG:32099":["EPSG:32099","+proj=lcc +lat_1=27.83333333333333 +lat_2=26.16666666666667 +lat_0=25.66666666666667 +lon_0=-91.33333333333333 +x_0=609601.2192024384 +y_0=0 +datum=NAD27 +units=us-ft +no_defs "],"EPSG:32104":["EPSG:32104","+proj=lcc +lat_1=43 +lat_2=40 +lat_0=39.83333333333334 +lon_0=-100 +x_0=500000 +y_0=0 +datum=NAD83 +units=m +no_defs "],"EPSG:32107":["EPSG:32107","+proj=tmerc +lat_0=34.75 +lon_0=-115.5833333333333 +k=0.9999 +x_0=200000 +y_0=8000000 +datum=NAD83 +units=m +no_defs "],"EPSG:32108":["EPSG:32108","+proj=tmerc +lat_0=34.75 +lon_0=-116.6666666666667 +k=0.9999 +x_0=500000 +y_0=6000000 +datum=NAD83 +units=m +no_defs "],"EPSG:32109":["EPSG:32109","+proj=tmerc +lat_0=34.75 +lon_0=-118.5833333333333 +k=0.9999 +x_0=800000 +y_0=4000000 +datum=NAD83 +units=m +no_defs "],"EPSG:32110":["EPSG:32110","+proj=tmerc +lat_0=42.5 +lon_0=-71.66666666666667 +k=0.999966667 +x_0=300000 +y_0=0 +datum=NAD83 +units=m +no_defs "],"EPSG:32111":["EPSG:32111","+proj=tmerc +lat_0=38.83333333333334 +lon_0=-74.5 +k=0.9999 +x_0=150000 +y_0=0 +datum=NAD83 +units=m +no_defs "],"EPSG:4338":["EPSG:4338","+proj=geocent +ellps=GRS80 +units=m +no_defs "],"EPSG:32112":["EPSG:32112","+proj=tmerc +lat_0=31 +lon_0=-104.3333333333333 +k=0.999909091 +x_0=165000 +y_0=0 +datum=NAD83 +units=m +no_defs "],"EPSG:32113":["EPSG:32113","+proj=tmerc +lat_0=31 +lon_0=-106.25 +k=0.9999 +x_0=500000 +y_0=0 +datum=NAD83 +units=m +no_defs "],"EPSG:32114":["EPSG:32114","+proj=tmerc +lat_0=31 +lon_0=-107.8333333333333 +k=0.999916667 +x_0=830000 +y_0=0 +datum=NAD83 +units=m +no_defs "],"EPSG:32115":["EPSG:32115","+proj=tmerc +lat_0=38.83333333333334 +lon_0=-74.5 +k=0.9999 +x_0=150000 +y_0=0 +datum=NAD83 +units=m +no_defs "],"EPSG:32117":["EPSG:32117","+proj=tmerc +lat_0=40 +lon_0=-78.58333333333333 +k=0.9999375 +x_0=350000 +y_0=0 +datum=NAD83 +units=m +no_defs "],"EPSG:32120":["EPSG:32120","+proj=lcc +lat_1=48.73333333333333 +lat_2=47.43333333333333 +lat_0=47 +lon_0=-100.5 +x_0=600000 +y_0=0 +datum=NAD83 +units=m +no_defs "],"EPSG:4340":["EPSG:4340","+proj=geocent +ellps=GRS80 +units=m +no_defs "],"EPSG:32121":["EPSG:32121","+proj=lcc +lat_1=47.48333333333333 +lat_2=46.18333333333333 +lat_0=45.66666666666666 +lon_0=-100.5 +x_0=600000 +y_0=0 +datum=NAD83 +units=m +no_defs "],"EPSG:32122":["EPSG:32122","+proj=lcc +lat_1=41.7 +lat_2=40.43333333333333 +lat_0=39.66666666666666 +lon_0=-82.5 +x_0=600000 +y_0=0 +datum=NAD83 +units=m +no_defs "],"EPSG:32123":["EPSG:32123","+proj=lcc +lat_1=40.03333333333333 +lat_2=38.73333333333333 +lat_0=38 +lon_0=-82.5 +x_0=600000 +y_0=0 +datum=NAD83 +units=m +no_defs "],"EPSG:32124":["EPSG:32124","+proj=lcc +lat_1=36.76666666666667 +lat_2=35.56666666666667 +lat_0=35 +lon_0=-98 +x_0=600000 +y_0=0 +datum=NAD83 +units=m +no_defs "],"EPSG:32125":["EPSG:32125","+proj=lcc +lat_1=35.23333333333333 +lat_2=33.93333333333333 +lat_0=33.33333333333334 +lon_0=-98 +x_0=600000 +y_0=0 +datum=NAD83 +units=m +no_defs "],"EPSG:32126":["EPSG:32126","+proj=lcc +lat_1=46 +lat_2=44.33333333333334 +lat_0=43.66666666666666 +lon_0=-120.5 +x_0=2500000 +y_0=0 +datum=NAD83 +units=m +no_defs "],"EPSG:32127":["EPSG:32127","+proj=lcc +lat_1=44 +lat_2=42.33333333333334 +lat_0=41.66666666666666 +lon_0=-120.5 +x_0=1500000 +y_0=0 +datum=NAD83 +units=m +no_defs "],"EPSG:32128":["EPSG:32128","+proj=lcc +lat_1=41.95 +lat_2=40.88333333333333 +lat_0=40.16666666666666 +lon_0=-77.75 +x_0=600000 +y_0=0 +datum=NAD83 +units=m +no_defs "],"EPSG:32156":["EPSG:32156","+proj=tmerc +lat_0=40.5 +lon_0=-107.3333333333333 +k=0.9999375 +x_0=400000 +y_0=100000 +datum=NAD83 +units=m +no_defs "],"EPSG:32129":["EPSG:32129","+proj=lcc +lat_1=40.96666666666667 +lat_2=39.93333333333333 +lat_0=39.33333333333334 +lon_0=-77.75 +x_0=600000 +y_0=0 +datum=NAD83 +units=m +no_defs "],"EPSG:32133":["EPSG:32133","+proj=lcc +lat_1=34.83333333333334 +lat_2=32.5 +lat_0=31.83333333333333 +lon_0=-81 +x_0=609600 +y_0=0 +datum=NAD83 +units=m +no_defs "],"EPSG:32134":["EPSG:32134","+proj=lcc +lat_1=45.68333333333333 +lat_2=44.41666666666666 +lat_0=43.83333333333334 +lon_0=-100 +x_0=600000 +y_0=0 +datum=NAD83 +units=m +no_defs "],"EPSG:32135":["EPSG:32135","+proj=lcc +lat_1=44.4 +lat_2=42.83333333333334 +lat_0=42.33333333333334 +lon_0=-100.3333333333333 +x_0=600000 +y_0=0 +datum=NAD83 +units=m +no_defs "],"EPSG:32136":["EPSG:32136","+proj=lcc +lat_1=36.41666666666666 +lat_2=35.25 +lat_0=34.33333333333334 +lon_0=-86 +x_0=600000 +y_0=0 +datum=NAD83 +units=m +no_defs "],"EPSG:32137":["EPSG:32137","+proj=lcc +lat_1=36.18333333333333 +lat_2=34.65 +lat_0=34 +lon_0=-101.5 +x_0=200000 +y_0=1000000 +datum=NAD83 +units=m +no_defs "],"EPSG:32138":["EPSG:32138","+proj=lcc +lat_1=33.96666666666667 +lat_2=32.13333333333333 +lat_0=31.66666666666667 +lon_0=-98.5 +x_0=600000 +y_0=2000000 +datum=NAD83 +units=m +no_defs "],"EPSG:32157":["EPSG:32157","+proj=tmerc +lat_0=40.5 +lon_0=-108.75 +k=0.9999375 +x_0=600000 +y_0=0 +datum=NAD83 +units=m +no_defs "],"EPSG:32140":["EPSG:32140","+proj=lcc +lat_1=30.28333333333333 +lat_2=28.38333333333333 +lat_0=27.83333333333333 +lon_0=-99 +x_0=600000 +y_0=4000000 +datum=NAD83 +units=m +no_defs "],"EPSG:32141":["EPSG:32141","+proj=lcc +lat_1=27.83333333333333 +lat_2=26.16666666666667 +lat_0=25.66666666666667 +lon_0=-98.5 +x_0=300000 +y_0=5000000 +datum=NAD83 +units=m +no_defs "],"EPSG:32142":["EPSG:32142","+proj=lcc +lat_1=41.78333333333333 +lat_2=40.71666666666667 +lat_0=40.33333333333334 +lon_0=-111.5 +x_0=500000 +y_0=1000000 +datum=NAD83 +units=m +no_defs "],"EPSG:32143":["EPSG:32143","+proj=lcc +lat_1=40.65 +lat_2=39.01666666666667 +lat_0=38.33333333333334 +lon_0=-111.5 +x_0=500000 +y_0=2000000 +datum=NAD83 +units=m +no_defs "],"EPSG:32144":["EPSG:32144","+proj=lcc +lat_1=38.35 +lat_2=37.21666666666667 +lat_0=36.66666666666666 +lon_0=-111.5 +x_0=500000 +y_0=3000000 +datum=NAD83 +units=m +no_defs "],"EPSG:32145":["EPSG:32145","+proj=tmerc +lat_0=42.5 +lon_0=-72.5 +k=0.999964286 +x_0=500000 +y_0=0 +datum=NAD83 +units=m +no_defs "],"EPSG:32146":["EPSG:32146","+proj=lcc +lat_1=39.2 +lat_2=38.03333333333333 +lat_0=37.66666666666666 +lon_0=-78.5 +x_0=3500000 +y_0=2000000 +datum=NAD83 +units=m +no_defs "],"EPSG:32158":["EPSG:32158","+proj=tmerc +lat_0=40.5 +lon_0=-110.0833333333333 +k=0.9999375 +x_0=800000 +y_0=100000 +datum=NAD83 +units=m +no_defs "],"EPSG:32147":["EPSG:32147","+proj=lcc +lat_1=37.96666666666667 +lat_2=36.76666666666667 +lat_0=36.33333333333334 +lon_0=-78.5 +x_0=3500000 +y_0=1000000 +datum=NAD83 +units=m +no_defs "],"EPSG:32148":["EPSG:32148","+proj=lcc +lat_1=48.73333333333333 +lat_2=47.5 +lat_0=47 +lon_0=-120.8333333333333 +x_0=500000 +y_0=0 +datum=NAD83 +units=m +no_defs "],"EPSG:32149":["EPSG:32149","+proj=lcc +lat_1=47.33333333333334 +lat_2=45.83333333333334 +lat_0=45.33333333333334 +lon_0=-120.5 +x_0=500000 +y_0=0 +datum=NAD83 +units=m +no_defs "],"EPSG:32150":["EPSG:32150","+proj=lcc +lat_1=40.25 +lat_2=39 +lat_0=38.5 +lon_0=-79.5 +x_0=600000 +y_0=0 +datum=NAD83 +units=m +no_defs "],"EPSG:32151":["EPSG:32151","+proj=lcc +lat_1=38.88333333333333 +lat_2=37.48333333333333 +lat_0=37 +lon_0=-81 +x_0=600000 +y_0=0 +datum=NAD83 +units=m +no_defs "],"EPSG:32152":["EPSG:32152","+proj=lcc +lat_1=46.76666666666667 +lat_2=45.56666666666667 +lat_0=45.16666666666666 +lon_0=-90 +x_0=600000 +y_0=0 +datum=NAD83 +units=m +no_defs "],"EPSG:32153":["EPSG:32153","+proj=lcc +lat_1=45.5 +lat_2=44.25 +lat_0=43.83333333333334 +lon_0=-90 +x_0=600000 +y_0=0 +datum=NAD83 +units=m +no_defs "],"EPSG:32154":["EPSG:32154","+proj=lcc +lat_1=44.06666666666667 +lat_2=42.73333333333333 +lat_0=42 +lon_0=-90 +x_0=600000 +y_0=0 +datum=NAD83 +units=m +no_defs "],"EPSG:32155":["EPSG:32155","+proj=tmerc +lat_0=40.5 +lon_0=-105.1666666666667 +k=0.9999375 +x_0=200000 +y_0=0 +datum=NAD83 +units=m +no_defs "],"EPSG:32161":["EPSG:32161","+proj=lcc +lat_1=18.43333333333333 +lat_2=18.03333333333333 +lat_0=17.83333333333333 +lon_0=-66.43333333333334 +x_0=200000 +y_0=200000 +datum=NAD83 +units=m +no_defs "],"EPSG:32164":["EPSG:32164","+proj=tmerc +lat_0=0 +lon_0=-99 +k=0.9996 +x_0=500000.001016002 +y_0=0 +datum=NAD83 +units=us-ft +no_defs "],"EPSG:32165":["EPSG:32165","+proj=tmerc +lat_0=0 +lon_0=-93 +k=0.9996 +x_0=500000.001016002 +y_0=0 +datum=NAD83 +units=us-ft +no_defs "],"EPSG:32166":["EPSG:32166","+proj=tmerc +lat_0=0 +lon_0=-87 +k=0.9996 +x_0=500000.001016002 +y_0=0 +datum=NAD83 +units=us-ft +no_defs "],"EPSG:32167":["EPSG:32167","+proj=tmerc +lat_0=0 +lon_0=-81 +k=0.9996 +x_0=500000.001016002 +y_0=0 +datum=NAD83 +units=us-ft +no_defs "],"EPSG:32180":["EPSG:32180","+proj=tmerc +lat_0=0 +lon_0=-55.5 +k=0.9999 +x_0=304800 +y_0=0 +datum=NAD83 +units=m +no_defs "],"EPSG:32181":["EPSG:32181","+proj=tmerc +lat_0=0 +lon_0=-53 +k=0.9999 +x_0=304800 +y_0=0 +datum=NAD83 +units=m +no_defs "],"EPSG:32182":["EPSG:32182","+proj=tmerc +lat_0=0 +lon_0=-56 +k=0.9999 +x_0=304800 +y_0=0 +datum=NAD83 +units=m +no_defs "],"EPSG:32183":["EPSG:32183","+proj=tmerc +lat_0=0 +lon_0=-58.5 +k=0.9999 +x_0=304800 +y_0=0 +datum=NAD83 +units=m +no_defs "],"EPSG:32184":["EPSG:32184","+proj=tmerc +lat_0=0 +lon_0=-61.5 +k=0.9999 +x_0=304800 +y_0=0 +datum=NAD83 +units=m +no_defs "],"EPSG:32186":["EPSG:32186","+proj=tmerc +lat_0=0 +lon_0=-67.5 +k=0.9999 +x_0=304800 +y_0=0 +datum=NAD83 +units=m +no_defs "],"EPSG:32187":["EPSG:32187","+proj=tmerc +lat_0=0 +lon_0=-70.5 +k=0.9999 +x_0=304800 +y_0=0 +datum=NAD83 +units=m +no_defs "],"EPSG:32188":["EPSG:32188","+proj=tmerc +lat_0=0 +lon_0=-73.5 +k=0.9999 +x_0=304800 +y_0=0 +datum=NAD83 +units=m +no_defs "],"EPSG:32189":["EPSG:32189","+proj=tmerc +lat_0=0 +lon_0=-76.5 +k=0.9999 +x_0=304800 +y_0=0 +datum=NAD83 +units=m +no_defs "],"EPSG:32190":["EPSG:32190","+proj=tmerc +lat_0=0 +lon_0=-79.5 +k=0.9999 +x_0=304800 +y_0=0 +datum=NAD83 +units=m +no_defs "],"EPSG:32191":["EPSG:32191","+proj=tmerc +lat_0=0 +lon_0=-82.5 +k=0.9999 +x_0=304800 +y_0=0 +datum=NAD83 +units=m +no_defs "],"EPSG:32192":["EPSG:32192","+proj=tmerc +lat_0=0 +lon_0=-81 +k=0.9999 +x_0=304800 +y_0=0 +datum=NAD83 +units=m +no_defs "],"EPSG:32193":["EPSG:32193","+proj=tmerc +lat_0=0 +lon_0=-84 +k=0.9999 +x_0=304800 +y_0=0 +datum=NAD83 +units=m +no_defs "],"EPSG:32194":["EPSG:32194","+proj=tmerc +lat_0=0 +lon_0=-87 +k=0.9999 +x_0=304800 +y_0=0 +datum=NAD83 +units=m +no_defs "],"EPSG:32197":["EPSG:32197","+proj=tmerc +lat_0=0 +lon_0=-96 +k=0.9999 +x_0=304800 +y_0=0 +datum=NAD83 +units=m +no_defs "],"EPSG:32198":["EPSG:32198","+proj=lcc +lat_1=60 +lat_2=46 +lat_0=44 +lon_0=-68.5 +x_0=0 +y_0=0 +datum=NAD83 +units=m +no_defs "],"EPSG:32199":["EPSG:32199","+proj=lcc +lat_1=27.83333333333333 +lat_2=26.16666666666667 +lat_0=25.5 +lon_0=-91.33333333333333 +x_0=1000000 +y_0=0 +datum=NAD83 +units=m +no_defs "],"EPSG:32201":["EPSG:32201","+proj=utm +zone=1 +ellps=WGS72 +towgs84=0,0,4.5,0,0,0.554,0.2263 +units=m +no_defs "],"EPSG:32202":["EPSG:32202","+proj=utm +zone=2 +ellps=WGS72 +towgs84=0,0,4.5,0,0,0.554,0.2263 +units=m +no_defs "],"EPSG:32203":["EPSG:32203","+proj=utm +zone=3 +ellps=WGS72 +towgs84=0,0,4.5,0,0,0.554,0.2263 +units=m +no_defs "],"EPSG:32204":["EPSG:32204","+proj=utm +zone=4 +ellps=WGS72 +towgs84=0,0,4.5,0,0,0.554,0.2263 +units=m +no_defs "],"EPSG:32205":["EPSG:32205","+proj=utm +zone=5 +ellps=WGS72 +towgs84=0,0,4.5,0,0,0.554,0.2263 +units=m +no_defs "],"EPSG:32206":["EPSG:32206","+proj=utm +zone=6 +ellps=WGS72 +towgs84=0,0,4.5,0,0,0.554,0.2263 +units=m +no_defs "],"EPSG:32211":["EPSG:32211","+proj=utm +zone=11 +ellps=WGS72 +towgs84=0,0,4.5,0,0,0.554,0.2263 +units=m +no_defs "],"EPSG:32212":["EPSG:32212","+proj=utm +zone=12 +ellps=WGS72 +towgs84=0,0,4.5,0,0,0.554,0.2263 +units=m +no_defs "],"EPSG:32214":["EPSG:32214","+proj=utm +zone=14 +ellps=WGS72 +towgs84=0,0,4.5,0,0,0.554,0.2263 +units=m +no_defs "],"EPSG:32215":["EPSG:32215","+proj=utm +zone=15 +ellps=WGS72 +towgs84=0,0,4.5,0,0,0.554,0.2263 +units=m +no_defs "],"EPSG:32216":["EPSG:32216","+proj=utm +zone=16 +ellps=WGS72 +towgs84=0,0,4.5,0,0,0.554,0.2263 +units=m +no_defs "],"EPSG:32217":["EPSG:32217","+proj=utm +zone=17 +ellps=WGS72 +towgs84=0,0,4.5,0,0,0.554,0.2263 +units=m +no_defs "],"EPSG:32218":["EPSG:32218","+proj=utm +zone=18 +ellps=WGS72 +towgs84=0,0,4.5,0,0,0.554,0.2263 +units=m +no_defs "],"EPSG:32219":["EPSG:32219","+proj=utm +zone=19 +ellps=WGS72 +towgs84=0,0,4.5,0,0,0.554,0.2263 +units=m +no_defs "],"EPSG:32220":["EPSG:32220","+proj=utm +zone=20 +ellps=WGS72 +towgs84=0,0,4.5,0,0,0.554,0.2263 +units=m +no_defs "],"EPSG:4342":["EPSG:4342","+proj=geocent +ellps=GRS80 +units=m +no_defs "],"EPSG:32221":["EPSG:32221","+proj=utm +zone=21 +ellps=WGS72 +towgs84=0,0,4.5,0,0,0.554,0.2263 +units=m +no_defs "],"EPSG:32222":["EPSG:32222","+proj=utm +zone=22 +ellps=WGS72 +towgs84=0,0,4.5,0,0,0.554,0.2263 +units=m +no_defs "],"EPSG:32223":["EPSG:32223","+proj=utm +zone=23 +ellps=WGS72 +towgs84=0,0,4.5,0,0,0.554,0.2263 +units=m +no_defs "],"EPSG:32224":["EPSG:32224","+proj=utm +zone=24 +ellps=WGS72 +towgs84=0,0,4.5,0,0,0.554,0.2263 +units=m +no_defs "],"EPSG:32225":["EPSG:32225","+proj=utm +zone=25 +ellps=WGS72 +towgs84=0,0,4.5,0,0,0.554,0.2263 +units=m +no_defs "],"EPSG:32226":["EPSG:32226","+proj=utm +zone=26 +ellps=WGS72 +towgs84=0,0,4.5,0,0,0.554,0.2263 +units=m +no_defs "],"EPSG:32227":["EPSG:32227","+proj=utm +zone=27 +ellps=WGS72 +towgs84=0,0,4.5,0,0,0.554,0.2263 +units=m +no_defs "],"EPSG:32228":["EPSG:32228","+proj=utm +zone=28 +ellps=WGS72 +towgs84=0,0,4.5,0,0,0.554,0.2263 +units=m +no_defs "],"EPSG:32229":["EPSG:32229","+proj=utm +zone=29 +ellps=WGS72 +towgs84=0,0,4.5,0,0,0.554,0.2263 +units=m +no_defs "],"EPSG:32230":["EPSG:32230","+proj=utm +zone=30 +ellps=WGS72 +towgs84=0,0,4.5,0,0,0.554,0.2263 +units=m +no_defs "],"EPSG:4344":["EPSG:4344","+proj=geocent +ellps=GRS80 +units=m +no_defs "],"EPSG:32231":["EPSG:32231","+proj=utm +zone=31 +ellps=WGS72 +towgs84=0,0,4.5,0,0,0.554,0.2263 +units=m +no_defs "],"EPSG:32232":["EPSG:32232","+proj=utm +zone=32 +ellps=WGS72 +towgs84=0,0,4.5,0,0,0.554,0.2263 +units=m +no_defs "],"EPSG:32233":["EPSG:32233","+proj=utm +zone=33 +ellps=WGS72 +towgs84=0,0,4.5,0,0,0.554,0.2263 +units=m +no_defs "],"EPSG:32234":["EPSG:32234","+proj=utm +zone=34 +ellps=WGS72 +towgs84=0,0,4.5,0,0,0.554,0.2263 +units=m +no_defs "],"EPSG:32235":["EPSG:32235","+proj=utm +zone=35 +ellps=WGS72 +towgs84=0,0,4.5,0,0,0.554,0.2263 +units=m +no_defs "],"EPSG:32236":["EPSG:32236","+proj=utm +zone=36 +ellps=WGS72 +towgs84=0,0,4.5,0,0,0.554,0.2263 +units=m +no_defs "],"EPSG:32237":["EPSG:32237","+proj=utm +zone=37 +ellps=WGS72 +towgs84=0,0,4.5,0,0,0.554,0.2263 +units=m +no_defs "],"EPSG:32238":["EPSG:32238","+proj=utm +zone=38 +ellps=WGS72 +towgs84=0,0,4.5,0,0,0.554,0.2263 +units=m +no_defs "],"EPSG:32239":["EPSG:32239","+proj=utm +zone=39 +ellps=WGS72 +towgs84=0,0,4.5,0,0,0.554,0.2263 +units=m +no_defs "],"EPSG:32240":["EPSG:32240","+proj=utm +zone=40 +ellps=WGS72 +towgs84=0,0,4.5,0,0,0.554,0.2263 +units=m +no_defs "],"EPSG:4346":["EPSG:4346","+proj=geocent +ellps=GRS80 +units=m +no_defs "],"EPSG:32241":["EPSG:32241","+proj=utm +zone=41 +ellps=WGS72 +towgs84=0,0,4.5,0,0,0.554,0.2263 +units=m +no_defs "],"EPSG:32243":["EPSG:32243","+proj=utm +zone=43 +ellps=WGS72 +towgs84=0,0,4.5,0,0,0.554,0.2263 +units=m +no_defs "],"EPSG:32244":["EPSG:32244","+proj=utm +zone=44 +ellps=WGS72 +towgs84=0,0,4.5,0,0,0.554,0.2263 +units=m +no_defs "],"EPSG:32245":["EPSG:32245","+proj=utm +zone=45 +ellps=WGS72 +towgs84=0,0,4.5,0,0,0.554,0.2263 +units=m +no_defs "],"EPSG:32246":["EPSG:32246","+proj=utm +zone=46 +ellps=WGS72 +towgs84=0,0,4.5,0,0,0.554,0.2263 +units=m +no_defs "],"EPSG:32247":["EPSG:32247","+proj=utm +zone=47 +ellps=WGS72 +towgs84=0,0,4.5,0,0,0.554,0.2263 +units=m +no_defs "],"EPSG:32248":["EPSG:32248","+proj=utm +zone=48 +ellps=WGS72 +towgs84=0,0,4.5,0,0,0.554,0.2263 +units=m +no_defs "],"EPSG:32249":["EPSG:32249","+proj=utm +zone=49 +ellps=WGS72 +towgs84=0,0,4.5,0,0,0.554,0.2263 +units=m +no_defs "],"EPSG:32250":["EPSG:32250","+proj=utm +zone=50 +ellps=WGS72 +towgs84=0,0,4.5,0,0,0.554,0.2263 +units=m +no_defs "],"EPSG:32251":["EPSG:32251","+proj=utm +zone=51 +ellps=WGS72 +towgs84=0,0,4.5,0,0,0.554,0.2263 +units=m +no_defs "],"EPSG:32252":["EPSG:32252","+proj=utm +zone=52 +ellps=WGS72 +towgs84=0,0,4.5,0,0,0.554,0.2263 +units=m +no_defs "],"EPSG:32253":["EPSG:32253","+proj=utm +zone=53 +ellps=WGS72 +towgs84=0,0,4.5,0,0,0.554,0.2263 +units=m +no_defs "],"EPSG:32254":["EPSG:32254","+proj=utm +zone=54 +ellps=WGS72 +towgs84=0,0,4.5,0,0,0.554,0.2263 +units=m +no_defs "],"EPSG:32255":["EPSG:32255","+proj=utm +zone=55 +ellps=WGS72 +towgs84=0,0,4.5,0,0,0.554,0.2263 +units=m +no_defs "],"EPSG:32256":["EPSG:32256","+proj=utm +zone=56 +ellps=WGS72 +towgs84=0,0,4.5,0,0,0.554,0.2263 +units=m +no_defs "],"EPSG:32257":["EPSG:32257","+proj=utm +zone=57 +ellps=WGS72 +towgs84=0,0,4.5,0,0,0.554,0.2263 +units=m +no_defs "],"EPSG:32258":["EPSG:32258","+proj=utm +zone=58 +ellps=WGS72 +towgs84=0,0,4.5,0,0,0.554,0.2263 +units=m +no_defs "],"EPSG:32259":["EPSG:32259","+proj=utm +zone=59 +ellps=WGS72 +towgs84=0,0,4.5,0,0,0.554,0.2263 +units=m +no_defs "],"EPSG:32260":["EPSG:32260","+proj=utm +zone=60 +ellps=WGS72 +towgs84=0,0,4.5,0,0,0.554,0.2263 +units=m +no_defs "],"EPSG:4350":["EPSG:4350","+proj=geocent +ellps=WGS84 +units=m +no_defs "],"EPSG:32301":["EPSG:32301","+proj=utm +zone=1 +south +ellps=WGS72 +towgs84=0,0,4.5,0,0,0.554,0.2263 +units=m +no_defs "],"EPSG:32302":["EPSG:32302","+proj=utm +zone=2 +south +ellps=WGS72 +towgs84=0,0,4.5,0,0,0.554,0.2263 +units=m +no_defs "],"EPSG:32303":["EPSG:32303","+proj=utm +zone=3 +south +ellps=WGS72 +towgs84=0,0,4.5,0,0,0.554,0.2263 +units=m +no_defs "],"EPSG:32304":["EPSG:32304","+proj=utm +zone=4 +south +ellps=WGS72 +towgs84=0,0,4.5,0,0,0.554,0.2263 +units=m +no_defs "],"EPSG:32305":["EPSG:32305","+proj=utm +zone=5 +south +ellps=WGS72 +towgs84=0,0,4.5,0,0,0.554,0.2263 +units=m +no_defs "],"EPSG:32306":["EPSG:32306","+proj=utm +zone=6 +south +ellps=WGS72 +towgs84=0,0,4.5,0,0,0.554,0.2263 +units=m +no_defs "],"EPSG:32307":["EPSG:32307","+proj=utm +zone=7 +south +ellps=WGS72 +towgs84=0,0,4.5,0,0,0.554,0.2263 +units=m +no_defs "],"EPSG:32308":["EPSG:32308","+proj=utm +zone=8 +south +ellps=WGS72 +towgs84=0,0,4.5,0,0,0.554,0.2263 +units=m +no_defs "],"EPSG:32309":["EPSG:32309","+proj=utm +zone=9 +south +ellps=WGS72 +towgs84=0,0,4.5,0,0,0.554,0.2263 +units=m +no_defs "],"EPSG:32310":["EPSG:32310","+proj=utm +zone=10 +south +ellps=WGS72 +towgs84=0,0,4.5,0,0,0.554,0.2263 +units=m +no_defs "],"EPSG:32311":["EPSG:32311","+proj=utm +zone=11 +south +ellps=WGS72 +towgs84=0,0,4.5,0,0,0.554,0.2263 +units=m +no_defs "],"EPSG:32312":["EPSG:32312","+proj=utm +zone=12 +south +ellps=WGS72 +towgs84=0,0,4.5,0,0,0.554,0.2263 +units=m +no_defs "],"EPSG:32313":["EPSG:32313","+proj=utm +zone=13 +south +ellps=WGS72 +towgs84=0,0,4.5,0,0,0.554,0.2263 +units=m +no_defs "],"EPSG:32314":["EPSG:32314","+proj=utm +zone=14 +south +ellps=WGS72 +towgs84=0,0,4.5,0,0,0.554,0.2263 +units=m +no_defs "],"EPSG:32315":["EPSG:32315","+proj=utm +zone=15 +south +ellps=WGS72 +towgs84=0,0,4.5,0,0,0.554,0.2263 +units=m +no_defs "],"EPSG:32316":["EPSG:32316","+proj=utm +zone=16 +south +ellps=WGS72 +towgs84=0,0,4.5,0,0,0.554,0.2263 +units=m +no_defs "],"EPSG:32317":["EPSG:32317","+proj=utm +zone=17 +south +ellps=WGS72 +towgs84=0,0,4.5,0,0,0.554,0.2263 +units=m +no_defs "],"EPSG:32318":["EPSG:32318","+proj=utm +zone=18 +south +ellps=WGS72 +towgs84=0,0,4.5,0,0,0.554,0.2263 +units=m +no_defs "],"EPSG:32319":["EPSG:32319","+proj=utm +zone=19 +south +ellps=WGS72 +towgs84=0,0,4.5,0,0,0.554,0.2263 +units=m +no_defs "],"EPSG:32320":["EPSG:32320","+proj=utm +zone=20 +south +ellps=WGS72 +towgs84=0,0,4.5,0,0,0.554,0.2263 +units=m +no_defs "],"EPSG:32321":["EPSG:32321","+proj=utm +zone=21 +south +ellps=WGS72 +towgs84=0,0,4.5,0,0,0.554,0.2263 +units=m +no_defs "],"EPSG:32322":["EPSG:32322","+proj=utm +zone=22 +south +ellps=WGS72 +towgs84=0,0,4.5,0,0,0.554,0.2263 +units=m +no_defs "],"EPSG:32323":["EPSG:32323","+proj=utm +zone=23 +south +ellps=WGS72 +towgs84=0,0,4.5,0,0,0.554,0.2263 +units=m +no_defs "],"EPSG:32324":["EPSG:32324","+proj=utm +zone=24 +south +ellps=WGS72 +towgs84=0,0,4.5,0,0,0.554,0.2263 +units=m +no_defs "],"EPSG:32325":["EPSG:32325","+proj=utm +zone=25 +south +ellps=WGS72 +towgs84=0,0,4.5,0,0,0.554,0.2263 +units=m +no_defs "],"EPSG:32326":["EPSG:32326","+proj=utm +zone=26 +south +ellps=WGS72 +towgs84=0,0,4.5,0,0,0.554,0.2263 +units=m +no_defs "],"EPSG:32327":["EPSG:32327","+proj=utm +zone=27 +south +ellps=WGS72 +towgs84=0,0,4.5,0,0,0.554,0.2263 +units=m +no_defs "],"EPSG:32328":["EPSG:32328","+proj=utm +zone=28 +south +ellps=WGS72 +towgs84=0,0,4.5,0,0,0.554,0.2263 +units=m +no_defs "],"EPSG:32329":["EPSG:32329","+proj=utm +zone=29 +south +ellps=WGS72 +towgs84=0,0,4.5,0,0,0.554,0.2263 +units=m +no_defs "],"EPSG:32330":["EPSG:32330","+proj=utm +zone=30 +south +ellps=WGS72 +towgs84=0,0,4.5,0,0,0.554,0.2263 +units=m +no_defs "],"EPSG:32331":["EPSG:32331","+proj=utm +zone=31 +south +ellps=WGS72 +towgs84=0,0,4.5,0,0,0.554,0.2263 +units=m +no_defs "],"EPSG:32332":["EPSG:32332","+proj=utm +zone=32 +south +ellps=WGS72 +towgs84=0,0,4.5,0,0,0.554,0.2263 +units=m +no_defs "],"EPSG:32333":["EPSG:32333","+proj=utm +zone=33 +south +ellps=WGS72 +towgs84=0,0,4.5,0,0,0.554,0.2263 +units=m +no_defs "],"EPSG:32334":["EPSG:32334","+proj=utm +zone=34 +south +ellps=WGS72 +towgs84=0,0,4.5,0,0,0.554,0.2263 +units=m +no_defs "],"EPSG:32335":["EPSG:32335","+proj=utm +zone=35 +south +ellps=WGS72 +towgs84=0,0,4.5,0,0,0.554,0.2263 +units=m +no_defs "],"EPSG:32336":["EPSG:32336","+proj=utm +zone=36 +south +ellps=WGS72 +towgs84=0,0,4.5,0,0,0.554,0.2263 +units=m +no_defs "],"EPSG:32338":["EPSG:32338","+proj=utm +zone=38 +south +ellps=WGS72 +towgs84=0,0,4.5,0,0,0.554,0.2263 +units=m +no_defs "],"EPSG:32339":["EPSG:32339","+proj=utm +zone=39 +south +ellps=WGS72 +towgs84=0,0,4.5,0,0,0.554,0.2263 +units=m +no_defs "],"EPSG:32340":["EPSG:32340","+proj=utm +zone=40 +south +ellps=WGS72 +towgs84=0,0,4.5,0,0,0.554,0.2263 +units=m +no_defs "],"EPSG:32341":["EPSG:32341","+proj=utm +zone=41 +south +ellps=WGS72 +towgs84=0,0,4.5,0,0,0.554,0.2263 +units=m +no_defs "],"EPSG:32342":["EPSG:32342","+proj=utm +zone=42 +south +ellps=WGS72 +towgs84=0,0,4.5,0,0,0.554,0.2263 +units=m +no_defs "],"EPSG:32343":["EPSG:32343","+proj=utm +zone=43 +south +ellps=WGS72 +towgs84=0,0,4.5,0,0,0.554,0.2263 +units=m +no_defs "],"EPSG:32344":["EPSG:32344","+proj=utm +zone=44 +south +ellps=WGS72 +towgs84=0,0,4.5,0,0,0.554,0.2263 +units=m +no_defs "],"EPSG:32345":["EPSG:32345","+proj=utm +zone=45 +south +ellps=WGS72 +towgs84=0,0,4.5,0,0,0.554,0.2263 +units=m +no_defs "],"EPSG:32346":["EPSG:32346","+proj=utm +zone=46 +south +ellps=WGS72 +towgs84=0,0,4.5,0,0,0.554,0.2263 +units=m +no_defs "],"EPSG:32347":["EPSG:32347","+proj=utm +zone=47 +south +ellps=WGS72 +towgs84=0,0,4.5,0,0,0.554,0.2263 +units=m +no_defs "],"EPSG:32348":["EPSG:32348","+proj=utm +zone=48 +south +ellps=WGS72 +towgs84=0,0,4.5,0,0,0.554,0.2263 +units=m +no_defs "],"EPSG:32349":["EPSG:32349","+proj=utm +zone=49 +south +ellps=WGS72 +towgs84=0,0,4.5,0,0,0.554,0.2263 +units=m +no_defs "],"EPSG:32350":["EPSG:32350","+proj=utm +zone=50 +south +ellps=WGS72 +towgs84=0,0,4.5,0,0,0.554,0.2263 +units=m +no_defs "],"EPSG:32351":["EPSG:32351","+proj=utm +zone=51 +south +ellps=WGS72 +towgs84=0,0,4.5,0,0,0.554,0.2263 +units=m +no_defs "],"EPSG:32352":["EPSG:32352","+proj=utm +zone=52 +south +ellps=WGS72 +towgs84=0,0,4.5,0,0,0.554,0.2263 +units=m +no_defs "],"EPSG:32353":["EPSG:32353","+proj=utm +zone=53 +south +ellps=WGS72 +towgs84=0,0,4.5,0,0,0.554,0.2263 +units=m +no_defs "],"EPSG:32354":["EPSG:32354","+proj=utm +zone=54 +south +ellps=WGS72 +towgs84=0,0,4.5,0,0,0.554,0.2263 +units=m +no_defs "],"EPSG:32355":["EPSG:32355","+proj=utm +zone=55 +south +ellps=WGS72 +towgs84=0,0,4.5,0,0,0.554,0.2263 +units=m +no_defs "],"EPSG:32356":["EPSG:32356","+proj=utm +zone=56 +south +ellps=WGS72 +towgs84=0,0,4.5,0,0,0.554,0.2263 +units=m +no_defs "],"EPSG:32357":["EPSG:32357","+proj=utm +zone=57 +south +ellps=WGS72 +towgs84=0,0,4.5,0,0,0.554,0.2263 +units=m +no_defs "],"EPSG:32358":["EPSG:32358","+proj=utm +zone=58 +south +ellps=WGS72 +towgs84=0,0,4.5,0,0,0.554,0.2263 +units=m +no_defs "],"EPSG:32359":["EPSG:32359","+proj=utm +zone=59 +south +ellps=WGS72 +towgs84=0,0,4.5,0,0,0.554,0.2263 +units=m +no_defs "],"EPSG:32360":["EPSG:32360","+proj=utm +zone=60 +south +ellps=WGS72 +towgs84=0,0,4.5,0,0,0.554,0.2263 +units=m +no_defs "],"EPSG:32401":["EPSG:32401","+proj=utm +zone=1 +ellps=WGS72 +towgs84=0,0,1.9,0,0,0.814,-0.38 +units=m +no_defs "],"EPSG:32402":["EPSG:32402","+proj=utm +zone=2 +ellps=WGS72 +towgs84=0,0,1.9,0,0,0.814,-0.38 +units=m +no_defs "],"EPSG:32403":["EPSG:32403","+proj=utm +zone=3 +ellps=WGS72 +towgs84=0,0,1.9,0,0,0.814,-0.38 +units=m +no_defs "],"EPSG:32404":["EPSG:32404","+proj=utm +zone=4 +ellps=WGS72 +towgs84=0,0,1.9,0,0,0.814,-0.38 +units=m +no_defs "],"EPSG:32405":["EPSG:32405","+proj=utm +zone=5 +ellps=WGS72 +towgs84=0,0,1.9,0,0,0.814,-0.38 +units=m +no_defs "],"EPSG:32406":["EPSG:32406","+proj=utm +zone=6 +ellps=WGS72 +towgs84=0,0,1.9,0,0,0.814,-0.38 +units=m +no_defs "],"EPSG:32407":["EPSG:32407","+proj=utm +zone=7 +ellps=WGS72 +towgs84=0,0,1.9,0,0,0.814,-0.38 +units=m +no_defs "],"EPSG:32408":["EPSG:32408","+proj=utm +zone=8 +ellps=WGS72 +towgs84=0,0,1.9,0,0,0.814,-0.38 +units=m +no_defs "],"EPSG:32409":["EPSG:32409","+proj=utm +zone=9 +ellps=WGS72 +towgs84=0,0,1.9,0,0,0.814,-0.38 +units=m +no_defs "],"EPSG:32410":["EPSG:32410","+proj=utm +zone=10 +ellps=WGS72 +towgs84=0,0,1.9,0,0,0.814,-0.38 +units=m +no_defs "],"EPSG:32411":["EPSG:32411","+proj=utm +zone=11 +ellps=WGS72 +towgs84=0,0,1.9,0,0,0.814,-0.38 +units=m +no_defs "],"EPSG:32412":["EPSG:32412","+proj=utm +zone=12 +ellps=WGS72 +towgs84=0,0,1.9,0,0,0.814,-0.38 +units=m +no_defs "],"EPSG:32413":["EPSG:32413","+proj=utm +zone=13 +ellps=WGS72 +towgs84=0,0,1.9,0,0,0.814,-0.38 +units=m +no_defs "],"EPSG:32414":["EPSG:32414","+proj=utm +zone=14 +ellps=WGS72 +towgs84=0,0,1.9,0,0,0.814,-0.38 +units=m +no_defs "],"EPSG:32415":["EPSG:32415","+proj=utm +zone=15 +ellps=WGS72 +towgs84=0,0,1.9,0,0,0.814,-0.38 +units=m +no_defs "],"EPSG:32416":["EPSG:32416","+proj=utm +zone=16 +ellps=WGS72 +towgs84=0,0,1.9,0,0,0.814,-0.38 +units=m +no_defs "],"EPSG:32417":["EPSG:32417","+proj=utm +zone=17 +ellps=WGS72 +towgs84=0,0,1.9,0,0,0.814,-0.38 +units=m +no_defs "],"EPSG:32418":["EPSG:32418","+proj=utm +zone=18 +ellps=WGS72 +towgs84=0,0,1.9,0,0,0.814,-0.38 +units=m +no_defs "],"EPSG:32419":["EPSG:32419","+proj=utm +zone=19 +ellps=WGS72 +towgs84=0,0,1.9,0,0,0.814,-0.38 +units=m +no_defs "],"EPSG:32420":["EPSG:32420","+proj=utm +zone=20 +ellps=WGS72 +towgs84=0,0,1.9,0,0,0.814,-0.38 +units=m +no_defs "],"EPSG:32421":["EPSG:32421","+proj=utm +zone=21 +ellps=WGS72 +towgs84=0,0,1.9,0,0,0.814,-0.38 +units=m +no_defs "],"EPSG:32422":["EPSG:32422","+proj=utm +zone=22 +ellps=WGS72 +towgs84=0,0,1.9,0,0,0.814,-0.38 +units=m +no_defs "],"EPSG:32423":["EPSG:32423","+proj=utm +zone=23 +ellps=WGS72 +towgs84=0,0,1.9,0,0,0.814,-0.38 +units=m +no_defs "],"EPSG:32424":["EPSG:32424","+proj=utm +zone=24 +ellps=WGS72 +towgs84=0,0,1.9,0,0,0.814,-0.38 +units=m +no_defs "],"EPSG:32425":["EPSG:32425","+proj=utm +zone=25 +ellps=WGS72 +towgs84=0,0,1.9,0,0,0.814,-0.38 +units=m +no_defs "],"EPSG:32426":["EPSG:32426","+proj=utm +zone=26 +ellps=WGS72 +towgs84=0,0,1.9,0,0,0.814,-0.38 +units=m +no_defs "],"EPSG:32427":["EPSG:32427","+proj=utm +zone=27 +ellps=WGS72 +towgs84=0,0,1.9,0,0,0.814,-0.38 +units=m +no_defs "],"EPSG:32428":["EPSG:32428","+proj=utm +zone=28 +ellps=WGS72 +towgs84=0,0,1.9,0,0,0.814,-0.38 +units=m +no_defs "],"EPSG:32429":["EPSG:32429","+proj=utm +zone=29 +ellps=WGS72 +towgs84=0,0,1.9,0,0,0.814,-0.38 +units=m +no_defs "],"EPSG:32430":["EPSG:32430","+proj=utm +zone=30 +ellps=WGS72 +towgs84=0,0,1.9,0,0,0.814,-0.38 +units=m +no_defs "],"EPSG:32431":["EPSG:32431","+proj=utm +zone=31 +ellps=WGS72 +towgs84=0,0,1.9,0,0,0.814,-0.38 +units=m +no_defs "],"EPSG:32432":["EPSG:32432","+proj=utm +zone=32 +ellps=WGS72 +towgs84=0,0,1.9,0,0,0.814,-0.38 +units=m +no_defs "],"EPSG:32433":["EPSG:32433","+proj=utm +zone=33 +ellps=WGS72 +towgs84=0,0,1.9,0,0,0.814,-0.38 +units=m +no_defs "],"EPSG:32434":["EPSG:32434","+proj=utm +zone=34 +ellps=WGS72 +towgs84=0,0,1.9,0,0,0.814,-0.38 +units=m +no_defs "],"EPSG:32435":["EPSG:32435","+proj=utm +zone=35 +ellps=WGS72 +towgs84=0,0,1.9,0,0,0.814,-0.38 +units=m +no_defs "],"EPSG:32436":["EPSG:32436","+proj=utm +zone=36 +ellps=WGS72 +towgs84=0,0,1.9,0,0,0.814,-0.38 +units=m +no_defs "],"EPSG:32437":["EPSG:32437","+proj=utm +zone=37 +ellps=WGS72 +towgs84=0,0,1.9,0,0,0.814,-0.38 +units=m +no_defs "],"EPSG:32438":["EPSG:32438","+proj=utm +zone=38 +ellps=WGS72 +towgs84=0,0,1.9,0,0,0.814,-0.38 +units=m +no_defs "],"EPSG:32439":["EPSG:32439","+proj=utm +zone=39 +ellps=WGS72 +towgs84=0,0,1.9,0,0,0.814,-0.38 +units=m +no_defs "],"EPSG:32440":["EPSG:32440","+proj=utm +zone=40 +ellps=WGS72 +towgs84=0,0,1.9,0,0,0.814,-0.38 +units=m +no_defs "],"EPSG:32441":["EPSG:32441","+proj=utm +zone=41 +ellps=WGS72 +towgs84=0,0,1.9,0,0,0.814,-0.38 +units=m +no_defs "],"EPSG:32442":["EPSG:32442","+proj=utm +zone=42 +ellps=WGS72 +towgs84=0,0,1.9,0,0,0.814,-0.38 +units=m +no_defs "],"EPSG:32443":["EPSG:32443","+proj=utm +zone=43 +ellps=WGS72 +towgs84=0,0,1.9,0,0,0.814,-0.38 +units=m +no_defs "],"EPSG:32444":["EPSG:32444","+proj=utm +zone=44 +ellps=WGS72 +towgs84=0,0,1.9,0,0,0.814,-0.38 +units=m +no_defs "],"EPSG:32445":["EPSG:32445","+proj=utm +zone=45 +ellps=WGS72 +towgs84=0,0,1.9,0,0,0.814,-0.38 +units=m +no_defs "],"EPSG:32446":["EPSG:32446","+proj=utm +zone=46 +ellps=WGS72 +towgs84=0,0,1.9,0,0,0.814,-0.38 +units=m +no_defs "],"EPSG:32447":["EPSG:32447","+proj=utm +zone=47 +ellps=WGS72 +towgs84=0,0,1.9,0,0,0.814,-0.38 +units=m +no_defs "],"EPSG:32448":["EPSG:32448","+proj=utm +zone=48 +ellps=WGS72 +towgs84=0,0,1.9,0,0,0.814,-0.38 +units=m +no_defs "],"EPSG:32449":["EPSG:32449","+proj=utm +zone=49 +ellps=WGS72 +towgs84=0,0,1.9,0,0,0.814,-0.38 +units=m +no_defs "],"EPSG:32450":["EPSG:32450","+proj=utm +zone=50 +ellps=WGS72 +towgs84=0,0,1.9,0,0,0.814,-0.38 +units=m +no_defs "],"EPSG:32451":["EPSG:32451","+proj=utm +zone=51 +ellps=WGS72 +towgs84=0,0,1.9,0,0,0.814,-0.38 +units=m +no_defs "],"EPSG:32452":["EPSG:32452","+proj=utm +zone=52 +ellps=WGS72 +towgs84=0,0,1.9,0,0,0.814,-0.38 +units=m +no_defs "],"EPSG:32453":["EPSG:32453","+proj=utm +zone=53 +ellps=WGS72 +towgs84=0,0,1.9,0,0,0.814,-0.38 +units=m +no_defs "],"EPSG:32454":["EPSG:32454","+proj=utm +zone=54 +ellps=WGS72 +towgs84=0,0,1.9,0,0,0.814,-0.38 +units=m +no_defs "],"EPSG:32455":["EPSG:32455","+proj=utm +zone=55 +ellps=WGS72 +towgs84=0,0,1.9,0,0,0.814,-0.38 +units=m +no_defs "],"EPSG:32456":["EPSG:32456","+proj=utm +zone=56 +ellps=WGS72 +towgs84=0,0,1.9,0,0,0.814,-0.38 +units=m +no_defs "],"EPSG:32457":["EPSG:32457","+proj=utm +zone=57 +ellps=WGS72 +towgs84=0,0,1.9,0,0,0.814,-0.38 +units=m +no_defs "],"EPSG:32458":["EPSG:32458","+proj=utm +zone=58 +ellps=WGS72 +towgs84=0,0,1.9,0,0,0.814,-0.38 +units=m +no_defs "],"EPSG:32459":["EPSG:32459","+proj=utm +zone=59 +ellps=WGS72 +towgs84=0,0,1.9,0,0,0.814,-0.38 +units=m +no_defs "],"EPSG:32460":["EPSG:32460","+proj=utm +zone=60 +ellps=WGS72 +towgs84=0,0,1.9,0,0,0.814,-0.38 +units=m +no_defs "],"EPSG:32501":["EPSG:32501","+proj=utm +zone=1 +south +ellps=WGS72 +towgs84=0,0,1.9,0,0,0.814,-0.38 +units=m +no_defs "],"EPSG:32502":["EPSG:32502","+proj=utm +zone=2 +south +ellps=WGS72 +towgs84=0,0,1.9,0,0,0.814,-0.38 +units=m +no_defs "],"EPSG:32503":["EPSG:32503","+proj=utm +zone=3 +south +ellps=WGS72 +towgs84=0,0,1.9,0,0,0.814,-0.38 +units=m +no_defs "],"EPSG:32504":["EPSG:32504","+proj=utm +zone=4 +south +ellps=WGS72 +towgs84=0,0,1.9,0,0,0.814,-0.38 +units=m +no_defs "],"EPSG:32505":["EPSG:32505","+proj=utm +zone=5 +south +ellps=WGS72 +towgs84=0,0,1.9,0,0,0.814,-0.38 +units=m +no_defs "],"EPSG:32506":["EPSG:32506","+proj=utm +zone=6 +south +ellps=WGS72 +towgs84=0,0,1.9,0,0,0.814,-0.38 +units=m +no_defs "],"EPSG:32507":["EPSG:32507","+proj=utm +zone=7 +south +ellps=WGS72 +towgs84=0,0,1.9,0,0,0.814,-0.38 +units=m +no_defs "],"EPSG:32508":["EPSG:32508","+proj=utm +zone=8 +south +ellps=WGS72 +towgs84=0,0,1.9,0,0,0.814,-0.38 +units=m +no_defs "],"EPSG:32509":["EPSG:32509","+proj=utm +zone=9 +south +ellps=WGS72 +towgs84=0,0,1.9,0,0,0.814,-0.38 +units=m +no_defs "],"EPSG:32510":["EPSG:32510","+proj=utm +zone=10 +south +ellps=WGS72 +towgs84=0,0,1.9,0,0,0.814,-0.38 +units=m +no_defs "],"EPSG:32511":["EPSG:32511","+proj=utm +zone=11 +south +ellps=WGS72 +towgs84=0,0,1.9,0,0,0.814,-0.38 +units=m +no_defs "],"EPSG:32512":["EPSG:32512","+proj=utm +zone=12 +south +ellps=WGS72 +towgs84=0,0,1.9,0,0,0.814,-0.38 +units=m +no_defs "],"EPSG:32513":["EPSG:32513","+proj=utm +zone=13 +south +ellps=WGS72 +towgs84=0,0,1.9,0,0,0.814,-0.38 +units=m +no_defs "],"EPSG:32514":["EPSG:32514","+proj=utm +zone=14 +south +ellps=WGS72 +towgs84=0,0,1.9,0,0,0.814,-0.38 +units=m +no_defs "],"EPSG:32515":["EPSG:32515","+proj=utm +zone=15 +south +ellps=WGS72 +towgs84=0,0,1.9,0,0,0.814,-0.38 +units=m +no_defs "],"EPSG:32516":["EPSG:32516","+proj=utm +zone=16 +south +ellps=WGS72 +towgs84=0,0,1.9,0,0,0.814,-0.38 +units=m +no_defs "],"EPSG:32517":["EPSG:32517","+proj=utm +zone=17 +south +ellps=WGS72 +towgs84=0,0,1.9,0,0,0.814,-0.38 +units=m +no_defs "],"EPSG:32518":["EPSG:32518","+proj=utm +zone=18 +south +ellps=WGS72 +towgs84=0,0,1.9,0,0,0.814,-0.38 +units=m +no_defs "],"EPSG:32519":["EPSG:32519","+proj=utm +zone=19 +south +ellps=WGS72 +towgs84=0,0,1.9,0,0,0.814,-0.38 +units=m +no_defs "],"EPSG:32521":["EPSG:32521","+proj=utm +zone=21 +south +ellps=WGS72 +towgs84=0,0,1.9,0,0,0.814,-0.38 +units=m +no_defs "],"EPSG:32522":["EPSG:32522","+proj=utm +zone=22 +south +ellps=WGS72 +towgs84=0,0,1.9,0,0,0.814,-0.38 +units=m +no_defs "],"EPSG:32523":["EPSG:32523","+proj=utm +zone=23 +south +ellps=WGS72 +towgs84=0,0,1.9,0,0,0.814,-0.38 +units=m +no_defs "],"EPSG:32524":["EPSG:32524","+proj=utm +zone=24 +south +ellps=WGS72 +towgs84=0,0,1.9,0,0,0.814,-0.38 +units=m +no_defs "],"EPSG:32525":["EPSG:32525","+proj=utm +zone=25 +south +ellps=WGS72 +towgs84=0,0,1.9,0,0,0.814,-0.38 +units=m +no_defs "],"EPSG:32526":["EPSG:32526","+proj=utm +zone=26 +south +ellps=WGS72 +towgs84=0,0,1.9,0,0,0.814,-0.38 +units=m +no_defs "],"EPSG:32527":["EPSG:32527","+proj=utm +zone=27 +south +ellps=WGS72 +towgs84=0,0,1.9,0,0,0.814,-0.38 +units=m +no_defs "],"EPSG:32528":["EPSG:32528","+proj=utm +zone=28 +south +ellps=WGS72 +towgs84=0,0,1.9,0,0,0.814,-0.38 +units=m +no_defs "],"EPSG:32529":["EPSG:32529","+proj=utm +zone=29 +south +ellps=WGS72 +towgs84=0,0,1.9,0,0,0.814,-0.38 +units=m +no_defs "],"EPSG:32530":["EPSG:32530","+proj=utm +zone=30 +south +ellps=WGS72 +towgs84=0,0,1.9,0,0,0.814,-0.38 +units=m +no_defs "],"EPSG:32531":["EPSG:32531","+proj=utm +zone=31 +south +ellps=WGS72 +towgs84=0,0,1.9,0,0,0.814,-0.38 +units=m +no_defs "],"EPSG:32532":["EPSG:32532","+proj=utm +zone=32 +south +ellps=WGS72 +towgs84=0,0,1.9,0,0,0.814,-0.38 +units=m +no_defs "],"EPSG:32533":["EPSG:32533","+proj=utm +zone=33 +south +ellps=WGS72 +towgs84=0,0,1.9,0,0,0.814,-0.38 +units=m +no_defs "],"EPSG:32534":["EPSG:32534","+proj=utm +zone=34 +south +ellps=WGS72 +towgs84=0,0,1.9,0,0,0.814,-0.38 +units=m +no_defs "],"EPSG:32535":["EPSG:32535","+proj=utm +zone=35 +south +ellps=WGS72 +towgs84=0,0,1.9,0,0,0.814,-0.38 +units=m +no_defs "],"EPSG:32536":["EPSG:32536","+proj=utm +zone=36 +south +ellps=WGS72 +towgs84=0,0,1.9,0,0,0.814,-0.38 +units=m +no_defs "],"EPSG:32537":["EPSG:32537","+proj=utm +zone=37 +south +ellps=WGS72 +towgs84=0,0,1.9,0,0,0.814,-0.38 +units=m +no_defs "],"EPSG:32538":["EPSG:32538","+proj=utm +zone=38 +south +ellps=WGS72 +towgs84=0,0,1.9,0,0,0.814,-0.38 +units=m +no_defs "],"EPSG:32539":["EPSG:32539","+proj=utm +zone=39 +south +ellps=WGS72 +towgs84=0,0,1.9,0,0,0.814,-0.38 +units=m +no_defs "],"EPSG:32540":["EPSG:32540","+proj=utm +zone=40 +south +ellps=WGS72 +towgs84=0,0,1.9,0,0,0.814,-0.38 +units=m +no_defs "],"EPSG:32541":["EPSG:32541","+proj=utm +zone=41 +south +ellps=WGS72 +towgs84=0,0,1.9,0,0,0.814,-0.38 +units=m +no_defs "],"EPSG:32542":["EPSG:32542","+proj=utm +zone=42 +south +ellps=WGS72 +towgs84=0,0,1.9,0,0,0.814,-0.38 +units=m +no_defs "],"EPSG:32543":["EPSG:32543","+proj=utm +zone=43 +south +ellps=WGS72 +towgs84=0,0,1.9,0,0,0.814,-0.38 +units=m +no_defs "],"EPSG:32544":["EPSG:32544","+proj=utm +zone=44 +south +ellps=WGS72 +towgs84=0,0,1.9,0,0,0.814,-0.38 +units=m +no_defs "],"EPSG:32545":["EPSG:32545","+proj=utm +zone=45 +south +ellps=WGS72 +towgs84=0,0,1.9,0,0,0.814,-0.38 +units=m +no_defs "],"EPSG:32546":["EPSG:32546","+proj=utm +zone=46 +south +ellps=WGS72 +towgs84=0,0,1.9,0,0,0.814,-0.38 +units=m +no_defs "],"EPSG:32547":["EPSG:32547","+proj=utm +zone=47 +south +ellps=WGS72 +towgs84=0,0,1.9,0,0,0.814,-0.38 +units=m +no_defs "],"EPSG:32548":["EPSG:32548","+proj=utm +zone=48 +south +ellps=WGS72 +towgs84=0,0,1.9,0,0,0.814,-0.38 +units=m +no_defs "],"EPSG:32549":["EPSG:32549","+proj=utm +zone=49 +south +ellps=WGS72 +towgs84=0,0,1.9,0,0,0.814,-0.38 +units=m +no_defs "],"EPSG:32550":["EPSG:32550","+proj=utm +zone=50 +south +ellps=WGS72 +towgs84=0,0,1.9,0,0,0.814,-0.38 +units=m +no_defs "],"EPSG:32551":["EPSG:32551","+proj=utm +zone=51 +south +ellps=WGS72 +towgs84=0,0,1.9,0,0,0.814,-0.38 +units=m +no_defs "],"EPSG:32552":["EPSG:32552","+proj=utm +zone=52 +south +ellps=WGS72 +towgs84=0,0,1.9,0,0,0.814,-0.38 +units=m +no_defs "],"EPSG:32553":["EPSG:32553","+proj=utm +zone=53 +south +ellps=WGS72 +towgs84=0,0,1.9,0,0,0.814,-0.38 +units=m +no_defs "],"EPSG:32554":["EPSG:32554","+proj=utm +zone=54 +south +ellps=WGS72 +towgs84=0,0,1.9,0,0,0.814,-0.38 +units=m +no_defs "],"EPSG:32555":["EPSG:32555","+proj=utm +zone=55 +south +ellps=WGS72 +towgs84=0,0,1.9,0,0,0.814,-0.38 +units=m +no_defs "],"EPSG:32556":["EPSG:32556","+proj=utm +zone=56 +south +ellps=WGS72 +towgs84=0,0,1.9,0,0,0.814,-0.38 +units=m +no_defs "],"EPSG:32557":["EPSG:32557","+proj=utm +zone=57 +south +ellps=WGS72 +towgs84=0,0,1.9,0,0,0.814,-0.38 +units=m +no_defs "],"EPSG:32558":["EPSG:32558","+proj=utm +zone=58 +south +ellps=WGS72 +towgs84=0,0,1.9,0,0,0.814,-0.38 +units=m +no_defs "],"EPSG:32559":["EPSG:32559","+proj=utm +zone=59 +south +ellps=WGS72 +towgs84=0,0,1.9,0,0,0.814,-0.38 +units=m +no_defs "],"EPSG:32560":["EPSG:32560","+proj=utm +zone=60 +south +ellps=WGS72 +towgs84=0,0,1.9,0,0,0.814,-0.38 +units=m +no_defs "],"EPSG:32625":["EPSG:32625","+proj=utm +zone=25 +datum=WGS84 +units=m +no_defs "],"EPSG:32626":["EPSG:32626","+proj=utm +zone=26 +datum=WGS84 +units=m +no_defs "],"EPSG:4352":["EPSG:4352","+proj=geocent +ellps=GRS80 +units=m +no_defs "],"EPSG:32627":["EPSG:32627","+proj=utm +zone=27 +datum=WGS84 +units=m +no_defs "],"EPSG:4354":["EPSG:4354","+proj=geocent +ellps=GRS80 +units=m +no_defs "],"EPSG:32641":["EPSG:32641","+proj=utm +zone=41 +datum=WGS84 +units=m +no_defs "],"EPSG:4356":["EPSG:4356","+proj=geocent +ellps=GRS80 +units=m +no_defs "],"EPSG:32653":["EPSG:32653","+proj=utm +zone=53 +datum=WGS84 +units=m +no_defs "],"EPSG:32656":["EPSG:32656","+proj=utm +zone=56 +datum=WGS84 +units=m +no_defs "],"EPSG:32657":["EPSG:32657","+proj=utm +zone=57 +datum=WGS84 +units=m +no_defs "],"EPSG:32658":["EPSG:32658","+proj=utm +zone=58 +datum=WGS84 +units=m +no_defs "],"EPSG:32659":["EPSG:32659","+proj=utm +zone=59 +datum=WGS84 +units=m +no_defs "],"EPSG:4358":["EPSG:4358","+proj=geocent +ellps=WGS84 +units=m +no_defs "],"EPSG:32660":["EPSG:32660","+proj=utm +zone=60 +datum=WGS84 +units=m +no_defs "],"EPSG:32661":["EPSG:32661","+proj=stere +lat_0=90 +lat_ts=90 +lon_0=0 +k=0.994 +x_0=2000000 +y_0=2000000 +datum=WGS84 +units=m +no_defs "],"EPSG:32663":["EPSG:32663","+proj=eqc +lat_ts=0 +lat_0=0 +lon_0=0 +x_0=0 +y_0=0 +datum=WGS84 +units=m +no_defs "],"EPSG:32664":["EPSG:32664","+proj=tmerc +lat_0=0 +lon_0=-99 +k=0.9996 +x_0=500000.001016002 +y_0=0 +datum=WGS84 +units=us-ft +no_defs "],"EPSG:32665":["EPSG:32665","+proj=tmerc +lat_0=0 +lon_0=-93 +k=0.9996 +x_0=500000.001016002 +y_0=0 +datum=WGS84 +units=us-ft +no_defs "],"EPSG:32666":["EPSG:32666","+proj=tmerc +lat_0=0 +lon_0=-87 +k=0.9996 +x_0=500000.001016002 +y_0=0 +datum=WGS84 +units=us-ft +no_defs "],"EPSG:32667":["EPSG:32667","+proj=tmerc +lat_0=0 +lon_0=-81 +k=0.9996 +x_0=500000.001016002 +y_0=0 +datum=WGS84 +units=us-ft +no_defs "],"EPSG:32701":["EPSG:32701","+proj=utm +zone=1 +south +datum=WGS84 +units=m +no_defs "],"EPSG:32702":["EPSG:32702","+proj=utm +zone=2 +south +datum=WGS84 +units=m +no_defs "],"EPSG:32703":["EPSG:32703","+proj=utm +zone=3 +south +datum=WGS84 +units=m +no_defs "],"EPSG:32704":["EPSG:32704","+proj=utm +zone=4 +south +datum=WGS84 +units=m +no_defs "],"EPSG:32705":["EPSG:32705","+proj=utm +zone=5 +south +datum=WGS84 +units=m +no_defs "],"EPSG:32706":["EPSG:32706","+proj=utm +zone=6 +south +datum=WGS84 +units=m +no_defs "],"EPSG:32707":["EPSG:32707","+proj=utm +zone=7 +south +datum=WGS84 +units=m +no_defs "],"EPSG:32708":["EPSG:32708","+proj=utm +zone=8 +south +datum=WGS84 +units=m +no_defs "],"EPSG:32709":["EPSG:32709","+proj=utm +zone=9 +south +datum=WGS84 +units=m +no_defs "],"EPSG:32710":["EPSG:32710","+proj=utm +zone=10 +south +datum=WGS84 +units=m +no_defs "],"EPSG:32711":["EPSG:32711","+proj=utm +zone=11 +south +datum=WGS84 +units=m +no_defs "],"EPSG:32712":["EPSG:32712","+proj=utm +zone=12 +south +datum=WGS84 +units=m +no_defs "],"EPSG:32713":["EPSG:32713","+proj=utm +zone=13 +south +datum=WGS84 +units=m +no_defs "],"EPSG:32714":["EPSG:32714","+proj=utm +zone=14 +south +datum=WGS84 +units=m +no_defs "],"EPSG:32715":["EPSG:32715","+proj=utm +zone=15 +south +datum=WGS84 +units=m +no_defs "],"EPSG:32716":["EPSG:32716","+proj=utm +zone=16 +south +datum=WGS84 +units=m +no_defs "],"EPSG:32725":["EPSG:32725","+proj=utm +zone=25 +south +datum=WGS84 +units=m +no_defs "],"EPSG:32726":["EPSG:32726","+proj=utm +zone=26 +south +datum=WGS84 +units=m +no_defs "],"EPSG:32727":["EPSG:32727","+proj=utm +zone=27 +south +datum=WGS84 +units=m +no_defs "],"EPSG:32728":["EPSG:32728","+proj=utm +zone=28 +south +datum=WGS84 +units=m +no_defs "],"EPSG:32729":["EPSG:32729","+proj=utm +zone=29 +south +datum=WGS84 +units=m +no_defs "],"EPSG:32730":["EPSG:32730","+proj=utm +zone=30 +south +datum=WGS84 +units=m +no_defs "],"EPSG:32731":["EPSG:32731","+proj=utm +zone=31 +south +datum=WGS84 +units=m +no_defs "],"EPSG:32732":["EPSG:32732","+proj=utm +zone=32 +south +datum=WGS84 +units=m +no_defs "],"EPSG:32733":["EPSG:32733","+proj=utm +zone=33 +south +datum=WGS84 +units=m +no_defs "],"EPSG:32738":["EPSG:32738","+proj=utm +zone=38 +south +datum=WGS84 +units=m +no_defs "],"EPSG:32739":["EPSG:32739","+proj=utm +zone=39 +south +datum=WGS84 +units=m +no_defs "],"EPSG:32740":["EPSG:32740","+proj=utm +zone=40 +south +datum=WGS84 +units=m +no_defs "],"EPSG:32741":["EPSG:32741","+proj=utm +zone=41 +south +datum=WGS84 +units=m +no_defs "],"EPSG:32742":["EPSG:32742","+proj=utm +zone=42 +south +datum=WGS84 +units=m +no_defs "],"EPSG:32743":["EPSG:32743","+proj=utm +zone=43 +south +datum=WGS84 +units=m +no_defs "],"EPSG:32744":["EPSG:32744","+proj=utm +zone=44 +south +datum=WGS84 +units=m +no_defs "],"EPSG:32745":["EPSG:32745","+proj=utm +zone=45 +south +datum=WGS84 +units=m +no_defs "],"EPSG:32746":["EPSG:32746","+proj=utm +zone=46 +south +datum=WGS84 +units=m +no_defs "],"EPSG:32752":["EPSG:32752","+proj=utm +zone=52 +south +datum=WGS84 +units=m +no_defs "],"EPSG:32753":["EPSG:32753","+proj=utm +zone=53 +south +datum=WGS84 +units=m +no_defs "],"EPSG:32758":["EPSG:32758","+proj=utm +zone=58 +south +datum=WGS84 +units=m +no_defs "],"EPSG:32759":["EPSG:32759","+proj=utm +zone=59 +south +datum=WGS84 +units=m +no_defs "],"EPSG:32760":["EPSG:32760","+proj=utm +zone=60 +south +datum=WGS84 +units=m +no_defs "],"EPSG:32761":["EPSG:32761","+proj=stere +lat_0=-90 +lat_ts=-90 +lon_0=0 +k=0.994 +x_0=2000000 +y_0=2000000 +datum=WGS84 +units=m +no_defs "],"EPSG:32766":["EPSG:32766","+proj=tmerc +lat_0=0 +lon_0=36 +k=0.9996 +x_0=500000 +y_0=10000000 +datum=WGS84 +units=m +no_defs "],"EPSG:3887":["EPSG:3887","+proj=geocent +ellps=GRS80 +units=m +no_defs "],"EPSG:4000":["EPSG:4000","+proj=geocent +ellps=GRS80 +units=m +no_defs "],"EPSG:4039":["EPSG:4039","+proj=geocent +ellps=GRS80 +units=m +no_defs "],"EPSG:4073":["EPSG:4073","+proj=geocent +ellps=GRS80 +units=m +no_defs "],"EPSG:4079":["EPSG:4079","+proj=geocent +ellps=GRS80 +units=m +no_defs "],"EPSG:4330":["EPSG:4330","+proj=geocent +ellps=GRS80 +units=m +no_defs "],"EPSG:4332":["EPSG:4332","+proj=geocent +ellps=GRS80 +units=m +no_defs "],"EPSG:4333":["EPSG:4333","+proj=geocent +ellps=GRS80 +units=m +no_defs "],"EPSG:6317":["EPSG:6317","+proj=geocent +ellps=GRS80 +units=m +no_defs "],"EPSG:6320":["EPSG:6320","+proj=geocent +ellps=GRS80 +units=m +no_defs "],"EPSG:6323":["EPSG:6323","+proj=geocent +ellps=GRS80 +units=m +no_defs "],"EPSG:6363":["EPSG:6363","+proj=geocent +ellps=GRS80 +units=m +no_defs "],"EPSG:6666":["EPSG:6666","+proj=geocent +ellps=GRS80 +units=m +no_defs "],"EPSG:6704":["EPSG:6704","+proj=geocent +ellps=GRS80 +units=m +no_defs "],"EPSG:6781":["EPSG:6781","+proj=geocent +ellps=GRS80 +units=m +no_defs "],"EPSG:6934":["EPSG:6934","+proj=geocent +ellps=GRS80 +units=m +no_defs "],"EPSG:6978":["EPSG:6978","+proj=geocent +ellps=GRS80 +units=m +no_defs "],"EPSG:6981":["EPSG:6981","+proj=geocent +ellps=GRS80 +units=m +no_defs "],"EPSG:6985":["EPSG:6985","+proj=geocent +ellps=GRS80 +units=m +no_defs "],"EPSG:6988":["EPSG:6988","+proj=geocent +ellps=GRS80 +units=m +no_defs "],"EPSG:7071":["EPSG:7071","+proj=geocent +ellps=GRS80 +units=m +no_defs "],"EPSG:7134":["EPSG:7134","+proj=geocent +ellps=WGS84 +units=m +no_defs "],"EPSG:7137":["EPSG:7137","+proj=geocent +ellps=WGS84 +units=m +no_defs "],"EPSG:7371":["EPSG:7371","+proj=geocent +ellps=GRS80 +units=m +no_defs "],"EPSG:5628":["EPSG:5628","+proj=longlat +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +vunits=m +no_defs "],"EPSG:3901":["EPSG:3901","+proj=tmerc +lat_0=0 +lon_0=27 +k=1 +x_0=3500000 +y_0=0 +ellps=intl +towgs84=-96.062,-82.428,-121.753,4.801,0.345,-1.376,1.496 +units=m +vunits=m +no_defs "],"EPSG:3902":["EPSG:3902","+proj=utm +zone=35 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +vunits=m +no_defs "],"EPSG:3903":["EPSG:3903","+proj=utm +zone=35 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +vunits=m +no_defs "],"EPSG:4097":["EPSG:4097","+proj=tmerc +lat_0=0 +lon_0=9 +k=0.99998 +x_0=200000 +y_0=-5000000 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +vunits=m +no_defs "],"EPSG:4098":["EPSG:4098","+proj=tmerc +lat_0=0 +lon_0=10 +k=0.99998 +x_0=400000 +y_0=-5000000 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +vunits=m +no_defs "],"EPSG:4099":["EPSG:4099","+proj=tmerc +lat_0=0 +lon_0=11.75 +k=0.99998 +x_0=600000 +y_0=-5000000 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +vunits=m +no_defs "],"EPSG:4100":["EPSG:4100","+proj=tmerc +lat_0=0 +lon_0=15 +k=1 +x_0=800000 +y_0=-5000000 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +vunits=m +no_defs "],"EPSG:7404":["EPSG:7404","+proj=longlat +ellps=bessel +towgs84=414.1,41.3,603.1,-0.855,2.141,-7.023,0 +vunits=m +no_defs "],"EPSG:5318":["EPSG:5318","+proj=tmerc +lat_0=0 +lon_0=-7 +k=0.999997 +x_0=200000 +y_0=-6000000 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +vunits=m +no_defs "],"EPSG:5498":["EPSG:5498","+proj=longlat +datum=NAD83 +geoidgrids=g2012a_conus.gtx,g2012a_alaska.gtx,g2012a_guam.gtx,g2012a_hawaii.gtx,g2012a_puertorico.gtx,g2012a_samoa.gtx +vunits=m +no_defs "],"EPSG:5499":["EPSG:5499","+proj=longlat +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +geoidgrids=g2012a_conus.gtx,g2012a_alaska.gtx,g2012a_guam.gtx,g2012a_hawaii.gtx,g2012a_puertorico.gtx,g2012a_samoa.gtx +vunits=m +no_defs "],"EPSG:5500":["EPSG:5500","+proj=longlat +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +geoidgrids=g2012a_conus.gtx,g2012a_alaska.gtx,g2012a_guam.gtx,g2012a_hawaii.gtx,g2012a_puertorico.gtx,g2012a_samoa.gtx +vunits=m +no_defs "],"EPSG:5554":["EPSG:5554","+proj=utm +zone=31 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +vunits=m +no_defs "],"EPSG:5555":["EPSG:5555","+proj=utm +zone=32 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +vunits=m +no_defs "],"EPSG:5556":["EPSG:5556","+proj=utm +zone=33 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +vunits=m +no_defs "],"EPSG:5598":["EPSG:5598","+proj=tmerc +lat_0=0 +lon_0=11.33333333333333 +k=1 +x_0=1000000 +y_0=0 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +vunits=m +no_defs "],"EPSG:5698":["EPSG:5698","+proj=lcc +lat_1=49 +lat_2=44 +lat_0=46.5 +lon_0=3 +x_0=700000 +y_0=6600000 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +vunits=m +no_defs "],"EPSG:5699":["EPSG:5699","+proj=lcc +lat_1=49 +lat_2=44 +lat_0=46.5 +lon_0=3 +x_0=700000 +y_0=6600000 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +vunits=m +no_defs "],"EPSG:5707":["EPSG:5707","+proj=lcc +lat_1=49.50000000000001 +lat_0=49.50000000000001 +lon_0=0 +k_0=0.999877341 +x_0=600000 +y_0=1200000 +a=6378249.2 +b=6356515 +towgs84=-168,-60,320,0,0,0,0 +pm=paris +units=m +vunits=m +no_defs "],"EPSG:5708":["EPSG:5708","+proj=lcc +lat_1=42.16500000000001 +lat_0=42.16500000000001 +lon_0=0 +k_0=0.99994471 +x_0=234.358 +y_0=4185861.369 +a=6378249.2 +b=6356515 +towgs84=-168,-60,320,0,0,0,0 +pm=paris +units=m +vunits=m +no_defs "],"EPSG:5832":["EPSG:5832","+proj=tmerc +lat_0=0 +lon_0=6 +k=1 +x_0=2500000 +y_0=0 +ellps=bessel +units=m +vunits=m +no_defs "],"EPSG:5833":["EPSG:5833","+proj=tmerc +lat_0=0 +lon_0=9 +k=1 +x_0=3500000 +y_0=0 +ellps=bessel +units=m +vunits=m +no_defs "],"EPSG:5834":["EPSG:5834","+proj=tmerc +lat_0=0 +lon_0=12 +k=1 +x_0=4500000 +y_0=0 +ellps=bessel +units=m +vunits=m +no_defs "],"EPSG:5835":["EPSG:5835","+proj=tmerc +lat_0=0 +lon_0=15 +k=1 +x_0=5500000 +y_0=0 +ellps=bessel +units=m +vunits=m +no_defs "],"EPSG:5845":["EPSG:5845","+proj=utm +zone=33 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +vunits=m +no_defs "],"EPSG:5846":["EPSG:5846","+proj=tmerc +lat_0=0 +lon_0=12 +k=1 +x_0=150000 +y_0=0 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +vunits=m +no_defs "],"EPSG:5847":["EPSG:5847","+proj=tmerc +lat_0=0 +lon_0=13.5 +k=1 +x_0=150000 +y_0=0 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +vunits=m +no_defs "],"EPSG:5848":["EPSG:5848","+proj=tmerc +lat_0=0 +lon_0=15 +k=1 +x_0=150000 +y_0=0 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +vunits=m +no_defs "],"EPSG:5849":["EPSG:5849","+proj=tmerc +lat_0=0 +lon_0=16.5 +k=1 +x_0=150000 +y_0=0 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +vunits=m +no_defs "],"EPSG:5850":["EPSG:5850","+proj=tmerc +lat_0=0 +lon_0=18 +k=1 +x_0=150000 +y_0=0 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +vunits=m +no_defs "],"EPSG:5851":["EPSG:5851","+proj=tmerc +lat_0=0 +lon_0=14.25 +k=1 +x_0=150000 +y_0=0 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +vunits=m +no_defs "],"EPSG:5852":["EPSG:5852","+proj=tmerc +lat_0=0 +lon_0=15.75 +k=1 +x_0=150000 +y_0=0 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +vunits=m +no_defs "],"EPSG:5853":["EPSG:5853","+proj=tmerc +lat_0=0 +lon_0=17.25 +k=1 +x_0=150000 +y_0=0 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +vunits=m +no_defs "],"EPSG:5854":["EPSG:5854","+proj=tmerc +lat_0=0 +lon_0=18.75 +k=1 +x_0=150000 +y_0=0 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +vunits=m +no_defs "],"EPSG:5855":["EPSG:5855","+proj=tmerc +lat_0=0 +lon_0=20.25 +k=1 +x_0=150000 +y_0=0 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +vunits=m +no_defs "],"EPSG:5856":["EPSG:5856","+proj=tmerc +lat_0=0 +lon_0=21.75 +k=1 +x_0=150000 +y_0=0 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +vunits=m +no_defs "],"EPSG:5857":["EPSG:5857","+proj=tmerc +lat_0=0 +lon_0=23.25 +k=1 +x_0=150000 +y_0=0 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +vunits=m +no_defs "],"EPSG:5942":["EPSG:5942","+proj=longlat +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +vunits=m +no_defs "],"EPSG:5945":["EPSG:5945","+proj=tmerc +lat_0=58 +lon_0=5.5 +k=1 +x_0=100000 +y_0=1000000 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +vunits=m +no_defs "],"EPSG:5946":["EPSG:5946","+proj=tmerc +lat_0=58 +lon_0=6.5 +k=1 +x_0=100000 +y_0=1000000 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +vunits=m +no_defs "],"EPSG:5947":["EPSG:5947","+proj=tmerc +lat_0=58 +lon_0=7.5 +k=1 +x_0=100000 +y_0=1000000 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +vunits=m +no_defs "],"EPSG:5948":["EPSG:5948","+proj=tmerc +lat_0=58 +lon_0=8.5 +k=1 +x_0=100000 +y_0=1000000 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +vunits=m +no_defs "],"EPSG:5949":["EPSG:5949","+proj=tmerc +lat_0=58 +lon_0=9.5 +k=1 +x_0=100000 +y_0=1000000 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +vunits=m +no_defs "],"EPSG:5950":["EPSG:5950","+proj=tmerc +lat_0=58 +lon_0=10.5 +k=1 +x_0=100000 +y_0=1000000 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +vunits=m +no_defs "],"EPSG:5951":["EPSG:5951","+proj=tmerc +lat_0=58 +lon_0=11.5 +k=1 +x_0=100000 +y_0=1000000 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +vunits=m +no_defs "],"EPSG:5952":["EPSG:5952","+proj=tmerc +lat_0=58 +lon_0=12.5 +k=1 +x_0=100000 +y_0=1000000 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +vunits=m +no_defs "],"EPSG:5953":["EPSG:5953","+proj=tmerc +lat_0=58 +lon_0=13.5 +k=1 +x_0=100000 +y_0=1000000 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +vunits=m +no_defs "],"EPSG:5954":["EPSG:5954","+proj=tmerc +lat_0=58 +lon_0=14.5 +k=1 +x_0=100000 +y_0=1000000 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +vunits=m +no_defs "],"EPSG:5955":["EPSG:5955","+proj=tmerc +lat_0=58 +lon_0=15.5 +k=1 +x_0=100000 +y_0=1000000 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +vunits=m +no_defs "],"EPSG:5956":["EPSG:5956","+proj=tmerc +lat_0=58 +lon_0=16.5 +k=1 +x_0=100000 +y_0=1000000 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +vunits=m +no_defs "],"EPSG:5957":["EPSG:5957","+proj=tmerc +lat_0=58 +lon_0=17.5 +k=1 +x_0=100000 +y_0=1000000 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +vunits=m +no_defs "],"EPSG:5958":["EPSG:5958","+proj=tmerc +lat_0=58 +lon_0=18.5 +k=1 +x_0=100000 +y_0=1000000 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +vunits=m +no_defs "],"EPSG:5959":["EPSG:5959","+proj=tmerc +lat_0=58 +lon_0=19.5 +k=1 +x_0=100000 +y_0=1000000 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +vunits=m +no_defs "],"EPSG:5960":["EPSG:5960","+proj=tmerc +lat_0=58 +lon_0=20.5 +k=1 +x_0=100000 +y_0=1000000 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +vunits=m +no_defs "],"EPSG:5961":["EPSG:5961","+proj=tmerc +lat_0=58 +lon_0=21.5 +k=1 +x_0=100000 +y_0=1000000 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +vunits=m +no_defs "],"EPSG:5962":["EPSG:5962","+proj=tmerc +lat_0=58 +lon_0=22.5 +k=1 +x_0=100000 +y_0=1000000 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +vunits=m +no_defs "],"EPSG:5963":["EPSG:5963","+proj=tmerc +lat_0=58 +lon_0=23.5 +k=1 +x_0=100000 +y_0=1000000 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +vunits=m +no_defs "],"EPSG:5964":["EPSG:5964","+proj=tmerc +lat_0=58 +lon_0=24.5 +k=1 +x_0=100000 +y_0=1000000 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +vunits=m +no_defs "],"EPSG:5965":["EPSG:5965","+proj=tmerc +lat_0=58 +lon_0=25.5 +k=1 +x_0=100000 +y_0=1000000 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +vunits=m +no_defs "],"EPSG:5966":["EPSG:5966","+proj=tmerc +lat_0=58 +lon_0=26.5 +k=1 +x_0=100000 +y_0=1000000 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +vunits=m +no_defs "],"EPSG:5967":["EPSG:5967","+proj=tmerc +lat_0=58 +lon_0=27.5 +k=1 +x_0=100000 +y_0=1000000 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +vunits=m +no_defs "],"EPSG:5968":["EPSG:5968","+proj=tmerc +lat_0=58 +lon_0=28.5 +k=1 +x_0=100000 +y_0=1000000 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +vunits=m +no_defs "],"EPSG:5969":["EPSG:5969","+proj=tmerc +lat_0=58 +lon_0=29.5 +k=1 +x_0=100000 +y_0=1000000 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +vunits=m +no_defs "],"EPSG:5970":["EPSG:5970","+proj=tmerc +lat_0=58 +lon_0=30.5 +k=1 +x_0=100000 +y_0=1000000 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +vunits=m +no_defs "],"EPSG:5971":["EPSG:5971","+proj=utm +zone=31 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +vunits=m +no_defs "],"EPSG:5972":["EPSG:5972","+proj=utm +zone=32 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +vunits=m +no_defs "],"EPSG:5973":["EPSG:5973","+proj=utm +zone=33 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +vunits=m +no_defs "],"EPSG:5974":["EPSG:5974","+proj=utm +zone=34 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +vunits=m +no_defs "],"EPSG:5975":["EPSG:5975","+proj=utm +zone=35 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +vunits=m +no_defs "],"EPSG:5976":["EPSG:5976","+proj=utm +zone=36 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +vunits=m +no_defs "],"EPSG:6144":["EPSG:6144","+proj=longlat +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +vunits=m +no_defs "],"EPSG:6145":["EPSG:6145","+proj=tmerc +lat_0=58 +lon_0=5.5 +k=1 +x_0=100000 +y_0=1000000 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +vunits=m +no_defs "],"EPSG:6146":["EPSG:6146","+proj=tmerc +lat_0=58 +lon_0=6.5 +k=1 +x_0=100000 +y_0=1000000 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +vunits=m +no_defs "],"EPSG:6147":["EPSG:6147","+proj=tmerc +lat_0=58 +lon_0=7.5 +k=1 +x_0=100000 +y_0=1000000 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +vunits=m +no_defs "],"EPSG:6148":["EPSG:6148","+proj=tmerc +lat_0=58 +lon_0=8.5 +k=1 +x_0=100000 +y_0=1000000 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +vunits=m +no_defs "],"EPSG:6149":["EPSG:6149","+proj=tmerc +lat_0=58 +lon_0=9.5 +k=1 +x_0=100000 +y_0=1000000 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +vunits=m +no_defs "],"EPSG:6150":["EPSG:6150","+proj=tmerc +lat_0=58 +lon_0=10.5 +k=1 +x_0=100000 +y_0=1000000 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +vunits=m +no_defs "],"EPSG:6151":["EPSG:6151","+proj=tmerc +lat_0=58 +lon_0=11.5 +k=1 +x_0=100000 +y_0=1000000 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +vunits=m +no_defs "],"EPSG:6152":["EPSG:6152","+proj=tmerc +lat_0=58 +lon_0=12.5 +k=1 +x_0=100000 +y_0=1000000 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +vunits=m +no_defs "],"EPSG:6153":["EPSG:6153","+proj=tmerc +lat_0=58 +lon_0=13.5 +k=1 +x_0=100000 +y_0=1000000 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +vunits=m +no_defs "],"EPSG:6154":["EPSG:6154","+proj=tmerc +lat_0=58 +lon_0=14.5 +k=1 +x_0=100000 +y_0=1000000 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +vunits=m +no_defs "],"EPSG:6155":["EPSG:6155","+proj=tmerc +lat_0=58 +lon_0=15.5 +k=1 +x_0=100000 +y_0=1000000 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +vunits=m +no_defs "],"EPSG:6156":["EPSG:6156","+proj=tmerc +lat_0=58 +lon_0=16.5 +k=1 +x_0=100000 +y_0=1000000 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +vunits=m +no_defs "],"EPSG:6157":["EPSG:6157","+proj=tmerc +lat_0=58 +lon_0=17.5 +k=1 +x_0=100000 +y_0=1000000 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +vunits=m +no_defs "],"EPSG:6158":["EPSG:6158","+proj=tmerc +lat_0=58 +lon_0=18.5 +k=1 +x_0=100000 +y_0=1000000 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +vunits=m +no_defs "],"EPSG:6159":["EPSG:6159","+proj=tmerc +lat_0=58 +lon_0=19.5 +k=1 +x_0=100000 +y_0=1000000 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +vunits=m +no_defs "],"EPSG:6160":["EPSG:6160","+proj=tmerc +lat_0=58 +lon_0=20.5 +k=1 +x_0=100000 +y_0=1000000 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +vunits=m +no_defs "],"EPSG:6161":["EPSG:6161","+proj=tmerc +lat_0=58 +lon_0=21.5 +k=1 +x_0=100000 +y_0=1000000 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +vunits=m +no_defs "],"EPSG:6162":["EPSG:6162","+proj=tmerc +lat_0=58 +lon_0=22.5 +k=1 +x_0=100000 +y_0=1000000 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +vunits=m +no_defs "],"EPSG:6163":["EPSG:6163","+proj=tmerc +lat_0=58 +lon_0=23.5 +k=1 +x_0=100000 +y_0=1000000 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +vunits=m +no_defs "],"EPSG:6164":["EPSG:6164","+proj=tmerc +lat_0=58 +lon_0=24.5 +k=1 +x_0=100000 +y_0=1000000 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +vunits=m +no_defs "],"EPSG:6165":["EPSG:6165","+proj=tmerc +lat_0=58 +lon_0=25.5 +k=1 +x_0=100000 +y_0=1000000 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +vunits=m +no_defs "],"EPSG:6166":["EPSG:6166","+proj=tmerc +lat_0=58 +lon_0=26.5 +k=1 +x_0=100000 +y_0=1000000 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +vunits=m +no_defs "],"EPSG:6167":["EPSG:6167","+proj=tmerc +lat_0=58 +lon_0=27.5 +k=1 +x_0=100000 +y_0=1000000 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +vunits=m +no_defs "],"EPSG:6168":["EPSG:6168","+proj=tmerc +lat_0=58 +lon_0=28.5 +k=1 +x_0=100000 +y_0=1000000 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +vunits=m +no_defs "],"EPSG:6169":["EPSG:6169","+proj=tmerc +lat_0=58 +lon_0=29.5 +k=1 +x_0=100000 +y_0=1000000 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +vunits=m +no_defs "],"EPSG:6170":["EPSG:6170","+proj=tmerc +lat_0=58 +lon_0=30.5 +k=1 +x_0=100000 +y_0=1000000 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +vunits=m +no_defs "],"EPSG:6171":["EPSG:6171","+proj=utm +zone=31 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +vunits=m +no_defs "],"EPSG:6172":["EPSG:6172","+proj=utm +zone=32 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +vunits=m +no_defs "],"EPSG:6173":["EPSG:6173","+proj=utm +zone=33 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +vunits=m +no_defs "],"EPSG:6174":["EPSG:6174","+proj=utm +zone=34 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +vunits=m +no_defs "],"EPSG:6175":["EPSG:6175","+proj=utm +zone=35 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +vunits=m +no_defs "],"EPSG:6176":["EPSG:6176","+proj=utm +zone=36 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +vunits=m +no_defs "],"EPSG:6190":["EPSG:6190","+proj=lcc +lat_1=51.16666723333333 +lat_2=49.8333339 +lat_0=90 +lon_0=4.367486666666666 +x_0=150000.013 +y_0=5400088.438 +ellps=intl +towgs84=-106.8686,52.2978,-103.7239,0.3366,-0.457,1.8422,-1.2747 +units=m +vunits=m +no_defs "],"EPSG:6349":["EPSG:6349","+proj=longlat +ellps=GRS80 +geoidgrids=g2012a_conus.gtx,g2012a_alaska.gtx,g2012a_guam.gtx,g2012a_hawaii.gtx,g2012a_puertorico.gtx,g2012a_samoa.gtx +vunits=m +no_defs "],"EPSG:6649":["EPSG:6649","+proj=longlat +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +vunits=m +no_defs "],"EPSG:6650":["EPSG:6650","+proj=utm +zone=7 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +vunits=m +no_defs "],"EPSG:6651":["EPSG:6651","+proj=utm +zone=8 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +vunits=m +no_defs "],"EPSG:6652":["EPSG:6652","+proj=utm +zone=9 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +vunits=m +no_defs "],"EPSG:6653":["EPSG:6653","+proj=utm +zone=10 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +vunits=m +no_defs "],"EPSG:6654":["EPSG:6654","+proj=utm +zone=11 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +vunits=m +no_defs "],"EPSG:6655":["EPSG:6655","+proj=utm +zone=12 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +vunits=m +no_defs "],"EPSG:6656":["EPSG:6656","+proj=utm +zone=13 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +vunits=m +no_defs "],"EPSG:6657":["EPSG:6657","+proj=utm +zone=14 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +vunits=m +no_defs "],"EPSG:6658":["EPSG:6658","+proj=utm +zone=15 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +vunits=m +no_defs "],"EPSG:6659":["EPSG:6659","+proj=utm +zone=16 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +vunits=m +no_defs "],"EPSG:6660":["EPSG:6660","+proj=utm +zone=17 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +vunits=m +no_defs "],"EPSG:6661":["EPSG:6661","+proj=utm +zone=18 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +vunits=m +no_defs "],"EPSG:6662":["EPSG:6662","+proj=utm +zone=19 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +vunits=m +no_defs "],"EPSG:6663":["EPSG:6663","+proj=utm +zone=20 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +vunits=m +no_defs "],"EPSG:6664":["EPSG:6664","+proj=utm +zone=21 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +vunits=m +no_defs "],"EPSG:6665":["EPSG:6665","+proj=utm +zone=22 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +vunits=m +no_defs "],"EPSG:6696":["EPSG:6696","+proj=longlat +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +vunits=m +no_defs "],"EPSG:6697":["EPSG:6697","+proj=longlat +ellps=GRS80 +vunits=m +no_defs "],"EPSG:6700":["EPSG:6700","+proj=longlat +ellps=bessel +towgs84=-146.414,507.337,680.507,0,0,0,0 +vunits=m +no_defs "],"EPSG:6871":["EPSG:6871","+proj=merc +lon_0=0 +k=1 +x_0=0 +y_0=0 +datum=WGS84 +units=m +geoidgrids=egm08_25.gtx +vunits=m +no_defs "],"EPSG:6893":["EPSG:6893","+proj=merc +lon_0=0 +k=1 +x_0=0 +y_0=0 +datum=WGS84 +units=m +geoidgrids=egm08_25.gtx +vunits=m +no_defs "],"EPSG:6917":["EPSG:6917","+proj=longlat +ellps=WGS84 +vunits=m +no_defs "],"EPSG:6927":["EPSG:6927","+proj=tmerc +lat_0=1.366666666666667 +lon_0=103.8333333333333 +k=1 +x_0=28001.642 +y_0=38744.572 +ellps=WGS84 +units=m +vunits=m +no_defs "],"EPSG:7400":["EPSG:7400","+proj=longlat +a=6378249.2 +b=6356515 +towgs84=-168,-60,320,0,0,0,0 +pm=paris +vunits=m +no_defs "],"EPSG:7401":["EPSG:7401","+proj=lcc +lat_1=46.8 +lat_0=46.8 +lon_0=0 +k_0=0.99987742 +x_0=600000 +y_0=2200000 +a=6378249.2 +b=6356515 +towgs84=-168,-60,320,0,0,0,0 +pm=paris +units=m +vunits=m +no_defs "],"EPSG:7402":["EPSG:7402","+proj=lcc +lat_1=46.8 +lat_0=46.8 +lon_0=0 +k_0=0.99987742 +x_0=600000 +y_0=2200000 +a=6378249.2 +b=6356515 +towgs84=-168,-60,320,0,0,0,0 +pm=paris +units=m +vunits=m +no_defs "],"EPSG:7403":["EPSG:7403","+proj=lcc +lat_1=44.10000000000001 +lat_0=44.10000000000001 +lon_0=0 +k_0=0.999877499 +x_0=600000 +y_0=3200000 +a=6378249.2 +b=6356515 +towgs84=-168,-60,320,0,0,0,0 +pm=paris +units=m +vunits=m +no_defs "],"EPSG:7406":["EPSG:7406","+proj=longlat +datum=NAD27 +vunits=us-ft +no_defs "],"EPSG:7407":["EPSG:7407","+proj=lcc +lat_1=34.65 +lat_2=36.18333333333333 +lat_0=34 +lon_0=-101.5 +x_0=609601.2192024384 +y_0=0 +datum=NAD27 +units=us-ft +vunits=us-ft +no_defs "],"EPSG:7409":["EPSG:7409","+proj=longlat +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +vunits=m +no_defs "],"EPSG:7410":["EPSG:7410","+proj=longlat +ellps=clrk80 +towgs84=-180.624,-225.516,173.919,-0.81,-1.898,8.336,16.71006 +vunits=m +no_defs "],"EPSG:7411":["EPSG:7411","+proj=lcc +lat_1=46.8 +lat_0=46.8 +lon_0=0 +k_0=0.99987742 +x_0=600000 +y_0=2200000 +a=6378249.2 +b=6356515 +towgs84=-168,-60,320,0,0,0,0 +pm=paris +units=m +vunits=m +no_defs "],"EPSG:7412":["EPSG:7412","+proj=lcc +lat_1=46.8 +lat_0=46.8 +lon_0=0 +k_0=0.99987742 +x_0=600000 +y_0=2200000 +a=6378249.2 +b=6356515 +towgs84=-168,-60,320,0,0,0,0 +pm=paris +units=m +vunits=m +no_defs "],"EPSG:7413":["EPSG:7413","+proj=lcc +lat_1=44.10000000000001 +lat_0=44.10000000000001 +lon_0=0 +k_0=0.999877499 +x_0=600000 +y_0=3200000 +a=6378249.2 +b=6356515 +towgs84=-168,-60,320,0,0,0,0 +pm=paris +units=m +vunits=m +no_defs "],"EPSG:7414":["EPSG:7414","+proj=longlat +ellps=bessel +towgs84=-146.414,507.337,680.507,0,0,0,0 +vunits=m +no_defs "],"EPSG:7417":["EPSG:7417","+proj=utm +zone=33 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +vunits=m +no_defs "],"EPSG:7418":["EPSG:7418","+proj=tmerc +lat_0=0 +lon_0=9.5 +k=0.99995 +x_0=200000 +y_0=0 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +vunits=m +no_defs "],"EPSG:7419":["EPSG:7419","+proj=tmerc +lat_0=0 +lon_0=12 +k=0.99995 +x_0=500000 +y_0=0 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +vunits=m +no_defs "],"EPSG:7420":["EPSG:7420","+proj=tmerc +lat_0=0 +lon_0=15 +k=1 +x_0=900000 +y_0=0 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +vunits=m +no_defs "],"EPSG:7421":["EPSG:7421","+proj=lcc +lat_1=46.8 +lat_0=46.8 +lon_0=0 +k_0=0.99987742 +x_0=600000 +y_0=2200000 +a=6378249.2 +b=6356515 +towgs84=-168,-60,320,0,0,0,0 +pm=paris +units=m +vunits=m +no_defs "],"EPSG:7422":["EPSG:7422","+proj=lcc +lat_1=44.10000000000001 +lat_0=44.10000000000001 +lon_0=0 +k_0=0.999877499 +x_0=600000 +y_0=3200000 +a=6378249.2 +b=6356515 +towgs84=-168,-60,320,0,0,0,0 +pm=paris +units=m +vunits=m +no_defs "],"EPSG:7423":["EPSG:7423","+proj=longlat +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +vunits=m +no_defs "],"EPSG:3819":["EPSG:3819","+proj=longlat +ellps=bessel +towgs84=595.48,121.69,515.35,4.115,-2.9383,0.853,-3.408 +no_defs "],"EPSG:3889":["EPSG:3889","+proj=longlat +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +no_defs "],"EPSG:3906":["EPSG:3906","+proj=longlat +ellps=bessel +towgs84=682,-203,480,0,0,0,0 +no_defs "],"EPSG:4002":["EPSG:4002","+proj=longlat +ellps=mod_airy +no_defs "],"EPSG:4003":["EPSG:4003","+proj=longlat +ellps=aust_SA +no_defs "],"EPSG:4006":["EPSG:4006","+proj=longlat +ellps=bess_nam +no_defs "],"EPSG:4007":["EPSG:4007","+proj=longlat +a=6378293.645208759 +b=6356617.987679838 +no_defs "],"EPSG:4008":["EPSG:4008","+proj=longlat +ellps=clrk66 +no_defs "],"EPSG:4009":["EPSG:4009","+proj=longlat +a=6378450.047548896 +b=6356826.621488444 +no_defs "],"EPSG:4010":["EPSG:4010","+proj=longlat +a=6378300.789 +b=6356566.435 +no_defs "],"EPSG:4011":["EPSG:4011","+proj=longlat +a=6378249.2 +b=6356515 +no_defs "],"EPSG:4012":["EPSG:4012","+proj=longlat +ellps=clrk80 +no_defs "],"EPSG:4013":["EPSG:4013","+proj=longlat +a=6378249.145 +b=6356514.966398753 +no_defs "],"EPSG:4014":["EPSG:4014","+proj=longlat +a=6378249.2 +b=6356514.996941779 +no_defs "],"EPSG:4016":["EPSG:4016","+proj=longlat +ellps=evrstSS +no_defs "],"EPSG:4018":["EPSG:4018","+proj=longlat +a=6377304.063 +b=6356103.038993155 +no_defs "],"EPSG:4019":["EPSG:4019","+proj=longlat +ellps=GRS80 +no_defs "],"EPSG:4020":["EPSG:4020","+proj=longlat +ellps=helmert +no_defs "],"EPSG:4021":["EPSG:4021","+proj=longlat +a=6378160 +b=6356774.50408554 +no_defs "],"EPSG:4022":["EPSG:4022","+proj=longlat +ellps=intl +no_defs "],"EPSG:4023":["EPSG:4023","+proj=longlat +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +no_defs "],"EPSG:4028":["EPSG:4028","+proj=longlat +a=6378298.3 +b=6356657.142669561 +no_defs "],"EPSG:4029":["EPSG:4029","+proj=longlat +a=6378300 +b=6356751.689189189 +no_defs "],"EPSG:4030":["EPSG:4030","+proj=longlat +ellps=WGS84 +no_defs "],"EPSG:4031":["EPSG:4031","+proj=longlat +ellps=WGS84 +no_defs "],"EPSG:4032":["EPSG:4032","+proj=longlat +a=6378136.2 +b=6356751.516927429 +no_defs "],"EPSG:4033":["EPSG:4033","+proj=longlat +a=6378136.3 +b=6356751.616592146 +no_defs "],"EPSG:4034":["EPSG:4034","+proj=longlat +a=6378249.144808011 +b=6356514.966204134 +no_defs "],"EPSG:4035":["EPSG:4035","+proj=longlat +a=6371000 +b=6371000 +no_defs "],"EPSG:4036":["EPSG:4036","+proj=longlat +ellps=GRS67 +no_defs "],"EPSG:4041":["EPSG:4041","+proj=longlat +a=6378135 +b=6356750.304921594 +no_defs "],"EPSG:4042":["EPSG:4042","+proj=longlat +a=6377299.36559538 +b=6356098.359005156 +no_defs "],"EPSG:4043":["EPSG:4043","+proj=longlat +ellps=WGS72 +no_defs "],"EPSG:4044":["EPSG:4044","+proj=longlat +a=6377301.243 +b=6356100.230165384 +no_defs "],"EPSG:4045":["EPSG:4045","+proj=longlat +a=6377299.151 +b=6356098.145120132 +no_defs "],"EPSG:4046":["EPSG:4046","+proj=longlat +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +no_defs "],"EPSG:4047":["EPSG:4047","+proj=longlat +a=6371007 +b=6371007 +no_defs "],"EPSG:4053":["EPSG:4053","+proj=longlat +a=6371228 +b=6371228 +no_defs "],"EPSG:4054":["EPSG:4054","+proj=longlat +a=6378273 +b=6356889.449 +no_defs "],"EPSG:4075":["EPSG:4075","+proj=longlat +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +no_defs "],"EPSG:4081":["EPSG:4081","+proj=longlat +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +no_defs "],"EPSG:4120":["EPSG:4120","+proj=longlat +ellps=bessel +no_defs "],"EPSG:4122":["EPSG:4122","+proj=longlat +a=6378135 +b=6356750.304921594 +no_defs "],"EPSG:4123":["EPSG:4123","+proj=longlat +ellps=intl +towgs84=-96.062,-82.428,-121.753,4.801,0.345,-1.376,1.496 +no_defs "],"EPSG:4124":["EPSG:4124","+proj=longlat +ellps=bessel +towgs84=414.1,41.3,603.1,-0.855,2.141,-7.023,0 +no_defs "],"EPSG:4125":["EPSG:4125","+proj=longlat +ellps=bessel +towgs84=-404.78,685.68,45.47,0,0,0,0 +no_defs "],"EPSG:4126":["EPSG:4126","+proj=longlat +ellps=GRS80 +no_defs "],"EPSG:4127":["EPSG:4127","+proj=longlat +ellps=clrk66 +towgs84=-80,-100,-228,0,0,0,0 +no_defs "],"EPSG:4129":["EPSG:4129","+proj=longlat +ellps=clrk66 +towgs84=-132,-110,-335,0,0,0,0 +no_defs "],"EPSG:4130":["EPSG:4130","+proj=longlat +ellps=WGS84 +towgs84=0,0,0,0,0,0,0 +no_defs "],"EPSG:4131":["EPSG:4131","+proj=longlat +a=6377276.345 +b=6356075.41314024 +towgs84=198,881,317,0,0,0,0 +no_defs "],"EPSG:4132":["EPSG:4132","+proj=longlat +ellps=clrk80 +towgs84=-241.54,-163.64,396.06,0,0,0,0 +no_defs "],"EPSG:4133":["EPSG:4133","+proj=longlat +ellps=GRS80 +towgs84=0.055,-0.541,-0.185,0.0183,-0.0003,-0.007,-0.014 +no_defs "],"EPSG:4134":["EPSG:4134","+proj=longlat +ellps=clrk80 +towgs84=-180.624,-225.516,173.919,-0.81,-1.898,8.336,16.71006 +no_defs "],"EPSG:4135":["EPSG:4135","+proj=longlat +ellps=clrk66 +towgs84=61,-285,-181,0,0,0,0 +no_defs "],"EPSG:4136":["EPSG:4136","+proj=longlat +ellps=clrk66 +no_defs "],"EPSG:4137":["EPSG:4137","+proj=longlat +ellps=clrk66 +no_defs "],"EPSG:4138":["EPSG:4138","+proj=longlat +ellps=clrk66 +no_defs "],"EPSG:4139":["EPSG:4139","+proj=longlat +ellps=clrk66 +towgs84=11,72,-101,0,0,0,0 +no_defs "],"EPSG:4140":["EPSG:4140","+proj=longlat +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +no_defs "],"EPSG:4141":["EPSG:4141","+proj=longlat +ellps=GRS80 +towgs84=-48,55,52,0,0,0,0 +no_defs "],"EPSG:4142":["EPSG:4142","+proj=longlat +ellps=clrk80 +towgs84=-125,53,467,0,0,0,0 +no_defs "],"EPSG:4143":["EPSG:4143","+proj=longlat +ellps=clrk80 +towgs84=-124.76,53,466.79,0,0,0,0 +no_defs "],"EPSG:4144":["EPSG:4144","+proj=longlat +a=6377276.345 +b=6356075.41314024 +towgs84=214,804,268,0,0,0,0 +no_defs "],"EPSG:4145":["EPSG:4145","+proj=longlat +a=6377301.243 +b=6356100.230165384 +towgs84=283,682,231,0,0,0,0 +no_defs "],"EPSG:4146":["EPSG:4146","+proj=longlat +a=6377299.151 +b=6356098.145120132 +towgs84=295,736,257,0,0,0,0 +no_defs "],"EPSG:4147":["EPSG:4147","+proj=longlat +ellps=krass +towgs84=-17.51,-108.32,-62.39,0,0,0,0 +no_defs "],"EPSG:4150":["EPSG:4150","+proj=longlat +ellps=bessel +towgs84=674.374,15.056,405.346,0,0,0,0 +no_defs "],"EPSG:4151":["EPSG:4151","+proj=longlat +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +no_defs "],"EPSG:4152":["EPSG:4152","+proj=longlat +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +no_defs "],"EPSG:4153":["EPSG:4153","+proj=longlat +ellps=intl +towgs84=-133.63,-157.5,-158.62,0,0,0,0 +no_defs "],"EPSG:4154":["EPSG:4154","+proj=longlat +ellps=intl +towgs84=-117,-132,-164,0,0,0,0 +no_defs "],"EPSG:4155":["EPSG:4155","+proj=longlat +a=6378249.2 +b=6356515 +towgs84=-83,37,124,0,0,0,0 +no_defs "],"EPSG:4157":["EPSG:4157","+proj=longlat +a=6378293.645208759 +b=6356617.987679838 +no_defs "],"EPSG:4158":["EPSG:4158","+proj=longlat +ellps=intl +towgs84=-0.465,372.095,171.736,0,0,0,0 +no_defs "],"EPSG:4159":["EPSG:4159","+proj=longlat +ellps=intl +towgs84=-115.8543,-99.0583,-152.4616,0,0,0,0 +no_defs "],"EPSG:4160":["EPSG:4160","+proj=longlat +ellps=intl +no_defs "],"EPSG:4161":["EPSG:4161","+proj=longlat +ellps=intl +towgs84=27.5,14,186.4,0,0,0,0 +no_defs "],"EPSG:4163":["EPSG:4163","+proj=longlat +ellps=WGS84 +towgs84=0,0,0,0,0,0,0 +no_defs "],"EPSG:4164":["EPSG:4164","+proj=longlat +ellps=krass +towgs84=-76,-138,67,0,0,0,0 +no_defs "],"EPSG:4165":["EPSG:4165","+proj=longlat +ellps=intl +towgs84=-173,253,27,0,0,0,0 +no_defs "],"EPSG:4166":["EPSG:4166","+proj=longlat +ellps=WGS84 +towgs84=0,0,0,0,0,0,0 +no_defs "],"EPSG:4167":["EPSG:4167","+proj=longlat +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +no_defs "],"EPSG:4168":["EPSG:4168","+proj=longlat +a=6378300 +b=6356751.689189189 +towgs84=-199,32,322,0,0,0,0 +no_defs "],"EPSG:4169":["EPSG:4169","+proj=longlat +ellps=clrk66 +towgs84=-115,118,426,0,0,0,0 +no_defs "],"EPSG:4170":["EPSG:4170","+proj=longlat +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +no_defs "],"EPSG:4172":["EPSG:4172","+proj=longlat +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +no_defs "],"EPSG:4173":["EPSG:4173","+proj=longlat +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +no_defs "],"EPSG:4174":["EPSG:4174","+proj=longlat +a=6378300 +b=6356751.689189189 +no_defs "],"EPSG:4175":["EPSG:4175","+proj=longlat +ellps=clrk80 +towgs84=-88,4,101,0,0,0,0 +no_defs "],"EPSG:4176":["EPSG:4176","+proj=longlat +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +no_defs "],"EPSG:4178":["EPSG:4178","+proj=longlat +ellps=krass +towgs84=26,-121,-78,0,0,0,0 +no_defs "],"EPSG:4179":["EPSG:4179","+proj=longlat +ellps=krass +towgs84=2.3287,-147.0425,-92.0802,-0.3092483,0.32482185,0.49729934,5.68906266 +no_defs "],"EPSG:4182":["EPSG:4182","+proj=longlat +ellps=intl +towgs84=-425,-169,81,0,0,0,0 +no_defs "],"EPSG:4183":["EPSG:4183","+proj=longlat +ellps=intl +towgs84=-104,167,-38,0,0,0,0 +no_defs "],"EPSG:4184":["EPSG:4184","+proj=longlat +ellps=intl +towgs84=-203,141,53,0,0,0,0 +no_defs "],"EPSG:4185":["EPSG:4185","+proj=longlat +ellps=intl +no_defs "],"EPSG:4188":["EPSG:4188","+proj=longlat +ellps=airy +towgs84=482.5,-130.6,564.6,-1.042,-0.214,-0.631,8.15 +no_defs "],"EPSG:4190":["EPSG:4190","+proj=longlat +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +no_defs "],"EPSG:4191":["EPSG:4191","+proj=longlat +ellps=krass +towgs84=-44.183,-0.58,-38.489,-2.3867,-2.7072,3.5196,-8.2703 +no_defs "],"EPSG:4192":["EPSG:4192","+proj=longlat +ellps=intl +towgs84=-206.1,-174.7,-87.7,0,0,0,0 +no_defs "],"EPSG:4193":["EPSG:4193","+proj=longlat +a=6378249.2 +b=6356515 +towgs84=-70.9,-151.8,-41.4,0,0,0,0 +no_defs "],"EPSG:4194":["EPSG:4194","+proj=longlat +ellps=intl +towgs84=164,138,-189,0,0,0,0 +no_defs "],"EPSG:4195":["EPSG:4195","+proj=longlat +ellps=intl +towgs84=105,326,-102.5,0,0,0.814,-0.6 +no_defs "],"EPSG:4196":["EPSG:4196","+proj=longlat +ellps=intl +towgs84=-45,417,-3.5,0,0,0.814,-0.6 +no_defs "],"EPSG:4198":["EPSG:4198","+proj=longlat +ellps=clrk80 +no_defs "],"EPSG:4199":["EPSG:4199","+proj=longlat +ellps=intl +no_defs "],"EPSG:4200":["EPSG:4200","+proj=longlat +ellps=krass +towgs84=24.47,-130.89,-81.56,0,0,0.13,-0.22 +no_defs "],"EPSG:4201":["EPSG:4201","+proj=longlat +ellps=clrk80 +towgs84=-166,-15,204,0,0,0,0 +no_defs "],"EPSG:4202":["EPSG:4202","+proj=longlat +ellps=aust_SA +towgs84=-117.808,-51.536,137.784,0.303,0.446,0.234,-0.29 +no_defs "],"EPSG:4204":["EPSG:4204","+proj=longlat +ellps=intl +towgs84=-143,-236,7,0,0,0,0 +no_defs "],"EPSG:4205":["EPSG:4205","+proj=longlat +ellps=krass +towgs84=-43,-163,45,0,0,0,0 +no_defs "],"EPSG:4206":["EPSG:4206","+proj=longlat +a=6378249.2 +b=6356515 +no_defs "],"EPSG:4208":["EPSG:4208","+proj=longlat +ellps=intl +towgs84=-151.99,287.04,-147.45,0,0,0,0 +no_defs "],"EPSG:4211":["EPSG:4211","+proj=longlat +ellps=bessel +towgs84=-377,681,-50,0,0,0,0 +no_defs "],"EPSG:4212":["EPSG:4212","+proj=longlat +ellps=clrk80 +towgs84=31.95,300.99,419.19,0,0,0,0 +no_defs "],"EPSG:4213":["EPSG:4213","+proj=longlat +a=6378249.2 +b=6356515 +towgs84=-106,-87,188,0,0,0,0 +no_defs "],"EPSG:4215":["EPSG:4215","+proj=longlat +ellps=intl +no_defs "],"EPSG:4216":["EPSG:4216","+proj=longlat +ellps=clrk66 +towgs84=-73,213,296,0,0,0,0 +no_defs "],"EPSG:4218":["EPSG:4218","+proj=longlat +ellps=intl +towgs84=307,304,-318,0,0,0,0 +no_defs "],"EPSG:4219":["EPSG:4219","+proj=longlat +ellps=bessel +towgs84=-384,664,-48,0,0,0,0 +no_defs "],"EPSG:4220":["EPSG:4220","+proj=longlat +ellps=clrk80 +towgs84=-50.9,-347.6,-231,0,0,0,0 +no_defs "],"EPSG:4221":["EPSG:4221","+proj=longlat +ellps=intl +towgs84=-148,136,90,0,0,0,0 +no_defs "],"EPSG:4222":["EPSG:4222","+proj=longlat +a=6378249.145 +b=6356514.966398753 +towgs84=-136,-108,-292,0,0,0,0 +no_defs "],"EPSG:4223":["EPSG:4223","+proj=longlat +datum=carthage +no_defs "],"EPSG:4224":["EPSG:4224","+proj=longlat +ellps=intl +towgs84=-143.87,243.37,-33.52,0,0,0,0 +no_defs "],"EPSG:4226":["EPSG:4226","+proj=longlat +a=6378249.2 +b=6356515 +no_defs "],"EPSG:4227":["EPSG:4227","+proj=longlat +a=6378249.2 +b=6356515 +towgs84=-190.421,8.532,238.69,0,0,0,0 +no_defs "],"EPSG:4228":["EPSG:4228","+proj=longlat +a=6378249.2 +b=6356515 +no_defs "],"EPSG:4232":["EPSG:4232","+proj=longlat +ellps=clrk80 +towgs84=-333.102,-11.02,230.69,0,0,0.554,0.219 +no_defs "],"EPSG:4233":["EPSG:4233","+proj=longlat +ellps=intl +towgs84=-133,-321,50,0,0,0,0 +no_defs "],"EPSG:4234":["EPSG:4234","+proj=longlat +a=6378249.2 +b=6356515 +no_defs "],"EPSG:4235":["EPSG:4235","+proj=longlat +ellps=intl +no_defs "],"EPSG:4236":["EPSG:4236","+proj=longlat +ellps=intl +towgs84=-637,-549,-203,0,0,0,0 +no_defs "],"EPSG:4237":["EPSG:4237","+proj=longlat +ellps=GRS67 +towgs84=52.17,-71.82,-14.9,0,0,0,0 +no_defs "],"EPSG:4238":["EPSG:4238","+proj=longlat +a=6378160 +b=6356774.50408554 +towgs84=-24,-15,5,0,0,0,0 +no_defs "],"EPSG:4239":["EPSG:4239","+proj=longlat +a=6377276.345 +b=6356075.41314024 +towgs84=217,823,299,0,0,0,0 +no_defs "],"EPSG:4240":["EPSG:4240","+proj=longlat +a=6377276.345 +b=6356075.41314024 +towgs84=210,814,289,0,0,0,0 +no_defs "],"EPSG:4241":["EPSG:4241","+proj=longlat +a=6378249.144808011 +b=6356514.966204134 +no_defs "],"EPSG:4242":["EPSG:4242","+proj=longlat +ellps=clrk66 +towgs84=70,207,389.5,0,0,0,0 +no_defs "],"EPSG:4243":["EPSG:4243","+proj=longlat +a=6377299.36559538 +b=6356098.359005156 +no_defs "],"EPSG:4244":["EPSG:4244","+proj=longlat +a=6377276.345 +b=6356075.41314024 +towgs84=-97,787,86,0,0,0,0 +no_defs "],"EPSG:4245":["EPSG:4245","+proj=longlat +a=6377304.063 +b=6356103.038993155 +towgs84=-11,851,5,0,0,0,0 +no_defs "],"EPSG:4246":["EPSG:4246","+proj=longlat +ellps=clrk80 +towgs84=-294.7,-200.1,525.5,0,0,0,0 +no_defs "],"EPSG:4248":["EPSG:4248","+proj=longlat +ellps=intl +towgs84=-288,175,-376,0,0,0,0 +no_defs "],"EPSG:4249":["EPSG:4249","+proj=longlat +ellps=intl +no_defs "],"EPSG:4250":["EPSG:4250","+proj=longlat +ellps=clrk80 +towgs84=-130,29,364,0,0,0,0 +no_defs "],"EPSG:4251":["EPSG:4251","+proj=longlat +ellps=clrk80 +towgs84=-90,40,88,0,0,0,0 +no_defs "],"EPSG:4252":["EPSG:4252","+proj=longlat +a=6378249.2 +b=6356515 +no_defs "],"EPSG:4253":["EPSG:4253","+proj=longlat +ellps=clrk66 +towgs84=-133,-77,-51,0,0,0,0 +no_defs "],"EPSG:4254":["EPSG:4254","+proj=longlat +ellps=intl +towgs84=16,196,93,0,0,0,0 +no_defs "],"EPSG:4255":["EPSG:4255","+proj=longlat +ellps=intl +towgs84=-333,-222,114,0,0,0,0 +no_defs "],"EPSG:4256":["EPSG:4256","+proj=longlat +ellps=clrk80 +towgs84=41,-220,-134,0,0,0,0 +no_defs "],"EPSG:4257":["EPSG:4257","+proj=longlat +ellps=bessel +towgs84=-587.8,519.75,145.76,0,0,0,0 +no_defs "],"EPSG:4259":["EPSG:4259","+proj=longlat +ellps=intl +towgs84=-254.1,-5.36,-100.29,0,0,0,0 +no_defs "],"EPSG:4260":["EPSG:4260","+proj=longlat +ellps=clrk80 +towgs84=-70.9,-151.8,-41.4,0,0,0,0 +no_defs "],"EPSG:4261":["EPSG:4261","+proj=longlat +a=6378249.2 +b=6356515 +towgs84=31,146,47,0,0,0,0 +no_defs "],"EPSG:4262":["EPSG:4262","+proj=longlat +ellps=bessel +towgs84=639,405,60,0,0,0,0 +no_defs "],"EPSG:4263":["EPSG:4263","+proj=longlat +ellps=clrk80 +towgs84=-92,-93,122,0,0,0,0 +no_defs "],"EPSG:4264":["EPSG:4264","+proj=longlat +ellps=intl +towgs84=-252.95,-4.11,-96.38,0,0,0,0 +no_defs "],"EPSG:4266":["EPSG:4266","+proj=longlat +a=6378249.2 +b=6356515 +towgs84=-74,-130,42,0,0,0,0 +no_defs "],"EPSG:4268":["EPSG:4268","+proj=longlat +a=6378450.047548896 +b=6356826.621488444 +no_defs "],"EPSG:4270":["EPSG:4270","+proj=longlat +ellps=clrk80 +towgs84=-249,-156,381,0,0,0,0 +no_defs "],"EPSG:4271":["EPSG:4271","+proj=longlat +ellps=intl +towgs84=-10,375,165,0,0,0,0 +no_defs "],"EPSG:4273":["EPSG:4273","+proj=longlat +a=6377492.018 +b=6356173.508712696 +towgs84=278.3,93,474.5,7.889,0.05,-6.61,6.21 +no_defs "],"EPSG:4275":["EPSG:4275","+proj=longlat +a=6378249.2 +b=6356515 +towgs84=-168,-60,320,0,0,0,0 +no_defs "],"EPSG:4276":["EPSG:4276","+proj=longlat +ellps=WGS66 +no_defs "],"EPSG:4279":["EPSG:4279","+proj=longlat +ellps=airy +no_defs "],"EPSG:4280":["EPSG:4280","+proj=longlat +ellps=bessel +no_defs "],"EPSG:4281":["EPSG:4281","+proj=longlat +a=6378300.789 +b=6356566.435 +towgs84=-275.7224,94.7824,340.8944,-8.001,-4.42,-11.821,1 +no_defs "],"EPSG:4282":["EPSG:4282","+proj=longlat +a=6378249.2 +b=6356515 +towgs84=-148,51,-291,0,0,0,0 +no_defs "],"EPSG:4284":["EPSG:4284","+proj=longlat +ellps=krass +towgs84=23.92,-141.27,-80.9,0,0.35,0.82,-0.12 +no_defs "],"EPSG:4285":["EPSG:4285","+proj=longlat +ellps=intl +towgs84=-128.16,-282.42,21.93,0,0,0,0 +no_defs "],"EPSG:4286":["EPSG:4286","+proj=longlat +ellps=helmert +no_defs "],"EPSG:4287":["EPSG:4287","+proj=longlat +ellps=intl +towgs84=164,138,-189,0,0,0,0 +no_defs "],"EPSG:4288":["EPSG:4288","+proj=longlat +ellps=intl +no_defs "],"EPSG:4291":["EPSG:4291","+proj=longlat +ellps=GRS67 +towgs84=-57,1,-41,0,0,0,0 +no_defs "],"EPSG:4292":["EPSG:4292","+proj=longlat +ellps=intl +towgs84=-355,21,72,0,0,0,0 +no_defs "],"EPSG:4293":["EPSG:4293","+proj=longlat +ellps=bess_nam +towgs84=616,97,-251,0,0,0,0 +no_defs "],"EPSG:4294":["EPSG:4294","+proj=longlat +ellps=bessel +towgs84=-403,684,41,0,0,0,0 +no_defs "],"EPSG:4295":["EPSG:4295","+proj=longlat +ellps=bessel +no_defs "],"EPSG:4296":["EPSG:4296","+proj=longlat +a=6378249.2 +b=6356515 +no_defs "],"EPSG:7041":["EPSG:7041","+proj=longlat +ellps=GRS80 +no_defs "],"EPSG:4297":["EPSG:4297","+proj=longlat +ellps=intl +towgs84=-189,-242,-91,0,0,0,0 +no_defs "],"EPSG:4298":["EPSG:4298","+proj=longlat +ellps=evrstSS +towgs84=-679,669,-48,0,0,0,0 +no_defs "],"EPSG:4299":["EPSG:4299","+proj=longlat +datum=ire65 +no_defs "],"EPSG:4300":["EPSG:4300","+proj=longlat +ellps=mod_airy +towgs84=482.5,-130.6,564.6,-1.042,-0.214,-0.631,8.15 +no_defs "],"EPSG:4301":["EPSG:4301","+proj=longlat +ellps=bessel +towgs84=-146.414,507.337,680.507,0,0,0,0 +no_defs "],"EPSG:4302":["EPSG:4302","+proj=longlat +a=6378293.645208759 +b=6356617.987679838 +towgs84=-61.702,284.488,472.052,0,0,0,0 +no_defs "],"EPSG:4303":["EPSG:4303","+proj=longlat +ellps=helmert +no_defs "],"EPSG:4304":["EPSG:4304","+proj=longlat +a=6378249.2 +b=6356515 +towgs84=-73,-247,227,0,0,0,0 +no_defs "],"EPSG:4306":["EPSG:4306","+proj=longlat +ellps=bessel +no_defs "],"EPSG:4307":["EPSG:4307","+proj=longlat +ellps=clrk80 +towgs84=-209.3622,-87.8162,404.6198,0.0046,3.4784,0.5805,-1.4547 +no_defs "],"EPSG:4308":["EPSG:4308","+proj=longlat +ellps=bessel +no_defs "],"EPSG:4309":["EPSG:4309","+proj=longlat +ellps=intl +towgs84=-155,171,37,0,0,0,0 +no_defs "],"EPSG:4310":["EPSG:4310","+proj=longlat +a=6378249.2 +b=6356515 +towgs84=-30,190,89,0,0,0,0 +no_defs "],"EPSG:4311":["EPSG:4311","+proj=longlat +ellps=intl +towgs84=-265,120,-358,0,0,0,0 +no_defs "],"EPSG:4315":["EPSG:4315","+proj=longlat +a=6378249.2 +b=6356515 +towgs84=-23,259,-9,0,0,0,0 +no_defs "],"EPSG:4605":["EPSG:4605","+proj=longlat +ellps=clrk80 +towgs84=9,183,236,0,0,0,0 +no_defs "],"EPSG:4316":["EPSG:4316","+proj=longlat +ellps=intl +towgs84=103.25,-100.4,-307.19,0,0,0,0 +no_defs "],"EPSG:4318":["EPSG:4318","+proj=longlat +ellps=WGS84 +towgs84=-3.2,-5.7,2.8,0,0,0,0 +no_defs "],"EPSG:4319":["EPSG:4319","+proj=longlat +ellps=GRS80 +towgs84=-20.8,11.3,2.4,0,0,0,0 +no_defs "],"EPSG:4463":["EPSG:4463","+proj=longlat +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +no_defs "],"EPSG:4470":["EPSG:4470","+proj=longlat +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +no_defs "],"EPSG:4475":["EPSG:4475","+proj=longlat +ellps=intl +towgs84=-381.788,-57.501,-256.673,0,0,0,0 +no_defs "],"EPSG:4490":["EPSG:4490","+proj=longlat +ellps=GRS80 +no_defs "],"EPSG:4555":["EPSG:4555","+proj=longlat +ellps=krass +no_defs "],"EPSG:4558":["EPSG:4558","+proj=longlat +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +no_defs "],"EPSG:4600":["EPSG:4600","+proj=longlat +ellps=clrk80 +no_defs "],"EPSG:4601":["EPSG:4601","+proj=longlat +ellps=clrk80 +towgs84=-255,-15,71,0,0,0,0 +no_defs "],"EPSG:4602":["EPSG:4602","+proj=longlat +ellps=clrk80 +towgs84=725,685,536,0,0,0,0 +no_defs "],"EPSG:4603":["EPSG:4603","+proj=longlat +ellps=clrk80 +towgs84=72,213.7,93,0,0,0,0 +no_defs "],"EPSG:4604":["EPSG:4604","+proj=longlat +ellps=clrk80 +towgs84=174,359,365,0,0,0,0 +no_defs "],"EPSG:4606":["EPSG:4606","+proj=longlat +ellps=clrk80 +towgs84=-149,128,296,0,0,0,0 +no_defs "],"EPSG:4607":["EPSG:4607","+proj=longlat +ellps=clrk80 +towgs84=195.671,332.517,274.607,0,0,0,0 +no_defs "],"EPSG:4608":["EPSG:4608","+proj=longlat +ellps=clrk66 +no_defs "],"EPSG:4609":["EPSG:4609","+proj=longlat +ellps=clrk66 +no_defs "],"EPSG:4610":["EPSG:4610","+proj=longlat +a=6378140 +b=6356755.288157528 +no_defs "],"EPSG:4611":["EPSG:4611","+proj=longlat +ellps=intl +towgs84=-162.619,-276.959,-161.764,0.067753,-2.243649,-1.158827,-1.094246 +no_defs "],"EPSG:4613":["EPSG:4613","+proj=longlat +ellps=bessel +towgs84=-403,684,41,0,0,0,0 +no_defs "],"EPSG:4614":["EPSG:4614","+proj=longlat +ellps=intl +towgs84=-119.4248,-303.65872,-11.00061,1.164298,0.174458,1.096259,3.657065 +no_defs "],"EPSG:4615":["EPSG:4615","+proj=longlat +ellps=intl +towgs84=-499,-249,314,0,0,0,0 +no_defs "],"EPSG:4616":["EPSG:4616","+proj=longlat +ellps=intl +towgs84=-289,-124,60,0,0,0,0 +no_defs "],"EPSG:4620":["EPSG:4620","+proj=longlat +ellps=clrk80 +towgs84=-106,-129,165,0,0,0,0 +no_defs "],"EPSG:4621":["EPSG:4621","+proj=longlat +ellps=intl +towgs84=137,248,-430,0,0,0,0 +no_defs "],"EPSG:4622":["EPSG:4622","+proj=longlat +ellps=intl +towgs84=-467,-16,-300,0,0,0,0 +no_defs "],"EPSG:4623":["EPSG:4623","+proj=longlat +ellps=intl +towgs84=-186,230,110,0,0,0,0 +no_defs "],"EPSG:4624":["EPSG:4624","+proj=longlat +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +no_defs "],"EPSG:4625":["EPSG:4625","+proj=longlat +ellps=intl +towgs84=186,482,151,0,0,0,0 +no_defs "],"EPSG:4626":["EPSG:4626","+proj=longlat +ellps=intl +towgs84=94,-948,-1262,0,0,0,0 +no_defs "],"EPSG:4627":["EPSG:4627","+proj=longlat +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +no_defs "],"EPSG:4628":["EPSG:4628","+proj=longlat +ellps=intl +towgs84=162,117,154,0,0,0,0 +no_defs "],"EPSG:4629":["EPSG:4629","+proj=longlat +ellps=intl +towgs84=72.438,345.918,79.486,1.6045,0.8823,0.5565,1.3746 +no_defs "],"EPSG:4630":["EPSG:4630","+proj=longlat +ellps=intl +towgs84=84,274,65,0,0,0,0 +no_defs "],"EPSG:4631":["EPSG:4631","+proj=longlat +ellps=intl +towgs84=145,-187,103,0,0,0,0 +no_defs "],"EPSG:4632":["EPSG:4632","+proj=longlat +ellps=intl +towgs84=-382,-59,-262,0,0,0,0 +no_defs "],"EPSG:4633":["EPSG:4633","+proj=longlat +ellps=intl +towgs84=335.47,222.58,-230.94,0,0,0,0 +no_defs "],"EPSG:4634":["EPSG:4634","+proj=longlat +ellps=intl +towgs84=-13,-348,292,0,0,0,0 +no_defs "],"EPSG:4635":["EPSG:4635","+proj=longlat +ellps=intl +towgs84=-122.383,-188.696,103.344,3.5107,-4.9668,-5.7047,4.4798 +no_defs "],"EPSG:4636":["EPSG:4636","+proj=longlat +ellps=intl +towgs84=365,194,166,0,0,0,0 +no_defs "],"EPSG:4637":["EPSG:4637","+proj=longlat +ellps=intl +towgs84=325,154,172,0,0,0,0 +no_defs "],"EPSG:4638":["EPSG:4638","+proj=longlat +ellps=clrk66 +towgs84=30,430,368,0,0,0,0 +no_defs "],"EPSG:4639":["EPSG:4639","+proj=longlat +ellps=intl +towgs84=253,-132,-127,0,0,0,0 +no_defs "],"EPSG:4640":["EPSG:4640","+proj=longlat +ellps=WGS84 +towgs84=0,0,0,0,0,0,0 +no_defs "],"EPSG:4641":["EPSG:4641","+proj=longlat +ellps=intl +towgs84=287.58,177.78,-135.41,0,0,0,0 +no_defs "],"EPSG:4642":["EPSG:4642","+proj=longlat +ellps=intl +towgs84=-13,-348,292,0,0,0,0 +no_defs "],"EPSG:4671":["EPSG:4671","+proj=longlat +a=6378249.2 +b=6356515 +no_defs "],"EPSG:4643":["EPSG:4643","+proj=longlat +ellps=intl +towgs84=-480.26,-438.32,-643.429,16.3119,20.1721,-4.0349,-111.7002 +no_defs "],"EPSG:4644":["EPSG:4644","+proj=longlat +ellps=intl +towgs84=-10.18,-350.43,291.37,0,0,0,0 +no_defs "],"EPSG:4645":["EPSG:4645","+proj=longlat +ellps=intl +towgs84=0,0,0,0,0,0,0 +no_defs "],"EPSG:4646":["EPSG:4646","+proj=longlat +ellps=intl +towgs84=-963,510,-359,0,0,0,0 +no_defs "],"EPSG:4657":["EPSG:4657","+proj=longlat +a=6377019.27 +b=6355762.5391 +towgs84=-28,199,5,0,0,0,0 +no_defs "],"EPSG:4659":["EPSG:4659","+proj=longlat +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +no_defs "],"EPSG:4660":["EPSG:4660","+proj=longlat +ellps=intl +towgs84=982.6087,552.753,-540.873,6.6816266,-31.6114924,-19.84816,16.805 +no_defs "],"EPSG:4661":["EPSG:4661","+proj=longlat +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +no_defs "],"EPSG:4662":["EPSG:4662","+proj=longlat +ellps=intl +towgs84=-11.64,-348.6,291.98,0,0,0,0 +no_defs "],"EPSG:4663":["EPSG:4663","+proj=longlat +ellps=intl +towgs84=-502.862,-247.438,312.724,0,0,0,0 +no_defs "],"EPSG:4664":["EPSG:4664","+proj=longlat +ellps=intl +towgs84=-204.619,140.176,55.226,0,0,0,0 +no_defs "],"EPSG:4665":["EPSG:4665","+proj=longlat +ellps=intl +towgs84=-106.226,166.366,-37.893,0,0,0,0 +no_defs "],"EPSG:4666":["EPSG:4666","+proj=longlat +ellps=bessel +towgs84=508.088,-191.042,565.223,0,0,0,0 +no_defs "],"EPSG:4667":["EPSG:4667","+proj=longlat +ellps=WGS84 +towgs84=0,0,0,0,0,0,0 +no_defs "],"EPSG:4668":["EPSG:4668","+proj=longlat +ellps=intl +towgs84=-86,-98,-119,0,0,0,0 +no_defs "],"EPSG:4669":["EPSG:4669","+proj=longlat +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +no_defs "],"EPSG:4670":["EPSG:4670","+proj=longlat +ellps=WGS84 +towgs84=0,0,0,0,0,0,0 +no_defs "],"EPSG:4746":["EPSG:4746","+proj=longlat +ellps=bessel +no_defs "],"EPSG:4672":["EPSG:4672","+proj=longlat +ellps=intl +towgs84=175,-38,113,0,0,0,0 +no_defs "],"EPSG:4673":["EPSG:4673","+proj=longlat +ellps=intl +towgs84=174.05,-25.49,112.57,0,0,0.554,0.2263 +no_defs "],"EPSG:4675":["EPSG:4675","+proj=longlat +ellps=clrk66 +towgs84=-100,-248,259,0,0,0,0 +no_defs "],"EPSG:4676":["EPSG:4676","+proj=longlat +ellps=krass +no_defs "],"EPSG:4677":["EPSG:4677","+proj=longlat +ellps=krass +no_defs "],"EPSG:4678":["EPSG:4678","+proj=longlat +ellps=krass +towgs84=44.585,-131.212,-39.544,0,0,0,0 +no_defs "],"EPSG:4679":["EPSG:4679","+proj=longlat +ellps=clrk80 +towgs84=-80.01,253.26,291.19,0,0,0,0 +no_defs "],"EPSG:4680":["EPSG:4680","+proj=longlat +ellps=clrk80 +towgs84=124.5,-63.5,-281,0,0,0,0 +no_defs "],"EPSG:4681":["EPSG:4681","+proj=longlat +ellps=clrk80 +no_defs "],"EPSG:4682":["EPSG:4682","+proj=longlat +a=6377276.345 +b=6356075.41314024 +towgs84=283.7,735.9,261.1,0,0,0,0 +no_defs "],"EPSG:4683":["EPSG:4683","+proj=longlat +ellps=clrk66 +towgs84=-127.62,-67.24,-47.04,-3.068,4.903,1.578,-1.06 +no_defs "],"EPSG:4684":["EPSG:4684","+proj=longlat +ellps=intl +towgs84=-133,-321,50,0,0,0,0 +no_defs "],"EPSG:4685":["EPSG:4685","+proj=longlat +ellps=intl +no_defs "],"EPSG:4686":["EPSG:4686","+proj=longlat +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +no_defs "],"EPSG:4687":["EPSG:4687","+proj=longlat +ellps=GRS80 +towgs84=0.072,-0.507,-0.245,-0.0183,0.0003,-0.007,-0.0093 +no_defs "],"EPSG:4688":["EPSG:4688","+proj=longlat +ellps=intl +towgs84=347.103,1078.125,2623.922,-33.8875,70.6773,-9.3943,186.074 +no_defs "],"EPSG:4689":["EPSG:4689","+proj=longlat +ellps=intl +towgs84=410.721,55.049,80.746,2.5779,2.3514,0.6664,17.3311 +no_defs "],"EPSG:4690":["EPSG:4690","+proj=longlat +ellps=intl +towgs84=221.525,152.948,176.768,-2.3847,-1.3896,-0.877,11.4741 +no_defs "],"EPSG:4691":["EPSG:4691","+proj=longlat +ellps=intl +towgs84=215.525,149.593,176.229,-3.2624,-1.692,-1.1571,10.4773 +no_defs "],"EPSG:4692":["EPSG:4692","+proj=longlat +ellps=intl +towgs84=217.037,86.959,23.956,0,0,0,0 +no_defs "],"EPSG:4693":["EPSG:4693","+proj=longlat +ellps=WGS84 +towgs84=0,-0.15,0.68,0,0,0,0 +no_defs "],"EPSG:4694":["EPSG:4694","+proj=longlat +ellps=WGS84 +towgs84=0,0,0,0,0,0,0 +no_defs "],"EPSG:4695":["EPSG:4695","+proj=longlat +ellps=clrk66 +towgs84=-103.746,-9.614,-255.95,0,0,0,0 +no_defs "],"EPSG:4696":["EPSG:4696","+proj=longlat +ellps=clrk80 +no_defs "],"EPSG:4697":["EPSG:4697","+proj=longlat +ellps=clrk80 +no_defs "],"EPSG:4698":["EPSG:4698","+proj=longlat +ellps=intl +towgs84=145,-187,103,0,0,0,0 +no_defs "],"EPSG:4699":["EPSG:4699","+proj=longlat +ellps=clrk80 +towgs84=-770.1,158.4,-498.2,0,0,0,0 +no_defs "],"EPSG:4700":["EPSG:4700","+proj=longlat +ellps=clrk80 +no_defs "],"EPSG:4701":["EPSG:4701","+proj=longlat +ellps=clrk80 +towgs84=-79.9,-158,-168.9,0,0,0,0 +no_defs "],"EPSG:4702":["EPSG:4702","+proj=longlat +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +no_defs "],"EPSG:4703":["EPSG:4703","+proj=longlat +ellps=clrk80 +no_defs "],"EPSG:4704":["EPSG:4704","+proj=longlat +ellps=intl +no_defs "],"EPSG:4705":["EPSG:4705","+proj=longlat +ellps=intl +no_defs "],"EPSG:4706":["EPSG:4706","+proj=longlat +ellps=helmert +towgs84=-146.21,112.63,4.05,0,0,0,0 +no_defs "],"EPSG:4707":["EPSG:4707","+proj=longlat +ellps=intl +towgs84=114,-116,-333,0,0,0,0 +no_defs "],"EPSG:4708":["EPSG:4708","+proj=longlat +ellps=aust_SA +towgs84=-491,-22,435,0,0,0,0 +no_defs "],"EPSG:4709":["EPSG:4709","+proj=longlat +ellps=intl +towgs84=145,75,-272,0,0,0,0 +no_defs "],"EPSG:4710":["EPSG:4710","+proj=longlat +ellps=intl +towgs84=-320,550,-494,0,0,0,0 +no_defs "],"EPSG:4711":["EPSG:4711","+proj=longlat +ellps=intl +towgs84=124,-234,-25,0,0,0,0 +no_defs "],"EPSG:4712":["EPSG:4712","+proj=longlat +ellps=intl +towgs84=-205,107,53,0,0,0,0 +no_defs "],"EPSG:4713":["EPSG:4713","+proj=longlat +ellps=clrk80 +towgs84=-77,-128,142,0,0,0,0 +no_defs "],"EPSG:4714":["EPSG:4714","+proj=longlat +ellps=intl +towgs84=-127,-769,472,0,0,0,0 +no_defs "],"EPSG:4715":["EPSG:4715","+proj=longlat +ellps=intl +towgs84=-104,-129,239,0,0,0,0 +no_defs "],"EPSG:4716":["EPSG:4716","+proj=longlat +ellps=intl +towgs84=298,-304,-375,0,0,0,0 +no_defs "],"EPSG:4717":["EPSG:4717","+proj=longlat +ellps=clrk66 +towgs84=-2,151,181,0,0,0,0 +no_defs "],"EPSG:4718":["EPSG:4718","+proj=longlat +ellps=intl +towgs84=230,-199,-752,0,0,0,0 +no_defs "],"EPSG:4719":["EPSG:4719","+proj=longlat +ellps=intl +towgs84=211,147,111,0,0,0,0 +no_defs "],"EPSG:4720":["EPSG:4720","+proj=longlat +ellps=WGS72 +towgs84=0,0,4.5,0,0,0.554,0.2263 +no_defs "],"EPSG:4721":["EPSG:4721","+proj=longlat +ellps=intl +towgs84=265.025,384.929,-194.046,0,0,0,0 +no_defs "],"EPSG:4722":["EPSG:4722","+proj=longlat +ellps=intl +towgs84=-794,119,-298,0,0,0,0 +no_defs "],"EPSG:4723":["EPSG:4723","+proj=longlat +ellps=clrk66 +towgs84=-179.483,-69.379,-27.584,-7.862,8.163,6.042,-13.925 +no_defs "],"EPSG:4724":["EPSG:4724","+proj=longlat +ellps=intl +towgs84=208,-435,-229,0,0,0,0 +no_defs "],"EPSG:4725":["EPSG:4725","+proj=longlat +ellps=intl +towgs84=189,-79,-202,0,0,0,0 +no_defs "],"EPSG:4726":["EPSG:4726","+proj=longlat +ellps=clrk66 +towgs84=8.853,-52.644,180.304,-0.393,-2.323,2.96,-24.081 +no_defs "],"EPSG:4727":["EPSG:4727","+proj=longlat +ellps=intl +towgs84=403,-81,277,0,0,0,0 +no_defs "],"EPSG:4729":["EPSG:4729","+proj=longlat +ellps=intl +towgs84=185,165,42,0,0,0,0 +no_defs "],"EPSG:4730":["EPSG:4730","+proj=longlat +ellps=intl +towgs84=170,42,84,0,0,0,0 +no_defs "],"EPSG:4731":["EPSG:4731","+proj=longlat +ellps=clrk80 +towgs84=51,391,-36,0,0,0,0 +no_defs "],"EPSG:4732":["EPSG:4732","+proj=longlat +a=6378270 +b=6356794.343434343 +towgs84=102,52,-38,0,0,0,0 +no_defs "],"EPSG:4733":["EPSG:4733","+proj=longlat +ellps=intl +towgs84=276,-57,149,0,0,0,0 +no_defs "],"EPSG:4734":["EPSG:4734","+proj=longlat +ellps=intl +towgs84=-632,438,-609,0,0,0,0 +no_defs "],"EPSG:4735":["EPSG:4735","+proj=longlat +ellps=intl +towgs84=647,1777,-1124,0,0,0,0 +no_defs "],"EPSG:4736":["EPSG:4736","+proj=longlat +ellps=clrk80 +towgs84=260,12,-147,0,0,0,0 +no_defs "],"EPSG:4737":["EPSG:4737","+proj=longlat +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +no_defs "],"EPSG:4738":["EPSG:4738","+proj=longlat +a=6378293.645208759 +b=6356617.987679838 +no_defs "],"EPSG:4739":["EPSG:4739","+proj=longlat +ellps=intl +towgs84=-156,-271,-189,0,0,0,0 +no_defs "],"EPSG:4740":["EPSG:4740","+proj=longlat +a=6378136 +b=6356751.361745712 +towgs84=0,0,1.5,0,0,0.076,0 +no_defs "],"EPSG:4741":["EPSG:4741","+proj=longlat +ellps=intl +no_defs "],"EPSG:4742":["EPSG:4742","+proj=longlat +ellps=GRS80 +no_defs "],"EPSG:4743":["EPSG:4743","+proj=longlat +ellps=clrk80 +towgs84=70.995,-335.916,262.898,0,0,0,0 +no_defs "],"EPSG:4744":["EPSG:4744","+proj=longlat +ellps=clrk80 +towgs84=-242.2,-144.9,370.3,0,0,0,0 +no_defs "],"EPSG:4745":["EPSG:4745","+proj=longlat +ellps=bessel +no_defs "],"EPSG:4747":["EPSG:4747","+proj=longlat +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +no_defs "],"EPSG:4748":["EPSG:4748","+proj=longlat +a=6378306.3696 +b=6356571.996 +towgs84=51,391,-36,0,0,0,0 +no_defs "],"EPSG:4749":["EPSG:4749","+proj=longlat +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +no_defs "],"EPSG:4750":["EPSG:4750","+proj=longlat +ellps=WGS84 +towgs84=-56.263,16.136,-22.856,0,0,0,0 +no_defs "],"EPSG:4751":["EPSG:4751","+proj=longlat +a=6377295.664 +b=6356094.667915204 +no_defs "],"EPSG:4752":["EPSG:4752","+proj=longlat +a=6378306.3696 +b=6356571.996 +towgs84=98,390,-22,0,0,0,0 +no_defs "],"EPSG:4753":["EPSG:4753","+proj=longlat +ellps=intl +no_defs "],"EPSG:4754":["EPSG:4754","+proj=longlat +ellps=intl +towgs84=-208.4058,-109.8777,-2.5764,0,0,0,0 +no_defs "],"EPSG:4755":["EPSG:4755","+proj=longlat +ellps=WGS84 +towgs84=0,0,0,0,0,0,0 +no_defs "],"EPSG:4756":["EPSG:4756","+proj=longlat +ellps=WGS84 +towgs84=-191.90441429,-39.30318279,-111.45032835,0.00928836,-0.01975479,0.00427372,0.252906278 +no_defs "],"EPSG:4757":["EPSG:4757","+proj=longlat +ellps=WGS84 +no_defs "],"EPSG:4758":["EPSG:4758","+proj=longlat +ellps=WGS84 +towgs84=0,0,0,0,0,0,0 +no_defs "],"EPSG:4759":["EPSG:4759","+proj=longlat +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +no_defs "],"EPSG:4760":["EPSG:4760","+proj=longlat +ellps=WGS66 +no_defs "],"EPSG:4761":["EPSG:4761","+proj=longlat +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +no_defs "],"EPSG:4762":["EPSG:4762","+proj=longlat +ellps=WGS84 +towgs84=0,0,0,0,0,0,0 +no_defs "],"EPSG:4763":["EPSG:4763","+proj=longlat +ellps=WGS84 +towgs84=0,0,0,0,0,0,0 +no_defs "],"EPSG:4764":["EPSG:4764","+proj=longlat +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +no_defs "],"EPSG:4765":["EPSG:4765","+proj=longlat +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +no_defs "],"EPSG:4801":["EPSG:4801","+proj=longlat +ellps=bessel +towgs84=674.4,15.1,405.3,0,0,0,0 +pm=bern +no_defs "],"EPSG:4802":["EPSG:4802","+proj=longlat +ellps=intl +towgs84=307,304,-318,0,0,0,0 +pm=bogota +no_defs "],"EPSG:4803":["EPSG:4803","+proj=longlat +ellps=intl +towgs84=-304.046,-60.576,103.64,0,0,0,0 +pm=lisbon +no_defs "],"EPSG:4804":["EPSG:4804","+proj=longlat +ellps=bessel +towgs84=-587.8,519.75,145.76,0,0,0,0 +pm=jakarta +no_defs "],"EPSG:4805":["EPSG:4805","+proj=longlat +ellps=bessel +towgs84=682,-203,480,0,0,0,0 +pm=ferro +no_defs "],"EPSG:4808":["EPSG:4808","+proj=longlat +ellps=bessel +pm=jakarta +no_defs "],"EPSG:4809":["EPSG:4809","+proj=longlat +ellps=intl +pm=brussels +no_defs "],"EPSG:4810":["EPSG:4810","+proj=longlat +ellps=intl +towgs84=-189,-242,-91,0,0,0,0 +pm=paris +no_defs "],"EPSG:4811":["EPSG:4811","+proj=longlat +a=6378249.2 +b=6356515 +towgs84=-73,-247,227,0,0,0,0 +pm=paris +no_defs "],"EPSG:4813":["EPSG:4813","+proj=longlat +ellps=bessel +towgs84=-377,681,-50,0,0,0,0 +pm=jakarta +no_defs "],"EPSG:4814":["EPSG:4814","+proj=longlat +ellps=bessel +pm=stockholm +no_defs "],"EPSG:4816":["EPSG:4816","+proj=longlat +a=6378249.2 +b=6356515 +towgs84=-263,6,431,0,0,0,0 +pm=paris +no_defs "],"EPSG:4818":["EPSG:4818","+proj=longlat +ellps=bessel +towgs84=589,76,480,0,0,0,0 +pm=ferro +no_defs "],"EPSG:5340":["EPSG:5340","+proj=longlat +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +no_defs "],"EPSG:4819":["EPSG:4819","+proj=longlat +ellps=clrk80 +towgs84=-209.3622,-87.8162,404.6198,0.0046,3.4784,0.5805,-1.4547 +pm=paris +no_defs "],"EPSG:4820":["EPSG:4820","+proj=longlat +ellps=bessel +towgs84=-403,684,41,0,0,0,0 +pm=jakarta +no_defs "],"EPSG:4821":["EPSG:4821","+proj=longlat +a=6378249.2 +b=6356515 +pm=paris +no_defs "],"EPSG:4823":["EPSG:4823","+proj=longlat +ellps=intl +no_defs "],"EPSG:4902":["EPSG:4902","+proj=longlat +a=6376523 +b=6355862.933255573 +pm=paris +no_defs "],"EPSG:4903":["EPSG:4903","+proj=longlat +a=6378298.3 +b=6356657.142669561 +pm=madrid +no_defs "],"EPSG:4904":["EPSG:4904","+proj=longlat +ellps=bessel +towgs84=508.088,-191.042,565.223,0,0,0,0 +pm=lisbon +no_defs "],"EPSG:5013":["EPSG:5013","+proj=longlat +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +no_defs "],"EPSG:5132":["EPSG:5132","+proj=longlat +ellps=bessel +no_defs "],"EPSG:5228":["EPSG:5228","+proj=longlat +ellps=bessel +towgs84=572.213,85.334,461.94,4.9732,1.529,5.2484,3.5378 +no_defs "],"EPSG:5229":["EPSG:5229","+proj=longlat +ellps=bessel +towgs84=572.213,85.334,461.94,4.9732,1.529,5.2484,3.5378 +pm=ferro +no_defs "],"EPSG:5233":["EPSG:5233","+proj=longlat +a=6377276.345 +b=6356075.41314024 +towgs84=-0.293,766.95,87.713,0.195704,1.695068,3.473016,-0.039338 +no_defs "],"EPSG:5246":["EPSG:5246","+proj=longlat +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +no_defs "],"EPSG:5252":["EPSG:5252","+proj=longlat +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +no_defs "],"EPSG:5264":["EPSG:5264","+proj=longlat +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +no_defs "],"EPSG:5324":["EPSG:5324","+proj=longlat +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +no_defs "],"EPSG:5354":["EPSG:5354","+proj=longlat +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +no_defs "],"EPSG:5360":["EPSG:5360","+proj=longlat +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +no_defs "],"EPSG:5365":["EPSG:5365","+proj=longlat +ellps=WGS84 +towgs84=0,0,0,0,0,0,0 +no_defs "],"EPSG:5371":["EPSG:5371","+proj=longlat +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +no_defs "],"EPSG:5373":["EPSG:5373","+proj=longlat +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +no_defs "],"EPSG:5381":["EPSG:5381","+proj=longlat +ellps=WGS84 +towgs84=0,0,0,0,0,0,0 +no_defs "],"EPSG:5393":["EPSG:5393","+proj=longlat +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +no_defs "],"EPSG:5451":["EPSG:5451","+proj=longlat +ellps=clrk66 +towgs84=205,96,-98,0,0,0,0 +no_defs "],"EPSG:5464":["EPSG:5464","+proj=longlat +a=6378293.645208759 +b=6356617.987679838 +no_defs "],"EPSG:5467":["EPSG:5467","+proj=longlat +ellps=clrk66 +no_defs "],"EPSG:5489":["EPSG:5489","+proj=longlat +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +no_defs "],"EPSG:5527":["EPSG:5527","+proj=longlat +ellps=aust_SA +towgs84=-67.35,3.88,-38.22,0,0,0,0 +no_defs "],"EPSG:5546":["EPSG:5546","+proj=longlat +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +no_defs "],"EPSG:5561":["EPSG:5561","+proj=longlat +ellps=krass +towgs84=25,-141,-78.5,0,0.35,0.736,0 +no_defs "],"EPSG:5593":["EPSG:5593","+proj=longlat +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +no_defs "],"EPSG:5681":["EPSG:5681","+proj=longlat +ellps=bessel +no_defs "],"EPSG:5886":["EPSG:5886","+proj=longlat +ellps=GRS80 +no_defs "],"EPSG:6135":["EPSG:6135","+proj=longlat +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +no_defs "],"EPSG:7039":["EPSG:7039","+proj=longlat +ellps=GRS80 +no_defs "],"EPSG:6207":["EPSG:6207","+proj=longlat +a=6377276.345 +b=6356075.41314024 +towgs84=293.17,726.18,245.36,0,0,0,0 +no_defs "],"EPSG:6311":["EPSG:6311","+proj=longlat +ellps=WGS84 +towgs84=8.846,-4.394,-1.122,0.00237,0.146528,-0.130428,0.783926 +no_defs "],"EPSG:6318":["EPSG:6318","+proj=longlat +ellps=GRS80 +no_defs "],"EPSG:6322":["EPSG:6322","+proj=longlat +ellps=GRS80 +no_defs "],"EPSG:6325":["EPSG:6325","+proj=longlat +ellps=GRS80 +no_defs "],"EPSG:6365":["EPSG:6365","+proj=longlat +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +no_defs "],"EPSG:6668":["EPSG:6668","+proj=longlat +ellps=GRS80 +no_defs "],"EPSG:6706":["EPSG:6706","+proj=longlat +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +no_defs "],"EPSG:6783":["EPSG:6783","+proj=longlat +ellps=GRS80 +no_defs "],"EPSG:6881":["EPSG:6881","+proj=longlat +ellps=clrk80 +towgs84=-24,-203,268,0,0,0,0 +no_defs "],"EPSG:6882":["EPSG:6882","+proj=longlat +ellps=clrk80 +towgs84=-183,-15,273,0,0,0,0 +no_defs "],"EPSG:6883":["EPSG:6883","+proj=longlat +ellps=intl +towgs84=-235,-110,393,0,0,0,0 +no_defs "],"EPSG:6892":["EPSG:6892","+proj=longlat +ellps=clrk80 +towgs84=-43.685,-179.785,-267.721,0,0,0,0 +no_defs "],"EPSG:6894":["EPSG:6894","+proj=longlat +ellps=clrk80 +towgs84=-63,176,185,0,0,0,0 +no_defs "],"EPSG:6980":["EPSG:6980","+proj=longlat +ellps=GRS80 +no_defs "],"EPSG:6983":["EPSG:6983","+proj=longlat +ellps=GRS80 +no_defs "],"EPSG:6987":["EPSG:6987","+proj=longlat +ellps=GRS80 +no_defs "],"EPSG:6990":["EPSG:6990","+proj=longlat +ellps=GRS80 +no_defs "],"EPSG:7035":["EPSG:7035","+proj=longlat +ellps=GRS80 +no_defs "],"EPSG:7037":["EPSG:7037","+proj=longlat +ellps=GRS80 +no_defs "],"EPSG:7073":["EPSG:7073","+proj=longlat +ellps=GRS80 +no_defs "],"EPSG:7084":["EPSG:7084","+proj=longlat +ellps=GRS80 +no_defs "],"EPSG:7086":["EPSG:7086","+proj=longlat +ellps=GRS80 +no_defs "],"EPSG:7088":["EPSG:7088","+proj=longlat +ellps=GRS80 +no_defs "],"EPSG:7133":["EPSG:7133","+proj=longlat +ellps=GRS80 +no_defs "],"EPSG:7136":["EPSG:7136","+proj=longlat +ellps=WGS84 +no_defs "],"EPSG:7139":["EPSG:7139","+proj=longlat +ellps=WGS84 +no_defs "],"EPSG:7373":["EPSG:7373","+proj=longlat +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +no_defs "],"EPSG:2000":["EPSG:2000","+proj=tmerc +lat_0=0 +lon_0=-62 +k=0.9995000000000001 +x_0=400000 +y_0=0 +ellps=clrk80 +units=m +no_defs "],"EPSG:2001":["EPSG:2001","+proj=tmerc +lat_0=0 +lon_0=-62 +k=0.9995000000000001 +x_0=400000 +y_0=0 +ellps=clrk80 +towgs84=-255,-15,71,0,0,0,0 +units=m +no_defs "],"EPSG:2002":["EPSG:2002","+proj=tmerc +lat_0=0 +lon_0=-62 +k=0.9995000000000001 +x_0=400000 +y_0=0 +ellps=clrk80 +towgs84=725,685,536,0,0,0,0 +units=m +no_defs "],"EPSG:2003":["EPSG:2003","+proj=tmerc +lat_0=0 +lon_0=-62 +k=0.9995000000000001 +x_0=400000 +y_0=0 +ellps=clrk80 +towgs84=72,213.7,93,0,0,0,0 +units=m +no_defs "],"EPSG:2311":["EPSG:2311","+proj=tmerc +lat_0=0 +lon_0=6 +k=0.9996 +x_0=500000 +y_0=0 +datum=WGS84 +units=m +no_defs "],"EPSG:2005":["EPSG:2005","+proj=tmerc +lat_0=0 +lon_0=-62 +k=0.9995000000000001 +x_0=400000 +y_0=0 +ellps=clrk80 +towgs84=9,183,236,0,0,0,0 +units=m +no_defs "],"EPSG:2006":["EPSG:2006","+proj=tmerc +lat_0=0 +lon_0=-62 +k=0.9995000000000001 +x_0=400000 +y_0=0 +ellps=clrk80 +towgs84=-149,128,296,0,0,0,0 +units=m +no_defs "],"EPSG:2007":["EPSG:2007","+proj=tmerc +lat_0=0 +lon_0=-62 +k=0.9995000000000001 +x_0=400000 +y_0=0 +ellps=clrk80 +towgs84=195.671,332.517,274.607,0,0,0,0 +units=m +no_defs "],"EPSG:2008":["EPSG:2008","+proj=tmerc +lat_0=0 +lon_0=-55.5 +k=0.9999 +x_0=304800 +y_0=0 +ellps=clrk66 +units=m +no_defs "],"EPSG:2009":["EPSG:2009","+proj=tmerc +lat_0=0 +lon_0=-58.5 +k=0.9999 +x_0=304800 +y_0=0 +ellps=clrk66 +units=m +no_defs "],"EPSG:2010":["EPSG:2010","+proj=tmerc +lat_0=0 +lon_0=-61.5 +k=0.9999 +x_0=304800 +y_0=0 +ellps=clrk66 +units=m +no_defs "],"EPSG:2011":["EPSG:2011","+proj=tmerc +lat_0=0 +lon_0=-64.5 +k=0.9999 +x_0=304800 +y_0=0 +ellps=clrk66 +units=m +no_defs "],"EPSG:2012":["EPSG:2012","+proj=tmerc +lat_0=0 +lon_0=-67.5 +k=0.9999 +x_0=304800 +y_0=0 +ellps=clrk66 +units=m +no_defs "],"EPSG:2013":["EPSG:2013","+proj=tmerc +lat_0=0 +lon_0=-70.5 +k=0.9999 +x_0=304800 +y_0=0 +ellps=clrk66 +units=m +no_defs "],"EPSG:2014":["EPSG:2014","+proj=tmerc +lat_0=0 +lon_0=-73.5 +k=0.9999 +x_0=304800 +y_0=0 +ellps=clrk66 +units=m +no_defs "],"EPSG:2015":["EPSG:2015","+proj=tmerc +lat_0=0 +lon_0=-76.5 +k=0.9999 +x_0=304800 +y_0=0 +ellps=clrk66 +units=m +no_defs "],"EPSG:2016":["EPSG:2016","+proj=tmerc +lat_0=0 +lon_0=-79.5 +k=0.9999 +x_0=304800 +y_0=0 +ellps=clrk66 +units=m +no_defs "],"EPSG:2017":["EPSG:2017","+proj=tmerc +lat_0=0 +lon_0=-73.5 +k=0.9999 +x_0=304800 +y_0=0 +ellps=clrk66 +units=m +no_defs "],"EPSG:2018":["EPSG:2018","+proj=tmerc +lat_0=0 +lon_0=-76.5 +k=0.9999 +x_0=304800 +y_0=0 +ellps=clrk66 +units=m +no_defs "],"EPSG:2019":["EPSG:2019","+proj=tmerc +lat_0=0 +lon_0=-79.5 +k=0.9999 +x_0=304800 +y_0=0 +ellps=clrk66 +units=m +no_defs "],"EPSG:2020":["EPSG:2020","+proj=tmerc +lat_0=0 +lon_0=-82.5 +k=0.9999 +x_0=304800 +y_0=0 +ellps=clrk66 +units=m +no_defs "],"EPSG:2021":["EPSG:2021","+proj=tmerc +lat_0=0 +lon_0=-81 +k=0.9999 +x_0=304800 +y_0=0 +ellps=clrk66 +units=m +no_defs "],"EPSG:2022":["EPSG:2022","+proj=tmerc +lat_0=0 +lon_0=-84 +k=0.9999 +x_0=304800 +y_0=0 +ellps=clrk66 +units=m +no_defs "],"EPSG:2023":["EPSG:2023","+proj=tmerc +lat_0=0 +lon_0=-87 +k=0.9999 +x_0=304800 +y_0=0 +ellps=clrk66 +units=m +no_defs "],"EPSG:2024":["EPSG:2024","+proj=tmerc +lat_0=0 +lon_0=-90 +k=0.9999 +x_0=304800 +y_0=0 +ellps=clrk66 +units=m +no_defs "],"EPSG:2025":["EPSG:2025","+proj=tmerc +lat_0=0 +lon_0=-93 +k=0.9999 +x_0=304800 +y_0=0 +ellps=clrk66 +units=m +no_defs "],"EPSG:2026":["EPSG:2026","+proj=tmerc +lat_0=0 +lon_0=-96 +k=0.9999 +x_0=304800 +y_0=0 +ellps=clrk66 +units=m +no_defs "],"EPSG:2027":["EPSG:2027","+proj=utm +zone=15 +ellps=clrk66 +units=m +no_defs "],"EPSG:2028":["EPSG:2028","+proj=utm +zone=16 +ellps=clrk66 +units=m +no_defs "],"EPSG:2029":["EPSG:2029","+proj=utm +zone=17 +ellps=clrk66 +units=m +no_defs "],"EPSG:2030":["EPSG:2030","+proj=utm +zone=18 +ellps=clrk66 +units=m +no_defs "],"EPSG:2031":["EPSG:2031","+proj=utm +zone=17 +ellps=clrk66 +units=m +no_defs "],"EPSG:2032":["EPSG:2032","+proj=utm +zone=18 +ellps=clrk66 +units=m +no_defs "],"EPSG:2033":["EPSG:2033","+proj=utm +zone=19 +ellps=clrk66 +units=m +no_defs "],"EPSG:4360":["EPSG:4360","+proj=geocent +ellps=GRS80 +units=m +no_defs "],"EPSG:2035":["EPSG:2035","+proj=utm +zone=21 +ellps=clrk66 +units=m +no_defs "],"EPSG:2036":["EPSG:2036","+proj=sterea +lat_0=46.5 +lon_0=-66.5 +k=0.999912 +x_0=2500000 +y_0=7500000 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs "],"EPSG:2038":["EPSG:2038","+proj=utm +zone=20 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs "],"EPSG:2040":["EPSG:2040","+proj=utm +zone=30 +ellps=clrk80 +towgs84=-125,53,467,0,0,0,0 +units=m +no_defs "],"EPSG:2041":["EPSG:2041","+proj=utm +zone=30 +ellps=clrk80 +towgs84=-124.76,53,466.79,0,0,0,0 +units=m +no_defs "],"EPSG:2042":["EPSG:2042","+proj=utm +zone=29 +ellps=clrk80 +towgs84=-125,53,467,0,0,0,0 +units=m +no_defs "],"EPSG:2043":["EPSG:2043","+proj=utm +zone=29 +ellps=clrk80 +towgs84=-124.76,53,466.79,0,0,0,0 +units=m +no_defs "],"EPSG:2044":["EPSG:2044","+proj=tmerc +lat_0=0 +lon_0=105 +k=1 +x_0=18500000 +y_0=0 +ellps=krass +towgs84=-17.51,-108.32,-62.39,0,0,0,0 +units=m +no_defs "],"EPSG:2045":["EPSG:2045","+proj=tmerc +lat_0=0 +lon_0=111 +k=1 +x_0=19500000 +y_0=0 +ellps=krass +towgs84=-17.51,-108.32,-62.39,0,0,0,0 +units=m +no_defs "],"EPSG:2046":["EPSG:2046","+proj=tmerc +lat_0=0 +lon_0=15 +k=1 +x_0=0 +y_0=0 +axis=wsu +ellps=WGS84 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs "],"EPSG:2047":["EPSG:2047","+proj=tmerc +lat_0=0 +lon_0=17 +k=1 +x_0=0 +y_0=0 +axis=wsu +ellps=WGS84 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs "],"EPSG:2048":["EPSG:2048","+proj=tmerc +lat_0=0 +lon_0=19 +k=1 +x_0=0 +y_0=0 +axis=wsu +ellps=WGS84 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs "],"EPSG:2049":["EPSG:2049","+proj=tmerc +lat_0=0 +lon_0=21 +k=1 +x_0=0 +y_0=0 +axis=wsu +ellps=WGS84 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs "],"EPSG:2052":["EPSG:2052","+proj=tmerc +lat_0=0 +lon_0=27 +k=1 +x_0=0 +y_0=0 +axis=wsu +ellps=WGS84 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs "],"EPSG:2054":["EPSG:2054","+proj=tmerc +lat_0=0 +lon_0=31 +k=1 +x_0=0 +y_0=0 +axis=wsu +ellps=WGS84 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs "],"EPSG:2055":["EPSG:2055","+proj=tmerc +lat_0=0 +lon_0=33 +k=1 +x_0=0 +y_0=0 +axis=wsu +ellps=WGS84 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs "],"EPSG:2056":["EPSG:2056","+proj=somerc +lat_0=46.95240555555556 +lon_0=7.439583333333333 +k_0=1 +x_0=2600000 +y_0=1200000 +ellps=bessel +towgs84=674.374,15.056,405.346,0,0,0,0 +units=m +no_defs "],"EPSG:2057":["EPSG:2057","+proj=omerc +lat_0=27.51882880555555 +lonc=52.60353916666667 +alpha=0.5716611944444444 +k=0.999895934 +x_0=658377.437 +y_0=3044969.194 +gamma=0.5716611944444444 +ellps=intl +towgs84=-133.63,-157.5,-158.62,0,0,0,0 +units=m +no_defs "],"EPSG:2058":["EPSG:2058","+proj=utm +zone=38 +ellps=intl +towgs84=-117,-132,-164,0,0,0,0 +units=m +no_defs "],"EPSG:2059":["EPSG:2059","+proj=utm +zone=39 +ellps=intl +towgs84=-117,-132,-164,0,0,0,0 +units=m +no_defs "],"EPSG:2060":["EPSG:2060","+proj=utm +zone=40 +ellps=intl +towgs84=-117,-132,-164,0,0,0,0 +units=m +no_defs "],"EPSG:2061":["EPSG:2061","+proj=utm +zone=41 +ellps=intl +towgs84=-117,-132,-164,0,0,0,0 +units=m +no_defs "],"EPSG:2062":["EPSG:2062","+proj=lcc +lat_1=40 +lat_0=40 +lon_0=0 +k_0=0.9988085293 +x_0=600000 +y_0=600000 +a=6378298.3 +b=6356657.142669561 +pm=madrid +units=m +no_defs "],"EPSG:2063":["EPSG:2063","+proj=utm +zone=28 +a=6378249.2 +b=6356515 +towgs84=-23,259,-9,0,0,0,0 +units=m +no_defs "],"EPSG:4362":["EPSG:4362","+proj=geocent +ellps=GRS80 +units=m +no_defs "],"EPSG:2064":["EPSG:2064","+proj=utm +zone=29 +a=6378249.2 +b=6356515 +towgs84=-23,259,-9,0,0,0,0 +units=m +no_defs "],"EPSG:2066":["EPSG:2066","+proj=cass +lat_0=11.25217861111111 +lon_0=-60.68600888888889 +x_0=37718.66159325 +y_0=36209.91512952 +a=6378293.645208759 +b=6356617.987679838 +to_meter=0.201166195164 +no_defs "],"EPSG:2067":["EPSG:2067","+proj=utm +zone=20 +ellps=intl +towgs84=-0.465,372.095,171.736,0,0,0,0 +units=m +no_defs "],"EPSG:2068":["EPSG:2068","+proj=tmerc +lat_0=0 +lon_0=9 +k=0.9999 +x_0=200000 +y_0=0 +ellps=intl +towgs84=-115.8543,-99.0583,-152.4616,0,0,0,0 +units=m +no_defs "],"EPSG:2069":["EPSG:2069","+proj=tmerc +lat_0=0 +lon_0=11 +k=0.9999 +x_0=200000 +y_0=0 +ellps=intl +towgs84=-115.8543,-99.0583,-152.4616,0,0,0,0 +units=m +no_defs "],"EPSG:2070":["EPSG:2070","+proj=tmerc +lat_0=0 +lon_0=13 +k=0.9999 +x_0=200000 +y_0=0 +ellps=intl +towgs84=-115.8543,-99.0583,-152.4616,0,0,0,0 +units=m +no_defs "],"EPSG:2071":["EPSG:2071","+proj=tmerc +lat_0=0 +lon_0=15 +k=0.9999 +x_0=200000 +y_0=0 +ellps=intl +towgs84=-115.8543,-99.0583,-152.4616,0,0,0,0 +units=m +no_defs "],"EPSG:2072":["EPSG:2072","+proj=tmerc +lat_0=0 +lon_0=17 +k=0.9999 +x_0=200000 +y_0=0 +ellps=intl +towgs84=-115.8543,-99.0583,-152.4616,0,0,0,0 +units=m +no_defs "],"EPSG:5884":["EPSG:5884","+proj=geocent +ellps=GRS80 +units=m +no_defs "],"EPSG:2073":["EPSG:2073","+proj=tmerc +lat_0=0 +lon_0=19 +k=0.9999 +x_0=200000 +y_0=0 +ellps=intl +towgs84=-115.8543,-99.0583,-152.4616,0,0,0,0 +units=m +no_defs "],"EPSG:2074":["EPSG:2074","+proj=tmerc +lat_0=0 +lon_0=21 +k=0.9999 +x_0=200000 +y_0=0 +ellps=intl +towgs84=-115.8543,-99.0583,-152.4616,0,0,0,0 +units=m +no_defs "],"EPSG:2075":["EPSG:2075","+proj=tmerc +lat_0=0 +lon_0=23 +k=0.9999 +x_0=200000 +y_0=0 +ellps=intl +towgs84=-115.8543,-99.0583,-152.4616,0,0,0,0 +units=m +no_defs "],"EPSG:2076":["EPSG:2076","+proj=tmerc +lat_0=0 +lon_0=25 +k=0.9999 +x_0=200000 +y_0=0 +ellps=intl +towgs84=-115.8543,-99.0583,-152.4616,0,0,0,0 +units=m +no_defs "],"EPSG:2078":["EPSG:2078","+proj=utm +zone=33 +ellps=intl +towgs84=-115.8543,-99.0583,-152.4616,0,0,0,0 +units=m +no_defs "],"EPSG:2079":["EPSG:2079","+proj=utm +zone=34 +ellps=intl +towgs84=-115.8543,-99.0583,-152.4616,0,0,0,0 +units=m +no_defs "],"EPSG:2080":["EPSG:2080","+proj=utm +zone=35 +ellps=intl +towgs84=-115.8543,-99.0583,-152.4616,0,0,0,0 +units=m +no_defs "],"EPSG:2081":["EPSG:2081","+proj=tmerc +lat_0=-90 +lon_0=-69 +k=1 +x_0=2500000 +y_0=0 +ellps=intl +units=m +no_defs "],"EPSG:2082":["EPSG:2082","+proj=tmerc +lat_0=-90 +lon_0=-69 +k=1 +x_0=2500000 +y_0=0 +ellps=intl +towgs84=27.5,14,186.4,0,0,0,0 +units=m +no_defs "],"EPSG:2083":["EPSG:2083","+proj=tmerc +lat_0=-90 +lon_0=-69 +k=1 +x_0=2500000 +y_0=0 +ellps=intl +towgs84=16,196,93,0,0,0,0 +units=m +no_defs "],"EPSG:2084":["EPSG:2084","+proj=utm +zone=19 +south +ellps=intl +towgs84=16,196,93,0,0,0,0 +units=m +no_defs "],"EPSG:2085":["EPSG:2085","+proj=lcc +lat_1=22.35 +lat_0=22.35 +lon_0=-81 +k_0=0.99993602 +x_0=500000 +y_0=280296.016 +datum=NAD27 +units=m +no_defs "],"EPSG:2086":["EPSG:2086","+proj=lcc +lat_1=20.71666666666667 +lat_0=20.71666666666667 +lon_0=-76.83333333333333 +k_0=0.99994848 +x_0=500000 +y_0=229126.939 +datum=NAD27 +units=m +no_defs "],"EPSG:2087":["EPSG:2087","+proj=tmerc +lat_0=0 +lon_0=12 +k=0.9996 +x_0=500000 +y_0=0 +ellps=intl +towgs84=-115.8543,-99.0583,-152.4616,0,0,0,0 +units=m +no_defs "],"EPSG:2088":["EPSG:2088","+proj=tmerc +lat_0=0 +lon_0=11 +k=0.9996 +x_0=500000 +y_0=0 +datum=carthage +units=m +no_defs "],"EPSG:2091":["EPSG:2091","+proj=tmerc +lat_0=0 +lon_0=45 +k=1 +x_0=8500000 +y_0=0 +ellps=krass +towgs84=-76,-138,67,0,0,0,0 +units=m +no_defs "],"EPSG:2092":["EPSG:2092","+proj=tmerc +lat_0=0 +lon_0=51 +k=1 +x_0=9500000 +y_0=0 +ellps=krass +towgs84=-76,-138,67,0,0,0,0 +units=m +no_defs "],"EPSG:2093":["EPSG:2093","+proj=tmerc +lat_0=0 +lon_0=106 +k=1 +x_0=500000 +y_0=0 +ellps=krass +towgs84=-17.51,-108.32,-62.39,0,0,0,0 +units=m +no_defs "],"EPSG:2094":["EPSG:2094","+proj=tmerc +lat_0=0 +lon_0=106 +k=0.9996 +x_0=500000 +y_0=0 +ellps=WGS72 +towgs84=0,0,1.9,0,0,0.814,-0.38 +units=m +no_defs "],"EPSG:2095":["EPSG:2095","+proj=utm +zone=28 +ellps=intl +towgs84=-173,253,27,0,0,0,0 +units=m +no_defs "],"EPSG:2096":["EPSG:2096","+proj=tmerc +lat_0=38 +lon_0=129 +k=1 +x_0=200000 +y_0=500000 +ellps=bessel +units=m +no_defs "],"EPSG:2097":["EPSG:2097","+proj=tmerc +lat_0=38 +lon_0=127 +k=1 +x_0=200000 +y_0=500000 +ellps=bessel +units=m +no_defs "],"EPSG:2098":["EPSG:2098","+proj=tmerc +lat_0=38 +lon_0=125 +k=1 +x_0=200000 +y_0=500000 +ellps=bessel +units=m +no_defs "],"EPSG:2099":["EPSG:2099","+proj=cass +lat_0=25.38236111111111 +lon_0=50.76138888888889 +x_0=100000 +y_0=100000 +ellps=helmert +units=m +no_defs "],"EPSG:2101":["EPSG:2101","+proj=lcc +lat_1=10.16666666666667 +lat_0=10.16666666666667 +lon_0=-71.60561777777777 +k_0=1 +x_0=0 +y_0=-52684.972 +ellps=intl +units=m +no_defs "],"EPSG:2102":["EPSG:2102","+proj=lcc +lat_1=10.16666666666667 +lat_0=10.16666666666667 +lon_0=-71.60561777777777 +k_0=1 +x_0=200000 +y_0=147315.028 +ellps=intl +units=m +no_defs "],"EPSG:2103":["EPSG:2103","+proj=lcc +lat_1=10.16666666666667 +lat_0=10.16666666666667 +lon_0=-71.60561777777777 +k_0=1 +x_0=500000 +y_0=447315.028 +ellps=intl +units=m +no_defs "],"EPSG:2104":["EPSG:2104","+proj=lcc +lat_1=10.16666666666667 +lat_0=10.16666666666667 +lon_0=-71.60561777777777 +k_0=1 +x_0=-17044 +y_0=-23139.97 +ellps=intl +units=m +no_defs "],"EPSG:2105":["EPSG:2105","+proj=tmerc +lat_0=-36.87972222222222 +lon_0=174.7641666666667 +k=0.9999 +x_0=400000 +y_0=800000 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs "],"EPSG:2106":["EPSG:2106","+proj=tmerc +lat_0=-37.76111111111111 +lon_0=176.4661111111111 +k=1 +x_0=400000 +y_0=800000 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs "],"EPSG:2107":["EPSG:2107","+proj=tmerc +lat_0=-38.62444444444444 +lon_0=177.8855555555556 +k=1 +x_0=400000 +y_0=800000 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs "],"EPSG:2108":["EPSG:2108","+proj=tmerc +lat_0=-39.65083333333333 +lon_0=176.6736111111111 +k=1 +x_0=400000 +y_0=800000 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs "],"EPSG:2109":["EPSG:2109","+proj=tmerc +lat_0=-39.13555555555556 +lon_0=174.2277777777778 +k=1 +x_0=400000 +y_0=800000 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs "],"EPSG:2110":["EPSG:2110","+proj=tmerc +lat_0=-39.51222222222222 +lon_0=175.64 +k=1 +x_0=400000 +y_0=800000 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs "],"EPSG:2111":["EPSG:2111","+proj=tmerc +lat_0=-40.24194444444444 +lon_0=175.4880555555555 +k=1 +x_0=400000 +y_0=800000 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs "]}},65596:(e,t,n)=>{"use strict";var r=n(50448);function i(){}function o(){}o.resetWarningCache=i,e.exports=function(){function e(e,t,n,i,o,s){if(s!==r){var a=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw a.name="Invariant Violation",a}}function t(){return e}e.isRequired=e;var n={array:e,bigint:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:o,resetWarningCache:i};return n.PropTypes=n,n}},40308:(e,t,n)=>{e.exports=n(65596)()},50448:e=>{"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},4436:e=>{"use strict";function t(e){this._maxSize=e,this.clear()}t.prototype.clear=function(){this._size=0,this._values=Object.create(null)},t.prototype.get=function(e){return this._values[e]},t.prototype.set=function(e,t){return this._size>=this._maxSize&&this.clear(),e in this._values||this._size++,this._values[e]=t};var n=/[^.^\]^[]+|(?=\[\]|\.\.)/g,r=/^\d+$/,i=/^\d/,o=/[~`!#$%\^&*+=\-\[\]\\';,/{}|\\":<>\?]/g,s=/^\s*(['"]?)(.*?)(\1)\s*$/,a=new t(512),l=new t(512),c=new t(512);function u(e){return a.get(e)||a.set(e,d(e).map((function(e){return e.replace(s,"$2")})))}function d(e){return e.match(n)||[""]}function h(e){return"string"===typeof e&&e&&-1!==["'",'"'].indexOf(e.charAt(0))}function p(e){return!h(e)&&(function(e){return e.match(i)&&!e.match(r)}(e)||function(e){return o.test(e)}(e))}e.exports={Cache:t,split:d,normalizePath:u,setter:function(e){var t=u(e);return l.get(e)||l.set(e,(function(e,n){for(var r=0,i=t.length,o=e;r<i-1;){var s=t[r];if("__proto__"===s||"constructor"===s||"prototype"===s)return e;o=o[t[r++]]}o[t[r]]=n}))},getter:function(e,t){var n=u(e);return c.get(e)||c.set(e,(function(e){for(var r=0,i=n.length;r<i;){if(null==e&&t)return;e=e[n[r++]]}return e}))},join:function(e){return e.reduce((function(e,t){return e+(h(t)||r.test(t)?"["+t+"]":(e?".":"")+t)}),"")},forEach:function(e,t,n){!function(e,t,n){var r,i,o,s,a=e.length;for(i=0;i<a;i++)(r=e[i])&&(p(r)&&(r='"'+r+'"'),o=!(s=h(r))&&/^\d+$/.test(r),t.call(n,r,s,o,i,e))}(Array.isArray(e)?e:d(e),t,n)}}},24288:function(e){e.exports=function(){"use strict";function e(e,r,i,o,s){!function e(n,r,i,o,s){for(;o>i;){if(o-i>600){var a=o-i+1,l=r-i+1,c=Math.log(a),u=.5*Math.exp(2*c/3),d=.5*Math.sqrt(c*u*(a-u)/a)*(l-a/2<0?-1:1);e(n,r,Math.max(i,Math.floor(r-l*u/a+d)),Math.min(o,Math.floor(r+(a-l)*u/a+d)),s)}var h=n[r],p=i,f=o;for(t(n,i,r),s(n[o],h)>0&&t(n,i,o);p<f;){for(t(n,p,f),p++,f--;s(n[p],h)<0;)p++;for(;s(n[f],h)>0;)f--}0===s(n[i],h)?t(n,i,f):t(n,++f,o),f<=r&&(i=f+1),r<=f&&(o=f-1)}}(e,r,i||0,o||e.length-1,s||n)}function t(e,t,n){var r=e[t];e[t]=e[n],e[n]=r}function n(e,t){return e<t?-1:e>t?1:0}var r=function(e){void 0===e&&(e=9),this._maxEntries=Math.max(4,e),this._minEntries=Math.max(2,Math.ceil(.4*this._maxEntries)),this.clear()};function i(e,t,n){if(!n)return t.indexOf(e);for(var r=0;r<t.length;r++)if(n(e,t[r]))return r;return-1}function o(e,t){s(e,0,e.children.length,t,e)}function s(e,t,n,r,i){i||(i=f(null)),i.minX=1/0,i.minY=1/0,i.maxX=-1/0,i.maxY=-1/0;for(var o=t;o<n;o++){var s=e.children[o];a(i,e.leaf?r(s):s)}return i}function a(e,t){return e.minX=Math.min(e.minX,t.minX),e.minY=Math.min(e.minY,t.minY),e.maxX=Math.max(e.maxX,t.maxX),e.maxY=Math.max(e.maxY,t.maxY),e}function l(e,t){return e.minX-t.minX}function c(e,t){return e.minY-t.minY}function u(e){return(e.maxX-e.minX)*(e.maxY-e.minY)}function d(e){return e.maxX-e.minX+(e.maxY-e.minY)}function h(e,t){return e.minX<=t.minX&&e.minY<=t.minY&&t.maxX<=e.maxX&&t.maxY<=e.maxY}function p(e,t){return t.minX<=e.maxX&&t.minY<=e.maxY&&t.maxX>=e.minX&&t.maxY>=e.minY}function f(e){return{children:e,height:1,leaf:!0,minX:1/0,minY:1/0,maxX:-1/0,maxY:-1/0}}function g(t,n,r,i,o){for(var s=[n,r];s.length;)if(!((r=s.pop())-(n=s.pop())<=i)){var a=n+Math.ceil((r-n)/i/2)*i;e(t,a,n,r,o),s.push(n,a,a,r)}}return r.prototype.all=function(){return this._all(this.data,[])},r.prototype.search=function(e){var t=this.data,n=[];if(!p(e,t))return n;for(var r=this.toBBox,i=[];t;){for(var o=0;o<t.children.length;o++){var s=t.children[o],a=t.leaf?r(s):s;p(e,a)&&(t.leaf?n.push(s):h(e,a)?this._all(s,n):i.push(s))}t=i.pop()}return n},r.prototype.collides=function(e){var t=this.data;if(!p(e,t))return!1;for(var n=[];t;){for(var r=0;r<t.children.length;r++){var i=t.children[r],o=t.leaf?this.toBBox(i):i;if(p(e,o)){if(t.leaf||h(e,o))return!0;n.push(i)}}t=n.pop()}return!1},r.prototype.load=function(e){if(!e||!e.length)return this;if(e.length<this._minEntries){for(var t=0;t<e.length;t++)this.insert(e[t]);return this}var n=this._build(e.slice(),0,e.length-1,0);if(this.data.children.length)if(this.data.height===n.height)this._splitRoot(this.data,n);else{if(this.data.height<n.height){var r=this.data;this.data=n,n=r}this._insert(n,this.data.height-n.height-1,!0)}else this.data=n;return this},r.prototype.insert=function(e){return e&&this._insert(e,this.data.height-1),this},r.prototype.clear=function(){return this.data=f([]),this},r.prototype.remove=function(e,t){if(!e)return this;for(var n,r,o,s=this.data,a=this.toBBox(e),l=[],c=[];s||l.length;){if(s||(s=l.pop(),r=l[l.length-1],n=c.pop(),o=!0),s.leaf){var u=i(e,s.children,t);if(-1!==u)return s.children.splice(u,1),l.push(s),this._condense(l),this}o||s.leaf||!h(s,a)?r?(n++,s=r.children[n],o=!1):s=null:(l.push(s),c.push(n),n=0,r=s,s=s.children[0])}return this},r.prototype.toBBox=function(e){return e},r.prototype.compareMinX=function(e,t){return e.minX-t.minX},r.prototype.compareMinY=function(e,t){return e.minY-t.minY},r.prototype.toJSON=function(){return this.data},r.prototype.fromJSON=function(e){return this.data=e,this},r.prototype._all=function(e,t){for(var n=[];e;)e.leaf?t.push.apply(t,e.children):n.push.apply(n,e.children),e=n.pop();return t},r.prototype._build=function(e,t,n,r){var i,s=n-t+1,a=this._maxEntries;if(s<=a)return o(i=f(e.slice(t,n+1)),this.toBBox),i;r||(r=Math.ceil(Math.log(s)/Math.log(a)),a=Math.ceil(s/Math.pow(a,r-1))),(i=f([])).leaf=!1,i.height=r;var l=Math.ceil(s/a),c=l*Math.ceil(Math.sqrt(a));g(e,t,n,c,this.compareMinX);for(var u=t;u<=n;u+=c){var d=Math.min(u+c-1,n);g(e,u,d,l,this.compareMinY);for(var h=u;h<=d;h+=l){var p=Math.min(h+l-1,d);i.children.push(this._build(e,h,p,r-1))}}return o(i,this.toBBox),i},r.prototype._chooseSubtree=function(e,t,n,r){for(;r.push(t),!t.leaf&&r.length-1!==n;){for(var i=1/0,o=1/0,s=void 0,a=0;a<t.children.length;a++){var l=t.children[a],c=u(l),d=(h=e,p=l,(Math.max(p.maxX,h.maxX)-Math.min(p.minX,h.minX))*(Math.max(p.maxY,h.maxY)-Math.min(p.minY,h.minY))-c);d<o?(o=d,i=c<i?c:i,s=l):d===o&&c<i&&(i=c,s=l)}t=s||t.children[0]}var h,p;return t},r.prototype._insert=function(e,t,n){var r=n?e:this.toBBox(e),i=[],o=this._chooseSubtree(r,this.data,t,i);for(o.children.push(e),a(o,r);t>=0&&i[t].children.length>this._maxEntries;)this._split(i,t),t--;this._adjustParentBBoxes(r,i,t)},r.prototype._split=function(e,t){var n=e[t],r=n.children.length,i=this._minEntries;this._chooseSplitAxis(n,i,r);var s=this._chooseSplitIndex(n,i,r),a=f(n.children.splice(s,n.children.length-s));a.height=n.height,a.leaf=n.leaf,o(n,this.toBBox),o(a,this.toBBox),t?e[t-1].children.push(a):this._splitRoot(n,a)},r.prototype._splitRoot=function(e,t){this.data=f([e,t]),this.data.height=e.height+1,this.data.leaf=!1,o(this.data,this.toBBox)},r.prototype._chooseSplitIndex=function(e,t,n){for(var r,i,o,a,l,c,d,h=1/0,p=1/0,f=t;f<=n-t;f++){var g=s(e,0,f,this.toBBox),m=s(e,f,n,this.toBBox),y=(i=g,o=m,a=void 0,l=void 0,c=void 0,d=void 0,a=Math.max(i.minX,o.minX),l=Math.max(i.minY,o.minY),c=Math.min(i.maxX,o.maxX),d=Math.min(i.maxY,o.maxY),Math.max(0,c-a)*Math.max(0,d-l)),v=u(g)+u(m);y<h?(h=y,r=f,p=v<p?v:p):y===h&&v<p&&(p=v,r=f)}return r||n-t},r.prototype._chooseSplitAxis=function(e,t,n){var r=e.leaf?this.compareMinX:l,i=e.leaf?this.compareMinY:c;this._allDistMargin(e,t,n,r)<this._allDistMargin(e,t,n,i)&&e.children.sort(r)},r.prototype._allDistMargin=function(e,t,n,r){e.children.sort(r);for(var i=this.toBBox,o=s(e,0,t,i),l=s(e,n-t,n,i),c=d(o)+d(l),u=t;u<n-t;u++){var h=e.children[u];a(o,e.leaf?i(h):h),c+=d(o)}for(var p=n-t-1;p>=t;p--){var f=e.children[p];a(l,e.leaf?i(f):f),c+=d(l)}return c},r.prototype._adjustParentBBoxes=function(e,t,n){for(var r=n;r>=0;r--)a(t[r],e)},r.prototype._condense=function(e){for(var t=e.length-1,n=void 0;t>=0;t--)0===e[t].children.length?t>0?(n=e[t-1].children).splice(n.indexOf(e[t]),1):this.clear():o(e[t],this.toBBox)},r}()},48080:(e,t,n)=>{e.exports=n(14736)},7168:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r,i=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),o=n(99584),s=(r=o)&&r.__esModule?r:{default:r},a=n(29504),l=n(79948);var c=function(e){function t(e){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var n=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==typeof t&&"function"!==typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return n.state={},n}return function(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),i(t,[{key:"buildURI",value:function(){return a.buildURI.apply(void 0,arguments)}},{key:"componentDidMount",value:function(){var e=this.props,t=e.data,n=e.headers,r=e.separator,i=e.enclosingCharacter,o=e.uFEFF,s=e.target,a=e.specs,l=e.replace;this.state.page=window.open(this.buildURI(t,o,n,r,i),s,a,l)}},{key:"getWindow",value:function(){return this.state.page}},{key:"render",value:function(){return null}}]),t}(s.default.Component);c.defaultProps=Object.assign(l.defaultProps,{target:"_blank"}),c.propTypes=l.propTypes,t.default=c},7808:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r,i=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},o=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),s=n(99584),a=(r=s)&&r.__esModule?r:{default:r},l=n(29504),c=n(79948);var u=function(e){function t(e){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var n=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==typeof t&&"function"!==typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return n.buildURI=n.buildURI.bind(n),n}return function(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),o(t,[{key:"buildURI",value:function(){return l.buildURI.apply(void 0,arguments)}},{key:"handleLegacy",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(window.navigator.msSaveOrOpenBlob){e.preventDefault();var n=this.props,r=n.data,i=n.headers,o=n.separator,s=n.filename,a=n.enclosingCharacter,c=n.uFEFF,u=t&&"function"===typeof r?r():r,d=new Blob([c?"\ufeff":"",(0,l.toCSV)(u,i,o,a)]);return window.navigator.msSaveBlob(d,s),!1}}},{key:"handleAsyncClick",value:function(e){var t=this;this.props.onClick(e,(function(n){!1!==n?t.handleLegacy(e,!0):e.preventDefault()}))}},{key:"handleSyncClick",value:function(e){!1===this.props.onClick(e)?e.preventDefault():this.handleLegacy(e)}},{key:"handleClick",value:function(){var e=this;return function(t){if("function"===typeof e.props.onClick)return e.props.asyncOnClick?e.handleAsyncClick(t):e.handleSyncClick(t);e.handleLegacy(t)}}},{key:"render",value:function(){var e=this,t=this.props,n=t.data,r=t.headers,o=t.separator,s=t.filename,l=t.uFEFF,c=t.children,u=(t.onClick,t.asyncOnClick,t.enclosingCharacter),d=function(e,t){var n={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}(t,["data","headers","separator","filename","uFEFF","children","onClick","asyncOnClick","enclosingCharacter"]),h="undefined"===typeof window?"":this.buildURI(n,l,r,o,u);return a.default.createElement("a",i({download:s},d,{ref:function(t){return e.link=t},target:"_self",href:h,onClick:this.handleClick()}),c)}}]),t}(a.default.Component);u.defaultProps=c.defaultProps,u.propTypes=c.propTypes,t.default=u},29504:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"===typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};function r(e){if(Array.isArray(e)){for(var t=0,n=Array(e.length);t<e.length;t++)n[t]=e[t];return n}return Array.from(e)}var i=t.isSafari=function(){return/^((?!chrome|android).)*safari/i.test(navigator.userAgent)},o=t.isJsons=function(e){return Array.isArray(e)&&e.every((function(e){return"object"===("undefined"===typeof e?"undefined":n(e))&&!(e instanceof Array)}))},s=t.isArrays=function(e){return Array.isArray(e)&&e.every((function(e){return Array.isArray(e)}))},a=t.jsonsHeaders=function(e){return Array.from(e.map((function(e){return Object.keys(e)})).reduce((function(e,t){return new Set([].concat(r(e),r(t)))}),[]))},l=t.jsons2arrays=function(e,t){var n=t=t||a(e),i=t;o(t)&&(n=t.map((function(e){return e.label})),i=t.map((function(e){return e.key})));var s=e.map((function(e){return i.map((function(t){return c(t,e)}))}));return[n].concat(r(s))},c=t.getHeaderValue=function(e,t){var n=e.replace(/\[([^\]]+)]/g,".$1").split(".").reduce((function(e,t,n,r){var i=e[t];if(void 0!==i&&null!==i)return i;r.splice(1)}),t);return void 0===n?e in t?t[e]:"":n},u=t.elementOrEmpty=function(e){return"undefined"===typeof e||null===e?"":e},d=t.joiner=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:",",n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:'"';return e.filter((function(e){return e})).map((function(e){return e.map((function(e){return u(e)})).map((function(e){return""+n+e+n})).join(t)})).join("\n")},h=t.arrays2csv=function(e,t,n,i){return d(t?[t].concat(r(e)):e,n,i)},p=t.jsons2csv=function(e,t,n,r){return d(l(e,t),n,r)},f=t.string2csv=function(e,t,n,r){return t?t.join(n)+"\n"+e:e.replace(/"/g,'""')},g=t.toCSV=function(e,t,n,r){if(o(e))return p(e,t,n,r);if(s(e))return h(e,t,n,r);if("string"===typeof e)return f(e,t,n);throw new TypeError('Data should be a "String", "Array of arrays" OR "Array of objects" ')};t.buildURI=function(e,t,n,r,o){var s=g(e,n,r,o),a=i()?"application/csv":"text/csv",l=new Blob([t?"\ufeff":"",s],{type:a}),c="data:"+a+";charset=utf-8,"+(t?"\ufeff":"")+s,u=window.URL||window.webkitURL;return"undefined"===typeof u.createObjectURL?c:u.createObjectURL(l)}},14736:(e,t,n)=>{"use strict";t.CSVLink=void 0;var r=o(n(7168)),i=o(n(7808));function o(e){return e&&e.__esModule?e:{default:e}}r.default,t.CSVLink=i.default},79948:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.PropsNotForwarded=t.defaultProps=t.propTypes=void 0;var r,i=n(99584),o=((r=i)&&r.__esModule,n(40308));t.propTypes={data:(0,o.oneOfType)([o.string,o.array,o.func]).isRequired,headers:o.array,target:o.string,separator:o.string,filename:o.string,uFEFF:o.bool,onClick:o.func,asyncOnClick:o.bool,enclosingCharacter:o.string},t.defaultProps={separator:",",filename:"generatedBy_react-csv.csv",uFEFF:!0,asyncOnClick:!1,enclosingCharacter:'"'},t.PropsNotForwarded=["data","headers"]},38736:(e,t,n)=>{"use strict";var r,i=n(99584),o=(r=i)&&"object"===typeof r&&"default"in r?r.default:r,s=n(28280),a=new s,l=a.getBrowser(),c=a.getCPU(),u=a.getDevice(),d=a.getEngine(),h=a.getOS(),p=a.getUA(),f=function(e){return a.setUA(e)},g=function(e){if(e){var t=new s(e);return{UA:t,browser:t.getBrowser(),cpu:t.getCPU(),device:t.getDevice(),engine:t.getEngine(),os:t.getOS(),ua:t.getUA(),setUserAgent:function(e){return t.setUA(e)}}}console.error("No userAgent string was provided")},m=Object.freeze({ClientUAInstance:a,browser:l,cpu:c,device:u,engine:d,os:h,ua:p,setUa:f,parseUserAgent:g});function y(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function v(e){return v="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"===typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},v(e)}function _(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function b(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function x(){return x=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},x.apply(this,arguments)}function S(e){return S=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},S(e)}function w(e,t){return w=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},w(e,t)}function E(e,t){if(null==e)return{};var n,r,i=function(e,t){if(null==e)return{};var n,r,i={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(i[n]=e[n]);return i}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function P(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function C(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!==typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null==n)return;var r,i,o=[],s=!0,a=!1;try{for(n=n.call(e);!(s=(r=n.next()).done)&&(o.push(r.value),!t||o.length!==t);s=!0);}catch(l){a=!0,i=l}finally{try{s||null==n.return||n.return()}finally{if(a)throw i}}return o}(e,t)||function(e,t){if(!e)return;if("string"===typeof e)return A(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return A(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function A(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var k="mobile",j="tablet",I="smarttv",G="console",T="wearable",M="embedded",O=void 0,R={Chrome:"Chrome",Firefox:"Firefox",Opera:"Opera",Yandex:"Yandex",Safari:"Safari",InternetExplorer:"Internet Explorer",Edge:"Edge",Chromium:"Chromium",Ie:"IE",MobileSafari:"Mobile Safari",EdgeChromium:"Edge Chromium",MIUI:"MIUI Browser",SamsungBrowser:"Samsung Browser"},D={IOS:"iOS",Android:"Android",WindowsPhone:"Windows Phone",Windows:"Windows",MAC_OS:"Mac OS"},N={isMobile:!1,isTablet:!1,isBrowser:!1,isSmartTV:!1,isConsole:!1,isWearable:!1},L=function(e){return e||(arguments.length>1&&void 0!==arguments[1]?arguments[1]:"none")},V=function(){return!("undefined"===typeof window||!window.navigator&&!navigator)&&(window.navigator||navigator)},F=function(e){var t=V();return t&&t.platform&&(-1!==t.platform.indexOf(e)||"MacIntel"===t.platform&&t.maxTouchPoints>1&&!window.MSStream)},z=function(e,t,n,r){return function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?y(Object(n),!0).forEach((function(t){b(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):y(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({},e,{vendor:L(t.vendor),model:L(t.model),os:L(n.name),osVersion:L(n.version),ua:L(r)})};var B=function(e){return e.type===k},U=function(e){return e.type===j},W=function(e){var t=e.type;return t===k||t===j},H=function(e){return e.type===I},q=function(e){return e.type===O},X=function(e){return e.type===T},Y=function(e){return e.type===G},K=function(e){return e.type===M},Z=function(e){var t=e.vendor;return L(t)},$=function(e){var t=e.model;return L(t)},J=function(e){var t=e.type;return L(t,"browser")},Q=function(e){return e.name===D.Android},ee=function(e){return e.name===D.Windows},te=function(e){return e.name===D.MAC_OS},ne=function(e){return e.name===D.WindowsPhone},re=function(e){return e.name===D.IOS},ie=function(e){var t=e.version;return L(t)},oe=function(e){var t=e.name;return L(t)},se=function(e){return e.name===R.Chrome},ae=function(e){return e.name===R.Firefox},le=function(e){return e.name===R.Chromium},ce=function(e){return e.name===R.Edge},ue=function(e){return e.name===R.Yandex},de=function(e){var t=e.name;return t===R.Safari||t===R.MobileSafari},he=function(e){return e.name===R.MobileSafari},pe=function(e){return e.name===R.Opera},fe=function(e){var t=e.name;return t===R.InternetExplorer||t===R.Ie},ge=function(e){return e.name===R.MIUI},me=function(e){return e.name===R.SamsungBrowser},ye=function(e){var t=e.version;return L(t)},ve=function(e){var t=e.major;return L(t)},_e=function(e){var t=e.name;return L(t)},be=function(e){var t=e.name;return L(t)},xe=function(e){var t=e.version;return L(t)},Se=function(){var e=V(),t=e&&e.userAgent&&e.userAgent.toLowerCase();return"string"===typeof t&&/electron/.test(t)},we=function(e){return"string"===typeof e&&-1!==e.indexOf("Edg/")},Ee=function(){var e=V();return e&&(/iPad|iPhone|iPod/.test(e.platform)||"MacIntel"===e.platform&&e.maxTouchPoints>1)&&!window.MSStream},Pe=function(){return F("iPad")},Ce=function(){return F("iPhone")},Ae=function(){return F("iPod")},ke=function(e){return L(e)};function je(e){var t=e||m,n=t.device,r=t.browser,i=t.os,o=t.engine,s=t.ua;return{isSmartTV:H(n),isConsole:Y(n),isWearable:X(n),isEmbedded:K(n),isMobileSafari:he(r)||Pe(),isChromium:le(r),isMobile:W(n)||Pe(),isMobileOnly:B(n),isTablet:U(n)||Pe(),isBrowser:q(n),isDesktop:q(n),isAndroid:Q(i),isWinPhone:ne(i),isIOS:re(i)||Pe(),isChrome:se(r),isFirefox:ae(r),isSafari:de(r),isOpera:pe(r),isIE:fe(r),osVersion:ie(i),osName:oe(i),fullBrowserVersion:ye(r),browserVersion:ve(r),browserName:_e(r),mobileVendor:Z(n),mobileModel:$(n),engineName:be(o),engineVersion:xe(o),getUA:ke(s),isEdge:ce(r)||we(s),isYandex:ue(r),deviceType:J(n),isIOS13:Ee(),isIPad13:Pe(),isIPhone13:Ce(),isIPod13:Ae(),isElectron:Se(),isEdgeChromium:we(s),isLegacyEdge:ce(r)&&!we(s),isWindows:ee(i),isMacOs:te(i),isMIUI:ge(r),isSamsungBrowser:me(r)}}var Ie=H(u),Ge=Y(u),Te=X(u),Me=K(u),Oe=he(l)||Pe(),Re=le(l),De=W(u)||Pe(),Ne=B(u),Le=U(u)||Pe(),Ve=q(u),Fe=q(u),ze=Q(h),Be=ne(h),Ue=re(h)||Pe(),We=se(l),He=ae(l),qe=de(l),Xe=pe(l),Ye=fe(l),Ke=ie(h),Ze=oe(h),$e=ye(l),Je=ve(l),Qe=_e(l),et=Z(u),tt=$(u),nt=be(d),rt=xe(d),it=ke(p),ot=ce(l)||we(p),st=ue(l),at=J(u),lt=Ee(),ct=Pe(),ut=Ce(),dt=Ae(),ht=Se(),pt=we(p),ft=ce(l)&&!we(p),gt=ee(h),mt=te(h),yt=ge(l),vt=me(l);function _t(e){var t=e||window.navigator.userAgent;return g(t)}t.y8=De},7424:(e,t,n)=>{"use strict";var r=n(99584);function i(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n<arguments.length;n++)t+="&args[]="+encodeURIComponent(arguments[n]);return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var o=Object.prototype.hasOwnProperty,s=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,a={},l={};function c(e){return!!o.call(l,e)||!o.call(a,e)&&(s.test(e)?l[e]=!0:(a[e]=!0,!1))}function u(e,t,n,r,i,o,s){this.acceptsBooleans=2===t||3===t||4===t,this.attributeName=r,this.attributeNamespace=i,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=o,this.removeEmptyString=s}var d={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach((function(e){d[e]=new u(e,0,!1,e,null,!1,!1)})),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach((function(e){var t=e[0];d[t]=new u(t,1,!1,e[1],null,!1,!1)})),["contentEditable","draggable","spellCheck","value"].forEach((function(e){d[e]=new u(e,2,!1,e.toLowerCase(),null,!1,!1)})),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach((function(e){d[e]=new u(e,2,!1,e,null,!1,!1)})),"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach((function(e){d[e]=new u(e,3,!1,e.toLowerCase(),null,!1,!1)})),["checked","multiple","muted","selected"].forEach((function(e){d[e]=new u(e,3,!0,e,null,!1,!1)})),["capture","download"].forEach((function(e){d[e]=new u(e,4,!1,e,null,!1,!1)})),["cols","rows","size","span"].forEach((function(e){d[e]=new u(e,6,!1,e,null,!1,!1)})),["rowSpan","start"].forEach((function(e){d[e]=new u(e,5,!1,e.toLowerCase(),null,!1,!1)}));var h=/[\-:]([a-z])/g;function p(e){return e[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach((function(e){var t=e.replace(h,p);d[t]=new u(t,1,!1,e,null,!1,!1)})),"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach((function(e){var t=e.replace(h,p);d[t]=new u(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)})),["xml:base","xml:lang","xml:space"].forEach((function(e){var t=e.replace(h,p);d[t]=new u(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)})),["tabIndex","crossOrigin"].forEach((function(e){d[e]=new u(e,1,!1,e.toLowerCase(),null,!1,!1)})),d.xlinkHref=new u("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach((function(e){d[e]=new u(e,1,!1,e.toLowerCase(),null,!0,!0)}));var f={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},g=["Webkit","ms","Moz","O"];Object.keys(f).forEach((function(e){g.forEach((function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),f[t]=f[e]}))}));var m=/["'&<>]/;function y(e){if("boolean"===typeof e||"number"===typeof e)return""+e;e=""+e;var t=m.exec(e);if(t){var n,r="",i=0;for(n=t.index;n<e.length;n++){switch(e.charCodeAt(n)){case 34:t="&quot;";break;case 38:t="&amp;";break;case 39:t="&#x27;";break;case 60:t="&lt;";break;case 62:t="&gt;";break;default:continue}i!==n&&(r+=e.substring(i,n)),i=n+1,r+=t}e=i!==n?r+e.substring(i,n):r}return e}var v=/([A-Z])/g,_=/^ms-/,b=Array.isArray;function x(e,t){return{insertionMode:e,selectedValue:t}}var S=new Map;function w(e,t,n){if("object"!==typeof n)throw Error(i(62));for(var r in t=!0,n)if(o.call(n,r)){var s=n[r];if(null!=s&&"boolean"!==typeof s&&""!==s){if(0===r.indexOf("--")){var a=y(r);s=y((""+s).trim())}else{a=r;var l=S.get(a);void 0!==l||(l=y(a.replace(v,"-$1").toLowerCase().replace(_,"-ms-")),S.set(a,l)),a=l,s="number"===typeof s?0===s||o.call(f,r)?""+s:s+"px":y((""+s).trim())}t?(t=!1,e.push(' style="',a,":",s)):e.push(";",a,":",s)}}t||e.push('"')}function E(e,t,n,r){switch(n){case"style":return void w(e,t,r);case"defaultValue":case"defaultChecked":case"innerHTML":case"suppressContentEditableWarning":case"suppressHydrationWarning":return}if(!(2<n.length)||"o"!==n[0]&&"O"!==n[0]||"n"!==n[1]&&"N"!==n[1])if(null!==(t=d.hasOwnProperty(n)?d[n]:null)){switch(typeof r){case"function":case"symbol":return;case"boolean":if(!t.acceptsBooleans)return}switch(n=t.attributeName,t.type){case 3:r&&e.push(" ",n,'=""');break;case 4:!0===r?e.push(" ",n,'=""'):!1!==r&&e.push(" ",n,'="',y(r),'"');break;case 5:isNaN(r)||e.push(" ",n,'="',y(r),'"');break;case 6:!isNaN(r)&&1<=r&&e.push(" ",n,'="',y(r),'"');break;default:t.sanitizeURL&&(r=""+r),e.push(" ",n,'="',y(r),'"')}}else if(c(n)){switch(typeof r){case"function":case"symbol":return;case"boolean":if("data-"!==(t=n.toLowerCase().slice(0,5))&&"aria-"!==t)return}e.push(" ",n,'="',y(r),'"')}}function P(e,t,n){if(null!=t){if(null!=n)throw Error(i(60));if("object"!==typeof t||!("__html"in t))throw Error(i(61));null!==(t=t.__html)&&void 0!==t&&e.push(""+t)}}function C(e,t,n,r){e.push(j(n));var i,s=n=null;for(i in t)if(o.call(t,i)){var a=t[i];if(null!=a)switch(i){case"children":n=a;break;case"dangerouslySetInnerHTML":s=a;break;default:E(e,r,i,a)}}return e.push(">"),P(e,s,n),"string"===typeof n?(e.push(y(n)),null):n}var A=/^[a-zA-Z][a-zA-Z:_\.\-\d]*$/,k=new Map;function j(e){var t=k.get(e);if(void 0===t){if(!A.test(e))throw Error(i(65,e));t="<"+e,k.set(e,t)}return t}function I(e,t,n,s,a){switch(t){case"select":e.push(j("select"));var l=null,u=null;for(f in n)if(o.call(n,f)){var d=n[f];if(null!=d)switch(f){case"children":l=d;break;case"dangerouslySetInnerHTML":u=d;break;case"defaultValue":case"value":break;default:E(e,s,f,d)}}return e.push(">"),P(e,u,l),l;case"option":u=a.selectedValue,e.push(j("option"));var h=d=null,p=null,f=null;for(l in n)if(o.call(n,l)){var g=n[l];if(null!=g)switch(l){case"children":d=g;break;case"selected":p=g;break;case"dangerouslySetInnerHTML":f=g;break;case"value":h=g;default:E(e,s,l,g)}}if(null!=u)if(n=null!==h?""+h:function(e){var t="";return r.Children.forEach(e,(function(e){null!=e&&(t+=e)})),t}(d),b(u)){for(s=0;s<u.length;s++)if(""+u[s]===n){e.push(' selected=""');break}}else""+u===n&&e.push(' selected=""');else p&&e.push(' selected=""');return e.push(">"),P(e,f,d),d;case"textarea":for(d in e.push(j("textarea")),f=u=l=null,n)if(o.call(n,d)&&null!=(h=n[d]))switch(d){case"children":f=h;break;case"value":l=h;break;case"defaultValue":u=h;break;case"dangerouslySetInnerHTML":throw Error(i(91));default:E(e,s,d,h)}if(null===l&&null!==u&&(l=u),e.push(">"),null!=f){if(null!=l)throw Error(i(92));if(b(f)&&1<f.length)throw Error(i(93));l=""+f}return"string"===typeof l&&"\n"===l[0]&&e.push("\n"),null!==l&&e.push(y(""+l)),null;case"input":for(u in e.push(j("input")),h=f=d=l=null,n)if(o.call(n,u)&&null!=(p=n[u]))switch(u){case"children":case"dangerouslySetInnerHTML":throw Error(i(399,"input"));case"defaultChecked":h=p;break;case"defaultValue":d=p;break;case"checked":f=p;break;case"value":l=p;break;default:E(e,s,u,p)}return null!==f?E(e,s,"checked",f):null!==h&&E(e,s,"checked",h),null!==l?E(e,s,"value",l):null!==d&&E(e,s,"value",d),e.push("/>"),null;case"menuitem":for(var m in e.push(j("menuitem")),n)if(o.call(n,m)&&null!=(l=n[m]))switch(m){case"children":case"dangerouslySetInnerHTML":throw Error(i(400));default:E(e,s,m,l)}return e.push(">"),null;case"title":for(g in e.push(j("title")),l=null,n)if(o.call(n,g)&&null!=(u=n[g]))switch(g){case"children":l=u;break;case"dangerouslySetInnerHTML":throw Error(i(434));default:E(e,s,g,u)}return e.push(">"),l;case"listing":case"pre":for(h in e.push(j(t)),u=l=null,n)if(o.call(n,h)&&null!=(d=n[h]))switch(h){case"children":l=d;break;case"dangerouslySetInnerHTML":u=d;break;default:E(e,s,h,d)}if(e.push(">"),null!=u){if(null!=l)throw Error(i(60));if("object"!==typeof u||!("__html"in u))throw Error(i(61));null!==(n=u.__html)&&void 0!==n&&("string"===typeof n&&0<n.length&&"\n"===n[0]?e.push("\n",n):e.push(""+n))}return"string"===typeof l&&"\n"===l[0]&&e.push("\n"),l;case"area":case"base":case"br":case"col":case"embed":case"hr":case"img":case"keygen":case"link":case"meta":case"param":case"source":case"track":case"wbr":for(var v in e.push(j(t)),n)if(o.call(n,v)&&null!=(l=n[v]))switch(v){case"children":case"dangerouslySetInnerHTML":throw Error(i(399,t));default:E(e,s,v,l)}return e.push("/>"),null;case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return C(e,n,t,s);case"html":return 0===a.insertionMode&&e.push("<!DOCTYPE html>"),C(e,n,t,s);default:if(-1===t.indexOf("-")&&"string"!==typeof n.is)return C(e,n,t,s);for(p in e.push(j(t)),u=l=null,n)if(o.call(n,p)&&null!=(d=n[p]))switch(p){case"children":l=d;break;case"dangerouslySetInnerHTML":u=d;break;case"style":w(e,s,d);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":break;default:c(p)&&"function"!==typeof d&&"symbol"!==typeof d&&e.push(" ",p,'="',y(d),'"')}return e.push(">"),P(e,u,l),l}}function G(e,t,n){if(e.push('\x3c!--$?--\x3e<template id="'),null===n)throw Error(i(395));return e.push(n),e.push('"></template>')}var T=/[<\u2028\u2029]/g;function M(e){return JSON.stringify(e).replace(T,(function(e){switch(e){case"<":return"\\u003c";case"\u2028":return"\\u2028";case"\u2029":return"\\u2029";default:throw Error("escapeJSStringsForInstructionScripts encountered a match it does not know how to replace. this means the match regex and the replacement characters are no longer in sync. This is a bug in React")}}))}function O(e,t,n,r){return n.generateStaticMarkup?(e.push(y(t)),!1):(""===t?e=r:(r&&e.push("\x3c!-- --\x3e"),e.push(y(t)),e=!0),e)}var R=Object.assign,D=Symbol.for("react.element"),N=Symbol.for("react.portal"),L=Symbol.for("react.fragment"),V=Symbol.for("react.strict_mode"),F=Symbol.for("react.profiler"),z=Symbol.for("react.provider"),B=Symbol.for("react.context"),U=Symbol.for("react.forward_ref"),W=Symbol.for("react.suspense"),H=Symbol.for("react.suspense_list"),q=Symbol.for("react.memo"),X=Symbol.for("react.lazy"),Y=Symbol.for("react.scope"),K=Symbol.for("react.debug_trace_mode"),Z=Symbol.for("react.legacy_hidden"),$=Symbol.for("react.default_value"),J=Symbol.iterator;function Q(e){if(null==e)return null;if("function"===typeof e)return e.displayName||e.name||null;if("string"===typeof e)return e;switch(e){case L:return"Fragment";case N:return"Portal";case F:return"Profiler";case V:return"StrictMode";case W:return"Suspense";case H:return"SuspenseList"}if("object"===typeof e)switch(e.$$typeof){case B:return(e.displayName||"Context")+".Consumer";case z:return(e._context.displayName||"Context")+".Provider";case U:var t=e.render;return(e=e.displayName)||(e=""!==(e=t.displayName||t.name||"")?"ForwardRef("+e+")":"ForwardRef"),e;case q:return null!==(t=e.displayName||null)?t:Q(e.type)||"Memo";case X:t=e._payload,e=e._init;try{return Q(e(t))}catch(n){}}return null}var ee={};function te(e,t){if(!(e=e.contextTypes))return ee;var n,r={};for(n in e)r[n]=t[n];return r}var ne=null;function re(e,t){if(e!==t){e.context._currentValue2=e.parentValue,e=e.parent;var n=t.parent;if(null===e){if(null!==n)throw Error(i(401))}else{if(null===n)throw Error(i(401));re(e,n)}t.context._currentValue2=t.value}}function ie(e){e.context._currentValue2=e.parentValue,null!==(e=e.parent)&&ie(e)}function oe(e){var t=e.parent;null!==t&&oe(t),e.context._currentValue2=e.value}function se(e,t){if(e.context._currentValue2=e.parentValue,null===(e=e.parent))throw Error(i(402));e.depth===t.depth?re(e,t):se(e,t)}function ae(e,t){var n=t.parent;if(null===n)throw Error(i(402));e.depth===n.depth?re(e,n):ae(e,n),t.context._currentValue2=t.value}function le(e){var t=ne;t!==e&&(null===t?oe(e):null===e?ie(t):t.depth===e.depth?re(t,e):t.depth>e.depth?se(t,e):ae(t,e),ne=e)}var ce={isMounted:function(){return!1},enqueueSetState:function(e,t){null!==(e=e._reactInternals).queue&&e.queue.push(t)},enqueueReplaceState:function(e,t){(e=e._reactInternals).replace=!0,e.queue=[t]},enqueueForceUpdate:function(){}};function ue(e,t,n,r){var i=void 0!==e.state?e.state:null;e.updater=ce,e.props=n,e.state=i;var o={queue:[],replace:!1};e._reactInternals=o;var s=t.contextType;if(e.context="object"===typeof s&&null!==s?s._currentValue2:r,"function"===typeof(s=t.getDerivedStateFromProps)&&(i=null===(s=s(n,i))||void 0===s?i:R({},i,s),e.state=i),"function"!==typeof t.getDerivedStateFromProps&&"function"!==typeof e.getSnapshotBeforeUpdate&&("function"===typeof e.UNSAFE_componentWillMount||"function"===typeof e.componentWillMount))if(t=e.state,"function"===typeof e.componentWillMount&&e.componentWillMount(),"function"===typeof e.UNSAFE_componentWillMount&&e.UNSAFE_componentWillMount(),t!==e.state&&ce.enqueueReplaceState(e,e.state,null),null!==o.queue&&0<o.queue.length)if(t=o.queue,s=o.replace,o.queue=null,o.replace=!1,s&&1===t.length)e.state=t[0];else{for(o=s?t[0]:e.state,i=!0,s=s?1:0;s<t.length;s++){var a=t[s];null!=(a="function"===typeof a?a.call(e,o,n,r):a)&&(i?(i=!1,o=R({},o,a)):R(o,a))}e.state=o}else o.queue=null}var de={id:1,overflow:""};function he(e,t,n){var r=e.id;e=e.overflow;var i=32-pe(r)-1;r&=~(1<<i),n+=1;var o=32-pe(t)+i;if(30<o){var s=i-i%5;return o=(r&(1<<s)-1).toString(32),r>>=s,i-=s,{id:1<<32-pe(t)+i|n<<i|r,overflow:o+e}}return{id:1<<o|n<<i|r,overflow:e}}var pe=Math.clz32?Math.clz32:function(e){return 0===(e>>>=0)?32:31-(fe(e)/ge|0)|0},fe=Math.log,ge=Math.LN2;var me="function"===typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e===1/t)||e!==e&&t!==t},ye=null,ve=null,_e=null,be=null,xe=!1,Se=!1,we=0,Ee=null,Pe=0;function Ce(){if(null===ye)throw Error(i(321));return ye}function Ae(){if(0<Pe)throw Error(i(312));return{memoizedState:null,queue:null,next:null}}function ke(){return null===be?null===_e?(xe=!1,_e=be=Ae()):(xe=!0,be=_e):null===be.next?(xe=!1,be=be.next=Ae()):(xe=!0,be=be.next),be}function je(){ve=ye=null,Se=!1,_e=null,Pe=0,be=Ee=null}function Ie(e,t){return"function"===typeof t?t(e):t}function Ge(e,t,n){if(ye=Ce(),be=ke(),xe){var r=be.queue;if(t=r.dispatch,null!==Ee&&void 0!==(n=Ee.get(r))){Ee.delete(r),r=be.memoizedState;do{r=e(r,n.action),n=n.next}while(null!==n);return be.memoizedState=r,[r,t]}return[be.memoizedState,t]}return e=e===Ie?"function"===typeof t?t():t:void 0!==n?n(t):t,be.memoizedState=e,e=(e=be.queue={last:null,dispatch:null}).dispatch=Me.bind(null,ye,e),[be.memoizedState,e]}function Te(e,t){if(ye=Ce(),t=void 0===t?null:t,null!==(be=ke())){var n=be.memoizedState;if(null!==n&&null!==t){var r=n[1];e:if(null===r)r=!1;else{for(var i=0;i<r.length&&i<t.length;i++)if(!me(t[i],r[i])){r=!1;break e}r=!0}if(r)return n[0]}}return e=e(),be.memoizedState=[e,t],e}function Me(e,t,n){if(25<=Pe)throw Error(i(301));if(e===ye)if(Se=!0,e={action:n,next:null},null===Ee&&(Ee=new Map),void 0===(n=Ee.get(t)))Ee.set(t,e);else{for(t=n;null!==t.next;)t=t.next;t.next=e}}function Oe(){throw Error(i(394))}function Re(){}var De={readContext:function(e){return e._currentValue2},useContext:function(e){return Ce(),e._currentValue2},useMemo:Te,useReducer:Ge,useRef:function(e){ye=Ce();var t=(be=ke()).memoizedState;return null===t?(e={current:e},be.memoizedState=e):t},useState:function(e){return Ge(Ie,e)},useInsertionEffect:Re,useLayoutEffect:function(){},useCallback:function(e,t){return Te((function(){return e}),t)},useImperativeHandle:Re,useEffect:Re,useDebugValue:Re,useDeferredValue:function(e){return Ce(),e},useTransition:function(){return Ce(),[!1,Oe]},useId:function(){var e=ve.treeContext,t=e.overflow;e=((e=e.id)&~(1<<32-pe(e)-1)).toString(32)+t;var n=Ne;if(null===n)throw Error(i(404));return t=we++,e=":"+n.idPrefix+"R"+e,0<t&&(e+="H"+t.toString(32)),e+":"},useMutableSource:function(e,t){return Ce(),t(e._source)},useSyncExternalStore:function(e,t,n){if(void 0===n)throw Error(i(407));return n()}},Ne=null,Le=r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentDispatcher;function Ve(e){return console.error(e),null}function Fe(){}function ze(e,t,n,r,i,o,s,a){e.allPendingTasks++,null===n?e.pendingRootTasks++:n.pendingTasks++;var l={node:t,ping:function(){var t=e.pingedTasks;t.push(l),1===t.length&&nt(e)},blockedBoundary:n,blockedSegment:r,abortSet:i,legacyContext:o,context:s,treeContext:a};return i.add(l),l}function Be(e,t,n,r,i,o){return{status:0,id:-1,index:t,parentFlushed:!1,chunks:[],children:[],formatContext:r,boundary:n,lastPushedText:i,textEmbedded:o}}function Ue(e,t){if(null!=(e=e.onError(t))&&"string"!==typeof e)throw Error('onError returned something with a type other than "string". onError should return a string and may return null or undefined but must not return anything else. It received something of type "'+typeof e+'" instead');return e}function We(e,t){var n=e.onShellError;n(t),(n=e.onFatalError)(t),null!==e.destination?(e.status=2,e.destination.destroy(t)):(e.status=1,e.fatalError=t)}function He(e,t,n,r,i){for(ye={},ve=t,we=0,e=n(r,i);Se;)Se=!1,we=0,Pe+=1,be=null,e=n(r,i);return je(),e}function qe(e,t,n,r){var o=n.render(),s=r.childContextTypes;if(null!==s&&void 0!==s){var a=t.legacyContext;if("function"!==typeof n.getChildContext)r=a;else{for(var l in n=n.getChildContext())if(!(l in s))throw Error(i(108,Q(r)||"Unknown",l));r=R({},a,n)}t.legacyContext=r,Ke(e,t,o),t.legacyContext=a}else Ke(e,t,o)}function Xe(e,t){if(e&&e.defaultProps){for(var n in t=R({},t),e=e.defaultProps)void 0===t[n]&&(t[n]=e[n]);return t}return t}function Ye(e,t,n,r,o){if("function"===typeof n)if(n.prototype&&n.prototype.isReactComponent){o=te(n,t.legacyContext);var s=n.contextType;ue(s=new n(r,"object"===typeof s&&null!==s?s._currentValue2:o),n,r,o),qe(e,t,s,n)}else{o=He(e,t,n,r,s=te(n,t.legacyContext));var a=0!==we;if("object"===typeof o&&null!==o&&"function"===typeof o.render&&void 0===o.$$typeof)ue(o,n,r,s),qe(e,t,o,n);else if(a){r=t.treeContext,t.treeContext=he(r,1,0);try{Ke(e,t,o)}finally{t.treeContext=r}}else Ke(e,t,o)}else{if("string"!==typeof n){switch(n){case Z:case K:case V:case F:case L:case H:return void Ke(e,t,r.children);case Y:throw Error(i(343));case W:e:{n=t.blockedBoundary,o=t.blockedSegment,s=r.fallback,r=r.children;var l={id:null,rootSegmentID:-1,parentFlushed:!1,pendingTasks:0,forceClientRender:!1,completedSegments:[],byteSize:0,fallbackAbortableTasks:a=new Set,errorDigest:null},c=Be(0,o.chunks.length,l,o.formatContext,!1,!1);o.children.push(c),o.lastPushedText=!1;var u=Be(0,0,null,o.formatContext,!1,!1);u.parentFlushed=!0,t.blockedBoundary=l,t.blockedSegment=u;try{if($e(e,t,r),e.responseState.generateStaticMarkup||u.lastPushedText&&u.textEmbedded&&u.chunks.push("\x3c!-- --\x3e"),u.status=1,et(l,u),0===l.pendingTasks)break e}catch(d){u.status=4,l.forceClientRender=!0,l.errorDigest=Ue(e,d)}finally{t.blockedBoundary=n,t.blockedSegment=o}t=ze(e,s,n,c,a,t.legacyContext,t.context,t.treeContext),e.pingedTasks.push(t)}return}if("object"===typeof n&&null!==n)switch(n.$$typeof){case U:if(r=He(e,t,n.render,r,o),0!==we){n=t.treeContext,t.treeContext=he(n,1,0);try{Ke(e,t,r)}finally{t.treeContext=n}}else Ke(e,t,r);return;case q:return void Ye(e,t,n=n.type,r=Xe(n,r),o);case z:if(o=r.children,n=n._context,r=r.value,s=n._currentValue2,n._currentValue2=r,ne=r={parent:a=ne,depth:null===a?0:a.depth+1,context:n,parentValue:s,value:r},t.context=r,Ke(e,t,o),null===(e=ne))throw Error(i(403));return r=e.parentValue,e.context._currentValue2=r===$?e.context._defaultValue:r,e=ne=e.parent,void(t.context=e);case B:return void Ke(e,t,r=(r=r.children)(n._currentValue2));case X:return void Ye(e,t,n=(o=n._init)(n._payload),r=Xe(n,r),void 0)}throw Error(i(130,null==n?n:typeof n,""))}switch(s=I((o=t.blockedSegment).chunks,n,r,e.responseState,o.formatContext),o.lastPushedText=!1,a=o.formatContext,o.formatContext=function(e,t,n){switch(t){case"select":return x(1,null!=n.value?n.value:n.defaultValue);case"svg":return x(2,null);case"math":return x(3,null);case"foreignObject":return x(1,null);case"table":return x(4,null);case"thead":case"tbody":case"tfoot":return x(5,null);case"colgroup":return x(7,null);case"tr":return x(6,null)}return 4<=e.insertionMode||0===e.insertionMode?x(1,null):e}(a,n,r),$e(e,t,s),o.formatContext=a,n){case"area":case"base":case"br":case"col":case"embed":case"hr":case"img":case"input":case"keygen":case"link":case"meta":case"param":case"source":case"track":case"wbr":break;default:o.chunks.push("</",n,">")}o.lastPushedText=!1}}function Ke(e,t,n){if(t.node=n,"object"===typeof n&&null!==n){switch(n.$$typeof){case D:return void Ye(e,t,n.type,n.props,n.ref);case N:throw Error(i(257));case X:var r=n._init;return void Ke(e,t,n=r(n._payload))}if(b(n))return void Ze(e,t,n);if(null===n||"object"!==typeof n?r=null:r="function"===typeof(r=J&&n[J]||n["@@iterator"])?r:null,r&&(r=r.call(n))){if(!(n=r.next()).done){var o=[];do{o.push(n.value),n=r.next()}while(!n.done);Ze(e,t,o)}return}throw e=Object.prototype.toString.call(n),Error(i(31,"[object Object]"===e?"object with keys {"+Object.keys(n).join(", ")+"}":e))}"string"===typeof n?(r=t.blockedSegment).lastPushedText=O(t.blockedSegment.chunks,n,e.responseState,r.lastPushedText):"number"===typeof n&&((r=t.blockedSegment).lastPushedText=O(t.blockedSegment.chunks,""+n,e.responseState,r.lastPushedText))}function Ze(e,t,n){for(var r=n.length,i=0;i<r;i++){var o=t.treeContext;t.treeContext=he(o,r,i);try{$e(e,t,n[i])}finally{t.treeContext=o}}}function $e(e,t,n){var r=t.blockedSegment.formatContext,i=t.legacyContext,o=t.context;try{return Ke(e,t,n)}catch(l){if(je(),"object"!==typeof l||null===l||"function"!==typeof l.then)throw t.blockedSegment.formatContext=r,t.legacyContext=i,t.context=o,le(o),l;n=l;var s=t.blockedSegment,a=Be(0,s.chunks.length,null,s.formatContext,s.lastPushedText,!0);s.children.push(a),s.lastPushedText=!1,e=ze(e,t.node,t.blockedBoundary,a,t.abortSet,t.legacyContext,t.context,t.treeContext).ping,n.then(e,e),t.blockedSegment.formatContext=r,t.legacyContext=i,t.context=o,le(o)}}function Je(e){var t=e.blockedBoundary;(e=e.blockedSegment).status=3,tt(this,t,e)}function Qe(e,t,n){var r=e.blockedBoundary;e.blockedSegment.status=3,null===r?(t.allPendingTasks--,2!==t.status&&(t.status=2,null!==t.destination&&t.destination.push(null))):(r.pendingTasks--,r.forceClientRender||(r.forceClientRender=!0,e=void 0===n?Error(i(432)):n,r.errorDigest=t.onError(e),r.parentFlushed&&t.clientRenderedBoundaries.push(r)),r.fallbackAbortableTasks.forEach((function(e){return Qe(e,t,n)})),r.fallbackAbortableTasks.clear(),t.allPendingTasks--,0===t.allPendingTasks&&(r=t.onAllReady)())}function et(e,t){if(0===t.chunks.length&&1===t.children.length&&null===t.children[0].boundary){var n=t.children[0];n.id=t.id,n.parentFlushed=!0,1===n.status&&et(e,n)}else e.completedSegments.push(t)}function tt(e,t,n){if(null===t){if(n.parentFlushed){if(null!==e.completedRootSegment)throw Error(i(389));e.completedRootSegment=n}e.pendingRootTasks--,0===e.pendingRootTasks&&(e.onShellError=Fe,(t=e.onShellReady)())}else t.pendingTasks--,t.forceClientRender||(0===t.pendingTasks?(n.parentFlushed&&1===n.status&&et(t,n),t.parentFlushed&&e.completedBoundaries.push(t),t.fallbackAbortableTasks.forEach(Je,e),t.fallbackAbortableTasks.clear()):n.parentFlushed&&1===n.status&&(et(t,n),1===t.completedSegments.length&&t.parentFlushed&&e.partialBoundaries.push(t)));e.allPendingTasks--,0===e.allPendingTasks&&(e=e.onAllReady)()}function nt(e){if(2!==e.status){var t=ne,n=Le.current;Le.current=De;var r=Ne;Ne=e.responseState;try{var i,o=e.pingedTasks;for(i=0;i<o.length;i++){var s=o[i],a=e,l=s.blockedSegment;if(0===l.status){le(s.context);try{Ke(a,s,s.node),a.responseState.generateStaticMarkup||l.lastPushedText&&l.textEmbedded&&l.chunks.push("\x3c!-- --\x3e"),s.abortSet.delete(s),l.status=1,tt(a,s.blockedBoundary,l)}catch(p){if(je(),"object"===typeof p&&null!==p&&"function"===typeof p.then){var c=s.ping;p.then(c,c)}else{s.abortSet.delete(s),l.status=4;var u=s.blockedBoundary,d=p,h=Ue(a,d);if(null===u?We(a,d):(u.pendingTasks--,u.forceClientRender||(u.forceClientRender=!0,u.errorDigest=h,u.parentFlushed&&a.clientRenderedBoundaries.push(u))),a.allPendingTasks--,0===a.allPendingTasks)(0,a.onAllReady)()}}}}o.splice(0,i),null!==e.destination&&lt(e,e.destination)}catch(p){Ue(e,p),We(e,p)}finally{Ne=r,Le.current=n,n===De&&le(t)}}}function rt(e,t,n){switch(n.parentFlushed=!0,n.status){case 0:var r=n.id=e.nextSegmentId++;return n.lastPushedText=!1,n.textEmbedded=!1,e=e.responseState,t.push('<template id="'),t.push(e.placeholderPrefix),e=r.toString(16),t.push(e),t.push('"></template>');case 1:n.status=2;var o=!0;r=n.chunks;var s=0;n=n.children;for(var a=0;a<n.length;a++){for(o=n[a];s<o.index;s++)t.push(r[s]);o=it(e,t,o)}for(;s<r.length-1;s++)t.push(r[s]);return s<r.length&&(o=t.push(r[s])),o;default:throw Error(i(390))}}function it(e,t,n){var r=n.boundary;if(null===r)return rt(e,t,n);if(r.parentFlushed=!0,r.forceClientRender)return e.responseState.generateStaticMarkup||(r=r.errorDigest,t.push("\x3c!--$!--\x3e"),t.push("<template"),r&&(t.push(' data-dgst="'),r=y(r),t.push(r),t.push('"')),t.push("></template>")),rt(e,t,n),e=!!e.responseState.generateStaticMarkup||t.push("\x3c!--/$--\x3e");if(0<r.pendingTasks){r.rootSegmentID=e.nextSegmentId++,0<r.completedSegments.length&&e.partialBoundaries.push(r);var o=e.responseState,s=o.nextSuspenseID++;return o=o.boundaryPrefix+s.toString(16),r=r.id=o,G(t,e.responseState,r),rt(e,t,n),t.push("\x3c!--/$--\x3e")}if(r.byteSize>e.progressiveChunkSize)return r.rootSegmentID=e.nextSegmentId++,e.completedBoundaries.push(r),G(t,e.responseState,r.id),rt(e,t,n),t.push("\x3c!--/$--\x3e");if(e.responseState.generateStaticMarkup||t.push("\x3c!--$--\x3e"),1!==(n=r.completedSegments).length)throw Error(i(391));return it(e,t,n[0]),e=!!e.responseState.generateStaticMarkup||t.push("\x3c!--/$--\x3e")}function ot(e,t,n){return function(e,t,n,r){switch(n.insertionMode){case 0:case 1:return e.push('<div hidden id="'),e.push(t.segmentPrefix),t=r.toString(16),e.push(t),e.push('">');case 2:return e.push('<svg aria-hidden="true" style="display:none" id="'),e.push(t.segmentPrefix),t=r.toString(16),e.push(t),e.push('">');case 3:return e.push('<math aria-hidden="true" style="display:none" id="'),e.push(t.segmentPrefix),t=r.toString(16),e.push(t),e.push('">');case 4:return e.push('<table hidden id="'),e.push(t.segmentPrefix),t=r.toString(16),e.push(t),e.push('">');case 5:return e.push('<table hidden><tbody id="'),e.push(t.segmentPrefix),t=r.toString(16),e.push(t),e.push('">');case 6:return e.push('<table hidden><tr id="'),e.push(t.segmentPrefix),t=r.toString(16),e.push(t),e.push('">');case 7:return e.push('<table hidden><colgroup id="'),e.push(t.segmentPrefix),t=r.toString(16),e.push(t),e.push('">');default:throw Error(i(397))}}(t,e.responseState,n.formatContext,n.id),it(e,t,n),function(e,t){switch(t.insertionMode){case 0:case 1:return e.push("</div>");case 2:return e.push("</svg>");case 3:return e.push("</math>");case 4:return e.push("</table>");case 5:return e.push("</tbody></table>");case 6:return e.push("</tr></table>");case 7:return e.push("</colgroup></table>");default:throw Error(i(397))}}(t,n.formatContext)}function st(e,t,n){for(var r=n.completedSegments,o=0;o<r.length;o++)at(e,t,n,r[o]);if(r.length=0,e=e.responseState,r=n.id,n=n.rootSegmentID,t.push(e.startInlineScript),e.sentCompleteBoundaryFunction?t.push('$RC("'):(e.sentCompleteBoundaryFunction=!0,t.push('function $RC(a,b){a=document.getElementById(a);b=document.getElementById(b);b.parentNode.removeChild(b);if(a){a=a.previousSibling;var f=a.parentNode,c=a.nextSibling,e=0;do{if(c&&8===c.nodeType){var d=c.data;if("/$"===d)if(0===e)break;else e--;else"$"!==d&&"$?"!==d&&"$!"!==d||e++}d=c.nextSibling;f.removeChild(c);c=d}while(c);for(;b.firstChild;)f.insertBefore(b.firstChild,c);a.data="$";a._reactRetry&&a._reactRetry()}};$RC("')),null===r)throw Error(i(395));return n=n.toString(16),t.push(r),t.push('","'),t.push(e.segmentPrefix),t.push(n),t.push('")<\/script>')}function at(e,t,n,r){if(2===r.status)return!0;var o=r.id;if(-1===o){if(-1===(r.id=n.rootSegmentID))throw Error(i(392));return ot(e,t,r)}return ot(e,t,r),e=e.responseState,t.push(e.startInlineScript),e.sentCompleteSegmentFunction?t.push('$RS("'):(e.sentCompleteSegmentFunction=!0,t.push('function $RS(a,b){a=document.getElementById(a);b=document.getElementById(b);for(a.parentNode.removeChild(a);a.firstChild;)b.parentNode.insertBefore(a.firstChild,b);b.parentNode.removeChild(b)};$RS("')),t.push(e.segmentPrefix),o=o.toString(16),t.push(o),t.push('","'),t.push(e.placeholderPrefix),t.push(o),t.push('")<\/script>')}function lt(e,t){try{var n=e.completedRootSegment;if(null!==n&&0===e.pendingRootTasks){it(e,t,n),e.completedRootSegment=null;var r=e.responseState.bootstrapChunks;for(n=0;n<r.length-1;n++)t.push(r[n]);n<r.length&&t.push(r[n])}var o,s=e.clientRenderedBoundaries;for(o=0;o<s.length;o++){var a=s[o];r=t;var l=e.responseState,c=a.id,u=a.errorDigest,d=a.errorMessage,h=a.errorComponentStack;if(r.push(l.startInlineScript),l.sentClientRenderFunction?r.push('$RX("'):(l.sentClientRenderFunction=!0,r.push('function $RX(b,c,d,e){var a=document.getElementById(b);a&&(b=a.previousSibling,b.data="$!",a=a.dataset,c&&(a.dgst=c),d&&(a.msg=d),e&&(a.stck=e),b._reactRetry&&b._reactRetry())};$RX("')),null===c)throw Error(i(395));if(r.push(c),r.push('"'),u||d||h){r.push(",");var p=M(u||"");r.push(p)}if(d||h){r.push(",");var f=M(d||"");r.push(f)}if(h){r.push(",");var g=M(h);r.push(g)}if(!r.push(")<\/script>"))return e.destination=null,o++,void s.splice(0,o)}s.splice(0,o);var m=e.completedBoundaries;for(o=0;o<m.length;o++)if(!st(e,t,m[o]))return e.destination=null,o++,void m.splice(0,o);m.splice(0,o);var y=e.partialBoundaries;for(o=0;o<y.length;o++){var v=y[o];e:{s=e,a=t;var _=v.completedSegments;for(l=0;l<_.length;l++)if(!at(s,a,v,_[l])){l++,_.splice(0,l);var b=!1;break e}_.splice(0,l),b=!0}if(!b)return e.destination=null,o++,void y.splice(0,o)}y.splice(0,o);var x=e.completedBoundaries;for(o=0;o<x.length;o++)if(!st(e,t,x[o]))return e.destination=null,o++,void x.splice(0,o);x.splice(0,o)}finally{0===e.allPendingTasks&&0===e.pingedTasks.length&&0===e.clientRenderedBoundaries.length&&0===e.completedBoundaries.length&&t.push(null)}}function ct(e,t){try{var n=e.abortableTasks;n.forEach((function(n){return Qe(n,e,t)})),n.clear(),null!==e.destination&&lt(e,e.destination)}catch(r){Ue(e,r),We(e,r)}}function ut(){}function dt(e,t,n,r){var o=!1,s=null,a="",l={push:function(e){return null!==e&&(a+=e),!0},destroy:function(e){o=!0,s=e}},c=!1;if(e=function(e,t,n,r,i,o,s,a,l){var c=[],u=new Set;return(n=Be(t={destination:null,responseState:t,progressiveChunkSize:void 0===r?12800:r,status:0,fatalError:null,nextSegmentId:0,allPendingTasks:0,pendingRootTasks:0,completedRootSegment:null,abortableTasks:u,pingedTasks:c,clientRenderedBoundaries:[],completedBoundaries:[],partialBoundaries:[],onError:void 0===i?Ve:i,onAllReady:void 0===o?Fe:o,onShellReady:void 0===s?Fe:s,onShellError:void 0===a?Fe:a,onFatalError:void 0===l?Fe:l},0,null,n,!1,!1)).parentFlushed=!0,e=ze(t,e,null,n,u,ee,null,de),c.push(e),t}(e,function(e,t){return{bootstrapChunks:[],startInlineScript:"<script>",placeholderPrefix:(t=void 0===t?"":t)+"P:",segmentPrefix:t+"S:",boundaryPrefix:t+"B:",idPrefix:t,nextSuspenseID:0,sentCompleteSegmentFunction:!1,sentCompleteBoundaryFunction:!1,sentClientRenderFunction:!1,generateStaticMarkup:e}}(n,t?t.identifierPrefix:void 0),{insertionMode:1,selectedValue:null},1/0,ut,void 0,(function(){c=!0}),void 0,void 0),nt(e),ct(e,r),1===e.status)e.status=2,l.destroy(e.fatalError);else if(2!==e.status&&null===e.destination){e.destination=l;try{lt(e,l)}catch(u){Ue(e,u),We(e,u)}}if(o)throw s;if(!c)throw Error(i(426));return a}t.renderToNodeStream=function(){throw Error(i(207))},t.renderToStaticMarkup=function(e,t){return dt(e,t,!0,'The server used "renderToStaticMarkup" which does not support Suspense. If you intended to have the server wait for the suspended component please switch to "renderToReadableStream" which supports Suspense on the server')},t.renderToStaticNodeStream=function(){throw Error(i(208))},t.renderToString=function(e,t){return dt(e,t,!1,'The server used "renderToString" which does not support Suspense. If you intended for this Suspense boundary to render the fallback content on the server consider throwing an Error somewhere within the Suspense boundary. If you intended to have the server wait for the suspended component please switch to "renderToReadableStream" which supports Suspense on the server')},t.version="18.2.0"},46220:(e,t,n)=>{"use strict";var r=n(99584);function i(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n<arguments.length;n++)t+="&args[]="+encodeURIComponent(arguments[n]);return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var o=null,s=0;function a(e,t){if(0!==t.length)if(512<t.length)0<s&&(e.enqueue(new Uint8Array(o.buffer,0,s)),o=new Uint8Array(512),s=0),e.enqueue(t);else{var n=o.length-s;n<t.length&&(0===n?e.enqueue(o):(o.set(t.subarray(0,n),s),e.enqueue(o),t=t.subarray(n)),o=new Uint8Array(512),s=0),o.set(t,s),s+=t.length}}function l(e,t){return a(e,t),!0}function c(e){o&&0<s&&(e.enqueue(new Uint8Array(o.buffer,0,s)),o=null,s=0)}var u=new TextEncoder;function d(e){return u.encode(e)}function h(e){return u.encode(e)}function p(e,t){"function"===typeof e.error?e.error(t):e.close()}var f=Object.prototype.hasOwnProperty,g=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,m={},y={};function v(e){return!!f.call(y,e)||!f.call(m,e)&&(g.test(e)?y[e]=!0:(m[e]=!0,!1))}function _(e,t,n,r,i,o,s){this.acceptsBooleans=2===t||3===t||4===t,this.attributeName=r,this.attributeNamespace=i,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=o,this.removeEmptyString=s}var b={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach((function(e){b[e]=new _(e,0,!1,e,null,!1,!1)})),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach((function(e){var t=e[0];b[t]=new _(t,1,!1,e[1],null,!1,!1)})),["contentEditable","draggable","spellCheck","value"].forEach((function(e){b[e]=new _(e,2,!1,e.toLowerCase(),null,!1,!1)})),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach((function(e){b[e]=new _(e,2,!1,e,null,!1,!1)})),"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach((function(e){b[e]=new _(e,3,!1,e.toLowerCase(),null,!1,!1)})),["checked","multiple","muted","selected"].forEach((function(e){b[e]=new _(e,3,!0,e,null,!1,!1)})),["capture","download"].forEach((function(e){b[e]=new _(e,4,!1,e,null,!1,!1)})),["cols","rows","size","span"].forEach((function(e){b[e]=new _(e,6,!1,e,null,!1,!1)})),["rowSpan","start"].forEach((function(e){b[e]=new _(e,5,!1,e.toLowerCase(),null,!1,!1)}));var x=/[\-:]([a-z])/g;function S(e){return e[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach((function(e){var t=e.replace(x,S);b[t]=new _(t,1,!1,e,null,!1,!1)})),"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach((function(e){var t=e.replace(x,S);b[t]=new _(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)})),["xml:base","xml:lang","xml:space"].forEach((function(e){var t=e.replace(x,S);b[t]=new _(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)})),["tabIndex","crossOrigin"].forEach((function(e){b[e]=new _(e,1,!1,e.toLowerCase(),null,!1,!1)})),b.xlinkHref=new _("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach((function(e){b[e]=new _(e,1,!1,e.toLowerCase(),null,!0,!0)}));var w={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},E=["Webkit","ms","Moz","O"];Object.keys(w).forEach((function(e){E.forEach((function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),w[t]=w[e]}))}));var P=/["'&<>]/;function C(e){if("boolean"===typeof e||"number"===typeof e)return""+e;e=""+e;var t=P.exec(e);if(t){var n,r="",i=0;for(n=t.index;n<e.length;n++){switch(e.charCodeAt(n)){case 34:t="&quot;";break;case 38:t="&amp;";break;case 39:t="&#x27;";break;case 60:t="&lt;";break;case 62:t="&gt;";break;default:continue}i!==n&&(r+=e.substring(i,n)),i=n+1,r+=t}e=i!==n?r+e.substring(i,n):r}return e}var A=/([A-Z])/g,k=/^ms-/,j=Array.isArray,I=h("<script>"),G=h("<\/script>"),T=h('<script src="'),M=h('<script type="module" src="'),O=h('" async=""><\/script>'),R=/(<\/|<)(s)(cript)/gi;function D(e,t,n,r){return t+("s"===n?"\\u0073":"\\u0053")+r}function N(e,t){return{insertionMode:e,selectedValue:t}}var L=h("\x3c!-- --\x3e");function V(e,t,n,r){return""===t?r:(r&&e.push(L),e.push(d(C(t))),!0)}var F=new Map,z=h(' style="'),B=h(":"),U=h(";");function W(e,t,n){if("object"!==typeof n)throw Error(i(62));for(var r in t=!0,n)if(f.call(n,r)){var o=n[r];if(null!=o&&"boolean"!==typeof o&&""!==o){if(0===r.indexOf("--")){var s=d(C(r));o=d(C((""+o).trim()))}else{s=r;var a=F.get(s);void 0!==a||(a=h(C(s.replace(A,"-$1").toLowerCase().replace(k,"-ms-"))),F.set(s,a)),s=a,o="number"===typeof o?0===o||f.call(w,r)?d(""+o):d(o+"px"):d(C((""+o).trim()))}t?(t=!1,e.push(z,s,B,o)):e.push(U,s,B,o)}}t||e.push(X)}var H=h(" "),q=h('="'),X=h('"'),Y=h('=""');function K(e,t,n,r){switch(n){case"style":return void W(e,t,r);case"defaultValue":case"defaultChecked":case"innerHTML":case"suppressContentEditableWarning":case"suppressHydrationWarning":return}if(!(2<n.length)||"o"!==n[0]&&"O"!==n[0]||"n"!==n[1]&&"N"!==n[1])if(null!==(t=b.hasOwnProperty(n)?b[n]:null)){switch(typeof r){case"function":case"symbol":return;case"boolean":if(!t.acceptsBooleans)return}switch(n=d(t.attributeName),t.type){case 3:r&&e.push(H,n,Y);break;case 4:!0===r?e.push(H,n,Y):!1!==r&&e.push(H,n,q,d(C(r)),X);break;case 5:isNaN(r)||e.push(H,n,q,d(C(r)),X);break;case 6:!isNaN(r)&&1<=r&&e.push(H,n,q,d(C(r)),X);break;default:t.sanitizeURL&&(r=""+r),e.push(H,n,q,d(C(r)),X)}}else if(v(n)){switch(typeof r){case"function":case"symbol":return;case"boolean":if("data-"!==(t=n.toLowerCase().slice(0,5))&&"aria-"!==t)return}e.push(H,d(n),q,d(C(r)),X)}}var Z=h(">"),$=h("/>");function J(e,t,n){if(null!=t){if(null!=n)throw Error(i(60));if("object"!==typeof t||!("__html"in t))throw Error(i(61));null!==(t=t.__html)&&void 0!==t&&e.push(d(""+t))}}var Q=h(' selected=""');function ee(e,t,n,r){e.push(ie(n));var i,o=n=null;for(i in t)if(f.call(t,i)){var s=t[i];if(null!=s)switch(i){case"children":n=s;break;case"dangerouslySetInnerHTML":o=s;break;default:K(e,r,i,s)}}return e.push(Z),J(e,o,n),"string"===typeof n?(e.push(d(C(n))),null):n}var te=h("\n"),ne=/^[a-zA-Z][a-zA-Z:_\.\-\d]*$/,re=new Map;function ie(e){var t=re.get(e);if(void 0===t){if(!ne.test(e))throw Error(i(65,e));t=h("<"+e),re.set(e,t)}return t}var oe=h("<!DOCTYPE html>");function se(e,t,n,o,s){switch(t){case"select":e.push(ie("select"));var a=null,l=null;for(p in n)if(f.call(n,p)){var c=n[p];if(null!=c)switch(p){case"children":a=c;break;case"dangerouslySetInnerHTML":l=c;break;case"defaultValue":case"value":break;default:K(e,o,p,c)}}return e.push(Z),J(e,l,a),a;case"option":l=s.selectedValue,e.push(ie("option"));var u=c=null,h=null,p=null;for(a in n)if(f.call(n,a)){var g=n[a];if(null!=g)switch(a){case"children":c=g;break;case"selected":h=g;break;case"dangerouslySetInnerHTML":p=g;break;case"value":u=g;default:K(e,o,a,g)}}if(null!=l)if(n=null!==u?""+u:function(e){var t="";return r.Children.forEach(e,(function(e){null!=e&&(t+=e)})),t}(c),j(l)){for(o=0;o<l.length;o++)if(""+l[o]===n){e.push(Q);break}}else""+l===n&&e.push(Q);else h&&e.push(Q);return e.push(Z),J(e,p,c),c;case"textarea":for(c in e.push(ie("textarea")),p=l=a=null,n)if(f.call(n,c)&&null!=(u=n[c]))switch(c){case"children":p=u;break;case"value":a=u;break;case"defaultValue":l=u;break;case"dangerouslySetInnerHTML":throw Error(i(91));default:K(e,o,c,u)}if(null===a&&null!==l&&(a=l),e.push(Z),null!=p){if(null!=a)throw Error(i(92));if(j(p)&&1<p.length)throw Error(i(93));a=""+p}return"string"===typeof a&&"\n"===a[0]&&e.push(te),null!==a&&e.push(d(C(""+a))),null;case"input":for(l in e.push(ie("input")),u=p=c=a=null,n)if(f.call(n,l)&&null!=(h=n[l]))switch(l){case"children":case"dangerouslySetInnerHTML":throw Error(i(399,"input"));case"defaultChecked":u=h;break;case"defaultValue":c=h;break;case"checked":p=h;break;case"value":a=h;break;default:K(e,o,l,h)}return null!==p?K(e,o,"checked",p):null!==u&&K(e,o,"checked",u),null!==a?K(e,o,"value",a):null!==c&&K(e,o,"value",c),e.push($),null;case"menuitem":for(var m in e.push(ie("menuitem")),n)if(f.call(n,m)&&null!=(a=n[m]))switch(m){case"children":case"dangerouslySetInnerHTML":throw Error(i(400));default:K(e,o,m,a)}return e.push(Z),null;case"title":for(g in e.push(ie("title")),a=null,n)if(f.call(n,g)&&null!=(l=n[g]))switch(g){case"children":a=l;break;case"dangerouslySetInnerHTML":throw Error(i(434));default:K(e,o,g,l)}return e.push(Z),a;case"listing":case"pre":for(u in e.push(ie(t)),l=a=null,n)if(f.call(n,u)&&null!=(c=n[u]))switch(u){case"children":a=c;break;case"dangerouslySetInnerHTML":l=c;break;default:K(e,o,u,c)}if(e.push(Z),null!=l){if(null!=a)throw Error(i(60));if("object"!==typeof l||!("__html"in l))throw Error(i(61));null!==(n=l.__html)&&void 0!==n&&("string"===typeof n&&0<n.length&&"\n"===n[0]?e.push(te,d(n)):e.push(d(""+n)))}return"string"===typeof a&&"\n"===a[0]&&e.push(te),a;case"area":case"base":case"br":case"col":case"embed":case"hr":case"img":case"keygen":case"link":case"meta":case"param":case"source":case"track":case"wbr":for(var y in e.push(ie(t)),n)if(f.call(n,y)&&null!=(a=n[y]))switch(y){case"children":case"dangerouslySetInnerHTML":throw Error(i(399,t));default:K(e,o,y,a)}return e.push($),null;case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return ee(e,n,t,o);case"html":return 0===s.insertionMode&&e.push(oe),ee(e,n,t,o);default:if(-1===t.indexOf("-")&&"string"!==typeof n.is)return ee(e,n,t,o);for(h in e.push(ie(t)),l=a=null,n)if(f.call(n,h)&&null!=(c=n[h]))switch(h){case"children":a=c;break;case"dangerouslySetInnerHTML":l=c;break;case"style":W(e,o,c);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":break;default:v(h)&&"function"!==typeof c&&"symbol"!==typeof c&&e.push(H,d(h),q,d(C(c)),X)}return e.push(Z),J(e,l,a),a}}var ae=h("</"),le=h(">"),ce=h('<template id="'),ue=h('"></template>'),de=h("\x3c!--$--\x3e"),he=h('\x3c!--$?--\x3e<template id="'),pe=h('"></template>'),fe=h("\x3c!--$!--\x3e"),ge=h("\x3c!--/$--\x3e"),me=h("<template"),ye=h('"'),ve=h(' data-dgst="');h(' data-msg="'),h(' data-stck="');var _e=h("></template>");function be(e,t,n){if(a(e,he),null===n)throw Error(i(395));return a(e,n),l(e,pe)}var xe=h('<div hidden id="'),Se=h('">'),we=h("</div>"),Ee=h('<svg aria-hidden="true" style="display:none" id="'),Pe=h('">'),Ce=h("</svg>"),Ae=h('<math aria-hidden="true" style="display:none" id="'),ke=h('">'),je=h("</math>"),Ie=h('<table hidden id="'),Ge=h('">'),Te=h("</table>"),Me=h('<table hidden><tbody id="'),Oe=h('">'),Re=h("</tbody></table>"),De=h('<table hidden><tr id="'),Ne=h('">'),Le=h("</tr></table>"),Ve=h('<table hidden><colgroup id="'),Fe=h('">'),ze=h("</colgroup></table>");var Be=h('function $RS(a,b){a=document.getElementById(a);b=document.getElementById(b);for(a.parentNode.removeChild(a);a.firstChild;)b.parentNode.insertBefore(a.firstChild,b);b.parentNode.removeChild(b)};$RS("'),Ue=h('$RS("'),We=h('","'),He=h('")<\/script>'),qe=h('function $RC(a,b){a=document.getElementById(a);b=document.getElementById(b);b.parentNode.removeChild(b);if(a){a=a.previousSibling;var f=a.parentNode,c=a.nextSibling,e=0;do{if(c&&8===c.nodeType){var d=c.data;if("/$"===d)if(0===e)break;else e--;else"$"!==d&&"$?"!==d&&"$!"!==d||e++}d=c.nextSibling;f.removeChild(c);c=d}while(c);for(;b.firstChild;)f.insertBefore(b.firstChild,c);a.data="$";a._reactRetry&&a._reactRetry()}};$RC("'),Xe=h('$RC("'),Ye=h('","'),Ke=h('")<\/script>'),Ze=h('function $RX(b,c,d,e){var a=document.getElementById(b);a&&(b=a.previousSibling,b.data="$!",a=a.dataset,c&&(a.dgst=c),d&&(a.msg=d),e&&(a.stck=e),b._reactRetry&&b._reactRetry())};$RX("'),$e=h('$RX("'),Je=h('"'),Qe=h(")<\/script>"),et=h(","),tt=/[<\u2028\u2029]/g;function nt(e){return JSON.stringify(e).replace(tt,(function(e){switch(e){case"<":return"\\u003c";case"\u2028":return"\\u2028";case"\u2029":return"\\u2029";default:throw Error("escapeJSStringsForInstructionScripts encountered a match it does not know how to replace. this means the match regex and the replacement characters are no longer in sync. This is a bug in React")}}))}var rt=Object.assign,it=Symbol.for("react.element"),ot=Symbol.for("react.portal"),st=Symbol.for("react.fragment"),at=Symbol.for("react.strict_mode"),lt=Symbol.for("react.profiler"),ct=Symbol.for("react.provider"),ut=Symbol.for("react.context"),dt=Symbol.for("react.forward_ref"),ht=Symbol.for("react.suspense"),pt=Symbol.for("react.suspense_list"),ft=Symbol.for("react.memo"),gt=Symbol.for("react.lazy"),mt=Symbol.for("react.scope"),yt=Symbol.for("react.debug_trace_mode"),vt=Symbol.for("react.legacy_hidden"),_t=Symbol.for("react.default_value"),bt=Symbol.iterator;function xt(e){if(null==e)return null;if("function"===typeof e)return e.displayName||e.name||null;if("string"===typeof e)return e;switch(e){case st:return"Fragment";case ot:return"Portal";case lt:return"Profiler";case at:return"StrictMode";case ht:return"Suspense";case pt:return"SuspenseList"}if("object"===typeof e)switch(e.$$typeof){case ut:return(e.displayName||"Context")+".Consumer";case ct:return(e._context.displayName||"Context")+".Provider";case dt:var t=e.render;return(e=e.displayName)||(e=""!==(e=t.displayName||t.name||"")?"ForwardRef("+e+")":"ForwardRef"),e;case ft:return null!==(t=e.displayName||null)?t:xt(e.type)||"Memo";case gt:t=e._payload,e=e._init;try{return xt(e(t))}catch(n){}}return null}var St={};function wt(e,t){if(!(e=e.contextTypes))return St;var n,r={};for(n in e)r[n]=t[n];return r}var Et=null;function Pt(e,t){if(e!==t){e.context._currentValue=e.parentValue,e=e.parent;var n=t.parent;if(null===e){if(null!==n)throw Error(i(401))}else{if(null===n)throw Error(i(401));Pt(e,n)}t.context._currentValue=t.value}}function Ct(e){e.context._currentValue=e.parentValue,null!==(e=e.parent)&&Ct(e)}function At(e){var t=e.parent;null!==t&&At(t),e.context._currentValue=e.value}function kt(e,t){if(e.context._currentValue=e.parentValue,null===(e=e.parent))throw Error(i(402));e.depth===t.depth?Pt(e,t):kt(e,t)}function jt(e,t){var n=t.parent;if(null===n)throw Error(i(402));e.depth===n.depth?Pt(e,n):jt(e,n),t.context._currentValue=t.value}function It(e){var t=Et;t!==e&&(null===t?At(e):null===e?Ct(t):t.depth===e.depth?Pt(t,e):t.depth>e.depth?kt(t,e):jt(t,e),Et=e)}var Gt={isMounted:function(){return!1},enqueueSetState:function(e,t){null!==(e=e._reactInternals).queue&&e.queue.push(t)},enqueueReplaceState:function(e,t){(e=e._reactInternals).replace=!0,e.queue=[t]},enqueueForceUpdate:function(){}};function Tt(e,t,n,r){var i=void 0!==e.state?e.state:null;e.updater=Gt,e.props=n,e.state=i;var o={queue:[],replace:!1};e._reactInternals=o;var s=t.contextType;if(e.context="object"===typeof s&&null!==s?s._currentValue:r,"function"===typeof(s=t.getDerivedStateFromProps)&&(i=null===(s=s(n,i))||void 0===s?i:rt({},i,s),e.state=i),"function"!==typeof t.getDerivedStateFromProps&&"function"!==typeof e.getSnapshotBeforeUpdate&&("function"===typeof e.UNSAFE_componentWillMount||"function"===typeof e.componentWillMount))if(t=e.state,"function"===typeof e.componentWillMount&&e.componentWillMount(),"function"===typeof e.UNSAFE_componentWillMount&&e.UNSAFE_componentWillMount(),t!==e.state&&Gt.enqueueReplaceState(e,e.state,null),null!==o.queue&&0<o.queue.length)if(t=o.queue,s=o.replace,o.queue=null,o.replace=!1,s&&1===t.length)e.state=t[0];else{for(o=s?t[0]:e.state,i=!0,s=s?1:0;s<t.length;s++){var a=t[s];null!=(a="function"===typeof a?a.call(e,o,n,r):a)&&(i?(i=!1,o=rt({},o,a)):rt(o,a))}e.state=o}else o.queue=null}var Mt={id:1,overflow:""};function Ot(e,t,n){var r=e.id;e=e.overflow;var i=32-Rt(r)-1;r&=~(1<<i),n+=1;var o=32-Rt(t)+i;if(30<o){var s=i-i%5;return o=(r&(1<<s)-1).toString(32),r>>=s,i-=s,{id:1<<32-Rt(t)+i|n<<i|r,overflow:o+e}}return{id:1<<o|n<<i|r,overflow:e}}var Rt=Math.clz32?Math.clz32:function(e){return 0===(e>>>=0)?32:31-(Dt(e)/Nt|0)|0},Dt=Math.log,Nt=Math.LN2;var Lt="function"===typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e===1/t)||e!==e&&t!==t},Vt=null,Ft=null,zt=null,Bt=null,Ut=!1,Wt=!1,Ht=0,qt=null,Xt=0;function Yt(){if(null===Vt)throw Error(i(321));return Vt}function Kt(){if(0<Xt)throw Error(i(312));return{memoizedState:null,queue:null,next:null}}function Zt(){return null===Bt?null===zt?(Ut=!1,zt=Bt=Kt()):(Ut=!0,Bt=zt):null===Bt.next?(Ut=!1,Bt=Bt.next=Kt()):(Ut=!0,Bt=Bt.next),Bt}function $t(){Ft=Vt=null,Wt=!1,zt=null,Xt=0,Bt=qt=null}function Jt(e,t){return"function"===typeof t?t(e):t}function Qt(e,t,n){if(Vt=Yt(),Bt=Zt(),Ut){var r=Bt.queue;if(t=r.dispatch,null!==qt&&void 0!==(n=qt.get(r))){qt.delete(r),r=Bt.memoizedState;do{r=e(r,n.action),n=n.next}while(null!==n);return Bt.memoizedState=r,[r,t]}return[Bt.memoizedState,t]}return e=e===Jt?"function"===typeof t?t():t:void 0!==n?n(t):t,Bt.memoizedState=e,e=(e=Bt.queue={last:null,dispatch:null}).dispatch=tn.bind(null,Vt,e),[Bt.memoizedState,e]}function en(e,t){if(Vt=Yt(),t=void 0===t?null:t,null!==(Bt=Zt())){var n=Bt.memoizedState;if(null!==n&&null!==t){var r=n[1];e:if(null===r)r=!1;else{for(var i=0;i<r.length&&i<t.length;i++)if(!Lt(t[i],r[i])){r=!1;break e}r=!0}if(r)return n[0]}}return e=e(),Bt.memoizedState=[e,t],e}function tn(e,t,n){if(25<=Xt)throw Error(i(301));if(e===Vt)if(Wt=!0,e={action:n,next:null},null===qt&&(qt=new Map),void 0===(n=qt.get(t)))qt.set(t,e);else{for(t=n;null!==t.next;)t=t.next;t.next=e}}function nn(){throw Error(i(394))}function rn(){}var on={readContext:function(e){return e._currentValue},useContext:function(e){return Yt(),e._currentValue},useMemo:en,useReducer:Qt,useRef:function(e){Vt=Yt();var t=(Bt=Zt()).memoizedState;return null===t?(e={current:e},Bt.memoizedState=e):t},useState:function(e){return Qt(Jt,e)},useInsertionEffect:rn,useLayoutEffect:function(){},useCallback:function(e,t){return en((function(){return e}),t)},useImperativeHandle:rn,useEffect:rn,useDebugValue:rn,useDeferredValue:function(e){return Yt(),e},useTransition:function(){return Yt(),[!1,nn]},useId:function(){var e=Ft.treeContext,t=e.overflow;e=((e=e.id)&~(1<<32-Rt(e)-1)).toString(32)+t;var n=sn;if(null===n)throw Error(i(404));return t=Ht++,e=":"+n.idPrefix+"R"+e,0<t&&(e+="H"+t.toString(32)),e+":"},useMutableSource:function(e,t){return Yt(),t(e._source)},useSyncExternalStore:function(e,t,n){if(void 0===n)throw Error(i(407));return n()}},sn=null,an=r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentDispatcher;function ln(e){return console.error(e),null}function cn(){}function un(e,t,n,r,i,o,s,a){e.allPendingTasks++,null===n?e.pendingRootTasks++:n.pendingTasks++;var l={node:t,ping:function(){var t=e.pingedTasks;t.push(l),1===t.length&&Pn(e)},blockedBoundary:n,blockedSegment:r,abortSet:i,legacyContext:o,context:s,treeContext:a};return i.add(l),l}function dn(e,t,n,r,i,o){return{status:0,id:-1,index:t,parentFlushed:!1,chunks:[],children:[],formatContext:r,boundary:n,lastPushedText:i,textEmbedded:o}}function hn(e,t){if(null!=(e=e.onError(t))&&"string"!==typeof e)throw Error('onError returned something with a type other than "string". onError should return a string and may return null or undefined but must not return anything else. It received something of type "'+typeof e+'" instead');return e}function pn(e,t){var n=e.onShellError;n(t),(n=e.onFatalError)(t),null!==e.destination?(e.status=2,p(e.destination,t)):(e.status=1,e.fatalError=t)}function fn(e,t,n,r,i){for(Vt={},Ft=t,Ht=0,e=n(r,i);Wt;)Wt=!1,Ht=0,Xt+=1,Bt=null,e=n(r,i);return $t(),e}function gn(e,t,n,r){var o=n.render(),s=r.childContextTypes;if(null!==s&&void 0!==s){var a=t.legacyContext;if("function"!==typeof n.getChildContext)r=a;else{for(var l in n=n.getChildContext())if(!(l in s))throw Error(i(108,xt(r)||"Unknown",l));r=rt({},a,n)}t.legacyContext=r,vn(e,t,o),t.legacyContext=a}else vn(e,t,o)}function mn(e,t){if(e&&e.defaultProps){for(var n in t=rt({},t),e=e.defaultProps)void 0===t[n]&&(t[n]=e[n]);return t}return t}function yn(e,t,n,r,o){if("function"===typeof n)if(n.prototype&&n.prototype.isReactComponent){o=wt(n,t.legacyContext);var s=n.contextType;Tt(s=new n(r,"object"===typeof s&&null!==s?s._currentValue:o),n,r,o),gn(e,t,s,n)}else{o=fn(e,t,n,r,s=wt(n,t.legacyContext));var a=0!==Ht;if("object"===typeof o&&null!==o&&"function"===typeof o.render&&void 0===o.$$typeof)Tt(o,n,r,s),gn(e,t,o,n);else if(a){r=t.treeContext,t.treeContext=Ot(r,1,0);try{vn(e,t,o)}finally{t.treeContext=r}}else vn(e,t,o)}else{if("string"!==typeof n){switch(n){case vt:case yt:case at:case lt:case st:case pt:return void vn(e,t,r.children);case mt:throw Error(i(343));case ht:e:{n=t.blockedBoundary,o=t.blockedSegment,s=r.fallback,r=r.children;var l={id:null,rootSegmentID:-1,parentFlushed:!1,pendingTasks:0,forceClientRender:!1,completedSegments:[],byteSize:0,fallbackAbortableTasks:a=new Set,errorDigest:null},c=dn(0,o.chunks.length,l,o.formatContext,!1,!1);o.children.push(c),o.lastPushedText=!1;var u=dn(0,0,null,o.formatContext,!1,!1);u.parentFlushed=!0,t.blockedBoundary=l,t.blockedSegment=u;try{if(bn(e,t,r),u.lastPushedText&&u.textEmbedded&&u.chunks.push(L),u.status=1,wn(l,u),0===l.pendingTasks)break e}catch(h){u.status=4,l.forceClientRender=!0,l.errorDigest=hn(e,h)}finally{t.blockedBoundary=n,t.blockedSegment=o}t=un(e,s,n,c,a,t.legacyContext,t.context,t.treeContext),e.pingedTasks.push(t)}return}if("object"===typeof n&&null!==n)switch(n.$$typeof){case dt:if(r=fn(e,t,n.render,r,o),0!==Ht){n=t.treeContext,t.treeContext=Ot(n,1,0);try{vn(e,t,r)}finally{t.treeContext=n}}else vn(e,t,r);return;case ft:return void yn(e,t,n=n.type,r=mn(n,r),o);case ct:if(o=r.children,n=n._context,r=r.value,s=n._currentValue,n._currentValue=r,Et=r={parent:a=Et,depth:null===a?0:a.depth+1,context:n,parentValue:s,value:r},t.context=r,vn(e,t,o),null===(e=Et))throw Error(i(403));return r=e.parentValue,e.context._currentValue=r===_t?e.context._defaultValue:r,e=Et=e.parent,void(t.context=e);case ut:return void vn(e,t,r=(r=r.children)(n._currentValue));case gt:return void yn(e,t,n=(o=n._init)(n._payload),r=mn(n,r),void 0)}throw Error(i(130,null==n?n:typeof n,""))}switch(s=se((o=t.blockedSegment).chunks,n,r,e.responseState,o.formatContext),o.lastPushedText=!1,a=o.formatContext,o.formatContext=function(e,t,n){switch(t){case"select":return N(1,null!=n.value?n.value:n.defaultValue);case"svg":return N(2,null);case"math":return N(3,null);case"foreignObject":return N(1,null);case"table":return N(4,null);case"thead":case"tbody":case"tfoot":return N(5,null);case"colgroup":return N(7,null);case"tr":return N(6,null)}return 4<=e.insertionMode||0===e.insertionMode?N(1,null):e}(a,n,r),bn(e,t,s),o.formatContext=a,n){case"area":case"base":case"br":case"col":case"embed":case"hr":case"img":case"input":case"keygen":case"link":case"meta":case"param":case"source":case"track":case"wbr":break;default:o.chunks.push(ae,d(n),le)}o.lastPushedText=!1}}function vn(e,t,n){if(t.node=n,"object"===typeof n&&null!==n){switch(n.$$typeof){case it:return void yn(e,t,n.type,n.props,n.ref);case ot:throw Error(i(257));case gt:var r=n._init;return void vn(e,t,n=r(n._payload))}if(j(n))return void _n(e,t,n);if(null===n||"object"!==typeof n?r=null:r="function"===typeof(r=bt&&n[bt]||n["@@iterator"])?r:null,r&&(r=r.call(n))){if(!(n=r.next()).done){var o=[];do{o.push(n.value),n=r.next()}while(!n.done);_n(e,t,o)}return}throw e=Object.prototype.toString.call(n),Error(i(31,"[object Object]"===e?"object with keys {"+Object.keys(n).join(", ")+"}":e))}"string"===typeof n?(r=t.blockedSegment).lastPushedText=V(t.blockedSegment.chunks,n,e.responseState,r.lastPushedText):"number"===typeof n&&((r=t.blockedSegment).lastPushedText=V(t.blockedSegment.chunks,""+n,e.responseState,r.lastPushedText))}function _n(e,t,n){for(var r=n.length,i=0;i<r;i++){var o=t.treeContext;t.treeContext=Ot(o,r,i);try{bn(e,t,n[i])}finally{t.treeContext=o}}}function bn(e,t,n){var r=t.blockedSegment.formatContext,i=t.legacyContext,o=t.context;try{return vn(e,t,n)}catch(l){if($t(),"object"!==typeof l||null===l||"function"!==typeof l.then)throw t.blockedSegment.formatContext=r,t.legacyContext=i,t.context=o,It(o),l;n=l;var s=t.blockedSegment,a=dn(0,s.chunks.length,null,s.formatContext,s.lastPushedText,!0);s.children.push(a),s.lastPushedText=!1,e=un(e,t.node,t.blockedBoundary,a,t.abortSet,t.legacyContext,t.context,t.treeContext).ping,n.then(e,e),t.blockedSegment.formatContext=r,t.legacyContext=i,t.context=o,It(o)}}function xn(e){var t=e.blockedBoundary;(e=e.blockedSegment).status=3,En(this,t,e)}function Sn(e,t,n){var r=e.blockedBoundary;e.blockedSegment.status=3,null===r?(t.allPendingTasks--,2!==t.status&&(t.status=2,null!==t.destination&&t.destination.close())):(r.pendingTasks--,r.forceClientRender||(r.forceClientRender=!0,e=void 0===n?Error(i(432)):n,r.errorDigest=t.onError(e),r.parentFlushed&&t.clientRenderedBoundaries.push(r)),r.fallbackAbortableTasks.forEach((function(e){return Sn(e,t,n)})),r.fallbackAbortableTasks.clear(),t.allPendingTasks--,0===t.allPendingTasks&&(r=t.onAllReady)())}function wn(e,t){if(0===t.chunks.length&&1===t.children.length&&null===t.children[0].boundary){var n=t.children[0];n.id=t.id,n.parentFlushed=!0,1===n.status&&wn(e,n)}else e.completedSegments.push(t)}function En(e,t,n){if(null===t){if(n.parentFlushed){if(null!==e.completedRootSegment)throw Error(i(389));e.completedRootSegment=n}e.pendingRootTasks--,0===e.pendingRootTasks&&(e.onShellError=cn,(t=e.onShellReady)())}else t.pendingTasks--,t.forceClientRender||(0===t.pendingTasks?(n.parentFlushed&&1===n.status&&wn(t,n),t.parentFlushed&&e.completedBoundaries.push(t),t.fallbackAbortableTasks.forEach(xn,e),t.fallbackAbortableTasks.clear()):n.parentFlushed&&1===n.status&&(wn(t,n),1===t.completedSegments.length&&t.parentFlushed&&e.partialBoundaries.push(t)));e.allPendingTasks--,0===e.allPendingTasks&&(e=e.onAllReady)()}function Pn(e){if(2!==e.status){var t=Et,n=an.current;an.current=on;var r=sn;sn=e.responseState;try{var i,o=e.pingedTasks;for(i=0;i<o.length;i++){var s=o[i],a=e,l=s.blockedSegment;if(0===l.status){It(s.context);try{vn(a,s,s.node),l.lastPushedText&&l.textEmbedded&&l.chunks.push(L),s.abortSet.delete(s),l.status=1,En(a,s.blockedBoundary,l)}catch(p){if($t(),"object"===typeof p&&null!==p&&"function"===typeof p.then){var c=s.ping;p.then(c,c)}else{s.abortSet.delete(s),l.status=4;var u=s.blockedBoundary,d=p,h=hn(a,d);if(null===u?pn(a,d):(u.pendingTasks--,u.forceClientRender||(u.forceClientRender=!0,u.errorDigest=h,u.parentFlushed&&a.clientRenderedBoundaries.push(u))),a.allPendingTasks--,0===a.allPendingTasks)(0,a.onAllReady)()}}}}o.splice(0,i),null!==e.destination&&Gn(e,e.destination)}catch(p){hn(e,p),pn(e,p)}finally{sn=r,an.current=n,n===on&&It(t)}}}function Cn(e,t,n){switch(n.parentFlushed=!0,n.status){case 0:var r=n.id=e.nextSegmentId++;return n.lastPushedText=!1,n.textEmbedded=!1,e=e.responseState,a(t,ce),a(t,e.placeholderPrefix),a(t,e=d(r.toString(16))),l(t,ue);case 1:n.status=2;var o=!0;r=n.chunks;var s=0;n=n.children;for(var c=0;c<n.length;c++){for(o=n[c];s<o.index;s++)a(t,r[s]);o=An(e,t,o)}for(;s<r.length-1;s++)a(t,r[s]);return s<r.length&&(o=l(t,r[s])),o;default:throw Error(i(390))}}function An(e,t,n){var r=n.boundary;if(null===r)return Cn(e,t,n);if(r.parentFlushed=!0,r.forceClientRender)r=r.errorDigest,l(t,fe),a(t,me),r&&(a(t,ve),a(t,d(C(r))),a(t,ye)),l(t,_e),Cn(e,t,n);else if(0<r.pendingTasks){r.rootSegmentID=e.nextSegmentId++,0<r.completedSegments.length&&e.partialBoundaries.push(r);var o=e.responseState,s=o.nextSuspenseID++;o=h(o.boundaryPrefix+s.toString(16)),r=r.id=o,be(t,e.responseState,r),Cn(e,t,n)}else if(r.byteSize>e.progressiveChunkSize)r.rootSegmentID=e.nextSegmentId++,e.completedBoundaries.push(r),be(t,e.responseState,r.id),Cn(e,t,n);else{if(l(t,de),1!==(n=r.completedSegments).length)throw Error(i(391));An(e,t,n[0])}return l(t,ge)}function kn(e,t,n){return function(e,t,n,r){switch(n.insertionMode){case 0:case 1:return a(e,xe),a(e,t.segmentPrefix),a(e,d(r.toString(16))),l(e,Se);case 2:return a(e,Ee),a(e,t.segmentPrefix),a(e,d(r.toString(16))),l(e,Pe);case 3:return a(e,Ae),a(e,t.segmentPrefix),a(e,d(r.toString(16))),l(e,ke);case 4:return a(e,Ie),a(e,t.segmentPrefix),a(e,d(r.toString(16))),l(e,Ge);case 5:return a(e,Me),a(e,t.segmentPrefix),a(e,d(r.toString(16))),l(e,Oe);case 6:return a(e,De),a(e,t.segmentPrefix),a(e,d(r.toString(16))),l(e,Ne);case 7:return a(e,Ve),a(e,t.segmentPrefix),a(e,d(r.toString(16))),l(e,Fe);default:throw Error(i(397))}}(t,e.responseState,n.formatContext,n.id),An(e,t,n),function(e,t){switch(t.insertionMode){case 0:case 1:return l(e,we);case 2:return l(e,Ce);case 3:return l(e,je);case 4:return l(e,Te);case 5:return l(e,Re);case 6:return l(e,Le);case 7:return l(e,ze);default:throw Error(i(397))}}(t,n.formatContext)}function jn(e,t,n){for(var r=n.completedSegments,o=0;o<r.length;o++)In(e,t,n,r[o]);if(r.length=0,e=e.responseState,r=n.id,n=n.rootSegmentID,a(t,e.startInlineScript),e.sentCompleteBoundaryFunction?a(t,Xe):(e.sentCompleteBoundaryFunction=!0,a(t,qe)),null===r)throw Error(i(395));return n=d(n.toString(16)),a(t,r),a(t,Ye),a(t,e.segmentPrefix),a(t,n),l(t,Ke)}function In(e,t,n,r){if(2===r.status)return!0;var o=r.id;if(-1===o){if(-1===(r.id=n.rootSegmentID))throw Error(i(392));return kn(e,t,r)}return kn(e,t,r),a(t,(e=e.responseState).startInlineScript),e.sentCompleteSegmentFunction?a(t,Ue):(e.sentCompleteSegmentFunction=!0,a(t,Be)),a(t,e.segmentPrefix),a(t,o=d(o.toString(16))),a(t,We),a(t,e.placeholderPrefix),a(t,o),l(t,He)}function Gn(e,t){o=new Uint8Array(512),s=0;try{var n=e.completedRootSegment;if(null!==n&&0===e.pendingRootTasks){An(e,t,n),e.completedRootSegment=null;var r=e.responseState.bootstrapChunks;for(n=0;n<r.length-1;n++)a(t,r[n]);n<r.length&&l(t,r[n])}var u,h=e.clientRenderedBoundaries;for(u=0;u<h.length;u++){var p=h[u];r=t;var f=e.responseState,g=p.id,m=p.errorDigest,y=p.errorMessage,v=p.errorComponentStack;if(a(r,f.startInlineScript),f.sentClientRenderFunction?a(r,$e):(f.sentClientRenderFunction=!0,a(r,Ze)),null===g)throw Error(i(395));if(a(r,g),a(r,Je),(m||y||v)&&(a(r,et),a(r,d(nt(m||"")))),(y||v)&&(a(r,et),a(r,d(nt(y||"")))),v&&(a(r,et),a(r,d(nt(v)))),!l(r,Qe))return e.destination=null,u++,void h.splice(0,u)}h.splice(0,u);var _=e.completedBoundaries;for(u=0;u<_.length;u++)if(!jn(e,t,_[u]))return e.destination=null,u++,void _.splice(0,u);_.splice(0,u),c(t),o=new Uint8Array(512),s=0;var b=e.partialBoundaries;for(u=0;u<b.length;u++){var x=b[u];e:{h=e,p=t;var S=x.completedSegments;for(f=0;f<S.length;f++)if(!In(h,p,x,S[f])){f++,S.splice(0,f);var w=!1;break e}S.splice(0,f),w=!0}if(!w)return e.destination=null,u++,void b.splice(0,u)}b.splice(0,u);var E=e.completedBoundaries;for(u=0;u<E.length;u++)if(!jn(e,t,E[u]))return e.destination=null,u++,void E.splice(0,u);E.splice(0,u)}finally{c(t),0===e.allPendingTasks&&0===e.pingedTasks.length&&0===e.clientRenderedBoundaries.length&&0===e.completedBoundaries.length&&t.close()}}function Tn(e,t){try{var n=e.abortableTasks;n.forEach((function(n){return Sn(n,e,t)})),n.clear(),null!==e.destination&&Gn(e,e.destination)}catch(r){hn(e,r),pn(e,r)}}t.renderToReadableStream=function(e,t){return new Promise((function(n,r){var i,o,s=new Promise((function(e,t){o=e,i=t})),a=function(e,t,n,r,i,o,s,a,l){var c=[],u=new Set;return(n=dn(t={destination:null,responseState:t,progressiveChunkSize:void 0===r?12800:r,status:0,fatalError:null,nextSegmentId:0,allPendingTasks:0,pendingRootTasks:0,completedRootSegment:null,abortableTasks:u,pingedTasks:c,clientRenderedBoundaries:[],completedBoundaries:[],partialBoundaries:[],onError:void 0===i?ln:i,onAllReady:void 0===o?cn:o,onShellReady:void 0===s?cn:s,onShellError:void 0===a?cn:a,onFatalError:void 0===l?cn:l},0,null,n,!1,!1)).parentFlushed=!0,e=un(t,e,null,n,u,St,null,Mt),c.push(e),t}(e,function(e,t,n,r,i){e=void 0===e?"":e,t=void 0===t?I:h('<script nonce="'+C(t)+'">');var o=[];if(void 0!==n&&o.push(t,d((""+n).replace(R,D)),G),void 0!==r)for(n=0;n<r.length;n++)o.push(T,d(C(r[n])),O);if(void 0!==i)for(r=0;r<i.length;r++)o.push(M,d(C(i[r])),O);return{bootstrapChunks:o,startInlineScript:t,placeholderPrefix:h(e+"P:"),segmentPrefix:h(e+"S:"),boundaryPrefix:e+"B:",idPrefix:e,nextSuspenseID:0,sentCompleteSegmentFunction:!1,sentCompleteBoundaryFunction:!1,sentClientRenderFunction:!1}}(t?t.identifierPrefix:void 0,t?t.nonce:void 0,t?t.bootstrapScriptContent:void 0,t?t.bootstrapScripts:void 0,t?t.bootstrapModules:void 0),function(e){return N("http://www.w3.org/2000/svg"===e?2:"http://www.w3.org/1998/Math/MathML"===e?3:0,null)}(t?t.namespaceURI:void 0),t?t.progressiveChunkSize:void 0,t?t.onError:void 0,o,(function(){var e=new ReadableStream({type:"bytes",pull:function(e){if(1===a.status)a.status=2,p(e,a.fatalError);else if(2!==a.status&&null===a.destination){a.destination=e;try{Gn(a,e)}catch(t){hn(a,t),pn(a,t)}}},cancel:function(){Tn(a)}},{highWaterMark:0});e.allReady=s,n(e)}),(function(e){s.catch((function(){})),r(e)}),i);if(t&&t.signal){var l=t.signal,c=function(){Tn(a,l.reason),l.removeEventListener("abort",c)};l.addEventListener("abort",c)}Pn(a)}))},t.version="18.2.0"},85652:(e,t,n)=>{"use strict";var r=n(99584),i=n(48024);function o(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n<arguments.length;n++)t+="&args[]="+encodeURIComponent(arguments[n]);return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var s=new Set,a={};function l(e,t){c(e,t),c(e+"Capture",t)}function c(e,t){for(a[e]=t,e=0;e<t.length;e++)s.add(t[e])}var u=!("undefined"===typeof window||"undefined"===typeof window.document||"undefined"===typeof window.document.createElement),d=Object.prototype.hasOwnProperty,h=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,p={},f={};function g(e,t,n,r,i,o,s){this.acceptsBooleans=2===t||3===t||4===t,this.attributeName=r,this.attributeNamespace=i,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=o,this.removeEmptyString=s}var m={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach((function(e){m[e]=new g(e,0,!1,e,null,!1,!1)})),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach((function(e){var t=e[0];m[t]=new g(t,1,!1,e[1],null,!1,!1)})),["contentEditable","draggable","spellCheck","value"].forEach((function(e){m[e]=new g(e,2,!1,e.toLowerCase(),null,!1,!1)})),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach((function(e){m[e]=new g(e,2,!1,e,null,!1,!1)})),"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach((function(e){m[e]=new g(e,3,!1,e.toLowerCase(),null,!1,!1)})),["checked","multiple","muted","selected"].forEach((function(e){m[e]=new g(e,3,!0,e,null,!1,!1)})),["capture","download"].forEach((function(e){m[e]=new g(e,4,!1,e,null,!1,!1)})),["cols","rows","size","span"].forEach((function(e){m[e]=new g(e,6,!1,e,null,!1,!1)})),["rowSpan","start"].forEach((function(e){m[e]=new g(e,5,!1,e.toLowerCase(),null,!1,!1)}));var y=/[\-:]([a-z])/g;function v(e){return e[1].toUpperCase()}function _(e,t,n,r){var i=m.hasOwnProperty(t)?m[t]:null;(null!==i?0!==i.type:r||!(2<t.length)||"o"!==t[0]&&"O"!==t[0]||"n"!==t[1]&&"N"!==t[1])&&(function(e,t,n,r){if(null===t||"undefined"===typeof t||function(e,t,n,r){if(null!==n&&0===n.type)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return!r&&(null!==n?!n.acceptsBooleans:"data-"!==(e=e.toLowerCase().slice(0,5))&&"aria-"!==e);default:return!1}}(e,t,n,r))return!0;if(r)return!1;if(null!==n)switch(n.type){case 3:return!t;case 4:return!1===t;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}(t,n,i,r)&&(n=null),r||null===i?function(e){return!!d.call(f,e)||!d.call(p,e)&&(h.test(e)?f[e]=!0:(p[e]=!0,!1))}(t)&&(null===n?e.removeAttribute(t):e.setAttribute(t,""+n)):i.mustUseProperty?e[i.propertyName]=null===n?3!==i.type&&"":n:(t=i.attributeName,r=i.attributeNamespace,null===n?e.removeAttribute(t):(n=3===(i=i.type)||4===i&&!0===n?"":""+n,r?e.setAttributeNS(r,t,n):e.setAttribute(t,n))))}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach((function(e){var t=e.replace(y,v);m[t]=new g(t,1,!1,e,null,!1,!1)})),"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach((function(e){var t=e.replace(y,v);m[t]=new g(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)})),["xml:base","xml:lang","xml:space"].forEach((function(e){var t=e.replace(y,v);m[t]=new g(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)})),["tabIndex","crossOrigin"].forEach((function(e){m[e]=new g(e,1,!1,e.toLowerCase(),null,!1,!1)})),m.xlinkHref=new g("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach((function(e){m[e]=new g(e,1,!1,e.toLowerCase(),null,!0,!0)}));var b=r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,x=Symbol.for("react.element"),S=Symbol.for("react.portal"),w=Symbol.for("react.fragment"),E=Symbol.for("react.strict_mode"),P=Symbol.for("react.profiler"),C=Symbol.for("react.provider"),A=Symbol.for("react.context"),k=Symbol.for("react.forward_ref"),j=Symbol.for("react.suspense"),I=Symbol.for("react.suspense_list"),G=Symbol.for("react.memo"),T=Symbol.for("react.lazy");Symbol.for("react.scope"),Symbol.for("react.debug_trace_mode");var M=Symbol.for("react.offscreen");Symbol.for("react.legacy_hidden"),Symbol.for("react.cache"),Symbol.for("react.tracing_marker");var O=Symbol.iterator;function R(e){return null===e||"object"!==typeof e?null:"function"===typeof(e=O&&e[O]||e["@@iterator"])?e:null}var D,N=Object.assign;function L(e){if(void 0===D)try{throw Error()}catch(n){var t=n.stack.trim().match(/\n( *(at )?)/);D=t&&t[1]||""}return"\n"+D+e}var V=!1;function F(e,t){if(!e||V)return"";V=!0;var n=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{if(t)if(t=function(){throw Error()},Object.defineProperty(t.prototype,"props",{set:function(){throw Error()}}),"object"===typeof Reflect&&Reflect.construct){try{Reflect.construct(t,[])}catch(c){var r=c}Reflect.construct(e,[],t)}else{try{t.call()}catch(c){r=c}e.call(t.prototype)}else{try{throw Error()}catch(c){r=c}e()}}catch(c){if(c&&r&&"string"===typeof c.stack){for(var i=c.stack.split("\n"),o=r.stack.split("\n"),s=i.length-1,a=o.length-1;1<=s&&0<=a&&i[s]!==o[a];)a--;for(;1<=s&&0<=a;s--,a--)if(i[s]!==o[a]){if(1!==s||1!==a)do{if(s--,0>--a||i[s]!==o[a]){var l="\n"+i[s].replace(" at new "," at ");return e.displayName&&l.includes("<anonymous>")&&(l=l.replace("<anonymous>",e.displayName)),l}}while(1<=s&&0<=a);break}}}finally{V=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?L(e):""}function z(e){switch(e.tag){case 5:return L(e.type);case 16:return L("Lazy");case 13:return L("Suspense");case 19:return L("SuspenseList");case 0:case 2:case 15:return e=F(e.type,!1);case 11:return e=F(e.type.render,!1);case 1:return e=F(e.type,!0);default:return""}}function B(e){if(null==e)return null;if("function"===typeof e)return e.displayName||e.name||null;if("string"===typeof e)return e;switch(e){case w:return"Fragment";case S:return"Portal";case P:return"Profiler";case E:return"StrictMode";case j:return"Suspense";case I:return"SuspenseList"}if("object"===typeof e)switch(e.$$typeof){case A:return(e.displayName||"Context")+".Consumer";case C:return(e._context.displayName||"Context")+".Provider";case k:var t=e.render;return(e=e.displayName)||(e=""!==(e=t.displayName||t.name||"")?"ForwardRef("+e+")":"ForwardRef"),e;case G:return null!==(t=e.displayName||null)?t:B(e.type)||"Memo";case T:t=e._payload,e=e._init;try{return B(e(t))}catch(n){}}return null}function U(e){var t=e.type;switch(e.tag){case 24:return"Cache";case 9:return(t.displayName||"Context")+".Consumer";case 10:return(t._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return e=(e=t.render).displayName||e.name||"",t.displayName||(""!==e?"ForwardRef("+e+")":"ForwardRef");case 7:return"Fragment";case 5:return t;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return B(t);case 8:return t===E?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if("function"===typeof t)return t.displayName||t.name||null;if("string"===typeof t)return t}return null}function W(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":case"object":return e;default:return""}}function H(e){var t=e.type;return(e=e.nodeName)&&"input"===e.toLowerCase()&&("checkbox"===t||"radio"===t)}function q(e){e._valueTracker||(e._valueTracker=function(e){var t=H(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),r=""+e[t];if(!e.hasOwnProperty(t)&&"undefined"!==typeof n&&"function"===typeof n.get&&"function"===typeof n.set){var i=n.get,o=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return i.call(this)},set:function(e){r=""+e,o.call(this,e)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(e){r=""+e},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}(e))}function X(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=H(e)?e.checked?"true":"false":e.value),(e=r)!==n&&(t.setValue(e),!0)}function Y(e){if("undefined"===typeof(e=e||("undefined"!==typeof document?document:void 0)))return null;try{return e.activeElement||e.body}catch(t){return e.body}}function K(e,t){var n=t.checked;return N({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:null!=n?n:e._wrapperState.initialChecked})}function Z(e,t){var n=null==t.defaultValue?"":t.defaultValue,r=null!=t.checked?t.checked:t.defaultChecked;n=W(null!=t.value?t.value:n),e._wrapperState={initialChecked:r,initialValue:n,controlled:"checkbox"===t.type||"radio"===t.type?null!=t.checked:null!=t.value}}function $(e,t){null!=(t=t.checked)&&_(e,"checked",t,!1)}function J(e,t){$(e,t);var n=W(t.value),r=t.type;if(null!=n)"number"===r?(0===n&&""===e.value||e.value!=n)&&(e.value=""+n):e.value!==""+n&&(e.value=""+n);else if("submit"===r||"reset"===r)return void e.removeAttribute("value");t.hasOwnProperty("value")?ee(e,t.type,n):t.hasOwnProperty("defaultValue")&&ee(e,t.type,W(t.defaultValue)),null==t.checked&&null!=t.defaultChecked&&(e.defaultChecked=!!t.defaultChecked)}function Q(e,t,n){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var r=t.type;if(!("submit"!==r&&"reset"!==r||void 0!==t.value&&null!==t.value))return;t=""+e._wrapperState.initialValue,n||t===e.value||(e.value=t),e.defaultValue=t}""!==(n=e.name)&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,""!==n&&(e.name=n)}function ee(e,t,n){"number"===t&&Y(e.ownerDocument)===e||(null==n?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var te=Array.isArray;function ne(e,t,n,r){if(e=e.options,t){t={};for(var i=0;i<n.length;i++)t["$"+n[i]]=!0;for(n=0;n<e.length;n++)i=t.hasOwnProperty("$"+e[n].value),e[n].selected!==i&&(e[n].selected=i),i&&r&&(e[n].defaultSelected=!0)}else{for(n=""+W(n),t=null,i=0;i<e.length;i++){if(e[i].value===n)return e[i].selected=!0,void(r&&(e[i].defaultSelected=!0));null!==t||e[i].disabled||(t=e[i])}null!==t&&(t.selected=!0)}}function re(e,t){if(null!=t.dangerouslySetInnerHTML)throw Error(o(91));return N({},t,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue})}function ie(e,t){var n=t.value;if(null==n){if(n=t.children,t=t.defaultValue,null!=n){if(null!=t)throw Error(o(92));if(te(n)){if(1<n.length)throw Error(o(93));n=n[0]}t=n}null==t&&(t=""),n=t}e._wrapperState={initialValue:W(n)}}function oe(e,t){var n=W(t.value),r=W(t.defaultValue);null!=n&&((n=""+n)!==e.value&&(e.value=n),null==t.defaultValue&&e.defaultValue!==n&&(e.defaultValue=n)),null!=r&&(e.defaultValue=""+r)}function se(e){var t=e.textContent;t===e._wrapperState.initialValue&&""!==t&&null!==t&&(e.value=t)}function ae(e){switch(e){case"svg":return"http://www.w3.org/2000/svg";case"math":return"http://www.w3.org/1998/Math/MathML";default:return"http://www.w3.org/1999/xhtml"}}function le(e,t){return null==e||"http://www.w3.org/1999/xhtml"===e?ae(t):"http://www.w3.org/2000/svg"===e&&"foreignObject"===t?"http://www.w3.org/1999/xhtml":e}var ce,ue,de=(ue=function(e,t){if("http://www.w3.org/2000/svg"!==e.namespaceURI||"innerHTML"in e)e.innerHTML=t;else{for((ce=ce||document.createElement("div")).innerHTML="<svg>"+t.valueOf().toString()+"</svg>",t=ce.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}},"undefined"!==typeof MSApp&&MSApp.execUnsafeLocalFunction?function(e,t,n,r){MSApp.execUnsafeLocalFunction((function(){return ue(e,t)}))}:ue);function he(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&3===n.nodeType)return void(n.nodeValue=t)}e.textContent=t}var pe={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},fe=["Webkit","ms","Moz","O"];function ge(e,t,n){return null==t||"boolean"===typeof t||""===t?"":n||"number"!==typeof t||0===t||pe.hasOwnProperty(e)&&pe[e]?(""+t).trim():t+"px"}function me(e,t){for(var n in e=e.style,t)if(t.hasOwnProperty(n)){var r=0===n.indexOf("--"),i=ge(n,t[n],r);"float"===n&&(n="cssFloat"),r?e.setProperty(n,i):e[n]=i}}Object.keys(pe).forEach((function(e){fe.forEach((function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),pe[t]=pe[e]}))}));var ye=N({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function ve(e,t){if(t){if(ye[e]&&(null!=t.children||null!=t.dangerouslySetInnerHTML))throw Error(o(137,e));if(null!=t.dangerouslySetInnerHTML){if(null!=t.children)throw Error(o(60));if("object"!==typeof t.dangerouslySetInnerHTML||!("__html"in t.dangerouslySetInnerHTML))throw Error(o(61))}if(null!=t.style&&"object"!==typeof t.style)throw Error(o(62))}}function _e(e,t){if(-1===e.indexOf("-"))return"string"===typeof t.is;switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var be=null;function xe(e){return(e=e.target||e.srcElement||window).correspondingUseElement&&(e=e.correspondingUseElement),3===e.nodeType?e.parentNode:e}var Se=null,we=null,Ee=null;function Pe(e){if(e=_i(e)){if("function"!==typeof Se)throw Error(o(280));var t=e.stateNode;t&&(t=xi(t),Se(e.stateNode,e.type,t))}}function Ce(e){we?Ee?Ee.push(e):Ee=[e]:we=e}function Ae(){if(we){var e=we,t=Ee;if(Ee=we=null,Pe(e),t)for(e=0;e<t.length;e++)Pe(t[e])}}function ke(e,t){return e(t)}function je(){}var Ie=!1;function Ge(e,t,n){if(Ie)return e(t,n);Ie=!0;try{return ke(e,t,n)}finally{Ie=!1,(null!==we||null!==Ee)&&(je(),Ae())}}function Te(e,t){var n=e.stateNode;if(null===n)return null;var r=xi(n);if(null===r)return null;n=r[t];e:switch(t){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(r=!r.disabled)||(r=!("button"===(e=e.type)||"input"===e||"select"===e||"textarea"===e)),e=!r;break e;default:e=!1}if(e)return null;if(n&&"function"!==typeof n)throw Error(o(231,t,typeof n));return n}var Me=!1;if(u)try{var Oe={};Object.defineProperty(Oe,"passive",{get:function(){Me=!0}}),window.addEventListener("test",Oe,Oe),window.removeEventListener("test",Oe,Oe)}catch(ue){Me=!1}function Re(e,t,n,r,i,o,s,a,l){var c=Array.prototype.slice.call(arguments,3);try{t.apply(n,c)}catch(u){this.onError(u)}}var De=!1,Ne=null,Le=!1,Ve=null,Fe={onError:function(e){De=!0,Ne=e}};function ze(e,t,n,r,i,o,s,a,l){De=!1,Ne=null,Re.apply(Fe,arguments)}function Be(e){var t=e,n=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do{0!==(4098&(t=e).flags)&&(n=t.return),e=t.return}while(e)}return 3===t.tag?n:null}function Ue(e){if(13===e.tag){var t=e.memoizedState;if(null===t&&(null!==(e=e.alternate)&&(t=e.memoizedState)),null!==t)return t.dehydrated}return null}function We(e){if(Be(e)!==e)throw Error(o(188))}function He(e){return null!==(e=function(e){var t=e.alternate;if(!t){if(null===(t=Be(e)))throw Error(o(188));return t!==e?null:e}for(var n=e,r=t;;){var i=n.return;if(null===i)break;var s=i.alternate;if(null===s){if(null!==(r=i.return)){n=r;continue}break}if(i.child===s.child){for(s=i.child;s;){if(s===n)return We(i),e;if(s===r)return We(i),t;s=s.sibling}throw Error(o(188))}if(n.return!==r.return)n=i,r=s;else{for(var a=!1,l=i.child;l;){if(l===n){a=!0,n=i,r=s;break}if(l===r){a=!0,r=i,n=s;break}l=l.sibling}if(!a){for(l=s.child;l;){if(l===n){a=!0,n=s,r=i;break}if(l===r){a=!0,r=s,n=i;break}l=l.sibling}if(!a)throw Error(o(189))}}if(n.alternate!==r)throw Error(o(190))}if(3!==n.tag)throw Error(o(188));return n.stateNode.current===n?e:t}(e))?qe(e):null}function qe(e){if(5===e.tag||6===e.tag)return e;for(e=e.child;null!==e;){var t=qe(e);if(null!==t)return t;e=e.sibling}return null}var Xe=i.unstable_scheduleCallback,Ye=i.unstable_cancelCallback,Ke=i.unstable_shouldYield,Ze=i.unstable_requestPaint,$e=i.unstable_now,Je=i.unstable_getCurrentPriorityLevel,Qe=i.unstable_ImmediatePriority,et=i.unstable_UserBlockingPriority,tt=i.unstable_NormalPriority,nt=i.unstable_LowPriority,rt=i.unstable_IdlePriority,it=null,ot=null;var st=Math.clz32?Math.clz32:function(e){return e>>>=0,0===e?32:31-(at(e)/lt|0)|0},at=Math.log,lt=Math.LN2;var ct=64,ut=4194304;function dt(e){switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return 4194240&e;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return 130023424&e;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return e}}function ht(e,t){var n=e.pendingLanes;if(0===n)return 0;var r=0,i=e.suspendedLanes,o=e.pingedLanes,s=268435455&n;if(0!==s){var a=s&~i;0!==a?r=dt(a):0!==(o&=s)&&(r=dt(o))}else 0!==(s=n&~i)?r=dt(s):0!==o&&(r=dt(o));if(0===r)return 0;if(0!==t&&t!==r&&0===(t&i)&&((i=r&-r)>=(o=t&-t)||16===i&&0!==(4194240&o)))return t;if(0!==(4&r)&&(r|=16&n),0!==(t=e.entangledLanes))for(e=e.entanglements,t&=r;0<t;)i=1<<(n=31-st(t)),r|=e[n],t&=~i;return r}function pt(e,t){switch(e){case 1:case 2:case 4:return t+250;case 8:case 16:case 32:case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return t+5e3;default:return-1}}function ft(e){return 0!==(e=-1073741825&e.pendingLanes)?e:1073741824&e?1073741824:0}function gt(){var e=ct;return 0===(4194240&(ct<<=1))&&(ct=64),e}function mt(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function yt(e,t,n){e.pendingLanes|=t,536870912!==t&&(e.suspendedLanes=0,e.pingedLanes=0),(e=e.eventTimes)[t=31-st(t)]=n}function vt(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var r=31-st(n),i=1<<r;i&t|e[r]&t&&(e[r]|=t),n&=~i}}var _t=0;function bt(e){return 1<(e&=-e)?4<e?0!==(268435455&e)?16:536870912:4:1}var xt,St,wt,Et,Pt,Ct=!1,At=[],kt=null,jt=null,It=null,Gt=new Map,Tt=new Map,Mt=[],Ot="mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset submit".split(" ");function Rt(e,t){switch(e){case"focusin":case"focusout":kt=null;break;case"dragenter":case"dragleave":jt=null;break;case"mouseover":case"mouseout":It=null;break;case"pointerover":case"pointerout":Gt.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":Tt.delete(t.pointerId)}}function Dt(e,t,n,r,i,o){return null===e||e.nativeEvent!==o?(e={blockedOn:t,domEventName:n,eventSystemFlags:r,nativeEvent:o,targetContainers:[i]},null!==t&&(null!==(t=_i(t))&&St(t)),e):(e.eventSystemFlags|=r,t=e.targetContainers,null!==i&&-1===t.indexOf(i)&&t.push(i),e)}function Nt(e){var t=vi(e.target);if(null!==t){var n=Be(t);if(null!==n)if(13===(t=n.tag)){if(null!==(t=Ue(n)))return e.blockedOn=t,void Pt(e.priority,(function(){wt(n)}))}else if(3===t&&n.stateNode.current.memoizedState.isDehydrated)return void(e.blockedOn=3===n.tag?n.stateNode.containerInfo:null)}e.blockedOn=null}function Lt(e){if(null!==e.blockedOn)return!1;for(var t=e.targetContainers;0<t.length;){var n=Kt(e.domEventName,e.eventSystemFlags,t[0],e.nativeEvent);if(null!==n)return null!==(t=_i(n))&&St(t),e.blockedOn=n,!1;var r=new(n=e.nativeEvent).constructor(n.type,n);be=r,n.target.dispatchEvent(r),be=null,t.shift()}return!0}function Vt(e,t,n){Lt(e)&&n.delete(t)}function Ft(){Ct=!1,null!==kt&&Lt(kt)&&(kt=null),null!==jt&&Lt(jt)&&(jt=null),null!==It&&Lt(It)&&(It=null),Gt.forEach(Vt),Tt.forEach(Vt)}function zt(e,t){e.blockedOn===t&&(e.blockedOn=null,Ct||(Ct=!0,i.unstable_scheduleCallback(i.unstable_NormalPriority,Ft)))}function Bt(e){function t(t){return zt(t,e)}if(0<At.length){zt(At[0],e);for(var n=1;n<At.length;n++){var r=At[n];r.blockedOn===e&&(r.blockedOn=null)}}for(null!==kt&&zt(kt,e),null!==jt&&zt(jt,e),null!==It&&zt(It,e),Gt.forEach(t),Tt.forEach(t),n=0;n<Mt.length;n++)(r=Mt[n]).blockedOn===e&&(r.blockedOn=null);for(;0<Mt.length&&null===(n=Mt[0]).blockedOn;)Nt(n),null===n.blockedOn&&Mt.shift()}var Ut=b.ReactCurrentBatchConfig,Wt=!0;function Ht(e,t,n,r){var i=_t,o=Ut.transition;Ut.transition=null;try{_t=1,Xt(e,t,n,r)}finally{_t=i,Ut.transition=o}}function qt(e,t,n,r){var i=_t,o=Ut.transition;Ut.transition=null;try{_t=4,Xt(e,t,n,r)}finally{_t=i,Ut.transition=o}}function Xt(e,t,n,r){if(Wt){var i=Kt(e,t,n,r);if(null===i)Wr(e,t,r,Yt,n),Rt(e,r);else if(function(e,t,n,r,i){switch(t){case"focusin":return kt=Dt(kt,e,t,n,r,i),!0;case"dragenter":return jt=Dt(jt,e,t,n,r,i),!0;case"mouseover":return It=Dt(It,e,t,n,r,i),!0;case"pointerover":var o=i.pointerId;return Gt.set(o,Dt(Gt.get(o)||null,e,t,n,r,i)),!0;case"gotpointercapture":return o=i.pointerId,Tt.set(o,Dt(Tt.get(o)||null,e,t,n,r,i)),!0}return!1}(i,e,t,n,r))r.stopPropagation();else if(Rt(e,r),4&t&&-1<Ot.indexOf(e)){for(;null!==i;){var o=_i(i);if(null!==o&&xt(o),null===(o=Kt(e,t,n,r))&&Wr(e,t,r,Yt,n),o===i)break;i=o}null!==i&&r.stopPropagation()}else Wr(e,t,r,null,n)}}var Yt=null;function Kt(e,t,n,r){if(Yt=null,null!==(e=vi(e=xe(r))))if(null===(t=Be(e)))e=null;else if(13===(n=t.tag)){if(null!==(e=Ue(t)))return e;e=null}else if(3===n){if(t.stateNode.current.memoizedState.isDehydrated)return 3===t.tag?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null);return Yt=e,null}function Zt(e){switch(e){case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"resize":case"seeked":case"submit":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return 1;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"scroll":case"toggle":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 4;case"message":switch(Je()){case Qe:return 1;case et:return 4;case tt:case nt:return 16;case rt:return 536870912;default:return 16}default:return 16}}var $t=null,Jt=null,Qt=null;function en(){if(Qt)return Qt;var e,t,n=Jt,r=n.length,i="value"in $t?$t.value:$t.textContent,o=i.length;for(e=0;e<r&&n[e]===i[e];e++);var s=r-e;for(t=1;t<=s&&n[r-t]===i[o-t];t++);return Qt=i.slice(e,1<t?1-t:void 0)}function tn(e){var t=e.keyCode;return"charCode"in e?0===(e=e.charCode)&&13===t&&(e=13):e=t,10===e&&(e=13),32<=e||13===e?e:0}function nn(){return!0}function rn(){return!1}function on(e){function t(t,n,r,i,o){for(var s in this._reactName=t,this._targetInst=r,this.type=n,this.nativeEvent=i,this.target=o,this.currentTarget=null,e)e.hasOwnProperty(s)&&(t=e[s],this[s]=t?t(i):i[s]);return this.isDefaultPrevented=(null!=i.defaultPrevented?i.defaultPrevented:!1===i.returnValue)?nn:rn,this.isPropagationStopped=rn,this}return N(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var e=this.nativeEvent;e&&(e.preventDefault?e.preventDefault():"unknown"!==typeof e.returnValue&&(e.returnValue=!1),this.isDefaultPrevented=nn)},stopPropagation:function(){var e=this.nativeEvent;e&&(e.stopPropagation?e.stopPropagation():"unknown"!==typeof e.cancelBubble&&(e.cancelBubble=!0),this.isPropagationStopped=nn)},persist:function(){},isPersistent:nn}),t}var sn,an,ln,cn={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},un=on(cn),dn=N({},cn,{view:0,detail:0}),hn=on(dn),pn=N({},dn,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Pn,button:0,buttons:0,relatedTarget:function(e){return void 0===e.relatedTarget?e.fromElement===e.srcElement?e.toElement:e.fromElement:e.relatedTarget},movementX:function(e){return"movementX"in e?e.movementX:(e!==ln&&(ln&&"mousemove"===e.type?(sn=e.screenX-ln.screenX,an=e.screenY-ln.screenY):an=sn=0,ln=e),sn)},movementY:function(e){return"movementY"in e?e.movementY:an}}),fn=on(pn),gn=on(N({},pn,{dataTransfer:0})),mn=on(N({},dn,{relatedTarget:0})),yn=on(N({},cn,{animationName:0,elapsedTime:0,pseudoElement:0})),vn=N({},cn,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),_n=on(vn),bn=on(N({},cn,{data:0})),xn={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},Sn={8:"Backspace",9:"Tab",12:"Clear",13:"Enter",16:"Shift",17:"Control",18:"Alt",19:"Pause",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",45:"Insert",46:"Delete",112:"F1",113:"F2",114:"F3",115:"F4",116:"F5",117:"F6",118:"F7",119:"F8",120:"F9",121:"F10",122:"F11",123:"F12",144:"NumLock",145:"ScrollLock",224:"Meta"},wn={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function En(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):!!(e=wn[e])&&!!t[e]}function Pn(){return En}var Cn=N({},dn,{key:function(e){if(e.key){var t=xn[e.key]||e.key;if("Unidentified"!==t)return t}return"keypress"===e.type?13===(e=tn(e))?"Enter":String.fromCharCode(e):"keydown"===e.type||"keyup"===e.type?Sn[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Pn,charCode:function(e){return"keypress"===e.type?tn(e):0},keyCode:function(e){return"keydown"===e.type||"keyup"===e.type?e.keyCode:0},which:function(e){return"keypress"===e.type?tn(e):"keydown"===e.type||"keyup"===e.type?e.keyCode:0}}),An=on(Cn),kn=on(N({},pn,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0})),jn=on(N({},dn,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Pn})),In=on(N({},cn,{propertyName:0,elapsedTime:0,pseudoElement:0})),Gn=N({},pn,{deltaX:function(e){return"deltaX"in e?e.deltaX:"wheelDeltaX"in e?-e.wheelDeltaX:0},deltaY:function(e){return"deltaY"in e?e.deltaY:"wheelDeltaY"in e?-e.wheelDeltaY:"wheelDelta"in e?-e.wheelDelta:0},deltaZ:0,deltaMode:0}),Tn=on(Gn),Mn=[9,13,27,32],On=u&&"CompositionEvent"in window,Rn=null;u&&"documentMode"in document&&(Rn=document.documentMode);var Dn=u&&"TextEvent"in window&&!Rn,Nn=u&&(!On||Rn&&8<Rn&&11>=Rn),Ln=String.fromCharCode(32),Vn=!1;function Fn(e,t){switch(e){case"keyup":return-1!==Mn.indexOf(t.keyCode);case"keydown":return 229!==t.keyCode;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function zn(e){return"object"===typeof(e=e.detail)&&"data"in e?e.data:null}var Bn=!1;var Un={color:!0,date:!0,datetime:!0,"datetime-local":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0};function Wn(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return"input"===t?!!Un[e.type]:"textarea"===t}function Hn(e,t,n,r){Ce(r),0<(t=qr(t,"onChange")).length&&(n=new un("onChange","change",null,n,r),e.push({event:n,listeners:t}))}var qn=null,Xn=null;function Yn(e){Lr(e,0)}function Kn(e){if(X(bi(e)))return e}function Zn(e,t){if("change"===e)return t}var $n=!1;if(u){var Jn;if(u){var Qn="oninput"in document;if(!Qn){var er=document.createElement("div");er.setAttribute("oninput","return;"),Qn="function"===typeof er.oninput}Jn=Qn}else Jn=!1;$n=Jn&&(!document.documentMode||9<document.documentMode)}function tr(){qn&&(qn.detachEvent("onpropertychange",nr),Xn=qn=null)}function nr(e){if("value"===e.propertyName&&Kn(Xn)){var t=[];Hn(t,Xn,e,xe(e)),Ge(Yn,t)}}function rr(e,t,n){"focusin"===e?(tr(),Xn=n,(qn=t).attachEvent("onpropertychange",nr)):"focusout"===e&&tr()}function ir(e){if("selectionchange"===e||"keyup"===e||"keydown"===e)return Kn(Xn)}function or(e,t){if("click"===e)return Kn(t)}function sr(e,t){if("input"===e||"change"===e)return Kn(t)}var ar="function"===typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e===1/t)||e!==e&&t!==t};function lr(e,t){if(ar(e,t))return!0;if("object"!==typeof e||null===e||"object"!==typeof t||null===t)return!1;var n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(r=0;r<n.length;r++){var i=n[r];if(!d.call(t,i)||!ar(e[i],t[i]))return!1}return!0}function cr(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function ur(e,t){var n,r=cr(e);for(e=0;r;){if(3===r.nodeType){if(n=e+r.textContent.length,e<=t&&n>=t)return{node:r,offset:t-e};e=n}e:{for(;r;){if(r.nextSibling){r=r.nextSibling;break e}r=r.parentNode}r=void 0}r=cr(r)}}function dr(e,t){return!(!e||!t)&&(e===t||(!e||3!==e.nodeType)&&(t&&3===t.nodeType?dr(e,t.parentNode):"contains"in e?e.contains(t):!!e.compareDocumentPosition&&!!(16&e.compareDocumentPosition(t))))}function hr(){for(var e=window,t=Y();t instanceof e.HTMLIFrameElement;){try{var n="string"===typeof t.contentWindow.location.href}catch(r){n=!1}if(!n)break;t=Y((e=t.contentWindow).document)}return t}function pr(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&("input"===t&&("text"===e.type||"search"===e.type||"tel"===e.type||"url"===e.type||"password"===e.type)||"textarea"===t||"true"===e.contentEditable)}function fr(e){var t=hr(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&dr(n.ownerDocument.documentElement,n)){if(null!==r&&pr(n))if(t=r.start,void 0===(e=r.end)&&(e=t),"selectionStart"in n)n.selectionStart=t,n.selectionEnd=Math.min(e,n.value.length);else if((e=(t=n.ownerDocument||document)&&t.defaultView||window).getSelection){e=e.getSelection();var i=n.textContent.length,o=Math.min(r.start,i);r=void 0===r.end?o:Math.min(r.end,i),!e.extend&&o>r&&(i=r,r=o,o=i),i=ur(n,o);var s=ur(n,r);i&&s&&(1!==e.rangeCount||e.anchorNode!==i.node||e.anchorOffset!==i.offset||e.focusNode!==s.node||e.focusOffset!==s.offset)&&((t=t.createRange()).setStart(i.node,i.offset),e.removeAllRanges(),o>r?(e.addRange(t),e.extend(s.node,s.offset)):(t.setEnd(s.node,s.offset),e.addRange(t)))}for(t=[],e=n;e=e.parentNode;)1===e.nodeType&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for("function"===typeof n.focus&&n.focus(),n=0;n<t.length;n++)(e=t[n]).element.scrollLeft=e.left,e.element.scrollTop=e.top}}var gr=u&&"documentMode"in document&&11>=document.documentMode,mr=null,yr=null,vr=null,_r=!1;function br(e,t,n){var r=n.window===n?n.document:9===n.nodeType?n:n.ownerDocument;_r||null==mr||mr!==Y(r)||("selectionStart"in(r=mr)&&pr(r)?r={start:r.selectionStart,end:r.selectionEnd}:r={anchorNode:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection()).anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset},vr&&lr(vr,r)||(vr=r,0<(r=qr(yr,"onSelect")).length&&(t=new un("onSelect","select",null,t,n),e.push({event:t,listeners:r}),t.target=mr)))}function xr(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var Sr={animationend:xr("Animation","AnimationEnd"),animationiteration:xr("Animation","AnimationIteration"),animationstart:xr("Animation","AnimationStart"),transitionend:xr("Transition","TransitionEnd")},wr={},Er={};function Pr(e){if(wr[e])return wr[e];if(!Sr[e])return e;var t,n=Sr[e];for(t in n)if(n.hasOwnProperty(t)&&t in Er)return wr[e]=n[t];return e}u&&(Er=document.createElement("div").style,"AnimationEvent"in window||(delete Sr.animationend.animation,delete Sr.animationiteration.animation,delete Sr.animationstart.animation),"TransitionEvent"in window||delete Sr.transitionend.transition);var Cr=Pr("animationend"),Ar=Pr("animationiteration"),kr=Pr("animationstart"),jr=Pr("transitionend"),Ir=new Map,Gr="abort auxClick cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll toggle touchMove waiting wheel".split(" ");function Tr(e,t){Ir.set(e,t),l(t,[e])}for(var Mr=0;Mr<Gr.length;Mr++){var Or=Gr[Mr];Tr(Or.toLowerCase(),"on"+(Or[0].toUpperCase()+Or.slice(1)))}Tr(Cr,"onAnimationEnd"),Tr(Ar,"onAnimationIteration"),Tr(kr,"onAnimationStart"),Tr("dblclick","onDoubleClick"),Tr("focusin","onFocus"),Tr("focusout","onBlur"),Tr(jr,"onTransitionEnd"),c("onMouseEnter",["mouseout","mouseover"]),c("onMouseLeave",["mouseout","mouseover"]),c("onPointerEnter",["pointerout","pointerover"]),c("onPointerLeave",["pointerout","pointerover"]),l("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),l("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),l("onBeforeInput",["compositionend","keypress","textInput","paste"]),l("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),l("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),l("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Rr="abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange resize seeked seeking stalled suspend timeupdate volumechange waiting".split(" "),Dr=new Set("cancel close invalid load scroll toggle".split(" ").concat(Rr));function Nr(e,t,n){var r=e.type||"unknown-event";e.currentTarget=n,function(e,t,n,r,i,s,a,l,c){if(ze.apply(this,arguments),De){if(!De)throw Error(o(198));var u=Ne;De=!1,Ne=null,Le||(Le=!0,Ve=u)}}(r,t,void 0,e),e.currentTarget=null}function Lr(e,t){t=0!==(4&t);for(var n=0;n<e.length;n++){var r=e[n],i=r.event;r=r.listeners;e:{var o=void 0;if(t)for(var s=r.length-1;0<=s;s--){var a=r[s],l=a.instance,c=a.currentTarget;if(a=a.listener,l!==o&&i.isPropagationStopped())break e;Nr(i,a,c),o=l}else for(s=0;s<r.length;s++){if(l=(a=r[s]).instance,c=a.currentTarget,a=a.listener,l!==o&&i.isPropagationStopped())break e;Nr(i,a,c),o=l}}}if(Le)throw e=Ve,Le=!1,Ve=null,e}function Vr(e,t){var n=t[gi];void 0===n&&(n=t[gi]=new Set);var r=e+"__bubble";n.has(r)||(Ur(t,e,2,!1),n.add(r))}function Fr(e,t,n){var r=0;t&&(r|=4),Ur(n,e,r,t)}var zr="_reactListening"+Math.random().toString(36).slice(2);function Br(e){if(!e[zr]){e[zr]=!0,s.forEach((function(t){"selectionchange"!==t&&(Dr.has(t)||Fr(t,!1,e),Fr(t,!0,e))}));var t=9===e.nodeType?e:e.ownerDocument;null===t||t[zr]||(t[zr]=!0,Fr("selectionchange",!1,t))}}function Ur(e,t,n,r){switch(Zt(t)){case 1:var i=Ht;break;case 4:i=qt;break;default:i=Xt}n=i.bind(null,t,n,e),i=void 0,!Me||"touchstart"!==t&&"touchmove"!==t&&"wheel"!==t||(i=!0),r?void 0!==i?e.addEventListener(t,n,{capture:!0,passive:i}):e.addEventListener(t,n,!0):void 0!==i?e.addEventListener(t,n,{passive:i}):e.addEventListener(t,n,!1)}function Wr(e,t,n,r,i){var o=r;if(0===(1&t)&&0===(2&t)&&null!==r)e:for(;;){if(null===r)return;var s=r.tag;if(3===s||4===s){var a=r.stateNode.containerInfo;if(a===i||8===a.nodeType&&a.parentNode===i)break;if(4===s)for(s=r.return;null!==s;){var l=s.tag;if((3===l||4===l)&&((l=s.stateNode.containerInfo)===i||8===l.nodeType&&l.parentNode===i))return;s=s.return}for(;null!==a;){if(null===(s=vi(a)))return;if(5===(l=s.tag)||6===l){r=o=s;continue e}a=a.parentNode}}r=r.return}Ge((function(){var r=o,i=xe(n),s=[];e:{var a=Ir.get(e);if(void 0!==a){var l=un,c=e;switch(e){case"keypress":if(0===tn(n))break e;case"keydown":case"keyup":l=An;break;case"focusin":c="focus",l=mn;break;case"focusout":c="blur",l=mn;break;case"beforeblur":case"afterblur":l=mn;break;case"click":if(2===n.button)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":l=fn;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":l=gn;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":l=jn;break;case Cr:case Ar:case kr:l=yn;break;case jr:l=In;break;case"scroll":l=hn;break;case"wheel":l=Tn;break;case"copy":case"cut":case"paste":l=_n;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":l=kn}var u=0!==(4&t),d=!u&&"scroll"===e,h=u?null!==a?a+"Capture":null:a;u=[];for(var p,f=r;null!==f;){var g=(p=f).stateNode;if(5===p.tag&&null!==g&&(p=g,null!==h&&(null!=(g=Te(f,h))&&u.push(Hr(f,g,p)))),d)break;f=f.return}0<u.length&&(a=new l(a,c,null,n,i),s.push({event:a,listeners:u}))}}if(0===(7&t)){if(l="mouseout"===e||"pointerout"===e,(!(a="mouseover"===e||"pointerover"===e)||n===be||!(c=n.relatedTarget||n.fromElement)||!vi(c)&&!c[fi])&&(l||a)&&(a=i.window===i?i:(a=i.ownerDocument)?a.defaultView||a.parentWindow:window,l?(l=r,null!==(c=(c=n.relatedTarget||n.toElement)?vi(c):null)&&(c!==(d=Be(c))||5!==c.tag&&6!==c.tag)&&(c=null)):(l=null,c=r),l!==c)){if(u=fn,g="onMouseLeave",h="onMouseEnter",f="mouse","pointerout"!==e&&"pointerover"!==e||(u=kn,g="onPointerLeave",h="onPointerEnter",f="pointer"),d=null==l?a:bi(l),p=null==c?a:bi(c),(a=new u(g,f+"leave",l,n,i)).target=d,a.relatedTarget=p,g=null,vi(i)===r&&((u=new u(h,f+"enter",c,n,i)).target=p,u.relatedTarget=d,g=u),d=g,l&&c)e:{for(h=c,f=0,p=u=l;p;p=Xr(p))f++;for(p=0,g=h;g;g=Xr(g))p++;for(;0<f-p;)u=Xr(u),f--;for(;0<p-f;)h=Xr(h),p--;for(;f--;){if(u===h||null!==h&&u===h.alternate)break e;u=Xr(u),h=Xr(h)}u=null}else u=null;null!==l&&Yr(s,a,l,u,!1),null!==c&&null!==d&&Yr(s,d,c,u,!0)}if("select"===(l=(a=r?bi(r):window).nodeName&&a.nodeName.toLowerCase())||"input"===l&&"file"===a.type)var m=Zn;else if(Wn(a))if($n)m=sr;else{m=ir;var y=rr}else(l=a.nodeName)&&"input"===l.toLowerCase()&&("checkbox"===a.type||"radio"===a.type)&&(m=or);switch(m&&(m=m(e,r))?Hn(s,m,n,i):(y&&y(e,a,r),"focusout"===e&&(y=a._wrapperState)&&y.controlled&&"number"===a.type&&ee(a,"number",a.value)),y=r?bi(r):window,e){case"focusin":(Wn(y)||"true"===y.contentEditable)&&(mr=y,yr=r,vr=null);break;case"focusout":vr=yr=mr=null;break;case"mousedown":_r=!0;break;case"contextmenu":case"mouseup":case"dragend":_r=!1,br(s,n,i);break;case"selectionchange":if(gr)break;case"keydown":case"keyup":br(s,n,i)}var v;if(On)e:{switch(e){case"compositionstart":var _="onCompositionStart";break e;case"compositionend":_="onCompositionEnd";break e;case"compositionupdate":_="onCompositionUpdate";break e}_=void 0}else Bn?Fn(e,n)&&(_="onCompositionEnd"):"keydown"===e&&229===n.keyCode&&(_="onCompositionStart");_&&(Nn&&"ko"!==n.locale&&(Bn||"onCompositionStart"!==_?"onCompositionEnd"===_&&Bn&&(v=en()):(Jt="value"in($t=i)?$t.value:$t.textContent,Bn=!0)),0<(y=qr(r,_)).length&&(_=new bn(_,e,null,n,i),s.push({event:_,listeners:y}),v?_.data=v:null!==(v=zn(n))&&(_.data=v))),(v=Dn?function(e,t){switch(e){case"compositionend":return zn(t);case"keypress":return 32!==t.which?null:(Vn=!0,Ln);case"textInput":return(e=t.data)===Ln&&Vn?null:e;default:return null}}(e,n):function(e,t){if(Bn)return"compositionend"===e||!On&&Fn(e,t)?(e=en(),Qt=Jt=$t=null,Bn=!1,e):null;switch(e){case"paste":default:return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1<t.char.length)return t.char;if(t.which)return String.fromCharCode(t.which)}return null;case"compositionend":return Nn&&"ko"!==t.locale?null:t.data}}(e,n))&&(0<(r=qr(r,"onBeforeInput")).length&&(i=new bn("onBeforeInput","beforeinput",null,n,i),s.push({event:i,listeners:r}),i.data=v))}Lr(s,t)}))}function Hr(e,t,n){return{instance:e,listener:t,currentTarget:n}}function qr(e,t){for(var n=t+"Capture",r=[];null!==e;){var i=e,o=i.stateNode;5===i.tag&&null!==o&&(i=o,null!=(o=Te(e,n))&&r.unshift(Hr(e,o,i)),null!=(o=Te(e,t))&&r.push(Hr(e,o,i))),e=e.return}return r}function Xr(e){if(null===e)return null;do{e=e.return}while(e&&5!==e.tag);return e||null}function Yr(e,t,n,r,i){for(var o=t._reactName,s=[];null!==n&&n!==r;){var a=n,l=a.alternate,c=a.stateNode;if(null!==l&&l===r)break;5===a.tag&&null!==c&&(a=c,i?null!=(l=Te(n,o))&&s.unshift(Hr(n,l,a)):i||null!=(l=Te(n,o))&&s.push(Hr(n,l,a))),n=n.return}0!==s.length&&e.push({event:t,listeners:s})}var Kr=/\r\n?/g,Zr=/\u0000|\uFFFD/g;function $r(e){return("string"===typeof e?e:""+e).replace(Kr,"\n").replace(Zr,"")}function Jr(e,t,n){if(t=$r(t),$r(e)!==t&&n)throw Error(o(425))}function Qr(){}var ei=null,ti=null;function ni(e,t){return"textarea"===e||"noscript"===e||"string"===typeof t.children||"number"===typeof t.children||"object"===typeof t.dangerouslySetInnerHTML&&null!==t.dangerouslySetInnerHTML&&null!=t.dangerouslySetInnerHTML.__html}var ri="function"===typeof setTimeout?setTimeout:void 0,ii="function"===typeof clearTimeout?clearTimeout:void 0,oi="function"===typeof Promise?Promise:void 0,si="function"===typeof queueMicrotask?queueMicrotask:"undefined"!==typeof oi?function(e){return oi.resolve(null).then(e).catch(ai)}:ri;function ai(e){setTimeout((function(){throw e}))}function li(e,t){var n=t,r=0;do{var i=n.nextSibling;if(e.removeChild(n),i&&8===i.nodeType)if("/$"===(n=i.data)){if(0===r)return e.removeChild(i),void Bt(t);r--}else"$"!==n&&"$?"!==n&&"$!"!==n||r++;n=i}while(n);Bt(t)}function ci(e){for(;null!=e;e=e.nextSibling){var t=e.nodeType;if(1===t||3===t)break;if(8===t){if("$"===(t=e.data)||"$!"===t||"$?"===t)break;if("/$"===t)return null}}return e}function ui(e){e=e.previousSibling;for(var t=0;e;){if(8===e.nodeType){var n=e.data;if("$"===n||"$!"===n||"$?"===n){if(0===t)return e;t--}else"/$"===n&&t++}e=e.previousSibling}return null}var di=Math.random().toString(36).slice(2),hi="__reactFiber$"+di,pi="__reactProps$"+di,fi="__reactContainer$"+di,gi="__reactEvents$"+di,mi="__reactListeners$"+di,yi="__reactHandles$"+di;function vi(e){var t=e[hi];if(t)return t;for(var n=e.parentNode;n;){if(t=n[fi]||n[hi]){if(n=t.alternate,null!==t.child||null!==n&&null!==n.child)for(e=ui(e);null!==e;){if(n=e[hi])return n;e=ui(e)}return t}n=(e=n).parentNode}return null}function _i(e){return!(e=e[hi]||e[fi])||5!==e.tag&&6!==e.tag&&13!==e.tag&&3!==e.tag?null:e}function bi(e){if(5===e.tag||6===e.tag)return e.stateNode;throw Error(o(33))}function xi(e){return e[pi]||null}var Si=[],wi=-1;function Ei(e){return{current:e}}function Pi(e){0>wi||(e.current=Si[wi],Si[wi]=null,wi--)}function Ci(e,t){wi++,Si[wi]=e.current,e.current=t}var Ai={},ki=Ei(Ai),ji=Ei(!1),Ii=Ai;function Gi(e,t){var n=e.type.contextTypes;if(!n)return Ai;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var i,o={};for(i in n)o[i]=t[i];return r&&((e=e.stateNode).__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=o),o}function Ti(e){return null!==(e=e.childContextTypes)&&void 0!==e}function Mi(){Pi(ji),Pi(ki)}function Oi(e,t,n){if(ki.current!==Ai)throw Error(o(168));Ci(ki,t),Ci(ji,n)}function Ri(e,t,n){var r=e.stateNode;if(t=t.childContextTypes,"function"!==typeof r.getChildContext)return n;for(var i in r=r.getChildContext())if(!(i in t))throw Error(o(108,U(e)||"Unknown",i));return N({},n,r)}function Di(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||Ai,Ii=ki.current,Ci(ki,e),Ci(ji,ji.current),!0}function Ni(e,t,n){var r=e.stateNode;if(!r)throw Error(o(169));n?(e=Ri(e,t,Ii),r.__reactInternalMemoizedMergedChildContext=e,Pi(ji),Pi(ki),Ci(ki,e)):Pi(ji),Ci(ji,n)}var Li=null,Vi=!1,Fi=!1;function zi(e){null===Li?Li=[e]:Li.push(e)}function Bi(){if(!Fi&&null!==Li){Fi=!0;var e=0,t=_t;try{var n=Li;for(_t=1;e<n.length;e++){var r=n[e];do{r=r(!0)}while(null!==r)}Li=null,Vi=!1}catch(i){throw null!==Li&&(Li=Li.slice(e+1)),Xe(Qe,Bi),i}finally{_t=t,Fi=!1}}return null}var Ui=[],Wi=0,Hi=null,qi=0,Xi=[],Yi=0,Ki=null,Zi=1,$i="";function Ji(e,t){Ui[Wi++]=qi,Ui[Wi++]=Hi,Hi=e,qi=t}function Qi(e,t,n){Xi[Yi++]=Zi,Xi[Yi++]=$i,Xi[Yi++]=Ki,Ki=e;var r=Zi;e=$i;var i=32-st(r)-1;r&=~(1<<i),n+=1;var o=32-st(t)+i;if(30<o){var s=i-i%5;o=(r&(1<<s)-1).toString(32),r>>=s,i-=s,Zi=1<<32-st(t)+i|n<<i|r,$i=o+e}else Zi=1<<o|n<<i|r,$i=e}function eo(e){null!==e.return&&(Ji(e,1),Qi(e,1,0))}function to(e){for(;e===Hi;)Hi=Ui[--Wi],Ui[Wi]=null,qi=Ui[--Wi],Ui[Wi]=null;for(;e===Ki;)Ki=Xi[--Yi],Xi[Yi]=null,$i=Xi[--Yi],Xi[Yi]=null,Zi=Xi[--Yi],Xi[Yi]=null}var no=null,ro=null,io=!1,oo=null;function so(e,t){var n=Tc(5,null,null,0);n.elementType="DELETED",n.stateNode=t,n.return=e,null===(t=e.deletions)?(e.deletions=[n],e.flags|=16):t.push(n)}function ao(e,t){switch(e.tag){case 5:var n=e.type;return null!==(t=1!==t.nodeType||n.toLowerCase()!==t.nodeName.toLowerCase()?null:t)&&(e.stateNode=t,no=e,ro=ci(t.firstChild),!0);case 6:return null!==(t=""===e.pendingProps||3!==t.nodeType?null:t)&&(e.stateNode=t,no=e,ro=null,!0);case 13:return null!==(t=8!==t.nodeType?null:t)&&(n=null!==Ki?{id:Zi,overflow:$i}:null,e.memoizedState={dehydrated:t,treeContext:n,retryLane:1073741824},(n=Tc(18,null,null,0)).stateNode=t,n.return=e,e.child=n,no=e,ro=null,!0);default:return!1}}function lo(e){return 0!==(1&e.mode)&&0===(128&e.flags)}function co(e){if(io){var t=ro;if(t){var n=t;if(!ao(e,t)){if(lo(e))throw Error(o(418));t=ci(n.nextSibling);var r=no;t&&ao(e,t)?so(r,n):(e.flags=-4097&e.flags|2,io=!1,no=e)}}else{if(lo(e))throw Error(o(418));e.flags=-4097&e.flags|2,io=!1,no=e}}}function uo(e){for(e=e.return;null!==e&&5!==e.tag&&3!==e.tag&&13!==e.tag;)e=e.return;no=e}function ho(e){if(e!==no)return!1;if(!io)return uo(e),io=!0,!1;var t;if((t=3!==e.tag)&&!(t=5!==e.tag)&&(t="head"!==(t=e.type)&&"body"!==t&&!ni(e.type,e.memoizedProps)),t&&(t=ro)){if(lo(e))throw po(),Error(o(418));for(;t;)so(e,t),t=ci(t.nextSibling)}if(uo(e),13===e.tag){if(!(e=null!==(e=e.memoizedState)?e.dehydrated:null))throw Error(o(317));e:{for(e=e.nextSibling,t=0;e;){if(8===e.nodeType){var n=e.data;if("/$"===n){if(0===t){ro=ci(e.nextSibling);break e}t--}else"$"!==n&&"$!"!==n&&"$?"!==n||t++}e=e.nextSibling}ro=null}}else ro=no?ci(e.stateNode.nextSibling):null;return!0}function po(){for(var e=ro;e;)e=ci(e.nextSibling)}function fo(){ro=no=null,io=!1}function go(e){null===oo?oo=[e]:oo.push(e)}var mo=b.ReactCurrentBatchConfig;function yo(e,t){if(e&&e.defaultProps){for(var n in t=N({},t),e=e.defaultProps)void 0===t[n]&&(t[n]=e[n]);return t}return t}var vo=Ei(null),_o=null,bo=null,xo=null;function So(){xo=bo=_o=null}function wo(e){var t=vo.current;Pi(vo),e._currentValue=t}function Eo(e,t,n){for(;null!==e;){var r=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,null!==r&&(r.childLanes|=t)):null!==r&&(r.childLanes&t)!==t&&(r.childLanes|=t),e===n)break;e=e.return}}function Po(e,t){_o=e,xo=bo=null,null!==(e=e.dependencies)&&null!==e.firstContext&&(0!==(e.lanes&t)&&(ba=!0),e.firstContext=null)}function Co(e){var t=e._currentValue;if(xo!==e)if(e={context:e,memoizedValue:t,next:null},null===bo){if(null===_o)throw Error(o(308));bo=e,_o.dependencies={lanes:0,firstContext:e}}else bo=bo.next=e;return t}var Ao=null;function ko(e){null===Ao?Ao=[e]:Ao.push(e)}function jo(e,t,n,r){var i=t.interleaved;return null===i?(n.next=n,ko(t)):(n.next=i.next,i.next=n),t.interleaved=n,Io(e,r)}function Io(e,t){e.lanes|=t;var n=e.alternate;for(null!==n&&(n.lanes|=t),n=e,e=e.return;null!==e;)e.childLanes|=t,null!==(n=e.alternate)&&(n.childLanes|=t),n=e,e=e.return;return 3===n.tag?n.stateNode:null}var Go=!1;function To(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function Mo(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,effects:e.effects})}function Oo(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function Ro(e,t,n){var r=e.updateQueue;if(null===r)return null;if(r=r.shared,0!==(2&jl)){var i=r.pending;return null===i?t.next=t:(t.next=i.next,i.next=t),r.pending=t,Io(e,n)}return null===(i=r.interleaved)?(t.next=t,ko(r)):(t.next=i.next,i.next=t),r.interleaved=t,Io(e,n)}function Do(e,t,n){if(null!==(t=t.updateQueue)&&(t=t.shared,0!==(4194240&n))){var r=t.lanes;n|=r&=e.pendingLanes,t.lanes=n,vt(e,n)}}function No(e,t){var n=e.updateQueue,r=e.alternate;if(null!==r&&n===(r=r.updateQueue)){var i=null,o=null;if(null!==(n=n.firstBaseUpdate)){do{var s={eventTime:n.eventTime,lane:n.lane,tag:n.tag,payload:n.payload,callback:n.callback,next:null};null===o?i=o=s:o=o.next=s,n=n.next}while(null!==n);null===o?i=o=t:o=o.next=t}else i=o=t;return n={baseState:r.baseState,firstBaseUpdate:i,lastBaseUpdate:o,shared:r.shared,effects:r.effects},void(e.updateQueue=n)}null===(e=n.lastBaseUpdate)?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}function Lo(e,t,n,r){var i=e.updateQueue;Go=!1;var o=i.firstBaseUpdate,s=i.lastBaseUpdate,a=i.shared.pending;if(null!==a){i.shared.pending=null;var l=a,c=l.next;l.next=null,null===s?o=c:s.next=c,s=l;var u=e.alternate;null!==u&&((a=(u=u.updateQueue).lastBaseUpdate)!==s&&(null===a?u.firstBaseUpdate=c:a.next=c,u.lastBaseUpdate=l))}if(null!==o){var d=i.baseState;for(s=0,u=c=l=null,a=o;;){var h=a.lane,p=a.eventTime;if((r&h)===h){null!==u&&(u=u.next={eventTime:p,lane:0,tag:a.tag,payload:a.payload,callback:a.callback,next:null});e:{var f=e,g=a;switch(h=t,p=n,g.tag){case 1:if("function"===typeof(f=g.payload)){d=f.call(p,d,h);break e}d=f;break e;case 3:f.flags=-65537&f.flags|128;case 0:if(null===(h="function"===typeof(f=g.payload)?f.call(p,d,h):f)||void 0===h)break e;d=N({},d,h);break e;case 2:Go=!0}}null!==a.callback&&0!==a.lane&&(e.flags|=64,null===(h=i.effects)?i.effects=[a]:h.push(a))}else p={eventTime:p,lane:h,tag:a.tag,payload:a.payload,callback:a.callback,next:null},null===u?(c=u=p,l=d):u=u.next=p,s|=h;if(null===(a=a.next)){if(null===(a=i.shared.pending))break;a=(h=a).next,h.next=null,i.lastBaseUpdate=h,i.shared.pending=null}}if(null===u&&(l=d),i.baseState=l,i.firstBaseUpdate=c,i.lastBaseUpdate=u,null!==(t=i.shared.interleaved)){i=t;do{s|=i.lane,i=i.next}while(i!==t)}else null===o&&(i.shared.lanes=0);Nl|=s,e.lanes=s,e.memoizedState=d}}function Vo(e,t,n){if(e=t.effects,t.effects=null,null!==e)for(t=0;t<e.length;t++){var r=e[t],i=r.callback;if(null!==i){if(r.callback=null,r=n,"function"!==typeof i)throw Error(o(191,i));i.call(r)}}}var Fo=(new r.Component).refs;function zo(e,t,n,r){n=null===(n=n(r,t=e.memoizedState))||void 0===n?t:N({},t,n),e.memoizedState=n,0===e.lanes&&(e.updateQueue.baseState=n)}var Bo={isMounted:function(e){return!!(e=e._reactInternals)&&Be(e)===e},enqueueSetState:function(e,t,n){e=e._reactInternals;var r=tc(),i=nc(e),o=Oo(r,i);o.payload=t,void 0!==n&&null!==n&&(o.callback=n),null!==(t=Ro(e,o,i))&&(rc(t,e,i,r),Do(t,e,i))},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var r=tc(),i=nc(e),o=Oo(r,i);o.tag=1,o.payload=t,void 0!==n&&null!==n&&(o.callback=n),null!==(t=Ro(e,o,i))&&(rc(t,e,i,r),Do(t,e,i))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=tc(),r=nc(e),i=Oo(n,r);i.tag=2,void 0!==t&&null!==t&&(i.callback=t),null!==(t=Ro(e,i,r))&&(rc(t,e,r,n),Do(t,e,r))}};function Uo(e,t,n,r,i,o,s){return"function"===typeof(e=e.stateNode).shouldComponentUpdate?e.shouldComponentUpdate(r,o,s):!t.prototype||!t.prototype.isPureReactComponent||(!lr(n,r)||!lr(i,o))}function Wo(e,t,n){var r=!1,i=Ai,o=t.contextType;return"object"===typeof o&&null!==o?o=Co(o):(i=Ti(t)?Ii:ki.current,o=(r=null!==(r=t.contextTypes)&&void 0!==r)?Gi(e,i):Ai),t=new t(n,o),e.memoizedState=null!==t.state&&void 0!==t.state?t.state:null,t.updater=Bo,e.stateNode=t,t._reactInternals=e,r&&((e=e.stateNode).__reactInternalMemoizedUnmaskedChildContext=i,e.__reactInternalMemoizedMaskedChildContext=o),t}function Ho(e,t,n,r){e=t.state,"function"===typeof t.componentWillReceiveProps&&t.componentWillReceiveProps(n,r),"function"===typeof t.UNSAFE_componentWillReceiveProps&&t.UNSAFE_componentWillReceiveProps(n,r),t.state!==e&&Bo.enqueueReplaceState(t,t.state,null)}function qo(e,t,n,r){var i=e.stateNode;i.props=n,i.state=e.memoizedState,i.refs=Fo,To(e);var o=t.contextType;"object"===typeof o&&null!==o?i.context=Co(o):(o=Ti(t)?Ii:ki.current,i.context=Gi(e,o)),i.state=e.memoizedState,"function"===typeof(o=t.getDerivedStateFromProps)&&(zo(e,t,o,n),i.state=e.memoizedState),"function"===typeof t.getDerivedStateFromProps||"function"===typeof i.getSnapshotBeforeUpdate||"function"!==typeof i.UNSAFE_componentWillMount&&"function"!==typeof i.componentWillMount||(t=i.state,"function"===typeof i.componentWillMount&&i.componentWillMount(),"function"===typeof i.UNSAFE_componentWillMount&&i.UNSAFE_componentWillMount(),t!==i.state&&Bo.enqueueReplaceState(i,i.state,null),Lo(e,n,i,r),i.state=e.memoizedState),"function"===typeof i.componentDidMount&&(e.flags|=4194308)}function Xo(e,t,n){if(null!==(e=n.ref)&&"function"!==typeof e&&"object"!==typeof e){if(n._owner){if(n=n._owner){if(1!==n.tag)throw Error(o(309));var r=n.stateNode}if(!r)throw Error(o(147,e));var i=r,s=""+e;return null!==t&&null!==t.ref&&"function"===typeof t.ref&&t.ref._stringRef===s?t.ref:(t=function(e){var t=i.refs;t===Fo&&(t=i.refs={}),null===e?delete t[s]:t[s]=e},t._stringRef=s,t)}if("string"!==typeof e)throw Error(o(284));if(!n._owner)throw Error(o(290,e))}return e}function Yo(e,t){throw e=Object.prototype.toString.call(t),Error(o(31,"[object Object]"===e?"object with keys {"+Object.keys(t).join(", ")+"}":e))}function Ko(e){return(0,e._init)(e._payload)}function Zo(e){function t(t,n){if(e){var r=t.deletions;null===r?(t.deletions=[n],t.flags|=16):r.push(n)}}function n(n,r){if(!e)return null;for(;null!==r;)t(n,r),r=r.sibling;return null}function r(e,t){for(e=new Map;null!==t;)null!==t.key?e.set(t.key,t):e.set(t.index,t),t=t.sibling;return e}function i(e,t){return(e=Oc(e,t)).index=0,e.sibling=null,e}function s(t,n,r){return t.index=r,e?null!==(r=t.alternate)?(r=r.index)<n?(t.flags|=2,n):r:(t.flags|=2,n):(t.flags|=1048576,n)}function a(t){return e&&null===t.alternate&&(t.flags|=2),t}function l(e,t,n,r){return null===t||6!==t.tag?((t=Lc(n,e.mode,r)).return=e,t):((t=i(t,n)).return=e,t)}function c(e,t,n,r){var o=n.type;return o===w?d(e,t,n.props.children,r,n.key):null!==t&&(t.elementType===o||"object"===typeof o&&null!==o&&o.$$typeof===T&&Ko(o)===t.type)?((r=i(t,n.props)).ref=Xo(e,t,n),r.return=e,r):((r=Rc(n.type,n.key,n.props,null,e.mode,r)).ref=Xo(e,t,n),r.return=e,r)}function u(e,t,n,r){return null===t||4!==t.tag||t.stateNode.containerInfo!==n.containerInfo||t.stateNode.implementation!==n.implementation?((t=Vc(n,e.mode,r)).return=e,t):((t=i(t,n.children||[])).return=e,t)}function d(e,t,n,r,o){return null===t||7!==t.tag?((t=Dc(n,e.mode,r,o)).return=e,t):((t=i(t,n)).return=e,t)}function h(e,t,n){if("string"===typeof t&&""!==t||"number"===typeof t)return(t=Lc(""+t,e.mode,n)).return=e,t;if("object"===typeof t&&null!==t){switch(t.$$typeof){case x:return(n=Rc(t.type,t.key,t.props,null,e.mode,n)).ref=Xo(e,null,t),n.return=e,n;case S:return(t=Vc(t,e.mode,n)).return=e,t;case T:return h(e,(0,t._init)(t._payload),n)}if(te(t)||R(t))return(t=Dc(t,e.mode,n,null)).return=e,t;Yo(e,t)}return null}function p(e,t,n,r){var i=null!==t?t.key:null;if("string"===typeof n&&""!==n||"number"===typeof n)return null!==i?null:l(e,t,""+n,r);if("object"===typeof n&&null!==n){switch(n.$$typeof){case x:return n.key===i?c(e,t,n,r):null;case S:return n.key===i?u(e,t,n,r):null;case T:return p(e,t,(i=n._init)(n._payload),r)}if(te(n)||R(n))return null!==i?null:d(e,t,n,r,null);Yo(e,n)}return null}function f(e,t,n,r,i){if("string"===typeof r&&""!==r||"number"===typeof r)return l(t,e=e.get(n)||null,""+r,i);if("object"===typeof r&&null!==r){switch(r.$$typeof){case x:return c(t,e=e.get(null===r.key?n:r.key)||null,r,i);case S:return u(t,e=e.get(null===r.key?n:r.key)||null,r,i);case T:return f(e,t,n,(0,r._init)(r._payload),i)}if(te(r)||R(r))return d(t,e=e.get(n)||null,r,i,null);Yo(t,r)}return null}function g(i,o,a,l){for(var c=null,u=null,d=o,g=o=0,m=null;null!==d&&g<a.length;g++){d.index>g?(m=d,d=null):m=d.sibling;var y=p(i,d,a[g],l);if(null===y){null===d&&(d=m);break}e&&d&&null===y.alternate&&t(i,d),o=s(y,o,g),null===u?c=y:u.sibling=y,u=y,d=m}if(g===a.length)return n(i,d),io&&Ji(i,g),c;if(null===d){for(;g<a.length;g++)null!==(d=h(i,a[g],l))&&(o=s(d,o,g),null===u?c=d:u.sibling=d,u=d);return io&&Ji(i,g),c}for(d=r(i,d);g<a.length;g++)null!==(m=f(d,i,g,a[g],l))&&(e&&null!==m.alternate&&d.delete(null===m.key?g:m.key),o=s(m,o,g),null===u?c=m:u.sibling=m,u=m);return e&&d.forEach((function(e){return t(i,e)})),io&&Ji(i,g),c}function m(i,a,l,c){var u=R(l);if("function"!==typeof u)throw Error(o(150));if(null==(l=u.call(l)))throw Error(o(151));for(var d=u=null,g=a,m=a=0,y=null,v=l.next();null!==g&&!v.done;m++,v=l.next()){g.index>m?(y=g,g=null):y=g.sibling;var _=p(i,g,v.value,c);if(null===_){null===g&&(g=y);break}e&&g&&null===_.alternate&&t(i,g),a=s(_,a,m),null===d?u=_:d.sibling=_,d=_,g=y}if(v.done)return n(i,g),io&&Ji(i,m),u;if(null===g){for(;!v.done;m++,v=l.next())null!==(v=h(i,v.value,c))&&(a=s(v,a,m),null===d?u=v:d.sibling=v,d=v);return io&&Ji(i,m),u}for(g=r(i,g);!v.done;m++,v=l.next())null!==(v=f(g,i,m,v.value,c))&&(e&&null!==v.alternate&&g.delete(null===v.key?m:v.key),a=s(v,a,m),null===d?u=v:d.sibling=v,d=v);return e&&g.forEach((function(e){return t(i,e)})),io&&Ji(i,m),u}return function e(r,o,s,l){if("object"===typeof s&&null!==s&&s.type===w&&null===s.key&&(s=s.props.children),"object"===typeof s&&null!==s){switch(s.$$typeof){case x:e:{for(var c=s.key,u=o;null!==u;){if(u.key===c){if((c=s.type)===w){if(7===u.tag){n(r,u.sibling),(o=i(u,s.props.children)).return=r,r=o;break e}}else if(u.elementType===c||"object"===typeof c&&null!==c&&c.$$typeof===T&&Ko(c)===u.type){n(r,u.sibling),(o=i(u,s.props)).ref=Xo(r,u,s),o.return=r,r=o;break e}n(r,u);break}t(r,u),u=u.sibling}s.type===w?((o=Dc(s.props.children,r.mode,l,s.key)).return=r,r=o):((l=Rc(s.type,s.key,s.props,null,r.mode,l)).ref=Xo(r,o,s),l.return=r,r=l)}return a(r);case S:e:{for(u=s.key;null!==o;){if(o.key===u){if(4===o.tag&&o.stateNode.containerInfo===s.containerInfo&&o.stateNode.implementation===s.implementation){n(r,o.sibling),(o=i(o,s.children||[])).return=r,r=o;break e}n(r,o);break}t(r,o),o=o.sibling}(o=Vc(s,r.mode,l)).return=r,r=o}return a(r);case T:return e(r,o,(u=s._init)(s._payload),l)}if(te(s))return g(r,o,s,l);if(R(s))return m(r,o,s,l);Yo(r,s)}return"string"===typeof s&&""!==s||"number"===typeof s?(s=""+s,null!==o&&6===o.tag?(n(r,o.sibling),(o=i(o,s)).return=r,r=o):(n(r,o),(o=Lc(s,r.mode,l)).return=r,r=o),a(r)):n(r,o)}}var $o=Zo(!0),Jo=Zo(!1),Qo={},es=Ei(Qo),ts=Ei(Qo),ns=Ei(Qo);function rs(e){if(e===Qo)throw Error(o(174));return e}function is(e,t){switch(Ci(ns,t),Ci(ts,e),Ci(es,Qo),e=t.nodeType){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:le(null,"");break;default:t=le(t=(e=8===e?t.parentNode:t).namespaceURI||null,e=e.tagName)}Pi(es),Ci(es,t)}function os(){Pi(es),Pi(ts),Pi(ns)}function ss(e){rs(ns.current);var t=rs(es.current),n=le(t,e.type);t!==n&&(Ci(ts,e),Ci(es,n))}function as(e){ts.current===e&&(Pi(es),Pi(ts))}var ls=Ei(0);function cs(e){for(var t=e;null!==t;){if(13===t.tag){var n=t.memoizedState;if(null!==n&&(null===(n=n.dehydrated)||"$?"===n.data||"$!"===n.data))return t}else if(19===t.tag&&void 0!==t.memoizedProps.revealOrder){if(0!==(128&t.flags))return t}else if(null!==t.child){t.child.return=t,t=t.child;continue}if(t===e)break;for(;null===t.sibling;){if(null===t.return||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var us=[];function ds(){for(var e=0;e<us.length;e++)us[e]._workInProgressVersionPrimary=null;us.length=0}var hs=b.ReactCurrentDispatcher,ps=b.ReactCurrentBatchConfig,fs=0,gs=null,ms=null,ys=null,vs=!1,_s=!1,bs=0,xs=0;function Ss(){throw Error(o(321))}function ws(e,t){if(null===t)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!ar(e[n],t[n]))return!1;return!0}function Es(e,t,n,r,i,s){if(fs=s,gs=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,hs.current=null===e||null===e.memoizedState?aa:la,e=n(r,i),_s){s=0;do{if(_s=!1,bs=0,25<=s)throw Error(o(301));s+=1,ys=ms=null,t.updateQueue=null,hs.current=ca,e=n(r,i)}while(_s)}if(hs.current=sa,t=null!==ms&&null!==ms.next,fs=0,ys=ms=gs=null,vs=!1,t)throw Error(o(300));return e}function Ps(){var e=0!==bs;return bs=0,e}function Cs(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return null===ys?gs.memoizedState=ys=e:ys=ys.next=e,ys}function As(){if(null===ms){var e=gs.alternate;e=null!==e?e.memoizedState:null}else e=ms.next;var t=null===ys?gs.memoizedState:ys.next;if(null!==t)ys=t,ms=e;else{if(null===e)throw Error(o(310));e={memoizedState:(ms=e).memoizedState,baseState:ms.baseState,baseQueue:ms.baseQueue,queue:ms.queue,next:null},null===ys?gs.memoizedState=ys=e:ys=ys.next=e}return ys}function ks(e,t){return"function"===typeof t?t(e):t}function js(e){var t=As(),n=t.queue;if(null===n)throw Error(o(311));n.lastRenderedReducer=e;var r=ms,i=r.baseQueue,s=n.pending;if(null!==s){if(null!==i){var a=i.next;i.next=s.next,s.next=a}r.baseQueue=i=s,n.pending=null}if(null!==i){s=i.next,r=r.baseState;var l=a=null,c=null,u=s;do{var d=u.lane;if((fs&d)===d)null!==c&&(c=c.next={lane:0,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null}),r=u.hasEagerState?u.eagerState:e(r,u.action);else{var h={lane:d,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null};null===c?(l=c=h,a=r):c=c.next=h,gs.lanes|=d,Nl|=d}u=u.next}while(null!==u&&u!==s);null===c?a=r:c.next=l,ar(r,t.memoizedState)||(ba=!0),t.memoizedState=r,t.baseState=a,t.baseQueue=c,n.lastRenderedState=r}if(null!==(e=n.interleaved)){i=e;do{s=i.lane,gs.lanes|=s,Nl|=s,i=i.next}while(i!==e)}else null===i&&(n.lanes=0);return[t.memoizedState,n.dispatch]}function Is(e){var t=As(),n=t.queue;if(null===n)throw Error(o(311));n.lastRenderedReducer=e;var r=n.dispatch,i=n.pending,s=t.memoizedState;if(null!==i){n.pending=null;var a=i=i.next;do{s=e(s,a.action),a=a.next}while(a!==i);ar(s,t.memoizedState)||(ba=!0),t.memoizedState=s,null===t.baseQueue&&(t.baseState=s),n.lastRenderedState=s}return[s,r]}function Gs(){}function Ts(e,t){var n=gs,r=As(),i=t(),s=!ar(r.memoizedState,i);if(s&&(r.memoizedState=i,ba=!0),r=r.queue,Ws(Rs.bind(null,n,r,e),[e]),r.getSnapshot!==t||s||null!==ys&&1&ys.memoizedState.tag){if(n.flags|=2048,Vs(9,Os.bind(null,n,r,i,t),void 0,null),null===Il)throw Error(o(349));0!==(30&fs)||Ms(n,t,i)}return i}function Ms(e,t,n){e.flags|=16384,e={getSnapshot:t,value:n},null===(t=gs.updateQueue)?(t={lastEffect:null,stores:null},gs.updateQueue=t,t.stores=[e]):null===(n=t.stores)?t.stores=[e]:n.push(e)}function Os(e,t,n,r){t.value=n,t.getSnapshot=r,Ds(t)&&Ns(e)}function Rs(e,t,n){return n((function(){Ds(t)&&Ns(e)}))}function Ds(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!ar(e,n)}catch(r){return!0}}function Ns(e){var t=Io(e,1);null!==t&&rc(t,e,1,-1)}function Ls(e){var t=Cs();return"function"===typeof e&&(e=e()),t.memoizedState=t.baseState=e,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:ks,lastRenderedState:e},t.queue=e,e=e.dispatch=na.bind(null,gs,e),[t.memoizedState,e]}function Vs(e,t,n,r){return e={tag:e,create:t,destroy:n,deps:r,next:null},null===(t=gs.updateQueue)?(t={lastEffect:null,stores:null},gs.updateQueue=t,t.lastEffect=e.next=e):null===(n=t.lastEffect)?t.lastEffect=e.next=e:(r=n.next,n.next=e,e.next=r,t.lastEffect=e),e}function Fs(){return As().memoizedState}function zs(e,t,n,r){var i=Cs();gs.flags|=e,i.memoizedState=Vs(1|t,n,void 0,void 0===r?null:r)}function Bs(e,t,n,r){var i=As();r=void 0===r?null:r;var o=void 0;if(null!==ms){var s=ms.memoizedState;if(o=s.destroy,null!==r&&ws(r,s.deps))return void(i.memoizedState=Vs(t,n,o,r))}gs.flags|=e,i.memoizedState=Vs(1|t,n,o,r)}function Us(e,t){return zs(8390656,8,e,t)}function Ws(e,t){return Bs(2048,8,e,t)}function Hs(e,t){return Bs(4,2,e,t)}function qs(e,t){return Bs(4,4,e,t)}function Xs(e,t){return"function"===typeof t?(e=e(),t(e),function(){t(null)}):null!==t&&void 0!==t?(e=e(),t.current=e,function(){t.current=null}):void 0}function Ys(e,t,n){return n=null!==n&&void 0!==n?n.concat([e]):null,Bs(4,4,Xs.bind(null,t,e),n)}function Ks(){}function Zs(e,t){var n=As();t=void 0===t?null:t;var r=n.memoizedState;return null!==r&&null!==t&&ws(t,r[1])?r[0]:(n.memoizedState=[e,t],e)}function $s(e,t){var n=As();t=void 0===t?null:t;var r=n.memoizedState;return null!==r&&null!==t&&ws(t,r[1])?r[0]:(e=e(),n.memoizedState=[e,t],e)}function Js(e,t,n){return 0===(21&fs)?(e.baseState&&(e.baseState=!1,ba=!0),e.memoizedState=n):(ar(n,t)||(n=gt(),gs.lanes|=n,Nl|=n,e.baseState=!0),t)}function Qs(e,t){var n=_t;_t=0!==n&&4>n?n:4,e(!0);var r=ps.transition;ps.transition={};try{e(!1),t()}finally{_t=n,ps.transition=r}}function ea(){return As().memoizedState}function ta(e,t,n){var r=nc(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},ra(e))ia(t,n);else if(null!==(n=jo(e,t,n,r))){rc(n,e,r,tc()),oa(n,t,r)}}function na(e,t,n){var r=nc(e),i={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(ra(e))ia(t,i);else{var o=e.alternate;if(0===e.lanes&&(null===o||0===o.lanes)&&null!==(o=t.lastRenderedReducer))try{var s=t.lastRenderedState,a=o(s,n);if(i.hasEagerState=!0,i.eagerState=a,ar(a,s)){var l=t.interleaved;return null===l?(i.next=i,ko(t)):(i.next=l.next,l.next=i),void(t.interleaved=i)}}catch(c){}null!==(n=jo(e,t,i,r))&&(rc(n,e,r,i=tc()),oa(n,t,r))}}function ra(e){var t=e.alternate;return e===gs||null!==t&&t===gs}function ia(e,t){_s=vs=!0;var n=e.pending;null===n?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function oa(e,t,n){if(0!==(4194240&n)){var r=t.lanes;n|=r&=e.pendingLanes,t.lanes=n,vt(e,n)}}var sa={readContext:Co,useCallback:Ss,useContext:Ss,useEffect:Ss,useImperativeHandle:Ss,useInsertionEffect:Ss,useLayoutEffect:Ss,useMemo:Ss,useReducer:Ss,useRef:Ss,useState:Ss,useDebugValue:Ss,useDeferredValue:Ss,useTransition:Ss,useMutableSource:Ss,useSyncExternalStore:Ss,useId:Ss,unstable_isNewReconciler:!1},aa={readContext:Co,useCallback:function(e,t){return Cs().memoizedState=[e,void 0===t?null:t],e},useContext:Co,useEffect:Us,useImperativeHandle:function(e,t,n){return n=null!==n&&void 0!==n?n.concat([e]):null,zs(4194308,4,Xs.bind(null,t,e),n)},useLayoutEffect:function(e,t){return zs(4194308,4,e,t)},useInsertionEffect:function(e,t){return zs(4,2,e,t)},useMemo:function(e,t){var n=Cs();return t=void 0===t?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=Cs();return t=void 0!==n?n(t):t,r.memoizedState=r.baseState=t,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},r.queue=e,e=e.dispatch=ta.bind(null,gs,e),[r.memoizedState,e]},useRef:function(e){return e={current:e},Cs().memoizedState=e},useState:Ls,useDebugValue:Ks,useDeferredValue:function(e){return Cs().memoizedState=e},useTransition:function(){var e=Ls(!1),t=e[0];return e=Qs.bind(null,e[1]),Cs().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=gs,i=Cs();if(io){if(void 0===n)throw Error(o(407));n=n()}else{if(n=t(),null===Il)throw Error(o(349));0!==(30&fs)||Ms(r,t,n)}i.memoizedState=n;var s={value:n,getSnapshot:t};return i.queue=s,Us(Rs.bind(null,r,s,e),[e]),r.flags|=2048,Vs(9,Os.bind(null,r,s,n,t),void 0,null),n},useId:function(){var e=Cs(),t=Il.identifierPrefix;if(io){var n=$i;t=":"+t+"R"+(n=(Zi&~(1<<32-st(Zi)-1)).toString(32)+n),0<(n=bs++)&&(t+="H"+n.toString(32)),t+=":"}else t=":"+t+"r"+(n=xs++).toString(32)+":";return e.memoizedState=t},unstable_isNewReconciler:!1},la={readContext:Co,useCallback:Zs,useContext:Co,useEffect:Ws,useImperativeHandle:Ys,useInsertionEffect:Hs,useLayoutEffect:qs,useMemo:$s,useReducer:js,useRef:Fs,useState:function(){return js(ks)},useDebugValue:Ks,useDeferredValue:function(e){return Js(As(),ms.memoizedState,e)},useTransition:function(){return[js(ks)[0],As().memoizedState]},useMutableSource:Gs,useSyncExternalStore:Ts,useId:ea,unstable_isNewReconciler:!1},ca={readContext:Co,useCallback:Zs,useContext:Co,useEffect:Ws,useImperativeHandle:Ys,useInsertionEffect:Hs,useLayoutEffect:qs,useMemo:$s,useReducer:Is,useRef:Fs,useState:function(){return Is(ks)},useDebugValue:Ks,useDeferredValue:function(e){var t=As();return null===ms?t.memoizedState=e:Js(t,ms.memoizedState,e)},useTransition:function(){return[Is(ks)[0],As().memoizedState]},useMutableSource:Gs,useSyncExternalStore:Ts,useId:ea,unstable_isNewReconciler:!1};function ua(e,t){try{var n="",r=t;do{n+=z(r),r=r.return}while(r);var i=n}catch(o){i="\nError generating stack: "+o.message+"\n"+o.stack}return{value:e,source:t,stack:i,digest:null}}function da(e,t,n){return{value:e,source:null,stack:null!=n?n:null,digest:null!=t?t:null}}function ha(e,t){try{console.error(t.value)}catch(n){setTimeout((function(){throw n}))}}var pa="function"===typeof WeakMap?WeakMap:Map;function fa(e,t,n){(n=Oo(-1,n)).tag=3,n.payload={element:null};var r=t.value;return n.callback=function(){Hl||(Hl=!0,ql=r),ha(0,t)},n}function ga(e,t,n){(n=Oo(-1,n)).tag=3;var r=e.type.getDerivedStateFromError;if("function"===typeof r){var i=t.value;n.payload=function(){return r(i)},n.callback=function(){ha(0,t)}}var o=e.stateNode;return null!==o&&"function"===typeof o.componentDidCatch&&(n.callback=function(){ha(0,t),"function"!==typeof r&&(null===Xl?Xl=new Set([this]):Xl.add(this));var e=t.stack;this.componentDidCatch(t.value,{componentStack:null!==e?e:""})}),n}function ma(e,t,n){var r=e.pingCache;if(null===r){r=e.pingCache=new pa;var i=new Set;r.set(t,i)}else void 0===(i=r.get(t))&&(i=new Set,r.set(t,i));i.has(n)||(i.add(n),e=Cc.bind(null,e,t,n),t.then(e,e))}function ya(e){do{var t;if((t=13===e.tag)&&(t=null===(t=e.memoizedState)||null!==t.dehydrated),t)return e;e=e.return}while(null!==e);return null}function va(e,t,n,r,i){return 0===(1&e.mode)?(e===t?e.flags|=65536:(e.flags|=128,n.flags|=131072,n.flags&=-52805,1===n.tag&&(null===n.alternate?n.tag=17:((t=Oo(-1,1)).tag=2,Ro(n,t,1))),n.lanes|=1),e):(e.flags|=65536,e.lanes=i,e)}var _a=b.ReactCurrentOwner,ba=!1;function xa(e,t,n,r){t.child=null===e?Jo(t,null,n,r):$o(t,e.child,n,r)}function Sa(e,t,n,r,i){n=n.render;var o=t.ref;return Po(t,i),r=Es(e,t,n,r,o,i),n=Ps(),null===e||ba?(io&&n&&eo(t),t.flags|=1,xa(e,t,r,i),t.child):(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~i,Ha(e,t,i))}function wa(e,t,n,r,i){if(null===e){var o=n.type;return"function"!==typeof o||Mc(o)||void 0!==o.defaultProps||null!==n.compare||void 0!==n.defaultProps?((e=Rc(n.type,null,r,t,t.mode,i)).ref=t.ref,e.return=t,t.child=e):(t.tag=15,t.type=o,Ea(e,t,o,r,i))}if(o=e.child,0===(e.lanes&i)){var s=o.memoizedProps;if((n=null!==(n=n.compare)?n:lr)(s,r)&&e.ref===t.ref)return Ha(e,t,i)}return t.flags|=1,(e=Oc(o,r)).ref=t.ref,e.return=t,t.child=e}function Ea(e,t,n,r,i){if(null!==e){var o=e.memoizedProps;if(lr(o,r)&&e.ref===t.ref){if(ba=!1,t.pendingProps=r=o,0===(e.lanes&i))return t.lanes=e.lanes,Ha(e,t,i);0!==(131072&e.flags)&&(ba=!0)}}return Aa(e,t,n,r,i)}function Pa(e,t,n){var r=t.pendingProps,i=r.children,o=null!==e?e.memoizedState:null;if("hidden"===r.mode)if(0===(1&t.mode))t.memoizedState={baseLanes:0,cachePool:null,transitions:null},Ci(Ol,Ml),Ml|=n;else{if(0===(1073741824&n))return e=null!==o?o.baseLanes|n:n,t.lanes=t.childLanes=1073741824,t.memoizedState={baseLanes:e,cachePool:null,transitions:null},t.updateQueue=null,Ci(Ol,Ml),Ml|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},r=null!==o?o.baseLanes:n,Ci(Ol,Ml),Ml|=r}else null!==o?(r=o.baseLanes|n,t.memoizedState=null):r=n,Ci(Ol,Ml),Ml|=r;return xa(e,t,i,n),t.child}function Ca(e,t){var n=t.ref;(null===e&&null!==n||null!==e&&e.ref!==n)&&(t.flags|=512,t.flags|=2097152)}function Aa(e,t,n,r,i){var o=Ti(n)?Ii:ki.current;return o=Gi(t,o),Po(t,i),n=Es(e,t,n,r,o,i),r=Ps(),null===e||ba?(io&&r&&eo(t),t.flags|=1,xa(e,t,n,i),t.child):(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~i,Ha(e,t,i))}function ka(e,t,n,r,i){if(Ti(n)){var o=!0;Di(t)}else o=!1;if(Po(t,i),null===t.stateNode)Wa(e,t),Wo(t,n,r),qo(t,n,r,i),r=!0;else if(null===e){var s=t.stateNode,a=t.memoizedProps;s.props=a;var l=s.context,c=n.contextType;"object"===typeof c&&null!==c?c=Co(c):c=Gi(t,c=Ti(n)?Ii:ki.current);var u=n.getDerivedStateFromProps,d="function"===typeof u||"function"===typeof s.getSnapshotBeforeUpdate;d||"function"!==typeof s.UNSAFE_componentWillReceiveProps&&"function"!==typeof s.componentWillReceiveProps||(a!==r||l!==c)&&Ho(t,s,r,c),Go=!1;var h=t.memoizedState;s.state=h,Lo(t,r,s,i),l=t.memoizedState,a!==r||h!==l||ji.current||Go?("function"===typeof u&&(zo(t,n,u,r),l=t.memoizedState),(a=Go||Uo(t,n,a,r,h,l,c))?(d||"function"!==typeof s.UNSAFE_componentWillMount&&"function"!==typeof s.componentWillMount||("function"===typeof s.componentWillMount&&s.componentWillMount(),"function"===typeof s.UNSAFE_componentWillMount&&s.UNSAFE_componentWillMount()),"function"===typeof s.componentDidMount&&(t.flags|=4194308)):("function"===typeof s.componentDidMount&&(t.flags|=4194308),t.memoizedProps=r,t.memoizedState=l),s.props=r,s.state=l,s.context=c,r=a):("function"===typeof s.componentDidMount&&(t.flags|=4194308),r=!1)}else{s=t.stateNode,Mo(e,t),a=t.memoizedProps,c=t.type===t.elementType?a:yo(t.type,a),s.props=c,d=t.pendingProps,h=s.context,"object"===typeof(l=n.contextType)&&null!==l?l=Co(l):l=Gi(t,l=Ti(n)?Ii:ki.current);var p=n.getDerivedStateFromProps;(u="function"===typeof p||"function"===typeof s.getSnapshotBeforeUpdate)||"function"!==typeof s.UNSAFE_componentWillReceiveProps&&"function"!==typeof s.componentWillReceiveProps||(a!==d||h!==l)&&Ho(t,s,r,l),Go=!1,h=t.memoizedState,s.state=h,Lo(t,r,s,i);var f=t.memoizedState;a!==d||h!==f||ji.current||Go?("function"===typeof p&&(zo(t,n,p,r),f=t.memoizedState),(c=Go||Uo(t,n,c,r,h,f,l)||!1)?(u||"function"!==typeof s.UNSAFE_componentWillUpdate&&"function"!==typeof s.componentWillUpdate||("function"===typeof s.componentWillUpdate&&s.componentWillUpdate(r,f,l),"function"===typeof s.UNSAFE_componentWillUpdate&&s.UNSAFE_componentWillUpdate(r,f,l)),"function"===typeof s.componentDidUpdate&&(t.flags|=4),"function"===typeof s.getSnapshotBeforeUpdate&&(t.flags|=1024)):("function"!==typeof s.componentDidUpdate||a===e.memoizedProps&&h===e.memoizedState||(t.flags|=4),"function"!==typeof s.getSnapshotBeforeUpdate||a===e.memoizedProps&&h===e.memoizedState||(t.flags|=1024),t.memoizedProps=r,t.memoizedState=f),s.props=r,s.state=f,s.context=l,r=c):("function"!==typeof s.componentDidUpdate||a===e.memoizedProps&&h===e.memoizedState||(t.flags|=4),"function"!==typeof s.getSnapshotBeforeUpdate||a===e.memoizedProps&&h===e.memoizedState||(t.flags|=1024),r=!1)}return ja(e,t,n,r,o,i)}function ja(e,t,n,r,i,o){Ca(e,t);var s=0!==(128&t.flags);if(!r&&!s)return i&&Ni(t,n,!1),Ha(e,t,o);r=t.stateNode,_a.current=t;var a=s&&"function"!==typeof n.getDerivedStateFromError?null:r.render();return t.flags|=1,null!==e&&s?(t.child=$o(t,e.child,null,o),t.child=$o(t,null,a,o)):xa(e,t,a,o),t.memoizedState=r.state,i&&Ni(t,n,!0),t.child}function Ia(e){var t=e.stateNode;t.pendingContext?Oi(0,t.pendingContext,t.pendingContext!==t.context):t.context&&Oi(0,t.context,!1),is(e,t.containerInfo)}function Ga(e,t,n,r,i){return fo(),go(i),t.flags|=256,xa(e,t,n,r),t.child}var Ta,Ma,Oa,Ra,Da={dehydrated:null,treeContext:null,retryLane:0};function Na(e){return{baseLanes:e,cachePool:null,transitions:null}}function La(e,t,n){var r,i=t.pendingProps,s=ls.current,a=!1,l=0!==(128&t.flags);if((r=l)||(r=(null===e||null!==e.memoizedState)&&0!==(2&s)),r?(a=!0,t.flags&=-129):null!==e&&null===e.memoizedState||(s|=1),Ci(ls,1&s),null===e)return co(t),null!==(e=t.memoizedState)&&null!==(e=e.dehydrated)?(0===(1&t.mode)?t.lanes=1:"$!"===e.data?t.lanes=8:t.lanes=1073741824,null):(l=i.children,e=i.fallback,a?(i=t.mode,a=t.child,l={mode:"hidden",children:l},0===(1&i)&&null!==a?(a.childLanes=0,a.pendingProps=l):a=Nc(l,i,0,null),e=Dc(e,i,n,null),a.return=t,e.return=t,a.sibling=e,t.child=a,t.child.memoizedState=Na(n),t.memoizedState=Da,e):Va(t,l));if(null!==(s=e.memoizedState)&&null!==(r=s.dehydrated))return function(e,t,n,r,i,s,a){if(n)return 256&t.flags?(t.flags&=-257,Fa(e,t,a,r=da(Error(o(422))))):null!==t.memoizedState?(t.child=e.child,t.flags|=128,null):(s=r.fallback,i=t.mode,r=Nc({mode:"visible",children:r.children},i,0,null),(s=Dc(s,i,a,null)).flags|=2,r.return=t,s.return=t,r.sibling=s,t.child=r,0!==(1&t.mode)&&$o(t,e.child,null,a),t.child.memoizedState=Na(a),t.memoizedState=Da,s);if(0===(1&t.mode))return Fa(e,t,a,null);if("$!"===i.data){if(r=i.nextSibling&&i.nextSibling.dataset)var l=r.dgst;return r=l,Fa(e,t,a,r=da(s=Error(o(419)),r,void 0))}if(l=0!==(a&e.childLanes),ba||l){if(null!==(r=Il)){switch(a&-a){case 4:i=2;break;case 16:i=8;break;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:i=32;break;case 536870912:i=268435456;break;default:i=0}0!==(i=0!==(i&(r.suspendedLanes|a))?0:i)&&i!==s.retryLane&&(s.retryLane=i,Io(e,i),rc(r,e,i,-1))}return mc(),Fa(e,t,a,r=da(Error(o(421))))}return"$?"===i.data?(t.flags|=128,t.child=e.child,t=kc.bind(null,e),i._reactRetry=t,null):(e=s.treeContext,ro=ci(i.nextSibling),no=t,io=!0,oo=null,null!==e&&(Xi[Yi++]=Zi,Xi[Yi++]=$i,Xi[Yi++]=Ki,Zi=e.id,$i=e.overflow,Ki=t),t=Va(t,r.children),t.flags|=4096,t)}(e,t,l,i,r,s,n);if(a){a=i.fallback,l=t.mode,r=(s=e.child).sibling;var c={mode:"hidden",children:i.children};return 0===(1&l)&&t.child!==s?((i=t.child).childLanes=0,i.pendingProps=c,t.deletions=null):(i=Oc(s,c)).subtreeFlags=14680064&s.subtreeFlags,null!==r?a=Oc(r,a):(a=Dc(a,l,n,null)).flags|=2,a.return=t,i.return=t,i.sibling=a,t.child=i,i=a,a=t.child,l=null===(l=e.child.memoizedState)?Na(n):{baseLanes:l.baseLanes|n,cachePool:null,transitions:l.transitions},a.memoizedState=l,a.childLanes=e.childLanes&~n,t.memoizedState=Da,i}return e=(a=e.child).sibling,i=Oc(a,{mode:"visible",children:i.children}),0===(1&t.mode)&&(i.lanes=n),i.return=t,i.sibling=null,null!==e&&(null===(n=t.deletions)?(t.deletions=[e],t.flags|=16):n.push(e)),t.child=i,t.memoizedState=null,i}function Va(e,t){return(t=Nc({mode:"visible",children:t},e.mode,0,null)).return=e,e.child=t}function Fa(e,t,n,r){return null!==r&&go(r),$o(t,e.child,null,n),(e=Va(t,t.pendingProps.children)).flags|=2,t.memoizedState=null,e}function za(e,t,n){e.lanes|=t;var r=e.alternate;null!==r&&(r.lanes|=t),Eo(e.return,t,n)}function Ba(e,t,n,r,i){var o=e.memoizedState;null===o?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:r,tail:n,tailMode:i}:(o.isBackwards=t,o.rendering=null,o.renderingStartTime=0,o.last=r,o.tail=n,o.tailMode=i)}function Ua(e,t,n){var r=t.pendingProps,i=r.revealOrder,o=r.tail;if(xa(e,t,r.children,n),0!==(2&(r=ls.current)))r=1&r|2,t.flags|=128;else{if(null!==e&&0!==(128&e.flags))e:for(e=t.child;null!==e;){if(13===e.tag)null!==e.memoizedState&&za(e,n,t);else if(19===e.tag)za(e,n,t);else if(null!==e.child){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;null===e.sibling;){if(null===e.return||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}r&=1}if(Ci(ls,r),0===(1&t.mode))t.memoizedState=null;else switch(i){case"forwards":for(n=t.child,i=null;null!==n;)null!==(e=n.alternate)&&null===cs(e)&&(i=n),n=n.sibling;null===(n=i)?(i=t.child,t.child=null):(i=n.sibling,n.sibling=null),Ba(t,!1,i,n,o);break;case"backwards":for(n=null,i=t.child,t.child=null;null!==i;){if(null!==(e=i.alternate)&&null===cs(e)){t.child=i;break}e=i.sibling,i.sibling=n,n=i,i=e}Ba(t,!0,n,null,o);break;case"together":Ba(t,!1,null,null,void 0);break;default:t.memoizedState=null}return t.child}function Wa(e,t){0===(1&t.mode)&&null!==e&&(e.alternate=null,t.alternate=null,t.flags|=2)}function Ha(e,t,n){if(null!==e&&(t.dependencies=e.dependencies),Nl|=t.lanes,0===(n&t.childLanes))return null;if(null!==e&&t.child!==e.child)throw Error(o(153));if(null!==t.child){for(n=Oc(e=t.child,e.pendingProps),t.child=n,n.return=t;null!==e.sibling;)e=e.sibling,(n=n.sibling=Oc(e,e.pendingProps)).return=t;n.sibling=null}return t.child}function qa(e,t){if(!io)switch(e.tailMode){case"hidden":t=e.tail;for(var n=null;null!==t;)null!==t.alternate&&(n=t),t=t.sibling;null===n?e.tail=null:n.sibling=null;break;case"collapsed":n=e.tail;for(var r=null;null!==n;)null!==n.alternate&&(r=n),n=n.sibling;null===r?t||null===e.tail?e.tail=null:e.tail.sibling=null:r.sibling=null}}function Xa(e){var t=null!==e.alternate&&e.alternate.child===e.child,n=0,r=0;if(t)for(var i=e.child;null!==i;)n|=i.lanes|i.childLanes,r|=14680064&i.subtreeFlags,r|=14680064&i.flags,i.return=e,i=i.sibling;else for(i=e.child;null!==i;)n|=i.lanes|i.childLanes,r|=i.subtreeFlags,r|=i.flags,i.return=e,i=i.sibling;return e.subtreeFlags|=r,e.childLanes=n,t}function Ya(e,t,n){var r=t.pendingProps;switch(to(t),t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Xa(t),null;case 1:case 17:return Ti(t.type)&&Mi(),Xa(t),null;case 3:return r=t.stateNode,os(),Pi(ji),Pi(ki),ds(),r.pendingContext&&(r.context=r.pendingContext,r.pendingContext=null),null!==e&&null!==e.child||(ho(t)?t.flags|=4:null===e||e.memoizedState.isDehydrated&&0===(256&t.flags)||(t.flags|=1024,null!==oo&&(ac(oo),oo=null))),Ma(e,t),Xa(t),null;case 5:as(t);var i=rs(ns.current);if(n=t.type,null!==e&&null!=t.stateNode)Oa(e,t,n,r,i),e.ref!==t.ref&&(t.flags|=512,t.flags|=2097152);else{if(!r){if(null===t.stateNode)throw Error(o(166));return Xa(t),null}if(e=rs(es.current),ho(t)){r=t.stateNode,n=t.type;var s=t.memoizedProps;switch(r[hi]=t,r[pi]=s,e=0!==(1&t.mode),n){case"dialog":Vr("cancel",r),Vr("close",r);break;case"iframe":case"object":case"embed":Vr("load",r);break;case"video":case"audio":for(i=0;i<Rr.length;i++)Vr(Rr[i],r);break;case"source":Vr("error",r);break;case"img":case"image":case"link":Vr("error",r),Vr("load",r);break;case"details":Vr("toggle",r);break;case"input":Z(r,s),Vr("invalid",r);break;case"select":r._wrapperState={wasMultiple:!!s.multiple},Vr("invalid",r);break;case"textarea":ie(r,s),Vr("invalid",r)}for(var l in ve(n,s),i=null,s)if(s.hasOwnProperty(l)){var c=s[l];"children"===l?"string"===typeof c?r.textContent!==c&&(!0!==s.suppressHydrationWarning&&Jr(r.textContent,c,e),i=["children",c]):"number"===typeof c&&r.textContent!==""+c&&(!0!==s.suppressHydrationWarning&&Jr(r.textContent,c,e),i=["children",""+c]):a.hasOwnProperty(l)&&null!=c&&"onScroll"===l&&Vr("scroll",r)}switch(n){case"input":q(r),Q(r,s,!0);break;case"textarea":q(r),se(r);break;case"select":case"option":break;default:"function"===typeof s.onClick&&(r.onclick=Qr)}r=i,t.updateQueue=r,null!==r&&(t.flags|=4)}else{l=9===i.nodeType?i:i.ownerDocument,"http://www.w3.org/1999/xhtml"===e&&(e=ae(n)),"http://www.w3.org/1999/xhtml"===e?"script"===n?((e=l.createElement("div")).innerHTML="<script><\/script>",e=e.removeChild(e.firstChild)):"string"===typeof r.is?e=l.createElement(n,{is:r.is}):(e=l.createElement(n),"select"===n&&(l=e,r.multiple?l.multiple=!0:r.size&&(l.size=r.size))):e=l.createElementNS(e,n),e[hi]=t,e[pi]=r,Ta(e,t,!1,!1),t.stateNode=e;e:{switch(l=_e(n,r),n){case"dialog":Vr("cancel",e),Vr("close",e),i=r;break;case"iframe":case"object":case"embed":Vr("load",e),i=r;break;case"video":case"audio":for(i=0;i<Rr.length;i++)Vr(Rr[i],e);i=r;break;case"source":Vr("error",e),i=r;break;case"img":case"image":case"link":Vr("error",e),Vr("load",e),i=r;break;case"details":Vr("toggle",e),i=r;break;case"input":Z(e,r),i=K(e,r),Vr("invalid",e);break;case"option":default:i=r;break;case"select":e._wrapperState={wasMultiple:!!r.multiple},i=N({},r,{value:void 0}),Vr("invalid",e);break;case"textarea":ie(e,r),i=re(e,r),Vr("invalid",e)}for(s in ve(n,i),c=i)if(c.hasOwnProperty(s)){var u=c[s];"style"===s?me(e,u):"dangerouslySetInnerHTML"===s?null!=(u=u?u.__html:void 0)&&de(e,u):"children"===s?"string"===typeof u?("textarea"!==n||""!==u)&&he(e,u):"number"===typeof u&&he(e,""+u):"suppressContentEditableWarning"!==s&&"suppressHydrationWarning"!==s&&"autoFocus"!==s&&(a.hasOwnProperty(s)?null!=u&&"onScroll"===s&&Vr("scroll",e):null!=u&&_(e,s,u,l))}switch(n){case"input":q(e),Q(e,r,!1);break;case"textarea":q(e),se(e);break;case"option":null!=r.value&&e.setAttribute("value",""+W(r.value));break;case"select":e.multiple=!!r.multiple,null!=(s=r.value)?ne(e,!!r.multiple,s,!1):null!=r.defaultValue&&ne(e,!!r.multiple,r.defaultValue,!0);break;default:"function"===typeof i.onClick&&(e.onclick=Qr)}switch(n){case"button":case"input":case"select":case"textarea":r=!!r.autoFocus;break e;case"img":r=!0;break e;default:r=!1}}r&&(t.flags|=4)}null!==t.ref&&(t.flags|=512,t.flags|=2097152)}return Xa(t),null;case 6:if(e&&null!=t.stateNode)Ra(e,t,e.memoizedProps,r);else{if("string"!==typeof r&&null===t.stateNode)throw Error(o(166));if(n=rs(ns.current),rs(es.current),ho(t)){if(r=t.stateNode,n=t.memoizedProps,r[hi]=t,(s=r.nodeValue!==n)&&null!==(e=no))switch(e.tag){case 3:Jr(r.nodeValue,n,0!==(1&e.mode));break;case 5:!0!==e.memoizedProps.suppressHydrationWarning&&Jr(r.nodeValue,n,0!==(1&e.mode))}s&&(t.flags|=4)}else(r=(9===n.nodeType?n:n.ownerDocument).createTextNode(r))[hi]=t,t.stateNode=r}return Xa(t),null;case 13:if(Pi(ls),r=t.memoizedState,null===e||null!==e.memoizedState&&null!==e.memoizedState.dehydrated){if(io&&null!==ro&&0!==(1&t.mode)&&0===(128&t.flags))po(),fo(),t.flags|=98560,s=!1;else if(s=ho(t),null!==r&&null!==r.dehydrated){if(null===e){if(!s)throw Error(o(318));if(!(s=null!==(s=t.memoizedState)?s.dehydrated:null))throw Error(o(317));s[hi]=t}else fo(),0===(128&t.flags)&&(t.memoizedState=null),t.flags|=4;Xa(t),s=!1}else null!==oo&&(ac(oo),oo=null),s=!0;if(!s)return 65536&t.flags?t:null}return 0!==(128&t.flags)?(t.lanes=n,t):((r=null!==r)!==(null!==e&&null!==e.memoizedState)&&r&&(t.child.flags|=8192,0!==(1&t.mode)&&(null===e||0!==(1&ls.current)?0===Rl&&(Rl=3):mc())),null!==t.updateQueue&&(t.flags|=4),Xa(t),null);case 4:return os(),Ma(e,t),null===e&&Br(t.stateNode.containerInfo),Xa(t),null;case 10:return wo(t.type._context),Xa(t),null;case 19:if(Pi(ls),null===(s=t.memoizedState))return Xa(t),null;if(r=0!==(128&t.flags),null===(l=s.rendering))if(r)qa(s,!1);else{if(0!==Rl||null!==e&&0!==(128&e.flags))for(e=t.child;null!==e;){if(null!==(l=cs(e))){for(t.flags|=128,qa(s,!1),null!==(r=l.updateQueue)&&(t.updateQueue=r,t.flags|=4),t.subtreeFlags=0,r=n,n=t.child;null!==n;)e=r,(s=n).flags&=14680066,null===(l=s.alternate)?(s.childLanes=0,s.lanes=e,s.child=null,s.subtreeFlags=0,s.memoizedProps=null,s.memoizedState=null,s.updateQueue=null,s.dependencies=null,s.stateNode=null):(s.childLanes=l.childLanes,s.lanes=l.lanes,s.child=l.child,s.subtreeFlags=0,s.deletions=null,s.memoizedProps=l.memoizedProps,s.memoizedState=l.memoizedState,s.updateQueue=l.updateQueue,s.type=l.type,e=l.dependencies,s.dependencies=null===e?null:{lanes:e.lanes,firstContext:e.firstContext}),n=n.sibling;return Ci(ls,1&ls.current|2),t.child}e=e.sibling}null!==s.tail&&$e()>Ul&&(t.flags|=128,r=!0,qa(s,!1),t.lanes=4194304)}else{if(!r)if(null!==(e=cs(l))){if(t.flags|=128,r=!0,null!==(n=e.updateQueue)&&(t.updateQueue=n,t.flags|=4),qa(s,!0),null===s.tail&&"hidden"===s.tailMode&&!l.alternate&&!io)return Xa(t),null}else 2*$e()-s.renderingStartTime>Ul&&1073741824!==n&&(t.flags|=128,r=!0,qa(s,!1),t.lanes=4194304);s.isBackwards?(l.sibling=t.child,t.child=l):(null!==(n=s.last)?n.sibling=l:t.child=l,s.last=l)}return null!==s.tail?(t=s.tail,s.rendering=t,s.tail=t.sibling,s.renderingStartTime=$e(),t.sibling=null,n=ls.current,Ci(ls,r?1&n|2:1&n),t):(Xa(t),null);case 22:case 23:return hc(),r=null!==t.memoizedState,null!==e&&null!==e.memoizedState!==r&&(t.flags|=8192),r&&0!==(1&t.mode)?0!==(1073741824&Ml)&&(Xa(t),6&t.subtreeFlags&&(t.flags|=8192)):Xa(t),null;case 24:case 25:return null}throw Error(o(156,t.tag))}function Ka(e,t){switch(to(t),t.tag){case 1:return Ti(t.type)&&Mi(),65536&(e=t.flags)?(t.flags=-65537&e|128,t):null;case 3:return os(),Pi(ji),Pi(ki),ds(),0!==(65536&(e=t.flags))&&0===(128&e)?(t.flags=-65537&e|128,t):null;case 5:return as(t),null;case 13:if(Pi(ls),null!==(e=t.memoizedState)&&null!==e.dehydrated){if(null===t.alternate)throw Error(o(340));fo()}return 65536&(e=t.flags)?(t.flags=-65537&e|128,t):null;case 19:return Pi(ls),null;case 4:return os(),null;case 10:return wo(t.type._context),null;case 22:case 23:return hc(),null;default:return null}}Ta=function(e,t){for(var n=t.child;null!==n;){if(5===n.tag||6===n.tag)e.appendChild(n.stateNode);else if(4!==n.tag&&null!==n.child){n.child.return=n,n=n.child;continue}if(n===t)break;for(;null===n.sibling;){if(null===n.return||n.return===t)return;n=n.return}n.sibling.return=n.return,n=n.sibling}},Ma=function(){},Oa=function(e,t,n,r){var i=e.memoizedProps;if(i!==r){e=t.stateNode,rs(es.current);var o,s=null;switch(n){case"input":i=K(e,i),r=K(e,r),s=[];break;case"select":i=N({},i,{value:void 0}),r=N({},r,{value:void 0}),s=[];break;case"textarea":i=re(e,i),r=re(e,r),s=[];break;default:"function"!==typeof i.onClick&&"function"===typeof r.onClick&&(e.onclick=Qr)}for(u in ve(n,r),n=null,i)if(!r.hasOwnProperty(u)&&i.hasOwnProperty(u)&&null!=i[u])if("style"===u){var l=i[u];for(o in l)l.hasOwnProperty(o)&&(n||(n={}),n[o]="")}else"dangerouslySetInnerHTML"!==u&&"children"!==u&&"suppressContentEditableWarning"!==u&&"suppressHydrationWarning"!==u&&"autoFocus"!==u&&(a.hasOwnProperty(u)?s||(s=[]):(s=s||[]).push(u,null));for(u in r){var c=r[u];if(l=null!=i?i[u]:void 0,r.hasOwnProperty(u)&&c!==l&&(null!=c||null!=l))if("style"===u)if(l){for(o in l)!l.hasOwnProperty(o)||c&&c.hasOwnProperty(o)||(n||(n={}),n[o]="");for(o in c)c.hasOwnProperty(o)&&l[o]!==c[o]&&(n||(n={}),n[o]=c[o])}else n||(s||(s=[]),s.push(u,n)),n=c;else"dangerouslySetInnerHTML"===u?(c=c?c.__html:void 0,l=l?l.__html:void 0,null!=c&&l!==c&&(s=s||[]).push(u,c)):"children"===u?"string"!==typeof c&&"number"!==typeof c||(s=s||[]).push(u,""+c):"suppressContentEditableWarning"!==u&&"suppressHydrationWarning"!==u&&(a.hasOwnProperty(u)?(null!=c&&"onScroll"===u&&Vr("scroll",e),s||l===c||(s=[])):(s=s||[]).push(u,c))}n&&(s=s||[]).push("style",n);var u=s;(t.updateQueue=u)&&(t.flags|=4)}},Ra=function(e,t,n,r){n!==r&&(t.flags|=4)};var Za=!1,$a=!1,Ja="function"===typeof WeakSet?WeakSet:Set,Qa=null;function el(e,t){var n=e.ref;if(null!==n)if("function"===typeof n)try{n(null)}catch(r){Pc(e,t,r)}else n.current=null}function tl(e,t,n){try{n()}catch(r){Pc(e,t,r)}}var nl=!1;function rl(e,t,n){var r=t.updateQueue;if(null!==(r=null!==r?r.lastEffect:null)){var i=r=r.next;do{if((i.tag&e)===e){var o=i.destroy;i.destroy=void 0,void 0!==o&&tl(t,n,o)}i=i.next}while(i!==r)}}function il(e,t){if(null!==(t=null!==(t=t.updateQueue)?t.lastEffect:null)){var n=t=t.next;do{if((n.tag&e)===e){var r=n.create;n.destroy=r()}n=n.next}while(n!==t)}}function ol(e){var t=e.ref;if(null!==t){var n=e.stateNode;e.tag,e=n,"function"===typeof t?t(e):t.current=e}}function sl(e){var t=e.alternate;null!==t&&(e.alternate=null,sl(t)),e.child=null,e.deletions=null,e.sibling=null,5===e.tag&&(null!==(t=e.stateNode)&&(delete t[hi],delete t[pi],delete t[gi],delete t[mi],delete t[yi])),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}function al(e){return 5===e.tag||3===e.tag||4===e.tag}function ll(e){e:for(;;){for(;null===e.sibling;){if(null===e.return||al(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;5!==e.tag&&6!==e.tag&&18!==e.tag;){if(2&e.flags)continue e;if(null===e.child||4===e.tag)continue e;e.child.return=e,e=e.child}if(!(2&e.flags))return e.stateNode}}function cl(e,t,n){var r=e.tag;if(5===r||6===r)e=e.stateNode,t?8===n.nodeType?n.parentNode.insertBefore(e,t):n.insertBefore(e,t):(8===n.nodeType?(t=n.parentNode).insertBefore(e,n):(t=n).appendChild(e),null!==(n=n._reactRootContainer)&&void 0!==n||null!==t.onclick||(t.onclick=Qr));else if(4!==r&&null!==(e=e.child))for(cl(e,t,n),e=e.sibling;null!==e;)cl(e,t,n),e=e.sibling}function ul(e,t,n){var r=e.tag;if(5===r||6===r)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(4!==r&&null!==(e=e.child))for(ul(e,t,n),e=e.sibling;null!==e;)ul(e,t,n),e=e.sibling}var dl=null,hl=!1;function pl(e,t,n){for(n=n.child;null!==n;)fl(e,t,n),n=n.sibling}function fl(e,t,n){if(ot&&"function"===typeof ot.onCommitFiberUnmount)try{ot.onCommitFiberUnmount(it,n)}catch(a){}switch(n.tag){case 5:$a||el(n,t);case 6:var r=dl,i=hl;dl=null,pl(e,t,n),hl=i,null!==(dl=r)&&(hl?(e=dl,n=n.stateNode,8===e.nodeType?e.parentNode.removeChild(n):e.removeChild(n)):dl.removeChild(n.stateNode));break;case 18:null!==dl&&(hl?(e=dl,n=n.stateNode,8===e.nodeType?li(e.parentNode,n):1===e.nodeType&&li(e,n),Bt(e)):li(dl,n.stateNode));break;case 4:r=dl,i=hl,dl=n.stateNode.containerInfo,hl=!0,pl(e,t,n),dl=r,hl=i;break;case 0:case 11:case 14:case 15:if(!$a&&(null!==(r=n.updateQueue)&&null!==(r=r.lastEffect))){i=r=r.next;do{var o=i,s=o.destroy;o=o.tag,void 0!==s&&(0!==(2&o)||0!==(4&o))&&tl(n,t,s),i=i.next}while(i!==r)}pl(e,t,n);break;case 1:if(!$a&&(el(n,t),"function"===typeof(r=n.stateNode).componentWillUnmount))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(a){Pc(n,t,a)}pl(e,t,n);break;case 21:pl(e,t,n);break;case 22:1&n.mode?($a=(r=$a)||null!==n.memoizedState,pl(e,t,n),$a=r):pl(e,t,n);break;default:pl(e,t,n)}}function gl(e){var t=e.updateQueue;if(null!==t){e.updateQueue=null;var n=e.stateNode;null===n&&(n=e.stateNode=new Ja),t.forEach((function(t){var r=jc.bind(null,e,t);n.has(t)||(n.add(t),t.then(r,r))}))}}function ml(e,t){var n=t.deletions;if(null!==n)for(var r=0;r<n.length;r++){var i=n[r];try{var s=e,a=t,l=a;e:for(;null!==l;){switch(l.tag){case 5:dl=l.stateNode,hl=!1;break e;case 3:case 4:dl=l.stateNode.containerInfo,hl=!0;break e}l=l.return}if(null===dl)throw Error(o(160));fl(s,a,i),dl=null,hl=!1;var c=i.alternate;null!==c&&(c.return=null),i.return=null}catch(u){Pc(i,t,u)}}if(12854&t.subtreeFlags)for(t=t.child;null!==t;)yl(t,e),t=t.sibling}function yl(e,t){var n=e.alternate,r=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:if(ml(t,e),vl(e),4&r){try{rl(3,e,e.return),il(3,e)}catch(m){Pc(e,e.return,m)}try{rl(5,e,e.return)}catch(m){Pc(e,e.return,m)}}break;case 1:ml(t,e),vl(e),512&r&&null!==n&&el(n,n.return);break;case 5:if(ml(t,e),vl(e),512&r&&null!==n&&el(n,n.return),32&e.flags){var i=e.stateNode;try{he(i,"")}catch(m){Pc(e,e.return,m)}}if(4&r&&null!=(i=e.stateNode)){var s=e.memoizedProps,a=null!==n?n.memoizedProps:s,l=e.type,c=e.updateQueue;if(e.updateQueue=null,null!==c)try{"input"===l&&"radio"===s.type&&null!=s.name&&$(i,s),_e(l,a);var u=_e(l,s);for(a=0;a<c.length;a+=2){var d=c[a],h=c[a+1];"style"===d?me(i,h):"dangerouslySetInnerHTML"===d?de(i,h):"children"===d?he(i,h):_(i,d,h,u)}switch(l){case"input":J(i,s);break;case"textarea":oe(i,s);break;case"select":var p=i._wrapperState.wasMultiple;i._wrapperState.wasMultiple=!!s.multiple;var f=s.value;null!=f?ne(i,!!s.multiple,f,!1):p!==!!s.multiple&&(null!=s.defaultValue?ne(i,!!s.multiple,s.defaultValue,!0):ne(i,!!s.multiple,s.multiple?[]:"",!1))}i[pi]=s}catch(m){Pc(e,e.return,m)}}break;case 6:if(ml(t,e),vl(e),4&r){if(null===e.stateNode)throw Error(o(162));i=e.stateNode,s=e.memoizedProps;try{i.nodeValue=s}catch(m){Pc(e,e.return,m)}}break;case 3:if(ml(t,e),vl(e),4&r&&null!==n&&n.memoizedState.isDehydrated)try{Bt(t.containerInfo)}catch(m){Pc(e,e.return,m)}break;case 4:default:ml(t,e),vl(e);break;case 13:ml(t,e),vl(e),8192&(i=e.child).flags&&(s=null!==i.memoizedState,i.stateNode.isHidden=s,!s||null!==i.alternate&&null!==i.alternate.memoizedState||(Bl=$e())),4&r&&gl(e);break;case 22:if(d=null!==n&&null!==n.memoizedState,1&e.mode?($a=(u=$a)||d,ml(t,e),$a=u):ml(t,e),vl(e),8192&r){if(u=null!==e.memoizedState,(e.stateNode.isHidden=u)&&!d&&0!==(1&e.mode))for(Qa=e,d=e.child;null!==d;){for(h=Qa=d;null!==Qa;){switch(f=(p=Qa).child,p.tag){case 0:case 11:case 14:case 15:rl(4,p,p.return);break;case 1:el(p,p.return);var g=p.stateNode;if("function"===typeof g.componentWillUnmount){r=p,n=p.return;try{t=r,g.props=t.memoizedProps,g.state=t.memoizedState,g.componentWillUnmount()}catch(m){Pc(r,n,m)}}break;case 5:el(p,p.return);break;case 22:if(null!==p.memoizedState){Sl(h);continue}}null!==f?(f.return=p,Qa=f):Sl(h)}d=d.sibling}e:for(d=null,h=e;;){if(5===h.tag){if(null===d){d=h;try{i=h.stateNode,u?"function"===typeof(s=i.style).setProperty?s.setProperty("display","none","important"):s.display="none":(l=h.stateNode,a=void 0!==(c=h.memoizedProps.style)&&null!==c&&c.hasOwnProperty("display")?c.display:null,l.style.display=ge("display",a))}catch(m){Pc(e,e.return,m)}}}else if(6===h.tag){if(null===d)try{h.stateNode.nodeValue=u?"":h.memoizedProps}catch(m){Pc(e,e.return,m)}}else if((22!==h.tag&&23!==h.tag||null===h.memoizedState||h===e)&&null!==h.child){h.child.return=h,h=h.child;continue}if(h===e)break e;for(;null===h.sibling;){if(null===h.return||h.return===e)break e;d===h&&(d=null),h=h.return}d===h&&(d=null),h.sibling.return=h.return,h=h.sibling}}break;case 19:ml(t,e),vl(e),4&r&&gl(e);case 21:}}function vl(e){var t=e.flags;if(2&t){try{e:{for(var n=e.return;null!==n;){if(al(n)){var r=n;break e}n=n.return}throw Error(o(160))}switch(r.tag){case 5:var i=r.stateNode;32&r.flags&&(he(i,""),r.flags&=-33),ul(e,ll(e),i);break;case 3:case 4:var s=r.stateNode.containerInfo;cl(e,ll(e),s);break;default:throw Error(o(161))}}catch(a){Pc(e,e.return,a)}e.flags&=-3}4096&t&&(e.flags&=-4097)}function _l(e,t,n){Qa=e,bl(e,t,n)}function bl(e,t,n){for(var r=0!==(1&e.mode);null!==Qa;){var i=Qa,o=i.child;if(22===i.tag&&r){var s=null!==i.memoizedState||Za;if(!s){var a=i.alternate,l=null!==a&&null!==a.memoizedState||$a;a=Za;var c=$a;if(Za=s,($a=l)&&!c)for(Qa=i;null!==Qa;)l=(s=Qa).child,22===s.tag&&null!==s.memoizedState?wl(i):null!==l?(l.return=s,Qa=l):wl(i);for(;null!==o;)Qa=o,bl(o,t,n),o=o.sibling;Qa=i,Za=a,$a=c}xl(e)}else 0!==(8772&i.subtreeFlags)&&null!==o?(o.return=i,Qa=o):xl(e)}}function xl(e){for(;null!==Qa;){var t=Qa;if(0!==(8772&t.flags)){var n=t.alternate;try{if(0!==(8772&t.flags))switch(t.tag){case 0:case 11:case 15:$a||il(5,t);break;case 1:var r=t.stateNode;if(4&t.flags&&!$a)if(null===n)r.componentDidMount();else{var i=t.elementType===t.type?n.memoizedProps:yo(t.type,n.memoizedProps);r.componentDidUpdate(i,n.memoizedState,r.__reactInternalSnapshotBeforeUpdate)}var s=t.updateQueue;null!==s&&Vo(t,s,r);break;case 3:var a=t.updateQueue;if(null!==a){if(n=null,null!==t.child)switch(t.child.tag){case 5:case 1:n=t.child.stateNode}Vo(t,a,n)}break;case 5:var l=t.stateNode;if(null===n&&4&t.flags){n=l;var c=t.memoizedProps;switch(t.type){case"button":case"input":case"select":case"textarea":c.autoFocus&&n.focus();break;case"img":c.src&&(n.src=c.src)}}break;case 6:case 4:case 12:case 19:case 17:case 21:case 22:case 23:case 25:break;case 13:if(null===t.memoizedState){var u=t.alternate;if(null!==u){var d=u.memoizedState;if(null!==d){var h=d.dehydrated;null!==h&&Bt(h)}}}break;default:throw Error(o(163))}$a||512&t.flags&&ol(t)}catch(p){Pc(t,t.return,p)}}if(t===e){Qa=null;break}if(null!==(n=t.sibling)){n.return=t.return,Qa=n;break}Qa=t.return}}function Sl(e){for(;null!==Qa;){var t=Qa;if(t===e){Qa=null;break}var n=t.sibling;if(null!==n){n.return=t.return,Qa=n;break}Qa=t.return}}function wl(e){for(;null!==Qa;){var t=Qa;try{switch(t.tag){case 0:case 11:case 15:var n=t.return;try{il(4,t)}catch(l){Pc(t,n,l)}break;case 1:var r=t.stateNode;if("function"===typeof r.componentDidMount){var i=t.return;try{r.componentDidMount()}catch(l){Pc(t,i,l)}}var o=t.return;try{ol(t)}catch(l){Pc(t,o,l)}break;case 5:var s=t.return;try{ol(t)}catch(l){Pc(t,s,l)}}}catch(l){Pc(t,t.return,l)}if(t===e){Qa=null;break}var a=t.sibling;if(null!==a){a.return=t.return,Qa=a;break}Qa=t.return}}var El,Pl=Math.ceil,Cl=b.ReactCurrentDispatcher,Al=b.ReactCurrentOwner,kl=b.ReactCurrentBatchConfig,jl=0,Il=null,Gl=null,Tl=0,Ml=0,Ol=Ei(0),Rl=0,Dl=null,Nl=0,Ll=0,Vl=0,Fl=null,zl=null,Bl=0,Ul=1/0,Wl=null,Hl=!1,ql=null,Xl=null,Yl=!1,Kl=null,Zl=0,$l=0,Jl=null,Ql=-1,ec=0;function tc(){return 0!==(6&jl)?$e():-1!==Ql?Ql:Ql=$e()}function nc(e){return 0===(1&e.mode)?1:0!==(2&jl)&&0!==Tl?Tl&-Tl:null!==mo.transition?(0===ec&&(ec=gt()),ec):0!==(e=_t)?e:e=void 0===(e=window.event)?16:Zt(e.type)}function rc(e,t,n,r){if(50<$l)throw $l=0,Jl=null,Error(o(185));yt(e,n,r),0!==(2&jl)&&e===Il||(e===Il&&(0===(2&jl)&&(Ll|=n),4===Rl&&lc(e,Tl)),ic(e,r),1===n&&0===jl&&0===(1&t.mode)&&(Ul=$e()+500,Vi&&Bi()))}function ic(e,t){var n=e.callbackNode;!function(e,t){for(var n=e.suspendedLanes,r=e.pingedLanes,i=e.expirationTimes,o=e.pendingLanes;0<o;){var s=31-st(o),a=1<<s,l=i[s];-1===l?0!==(a&n)&&0===(a&r)||(i[s]=pt(a,t)):l<=t&&(e.expiredLanes|=a),o&=~a}}(e,t);var r=ht(e,e===Il?Tl:0);if(0===r)null!==n&&Ye(n),e.callbackNode=null,e.callbackPriority=0;else if(t=r&-r,e.callbackPriority!==t){if(null!=n&&Ye(n),1===t)0===e.tag?function(e){Vi=!0,zi(e)}(cc.bind(null,e)):zi(cc.bind(null,e)),si((function(){0===(6&jl)&&Bi()})),n=null;else{switch(bt(r)){case 1:n=Qe;break;case 4:n=et;break;case 16:default:n=tt;break;case 536870912:n=rt}n=Ic(n,oc.bind(null,e))}e.callbackPriority=t,e.callbackNode=n}}function oc(e,t){if(Ql=-1,ec=0,0!==(6&jl))throw Error(o(327));var n=e.callbackNode;if(wc()&&e.callbackNode!==n)return null;var r=ht(e,e===Il?Tl:0);if(0===r)return null;if(0!==(30&r)||0!==(r&e.expiredLanes)||t)t=yc(e,r);else{t=r;var i=jl;jl|=2;var s=gc();for(Il===e&&Tl===t||(Wl=null,Ul=$e()+500,pc(e,t));;)try{_c();break}catch(l){fc(e,l)}So(),Cl.current=s,jl=i,null!==Gl?t=0:(Il=null,Tl=0,t=Rl)}if(0!==t){if(2===t&&(0!==(i=ft(e))&&(r=i,t=sc(e,i))),1===t)throw n=Dl,pc(e,0),lc(e,r),ic(e,$e()),n;if(6===t)lc(e,r);else{if(i=e.current.alternate,0===(30&r)&&!function(e){for(var t=e;;){if(16384&t.flags){var n=t.updateQueue;if(null!==n&&null!==(n=n.stores))for(var r=0;r<n.length;r++){var i=n[r],o=i.getSnapshot;i=i.value;try{if(!ar(o(),i))return!1}catch(a){return!1}}}if(n=t.child,16384&t.subtreeFlags&&null!==n)n.return=t,t=n;else{if(t===e)break;for(;null===t.sibling;){if(null===t.return||t.return===e)return!0;t=t.return}t.sibling.return=t.return,t=t.sibling}}return!0}(i)&&(2===(t=yc(e,r))&&(0!==(s=ft(e))&&(r=s,t=sc(e,s))),1===t))throw n=Dl,pc(e,0),lc(e,r),ic(e,$e()),n;switch(e.finishedWork=i,e.finishedLanes=r,t){case 0:case 1:throw Error(o(345));case 2:case 5:Sc(e,zl,Wl);break;case 3:if(lc(e,r),(130023424&r)===r&&10<(t=Bl+500-$e())){if(0!==ht(e,0))break;if(((i=e.suspendedLanes)&r)!==r){tc(),e.pingedLanes|=e.suspendedLanes&i;break}e.timeoutHandle=ri(Sc.bind(null,e,zl,Wl),t);break}Sc(e,zl,Wl);break;case 4:if(lc(e,r),(4194240&r)===r)break;for(t=e.eventTimes,i=-1;0<r;){var a=31-st(r);s=1<<a,(a=t[a])>i&&(i=a),r&=~s}if(r=i,10<(r=(120>(r=$e()-r)?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*Pl(r/1960))-r)){e.timeoutHandle=ri(Sc.bind(null,e,zl,Wl),r);break}Sc(e,zl,Wl);break;default:throw Error(o(329))}}}return ic(e,$e()),e.callbackNode===n?oc.bind(null,e):null}function sc(e,t){var n=Fl;return e.current.memoizedState.isDehydrated&&(pc(e,t).flags|=256),2!==(e=yc(e,t))&&(t=zl,zl=n,null!==t&&ac(t)),e}function ac(e){null===zl?zl=e:zl.push.apply(zl,e)}function lc(e,t){for(t&=~Vl,t&=~Ll,e.suspendedLanes|=t,e.pingedLanes&=~t,e=e.expirationTimes;0<t;){var n=31-st(t),r=1<<n;e[n]=-1,t&=~r}}function cc(e){if(0!==(6&jl))throw Error(o(327));wc();var t=ht(e,0);if(0===(1&t))return ic(e,$e()),null;var n=yc(e,t);if(0!==e.tag&&2===n){var r=ft(e);0!==r&&(t=r,n=sc(e,r))}if(1===n)throw n=Dl,pc(e,0),lc(e,t),ic(e,$e()),n;if(6===n)throw Error(o(345));return e.finishedWork=e.current.alternate,e.finishedLanes=t,Sc(e,zl,Wl),ic(e,$e()),null}function uc(e,t){var n=jl;jl|=1;try{return e(t)}finally{0===(jl=n)&&(Ul=$e()+500,Vi&&Bi())}}function dc(e){null!==Kl&&0===Kl.tag&&0===(6&jl)&&wc();var t=jl;jl|=1;var n=kl.transition,r=_t;try{if(kl.transition=null,_t=1,e)return e()}finally{_t=r,kl.transition=n,0===(6&(jl=t))&&Bi()}}function hc(){Ml=Ol.current,Pi(Ol)}function pc(e,t){e.finishedWork=null,e.finishedLanes=0;var n=e.timeoutHandle;if(-1!==n&&(e.timeoutHandle=-1,ii(n)),null!==Gl)for(n=Gl.return;null!==n;){var r=n;switch(to(r),r.tag){case 1:null!==(r=r.type.childContextTypes)&&void 0!==r&&Mi();break;case 3:os(),Pi(ji),Pi(ki),ds();break;case 5:as(r);break;case 4:os();break;case 13:case 19:Pi(ls);break;case 10:wo(r.type._context);break;case 22:case 23:hc()}n=n.return}if(Il=e,Gl=e=Oc(e.current,null),Tl=Ml=t,Rl=0,Dl=null,Vl=Ll=Nl=0,zl=Fl=null,null!==Ao){for(t=0;t<Ao.length;t++)if(null!==(r=(n=Ao[t]).interleaved)){n.interleaved=null;var i=r.next,o=n.pending;if(null!==o){var s=o.next;o.next=i,r.next=s}n.pending=r}Ao=null}return e}function fc(e,t){for(;;){var n=Gl;try{if(So(),hs.current=sa,vs){for(var r=gs.memoizedState;null!==r;){var i=r.queue;null!==i&&(i.pending=null),r=r.next}vs=!1}if(fs=0,ys=ms=gs=null,_s=!1,bs=0,Al.current=null,null===n||null===n.return){Rl=1,Dl=t,Gl=null;break}e:{var s=e,a=n.return,l=n,c=t;if(t=Tl,l.flags|=32768,null!==c&&"object"===typeof c&&"function"===typeof c.then){var u=c,d=l,h=d.tag;if(0===(1&d.mode)&&(0===h||11===h||15===h)){var p=d.alternate;p?(d.updateQueue=p.updateQueue,d.memoizedState=p.memoizedState,d.lanes=p.lanes):(d.updateQueue=null,d.memoizedState=null)}var f=ya(a);if(null!==f){f.flags&=-257,va(f,a,l,0,t),1&f.mode&&ma(s,u,t),c=u;var g=(t=f).updateQueue;if(null===g){var m=new Set;m.add(c),t.updateQueue=m}else g.add(c);break e}if(0===(1&t)){ma(s,u,t),mc();break e}c=Error(o(426))}else if(io&&1&l.mode){var y=ya(a);if(null!==y){0===(65536&y.flags)&&(y.flags|=256),va(y,a,l,0,t),go(ua(c,l));break e}}s=c=ua(c,l),4!==Rl&&(Rl=2),null===Fl?Fl=[s]:Fl.push(s),s=a;do{switch(s.tag){case 3:s.flags|=65536,t&=-t,s.lanes|=t,No(s,fa(0,c,t));break e;case 1:l=c;var v=s.type,_=s.stateNode;if(0===(128&s.flags)&&("function"===typeof v.getDerivedStateFromError||null!==_&&"function"===typeof _.componentDidCatch&&(null===Xl||!Xl.has(_)))){s.flags|=65536,t&=-t,s.lanes|=t,No(s,ga(s,l,t));break e}}s=s.return}while(null!==s)}xc(n)}catch(b){t=b,Gl===n&&null!==n&&(Gl=n=n.return);continue}break}}function gc(){var e=Cl.current;return Cl.current=sa,null===e?sa:e}function mc(){0!==Rl&&3!==Rl&&2!==Rl||(Rl=4),null===Il||0===(268435455&Nl)&&0===(268435455&Ll)||lc(Il,Tl)}function yc(e,t){var n=jl;jl|=2;var r=gc();for(Il===e&&Tl===t||(Wl=null,pc(e,t));;)try{vc();break}catch(i){fc(e,i)}if(So(),jl=n,Cl.current=r,null!==Gl)throw Error(o(261));return Il=null,Tl=0,Rl}function vc(){for(;null!==Gl;)bc(Gl)}function _c(){for(;null!==Gl&&!Ke();)bc(Gl)}function bc(e){var t=El(e.alternate,e,Ml);e.memoizedProps=e.pendingProps,null===t?xc(e):Gl=t,Al.current=null}function xc(e){var t=e;do{var n=t.alternate;if(e=t.return,0===(32768&t.flags)){if(null!==(n=Ya(n,t,Ml)))return void(Gl=n)}else{if(null!==(n=Ka(n,t)))return n.flags&=32767,void(Gl=n);if(null===e)return Rl=6,void(Gl=null);e.flags|=32768,e.subtreeFlags=0,e.deletions=null}if(null!==(t=t.sibling))return void(Gl=t);Gl=t=e}while(null!==t);0===Rl&&(Rl=5)}function Sc(e,t,n){var r=_t,i=kl.transition;try{kl.transition=null,_t=1,function(e,t,n,r){do{wc()}while(null!==Kl);if(0!==(6&jl))throw Error(o(327));n=e.finishedWork;var i=e.finishedLanes;if(null===n)return null;if(e.finishedWork=null,e.finishedLanes=0,n===e.current)throw Error(o(177));e.callbackNode=null,e.callbackPriority=0;var s=n.lanes|n.childLanes;if(function(e,t){var n=e.pendingLanes&~t;e.pendingLanes=t,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=t,e.mutableReadLanes&=t,e.entangledLanes&=t,t=e.entanglements;var r=e.eventTimes;for(e=e.expirationTimes;0<n;){var i=31-st(n),o=1<<i;t[i]=0,r[i]=-1,e[i]=-1,n&=~o}}(e,s),e===Il&&(Gl=Il=null,Tl=0),0===(2064&n.subtreeFlags)&&0===(2064&n.flags)||Yl||(Yl=!0,Ic(tt,(function(){return wc(),null}))),s=0!==(15990&n.flags),0!==(15990&n.subtreeFlags)||s){s=kl.transition,kl.transition=null;var a=_t;_t=1;var l=jl;jl|=4,Al.current=null,function(e,t){if(ei=Wt,pr(e=hr())){if("selectionStart"in e)var n={start:e.selectionStart,end:e.selectionEnd};else e:{var r=(n=(n=e.ownerDocument)&&n.defaultView||window).getSelection&&n.getSelection();if(r&&0!==r.rangeCount){n=r.anchorNode;var i=r.anchorOffset,s=r.focusNode;r=r.focusOffset;try{n.nodeType,s.nodeType}catch(x){n=null;break e}var a=0,l=-1,c=-1,u=0,d=0,h=e,p=null;t:for(;;){for(var f;h!==n||0!==i&&3!==h.nodeType||(l=a+i),h!==s||0!==r&&3!==h.nodeType||(c=a+r),3===h.nodeType&&(a+=h.nodeValue.length),null!==(f=h.firstChild);)p=h,h=f;for(;;){if(h===e)break t;if(p===n&&++u===i&&(l=a),p===s&&++d===r&&(c=a),null!==(f=h.nextSibling))break;p=(h=p).parentNode}h=f}n=-1===l||-1===c?null:{start:l,end:c}}else n=null}n=n||{start:0,end:0}}else n=null;for(ti={focusedElem:e,selectionRange:n},Wt=!1,Qa=t;null!==Qa;)if(e=(t=Qa).child,0!==(1028&t.subtreeFlags)&&null!==e)e.return=t,Qa=e;else for(;null!==Qa;){t=Qa;try{var g=t.alternate;if(0!==(1024&t.flags))switch(t.tag){case 0:case 11:case 15:case 5:case 6:case 4:case 17:break;case 1:if(null!==g){var m=g.memoizedProps,y=g.memoizedState,v=t.stateNode,_=v.getSnapshotBeforeUpdate(t.elementType===t.type?m:yo(t.type,m),y);v.__reactInternalSnapshotBeforeUpdate=_}break;case 3:var b=t.stateNode.containerInfo;1===b.nodeType?b.textContent="":9===b.nodeType&&b.documentElement&&b.removeChild(b.documentElement);break;default:throw Error(o(163))}}catch(x){Pc(t,t.return,x)}if(null!==(e=t.sibling)){e.return=t.return,Qa=e;break}Qa=t.return}g=nl,nl=!1}(e,n),yl(n,e),fr(ti),Wt=!!ei,ti=ei=null,e.current=n,_l(n,e,i),Ze(),jl=l,_t=a,kl.transition=s}else e.current=n;if(Yl&&(Yl=!1,Kl=e,Zl=i),s=e.pendingLanes,0===s&&(Xl=null),function(e){if(ot&&"function"===typeof ot.onCommitFiberRoot)try{ot.onCommitFiberRoot(it,e,void 0,128===(128&e.current.flags))}catch(t){}}(n.stateNode),ic(e,$e()),null!==t)for(r=e.onRecoverableError,n=0;n<t.length;n++)i=t[n],r(i.value,{componentStack:i.stack,digest:i.digest});if(Hl)throw Hl=!1,e=ql,ql=null,e;0!==(1&Zl)&&0!==e.tag&&wc(),s=e.pendingLanes,0!==(1&s)?e===Jl?$l++:($l=0,Jl=e):$l=0,Bi()}(e,t,n,r)}finally{kl.transition=i,_t=r}return null}function wc(){if(null!==Kl){var e=bt(Zl),t=kl.transition,n=_t;try{if(kl.transition=null,_t=16>e?16:e,null===Kl)var r=!1;else{if(e=Kl,Kl=null,Zl=0,0!==(6&jl))throw Error(o(331));var i=jl;for(jl|=4,Qa=e.current;null!==Qa;){var s=Qa,a=s.child;if(0!==(16&Qa.flags)){var l=s.deletions;if(null!==l){for(var c=0;c<l.length;c++){var u=l[c];for(Qa=u;null!==Qa;){var d=Qa;switch(d.tag){case 0:case 11:case 15:rl(8,d,s)}var h=d.child;if(null!==h)h.return=d,Qa=h;else for(;null!==Qa;){var p=(d=Qa).sibling,f=d.return;if(sl(d),d===u){Qa=null;break}if(null!==p){p.return=f,Qa=p;break}Qa=f}}}var g=s.alternate;if(null!==g){var m=g.child;if(null!==m){g.child=null;do{var y=m.sibling;m.sibling=null,m=y}while(null!==m)}}Qa=s}}if(0!==(2064&s.subtreeFlags)&&null!==a)a.return=s,Qa=a;else e:for(;null!==Qa;){if(0!==(2048&(s=Qa).flags))switch(s.tag){case 0:case 11:case 15:rl(9,s,s.return)}var v=s.sibling;if(null!==v){v.return=s.return,Qa=v;break e}Qa=s.return}}var _=e.current;for(Qa=_;null!==Qa;){var b=(a=Qa).child;if(0!==(2064&a.subtreeFlags)&&null!==b)b.return=a,Qa=b;else e:for(a=_;null!==Qa;){if(0!==(2048&(l=Qa).flags))try{switch(l.tag){case 0:case 11:case 15:il(9,l)}}catch(S){Pc(l,l.return,S)}if(l===a){Qa=null;break e}var x=l.sibling;if(null!==x){x.return=l.return,Qa=x;break e}Qa=l.return}}if(jl=i,Bi(),ot&&"function"===typeof ot.onPostCommitFiberRoot)try{ot.onPostCommitFiberRoot(it,e)}catch(S){}r=!0}return r}finally{_t=n,kl.transition=t}}return!1}function Ec(e,t,n){e=Ro(e,t=fa(0,t=ua(n,t),1),1),t=tc(),null!==e&&(yt(e,1,t),ic(e,t))}function Pc(e,t,n){if(3===e.tag)Ec(e,e,n);else for(;null!==t;){if(3===t.tag){Ec(t,e,n);break}if(1===t.tag){var r=t.stateNode;if("function"===typeof t.type.getDerivedStateFromError||"function"===typeof r.componentDidCatch&&(null===Xl||!Xl.has(r))){t=Ro(t,e=ga(t,e=ua(n,e),1),1),e=tc(),null!==t&&(yt(t,1,e),ic(t,e));break}}t=t.return}}function Cc(e,t,n){var r=e.pingCache;null!==r&&r.delete(t),t=tc(),e.pingedLanes|=e.suspendedLanes&n,Il===e&&(Tl&n)===n&&(4===Rl||3===Rl&&(130023424&Tl)===Tl&&500>$e()-Bl?pc(e,0):Vl|=n),ic(e,t)}function Ac(e,t){0===t&&(0===(1&e.mode)?t=1:(t=ut,0===(130023424&(ut<<=1))&&(ut=4194304)));var n=tc();null!==(e=Io(e,t))&&(yt(e,t,n),ic(e,n))}function kc(e){var t=e.memoizedState,n=0;null!==t&&(n=t.retryLane),Ac(e,n)}function jc(e,t){var n=0;switch(e.tag){case 13:var r=e.stateNode,i=e.memoizedState;null!==i&&(n=i.retryLane);break;case 19:r=e.stateNode;break;default:throw Error(o(314))}null!==r&&r.delete(t),Ac(e,n)}function Ic(e,t){return Xe(e,t)}function Gc(e,t,n,r){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Tc(e,t,n,r){return new Gc(e,t,n,r)}function Mc(e){return!(!(e=e.prototype)||!e.isReactComponent)}function Oc(e,t){var n=e.alternate;return null===n?((n=Tc(e.tag,t,e.key,e.mode)).elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=14680064&e.flags,n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=null===t?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n}function Rc(e,t,n,r,i,s){var a=2;if(r=e,"function"===typeof e)Mc(e)&&(a=1);else if("string"===typeof e)a=5;else e:switch(e){case w:return Dc(n.children,i,s,t);case E:a=8,i|=8;break;case P:return(e=Tc(12,n,t,2|i)).elementType=P,e.lanes=s,e;case j:return(e=Tc(13,n,t,i)).elementType=j,e.lanes=s,e;case I:return(e=Tc(19,n,t,i)).elementType=I,e.lanes=s,e;case M:return Nc(n,i,s,t);default:if("object"===typeof e&&null!==e)switch(e.$$typeof){case C:a=10;break e;case A:a=9;break e;case k:a=11;break e;case G:a=14;break e;case T:a=16,r=null;break e}throw Error(o(130,null==e?e:typeof e,""))}return(t=Tc(a,n,t,i)).elementType=e,t.type=r,t.lanes=s,t}function Dc(e,t,n,r){return(e=Tc(7,e,r,t)).lanes=n,e}function Nc(e,t,n,r){return(e=Tc(22,e,r,t)).elementType=M,e.lanes=n,e.stateNode={isHidden:!1},e}function Lc(e,t,n){return(e=Tc(6,e,null,t)).lanes=n,e}function Vc(e,t,n){return(t=Tc(4,null!==e.children?e.children:[],e.key,t)).lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function Fc(e,t,n,r,i){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=mt(0),this.expirationTimes=mt(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=mt(0),this.identifierPrefix=r,this.onRecoverableError=i,this.mutableSourceEagerHydrationData=null}function zc(e,t,n,r,i,o,s,a,l){return e=new Fc(e,t,n,a,l),1===t?(t=1,!0===o&&(t|=8)):t=0,o=Tc(3,null,null,t),e.current=o,o.stateNode=e,o.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},To(o),e}function Bc(e){if(!e)return Ai;e:{if(Be(e=e._reactInternals)!==e||1!==e.tag)throw Error(o(170));var t=e;do{switch(t.tag){case 3:t=t.stateNode.context;break e;case 1:if(Ti(t.type)){t=t.stateNode.__reactInternalMemoizedMergedChildContext;break e}}t=t.return}while(null!==t);throw Error(o(171))}if(1===e.tag){var n=e.type;if(Ti(n))return Ri(e,n,t)}return t}function Uc(e,t,n,r,i,o,s,a,l){return(e=zc(n,r,!0,e,0,o,0,a,l)).context=Bc(null),n=e.current,(o=Oo(r=tc(),i=nc(n))).callback=void 0!==t&&null!==t?t:null,Ro(n,o,i),e.current.lanes=i,yt(e,i,r),ic(e,r),e}function Wc(e,t,n,r){var i=t.current,o=tc(),s=nc(i);return n=Bc(n),null===t.context?t.context=n:t.pendingContext=n,(t=Oo(o,s)).payload={element:e},null!==(r=void 0===r?null:r)&&(t.callback=r),null!==(e=Ro(i,t,s))&&(rc(e,i,s,o),Do(e,i,s)),s}function Hc(e){return(e=e.current).child?(e.child.tag,e.child.stateNode):null}function qc(e,t){if(null!==(e=e.memoizedState)&&null!==e.dehydrated){var n=e.retryLane;e.retryLane=0!==n&&n<t?n:t}}function Xc(e,t){qc(e,t),(e=e.alternate)&&qc(e,t)}El=function(e,t,n){if(null!==e)if(e.memoizedProps!==t.pendingProps||ji.current)ba=!0;else{if(0===(e.lanes&n)&&0===(128&t.flags))return ba=!1,function(e,t,n){switch(t.tag){case 3:Ia(t),fo();break;case 5:ss(t);break;case 1:Ti(t.type)&&Di(t);break;case 4:is(t,t.stateNode.containerInfo);break;case 10:var r=t.type._context,i=t.memoizedProps.value;Ci(vo,r._currentValue),r._currentValue=i;break;case 13:if(null!==(r=t.memoizedState))return null!==r.dehydrated?(Ci(ls,1&ls.current),t.flags|=128,null):0!==(n&t.child.childLanes)?La(e,t,n):(Ci(ls,1&ls.current),null!==(e=Ha(e,t,n))?e.sibling:null);Ci(ls,1&ls.current);break;case 19:if(r=0!==(n&t.childLanes),0!==(128&e.flags)){if(r)return Ua(e,t,n);t.flags|=128}if(null!==(i=t.memoizedState)&&(i.rendering=null,i.tail=null,i.lastEffect=null),Ci(ls,ls.current),r)break;return null;case 22:case 23:return t.lanes=0,Pa(e,t,n)}return Ha(e,t,n)}(e,t,n);ba=0!==(131072&e.flags)}else ba=!1,io&&0!==(1048576&t.flags)&&Qi(t,qi,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;Wa(e,t),e=t.pendingProps;var i=Gi(t,ki.current);Po(t,n),i=Es(null,t,r,e,i,n);var s=Ps();return t.flags|=1,"object"===typeof i&&null!==i&&"function"===typeof i.render&&void 0===i.$$typeof?(t.tag=1,t.memoizedState=null,t.updateQueue=null,Ti(r)?(s=!0,Di(t)):s=!1,t.memoizedState=null!==i.state&&void 0!==i.state?i.state:null,To(t),i.updater=Bo,t.stateNode=i,i._reactInternals=t,qo(t,r,e,n),t=ja(null,t,r,!0,s,n)):(t.tag=0,io&&s&&eo(t),xa(null,t,i,n),t=t.child),t;case 16:r=t.elementType;e:{switch(Wa(e,t),e=t.pendingProps,r=(i=r._init)(r._payload),t.type=r,i=t.tag=function(e){if("function"===typeof e)return Mc(e)?1:0;if(void 0!==e&&null!==e){if((e=e.$$typeof)===k)return 11;if(e===G)return 14}return 2}(r),e=yo(r,e),i){case 0:t=Aa(null,t,r,e,n);break e;case 1:t=ka(null,t,r,e,n);break e;case 11:t=Sa(null,t,r,e,n);break e;case 14:t=wa(null,t,r,yo(r.type,e),n);break e}throw Error(o(306,r,""))}return t;case 0:return r=t.type,i=t.pendingProps,Aa(e,t,r,i=t.elementType===r?i:yo(r,i),n);case 1:return r=t.type,i=t.pendingProps,ka(e,t,r,i=t.elementType===r?i:yo(r,i),n);case 3:e:{if(Ia(t),null===e)throw Error(o(387));r=t.pendingProps,i=(s=t.memoizedState).element,Mo(e,t),Lo(t,r,null,n);var a=t.memoizedState;if(r=a.element,s.isDehydrated){if(s={element:r,isDehydrated:!1,cache:a.cache,pendingSuspenseBoundaries:a.pendingSuspenseBoundaries,transitions:a.transitions},t.updateQueue.baseState=s,t.memoizedState=s,256&t.flags){t=Ga(e,t,r,n,i=ua(Error(o(423)),t));break e}if(r!==i){t=Ga(e,t,r,n,i=ua(Error(o(424)),t));break e}for(ro=ci(t.stateNode.containerInfo.firstChild),no=t,io=!0,oo=null,n=Jo(t,null,r,n),t.child=n;n;)n.flags=-3&n.flags|4096,n=n.sibling}else{if(fo(),r===i){t=Ha(e,t,n);break e}xa(e,t,r,n)}t=t.child}return t;case 5:return ss(t),null===e&&co(t),r=t.type,i=t.pendingProps,s=null!==e?e.memoizedProps:null,a=i.children,ni(r,i)?a=null:null!==s&&ni(r,s)&&(t.flags|=32),Ca(e,t),xa(e,t,a,n),t.child;case 6:return null===e&&co(t),null;case 13:return La(e,t,n);case 4:return is(t,t.stateNode.containerInfo),r=t.pendingProps,null===e?t.child=$o(t,null,r,n):xa(e,t,r,n),t.child;case 11:return r=t.type,i=t.pendingProps,Sa(e,t,r,i=t.elementType===r?i:yo(r,i),n);case 7:return xa(e,t,t.pendingProps,n),t.child;case 8:case 12:return xa(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(r=t.type._context,i=t.pendingProps,s=t.memoizedProps,a=i.value,Ci(vo,r._currentValue),r._currentValue=a,null!==s)if(ar(s.value,a)){if(s.children===i.children&&!ji.current){t=Ha(e,t,n);break e}}else for(null!==(s=t.child)&&(s.return=t);null!==s;){var l=s.dependencies;if(null!==l){a=s.child;for(var c=l.firstContext;null!==c;){if(c.context===r){if(1===s.tag){(c=Oo(-1,n&-n)).tag=2;var u=s.updateQueue;if(null!==u){var d=(u=u.shared).pending;null===d?c.next=c:(c.next=d.next,d.next=c),u.pending=c}}s.lanes|=n,null!==(c=s.alternate)&&(c.lanes|=n),Eo(s.return,n,t),l.lanes|=n;break}c=c.next}}else if(10===s.tag)a=s.type===t.type?null:s.child;else if(18===s.tag){if(null===(a=s.return))throw Error(o(341));a.lanes|=n,null!==(l=a.alternate)&&(l.lanes|=n),Eo(a,n,t),a=s.sibling}else a=s.child;if(null!==a)a.return=s;else for(a=s;null!==a;){if(a===t){a=null;break}if(null!==(s=a.sibling)){s.return=a.return,a=s;break}a=a.return}s=a}xa(e,t,i.children,n),t=t.child}return t;case 9:return i=t.type,r=t.pendingProps.children,Po(t,n),r=r(i=Co(i)),t.flags|=1,xa(e,t,r,n),t.child;case 14:return i=yo(r=t.type,t.pendingProps),wa(e,t,r,i=yo(r.type,i),n);case 15:return Ea(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:yo(r,i),Wa(e,t),t.tag=1,Ti(r)?(e=!0,Di(t)):e=!1,Po(t,n),Wo(t,r,i),qo(t,r,i,n),ja(null,t,r,!0,e,n);case 19:return Ua(e,t,n);case 22:return Pa(e,t,n)}throw Error(o(156,t.tag))};var Yc="function"===typeof reportError?reportError:function(e){console.error(e)};function Kc(e){this._internalRoot=e}function Zc(e){this._internalRoot=e}function $c(e){return!(!e||1!==e.nodeType&&9!==e.nodeType&&11!==e.nodeType)}function Jc(e){return!(!e||1!==e.nodeType&&9!==e.nodeType&&11!==e.nodeType&&(8!==e.nodeType||" react-mount-point-unstable "!==e.nodeValue))}function Qc(){}function eu(e,t,n,r,i){var o=n._reactRootContainer;if(o){var s=o;if("function"===typeof i){var a=i;i=function(){var e=Hc(s);a.call(e)}}Wc(t,s,e,i)}else s=function(e,t,n,r,i){if(i){if("function"===typeof r){var o=r;r=function(){var e=Hc(s);o.call(e)}}var s=Uc(t,r,e,0,null,!1,0,"",Qc);return e._reactRootContainer=s,e[fi]=s.current,Br(8===e.nodeType?e.parentNode:e),dc(),s}for(;i=e.lastChild;)e.removeChild(i);if("function"===typeof r){var a=r;r=function(){var e=Hc(l);a.call(e)}}var l=zc(e,0,!1,null,0,!1,0,"",Qc);return e._reactRootContainer=l,e[fi]=l.current,Br(8===e.nodeType?e.parentNode:e),dc((function(){Wc(t,l,n,r)})),l}(n,t,e,i,r);return Hc(s)}Zc.prototype.render=Kc.prototype.render=function(e){var t=this._internalRoot;if(null===t)throw Error(o(409));Wc(e,t,null,null)},Zc.prototype.unmount=Kc.prototype.unmount=function(){var e=this._internalRoot;if(null!==e){this._internalRoot=null;var t=e.containerInfo;dc((function(){Wc(null,e,null,null)})),t[fi]=null}},Zc.prototype.unstable_scheduleHydration=function(e){if(e){var t=Et();e={blockedOn:null,target:e,priority:t};for(var n=0;n<Mt.length&&0!==t&&t<Mt[n].priority;n++);Mt.splice(n,0,e),0===n&&Nt(e)}},xt=function(e){switch(e.tag){case 3:var t=e.stateNode;if(t.current.memoizedState.isDehydrated){var n=dt(t.pendingLanes);0!==n&&(vt(t,1|n),ic(t,$e()),0===(6&jl)&&(Ul=$e()+500,Bi()))}break;case 13:dc((function(){var t=Io(e,1);if(null!==t){var n=tc();rc(t,e,1,n)}})),Xc(e,1)}},St=function(e){if(13===e.tag){var t=Io(e,134217728);if(null!==t)rc(t,e,134217728,tc());Xc(e,134217728)}},wt=function(e){if(13===e.tag){var t=nc(e),n=Io(e,t);if(null!==n)rc(n,e,t,tc());Xc(e,t)}},Et=function(){return _t},Pt=function(e,t){var n=_t;try{return _t=e,t()}finally{_t=n}},Se=function(e,t,n){switch(t){case"input":if(J(e,n),t=n.name,"radio"===n.type&&null!=t){for(n=e;n.parentNode;)n=n.parentNode;for(n=n.querySelectorAll("input[name="+JSON.stringify(""+t)+'][type="radio"]'),t=0;t<n.length;t++){var r=n[t];if(r!==e&&r.form===e.form){var i=xi(r);if(!i)throw Error(o(90));X(r),J(r,i)}}}break;case"textarea":oe(e,n);break;case"select":null!=(t=n.value)&&ne(e,!!n.multiple,t,!1)}},ke=uc,je=dc;var tu={usingClientEntryPoint:!1,Events:[_i,bi,xi,Ce,Ae,uc]},nu={findFiberByHostInstance:vi,bundleType:0,version:"18.2.0",rendererPackageName:"react-dom"},ru={bundleType:nu.bundleType,version:nu.version,rendererPackageName:nu.rendererPackageName,rendererConfig:nu.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:b.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return null===(e=He(e))?null:e.stateNode},findFiberByHostInstance:nu.findFiberByHostInstance||function(){return null},findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null,reconcilerVersion:"18.2.0-next-9e3b772b8-20220608"};if("undefined"!==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__){var iu=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!iu.isDisabled&&iu.supportsFiber)try{it=iu.inject(ru),ot=iu}catch(ue){}}t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=tu,t.createPortal=function(e,t){var n=2<arguments.length&&void 0!==arguments[2]?arguments[2]:null;if(!$c(t))throw Error(o(200));return function(e,t,n){var r=3<arguments.length&&void 0!==arguments[3]?arguments[3]:null;return{$$typeof:S,key:null==r?null:""+r,children:e,containerInfo:t,implementation:n}}(e,t,null,n)},t.createRoot=function(e,t){if(!$c(e))throw Error(o(299));var n=!1,r="",i=Yc;return null!==t&&void 0!==t&&(!0===t.unstable_strictMode&&(n=!0),void 0!==t.identifierPrefix&&(r=t.identifierPrefix),void 0!==t.onRecoverableError&&(i=t.onRecoverableError)),t=zc(e,1,!1,null,0,n,0,r,i),e[fi]=t.current,Br(8===e.nodeType?e.parentNode:e),new Kc(t)},t.findDOMNode=function(e){if(null==e)return null;if(1===e.nodeType)return e;var t=e._reactInternals;if(void 0===t){if("function"===typeof e.render)throw Error(o(188));throw e=Object.keys(e).join(","),Error(o(268,e))}return e=null===(e=He(t))?null:e.stateNode},t.flushSync=function(e){return dc(e)},t.hydrate=function(e,t,n){if(!Jc(t))throw Error(o(200));return eu(null,e,t,!0,n)},t.hydrateRoot=function(e,t,n){if(!$c(e))throw Error(o(405));var r=null!=n&&n.hydratedSources||null,i=!1,s="",a=Yc;if(null!==n&&void 0!==n&&(!0===n.unstable_strictMode&&(i=!0),void 0!==n.identifierPrefix&&(s=n.identifierPrefix),void 0!==n.onRecoverableError&&(a=n.onRecoverableError)),t=Uc(t,null,e,1,null!=n?n:null,i,0,s,a),e[fi]=t.current,Br(e),r)for(e=0;e<r.length;e++)i=(i=(n=r[e])._getVersion)(n._source),null==t.mutableSourceEagerHydrationData?t.mutableSourceEagerHydrationData=[n,i]:t.mutableSourceEagerHydrationData.push(n,i);return new Zc(t)},t.render=function(e,t,n){if(!Jc(t))throw Error(o(200));return eu(null,e,t,!1,n)},t.unmountComponentAtNode=function(e){if(!Jc(e))throw Error(o(40));return!!e._reactRootContainer&&(dc((function(){eu(null,null,e,!1,(function(){e._reactRootContainer=null,e[fi]=null}))})),!0)},t.unstable_batchedUpdates=uc,t.unstable_renderSubtreeIntoContainer=function(e,t,n,r){if(!Jc(n))throw Error(o(200));if(null==e||void 0===e._reactInternals)throw Error(o(38));return eu(e,t,n,!1,r)},t.version="18.2.0-next-9e3b772b8-20220608"},47504:(e,t,n)=>{"use strict";var r=n(78828);t.C=r.createRoot,r.hydrateRoot},78828:(e,t,n)=>{"use strict";!function e(){if("undefined"!==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__&&"function"===typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE)try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(t){console.error(t)}}(),e.exports=n(85652)},32880:(e,t,n)=>{"use strict";var r,i;r=n(7424),i=n(46220),t.version=r.version,t.renderToString=r.renderToString,t.renderToStaticMarkup=r.renderToStaticMarkup,t.renderToNodeStream=r.renderToNodeStream,t.renderToStaticNodeStream=r.renderToStaticNodeStream,t.renderToReadableStream=i.renderToReadableStream},68392:e=>{var t="undefined"!==typeof Element,n="function"===typeof Map,r="function"===typeof Set,i="function"===typeof ArrayBuffer&&!!ArrayBuffer.isView;function o(e,s){if(e===s)return!0;if(e&&s&&"object"==typeof e&&"object"==typeof s){if(e.constructor!==s.constructor)return!1;var a,l,c,u;if(Array.isArray(e)){if((a=e.length)!=s.length)return!1;for(l=a;0!==l--;)if(!o(e[l],s[l]))return!1;return!0}if(n&&e instanceof Map&&s instanceof Map){if(e.size!==s.size)return!1;for(u=e.entries();!(l=u.next()).done;)if(!s.has(l.value[0]))return!1;for(u=e.entries();!(l=u.next()).done;)if(!o(l.value[1],s.get(l.value[0])))return!1;return!0}if(r&&e instanceof Set&&s instanceof Set){if(e.size!==s.size)return!1;for(u=e.entries();!(l=u.next()).done;)if(!s.has(l.value[0]))return!1;return!0}if(i&&ArrayBuffer.isView(e)&&ArrayBuffer.isView(s)){if((a=e.length)!=s.length)return!1;for(l=a;0!==l--;)if(e[l]!==s[l])return!1;return!0}if(e.constructor===RegExp)return e.source===s.source&&e.flags===s.flags;if(e.valueOf!==Object.prototype.valueOf&&"function"===typeof e.valueOf&&"function"===typeof s.valueOf)return e.valueOf()===s.valueOf();if(e.toString!==Object.prototype.toString&&"function"===typeof e.toString&&"function"===typeof s.toString)return e.toString()===s.toString();if((a=(c=Object.keys(e)).length)!==Object.keys(s).length)return!1;for(l=a;0!==l--;)if(!Object.prototype.hasOwnProperty.call(s,c[l]))return!1;if(t&&e instanceof Element)return!1;for(l=a;0!==l--;)if(("_owner"!==c[l]&&"__v"!==c[l]&&"__o"!==c[l]||!e.$$typeof)&&!o(e[c[l]],s[c[l]]))return!1;return!0}return e!==e&&s!==s}e.exports=function(e,t){try{return o(e,t)}catch(n){if((n.message||"").match(/stack|recursion/i))return console.warn("react-fast-compare cannot handle circular refs"),!1;throw n}}},12312:function(e,t,n){var r;e.exports=(r=n(99584),function(e){function t(r){if(n[r])return n[r].exports;var i=n[r]={i:r,l:!1,exports:{}};return e[r].call(i.exports,i,i.exports,t),i.l=!0,i.exports}var n={};return t.m=e,t.c=n,t.d=function(e,n,r){t.o(e,n)||Object.defineProperty(e,n,{configurable:!1,enumerable:!0,get:r})},t.n=function(e){var n=e&&e.__esModule?function(){return e.default}:function(){return e};return t.d(n,"a",n),n},t.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},t.p="",t(t.s=3)}([function(e,t){e.exports=r},function(e,t,n){e.exports=n(7)()},function(e,t,n){!function(t,n){e.exports=n()}(0,(function(){return function(e){function t(r){if(n[r])return n[r].exports;var i=n[r]={i:r,l:!1,exports:{}};return e[r].call(i.exports,i,i.exports,t),i.l=!0,i.exports}var n={};return t.m=e,t.c=n,t.d=function(e,n,r){t.o(e,n)||Object.defineProperty(e,n,{configurable:!1,enumerable:!0,get:r})},t.n=function(e){var n=e&&e.__esModule?function(){return e.default}:function(){return e};return t.d(n,"a",n),n},t.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},t.p="",t(t.s=4)}([function(e,t,n){"use strict";n.d(t,"b",(function(){return o})),n.d(t,"c",(function(){return s}));var r=n(1),i=n(7);n.d(t,"a",(function(){return i.a})),n.d(t,"d",(function(){return r.b}));var o=r.a.FACING_MODES,s=r.a.IMAGE_TYPES},function(e,t,n){"use strict";var r=n(6);n.d(t,"a",(function(){return r.a}));var i=n(2);n.d(t,"b",(function(){return i.a}))},function(e,t,n){"use strict";function r(e,t){if(!(t>=0&&t<=1))throw new Error(t+" is invalid imageCompression, choose between: [0, 1]");if(!h.f.includes(e))throw new Error(e+" is invalid imageType, choose between: "+h.f.join(", "));return!0}function i(e,t){var n={};try{r(e,t),n.imageType=e,n.imageCompression=t}catch(e){console.error(e),console.error("default value of "+h.c.PNG+" is used"),n.imageType=h.c.PNG,n.imageCompression=null}return n}function o(){var e=window.navigator.platform,t=window.navigator.userAgent;return e||t}function s(){return"ontouchend"in document}function a(e,t,n){var r=e*parseFloat(n);return{imageWidth:r,imageHeight:t/(e/r)}}function l(e,t,n){return i(t,n).imageType===h.c.JPG?n?e.toDataURL(h.b[h.c.JPG],n):e.toDataURL(h.b[h.c.JPG]):e.toDataURL(h.b[t])}function c(e,t){return e||t}function u(){var e=o();if(/iPad|iPhone|iPod/.test(e))return!0;var t=s();return!(!/Mac/.test(e)||!t)}function d(){return{userAgent:window.navigator.userAgent,platform:window.navigator.platform,_getStringWithPlatform:o(),_getHasTouchEvents:s(),getIsIOS:u()}}t.c=a,t.b=l,t.e=c,t.d=u,t.a=d;var h=n(3)},function(e,t,n){"use strict";function r(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}n.d(t,"e",(function(){return o})),n.d(t,"a",(function(){return s})),n.d(t,"f",(function(){return a})),n.d(t,"c",(function(){return l})),n.d(t,"b",(function(){return c})),n.d(t,"d",(function(){return u}));var i,o=["user","environment"],s={USER:"user",ENVIRONMENT:"environment"},a=["jpg","png"],l={PNG:"png",JPG:"jpg"},c=(r(i={},"jpg","image/jpeg"),r(i,"png","image/png"),i),u={audio:!1,video:!0}},function(e,t,n){e.exports=n(5)},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(0);n.d(t,"FACING_MODES",(function(){return r.b})),n.d(t,"IMAGE_TYPES",(function(){return r.c})),n.d(t,"_getDebugPlatformInfo",(function(){return r.d}));var i=n(9);n.d(t,"downloadPhoto",(function(){return i.a})),t.default=r.a},function(e,t,n){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}n.d(t,"a",(function(){return a}));var i=n(2),o=n(3),s=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),a=function(){function e(){r(this,e)}return s(e,null,[{key:"getDataUri",value:function(e,t){var n=t.sizeFactor,r=t.imageType,o=t.imageCompression,s=t.isImageMirror,a=e.videoWidth,l=e.videoHeight,c=Object(i.c)(a,l,n),u=c.imageWidth,d=c.imageHeight,h=document.createElement("canvas");h.width=u,h.height=d;var p=h.getContext("2d");return s&&p.setTransform(-1,0,0,1,h.width,0),p.drawImage(e,0,0,u,d),Object(i.b)(h,r,o)}},{key:"getWindowURL",value:function(){return window.URL||window.webkitURL||window.mozURL||window.msURL}},{key:"getNavigatorMediaDevices",value:function(){var e=null,t=!(!navigator.mediaDevices||!navigator.mediaDevices.getUserMedia),n=!(!navigator.mozGetUserMedia&&!navigator.webkitGetUserMedia);if(t)e=navigator.mediaDevices;else if(n){var r=navigator.mozGetUserMedia||navigator.webkitGetUserMedia,i={getUserMedia:function(e){return new Promise((function(t,n){r.call(navigator,e,t,n)}))}};e=Object.assign(r,i)}return e}},{key:"isSupportedFacingMode",value:function(){return e.getNavigatorMediaDevices().getSupportedConstraints().facingMode}},{key:"getIdealConstraints",value:function(t,n){if(!Object(i.e)(t,n))return o.d;var r=e.getNavigatorMediaDevices().getSupportedConstraints();if(!r.width||!r.height)return console.error("Constraint width or height not supported! fallback to default resolution"),o.d;var s=void 0,a=void 0;return t&&(o.e.includes(t)?s=t:a={exact:t}),{audio:!1,video:{facingMode:s,deviceId:a,width:n&&n.width,height:n&&n.height}}}},{key:"getMaxResolutionConstraints",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",n=arguments[1];console.warn("getMaxResolutionConstraints() numberOfMaxResolutionTry:",n);var r=[{width:{min:640}},{width:{min:800}},{width:{min:900}},{width:{min:1024}},{width:{min:1080}},{width:{min:1280}},{width:{min:1920}},{width:{min:2560}},{width:{min:3840}}],o=e.getIdealConstraints(t,{});if(0===n)return Object(i.d)()?(console.warn("fallback to iOS constraints"),e.getIdealConstraints(t,{width:{min:640,ideal:3840},height:{min:480,ideal:2160}})):(o.video.advanced=r,o);if(n<r.length){var s=r.slice(0,-n);return o.video.advanced=s,o}return null}},{key:"FACING_MODES",get:function(){return o.a}},{key:"IMAGE_TYPES",get:function(){return o.c}}]),e}()},function(e,t,n){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}n.d(t,"a",(function(){return l}));var i=n(1),o=n(8),s=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),a=i.a.IMAGE_TYPES.PNG,l=function(){function e(t){r(this,e),this.videoElement=t,this.stream=null,this.numberOfMaxResolutionTry=0,this.settings=null,this.cameras=[],this.windowURL=i.a.getWindowURL(),this.mediaDevices=i.a.getNavigatorMediaDevices()}return s(e,[{key:"_getStreamDevice",value:function(e,t){var n=this;return new Promise((function(r,o){var s=i.a.getIdealConstraints(e,t);n.mediaDevices.getUserMedia(s).then((function(e){n._gotStream(e),r(e)})).catch((function(e){o(e)}))}))}},{key:"_getStreamDeviceMaxResolution",value:function(e){var t=this,n=i.a.getMaxResolutionConstraints(e,this.numberOfMaxResolutionTry);if(null==n){var r={};return this._getStreamDevice(e,r)}return new Promise((function(r,i){t.mediaDevices.getUserMedia(n).then((function(e){t._gotStream(e),r(e)})).catch((function(n){setTimeout((function(){t.numberOfMaxResolutionTry+=1,t._getStreamDeviceMaxResolution(e).catch((function(){i(n)}))}),20)}))}))}},{key:"_setVideoSrc",value:function(e){if("srcObject"in this.videoElement)this.videoElement.srcObject=e;else{var t=this.windowURL.createObjectURL(e);this.videoElement.src=t}}},{key:"_setSettings",value:function(e){this.settings=null;var t=e&&e.getTracks?e.getTracks():[];t.length>0&&t[0].getSettings&&(this.settings=t[0].getSettings())}},{key:"_enumerateCamerasPromise",value:function(){var e=this;return new Promise((function(t,n){var r=[];e.mediaDevices.enumerateDevices().then((function(e){e.forEach((function(e){"videoinput"===e.kind&&e.deviceId&&r.push(e)})),t(r)})).catch((function(e){n(e)}))}))}},{key:"_gotStream",value:function(e){this.stream=e,this._setSettings(e),this._setVideoSrc(e)}},{key:"getCameraSettings",value:function(){return this.settings}},{key:"enumerateCameras",value:function(){var e=this;return this.stream?this._enumerateCamerasPromise():this.stopCamera().then((function(){})).catch((function(){})).then((function(){var t={video:!0};return e.mediaDevices.getUserMedia(t).then((function(e){setTimeout((function(){e.getTracks().forEach((function(e){e.stop()}))}),20)})).then((function(){})).catch((function(){})).then((function(){return e._enumerateCamerasPromise()}))}))}},{key:"startCamera",value:function(e,t){var n=this;return this.stopCamera().then((function(){})).catch((function(){})).then((function(){return n._getStreamDevice(e,t)}))}},{key:"startCameraMaxResolution",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return this.numberOfMaxResolutionTry=0,this.stopCamera().then((function(){})).catch((function(){})).then((function(){return e._getStreamDeviceMaxResolution(t)}))}},{key:"getDataUri",value:function(e){var t={sizeFactor:void 0===e.sizeFactor?o.c:e.sizeFactor,imageType:void 0===e.imageType?a:e.imageType,imageCompression:void 0===e.imageCompression?o.a:e.imageCompression,isImageMirror:void 0===e.isImageMirror?o.b:e.isImageMirror};return i.a.getDataUri(this.videoElement,t)}},{key:"stopCamera",value:function(){var e=this;return new Promise((function(t,n){e.stream&&(e.stream.getTracks().forEach((function(e){e.stop()})),e.videoElement.src="",e.stream=null,e._setSettings(null),t()),n(Error("no stream to stop!"))}))}}]),e}()},function(e,t,n){"use strict";n.d(t,"c",(function(){return r})),n.d(t,"a",(function(){return i})),n.d(t,"b",(function(){return o}));var r=1,i=null,o=!1},function(e,t,n){"use strict";var r=n(10);n.d(t,"a",(function(){return r.a}))},function(e,t,n){"use strict";function r(e){for(var t=atob(e.split(",")[1]),n=e.split(",")[0].split(":")[1].split(";")[0],r=new ArrayBuffer(t.length),i=new Uint8Array(r),o=0;o<t.length;o++)i[o]=t.charCodeAt(o);return new Blob([r],{type:n})}function i(e,t){return(e+="").length>=t?e:new Array(t-e.length+1).join("0")+e}function o(e){var t=c.c.PNG;return"image/jpeg"===e&&(t=c.c.JPG),t}function s(e,t,n){return e+"-"+i(t,4)+"."+o(n)}function a(e,t,n){window.URL=window.webkitURL||window.URL;var r=document.createElement("a");r.download=s(t,n,e.type),r.href=window.URL.createObjectURL(e);var i=document.createEvent("MouseEvents");i.initMouseEvent("click",!0,!0,window,1,0,0,0,0,!1,!1,!1,!1,0,null),r.dispatchEvent(i)}function l(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"photo",n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;a(r(e),t,n)}t.a=l;var c=n(0)}])}))},function(e,t,n){e.exports=n(4)},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(5);n.d(t,"Camera",(function(){return r.c})),n.d(t,"FACING_MODES",(function(){return r.a})),n.d(t,"IMAGE_TYPES",(function(){return r.b})),t.default=r.c},function(e,t,n){"use strict";var r=n(6);n.d(t,"a",(function(){return r.a})),n.d(t,"b",(function(){return r.b})),t.c=r.c},function(e,t,n){"use strict";function r(e){function t(){m&&clearTimeout(m)}function n(){return void 0!==e.isImageMirror?e.isImageMirror:e.idealFacingMode===l.FACING_MODES.USER}function r(){var r={sizeFactor:e.sizeFactor,imageType:e.imageType,imageCompression:e.imageCompression,isImageMirror:n()},i=T(r);e.isSilentMode||Object(p.c)(),"function"===typeof e.onTakePhoto&&e.onTakePhoto(i),y(i),x(!1),t(),m=setTimeout((function(){x(!0),"function"===typeof e.onTakePhotoAnimationDone&&e.onTakePhotoAnimationDone(i)}),900)}var s=Object(i.useState)(""),a=g(s,2),f=a[0],y=a[1],v=Object(i.useState)(!0),_=g(v,2),b=_[0],x=_[1],S=Object(i.useState)(""),w=g(S,2),E=w[0],P=w[1],C=Object(i.useRef)(null),A=Object(c.a)(C,e.idealFacingMode,e.idealResolution,e.isMaxResolution),k=g(A,4),j=k[0],I=k[1],G=k[2],T=k[3];Object(i.useEffect)((function(){j?"function"===typeof e.onCameraStart&&e.onCameraStart(j):"function"===typeof e.onCameraStop&&e.onCameraStop()}),[j]),Object(i.useEffect)((function(){I&&(P(I.name+" "+I.message),"function"===typeof e.onCameraError&&e.onCameraError(I))}),[I]),Object(i.useEffect)((function(){G&&Object(p.d)(G.message)}),[G]);var M=Object(p.b)(b,n()),O=Object(p.a)(!b),R=e.isFullscreen?"react-html5-camera-photo-fullscreen":"";return o.a.createElement("div",{className:"react-html5-camera-photo "+R},o.a.createElement(h.a,{cssClass:"display-error",isDisplayError:e.isDisplayStartCameraError,errorMsg:E}),o.a.createElement(d.a,{isShowWhiteFlash:!b}),o.a.createElement("img",{style:O,alt:"camera",src:f}),o.a.createElement("video",{style:M,ref:C,autoPlay:!0,muted:!0,playsInline:!0}),o.a.createElement(u.a,{isClicked:!b,onClick:r}))}var i=n(0),o=n.n(i),s=n(1),a=n.n(s),l=n(2),c=(n.n(l),n(9)),u=n(13),d=n(15),h=n(17),p=n(19),f=n(21);n.n(f),n.o(l,"FACING_MODES")&&n.d(t,"a",(function(){return l.FACING_MODES})),n.o(l,"IMAGE_TYPES")&&n.d(t,"b",(function(){return l.IMAGE_TYPES}));var g=function(){function e(e,t){var n=[],r=!0,i=!1,o=void 0;try{for(var s,a=e[Symbol.iterator]();!(r=(s=a.next()).done)&&(n.push(s.value),!t||n.length!==t);r=!0);}catch(e){i=!0,o=e}finally{try{!r&&a.return&&a.return()}finally{if(i)throw o}}return n}return function(t,n){if(Array.isArray(t))return t;if(Symbol.iterator in Object(t))return e(t,n);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),m=null;t.c=r,r.propTypes={onTakePhoto:a.a.func,onTakePhotoAnimationDone:a.a.func,onCameraError:a.a.func,idealFacingMode:a.a.string,idealResolution:a.a.object,imageType:a.a.string,isImageMirror:a.a.bool,isSilentMode:a.a.bool,isDisplayStartCameraError:a.a.bool,imageCompression:a.a.number,isMaxResolution:a.a.bool,isFullscreen:a.a.bool,sizeFactor:a.a.number,onCameraStart:a.a.func,onCameraStop:a.a.func},r.defaultProps={isDisplayStartCameraError:!0}},function(e,t,n){"use strict";function r(){}function i(){}var o=n(8);i.resetWarningCache=r,e.exports=function(){function e(e,t,n,r,i,s){if(s!==o){var a=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw a.name="Invariant Violation",a}}function t(){return e}e.isRequired=e;var n={array:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:i,resetWarningCache:r};return n.PropTypes=n,n}},function(e,t,n){"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},function(e,t,n){"use strict";function r(e){return function(){var t=e.apply(this,arguments);return new Promise((function(e,n){function r(i,o){try{var s=t[i](o),a=s.value}catch(e){return void n(e)}if(!s.done)return Promise.resolve(a).then((function(e){r("next",e)}),(function(e){r("throw",e)}));e(a)}return r("next")}))}}function i(e,t,n,i){function o(e){return d.getDataUri(e)}var l=Object(a.useState)(null),p=u(l,2),f=p[0],g=p[1],m=Object(a.useState)(null),y=u(m,2),v=y[0],_=y[1],b=Object(a.useState)(null),x=u(b,2),S=x[0],w=x[1];return Object(a.useEffect)((function(){e&&e.current&&(d=new c.a(e.current))}),[e]),Object(a.useEffect)((function(){var o=function(){var o=r(s.a.mark((function r(){var o;return s.a.wrap((function(r){for(;;)switch(r.prev=r.next){case 0:if(h=!0,r.prev=1,o=null,!i){r.next=9;break}return r.next=6,d.startCameraMaxResolution(t);case 6:o=r.sent,r.next=12;break;case 9:return r.next=11,d.startCamera(t,n);case 11:o=r.sent;case 12:if(!e||!e.current){r.next=17;break}g(o),_(null),r.next=19;break;case 17:return r.next=19,d.stopCamera();case 19:r.next=24;break;case 21:r.prev=21,r.t0=r.catch(1),e&&e.current&&_(r.t0);case 24:case"end":return r.stop()}}),r,this,[[1,21]])})));return function(){return o.apply(this,arguments)}}();if(f)return function(){function t(){return n.apply(this,arguments)}var n=r(s.a.mark((function t(){return s.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(t.prev=0,!h){t.next=5;break}return h=!1,t.next=5,d.stopCamera();case 5:e&&e.current&&(g(null),w(null)),t.next=11;break;case 8:t.prev=8,t.t0=t.catch(0),w(t.t0);case 11:case"end":return t.stop()}}),t,this,[[0,8]])})));return t}();o()}),[e,f,t,n,i]),[f,v,S,o]}t.a=i;var o=n(10),s=n.n(o),a=n(0),l=(n.n(a),n(2)),c=n.n(l),u=function(){function e(e,t){var n=[],r=!0,i=!1,o=void 0;try{for(var s,a=e[Symbol.iterator]();!(r=(s=a.next()).done)&&(n.push(s.value),!t||n.length!==t);r=!0);}catch(e){i=!0,o=e}finally{try{!r&&a.return&&a.return()}finally{if(i)throw o}}return n}return function(t,n){if(Array.isArray(t))return t;if(Symbol.iterator in Object(t))return e(t,n);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),d=null,h=!1},function(e,t,n){e.exports=n(11)},function(e,t,n){var r=function(){return this}()||Function("return this")(),i=r.regeneratorRuntime&&Object.getOwnPropertyNames(r).indexOf("regeneratorRuntime")>=0,o=i&&r.regeneratorRuntime;if(r.regeneratorRuntime=void 0,e.exports=n(12),i)r.regeneratorRuntime=o;else try{delete r.regeneratorRuntime}catch(e){r.regeneratorRuntime=void 0}},function(e,t){!function(t){"use strict";function n(e,t,n,r){var o=t&&t.prototype instanceof i?t:i,s=Object.create(o.prototype),a=new p(r||[]);return s._invoke=c(e,n,a),s}function r(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(e){return{type:"throw",arg:e}}}function i(){}function o(){}function s(){}function a(e){["next","throw","return"].forEach((function(t){e[t]=function(e){return this._invoke(t,e)}}))}function l(e){function t(n,i,o,s){var a=r(e[n],e,i);if("throw"!==a.type){var l=a.arg,c=l.value;return c&&"object"===typeof c&&v.call(c,"__await")?Promise.resolve(c.__await).then((function(e){t("next",e,o,s)}),(function(e){t("throw",e,o,s)})):Promise.resolve(c).then((function(e){l.value=e,o(l)}),s)}s(a.arg)}function n(e,n){function r(){return new Promise((function(r,i){t(e,n,r,i)}))}return i=i?i.then(r,r):r()}var i;this._invoke=n}function c(e,t,n){var i=P;return function(o,s){if(i===A)throw new Error("Generator is already running");if(i===k){if("throw"===o)throw s;return g()}for(n.method=o,n.arg=s;;){var a=n.delegate;if(a){var l=u(a,n);if(l){if(l===j)continue;return l}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(i===P)throw i=k,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);i=A;var c=r(e,t,n);if("normal"===c.type){if(i=n.done?k:C,c.arg===j)continue;return{value:c.arg,done:n.done}}"throw"===c.type&&(i=k,n.method="throw",n.arg=c.arg)}}}function u(e,t){var n=e.iterator[t.method];if(n===m){if(t.delegate=null,"throw"===t.method){if(e.iterator.return&&(t.method="return",t.arg=m,u(e,t),"throw"===t.method))return j;t.method="throw",t.arg=new TypeError("The iterator does not provide a 'throw' method")}return j}var i=r(n,e.iterator,t.arg);if("throw"===i.type)return t.method="throw",t.arg=i.arg,t.delegate=null,j;var o=i.arg;return o?o.done?(t[e.resultName]=o.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=m),t.delegate=null,j):o:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,j)}function d(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function h(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function p(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(d,this),this.reset(!0)}function f(e){if(e){var t=e[b];if(t)return t.call(e);if("function"===typeof e.next)return e;if(!isNaN(e.length)){var n=-1,r=function t(){for(;++n<e.length;)if(v.call(e,n))return t.value=e[n],t.done=!1,t;return t.value=m,t.done=!0,t};return r.next=r}}return{next:g}}function g(){return{value:m,done:!0}}var m,y=Object.prototype,v=y.hasOwnProperty,_="function"===typeof Symbol?Symbol:{},b=_.iterator||"@@iterator",x=_.asyncIterator||"@@asyncIterator",S=_.toStringTag||"@@toStringTag",w="object"===typeof e,E=t.regeneratorRuntime;if(E)w&&(e.exports=E);else{(E=t.regeneratorRuntime=w?e.exports:{}).wrap=n;var P="suspendedStart",C="suspendedYield",A="executing",k="completed",j={},I={};I[b]=function(){return this};var G=Object.getPrototypeOf,T=G&&G(G(f([])));T&&T!==y&&v.call(T,b)&&(I=T);var M=s.prototype=i.prototype=Object.create(I);o.prototype=M.constructor=s,s.constructor=o,s[S]=o.displayName="GeneratorFunction",E.isGeneratorFunction=function(e){var t="function"===typeof e&&e.constructor;return!!t&&(t===o||"GeneratorFunction"===(t.displayName||t.name))},E.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,s):(e.__proto__=s,S in e||(e[S]="GeneratorFunction")),e.prototype=Object.create(M),e},E.awrap=function(e){return{__await:e}},a(l.prototype),l.prototype[x]=function(){return this},E.AsyncIterator=l,E.async=function(e,t,r,i){var o=new l(n(e,t,r,i));return E.isGeneratorFunction(t)?o:o.next().then((function(e){return e.done?e.value:o.next()}))},a(M),M[S]="Generator",M[b]=function(){return this},M.toString=function(){return"[object Generator]"},E.keys=function(e){var t=[];for(var n in e)t.push(n);return t.reverse(),function n(){for(;t.length;){var r=t.pop();if(r in e)return n.value=r,n.done=!1,n}return n.done=!0,n}},E.values=f,p.prototype={constructor:p,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=m,this.done=!1,this.delegate=null,this.method="next",this.arg=m,this.tryEntries.forEach(h),!e)for(var t in this)"t"===t.charAt(0)&&v.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=m)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){function t(t,r){return o.type="throw",o.arg=e,n.next=t,r&&(n.method="next",n.arg=m),!!r}if(this.done)throw e;for(var n=this,r=this.tryEntries.length-1;r>=0;--r){var i=this.tryEntries[r],o=i.completion;if("root"===i.tryLoc)return t("end");if(i.tryLoc<=this.prev){var s=v.call(i,"catchLoc"),a=v.call(i,"finallyLoc");if(s&&a){if(this.prev<i.catchLoc)return t(i.catchLoc,!0);if(this.prev<i.finallyLoc)return t(i.finallyLoc)}else if(s){if(this.prev<i.catchLoc)return t(i.catchLoc,!0)}else{if(!a)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return t(i.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var r=this.tryEntries[n];if(r.tryLoc<=this.prev&&v.call(r,"finallyLoc")&&this.prev<r.finallyLoc){var i=r;break}}i&&("break"===e||"continue"===e)&&i.tryLoc<=t&&t<=i.finallyLoc&&(i=null);var o=i?i.completion:{};return o.type=e,o.arg=t,i?(this.method="next",this.next=i.finallyLoc,j):this.complete(o)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),j},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),h(n),j}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var i=r.arg;h(n)}return i}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,n){return this.delegate={iterator:f(e),resultName:t,nextLoc:n},"next"===this.method&&(this.arg=m),j}}}}(function(){return this}()||Function("return this")())},function(e,t,n){"use strict";var r=n(0),i=n.n(r),o=n(1),s=n.n(o),a=n(14),l=(n.n(a),function(e){var t=e.onClick,n=e.isClicked,r=n?"is-clicked":"";return i.a.createElement("div",{id:"container-circles"},i.a.createElement("div",{id:"outer-circle",onClick:function(e){n||t()}},i.a.createElement("div",{id:"inner-circle",className:r})))});l.propTypes={onClick:s.a.func.isRequired,isClicked:s.a.bool.isRequired},t.a=l},function(e,t){},function(e,t,n){"use strict";var r=n(0),i=n.n(r),o=n(1),s=n.n(o),a=n(16),l=(n.n(a),function(e){var t=(e.isShowWhiteFlash?"do-transition":"")+" normal";return i.a.createElement("div",{id:"white-flash",className:t})});l.propTypes={isShowWhiteFlash:s.a.bool.isRequired},t.a=l},function(e,t){},function(e,t,n){"use strict";function r(e,t){return e&&t&&t.length>0}var i=n(0),o=n.n(i),s=n(1),a=n.n(s),l=n(18),c=(n.n(l),function(e){var t=e.isDisplayError,n=e.errorMsg,i=e.cssClass;return r(t,n)?(console.log("cssClass",i),o.a.createElement("div",{className:i,id:"display-error"},o.a.createElement("h1",null,"Camera error: ",n))):null});c.propTypes={isDisplayError:a.a.bool,errorMsg:a.a.string,cssClass:a.a.string},t.a=c},function(e,t){},function(e,t,n){"use strict";function r(e){return e?{display:"inline-block"}:{display:"none"}}function i(e){return e?{transform:"rotateY(180deg)"}:{transform:"none"}}function o(e,t){return Object.assign({},i(t),r(e))}function s(){new Audio("data:audio/mp3;base64,"+c.a.base64).play()}function a(e){console.info("react-html5-camera-photo info:",e)}t.a=r,t.b=o,t.c=s,t.d=a;var l=n(20),c=n.n(l)},function(e,t){e.exports={base64:"SUQzBAAAAAAASVRQRTEAAAAcAAADU291bmRKYXkuY29tIFNvdW5kIEVmZmVjdHMAVFNTRQAAAA8AAANMYXZmNTcuNzIuMTAxAAAAAAAAAAAAAAD/+1QAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABJbmZvAAAADwAAAB0AACxAAA0NDRUVFR4eHh4nJycvLy8vODg4QUFBQUlJSVJSUlJbW1tjY2NsbGxsdXV1fX19fYaGho+Pj4+Xl5egoKCgqampsbGxurq6usPDw8vLy8vU1NTd3d3d5eXl7u7u7vf39////wAAAABMYXZjNTcuOTMAAAAAAAAAAAAAAAAkAkAAAAAAAAAsQC+b5ZH/+5RkAA/wAABpAAAACAAADSAAAAEAAAGkAAAAIAAANIAAAAR4RBEitS0FLUmhcO1TSK1JoJrUtC4dpmkUlLQTQUtC4dpqkUkVoJoJpxcO01KKSK1JoJoRcO01i0kUlLGJkCdw7Skpaho4aHGJkCZkO0pIrDBxw0OGHoEzD3aUkVhg4wMHDD0E4tjjUkUgw8YPDhloJxbSaSRSGhxg8YpaCcW00kRSRWpNBOxZ/1VVFlv/9LLLqu//VVVUW//WWWWXd/6VVVVd/+qsssGH/ZZZVVUDt+1VVlli1dIxZZVUDI0RhaqqyzX9GLLLKq/+QtVVGgCAACMZAAY0NkBDHeIlc0SIVc0Kpu8Sudc0SucfQq+iRCd4hOlc0SubvEJ3NHiE76FErnCr13iE74d4hO8Q0SuaJUSuaJXKvEJ330Su8Q0KuaFUJ3iVzcWaJQ7wWYBHSMAgAD4xjjeYxjZ35znnO/zkJOfqQhKnO6B88jTnnOd0IRjhwUZTnO85///znkD/+5Rkrg7gAABpAAAACAAADSAAAAEQ2Y50IITAARuAEEgQjXnhDgIHCKc53IHxdyEbnOehCEkJ+pCelSMp4gHBRQ4HG5CSE8hJCN/U7oIBwONJAAAAABzNHNlZ0RgQYz9Z7iGTHEB/80BaFYCuiQxoNtAsgAYQaVXEGCOw1eAQwscAnqCA4wbgC2AfcLWgsjQU2SxNkDIOQcAICYDsC/QfJunpFwYwiBPhc4QIMLhqQFyQQMafSYToaBt4ucd4uQQUAgwyMNQQuQItic+ghuLAQdlkELTqJsxICMaQ4UERZT0KbbSURTRUOZYcwcwY5MiwoENUDJjGFslwwOn609SlqYXIK0HgXO8XPcbKThcIPIuUVoQiSyXYhB9OtX////+MF0v////zWIAICAEKgAB/mXJmPHgWEBgPOgZOlaYsIFBP+AQ4QLHrqkMPcPAKKBZ7ZFyAhl8AcIGyALmsoLqwDiCwCxhv4aX8i47Q9MOXKIXAEgKFDAxNenFnkHFkEQb/+5RE9QADBV+6LQRgAltMZtWglABa0gEKuaiAC3vAoeM1MAAWYQILzHIICTw5nW7RcBUEpjnkHEoDmA3lH0Xw/cQVFJCxdNqCh2E2Xy+dJs3JsiossdgrUcoTkRIc5t++OWO8ToPJNi5D0XIXSYEJxaidDVAy5PlocIZPW62fVpyLigBQBAHrIuVrJOFrg5pLCcSAkokPocwjSNHPHN0//////////+QhCj7qaGYVYmpqaAAAGq7AwgBlh8VBaQtGWez8jOC40Cs8QWdoEoqxgWS1OGgVhKDhH+mSYIkesyxKFQLAOJPHUkiRlkHQGoXY9YwWxnKGEht1WcAxxbxjowl8ZZOpjMoTFYLhMp1UWNzTcRKlEThVyzRJ9C5JpucTzZNnKasIvafZ4+7b8Nv83+Mazrf1JvUKBJrxNz2pLmfWWKB/Cz8x/7RM5/1Ce/+L76+P5VVv//Of/6N7Pce0F4fxJEPU6bWE3FR6oN5kpCbjkeTdixgeMWuvWJWbPnn/+5RkagAFn1nIzmXgAoEqWPDHsABTQW8/uPeACTkOaPcYsABbsyzEjbu+fchSvlqOGJ9HCWDt1LSxKyl8Ukl5ZzCMTzuj69ziub5eq/GI1/jU05e/Vyef+sLP2UOTjPezyH/2pWN3Kd+UX7tbbLmTSNimTrrEzKqWI82ZXEVz/f+APYQWsTYAFgsDYkDgbEotLbToGU/zJZiBhooccZojHRxKjGTDmIYgELVTQ6I2QqDhXYc7gxAUg/WKLpvmqB/Aa3CjVqNWDqJq6FkPVCvUdaazrdNQLVgv4+X93OD48uq7h+33naGTRWem5b5x8/PzbP34OY+8UeZuq839/vV6xL5/9b/XgaviJ9X39eff////zE3/////R5XdMx9Zlv5kMT+fb+7lKgBsvQwB1JIZFR4wVnWT2FlJ/9ydOZTEtzzjSMAwIrF0HW4nk9iLot6Z7fXzZ9ce865weBD+l9AJVqCZJWiEQsTcMVtf+2qtxuAtqJsBk0mAUCkVg8GmyjH/+5RkCQADSzRfbjFgBDyCa4/GlACMzGFh/PMACSAXa/+SUACjoDx0SmqACERx/bjtG4yJBsfEURAKyS7HTNFQ7ithQtedceTij5ucmkWN8luex6UdfP/y85Ma9PZExfX7fX5N6mDZIDUU5B4GFjoqoho+gmvcXDwfOFEQBAJAImIAIgAEBgoCAACgBWBb6r87R1ptBJTt9CIxPHoSUlxjgK9m/SEj3c159dg8LocfP5dBMH0/+r8bNvCqREJgBAo3AsBPzmJsdpUPjpXS9g9FMzKZrbNwgKTOuEDqnHmTRomLkbR2pd3RDi2Tznwzv//7otGijIoTEh2G3Q46FAgGDpWjmXd5f7f/7jYhgVdpAWecCrcCQt2IrHuQFiFFHxnaDIwAAJAFyyJGMwQlgONtlkI6kliXEWGr3/aI4kBnKOqNM539ilaUrLMZH/lUzP+ubGjlo8qZtgiBDTywUCohJd1f/r7rKml6giMBAAJEqYxixGCLCoy4k/LilUWoA4T/+5RkDIIDKhvW+ekyIkcDiu8kYoQMtHVX56UMiSmMKrj0jJnnxKuJignB5BdoZW+9uSWOWnCfrsssUm7dsQBie/NwY8W5Mcwd2coQYLGa4lTralcVA1UmoIyYTV/+2yAhmrb2/n/usGNZ7WlQTff6IlqcUUhEAJEqA8DKDVVREeIr8esjOrIUkuirufCdazjA811RD9N4LbvbaQCrw4dHvhMDz5A2w6KgoASjBS/Z+oFXtQIWF1JaIlkIxIAVMLauzmL6Rl2Q88yap03k8jXbwTjyBATEib0nyZFm3bJLlisBM01260qLqxtjRyN3m+oeF0gaslaUUUQ+FPb3T5AmE9qgnWRkokRC7/ODQPHdJPvq//9E2/SxEVK8v8htbsiCAAAgWWvTAjwQFpoiNLhYgE54RXwYLM+nGalvD2YxIJBjCwcqYng0c1/O3ts1SX8vgE9ZFUddfs8VPyCUwUA1wwzDBe2/+arbfpkEAAkBTABB0BwGgTAGdBCwAkBHJh7/+5RkDAADMxjUaYxJwkuiap8xIygM4G9Tp5kQmQkTrXzAmmOsHqFdAdFFCiEr5yxbLwZtWEEdVovOs23MAvAStVLKV8IXKgKrT8ncmLedi7bB/cA3VbAaKlqOq5/HaA4InbPz5nmuucADoe6xcBNt7tSPMuqIZAAAJBShDfodhw8JW8ZZJHhUwH3Fw7/DalLuM1CoAAQXCh4QvMhMrHIu0JKhUHpigUiESAQcKQCBYuIlFAIIUGgiPNQr+3/qOciRRBARJTh8shKgNIuRVKUxSdti8UYsSmgfCmU53r4EGDk9h+UaQORLKigsxpCqsGqz2zQThjt29fjfjzCmksKQOfPf4ErnOwvcZIT9DQVP/9TFYZiYuyTT96/zSiWVZKgcauvX/Fd2hVVUNhuyQBJGdRxhU4uKqjyBE8rLjlmFbTMFLMEjhIDHv6NmRNmf/x/F/5cxOiRvEoLByWYmOhp3cSRgUq/7/qoYV0MBAAAAIAdHYSUB4FLQkP5cCxrCATz/+5RkDAADcxrQ+e8ackTCep8wwjpL4TlL56RsgQ2T6HjEiTjmdytbVp+p2hSvFX/J3siqX5Wp2r5mJhZB/SmifjK/QQ4ShGCxzKeZDGcp/kktH8kDWWOSZDARPRv7gK6He3vFplnf/ISQ4UblSirr/7W5uvEVbi7d/41VMOCGZhBRugHYuN2QEgAmo6plMR15BTDpS6GyW+h+zjhlE8LMf//ITt//LrTQsNbb/J9Zyp169ismbG93VWFmoE0ymLyzqiiAgAXG5uD/P1BnCX472hAoSyXQ5JvjJEp2tNIkZx/G6bBA1KGgQYzpIzGm5IWHFI3Mrnvebeakn//f8j/pWaH1rsSqWc2dp0jnbn3/7JmdV7+rm4jPHhXFE1r0tJiYoAAAAigB0SlA5VjmyuiQgE4EkySaHa9QarZQzE+i/c44HSRySJ4CDjRhoytL7p/+PEeSed2CYQgcEgTaIoDtrrpKeaNEABAKbd2LYYyuPAvgvmUzBhOEiQkCUASwM4n/+5RkDwACrRjR+eZCQEOC2f4x5jYL0TlD56RriN8N7HyXiJ54Gw8X6M1cW+MDfWrsKucJQ0gMq/komUNiAq4FSIwOpfEowi0zG6KleQCSwEHCweBskbbnvsRfcri9EggAAUkBeGC1nNGwSq4XGArmaGnlPGbIccshyzql3zEm2iXAZItfIUAwLCoVDYKxffIQWDp2wsVDAJDsKevOnvQcxkqRgBAKSS4GO+X2ZRCBlqF/QtpvneXKjA4qgriVakmnNLSUvMmiVGtept5SCQ5tDuocjzRsk/bPpezir/nVJu2kc4xlwvbaEtJd6zQ6R3eZfPv/ZJ9m7oiBSzn3SsPUuzAigOuJgJs0MnJOxdG1Hos5k5GjucbkewcqlX//d9egcowOwg72yIVFgeHHACCQIp/9PT01NnhGAQAAAknKA6Tbgw7HGWOAnUc4qlQxWxVTQozhF1NqtN4r5ZNzwrSNPp7VsAAhMNBEATOaL/+InKoczbIhOQm8yucxCbkEwBj/+5RkJQACy03O+eEWUj8Cqd0kI2JK7FM957BJCP8LZrDEjRj7MQQulP8iNv1ZQ4OWjvqHfxoAAAVtoBJyKgSboha50SOlHFNhEvo0yk1IDQILHJd8pzLwyCCFsP8b6IUbJYLXxxLBnDxp1STleWZlv/9Kz3aKJGABkluAYT6bKlJ0SsMEFQhDZNG46mJhXjMyWnaEijV2W3UQQjhJ2y0PbgCxKEv/f+ooiGu9UlKa1tKv4sNhxYveU5D+e9J/2/3u9i4YA5osaQqZV7oIAAVOEC1I9By09EwqKkMtLA2RufTbvi1rZ3AWUsGCwYCCGdpMJPBVQLQqxvFCAWEaRqjziYSr/tU5CgK2lSZ5l0MQIByXbAOUTklQFwOgfB8rh4B4jOlhhg7ZuucQTkGoy6+ZAqKKQ6gWMbPkZmZ9al/+kwJlkVSkI3uaVC2PdDdkO2QyMxaaVttL+yKt1NKxBTFCCAVrowyW2stA1KFv0hbLb65ETygHpTFEK1a04Ng4gIb/+5RkOwAC0k7O+YMUUj6BiiwFgg3KmJ8zphhtQRKNZGBmJRA3zVydPlFXGVS////puxqodg5reZNm7/MndWf/JPWm/zFfXM98bBIBmkEAqijiJIAzdzxAOh6LS9CEgB3NmijZQuE95VFuWutlsK2FVMstBJuVY76LLWembjBBYkSAGFCwCSE1Ppa8UNIPf/rQVegNg4JAcJFg6bBbQAIAMCuSFKdNYIqoIFhkZHZCSAvBs6hSPpInc9z4qA4OHAHPHf+l0aFJ/6EAAV2ArBonPBCu1MQoShTe7XNf9XsZ9qpd+AAP+gZLrd1p3akdlU8FYXUqpYXEkAAVGvN3ewT7cvODAwWv/t31+k+EtuUdesnV7G0KUzixLoR06olmbZdiqiqzv7N7ttT6aftruhpizihYWJqUcutcZKiaIBXJKbYkBix6RiszxMK5sJ3Ztcpka/ndJlS85HzhllK4TzomBkODyvw6MKWqB1yAbBMTKNvY95k+RrRGFkLBABAgI4n/+5RkT4QSok5JyeYT4kUDee0Z40mKUJ8YyLypwOeOZChhDhBy6cO3WizCTU0ThVTKhLA6LJCj9VhvNbUxMr572iZ6pVQhrx7L5n3lEWWQSMJMsqkMdU/2ogTDpQ1LUgDmIw0+xSPp8q74NAETGx7fpCHkBgwgHtJJbfdIBQ2Ei9iiS4Fg8HgwECBAIpSoj4KVspVh+KNAkISWq9gdCp655vAt6qxRINC8/20T9M/zI5/3sr5eevDsXTYoZDpVDe4LaAc3X7C+k/mRXV/V5vK5X/MCgvHUGw6tbfym3UZ9VRnJVEgkcSR3dZmtOt37p7dv6f/T6V/5QuVKCHLFJbd+mxP/FHcjQI+/uXECJ7zhGKxohM9ZXlY1KlYdgNDNEOUMYLMaFMiPhVqvdmtZbF0KohuyOtfX+j/+n/xVc7/7fut6xwOQ9a6vx5ougb49A6BJJiQoymSK5RLTnwaC0KFVw9GzUl1d/2ZWq5kZlbpVkQ4EZ1WpHor+uT365V/7vT//+5Rkao9yt1FEAeY+EEBoWIAk4pQJATkOBZhRAQuSIZBzCXDoq+3/8Y3/2M/FBCAObWqHRAAtBiifAQCA1BRpVb52s2S5LI2Dq/8pdzkc9Eo10eK9QbhdwiNCt85vHP1ouZJ3FHtp77tE/0fZHon7N6oJwACADvQx9SohjjDiuogvjxhWFb55pURta2RhcxRyGZ73J0P0VvoiQ4ZlVaNv1djz1ZmtRGX9aKt2/33+1vszag1xXTcAbOWQBd6nCJkAAAwE50ngeCHKFx4NgkajxyDQGDg8gbAB82lgNsldzF0/I1VXDWjZv6losVd/pjqv+mkYxQAgLAqKmFTMqgPTSAlvGL6vsVEwoP4QoNGxYoxifXxK5OK3E9Raod2Xk6CZV263XWvqrscMz9Fa3b0ATfVXh3tQen8E8aMctpDNFg+tKkvaxhtKRI5UCFQOo+ei5Y3ApV5GBuyyL3V5hL1tIrGwRIlHhIqrvQBtZxSWLjrVaqwMSGQ1hqCNaJDGiFH/+5RkhwBSYU3DQUYS4DThKHsAIgQHeGkNgIhqgQQJ4NQAjCJAlFF/+Pt02b8lSSXzdgtLH4ihpv64/LHJp/ekvx66X+Hd5lMVFew/KbF2/CeuO7/xf903H92Cr0eRG0lKHlls5APGEG0b1MrTN/Pxtf92++3b1/ZC7yOuo1L/fUJr99PmOau1+DczWWohH8L0eh/nWTbo8/OvyZ/ccZuEf/+Rn/l/L/M//+ZEqKpH+ZFToqJ+iqi+i/yoi+ip9yhgYMh27OZUWpgoIEd1ITFaxUllRQWcDAaskNCYwCgJAlEQaBsJgsBQSlREGgbCYLBUBAUSiINB2dKnUZK3kSJ1948Y9LNCn/I9c763Wf1AVct8rUxBTUUzLjk5LjVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVX/+5REtg5yOQ+/ACAYIkLiWBAEIy5G6UjKQIBcAPWAH5ARjShVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVACCU025+ZGfywyOy3//ksyP+XMmstIyNWCggQNHI1ls////WWRyMmVgYME6GTLJZ///2WWxyNWWSoZGrWyzL/9WVqCBOhkyhgYMI6GrBQUqFpoVFP9bDILCzOLiv/rFRYk//qF+LCrDKm/4o2sVFtbP6hdmLCsyoXUxBTUUzLjk5LjVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVX/+5Rkjg/ygl8ruCAaQiiABWAAAAAAAAGkAAAAIAAANIAAAARVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVUxBTUUzLjk5LjVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVX/+5RkUY/wAABpAAAACAAADSAAAAEAAAGkAAAAIAAANIAAAARVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVUxBTUUzLjk5LjVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVX/+5RkUY/wAABpAAAACAAADSAAAAEAAAGkAAAAIAAANIAAAARVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVUxBTUUzLjk5LjVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVX/+5RkUY/wAABpAAAACAAADSAAAAEAAAGkAAAAIAAANIAAAARVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVUxBTUUzLjk5LjVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVX/+5RkUY/wAABpAAAACAAADSAAAAEAAAGkAAAAIAAANIAAAARVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVUxBTUUzLjk5LjVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVX/+5RkUY/wAABpAAAACAAADSAAAAEAAAGkAAAAIAAANIAAAARVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVUxBTUUzLjk5LjVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVX/+5RkUY/wAABpAAAACAAADSAAAAEAAAGkAAAAIAAANIAAAARVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVUxBTUUzLjk5LjVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVX/+5RkUY/wAABpAAAACAAADSAAAAEAAAGkAAAAIAAANIAAAARVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVUxBTUUzLjk5LjVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVX/+5RkUY/wAABpAAAACAAADSAAAAEAAAGkAAAAIAAANIAAAARVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVUxBTUUzLjk5LjVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVX/+5RkUY/wAABpAAAACAAADSAAAAEAAAGkAAAAIAAANIAAAARVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVUxBTUUzLjk5LjVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVX/+5RkUY/wAABpAAAACAAADSAAAAEAAAGkAAAAIAAANIAAAARVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVUxBTUUzLjk5LjVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVX/+5RkUY/wAABpAAAACAAADSAAAAEAAAGkAAAAIAAANIAAAARVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVUxBTUUzLjk5LjVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVX/+5RkUY/wAABpAAAACAAADSAAAAEAAAGkAAAAIAAANIAAAARVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVUxBTUUzLjk5LjVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVX/+5RkUY/wAABpAAAACAAADSAAAAEAAAGkAAAAIAAANIAAAARVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVU="}},function(e,t){}]))},78092:(e,t,n)=>{"use strict";var r,i=n(40308),o=(r=i)&&r.__esModule?r:{default:r};var s=function(e){var t,n=e.disabled,r=e.children;return n||"undefined"===typeof window||!window.location||"http:"!==window.location.protocol||("localhost"===(t=window.location.hostname)||"[::1]"===t||t.match(/^127(?:\.(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)){3}$/))?r:(window.location.href=window.location.href.replace(/^http(?!s)/,"https"),null)};s.propTypes={children:o.default.node,disabled:o.default.bool},t.c=s},63448:(e,t)=>{"use strict";var n,r=Symbol.for("react.element"),i=Symbol.for("react.portal"),o=Symbol.for("react.fragment"),s=Symbol.for("react.strict_mode"),a=Symbol.for("react.profiler"),l=Symbol.for("react.provider"),c=Symbol.for("react.context"),u=Symbol.for("react.server_context"),d=Symbol.for("react.forward_ref"),h=Symbol.for("react.suspense"),p=Symbol.for("react.suspense_list"),f=Symbol.for("react.memo"),g=Symbol.for("react.lazy"),m=Symbol.for("react.offscreen");function y(e){if("object"===typeof e&&null!==e){var t=e.$$typeof;switch(t){case r:switch(e=e.type){case o:case a:case s:case h:case p:return e;default:switch(e=e&&e.$$typeof){case u:case c:case d:case g:case f:case l:return e;default:return t}}case i:return t}}}n=Symbol.for("react.module.reference")},46240:(e,t,n)=>{"use strict";n(63448)},12180:(e,t,n)=>{"use strict";function r(){var e=this.constructor.getDerivedStateFromProps(this.props,this.state);null!==e&&void 0!==e&&this.setState(e)}function i(e){this.setState(function(t){var n=this.constructor.getDerivedStateFromProps(e,t);return null!==n&&void 0!==n?n:null}.bind(this))}function o(e,t){try{var n=this.props,r=this.state;this.props=e,this.state=t,this.__reactInternalSnapshotFlag=!0,this.__reactInternalSnapshot=this.getSnapshotBeforeUpdate(n,r)}finally{this.props=n,this.state=r}}function s(e){var t=e.prototype;if(!t||!t.isReactComponent)throw new Error("Can only polyfill class components");if("function"!==typeof e.getDerivedStateFromProps&&"function"!==typeof t.getSnapshotBeforeUpdate)return e;var n=null,s=null,a=null;if("function"===typeof t.componentWillMount?n="componentWillMount":"function"===typeof t.UNSAFE_componentWillMount&&(n="UNSAFE_componentWillMount"),"function"===typeof t.componentWillReceiveProps?s="componentWillReceiveProps":"function"===typeof t.UNSAFE_componentWillReceiveProps&&(s="UNSAFE_componentWillReceiveProps"),"function"===typeof t.componentWillUpdate?a="componentWillUpdate":"function"===typeof t.UNSAFE_componentWillUpdate&&(a="UNSAFE_componentWillUpdate"),null!==n||null!==s||null!==a){var l=e.displayName||e.name,c="function"===typeof e.getDerivedStateFromProps?"getDerivedStateFromProps()":"getSnapshotBeforeUpdate()";throw Error("Unsafe legacy lifecycles will not be called for components using new component APIs.\n\n"+l+" uses "+c+" but also contains the following legacy lifecycles:"+(null!==n?"\n  "+n:"")+(null!==s?"\n  "+s:"")+(null!==a?"\n  "+a:"")+"\n\nThe above lifecycles should be removed. Learn more about this warning here:\nhttps://fb.me/react-async-component-lifecycle-hooks")}if("function"===typeof e.getDerivedStateFromProps&&(t.componentWillMount=r,t.componentWillReceiveProps=i),"function"===typeof t.getSnapshotBeforeUpdate){if("function"!==typeof t.componentDidUpdate)throw new Error("Cannot polyfill getSnapshotBeforeUpdate() for components that do not define componentDidUpdate() on the prototype");t.componentWillUpdate=o;var u=t.componentDidUpdate;t.componentDidUpdate=function(e,t,n){var r=this.__reactInternalSnapshotFlag?this.__reactInternalSnapshot:n;u.call(this,e,t,r)}}return e}n.r(t),n.d(t,{polyfill:()=>s}),r.__suppressDeprecationWarning=!0,i.__suppressDeprecationWarning=!0,o.__suppressDeprecationWarning=!0},4948:(e,t,n)=>{"use strict";var r=n(22411),i=n(59848);t.c=void 0;var o=r(n(97936)),s=r(n(94064)),a=r(n(66024)),l=r(n(71559)),c=r(n(54216)),u=r(n(96284)),d=r(n(63532)),h=r(n(2676)),p=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!==i(e)&&"function"!==typeof e)return{default:e};var n=g(t);if(n&&n.has(e))return n.get(e);var r={},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var s in e)if("default"!==s&&Object.prototype.hasOwnProperty.call(e,s)){var a=o?Object.getOwnPropertyDescriptor(e,s):null;a&&(a.get||a.set)?Object.defineProperty(r,s,a):r[s]=e[s]}r.default=e,n&&n.set(e,r);return r}(n(99584)),f=r(n(40308));function g(e){if("function"!==typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(g=function(e){return e?n:t})(e)}function m(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function y(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?m(Object(n),!0).forEach((function(t){(0,h.default)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):m(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function v(e){var t=function(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=(0,d.default)(e);if(t){var i=(0,d.default)(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return(0,u.default)(this,n)}}var _=function(e){(0,c.default)(n,e);var t=v(n);function n(e){var r;return(0,s.default)(this,n),r=t.call(this,e),(0,h.default)((0,l.default)(r),"getNewPosition",(function(e,t,n){var i=[r.state.zoom,r.state.posX,r.state.posY],o=i[0],s=i[1],a=i[2];if(1===n)return[0,0];if(n>o){var l=r.ref.current.getBoundingClientRect(),c=l.width/2,u=l.height/2,d=n-o;return[s+(c-(e-l.left-window.pageXOffset))/o*d,a+(u-(t-l.top-window.pageYOffset))/o*d]}return[s*(n-1)/(o-1),a*(n-1)/(o-1)]})),(0,h.default)((0,l.default)(r),"getLimitedShift",(function(e,t,n,r,i){if(e>0){if(r>t)return 0;if(r+e>t)return t-r}else if(e<0){if(i<n)return 0;if(i+e<n)return n-i}return e})),(0,h.default)((0,l.default)(r),"getCursor",(function(e,t){return e&&t?"move":e?"ew-resize":t?"ns-resize":"auto"})),(0,h.default)((0,l.default)(r),"fullZoomInOnPosition",(function(e,t){var n=r.props.maxZoom,i=r.getNewPosition(e,t,n),s=(0,o.default)(i,2),a=s[0],l=s[1];r.setState({zoom:n,posX:a,posY:l,transitionDuration:r.props.animDuration})})),(0,h.default)((0,l.default)(r),"move",(function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;if(r.ref.current){var i=r.state,o=i.posX,s=i.posY,a=r.ref.current.getBoundingClientRect(),l=r.ref.current.parentNode.getBoundingClientRect(),c=a.width>l.right-l.left,u=e>0&&a.left-l.left<0,d=e<0&&a.right-l.right>0,h=c||u||d;h&&(o+=r.getLimitedShift(e,l.left,l.right,a.left,a.right));var p=a.height>l.bottom-l.top,f=t>0&&a.top-l.top<0,g=t<0&&a.bottom-l.bottom>0,m=p||f||g;m&&(s+=r.getLimitedShift(t,l.top,l.bottom,a.top,a.bottom));var y=r.getCursor(h,m);r.setState({posX:o,posY:s,cursor:y,transitionDuration:n})}})),(0,h.default)((0,l.default)(r),"startDeceleration",(function(e,t){var n=null;r.lastRequestAnimationId=requestAnimationFrame((function i(o){null===n&&(n=o);var s=o-n,a=(r.props.decelerationDuration-s)/r.props.decelerationDuration,l=e*a,c=t*a;s<r.props.decelerationDuration&&Math.max(Math.abs(l),Math.abs(c))>1?(r.move(l,c,0),r.lastRequestAnimationId=requestAnimationFrame(i)):r.lastRequestAnimationId=null}))})),(0,h.default)((0,l.default)(r),"handleMouseWheel",(function(e){if(e.preventDefault(),r.props.allowZoom){var t=r.props,n=t.minZoom,i=t.maxZoom,s=t.scrollVelocity,a=r.state,l=a.zoom,c=a.posX,u=a.posY,d=-e.deltaY*s/100;if((l=Math.max(Math.min(l+d,i),n))!==r.state.zoom)if(l!==n){var h=r.getNewPosition(e.pageX,e.pageY,l),p=(0,o.default)(h,2);c=p[0],u=p[1]}else{var f=[r.constructor.defaultState.posX,r.constructor.defaultState.posY];c=f[0],u=f[1]}r.setState({zoom:l,posX:c,posY:u,transitionDuration:.05})}})),(0,h.default)((0,l.default)(r),"handleDoubleClick",(function(e){e.preventDefault(),r.props.allowZoom&&(r.state.zoom===r.props.minZoom?r.fullZoomInOnPosition(e.pageX,e.pageY):r.reset())})),(0,h.default)((0,l.default)(r),"handleMouseStart",(function(e){e.preventDefault(),r.props.allowPan&&(r.lastRequestAnimationId&&cancelAnimationFrame(r.lastRequestAnimationId),r.lastCursor={posX:e.pageX,posY:e.pageY})})),(0,h.default)((0,l.default)(r),"handleMouseMove",(function(e){if(e.preventDefault(),r.props.allowPan&&r.lastCursor){var t=[e.pageX,e.pageY],n=t[0],i=t[1],o=n-r.lastCursor.posX,s=i-r.lastCursor.posY;r.move(o,s,0),r.lastCursor={posX:n,posY:i},r.lastShift={x:o,y:s}}})),(0,h.default)((0,l.default)(r),"handleMouseStop",(function(e){e.preventDefault(),r.lastShift&&(r.startDeceleration(r.lastShift.x,r.lastShift.y),r.lastShift=null),r.lastCursor=null,r.setState({cursor:"auto"})})),(0,h.default)((0,l.default)(r),"handleTouchStart",(function(e){var t=r.props,n=t.allowTouchEvents,i=t.allowZoom,o=t.allowPan,s=t.minZoom,a=r.isDoubleTapping(),l=e.touches.length>1;n||e.preventDefault(),r.lastRequestAnimationId&&cancelAnimationFrame(r.lastRequestAnimationId);var c=[e.touches[0].pageX,e.touches[0].pageY],u=c[0],d=c[1];l?r.lastTouch={posX:u,posY:d}:a&&i?r.state.zoom===s?r.fullZoomInOnPosition(u,d):r.reset():o&&(r.lastTouch={posX:u,posY:d})})),(0,h.default)((0,l.default)(r),"handleTouchMove",(function(e){if(r.props.allowTouchEvents||e.preventDefault(),r.lastTouch){var t=r.props,n=t.maxZoom,i=t.minZoom,s=r.state.zoom;if(1===e.touches.length){var a=[e.touches[0].pageX,e.touches[0].pageY],l=a[0],c=a[1],u=l-r.lastTouch.posX,d=c-r.lastTouch.posY;r.move(u,d),r.lastShift={x:u,y:d},r.lastTouch={posX:l,posY:c},r.lastTouchDistance=null}else if(e.touches.length>1){var h=[e.touches[0].pageX,e.touches[0].pageY],p=h[0],f=h[1],g=[e.touches[1].pageX,e.touches[1].pageY],m=g[0],y=g[1],v=Math.sqrt(Math.pow(m-p,2)+Math.pow(y-f,2));if(r.lastTouchDistance&&v&&v!==r.lastTouchDistance){r.props.allowZoom&&((s+=(v-r.lastTouchDistance)/100)>n?s=n:s<i&&(s=i));var _=(p+m)/2,b=(f+y)/2,x=r.getNewPosition(_,b,s),S=(0,o.default)(x,2),w=S[0],E=S[1];r.setState({zoom:s,posX:w,posY:E,transitionDuration:0})}r.lastTouch={posX:p,posY:f},r.lastTouchDistance=v}}})),(0,h.default)((0,l.default)(r),"handleTouchStop",(function(){r.lastShift&&(r.startDeceleration(r.lastShift.x,r.lastShift.y),r.lastShift=null),r.lastTouch=null,r.lastTouchDistance=null})),(0,h.default)((0,l.default)(r),"zoomIn",(function(e){var t=r.props.maxZoom,n=r.state,i=n.zoom,o=n.posX,s=n.posY,a=i;(i=i+e<t?i+e:t)!==a&&(o=o*(i-1)/(a>1?a-1:a),s=s*(i-1)/(a>1?a-1:a)),r.setState({zoom:i,posX:o,posY:s,transitionDuration:r.props.animDuration})})),(0,h.default)((0,l.default)(r),"zoomOut",(function(e){var t=r.props.minZoom,n=r.state,i=n.zoom,o=n.posX,s=n.posY,a=i;(i=i-e>t?i-e:t)!==a&&(o=o*(i-1)/(a-1),s=s*(i-1)/(a-1)),r.setState({zoom:i,posX:o,posY:s,transitionDuration:r.props.animDuration})})),(0,h.default)((0,l.default)(r),"zoomToZone",(function(e,t,n,i){var o=r.props.maxZoom,s=r.state,a=s.zoom,l=s.posX,c=s.posY,u=r.ref.current.parentNode.getBoundingClientRect(),d=a,h=u.width/n,p=u.height/i;a=Math.min(h,p,o);var f=r.ref.current.getBoundingClientRect();l=(f.width/d/2-(e+n/2))*a,c=(f.height/d/2-(t+i/2))*a,r.setState({zoom:a,posX:l,posY:c,transitionDuration:r.props.animDuration})})),(0,h.default)((0,l.default)(r),"reset",(function(){r.setState(y(y({},r.constructor.defaultState),{},{transitionDuration:r.props.animDuration}))})),(0,h.default)((0,l.default)(r),"getZoom",(function(){return r.state.zoom})),(0,h.default)((0,l.default)(r),"isDoubleTapping",(function(){var e=(new Date).getTime();return e-r.lastTouchTime<r.props.doubleTouchMaxDelay&&e-r.lastDoubleTapTime>r.props.doubleTouchMaxDelay?(r.lastDoubleTapTime=e,!0):(r.lastTouchTime=e,!1)})),r.ref=(0,p.createRef)(),r.lastCursor=null,r.lastTouch=null,r.lastTouchTime=0,r.lastDoubleTapTime=0,r.lastTouchDistance=null,r.lastRequestAnimationId=null,r.hasMouseDevice=window.matchMedia("(pointer: fine)").matches,r.state=y(y({},r.constructor.defaultState),{},{transitionDuration:e.animDuration}),r}return(0,a.default)(n,[{key:"componentDidUpdate",value:function(e,t){this.props.onZoomChange&&this.state.zoom!==t.zoom&&this.props.onZoomChange(this.state.zoom),!this.props.onPanChange||this.state.posX===t.posX&&this.state.posY===t.posY||this.props.onPanChange({posX:this.state.posX,posY:this.state.posY})}},{key:"componentDidMount",value:function(){this.ref.current.addEventListener("wheel",this.handleMouseWheel,{passive:!1}),this.hasMouseDevice?(this.ref.current.addEventListener("mousedown",this.handleMouseStart,{passive:!1}),this.ref.current.addEventListener("mousemove",this.handleMouseMove,{passive:!1}),this.ref.current.addEventListener("mouseup",this.handleMouseStop,{passive:!1}),this.ref.current.addEventListener("mouseleave",this.handleMouseStop,{passive:!1})):(this.ref.current.addEventListener("touchstart",this.handleTouchStart,{passive:!1}),this.ref.current.addEventListener("touchmove",this.handleTouchMove,{passive:!1}),this.ref.current.addEventListener("touchend",this.handleTouchStop,{passive:!1}),this.ref.current.addEventListener("touchcancel",this.handleTouchStop,{passive:!1}))}},{key:"componentWillUnmount",value:function(){this.ref.current.removeEventListener("wheel",this.handleMouseWheel),this.hasMouseDevice?(this.ref.current.removeEventListener("mousedown",this.handleMouseStart),this.ref.current.removeEventListener("mousemove",this.handleMouseMove),this.ref.current.removeEventListener("mouseup",this.handleMouseStop),this.ref.current.removeEventListener("mouseleave",this.handleMouseStop)):(this.ref.current.removeEventListener("touchstart",this.handleTouchStart),this.ref.current.removeEventListener("touchmove",this.handleTouchMove),this.ref.current.removeEventListener("touchend",this.handleTouchStop),this.ref.current.removeEventListener("touchcancel",this.handleTouchStop))}},{key:"render",value:function(){var e=this.props,t=e.className,n=e.style,r=e.children,i=e.allowParentPanning,o=this.state,s=o.zoom,a=o.posX,l=o.posY,c=o.cursor,u=o.transitionDuration,d={ref:this.ref,onDoubleClick:this.handleDoubleClick.bind(this),className:t,style:y(y({},n),{},{transform:"translate3d(".concat(a,"px, ").concat(l,"px, 0) scale(").concat(s,")"),transition:"transform ease-out ".concat(u,"s"),cursor:c,touchAction:i&&1===s?"pan-x pan-y":"none",willChange:"transform"})};return p.default.createElement("div",d,r)}}]),n}(p.PureComponent);t.c=_,(0,h.default)(_,"propTypes",{children:f.default.node.isRequired,className:f.default.string,style:f.default.object,minZoom:f.default.number,maxZoom:f.default.number,scrollVelocity:f.default.number,onZoomChange:f.default.func,onPanChange:f.default.func,animDuration:f.default.number,doubleTouchMaxDelay:f.default.number,decelerationDuration:f.default.number,allowZoom:f.default.bool,allowPan:f.default.bool,allowTouchEvents:f.default.bool,allowParentPanning:f.default.bool}),(0,h.default)(_,"defaultProps",{className:null,style:{},minZoom:1,maxZoom:5,scrollVelocity:.2,onZoomChange:null,onPanChange:null,animDuration:.25,doubleTouchMaxDelay:300,decelerationDuration:750,allowZoom:!0,allowPan:!0,allowTouchEvents:!1,allowParentPanning:!1}),(0,h.default)(_,"defaultState",{zoom:1,posX:0,posY:0,cursor:"auto"})},5600:(e,t)=>{"use strict";var n=60103,r=60106,i=60107,o=60108,s=60114,a=60109,l=60110,c=60112,u=60113,d=60120,h=60115,p=60116,f=60121,g=60122,m=60117,y=60129,v=60131;if("function"===typeof Symbol&&Symbol.for){var _=Symbol.for;n=_("react.element"),r=_("react.portal"),i=_("react.fragment"),o=_("react.strict_mode"),s=_("react.profiler"),a=_("react.provider"),l=_("react.context"),c=_("react.forward_ref"),u=_("react.suspense"),d=_("react.suspense_list"),h=_("react.memo"),p=_("react.lazy"),f=_("react.block"),g=_("react.server.block"),m=_("react.fundamental"),y=_("react.debug_trace_mode"),v=_("react.legacy_hidden")}function b(e){if("object"===typeof e&&null!==e){var t=e.$$typeof;switch(t){case n:switch(e=e.type){case i:case s:case o:case u:case d:return e;default:switch(e=e&&e.$$typeof){case l:case c:case p:case h:case a:return e;default:return t}}case r:return t}}}},56448:(e,t,n)=>{"use strict";n(5600)},82244:(e,t)=>{"use strict";var n="function"===typeof Symbol&&Symbol.for,r=n?Symbol.for("react.element"):60103,i=n?Symbol.for("react.portal"):60106,o=n?Symbol.for("react.fragment"):60107,s=n?Symbol.for("react.strict_mode"):60108,a=n?Symbol.for("react.profiler"):60114,l=n?Symbol.for("react.provider"):60109,c=n?Symbol.for("react.context"):60110,u=n?Symbol.for("react.async_mode"):60111,d=n?Symbol.for("react.concurrent_mode"):60111,h=n?Symbol.for("react.forward_ref"):60112,p=n?Symbol.for("react.suspense"):60113,f=n?Symbol.for("react.suspense_list"):60120,g=n?Symbol.for("react.memo"):60115,m=n?Symbol.for("react.lazy"):60116,y=n?Symbol.for("react.block"):60121,v=n?Symbol.for("react.fundamental"):60117,_=n?Symbol.for("react.responder"):60118,b=n?Symbol.for("react.scope"):60119;function x(e){if("object"===typeof e&&null!==e){var t=e.$$typeof;switch(t){case r:switch(e=e.type){case u:case d:case o:case a:case s:case p:return e;default:switch(e=e&&e.$$typeof){case c:case h:case m:case g:case l:return e;default:return t}}case i:return t}}}function S(e){return x(e)===d}},83404:(e,t,n)=>{"use strict";n(82244)},85120:(e,t,n)=>{"use strict";var r=n(22411);t.__esModule=!0,t.default=function(e,t){e.classList?e.classList.add(t):(0,i.default)(e,t)||("string"===typeof e.className?e.className=e.className+" "+t:e.setAttribute("class",(e.className&&e.className.baseVal||"")+" "+t))};var i=r(n(34336));e.exports=t.default},34336:(e,t)=>{"use strict";t.__esModule=!0,t.default=function(e,t){return e.classList?!!t&&e.classList.contains(t):-1!==(" "+(e.className.baseVal||e.className)+" ").indexOf(" "+t+" ")},e.exports=t.default},36056:e=>{"use strict";function t(e,t){return e.replace(new RegExp("(^|\\s)"+t+"(?:\\s|$)","g"),"$1").replace(/\s+/g," ").replace(/^\s*|\s*$/g,"")}e.exports=function(e,n){e.classList?e.classList.remove(n):"string"===typeof e.className?e.className=t(e.className,n):e.setAttribute("class",t(e.className&&e.className.baseVal||"",n))}},87516:(e,t,n)=>{"use strict";t.__esModule=!0,t.default=void 0;!function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var r=Object.defineProperty&&Object.getOwnPropertyDescriptor?Object.getOwnPropertyDescriptor(e,n):{};r.get||r.set?Object.defineProperty(t,n,r):t[n]=e[n]}t.default=e}(n(40308));var r=a(n(85120)),i=a(n(36056)),o=a(n(99584)),s=a(n(7051));n(61048);function a(e){return e&&e.__esModule?e:{default:e}}function l(){return l=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},l.apply(this,arguments)}var c=function(e,t){return e&&t&&t.split(" ").forEach((function(t){return(0,r.default)(e,t)}))},u=function(e,t){return e&&t&&t.split(" ").forEach((function(t){return(0,i.default)(e,t)}))},d=function(e){var t,n;function r(){for(var t,n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];return(t=e.call.apply(e,[this].concat(r))||this).onEnter=function(e,n){var r=t.getClassNames(n?"appear":"enter").className;t.removeClasses(e,"exit"),c(e,r),t.props.onEnter&&t.props.onEnter(e,n)},t.onEntering=function(e,n){var r=t.getClassNames(n?"appear":"enter").activeClassName;t.reflowAndAddClass(e,r),t.props.onEntering&&t.props.onEntering(e,n)},t.onEntered=function(e,n){var r=t.getClassNames("appear").doneClassName,i=t.getClassNames("enter").doneClassName,o=n?r+" "+i:i;t.removeClasses(e,n?"appear":"enter"),c(e,o),t.props.onEntered&&t.props.onEntered(e,n)},t.onExit=function(e){var n=t.getClassNames("exit").className;t.removeClasses(e,"appear"),t.removeClasses(e,"enter"),c(e,n),t.props.onExit&&t.props.onExit(e)},t.onExiting=function(e){var n=t.getClassNames("exit").activeClassName;t.reflowAndAddClass(e,n),t.props.onExiting&&t.props.onExiting(e)},t.onExited=function(e){var n=t.getClassNames("exit").doneClassName;t.removeClasses(e,"exit"),c(e,n),t.props.onExited&&t.props.onExited(e)},t.getClassNames=function(e){var n=t.props.classNames,r="string"===typeof n,i=r?(r&&n?n+"-":"")+e:n[e];return{className:i,activeClassName:r?i+"-active":n[e+"Active"],doneClassName:r?i+"-done":n[e+"Done"]}},t}n=e,(t=r).prototype=Object.create(n.prototype),t.prototype.constructor=t,t.__proto__=n;var i=r.prototype;return i.removeClasses=function(e,t){var n=this.getClassNames(t),r=n.className,i=n.activeClassName,o=n.doneClassName;r&&u(e,r),i&&u(e,i),o&&u(e,o)},i.reflowAndAddClass=function(e,t){t&&(e&&e.scrollTop,c(e,t))},i.render=function(){var e=l({},this.props);return delete e.classNames,o.default.createElement(s.default,l({},e,{onEnter:this.onEnter,onEntered:this.onEntered,onEntering:this.onEntering,onExit:this.onExit,onExiting:this.onExiting,onExited:this.onExited}))},r}(o.default.Component);d.defaultProps={classNames:""},d.propTypes={};var h=d;t.default=h,e.exports=t.default},79416:(e,t,n)=>{"use strict";t.__esModule=!0,t.default=void 0;s(n(40308));var r=s(n(99584)),i=n(78828),o=s(n(14956));function s(e){return e&&e.__esModule?e:{default:e}}var a=function(e){var t,n;function s(){for(var t,n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];return(t=e.call.apply(e,[this].concat(r))||this).handleEnter=function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return t.handleLifecycle("onEnter",0,n)},t.handleEntering=function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return t.handleLifecycle("onEntering",0,n)},t.handleEntered=function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return t.handleLifecycle("onEntered",0,n)},t.handleExit=function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return t.handleLifecycle("onExit",1,n)},t.handleExiting=function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return t.handleLifecycle("onExiting",1,n)},t.handleExited=function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return t.handleLifecycle("onExited",1,n)},t}n=e,(t=s).prototype=Object.create(n.prototype),t.prototype.constructor=t,t.__proto__=n;var a=s.prototype;return a.handleLifecycle=function(e,t,n){var o,s=this.props.children,a=r.default.Children.toArray(s)[t];a.props[e]&&(o=a.props)[e].apply(o,n),this.props[e]&&this.props[e]((0,i.findDOMNode)(this))},a.render=function(){var e=this.props,t=e.children,n=e.in,i=function(e,t){if(null==e)return{};var n,r,i={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(i[n]=e[n]);return i}(e,["children","in"]),s=r.default.Children.toArray(t),a=s[0],l=s[1];return delete i.onEnter,delete i.onEntering,delete i.onEntered,delete i.onExit,delete i.onExiting,delete i.onExited,r.default.createElement(o.default,i,n?r.default.cloneElement(a,{key:"first",onEnter:this.handleEnter,onEntering:this.handleEntering,onEntered:this.handleEntered}):r.default.cloneElement(l,{key:"second",onEnter:this.handleExit,onEntering:this.handleExiting,onEntered:this.handleExited}))},s}(r.default.Component);a.propTypes={};var l=a;t.default=l,e.exports=t.default},7051:(e,t,n)=>{"use strict";t.__esModule=!0,t.default=t.EXITING=t.ENTERED=t.ENTERING=t.EXITED=t.UNMOUNTED=void 0;var r=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var r=Object.defineProperty&&Object.getOwnPropertyDescriptor?Object.getOwnPropertyDescriptor(e,n):{};r.get||r.set?Object.defineProperty(t,n,r):t[n]=e[n]}return t.default=e,t}(n(40308)),i=a(n(99584)),o=a(n(78828)),s=n(12180);n(61048);function a(e){return e&&e.__esModule?e:{default:e}}var l="unmounted";t.UNMOUNTED=l;var c="exited";t.EXITED=c;var u="entering";t.ENTERING=u;var d="entered";t.ENTERED=d;var h="exiting";t.EXITING=h;var p=function(e){var t,n;function r(t,n){var r;r=e.call(this,t,n)||this;var i,o=n.transitionGroup,s=o&&!o.isMounting?t.enter:t.appear;return r.appearStatus=null,t.in?s?(i=c,r.appearStatus=u):i=d:i=t.unmountOnExit||t.mountOnEnter?l:c,r.state={status:i},r.nextCallback=null,r}n=e,(t=r).prototype=Object.create(n.prototype),t.prototype.constructor=t,t.__proto__=n;var s=r.prototype;return s.getChildContext=function(){return{transitionGroup:null}},r.getDerivedStateFromProps=function(e,t){return e.in&&t.status===l?{status:c}:null},s.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},s.componentDidUpdate=function(e){var t=null;if(e!==this.props){var n=this.state.status;this.props.in?n!==u&&n!==d&&(t=u):n!==u&&n!==d||(t=h)}this.updateStatus(!1,t)},s.componentWillUnmount=function(){this.cancelNextCallback()},s.getTimeouts=function(){var e,t,n,r=this.props.timeout;return e=t=n=r,null!=r&&"number"!==typeof r&&(e=r.exit,t=r.enter,n=void 0!==r.appear?r.appear:t),{exit:e,enter:t,appear:n}},s.updateStatus=function(e,t){if(void 0===e&&(e=!1),null!==t){this.cancelNextCallback();var n=o.default.findDOMNode(this);t===u?this.performEnter(n,e):this.performExit(n)}else this.props.unmountOnExit&&this.state.status===c&&this.setState({status:l})},s.performEnter=function(e,t){var n=this,r=this.props.enter,i=this.context.transitionGroup?this.context.transitionGroup.isMounting:t,o=this.getTimeouts(),s=i?o.appear:o.enter;t||r?(this.props.onEnter(e,i),this.safeSetState({status:u},(function(){n.props.onEntering(e,i),n.onTransitionEnd(e,s,(function(){n.safeSetState({status:d},(function(){n.props.onEntered(e,i)}))}))}))):this.safeSetState({status:d},(function(){n.props.onEntered(e)}))},s.performExit=function(e){var t=this,n=this.props.exit,r=this.getTimeouts();n?(this.props.onExit(e),this.safeSetState({status:h},(function(){t.props.onExiting(e),t.onTransitionEnd(e,r.exit,(function(){t.safeSetState({status:c},(function(){t.props.onExited(e)}))}))}))):this.safeSetState({status:c},(function(){t.props.onExited(e)}))},s.cancelNextCallback=function(){null!==this.nextCallback&&(this.nextCallback.cancel(),this.nextCallback=null)},s.safeSetState=function(e,t){t=this.setNextCallback(t),this.setState(e,t)},s.setNextCallback=function(e){var t=this,n=!0;return this.nextCallback=function(r){n&&(n=!1,t.nextCallback=null,e(r))},this.nextCallback.cancel=function(){n=!1},this.nextCallback},s.onTransitionEnd=function(e,t,n){this.setNextCallback(n);var r=null==t&&!this.props.addEndListener;e&&!r?(this.props.addEndListener&&this.props.addEndListener(e,this.nextCallback),null!=t&&setTimeout(this.nextCallback,t)):setTimeout(this.nextCallback,0)},s.render=function(){var e=this.state.status;if(e===l)return null;var t=this.props,n=t.children,r=function(e,t){if(null==e)return{};var n,r,i={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(i[n]=e[n]);return i}(t,["children"]);if(delete r.in,delete r.mountOnEnter,delete r.unmountOnExit,delete r.appear,delete r.enter,delete r.exit,delete r.timeout,delete r.addEndListener,delete r.onEnter,delete r.onEntering,delete r.onEntered,delete r.onExit,delete r.onExiting,delete r.onExited,"function"===typeof n)return n(e,r);var o=i.default.Children.only(n);return i.default.cloneElement(o,r)},r}(i.default.Component);function f(){}p.contextTypes={transitionGroup:r.object},p.childContextTypes={transitionGroup:function(){}},p.propTypes={},p.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:f,onEntering:f,onEntered:f,onExit:f,onExiting:f,onExited:f},p.UNMOUNTED=0,p.EXITED=1,p.ENTERING=2,p.ENTERED=3,p.EXITING=4;var g=(0,s.polyfill)(p);t.default=g},14956:(e,t,n)=>{"use strict";t.__esModule=!0,t.default=void 0;var r=a(n(40308)),i=a(n(99584)),o=n(12180),s=n(88384);function a(e){return e&&e.__esModule?e:{default:e}}function l(){return l=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},l.apply(this,arguments)}function c(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}var u=Object.values||function(e){return Object.keys(e).map((function(t){return e[t]}))},d=function(e){var t,n;function r(t,n){var r,i=(r=e.call(this,t,n)||this).handleExited.bind(c(c(r)));return r.state={handleExited:i,firstRender:!0},r}n=e,(t=r).prototype=Object.create(n.prototype),t.prototype.constructor=t,t.__proto__=n;var o=r.prototype;return o.getChildContext=function(){return{transitionGroup:{isMounting:!this.appeared}}},o.componentDidMount=function(){this.appeared=!0,this.mounted=!0},o.componentWillUnmount=function(){this.mounted=!1},r.getDerivedStateFromProps=function(e,t){var n=t.children,r=t.handleExited;return{children:t.firstRender?(0,s.getInitialChildMapping)(e,r):(0,s.getNextChildMapping)(e,n,r),firstRender:!1}},o.handleExited=function(e,t){var n=(0,s.getChildMapping)(this.props.children);e.key in n||(e.props.onExited&&e.props.onExited(t),this.mounted&&this.setState((function(t){var n=l({},t.children);return delete n[e.key],{children:n}})))},o.render=function(){var e=this.props,t=e.component,n=e.childFactory,r=function(e,t){if(null==e)return{};var n,r,i={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(i[n]=e[n]);return i}(e,["component","childFactory"]),o=u(this.state.children).map(n);return delete r.appear,delete r.enter,delete r.exit,null===t?o:i.default.createElement(t,r,o)},r}(i.default.Component);d.childContextTypes={transitionGroup:r.default.object.isRequired},d.propTypes={},d.defaultProps={component:"div",childFactory:function(e){return e}};var h=(0,o.polyfill)(d);t.default=h,e.exports=t.default},75176:(e,t,n)=>{"use strict";var r=a(n(87516)),i=a(n(79416)),o=a(n(14956)),s=a(n(7051));function a(e){return e&&e.__esModule?e:{default:e}}e.exports={Transition:s.default,TransitionGroup:o.default,ReplaceTransition:i.default,CSSTransition:r.default}},88384:(e,t,n)=>{"use strict";t.__esModule=!0,t.getChildMapping=i,t.mergeChildMappings=o,t.getInitialChildMapping=function(e,t){return i(e.children,(function(n){return(0,r.cloneElement)(n,{onExited:t.bind(null,n),in:!0,appear:s(n,"appear",e),enter:s(n,"enter",e),exit:s(n,"exit",e)})}))},t.getNextChildMapping=function(e,t,n){var a=i(e.children),l=o(t,a);return Object.keys(l).forEach((function(i){var o=l[i];if((0,r.isValidElement)(o)){var c=i in t,u=i in a,d=t[i],h=(0,r.isValidElement)(d)&&!d.props.in;!u||c&&!h?u||!c||h?u&&c&&(0,r.isValidElement)(d)&&(l[i]=(0,r.cloneElement)(o,{onExited:n.bind(null,o),in:d.props.in,exit:s(o,"exit",e),enter:s(o,"enter",e)})):l[i]=(0,r.cloneElement)(o,{in:!1}):l[i]=(0,r.cloneElement)(o,{onExited:n.bind(null,o),in:!0,exit:s(o,"exit",e),enter:s(o,"enter",e)})}})),l};var r=n(99584);function i(e,t){var n=Object.create(null);return e&&r.Children.map(e,(function(e){return e})).forEach((function(e){n[e.key]=function(e){return t&&(0,r.isValidElement)(e)?t(e):e}(e)})),n}function o(e,t){function n(n){return n in t?t[n]:e[n]}e=e||{},t=t||{};var r,i=Object.create(null),o=[];for(var s in e)s in t?o.length&&(i[s]=o,o=[]):o.push(s);var a={};for(var l in t){if(i[l])for(r=0;r<i[l].length;r++){var c=i[l][r];a[i[l][r]]=n(c)}a[l]=n(l)}for(r=0;r<o.length;r++)a[o[r]]=n(o[r]);return a}function s(e,t,n){return null!=n[t]?n[t]:e.props[t]}},61048:(e,t,n)=>{"use strict";t.__esModule=!0,t.classNamesShape=t.timeoutsShape=void 0;var r;(r=n(40308))&&r.__esModule;t.timeoutsShape=null;t.classNamesShape=null},11808:(e,t,n)=>{"use strict";var r=n(99584),i=Symbol.for("react.element"),o=Symbol.for("react.fragment"),s=Object.prototype.hasOwnProperty,a=r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,l={key:!0,ref:!0,__self:!0,__source:!0};function c(e,t,n){var r,o={},c=null,u=null;for(r in void 0!==n&&(c=""+n),void 0!==t.key&&(c=""+t.key),void 0!==t.ref&&(u=t.ref),t)s.call(t,r)&&!l.hasOwnProperty(r)&&(o[r]=t[r]);if(e&&e.defaultProps)for(r in t=e.defaultProps)void 0===o[r]&&(o[r]=t[r]);return{$$typeof:i,type:e,key:c,ref:u,props:o,_owner:a.current}}t.Fragment=o,t.jsx=c,t.jsxs=c},2052:(e,t)=>{"use strict";var n=Symbol.for("react.element"),r=Symbol.for("react.portal"),i=Symbol.for("react.fragment"),o=Symbol.for("react.strict_mode"),s=Symbol.for("react.profiler"),a=Symbol.for("react.provider"),l=Symbol.for("react.context"),c=Symbol.for("react.forward_ref"),u=Symbol.for("react.suspense"),d=Symbol.for("react.memo"),h=Symbol.for("react.lazy"),p=Symbol.iterator;var f={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},g=Object.assign,m={};function y(e,t,n){this.props=e,this.context=t,this.refs=m,this.updater=n||f}function v(){}function _(e,t,n){this.props=e,this.context=t,this.refs=m,this.updater=n||f}y.prototype.isReactComponent={},y.prototype.setState=function(e,t){if("object"!==typeof e&&"function"!==typeof e&&null!=e)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,e,t,"setState")},y.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")},v.prototype=y.prototype;var b=_.prototype=new v;b.constructor=_,g(b,y.prototype),b.isPureReactComponent=!0;var x=Array.isArray,S=Object.prototype.hasOwnProperty,w={current:null},E={key:!0,ref:!0,__self:!0,__source:!0};function P(e,t,r){var i,o={},s=null,a=null;if(null!=t)for(i in void 0!==t.ref&&(a=t.ref),void 0!==t.key&&(s=""+t.key),t)S.call(t,i)&&!E.hasOwnProperty(i)&&(o[i]=t[i]);var l=arguments.length-2;if(1===l)o.children=r;else if(1<l){for(var c=Array(l),u=0;u<l;u++)c[u]=arguments[u+2];o.children=c}if(e&&e.defaultProps)for(i in l=e.defaultProps)void 0===o[i]&&(o[i]=l[i]);return{$$typeof:n,type:e,key:s,ref:a,props:o,_owner:w.current}}function C(e){return"object"===typeof e&&null!==e&&e.$$typeof===n}var A=/\/+/g;function k(e,t){return"object"===typeof e&&null!==e&&null!=e.key?function(e){var t={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,(function(e){return t[e]}))}(""+e.key):t.toString(36)}function j(e,t,i,o,s){var a=typeof e;"undefined"!==a&&"boolean"!==a||(e=null);var l=!1;if(null===e)l=!0;else switch(a){case"string":case"number":l=!0;break;case"object":switch(e.$$typeof){case n:case r:l=!0}}if(l)return s=s(l=e),e=""===o?"."+k(l,0):o,x(s)?(i="",null!=e&&(i=e.replace(A,"$&/")+"/"),j(s,t,i,"",(function(e){return e}))):null!=s&&(C(s)&&(s=function(e,t){return{$$typeof:n,type:e.type,key:t,ref:e.ref,props:e.props,_owner:e._owner}}(s,i+(!s.key||l&&l.key===s.key?"":(""+s.key).replace(A,"$&/")+"/")+e)),t.push(s)),1;if(l=0,o=""===o?".":o+":",x(e))for(var c=0;c<e.length;c++){var u=o+k(a=e[c],c);l+=j(a,t,i,u,s)}else if(u=function(e){return null===e||"object"!==typeof e?null:"function"===typeof(e=p&&e[p]||e["@@iterator"])?e:null}(e),"function"===typeof u)for(e=u.call(e),c=0;!(a=e.next()).done;)l+=j(a=a.value,t,i,u=o+k(a,c++),s);else if("object"===a)throw t=String(e),Error("Objects are not valid as a React child (found: "+("[object Object]"===t?"object with keys {"+Object.keys(e).join(", ")+"}":t)+"). If you meant to render a collection of children, use an array instead.");return l}function I(e,t,n){if(null==e)return e;var r=[],i=0;return j(e,r,"","",(function(e){return t.call(n,e,i++)})),r}function G(e){if(-1===e._status){var t=e._result;(t=t()).then((function(t){0!==e._status&&-1!==e._status||(e._status=1,e._result=t)}),(function(t){0!==e._status&&-1!==e._status||(e._status=2,e._result=t)})),-1===e._status&&(e._status=0,e._result=t)}if(1===e._status)return e._result.default;throw e._result}var T={current:null},M={transition:null},O={ReactCurrentDispatcher:T,ReactCurrentBatchConfig:M,ReactCurrentOwner:w};t.Children={map:I,forEach:function(e,t,n){I(e,(function(){t.apply(this,arguments)}),n)},count:function(e){var t=0;return I(e,(function(){t++})),t},toArray:function(e){return I(e,(function(e){return e}))||[]},only:function(e){if(!C(e))throw Error("React.Children.only expected to receive a single React element child.");return e}},t.Component=y,t.Fragment=i,t.Profiler=s,t.PureComponent=_,t.StrictMode=o,t.Suspense=u,t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=O,t.cloneElement=function(e,t,r){if(null===e||void 0===e)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+e+".");var i=g({},e.props),o=e.key,s=e.ref,a=e._owner;if(null!=t){if(void 0!==t.ref&&(s=t.ref,a=w.current),void 0!==t.key&&(o=""+t.key),e.type&&e.type.defaultProps)var l=e.type.defaultProps;for(c in t)S.call(t,c)&&!E.hasOwnProperty(c)&&(i[c]=void 0===t[c]&&void 0!==l?l[c]:t[c])}var c=arguments.length-2;if(1===c)i.children=r;else if(1<c){l=Array(c);for(var u=0;u<c;u++)l[u]=arguments[u+2];i.children=l}return{$$typeof:n,type:e.type,key:o,ref:s,props:i,_owner:a}},t.createContext=function(e){return(e={$$typeof:l,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null}).Provider={$$typeof:a,_context:e},e.Consumer=e},t.createElement=P,t.createFactory=function(e){var t=P.bind(null,e);return t.type=e,t},t.createRef=function(){return{current:null}},t.forwardRef=function(e){return{$$typeof:c,render:e}},t.isValidElement=C,t.lazy=function(e){return{$$typeof:h,_payload:{_status:-1,_result:e},_init:G}},t.memo=function(e,t){return{$$typeof:d,type:e,compare:void 0===t?null:t}},t.startTransition=function(e){var t=M.transition;M.transition={};try{e()}finally{M.transition=t}},t.unstable_act=function(){throw Error("act(...) is not supported in production builds of React.")},t.useCallback=function(e,t){return T.current.useCallback(e,t)},t.useContext=function(e){return T.current.useContext(e)},t.useDebugValue=function(){},t.useDeferredValue=function(e){return T.current.useDeferredValue(e)},t.useEffect=function(e,t){return T.current.useEffect(e,t)},t.useId=function(){return T.current.useId()},t.useImperativeHandle=function(e,t,n){return T.current.useImperativeHandle(e,t,n)},t.useInsertionEffect=function(e,t){return T.current.useInsertionEffect(e,t)},t.useLayoutEffect=function(e,t){return T.current.useLayoutEffect(e,t)},t.useMemo=function(e,t){return T.current.useMemo(e,t)},t.useReducer=function(e,t,n){return T.current.useReducer(e,t,n)},t.useRef=function(e){return T.current.useRef(e)},t.useState=function(e){return T.current.useState(e)},t.useSyncExternalStore=function(e,t,n){return T.current.useSyncExternalStore(e,t,n)},t.useTransition=function(){return T.current.useTransition()},t.version="18.2.0"},99584:(e,t,n)=>{"use strict";e.exports=n(2052)},97884:(e,t,n)=>{"use strict";e.exports=n(11808)},80628:(e,t)=>{"use strict";var n="function"===typeof Symbol&&Symbol.for,r=n?Symbol.for("react.element"):60103,i=n?Symbol.for("react.portal"):60106,o=n?Symbol.for("react.fragment"):60107,s=n?Symbol.for("react.strict_mode"):60108,a=n?Symbol.for("react.profiler"):60114,l=n?Symbol.for("react.provider"):60109,c=n?Symbol.for("react.context"):60110,u=n?Symbol.for("react.async_mode"):60111,d=n?Symbol.for("react.concurrent_mode"):60111,h=n?Symbol.for("react.forward_ref"):60112,p=n?Symbol.for("react.suspense"):60113,f=n?Symbol.for("react.suspense_list"):60120,g=n?Symbol.for("react.memo"):60115,m=n?Symbol.for("react.lazy"):60116,y=n?Symbol.for("react.block"):60121,v=n?Symbol.for("react.fundamental"):60117,_=n?Symbol.for("react.responder"):60118,b=n?Symbol.for("react.scope"):60119;function x(e){if("object"===typeof e&&null!==e){var t=e.$$typeof;switch(t){case r:switch(e=e.type){case u:case d:case o:case a:case s:case p:return e;default:switch(e=e&&e.$$typeof){case c:case h:case m:case g:case l:return e;default:return t}}case i:return t}}}function S(e){return x(e)===d}t.isElement=function(e){return"object"===typeof e&&null!==e&&e.$$typeof===r},t.isFragment=function(e){return x(e)===o}},92248:(e,t,n)=>{"use strict";e.exports=n(80628)},43728:(e,t,n)=>{"use strict";var r=n(14588),i=n(97896),o=Object;e.exports=r((function(){if(null==this||this!==o(this))throw new i("RegExp.prototype.flags getter called on non-object");var e="";return this.hasIndices&&(e+="d"),this.global&&(e+="g"),this.ignoreCase&&(e+="i"),this.multiline&&(e+="m"),this.dotAll&&(e+="s"),this.unicode&&(e+="u"),this.unicodeSets&&(e+="v"),this.sticky&&(e+="y"),e}),"get flags",!0)},68912:(e,t,n)=>{"use strict";var r=n(40108),i=n(25520),o=n(43728),s=n(21844),a=n(96672),l=i(s());r(l,{getPolyfill:s,implementation:o,shim:a}),e.exports=l},21844:(e,t,n)=>{"use strict";var r=n(43728),i=n(40108).supportsDescriptors,o=Object.getOwnPropertyDescriptor;e.exports=function(){if(i&&"gim"===/a/gim.flags){var e=o(RegExp.prototype,"flags");if(e&&"function"===typeof e.get&&"boolean"===typeof RegExp.prototype.dotAll&&"boolean"===typeof RegExp.prototype.hasIndices){var t="",n={};if(Object.defineProperty(n,"hasIndices",{get:function(){t+="d"}}),Object.defineProperty(n,"sticky",{get:function(){t+="y"}}),"dy"===t)return e.get}}return r}},96672:(e,t,n)=>{"use strict";var r=n(40108).supportsDescriptors,i=n(21844),o=Object.getOwnPropertyDescriptor,s=Object.defineProperty,a=TypeError,l=Object.getPrototypeOf,c=/a/;e.exports=function(){if(!r||!l)throw new a("RegExp.prototype.flags requires a true ES5 environment that supports property descriptors");var e=i(),t=l(c),n=o(t,"flags");return n&&n.get===e||s(t,"flags",{configurable:!0,enumerable:!1,get:e}),e}},80928:function(e,t){!function(e){"use strict";const t=134217729,n=33306690738754706e-32;function r(e,t,n,r,i){let o,s,a,l,c=t[0],u=r[0],d=0,h=0;u>c==u>-c?(o=c,c=t[++d]):(o=u,u=r[++h]);let p=0;if(d<e&&h<n)for(u>c==u>-c?(a=o-((s=c+o)-c),c=t[++d]):(a=o-((s=u+o)-u),u=r[++h]),o=s,0!==a&&(i[p++]=a);d<e&&h<n;)u>c==u>-c?(a=o-((s=o+c)-(l=s-o))+(c-l),c=t[++d]):(a=o-((s=o+u)-(l=s-o))+(u-l),u=r[++h]),o=s,0!==a&&(i[p++]=a);for(;d<e;)a=o-((s=o+c)-(l=s-o))+(c-l),c=t[++d],o=s,0!==a&&(i[p++]=a);for(;h<n;)a=o-((s=o+u)-(l=s-o))+(u-l),u=r[++h],o=s,0!==a&&(i[p++]=a);return 0===o&&0!==p||(i[p++]=o),p}function i(e){return new Float64Array(e)}const o=33306690738754716e-32,s=22204460492503146e-32,a=11093356479670487e-47,l=i(4),c=i(8),u=i(12),d=i(16),h=i(4);e.orient2d=function(e,i,p,f,g,m){const y=(i-m)*(p-g),v=(e-g)*(f-m),_=y-v;if(0===y||0===v||y>0!=v>0)return _;const b=Math.abs(y+v);return Math.abs(_)>=o*b?_:-function(e,i,o,p,f,g,m){let y,v,_,b,x,S,w,E,P,C,A,k,j,I,G,T,M,O;const R=e-f,D=o-f,N=i-g,L=p-g;x=(G=(E=R-(w=(S=t*R)-(S-R)))*(C=L-(P=(S=t*L)-(S-L)))-((I=R*L)-w*P-E*P-w*C))-(A=G-(M=(E=N-(w=(S=t*N)-(S-N)))*(C=D-(P=(S=t*D)-(S-D)))-((T=N*D)-w*P-E*P-w*C))),l[0]=G-(A+x)+(x-M),x=(j=I-((k=I+A)-(x=k-I))+(A-x))-(A=j-T),l[1]=j-(A+x)+(x-T),x=(O=k+A)-k,l[2]=k-(O-x)+(A-x),l[3]=O;let V=function(e,t){let n=t[0];for(let r=1;r<e;r++)n+=t[r];return n}(4,l),F=s*m;if(V>=F||-V>=F)return V;if(y=e-(R+(x=e-R))+(x-f),_=o-(D+(x=o-D))+(x-f),v=i-(N+(x=i-N))+(x-g),b=p-(L+(x=p-L))+(x-g),0===y&&0===v&&0===_&&0===b)return V;if(F=a*m+n*Math.abs(V),(V+=R*b+L*y-(N*_+D*v))>=F||-V>=F)return V;x=(G=(E=y-(w=(S=t*y)-(S-y)))*(C=L-(P=(S=t*L)-(S-L)))-((I=y*L)-w*P-E*P-w*C))-(A=G-(M=(E=v-(w=(S=t*v)-(S-v)))*(C=D-(P=(S=t*D)-(S-D)))-((T=v*D)-w*P-E*P-w*C))),h[0]=G-(A+x)+(x-M),x=(j=I-((k=I+A)-(x=k-I))+(A-x))-(A=j-T),h[1]=j-(A+x)+(x-T),x=(O=k+A)-k,h[2]=k-(O-x)+(A-x),h[3]=O;const z=r(4,l,4,h,c);x=(G=(E=R-(w=(S=t*R)-(S-R)))*(C=b-(P=(S=t*b)-(S-b)))-((I=R*b)-w*P-E*P-w*C))-(A=G-(M=(E=N-(w=(S=t*N)-(S-N)))*(C=_-(P=(S=t*_)-(S-_)))-((T=N*_)-w*P-E*P-w*C))),h[0]=G-(A+x)+(x-M),x=(j=I-((k=I+A)-(x=k-I))+(A-x))-(A=j-T),h[1]=j-(A+x)+(x-T),x=(O=k+A)-k,h[2]=k-(O-x)+(A-x),h[3]=O;const B=r(z,c,4,h,u);x=(G=(E=y-(w=(S=t*y)-(S-y)))*(C=b-(P=(S=t*b)-(S-b)))-((I=y*b)-w*P-E*P-w*C))-(A=G-(M=(E=v-(w=(S=t*v)-(S-v)))*(C=_-(P=(S=t*_)-(S-_)))-((T=v*_)-w*P-E*P-w*C))),h[0]=G-(A+x)+(x-M),x=(j=I-((k=I+A)-(x=k-I))+(A-x))-(A=j-T),h[1]=j-(A+x)+(x-T),x=(O=k+A)-k,h[2]=k-(O-x)+(A-x),h[3]=O;const U=r(B,u,4,h,d);return d[U-1]}(e,i,p,f,g,m,b)},e.orient2dfast=function(e,t,n,r,i,o){return(t-o)*(n-i)-(e-i)*(r-o)},Object.defineProperty(e,"__esModule",{value:!0})}(t)},49952:(e,t)=>{"use strict";function n(e,t){var n=e.length;e.push(t);e:for(;0<n;){var r=n-1>>>1,i=e[r];if(!(0<o(i,t)))break e;e[r]=t,e[n]=i,n=r}}function r(e){return 0===e.length?null:e[0]}function i(e){if(0===e.length)return null;var t=e[0],n=e.pop();if(n!==t){e[0]=n;e:for(var r=0,i=e.length,s=i>>>1;r<s;){var a=2*(r+1)-1,l=e[a],c=a+1,u=e[c];if(0>o(l,n))c<i&&0>o(u,l)?(e[r]=u,e[c]=n,r=c):(e[r]=l,e[a]=n,r=a);else{if(!(c<i&&0>o(u,n)))break e;e[r]=u,e[c]=n,r=c}}}return t}function o(e,t){var n=e.sortIndex-t.sortIndex;return 0!==n?n:e.id-t.id}if("object"===typeof performance&&"function"===typeof performance.now){var s=performance;t.unstable_now=function(){return s.now()}}else{var a=Date,l=a.now();t.unstable_now=function(){return a.now()-l}}var c=[],u=[],d=1,h=null,p=3,f=!1,g=!1,m=!1,y="function"===typeof setTimeout?setTimeout:null,v="function"===typeof clearTimeout?clearTimeout:null,_="undefined"!==typeof setImmediate?setImmediate:null;function b(e){for(var t=r(u);null!==t;){if(null===t.callback)i(u);else{if(!(t.startTime<=e))break;i(u),t.sortIndex=t.expirationTime,n(c,t)}t=r(u)}}function x(e){if(m=!1,b(e),!g)if(null!==r(c))g=!0,M(S);else{var t=r(u);null!==t&&O(x,t.startTime-e)}}function S(e,n){g=!1,m&&(m=!1,v(C),C=-1),f=!0;var o=p;try{for(b(n),h=r(c);null!==h&&(!(h.expirationTime>n)||e&&!j());){var s=h.callback;if("function"===typeof s){h.callback=null,p=h.priorityLevel;var a=s(h.expirationTime<=n);n=t.unstable_now(),"function"===typeof a?h.callback=a:h===r(c)&&i(c),b(n)}else i(c);h=r(c)}if(null!==h)var l=!0;else{var d=r(u);null!==d&&O(x,d.startTime-n),l=!1}return l}finally{h=null,p=o,f=!1}}"undefined"!==typeof navigator&&void 0!==navigator.scheduling&&void 0!==navigator.scheduling.isInputPending&&navigator.scheduling.isInputPending.bind(navigator.scheduling);var w,E=!1,P=null,C=-1,A=5,k=-1;function j(){return!(t.unstable_now()-k<A)}function I(){if(null!==P){var e=t.unstable_now();k=e;var n=!0;try{n=P(!0,e)}finally{n?w():(E=!1,P=null)}}else E=!1}if("function"===typeof _)w=function(){_(I)};else if("undefined"!==typeof MessageChannel){var G=new MessageChannel,T=G.port2;G.port1.onmessage=I,w=function(){T.postMessage(null)}}else w=function(){y(I,0)};function M(e){P=e,E||(E=!0,w())}function O(e,n){C=y((function(){e(t.unstable_now())}),n)}t.unstable_IdlePriority=5,t.unstable_ImmediatePriority=1,t.unstable_LowPriority=4,t.unstable_NormalPriority=3,t.unstable_Profiling=null,t.unstable_UserBlockingPriority=2,t.unstable_cancelCallback=function(e){e.callback=null},t.unstable_continueExecution=function(){g||f||(g=!0,M(S))},t.unstable_forceFrameRate=function(e){0>e||125<e?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):A=0<e?Math.floor(1e3/e):5},t.unstable_getCurrentPriorityLevel=function(){return p},t.unstable_getFirstCallbackNode=function(){return r(c)},t.unstable_next=function(e){switch(p){case 1:case 2:case 3:var t=3;break;default:t=p}var n=p;p=t;try{return e()}finally{p=n}},t.unstable_pauseExecution=function(){},t.unstable_requestPaint=function(){},t.unstable_runWithPriority=function(e,t){switch(e){case 1:case 2:case 3:case 4:case 5:break;default:e=3}var n=p;p=e;try{return t()}finally{p=n}},t.unstable_scheduleCallback=function(e,i,o){var s=t.unstable_now();switch("object"===typeof o&&null!==o?o="number"===typeof(o=o.delay)&&0<o?s+o:s:o=s,e){case 1:var a=-1;break;case 2:a=250;break;case 5:a=1073741823;break;case 4:a=1e4;break;default:a=5e3}return e={id:d++,callback:i,priorityLevel:e,startTime:o,expirationTime:a=o+a,sortIndex:-1},o>s?(e.sortIndex=o,n(u,e),null===r(c)&&e===r(u)&&(m?(v(C),C=-1):m=!0,O(x,o-s))):(e.sortIndex=a,n(c,e),g||f||(g=!0,M(S))),e},t.unstable_shouldYield=j,t.unstable_wrapCallback=function(e){var t=p;return function(){var n=p;p=t;try{return e.apply(this,arguments)}finally{p=n}}}},48024:(e,t,n)=>{"use strict";e.exports=n(49952)},804:(e,t,n)=>{"use strict";var r=n(56344),i=n(64152),o=n(11040)(),s=n(56948),a=n(97896),l=r("%Math.floor%");e.exports=function(e,t){if("function"!==typeof e)throw new a("`fn` is not a function");if("number"!==typeof t||t<0||t>4294967295||l(t)!==t)throw new a("`length` must be a positive 32-bit integer");var n=arguments.length>2&&!!arguments[2],r=!0,c=!0;if("length"in e&&s){var u=s(e,"length");u&&!u.configurable&&(r=!1),u&&!u.writable&&(c=!1)}return(r||c||!n)&&(o?i(e,"length",t,!0,!0):i(e,"length",t)),e}},14588:(e,t,n)=>{"use strict";var r=n(64152),i=n(11040)(),o=n(53672).functionsHaveConfigurableNames(),s=TypeError;e.exports=function(e,t){if("function"!==typeof e)throw new s("`fn` is not a function");return arguments.length>2&&!!arguments[2]&&!o||(i?r(e,"name",t,!0,!0):r(e,"name",t)),e}},69413:e=>{e.exports=function(e,t,n,r){var i=n?n.call(r,e,t):void 0;if(void 0!==i)return!!i;if(e===t)return!0;if("object"!==typeof e||!e||"object"!==typeof t||!t)return!1;var o=Object.keys(e),s=Object.keys(t);if(o.length!==s.length)return!1;for(var a=Object.prototype.hasOwnProperty.bind(t),l=0;l<o.length;l++){var c=o[l];if(!a(c))return!1;var u=e[c],d=t[c];if(!1===(i=n?n.call(r,u,d,c):void 0)||void 0===i&&u!==d)return!1}return!0}},69456:e=>{"use strict";e.exports={eudist:function(e,t,n){for(var r=e.length,i=0,o=0;o<r;o++){var s=(e[o]||0)-(t[o]||0);i+=s*s}return n?Math.sqrt(i):i},mandist:function(e,t,n){for(var r=e.length,i=0,o=0;o<r;o++)i+=Math.abs((e[o]||0)-(t[o]||0));return n?Math.sqrt(i):i},dist:function(e,t,n){var r=Math.abs(e-t);return n?r:r*r}}},78368:(e,t,n)=>{"use strict";var r=n(69456),i=r.eudist,o=r.dist;e.exports={kmrand:function(e,t){for(var n={},r=[],i=t<<2,o=e.length,s=e[0].length>0;r.length<t&&i-- >0;){var a=e[Math.floor(Math.random()*o)],l=s?a.join("_"):""+a;n[l]||(n[l]=!0,r.push(a))}if(r.length<t)throw new Error("Error initializating clusters");return r},kmpp:function(e,t){var n=e[0].length?i:o,r=[],s=e.length,a=e[0].length>0,l=e[Math.floor(Math.random()*s)];a&&l.join("_");for(r.push(l);r.length<t;){for(var c=[],u=r.length,d=0,h=[],p=0;p<s;p++){for(var f=1/0,g=0;g<u;g++){var m=n(e[p],r[g]);m<=f&&(f=m)}c[p]=f}for(var y=0;y<s;y++)d+=c[y];for(var v=0;v<s;v++)h[v]={i:v,v:e[v],pr:c[v]/d,cs:0};h.sort((function(e,t){return e.pr-t.pr})),h[0].cs=h[0].pr;for(var _=1;_<s;_++)h[_].cs=h[_-1].cs+h[_].pr;for(var b=Math.random(),x=0;x<s-1&&h[x++].cs<b;);r.push(h[x-1].v)}return r}}},33440:(e,t,n)=>{"use strict";var r=n(69456),i=n(78368),o=r.eudist,s=(r.mandist,r.dist,i.kmrand),a=i.kmpp;function l(e,t,n){n=n||[];for(var r=0;r<e;r++)n[r]=t;return n}e.exports=function(e,t,n,r){var i=[],c=[],u=[],d=[],h=!1,p=r||1e4,f=e.length,g=e[0].length,m=g>0,y=[];if(n)i="kmrand"==n?s(e,t):"kmpp"==n?a(e,t):n;else for(var v={};i.length<t;){var _=Math.floor(Math.random()*f);v[_]||(v[_]=!0,i.push(e[_]))}do{l(t,0,y);for(var b=0;b<f;b++){for(var x=1/0,S=0,w=0;w<t;w++){(d=m?o(e[b],i[w]):Math.abs(e[b]-i[w]))<=x&&(x=d,S=w)}u[b]=S,y[S]++}for(var E=[],P=(c=[],0);P<t;P++)E[P]=m?l(g,0,E[P]):0,c[P]=i[P];if(m){for(var C=0;C<t;C++)i[C]=[];for(var A=0;A<f;A++)for(var k=E[u[A]],j=e[A],I=0;I<g;I++)k[I]+=j[I];h=!0;for(var G=0;G<t;G++){for(var T=i[G],M=E[G],O=c[G],R=y[G],D=0;D<g;D++)T[D]=M[D]/R||0;if(h)for(var N=0;N<g;N++)if(O[N]!=T[N]){h=!1;break}}}else{for(var L=0;L<f;L++){E[u[L]]+=e[L]}for(var V=0;V<t;V++)i[V]=E[V]/y[V]||0;h=!0;for(var F=0;F<t;F++)if(c[F]!=i[F]){h=!1;break}}h=h||--p<=0}while(!h);return{it:1e4-p,k:t,idxs:u,centroids:i}}},28920:e=>{const t=/[A-Z\xc0-\xd6\xd8-\xde]?[a-z\xdf-\xf6\xf8-\xff]+(?:['\u2019](?:d|ll|m|re|s|t|ve))?(?=[\xac\xb1\xd7\xf7\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\xbf\u2000-\u206f \t\x0b\f\xa0\ufeff\n\r\u2028\u2029\u1680\u180e\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000]|[A-Z\xc0-\xd6\xd8-\xde]|$)|(?:[A-Z\xc0-\xd6\xd8-\xde]|[^\ud800-\udfff\xac\xb1\xd7\xf7\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\xbf\u2000-\u206f \t\x0b\f\xa0\ufeff\n\r\u2028\u2029\u1680\u180e\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000\d+\u2700-\u27bfa-z\xdf-\xf6\xf8-\xffA-Z\xc0-\xd6\xd8-\xde])+(?:['\u2019](?:D|LL|M|RE|S|T|VE))?(?=[\xac\xb1\xd7\xf7\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\xbf\u2000-\u206f \t\x0b\f\xa0\ufeff\n\r\u2028\u2029\u1680\u180e\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000]|[A-Z\xc0-\xd6\xd8-\xde](?:[a-z\xdf-\xf6\xf8-\xff]|[^\ud800-\udfff\xac\xb1\xd7\xf7\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\xbf\u2000-\u206f \t\x0b\f\xa0\ufeff\n\r\u2028\u2029\u1680\u180e\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000\d+\u2700-\u27bfa-z\xdf-\xf6\xf8-\xffA-Z\xc0-\xd6\xd8-\xde])|$)|[A-Z\xc0-\xd6\xd8-\xde]?(?:[a-z\xdf-\xf6\xf8-\xff]|[^\ud800-\udfff\xac\xb1\xd7\xf7\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\xbf\u2000-\u206f \t\x0b\f\xa0\ufeff\n\r\u2028\u2029\u1680\u180e\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000\d+\u2700-\u27bfa-z\xdf-\xf6\xf8-\xffA-Z\xc0-\xd6\xd8-\xde])+(?:['\u2019](?:d|ll|m|re|s|t|ve))?|[A-Z\xc0-\xd6\xd8-\xde]+(?:['\u2019](?:D|LL|M|RE|S|T|VE))?|\d*(?:1ST|2ND|3RD|(?![123])\dTH)(?=\b|[a-z_])|\d*(?:1st|2nd|3rd|(?![123])\dth)(?=\b|[A-Z_])|\d+|(?:[\u2700-\u27bf]|(?:\ud83c[\udde6-\uddff]){2}|[\ud800-\udbff][\udc00-\udfff])[\ufe0e\ufe0f]?(?:[\u0300-\u036f\ufe20-\ufe2f\u20d0-\u20ff]|\ud83c[\udffb-\udfff])?(?:\u200d(?:[^\ud800-\udfff]|(?:\ud83c[\udde6-\uddff]){2}|[\ud800-\udbff][\udc00-\udfff])[\ufe0e\ufe0f]?(?:[\u0300-\u036f\ufe20-\ufe2f\u20d0-\u20ff]|\ud83c[\udffb-\udfff])?)*/g,n=e=>e.match(t)||[],r=e=>e[0].toUpperCase()+e.slice(1),i=(e,t)=>n(e).join(t).toLowerCase(),o=e=>n(e).reduce(((e,t)=>"".concat(e).concat(e?t[0].toUpperCase()+t.slice(1).toLowerCase():t.toLowerCase())),"");e.exports={words:n,upperFirst:r,camelCase:o,pascalCase:e=>r(o(e)),snakeCase:e=>i(e,"_"),kebabCase:e=>i(e,"-"),sentenceCase:e=>r(i(e," ")),titleCase:e=>n(e).map(r).join(" ")}},53696:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>r});class r{constructor(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:i;if(this.data=e,this.length=this.data.length,this.compare=t,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],t=this.data.pop();return this.length--,this.length>0&&(this.data[0]=t,this._down(0)),e}peek(){return this.data[0]}_up(e){const{data:t,compare:n}=this,r=t[e];for(;e>0;){const i=e-1>>1,o=t[i];if(n(r,o)>=0)break;t[e]=o,e=i}t[e]=r}_down(e){const{data:t,compare:n}=this,r=this.length>>1,i=t[e];for(;e<r;){let r=1+(e<<1),o=t[r];const s=r+1;if(s<this.length&&n(t[s],o)<0&&(r=s,o=t[s]),n(o,i)>=0)break;t[e]=o,e=r}t[e]=i}}function i(e,t){return e<t?-1:e>t?1:0}},36336:e=>{function t(e,t){var n=e.length,r=new Array(n),i={},o=n,s=function(e){for(var t=new Map,n=0,r=e.length;n<r;n++){var i=e[n];t.has(i[0])||t.set(i[0],new Set),t.has(i[1])||t.set(i[1],new Set),t.get(i[0]).add(i[1])}return t}(t),a=function(e){for(var t=new Map,n=0,r=e.length;n<r;n++)t.set(e[n],n);return t}(e);for(t.forEach((function(e){if(!a.has(e[0])||!a.has(e[1]))throw new Error("Unknown node. There is an unknown node in the supplied edges.")}));o--;)i[o]||l(e[o],o,new Set);return r;function l(e,t,o){if(o.has(e)){var c;try{c=", node was:"+JSON.stringify(e)}catch(h){c=""}throw new Error("Cyclic dependency"+c)}if(!a.has(e))throw new Error("Found unknown node. Make sure to provided all involved nodes. Unknown node: "+JSON.stringify(e));if(!i[t]){i[t]=!0;var u=s.get(e)||new Set;if(t=(u=Array.from(u)).length){o.add(e);do{var d=u[--t];l(d,a.get(d),o)}while(t);o.delete(e)}r[--n]=e}}}e.exports=function(e){return t(function(e){for(var t=new Set,n=0,r=e.length;n<r;n++){var i=e[n];t.add(i[0]),t.add(i[1])}return Array.from(t)}(e),e)},e.exports.array=t},42752:function(e,t){!function(e){"use strict";function t(){}function n(e){this.message=e||""}function r(e){this.message=e||""}function i(e){this.message=e||""}function o(){}function s(e){return null===e?Oe:e.color}function a(e){return null===e?null:e.parent}function l(e,t){null!==e&&(e.color=t)}function c(e){return null===e?null:e.left}function u(e){return null===e?null:e.right}function d(){this.root_=null,this.size_=0}function h(){}function p(){this.array_=[],arguments[0]instanceof be&&this.addAll(arguments[0])}function f(){}function g(e){this.message=e||""}function m(){this.array_=[]}"fill"in Array.prototype||Object.defineProperty(Array.prototype,"fill",{configurable:!0,value:function(e){if(void 0===this||null===this)throw new TypeError(this+" is not an object");var t=Object(this),n=Math.max(Math.min(t.length,9007199254740991),0)||0,r=1 in arguments&&parseInt(Number(arguments[1]),10)||0;r=r<0?Math.max(n+r,0):Math.min(r,n);var i=2 in arguments&&void 0!==arguments[2]?parseInt(Number(arguments[2]),10)||0:n;for(i=i<0?Math.max(n+arguments[2],0):Math.min(i,n);r<i;)t[r]=e,++r;return t},writable:!0}),Number.isFinite=Number.isFinite||function(e){return"number"==typeof e&&isFinite(e)},Number.isInteger=Number.isInteger||function(e){return"number"==typeof e&&isFinite(e)&&Math.floor(e)===e},Number.parseFloat=Number.parseFloat||parseFloat,Number.isNaN=Number.isNaN||function(e){return e!=e},Math.trunc=Math.trunc||function(e){return e<0?Math.ceil(e):Math.floor(e)};var y=function(){};y.prototype.interfaces_=function(){return[]},y.prototype.getClass=function(){return y},y.prototype.equalsWithTolerance=function(e,t,n){return Math.abs(e-t)<=n};var v=function(e){function t(t){e.call(this,t),this.name="IllegalArgumentException",this.message=t,this.stack=(new e).stack}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t}(Error),_=function(){},b={MAX_VALUE:{configurable:!0}};_.isNaN=function(e){return Number.isNaN(e)},_.doubleToLongBits=function(e){return e},_.longBitsToDouble=function(e){return e},_.isInfinite=function(e){return!Number.isFinite(e)},b.MAX_VALUE.get=function(){return Number.MAX_VALUE},Object.defineProperties(_,b);var x=function(){},S=function(){},w=function(){},E=function e(){if(this.x=null,this.y=null,this.z=null,0===arguments.length)this.x=0,this.y=0,this.z=e.NULL_ORDINATE;else if(1===arguments.length){var t=arguments[0];this.x=t.x,this.y=t.y,this.z=t.z}else 2===arguments.length?(this.x=arguments[0],this.y=arguments[1],this.z=e.NULL_ORDINATE):3===arguments.length&&(this.x=arguments[0],this.y=arguments[1],this.z=arguments[2])},P={DimensionalComparator:{configurable:!0},serialVersionUID:{configurable:!0},NULL_ORDINATE:{configurable:!0},X:{configurable:!0},Y:{configurable:!0},Z:{configurable:!0}};E.prototype.setOrdinate=function(e,t){switch(e){case E.X:this.x=t;break;case E.Y:this.y=t;break;case E.Z:this.z=t;break;default:throw new v("Invalid ordinate index: "+e)}},E.prototype.equals2D=function(){if(1===arguments.length){var e=arguments[0];return this.x===e.x&&this.y===e.y}if(2===arguments.length){var t=arguments[0],n=arguments[1];return!!y.equalsWithTolerance(this.x,t.x,n)&&!!y.equalsWithTolerance(this.y,t.y,n)}},E.prototype.getOrdinate=function(e){switch(e){case E.X:return this.x;case E.Y:return this.y;case E.Z:return this.z}throw new v("Invalid ordinate index: "+e)},E.prototype.equals3D=function(e){return this.x===e.x&&this.y===e.y&&(this.z===e.z||_.isNaN(this.z))&&_.isNaN(e.z)},E.prototype.equals=function(e){return e instanceof E&&this.equals2D(e)},E.prototype.equalInZ=function(e,t){return y.equalsWithTolerance(this.z,e.z,t)},E.prototype.compareTo=function(e){var t=e;return this.x<t.x?-1:this.x>t.x?1:this.y<t.y?-1:this.y>t.y?1:0},E.prototype.clone=function(){},E.prototype.copy=function(){return new E(this)},E.prototype.toString=function(){return"("+this.x+", "+this.y+", "+this.z+")"},E.prototype.distance3D=function(e){var t=this.x-e.x,n=this.y-e.y,r=this.z-e.z;return Math.sqrt(t*t+n*n+r*r)},E.prototype.distance=function(e){var t=this.x-e.x,n=this.y-e.y;return Math.sqrt(t*t+n*n)},E.prototype.hashCode=function(){var e=17;return 37*(e=37*e+E.hashCode(this.x))+E.hashCode(this.y)},E.prototype.setCoordinate=function(e){this.x=e.x,this.y=e.y,this.z=e.z},E.prototype.interfaces_=function(){return[x,S,t]},E.prototype.getClass=function(){return E},E.hashCode=function(){if(1===arguments.length){var e=arguments[0],t=_.doubleToLongBits(e);return Math.trunc((t^t)>>>32)}},P.DimensionalComparator.get=function(){return C},P.serialVersionUID.get=function(){return 0x5cbf2c235c7e5800},P.NULL_ORDINATE.get=function(){return _.NaN},P.X.get=function(){return 0},P.Y.get=function(){return 1},P.Z.get=function(){return 2},Object.defineProperties(E,P);var C=function(e){if(this._dimensionsToTest=2,0===arguments.length);else if(1===arguments.length){var t=arguments[0];if(2!==t&&3!==t)throw new v("only 2 or 3 dimensions may be specified");this._dimensionsToTest=t}};C.prototype.compare=function(e,t){var n=e,r=t,i=C.compare(n.x,r.x);if(0!==i)return i;var o=C.compare(n.y,r.y);return 0!==o?o:this._dimensionsToTest<=2?0:C.compare(n.z,r.z)},C.prototype.interfaces_=function(){return[w]},C.prototype.getClass=function(){return C},C.compare=function(e,t){return e<t?-1:e>t?1:_.isNaN(e)?_.isNaN(t)?0:-1:_.isNaN(t)?1:0};var A=function(){};A.prototype.create=function(){},A.prototype.interfaces_=function(){return[]},A.prototype.getClass=function(){return A};var k=function(){},j={INTERIOR:{configurable:!0},BOUNDARY:{configurable:!0},EXTERIOR:{configurable:!0},NONE:{configurable:!0}};k.prototype.interfaces_=function(){return[]},k.prototype.getClass=function(){return k},k.toLocationSymbol=function(e){switch(e){case k.EXTERIOR:return"e";case k.BOUNDARY:return"b";case k.INTERIOR:return"i";case k.NONE:return"-"}throw new v("Unknown location value: "+e)},j.INTERIOR.get=function(){return 0},j.BOUNDARY.get=function(){return 1},j.EXTERIOR.get=function(){return 2},j.NONE.get=function(){return-1},Object.defineProperties(k,j);var I=function(e,t){return e.interfaces_&&e.interfaces_().indexOf(t)>-1},G=function(){},T={LOG_10:{configurable:!0}};G.prototype.interfaces_=function(){return[]},G.prototype.getClass=function(){return G},G.log10=function(e){var t=Math.log(e);return _.isInfinite(t)||_.isNaN(t)?t:t/G.LOG_10},G.min=function(e,t,n,r){var i=e;return t<i&&(i=t),n<i&&(i=n),r<i&&(i=r),i},G.clamp=function(){if("number"==typeof arguments[2]&&"number"==typeof arguments[0]&&"number"==typeof arguments[1]){var e=arguments[0],t=arguments[1],n=arguments[2];return e<t?t:e>n?n:e}if(Number.isInteger(arguments[2])&&Number.isInteger(arguments[0])&&Number.isInteger(arguments[1])){var r=arguments[0],i=arguments[1],o=arguments[2];return r<i?i:r>o?o:r}},G.wrap=function(e,t){return e<0?t- -e%t:e%t},G.max=function(){if(3===arguments.length){var e=arguments[1],t=arguments[2],n=arguments[0];return e>n&&(n=e),t>n&&(n=t),n}if(4===arguments.length){var r=arguments[1],i=arguments[2],o=arguments[3],s=arguments[0];return r>s&&(s=r),i>s&&(s=i),o>s&&(s=o),s}},G.average=function(e,t){return(e+t)/2},T.LOG_10.get=function(){return Math.log(10)},Object.defineProperties(G,T);var M=function(e){this.str=e};M.prototype.append=function(e){this.str+=e},M.prototype.setCharAt=function(e,t){this.str=this.str.substr(0,e)+t+this.str.substr(e+1)},M.prototype.toString=function(e){return this.str};var O=function(e){this.value=e};O.prototype.intValue=function(){return this.value},O.prototype.compareTo=function(e){return this.value<e?-1:this.value>e?1:0},O.isNaN=function(e){return Number.isNaN(e)};var R=function(){};R.isWhitespace=function(e){return e<=32&&e>=0||127===e},R.toUpperCase=function(e){return e.toUpperCase()};var D=function e(){if(this._hi=0,this._lo=0,0===arguments.length)this.init(0);else if(1===arguments.length)if("number"==typeof arguments[0]){var t=arguments[0];this.init(t)}else if(arguments[0]instanceof e){var n=arguments[0];this.init(n)}else"string"==typeof arguments[0]&&e.call(this,e.parse(arguments[0]));else if(2===arguments.length){var r=arguments[0],i=arguments[1];this.init(r,i)}},N={PI:{configurable:!0},TWO_PI:{configurable:!0},PI_2:{configurable:!0},E:{configurable:!0},NaN:{configurable:!0},EPS:{configurable:!0},SPLIT:{configurable:!0},MAX_PRINT_DIGITS:{configurable:!0},TEN:{configurable:!0},ONE:{configurable:!0},SCI_NOT_EXPONENT_CHAR:{configurable:!0},SCI_NOT_ZERO:{configurable:!0}};D.prototype.le=function(e){return(this._hi<e._hi||this._hi===e._hi)&&this._lo<=e._lo},D.prototype.extractSignificantDigits=function(e,t){var n=this.abs(),r=D.magnitude(n._hi),i=D.TEN.pow(r);(n=n.divide(i)).gt(D.TEN)?(n=n.divide(D.TEN),r+=1):n.lt(D.ONE)&&(n=n.multiply(D.TEN),r-=1);for(var o=r+1,s=new M,a=D.MAX_PRINT_DIGITS-1,l=0;l<=a;l++){e&&l===o&&s.append(".");var c=Math.trunc(n._hi);if(c<0)break;var u=!1,d=0;c>9?(u=!0,d="9"):d="0"+c,s.append(d),n=n.subtract(D.valueOf(c)).multiply(D.TEN),u&&n.selfAdd(D.TEN);var h=!0,p=D.magnitude(n._hi);if(p<0&&Math.abs(p)>=a-l&&(h=!1),!h)break}return t[0]=r,s.toString()},D.prototype.sqr=function(){return this.multiply(this)},D.prototype.doubleValue=function(){return this._hi+this._lo},D.prototype.subtract=function(){if(arguments[0]instanceof D){var e=arguments[0];return this.add(e.negate())}if("number"==typeof arguments[0]){var t=arguments[0];return this.add(-t)}},D.prototype.equals=function(){if(1===arguments.length){var e=arguments[0];return this._hi===e._hi&&this._lo===e._lo}},D.prototype.isZero=function(){return 0===this._hi&&0===this._lo},D.prototype.selfSubtract=function(){if(arguments[0]instanceof D){var e=arguments[0];return this.isNaN()?this:this.selfAdd(-e._hi,-e._lo)}if("number"==typeof arguments[0]){var t=arguments[0];return this.isNaN()?this:this.selfAdd(-t,0)}},D.prototype.getSpecialNumberString=function(){return this.isZero()?"0.0":this.isNaN()?"NaN ":null},D.prototype.min=function(e){return this.le(e)?this:e},D.prototype.selfDivide=function(){if(1===arguments.length){if(arguments[0]instanceof D){var e=arguments[0];return this.selfDivide(e._hi,e._lo)}if("number"==typeof arguments[0]){var t=arguments[0];return this.selfDivide(t,0)}}else if(2===arguments.length){var n=arguments[0],r=arguments[1],i=null,o=null,s=null,a=null,l=null,c=null,u=null,d=null;return l=this._hi/n,d=(i=(c=D.SPLIT*l)-(i=c-l))*(s=(d=D.SPLIT*n)-(s=d-n))-(u=l*n)+i*(a=n-s)+(o=l-i)*s+o*a,d=l+(c=(this._hi-u-d+this._lo-l*r)/n),this._hi=d,this._lo=l-d+c,this}},D.prototype.dump=function(){return"DD<"+this._hi+", "+this._lo+">"},D.prototype.divide=function(){if(arguments[0]instanceof D){var e=arguments[0],t=null,n=null,r=null,i=null,o=null,s=null,a=null,l=null;return n=(o=this._hi/e._hi)-(t=(s=D.SPLIT*o)-(t=s-o)),l=t*(r=(l=D.SPLIT*e._hi)-(r=l-e._hi))-(a=o*e._hi)+t*(i=e._hi-r)+n*r+n*i,s=(this._hi-a-l+this._lo-o*e._lo)/e._hi,new D(l=o+s,o-l+s)}if("number"==typeof arguments[0]){var c=arguments[0];return _.isNaN(c)?D.createNaN():D.copy(this).selfDivide(c,0)}},D.prototype.ge=function(e){return(this._hi>e._hi||this._hi===e._hi)&&this._lo>=e._lo},D.prototype.pow=function(e){if(0===e)return D.valueOf(1);var t=new D(this),n=D.valueOf(1),r=Math.abs(e);if(r>1)for(;r>0;)r%2==1&&n.selfMultiply(t),(r/=2)>0&&(t=t.sqr());else n=t;return e<0?n.reciprocal():n},D.prototype.ceil=function(){if(this.isNaN())return D.NaN;var e=Math.ceil(this._hi),t=0;return e===this._hi&&(t=Math.ceil(this._lo)),new D(e,t)},D.prototype.compareTo=function(e){var t=e;return this._hi<t._hi?-1:this._hi>t._hi?1:this._lo<t._lo?-1:this._lo>t._lo?1:0},D.prototype.rint=function(){return this.isNaN()?this:this.add(.5).floor()},D.prototype.setValue=function(){if(arguments[0]instanceof D){var e=arguments[0];return this.init(e),this}if("number"==typeof arguments[0]){var t=arguments[0];return this.init(t),this}},D.prototype.max=function(e){return this.ge(e)?this:e},D.prototype.sqrt=function(){if(this.isZero())return D.valueOf(0);if(this.isNegative())return D.NaN;var e=1/Math.sqrt(this._hi),t=this._hi*e,n=D.valueOf(t),r=this.subtract(n.sqr())._hi*(.5*e);return n.add(r)},D.prototype.selfAdd=function(){if(1===arguments.length){if(arguments[0]instanceof D){var e=arguments[0];return this.selfAdd(e._hi,e._lo)}if("number"==typeof arguments[0]){var t=arguments[0],n=null,r=null,i=null,o=null,s=null,a=null;return o=(i=this._hi+t)-(s=i-this._hi),r=(a=(o=t-s+(this._hi-o))+this._lo)+(i-(n=i+a)),this._hi=n+r,this._lo=r+(n-this._hi),this}}else if(2===arguments.length){var l=arguments[0],c=arguments[1],u=null,d=null,h=null,p=null,f=null,g=null,m=null;p=this._hi+l,d=this._lo+c,f=p-(g=p-this._hi),h=d-(m=d-this._lo);var y=(u=p+(g=(f=l-g+(this._hi-f))+d))+(g=(h=c-m+(this._lo-h))+(g+(p-u))),v=g+(u-y);return this._hi=y,this._lo=v,this}},D.prototype.selfMultiply=function(){if(1===arguments.length){if(arguments[0]instanceof D){var e=arguments[0];return this.selfMultiply(e._hi,e._lo)}if("number"==typeof arguments[0]){var t=arguments[0];return this.selfMultiply(t,0)}}else if(2===arguments.length){var n=arguments[0],r=arguments[1],i=null,o=null,s=null,a=null,l=null,c=null;i=(l=D.SPLIT*this._hi)-this._hi,c=D.SPLIT*n,i=l-i,o=this._hi-i,s=c-n;var u=(l=this._hi*n)+(c=i*(s=c-s)-l+i*(a=n-s)+o*s+o*a+(this._hi*r+this._lo*n)),d=c+(i=l-u);return this._hi=u,this._lo=d,this}},D.prototype.selfSqr=function(){return this.selfMultiply(this)},D.prototype.floor=function(){if(this.isNaN())return D.NaN;var e=Math.floor(this._hi),t=0;return e===this._hi&&(t=Math.floor(this._lo)),new D(e,t)},D.prototype.negate=function(){return this.isNaN()?this:new D(-this._hi,-this._lo)},D.prototype.clone=function(){},D.prototype.multiply=function(){if(arguments[0]instanceof D){var e=arguments[0];return e.isNaN()?D.createNaN():D.copy(this).selfMultiply(e)}if("number"==typeof arguments[0]){var t=arguments[0];return _.isNaN(t)?D.createNaN():D.copy(this).selfMultiply(t,0)}},D.prototype.isNaN=function(){return _.isNaN(this._hi)},D.prototype.intValue=function(){return Math.trunc(this._hi)},D.prototype.toString=function(){var e=D.magnitude(this._hi);return e>=-3&&e<=20?this.toStandardNotation():this.toSciNotation()},D.prototype.toStandardNotation=function(){var e=this.getSpecialNumberString();if(null!==e)return e;var t=new Array(1).fill(null),n=this.extractSignificantDigits(!0,t),r=t[0]+1,i=n;if("."===n.charAt(0))i="0"+n;else if(r<0)i="0."+D.stringOfChar("0",-r)+n;else if(-1===n.indexOf(".")){var o=r-n.length;i=n+D.stringOfChar("0",o)+".0"}return this.isNegative()?"-"+i:i},D.prototype.reciprocal=function(){var e=null,t=null,n=null,r=null,i=null,o=null,s=null,a=null;t=(i=1/this._hi)-(e=(o=D.SPLIT*i)-(e=o-i)),n=(a=D.SPLIT*this._hi)-this._hi;var l=i+(o=(1-(s=i*this._hi)-(a=e*(n=a-n)-s+e*(r=this._hi-n)+t*n+t*r)-i*this._lo)/this._hi);return new D(l,i-l+o)},D.prototype.toSciNotation=function(){if(this.isZero())return D.SCI_NOT_ZERO;var e=this.getSpecialNumberString();if(null!==e)return e;var t=new Array(1).fill(null),n=this.extractSignificantDigits(!1,t),r=D.SCI_NOT_EXPONENT_CHAR+t[0];if("0"===n.charAt(0))throw new Error("Found leading zero: "+n);var i="";n.length>1&&(i=n.substring(1));var o=n.charAt(0)+"."+i;return this.isNegative()?"-"+o+r:o+r},D.prototype.abs=function(){return this.isNaN()?D.NaN:this.isNegative()?this.negate():new D(this)},D.prototype.isPositive=function(){return(this._hi>0||0===this._hi)&&this._lo>0},D.prototype.lt=function(e){return(this._hi<e._hi||this._hi===e._hi)&&this._lo<e._lo},D.prototype.add=function(){if(arguments[0]instanceof D){var e=arguments[0];return D.copy(this).selfAdd(e)}if("number"==typeof arguments[0]){var t=arguments[0];return D.copy(this).selfAdd(t)}},D.prototype.init=function(){if(1===arguments.length){if("number"==typeof arguments[0]){var e=arguments[0];this._hi=e,this._lo=0}else if(arguments[0]instanceof D){var t=arguments[0];this._hi=t._hi,this._lo=t._lo}}else if(2===arguments.length){var n=arguments[0],r=arguments[1];this._hi=n,this._lo=r}},D.prototype.gt=function(e){return(this._hi>e._hi||this._hi===e._hi)&&this._lo>e._lo},D.prototype.isNegative=function(){return(this._hi<0||0===this._hi)&&this._lo<0},D.prototype.trunc=function(){return this.isNaN()?D.NaN:this.isPositive()?this.floor():this.ceil()},D.prototype.signum=function(){return this._hi>0?1:this._hi<0?-1:this._lo>0?1:this._lo<0?-1:0},D.prototype.interfaces_=function(){return[t,x,S]},D.prototype.getClass=function(){return D},D.sqr=function(e){return D.valueOf(e).selfMultiply(e)},D.valueOf=function(){if("string"==typeof arguments[0]){var e=arguments[0];return D.parse(e)}if("number"==typeof arguments[0])return new D(arguments[0])},D.sqrt=function(e){return D.valueOf(e).sqrt()},D.parse=function(e){for(var t=0,n=e.length;R.isWhitespace(e.charAt(t));)t++;var r=!1;if(t<n){var i=e.charAt(t);"-"!==i&&"+"!==i||(t++,"-"===i&&(r=!0))}for(var o=new D,s=0,a=0,l=0;!(t>=n);){var c=e.charAt(t);if(t++,R.isDigit(c)){var u=c-"0";o.selfMultiply(D.TEN),o.selfAdd(u),s++}else{if("."!==c){if("e"===c||"E"===c){var d=e.substring(t);try{l=O.parseInt(d)}catch(t){throw t instanceof Error?new Error("Invalid exponent "+d+" in string "+e):t}break}throw new Error("Unexpected character '"+c+"' at position "+t+" in string "+e)}a=s}}var h=o,p=s-a-l;if(0===p)h=o;else if(p>0){var f=D.TEN.pow(p);h=o.divide(f)}else if(p<0){var g=D.TEN.pow(-p);h=o.multiply(g)}return r?h.negate():h},D.createNaN=function(){return new D(_.NaN,_.NaN)},D.copy=function(e){return new D(e)},D.magnitude=function(e){var t=Math.abs(e),n=Math.log(t)/Math.log(10),r=Math.trunc(Math.floor(n));return 10*Math.pow(10,r)<=t&&(r+=1),r},D.stringOfChar=function(e,t){for(var n=new M,r=0;r<t;r++)n.append(e);return n.toString()},N.PI.get=function(){return new D(3.141592653589793,12246467991473532e-32)},N.TWO_PI.get=function(){return new D(6.283185307179586,24492935982947064e-32)},N.PI_2.get=function(){return new D(1.5707963267948966,6123233995736766e-32)},N.E.get=function(){return new D(2.718281828459045,14456468917292502e-32)},N.NaN.get=function(){return new D(_.NaN,_.NaN)},N.EPS.get=function(){return 123259516440783e-46},N.SPLIT.get=function(){return 134217729},N.MAX_PRINT_DIGITS.get=function(){return 32},N.TEN.get=function(){return D.valueOf(10)},N.ONE.get=function(){return D.valueOf(1)},N.SCI_NOT_EXPONENT_CHAR.get=function(){return"E"},N.SCI_NOT_ZERO.get=function(){return"0.0E0"},Object.defineProperties(D,N);var L=function(){},V={DP_SAFE_EPSILON:{configurable:!0}};L.prototype.interfaces_=function(){return[]},L.prototype.getClass=function(){return L},L.orientationIndex=function(e,t,n){var r=L.orientationIndexFilter(e,t,n);if(r<=1)return r;var i=D.valueOf(t.x).selfAdd(-e.x),o=D.valueOf(t.y).selfAdd(-e.y),s=D.valueOf(n.x).selfAdd(-t.x),a=D.valueOf(n.y).selfAdd(-t.y);return i.selfMultiply(a).selfSubtract(o.selfMultiply(s)).signum()},L.signOfDet2x2=function(e,t,n,r){return e.multiply(r).selfSubtract(t.multiply(n)).signum()},L.intersection=function(e,t,n,r){var i=D.valueOf(r.y).selfSubtract(n.y).selfMultiply(D.valueOf(t.x).selfSubtract(e.x)),o=D.valueOf(r.x).selfSubtract(n.x).selfMultiply(D.valueOf(t.y).selfSubtract(e.y)),s=i.subtract(o),a=D.valueOf(r.x).selfSubtract(n.x).selfMultiply(D.valueOf(e.y).selfSubtract(n.y)),l=D.valueOf(r.y).selfSubtract(n.y).selfMultiply(D.valueOf(e.x).selfSubtract(n.x)),c=a.subtract(l).selfDivide(s).doubleValue(),u=D.valueOf(e.x).selfAdd(D.valueOf(t.x).selfSubtract(e.x).selfMultiply(c)).doubleValue(),d=D.valueOf(t.x).selfSubtract(e.x).selfMultiply(D.valueOf(e.y).selfSubtract(n.y)),h=D.valueOf(t.y).selfSubtract(e.y).selfMultiply(D.valueOf(e.x).selfSubtract(n.x)),p=d.subtract(h).selfDivide(s).doubleValue(),f=D.valueOf(n.y).selfAdd(D.valueOf(r.y).selfSubtract(n.y).selfMultiply(p)).doubleValue();return new E(u,f)},L.orientationIndexFilter=function(e,t,n){var r=null,i=(e.x-n.x)*(t.y-n.y),o=(e.y-n.y)*(t.x-n.x),s=i-o;if(i>0){if(o<=0)return L.signum(s);r=i+o}else{if(!(i<0))return L.signum(s);if(o>=0)return L.signum(s);r=-i-o}var a=L.DP_SAFE_EPSILON*r;return s>=a||-s>=a?L.signum(s):2},L.signum=function(e){return e>0?1:e<0?-1:0},V.DP_SAFE_EPSILON.get=function(){return 1e-15},Object.defineProperties(L,V);var F=function(){},z={X:{configurable:!0},Y:{configurable:!0},Z:{configurable:!0},M:{configurable:!0}};z.X.get=function(){return 0},z.Y.get=function(){return 1},z.Z.get=function(){return 2},z.M.get=function(){return 3},F.prototype.setOrdinate=function(e,t,n){},F.prototype.size=function(){},F.prototype.getOrdinate=function(e,t){},F.prototype.getCoordinate=function(){},F.prototype.getCoordinateCopy=function(e){},F.prototype.getDimension=function(){},F.prototype.getX=function(e){},F.prototype.clone=function(){},F.prototype.expandEnvelope=function(e){},F.prototype.copy=function(){},F.prototype.getY=function(e){},F.prototype.toCoordinateArray=function(){},F.prototype.interfaces_=function(){return[S]},F.prototype.getClass=function(){return F},Object.defineProperties(F,z);var B=function(){},U=function(e){function t(){e.call(this,"Projective point not representable on the Cartesian plane.")}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.interfaces_=function(){return[]},t.prototype.getClass=function(){return t},t}(B),W=function(){};W.arraycopy=function(e,t,n,r,i){for(var o=0,s=t;s<t+i;s++)n[r+o]=e[s],o++},W.getProperty=function(e){return{"line.separator":"\n"}[e]};var H=function e(){if(this.x=null,this.y=null,this.w=null,0===arguments.length)this.x=0,this.y=0,this.w=1;else if(1===arguments.length){var t=arguments[0];this.x=t.x,this.y=t.y,this.w=1}else if(2===arguments.length){if("number"==typeof arguments[0]&&"number"==typeof arguments[1]){var n=arguments[0],r=arguments[1];this.x=n,this.y=r,this.w=1}else if(arguments[0]instanceof e&&arguments[1]instanceof e){var i=arguments[0],o=arguments[1];this.x=i.y*o.w-o.y*i.w,this.y=o.x*i.w-i.x*o.w,this.w=i.x*o.y-o.x*i.y}else if(arguments[0]instanceof E&&arguments[1]instanceof E){var s=arguments[0],a=arguments[1];this.x=s.y-a.y,this.y=a.x-s.x,this.w=s.x*a.y-a.x*s.y}}else if(3===arguments.length){var l=arguments[0],c=arguments[1],u=arguments[2];this.x=l,this.y=c,this.w=u}else if(4===arguments.length){var d=arguments[0],h=arguments[1],p=arguments[2],f=arguments[3],g=d.y-h.y,m=h.x-d.x,y=d.x*h.y-h.x*d.y,v=p.y-f.y,_=f.x-p.x,b=p.x*f.y-f.x*p.y;this.x=m*b-_*y,this.y=v*y-g*b,this.w=g*_-v*m}};H.prototype.getY=function(){var e=this.y/this.w;if(_.isNaN(e)||_.isInfinite(e))throw new U;return e},H.prototype.getX=function(){var e=this.x/this.w;if(_.isNaN(e)||_.isInfinite(e))throw new U;return e},H.prototype.getCoordinate=function(){var e=new E;return e.x=this.getX(),e.y=this.getY(),e},H.prototype.interfaces_=function(){return[]},H.prototype.getClass=function(){return H},H.intersection=function(e,t,n,r){var i=e.y-t.y,o=t.x-e.x,s=e.x*t.y-t.x*e.y,a=n.y-r.y,l=r.x-n.x,c=n.x*r.y-r.x*n.y,u=i*l-a*o,d=(o*c-l*s)/u,h=(a*s-i*c)/u;if(_.isNaN(d)||_.isInfinite(d)||_.isNaN(h)||_.isInfinite(h))throw new U;return new E(d,h)};var q=function e(){if(this._minx=null,this._maxx=null,this._miny=null,this._maxy=null,0===arguments.length)this.init();else if(1===arguments.length){if(arguments[0]instanceof E){var t=arguments[0];this.init(t.x,t.x,t.y,t.y)}else if(arguments[0]instanceof e){var n=arguments[0];this.init(n)}}else if(2===arguments.length){var r=arguments[0],i=arguments[1];this.init(r.x,i.x,r.y,i.y)}else if(4===arguments.length){var o=arguments[0],s=arguments[1],a=arguments[2],l=arguments[3];this.init(o,s,a,l)}},X={serialVersionUID:{configurable:!0}};q.prototype.getArea=function(){return this.getWidth()*this.getHeight()},q.prototype.equals=function(e){if(!(e instanceof q))return!1;var t=e;return this.isNull()?t.isNull():this._maxx===t.getMaxX()&&this._maxy===t.getMaxY()&&this._minx===t.getMinX()&&this._miny===t.getMinY()},q.prototype.intersection=function(e){if(this.isNull()||e.isNull()||!this.intersects(e))return new q;var t=this._minx>e._minx?this._minx:e._minx,n=this._miny>e._miny?this._miny:e._miny,r=this._maxx<e._maxx?this._maxx:e._maxx,i=this._maxy<e._maxy?this._maxy:e._maxy;return new q(t,r,n,i)},q.prototype.isNull=function(){return this._maxx<this._minx},q.prototype.getMaxX=function(){return this._maxx},q.prototype.covers=function(){if(1===arguments.length){if(arguments[0]instanceof E){var e=arguments[0];return this.covers(e.x,e.y)}if(arguments[0]instanceof q){var t=arguments[0];return!this.isNull()&&!t.isNull()&&t.getMinX()>=this._minx&&t.getMaxX()<=this._maxx&&t.getMinY()>=this._miny&&t.getMaxY()<=this._maxy}}else if(2===arguments.length){var n=arguments[0],r=arguments[1];return!this.isNull()&&n>=this._minx&&n<=this._maxx&&r>=this._miny&&r<=this._maxy}},q.prototype.intersects=function(){if(1===arguments.length){if(arguments[0]instanceof q){var e=arguments[0];return!this.isNull()&&!e.isNull()&&!(e._minx>this._maxx||e._maxx<this._minx||e._miny>this._maxy||e._maxy<this._miny)}if(arguments[0]instanceof E){var t=arguments[0];return this.intersects(t.x,t.y)}}else if(2===arguments.length){var n=arguments[0],r=arguments[1];return!this.isNull()&&!(n>this._maxx||n<this._minx||r>this._maxy||r<this._miny)}},q.prototype.getMinY=function(){return this._miny},q.prototype.getMinX=function(){return this._minx},q.prototype.expandToInclude=function(){if(1===arguments.length){if(arguments[0]instanceof E){var e=arguments[0];this.expandToInclude(e.x,e.y)}else if(arguments[0]instanceof q){var t=arguments[0];if(t.isNull())return null;this.isNull()?(this._minx=t.getMinX(),this._maxx=t.getMaxX(),this._miny=t.getMinY(),this._maxy=t.getMaxY()):(t._minx<this._minx&&(this._minx=t._minx),t._maxx>this._maxx&&(this._maxx=t._maxx),t._miny<this._miny&&(this._miny=t._miny),t._maxy>this._maxy&&(this._maxy=t._maxy))}}else if(2===arguments.length){var n=arguments[0],r=arguments[1];this.isNull()?(this._minx=n,this._maxx=n,this._miny=r,this._maxy=r):(n<this._minx&&(this._minx=n),n>this._maxx&&(this._maxx=n),r<this._miny&&(this._miny=r),r>this._maxy&&(this._maxy=r))}},q.prototype.minExtent=function(){if(this.isNull())return 0;var e=this.getWidth(),t=this.getHeight();return e<t?e:t},q.prototype.getWidth=function(){return this.isNull()?0:this._maxx-this._minx},q.prototype.compareTo=function(e){var t=e;return this.isNull()?t.isNull()?0:-1:t.isNull()?1:this._minx<t._minx?-1:this._minx>t._minx?1:this._miny<t._miny?-1:this._miny>t._miny?1:this._maxx<t._maxx?-1:this._maxx>t._maxx?1:this._maxy<t._maxy?-1:this._maxy>t._maxy?1:0},q.prototype.translate=function(e,t){if(this.isNull())return null;this.init(this.getMinX()+e,this.getMaxX()+e,this.getMinY()+t,this.getMaxY()+t)},q.prototype.toString=function(){return"Env["+this._minx+" : "+this._maxx+", "+this._miny+" : "+this._maxy+"]"},q.prototype.setToNull=function(){this._minx=0,this._maxx=-1,this._miny=0,this._maxy=-1},q.prototype.getHeight=function(){return this.isNull()?0:this._maxy-this._miny},q.prototype.maxExtent=function(){if(this.isNull())return 0;var e=this.getWidth(),t=this.getHeight();return e>t?e:t},q.prototype.expandBy=function(){if(1===arguments.length){var e=arguments[0];this.expandBy(e,e)}else if(2===arguments.length){var t=arguments[0],n=arguments[1];if(this.isNull())return null;this._minx-=t,this._maxx+=t,this._miny-=n,this._maxy+=n,(this._minx>this._maxx||this._miny>this._maxy)&&this.setToNull()}},q.prototype.contains=function(){if(1===arguments.length){if(arguments[0]instanceof q){var e=arguments[0];return this.covers(e)}if(arguments[0]instanceof E){var t=arguments[0];return this.covers(t)}}else if(2===arguments.length){var n=arguments[0],r=arguments[1];return this.covers(n,r)}},q.prototype.centre=function(){return this.isNull()?null:new E((this.getMinX()+this.getMaxX())/2,(this.getMinY()+this.getMaxY())/2)},q.prototype.init=function(){if(0===arguments.length)this.setToNull();else if(1===arguments.length){if(arguments[0]instanceof E){var e=arguments[0];this.init(e.x,e.x,e.y,e.y)}else if(arguments[0]instanceof q){var t=arguments[0];this._minx=t._minx,this._maxx=t._maxx,this._miny=t._miny,this._maxy=t._maxy}}else if(2===arguments.length){var n=arguments[0],r=arguments[1];this.init(n.x,r.x,n.y,r.y)}else if(4===arguments.length){var i=arguments[0],o=arguments[1],s=arguments[2],a=arguments[3];i<o?(this._minx=i,this._maxx=o):(this._minx=o,this._maxx=i),s<a?(this._miny=s,this._maxy=a):(this._miny=a,this._maxy=s)}},q.prototype.getMaxY=function(){return this._maxy},q.prototype.distance=function(e){if(this.intersects(e))return 0;var t=0;this._maxx<e._minx?t=e._minx-this._maxx:this._minx>e._maxx&&(t=this._minx-e._maxx);var n=0;return this._maxy<e._miny?n=e._miny-this._maxy:this._miny>e._maxy&&(n=this._miny-e._maxy),0===t?n:0===n?t:Math.sqrt(t*t+n*n)},q.prototype.hashCode=function(){var e=17;return 37*(e=37*(e=37*(e=37*e+E.hashCode(this._minx))+E.hashCode(this._maxx))+E.hashCode(this._miny))+E.hashCode(this._maxy)},q.prototype.interfaces_=function(){return[x,t]},q.prototype.getClass=function(){return q},q.intersects=function(){if(3===arguments.length){var e=arguments[0],t=arguments[1],n=arguments[2];return n.x>=(e.x<t.x?e.x:t.x)&&n.x<=(e.x>t.x?e.x:t.x)&&n.y>=(e.y<t.y?e.y:t.y)&&n.y<=(e.y>t.y?e.y:t.y)}if(4===arguments.length){var r=arguments[0],i=arguments[1],o=arguments[2],s=arguments[3],a=Math.min(o.x,s.x),l=Math.max(o.x,s.x),c=Math.min(r.x,i.x),u=Math.max(r.x,i.x);return!(c>l)&&!(u<a)&&(a=Math.min(o.y,s.y),l=Math.max(o.y,s.y),c=Math.min(r.y,i.y),u=Math.max(r.y,i.y),!(c>l)&&!(u<a))}},X.serialVersionUID.get=function(){return 0x51845cd552189800},Object.defineProperties(q,X);var Y={typeStr:/^\s*(\w+)\s*\(\s*(.*)\s*\)\s*$/,emptyTypeStr:/^\s*(\w+)\s*EMPTY\s*$/,spaces:/\s+/,parenComma:/\)\s*,\s*\(/,doubleParenComma:/\)\s*\)\s*,\s*\(\s*\(/,trimParens:/^\s*\(?(.*?)\)?\s*$/},K=function(e){this.geometryFactory=e||new yt};K.prototype.read=function(e){var t,n,r;e=e.replace(/[\n\r]/g," ");var i=Y.typeStr.exec(e);if(-1!==e.search("EMPTY")&&((i=Y.emptyTypeStr.exec(e))[2]=void 0),i&&(n=i[1].toLowerCase(),r=i[2],$[n]&&(t=$[n].apply(this,[r]))),void 0===t)throw new Error("Could not parse WKT "+e);return t},K.prototype.write=function(e){return this.extractGeometry(e)},K.prototype.extractGeometry=function(e){var t=e.getGeometryType().toLowerCase();if(!Z[t])return null;var n=t.toUpperCase();return e.isEmpty()?n+" EMPTY":n+"("+Z[t].apply(this,[e])+")"};var Z={coordinate:function(e){return e.x+" "+e.y},point:function(e){return Z.coordinate.call(this,e._coordinates._coordinates[0])},multipoint:function(e){for(var t=[],n=0,r=e._geometries.length;n<r;++n)t.push("("+Z.point.apply(this,[e._geometries[n]])+")");return t.join(",")},linestring:function(e){for(var t=[],n=0,r=e._points._coordinates.length;n<r;++n)t.push(Z.coordinate.apply(this,[e._points._coordinates[n]]));return t.join(",")},linearring:function(e){for(var t=[],n=0,r=e._points._coordinates.length;n<r;++n)t.push(Z.coordinate.apply(this,[e._points._coordinates[n]]));return t.join(",")},multilinestring:function(e){for(var t=[],n=0,r=e._geometries.length;n<r;++n)t.push("("+Z.linestring.apply(this,[e._geometries[n]])+")");return t.join(",")},polygon:function(e){var t=[];t.push("("+Z.linestring.apply(this,[e._shell])+")");for(var n=0,r=e._holes.length;n<r;++n)t.push("("+Z.linestring.apply(this,[e._holes[n]])+")");return t.join(",")},multipolygon:function(e){for(var t=[],n=0,r=e._geometries.length;n<r;++n)t.push("("+Z.polygon.apply(this,[e._geometries[n]])+")");return t.join(",")},geometrycollection:function(e){for(var t=[],n=0,r=e._geometries.length;n<r;++n)t.push(this.extractGeometry(e._geometries[n]));return t.join(",")}},$={point:function(e){if(void 0===e)return this.geometryFactory.createPoint();var t=e.trim().split(Y.spaces);return this.geometryFactory.createPoint(new E(Number.parseFloat(t[0]),Number.parseFloat(t[1])))},multipoint:function(e){if(void 0===e)return this.geometryFactory.createMultiPoint();for(var t,n=e.trim().split(","),r=[],i=0,o=n.length;i<o;++i)t=n[i].replace(Y.trimParens,"$1"),r.push($.point.apply(this,[t]));return this.geometryFactory.createMultiPoint(r)},linestring:function(e){if(void 0===e)return this.geometryFactory.createLineString();for(var t,n=e.trim().split(","),r=[],i=0,o=n.length;i<o;++i)t=n[i].trim().split(Y.spaces),r.push(new E(Number.parseFloat(t[0]),Number.parseFloat(t[1])));return this.geometryFactory.createLineString(r)},linearring:function(e){if(void 0===e)return this.geometryFactory.createLinearRing();for(var t,n=e.trim().split(","),r=[],i=0,o=n.length;i<o;++i)t=n[i].trim().split(Y.spaces),r.push(new E(Number.parseFloat(t[0]),Number.parseFloat(t[1])));return this.geometryFactory.createLinearRing(r)},multilinestring:function(e){if(void 0===e)return this.geometryFactory.createMultiLineString();for(var t,n=e.trim().split(Y.parenComma),r=[],i=0,o=n.length;i<o;++i)t=n[i].replace(Y.trimParens,"$1"),r.push($.linestring.apply(this,[t]));return this.geometryFactory.createMultiLineString(r)},polygon:function(e){if(void 0===e)return this.geometryFactory.createPolygon();for(var t,n,r,i,o=e.trim().split(Y.parenComma),s=[],a=0,l=o.length;a<l;++a)t=o[a].replace(Y.trimParens,"$1"),n=$.linestring.apply(this,[t]),r=this.geometryFactory.createLinearRing(n._points),0===a?i=r:s.push(r);return this.geometryFactory.createPolygon(i,s)},multipolygon:function(e){if(void 0===e)return this.geometryFactory.createMultiPolygon();for(var t,n=e.trim().split(Y.doubleParenComma),r=[],i=0,o=n.length;i<o;++i)t=n[i].replace(Y.trimParens,"$1"),r.push($.polygon.apply(this,[t]));return this.geometryFactory.createMultiPolygon(r)},geometrycollection:function(e){if(void 0===e)return this.geometryFactory.createGeometryCollection();for(var t=(e=e.replace(/,\s*([A-Za-z])/g,"|$1")).trim().split("|"),n=[],r=0,i=t.length;r<i;++r)n.push(this.read(t[r]));return this.geometryFactory.createGeometryCollection(n)}},J=function(e){this.parser=new K(e)};J.prototype.write=function(e){return this.parser.write(e)},J.toLineString=function(e,t){if(2!==arguments.length)throw new Error("Not implemented");return"LINESTRING ( "+e.x+" "+e.y+", "+t.x+" "+t.y+" )"};var Q=function(e){function t(t){e.call(this,t),this.name="RuntimeException",this.message=t,this.stack=(new e).stack}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t}(Error),ee=function(e){function t(){if(e.call(this),0===arguments.length)e.call(this);else if(1===arguments.length){var t=arguments[0];e.call(this,t)}}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.interfaces_=function(){return[]},t.prototype.getClass=function(){return t},t}(Q),te=function(){};te.prototype.interfaces_=function(){return[]},te.prototype.getClass=function(){return te},te.shouldNeverReachHere=function(){if(0===arguments.length)te.shouldNeverReachHere(null);else if(1===arguments.length){var e=arguments[0];throw new ee("Should never reach here"+(null!==e?": "+e:""))}},te.isTrue=function(){var e,t;if(1===arguments.length)e=arguments[0],te.isTrue(e,null);else if(2===arguments.length&&(t=arguments[1],!(e=arguments[0])))throw null===t?new ee:new ee(t)},te.equals=function(){var e,t,n;if(2===arguments.length)e=arguments[0],t=arguments[1],te.equals(e,t,null);else if(3===arguments.length&&(e=arguments[0],n=arguments[2],!(t=arguments[1]).equals(e)))throw new ee("Expected "+e+" but encountered "+t+(null!==n?": "+n:""))};var ne=function(){this._result=null,this._inputLines=Array(2).fill().map((function(){return Array(2)})),this._intPt=new Array(2).fill(null),this._intLineIndex=null,this._isProper=null,this._pa=null,this._pb=null,this._precisionModel=null,this._intPt[0]=new E,this._intPt[1]=new E,this._pa=this._intPt[0],this._pb=this._intPt[1],this._result=0},re={DONT_INTERSECT:{configurable:!0},DO_INTERSECT:{configurable:!0},COLLINEAR:{configurable:!0},NO_INTERSECTION:{configurable:!0},POINT_INTERSECTION:{configurable:!0},COLLINEAR_INTERSECTION:{configurable:!0}};ne.prototype.getIndexAlongSegment=function(e,t){return this.computeIntLineIndex(),this._intLineIndex[e][t]},ne.prototype.getTopologySummary=function(){var e=new M;return this.isEndPoint()&&e.append(" endpoint"),this._isProper&&e.append(" proper"),this.isCollinear()&&e.append(" collinear"),e.toString()},ne.prototype.computeIntersection=function(e,t,n,r){this._inputLines[0][0]=e,this._inputLines[0][1]=t,this._inputLines[1][0]=n,this._inputLines[1][1]=r,this._result=this.computeIntersect(e,t,n,r)},ne.prototype.getIntersectionNum=function(){return this._result},ne.prototype.computeIntLineIndex=function(){if(0===arguments.length)null===this._intLineIndex&&(this._intLineIndex=Array(2).fill().map((function(){return Array(2)})),this.computeIntLineIndex(0),this.computeIntLineIndex(1));else if(1===arguments.length){var e=arguments[0];this.getEdgeDistance(e,0)>this.getEdgeDistance(e,1)?(this._intLineIndex[e][0]=0,this._intLineIndex[e][1]=1):(this._intLineIndex[e][0]=1,this._intLineIndex[e][1]=0)}},ne.prototype.isProper=function(){return this.hasIntersection()&&this._isProper},ne.prototype.setPrecisionModel=function(e){this._precisionModel=e},ne.prototype.isInteriorIntersection=function(){if(0===arguments.length)return!!this.isInteriorIntersection(0)||!!this.isInteriorIntersection(1);if(1===arguments.length){for(var e=arguments[0],t=0;t<this._result;t++)if(!this._intPt[t].equals2D(this._inputLines[e][0])&&!this._intPt[t].equals2D(this._inputLines[e][1]))return!0;return!1}},ne.prototype.getIntersection=function(e){return this._intPt[e]},ne.prototype.isEndPoint=function(){return this.hasIntersection()&&!this._isProper},ne.prototype.hasIntersection=function(){return this._result!==ne.NO_INTERSECTION},ne.prototype.getEdgeDistance=function(e,t){return ne.computeEdgeDistance(this._intPt[t],this._inputLines[e][0],this._inputLines[e][1])},ne.prototype.isCollinear=function(){return this._result===ne.COLLINEAR_INTERSECTION},ne.prototype.toString=function(){return J.toLineString(this._inputLines[0][0],this._inputLines[0][1])+" - "+J.toLineString(this._inputLines[1][0],this._inputLines[1][1])+this.getTopologySummary()},ne.prototype.getEndpoint=function(e,t){return this._inputLines[e][t]},ne.prototype.isIntersection=function(e){for(var t=0;t<this._result;t++)if(this._intPt[t].equals2D(e))return!0;return!1},ne.prototype.getIntersectionAlongSegment=function(e,t){return this.computeIntLineIndex(),this._intPt[this._intLineIndex[e][t]]},ne.prototype.interfaces_=function(){return[]},ne.prototype.getClass=function(){return ne},ne.computeEdgeDistance=function(e,t,n){var r=Math.abs(n.x-t.x),i=Math.abs(n.y-t.y),o=-1;if(e.equals(t))o=0;else if(e.equals(n))o=r>i?r:i;else{var s=Math.abs(e.x-t.x),a=Math.abs(e.y-t.y);0!==(o=r>i?s:a)||e.equals(t)||(o=Math.max(s,a))}return te.isTrue(!(0===o&&!e.equals(t)),"Bad distance calculation"),o},ne.nonRobustComputeEdgeDistance=function(e,t,n){var r=e.x-t.x,i=e.y-t.y,o=Math.sqrt(r*r+i*i);return te.isTrue(!(0===o&&!e.equals(t)),"Invalid distance calculation"),o},re.DONT_INTERSECT.get=function(){return 0},re.DO_INTERSECT.get=function(){return 1},re.COLLINEAR.get=function(){return 2},re.NO_INTERSECTION.get=function(){return 0},re.POINT_INTERSECTION.get=function(){return 1},re.COLLINEAR_INTERSECTION.get=function(){return 2},Object.defineProperties(ne,re);var ie=function(e){function t(){e.apply(this,arguments)}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.isInSegmentEnvelopes=function(e){var t=new q(this._inputLines[0][0],this._inputLines[0][1]),n=new q(this._inputLines[1][0],this._inputLines[1][1]);return t.contains(e)&&n.contains(e)},t.prototype.computeIntersection=function(){if(3!==arguments.length)return e.prototype.computeIntersection.apply(this,arguments);var t=arguments[0],n=arguments[1],r=arguments[2];if(this._isProper=!1,q.intersects(n,r,t)&&0===ae.orientationIndex(n,r,t)&&0===ae.orientationIndex(r,n,t))return this._isProper=!0,(t.equals(n)||t.equals(r))&&(this._isProper=!1),this._result=e.POINT_INTERSECTION,null;this._result=e.NO_INTERSECTION},t.prototype.normalizeToMinimum=function(e,t,n,r,i){i.x=this.smallestInAbsValue(e.x,t.x,n.x,r.x),i.y=this.smallestInAbsValue(e.y,t.y,n.y,r.y),e.x-=i.x,e.y-=i.y,t.x-=i.x,t.y-=i.y,n.x-=i.x,n.y-=i.y,r.x-=i.x,r.y-=i.y},t.prototype.safeHCoordinateIntersection=function(e,n,r,i){var o=null;try{o=H.intersection(e,n,r,i)}catch(s){if(!(s instanceof U))throw s;o=t.nearestEndpoint(e,n,r,i)}return o},t.prototype.intersection=function(e,n,r,i){var o=this.intersectionWithNormalization(e,n,r,i);return this.isInSegmentEnvelopes(o)||(o=new E(t.nearestEndpoint(e,n,r,i))),null!==this._precisionModel&&this._precisionModel.makePrecise(o),o},t.prototype.smallestInAbsValue=function(e,t,n,r){var i=e,o=Math.abs(i);return Math.abs(t)<o&&(i=t,o=Math.abs(t)),Math.abs(n)<o&&(i=n,o=Math.abs(n)),Math.abs(r)<o&&(i=r),i},t.prototype.checkDD=function(e,t,n,r,i){var o=L.intersection(e,t,n,r),s=this.isInSegmentEnvelopes(o);W.out.println("DD in env = "+s+"  --------------------- "+o),i.distance(o)>1e-4&&W.out.println("Distance = "+i.distance(o))},t.prototype.intersectionWithNormalization=function(e,t,n,r){var i=new E(e),o=new E(t),s=new E(n),a=new E(r),l=new E;this.normalizeToEnvCentre(i,o,s,a,l);var c=this.safeHCoordinateIntersection(i,o,s,a);return c.x+=l.x,c.y+=l.y,c},t.prototype.computeCollinearIntersection=function(t,n,r,i){var o=q.intersects(t,n,r),s=q.intersects(t,n,i),a=q.intersects(r,i,t),l=q.intersects(r,i,n);return o&&s?(this._intPt[0]=r,this._intPt[1]=i,e.COLLINEAR_INTERSECTION):a&&l?(this._intPt[0]=t,this._intPt[1]=n,e.COLLINEAR_INTERSECTION):o&&a?(this._intPt[0]=r,this._intPt[1]=t,!r.equals(t)||s||l?e.COLLINEAR_INTERSECTION:e.POINT_INTERSECTION):o&&l?(this._intPt[0]=r,this._intPt[1]=n,!r.equals(n)||s||a?e.COLLINEAR_INTERSECTION:e.POINT_INTERSECTION):s&&a?(this._intPt[0]=i,this._intPt[1]=t,!i.equals(t)||o||l?e.COLLINEAR_INTERSECTION:e.POINT_INTERSECTION):s&&l?(this._intPt[0]=i,this._intPt[1]=n,!i.equals(n)||o||a?e.COLLINEAR_INTERSECTION:e.POINT_INTERSECTION):e.NO_INTERSECTION},t.prototype.normalizeToEnvCentre=function(e,t,n,r,i){var o=e.x<t.x?e.x:t.x,s=e.y<t.y?e.y:t.y,a=e.x>t.x?e.x:t.x,l=e.y>t.y?e.y:t.y,c=n.x<r.x?n.x:r.x,u=n.y<r.y?n.y:r.y,d=n.x>r.x?n.x:r.x,h=n.y>r.y?n.y:r.y,p=((o>c?o:c)+(a<d?a:d))/2,f=((s>u?s:u)+(l<h?l:h))/2;i.x=p,i.y=f,e.x-=i.x,e.y-=i.y,t.x-=i.x,t.y-=i.y,n.x-=i.x,n.y-=i.y,r.x-=i.x,r.y-=i.y},t.prototype.computeIntersect=function(t,n,r,i){if(this._isProper=!1,!q.intersects(t,n,r,i))return e.NO_INTERSECTION;var o=ae.orientationIndex(t,n,r),s=ae.orientationIndex(t,n,i);if(o>0&&s>0||o<0&&s<0)return e.NO_INTERSECTION;var a=ae.orientationIndex(r,i,t),l=ae.orientationIndex(r,i,n);return a>0&&l>0||a<0&&l<0?e.NO_INTERSECTION:0===o&&0===s&&0===a&&0===l?this.computeCollinearIntersection(t,n,r,i):(0===o||0===s||0===a||0===l?(this._isProper=!1,t.equals2D(r)||t.equals2D(i)?this._intPt[0]=t:n.equals2D(r)||n.equals2D(i)?this._intPt[0]=n:0===o?this._intPt[0]=new E(r):0===s?this._intPt[0]=new E(i):0===a?this._intPt[0]=new E(t):0===l&&(this._intPt[0]=new E(n))):(this._isProper=!0,this._intPt[0]=this.intersection(t,n,r,i)),e.POINT_INTERSECTION)},t.prototype.interfaces_=function(){return[]},t.prototype.getClass=function(){return t},t.nearestEndpoint=function(e,t,n,r){var i=e,o=ae.distancePointLine(e,n,r),s=ae.distancePointLine(t,n,r);return s<o&&(o=s,i=t),(s=ae.distancePointLine(n,e,t))<o&&(o=s,i=n),(s=ae.distancePointLine(r,e,t))<o&&(o=s,i=r),i},t}(ne),oe=function(){};oe.prototype.interfaces_=function(){return[]},oe.prototype.getClass=function(){return oe},oe.orientationIndex=function(e,t,n){var r=t.x-e.x,i=t.y-e.y,o=n.x-t.x,s=n.y-t.y;return oe.signOfDet2x2(r,i,o,s)},oe.signOfDet2x2=function(e,t,n,r){var i=null,o=null,s=null;if(i=1,0===e||0===r)return 0===t||0===n?0:t>0?n>0?-i:i:n>0?i:-i;if(0===t||0===n)return r>0?e>0?i:-i:e>0?-i:i;if(t>0?r>0?t<=r||(i=-i,o=e,e=n,n=o,o=t,t=r,r=o):t<=-r?(i=-i,n=-n,r=-r):(o=e,e=-n,n=o,o=t,t=-r,r=o):r>0?-t<=r?(i=-i,e=-e,t=-t):(o=-e,e=n,n=o,o=-t,t=r,r=o):t>=r?(e=-e,t=-t,n=-n,r=-r):(i=-i,o=-e,e=-n,n=o,o=-t,t=-r,r=o),e>0){if(!(n>0))return i;if(!(e<=n))return i}else{if(n>0)return-i;if(!(e>=n))return-i;i=-i,e=-e,n=-n}for(;;){if((r-=(s=Math.floor(n/e))*t)<0)return-i;if(r>t)return i;if(e>(n-=s*e)+n){if(t<r+r)return i}else{if(t>r+r)return-i;n=e-n,r=t-r,i=-i}if(0===r)return 0===n?0:-i;if(0===n)return i;if((t-=(s=Math.floor(e/n))*r)<0)return i;if(t>r)return-i;if(n>(e-=s*n)+e){if(r<t+t)return-i}else{if(r>t+t)return i;e=n-e,t=r-t,i=-i}if(0===t)return 0===e?0:i;if(0===e)return-i}};var se=function(){this._p=null,this._crossingCount=0,this._isPointOnSegment=!1;var e=arguments[0];this._p=e};se.prototype.countSegment=function(e,t){if(e.x<this._p.x&&t.x<this._p.x)return null;if(this._p.x===t.x&&this._p.y===t.y)return this._isPointOnSegment=!0,null;if(e.y===this._p.y&&t.y===this._p.y){var n=e.x,r=t.x;return n>r&&(n=t.x,r=e.x),this._p.x>=n&&this._p.x<=r&&(this._isPointOnSegment=!0),null}if(e.y>this._p.y&&t.y<=this._p.y||t.y>this._p.y&&e.y<=this._p.y){var i=e.x-this._p.x,o=e.y-this._p.y,s=t.x-this._p.x,a=t.y-this._p.y,l=oe.signOfDet2x2(i,o,s,a);if(0===l)return this._isPointOnSegment=!0,null;a<o&&(l=-l),l>0&&this._crossingCount++}},se.prototype.isPointInPolygon=function(){return this.getLocation()!==k.EXTERIOR},se.prototype.getLocation=function(){return this._isPointOnSegment?k.BOUNDARY:this._crossingCount%2==1?k.INTERIOR:k.EXTERIOR},se.prototype.isOnSegment=function(){return this._isPointOnSegment},se.prototype.interfaces_=function(){return[]},se.prototype.getClass=function(){return se},se.locatePointInRing=function(){if(arguments[0]instanceof E&&I(arguments[1],F)){for(var e=arguments[1],t=new se(arguments[0]),n=new E,r=new E,i=1;i<e.size();i++)if(e.getCoordinate(i,n),e.getCoordinate(i-1,r),t.countSegment(n,r),t.isOnSegment())return t.getLocation();return t.getLocation()}if(arguments[0]instanceof E&&arguments[1]instanceof Array){for(var o=arguments[1],s=new se(arguments[0]),a=1;a<o.length;a++){var l=o[a],c=o[a-1];if(s.countSegment(l,c),s.isOnSegment())return s.getLocation()}return s.getLocation()}};var ae=function(){},le={CLOCKWISE:{configurable:!0},RIGHT:{configurable:!0},COUNTERCLOCKWISE:{configurable:!0},LEFT:{configurable:!0},COLLINEAR:{configurable:!0},STRAIGHT:{configurable:!0}};ae.prototype.interfaces_=function(){return[]},ae.prototype.getClass=function(){return ae},ae.orientationIndex=function(e,t,n){return L.orientationIndex(e,t,n)},ae.signedArea=function(){if(arguments[0]instanceof Array){var e=arguments[0];if(e.length<3)return 0;for(var t=0,n=e[0].x,r=1;r<e.length-1;r++){var i=e[r].x-n,o=e[r+1].y;t+=i*(e[r-1].y-o)}return t/2}if(I(arguments[0],F)){var s=arguments[0],a=s.size();if(a<3)return 0;var l=new E,c=new E,u=new E;s.getCoordinate(0,c),s.getCoordinate(1,u);var d=c.x;u.x-=d;for(var h=0,p=1;p<a-1;p++)l.y=c.y,c.x=u.x,c.y=u.y,s.getCoordinate(p+1,u),u.x-=d,h+=c.x*(l.y-u.y);return h/2}},ae.distanceLineLine=function(e,t,n,r){if(e.equals(t))return ae.distancePointLine(e,n,r);if(n.equals(r))return ae.distancePointLine(r,e,t);var i=!1;if(q.intersects(e,t,n,r)){var o=(t.x-e.x)*(r.y-n.y)-(t.y-e.y)*(r.x-n.x);if(0===o)i=!0;else{var s=(e.y-n.y)*(r.x-n.x)-(e.x-n.x)*(r.y-n.y),a=((e.y-n.y)*(t.x-e.x)-(e.x-n.x)*(t.y-e.y))/o,l=s/o;(l<0||l>1||a<0||a>1)&&(i=!0)}}else i=!0;return i?G.min(ae.distancePointLine(e,n,r),ae.distancePointLine(t,n,r),ae.distancePointLine(n,e,t),ae.distancePointLine(r,e,t)):0},ae.isPointInRing=function(e,t){return ae.locatePointInRing(e,t)!==k.EXTERIOR},ae.computeLength=function(e){var t=e.size();if(t<=1)return 0;var n=0,r=new E;e.getCoordinate(0,r);for(var i=r.x,o=r.y,s=1;s<t;s++){e.getCoordinate(s,r);var a=r.x,l=r.y,c=a-i,u=l-o;n+=Math.sqrt(c*c+u*u),i=a,o=l}return n},ae.isCCW=function(e){var t=e.length-1;if(t<3)throw new v("Ring has fewer than 4 points, so orientation cannot be determined");for(var n=e[0],r=0,i=1;i<=t;i++){var o=e[i];o.y>n.y&&(n=o,r=i)}var s=r;do{(s-=1)<0&&(s=t)}while(e[s].equals2D(n)&&s!==r);var a=r;do{a=(a+1)%t}while(e[a].equals2D(n)&&a!==r);var l=e[s],c=e[a];if(l.equals2D(n)||c.equals2D(n)||l.equals2D(c))return!1;var u=ae.computeOrientation(l,n,c);return 0===u?l.x>c.x:u>0},ae.locatePointInRing=function(e,t){return se.locatePointInRing(e,t)},ae.distancePointLinePerpendicular=function(e,t,n){var r=(n.x-t.x)*(n.x-t.x)+(n.y-t.y)*(n.y-t.y),i=((t.y-e.y)*(n.x-t.x)-(t.x-e.x)*(n.y-t.y))/r;return Math.abs(i)*Math.sqrt(r)},ae.computeOrientation=function(e,t,n){return ae.orientationIndex(e,t,n)},ae.distancePointLine=function(){if(2===arguments.length){var e=arguments[0],t=arguments[1];if(0===t.length)throw new v("Line array must contain at least one vertex");for(var n=e.distance(t[0]),r=0;r<t.length-1;r++){var i=ae.distancePointLine(e,t[r],t[r+1]);i<n&&(n=i)}return n}if(3===arguments.length){var o=arguments[0],s=arguments[1],a=arguments[2];if(s.x===a.x&&s.y===a.y)return o.distance(s);var l=(a.x-s.x)*(a.x-s.x)+(a.y-s.y)*(a.y-s.y),c=((o.x-s.x)*(a.x-s.x)+(o.y-s.y)*(a.y-s.y))/l;if(c<=0)return o.distance(s);if(c>=1)return o.distance(a);var u=((s.y-o.y)*(a.x-s.x)-(s.x-o.x)*(a.y-s.y))/l;return Math.abs(u)*Math.sqrt(l)}},ae.isOnLine=function(e,t){for(var n=new ie,r=1;r<t.length;r++){var i=t[r-1],o=t[r];if(n.computeIntersection(e,i,o),n.hasIntersection())return!0}return!1},le.CLOCKWISE.get=function(){return-1},le.RIGHT.get=function(){return ae.CLOCKWISE},le.COUNTERCLOCKWISE.get=function(){return 1},le.LEFT.get=function(){return ae.COUNTERCLOCKWISE},le.COLLINEAR.get=function(){return 0},le.STRAIGHT.get=function(){return ae.COLLINEAR},Object.defineProperties(ae,le);var ce=function(){};ce.prototype.filter=function(e){},ce.prototype.interfaces_=function(){return[]},ce.prototype.getClass=function(){return ce};var ue=function(){var e=arguments[0];this._envelope=null,this._factory=null,this._SRID=null,this._userData=null,this._factory=e,this._SRID=e.getSRID()},de={serialVersionUID:{configurable:!0},SORTINDEX_POINT:{configurable:!0},SORTINDEX_MULTIPOINT:{configurable:!0},SORTINDEX_LINESTRING:{configurable:!0},SORTINDEX_LINEARRING:{configurable:!0},SORTINDEX_MULTILINESTRING:{configurable:!0},SORTINDEX_POLYGON:{configurable:!0},SORTINDEX_MULTIPOLYGON:{configurable:!0},SORTINDEX_GEOMETRYCOLLECTION:{configurable:!0},geometryChangedFilter:{configurable:!0}};ue.prototype.isGeometryCollection=function(){return this.getSortIndex()===ue.SORTINDEX_GEOMETRYCOLLECTION},ue.prototype.getFactory=function(){return this._factory},ue.prototype.getGeometryN=function(e){return this},ue.prototype.getArea=function(){return 0},ue.prototype.isRectangle=function(){return!1},ue.prototype.equals=function(){if(arguments[0]instanceof ue){var e=arguments[0];return null!==e&&this.equalsTopo(e)}if(arguments[0]instanceof Object){var t=arguments[0];if(!(t instanceof ue))return!1;var n=t;return this.equalsExact(n)}},ue.prototype.equalsExact=function(e){return this===e||this.equalsExact(e,0)},ue.prototype.geometryChanged=function(){this.apply(ue.geometryChangedFilter)},ue.prototype.geometryChangedAction=function(){this._envelope=null},ue.prototype.equalsNorm=function(e){return null!==e&&this.norm().equalsExact(e.norm())},ue.prototype.getLength=function(){return 0},ue.prototype.getNumGeometries=function(){return 1},ue.prototype.compareTo=function(){if(1===arguments.length){var e=arguments[0],t=e;return this.getSortIndex()!==t.getSortIndex()?this.getSortIndex()-t.getSortIndex():this.isEmpty()&&t.isEmpty()?0:this.isEmpty()?-1:t.isEmpty()?1:this.compareToSameClass(e)}if(2===arguments.length){var n=arguments[0],r=arguments[1];return this.getSortIndex()!==n.getSortIndex()?this.getSortIndex()-n.getSortIndex():this.isEmpty()&&n.isEmpty()?0:this.isEmpty()?-1:n.isEmpty()?1:this.compareToSameClass(n,r)}},ue.prototype.getUserData=function(){return this._userData},ue.prototype.getSRID=function(){return this._SRID},ue.prototype.getEnvelope=function(){return this.getFactory().toGeometry(this.getEnvelopeInternal())},ue.prototype.checkNotGeometryCollection=function(e){if(e.getSortIndex()===ue.SORTINDEX_GEOMETRYCOLLECTION)throw new v("This method does not support GeometryCollection arguments")},ue.prototype.equal=function(e,t,n){return 0===n?e.equals(t):e.distance(t)<=n},ue.prototype.norm=function(){var e=this.copy();return e.normalize(),e},ue.prototype.getPrecisionModel=function(){return this._factory.getPrecisionModel()},ue.prototype.getEnvelopeInternal=function(){return null===this._envelope&&(this._envelope=this.computeEnvelopeInternal()),new q(this._envelope)},ue.prototype.setSRID=function(e){this._SRID=e},ue.prototype.setUserData=function(e){this._userData=e},ue.prototype.compare=function(e,t){for(var n=e.iterator(),r=t.iterator();n.hasNext()&&r.hasNext();){var i=n.next(),o=r.next(),s=i.compareTo(o);if(0!==s)return s}return n.hasNext()?1:r.hasNext()?-1:0},ue.prototype.hashCode=function(){return this.getEnvelopeInternal().hashCode()},ue.prototype.isGeometryCollectionOrDerived=function(){return this.getSortIndex()===ue.SORTINDEX_GEOMETRYCOLLECTION||this.getSortIndex()===ue.SORTINDEX_MULTIPOINT||this.getSortIndex()===ue.SORTINDEX_MULTILINESTRING||this.getSortIndex()===ue.SORTINDEX_MULTIPOLYGON},ue.prototype.interfaces_=function(){return[S,x,t]},ue.prototype.getClass=function(){return ue},ue.hasNonEmptyElements=function(e){for(var t=0;t<e.length;t++)if(!e[t].isEmpty())return!0;return!1},ue.hasNullElements=function(e){for(var t=0;t<e.length;t++)if(null===e[t])return!0;return!1},de.serialVersionUID.get=function(){return 0x799ea46522854c00},de.SORTINDEX_POINT.get=function(){return 0},de.SORTINDEX_MULTIPOINT.get=function(){return 1},de.SORTINDEX_LINESTRING.get=function(){return 2},de.SORTINDEX_LINEARRING.get=function(){return 3},de.SORTINDEX_MULTILINESTRING.get=function(){return 4},de.SORTINDEX_POLYGON.get=function(){return 5},de.SORTINDEX_MULTIPOLYGON.get=function(){return 6},de.SORTINDEX_GEOMETRYCOLLECTION.get=function(){return 7},de.geometryChangedFilter.get=function(){return he},Object.defineProperties(ue,de);var he=function(){};he.interfaces_=function(){return[ce]},he.filter=function(e){e.geometryChangedAction()};var pe=function(){};pe.prototype.filter=function(e){},pe.prototype.interfaces_=function(){return[]},pe.prototype.getClass=function(){return pe};var fe=function(){},ge={Mod2BoundaryNodeRule:{configurable:!0},EndPointBoundaryNodeRule:{configurable:!0},MultiValentEndPointBoundaryNodeRule:{configurable:!0},MonoValentEndPointBoundaryNodeRule:{configurable:!0},MOD2_BOUNDARY_RULE:{configurable:!0},ENDPOINT_BOUNDARY_RULE:{configurable:!0},MULTIVALENT_ENDPOINT_BOUNDARY_RULE:{configurable:!0},MONOVALENT_ENDPOINT_BOUNDARY_RULE:{configurable:!0},OGC_SFS_BOUNDARY_RULE:{configurable:!0}};fe.prototype.isInBoundary=function(e){},fe.prototype.interfaces_=function(){return[]},fe.prototype.getClass=function(){return fe},ge.Mod2BoundaryNodeRule.get=function(){return me},ge.EndPointBoundaryNodeRule.get=function(){return ye},ge.MultiValentEndPointBoundaryNodeRule.get=function(){return ve},ge.MonoValentEndPointBoundaryNodeRule.get=function(){return _e},ge.MOD2_BOUNDARY_RULE.get=function(){return new me},ge.ENDPOINT_BOUNDARY_RULE.get=function(){return new ye},ge.MULTIVALENT_ENDPOINT_BOUNDARY_RULE.get=function(){return new ve},ge.MONOVALENT_ENDPOINT_BOUNDARY_RULE.get=function(){return new _e},ge.OGC_SFS_BOUNDARY_RULE.get=function(){return fe.MOD2_BOUNDARY_RULE},Object.defineProperties(fe,ge);var me=function(){};me.prototype.isInBoundary=function(e){return e%2==1},me.prototype.interfaces_=function(){return[fe]},me.prototype.getClass=function(){return me};var ye=function(){};ye.prototype.isInBoundary=function(e){return e>0},ye.prototype.interfaces_=function(){return[fe]},ye.prototype.getClass=function(){return ye};var ve=function(){};ve.prototype.isInBoundary=function(e){return e>1},ve.prototype.interfaces_=function(){return[fe]},ve.prototype.getClass=function(){return ve};var _e=function(){};_e.prototype.isInBoundary=function(e){return 1===e},_e.prototype.interfaces_=function(){return[fe]},_e.prototype.getClass=function(){return _e};var be=function(){};be.prototype.add=function(){},be.prototype.addAll=function(){},be.prototype.isEmpty=function(){},be.prototype.iterator=function(){},be.prototype.size=function(){},be.prototype.toArray=function(){},be.prototype.remove=function(){},(n.prototype=new Error).name="IndexOutOfBoundsException";var xe=function(){};xe.prototype.hasNext=function(){},xe.prototype.next=function(){},xe.prototype.remove=function(){};var Se=function(e){function t(){e.apply(this,arguments)}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.get=function(){},t.prototype.set=function(){},t.prototype.isEmpty=function(){},t}(be);(r.prototype=new Error).name="NoSuchElementException";var we=function(e){function t(){e.call(this),this.array_=[],arguments[0]instanceof be&&this.addAll(arguments[0])}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.ensureCapacity=function(){},t.prototype.interfaces_=function(){return[e,be]},t.prototype.add=function(e){return 1===arguments.length?this.array_.push(e):this.array_.splice(arguments[0],arguments[1]),!0},t.prototype.clear=function(){this.array_=[]},t.prototype.addAll=function(e){for(var t=e.iterator();t.hasNext();)this.add(t.next());return!0},t.prototype.set=function(e,t){var n=this.array_[e];return this.array_[e]=t,n},t.prototype.iterator=function(){return new Ee(this)},t.prototype.get=function(e){if(e<0||e>=this.size())throw new n;return this.array_[e]},t.prototype.isEmpty=function(){return 0===this.array_.length},t.prototype.size=function(){return this.array_.length},t.prototype.toArray=function(){for(var e=[],t=0,n=this.array_.length;t<n;t++)e.push(this.array_[t]);return e},t.prototype.remove=function(e){for(var t=!1,n=0,r=this.array_.length;n<r;n++)if(this.array_[n]===e){this.array_.splice(n,1),t=!0;break}return t},t}(Se),Ee=function(e){function t(t){e.call(this),this.arrayList_=t,this.position_=0}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.next=function(){if(this.position_===this.arrayList_.size())throw new r;return this.arrayList_.get(this.position_++)},t.prototype.hasNext=function(){return this.position_<this.arrayList_.size()},t.prototype.set=function(e){return this.arrayList_.set(this.position_-1,e)},t.prototype.remove=function(){this.arrayList_.remove(this.arrayList_.get(this.position_))},t}(xe),Pe=function(e){function t(){if(e.call(this),0===arguments.length);else if(1===arguments.length){var t=arguments[0];this.ensureCapacity(t.length),this.add(t,!0)}else if(2===arguments.length){var n=arguments[0],r=arguments[1];this.ensureCapacity(n.length),this.add(n,r)}}e&&(t.__proto__=e),(t.prototype=Object.create(e&&e.prototype)).constructor=t;var n={coordArrayType:{configurable:!0}};return n.coordArrayType.get=function(){return new Array(0).fill(null)},t.prototype.getCoordinate=function(e){return this.get(e)},t.prototype.addAll=function(){if(2===arguments.length){for(var t=arguments[1],n=!1,r=arguments[0].iterator();r.hasNext();)this.add(r.next(),t),n=!0;return n}return e.prototype.addAll.apply(this,arguments)},t.prototype.clone=function(){for(var t=e.prototype.clone.call(this),n=0;n<this.size();n++)t.add(n,this.get(n).copy());return t},t.prototype.toCoordinateArray=function(){return this.toArray(t.coordArrayType)},t.prototype.add=function(){if(1===arguments.length){var t=arguments[0];e.prototype.add.call(this,t)}else if(2===arguments.length){if(arguments[0]instanceof Array&&"boolean"==typeof arguments[1]){var n=arguments[0],r=arguments[1];return this.add(n,r,!0),!0}if(arguments[0]instanceof E&&"boolean"==typeof arguments[1]){var i=arguments[0];if(!arguments[1]&&this.size()>=1&&this.get(this.size()-1).equals2D(i))return null;e.prototype.add.call(this,i)}else if(arguments[0]instanceof Object&&"boolean"==typeof arguments[1]){var o=arguments[0],s=arguments[1];return this.add(o,s),!0}}else if(3===arguments.length){if("boolean"==typeof arguments[2]&&arguments[0]instanceof Array&&"boolean"==typeof arguments[1]){var a=arguments[0],l=arguments[1];if(arguments[2])for(var c=0;c<a.length;c++)this.add(a[c],l);else for(var u=a.length-1;u>=0;u--)this.add(a[u],l);return!0}if("boolean"==typeof arguments[2]&&Number.isInteger(arguments[0])&&arguments[1]instanceof E){var d=arguments[0],h=arguments[1];if(!arguments[2]){var p=this.size();if(p>0){if(d>0&&this.get(d-1).equals2D(h))return null;if(d<p&&this.get(d).equals2D(h))return null}}e.prototype.add.call(this,d,h)}}else if(4===arguments.length){var f=arguments[0],g=arguments[1],m=arguments[2],y=arguments[3],v=1;m>y&&(v=-1);for(var _=m;_!==y;_+=v)this.add(f[_],g);return!0}},t.prototype.closeRing=function(){this.size()>0&&this.add(new E(this.get(0)),!1)},t.prototype.interfaces_=function(){return[]},t.prototype.getClass=function(){return t},Object.defineProperties(t,n),t}(we),Ce=function(){},Ae={ForwardComparator:{configurable:!0},BidirectionalComparator:{configurable:!0},coordArrayType:{configurable:!0}};Ae.ForwardComparator.get=function(){return ke},Ae.BidirectionalComparator.get=function(){return je},Ae.coordArrayType.get=function(){return new Array(0).fill(null)},Ce.prototype.interfaces_=function(){return[]},Ce.prototype.getClass=function(){return Ce},Ce.isRing=function(e){return!(e.length<4)&&!!e[0].equals2D(e[e.length-1])},Ce.ptNotInList=function(e,t){for(var n=0;n<e.length;n++){var r=e[n];if(Ce.indexOf(r,t)<0)return r}return null},Ce.scroll=function(e,t){var n=Ce.indexOf(t,e);if(n<0)return null;var r=new Array(e.length).fill(null);W.arraycopy(e,n,r,0,e.length-n),W.arraycopy(e,0,r,e.length-n,n),W.arraycopy(r,0,e,0,e.length)},Ce.equals=function(){if(2===arguments.length){var e=arguments[0],t=arguments[1];if(e===t)return!0;if(null===e||null===t)return!1;if(e.length!==t.length)return!1;for(var n=0;n<e.length;n++)if(!e[n].equals(t[n]))return!1;return!0}if(3===arguments.length){var r=arguments[0],i=arguments[1],o=arguments[2];if(r===i)return!0;if(null===r||null===i)return!1;if(r.length!==i.length)return!1;for(var s=0;s<r.length;s++)if(0!==o.compare(r[s],i[s]))return!1;return!0}},Ce.intersection=function(e,t){for(var n=new Pe,r=0;r<e.length;r++)t.intersects(e[r])&&n.add(e[r],!0);return n.toCoordinateArray()},Ce.hasRepeatedPoints=function(e){for(var t=1;t<e.length;t++)if(e[t-1].equals(e[t]))return!0;return!1},Ce.removeRepeatedPoints=function(e){return Ce.hasRepeatedPoints(e)?new Pe(e,!1).toCoordinateArray():e},Ce.reverse=function(e){for(var t=e.length-1,n=Math.trunc(t/2),r=0;r<=n;r++){var i=e[r];e[r]=e[t-r],e[t-r]=i}},Ce.removeNull=function(e){for(var t=0,n=0;n<e.length;n++)null!==e[n]&&t++;var r=new Array(t).fill(null);if(0===t)return r;for(var i=0,o=0;o<e.length;o++)null!==e[o]&&(r[i++]=e[o]);return r},Ce.copyDeep=function(){if(1===arguments.length){for(var e=arguments[0],t=new Array(e.length).fill(null),n=0;n<e.length;n++)t[n]=new E(e[n]);return t}if(5===arguments.length)for(var r=arguments[0],i=arguments[1],o=arguments[2],s=arguments[3],a=arguments[4],l=0;l<a;l++)o[s+l]=new E(r[i+l])},Ce.isEqualReversed=function(e,t){for(var n=0;n<e.length;n++){var r=e[n],i=t[e.length-n-1];if(0!==r.compareTo(i))return!1}return!0},Ce.envelope=function(e){for(var t=new q,n=0;n<e.length;n++)t.expandToInclude(e[n]);return t},Ce.toCoordinateArray=function(e){return e.toArray(Ce.coordArrayType)},Ce.atLeastNCoordinatesOrNothing=function(e,t){return t.length>=e?t:[]},Ce.indexOf=function(e,t){for(var n=0;n<t.length;n++)if(e.equals(t[n]))return n;return-1},Ce.increasingDirection=function(e){for(var t=0;t<Math.trunc(e.length/2);t++){var n=e.length-1-t,r=e[t].compareTo(e[n]);if(0!==r)return r}return 1},Ce.compare=function(e,t){for(var n=0;n<e.length&&n<t.length;){var r=e[n].compareTo(t[n]);if(0!==r)return r;n++}return n<t.length?-1:n<e.length?1:0},Ce.minCoordinate=function(e){for(var t=null,n=0;n<e.length;n++)(null===t||t.compareTo(e[n])>0)&&(t=e[n]);return t},Ce.extract=function(e,t,n){t=G.clamp(t,0,e.length);var r=(n=G.clamp(n,-1,e.length))-t+1;n<0&&(r=0),t>=e.length&&(r=0),n<t&&(r=0);var i=new Array(r).fill(null);if(0===r)return i;for(var o=0,s=t;s<=n;s++)i[o++]=e[s];return i},Object.defineProperties(Ce,Ae);var ke=function(){};ke.prototype.compare=function(e,t){return Ce.compare(e,t)},ke.prototype.interfaces_=function(){return[w]},ke.prototype.getClass=function(){return ke};var je=function(){};je.prototype.compare=function(e,t){var n=e,r=t;if(n.length<r.length)return-1;if(n.length>r.length)return 1;if(0===n.length)return 0;var i=Ce.compare(n,r);return Ce.isEqualReversed(n,r)?0:i},je.prototype.OLDcompare=function(e,t){var n=e,r=t;if(n.length<r.length)return-1;if(n.length>r.length)return 1;if(0===n.length)return 0;for(var i=Ce.increasingDirection(n),o=Ce.increasingDirection(r),s=i>0?0:n.length-1,a=o>0?0:n.length-1,l=0;l<n.length;l++){var c=n[s].compareTo(r[a]);if(0!==c)return c;s+=i,a+=o}return 0},je.prototype.interfaces_=function(){return[w]},je.prototype.getClass=function(){return je};var Ie=function(){};Ie.prototype.get=function(){},Ie.prototype.put=function(){},Ie.prototype.size=function(){},Ie.prototype.values=function(){},Ie.prototype.entrySet=function(){};var Ge=function(e){function t(){e.apply(this,arguments)}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t}(Ie);(i.prototype=new Error).name="OperationNotSupported",(o.prototype=new be).contains=function(){};var Te=function(e){function t(){e.call(this),this.array_=[],arguments[0]instanceof be&&this.addAll(arguments[0])}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.contains=function(e){for(var t=0,n=this.array_.length;t<n;t++)if(this.array_[t]===e)return!0;return!1},t.prototype.add=function(e){return!this.contains(e)&&(this.array_.push(e),!0)},t.prototype.addAll=function(e){for(var t=e.iterator();t.hasNext();)this.add(t.next());return!0},t.prototype.remove=function(e){throw new Error},t.prototype.size=function(){return this.array_.length},t.prototype.isEmpty=function(){return 0===this.array_.length},t.prototype.toArray=function(){for(var e=[],t=0,n=this.array_.length;t<n;t++)e.push(this.array_[t]);return e},t.prototype.iterator=function(){return new Me(this)},t}(o),Me=function(e){function t(t){e.call(this),this.hashSet_=t,this.position_=0}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.next=function(){if(this.position_===this.hashSet_.size())throw new r;return this.hashSet_.array_[this.position_++]},t.prototype.hasNext=function(){return this.position_<this.hashSet_.size()},t.prototype.remove=function(){throw new i},t}(xe),Oe=0;(d.prototype=new Ge).get=function(e){for(var t=this.root_;null!==t;){var n=e.compareTo(t.key);if(n<0)t=t.left;else{if(!(n>0))return t.value;t=t.right}}return null},d.prototype.put=function(e,t){if(null===this.root_)return this.root_={key:e,value:t,left:null,right:null,parent:null,color:Oe,getValue:function(){return this.value},getKey:function(){return this.key}},this.size_=1,null;var n,r,i=this.root_;do{if(n=i,(r=e.compareTo(i.key))<0)i=i.left;else{if(!(r>0)){var o=i.value;return i.value=t,o}i=i.right}}while(null!==i);var s={key:e,left:null,right:null,value:t,parent:n,color:Oe,getValue:function(){return this.value},getKey:function(){return this.key}};return r<0?n.left=s:n.right=s,this.fixAfterInsertion(s),this.size_++,null},d.prototype.fixAfterInsertion=function(e){for(e.color=1;null!=e&&e!==this.root_&&1===e.parent.color;)if(a(e)===c(a(a(e)))){var t=u(a(a(e)));1===s(t)?(l(a(e),Oe),l(t,Oe),l(a(a(e)),1),e=a(a(e))):(e===u(a(e))&&(e=a(e),this.rotateLeft(e)),l(a(e),Oe),l(a(a(e)),1),this.rotateRight(a(a(e))))}else{var n=c(a(a(e)));1===s(n)?(l(a(e),Oe),l(n,Oe),l(a(a(e)),1),e=a(a(e))):(e===c(a(e))&&(e=a(e),this.rotateRight(e)),l(a(e),Oe),l(a(a(e)),1),this.rotateLeft(a(a(e))))}this.root_.color=Oe},d.prototype.values=function(){var e=new we,t=this.getFirstEntry();if(null!==t)for(e.add(t.value);null!==(t=d.successor(t));)e.add(t.value);return e},d.prototype.entrySet=function(){var e=new Te,t=this.getFirstEntry();if(null!==t)for(e.add(t);null!==(t=d.successor(t));)e.add(t);return e},d.prototype.rotateLeft=function(e){if(null!=e){var t=e.right;e.right=t.left,null!=t.left&&(t.left.parent=e),t.parent=e.parent,null===e.parent?this.root_=t:e.parent.left===e?e.parent.left=t:e.parent.right=t,t.left=e,e.parent=t}},d.prototype.rotateRight=function(e){if(null!=e){var t=e.left;e.left=t.right,null!=t.right&&(t.right.parent=e),t.parent=e.parent,null===e.parent?this.root_=t:e.parent.right===e?e.parent.right=t:e.parent.left=t,t.right=e,e.parent=t}},d.prototype.getFirstEntry=function(){var e=this.root_;if(null!=e)for(;null!=e.left;)e=e.left;return e},d.successor=function(e){if(null===e)return null;if(null!==e.right){for(var t=e.right;null!==t.left;)t=t.left;return t}for(var n=e.parent,r=e;null!==n&&r===n.right;)r=n,n=n.parent;return n},d.prototype.size=function(){return this.size_};var Re=function(){};Re.prototype.interfaces_=function(){return[]},Re.prototype.getClass=function(){return Re},h.prototype=new o,(p.prototype=new h).contains=function(e){for(var t=0,n=this.array_.length;t<n;t++)if(0===this.array_[t].compareTo(e))return!0;return!1},p.prototype.add=function(e){if(this.contains(e))return!1;for(var t=0,n=this.array_.length;t<n;t++)if(1===this.array_[t].compareTo(e))return this.array_.splice(t,0,e),!0;return this.array_.push(e),!0},p.prototype.addAll=function(e){for(var t=e.iterator();t.hasNext();)this.add(t.next());return!0},p.prototype.remove=function(e){throw new i},p.prototype.size=function(){return this.array_.length},p.prototype.isEmpty=function(){return 0===this.array_.length},p.prototype.toArray=function(){for(var e=[],t=0,n=this.array_.length;t<n;t++)e.push(this.array_[t]);return e},p.prototype.iterator=function(){return new De(this)};var De=function(e){this.treeSet_=e,this.position_=0};De.prototype.next=function(){if(this.position_===this.treeSet_.size())throw new r;return this.treeSet_.array_[this.position_++]},De.prototype.hasNext=function(){return this.position_<this.treeSet_.size()},De.prototype.remove=function(){throw new i};var Ne=function(){};Ne.sort=function(){var e,t,n,r,i=arguments[0];if(1===arguments.length)r=function(e,t){return e.compareTo(t)},i.sort(r);else if(2===arguments.length)n=arguments[1],r=function(e,t){return n.compare(e,t)},i.sort(r);else if(3===arguments.length){(t=i.slice(arguments[1],arguments[2])).sort();var o=i.slice(0,arguments[1]).concat(t,i.slice(arguments[2],i.length));for(i.splice(0,i.length),e=0;e<o.length;e++)i.push(o[e])}else if(4===arguments.length)for(t=i.slice(arguments[1],arguments[2]),n=arguments[3],r=function(e,t){return n.compare(e,t)},t.sort(r),o=i.slice(0,arguments[1]).concat(t,i.slice(arguments[2],i.length)),i.splice(0,i.length),e=0;e<o.length;e++)i.push(o[e])},Ne.asList=function(e){for(var t=new we,n=0,r=e.length;n<r;n++)t.add(e[n]);return t};var Le=function(){},Ve={P:{configurable:!0},L:{configurable:!0},A:{configurable:!0},FALSE:{configurable:!0},TRUE:{configurable:!0},DONTCARE:{configurable:!0},SYM_FALSE:{configurable:!0},SYM_TRUE:{configurable:!0},SYM_DONTCARE:{configurable:!0},SYM_P:{configurable:!0},SYM_L:{configurable:!0},SYM_A:{configurable:!0}};Ve.P.get=function(){return 0},Ve.L.get=function(){return 1},Ve.A.get=function(){return 2},Ve.FALSE.get=function(){return-1},Ve.TRUE.get=function(){return-2},Ve.DONTCARE.get=function(){return-3},Ve.SYM_FALSE.get=function(){return"F"},Ve.SYM_TRUE.get=function(){return"T"},Ve.SYM_DONTCARE.get=function(){return"*"},Ve.SYM_P.get=function(){return"0"},Ve.SYM_L.get=function(){return"1"},Ve.SYM_A.get=function(){return"2"},Le.prototype.interfaces_=function(){return[]},Le.prototype.getClass=function(){return Le},Le.toDimensionSymbol=function(e){switch(e){case Le.FALSE:return Le.SYM_FALSE;case Le.TRUE:return Le.SYM_TRUE;case Le.DONTCARE:return Le.SYM_DONTCARE;case Le.P:return Le.SYM_P;case Le.L:return Le.SYM_L;case Le.A:return Le.SYM_A}throw new v("Unknown dimension value: "+e)},Le.toDimensionValue=function(e){switch(R.toUpperCase(e)){case Le.SYM_FALSE:return Le.FALSE;case Le.SYM_TRUE:return Le.TRUE;case Le.SYM_DONTCARE:return Le.DONTCARE;case Le.SYM_P:return Le.P;case Le.SYM_L:return Le.L;case Le.SYM_A:return Le.A}throw new v("Unknown dimension symbol: "+e)},Object.defineProperties(Le,Ve);var Fe=function(){};Fe.prototype.filter=function(e){},Fe.prototype.interfaces_=function(){return[]},Fe.prototype.getClass=function(){return Fe};var ze=function(){};ze.prototype.filter=function(e,t){},ze.prototype.isDone=function(){},ze.prototype.isGeometryChanged=function(){},ze.prototype.interfaces_=function(){return[]},ze.prototype.getClass=function(){return ze};var Be=function(e){function t(t,n){if(e.call(this,n),this._geometries=t||[],e.hasNullElements(this._geometries))throw new v("geometries must not contain null elements")}e&&(t.__proto__=e),(t.prototype=Object.create(e&&e.prototype)).constructor=t;var n={serialVersionUID:{configurable:!0}};return t.prototype.computeEnvelopeInternal=function(){for(var e=new q,t=0;t<this._geometries.length;t++)e.expandToInclude(this._geometries[t].getEnvelopeInternal());return e},t.prototype.getGeometryN=function(e){return this._geometries[e]},t.prototype.getSortIndex=function(){return e.SORTINDEX_GEOMETRYCOLLECTION},t.prototype.getCoordinates=function(){for(var e=new Array(this.getNumPoints()).fill(null),t=-1,n=0;n<this._geometries.length;n++)for(var r=this._geometries[n].getCoordinates(),i=0;i<r.length;i++)e[++t]=r[i];return e},t.prototype.getArea=function(){for(var e=0,t=0;t<this._geometries.length;t++)e+=this._geometries[t].getArea();return e},t.prototype.equalsExact=function(){if(2===arguments.length){var t=arguments[0],n=arguments[1];if(!this.isEquivalentClass(t))return!1;var r=t;if(this._geometries.length!==r._geometries.length)return!1;for(var i=0;i<this._geometries.length;i++)if(!this._geometries[i].equalsExact(r._geometries[i],n))return!1;return!0}return e.prototype.equalsExact.apply(this,arguments)},t.prototype.normalize=function(){for(var e=0;e<this._geometries.length;e++)this._geometries[e].normalize();Ne.sort(this._geometries)},t.prototype.getCoordinate=function(){return this.isEmpty()?null:this._geometries[0].getCoordinate()},t.prototype.getBoundaryDimension=function(){for(var e=Le.FALSE,t=0;t<this._geometries.length;t++)e=Math.max(e,this._geometries[t].getBoundaryDimension());return e},t.prototype.getDimension=function(){for(var e=Le.FALSE,t=0;t<this._geometries.length;t++)e=Math.max(e,this._geometries[t].getDimension());return e},t.prototype.getLength=function(){for(var e=0,t=0;t<this._geometries.length;t++)e+=this._geometries[t].getLength();return e},t.prototype.getNumPoints=function(){for(var e=0,t=0;t<this._geometries.length;t++)e+=this._geometries[t].getNumPoints();return e},t.prototype.getNumGeometries=function(){return this._geometries.length},t.prototype.reverse=function(){for(var e=this._geometries.length,t=new Array(e).fill(null),n=0;n<this._geometries.length;n++)t[n]=this._geometries[n].reverse();return this.getFactory().createGeometryCollection(t)},t.prototype.compareToSameClass=function(){if(1===arguments.length){var e=arguments[0],t=new p(Ne.asList(this._geometries)),n=new p(Ne.asList(e._geometries));return this.compare(t,n)}if(2===arguments.length){for(var r=arguments[1],i=arguments[0],o=this.getNumGeometries(),s=i.getNumGeometries(),a=0;a<o&&a<s;){var l=this.getGeometryN(a),c=i.getGeometryN(a),u=l.compareToSameClass(c,r);if(0!==u)return u;a++}return a<o?1:a<s?-1:0}},t.prototype.apply=function(){if(I(arguments[0],pe))for(var e=arguments[0],t=0;t<this._geometries.length;t++)this._geometries[t].apply(e);else if(I(arguments[0],ze)){var n=arguments[0];if(0===this._geometries.length)return null;for(var r=0;r<this._geometries.length&&(this._geometries[r].apply(n),!n.isDone());r++);n.isGeometryChanged()&&this.geometryChanged()}else if(I(arguments[0],Fe)){var i=arguments[0];i.filter(this);for(var o=0;o<this._geometries.length;o++)this._geometries[o].apply(i)}else if(I(arguments[0],ce)){var s=arguments[0];s.filter(this);for(var a=0;a<this._geometries.length;a++)this._geometries[a].apply(s)}},t.prototype.getBoundary=function(){return this.checkNotGeometryCollection(this),te.shouldNeverReachHere(),null},t.prototype.clone=function(){var t=e.prototype.clone.call(this);t._geometries=new Array(this._geometries.length).fill(null);for(var n=0;n<this._geometries.length;n++)t._geometries[n]=this._geometries[n].clone();return t},t.prototype.getGeometryType=function(){return"GeometryCollection"},t.prototype.copy=function(){for(var e=new Array(this._geometries.length).fill(null),n=0;n<e.length;n++)e[n]=this._geometries[n].copy();return new t(e,this._factory)},t.prototype.isEmpty=function(){for(var e=0;e<this._geometries.length;e++)if(!this._geometries[e].isEmpty())return!1;return!0},t.prototype.interfaces_=function(){return[]},t.prototype.getClass=function(){return t},n.serialVersionUID.get=function(){return-0x4f07bcb1f857d800},Object.defineProperties(t,n),t}(ue),Ue=function(e){function t(){e.apply(this,arguments)}e&&(t.__proto__=e),(t.prototype=Object.create(e&&e.prototype)).constructor=t;var n={serialVersionUID:{configurable:!0}};return t.prototype.getSortIndex=function(){return ue.SORTINDEX_MULTILINESTRING},t.prototype.equalsExact=function(){if(2===arguments.length){var t=arguments[0],n=arguments[1];return!!this.isEquivalentClass(t)&&e.prototype.equalsExact.call(this,t,n)}return e.prototype.equalsExact.apply(this,arguments)},t.prototype.getBoundaryDimension=function(){return this.isClosed()?Le.FALSE:0},t.prototype.isClosed=function(){if(this.isEmpty())return!1;for(var e=0;e<this._geometries.length;e++)if(!this._geometries[e].isClosed())return!1;return!0},t.prototype.getDimension=function(){return 1},t.prototype.reverse=function(){for(var e=this._geometries.length,t=new Array(e).fill(null),n=0;n<this._geometries.length;n++)t[e-1-n]=this._geometries[n].reverse();return this.getFactory().createMultiLineString(t)},t.prototype.getBoundary=function(){return new We(this).getBoundary()},t.prototype.getGeometryType=function(){return"MultiLineString"},t.prototype.copy=function(){for(var e=new Array(this._geometries.length).fill(null),n=0;n<e.length;n++)e[n]=this._geometries[n].copy();return new t(e,this._factory)},t.prototype.interfaces_=function(){return[Re]},t.prototype.getClass=function(){return t},n.serialVersionUID.get=function(){return 0x7155d2ab4afa8000},Object.defineProperties(t,n),t}(Be),We=function(){if(this._geom=null,this._geomFact=null,this._bnRule=null,this._endpointMap=null,1===arguments.length){var e=arguments[0],t=fe.MOD2_BOUNDARY_RULE;this._geom=e,this._geomFact=e.getFactory(),this._bnRule=t}else if(2===arguments.length){var n=arguments[0],r=arguments[1];this._geom=n,this._geomFact=n.getFactory(),this._bnRule=r}};We.prototype.boundaryMultiLineString=function(e){if(this._geom.isEmpty())return this.getEmptyMultiPoint();var t=this.computeBoundaryCoordinates(e);return 1===t.length?this._geomFact.createPoint(t[0]):this._geomFact.createMultiPointFromCoords(t)},We.prototype.getBoundary=function(){return this._geom instanceof Ke?this.boundaryLineString(this._geom):this._geom instanceof Ue?this.boundaryMultiLineString(this._geom):this._geom.getBoundary()},We.prototype.boundaryLineString=function(e){return this._geom.isEmpty()?this.getEmptyMultiPoint():e.isClosed()?this._bnRule.isInBoundary(2)?e.getStartPoint():this._geomFact.createMultiPoint():this._geomFact.createMultiPoint([e.getStartPoint(),e.getEndPoint()])},We.prototype.getEmptyMultiPoint=function(){return this._geomFact.createMultiPoint()},We.prototype.computeBoundaryCoordinates=function(e){var t=new we;this._endpointMap=new d;for(var n=0;n<e.getNumGeometries();n++){var r=e.getGeometryN(n);0!==r.getNumPoints()&&(this.addEndpoint(r.getCoordinateN(0)),this.addEndpoint(r.getCoordinateN(r.getNumPoints()-1)))}for(var i=this._endpointMap.entrySet().iterator();i.hasNext();){var o=i.next(),s=o.getValue().count;this._bnRule.isInBoundary(s)&&t.add(o.getKey())}return Ce.toCoordinateArray(t)},We.prototype.addEndpoint=function(e){var t=this._endpointMap.get(e);null===t&&(t=new He,this._endpointMap.put(e,t)),t.count++},We.prototype.interfaces_=function(){return[]},We.prototype.getClass=function(){return We},We.getBoundary=function(){return 1===arguments.length?new We(arguments[0]).getBoundary():2===arguments.length?new We(arguments[0],arguments[1]).getBoundary():void 0};var He=function(){this.count=null};He.prototype.interfaces_=function(){return[]},He.prototype.getClass=function(){return He};var qe=function(){},Xe={NEWLINE:{configurable:!0},SIMPLE_ORDINATE_FORMAT:{configurable:!0}};qe.prototype.interfaces_=function(){return[]},qe.prototype.getClass=function(){return qe},qe.chars=function(e,t){for(var n=new Array(t).fill(null),r=0;r<t;r++)n[r]=e;return String(n)},qe.getStackTrace=function(){if(1===arguments.length){var e=arguments[0],t=new function(){},n=new function(){}(t);return e.printStackTrace(n),t.toString()}if(2===arguments.length){for(var r=arguments[0],i=arguments[1],o="",s=new function(){}(new function(){}(qe.getStackTrace(r))),a=0;a<i;a++)try{o+=s.readLine()+qe.NEWLINE}catch(e){if(!(e instanceof f))throw e;te.shouldNeverReachHere()}return o}},qe.split=function(e,t){for(var n=t.length,r=new we,i=""+e,o=i.indexOf(t);o>=0;){var s=i.substring(0,o);r.add(s),o=(i=i.substring(o+n)).indexOf(t)}i.length>0&&r.add(i);for(var a=new Array(r.size()).fill(null),l=0;l<a.length;l++)a[l]=r.get(l);return a},qe.toString=function(){if(1===arguments.length){var e=arguments[0];return qe.SIMPLE_ORDINATE_FORMAT.format(e)}},qe.spaces=function(e){return qe.chars(" ",e)},Xe.NEWLINE.get=function(){return W.getProperty("line.separator")},Xe.SIMPLE_ORDINATE_FORMAT.get=function(){return new function(){}("0.#")},Object.defineProperties(qe,Xe);var Ye=function(){};Ye.prototype.interfaces_=function(){return[]},Ye.prototype.getClass=function(){return Ye},Ye.copyCoord=function(e,t,n,r){for(var i=Math.min(e.getDimension(),n.getDimension()),o=0;o<i;o++)n.setOrdinate(r,o,e.getOrdinate(t,o))},Ye.isRing=function(e){var t=e.size();return 0===t||!(t<=3)&&e.getOrdinate(0,F.X)===e.getOrdinate(t-1,F.X)&&e.getOrdinate(0,F.Y)===e.getOrdinate(t-1,F.Y)},Ye.isEqual=function(e,t){var n=e.size();if(n!==t.size())return!1;for(var r=Math.min(e.getDimension(),t.getDimension()),i=0;i<n;i++)for(var o=0;o<r;o++){var s=e.getOrdinate(i,o),a=t.getOrdinate(i,o);if(e.getOrdinate(i,o)!==t.getOrdinate(i,o)&&(!_.isNaN(s)||!_.isNaN(a)))return!1}return!0},Ye.extend=function(e,t,n){var r=e.create(n,t.getDimension()),i=t.size();if(Ye.copy(t,0,r,0,i),i>0)for(var o=i;o<n;o++)Ye.copy(t,i-1,r,o,1);return r},Ye.reverse=function(e){for(var t=e.size()-1,n=Math.trunc(t/2),r=0;r<=n;r++)Ye.swap(e,r,t-r)},Ye.swap=function(e,t,n){if(t===n)return null;for(var r=0;r<e.getDimension();r++){var i=e.getOrdinate(t,r);e.setOrdinate(t,r,e.getOrdinate(n,r)),e.setOrdinate(n,r,i)}},Ye.copy=function(e,t,n,r,i){for(var o=0;o<i;o++)Ye.copyCoord(e,t+o,n,r+o)},Ye.toString=function(){if(1===arguments.length){var e=arguments[0],t=e.size();if(0===t)return"()";var n=e.getDimension(),r=new M;r.append("(");for(var i=0;i<t;i++){i>0&&r.append(" ");for(var o=0;o<n;o++)o>0&&r.append(","),r.append(qe.toString(e.getOrdinate(i,o)))}return r.append(")"),r.toString()}},Ye.ensureValidRing=function(e,t){var n=t.size();return 0===n?t:n<=3?Ye.createClosedRing(e,t,4):t.getOrdinate(0,F.X)===t.getOrdinate(n-1,F.X)&&t.getOrdinate(0,F.Y)===t.getOrdinate(n-1,F.Y)?t:Ye.createClosedRing(e,t,n+1)},Ye.createClosedRing=function(e,t,n){var r=e.create(n,t.getDimension()),i=t.size();Ye.copy(t,0,r,0,i);for(var o=i;o<n;o++)Ye.copy(t,0,r,o,1);return r};var Ke=function(e){function t(t,n){e.call(this,n),this._points=null,this.init(t)}e&&(t.__proto__=e),(t.prototype=Object.create(e&&e.prototype)).constructor=t;var n={serialVersionUID:{configurable:!0}};return t.prototype.computeEnvelopeInternal=function(){return this.isEmpty()?new q:this._points.expandEnvelope(new q)},t.prototype.isRing=function(){return this.isClosed()&&this.isSimple()},t.prototype.getSortIndex=function(){return e.SORTINDEX_LINESTRING},t.prototype.getCoordinates=function(){return this._points.toCoordinateArray()},t.prototype.equalsExact=function(){if(2===arguments.length){var t=arguments[0],n=arguments[1];if(!this.isEquivalentClass(t))return!1;var r=t;if(this._points.size()!==r._points.size())return!1;for(var i=0;i<this._points.size();i++)if(!this.equal(this._points.getCoordinate(i),r._points.getCoordinate(i),n))return!1;return!0}return e.prototype.equalsExact.apply(this,arguments)},t.prototype.normalize=function(){for(var e=0;e<Math.trunc(this._points.size()/2);e++){var t=this._points.size()-1-e;if(!this._points.getCoordinate(e).equals(this._points.getCoordinate(t)))return this._points.getCoordinate(e).compareTo(this._points.getCoordinate(t))>0&&Ye.reverse(this._points),null}},t.prototype.getCoordinate=function(){return this.isEmpty()?null:this._points.getCoordinate(0)},t.prototype.getBoundaryDimension=function(){return this.isClosed()?Le.FALSE:0},t.prototype.isClosed=function(){return!this.isEmpty()&&this.getCoordinateN(0).equals2D(this.getCoordinateN(this.getNumPoints()-1))},t.prototype.getEndPoint=function(){return this.isEmpty()?null:this.getPointN(this.getNumPoints()-1)},t.prototype.getDimension=function(){return 1},t.prototype.getLength=function(){return ae.computeLength(this._points)},t.prototype.getNumPoints=function(){return this._points.size()},t.prototype.reverse=function(){var e=this._points.copy();return Ye.reverse(e),this.getFactory().createLineString(e)},t.prototype.compareToSameClass=function(){if(1===arguments.length){for(var e=arguments[0],t=0,n=0;t<this._points.size()&&n<e._points.size();){var r=this._points.getCoordinate(t).compareTo(e._points.getCoordinate(n));if(0!==r)return r;t++,n++}return t<this._points.size()?1:n<e._points.size()?-1:0}if(2===arguments.length){var i=arguments[0];return arguments[1].compare(this._points,i._points)}},t.prototype.apply=function(){if(I(arguments[0],pe))for(var e=arguments[0],t=0;t<this._points.size();t++)e.filter(this._points.getCoordinate(t));else if(I(arguments[0],ze)){var n=arguments[0];if(0===this._points.size())return null;for(var r=0;r<this._points.size()&&(n.filter(this._points,r),!n.isDone());r++);n.isGeometryChanged()&&this.geometryChanged()}else(I(arguments[0],Fe)||I(arguments[0],ce))&&arguments[0].filter(this)},t.prototype.getBoundary=function(){return new We(this).getBoundary()},t.prototype.isEquivalentClass=function(e){return e instanceof t},t.prototype.clone=function(){var t=e.prototype.clone.call(this);return t._points=this._points.clone(),t},t.prototype.getCoordinateN=function(e){return this._points.getCoordinate(e)},t.prototype.getGeometryType=function(){return"LineString"},t.prototype.copy=function(){return new t(this._points.copy(),this._factory)},t.prototype.getCoordinateSequence=function(){return this._points},t.prototype.isEmpty=function(){return 0===this._points.size()},t.prototype.init=function(e){if(null===e&&(e=this.getFactory().getCoordinateSequenceFactory().create([])),1===e.size())throw new v("Invalid number of points in LineString (found "+e.size()+" - must be 0 or >= 2)");this._points=e},t.prototype.isCoordinate=function(e){for(var t=0;t<this._points.size();t++)if(this._points.getCoordinate(t).equals(e))return!0;return!1},t.prototype.getStartPoint=function(){return this.isEmpty()?null:this.getPointN(0)},t.prototype.getPointN=function(e){return this.getFactory().createPoint(this._points.getCoordinate(e))},t.prototype.interfaces_=function(){return[Re]},t.prototype.getClass=function(){return t},n.serialVersionUID.get=function(){return 0x2b2b51ba435c8e00},Object.defineProperties(t,n),t}(ue),Ze=function(){};Ze.prototype.interfaces_=function(){return[]},Ze.prototype.getClass=function(){return Ze};var $e=function(e){function t(t,n){e.call(this,n),this._coordinates=t||null,this.init(this._coordinates)}e&&(t.__proto__=e),(t.prototype=Object.create(e&&e.prototype)).constructor=t;var n={serialVersionUID:{configurable:!0}};return t.prototype.computeEnvelopeInternal=function(){if(this.isEmpty())return new q;var e=new q;return e.expandToInclude(this._coordinates.getX(0),this._coordinates.getY(0)),e},t.prototype.getSortIndex=function(){return e.SORTINDEX_POINT},t.prototype.getCoordinates=function(){return this.isEmpty()?[]:[this.getCoordinate()]},t.prototype.equalsExact=function(){if(2===arguments.length){var t=arguments[0],n=arguments[1];return!!this.isEquivalentClass(t)&&(!(!this.isEmpty()||!t.isEmpty())||this.isEmpty()===t.isEmpty()&&this.equal(t.getCoordinate(),this.getCoordinate(),n))}return e.prototype.equalsExact.apply(this,arguments)},t.prototype.normalize=function(){},t.prototype.getCoordinate=function(){return 0!==this._coordinates.size()?this._coordinates.getCoordinate(0):null},t.prototype.getBoundaryDimension=function(){return Le.FALSE},t.prototype.getDimension=function(){return 0},t.prototype.getNumPoints=function(){return this.isEmpty()?0:1},t.prototype.reverse=function(){return this.copy()},t.prototype.getX=function(){if(null===this.getCoordinate())throw new Error("getX called on empty Point");return this.getCoordinate().x},t.prototype.compareToSameClass=function(){if(1===arguments.length){var e=arguments[0];return this.getCoordinate().compareTo(e.getCoordinate())}if(2===arguments.length){var t=arguments[0];return arguments[1].compare(this._coordinates,t._coordinates)}},t.prototype.apply=function(){if(I(arguments[0],pe)){var e=arguments[0];if(this.isEmpty())return null;e.filter(this.getCoordinate())}else if(I(arguments[0],ze)){var t=arguments[0];if(this.isEmpty())return null;t.filter(this._coordinates,0),t.isGeometryChanged()&&this.geometryChanged()}else(I(arguments[0],Fe)||I(arguments[0],ce))&&arguments[0].filter(this)},t.prototype.getBoundary=function(){return this.getFactory().createGeometryCollection(null)},t.prototype.clone=function(){var t=e.prototype.clone.call(this);return t._coordinates=this._coordinates.clone(),t},t.prototype.getGeometryType=function(){return"Point"},t.prototype.copy=function(){return new t(this._coordinates.copy(),this._factory)},t.prototype.getCoordinateSequence=function(){return this._coordinates},t.prototype.getY=function(){if(null===this.getCoordinate())throw new Error("getY called on empty Point");return this.getCoordinate().y},t.prototype.isEmpty=function(){return 0===this._coordinates.size()},t.prototype.init=function(e){null===e&&(e=this.getFactory().getCoordinateSequenceFactory().create([])),te.isTrue(e.size()<=1),this._coordinates=e},t.prototype.isSimple=function(){return!0},t.prototype.interfaces_=function(){return[Ze]},t.prototype.getClass=function(){return t},n.serialVersionUID.get=function(){return 0x44077bad161cbc00},Object.defineProperties(t,n),t}(ue),Je=function(){};Je.prototype.interfaces_=function(){return[]},Je.prototype.getClass=function(){return Je};var Qe=function(e){function t(t,n,r){if(e.call(this,r),this._shell=null,this._holes=null,null===t&&(t=this.getFactory().createLinearRing()),null===n&&(n=[]),e.hasNullElements(n))throw new v("holes must not contain null elements");if(t.isEmpty()&&e.hasNonEmptyElements(n))throw new v("shell is empty but holes are not");this._shell=t,this._holes=n}e&&(t.__proto__=e),(t.prototype=Object.create(e&&e.prototype)).constructor=t;var n={serialVersionUID:{configurable:!0}};return t.prototype.computeEnvelopeInternal=function(){return this._shell.getEnvelopeInternal()},t.prototype.getSortIndex=function(){return e.SORTINDEX_POLYGON},t.prototype.getCoordinates=function(){if(this.isEmpty())return[];for(var e=new Array(this.getNumPoints()).fill(null),t=-1,n=this._shell.getCoordinates(),r=0;r<n.length;r++)e[++t]=n[r];for(var i=0;i<this._holes.length;i++)for(var o=this._holes[i].getCoordinates(),s=0;s<o.length;s++)e[++t]=o[s];return e},t.prototype.getArea=function(){var e=0;e+=Math.abs(ae.signedArea(this._shell.getCoordinateSequence()));for(var t=0;t<this._holes.length;t++)e-=Math.abs(ae.signedArea(this._holes[t].getCoordinateSequence()));return e},t.prototype.isRectangle=function(){if(0!==this.getNumInteriorRing())return!1;if(null===this._shell)return!1;if(5!==this._shell.getNumPoints())return!1;for(var e=this._shell.getCoordinateSequence(),t=this.getEnvelopeInternal(),n=0;n<5;n++){var r=e.getX(n);if(r!==t.getMinX()&&r!==t.getMaxX())return!1;var i=e.getY(n);if(i!==t.getMinY()&&i!==t.getMaxY())return!1}for(var o=e.getX(0),s=e.getY(0),a=1;a<=4;a++){var l=e.getX(a),c=e.getY(a);if(l!==o===(c!==s))return!1;o=l,s=c}return!0},t.prototype.equalsExact=function(){if(2===arguments.length){var t=arguments[0],n=arguments[1];if(!this.isEquivalentClass(t))return!1;var r=t,i=this._shell,o=r._shell;if(!i.equalsExact(o,n))return!1;if(this._holes.length!==r._holes.length)return!1;for(var s=0;s<this._holes.length;s++)if(!this._holes[s].equalsExact(r._holes[s],n))return!1;return!0}return e.prototype.equalsExact.apply(this,arguments)},t.prototype.normalize=function(){if(0===arguments.length){this.normalize(this._shell,!0);for(var e=0;e<this._holes.length;e++)this.normalize(this._holes[e],!1);Ne.sort(this._holes)}else if(2===arguments.length){var t=arguments[0],n=arguments[1];if(t.isEmpty())return null;var r=new Array(t.getCoordinates().length-1).fill(null);W.arraycopy(t.getCoordinates(),0,r,0,r.length);var i=Ce.minCoordinate(t.getCoordinates());Ce.scroll(r,i),W.arraycopy(r,0,t.getCoordinates(),0,r.length),t.getCoordinates()[r.length]=r[0],ae.isCCW(t.getCoordinates())===n&&Ce.reverse(t.getCoordinates())}},t.prototype.getCoordinate=function(){return this._shell.getCoordinate()},t.prototype.getNumInteriorRing=function(){return this._holes.length},t.prototype.getBoundaryDimension=function(){return 1},t.prototype.getDimension=function(){return 2},t.prototype.getLength=function(){var e=0;e+=this._shell.getLength();for(var t=0;t<this._holes.length;t++)e+=this._holes[t].getLength();return e},t.prototype.getNumPoints=function(){for(var e=this._shell.getNumPoints(),t=0;t<this._holes.length;t++)e+=this._holes[t].getNumPoints();return e},t.prototype.reverse=function(){var e=this.copy();e._shell=this._shell.copy().reverse(),e._holes=new Array(this._holes.length).fill(null);for(var t=0;t<this._holes.length;t++)e._holes[t]=this._holes[t].copy().reverse();return e},t.prototype.convexHull=function(){return this.getExteriorRing().convexHull()},t.prototype.compareToSameClass=function(){if(1===arguments.length){var e=arguments[0],t=this._shell,n=e._shell;return t.compareToSameClass(n)}if(2===arguments.length){var r=arguments[1],i=arguments[0],o=this._shell,s=i._shell,a=o.compareToSameClass(s,r);if(0!==a)return a;for(var l=this.getNumInteriorRing(),c=i.getNumInteriorRing(),u=0;u<l&&u<c;){var d=this.getInteriorRingN(u),h=i.getInteriorRingN(u),p=d.compareToSameClass(h,r);if(0!==p)return p;u++}return u<l?1:u<c?-1:0}},t.prototype.apply=function(e){if(I(e,pe)){this._shell.apply(e);for(var t=0;t<this._holes.length;t++)this._holes[t].apply(e)}else if(I(e,ze)){if(this._shell.apply(e),!e.isDone())for(var n=0;n<this._holes.length&&(this._holes[n].apply(e),!e.isDone());n++);e.isGeometryChanged()&&this.geometryChanged()}else if(I(e,Fe))e.filter(this);else if(I(e,ce)){e.filter(this),this._shell.apply(e);for(var r=0;r<this._holes.length;r++)this._holes[r].apply(e)}},t.prototype.getBoundary=function(){if(this.isEmpty())return this.getFactory().createMultiLineString();var e=new Array(this._holes.length+1).fill(null);e[0]=this._shell;for(var t=0;t<this._holes.length;t++)e[t+1]=this._holes[t];return e.length<=1?this.getFactory().createLinearRing(e[0].getCoordinateSequence()):this.getFactory().createMultiLineString(e)},t.prototype.clone=function(){var t=e.prototype.clone.call(this);t._shell=this._shell.clone(),t._holes=new Array(this._holes.length).fill(null);for(var n=0;n<this._holes.length;n++)t._holes[n]=this._holes[n].clone();return t},t.prototype.getGeometryType=function(){return"Polygon"},t.prototype.copy=function(){for(var e=this._shell.copy(),n=new Array(this._holes.length).fill(null),r=0;r<n.length;r++)n[r]=this._holes[r].copy();return new t(e,n,this._factory)},t.prototype.getExteriorRing=function(){return this._shell},t.prototype.isEmpty=function(){return this._shell.isEmpty()},t.prototype.getInteriorRingN=function(e){return this._holes[e]},t.prototype.interfaces_=function(){return[Je]},t.prototype.getClass=function(){return t},n.serialVersionUID.get=function(){return-0x307ffefd8dc97200},Object.defineProperties(t,n),t}(ue),et=function(e){function t(){e.apply(this,arguments)}e&&(t.__proto__=e),(t.prototype=Object.create(e&&e.prototype)).constructor=t;var n={serialVersionUID:{configurable:!0}};return t.prototype.getSortIndex=function(){return ue.SORTINDEX_MULTIPOINT},t.prototype.isValid=function(){return!0},t.prototype.equalsExact=function(){if(2===arguments.length){var t=arguments[0],n=arguments[1];return!!this.isEquivalentClass(t)&&e.prototype.equalsExact.call(this,t,n)}return e.prototype.equalsExact.apply(this,arguments)},t.prototype.getCoordinate=function(){if(1===arguments.length){var t=arguments[0];return this._geometries[t].getCoordinate()}return e.prototype.getCoordinate.apply(this,arguments)},t.prototype.getBoundaryDimension=function(){return Le.FALSE},t.prototype.getDimension=function(){return 0},t.prototype.getBoundary=function(){return this.getFactory().createGeometryCollection(null)},t.prototype.getGeometryType=function(){return"MultiPoint"},t.prototype.copy=function(){for(var e=new Array(this._geometries.length).fill(null),n=0;n<e.length;n++)e[n]=this._geometries[n].copy();return new t(e,this._factory)},t.prototype.interfaces_=function(){return[Ze]},t.prototype.getClass=function(){return t},n.serialVersionUID.get=function(){return-0x6fb1ed4162e0fc00},Object.defineProperties(t,n),t}(Be),tt=function(e){function t(t,n){t instanceof E&&n instanceof yt&&(t=n.getCoordinateSequenceFactory().create(t)),e.call(this,t,n),this.validateConstruction()}e&&(t.__proto__=e),(t.prototype=Object.create(e&&e.prototype)).constructor=t;var n={MINIMUM_VALID_SIZE:{configurable:!0},serialVersionUID:{configurable:!0}};return t.prototype.getSortIndex=function(){return ue.SORTINDEX_LINEARRING},t.prototype.getBoundaryDimension=function(){return Le.FALSE},t.prototype.isClosed=function(){return!!this.isEmpty()||e.prototype.isClosed.call(this)},t.prototype.reverse=function(){var e=this._points.copy();return Ye.reverse(e),this.getFactory().createLinearRing(e)},t.prototype.validateConstruction=function(){if(!this.isEmpty()&&!e.prototype.isClosed.call(this))throw new v("Points of LinearRing do not form a closed linestring");if(this.getCoordinateSequence().size()>=1&&this.getCoordinateSequence().size()<t.MINIMUM_VALID_SIZE)throw new v("Invalid number of points in LinearRing (found "+this.getCoordinateSequence().size()+" - must be 0 or >= 4)")},t.prototype.getGeometryType=function(){return"LinearRing"},t.prototype.copy=function(){return new t(this._points.copy(),this._factory)},t.prototype.interfaces_=function(){return[]},t.prototype.getClass=function(){return t},n.MINIMUM_VALID_SIZE.get=function(){return 4},n.serialVersionUID.get=function(){return-0x3b229e262367a600},Object.defineProperties(t,n),t}(Ke),nt=function(e){function t(){e.apply(this,arguments)}e&&(t.__proto__=e),(t.prototype=Object.create(e&&e.prototype)).constructor=t;var n={serialVersionUID:{configurable:!0}};return t.prototype.getSortIndex=function(){return ue.SORTINDEX_MULTIPOLYGON},t.prototype.equalsExact=function(){if(2===arguments.length){var t=arguments[0],n=arguments[1];return!!this.isEquivalentClass(t)&&e.prototype.equalsExact.call(this,t,n)}return e.prototype.equalsExact.apply(this,arguments)},t.prototype.getBoundaryDimension=function(){return 1},t.prototype.getDimension=function(){return 2},t.prototype.reverse=function(){for(var e=this._geometries.length,t=new Array(e).fill(null),n=0;n<this._geometries.length;n++)t[n]=this._geometries[n].reverse();return this.getFactory().createMultiPolygon(t)},t.prototype.getBoundary=function(){if(this.isEmpty())return this.getFactory().createMultiLineString();for(var e=new we,t=0;t<this._geometries.length;t++)for(var n=this._geometries[t].getBoundary(),r=0;r<n.getNumGeometries();r++)e.add(n.getGeometryN(r));var i=new Array(e.size()).fill(null);return this.getFactory().createMultiLineString(e.toArray(i))},t.prototype.getGeometryType=function(){return"MultiPolygon"},t.prototype.copy=function(){for(var e=new Array(this._geometries.length).fill(null),n=0;n<e.length;n++)e[n]=this._geometries[n].copy();return new t(e,this._factory)},t.prototype.interfaces_=function(){return[Je]},t.prototype.getClass=function(){return t},n.serialVersionUID.get=function(){return-0x7a5aa1369171980},Object.defineProperties(t,n),t}(Be),rt=function(e){this._factory=e||null,this._isUserDataCopied=!1},it={NoOpGeometryOperation:{configurable:!0},CoordinateOperation:{configurable:!0},CoordinateSequenceOperation:{configurable:!0}};rt.prototype.setCopyUserData=function(e){this._isUserDataCopied=e},rt.prototype.edit=function(e,t){if(null===e)return null;var n=this.editInternal(e,t);return this._isUserDataCopied&&n.setUserData(e.getUserData()),n},rt.prototype.editInternal=function(e,t){return null===this._factory&&(this._factory=e.getFactory()),e instanceof Be?this.editGeometryCollection(e,t):e instanceof Qe?this.editPolygon(e,t):e instanceof $e||e instanceof Ke?t.edit(e,this._factory):(te.shouldNeverReachHere("Unsupported Geometry class: "+e.getClass().getName()),null)},rt.prototype.editGeometryCollection=function(e,t){for(var n=t.edit(e,this._factory),r=new we,i=0;i<n.getNumGeometries();i++){var o=this.edit(n.getGeometryN(i),t);null===o||o.isEmpty()||r.add(o)}return n.getClass()===et?this._factory.createMultiPoint(r.toArray([])):n.getClass()===Ue?this._factory.createMultiLineString(r.toArray([])):n.getClass()===nt?this._factory.createMultiPolygon(r.toArray([])):this._factory.createGeometryCollection(r.toArray([]))},rt.prototype.editPolygon=function(e,t){var n=t.edit(e,this._factory);if(null===n&&(n=this._factory.createPolygon(null)),n.isEmpty())return n;var r=this.edit(n.getExteriorRing(),t);if(null===r||r.isEmpty())return this._factory.createPolygon();for(var i=new we,o=0;o<n.getNumInteriorRing();o++){var s=this.edit(n.getInteriorRingN(o),t);null===s||s.isEmpty()||i.add(s)}return this._factory.createPolygon(r,i.toArray([]))},rt.prototype.interfaces_=function(){return[]},rt.prototype.getClass=function(){return rt},rt.GeometryEditorOperation=function(){},it.NoOpGeometryOperation.get=function(){return ot},it.CoordinateOperation.get=function(){return st},it.CoordinateSequenceOperation.get=function(){return at},Object.defineProperties(rt,it);var ot=function(){};ot.prototype.edit=function(e,t){return e},ot.prototype.interfaces_=function(){return[rt.GeometryEditorOperation]},ot.prototype.getClass=function(){return ot};var st=function(){};st.prototype.edit=function(e,t){var n=this.editCoordinates(e.getCoordinates(),e);return null===n?e:e instanceof tt?t.createLinearRing(n):e instanceof Ke?t.createLineString(n):e instanceof $e?n.length>0?t.createPoint(n[0]):t.createPoint():e},st.prototype.interfaces_=function(){return[rt.GeometryEditorOperation]},st.prototype.getClass=function(){return st};var at=function(){};at.prototype.edit=function(e,t){return e instanceof tt?t.createLinearRing(this.edit(e.getCoordinateSequence(),e)):e instanceof Ke?t.createLineString(this.edit(e.getCoordinateSequence(),e)):e instanceof $e?t.createPoint(this.edit(e.getCoordinateSequence(),e)):e},at.prototype.interfaces_=function(){return[rt.GeometryEditorOperation]},at.prototype.getClass=function(){return at};var lt=function(){if(this._dimension=3,this._coordinates=null,1===arguments.length){if(arguments[0]instanceof Array)this._coordinates=arguments[0],this._dimension=3;else if(Number.isInteger(arguments[0])){var e=arguments[0];this._coordinates=new Array(e).fill(null);for(var t=0;t<e;t++)this._coordinates[t]=new E}else if(I(arguments[0],F)){var n=arguments[0];if(null===n)return this._coordinates=new Array(0).fill(null),null;this._dimension=n.getDimension(),this._coordinates=new Array(n.size()).fill(null);for(var r=0;r<this._coordinates.length;r++)this._coordinates[r]=n.getCoordinateCopy(r)}}else if(2===arguments.length)if(arguments[0]instanceof Array&&Number.isInteger(arguments[1])){var i=arguments[0],o=arguments[1];this._coordinates=i,this._dimension=o,null===i&&(this._coordinates=new Array(0).fill(null))}else if(Number.isInteger(arguments[0])&&Number.isInteger(arguments[1])){var s=arguments[0],a=arguments[1];this._coordinates=new Array(s).fill(null),this._dimension=a;for(var l=0;l<s;l++)this._coordinates[l]=new E}},ct={serialVersionUID:{configurable:!0}};lt.prototype.setOrdinate=function(e,t,n){switch(t){case F.X:this._coordinates[e].x=n;break;case F.Y:this._coordinates[e].y=n;break;case F.Z:this._coordinates[e].z=n;break;default:throw new v("invalid ordinateIndex")}},lt.prototype.size=function(){return this._coordinates.length},lt.prototype.getOrdinate=function(e,t){switch(t){case F.X:return this._coordinates[e].x;case F.Y:return this._coordinates[e].y;case F.Z:return this._coordinates[e].z}return _.NaN},lt.prototype.getCoordinate=function(){if(1===arguments.length){var e=arguments[0];return this._coordinates[e]}if(2===arguments.length){var t=arguments[0],n=arguments[1];n.x=this._coordinates[t].x,n.y=this._coordinates[t].y,n.z=this._coordinates[t].z}},lt.prototype.getCoordinateCopy=function(e){return new E(this._coordinates[e])},lt.prototype.getDimension=function(){return this._dimension},lt.prototype.getX=function(e){return this._coordinates[e].x},lt.prototype.clone=function(){for(var e=new Array(this.size()).fill(null),t=0;t<this._coordinates.length;t++)e[t]=this._coordinates[t].clone();return new lt(e,this._dimension)},lt.prototype.expandEnvelope=function(e){for(var t=0;t<this._coordinates.length;t++)e.expandToInclude(this._coordinates[t]);return e},lt.prototype.copy=function(){for(var e=new Array(this.size()).fill(null),t=0;t<this._coordinates.length;t++)e[t]=this._coordinates[t].copy();return new lt(e,this._dimension)},lt.prototype.toString=function(){if(this._coordinates.length>0){var e=new M(17*this._coordinates.length);e.append("("),e.append(this._coordinates[0]);for(var t=1;t<this._coordinates.length;t++)e.append(", "),e.append(this._coordinates[t]);return e.append(")"),e.toString()}return"()"},lt.prototype.getY=function(e){return this._coordinates[e].y},lt.prototype.toCoordinateArray=function(){return this._coordinates},lt.prototype.interfaces_=function(){return[F,t]},lt.prototype.getClass=function(){return lt},ct.serialVersionUID.get=function(){return-0xcb44a778db18e00},Object.defineProperties(lt,ct);var ut=function(){},dt={serialVersionUID:{configurable:!0},instanceObject:{configurable:!0}};ut.prototype.readResolve=function(){return ut.instance()},ut.prototype.create=function(){if(1===arguments.length){if(arguments[0]instanceof Array)return new lt(arguments[0]);if(I(arguments[0],F))return new lt(arguments[0])}else if(2===arguments.length){var e=arguments[0],t=arguments[1];return t>3&&(t=3),t<2?new lt(e):new lt(e,t)}},ut.prototype.interfaces_=function(){return[A,t]},ut.prototype.getClass=function(){return ut},ut.instance=function(){return ut.instanceObject},dt.serialVersionUID.get=function(){return-0x38e49fa6cf6f2e00},dt.instanceObject.get=function(){return new ut},Object.defineProperties(ut,dt);var ht=function(e){function t(){e.call(this),this.map_=new Map}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.get=function(e){return this.map_.get(e)||null},t.prototype.put=function(e,t){return this.map_.set(e,t),t},t.prototype.values=function(){for(var e=new we,t=this.map_.values(),n=t.next();!n.done;)e.add(n.value),n=t.next();return e},t.prototype.entrySet=function(){var e=new Te;return this.map_.entries().forEach((function(t){return e.add(t)})),e},t.prototype.size=function(){return this.map_.size()},t}(Ie),pt=function e(){if(this._modelType=null,this._scale=null,0===arguments.length)this._modelType=e.FLOATING;else if(1===arguments.length)if(arguments[0]instanceof gt){var t=arguments[0];this._modelType=t,t===e.FIXED&&this.setScale(1)}else if("number"==typeof arguments[0]){var n=arguments[0];this._modelType=e.FIXED,this.setScale(n)}else if(arguments[0]instanceof e){var r=arguments[0];this._modelType=r._modelType,this._scale=r._scale}},ft={serialVersionUID:{configurable:!0},maximumPreciseValue:{configurable:!0}};pt.prototype.equals=function(e){if(!(e instanceof pt))return!1;var t=e;return this._modelType===t._modelType&&this._scale===t._scale},pt.prototype.compareTo=function(e){var t=e,n=this.getMaximumSignificantDigits(),r=t.getMaximumSignificantDigits();return new O(n).compareTo(new O(r))},pt.prototype.getScale=function(){return this._scale},pt.prototype.isFloating=function(){return this._modelType===pt.FLOATING||this._modelType===pt.FLOATING_SINGLE},pt.prototype.getType=function(){return this._modelType},pt.prototype.toString=function(){var e="UNKNOWN";return this._modelType===pt.FLOATING?e="Floating":this._modelType===pt.FLOATING_SINGLE?e="Floating-Single":this._modelType===pt.FIXED&&(e="Fixed (Scale="+this.getScale()+")"),e},pt.prototype.makePrecise=function(){if("number"==typeof arguments[0]){var e=arguments[0];return _.isNaN(e)||this._modelType===pt.FLOATING_SINGLE?e:this._modelType===pt.FIXED?Math.round(e*this._scale)/this._scale:e}if(arguments[0]instanceof E){var t=arguments[0];if(this._modelType===pt.FLOATING)return null;t.x=this.makePrecise(t.x),t.y=this.makePrecise(t.y)}},pt.prototype.getMaximumSignificantDigits=function(){var e=16;return this._modelType===pt.FLOATING?e=16:this._modelType===pt.FLOATING_SINGLE?e=6:this._modelType===pt.FIXED&&(e=1+Math.trunc(Math.ceil(Math.log(this.getScale())/Math.log(10)))),e},pt.prototype.setScale=function(e){this._scale=Math.abs(e)},pt.prototype.interfaces_=function(){return[t,x]},pt.prototype.getClass=function(){return pt},pt.mostPrecise=function(e,t){return e.compareTo(t)>=0?e:t},ft.serialVersionUID.get=function(){return 0x6bee6404e9a25c00},ft.maximumPreciseValue.get=function(){return 9007199254740992},Object.defineProperties(pt,ft);var gt=function e(t){this._name=t||null,e.nameToTypeMap.put(t,this)},mt={serialVersionUID:{configurable:!0},nameToTypeMap:{configurable:!0}};gt.prototype.readResolve=function(){return gt.nameToTypeMap.get(this._name)},gt.prototype.toString=function(){return this._name},gt.prototype.interfaces_=function(){return[t]},gt.prototype.getClass=function(){return gt},mt.serialVersionUID.get=function(){return-552860263173159e4},mt.nameToTypeMap.get=function(){return new ht},Object.defineProperties(gt,mt),pt.Type=gt,pt.FIXED=new gt("FIXED"),pt.FLOATING=new gt("FLOATING"),pt.FLOATING_SINGLE=new gt("FLOATING SINGLE");var yt=function e(){this._precisionModel=new pt,this._SRID=0,this._coordinateSequenceFactory=e.getDefaultCoordinateSequenceFactory(),0===arguments.length||(1===arguments.length?I(arguments[0],A)?this._coordinateSequenceFactory=arguments[0]:arguments[0]instanceof pt&&(this._precisionModel=arguments[0]):2===arguments.length?(this._precisionModel=arguments[0],this._SRID=arguments[1]):3===arguments.length&&(this._precisionModel=arguments[0],this._SRID=arguments[1],this._coordinateSequenceFactory=arguments[2]))},vt={serialVersionUID:{configurable:!0}};yt.prototype.toGeometry=function(e){return e.isNull()?this.createPoint(null):e.getMinX()===e.getMaxX()&&e.getMinY()===e.getMaxY()?this.createPoint(new E(e.getMinX(),e.getMinY())):e.getMinX()===e.getMaxX()||e.getMinY()===e.getMaxY()?this.createLineString([new E(e.getMinX(),e.getMinY()),new E(e.getMaxX(),e.getMaxY())]):this.createPolygon(this.createLinearRing([new E(e.getMinX(),e.getMinY()),new E(e.getMinX(),e.getMaxY()),new E(e.getMaxX(),e.getMaxY()),new E(e.getMaxX(),e.getMinY()),new E(e.getMinX(),e.getMinY())]),null)},yt.prototype.createLineString=function(e){return e?e instanceof Array?new Ke(this.getCoordinateSequenceFactory().create(e),this):I(e,F)?new Ke(e,this):void 0:new Ke(this.getCoordinateSequenceFactory().create([]),this)},yt.prototype.createMultiLineString=function(){return 0===arguments.length?new Ue(null,this):1===arguments.length?new Ue(arguments[0],this):void 0},yt.prototype.buildGeometry=function(e){for(var t=null,n=!1,r=!1,i=e.iterator();i.hasNext();){var o=i.next(),s=o.getClass();null===t&&(t=s),s!==t&&(n=!0),o.isGeometryCollectionOrDerived()&&(r=!0)}if(null===t)return this.createGeometryCollection();if(n||r)return this.createGeometryCollection(yt.toGeometryArray(e));var a=e.iterator().next();if(e.size()>1){if(a instanceof Qe)return this.createMultiPolygon(yt.toPolygonArray(e));if(a instanceof Ke)return this.createMultiLineString(yt.toLineStringArray(e));if(a instanceof $e)return this.createMultiPoint(yt.toPointArray(e));te.shouldNeverReachHere("Unhandled class: "+a.getClass().getName())}return a},yt.prototype.createMultiPointFromCoords=function(e){return this.createMultiPoint(null!==e?this.getCoordinateSequenceFactory().create(e):null)},yt.prototype.createPoint=function(){if(0===arguments.length)return this.createPoint(this.getCoordinateSequenceFactory().create([]));if(1===arguments.length){if(arguments[0]instanceof E){var e=arguments[0];return this.createPoint(null!==e?this.getCoordinateSequenceFactory().create([e]):null)}if(I(arguments[0],F))return new $e(arguments[0],this)}},yt.prototype.getCoordinateSequenceFactory=function(){return this._coordinateSequenceFactory},yt.prototype.createPolygon=function(){if(0===arguments.length)return new Qe(null,null,this);if(1===arguments.length){if(I(arguments[0],F)){var e=arguments[0];return this.createPolygon(this.createLinearRing(e))}if(arguments[0]instanceof Array){var t=arguments[0];return this.createPolygon(this.createLinearRing(t))}if(arguments[0]instanceof tt){var n=arguments[0];return this.createPolygon(n,null)}}else if(2===arguments.length)return new Qe(arguments[0],arguments[1],this)},yt.prototype.getSRID=function(){return this._SRID},yt.prototype.createGeometryCollection=function(){return 0===arguments.length?new Be(null,this):1===arguments.length?new Be(arguments[0],this):void 0},yt.prototype.createGeometry=function(e){return new rt(this).edit(e,{edit:function(){if(2===arguments.length){var e=arguments[0];return this._coordinateSequenceFactory.create(e)}}})},yt.prototype.getPrecisionModel=function(){return this._precisionModel},yt.prototype.createLinearRing=function(){if(0===arguments.length)return this.createLinearRing(this.getCoordinateSequenceFactory().create([]));if(1===arguments.length){if(arguments[0]instanceof Array){var e=arguments[0];return this.createLinearRing(null!==e?this.getCoordinateSequenceFactory().create(e):null)}if(I(arguments[0],F))return new tt(arguments[0],this)}},yt.prototype.createMultiPolygon=function(){return 0===arguments.length?new nt(null,this):1===arguments.length?new nt(arguments[0],this):void 0},yt.prototype.createMultiPoint=function(){if(0===arguments.length)return new et(null,this);if(1===arguments.length){if(arguments[0]instanceof Array)return new et(arguments[0],this);if(arguments[0]instanceof Array){var e=arguments[0];return this.createMultiPoint(null!==e?this.getCoordinateSequenceFactory().create(e):null)}if(I(arguments[0],F)){var t=arguments[0];if(null===t)return this.createMultiPoint(new Array(0).fill(null));for(var n=new Array(t.size()).fill(null),r=0;r<t.size();r++){var i=this.getCoordinateSequenceFactory().create(1,t.getDimension());Ye.copy(t,r,i,0,1),n[r]=this.createPoint(i)}return this.createMultiPoint(n)}}},yt.prototype.interfaces_=function(){return[t]},yt.prototype.getClass=function(){return yt},yt.toMultiPolygonArray=function(e){var t=new Array(e.size()).fill(null);return e.toArray(t)},yt.toGeometryArray=function(e){if(null===e)return null;var t=new Array(e.size()).fill(null);return e.toArray(t)},yt.getDefaultCoordinateSequenceFactory=function(){return ut.instance()},yt.toMultiLineStringArray=function(e){var t=new Array(e.size()).fill(null);return e.toArray(t)},yt.toLineStringArray=function(e){var t=new Array(e.size()).fill(null);return e.toArray(t)},yt.toMultiPointArray=function(e){var t=new Array(e.size()).fill(null);return e.toArray(t)},yt.toLinearRingArray=function(e){var t=new Array(e.size()).fill(null);return e.toArray(t)},yt.toPointArray=function(e){var t=new Array(e.size()).fill(null);return e.toArray(t)},yt.toPolygonArray=function(e){var t=new Array(e.size()).fill(null);return e.toArray(t)},yt.createPointFromInternalCoord=function(e,t){return t.getPrecisionModel().makePrecise(e),t.getFactory().createPoint(e)},vt.serialVersionUID.get=function(){return-0x5ea75f2051eeb400},Object.defineProperties(yt,vt);var _t=["Point","MultiPoint","LineString","MultiLineString","Polygon","MultiPolygon"],bt=function(e){this.geometryFactory=e||new yt};bt.prototype.read=function(e){var t,n=(t="string"==typeof e?JSON.parse(e):e).type;if(!xt[n])throw new Error("Unknown GeoJSON type: "+t.type);return-1!==_t.indexOf(n)?xt[n].apply(this,[t.coordinates]):"GeometryCollection"===n?xt[n].apply(this,[t.geometries]):xt[n].apply(this,[t])},bt.prototype.write=function(e){var t=e.getGeometryType();if(!St[t])throw new Error("Geometry is not supported");return St[t].apply(this,[e])};var xt={Feature:function(e){var t={};for(var n in e)t[n]=e[n];if(e.geometry){var r=e.geometry.type;if(!xt[r])throw new Error("Unknown GeoJSON type: "+e.type);t.geometry=this.read(e.geometry)}return e.bbox&&(t.bbox=xt.bbox.apply(this,[e.bbox])),t},FeatureCollection:function(e){var t={};if(e.features){t.features=[];for(var n=0;n<e.features.length;++n)t.features.push(this.read(e.features[n]))}return e.bbox&&(t.bbox=this.parse.bbox.apply(this,[e.bbox])),t},coordinates:function(e){for(var t=[],n=0;n<e.length;++n){var r=e[n];t.push(new E(r[0],r[1]))}return t},bbox:function(e){return this.geometryFactory.createLinearRing([new E(e[0],e[1]),new E(e[2],e[1]),new E(e[2],e[3]),new E(e[0],e[3]),new E(e[0],e[1])])},Point:function(e){var t=new E(e[0],e[1]);return this.geometryFactory.createPoint(t)},MultiPoint:function(e){for(var t=[],n=0;n<e.length;++n)t.push(xt.Point.apply(this,[e[n]]));return this.geometryFactory.createMultiPoint(t)},LineString:function(e){var t=xt.coordinates.apply(this,[e]);return this.geometryFactory.createLineString(t)},MultiLineString:function(e){for(var t=[],n=0;n<e.length;++n)t.push(xt.LineString.apply(this,[e[n]]));return this.geometryFactory.createMultiLineString(t)},Polygon:function(e){for(var t=xt.coordinates.apply(this,[e[0]]),n=this.geometryFactory.createLinearRing(t),r=[],i=1;i<e.length;++i){var o=e[i],s=xt.coordinates.apply(this,[o]),a=this.geometryFactory.createLinearRing(s);r.push(a)}return this.geometryFactory.createPolygon(n,r)},MultiPolygon:function(e){for(var t=[],n=0;n<e.length;++n){var r=e[n];t.push(xt.Polygon.apply(this,[r]))}return this.geometryFactory.createMultiPolygon(t)},GeometryCollection:function(e){for(var t=[],n=0;n<e.length;++n){var r=e[n];t.push(this.read(r))}return this.geometryFactory.createGeometryCollection(t)}},St={coordinate:function(e){return[e.x,e.y]},Point:function(e){return{type:"Point",coordinates:St.coordinate.apply(this,[e.getCoordinate()])}},MultiPoint:function(e){for(var t=[],n=0;n<e._geometries.length;++n){var r=e._geometries[n],i=St.Point.apply(this,[r]);t.push(i.coordinates)}return{type:"MultiPoint",coordinates:t}},LineString:function(e){for(var t=[],n=e.getCoordinates(),r=0;r<n.length;++r){var i=n[r];t.push(St.coordinate.apply(this,[i]))}return{type:"LineString",coordinates:t}},MultiLineString:function(e){for(var t=[],n=0;n<e._geometries.length;++n){var r=e._geometries[n],i=St.LineString.apply(this,[r]);t.push(i.coordinates)}return{type:"MultiLineString",coordinates:t}},Polygon:function(e){var t=[],n=St.LineString.apply(this,[e._shell]);t.push(n.coordinates);for(var r=0;r<e._holes.length;++r){var i=e._holes[r],o=St.LineString.apply(this,[i]);t.push(o.coordinates)}return{type:"Polygon",coordinates:t}},MultiPolygon:function(e){for(var t=[],n=0;n<e._geometries.length;++n){var r=e._geometries[n],i=St.Polygon.apply(this,[r]);t.push(i.coordinates)}return{type:"MultiPolygon",coordinates:t}},GeometryCollection:function(e){for(var t=[],n=0;n<e._geometries.length;++n){var r=e._geometries[n],i=r.getGeometryType();t.push(St[i].apply(this,[r]))}return{type:"GeometryCollection",geometries:t}}},wt=function(e){this.geometryFactory=e||new yt,this.precisionModel=this.geometryFactory.getPrecisionModel(),this.parser=new bt(this.geometryFactory)};wt.prototype.read=function(e){var t=this.parser.read(e);return this.precisionModel.getType()===pt.FIXED&&this.reducePrecision(t),t},wt.prototype.reducePrecision=function(e){var t,n;if(e.coordinate)this.precisionModel.makePrecise(e.coordinate);else if(e.points)for(t=0,n=e.points.length;t<n;t++)this.precisionModel.makePrecise(e.points[t]);else if(e.geometries)for(t=0,n=e.geometries.length;t<n;t++)this.reducePrecision(e.geometries[t])};var Et=function(){this.parser=new bt(this.geometryFactory)};Et.prototype.write=function(e){return this.parser.write(e)};var Pt=function(){},Ct={ON:{configurable:!0},LEFT:{configurable:!0},RIGHT:{configurable:!0}};Pt.prototype.interfaces_=function(){return[]},Pt.prototype.getClass=function(){return Pt},Pt.opposite=function(e){return e===Pt.LEFT?Pt.RIGHT:e===Pt.RIGHT?Pt.LEFT:e},Ct.ON.get=function(){return 0},Ct.LEFT.get=function(){return 1},Ct.RIGHT.get=function(){return 2},Object.defineProperties(Pt,Ct),(g.prototype=new Error).name="EmptyStackException",(m.prototype=new Se).add=function(e){return this.array_.push(e),!0},m.prototype.get=function(e){if(e<0||e>=this.size())throw new Error;return this.array_[e]},m.prototype.push=function(e){return this.array_.push(e),e},m.prototype.pop=function(e){if(0===this.array_.length)throw new g;return this.array_.pop()},m.prototype.peek=function(){if(0===this.array_.length)throw new g;return this.array_[this.array_.length-1]},m.prototype.empty=function(){return 0===this.array_.length},m.prototype.isEmpty=function(){return this.empty()},m.prototype.search=function(e){return this.array_.indexOf(e)},m.prototype.size=function(){return this.array_.length},m.prototype.toArray=function(){for(var e=[],t=0,n=this.array_.length;t<n;t++)e.push(this.array_[t]);return e};var At=function(){this._minIndex=-1,this._minCoord=null,this._minDe=null,this._orientedDe=null};At.prototype.getCoordinate=function(){return this._minCoord},At.prototype.getRightmostSide=function(e,t){var n=this.getRightmostSideOfSegment(e,t);return n<0&&(n=this.getRightmostSideOfSegment(e,t-1)),n<0&&(this._minCoord=null,this.checkForRightmostCoordinate(e)),n},At.prototype.findRightmostEdgeAtVertex=function(){var e=this._minDe.getEdge().getCoordinates();te.isTrue(this._minIndex>0&&this._minIndex<e.length,"rightmost point expected to be interior vertex of edge");var t=e[this._minIndex-1],n=e[this._minIndex+1],r=ae.computeOrientation(this._minCoord,n,t),i=!1;(t.y<this._minCoord.y&&n.y<this._minCoord.y&&r===ae.COUNTERCLOCKWISE||t.y>this._minCoord.y&&n.y>this._minCoord.y&&r===ae.CLOCKWISE)&&(i=!0),i&&(this._minIndex=this._minIndex-1)},At.prototype.getRightmostSideOfSegment=function(e,t){var n=e.getEdge().getCoordinates();if(t<0||t+1>=n.length)return-1;if(n[t].y===n[t+1].y)return-1;var r=Pt.LEFT;return n[t].y<n[t+1].y&&(r=Pt.RIGHT),r},At.prototype.getEdge=function(){return this._orientedDe},At.prototype.checkForRightmostCoordinate=function(e){for(var t=e.getEdge().getCoordinates(),n=0;n<t.length-1;n++)(null===this._minCoord||t[n].x>this._minCoord.x)&&(this._minDe=e,this._minIndex=n,this._minCoord=t[n])},At.prototype.findRightmostEdgeAtNode=function(){var e=this._minDe.getNode().getEdges();this._minDe=e.getRightmostEdge(),this._minDe.isForward()||(this._minDe=this._minDe.getSym(),this._minIndex=this._minDe.getEdge().getCoordinates().length-1)},At.prototype.findEdge=function(e){for(var t=e.iterator();t.hasNext();){var n=t.next();n.isForward()&&this.checkForRightmostCoordinate(n)}te.isTrue(0!==this._minIndex||this._minCoord.equals(this._minDe.getCoordinate()),"inconsistency in rightmost processing"),0===this._minIndex?this.findRightmostEdgeAtNode():this.findRightmostEdgeAtVertex(),this._orientedDe=this._minDe,this.getRightmostSide(this._minDe,this._minIndex)===Pt.LEFT&&(this._orientedDe=this._minDe.getSym())},At.prototype.interfaces_=function(){return[]},At.prototype.getClass=function(){return At};var kt=function(e){function t(n,r){e.call(this,t.msgWithCoord(n,r)),this.pt=r?new E(r):null,this.name="TopologyException"}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.getCoordinate=function(){return this.pt},t.prototype.interfaces_=function(){return[]},t.prototype.getClass=function(){return t},t.msgWithCoord=function(e,t){return t?e:e+" [ "+t+" ]"},t}(Q),jt=function(){this.array_=[]};jt.prototype.addLast=function(e){this.array_.push(e)},jt.prototype.removeFirst=function(){return this.array_.shift()},jt.prototype.isEmpty=function(){return 0===this.array_.length};var It=function(){this._finder=null,this._dirEdgeList=new we,this._nodes=new we,this._rightMostCoord=null,this._env=null,this._finder=new At};It.prototype.clearVisitedEdges=function(){for(var e=this._dirEdgeList.iterator();e.hasNext();)e.next().setVisited(!1)},It.prototype.getRightmostCoordinate=function(){return this._rightMostCoord},It.prototype.computeNodeDepth=function(e){for(var t=null,n=e.getEdges().iterator();n.hasNext();){var r=n.next();if(r.isVisited()||r.getSym().isVisited()){t=r;break}}if(null===t)throw new kt("unable to find edge to compute depths at "+e.getCoordinate());e.getEdges().computeDepths(t);for(var i=e.getEdges().iterator();i.hasNext();){var o=i.next();o.setVisited(!0),this.copySymDepths(o)}},It.prototype.computeDepth=function(e){this.clearVisitedEdges();var t=this._finder.getEdge();t.setEdgeDepths(Pt.RIGHT,e),this.copySymDepths(t),this.computeDepths(t)},It.prototype.create=function(e){this.addReachable(e),this._finder.findEdge(this._dirEdgeList),this._rightMostCoord=this._finder.getCoordinate()},It.prototype.findResultEdges=function(){for(var e=this._dirEdgeList.iterator();e.hasNext();){var t=e.next();t.getDepth(Pt.RIGHT)>=1&&t.getDepth(Pt.LEFT)<=0&&!t.isInteriorAreaEdge()&&t.setInResult(!0)}},It.prototype.computeDepths=function(e){var t=new Te,n=new jt,r=e.getNode();for(n.addLast(r),t.add(r),e.setVisited(!0);!n.isEmpty();){var i=n.removeFirst();t.add(i),this.computeNodeDepth(i);for(var o=i.getEdges().iterator();o.hasNext();){var s=o.next().getSym();if(!s.isVisited()){var a=s.getNode();t.contains(a)||(n.addLast(a),t.add(a))}}}},It.prototype.compareTo=function(e){var t=e;return this._rightMostCoord.x<t._rightMostCoord.x?-1:this._rightMostCoord.x>t._rightMostCoord.x?1:0},It.prototype.getEnvelope=function(){if(null===this._env){for(var e=new q,t=this._dirEdgeList.iterator();t.hasNext();)for(var n=t.next().getEdge().getCoordinates(),r=0;r<n.length-1;r++)e.expandToInclude(n[r]);this._env=e}return this._env},It.prototype.addReachable=function(e){var t=new m;for(t.add(e);!t.empty();){var n=t.pop();this.add(n,t)}},It.prototype.copySymDepths=function(e){var t=e.getSym();t.setDepth(Pt.LEFT,e.getDepth(Pt.RIGHT)),t.setDepth(Pt.RIGHT,e.getDepth(Pt.LEFT))},It.prototype.add=function(e,t){e.setVisited(!0),this._nodes.add(e);for(var n=e.getEdges().iterator();n.hasNext();){var r=n.next();this._dirEdgeList.add(r);var i=r.getSym().getNode();i.isVisited()||t.push(i)}},It.prototype.getNodes=function(){return this._nodes},It.prototype.getDirectedEdges=function(){return this._dirEdgeList},It.prototype.interfaces_=function(){return[x]},It.prototype.getClass=function(){return It};var Gt=function e(){if(this.location=null,1===arguments.length){if(arguments[0]instanceof Array){var t=arguments[0];this.init(t.length)}else if(Number.isInteger(arguments[0])){var n=arguments[0];this.init(1),this.location[Pt.ON]=n}else if(arguments[0]instanceof e){var r=arguments[0];if(this.init(r.location.length),null!==r)for(var i=0;i<this.location.length;i++)this.location[i]=r.location[i]}}else if(3===arguments.length){var o=arguments[0],s=arguments[1],a=arguments[2];this.init(3),this.location[Pt.ON]=o,this.location[Pt.LEFT]=s,this.location[Pt.RIGHT]=a}};Gt.prototype.setAllLocations=function(e){for(var t=0;t<this.location.length;t++)this.location[t]=e},Gt.prototype.isNull=function(){for(var e=0;e<this.location.length;e++)if(this.location[e]!==k.NONE)return!1;return!0},Gt.prototype.setAllLocationsIfNull=function(e){for(var t=0;t<this.location.length;t++)this.location[t]===k.NONE&&(this.location[t]=e)},Gt.prototype.isLine=function(){return 1===this.location.length},Gt.prototype.merge=function(e){if(e.location.length>this.location.length){var t=new Array(3).fill(null);t[Pt.ON]=this.location[Pt.ON],t[Pt.LEFT]=k.NONE,t[Pt.RIGHT]=k.NONE,this.location=t}for(var n=0;n<this.location.length;n++)this.location[n]===k.NONE&&n<e.location.length&&(this.location[n]=e.location[n])},Gt.prototype.getLocations=function(){return this.location},Gt.prototype.flip=function(){if(this.location.length<=1)return null;var e=this.location[Pt.LEFT];this.location[Pt.LEFT]=this.location[Pt.RIGHT],this.location[Pt.RIGHT]=e},Gt.prototype.toString=function(){var e=new M;return this.location.length>1&&e.append(k.toLocationSymbol(this.location[Pt.LEFT])),e.append(k.toLocationSymbol(this.location[Pt.ON])),this.location.length>1&&e.append(k.toLocationSymbol(this.location[Pt.RIGHT])),e.toString()},Gt.prototype.setLocations=function(e,t,n){this.location[Pt.ON]=e,this.location[Pt.LEFT]=t,this.location[Pt.RIGHT]=n},Gt.prototype.get=function(e){return e<this.location.length?this.location[e]:k.NONE},Gt.prototype.isArea=function(){return this.location.length>1},Gt.prototype.isAnyNull=function(){for(var e=0;e<this.location.length;e++)if(this.location[e]===k.NONE)return!0;return!1},Gt.prototype.setLocation=function(){if(1===arguments.length){var e=arguments[0];this.setLocation(Pt.ON,e)}else if(2===arguments.length){var t=arguments[0],n=arguments[1];this.location[t]=n}},Gt.prototype.init=function(e){this.location=new Array(e).fill(null),this.setAllLocations(k.NONE)},Gt.prototype.isEqualOnSide=function(e,t){return this.location[t]===e.location[t]},Gt.prototype.allPositionsEqual=function(e){for(var t=0;t<this.location.length;t++)if(this.location[t]!==e)return!1;return!0},Gt.prototype.interfaces_=function(){return[]},Gt.prototype.getClass=function(){return Gt};var Tt=function e(){if(this.elt=new Array(2).fill(null),1===arguments.length){if(Number.isInteger(arguments[0])){var t=arguments[0];this.elt[0]=new Gt(t),this.elt[1]=new Gt(t)}else if(arguments[0]instanceof e){var n=arguments[0];this.elt[0]=new Gt(n.elt[0]),this.elt[1]=new Gt(n.elt[1])}}else if(2===arguments.length){var r=arguments[0],i=arguments[1];this.elt[0]=new Gt(k.NONE),this.elt[1]=new Gt(k.NONE),this.elt[r].setLocation(i)}else if(3===arguments.length){var o=arguments[0],s=arguments[1],a=arguments[2];this.elt[0]=new Gt(o,s,a),this.elt[1]=new Gt(o,s,a)}else if(4===arguments.length){var l=arguments[0],c=arguments[1],u=arguments[2],d=arguments[3];this.elt[0]=new Gt(k.NONE,k.NONE,k.NONE),this.elt[1]=new Gt(k.NONE,k.NONE,k.NONE),this.elt[l].setLocations(c,u,d)}};Tt.prototype.getGeometryCount=function(){var e=0;return this.elt[0].isNull()||e++,this.elt[1].isNull()||e++,e},Tt.prototype.setAllLocations=function(e,t){this.elt[e].setAllLocations(t)},Tt.prototype.isNull=function(e){return this.elt[e].isNull()},Tt.prototype.setAllLocationsIfNull=function(){if(1===arguments.length){var e=arguments[0];this.setAllLocationsIfNull(0,e),this.setAllLocationsIfNull(1,e)}else if(2===arguments.length){var t=arguments[0],n=arguments[1];this.elt[t].setAllLocationsIfNull(n)}},Tt.prototype.isLine=function(e){return this.elt[e].isLine()},Tt.prototype.merge=function(e){for(var t=0;t<2;t++)null===this.elt[t]&&null!==e.elt[t]?this.elt[t]=new Gt(e.elt[t]):this.elt[t].merge(e.elt[t])},Tt.prototype.flip=function(){this.elt[0].flip(),this.elt[1].flip()},Tt.prototype.getLocation=function(){if(1===arguments.length){var e=arguments[0];return this.elt[e].get(Pt.ON)}if(2===arguments.length){var t=arguments[0],n=arguments[1];return this.elt[t].get(n)}},Tt.prototype.toString=function(){var e=new M;return null!==this.elt[0]&&(e.append("A:"),e.append(this.elt[0].toString())),null!==this.elt[1]&&(e.append(" B:"),e.append(this.elt[1].toString())),e.toString()},Tt.prototype.isArea=function(){if(0===arguments.length)return this.elt[0].isArea()||this.elt[1].isArea();if(1===arguments.length){var e=arguments[0];return this.elt[e].isArea()}},Tt.prototype.isAnyNull=function(e){return this.elt[e].isAnyNull()},Tt.prototype.setLocation=function(){if(2===arguments.length){var e=arguments[0],t=arguments[1];this.elt[e].setLocation(Pt.ON,t)}else if(3===arguments.length){var n=arguments[0],r=arguments[1],i=arguments[2];this.elt[n].setLocation(r,i)}},Tt.prototype.isEqualOnSide=function(e,t){return this.elt[0].isEqualOnSide(e.elt[0],t)&&this.elt[1].isEqualOnSide(e.elt[1],t)},Tt.prototype.allPositionsEqual=function(e,t){return this.elt[e].allPositionsEqual(t)},Tt.prototype.toLine=function(e){this.elt[e].isArea()&&(this.elt[e]=new Gt(this.elt[e].location[0]))},Tt.prototype.interfaces_=function(){return[]},Tt.prototype.getClass=function(){return Tt},Tt.toLineLabel=function(e){for(var t=new Tt(k.NONE),n=0;n<2;n++)t.setLocation(n,e.getLocation(n));return t};var Mt=function(){this._startDe=null,this._maxNodeDegree=-1,this._edges=new we,this._pts=new we,this._label=new Tt(k.NONE),this._ring=null,this._isHole=null,this._shell=null,this._holes=new we,this._geometryFactory=null;var e=arguments[0],t=arguments[1];this._geometryFactory=t,this.computePoints(e),this.computeRing()};Mt.prototype.computeRing=function(){if(null!==this._ring)return null;for(var e=new Array(this._pts.size()).fill(null),t=0;t<this._pts.size();t++)e[t]=this._pts.get(t);this._ring=this._geometryFactory.createLinearRing(e),this._isHole=ae.isCCW(this._ring.getCoordinates())},Mt.prototype.isIsolated=function(){return 1===this._label.getGeometryCount()},Mt.prototype.computePoints=function(e){this._startDe=e;var t=e,n=!0;do{if(null===t)throw new kt("Found null DirectedEdge");if(t.getEdgeRing()===this)throw new kt("Directed Edge visited twice during ring-building at "+t.getCoordinate());this._edges.add(t);var r=t.getLabel();te.isTrue(r.isArea()),this.mergeLabel(r),this.addPoints(t.getEdge(),t.isForward(),n),n=!1,this.setEdgeRing(t,this),t=this.getNext(t)}while(t!==this._startDe)},Mt.prototype.getLinearRing=function(){return this._ring},Mt.prototype.getCoordinate=function(e){return this._pts.get(e)},Mt.prototype.computeMaxNodeDegree=function(){this._maxNodeDegree=0;var e=this._startDe;do{var t=e.getNode().getEdges().getOutgoingDegree(this);t>this._maxNodeDegree&&(this._maxNodeDegree=t),e=this.getNext(e)}while(e!==this._startDe);this._maxNodeDegree*=2},Mt.prototype.addPoints=function(e,t,n){var r=e.getCoordinates();if(t){var i=1;n&&(i=0);for(var o=i;o<r.length;o++)this._pts.add(r[o])}else{var s=r.length-2;n&&(s=r.length-1);for(var a=s;a>=0;a--)this._pts.add(r[a])}},Mt.prototype.isHole=function(){return this._isHole},Mt.prototype.setInResult=function(){var e=this._startDe;do{e.getEdge().setInResult(!0),e=e.getNext()}while(e!==this._startDe)},Mt.prototype.containsPoint=function(e){var t=this.getLinearRing();if(!t.getEnvelopeInternal().contains(e))return!1;if(!ae.isPointInRing(e,t.getCoordinates()))return!1;for(var n=this._holes.iterator();n.hasNext();)if(n.next().containsPoint(e))return!1;return!0},Mt.prototype.addHole=function(e){this._holes.add(e)},Mt.prototype.isShell=function(){return null===this._shell},Mt.prototype.getLabel=function(){return this._label},Mt.prototype.getEdges=function(){return this._edges},Mt.prototype.getMaxNodeDegree=function(){return this._maxNodeDegree<0&&this.computeMaxNodeDegree(),this._maxNodeDegree},Mt.prototype.getShell=function(){return this._shell},Mt.prototype.mergeLabel=function(){if(1===arguments.length){var e=arguments[0];this.mergeLabel(e,0),this.mergeLabel(e,1)}else if(2===arguments.length){var t=arguments[1],n=arguments[0].getLocation(t,Pt.RIGHT);if(n===k.NONE)return null;if(this._label.getLocation(t)===k.NONE)return this._label.setLocation(t,n),null}},Mt.prototype.setShell=function(e){this._shell=e,null!==e&&e.addHole(this)},Mt.prototype.toPolygon=function(e){for(var t=new Array(this._holes.size()).fill(null),n=0;n<this._holes.size();n++)t[n]=this._holes.get(n).getLinearRing();return e.createPolygon(this.getLinearRing(),t)},Mt.prototype.interfaces_=function(){return[]},Mt.prototype.getClass=function(){return Mt};var Ot=function(e){function t(){var t=arguments[0],n=arguments[1];e.call(this,t,n)}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.setEdgeRing=function(e,t){e.setMinEdgeRing(t)},t.prototype.getNext=function(e){return e.getNextMin()},t.prototype.interfaces_=function(){return[]},t.prototype.getClass=function(){return t},t}(Mt),Rt=function(e){function t(){var t=arguments[0],n=arguments[1];e.call(this,t,n)}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.buildMinimalRings=function(){var e=new we,t=this._startDe;do{if(null===t.getMinEdgeRing()){var n=new Ot(t,this._geometryFactory);e.add(n)}t=t.getNext()}while(t!==this._startDe);return e},t.prototype.setEdgeRing=function(e,t){e.setEdgeRing(t)},t.prototype.linkDirectedEdgesForMinimalEdgeRings=function(){var e=this._startDe;do{e.getNode().getEdges().linkMinimalDirectedEdges(this),e=e.getNext()}while(e!==this._startDe)},t.prototype.getNext=function(e){return e.getNext()},t.prototype.interfaces_=function(){return[]},t.prototype.getClass=function(){return t},t}(Mt),Dt=function(){if(this._label=null,this._isInResult=!1,this._isCovered=!1,this._isCoveredSet=!1,this._isVisited=!1,0===arguments.length);else if(1===arguments.length){var e=arguments[0];this._label=e}};Dt.prototype.setVisited=function(e){this._isVisited=e},Dt.prototype.setInResult=function(e){this._isInResult=e},Dt.prototype.isCovered=function(){return this._isCovered},Dt.prototype.isCoveredSet=function(){return this._isCoveredSet},Dt.prototype.setLabel=function(e){this._label=e},Dt.prototype.getLabel=function(){return this._label},Dt.prototype.setCovered=function(e){this._isCovered=e,this._isCoveredSet=!0},Dt.prototype.updateIM=function(e){te.isTrue(this._label.getGeometryCount()>=2,"found partial label"),this.computeIM(e)},Dt.prototype.isInResult=function(){return this._isInResult},Dt.prototype.isVisited=function(){return this._isVisited},Dt.prototype.interfaces_=function(){return[]},Dt.prototype.getClass=function(){return Dt};var Nt=function(e){function t(){e.call(this),this._coord=null,this._edges=null;var t=arguments[0],n=arguments[1];this._coord=t,this._edges=n,this._label=new Tt(0,k.NONE)}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.isIncidentEdgeInResult=function(){for(var e=this.getEdges().getEdges().iterator();e.hasNext();)if(e.next().getEdge().isInResult())return!0;return!1},t.prototype.isIsolated=function(){return 1===this._label.getGeometryCount()},t.prototype.getCoordinate=function(){return this._coord},t.prototype.print=function(e){e.println("node "+this._coord+" lbl: "+this._label)},t.prototype.computeIM=function(e){},t.prototype.computeMergedLocation=function(e,t){var n=k.NONE;if(n=this._label.getLocation(t),!e.isNull(t)){var r=e.getLocation(t);n!==k.BOUNDARY&&(n=r)}return n},t.prototype.setLabel=function(){if(2!==arguments.length)return e.prototype.setLabel.apply(this,arguments);var t=arguments[0],n=arguments[1];null===this._label?this._label=new Tt(t,n):this._label.setLocation(t,n)},t.prototype.getEdges=function(){return this._edges},t.prototype.mergeLabel=function(){if(arguments[0]instanceof t){var e=arguments[0];this.mergeLabel(e._label)}else if(arguments[0]instanceof Tt)for(var n=arguments[0],r=0;r<2;r++){var i=this.computeMergedLocation(n,r);this._label.getLocation(r)===k.NONE&&this._label.setLocation(r,i)}},t.prototype.add=function(e){this._edges.insert(e),e.setNode(this)},t.prototype.setLabelBoundary=function(e){if(null===this._label)return null;var t=k.NONE;null!==this._label&&(t=this._label.getLocation(e));var n=null;switch(t){case k.BOUNDARY:n=k.INTERIOR;break;case k.INTERIOR:default:n=k.BOUNDARY}this._label.setLocation(e,n)},t.prototype.interfaces_=function(){return[]},t.prototype.getClass=function(){return t},t}(Dt),Lt=function(){this.nodeMap=new d,this.nodeFact=null;var e=arguments[0];this.nodeFact=e};Lt.prototype.find=function(e){return this.nodeMap.get(e)},Lt.prototype.addNode=function(){if(arguments[0]instanceof E){var e=arguments[0],t=this.nodeMap.get(e);return null===t&&(t=this.nodeFact.createNode(e),this.nodeMap.put(e,t)),t}if(arguments[0]instanceof Nt){var n=arguments[0],r=this.nodeMap.get(n.getCoordinate());return null===r?(this.nodeMap.put(n.getCoordinate(),n),n):(r.mergeLabel(n),r)}},Lt.prototype.print=function(e){for(var t=this.iterator();t.hasNext();)t.next().print(e)},Lt.prototype.iterator=function(){return this.nodeMap.values().iterator()},Lt.prototype.values=function(){return this.nodeMap.values()},Lt.prototype.getBoundaryNodes=function(e){for(var t=new we,n=this.iterator();n.hasNext();){var r=n.next();r.getLabel().getLocation(e)===k.BOUNDARY&&t.add(r)}return t},Lt.prototype.add=function(e){var t=e.getCoordinate();this.addNode(t).add(e)},Lt.prototype.interfaces_=function(){return[]},Lt.prototype.getClass=function(){return Lt};var Vt=function(){},Ft={NE:{configurable:!0},NW:{configurable:!0},SW:{configurable:!0},SE:{configurable:!0}};Vt.prototype.interfaces_=function(){return[]},Vt.prototype.getClass=function(){return Vt},Vt.isNorthern=function(e){return e===Vt.NE||e===Vt.NW},Vt.isOpposite=function(e,t){return e!==t&&2===(e-t+4)%4},Vt.commonHalfPlane=function(e,t){if(e===t)return e;if(2===(e-t+4)%4)return-1;var n=e<t?e:t;return 0===n&&3===(e>t?e:t)?3:n},Vt.isInHalfPlane=function(e,t){return t===Vt.SE?e===Vt.SE||e===Vt.SW:e===t||e===t+1},Vt.quadrant=function(){if("number"==typeof arguments[0]&&"number"==typeof arguments[1]){var e=arguments[0],t=arguments[1];if(0===e&&0===t)throw new v("Cannot compute the quadrant for point ( "+e+", "+t+" )");return e>=0?t>=0?Vt.NE:Vt.SE:t>=0?Vt.NW:Vt.SW}if(arguments[0]instanceof E&&arguments[1]instanceof E){var n=arguments[0],r=arguments[1];if(r.x===n.x&&r.y===n.y)throw new v("Cannot compute the quadrant for two identical points "+n);return r.x>=n.x?r.y>=n.y?Vt.NE:Vt.SE:r.y>=n.y?Vt.NW:Vt.SW}},Ft.NE.get=function(){return 0},Ft.NW.get=function(){return 1},Ft.SW.get=function(){return 2},Ft.SE.get=function(){return 3},Object.defineProperties(Vt,Ft);var zt=function(){if(this._edge=null,this._label=null,this._node=null,this._p0=null,this._p1=null,this._dx=null,this._dy=null,this._quadrant=null,1===arguments.length){var e=arguments[0];this._edge=e}else if(3===arguments.length){var t=arguments[0],n=arguments[1],r=arguments[2];this._edge=t,this.init(n,r),this._label=null}else if(4===arguments.length){var i=arguments[0],o=arguments[1],s=arguments[2],a=arguments[3];this._edge=i,this.init(o,s),this._label=a}};zt.prototype.compareDirection=function(e){return this._dx===e._dx&&this._dy===e._dy?0:this._quadrant>e._quadrant?1:this._quadrant<e._quadrant?-1:ae.computeOrientation(e._p0,e._p1,this._p1)},zt.prototype.getDy=function(){return this._dy},zt.prototype.getCoordinate=function(){return this._p0},zt.prototype.setNode=function(e){this._node=e},zt.prototype.print=function(e){var t=Math.atan2(this._dy,this._dx),n=this.getClass().getName(),r=n.lastIndexOf("."),i=n.substring(r+1);e.print("  "+i+": "+this._p0+" - "+this._p1+" "+this._quadrant+":"+t+"   "+this._label)},zt.prototype.compareTo=function(e){var t=e;return this.compareDirection(t)},zt.prototype.getDirectedCoordinate=function(){return this._p1},zt.prototype.getDx=function(){return this._dx},zt.prototype.getLabel=function(){return this._label},zt.prototype.getEdge=function(){return this._edge},zt.prototype.getQuadrant=function(){return this._quadrant},zt.prototype.getNode=function(){return this._node},zt.prototype.toString=function(){var e=Math.atan2(this._dy,this._dx),t=this.getClass().getName(),n=t.lastIndexOf(".");return"  "+t.substring(n+1)+": "+this._p0+" - "+this._p1+" "+this._quadrant+":"+e+"   "+this._label},zt.prototype.computeLabel=function(e){},zt.prototype.init=function(e,t){this._p0=e,this._p1=t,this._dx=t.x-e.x,this._dy=t.y-e.y,this._quadrant=Vt.quadrant(this._dx,this._dy),te.isTrue(!(0===this._dx&&0===this._dy),"EdgeEnd with identical endpoints found")},zt.prototype.interfaces_=function(){return[x]},zt.prototype.getClass=function(){return zt};var Bt=function(e){function t(){var t=arguments[0],n=arguments[1];if(e.call(this,t),this._isForward=null,this._isInResult=!1,this._isVisited=!1,this._sym=null,this._next=null,this._nextMin=null,this._edgeRing=null,this._minEdgeRing=null,this._depth=[0,-999,-999],this._isForward=n,n)this.init(t.getCoordinate(0),t.getCoordinate(1));else{var r=t.getNumPoints()-1;this.init(t.getCoordinate(r),t.getCoordinate(r-1))}this.computeDirectedLabel()}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.getNextMin=function(){return this._nextMin},t.prototype.getDepth=function(e){return this._depth[e]},t.prototype.setVisited=function(e){this._isVisited=e},t.prototype.computeDirectedLabel=function(){this._label=new Tt(this._edge.getLabel()),this._isForward||this._label.flip()},t.prototype.getNext=function(){return this._next},t.prototype.setDepth=function(e,t){if(-999!==this._depth[e]&&this._depth[e]!==t)throw new kt("assigned depths do not match",this.getCoordinate());this._depth[e]=t},t.prototype.isInteriorAreaEdge=function(){for(var e=!0,t=0;t<2;t++)this._label.isArea(t)&&this._label.getLocation(t,Pt.LEFT)===k.INTERIOR&&this._label.getLocation(t,Pt.RIGHT)===k.INTERIOR||(e=!1);return e},t.prototype.setNextMin=function(e){this._nextMin=e},t.prototype.print=function(t){e.prototype.print.call(this,t),t.print(" "+this._depth[Pt.LEFT]+"/"+this._depth[Pt.RIGHT]),t.print(" ("+this.getDepthDelta()+")"),this._isInResult&&t.print(" inResult")},t.prototype.setMinEdgeRing=function(e){this._minEdgeRing=e},t.prototype.isLineEdge=function(){var e=this._label.isLine(0)||this._label.isLine(1),t=!this._label.isArea(0)||this._label.allPositionsEqual(0,k.EXTERIOR),n=!this._label.isArea(1)||this._label.allPositionsEqual(1,k.EXTERIOR);return e&&t&&n},t.prototype.setEdgeRing=function(e){this._edgeRing=e},t.prototype.getMinEdgeRing=function(){return this._minEdgeRing},t.prototype.getDepthDelta=function(){var e=this._edge.getDepthDelta();return this._isForward||(e=-e),e},t.prototype.setInResult=function(e){this._isInResult=e},t.prototype.getSym=function(){return this._sym},t.prototype.isForward=function(){return this._isForward},t.prototype.getEdge=function(){return this._edge},t.prototype.printEdge=function(e){this.print(e),e.print(" "),this._isForward?this._edge.print(e):this._edge.printReverse(e)},t.prototype.setSym=function(e){this._sym=e},t.prototype.setVisitedEdge=function(e){this.setVisited(e),this._sym.setVisited(e)},t.prototype.setEdgeDepths=function(e,t){var n=this.getEdge().getDepthDelta();this._isForward||(n=-n);var r=1;e===Pt.LEFT&&(r=-1);var i=Pt.opposite(e),o=t+n*r;this.setDepth(e,t),this.setDepth(i,o)},t.prototype.getEdgeRing=function(){return this._edgeRing},t.prototype.isInResult=function(){return this._isInResult},t.prototype.setNext=function(e){this._next=e},t.prototype.isVisited=function(){return this._isVisited},t.prototype.interfaces_=function(){return[]},t.prototype.getClass=function(){return t},t.depthFactor=function(e,t){return e===k.EXTERIOR&&t===k.INTERIOR?1:e===k.INTERIOR&&t===k.EXTERIOR?-1:0},t}(zt),Ut=function(){};Ut.prototype.createNode=function(e){return new Nt(e,null)},Ut.prototype.interfaces_=function(){return[]},Ut.prototype.getClass=function(){return Ut};var Wt=function(){if(this._edges=new we,this._nodes=null,this._edgeEndList=new we,0===arguments.length)this._nodes=new Lt(new Ut);else if(1===arguments.length){var e=arguments[0];this._nodes=new Lt(e)}};Wt.prototype.printEdges=function(e){e.println("Edges:");for(var t=0;t<this._edges.size();t++){e.println("edge "+t+":");var n=this._edges.get(t);n.print(e),n.eiList.print(e)}},Wt.prototype.find=function(e){return this._nodes.find(e)},Wt.prototype.addNode=function(){if(arguments[0]instanceof Nt){var e=arguments[0];return this._nodes.addNode(e)}if(arguments[0]instanceof E){var t=arguments[0];return this._nodes.addNode(t)}},Wt.prototype.getNodeIterator=function(){return this._nodes.iterator()},Wt.prototype.linkResultDirectedEdges=function(){for(var e=this._nodes.iterator();e.hasNext();)e.next().getEdges().linkResultDirectedEdges()},Wt.prototype.debugPrintln=function(e){W.out.println(e)},Wt.prototype.isBoundaryNode=function(e,t){var n=this._nodes.find(t);if(null===n)return!1;var r=n.getLabel();return null!==r&&r.getLocation(e)===k.BOUNDARY},Wt.prototype.linkAllDirectedEdges=function(){for(var e=this._nodes.iterator();e.hasNext();)e.next().getEdges().linkAllDirectedEdges()},Wt.prototype.matchInSameDirection=function(e,t,n,r){return!!e.equals(n)&&ae.computeOrientation(e,t,r)===ae.COLLINEAR&&Vt.quadrant(e,t)===Vt.quadrant(n,r)},Wt.prototype.getEdgeEnds=function(){return this._edgeEndList},Wt.prototype.debugPrint=function(e){W.out.print(e)},Wt.prototype.getEdgeIterator=function(){return this._edges.iterator()},Wt.prototype.findEdgeInSameDirection=function(e,t){for(var n=0;n<this._edges.size();n++){var r=this._edges.get(n),i=r.getCoordinates();if(this.matchInSameDirection(e,t,i[0],i[1]))return r;if(this.matchInSameDirection(e,t,i[i.length-1],i[i.length-2]))return r}return null},Wt.prototype.insertEdge=function(e){this._edges.add(e)},Wt.prototype.findEdgeEnd=function(e){for(var t=this.getEdgeEnds().iterator();t.hasNext();){var n=t.next();if(n.getEdge()===e)return n}return null},Wt.prototype.addEdges=function(e){for(var t=e.iterator();t.hasNext();){var n=t.next();this._edges.add(n);var r=new Bt(n,!0),i=new Bt(n,!1);r.setSym(i),i.setSym(r),this.add(r),this.add(i)}},Wt.prototype.add=function(e){this._nodes.add(e),this._edgeEndList.add(e)},Wt.prototype.getNodes=function(){return this._nodes.values()},Wt.prototype.findEdge=function(e,t){for(var n=0;n<this._edges.size();n++){var r=this._edges.get(n),i=r.getCoordinates();if(e.equals(i[0])&&t.equals(i[1]))return r}return null},Wt.prototype.interfaces_=function(){return[]},Wt.prototype.getClass=function(){return Wt},Wt.linkResultDirectedEdges=function(e){for(var t=e.iterator();t.hasNext();)t.next().getEdges().linkResultDirectedEdges()};var Ht=function(){this._geometryFactory=null,this._shellList=new we;var e=arguments[0];this._geometryFactory=e};Ht.prototype.sortShellsAndHoles=function(e,t,n){for(var r=e.iterator();r.hasNext();){var i=r.next();i.isHole()?n.add(i):t.add(i)}},Ht.prototype.computePolygons=function(e){for(var t=new we,n=e.iterator();n.hasNext();){var r=n.next().toPolygon(this._geometryFactory);t.add(r)}return t},Ht.prototype.placeFreeHoles=function(e,t){for(var n=t.iterator();n.hasNext();){var r=n.next();if(null===r.getShell()){var i=this.findEdgeRingContaining(r,e);if(null===i)throw new kt("unable to assign hole to a shell",r.getCoordinate(0));r.setShell(i)}}},Ht.prototype.buildMinimalEdgeRings=function(e,t,n){for(var r=new we,i=e.iterator();i.hasNext();){var o=i.next();if(o.getMaxNodeDegree()>2){o.linkDirectedEdgesForMinimalEdgeRings();var s=o.buildMinimalRings(),a=this.findShell(s);null!==a?(this.placePolygonHoles(a,s),t.add(a)):n.addAll(s)}else r.add(o)}return r},Ht.prototype.containsPoint=function(e){for(var t=this._shellList.iterator();t.hasNext();)if(t.next().containsPoint(e))return!0;return!1},Ht.prototype.buildMaximalEdgeRings=function(e){for(var t=new we,n=e.iterator();n.hasNext();){var r=n.next();if(r.isInResult()&&r.getLabel().isArea()&&null===r.getEdgeRing()){var i=new Rt(r,this._geometryFactory);t.add(i),i.setInResult()}}return t},Ht.prototype.placePolygonHoles=function(e,t){for(var n=t.iterator();n.hasNext();){var r=n.next();r.isHole()&&r.setShell(e)}},Ht.prototype.getPolygons=function(){return this.computePolygons(this._shellList)},Ht.prototype.findEdgeRingContaining=function(e,t){for(var n=e.getLinearRing(),r=n.getEnvelopeInternal(),i=n.getCoordinateN(0),o=null,s=null,a=t.iterator();a.hasNext();){var l=a.next(),c=l.getLinearRing(),u=c.getEnvelopeInternal();null!==o&&(s=o.getLinearRing().getEnvelopeInternal());var d=!1;u.contains(r)&&ae.isPointInRing(i,c.getCoordinates())&&(d=!0),d&&(null===o||s.contains(u))&&(o=l)}return o},Ht.prototype.findShell=function(e){for(var t=0,n=null,r=e.iterator();r.hasNext();){var i=r.next();i.isHole()||(n=i,t++)}return te.isTrue(t<=1,"found two shells in MinimalEdgeRing list"),n},Ht.prototype.add=function(){if(1===arguments.length){var e=arguments[0];this.add(e.getEdgeEnds(),e.getNodes())}else if(2===arguments.length){var t=arguments[0],n=arguments[1];Wt.linkResultDirectedEdges(n);var r=this.buildMaximalEdgeRings(t),i=new we,o=this.buildMinimalEdgeRings(r,this._shellList,i);this.sortShellsAndHoles(o,this._shellList,i),this.placeFreeHoles(this._shellList,i)}},Ht.prototype.interfaces_=function(){return[]},Ht.prototype.getClass=function(){return Ht};var qt=function(){};qt.prototype.getBounds=function(){},qt.prototype.interfaces_=function(){return[]},qt.prototype.getClass=function(){return qt};var Xt=function(){this._bounds=null,this._item=null;var e=arguments[0],t=arguments[1];this._bounds=e,this._item=t};Xt.prototype.getItem=function(){return this._item},Xt.prototype.getBounds=function(){return this._bounds},Xt.prototype.interfaces_=function(){return[qt,t]},Xt.prototype.getClass=function(){return Xt};var Yt=function(){this._size=null,this._items=null,this._size=0,this._items=new we,this._items.add(null)};Yt.prototype.poll=function(){if(this.isEmpty())return null;var e=this._items.get(1);return this._items.set(1,this._items.get(this._size)),this._size-=1,this.reorder(1),e},Yt.prototype.size=function(){return this._size},Yt.prototype.reorder=function(e){for(var t=null,n=this._items.get(e);2*e<=this._size&&((t=2*e)!==this._size&&this._items.get(t+1).compareTo(this._items.get(t))<0&&t++,this._items.get(t).compareTo(n)<0);e=t)this._items.set(e,this._items.get(t));this._items.set(e,n)},Yt.prototype.clear=function(){this._size=0,this._items.clear()},Yt.prototype.isEmpty=function(){return 0===this._size},Yt.prototype.add=function(e){this._items.add(null),this._size+=1;var t=this._size;for(this._items.set(0,e);e.compareTo(this._items.get(Math.trunc(t/2)))<0;t/=2)this._items.set(t,this._items.get(Math.trunc(t/2)));this._items.set(t,e)},Yt.prototype.interfaces_=function(){return[]},Yt.prototype.getClass=function(){return Yt};var Kt=function(){};Kt.prototype.visitItem=function(e){},Kt.prototype.interfaces_=function(){return[]},Kt.prototype.getClass=function(){return Kt};var Zt=function(){};Zt.prototype.insert=function(e,t){},Zt.prototype.remove=function(e,t){},Zt.prototype.query=function(){},Zt.prototype.interfaces_=function(){return[]},Zt.prototype.getClass=function(){return Zt};var $t=function(){if(this._childBoundables=new we,this._bounds=null,this._level=null,0===arguments.length);else if(1===arguments.length){var e=arguments[0];this._level=e}},Jt={serialVersionUID:{configurable:!0}};$t.prototype.getLevel=function(){return this._level},$t.prototype.size=function(){return this._childBoundables.size()},$t.prototype.getChildBoundables=function(){return this._childBoundables},$t.prototype.addChildBoundable=function(e){te.isTrue(null===this._bounds),this._childBoundables.add(e)},$t.prototype.isEmpty=function(){return this._childBoundables.isEmpty()},$t.prototype.getBounds=function(){return null===this._bounds&&(this._bounds=this.computeBounds()),this._bounds},$t.prototype.interfaces_=function(){return[qt,t]},$t.prototype.getClass=function(){return $t},Jt.serialVersionUID.get=function(){return 0x5a1e55ec41369800},Object.defineProperties($t,Jt);var Qt=function(){};Qt.reverseOrder=function(){return{compare:function(e,t){return t.compareTo(e)}}},Qt.min=function(e){return Qt.sort(e),e.get(0)},Qt.sort=function(e,t){var n=e.toArray();t?Ne.sort(n,t):Ne.sort(n);for(var r=e.iterator(),i=0,o=n.length;i<o;i++)r.next(),r.set(n[i])},Qt.singletonList=function(e){var t=new we;return t.add(e),t};var en=function(){this._boundable1=null,this._boundable2=null,this._distance=null,this._itemDistance=null;var e=arguments[0],t=arguments[1],n=arguments[2];this._boundable1=e,this._boundable2=t,this._itemDistance=n,this._distance=this.distance()};en.prototype.expandToQueue=function(e,t){var n=en.isComposite(this._boundable1),r=en.isComposite(this._boundable2);if(n&&r)return en.area(this._boundable1)>en.area(this._boundable2)?(this.expand(this._boundable1,this._boundable2,e,t),null):(this.expand(this._boundable2,this._boundable1,e,t),null);if(n)return this.expand(this._boundable1,this._boundable2,e,t),null;if(r)return this.expand(this._boundable2,this._boundable1,e,t),null;throw new v("neither boundable is composite")},en.prototype.isLeaves=function(){return!(en.isComposite(this._boundable1)||en.isComposite(this._boundable2))},en.prototype.compareTo=function(e){var t=e;return this._distance<t._distance?-1:this._distance>t._distance?1:0},en.prototype.expand=function(e,t,n,r){for(var i=e.getChildBoundables().iterator();i.hasNext();){var o=i.next(),s=new en(o,t,this._itemDistance);s.getDistance()<r&&n.add(s)}},en.prototype.getBoundable=function(e){return 0===e?this._boundable1:this._boundable2},en.prototype.getDistance=function(){return this._distance},en.prototype.distance=function(){return this.isLeaves()?this._itemDistance.distance(this._boundable1,this._boundable2):this._boundable1.getBounds().distance(this._boundable2.getBounds())},en.prototype.interfaces_=function(){return[x]},en.prototype.getClass=function(){return en},en.area=function(e){return e.getBounds().getArea()},en.isComposite=function(e){return e instanceof $t};var tn=function e(){if(this._root=null,this._built=!1,this._itemBoundables=new we,this._nodeCapacity=null,0===arguments.length){var t=e.DEFAULT_NODE_CAPACITY;this._nodeCapacity=t}else if(1===arguments.length){var n=arguments[0];te.isTrue(n>1,"Node capacity must be greater than 1"),this._nodeCapacity=n}},nn={IntersectsOp:{configurable:!0},serialVersionUID:{configurable:!0},DEFAULT_NODE_CAPACITY:{configurable:!0}};tn.prototype.getNodeCapacity=function(){return this._nodeCapacity},tn.prototype.lastNode=function(e){return e.get(e.size()-1)},tn.prototype.size=function(){if(0===arguments.length)return this.isEmpty()?0:(this.build(),this.size(this._root));if(1===arguments.length){for(var e=0,t=arguments[0].getChildBoundables().iterator();t.hasNext();){var n=t.next();n instanceof $t?e+=this.size(n):n instanceof Xt&&(e+=1)}return e}},tn.prototype.removeItem=function(e,t){for(var n=null,r=e.getChildBoundables().iterator();r.hasNext();){var i=r.next();i instanceof Xt&&i.getItem()===t&&(n=i)}return null!==n&&(e.getChildBoundables().remove(n),!0)},tn.prototype.itemsTree=function(){if(0===arguments.length){this.build();var e=this.itemsTree(this._root);return null===e?new we:e}if(1===arguments.length){for(var t=arguments[0],n=new we,r=t.getChildBoundables().iterator();r.hasNext();){var i=r.next();if(i instanceof $t){var o=this.itemsTree(i);null!==o&&n.add(o)}else i instanceof Xt?n.add(i.getItem()):te.shouldNeverReachHere()}return n.size()<=0?null:n}},tn.prototype.insert=function(e,t){te.isTrue(!this._built,"Cannot insert items into an STR packed R-tree after it has been built."),this._itemBoundables.add(new Xt(e,t))},tn.prototype.boundablesAtLevel=function(){if(1===arguments.length){var e=arguments[0],t=new we;return this.boundablesAtLevel(e,this._root,t),t}if(3===arguments.length){var n=arguments[0],r=arguments[1],i=arguments[2];if(te.isTrue(n>-2),r.getLevel()===n)return i.add(r),null;for(var o=r.getChildBoundables().iterator();o.hasNext();){var s=o.next();s instanceof $t?this.boundablesAtLevel(n,s,i):(te.isTrue(s instanceof Xt),-1===n&&i.add(s))}return null}},tn.prototype.query=function(){if(1===arguments.length){var e=arguments[0];this.build();var t=new we;return this.isEmpty()||this.getIntersectsOp().intersects(this._root.getBounds(),e)&&this.query(e,this._root,t),t}if(2===arguments.length){var n=arguments[0],r=arguments[1];if(this.build(),this.isEmpty())return null;this.getIntersectsOp().intersects(this._root.getBounds(),n)&&this.query(n,this._root,r)}else if(3===arguments.length)if(I(arguments[2],Kt)&&arguments[0]instanceof Object&&arguments[1]instanceof $t)for(var i=arguments[0],o=arguments[2],s=arguments[1].getChildBoundables(),a=0;a<s.size();a++){var l=s.get(a);this.getIntersectsOp().intersects(l.getBounds(),i)&&(l instanceof $t?this.query(i,l,o):l instanceof Xt?o.visitItem(l.getItem()):te.shouldNeverReachHere())}else if(I(arguments[2],Se)&&arguments[0]instanceof Object&&arguments[1]instanceof $t)for(var c=arguments[0],u=arguments[2],d=arguments[1].getChildBoundables(),h=0;h<d.size();h++){var p=d.get(h);this.getIntersectsOp().intersects(p.getBounds(),c)&&(p instanceof $t?this.query(c,p,u):p instanceof Xt?u.add(p.getItem()):te.shouldNeverReachHere())}},tn.prototype.build=function(){if(this._built)return null;this._root=this._itemBoundables.isEmpty()?this.createNode(0):this.createHigherLevels(this._itemBoundables,-1),this._itemBoundables=null,this._built=!0},tn.prototype.getRoot=function(){return this.build(),this._root},tn.prototype.remove=function(){if(2===arguments.length){var e=arguments[0],t=arguments[1];return this.build(),!!this.getIntersectsOp().intersects(this._root.getBounds(),e)&&this.remove(e,this._root,t)}if(3===arguments.length){var n=arguments[0],r=arguments[1],i=arguments[2],o=this.removeItem(r,i);if(o)return!0;for(var s=null,a=r.getChildBoundables().iterator();a.hasNext();){var l=a.next();if(this.getIntersectsOp().intersects(l.getBounds(),n)&&l instanceof $t&&(o=this.remove(n,l,i))){s=l;break}}return null!==s&&s.getChildBoundables().isEmpty()&&r.getChildBoundables().remove(s),o}},tn.prototype.createHigherLevels=function(e,t){te.isTrue(!e.isEmpty());var n=this.createParentBoundables(e,t+1);return 1===n.size()?n.get(0):this.createHigherLevels(n,t+1)},tn.prototype.depth=function(){if(0===arguments.length)return this.isEmpty()?0:(this.build(),this.depth(this._root));if(1===arguments.length){for(var e=0,t=arguments[0].getChildBoundables().iterator();t.hasNext();){var n=t.next();if(n instanceof $t){var r=this.depth(n);r>e&&(e=r)}}return e+1}},tn.prototype.createParentBoundables=function(e,t){te.isTrue(!e.isEmpty());var n=new we;n.add(this.createNode(t));var r=new we(e);Qt.sort(r,this.getComparator());for(var i=r.iterator();i.hasNext();){var o=i.next();this.lastNode(n).getChildBoundables().size()===this.getNodeCapacity()&&n.add(this.createNode(t)),this.lastNode(n).addChildBoundable(o)}return n},tn.prototype.isEmpty=function(){return this._built?this._root.isEmpty():this._itemBoundables.isEmpty()},tn.prototype.interfaces_=function(){return[t]},tn.prototype.getClass=function(){return tn},tn.compareDoubles=function(e,t){return e>t?1:e<t?-1:0},nn.IntersectsOp.get=function(){return rn},nn.serialVersionUID.get=function(){return-0x35ef64c82d4c5400},nn.DEFAULT_NODE_CAPACITY.get=function(){return 10},Object.defineProperties(tn,nn);var rn=function(){},on=function(){};on.prototype.distance=function(e,t){},on.prototype.interfaces_=function(){return[]},on.prototype.getClass=function(){return on};var sn=function(e){function n(t){t=t||n.DEFAULT_NODE_CAPACITY,e.call(this,t)}e&&(n.__proto__=e),(n.prototype=Object.create(e&&e.prototype)).constructor=n;var r={STRtreeNode:{configurable:!0},serialVersionUID:{configurable:!0},xComparator:{configurable:!0},yComparator:{configurable:!0},intersectsOp:{configurable:!0},DEFAULT_NODE_CAPACITY:{configurable:!0}};return n.prototype.createParentBoundablesFromVerticalSlices=function(e,t){te.isTrue(e.length>0);for(var n=new we,r=0;r<e.length;r++)n.addAll(this.createParentBoundablesFromVerticalSlice(e[r],t));return n},n.prototype.createNode=function(e){return new an(e)},n.prototype.size=function(){return 0===arguments.length?e.prototype.size.call(this):e.prototype.size.apply(this,arguments)},n.prototype.insert=function(){if(2!==arguments.length)return e.prototype.insert.apply(this,arguments);var t=arguments[0],n=arguments[1];if(t.isNull())return null;e.prototype.insert.call(this,t,n)},n.prototype.getIntersectsOp=function(){return n.intersectsOp},n.prototype.verticalSlices=function(e,t){for(var n=Math.trunc(Math.ceil(e.size()/t)),r=new Array(t).fill(null),i=e.iterator(),o=0;o<t;o++){r[o]=new we;for(var s=0;i.hasNext()&&s<n;){var a=i.next();r[o].add(a),s++}}return r},n.prototype.query=function(){if(1===arguments.length){var t=arguments[0];return e.prototype.query.call(this,t)}if(2===arguments.length){var n=arguments[0],r=arguments[1];e.prototype.query.call(this,n,r)}else if(3===arguments.length)if(I(arguments[2],Kt)&&arguments[0]instanceof Object&&arguments[1]instanceof $t){var i=arguments[0],o=arguments[1],s=arguments[2];e.prototype.query.call(this,i,o,s)}else if(I(arguments[2],Se)&&arguments[0]instanceof Object&&arguments[1]instanceof $t){var a=arguments[0],l=arguments[1],c=arguments[2];e.prototype.query.call(this,a,l,c)}},n.prototype.getComparator=function(){return n.yComparator},n.prototype.createParentBoundablesFromVerticalSlice=function(t,n){return e.prototype.createParentBoundables.call(this,t,n)},n.prototype.remove=function(){if(2===arguments.length){var t=arguments[0],n=arguments[1];return e.prototype.remove.call(this,t,n)}return e.prototype.remove.apply(this,arguments)},n.prototype.depth=function(){return 0===arguments.length?e.prototype.depth.call(this):e.prototype.depth.apply(this,arguments)},n.prototype.createParentBoundables=function(e,t){te.isTrue(!e.isEmpty());var r=Math.trunc(Math.ceil(e.size()/this.getNodeCapacity())),i=new we(e);Qt.sort(i,n.xComparator);var o=this.verticalSlices(i,Math.trunc(Math.ceil(Math.sqrt(r))));return this.createParentBoundablesFromVerticalSlices(o,t)},n.prototype.nearestNeighbour=function(){if(1===arguments.length){if(I(arguments[0],on)){var e=arguments[0],t=new en(this.getRoot(),this.getRoot(),e);return this.nearestNeighbour(t)}if(arguments[0]instanceof en){var r=arguments[0];return this.nearestNeighbour(r,_.POSITIVE_INFINITY)}}else if(2===arguments.length){if(arguments[0]instanceof n&&I(arguments[1],on)){var i=arguments[0],o=arguments[1],s=new en(this.getRoot(),i.getRoot(),o);return this.nearestNeighbour(s)}if(arguments[0]instanceof en&&"number"==typeof arguments[1]){var a=arguments[0],l=arguments[1],c=null,u=new Yt;for(u.add(a);!u.isEmpty()&&l>0;){var d=u.poll(),h=d.getDistance();if(h>=l)break;d.isLeaves()?(l=h,c=d):d.expandToQueue(u,l)}return[c.getBoundable(0).getItem(),c.getBoundable(1).getItem()]}}else if(3===arguments.length){var p=arguments[2],f=new Xt(arguments[0],arguments[1]),g=new en(this.getRoot(),f,p);return this.nearestNeighbour(g)[0]}},n.prototype.interfaces_=function(){return[Zt,t]},n.prototype.getClass=function(){return n},n.centreX=function(e){return n.avg(e.getMinX(),e.getMaxX())},n.avg=function(e,t){return(e+t)/2},n.centreY=function(e){return n.avg(e.getMinY(),e.getMaxY())},r.STRtreeNode.get=function(){return an},r.serialVersionUID.get=function(){return 0x39920f7d5f261e0},r.xComparator.get=function(){return{interfaces_:function(){return[w]},compare:function(t,r){return e.compareDoubles(n.centreX(t.getBounds()),n.centreX(r.getBounds()))}}},r.yComparator.get=function(){return{interfaces_:function(){return[w]},compare:function(t,r){return e.compareDoubles(n.centreY(t.getBounds()),n.centreY(r.getBounds()))}}},r.intersectsOp.get=function(){return{interfaces_:function(){return[e.IntersectsOp]},intersects:function(e,t){return e.intersects(t)}}},r.DEFAULT_NODE_CAPACITY.get=function(){return 10},Object.defineProperties(n,r),n}(tn),an=function(e){function t(){var t=arguments[0];e.call(this,t)}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.computeBounds=function(){for(var e=null,t=this.getChildBoundables().iterator();t.hasNext();){var n=t.next();null===e?e=new q(n.getBounds()):e.expandToInclude(n.getBounds())}return e},t.prototype.interfaces_=function(){return[]},t.prototype.getClass=function(){return t},t}($t),ln=function(){};ln.prototype.interfaces_=function(){return[]},ln.prototype.getClass=function(){return ln},ln.relativeSign=function(e,t){return e<t?-1:e>t?1:0},ln.compare=function(e,t,n){if(t.equals2D(n))return 0;var r=ln.relativeSign(t.x,n.x),i=ln.relativeSign(t.y,n.y);switch(e){case 0:return ln.compareValue(r,i);case 1:return ln.compareValue(i,r);case 2:return ln.compareValue(i,-r);case 3:return ln.compareValue(-r,i);case 4:return ln.compareValue(-r,-i);case 5:return ln.compareValue(-i,-r);case 6:return ln.compareValue(-i,r);case 7:return ln.compareValue(r,-i)}return te.shouldNeverReachHere("invalid octant value"),0},ln.compareValue=function(e,t){return e<0?-1:e>0?1:t<0?-1:t>0?1:0};var cn=function(){this._segString=null,this.coord=null,this.segmentIndex=null,this._segmentOctant=null,this._isInterior=null;var e=arguments[0],t=arguments[1],n=arguments[2],r=arguments[3];this._segString=e,this.coord=new E(t),this.segmentIndex=n,this._segmentOctant=r,this._isInterior=!t.equals2D(e.getCoordinate(n))};cn.prototype.getCoordinate=function(){return this.coord},cn.prototype.print=function(e){e.print(this.coord),e.print(" seg # = "+this.segmentIndex)},cn.prototype.compareTo=function(e){var t=e;return this.segmentIndex<t.segmentIndex?-1:this.segmentIndex>t.segmentIndex?1:this.coord.equals2D(t.coord)?0:ln.compare(this._segmentOctant,this.coord,t.coord)},cn.prototype.isEndPoint=function(e){return 0===this.segmentIndex&&!this._isInterior||this.segmentIndex===e},cn.prototype.isInterior=function(){return this._isInterior},cn.prototype.interfaces_=function(){return[x]},cn.prototype.getClass=function(){return cn};var un=function(){this._nodeMap=new d,this._edge=null;var e=arguments[0];this._edge=e};un.prototype.getSplitCoordinates=function(){var e=new Pe;this.addEndpoints();for(var t=this.iterator(),n=t.next();t.hasNext();){var r=t.next();this.addEdgeCoordinates(n,r,e),n=r}return e.toCoordinateArray()},un.prototype.addCollapsedNodes=function(){var e=new we;this.findCollapsesFromInsertedNodes(e),this.findCollapsesFromExistingVertices(e);for(var t=e.iterator();t.hasNext();){var n=t.next().intValue();this.add(this._edge.getCoordinate(n),n)}},un.prototype.print=function(e){e.println("Intersections:");for(var t=this.iterator();t.hasNext();)t.next().print(e)},un.prototype.findCollapsesFromExistingVertices=function(e){for(var t=0;t<this._edge.size()-2;t++){var n=this._edge.getCoordinate(t),r=this._edge.getCoordinate(t+2);n.equals2D(r)&&e.add(new O(t+1))}},un.prototype.addEdgeCoordinates=function(e,t,n){var r=this._edge.getCoordinate(t.segmentIndex),i=t.isInterior()||!t.coord.equals2D(r);n.add(new E(e.coord),!1);for(var o=e.segmentIndex+1;o<=t.segmentIndex;o++)n.add(this._edge.getCoordinate(o));i&&n.add(new E(t.coord))},un.prototype.iterator=function(){return this._nodeMap.values().iterator()},un.prototype.addSplitEdges=function(e){this.addEndpoints(),this.addCollapsedNodes();for(var t=this.iterator(),n=t.next();t.hasNext();){var r=t.next(),i=this.createSplitEdge(n,r);e.add(i),n=r}},un.prototype.findCollapseIndex=function(e,t,n){if(!e.coord.equals2D(t.coord))return!1;var r=t.segmentIndex-e.segmentIndex;return t.isInterior()||r--,1===r&&(n[0]=e.segmentIndex+1,!0)},un.prototype.findCollapsesFromInsertedNodes=function(e){for(var t=new Array(1).fill(null),n=this.iterator(),r=n.next();n.hasNext();){var i=n.next();this.findCollapseIndex(r,i,t)&&e.add(new O(t[0])),r=i}},un.prototype.getEdge=function(){return this._edge},un.prototype.addEndpoints=function(){var e=this._edge.size()-1;this.add(this._edge.getCoordinate(0),0),this.add(this._edge.getCoordinate(e),e)},un.prototype.createSplitEdge=function(e,t){var n=t.segmentIndex-e.segmentIndex+2,r=this._edge.getCoordinate(t.segmentIndex),i=t.isInterior()||!t.coord.equals2D(r);i||n--;var o=new Array(n).fill(null),s=0;o[s++]=new E(e.coord);for(var a=e.segmentIndex+1;a<=t.segmentIndex;a++)o[s++]=this._edge.getCoordinate(a);return i&&(o[s]=new E(t.coord)),new fn(o,this._edge.getData())},un.prototype.add=function(e,t){var n=new cn(this._edge,e,t,this._edge.getSegmentOctant(t)),r=this._nodeMap.get(n);return null!==r?(te.isTrue(r.coord.equals2D(e),"Found equal nodes with different coordinates"),r):(this._nodeMap.put(n,n),n)},un.prototype.checkSplitEdgesCorrectness=function(e){var t=this._edge.getCoordinates(),n=e.get(0).getCoordinate(0);if(!n.equals2D(t[0]))throw new Q("bad split edge start point at "+n);var r=e.get(e.size()-1).getCoordinates(),i=r[r.length-1];if(!i.equals2D(t[t.length-1]))throw new Q("bad split edge end point at "+i)},un.prototype.interfaces_=function(){return[]},un.prototype.getClass=function(){return un};var dn=function(){};dn.prototype.interfaces_=function(){return[]},dn.prototype.getClass=function(){return dn},dn.octant=function(){if("number"==typeof arguments[0]&&"number"==typeof arguments[1]){var e=arguments[0],t=arguments[1];if(0===e&&0===t)throw new v("Cannot compute the octant for point ( "+e+", "+t+" )");var n=Math.abs(e),r=Math.abs(t);return e>=0?t>=0?n>=r?0:1:n>=r?7:6:t>=0?n>=r?3:2:n>=r?4:5}if(arguments[0]instanceof E&&arguments[1]instanceof E){var i=arguments[0],o=arguments[1],s=o.x-i.x,a=o.y-i.y;if(0===s&&0===a)throw new v("Cannot compute the octant for two identical points "+i);return dn.octant(s,a)}};var hn=function(){};hn.prototype.getCoordinates=function(){},hn.prototype.size=function(){},hn.prototype.getCoordinate=function(e){},hn.prototype.isClosed=function(){},hn.prototype.setData=function(e){},hn.prototype.getData=function(){},hn.prototype.interfaces_=function(){return[]},hn.prototype.getClass=function(){return hn};var pn=function(){};pn.prototype.addIntersection=function(e,t){},pn.prototype.interfaces_=function(){return[hn]},pn.prototype.getClass=function(){return pn};var fn=function(){this._nodeList=new un(this),this._pts=null,this._data=null;var e=arguments[0],t=arguments[1];this._pts=e,this._data=t};fn.prototype.getCoordinates=function(){return this._pts},fn.prototype.size=function(){return this._pts.length},fn.prototype.getCoordinate=function(e){return this._pts[e]},fn.prototype.isClosed=function(){return this._pts[0].equals(this._pts[this._pts.length-1])},fn.prototype.getSegmentOctant=function(e){return e===this._pts.length-1?-1:this.safeOctant(this.getCoordinate(e),this.getCoordinate(e+1))},fn.prototype.setData=function(e){this._data=e},fn.prototype.safeOctant=function(e,t){return e.equals2D(t)?0:dn.octant(e,t)},fn.prototype.getData=function(){return this._data},fn.prototype.addIntersection=function(){if(2===arguments.length){var e=arguments[0],t=arguments[1];this.addIntersectionNode(e,t)}else if(4===arguments.length){var n=arguments[1],r=arguments[3],i=new E(arguments[0].getIntersection(r));this.addIntersection(i,n)}},fn.prototype.toString=function(){return J.toLineString(new lt(this._pts))},fn.prototype.getNodeList=function(){return this._nodeList},fn.prototype.addIntersectionNode=function(e,t){var n=t,r=n+1;if(r<this._pts.length){var i=this._pts[r];e.equals2D(i)&&(n=r)}return this._nodeList.add(e,n)},fn.prototype.addIntersections=function(e,t,n){for(var r=0;r<e.getIntersectionNum();r++)this.addIntersection(e,t,n,r)},fn.prototype.interfaces_=function(){return[pn]},fn.prototype.getClass=function(){return fn},fn.getNodedSubstrings=function(){if(1===arguments.length){var e=arguments[0],t=new we;return fn.getNodedSubstrings(e,t),t}if(2===arguments.length)for(var n=arguments[1],r=arguments[0].iterator();r.hasNext();)r.next().getNodeList().addSplitEdges(n)};var gn=function(){if(this.p0=null,this.p1=null,0===arguments.length)this.p0=new E,this.p1=new E;else if(1===arguments.length){var e=arguments[0];this.p0=new E(e.p0),this.p1=new E(e.p1)}else if(2===arguments.length)this.p0=arguments[0],this.p1=arguments[1];else if(4===arguments.length){var t=arguments[0],n=arguments[1],r=arguments[2],i=arguments[3];this.p0=new E(t,n),this.p1=new E(r,i)}},mn={serialVersionUID:{configurable:!0}};gn.prototype.minX=function(){return Math.min(this.p0.x,this.p1.x)},gn.prototype.orientationIndex=function(){if(arguments[0]instanceof gn){var e=arguments[0],t=ae.orientationIndex(this.p0,this.p1,e.p0),n=ae.orientationIndex(this.p0,this.p1,e.p1);return t>=0&&n>=0||t<=0&&n<=0?Math.max(t,n):0}if(arguments[0]instanceof E){var r=arguments[0];return ae.orientationIndex(this.p0,this.p1,r)}},gn.prototype.toGeometry=function(e){return e.createLineString([this.p0,this.p1])},gn.prototype.isVertical=function(){return this.p0.x===this.p1.x},gn.prototype.equals=function(e){if(!(e instanceof gn))return!1;var t=e;return this.p0.equals(t.p0)&&this.p1.equals(t.p1)},gn.prototype.intersection=function(e){var t=new ie;return t.computeIntersection(this.p0,this.p1,e.p0,e.p1),t.hasIntersection()?t.getIntersection(0):null},gn.prototype.project=function(){if(arguments[0]instanceof E){var e=arguments[0];if(e.equals(this.p0)||e.equals(this.p1))return new E(e);var t=this.projectionFactor(e),n=new E;return n.x=this.p0.x+t*(this.p1.x-this.p0.x),n.y=this.p0.y+t*(this.p1.y-this.p0.y),n}if(arguments[0]instanceof gn){var r=arguments[0],i=this.projectionFactor(r.p0),o=this.projectionFactor(r.p1);if(i>=1&&o>=1)return null;if(i<=0&&o<=0)return null;var s=this.project(r.p0);i<0&&(s=this.p0),i>1&&(s=this.p1);var a=this.project(r.p1);return o<0&&(a=this.p0),o>1&&(a=this.p1),new gn(s,a)}},gn.prototype.normalize=function(){this.p1.compareTo(this.p0)<0&&this.reverse()},gn.prototype.angle=function(){return Math.atan2(this.p1.y-this.p0.y,this.p1.x-this.p0.x)},gn.prototype.getCoordinate=function(e){return 0===e?this.p0:this.p1},gn.prototype.distancePerpendicular=function(e){return ae.distancePointLinePerpendicular(e,this.p0,this.p1)},gn.prototype.minY=function(){return Math.min(this.p0.y,this.p1.y)},gn.prototype.midPoint=function(){return gn.midPoint(this.p0,this.p1)},gn.prototype.projectionFactor=function(e){if(e.equals(this.p0))return 0;if(e.equals(this.p1))return 1;var t=this.p1.x-this.p0.x,n=this.p1.y-this.p0.y,r=t*t+n*n;return r<=0?_.NaN:((e.x-this.p0.x)*t+(e.y-this.p0.y)*n)/r},gn.prototype.closestPoints=function(e){var t=this.intersection(e);if(null!==t)return[t,t];var n=new Array(2).fill(null),r=_.MAX_VALUE,i=null,o=this.closestPoint(e.p0);r=o.distance(e.p0),n[0]=o,n[1]=e.p0;var s=this.closestPoint(e.p1);(i=s.distance(e.p1))<r&&(r=i,n[0]=s,n[1]=e.p1);var a=e.closestPoint(this.p0);(i=a.distance(this.p0))<r&&(r=i,n[0]=this.p0,n[1]=a);var l=e.closestPoint(this.p1);return(i=l.distance(this.p1))<r&&(r=i,n[0]=this.p1,n[1]=l),n},gn.prototype.closestPoint=function(e){var t=this.projectionFactor(e);return t>0&&t<1?this.project(e):this.p0.distance(e)<this.p1.distance(e)?this.p0:this.p1},gn.prototype.maxX=function(){return Math.max(this.p0.x,this.p1.x)},gn.prototype.getLength=function(){return this.p0.distance(this.p1)},gn.prototype.compareTo=function(e){var t=e,n=this.p0.compareTo(t.p0);return 0!==n?n:this.p1.compareTo(t.p1)},gn.prototype.reverse=function(){var e=this.p0;this.p0=this.p1,this.p1=e},gn.prototype.equalsTopo=function(e){return this.p0.equals(e.p0)&&(this.p1.equals(e.p1)||this.p0.equals(e.p1))&&this.p1.equals(e.p0)},gn.prototype.lineIntersection=function(e){try{return H.intersection(this.p0,this.p1,e.p0,e.p1)}catch(e){if(!(e instanceof U))throw e}return null},gn.prototype.maxY=function(){return Math.max(this.p0.y,this.p1.y)},gn.prototype.pointAlongOffset=function(e,t){var n=this.p0.x+e*(this.p1.x-this.p0.x),r=this.p0.y+e*(this.p1.y-this.p0.y),i=this.p1.x-this.p0.x,o=this.p1.y-this.p0.y,s=Math.sqrt(i*i+o*o),a=0,l=0;if(0!==t){if(s<=0)throw new Error("Cannot compute offset from zero-length line segment");a=t*i/s,l=t*o/s}return new E(n-l,r+a)},gn.prototype.setCoordinates=function(){if(1===arguments.length){var e=arguments[0];this.setCoordinates(e.p0,e.p1)}else if(2===arguments.length){var t=arguments[0],n=arguments[1];this.p0.x=t.x,this.p0.y=t.y,this.p1.x=n.x,this.p1.y=n.y}},gn.prototype.segmentFraction=function(e){var t=this.projectionFactor(e);return t<0?t=0:(t>1||_.isNaN(t))&&(t=1),t},gn.prototype.toString=function(){return"LINESTRING( "+this.p0.x+" "+this.p0.y+", "+this.p1.x+" "+this.p1.y+")"},gn.prototype.isHorizontal=function(){return this.p0.y===this.p1.y},gn.prototype.distance=function(){if(arguments[0]instanceof gn){var e=arguments[0];return ae.distanceLineLine(this.p0,this.p1,e.p0,e.p1)}if(arguments[0]instanceof E){var t=arguments[0];return ae.distancePointLine(t,this.p0,this.p1)}},gn.prototype.pointAlong=function(e){var t=new E;return t.x=this.p0.x+e*(this.p1.x-this.p0.x),t.y=this.p0.y+e*(this.p1.y-this.p0.y),t},gn.prototype.hashCode=function(){var e=_.doubleToLongBits(this.p0.x);e^=31*_.doubleToLongBits(this.p0.y);var t=Math.trunc(e)^Math.trunc(e>>32),n=_.doubleToLongBits(this.p1.x);return n^=31*_.doubleToLongBits(this.p1.y),t^Math.trunc(n)^Math.trunc(n>>32)},gn.prototype.interfaces_=function(){return[x,t]},gn.prototype.getClass=function(){return gn},gn.midPoint=function(e,t){return new E((e.x+t.x)/2,(e.y+t.y)/2)},mn.serialVersionUID.get=function(){return 0x2d2172135f411c00},Object.defineProperties(gn,mn);var yn=function(){this.tempEnv1=new q,this.tempEnv2=new q,this._overlapSeg1=new gn,this._overlapSeg2=new gn};yn.prototype.overlap=function(){if(2===arguments.length);else if(4===arguments.length){var e=arguments[1],t=arguments[2],n=arguments[3];arguments[0].getLineSegment(e,this._overlapSeg1),t.getLineSegment(n,this._overlapSeg2),this.overlap(this._overlapSeg1,this._overlapSeg2)}},yn.prototype.interfaces_=function(){return[]},yn.prototype.getClass=function(){return yn};var vn=function(){this._pts=null,this._start=null,this._end=null,this._env=null,this._context=null,this._id=null;var e=arguments[0],t=arguments[1],n=arguments[2],r=arguments[3];this._pts=e,this._start=t,this._end=n,this._context=r};vn.prototype.getLineSegment=function(e,t){t.p0=this._pts[e],t.p1=this._pts[e+1]},vn.prototype.computeSelect=function(e,t,n,r){var i=this._pts[t],o=this._pts[n];if(r.tempEnv1.init(i,o),n-t==1)return r.select(this,t),null;if(!e.intersects(r.tempEnv1))return null;var s=Math.trunc((t+n)/2);t<s&&this.computeSelect(e,t,s,r),s<n&&this.computeSelect(e,s,n,r)},vn.prototype.getCoordinates=function(){for(var e=new Array(this._end-this._start+1).fill(null),t=0,n=this._start;n<=this._end;n++)e[t++]=this._pts[n];return e},vn.prototype.computeOverlaps=function(e,t){this.computeOverlapsInternal(this._start,this._end,e,e._start,e._end,t)},vn.prototype.setId=function(e){this._id=e},vn.prototype.select=function(e,t){this.computeSelect(e,this._start,this._end,t)},vn.prototype.getEnvelope=function(){if(null===this._env){var e=this._pts[this._start],t=this._pts[this._end];this._env=new q(e,t)}return this._env},vn.prototype.getEndIndex=function(){return this._end},vn.prototype.getStartIndex=function(){return this._start},vn.prototype.getContext=function(){return this._context},vn.prototype.getId=function(){return this._id},vn.prototype.computeOverlapsInternal=function(e,t,n,r,i,o){var s=this._pts[e],a=this._pts[t],l=n._pts[r],c=n._pts[i];if(t-e==1&&i-r==1)return o.overlap(this,e,n,r),null;if(o.tempEnv1.init(s,a),o.tempEnv2.init(l,c),!o.tempEnv1.intersects(o.tempEnv2))return null;var u=Math.trunc((e+t)/2),d=Math.trunc((r+i)/2);e<u&&(r<d&&this.computeOverlapsInternal(e,u,n,r,d,o),d<i&&this.computeOverlapsInternal(e,u,n,d,i,o)),u<t&&(r<d&&this.computeOverlapsInternal(u,t,n,r,d,o),d<i&&this.computeOverlapsInternal(u,t,n,d,i,o))},vn.prototype.interfaces_=function(){return[]},vn.prototype.getClass=function(){return vn};var _n=function(){};_n.prototype.interfaces_=function(){return[]},_n.prototype.getClass=function(){return _n},_n.getChainStartIndices=function(e){var t=0,n=new we;n.add(new O(t));do{var r=_n.findChainEnd(e,t);n.add(new O(r)),t=r}while(t<e.length-1);return _n.toIntArray(n)},_n.findChainEnd=function(e,t){for(var n=t;n<e.length-1&&e[n].equals2D(e[n+1]);)n++;if(n>=e.length-1)return e.length-1;for(var r=Vt.quadrant(e[n],e[n+1]),i=t+1;i<e.length&&(e[i-1].equals2D(e[i])||Vt.quadrant(e[i-1],e[i])===r);)i++;return i-1},_n.getChains=function(){if(1===arguments.length){var e=arguments[0];return _n.getChains(e,null)}if(2===arguments.length){for(var t=arguments[0],n=arguments[1],r=new we,i=_n.getChainStartIndices(t),o=0;o<i.length-1;o++){var s=new vn(t,i[o],i[o+1],n);r.add(s)}return r}},_n.toIntArray=function(e){for(var t=new Array(e.size()).fill(null),n=0;n<t.length;n++)t[n]=e.get(n).intValue();return t};var bn=function(){};bn.prototype.computeNodes=function(e){},bn.prototype.getNodedSubstrings=function(){},bn.prototype.interfaces_=function(){return[]},bn.prototype.getClass=function(){return bn};var xn=function(){if(this._segInt=null,0===arguments.length);else if(1===arguments.length){var e=arguments[0];this.setSegmentIntersector(e)}};xn.prototype.setSegmentIntersector=function(e){this._segInt=e},xn.prototype.interfaces_=function(){return[bn]},xn.prototype.getClass=function(){return xn};var Sn=function(e){function t(t){t?e.call(this,t):e.call(this),this._monoChains=new we,this._index=new sn,this._idCounter=0,this._nodedSegStrings=null,this._nOverlaps=0}e&&(t.__proto__=e),(t.prototype=Object.create(e&&e.prototype)).constructor=t;var n={SegmentOverlapAction:{configurable:!0}};return t.prototype.getMonotoneChains=function(){return this._monoChains},t.prototype.getNodedSubstrings=function(){return fn.getNodedSubstrings(this._nodedSegStrings)},t.prototype.getIndex=function(){return this._index},t.prototype.add=function(e){for(var t=_n.getChains(e.getCoordinates(),e).iterator();t.hasNext();){var n=t.next();n.setId(this._idCounter++),this._index.insert(n.getEnvelope(),n),this._monoChains.add(n)}},t.prototype.computeNodes=function(e){this._nodedSegStrings=e;for(var t=e.iterator();t.hasNext();)this.add(t.next());this.intersectChains()},t.prototype.intersectChains=function(){for(var e=new wn(this._segInt),t=this._monoChains.iterator();t.hasNext();)for(var n=t.next(),r=this._index.query(n.getEnvelope()).iterator();r.hasNext();){var i=r.next();if(i.getId()>n.getId()&&(n.computeOverlaps(i,e),this._nOverlaps++),this._segInt.isDone())return null}},t.prototype.interfaces_=function(){return[]},t.prototype.getClass=function(){return t},n.SegmentOverlapAction.get=function(){return wn},Object.defineProperties(t,n),t}(xn),wn=function(e){function t(){e.call(this),this._si=null;var t=arguments[0];this._si=t}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.overlap=function(){if(4!==arguments.length)return e.prototype.overlap.apply(this,arguments);var t=arguments[1],n=arguments[2],r=arguments[3],i=arguments[0].getContext(),o=n.getContext();this._si.processIntersections(i,t,o,r)},t.prototype.interfaces_=function(){return[]},t.prototype.getClass=function(){return t},t}(yn),En=function e(){if(this._quadrantSegments=e.DEFAULT_QUADRANT_SEGMENTS,this._endCapStyle=e.CAP_ROUND,this._joinStyle=e.JOIN_ROUND,this._mitreLimit=e.DEFAULT_MITRE_LIMIT,this._isSingleSided=!1,this._simplifyFactor=e.DEFAULT_SIMPLIFY_FACTOR,0===arguments.length);else if(1===arguments.length){var t=arguments[0];this.setQuadrantSegments(t)}else if(2===arguments.length){var n=arguments[0],r=arguments[1];this.setQuadrantSegments(n),this.setEndCapStyle(r)}else if(4===arguments.length){var i=arguments[0],o=arguments[1],s=arguments[2],a=arguments[3];this.setQuadrantSegments(i),this.setEndCapStyle(o),this.setJoinStyle(s),this.setMitreLimit(a)}},Pn={CAP_ROUND:{configurable:!0},CAP_FLAT:{configurable:!0},CAP_SQUARE:{configurable:!0},JOIN_ROUND:{configurable:!0},JOIN_MITRE:{configurable:!0},JOIN_BEVEL:{configurable:!0},DEFAULT_QUADRANT_SEGMENTS:{configurable:!0},DEFAULT_MITRE_LIMIT:{configurable:!0},DEFAULT_SIMPLIFY_FACTOR:{configurable:!0}};En.prototype.getEndCapStyle=function(){return this._endCapStyle},En.prototype.isSingleSided=function(){return this._isSingleSided},En.prototype.setQuadrantSegments=function(e){this._quadrantSegments=e,0===this._quadrantSegments&&(this._joinStyle=En.JOIN_BEVEL),this._quadrantSegments<0&&(this._joinStyle=En.JOIN_MITRE,this._mitreLimit=Math.abs(this._quadrantSegments)),e<=0&&(this._quadrantSegments=1),this._joinStyle!==En.JOIN_ROUND&&(this._quadrantSegments=En.DEFAULT_QUADRANT_SEGMENTS)},En.prototype.getJoinStyle=function(){return this._joinStyle},En.prototype.setJoinStyle=function(e){this._joinStyle=e},En.prototype.setSimplifyFactor=function(e){this._simplifyFactor=e<0?0:e},En.prototype.getSimplifyFactor=function(){return this._simplifyFactor},En.prototype.getQuadrantSegments=function(){return this._quadrantSegments},En.prototype.setEndCapStyle=function(e){this._endCapStyle=e},En.prototype.getMitreLimit=function(){return this._mitreLimit},En.prototype.setMitreLimit=function(e){this._mitreLimit=e},En.prototype.setSingleSided=function(e){this._isSingleSided=e},En.prototype.interfaces_=function(){return[]},En.prototype.getClass=function(){return En},En.bufferDistanceError=function(e){var t=Math.PI/2/e;return 1-Math.cos(t/2)},Pn.CAP_ROUND.get=function(){return 1},Pn.CAP_FLAT.get=function(){return 2},Pn.CAP_SQUARE.get=function(){return 3},Pn.JOIN_ROUND.get=function(){return 1},Pn.JOIN_MITRE.get=function(){return 2},Pn.JOIN_BEVEL.get=function(){return 3},Pn.DEFAULT_QUADRANT_SEGMENTS.get=function(){return 8},Pn.DEFAULT_MITRE_LIMIT.get=function(){return 5},Pn.DEFAULT_SIMPLIFY_FACTOR.get=function(){return.01},Object.defineProperties(En,Pn);var Cn=function(e){this._distanceTol=null,this._isDeleted=null,this._angleOrientation=ae.COUNTERCLOCKWISE,this._inputLine=e||null},An={INIT:{configurable:!0},DELETE:{configurable:!0},KEEP:{configurable:!0},NUM_PTS_TO_CHECK:{configurable:!0}};Cn.prototype.isDeletable=function(e,t,n,r){var i=this._inputLine[e],o=this._inputLine[t],s=this._inputLine[n];return!!this.isConcave(i,o,s)&&!!this.isShallow(i,o,s,r)&&this.isShallowSampled(i,o,e,n,r)},Cn.prototype.deleteShallowConcavities=function(){for(var e=1,t=this.findNextNonDeletedIndex(e),n=this.findNextNonDeletedIndex(t),r=!1;n<this._inputLine.length;){var i=!1;this.isDeletable(e,t,n,this._distanceTol)&&(this._isDeleted[t]=Cn.DELETE,i=!0,r=!0),e=i?n:t,t=this.findNextNonDeletedIndex(e),n=this.findNextNonDeletedIndex(t)}return r},Cn.prototype.isShallowConcavity=function(e,t,n,r){return ae.computeOrientation(e,t,n)===this._angleOrientation&&ae.distancePointLine(t,e,n)<r},Cn.prototype.isShallowSampled=function(e,t,n,r,i){var o=Math.trunc((r-n)/Cn.NUM_PTS_TO_CHECK);o<=0&&(o=1);for(var s=n;s<r;s+=o)if(!this.isShallow(e,t,this._inputLine[s],i))return!1;return!0},Cn.prototype.isConcave=function(e,t,n){return ae.computeOrientation(e,t,n)===this._angleOrientation},Cn.prototype.simplify=function(e){this._distanceTol=Math.abs(e),e<0&&(this._angleOrientation=ae.CLOCKWISE),this._isDeleted=new Array(this._inputLine.length).fill(null);var t=!1;do{t=this.deleteShallowConcavities()}while(t);return this.collapseLine()},Cn.prototype.findNextNonDeletedIndex=function(e){for(var t=e+1;t<this._inputLine.length&&this._isDeleted[t]===Cn.DELETE;)t++;return t},Cn.prototype.isShallow=function(e,t,n,r){return ae.distancePointLine(t,e,n)<r},Cn.prototype.collapseLine=function(){for(var e=new Pe,t=0;t<this._inputLine.length;t++)this._isDeleted[t]!==Cn.DELETE&&e.add(this._inputLine[t]);return e.toCoordinateArray()},Cn.prototype.interfaces_=function(){return[]},Cn.prototype.getClass=function(){return Cn},Cn.simplify=function(e,t){return new Cn(e).simplify(t)},An.INIT.get=function(){return 0},An.DELETE.get=function(){return 1},An.KEEP.get=function(){return 1},An.NUM_PTS_TO_CHECK.get=function(){return 10},Object.defineProperties(Cn,An);var kn=function(){this._ptList=null,this._precisionModel=null,this._minimimVertexDistance=0,this._ptList=new we},jn={COORDINATE_ARRAY_TYPE:{configurable:!0}};kn.prototype.getCoordinates=function(){return this._ptList.toArray(kn.COORDINATE_ARRAY_TYPE)},kn.prototype.setPrecisionModel=function(e){this._precisionModel=e},kn.prototype.addPt=function(e){var t=new E(e);if(this._precisionModel.makePrecise(t),this.isRedundant(t))return null;this._ptList.add(t)},kn.prototype.revere=function(){},kn.prototype.addPts=function(e,t){if(t)for(var n=0;n<e.length;n++)this.addPt(e[n]);else for(var r=e.length-1;r>=0;r--)this.addPt(e[r])},kn.prototype.isRedundant=function(e){if(this._ptList.size()<1)return!1;var t=this._ptList.get(this._ptList.size()-1);return e.distance(t)<this._minimimVertexDistance},kn.prototype.toString=function(){return(new yt).createLineString(this.getCoordinates()).toString()},kn.prototype.closeRing=function(){if(this._ptList.size()<1)return null;var e=new E(this._ptList.get(0)),t=this._ptList.get(this._ptList.size()-1);if(e.equals(t))return null;this._ptList.add(e)},kn.prototype.setMinimumVertexDistance=function(e){this._minimimVertexDistance=e},kn.prototype.interfaces_=function(){return[]},kn.prototype.getClass=function(){return kn},jn.COORDINATE_ARRAY_TYPE.get=function(){return new Array(0).fill(null)},Object.defineProperties(kn,jn);var In=function(){},Gn={PI_TIMES_2:{configurable:!0},PI_OVER_2:{configurable:!0},PI_OVER_4:{configurable:!0},COUNTERCLOCKWISE:{configurable:!0},CLOCKWISE:{configurable:!0},NONE:{configurable:!0}};In.prototype.interfaces_=function(){return[]},In.prototype.getClass=function(){return In},In.toDegrees=function(e){return 180*e/Math.PI},In.normalize=function(e){for(;e>Math.PI;)e-=In.PI_TIMES_2;for(;e<=-Math.PI;)e+=In.PI_TIMES_2;return e},In.angle=function(){if(1===arguments.length){var e=arguments[0];return Math.atan2(e.y,e.x)}if(2===arguments.length){var t=arguments[0],n=arguments[1],r=n.x-t.x,i=n.y-t.y;return Math.atan2(i,r)}},In.isAcute=function(e,t,n){var r=e.x-t.x,i=e.y-t.y;return r*(n.x-t.x)+i*(n.y-t.y)>0},In.isObtuse=function(e,t,n){var r=e.x-t.x,i=e.y-t.y;return r*(n.x-t.x)+i*(n.y-t.y)<0},In.interiorAngle=function(e,t,n){var r=In.angle(t,e),i=In.angle(t,n);return Math.abs(i-r)},In.normalizePositive=function(e){if(e<0){for(;e<0;)e+=In.PI_TIMES_2;e>=In.PI_TIMES_2&&(e=0)}else{for(;e>=In.PI_TIMES_2;)e-=In.PI_TIMES_2;e<0&&(e=0)}return e},In.angleBetween=function(e,t,n){var r=In.angle(t,e),i=In.angle(t,n);return In.diff(r,i)},In.diff=function(e,t){var n=null;return(n=e<t?t-e:e-t)>Math.PI&&(n=2*Math.PI-n),n},In.toRadians=function(e){return e*Math.PI/180},In.getTurn=function(e,t){var n=Math.sin(t-e);return n>0?In.COUNTERCLOCKWISE:n<0?In.CLOCKWISE:In.NONE},In.angleBetweenOriented=function(e,t,n){var r=In.angle(t,e),i=In.angle(t,n)-r;return i<=-Math.PI?i+In.PI_TIMES_2:i>Math.PI?i-In.PI_TIMES_2:i},Gn.PI_TIMES_2.get=function(){return 2*Math.PI},Gn.PI_OVER_2.get=function(){return Math.PI/2},Gn.PI_OVER_4.get=function(){return Math.PI/4},Gn.COUNTERCLOCKWISE.get=function(){return ae.COUNTERCLOCKWISE},Gn.CLOCKWISE.get=function(){return ae.CLOCKWISE},Gn.NONE.get=function(){return ae.COLLINEAR},Object.defineProperties(In,Gn);var Tn=function e(){this._maxCurveSegmentError=0,this._filletAngleQuantum=null,this._closingSegLengthFactor=1,this._segList=null,this._distance=0,this._precisionModel=null,this._bufParams=null,this._li=null,this._s0=null,this._s1=null,this._s2=null,this._seg0=new gn,this._seg1=new gn,this._offset0=new gn,this._offset1=new gn,this._side=0,this._hasNarrowConcaveAngle=!1;var t=arguments[0],n=arguments[1],r=arguments[2];this._precisionModel=t,this._bufParams=n,this._li=new ie,this._filletAngleQuantum=Math.PI/2/n.getQuadrantSegments(),n.getQuadrantSegments()>=8&&n.getJoinStyle()===En.JOIN_ROUND&&(this._closingSegLengthFactor=e.MAX_CLOSING_SEG_LEN_FACTOR),this.init(r)},Mn={OFFSET_SEGMENT_SEPARATION_FACTOR:{configurable:!0},INSIDE_TURN_VERTEX_SNAP_DISTANCE_FACTOR:{configurable:!0},CURVE_VERTEX_SNAP_DISTANCE_FACTOR:{configurable:!0},MAX_CLOSING_SEG_LEN_FACTOR:{configurable:!0}};Tn.prototype.addNextSegment=function(e,t){if(this._s0=this._s1,this._s1=this._s2,this._s2=e,this._seg0.setCoordinates(this._s0,this._s1),this.computeOffsetSegment(this._seg0,this._side,this._distance,this._offset0),this._seg1.setCoordinates(this._s1,this._s2),this.computeOffsetSegment(this._seg1,this._side,this._distance,this._offset1),this._s1.equals(this._s2))return null;var n=ae.computeOrientation(this._s0,this._s1,this._s2),r=n===ae.CLOCKWISE&&this._side===Pt.LEFT||n===ae.COUNTERCLOCKWISE&&this._side===Pt.RIGHT;0===n?this.addCollinear(t):r?this.addOutsideTurn(n,t):this.addInsideTurn(n,t)},Tn.prototype.addLineEndCap=function(e,t){var n=new gn(e,t),r=new gn;this.computeOffsetSegment(n,Pt.LEFT,this._distance,r);var i=new gn;this.computeOffsetSegment(n,Pt.RIGHT,this._distance,i);var o=t.x-e.x,s=t.y-e.y,a=Math.atan2(s,o);switch(this._bufParams.getEndCapStyle()){case En.CAP_ROUND:this._segList.addPt(r.p1),this.addFilletArc(t,a+Math.PI/2,a-Math.PI/2,ae.CLOCKWISE,this._distance),this._segList.addPt(i.p1);break;case En.CAP_FLAT:this._segList.addPt(r.p1),this._segList.addPt(i.p1);break;case En.CAP_SQUARE:var l=new E;l.x=Math.abs(this._distance)*Math.cos(a),l.y=Math.abs(this._distance)*Math.sin(a);var c=new E(r.p1.x+l.x,r.p1.y+l.y),u=new E(i.p1.x+l.x,i.p1.y+l.y);this._segList.addPt(c),this._segList.addPt(u)}},Tn.prototype.getCoordinates=function(){return this._segList.getCoordinates()},Tn.prototype.addMitreJoin=function(e,t,n,r){var i=!0,o=null;try{o=H.intersection(t.p0,t.p1,n.p0,n.p1),(r<=0?1:o.distance(e)/Math.abs(r))>this._bufParams.getMitreLimit()&&(i=!1)}catch(e){if(!(e instanceof U))throw e;o=new E(0,0),i=!1}i?this._segList.addPt(o):this.addLimitedMitreJoin(t,n,r,this._bufParams.getMitreLimit())},Tn.prototype.addFilletCorner=function(e,t,n,r,i){var o=t.x-e.x,s=t.y-e.y,a=Math.atan2(s,o),l=n.x-e.x,c=n.y-e.y,u=Math.atan2(c,l);r===ae.CLOCKWISE?a<=u&&(a+=2*Math.PI):a>=u&&(a-=2*Math.PI),this._segList.addPt(t),this.addFilletArc(e,a,u,r,i),this._segList.addPt(n)},Tn.prototype.addOutsideTurn=function(e,t){if(this._offset0.p1.distance(this._offset1.p0)<this._distance*Tn.OFFSET_SEGMENT_SEPARATION_FACTOR)return this._segList.addPt(this._offset0.p1),null;this._bufParams.getJoinStyle()===En.JOIN_MITRE?this.addMitreJoin(this._s1,this._offset0,this._offset1,this._distance):this._bufParams.getJoinStyle()===En.JOIN_BEVEL?this.addBevelJoin(this._offset0,this._offset1):(t&&this._segList.addPt(this._offset0.p1),this.addFilletCorner(this._s1,this._offset0.p1,this._offset1.p0,e,this._distance),this._segList.addPt(this._offset1.p0))},Tn.prototype.createSquare=function(e){this._segList.addPt(new E(e.x+this._distance,e.y+this._distance)),this._segList.addPt(new E(e.x+this._distance,e.y-this._distance)),this._segList.addPt(new E(e.x-this._distance,e.y-this._distance)),this._segList.addPt(new E(e.x-this._distance,e.y+this._distance)),this._segList.closeRing()},Tn.prototype.addSegments=function(e,t){this._segList.addPts(e,t)},Tn.prototype.addFirstSegment=function(){this._segList.addPt(this._offset1.p0)},Tn.prototype.addLastSegment=function(){this._segList.addPt(this._offset1.p1)},Tn.prototype.initSideSegments=function(e,t,n){this._s1=e,this._s2=t,this._side=n,this._seg1.setCoordinates(e,t),this.computeOffsetSegment(this._seg1,n,this._distance,this._offset1)},Tn.prototype.addLimitedMitreJoin=function(e,t,n,r){var i=this._seg0.p1,o=In.angle(i,this._seg0.p0),s=In.angleBetweenOriented(this._seg0.p0,i,this._seg1.p1)/2,a=In.normalize(o+s),l=In.normalize(a+Math.PI),c=r*n,u=n-c*Math.abs(Math.sin(s)),d=i.x+c*Math.cos(l),h=i.y+c*Math.sin(l),p=new E(d,h),f=new gn(i,p),g=f.pointAlongOffset(1,u),m=f.pointAlongOffset(1,-u);this._side===Pt.LEFT?(this._segList.addPt(g),this._segList.addPt(m)):(this._segList.addPt(m),this._segList.addPt(g))},Tn.prototype.computeOffsetSegment=function(e,t,n,r){var i=t===Pt.LEFT?1:-1,o=e.p1.x-e.p0.x,s=e.p1.y-e.p0.y,a=Math.sqrt(o*o+s*s),l=i*n*o/a,c=i*n*s/a;r.p0.x=e.p0.x-c,r.p0.y=e.p0.y+l,r.p1.x=e.p1.x-c,r.p1.y=e.p1.y+l},Tn.prototype.addFilletArc=function(e,t,n,r,i){var o=r===ae.CLOCKWISE?-1:1,s=Math.abs(t-n),a=Math.trunc(s/this._filletAngleQuantum+.5);if(a<1)return null;for(var l=s/a,c=0,u=new E;c<s;){var d=t+o*c;u.x=e.x+i*Math.cos(d),u.y=e.y+i*Math.sin(d),this._segList.addPt(u),c+=l}},Tn.prototype.addInsideTurn=function(e,t){if(this._li.computeIntersection(this._offset0.p0,this._offset0.p1,this._offset1.p0,this._offset1.p1),this._li.hasIntersection())this._segList.addPt(this._li.getIntersection(0));else if(this._hasNarrowConcaveAngle=!0,this._offset0.p1.distance(this._offset1.p0)<this._distance*Tn.INSIDE_TURN_VERTEX_SNAP_DISTANCE_FACTOR)this._segList.addPt(this._offset0.p1);else{if(this._segList.addPt(this._offset0.p1),this._closingSegLengthFactor>0){var n=new E((this._closingSegLengthFactor*this._offset0.p1.x+this._s1.x)/(this._closingSegLengthFactor+1),(this._closingSegLengthFactor*this._offset0.p1.y+this._s1.y)/(this._closingSegLengthFactor+1));this._segList.addPt(n);var r=new E((this._closingSegLengthFactor*this._offset1.p0.x+this._s1.x)/(this._closingSegLengthFactor+1),(this._closingSegLengthFactor*this._offset1.p0.y+this._s1.y)/(this._closingSegLengthFactor+1));this._segList.addPt(r)}else this._segList.addPt(this._s1);this._segList.addPt(this._offset1.p0)}},Tn.prototype.createCircle=function(e){var t=new E(e.x+this._distance,e.y);this._segList.addPt(t),this.addFilletArc(e,0,2*Math.PI,-1,this._distance),this._segList.closeRing()},Tn.prototype.addBevelJoin=function(e,t){this._segList.addPt(e.p1),this._segList.addPt(t.p0)},Tn.prototype.init=function(e){this._distance=e,this._maxCurveSegmentError=e*(1-Math.cos(this._filletAngleQuantum/2)),this._segList=new kn,this._segList.setPrecisionModel(this._precisionModel),this._segList.setMinimumVertexDistance(e*Tn.CURVE_VERTEX_SNAP_DISTANCE_FACTOR)},Tn.prototype.addCollinear=function(e){this._li.computeIntersection(this._s0,this._s1,this._s1,this._s2),this._li.getIntersectionNum()>=2&&(this._bufParams.getJoinStyle()===En.JOIN_BEVEL||this._bufParams.getJoinStyle()===En.JOIN_MITRE?(e&&this._segList.addPt(this._offset0.p1),this._segList.addPt(this._offset1.p0)):this.addFilletCorner(this._s1,this._offset0.p1,this._offset1.p0,ae.CLOCKWISE,this._distance))},Tn.prototype.closeRing=function(){this._segList.closeRing()},Tn.prototype.hasNarrowConcaveAngle=function(){return this._hasNarrowConcaveAngle},Tn.prototype.interfaces_=function(){return[]},Tn.prototype.getClass=function(){return Tn},Mn.OFFSET_SEGMENT_SEPARATION_FACTOR.get=function(){return.001},Mn.INSIDE_TURN_VERTEX_SNAP_DISTANCE_FACTOR.get=function(){return.001},Mn.CURVE_VERTEX_SNAP_DISTANCE_FACTOR.get=function(){return 1e-6},Mn.MAX_CLOSING_SEG_LEN_FACTOR.get=function(){return 80},Object.defineProperties(Tn,Mn);var On=function(){this._distance=0,this._precisionModel=null,this._bufParams=null;var e=arguments[0],t=arguments[1];this._precisionModel=e,this._bufParams=t};On.prototype.getOffsetCurve=function(e,t){if(this._distance=t,0===t)return null;var n=t<0,r=Math.abs(t),i=this.getSegGen(r);e.length<=1?this.computePointCurve(e[0],i):this.computeOffsetCurve(e,n,i);var o=i.getCoordinates();return n&&Ce.reverse(o),o},On.prototype.computeSingleSidedBufferCurve=function(e,t,n){var r=this.simplifyTolerance(this._distance);if(t){n.addSegments(e,!0);var i=Cn.simplify(e,-r),o=i.length-1;n.initSideSegments(i[o],i[o-1],Pt.LEFT),n.addFirstSegment();for(var s=o-2;s>=0;s--)n.addNextSegment(i[s],!0)}else{n.addSegments(e,!1);var a=Cn.simplify(e,r),l=a.length-1;n.initSideSegments(a[0],a[1],Pt.LEFT),n.addFirstSegment();for(var c=2;c<=l;c++)n.addNextSegment(a[c],!0)}n.addLastSegment(),n.closeRing()},On.prototype.computeRingBufferCurve=function(e,t,n){var r=this.simplifyTolerance(this._distance);t===Pt.RIGHT&&(r=-r);var i=Cn.simplify(e,r),o=i.length-1;n.initSideSegments(i[o-1],i[0],t);for(var s=1;s<=o;s++){var a=1!==s;n.addNextSegment(i[s],a)}n.closeRing()},On.prototype.computeLineBufferCurve=function(e,t){var n=this.simplifyTolerance(this._distance),r=Cn.simplify(e,n),i=r.length-1;t.initSideSegments(r[0],r[1],Pt.LEFT);for(var o=2;o<=i;o++)t.addNextSegment(r[o],!0);t.addLastSegment(),t.addLineEndCap(r[i-1],r[i]);var s=Cn.simplify(e,-n),a=s.length-1;t.initSideSegments(s[a],s[a-1],Pt.LEFT);for(var l=a-2;l>=0;l--)t.addNextSegment(s[l],!0);t.addLastSegment(),t.addLineEndCap(s[1],s[0]),t.closeRing()},On.prototype.computePointCurve=function(e,t){switch(this._bufParams.getEndCapStyle()){case En.CAP_ROUND:t.createCircle(e);break;case En.CAP_SQUARE:t.createSquare(e)}},On.prototype.getLineCurve=function(e,t){if(this._distance=t,t<0&&!this._bufParams.isSingleSided())return null;if(0===t)return null;var n=Math.abs(t),r=this.getSegGen(n);if(e.length<=1)this.computePointCurve(e[0],r);else if(this._bufParams.isSingleSided()){var i=t<0;this.computeSingleSidedBufferCurve(e,i,r)}else this.computeLineBufferCurve(e,r);return r.getCoordinates()},On.prototype.getBufferParameters=function(){return this._bufParams},On.prototype.simplifyTolerance=function(e){return e*this._bufParams.getSimplifyFactor()},On.prototype.getRingCurve=function(e,t,n){if(this._distance=n,e.length<=2)return this.getLineCurve(e,n);if(0===n)return On.copyCoordinates(e);var r=this.getSegGen(n);return this.computeRingBufferCurve(e,t,r),r.getCoordinates()},On.prototype.computeOffsetCurve=function(e,t,n){var r=this.simplifyTolerance(this._distance);if(t){var i=Cn.simplify(e,-r),o=i.length-1;n.initSideSegments(i[o],i[o-1],Pt.LEFT),n.addFirstSegment();for(var s=o-2;s>=0;s--)n.addNextSegment(i[s],!0)}else{var a=Cn.simplify(e,r),l=a.length-1;n.initSideSegments(a[0],a[1],Pt.LEFT),n.addFirstSegment();for(var c=2;c<=l;c++)n.addNextSegment(a[c],!0)}n.addLastSegment()},On.prototype.getSegGen=function(e){return new Tn(this._precisionModel,this._bufParams,e)},On.prototype.interfaces_=function(){return[]},On.prototype.getClass=function(){return On},On.copyCoordinates=function(e){for(var t=new Array(e.length).fill(null),n=0;n<t.length;n++)t[n]=new E(e[n]);return t};var Rn=function(){this._subgraphs=null,this._seg=new gn,this._cga=new ae;var e=arguments[0];this._subgraphs=e},Dn={DepthSegment:{configurable:!0}};Rn.prototype.findStabbedSegments=function(){if(1===arguments.length){for(var e=arguments[0],t=new we,n=this._subgraphs.iterator();n.hasNext();){var r=n.next(),i=r.getEnvelope();e.y<i.getMinY()||e.y>i.getMaxY()||this.findStabbedSegments(e,r.getDirectedEdges(),t)}return t}if(3===arguments.length)if(I(arguments[2],Se)&&arguments[0]instanceof E&&arguments[1]instanceof Bt){for(var o=arguments[0],s=arguments[1],a=arguments[2],l=s.getEdge().getCoordinates(),c=0;c<l.length-1;c++)if(this._seg.p0=l[c],this._seg.p1=l[c+1],this._seg.p0.y>this._seg.p1.y&&this._seg.reverse(),!(Math.max(this._seg.p0.x,this._seg.p1.x)<o.x)&&!(this._seg.isHorizontal()||o.y<this._seg.p0.y||o.y>this._seg.p1.y||ae.computeOrientation(this._seg.p0,this._seg.p1,o)===ae.RIGHT)){var u=s.getDepth(Pt.LEFT);this._seg.p0.equals(l[c])||(u=s.getDepth(Pt.RIGHT));var d=new Nn(this._seg,u);a.add(d)}}else if(I(arguments[2],Se)&&arguments[0]instanceof E&&I(arguments[1],Se))for(var h=arguments[0],p=arguments[2],f=arguments[1].iterator();f.hasNext();){var g=f.next();g.isForward()&&this.findStabbedSegments(h,g,p)}},Rn.prototype.getDepth=function(e){var t=this.findStabbedSegments(e);return 0===t.size()?0:Qt.min(t)._leftDepth},Rn.prototype.interfaces_=function(){return[]},Rn.prototype.getClass=function(){return Rn},Dn.DepthSegment.get=function(){return Nn},Object.defineProperties(Rn,Dn);var Nn=function(){this._upwardSeg=null,this._leftDepth=null;var e=arguments[0],t=arguments[1];this._upwardSeg=new gn(e),this._leftDepth=t};Nn.prototype.compareTo=function(e){var t=e;if(this._upwardSeg.minX()>=t._upwardSeg.maxX())return 1;if(this._upwardSeg.maxX()<=t._upwardSeg.minX())return-1;var n=this._upwardSeg.orientationIndex(t._upwardSeg);return 0!==n||0!=(n=-1*t._upwardSeg.orientationIndex(this._upwardSeg))?n:this._upwardSeg.compareTo(t._upwardSeg)},Nn.prototype.compareX=function(e,t){var n=e.p0.compareTo(t.p0);return 0!==n?n:e.p1.compareTo(t.p1)},Nn.prototype.toString=function(){return this._upwardSeg.toString()},Nn.prototype.interfaces_=function(){return[x]},Nn.prototype.getClass=function(){return Nn};var Ln=function(e,t,n){this.p0=e||null,this.p1=t||null,this.p2=n||null};Ln.prototype.area=function(){return Ln.area(this.p0,this.p1,this.p2)},Ln.prototype.signedArea=function(){return Ln.signedArea(this.p0,this.p1,this.p2)},Ln.prototype.interpolateZ=function(e){if(null===e)throw new v("Supplied point is null.");return Ln.interpolateZ(e,this.p0,this.p1,this.p2)},Ln.prototype.longestSideLength=function(){return Ln.longestSideLength(this.p0,this.p1,this.p2)},Ln.prototype.isAcute=function(){return Ln.isAcute(this.p0,this.p1,this.p2)},Ln.prototype.circumcentre=function(){return Ln.circumcentre(this.p0,this.p1,this.p2)},Ln.prototype.area3D=function(){return Ln.area3D(this.p0,this.p1,this.p2)},Ln.prototype.centroid=function(){return Ln.centroid(this.p0,this.p1,this.p2)},Ln.prototype.inCentre=function(){return Ln.inCentre(this.p0,this.p1,this.p2)},Ln.prototype.interfaces_=function(){return[]},Ln.prototype.getClass=function(){return Ln},Ln.area=function(e,t,n){return Math.abs(((n.x-e.x)*(t.y-e.y)-(t.x-e.x)*(n.y-e.y))/2)},Ln.signedArea=function(e,t,n){return((n.x-e.x)*(t.y-e.y)-(t.x-e.x)*(n.y-e.y))/2},Ln.det=function(e,t,n,r){return e*r-t*n},Ln.interpolateZ=function(e,t,n,r){var i=t.x,o=t.y,s=n.x-i,a=r.x-i,l=n.y-o,c=r.y-o,u=s*c-a*l,d=e.x-i,h=e.y-o,p=(c*d-a*h)/u,f=(-l*d+s*h)/u;return t.z+p*(n.z-t.z)+f*(r.z-t.z)},Ln.longestSideLength=function(e,t,n){var r=e.distance(t),i=t.distance(n),o=n.distance(e),s=r;return i>s&&(s=i),o>s&&(s=o),s},Ln.isAcute=function(e,t,n){return!!In.isAcute(e,t,n)&&!!In.isAcute(t,n,e)&&!!In.isAcute(n,e,t)},Ln.circumcentre=function(e,t,n){var r=n.x,i=n.y,o=e.x-r,s=e.y-i,a=t.x-r,l=t.y-i,c=2*Ln.det(o,s,a,l),u=Ln.det(s,o*o+s*s,l,a*a+l*l),d=Ln.det(o,o*o+s*s,a,a*a+l*l);return new E(r-u/c,i+d/c)},Ln.perpendicularBisector=function(e,t){var n=t.x-e.x,r=t.y-e.y,i=new H(e.x+n/2,e.y+r/2,1),o=new H(e.x-r+n/2,e.y+n+r/2,1);return new H(i,o)},Ln.angleBisector=function(e,t,n){var r=t.distance(e),i=r/(r+t.distance(n)),o=n.x-e.x,s=n.y-e.y;return new E(e.x+i*o,e.y+i*s)},Ln.area3D=function(e,t,n){var r=t.x-e.x,i=t.y-e.y,o=t.z-e.z,s=n.x-e.x,a=n.y-e.y,l=n.z-e.z,c=i*l-o*a,u=o*s-r*l,d=r*a-i*s,h=c*c+u*u+d*d;return Math.sqrt(h)/2},Ln.centroid=function(e,t,n){var r=(e.x+t.x+n.x)/3,i=(e.y+t.y+n.y)/3;return new E(r,i)},Ln.inCentre=function(e,t,n){var r=t.distance(n),i=e.distance(n),o=e.distance(t),s=r+i+o,a=(r*e.x+i*t.x+o*n.x)/s,l=(r*e.y+i*t.y+o*n.y)/s;return new E(a,l)};var Vn=function(){this._inputGeom=null,this._distance=null,this._curveBuilder=null,this._curveList=new we;var e=arguments[0],t=arguments[1],n=arguments[2];this._inputGeom=e,this._distance=t,this._curveBuilder=n};Vn.prototype.addPoint=function(e){if(this._distance<=0)return null;var t=e.getCoordinates(),n=this._curveBuilder.getLineCurve(t,this._distance);this.addCurve(n,k.EXTERIOR,k.INTERIOR)},Vn.prototype.addPolygon=function(e){var t=this._distance,n=Pt.LEFT;this._distance<0&&(t=-this._distance,n=Pt.RIGHT);var r=e.getExteriorRing(),i=Ce.removeRepeatedPoints(r.getCoordinates());if(this._distance<0&&this.isErodedCompletely(r,this._distance))return null;if(this._distance<=0&&i.length<3)return null;this.addPolygonRing(i,t,n,k.EXTERIOR,k.INTERIOR);for(var o=0;o<e.getNumInteriorRing();o++){var s=e.getInteriorRingN(o),a=Ce.removeRepeatedPoints(s.getCoordinates());this._distance>0&&this.isErodedCompletely(s,-this._distance)||this.addPolygonRing(a,t,Pt.opposite(n),k.INTERIOR,k.EXTERIOR)}},Vn.prototype.isTriangleErodedCompletely=function(e,t){var n=new Ln(e[0],e[1],e[2]),r=n.inCentre();return ae.distancePointLine(r,n.p0,n.p1)<Math.abs(t)},Vn.prototype.addLineString=function(e){if(this._distance<=0&&!this._curveBuilder.getBufferParameters().isSingleSided())return null;var t=Ce.removeRepeatedPoints(e.getCoordinates()),n=this._curveBuilder.getLineCurve(t,this._distance);this.addCurve(n,k.EXTERIOR,k.INTERIOR)},Vn.prototype.addCurve=function(e,t,n){if(null===e||e.length<2)return null;var r=new fn(e,new Tt(0,k.BOUNDARY,t,n));this._curveList.add(r)},Vn.prototype.getCurves=function(){return this.add(this._inputGeom),this._curveList},Vn.prototype.addPolygonRing=function(e,t,n,r,i){if(0===t&&e.length<tt.MINIMUM_VALID_SIZE)return null;var o=r,s=i;e.length>=tt.MINIMUM_VALID_SIZE&&ae.isCCW(e)&&(o=i,s=r,n=Pt.opposite(n));var a=this._curveBuilder.getRingCurve(e,n,t);this.addCurve(a,o,s)},Vn.prototype.add=function(e){if(e.isEmpty())return null;e instanceof Qe?this.addPolygon(e):e instanceof Ke?this.addLineString(e):e instanceof $e?this.addPoint(e):(e instanceof et||e instanceof Ue||e instanceof nt||e instanceof Be)&&this.addCollection(e)},Vn.prototype.isErodedCompletely=function(e,t){var n=e.getCoordinates();if(n.length<4)return t<0;if(4===n.length)return this.isTriangleErodedCompletely(n,t);var r=e.getEnvelopeInternal(),i=Math.min(r.getHeight(),r.getWidth());return t<0&&2*Math.abs(t)>i},Vn.prototype.addCollection=function(e){for(var t=0;t<e.getNumGeometries();t++){var n=e.getGeometryN(t);this.add(n)}},Vn.prototype.interfaces_=function(){return[]},Vn.prototype.getClass=function(){return Vn};var Fn=function(){};Fn.prototype.locate=function(e){},Fn.prototype.interfaces_=function(){return[]},Fn.prototype.getClass=function(){return Fn};var zn=function(){this._parent=null,this._atStart=null,this._max=null,this._index=null,this._subcollectionIterator=null;var e=arguments[0];this._parent=e,this._atStart=!0,this._index=0,this._max=e.getNumGeometries()};zn.prototype.next=function(){if(this._atStart)return this._atStart=!1,zn.isAtomic(this._parent)&&this._index++,this._parent;if(null!==this._subcollectionIterator){if(this._subcollectionIterator.hasNext())return this._subcollectionIterator.next();this._subcollectionIterator=null}if(this._index>=this._max)throw new r;var e=this._parent.getGeometryN(this._index++);return e instanceof Be?(this._subcollectionIterator=new zn(e),this._subcollectionIterator.next()):e},zn.prototype.remove=function(){throw new Error(this.getClass().getName())},zn.prototype.hasNext=function(){if(this._atStart)return!0;if(null!==this._subcollectionIterator){if(this._subcollectionIterator.hasNext())return!0;this._subcollectionIterator=null}return!(this._index>=this._max)},zn.prototype.interfaces_=function(){return[xe]},zn.prototype.getClass=function(){return zn},zn.isAtomic=function(e){return!(e instanceof Be)};var Bn=function(){this._geom=null;var e=arguments[0];this._geom=e};Bn.prototype.locate=function(e){return Bn.locate(e,this._geom)},Bn.prototype.interfaces_=function(){return[Fn]},Bn.prototype.getClass=function(){return Bn},Bn.isPointInRing=function(e,t){return!!t.getEnvelopeInternal().intersects(e)&&ae.isPointInRing(e,t.getCoordinates())},Bn.containsPointInPolygon=function(e,t){if(t.isEmpty())return!1;var n=t.getExteriorRing();if(!Bn.isPointInRing(e,n))return!1;for(var r=0;r<t.getNumInteriorRing();r++){var i=t.getInteriorRingN(r);if(Bn.isPointInRing(e,i))return!1}return!0},Bn.containsPoint=function(e,t){if(t instanceof Qe)return Bn.containsPointInPolygon(e,t);if(t instanceof Be)for(var n=new zn(t);n.hasNext();){var r=n.next();if(r!==t&&Bn.containsPoint(e,r))return!0}return!1},Bn.locate=function(e,t){return t.isEmpty()?k.EXTERIOR:Bn.containsPoint(e,t)?k.INTERIOR:k.EXTERIOR};var Un=function(){this._edgeMap=new d,this._edgeList=null,this._ptInAreaLocation=[k.NONE,k.NONE]};Un.prototype.getNextCW=function(e){this.getEdges();var t=this._edgeList.indexOf(e),n=t-1;return 0===t&&(n=this._edgeList.size()-1),this._edgeList.get(n)},Un.prototype.propagateSideLabels=function(e){for(var t=k.NONE,n=this.iterator();n.hasNext();){var r=n.next().getLabel();r.isArea(e)&&r.getLocation(e,Pt.LEFT)!==k.NONE&&(t=r.getLocation(e,Pt.LEFT))}if(t===k.NONE)return null;for(var i=t,o=this.iterator();o.hasNext();){var s=o.next(),a=s.getLabel();if(a.getLocation(e,Pt.ON)===k.NONE&&a.setLocation(e,Pt.ON,i),a.isArea(e)){var l=a.getLocation(e,Pt.LEFT),c=a.getLocation(e,Pt.RIGHT);if(c!==k.NONE){if(c!==i)throw new kt("side location conflict",s.getCoordinate());l===k.NONE&&te.shouldNeverReachHere("found single null side (at "+s.getCoordinate()+")"),i=l}else te.isTrue(a.getLocation(e,Pt.LEFT)===k.NONE,"found single null side"),a.setLocation(e,Pt.RIGHT,i),a.setLocation(e,Pt.LEFT,i)}}},Un.prototype.getCoordinate=function(){var e=this.iterator();return e.hasNext()?e.next().getCoordinate():null},Un.prototype.print=function(e){W.out.println("EdgeEndStar:   "+this.getCoordinate());for(var t=this.iterator();t.hasNext();)t.next().print(e)},Un.prototype.isAreaLabelsConsistent=function(e){return this.computeEdgeEndLabels(e.getBoundaryNodeRule()),this.checkAreaLabelsConsistent(0)},Un.prototype.checkAreaLabelsConsistent=function(e){var t=this.getEdges();if(t.size()<=0)return!0;var n=t.size()-1,r=t.get(n).getLabel().getLocation(e,Pt.LEFT);te.isTrue(r!==k.NONE,"Found unlabelled area edge");for(var i=r,o=this.iterator();o.hasNext();){var s=o.next().getLabel();te.isTrue(s.isArea(e),"Found non-area edge");var a=s.getLocation(e,Pt.LEFT),l=s.getLocation(e,Pt.RIGHT);if(a===l)return!1;if(l!==i)return!1;i=a}return!0},Un.prototype.findIndex=function(e){this.iterator();for(var t=0;t<this._edgeList.size();t++)if(this._edgeList.get(t)===e)return t;return-1},Un.prototype.iterator=function(){return this.getEdges().iterator()},Un.prototype.getEdges=function(){return null===this._edgeList&&(this._edgeList=new we(this._edgeMap.values())),this._edgeList},Un.prototype.getLocation=function(e,t,n){return this._ptInAreaLocation[e]===k.NONE&&(this._ptInAreaLocation[e]=Bn.locate(t,n[e].getGeometry())),this._ptInAreaLocation[e]},Un.prototype.toString=function(){var e=new M;e.append("EdgeEndStar:   "+this.getCoordinate()),e.append("\n");for(var t=this.iterator();t.hasNext();){var n=t.next();e.append(n),e.append("\n")}return e.toString()},Un.prototype.computeEdgeEndLabels=function(e){for(var t=this.iterator();t.hasNext();)t.next().computeLabel(e)},Un.prototype.computeLabelling=function(e){this.computeEdgeEndLabels(e[0].getBoundaryNodeRule()),this.propagateSideLabels(0),this.propagateSideLabels(1);for(var t=[!1,!1],n=this.iterator();n.hasNext();)for(var r=n.next().getLabel(),i=0;i<2;i++)r.isLine(i)&&r.getLocation(i)===k.BOUNDARY&&(t[i]=!0);for(var o=this.iterator();o.hasNext();)for(var s=o.next(),a=s.getLabel(),l=0;l<2;l++)if(a.isAnyNull(l)){var c=k.NONE;if(t[l])c=k.EXTERIOR;else{var u=s.getCoordinate();c=this.getLocation(l,u,e)}a.setAllLocationsIfNull(l,c)}},Un.prototype.getDegree=function(){return this._edgeMap.size()},Un.prototype.insertEdgeEnd=function(e,t){this._edgeMap.put(e,t),this._edgeList=null},Un.prototype.interfaces_=function(){return[]},Un.prototype.getClass=function(){return Un};var Wn=function(e){function t(){e.call(this),this._resultAreaEdgeList=null,this._label=null,this._SCANNING_FOR_INCOMING=1,this._LINKING_TO_OUTGOING=2}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.linkResultDirectedEdges=function(){this.getResultAreaEdges();for(var e=null,t=null,n=this._SCANNING_FOR_INCOMING,r=0;r<this._resultAreaEdgeList.size();r++){var i=this._resultAreaEdgeList.get(r),o=i.getSym();if(i.getLabel().isArea())switch(null===e&&i.isInResult()&&(e=i),n){case this._SCANNING_FOR_INCOMING:if(!o.isInResult())continue;t=o,n=this._LINKING_TO_OUTGOING;break;case this._LINKING_TO_OUTGOING:if(!i.isInResult())continue;t.setNext(i),n=this._SCANNING_FOR_INCOMING}}if(n===this._LINKING_TO_OUTGOING){if(null===e)throw new kt("no outgoing dirEdge found",this.getCoordinate());te.isTrue(e.isInResult(),"unable to link last incoming dirEdge"),t.setNext(e)}},t.prototype.insert=function(e){var t=e;this.insertEdgeEnd(t,t)},t.prototype.getRightmostEdge=function(){var e=this.getEdges(),t=e.size();if(t<1)return null;var n=e.get(0);if(1===t)return n;var r=e.get(t-1),i=n.getQuadrant(),o=r.getQuadrant();return Vt.isNorthern(i)&&Vt.isNorthern(o)?n:Vt.isNorthern(i)||Vt.isNorthern(o)?0!==n.getDy()?n:0!==r.getDy()?r:(te.shouldNeverReachHere("found two horizontal edges incident on node"),null):r},t.prototype.print=function(e){W.out.println("DirectedEdgeStar: "+this.getCoordinate());for(var t=this.iterator();t.hasNext();){var n=t.next();e.print("out "),n.print(e),e.println(),e.print("in "),n.getSym().print(e),e.println()}},t.prototype.getResultAreaEdges=function(){if(null!==this._resultAreaEdgeList)return this._resultAreaEdgeList;this._resultAreaEdgeList=new we;for(var e=this.iterator();e.hasNext();){var t=e.next();(t.isInResult()||t.getSym().isInResult())&&this._resultAreaEdgeList.add(t)}return this._resultAreaEdgeList},t.prototype.updateLabelling=function(e){for(var t=this.iterator();t.hasNext();){var n=t.next().getLabel();n.setAllLocationsIfNull(0,e.getLocation(0)),n.setAllLocationsIfNull(1,e.getLocation(1))}},t.prototype.linkAllDirectedEdges=function(){this.getEdges();for(var e=null,t=null,n=this._edgeList.size()-1;n>=0;n--){var r=this._edgeList.get(n),i=r.getSym();null===t&&(t=i),null!==e&&i.setNext(e),e=r}t.setNext(e)},t.prototype.computeDepths=function(){if(1===arguments.length){var e=arguments[0],t=this.findIndex(e),n=e.getDepth(Pt.LEFT),r=e.getDepth(Pt.RIGHT),i=this.computeDepths(t+1,this._edgeList.size(),n);if(this.computeDepths(0,t,i)!==r)throw new kt("depth mismatch at "+e.getCoordinate())}else if(3===arguments.length){for(var o=arguments[1],s=arguments[2],a=arguments[0];a<o;a++){var l=this._edgeList.get(a);l.setEdgeDepths(Pt.RIGHT,s),s=l.getDepth(Pt.LEFT)}return s}},t.prototype.mergeSymLabels=function(){for(var e=this.iterator();e.hasNext();){var t=e.next();t.getLabel().merge(t.getSym().getLabel())}},t.prototype.linkMinimalDirectedEdges=function(e){for(var t=null,n=null,r=this._SCANNING_FOR_INCOMING,i=this._resultAreaEdgeList.size()-1;i>=0;i--){var o=this._resultAreaEdgeList.get(i),s=o.getSym();switch(null===t&&o.getEdgeRing()===e&&(t=o),r){case this._SCANNING_FOR_INCOMING:if(s.getEdgeRing()!==e)continue;n=s,r=this._LINKING_TO_OUTGOING;break;case this._LINKING_TO_OUTGOING:if(o.getEdgeRing()!==e)continue;n.setNextMin(o),r=this._SCANNING_FOR_INCOMING}}r===this._LINKING_TO_OUTGOING&&(te.isTrue(null!==t,"found null for first outgoing dirEdge"),te.isTrue(t.getEdgeRing()===e,"unable to link last incoming dirEdge"),n.setNextMin(t))},t.prototype.getOutgoingDegree=function(){if(0===arguments.length){for(var e=0,t=this.iterator();t.hasNext();)t.next().isInResult()&&e++;return e}if(1===arguments.length){for(var n=arguments[0],r=0,i=this.iterator();i.hasNext();)i.next().getEdgeRing()===n&&r++;return r}},t.prototype.getLabel=function(){return this._label},t.prototype.findCoveredLineEdges=function(){for(var e=k.NONE,t=this.iterator();t.hasNext();){var n=t.next(),r=n.getSym();if(!n.isLineEdge()){if(n.isInResult()){e=k.INTERIOR;break}if(r.isInResult()){e=k.EXTERIOR;break}}}if(e===k.NONE)return null;for(var i=e,o=this.iterator();o.hasNext();){var s=o.next(),a=s.getSym();s.isLineEdge()?s.getEdge().setCovered(i===k.INTERIOR):(s.isInResult()&&(i=k.EXTERIOR),a.isInResult()&&(i=k.INTERIOR))}},t.prototype.computeLabelling=function(t){e.prototype.computeLabelling.call(this,t),this._label=new Tt(k.NONE);for(var n=this.iterator();n.hasNext();)for(var r=n.next().getEdge().getLabel(),i=0;i<2;i++){var o=r.getLocation(i);o!==k.INTERIOR&&o!==k.BOUNDARY||this._label.setLocation(i,k.INTERIOR)}},t.prototype.interfaces_=function(){return[]},t.prototype.getClass=function(){return t},t}(Un),Hn=function(e){function t(){e.apply(this,arguments)}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.createNode=function(e){return new Nt(e,new Wn)},t.prototype.interfaces_=function(){return[]},t.prototype.getClass=function(){return t},t}(Ut),qn=function e(){this._pts=null,this._orientation=null;var t=arguments[0];this._pts=t,this._orientation=e.orientation(t)};qn.prototype.compareTo=function(e){var t=e;return qn.compareOriented(this._pts,this._orientation,t._pts,t._orientation)},qn.prototype.interfaces_=function(){return[x]},qn.prototype.getClass=function(){return qn},qn.orientation=function(e){return 1===Ce.increasingDirection(e)},qn.compareOriented=function(e,t,n,r){for(var i=t?1:-1,o=r?1:-1,s=t?e.length:-1,a=r?n.length:-1,l=t?0:e.length-1,c=r?0:n.length-1;;){var u=e[l].compareTo(n[c]);if(0!==u)return u;var d=(l+=i)===s,h=(c+=o)===a;if(d&&!h)return-1;if(!d&&h)return 1;if(d&&h)return 0}};var Xn=function(){this._edges=new we,this._ocaMap=new d};Xn.prototype.print=function(e){e.print("MULTILINESTRING ( ");for(var t=0;t<this._edges.size();t++){var n=this._edges.get(t);t>0&&e.print(","),e.print("(");for(var r=n.getCoordinates(),i=0;i<r.length;i++)i>0&&e.print(","),e.print(r[i].x+" "+r[i].y);e.println(")")}e.print(")  ")},Xn.prototype.addAll=function(e){for(var t=e.iterator();t.hasNext();)this.add(t.next())},Xn.prototype.findEdgeIndex=function(e){for(var t=0;t<this._edges.size();t++)if(this._edges.get(t).equals(e))return t;return-1},Xn.prototype.iterator=function(){return this._edges.iterator()},Xn.prototype.getEdges=function(){return this._edges},Xn.prototype.get=function(e){return this._edges.get(e)},Xn.prototype.findEqualEdge=function(e){var t=new qn(e.getCoordinates());return this._ocaMap.get(t)},Xn.prototype.add=function(e){this._edges.add(e);var t=new qn(e.getCoordinates());this._ocaMap.put(t,e)},Xn.prototype.interfaces_=function(){return[]},Xn.prototype.getClass=function(){return Xn};var Yn=function(){};Yn.prototype.processIntersections=function(e,t,n,r){},Yn.prototype.isDone=function(){},Yn.prototype.interfaces_=function(){return[]},Yn.prototype.getClass=function(){return Yn};var Kn=function(){this._hasIntersection=!1,this._hasProper=!1,this._hasProperInterior=!1,this._hasInterior=!1,this._properIntersectionPoint=null,this._li=null,this._isSelfIntersection=null,this.numIntersections=0,this.numInteriorIntersections=0,this.numProperIntersections=0,this.numTests=0;var e=arguments[0];this._li=e};Kn.prototype.isTrivialIntersection=function(e,t,n,r){if(e===n&&1===this._li.getIntersectionNum()){if(Kn.isAdjacentSegments(t,r))return!0;if(e.isClosed()){var i=e.size()-1;if(0===t&&r===i||0===r&&t===i)return!0}}return!1},Kn.prototype.getProperIntersectionPoint=function(){return this._properIntersectionPoint},Kn.prototype.hasProperInteriorIntersection=function(){return this._hasProperInterior},Kn.prototype.getLineIntersector=function(){return this._li},Kn.prototype.hasProperIntersection=function(){return this._hasProper},Kn.prototype.processIntersections=function(e,t,n,r){if(e===n&&t===r)return null;this.numTests++;var i=e.getCoordinates()[t],o=e.getCoordinates()[t+1],s=n.getCoordinates()[r],a=n.getCoordinates()[r+1];this._li.computeIntersection(i,o,s,a),this._li.hasIntersection()&&(this.numIntersections++,this._li.isInteriorIntersection()&&(this.numInteriorIntersections++,this._hasInterior=!0),this.isTrivialIntersection(e,t,n,r)||(this._hasIntersection=!0,e.addIntersections(this._li,t,0),n.addIntersections(this._li,r,1),this._li.isProper()&&(this.numProperIntersections++,this._hasProper=!0,this._hasProperInterior=!0)))},Kn.prototype.hasIntersection=function(){return this._hasIntersection},Kn.prototype.isDone=function(){return!1},Kn.prototype.hasInteriorIntersection=function(){return this._hasInterior},Kn.prototype.interfaces_=function(){return[Yn]},Kn.prototype.getClass=function(){return Kn},Kn.isAdjacentSegments=function(e,t){return 1===Math.abs(e-t)};var Zn=function(){this.coord=null,this.segmentIndex=null,this.dist=null;var e=arguments[0],t=arguments[1],n=arguments[2];this.coord=new E(e),this.segmentIndex=t,this.dist=n};Zn.prototype.getSegmentIndex=function(){return this.segmentIndex},Zn.prototype.getCoordinate=function(){return this.coord},Zn.prototype.print=function(e){e.print(this.coord),e.print(" seg # = "+this.segmentIndex),e.println(" dist = "+this.dist)},Zn.prototype.compareTo=function(e){var t=e;return this.compare(t.segmentIndex,t.dist)},Zn.prototype.isEndPoint=function(e){return 0===this.segmentIndex&&0===this.dist||this.segmentIndex===e},Zn.prototype.toString=function(){return this.coord+" seg # = "+this.segmentIndex+" dist = "+this.dist},Zn.prototype.getDistance=function(){return this.dist},Zn.prototype.compare=function(e,t){return this.segmentIndex<e?-1:this.segmentIndex>e?1:this.dist<t?-1:this.dist>t?1:0},Zn.prototype.interfaces_=function(){return[x]},Zn.prototype.getClass=function(){return Zn};var $n=function(){this._nodeMap=new d,this.edge=null;var e=arguments[0];this.edge=e};$n.prototype.print=function(e){e.println("Intersections:");for(var t=this.iterator();t.hasNext();)t.next().print(e)},$n.prototype.iterator=function(){return this._nodeMap.values().iterator()},$n.prototype.addSplitEdges=function(e){this.addEndpoints();for(var t=this.iterator(),n=t.next();t.hasNext();){var r=t.next(),i=this.createSplitEdge(n,r);e.add(i),n=r}},$n.prototype.addEndpoints=function(){var e=this.edge.pts.length-1;this.add(this.edge.pts[0],0,0),this.add(this.edge.pts[e],e,0)},$n.prototype.createSplitEdge=function(e,t){var n=t.segmentIndex-e.segmentIndex+2,r=this.edge.pts[t.segmentIndex],i=t.dist>0||!t.coord.equals2D(r);i||n--;var o=new Array(n).fill(null),s=0;o[s++]=new E(e.coord);for(var a=e.segmentIndex+1;a<=t.segmentIndex;a++)o[s++]=this.edge.pts[a];return i&&(o[s]=t.coord),new nr(o,new Tt(this.edge._label))},$n.prototype.add=function(e,t,n){var r=new Zn(e,t,n),i=this._nodeMap.get(r);return null!==i?i:(this._nodeMap.put(r,r),r)},$n.prototype.isIntersection=function(e){for(var t=this.iterator();t.hasNext();)if(t.next().coord.equals(e))return!0;return!1},$n.prototype.interfaces_=function(){return[]},$n.prototype.getClass=function(){return $n};var Jn=function(){};Jn.prototype.getChainStartIndices=function(e){var t=0,n=new we;n.add(new O(t));do{var r=this.findChainEnd(e,t);n.add(new O(r)),t=r}while(t<e.length-1);return Jn.toIntArray(n)},Jn.prototype.findChainEnd=function(e,t){for(var n=Vt.quadrant(e[t],e[t+1]),r=t+1;r<e.length&&Vt.quadrant(e[r-1],e[r])===n;)r++;return r-1},Jn.prototype.interfaces_=function(){return[]},Jn.prototype.getClass=function(){return Jn},Jn.toIntArray=function(e){for(var t=new Array(e.size()).fill(null),n=0;n<t.length;n++)t[n]=e.get(n).intValue();return t};var Qn=function(){this.e=null,this.pts=null,this.startIndex=null,this.env1=new q,this.env2=new q;var e=arguments[0];this.e=e,this.pts=e.getCoordinates();var t=new Jn;this.startIndex=t.getChainStartIndices(this.pts)};Qn.prototype.getCoordinates=function(){return this.pts},Qn.prototype.getMaxX=function(e){var t=this.pts[this.startIndex[e]].x,n=this.pts[this.startIndex[e+1]].x;return t>n?t:n},Qn.prototype.getMinX=function(e){var t=this.pts[this.startIndex[e]].x,n=this.pts[this.startIndex[e+1]].x;return t<n?t:n},Qn.prototype.computeIntersectsForChain=function(){if(4===arguments.length){var e=arguments[0],t=arguments[1],n=arguments[2],r=arguments[3];this.computeIntersectsForChain(this.startIndex[e],this.startIndex[e+1],t,t.startIndex[n],t.startIndex[n+1],r)}else if(6===arguments.length){var i=arguments[0],o=arguments[1],s=arguments[2],a=arguments[3],l=arguments[4],c=arguments[5],u=this.pts[i],d=this.pts[o],h=s.pts[a],p=s.pts[l];if(o-i==1&&l-a==1)return c.addIntersections(this.e,i,s.e,a),null;if(this.env1.init(u,d),this.env2.init(h,p),!this.env1.intersects(this.env2))return null;var f=Math.trunc((i+o)/2),g=Math.trunc((a+l)/2);i<f&&(a<g&&this.computeIntersectsForChain(i,f,s,a,g,c),g<l&&this.computeIntersectsForChain(i,f,s,g,l,c)),f<o&&(a<g&&this.computeIntersectsForChain(f,o,s,a,g,c),g<l&&this.computeIntersectsForChain(f,o,s,g,l,c))}},Qn.prototype.getStartIndexes=function(){return this.startIndex},Qn.prototype.computeIntersects=function(e,t){for(var n=0;n<this.startIndex.length-1;n++)for(var r=0;r<e.startIndex.length-1;r++)this.computeIntersectsForChain(n,e,r,t)},Qn.prototype.interfaces_=function(){return[]},Qn.prototype.getClass=function(){return Qn};var er=function e(){this._depth=Array(2).fill().map((function(){return Array(3)}));for(var t=0;t<2;t++)for(var n=0;n<3;n++)this._depth[t][n]=e.NULL_VALUE},tr={NULL_VALUE:{configurable:!0}};er.prototype.getDepth=function(e,t){return this._depth[e][t]},er.prototype.setDepth=function(e,t,n){this._depth[e][t]=n},er.prototype.isNull=function(){if(0===arguments.length){for(var e=0;e<2;e++)for(var t=0;t<3;t++)if(this._depth[e][t]!==er.NULL_VALUE)return!1;return!0}if(1===arguments.length){var n=arguments[0];return this._depth[n][1]===er.NULL_VALUE}if(2===arguments.length){var r=arguments[0],i=arguments[1];return this._depth[r][i]===er.NULL_VALUE}},er.prototype.normalize=function(){for(var e=0;e<2;e++)if(!this.isNull(e)){var t=this._depth[e][1];this._depth[e][2]<t&&(t=this._depth[e][2]),t<0&&(t=0);for(var n=1;n<3;n++){var r=0;this._depth[e][n]>t&&(r=1),this._depth[e][n]=r}}},er.prototype.getDelta=function(e){return this._depth[e][Pt.RIGHT]-this._depth[e][Pt.LEFT]},er.prototype.getLocation=function(e,t){return this._depth[e][t]<=0?k.EXTERIOR:k.INTERIOR},er.prototype.toString=function(){return"A: "+this._depth[0][1]+","+this._depth[0][2]+" B: "+this._depth[1][1]+","+this._depth[1][2]},er.prototype.add=function(){if(1===arguments.length)for(var e=arguments[0],t=0;t<2;t++)for(var n=1;n<3;n++){var r=e.getLocation(t,n);r!==k.EXTERIOR&&r!==k.INTERIOR||(this.isNull(t,n)?this._depth[t][n]=er.depthAtLocation(r):this._depth[t][n]+=er.depthAtLocation(r))}else if(3===arguments.length){var i=arguments[0],o=arguments[1];arguments[2]===k.INTERIOR&&this._depth[i][o]++}},er.prototype.interfaces_=function(){return[]},er.prototype.getClass=function(){return er},er.depthAtLocation=function(e){return e===k.EXTERIOR?0:e===k.INTERIOR?1:er.NULL_VALUE},tr.NULL_VALUE.get=function(){return-1},Object.defineProperties(er,tr);var nr=function(e){function t(){if(e.call(this),this.pts=null,this._env=null,this.eiList=new $n(this),this._name=null,this._mce=null,this._isIsolated=!0,this._depth=new er,this._depthDelta=0,1===arguments.length){var n=arguments[0];t.call(this,n,null)}else if(2===arguments.length){var r=arguments[0],i=arguments[1];this.pts=r,this._label=i}}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.getDepth=function(){return this._depth},t.prototype.getCollapsedEdge=function(){var e=new Array(2).fill(null);return e[0]=this.pts[0],e[1]=this.pts[1],new t(e,Tt.toLineLabel(this._label))},t.prototype.isIsolated=function(){return this._isIsolated},t.prototype.getCoordinates=function(){return this.pts},t.prototype.setIsolated=function(e){this._isIsolated=e},t.prototype.setName=function(e){this._name=e},t.prototype.equals=function(e){if(!(e instanceof t))return!1;var n=e;if(this.pts.length!==n.pts.length)return!1;for(var r=!0,i=!0,o=this.pts.length,s=0;s<this.pts.length;s++)if(this.pts[s].equals2D(n.pts[s])||(r=!1),this.pts[s].equals2D(n.pts[--o])||(i=!1),!r&&!i)return!1;return!0},t.prototype.getCoordinate=function(){if(0===arguments.length)return this.pts.length>0?this.pts[0]:null;if(1===arguments.length){var e=arguments[0];return this.pts[e]}},t.prototype.print=function(e){e.print("edge "+this._name+": "),e.print("LINESTRING (");for(var t=0;t<this.pts.length;t++)t>0&&e.print(","),e.print(this.pts[t].x+" "+this.pts[t].y);e.print(")  "+this._label+" "+this._depthDelta)},t.prototype.computeIM=function(e){t.updateIM(this._label,e)},t.prototype.isCollapsed=function(){return!!this._label.isArea()&&3===this.pts.length&&!!this.pts[0].equals(this.pts[2])},t.prototype.isClosed=function(){return this.pts[0].equals(this.pts[this.pts.length-1])},t.prototype.getMaximumSegmentIndex=function(){return this.pts.length-1},t.prototype.getDepthDelta=function(){return this._depthDelta},t.prototype.getNumPoints=function(){return this.pts.length},t.prototype.printReverse=function(e){e.print("edge "+this._name+": ");for(var t=this.pts.length-1;t>=0;t--)e.print(this.pts[t]+" ");e.println("")},t.prototype.getMonotoneChainEdge=function(){return null===this._mce&&(this._mce=new Qn(this)),this._mce},t.prototype.getEnvelope=function(){if(null===this._env){this._env=new q;for(var e=0;e<this.pts.length;e++)this._env.expandToInclude(this.pts[e])}return this._env},t.prototype.addIntersection=function(e,t,n,r){var i=new E(e.getIntersection(r)),o=t,s=e.getEdgeDistance(n,r),a=o+1;if(a<this.pts.length){var l=this.pts[a];i.equals2D(l)&&(o=a,s=0)}this.eiList.add(i,o,s)},t.prototype.toString=function(){var e=new M;e.append("edge "+this._name+": "),e.append("LINESTRING (");for(var t=0;t<this.pts.length;t++)t>0&&e.append(","),e.append(this.pts[t].x+" "+this.pts[t].y);return e.append(")  "+this._label+" "+this._depthDelta),e.toString()},t.prototype.isPointwiseEqual=function(e){if(this.pts.length!==e.pts.length)return!1;for(var t=0;t<this.pts.length;t++)if(!this.pts[t].equals2D(e.pts[t]))return!1;return!0},t.prototype.setDepthDelta=function(e){this._depthDelta=e},t.prototype.getEdgeIntersectionList=function(){return this.eiList},t.prototype.addIntersections=function(e,t,n){for(var r=0;r<e.getIntersectionNum();r++)this.addIntersection(e,t,n,r)},t.prototype.interfaces_=function(){return[]},t.prototype.getClass=function(){return t},t.updateIM=function(){if(2!==arguments.length)return e.prototype.updateIM.apply(this,arguments);var t=arguments[0],n=arguments[1];n.setAtLeastIfValid(t.getLocation(0,Pt.ON),t.getLocation(1,Pt.ON),1),t.isArea()&&(n.setAtLeastIfValid(t.getLocation(0,Pt.LEFT),t.getLocation(1,Pt.LEFT),2),n.setAtLeastIfValid(t.getLocation(0,Pt.RIGHT),t.getLocation(1,Pt.RIGHT),2))},t}(Dt),rr=function(e){this._workingPrecisionModel=null,this._workingNoder=null,this._geomFact=null,this._graph=null,this._edgeList=new Xn,this._bufParams=e||null};rr.prototype.setWorkingPrecisionModel=function(e){this._workingPrecisionModel=e},rr.prototype.insertUniqueEdge=function(e){var t=this._edgeList.findEqualEdge(e);if(null!==t){var n=t.getLabel(),r=e.getLabel();t.isPointwiseEqual(e)||(r=new Tt(e.getLabel())).flip(),n.merge(r);var i=rr.depthDelta(r),o=t.getDepthDelta()+i;t.setDepthDelta(o)}else this._edgeList.add(e),e.setDepthDelta(rr.depthDelta(e.getLabel()))},rr.prototype.buildSubgraphs=function(e,t){for(var n=new we,r=e.iterator();r.hasNext();){var i=r.next(),o=i.getRightmostCoordinate(),s=new Rn(n).getDepth(o);i.computeDepth(s),i.findResultEdges(),n.add(i),t.add(i.getDirectedEdges(),i.getNodes())}},rr.prototype.createSubgraphs=function(e){for(var t=new we,n=e.getNodes().iterator();n.hasNext();){var r=n.next();if(!r.isVisited()){var i=new It;i.create(r),t.add(i)}}return Qt.sort(t,Qt.reverseOrder()),t},rr.prototype.createEmptyResultGeometry=function(){return this._geomFact.createPolygon()},rr.prototype.getNoder=function(e){if(null!==this._workingNoder)return this._workingNoder;var t=new Sn,n=new ie;return n.setPrecisionModel(e),t.setSegmentIntersector(new Kn(n)),t},rr.prototype.buffer=function(e,t){var n=this._workingPrecisionModel;null===n&&(n=e.getPrecisionModel()),this._geomFact=e.getFactory();var r=new On(n,this._bufParams),i=new Vn(e,t,r).getCurves();if(i.size()<=0)return this.createEmptyResultGeometry();this.computeNodedEdges(i,n),this._graph=new Wt(new Hn),this._graph.addEdges(this._edgeList.getEdges());var o=this.createSubgraphs(this._graph),s=new Ht(this._geomFact);this.buildSubgraphs(o,s);var a=s.getPolygons();return a.size()<=0?this.createEmptyResultGeometry():this._geomFact.buildGeometry(a)},rr.prototype.computeNodedEdges=function(e,t){var n=this.getNoder(t);n.computeNodes(e);for(var r=n.getNodedSubstrings().iterator();r.hasNext();){var i=r.next(),o=i.getCoordinates();if(2!==o.length||!o[0].equals2D(o[1])){var s=i.getData(),a=new nr(i.getCoordinates(),new Tt(s));this.insertUniqueEdge(a)}}},rr.prototype.setNoder=function(e){this._workingNoder=e},rr.prototype.interfaces_=function(){return[]},rr.prototype.getClass=function(){return rr},rr.depthDelta=function(e){var t=e.getLocation(0,Pt.LEFT),n=e.getLocation(0,Pt.RIGHT);return t===k.INTERIOR&&n===k.EXTERIOR?1:t===k.EXTERIOR&&n===k.INTERIOR?-1:0},rr.convertSegStrings=function(e){for(var t=new yt,n=new we;e.hasNext();){var r=e.next(),i=t.createLineString(r.getCoordinates());n.add(i)}return t.buildGeometry(n)};var ir=function(){if(this._noder=null,this._scaleFactor=null,this._offsetX=null,this._offsetY=null,this._isScaled=!1,2===arguments.length){var e=arguments[0],t=arguments[1];this._noder=e,this._scaleFactor=t,this._offsetX=0,this._offsetY=0,this._isScaled=!this.isIntegerPrecision()}else if(4===arguments.length){var n=arguments[0],r=arguments[1],i=arguments[2],o=arguments[3];this._noder=n,this._scaleFactor=r,this._offsetX=i,this._offsetY=o,this._isScaled=!this.isIntegerPrecision()}};ir.prototype.rescale=function(){if(I(arguments[0],be))for(var e=arguments[0].iterator();e.hasNext();){var t=e.next();this.rescale(t.getCoordinates())}else if(arguments[0]instanceof Array){for(var n=arguments[0],r=0;r<n.length;r++)n[r].x=n[r].x/this._scaleFactor+this._offsetX,n[r].y=n[r].y/this._scaleFactor+this._offsetY;2===n.length&&n[0].equals2D(n[1])&&W.out.println(n)}},ir.prototype.scale=function(){if(I(arguments[0],be)){for(var e=arguments[0],t=new we,n=e.iterator();n.hasNext();){var r=n.next();t.add(new fn(this.scale(r.getCoordinates()),r.getData()))}return t}if(arguments[0]instanceof Array){for(var i=arguments[0],o=new Array(i.length).fill(null),s=0;s<i.length;s++)o[s]=new E(Math.round((i[s].x-this._offsetX)*this._scaleFactor),Math.round((i[s].y-this._offsetY)*this._scaleFactor),i[s].z);return Ce.removeRepeatedPoints(o)}},ir.prototype.isIntegerPrecision=function(){return 1===this._scaleFactor},ir.prototype.getNodedSubstrings=function(){var e=this._noder.getNodedSubstrings();return this._isScaled&&this.rescale(e),e},ir.prototype.computeNodes=function(e){var t=e;this._isScaled&&(t=this.scale(e)),this._noder.computeNodes(t)},ir.prototype.interfaces_=function(){return[bn]},ir.prototype.getClass=function(){return ir};var or=function(){this._li=new ie,this._segStrings=null;var e=arguments[0];this._segStrings=e},sr={fact:{configurable:!0}};or.prototype.checkEndPtVertexIntersections=function(){if(0===arguments.length)for(var e=this._segStrings.iterator();e.hasNext();){var t=e.next().getCoordinates();this.checkEndPtVertexIntersections(t[0],this._segStrings),this.checkEndPtVertexIntersections(t[t.length-1],this._segStrings)}else if(2===arguments.length)for(var n=arguments[0],r=arguments[1].iterator();r.hasNext();)for(var i=r.next().getCoordinates(),o=1;o<i.length-1;o++)if(i[o].equals(n))throw new Q("found endpt/interior pt intersection at index "+o+" :pt "+n)},or.prototype.checkInteriorIntersections=function(){if(0===arguments.length)for(var e=this._segStrings.iterator();e.hasNext();)for(var t=e.next(),n=this._segStrings.iterator();n.hasNext();){var r=n.next();this.checkInteriorIntersections(t,r)}else if(2===arguments.length)for(var i=arguments[0],o=arguments[1],s=i.getCoordinates(),a=o.getCoordinates(),l=0;l<s.length-1;l++)for(var c=0;c<a.length-1;c++)this.checkInteriorIntersections(i,l,o,c);else if(4===arguments.length){var u=arguments[0],d=arguments[1],h=arguments[2],p=arguments[3];if(u===h&&d===p)return null;var f=u.getCoordinates()[d],g=u.getCoordinates()[d+1],m=h.getCoordinates()[p],y=h.getCoordinates()[p+1];if(this._li.computeIntersection(f,g,m,y),this._li.hasIntersection()&&(this._li.isProper()||this.hasInteriorIntersection(this._li,f,g)||this.hasInteriorIntersection(this._li,m,y)))throw new Q("found non-noded intersection at "+f+"-"+g+" and "+m+"-"+y)}},or.prototype.checkValid=function(){this.checkEndPtVertexIntersections(),this.checkInteriorIntersections(),this.checkCollapses()},or.prototype.checkCollapses=function(){if(0===arguments.length)for(var e=this._segStrings.iterator();e.hasNext();){var t=e.next();this.checkCollapses(t)}else if(1===arguments.length)for(var n=arguments[0].getCoordinates(),r=0;r<n.length-2;r++)this.checkCollapse(n[r],n[r+1],n[r+2])},or.prototype.hasInteriorIntersection=function(e,t,n){for(var r=0;r<e.getIntersectionNum();r++){var i=e.getIntersection(r);if(!i.equals(t)&&!i.equals(n))return!0}return!1},or.prototype.checkCollapse=function(e,t,n){if(e.equals(n))throw new Q("found non-noded collapse at "+or.fact.createLineString([e,t,n]))},or.prototype.interfaces_=function(){return[]},or.prototype.getClass=function(){return or},sr.fact.get=function(){return new yt},Object.defineProperties(or,sr);var ar=function(){this._li=null,this._pt=null,this._originalPt=null,this._ptScaled=null,this._p0Scaled=null,this._p1Scaled=null,this._scaleFactor=null,this._minx=null,this._maxx=null,this._miny=null,this._maxy=null,this._corner=new Array(4).fill(null),this._safeEnv=null;var e=arguments[0],t=arguments[1],n=arguments[2];if(this._originalPt=e,this._pt=e,this._scaleFactor=t,this._li=n,t<=0)throw new v("Scale factor must be non-zero");1!==t&&(this._pt=new E(this.scale(e.x),this.scale(e.y)),this._p0Scaled=new E,this._p1Scaled=new E),this.initCorners(this._pt)},lr={SAFE_ENV_EXPANSION_FACTOR:{configurable:!0}};ar.prototype.intersectsScaled=function(e,t){var n=Math.min(e.x,t.x),r=Math.max(e.x,t.x),i=Math.min(e.y,t.y),o=Math.max(e.y,t.y),s=this._maxx<n||this._minx>r||this._maxy<i||this._miny>o;if(s)return!1;var a=this.intersectsToleranceSquare(e,t);return te.isTrue(!(s&&a),"Found bad envelope test"),a},ar.prototype.initCorners=function(e){this._minx=e.x-.5,this._maxx=e.x+.5,this._miny=e.y-.5,this._maxy=e.y+.5,this._corner[0]=new E(this._maxx,this._maxy),this._corner[1]=new E(this._minx,this._maxy),this._corner[2]=new E(this._minx,this._miny),this._corner[3]=new E(this._maxx,this._miny)},ar.prototype.intersects=function(e,t){return 1===this._scaleFactor?this.intersectsScaled(e,t):(this.copyScaled(e,this._p0Scaled),this.copyScaled(t,this._p1Scaled),this.intersectsScaled(this._p0Scaled,this._p1Scaled))},ar.prototype.scale=function(e){return Math.round(e*this._scaleFactor)},ar.prototype.getCoordinate=function(){return this._originalPt},ar.prototype.copyScaled=function(e,t){t.x=this.scale(e.x),t.y=this.scale(e.y)},ar.prototype.getSafeEnvelope=function(){if(null===this._safeEnv){var e=ar.SAFE_ENV_EXPANSION_FACTOR/this._scaleFactor;this._safeEnv=new q(this._originalPt.x-e,this._originalPt.x+e,this._originalPt.y-e,this._originalPt.y+e)}return this._safeEnv},ar.prototype.intersectsPixelClosure=function(e,t){return this._li.computeIntersection(e,t,this._corner[0],this._corner[1]),!!this._li.hasIntersection()||(this._li.computeIntersection(e,t,this._corner[1],this._corner[2]),!!this._li.hasIntersection()||(this._li.computeIntersection(e,t,this._corner[2],this._corner[3]),!!this._li.hasIntersection()||(this._li.computeIntersection(e,t,this._corner[3],this._corner[0]),!!this._li.hasIntersection())))},ar.prototype.intersectsToleranceSquare=function(e,t){var n=!1,r=!1;return this._li.computeIntersection(e,t,this._corner[0],this._corner[1]),!!this._li.isProper()||(this._li.computeIntersection(e,t,this._corner[1],this._corner[2]),!!this._li.isProper()||(this._li.hasIntersection()&&(n=!0),this._li.computeIntersection(e,t,this._corner[2],this._corner[3]),!!this._li.isProper()||(this._li.hasIntersection()&&(r=!0),this._li.computeIntersection(e,t,this._corner[3],this._corner[0]),!!this._li.isProper()||!(!n||!r)||!!e.equals(this._pt)||!!t.equals(this._pt))))},ar.prototype.addSnappedNode=function(e,t){var n=e.getCoordinate(t),r=e.getCoordinate(t+1);return!!this.intersects(n,r)&&(e.addIntersection(this.getCoordinate(),t),!0)},ar.prototype.interfaces_=function(){return[]},ar.prototype.getClass=function(){return ar},lr.SAFE_ENV_EXPANSION_FACTOR.get=function(){return.75},Object.defineProperties(ar,lr);var cr=function(){this.tempEnv1=new q,this.selectedSegment=new gn};cr.prototype.select=function(){if(1===arguments.length);else if(2===arguments.length){var e=arguments[1];arguments[0].getLineSegment(e,this.selectedSegment),this.select(this.selectedSegment)}},cr.prototype.interfaces_=function(){return[]},cr.prototype.getClass=function(){return cr};var ur=function(){this._index=null;var e=arguments[0];this._index=e},dr={HotPixelSnapAction:{configurable:!0}};ur.prototype.snap=function(){if(1===arguments.length){var e=arguments[0];return this.snap(e,null,-1)}if(3===arguments.length){var t=arguments[0],n=arguments[1],r=arguments[2],i=t.getSafeEnvelope(),o=new hr(t,n,r);return this._index.query(i,{interfaces_:function(){return[Kt]},visitItem:function(e){e.select(i,o)}}),o.isNodeAdded()}},ur.prototype.interfaces_=function(){return[]},ur.prototype.getClass=function(){return ur},dr.HotPixelSnapAction.get=function(){return hr},Object.defineProperties(ur,dr);var hr=function(e){function t(){e.call(this),this._hotPixel=null,this._parentEdge=null,this._hotPixelVertexIndex=null,this._isNodeAdded=!1;var t=arguments[0],n=arguments[1],r=arguments[2];this._hotPixel=t,this._parentEdge=n,this._hotPixelVertexIndex=r}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.isNodeAdded=function(){return this._isNodeAdded},t.prototype.select=function(){if(2!==arguments.length)return e.prototype.select.apply(this,arguments);var t=arguments[1],n=arguments[0].getContext();if(null!==this._parentEdge&&n===this._parentEdge&&t===this._hotPixelVertexIndex)return null;this._isNodeAdded=this._hotPixel.addSnappedNode(n,t)},t.prototype.interfaces_=function(){return[]},t.prototype.getClass=function(){return t},t}(cr),pr=function(){this._li=null,this._interiorIntersections=null;var e=arguments[0];this._li=e,this._interiorIntersections=new we};pr.prototype.processIntersections=function(e,t,n,r){if(e===n&&t===r)return null;var i=e.getCoordinates()[t],o=e.getCoordinates()[t+1],s=n.getCoordinates()[r],a=n.getCoordinates()[r+1];if(this._li.computeIntersection(i,o,s,a),this._li.hasIntersection()&&this._li.isInteriorIntersection()){for(var l=0;l<this._li.getIntersectionNum();l++)this._interiorIntersections.add(this._li.getIntersection(l));e.addIntersections(this._li,t,0),n.addIntersections(this._li,r,1)}},pr.prototype.isDone=function(){return!1},pr.prototype.getInteriorIntersections=function(){return this._interiorIntersections},pr.prototype.interfaces_=function(){return[Yn]},pr.prototype.getClass=function(){return pr};var fr=function(){this._pm=null,this._li=null,this._scaleFactor=null,this._noder=null,this._pointSnapper=null,this._nodedSegStrings=null;var e=arguments[0];this._pm=e,this._li=new ie,this._li.setPrecisionModel(e),this._scaleFactor=e.getScale()};fr.prototype.checkCorrectness=function(e){var t=fn.getNodedSubstrings(e),n=new or(t);try{n.checkValid()}catch(e){if(!(e instanceof B))throw e;e.printStackTrace()}},fr.prototype.getNodedSubstrings=function(){return fn.getNodedSubstrings(this._nodedSegStrings)},fr.prototype.snapRound=function(e,t){var n=this.findInteriorIntersections(e,t);this.computeIntersectionSnaps(n),this.computeVertexSnaps(e)},fr.prototype.findInteriorIntersections=function(e,t){var n=new pr(t);return this._noder.setSegmentIntersector(n),this._noder.computeNodes(e),n.getInteriorIntersections()},fr.prototype.computeVertexSnaps=function(){if(I(arguments[0],be))for(var e=arguments[0].iterator();e.hasNext();){var t=e.next();this.computeVertexSnaps(t)}else if(arguments[0]instanceof fn)for(var n=arguments[0],r=n.getCoordinates(),i=0;i<r.length;i++){var o=new ar(r[i],this._scaleFactor,this._li);this._pointSnapper.snap(o,n,i)&&n.addIntersection(r[i],i)}},fr.prototype.computeNodes=function(e){this._nodedSegStrings=e,this._noder=new Sn,this._pointSnapper=new ur(this._noder.getIndex()),this.snapRound(e,this._li)},fr.prototype.computeIntersectionSnaps=function(e){for(var t=e.iterator();t.hasNext();){var n=t.next(),r=new ar(n,this._scaleFactor,this._li);this._pointSnapper.snap(r)}},fr.prototype.interfaces_=function(){return[bn]},fr.prototype.getClass=function(){return fr};var gr=function(){if(this._argGeom=null,this._distance=null,this._bufParams=new En,this._resultGeometry=null,this._saveException=null,1===arguments.length){var e=arguments[0];this._argGeom=e}else if(2===arguments.length){var t=arguments[0],n=arguments[1];this._argGeom=t,this._bufParams=n}},mr={CAP_ROUND:{configurable:!0},CAP_BUTT:{configurable:!0},CAP_FLAT:{configurable:!0},CAP_SQUARE:{configurable:!0},MAX_PRECISION_DIGITS:{configurable:!0}};gr.prototype.bufferFixedPrecision=function(e){var t=new ir(new fr(new pt(1)),e.getScale()),n=new rr(this._bufParams);n.setWorkingPrecisionModel(e),n.setNoder(t),this._resultGeometry=n.buffer(this._argGeom,this._distance)},gr.prototype.bufferReducedPrecision=function(){var e=this;if(0===arguments.length){for(var t=gr.MAX_PRECISION_DIGITS;t>=0;t--){try{e.bufferReducedPrecision(t)}catch(t){if(!(t instanceof kt))throw t;e._saveException=t}if(null!==e._resultGeometry)return null}throw this._saveException}if(1===arguments.length){var n=arguments[0],r=gr.precisionScaleFactor(this._argGeom,this._distance,n),i=new pt(r);this.bufferFixedPrecision(i)}},gr.prototype.computeGeometry=function(){if(this.bufferOriginalPrecision(),null!==this._resultGeometry)return null;var e=this._argGeom.getFactory().getPrecisionModel();e.getType()===pt.FIXED?this.bufferFixedPrecision(e):this.bufferReducedPrecision()},gr.prototype.setQuadrantSegments=function(e){this._bufParams.setQuadrantSegments(e)},gr.prototype.bufferOriginalPrecision=function(){try{var e=new rr(this._bufParams);this._resultGeometry=e.buffer(this._argGeom,this._distance)}catch(e){if(!(e instanceof Q))throw e;this._saveException=e}},gr.prototype.getResultGeometry=function(e){return this._distance=e,this.computeGeometry(),this._resultGeometry},gr.prototype.setEndCapStyle=function(e){this._bufParams.setEndCapStyle(e)},gr.prototype.interfaces_=function(){return[]},gr.prototype.getClass=function(){return gr},gr.bufferOp=function(){if(2===arguments.length){var e=arguments[1];return new gr(arguments[0]).getResultGeometry(e)}if(3===arguments.length){if(Number.isInteger(arguments[2])&&arguments[0]instanceof ue&&"number"==typeof arguments[1]){var t=arguments[1],n=arguments[2],r=new gr(arguments[0]);return r.setQuadrantSegments(n),r.getResultGeometry(t)}if(arguments[2]instanceof En&&arguments[0]instanceof ue&&"number"==typeof arguments[1]){var i=arguments[1];return new gr(arguments[0],arguments[2]).getResultGeometry(i)}}else if(4===arguments.length){var o=arguments[1],s=arguments[2],a=arguments[3],l=new gr(arguments[0]);return l.setQuadrantSegments(s),l.setEndCapStyle(a),l.getResultGeometry(o)}},gr.precisionScaleFactor=function(e,t,n){var r=e.getEnvelopeInternal(),i=G.max(Math.abs(r.getMaxX()),Math.abs(r.getMaxY()),Math.abs(r.getMinX()),Math.abs(r.getMinY()))+2*(t>0?t:0),o=n-Math.trunc(Math.log(i)/Math.log(10)+1);return Math.pow(10,o)},mr.CAP_ROUND.get=function(){return En.CAP_ROUND},mr.CAP_BUTT.get=function(){return En.CAP_FLAT},mr.CAP_FLAT.get=function(){return En.CAP_FLAT},mr.CAP_SQUARE.get=function(){return En.CAP_SQUARE},mr.MAX_PRECISION_DIGITS.get=function(){return 12},Object.defineProperties(gr,mr);var yr=function(){this._pt=[new E,new E],this._distance=_.NaN,this._isNull=!0};yr.prototype.getCoordinates=function(){return this._pt},yr.prototype.getCoordinate=function(e){return this._pt[e]},yr.prototype.setMinimum=function(){if(1===arguments.length){var e=arguments[0];this.setMinimum(e._pt[0],e._pt[1])}else if(2===arguments.length){var t=arguments[0],n=arguments[1];if(this._isNull)return this.initialize(t,n),null;var r=t.distance(n);r<this._distance&&this.initialize(t,n,r)}},yr.prototype.initialize=function(){if(0===arguments.length)this._isNull=!0;else if(2===arguments.length){var e=arguments[0],t=arguments[1];this._pt[0].setCoordinate(e),this._pt[1].setCoordinate(t),this._distance=e.distance(t),this._isNull=!1}else if(3===arguments.length){var n=arguments[0],r=arguments[1],i=arguments[2];this._pt[0].setCoordinate(n),this._pt[1].setCoordinate(r),this._distance=i,this._isNull=!1}},yr.prototype.getDistance=function(){return this._distance},yr.prototype.setMaximum=function(){if(1===arguments.length){var e=arguments[0];this.setMaximum(e._pt[0],e._pt[1])}else if(2===arguments.length){var t=arguments[0],n=arguments[1];if(this._isNull)return this.initialize(t,n),null;var r=t.distance(n);r>this._distance&&this.initialize(t,n,r)}},yr.prototype.interfaces_=function(){return[]},yr.prototype.getClass=function(){return yr};var vr=function(){};vr.prototype.interfaces_=function(){return[]},vr.prototype.getClass=function(){return vr},vr.computeDistance=function(){if(arguments[2]instanceof yr&&arguments[0]instanceof Ke&&arguments[1]instanceof E)for(var e=arguments[1],t=arguments[2],n=arguments[0].getCoordinates(),r=new gn,i=0;i<n.length-1;i++){r.setCoordinates(n[i],n[i+1]);var o=r.closestPoint(e);t.setMinimum(o,e)}else if(arguments[2]instanceof yr&&arguments[0]instanceof Qe&&arguments[1]instanceof E){var s=arguments[0],a=arguments[1],l=arguments[2];vr.computeDistance(s.getExteriorRing(),a,l);for(var c=0;c<s.getNumInteriorRing();c++)vr.computeDistance(s.getInteriorRingN(c),a,l)}else if(arguments[2]instanceof yr&&arguments[0]instanceof ue&&arguments[1]instanceof E){var u=arguments[0],d=arguments[1],h=arguments[2];if(u instanceof Ke)vr.computeDistance(u,d,h);else if(u instanceof Qe)vr.computeDistance(u,d,h);else if(u instanceof Be)for(var p=u,f=0;f<p.getNumGeometries();f++){var g=p.getGeometryN(f);vr.computeDistance(g,d,h)}else h.setMinimum(u.getCoordinate(),d)}else if(arguments[2]instanceof yr&&arguments[0]instanceof gn&&arguments[1]instanceof E){var m=arguments[1],y=arguments[2],v=arguments[0].closestPoint(m);y.setMinimum(v,m)}};var _r=function(e){this._maxPtDist=new yr,this._inputGeom=e||null},br={MaxPointDistanceFilter:{configurable:!0},MaxMidpointDistanceFilter:{configurable:!0}};_r.prototype.computeMaxMidpointDistance=function(e){var t=new Sr(this._inputGeom);e.apply(t),this._maxPtDist.setMaximum(t.getMaxPointDistance())},_r.prototype.computeMaxVertexDistance=function(e){var t=new xr(this._inputGeom);e.apply(t),this._maxPtDist.setMaximum(t.getMaxPointDistance())},_r.prototype.findDistance=function(e){return this.computeMaxVertexDistance(e),this.computeMaxMidpointDistance(e),this._maxPtDist.getDistance()},_r.prototype.getDistancePoints=function(){return this._maxPtDist},_r.prototype.interfaces_=function(){return[]},_r.prototype.getClass=function(){return _r},br.MaxPointDistanceFilter.get=function(){return xr},br.MaxMidpointDistanceFilter.get=function(){return Sr},Object.defineProperties(_r,br);var xr=function(e){this._maxPtDist=new yr,this._minPtDist=new yr,this._geom=e||null};xr.prototype.filter=function(e){this._minPtDist.initialize(),vr.computeDistance(this._geom,e,this._minPtDist),this._maxPtDist.setMaximum(this._minPtDist)},xr.prototype.getMaxPointDistance=function(){return this._maxPtDist},xr.prototype.interfaces_=function(){return[pe]},xr.prototype.getClass=function(){return xr};var Sr=function(e){this._maxPtDist=new yr,this._minPtDist=new yr,this._geom=e||null};Sr.prototype.filter=function(e,t){if(0===t)return null;var n=e.getCoordinate(t-1),r=e.getCoordinate(t),i=new E((n.x+r.x)/2,(n.y+r.y)/2);this._minPtDist.initialize(),vr.computeDistance(this._geom,i,this._minPtDist),this._maxPtDist.setMaximum(this._minPtDist)},Sr.prototype.isDone=function(){return!1},Sr.prototype.isGeometryChanged=function(){return!1},Sr.prototype.getMaxPointDistance=function(){return this._maxPtDist},Sr.prototype.interfaces_=function(){return[ze]},Sr.prototype.getClass=function(){return Sr};var wr=function(e){this._comps=e||null};wr.prototype.filter=function(e){e instanceof Qe&&this._comps.add(e)},wr.prototype.interfaces_=function(){return[Fe]},wr.prototype.getClass=function(){return wr},wr.getPolygons=function(){if(1===arguments.length){var e=arguments[0];return wr.getPolygons(e,new we)}if(2===arguments.length){var t=arguments[0],n=arguments[1];return t instanceof Qe?n.add(t):t instanceof Be&&t.apply(new wr(n)),n}};var Er=function(){if(this._lines=null,this._isForcedToLineString=!1,1===arguments.length){var e=arguments[0];this._lines=e}else if(2===arguments.length){var t=arguments[0],n=arguments[1];this._lines=t,this._isForcedToLineString=n}};Er.prototype.filter=function(e){if(this._isForcedToLineString&&e instanceof tt){var t=e.getFactory().createLineString(e.getCoordinateSequence());return this._lines.add(t),null}e instanceof Ke&&this._lines.add(e)},Er.prototype.setForceToLineString=function(e){this._isForcedToLineString=e},Er.prototype.interfaces_=function(){return[ce]},Er.prototype.getClass=function(){return Er},Er.getGeometry=function(){if(1===arguments.length){var e=arguments[0];return e.getFactory().buildGeometry(Er.getLines(e))}if(2===arguments.length){var t=arguments[0],n=arguments[1];return t.getFactory().buildGeometry(Er.getLines(t,n))}},Er.getLines=function(){if(1===arguments.length){var e=arguments[0];return Er.getLines(e,!1)}if(2===arguments.length){if(I(arguments[0],be)&&I(arguments[1],be)){for(var t=arguments[1],n=arguments[0].iterator();n.hasNext();){var r=n.next();Er.getLines(r,t)}return t}if(arguments[0]instanceof ue&&"boolean"==typeof arguments[1]){var i=arguments[0],o=arguments[1],s=new we;return i.apply(new Er(s,o)),s}if(arguments[0]instanceof ue&&I(arguments[1],be)){var a=arguments[0],l=arguments[1];return a instanceof Ke?l.add(a):a.apply(new Er(l)),l}}else if(3===arguments.length){if("boolean"==typeof arguments[2]&&I(arguments[0],be)&&I(arguments[1],be)){for(var c=arguments[1],u=arguments[2],d=arguments[0].iterator();d.hasNext();){var h=d.next();Er.getLines(h,c,u)}return c}if("boolean"==typeof arguments[2]&&arguments[0]instanceof ue&&I(arguments[1],be)){var p=arguments[1],f=arguments[2];return arguments[0].apply(new Er(p,f)),p}}};var Pr=function(){if(this._boundaryRule=fe.OGC_SFS_BOUNDARY_RULE,this._isIn=null,this._numBoundaries=null,0===arguments.length);else if(1===arguments.length){var e=arguments[0];if(null===e)throw new v("Rule must be non-null");this._boundaryRule=e}};Pr.prototype.locateInternal=function(){if(arguments[0]instanceof E&&arguments[1]instanceof Qe){var e=arguments[0],t=arguments[1];if(t.isEmpty())return k.EXTERIOR;var n=t.getExteriorRing(),r=this.locateInPolygonRing(e,n);if(r===k.EXTERIOR)return k.EXTERIOR;if(r===k.BOUNDARY)return k.BOUNDARY;for(var i=0;i<t.getNumInteriorRing();i++){var o=t.getInteriorRingN(i),s=this.locateInPolygonRing(e,o);if(s===k.INTERIOR)return k.EXTERIOR;if(s===k.BOUNDARY)return k.BOUNDARY}return k.INTERIOR}if(arguments[0]instanceof E&&arguments[1]instanceof Ke){var a=arguments[0],l=arguments[1];if(!l.getEnvelopeInternal().intersects(a))return k.EXTERIOR;var c=l.getCoordinates();return l.isClosed()||!a.equals(c[0])&&!a.equals(c[c.length-1])?ae.isOnLine(a,c)?k.INTERIOR:k.EXTERIOR:k.BOUNDARY}if(arguments[0]instanceof E&&arguments[1]instanceof $e){var u=arguments[0];return arguments[1].getCoordinate().equals2D(u)?k.INTERIOR:k.EXTERIOR}},Pr.prototype.locateInPolygonRing=function(e,t){return t.getEnvelopeInternal().intersects(e)?ae.locatePointInRing(e,t.getCoordinates()):k.EXTERIOR},Pr.prototype.intersects=function(e,t){return this.locate(e,t)!==k.EXTERIOR},Pr.prototype.updateLocationInfo=function(e){e===k.INTERIOR&&(this._isIn=!0),e===k.BOUNDARY&&this._numBoundaries++},Pr.prototype.computeLocation=function(e,t){if(t instanceof $e&&this.updateLocationInfo(this.locateInternal(e,t)),t instanceof Ke)this.updateLocationInfo(this.locateInternal(e,t));else if(t instanceof Qe)this.updateLocationInfo(this.locateInternal(e,t));else if(t instanceof Ue)for(var n=t,r=0;r<n.getNumGeometries();r++){var i=n.getGeometryN(r);this.updateLocationInfo(this.locateInternal(e,i))}else if(t instanceof nt)for(var o=t,s=0;s<o.getNumGeometries();s++){var a=o.getGeometryN(s);this.updateLocationInfo(this.locateInternal(e,a))}else if(t instanceof Be)for(var l=new zn(t);l.hasNext();){var c=l.next();c!==t&&this.computeLocation(e,c)}},Pr.prototype.locate=function(e,t){return t.isEmpty()?k.EXTERIOR:t instanceof Ke||t instanceof Qe?this.locateInternal(e,t):(this._isIn=!1,this._numBoundaries=0,this.computeLocation(e,t),this._boundaryRule.isInBoundary(this._numBoundaries)?k.BOUNDARY:this._numBoundaries>0||this._isIn?k.INTERIOR:k.EXTERIOR)},Pr.prototype.interfaces_=function(){return[]},Pr.prototype.getClass=function(){return Pr};var Cr=function e(){if(this._component=null,this._segIndex=null,this._pt=null,2===arguments.length)e.call(this,arguments[0],e.INSIDE_AREA,arguments[1]);else if(3===arguments.length){var t=arguments[0],n=arguments[1],r=arguments[2];this._component=t,this._segIndex=n,this._pt=r}},Ar={INSIDE_AREA:{configurable:!0}};Cr.prototype.isInsideArea=function(){return this._segIndex===Cr.INSIDE_AREA},Cr.prototype.getCoordinate=function(){return this._pt},Cr.prototype.getGeometryComponent=function(){return this._component},Cr.prototype.getSegmentIndex=function(){return this._segIndex},Cr.prototype.interfaces_=function(){return[]},Cr.prototype.getClass=function(){return Cr},Ar.INSIDE_AREA.get=function(){return-1},Object.defineProperties(Cr,Ar);var kr=function(e){this._pts=e||null};kr.prototype.filter=function(e){e instanceof $e&&this._pts.add(e)},kr.prototype.interfaces_=function(){return[Fe]},kr.prototype.getClass=function(){return kr},kr.getPoints=function(){if(1===arguments.length){var e=arguments[0];return e instanceof $e?Qt.singletonList(e):kr.getPoints(e,new we)}if(2===arguments.length){var t=arguments[0],n=arguments[1];return t instanceof $e?n.add(t):t instanceof Be&&t.apply(new kr(n)),n}};var jr=function(){this._locations=null;var e=arguments[0];this._locations=e};jr.prototype.filter=function(e){(e instanceof $e||e instanceof Ke||e instanceof Qe)&&this._locations.add(new Cr(e,0,e.getCoordinate()))},jr.prototype.interfaces_=function(){return[Fe]},jr.prototype.getClass=function(){return jr},jr.getLocations=function(e){var t=new we;return e.apply(new jr(t)),t};var Ir=function(){if(this._geom=null,this._terminateDistance=0,this._ptLocator=new Pr,this._minDistanceLocation=null,this._minDistance=_.MAX_VALUE,2===arguments.length){var e=arguments[0],t=arguments[1];this._geom=[e,t],this._terminateDistance=0}else if(3===arguments.length){var n=arguments[0],r=arguments[1],i=arguments[2];this._geom=new Array(2).fill(null),this._geom[0]=n,this._geom[1]=r,this._terminateDistance=i}};Ir.prototype.computeContainmentDistance=function(){if(0===arguments.length){var e=new Array(2).fill(null);if(this.computeContainmentDistance(0,e),this._minDistance<=this._terminateDistance)return null;this.computeContainmentDistance(1,e)}else if(2===arguments.length){var t=arguments[0],n=arguments[1],r=1-t,i=wr.getPolygons(this._geom[t]);if(i.size()>0){var o=jr.getLocations(this._geom[r]);if(this.computeContainmentDistance(o,i,n),this._minDistance<=this._terminateDistance)return this._minDistanceLocation[r]=n[0],this._minDistanceLocation[t]=n[1],null}}else if(3===arguments.length)if(arguments[2]instanceof Array&&I(arguments[0],Se)&&I(arguments[1],Se)){for(var s=arguments[0],a=arguments[1],l=arguments[2],c=0;c<s.size();c++)for(var u=s.get(c),d=0;d<a.size();d++)if(this.computeContainmentDistance(u,a.get(d),l),this._minDistance<=this._terminateDistance)return null}else if(arguments[2]instanceof Array&&arguments[0]instanceof Cr&&arguments[1]instanceof Qe){var h=arguments[0],p=arguments[1],f=arguments[2],g=h.getCoordinate();if(k.EXTERIOR!==this._ptLocator.locate(g,p))return this._minDistance=0,f[0]=h,f[1]=new Cr(p,g),null}},Ir.prototype.computeMinDistanceLinesPoints=function(e,t,n){for(var r=0;r<e.size();r++)for(var i=e.get(r),o=0;o<t.size();o++){var s=t.get(o);if(this.computeMinDistance(i,s,n),this._minDistance<=this._terminateDistance)return null}},Ir.prototype.computeFacetDistance=function(){var e=new Array(2).fill(null),t=Er.getLines(this._geom[0]),n=Er.getLines(this._geom[1]),r=kr.getPoints(this._geom[0]),i=kr.getPoints(this._geom[1]);return this.computeMinDistanceLines(t,n,e),this.updateMinDistance(e,!1),this._minDistance<=this._terminateDistance?null:(e[0]=null,e[1]=null,this.computeMinDistanceLinesPoints(t,i,e),this.updateMinDistance(e,!1),this._minDistance<=this._terminateDistance?null:(e[0]=null,e[1]=null,this.computeMinDistanceLinesPoints(n,r,e),this.updateMinDistance(e,!0),this._minDistance<=this._terminateDistance?null:(e[0]=null,e[1]=null,this.computeMinDistancePoints(r,i,e),void this.updateMinDistance(e,!1))))},Ir.prototype.nearestLocations=function(){return this.computeMinDistance(),this._minDistanceLocation},Ir.prototype.updateMinDistance=function(e,t){if(null===e[0])return null;t?(this._minDistanceLocation[0]=e[1],this._minDistanceLocation[1]=e[0]):(this._minDistanceLocation[0]=e[0],this._minDistanceLocation[1]=e[1])},Ir.prototype.nearestPoints=function(){return this.computeMinDistance(),[this._minDistanceLocation[0].getCoordinate(),this._minDistanceLocation[1].getCoordinate()]},Ir.prototype.computeMinDistance=function(){if(0===arguments.length){if(null!==this._minDistanceLocation)return null;if(this._minDistanceLocation=new Array(2).fill(null),this.computeContainmentDistance(),this._minDistance<=this._terminateDistance)return null;this.computeFacetDistance()}else if(3===arguments.length)if(arguments[2]instanceof Array&&arguments[0]instanceof Ke&&arguments[1]instanceof $e){var e=arguments[0],t=arguments[1],n=arguments[2];if(e.getEnvelopeInternal().distance(t.getEnvelopeInternal())>this._minDistance)return null;for(var r=e.getCoordinates(),i=t.getCoordinate(),o=0;o<r.length-1;o++){var s=ae.distancePointLine(i,r[o],r[o+1]);if(s<this._minDistance){this._minDistance=s;var a=new gn(r[o],r[o+1]).closestPoint(i);n[0]=new Cr(e,o,a),n[1]=new Cr(t,0,i)}if(this._minDistance<=this._terminateDistance)return null}}else if(arguments[2]instanceof Array&&arguments[0]instanceof Ke&&arguments[1]instanceof Ke){var l=arguments[0],c=arguments[1],u=arguments[2];if(l.getEnvelopeInternal().distance(c.getEnvelopeInternal())>this._minDistance)return null;for(var d=l.getCoordinates(),h=c.getCoordinates(),p=0;p<d.length-1;p++)for(var f=0;f<h.length-1;f++){var g=ae.distanceLineLine(d[p],d[p+1],h[f],h[f+1]);if(g<this._minDistance){this._minDistance=g;var m=new gn(d[p],d[p+1]),y=new gn(h[f],h[f+1]),v=m.closestPoints(y);u[0]=new Cr(l,p,v[0]),u[1]=new Cr(c,f,v[1])}if(this._minDistance<=this._terminateDistance)return null}}},Ir.prototype.computeMinDistancePoints=function(e,t,n){for(var r=0;r<e.size();r++)for(var i=e.get(r),o=0;o<t.size();o++){var s=t.get(o),a=i.getCoordinate().distance(s.getCoordinate());if(a<this._minDistance&&(this._minDistance=a,n[0]=new Cr(i,0,i.getCoordinate()),n[1]=new Cr(s,0,s.getCoordinate())),this._minDistance<=this._terminateDistance)return null}},Ir.prototype.distance=function(){if(null===this._geom[0]||null===this._geom[1])throw new v("null geometries are not supported");return this._geom[0].isEmpty()||this._geom[1].isEmpty()?0:(this.computeMinDistance(),this._minDistance)},Ir.prototype.computeMinDistanceLines=function(e,t,n){for(var r=0;r<e.size();r++)for(var i=e.get(r),o=0;o<t.size();o++){var s=t.get(o);if(this.computeMinDistance(i,s,n),this._minDistance<=this._terminateDistance)return null}},Ir.prototype.interfaces_=function(){return[]},Ir.prototype.getClass=function(){return Ir},Ir.distance=function(e,t){return new Ir(e,t).distance()},Ir.isWithinDistance=function(e,t,n){return new Ir(e,t,n).distance()<=n},Ir.nearestPoints=function(e,t){return new Ir(e,t).nearestPoints()};var Gr=function(){this._pt=[new E,new E],this._distance=_.NaN,this._isNull=!0};Gr.prototype.getCoordinates=function(){return this._pt},Gr.prototype.getCoordinate=function(e){return this._pt[e]},Gr.prototype.setMinimum=function(){if(1===arguments.length){var e=arguments[0];this.setMinimum(e._pt[0],e._pt[1])}else if(2===arguments.length){var t=arguments[0],n=arguments[1];if(this._isNull)return this.initialize(t,n),null;var r=t.distance(n);r<this._distance&&this.initialize(t,n,r)}},Gr.prototype.initialize=function(){if(0===arguments.length)this._isNull=!0;else if(2===arguments.length){var e=arguments[0],t=arguments[1];this._pt[0].setCoordinate(e),this._pt[1].setCoordinate(t),this._distance=e.distance(t),this._isNull=!1}else if(3===arguments.length){var n=arguments[0],r=arguments[1],i=arguments[2];this._pt[0].setCoordinate(n),this._pt[1].setCoordinate(r),this._distance=i,this._isNull=!1}},Gr.prototype.toString=function(){return J.toLineString(this._pt[0],this._pt[1])},Gr.prototype.getDistance=function(){return this._distance},Gr.prototype.setMaximum=function(){if(1===arguments.length){var e=arguments[0];this.setMaximum(e._pt[0],e._pt[1])}else if(2===arguments.length){var t=arguments[0],n=arguments[1];if(this._isNull)return this.initialize(t,n),null;var r=t.distance(n);r>this._distance&&this.initialize(t,n,r)}},Gr.prototype.interfaces_=function(){return[]},Gr.prototype.getClass=function(){return Gr};var Tr=function(){};Tr.prototype.interfaces_=function(){return[]},Tr.prototype.getClass=function(){return Tr},Tr.computeDistance=function(){if(arguments[2]instanceof Gr&&arguments[0]instanceof Ke&&arguments[1]instanceof E)for(var e=arguments[0],t=arguments[1],n=arguments[2],r=new gn,i=e.getCoordinates(),o=0;o<i.length-1;o++){r.setCoordinates(i[o],i[o+1]);var s=r.closestPoint(t);n.setMinimum(s,t)}else if(arguments[2]instanceof Gr&&arguments[0]instanceof Qe&&arguments[1]instanceof E){var a=arguments[0],l=arguments[1],c=arguments[2];Tr.computeDistance(a.getExteriorRing(),l,c);for(var u=0;u<a.getNumInteriorRing();u++)Tr.computeDistance(a.getInteriorRingN(u),l,c)}else if(arguments[2]instanceof Gr&&arguments[0]instanceof ue&&arguments[1]instanceof E){var d=arguments[0],h=arguments[1],p=arguments[2];if(d instanceof Ke)Tr.computeDistance(d,h,p);else if(d instanceof Qe)Tr.computeDistance(d,h,p);else if(d instanceof Be)for(var f=d,g=0;g<f.getNumGeometries();g++){var m=f.getGeometryN(g);Tr.computeDistance(m,h,p)}else p.setMinimum(d.getCoordinate(),h)}else if(arguments[2]instanceof Gr&&arguments[0]instanceof gn&&arguments[1]instanceof E){var y=arguments[1],v=arguments[2],_=arguments[0].closestPoint(y);v.setMinimum(_,y)}};var Mr=function(){this._g0=null,this._g1=null,this._ptDist=new Gr,this._densifyFrac=0;var e=arguments[0],t=arguments[1];this._g0=e,this._g1=t},Or={MaxPointDistanceFilter:{configurable:!0},MaxDensifiedByFractionDistanceFilter:{configurable:!0}};Mr.prototype.getCoordinates=function(){return this._ptDist.getCoordinates()},Mr.prototype.setDensifyFraction=function(e){if(e>1||e<=0)throw new v("Fraction is not in range (0.0 - 1.0]");this._densifyFrac=e},Mr.prototype.compute=function(e,t){this.computeOrientedDistance(e,t,this._ptDist),this.computeOrientedDistance(t,e,this._ptDist)},Mr.prototype.distance=function(){return this.compute(this._g0,this._g1),this._ptDist.getDistance()},Mr.prototype.computeOrientedDistance=function(e,t,n){var r=new Rr(t);if(e.apply(r),n.setMaximum(r.getMaxPointDistance()),this._densifyFrac>0){var i=new Dr(t,this._densifyFrac);e.apply(i),n.setMaximum(i.getMaxPointDistance())}},Mr.prototype.orientedDistance=function(){return this.computeOrientedDistance(this._g0,this._g1,this._ptDist),this._ptDist.getDistance()},Mr.prototype.interfaces_=function(){return[]},Mr.prototype.getClass=function(){return Mr},Mr.distance=function(){if(2===arguments.length)return new Mr(arguments[0],arguments[1]).distance();if(3===arguments.length){var e=arguments[2],t=new Mr(arguments[0],arguments[1]);return t.setDensifyFraction(e),t.distance()}},Or.MaxPointDistanceFilter.get=function(){return Rr},Or.MaxDensifiedByFractionDistanceFilter.get=function(){return Dr},Object.defineProperties(Mr,Or);var Rr=function(){this._maxPtDist=new Gr,this._minPtDist=new Gr,this._euclideanDist=new Tr,this._geom=null;var e=arguments[0];this._geom=e};Rr.prototype.filter=function(e){this._minPtDist.initialize(),Tr.computeDistance(this._geom,e,this._minPtDist),this._maxPtDist.setMaximum(this._minPtDist)},Rr.prototype.getMaxPointDistance=function(){return this._maxPtDist},Rr.prototype.interfaces_=function(){return[pe]},Rr.prototype.getClass=function(){return Rr};var Dr=function(){this._maxPtDist=new Gr,this._minPtDist=new Gr,this._geom=null,this._numSubSegs=0;var e=arguments[0],t=arguments[1];this._geom=e,this._numSubSegs=Math.trunc(Math.round(1/t))};Dr.prototype.filter=function(e,t){if(0===t)return null;for(var n=e.getCoordinate(t-1),r=e.getCoordinate(t),i=(r.x-n.x)/this._numSubSegs,o=(r.y-n.y)/this._numSubSegs,s=0;s<this._numSubSegs;s++){var a=n.x+s*i,l=n.y+s*o,c=new E(a,l);this._minPtDist.initialize(),Tr.computeDistance(this._geom,c,this._minPtDist),this._maxPtDist.setMaximum(this._minPtDist)}},Dr.prototype.isDone=function(){return!1},Dr.prototype.isGeometryChanged=function(){return!1},Dr.prototype.getMaxPointDistance=function(){return this._maxPtDist},Dr.prototype.interfaces_=function(){return[ze]},Dr.prototype.getClass=function(){return Dr};var Nr=function(e,t,n){this._minValidDistance=null,this._maxValidDistance=null,this._minDistanceFound=null,this._maxDistanceFound=null,this._isValid=!0,this._errMsg=null,this._errorLocation=null,this._errorIndicator=null,this._input=e||null,this._bufDistance=t||null,this._result=n||null},Lr={VERBOSE:{configurable:!0},MAX_DISTANCE_DIFF_FRAC:{configurable:!0}};Nr.prototype.checkMaximumDistance=function(e,t,n){var r=new Mr(t,e);if(r.setDensifyFraction(.25),this._maxDistanceFound=r.orientedDistance(),this._maxDistanceFound>n){this._isValid=!1;var i=r.getCoordinates();this._errorLocation=i[1],this._errorIndicator=e.getFactory().createLineString(i),this._errMsg="Distance between buffer curve and input is too large ("+this._maxDistanceFound+" at "+J.toLineString(i[0],i[1])+")"}},Nr.prototype.isValid=function(){var e=Math.abs(this._bufDistance),t=Nr.MAX_DISTANCE_DIFF_FRAC*e;return this._minValidDistance=e-t,this._maxValidDistance=e+t,!(!this._input.isEmpty()&&!this._result.isEmpty())||(this._bufDistance>0?this.checkPositiveValid():this.checkNegativeValid(),Nr.VERBOSE&&W.out.println("Min Dist= "+this._minDistanceFound+"  err= "+(1-this._minDistanceFound/this._bufDistance)+"  Max Dist= "+this._maxDistanceFound+"  err= "+(this._maxDistanceFound/this._bufDistance-1)),this._isValid)},Nr.prototype.checkNegativeValid=function(){if(!(this._input instanceof Qe||this._input instanceof nt||this._input instanceof Be))return null;var e=this.getPolygonLines(this._input);if(this.checkMinimumDistance(e,this._result,this._minValidDistance),!this._isValid)return null;this.checkMaximumDistance(e,this._result,this._maxValidDistance)},Nr.prototype.getErrorIndicator=function(){return this._errorIndicator},Nr.prototype.checkMinimumDistance=function(e,t,n){var r=new Ir(e,t,n);if(this._minDistanceFound=r.distance(),this._minDistanceFound<n){this._isValid=!1;var i=r.nearestPoints();this._errorLocation=r.nearestPoints()[1],this._errorIndicator=e.getFactory().createLineString(i),this._errMsg="Distance between buffer curve and input is too small ("+this._minDistanceFound+" at "+J.toLineString(i[0],i[1])+" )"}},Nr.prototype.checkPositiveValid=function(){var e=this._result.getBoundary();if(this.checkMinimumDistance(this._input,e,this._minValidDistance),!this._isValid)return null;this.checkMaximumDistance(this._input,e,this._maxValidDistance)},Nr.prototype.getErrorLocation=function(){return this._errorLocation},Nr.prototype.getPolygonLines=function(e){for(var t=new we,n=new Er(t),r=wr.getPolygons(e).iterator();r.hasNext();)r.next().apply(n);return e.getFactory().buildGeometry(t)},Nr.prototype.getErrorMessage=function(){return this._errMsg},Nr.prototype.interfaces_=function(){return[]},Nr.prototype.getClass=function(){return Nr},Lr.VERBOSE.get=function(){return!1},Lr.MAX_DISTANCE_DIFF_FRAC.get=function(){return.012},Object.defineProperties(Nr,Lr);var Vr=function(e,t,n){this._isValid=!0,this._errorMsg=null,this._errorLocation=null,this._errorIndicator=null,this._input=e||null,this._distance=t||null,this._result=n||null},Fr={VERBOSE:{configurable:!0},MAX_ENV_DIFF_FRAC:{configurable:!0}};Vr.prototype.isValid=function(){return this.checkPolygonal(),this._isValid?(this.checkExpectedEmpty(),this._isValid?(this.checkEnvelope(),this._isValid?(this.checkArea(),this._isValid?(this.checkDistance(),this._isValid):this._isValid):this._isValid):this._isValid):this._isValid},Vr.prototype.checkEnvelope=function(){if(this._distance<0)return null;var e=this._distance*Vr.MAX_ENV_DIFF_FRAC;0===e&&(e=.001);var t=new q(this._input.getEnvelopeInternal());t.expandBy(this._distance);var n=new q(this._result.getEnvelopeInternal());n.expandBy(e),n.contains(t)||(this._isValid=!1,this._errorMsg="Buffer envelope is incorrect",this._errorIndicator=this._input.getFactory().toGeometry(n)),this.report("Envelope")},Vr.prototype.checkDistance=function(){var e=new Nr(this._input,this._distance,this._result);e.isValid()||(this._isValid=!1,this._errorMsg=e.getErrorMessage(),this._errorLocation=e.getErrorLocation(),this._errorIndicator=e.getErrorIndicator()),this.report("Distance")},Vr.prototype.checkArea=function(){var e=this._input.getArea(),t=this._result.getArea();this._distance>0&&e>t&&(this._isValid=!1,this._errorMsg="Area of positive buffer is smaller than input",this._errorIndicator=this._result),this._distance<0&&e<t&&(this._isValid=!1,this._errorMsg="Area of negative buffer is larger than input",this._errorIndicator=this._result),this.report("Area")},Vr.prototype.checkPolygonal=function(){this._result instanceof Qe||this._result instanceof nt||(this._isValid=!1),this._errorMsg="Result is not polygonal",this._errorIndicator=this._result,this.report("Polygonal")},Vr.prototype.getErrorIndicator=function(){return this._errorIndicator},Vr.prototype.getErrorLocation=function(){return this._errorLocation},Vr.prototype.checkExpectedEmpty=function(){return this._input.getDimension()>=2||this._distance>0?null:(this._result.isEmpty()||(this._isValid=!1,this._errorMsg="Result is non-empty",this._errorIndicator=this._result),void this.report("ExpectedEmpty"))},Vr.prototype.report=function(e){if(!Vr.VERBOSE)return null;W.out.println("Check "+e+": "+(this._isValid?"passed":"FAILED"))},Vr.prototype.getErrorMessage=function(){return this._errorMsg},Vr.prototype.interfaces_=function(){return[]},Vr.prototype.getClass=function(){return Vr},Vr.isValidMsg=function(e,t,n){var r=new Vr(e,t,n);return r.isValid()?null:r.getErrorMessage()},Vr.isValid=function(e,t,n){return!!new Vr(e,t,n).isValid()},Fr.VERBOSE.get=function(){return!1},Fr.MAX_ENV_DIFF_FRAC.get=function(){return.012},Object.defineProperties(Vr,Fr);var zr=function(){this._pts=null,this._data=null;var e=arguments[0],t=arguments[1];this._pts=e,this._data=t};zr.prototype.getCoordinates=function(){return this._pts},zr.prototype.size=function(){return this._pts.length},zr.prototype.getCoordinate=function(e){return this._pts[e]},zr.prototype.isClosed=function(){return this._pts[0].equals(this._pts[this._pts.length-1])},zr.prototype.getSegmentOctant=function(e){return e===this._pts.length-1?-1:dn.octant(this.getCoordinate(e),this.getCoordinate(e+1))},zr.prototype.setData=function(e){this._data=e},zr.prototype.getData=function(){return this._data},zr.prototype.toString=function(){return J.toLineString(new lt(this._pts))},zr.prototype.interfaces_=function(){return[hn]},zr.prototype.getClass=function(){return zr};var Br=function(){this._findAllIntersections=!1,this._isCheckEndSegmentsOnly=!1,this._li=null,this._interiorIntersection=null,this._intSegments=null,this._intersections=new we,this._intersectionCount=0,this._keepIntersections=!0;var e=arguments[0];this._li=e,this._interiorIntersection=null};Br.prototype.getInteriorIntersection=function(){return this._interiorIntersection},Br.prototype.setCheckEndSegmentsOnly=function(e){this._isCheckEndSegmentsOnly=e},Br.prototype.getIntersectionSegments=function(){return this._intSegments},Br.prototype.count=function(){return this._intersectionCount},Br.prototype.getIntersections=function(){return this._intersections},Br.prototype.setFindAllIntersections=function(e){this._findAllIntersections=e},Br.prototype.setKeepIntersections=function(e){this._keepIntersections=e},Br.prototype.processIntersections=function(e,t,n,r){if(!this._findAllIntersections&&this.hasIntersection())return null;if(e===n&&t===r)return null;if(this._isCheckEndSegmentsOnly&&!this.isEndSegment(e,t)&&!this.isEndSegment(n,r))return null;var i=e.getCoordinates()[t],o=e.getCoordinates()[t+1],s=n.getCoordinates()[r],a=n.getCoordinates()[r+1];this._li.computeIntersection(i,o,s,a),this._li.hasIntersection()&&this._li.isInteriorIntersection()&&(this._intSegments=new Array(4).fill(null),this._intSegments[0]=i,this._intSegments[1]=o,this._intSegments[2]=s,this._intSegments[3]=a,this._interiorIntersection=this._li.getIntersection(0),this._keepIntersections&&this._intersections.add(this._interiorIntersection),this._intersectionCount++)},Br.prototype.isEndSegment=function(e,t){return 0===t||t>=e.size()-2},Br.prototype.hasIntersection=function(){return null!==this._interiorIntersection},Br.prototype.isDone=function(){return!this._findAllIntersections&&null!==this._interiorIntersection},Br.prototype.interfaces_=function(){return[Yn]},Br.prototype.getClass=function(){return Br},Br.createAllIntersectionsFinder=function(e){var t=new Br(e);return t.setFindAllIntersections(!0),t},Br.createAnyIntersectionFinder=function(e){return new Br(e)},Br.createIntersectionCounter=function(e){var t=new Br(e);return t.setFindAllIntersections(!0),t.setKeepIntersections(!1),t};var Ur=function(){this._li=new ie,this._segStrings=null,this._findAllIntersections=!1,this._segInt=null,this._isValid=!0;var e=arguments[0];this._segStrings=e};Ur.prototype.execute=function(){if(null!==this._segInt)return null;this.checkInteriorIntersections()},Ur.prototype.getIntersections=function(){return this._segInt.getIntersections()},Ur.prototype.isValid=function(){return this.execute(),this._isValid},Ur.prototype.setFindAllIntersections=function(e){this._findAllIntersections=e},Ur.prototype.checkInteriorIntersections=function(){this._isValid=!0,this._segInt=new Br(this._li),this._segInt.setFindAllIntersections(this._findAllIntersections);var e=new Sn;if(e.setSegmentIntersector(this._segInt),e.computeNodes(this._segStrings),this._segInt.hasIntersection())return this._isValid=!1,null},Ur.prototype.checkValid=function(){if(this.execute(),!this._isValid)throw new kt(this.getErrorMessage(),this._segInt.getInteriorIntersection())},Ur.prototype.getErrorMessage=function(){if(this._isValid)return"no intersections found";var e=this._segInt.getIntersectionSegments();return"found non-noded intersection between "+J.toLineString(e[0],e[1])+" and "+J.toLineString(e[2],e[3])},Ur.prototype.interfaces_=function(){return[]},Ur.prototype.getClass=function(){return Ur},Ur.computeIntersections=function(e){var t=new Ur(e);return t.setFindAllIntersections(!0),t.isValid(),t.getIntersections()};var Wr=function e(){this._nv=null;var t=arguments[0];this._nv=new Ur(e.toSegmentStrings(t))};Wr.prototype.checkValid=function(){this._nv.checkValid()},Wr.prototype.interfaces_=function(){return[]},Wr.prototype.getClass=function(){return Wr},Wr.toSegmentStrings=function(e){for(var t=new we,n=e.iterator();n.hasNext();){var r=n.next();t.add(new zr(r.getCoordinates(),r))}return t},Wr.checkValid=function(e){new Wr(e).checkValid()};var Hr=function(e){this._mapOp=e};Hr.prototype.map=function(e){for(var t=new we,n=0;n<e.getNumGeometries();n++){var r=this._mapOp.map(e.getGeometryN(n));r.isEmpty()||t.add(r)}return e.getFactory().createGeometryCollection(yt.toGeometryArray(t))},Hr.prototype.interfaces_=function(){return[]},Hr.prototype.getClass=function(){return Hr},Hr.map=function(e,t){return new Hr(t).map(e)};var qr=function(){this._op=null,this._geometryFactory=null,this._ptLocator=null,this._lineEdgesList=new we,this._resultLineList=new we;var e=arguments[0],t=arguments[1],n=arguments[2];this._op=e,this._geometryFactory=t,this._ptLocator=n};qr.prototype.collectLines=function(e){for(var t=this._op.getGraph().getEdgeEnds().iterator();t.hasNext();){var n=t.next();this.collectLineEdge(n,e,this._lineEdgesList),this.collectBoundaryTouchEdge(n,e,this._lineEdgesList)}},qr.prototype.labelIsolatedLine=function(e,t){var n=this._ptLocator.locate(e.getCoordinate(),this._op.getArgGeometry(t));e.getLabel().setLocation(t,n)},qr.prototype.build=function(e){return this.findCoveredLineEdges(),this.collectLines(e),this.buildLines(e),this._resultLineList},qr.prototype.collectLineEdge=function(e,t,n){var r=e.getLabel(),i=e.getEdge();e.isLineEdge()&&(e.isVisited()||!Ci.isResultOfOp(r,t)||i.isCovered()||(n.add(i),e.setVisitedEdge(!0)))},qr.prototype.findCoveredLineEdges=function(){for(var e=this._op.getGraph().getNodes().iterator();e.hasNext();)e.next().getEdges().findCoveredLineEdges();for(var t=this._op.getGraph().getEdgeEnds().iterator();t.hasNext();){var n=t.next(),r=n.getEdge();if(n.isLineEdge()&&!r.isCoveredSet()){var i=this._op.isCoveredByA(n.getCoordinate());r.setCovered(i)}}},qr.prototype.labelIsolatedLines=function(e){for(var t=e.iterator();t.hasNext();){var n=t.next(),r=n.getLabel();n.isIsolated()&&(r.isNull(0)?this.labelIsolatedLine(n,0):this.labelIsolatedLine(n,1))}},qr.prototype.buildLines=function(e){for(var t=this._lineEdgesList.iterator();t.hasNext();){var n=t.next(),r=this._geometryFactory.createLineString(n.getCoordinates());this._resultLineList.add(r),n.setInResult(!0)}},qr.prototype.collectBoundaryTouchEdge=function(e,t,n){var r=e.getLabel();return e.isLineEdge()||e.isVisited()||e.isInteriorAreaEdge()||e.getEdge().isInResult()?null:(te.isTrue(!(e.isInResult()||e.getSym().isInResult())||!e.getEdge().isInResult()),void(Ci.isResultOfOp(r,t)&&t===Ci.INTERSECTION&&(n.add(e.getEdge()),e.setVisitedEdge(!0))))},qr.prototype.interfaces_=function(){return[]},qr.prototype.getClass=function(){return qr};var Xr=function(){this._op=null,this._geometryFactory=null,this._resultPointList=new we;var e=arguments[0],t=arguments[1];this._op=e,this._geometryFactory=t};Xr.prototype.filterCoveredNodeToPoint=function(e){var t=e.getCoordinate();if(!this._op.isCoveredByLA(t)){var n=this._geometryFactory.createPoint(t);this._resultPointList.add(n)}},Xr.prototype.extractNonCoveredResultNodes=function(e){for(var t=this._op.getGraph().getNodes().iterator();t.hasNext();){var n=t.next();if(!n.isInResult()&&!n.isIncidentEdgeInResult()&&(0===n.getEdges().getDegree()||e===Ci.INTERSECTION)){var r=n.getLabel();Ci.isResultOfOp(r,e)&&this.filterCoveredNodeToPoint(n)}}},Xr.prototype.build=function(e){return this.extractNonCoveredResultNodes(e),this._resultPointList},Xr.prototype.interfaces_=function(){return[]},Xr.prototype.getClass=function(){return Xr};var Yr=function(){this._inputGeom=null,this._factory=null,this._pruneEmptyGeometry=!0,this._preserveGeometryCollectionType=!0,this._preserveCollections=!1,this._preserveType=!1};Yr.prototype.transformPoint=function(e,t){return this._factory.createPoint(this.transformCoordinates(e.getCoordinateSequence(),e))},Yr.prototype.transformPolygon=function(e,t){var n=!0,r=this.transformLinearRing(e.getExteriorRing(),e);null!==r&&r instanceof tt&&!r.isEmpty()||(n=!1);for(var i=new we,o=0;o<e.getNumInteriorRing();o++){var s=this.transformLinearRing(e.getInteriorRingN(o),e);null===s||s.isEmpty()||(s instanceof tt||(n=!1),i.add(s))}if(n)return this._factory.createPolygon(r,i.toArray([]));var a=new we;return null!==r&&a.add(r),a.addAll(i),this._factory.buildGeometry(a)},Yr.prototype.createCoordinateSequence=function(e){return this._factory.getCoordinateSequenceFactory().create(e)},Yr.prototype.getInputGeometry=function(){return this._inputGeom},Yr.prototype.transformMultiLineString=function(e,t){for(var n=new we,r=0;r<e.getNumGeometries();r++){var i=this.transformLineString(e.getGeometryN(r),e);null!==i&&(i.isEmpty()||n.add(i))}return this._factory.buildGeometry(n)},Yr.prototype.transformCoordinates=function(e,t){return this.copy(e)},Yr.prototype.transformLineString=function(e,t){return this._factory.createLineString(this.transformCoordinates(e.getCoordinateSequence(),e))},Yr.prototype.transformMultiPoint=function(e,t){for(var n=new we,r=0;r<e.getNumGeometries();r++){var i=this.transformPoint(e.getGeometryN(r),e);null!==i&&(i.isEmpty()||n.add(i))}return this._factory.buildGeometry(n)},Yr.prototype.transformMultiPolygon=function(e,t){for(var n=new we,r=0;r<e.getNumGeometries();r++){var i=this.transformPolygon(e.getGeometryN(r),e);null!==i&&(i.isEmpty()||n.add(i))}return this._factory.buildGeometry(n)},Yr.prototype.copy=function(e){return e.copy()},Yr.prototype.transformGeometryCollection=function(e,t){for(var n=new we,r=0;r<e.getNumGeometries();r++){var i=this.transform(e.getGeometryN(r));null!==i&&(this._pruneEmptyGeometry&&i.isEmpty()||n.add(i))}return this._preserveGeometryCollectionType?this._factory.createGeometryCollection(yt.toGeometryArray(n)):this._factory.buildGeometry(n)},Yr.prototype.transform=function(e){if(this._inputGeom=e,this._factory=e.getFactory(),e instanceof $e)return this.transformPoint(e,null);if(e instanceof et)return this.transformMultiPoint(e,null);if(e instanceof tt)return this.transformLinearRing(e,null);if(e instanceof Ke)return this.transformLineString(e,null);if(e instanceof Ue)return this.transformMultiLineString(e,null);if(e instanceof Qe)return this.transformPolygon(e,null);if(e instanceof nt)return this.transformMultiPolygon(e,null);if(e instanceof Be)return this.transformGeometryCollection(e,null);throw new v("Unknown Geometry subtype: "+e.getClass().getName())},Yr.prototype.transformLinearRing=function(e,t){var n=this.transformCoordinates(e.getCoordinateSequence(),e);if(null===n)return this._factory.createLinearRing(null);var r=n.size();return r>0&&r<4&&!this._preserveType?this._factory.createLineString(n):this._factory.createLinearRing(n)},Yr.prototype.interfaces_=function(){return[]},Yr.prototype.getClass=function(){return Yr};var Kr=function e(){if(this._snapTolerance=0,this._srcPts=null,this._seg=new gn,this._allowSnappingToSourceVertices=!1,this._isClosed=!1,arguments[0]instanceof Ke&&"number"==typeof arguments[1]){var t=arguments[1];e.call(this,arguments[0].getCoordinates(),t)}else if(arguments[0]instanceof Array&&"number"==typeof arguments[1]){var n=arguments[0],r=arguments[1];this._srcPts=n,this._isClosed=e.isClosed(n),this._snapTolerance=r}};Kr.prototype.snapVertices=function(e,t){for(var n=this._isClosed?e.size()-1:e.size(),r=0;r<n;r++){var i=e.get(r),o=this.findSnapForVertex(i,t);null!==o&&(e.set(r,new E(o)),0===r&&this._isClosed&&e.set(e.size()-1,new E(o)))}},Kr.prototype.findSnapForVertex=function(e,t){for(var n=0;n<t.length;n++){if(e.equals2D(t[n]))return null;if(e.distance(t[n])<this._snapTolerance)return t[n]}return null},Kr.prototype.snapTo=function(e){var t=new Pe(this._srcPts);return this.snapVertices(t,e),this.snapSegments(t,e),t.toCoordinateArray()},Kr.prototype.snapSegments=function(e,t){if(0===t.length)return null;var n=t.length;t[0].equals2D(t[t.length-1])&&(n=t.length-1);for(var r=0;r<n;r++){var i=t[r],o=this.findSegmentIndexToSnap(i,e);o>=0&&e.add(o+1,new E(i),!1)}},Kr.prototype.findSegmentIndexToSnap=function(e,t){for(var n=_.MAX_VALUE,r=-1,i=0;i<t.size()-1;i++){if(this._seg.p0=t.get(i),this._seg.p1=t.get(i+1),this._seg.p0.equals2D(e)||this._seg.p1.equals2D(e)){if(this._allowSnappingToSourceVertices)continue;return-1}var o=this._seg.distance(e);o<this._snapTolerance&&o<n&&(n=o,r=i)}return r},Kr.prototype.setAllowSnappingToSourceVertices=function(e){this._allowSnappingToSourceVertices=e},Kr.prototype.interfaces_=function(){return[]},Kr.prototype.getClass=function(){return Kr},Kr.isClosed=function(e){return!(e.length<=1)&&e[0].equals2D(e[e.length-1])};var Zr=function(e){this._srcGeom=e||null},$r={SNAP_PRECISION_FACTOR:{configurable:!0}};Zr.prototype.snapTo=function(e,t){var n=this.extractTargetCoordinates(e);return new Jr(t,n).transform(this._srcGeom)},Zr.prototype.snapToSelf=function(e,t){var n=this.extractTargetCoordinates(this._srcGeom),r=new Jr(e,n,!0).transform(this._srcGeom),i=r;return t&&I(i,Je)&&(i=r.buffer(0)),i},Zr.prototype.computeSnapTolerance=function(e){return this.computeMinimumSegmentLength(e)/10},Zr.prototype.extractTargetCoordinates=function(e){for(var t=new p,n=e.getCoordinates(),r=0;r<n.length;r++)t.add(n[r]);return t.toArray(new Array(0).fill(null))},Zr.prototype.computeMinimumSegmentLength=function(e){for(var t=_.MAX_VALUE,n=0;n<e.length-1;n++){var r=e[n].distance(e[n+1]);r<t&&(t=r)}return t},Zr.prototype.interfaces_=function(){return[]},Zr.prototype.getClass=function(){return Zr},Zr.snap=function(e,t,n){var r=new Array(2).fill(null),i=new Zr(e);r[0]=i.snapTo(t,n);var o=new Zr(t);return r[1]=o.snapTo(r[0],n),r},Zr.computeOverlaySnapTolerance=function(){if(1===arguments.length){var e=arguments[0],t=Zr.computeSizeBasedSnapTolerance(e),n=e.getPrecisionModel();if(n.getType()===pt.FIXED){var r=1/n.getScale()*2/1.415;r>t&&(t=r)}return t}if(2===arguments.length){var i=arguments[0],o=arguments[1];return Math.min(Zr.computeOverlaySnapTolerance(i),Zr.computeOverlaySnapTolerance(o))}},Zr.computeSizeBasedSnapTolerance=function(e){var t=e.getEnvelopeInternal();return Math.min(t.getHeight(),t.getWidth())*Zr.SNAP_PRECISION_FACTOR},Zr.snapToSelf=function(e,t,n){return new Zr(e).snapToSelf(t,n)},$r.SNAP_PRECISION_FACTOR.get=function(){return 1e-9},Object.defineProperties(Zr,$r);var Jr=function(e){function t(t,n,r){e.call(this),this._snapTolerance=t||null,this._snapPts=n||null,this._isSelfSnap=void 0!==r&&r}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.snapLine=function(e,t){var n=new Kr(e,this._snapTolerance);return n.setAllowSnappingToSourceVertices(this._isSelfSnap),n.snapTo(t)},t.prototype.transformCoordinates=function(e,t){var n=e.toCoordinateArray(),r=this.snapLine(n,this._snapPts);return this._factory.getCoordinateSequenceFactory().create(r)},t.prototype.interfaces_=function(){return[]},t.prototype.getClass=function(){return t},t}(Yr),Qr=function(){this._isFirst=!0,this._commonMantissaBitsCount=53,this._commonBits=0,this._commonSignExp=null};Qr.prototype.getCommon=function(){return _.longBitsToDouble(this._commonBits)},Qr.prototype.add=function(e){var t=_.doubleToLongBits(e);return this._isFirst?(this._commonBits=t,this._commonSignExp=Qr.signExpBits(this._commonBits),this._isFirst=!1,null):Qr.signExpBits(t)!==this._commonSignExp?(this._commonBits=0,null):(this._commonMantissaBitsCount=Qr.numCommonMostSigMantissaBits(this._commonBits,t),void(this._commonBits=Qr.zeroLowerBits(this._commonBits,64-(12+this._commonMantissaBitsCount))))},Qr.prototype.toString=function(){if(1===arguments.length){var e=arguments[0],t=_.longBitsToDouble(e),n="0000000000000000000000000000000000000000000000000000000000000000"+_.toBinaryString(e),r=n.substring(n.length-64);return r.substring(0,1)+"  "+r.substring(1,12)+"(exp) "+r.substring(12)+" [ "+t+" ]"}},Qr.prototype.interfaces_=function(){return[]},Qr.prototype.getClass=function(){return Qr},Qr.getBit=function(e,t){return 0!=(e&1<<t)?1:0},Qr.signExpBits=function(e){return e>>52},Qr.zeroLowerBits=function(e,t){return e&~((1<<t)-1)},Qr.numCommonMostSigMantissaBits=function(e,t){for(var n=0,r=52;r>=0;r--){if(Qr.getBit(e,r)!==Qr.getBit(t,r))return n;n++}return 52};var ei=function(){this._commonCoord=null,this._ccFilter=new ni},ti={CommonCoordinateFilter:{configurable:!0},Translater:{configurable:!0}};ei.prototype.addCommonBits=function(e){var t=new ri(this._commonCoord);e.apply(t),e.geometryChanged()},ei.prototype.removeCommonBits=function(e){if(0===this._commonCoord.x&&0===this._commonCoord.y)return e;var t=new E(this._commonCoord);t.x=-t.x,t.y=-t.y;var n=new ri(t);return e.apply(n),e.geometryChanged(),e},ei.prototype.getCommonCoordinate=function(){return this._commonCoord},ei.prototype.add=function(e){e.apply(this._ccFilter),this._commonCoord=this._ccFilter.getCommonCoordinate()},ei.prototype.interfaces_=function(){return[]},ei.prototype.getClass=function(){return ei},ti.CommonCoordinateFilter.get=function(){return ni},ti.Translater.get=function(){return ri},Object.defineProperties(ei,ti);var ni=function(){this._commonBitsX=new Qr,this._commonBitsY=new Qr};ni.prototype.filter=function(e){this._commonBitsX.add(e.x),this._commonBitsY.add(e.y)},ni.prototype.getCommonCoordinate=function(){return new E(this._commonBitsX.getCommon(),this._commonBitsY.getCommon())},ni.prototype.interfaces_=function(){return[pe]},ni.prototype.getClass=function(){return ni};var ri=function(){this.trans=null;var e=arguments[0];this.trans=e};ri.prototype.filter=function(e,t){var n=e.getOrdinate(t,0)+this.trans.x,r=e.getOrdinate(t,1)+this.trans.y;e.setOrdinate(t,0,n),e.setOrdinate(t,1,r)},ri.prototype.isDone=function(){return!1},ri.prototype.isGeometryChanged=function(){return!0},ri.prototype.interfaces_=function(){return[ze]},ri.prototype.getClass=function(){return ri};var ii=function(e,t){this._geom=new Array(2).fill(null),this._snapTolerance=null,this._cbr=null,this._geom[0]=e,this._geom[1]=t,this.computeSnapTolerance()};ii.prototype.selfSnap=function(e){return new Zr(e).snapTo(e,this._snapTolerance)},ii.prototype.removeCommonBits=function(e){this._cbr=new ei,this._cbr.add(e[0]),this._cbr.add(e[1]);var t=new Array(2).fill(null);return t[0]=this._cbr.removeCommonBits(e[0].copy()),t[1]=this._cbr.removeCommonBits(e[1].copy()),t},ii.prototype.prepareResult=function(e){return this._cbr.addCommonBits(e),e},ii.prototype.getResultGeometry=function(e){var t=this.snap(this._geom),n=Ci.overlayOp(t[0],t[1],e);return this.prepareResult(n)},ii.prototype.checkValid=function(e){e.isValid()||W.out.println("Snapped geometry is invalid")},ii.prototype.computeSnapTolerance=function(){this._snapTolerance=Zr.computeOverlaySnapTolerance(this._geom[0],this._geom[1])},ii.prototype.snap=function(e){var t=this.removeCommonBits(e);return Zr.snap(t[0],t[1],this._snapTolerance)},ii.prototype.interfaces_=function(){return[]},ii.prototype.getClass=function(){return ii},ii.overlayOp=function(e,t,n){return new ii(e,t).getResultGeometry(n)},ii.union=function(e,t){return ii.overlayOp(e,t,Ci.UNION)},ii.intersection=function(e,t){return ii.overlayOp(e,t,Ci.INTERSECTION)},ii.symDifference=function(e,t){return ii.overlayOp(e,t,Ci.SYMDIFFERENCE)},ii.difference=function(e,t){return ii.overlayOp(e,t,Ci.DIFFERENCE)};var oi=function(e,t){this._geom=new Array(2).fill(null),this._geom[0]=e,this._geom[1]=t};oi.prototype.getResultGeometry=function(e){var t=null,n=!1,r=null;try{t=Ci.overlayOp(this._geom[0],this._geom[1],e),n=!0}catch(e){if(!(e instanceof Q))throw e;r=e}if(!n)try{t=ii.overlayOp(this._geom[0],this._geom[1],e)}catch(e){throw e instanceof Q?r:e}return t},oi.prototype.interfaces_=function(){return[]},oi.prototype.getClass=function(){return oi},oi.overlayOp=function(e,t,n){return new oi(e,t).getResultGeometry(n)},oi.union=function(e,t){return oi.overlayOp(e,t,Ci.UNION)},oi.intersection=function(e,t){return oi.overlayOp(e,t,Ci.INTERSECTION)},oi.symDifference=function(e,t){return oi.overlayOp(e,t,Ci.SYMDIFFERENCE)},oi.difference=function(e,t){return oi.overlayOp(e,t,Ci.DIFFERENCE)};var si=function(){this.mce=null,this.chainIndex=null;var e=arguments[0],t=arguments[1];this.mce=e,this.chainIndex=t};si.prototype.computeIntersections=function(e,t){this.mce.computeIntersectsForChain(this.chainIndex,e.mce,e.chainIndex,t)},si.prototype.interfaces_=function(){return[]},si.prototype.getClass=function(){return si};var ai=function e(){if(this._label=null,this._xValue=null,this._eventType=null,this._insertEvent=null,this._deleteEventIndex=null,this._obj=null,2===arguments.length){var t=arguments[0],n=arguments[1];this._eventType=e.DELETE,this._xValue=t,this._insertEvent=n}else if(3===arguments.length){var r=arguments[0],i=arguments[1],o=arguments[2];this._eventType=e.INSERT,this._label=r,this._xValue=i,this._obj=o}},li={INSERT:{configurable:!0},DELETE:{configurable:!0}};ai.prototype.isDelete=function(){return this._eventType===ai.DELETE},ai.prototype.setDeleteEventIndex=function(e){this._deleteEventIndex=e},ai.prototype.getObject=function(){return this._obj},ai.prototype.compareTo=function(e){var t=e;return this._xValue<t._xValue?-1:this._xValue>t._xValue?1:this._eventType<t._eventType?-1:this._eventType>t._eventType?1:0},ai.prototype.getInsertEvent=function(){return this._insertEvent},ai.prototype.isInsert=function(){return this._eventType===ai.INSERT},ai.prototype.isSameLabel=function(e){return null!==this._label&&this._label===e._label},ai.prototype.getDeleteEventIndex=function(){return this._deleteEventIndex},ai.prototype.interfaces_=function(){return[x]},ai.prototype.getClass=function(){return ai},li.INSERT.get=function(){return 1},li.DELETE.get=function(){return 2},Object.defineProperties(ai,li);var ci=function(){};ci.prototype.interfaces_=function(){return[]},ci.prototype.getClass=function(){return ci};var ui=function(){this._hasIntersection=!1,this._hasProper=!1,this._hasProperInterior=!1,this._properIntersectionPoint=null,this._li=null,this._includeProper=null,this._recordIsolated=null,this._isSelfIntersection=null,this._numIntersections=0,this.numTests=0,this._bdyNodes=null,this._isDone=!1,this._isDoneWhenProperInt=!1;var e=arguments[0],t=arguments[1],n=arguments[2];this._li=e,this._includeProper=t,this._recordIsolated=n};ui.prototype.isTrivialIntersection=function(e,t,n,r){if(e===n&&1===this._li.getIntersectionNum()){if(ui.isAdjacentSegments(t,r))return!0;if(e.isClosed()){var i=e.getNumPoints()-1;if(0===t&&r===i||0===r&&t===i)return!0}}return!1},ui.prototype.getProperIntersectionPoint=function(){return this._properIntersectionPoint},ui.prototype.setIsDoneIfProperInt=function(e){this._isDoneWhenProperInt=e},ui.prototype.hasProperInteriorIntersection=function(){return this._hasProperInterior},ui.prototype.isBoundaryPointInternal=function(e,t){for(var n=t.iterator();n.hasNext();){var r=n.next().getCoordinate();if(e.isIntersection(r))return!0}return!1},ui.prototype.hasProperIntersection=function(){return this._hasProper},ui.prototype.hasIntersection=function(){return this._hasIntersection},ui.prototype.isDone=function(){return this._isDone},ui.prototype.isBoundaryPoint=function(e,t){return null!==t&&(!!this.isBoundaryPointInternal(e,t[0])||!!this.isBoundaryPointInternal(e,t[1]))},ui.prototype.setBoundaryNodes=function(e,t){this._bdyNodes=new Array(2).fill(null),this._bdyNodes[0]=e,this._bdyNodes[1]=t},ui.prototype.addIntersections=function(e,t,n,r){if(e===n&&t===r)return null;this.numTests++;var i=e.getCoordinates()[t],o=e.getCoordinates()[t+1],s=n.getCoordinates()[r],a=n.getCoordinates()[r+1];this._li.computeIntersection(i,o,s,a),this._li.hasIntersection()&&(this._recordIsolated&&(e.setIsolated(!1),n.setIsolated(!1)),this._numIntersections++,this.isTrivialIntersection(e,t,n,r)||(this._hasIntersection=!0,!this._includeProper&&this._li.isProper()||(e.addIntersections(this._li,t,0),n.addIntersections(this._li,r,1)),this._li.isProper()&&(this._properIntersectionPoint=this._li.getIntersection(0).copy(),this._hasProper=!0,this._isDoneWhenProperInt&&(this._isDone=!0),this.isBoundaryPoint(this._li,this._bdyNodes)||(this._hasProperInterior=!0))))},ui.prototype.interfaces_=function(){return[]},ui.prototype.getClass=function(){return ui},ui.isAdjacentSegments=function(e,t){return 1===Math.abs(e-t)};var di=function(e){function t(){e.call(this),this.events=new we,this.nOverlaps=null}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.prepareEvents=function(){Qt.sort(this.events);for(var e=0;e<this.events.size();e++){var t=this.events.get(e);t.isDelete()&&t.getInsertEvent().setDeleteEventIndex(e)}},t.prototype.computeIntersections=function(){if(1===arguments.length){var e=arguments[0];this.nOverlaps=0,this.prepareEvents();for(var t=0;t<this.events.size();t++){var n=this.events.get(t);if(n.isInsert()&&this.processOverlaps(t,n.getDeleteEventIndex(),n,e),e.isDone())break}}else if(3===arguments.length)if(arguments[2]instanceof ui&&I(arguments[0],Se)&&I(arguments[1],Se)){var r=arguments[0],i=arguments[1],o=arguments[2];this.addEdges(r,r),this.addEdges(i,i),this.computeIntersections(o)}else if("boolean"==typeof arguments[2]&&I(arguments[0],Se)&&arguments[1]instanceof ui){var s=arguments[0],a=arguments[1];arguments[2]?this.addEdges(s,null):this.addEdges(s),this.computeIntersections(a)}},t.prototype.addEdge=function(e,t){for(var n=e.getMonotoneChainEdge(),r=n.getStartIndexes(),i=0;i<r.length-1;i++){var o=new si(n,i),s=new ai(t,n.getMinX(i),o);this.events.add(s),this.events.add(new ai(n.getMaxX(i),s))}},t.prototype.processOverlaps=function(e,t,n,r){for(var i=n.getObject(),o=e;o<t;o++){var s=this.events.get(o);if(s.isInsert()){var a=s.getObject();n.isSameLabel(s)||(i.computeIntersections(a,r),this.nOverlaps++)}}},t.prototype.addEdges=function(){if(1===arguments.length)for(var e=arguments[0].iterator();e.hasNext();){var t=e.next();this.addEdge(t,t)}else if(2===arguments.length)for(var n=arguments[1],r=arguments[0].iterator();r.hasNext();){var i=r.next();this.addEdge(i,n)}},t.prototype.interfaces_=function(){return[]},t.prototype.getClass=function(){return t},t}(ci),hi=function(){this._min=_.POSITIVE_INFINITY,this._max=_.NEGATIVE_INFINITY},pi={NodeComparator:{configurable:!0}};hi.prototype.getMin=function(){return this._min},hi.prototype.intersects=function(e,t){return!(this._min>t||this._max<e)},hi.prototype.getMax=function(){return this._max},hi.prototype.toString=function(){return J.toLineString(new E(this._min,0),new E(this._max,0))},hi.prototype.interfaces_=function(){return[]},hi.prototype.getClass=function(){return hi},pi.NodeComparator.get=function(){return fi},Object.defineProperties(hi,pi);var fi=function(){};fi.prototype.compare=function(e,t){var n=e,r=t,i=(n._min+n._max)/2,o=(r._min+r._max)/2;return i<o?-1:i>o?1:0},fi.prototype.interfaces_=function(){return[w]},fi.prototype.getClass=function(){return fi};var gi=function(e){function t(){e.call(this),this._item=null;var t=arguments[0],n=arguments[1],r=arguments[2];this._min=t,this._max=n,this._item=r}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.query=function(e,t,n){if(!this.intersects(e,t))return null;n.visitItem(this._item)},t.prototype.interfaces_=function(){return[]},t.prototype.getClass=function(){return t},t}(hi),mi=function(e){function t(){e.call(this),this._node1=null,this._node2=null;var t=arguments[0],n=arguments[1];this._node1=t,this._node2=n,this.buildExtent(this._node1,this._node2)}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.buildExtent=function(e,t){this._min=Math.min(e._min,t._min),this._max=Math.max(e._max,t._max)},t.prototype.query=function(e,t,n){if(!this.intersects(e,t))return null;null!==this._node1&&this._node1.query(e,t,n),null!==this._node2&&this._node2.query(e,t,n)},t.prototype.interfaces_=function(){return[]},t.prototype.getClass=function(){return t},t}(hi),yi=function(){this._leaves=new we,this._root=null,this._level=0};yi.prototype.buildTree=function(){Qt.sort(this._leaves,new hi.NodeComparator);for(var e=this._leaves,t=null,n=new we;;){if(this.buildLevel(e,n),1===n.size())return n.get(0);t=e,e=n,n=t}},yi.prototype.insert=function(e,t,n){if(null!==this._root)throw new Error("Index cannot be added to once it has been queried");this._leaves.add(new gi(e,t,n))},yi.prototype.query=function(e,t,n){this.init(),this._root.query(e,t,n)},yi.prototype.buildRoot=function(){if(null!==this._root)return null;this._root=this.buildTree()},yi.prototype.printNode=function(e){W.out.println(J.toLineString(new E(e._min,this._level),new E(e._max,this._level)))},yi.prototype.init=function(){if(null!==this._root)return null;this.buildRoot()},yi.prototype.buildLevel=function(e,t){this._level++,t.clear();for(var n=0;n<e.size();n+=2){var r=e.get(n);if(null===(n+1<e.size()?e.get(n):null))t.add(r);else{var i=new mi(e.get(n),e.get(n+1));t.add(i)}}},yi.prototype.interfaces_=function(){return[]},yi.prototype.getClass=function(){return yi};var vi=function(){this._items=new we};vi.prototype.visitItem=function(e){this._items.add(e)},vi.prototype.getItems=function(){return this._items},vi.prototype.interfaces_=function(){return[Kt]},vi.prototype.getClass=function(){return vi};var _i=function(){this._index=null;var e=arguments[0];if(!I(e,Je))throw new v("Argument must be Polygonal");this._index=new Si(e)},bi={SegmentVisitor:{configurable:!0},IntervalIndexedGeometry:{configurable:!0}};_i.prototype.locate=function(e){var t=new se(e),n=new xi(t);return this._index.query(e.y,e.y,n),t.getLocation()},_i.prototype.interfaces_=function(){return[Fn]},_i.prototype.getClass=function(){return _i},bi.SegmentVisitor.get=function(){return xi},bi.IntervalIndexedGeometry.get=function(){return Si},Object.defineProperties(_i,bi);var xi=function(){this._counter=null;var e=arguments[0];this._counter=e};xi.prototype.visitItem=function(e){var t=e;this._counter.countSegment(t.getCoordinate(0),t.getCoordinate(1))},xi.prototype.interfaces_=function(){return[Kt]},xi.prototype.getClass=function(){return xi};var Si=function(){this._index=new yi;var e=arguments[0];this.init(e)};Si.prototype.init=function(e){for(var t=Er.getLines(e).iterator();t.hasNext();){var n=t.next().getCoordinates();this.addLine(n)}},Si.prototype.addLine=function(e){for(var t=1;t<e.length;t++){var n=new gn(e[t-1],e[t]),r=Math.min(n.p0.y,n.p1.y),i=Math.max(n.p0.y,n.p1.y);this._index.insert(r,i,n)}},Si.prototype.query=function(){if(2===arguments.length){var e=arguments[0],t=arguments[1],n=new vi;return this._index.query(e,t,n),n.getItems()}if(3===arguments.length){var r=arguments[0],i=arguments[1],o=arguments[2];this._index.query(r,i,o)}},Si.prototype.interfaces_=function(){return[]},Si.prototype.getClass=function(){return Si};var wi=function(e){function t(){if(e.call(this),this._parentGeom=null,this._lineEdgeMap=new ht,this._boundaryNodeRule=null,this._useBoundaryDeterminationRule=!0,this._argIndex=null,this._boundaryNodes=null,this._hasTooFewPoints=!1,this._invalidPoint=null,this._areaPtLocator=null,this._ptLocator=new Pr,2===arguments.length){var t=arguments[0],n=arguments[1],r=fe.OGC_SFS_BOUNDARY_RULE;this._argIndex=t,this._parentGeom=n,this._boundaryNodeRule=r,null!==n&&this.add(n)}else if(3===arguments.length){var i=arguments[0],o=arguments[1],s=arguments[2];this._argIndex=i,this._parentGeom=o,this._boundaryNodeRule=s,null!==o&&this.add(o)}}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.insertBoundaryPoint=function(e,n){var r=this._nodes.addNode(n).getLabel(),i=1;k.NONE,r.getLocation(e,Pt.ON)===k.BOUNDARY&&i++;var o=t.determineBoundary(this._boundaryNodeRule,i);r.setLocation(e,o)},t.prototype.computeSelfNodes=function(){if(2===arguments.length){var e=arguments[0],t=arguments[1];return this.computeSelfNodes(e,t,!1)}if(3===arguments.length){var n=arguments[1],r=arguments[2],i=new ui(arguments[0],!0,!1);i.setIsDoneIfProperInt(r);var o=this.createEdgeSetIntersector(),s=this._parentGeom instanceof tt||this._parentGeom instanceof Qe||this._parentGeom instanceof nt,a=n||!s;return o.computeIntersections(this._edges,i,a),this.addSelfIntersectionNodes(this._argIndex),i}},t.prototype.computeSplitEdges=function(e){for(var t=this._edges.iterator();t.hasNext();)t.next().eiList.addSplitEdges(e)},t.prototype.computeEdgeIntersections=function(e,t,n){var r=new ui(t,n,!0);return r.setBoundaryNodes(this.getBoundaryNodes(),e.getBoundaryNodes()),this.createEdgeSetIntersector().computeIntersections(this._edges,e._edges,r),r},t.prototype.getGeometry=function(){return this._parentGeom},t.prototype.getBoundaryNodeRule=function(){return this._boundaryNodeRule},t.prototype.hasTooFewPoints=function(){return this._hasTooFewPoints},t.prototype.addPoint=function(){if(arguments[0]instanceof $e){var e=arguments[0].getCoordinate();this.insertPoint(this._argIndex,e,k.INTERIOR)}else if(arguments[0]instanceof E){var t=arguments[0];this.insertPoint(this._argIndex,t,k.INTERIOR)}},t.prototype.addPolygon=function(e){this.addPolygonRing(e.getExteriorRing(),k.EXTERIOR,k.INTERIOR);for(var t=0;t<e.getNumInteriorRing();t++){var n=e.getInteriorRingN(t);this.addPolygonRing(n,k.INTERIOR,k.EXTERIOR)}},t.prototype.addEdge=function(e){this.insertEdge(e);var t=e.getCoordinates();this.insertPoint(this._argIndex,t[0],k.BOUNDARY),this.insertPoint(this._argIndex,t[t.length-1],k.BOUNDARY)},t.prototype.addLineString=function(e){var t=Ce.removeRepeatedPoints(e.getCoordinates());if(t.length<2)return this._hasTooFewPoints=!0,this._invalidPoint=t[0],null;var n=new nr(t,new Tt(this._argIndex,k.INTERIOR));this._lineEdgeMap.put(e,n),this.insertEdge(n),te.isTrue(t.length>=2,"found LineString with single point"),this.insertBoundaryPoint(this._argIndex,t[0]),this.insertBoundaryPoint(this._argIndex,t[t.length-1])},t.prototype.getInvalidPoint=function(){return this._invalidPoint},t.prototype.getBoundaryPoints=function(){for(var e=this.getBoundaryNodes(),t=new Array(e.size()).fill(null),n=0,r=e.iterator();r.hasNext();){var i=r.next();t[n++]=i.getCoordinate().copy()}return t},t.prototype.getBoundaryNodes=function(){return null===this._boundaryNodes&&(this._boundaryNodes=this._nodes.getBoundaryNodes(this._argIndex)),this._boundaryNodes},t.prototype.addSelfIntersectionNode=function(e,t,n){if(this.isBoundaryNode(e,t))return null;n===k.BOUNDARY&&this._useBoundaryDeterminationRule?this.insertBoundaryPoint(e,t):this.insertPoint(e,t,n)},t.prototype.addPolygonRing=function(e,t,n){if(e.isEmpty())return null;var r=Ce.removeRepeatedPoints(e.getCoordinates());if(r.length<4)return this._hasTooFewPoints=!0,this._invalidPoint=r[0],null;var i=t,o=n;ae.isCCW(r)&&(i=n,o=t);var s=new nr(r,new Tt(this._argIndex,k.BOUNDARY,i,o));this._lineEdgeMap.put(e,s),this.insertEdge(s),this.insertPoint(this._argIndex,r[0],k.BOUNDARY)},t.prototype.insertPoint=function(e,t,n){var r=this._nodes.addNode(t),i=r.getLabel();null===i?r._label=new Tt(e,n):i.setLocation(e,n)},t.prototype.createEdgeSetIntersector=function(){return new di},t.prototype.addSelfIntersectionNodes=function(e){for(var t=this._edges.iterator();t.hasNext();)for(var n=t.next(),r=n.getLabel().getLocation(e),i=n.eiList.iterator();i.hasNext();){var o=i.next();this.addSelfIntersectionNode(e,o.coord,r)}},t.prototype.add=function(){if(1!==arguments.length)return e.prototype.add.apply(this,arguments);var t=arguments[0];if(t.isEmpty())return null;if(t instanceof nt&&(this._useBoundaryDeterminationRule=!1),t instanceof Qe)this.addPolygon(t);else if(t instanceof Ke)this.addLineString(t);else if(t instanceof $e)this.addPoint(t);else if(t instanceof et)this.addCollection(t);else if(t instanceof Ue)this.addCollection(t);else if(t instanceof nt)this.addCollection(t);else{if(!(t instanceof Be))throw new Error(t.getClass().getName());this.addCollection(t)}},t.prototype.addCollection=function(e){for(var t=0;t<e.getNumGeometries();t++){var n=e.getGeometryN(t);this.add(n)}},t.prototype.locate=function(e){return I(this._parentGeom,Je)&&this._parentGeom.getNumGeometries()>50?(null===this._areaPtLocator&&(this._areaPtLocator=new _i(this._parentGeom)),this._areaPtLocator.locate(e)):this._ptLocator.locate(e,this._parentGeom)},t.prototype.findEdge=function(){if(1===arguments.length){var t=arguments[0];return this._lineEdgeMap.get(t)}return e.prototype.findEdge.apply(this,arguments)},t.prototype.interfaces_=function(){return[]},t.prototype.getClass=function(){return t},t.determineBoundary=function(e,t){return e.isInBoundary(t)?k.BOUNDARY:k.INTERIOR},t}(Wt),Ei=function(){if(this._li=new ie,this._resultPrecisionModel=null,this._arg=null,1===arguments.length){var e=arguments[0];this.setComputationPrecision(e.getPrecisionModel()),this._arg=new Array(1).fill(null),this._arg[0]=new wi(0,e)}else if(2===arguments.length){var t=arguments[0],n=arguments[1],r=fe.OGC_SFS_BOUNDARY_RULE;t.getPrecisionModel().compareTo(n.getPrecisionModel())>=0?this.setComputationPrecision(t.getPrecisionModel()):this.setComputationPrecision(n.getPrecisionModel()),this._arg=new Array(2).fill(null),this._arg[0]=new wi(0,t,r),this._arg[1]=new wi(1,n,r)}else if(3===arguments.length){var i=arguments[0],o=arguments[1],s=arguments[2];i.getPrecisionModel().compareTo(o.getPrecisionModel())>=0?this.setComputationPrecision(i.getPrecisionModel()):this.setComputationPrecision(o.getPrecisionModel()),this._arg=new Array(2).fill(null),this._arg[0]=new wi(0,i,s),this._arg[1]=new wi(1,o,s)}};Ei.prototype.getArgGeometry=function(e){return this._arg[e].getGeometry()},Ei.prototype.setComputationPrecision=function(e){this._resultPrecisionModel=e,this._li.setPrecisionModel(this._resultPrecisionModel)},Ei.prototype.interfaces_=function(){return[]},Ei.prototype.getClass=function(){return Ei};var Pi=function(){};Pi.prototype.interfaces_=function(){return[]},Pi.prototype.getClass=function(){return Pi},Pi.map=function(){if(arguments[0]instanceof ue&&I(arguments[1],Pi.MapOp)){for(var e=arguments[0],t=arguments[1],n=new we,r=0;r<e.getNumGeometries();r++){var i=t.map(e.getGeometryN(r));null!==i&&n.add(i)}return e.getFactory().buildGeometry(n)}if(I(arguments[0],be)&&I(arguments[1],Pi.MapOp)){for(var o=arguments[0],s=arguments[1],a=new we,l=o.iterator();l.hasNext();){var c=l.next(),u=s.map(c);null!==u&&a.add(u)}return a}},Pi.MapOp=function(){};var Ci=function(e){function t(){var t=arguments[0],n=arguments[1];e.call(this,t,n),this._ptLocator=new Pr,this._geomFact=null,this._resultGeom=null,this._graph=null,this._edgeList=new Xn,this._resultPolyList=new we,this._resultLineList=new we,this._resultPointList=new we,this._graph=new Wt(new Hn),this._geomFact=t.getFactory()}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.insertUniqueEdge=function(e){var t=this._edgeList.findEqualEdge(e);if(null!==t){var n=t.getLabel(),r=e.getLabel();t.isPointwiseEqual(e)||(r=new Tt(e.getLabel())).flip();var i=t.getDepth();i.isNull()&&i.add(n),i.add(r),n.merge(r)}else this._edgeList.add(e)},t.prototype.getGraph=function(){return this._graph},t.prototype.cancelDuplicateResultEdges=function(){for(var e=this._graph.getEdgeEnds().iterator();e.hasNext();){var t=e.next(),n=t.getSym();t.isInResult()&&n.isInResult()&&(t.setInResult(!1),n.setInResult(!1))}},t.prototype.isCoveredByLA=function(e){return!!this.isCovered(e,this._resultLineList)||!!this.isCovered(e,this._resultPolyList)},t.prototype.computeGeometry=function(e,n,r,i){var o=new we;return o.addAll(e),o.addAll(n),o.addAll(r),o.isEmpty()?t.createEmptyResult(i,this._arg[0].getGeometry(),this._arg[1].getGeometry(),this._geomFact):this._geomFact.buildGeometry(o)},t.prototype.mergeSymLabels=function(){for(var e=this._graph.getNodes().iterator();e.hasNext();)e.next().getEdges().mergeSymLabels()},t.prototype.isCovered=function(e,t){for(var n=t.iterator();n.hasNext();){var r=n.next();if(this._ptLocator.locate(e,r)!==k.EXTERIOR)return!0}return!1},t.prototype.replaceCollapsedEdges=function(){for(var e=new we,t=this._edgeList.iterator();t.hasNext();){var n=t.next();n.isCollapsed()&&(t.remove(),e.add(n.getCollapsedEdge()))}this._edgeList.addAll(e)},t.prototype.updateNodeLabelling=function(){for(var e=this._graph.getNodes().iterator();e.hasNext();){var t=e.next(),n=t.getEdges().getLabel();t.getLabel().merge(n)}},t.prototype.getResultGeometry=function(e){return this.computeOverlay(e),this._resultGeom},t.prototype.insertUniqueEdges=function(e){for(var t=e.iterator();t.hasNext();){var n=t.next();this.insertUniqueEdge(n)}},t.prototype.computeOverlay=function(e){this.copyPoints(0),this.copyPoints(1),this._arg[0].computeSelfNodes(this._li,!1),this._arg[1].computeSelfNodes(this._li,!1),this._arg[0].computeEdgeIntersections(this._arg[1],this._li,!0);var t=new we;this._arg[0].computeSplitEdges(t),this._arg[1].computeSplitEdges(t),this.insertUniqueEdges(t),this.computeLabelsFromDepths(),this.replaceCollapsedEdges(),Wr.checkValid(this._edgeList.getEdges()),this._graph.addEdges(this._edgeList.getEdges()),this.computeLabelling(),this.labelIncompleteNodes(),this.findResultAreaEdges(e),this.cancelDuplicateResultEdges();var n=new Ht(this._geomFact);n.add(this._graph),this._resultPolyList=n.getPolygons();var r=new qr(this,this._geomFact,this._ptLocator);this._resultLineList=r.build(e);var i=new Xr(this,this._geomFact,this._ptLocator);this._resultPointList=i.build(e),this._resultGeom=this.computeGeometry(this._resultPointList,this._resultLineList,this._resultPolyList,e)},t.prototype.labelIncompleteNode=function(e,t){var n=this._ptLocator.locate(e.getCoordinate(),this._arg[t].getGeometry());e.getLabel().setLocation(t,n)},t.prototype.copyPoints=function(e){for(var t=this._arg[e].getNodeIterator();t.hasNext();){var n=t.next();this._graph.addNode(n.getCoordinate()).setLabel(e,n.getLabel().getLocation(e))}},t.prototype.findResultAreaEdges=function(e){for(var n=this._graph.getEdgeEnds().iterator();n.hasNext();){var r=n.next(),i=r.getLabel();i.isArea()&&!r.isInteriorAreaEdge()&&t.isResultOfOp(i.getLocation(0,Pt.RIGHT),i.getLocation(1,Pt.RIGHT),e)&&r.setInResult(!0)}},t.prototype.computeLabelsFromDepths=function(){for(var e=this._edgeList.iterator();e.hasNext();){var t=e.next(),n=t.getLabel(),r=t.getDepth();if(!r.isNull()){r.normalize();for(var i=0;i<2;i++)n.isNull(i)||!n.isArea()||r.isNull(i)||(0===r.getDelta(i)?n.toLine(i):(te.isTrue(!r.isNull(i,Pt.LEFT),"depth of LEFT side has not been initialized"),n.setLocation(i,Pt.LEFT,r.getLocation(i,Pt.LEFT)),te.isTrue(!r.isNull(i,Pt.RIGHT),"depth of RIGHT side has not been initialized"),n.setLocation(i,Pt.RIGHT,r.getLocation(i,Pt.RIGHT))))}}},t.prototype.computeLabelling=function(){for(var e=this._graph.getNodes().iterator();e.hasNext();)e.next().getEdges().computeLabelling(this._arg);this.mergeSymLabels(),this.updateNodeLabelling()},t.prototype.labelIncompleteNodes=function(){for(var e=this._graph.getNodes().iterator();e.hasNext();){var t=e.next(),n=t.getLabel();t.isIsolated()&&(n.isNull(0)?this.labelIncompleteNode(t,0):this.labelIncompleteNode(t,1)),t.getEdges().updateLabelling(n)}},t.prototype.isCoveredByA=function(e){return!!this.isCovered(e,this._resultPolyList)},t.prototype.interfaces_=function(){return[]},t.prototype.getClass=function(){return t},t}(Ei);Ci.overlayOp=function(e,t,n){return new Ci(e,t).getResultGeometry(n)},Ci.intersection=function(e,t){if(e.isEmpty()||t.isEmpty())return Ci.createEmptyResult(Ci.INTERSECTION,e,t,e.getFactory());if(e.isGeometryCollection()){var n=t;return Hr.map(e,{interfaces_:function(){return[Pi.MapOp]},map:function(e){return e.intersection(n)}})}return e.checkNotGeometryCollection(e),e.checkNotGeometryCollection(t),oi.overlayOp(e,t,Ci.INTERSECTION)},Ci.symDifference=function(e,t){if(e.isEmpty()||t.isEmpty()){if(e.isEmpty()&&t.isEmpty())return Ci.createEmptyResult(Ci.SYMDIFFERENCE,e,t,e.getFactory());if(e.isEmpty())return t.copy();if(t.isEmpty())return e.copy()}return e.checkNotGeometryCollection(e),e.checkNotGeometryCollection(t),oi.overlayOp(e,t,Ci.SYMDIFFERENCE)},Ci.resultDimension=function(e,t,n){var r=t.getDimension(),i=n.getDimension(),o=-1;switch(e){case Ci.INTERSECTION:o=Math.min(r,i);break;case Ci.UNION:o=Math.max(r,i);break;case Ci.DIFFERENCE:o=r;break;case Ci.SYMDIFFERENCE:o=Math.max(r,i)}return o},Ci.createEmptyResult=function(e,t,n,r){var i=null;switch(Ci.resultDimension(e,t,n)){case-1:i=r.createGeometryCollection(new Array(0).fill(null));break;case 0:i=r.createPoint();break;case 1:i=r.createLineString();break;case 2:i=r.createPolygon()}return i},Ci.difference=function(e,t){return e.isEmpty()?Ci.createEmptyResult(Ci.DIFFERENCE,e,t,e.getFactory()):t.isEmpty()?e.copy():(e.checkNotGeometryCollection(e),e.checkNotGeometryCollection(t),oi.overlayOp(e,t,Ci.DIFFERENCE))},Ci.isResultOfOp=function(){if(2===arguments.length){var e=arguments[0],t=arguments[1],n=e.getLocation(0),r=e.getLocation(1);return Ci.isResultOfOp(n,r,t)}if(3===arguments.length){var i=arguments[0],o=arguments[1],s=arguments[2];switch(i===k.BOUNDARY&&(i=k.INTERIOR),o===k.BOUNDARY&&(o=k.INTERIOR),s){case Ci.INTERSECTION:return i===k.INTERIOR&&o===k.INTERIOR;case Ci.UNION:return i===k.INTERIOR||o===k.INTERIOR;case Ci.DIFFERENCE:return i===k.INTERIOR&&o!==k.INTERIOR;case Ci.SYMDIFFERENCE:return i===k.INTERIOR&&o!==k.INTERIOR||i!==k.INTERIOR&&o===k.INTERIOR}return!1}},Ci.INTERSECTION=1,Ci.UNION=2,Ci.DIFFERENCE=3,Ci.SYMDIFFERENCE=4;var Ai=function(){this._g=null,this._boundaryDistanceTolerance=null,this._linework=null,this._ptLocator=new Pr,this._seg=new gn;var e=arguments[0],t=arguments[1];this._g=e,this._boundaryDistanceTolerance=t,this._linework=this.extractLinework(e)};Ai.prototype.isWithinToleranceOfBoundary=function(e){for(var t=0;t<this._linework.getNumGeometries();t++)for(var n=this._linework.getGeometryN(t).getCoordinateSequence(),r=0;r<n.size()-1;r++)if(n.getCoordinate(r,this._seg.p0),n.getCoordinate(r+1,this._seg.p1),this._seg.distance(e)<=this._boundaryDistanceTolerance)return!0;return!1},Ai.prototype.getLocation=function(e){return this.isWithinToleranceOfBoundary(e)?k.BOUNDARY:this._ptLocator.locate(e,this._g)},Ai.prototype.extractLinework=function(e){var t=new ki;e.apply(t);var n=t.getLinework(),r=yt.toLineStringArray(n);return e.getFactory().createMultiLineString(r)},Ai.prototype.interfaces_=function(){return[]},Ai.prototype.getClass=function(){return Ai};var ki=function(){this._linework=null,this._linework=new we};ki.prototype.getLinework=function(){return this._linework},ki.prototype.filter=function(e){if(e instanceof Qe){var t=e;this._linework.add(t.getExteriorRing());for(var n=0;n<t.getNumInteriorRing();n++)this._linework.add(t.getInteriorRingN(n))}},ki.prototype.interfaces_=function(){return[Fe]},ki.prototype.getClass=function(){return ki};var ji=function(){this._g=null,this._doLeft=!0,this._doRight=!0;var e=arguments[0];this._g=e};ji.prototype.extractPoints=function(e,t,n){for(var r=e.getCoordinates(),i=0;i<r.length-1;i++)this.computeOffsetPoints(r[i],r[i+1],t,n)},ji.prototype.setSidesToGenerate=function(e,t){this._doLeft=e,this._doRight=t},ji.prototype.getPoints=function(e){for(var t=new we,n=Er.getLines(this._g).iterator();n.hasNext();){var r=n.next();this.extractPoints(r,e,t)}return t},ji.prototype.computeOffsetPoints=function(e,t,n,r){var i=t.x-e.x,o=t.y-e.y,s=Math.sqrt(i*i+o*o),a=n*i/s,l=n*o/s,c=(t.x+e.x)/2,u=(t.y+e.y)/2;if(this._doLeft){var d=new E(c-l,u+a);r.add(d)}if(this._doRight){var h=new E(c+l,u-a);r.add(h)}},ji.prototype.interfaces_=function(){return[]},ji.prototype.getClass=function(){return ji};var Ii=function e(){this._geom=null,this._locFinder=null,this._location=new Array(3).fill(null),this._invalidLocation=null,this._boundaryDistanceTolerance=e.TOLERANCE,this._testCoords=new we;var t=arguments[0],n=arguments[1],r=arguments[2];this._boundaryDistanceTolerance=e.computeBoundaryDistanceTolerance(t,n),this._geom=[t,n,r],this._locFinder=[new Ai(this._geom[0],this._boundaryDistanceTolerance),new Ai(this._geom[1],this._boundaryDistanceTolerance),new Ai(this._geom[2],this._boundaryDistanceTolerance)]},Gi={TOLERANCE:{configurable:!0}};Ii.prototype.reportResult=function(e,t,n){W.out.println("Overlay result invalid - A:"+k.toLocationSymbol(t[0])+" B:"+k.toLocationSymbol(t[1])+" expected:"+(n?"i":"e")+" actual:"+k.toLocationSymbol(t[2]))},Ii.prototype.isValid=function(e){return this.addTestPts(this._geom[0]),this.addTestPts(this._geom[1]),this.checkValid(e)},Ii.prototype.checkValid=function(){if(1===arguments.length){for(var e=arguments[0],t=0;t<this._testCoords.size();t++){var n=this._testCoords.get(t);if(!this.checkValid(e,n))return this._invalidLocation=n,!1}return!0}if(2===arguments.length){var r=arguments[0],i=arguments[1];return this._location[0]=this._locFinder[0].getLocation(i),this._location[1]=this._locFinder[1].getLocation(i),this._location[2]=this._locFinder[2].getLocation(i),!!Ii.hasLocation(this._location,k.BOUNDARY)||this.isValidResult(r,this._location)}},Ii.prototype.addTestPts=function(e){var t=new ji(e);this._testCoords.addAll(t.getPoints(5*this._boundaryDistanceTolerance))},Ii.prototype.isValidResult=function(e,t){var n=Ci.isResultOfOp(t[0],t[1],e),r=!(n^t[2]===k.INTERIOR);return r||this.reportResult(e,t,n),r},Ii.prototype.getInvalidLocation=function(){return this._invalidLocation},Ii.prototype.interfaces_=function(){return[]},Ii.prototype.getClass=function(){return Ii},Ii.hasLocation=function(e,t){for(var n=0;n<3;n++)if(e[n]===t)return!0;return!1},Ii.computeBoundaryDistanceTolerance=function(e,t){return Math.min(Zr.computeSizeBasedSnapTolerance(e),Zr.computeSizeBasedSnapTolerance(t))},Ii.isValid=function(e,t,n,r){return new Ii(e,t,r).isValid(n)},Gi.TOLERANCE.get=function(){return 1e-6},Object.defineProperties(Ii,Gi);var Ti=function e(t){this._geomFactory=null,this._skipEmpty=!1,this._inputGeoms=null,this._geomFactory=e.extractFactory(t),this._inputGeoms=t};Ti.prototype.extractElements=function(e,t){if(null===e)return null;for(var n=0;n<e.getNumGeometries();n++){var r=e.getGeometryN(n);this._skipEmpty&&r.isEmpty()||t.add(r)}},Ti.prototype.combine=function(){for(var e=new we,t=this._inputGeoms.iterator();t.hasNext();){var n=t.next();this.extractElements(n,e)}return 0===e.size()?null!==this._geomFactory?this._geomFactory.createGeometryCollection(null):null:this._geomFactory.buildGeometry(e)},Ti.prototype.interfaces_=function(){return[]},Ti.prototype.getClass=function(){return Ti},Ti.combine=function(){if(1===arguments.length)return new Ti(arguments[0]).combine();if(2===arguments.length){var e=arguments[0],t=arguments[1];return new Ti(Ti.createList(e,t)).combine()}if(3===arguments.length){var n=arguments[0],r=arguments[1],i=arguments[2];return new Ti(Ti.createList(n,r,i)).combine()}},Ti.extractFactory=function(e){return e.isEmpty()?null:e.iterator().next().getFactory()},Ti.createList=function(){if(2===arguments.length){var e=arguments[0],t=arguments[1],n=new we;return n.add(e),n.add(t),n}if(3===arguments.length){var r=arguments[0],i=arguments[1],o=arguments[2],s=new we;return s.add(r),s.add(i),s.add(o),s}};var Mi=function(){this._inputPolys=null,this._geomFactory=null;var e=arguments[0];this._inputPolys=e,null===this._inputPolys&&(this._inputPolys=new we)},Oi={STRTREE_NODE_CAPACITY:{configurable:!0}};Mi.prototype.reduceToGeometries=function(e){for(var t=new we,n=e.iterator();n.hasNext();){var r=n.next(),i=null;I(r,Se)?i=this.unionTree(r):r instanceof ue&&(i=r),t.add(i)}return t},Mi.prototype.extractByEnvelope=function(e,t,n){for(var r=new we,i=0;i<t.getNumGeometries();i++){var o=t.getGeometryN(i);o.getEnvelopeInternal().intersects(e)?r.add(o):n.add(o)}return this._geomFactory.buildGeometry(r)},Mi.prototype.unionOptimized=function(e,t){var n=e.getEnvelopeInternal(),r=t.getEnvelopeInternal();if(!n.intersects(r))return Ti.combine(e,t);if(e.getNumGeometries()<=1&&t.getNumGeometries()<=1)return this.unionActual(e,t);var i=n.intersection(r);return this.unionUsingEnvelopeIntersection(e,t,i)},Mi.prototype.union=function(){if(null===this._inputPolys)throw new Error("union() method cannot be called twice");if(this._inputPolys.isEmpty())return null;this._geomFactory=this._inputPolys.iterator().next().getFactory();for(var e=new sn(Mi.STRTREE_NODE_CAPACITY),t=this._inputPolys.iterator();t.hasNext();){var n=t.next();e.insert(n.getEnvelopeInternal(),n)}this._inputPolys=null;var r=e.itemsTree();return this.unionTree(r)},Mi.prototype.binaryUnion=function(){if(1===arguments.length){var e=arguments[0];return this.binaryUnion(e,0,e.size())}if(3===arguments.length){var t=arguments[0],n=arguments[1],r=arguments[2];if(r-n<=1){var i=Mi.getGeometry(t,n);return this.unionSafe(i,null)}if(r-n==2)return this.unionSafe(Mi.getGeometry(t,n),Mi.getGeometry(t,n+1));var o=Math.trunc((r+n)/2),s=this.binaryUnion(t,n,o),a=this.binaryUnion(t,o,r);return this.unionSafe(s,a)}},Mi.prototype.repeatedUnion=function(e){for(var t=null,n=e.iterator();n.hasNext();){var r=n.next();t=null===t?r.copy():t.union(r)}return t},Mi.prototype.unionSafe=function(e,t){return null===e&&null===t?null:null===e?t.copy():null===t?e.copy():this.unionOptimized(e,t)},Mi.prototype.unionActual=function(e,t){return Mi.restrictToPolygons(e.union(t))},Mi.prototype.unionTree=function(e){var t=this.reduceToGeometries(e);return this.binaryUnion(t)},Mi.prototype.unionUsingEnvelopeIntersection=function(e,t,n){var r=new we,i=this.extractByEnvelope(n,e,r),o=this.extractByEnvelope(n,t,r),s=this.unionActual(i,o);return r.add(s),Ti.combine(r)},Mi.prototype.bufferUnion=function(){if(1===arguments.length){var e=arguments[0];return e.get(0).getFactory().buildGeometry(e).buffer(0)}if(2===arguments.length){var t=arguments[0],n=arguments[1];return t.getFactory().createGeometryCollection([t,n]).buffer(0)}},Mi.prototype.interfaces_=function(){return[]},Mi.prototype.getClass=function(){return Mi},Mi.restrictToPolygons=function(e){if(I(e,Je))return e;var t=wr.getPolygons(e);return 1===t.size()?t.get(0):e.getFactory().createMultiPolygon(yt.toPolygonArray(t))},Mi.getGeometry=function(e,t){return t>=e.size()?null:e.get(t)},Mi.union=function(e){return new Mi(e).union()},Oi.STRTREE_NODE_CAPACITY.get=function(){return 4},Object.defineProperties(Mi,Oi);var Ri=function(){};Ri.prototype.interfaces_=function(){return[]},Ri.prototype.getClass=function(){return Ri},Ri.union=function(e,t){if(e.isEmpty()||t.isEmpty()){if(e.isEmpty()&&t.isEmpty())return Ci.createEmptyResult(Ci.UNION,e,t,e.getFactory());if(e.isEmpty())return t.copy();if(t.isEmpty())return e.copy()}return e.checkNotGeometryCollection(e),e.checkNotGeometryCollection(t),oi.overlayOp(e,t,Ci.UNION)},e.GeoJSONReader=wt,e.GeoJSONWriter=Et,e.OverlayOp=Ci,e.UnionOp=Ri,e.BufferOp=gr,Object.defineProperty(e,"__esModule",{value:!0})}(t)},28280:function(e,t,n){var r;!function(i,o){"use strict";var s="function",a="undefined",l="object",c="string",u="major",d="model",h="name",p="type",f="vendor",g="version",m="architecture",y="console",v="mobile",_="tablet",b="smarttv",x="wearable",S="embedded",w="Amazon",E="Apple",P="ASUS",C="BlackBerry",A="Browser",k="Chrome",j="Firefox",I="Google",G="Huawei",T="LG",M="Microsoft",O="Motorola",R="Opera",D="Samsung",N="Sharp",L="Sony",V="Xiaomi",F="Zebra",z="Facebook",B="Chromium OS",U="Mac OS",W=function(e){for(var t={},n=0;n<e.length;n++)t[e[n].toUpperCase()]=e[n];return t},H=function(e,t){return typeof e===c&&-1!==q(t).indexOf(q(e))},q=function(e){return e.toLowerCase()},X=function(e,t){if(typeof e===c)return e=e.replace(/^\s\s*/,""),typeof t===a?e:e.substring(0,500)},Y=function(e,t){for(var n,r,i,a,c,u,d=0;d<t.length&&!c;){var h=t[d],p=t[d+1];for(n=r=0;n<h.length&&!c&&h[n];)if(c=h[n++].exec(e))for(i=0;i<p.length;i++)u=c[++r],typeof(a=p[i])===l&&a.length>0?2===a.length?typeof a[1]==s?this[a[0]]=a[1].call(this,u):this[a[0]]=a[1]:3===a.length?typeof a[1]!==s||a[1].exec&&a[1].test?this[a[0]]=u?u.replace(a[1],a[2]):o:this[a[0]]=u?a[1].call(this,u,a[2]):o:4===a.length&&(this[a[0]]=u?a[3].call(this,u.replace(a[1],a[2])):o):this[a]=u||o;d+=2}},K=function(e,t){for(var n in t)if(typeof t[n]===l&&t[n].length>0){for(var r=0;r<t[n].length;r++)if(H(t[n][r],e))return"?"===n?o:n}else if(H(t[n],e))return"?"===n?o:n;return e},Z={ME:"4.90","NT 3.11":"NT3.51","NT 4.0":"NT4.0",2e3:"NT 5.0",XP:["NT 5.1","NT 5.2"],Vista:"NT 6.0",7:"NT 6.1",8:"NT 6.2",8.1:"NT 6.3",10:["NT 6.4","NT 10.0"],RT:"ARM"},$={browser:[[/\b(?:crmo|crios)\/([\w\.]+)/i],[g,[h,"Chrome"]],[/edg(?:e|ios|a)?\/([\w\.]+)/i],[g,[h,"Edge"]],[/(opera mini)\/([-\w\.]+)/i,/(opera [mobiletab]{3,6})\b.+version\/([-\w\.]+)/i,/(opera)(?:.+version\/|[\/ ]+)([\w\.]+)/i],[h,g],[/opios[\/ ]+([\w\.]+)/i],[g,[h,R+" Mini"]],[/\bopr\/([\w\.]+)/i],[g,[h,R]],[/\bb[ai]*d(?:uhd|[ub]*[aekoprswx]{5,6})[\/ ]?([\w\.]+)/i],[g,[h,"Baidu"]],[/(kindle)\/([\w\.]+)/i,/(lunascape|maxthon|netfront|jasmine|blazer)[\/ ]?([\w\.]*)/i,/(avant|iemobile|slim)\s?(?:browser)?[\/ ]?([\w\.]*)/i,/(?:ms|\()(ie) ([\w\.]+)/i,/(flock|rockmelt|midori|epiphany|silk|skyfire|bolt|iron|vivaldi|iridium|phantomjs|bowser|quark|qupzilla|falkon|rekonq|puffin|brave|whale(?!.+naver)|qqbrowserlite|qq|duckduckgo)\/([-\w\.]+)/i,/(heytap|ovi)browser\/([\d\.]+)/i,/(weibo)__([\d\.]+)/i],[h,g],[/(?:\buc? ?browser|(?:juc.+)ucweb)[\/ ]?([\w\.]+)/i],[g,[h,"UC"+A]],[/microm.+\bqbcore\/([\w\.]+)/i,/\bqbcore\/([\w\.]+).+microm/i,/micromessenger\/([\w\.]+)/i],[g,[h,"WeChat"]],[/konqueror\/([\w\.]+)/i],[g,[h,"Konqueror"]],[/trident.+rv[: ]([\w\.]{1,9})\b.+like gecko/i],[g,[h,"IE"]],[/ya(?:search)?browser\/([\w\.]+)/i],[g,[h,"Yandex"]],[/slbrowser\/([\w\.]+)/i],[g,[h,"Smart Lenovo "+A]],[/(avast|avg)\/([\w\.]+)/i],[[h,/(.+)/,"$1 Secure "+A],g],[/\bfocus\/([\w\.]+)/i],[g,[h,j+" Focus"]],[/\bopt\/([\w\.]+)/i],[g,[h,R+" Touch"]],[/coc_coc\w+\/([\w\.]+)/i],[g,[h,"Coc Coc"]],[/dolfin\/([\w\.]+)/i],[g,[h,"Dolphin"]],[/coast\/([\w\.]+)/i],[g,[h,R+" Coast"]],[/miuibrowser\/([\w\.]+)/i],[g,[h,"MIUI "+A]],[/fxios\/([-\w\.]+)/i],[g,[h,j]],[/\bqihu|(qi?ho?o?|360)browser/i],[[h,"360 "+A]],[/(oculus|sailfish|huawei|vivo)browser\/([\w\.]+)/i],[[h,/(.+)/,"$1 "+A],g],[/samsungbrowser\/([\w\.]+)/i],[g,[h,D+" Internet"]],[/(comodo_dragon)\/([\w\.]+)/i],[[h,/_/g," "],g],[/metasr[\/ ]?([\d\.]+)/i],[g,[h,"Sogou Explorer"]],[/(sogou)mo\w+\/([\d\.]+)/i],[[h,"Sogou Mobile"],g],[/(electron)\/([\w\.]+) safari/i,/(tesla)(?: qtcarbrowser|\/(20\d\d\.[-\w\.]+))/i,/m?(qqbrowser|2345Explorer)[\/ ]?([\w\.]+)/i],[h,g],[/(lbbrowser)/i,/\[(linkedin)app\]/i],[h],[/((?:fban\/fbios|fb_iab\/fb4a)(?!.+fbav)|;fbav\/([\w\.]+);)/i],[[h,z],g],[/(Klarna)\/([\w\.]+)/i,/(kakao(?:talk|story))[\/ ]([\w\.]+)/i,/(naver)\(.*?(\d+\.[\w\.]+).*\)/i,/safari (line)\/([\w\.]+)/i,/\b(line)\/([\w\.]+)\/iab/i,/(alipay)client\/([\w\.]+)/i,/(chromium|instagram|snapchat)[\/ ]([-\w\.]+)/i],[h,g],[/\bgsa\/([\w\.]+) .*safari\//i],[g,[h,"GSA"]],[/musical_ly(?:.+app_?version\/|_)([\w\.]+)/i],[g,[h,"TikTok"]],[/headlesschrome(?:\/([\w\.]+)| )/i],[g,[h,k+" Headless"]],[/ wv\).+(chrome)\/([\w\.]+)/i],[[h,k+" WebView"],g],[/droid.+ version\/([\w\.]+)\b.+(?:mobile safari|safari)/i],[g,[h,"Android "+A]],[/(chrome|omniweb|arora|[tizenoka]{5} ?browser)\/v?([\w\.]+)/i],[h,g],[/version\/([\w\.\,]+) .*mobile\/\w+ (safari)/i],[g,[h,"Mobile Safari"]],[/version\/([\w(\.|\,)]+) .*(mobile ?safari|safari)/i],[g,h],[/webkit.+?(mobile ?safari|safari)(\/[\w\.]+)/i],[h,[g,K,{"1.0":"/8",1.2:"/1",1.3:"/3","2.0":"/412","2.0.2":"/416","2.0.3":"/417","2.0.4":"/419","?":"/"}]],[/(webkit|khtml)\/([\w\.]+)/i],[h,g],[/(navigator|netscape\d?)\/([-\w\.]+)/i],[[h,"Netscape"],g],[/mobile vr; rv:([\w\.]+)\).+firefox/i],[g,[h,j+" Reality"]],[/ekiohf.+(flow)\/([\w\.]+)/i,/(swiftfox)/i,/(icedragon|iceweasel|camino|chimera|fennec|maemo browser|minimo|conkeror|klar)[\/ ]?([\w\.\+]+)/i,/(seamonkey|k-meleon|icecat|iceape|firebird|phoenix|palemoon|basilisk|waterfox)\/([-\w\.]+)$/i,/(firefox)\/([\w\.]+)/i,/(mozilla)\/([\w\.]+) .+rv\:.+gecko\/\d+/i,/(polaris|lynx|dillo|icab|doris|amaya|w3m|netsurf|sleipnir|obigo|mosaic|(?:go|ice|up)[\. ]?browser)[-\/ ]?v?([\w\.]+)/i,/(links) \(([\w\.]+)/i,/panasonic;(viera)/i],[h,g],[/(cobalt)\/([\w\.]+)/i],[h,[g,/master.|lts./,""]]],cpu:[[/(?:(amd|x(?:(?:86|64)[-_])?|wow|win)64)[;\)]/i],[[m,"amd64"]],[/(ia32(?=;))/i],[[m,q]],[/((?:i[346]|x)86)[;\)]/i],[[m,"ia32"]],[/\b(aarch64|arm(v?8e?l?|_?64))\b/i],[[m,"arm64"]],[/\b(arm(?:v[67])?ht?n?[fl]p?)\b/i],[[m,"armhf"]],[/windows (ce|mobile); ppc;/i],[[m,"arm"]],[/((?:ppc|powerpc)(?:64)?)(?: mac|;|\))/i],[[m,/ower/,"",q]],[/(sun4\w)[;\)]/i],[[m,"sparc"]],[/((?:avr32|ia64(?=;))|68k(?=\))|\barm(?=v(?:[1-7]|[5-7]1)l?|;|eabi)|(?=atmel )avr|(?:irix|mips|sparc)(?:64)?\b|pa-risc)/i],[[m,q]]],device:[[/\b(sch-i[89]0\d|shw-m380s|sm-[ptx]\w{2,4}|gt-[pn]\d{2,4}|sgh-t8[56]9|nexus 10)/i],[d,[f,D],[p,_]],[/\b((?:s[cgp]h|gt|sm)-\w+|sc[g-]?[\d]+a?|galaxy nexus)/i,/samsung[- ]([-\w]+)/i,/sec-(sgh\w+)/i],[d,[f,D],[p,v]],[/(?:\/|\()(ip(?:hone|od)[\w, ]*)(?:\/|;)/i],[d,[f,E],[p,v]],[/\((ipad);[-\w\),; ]+apple/i,/applecoremedia\/[\w\.]+ \((ipad)/i,/\b(ipad)\d\d?,\d\d?[;\]].+ios/i],[d,[f,E],[p,_]],[/(macintosh);/i],[d,[f,E]],[/\b(sh-?[altvz]?\d\d[a-ekm]?)/i],[d,[f,N],[p,v]],[/\b((?:ag[rs][23]?|bah2?|sht?|btv)-a?[lw]\d{2})\b(?!.+d\/s)/i],[d,[f,G],[p,_]],[/(?:huawei|honor)([-\w ]+)[;\)]/i,/\b(nexus 6p|\w{2,4}e?-[atu]?[ln][\dx][012359c][adn]?)\b(?!.+d\/s)/i],[d,[f,G],[p,v]],[/\b(poco[\w ]+|m2\d{3}j\d\d[a-z]{2})(?: bui|\))/i,/\b; (\w+) build\/hm\1/i,/\b(hm[-_ ]?note?[_ ]?(?:\d\w)?) bui/i,/\b(redmi[\-_ ]?(?:note|k)?[\w_ ]+)(?: bui|\))/i,/oid[^\)]+; (m?[12][0-389][01]\w{3,6}[c-y])( bui|; wv|\))/i,/\b(mi[-_ ]?(?:a\d|one|one[_ ]plus|note lte|max|cc)?[_ ]?(?:\d?\w?)[_ ]?(?:plus|se|lite)?)(?: bui|\))/i],[[d,/_/g," "],[f,V],[p,v]],[/oid[^\)]+; (2\d{4}(283|rpbf)[cgl])( bui|\))/i,/\b(mi[-_ ]?(?:pad)(?:[\w_ ]+))(?: bui|\))/i],[[d,/_/g," "],[f,V],[p,_]],[/; (\w+) bui.+ oppo/i,/\b(cph[12]\d{3}|p(?:af|c[al]|d\w|e[ar])[mt]\d0|x9007|a101op)\b/i],[d,[f,"OPPO"],[p,v]],[/vivo (\w+)(?: bui|\))/i,/\b(v[12]\d{3}\w?[at])(?: bui|;)/i],[d,[f,"Vivo"],[p,v]],[/\b(rmx[1-3]\d{3})(?: bui|;|\))/i],[d,[f,"Realme"],[p,v]],[/\b(milestone|droid(?:[2-4x]| (?:bionic|x2|pro|razr))?:?( 4g)?)\b[\w ]+build\//i,/\bmot(?:orola)?[- ](\w*)/i,/((?:moto[\w\(\) ]+|xt\d{3,4}|nexus 6)(?= bui|\)))/i],[d,[f,O],[p,v]],[/\b(mz60\d|xoom[2 ]{0,2}) build\//i],[d,[f,O],[p,_]],[/((?=lg)?[vl]k\-?\d{3}) bui| 3\.[-\w; ]{10}lg?-([06cv9]{3,4})/i],[d,[f,T],[p,_]],[/(lm(?:-?f100[nv]?|-[\w\.]+)(?= bui|\))|nexus [45])/i,/\blg[-e;\/ ]+((?!browser|netcast|android tv)\w+)/i,/\blg-?([\d\w]+) bui/i],[d,[f,T],[p,v]],[/(ideatab[-\w ]+)/i,/lenovo ?(s[56]000[-\w]+|tab(?:[\w ]+)|yt[-\d\w]{6}|tb[-\d\w]{6})/i],[d,[f,"Lenovo"],[p,_]],[/(?:maemo|nokia).*(n900|lumia \d+)/i,/nokia[-_ ]?([-\w\.]*)/i],[[d,/_/g," "],[f,"Nokia"],[p,v]],[/(pixel c)\b/i],[d,[f,I],[p,_]],[/droid.+; (pixel[\daxl ]{0,6})(?: bui|\))/i],[d,[f,I],[p,v]],[/droid.+ (a?\d[0-2]{2}so|[c-g]\d{4}|so[-gl]\w+|xq-a\w[4-7][12])(?= bui|\).+chrome\/(?![1-6]{0,1}\d\.))/i],[d,[f,L],[p,v]],[/sony tablet [ps]/i,/\b(?:sony)?sgp\w+(?: bui|\))/i],[[d,"Xperia Tablet"],[f,L],[p,_]],[/ (kb2005|in20[12]5|be20[12][59])\b/i,/(?:one)?(?:plus)? (a\d0\d\d)(?: b|\))/i],[d,[f,"OnePlus"],[p,v]],[/(alexa)webm/i,/(kf[a-z]{2}wi|aeo[c-r]{2})( bui|\))/i,/(kf[a-z]+)( bui|\)).+silk\//i],[d,[f,w],[p,_]],[/((?:sd|kf)[0349hijorstuw]+)( bui|\)).+silk\//i],[[d,/(.+)/g,"Fire Phone $1"],[f,w],[p,v]],[/(playbook);[-\w\),; ]+(rim)/i],[d,f,[p,_]],[/\b((?:bb[a-f]|st[hv])100-\d)/i,/\(bb10; (\w+)/i],[d,[f,C],[p,v]],[/(?:\b|asus_)(transfo[prime ]{4,10} \w+|eeepc|slider \w+|nexus 7|padfone|p00[cj])/i],[d,[f,P],[p,_]],[/ (z[bes]6[027][012][km][ls]|zenfone \d\w?)\b/i],[d,[f,P],[p,v]],[/(nexus 9)/i],[d,[f,"HTC"],[p,_]],[/(htc)[-;_ ]{1,2}([\w ]+(?=\)| bui)|\w+)/i,/(zte)[- ]([\w ]+?)(?: bui|\/|\))/i,/(alcatel|geeksphone|nexian|panasonic(?!(?:;|\.))|sony(?!-bra))[-_ ]?([-\w]*)/i],[f,[d,/_/g," "],[p,v]],[/droid.+; ([ab][1-7]-?[0178a]\d\d?)/i],[d,[f,"Acer"],[p,_]],[/droid.+; (m[1-5] note) bui/i,/\bmz-([-\w]{2,})/i],[d,[f,"Meizu"],[p,v]],[/; ((?:power )?armor(?:[\w ]{0,8}))(?: bui|\))/i],[d,[f,"Ulefone"],[p,v]],[/(blackberry|benq|palm(?=\-)|sonyericsson|acer|asus|dell|meizu|motorola|polytron|infinix|tecno)[-_ ]?([-\w]*)/i,/(hp) ([\w ]+\w)/i,/(asus)-?(\w+)/i,/(microsoft); (lumia[\w ]+)/i,/(lenovo)[-_ ]?([-\w]+)/i,/(jolla)/i,/(oppo) ?([\w ]+) bui/i],[f,d,[p,v]],[/(kobo)\s(ereader|touch)/i,/(archos) (gamepad2?)/i,/(hp).+(touchpad(?!.+tablet)|tablet)/i,/(kindle)\/([\w\.]+)/i,/(nook)[\w ]+build\/(\w+)/i,/(dell) (strea[kpr\d ]*[\dko])/i,/(le[- ]+pan)[- ]+(\w{1,9}) bui/i,/(trinity)[- ]*(t\d{3}) bui/i,/(gigaset)[- ]+(q\w{1,9}) bui/i,/(vodafone) ([\w ]+)(?:\)| bui)/i],[f,d,[p,_]],[/(surface duo)/i],[d,[f,M],[p,_]],[/droid [\d\.]+; (fp\du?)(?: b|\))/i],[d,[f,"Fairphone"],[p,v]],[/(u304aa)/i],[d,[f,"AT&T"],[p,v]],[/\bsie-(\w*)/i],[d,[f,"Siemens"],[p,v]],[/\b(rct\w+) b/i],[d,[f,"RCA"],[p,_]],[/\b(venue[\d ]{2,7}) b/i],[d,[f,"Dell"],[p,_]],[/\b(q(?:mv|ta)\w+) b/i],[d,[f,"Verizon"],[p,_]],[/\b(?:barnes[& ]+noble |bn[rt])([\w\+ ]*) b/i],[d,[f,"Barnes & Noble"],[p,_]],[/\b(tm\d{3}\w+) b/i],[d,[f,"NuVision"],[p,_]],[/\b(k88) b/i],[d,[f,"ZTE"],[p,_]],[/\b(nx\d{3}j) b/i],[d,[f,"ZTE"],[p,v]],[/\b(gen\d{3}) b.+49h/i],[d,[f,"Swiss"],[p,v]],[/\b(zur\d{3}) b/i],[d,[f,"Swiss"],[p,_]],[/\b((zeki)?tb.*\b) b/i],[d,[f,"Zeki"],[p,_]],[/\b([yr]\d{2}) b/i,/\b(dragon[- ]+touch |dt)(\w{5}) b/i],[[f,"Dragon Touch"],d,[p,_]],[/\b(ns-?\w{0,9}) b/i],[d,[f,"Insignia"],[p,_]],[/\b((nxa|next)-?\w{0,9}) b/i],[d,[f,"NextBook"],[p,_]],[/\b(xtreme\_)?(v(1[045]|2[015]|[3469]0|7[05])) b/i],[[f,"Voice"],d,[p,v]],[/\b(lvtel\-)?(v1[12]) b/i],[[f,"LvTel"],d,[p,v]],[/\b(ph-1) /i],[d,[f,"Essential"],[p,v]],[/\b(v(100md|700na|7011|917g).*\b) b/i],[d,[f,"Envizen"],[p,_]],[/\b(trio[-\w\. ]+) b/i],[d,[f,"MachSpeed"],[p,_]],[/\btu_(1491) b/i],[d,[f,"Rotor"],[p,_]],[/(shield[\w ]+) b/i],[d,[f,"Nvidia"],[p,_]],[/(sprint) (\w+)/i],[f,d,[p,v]],[/(kin\.[onetw]{3})/i],[[d,/\./g," "],[f,M],[p,v]],[/droid.+; (cc6666?|et5[16]|mc[239][23]x?|vc8[03]x?)\)/i],[d,[f,F],[p,_]],[/droid.+; (ec30|ps20|tc[2-8]\d[kx])\)/i],[d,[f,F],[p,v]],[/smart-tv.+(samsung)/i],[f,[p,b]],[/hbbtv.+maple;(\d+)/i],[[d,/^/,"SmartTV"],[f,D],[p,b]],[/(nux; netcast.+smarttv|lg (netcast\.tv-201\d|android tv))/i],[[f,T],[p,b]],[/(apple) ?tv/i],[f,[d,E+" TV"],[p,b]],[/crkey/i],[[d,k+"cast"],[f,I],[p,b]],[/droid.+aft(\w+)( bui|\))/i],[d,[f,w],[p,b]],[/\(dtv[\);].+(aquos)/i,/(aquos-tv[\w ]+)\)/i],[d,[f,N],[p,b]],[/(bravia[\w ]+)( bui|\))/i],[d,[f,L],[p,b]],[/(mitv-\w{5}) bui/i],[d,[f,V],[p,b]],[/Hbbtv.*(technisat) (.*);/i],[f,d,[p,b]],[/\b(roku)[\dx]*[\)\/]((?:dvp-)?[\d\.]*)/i,/hbbtv\/\d+\.\d+\.\d+ +\([\w\+ ]*; *([\w\d][^;]*);([^;]*)/i],[[f,X],[d,X],[p,b]],[/\b(android tv|smart[- ]?tv|opera tv|tv; rv:)\b/i],[[p,b]],[/(ouya)/i,/(nintendo) ([wids3utch]+)/i],[f,d,[p,y]],[/droid.+; (shield) bui/i],[d,[f,"Nvidia"],[p,y]],[/(playstation [345portablevi]+)/i],[d,[f,L],[p,y]],[/\b(xbox(?: one)?(?!; xbox))[\); ]/i],[d,[f,M],[p,y]],[/((pebble))app/i],[f,d,[p,x]],[/(watch)(?: ?os[,\/]|\d,\d\/)[\d\.]+/i],[d,[f,E],[p,x]],[/droid.+; (glass) \d/i],[d,[f,I],[p,x]],[/droid.+; (wt63?0{2,3})\)/i],[d,[f,F],[p,x]],[/(quest( 2| pro)?)/i],[d,[f,z],[p,x]],[/(tesla)(?: qtcarbrowser|\/[-\w\.]+)/i],[f,[p,S]],[/(aeobc)\b/i],[d,[f,w],[p,S]],[/droid .+?; ([^;]+?)(?: bui|; wv\)|\) applew).+? mobile safari/i],[d,[p,v]],[/droid .+?; ([^;]+?)(?: bui|\) applew).+?(?! mobile) safari/i],[d,[p,_]],[/\b((tablet|tab)[;\/]|focus\/\d(?!.+mobile))/i],[[p,_]],[/(phone|mobile(?:[;\/]| [ \w\/\.]*safari)|pda(?=.+windows ce))/i],[[p,v]],[/(android[-\w\. ]{0,9});.+buil/i],[d,[f,"Generic"]]],engine:[[/windows.+ edge\/([\w\.]+)/i],[g,[h,"EdgeHTML"]],[/webkit\/537\.36.+chrome\/(?!27)([\w\.]+)/i],[g,[h,"Blink"]],[/(presto)\/([\w\.]+)/i,/(webkit|trident|netfront|netsurf|amaya|lynx|w3m|goanna)\/([\w\.]+)/i,/ekioh(flow)\/([\w\.]+)/i,/(khtml|tasman|links)[\/ ]\(?([\w\.]+)/i,/(icab)[\/ ]([23]\.[\d\.]+)/i,/\b(libweb)/i],[h,g],[/rv\:([\w\.]{1,9})\b.+(gecko)/i],[g,h]],os:[[/microsoft (windows) (vista|xp)/i],[h,g],[/(windows (?:phone(?: os)?|mobile))[\/ ]?([\d\.\w ]*)/i],[h,[g,K,Z]],[/windows nt 6\.2; (arm)/i,/windows[\/ ]?([ntce\d\. ]+\w)(?!.+xbox)/i,/(?:win(?=3|9|n)|win 9x )([nt\d\.]+)/i],[[g,K,Z],[h,"Windows"]],[/ip[honead]{2,4}\b(?:.*os ([\w]+) like mac|; opera)/i,/(?:ios;fbsv\/|iphone.+ios[\/ ])([\d\.]+)/i,/cfnetwork\/.+darwin/i],[[g,/_/g,"."],[h,"iOS"]],[/(mac os x) ?([\w\. ]*)/i,/(macintosh|mac_powerpc\b)(?!.+haiku)/i],[[h,U],[g,/_/g,"."]],[/droid ([\w\.]+)\b.+(android[- ]x86|harmonyos)/i],[g,h],[/(android|webos|qnx|bada|rim tablet os|maemo|meego|sailfish)[-\/ ]?([\w\.]*)/i,/(blackberry)\w*\/([\w\.]*)/i,/(tizen|kaios)[\/ ]([\w\.]+)/i,/\((series40);/i],[h,g],[/\(bb(10);/i],[g,[h,C]],[/(?:symbian ?os|symbos|s60(?=;)|series60)[-\/ ]?([\w\.]*)/i],[g,[h,"Symbian"]],[/mozilla\/[\d\.]+ \((?:mobile|tablet|tv|mobile; [\w ]+); rv:.+ gecko\/([\w\.]+)/i],[g,[h,j+" OS"]],[/web0s;.+rt(tv)/i,/\b(?:hp)?wos(?:browser)?\/([\w\.]+)/i],[g,[h,"webOS"]],[/watch(?: ?os[,\/]|\d,\d\/)([\d\.]+)/i],[g,[h,"watchOS"]],[/crkey\/([\d\.]+)/i],[g,[h,k+"cast"]],[/(cros) [\w]+(?:\)| ([\w\.]+)\b)/i],[[h,B],g],[/panasonic;(viera)/i,/(netrange)mmh/i,/(nettv)\/(\d+\.[\w\.]+)/i,/(nintendo|playstation) ([wids345portablevuch]+)/i,/(xbox); +xbox ([^\);]+)/i,/\b(joli|palm)\b ?(?:os)?\/?([\w\.]*)/i,/(mint)[\/\(\) ]?(\w*)/i,/(mageia|vectorlinux)[; ]/i,/([kxln]?ubuntu|debian|suse|opensuse|gentoo|arch(?= linux)|slackware|fedora|mandriva|centos|pclinuxos|red ?hat|zenwalk|linpus|raspbian|plan 9|minix|risc os|contiki|deepin|manjaro|elementary os|sabayon|linspire)(?: gnu\/linux)?(?: enterprise)?(?:[- ]linux)?(?:-gnu)?[-\/ ]?(?!chrom|package)([-\w\.]*)/i,/(hurd|linux) ?([\w\.]*)/i,/(gnu) ?([\w\.]*)/i,/\b([-frentopcghs]{0,5}bsd|dragonfly)[\/ ]?(?!amd|[ix346]{1,2}86)([\w\.]*)/i,/(haiku) (\w+)/i],[h,g],[/(sunos) ?([\w\.\d]*)/i],[[h,"Solaris"],g],[/((?:open)?solaris)[-\/ ]?([\w\.]*)/i,/(aix) ((\d)(?=\.|\)| )[\w\.])*/i,/\b(beos|os\/2|amigaos|morphos|openvms|fuchsia|hp-ux|serenityos)/i,/(unix) ?([\w\.]*)/i],[h,g]]},J=function(e,t){if(typeof e===l&&(t=e,e=o),!(this instanceof J))return new J(e,t).getResult();var n=typeof i!==a&&i.navigator?i.navigator:o,r=e||(n&&n.userAgent?n.userAgent:""),y=n&&n.userAgentData?n.userAgentData:o,b=t?function(e,t){var n={};for(var r in e)t[r]&&t[r].length%2===0?n[r]=t[r].concat(e[r]):n[r]=e[r];return n}($,t):$,x=n&&n.userAgent==r;return this.getBrowser=function(){var e,t={};return t[h]=o,t[g]=o,Y.call(t,r,b.browser),t[u]=typeof(e=t[g])===c?e.replace(/[^\d\.]/g,"").split(".")[0]:o,x&&n&&n.brave&&typeof n.brave.isBrave==s&&(t[h]="Brave"),t},this.getCPU=function(){var e={};return e[m]=o,Y.call(e,r,b.cpu),e},this.getDevice=function(){var e={};return e[f]=o,e[d]=o,e[p]=o,Y.call(e,r,b.device),x&&!e[p]&&y&&y.mobile&&(e[p]=v),x&&"Macintosh"==e[d]&&n&&typeof n.standalone!==a&&n.maxTouchPoints&&n.maxTouchPoints>2&&(e[d]="iPad",e[p]=_),e},this.getEngine=function(){var e={};return e[h]=o,e[g]=o,Y.call(e,r,b.engine),e},this.getOS=function(){var e={};return e[h]=o,e[g]=o,Y.call(e,r,b.os),x&&!e[h]&&y&&"Unknown"!=y.platform&&(e[h]=y.platform.replace(/chrome os/i,B).replace(/macos/i,U)),e},this.getResult=function(){return{ua:this.getUA(),browser:this.getBrowser(),engine:this.getEngine(),os:this.getOS(),device:this.getDevice(),cpu:this.getCPU()}},this.getUA=function(){return r},this.setUA=function(e){return r=typeof e===c&&e.length>500?X(e,500):e,this},this.setUA(r),this};J.VERSION="1.0.37",J.BROWSER=W([h,g,u]),J.CPU=W([m]),J.DEVICE=W([d,f,p,y,v,b,_,x,S]),J.ENGINE=J.OS=W([h,g]),typeof t!==a?(e.exports&&(t=e.exports=J),t.UAParser=J):n.amdO?(r=function(){return J}.call(t,n,t,e))===o||(e.exports=r):typeof i!==a&&(i.UAParser=J);var Q=typeof i!==a&&(i.jQuery||i.Zepto);if(Q&&!Q.ua){var ee=new J;Q.ua=ee.getResult(),Q.ua.get=function(){return ee.getUA()},Q.ua.set=function(e){ee.setUA(e);var t=ee.getResult();for(var n in t)Q.ua[n]=t[n]}}}("object"===typeof window?window:this)},7076:e=>{e.exports={area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0}},70016:e=>{function t(e,t){const n=new RegExp(t,"g"),r=e.match(n);return r?r.length:0}e.exports=t,e.exports.default=t},92924:(e,t,n)=>{const r=n(288),i=n(16184),o=n(70016);function s(e,t,n){const s=n&&n.debug||!1,a=!(n&&!1===typeof n.nested),l=n&&n.startIndex||0;s&&console.log("[xml-utils] starting findTagByName with",t," and ",n);const c=r(e,"<".concat(t,"[ >/]"),l);if(s&&console.log("[xml-utils] start:",c),-1===c)return;const u=e.slice(c+t.length);let d=i(u,"^[^<]*[ /]>",0);const h=-1!==d&&"/"===u[d-1];if(s&&console.log("[xml-utils] selfClosing:",h),!1===h)if(a){let e=0,n=1,r=0;for(;-1!==(d=i(u,"[ /]"+t+">",e));){const i=u.substring(e,d+1);if(n+=o(i,"<"+t),r+=o(i,"/"+t+">"),r>=n)break;e=d}}else d=i(u,"[ /]"+t+">",0);const p=c+t.length+d+1;if(s&&console.log("[xml-utils] end:",p),-1===p)return;const f=e.slice(c,p);let g;return g=h?null:f.slice(f.indexOf(">")+1,f.lastIndexOf("<")),{inner:g,outer:f,start:c,end:p}}e.exports=s,e.exports.default=s},24520:(e,t,n)=>{const r=n(92924);function i(e,t,n){const i=[],o=n&&n.debug||!1,s=!n||"boolean"!==typeof n.nested||n.nested;let a,l=n&&n.startIndex||0;for(;a=r(e,t,{debug:o,startIndex:l});)l=s?a.start+1+t.length:a.end,i.push(a);return o&&console.log("findTagsByName found",i.length,"tags"),i}e.exports=i,e.exports.default=i},36672:e=>{function t(e,t,n){const r=n&&n.debug||!1;r&&console.log("getting "+t+" in "+e);const i="object"===typeof e?e.outer:e,o="".concat(t,'\\="([^"]*)"');r&&console.log("pattern:",o);const s=new RegExp(o).exec(i);if(r&&console.log("match:",s),s)return s[1]}e.exports=t,e.exports.default=t},16184:e=>{function t(e,t,n){const r=new RegExp(t).exec(e.slice(n));return r?n+r.index+r[0].length-1:-1}e.exports=t,e.exports.default=t},288:e=>{function t(e,t,n){const r=new RegExp(t).exec(e.slice(n));return r?n+r.index:-1}e.exports=t,e.exports.default=t},53840:(e,t,n)=>{var r={"./monoColor/apk.json":84280,"./multiColor/apk.json":77588,"react-file-type-icons/icons/IconsData/monoColor/apk.json":84280,"react-file-type-icons/icons/IconsData/multiColor/apk.json":77588};function i(e){var t=o(e);return n(t)}function o(e){if(!n.o(r,e)){var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}return r[e]}i.keys=function(){return Object.keys(r)},i.resolve=o,e.exports=i,i.id=53840},36900:(e,t,n)=>{var r={"./monoColor/audio.json":71240,"./multiColor/audio.json":29112,"react-file-type-icons/icons/IconsData/monoColor/audio.json":71240,"react-file-type-icons/icons/IconsData/multiColor/audio.json":29112};function i(e){var t=o(e);return n(t)}function o(e){if(!n.o(r,e)){var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}return r[e]}i.keys=function(){return Object.keys(r)},i.resolve=o,e.exports=i,i.id=36900},7992:(e,t,n)=>{var r={"./monoColor/c.json":7799,"./multiColor/c.json":67464,"react-file-type-icons/icons/IconsData/monoColor/c.json":7799,"react-file-type-icons/icons/IconsData/multiColor/c.json":67464};function i(e){var t=o(e);return n(t)}function o(e){if(!n.o(r,e)){var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}return r[e]}i.keys=function(){return Object.keys(r)},i.resolve=o,e.exports=i,i.id=7992},78532:(e,t,n)=>{var r={"./monoColor/compressed.json":37795,"./multiColor/compressed.json":56920,"react-file-type-icons/icons/IconsData/monoColor/compressed.json":37795,"react-file-type-icons/icons/IconsData/multiColor/compressed.json":56920};function i(e){var t=o(e);return n(t)}function o(e){if(!n.o(r,e)){var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}return r[e]}i.keys=function(){return Object.keys(r)},i.resolve=o,e.exports=i,i.id=78532},31296:(e,t,n)=>{var r={"./monoColor/cpp.json":64808,"./multiColor/cpp.json":56960,"react-file-type-icons/icons/IconsData/monoColor/cpp.json":64808,"react-file-type-icons/icons/IconsData/multiColor/cpp.json":56960};function i(e){var t=o(e);return n(t)}function o(e){if(!n.o(r,e)){var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}return r[e]}i.keys=function(){return Object.keys(r)},i.resolve=o,e.exports=i,i.id=31296},27388:(e,t,n)=>{var r={"./monoColor/cs.json":41608,"./multiColor/cs.json":52376,"react-file-type-icons/icons/IconsData/monoColor/cs.json":41608,"react-file-type-icons/icons/IconsData/multiColor/cs.json":52376};function i(e){var t=o(e);return n(t)}function o(e){if(!n.o(r,e)){var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}return r[e]}i.keys=function(){return Object.keys(r)},i.resolve=o,e.exports=i,i.id=27388},56243:(e,t,n)=>{var r={"./monoColor/css.json":88392,"./multiColor/css.json":17191,"react-file-type-icons/icons/IconsData/monoColor/css.json":88392,"react-file-type-icons/icons/IconsData/multiColor/css.json":17191};function i(e){var t=o(e);return n(t)}function o(e){if(!n.o(r,e)){var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}return r[e]}i.keys=function(){return Object.keys(r)},i.resolve=o,e.exports=i,i.id=56243},68420:(e,t,n)=>{var r={"./monoColor/database.json":17274,"./multiColor/database.json":41470,"react-file-type-icons/icons/IconsData/monoColor/database.json":17274,"react-file-type-icons/icons/IconsData/multiColor/database.json":41470};function i(e){var t=o(e);return n(t)}function o(e){if(!n.o(r,e)){var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}return r[e]}i.keys=function(){return Object.keys(r)},i.resolve=o,e.exports=i,i.id=68420},79112:(e,t,n)=>{var r={"./monoColor/disc.json":64308,"./multiColor/disc.json":58384,"react-file-type-icons/icons/IconsData/monoColor/disc.json":64308,"react-file-type-icons/icons/IconsData/multiColor/disc.json":58384};function i(e){var t=o(e);return n(t)}function o(e){if(!n.o(r,e)){var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}return r[e]}i.keys=function(){return Object.keys(r)},i.resolve=o,e.exports=i,i.id=79112},47664:(e,t,n)=>{var r={"./monoColor/document.json":88416,"./multiColor/document.json":26328,"react-file-type-icons/icons/IconsData/monoColor/document.json":88416,"react-file-type-icons/icons/IconsData/multiColor/document.json":26328};function i(e){var t=o(e);return n(t)}function o(e){if(!n.o(r,e)){var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}return r[e]}i.keys=function(){return Object.keys(r)},i.resolve=o,e.exports=i,i.id=47664},36071:(e,t,n)=>{var r={"./monoColor/email.json":65152,"./multiColor/email.json":96758,"react-file-type-icons/icons/IconsData/monoColor/email.json":65152,"react-file-type-icons/icons/IconsData/multiColor/email.json":96758};function i(e){var t=o(e);return n(t)}function o(e){if(!n.o(r,e)){var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}return r[e]}i.keys=function(){return Object.keys(r)},i.resolve=o,e.exports=i,i.id=36071},93896:(e,t,n)=>{var r={"./monoColor/exe.json":8016,"./multiColor/exe.json":28834,"react-file-type-icons/icons/IconsData/monoColor/exe.json":8016,"react-file-type-icons/icons/IconsData/multiColor/exe.json":28834};function i(e){var t=o(e);return n(t)}function o(e){if(!n.o(r,e)){var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}return r[e]}i.keys=function(){return Object.keys(r)},i.resolve=o,e.exports=i,i.id=93896},93108:(e,t,n)=>{var r={"./monoColor/fallback.json":21586,"./multiColor/fallback.json":74920,"react-file-type-icons/icons/IconsData/monoColor/fallback.json":21586,"react-file-type-icons/icons/IconsData/multiColor/fallback.json":74920};function i(e){var t=o(e);return n(t)}function o(e){if(!n.o(r,e)){var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}return r[e]}i.keys=function(){return Object.keys(r)},i.resolve=o,e.exports=i,i.id=93108},57936:(e,t,n)=>{var r={"./monoColor/font.json":15800,"./multiColor/font.json":87056,"react-file-type-icons/icons/IconsData/monoColor/font.json":15800,"react-file-type-icons/icons/IconsData/multiColor/font.json":87056};function i(e){var t=o(e);return n(t)}function o(e){if(!n.o(r,e)){var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}return r[e]}i.keys=function(){return Object.keys(r)},i.resolve=o,e.exports=i,i.id=57936},80472:(e,t,n)=>{var r={"./monoColor/html.json":87808,"./multiColor/html.json":58056,"react-file-type-icons/icons/IconsData/monoColor/html.json":87808,"react-file-type-icons/icons/IconsData/multiColor/html.json":58056};function i(e){var t=o(e);return n(t)}function o(e){if(!n.o(r,e)){var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}return r[e]}i.keys=function(){return Object.keys(r)},i.resolve=o,e.exports=i,i.id=80472},92376:(e,t,n)=>{var r={"./monoColor/image.json":16660,"./multiColor/image.json":1548,"react-file-type-icons/icons/IconsData/monoColor/image.json":16660,"react-file-type-icons/icons/IconsData/multiColor/image.json":1548};function i(e){var t=o(e);return n(t)}function o(e){if(!n.o(r,e)){var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}return r[e]}i.keys=function(){return Object.keys(r)},i.resolve=o,e.exports=i,i.id=92376},56416:(e,t,n)=>{var r={"./monoColor/java.json":21676,"./multiColor/java.json":81e3,"react-file-type-icons/icons/IconsData/monoColor/java.json":21676,"react-file-type-icons/icons/IconsData/multiColor/java.json":81e3};function i(e){var t=o(e);return n(t)}function o(e){if(!n.o(r,e)){var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}return r[e]}i.keys=function(){return Object.keys(r)},i.resolve=o,e.exports=i,i.id=56416},23747:(e,t,n)=>{var r={"./monoColor/js.json":28216,"./multiColor/js.json":64256,"react-file-type-icons/icons/IconsData/monoColor/js.json":28216,"react-file-type-icons/icons/IconsData/multiColor/js.json":64256};function i(e){var t=o(e);return n(t)}function o(e){if(!n.o(r,e)){var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}return r[e]}i.keys=function(){return Object.keys(r)},i.resolve=o,e.exports=i,i.id=23747},34340:(e,t,n)=>{var r={"./monoColor/json.json":80536,"./multiColor/json.json":47312,"react-file-type-icons/icons/IconsData/monoColor/json.json":80536,"react-file-type-icons/icons/IconsData/multiColor/json.json":47312};function i(e){var t=o(e);return n(t)}function o(e){if(!n.o(r,e)){var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}return r[e]}i.keys=function(){return Object.keys(r)},i.resolve=o,e.exports=i,i.id=34340},95704:(e,t,n)=>{var r={"./monoColor/pdf.json":13826,"./multiColor/pdf.json":9458,"react-file-type-icons/icons/IconsData/monoColor/pdf.json":13826,"react-file-type-icons/icons/IconsData/multiColor/pdf.json":9458};function i(e){var t=o(e);return n(t)}function o(e){if(!n.o(r,e)){var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}return r[e]}i.keys=function(){return Object.keys(r)},i.resolve=o,e.exports=i,i.id=95704},72192:(e,t,n)=>{var r={"./monoColor/php.json":60540,"./multiColor/php.json":78376,"react-file-type-icons/icons/IconsData/monoColor/php.json":60540,"react-file-type-icons/icons/IconsData/multiColor/php.json":78376};function i(e){var t=o(e);return n(t)}function o(e){if(!n.o(r,e)){var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}return r[e]}i.keys=function(){return Object.keys(r)},i.resolve=o,e.exports=i,i.id=72192},60052:(e,t,n)=>{var r={"./monoColor/py.json":19144,"./multiColor/py.json":99428,"react-file-type-icons/icons/IconsData/monoColor/py.json":19144,"react-file-type-icons/icons/IconsData/multiColor/py.json":99428};function i(e){var t=o(e);return n(t)}function o(e){if(!n.o(r,e)){var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}return r[e]}i.keys=function(){return Object.keys(r)},i.resolve=o,e.exports=i,i.id=60052},66888:(e,t,n)=>{var r={"./monoColor/setting.json":37104,"./multiColor/setting.json":67396,"react-file-type-icons/icons/IconsData/monoColor/setting.json":37104,"react-file-type-icons/icons/IconsData/multiColor/setting.json":67396};function i(e){var t=o(e);return n(t)}function o(e){if(!n.o(r,e)){var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}return r[e]}i.keys=function(){return Object.keys(r)},i.resolve=o,e.exports=i,i.id=66888},65288:(e,t,n)=>{var r={"./monoColor/slides.json":28392,"./multiColor/slides.json":99826,"react-file-type-icons/icons/IconsData/monoColor/slides.json":28392,"react-file-type-icons/icons/IconsData/multiColor/slides.json":99826};function i(e){var t=o(e);return n(t)}function o(e){if(!n.o(r,e)){var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}return r[e]}i.keys=function(){return Object.keys(r)},i.resolve=o,e.exports=i,i.id=65288},18028:(e,t,n)=>{var r={"./monoColor/spreadsheet.json":50400,"./multiColor/spreadsheet.json":38296,"react-file-type-icons/icons/IconsData/monoColor/spreadsheet.json":50400,"react-file-type-icons/icons/IconsData/multiColor/spreadsheet.json":38296};function i(e){var t=o(e);return n(t)}function o(e){if(!n.o(r,e)){var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}return r[e]}i.keys=function(){return Object.keys(r)},i.resolve=o,e.exports=i,i.id=18028},12652:(e,t,n)=>{var r={"./monoColor/svg.json":96824,"./multiColor/svg.json":40200,"react-file-type-icons/icons/IconsData/monoColor/svg.json":96824,"react-file-type-icons/icons/IconsData/multiColor/svg.json":40200};function i(e){var t=o(e);return n(t)}function o(e){if(!n.o(r,e)){var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}return r[e]}i.keys=function(){return Object.keys(r)},i.resolve=o,e.exports=i,i.id=12652},27268:(e,t,n)=>{var r={"./monoColor/video.json":63692,"./multiColor/video.json":1842,"react-file-type-icons/icons/IconsData/monoColor/video.json":63692,"react-file-type-icons/icons/IconsData/multiColor/video.json":1842};function i(e){var t=o(e);return n(t)}function o(e){if(!n.o(r,e)){var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}return r[e]}i.keys=function(){return Object.keys(r)},i.resolve=o,e.exports=i,i.id=27268},11392:()=>{},20728:()=>{},31192:()=>{},22892:()=>{},45344:()=>{},10440:()=>{},22224:()=>{},65724:()=>{},8160:()=>{},74899:e=>{e.exports=function(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r},e.exports.__esModule=!0,e.exports.default=e.exports},48388:e=>{e.exports=function(e){if(Array.isArray(e))return e},e.exports.__esModule=!0,e.exports.default=e.exports},71559:e=>{e.exports=function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e},e.exports.__esModule=!0,e.exports.default=e.exports},12248:e=>{e.exports=function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")},e.exports.__esModule=!0,e.exports.default=e.exports},75068:e=>{e.exports=function(e,t){return t.get?t.get.call(e):t.value},e.exports.__esModule=!0,e.exports.default=e.exports},76652:e=>{e.exports=function(e,t,n){if(t.set)t.set.call(e,n);else{if(!t.writable)throw new TypeError("attempted to set read only private field");t.value=n}},e.exports.__esModule=!0,e.exports.default=e.exports},94064:e=>{e.exports=function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")},e.exports.__esModule=!0,e.exports.default=e.exports},8839:e=>{e.exports=function(e,t){if(e!==t)throw new TypeError("Private static access of wrong provenance")},e.exports.__esModule=!0,e.exports.default=e.exports},71696:e=>{e.exports=function(e,t){if(void 0===e)throw new TypeError("attempted to "+t+" private static field before its declaration")},e.exports.__esModule=!0,e.exports.default=e.exports},71516:e=>{e.exports=function(e,t,n){if(!t.has(e))throw new TypeError("attempted to "+n+" private field on non-instance");return t.get(e)},e.exports.__esModule=!0,e.exports.default=e.exports},46680:(e,t,n)=>{var r=n(75068),i=n(71516);e.exports=function(e,t){var n=i(e,t,"get");return r(e,n)},e.exports.__esModule=!0,e.exports.default=e.exports},66516:(e,t,n)=>{var r=n(12248);e.exports=function(e,t,n){r(e,t),t.set(e,n)},e.exports.__esModule=!0,e.exports.default=e.exports},31960:(e,t,n)=>{var r=n(76652),i=n(71516);e.exports=function(e,t,n){var o=i(e,t,"set");return r(e,o,n),n},e.exports.__esModule=!0,e.exports.default=e.exports},75692:e=>{e.exports=function(e,t,n){if(!t.has(e))throw new TypeError("attempted to get private field on non-instance");return n},e.exports.__esModule=!0,e.exports.default=e.exports},33092:(e,t,n)=>{var r=n(12248);e.exports=function(e,t){r(e,t),t.add(e)},e.exports.__esModule=!0,e.exports.default=e.exports},12448:(e,t,n)=>{var r=n(75068),i=n(8839),o=n(71696);e.exports=function(e,t,n){return i(e,t),o(n,"get"),r(e,n)},e.exports.__esModule=!0,e.exports.default=e.exports},23196:(e,t,n)=>{var r=n(76652),i=n(8839),o=n(71696);e.exports=function(e,t,n,s){return i(e,t),o(n,"set"),r(e,n,s),s},e.exports.__esModule=!0,e.exports.default=e.exports},69628:(e,t,n)=>{var r=n(8839);e.exports=function(e,t,n){return r(e,t),n},e.exports.__esModule=!0,e.exports.default=e.exports},66024:(e,t,n)=>{var r=n(35216);function i(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,r(i.key),i)}}e.exports=function(e,t,n){return t&&i(e.prototype,t),n&&i(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e},e.exports.__esModule=!0,e.exports.default=e.exports},2676:(e,t,n)=>{var r=n(35216);e.exports=function(e,t,n){return(t=r(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e},e.exports.__esModule=!0,e.exports.default=e.exports},63532:e=>{function t(n){return e.exports=t=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},e.exports.__esModule=!0,e.exports.default=e.exports,t(n)}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports},54216:(e,t,n)=>{var r=n(5816);e.exports=function(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&r(e,t)},e.exports.__esModule=!0,e.exports.default=e.exports},22411:e=>{e.exports=function(e){return e&&e.__esModule?e:{default:e}},e.exports.__esModule=!0,e.exports.default=e.exports},90064:e=>{e.exports=function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,i,o,s,a=[],l=!0,c=!1;try{if(o=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;l=!1}else for(;!(l=(r=o.call(n)).done)&&(a.push(r.value),a.length!==t);l=!0);}catch(e){c=!0,i=e}finally{try{if(!l&&null!=n.return&&(s=n.return(),Object(s)!==s))return}finally{if(c)throw i}}return a}},e.exports.__esModule=!0,e.exports.default=e.exports},89708:e=>{e.exports=function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")},e.exports.__esModule=!0,e.exports.default=e.exports},96284:(e,t,n)=>{var r=n(59848).default,i=n(71559);e.exports=function(e,t){if(t&&("object"===r(t)||"function"===typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return i(e)},e.exports.__esModule=!0,e.exports.default=e.exports},5816:e=>{function t(n,r){return e.exports=t=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},e.exports.__esModule=!0,e.exports.default=e.exports,t(n,r)}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports},97936:(e,t,n)=>{var r=n(48388),i=n(90064),o=n(83384),s=n(89708);e.exports=function(e,t){return r(e)||i(e,t)||o(e,t)||s()},e.exports.__esModule=!0,e.exports.default=e.exports},26776:(e,t,n)=>{var r=n(59848).default;e.exports=function(e,t){if("object"!=r(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var i=n.call(e,t||"default");if("object"!=r(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)},e.exports.__esModule=!0,e.exports.default=e.exports},35216:(e,t,n)=>{var r=n(59848).default,i=n(26776);e.exports=function(e){var t=i(e,"string");return"symbol"==r(t)?t:String(t)},e.exports.__esModule=!0,e.exports.default=e.exports},59848:e=>{function t(n){return e.exports=t="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},e.exports.__esModule=!0,e.exports.default=e.exports,t(n)}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports},83384:(e,t,n)=>{var r=n(74899);e.exports=function(e,t){if(e){if("string"===typeof e)return r(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?r(e,t):void 0}},e.exports.__esModule=!0,e.exports.default=e.exports},45072:(e,t,n)=>{"use strict";function r(){return r=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},r.apply(this,arguments)}n.d(t,{c:()=>r})},95656:(e,t,n)=>{"use strict";function r(e,t){if(null==e)return{};var n,r,i={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(i[n]=e[n]);return i}n.d(t,{c:()=>r})},94268:(e,t,n)=>{"use strict";n.d(t,{AF:()=>h,Qh:()=>o,WK:()=>r,Wc:()=>u,iI:()=>l,v1:()=>c,wP:()=>a,wh:()=>d});const r={315:"Artist",258:"BitsPerSample",265:"CellLength",264:"CellWidth",320:"ColorMap",259:"Compression",33432:"Copyright",306:"DateTime",338:"ExtraSamples",266:"FillOrder",289:"FreeByteCounts",288:"FreeOffsets",291:"GrayResponseCurve",290:"GrayResponseUnit",316:"HostComputer",270:"ImageDescription",257:"ImageLength",256:"ImageWidth",271:"Make",281:"MaxSampleValue",280:"MinSampleValue",272:"Model",254:"NewSubfileType",274:"Orientation",262:"PhotometricInterpretation",284:"PlanarConfiguration",296:"ResolutionUnit",278:"RowsPerStrip",277:"SamplesPerPixel",305:"Software",279:"StripByteCounts",273:"StripOffsets",255:"SubfileType",263:"Threshholding",282:"XResolution",283:"YResolution",326:"BadFaxLines",327:"CleanFaxData",343:"ClipPath",328:"ConsecutiveBadFaxLines",433:"Decode",434:"DefaultImageColor",269:"DocumentName",336:"DotRange",321:"HalftoneHints",346:"Indexed",347:"JPEGTables",285:"PageName",297:"PageNumber",317:"Predictor",319:"PrimaryChromaticities",532:"ReferenceBlackWhite",339:"SampleFormat",340:"SMinSampleValue",341:"SMaxSampleValue",559:"StripRowCounts",330:"SubIFDs",292:"T4Options",293:"T6Options",325:"TileByteCounts",323:"TileLength",324:"TileOffsets",322:"TileWidth",301:"TransferFunction",318:"WhitePoint",344:"XClipPathUnits",286:"XPosition",529:"YCbCrCoefficients",531:"YCbCrPositioning",530:"YCbCrSubSampling",345:"YClipPathUnits",287:"YPosition",37378:"ApertureValue",40961:"ColorSpace",36868:"DateTimeDigitized",36867:"DateTimeOriginal",34665:"Exif IFD",36864:"ExifVersion",33434:"ExposureTime",41728:"FileSource",37385:"Flash",40960:"FlashpixVersion",33437:"FNumber",42016:"ImageUniqueID",37384:"LightSource",37500:"MakerNote",37377:"ShutterSpeedValue",37510:"UserComment",33723:"IPTC",34675:"ICC Profile",700:"XMP",42112:"GDAL_METADATA",42113:"GDAL_NODATA",34377:"Photoshop",33550:"ModelPixelScale",33922:"ModelTiepoint",34264:"ModelTransformation",34735:"GeoKeyDirectory",34736:"GeoDoubleParams",34737:"GeoAsciiParams",50674:"LercParameters"},i={};for(const f in r)r.hasOwnProperty(f)&&(i[r[f]]=parseInt(f,10));const o=[i.BitsPerSample,i.ExtraSamples,i.SampleFormat,i.StripByteCounts,i.StripOffsets,i.StripRowCounts,i.TileByteCounts,i.TileOffsets,i.SubIFDs],s={1:"BYTE",2:"ASCII",3:"SHORT",4:"LONG",5:"RATIONAL",6:"SBYTE",7:"UNDEFINED",8:"SSHORT",9:"SLONG",10:"SRATIONAL",11:"FLOAT",12:"DOUBLE",13:"IFD",16:"LONG8",17:"SLONG8",18:"IFD8"},a={};for(const f in s)s.hasOwnProperty(f)&&(a[s[f]]=parseInt(f,10));const l={WhiteIsZero:0,BlackIsZero:1,RGB:2,Palette:3,TransparencyMask:4,CMYK:5,YCbCr:6,CIELab:8,ICCLab:9},c={Unspecified:0,Assocalpha:1,Unassalpha:2},u={Version:0,AddCompression:1},d={None:0,Deflate:1,Zstandard:2},h={1024:"GTModelTypeGeoKey",1025:"GTRasterTypeGeoKey",1026:"GTCitationGeoKey",2048:"GeographicTypeGeoKey",2049:"GeogCitationGeoKey",2050:"GeogGeodeticDatumGeoKey",2051:"GeogPrimeMeridianGeoKey",2052:"GeogLinearUnitsGeoKey",2053:"GeogLinearUnitSizeGeoKey",2054:"GeogAngularUnitsGeoKey",2055:"GeogAngularUnitSizeGeoKey",2056:"GeogEllipsoidGeoKey",2057:"GeogSemiMajorAxisGeoKey",2058:"GeogSemiMinorAxisGeoKey",2059:"GeogInvFlatteningGeoKey",2060:"GeogAzimuthUnitsGeoKey",2061:"GeogPrimeMeridianLongGeoKey",2062:"GeogTOWGS84GeoKey",3072:"ProjectedCSTypeGeoKey",3073:"PCSCitationGeoKey",3074:"ProjectionGeoKey",3075:"ProjCoordTransGeoKey",3076:"ProjLinearUnitsGeoKey",3077:"ProjLinearUnitSizeGeoKey",3078:"ProjStdParallel1GeoKey",3079:"ProjStdParallel2GeoKey",3080:"ProjNatOriginLongGeoKey",3081:"ProjNatOriginLatGeoKey",3082:"ProjFalseEastingGeoKey",3083:"ProjFalseNorthingGeoKey",3084:"ProjFalseOriginLongGeoKey",3085:"ProjFalseOriginLatGeoKey",3086:"ProjFalseOriginEastingGeoKey",3087:"ProjFalseOriginNorthingGeoKey",3088:"ProjCenterLongGeoKey",3089:"ProjCenterLatGeoKey",3090:"ProjCenterEastingGeoKey",3091:"ProjCenterNorthingGeoKey",3092:"ProjScaleAtNatOriginGeoKey",3093:"ProjScaleAtCenterGeoKey",3094:"ProjAzimuthAngleGeoKey",3095:"ProjStraightVertPoleLongGeoKey",3096:"ProjRectifiedGridAngleGeoKey",4096:"VerticalCSTypeGeoKey",4097:"VerticalCitationGeoKey",4098:"VerticalDatumGeoKey",4099:"VerticalUnitsGeoKey"},p={};for(const f in h)h.hasOwnProperty(f)&&(p[h[f]]=parseInt(f,10))},84280:e=>{"use strict";e.exports=JSON.parse('{"tag":"svg","attr":{"viewBox":"0 0 548.291 548.291"},"child":[{"tag":"path","attr":{"d":"M274.145,410.552c-5.751,0-9.648,0.561-11.696,1.111v36.931c2.413,0.556,5.386,0.745,9.471,0.745\\n\\t\\t\\tc15.034,0,24.305-7.611,24.305-20.42C296.224,417.414,288.245,410.552,274.145,410.552z"}},{"tag":"path","attr":{"d":"M159.446,411.292h-0.365c-1.861,7.422-3.717,16.897-5.753,24.125l-7.423,26.541h27.646l-7.791-26.541\\n\\t\\t\\tC163.529,427.996,161.304,418.714,159.446,411.292z"}},{"tag":"path","attr":{"d":"M472.929,131.385c-0.031-2.514-0.839-4.992-2.566-6.96L364.656,3.667c-0.031-0.029-0.062-0.044-0.084-0.07\\n\\t\\t\\tc-0.63-0.709-1.365-1.284-2.142-1.795c-0.231-0.149-0.463-0.29-0.704-0.42c-0.672-0.37-1.376-0.667-2.121-0.888\\n\\t\\t\\tc-0.2-0.058-0.377-0.144-0.577-0.186C358.231,0.113,357.4,0,356.561,0H96.757C84.904,0,75.255,9.644,75.255,21.502V526.79\\n\\t\\t\\tc0,11.854,9.649,21.501,21.502,21.501h354.775c11.853,0,21.503-9.647,21.503-21.501v-394.2\\n\\t\\t\\tC473.036,132.186,472.971,131.79,472.929,131.385z M187.278,515.219l-9.648-32.104h-35.812l-8.901,32.104h-29.323l38.224-125.083\\n\\t\\t\\th37.114l38.782,125.083H187.278z M312.749,457.875c-9.658,9.092-23.946,13.175-40.652,13.175c-3.702,0-7.045-0.188-9.647-0.556\\n\\t\\t\\tv44.714h-28.023V391.805c8.725-1.475,20.977-2.587,38.226-2.587c17.447,0,29.884,3.332,38.235,10.011\\n\\t\\t\\tc7.973,6.309,13.349,16.704,13.349,28.961C324.245,440.427,320.161,450.82,312.749,457.875z M411.669,515.219l-30.625-54.006\\n\\t\\t\\tl-10.762,13.177v40.829h-28.021V390.136h28.021v55.303h0.557c2.786-4.824,5.752-9.275,8.541-13.737l28.395-41.565h34.697\\n\\t\\t\\tl-41.382,53.262l43.607,71.811h-33.028V515.219z M275.005,365.076l0.609-0.608c7.254-7.271,7.254-19.16-0.01-26.432\\n\\t\\t\\tc-7.271-7.264-19.162-7.261-26.429,0l-27.042,27.04h-13.218l33.648-33.648l-118.93-118.931l-26.877,26.877v-13.208l20.265-20.278\\n\\t\\t\\tc7.278-7.27,7.278-19.163,0-26.431c-5.473-5.464-13.504-6.7-20.265-3.935V21.502H345.81v110.006\\n\\t\\t\\tc0,5.935,4.819,10.751,10.751,10.751h94.972v222.816H275.005z"}},{"tag":"path","attr":{"d":"M291.425,223.478l-24.794,7.819c-4.087-9.218-9.903-17.861-17.46-25.415c-7.546-7.557-16.192-13.362-25.42-17.446\\n\\t\\t\\tl7.822-24.804c0.386-1.226-0.297-2.543-1.522-2.929c-1.231-0.387-2.541,0.302-2.929,1.527l-7.709,24.425\\n\\t\\t\\tc-27.181-10.247-58.601-5.918-82.206,12.987l118.207,118.199c18.911-23.602,23.23-55.022,12.987-82.206l24.433-7.708\\n\\t\\t\\tc1.218-0.386,1.906-1.704,1.507-2.929C293.978,223.783,292.643,223.09,291.425,223.478z M199.288,222.074\\n\\t\\t\\tc-5.292,5.284-13.869,5.284-19.16-0.005c-5.289-5.289-5.289-13.874,0-19.164c5.281-5.289,13.869-5.289,19.171,0\\n\\t\\t\\tC204.583,208.206,204.583,216.78,199.288,222.074z M252.149,274.933c-5.302,5.285-13.869,5.285-19.17,0\\n\\t\\t\\tc-5.289-5.297-5.278-13.876,0-19.16c5.302-5.289,13.869-5.289,19.17,0C257.444,261.062,257.444,269.647,252.149,274.933z"}}]}')},71240:e=>{"use strict";e.exports=JSON.parse('{"tag":"svg","attr":{"viewBox":"0 0 512 512"},"child":[{"tag":"path","attr":{"d":"M204.8,384A12.8,12.8,0,1,1,192,371.2,12.81,12.81,0,0,1,204.8,384Zm89.6-25.6a12.8,12.8,0,1,0,12.8,12.8A12.81,12.81,0,0,0,294.4,358.4Zm-64-65.7,76.8-9.6V270.5l-76.8,9.6ZM460.8,153.6V448a64,64,0,0,1-64,64H115.2a64,64,0,0,1-64-64V64a64,64,0,0,1,64-64H307.34ZM332.8,256c0-.28-.06-.54-.08-.81s0-.51,0-.78-.08-.31-.11-.47a12.5,12.5,0,0,0-.31-1.36c-.1-.38-.21-.74-.34-1.1a12.65,12.65,0,0,0-.56-1.24c-.17-.34-.34-.68-.54-1a12.67,12.67,0,0,0-.78-1.08c-.23-.3-.46-.6-.72-.88a12.83,12.83,0,0,0-.94-.88c-.3-.26-.6-.52-.92-.76s-.65-.43-1-.63a13,13,0,0,0-1.18-.64c-.31-.14-.62-.25-.94-.37a12.59,12.59,0,0,0-1.46-.45c-.29-.07-.59-.11-.9-.16a12.3,12.3,0,0,0-1.61-.16c-.14,0-.26,0-.4,0s-.49.06-.74.07-.56,0-.85,0L216,256.1c-.16,0-.31.08-.47.11a12,12,0,0,0-1.33.3c-.39.11-.77.21-1.14.35a12.09,12.09,0,0,0-1.17.53c-.36.18-.72.36-1.07.58s-.68.47-1,.72-.64.49-.94.77-.58.6-.86.91-.52.59-.75.91a12.79,12.79,0,0,0-.69,1.08c-.2.34-.39.67-.56,1a12.76,12.76,0,0,0-.47,1.19c-.14.39-.26.77-.36,1.17s-.16.81-.22,1.23a12.61,12.61,0,0,0-.13,1.31c0,.17-.05.33-.05.5v79A38.38,38.38,0,1,0,230.4,384V318.5l76.8-9.6V335a38.38,38.38,0,1,0,25.6,36.17Zm102.4-89.6L294.4,25.6v76.8a64,64,0,0,0,64,64Z"}}]}')},7799:e=>{"use strict";e.exports=JSON.parse('{"tag":"svg","attr":{"viewBox":"0 0 128 128"},"child":[{"tag":"path","attr":{"d":"M117.5 33.5l.3-.2c-.6-1.1-1.5-2.1-2.4-2.6l-48.3-27.8c-.8-.5-1.9-.7-3.1-.7-1.2 0-2.3.3-3.1.7l-48 27.9c-1.7 1-2.9 3.5-2.9 5.4v55.7c0 1.1.2 2.3.9 3.4l-.2.1c.5.8 1.2 1.5 1.9 1.9l48.2 27.9c.8.5 1.9.7 3.1.7 1.2 0 2.3-.3 3.1-.7l48-27.9c1.7-1 2.9-3.5 2.9-5.4v-55.8c.1-.8 0-1.7-.4-2.6zm-53.5 55c9.1 0 17.1-5 21.3-12.4l12.9 7.6c-6.8 11.8-19.6 19.8-34.2 19.8-21.8 0-39.5-17.7-39.5-39.5s17.7-39.5 39.5-39.5c14.7 0 27.5 8.1 34.3 20l-13 7.5c-4.2-7.5-12.2-12.5-21.3-12.5-13.5 0-24.5 11-24.5 24.5s11 24.5 24.5 24.5z"}}]}')},37795:e=>{"use strict";e.exports=JSON.parse('{"tag":"svg","attr":{"viewBox":"0 0 24 24"},"child":[{"tag":"path","attr":{"d":"M20 6H12L10 4H4C2.9 4 2 4.9 2 6V18C2 19.1 2.9 20 4 20H20C21.1 20 22 19.1 22 18V8C22 6.9 21.1 6 20 6M18 12H16V14H18V16H16V18H14V16H16V14H14V12H16V10H14V8H16V10H18V12Z"}}]}')},64808:e=>{"use strict";e.exports=JSON.parse('{"tag":"svg","attr":{"viewBox":"0 0 50 50"},"child":[{"tag":"path","attr":{"d":"M43.91 12.004L27.07 2.539a4.265 4.265 0 0 0-4.14 0L6.09 12.004A4.066 4.066 0 0 0 4 15.535v18.93c0 1.453.8 2.808 2.09 3.531l16.84 9.465c.64.36 1.355.539 2.07.539.715 0 1.43-.18 2.07-.54l16.84-9.464A4.066 4.066 0 0 0 46 34.465v-18.93c0-1.453-.8-2.808-2.09-3.531zM25 37c-6.617 0-12-5.383-12-12s5.383-12 12-12c3.781 0 7.273 1.754 9.543 4.742l-4.383 2.535A6.993 6.993 0 0 0 25 18c-3.86 0-7 3.14-7 7s3.14 7 7 7a6.993 6.993 0 0 0 5.16-2.277l4.383 2.535A11.931 11.931 0 0 1 25 37zm12-11h-2v2h-2v-2h-2v-2h2v-2h2v2h2zm7 0h-2v2h-2v-2h-2v-2h2v-2h2v2h2z"}}]}')},41608:e=>{"use strict";e.exports=JSON.parse('{"tag":"svg","attr":{"viewBox":"0 0 50 50"},"child":[{"tag":"path","attr":{"d":"M25 2c-.715 0-1.43.18-2.066.54L6.09 12.003A4.066 4.066 0 0 0 4 15.535v18.93c0 1.453.8 2.808 2.09 3.531l16.844 9.465c.636.36 1.351.539 2.066.539.715 0 1.43-.18 2.066-.54L43.91 38A4.077 4.077 0 0 0 46 34.465v-18.93c0-1.453-.8-2.808-2.09-3.531L27.066 2.539A4.206 4.206 0 0 0 25 2zm0 11c3.781 0 7.277 1.754 9.543 4.738l-4.383 2.54A6.993 6.993 0 0 0 25 18c-3.86 0-7 3.14-7 7s3.14 7 7 7a6.993 6.993 0 0 0 5.16-2.277l4.383 2.539A11.933 11.933 0 0 1 25 37c-6.617 0-12-5.383-12-12s5.383-12 12-12zm10 7h2v2h2v-2h2v2h2v2h-2v2h2v2h-2v2h-2v-2h-2v2h-2v-2h-2v-2h2v-2h-2v-2h2zm2 4v2h2v-2z"}}]}')},88392:e=>{"use strict";e.exports=JSON.parse('{"tag":"svg","attr":{"viewBox":"0 0 16 16"},"child":[{"tag":"path","attr":{"d":"M1 0l1.275 14.4L8 16l5.723-1.599L15 0H1zm11.274 4.709l-.161 1.809-.485 5.424L8 12.944l-.002.001-3.625-1.004-.254-2.836h1.776l.132 1.472 1.971.532.002-.002 1.973-.532.269-2.451-6.208.017-.176-1.677 6.533-.076.132-1.795-6.84.019-.115-1.668h8.864l-.158 1.765z"}}]}')},17274:e=>{"use strict";e.exports=JSON.parse('{"tag":"svg","attr":{"viewBox":"0 0 60 60"},"child":[{"tag":"path","attr":{"d":"M43.534,43.22c-0.287,0.008-0.574,0.014-0.861,0.019c-0.055,0.001-0.11,0.002-0.166,0.003\\n\\t\\tc-0.336,0.005-0.672,0.007-1.007,0.007c-0.336,0-0.673-0.003-1.01-0.007c-0.045-0.001-0.091-0.002-0.136-0.003\\n\\t\\tc-0.298-0.005-0.595-0.011-0.893-0.02c-0.021,0-0.042-0.001-0.062-0.002C32.549,43.015,25.761,41.822,22,39.699v3.551v0.375V44\\n\\t\\tv2.091c2.138,2.156,9.602,4.159,19.5,4.159c8.708,0,15.527-1.551,18.5-3.391V44v-0.375V43.25v-3.041\\n\\t\\tc-3.887,1.802-10.103,2.82-16.373,3.008C43.596,43.218,43.565,43.219,43.534,43.22z"}},{"tag":"path","attr":{"d":"M22,30.695v3.555v0.375V35v2.074c0.052,0.052,0.098,0.105,0.157,0.157c0.044,0.04,0.087,0.08,0.135,0.12\\n\\t\\tC24.8,39.4,32.198,41.25,41.5,41.25c8.548,0,15.485-1.563,18.5-3.405V35v-0.375V34.25V31.2c-4.331,2-11.552,3.05-18.5,3.05\\n\\t\\tC33.987,34.25,26.151,33.023,22,30.695z"}},{"tag":"path","attr":{"d":"M22,48.699V53c0,0.15,0.036,0.294,0.1,0.422C23.147,57.742,32.312,60,41,60c8.672,0,17.816-2.249,18.895-6.553\\n\\t\\tC59.962,53.313,60,53.161,60,53v-3.791c-4.326,2.006-11.54,3.041-18.5,3.041C33.971,52.25,26.146,51.04,22,48.699z"}},{"tag":"path","attr":{"d":"M41,18.25c-8.69,0-17.89,2.302-18.904,6.584C22.037,24.962,22,25.1,22,25.25v0.375v2.449\\n\\t\\tc2.153,2.155,9.779,4.176,19.5,4.176c8.548,0,15.485-1.563,18.5-3.405v-3.22V25.25c0-0.145-0.036-0.28-0.094-0.404\\n\\t\\tC58.906,20.556,49.698,18.25,41,18.25z"}},{"tag":"path","attr":{"d":"M55.392,0H4.608C2.067,0,0,2.067,0,4.608v11.783C0,17.365,0.314,18.26,0.835,19h24.016c3.974-1.805,9.935-2.75,15.693-2.75\\n\\t\\tc5.758,0,11.718,0.946,15.692,2.75h2.928C59.686,18.26,60,17.365,60,16.392V4.608C60,2.067,57.933,0,55.392,0z M10.5,15\\n\\t\\tC8.019,15,6,12.981,6,10.5S8.019,6,10.5,6S15,8.019,15,10.5S12.981,15,10.5,15z M34,10c-0.552,0-1-0.448-1-1s0.448-1,1-1\\n\\t\\ts1,0.448,1,1S34.552,10,34,10z M36,13c-0.552,0-1-0.448-1-1s0.448-1,1-1s1,0.448,1,1S36.552,13,36,13z M38,10c-0.552,0-1-0.448-1-1\\n\\t\\ts0.448-1,1-1s1,0.448,1,1S38.552,10,38,10z M40,13c-0.552,0-1-0.448-1-1s0.448-1,1-1s1,0.448,1,1S40.552,13,40,13z M42,10\\n\\t\\tc-0.552,0-1-0.448-1-1s0.448-1,1-1s1,0.448,1,1S42.552,10,42,10z M44,13c-0.552,0-1-0.448-1-1s0.448-1,1-1s1,0.448,1,1\\n\\t\\tS44.552,13,44,13z M46,10c-0.552,0-1-0.448-1-1s0.448-1,1-1s1,0.448,1,1S46.552,10,46,10z M48,13c-0.552,0-1-0.448-1-1s0.448-1,1-1\\n\\t\\ts1,0.448,1,1S48.552,13,48,13z M50,10c-0.552,0-1-0.448-1-1s0.448-1,1-1s1,0.448,1,1S50.552,10,50,10z M52,13c-0.552,0-1-0.448-1-1\\n\\t\\ts0.448-1,1-1s1,0.448,1,1S52.552,13,52,13z"}},{"tag":"path","attr":{"d":"M20,38c0-0.156,0-3,0-3v-0.375V34.25v-3.555v-2.621v-2.449V25.25c0-0.15,0.037-0.288,0.096-0.416\\n\\t\\tc0.365-1.541,1.801-2.821,3.881-3.834H0.835C0.314,21.74,0,22.635,0,23.608v11.783C0,36.365,0.314,37.26,0.835,38H20z M10.5,25\\n\\t\\tc2.481,0,4.5,2.019,4.5,4.5S12.981,34,10.5,34S6,31.981,6,29.5S8.019,25,10.5,25z"}},{"tag":"path","attr":{"d":"M22.718,56.569c-1.386-0.883-2.324-1.933-2.618-3.147C20.036,53.294,20,53.15,20,53v-4.301v-2.607V44v-0.375V43.25V40\\n\\t\\tH0.835C0.314,40.74,0,41.635,0,42.608v11.783C0,56.937,2.063,59,4.608,59h17.469c0.011,0,0.021,0,0.032,0\\n\\t\\tC23.376,58.982,23.786,57.249,22.718,56.569z M10.5,53C8.019,53,6,50.981,6,48.5S8.019,44,10.5,44s4.5,2.019,4.5,4.5\\n\\t\\tS12.981,53,10.5,53z"}}]}')},64308:e=>{"use strict";e.exports=JSON.parse('{"tag":"svg","attr":{"viewBox":"0 0 10 10"},"child":[{"tag":"path","attr":{"d":"m -135.23963,96.786007 c -0.28858,0 -0.52917,0.241106 -0.52917,0.529683 v 6.87866 c 0,0.28857 0.24059,0.52916 0.52917,0.52916 h 5.29115 c 0.28858,0 0.52916,-0.24059 0.52916,-0.52916 v -6.083876 a 0.26460978,0.26460978 0 0 0 -0.078,-0.187586 l -1.05885,-1.058333 a 0.26460978,0.26460978 0 0 0 -0.18552,-0.07855 z m 2.6448,1.324467 c 1.16588,0 2.11718,0.949244 2.11718,2.115116 0,1.16587 -0.9513,2.11719 -2.11718,2.11719 -1.16587,0 -2.11564,-0.95132 -2.11564,-2.11719 0,-1.165872 0.94977,-2.115116 2.11564,-2.115116 z m 0,1.189591 c -0.5083,0 -0.92604,0.417219 -0.92604,0.925525 0,0.5083 0.41774,0.92759 0.92604,0.92759 0.50831,0 0.92759,-0.41929 0.92759,-0.92759 0,-0.508306 -0.41928,-0.925525 -0.92759,-0.925525 z m -0.68782,3.837495 a 0.2646098,0.2646098 0 0 1 0.0274,0 h 1.3224 a 0.264845,0.264845 0 1 1 0,0.52969 h -1.3224 a 0.2651991,0.2651991 0 0 1 -0.0274,-0.52969 z","transform":"translate(136.827 -96.521)"}}]}')},88416:e=>{"use strict";e.exports=JSON.parse('{"tag":"svg","attr":{"viewBox":"0 0 338.52 493.3"},"child":[{"tag":"g","attr":{},"child":[{"tag":"polygon","attr":{"points":"240.85 10.26 240.85 116.38 336.53 116.38 240.85 10.26"}},{"tag":"path","attr":{"d":"M246.2,127.72c-8.5,0-15.39-7.64-15.39-17.07V8.25H46.16C20.67,8.25,0,31.18,0,59.45V434.92c0,28.28,20.67,51.2,46.16,51.2h246.2c25.49,0,46.16-22.92,46.16-51.2V127.72ZM158.92,329.08a6.7,6.7,0,0,1-6.69,6.7H51.94a6.7,6.7,0,0,1-6.7-6.7v-5.62a6.7,6.7,0,0,1,6.7-6.7H152.23a6.7,6.7,0,0,1,6.69,6.7Zm141.59-36.4a6.69,6.69,0,0,1-6.69,6.7H51.94a6.7,6.7,0,0,1-6.7-6.7v-5.62a6.7,6.7,0,0,1,6.7-6.7H293.82a6.69,6.69,0,0,1,6.69,6.7Zm0-36.39a6.69,6.69,0,0,1-6.69,6.7H51.94a6.7,6.7,0,0,1-6.7-6.7v-5.63a6.7,6.7,0,0,1,6.7-6.69H293.82a6.69,6.69,0,0,1,6.69,6.69Zm0-36.4a6.69,6.69,0,0,1-6.69,6.7H51.94a6.7,6.7,0,0,1-6.7-6.7v-5.62a6.7,6.7,0,0,1,6.7-6.7H293.82a6.69,6.69,0,0,1,6.69,6.7Zm0-36.4a6.69,6.69,0,0,1-6.69,6.7H51.94a6.7,6.7,0,0,1-6.7-6.7v-5.62a6.7,6.7,0,0,1,6.7-6.7H293.82a6.69,6.69,0,0,1,6.69,6.7Z"}}]}]}')},65152:e=>{"use strict";e.exports=JSON.parse('{"tag":"svg","attr":{"viewBox":"0 0 512 512"},"child":[{"tag":"path","attr":{"d":"M511.695,105.876L331.709,255.751L512,375.738V109.254C512,108.102,511.881,106.978,511.695,105.876z"}},{"tag":"path","attr":{"d":"M315.48,269.264l-22.689,18.893c-10.659,8.876-23.725,13.314-36.79,13.314s-26.132-4.438-36.79-13.314l-22.689-18.893\\n\\t\\tL0,400.053v2.694c0,11.161,9.081,20.242,20.242,20.242h471.515c11.161,0,20.242-9.081,20.242-20.242v-2.694L315.48,269.264z"}},{"tag":"path","attr":{"d":"M491.832,89.012c-0.025,0-0.05,0-0.074,0H20.242c-0.025,0-0.049,0-0.074,0c-2.858,0.011-4.095,3.652-1.899,5.481\\n\\t\\tL203.55,248.777c0.022,0.018,0.044,0.037,0.066,0.055l28.547,23.771c13.812,11.502,33.863,11.502,47.675,0l213.893-178.11\\n\\t\\tC495.927,92.663,494.689,89.022,491.832,89.012z"}},{"tag":"path","attr":{"d":"M0.305,105.876C0.119,106.978,0,108.1,0,109.254v266.484l180.291-119.988L0.305,105.876z"}}]}')},8016:e=>{"use strict";e.exports=JSON.parse('{"tag":"svg","attr":{"viewBox":"0 0 550.801 550.801"},"child":[{"tag":"path","attr":{"d":"M475.095,131.992c-0.032-2.526-0.833-5.021-2.568-6.993L366.324,3.694c-0.021-0.034-0.053-0.045-0.084-0.076\\n\\t\\t\\tc-0.633-0.707-1.36-1.29-2.141-1.804c-0.232-0.15-0.465-0.285-0.707-0.422c-0.686-0.366-1.393-0.67-2.131-0.892\\n\\t\\t\\tc-0.2-0.058-0.379-0.14-0.58-0.192C359.87,0.114,359.047,0,358.203,0H97.2C85.292,0,75.6,9.693,75.6,21.601v507.6\\n\\t\\t\\tc0,11.913,9.692,21.601,21.6,21.601H453.6c11.918,0,21.601-9.688,21.601-21.601V133.202\\n\\t\\t\\tC475.2,132.796,475.137,132.398,475.095,131.992z M346.074,233.561c0.158-0.081,0.316-0.179,0.475-0.253\\n\\t\\t\\tc1.076-0.551,2.205-1.004,3.312-1.484c0.801-0.34,1.587-0.725,2.394-1.025c0.332-0.127,0.686-0.217,1.013-0.338\\n\\t\\t\\tc17.967-6.402,38.67-4.276,55.371,7.589c27.147,19.301,33.539,57.063,14.249,84.232c-9.788,13.753-24.321,22.17-39.825,24.632\\n\\t\\t\\tc-1.771,0.28-3.555,0.507-5.315,0.628c-0.053,0-0.095,0-0.127,0c-30.475,1.951-58.171-19.454-63.376-50.214\\n\\t\\t\\tC309.751,270.81,323.367,245.323,346.074,233.561z M97.2,21.601h250.203v110.515c0,5.961,4.831,10.8,10.8,10.8H453.6v52.078\\n\\t\\t\\tl-22.127-15.712c-1.393-0.999-2.215-0.472-2.832-0.076c-0.005,0.005-0.016,0.011-0.016,0.011c-0.042,0.021-0.095,0.01-0.127,0.037\\n\\t\\t\\tc-3.459,2.27-7.225,3.976-11.153,5.089c-0.258,0.074-0.521,0.113-0.785,0.182c-1.002,0.264-2.004,0.52-3.032,0.701\\n\\t\\t\\tc-5.358,0.968-10.922,0.875-16.29-0.372c-10.726-2.423-20.139-9.281-25.818-18.744c-0.517-0.857-1.535-1.342-2.553-1.171\\n\\t\\t\\tl-30.628,5.184c-1.018,0.174-1.841,0.968-2.052,1.946c-2.235,10.8-8.859,20.366-18.188,26.193\\n\\t\\t\\tc-9.308,5.874-20.862,7.707-31.551,5.002c-0.665-0.153-1.625-0.412-2.632,0.999l-12.445,17.489\\n\\t\\t\\tc-0.037-0.016-0.082-0.026-0.113-0.047l-5.622,7.894c-0.578,0.825-0.588,1.985-0.047,2.845c6.043,9.223,8.11,20.656,5.658,31.385\\n\\t\\t\\tc-2.473,10.752-9.305,20.189-18.766,25.832c-0.856,0.506-1.345,1.561-1.181,2.567l5.189,30.634\\n\\t\\t\\tc0.285,1.688,1.237,1.898,1.954,2.051c10.721,2.189,20.358,8.844,26.195,18.21c4.451,7.056,6.556,15.361,6.16,23.63H97.2V21.601z\\n\\t\\t\\t M207.059,522.192h-83.586V391.184h80.863v24.29h-51.121v27.222h48.21v24.1h-48.21v31.103h53.844V522.192z M296.293,522.192\\n\\t\\t\\tl-11.865-23.715c-4.852-9.134-7.963-15.937-11.651-23.52h-0.39c-2.722,7.583-6.031,14.386-10.115,23.52l-10.884,23.715h-33.816\\n\\t\\t\\tl37.897-66.282l-36.537-64.727h34.014l11.464,23.915c3.895,7.963,6.806,14.381,9.914,21.764h0.391\\n\\t\\t\\tc3.111-8.353,5.632-14.186,8.943-21.764l11.074-23.915h33.824l-36.936,63.951l38.876,67.062h-34.204V522.192z M430.038,522.192\\n\\t\\t\\th-83.584V391.184h80.853v24.29h-51.121v27.222h48.21v24.1h-48.21v31.103h53.853V522.192z"}},{"tag":"path","attr":{"d":"M244.69,251.121c-3.768-3.261-6.075-7.976-6.339-12.943c-0.261-4.978,1.561-9.919,4.973-13.542\\n\\t\\t\\tc0.319-0.335,0.393-0.844,0.2-1.253l-4.147-8.717c0.021-0.016,0.042-0.037,0.063-0.042l-1.883-3.952\\n\\t\\t\\tc-0.071-0.153-0.195-0.246-0.324-0.341c-0.011-0.016-0.029-0.034-0.05-0.05c-0.058-0.047-0.108-0.092-0.172-0.124\\n\\t\\t\\tc-0.147-0.068-0.298-0.113-0.432-0.103c-0.055-0.005-0.098-0.026-0.134-0.032c-4.968,0.356-9.938-1.35-13.624-4.683\\n\\t\\t\\tc-3.699-3.335-5.919-8.105-6.064-13.083c-0.011-0.448-0.319-0.875-0.762-1.031l-13.226-4.693\\n\\t\\t\\tc-0.728-0.258-1.015,0.077-1.237,0.319c-0.005,0.005-0.005,0.005-0.005,0.016c-0.021,0.005-0.037,0.011-0.059,0.026\\n\\t\\t\\tc-1.221,1.411-2.642,2.621-4.213,3.586c-0.103,0.066-0.208,0.119-0.316,0.18c-0.401,0.242-0.812,0.464-1.237,0.675\\n\\t\\t\\tc-2.209,1.078-4.635,1.727-7.13,1.846c-4.962,0.271-9.898-1.551-13.532-4.962c-0.329-0.309-0.83-0.388-1.252-0.195l-12.675,6.032\\n\\t\\t\\tc-0.422,0.206-0.681,0.654-0.649,1.097c0.359,4.973-1.339,9.951-4.669,13.634c-3.322,3.705-8.121,5.922-13.102,6.064\\n\\t\\t\\tc-0.311,0.026-0.759,0.026-1.02,0.76l-3.251,9.139c-0.01,0-0.037,0-0.053-0.011l-1.468,4.129c-0.15,0.433-0.006,0.937,0.334,1.25\\n\\t\\t\\tc3.763,3.259,6.075,7.974,6.328,12.936c0.253,4.981-1.55,9.922-4.967,13.545c-0.309,0.33-0.388,0.841-0.195,1.253l6.043,12.685\\n\\t\\t\\tc0.334,0.702,0.767,0.665,1.102,0.646c4.925-0.366,9.935,1.339,13.624,4.688c3.705,3.322,5.906,8.096,6.069,13.073\\n\\t\\t\\tc0.011,0.454,0.314,0.87,0.744,1.034l13.226,4.683c0.087,0.031,0.166,0.011,0.253,0.011c0.596,0.142,0.865-0.133,1.055-0.369\\n\\t\\t\\tc0.831-0.955,1.748-1.825,2.753-2.584c0.05-0.032,0.098-0.063,0.134-0.096c0.433-0.337,0.886-0.633,1.339-0.917\\n\\t\\t\\tc0.346-0.211,0.715-0.406,1.076-0.591c0.166-0.095,0.34-0.189,0.517-0.274c2.194-1.065,4.601-1.698,7.063-1.824\\n\\t\\t\\tc4.952-0.27,9.92,1.55,13.55,4.968c0.232,0.205,0.548,0.517,1.252,0.189l12.678-6.033c0.018-0.005,0.023-0.01,0.034-0.016\\n\\t\\t\\tl0.031-0.016c0.433-0.206,0.675-0.639,0.649-1.103c-0.361-4.968,1.345-9.935,4.68-13.634c1.94-2.139,4.374-3.773,7.042-4.807\\n\\t\\t\\tc0.129-0.047,0.274-0.113,0.412-0.161c0.227-0.082,0.464-0.14,0.696-0.222c0.382-0.119,0.773-0.237,1.15-0.34\\n\\t\\t\\tc0.065-0.011,0.113-0.021,0.179-0.037c1.149-0.261,2.336-0.427,3.531-0.459c0.464-0.023,0.87-0.309,1.031-0.762l4.704-13.231\\n\\t\\t\\tC245.17,251.915,245.041,251.436,244.69,251.121z M216.691,249.75c-2.56,7.188-7.842,12.641-14.273,15.623\\n\\t\\t\\tc-0.738,0.34-1.479,0.664-2.23,0.928c-0.021,0.006-0.042,0.016-0.063,0.021c-13.004,4.606-27.686-1.279-33.75-14.006\\n\\t\\t\\tc-5.215-10.969-2.436-23.733,5.973-31.643c0.058-0.05,0.113-0.122,0.179-0.174c0.393-0.367,0.825-0.707,1.252-1.052\\n\\t\\t\\tc0.311-0.25,0.593-0.514,0.912-0.746c0.124-0.092,0.269-0.174,0.398-0.269c7.016-4.997,16.281-6.632,25.009-3.528\\n\\t\\t\\tC214.283,219.937,221.725,235.56,216.691,249.75z"}},{"tag":"path","attr":{"d":"M226.913,133.785c0.248,4.973-1.55,9.919-4.967,13.544c-0.309,0.327-0.39,0.841-0.201,1.258l6.044,12.672\\n\\t\\t\\tc0.334,0.704,0.772,0.675,1.107,0.653c4.922-0.372,9.935,1.334,13.624,4.683c3.705,3.325,5.906,8.1,6.064,13.078\\n\\t\\t\\tc0.016,0.454,0.316,0.87,0.749,1.031l13.226,4.693c0.087,0.021,0.167,0,0.253,0.011c0.593,0.14,0.859-0.14,1.052-0.372\\n\\t\\t\\tc0.833-0.962,1.751-1.832,2.755-2.586c0.042-0.032,0.098-0.061,0.134-0.092c0.433-0.33,0.876-0.638,1.34-0.923\\n\\t\\t\\tc0.345-0.211,0.717-0.406,1.076-0.588c0.166-0.098,0.335-0.195,0.517-0.277c2.193-1.068,4.59-1.696,7.059-1.819\\n\\t\\t\\tc4.957-0.277,9.93,1.545,13.547,4.967c0.227,0.206,0.56,0.525,1.261,0.19l12.677-6.033c0.011,0,0.021-0.016,0.026-0.016\\n\\t\\t\\tl0.043-0.016c0.422-0.206,0.675-0.639,0.643-1.097c-0.358-4.973,1.351-9.94,4.684-13.634c1.94-2.144,4.377-3.781,7.045-4.812\\n\\t\\t\\tc0.127-0.053,0.274-0.113,0.406-0.155c0.227-0.087,0.469-0.147,0.701-0.227c0.374-0.113,0.76-0.237,1.149-0.335\\n\\t\\t\\tc0.053-0.011,0.111-0.016,0.174-0.04c1.155-0.264,2.337-0.424,3.533-0.458c0.47-0.021,0.87-0.311,1.028-0.759l4.704-13.231\\n\\t\\t\\tc0.147-0.438,0.021-0.923-0.332-1.231c-3.775-3.262-6.075-7.981-6.339-12.949c-0.248-4.979,1.556-9.914,4.973-13.542\\n\\t\\t\\tc0.316-0.33,0.391-0.838,0.19-1.255l-4.135-8.709c0.021-0.016,0.032-0.037,0.063-0.042l-1.888-3.952\\n\\t\\t\\tc-0.068-0.148-0.2-0.245-0.316-0.343c-0.016-0.016-0.032-0.032-0.053-0.048c-0.063-0.042-0.111-0.092-0.174-0.124\\n\\t\\t\\tc-0.148-0.076-0.301-0.108-0.433-0.108c-0.059-0.005-0.101-0.032-0.132-0.032c-4.973,0.351-9.94-1.35-13.627-4.678\\n\\t\\t\\tc-3.702-3.338-5.917-8.105-6.069-13.088c-0.006-0.454-0.312-0.87-0.754-1.034l-13.227-4.69c-0.738-0.261-1.022,0.076-1.244,0.319\\n\\t\\t\\tc0,0.005,0,0.005,0,0.005c-0.021,0.011-0.037,0.016-0.058,0.031c-1.219,1.403-2.647,2.619-4.214,3.586\\n\\t\\t\\tc-0.105,0.059-0.216,0.119-0.316,0.18c-0.406,0.242-0.812,0.464-1.239,0.675c-2.21,1.079-4.638,1.728-7.122,1.851\\n\\t\\t\\tc-4.967,0.264-9.903-1.556-13.537-4.967c-0.335-0.309-0.833-0.396-1.252-0.195l-12.68,6.038c-0.422,0.2-0.675,0.648-0.644,1.089\\n\\t\\t\\tc0.356,4.976-1.34,9.954-4.675,13.643c-3.317,3.704-8.116,5.922-13.097,6.057c-0.314,0.023-0.762,0.023-1.021,0.767l-3.251,9.136\\n\\t\\t\\tc-0.011-0.005-0.037,0-0.053-0.005l-1.474,4.126c-0.147,0.438-0.01,0.936,0.34,1.247\\n\\t\\t\\tC224.353,124.103,226.666,128.817,226.913,133.785z M255.706,111.391c0.066-0.047,0.114-0.113,0.172-0.166\\n\\t\\t\\tc0.4-0.369,0.833-0.709,1.26-1.06c0.311-0.242,0.598-0.506,0.912-0.743c0.129-0.087,0.269-0.174,0.398-0.272\\n\\t\\t\\tc7.017-5,16.276-6.631,25.004-3.531c14.186,5.039,21.621,20.664,16.585,34.853c-2.558,7.19-7.836,12.641-14.27,15.622\\n\\t\\t\\tc-0.743,0.338-1.477,0.662-2.23,0.929c-0.021,0-0.042,0.01-0.063,0.016c-13.004,4.611-27.686-1.281-33.739-14.009\\n\\t\\t\\tC244.511,132.068,247.292,119.312,255.706,111.391z"}}]}')},21586:e=>{"use strict";e.exports=JSON.parse('{"tag":"svg","attr":{"viewBox":"0 0 338.52 493.3"},"child":[{"tag":"g","attr":{},"child":[{"tag":"path","attr":{"d":"M246.2,127.18c-8.5,0-15.39-7.64-15.39-17.06V7.72H46.16C20.67,7.72,0,30.64,0,58.92V434.38c0,28.28,20.67,51.2,46.16,51.2h246.2c25.49,0,46.16-22.92,46.16-51.2V127.18Z"}},{"tag":"polygon","attr":{"points":"240.85 9.72 240.85 115.85 336.53 115.85 240.85 9.72"}}]}]}')},15800:e=>{"use strict";e.exports=JSON.parse('{"tag":"svg","attr":{"viewBox":"0 0 280.94 384"},"child":[{"tag":"g","attr":{},"child":[{"tag":"polygon","attr":{"points":"83.79 236.72 128.83 236.72 106.42 177.31 83.79 236.72"}},{"tag":"path","attr":{"d":"M188.93,218.9a19.79,19.79,0,1,0,19.79,19.78A19.81,19.81,0,0,0,188.93,218.9Z"}},{"tag":"path","attr":{"d":"M274.59,65.75l-60-60A19.51,19.51,0,0,0,200.74,0H25.8A25.8,25.8,0,0,0,0,25.8V358.2A25.8,25.8,0,0,0,25.8,384H254.51a25.8,25.8,0,0,0,25.8-25.8V79.57A19.56,19.56,0,0,0,274.59,65.75ZM148.76,273.1a5.94,5.94,0,0,1-2,.38,5.8,5.8,0,0,1-5.42-3.76l-8.08-21.41H79.38l-8.16,21.43a5.8,5.8,0,0,1-10.84-4.13l38.48-101,.06-.13a8.08,8.08,0,0,1,7.51-5h0a8.08,8.08,0,0,1,7.51,5l.06.15,38.13,101A5.79,5.79,0,0,1,148.76,273.1Zm71.55-5.42a5.8,5.8,0,0,1-11.59,0V263a31.39,31.39,0,1,1,0-48.67V209.7a5.8,5.8,0,1,1,11.59,0ZM231.64,73.94a25.8,25.8,0,0,1-25.8-25.8V4.23a19.34,19.34,0,0,1,5.72,4l60,60a19.5,19.5,0,0,1,4,5.72Z"}}]}]}')},87808:e=>{"use strict";e.exports=JSON.parse('{"tag":"svg","attr":{"viewBox":"0 0 24 24"},"child":[{"tag":"path","attr":{"d":"M20.387,21.203L22.25,0H1.751H1.75l1.863,21.203L11.973,24L20.387,21.203z M6.702,17.448l-0.32-4.061h2.546l0.187,2.041l2.856,0.777l2.866-0.777l0.32-3.333H6.248l-0.683-7.8h12.871l-0.235,2.555H8.391l0.219,2.647h9.374l-0.727,7.95l-5.226,1.447v0.016h-0.059L6.702,17.448z"}}]}')},16660:e=>{"use strict";e.exports=JSON.parse('{"tag":"svg","attr":{"viewBox":"0 0 24 24"},"child":[{"tag":"path","attr":{"d":"M19,2H5A3,3,0,0,0,2,5V19a3,3,0,0,0,3,3H19a3,3,0,0,0,3-3V5A3,3,0,0,0,19,2ZM10,7A2,2,0,1,1,8,9,2,2,0,0,1,10,7ZM7.49,20H5a1,1,0,0,1-.94-.71l3.09-3.71a1.08,1.08,0,0,1,.79-.36,1,1,0,0,1,.78.4l1,1.33ZM20,19a1,1,0,0,1-1,1H10l5.47-7.52a1,1,0,0,1,.73-.41,1,1,0,0,1,.79.29L20,15.41Z"}}]}')},21676:e=>{"use strict";e.exports=JSON.parse('{"tag":"svg","attr":{"viewBox":"0 0 50 50"},"child":[{"tag":"path","attr":{"d":"M28.188 0c2.75 6.363-9.86 10.293-11.032 15.594-1.074 4.87 7.492 10.531 7.5 10.531-1.3-2.016-2.258-3.676-3.562-6.813C18.887 14.008 34.535 9.207 28.187 0zm8.375 8.813s-11.063.71-11.626 7.78c-.25 3.15 2.91 4.805 3 7.095.075 1.87-1.875 3.437-1.875 3.437s3.547-.676 4.657-3.531c1.23-3.168-2.399-5.309-2.032-7.844.352-2.426 7.875-6.938 7.875-6.938zM19.186 25.155s-10.125-.144-10.125 2.719c0 2.992 13.254 3.215 22.72 1.375 0 0 2.515-1.73 3.187-2.375-6.203 1.266-20.344 1.406-20.344.313 0-1.008 4.563-2.032 4.563-2.032zm19.47 0c-.993.078-2.063.461-3.032 1.157 2.281-.493 4.219.921 4.219 2.53 0 3.626-5.25 7.032-5.25 7.032s8.125-.922 8.125-6.875c0-2.703-1.88-4.016-4.063-3.844zM16.75 30.72c-1.555 0-3.875 1.218-3.875 2.375 0 2.324 11.688 4.113 20.344.718l-3-1.843c-5.867 1.879-16.672 1.265-13.469-1.25zm1.438 5.218c-2.13 0-3.532 1.286-3.532 2.25 0 2.985 12.715 3.286 17.75.25l-3.187-2.03c-3.762 1.59-13.203 1.831-11.032-.47zm-7.094 2.688c-3.469-.07-5.719 1.488-5.719 2.781 0 6.875 35.5 6.559 35.5-.468 0-1.168-1.348-1.735-1.844-2C41.934 45.656 9.97 45.12 9.97 41.156c0-.902 2.351-1.765 4.531-1.343l-1.844-1.063a12.349 12.349 0 0 0-1.562-.125zm33.531 4.625c-5.398 5.117-19.078 6.973-32.844 3.813 13.762 5.632 32.778 2.472 32.844-3.813z"}}]}')},28216:e=>{"use strict";e.exports=JSON.parse('{"tag":"svg","attr":{"viewBox":"0 0 20 20"},"child":[{"tag":"path","attr":{"fill-rule":"evenodd","d":"M379.328 7337.432c-1.745 0-2.873-.832-3.423-1.92l1.53-.886c.403.658.926 1.141 1.853 1.141.778 0 1.275-.389 1.275-.926 0-.808-1.078-1.124-1.839-1.45-1.356-.577-2.256-1.302-2.256-2.833 0-1.409 1.074-2.483 2.753-2.483 1.194 0 2.054.416 2.671 1.503l-1.463.94c-.322-.577-.671-.805-1.208-.805-.551 0-.9.349-.9.805 0 .564.349.792 1.155 1.141 1.689.724 2.967 1.293 2.967 3.155 0 1.692-1.329 2.618-3.115 2.618zm-4.328-2.833c0 1.947-1.199 2.976-2.864 2.976-1.504 0-2.405-.575-2.848-1.575h-.026l1.529-1.069c.295.523.561.894 1.205.894.618 0 1.004-.313 1.004-1.252V7328h2v6.599zM364 7339h20v-20h-20v20z","transform":"translate(-364 -7319)"}}]}')},80536:e=>{"use strict";e.exports=JSON.parse('{"tag":"svg","attr":{"viewBox":"0 0 24 24"},"child":[{"tag":"path","attr":{"d":"M5,3H7V5H5V10A2,2 0 0,1 3,12A2,2 0 0,1 5,14V19H7V21H5C3.93,20.73 3,20.1 3,19V15A2,2 0 0,0 1,13H0V11H1A2,2 0 0,0 3,9V5A2,2 0 0,1 5,3M19,3A2,2 0 0,1 21,5V9A2,2 0 0,0 23,11H24V13H23A2,2 0 0,0 21,15V19A2,2 0 0,1 19,21H17V19H19V14A2,2 0 0,1 21,12A2,2 0 0,1 19,10V5H17V3H19M12,15A1,1 0 0,1 13,16A1,1 0 0,1 12,17A1,1 0 0,1 11,16A1,1 0 0,1 12,15M8,15A1,1 0 0,1 9,16A1,1 0 0,1 8,17A1,1 0 0,1 7,16A1,1 0 0,1 8,15M16,15A1,1 0 0,1 17,16A1,1 0 0,1 16,17A1,1 0 0,1 15,16A1,1 0 0,1 16,15Z"}}]}')},13826:e=>{"use strict";e.exports=JSON.parse('{"tag":"svg","attr":{"viewBox":"0 0 482.14 482.14"},"child":[{"tag":"path","attr":{"d":"M142.024,310.194c0-8.007-5.556-12.782-15.359-12.782c-4.003,0-6.714,0.395-8.132,0.773v25.69\\n\\t\\tc1.679,0.378,3.743,0.504,6.588,0.504C135.57,324.379,142.024,319.1,142.024,310.194z"}},{"tag":"path","attr":{"d":"M202.709,297.681c-4.39,0-7.227,0.379-8.905,0.772v56.896c1.679,0.394,4.39,0.394,6.841,0.394\\n\\t\\tc17.809,0.126,29.424-9.677,29.424-30.449C230.195,307.231,219.611,297.681,202.709,297.681z"}},{"tag":"path","attr":{"d":"M315.458,0H121.811c-28.29,0-51.315,23.041-51.315,51.315v189.754h-5.012c-11.418,0-20.678,9.251-20.678,20.679v125.404\\n\\t\\tc0,11.427,9.259,20.677,20.678,20.677h5.012v22.995c0,28.305,23.025,51.315,51.315,51.315h264.223\\n\\t\\tc28.272,0,51.3-23.011,51.3-51.315V121.449L315.458,0z M99.053,284.379c6.06-1.024,14.578-1.796,26.579-1.796\\n\\t\\tc12.128,0,20.772,2.315,26.58,6.965c5.548,4.382,9.292,11.615,9.292,20.127c0,8.51-2.837,15.745-7.999,20.646\\n\\t\\tc-6.714,6.32-16.643,9.157-28.258,9.157c-2.585,0-4.902-0.128-6.714-0.379v31.096H99.053V284.379z M386.034,450.713H121.811\\n\\t\\tc-10.954,0-19.874-8.92-19.874-19.889v-22.995h246.31c11.42,0,20.679-9.25,20.679-20.677V261.748\\n\\t\\tc0-11.428-9.259-20.679-20.679-20.679h-246.31V51.315c0-10.938,8.921-19.858,19.874-19.858l181.89-0.19v67.233\\n\\t\\tc0,19.638,15.934,35.587,35.587,35.587l65.862-0.189l0.741,296.925C405.891,441.793,396.987,450.713,386.034,450.713z\\n\\t\\t M174.065,369.801v-85.422c7.225-1.15,16.642-1.796,26.58-1.796c16.516,0,27.226,2.963,35.618,9.282\\n\\t\\tc9.031,6.714,14.704,17.416,14.704,32.781c0,16.643-6.06,28.133-14.453,35.224c-9.157,7.612-23.096,11.222-40.125,11.222\\n\\t\\tC186.191,371.092,178.966,370.446,174.065,369.801z M314.892,319.226v15.996h-31.23v34.973h-19.74v-86.966h53.16v16.122h-33.42\\n\\t\\tv19.875H314.892z"}}]}')},60540:e=>{"use strict";e.exports=JSON.parse('{"tag":"svg","attr":{"viewBox":"0 0 24 24"},"child":[{"tag":"path","attr":{"d":"M12,18.08C5.37,18.08 0,15.36 0,12C0,8.64 5.37,5.92 12,5.92C18.63,5.92 24,8.64 24,12C24,15.36 18.63,18.08 12,18.08M6.81,10.13C7.35,10.13 7.72,10.23 7.9,10.44C8.08,10.64 8.12,11 8.03,11.47C7.93,12 7.74,12.34 7.45,12.56C7.17,12.78 6.74,12.89 6.16,12.89H5.29L5.82,10.13H6.81M3.31,15.68H4.75L5.09,13.93H6.32C6.86,13.93 7.3,13.87 7.65,13.76C8,13.64 8.32,13.45 8.61,13.18C8.85,12.96 9.04,12.72 9.19,12.45C9.34,12.19 9.45,11.89 9.5,11.57C9.66,10.79 9.55,10.18 9.17,9.75C8.78,9.31 8.18,9.1 7.35,9.1H4.59L3.31,15.68M10.56,7.35L9.28,13.93H10.7L11.44,10.16H12.58C12.94,10.16 13.18,10.22 13.29,10.34C13.4,10.46 13.42,10.68 13.36,11L12.79,13.93H14.24L14.83,10.86C14.96,10.24 14.86,9.79 14.56,9.5C14.26,9.23 13.71,9.1 12.91,9.1H11.64L12,7.35H10.56M18,10.13C18.55,10.13 18.91,10.23 19.09,10.44C19.27,10.64 19.31,11 19.22,11.47C19.12,12 18.93,12.34 18.65,12.56C18.36,12.78 17.93,12.89 17.35,12.89H16.5L17,10.13H18M14.5,15.68H15.94L16.28,13.93H17.5C18.05,13.93 18.5,13.87 18.85,13.76C19.2,13.64 19.5,13.45 19.8,13.18C20.04,12.96 20.24,12.72 20.38,12.45C20.53,12.19 20.64,11.89 20.7,11.57C20.85,10.79 20.74,10.18 20.36,9.75C20,9.31 19.37,9.1 18.54,9.1H15.79L14.5,15.68Z"}}]}')},19144:e=>{"use strict";e.exports=JSON.parse('{"tag":"svg","attr":{"viewBox":"0 0 24 24"},"child":[{"tag":"polygon","attr":{"points":"18.231 7.357 18.232 7.357 18.232 7.353"}},{"tag":"path","attr":{"d":"M20.699,17.748c1.666,0,2.282-1.162,2.861-2.904c0.6-1.794,0.574-3.52,0-5.818c-0.413-1.655-1.194-2.904-2.861-2.904h-2.147v2.541c0,1.971-1.672,3.632-3.578,3.632H9.252c-1.565,0-2.861,1.339-2.861,2.909v5.454c0,1.553,1.35,2.464,2.861,2.909c1.81,0.53,3.552,0.626,5.721,0c1.441-0.418,2.861-1.26,2.861-2.909v-2.181h-5.717v-0.728H20.699z M15.332,19.929c0.594,0,1.077,0.488,1.077,1.088c0,0.606-0.482,1.093-1.077,1.093c-0.59,0-1.077-0.493-1.077-1.093C14.261,20.411,14.744,19.929,15.332,19.929z"}},{"tag":"path","attr":{"d":"M3.444,17.749H5.41v-2.615c0-1.891,1.634-3.558,3.578-3.558h5.721c1.591,0,2.861-1.312,2.861-2.909V3.209c0-1.553-1.307-2.717-2.861-2.978c-1.918-0.317-4.002-0.299-5.721,0.006l0.001-0.001C6.567,0.664,6.129,1.558,6.129,3.213v2.181h5.727v0.729H3.98c-1.666,0-3.124,1.002-3.578,2.904c-0.525,2.181-0.546,3.541,0,5.818C0.808,16.538,1.779,17.749,3.444,17.749z M8.63,3.937c-0.594,0-1.077-0.488-1.077-1.088C7.56,2.243,8.036,1.756,8.63,1.756c0.59,0,1.077,0.492,1.077,1.093S9.225,3.937,8.63,3.937z"}}]}')},37104:e=>{"use strict";e.exports=JSON.parse('{"tag":"svg","attr":{"viewBox":"0 0 338.52 477.87"},"child":[{"tag":"g","attr":{},"child":[{"tag":"polygon","attr":{"points":"240.85 2 240.85 108.13 336.53 108.13 240.85 2"}},{"tag":"g","attr":{},"child":[{"tag":"path","attr":{"d":"M219.52,227.28a34.05,34.05,0,1,0,19.6,44A34,34,0,0,0,219.52,227.28Z"}},{"tag":"path","attr":{"d":"M246.2,119.47c-8.5,0-15.39-7.64-15.39-17.07V0H46.16C20.67,0,0,22.92,0,51.2V426.67c0,28.27,20.67,51.2,46.16,51.2h246.2c25.49,0,46.16-22.93,46.16-51.2V119.47ZM152.1,350.78a36.58,36.58,0,0,1-.63,6.66l8.79,5.08a46.12,46.12,0,0,1-12.14,21.07l-8.82-5.09a36.35,36.35,0,0,1-11.52,6.65v10.17a45.11,45.11,0,0,1-24.32,0V385.15a36.35,36.35,0,0,1-11.52-6.65l-8.82,5.09A46.21,46.21,0,0,1,71,362.52l8.8-5.08a34.92,34.92,0,0,1,0-13.31L71,339.05A46.21,46.21,0,0,1,83.12,318l8.82,5.09a36.46,36.46,0,0,1,11.52-6.65V306.25a45.11,45.11,0,0,1,24.32,0v10.17a36.21,36.21,0,0,1,11.53,6.65l8.81-5.1a46.11,46.11,0,0,1,12.14,21.08l-8.79,5.08A36.48,36.48,0,0,1,152.1,350.78Zm125.63-64.7a74.78,74.78,0,0,1-8,15.18l-11.69-4.48a62.89,62.89,0,0,1-10.43,11l5.05,11.34A75.92,75.92,0,0,1,221.63,333l-5.08-11.42a62.8,62.8,0,0,1-15.15.41l-4.5,11.73a75.94,75.94,0,0,1-31.78-12.21l4.5-11.73a62.6,62.6,0,0,1-11-10.43l-11.47,5.11a75.54,75.54,0,0,1-13.85-31.1l11.47-5.11a62.81,62.81,0,0,1-.4-15.15l-11.72-4.5a76.89,76.89,0,0,1,4.27-16.58,74.86,74.86,0,0,1,8-15.19l11.7,4.49a62.19,62.19,0,0,1,10.43-11L162,199A75.87,75.87,0,0,1,193,185.1l5.09,11.41a63.25,63.25,0,0,1,15.14-.4l4.51-11.73a75.94,75.94,0,0,1,31.78,12.21L245,208.32a62.5,62.5,0,0,1,11,10.42l11.48-5.11a75.54,75.54,0,0,1,13.85,31.1l-11.47,5.12a62.73,62.73,0,0,1,.39,15.14l11.73,4.5A75.71,75.71,0,0,1,277.73,286.08Z"}},{"tag":"path","attr":{"d":"M115.63,333.76a17,17,0,1,0,17,17A17,17,0,0,0,115.63,333.76Z"}}]}]}]}')},28392:e=>{"use strict";e.exports=JSON.parse('{"tag":"svg","attr":{"viewBox":"0 0 338.52 493.3"},"child":[{"tag":"g","attr":{},"child":[{"tag":"polygon","attr":{"points":"240.85 10.26 240.85 116.38 336.53 116.38 240.85 10.26"}},{"tag":"path","attr":{"d":"M246.2,127.72c-8.5,0-15.39-7.64-15.39-17.07V8.25H46.16C20.67,8.25,0,31.18,0,59.45V434.92c0,28.28,20.67,51.2,46.16,51.2h246.2c25.49,0,46.16-22.92,46.16-51.2V127.72ZM162.26,345a83.07,83.07,0,0,1,0-166.14v83.07h83.07A83.07,83.07,0,0,1,162.26,345Zm14-97.07V164.84a83.07,83.07,0,0,1,83.07,83.07Z"}}]}]}')},50400:e=>{"use strict";e.exports=JSON.parse('{"tag":"svg","attr":{"viewBox":"0 0 338.52 477.87"},"child":[{"tag":"g","attr":{},"child":[{"tag":"polygon","attr":{"points":"240.85 2 240.85 108.13 336.53 108.13 240.85 2"}},{"tag":"path","attr":{"d":"M246.2,119.47c-8.5,0-15.39-7.64-15.39-17.07V0H46.16C20.67,0,0,22.92,0,51.2V426.67c0,28.27,20.67,51.2,46.16,51.2h246.2c25.49,0,46.16-22.93,46.16-51.2V119.47ZM148.61,318.93h-84V291.88h84Zm0-42h-84V249.87h84Zm0-42h-84V207.86h84Zm125.32,84H167.16V291.88H273.93Zm0-42H167.16V249.87H273.93Zm0-42H167.16V207.86H273.93Z"}}]}]}')},96824:e=>{"use strict";e.exports=JSON.parse('{"tag":"svg","attr":{"viewBox":"0 0 256 256"},"child":[{"tag":"path","attr":{"d":"M234.391 113.538c-8.049-8.048-21.099-8.048-29.148 0h-42.184l29.829-29.828c11.383 0 20.61-9.228 20.61-20.611 0-11.383-9.227-20.612-20.61-20.612-11.384 0-20.611 9.229-20.611 20.612l-29.829 29.829V50.743c8.049-8.049 8.049-21.099 0-29.148-8.05-8.05-21.1-8.05-29.149 0s-8.049 21.1 0 29.148v42.185l-29.828-29.83c0-11.382-9.228-20.61-20.611-20.61-11.383 0-20.611 9.228-20.611 20.61 0 11.384 9.228 20.612 20.61 20.612l29.83 29.828H50.504c-8.05-8.049-21.1-8.048-29.15 0-8.048 8.05-8.048 21.1 0 29.15 8.05 8.048 21.1 8.048 29.15 0h42.183L62.86 172.515c-11.383 0-20.611 9.227-20.611 20.61 0 11.384 9.228 20.612 20.61 20.612 11.384 0 20.612-9.228 20.612-20.611l29.828-29.829v42.184c-8.049 8.049-8.049 21.1 0 29.149 8.05 8.049 21.1 8.049 29.15 0 8.048-8.05 8.048-21.1 0-29.15v-42.183l29.828 29.829c0 11.383 9.227 20.61 20.61 20.61 11.384 0 20.612-9.227 20.612-20.61 0-11.384-9.228-20.611-20.611-20.611l-29.83-29.829h42.185c8.05 8.05 21.1 8.05 29.148 0 8.05-8.049 8.05-21.1 0-29.149"}}]}')},63692:e=>{"use strict";e.exports=JSON.parse('{"tag":"svg","attr":{"viewBox":"0 0 32 32"},"child":[{"tag":"path","attr":{"d":"M26,10.94a1.07,1.07,0,0,0-.33-.69l-8-7A1,1,0,0,0,16,4v7a1,1,0,0,0,1,1h7V27H8V5h6a1,1,0,0,0,0-2H8A2,2,0,0,0,6,5V27a2,2,0,0,0,2,2H24a2,2,0,0,0,2-2C26,26.93,26,11,26,10.94ZM18,10V6.2L22.34,10Z"}},{"tag":"path","attr":{"d":"M12,14.16a1,1,0,0,0-.5.86v7.75a1,1,0,0,0,1,1,1,1,0,0,0,.49-.12L20,19.77a1,1,0,0,0,.51-.87A1,1,0,0,0,20,18L13,14.15A1,1,0,0,0,12,14.16Zm1.5,2.57,3.89,2.17-3.89,2.17Z"}}]}')},77588:e=>{"use strict";e.exports=JSON.parse('{"tag":"svg","attr":{"viewBox":"0 0 512 512"},"child":[{"tag":"g","attr":{},"child":[{"tag":"path","attr":{"d":"m422.518 512h-333.036c-4.309 0-7.802-3.493-7.802-7.802v-348.77h348.64v348.77c0 4.309-3.493 7.802-7.802 7.802z","fill":"#f6f1f1"}},{"tag":"path","attr":{"d":"m81.68 155.428v18.284h310.353c9.676 0 17.52 7.844 17.52 17.52v320.768h12.965c4.309 0 7.802-3.493 7.802-7.802v-348.77z","fill":"#efe7e4"}},{"tag":"path","attr":{"d":"m352.731 0h-263.249c-4.309 0-7.802 3.493-7.802 7.802v147.625h348.64v-106.73z","fill":"#c8ea73"}},{"tag":"path","attr":{"d":"m370.304 61.369 30.893 20.529c5.219 3.468 8.356 9.319 8.356 15.586v57.944h20.767v-106.731z","fill":"#b7e445"}},{"tag":"path","attr":{"d":"m352.731 0 15.701 59.105c.932 3.507 4.549 5.576 8.044 4.602l53.845-15.01z","fill":"#aad540"}},{"tag":"g","attr":{},"child":[{"tag":"g","attr":{},"child":[{"tag":"g","attr":{},"child":[{"tag":"path","attr":{"d":"m177.045 121.735c-3.123 0-6.062-1.906-7.23-5l-21.326-56.513-21.532 56.534c-1.519 3.989-5.981 5.99-9.97 4.471-3.988-1.519-5.989-5.983-4.47-9.97l27.256-71.563c.022-.059.045-.118.069-.176 1.445-3.533 4.846-5.819 8.663-5.823h.01c3.814 0 7.215 2.278 8.667 5.805.029.07.057.141.084.212l27.008 71.566c1.507 3.993-.509 8.451-4.501 9.957-.9.339-1.822.5-2.728.5z","fill":"#aad540"}}]},{"tag":"g","attr":{},"child":[{"tag":"path","attr":{"d":"m168.681 103.91h-40.445c-4.267 0-7.726-3.459-7.726-7.726s3.459-7.726 7.726-7.726h40.445c4.267 0 7.726 3.459 7.726 7.726s-3.459 7.726-7.726 7.726z","fill":"#aad540"}}]}]},{"tag":"g","attr":{},"child":[{"tag":"g","attr":{},"child":[{"tag":"path","attr":{"d":"m261.079 121.733c-4.267 0-7.726-3.459-7.726-7.726v-72.586c0-4.268 3.459-7.726 7.726-7.726 4.268 0 7.726 3.459 7.726 7.726v72.586c0 4.267-3.458 7.726-7.726 7.726z","fill":"#aad540"}}]},{"tag":"g","attr":{},"child":[{"tag":"path","attr":{"d":"m302.7 121.733c-1.931 0-3.864-.719-5.363-2.166l-39.299-37.914c-1.533-1.479-2.387-3.524-2.362-5.654.026-2.129.929-4.154 2.497-5.595l36.722-33.755c3.142-2.888 8.03-2.682 10.916.46 2.888 3.141 2.682 8.029-.46 10.917l-30.682 28.202 33.394 32.218c3.071 2.963 3.159 7.854.196 10.925-1.514 1.571-3.535 2.362-5.559 2.362z","fill":"#aad540"}}]}]},{"tag":"g","attr":{},"child":[{"tag":"g","attr":{},"child":[{"tag":"path","attr":{"d":"m198.954 121.733c-4.267 0-7.726-3.459-7.726-7.726v-72.586c0-4.268 3.459-7.726 7.726-7.726s7.726 3.459 7.726 7.726v72.586c.001 4.267-3.459 7.726-7.726 7.726z","fill":"#aad540"}}]},{"tag":"g","attr":{},"child":[{"tag":"path","attr":{"d":"m199.095 90.205c-2.032 0-3.983-.801-5.43-2.229-1.458-1.441-2.284-3.4-2.297-5.45 0 0-.091-14.905-.091-20.621 0-4.678-.05-20.458-.05-20.46-.007-2.053.805-4.024 2.255-5.479s3.419-2.272 5.472-2.272h20.211c15.776 0 28.611 12.655 28.611 28.21 0 15.554-12.835 28.209-28.611 28.209-5.597 0-20.022.091-20.022.091-.016.001-.032.001-.048.001zm7.609-41.058c.013 4.712.027 10.284.027 12.758 0 2.933.024 8.295.047 12.803 4.375-.023 9.528-.046 12.387-.046 7.133 0 13.158-5.842 13.158-12.757s-6.026-12.758-13.158-12.758z","fill":"#aad540"}}]}]}]},{"tag":"g","attr":{},"child":[{"tag":"g","attr":{},"child":[{"tag":"g","attr":{},"child":[{"tag":"path","attr":{"d":"m200.835 326.357c-2.872 0-5.63-1.609-6.963-4.368l-27.044-56.005c-1.856-3.843-.244-8.462 3.598-10.318 3.842-1.858 8.461-.245 10.317 3.598l27.044 56.005c1.856 3.843.244 8.462-3.598 10.318-1.082.522-2.227.77-3.354.77z","fill":"#aad540"}}]},{"tag":"g","attr":{},"child":[{"tag":"path","attr":{"d":"m311.165 326.357c-1.127 0-2.271-.247-3.354-.771-3.842-1.856-5.453-6.475-3.598-10.318l27.044-56.005c1.855-3.843 6.471-5.456 10.318-3.598 3.842 1.856 5.453 6.475 3.598 10.318l-27.044 56.005c-1.334 2.76-4.092 4.369-6.964 4.369z","fill":"#aad540"}}]}]},{"tag":"path","attr":{"d":"m256 295.582c-55.486 0-101.309 41.375-108.299 94.955-.985 7.547 4.802 14.267 12.413 14.267h191.774c7.61 0 13.397-6.721 12.413-14.267-6.992-53.581-52.814-94.955-108.301-94.955z","fill":"#c8ea73"}},{"tag":"path","attr":{"d":"m256 295.582c-6.08 0-12.036.52-17.845 1.475 51.83 8.521 91.378 53.505 91.378 107.748h22.354c7.61 0 13.397-6.721 12.413-14.267-6.991-53.582-52.813-94.956-108.3-94.956z","fill":"#b7e445"}},{"tag":"g","attr":{},"child":[{"tag":"g","attr":{},"child":[{"tag":"path","attr":{"d":"m221.863 369.369c-4.267 0-7.726-3.459-7.726-7.726v-14.544c0-4.268 3.459-7.726 7.726-7.726s7.726 3.459 7.726 7.726v14.544c.001 4.267-3.459 7.726-7.726 7.726z","fill":"#aad540"}}]},{"tag":"g","attr":{},"child":[{"tag":"path","attr":{"d":"m290.136 369.369c-4.268 0-7.726-3.459-7.726-7.726v-14.544c0-4.268 3.459-7.726 7.726-7.726 4.268 0 7.726 3.459 7.726 7.726v14.544c.001 4.267-3.458 7.726-7.726 7.726z","fill":"#aad540"}}]}]}]}]}]}')},29112:e=>{"use strict";e.exports=JSON.parse('{"tag":"svg","attr":{"viewBox":"0 0 512 512"},"child":[{"tag":"path","attr":{"fill":"#dde5e8","d":"M460.8,153.6V448a64,64,0,0,1-64,64H115.2a64,64,0,0,1-64-64V64a64,64,0,0,1,64-64H307.33l33.41,33.41Z"}},{"tag":"path","attr":{"fill":"#71c6c4","d":"M460.8,153.6H371.2a64,64,0,0,1-64-64V0h.13Z"}},{"tag":"g","attr":{"opacity":"0.06"},"child":[{"tag":"path","attr":{"fill":"#17292d","d":"M371.2,153.6a64,64,0,0,1-64-64v25.6a64,64,0,0,0,64,64h89.6V153.6Z"}}]},{"tag":"path","attr":{"fill":"#afc3c9","d":"M320,384a12.8,12.8,0,0,1-12.8-12.8V256a12.8,12.8,0,0,1,25.6,0V371.2A12.8,12.8,0,0,1,320,384Z"}},{"tag":"path","attr":{"fill":"#afc3c9","d":"M217.6,396.8A12.8,12.8,0,0,1,204.8,384V268.8a12.8,12.8,0,0,1,25.6,0V384A12.8,12.8,0,0,1,217.6,396.8Z"}},{"tag":"path","attr":{"fill":"#afc3c9","d":"M217.58,281.6A12.8,12.8,0,0,1,216,256.1l102.4-12.8a12.8,12.8,0,0,1,3.17,25.4l-102.4,12.8A12.67,12.67,0,0,1,217.58,281.6Z"}},{"tag":"path","attr":{"fill":"#afc3c9","d":"M192,371.2A12.8,12.8,0,1,1,179.2,384,12.81,12.81,0,0,1,192,371.2m0-25.6A38.4,38.4,0,1,0,230.4,384,38.4,38.4,0,0,0,192,345.6Z"}},{"tag":"path","attr":{"fill":"#afc3c9","d":"M294.4,358.4a12.8,12.8,0,1,1-12.8,12.8,12.81,12.81,0,0,1,12.8-12.8m0-25.6a38.4,38.4,0,1,0,38.4,38.4,38.4,38.4,0,0,0-38.4-38.4Z"}},{"tag":"path","attr":{"fill":"#afc3c9","d":"M217.58,320A12.8,12.8,0,0,1,216,294.5l102.4-12.8a12.8,12.8,0,0,1,3.17,25.4l-102.4,12.8A12.67,12.67,0,0,1,217.58,320Z"}}]}')},67464:e=>{"use strict";e.exports=JSON.parse('{"tag":"svg","attr":{"viewBox":"0 0 48 48"},"child":[{"tag":"g","attr":{"fill-rule":"evenodd"},"child":[{"tag":"path","attr":{"fill":"#283593","d":"M22.902 3.285a2.262 2.262 0 0 1 2.196 0c3.351 1.883 13.449 7.55 16.804 9.434A2.125 2.125 0 0 1 43 14.566v18.868c0 .761-.418 1.464-1.098 1.847l-16.804 9.434a2.262 2.262 0 0 1-2.196 0L6.098 35.28A2.125 2.125 0 0 1 5 33.434V14.566c0-.761.418-1.464 1.098-1.847 3.351-1.883 13.453-7.551 16.804-9.434z"}},{"tag":"path","attr":{"fill":"#5C6BC0","d":"M5.305 34.402C5.039 34.047 5 33.711 5 33.254V14.496a2.11 2.11 0 0 1 1.094-1.836c3.343-1.87 13.406-7.508 16.75-9.379.676-.379 1.593-.37 2.27.008 3.343 1.871 13.37 7.457 16.714 9.328.27.153.477.336.66.578z"}},{"tag":"path","attr":{"fill":"#FFF","d":"M24 10c7.727 0 14 6.273 14 14s-6.273 14-14 14-14-6.273-14-14 6.273-14 14-14zm0 7c3.863 0 7 3.137 7 7s-3.137 7-7 7-7-3.137-7-7 3.137-7 7-7z"}},{"tag":"path","attr":{"fill":"#3949AB","d":"M42.484 13.203c.516.485.508 1.211.508 1.785 0 3.797-.031 14.59.008 18.383.004.399-.129.816-.324 1.129L23.594 24z"}}]}]}')},56920:e=>{"use strict";e.exports=JSON.parse('{"tag":"svg","attr":{"viewBox":"0 0 20 16.32"},"child":[{"tag":"path","attr":{"d":"M18,2.18H10l-2-2H2a2,2,0,0,0-2,2v12a2,2,0,0,0,2,2H18a2,2,0,0,0,2-2v-10a2,2,0,0,0-2-2m-2,6H14v2h2v2H14v2H12v-2h2v-2H12v-2h2v-2H12v-2h2v2h2Z","fill":"#f6c358"}},{"tag":"rect","attr":{"x":"12","y":"4.18","width":"2","height":"2","fill":"#fff"}},{"tag":"rect","attr":{"x":"12","y":"8.18","width":"2","height":"2","fill":"#fff"}},{"tag":"rect","attr":{"x":"14","y":"6.18","width":"2","height":"2","fill":"#fff"}},{"tag":"rect","attr":{"x":"14","y":"10.18","width":"2","height":"2","fill":"#fff"}},{"tag":"rect","attr":{"x":"12","y":"12.18","width":"2","height":"2","fill":"#fff"}}]}')},56960:e=>{"use strict";e.exports=JSON.parse('{"tag":"svg","attr":{"viewBox":"0 0 48 48"},"child":[{"tag":"g","attr":{"fill-rule":"evenodd"},"child":[{"tag":"path","attr":{"fill":"#00549D","d":"M22.902 3.285a2.262 2.262 0 0 1 2.196 0c3.351 1.883 13.449 7.55 16.804 9.434A2.125 2.125 0 0 1 43 14.566v18.868c0 .761-.418 1.464-1.098 1.847l-16.804 9.434a2.262 2.262 0 0 1-2.196 0L6.098 35.28A2.125 2.125 0 0 1 5 33.434V14.566c0-.761.418-1.464 1.098-1.847 3.351-1.883 13.453-7.551 16.804-9.434z"}},{"tag":"path","attr":{"fill":"#0086D4","d":"M5.305 34.402C5.039 34.047 5 33.711 5 33.254V14.496a2.11 2.11 0 0 1 1.094-1.836c3.343-1.87 13.406-7.508 16.75-9.379.676-.379 1.593-.37 2.27.008 3.343 1.871 13.37 7.457 16.714 9.328.27.153.477.336.66.578z"}},{"tag":"path","attr":{"fill":"#FFF","d":"M24 10c7.727 0 14 6.273 14 14s-6.273 14-14 14-14-6.273-14-14 6.273-14 14-14zm0 7c3.863 0 7 3.137 7 7s-3.137 7-7 7-7-3.137-7-7 3.137-7 7-7z"}},{"tag":"path","attr":{"fill":"#0075C0","d":"M42.484 13.203c.516.485.508 1.211.508 1.785 0 3.797-.031 14.59.008 18.383.004.399-.129.816-.324 1.129L23.594 24z"}},{"tag":"path","attr":{"fill":"#FFF","d":"M31 21h2v6h-2zM38 21h2v6h-2z"}},{"tag":"path","attr":{"fill":"#FFF","d":"M29 23h6v2h-6zM36 23h6v2h-6z"}}]}]}')},52376:e=>{"use strict";e.exports=JSON.parse('{"tag":"svg","attr":{"viewBox":"0 0 48 48"},"child":[{"tag":"g","attr":{"fill-rule":"evenodd"},"child":[{"tag":"path","attr":{"fill":"#37474F","d":"M22.902 3.285a2.262 2.262 0 0 1 2.196 0c3.351 1.883 13.449 7.55 16.804 9.434A2.125 2.125 0 0 1 43 14.566v18.868c0 .761-.418 1.464-1.098 1.847l-16.804 9.434a2.262 2.262 0 0 1-2.196 0L6.098 35.28A2.125 2.125 0 0 1 5 33.434V14.566c0-.761.418-1.464 1.098-1.847 3.351-1.883 13.453-7.551 16.804-9.434z"}},{"tag":"path","attr":{"fill":"#546E7A","d":"M5.305 34.402C5.039 34.047 5 33.711 5 33.254V14.496a2.11 2.11 0 0 1 1.094-1.836c3.343-1.87 13.406-7.508 16.75-9.379.676-.379 1.593-.37 2.27.008 3.343 1.871 13.37 7.457 16.714 9.328.27.153.477.336.66.578z"}},{"tag":"path","attr":{"fill":"#FFF","d":"M24 10c7.727 0 14 6.273 14 14s-6.273 14-14 14-14-6.273-14-14 6.273-14 14-14zm0 7c3.863 0 7 3.137 7 7s-3.137 7-7 7-7-3.137-7-7 3.137-7 7-7z"}},{"tag":"path","attr":{"fill":"#455A64","d":"M42.484 13.203c.516.485.508 1.211.508 1.785 0 3.797-.031 14.59.008 18.383.004.399-.129.816-.324 1.129L23.594 24z"}},{"tag":"path","attr":{"fill":"#FFF","d":"M34 20h1v8h-1zM37 20h1v8h-1z"}},{"tag":"path","attr":{"fill":"#FFF","d":"M32 25h8v1h-8zM32 22h8v1h-8z"}}]}]}')},17191:e=>{"use strict";e.exports=JSON.parse('{"tag":"svg","attr":{"viewBox":"0 0 16 16"},"child":[{"tag":"path","attr":{"fill":"#2196F3","d":"M1 0l1.275 14.4L8 16l5.723-1.599L15 0z"}},{"tag":"path","attr":{"fill":"#FAFAFA","d":"M12.274 4.709l-.161 1.809-.486 5.423L8 12.944l-.003.001-3.625-1.004-.253-2.836h1.776l.132 1.471 1.971.532.001-.001 1.974-.532.269-2.451-6.208.017-.176-1.676 6.533-.077.132-1.794-6.84.019-.115-1.669h8.864z"}}]}')},41470:e=>{"use strict";e.exports=JSON.parse('{"tag":"svg","attr":{"viewBox":"0 0 60 60"},"child":[{"tag":"g","attr":{},"child":[{"tag":"path","attr":{"fill":"#424A60","d":"M24,35v-0.375V34.25v-8.625V25.25h0.034C24.013,25.374,24,25.499,24,25.625\\n\\t\\tc0-2.437,3.862-4.552,9.534-5.625H3.608C1.616,20,0,21.615,0,23.608v11.783C0,37.385,1.616,39,3.608,39H24V35z"}}]},{"tag":"g","attr":{},"child":[{"tag":"path","attr":{"fill":"#556080","d":"M24.034,53H24v-9v-0.375V43.25V39H3.608C1.616,39,0,40.615,0,42.608v11.783\\n\\t\\tC0,56.385,1.616,58,3.608,58h28.718C27.601,56.931,24.378,55.103,24.034,53z"}}]},{"tag":"path","attr":{"fill":"#556080","d":"M54.392,20H3.608C1.616,20,0,18.384,0,16.392V4.608C0,2.616,1.616,1,3.608,1h50.783\\n\\tC56.384,1,58,2.616,58,4.608v11.783C58,18.384,56.384,20,54.392,20z"}},{"tag":"circle","attr":{"fill":"#7383BF","cx":"9.5","cy":"10.5","r":"3.5"}},{"tag":"circle","attr":{"fill":"#7383BF","cx":"49","cy":"9","r":"1"}},{"tag":"circle","attr":{"fill":"#7383BF","cx":"45","cy":"9","r":"1"}},{"tag":"circle","attr":{"fill":"#7383BF","cx":"51","cy":"12","r":"1"}},{"tag":"circle","attr":{"fill":"#7383BF","cx":"47","cy":"12","r":"1"}},{"tag":"circle","attr":{"fill":"#7383BF","cx":"41","cy":"9","r":"1"}},{"tag":"circle","attr":{"fill":"#7383BF","cx":"43","cy":"12","r":"1"}},{"tag":"circle","attr":{"fill":"#7383BF","cx":"37","cy":"9","r":"1"}},{"tag":"circle","attr":{"fill":"#7383BF","cx":"39","cy":"12","r":"1"}},{"tag":"circle","attr":{"fill":"#7383BF","cx":"33","cy":"9","r":"1"}},{"tag":"circle","attr":{"fill":"#7383BF","cx":"35","cy":"12","r":"1"}},{"tag":"circle","attr":{"fill":"#7383BF","cx":"9.5","cy":"29.5","r":"3.5"}},{"tag":"circle","attr":{"fill":"#7383BF","cx":"9.5","cy":"48.5","r":"3.5"}},{"tag":"g","attr":{},"child":[{"tag":"path","attr":{"fill":"#1A9172","d":"M42,48.75c-9.941,0-18-2.854-18-6.375V53h0.034c0.548,3.346,8.381,6,17.966,6s17.418-2.654,17.966-6\\n\\t\\tH60V42.375C60,45.896,51.941,48.75,42,48.75z"}},{"tag":"path","attr":{"fill":"#1A9172","d":"M24,42v0.375c0-0.126,0.013-0.251,0.034-0.375H24z"}},{"tag":"path","attr":{"fill":"#1A9172","d":"M59.966,42C59.987,42.124,60,42.249,60,42.375V42H59.966z"}}]},{"tag":"g","attr":{},"child":[{"tag":"path","attr":{"fill":"#25AE88","d":"M42,38c-9.941,0-18-2.854-18-6.375V42.75h0.034c0.548,3.346,8.381,6,17.966,6s17.418-2.654,17.966-6\\n\\t\\tH60V31.625C60,35.146,51.941,38,42,38z"}},{"tag":"path","attr":{"fill":"#25AE88","d":"M24,31.25v0.375c0-0.126,0.013-0.251,0.034-0.375H24z"}},{"tag":"path","attr":{"fill":"#25AE88","d":"M59.966,31.25C59.987,31.374,60,31.499,60,31.625V31.25H59.966z"}}]},{"tag":"ellipse","attr":{"fill":"#88C057","cx":"42","cy":"21.375","rx":"18","ry":"6.375"}},{"tag":"g","attr":{},"child":[{"tag":"path","attr":{"fill":"#61B872","d":"M42,27.75c-9.941,0-18-2.854-18-6.375V32h0.034c0.548,3.346,8.381,6,17.966,6s17.418-2.654,17.966-6\\n\\t\\tH60V21.375C60,24.896,51.941,27.75,42,27.75z"}},{"tag":"path","attr":{"fill":"#61B872","d":"M24,21v0.375c0-0.126,0.013-0.251,0.034-0.375H24z"}},{"tag":"path","attr":{"fill":"#61B872","d":"M59.966,21C59.987,21.124,60,21.249,60,21.375V21H59.966z"}}]}]}')},58384:e=>{"use strict";e.exports=JSON.parse('{"tag":"svg","attr":{"viewBox":"0 0 22.4 28"},"child":[{"tag":"g","attr":{},"child":[{"tag":"path","attr":{"d":"M1.87,0A1.89,1.89,0,0,0,0,1.87V26.13A1.89,1.89,0,0,0,1.87,28H20.53a1.89,1.89,0,0,0,1.87-1.87V4.67A.94.94,0,0,0,22.12,4L18.39.28A.92.92,0,0,0,17.73,0Zm0,0","fill":"#658dc6"}},{"tag":"path","attr":{"d":"M8.77,22.41a.93.93,0,1,0,.1,1.86h4.66a.93.93,0,1,0,0-1.86Zm0,0","fill":"#b4c6d2"}},{"tag":"path","attr":{"d":"M11.2,4.67a7.47,7.47,0,1,0,7.46,7.46A7.48,7.48,0,0,0,11.2,4.67Zm0,0","fill":"#194052"}},{"tag":"path","attr":{"d":"M11.2,8.87a3.27,3.27,0,1,0,3.27,3.26A3.28,3.28,0,0,0,11.2,8.87Zm0,0","fill":"#b4c6d2"}}]}]}')},26328:e=>{"use strict";e.exports=JSON.parse('{"tag":"svg","attr":{"viewBox":"0 0 338.52 493.3"},"child":[{"tag":"g","attr":{},"child":[{"tag":"g","attr":{},"child":[{"tag":"path","attr":{"d":"M246.2,127.72c-8.5,0-15.39-7.64-15.39-17.07V8.25H46.16C20.67,8.25,0,31.18,0,59.45V434.92c0,28.28,20.67,51.2,46.16,51.2h246.2c25.49,0,46.16-22.92,46.16-51.2V127.72Z","fill":"#4285f4"}},{"tag":"polygon","attr":{"points":"240.85 10.26 240.85 116.38 336.53 116.38 240.85 10.26","fill":"#4285f4"}}]},{"tag":"g","attr":{},"child":[{"tag":"rect","attr":{"x":"45.24","y":"207.57","width":"255.27","height":"19.02","rx":"6.7","fill":"#fff"}},{"tag":"rect","attr":{"x":"45.24","y":"243.97","width":"255.27","height":"19.02","rx":"6.7","fill":"#fff"}},{"tag":"rect","attr":{"x":"45.24","y":"280.36","width":"255.27","height":"19.02","rx":"6.7","fill":"#fff"}},{"tag":"rect","attr":{"x":"45.24","y":"171.17","width":"255.27","height":"19.02","rx":"6.7","fill":"#fff"}},{"tag":"rect","attr":{"x":"45.24","y":"316.76","width":"113.68","height":"19.02","rx":"6.7","fill":"#fff"}}]}]}]}')},96758:e=>{"use strict";e.exports=JSON.parse('{"tag":"svg","attr":{"viewBox":"0 0 512 512"},"child":[{"tag":"path","attr":{"fill":"#FFC107","d":"M480,432H32c-17.664,0-32-14.336-32-32V112c0-17.664,14.336-32,32-32h448c17.664,0,32,14.336,32,32\\n\\tv288C512,417.664,497.664,432,480,432z"}},{"tag":"path","attr":{"fill":"#FFA000","d":"M480,432H32c-17.952,0-32-14.048-32-32c0-5.088,2.432-9.888,6.528-12.896l240-160\\n\\tc2.816-2.08,6.144-3.104,9.472-3.104s6.656,1.024,9.472,3.104l240,160C509.568,390.112,512,394.912,512,400\\n\\tC512,417.952,497.952,432,480,432z"}},{"tag":"path","attr":{"fill":"#FFD54F","d":"M480,80H32C14.048,80,0,94.048,0,112c0,5.088,2.432,9.888,6.528,12.896L246.656,297.28\\n\\tc5.568,4,13.088,4,18.656,0L505.44,124.896c4.128-3.008,6.56-7.808,6.56-12.896C512,94.048,497.952,80,480,80z"}}]}')},28834:e=>{"use strict";e.exports=JSON.parse('{"tag":"svg","attr":{"viewBox":"0 0 512 512"},"child":[{"tag":"path","attr":{"d":"m392 488h-272a48 48 0 0 1 -48-48v-368a48 48 0 0 1 48-48h224l96 96v320a48 48 0 0 1 -48 48z","fill":"#cfd2fc"}},{"tag":"path","attr":{"d":"m72 360h368a0 0 0 0 1 0 0v80a48 48 0 0 1 -48 48h-272a48 48 0 0 1 -48-48v-80a0 0 0 0 1 0 0z","fill":"#5153ff"}},{"tag":"path","attr":{"d":"m440 120h-48a48 48 0 0 1 -48-48v-48z","fill":"#8690fa"}},{"tag":"path","attr":{"d":"m344 216v-32h-34.332a55.685 55.685 0 0 0 -4.4-10.641l24.271-24.271-22.627-22.627-24.271 24.271a55.685 55.685 0 0 0 -10.641-4.4v-26.332h-32v26.332a55.685 55.685 0 0 0 -10.641 4.4l-24.271-24.271-22.627 22.627 24.271 24.271a55.685 55.685 0 0 0 -4.4 10.641h-34.332v32h34.332a55.685 55.685 0 0 0 4.4 10.641l-24.271 24.271 22.627 22.627 24.271-24.271a55.685 55.685 0 0 0 10.641 4.4v26.332h32v-26.332a55.685 55.685 0 0 0 10.641-4.4l24.271 24.271 22.627-22.627-24.271-24.271a55.685 55.685 0 0 0 4.4-10.641zm-88 8a24 24 0 1 1 24-24 24 24 0 0 1 -24 24z","fill":"#8690fa"}},{"tag":"path","attr":{"d":"m152 216h208v80h-208z","fill":"#b5bafc"}},{"tag":"g","attr":{"fill":"#fff"},"child":[{"tag":"path","attr":{"d":"m288 256h-64a8 8 0 0 1 0-16h64a8 8 0 0 1 0 16z"}},{"tag":"path","attr":{"d":"m208 400a8 8 0 0 0 0-16h-32a8 8 0 0 0 -8 8v64a8 8 0 0 0 8 8h32a8 8 0 0 0 0-16h-24v-16h8a8 8 0 0 0 0-16h-8v-16z"}},{"tag":"path","attr":{"d":"m336 400a8 8 0 0 0 0-16h-32a8 8 0 0 0 -8 8v64a8 8 0 0 0 8 8h32a8 8 0 0 0 0-16h-24v-16h8a8 8 0 0 0 0-16h-8v-16z"}},{"tag":"path","attr":{"d":"m275.578 384.845a8 8 0 0 0 -10.733 3.577l-8.845 17.69-8.845-17.69a8 8 0 0 0 -14.31 7.156l14.211 28.422-14.211 28.422a8 8 0 1 0 14.31 7.156l8.845-17.69 8.845 17.69a8 8 0 1 0 14.31-7.156l-14.211-28.422 14.211-28.422a8 8 0 0 0 -3.577-10.733z"}}]}]}')},74920:e=>{"use strict";e.exports=JSON.parse('{"tag":"svg","attr":{"viewBox":"0 0 338.52 493.3"},"child":[{"tag":"g","attr":{},"child":[{"tag":"path","attr":{"d":"M246.2,127.18c-8.5,0-15.39-7.64-15.39-17.06V7.72H46.16C20.67,7.72,0,30.64,0,58.92V434.38c0,28.28,20.67,51.2,46.16,51.2h246.2c25.49,0,46.16-22.92,46.16-51.2V127.18Z","fill":"#1eb6c6"}},{"tag":"polygon","attr":{"points":"240.85 9.72 240.85 115.85 336.53 115.85 240.85 9.72","fill":"#1eb6c6"}}]}]}')},87056:e=>{"use strict";e.exports=JSON.parse('{"tag":"svg","attr":{"viewBox":"0 0 512 512"},"child":[{"tag":"g","attr":{},"child":[{"tag":"g","attr":{},"child":[{"tag":"g","attr":{},"child":[{"tag":"g","attr":{},"child":[{"tag":"path","attr":{"d":"m103.532 0c-19.002 0-34.406 15.404-34.406 34.406v443.188c0 19.002 15.404 34.406 34.406 34.406h304.936c19.002 0 34.406-15.404 34.406-34.406v-371.5c0-6.913-2.746-13.542-7.634-18.431l-80.03-80.03c-4.888-4.887-11.518-7.633-18.431-7.633z","fill":"#f5f5f5"}},{"tag":"g","attr":{},"child":[{"tag":"path","attr":{"d":"m435.239 87.664-53.048-53.048-.189 88.985c-.012 5.586 4.513 10.121 10.099 10.121 5.578 0 10.099 4.522 10.099 10.099v333.774c0 19.002-15.404 34.406-34.406 34.406h40.672c19.002 0 34.406-15.404 34.406-34.406v-336.614-34.887c.002-6.913-2.744-13.542-7.633-18.43z","fill":"#eaeaea"}}]},{"tag":"path","attr":{"d":"m435.239 87.664-80.03-80.03c-2.228-2.228-4.821-4.005-7.634-5.286v58.544c0 19.002 15.404 34.406 34.406 34.406h58.544c-1.28-2.814-3.057-5.406-5.286-7.634z","fill":"#a8d0d5"}}]}]},{"tag":"g","attr":{},"child":[{"tag":"path","attr":{"d":"m389.562 393.658h-267.124c-6.98 0-12.639-5.659-12.639-12.639v-194.333c0-6.98 5.659-12.639 12.639-12.639h267.124c6.98 0 12.639 5.659 12.639 12.639v194.333c0 6.98-5.659 12.639-12.639 12.639z","fill":"#9ae7fd"}},{"tag":"path","attr":{"d":"m389.562 174.047h-41.031c6.98 0 12.639 5.659 12.639 12.639v194.333c0 6.98-5.659 12.639-12.639 12.639h41.031c6.98 0 12.639-5.659 12.639-12.639v-194.333c0-6.981-5.658-12.639-12.639-12.639z","fill":"#64dcfc"}},{"tag":"g","attr":{"fill":"#0582b0"},"child":[{"tag":"path","attr":{"d":"m221.129 219.445c-.026-.071-.054-.141-.083-.211-1.676-4.075-5.605-6.707-10.012-6.707-.003 0-.007 0-.01 0-4.411.004-8.34 2.645-10.01 6.727-.024.058-.047.117-.069.176l-51.31 134.721c-1.52 3.989.483 8.454 4.472 9.973 3.984 1.52 8.453-.483 9.972-4.471l10.883-28.575h71.773l10.775 28.553c1.167 3.095 4.109 5.002 7.231 5.002.907 0 1.829-.161 2.728-.5 3.993-1.507 6.009-5.966 4.501-9.959zm-40.279 96.174 30.164-79.2 29.889 79.2z"}},{"tag":"path","attr":{"d":"m355.142 271.865c-4.269 0-7.728 3.46-7.728 7.728v6.208c-7.205-5.871-16.392-9.4-26.389-9.4-23.073 0-41.846 18.772-41.846 41.846s18.772 41.846 41.846 41.846c9.997 0 19.184-3.529 26.389-9.4v6.208c0 4.268 3.46 7.728 7.728 7.728 4.269 0 7.728-3.46 7.728-7.728v-77.307c0-4.269-3.46-7.729-7.728-7.729zm-34.118 72.771c-14.551 0-26.389-11.838-26.389-26.389s11.838-26.389 26.389-26.389 26.389 11.838 26.389 26.389-11.838 26.389-26.389 26.389z"}}]}]}]}]}]}')},58056:e=>{"use strict";e.exports=JSON.parse('{"tag":"svg","attr":{"viewBox":"0 0 512 512"},"child":[{"tag":"path","attr":{"fill":"#e34f26","d":"M71 460L30 0h451l-41 460-185 52"}},{"tag":"path","attr":{"fill":"#ef652a","d":"M256 472l149-41 35-394H256"}},{"tag":"path","attr":{"fill":"#ebebeb","d":"M256 208h-75l-5-58h80V94H114l15 171h127zm-1 147l-63-17-4-45h-56l7 89 116 32z"}},{"tag":"path","attr":{"fill":"#fff","d":"M255 208v57h70l-7 73-63 17v59l116-32 16-174zm0-114v56h137l5-56z"}}]}')},1548:e=>{"use strict";e.exports=JSON.parse('{"tag":"svg","attr":{"viewBox":"0 0 24 24"},"child":[{"tag":"path","attr":{"fill":"#b2b1ff","d":"M19,2H5C3.34515,2.00483,2.00483,3.34515,2,5v8.86l3.88-3.88c1.18747-1.13,3.05253-1.13,4.24,0l2.87139,2.887\\n\\tl0.88752-0.88751c1.17344-1.16662,3.06874-1.16662,4.24218,0L22,15.8584V5C21.99517,3.34515,20.65485,2.00483,19,2z"}},{"tag":"path","attr":{"fill":"#6563ff","d":"M10.12,9.98c-1.18747-1.13-3.05253-1.13-4.24,0L2,13.86V19c0.00484,1.65484,1.34516,2.99516,3,3h14\\n\\tc0.81512-0.00034,1.59497-0.3325,2.16-0.92L10.12,9.98z"}},{"tag":"path","attr":{"fill":"#d8d8ff","d":"M22,15.8584l-3.87891-3.87891c-1.17345-1.1666-3.06873-1.1666-4.24218,0L12.99139,12.867l8.16425,8.20856\\n\\tC21.69776,20.5208,22.00089,19.77567,22,19V15.8584z"}}]}')},81e3:e=>{"use strict";e.exports=JSON.parse('{"tag":"svg","attr":{"viewBox":"0 0 512 512"},"child":[{"tag":"rect","attr":{"width":"512","height":"512","fill":"#fff","rx":"15%"}},{"tag":"path","attr":{"fill":"#f8981d","d":"M274 235c18 21-5 40-5 40s47-24 25-54-35-42 48-90C342 130 211 163 274 235M294 53s40 40-38 100c-62 49-14 77 0 109-36-33-63-61-45-88C238 134 310 115 294 53"}},{"tag":"path","attr":{"fill":"#5382a1","d":"M206 347s-15 8 10 11 46 3 79-3a137 137 0 0 0 21 10C242 397 147 364 206 347m-9-42s-16 12 9 15 58 4 102-5a45 45 0 0 0 16 10C233 351 132 327 197 305m175 73s11 9-12 16c-43 13-179 17-217 1-14-6 15-17 33-17-17-10-98 21-42 30C287 432 412 396 372 378M213 262s-69 16-25 22c19 3 57 2 92-1s57-8 57-8a122 122 0 0 0-17 9c-70 18-206 10-167-9S213 262 213 262m124 69c73-37 39-80 7-66 36-30 101 36-9 68v-2M220 432c69 4 174-2 176-35 0 0-5 12-57 22s-131 10-174 3C166 422 175 429 220 432"}}]}')},64256:e=>{"use strict";e.exports=JSON.parse('{"tag":"svg","attr":{"viewBox":"0 0 128 128"},"child":[{"tag":"path","attr":{"fill":"#F0DB4F","d":"M1.408 1.408h125.184v125.185h-125.184z"}},{"tag":"path","attr":{"fill":"#323330","d":"M116.347 96.736c-.917-5.711-4.641-10.508-15.672-14.981-3.832-1.761-8.104-3.022-9.377-5.926-.452-1.69-.512-2.642-.226-3.665.821-3.32 4.784-4.355 7.925-3.403 2.023.678 3.938 2.237 5.093 4.724 5.402-3.498 5.391-3.475 9.163-5.879-1.381-2.141-2.118-3.129-3.022-4.045-3.249-3.629-7.676-5.498-14.756-5.355l-3.688.477c-3.534.893-6.902 2.748-8.877 5.235-5.926 6.724-4.236 18.492 2.975 23.335 7.104 5.332 17.54 6.545 18.873 11.531 1.297 6.104-4.486 8.08-10.234 7.378-4.236-.881-6.592-3.034-9.139-6.949-4.688 2.713-4.688 2.713-9.508 5.485 1.143 2.499 2.344 3.63 4.26 5.795 9.068 9.198 31.76 8.746 35.83-5.176.165-.478 1.261-3.666.38-8.581zm-46.885-37.793h-11.709l-.048 30.272c0 6.438.333 12.34-.714 14.149-1.713 3.558-6.152 3.117-8.175 2.427-2.059-1.012-3.106-2.451-4.319-4.485-.333-.584-.583-1.036-.667-1.071l-9.52 5.83c1.583 3.249 3.915 6.069 6.902 7.901 4.462 2.678 10.459 3.499 16.731 2.059 4.082-1.189 7.604-3.652 9.448-7.401 2.666-4.915 2.094-10.864 2.07-17.444.06-10.735.001-21.468.001-32.237z"}}]}')},47312:e=>{"use strict";e.exports=JSON.parse('{"tag":"svg","attr":{"viewBox":"0 0 24 24"},"child":[{"tag":"path","attr":{"fill":"#fbc02d","d":"M5,3H7V5H5V10A2,2 0 0,1 3,12A2,2 0 0,1 5,14V19H7V21H5C3.93,20.73 3,20.1 3,19V15A2,2 0 0,0 1,13H0V11H1A2,2 0 0,0 3,9V5A2,2 0 0,1 5,3M19,3A2,2 0 0,1 21,5V9A2,2 0 0,0 23,11H24V13H23A2,2 0 0,0 21,15V19A2,2 0 0,1 19,21H17V19H19V14A2,2 0 0,1 21,12A2,2 0 0,1 19,10V5H17V3H19M12,15A1,1 0 0,1 13,16A1,1 0 0,1 12,17A1,1 0 0,1 11,16A1,1 0 0,1 12,15M8,15A1,1 0 0,1 9,16A1,1 0 0,1 8,17A1,1 0 0,1 7,16A1,1 0 0,1 8,15M16,15A1,1 0 0,1 17,16A1,1 0 0,1 16,17A1,1 0 0,1 15,16A1,1 0 0,1 16,15Z"}}]}')},9458:e=>{"use strict";e.exports=JSON.parse('{"tag":"svg","attr":{"viewBox":"0 0 64 64"},"child":[{"tag":"rect","attr":{"width":"30","height":"16","x":"10","y":"34","fill":"#80d8ff"}},{"tag":"path","attr":{"fill":"#01579b","d":"M56,18.75a.37.37,0,0,0,0-.14,1,1,0,0,0-.21-.32l-14-14a1,1,0,0,0-.32-.21.37.37,0,0,0-.14,0A.69.69,0,0,0,41,4H13a1,1,0,0,0-1,1V32H9a1,1,0,0,0-1,1V51a1,1,0,0,0,1,1h3v7a1,1,0,0,0,1,1H55a1,1,0,0,0,1-1V19A.69.69,0,0,0,56,18.75ZM42,7.41,52.59,18H42ZM10,34H40V50H10Zm4,24V52H41a1,1,0,0,0,1-1V33a1,1,0,0,0-1-1H14V6H40V19a1,1,0,0,0,1,1H54V58Z"}},{"tag":"polygon","attr":{"fill":"#fff","points":"52.59 18 42 18 42 7.41 52.59 18"}},{"tag":"path","attr":{"fill":"#fff","d":"M54,20V58H14V52H41a1,1,0,0,0,1-1V33a1,1,0,0,0-1-1H14V6H40V19a1,1,0,0,0,1,1Z"}},{"tag":"path","attr":{"fill":"#01579b","d":"M15 46V38h2.66a2.8 2.8 0 0 1 1.9.58 2.42 2.42 0 0 1 .83 1.92A2.54 2.54 0 0 1 20 41.82a2.19 2.19 0 0 1-1 .88 2.67 2.67 0 0 1-1.15.23H16.65V46zm1.69-4.52h.94a1.14 1.14 0 0 0 .81-.28 1 1 0 0 0 .29-.76q0-.92-1.1-.92h-.94zM21.95 46V38h3a3.18 3.18 0 0 1 2.08.68A4 4 0 0 1 28.5 42 4.48 4.48 0 0 1 28 44.11a3.52 3.52 0 0 1-1.4 1.45 4.54 4.54 0 0 1-2.22.44zm1.69-1.52h1.08a1.93 1.93 0 0 0 1.09-.29 2.53 2.53 0 0 0 1-2.26 2.4 2.4 0 0 0-.95-2.12 1.87 1.87 0 0 0-1.08-.29H23.64zM30.24 46V38h4.58v1.52H31.93v1.63h2.65v1.52H31.93V46z"}}]}')},78376:e=>{"use strict";e.exports=JSON.parse('{"tag":"svg","attr":{"viewBox":"0 0 24 24"},"child":[{"tag":"path","attr":{"fill":"#878EB7","d":"M12,18.5c6.626,0,12-2.908,12-6.5c0-3.592-5.374-6.5-12-6.5C5.374,5.5,0,8.408,0,12C0,15.592,5.374,18.5,12,18.5L12,18.5z"}},{"tag":"path","attr":{"fill":"#23282C","d":"M5.029 15.641l.326-1.73c1.541 0 2.497.117 3.382-.737.979-.927 1.234-2.576.536-3.402C8.909 9.339 8.325 9.126 7.529 9.126h-2.65l-1.226 6.515H5.029L5.029 15.641zM6.068 10.154c1.424 0 2.392-.158 2.115 1.325v-.001c-.296 1.564-1.343 1.402-2.629 1.402L6.068 10.154 6.068 10.154zM10.759 13.904l.704-3.731c1.114 0 1.575-.046 1.778.179.21.232.101.486-.476 3.553h1.388c.6-3.172.866-3.843.31-4.369-.528-.502-1.623-.413-2.805-.413l.326-1.73h-1.368L9.39 13.904H10.759L10.759 13.904zM15.787 15.641l.326-1.73c1.62 0 2.516.097 3.383-.737.979-.927 1.234-2.576.536-3.402-.364-.433-.949-.646-1.744-.646h-2.651l-1.23 6.515H15.787L15.787 15.641zM16.822 10.154c1.432 0 2.392-.158 2.115 1.325v-.001c-.3 1.588-1.376 1.402-2.629 1.402L16.822 10.154 16.822 10.154z"}},{"tag":"path","attr":{"fill":"#767C9F","d":"M8.032,12H5.72l-0.166,0.881c0.22,0,0.433,0.005,0.637,0.005C7.023,12.885,7.696,12.806,8.032,12L8.032,12z M24,12h-3.752c-0.155,0.436-0.409,0.849-0.752,1.174c-0.703,0.677-1.425,0.741-2.538,0.741c-0.259,0-0.539-0.004-0.844-0.004l-0.326,1.73h-1.38L15.094,12h-0.571c-0.099,0.51-0.226,1.133-0.372,1.905h-1.388c0.154-0.817,0.275-1.435,0.365-1.905h-2.011l-0.359,1.904H9.39L9.748,12H9.49c-0.155,0.436-0.409,0.849-0.752,1.174c-0.695,0.671-1.434,0.742-2.466,0.742c-0.282,0-0.585-0.005-0.916-0.005l-0.326,1.73H3.652L4.338,12H0l0,0c0,3.592,5.374,6.5,12,6.5C18.626,18.5,24,15.592,24,12L24,12L24,12z"}},{"tag":"path","attr":{"fill":"#1E2326","d":"M9.49 12H8.032c-.337.806-1.009.885-1.842.885-.204 0-.417-.005-.637-.005L5.72 12H4.338l-.685 3.641h1.377l.326-1.73c.33 0 .634.005.916.005 1.032 0 1.771-.072 2.466-.742C9.08 12.849 9.334 12.436 9.49 12L9.49 12zM11.118 12h-1.37L9.39 13.904h1.369L11.118 12 11.118 12zM14.524 12H13.13c-.09.471-.211 1.088-.365 1.905h1.388C14.298 13.133 14.424 12.509 14.524 12L14.524 12z"}},{"tag":"path","attr":{"fill":"#767C9F","d":"M18.788,12h-2.313l-0.166,0.881c0.238,0,0.469,0.007,0.69,0.007C17.795,12.887,18.455,12.8,18.788,12L18.788,12z"}},{"tag":"path","attr":{"fill":"#1E2326","d":"M20.248,12h-1.46c-0.333,0.801-0.993,0.887-1.789,0.887c-0.221,0-0.452-0.007-0.69-0.007L16.474,12h-1.38l-0.687,3.641h1.38l0.326-1.73c0.306,0,0.586,0.004,0.844,0.004c1.113,0,1.836-0.064,2.538-0.741C19.839,12.849,20.093,12.436,20.248,12L20.248,12z"}}]}')},99428:e=>{"use strict";e.exports=JSON.parse('{"tag":"svg","attr":{"viewBox":"0 0 24 24"},"child":[{"tag":"polygon","attr":{"points":"18.231 7.357 18.232 7.357 18.232 7.353"}},{"tag":"path","attr":{"fill":"#F2BB30","d":"M20.699,17.748c1.666,0,2.282-1.162,2.861-2.904c0.6-1.794,0.574-3.52,0-5.818c-0.413-1.655-1.194-2.904-2.861-2.904h-2.147v2.541c0,1.971-1.672,3.632-3.578,3.632H9.252c-1.565,0-2.861,1.339-2.861,2.909v5.454c0,1.553,1.35,2.464,2.861,2.909c1.81,0.53,3.552,0.626,5.721,0c1.441-0.418,2.861-1.26,2.861-2.909v-2.181h-5.717v-0.728H20.699z M15.332,19.929c0.594,0,1.077,0.488,1.077,1.088c0,0.606-0.482,1.093-1.077,1.093c-0.59,0-1.077-0.493-1.077-1.093C14.261,20.411,14.744,19.929,15.332,19.929z"}},{"tag":"path","attr":{"fill":"#35668F","d":"M3.444,17.749H5.41v-2.615c0-1.891,1.634-3.558,3.578-3.558h5.721c1.591,0,2.861-1.312,2.861-2.909V3.209c0-1.553-1.307-2.717-2.861-2.978c-1.918-0.317-4.002-0.299-5.721,0.006l0.001-0.001C6.567,0.664,6.129,1.558,6.129,3.213v2.181h5.727v0.729H3.98c-1.666,0-3.124,1.002-3.578,2.904c-0.525,2.181-0.546,3.541,0,5.818C0.808,16.538,1.779,17.749,3.444,17.749z M8.63,3.937c-0.594,0-1.077-0.488-1.077-1.088C7.56,2.243,8.036,1.756,8.63,1.756c0.59,0,1.077,0.492,1.077,1.093S9.225,3.937,8.63,3.937z"}}]}')},67396:e=>{"use strict";e.exports=JSON.parse('{"tag":"svg","attr":{"viewBox":"0 0 338.52 483.41"},"child":[{"tag":"g","attr":{},"child":[{"tag":"g","attr":{},"child":[{"tag":"path","attr":{"d":"M246.2,125c-8.5,0-15.39-7.64-15.39-17.06V5.55H46.16C20.67,5.55,0,28.47,0,56.75V432.21c0,28.28,20.67,51.2,46.16,51.2h246.2c25.49,0,46.16-22.92,46.16-51.2V125Z","fill":"#515151"}},{"tag":"polygon","attr":{"points":"240.85 7.55 240.85 113.68 336.53 113.68 240.85 7.55","fill":"#515151"}}]},{"tag":"g","attr":{},"child":[{"tag":"path","attr":{"d":"M270.28,270.54a62.73,62.73,0,0,0-.39-15.14l11.47-5.12a75.54,75.54,0,0,0-13.85-31.1L256,224.29a62.92,62.92,0,0,0-11-10.43l4.5-11.72a75.94,75.94,0,0,0-31.78-12.21l-4.51,11.73a62.73,62.73,0,0,0-15.14.4L193,190.65A75.85,75.85,0,0,0,162,204.57L167,215.91a62.89,62.89,0,0,0-10.43,11l-11.7-4.48a74.86,74.86,0,0,0-8,15.19,76.89,76.89,0,0,0-4.27,16.58l11.72,4.5a62.81,62.81,0,0,0,.4,15.15L133.3,279a75.56,75.56,0,0,0,5.15,16.34,76.48,76.48,0,0,0,8.7,14.76l11.47-5.11a62.6,62.6,0,0,0,11,10.43l-4.5,11.73a75.94,75.94,0,0,0,31.78,12.21l4.5-11.73a62.8,62.8,0,0,0,15.15-.41l5.08,11.41a75.78,75.78,0,0,0,31.08-13.92l-5.05-11.34a62.89,62.89,0,0,0,10.43-11l11.69,4.48a75,75,0,0,0,8-15.18A75.85,75.85,0,0,0,282,275Zm-31.16,6.27a34,34,0,1,1-19.6-44A34,34,0,0,1,239.12,276.81Z","fill":"#fff"}},{"tag":"path","attr":{"d":"M152.1,356.33a36.58,36.58,0,0,0-.63-6.66l8.79-5.07a46.11,46.11,0,0,0-12.14-21.08l-8.81,5.09A36.18,36.18,0,0,0,127.78,322V311.8a45.11,45.11,0,0,0-24.32,0V322a36.46,36.46,0,0,0-11.52,6.65l-8.82-5.09A46.21,46.21,0,0,0,71,344.6l8.8,5.08a34.92,34.92,0,0,0,0,13.31L71,368.07a46.21,46.21,0,0,0,12.14,21.07l8.82-5.09a36.35,36.35,0,0,0,11.52,6.65v10.17a45.11,45.11,0,0,0,24.32,0V390.7a36.35,36.35,0,0,0,11.52-6.65l8.82,5.09a46.12,46.12,0,0,0,12.14-21.07L151.47,363A36.58,36.58,0,0,0,152.1,356.33Zm-36.47,17a17,17,0,1,1,17-17A17,17,0,0,1,115.63,373.36Z","fill":"#fff"}}]}]}]}')},99826:e=>{"use strict";e.exports=JSON.parse('{"tag":"svg","attr":{"viewBox":"0 0 338.52 493.3"},"child":[{"tag":"g","attr":{},"child":[{"tag":"g","attr":{},"child":[{"tag":"path","attr":{"d":"M246.2,127.72c-8.5,0-15.39-7.64-15.39-17.07V8.25H46.16C20.67,8.25,0,31.18,0,59.45V434.92c0,28.28,20.67,51.2,46.16,51.2h246.2c25.49,0,46.16-22.92,46.16-51.2V127.72Z","fill":"#d04423"}},{"tag":"polygon","attr":{"points":"240.85 10.26 240.85 116.38 336.53 116.38 240.85 10.26","fill":"#d04423"}}]},{"tag":"g","attr":{},"child":[{"tag":"g","attr":{},"child":[{"tag":"circle","attr":{"cx":"162.26","cy":"261.91","r":"83.07","fill":"#fff"}},{"tag":"path","attr":{"d":"M162.26,261.91h91.92c0-50-41.15-90.45-91.92-90.45Z","fill":"#d04423"}}]},{"tag":"path","attr":{"d":"M176.26,247.91h83.07a83.07,83.07,0,0,0-83.07-83.07Z","fill":"#fff"}}]}]}]}')},38296:e=>{"use strict";e.exports=JSON.parse('{"tag":"svg","attr":{"viewBox":"0 0 338.52 477.87"},"child":[{"tag":"g","attr":{},"child":[{"tag":"g","attr":{},"child":[{"tag":"path","attr":{"d":"M246.2,119.47c-8.5,0-15.39-7.64-15.39-17.07V0H46.16C20.67,0,0,22.92,0,51.2V426.67c0,28.27,20.67,51.2,46.16,51.2h246.2c25.49,0,46.16-22.93,46.16-51.2V119.47Z","fill":"#0f9d58"}},{"tag":"polygon","attr":{"points":"240.85 2 240.85 108.13 336.53 108.13 240.85 2","fill":"#0f9d58"}}]},{"tag":"g","attr":{},"child":[{"tag":"g","attr":{},"child":[{"tag":"rect","attr":{"x":"64.59","y":"249.87","width":"84.02","height":"27.06","fill":"#fff"}},{"tag":"rect","attr":{"x":"64.59","y":"207.86","width":"84.02","height":"27.06","fill":"#fff"}},{"tag":"rect","attr":{"x":"64.59","y":"291.88","width":"84.02","height":"27.06","fill":"#fff"}}]},{"tag":"g","attr":{},"child":[{"tag":"rect","attr":{"x":"167.16","y":"249.87","width":"106.77","height":"27.06","fill":"#fff"}},{"tag":"rect","attr":{"x":"167.16","y":"207.86","width":"106.77","height":"27.06","fill":"#fff"}},{"tag":"rect","attr":{"x":"167.16","y":"291.88","width":"106.77","height":"27.06","fill":"#fff"}}]}]}]}]}')},40200:e=>{"use strict";e.exports=JSON.parse('{"tag":"svg","attr":{"viewBox":"0 0 256 256"},"child":[{"tag":"path","attr":{"d":"M245.235 153.524c14.012-14.012 14.011-36.811 0-50.823-6.787-6.788-15.812-10.525-25.411-10.525-2.28 0-4.523.208-6.712.617 9.538-6.524 15.72-17.495 15.72-29.694 0-19.816-16.122-35.937-35.938-35.937-12.223 0-23.213 6.205-29.733 15.776 2.157-11.377-1.226-23.537-9.87-32.18C146.506 3.97 137.48.232 127.882.232c-9.6 0-18.624 3.738-25.412 10.526-8.643 8.643-12.026 20.803-9.87 32.18-6.519-9.57-17.509-15.776-29.733-15.776-19.815 0-35.936 16.12-35.936 35.937 0 12.2 6.18 23.17 15.718 29.694a36.487 36.487 0 0 0-6.711-.617c-9.6 0-18.624 3.738-25.411 10.526C3.738 109.489 0 118.514 0 128.112c0 9.6 3.738 18.624 10.526 25.412 6.787 6.787 15.812 10.526 25.41 10.526 2.28 0 4.523-.208 6.712-.618-9.538 6.525-15.718 17.496-15.718 29.695 0 19.815 16.12 35.936 35.936 35.936 12.224 0 23.215-6.206 29.734-15.776-2.157 11.378 1.226 23.538 9.87 32.18 6.787 6.788 15.812 10.526 25.41 10.526 9.6 0 18.625-3.738 25.412-10.526 8.643-8.643 12.026-20.803 9.869-32.18 6.52 9.57 17.51 15.776 29.733 15.776 19.816 0 35.937-16.12 35.937-35.936 0-12.2-6.18-23.17-15.719-29.695 2.189.41 4.433.618 6.712.618 9.599 0 18.624-3.739 25.411-10.526"}},{"tag":"path","attr":{"fill":"#FFB13B","d":"M234.391 113.538c-8.049-8.048-21.099-8.048-29.148 0h-42.184l29.829-29.828c11.383 0 20.61-9.228 20.61-20.611 0-11.383-9.227-20.612-20.61-20.612-11.384 0-20.611 9.229-20.611 20.612l-29.829 29.829V50.743c8.049-8.049 8.049-21.099 0-29.148-8.05-8.05-21.1-8.05-29.149 0s-8.049 21.1 0 29.148v42.185l-29.828-29.83c0-11.382-9.228-20.61-20.611-20.61-11.383 0-20.611 9.228-20.611 20.61 0 11.384 9.228 20.612 20.61 20.612l29.83 29.828H50.504c-8.05-8.049-21.1-8.048-29.15 0-8.048 8.05-8.048 21.1 0 29.15 8.05 8.048 21.1 8.048 29.15 0h42.183L62.86 172.515c-11.383 0-20.611 9.227-20.611 20.61 0 11.384 9.228 20.612 20.61 20.612 11.384 0 20.612-9.228 20.612-20.611l29.828-29.829v42.184c-8.049 8.049-8.049 21.1 0 29.149 8.05 8.049 21.1 8.049 29.15 0 8.048-8.05 8.048-21.1 0-29.15v-42.183l29.828 29.829c0 11.383 9.227 20.61 20.61 20.61 11.384 0 20.612-9.227 20.612-20.61 0-11.384-9.228-20.611-20.611-20.611l-29.83-29.829h42.185c8.05 8.05 21.1 8.05 29.148 0 8.05-8.049 8.05-21.1 0-29.149"}}]}')},1842:e=>{"use strict";e.exports=JSON.parse('{"tag":"svg","attr":{"viewBox":"0 0 32 32"},"child":[{"tag":"path","attr":{"fill":"#bfdbfe","d":"M26,10.94a1.07,1.07,0,0,0-.33-.69l-8-7A1.14,1.14,0,0,0,17,3H8A2,2,0,0,0,6,5V27a2,2,0,0,0,2,2H24a2,2,0,0,0,2-2C26,26.93,26,11,26,10.94Z"}},{"tag":"path","attr":{"fill":"#56a2e2","d":"M12,14.16a1,1,0,0,0-.5.86v7.75a1,1,0,0,0,1.49.88L20,19.77A1,1,0,0,0,20,18L13,14.15A1,1,0,0,0,12,14.16Zm1.5,2.57,3.89,2.17-3.89,2.17Z"}},{"tag":"path","attr":{"fill":"#56a2e2","d":"M26,10.94a1.07,1.07,0,0,0-.33-.69l-8-7A1,1,0,0,0,16,4v7a1,1,0,0,0,1,1h7V27H8V5h6a1,1,0,0,0,0-2H8A2,2,0,0,0,6,5V27a2,2,0,0,0,2,2H24a2,2,0,0,0,2-2C26,26.93,26,11,26,10.94ZM18,10V6.2L22.34,10Z"}}]}')}},__webpack_module_cache__={};function __webpack_require__(e){var t=__webpack_module_cache__[e];if(void 0!==t)return t.exports;var n=__webpack_module_cache__[e]={id:e,loaded:!1,exports:{}};return __webpack_modules__[e].call(n.exports,n,n.exports,__webpack_require__),n.loaded=!0,n.exports}__webpack_require__.m=__webpack_modules__,__webpack_require__.amdO={},__webpack_require__.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return __webpack_require__.d(t,{a:t}),t},(()=>{var e,t=Object.getPrototypeOf?e=>Object.getPrototypeOf(e):e=>e.__proto__;__webpack_require__.t=function(n,r){if(1&r&&(n=this(n)),8&r)return n;if("object"===typeof n&&n){if(4&r&&n.__esModule)return n;if(16&r&&"function"===typeof n.then)return n}var i=Object.create(null);__webpack_require__.r(i);var o={};e=e||[null,t({}),t([]),t(t)];for(var s=2&r&&n;"object"==typeof s&&!~e.indexOf(s);s=t(s))Object.getOwnPropertyNames(s).forEach((e=>o[e]=()=>n[e]));return o.default=()=>n,__webpack_require__.d(i,o),i}})(),__webpack_require__.d=(e,t)=>{for(var n in t)__webpack_require__.o(t,n)&&!__webpack_require__.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},__webpack_require__.f={},__webpack_require__.e=e=>Promise.all(Object.keys(__webpack_require__.f).reduce(((t,n)=>(__webpack_require__.f[n](e,t),t)),[])),__webpack_require__.u=e=>"static/js/"+e+"."+{56:"efac651b",288:"a00814b7",516:"145f2daa",580:"c30fc6d6",732:"30142988",776:"83eb97bb",789:"8ca7d78b",792:"fbc78043",824:"65405bf8"}[e]+".chunk.js",__webpack_require__.miniCssF=e=>{},__webpack_require__.g=function(){if("object"===typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"===typeof window)return window}}(),__webpack_require__.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),(()=>{var e={},t="skyvisor-webapp-front:";__webpack_require__.l=(n,r,i,o)=>{if(e[n])e[n].push(r);else{var s,a;if(void 0!==i)for(var l=document.getElementsByTagName("script"),c=0;c<l.length;c++){var u=l[c];if(u.getAttribute("src")==n||u.getAttribute("data-webpack")==t+i){s=u;break}}s||(a=!0,(s=document.createElement("script")).charset="utf-8",s.timeout=120,__webpack_require__.nc&&s.setAttribute("nonce",__webpack_require__.nc),s.setAttribute("data-webpack",t+i),s.src=n),e[n]=[r];var d=(t,r)=>{s.onerror=s.onload=null,clearTimeout(h);var i=e[n];if(delete e[n],s.parentNode&&s.parentNode.removeChild(s),i&&i.forEach((e=>e(r))),t)return t(r)},h=setTimeout(d.bind(null,void 0,{type:"timeout",target:s}),12e4);s.onerror=d.bind(null,s.onerror),s.onload=d.bind(null,s.onload),a&&document.head.appendChild(s)}}})(),__webpack_require__.r=e=>{"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},__webpack_require__.nmd=e=>(e.paths=[],e.children||(e.children=[]),e),__webpack_require__.p="/",(()=>{var e={590:0};__webpack_require__.f.j=(t,n)=>{var r=__webpack_require__.o(e,t)?e[t]:void 0;if(0!==r)if(r)n.push(r[2]);else{var i=new Promise(((n,i)=>r=e[t]=[n,i]));n.push(r[2]=i);var o=__webpack_require__.p+__webpack_require__.u(t),s=new Error;__webpack_require__.l(o,(n=>{if(__webpack_require__.o(e,t)&&(0!==(r=e[t])&&(e[t]=void 0),r)){var i=n&&("load"===n.type?"missing":n.type),o=n&&n.target&&n.target.src;s.message="Loading chunk "+t+" failed.\n("+i+": "+o+")",s.name="ChunkLoadError",s.type=i,s.request=o,r[1](s)}}),"chunk-"+t,t)}};var t=(t,n)=>{var r,i,o=n[0],s=n[1],a=n[2],l=0;if(o.some((t=>0!==e[t]))){for(r in s)__webpack_require__.o(s,r)&&(__webpack_require__.m[r]=s[r]);if(a)a(__webpack_require__)}for(t&&t(n);l<o.length;l++)i=o[l],__webpack_require__.o(e,i)&&e[i]&&e[i][0](),e[i]=0},n=self.webpackChunkskyvisor_webapp_front=self.webpackChunkskyvisor_webapp_front||[];n.forEach(t.bind(null,0)),n.push=t.bind(null,n.push.bind(n))})();var __webpack_exports__={};(()=>{"use strict";var e={};__webpack_require__.r(e),__webpack_require__.d(e,{scaleBand:()=>ADe,scaleDiverging:()=>iBe,scaleDivergingLog:()=>oBe,scaleDivergingPow:()=>aBe,scaleDivergingSqrt:()=>lBe,scaleDivergingSymlog:()=>sBe,scaleIdentity:()=>JLe,scaleImplicit:()=>PDe,scaleLinear:()=>$Le,scaleLog:()=>aVe,scaleOrdinal:()=>CDe,scalePoint:()=>jDe,scalePow:()=>mVe,scaleQuantile:()=>kVe,scaleQuantize:()=>jVe,scaleRadial:()=>_Ve,scaleSequential:()=>$ze,scaleSequentialLog:()=>Jze,scaleSequentialPow:()=>eBe,scaleSequentialQuantile:()=>nBe,scaleSequentialSqrt:()=>tBe,scaleSequentialSymlog:()=>Qze,scaleSqrt:()=>yVe,scaleSymlog:()=>dVe,scaleThreshold:()=>IVe,scaleTime:()=>Xze,scaleUtc:()=>Yze,tickFormat:()=>KLe});var t={};__webpack_require__.r(t),__webpack_require__.d(t,{Decoder:()=>o8e,Encoder:()=>r8e,PacketType:()=>n8e,protocol:()=>t8e});var n=__webpack_require__(99584),r=__webpack_require__.t(n,2),i=n.createContext(null);var o=function(e){e()},s=function(){return o};var a={notify:function(){},get:function(){return[]}};function l(e,t){var n,r=a;function i(){l.onStateChange&&l.onStateChange()}function o(){n||(n=t?t.addNestedSub(i):e.subscribe(i),r=function(){var e=s(),t=null,n=null;return{clear:function(){t=null,n=null},notify:function(){e((function(){for(var e=t;e;)e.callback(),e=e.next}))},get:function(){for(var e=[],n=t;n;)e.push(n),n=n.next;return e},subscribe:function(e){var r=!0,i=n={callback:e,next:null,prev:n};return i.prev?i.prev.next=i:t=i,function(){r&&null!==t&&(r=!1,i.next?i.next.prev=i.prev:n=i.prev,i.prev?i.prev.next=i.next:t=i.next)}}}}())}var l={addNestedSub:function(e){return o(),r.subscribe(e)},notifyNestedSubs:function(){r.notify()},handleChangeWrapper:i,isSubscribed:function(){return Boolean(n)},trySubscribe:o,tryUnsubscribe:function(){n&&(n(),n=void 0,r.clear(),r=a)},getListeners:function(){return r}};return l}var c="undefined"!==typeof window&&"undefined"!==typeof window.document&&"undefined"!==typeof window.document.createElement?n.useLayoutEffect:n.useEffect;const u=function(e){var t=e.store,r=e.context,o=e.children,s=(0,n.useMemo)((function(){var e=l(t);return{store:t,subscription:e}}),[t]),a=(0,n.useMemo)((function(){return t.getState()}),[t]);c((function(){var e=s.subscription;return e.onStateChange=e.notifyNestedSubs,e.trySubscribe(),a!==t.getState()&&e.notifyNestedSubs(),function(){e.tryUnsubscribe(),e.onStateChange=null}}),[s,a]);var u=r||i;return n.createElement(u.Provider,{value:s},o)};__webpack_require__(27396),__webpack_require__(56448);var d=__webpack_require__(45072);function h(){return(0,n.useContext)(i)}function p(e){void 0===e&&(e=i);var t=e===i?h:function(){return(0,n.useContext)(e)};return function(){return t().store}}var f=p();function g(e){void 0===e&&(e=i);var t=e===i?f:p(e);return function(){return t().dispatch}}var m=g(),y=function(e,t){return e===t};function v(e){void 0===e&&(e=i);var t=e===i?h:function(){return(0,n.useContext)(e)};return function(e,r){void 0===r&&(r=y);var i=t(),o=function(e,t,r,i){var o,s=(0,n.useReducer)((function(e){return e+1}),0),a=s[1],u=(0,n.useMemo)((function(){return l(r,i)}),[r,i]),d=(0,n.useRef)(),h=(0,n.useRef)(),p=(0,n.useRef)(),f=(0,n.useRef)(),g=r.getState();try{if(e!==h.current||g!==p.current||d.current){var m=e(g);o=void 0!==f.current&&t(m,f.current)?f.current:m}else o=f.current}catch(y){throw d.current&&(y.message+="\nThe error may be correlated with this previous error:\n"+d.current.stack+"\n\n"),y}return c((function(){h.current=e,p.current=g,f.current=o,d.current=void 0})),c((function(){function e(){try{var e=r.getState();if(e===p.current)return;var n=h.current(e);if(t(n,f.current))return;f.current=n,p.current=e}catch(y){d.current=y}a()}return u.onStateChange=e,u.trySubscribe(),e(),function(){return u.tryUnsubscribe()}}),[r,u]),o}(e,r,i.store,i.subscription);return(0,n.useDebugValue)(o),o}}var _,b=v(),x=__webpack_require__(78828);_=x.unstable_batchedUpdates,o=_;var S=__webpack_require__(47504),w=__webpack_require__(78092);function E(e){return E="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},E(e)}function P(e){var t=function(e,t){if("object"!=E(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=E(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==E(t)?t:String(t)}function C(e,t,n){return(t=P(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var A,k,j=__webpack_require__(68392),I=__webpack_require__.n(j),G=__webpack_require__(76187),T=__webpack_require__.n(G),M=__webpack_require__(69413),O=__webpack_require__.n(M),R=(e=>(e.BASE="base",e.BODY="body",e.HEAD="head",e.HTML="html",e.LINK="link",e.META="meta",e.NOSCRIPT="noscript",e.SCRIPT="script",e.STYLE="style",e.TITLE="title",e.FRAGMENT="Symbol(react.fragment)",e))(R||{}),D={rel:["amphtml","canonical","alternate"]},N={type:["application/ld+json"]},L={charset:"",name:["generator","robots","description"],property:["og:type","og:title","og:url","og:image","og:image:alt","og:description","twitter:url","twitter:title","twitter:description","twitter:image","twitter:image:alt","twitter:card","twitter:site"]},V=Object.values(R),F={accesskey:"accessKey",charset:"charSet",class:"className",contenteditable:"contentEditable",contextmenu:"contextMenu","http-equiv":"httpEquiv",itemprop:"itemProp",tabindex:"tabIndex"},z=Object.entries(F).reduce(((e,t)=>{let[n,r]=t;return e[r]=n,e}),{}),B="data-rh",U="defaultTitle",W="defer",H="encodeSpecialCharacters",q="onChangeClientState",X="titleTemplate",Y="prioritizeSeoTags",K=(e,t)=>{for(let n=e.length-1;n>=0;n-=1){const r=e[n];if(Object.prototype.hasOwnProperty.call(r,t))return r[t]}return null},Z=e=>{let t=K(e,"title");const n=K(e,X);if(Array.isArray(t)&&(t=t.join("")),n&&t)return n.replace(/%s/g,(()=>t));const r=K(e,U);return t||r||void 0},$=e=>K(e,q)||(()=>{}),J=(e,t)=>t.filter((t=>"undefined"!==typeof t[e])).map((t=>t[e])).reduce(((e,t)=>({...e,...t})),{}),Q=(e,t)=>t.filter((e=>"undefined"!==typeof e.base)).map((e=>e.base)).reverse().reduce(((t,n)=>{if(!t.length){const r=Object.keys(n);for(let i=0;i<r.length;i+=1){const o=r[i].toLowerCase();if(-1!==e.indexOf(o)&&n[o])return t.concat(n)}}return t}),[]),ee=(e,t,n)=>{const r={};return n.filter((t=>{return!!Array.isArray(t[e])||("undefined"!==typeof t[e]&&(n="Helmet: ".concat(e,' should be of type "Array". Instead found type "').concat(typeof t[e],'"'),console&&"function"===typeof console.warn&&console.warn(n)),!1);var n})).map((t=>t[e])).reverse().reduce(((e,n)=>{const i={};n.filter((e=>{let n;const o=Object.keys(e);for(let r=0;r<o.length;r+=1){const i=o[r],s=i.toLowerCase();-1===t.indexOf(s)||"rel"===n&&"canonical"===e[n].toLowerCase()||"rel"===s&&"stylesheet"===e[s].toLowerCase()||(n=s),-1===t.indexOf(i)||"innerHTML"!==i&&"cssText"!==i&&"itemprop"!==i||(n=i)}if(!n||!e[n])return!1;const s=e[n].toLowerCase();return r[n]||(r[n]={}),i[n]||(i[n]={}),!r[n][s]&&(i[n][s]=!0,!0)})).reverse().forEach((t=>e.push(t)));const o=Object.keys(i);for(let t=0;t<o.length;t+=1){const e=o[t],n={...r[e],...i[e]};r[e]=n}return e}),[]).reverse()},te=(e,t)=>{if(Array.isArray(e)&&e.length)for(let n=0;n<e.length;n+=1){if(e[n][t])return!0}return!1},ne=e=>Array.isArray(e)?e.join(""):e,re=(e,t)=>Array.isArray(e)?e.reduce(((e,n)=>(((e,t)=>{const n=Object.keys(e);for(let r=0;r<n.length;r+=1)if(t[n[r]]&&t[n[r]].includes(e[n[r]]))return!0;return!1})(n,t)?e.priority.push(n):e.default.push(n),e)),{priority:[],default:[]}):{default:e,priority:[]},ie=(e,t)=>({...e,[t]:void 0}),oe=["noscript","script","style"],se=function(e){return!1===(!(arguments.length>1&&void 0!==arguments[1])||arguments[1])?String(e):String(e).replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;").replace(/'/g,"&#x27;")},ae=e=>Object.keys(e).reduce(((t,n)=>{const r="undefined"!==typeof e[n]?"".concat(n,'="').concat(e[n],'"'):"".concat(n);return t?"".concat(t," ").concat(r):r}),""),le=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return Object.keys(e).reduce(((t,n)=>(t[F[n]||n]=e[n],t)),t)},ce=(e,t)=>t.map(((t,r)=>{const i={key:r,[B]:!0};return Object.keys(t).forEach((e=>{const n=F[e]||e;if("innerHTML"===n||"cssText"===n){const e=t.innerHTML||t.cssText;i.dangerouslySetInnerHTML={__html:e}}else i[n]=t[e]})),n.createElement(e,i)})),ue=function(e,t){let r=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];switch(e){case"title":return{toComponent:()=>((e,t,r)=>{const i=le(r,{key:t,[B]:!0});return[n.createElement("title",i,t)]})(0,t.title,t.titleAttributes),toString:()=>((e,t,n,r)=>{const i=ae(n),o=ne(t);return i?"<".concat(e," ").concat(B,'="true" ').concat(i,">").concat(se(o,r),"</").concat(e,">"):"<".concat(e," ").concat(B,'="true">').concat(se(o,r),"</").concat(e,">")})(e,t.title,t.titleAttributes,r)};case"bodyAttributes":case"htmlAttributes":return{toComponent:()=>le(t),toString:()=>ae(t)};default:return{toComponent:()=>ce(e,t),toString:()=>function(e,t){let n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];return t.reduce(((t,r)=>{const i=r,o=Object.keys(i).filter((e=>!("innerHTML"===e||"cssText"===e))).reduce(((e,t)=>{const r="undefined"===typeof i[t]?t:"".concat(t,'="').concat(se(i[t],n),'"');return e?"".concat(e," ").concat(r):r}),""),s=i.innerHTML||i.cssText||"",a=-1===oe.indexOf(e);return"".concat(t,"<").concat(e," ").concat(B,'="true" ').concat(o).concat(a?"/>":">".concat(s,"</").concat(e,">"))}),"")}(e,t,r)}}},de=e=>{const{baseTag:t,bodyAttributes:n,encode:r=!0,htmlAttributes:i,noscriptTags:o,styleTags:s,title:a="",titleAttributes:l,prioritizeSeoTags:c}=e;let{linkTags:u,metaTags:d,scriptTags:h}=e,p={toComponent:()=>{},toString:()=>""};return c&&({priorityMethods:p,linkTags:u,metaTags:d,scriptTags:h}=(e=>{let{metaTags:t,linkTags:n,scriptTags:r,encode:i}=e;const o=re(t,L),s=re(n,D),a=re(r,N);return{priorityMethods:{toComponent:()=>[...ce("meta",o.priority),...ce("link",s.priority),...ce("script",a.priority)],toString:()=>"".concat(ue("meta",o.priority,i)," ").concat(ue("link",s.priority,i)," ").concat(ue("script",a.priority,i))},metaTags:o.default,linkTags:s.default,scriptTags:a.default}})(e)),{priority:p,base:ue("base",t,r),bodyAttributes:ue("bodyAttributes",n,r),htmlAttributes:ue("htmlAttributes",i,r),link:ue("link",u,r),meta:ue("meta",d,r),noscript:ue("noscript",o,r),script:ue("script",h,r),style:ue("style",s,r),title:ue("title",{title:a,titleAttributes:l},r)}},he=[],pe=!("undefined"===typeof window||!window.document||!window.document.createElement),fe=class{constructor(e,t){C(this,"instances",[]),C(this,"canUseDOM",pe),C(this,"context",void 0),C(this,"value",{setHelmet:e=>{this.context.helmet=e},helmetInstances:{get:()=>this.canUseDOM?he:this.instances,add:e=>{(this.canUseDOM?he:this.instances).push(e)},remove:e=>{const t=(this.canUseDOM?he:this.instances).indexOf(e);(this.canUseDOM?he:this.instances).splice(t,1)}}}),this.context=e,this.canUseDOM=t||!1,t||(e.helmet=de({baseTag:[],bodyAttributes:{},encodeSpecialCharacters:!0,htmlAttributes:{},linkTags:[],metaTags:[],noscriptTags:[],scriptTags:[],styleTags:[],title:"",titleAttributes:{}}))}},ge=n.createContext({}),me=(A=class e extends n.Component{constructor(t){super(t),C(this,"helmetData",void 0),this.helmetData=new fe(this.props.context||{},e.canUseDOM)}render(){return n.createElement(ge.Provider,{value:this.helmetData.value},this.props.children)}},C(A,"canUseDOM",pe),A),ye=(e,t)=>{const n=document.head||document.querySelector("head"),r=n.querySelectorAll("".concat(e,"[").concat(B,"]")),i=[].slice.call(r),o=[];let s;return t&&t.length&&t.forEach((t=>{const n=document.createElement(e);for(const e in t)if(Object.prototype.hasOwnProperty.call(t,e))if("innerHTML"===e)n.innerHTML=t.innerHTML;else if("cssText"===e)n.styleSheet?n.styleSheet.cssText=t.cssText:n.appendChild(document.createTextNode(t.cssText));else{const r=e,i="undefined"===typeof t[r]?"":t[r];n.setAttribute(e,i)}n.setAttribute(B,"true"),i.some(((e,t)=>(s=t,n.isEqualNode(e))))?i.splice(s,1):o.push(n)})),i.forEach((e=>{var t;return null===(t=e.parentNode)||void 0===t?void 0:t.removeChild(e)})),o.forEach((e=>n.appendChild(e))),{oldTags:i,newTags:o}},ve=(e,t)=>{const n=document.getElementsByTagName(e)[0];if(!n)return;const r=n.getAttribute(B),i=r?r.split(","):[],o=[...i],s=Object.keys(t);for(const a of s){const e=t[a]||"";n.getAttribute(a)!==e&&n.setAttribute(a,e),-1===i.indexOf(a)&&i.push(a);const r=o.indexOf(a);-1!==r&&o.splice(r,1)}for(let a=o.length-1;a>=0;a-=1)n.removeAttribute(o[a]);i.length===o.length?n.removeAttribute(B):n.getAttribute(B)!==s.join(",")&&n.setAttribute(B,s.join(","))},_e=(e,t)=>{const{baseTag:n,bodyAttributes:r,htmlAttributes:i,linkTags:o,metaTags:s,noscriptTags:a,onChangeClientState:l,scriptTags:c,styleTags:u,title:d,titleAttributes:h}=e;ve("body",r),ve("html",i),((e,t)=>{"undefined"!==typeof e&&document.title!==e&&(document.title=ne(e)),ve("title",t)})(d,h);const p={baseTag:ye("base",n),linkTags:ye("link",o),metaTags:ye("meta",s),noscriptTags:ye("noscript",a),scriptTags:ye("script",c),styleTags:ye("style",u)},f={},g={};Object.keys(p).forEach((e=>{const{newTags:t,oldTags:n}=p[e];t.length&&(f[e]=t),n.length&&(g[e]=p[e].oldTags)})),t&&t(),l(e,f,g)},be=null,xe=e=>{be&&cancelAnimationFrame(be),e.defer?be=requestAnimationFrame((()=>{_e(e,(()=>{be=null}))})):(_e(e),be=null)},Se=class extends n.Component{constructor(){super(...arguments),C(this,"rendered",!1)}shouldComponentUpdate(e){return!O()(e,this.props)}componentDidUpdate(){this.emitChange()}componentWillUnmount(){const{helmetInstances:e}=this.props.context;e.remove(this),this.emitChange()}emitChange(){const{helmetInstances:e,setHelmet:t}=this.props.context;let n=null;const r=(i=e.get().map((e=>{const t={...e.props};return delete t.context,t})),{baseTag:Q(["href"],i),bodyAttributes:J("bodyAttributes",i),defer:K(i,W),encode:K(i,H),htmlAttributes:J("htmlAttributes",i),linkTags:ee("link",["rel","href"],i),metaTags:ee("meta",["name","charset","http-equiv","property","itemprop"],i),noscriptTags:ee("noscript",["innerHTML"],i),onChangeClientState:$(i),scriptTags:ee("script",["src","innerHTML"],i),styleTags:ee("style",["cssText"],i),title:Z(i),titleAttributes:J("titleAttributes",i),prioritizeSeoTags:te(i,Y)});var i;me.canUseDOM?xe(r):de&&(n=de(r)),t(n)}init(){if(this.rendered)return;this.rendered=!0;const{helmetInstances:e}=this.props.context;e.add(this),this.emitChange()}render(){return this.init(),null}},we=(k=class extends n.Component{shouldComponentUpdate(e){return!I()(ie(this.props,"helmetData"),ie(e,"helmetData"))}mapNestedChildrenToProps(e,t){if(!t)return null;switch(e.type){case"script":case"noscript":return{innerHTML:t};case"style":return{cssText:t};default:throw new Error("<".concat(e.type," /> elements are self-closing and can not contain children. Refer to our API for more information."))}}flattenArrayTypeChildren(e,t,n,r){return{...t,[e.type]:[...t[e.type]||[],{...n,...this.mapNestedChildrenToProps(e,r)}]}}mapObjectTypeChildren(e,t,n,r){switch(e.type){case"title":return{...t,[e.type]:r,titleAttributes:{...n}};case"body":return{...t,bodyAttributes:{...n}};case"html":return{...t,htmlAttributes:{...n}};default:return{...t,[e.type]:{...n}}}}mapArrayTypeChildrenToProps(e,t){let n={...t};return Object.keys(e).forEach((t=>{n={...n,[t]:e[t]}})),n}warnOnInvalidChildren(e,t){return T()(V.some((t=>e.type===t)),"function"===typeof e.type?"You may be attempting to nest <Helmet> components within each other, which is not allowed. Refer to our API for more information.":"Only elements types ".concat(V.join(", ")," are allowed. Helmet does not support rendering <").concat(e.type,"> elements. Refer to our API for more information.")),T()(!t||"string"===typeof t||Array.isArray(t)&&!t.some((e=>"string"!==typeof e)),"Helmet expects a string as a child of <".concat(e.type,">. Did you forget to wrap your children in braces? ( <").concat(e.type,">{``}</").concat(e.type,"> ) Refer to our API for more information.")),!0}mapChildrenToProps(e,t){let r={};return n.Children.forEach(e,(e=>{if(!e||!e.props)return;const{children:n,...i}=e.props,o=Object.keys(i).reduce(((e,t)=>(e[z[t]||t]=i[t],e)),{});let{type:s}=e;switch("symbol"===typeof s?s=s.toString():this.warnOnInvalidChildren(e,n),s){case"Symbol(react.fragment)":t=this.mapChildrenToProps(n,t);break;case"link":case"meta":case"noscript":case"script":case"style":r=this.flattenArrayTypeChildren(e,r,o,n);break;default:t=this.mapObjectTypeChildren(e,t,o,n)}})),this.mapArrayTypeChildrenToProps(r,t)}render(){const{children:e,...t}=this.props;let r={...t},{helmetData:i}=t;if(e&&(r=this.mapChildrenToProps(e,r)),i&&!(i instanceof fe)){i=new fe(i.context,!0),delete r.helmetData}return i?n.createElement(Se,{...r,context:i.value}):n.createElement(ge.Consumer,null,(e=>n.createElement(Se,{...r,context:e})))}},C(k,"defaultProps",{defer:!0,encodeSpecialCharacters:!0,prioritizeSeoTags:!1}),k),Ee=__webpack_require__(48021),Pe=__webpack_require__(28248);const Ce="function"===typeof Symbol&&Symbol.for?Symbol.for("mui.nested"):"__THEME_NESTED__";var Ae=__webpack_require__(97884);const ke=function(e){const{children:t,theme:r}=e,i=(0,Pe.c)(),o=n.useMemo((()=>{const e=null===i?r:function(e,t){if("function"===typeof t)return t(e);return(0,d.c)({},e,t)}(i,r);return null!=e&&(e[Ce]=null!==i),e}),[r,i]);return(0,Ae.jsx)(Ee.c.Provider,{value:o,children:t})};var je=__webpack_require__(74079),Ie=__webpack_require__(85648);const Ge={};function Te(e){const t=(0,Ie.c)();return(0,Ae.jsx)(je.T.Provider,{value:"object"===typeof t?t:Ge,children:e.children})}const Me=function(e){const{children:t,theme:n}=e;return(0,Ae.jsx)(ke,{theme:n,children:(0,Ae.jsx)(Te,{children:t})})};var Oe=__webpack_require__(47901);const Re={previousMonth:"Previous month",nextMonth:"Next month",openPreviousView:"open previous view",openNextView:"open next view",calendarViewSwitchingButtonAriaLabel:e=>"year"===e?"year view is open, switch to calendar view":"calendar view is open, switch to year view",inputModeToggleButtonAriaLabel:(e,t)=>e?"text input view is open, go to ".concat(t," view"):"".concat(t," view is open, go to text input view"),start:"Start",end:"End",cancelButtonLabel:"Cancel",clearButtonLabel:"Clear",okButtonLabel:"OK",todayButtonLabel:"Today",datePickerDefaultToolbarTitle:"Select date",dateTimePickerDefaultToolbarTitle:"Select date & time",timePickerDefaultToolbarTitle:"Select time",dateRangePickerDefaultToolbarTitle:"Select date range",clockLabelText:(e,t,n)=>"Select ".concat(e,". ").concat(null===t?"No time selected":"Selected time is ".concat(n.format(t,"fullTime"))),hoursClockNumberText:e=>"".concat(e," hours"),minutesClockNumberText:e=>"".concat(e," minutes"),secondsClockNumberText:e=>"".concat(e," seconds"),openDatePickerDialogue:(e,t)=>e&&t.isValid(t.date(e))?"Choose date, selected date is ".concat(t.format(t.date(e),"fullDate")):"Choose date",openTimePickerDialogue:(e,t)=>e&&t.isValid(t.date(e))?"Choose time, selected time is ".concat(t.format(t.date(e),"fullTime")):"Choose time",timeTableLabel:"pick time",dateTableLabel:"pick date"},De=Re;Ne=Re,(0,d.c)({},Ne);var Ne;const Le=n.createContext(null);function Ve(e){const t=(0,Oe.c)({props:e,name:"MuiLocalizationProvider"}),{children:r,dateAdapter:i,dateFormats:o,dateLibInstance:s,locale:a,adapterLocale:l,localeText:c}=t;const u=n.useMemo((()=>new i({locale:null!=l?l:a,formats:o,instance:s})),[i,a,l,o,s]),h=n.useMemo((()=>({minDate:u.date("1900-01-01T00:00:00.000"),maxDate:u.date("2099-12-31T00:00:00.000")})),[u]),p=n.useMemo((()=>({utils:u,defaultDates:h,localeText:(0,d.c)({},De,null!=c?c:{})})),[h,u,c]);return(0,Ae.jsx)(Le.Provider,{value:p,children:r})}var Fe=__webpack_require__(33931),ze=__webpack_require__.n(Fe),Be=__webpack_require__(19724),Ue=__webpack_require__.n(Be),We=__webpack_require__(50475),He=__webpack_require__.n(We),qe=__webpack_require__(21916),Xe=__webpack_require__.n(qe);ze().extend(Ue()),ze().extend(He()),ze().extend(Xe());var Ye={normalDateWithWeekday:"ddd, MMM D",normalDate:"D MMMM",shortDate:"MMM D",monthAndDate:"MMMM D",dayOfMonth:"D",year:"YYYY",month:"MMMM",monthShort:"MMM",monthAndYear:"MMMM YYYY",weekday:"dddd",weekdayShort:"ddd",minutes:"mm",hours12h:"hh",hours24h:"HH",seconds:"ss",fullTime:"LT",fullTime12h:"hh:mm A",fullTime24h:"HH:mm",fullDate:"ll",fullDateWithWeekday:"dddd, LL",fullDateTime:"lll",fullDateTime12h:"ll hh:mm A",fullDateTime24h:"ll HH:mm",keyboardDate:"L",keyboardDateTime:"L LT",keyboardDateTime12h:"L hh:mm A",keyboardDateTime24h:"L HH:mm"},Ke=function(e){var t=this,n=void 0===e?{}:e,r=n.locale,i=n.formats,o=n.instance;this.lib="dayjs",this.is12HourCycleInCurrentLocale=function(){var e,n;return/A|a/.test(null===(n=null===(e=t.rawDayJsInstance.Ls[t.locale||"en"])||void 0===e?void 0:e.formats)||void 0===n?void 0:n.LT)},this.getCurrentLocaleCode=function(){return t.locale||"en"},this.getFormatHelperText=function(e){return e.match(/(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?)|./g).map((function(e){var n,r;return"L"===e[0]&&null!==(r=null===(n=t.rawDayJsInstance.Ls[t.locale||"en"])||void 0===n?void 0:n.formats[e])&&void 0!==r?r:e})).join("").replace(/a/gi,"(a|p)m").toLocaleLowerCase()},this.parseISO=function(e){return t.dayjs(e)},this.toISO=function(e){return e.toISOString()},this.parse=function(e,n){return""===e?null:t.dayjs(e,n,t.locale,!0)},this.date=function(e){return null===e?null:t.dayjs(e)},this.toJsDate=function(e){return e.toDate()},this.isValid=function(e){return t.dayjs(e).isValid()},this.isNull=function(e){return null===e},this.getDiff=function(e,t,n){return e.diff(t,n)},this.isAfter=function(e,t){return e.isAfter(t)},this.isBefore=function(e,t){return e.isBefore(t)},this.isAfterDay=function(e,t){return e.isAfter(t,"day")},this.isBeforeDay=function(e,t){return e.isBefore(t,"day")},this.isBeforeYear=function(e,t){return e.isBefore(t,"year")},this.isAfterYear=function(e,t){return e.isAfter(t,"year")},this.startOfDay=function(e){return e.startOf("day")},this.endOfDay=function(e){return e.endOf("day")},this.format=function(e,n){return t.formatByString(e,t.formats[n])},this.formatByString=function(e,n){return t.dayjs(e).format(n)},this.formatNumber=function(e){return e},this.getHours=function(e){return e.hour()},this.addSeconds=function(e,t){return t<0?e.subtract(Math.abs(t),"second"):e.add(t,"second")},this.addMinutes=function(e,t){return t<0?e.subtract(Math.abs(t),"minute"):e.add(t,"minute")},this.addHours=function(e,t){return t<0?e.subtract(Math.abs(t),"hour"):e.add(t,"hour")},this.addDays=function(e,t){return t<0?e.subtract(Math.abs(t),"day"):e.add(t,"day")},this.addWeeks=function(e,t){return t<0?e.subtract(Math.abs(t),"week"):e.add(t,"week")},this.addMonths=function(e,t){return t<0?e.subtract(Math.abs(t),"month"):e.add(t,"month")},this.addYears=function(e,t){return t<0?e.subtract(Math.abs(t),"year"):e.add(t,"year")},this.setMonth=function(e,t){return e.set("month",t)},this.setHours=function(e,t){return e.set("hour",t)},this.getMinutes=function(e){return e.minute()},this.setMinutes=function(e,t){return e.set("minute",t)},this.getSeconds=function(e){return e.second()},this.setSeconds=function(e,t){return e.set("second",t)},this.getMonth=function(e){return e.month()},this.getDate=function(e){return e.date()},this.setDate=function(e,t){return e.set("date",t)},this.getDaysInMonth=function(e){return e.daysInMonth()},this.isSameDay=function(e,t){return e.isSame(t,"day")},this.isSameMonth=function(e,t){return e.isSame(t,"month")},this.isSameYear=function(e,t){return e.isSame(t,"year")},this.isSameHour=function(e,t){return e.isSame(t,"hour")},this.getMeridiemText=function(e){return"am"===e?"AM":"PM"},this.startOfYear=function(e){return e.startOf("year")},this.endOfYear=function(e){return e.endOf("year")},this.startOfMonth=function(e){return e.startOf("month")},this.endOfMonth=function(e){return e.endOf("month")},this.startOfWeek=function(e){return e.startOf("week")},this.endOfWeek=function(e){return e.endOf("week")},this.getNextMonth=function(e){return e.add(1,"month")},this.getPreviousMonth=function(e){return e.subtract(1,"month")},this.getMonthArray=function(e){for(var n=[e.startOf("year")];n.length<12;){var r=n[n.length-1];n.push(t.getNextMonth(r))}return n},this.getYear=function(e){return e.year()},this.setYear=function(e,t){return e.set("year",t)},this.mergeDateAndTime=function(e,t){return e.hour(t.hour()).minute(t.minute()).second(t.second())},this.getWeekdays=function(){var e=t.dayjs().startOf("week");return[0,1,2,3,4,5,6].map((function(n){return t.formatByString(e.add(n,"day"),"dd")}))},this.isEqual=function(e,n){return null===e&&null===n||t.dayjs(e).isSame(n)},this.getWeekArray=function(e){for(var n=t.dayjs(e).startOf("month").startOf("week"),r=t.dayjs(e).endOf("month").endOf("week"),i=0,o=n,s=[];o.isBefore(r);){var a=Math.floor(i/7);s[a]=s[a]||[],s[a].push(o),o=o.add(1,"day"),i+=1}return s},this.getYearRange=function(e,n){for(var r=t.dayjs(e).startOf("year"),i=t.dayjs(n).endOf("year"),o=[],s=r;s.isBefore(i);)o.push(s),s=s.add(1,"year");return o},this.isWithinRange=function(e,t){var n=t[0],r=t[1];return e.isBetween(n,r,null,"[]")},this.rawDayJsInstance=o||ze(),this.dayjs=function(e,t){return t?function(){for(var n=[],r=0;r<arguments.length;r++)n[r]=arguments[r];return e.apply(void 0,n).locale(t)}:e}(this.rawDayJsInstance,r),this.locale=r,this.formats=Object.assign({},Ye,i)};const Ze={YY:"year",YYYY:"year",M:"month",MM:"month",MMM:"month",MMMM:"month",D:"day",DD:"day",H:"hour",HH:"hour",h:"hour",hh:"hour",m:"minute",mm:"minute",s:"second",ss:"second",A:"am-pm",a:"am-pm"};class $e extends Ke{constructor(){super(...arguments),this.formatTokenMap=Ze,this.expandFormat=e=>{var t;const n=null==(t=this.rawDayJsInstance.Ls[this.locale||"en"])?void 0:t.formats;return e.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,((e,t,r)=>{const i=r&&r.toUpperCase();return t||n[r]||n[i].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,((e,t,n)=>t||n.slice(1)))}))},this.getFormatHelperText=e=>this.expandFormat(e).replace(/a/gi,"(a|p)m").toLocaleLowerCase()}}function Je(e,t){return Je=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},Je(e,t)}function Qe(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,Je(e,t)}var et=__webpack_require__(40308),tt=__webpack_require__.n(et);function nt(e){return"/"===e.charAt(0)}function rt(e,t){for(var n=t,r=n+1,i=e.length;r<i;n+=1,r+=1)e[n]=e[r];e.pop()}const it=function(e,t){void 0===t&&(t="");var n,r=e&&e.split("/")||[],i=t&&t.split("/")||[],o=e&&nt(e),s=t&&nt(t),a=o||s;if(e&&nt(e)?i=r:r.length&&(i.pop(),i=i.concat(r)),!i.length)return"/";if(i.length){var l=i[i.length-1];n="."===l||".."===l||""===l}else n=!1;for(var c=0,u=i.length;u>=0;u--){var d=i[u];"."===d?rt(i,u):".."===d?(rt(i,u),c++):c&&(rt(i,u),c--)}if(!a)for(;c--;c)i.unshift("..");!a||""===i[0]||i[0]&&nt(i[0])||i.unshift("");var h=i.join("/");return n&&"/"!==h.substr(-1)&&(h+="/"),h};function ot(e){return e.valueOf?e.valueOf():Object.prototype.valueOf.call(e)}const st=function e(t,n){if(t===n)return!0;if(null==t||null==n)return!1;if(Array.isArray(t))return Array.isArray(n)&&t.length===n.length&&t.every((function(t,r){return e(t,n[r])}));if("object"===typeof t||"object"===typeof n){var r=ot(t),i=ot(n);return r!==t||i!==n?e(r,i):Object.keys(Object.assign({},t,n)).every((function(r){return e(t[r],n[r])}))}return!1};var at=!0,lt="Invariant failed";function ct(e,t){if(!e){if(at)throw new Error(lt);var n="function"===typeof t?t():t,r=n?"".concat(lt,": ").concat(n):lt;throw new Error(r)}}function ut(e){return"/"===e.charAt(0)?e:"/"+e}function dt(e){return"/"===e.charAt(0)?e.substr(1):e}function ht(e,t){return function(e,t){return 0===e.toLowerCase().indexOf(t.toLowerCase())&&-1!=="/?#".indexOf(e.charAt(t.length))}(e,t)?e.substr(t.length):e}function pt(e){return"/"===e.charAt(e.length-1)?e.slice(0,-1):e}function ft(e){var t=e.pathname,n=e.search,r=e.hash,i=t||"/";return n&&"?"!==n&&(i+="?"===n.charAt(0)?n:"?"+n),r&&"#"!==r&&(i+="#"===r.charAt(0)?r:"#"+r),i}function gt(e,t,n,r){var i;"string"===typeof e?(i=function(e){var t=e||"/",n="",r="",i=t.indexOf("#");-1!==i&&(r=t.substr(i),t=t.substr(0,i));var o=t.indexOf("?");return-1!==o&&(n=t.substr(o),t=t.substr(0,o)),{pathname:t,search:"?"===n?"":n,hash:"#"===r?"":r}}(e),i.state=t):(void 0===(i=(0,d.c)({},e)).pathname&&(i.pathname=""),i.search?"?"!==i.search.charAt(0)&&(i.search="?"+i.search):i.search="",i.hash?"#"!==i.hash.charAt(0)&&(i.hash="#"+i.hash):i.hash="",void 0!==t&&void 0===i.state&&(i.state=t));try{i.pathname=decodeURI(i.pathname)}catch(o){throw o instanceof URIError?new URIError('Pathname "'+i.pathname+'" could not be decoded. This is likely caused by an invalid percent-encoding.'):o}return n&&(i.key=n),r?i.pathname?"/"!==i.pathname.charAt(0)&&(i.pathname=it(i.pathname,r.pathname)):i.pathname=r.pathname:i.pathname||(i.pathname="/"),i}function mt(){var e=null;var t=[];return{setPrompt:function(t){return e=t,function(){e===t&&(e=null)}},confirmTransitionTo:function(t,n,r,i){if(null!=e){var o="function"===typeof e?e(t,n):e;"string"===typeof o?"function"===typeof r?r(o,i):i(!0):i(!1!==o)}else i(!0)},appendListener:function(e){var n=!0;function r(){n&&e.apply(void 0,arguments)}return t.push(r),function(){n=!1,t=t.filter((function(e){return e!==r}))}},notifyListeners:function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];t.forEach((function(e){return e.apply(void 0,n)}))}}}var yt=!("undefined"===typeof window||!window.document||!window.document.createElement);function vt(e,t){t(window.confirm(e))}var _t="popstate",bt="hashchange";function xt(){try{return window.history.state||{}}catch(e){return{}}}function St(e){void 0===e&&(e={}),yt||ct(!1);var t=window.history,n=function(){var e=window.navigator.userAgent;return(-1===e.indexOf("Android 2.")&&-1===e.indexOf("Android 4.0")||-1===e.indexOf("Mobile Safari")||-1!==e.indexOf("Chrome")||-1!==e.indexOf("Windows Phone"))&&window.history&&"pushState"in window.history}(),r=!(-1===window.navigator.userAgent.indexOf("Trident")),i=e,o=i.forceRefresh,s=void 0!==o&&o,a=i.getUserConfirmation,l=void 0===a?vt:a,c=i.keyLength,u=void 0===c?6:c,h=e.basename?pt(ut(e.basename)):"";function p(e){var t=e||{},n=t.key,r=t.state,i=window.location,o=i.pathname+i.search+i.hash;return h&&(o=ht(o,h)),gt(o,r,n)}function f(){return Math.random().toString(36).substr(2,u)}var g=mt();function m(e){(0,d.c)(k,e),k.length=t.length,g.notifyListeners(k.location,k.action)}function y(e){(function(e){return void 0===e.state&&-1===navigator.userAgent.indexOf("CriOS")})(e)||b(p(e.state))}function v(){b(p(xt()))}var _=!1;function b(e){if(_)_=!1,m();else{g.confirmTransitionTo(e,"POP",l,(function(t){t?m({action:"POP",location:e}):function(e){var t=k.location,n=S.indexOf(t.key);-1===n&&(n=0);var r=S.indexOf(e.key);-1===r&&(r=0);var i=n-r;i&&(_=!0,E(i))}(e)}))}}var x=p(xt()),S=[x.key];function w(e){return h+ft(e)}function E(e){t.go(e)}var P=0;function C(e){1===(P+=e)&&1===e?(window.addEventListener(_t,y),r&&window.addEventListener(bt,v)):0===P&&(window.removeEventListener(_t,y),r&&window.removeEventListener(bt,v))}var A=!1;var k={length:t.length,action:"POP",location:x,createHref:w,push:function(e,r){var i="PUSH",o=gt(e,r,f(),k.location);g.confirmTransitionTo(o,i,l,(function(e){if(e){var r=w(o),a=o.key,l=o.state;if(n)if(t.pushState({key:a,state:l},null,r),s)window.location.href=r;else{var c=S.indexOf(k.location.key),u=S.slice(0,c+1);u.push(o.key),S=u,m({action:i,location:o})}else window.location.href=r}}))},replace:function(e,r){var i="REPLACE",o=gt(e,r,f(),k.location);g.confirmTransitionTo(o,i,l,(function(e){if(e){var r=w(o),a=o.key,l=o.state;if(n)if(t.replaceState({key:a,state:l},null,r),s)window.location.replace(r);else{var c=S.indexOf(k.location.key);-1!==c&&(S[c]=o.key),m({action:i,location:o})}else window.location.replace(r)}}))},go:E,goBack:function(){E(-1)},goForward:function(){E(1)},block:function(e){void 0===e&&(e=!1);var t=g.setPrompt(e);return A||(C(1),A=!0),function(){return A&&(A=!1,C(-1)),t()}},listen:function(e){var t=g.appendListener(e);return C(1),function(){C(-1),t()}}};return k}var wt="hashchange",Et={hashbang:{encodePath:function(e){return"!"===e.charAt(0)?e:"!/"+dt(e)},decodePath:function(e){return"!"===e.charAt(0)?e.substr(1):e}},noslash:{encodePath:dt,decodePath:ut},slash:{encodePath:ut,decodePath:ut}};function Pt(e){var t=e.indexOf("#");return-1===t?e:e.slice(0,t)}function Ct(){var e=window.location.href,t=e.indexOf("#");return-1===t?"":e.substring(t+1)}function At(e){window.location.replace(Pt(window.location.href)+"#"+e)}function kt(e){void 0===e&&(e={}),yt||ct(!1);var t=window.history,n=(window.navigator.userAgent.indexOf("Firefox"),e),r=n.getUserConfirmation,i=void 0===r?vt:r,o=n.hashType,s=void 0===o?"slash":o,a=e.basename?pt(ut(e.basename)):"",l=Et[s],c=l.encodePath,u=l.decodePath;function h(){var e=u(Ct());return a&&(e=ht(e,a)),gt(e)}var p=mt();function f(e){(0,d.c)(C,e),C.length=t.length,p.notifyListeners(C.location,C.action)}var g=!1,m=null;function y(){var e=Ct(),t=c(e);if(e!==t)At(t);else{var n=h(),r=C.location;if(!g&&function(e,t){return e.pathname===t.pathname&&e.search===t.search&&e.hash===t.hash}(r,n))return;if(m===ft(n))return;m=null,function(e){if(g)g=!1,f();else{var t="POP";p.confirmTransitionTo(e,t,i,(function(n){n?f({action:t,location:e}):function(e){var t=C.location,n=x.lastIndexOf(ft(t));-1===n&&(n=0);var r=x.lastIndexOf(ft(e));-1===r&&(r=0);var i=n-r;i&&(g=!0,S(i))}(e)}))}}(n)}}var v=Ct(),_=c(v);v!==_&&At(_);var b=h(),x=[ft(b)];function S(e){t.go(e)}var w=0;function E(e){1===(w+=e)&&1===e?window.addEventListener(wt,y):0===w&&window.removeEventListener(wt,y)}var P=!1;var C={length:t.length,action:"POP",location:b,createHref:function(e){var t=document.querySelector("base"),n="";return t&&t.getAttribute("href")&&(n=Pt(window.location.href)),n+"#"+c(a+ft(e))},push:function(e,t){var n="PUSH",r=gt(e,void 0,void 0,C.location);p.confirmTransitionTo(r,n,i,(function(e){if(e){var t=ft(r),i=c(a+t);if(Ct()!==i){m=t,function(e){window.location.hash=e}(i);var o=x.lastIndexOf(ft(C.location)),s=x.slice(0,o+1);s.push(t),x=s,f({action:n,location:r})}else f()}}))},replace:function(e,t){var n="REPLACE",r=gt(e,void 0,void 0,C.location);p.confirmTransitionTo(r,n,i,(function(e){if(e){var t=ft(r),i=c(a+t);Ct()!==i&&(m=t,At(i));var o=x.indexOf(ft(C.location));-1!==o&&(x[o]=t),f({action:n,location:r})}}))},go:S,goBack:function(){S(-1)},goForward:function(){S(1)},block:function(e){void 0===e&&(e=!1);var t=p.setPrompt(e);return P||(E(1),P=!0),function(){return P&&(P=!1,E(-1)),t()}},listen:function(e){var t=p.appendListener(e);return E(1),function(){E(-1),t()}}};return C}function jt(e,t,n){return Math.min(Math.max(e,t),n)}var It=__webpack_require__(4128),Gt=__webpack_require__.n(It),Tt=(__webpack_require__(83404),__webpack_require__(95656)),Mt=1073741823,Ot="undefined"!==typeof globalThis?globalThis:"undefined"!==typeof window?window:"undefined"!==typeof __webpack_require__.g?__webpack_require__.g:{};var Rt=n.createContext||function(e,t){var r,i,o="__create-react-context-"+function(){var e="__global_unique_id__";return Ot[e]=(Ot[e]||0)+1}()+"__",s=function(e){function n(){for(var t,n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];return(t=e.call.apply(e,[this].concat(r))||this).emitter=function(e){var t=[];return{on:function(e){t.push(e)},off:function(e){t=t.filter((function(t){return t!==e}))},get:function(){return e},set:function(n,r){e=n,t.forEach((function(t){return t(e,r)}))}}}(t.props.value),t}Qe(n,e);var r=n.prototype;return r.getChildContext=function(){var e;return(e={})[o]=this.emitter,e},r.componentWillReceiveProps=function(e){if(this.props.value!==e.value){var n,r=this.props.value,i=e.value;!function(e,t){return e===t?0!==e||1/e===1/t:e!==e&&t!==t}(r,i)?(n="function"===typeof t?t(r,i):Mt,0!==(n|=0)&&this.emitter.set(e.value,n)):n=0}},r.render=function(){return this.props.children},n}(n.Component);s.childContextTypes=((r={})[o]=tt().object.isRequired,r);var a=function(t){function n(){for(var e,n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];return(e=t.call.apply(t,[this].concat(r))||this).observedBits=void 0,e.state={value:e.getValue()},e.onUpdate=function(t,n){0!==((0|e.observedBits)&n)&&e.setState({value:e.getValue()})},e}Qe(n,t);var r=n.prototype;return r.componentWillReceiveProps=function(e){var t=e.observedBits;this.observedBits=void 0===t||null===t?Mt:t},r.componentDidMount=function(){this.context[o]&&this.context[o].on(this.onUpdate);var e=this.props.observedBits;this.observedBits=void 0===e||null===e?Mt:e},r.componentWillUnmount=function(){this.context[o]&&this.context[o].off(this.onUpdate)},r.getValue=function(){return this.context[o]?this.context[o].get():e},r.render=function(){return(e=this.props.children,Array.isArray(e)?e[0]:e)(this.state.value);var e},n}(n.Component);return a.contextTypes=((i={})[o]=tt().object,i),{Provider:s,Consumer:a}},Dt=function(e){var t=Rt();return t.displayName=e,t},Nt=Dt("Router-History"),Lt=Dt("Router"),Vt=function(e){function t(t){var n;return(n=e.call(this,t)||this).state={location:t.history.location},n._isMounted=!1,n._pendingLocation=null,t.staticContext||(n.unlisten=t.history.listen((function(e){n._pendingLocation=e}))),n}Qe(t,e),t.computeRootMatch=function(e){return{path:"/",url:"/",params:{},isExact:"/"===e}};var r=t.prototype;return r.componentDidMount=function(){var e=this;this._isMounted=!0,this.unlisten&&this.unlisten(),this.props.staticContext||(this.unlisten=this.props.history.listen((function(t){e._isMounted&&e.setState({location:t})}))),this._pendingLocation&&this.setState({location:this._pendingLocation})},r.componentWillUnmount=function(){this.unlisten&&(this.unlisten(),this._isMounted=!1,this._pendingLocation=null)},r.render=function(){return n.createElement(Lt.Provider,{value:{history:this.props.history,location:this.state.location,match:t.computeRootMatch(this.state.location.pathname),staticContext:this.props.staticContext}},n.createElement(Nt.Provider,{children:this.props.children||null,value:this.props.history}))},t}(n.Component);n.Component;var Ft=function(e){function t(){return e.apply(this,arguments)||this}Qe(t,e);var n=t.prototype;return n.componentDidMount=function(){this.props.onMount&&this.props.onMount.call(this,this)},n.componentDidUpdate=function(e){this.props.onUpdate&&this.props.onUpdate.call(this,this,e)},n.componentWillUnmount=function(){this.props.onUnmount&&this.props.onUnmount.call(this,this)},n.render=function(){return null},t}(n.Component);var zt={},Bt=1e4,Ut=0;function Wt(e,t){return void 0===e&&(e="/"),void 0===t&&(t={}),"/"===e?e:function(e){if(zt[e])return zt[e];var t=Gt().compile(e);return Ut<Bt&&(zt[e]=t,Ut++),t}(e)(t,{pretty:!0})}function Ht(e){var t=e.computedMatch,r=e.to,i=e.push,o=void 0!==i&&i;return n.createElement(Lt.Consumer,null,(function(e){e||ct(!1);var i=e.history,s=e.staticContext,a=o?i.push:i.replace,l=gt(t?"string"===typeof r?Wt(r,t.params):(0,d.c)({},r,{pathname:Wt(r.pathname,t.params)}):r);return s?(a(l),null):n.createElement(Ft,{onMount:function(){a(l)},onUpdate:function(e,t){var n=gt(t.to);(function(e,t){return e.pathname===t.pathname&&e.search===t.search&&e.hash===t.hash&&e.key===t.key&&st(e.state,t.state)})(n,(0,d.c)({},l,{key:n.key}))||a(l)},to:r})}))}var qt={},Xt=1e4,Yt=0;function Kt(e,t){void 0===t&&(t={}),("string"===typeof t||Array.isArray(t))&&(t={path:t});var n=t,r=n.path,i=n.exact,o=void 0!==i&&i,s=n.strict,a=void 0!==s&&s,l=n.sensitive,c=void 0!==l&&l;return[].concat(r).reduce((function(t,n){if(!n&&""!==n)return null;if(t)return t;var r=function(e,t){var n=""+t.end+t.strict+t.sensitive,r=qt[n]||(qt[n]={});if(r[e])return r[e];var i=[],o={regexp:Gt()(e,i,t),keys:i};return Yt<Xt&&(r[e]=o,Yt++),o}(n,{end:o,strict:a,sensitive:c}),i=r.regexp,s=r.keys,l=i.exec(e);if(!l)return null;var u=l[0],d=l.slice(1),h=e===u;return o&&!h?null:{path:n,url:"/"===n&&""===u?"/":u,isExact:h,params:s.reduce((function(e,t,n){return e[t.name]=d[n],e}),{})}}),null)}var Zt=function(e){function t(){return e.apply(this,arguments)||this}return Qe(t,e),t.prototype.render=function(){var e=this;return n.createElement(Lt.Consumer,null,(function(t){t||ct(!1);var r=e.props.location||t.location,i=e.props.computedMatch?e.props.computedMatch:e.props.path?Kt(r.pathname,e.props):t.match,o=(0,d.c)({},t,{location:r,match:i}),s=e.props,a=s.children,l=s.component,c=s.render;return Array.isArray(a)&&function(e){return 0===n.Children.count(e)}(a)&&(a=null),n.createElement(Lt.Provider,{value:o},o.match?a?"function"===typeof a?a(o):a:l?n.createElement(l,o):c?c(o):null:"function"===typeof a?a(o):null)}))},t}(n.Component);function $t(e){return"/"===e.charAt(0)?e:"/"+e}function Jt(e,t){if(!e)return t;var n=$t(e);return 0!==t.pathname.indexOf(n)?t:(0,d.c)({},t,{pathname:t.pathname.substr(n.length)})}function Qt(e){return"string"===typeof e?e:ft(e)}function en(e){return function(){ct(!1)}}function tn(){}n.Component;var nn=function(e){function t(){return e.apply(this,arguments)||this}return Qe(t,e),t.prototype.render=function(){var e=this;return n.createElement(Lt.Consumer,null,(function(t){t||ct(!1);var r,i,o=e.props.location||t.location;return n.Children.forEach(e.props.children,(function(e){if(null==i&&n.isValidElement(e)){r=e;var s=e.props.path||e.props.from;i=s?Kt(o.pathname,(0,d.c)({},e.props,{path:s})):t.match}})),i?n.cloneElement(r,{location:o,computedMatch:i}):null}))},t}(n.Component);var rn=n.useContext;function on(){return rn(Nt)}function sn(){return rn(Lt).location}function an(){var e=rn(Lt).match;return e?e.params:{}}var ln=function(e){function t(){for(var t,n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];return(t=e.call.apply(e,[this].concat(r))||this).history=St(t.props),t}return Qe(t,e),t.prototype.render=function(){return n.createElement(Vt,{history:this.history,children:this.props.children})},t}(n.Component);n.Component;var cn=function(e,t){return"function"===typeof e?e(t):e},un=function(e,t){return"string"===typeof e?gt(e,null,null,t):e},dn=function(e){return e},hn=n.forwardRef;"undefined"===typeof hn&&(hn=dn);var pn=hn((function(e,t){var r=e.innerRef,i=e.navigate,o=e.onClick,s=(0,Tt.c)(e,["innerRef","navigate","onClick"]),a=s.target,l=(0,d.c)({},s,{onClick:function(e){try{o&&o(e)}catch(t){throw e.preventDefault(),t}e.defaultPrevented||0!==e.button||a&&"_self"!==a||function(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}(e)||(e.preventDefault(),i())}});return l.ref=dn!==hn&&t||r,n.createElement("a",l)}));var fn=hn((function(e,t){var r=e.component,i=void 0===r?pn:r,o=e.replace,s=e.to,a=e.innerRef,l=(0,Tt.c)(e,["component","replace","to","innerRef"]);return n.createElement(Lt.Consumer,null,(function(e){e||ct(!1);var r=e.history,c=un(cn(s,e.location),e.location),u=c?r.createHref(c):"",h=(0,d.c)({},l,{href:u,navigate:function(){var t=cn(s,e.location),n=ft(e.location)===ft(un(t));(o||n?r.replace:r.push)(t)}});return dn!==hn?h.ref=t||a:h.innerRef=a,n.createElement(i,h)}))})),gn=function(e){return e},mn=n.forwardRef;"undefined"===typeof mn&&(mn=gn);mn((function(e,t){var r=e["aria-current"],i=void 0===r?"page":r,o=e.activeClassName,s=void 0===o?"active":o,a=e.activeStyle,l=e.className,c=e.exact,u=e.isActive,h=e.location,p=e.sensitive,f=e.strict,g=e.style,m=e.to,y=e.innerRef,v=(0,Tt.c)(e,["aria-current","activeClassName","activeStyle","className","exact","isActive","location","sensitive","strict","style","to","innerRef"]);return n.createElement(Lt.Consumer,null,(function(e){e||ct(!1);var r=h||e.location,o=un(cn(m,r),r),_=o.pathname,b=_&&_.replace(/([.+*?=^!:${}()[\]|/\\])/g,"\\$1"),x=b?Kt(r.pathname,{path:b,exact:c,sensitive:p,strict:f}):null,S=!!(u?u(x,r):x),w="function"===typeof l?l(S):l,E="function"===typeof g?g(S):g;S&&(w=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return t.filter((function(e){return e})).join(" ")}(w,s),E=(0,d.c)({},E,a));var P=(0,d.c)({"aria-current":S&&i||null,className:w,style:E,to:o},v);return gn!==mn?P.ref=t||y:P.innerRef=y,n.createElement(fn,P)}))}));const yn=()=>(0,Ae.jsx)("div",{style:{padding:20},children:"This page could not be retrieved please check URL"});function vn(e){for(var t=arguments.length,n=Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];throw Error("[Immer] minified error nr: "+e+(n.length?" "+n.map((function(e){return"'"+e+"'"})).join(","):"")+". Find the full error at: https://bit.ly/3cXEKWf")}function _n(e){return!!e&&!!e[lr]}function bn(e){var t;return!!e&&(function(e){if(!e||"object"!=typeof e)return!1;var t=Object.getPrototypeOf(e);if(null===t)return!0;var n=Object.hasOwnProperty.call(t,"constructor")&&t.constructor;return n===Object||"function"==typeof n&&Function.toString.call(n)===cr}(e)||Array.isArray(e)||!!e[ar]||!!(null===(t=e.constructor)||void 0===t?void 0:t[ar])||An(e)||kn(e))}function xn(e,t,n){void 0===n&&(n=!1),0===Sn(e)?(n?Object.keys:ur)(e).forEach((function(r){n&&"symbol"==typeof r||t(r,e[r],e)})):e.forEach((function(n,r){return t(r,n,e)}))}function Sn(e){var t=e[lr];return t?t.i>3?t.i-4:t.i:Array.isArray(e)?1:An(e)?2:kn(e)?3:0}function wn(e,t){return 2===Sn(e)?e.has(t):Object.prototype.hasOwnProperty.call(e,t)}function En(e,t){return 2===Sn(e)?e.get(t):e[t]}function Pn(e,t,n){var r=Sn(e);2===r?e.set(t,n):3===r?(e.delete(t),e.add(n)):e[t]=n}function Cn(e,t){return e===t?0!==e||1/e==1/t:e!=e&&t!=t}function An(e){return rr&&e instanceof Map}function kn(e){return ir&&e instanceof Set}function jn(e){return e.o||e.t}function In(e){if(Array.isArray(e))return Array.prototype.slice.call(e);var t=dr(e);delete t[lr];for(var n=ur(t),r=0;r<n.length;r++){var i=n[r],o=t[i];!1===o.writable&&(o.writable=!0,o.configurable=!0),(o.get||o.set)&&(t[i]={configurable:!0,writable:!0,enumerable:o.enumerable,value:e[i]})}return Object.create(Object.getPrototypeOf(e),t)}function Gn(e,t){return void 0===t&&(t=!1),Mn(e)||_n(e)||!bn(e)||(Sn(e)>1&&(e.set=e.add=e.clear=e.delete=Tn),Object.freeze(e),t&&xn(e,(function(e,t){return Gn(t,!0)}),!0)),e}function Tn(){vn(2)}function Mn(e){return null==e||"object"!=typeof e||Object.isFrozen(e)}function On(e){var t=hr[e];return t||vn(18,e),t}function Rn(e,t){hr[e]||(hr[e]=t)}function Dn(){return tr}function Nn(e,t){t&&(On("Patches"),e.u=[],e.s=[],e.v=t)}function Ln(e){Vn(e),e.p.forEach(zn),e.p=null}function Vn(e){e===tr&&(tr=e.l)}function Fn(e){return tr={p:[],l:tr,h:e,m:!0,_:0}}function zn(e){var t=e[lr];0===t.i||1===t.i?t.j():t.O=!0}function Bn(e,t){t._=t.p.length;var n=t.p[0],r=void 0!==e&&e!==n;return t.h.g||On("ES5").S(t,e,r),r?(n[lr].P&&(Ln(t),vn(4)),bn(e)&&(e=Un(t,e),t.l||Hn(t,e)),t.u&&On("Patches").M(n[lr].t,e,t.u,t.s)):e=Un(t,n,[]),Ln(t),t.u&&t.v(t.u,t.s),e!==sr?e:void 0}function Un(e,t,n){if(Mn(t))return t;var r=t[lr];if(!r)return xn(t,(function(i,o){return Wn(e,r,t,i,o,n)}),!0),t;if(r.A!==e)return t;if(!r.P)return Hn(e,r.t,!0),r.t;if(!r.I){r.I=!0,r.A._--;var i=4===r.i||5===r.i?r.o=In(r.k):r.o;xn(3===r.i?new Set(i):i,(function(t,o){return Wn(e,r,i,t,o,n)})),Hn(e,i,!1),n&&e.u&&On("Patches").R(r,n,e.u,e.s)}return r.o}function Wn(e,t,n,r,i,o){if(_n(i)){var s=Un(e,i,o&&t&&3!==t.i&&!wn(t.D,r)?o.concat(r):void 0);if(Pn(n,r,s),!_n(s))return;e.m=!1}if(bn(i)&&!Mn(i)){if(!e.h.F&&e._<1)return;Un(e,i),t&&t.A.l||Hn(e,i)}}function Hn(e,t,n){void 0===n&&(n=!1),e.h.F&&e.m&&Gn(t,n)}function qn(e,t){var n=e[lr];return(n?jn(n):e)[t]}function Xn(e,t){if(t in e)for(var n=Object.getPrototypeOf(e);n;){var r=Object.getOwnPropertyDescriptor(n,t);if(r)return r;n=Object.getPrototypeOf(n)}}function Yn(e){e.P||(e.P=!0,e.l&&Yn(e.l))}function Kn(e){e.o||(e.o=In(e.t))}function Zn(e,t,n){var r=An(t)?On("MapSet").N(t,n):kn(t)?On("MapSet").T(t,n):e.g?function(e,t){var n=Array.isArray(e),r={i:n?1:0,A:t?t.A:Dn(),P:!1,I:!1,D:{},l:t,t:e,k:null,o:null,j:null,C:!1},i=r,o=pr;n&&(i=[r],o=fr);var s=Proxy.revocable(i,o),a=s.revoke,l=s.proxy;return r.k=l,r.j=a,l}(t,n):On("ES5").J(t,n);return(n?n.A:Dn()).p.push(r),r}function $n(e){return _n(e)||vn(22,e),function e(t){if(!bn(t))return t;var n,r=t[lr],i=Sn(t);if(r){if(!r.P&&(r.i<4||!On("ES5").K(r)))return r.t;r.I=!0,n=Jn(t,i),r.I=!1}else n=Jn(t,i);return xn(n,(function(t,i){r&&En(r.t,t)===i||Pn(n,t,e(i))})),3===i?new Set(n):n}(e)}function Jn(e,t){switch(t){case 2:return new Map(e);case 3:return Array.from(e)}return In(e)}function Qn(){function e(e,t){var n=i[e];return n?n.enumerable=t:i[e]=n={configurable:!0,enumerable:t,get:function(){var t=this[lr];return pr.get(t,e)},set:function(t){var n=this[lr];pr.set(n,e,t)}},n}function t(e){for(var t=e.length-1;t>=0;t--){var i=e[t][lr];if(!i.P)switch(i.i){case 5:r(i)&&Yn(i);break;case 4:n(i)&&Yn(i)}}}function n(e){for(var t=e.t,n=e.k,r=ur(n),i=r.length-1;i>=0;i--){var o=r[i];if(o!==lr){var s=t[o];if(void 0===s&&!wn(t,o))return!0;var a=n[o],l=a&&a[lr];if(l?l.t!==s:!Cn(a,s))return!0}}var c=!!t[lr];return r.length!==ur(t).length+(c?0:1)}function r(e){var t=e.k;if(t.length!==e.t.length)return!0;var n=Object.getOwnPropertyDescriptor(t,t.length-1);if(n&&!n.get)return!0;for(var r=0;r<t.length;r++)if(!t.hasOwnProperty(r))return!0;return!1}var i={};Rn("ES5",{J:function(t,n){var r=Array.isArray(t),i=function(t,n){if(t){for(var r=Array(n.length),i=0;i<n.length;i++)Object.defineProperty(r,""+i,e(i,!0));return r}var o=dr(n);delete o[lr];for(var s=ur(o),a=0;a<s.length;a++){var l=s[a];o[l]=e(l,t||!!o[l].enumerable)}return Object.create(Object.getPrototypeOf(n),o)}(r,t),o={i:r?5:4,A:n?n.A:Dn(),P:!1,I:!1,D:{},l:n,t:t,k:i,o:null,O:!1,C:!1};return Object.defineProperty(i,lr,{value:o,writable:!0}),i},S:function(e,n,i){i?_n(n)&&n[lr].A===e&&t(e.p):(e.u&&function e(t){if(t&&"object"==typeof t){var n=t[lr];if(n){var i=n.t,o=n.k,s=n.D,a=n.i;if(4===a)xn(o,(function(t){t!==lr&&(void 0!==i[t]||wn(i,t)?s[t]||e(o[t]):(s[t]=!0,Yn(n)))})),xn(i,(function(e){void 0!==o[e]||wn(o,e)||(s[e]=!1,Yn(n))}));else if(5===a){if(r(n)&&(Yn(n),s.length=!0),o.length<i.length)for(var l=o.length;l<i.length;l++)s[l]=!1;else for(var c=i.length;c<o.length;c++)s[c]=!0;for(var u=Math.min(o.length,i.length),d=0;d<u;d++)o.hasOwnProperty(d)||(s[d]=!0),void 0===s[d]&&e(o[d])}}}}(e.p[0]),t(e.p))},K:function(e){return 4===e.i?n(e):r(e)}})}var er,tr,nr="undefined"!=typeof Symbol&&"symbol"==typeof Symbol("x"),rr="undefined"!=typeof Map,ir="undefined"!=typeof Set,or="undefined"!=typeof Proxy&&void 0!==Proxy.revocable&&"undefined"!=typeof Reflect,sr=nr?Symbol.for("immer-nothing"):((er={})["immer-nothing"]=!0,er),ar=nr?Symbol.for("immer-draftable"):"__$immer_draftable",lr=nr?Symbol.for("immer-state"):"__$immer_state",cr=("undefined"!=typeof Symbol&&Symbol.iterator,""+Object.prototype.constructor),ur="undefined"!=typeof Reflect&&Reflect.ownKeys?Reflect.ownKeys:void 0!==Object.getOwnPropertySymbols?function(e){return Object.getOwnPropertyNames(e).concat(Object.getOwnPropertySymbols(e))}:Object.getOwnPropertyNames,dr=Object.getOwnPropertyDescriptors||function(e){var t={};return ur(e).forEach((function(n){t[n]=Object.getOwnPropertyDescriptor(e,n)})),t},hr={},pr={get:function(e,t){if(t===lr)return e;var n=jn(e);if(!wn(n,t))return function(e,t,n){var r,i=Xn(t,n);return i?"value"in i?i.value:null===(r=i.get)||void 0===r?void 0:r.call(e.k):void 0}(e,n,t);var r=n[t];return e.I||!bn(r)?r:r===qn(e.t,t)?(Kn(e),e.o[t]=Zn(e.A.h,r,e)):r},has:function(e,t){return t in jn(e)},ownKeys:function(e){return Reflect.ownKeys(jn(e))},set:function(e,t,n){var r=Xn(jn(e),t);if(null==r?void 0:r.set)return r.set.call(e.k,n),!0;if(!e.P){var i=qn(jn(e),t),o=null==i?void 0:i[lr];if(o&&o.t===n)return e.o[t]=n,e.D[t]=!1,!0;if(Cn(n,i)&&(void 0!==n||wn(e.t,t)))return!0;Kn(e),Yn(e)}return e.o[t]===n&&"number"!=typeof n&&(void 0!==n||t in e.o)||(e.o[t]=n,e.D[t]=!0,!0)},deleteProperty:function(e,t){return void 0!==qn(e.t,t)||t in e.t?(e.D[t]=!1,Kn(e),Yn(e)):delete e.D[t],e.o&&delete e.o[t],!0},getOwnPropertyDescriptor:function(e,t){var n=jn(e),r=Reflect.getOwnPropertyDescriptor(n,t);return r?{writable:!0,configurable:1!==e.i||"length"!==t,enumerable:r.enumerable,value:n[t]}:r},defineProperty:function(){vn(11)},getPrototypeOf:function(e){return Object.getPrototypeOf(e.t)},setPrototypeOf:function(){vn(12)}},fr={};xn(pr,(function(e,t){fr[e]=function(){return arguments[0]=arguments[0][0],t.apply(this,arguments)}})),fr.deleteProperty=function(e,t){return fr.set.call(this,e,t,void 0)},fr.set=function(e,t,n){return pr.set.call(this,e[0],t,n,e[0])};var gr=function(){function e(e){var t=this;this.g=or,this.F=!0,this.produce=function(e,n,r){if("function"==typeof e&&"function"!=typeof n){var i=n;n=e;var o=t;return function(e){var t=this;void 0===e&&(e=i);for(var r=arguments.length,s=Array(r>1?r-1:0),a=1;a<r;a++)s[a-1]=arguments[a];return o.produce(e,(function(e){var r;return(r=n).call.apply(r,[t,e].concat(s))}))}}var s;if("function"!=typeof n&&vn(6),void 0!==r&&"function"!=typeof r&&vn(7),bn(e)){var a=Fn(t),l=Zn(t,e,void 0),c=!0;try{s=n(l),c=!1}finally{c?Ln(a):Vn(a)}return"undefined"!=typeof Promise&&s instanceof Promise?s.then((function(e){return Nn(a,r),Bn(e,a)}),(function(e){throw Ln(a),e})):(Nn(a,r),Bn(s,a))}if(!e||"object"!=typeof e){if(void 0===(s=n(e))&&(s=e),s===sr&&(s=void 0),t.F&&Gn(s,!0),r){var u=[],d=[];On("Patches").M(e,s,u,d),r(u,d)}return s}vn(21,e)},this.produceWithPatches=function(e,n){if("function"==typeof e)return function(n){for(var r=arguments.length,i=Array(r>1?r-1:0),o=1;o<r;o++)i[o-1]=arguments[o];return t.produceWithPatches(n,(function(t){return e.apply(void 0,[t].concat(i))}))};var r,i,o=t.produce(e,n,(function(e,t){r=e,i=t}));return"undefined"!=typeof Promise&&o instanceof Promise?o.then((function(e){return[e,r,i]})):[o,r,i]},"boolean"==typeof(null==e?void 0:e.useProxies)&&this.setUseProxies(e.useProxies),"boolean"==typeof(null==e?void 0:e.autoFreeze)&&this.setAutoFreeze(e.autoFreeze)}var t=e.prototype;return t.createDraft=function(e){bn(e)||vn(8),_n(e)&&(e=$n(e));var t=Fn(this),n=Zn(this,e,void 0);return n[lr].C=!0,Vn(t),n},t.finishDraft=function(e,t){var n=(e&&e[lr]).A;return Nn(n,t),Bn(void 0,n)},t.setAutoFreeze=function(e){this.F=e},t.setUseProxies=function(e){e&&!or&&vn(20),this.g=e},t.applyPatches=function(e,t){var n;for(n=t.length-1;n>=0;n--){var r=t[n];if(0===r.path.length&&"replace"===r.op){e=r.value;break}}n>-1&&(t=t.slice(n+1));var i=On("Patches").$;return _n(e)?i(e,t):this.produce(e,(function(e){return i(e,t)}))},e}(),mr=new gr,yr=mr.produce;mr.produceWithPatches.bind(mr),mr.setAutoFreeze.bind(mr),mr.setUseProxies.bind(mr),mr.applyPatches.bind(mr),mr.createDraft.bind(mr),mr.finishDraft.bind(mr);const vr=yr;function _r(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function br(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?_r(Object(n),!0).forEach((function(t){C(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):_r(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function xr(e){return"Minified Redux error #"+e+"; visit https://redux.js.org/Errors?code="+e+" for the full message or use the non-minified dev environment for full errors. "}var Sr="function"===typeof Symbol&&Symbol.observable||"@@observable",wr=function(){return Math.random().toString(36).substring(7).split("").join(".")},Er={INIT:"@@redux/INIT"+wr(),REPLACE:"@@redux/REPLACE"+wr(),PROBE_UNKNOWN_ACTION:function(){return"@@redux/PROBE_UNKNOWN_ACTION"+wr()}};function Pr(e){if("object"!==typeof e||null===e)return!1;for(var t=e;null!==Object.getPrototypeOf(t);)t=Object.getPrototypeOf(t);return Object.getPrototypeOf(e)===t}function Cr(e,t,n){var r;if("function"===typeof t&&"function"===typeof n||"function"===typeof n&&"function"===typeof arguments[3])throw new Error(xr(0));if("function"===typeof t&&"undefined"===typeof n&&(n=t,t=void 0),"undefined"!==typeof n){if("function"!==typeof n)throw new Error(xr(1));return n(Cr)(e,t)}if("function"!==typeof e)throw new Error(xr(2));var i=e,o=t,s=[],a=s,l=!1;function c(){a===s&&(a=s.slice())}function u(){if(l)throw new Error(xr(3));return o}function d(e){if("function"!==typeof e)throw new Error(xr(4));if(l)throw new Error(xr(5));var t=!0;return c(),a.push(e),function(){if(t){if(l)throw new Error(xr(6));t=!1,c();var n=a.indexOf(e);a.splice(n,1),s=null}}}function h(e){if(!Pr(e))throw new Error(xr(7));if("undefined"===typeof e.type)throw new Error(xr(8));if(l)throw new Error(xr(9));try{l=!0,o=i(o,e)}finally{l=!1}for(var t=s=a,n=0;n<t.length;n++){(0,t[n])()}return e}return h({type:Er.INIT}),(r={dispatch:h,subscribe:d,getState:u,replaceReducer:function(e){if("function"!==typeof e)throw new Error(xr(10));i=e,h({type:Er.REPLACE})}})[Sr]=function(){var e,t=d;return(e={subscribe:function(e){if("object"!==typeof e||null===e)throw new Error(xr(11));function n(){e.next&&e.next(u())}return n(),{unsubscribe:t(n)}}})[Sr]=function(){return this},e},r}function Ar(e){for(var t=Object.keys(e),n={},r=0;r<t.length;r++){var i=t[r];0,"function"===typeof e[i]&&(n[i]=e[i])}var o,s=Object.keys(n);try{!function(e){Object.keys(e).forEach((function(t){var n=e[t];if("undefined"===typeof n(void 0,{type:Er.INIT}))throw new Error(xr(12));if("undefined"===typeof n(void 0,{type:Er.PROBE_UNKNOWN_ACTION()}))throw new Error(xr(13))}))}(n)}catch(a){o=a}return function(e,t){if(void 0===e&&(e={}),o)throw o;for(var r=!1,i={},a=0;a<s.length;a++){var l=s[a],c=n[l],u=e[l],d=c(u,t);if("undefined"===typeof d){t&&t.type;throw new Error(xr(14))}i[l]=d,r=r||d!==u}return(r=r||s.length!==Object.keys(e).length)?i:e}}function kr(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return 0===t.length?function(e){return e}:1===t.length?t[0]:t.reduce((function(e,t){return function(){return e(t.apply(void 0,arguments))}}))}function jr(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return function(e){return function(){var n=e.apply(void 0,arguments),r=function(){throw new Error(xr(15))},i={getState:n.getState,dispatch:function(){return r.apply(void 0,arguments)}},o=t.map((function(e){return e(i)}));return r=kr.apply(void 0,o)(n.dispatch),br(br({},n),{},{dispatch:r})}}}function Ir(e){return function(t){var n=t.dispatch,r=t.getState;return function(t){return function(i){return"function"===typeof i?i(n,r,e):t(i)}}}}var Gr=Ir();Gr.withExtraArgument=Ir;const Tr=Gr;var Mr=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if("function"!==typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),Or=function(e,t){var n,r,i,o,s={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:a(0),throw:a(1),return:a(2)},"function"===typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function a(o){return function(a){return function(o){if(n)throw new TypeError("Generator is already executing.");for(;s;)try{if(n=1,r&&(i=2&o[0]?r.return:o[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,o[1])).done)return i;switch(r=0,i&&(o=[2&o[0],i.value]),o[0]){case 0:case 1:i=o;break;case 4:return s.label++,{value:o[1],done:!1};case 5:s.label++,r=o[1],o=[0];continue;case 7:o=s.ops.pop(),s.trys.pop();continue;default:if(!(i=(i=s.trys).length>0&&i[i.length-1])&&(6===o[0]||2===o[0])){s=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]<i[3])){s.label=o[1];break}if(6===o[0]&&s.label<i[1]){s.label=i[1],i=o;break}if(i&&s.label<i[2]){s.label=i[2],s.ops.push(o);break}i[2]&&s.ops.pop(),s.trys.pop();continue}o=t.call(e,s)}catch(a){o=[6,a],r=0}finally{n=i=0}if(5&o[0])throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}([o,a])}}},Rr=function(e,t){for(var n=0,r=t.length,i=e.length;n<r;n++,i++)e[i]=t[n];return e},Dr=Object.defineProperty,Nr=Object.defineProperties,Lr=Object.getOwnPropertyDescriptors,Vr=Object.getOwnPropertySymbols,Fr=Object.prototype.hasOwnProperty,zr=Object.prototype.propertyIsEnumerable,Br=function(e,t,n){return t in e?Dr(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n},Ur=function(e,t){for(var n in t||(t={}))Fr.call(t,n)&&Br(e,n,t[n]);if(Vr)for(var r=0,i=Vr(t);r<i.length;r++){n=i[r];zr.call(t,n)&&Br(e,n,t[n])}return e},Wr=function(e,t){return Nr(e,Lr(t))},Hr=function(e,t,n){return new Promise((function(r,i){var o=function(e){try{a(n.next(e))}catch(t){i(t)}},s=function(e){try{a(n.throw(e))}catch(t){i(t)}},a=function(e){return e.done?r(e.value):Promise.resolve(e.value).then(o,s)};a((n=n.apply(e,t)).next())}))},qr="undefined"!==typeof window&&window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__?window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__:function(){if(0!==arguments.length)return"object"===typeof arguments[0]?kr:kr.apply(null,arguments)};"undefined"!==typeof window&&window.__REDUX_DEVTOOLS_EXTENSION__&&window.__REDUX_DEVTOOLS_EXTENSION__;function Xr(e){if("object"!==typeof e||null===e)return!1;var t=Object.getPrototypeOf(e);if(null===t)return!0;for(var n=t;null!==Object.getPrototypeOf(n);)n=Object.getPrototypeOf(n);return t===n}var Yr=function(e){function t(){for(var n=[],r=0;r<arguments.length;r++)n[r]=arguments[r];var i=e.apply(this,n)||this;return Object.setPrototypeOf(i,t.prototype),i}return Mr(t,e),Object.defineProperty(t,Symbol.species,{get:function(){return t},enumerable:!1,configurable:!0}),t.prototype.concat=function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return e.prototype.concat.apply(this,t)},t.prototype.prepend=function(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];return 1===e.length&&Array.isArray(e[0])?new(t.bind.apply(t,Rr([void 0],e[0].concat(this)))):new(t.bind.apply(t,Rr([void 0],e.concat(this))))},t}(Array);function Kr(e){return bn(e)?vr(e,(function(){})):e}function Zr(){return function(e){return function(e){void 0===e&&(e={});var t=e.thunk,n=void 0===t||t,r=(e.immutableCheck,e.serializableCheck,new Yr);n&&(!function(e){return"boolean"===typeof e}(n)?r.push(Tr.withExtraArgument(n.extraArgument)):r.push(Tr));0;return r}(e)}}function $r(e,t){function n(){for(var n=[],r=0;r<arguments.length;r++)n[r]=arguments[r];if(t){var i=t.apply(void 0,n);if(!i)throw new Error("prepareAction did not return an object");return Ur(Ur({type:e,payload:i.payload},"meta"in i&&{meta:i.meta}),"error"in i&&{error:i.error})}return{type:e,payload:n[0]}}return n.toString=function(){return""+e},n.type=e,n.match=function(t){return t.type===e},n}function Jr(e){var t,n={},r=[],i={addCase:function(e,t){var r="string"===typeof e?e:e.type;if(r in n)throw new Error("addCase cannot be called with two reducers for the same action type");return n[r]=t,i},addMatcher:function(e,t){return r.push({matcher:e,reducer:t}),i},addDefaultCase:function(e){return t=e,i}};return e(i),[n,r,t]}function Qr(e){var t=e.name;if(!t)throw new Error("`name` is a required option for createSlice");var n,r="function"==typeof e.initialState?e.initialState:Kr(e.initialState),i=e.reducers||{},o=Object.keys(i),s={},a={},l={};function c(){var t="function"===typeof e.extraReducers?Jr(e.extraReducers):[e.extraReducers],n=t[0],i=void 0===n?{}:n,o=t[1],s=void 0===o?[]:o,l=t[2],c=void 0===l?void 0:l,u=Ur(Ur({},i),a);return function(e,t,n,r){void 0===n&&(n=[]);var i,o="function"===typeof t?Jr(t):[t,n,r],s=o[0],a=o[1],l=o[2];if(function(e){return"function"===typeof e}(e))i=function(){return Kr(e())};else{var c=Kr(e);i=function(){return c}}function u(e,t){void 0===e&&(e=i());var n=Rr([s[t.type]],a.filter((function(e){return(0,e.matcher)(t)})).map((function(e){return e.reducer})));return 0===n.filter((function(e){return!!e})).length&&(n=[l]),n.reduce((function(e,n){if(n){var r;if(_n(e))return void 0===(r=n(e,t))?e:r;if(bn(e))return vr(e,(function(e){return n(e,t)}));if(void 0===(r=n(e,t))){if(null===e)return e;throw Error("A case reducer on a non-draftable value must not return undefined")}return r}return e}),e)}return u.getInitialState=i,u}(r,(function(e){for(var t in u)e.addCase(t,u[t]);for(var n=0,r=s;n<r.length;n++){var i=r[n];e.addMatcher(i.matcher,i.reducer)}c&&e.addDefaultCase(c)}))}return o.forEach((function(e){var n,r,o=i[e],c=function(e,t){return e+"/"+t}(t,e);"reducer"in o?(n=o.reducer,r=o.prepare):n=o,s[e]=n,a[c]=n,l[e]=r?$r(c,r):$r(c)})),{name:t,reducer:function(e,t){return n||(n=c()),n(e,t)},actions:l,caseReducers:s,getInitialState:function(){return n||(n=c()),n.getInitialState()}}}var ei=function(e){void 0===e&&(e=21);for(var t="",n=e;n--;)t+="ModuleSymbhasOwnPr-0123456789ABCDEFGHNRVfgctiUvz_KqYTJkLxpZXIjQW"[64*Math.random()|0];return t},ti=["name","message","stack","code"],ni=function(e,t){this.payload=e,this.meta=t},ri=function(e,t){this.payload=e,this.meta=t},ii=function(e){if("object"===typeof e&&null!==e){for(var t={},n=0,r=ti;n<r.length;n++){var i=r[n];"string"===typeof e[i]&&(t[i]=e[i])}return t}return{message:String(e)}};!function(){function e(e,t,n){var r=$r(e+"/fulfilled",(function(e,t,n,r){return{payload:e,meta:Wr(Ur({},r||{}),{arg:n,requestId:t,requestStatus:"fulfilled"})}})),i=$r(e+"/pending",(function(e,t,n){return{payload:void 0,meta:Wr(Ur({},n||{}),{arg:t,requestId:e,requestStatus:"pending"})}})),o=$r(e+"/rejected",(function(e,t,r,i,o){return{payload:i,error:(n&&n.serializeError||ii)(e||"Rejected"),meta:Wr(Ur({},o||{}),{arg:r,requestId:t,rejectedWithValue:!!i,requestStatus:"rejected",aborted:"AbortError"===(null==e?void 0:e.name),condition:"ConditionError"===(null==e?void 0:e.name)})}})),s="undefined"!==typeof AbortController?AbortController:function(){function e(){this.signal={aborted:!1,addEventListener:function(){},dispatchEvent:function(){return!1},onabort:function(){},removeEventListener:function(){},reason:void 0,throwIfAborted:function(){}}}return e.prototype.abort=function(){0},e}();return Object.assign((function(e){return function(a,l,c){var u,d=(null==n?void 0:n.idGenerator)?n.idGenerator(e):ei(),h=new s;function p(e){u=e,h.abort()}var f=function(){return Hr(this,null,(function(){var s,f,g,m,y,v;return Or(this,(function(_){switch(_.label){case 0:return _.trys.push([0,4,,5]),function(e){return null!==e&&"object"===typeof e&&"function"===typeof e.then}(m=null==(s=null==n?void 0:n.condition)?void 0:s.call(n,e,{getState:l,extra:c}))?[4,m]:[3,2];case 1:m=_.sent(),_.label=2;case 2:if(!1===m||h.signal.aborted)throw{name:"ConditionError",message:"Aborted due to condition callback returning false."};return!0,y=new Promise((function(e,t){return h.signal.addEventListener("abort",(function(){return t({name:"AbortError",message:u||"Aborted"})}))})),a(i(d,e,null==(f=null==n?void 0:n.getPendingMeta)?void 0:f.call(n,{requestId:d,arg:e},{getState:l,extra:c}))),[4,Promise.race([y,Promise.resolve(t(e,{dispatch:a,getState:l,extra:c,requestId:d,signal:h.signal,abort:p,rejectWithValue:function(e,t){return new ni(e,t)},fulfillWithValue:function(e,t){return new ri(e,t)}})).then((function(t){if(t instanceof ni)throw t;return t instanceof ri?r(t.payload,d,e,t.meta):r(t,d,e)}))])];case 3:return g=_.sent(),[3,5];case 4:return v=_.sent(),g=v instanceof ni?o(null,d,e,v.payload,v.meta):o(v,d,e),[3,5];case 5:return n&&!n.dispatchConditionRejection&&o.match(g)&&g.meta.condition||a(g),[2,g]}}))}))}();return Object.assign(f,{abort:p,requestId:d,arg:e,unwrap:function(){return f.then(oi)}})}}),{pending:i,rejected:o,fulfilled:r,typePrefix:e})}e.withTypes=function(){return e}}();function oi(e){if(e.meta&&e.meta.rejectedWithValue)throw e.payload;if(e.error)throw e.error;return e.payload}Object.assign;var si="listenerMiddleware";$r(si+"/add"),$r(si+"/removeAll"),$r(si+"/remove");"function"===typeof queueMicrotask&&queueMicrotask.bind("undefined"!==typeof window?window:"undefined"!==typeof __webpack_require__.g?__webpack_require__.g:globalThis);var ai,li=function(e){return function(t){setTimeout(t,e)}};"undefined"!==typeof window&&window.requestAnimationFrame?window.requestAnimationFrame:li(10);Qn();var ci=function(e,t){return ci=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},ci(e,t)};function ui(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}ci(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}var di=function(){return di=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},di.apply(this,arguments)};function hi(e,t,n,r){return new(n||(n=Promise))((function(i,o){function s(e){try{l(r.next(e))}catch(t){o(t)}}function a(e){try{l(r.throw(e))}catch(t){o(t)}}function l(e){e.done?i(e.value):function(e){return e instanceof n?e:new n((function(t){t(e)}))}(e.value).then(s,a)}l((r=r.apply(e,t||[])).next())}))}function pi(e,t){var n,r,i,o,s={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:a(0),throw:a(1),return:a(2)},"function"===typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function a(a){return function(l){return function(a){if(n)throw new TypeError("Generator is already executing.");for(;o&&(o=0,a[0]&&(s=0)),s;)try{if(n=1,r&&(i=2&a[0]?r.return:a[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,a[1])).done)return i;switch(r=0,i&&(a=[2&a[0],i.value]),a[0]){case 0:case 1:i=a;break;case 4:return s.label++,{value:a[1],done:!1};case 5:s.label++,r=a[1],a=[0];continue;case 7:a=s.ops.pop(),s.trys.pop();continue;default:if(!(i=(i=s.trys).length>0&&i[i.length-1])&&(6===a[0]||2===a[0])){s=0;continue}if(3===a[0]&&(!i||a[1]>i[0]&&a[1]<i[3])){s.label=a[1];break}if(6===a[0]&&s.label<i[1]){s.label=i[1],i=a;break}if(i&&s.label<i[2]){s.label=i[2],s.ops.push(a);break}i[2]&&s.ops.pop(),s.trys.pop();continue}a=t.call(e,s)}catch(l){a=[6,l],r=0}finally{n=i=0}if(5&a[0])throw a[1];return{value:a[0]?a[1]:void 0,done:!0}}([a,l])}}}Object.create;function fi(e){var t="function"===typeof Symbol&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&"number"===typeof e.length)return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function gi(e,t){var n="function"===typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,i,o=n.call(e),s=[];try{for(;(void 0===t||t-- >0)&&!(r=o.next()).done;)s.push(r.value)}catch(a){i={error:a}}finally{try{r&&!r.done&&(n=o.return)&&n.call(o)}finally{if(i)throw i.error}}return s}function mi(e,t,n){if(n||2===arguments.length)for(var r,i=0,o=t.length;i<o;i++)!r&&i in t||(r||(r=Array.prototype.slice.call(t,0,i)),r[i]=t[i]);return e.concat(r||Array.prototype.slice.call(t))}Object.create;var yi=function(e){for(var t=[],n=0,r=0;r<e.length;r++){var i=e.charCodeAt(r);i<128?t[n++]=i:i<2048?(t[n++]=i>>6|192,t[n++]=63&i|128):55296===(64512&i)&&r+1<e.length&&56320===(64512&e.charCodeAt(r+1))?(i=65536+((1023&i)<<10)+(1023&e.charCodeAt(++r)),t[n++]=i>>18|240,t[n++]=i>>12&63|128,t[n++]=i>>6&63|128,t[n++]=63&i|128):(t[n++]=i>>12|224,t[n++]=i>>6&63|128,t[n++]=63&i|128)}return t},vi={byteToCharMap_:null,charToByteMap_:null,byteToCharMapWebSafe_:null,charToByteMapWebSafe_:null,ENCODED_VALS_BASE:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789",get ENCODED_VALS(){return this.ENCODED_VALS_BASE+"+/="},get ENCODED_VALS_WEBSAFE(){return this.ENCODED_VALS_BASE+"-_."},HAS_NATIVE_SUPPORT:"function"===typeof atob,encodeByteArray:function(e,t){if(!Array.isArray(e))throw Error("encodeByteArray takes an array as a parameter");this.init_();for(var n=t?this.byteToCharMapWebSafe_:this.byteToCharMap_,r=[],i=0;i<e.length;i+=3){var o=e[i],s=i+1<e.length,a=s?e[i+1]:0,l=i+2<e.length,c=l?e[i+2]:0,u=o>>2,d=(3&o)<<4|a>>4,h=(15&a)<<2|c>>6,p=63&c;l||(p=64,s||(h=64)),r.push(n[u],n[d],n[h],n[p])}return r.join("")},encodeString:function(e,t){return this.HAS_NATIVE_SUPPORT&&!t?btoa(e):this.encodeByteArray(yi(e),t)},decodeString:function(e,t){return this.HAS_NATIVE_SUPPORT&&!t?atob(e):function(e){for(var t=[],n=0,r=0;n<e.length;){var i=e[n++];if(i<128)t[r++]=String.fromCharCode(i);else if(i>191&&i<224){var o=e[n++];t[r++]=String.fromCharCode((31&i)<<6|63&o)}else if(i>239&&i<365){var s=((7&i)<<18|(63&(o=e[n++]))<<12|(63&(a=e[n++]))<<6|63&e[n++])-65536;t[r++]=String.fromCharCode(55296+(s>>10)),t[r++]=String.fromCharCode(56320+(1023&s))}else{o=e[n++];var a=e[n++];t[r++]=String.fromCharCode((15&i)<<12|(63&o)<<6|63&a)}}return t.join("")}(this.decodeStringToByteArray(e,t))},decodeStringToByteArray:function(e,t){this.init_();for(var n=t?this.charToByteMapWebSafe_:this.charToByteMap_,r=[],i=0;i<e.length;){var o=n[e.charAt(i++)],s=i<e.length?n[e.charAt(i)]:0,a=++i<e.length?n[e.charAt(i)]:64,l=++i<e.length?n[e.charAt(i)]:64;if(++i,null==o||null==s||null==a||null==l)throw Error();var c=o<<2|s>>4;if(r.push(c),64!==a){var u=s<<4&240|a>>2;if(r.push(u),64!==l){var d=a<<6&192|l;r.push(d)}}}return r},init_:function(){if(!this.byteToCharMap_){this.byteToCharMap_={},this.charToByteMap_={},this.byteToCharMapWebSafe_={},this.charToByteMapWebSafe_={};for(var e=0;e<this.ENCODED_VALS.length;e++)this.byteToCharMap_[e]=this.ENCODED_VALS.charAt(e),this.charToByteMap_[this.byteToCharMap_[e]]=e,this.byteToCharMapWebSafe_[e]=this.ENCODED_VALS_WEBSAFE.charAt(e),this.charToByteMapWebSafe_[this.byteToCharMapWebSafe_[e]]=e,e>=this.ENCODED_VALS_BASE.length&&(this.charToByteMap_[this.ENCODED_VALS_WEBSAFE.charAt(e)]=e,this.charToByteMapWebSafe_[this.ENCODED_VALS.charAt(e)]=e)}}},_i=function(e){return function(e){var t=yi(e);return vi.encodeByteArray(t,!0)}(e).replace(/\./g,"")};function bi(e,t){if(!(t instanceof Object))return t;switch(t.constructor){case Date:return new Date(t.getTime());case Object:void 0===e&&(e={});break;case Array:e=[];break;default:return t}for(var n in t)t.hasOwnProperty(n)&&xi(n)&&(e[n]=bi(e[n],t[n]));return e}function xi(e){return"__proto__"!==e}var Si=function(){function e(){var e=this;this.reject=function(){},this.resolve=function(){},this.promise=new Promise((function(t,n){e.resolve=t,e.reject=n}))}return e.prototype.wrapCallback=function(e){var t=this;return function(n,r){n?t.reject(n):t.resolve(r),"function"===typeof e&&(t.promise.catch((function(){})),1===e.length?e(n):e(n,r))}},e}();function wi(){return"undefined"!==typeof navigator&&"string"===typeof navigator.userAgent?navigator.userAgent:""}function Ei(){try{return"[object process]"===Object.prototype.toString.call(__webpack_require__.g.process)}catch(e){return!1}}var Pi=function(e){function t(n,r,i){var o=e.call(this,r)||this;return o.code=n,o.customData=i,o.name="FirebaseError",Object.setPrototypeOf(o,t.prototype),Error.captureStackTrace&&Error.captureStackTrace(o,Ci.prototype.create),o}return ui(t,e),t}(Error),Ci=function(){function e(e,t,n){this.service=e,this.serviceName=t,this.errors=n}return e.prototype.create=function(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];var r=t[0]||{},i=this.service+"/"+e,o=this.errors[e],s=o?function(e,t){return e.replace(Ai,(function(e,n){var r=t[n];return null!=r?String(r):"<"+n+"?>"}))}(o,r):"Error",a=this.serviceName+": "+s+" ("+i+").";return new Pi(i,a,r)},e}();var Ai=/\{\$([^}]+)}/g;function ki(e,t){return Object.prototype.hasOwnProperty.call(e,t)}!function(){function e(){this.chain_=[],this.buf_=[],this.W_=[],this.pad_=[],this.inbuf_=0,this.total_=0,this.blockSize=64,this.pad_[0]=128;for(var e=1;e<this.blockSize;++e)this.pad_[e]=0;this.reset()}e.prototype.reset=function(){this.chain_[0]=1732584193,this.chain_[1]=4023233417,this.chain_[2]=2562383102,this.chain_[3]=271733878,this.chain_[4]=3285377520,this.inbuf_=0,this.total_=0},e.prototype.compress_=function(e,t){t||(t=0);var n=this.W_;if("string"===typeof e)for(var r=0;r<16;r++)n[r]=e.charCodeAt(t)<<24|e.charCodeAt(t+1)<<16|e.charCodeAt(t+2)<<8|e.charCodeAt(t+3),t+=4;else for(r=0;r<16;r++)n[r]=e[t]<<24|e[t+1]<<16|e[t+2]<<8|e[t+3],t+=4;for(r=16;r<80;r++){var i=n[r-3]^n[r-8]^n[r-14]^n[r-16];n[r]=4294967295&(i<<1|i>>>31)}var o,s,a=this.chain_[0],l=this.chain_[1],c=this.chain_[2],u=this.chain_[3],d=this.chain_[4];for(r=0;r<80;r++){r<40?r<20?(o=u^l&(c^u),s=1518500249):(o=l^c^u,s=1859775393):r<60?(o=l&c|u&(l|c),s=2400959708):(o=l^c^u,s=3395469782);i=(a<<5|a>>>27)+o+d+s+n[r]&4294967295;d=u,u=c,c=4294967295&(l<<30|l>>>2),l=a,a=i}this.chain_[0]=this.chain_[0]+a&4294967295,this.chain_[1]=this.chain_[1]+l&4294967295,this.chain_[2]=this.chain_[2]+c&4294967295,this.chain_[3]=this.chain_[3]+u&4294967295,this.chain_[4]=this.chain_[4]+d&4294967295},e.prototype.update=function(e,t){if(null!=e){void 0===t&&(t=e.length);for(var n=t-this.blockSize,r=0,i=this.buf_,o=this.inbuf_;r<t;){if(0===o)for(;r<=n;)this.compress_(e,r),r+=this.blockSize;if("string"===typeof e){for(;r<t;)if(i[o]=e.charCodeAt(r),++r,++o===this.blockSize){this.compress_(i),o=0;break}}else for(;r<t;)if(i[o]=e[r],++r,++o===this.blockSize){this.compress_(i),o=0;break}}this.inbuf_=o,this.total_+=t}},e.prototype.digest=function(){var e=[],t=8*this.total_;this.inbuf_<56?this.update(this.pad_,56-this.inbuf_):this.update(this.pad_,this.blockSize-(this.inbuf_-56));for(var n=this.blockSize-1;n>=56;n--)this.buf_[n]=255&t,t/=256;this.compress_(this.buf_);var r=0;for(n=0;n<5;n++)for(var i=24;i>=0;i-=8)e[r]=this.chain_[n]>>i&255,++r;return e}}();function ji(e,t){var n=new Ii(e,t);return n.subscribe.bind(n)}var Ii=function(){function e(e,t){var n=this;this.observers=[],this.unsubscribes=[],this.observerCount=0,this.task=Promise.resolve(),this.finalized=!1,this.onNoObservers=t,this.task.then((function(){e(n)})).catch((function(e){n.error(e)}))}return e.prototype.next=function(e){this.forEachObserver((function(t){t.next(e)}))},e.prototype.error=function(e){this.forEachObserver((function(t){t.error(e)})),this.close(e)},e.prototype.complete=function(){this.forEachObserver((function(e){e.complete()})),this.close()},e.prototype.subscribe=function(e,t,n){var r,i=this;if(void 0===e&&void 0===t&&void 0===n)throw new Error("Missing Observer.");r=function(e,t){if("object"!==typeof e||null===e)return!1;for(var n=0,r=t;n<r.length;n++){var i=r[n];if(i in e&&"function"===typeof e[i])return!0}return!1}(e,["next","error","complete"])?e:{next:e,error:t,complete:n},void 0===r.next&&(r.next=Gi),void 0===r.error&&(r.error=Gi),void 0===r.complete&&(r.complete=Gi);var o=this.unsubscribeOne.bind(this,this.observers.length);return this.finalized&&this.task.then((function(){try{i.finalError?r.error(i.finalError):r.complete()}catch(e){}})),this.observers.push(r),o},e.prototype.unsubscribeOne=function(e){void 0!==this.observers&&void 0!==this.observers[e]&&(delete this.observers[e],this.observerCount-=1,0===this.observerCount&&void 0!==this.onNoObservers&&this.onNoObservers(this))},e.prototype.forEachObserver=function(e){if(!this.finalized)for(var t=0;t<this.observers.length;t++)this.sendOne(t,e)},e.prototype.sendOne=function(e,t){var n=this;this.task.then((function(){if(void 0!==n.observers&&void 0!==n.observers[e])try{t(n.observers[e])}catch(r){"undefined"!==typeof console&&console.error&&console.error(r)}}))},e.prototype.close=function(e){var t=this;this.finalized||(this.finalized=!0,void 0!==e&&(this.finalError=e),this.task.then((function(){t.observers=void 0,t.onNoObservers=void 0})))},e}();function Gi(){}function Ti(e){return e&&e._delegate?e._delegate:e}var Mi=function(){function e(e,t,n){this.name=e,this.instanceFactory=t,this.type=n,this.multipleInstances=!1,this.serviceProps={},this.instantiationMode="LAZY",this.onInstanceCreated=null}return e.prototype.setInstantiationMode=function(e){return this.instantiationMode=e,this},e.prototype.setMultipleInstances=function(e){return this.multipleInstances=e,this},e.prototype.setServiceProps=function(e){return this.serviceProps=e,this},e.prototype.setInstanceCreatedCallback=function(e){return this.onInstanceCreated=e,this},e}(),Oi="[DEFAULT]",Ri=function(){function e(e,t){this.name=e,this.container=t,this.component=null,this.instances=new Map,this.instancesDeferred=new Map,this.instancesOptions=new Map,this.onInitCallbacks=new Map}return e.prototype.get=function(e){var t=this.normalizeInstanceIdentifier(e);if(!this.instancesDeferred.has(t)){var n=new Si;if(this.instancesDeferred.set(t,n),this.isInitialized(t)||this.shouldAutoInitialize())try{var r=this.getOrInitializeService({instanceIdentifier:t});r&&n.resolve(r)}catch(i){}}return this.instancesDeferred.get(t).promise},e.prototype.getImmediate=function(e){var t,n=this.normalizeInstanceIdentifier(null===e||void 0===e?void 0:e.identifier),r=null!==(t=null===e||void 0===e?void 0:e.optional)&&void 0!==t&&t;if(!this.isInitialized(n)&&!this.shouldAutoInitialize()){if(r)return null;throw Error("Service "+this.name+" is not available")}try{return this.getOrInitializeService({instanceIdentifier:n})}catch(i){if(r)return null;throw i}},e.prototype.getComponent=function(){return this.component},e.prototype.setComponent=function(e){var t,n;if(e.name!==this.name)throw Error("Mismatching Component "+e.name+" for Provider "+this.name+".");if(this.component)throw Error("Component for "+this.name+" has already been provided");if(this.component=e,this.shouldAutoInitialize()){if(function(e){return"EAGER"===e.instantiationMode}(e))try{this.getOrInitializeService({instanceIdentifier:Oi})}catch(u){}try{for(var r=fi(this.instancesDeferred.entries()),i=r.next();!i.done;i=r.next()){var o=gi(i.value,2),s=o[0],a=o[1],l=this.normalizeInstanceIdentifier(s);try{var c=this.getOrInitializeService({instanceIdentifier:l});a.resolve(c)}catch(u){}}}catch(d){t={error:d}}finally{try{i&&!i.done&&(n=r.return)&&n.call(r)}finally{if(t)throw t.error}}}},e.prototype.clearInstance=function(e){void 0===e&&(e=Oi),this.instancesDeferred.delete(e),this.instancesOptions.delete(e),this.instances.delete(e)},e.prototype.delete=function(){return hi(this,void 0,void 0,(function(){var e;return pi(this,(function(t){switch(t.label){case 0:return e=Array.from(this.instances.values()),[4,Promise.all(mi(mi([],gi(e.filter((function(e){return"INTERNAL"in e})).map((function(e){return e.INTERNAL.delete()})))),gi(e.filter((function(e){return"_delete"in e})).map((function(e){return e._delete()})))))];case 1:return t.sent(),[2]}}))}))},e.prototype.isComponentSet=function(){return null!=this.component},e.prototype.isInitialized=function(e){return void 0===e&&(e=Oi),this.instances.has(e)},e.prototype.getOptions=function(e){return void 0===e&&(e=Oi),this.instancesOptions.get(e)||{}},e.prototype.initialize=function(e){var t,n;void 0===e&&(e={});var r=e.options,i=void 0===r?{}:r,o=this.normalizeInstanceIdentifier(e.instanceIdentifier);if(this.isInitialized(o))throw Error(this.name+"("+o+") has already been initialized");if(!this.isComponentSet())throw Error("Component "+this.name+" has not been registered yet");var s=this.getOrInitializeService({instanceIdentifier:o,options:i});try{for(var a=fi(this.instancesDeferred.entries()),l=a.next();!l.done;l=a.next()){var c=gi(l.value,2),u=c[0],d=c[1];o===this.normalizeInstanceIdentifier(u)&&d.resolve(s)}}catch(h){t={error:h}}finally{try{l&&!l.done&&(n=a.return)&&n.call(a)}finally{if(t)throw t.error}}return s},e.prototype.onInit=function(e,t){var n,r=this.normalizeInstanceIdentifier(t),i=null!==(n=this.onInitCallbacks.get(r))&&void 0!==n?n:new Set;i.add(e),this.onInitCallbacks.set(r,i);var o=this.instances.get(r);return o&&e(o,r),function(){i.delete(e)}},e.prototype.invokeOnInitCallbacks=function(e,t){var n,r,i=this.onInitCallbacks.get(t);if(i)try{for(var o=fi(i),s=o.next();!s.done;s=o.next()){var a=s.value;try{a(e,t)}catch(l){}}}catch(c){n={error:c}}finally{try{s&&!s.done&&(r=o.return)&&r.call(o)}finally{if(n)throw n.error}}},e.prototype.getOrInitializeService=function(e){var t,n=e.instanceIdentifier,r=e.options,i=void 0===r?{}:r,o=this.instances.get(n);if(!o&&this.component&&(o=this.component.instanceFactory(this.container,{instanceIdentifier:(t=n,t===Oi?void 0:t),options:i}),this.instances.set(n,o),this.instancesOptions.set(n,i),this.invokeOnInitCallbacks(o,n),this.component.onInstanceCreated))try{this.component.onInstanceCreated(this.container,n,o)}catch(Ide){}return o||null},e.prototype.normalizeInstanceIdentifier=function(e){return void 0===e&&(e=Oi),this.component?this.component.multipleInstances?e:Oi:e},e.prototype.shouldAutoInitialize=function(){return!!this.component&&"EXPLICIT"!==this.component.instantiationMode},e}();var Di,Ni=function(){function e(e){this.name=e,this.providers=new Map}return e.prototype.addComponent=function(e){var t=this.getProvider(e.name);if(t.isComponentSet())throw new Error("Component "+e.name+" has already been registered with "+this.name);t.setComponent(e)},e.prototype.addOrOverwriteComponent=function(e){this.getProvider(e.name).isComponentSet()&&this.providers.delete(e.name),this.addComponent(e)},e.prototype.getProvider=function(e){if(this.providers.has(e))return this.providers.get(e);var t=new Ri(e,this);return this.providers.set(e,t),t},e.prototype.getProviders=function(){return Array.from(this.providers.values())},e}();function Li(){for(var e=0,t=0,n=arguments.length;t<n;t++)e+=arguments[t].length;var r=Array(e),i=0;for(t=0;t<n;t++)for(var o=arguments[t],s=0,a=o.length;s<a;s++,i++)r[i]=o[s];return r}var Vi,Fi=[];!function(e){e[e.DEBUG=0]="DEBUG",e[e.VERBOSE=1]="VERBOSE",e[e.INFO=2]="INFO",e[e.WARN=3]="WARN",e[e.ERROR=4]="ERROR",e[e.SILENT=5]="SILENT"}(Vi||(Vi={}));var zi,Bi={debug:Vi.DEBUG,verbose:Vi.VERBOSE,info:Vi.INFO,warn:Vi.WARN,error:Vi.ERROR,silent:Vi.SILENT},Ui=Vi.INFO,Wi=((Di={})[Vi.DEBUG]="log",Di[Vi.VERBOSE]="log",Di[Vi.INFO]="info",Di[Vi.WARN]="warn",Di[Vi.ERROR]="error",Di),Hi=function(e,t){for(var n=[],r=2;r<arguments.length;r++)n[r-2]=arguments[r];if(!(t<e.logLevel)){var i=(new Date).toISOString(),o=Wi[t];if(!o)throw new Error("Attempted to log a message with an invalid logType (value: "+t+")");console[o].apply(console,Li(["["+i+"]  "+e.name+":"],n))}},qi=function(){function e(e){this.name=e,this._logLevel=Ui,this._logHandler=Hi,this._userLogHandler=null,Fi.push(this)}return Object.defineProperty(e.prototype,"logLevel",{get:function(){return this._logLevel},set:function(e){if(!(e in Vi))throw new TypeError('Invalid value "'+e+'" assigned to `logLevel`');this._logLevel=e},enumerable:!1,configurable:!0}),e.prototype.setLogLevel=function(e){this._logLevel="string"===typeof e?Bi[e]:e},Object.defineProperty(e.prototype,"logHandler",{get:function(){return this._logHandler},set:function(e){if("function"!==typeof e)throw new TypeError("Value assigned to `logHandler` must be a function");this._logHandler=e},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"userLogHandler",{get:function(){return this._userLogHandler},set:function(e){this._userLogHandler=e},enumerable:!1,configurable:!0}),e.prototype.debug=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];this._userLogHandler&&this._userLogHandler.apply(this,Li([this,Vi.DEBUG],e)),this._logHandler.apply(this,Li([this,Vi.DEBUG],e))},e.prototype.log=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];this._userLogHandler&&this._userLogHandler.apply(this,Li([this,Vi.VERBOSE],e)),this._logHandler.apply(this,Li([this,Vi.VERBOSE],e))},e.prototype.info=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];this._userLogHandler&&this._userLogHandler.apply(this,Li([this,Vi.INFO],e)),this._logHandler.apply(this,Li([this,Vi.INFO],e))},e.prototype.warn=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];this._userLogHandler&&this._userLogHandler.apply(this,Li([this,Vi.WARN],e)),this._logHandler.apply(this,Li([this,Vi.WARN],e))},e.prototype.error=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];this._userLogHandler&&this._userLogHandler.apply(this,Li([this,Vi.ERROR],e)),this._logHandler.apply(this,Li([this,Vi.ERROR],e))},e}();function Xi(e){Fi.forEach((function(t){t.setLogLevel(e)}))}var Yi,Ki=((zi={})["no-app"]="No Firebase App '{$appName}' has been created - call Firebase App.initializeApp()",zi["bad-app-name"]="Illegal App name: '{$appName}",zi["duplicate-app"]="Firebase App named '{$appName}' already exists",zi["app-deleted"]="Firebase App named '{$appName}' already deleted",zi["invalid-app-argument"]="firebase.{$appName}() takes either no argument or a Firebase App instance.",zi["invalid-log-argument"]="First argument to `onLog` must be null or a function.",zi),Zi=new Ci("app","Firebase",Ki),$i="@firebase/app",Ji="[DEFAULT]",Qi=((Yi={})[$i]="fire-core",Yi["@firebase/analytics"]="fire-analytics",Yi["@firebase/app-check"]="fire-app-check",Yi["@firebase/auth"]="fire-auth",Yi["@firebase/database"]="fire-rtdb",Yi["@firebase/functions"]="fire-fn",Yi["@firebase/installations"]="fire-iid",Yi["@firebase/messaging"]="fire-fcm",Yi["@firebase/performance"]="fire-perf",Yi["@firebase/remote-config"]="fire-rc",Yi["@firebase/storage"]="fire-gcs",Yi["@firebase/firestore"]="fire-fst",Yi["fire-js"]="fire-js",Yi["firebase-wrapper"]="fire-js-all",Yi),eo=new qi("@firebase/app"),to=function(){function e(e,t,n){var r=this;this.firebase_=n,this.isDeleted_=!1,this.name_=t.name,this.automaticDataCollectionEnabled_=t.automaticDataCollectionEnabled||!1,this.options_=function(e){return bi(void 0,e)}(e),this.container=new Ni(t.name),this._addComponent(new Mi("app",(function(){return r}),"PUBLIC")),this.firebase_.INTERNAL.components.forEach((function(e){return r._addComponent(e)}))}return Object.defineProperty(e.prototype,"automaticDataCollectionEnabled",{get:function(){return this.checkDestroyed_(),this.automaticDataCollectionEnabled_},set:function(e){this.checkDestroyed_(),this.automaticDataCollectionEnabled_=e},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"name",{get:function(){return this.checkDestroyed_(),this.name_},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"options",{get:function(){return this.checkDestroyed_(),this.options_},enumerable:!1,configurable:!0}),e.prototype.delete=function(){var e=this;return new Promise((function(t){e.checkDestroyed_(),t()})).then((function(){return e.firebase_.INTERNAL.removeApp(e.name_),Promise.all(e.container.getProviders().map((function(e){return e.delete()})))})).then((function(){e.isDeleted_=!0}))},e.prototype._getService=function(e,t){var n;void 0===t&&(t=Ji),this.checkDestroyed_();var r=this.container.getProvider(e);return r.isInitialized()||"EXPLICIT"!==(null===(n=r.getComponent())||void 0===n?void 0:n.instantiationMode)||r.initialize(),r.getImmediate({identifier:t})},e.prototype._removeServiceInstance=function(e,t){void 0===t&&(t=Ji),this.container.getProvider(e).clearInstance(t)},e.prototype._addComponent=function(e){try{this.container.addComponent(e)}catch(t){eo.debug("Component "+e.name+" failed to register with FirebaseApp "+this.name,t)}},e.prototype._addOrOverwriteComponent=function(e){this.container.addOrOverwriteComponent(e)},e.prototype.toJSON=function(){return{name:this.name,automaticDataCollectionEnabled:this.automaticDataCollectionEnabled,options:this.options}},e.prototype.checkDestroyed_=function(){if(this.isDeleted_)throw Zi.create("app-deleted",{appName:this.name_})},e}();to.prototype.name&&to.prototype.options||to.prototype.delete||console.log("dc");var no="8.10.0";function ro(e){var t={},n=new Map,r={__esModule:!0,initializeApp:function(n,i){void 0===i&&(i={});if("object"!==typeof i||null===i){i={name:i}}var o=i;void 0===o.name&&(o.name=Ji);var s=o.name;if("string"!==typeof s||!s)throw Zi.create("bad-app-name",{appName:String(s)});if(ki(t,s))throw Zi.create("duplicate-app",{appName:s});var a=new e(n,o,r);return t[s]=a,a},app:i,registerVersion:function(e,t,n){var r,i=null!==(r=Qi[e])&&void 0!==r?r:e;n&&(i+="-"+n);var s=i.match(/\s|\//),a=t.match(/\s|\//);if(s||a){var l=['Unable to register library "'+i+'" with version "'+t+'":'];return s&&l.push('library name "'+i+'" contains illegal characters (whitespace or "/")'),s&&a&&l.push("and"),a&&l.push('version name "'+t+'" contains illegal characters (whitespace or "/")'),void eo.warn(l.join(" "))}o(new Mi(i+"-version",(function(){return{library:i,version:t}}),"VERSION"))},setLogLevel:Xi,onLog:function(e,t){if(null!==e&&"function"!==typeof e)throw Zi.create("invalid-log-argument");!function(e,t){for(var n=function(n){var r=null;t&&t.level&&(r=Bi[t.level]),n.userLogHandler=null===e?null:function(t,n){for(var i=[],o=2;o<arguments.length;o++)i[o-2]=arguments[o];var s=i.map((function(e){if(null==e)return null;if("string"===typeof e)return e;if("number"===typeof e||"boolean"===typeof e)return e.toString();if(e instanceof Error)return e.message;try{return JSON.stringify(e)}catch(t){return null}})).filter((function(e){return e})).join(" ");n>=(null!==r&&void 0!==r?r:t.logLevel)&&e({level:Vi[n].toLowerCase(),message:s,args:i,type:t.name})}},r=0,i=Fi;r<i.length;r++)n(i[r])}(e,t)},apps:null,SDK_VERSION:no,INTERNAL:{registerComponent:o,removeApp:function(e){delete t[e]},components:n,useAsService:function(e,t){if("serverAuth"===t)return null;return t}}};function i(e){if(!ki(t,e=e||Ji))throw Zi.create("no-app",{appName:e});return t[e]}function o(o){var s=o.name;if(n.has(s))return eo.debug("There were multiple attempts to register component "+s+"."),"PUBLIC"===o.type?r[s]:null;if(n.set(s,o),"PUBLIC"===o.type){var a=function(e){if(void 0===e&&(e=i()),"function"!==typeof e[s])throw Zi.create("invalid-app-argument",{appName:s});return e[s]()};void 0!==o.serviceProps&&bi(a,o.serviceProps),r[s]=a,e.prototype[s]=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return this._getService.bind(this,s).apply(this,o.multipleInstances?e:[])}}for(var l=0,c=Object.keys(t);l<c.length;l++){var u=c[l];t[u]._addComponent(o)}return"PUBLIC"===o.type?r[s]:null}return r.default=r,Object.defineProperty(r,"apps",{get:function(){return Object.keys(t).map((function(e){return t[e]}))}}),i.App=e,r}var io=function e(){var t=ro(to);return t.INTERNAL=di(di({},t.INTERNAL),{createFirebaseNamespace:e,extendNamespace:function(e){bi(t,e)},createSubscribe:ji,ErrorFactory:Ci,deepExtend:bi}),t}(),oo=function(){function e(e){this.container=e}return e.prototype.getPlatformInfoString=function(){return this.container.getProviders().map((function(e){if(function(e){var t=e.getComponent();return"VERSION"===(null===t||void 0===t?void 0:t.type)}(e)){var t=e.getImmediate();return t.library+"/"+t.version}return null})).filter((function(e){return e})).join(" ")},e}();if("object"===typeof self&&self.self===self&&void 0!==self.firebase){eo.warn("\n    Warning: Firebase is already defined in the global scope. Please make sure\n    Firebase library is only loaded once.\n  ");var so=self.firebase.SDK_VERSION;so&&so.indexOf("LITE")>=0&&eo.warn("\n    Warning: You are trying to load Firebase while using Firebase Performance standalone script.\n    You should load Firebase Performance with this instance of Firebase to avoid loading duplicate code.\n    ")}var ao=io.initializeApp;io.initializeApp=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return Ei()&&eo.warn('\n      Warning: This is a browser-targeted Firebase bundle but it appears it is being\n      run in a Node environment.  If running in a Node environment, make sure you\n      are using the bundle specified by the "main" field in package.json.\n      \n      If you are using Webpack, you can specify "main" as the first item in\n      "resolve.mainFields":\n      https://webpack.js.org/configuration/resolve/#resolvemainfields\n      \n      If using Rollup, use the @rollup/plugin-node-resolve plugin and specify "main"\n      as the first item in "mainFields", e.g. [\'main\', \'module\'].\n      https://github.com/rollup/@rollup/plugin-node-resolve\n      '),ao.apply(void 0,e)};var lo=io;!function(e,t){e.INTERNAL.registerComponent(new Mi("platform-logger",(function(e){return new oo(e)}),"PRIVATE")),e.registerVersion($i,"0.6.30",t),e.registerVersion("fire-js","")}(lo);const co=lo;var uo="8.10.1";co.registerVersion("firebase",uo,"app"),co.SDK_VERSION=uo,function(){var e,t="function"==typeof Object.defineProperties?Object.defineProperty:function(e,t,n){e!=Array.prototype&&e!=Object.prototype&&(e[t]=n.value)};var n=function(e){e=["object"==typeof window&&window,"object"==typeof self&&self,"object"==typeof __webpack_require__.g&&__webpack_require__.g,e];for(var t=0;t<e.length;++t){var n=e[t];if(n&&n.Math==Math)return n}return globalThis}(this);function r(e){var t=0;return function(){return t<e.length?{done:!1,value:e[t++]}:{done:!0}}}function i(e){var t="undefined"!=typeof Symbol&&Symbol.iterator&&e[Symbol.iterator];return t?t.call(e):{next:r(e)}}!function(e,r){if(r){var i=n;e=e.split(".");for(var o=0;o<e.length-1;o++){var s=e[o];s in i||(i[s]={}),i=i[s]}(r=r(o=i[e=e[e.length-1]]))!=o&&null!=r&&t(i,e,{configurable:!0,writable:!0,value:r})}}("Promise",(function(e){function t(e){this.b=0,this.c=void 0,this.a=[];var t=this.f();try{e(t.resolve,t.reject)}catch(Rn){t.reject(Rn)}}function r(){this.a=null}function o(e){return e instanceof t?e:new t((function(t){t(e)}))}if(e)return e;r.prototype.b=function(e){if(null==this.a){this.a=[];var t=this;this.c((function(){t.g()}))}this.a.push(e)};var s=n.setTimeout;r.prototype.c=function(e){s(e,0)},r.prototype.g=function(){for(;this.a&&this.a.length;){var e=this.a;this.a=[];for(var t=0;t<e.length;++t){var n=e[t];e[t]=null;try{n()}catch(jn){this.f(jn)}}}this.a=null},r.prototype.f=function(e){this.c((function(){throw e}))},t.prototype.f=function(){function e(e){return function(r){n||(n=!0,e.call(t,r))}}var t=this,n=!1;return{resolve:e(this.m),reject:e(this.g)}},t.prototype.m=function(e){if(e===this)this.g(new TypeError("A Promise cannot resolve to itself"));else if(e instanceof t)this.s(e);else{e:switch(typeof e){case"object":var n=null!=e;break e;case"function":n=!0;break e;default:n=!1}n?this.v(e):this.h(e)}},t.prototype.v=function(e){var t=void 0;try{t=e.then}catch(Rn){return void this.g(Rn)}"function"==typeof t?this.u(t,e):this.h(e)},t.prototype.g=function(e){this.i(2,e)},t.prototype.h=function(e){this.i(1,e)},t.prototype.i=function(e,t){if(0!=this.b)throw Error("Cannot settle("+e+", "+t+"): Promise already settled in state"+this.b);this.b=e,this.c=t,this.l()},t.prototype.l=function(){if(null!=this.a){for(var e=0;e<this.a.length;++e)a.b(this.a[e]);this.a=null}};var a=new r;return t.prototype.s=function(e){var t=this.f();e.Ra(t.resolve,t.reject)},t.prototype.u=function(e,t){var n=this.f();try{e.call(t,n.resolve,n.reject)}catch(jn){n.reject(jn)}},t.prototype.then=function(e,n){function r(e,t){return"function"==typeof e?function(t){try{i(e(t))}catch(ete){o(ete)}}:t}var i,o,s=new t((function(e,t){i=e,o=t}));return this.Ra(r(e,i),r(n,o)),s},t.prototype.catch=function(e){return this.then(void 0,e)},t.prototype.Ra=function(e,t){function n(){switch(r.b){case 1:e(r.c);break;case 2:t(r.c);break;default:throw Error("Unexpected state: "+r.b)}}var r=this;null==this.a?a.b(n):this.a.push(n)},t.resolve=o,t.reject=function(e){return new t((function(t,n){n(e)}))},t.race=function(e){return new t((function(t,n){for(var r=i(e),s=r.next();!s.done;s=r.next())o(s.value).Ra(t,n)}))},t.all=function(e){var n=i(e),r=n.next();return r.done?o([]):new t((function(e,t){function i(t){return function(n){s[t]=n,0==--a&&e(s)}}var s=[],a=0;do{s.push(void 0),a++,o(r.value).Ra(i(s.length-1),t),r=n.next()}while(!r.done)}))},t}));var o=o||{},s=this||self,a=/^[\w+/_-]+[=]{0,2}$/,l=null;function c(e){return(e=e.querySelector&&e.querySelector("script[nonce]"))&&(e=e.nonce||e.getAttribute("nonce"))&&a.test(e)?e:""}function u(){}function d(e){var t=typeof e;return"object"!=t?t:e?Array.isArray(e)?"array":t:"null"}function h(e){var t=d(e);return"array"==t||"object"==t&&"number"==typeof e.length}function p(e){return"function"==d(e)}function f(e){var t=typeof e;return"object"==t&&null!=e||"function"==t}function g(e){return Object.prototype.hasOwnProperty.call(e,m)&&e[m]||(e[m]=++y)}var m="closure_uid_"+(1e9*Math.random()>>>0),y=0;function v(e,t,n){return e.call.apply(e.bind,arguments)}function _(e,t,n){if(!e)throw Error();if(2<arguments.length){var r=Array.prototype.slice.call(arguments,2);return function(){var n=Array.prototype.slice.call(arguments);return Array.prototype.unshift.apply(n,r),e.apply(t,n)}}return function(){return e.apply(t,arguments)}}function b(e,t,n){return(b=Function.prototype.bind&&-1!=Function.prototype.bind.toString().indexOf("native code")?v:_).apply(null,arguments)}function x(e,t){var n=Array.prototype.slice.call(arguments,1);return function(){var t=n.slice();return t.push.apply(t,arguments),e.apply(this,t)}}var S=Date.now;function w(e,t){function n(){}n.prototype=t.prototype,e.bb=t.prototype,e.prototype=new n,e.prototype.constructor=e}function E(e){return e}function P(e,t,n){this.code=k+e,this.message=t||j[e]||"",this.a=n||null}function C(e){var t=e&&e.code;return t?new P(t.substring(k.length),e.message,e.serverResponse):null}w(P,Error),P.prototype.w=function(){var e={code:this.code,message:this.message};return this.a&&(e.serverResponse=this.a),e},P.prototype.toJSON=function(){return this.w()};var A,k="auth/",j={"admin-restricted-operation":"This operation is restricted to administrators only.","argument-error":"","app-not-authorized":"This app, identified by the domain where it's hosted, is not authorized to use Firebase Authentication with the provided API key. Review your key configuration in the Google API console.","app-not-installed":"The requested mobile application corresponding to the identifier (Android package name or iOS bundle ID) provided is not installed on this device.","captcha-check-failed":"The reCAPTCHA response token provided is either invalid, expired, already used or the domain associated with it does not match the list of whitelisted domains.","code-expired":"The SMS code has expired. Please re-send the verification code to try again.","cordova-not-ready":"Cordova framework is not ready.","cors-unsupported":"This browser is not supported.","credential-already-in-use":"This credential is already associated with a different user account.","custom-token-mismatch":"The custom token corresponds to a different audience.","requires-recent-login":"This operation is sensitive and requires recent authentication. Log in again before retrying this request.","dynamic-link-not-activated":"Please activate Dynamic Links in the Firebase Console and agree to the terms and conditions.","email-change-needs-verification":"Multi-factor users must always have a verified email.","email-already-in-use":"The email address is already in use by another account.","expired-action-code":"The action code has expired. ","cancelled-popup-request":"This operation has been cancelled due to another conflicting popup being opened.","internal-error":"An internal error has occurred.","invalid-app-credential":"The phone verification request contains an invalid application verifier. The reCAPTCHA token response is either invalid or expired.","invalid-app-id":"The mobile app identifier is not registed for the current project.","invalid-user-token":"This user's credential isn't valid for this project. This can happen if the user's token has been tampered with, or if the user isn't for the project associated with this API key.","invalid-auth-event":"An internal error has occurred.","invalid-verification-code":"The SMS verification code used to create the phone auth credential is invalid. Please resend the verification code sms and be sure to use the verification code provided by the user.","invalid-continue-uri":"The continue URL provided in the request is invalid.","invalid-cordova-configuration":"The following Cordova plugins must be installed to enable OAuth sign-in: cordova-plugin-buildinfo, cordova-universal-links-plugin, cordova-plugin-browsertab, cordova-plugin-inappbrowser and cordova-plugin-customurlscheme.","invalid-custom-token":"The custom token format is incorrect. Please check the documentation.","invalid-dynamic-link-domain":"The provided dynamic link domain is not configured or authorized for the current project.","invalid-email":"The email address is badly formatted.","invalid-api-key":"Your API key is invalid, please check you have copied it correctly.","invalid-cert-hash":"The SHA-1 certificate hash provided is invalid.","invalid-credential":"The supplied auth credential is malformed or has expired.","invalid-message-payload":"The email template corresponding to this action contains invalid characters in its message. Please fix by going to the Auth email templates section in the Firebase Console.","invalid-multi-factor-session":"The request does not contain a valid proof of first factor successful sign-in.","invalid-oauth-provider":"EmailAuthProvider is not supported for this operation. This operation only supports OAuth providers.","invalid-oauth-client-id":"The OAuth client ID provided is either invalid or does not match the specified API key.","unauthorized-domain":"This domain is not authorized for OAuth operations for your Firebase project. Edit the list of authorized domains from the Firebase console.","invalid-action-code":"The action code is invalid. This can happen if the code is malformed, expired, or has already been used.","wrong-password":"The password is invalid or the user does not have a password.","invalid-persistence-type":"The specified persistence type is invalid. It can only be local, session or none.","invalid-phone-number":"The format of the phone number provided is incorrect. Please enter the phone number in a format that can be parsed into E.164 format. E.164 phone numbers are written in the format [+][country code][subscriber number including area code].","invalid-provider-id":"The specified provider ID is invalid.","invalid-recipient-email":"The email corresponding to this action failed to send as the provided recipient email address is invalid.","invalid-sender":"The email template corresponding to this action contains an invalid sender email or name. Please fix by going to the Auth email templates section in the Firebase Console.","invalid-verification-id":"The verification ID used to create the phone auth credential is invalid.","invalid-tenant-id":"The Auth instance's tenant ID is invalid.","multi-factor-info-not-found":"The user does not have a second factor matching the identifier provided.","multi-factor-auth-required":"Proof of ownership of a second factor is required to complete sign-in.","missing-android-pkg-name":"An Android Package Name must be provided if the Android App is required to be installed.","auth-domain-config-required":"Be sure to include authDomain when calling firebase.initializeApp(), by following the instructions in the Firebase console.","missing-app-credential":"The phone verification request is missing an application verifier assertion. A reCAPTCHA response token needs to be provided.","missing-verification-code":"The phone auth credential was created with an empty SMS verification code.","missing-continue-uri":"A continue URL must be provided in the request.","missing-iframe-start":"An internal error has occurred.","missing-ios-bundle-id":"An iOS Bundle ID must be provided if an App Store ID is provided.","missing-multi-factor-info":"No second factor identifier is provided.","missing-multi-factor-session":"The request is missing proof of first factor successful sign-in.","missing-or-invalid-nonce":"The request does not contain a valid nonce. This can occur if the SHA-256 hash of the provided raw nonce does not match the hashed nonce in the ID token payload.","missing-phone-number":"To send verification codes, provide a phone number for the recipient.","missing-verification-id":"The phone auth credential was created with an empty verification ID.","app-deleted":"This instance of FirebaseApp has been deleted.","account-exists-with-different-credential":"An account already exists with the same email address but different sign-in credentials. Sign in using a provider associated with this email address.","network-request-failed":"A network error (such as timeout, interrupted connection or unreachable host) has occurred.","no-auth-event":"An internal error has occurred.","no-such-provider":"User was not linked to an account with the given provider.","null-user":"A null user object was provided as the argument for an operation which requires a non-null user object.","operation-not-allowed":"The given sign-in provider is disabled for this Firebase project. Enable it in the Firebase console, under the sign-in method tab of the Auth section.","operation-not-supported-in-this-environment":'This operation is not supported in the environment this application is running on. "location.protocol" must be http, https or chrome-extension and web storage must be enabled.',"popup-blocked":"Unable to establish a connection with the popup. It may have been blocked by the browser.","popup-closed-by-user":"The popup has been closed by the user before finalizing the operation.","provider-already-linked":"User can only be linked to one identity for the given provider.","quota-exceeded":"The project's quota for this operation has been exceeded.","redirect-cancelled-by-user":"The redirect operation has been cancelled by the user before finalizing.","redirect-operation-pending":"A redirect sign-in operation is already pending.","rejected-credential":"The request contains malformed or mismatching credentials.","second-factor-already-in-use":"The second factor is already enrolled on this account.","maximum-second-factor-count-exceeded":"The maximum allowed number of second factors on a user has been exceeded.","tenant-id-mismatch":"The provided tenant ID does not match the Auth instance's tenant ID",timeout:"The operation has timed out.","user-token-expired":"The user's credential is no longer valid. The user must sign in again.","too-many-requests":"We have blocked all requests from this device due to unusual activity. Try again later.","unauthorized-continue-uri":"The domain of the continue URL is not whitelisted.  Please whitelist the domain in the Firebase console.","unsupported-first-factor":"Enrolling a second factor or signing in with a multi-factor account requires sign-in with a supported first factor.","unsupported-persistence-type":"The current environment does not support the specified persistence type.","unsupported-tenant-operation":"This operation is not supported in a multi-tenant context.","unverified-email":"The operation requires a verified email.","user-cancelled":"The user did not grant your application the permissions it requested.","user-not-found":"There is no user record corresponding to this identifier. The user may have been deleted.","user-disabled":"The user account has been disabled by an administrator.","user-mismatch":"The supplied credentials do not correspond to the previously signed in user.","user-signed-out":"","weak-password":"The password must be 6 characters long or more.","web-storage-unsupported":"This browser is not supported or 3rd party cookies and data may be disabled."},I={ld:{Ua:"https://staging-identitytoolkit.sandbox.googleapis.com/identitytoolkit/v3/relyingparty/",$a:"https://staging-securetoken.sandbox.googleapis.com/v1/token",Xa:"https://staging-identitytoolkit.sandbox.googleapis.com/v2/",id:"b"},sd:{Ua:"https://www.googleapis.com/identitytoolkit/v3/relyingparty/",$a:"https://securetoken.googleapis.com/v1/token",Xa:"https://identitytoolkit.googleapis.com/v2/",id:"p"},ud:{Ua:"https://staging-www.sandbox.googleapis.com/identitytoolkit/v3/relyingparty/",$a:"https://staging-securetoken.sandbox.googleapis.com/v1/token",Xa:"https://staging-identitytoolkit.sandbox.googleapis.com/v2/",id:"s"},vd:{Ua:"https://www-googleapis-test.sandbox.google.com/identitytoolkit/v3/relyingparty/",$a:"https://test-securetoken.sandbox.googleapis.com/v1/token",Xa:"https://test-identitytoolkit.sandbox.googleapis.com/v2/",id:"t"}};function G(e){for(var t in I)if(I[t].id===e)return{firebaseEndpoint:(e=I[t]).Ua,secureTokenEndpoint:e.$a,identityPlatformEndpoint:e.Xa};return null}function T(e){if(!e)return!1;try{return!!e.$goog_Thenable}catch(On){return!1}}function M(e){if(Error.captureStackTrace)Error.captureStackTrace(this,M);else{var t=Error().stack;t&&(this.stack=t)}e&&(this.message=String(e))}function O(e,t){for(var n="",r=(e=e.split("%s")).length-1,i=0;i<r;i++)n+=e[i]+(i<t.length?t[i]:"%s");M.call(this,n+e[r])}function R(e,t){throw new O("Failure"+(e?": "+e:""),Array.prototype.slice.call(arguments,1))}function D(e,t){this.c=e,this.f=t,this.b=0,this.a=null}function N(e,t){e.f(t),100>e.b&&(e.b++,t.next=e.a,e.a=t)}function L(){this.b=this.a=null}A=G("__EID__")?"__EID__":void 0,w(M,Error),M.prototype.name="CustomError",w(O,M),O.prototype.name="AssertionError",D.prototype.get=function(){if(0<this.b){this.b--;var e=this.a;this.a=e.next,e.next=null}else e=this.c();return e};var V=new D((function(){return new z}),(function(e){e.reset()}));function F(){var e=vt,t=null;return e.a&&(t=e.a,e.a=e.a.next,e.a||(e.b=null),t.next=null),t}function z(){this.next=this.b=this.a=null}L.prototype.add=function(e,t){var n=V.get();n.set(e,t),this.b?this.b.next=n:this.a=n,this.b=n},z.prototype.set=function(e,t){this.a=e,this.b=t,this.next=null},z.prototype.reset=function(){this.next=this.b=this.a=null};var B=Array.prototype.indexOf?function(e,t){return Array.prototype.indexOf.call(e,t,void 0)}:function(e,t){if("string"===typeof e)return"string"!==typeof t||1!=t.length?-1:e.indexOf(t,0);for(var n=0;n<e.length;n++)if(n in e&&e[n]===t)return n;return-1},U=Array.prototype.forEach?function(e,t,n){Array.prototype.forEach.call(e,t,n)}:function(e,t,n){for(var r=e.length,i="string"===typeof e?e.split(""):e,o=0;o<r;o++)o in i&&t.call(n,i[o],o,e)};var W=Array.prototype.filter?function(e,t){return Array.prototype.filter.call(e,t,void 0)}:function(e,t){for(var n=e.length,r=[],i=0,o="string"===typeof e?e.split(""):e,s=0;s<n;s++)if(s in o){var a=o[s];t.call(void 0,a,s,e)&&(r[i++]=a)}return r},H=Array.prototype.map?function(e,t){return Array.prototype.map.call(e,t,void 0)}:function(e,t){for(var n=e.length,r=Array(n),i="string"===typeof e?e.split(""):e,o=0;o<n;o++)o in i&&(r[o]=t.call(void 0,i[o],o,e));return r},q=Array.prototype.some?function(e,t){return Array.prototype.some.call(e,t,void 0)}:function(e,t){for(var n=e.length,r="string"===typeof e?e.split(""):e,i=0;i<n;i++)if(i in r&&t.call(void 0,r[i],i,e))return!0;return!1};function X(e,t){return 0<=B(e,t)}function Y(e,t){var n;return(n=0<=(t=B(e,t)))&&Array.prototype.splice.call(e,t,1),n}function K(e,t){!function(e,t){for(var n="string"===typeof e?e.split(""):e,r=e.length-1;0<=r;--r)r in n&&t.call(void 0,n[r],r,e)}(e,(function(n,r){t.call(void 0,n,r,e)&&1==Array.prototype.splice.call(e,r,1).length&&0}))}function Z(e){return Array.prototype.concat.apply([],arguments)}function $(e){var t=e.length;if(0<t){for(var n=Array(t),r=0;r<t;r++)n[r]=e[r];return n}return[]}var J,Q=String.prototype.trim?function(e){return e.trim()}:function(e){return/^[\s\xa0]*([\s\S]*?)[\s\xa0]*$/.exec(e)[1]},ee=/&/g,te=/</g,ne=/>/g,re=/"/g,ie=/'/g,oe=/\x00/g,se=/[\x00&<>"']/;function ae(e,t){return-1!=e.indexOf(t)}function le(e,t){return e<t?-1:e>t?1:0}e:{var ce=s.navigator;if(ce){var ue=ce.userAgent;if(ue){J=ue;break e}}J=""}function de(e){return ae(J,e)}function he(e,t){for(var n in e)t.call(void 0,e[n],n,e)}function pe(e){for(var t in e)return!1;return!0}function fe(e){var t,n={};for(t in e)n[t]=e[t];return n}var ge="constructor hasOwnProperty isPrototypeOf propertyIsEnumerable toLocaleString toString valueOf".split(" ");function me(e,t){for(var n,r,i=1;i<arguments.length;i++){for(n in r=arguments[i])e[n]=r[n];for(var o=0;o<ge.length;o++)n=ge[o],Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}}function ye(e,t){e:{try{var n=e&&e.ownerDocument,r=n&&(n.defaultView||n.parentWindow);if((r=r||s).Element&&r.Location){var i=r;break e}}catch(Vn){}i=null}if(i&&"undefined"!=typeof i[t]&&(!e||!(e instanceof i[t])&&(e instanceof i.Location||e instanceof i.Element))){if(f(e))try{var o=e.constructor.displayName||e.constructor.name||Object.prototype.toString.call(e)}catch(Vn){o="<object could not be stringified>"}else o=void 0===e?"undefined":null===e?"null":typeof e;R("Argument is not a %s (or a non-Element, non-Location mock); got: %s",t,o)}}function ve(e,t){this.a=e===Se&&t||"",this.b=xe}function _e(e){return e instanceof ve&&e.constructor===ve&&e.b===xe?e.a:(R("expected object of type Const, got '"+e+"'"),"type_error:Const")}ve.prototype.ta=!0,ve.prototype.sa=function(){return this.a},ve.prototype.toString=function(){return"Const{"+this.a+"}"};var be,xe={},Se={};function we(){if(void 0===be){var e=null,t=s.trustedTypes;if(t&&t.createPolicy){try{e=t.createPolicy("goog#html",{createHTML:E,createScript:E,createScriptURL:E})}catch(Cn){s.console&&s.console.error(Cn.message)}be=e}else be=e}return be}function Ee(e,t){this.a=t===je?e:""}function Pe(e){return e instanceof Ee&&e.constructor===Ee?e.a:(R("expected object of type TrustedResourceUrl, got '"+e+"' of type "+d(e)),"type_error:TrustedResourceUrl")}function Ce(e,t){var n=_e(e);if(!ke.test(n))throw Error("Invalid TrustedResourceUrl format: "+n);return e=n.replace(Ae,(function(e,r){if(!Object.prototype.hasOwnProperty.call(t,r))throw Error('Found marker, "'+r+'", in format string, "'+n+'", but no valid label mapping found in args: '+JSON.stringify(t));return(e=t[r])instanceof ve?_e(e):encodeURIComponent(String(e))})),function(e){var t=we();return e=t?t.createScriptURL(e):e,new Ee(e,je)}(e)}Ee.prototype.ta=!0,Ee.prototype.sa=function(){return this.a.toString()},Ee.prototype.toString=function(){return"TrustedResourceUrl{"+this.a+"}"};var Ae=/%{(\w+)}/g,ke=/^((https:)?\/\/[0-9a-z.:[\]-]+\/|\/[^/\\]|[^:/\\%]+\/|[^:/\\%]*[?#]|about:blank#)/i,je={};function Ie(e,t){this.a=t===Ne?e:""}function Ge(e){return e instanceof Ie&&e.constructor===Ie?e.a:(R("expected object of type SafeUrl, got '"+e+"' of type "+d(e)),"type_error:SafeUrl")}Ie.prototype.ta=!0,Ie.prototype.sa=function(){return this.a.toString()},Ie.prototype.toString=function(){return"SafeUrl{"+this.a+"}"};var Te=/^(?:audio\/(?:3gpp2|3gpp|aac|L16|midi|mp3|mp4|mpeg|oga|ogg|opus|x-m4a|x-matroska|x-wav|wav|webm)|font\/\w+|image\/(?:bmp|gif|jpeg|jpg|png|tiff|webp|x-icon)|text\/csv|video\/(?:mpeg|mp4|ogg|webm|quicktime|x-matroska))(?:;\w+=(?:\w+|"[\w;,= ]+"))*$/i,Me=/^data:(.*);base64,[a-z0-9+\/]+=*$/i,Oe=/^(?:(?:https?|mailto|ftp):|[^:/?#]*(?:[/?#]|$))/i;function Re(e){if(e instanceof Ie)return e;if(e="object"==typeof e&&e.ta?e.sa():String(e),Oe.test(e))e=new Ie(e,Ne);else{var t=(e=(e=String(e)).replace(/(%0A|%0D)/g,"")).match(Me);e=t&&Te.test(t[1])?new Ie(e,Ne):null}return e}function De(e){return e instanceof Ie?e:(e="object"==typeof e&&e.ta?e.sa():String(e),Oe.test(e)||(e="about:invalid#zClosurez"),new Ie(e,Ne))}var Ne={},Le=new Ie("about:invalid#zClosurez",Ne);function Ve(e,t,n){this.a=n===Fe?e:""}Ve.prototype.ta=!0,Ve.prototype.sa=function(){return this.a.toString()},Ve.prototype.toString=function(){return"SafeHtml{"+this.a+"}"};var Fe={};function ze(e,t,n,r){return e=e instanceof Ie?e:De(e),t=t||s,n=n instanceof ve?_e(n):n||"",t.open(Ge(e),n,r,void 0)}function Be(e,t){for(var n=e.split("%s"),r="",i=Array.prototype.slice.call(arguments,1);i.length&&1<n.length;)r+=n.shift()+i.shift();return r+n.join("%s")}function Ue(e){return se.test(e)&&(-1!=e.indexOf("&")&&(e=e.replace(ee,"&amp;")),-1!=e.indexOf("<")&&(e=e.replace(te,"&lt;")),-1!=e.indexOf(">")&&(e=e.replace(ne,"&gt;")),-1!=e.indexOf('"')&&(e=e.replace(re,"&quot;")),-1!=e.indexOf("'")&&(e=e.replace(ie,"&#39;")),-1!=e.indexOf("\0")&&(e=e.replace(oe,"&#0;"))),e}function We(e){return We[" "](e),e}We[" "]=u;var He,qe=de("Opera"),Xe=de("Trident")||de("MSIE"),Ye=de("Edge"),Ke=Ye||Xe,Ze=de("Gecko")&&!(ae(J.toLowerCase(),"webkit")&&!de("Edge"))&&!(de("Trident")||de("MSIE"))&&!de("Edge"),$e=ae(J.toLowerCase(),"webkit")&&!de("Edge");function Je(){var e=s.document;return e?e.documentMode:void 0}e:{var Qe="",et=function(){var e=J;return Ze?/rv:([^\);]+)(\)|;)/.exec(e):Ye?/Edge\/([\d\.]+)/.exec(e):Xe?/\b(?:MSIE|rv)[: ]([^\);]+)(\)|;)/.exec(e):$e?/WebKit\/(\S+)/.exec(e):qe?/(?:Version)[ \/]?(\S+)/.exec(e):void 0}();if(et&&(Qe=et?et[1]:""),Xe){var tt=Je();if(null!=tt&&tt>parseFloat(Qe)){He=String(tt);break e}}He=Qe}var nt,rt={};function it(e){return function(e,t){var n=rt;return Object.prototype.hasOwnProperty.call(n,e)?n[e]:n[e]=t(e)}(e,(function(){for(var t=0,n=Q(String(He)).split("."),r=Q(String(e)).split("."),i=Math.max(n.length,r.length),o=0;0==t&&o<i;o++){var s=n[o]||"",a=r[o]||"";do{if(s=/(\d*)(\D*)(.*)/.exec(s)||["","","",""],a=/(\d*)(\D*)(.*)/.exec(a)||["","","",""],0==s[0].length&&0==a[0].length)break;t=le(0==s[1].length?0:parseInt(s[1],10),0==a[1].length?0:parseInt(a[1],10))||le(0==s[2].length,0==a[2].length)||le(s[2],a[2]),s=s[3],a=a[3]}while(0==t)}return 0<=t}))}if(s.document&&Xe){var ot=Je();nt=ot||(parseInt(He,10)||void 0)}else nt=void 0;var st=nt;try{new self.OffscreenCanvas(0,0).getContext("2d")}catch(En){}var at=!Xe||9<=Number(st);function lt(e){var t=document;return"string"===typeof e?t.getElementById(e):e}function ct(e,t){he(t,(function(t,n){t&&"object"==typeof t&&t.ta&&(t=t.sa()),"style"==n?e.style.cssText=t:"class"==n?e.className=t:"for"==n?e.htmlFor=t:ht.hasOwnProperty(n)?e.setAttribute(ht[n],t):0==n.lastIndexOf("aria-",0)||0==n.lastIndexOf("data-",0)?e.setAttribute(n,t):e[n]=t}))}var ut,dt,ht={cellpadding:"cellPadding",cellspacing:"cellSpacing",colspan:"colSpan",frameborder:"frameBorder",height:"height",maxlength:"maxLength",nonce:"nonce",role:"role",rowspan:"rowSpan",type:"type",usemap:"useMap",valign:"vAlign",width:"width"};function pt(e,t,n){var r=arguments,i=document,o=String(r[0]),s=r[1];if(!at&&s&&(s.name||s.type)){if(o=["<",o],s.name&&o.push(' name="',Ue(s.name),'"'),s.type){o.push(' type="',Ue(s.type),'"');var a={};me(a,s),delete a.type,s=a}o.push(">"),o=o.join("")}return o=ft(i,o),s&&("string"===typeof s?o.className=s:Array.isArray(s)?o.className=s.join(" "):ct(o,s)),2<r.length&&function(e,t,n){function r(n){n&&t.appendChild("string"===typeof n?e.createTextNode(n):n)}for(var i=2;i<n.length;i++){var o=n[i];if(!h(o)||f(o)&&0<o.nodeType)r(o);else{e:{if(o&&"number"==typeof o.length){if(f(o)){var s="function"==typeof o.item||"string"==typeof o.item;break e}if(p(o)){s="function"==typeof o.item;break e}}s=!1}U(s?$(o):o,r)}}}(i,o,r),o}function ft(e,t){return t=String(t),"application/xhtml+xml"===e.contentType&&(t=t.toLowerCase()),e.createElement(t)}function gt(e){s.setTimeout((function(){throw e}),0)}function mt(e,t){dt||function(){if(s.Promise&&s.Promise.resolve){var e=s.Promise.resolve(void 0);dt=function(){e.then(_t)}}else dt=function(){var e=_t;!p(s.setImmediate)||s.Window&&s.Window.prototype&&!de("Edge")&&s.Window.prototype.setImmediate==s.setImmediate?(ut||(ut=function(){var e=s.MessageChannel;if("undefined"===typeof e&&"undefined"!==typeof window&&window.postMessage&&window.addEventListener&&!de("Presto")&&(e=function(){var e=ft(document,"IFRAME");e.style.display="none",document.documentElement.appendChild(e);var t=e.contentWindow;(e=t.document).open(),e.close();var n="callImmediate"+Math.random(),r="file:"==t.location.protocol?"*":t.location.protocol+"//"+t.location.host;e=b((function(e){"*"!=r&&e.origin!=r||e.data!=n||this.port1.onmessage()}),this),t.addEventListener("message",e,!1),this.port1={},this.port2={postMessage:function(){t.postMessage(n,r)}}}),"undefined"!==typeof e&&!de("Trident")&&!de("MSIE")){var t=new e,n={},r=n;return t.port1.onmessage=function(){if(void 0!==n.next){var e=(n=n.next).Hb;n.Hb=null,e()}},function(e){r.next={Hb:e},r=r.next,t.port2.postMessage(0)}}return function(e){s.setTimeout(e,0)}}()),ut(e)):s.setImmediate(e)}}(),yt||(dt(),yt=!0),vt.add(e,t)}var yt=!1,vt=new L;function _t(){for(var e;e=F();){try{e.a.call(e.b)}catch(On){gt(On)}N(V,e)}yt=!1}function bt(e,t){if(this.a=xt,this.i=void 0,this.f=this.b=this.c=null,this.g=this.h=!1,e!=u)try{var n=this;e.call(t,(function(e){Ot(n,St,e)}),(function(e){if(!(e instanceof zt))try{if(e instanceof Error)throw e;throw Error("Promise rejected.")}catch(t){}Ot(n,wt,e)}))}catch(Gn){Ot(this,wt,Gn)}}var xt=0,St=2,wt=3;function Et(){this.next=this.f=this.b=this.g=this.a=null,this.c=!1}Et.prototype.reset=function(){this.f=this.b=this.g=this.a=null,this.c=!1};var Pt=new D((function(){return new Et}),(function(e){e.reset()}));function Ct(e,t,n){var r=Pt.get();return r.g=e,r.b=t,r.f=n,r}function At(e){if(e instanceof bt)return e;var t=new bt(u);return Ot(t,St,e),t}function kt(e){return new bt((function(t,n){n(e)}))}function jt(e,t,n){Rt(e,t,n,null)||mt(x(t,e))}function It(e){return new bt((function(t){var n=e.length,r=[];if(n)for(var i=function(e,i,o){n--,r[e]=i?{Qb:!0,value:o}:{Qb:!1,reason:o},0==n&&t(r)},o=0;o<e.length;o++)jt(e[o],x(i,o,!0),x(i,o,!1));else t(r)}))}function Gt(e,t){if(e.a==xt)if(e.c){var n=e.c;if(n.b){for(var r=0,i=null,o=null,s=n.b;s&&(s.c||(r++,s.a==e&&(i=s),!(i&&1<r)));s=s.next)i||(o=s);i&&(n.a==xt&&1==r?Gt(n,t):(o?((r=o).next==n.f&&(n.f=r),r.next=r.next.next):Nt(n),Lt(n,i,wt,t)))}e.c=null}else Ot(e,wt,t)}function Tt(e,t){e.b||e.a!=St&&e.a!=wt||Dt(e),e.f?e.f.next=t:e.b=t,e.f=t}function Mt(e,t,n,r){var i=Ct(null,null,null);return i.a=new bt((function(e,o){i.g=t?function(n){try{var i=t.call(r,n);e(i)}catch(jn){o(jn)}}:e,i.b=n?function(t){try{var i=n.call(r,t);void 0===i&&t instanceof zt?o(t):e(i)}catch(jn){o(jn)}}:o})),i.a.c=e,Tt(e,i),i.a}function Ot(e,t,n){e.a==xt&&(e===n&&(t=wt,n=new TypeError("Promise cannot resolve to itself")),e.a=1,Rt(n,e.$c,e.ad,e)||(e.i=n,e.a=t,e.c=null,Dt(e),t!=wt||n instanceof zt||function(e,t){e.g=!0,mt((function(){e.g&&Ft.call(null,t)}))}(e,n)))}function Rt(e,t,n,r){if(e instanceof bt)return Tt(e,Ct(t||u,n||null,r)),!0;if(T(e))return e.then(t,n,r),!0;if(f(e))try{var i=e.then;if(p(i))return function(e,t,n,r,i){function o(e){a||(a=!0,r.call(i,e))}function s(e){a||(a=!0,n.call(i,e))}var a=!1;try{t.call(e,s,o)}catch(Rn){o(Rn)}}(e,i,t,n,r),!0}catch(Pn){return n.call(r,Pn),!0}return!1}function Dt(e){e.h||(e.h=!0,mt(e.gc,e))}function Nt(e){var t=null;return e.b&&(t=e.b,e.b=t.next,t.next=null),e.b||(e.f=null),t}function Lt(e,t,n,r){if(n==wt&&t.b&&!t.c)for(;e&&e.g;e=e.c)e.g=!1;if(t.a)t.a.c=null,Vt(t,n,r);else try{t.c?t.g.call(t.f):Vt(t,n,r)}catch(i){Ft.call(null,i)}N(Pt,t)}function Vt(e,t,n){t==St?e.g.call(e.f,n):e.b&&e.b.call(e.f,n)}bt.prototype.then=function(e,t,n){return Mt(this,p(e)?e:null,p(t)?t:null,n)},bt.prototype.$goog_Thenable=!0,(e=bt.prototype).oa=function(e,t){return(e=Ct(e,e,t)).c=!0,Tt(this,e),this},e.o=function(e,t){return Mt(this,null,e,t)},e.cancel=function(e){if(this.a==xt){var t=new zt(e);mt((function(){Gt(this,t)}),this)}},e.$c=function(e){this.a=xt,Ot(this,St,e)},e.ad=function(e){this.a=xt,Ot(this,wt,e)},e.gc=function(){for(var e;e=Nt(this);)Lt(this,e,this.a,this.i);this.h=!1};var Ft=gt;function zt(e){M.call(this,e)}function Bt(){0!=Ut&&(Wt[g(this)]=this),this.ya=this.ya,this.pa=this.pa}w(zt,M),zt.prototype.name="cancel";var Ut=0,Wt={};function Ht(e){if(!e.ya&&(e.ya=!0,e.Da(),0!=Ut)){var t=g(e);if(0!=Ut&&e.pa&&0<e.pa.length)throw Error(e+" did not empty its onDisposeCallbacks queue. This probably means it overrode dispose() or disposeInternal() without calling the superclass' method.");delete Wt[t]}}Bt.prototype.ya=!1,Bt.prototype.Da=function(){if(this.pa)for(;this.pa.length;)this.pa.shift()()};var qt=Object.freeze||function(e){return e},Xt=!Xe||9<=Number(st),Yt=Xe&&!it("9"),Kt=function(){if(!s.addEventListener||!Object.defineProperty)return!1;var e=!1,t=Object.defineProperty({},"passive",{get:function(){e=!0}});try{s.addEventListener("test",u,t),s.removeEventListener("test",u,t)}catch(Cn){}return e}();function Zt(e,t){this.type=e,this.b=this.target=t,this.defaultPrevented=!1}function $t(e,t){if(Zt.call(this,e?e.type:""),this.relatedTarget=this.b=this.target=null,this.button=this.screenY=this.screenX=this.clientY=this.clientX=0,this.key="",this.metaKey=this.shiftKey=this.altKey=this.ctrlKey=!1,this.pointerId=0,this.pointerType="",this.a=null,e){var n=this.type=e.type,r=e.changedTouches&&e.changedTouches.length?e.changedTouches[0]:null;if(this.target=e.target||e.srcElement,this.b=t,t=e.relatedTarget){if(Ze){e:{try{We(t.nodeName);var i=!0;break e}catch(Pn){}i=!1}i||(t=null)}}else"mouseover"==n?t=e.fromElement:"mouseout"==n&&(t=e.toElement);this.relatedTarget=t,r?(this.clientX=void 0!==r.clientX?r.clientX:r.pageX,this.clientY=void 0!==r.clientY?r.clientY:r.pageY,this.screenX=r.screenX||0,this.screenY=r.screenY||0):(this.clientX=void 0!==e.clientX?e.clientX:e.pageX,this.clientY=void 0!==e.clientY?e.clientY:e.pageY,this.screenX=e.screenX||0,this.screenY=e.screenY||0),this.button=e.button,this.key=e.key||"",this.ctrlKey=e.ctrlKey,this.altKey=e.altKey,this.shiftKey=e.shiftKey,this.metaKey=e.metaKey,this.pointerId=e.pointerId||0,this.pointerType="string"===typeof e.pointerType?e.pointerType:Jt[e.pointerType]||"",this.a=e,e.defaultPrevented&&this.preventDefault()}}Zt.prototype.preventDefault=function(){this.defaultPrevented=!0},w($t,Zt);var Jt=qt({2:"touch",3:"pen",4:"mouse"});$t.prototype.preventDefault=function(){$t.bb.preventDefault.call(this);var e=this.a;if(e.preventDefault)e.preventDefault();else if(e.returnValue=!1,Yt)try{(e.ctrlKey||112<=e.keyCode&&123>=e.keyCode)&&(e.keyCode=-1)}catch(On){}},$t.prototype.g=function(){return this.a};var Qt="closure_listenable_"+(1e6*Math.random()|0),en=0;function tn(e,t,n,r,i){this.listener=e,this.proxy=null,this.src=t,this.type=n,this.capture=!!r,this.Wa=i,this.key=++en,this.wa=this.Qa=!1}function nn(e){e.wa=!0,e.listener=null,e.proxy=null,e.src=null,e.Wa=null}function rn(e){this.src=e,this.a={},this.b=0}function on(e,t){var n=t.type;n in e.a&&Y(e.a[n],t)&&(nn(t),0==e.a[n].length&&(delete e.a[n],e.b--))}function sn(e,t,n,r){for(var i=0;i<e.length;++i){var o=e[i];if(!o.wa&&o.listener==t&&o.capture==!!n&&o.Wa==r)return i}return-1}rn.prototype.add=function(e,t,n,r,i){var o=e.toString();(e=this.a[o])||(e=this.a[o]=[],this.b++);var s=sn(e,t,r,i);return-1<s?(t=e[s],n||(t.Qa=!1)):((t=new tn(t,this.src,o,!!r,i)).Qa=n,e.push(t)),t};var an="closure_lm_"+(1e6*Math.random()|0),ln={};function cn(e,t,n,r,i){if(r&&r.once)dn(e,t,n,r,i);else if(Array.isArray(t))for(var o=0;o<t.length;o++)cn(e,t[o],n,r,i);else n=bn(n),e&&e[Qt]?Sn(e,t,n,f(r)?!!r.capture:!!r,i):un(e,t,n,!1,r,i)}function un(e,t,n,r,i,o){if(!t)throw Error("Invalid event type");var s=f(i)?!!i.capture:!!i,a=vn(e);if(a||(e[an]=a=new rn(e)),!(n=a.add(t,n,r,s,o)).proxy){if(r=function(){var e=yn,t=Xt?function(n){return e.call(t.src,t.listener,n)}:function(n){if(!(n=e.call(t.src,t.listener,n)))return n};return t}(),n.proxy=r,r.src=e,r.listener=n,e.addEventListener)Kt||(i=s),void 0===i&&(i=!1),e.addEventListener(t.toString(),r,i);else if(e.attachEvent)e.attachEvent(fn(t.toString()),r);else{if(!e.addListener||!e.removeListener)throw Error("addEventListener and attachEvent are unavailable.");e.addListener(r)}0}}function dn(e,t,n,r,i){if(Array.isArray(t))for(var o=0;o<t.length;o++)dn(e,t[o],n,r,i);else n=bn(n),e&&e[Qt]?wn(e,t,n,f(r)?!!r.capture:!!r,i):un(e,t,n,!0,r,i)}function hn(e,t,n,r,i){if(Array.isArray(t))for(var o=0;o<t.length;o++)hn(e,t[o],n,r,i);else r=f(r)?!!r.capture:!!r,n=bn(n),e&&e[Qt]?(e=e.v,(t=String(t).toString())in e.a&&(-1<(n=sn(o=e.a[t],n,r,i))&&(nn(o[n]),Array.prototype.splice.call(o,n,1),0==o.length&&(delete e.a[t],e.b--)))):e&&(e=vn(e))&&(t=e.a[t.toString()],e=-1,t&&(e=sn(t,n,r,i)),(n=-1<e?t[e]:null)&&pn(n))}function pn(e){if("number"!==typeof e&&e&&!e.wa){var t=e.src;if(t&&t[Qt])on(t.v,e);else{var n=e.type,r=e.proxy;t.removeEventListener?t.removeEventListener(n,r,e.capture):t.detachEvent?t.detachEvent(fn(n),r):t.addListener&&t.removeListener&&t.removeListener(r),(n=vn(t))?(on(n,e),0==n.b&&(n.src=null,t[an]=null)):nn(e)}}}function fn(e){return e in ln?ln[e]:ln[e]="on"+e}function gn(e,t,n,r){var i=!0;if((e=vn(e))&&(t=e.a[t.toString()]))for(t=t.concat(),e=0;e<t.length;e++){var o=t[e];o&&o.capture==n&&!o.wa&&(o=mn(o,r),i=i&&!1!==o)}return i}function mn(e,t){var n=e.listener,r=e.Wa||e.src;return e.Qa&&pn(e),n.call(r,t)}function yn(e,t){if(e.wa)return!0;if(!Xt){if(!t)e:{t=["window","event"];for(var n=s,r=0;r<t.length;r++)if(null==(n=n[t[r]])){t=null;break e}t=n}if(t=new $t(r=t,this),n=!0,!(0>r.keyCode||void 0!=r.returnValue)){e:{var i=!1;if(0==r.keyCode)try{r.keyCode=-1;break e}catch(Vn){i=!0}(i||void 0==r.returnValue)&&(r.returnValue=!0)}for(r=[],i=t.b;i;i=i.parentNode)r.push(i);for(e=e.type,i=r.length-1;0<=i;i--){t.b=r[i];var o=gn(r[i],e,!0,t);n=n&&o}for(i=0;i<r.length;i++)t.b=r[i],o=gn(r[i],e,!1,t),n=n&&o}return n}return mn(e,new $t(t,this))}function vn(e){return(e=e[an])instanceof rn?e:null}var _n="__closure_events_fn_"+(1e9*Math.random()>>>0);function bn(e){return p(e)?e:(e[_n]||(e[_n]=function(t){return e.handleEvent(t)}),e[_n])}function xn(){Bt.call(this),this.v=new rn(this),this.bc=this,this.hb=null}function Sn(e,t,n,r,i){e.v.add(String(t),n,!1,r,i)}function wn(e,t,n,r,i){e.v.add(String(t),n,!0,r,i)}function An(e,t,n,r){if(!(t=e.v.a[String(t)]))return!0;t=t.concat();for(var i=!0,o=0;o<t.length;++o){var s=t[o];if(s&&!s.wa&&s.capture==n){var a=s.listener,l=s.Wa||s.src;s.Qa&&on(e.v,s),i=!1!==a.call(l,r)&&i}}return i&&!r.defaultPrevented}function kn(e,t,n){if(p(e))n&&(e=b(e,n));else{if(!e||"function"!=typeof e.handleEvent)throw Error("Invalid listener argument");e=b(e.handleEvent,e)}return 2147483647<Number(t)?-1:s.setTimeout(e,t||0)}function In(e){var t=null;return new bt((function(n,r){-1==(t=kn((function(){n(void 0)}),e))&&r(Error("Failed to schedule timer."))})).o((function(e){throw s.clearTimeout(t),e}))}function Mn(e){if(e.X&&"function"==typeof e.X)return e.X();if("string"===typeof e)return e.split("");if(h(e)){for(var t=[],n=e.length,r=0;r<n;r++)t.push(e[r]);return t}for(r in t=[],n=0,e)t[n++]=e[r];return t}function Dn(e){if(e.Y&&"function"==typeof e.Y)return e.Y();if(!e.X||"function"!=typeof e.X){if(h(e)||"string"===typeof e){var t=[];e=e.length;for(var n=0;n<e;n++)t.push(n);return t}for(var r in t=[],n=0,e)t[n++]=r;return t}}function Nn(e,t){this.b={},this.a=[],this.c=0;var n=arguments.length;if(1<n){if(n%2)throw Error("Uneven number of arguments");for(var r=0;r<n;r+=2)this.set(arguments[r],arguments[r+1])}else if(e)if(e instanceof Nn)for(n=e.Y(),r=0;r<n.length;r++)this.set(n[r],e.get(n[r]));else for(r in e)this.set(r,e[r])}function Ln(e){if(e.c!=e.a.length){for(var t=0,n=0;t<e.a.length;){var r=e.a[t];Fn(e.b,r)&&(e.a[n++]=r),t++}e.a.length=n}if(e.c!=e.a.length){var i={};for(n=t=0;t<e.a.length;)Fn(i,r=e.a[t])||(e.a[n++]=r,i[r]=1),t++;e.a.length=n}}function Fn(e,t){return Object.prototype.hasOwnProperty.call(e,t)}w(xn,Bt),xn.prototype[Qt]=!0,xn.prototype.addEventListener=function(e,t,n,r){cn(this,e,t,n,r)},xn.prototype.removeEventListener=function(e,t,n,r){hn(this,e,t,n,r)},xn.prototype.dispatchEvent=function(e){var t,n=this.hb;if(n)for(t=[];n;n=n.hb)t.push(n);n=this.bc;var r=e.type||e;if("string"===typeof e)e=new Zt(e,n);else if(e instanceof Zt)e.target=e.target||n;else{var i=e;me(e=new Zt(r,n),i)}if(i=!0,t)for(var o=t.length-1;0<=o;o--){var s=e.b=t[o];i=An(s,r,!0,e)&&i}if(i=An(s=e.b=n,r,!0,e)&&i,i=An(s,r,!1,e)&&i,t)for(o=0;o<t.length;o++)i=An(s=e.b=t[o],r,!1,e)&&i;return i},xn.prototype.Da=function(){if(xn.bb.Da.call(this),this.v){var e,t=this.v;for(e in t.a){for(var n=t.a[e],r=0;r<n.length;r++)nn(n[r]);delete t.a[e],t.b--}}this.hb=null},(e=Nn.prototype).X=function(){Ln(this);for(var e=[],t=0;t<this.a.length;t++)e.push(this.b[this.a[t]]);return e},e.Y=function(){return Ln(this),this.a.concat()},e.clear=function(){this.b={},this.c=this.a.length=0},e.get=function(e,t){return Fn(this.b,e)?this.b[e]:t},e.set=function(e,t){Fn(this.b,e)||(this.c++,this.a.push(e)),this.b[e]=t},e.forEach=function(e,t){for(var n=this.Y(),r=0;r<n.length;r++){var i=n[r],o=this.get(i);e.call(t,o,i,this)}};var zn=/^(?:([^:/?#.]+):)?(?:\/\/(?:([^\\/?#]*)@)?([^\\/?#]*?)(?::([0-9]+))?(?=[\\/?#]|$))?([^?#]+)?(?:\?([^#]*))?(?:#([\s\S]*))?$/;function Bn(e,t){var n;this.a=this.l=this.c="",this.g=null,this.h=this.f="",this.i=!1,e instanceof Bn?(this.i=void 0!==t?t:e.i,Un(this,e.c),this.l=e.l,this.a=e.a,Wn(this,e.g),this.f=e.f,Hn(this,ur(e.b)),this.h=e.h):e&&(n=String(e).match(zn))?(this.i=!!t,Un(this,n[1]||"",!0),this.l=Zn(n[2]||""),this.a=Zn(n[3]||"",!0),Wn(this,n[4]),this.f=Zn(n[5]||"",!0),Hn(this,n[6]||"",!0),this.h=Zn(n[7]||"")):(this.i=!!t,this.b=new ir(null,this.i))}function Un(e,t,n){e.c=n?Zn(t,!0):t,e.c&&(e.c=e.c.replace(/:$/,""))}function Wn(e,t){if(t){if(t=Number(t),isNaN(t)||0>t)throw Error("Bad port number "+t);e.g=t}else e.g=null}function Hn(e,t,n){t instanceof ir?(e.b=t,function(e,t){t&&!e.f&&(or(e),e.c=null,e.a.forEach((function(e,t){var n=t.toLowerCase();t!=n&&(ar(this,t),cr(this,n,e))}),e)),e.f=t}(e.b,e.i)):(n||(t=$n(t,nr)),e.b=new ir(t,e.i))}function qn(e,t,n){e.b.set(t,n)}function Xn(e,t){return e.b.get(t)}function Yn(e){return e instanceof Bn?new Bn(e):new Bn(e,void 0)}function Kn(e,t,n,r){var i=new Bn(null,void 0);return e&&Un(i,e),t&&(i.a=t),n&&Wn(i,n),r&&(i.f=r),i}function Zn(e,t){return e?t?decodeURI(e.replace(/%25/g,"%2525")):decodeURIComponent(e):""}function $n(e,t,n){return"string"===typeof e?(e=encodeURI(e).replace(t,Jn),n&&(e=e.replace(/%25([0-9a-fA-F]{2})/g,"%$1")),e):null}function Jn(e){return"%"+((e=e.charCodeAt(0))>>4&15).toString(16)+(15&e).toString(16)}Bn.prototype.toString=function(){var e=[],t=this.c;t&&e.push($n(t,Qn,!0),":");var n=this.a;return(n||"file"==t)&&(e.push("//"),(t=this.l)&&e.push($n(t,Qn,!0),"@"),e.push(encodeURIComponent(String(n)).replace(/%25([0-9a-fA-F]{2})/g,"%$1")),null!=(n=this.g)&&e.push(":",String(n))),(n=this.f)&&(this.a&&"/"!=n.charAt(0)&&e.push("/"),e.push($n(n,"/"==n.charAt(0)?tr:er,!0))),(n=this.b.toString())&&e.push("?",n),(n=this.h)&&e.push("#",$n(n,rr)),e.join("")},Bn.prototype.resolve=function(e){var t=new Bn(this),n=!!e.c;n?Un(t,e.c):n=!!e.l,n?t.l=e.l:n=!!e.a,n?t.a=e.a:n=null!=e.g;var r=e.f;if(n)Wn(t,e.g);else if(n=!!e.f){if("/"!=r.charAt(0))if(this.a&&!this.f)r="/"+r;else{var i=t.f.lastIndexOf("/");-1!=i&&(r=t.f.substr(0,i+1)+r)}if(".."==(i=r)||"."==i)r="";else if(ae(i,"./")||ae(i,"/.")){r=0==i.lastIndexOf("/",0),i=i.split("/");for(var o=[],s=0;s<i.length;){var a=i[s++];"."==a?r&&s==i.length&&o.push(""):".."==a?((1<o.length||1==o.length&&""!=o[0])&&o.pop(),r&&s==i.length&&o.push("")):(o.push(a),r=!0)}r=o.join("/")}else r=i}return n?t.f=r:n=""!==e.b.toString(),n?Hn(t,ur(e.b)):n=!!e.h,n&&(t.h=e.h),t};var Qn=/[#\/\?@]/g,er=/[#\?:]/g,tr=/[#\?]/g,nr=/[#\?@]/g,rr=/#/g;function ir(e,t){this.b=this.a=null,this.c=e||null,this.f=!!t}function or(e){e.a||(e.a=new Nn,e.b=0,e.c&&function(e,t){if(e){e=e.split("&");for(var n=0;n<e.length;n++){var r=e[n].indexOf("="),i=null;if(0<=r){var o=e[n].substring(0,r);i=e[n].substring(r+1)}else o=e[n];t(o,i?decodeURIComponent(i.replace(/\+/g," ")):"")}}}(e.c,(function(t,n){e.add(decodeURIComponent(t.replace(/\+/g," ")),n)})))}function sr(e){var t=Dn(e);if("undefined"==typeof t)throw Error("Keys are undefined");var n=new ir(null,void 0);e=Mn(e);for(var r=0;r<t.length;r++){var i=t[r],o=e[r];Array.isArray(o)?cr(n,i,o):n.add(i,o)}return n}function ar(e,t){or(e),t=dr(e,t),Fn(e.a.b,t)&&(e.c=null,e.b-=e.a.get(t).length,Fn((e=e.a).b,t)&&(delete e.b[t],e.c--,e.a.length>2*e.c&&Ln(e)))}function lr(e,t){return or(e),t=dr(e,t),Fn(e.a.b,t)}function cr(e,t,n){ar(e,t),0<n.length&&(e.c=null,e.a.set(dr(e,t),$(n)),e.b+=n.length)}function ur(e){var t=new ir;return t.c=e.c,e.a&&(t.a=new Nn(e.a),t.b=e.b),t}function dr(e,t){return t=String(t),e.f&&(t=t.toLowerCase()),t}function hr(e){var t=[];return fr(new pr,e,t),t.join("")}function pr(){}function fr(e,t,n){if(null==t)n.push("null");else{if("object"==typeof t){if(Array.isArray(t)){var r=t;t=r.length,n.push("[");for(var i="",o=0;o<t;o++)n.push(i),fr(e,r[o],n),i=",";return void n.push("]")}if(!(t instanceof String||t instanceof Number||t instanceof Boolean)){for(r in n.push("{"),i="",t)Object.prototype.hasOwnProperty.call(t,r)&&("function"!=typeof(o=t[r])&&(n.push(i),yr(r,n),n.push(":"),fr(e,o,n),i=","));return void n.push("}")}t=t.valueOf()}switch(typeof t){case"string":yr(t,n);break;case"number":n.push(isFinite(t)&&!isNaN(t)?String(t):"null");break;case"boolean":n.push(String(t));break;case"function":n.push("null");break;default:throw Error("Unknown type: "+typeof t)}}}(e=ir.prototype).add=function(e,t){or(this),this.c=null,e=dr(this,e);var n=this.a.get(e);return n||this.a.set(e,n=[]),n.push(t),this.b+=1,this},e.clear=function(){this.a=this.c=null,this.b=0},e.forEach=function(e,t){or(this),this.a.forEach((function(n,r){U(n,(function(n){e.call(t,n,r,this)}),this)}),this)},e.Y=function(){or(this);for(var e=this.a.X(),t=this.a.Y(),n=[],r=0;r<t.length;r++)for(var i=e[r],o=0;o<i.length;o++)n.push(t[r]);return n},e.X=function(e){or(this);var t=[];if("string"===typeof e)lr(this,e)&&(t=Z(t,this.a.get(dr(this,e))));else{e=this.a.X();for(var n=0;n<e.length;n++)t=Z(t,e[n])}return t},e.set=function(e,t){return or(this),this.c=null,lr(this,e=dr(this,e))&&(this.b-=this.a.get(e).length),this.a.set(e,[t]),this.b+=1,this},e.get=function(e,t){return e&&0<(e=this.X(e)).length?String(e[0]):t},e.toString=function(){if(this.c)return this.c;if(!this.a)return"";for(var e=[],t=this.a.Y(),n=0;n<t.length;n++){var r=t[n],i=encodeURIComponent(String(r));r=this.X(r);for(var o=0;o<r.length;o++){var s=i;""!==r[o]&&(s+="="+encodeURIComponent(String(r[o]))),e.push(s)}}return this.c=e.join("&")};var gr={'"':'\\"',"\\":"\\\\","/":"\\/","\b":"\\b","\f":"\\f","\n":"\\n","\r":"\\r","\t":"\\t","\v":"\\u000b"},mr=/\uffff/.test("\uffff")?/[\\"\x00-\x1f\x7f-\uffff]/g:/[\\"\x00-\x1f\x7f-\xff]/g;function yr(e,t){t.push('"',e.replace(mr,(function(e){var t=gr[e];return t||(t="\\u"+(65536|e.charCodeAt(0)).toString(16).substr(1),gr[e]=t),t})),'"')}function vr(){var e=Lr();return Xe&&!!st&&11==st||/Edge\/\d+/.test(e)}function _r(){return s.window&&s.window.location.href||self&&self.location&&self.location.href||""}function br(e,t){t=t||s.window;var n="about:blank";e&&(n=Ge(Re(e)||Le)),t.location.href=n}function xr(e,t){var n,r=[];for(n in e)n in t?typeof e[n]!=typeof t[n]?r.push(n):"object"==typeof e[n]&&null!=e[n]&&null!=t[n]?0<xr(e[n],t[n]).length&&r.push(n):e[n]!==t[n]&&r.push(n):r.push(n);for(n in t)n in e||r.push(n);return r}function Sr(e){return!!((e=(e||Lr()).toLowerCase()).match(/android/)||e.match(/webos/)||e.match(/iphone|ipad|ipod/)||e.match(/blackberry/)||e.match(/windows phone/)||e.match(/iemobile/))}function wr(e){e=e||s.window;try{e.close()}catch(On){}}function Er(e,t,n){var r=Math.floor(1e9*Math.random()).toString();t=t||500,n=n||600;var i=(window.screen.availHeight-n)/2,o=(window.screen.availWidth-t)/2;for(s in t={width:t,height:n,top:0<i?i:0,left:0<o?o:0,location:!0,resizable:!0,statusbar:!0,toolbar:!1},n=Lr().toLowerCase(),r&&(t.target=r,ae(n,"crios/")&&(t.target="_blank")),Rr(Lr())==Mr&&(e=e||"http://localhost",t.scrollbars=!0),n=e||"",(e=t)||(e={}),r=window,t=n instanceof Ie?n:Re("undefined"!=typeof n.href?n.href:String(n))||Le,n=e.target||n.target,i=[],e)switch(s){case"width":case"height":case"top":case"left":i.push(s+"="+e[s]);break;case"target":case"noopener":case"noreferrer":break;default:i.push(s+"="+(e[s]?1:0))}var s=i.join(",");if((de("iPhone")&&!de("iPod")&&!de("iPad")||de("iPad")||de("iPod"))&&r.navigator&&r.navigator.standalone&&n&&"_self"!=n?(ye(s=ft(document,"A"),"HTMLAnchorElement"),t=t instanceof Ie?t:De(t),s.href=Ge(t),s.setAttribute("target",n),e.noreferrer&&s.setAttribute("rel","noreferrer"),(e=document.createEvent("MouseEvent")).initMouseEvent("click",!0,!0,r,1),s.dispatchEvent(e),s={}):e.noreferrer?(s=ze("",r,n,s),e=Ge(t),s&&(Ke&&ae(e,";")&&(e="'"+e.replace(/'/g,"%27")+"'"),s.opener=null,e='<meta name="referrer" content="no-referrer"><meta http-equiv="refresh" content="0; url='+Ue(e)+'">',e=new Ve(e=(r=we())?r.createHTML(e):e,null,Fe),r=s.document)&&(r.write(function(e){return e instanceof Ve&&e.constructor===Ve?e.a:(R("expected object of type SafeHtml, got '"+e+"' of type "+d(e)),"type_error:SafeHtml")}(e)),r.close())):(s=ze(t,r,n,s))&&e.noopener&&(s.opener=null),s)try{s.focus()}catch(Tn){}return s}var Pr=/^\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}$/,Cr=/^[^@]+@[^@]+$/;function Ar(){var e=null;return new bt((function(t){"complete"==s.document.readyState?t():(e=function(){t()},dn(window,"load",e))})).o((function(t){throw hn(window,"load",e),t}))}function kr(e){return e=e||Lr(),!("file:"!==Ur()&&"ionic:"!==Ur()||!e.toLowerCase().match(/iphone|ipad|ipod|android/))}function jr(){var e=s.window;try{return!(!e||e==e.top)}catch(On){return!1}}function Ir(){return"undefined"!==typeof s.WorkerGlobalScope&&"function"===typeof s.importScripts}function Gr(){return co.INTERNAL.hasOwnProperty("reactNative")?"ReactNative":co.INTERNAL.hasOwnProperty("node")?"Node":Ir()?"Worker":"Browser"}function Tr(){var e=Gr();return"ReactNative"===e||"Node"===e}var Mr="Firefox",Or="Chrome";function Rr(e){var t=e.toLowerCase();return ae(t,"opera/")||ae(t,"opr/")||ae(t,"opios/")?"Opera":ae(t,"iemobile")?"IEMobile":ae(t,"msie")||ae(t,"trident/")?"IE":ae(t,"edge/")?"Edge":ae(t,"firefox/")?Mr:ae(t,"silk/")?"Silk":ae(t,"blackberry")?"Blackberry":ae(t,"webos")?"Webos":!ae(t,"safari/")||ae(t,"chrome/")||ae(t,"crios/")||ae(t,"android")?!ae(t,"chrome/")&&!ae(t,"crios/")||ae(t,"edge/")?ae(t,"android")?"Android":(e=e.match(/([a-zA-Z\d\.]+)\/[a-zA-Z\d\.]*$/))&&2==e.length?e[1]:"Other":Or:"Safari"}var Dr={md:"FirebaseCore-web",od:"FirebaseUI-web"};function Nr(e,t){t=t||[];var n,r=[],i={};for(n in Dr)i[Dr[n]]=!0;for(n=0;n<t.length;n++)"undefined"!==typeof i[t[n]]&&(delete i[t[n]],r.push(t[n]));return r.sort(),(t=r).length||(t=["FirebaseCore-web"]),"Browser"===(r=Gr())?r=Rr(i=Lr()):"Worker"===r&&(r=Rr(i=Lr())+"-"+r),r+"/JsCore/"+e+"/"+t.join(",")}function Lr(){return s.navigator&&s.navigator.userAgent||""}function Vr(e,t){e=e.split("."),t=t||s;for(var n=0;n<e.length&&"object"==typeof t&&null!=t;n++)t=t[e[n]];return n!=e.length&&(t=void 0),t}function Fr(){try{var e=s.localStorage,t=Yr();if(e)return e.setItem(t,"1"),e.removeItem(t),!vr()||!!s.indexedDB}catch(Cn){return Ir()&&!!s.indexedDB}return!1}function zr(){return(Br()||"chrome-extension:"===Ur()||kr())&&!Tr()&&Fr()&&!Ir()}function Br(){return"http:"===Ur()||"https:"===Ur()}function Ur(){return s.location&&s.location.protocol||null}function Wr(e){return!Sr(e=e||Lr())&&Rr(e)!=Mr}function Hr(e){return"undefined"===typeof e?null:hr(e)}function qr(e){var t,n={};for(t in e)e.hasOwnProperty(t)&&null!==e[t]&&void 0!==e[t]&&(n[t]=e[t]);return n}function Xr(e){if(null!==e)return JSON.parse(e)}function Yr(e){return e||Math.floor(1e9*Math.random()).toString()}function Kr(e){return"Safari"!=Rr(e=e||Lr())&&!e.toLowerCase().match(/iphone|ipad|ipod/)}function Zr(){var e=s.___jsl;if(e&&e.H)for(var t in e.H)if(e.H[t].r=e.H[t].r||[],e.H[t].L=e.H[t].L||[],e.H[t].r=e.H[t].L.concat(),e.CP)for(var n=0;n<e.CP.length;n++)e.CP[n]=null}function $r(e,t){if(e>t)throw Error("Short delay should be less than long delay!");this.a=e,this.c=t,e=Lr(),t=Gr(),this.b=Sr(e)||"ReactNative"===t}function Jr(){var e=s.document;return!e||"undefined"===typeof e.visibilityState||"visible"==e.visibilityState}function Qr(e){try{var t=new Date(parseInt(e,10));if(!isNaN(t.getTime())&&!/[^0-9]/.test(e))return t.toUTCString()}catch(Cn){}return null}function ei(){return!(!Vr("fireauth.oauthhelper",s)&&!Vr("fireauth.iframe",s))}$r.prototype.get=function(){var e=s.navigator;return!e||"boolean"!==typeof e.onLine||!Br()&&"chrome-extension:"!==Ur()&&"undefined"===typeof e.connection||e.onLine?this.b?this.c:this.a:Math.min(5e3,this.a)};var ti,ni={};function ri(e){ni[e]||(ni[e]=!0,"undefined"!==typeof console&&"function"===typeof console.warn&&console.warn(e))}try{var ii={};Object.defineProperty(ii,"abcd",{configurable:!0,enumerable:!0,value:1}),Object.defineProperty(ii,"abcd",{configurable:!0,enumerable:!0,value:2}),ti=2==ii.abcd}catch(En){ti=!1}function oi(e,t,n){ti?Object.defineProperty(e,t,{configurable:!0,enumerable:!0,value:n}):e[t]=n}function si(e,t){if(t)for(var n in t)t.hasOwnProperty(n)&&oi(e,n,t[n])}function ai(e){var t={};return si(t,e),t}function li(e){var t=e;if("object"==typeof e&&null!=e)for(var n in t="length"in e?[]:{},e)oi(t,n,li(e[n]));return t}function ci(e){var t=e&&(e[fi]?"phone":null);if(!(t&&e&&e[pi]))throw new P("internal-error","Internal assert: invalid MultiFactorInfo object");oi(this,"uid",e[pi]),oi(this,"displayName",e[di]||null);var n=null;e[hi]&&(n=new Date(e[hi]).toUTCString()),oi(this,"enrollmentTime",n),oi(this,"factorId",t)}function ui(e){try{var t=new gi(e)}catch(Cn){t=null}return t}ci.prototype.w=function(){return{uid:this.uid,displayName:this.displayName,factorId:this.factorId,enrollmentTime:this.enrollmentTime}};var di="displayName",hi="enrolledAt",pi="mfaEnrollmentId",fi="phoneInfo";function gi(e){ci.call(this,e),oi(this,"phoneNumber",e[fi])}function mi(e){var t={},n=e[bi],r=e[Si],i=e[wi];if(e=ui(e[xi]),!i||i!=vi&&i!=_i&&!n||i==_i&&!r||i==yi&&!e)throw Error("Invalid checkActionCode response!");i==_i?(t[Pi]=n||null,t[Ai]=n||null,t[Ei]=r):(t[Pi]=r||null,t[Ai]=r||null,t[Ei]=n||null),t[Ci]=e||null,oi(this,ji,i),oi(this,ki,li(t))}w(gi,ci),gi.prototype.w=function(){var e=gi.bb.w.call(this);return e.phoneNumber=this.phoneNumber,e};var yi="REVERT_SECOND_FACTOR_ADDITION",vi="EMAIL_SIGNIN",_i="VERIFY_AND_CHANGE_EMAIL",bi="email",xi="mfaInfo",Si="newEmail",wi="requestType",Ei="email",Pi="fromEmail",Ci="multiFactorInfo",Ai="previousEmail",ki="data",ji="operation";function Ii(e){var t=Xn(e=Yn(e),Gi)||null,n=Xn(e,Ti)||null,r=Xn(e,Ri)||null;if(r=r&&Ni[r]||null,!t||!n||!r)throw new P("argument-error",Gi+", "+Ti+"and "+Ri+" are required in a valid action code URL.");si(this,{apiKey:t,operation:r,code:n,continueUrl:Xn(e,Mi)||null,languageCode:Xn(e,Oi)||null,tenantId:Xn(e,Di)||null})}var Gi="apiKey",Ti="oobCode",Mi="continueUrl",Oi="languageCode",Ri="mode",Di="tenantId",Ni={recoverEmail:"RECOVER_EMAIL",resetPassword:"PASSWORD_RESET",revertSecondFactorAddition:yi,signIn:vi,verifyAndChangeEmail:_i,verifyEmail:"VERIFY_EMAIL"};function Li(e){try{return new Ii(e)}catch(On){return null}}function Vi(e){var t=e[Wi];if("undefined"===typeof t)throw new P("missing-continue-uri");if("string"!==typeof t||"string"===typeof t&&!t.length)throw new P("invalid-continue-uri");this.h=t,this.b=this.a=null,this.g=!1;var n=e[Fi];if(n&&"object"===typeof n){t=n[Xi];var r=n[Hi];if(n=n[qi],"string"===typeof t&&t.length){if(this.a=t,"undefined"!==typeof r&&"boolean"!==typeof r)throw new P("argument-error",Hi+" property must be a boolean when specified.");if(this.g=!!r,"undefined"!==typeof n&&("string"!==typeof n||"string"===typeof n&&!n.length))throw new P("argument-error",qi+" property must be a non empty string when specified.");this.b=n||null}else{if("undefined"!==typeof t)throw new P("argument-error",Xi+" property must be a non empty string when specified.");if("undefined"!==typeof r||"undefined"!==typeof n)throw new P("missing-android-pkg-name")}}else if("undefined"!==typeof n)throw new P("argument-error",Fi+" property must be a non null object when specified.");if(this.f=null,(t=e[Ui])&&"object"===typeof t){if("string"===typeof(t=t[Yi])&&t.length)this.f=t;else if("undefined"!==typeof t)throw new P("argument-error",Yi+" property must be a non empty string when specified.")}else if("undefined"!==typeof t)throw new P("argument-error",Ui+" property must be a non null object when specified.");if("undefined"!==typeof(t=e[Bi])&&"boolean"!==typeof t)throw new P("argument-error",Bi+" property must be a boolean when specified.");if(this.c=!!t,"undefined"!==typeof(e=e[zi])&&("string"!==typeof e||"string"===typeof e&&!e.length))throw new P("argument-error",zi+" property must be a non empty string when specified.");this.i=e||null}var Fi="android",zi="dynamicLinkDomain",Bi="handleCodeInApp",Ui="iOS",Wi="url",Hi="installApp",qi="minimumVersion",Xi="packageName",Yi="bundleId";function Ki(e){var t={};for(var n in t.continueUrl=e.h,t.canHandleCodeInApp=e.c,(t.androidPackageName=e.a)&&(t.androidMinimumVersion=e.b,t.androidInstallApp=e.g),t.iOSBundleId=e.f,t.dynamicLinkDomain=e.i,t)null===t[n]&&delete t[n];return t}var Zi=null;function $i(e){var t=[];return function(e,t){function n(t){for(;r<e.length;){var n=e.charAt(r++),i=Zi[n];if(null!=i)return i;if(!/^[\s\xa0]*$/.test(n))throw Error("Unknown base64 encoding at char: "+n)}return t}!function(){if(!Zi){Zi={};for(var e="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789".split(""),t=["+/=","+/","-_=","-_.","-_"],n=0;5>n;n++)for(var r=e.concat(t[n].split("")),i=0;i<r.length;i++){var o=r[i];void 0===Zi[o]&&(Zi[o]=i)}}}();for(var r=0;;){var i=n(-1),o=n(0),s=n(64),a=n(64);if(64===a&&-1===i)break;t(i<<2|o>>4),64!=s&&(t(o<<4&240|s>>2),64!=a&&t(s<<6&192|a))}}(e,(function(e){t.push(e)})),t}function Ji(e){var t=eo(e);if(!(t&&t.sub&&t.iss&&t.aud&&t.exp))throw Error("Invalid JWT");this.h=e,this.a=t.exp,this.i=t.sub,e=Date.now()/1e3,this.g=t.iat||(e>this.a?this.a:e),this.b=t.provider_id||t.firebase&&t.firebase.sign_in_provider||null,this.f=t.firebase&&t.firebase.tenant||null,this.c=!!t.is_anonymous||"anonymous"==this.b}function Qi(e){try{return new Ji(e)}catch(On){return null}}function eo(e){if(!e)return null;if(3!=(e=e.split(".")).length)return null;for(var t=(4-(e=e[1]).length%4)%4,n=0;n<t;n++)e+=".";try{var r=$i(e);for(e=[],n=t=0;t<r.length;){var i=r[t++];if(128>i)e[n++]=String.fromCharCode(i);else if(191<i&&224>i){var o=r[t++];e[n++]=String.fromCharCode((31&i)<<6|63&o)}else if(239<i&&365>i){o=r[t++];var s=r[t++],a=((7&i)<<18|(63&o)<<12|(63&s)<<6|63&r[t++])-65536;e[n++]=String.fromCharCode(55296+(a>>10)),e[n++]=String.fromCharCode(56320+(1023&a))}else o=r[t++],s=r[t++],e[n++]=String.fromCharCode((15&i)<<12|(63&o)<<6|63&s)}return JSON.parse(e.join(""))}catch(jn){}return null}Ji.prototype.T=function(){return this.f},Ji.prototype.l=function(){return this.c},Ji.prototype.toString=function(){return this.h};var to="oauth_consumer_key oauth_nonce oauth_signature oauth_signature_method oauth_timestamp oauth_token oauth_version".split(" "),no=["client_id","response_type","scope","redirect_uri","state"],ro={nd:{Ja:"locale",va:700,ua:600,fa:"facebook.com",Ya:no},pd:{Ja:null,va:500,ua:750,fa:"github.com",Ya:no},qd:{Ja:"hl",va:515,ua:680,fa:"google.com",Ya:no},wd:{Ja:"lang",va:485,ua:705,fa:"twitter.com",Ya:to},kd:{Ja:"locale",va:640,ua:600,fa:"apple.com",Ya:[]}};function io(e){for(var t in ro)if(ro[t].fa==e)return ro[t];return null}function oo(e){var t={};t["facebook.com"]=ho,t["google.com"]=fo,t["github.com"]=po,t["twitter.com"]=go;var n=e&&e[ao];try{if(n)return t[n]?new t[n](e):new uo(e);if("undefined"!==typeof e[so])return new lo(e)}catch(Gn){}return null}var so="idToken",ao="providerId";function lo(e){var t=e[ao];if(!t&&e[so]){var n=Qi(e[so]);n&&n.b&&(t=n.b)}if(!t)throw Error("Invalid additional user info!");"anonymous"!=t&&"custom"!=t||(t=null),n=!1,"undefined"!==typeof e.isNewUser?n=!!e.isNewUser:"identitytoolkit#SignupNewUserResponse"===e.kind&&(n=!0),oi(this,"providerId",t),oi(this,"isNewUser",n)}function uo(e){lo.call(this,e),oi(this,"profile",li((e=Xr(e.rawUserInfo||"{}"))||{}))}function ho(e){if(uo.call(this,e),"facebook.com"!=this.providerId)throw Error("Invalid provider ID!")}function po(e){if(uo.call(this,e),"github.com"!=this.providerId)throw Error("Invalid provider ID!");oi(this,"username",this.profile&&this.profile.login||null)}function fo(e){if(uo.call(this,e),"google.com"!=this.providerId)throw Error("Invalid provider ID!")}function go(e){if(uo.call(this,e),"twitter.com"!=this.providerId)throw Error("Invalid provider ID!");oi(this,"username",e.screenName||null)}function mo(e){var t=Yn(e),n=Xn(t,"link"),r=Xn(Yn(n),"link");return t=Xn(t,"deep_link_id"),Xn(Yn(t),"link")||t||r||n||e}function yo(e,t){if(!e&&!t)throw new P("internal-error","Internal assert: no raw session string available");if(e&&t)throw new P("internal-error","Internal assert: unable to determine the session type");this.a=e||null,this.b=t||null,this.type=this.a?vo:_o}w(uo,lo),w(ho,uo),w(po,uo),w(fo,uo),w(go,uo);var vo="enroll",_o="signin";function bo(){}function xo(e,t){return e.then((function(e){if(e[ca]){var n=Qi(e[ca]);if(!n||t!=n.i)throw new P("user-mismatch");return e}throw new P("user-mismatch")})).o((function(e){throw e&&e.code&&e.code==k+"user-not-found"?new P("user-mismatch"):e}))}function So(e,t){if(!t)throw new P("internal-error","failed to construct a credential");this.a=t,oi(this,"providerId",e),oi(this,"signInMethod",e)}function wo(e){return{pendingToken:e.a,requestUri:"http://localhost"}}function Eo(e){if(e&&e.providerId&&e.signInMethod&&0==e.providerId.indexOf("saml.")&&e.pendingToken)try{return new So(e.providerId,e.pendingToken)}catch(On){}return null}function Po(e,t,n){if(this.a=null,t.idToken||t.accessToken)t.idToken&&oi(this,"idToken",t.idToken),t.accessToken&&oi(this,"accessToken",t.accessToken),t.nonce&&!t.pendingToken&&oi(this,"nonce",t.nonce),t.pendingToken&&(this.a=t.pendingToken);else{if(!t.oauthToken||!t.oauthTokenSecret)throw new P("internal-error","failed to construct a credential");oi(this,"accessToken",t.oauthToken),oi(this,"secret",t.oauthTokenSecret)}oi(this,"providerId",e),oi(this,"signInMethod",n)}function Co(e){var t={};return e.idToken&&(t.id_token=e.idToken),e.accessToken&&(t.access_token=e.accessToken),e.secret&&(t.oauth_token_secret=e.secret),t.providerId=e.providerId,e.nonce&&!e.a&&(t.nonce=e.nonce),t={postBody:sr(t).toString(),requestUri:"http://localhost"},e.a&&(delete t.postBody,t.pendingToken=e.a),t}function Ao(e){if(e&&e.providerId&&e.signInMethod){var t={idToken:e.oauthIdToken,accessToken:e.oauthTokenSecret?null:e.oauthAccessToken,oauthTokenSecret:e.oauthTokenSecret,oauthToken:e.oauthTokenSecret&&e.oauthAccessToken,nonce:e.nonce,pendingToken:e.pendingToken};try{return new Po(e.providerId,t,e.signInMethod)}catch(Cn){}}return null}function ko(e,t){this.Qc=t||[],si(this,{providerId:e,isOAuthProvider:!0}),this.Jb={},this.qb=(io(e)||{}).Ja||null,this.pb=null}function jo(e){if("string"!==typeof e||0!=e.indexOf("saml."))throw new P("argument-error",'SAML provider IDs must be prefixed with "saml."');ko.call(this,e,[])}function Io(e){ko.call(this,e,no),this.a=[]}function Go(){Io.call(this,"facebook.com")}function To(e){if(!e)throw new P("argument-error","credential failed: expected 1 argument (the OAuth access token).");var t=e;return f(e)&&(t=e.accessToken),(new Go).credential({accessToken:t})}function Mo(){Io.call(this,"github.com")}function Oo(e){if(!e)throw new P("argument-error","credential failed: expected 1 argument (the OAuth access token).");var t=e;return f(e)&&(t=e.accessToken),(new Mo).credential({accessToken:t})}function Ro(){Io.call(this,"google.com"),this.Ca("profile")}function Do(e,t){var n=e;return f(e)&&(n=e.idToken,t=e.accessToken),(new Ro).credential({idToken:n,accessToken:t})}function No(){ko.call(this,"twitter.com",to)}function Lo(e,t){var n=e;if(f(n)||(n={oauthToken:e,oauthTokenSecret:t}),!n.oauthToken||!n.oauthTokenSecret)throw new P("argument-error","credential failed: expected 2 arguments (the OAuth access token and secret).");return new Po("twitter.com",n,"twitter.com")}function Vo(e,t,n){this.a=e,this.f=t,oi(this,"providerId","password"),oi(this,"signInMethod",n===zo.EMAIL_LINK_SIGN_IN_METHOD?zo.EMAIL_LINK_SIGN_IN_METHOD:zo.EMAIL_PASSWORD_SIGN_IN_METHOD)}function Fo(e){return e&&e.email&&e.password?new Vo(e.email,e.password,e.signInMethod):null}function zo(){si(this,{providerId:"password",isOAuthProvider:!1})}function Bo(e,t){if(!(t=Uo(t)))throw new P("argument-error","Invalid email link!");return new Vo(e,t.code,zo.EMAIL_LINK_SIGN_IN_METHOD)}function Uo(e){return(e=Li(e=mo(e)))&&e.operation===vi?e:null}function Wo(e){if(!(e.fb&&e.eb||e.La&&e.ea))throw new P("internal-error");this.a=e,oi(this,"providerId","phone"),this.fa="phone",oi(this,"signInMethod","phone")}function Ho(e){if(e&&"phone"===e.providerId&&(e.verificationId&&e.verificationCode||e.temporaryProof&&e.phoneNumber)){var t={};return U(["verificationId","verificationCode","temporaryProof","phoneNumber"],(function(n){e[n]&&(t[n]=e[n])})),new Wo(t)}return null}function qo(e){return e.a.La&&e.a.ea?{temporaryProof:e.a.La,phoneNumber:e.a.ea}:{sessionInfo:e.a.fb,code:e.a.eb}}function Xo(e){try{this.a=e||co.auth()}catch(On){throw new P("argument-error","Either an instance of firebase.auth.Auth must be passed as an argument to the firebase.auth.PhoneAuthProvider constructor, or the default firebase App instance must be initialized via firebase.initializeApp().")}si(this,{providerId:"phone",isOAuthProvider:!1})}function Yo(e,t){if(!e)throw new P("missing-verification-id");if(!t)throw new P("missing-verification-code");return new Wo({fb:e,eb:t})}function Ko(e){if(e.temporaryProof&&e.phoneNumber)return new Wo({La:e.temporaryProof,ea:e.phoneNumber});var t=e&&e.providerId;if(!t||"password"===t)return null;var n=e&&e.oauthAccessToken,r=e&&e.oauthTokenSecret,i=e&&e.nonce,o=e&&e.oauthIdToken,s=e&&e.pendingToken;try{switch(t){case"google.com":return Do(o,n);case"facebook.com":return To(n);case"github.com":return Oo(n);case"twitter.com":return Lo(n,r);default:return n||r||o||s?s?0==t.indexOf("saml.")?new So(t,s):new Po(t,{pendingToken:s,idToken:e.oauthIdToken,accessToken:e.oauthAccessToken},t):new Io(t).credential({idToken:o,accessToken:n,rawNonce:i}):null}}catch(Tn){return null}}function Zo(e){if(!e.isOAuthProvider)throw new P("invalid-oauth-provider")}function $o(e,t,n,r,i,o,s){if(this.c=e,this.b=t||null,this.g=n||null,this.f=r||null,this.i=o||null,this.h=s||null,this.a=i||null,!this.g&&!this.a)throw new P("invalid-auth-event");if(this.g&&this.a)throw new P("invalid-auth-event");if(this.g&&!this.f)throw new P("invalid-auth-event")}function Jo(e){return(e=e||{}).type?new $o(e.type,e.eventId,e.urlResponse,e.sessionId,e.error&&C(e.error),e.postBody,e.tenantId):null}function Qo(){this.b=null,this.a=[]}yo.prototype.Ha=function(){return this.a?At(this.a):At(this.b)},yo.prototype.w=function(){return this.type==vo?{multiFactorSession:{idToken:this.a}}:{multiFactorSession:{pendingCredential:this.b}}},bo.prototype.ka=function(){},bo.prototype.b=function(){},bo.prototype.c=function(){},bo.prototype.w=function(){},So.prototype.ka=function(e){return Ga(e,wo(this))},So.prototype.b=function(e,t){var n=wo(this);return n.idToken=t,Ta(e,n)},So.prototype.c=function(e,t){return xo(Ma(e,wo(this)),t)},So.prototype.w=function(){return{providerId:this.providerId,signInMethod:this.signInMethod,pendingToken:this.a}},Po.prototype.ka=function(e){return Ga(e,Co(this))},Po.prototype.b=function(e,t){var n=Co(this);return n.idToken=t,Ta(e,n)},Po.prototype.c=function(e,t){return xo(Ma(e,Co(this)),t)},Po.prototype.w=function(){var e={providerId:this.providerId,signInMethod:this.signInMethod};return this.idToken&&(e.oauthIdToken=this.idToken),this.accessToken&&(e.oauthAccessToken=this.accessToken),this.secret&&(e.oauthTokenSecret=this.secret),this.nonce&&(e.nonce=this.nonce),this.a&&(e.pendingToken=this.a),e},ko.prototype.Ka=function(e){return this.Jb=fe(e),this},w(jo,ko),w(Io,ko),Io.prototype.Ca=function(e){return X(this.a,e)||this.a.push(e),this},Io.prototype.Rb=function(){return $(this.a)},Io.prototype.credential=function(e,t){var n;if(!(n=f(e)?{idToken:e.idToken||null,accessToken:e.accessToken||null,nonce:e.rawNonce||null}:{idToken:e||null,accessToken:t||null}).idToken&&!n.accessToken)throw new P("argument-error","credential failed: must provide the ID token and/or the access token.");return new Po(this.providerId,n,this.providerId)},w(Go,Io),oi(Go,"PROVIDER_ID","facebook.com"),oi(Go,"FACEBOOK_SIGN_IN_METHOD","facebook.com"),w(Mo,Io),oi(Mo,"PROVIDER_ID","github.com"),oi(Mo,"GITHUB_SIGN_IN_METHOD","github.com"),w(Ro,Io),oi(Ro,"PROVIDER_ID","google.com"),oi(Ro,"GOOGLE_SIGN_IN_METHOD","google.com"),w(No,ko),oi(No,"PROVIDER_ID","twitter.com"),oi(No,"TWITTER_SIGN_IN_METHOD","twitter.com"),Vo.prototype.ka=function(e){return this.signInMethod==zo.EMAIL_LINK_SIGN_IN_METHOD?fl(e,za,{email:this.a,oobCode:this.f}):fl(e,cl,{email:this.a,password:this.f})},Vo.prototype.b=function(e,t){return this.signInMethod==zo.EMAIL_LINK_SIGN_IN_METHOD?fl(e,Ba,{idToken:t,email:this.a,oobCode:this.f}):fl(e,tl,{idToken:t,email:this.a,password:this.f})},Vo.prototype.c=function(e,t){return xo(this.ka(e),t)},Vo.prototype.w=function(){return{email:this.a,password:this.f,signInMethod:this.signInMethod}},si(zo,{PROVIDER_ID:"password"}),si(zo,{EMAIL_LINK_SIGN_IN_METHOD:"emailLink"}),si(zo,{EMAIL_PASSWORD_SIGN_IN_METHOD:"password"}),Wo.prototype.ka=function(e){return e.gb(qo(this))},Wo.prototype.b=function(e,t){var n=qo(this);return n.idToken=t,fl(e,dl,n)},Wo.prototype.c=function(e,t){var n=qo(this);return n.operation="REAUTH",xo(e=fl(e,hl,n),t)},Wo.prototype.w=function(){var e={providerId:"phone"};return this.a.fb&&(e.verificationId=this.a.fb),this.a.eb&&(e.verificationCode=this.a.eb),this.a.La&&(e.temporaryProof=this.a.La),this.a.ea&&(e.phoneNumber=this.a.ea),e},Xo.prototype.gb=function(e,t){var n=this.a.a;return At(t.verify()).then((function(r){if("string"!==typeof r)throw new P("argument-error","An implementation of firebase.auth.ApplicationVerifier.prototype.verify() must return a firebase.Promise that resolves with a string.");if("recaptcha"===t.type){var i,o=f(e)?e.session:null,s=f(e)?e.phoneNumber:e;return i=o&&o.type==vo?o.Ha().then((function(e){return function(e,t){return fl(e,rl,t).then((function(e){return e.phoneSessionInfo.sessionInfo}))}(n,{idToken:e,phoneEnrollmentInfo:{phoneNumber:s,recaptchaToken:r}})})):o&&o.type==_o?o.Ha().then((function(t){return function(e,t){return fl(e,il,t).then((function(e){return e.phoneResponseInfo.sessionInfo}))}(n,{mfaPendingCredential:t,mfaEnrollmentId:e.multiFactorHint&&e.multiFactorHint.uid||e.multiFactorUid,phoneSignInInfo:{recaptchaToken:r}})})):function(e,t){return fl(e,Qa,t)}(n,{phoneNumber:s,recaptchaToken:r}),i.then((function(e){return"function"===typeof t.reset&&t.reset(),e}),(function(e){throw"function"===typeof t.reset&&t.reset(),e}))}throw new P("argument-error",'Only firebase.auth.ApplicationVerifiers with type="recaptcha" are currently supported.')}))},si(Xo,{PROVIDER_ID:"phone"}),si(Xo,{PHONE_SIGN_IN_METHOD:"phone"}),$o.prototype.getUid=function(){var e=[];return e.push(this.c),this.b&&e.push(this.b),this.f&&e.push(this.f),this.h&&e.push(this.h),e.join("-")},$o.prototype.T=function(){return this.h},$o.prototype.w=function(){return{type:this.c,eventId:this.b,urlResponse:this.g,sessionId:this.f,postBody:this.i,tenantId:this.h,error:this.a&&this.a.w()}};var es,ts=null;function ns(e){var t="unauthorized-domain",n=void 0,r=Yn(e);e=r.a,"chrome-extension"==(r=r.c)?n=Be("This chrome extension ID (chrome-extension://%s) is not authorized to run this operation. Add it to the OAuth redirect domains list in the Firebase console -> Auth section -> Sign in method tab.",e):"http"==r||"https"==r?n=Be("This domain (%s) is not authorized to run this operation. Add it to the OAuth redirect domains list in the Firebase console -> Auth section -> Sign in method tab.",e):t="operation-not-supported-in-this-environment",P.call(this,t,n)}function rs(e,t,n){P.call(this,e,n),(e=t||{}).Kb&&oi(this,"email",e.Kb),e.ea&&oi(this,"phoneNumber",e.ea),e.credential&&oi(this,"credential",e.credential),e.$b&&oi(this,"tenantId",e.$b)}function is(e){if(e.code){var t=e.code||"";0==t.indexOf(k)&&(t=t.substring(k.length));var n={credential:Ko(e),$b:e.tenantId};if(e.email)n.Kb=e.email;else if(e.phoneNumber)n.ea=e.phoneNumber;else if(!n.credential)return new P(t,e.message||void 0);return new rs(t,n,e.message)}return null}function os(){}function ss(e){return e.c||(e.c=e.b())}function as(){}function ls(e){if(!e.f&&"undefined"==typeof XMLHttpRequest&&"undefined"!=typeof ActiveXObject){for(var t=["MSXML2.XMLHTTP.6.0","MSXML2.XMLHTTP.3.0","MSXML2.XMLHTTP","Microsoft.XMLHTTP"],n=0;n<t.length;n++){var r=t[n];try{return new ActiveXObject(r),e.f=r}catch(i){}}throw Error("Could not create ActiveXObject. ActiveX might be disabled, or MSXML might not be installed")}return e.f}function cs(){}function us(){this.a=new XDomainRequest,this.readyState=0,this.onreadystatechange=null,this.responseType=this.responseText=this.response="",this.status=-1,this.statusText="",this.a.onload=b(this.qc,this),this.a.onerror=b(this.Tb,this),this.a.onprogress=b(this.rc,this),this.a.ontimeout=b(this.vc,this)}function ds(e,t){e.readyState=t,e.onreadystatechange&&e.onreadystatechange()}function hs(e,t,n){this.reset(e,t,n,void 0,void 0)}w(ns,P),w(rs,P),rs.prototype.w=function(){var e={code:this.code,message:this.message};this.email&&(e.email=this.email),this.phoneNumber&&(e.phoneNumber=this.phoneNumber),this.tenantId&&(e.tenantId=this.tenantId);var t=this.credential&&this.credential.w();return t&&me(e,t),e},rs.prototype.toJSON=function(){return this.w()},os.prototype.c=null,w(as,os),as.prototype.a=function(){var e=ls(this);return e?new ActiveXObject(e):new XMLHttpRequest},as.prototype.b=function(){var e={};return ls(this)&&(e[0]=!0,e[1]=!0),e},es=new as,w(cs,os),cs.prototype.a=function(){var e=new XMLHttpRequest;if("withCredentials"in e)return e;if("undefined"!=typeof XDomainRequest)return new us;throw Error("Unsupported browser")},cs.prototype.b=function(){return{}},(e=us.prototype).open=function(e,t,n){if(null!=n&&!n)throw Error("Only async requests are supported.");this.a.open(e,t)},e.send=function(e){if(e){if("string"!=typeof e)throw Error("Only string data is supported");this.a.send(e)}else this.a.send()},e.abort=function(){this.a.abort()},e.setRequestHeader=function(){},e.getResponseHeader=function(e){return"content-type"==e.toLowerCase()?this.a.contentType:""},e.qc=function(){this.status=200,this.response=this.responseText=this.a.responseText,ds(this,4)},e.Tb=function(){this.status=500,this.response=this.responseText="",ds(this,4)},e.vc=function(){this.Tb()},e.rc=function(){this.status=200,ds(this,1)},e.getAllResponseHeaders=function(){return"content-type: "+this.a.contentType},hs.prototype.a=null;function ps(e){this.f=e,this.b=this.c=this.a=null}function fs(e,t){this.name=e,this.value=t}hs.prototype.reset=function(e,t,n,r,i){"number"==typeof i||0,r||S(),delete this.a},fs.prototype.toString=function(){return this.name};var gs=new fs("SEVERE",1e3),ms=new fs("WARNING",900),ys=new fs("CONFIG",700),vs=new fs("FINE",500);function _s(e){return e.c?e.c:e.a?_s(e.a):(R("Root logger has no level set."),null)}ps.prototype.log=function(e,t,n){if(e.value>=_s(this).value)for(p(t)&&(t=t()),e=new hs(e,String(t),this.f),n&&(e.a=n),n=this;n;)n=n.a};var bs={},xs=null;function Ss(e){var t;if(xs||(xs=new ps(""),bs[""]=xs,xs.c=ys),!(t=bs[e])){t=new ps(e);var n=e.lastIndexOf("."),r=e.substr(n+1);(n=Ss(e.substr(0,n))).b||(n.b={}),n.b[r]=t,t.a=n,bs[e]=t}return t}function ws(e,t){e&&e.log(vs,t,void 0)}function Es(e){this.f=e}function Ps(e){xn.call(this),this.u=e,this.h=void 0,this.readyState=Cs,this.status=0,this.responseType=this.responseText=this.response=this.statusText="",this.onreadystatechange=null,this.l=new Headers,this.b=null,this.s="GET",this.f="",this.a=!1,this.i=Ss("goog.net.FetchXmlHttp"),this.m=this.c=this.g=null}w(Es,os),Es.prototype.a=function(){return new Ps(this.f)},Es.prototype.b=function(e){return function(){return e}}({}),w(Ps,xn);var Cs=0;function As(e){e.c.read().then(e.pc.bind(e)).catch(e.Va.bind(e))}function ks(e){e.readyState=4,e.g=null,e.c=null,e.m=null,js(e)}function js(e){e.onreadystatechange&&e.onreadystatechange.call(e)}function Is(e){xn.call(this),this.headers=new Nn,this.D=e||null,this.c=!1,this.C=this.a=null,this.h=this.P=this.l="",this.f=this.N=this.i=this.J=!1,this.g=0,this.s=null,this.m=Gs,this.u=this.S=!1}(e=Ps.prototype).open=function(e,t){if(this.readyState!=Cs)throw this.abort(),Error("Error reopening a connection");this.s=e,this.f=t,this.readyState=1,js(this)},e.send=function(e){if(1!=this.readyState)throw this.abort(),Error("need to call open() first. ");this.a=!0;var t={headers:this.l,method:this.s,credentials:this.h,cache:void 0};e&&(t.body=e),this.u.fetch(new Request(this.f,t)).then(this.uc.bind(this),this.Va.bind(this))},e.abort=function(){this.response=this.responseText="",this.l=new Headers,this.status=0,this.c&&this.c.cancel("Request was aborted."),1<=this.readyState&&this.a&&4!=this.readyState&&(this.a=!1,ks(this)),this.readyState=Cs},e.uc=function(e){this.a&&(this.g=e,this.b||(this.status=this.g.status,this.statusText=this.g.statusText,this.b=e.headers,this.readyState=2,js(this)),this.a&&(this.readyState=3,js(this),this.a&&("arraybuffer"===this.responseType?e.arrayBuffer().then(this.sc.bind(this),this.Va.bind(this)):"undefined"!==typeof s.ReadableStream&&"body"in e?(this.response=this.responseText="",this.c=e.body.getReader(),this.m=new TextDecoder,As(this)):e.text().then(this.tc.bind(this),this.Va.bind(this)))))},e.pc=function(e){if(this.a){var t=this.m.decode(e.value?e.value:new Uint8Array(0),{stream:!e.done});t&&(this.response=this.responseText+=t),e.done?ks(this):js(this),3==this.readyState&&As(this)}},e.tc=function(e){this.a&&(this.response=this.responseText=e,ks(this))},e.sc=function(e){this.a&&(this.response=e,ks(this))},e.Va=function(e){var t=this.i;t&&t.log(ms,"Failed to fetch url "+this.f,e instanceof Error?e:Error(e)),this.a&&ks(this)},e.setRequestHeader=function(e,t){this.l.append(e,t)},e.getResponseHeader=function(e){return this.b?this.b.get(e.toLowerCase())||"":((e=this.i)&&e.log(ms,"Attempting to get response header but no headers have been received for url: "+this.f,void 0),"")},e.getAllResponseHeaders=function(){if(!this.b){var e=this.i;return e&&e.log(ms,"Attempting to get all response headers but no headers have been received for url: "+this.f,void 0),""}e=[];for(var t=this.b.entries(),n=t.next();!n.done;)n=n.value,e.push(n[0]+": "+n[1]),n=t.next();return e.join("\r\n")},Object.defineProperty(Ps.prototype,"withCredentials",{get:function(){return"include"===this.h},set:function(e){this.h=e?"include":"same-origin"}}),w(Is,xn);var Gs="";Is.prototype.b=Ss("goog.net.XhrIo");var Ts=/^https?$/i,Ms=["POST","PUT"];function Os(e,t,n,r,i){if(e.a)throw Error("[goog.net.XhrIo] Object is active with another request="+e.l+"; newUri="+t);n=n?n.toUpperCase():"GET",e.l=t,e.h="",e.P=n,e.J=!1,e.c=!0,e.a=e.D?e.D.a():es.a(),e.C=e.D?ss(e.D):ss(es),e.a.onreadystatechange=b(e.Wb,e);try{ws(e.b,Us(e,"Opening Xhr")),e.N=!0,e.a.open(n,String(t),!0),e.N=!1}catch(Vn){return ws(e.b,Us(e,"Error opening Xhr: "+Vn.message)),void Ds(e,Vn)}t=r||"";var o=new Nn(e.headers);i&&function(e,t){if(e.forEach&&"function"==typeof e.forEach)e.forEach(t,void 0);else if(h(e)||"string"===typeof e)U(e,t,void 0);else for(var n=Dn(e),r=Mn(e),i=r.length,o=0;o<i;o++)t.call(void 0,r[o],n&&n[o],e)}(i,(function(e,t){o.set(t,e)})),i=function(e){e:{for(var t=Rs,n=e.length,r="string"===typeof e?e.split(""):e,i=0;i<n;i++)if(i in r&&t.call(void 0,r[i],i,e)){t=i;break e}t=-1}return 0>t?null:"string"===typeof e?e.charAt(t):e[t]}(o.Y()),r=s.FormData&&t instanceof s.FormData,!X(Ms,n)||i||r||o.set("Content-Type","application/x-www-form-urlencoded;charset=utf-8"),o.forEach((function(e,t){this.a.setRequestHeader(t,e)}),e),e.m&&(e.a.responseType=e.m),"withCredentials"in e.a&&e.a.withCredentials!==e.S&&(e.a.withCredentials=e.S);try{Fs(e),0<e.g&&(e.u=function(e){return Xe&&it(9)&&"number"===typeof e.timeout&&void 0!==e.ontimeout}(e.a),ws(e.b,Us(e,"Will abort after "+e.g+"ms if incomplete, xhr2 "+e.u)),e.u?(e.a.timeout=e.g,e.a.ontimeout=b(e.Ma,e)):e.s=kn(e.Ma,e.g,e)),ws(e.b,Us(e,"Sending request")),e.i=!0,e.a.send(t),e.i=!1}catch(Vn){ws(e.b,Us(e,"Send error: "+Vn.message)),Ds(e,Vn)}}function Rs(e){return"content-type"==e.toLowerCase()}function Ds(e,t){e.c=!1,e.a&&(e.f=!0,e.a.abort(),e.f=!1),e.h=t,Ns(e),Vs(e)}function Ns(e){e.J||(e.J=!0,e.dispatchEvent("complete"),e.dispatchEvent("error"))}function Ls(e){if(e.c&&"undefined"!=typeof o)if(e.C[1]&&4==zs(e)&&2==Bs(e))ws(e.b,Us(e,"Local request error detected and ignored"));else if(e.i&&4==zs(e))kn(e.Wb,0,e);else if(e.dispatchEvent("readystatechange"),4==zs(e)){ws(e.b,Us(e,"Request complete")),e.c=!1;try{var t,n=Bs(e);e:switch(n){case 200:case 201:case 202:case 204:case 206:case 304:case 1223:var r=!0;break e;default:r=!1}if(!(t=r)){var i;if(i=0===n){var a=String(e.l).match(zn)[1]||null;if(!a&&s.self&&s.self.location){var l=s.self.location.protocol;a=l.substr(0,l.length-1)}i=!Ts.test(a?a.toLowerCase():"")}t=i}if(t)e.dispatchEvent("complete"),e.dispatchEvent("success");else{try{var c=2<zs(e)?e.a.statusText:""}catch(Rn){ws(e.b,"Can not get status: "+Rn.message),c=""}e.h=c+" ["+Bs(e)+"]",Ns(e)}}finally{Vs(e)}}}function Vs(e,t){if(e.a){Fs(e);var n=e.a,r=e.C[0]?u:null;e.a=null,e.C=null,t||e.dispatchEvent("ready");try{n.onreadystatechange=r}catch(i){(e=e.b)&&e.log(gs,"Problem encountered resetting onreadystatechange: "+i.message,void 0)}}}function Fs(e){e.a&&e.u&&(e.a.ontimeout=null),e.s&&(s.clearTimeout(e.s),e.s=null)}function zs(e){return e.a?e.a.readyState:0}function Bs(e){try{return 2<zs(e)?e.a.status:-1}catch(On){return-1}}function Us(e,t){return t+" ["+e.P+" "+e.l+" "+Bs(e)+"]"}function Ws(e){var t=ta;this.g=[],this.u=t,this.s=e||null,this.f=this.a=!1,this.c=void 0,this.v=this.C=this.i=!1,this.h=0,this.b=null,this.l=0}function Hs(e,t,n){e.a=!0,e.c=n,e.f=!t,Ks(e)}function qs(e){if(e.a){if(!e.v)throw new Zs(e);e.v=!1}}function Xs(e,t,n,r){e.g.push([t,n,r]),e.a&&Ks(e)}function Ys(e){return q(e.g,(function(e){return p(e[1])}))}function Ks(e){if(e.h&&e.a&&Ys(e)){var t=e.h,n=Qs[t];n&&(s.clearTimeout(n.a),delete Qs[t]),e.h=0}e.b&&(e.b.l--,delete e.b),t=e.c;for(var r=n=!1;e.g.length&&!e.i;){var i=e.g.shift(),o=i[0],a=i[1];if(i=i[2],o=e.f?a:o)try{var l=o.call(i||e.s,t);void 0!==l&&(e.f=e.f&&(l==t||l instanceof Error),e.c=t=l),(T(t)||"function"===typeof s.Promise&&t instanceof s.Promise)&&(r=!0,e.i=!0)}catch(Rn){t=Rn,e.f=!0,Ys(e)||(n=!0)}}e.c=t,r&&(l=b(e.m,e,!0),r=b(e.m,e,!1),t instanceof Ws?(Xs(t,l,r),t.C=!0):t.then(l,r)),n&&(t=new Js(t),Qs[t.a]=t,e.h=t.a)}function Zs(){M.call(this)}function $s(){M.call(this)}function Js(e){this.a=s.setTimeout(b(this.c,this),0),this.b=e}(e=Is.prototype).Ma=function(){"undefined"!=typeof o&&this.a&&(this.h="Timed out after "+this.g+"ms, aborting",ws(this.b,Us(this,this.h)),this.dispatchEvent("timeout"),this.abort(8))},e.abort=function(){this.a&&this.c&&(ws(this.b,Us(this,"Aborting")),this.c=!1,this.f=!0,this.a.abort(),this.f=!1,this.dispatchEvent("complete"),this.dispatchEvent("abort"),Vs(this))},e.Da=function(){this.a&&(this.c&&(this.c=!1,this.f=!0,this.a.abort(),this.f=!1),Vs(this,!0)),Is.bb.Da.call(this)},e.Wb=function(){this.ya||(this.N||this.i||this.f?Ls(this):this.Jc())},e.Jc=function(){Ls(this)},e.getResponse=function(){try{if(!this.a)return null;if("response"in this.a)return this.a.response;switch(this.m){case Gs:case"text":return this.a.responseText;case"arraybuffer":if("mozResponseArrayBuffer"in this.a)return this.a.mozResponseArrayBuffer}var e=this.b;return e&&e.log(gs,"Response type "+this.m+" is not supported on this browser",void 0),null}catch(On){return ws(this.b,"Can not get response: "+On.message),null}},Ws.prototype.cancel=function(e){if(this.a)this.c instanceof Ws&&this.c.cancel();else{if(this.b){var t=this.b;delete this.b,e?t.cancel(e):(t.l--,0>=t.l&&t.cancel())}this.u?this.u.call(this.s,this):this.v=!0,this.a||(e=new $s(this),qs(this),Hs(this,!1,e))}},Ws.prototype.m=function(e,t){this.i=!1,Hs(this,e,t)},Ws.prototype.then=function(e,t,n){var r,i,o=new bt((function(e,t){r=e,i=t}));return Xs(this,r,(function(e){e instanceof $s?o.cancel():i(e)})),o.then(e,t,n)},Ws.prototype.$goog_Thenable=!0,w(Zs,M),Zs.prototype.message="Deferred has already fired",Zs.prototype.name="AlreadyCalledError",w($s,M),$s.prototype.message="Deferred was canceled",$s.prototype.name="CanceledError",Js.prototype.c=function(){throw delete Qs[this.a],this.b};var Qs={};function ea(e){var t={},n=t.document||document,r=Pe(e).toString(),i=ft(document,"SCRIPT"),o={Xb:i,Ma:void 0},a=new Ws(o),u=null,d=null!=t.timeout?t.timeout:5e3;return 0<d&&(u=window.setTimeout((function(){na(i,!0);var e=new oa(ia,"Timeout reached for loading script "+r);qs(a),Hs(a,!1,e)}),d),o.Ma=u),i.onload=i.onreadystatechange=function(){i.readyState&&"loaded"!=i.readyState&&"complete"!=i.readyState||(na(i,t.xd||!1,u),qs(a),Hs(a,!0,null))},i.onerror=function(){na(i,!0,u);var e=new oa(ra,"Error while loading script "+r);qs(a),Hs(a,!1,e)},me(o=t.attributes||{},{type:"text/javascript",charset:"UTF-8"}),ct(i,o),function(e,t){ye(e,"HTMLScriptElement"),e.src=Pe(t),(t=e.ownerDocument&&e.ownerDocument.defaultView)&&t!=s?t=c(t.document):(null===l&&(l=c(s.document)),t=l),t&&e.setAttribute("nonce",t)}(i,e),function(e){var t;return(t=(e||document).getElementsByTagName("HEAD"))&&0!=t.length?t[0]:e.documentElement}(n).appendChild(i),a}function ta(){if(this&&this.Xb){var e=this.Xb;e&&"SCRIPT"==e.tagName&&na(e,!0,this.Ma)}}function na(e,t,n){null!=n&&s.clearTimeout(n),e.onload=u,e.onerror=u,e.onreadystatechange=u,t&&window.setTimeout((function(){e&&e.parentNode&&e.parentNode.removeChild(e)}),0)}var ra=0,ia=1;function oa(e,t){var n="Jsloader error (code #"+e+")";t&&(n+=": "+t),M.call(this,n),this.code=e}function sa(e){this.f=e}function aa(e,t,n){if(this.c=e,e=t||{},this.l=e.secureTokenEndpoint||"https://securetoken.googleapis.com/v1/token",this.m=e.secureTokenTimeout||ua,this.g=fe(e.secureTokenHeaders||da),this.h=e.firebaseEndpoint||"https://www.googleapis.com/identitytoolkit/v3/relyingparty/",this.i=e.identityPlatformEndpoint||"https://identitytoolkit.googleapis.com/v2/",this.v=e.firebaseTimeout||ha,this.a=fe(e.firebaseHeaders||pa),n&&(this.a["X-Client-Version"]=n,this.g["X-Client-Version"]=n),n="Node"==Gr(),!(n=s.XMLHttpRequest||n&&co.INTERNAL.node&&co.INTERNAL.node.XMLHttpRequest)&&!Ir())throw new P("internal-error","The XMLHttpRequest compatibility library was not found.");this.f=void 0,Ir()?this.f=new Es(self):Tr()?this.f=new sa(n):this.f=new cs,this.b=null}w(oa,M),w(sa,os),sa.prototype.a=function(){return new this.f},sa.prototype.b=function(){return{}};var la,ca="idToken",ua=new $r(3e4,6e4),da={"Content-Type":"application/x-www-form-urlencoded"},ha=new $r(3e4,6e4),pa={"Content-Type":"application/json"};function fa(e,t){t?e.a["X-Firebase-Locale"]=t:delete e.a["X-Firebase-Locale"]}function ga(e,t){t&&(e.l=ma("https://securetoken.googleapis.com/v1/token",t),e.h=ma("https://www.googleapis.com/identitytoolkit/v3/relyingparty/",t),e.i=ma("https://identitytoolkit.googleapis.com/v2/",t))}function ma(e,t){return e=Yn(e),t=Yn(t.url),e.f=e.a+e.f,Un(e,t.c),e.a=t.a,Wn(e,t.g),e.toString()}function ya(e,t){t?(e.a["X-Client-Version"]=t,e.g["X-Client-Version"]=t):(delete e.a["X-Client-Version"],delete e.g["X-Client-Version"])}function va(e,t,n,r,i,o,a){(function(){var e=Lr();return!((e=Rr(e)!=Or?null:(e=e.match(/\sChrome\/(\d+)/i))&&2==e.length?parseInt(e[1],10):null)&&30>e)&&(!Xe||!st||9<st)})()||Ir()?e=b(e.u,e):(la||(la=new bt((function(e,t){!function(e,t){if(((window.gapi||{}).client||{}).request)e();else{s[ba]=function(){((window.gapi||{}).client||{}).request?e():t(Error("CORS_UNSUPPORTED"))},function(e,t){Xs(e,null,t,void 0)}(ea(Ce(_a,{onload:ba})),(function(){t(Error("CORS_UNSUPPORTED"))}))}}(e,t)}))),e=b(e.s,e)),e(t,n,r,i,o,a)}aa.prototype.T=function(){return this.b},aa.prototype.u=function(e,t,n,r,i,o){if(Ir()&&("undefined"===typeof s.fetch||"undefined"===typeof s.Headers||"undefined"===typeof s.Request))throw new P("operation-not-supported-in-this-environment","fetch, Headers and Request native APIs or equivalent Polyfills must be available to support HTTP requests from a Worker environment.");var a=new Is(this.f);if(o){a.g=Math.max(0,o);var l=setTimeout((function(){a.dispatchEvent("timeout")}),o)}Sn(a,"complete",(function(){l&&clearTimeout(l);var e=null;try{e=JSON.parse(function(e){try{return e.a?e.a.responseText:""}catch(t){return ws(e.b,"Can not get responseText: "+t.message),""}}(this))||null}catch(jn){e=null}t&&t(e)})),wn(a,"ready",(function(){l&&clearTimeout(l),Ht(this)})),wn(a,"timeout",(function(){l&&clearTimeout(l),Ht(this),t&&t(null)})),Os(a,e,n,r,i)};var _a=new ve(Se,"https://apis.google.com/js/client.js?onload=%{onload}"),ba="__fcb"+Math.floor(1e6*Math.random()).toString();function xa(e,t,n,r,i,o,s){var a=Yn(t+n);qn(a,"key",e.c),s&&qn(a,"cb",Date.now().toString());var l="GET"==r;if(l)for(var c in i)i.hasOwnProperty(c)&&qn(a,c,i[c]);return new bt((function(t,n){va(e,a.toString(),(function(e){e?e.error?n(ml(e,o||{})):t(e):n(new P("network-request-failed"))}),r,l?void 0:hr(qr(i)),e.a,e.v.get())}))}function Sa(e){if("string"!==typeof(e=e.email)||!Cr.test(e))throw new P("invalid-email")}function wa(e){"email"in e&&Sa(e)}function Ea(e){if(!e[ca]){if(e.mfaPendingCredential)throw new P("multi-factor-auth-required",null,fe(e));throw new P("internal-error")}}function Pa(e){if(e.phoneNumber||e.temporaryProof){if(!e.phoneNumber||!e.temporaryProof)throw new P("internal-error")}else{if(!e.sessionInfo)throw new P("missing-verification-id");if(!e.code)throw new P("missing-verification-code")}}aa.prototype.s=function(e,t,n,r,i){var o=this;la.then((function(){window.gapi.client.setApiKey(o.c);var s=window.gapi.auth.getToken();window.gapi.auth.setToken(null),window.gapi.client.request({path:e,method:n,body:r,headers:i,authType:"none",callback:function(e){window.gapi.auth.setToken(s),t&&t(e)}})})).o((function(e){t&&t({error:{message:e&&e.message||"CORS_UNSUPPORTED"}})}))},aa.prototype.Ab=function(){return fl(this,nl,{})},aa.prototype.Cb=function(e,t){return fl(this,el,{idToken:e,email:t})},aa.prototype.Db=function(e,t){return fl(this,tl,{idToken:e,password:t})};var Ca={displayName:"DISPLAY_NAME",photoUrl:"PHOTO_URL"};function Aa(e){if(!e.phoneVerificationInfo)throw new P("internal-error");if(!e.phoneVerificationInfo.sessionInfo)throw new P("missing-verification-id");if(!e.phoneVerificationInfo.code)throw new P("missing-verification-code")}function ka(e){if(!e.requestUri||!e.sessionId&&!e.postBody&&!e.pendingToken)throw new P("internal-error")}function ja(e,t){return t.oauthIdToken&&t.providerId&&0==t.providerId.indexOf("oidc.")&&!t.pendingToken&&(e.sessionId?t.nonce=e.sessionId:e.postBody&&(lr(e=new ir(e.postBody),"nonce")&&(t.nonce=e.get("nonce")))),t}function Ia(e){var t=null;if(e.needConfirmation?(e.code="account-exists-with-different-credential",t=is(e)):"FEDERATED_USER_ID_ALREADY_LINKED"==e.errorMessage?(e.code="credential-already-in-use",t=is(e)):"EMAIL_EXISTS"==e.errorMessage?(e.code="email-already-in-use",t=is(e)):e.errorMessage&&(t=gl(e.errorMessage)),t)throw t;Ea(e)}function Ga(e,t){return t.returnIdpCredential=!0,fl(e,ol,t)}function Ta(e,t){return t.returnIdpCredential=!0,fl(e,al,t)}function Ma(e,t){return t.returnIdpCredential=!0,t.autoCreate=!1,fl(e,sl,t)}function Oa(e){if(!e.oobCode)throw new P("invalid-action-code")}(e=aa.prototype).Eb=function(e,t){var n={idToken:e},r=[];return he(Ca,(function(e,i){var o=t[i];null===o?r.push(e):i in t&&(n[i]=o)})),r.length&&(n.deleteAttribute=r),fl(this,el,n)},e.wb=function(e,t){return me(e={requestType:"PASSWORD_RESET",email:e},t),fl(this,Ka,e)},e.xb=function(e,t){return me(e={requestType:"EMAIL_SIGNIN",email:e},t),fl(this,qa,e)},e.vb=function(e,t){return me(e={requestType:"VERIFY_EMAIL",idToken:e},t),fl(this,Xa,e)},e.Fb=function(e,t,n){return me(e={requestType:"VERIFY_AND_CHANGE_EMAIL",idToken:e,newEmail:t},n),fl(this,Ya,e)},e.gb=function(e){return fl(this,ul,e)},e.ob=function(e,t){return fl(this,Ja,{oobCode:e,newPassword:t})},e.Sa=function(e){return fl(this,Da,{oobCode:e})},e.kb=function(e){return fl(this,Ra,{oobCode:e})};var Ra={endpoint:"setAccountInfo",A:Oa,Z:"email",B:!0},Da={endpoint:"resetPassword",A:Oa,G:function(e){var t=e.requestType;if(!t||!e.email&&"EMAIL_SIGNIN"!=t&&"VERIFY_AND_CHANGE_EMAIL"!=t)throw new P("internal-error")},B:!0},Na={endpoint:"signupNewUser",A:function(e){if(Sa(e),!e.password)throw new P("weak-password")},G:Ea,V:!0,B:!0},La={endpoint:"createAuthUri",B:!0},Va={endpoint:"deleteAccount",O:["idToken"]},Fa={endpoint:"setAccountInfo",O:["idToken","deleteProvider"],A:function(e){if(!Array.isArray(e.deleteProvider))throw new P("internal-error")}},za={endpoint:"emailLinkSignin",O:["email","oobCode"],A:Sa,G:Ea,V:!0,B:!0},Ba={endpoint:"emailLinkSignin",O:["idToken","email","oobCode"],A:Sa,G:Ea,V:!0},Ua={endpoint:"accounts/mfaEnrollment:finalize",O:["idToken","phoneVerificationInfo"],A:Aa,G:Ea,B:!0,Na:!0},Wa={endpoint:"accounts/mfaSignIn:finalize",O:["mfaPendingCredential","phoneVerificationInfo"],A:Aa,G:Ea,B:!0,Na:!0},Ha={endpoint:"getAccountInfo"},qa={endpoint:"getOobConfirmationCode",O:["requestType"],A:function(e){if("EMAIL_SIGNIN"!=e.requestType)throw new P("internal-error");Sa(e)},Z:"email",B:!0},Xa={endpoint:"getOobConfirmationCode",O:["idToken","requestType"],A:function(e){if("VERIFY_EMAIL"!=e.requestType)throw new P("internal-error")},Z:"email",B:!0},Ya={endpoint:"getOobConfirmationCode",O:["idToken","newEmail","requestType"],A:function(e){if("VERIFY_AND_CHANGE_EMAIL"!=e.requestType)throw new P("internal-error")},Z:"email",B:!0},Ka={endpoint:"getOobConfirmationCode",O:["requestType"],A:function(e){if("PASSWORD_RESET"!=e.requestType)throw new P("internal-error");Sa(e)},Z:"email",B:!0},Za={mb:!0,endpoint:"getProjectConfig",Vb:"GET"},$a={mb:!0,endpoint:"getRecaptchaParam",Vb:"GET",G:function(e){if(!e.recaptchaSiteKey)throw new P("internal-error")}},Ja={endpoint:"resetPassword",A:Oa,Z:"email",B:!0},Qa={endpoint:"sendVerificationCode",O:["phoneNumber","recaptchaToken"],Z:"sessionInfo",B:!0},el={endpoint:"setAccountInfo",O:["idToken"],A:wa,V:!0},tl={endpoint:"setAccountInfo",O:["idToken"],A:function(e){if(wa(e),!e.password)throw new P("weak-password")},G:Ea,V:!0},nl={endpoint:"signupNewUser",G:Ea,V:!0,B:!0},rl={endpoint:"accounts/mfaEnrollment:start",O:["idToken","phoneEnrollmentInfo"],A:function(e){if(!e.phoneEnrollmentInfo)throw new P("internal-error");if(!e.phoneEnrollmentInfo.phoneNumber)throw new P("missing-phone-number");if(!e.phoneEnrollmentInfo.recaptchaToken)throw new P("missing-app-credential")},G:function(e){if(!e.phoneSessionInfo||!e.phoneSessionInfo.sessionInfo)throw new P("internal-error")},B:!0,Na:!0},il={endpoint:"accounts/mfaSignIn:start",O:["mfaPendingCredential","mfaEnrollmentId","phoneSignInInfo"],A:function(e){if(!e.phoneSignInInfo||!e.phoneSignInInfo.recaptchaToken)throw new P("missing-app-credential")},G:function(e){if(!e.phoneResponseInfo||!e.phoneResponseInfo.sessionInfo)throw new P("internal-error")},B:!0,Na:!0},ol={endpoint:"verifyAssertion",A:ka,Za:ja,G:Ia,V:!0,B:!0},sl={endpoint:"verifyAssertion",A:ka,Za:ja,G:function(e){if(e.errorMessage&&"USER_NOT_FOUND"==e.errorMessage)throw new P("user-not-found");if(e.errorMessage)throw gl(e.errorMessage);Ea(e)},V:!0,B:!0},al={endpoint:"verifyAssertion",A:function(e){if(ka(e),!e.idToken)throw new P("internal-error")},Za:ja,G:Ia,V:!0},ll={endpoint:"verifyCustomToken",A:function(e){if(!e.token)throw new P("invalid-custom-token")},G:Ea,V:!0,B:!0},cl={endpoint:"verifyPassword",A:function(e){if(Sa(e),!e.password)throw new P("wrong-password")},G:Ea,V:!0,B:!0},ul={endpoint:"verifyPhoneNumber",A:Pa,G:Ea,B:!0},dl={endpoint:"verifyPhoneNumber",A:function(e){if(!e.idToken)throw new P("internal-error");Pa(e)},G:function(e){if(e.temporaryProof)throw e.code="credential-already-in-use",is(e);Ea(e)}},hl={Ib:{USER_NOT_FOUND:"user-not-found"},endpoint:"verifyPhoneNumber",A:Pa,G:Ea,B:!0},pl={endpoint:"accounts/mfaEnrollment:withdraw",O:["idToken","mfaEnrollmentId"],G:function(e){if(!!e[ca]^!!e.refreshToken)throw new P("internal-error")},B:!0,Na:!0};function fl(e,t,n){if(!function(e,t){if(!t||!t.length)return!0;if(!e)return!1;for(var n=0;n<t.length;n++){var r=e[t[n]];if(void 0===r||null===r||""===r)return!1}return!0}(n,t.O))return kt(new P("internal-error"));var r,i=!!t.Na,o=t.Vb||"POST";return At(n).then(t.A).then((function(){return t.V&&(n.returnSecureToken=!0),t.B&&e.b&&"undefined"===typeof n.tenantId&&(n.tenantId=e.b),xa(e,i?e.i:e.h,t.endpoint,o,n,t.Ib,t.mb||!1)})).then((function(e){return r=e,t.Za?t.Za(n,r):r})).then(t.G).then((function(){if(!t.Z)return r;if(!(t.Z in r))throw new P("internal-error");return r[t.Z]}))}function gl(e){return ml({error:{errors:[{message:e}],code:400,message:e}})}function ml(e,t){var n=(e.error&&e.error.errors&&e.error.errors[0]||{}).reason||"",r={keyInvalid:"invalid-api-key",ipRefererBlocked:"app-not-authorized"};if(n=r[n]?new P(r[n]):null)return n;for(var i in n=e.error&&e.error.message||"",me(r={INVALID_CUSTOM_TOKEN:"invalid-custom-token",CREDENTIAL_MISMATCH:"custom-token-mismatch",MISSING_CUSTOM_TOKEN:"internal-error",INVALID_IDENTIFIER:"invalid-email",MISSING_CONTINUE_URI:"internal-error",INVALID_EMAIL:"invalid-email",INVALID_PASSWORD:"wrong-password",USER_DISABLED:"user-disabled",MISSING_PASSWORD:"internal-error",EMAIL_EXISTS:"email-already-in-use",PASSWORD_LOGIN_DISABLED:"operation-not-allowed",INVALID_IDP_RESPONSE:"invalid-credential",INVALID_PENDING_TOKEN:"invalid-credential",FEDERATED_USER_ID_ALREADY_LINKED:"credential-already-in-use",MISSING_OR_INVALID_NONCE:"missing-or-invalid-nonce",INVALID_MESSAGE_PAYLOAD:"invalid-message-payload",INVALID_RECIPIENT_EMAIL:"invalid-recipient-email",INVALID_SENDER:"invalid-sender",EMAIL_NOT_FOUND:"user-not-found",RESET_PASSWORD_EXCEED_LIMIT:"too-many-requests",EXPIRED_OOB_CODE:"expired-action-code",INVALID_OOB_CODE:"invalid-action-code",MISSING_OOB_CODE:"internal-error",INVALID_PROVIDER_ID:"invalid-provider-id",CREDENTIAL_TOO_OLD_LOGIN_AGAIN:"requires-recent-login",INVALID_ID_TOKEN:"invalid-user-token",TOKEN_EXPIRED:"user-token-expired",USER_NOT_FOUND:"user-token-expired",CORS_UNSUPPORTED:"cors-unsupported",DYNAMIC_LINK_NOT_ACTIVATED:"dynamic-link-not-activated",INVALID_APP_ID:"invalid-app-id",TOO_MANY_ATTEMPTS_TRY_LATER:"too-many-requests",WEAK_PASSWORD:"weak-password",OPERATION_NOT_ALLOWED:"operation-not-allowed",USER_CANCELLED:"user-cancelled",CAPTCHA_CHECK_FAILED:"captcha-check-failed",INVALID_APP_CREDENTIAL:"invalid-app-credential",INVALID_CODE:"invalid-verification-code",INVALID_PHONE_NUMBER:"invalid-phone-number",INVALID_SESSION_INFO:"invalid-verification-id",INVALID_TEMPORARY_PROOF:"invalid-credential",MISSING_APP_CREDENTIAL:"missing-app-credential",MISSING_CODE:"missing-verification-code",MISSING_PHONE_NUMBER:"missing-phone-number",MISSING_SESSION_INFO:"missing-verification-id",QUOTA_EXCEEDED:"quota-exceeded",SESSION_EXPIRED:"code-expired",REJECTED_CREDENTIAL:"rejected-credential",INVALID_CONTINUE_URI:"invalid-continue-uri",MISSING_ANDROID_PACKAGE_NAME:"missing-android-pkg-name",MISSING_IOS_BUNDLE_ID:"missing-ios-bundle-id",UNAUTHORIZED_DOMAIN:"unauthorized-continue-uri",INVALID_DYNAMIC_LINK_DOMAIN:"invalid-dynamic-link-domain",INVALID_OAUTH_CLIENT_ID:"invalid-oauth-client-id",INVALID_CERT_HASH:"invalid-cert-hash",UNSUPPORTED_TENANT_OPERATION:"unsupported-tenant-operation",INVALID_TENANT_ID:"invalid-tenant-id",TENANT_ID_MISMATCH:"tenant-id-mismatch",ADMIN_ONLY_OPERATION:"admin-restricted-operation",INVALID_MFA_PENDING_CREDENTIAL:"invalid-multi-factor-session",MFA_ENROLLMENT_NOT_FOUND:"multi-factor-info-not-found",MISSING_MFA_PENDING_CREDENTIAL:"missing-multi-factor-session",MISSING_MFA_ENROLLMENT_ID:"missing-multi-factor-info",EMAIL_CHANGE_NEEDS_VERIFICATION:"email-change-needs-verification",SECOND_FACTOR_EXISTS:"second-factor-already-in-use",SECOND_FACTOR_LIMIT_EXCEEDED:"maximum-second-factor-count-exceeded",UNSUPPORTED_FIRST_FACTOR:"unsupported-first-factor",UNVERIFIED_EMAIL:"unverified-email"},t||{}),t=(t=n.match(/^[^\s]+\s*:\s*([\s\S]*)$/))&&1<t.length?t[1]:void 0,r)if(0===n.indexOf(i))return new P(r[i],t);return!t&&e&&(t=Hr(e)),new P("internal-error",t)}function yl(e){this.b=e,this.a=null,this.sb=function(e){return(xl||(xl=new bt((function(e,t){function n(){Zr(),Vr("gapi.load")("gapi.iframes",{callback:e,ontimeout:function(){Zr(),t(Error("Network Error"))},timeout:_l.get()})}if(Vr("gapi.iframes.Iframe"))e();else if(Vr("gapi.load"))n();else{var r="__iframefcb"+Math.floor(1e6*Math.random()).toString();s[r]=function(){Vr("gapi.load")?n():t(Error("Network Error"))},At(ea(r=Ce(vl,{onload:r}))).o((function(){t(Error("Network Error"))}))}})).o((function(e){throw xl=null,e})))).then((function(){return new bt((function(t,n){Vr("gapi.iframes.getContext")().open({where:document.body,url:e.b,messageHandlersFilter:Vr("gapi.iframes.CROSS_ORIGIN_IFRAMES_FILTER"),attributes:{style:{position:"absolute",top:"-100px",width:"1px",height:"1px"}},dontclear:!0},(function(r){function i(){clearTimeout(o),t()}e.a=r,e.a.restyle({setHideOnLeave:!1});var o=setTimeout((function(){n(Error("Network Error"))}),bl.get());r.ping(i).then(i,(function(){n(Error("Network Error"))}))}))}))}))}(this)}var vl=new ve(Se,"https://apis.google.com/js/api.js?onload=%{onload}"),_l=new $r(3e4,6e4),bl=new $r(5e3,15e3),xl=null;function Sl(e,t,n,r){this.l=e,this.h=t,this.i=n,this.g=r,this.f=null,this.g?e=Kn((e=Yn(this.g.url)).c,e.a,e.g,"/emulator/auth/iframe"):e=Kn("https",this.l,null,"/__/auth/iframe"),this.a=e,qn(this.a,"apiKey",this.h),qn(this.a,"appName",this.i),this.b=null,this.c=[]}function wl(e,t,n,r,i,o){this.u=e,this.s=t,this.c=n,this.m=r,this.v=o,this.i=this.g=this.l=null,this.a=i,this.h=this.f=null}function El(e){try{return co.app(e).auth().Ga()}catch(On){return[]}}function Pl(e,t,n,r,i,o){this.s=e,this.g=t,this.b=n,this.f=o,this.c=r||null,this.i=i||null,this.l=this.u=this.C=null,this.h=[],this.m=this.a=null}function Cl(e){var t=_r();return function(e){return fl(e,Za,{}).then((function(e){return e.authorizedDomains||[]}))}(e).then((function(e){e:{var n=Yn(t),r=n.c;n=n.a;for(var i=0;i<e.length;i++){var o=e[i],s=n,a=r;if(0==o.indexOf("chrome-extension://")?s=Yn(o).a==s&&"chrome-extension"==a:"http"!=a&&"https"!=a?s=!1:Pr.test(o)?s=s==o:(o=o.split(".").join("\\."),s=new RegExp("^(.+\\."+o+"|"+o+")$","i").test(s)),s){e=!0;break e}}e=!1}if(!e)throw new ns(_r())}))}function Al(e){return e.m||(e.m=Ar().then((function(){if(!e.u){var t=e.c,n=e.i,r=El(e.b),i=new Sl(e.s,e.g,e.b,e.f);i.f=t,i.b=n,i.c=$(r||[]),e.u=i.toString()}e.v=new yl(e.u),function(e){if(!e.v)throw Error("IfcHandler must be initialized!");!function(e,t){e.sb.then((function(){e.a.register("authEvent",t,Vr("gapi.iframes.CROSS_ORIGIN_IFRAMES_FILTER"))}))}(e.v,(function(t){var n={};if(t&&t.authEvent){var r=!1;for(t=Jo(t.authEvent),n=0;n<e.h.length;n++)r=e.h[n](t)||r;return(n={}).status=r?"ACK":"ERROR",At(n)}return n.status="ERROR",At(n)}))}(e)}))),e.m}function kl(e){return e.l||(e.C=e.c?Nr(e.c,El(e.b)):null,e.l=new aa(e.g,G(e.i),e.C),e.f&&ga(e.l,e.f)),e.l}function jl(e,t,n,r,i,o,s,a,l,c,u,d){return(e=new wl(e,t,n,r,i,d)).l=o,e.g=s,e.i=a,e.b=fe(l||null),e.f=c,e.zb(u).toString()}function Il(e){if(this.a=e||co.INTERNAL.reactNative&&co.INTERNAL.reactNative.AsyncStorage,!this.a)throw new P("internal-error","The React Native compatibility library was not found.");this.type="asyncStorage"}function Gl(e){this.b=e,this.a={},this.f=b(this.c,this)}Sl.prototype.toString=function(){return this.f?qn(this.a,"v",this.f):ar(this.a.b,"v"),this.b?qn(this.a,"eid",this.b):ar(this.a.b,"eid"),this.c.length?qn(this.a,"fw",this.c.join(",")):ar(this.a.b,"fw"),this.a.toString()},wl.prototype.zb=function(e){return this.h=e,this},wl.prototype.toString=function(){if(this.v){var e=Yn(this.v.url);e=Kn(e.c,e.a,e.g,"/emulator/auth/handler")}else e=Kn("https",this.u,null,"/__/auth/handler");if(qn(e,"apiKey",this.s),qn(e,"appName",this.c),qn(e,"authType",this.m),this.a.isOAuthProvider){var t=this.a;try{var n=co.app(this.c).auth().la()}catch(Tn){n=null}for(var r in t.pb=n,qn(e,"providerId",this.a.providerId),t=qr((n=this.a).Jb))t[r]=t[r].toString();r=n.Qc,t=fe(t);for(var i=0;i<r.length;i++){var o=r[i];o in t&&delete t[o]}n.qb&&n.pb&&!t[n.qb]&&(t[n.qb]=n.pb),pe(t)||qn(e,"customParameters",Hr(t))}if("function"===typeof this.a.Rb&&((n=this.a.Rb()).length&&qn(e,"scopes",n.join(","))),this.l?qn(e,"redirectUrl",this.l):ar(e.b,"redirectUrl"),this.g?qn(e,"eventId",this.g):ar(e.b,"eventId"),this.i?qn(e,"v",this.i):ar(e.b,"v"),this.b)for(var s in this.b)this.b.hasOwnProperty(s)&&!Xn(e,s)&&qn(e,s,this.b[s]);return this.h?qn(e,"tid",this.h):ar(e.b,"tid"),this.f?qn(e,"eid",this.f):ar(e.b,"eid"),(s=El(this.c)).length&&qn(e,"fw",s.join(",")),e.toString()},(e=Pl.prototype).Pb=function(e,t,n){var r=new P("popup-closed-by-user"),i=new P("web-storage-unsupported"),o=this,s=!1;return this.ma().then((function(){(function(e){var t={type:"webStorageSupport"};return Al(e).then((function(){return function(e,t){return e.sb.then((function(){return new bt((function(n){e.a.send(t.type,t,n,Vr("gapi.iframes.CROSS_ORIGIN_IFRAMES_FILTER"))}))}))}(e.v,t)})).then((function(e){if(e&&e.length&&"undefined"!==typeof e[0].webStorageSupport)return e[0].webStorageSupport;throw Error()}))})(o).then((function(n){n||(e&&wr(e),t(i),s=!0)}))})).o((function(){})).then((function(){if(!s)return function(e){return new bt((function(t){return function n(){In(2e3).then((function(){if(e&&!e.closed)return n();t()}))}()}))}(e)})).then((function(){if(!s)return In(n).then((function(){t(r)}))}))},e.Yb=function(){var e=Lr();return!Wr(e)&&!Kr(e)},e.Ub=function(){return!1},e.Nb=function(e,t,n,r,i,o,s,a){if(!e)return kt(new P("popup-blocked"));if(s&&!Wr())return this.ma().o((function(t){wr(e),i(t)})),r(),At();this.a||(this.a=Cl(kl(this)));var l=this;return this.a.then((function(){var t=l.ma().o((function(t){throw wr(e),i(t),t}));return r(),t})).then((function(){(Zo(n),s)||br(jl(l.s,l.g,l.b,t,n,null,o,l.c,void 0,l.i,a,l.f),e)})).o((function(e){throw"auth/network-request-failed"==e.code&&(l.a=null),e}))},e.Ob=function(e,t,n,r){this.a||(this.a=Cl(kl(this)));var i=this;return this.a.then((function(){Zo(t),br(jl(i.s,i.g,i.b,e,t,_r(),n,i.c,void 0,i.i,r,i.f))})).o((function(e){throw"auth/network-request-failed"==e.code&&(i.a=null),e}))},e.ma=function(){var e=this;return Al(this).then((function(){return e.v.sb})).o((function(){throw e.a=null,new P("network-request-failed")}))},e.ac=function(){return!0},e.Ea=function(e){this.h.push(e)},e.Ta=function(e){K(this.h,(function(t){return t==e}))},(e=Il.prototype).get=function(e){return At(this.a.getItem(e)).then((function(e){return e&&Xr(e)}))},e.set=function(e,t){return At(this.a.setItem(e,Hr(t)))},e.U=function(e){return At(this.a.removeItem(e))},e.ca=function(){},e.ia=function(){};var Tl,Ml=[];function Ol(e,t,n){pe(e.a)&&e.b.addEventListener("message",e.f),"undefined"===typeof e.a[t]&&(e.a[t]=[]),e.a[t].push(n)}function Rl(e){this.a=e}function Dl(e){this.c=e,this.b=!1,this.a=[]}function Nl(e,t,n,r){var i,o,s,a,l=n||{},c=null;if(e.b)return kt(Error("connection_unavailable"));var u=r?800:50,d="undefined"!==typeof MessageChannel?new MessageChannel:null;return new bt((function(n,r){d?(i=Math.floor(Math.random()*Math.pow(10,20)).toString(),d.port1.start(),s=setTimeout((function(){r(Error("unsupported_event"))}),u),o=function(e){e.data.eventId===i&&("ack"===e.data.status?(clearTimeout(s),a=setTimeout((function(){r(Error("timeout"))}),3e3)):"done"===e.data.status?(clearTimeout(a),"undefined"!==typeof e.data.response?n(e.data.response):r(Error("unknown_error"))):(clearTimeout(s),clearTimeout(a),r(Error("invalid_response"))))},c={messageChannel:d,onMessage:o},e.a.push(c),d.port1.addEventListener("message",o),e.c.postMessage({eventType:t,eventId:i,data:l},[d.port2])):r(Error("connection_unavailable"))})).then((function(t){return Ll(e,c),t})).o((function(t){throw Ll(e,c),t}))}function Ll(e,t){if(t){var n=t.messageChannel,r=t.onMessage;n&&(n.port1.removeEventListener("message",r),n.port1.close()),K(e.a,(function(e){return e==t}))}}function Vl(){if(!Ul())throw new P("web-storage-unsupported");this.c={},this.a=[],this.b=0,this.m=s.indexedDB,this.type="indexedDB",this.g=this.v=this.f=this.l=null,this.s=!1,this.h=null;var e=this;Ir()&&self?(this.v=function(){var e=Ir()?self:null;if(U(Ml,(function(n){n.b==e&&(t=n)})),!t){var t=new Gl(e);Ml.push(t)}return t}(),Ol(this.v,"keyChanged",(function(t,n){return Yl(e).then((function(t){return 0<t.length&&U(e.a,(function(e){e(t)})),{keyProcessed:X(t,n.key)}}))})),Ol(this.v,"ping",(function(){return At(["keyChanged"])}))):function(){var e=s.navigator;return e&&e.serviceWorker?At().then((function(){return e.serviceWorker.ready})).then((function(e){return e.active||null})).o((function(){return null})):At(null)}().then((function(t){(e.h=t)&&(e.g=new Dl(new Rl(t)),Nl(e.g,"ping",null,!0).then((function(t){t[0].fulfilled&&X(t[0].value,"keyChanged")&&(e.s=!0)})).o((function(){})))}))}function Fl(e){return new bt((function(t,n){var r=e.m.open("firebaseLocalStorageDb",1);r.onerror=function(e){try{e.preventDefault()}catch(Pn){}n(Error(e.target.error))},r.onupgradeneeded=function(e){e=e.target.result;try{e.createObjectStore("firebaseLocalStorage",{keyPath:"fbase_key"})}catch(Pn){n(Pn)}},r.onsuccess=function(r){(r=r.target.result).objectStoreNames.contains("firebaseLocalStorage")?t(r):function(e){return new bt((function(t,n){var r=e.m.deleteDatabase("firebaseLocalStorageDb");r.onsuccess=function(){t()},r.onerror=function(e){n(Error(e.target.error))}}))}(e).then((function(){return Fl(e)})).then((function(e){t(e)})).o((function(e){n(e)}))}}))}function zl(e){return e.i||(e.i=Fl(e)),e.i}function Bl(e,t){var n=0;return new bt((function r(i,o){zl(e).then(t).then(i).o((function(t){if(!(3<++n))return zl(e).then((function(t){return t.close(),e.i=void 0,r(i,o)})).o((function(e){o(e)}));o(t)}))}))}function Ul(){try{return!!s.indexedDB}catch(En){return!1}}function Wl(e){return e.objectStore("firebaseLocalStorage")}function Hl(e,t){return e.transaction(["firebaseLocalStorage"],t?"readwrite":"readonly")}function ql(e){return new bt((function(t,n){e.onsuccess=function(e){e&&e.target?t(e.target.result):t()},e.onerror=function(e){n(e.target.error)}}))}function Xl(e,t){return e.g&&e.h&&function(){var e=s.navigator;return e&&e.serviceWorker&&e.serviceWorker.controller||null}()===e.h?Nl(e.g,"keyChanged",{key:t},e.s).then((function(){})).o((function(){})):At()}function Yl(e){return zl(e).then((function(e){var t=Wl(Hl(e,!1));return t.getAll?ql(t.getAll()):new bt((function(e,n){var r=[],i=t.openCursor();i.onsuccess=function(t){(t=t.target.result)?(r.push(t.value),t.continue()):e(r)},i.onerror=function(e){n(e.target.error)}}))})).then((function(t){var n={},r=[];if(0==e.b){for(r=0;r<t.length;r++)n[t[r].fbase_key]=t[r].value;r=xr(e.c,n),e.c=n}return r}))}function Kl(e){e.l&&e.l.cancel("STOP_EVENT"),e.f&&(clearTimeout(e.f),e.f=null)}function Zl(e){var t=this,n=null;this.a=[],this.type="indexedDB",this.c=e,this.b=At().then((function(){if(Ul()){var e=Yr(),r="__sak"+e;return Tl||(Tl=new Vl),(n=Tl).set(r,e).then((function(){return n.get(r)})).then((function(t){if(t!==e)throw Error("indexedDB not supported!");return n.U(r)})).then((function(){return n})).o((function(){return t.c}))}return t.c})).then((function(e){return t.type=e.type,e.ca((function(e){U(t.a,(function(t){t(e)}))})),e}))}function $l(){this.a={},this.type="inMemory"}function Jl(){if(!function(){var e="Node"==Gr();if(e=Ql()||e&&co.INTERNAL.node&&co.INTERNAL.node.localStorage,!e)return!1;try{return e.setItem("__sak","1"),e.removeItem("__sak"),!0}catch(On){return!1}}()){if("Node"==Gr())throw new P("internal-error","The LocalStorage compatibility library was not found.");throw new P("web-storage-unsupported")}this.a=Ql()||co.INTERNAL.node.localStorage,this.type="localStorage"}function Ql(){try{var e=s.localStorage,t=Yr();return e&&(e.setItem(t,"1"),e.removeItem(t)),e}catch(Cn){return null}}function ec(){this.type="nullStorage"}function tc(){if(!function(){var e="Node"==Gr();if(e=nc()||e&&co.INTERNAL.node&&co.INTERNAL.node.sessionStorage,!e)return!1;try{return e.setItem("__sak","1"),e.removeItem("__sak"),!0}catch(On){return!1}}()){if("Node"==Gr())throw new P("internal-error","The SessionStorage compatibility library was not found.");throw new P("web-storage-unsupported")}this.a=nc()||co.INTERNAL.node.sessionStorage,this.type="sessionStorage"}function nc(){try{var e=s.sessionStorage,t=Yr();return e&&(e.setItem(t,"1"),e.removeItem(t)),e}catch(Cn){return null}}function rc(){var e={};e.Browser=sc,e.Node=ac,e.ReactNative=lc,e.Worker=cc,this.a=e[Gr()]}Gl.prototype.c=function(e){var t=e.data.eventType,n=e.data.eventId,r=this.a[t];if(r&&0<r.length){e.ports[0].postMessage({status:"ack",eventId:n,eventType:t,response:null});var i=[];U(r,(function(t){i.push(At().then((function(){return t(e.origin,e.data.data)})))})),It(i).then((function(r){var i=[];U(r,(function(e){i.push({fulfilled:e.Qb,value:e.value,reason:e.reason?e.reason.message:void 0})})),U(i,(function(e){for(var t in e)"undefined"===typeof e[t]&&delete e[t]})),e.ports[0].postMessage({status:"done",eventId:n,eventType:t,response:i})}))}},Rl.prototype.postMessage=function(e,t){this.a.postMessage(e,t)},Dl.prototype.close=function(){for(;0<this.a.length;)Ll(this,this.a[0]);this.b=!0},(e=Vl.prototype).set=function(e,t){var n=this,r=!1;return Bl(this,(function(t){return ql((t=Wl(Hl(t,!0))).get(e))})).then((function(i){return Bl(n,(function(o){if(o=Wl(Hl(o,!0)),i)return i.value=t,ql(o.put(i));n.b++,r=!0;var s={};return s.fbase_key=e,s.value=t,ql(o.add(s))}))})).then((function(){return n.c[e]=t,Xl(n,e)})).oa((function(){r&&n.b--}))},e.get=function(e){return Bl(this,(function(t){return ql(Wl(Hl(t,!1)).get(e))})).then((function(e){return e&&e.value}))},e.U=function(e){var t=this,n=!1;return Bl(this,(function(r){return n=!0,t.b++,ql(Wl(Hl(r,!0)).delete(e))})).then((function(){return delete t.c[e],Xl(t,e)})).oa((function(){n&&t.b--}))},e.ca=function(e){0==this.a.length&&function(e){function t(){e.f=setTimeout((function(){e.l=Yl(e).then((function(t){0<t.length&&U(e.a,(function(e){e(t)}))})).then((function(){t()})).o((function(e){"STOP_EVENT"!=e.message&&t()}))}),800)}Kl(e),t()}(this),this.a.push(e)},e.ia=function(e){K(this.a,(function(t){return t==e})),0==this.a.length&&Kl(this)},(e=Zl.prototype).get=function(e){return this.b.then((function(t){return t.get(e)}))},e.set=function(e,t){return this.b.then((function(n){return n.set(e,t)}))},e.U=function(e){return this.b.then((function(t){return t.U(e)}))},e.ca=function(e){this.a.push(e)},e.ia=function(e){K(this.a,(function(t){return t==e}))},(e=$l.prototype).get=function(e){return At(this.a[e])},e.set=function(e,t){return this.a[e]=t,At()},e.U=function(e){return delete this.a[e],At()},e.ca=function(){},e.ia=function(){},(e=Jl.prototype).get=function(e){var t=this;return At().then((function(){return Xr(t.a.getItem(e))}))},e.set=function(e,t){var n=this;return At().then((function(){var r=Hr(t);null===r?n.U(e):n.a.setItem(e,r)}))},e.U=function(e){var t=this;return At().then((function(){t.a.removeItem(e)}))},e.ca=function(e){s.window&&cn(s.window,"storage",e)},e.ia=function(e){s.window&&hn(s.window,"storage",e)},(e=ec.prototype).get=function(){return At(null)},e.set=function(){return At()},e.U=function(){return At()},e.ca=function(){},e.ia=function(){},(e=tc.prototype).get=function(e){var t=this;return At().then((function(){return Xr(t.a.getItem(e))}))},e.set=function(e,t){var n=this;return At().then((function(){var r=Hr(t);null===r?n.U(e):n.a.setItem(e,r)}))},e.U=function(e){var t=this;return At().then((function(){t.a.removeItem(e)}))},e.ca=function(){},e.ia=function(){};var ic,oc,sc={F:Jl,cb:tc},ac={F:Jl,cb:tc},lc={F:Il,cb:ec},cc={F:Jl,cb:ec},uc={rd:"local",NONE:"none",td:"session"};function dc(){var e=!(Kr(Lr())||!jr()),t=Wr(),n=Fr();this.m=e,this.h=t,this.l=n,this.a={},ic||(ic=new rc),e=ic;try{this.g=!vr()&&ei()||!s.indexedDB?new e.a.F:new Zl(Ir()?new $l:new e.a.F)}catch(Gn){this.g=new $l,this.h=!0}try{this.i=new e.a.cb}catch(Gn){this.i=new $l}this.v=new $l,this.f=b(this.Zb,this),this.b={}}function hc(){return oc||(oc=new dc),oc}function pc(e,t){switch(t){case"session":return e.i;case"none":return e.v;default:return e.g}}function fc(e,t){return"firebase:"+e.name+(t?":"+t:"")}function gc(e,t,n){return n=fc(t,n),"local"==t.F&&(e.b[n]=null),pc(e,t.F).U(n)}function mc(e){e.c&&(clearInterval(e.c),e.c=null)}function yc(e){this.a=e,this.b=hc()}(e=dc.prototype).get=function(e,t){return pc(this,e.F).get(fc(e,t))},e.set=function(e,t,n){var r=fc(e,n),i=this,o=pc(this,e.F);return o.set(r,t).then((function(){return o.get(r)})).then((function(t){"local"==e.F&&(i.b[r]=t)}))},e.addListener=function(e,t,n){e=fc(e,t),this.l&&(this.b[e]=s.localStorage.getItem(e)),pe(this.a)&&(pc(this,"local").ca(this.f),this.h||(vr()||!ei())&&s.indexedDB||!this.l||function(e){mc(e),e.c=setInterval((function(){for(var t in e.a){var n=s.localStorage.getItem(t),r=e.b[t];n!=r&&(e.b[t]=n,n=new $t({type:"storage",key:t,target:window,oldValue:r,newValue:n,a:!0}),e.Zb(n))}}),1e3)}(this)),this.a[e]||(this.a[e]=[]),this.a[e].push(n)},e.removeListener=function(e,t,n){e=fc(e,t),this.a[e]&&(K(this.a[e],(function(e){return e==n})),0==this.a[e].length&&delete this.a[e]),pe(this.a)&&(pc(this,"local").ia(this.f),mc(this))},e.Zb=function(e){if(e&&e.g){var t=e.a.key;if(null==t)for(var n in this.a){var r=this.b[n];"undefined"===typeof r&&(r=null);var i=s.localStorage.getItem(n);i!==r&&(this.b[n]=i,this.nb(n))}else if(0==t.indexOf("firebase:")&&this.a[t]){if("undefined"!==typeof e.a.a?pc(this,"local").ia(this.f):mc(this),this.m)if(n=s.localStorage.getItem(t),(r=e.a.newValue)!==n)null!==r?s.localStorage.setItem(t,r):s.localStorage.removeItem(t);else if(this.b[t]===r&&"undefined"===typeof e.a.a)return;var o=this;n=function(){"undefined"===typeof e.a.a&&o.b[t]===s.localStorage.getItem(t)||(o.b[t]=s.localStorage.getItem(t),o.nb(t))},Xe&&st&&10==st&&s.localStorage.getItem(t)!==e.a.newValue&&e.a.newValue!==e.a.oldValue?setTimeout(n,10):n()}}else U(e,b(this.nb,this))},e.nb=function(e){this.a[e]&&U(this.a[e],(function(e){e()}))};var vc,_c={name:"authEvent",F:"local"};function bc(){this.a=hc()}function xc(e,t){this.b=Sc,this.f=s.Uint8Array?new Uint8Array(this.b):Array(this.b),this.g=this.c=0,this.a=[],this.i=e,this.h=t,this.l=s.Int32Array?new Int32Array(64):Array(64),void 0===vc&&(vc=s.Int32Array?new Int32Array(jc):jc),this.reset()}w(xc,(function(){this.b=-1}));for(var Sc=64,wc=Sc-1,Ec=[],Pc=0;Pc<wc;Pc++)Ec[Pc]=0;var Cc=Z(128,Ec);function Ac(e){for(var t=e.f,n=e.l,r=0,i=0;i<t.length;)n[r++]=t[i]<<24|t[i+1]<<16|t[i+2]<<8|t[i+3],i=4*r;for(t=16;64>t;t++){i=0|n[t-15],r=0|n[t-2];var o=(0|n[t-16])+((i>>>7|i<<25)^(i>>>18|i<<14)^i>>>3)|0,s=(0|n[t-7])+((r>>>17|r<<15)^(r>>>19|r<<13)^r>>>10)|0;n[t]=o+s|0}r=0|e.a[0],i=0|e.a[1];var a=0|e.a[2],l=0|e.a[3],c=0|e.a[4],u=0|e.a[5],d=0|e.a[6];for(o=0|e.a[7],t=0;64>t;t++){var h=((r>>>2|r<<30)^(r>>>13|r<<19)^(r>>>22|r<<10))+(r&i^r&a^i&a)|0;s=(o=o+((c>>>6|c<<26)^(c>>>11|c<<21)^(c>>>25|c<<7))|0)+((s=(s=c&u^~c&d)+(0|vc[t])|0)+(0|n[t])|0)|0,o=d,d=u,u=c,c=l+s|0,l=a,a=i,i=r,r=s+h|0}e.a[0]=e.a[0]+r|0,e.a[1]=e.a[1]+i|0,e.a[2]=e.a[2]+a|0,e.a[3]=e.a[3]+l|0,e.a[4]=e.a[4]+c|0,e.a[5]=e.a[5]+u|0,e.a[6]=e.a[6]+d|0,e.a[7]=e.a[7]+o|0}function kc(e,t,n){void 0===n&&(n=t.length);var r=0,i=e.c;if("string"===typeof t)for(;r<n;)e.f[i++]=t.charCodeAt(r++),i==e.b&&(Ac(e),i=0);else{if(!h(t))throw Error("message must be string or array");for(;r<n;){var o=t[r++];if(!("number"==typeof o&&0<=o&&255>=o&&o==(0|o)))throw Error("message must be a byte array");e.f[i++]=o,i==e.b&&(Ac(e),i=0)}}e.c=i,e.g+=n}xc.prototype.reset=function(){this.g=this.c=0,this.a=s.Int32Array?new Int32Array(this.h):$(this.h)};var jc=[1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298];function Ic(){xc.call(this,8,Gc)}w(Ic,xc);var Gc=[1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225];function Tc(e,t,n,r,i,o){this.v=e,this.i=t,this.l=n,this.m=r||null,this.u=i||null,this.s=o,this.h=t+":"+n,this.C=new bc,this.g=new yc(this.h),this.f=null,this.b=[],this.a=this.c=null}function Mc(e){return new P("invalid-cordova-configuration",e)}function Oc(e){var t=new Ic;kc(t,e),e=[];var n=8*t.g;56>t.c?kc(t,Cc,56-t.c):kc(t,Cc,t.b-(t.c-56));for(var r=63;56<=r;r--)t.f[r]=255&n,n/=256;for(Ac(t),r=n=0;r<t.i;r++)for(var i=24;0<=i;i-=8)e[n++]=t.a[r]>>i&255;return function(e){return H(e,(function(e){return 1<(e=e.toString(16)).length?e:"0"+e})).join("")}(e)}function Rc(e,t){for(var n=0;n<e.b.length;n++)try{e.b[n](t)}catch(Gn){}}function Dc(e){return e.f||(e.f=e.ma().then((function(){return new bt((function(t){e.Ea((function n(r){return t(r),e.Ta(n),!1})),function(e){function t(t){r=!0,i&&i.cancel(),Nc(e).then((function(r){var i=n;if(r&&t&&t.url){var o=null;-1!=(i=mo(t.url)).indexOf("/__/auth/callback")&&(o=(o="object"===typeof(o=Xr(Xn(o=Yn(i),"firebaseError")||null))?C(o):null)?new $o(r.c,r.b,null,null,o,null,r.T()):new $o(r.c,r.b,i,r.f,null,null,r.T())),i=o||n}Rc(e,i)}))}var n=new $o("unknown",null,null,null,new P("no-auth-event")),r=!1,i=In(500).then((function(){return Nc(e).then((function(){r||Rc(e,n)}))})),o=s.handleOpenURL;s.handleOpenURL=function(e){if(0==e.toLowerCase().indexOf(Vr("BuildInfo.packageName",s).toLowerCase()+"://")&&t({url:e}),"function"===typeof o)try{o(e)}catch(Tn){console.error(Tn)}},ts||(ts=new Qo),function(e){var t=ts;t.a.push(e),t.b||(t.b=function(e){for(var n=0;n<t.a.length;n++)t.a[n](e)},"function"===typeof(e=Vr("universalLinks.subscribe",s))&&e(null,t.b))}(t)}(e)}))}))),e.f}function Nc(e){var t=null;return function(e){return e.b.get(_c,e.a).then((function(e){return Jo(e)}))}(e.g).then((function(n){return t=n,gc((n=e.g).b,_c,n.a)})).then((function(){return t}))}function Lc(e){this.a=e,this.b=hc()}(e=Tc.prototype).ma=function(){return this.Ia?this.Ia:this.Ia=(kr(void 0)?Ar().then((function(){return new bt((function(e,t){var n=s.document,r=setTimeout((function(){t(Error("Cordova framework is not ready."))}),1e3);n.addEventListener("deviceready",(function(){clearTimeout(r),e()}),!1)}))})):kt(Error("Cordova must run in an Android or iOS file scheme."))).then((function(){if("function"!==typeof Vr("universalLinks.subscribe",s))throw Mc("cordova-universal-links-plugin-fix is not installed");if("undefined"===typeof Vr("BuildInfo.packageName",s))throw Mc("cordova-plugin-buildinfo is not installed");if("function"!==typeof Vr("cordova.plugins.browsertab.openUrl",s))throw Mc("cordova-plugin-browsertab is not installed");if("function"!==typeof Vr("cordova.InAppBrowser.open",s))throw Mc("cordova-plugin-inappbrowser is not installed")}),(function(){throw new P("cordova-not-ready")}))},e.Pb=function(e,t){return t(new P("operation-not-supported-in-this-environment")),At()},e.Nb=function(){return kt(new P("operation-not-supported-in-this-environment"))},e.ac=function(){return!1},e.Yb=function(){return!0},e.Ub=function(){return!0},e.Ob=function(e,t,n,r){if(this.c)return kt(new P("redirect-operation-pending"));var i=this,o=s.document,a=null,l=null,c=null,u=null;return this.c=At().then((function(){return Zo(t),Dc(i)})).then((function(){return function(e,t,n,r,i){var o=function(){for(var e=20,t=[];0<e;)t.push("1234567890abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ".charAt(Math.floor(62*Math.random()))),e--;return t.join("")}(),a=new $o(t,r,null,o,new P("no-auth-event"),null,i),l=Vr("BuildInfo.packageName",s);if("string"!==typeof l)throw new P("invalid-cordova-configuration");var c=Vr("BuildInfo.displayName",s),u={};if(Lr().toLowerCase().match(/iphone|ipad|ipod/))u.ibi=l;else{if(!Lr().toLowerCase().match(/android/))return kt(new P("operation-not-supported-in-this-environment"));u.apn=l}c&&(u.appDisplayName=c),o=Oc(o),u.sessionId=o;var d=jl(e.v,e.i,e.l,t,n,null,r,e.m,u,e.u,i,e.s);return e.ma().then((function(){var t=e.h;return e.C.a.set(_c,a.w(),t)})).then((function(){var t=Vr("cordova.plugins.browsertab.isAvailable",s);if("function"!==typeof t)throw new P("invalid-cordova-configuration");var n=null;t((function(t){if(t){if("function"!==typeof(n=Vr("cordova.plugins.browsertab.openUrl",s)))throw new P("invalid-cordova-configuration");n(d)}else{if("function"!==typeof(n=Vr("cordova.InAppBrowser.open",s)))throw new P("invalid-cordova-configuration");t=Lr(),e.a=n(d,t.match(/(iPad|iPhone|iPod).*OS 7_\d/i)||t.match(/(iPad|iPhone|iPod).*OS 8_\d/i)?"_blank":"_system","location=yes")}}))}))}(i,e,t,n,r)})).then((function(){return new bt((function(e,t){l=function(){var t=Vr("cordova.plugins.browsertab.close",s);return e(),"function"===typeof t&&t(),i.a&&"function"===typeof i.a.close&&(i.a.close(),i.a=null),!1},i.Ea(l),c=function(){a||(a=In(2e3).then((function(){t(new P("redirect-cancelled-by-user"))})))},u=function(){Jr()&&c()},o.addEventListener("resume",c,!1),Lr().toLowerCase().match(/android/)||o.addEventListener("visibilitychange",u,!1)})).o((function(e){return Nc(i).then((function(){throw e}))}))})).oa((function(){c&&o.removeEventListener("resume",c,!1),u&&o.removeEventListener("visibilitychange",u,!1),a&&a.cancel(),l&&i.Ta(l),i.c=null}))},e.Ea=function(e){this.b.push(e),Dc(this).o((function(t){"auth/invalid-cordova-configuration"===t.code&&(t=new $o("unknown",null,null,null,new P("no-auth-event")),e(t))}))},e.Ta=function(e){K(this.b,(function(t){return t==e}))};var Vc={name:"pendingRedirect",F:"session"};function Fc(e){return gc(e.b,Vc,e.a)}function zc(e,t,n,r){this.i={},this.u=0,this.D=e,this.v=t,this.m=n,this.J=r,this.h=[],this.f=!1,this.l=b(this.s,this),this.b=new nu,this.C=new au,this.g=new Lc(eu(this.v,this.m)),this.c={},this.c.unknown=this.b,this.c.signInViaRedirect=this.b,this.c.linkViaRedirect=this.b,this.c.reauthViaRedirect=this.b,this.c.signInViaPopup=this.C,this.c.linkViaPopup=this.C,this.c.reauthViaPopup=this.C,this.a=Bc(this.D,this.v,this.m,A,this.J)}function Bc(e,t,n,r,i){var o=co.SDK_VERSION||null;return kr()?new Tc(e,t,n,o,r,i):new Pl(e,t,n,o,r,i)}function Uc(e){e.f||(e.f=!0,e.a.Ea(e.l));var t=e.a;return e.a.ma().o((function(n){throw e.a==t&&e.reset(),n}))}function Wc(e){e.a.Yb()&&Uc(e).o((function(t){var n=new $o("unknown",null,null,null,new P("operation-not-supported-in-this-environment"));Zc(t)&&e.s(n)})),e.a.Ub()||ru(e.b)}function Hc(e,t){X(e.h,t)||e.h.push(t),e.f||function(e){return e.b.get(Vc,e.a).then((function(e){return"pending"==e}))}(e.g).then((function(t){t?Fc(e.g).then((function(){Uc(e).o((function(t){var n=new $o("unknown",null,null,null,new P("operation-not-supported-in-this-environment"));Zc(t)&&e.s(n)}))})):Wc(e)})).o((function(){Wc(e)}))}function qc(e,t){K(e.h,(function(e){return e==t}))}zc.prototype.reset=function(){this.f=!1,this.a.Ta(this.l),this.a=Bc(this.D,this.v,this.m,null,this.J),this.i={}},zc.prototype.s=function(e){if(!e)throw new P("invalid-auth-event");if(6e5<=Date.now()-this.u&&(this.i={},this.u=0),e&&e.getUid()&&this.i.hasOwnProperty(e.getUid()))return!1;for(var t=!1,n=0;n<this.h.length;n++){var r=this.h[n];if(r.Gb(e.c,e.b)){(t=this.c[e.c])&&(t.h(e,r),e&&(e.f||e.b)&&(this.i[e.getUid()]=!0,this.u=Date.now())),t=!0;break}}return ru(this.b),t};var Xc=new $r(2e3,1e4),Yc=new $r(3e4,6e4);function Kc(e,t,n,r,i,o,s){return e.a.Nb(t,n,r,(function(){e.f||(e.f=!0,e.a.Ea(e.l))}),(function(){e.reset()}),i,o,s)}function Zc(e){return!(!e||"auth/cordova-not-ready"!=e.code)}function $c(e,t,n,r,i){var o;return function(e){return e.b.set(Vc,"pending",e.a)}(e.g).then((function(){return e.a.Ob(t,n,r,i).o((function(t){if(Zc(t))throw new P("operation-not-supported-in-this-environment");return o=t,Fc(e.g).then((function(){throw o}))})).then((function(){return e.a.ac()?new bt((function(){})):Fc(e.g).then((function(){return e.ra()})).then((function(){})).o((function(){}))}))}))}function Jc(e,t,n,r,i){return e.a.Pb(r,(function(e){t.na(n,null,e,i)}),Xc.get())}zc.prototype.ra=function(){return this.b.ra()};var Qc={};function eu(e,t,n){return e=e+":"+t,n&&(e=e+":"+n.url),e}function tu(e,t,n,r){var i=eu(t,n,r);return Qc[i]||(Qc[i]=new zc(e,t,n,r)),Qc[i]}function nu(){this.b=null,this.f=[],this.c=[],this.a=null,this.i=this.g=!1}function ru(e){e.g||(e.g=!0,su(e,!1,null,null))}function iu(e){e.g&&!e.i&&su(e,!1,null,null)}function ou(e,t){if(e.b=function(){return At(t)},e.f.length)for(var n=0;n<e.f.length;n++)e.f[n](t)}function su(e,t,n,r){t?r?function(e,t){if(e.b=function(){return kt(t)},e.c.length)for(var n=0;n<e.c.length;n++)e.c[n](t)}(e,r):ou(e,n):ou(e,{user:null}),e.f=[],e.c=[]}function au(){}function lu(){this.jb=!1,Object.defineProperty(this,"appVerificationDisabled",{get:function(){return this.jb},set:function(e){this.jb=e},enumerable:!1})}function cu(e,t){this.a=t,oi(this,"verificationId",e)}function uu(e,t,n,r){return new Xo(e).gb(t,n).then((function(e){return new cu(e,r)}))}function du(e){var t=eo(e);if(!(t&&t.exp&&t.auth_time&&t.iat))throw new P("internal-error","An internal error occurred. The token obtained by Firebase appears to be malformed. Please retry the operation.");si(this,{token:e,expirationTime:Qr(1e3*t.exp),authTime:Qr(1e3*t.auth_time),issuedAtTime:Qr(1e3*t.iat),signInProvider:t.firebase&&t.firebase.sign_in_provider?t.firebase.sign_in_provider:null,signInSecondFactor:t.firebase&&t.firebase.sign_in_second_factor?t.firebase.sign_in_second_factor:null,claims:t})}function hu(e,t,n){var r=t&&t[fu];if(!r)throw new P("argument-error","Internal assert: Invalid MultiFactorResolver");this.a=e,this.f=fe(t),this.g=n,this.c=new yo(null,r),this.b=[];var i=this;U(t[pu]||[],(function(e){(e=ui(e))&&i.b.push(e)})),oi(this,"auth",this.a),oi(this,"session",this.c),oi(this,"hints",this.b)}nu.prototype.reset=function(){this.b=null,this.a&&(this.a.cancel(),this.a=null)},nu.prototype.h=function(e,t){if(e){this.reset(),this.g=!0;var n=e.c,r=e.b,i=e.a&&"auth/web-storage-unsupported"==e.a.code,o=e.a&&"auth/operation-not-supported-in-this-environment"==e.a.code;this.i=!(!i&&!o),"unknown"!=n||i||o?e.a?(su(this,!0,null,e.a),At()):t.Fa(n,r)?function(e,t,n){n=n.Fa(t.c,t.b);var r=t.g,i=t.f,o=t.i,s=t.T(),a=!!t.c.match(/Redirect$/);n(r,i,s,o).then((function(t){su(e,a,t,null)})).o((function(t){su(e,a,null,t)}))}(this,e,t):kt(new P("invalid-auth-event")):(su(this,!1,null,null),At())}else kt(new P("invalid-auth-event"))},nu.prototype.ra=function(){var e=this;return new bt((function(t,n){e.b?e.b().then(t,n):(e.f.push(t),e.c.push(n),function(e){var t=new P("timeout");e.a&&e.a.cancel(),e.a=In(Yc.get()).then((function(){e.b||(e.g=!0,su(e,!0,null,t))}))}(e))}))},au.prototype.h=function(e,t){if(e){var n=e.c,r=e.b;e.a?(t.na(e.c,null,e.a,e.b),At()):t.Fa(n,r)?function(e,t){var n=e.b,r=e.c;t.Fa(r,n)(e.g,e.f,e.T(),e.i).then((function(e){t.na(r,e,null,n)})).o((function(e){t.na(r,null,e,n)}))}(e,t):kt(new P("invalid-auth-event"))}else kt(new P("invalid-auth-event"))},cu.prototype.confirm=function(e){return e=Yo(this.verificationId,e),this.a(e)};var pu="mfaInfo",fu="mfaPendingCredential";function gu(e,t,n,r){P.call(this,"multi-factor-auth-required",r,t),this.b=new hu(e,t,n),oi(this,"resolver",this.b)}function mu(e,t,n){if(e&&f(e.serverResponse)&&"auth/multi-factor-auth-required"===e.code)try{return new gu(t,e.serverResponse,n,e.message)}catch(Gn){}return null}function yu(){}function vu(e){oi(this,"factorId",e.fa),this.a=e}function _u(e){if(vu.call(this,e),this.a.fa!=Xo.PROVIDER_ID)throw new P("argument-error","firebase.auth.PhoneMultiFactorAssertion requires a valid firebase.auth.PhoneAuthCredential")}function bu(e,t){for(var n in Zt.call(this,e),t)this[n]=t[n]}function xu(e,t){this.a=e,this.b=[],this.c=b(this.yc,this),cn(this.a,"userReloaded",this.c);var n=[];t&&t.multiFactor&&t.multiFactor.enrolledFactors&&U(t.multiFactor.enrolledFactors,(function(e){var t=null,r={};if(e){e.uid&&(r[pi]=e.uid),e.displayName&&(r[di]=e.displayName),e.enrollmentTime&&(r[hi]=new Date(e.enrollmentTime).toISOString()),e.phoneNumber&&(r[fi]=e.phoneNumber);try{t=new gi(r)}catch(Vn){}e=t}else e=null;e&&n.push(e)})),Su(this,n)}function Su(e,t){e.b=t,oi(e,"enrolledFactors",t)}function wu(e,t,n){if(this.h=e,this.i=t,this.g=n,this.c=3e4,this.f=96e4,this.b=null,this.a=this.c,this.f<this.c)throw Error("Proactive refresh lower bound greater than upper bound!")}function Eu(e,t){e.stop(),e.b=In(function(e,t){return t?(e.a=e.c,e.g()):(t=e.a,e.a*=2,e.a>e.f&&(e.a=e.f),t)}(e,t)).then((function(){return function(){var e=s.document,t=null;return Jr()||!e?At():new bt((function(n){t=function(){Jr()&&(e.removeEventListener("visibilitychange",t,!1),n())},e.addEventListener("visibilitychange",t,!1)})).o((function(n){throw e.removeEventListener("visibilitychange",t,!1),n}))}()})).then((function(){return e.h()})).then((function(){Eu(e,!0)})).o((function(t){e.i(t)&&Eu(e,!1)}))}function Pu(e){this.f=e,this.b=this.a=null,this.c=Date.now()}function Cu(e,t){"undefined"===typeof t&&(e.b?t=(t=e.b).a-t.g:t=0),e.c=Date.now()+1e3*t}function Au(e,t){e.b=Qi(t[ca]||""),e.a=t.refreshToken,Cu(e,"undefined"!==typeof(t=t.expiresIn)?Number(t):void 0)}function ku(e,t){return function(e,t){return new bt((function(n,r){"refresh_token"==t.grant_type&&t.refresh_token||"authorization_code"==t.grant_type&&t.code?va(e,e.l+"?key="+encodeURIComponent(e.c),(function(e){e?e.error?r(ml(e)):e.access_token&&e.refresh_token?n(e):r(new P("internal-error")):r(new P("network-request-failed"))}),"POST",sr(t).toString(),e.g,e.m.get()):r(new P("internal-error"))}))}(e.f,t).then((function(t){return e.b=Qi(t.access_token),e.a=t.refresh_token,Cu(e,t.expires_in),{accessToken:e.b.toString(),refreshToken:e.a}})).o((function(t){throw"auth/user-token-expired"==t.code&&(e.a=null),t}))}function ju(e,t){this.a=e||null,this.b=t||null,si(this,{lastSignInTime:Qr(t||null),creationTime:Qr(e||null)})}function Iu(e,t,n,r,i,o){si(this,{uid:e,displayName:r||null,photoURL:i||null,email:n||null,phoneNumber:o||null,providerId:t})}function Gu(e,t,n){this.N=[],this.l=e.apiKey,this.m=e.appName,this.s=e.authDomain||null;var r=co.SDK_VERSION?Nr(co.SDK_VERSION):null;this.a=new aa(this.l,G(A),r),(this.u=e.emulatorConfig||null)&&ga(this.a,this.u),this.h=new Pu(this.a),Fu(this,t[ca]),Au(this.h,t),oi(this,"refreshToken",this.h.a),Uu(this,n||{}),xn.call(this),this.P=!1,this.s&&zr()&&(this.b=tu(this.s,this.l,this.m,this.u)),this.W=[],this.i=null,this.D=function(e){return new wu((function(){return e.I(!0)}),(function(e){return!(!e||"auth/network-request-failed"!=e.code)}),(function(){var t=e.h.c-Date.now()-3e5;return 0<t?t:0}))}(this),this.ba=b(this.ib,this);var i=this;this.za=null,this.Pa=function(e){i.xa(e.h)},this.qa=null,this.Ba=function(e){Tu(i,e.c)},this.$=null,this.aa=[],this.Oa=function(e){Ru(i,e.f)},this.ja=null,this.S=new xu(this,n),oi(this,"multiFactor",this.S)}function Tu(e,t){e.u=t,ga(e.a,t),e.b&&(t=e.b,e.b=tu(e.s,e.l,e.m,e.u),e.P&&(qc(t,e),Hc(e.b,e)))}function Mu(e,t){e.qa&&hn(e.qa,"languageCodeChanged",e.Pa),(e.qa=t)&&cn(t,"languageCodeChanged",e.Pa)}function Ou(e,t){e.$&&hn(e.$,"emulatorConfigChanged",e.Ba),(e.$=t)&&cn(t,"emulatorConfigChanged",e.Ba)}function Ru(e,t){e.aa=t,ya(e.a,co.SDK_VERSION?Nr(co.SDK_VERSION,e.aa):null)}function Du(e,t){e.ja&&hn(e.ja,"frameworkChanged",e.Oa),(e.ja=t)&&cn(t,"frameworkChanged",e.Oa)}function Nu(e){try{return co.app(e.m).auth()}catch(On){throw new P("internal-error","No firebase.auth.Auth instance is available for the Firebase App '"+e.m+"'!")}}function Lu(e){e.J||e.D.b||(e.D.start(),hn(e,"tokenChanged",e.ba),cn(e,"tokenChanged",e.ba))}function Vu(e){hn(e,"tokenChanged",e.ba),e.D.stop()}function Fu(e,t){e.Aa=t,oi(e,"_lat",t)}function zu(e){for(var t=[],n=0;n<e.W.length;n++)t.push(e.W[n](e));return It(t).then((function(){return e}))}function Bu(e){e.b&&!e.P&&(e.P=!0,Hc(e.b,e))}function Uu(e,t){si(e,{uid:t.uid,displayName:t.displayName||null,photoURL:t.photoURL||null,email:t.email||null,emailVerified:t.emailVerified||!1,phoneNumber:t.phoneNumber||null,isAnonymous:t.isAnonymous||!1,tenantId:t.tenantId||null,metadata:new ju(t.createdAt,t.lastLoginAt),providerData:[]}),e.a.b=e.tenantId}function Wu(){}function Hu(e){return At().then((function(){if(e.J)throw new P("app-deleted")}))}function qu(e){return H(e.providerData,(function(e){return e.providerId}))}function Xu(e,t){t&&(Yu(e,t.providerId),e.providerData.push(t))}function Yu(e,t){K(e.providerData,(function(e){return e.providerId==t}))}function Ku(e,t,n){("uid"!=t||n)&&e.hasOwnProperty(t)&&oi(e,t,n)}function Zu(e,t){e!=t&&(si(e,{uid:t.uid,displayName:t.displayName,photoURL:t.photoURL,email:t.email,emailVerified:t.emailVerified,phoneNumber:t.phoneNumber,isAnonymous:t.isAnonymous,tenantId:t.tenantId,providerData:[]}),t.metadata?oi(e,"metadata",function(e){return new ju(e.a,e.b)}(t.metadata)):oi(e,"metadata",new ju),U(t.providerData,(function(t){Xu(e,t)})),function(e,t){e.b=t.b,e.a=t.a,e.c=t.c}(e.h,t.h),oi(e,"refreshToken",e.h.a),Su(e.S,t.S.b))}function $u(e){return e.I().then((function(t){var n=e.isAnonymous;return function(e,t){return fl(e.a,Ha,{idToken:t}).then(b(e.Kc,e))}(e,t).then((function(){return n||Ku(e,"isAnonymous",!1),t}))}))}function Ju(e,t){t[ca]&&e.Aa!=t[ca]&&(Au(e.h,t),e.dispatchEvent(new bu("tokenChanged")),Fu(e,t[ca]),Ku(e,"refreshToken",e.h.a))}function Qu(e,t){return $u(e).then((function(){if(X(qu(e),t))return zu(e).then((function(){throw new P("provider-already-linked")}))}))}function ed(e,t,n){return ai({user:e,credential:Ko(t),additionalUserInfo:t=oo(t),operationType:n})}function td(e,t){return Ju(e,t),e.reload().then((function(){return e}))}function nd(e,t,n,r,i){if(!zr())return kt(new P("operation-not-supported-in-this-environment"));if(e.i&&!i)return kt(e.i);var o=io(n.providerId),s=Yr(e.uid+":::"),a=null;(!Wr()||jr())&&e.s&&n.isOAuthProvider&&(a=jl(e.s,e.l,e.m,t,n,null,s,co.SDK_VERSION||null,null,null,e.tenantId,e.u));var l=Er(a,o&&o.va,o&&o.ua);return r=r().then((function(){if(id(e),!i)return e.I().then((function(){}))})).then((function(){return Kc(e.b,l,t,n,s,!!a,e.tenantId)})).then((function(){return new bt((function(n,r){e.na(t,null,new P("cancelled-popup-request"),e.g||null),e.f=n,e.C=r,e.g=s,e.c=Jc(e.b,e,t,l,s)}))})).then((function(e){return l&&wr(l),e?ai(e):null})).o((function(e){throw l&&wr(l),e})),od(e,r,i)}function rd(e,t,n,r,i){if(!zr())return kt(new P("operation-not-supported-in-this-environment"));if(e.i&&!i)return kt(e.i);var o=null,s=Yr(e.uid+":::");return r=r().then((function(){if(id(e),!i)return e.I().then((function(){}))})).then((function(){return e.ga=s,zu(e)})).then((function(t){return e.ha&&(t=(t=e.ha).b.set(ld,e.w(),t.a)),t})).then((function(){return $c(e.b,t,n,s,e.tenantId)})).o((function(t){if(o=t,e.ha)return cd(e.ha);throw o})).then((function(){if(o)throw o})),od(e,r,i)}function id(e){if(!e.b||!e.P){if(e.b&&!e.P)throw new P("internal-error");throw new P("auth-domain-config-required")}}function od(e,t,n){var r=function(e,t,n){return e.i&&!n?(t.cancel(),kt(e.i)):t.o((function(t){throw!t||"auth/user-disabled"!=t.code&&"auth/user-token-expired"!=t.code||(e.i||e.dispatchEvent(new bu("userInvalidated")),e.i=t),t}))}(e,t,n);return e.N.push(r),r.oa((function(){Y(e.N,r)})),r.o((function(t){var n=null;throw t&&"auth/multi-factor-auth-required"===t.code&&(n=mu(t.w(),Nu(e),b(e.jc,e))),n||t}))}function sd(e){if(!e.apiKey)return null;var t={apiKey:e.apiKey,authDomain:e.authDomain,appName:e.appName,emulatorConfig:e.emulatorConfig},n={};if(!e.stsTokenManager||!e.stsTokenManager.accessToken)return null;n[ca]=e.stsTokenManager.accessToken,n.refreshToken=e.stsTokenManager.refreshToken||null;var r=e.stsTokenManager.expirationTime;r&&(n.expiresIn=(r-Date.now())/1e3);var i=new Gu(t,n,e);return e.providerData&&U(e.providerData,(function(e){e&&Xu(i,ai(e))})),e.redirectEventId&&(i.ga=e.redirectEventId),i}function ad(e){this.a=e,this.b=hc()}hu.prototype.Rc=function(e){var t=this;return e.tb(this.a.a,this.c).then((function(e){var n=fe(t.f);return delete n[pu],delete n[fu],me(n,e),t.g(n)}))},w(gu,P),yu.prototype.tb=function(e,t,n){return t.type==vo?function(e,t,n,r){return n.Ha().then((function(n){return n={idToken:n},"undefined"!==typeof r&&(n.displayName=r),me(n,{phoneVerificationInfo:qo(e.a)}),fl(t,Ua,n)}))}(this,e,t,n):function(e,t,n){return n.Ha().then((function(n){return me(n={mfaPendingCredential:n},{phoneVerificationInfo:qo(e.a)}),fl(t,Wa,n)}))}(this,e,t)},w(vu,yu),w(_u,vu),w(bu,Zt),(e=xu.prototype).yc=function(e){Su(this,function(e){var t=[];return U(e.mfaInfo||[],(function(e){(e=ui(e))&&t.push(e)})),t}(e.hd))},e.Sb=function(){return this.a.I().then((function(e){return new yo(e,null)}))},e.fc=function(e,t){var n=this,r=this.a.a;return this.Sb().then((function(n){return e.tb(r,n,t)})).then((function(e){return Ju(n.a,e),n.a.reload()}))},e.bd=function(e){var t=this,n="string"===typeof e?e:e.uid,r=this.a.a;return this.a.I().then((function(e){return fl(r,pl,{idToken:e,mfaEnrollmentId:n})})).then((function(e){var r=W(t.b,(function(e){return e.uid!=n}));return Su(t,r),Ju(t.a,e),t.a.reload().o((function(e){if("auth/user-token-expired"!=e.code)throw e}))}))},e.w=function(){return{multiFactor:{enrolledFactors:H(this.b,(function(e){return e.w()}))}}},wu.prototype.start=function(){this.a=this.c,Eu(this,!0)},wu.prototype.stop=function(){this.b&&(this.b.cancel(),this.b=null)},Pu.prototype.w=function(){return{apiKey:this.f.c,refreshToken:this.a,accessToken:this.b&&this.b.toString(),expirationTime:this.c}},Pu.prototype.getToken=function(e){return e=!!e,this.b&&!this.a?kt(new P("user-token-expired")):e||!this.b||Date.now()>this.c-3e4?this.a?ku(this,{grant_type:"refresh_token",refresh_token:this.a}):At(null):At({accessToken:this.b.toString(),refreshToken:this.a})},ju.prototype.w=function(){return{lastLoginAt:this.b,createdAt:this.a}},w(Gu,xn),Gu.prototype.xa=function(e){this.za=e,fa(this.a,e)},Gu.prototype.la=function(){return this.za},Gu.prototype.Ga=function(){return $(this.aa)},Gu.prototype.ib=function(){this.D.b&&(this.D.stop(),this.D.start())},oi(Gu.prototype,"providerId","firebase"),(e=Gu.prototype).reload=function(){var e=this;return od(this,Hu(this).then((function(){return $u(e).then((function(){return zu(e)})).then(Wu)})))},e.oc=function(e){return this.I(e).then((function(e){return new du(e)}))},e.I=function(e){var t=this;return od(this,Hu(this).then((function(){return t.h.getToken(e)})).then((function(e){if(!e)throw new P("internal-error");return e.accessToken!=t.Aa&&(Fu(t,e.accessToken),t.dispatchEvent(new bu("tokenChanged"))),Ku(t,"refreshToken",e.refreshToken),e.accessToken})))},e.Kc=function(e){if(!(e=e.users)||!e.length)throw new P("internal-error");Uu(this,{uid:(e=e[0]).localId,displayName:e.displayName,photoURL:e.photoUrl,email:e.email,emailVerified:!!e.emailVerified,phoneNumber:e.phoneNumber,lastLoginAt:e.lastLoginAt,createdAt:e.createdAt,tenantId:e.tenantId});for(var t=function(e){return(e=e.providerUserInfo)&&e.length?H(e,(function(e){return new Iu(e.rawId,e.providerId,e.email,e.displayName,e.photoUrl,e.phoneNumber)})):[]}(e),n=0;n<t.length;n++)Xu(this,t[n]);Ku(this,"isAnonymous",!(this.email&&e.passwordHash)&&!(this.providerData&&this.providerData.length)),this.dispatchEvent(new bu("userReloaded",{hd:e}))},e.Lc=function(e){return ri("firebase.User.prototype.reauthenticateAndRetrieveDataWithCredential is deprecated. Please use firebase.User.prototype.reauthenticateWithCredential instead."),this.ub(e)},e.ub=function(e){var t=this,n=null;return od(this,e.c(this.a,this.uid).then((function(e){return Ju(t,e),n=ed(t,e,"reauthenticate"),t.i=null,t.reload()})).then((function(){return n})),!0)},e.Cc=function(e){return ri("firebase.User.prototype.linkAndRetrieveDataWithCredential is deprecated. Please use firebase.User.prototype.linkWithCredential instead."),this.rb(e)},e.rb=function(e){var t=this,n=null;return od(this,Qu(this,e.providerId).then((function(){return t.I()})).then((function(n){return e.b(t.a,n)})).then((function(e){return n=ed(t,e,"link"),td(t,e)})).then((function(){return n})))},e.Dc=function(e,t){var n=this;return od(this,Qu(this,"phone").then((function(){return uu(Nu(n),e,t,b(n.rb,n))})))},e.Mc=function(e,t){var n=this;return od(this,At().then((function(){return uu(Nu(n),e,t,b(n.ub,n))})),!0)},e.Cb=function(e){var t=this;return od(this,this.I().then((function(n){return t.a.Cb(n,e)})).then((function(e){return Ju(t,e),t.reload()})))},e.ed=function(e){var t=this;return od(this,this.I().then((function(n){return e.b(t.a,n)})).then((function(e){return Ju(t,e),t.reload()})))},e.Db=function(e){var t=this;return od(this,this.I().then((function(n){return t.a.Db(n,e)})).then((function(e){return Ju(t,e),t.reload()})))},e.Eb=function(e){if(void 0===e.displayName&&void 0===e.photoURL)return Hu(this);var t=this;return od(this,this.I().then((function(n){return t.a.Eb(n,{displayName:e.displayName,photoUrl:e.photoURL})})).then((function(e){return Ju(t,e),Ku(t,"displayName",e.displayName||null),Ku(t,"photoURL",e.photoUrl||null),U(t.providerData,(function(e){"password"===e.providerId&&(oi(e,"displayName",t.displayName),oi(e,"photoURL",t.photoURL))})),zu(t)})).then(Wu))},e.cd=function(e){var t=this;return od(this,$u(this).then((function(n){return X(qu(t),e)?function(e,t,n){return fl(e,Fa,{idToken:t,deleteProvider:n})}(t.a,n,[e]).then((function(e){var n={};return U(e.providerUserInfo||[],(function(e){n[e.providerId]=!0})),U(qu(t),(function(e){n[e]||Yu(t,e)})),n[Xo.PROVIDER_ID]||oi(t,"phoneNumber",null),zu(t)})):zu(t).then((function(){throw new P("no-such-provider")}))})))},e.delete=function(){var e=this;return od(this,this.I().then((function(t){return fl(e.a,Va,{idToken:t})})).then((function(){e.dispatchEvent(new bu("userDeleted"))}))).then((function(){for(var t=0;t<e.N.length;t++)e.N[t].cancel("app-deleted");Mu(e,null),Ou(e,null),Du(e,null),e.N=[],e.J=!0,Vu(e),oi(e,"refreshToken",null),e.b&&qc(e.b,e)}))},e.Gb=function(e,t){return!!("linkViaPopup"==e&&(this.g||null)==t&&this.f||"reauthViaPopup"==e&&(this.g||null)==t&&this.f||"linkViaRedirect"==e&&(this.ga||null)==t||"reauthViaRedirect"==e&&(this.ga||null)==t)},e.na=function(e,t,n,r){"linkViaPopup"!=e&&"reauthViaPopup"!=e||r!=(this.g||null)||(n&&this.C?this.C(n):t&&!n&&this.f&&this.f(t),this.c&&(this.c.cancel(),this.c=null),delete this.f,delete this.C)},e.Fa=function(e,t){return"linkViaPopup"==e&&t==(this.g||null)?b(this.Lb,this):"reauthViaPopup"==e&&t==(this.g||null)?b(this.Mb,this):"linkViaRedirect"==e&&(this.ga||null)==t?b(this.Lb,this):"reauthViaRedirect"==e&&(this.ga||null)==t?b(this.Mb,this):null},e.Ec=function(e){var t=this;return nd(this,"linkViaPopup",e,(function(){return Qu(t,e.providerId).then((function(){return zu(t)}))}),!1)},e.Nc=function(e){return nd(this,"reauthViaPopup",e,(function(){return At()}),!0)},e.Fc=function(e){var t=this;return rd(this,"linkViaRedirect",e,(function(){return Qu(t,e.providerId)}),!1)},e.Oc=function(e){return rd(this,"reauthViaRedirect",e,(function(){return At()}),!0)},e.Lb=function(e,t,n,r){var i=this;this.c&&(this.c.cancel(),this.c=null);var o=null;return n=this.I().then((function(n){return Ta(i.a,{requestUri:e,postBody:r,sessionId:t,idToken:n})})).then((function(e){return o=ed(i,e,"link"),td(i,e)})).then((function(){return o})),od(this,n)},e.Mb=function(e,t,n,r){var i=this;this.c&&(this.c.cancel(),this.c=null);var o=null,s=At().then((function(){return xo(Ma(i.a,{requestUri:e,sessionId:t,postBody:r,tenantId:n}),i.uid)})).then((function(e){return o=ed(i,e,"reauthenticate"),Ju(i,e),i.i=null,i.reload()})).then((function(){return o}));return od(this,s,!0)},e.vb=function(e){var t=this,n=null;return od(this,this.I().then((function(t){return n=t,"undefined"===typeof e||pe(e)?{}:Ki(new Vi(e))})).then((function(e){return t.a.vb(n,e)})).then((function(e){if(t.email!=e)return t.reload()})).then((function(){})))},e.Fb=function(e,t){var n=this,r=null;return od(this,this.I().then((function(e){return r=e,"undefined"===typeof t||pe(t)?{}:Ki(new Vi(t))})).then((function(t){return n.a.Fb(r,e,t)})).then((function(e){if(n.email!=e)return n.reload()})).then((function(){})))},e.jc=function(e){var t=null,n=this;return e=xo(At(e),n.uid).then((function(e){return t=ed(n,e,"reauthenticate"),Ju(n,e),n.i=null,n.reload()})).then((function(){return t})),od(this,e,!0)},e.toJSON=function(){return this.w()},e.w=function(){var e={uid:this.uid,displayName:this.displayName,photoURL:this.photoURL,email:this.email,emailVerified:this.emailVerified,phoneNumber:this.phoneNumber,isAnonymous:this.isAnonymous,tenantId:this.tenantId,providerData:[],apiKey:this.l,appName:this.m,authDomain:this.s,stsTokenManager:this.h.w(),redirectEventId:this.ga||null};return this.metadata&&me(e,this.metadata.w()),U(this.providerData,(function(t){e.providerData.push(function(e){var t,n={};for(t in e)e.hasOwnProperty(t)&&(n[t]=e[t]);return n}(t))})),me(e,this.S.w()),e};var ld={name:"redirectUser",F:"session"};function cd(e){return gc(e.b,ld,e.a)}function ud(e){this.a=e,this.b=hc(),this.c=null,this.f=function(e){var t=pd("local"),n=pd("session"),r=pd("none");return function(e,t,n){var r=fc(t,n),i=pc(e,t.F);return e.get(t,n).then((function(o){var a=null;try{a=Xr(s.localStorage.getItem(r))}catch(Tn){}if(a&&!o)return s.localStorage.removeItem(r),e.set(t,a,n);a&&o&&"localStorage"!=i.type&&s.localStorage.removeItem(r)}))}(e.b,t,e.a).then((function(){return e.b.get(n,e.a)})).then((function(i){return i?n:e.b.get(r,e.a).then((function(n){return n?r:e.b.get(t,e.a).then((function(n){return n?t:e.b.get(hd,e.a).then((function(e){return e?pd(e):t}))}))}))})).then((function(t){return e.c=t,dd(e,t.F)})).o((function(){e.c||(e.c=t)}))}(this),this.b.addListener(pd("local"),this.a,b(this.g,this))}function dd(e,t){var n,r=[];for(n in uc)uc[n]!==t&&r.push(gc(e.b,pd(uc[n]),e.a));return r.push(gc(e.b,hd,e.a)),function(e){return new bt((function(t,n){var r=e.length,i=[];if(r)for(var o=function(e,n){r--,i[e]=n,0==r&&t(i)},s=function(e){n(e)},a=0;a<e.length;a++)jt(e[a],x(o,a),s);else t(i)}))}(r)}ud.prototype.g=function(){var e=this,t=pd("local");yd(this,(function(){return At().then((function(){return e.c&&"local"!=e.c.F?e.b.get(t,e.a):null})).then((function(n){if(n)return dd(e,"local").then((function(){e.c=t}))}))}))};var hd={name:"persistence",F:"session"};function pd(e){return{name:"authUser",F:e}}function fd(e,t){return yd(e,(function(){return e.b.set(e.c,t.w(),e.a)}))}function gd(e){return yd(e,(function(){return gc(e.b,e.c,e.a)}))}function md(e,t,n){return yd(e,(function(){return e.b.get(e.c,e.a).then((function(e){return e&&t&&(e.authDomain=t),e&&n&&(e.emulatorConfig=n),sd(e||{})}))}))}function yd(e,t){return e.f=e.f.then(t,t),e.f}function vd(e){if(this.l=!1,oi(this,"settings",new lu),oi(this,"app",e),!Ad(this).options||!Ad(this).options.apiKey)throw new P("invalid-api-key");e=co.SDK_VERSION?Nr(co.SDK_VERSION):null,this.a=new aa(Ad(this).options&&Ad(this).options.apiKey,G(A),e),this.P=[],this.s=[],this.N=[],this.Pa=co.INTERNAL.createSubscribe(b(this.zc,this)),this.W=void 0,this.ib=co.INTERNAL.createSubscribe(b(this.Ac,this)),Pd(this,null),this.i=new ud(Ad(this).options.apiKey+":"+Ad(this).name),this.D=new ad(Ad(this).options.apiKey+":"+Ad(this).name),this.$=Gd(this,function(e){var t=Ad(e).options.authDomain,n=function(e){var t=function(e,t){return e.b.get(ld,e.a).then((function(e){return e&&t&&(e.authDomain=t),sd(e||{})}))}(e.D,Ad(e).options.authDomain).then((function(t){return(e.m=t)&&(t.ha=e.D),cd(e.D)}));return Gd(e,t)}(e).then((function(){return md(e.i,t,e.R)})).then((function(t){return t?(t.ha=e.D,e.m&&(e.m.ga||null)==(t.ga||null)?t:t.reload().then((function(){return fd(e.i,t).then((function(){return t}))})).o((function(n){return"auth/network-request-failed"==n.code?t:gd(e.i)}))):null})).then((function(t){Pd(e,t||null)}));return Gd(e,n)}(this)),this.h=Gd(this,function(e){return e.$.then((function(){return wd(e)})).o((function(){})).then((function(){if(!e.l)return e.ja()})).o((function(){})).then((function(){if(!e.l){e.ba=!0;var t=e.i;t.b.addListener(pd("local"),t.a,e.ja)}}))}(this)),this.ba=!1,this.ja=b(this.Zc,this),this.Ba=b(this.da,this),this.qa=b(this.mc,this),this.za=b(this.wc,this),this.Aa=b(this.xc,this),this.b=null,function(e){var t=Ad(e).options.authDomain,n=Ad(e).options.apiKey;t&&zr()&&(e.Oa=e.$.then((function(){if(!e.l){if(e.b=tu(t,n,Ad(e).name,e.R),Hc(e.b,e),kd(e)&&Bu(kd(e)),e.m){Bu(e.m);var r=e.m;r.xa(e.la()),Mu(r,e),Ru(r=e.m,e.J),Du(r,e),Tu(r=e.m,e.R),Ou(r,e),e.m=null}return e.b}})))}(this),this.INTERNAL={},this.INTERNAL.delete=b(this.delete,this),this.INTERNAL.logFramework=b(this.Gc,this),this.u=0,xn.call(this),function(e){Object.defineProperty(e,"lc",{get:function(){return this.la()},set:function(e){this.xa(e)},enumerable:!1}),e.aa=null,Object.defineProperty(e,"ti",{get:function(){return this.T()},set:function(e){this.zb(e)},enumerable:!1}),e.S=null,Object.defineProperty(e,"emulatorConfig",{get:function(){if(this.R){var e=Yn(this.R.url);e=ai({protocol:e.c,host:e.a,port:e.g,options:ai({disableWarnings:this.R.ec})})}else e=null;return e},enumerable:!1})}(this),this.J=[],this.R=null}function _d(e){Zt.call(this,"languageCodeChanged"),this.h=e}function bd(e){Zt.call(this,"emulatorConfigChanged"),this.c=e}function xd(e){Zt.call(this,"frameworkChanged"),this.f=e}function Sd(e){return e.Oa||kt(new P("auth-domain-config-required"))}function wd(e){if(!zr())return kt(new P("operation-not-supported-in-this-environment"));var t=Sd(e).then((function(){return e.b.ra()})).then((function(e){return e?ai(e):null}));return Gd(e,t)}function Ed(e,t){var n={};return n.apiKey=Ad(e).options.apiKey,n.authDomain=Ad(e).options.authDomain,n.appName=Ad(e).name,e.R&&(n.emulatorConfig=e.R),e.$.then((function(){return function(e,t,n,r){var i=new Gu(e,t);return n&&(i.ha=n),r&&Ru(i,r),i.reload().then((function(){return i}))}(n,t,e.D,e.Ga())})).then((function(t){return kd(e)&&t.uid==kd(e).uid?(Zu(kd(e),t),e.da(t)):(Pd(e,t),Bu(t),e.da(t))})).then((function(){Id(e)}))}function Pd(e,t){kd(e)&&(function(e,t){K(e.W,(function(e){return e==t}))}(kd(e),e.Ba),hn(kd(e),"tokenChanged",e.qa),hn(kd(e),"userDeleted",e.za),hn(kd(e),"userInvalidated",e.Aa),Vu(kd(e))),t&&(t.W.push(e.Ba),cn(t,"tokenChanged",e.qa),cn(t,"userDeleted",e.za),cn(t,"userInvalidated",e.Aa),0<e.u&&Lu(t)),oi(e,"currentUser",t),t&&(t.xa(e.la()),Mu(t,e),Ru(t,e.J),Du(t,e),Tu(t,e.R),Ou(t,e))}function Cd(e,t){var n=null,r=null;return Gd(e,t.then((function(t){return n=Ko(t),r=oo(t),Ed(e,t)}),(function(t){var n=null;throw t&&"auth/multi-factor-auth-required"===t.code&&(n=mu(t.w(),e,b(e.kc,e))),n||t})).then((function(){return ai({user:kd(e),credential:n,additionalUserInfo:r,operationType:"signIn"})})))}function Ad(e){return e.app}function kd(e){return e.currentUser}function jd(e){return kd(e)&&kd(e)._lat||null}function Id(e){if(e.ba){for(var t=0;t<e.s.length;t++)e.s[t]&&e.s[t](jd(e));if(e.W!==e.getUid()&&e.N.length)for(e.W=e.getUid(),t=0;t<e.N.length;t++)e.N[t]&&e.N[t](jd(e))}}function Gd(e,t){return e.P.push(t),t.oa((function(){Y(e.P,t)})),t}function Td(){}function Md(){this.a={},this.b=1e12}ud.prototype.yb=function(e){var t=null,n=this;return function(e){var t=new P("invalid-persistence-type"),n=new P("unsupported-persistence-type");e:{for(r in uc)if(uc[r]==e){var r=!0;break e}r=!1}if(!r||"string"!==typeof e)throw t;switch(Gr()){case"ReactNative":if("session"===e)throw n;break;case"Node":if("none"!==e)throw n;break;case"Worker":if("session"===e||!Ul()&&"none"!==e)throw n;break;default:if(!Fr()&&"none"!==e)throw n}}(e),yd(this,(function(){return e!=n.c.F?n.b.get(n.c,n.a).then((function(r){return t=r,dd(n,e)})).then((function(){if(n.c=pd(e),t)return n.b.set(n.c,t,n.a)})):At()}))},w(vd,xn),w(_d,Zt),w(bd,Zt),w(xd,Zt),(e=vd.prototype).yb=function(e){return Gd(this,e=this.i.yb(e))},e.xa=function(e){this.aa===e||this.l||(this.aa=e,fa(this.a,this.aa),this.dispatchEvent(new _d(this.la())))},e.la=function(){return this.aa},e.fd=function(){var e=s.navigator;this.xa(e&&(e.languages&&e.languages[0]||e.language||e.userLanguage)||null)},e.gd=function(e,t){if(!this.R){if(!/^https?:\/\//.test(e))throw new P("argument-error","Emulator URL must start with a valid scheme (http:// or https://).");(function(e){"undefined"!==typeof console&&"function"===typeof console.info&&console.info("WARNING: You are using the Auth Emulator, which is intended for local testing only.  Do not use with production credentials."),s.document&&!e&&Ar().then((function(){var e=s.document.createElement("div");e.innerText="Running in emulator mode. Do not use with production credentials.",e.style.position="fixed",e.style.width="100%",e.style.backgroundColor="#ffffff",e.style.border=".1em solid #000000",e.style.color="#b50000",e.style.bottom="0px",e.style.left="0px",e.style.margin="0px",e.style.zIndex=1e4,e.style.textAlign="center",e.classList.add("firebase-emulator-warning"),s.document.body.appendChild(e)}))})(t=!!t&&!!t.disableWarnings),this.R={url:e,ec:t},this.settings.jb=!0,ga(this.a,this.R),this.dispatchEvent(new bd(this.R))}},e.Gc=function(e){this.J.push(e),ya(this.a,co.SDK_VERSION?Nr(co.SDK_VERSION,this.J):null),this.dispatchEvent(new xd(this.J))},e.Ga=function(){return $(this.J)},e.zb=function(e){this.S===e||this.l||(this.S=e,this.a.b=this.S)},e.T=function(){return this.S},e.toJSON=function(){return{apiKey:Ad(this).options.apiKey,authDomain:Ad(this).options.authDomain,appName:Ad(this).name,currentUser:kd(this)&&kd(this).w()}},e.Gb=function(e,t){switch(e){case"unknown":case"signInViaRedirect":return!0;case"signInViaPopup":return this.g==t&&!!this.f;default:return!1}},e.na=function(e,t,n,r){"signInViaPopup"==e&&this.g==r&&(n&&this.C?this.C(n):t&&!n&&this.f&&this.f(t),this.c&&(this.c.cancel(),this.c=null),delete this.f,delete this.C)},e.Fa=function(e,t){return"signInViaRedirect"==e||"signInViaPopup"==e&&this.g==t&&this.f?b(this.ic,this):null},e.ic=function(e,t,n,r){var i=this,o={requestUri:e,postBody:r,sessionId:t,tenantId:n};return this.c&&(this.c.cancel(),this.c=null),i.$.then((function(){return Cd(i,Ga(i.a,o))}))},e.Xc=function(e){if(!zr())return kt(new P("operation-not-supported-in-this-environment"));var t=this,n=io(e.providerId),r=Yr(),i=null;(!Wr()||jr())&&Ad(this).options.authDomain&&e.isOAuthProvider&&(i=jl(Ad(this).options.authDomain,Ad(this).options.apiKey,Ad(this).name,"signInViaPopup",e,null,r,co.SDK_VERSION||null,null,null,this.T(),this.R));var o=Er(i,n&&n.va,n&&n.ua);return n=Sd(this).then((function(n){return Kc(n,o,"signInViaPopup",e,r,!!i,t.T())})).then((function(){return new bt((function(e,n){t.na("signInViaPopup",null,new P("cancelled-popup-request"),t.g),t.f=e,t.C=n,t.g=r,t.c=Jc(t.b,t,"signInViaPopup",o,r)}))})).then((function(e){return o&&wr(o),e?ai(e):null})).o((function(e){throw o&&wr(o),e})),Gd(this,n)},e.Yc=function(e){if(!zr())return kt(new P("operation-not-supported-in-this-environment"));var t=this,n=Sd(this).then((function(){return function(e){return yd(e,(function(){return e.b.set(hd,e.c.F,e.a)}))}(t.i)})).then((function(){return $c(t.b,"signInViaRedirect",e,void 0,t.T())}));return Gd(this,n)},e.ra=function(){var e=this;return wd(this).then((function(t){return e.b&&iu(e.b.b),t})).o((function(t){throw e.b&&iu(e.b.b),t}))},e.dd=function(e){if(!e)return kt(new P("null-user"));if(this.S!=e.tenantId)return kt(new P("tenant-id-mismatch"));var t=this,n={};n.apiKey=Ad(this).options.apiKey,n.authDomain=Ad(this).options.authDomain,n.appName=Ad(this).name;var r=function(e,t,n,r){var i=e.h,o={};return o[ca]=i.b&&i.b.toString(),o.refreshToken=i.a,t=new Gu(t||{apiKey:e.l,authDomain:e.s,appName:e.m},o),n&&(t.ha=n),r&&Ru(t,r),Zu(t,e),t}(e,n,t.D,t.Ga());return Gd(this,this.h.then((function(){if(Ad(t).options.apiKey!=e.l)return r.reload()})).then((function(){return kd(t)&&e.uid==kd(t).uid?(Zu(kd(t),e),t.da(e)):(Pd(t,r),Bu(r),t.da(r))})).then((function(){Id(t)})))},e.Bb=function(){var e=this;return Gd(this,this.h.then((function(){return e.b&&iu(e.b.b),kd(e)?(Pd(e,null),gd(e.i).then((function(){Id(e)}))):At()})))},e.Zc=function(){var e=this;return md(this.i,Ad(this).options.authDomain).then((function(t){if(!e.l){var n;if(n=kd(e)&&t){n=kd(e).uid;var r=t.uid;n=void 0!==n&&null!==n&&""!==n&&void 0!==r&&null!==r&&""!==r&&n==r}if(n)return Zu(kd(e),t),kd(e).I();(kd(e)||t)&&(Pd(e,t),t&&(Bu(t),t.ha=e.D),e.b&&Hc(e.b,e),Id(e))}}))},e.da=function(e){return fd(this.i,e)},e.mc=function(){Id(this),this.da(kd(this))},e.wc=function(){this.Bb()},e.xc=function(){this.Bb()},e.kc=function(e){var t=this;return this.h.then((function(){return Cd(t,At(e))}))},e.zc=function(e){var t=this;this.addAuthTokenListener((function(){e.next(kd(t))}))},e.Ac=function(e){var t=this;!function(e,t){e.N.push(t),Gd(e,e.h.then((function(){!e.l&&X(e.N,t)&&e.W!==e.getUid()&&(e.W=e.getUid(),t(jd(e)))})))}(this,(function(){e.next(kd(t))}))},e.Ic=function(e,t,n){var r=this;return this.ba&&Promise.resolve().then((function(){"function"===typeof e?e(kd(r)):"function"===typeof e.next&&e.next(kd(r))})),this.Pa(e,t,n)},e.Hc=function(e,t,n){var r=this;return this.ba&&Promise.resolve().then((function(){r.W=r.getUid(),"function"===typeof e?e(kd(r)):"function"===typeof e.next&&e.next(kd(r))})),this.ib(e,t,n)},e.nc=function(e){var t=this,n=this.h.then((function(){return kd(t)?kd(t).I(e).then((function(e){return{accessToken:e}})):null}));return Gd(this,n)},e.Tc=function(e){var t=this;return this.h.then((function(){return Cd(t,fl(t.a,ll,{token:e}))})).then((function(e){var n=e.user;return Ku(n,"isAnonymous",!1),t.da(n),e}))},e.Uc=function(e,t){var n=this;return this.h.then((function(){return Cd(n,fl(n.a,cl,{email:e,password:t}))}))},e.dc=function(e,t){var n=this;return this.h.then((function(){return Cd(n,fl(n.a,Na,{email:e,password:t}))}))},e.ab=function(e){var t=this;return this.h.then((function(){return Cd(t,e.ka(t.a))}))},e.Sc=function(e){return ri("firebase.auth.Auth.prototype.signInAndRetrieveDataWithCredential is deprecated. Please use firebase.auth.Auth.prototype.signInWithCredential instead."),this.ab(e)},e.Ab=function(){var e=this;return this.h.then((function(){var t=kd(e);if(t&&t.isAnonymous){var n=ai({providerId:null,isNewUser:!1});return ai({user:t,credential:null,additionalUserInfo:n,operationType:"signIn"})}return Cd(e,e.a.Ab()).then((function(t){var n=t.user;return Ku(n,"isAnonymous",!0),e.da(n),t}))}))},e.getUid=function(){return kd(this)&&kd(this).uid||null},e.cc=function(e){this.addAuthTokenListener(e),this.u++,0<this.u&&kd(this)&&Lu(kd(this))},e.Pc=function(e){var t=this;U(this.s,(function(n){n==e&&t.u--})),0>this.u&&(this.u=0),0==this.u&&kd(this)&&Vu(kd(this)),this.removeAuthTokenListener(e)},e.addAuthTokenListener=function(e){var t=this;this.s.push(e),Gd(this,this.h.then((function(){t.l||X(t.s,e)&&e(jd(t))})))},e.removeAuthTokenListener=function(e){K(this.s,(function(t){return t==e}))},e.delete=function(){this.l=!0;for(var e=0;e<this.P.length;e++)this.P[e].cancel("app-deleted");return this.P=[],this.i&&(e=this.i).b.removeListener(pd("local"),e.a,this.ja),this.b&&(qc(this.b,this),iu(this.b.b)),Promise.resolve()},e.hc=function(e){return Gd(this,function(e,t){return fl(e,La,{identifier:t,continueUri:Br()?_r():"http://localhost"}).then((function(e){return e.signinMethods||[]}))}(this.a,e))},e.Bc=function(e){return!!Uo(e)},e.xb=function(e,t){var n=this;return Gd(this,At().then((function(){var e=new Vi(t);if(!e.c)throw new P("argument-error",Bi+" must be true when sending sign in link to email");return Ki(e)})).then((function(t){return n.a.xb(e,t)})).then((function(){})))},e.jd=function(e){return this.Sa(e).then((function(e){return e.data.email}))},e.ob=function(e,t){return Gd(this,this.a.ob(e,t).then((function(){})))},e.Sa=function(e){return Gd(this,this.a.Sa(e).then((function(e){return new mi(e)})))},e.kb=function(e){return Gd(this,this.a.kb(e).then((function(){})))},e.wb=function(e,t){var n=this;return Gd(this,At().then((function(){return"undefined"===typeof t||pe(t)?{}:Ki(new Vi(t))})).then((function(t){return n.a.wb(e,t)})).then((function(){})))},e.Wc=function(e,t){return Gd(this,uu(this,e,t,b(this.ab,this)))},e.Vc=function(e,t){var n=this;return Gd(this,At().then((function(){var r=t||_r(),i=Bo(e,r);if(!(r=Uo(r)))throw new P("argument-error","Invalid email link!");if(r.tenantId!==n.T())throw new P("tenant-id-mismatch");return n.ab(i)})))},Td.prototype.render=function(){},Td.prototype.reset=function(){},Td.prototype.getResponse=function(){},Td.prototype.execute=function(){};var Od=null;function Rd(e,t){return(t=Dd(t))&&e.a[t]||null}function Dd(e){return(e="undefined"===typeof e?1e12:e)?e.toString():null}function Nd(e,t){this.g=!1,this.c=t,this.a=this.b=null,this.h="invisible"!==this.c.size,this.f=lt(e);var n=this;this.i=function(){n.execute()},this.h?this.execute():cn(this.f,"click",this.i)}function Ld(e){if(e.g)throw Error("reCAPTCHA mock was already deleted!")}function Vd(){}function Fd(){}Md.prototype.render=function(e,t){return this.a[this.b.toString()]=new Nd(e,t),this.b++},Md.prototype.reset=function(e){var t=Rd(this,e);e=Dd(e),t&&e&&(t.delete(),delete this.a[e])},Md.prototype.getResponse=function(e){return(e=Rd(this,e))?e.getResponse():null},Md.prototype.execute=function(e){(e=Rd(this,e))&&e.execute()},Nd.prototype.getResponse=function(){return Ld(this),this.b},Nd.prototype.execute=function(){Ld(this);var e=this;this.a||(this.a=setTimeout((function(){e.b=function(){for(var e=50,t=[];0<e;)t.push("1234567890abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ".charAt(Math.floor(62*Math.random()))),e--;return t.join("")}();var t=e.c.callback,n=e.c["expired-callback"];if(t)try{t(e.b)}catch(Gn){}e.a=setTimeout((function(){if(e.a=null,e.b=null,n)try{n()}catch(Gn){}e.h&&e.execute()}),6e4)}),500))},Nd.prototype.delete=function(){Ld(this),this.g=!0,clearTimeout(this.a),this.a=null,hn(this.f,"click",this.i)},oi(Vd,"FACTOR_ID","phone"),Fd.prototype.g=function(){return Od||(Od=new Md),At(Od)},Fd.prototype.c=function(){};var zd=null;function Bd(){this.b=s.grecaptcha?1/0:0,this.f=null,this.a="__rcb"+Math.floor(1e6*Math.random()).toString()}var Ud=new ve(Se,"https://www.google.com/recaptcha/api.js?onload=%{onload}&render=explicit&hl=%{hl}"),Wd=new $r(3e4,6e4);Bd.prototype.g=function(e){var t=this;return new bt((function(n,r){var i=setTimeout((function(){r(new P("network-request-failed"))}),Wd.get());!s.grecaptcha||e!==t.f&&!t.b?(s[t.a]=function(){if(s.grecaptcha){t.f=e;var o=s.grecaptcha.render;s.grecaptcha.render=function(e,n){return e=o(e,n),t.b++,e},clearTimeout(i),n(s.grecaptcha)}else clearTimeout(i),r(new P("internal-error"));delete s[t.a]},At(ea(Ce(Ud,{onload:t.a,hl:e||""}))).o((function(){clearTimeout(i),r(new P("internal-error","Unable to load external reCAPTCHA dependencies!"))}))):(clearTimeout(i),n(s.grecaptcha))}))},Bd.prototype.c=function(){this.b--};var Hd=null;function qd(e,t,n,r,i,o,a){if(oi(this,"type","recaptcha"),this.c=this.f=null,this.J=!1,this.v=t,this.g=null,a?(zd||(zd=new Fd),a=zd):(Hd||(Hd=new Bd),a=Hd),this.m=a,this.a=n||{theme:"light",type:"image"},this.h=[],this.a[Kd])throw new P("argument-error","sitekey should not be provided for reCAPTCHA as one is automatically provisioned for the current project.");if(this.i="invisible"===this.a[Zd],!s.document)throw new P("operation-not-supported-in-this-environment","RecaptchaVerifier is only supported in a browser HTTP/HTTPS environment with DOM support.");if(!lt(t)||!this.i&&lt(t).hasChildNodes())throw new P("argument-error","reCAPTCHA container is either not found or already contains inner elements!");this.s=new aa(e,o||null,i||null),this.u=r||function(){return null};var l=this;this.l=[];var c=this.a[Xd];this.a[Xd]=function(e){if($d(l,e),"function"===typeof c)c(e);else if("string"===typeof c){var t=Vr(c,s);"function"===typeof t&&t(e)}};var u=this.a[Yd];this.a[Yd]=function(){if($d(l,null),"function"===typeof u)u();else if("string"===typeof u){var e=Vr(u,s);"function"===typeof e&&e()}}}var Xd="callback",Yd="expired-callback",Kd="sitekey",Zd="size";function $d(e,t){for(var n=0;n<e.l.length;n++)try{e.l[n](t)}catch(Gn){}}function Jd(e,t){return e.h.push(t),t.oa((function(){Y(e.h,t)})),t}function Qd(e){if(e.J)throw new P("internal-error","RecaptchaVerifier instance has been destroyed.")}function eh(e,t,n){var r=!1;try{this.b=n||co.app()}catch(Vn){throw new P("argument-error","No firebase.app.App instance is currently initialized.")}if(!this.b.options||!this.b.options.apiKey)throw new P("invalid-api-key");n=this.b.options.apiKey;var i=this,o=null;try{o=this.b.auth().Ga()}catch(Vn){}try{r=this.b.auth().settings.appVerificationDisabledForTesting}catch(Vn){}o=co.SDK_VERSION?Nr(co.SDK_VERSION,o):null,qd.call(this,n,e,t,(function(){try{var e=i.b.auth().la()}catch(Tn){e=null}return e}),o,G(A),r)}function th(e,t,n,r){e:{n=Array.prototype.slice.call(n);for(var i=0,o=!1,s=0;s<t.length;s++)if(t[s].optional)o=!0;else{if(o)throw new P("internal-error","Argument validator encountered a required argument after an optional argument.");i++}if(o=t.length,n.length<i||o<n.length)r="Expected "+(i==o?1==i?"1 argument":i+" arguments":i+"-"+o+" arguments")+" but got "+n.length+".";else{for(i=0;i<n.length;i++)if(o=t[i].optional&&void 0===n[i],!t[i].M(n[i])&&!o){if(t=t[i],0>i||i>=nh.length)throw new P("internal-error","Argument validator received an unsupported number of arguments.");n=nh[i],r=(r?"":n+" argument ")+(t.name?'"'+t.name+'" ':"")+"must be "+t.K+".";break e}r=null}}if(r)throw new P("argument-error",e+" failed: "+r)}(e=qd.prototype).Ia=function(){var e=this;return this.f?this.f:this.f=Jd(this,At().then((function(){if(Br()&&!Ir())return Ar();throw new P("operation-not-supported-in-this-environment","RecaptchaVerifier is only supported in a browser HTTP/HTTPS environment.")})).then((function(){return e.m.g(e.u())})).then((function(t){return e.g=t,fl(e.s,$a,{})})).then((function(t){e.a[Kd]=t.recaptchaSiteKey})).o((function(t){throw e.f=null,t})))},e.render=function(){Qd(this);var e=this;return Jd(this,this.Ia().then((function(){if(null===e.c){var t=e.v;if(!e.i){var n=lt(t);t=pt("DIV"),n.appendChild(t)}e.c=e.g.render(t,e.a)}return e.c})))},e.verify=function(){Qd(this);var e=this;return Jd(this,this.render().then((function(t){return new bt((function(n){var r=e.g.getResponse(t);if(r)n(r);else{var i=function(t){t&&(function(e,t){K(e.l,(function(e){return e==t}))}(e,i),n(t))};e.l.push(i),e.i&&e.g.execute(e.c)}}))})))},e.reset=function(){Qd(this),null!==this.c&&this.g.reset(this.c)},e.clear=function(){Qd(this),this.J=!0,this.m.c();for(var e=0;e<this.h.length;e++)this.h[e].cancel("RecaptchaVerifier instance has been destroyed.");if(!this.i){e=lt(this.v);for(var t;t=e.firstChild;)e.removeChild(t)}},w(eh,qd);var nh="First Second Third Fourth Fifth Sixth Seventh Eighth Ninth".split(" ");function rh(e,t){return{name:e||"",K:"a valid string",optional:!!t,M:function(e){return"string"===typeof e}}}function ih(e,t){return{name:e||"",K:"a boolean",optional:!!t,M:function(e){return"boolean"===typeof e}}}function oh(e,t){return{name:e||"",K:"a valid object",optional:!!t,M:f}}function sh(e,t){return{name:e||"",K:"a function",optional:!!t,M:function(e){return"function"===typeof e}}}function ah(e,t){return{name:e||"",K:"null",optional:!!t,M:function(e){return null===e}}}function lh(e){return{name:e?e+"Credential":"credential",K:e?"a valid "+e+" credential":"a valid credential",optional:!1,M:function(t){if(!t)return!1;var n=!e||t.providerId===e;return!(!t.ka||!n)}}}function ch(e,t){return f(e)&&"string"===typeof e.type&&e.type===t&&"function"===typeof e.Ha}function uh(e){return f(e)&&"string"===typeof e.uid}function dh(e,t,n,r){return{name:n||"",K:e.K+" or "+t.K,optional:!!r,M:function(n){return e.M(n)||t.M(n)}}}function hh(e,t){for(var n in t){var r=t[n].name;e[r]=gh(r,e[n],t[n].j)}}function ph(e,t){for(var n in t){var r=t[n].name;r!==n&&Object.defineProperty(e,r,{get:x((function(e){return this[e]}),n),set:x((function(e,t,n,r){th(e,[n],[r],!0),this[t]=r}),r,n,t[n].lb),enumerable:!0})}}function fh(e,t,n,r){e[t]=gh(t,n,r)}function gh(e,t,n){function r(){var e=Array.prototype.slice.call(arguments);return th(o,n,e),t.apply(this,e)}if(!n)return t;var i,o=function(e){return e=e.split("."),e[e.length-1]}(e);for(i in t)r[i]=t[i];for(i in t.prototype)r.prototype[i]=t.prototype[i];return r}hh(vd.prototype,{kb:{name:"applyActionCode",j:[rh("code")]},Sa:{name:"checkActionCode",j:[rh("code")]},ob:{name:"confirmPasswordReset",j:[rh("code"),rh("newPassword")]},dc:{name:"createUserWithEmailAndPassword",j:[rh("email"),rh("password")]},hc:{name:"fetchSignInMethodsForEmail",j:[rh("email")]},ra:{name:"getRedirectResult",j:[]},Bc:{name:"isSignInWithEmailLink",j:[rh("emailLink")]},Hc:{name:"onAuthStateChanged",j:[dh(oh(),sh(),"nextOrObserver"),sh("opt_error",!0),sh("opt_completed",!0)]},Ic:{name:"onIdTokenChanged",j:[dh(oh(),sh(),"nextOrObserver"),sh("opt_error",!0),sh("opt_completed",!0)]},wb:{name:"sendPasswordResetEmail",j:[rh("email"),dh(oh("opt_actionCodeSettings",!0),ah(null,!0),"opt_actionCodeSettings",!0)]},xb:{name:"sendSignInLinkToEmail",j:[rh("email"),oh("actionCodeSettings")]},yb:{name:"setPersistence",j:[rh("persistence")]},Sc:{name:"signInAndRetrieveDataWithCredential",j:[lh()]},Ab:{name:"signInAnonymously",j:[]},ab:{name:"signInWithCredential",j:[lh()]},Tc:{name:"signInWithCustomToken",j:[rh("token")]},Uc:{name:"signInWithEmailAndPassword",j:[rh("email"),rh("password")]},Vc:{name:"signInWithEmailLink",j:[rh("email"),rh("emailLink",!0)]},Wc:{name:"signInWithPhoneNumber",j:[rh("phoneNumber"),{name:"applicationVerifier",K:"an implementation of firebase.auth.ApplicationVerifier",optional:!1,M:function(e){return!(!e||"string"!==typeof e.type||"function"!==typeof e.verify)}}]},Xc:{name:"signInWithPopup",j:[{name:"authProvider",K:"a valid Auth provider",optional:!1,M:function(e){return!!(e&&e.providerId&&e.hasOwnProperty&&e.hasOwnProperty("isOAuthProvider"))}}]},Yc:{name:"signInWithRedirect",j:[{name:"authProvider",K:"a valid Auth provider",optional:!1,M:function(e){return!!(e&&e.providerId&&e.hasOwnProperty&&e.hasOwnProperty("isOAuthProvider"))}}]},dd:{name:"updateCurrentUser",j:[dh({name:"user",K:"an instance of Firebase User",optional:!1,M:function(e){return!!(e&&e instanceof Gu)}},ah(),"user")]},Bb:{name:"signOut",j:[]},toJSON:{name:"toJSON",j:[rh(null,!0)]},fd:{name:"useDeviceLanguage",j:[]},gd:{name:"useEmulator",j:[rh("url"),oh("options",!0)]},jd:{name:"verifyPasswordResetCode",j:[rh("code")]}}),ph(vd.prototype,{lc:{name:"languageCode",lb:dh(rh(),ah(),"languageCode")},ti:{name:"tenantId",lb:dh(rh(),ah(),"tenantId")}}),vd.Persistence=uc,vd.Persistence.LOCAL="local",vd.Persistence.SESSION="session",vd.Persistence.NONE="none",hh(Gu.prototype,{delete:{name:"delete",j:[]},oc:{name:"getIdTokenResult",j:[ih("opt_forceRefresh",!0)]},I:{name:"getIdToken",j:[ih("opt_forceRefresh",!0)]},Cc:{name:"linkAndRetrieveDataWithCredential",j:[lh()]},rb:{name:"linkWithCredential",j:[lh()]},Dc:{name:"linkWithPhoneNumber",j:[rh("phoneNumber"),{name:"applicationVerifier",K:"an implementation of firebase.auth.ApplicationVerifier",optional:!1,M:function(e){return!(!e||"string"!==typeof e.type||"function"!==typeof e.verify)}}]},Ec:{name:"linkWithPopup",j:[{name:"authProvider",K:"a valid Auth provider",optional:!1,M:function(e){return!!(e&&e.providerId&&e.hasOwnProperty&&e.hasOwnProperty("isOAuthProvider"))}}]},Fc:{name:"linkWithRedirect",j:[{name:"authProvider",K:"a valid Auth provider",optional:!1,M:function(e){return!!(e&&e.providerId&&e.hasOwnProperty&&e.hasOwnProperty("isOAuthProvider"))}}]},Lc:{name:"reauthenticateAndRetrieveDataWithCredential",j:[lh()]},ub:{name:"reauthenticateWithCredential",j:[lh()]},Mc:{name:"reauthenticateWithPhoneNumber",j:[rh("phoneNumber"),{name:"applicationVerifier",K:"an implementation of firebase.auth.ApplicationVerifier",optional:!1,M:function(e){return!(!e||"string"!==typeof e.type||"function"!==typeof e.verify)}}]},Nc:{name:"reauthenticateWithPopup",j:[{name:"authProvider",K:"a valid Auth provider",optional:!1,M:function(e){return!!(e&&e.providerId&&e.hasOwnProperty&&e.hasOwnProperty("isOAuthProvider"))}}]},Oc:{name:"reauthenticateWithRedirect",j:[{name:"authProvider",K:"a valid Auth provider",optional:!1,M:function(e){return!!(e&&e.providerId&&e.hasOwnProperty&&e.hasOwnProperty("isOAuthProvider"))}}]},reload:{name:"reload",j:[]},vb:{name:"sendEmailVerification",j:[dh(oh("opt_actionCodeSettings",!0),ah(null,!0),"opt_actionCodeSettings",!0)]},toJSON:{name:"toJSON",j:[rh(null,!0)]},cd:{name:"unlink",j:[rh("provider")]},Cb:{name:"updateEmail",j:[rh("email")]},Db:{name:"updatePassword",j:[rh("password")]},ed:{name:"updatePhoneNumber",j:[lh("phone")]},Eb:{name:"updateProfile",j:[oh("profile")]},Fb:{name:"verifyBeforeUpdateEmail",j:[rh("email"),dh(oh("opt_actionCodeSettings",!0),ah(null,!0),"opt_actionCodeSettings",!0)]}}),hh(Md.prototype,{execute:{name:"execute"},render:{name:"render"},reset:{name:"reset"},getResponse:{name:"getResponse"}}),hh(Td.prototype,{execute:{name:"execute"},render:{name:"render"},reset:{name:"reset"},getResponse:{name:"getResponse"}}),hh(bt.prototype,{oa:{name:"finally"},o:{name:"catch"},then:{name:"then"}}),ph(lu.prototype,{appVerificationDisabled:{name:"appVerificationDisabledForTesting",lb:ih("appVerificationDisabledForTesting")}}),hh(cu.prototype,{confirm:{name:"confirm",j:[rh("verificationCode")]}}),fh(bo,"fromJSON",(function(e){e="string"===typeof e?JSON.parse(e):e;for(var t,n=[Ao,Fo,Ho,Eo],r=0;r<n.length;r++)if(t=n[r](e))return t;return null}),[dh(rh(),oh(),"json")]),fh(zo,"credential",(function(e,t){return new Vo(e,t)}),[rh("email"),rh("password")]),hh(Vo.prototype,{w:{name:"toJSON",j:[rh(null,!0)]}}),hh(Go.prototype,{Ca:{name:"addScope",j:[rh("scope")]},Ka:{name:"setCustomParameters",j:[oh("customOAuthParameters")]}}),fh(Go,"credential",To,[dh(rh(),oh(),"token")]),fh(zo,"credentialWithLink",Bo,[rh("email"),rh("emailLink")]),hh(Mo.prototype,{Ca:{name:"addScope",j:[rh("scope")]},Ka:{name:"setCustomParameters",j:[oh("customOAuthParameters")]}}),fh(Mo,"credential",Oo,[dh(rh(),oh(),"token")]),hh(Ro.prototype,{Ca:{name:"addScope",j:[rh("scope")]},Ka:{name:"setCustomParameters",j:[oh("customOAuthParameters")]}}),fh(Ro,"credential",Do,[dh(rh(),dh(oh(),ah()),"idToken"),dh(rh(),ah(),"accessToken",!0)]),hh(No.prototype,{Ka:{name:"setCustomParameters",j:[oh("customOAuthParameters")]}}),fh(No,"credential",Lo,[dh(rh(),oh(),"token"),rh("secret",!0)]),hh(Io.prototype,{Ca:{name:"addScope",j:[rh("scope")]},credential:{name:"credential",j:[dh(rh(),dh(oh(),ah()),"optionsOrIdToken"),dh(rh(),ah(),"accessToken",!0)]},Ka:{name:"setCustomParameters",j:[oh("customOAuthParameters")]}}),hh(Po.prototype,{w:{name:"toJSON",j:[rh(null,!0)]}}),hh(So.prototype,{w:{name:"toJSON",j:[rh(null,!0)]}}),fh(Xo,"credential",Yo,[rh("verificationId"),rh("verificationCode")]),hh(Xo.prototype,{gb:{name:"verifyPhoneNumber",j:[dh(rh(),{name:"phoneInfoOptions",K:"valid phone info options",optional:!1,M:function(e){return!!e&&(e.session&&e.phoneNumber?ch(e.session,vo)&&"string"===typeof e.phoneNumber:e.session&&e.multiFactorHint?ch(e.session,_o)&&uh(e.multiFactorHint):e.session&&e.multiFactorUid?ch(e.session,_o)&&"string"===typeof e.multiFactorUid:!!e.phoneNumber&&"string"===typeof e.phoneNumber)}},"phoneInfoOptions"),{name:"applicationVerifier",K:"an implementation of firebase.auth.ApplicationVerifier",optional:!1,M:function(e){return!(!e||"string"!==typeof e.type||"function"!==typeof e.verify)}}]}}),hh(Wo.prototype,{w:{name:"toJSON",j:[rh(null,!0)]}}),hh(P.prototype,{toJSON:{name:"toJSON",j:[rh(null,!0)]}}),hh(rs.prototype,{toJSON:{name:"toJSON",j:[rh(null,!0)]}}),hh(ns.prototype,{toJSON:{name:"toJSON",j:[rh(null,!0)]}}),hh(gu.prototype,{toJSON:{name:"toJSON",j:[rh(null,!0)]}}),hh(hu.prototype,{Rc:{name:"resolveSignIn",j:[{name:"multiFactorAssertion",K:"a valid multiFactorAssertion",optional:!1,M:function(e){return!!e&&!!e.tb}}]}}),hh(xu.prototype,{Sb:{name:"getSession",j:[]},fc:{name:"enroll",j:[{name:"multiFactorAssertion",K:"a valid multiFactorAssertion",optional:!1,M:function(e){return!!e&&!!e.tb}},rh("displayName",!0)]},bd:{name:"unenroll",j:[dh({name:"multiFactorInfo",K:"a valid multiFactorInfo",optional:!1,M:uh},rh(),"multiFactorInfoIdentifier")]}}),hh(eh.prototype,{clear:{name:"clear",j:[]},render:{name:"render",j:[]},verify:{name:"verify",j:[]}}),fh(Ii,"parseLink",Li,[rh("link")]),fh(Vd,"assertion",(function(e){return new _u(e)}),[lh("phone")]),function(){if("undefined"===typeof co||!co.INTERNAL||!co.INTERNAL.registerComponent)throw Error("Cannot find the firebase namespace; be sure to include firebase-app.js before this library.");var e={ActionCodeInfo:{Operation:{EMAIL_SIGNIN:vi,PASSWORD_RESET:"PASSWORD_RESET",RECOVER_EMAIL:"RECOVER_EMAIL",REVERT_SECOND_FACTOR_ADDITION:yi,VERIFY_AND_CHANGE_EMAIL:_i,VERIFY_EMAIL:"VERIFY_EMAIL"}},Auth:vd,AuthCredential:bo,Error:P};fh(e,"EmailAuthProvider",zo,[]),fh(e,"FacebookAuthProvider",Go,[]),fh(e,"GithubAuthProvider",Mo,[]),fh(e,"GoogleAuthProvider",Ro,[]),fh(e,"TwitterAuthProvider",No,[]),fh(e,"OAuthProvider",Io,[rh("providerId")]),fh(e,"SAMLAuthProvider",jo,[rh("providerId")]),fh(e,"PhoneAuthProvider",Xo,[{name:"auth",K:"an instance of Firebase Auth",optional:!0,M:function(e){return!!(e&&e instanceof vd)}}]),fh(e,"RecaptchaVerifier",eh,[dh(rh(),{name:"",K:"an HTML element",optional:!1,M:function(e){return!!(e&&e instanceof Element)}},"recaptchaContainer"),oh("recaptchaParameters",!0),{name:"app",K:"an instance of Firebase App",optional:!0,M:function(e){return!!(e&&e instanceof co.app.App)}}]),fh(e,"ActionCodeURL",Ii,[]),fh(e,"PhoneMultiFactorGenerator",Vd,[]),co.INTERNAL.registerComponent({name:"auth",instanceFactory:function(e){return new vd(e=e.getProvider("app").getImmediate())},multipleInstances:!1,serviceProps:e,instantiationMode:"LAZY",type:"PUBLIC",onInstanceCreated:function(e){e.getProvider("auth-internal").initialize()}}),co.INTERNAL.registerComponent({name:"auth-internal",instanceFactory:function(e){return{getUid:b((e=e.getProvider("auth").getImmediate()).getUid,e),getToken:b(e.nc,e),addAuthTokenListener:b(e.cc,e),removeAuthTokenListener:b(e.Pc,e)}},multipleInstances:!1,instantiationMode:"LAZY",type:"PRIVATE"}),co.registerVersion("@firebase/auth","0.16.8"),co.INTERNAL.extendNamespace({User:Gu})}()}.apply("undefined"!==typeof __webpack_require__.g?__webpack_require__.g:"undefined"!==typeof self?self:"undefined"!==typeof window?window:{});co.initializeApp({apiKey:"AIzaSyBHPgV3XKgYOnM990_yTwspgeTvJbOgAhg",authDomain:"skyvisor-prod.firebaseapp.com",databaseURL:"https://skyvisor-prod.firebaseio.com",projectId:"skyvisor-prod",storageBucket:"skyvisor-prod.appspot.com",messagingSenderId:"251853988099",appId:"1:251853988099:web:bab0205739db7f7d060936"}),co.auth().onAuthStateChanged((function(e){}));const ho=co.auth(),po=co.auth.Auth.Persistence,fo=Qr({name:"auth",initialState:{prefLanguage:localStorage.getItem("myLanguage")||"french",prefNewAnnotation:localStorage.getItem("newAnnotationMethod")||"",aiMode:!1,errorOccured:!1,lightVersion:null,assetRight:null,role:null},reducers:{setUserLogoutState:()=>{localStorage.setItem("_user","{}"),ho.signOut()},setProfile:(e,t)=>{t.payload&&localStorage.setItem("_user",JSON.stringify(t.payload))},setPreferredLanguage:(e,t)=>{e.prefLanguage=t.payload,e.prefLanguage&&localStorage.setItem("myLanguage",e.prefLanguage)},setPreferredNewAnnotation:(e,t)=>{e.prefNewAnnotation=t.payload,localStorage.setItem("newAnnotationMethod",t.payload)},setAiMode:(e,t)=>{e.aiMode=t.payload},setErrorOccured:(e,t)=>{e.errorOccured=t.payload},checkRights:(e,t)=>{t.payload.lightVersion&&(e.lightVersion=!0),t.payload.assetRight?e.assetRight=!0:e.assetRight=!1},setUserRole:(e,t)=>{e.role=t.payload}}}),{setUserLogoutState:go,setProfile:mo,setPreferredLanguage:yo,setErrorOccured:vo,setPreferredNewAnnotation:_o,setAiMode:bo,checkRights:xo,setUserRole:So}=fo.actions,wo=()=>(localStorage.getItem("_user")||localStorage.setItem("_user","{}"),JSON.parse(String(localStorage.getItem("_user")))),Eo=()=>{const e=wo();if(e.email){return"@skyvisor.fr"===e.email.substring(e.email.indexOf("@"))}return!1},Po=e=>e.auth.prefLanguage,Co=e=>!!(e=>{var t,n;return!(null===(t=e.inspectionTool)||void 0===t||null===(n=t.inspectionDoc)||void 0===n||!n.aiReady)})(e)&&e.auth.aiMode,Ao=()=>{const e=localStorage.getItem("_user");if(!e)return!1;const t=JSON.parse(String(e));return t&&t.uid},ko=fo.reducer,jo=e=>{let{...t}=e;const n=Ao(),r=on();var i,o;n||r.push("/login",{from:null!==(i=null===(o=r.location)||void 0===o?void 0:o.pathname)&&void 0!==i?i:"/"});return n?(0,Ae.jsx)(Zt,{...t}):(0,Ae.jsx)(Ae.Fragment,{})};var Io=__webpack_require__(55552);function Go(){return(0,Ie.c)(Io.c)}const To=Object.fromEntries?Object.fromEntries:e=>{if(!e||!e[Symbol.iterator])throw new Error("Object.fromEntries() requires a single iterable argument");const t={};return Object.keys(e).forEach((n=>{const[r,i]=e[n];t[r]=i})),t};function Mo(e){return Object.keys(e)}function Oo(e,t){if(!e)throw new Error(t)}function Ro(e,t){return t}const Do=e=>{const t=e.length;let n=0,r="";for(;n<t;n++){const t=e[n];if(null==t)continue;let i;switch(typeof t){case"boolean":break;case"object":if(Array.isArray(t))i=Do(t);else{Oo(!Ro(0,!1)),i="";for(const e in t)t[e]&&e&&(i&&(i+=" "),i+=e)}break;default:i=t}i&&(r&&(r+=" "),r+=i)}return r};var No=__webpack_require__(7700),Lo=__webpack_require__(64440);const{createCssAndCx:Vo}={createCssAndCx:function(e){const{cache:t}=e,n=function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];const i=(0,No.k)(n,t.registered);(0,Lo.aE)(t,i,!1);const o="".concat(t.key,"-").concat(i.name);{const e=n[0];(function(e){return e instanceof Object&&!("styles"in e)&&!("length"in e)&&!("__emotion_styles"in e)})(e)&&zo.saveClassNameCSSObjectMapping(t,o,e)}return o};return{css:n,cx:function(){for(var e=arguments.length,r=new Array(e),i=0;i<e;i++)r[i]=arguments[i];const o=Do(r),s=zo.fixClassName(t,o,n);return function(e,t,n){const r=[],i=(0,Lo.yI)(e,r,n);return r.length<2?n:i+t(r)}(t.registered,n,s)}}}};function Fo(e){const{useCache:t}=e;return{useCssAndCx:function(){const e=t(),{css:r,cx:i}=function(e,t){const r=(0,n.useRef)();return(!r.current||t.length!==r.current.prevDeps.length||r.current.prevDeps.map(((e,n)=>e===t[n])).indexOf(!1)>=0)&&(r.current={v:e(),prevDeps:[...t]}),r.current.v}((()=>Vo({cache:e})),[e]);return{css:r,cx:i}}}}const zo=(()=>{const e=new WeakMap;return{saveClassNameCSSObjectMapping:(t,n,r)=>{let i=e.get(t);void 0===i&&(i=new Map,e.set(t,i)),i.set(n,r)},fixClassName:(t,n,r)=>{const i=e.get(t);return Do(function(e){let t=!1;return e.map((e=>{let n,[r,i]=e;if(void 0===i)return r;if(t)n={"&&":i};else{n=r;for(const e in i)if(e.startsWith("@media")){t=!0;break}}return n}))}(n.split(" ").map((e=>[e,null===i||void 0===i?void 0:i.get(e)]))).map((e=>"string"===typeof e?e:r(e))))}}})();function Bo(e){if(!(e instanceof Object)||"function"===typeof e)return e;const t=[];for(const n in e){const r=e[n],i=typeof r;if("string"!==i&&("number"!==i||isNaN(r))&&"boolean"!==i&&void 0!==r&&null!==r)return e;t.push("".concat(n,":").concat(i,"_").concat(r))}return"xSqLiJdLMd9s"+t.join("|")}function Uo(e,t,n){if(!(t instanceof Object))return e;const r={};return Mo(e).forEach((i=>r[i]=n(e[i],t[i]))),Mo(t).forEach((n=>{if(n in e)return;const i=t[n];"string"===typeof i&&(r[n]=i)})),r}let Wo=0;function Ho(e){const{useTheme:t,cache:r}=e;function i(){var e;const t=(0,je._)(),i=function(){const e=(0,n.useContext)(qo);return e}(),o=null!==(e=null!==r&&void 0!==r?r:i)&&void 0!==e?e:t;if(null===o)throw new Error(["In order to get SSR working with tss-react you need to explicitly provide an Emotion cache.","MUI users be aware: This is not an error strictly related to tss-react, with or without tss-react,","MUI needs an Emotion cache to be provided for SSR to work.","Here is the MUI documentation related to SSR setup: https://mui.com/material-ui/guides/server-rendering/","TSS provides helper that makes the process of setting up SSR easier: https://docs.tss-react.dev/ssr"].join("\n"));return o}const{useCssAndCx:o}=Fo({useCache:i});return{makeStyles:function(e){const{name:r,uniqId:s=Wo++}=null!==e&&void 0!==e?e:{},a="object"!==typeof r?r:Object.keys(r)[0];return function(e){const r="function"===typeof e?e:()=>e;return function(e,l){var c,u;const d=t(),{css:h,cx:p}=o(),f=i();let g=(0,n.useMemo)((()=>{const t={},n="undefined"!==typeof Proxy&&new Proxy({},{get:(e,n)=>("symbol"===typeof n&&Oo(!1),t[n]="".concat(f.key,"-").concat(s).concat(void 0!==a?"-".concat(a):"","-").concat(n,"-ref"))}),i=r(d,e,n||{}),o=To(Mo(i).map((e=>{const n=i[e];return n.label||(n.label="".concat(void 0!==a?"".concat(a,"-"):"").concat(e)),[e,"".concat(h(n)).concat(Ro(0,e in t)?" ".concat(t[e]):"")]})));return Mo(t).forEach((e=>{e in o||(o[e]=t[e])})),o}),[f,h,p,d,Bo(e)]);const m=null===l||void 0===l?void 0:l.props.classes;g=(0,n.useMemo)((()=>Uo(g,m,p)),[g,Bo(m),p]);{let e;try{e=void 0!==a?null===(u=null===(c=d.components)||void 0===c?void 0:c[a])||void 0===u?void 0:u.styleOverrides:void 0}catch(Ide){}const t=(0,n.useMemo)((()=>{if(!e)return;const t={};for(const n in e){const r=e[n];r instanceof Object&&(t[n]=h("function"===typeof r?r(Object.assign({theme:d,ownerState:null===l||void 0===l?void 0:l.ownerState},null===l||void 0===l?void 0:l.props)):r))}return t}),[void 0===e?void 0:JSON.stringify(e),Bo(null===l||void 0===l?void 0:l.props),Bo(null===l||void 0===l?void 0:l.ownerState),h]);g=(0,n.useMemo)((()=>Uo(g,t,p)),[g,t,p])}return{classes:g,theme:d,css:h,cx:p}}}},useStyles:function(){const e=t(),{css:n,cx:r}=o();return{theme:e,css:n,cx:r}}}}const qo=(0,n.createContext)(void 0);function Xo(e){return e.charAt(0).toUpperCase()+e.slice(1)}var Yo=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]])}return n};function Ko(e){const t={},n={};return Object.keys(e).forEach((r=>(r.startsWith("@media")?n:t)[r]=e[r])),Object.keys(n).forEach((e=>{const r=n[e];Object.keys(r).forEach((n=>{var i;return t[n]=Object.assign(Object.assign({},null!==(i=t[n])&&void 0!==i?i:{}),{[e]:r[n]})}))})),t}const{makeStyles:Zo,withStyles:$o,useStyles:Jo}=function(e){return Object.assign(Object.assign({},Ho(e)),function(e){const{useTheme:t,cache:r}=e,{makeStyles:i}=Ho({useTheme:t,cache:r});return{withStyles:function(e,t,r){const o="string"===typeof e?(()=>{const t=e,r=function(e){var{children:r}=e,i=Yo(e,["children"]);return(0,n.createElement)(t,i,r)};return Object.defineProperty(r,"name",{value:Xo(t)}),r})():e,s=(()=>{{const{name:e}=null!==r&&void 0!==r?r:{};if(void 0!==e)return"object"!==typeof e?e:Object.keys(e)[0]}{const e=o.displayName;if("string"===typeof e&&""!==e)return e}{const{name:e}=o;if(e)return e}})(),a=i(Object.assign(Object.assign({},r),{name:s}))("function"===typeof t?(e,n,r)=>Ko(t(e,n,r)):Ko(t));function l(e){for(const t in e)if("root"!==t)return!0;return!1}const c=(0,n.forwardRef)((function(t,r){const{className:i,classes:s}=t,c=Yo(t,["className","classes"]),{classes:u,cx:d}=a(t,{props:t});return n.createElement(o,Object.assign({ref:r,className:l(u)?i:d(u.root,i)},"string"===typeof e?{}:{classes:u},c))}));return void 0!==s&&(c.displayName="".concat(Xo(s),"WithStyles"),Object.defineProperty(c,"name",{value:c.displayName})),c}}}(e))}({useTheme:Go});var Qo=__webpack_require__(78816),es=__webpack_require__.n(Qo),ts=__webpack_require__(39816),ns=__webpack_require__(82568),rs=__webpack_require__(59232),is=__webpack_require__(65064);const os=["sx"],ss=e=>{var t,n;const r={systemProps:{},otherProps:{}},i=null!=(t=null==e||null==(n=e.theme)?void 0:n.unstable_sxConfig)?t:is.c;return Object.keys(e).forEach((t=>{i[t]?r.systemProps[t]=e[t]:r.otherProps[t]=e[t]})),r};function as(e){const{sx:t}=e,n=(0,Tt.c)(e,os),{systemProps:r,otherProps:i}=ss(n);let o;return o=Array.isArray(t)?[r,...t]:"function"===typeof t?function(){const e=t(...arguments);return(0,rs.o)(e)?(0,d.c)({},r,e):r}:(0,d.c)({},r,t),(0,d.c)({},i,{sx:o})}var ls=__webpack_require__(43980),cs=__webpack_require__(25496);const us=n.createContext();var ds=__webpack_require__(82952),hs=__webpack_require__(10948);function ps(e){return(0,hs.c)("MuiGrid",e)}const fs=["auto",!0,1,2,3,4,5,6,7,8,9,10,11,12],gs=(0,ds.c)("MuiGrid",["root","container","item","zeroMinWidth",...[0,1,2,3,4,5,6,7,8,9,10].map((e=>"spacing-xs-".concat(e))),...["column-reverse","column","row-reverse","row"].map((e=>"direction-xs-".concat(e))),...["nowrap","wrap-reverse","wrap"].map((e=>"wrap-xs-".concat(e))),...fs.map((e=>"grid-xs-".concat(e))),...fs.map((e=>"grid-sm-".concat(e))),...fs.map((e=>"grid-md-".concat(e))),...fs.map((e=>"grid-lg-".concat(e))),...fs.map((e=>"grid-xl-".concat(e)))]),ms=gs,ys=["className","columns","columnSpacing","component","container","direction","item","rowSpacing","spacing","wrap","zeroMinWidth"];function vs(e){const t=parseFloat(e);return"".concat(t).concat(String(e).replace(String(t),"")||"px")}function _s(e){let{breakpoints:t,values:n}=e,r="";Object.keys(n).forEach((e=>{""===r&&0!==n[e]&&(r=e)}));const i=Object.keys(t).sort(((e,n)=>t[e]-t[n]));return i.slice(0,i.indexOf(r))}const bs=(0,cs.cp)("div",{name:"MuiGrid",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e,{container:r,direction:i,item:o,spacing:s,wrap:a,zeroMinWidth:l,breakpoints:c}=n;let u=[];r&&(u=function(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(!e||e<=0)return[];if("string"===typeof e&&!Number.isNaN(Number(e))||"number"===typeof e)return[n["spacing-xs-".concat(String(e))]];const r=[];return t.forEach((t=>{const i=e[t];Number(i)>0&&r.push(n["spacing-".concat(t,"-").concat(String(i))])})),r}(s,c,t));const d=[];return c.forEach((e=>{const r=n[e];r&&d.push(t["grid-".concat(e,"-").concat(String(r))])})),[t.root,r&&t.container,o&&t.item,l&&t.zeroMinWidth,...u,"row"!==i&&t["direction-xs-".concat(String(i))],"wrap"!==a&&t["wrap-xs-".concat(String(a))],...d]}})((e=>{let{ownerState:t}=e;return(0,d.c)({boxSizing:"border-box"},t.container&&{display:"flex",flexWrap:"wrap",width:"100%"},t.item&&{margin:0},t.zeroMinWidth&&{minWidth:0},"wrap"!==t.wrap&&{flexWrap:t.wrap})}),(function(e){let{theme:t,ownerState:n}=e;const r=(0,ns.Ws)({values:n.direction,breakpoints:t.breakpoints.values});return(0,ns.ls)({theme:t},r,(e=>{const t={flexDirection:e};return 0===e.indexOf("column")&&(t["& > .".concat(ms.item)]={maxWidth:"none"}),t}))}),(function(e){let{theme:t,ownerState:n}=e;const{container:r,rowSpacing:i}=n;let o={};if(r&&0!==i){const e=(0,ns.Ws)({values:i,breakpoints:t.breakpoints.values});let n;"object"===typeof e&&(n=_s({breakpoints:t.breakpoints.values,values:e})),o=(0,ns.ls)({theme:t},e,((e,r)=>{var i;const o=t.spacing(e);return"0px"!==o?{marginTop:"-".concat(vs(o)),["& > .".concat(ms.item)]:{paddingTop:vs(o)}}:null!=(i=n)&&i.includes(r)?{}:{marginTop:0,["& > .".concat(ms.item)]:{paddingTop:0}}}))}return o}),(function(e){let{theme:t,ownerState:n}=e;const{container:r,columnSpacing:i}=n;let o={};if(r&&0!==i){const e=(0,ns.Ws)({values:i,breakpoints:t.breakpoints.values});let n;"object"===typeof e&&(n=_s({breakpoints:t.breakpoints.values,values:e})),o=(0,ns.ls)({theme:t},e,((e,r)=>{var i;const o=t.spacing(e);return"0px"!==o?{width:"calc(100% + ".concat(vs(o),")"),marginLeft:"-".concat(vs(o)),["& > .".concat(ms.item)]:{paddingLeft:vs(o)}}:null!=(i=n)&&i.includes(r)?{}:{width:"100%",marginLeft:0,["& > .".concat(ms.item)]:{paddingLeft:0}}}))}return o}),(function(e){let t,{theme:n,ownerState:r}=e;return n.breakpoints.keys.reduce(((e,i)=>{let o={};if(r[i]&&(t=r[i]),!t)return e;if(!0===t)o={flexBasis:0,flexGrow:1,maxWidth:"100%"};else if("auto"===t)o={flexBasis:"auto",flexGrow:0,flexShrink:0,maxWidth:"none",width:"auto"};else{const s=(0,ns.Ws)({values:r.columns,breakpoints:n.breakpoints.values}),a="object"===typeof s?s[i]:s;if(void 0===a||null===a)return e;const l="".concat(Math.round(t/a*1e8)/1e6,"%");let c={};if(r.container&&r.item&&0!==r.columnSpacing){const e=n.spacing(r.columnSpacing);if("0px"!==e){const t="calc(".concat(l," + ").concat(vs(e),")");c={flexBasis:t,maxWidth:t}}}o=(0,d.c)({flexBasis:l,flexGrow:0,maxWidth:l},c)}return 0===n.breakpoints.values[i]?Object.assign(e,o):e[n.breakpoints.up(i)]=o,e}),{})}));const xs=e=>{const{classes:t,container:n,direction:r,item:i,spacing:o,wrap:s,zeroMinWidth:a,breakpoints:l}=e;let c=[];n&&(c=function(e,t){if(!e||e<=0)return[];if("string"===typeof e&&!Number.isNaN(Number(e))||"number"===typeof e)return["spacing-xs-".concat(String(e))];const n=[];return t.forEach((t=>{const r=e[t];if(Number(r)>0){const e="spacing-".concat(t,"-").concat(String(r));n.push(e)}})),n}(o,l));const u=[];l.forEach((t=>{const n=e[t];n&&u.push("grid-".concat(t,"-").concat(String(n)))}));const d={root:["root",n&&"container",i&&"item",a&&"zeroMinWidth",...c,"row"!==r&&"direction-xs-".concat(String(r)),"wrap"!==s&&"wrap-xs-".concat(String(s)),...u]};return(0,ls.c)(d,ps,t)},Ss=n.forwardRef((function(e,t){const r=(0,Oe.c)({props:e,name:"MuiGrid"}),{breakpoints:i}=Go(),o=as(r),{className:s,columns:a,columnSpacing:l,component:c="div",container:u=!1,direction:h="row",item:p=!1,rowSpacing:f,spacing:g=0,wrap:m="wrap",zeroMinWidth:y=!1}=o,v=(0,Tt.c)(o,ys),_=f||g,b=l||g,x=n.useContext(us),S=u?a||12:x,w={},E=(0,d.c)({},v);i.keys.forEach((e=>{null!=v[e]&&(w[e]=v[e],delete E[e])}));const P=(0,d.c)({},o,{columns:S,container:u,direction:h,item:p,rowSpacing:_,columnSpacing:b,wrap:m,zeroMinWidth:y,spacing:g},w,{breakpoints:i.keys}),C=xs(P);return(0,Ae.jsx)(us.Provider,{value:S,children:(0,Ae.jsx)(bs,(0,d.c)({ownerState:P,className:(0,ts.c)(C.root,s),as:c,ref:t},E))})}));const ws=Ss;var Es=__webpack_require__(34036),Ps=__webpack_require__(35576),Cs=__webpack_require__(38628),As=__webpack_require__(92532),ks=__webpack_require__(86516);function js(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}function Is(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}const Gs=n.createContext(null);function Ts(e,t){var r=Object.create(null);return e&&n.Children.map(e,(function(e){return e})).forEach((function(e){r[e.key]=function(e){return t&&(0,n.isValidElement)(e)?t(e):e}(e)})),r}function Ms(e,t,n){return null!=n[t]?n[t]:e.props[t]}function Os(e,t,r){var i=Ts(e.children),o=function(e,t){function n(n){return n in t?t[n]:e[n]}e=e||{},t=t||{};var r,i=Object.create(null),o=[];for(var s in e)s in t?o.length&&(i[s]=o,o=[]):o.push(s);var a={};for(var l in t){if(i[l])for(r=0;r<i[l].length;r++){var c=i[l][r];a[i[l][r]]=n(c)}a[l]=n(l)}for(r=0;r<o.length;r++)a[o[r]]=n(o[r]);return a}(t,i);return Object.keys(o).forEach((function(s){var a=o[s];if((0,n.isValidElement)(a)){var l=s in t,c=s in i,u=t[s],d=(0,n.isValidElement)(u)&&!u.props.in;!c||l&&!d?c||!l||d?c&&l&&(0,n.isValidElement)(u)&&(o[s]=(0,n.cloneElement)(a,{onExited:r.bind(null,a),in:u.props.in,exit:Ms(a,"exit",e),enter:Ms(a,"enter",e)})):o[s]=(0,n.cloneElement)(a,{in:!1}):o[s]=(0,n.cloneElement)(a,{onExited:r.bind(null,a),in:!0,exit:Ms(a,"exit",e),enter:Ms(a,"enter",e)})}})),o}var Rs=Object.values||function(e){return Object.keys(e).map((function(t){return e[t]}))},Ds=function(e){function t(t,n){var r,i=(r=e.call(this,t,n)||this).handleExited.bind(Is(r));return r.state={contextValue:{isMounting:!0},handleExited:i,firstRender:!0},r}Qe(t,e);var r=t.prototype;return r.componentDidMount=function(){this.mounted=!0,this.setState({contextValue:{isMounting:!1}})},r.componentWillUnmount=function(){this.mounted=!1},t.getDerivedStateFromProps=function(e,t){var r,i,o=t.children,s=t.handleExited;return{children:t.firstRender?(r=e,i=s,Ts(r.children,(function(e){return(0,n.cloneElement)(e,{onExited:i.bind(null,e),in:!0,appear:Ms(e,"appear",r),enter:Ms(e,"enter",r),exit:Ms(e,"exit",r)})}))):Os(e,o,s),firstRender:!1}},r.handleExited=function(e,t){var n=Ts(this.props.children);e.key in n||(e.props.onExited&&e.props.onExited(t),this.mounted&&this.setState((function(t){var n=(0,d.c)({},t.children);return delete n[e.key],{children:n}})))},r.render=function(){var e=this.props,t=e.component,r=e.childFactory,i=(0,Tt.c)(e,["component","childFactory"]),o=this.state.contextValue,s=Rs(this.state.children).map(r);return delete i.appear,delete i.enter,delete i.exit,null===t?n.createElement(Gs.Provider,{value:o},s):n.createElement(Gs.Provider,{value:o},n.createElement(t,i,s))},t}(n.Component);Ds.propTypes={},Ds.defaultProps={component:"div",childFactory:function(e){return e}};const Ns=Ds;__webpack_require__(23392);var Ls=__webpack_require__(27820),Vs=function(e,t){var r=arguments;if(null==t||!je.h.call(t,"css"))return n.createElement.apply(void 0,r);var i=r.length,o=new Array(i);o[0]=je.E,o[1]=(0,je.c)(e,t);for(var s=2;s<i;s++)o[s]=r[s];return n.createElement.apply(null,o)},Fs=(0,je.w)((function(e,t){var r=e.styles,i=(0,No.k)([r],void 0,(0,n.useContext)(je.T)),o=(0,n.useRef)();return(0,Ls.k)((function(){var e=t.key+"-global",n=new t.sheet.constructor({key:e,nonce:t.sheet.nonce,container:t.sheet.container,speedy:t.sheet.isSpeedy}),r=!1,s=document.querySelector('style[data-emotion="'+e+" "+i.name+'"]');return t.sheet.tags.length&&(n.before=t.sheet.tags[0]),null!==s&&(r=!0,s.setAttribute("data-emotion",e),n.hydrate([s])),o.current=[n,r],function(){n.flush()}}),[t]),(0,Ls.k)((function(){var e=o.current,n=e[0];if(e[1])e[1]=!1;else{if(void 0!==i.next&&(0,Lo.aE)(t,i.next,!0),n.tags.length){var r=n.tags[n.tags.length-1].nextElementSibling;n.before=r,n.flush()}t.insert("",i,n,!1)}}),[t,i.name]),null}));function zs(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return(0,No.k)(t)}var Bs=function(){var e=zs.apply(void 0,arguments),t="animation-"+e.name;return{name:t,styles:"@keyframes "+t+"{"+e.styles+"}",anim:1,toString:function(){return"_EMO_"+this.name+"_"+this.styles+"_EMO_"}}};const Us=function(e){const{className:t,classes:r,pulsate:i=!1,rippleX:o,rippleY:s,rippleSize:a,in:l,onExited:c,timeout:u}=e,[d,h]=n.useState(!1),p=(0,ts.c)(t,r.ripple,r.rippleVisible,i&&r.ripplePulsate),f={width:a,height:a,top:-a/2+s,left:-a/2+o},g=(0,ts.c)(r.child,d&&r.childLeaving,i&&r.childPulsate);return l||d||h(!0),n.useEffect((()=>{if(!l&&null!=c){const e=setTimeout(c,u);return()=>{clearTimeout(e)}}}),[c,l,u]),(0,Ae.jsx)("span",{className:p,style:f,children:(0,Ae.jsx)("span",{className:g})})};const Ws=(0,ds.c)("MuiTouchRipple",["root","ripple","rippleVisible","ripplePulsate","child","childLeaving","childPulsate"]);var Hs,qs,Xs,Ys;const Ks=["center","classes","className"];let Zs,$s,Js,Qs;const ea=Bs(Zs||(Zs=Hs||(Hs=js(["\n  0% {\n    transform: scale(0);\n    opacity: 0.1;\n  }\n\n  100% {\n    transform: scale(1);\n    opacity: 0.3;\n  }\n"])))),ta=Bs($s||($s=qs||(qs=js(["\n  0% {\n    opacity: 1;\n  }\n\n  100% {\n    opacity: 0;\n  }\n"])))),na=Bs(Js||(Js=Xs||(Xs=js(["\n  0% {\n    transform: scale(1);\n  }\n\n  50% {\n    transform: scale(0.92);\n  }\n\n  100% {\n    transform: scale(1);\n  }\n"])))),ra=(0,cs.cp)("span",{name:"MuiTouchRipple",slot:"Root"})({overflow:"hidden",pointerEvents:"none",position:"absolute",zIndex:0,top:0,right:0,bottom:0,left:0,borderRadius:"inherit"}),ia=(0,cs.cp)(Us,{name:"MuiTouchRipple",slot:"Ripple"})(Qs||(Qs=Ys||(Ys=js(["\n  opacity: 0;\n  position: absolute;\n\n  &."," {\n    opacity: 0.3;\n    transform: scale(1);\n    animation-name: ",";\n    animation-duration: ","ms;\n    animation-timing-function: ",";\n  }\n\n  &."," {\n    animation-duration: ","ms;\n  }\n\n  & ."," {\n    opacity: 1;\n    display: block;\n    width: 100%;\n    height: 100%;\n    border-radius: 50%;\n    background-color: currentColor;\n  }\n\n  & ."," {\n    opacity: 0;\n    animation-name: ",";\n    animation-duration: ","ms;\n    animation-timing-function: ",";\n  }\n\n  & ."," {\n    position: absolute;\n    /* @noflip */\n    left: 0px;\n    top: 0;\n    animation-name: ",";\n    animation-duration: 2500ms;\n    animation-timing-function: ",";\n    animation-iteration-count: infinite;\n    animation-delay: 200ms;\n  }\n"]))),Ws.rippleVisible,ea,550,(e=>{let{theme:t}=e;return t.transitions.easing.easeInOut}),Ws.ripplePulsate,(e=>{let{theme:t}=e;return t.transitions.duration.shorter}),Ws.child,Ws.childLeaving,ta,550,(e=>{let{theme:t}=e;return t.transitions.easing.easeInOut}),Ws.childPulsate,na,(e=>{let{theme:t}=e;return t.transitions.easing.easeInOut})),oa=n.forwardRef((function(e,t){const r=(0,Oe.c)({props:e,name:"MuiTouchRipple"}),{center:i=!1,classes:o={},className:s}=r,a=(0,Tt.c)(r,Ks),[l,c]=n.useState([]),u=n.useRef(0),h=n.useRef(null);n.useEffect((()=>{h.current&&(h.current(),h.current=null)}),[l]);const p=n.useRef(!1),f=n.useRef(null),g=n.useRef(null),m=n.useRef(null);n.useEffect((()=>()=>{clearTimeout(f.current)}),[]);const y=n.useCallback((e=>{const{pulsate:t,rippleX:n,rippleY:r,rippleSize:i,cb:s}=e;c((e=>[...e,(0,Ae.jsx)(ia,{classes:{ripple:(0,ts.c)(o.ripple,Ws.ripple),rippleVisible:(0,ts.c)(o.rippleVisible,Ws.rippleVisible),ripplePulsate:(0,ts.c)(o.ripplePulsate,Ws.ripplePulsate),child:(0,ts.c)(o.child,Ws.child),childLeaving:(0,ts.c)(o.childLeaving,Ws.childLeaving),childPulsate:(0,ts.c)(o.childPulsate,Ws.childPulsate)},timeout:550,pulsate:t,rippleX:n,rippleY:r,rippleSize:i},u.current)])),u.current+=1,h.current=s}),[o]),v=n.useCallback((function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:()=>{};const{pulsate:r=!1,center:o=i||t.pulsate,fakeElement:s=!1}=t;if("mousedown"===(null==e?void 0:e.type)&&p.current)return void(p.current=!1);"touchstart"===(null==e?void 0:e.type)&&(p.current=!0);const a=s?null:m.current,l=a?a.getBoundingClientRect():{width:0,height:0,left:0,top:0};let c,u,d;if(o||void 0===e||0===e.clientX&&0===e.clientY||!e.clientX&&!e.touches)c=Math.round(l.width/2),u=Math.round(l.height/2);else{const{clientX:t,clientY:n}=e.touches&&e.touches.length>0?e.touches[0]:e;c=Math.round(t-l.left),u=Math.round(n-l.top)}if(o)d=Math.sqrt((2*l.width**2+l.height**2)/3),d%2===0&&(d+=1);else{const e=2*Math.max(Math.abs((a?a.clientWidth:0)-c),c)+2,t=2*Math.max(Math.abs((a?a.clientHeight:0)-u),u)+2;d=Math.sqrt(e**2+t**2)}null!=e&&e.touches?null===g.current&&(g.current=()=>{y({pulsate:r,rippleX:c,rippleY:u,rippleSize:d,cb:n})},f.current=setTimeout((()=>{g.current&&(g.current(),g.current=null)}),80)):y({pulsate:r,rippleX:c,rippleY:u,rippleSize:d,cb:n})}),[i,y]),_=n.useCallback((()=>{v({},{pulsate:!0})}),[v]),b=n.useCallback(((e,t)=>{if(clearTimeout(f.current),"touchend"===(null==e?void 0:e.type)&&g.current)return g.current(),g.current=null,void(f.current=setTimeout((()=>{b(e,t)})));g.current=null,c((e=>e.length>0?e.slice(1):e)),h.current=t}),[]);return n.useImperativeHandle(t,(()=>({pulsate:_,start:v,stop:b})),[_,v,b]),(0,Ae.jsx)(ra,(0,d.c)({className:(0,ts.c)(Ws.root,o.root,s),ref:m},a,{children:(0,Ae.jsx)(Ns,{component:null,exit:!0,children:l})}))})),sa=oa;function aa(e){return(0,hs.c)("MuiButtonBase",e)}const la=(0,ds.c)("MuiButtonBase",["root","disabled","focusVisible"]),ca=["action","centerRipple","children","className","component","disabled","disableRipple","disableTouchRipple","focusRipple","focusVisibleClassName","LinkComponent","onBlur","onClick","onContextMenu","onDragLeave","onFocus","onFocusVisible","onKeyDown","onKeyUp","onMouseDown","onMouseLeave","onMouseUp","onTouchEnd","onTouchMove","onTouchStart","tabIndex","TouchRippleProps","touchRippleRef","type"],ua=(0,cs.cp)("button",{name:"MuiButtonBase",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"inline-flex",alignItems:"center",justifyContent:"center",position:"relative",boxSizing:"border-box",WebkitTapHighlightColor:"transparent",backgroundColor:"transparent",outline:0,border:0,margin:0,borderRadius:0,padding:0,cursor:"pointer",userSelect:"none",verticalAlign:"middle",MozAppearance:"none",WebkitAppearance:"none",textDecoration:"none",color:"inherit","&::-moz-focus-inner":{borderStyle:"none"},["&.".concat(la.disabled)]:{pointerEvents:"none",cursor:"default"},"@media print":{colorAdjust:"exact"}}),da=n.forwardRef((function(e,t){const r=(0,Oe.c)({props:e,name:"MuiButtonBase"}),{action:i,centerRipple:o=!1,children:s,className:a,component:l="button",disabled:c=!1,disableRipple:u=!1,disableTouchRipple:h=!1,focusRipple:p=!1,LinkComponent:f="a",onBlur:g,onClick:m,onContextMenu:y,onDragLeave:v,onFocus:_,onFocusVisible:b,onKeyDown:x,onKeyUp:S,onMouseDown:w,onMouseLeave:E,onMouseUp:P,onTouchEnd:C,onTouchMove:A,onTouchStart:k,tabIndex:j=0,TouchRippleProps:I,touchRippleRef:G,type:T}=r,M=(0,Tt.c)(r,ca),O=n.useRef(null),R=n.useRef(null),D=(0,Cs.c)(R,G),{isFocusVisibleRef:N,onFocus:L,onBlur:V,ref:F}=(0,ks.c)(),[z,B]=n.useState(!1);c&&z&&B(!1),n.useImperativeHandle(i,(()=>({focusVisible:()=>{B(!0),O.current.focus()}})),[]);const[U,W]=n.useState(!1);n.useEffect((()=>{W(!0)}),[]);const H=U&&!u&&!c;function q(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:h;return(0,As.c)((r=>{t&&t(r);return!n&&R.current&&R.current[e](r),!0}))}n.useEffect((()=>{z&&p&&!u&&U&&R.current.pulsate()}),[u,p,z,U]);const X=q("start",w),Y=q("stop",y),K=q("stop",v),Z=q("stop",P),$=q("stop",(e=>{z&&e.preventDefault(),E&&E(e)})),J=q("start",k),Q=q("stop",C),ee=q("stop",A),te=q("stop",(e=>{V(e),!1===N.current&&B(!1),g&&g(e)}),!1),ne=(0,As.c)((e=>{O.current||(O.current=e.currentTarget),L(e),!0===N.current&&(B(!0),b&&b(e)),_&&_(e)})),re=()=>{const e=O.current;return l&&"button"!==l&&!("A"===e.tagName&&e.href)},ie=n.useRef(!1),oe=(0,As.c)((e=>{p&&!ie.current&&z&&R.current&&" "===e.key&&(ie.current=!0,R.current.stop(e,(()=>{R.current.start(e)}))),e.target===e.currentTarget&&re()&&" "===e.key&&e.preventDefault(),x&&x(e),e.target===e.currentTarget&&re()&&"Enter"===e.key&&!c&&(e.preventDefault(),m&&m(e))})),se=(0,As.c)((e=>{p&&" "===e.key&&R.current&&z&&!e.defaultPrevented&&(ie.current=!1,R.current.stop(e,(()=>{R.current.pulsate(e)}))),S&&S(e),m&&e.target===e.currentTarget&&re()&&" "===e.key&&!e.defaultPrevented&&m(e)}));let ae=l;"button"===ae&&(M.href||M.to)&&(ae=f);const le={};"button"===ae?(le.type=void 0===T?"button":T,le.disabled=c):(M.href||M.to||(le.role="button"),c&&(le["aria-disabled"]=c));const ce=(0,Cs.c)(t,F,O);const ue=(0,d.c)({},r,{centerRipple:o,component:l,disabled:c,disableRipple:u,disableTouchRipple:h,focusRipple:p,tabIndex:j,focusVisible:z}),de=(e=>{const{disabled:t,focusVisible:n,focusVisibleClassName:r,classes:i}=e,o={root:["root",t&&"disabled",n&&"focusVisible"]},s=(0,ls.c)(o,aa,i);return n&&r&&(s.root+=" ".concat(r)),s})(ue);return(0,Ae.jsxs)(ua,(0,d.c)({as:ae,className:(0,ts.c)(de.root,a),ownerState:ue,onBlur:te,onClick:m,onContextMenu:Y,onFocus:ne,onKeyDown:oe,onKeyUp:se,onMouseDown:X,onMouseLeave:$,onMouseUp:Z,onDragLeave:K,onTouchEnd:Q,onTouchMove:ee,onTouchStart:J,ref:ce,tabIndex:c?-1:j,type:T},le,M,{children:[s,H?(0,Ae.jsx)(sa,(0,d.c)({ref:D,center:o},I)):null]}))}));var ha=__webpack_require__(84892);function pa(e){return(0,hs.c)("MuiButton",e)}const fa=(0,ds.c)("MuiButton",["root","text","textInherit","textPrimary","textSecondary","textSuccess","textError","textInfo","textWarning","outlined","outlinedInherit","outlinedPrimary","outlinedSecondary","outlinedSuccess","outlinedError","outlinedInfo","outlinedWarning","contained","containedInherit","containedPrimary","containedSecondary","containedSuccess","containedError","containedInfo","containedWarning","disableElevation","focusVisible","disabled","colorInherit","textSizeSmall","textSizeMedium","textSizeLarge","outlinedSizeSmall","outlinedSizeMedium","outlinedSizeLarge","containedSizeSmall","containedSizeMedium","containedSizeLarge","sizeMedium","sizeSmall","sizeLarge","fullWidth","startIcon","endIcon","iconSizeSmall","iconSizeMedium","iconSizeLarge"]);const ga=n.createContext({}),ma=["children","color","component","className","disabled","disableElevation","disableFocusRipple","endIcon","focusVisibleClassName","fullWidth","size","startIcon","type","variant"],ya=e=>(0,d.c)({},"small"===e.size&&{"& > *:nth-of-type(1)":{fontSize:18}},"medium"===e.size&&{"& > *:nth-of-type(1)":{fontSize:20}},"large"===e.size&&{"& > *:nth-of-type(1)":{fontSize:22}}),va=(0,cs.cp)(da,{shouldForwardProp:e=>(0,cs.CU)(e)||"classes"===e,name:"MuiButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],t["".concat(n.variant).concat((0,ha.c)(n.color))],t["size".concat((0,ha.c)(n.size))],t["".concat(n.variant,"Size").concat((0,ha.c)(n.size))],"inherit"===n.color&&t.colorInherit,n.disableElevation&&t.disableElevation,n.fullWidth&&t.fullWidth]}})((e=>{let{theme:t,ownerState:n}=e;var r,i;return(0,d.c)({},t.typography.button,{minWidth:64,padding:"6px 16px",borderRadius:(t.vars||t).shape.borderRadius,transition:t.transitions.create(["background-color","box-shadow","border-color","color"],{duration:t.transitions.duration.short}),"&:hover":(0,d.c)({textDecoration:"none",backgroundColor:t.vars?"rgba(".concat(t.vars.palette.text.primaryChannel," / ").concat(t.vars.palette.action.hoverOpacity,")"):(0,Ps.W4)(t.palette.text.primary,t.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},"text"===n.variant&&"inherit"!==n.color&&{backgroundColor:t.vars?"rgba(".concat(t.vars.palette[n.color].mainChannel," / ").concat(t.vars.palette.action.hoverOpacity,")"):(0,Ps.W4)(t.palette[n.color].main,t.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},"outlined"===n.variant&&"inherit"!==n.color&&{border:"1px solid ".concat((t.vars||t).palette[n.color].main),backgroundColor:t.vars?"rgba(".concat(t.vars.palette[n.color].mainChannel," / ").concat(t.vars.palette.action.hoverOpacity,")"):(0,Ps.W4)(t.palette[n.color].main,t.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},"contained"===n.variant&&{backgroundColor:(t.vars||t).palette.grey.A100,boxShadow:(t.vars||t).shadows[4],"@media (hover: none)":{boxShadow:(t.vars||t).shadows[2],backgroundColor:(t.vars||t).palette.grey[300]}},"contained"===n.variant&&"inherit"!==n.color&&{backgroundColor:(t.vars||t).palette[n.color].dark,"@media (hover: none)":{backgroundColor:(t.vars||t).palette[n.color].main}}),"&:active":(0,d.c)({},"contained"===n.variant&&{boxShadow:(t.vars||t).shadows[8]}),["&.".concat(fa.focusVisible)]:(0,d.c)({},"contained"===n.variant&&{boxShadow:(t.vars||t).shadows[6]}),["&.".concat(fa.disabled)]:(0,d.c)({color:(t.vars||t).palette.action.disabled},"outlined"===n.variant&&{border:"1px solid ".concat((t.vars||t).palette.action.disabledBackground)},"outlined"===n.variant&&"secondary"===n.color&&{border:"1px solid ".concat((t.vars||t).palette.action.disabled)},"contained"===n.variant&&{color:(t.vars||t).palette.action.disabled,boxShadow:(t.vars||t).shadows[0],backgroundColor:(t.vars||t).palette.action.disabledBackground})},"text"===n.variant&&{padding:"6px 8px"},"text"===n.variant&&"inherit"!==n.color&&{color:(t.vars||t).palette[n.color].main},"outlined"===n.variant&&{padding:"5px 15px",border:"1px solid currentColor"},"outlined"===n.variant&&"inherit"!==n.color&&{color:(t.vars||t).palette[n.color].main,border:t.vars?"1px solid rgba(".concat(t.vars.palette[n.color].mainChannel," / 0.5)"):"1px solid ".concat((0,Ps.W4)(t.palette[n.color].main,.5))},"contained"===n.variant&&{color:t.vars?t.vars.palette.text.primary:null==(r=(i=t.palette).getContrastText)?void 0:r.call(i,t.palette.grey[300]),backgroundColor:(t.vars||t).palette.grey[300],boxShadow:(t.vars||t).shadows[2]},"contained"===n.variant&&"inherit"!==n.color&&{color:(t.vars||t).palette[n.color].contrastText,backgroundColor:(t.vars||t).palette[n.color].main},"inherit"===n.color&&{color:"inherit",borderColor:"currentColor"},"small"===n.size&&"text"===n.variant&&{padding:"4px 5px",fontSize:t.typography.pxToRem(13)},"large"===n.size&&"text"===n.variant&&{padding:"8px 11px",fontSize:t.typography.pxToRem(15)},"small"===n.size&&"outlined"===n.variant&&{padding:"3px 9px",fontSize:t.typography.pxToRem(13)},"large"===n.size&&"outlined"===n.variant&&{padding:"7px 21px",fontSize:t.typography.pxToRem(15)},"small"===n.size&&"contained"===n.variant&&{padding:"4px 10px",fontSize:t.typography.pxToRem(13)},"large"===n.size&&"contained"===n.variant&&{padding:"8px 22px",fontSize:t.typography.pxToRem(15)},n.fullWidth&&{width:"100%"})}),(e=>{let{ownerState:t}=e;return t.disableElevation&&{boxShadow:"none","&:hover":{boxShadow:"none"},["&.".concat(fa.focusVisible)]:{boxShadow:"none"},"&:active":{boxShadow:"none"},["&.".concat(fa.disabled)]:{boxShadow:"none"}}})),_a=(0,cs.cp)("span",{name:"MuiButton",slot:"StartIcon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.startIcon,t["iconSize".concat((0,ha.c)(n.size))]]}})((e=>{let{ownerState:t}=e;return(0,d.c)({display:"inherit",marginRight:8,marginLeft:-4},"small"===t.size&&{marginLeft:-2},ya(t))})),ba=(0,cs.cp)("span",{name:"MuiButton",slot:"EndIcon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.endIcon,t["iconSize".concat((0,ha.c)(n.size))]]}})((e=>{let{ownerState:t}=e;return(0,d.c)({display:"inherit",marginRight:-4,marginLeft:8},"small"===t.size&&{marginRight:-2},ya(t))})),xa=n.forwardRef((function(e,t){const r=n.useContext(ga),i=(0,Es.c)(r,e),o=(0,Oe.c)({props:i,name:"MuiButton"}),{children:s,color:a="primary",component:l="button",className:c,disabled:u=!1,disableElevation:h=!1,disableFocusRipple:p=!1,endIcon:f,focusVisibleClassName:g,fullWidth:m=!1,size:y="medium",startIcon:v,type:_,variant:b="text"}=o,x=(0,Tt.c)(o,ma),S=(0,d.c)({},o,{color:a,component:l,disabled:u,disableElevation:h,disableFocusRipple:p,fullWidth:m,size:y,type:_,variant:b}),w=(e=>{const{color:t,disableElevation:n,fullWidth:r,size:i,variant:o,classes:s}=e,a={root:["root",o,"".concat(o).concat((0,ha.c)(t)),"size".concat((0,ha.c)(i)),"".concat(o,"Size").concat((0,ha.c)(i)),"inherit"===t&&"colorInherit",n&&"disableElevation",r&&"fullWidth"],label:["label"],startIcon:["startIcon","iconSize".concat((0,ha.c)(i))],endIcon:["endIcon","iconSize".concat((0,ha.c)(i))]},l=(0,ls.c)(a,pa,s);return(0,d.c)({},s,l)})(S),E=v&&(0,Ae.jsx)(_a,{className:w.startIcon,ownerState:S,children:v}),P=f&&(0,Ae.jsx)(ba,{className:w.endIcon,ownerState:S,children:f});return(0,Ae.jsxs)(va,(0,d.c)({ownerState:S,className:(0,ts.c)(r.className,w.root,c),component:l,disabled:u,focusRipple:!p,focusVisibleClassName:(0,ts.c)(w.focusVisible,g),ref:t,type:_},x,{classes:w,children:[E,s,P]}))})),Sa=xa;var wa={color:void 0,size:void 0,className:void 0,style:void 0,attr:void 0},Ea=n.createContext&&n.createContext(wa),Pa=function(){return Pa=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},Pa.apply(this,arguments)},Ca=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]])}return n};function Aa(e){return e&&e.map((function(e,t){return n.createElement(e.tag,Pa({key:t},e.attr),Aa(e.child))}))}function ka(e){return function(t){return n.createElement(ja,Pa({attr:Pa({},e.attr)},t),Aa(e.child))}}function ja(e){var t=function(t){var r,i=e.attr,o=e.size,s=e.title,a=Ca(e,["attr","size","title"]),l=o||t.size||"1em";return t.className&&(r=t.className),e.className&&(r=(r?r+" ":"")+e.className),n.createElement("svg",Pa({stroke:"currentColor",fill:"currentColor",strokeWidth:"0"},t.attr,i,a,{className:r,style:Pa(Pa({color:e.color||t.color},t.style),e.style),height:l,width:l,xmlns:"http://www.w3.org/2000/svg"}),s&&n.createElement("title",null,s),e.children)};return void 0!==Ea?n.createElement(Ea.Consumer,null,(function(e){return t(e)})):t(wa)}function Ia(e){return ka({tag:"svg",attr:{viewBox:"0 0 1024 1024"},child:[{tag:"path",attr:{d:"M832 64H296c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h496v688c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8V96c0-17.7-14.3-32-32-32zM704 192H192c-17.7 0-32 14.3-32 32v530.7c0 8.5 3.4 16.6 9.4 22.6l173.3 173.3c2.2 2.2 4.7 4 7.4 5.5v1.9h4.2c3.5 1.3 7.2 2 11 2H704c17.7 0 32-14.3 32-32V224c0-17.7-14.3-32-32-32zM382 896h-.2L232 746.2v-.2h150v150z"}}]})(e)}function Ga(e){return ka({tag:"svg",attr:{viewBox:"0 0 1024 1024"},child:[{tag:"path",attr:{d:"M793.8 499.3L506.4 273.5c-10.7-8.4-26.4-.8-26.4 12.7v451.6c0 13.5 15.7 21.1 26.4 12.7l287.4-225.8a16.14 16.14 0 0 0 0-25.4zm-320 0L186.4 273.5c-10.7-8.4-26.4-.8-26.4 12.7v451.5c0 13.5 15.7 21.1 26.4 12.7l287.4-225.8c4.1-3.2 6.2-8 6.2-12.7 0-4.6-2.1-9.4-6.2-12.6zM857.6 248h-51.2c-3.5 0-6.4 2.7-6.4 6v516c0 3.3 2.9 6 6.4 6h51.2c3.5 0 6.4-2.7 6.4-6V254c0-3.3-2.9-6-6.4-6z"}}]})(e)}function Ta(e){return ka({tag:"svg",attr:{viewBox:"0 0 1024 1024"},child:[{tag:"path",attr:{d:"M512.5 390.6c-29.9 0-57.9 11.6-79.1 32.8-21.1 21.2-32.8 49.2-32.8 79.1 0 29.9 11.7 57.9 32.8 79.1 21.2 21.1 49.2 32.8 79.1 32.8 29.9 0 57.9-11.7 79.1-32.8 21.1-21.2 32.8-49.2 32.8-79.1 0-29.9-11.7-57.9-32.8-79.1a110.96 110.96 0 0 0-79.1-32.8zm412.3 235.5l-65.4-55.9c3.1-19 4.7-38.4 4.7-57.7s-1.6-38.8-4.7-57.7l65.4-55.9a32.03 32.03 0 0 0 9.3-35.2l-.9-2.6a442.5 442.5 0 0 0-79.6-137.7l-1.8-2.1a32.12 32.12 0 0 0-35.1-9.5l-81.2 28.9c-30-24.6-63.4-44-99.6-57.5l-15.7-84.9a32.05 32.05 0 0 0-25.8-25.7l-2.7-.5c-52-9.4-106.8-9.4-158.8 0l-2.7.5a32.05 32.05 0 0 0-25.8 25.7l-15.8 85.3a353.44 353.44 0 0 0-98.9 57.3l-81.8-29.1a32 32 0 0 0-35.1 9.5l-1.8 2.1a445.93 445.93 0 0 0-79.6 137.7l-.9 2.6c-4.5 12.5-.8 26.5 9.3 35.2l66.2 56.5c-3.1 18.8-4.6 38-4.6 57 0 19.2 1.5 38.4 4.6 57l-66 56.5a32.03 32.03 0 0 0-9.3 35.2l.9 2.6c18.1 50.3 44.8 96.8 79.6 137.7l1.8 2.1a32.12 32.12 0 0 0 35.1 9.5l81.8-29.1c29.8 24.5 63 43.9 98.9 57.3l15.8 85.3a32.05 32.05 0 0 0 25.8 25.7l2.7.5a448.27 448.27 0 0 0 158.8 0l2.7-.5a32.05 32.05 0 0 0 25.8-25.7l15.7-84.9c36.2-13.6 69.6-32.9 99.6-57.5l81.2 28.9a32 32 0 0 0 35.1-9.5l1.8-2.1c34.8-41.1 61.5-87.4 79.6-137.7l.9-2.6c4.3-12.4.6-26.3-9.5-35zm-412.3 52.2c-97.1 0-175.8-78.7-175.8-175.8s78.7-175.8 175.8-175.8 175.8 78.7 175.8 175.8-78.7 175.8-175.8 175.8z"}}]})(e)}function Ma(e){return ka({tag:"svg",attr:{viewBox:"0 0 1024 1024"},child:[{tag:"path",attr:{d:"M676.4 528.95L293.2 829.97c-14.25 11.2-35.2 1.1-35.2-16.95V210.97c0-18.05 20.95-28.14 35.2-16.94l383.2 301.02a21.53 21.53 0 0 1 0 33.9M694 864h64a8 8 0 0 0 8-8V168a8 8 0 0 0-8-8h-64a8 8 0 0 0-8 8v688a8 8 0 0 0 8 8"}}]})(e)}function Oa(e){return ka({tag:"svg",attr:{viewBox:"0 0 1024 1024"},child:[{tag:"path",attr:{d:"M518.3 459a8 8 0 0 0-12.6 0l-112 141.7a7.98 7.98 0 0 0 6.3 12.9h73.9V856c0 4.4 3.6 8 8 8h60c4.4 0 8-3.6 8-8V613.7H624c6.7 0 10.4-7.7 6.3-12.9L518.3 459z"}},{tag:"path",attr:{d:"M811.4 366.7C765.6 245.9 648.9 160 512.2 160S258.8 245.8 213 366.6C127.3 389.1 64 467.2 64 560c0 110.5 89.5 200 199.9 200H304c4.4 0 8-3.6 8-8v-60c0-4.4-3.6-8-8-8h-40.1c-33.7 0-65.4-13.4-89-37.7-23.5-24.2-36-56.8-34.9-90.6.9-26.4 9.9-51.2 26.2-72.1 16.7-21.3 40.1-36.8 66.1-43.7l37.9-9.9 13.9-36.6c8.6-22.8 20.6-44.1 35.7-63.4a245.6 245.6 0 0 1 52.4-49.9c41.1-28.9 89.5-44.2 140-44.2s98.9 15.3 140 44.2c19.9 14 37.5 30.8 52.4 49.9 15.1 19.3 27.1 40.7 35.7 63.4l13.8 36.5 37.8 10C846.1 454.5 884 503.8 884 560c0 33.1-12.9 64.3-36.3 87.7a123.07 123.07 0 0 1-87.6 36.3H720c-4.4 0-8 3.6-8 8v60c0 4.4 3.6 8 8 8h40.1C870.5 760 960 670.5 960 560c0-92.7-63.1-170.7-148.6-193.3z"}}]})(e)}function Ra(e){return ka({tag:"svg",attr:{viewBox:"0 0 1024 1024"},child:[{tag:"path",attr:{d:"M517.6 273.5L230.2 499.3a16.14 16.14 0 0 0 0 25.4l287.4 225.8c10.7 8.4 26.4.8 26.4-12.7V286.2c0-13.5-15.7-21.1-26.4-12.7zm320 0L550.2 499.3a16.14 16.14 0 0 0 0 25.4l287.4 225.8c10.7 8.4 26.4.8 26.4-12.7V286.2c0-13.5-15.7-21.1-26.4-12.7zm-620-25.5h-51.2c-3.5 0-6.4 2.7-6.4 6v516c0 3.3 2.9 6 6.4 6h51.2c3.5 0 6.4-2.7 6.4-6V254c0-3.3-2.9-6-6.4-6z"}}]})(e)}function Da(e){return ka({tag:"svg",attr:{viewBox:"0 0 1024 1024"},child:[{tag:"path",attr:{d:"M868 732h-70.3c-4.8 0-9.3 2.1-12.3 5.8-7 8.5-14.5 16.7-22.4 24.5a353.84 353.84 0 0 1-112.7 75.9A352.8 352.8 0 0 1 512.4 866c-47.9 0-94.3-9.4-137.9-27.8a353.84 353.84 0 0 1-112.7-75.9 353.28 353.28 0 0 1-76-112.5C167.3 606.2 158 559.9 158 512s9.4-94.2 27.8-137.8c17.8-42.1 43.4-80 76-112.5s70.5-58.1 112.7-75.9c43.6-18.4 90-27.8 137.9-27.8 47.9 0 94.3 9.3 137.9 27.8 42.2 17.8 80.1 43.4 112.7 75.9 7.9 7.9 15.3 16.1 22.4 24.5 3 3.7 7.6 5.8 12.3 5.8H868c6.3 0 10.2-7 6.7-12.3C798 160.5 663.8 81.6 511.3 82 271.7 82.6 79.6 277.1 82 516.4 84.4 751.9 276.2 942 512.4 942c152.1 0 285.7-78.8 362.3-197.7 3.4-5.3-.4-12.3-6.7-12.3zm88.9-226.3L815 393.7c-5.3-4.2-13-.4-13 6.3v76H488c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h314v76c0 6.7 7.8 10.5 13 6.3l141.9-112a8 8 0 0 0 0-12.6z"}}]})(e)}function Na(e){return ka({tag:"svg",attr:{viewBox:"0 0 1024 1024"},child:[{tag:"path",attr:{d:"M696 480H544V328c0-4.4-3.6-8-8-8h-48c-4.4 0-8 3.6-8 8v152H328c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8h152v152c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8V544h152c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8z"}},{tag:"path",attr:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z"}}]})(e)}function La(e){return ka({tag:"svg",attr:{viewBox:"0 0 1024 1024"},child:[{tag:"path",attr:{d:"M347.6 528.95l383.2 301.02c14.25 11.2 35.2 1.1 35.2-16.95V210.97c0-18.05-20.95-28.14-35.2-16.94L347.6 495.05a21.53 21.53 0 0 0 0 33.9M330 864h-64a8 8 0 0 1-8-8V168a8 8 0 0 1 8-8h64a8 8 0 0 1 8 8v688a8 8 0 0 1-8 8"}}]})(e)}const Va=function(e){return"string"===typeof e};function Fa(e,t,n){return void 0===e||Va(e)?t:(0,d.c)({},t,{ownerState:(0,d.c)({},t.ownerState,n)})}const za=!1;var Ba=function(e){return e.scrollTop},Ua="unmounted",Wa="exited",Ha="entering",qa="entered",Xa="exiting",Ya=function(e){function t(t,n){var r;r=e.call(this,t,n)||this;var i,o=n&&!n.isMounting?t.enter:t.appear;return r.appearStatus=null,t.in?o?(i=Wa,r.appearStatus=Ha):i=qa:i=t.unmountOnExit||t.mountOnEnter?Ua:Wa,r.state={status:i},r.nextCallback=null,r}Qe(t,e),t.getDerivedStateFromProps=function(e,t){return e.in&&t.status===Ua?{status:Wa}:null};var r=t.prototype;return r.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},r.componentDidUpdate=function(e){var t=null;if(e!==this.props){var n=this.state.status;this.props.in?n!==Ha&&n!==qa&&(t=Ha):n!==Ha&&n!==qa||(t=Xa)}this.updateStatus(!1,t)},r.componentWillUnmount=function(){this.cancelNextCallback()},r.getTimeouts=function(){var e,t,n,r=this.props.timeout;return e=t=n=r,null!=r&&"number"!==typeof r&&(e=r.exit,t=r.enter,n=void 0!==r.appear?r.appear:t),{exit:e,enter:t,appear:n}},r.updateStatus=function(e,t){if(void 0===e&&(e=!1),null!==t)if(this.cancelNextCallback(),t===Ha){if(this.props.unmountOnExit||this.props.mountOnEnter){var n=this.props.nodeRef?this.props.nodeRef.current:x.findDOMNode(this);n&&Ba(n)}this.performEnter(e)}else this.performExit();else this.props.unmountOnExit&&this.state.status===Wa&&this.setState({status:Ua})},r.performEnter=function(e){var t=this,n=this.props.enter,r=this.context?this.context.isMounting:e,i=this.props.nodeRef?[r]:[x.findDOMNode(this),r],o=i[0],s=i[1],a=this.getTimeouts(),l=r?a.appear:a.enter;!e&&!n||za?this.safeSetState({status:qa},(function(){t.props.onEntered(o)})):(this.props.onEnter(o,s),this.safeSetState({status:Ha},(function(){t.props.onEntering(o,s),t.onTransitionEnd(l,(function(){t.safeSetState({status:qa},(function(){t.props.onEntered(o,s)}))}))})))},r.performExit=function(){var e=this,t=this.props.exit,n=this.getTimeouts(),r=this.props.nodeRef?void 0:x.findDOMNode(this);t&&!za?(this.props.onExit(r),this.safeSetState({status:Xa},(function(){e.props.onExiting(r),e.onTransitionEnd(n.exit,(function(){e.safeSetState({status:Wa},(function(){e.props.onExited(r)}))}))}))):this.safeSetState({status:Wa},(function(){e.props.onExited(r)}))},r.cancelNextCallback=function(){null!==this.nextCallback&&(this.nextCallback.cancel(),this.nextCallback=null)},r.safeSetState=function(e,t){t=this.setNextCallback(t),this.setState(e,t)},r.setNextCallback=function(e){var t=this,n=!0;return this.nextCallback=function(r){n&&(n=!1,t.nextCallback=null,e(r))},this.nextCallback.cancel=function(){n=!1},this.nextCallback},r.onTransitionEnd=function(e,t){this.setNextCallback(t);var n=this.props.nodeRef?this.props.nodeRef.current:x.findDOMNode(this),r=null==e&&!this.props.addEndListener;if(n&&!r){if(this.props.addEndListener){var i=this.props.nodeRef?[this.nextCallback]:[n,this.nextCallback],o=i[0],s=i[1];this.props.addEndListener(o,s)}null!=e&&setTimeout(this.nextCallback,e)}else setTimeout(this.nextCallback,0)},r.render=function(){var e=this.state.status;if(e===Ua)return null;var t=this.props,r=t.children,i=(t.in,t.mountOnEnter,t.unmountOnExit,t.appear,t.enter,t.exit,t.timeout,t.addEndListener,t.onEnter,t.onEntering,t.onEntered,t.onExit,t.onExiting,t.onExited,t.nodeRef,(0,Tt.c)(t,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]));return n.createElement(Gs.Provider,{value:null},"function"===typeof r?r(e,i):n.cloneElement(n.Children.only(r),i))},t}(n.Component);function Ka(){}Ya.contextType=Gs,Ya.propTypes={},Ya.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:Ka,onEntering:Ka,onEntered:Ka,onExit:Ka,onExiting:Ka,onExited:Ka},Ya.UNMOUNTED=Ua,Ya.EXITED=Wa,Ya.ENTERING=Ha,Ya.ENTERED=qa,Ya.EXITING=Xa;const Za=Ya,$a=e=>e.scrollTop;function Ja(e,t){var n,r;const{timeout:i,easing:o,style:s={}}=e;return{duration:null!=(n=s.transitionDuration)?n:"number"===typeof i?i:i[t.mode]||0,easing:null!=(r=s.transitionTimingFunction)?r:"object"===typeof o?o[t.mode]:o,delay:s.transitionDelay}}const Qa=["addEndListener","appear","children","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"];function el(e){return"scale(".concat(e,", ").concat(e**2,")")}const tl={entering:{opacity:1,transform:el(1)},entered:{opacity:1,transform:"none"}},nl="undefined"!==typeof navigator&&/^((?!chrome|android).)*(safari|mobile)/i.test(navigator.userAgent)&&/(os |version\/)15(.|_)4/i.test(navigator.userAgent),rl=n.forwardRef((function(e,t){const{addEndListener:r,appear:i=!0,children:o,easing:s,in:a,onEnter:l,onEntered:c,onEntering:u,onExit:h,onExited:p,onExiting:f,style:g,timeout:m="auto",TransitionComponent:y=Za}=e,v=(0,Tt.c)(e,Qa),_=n.useRef(),b=n.useRef(),x=Go(),S=n.useRef(null),w=(0,Cs.c)(S,o.ref,t),E=e=>t=>{if(e){const n=S.current;void 0===t?e(n):e(n,t)}},P=E(u),C=E(((e,t)=>{$a(e);const{duration:n,delay:r,easing:i}=Ja({style:g,timeout:m,easing:s},{mode:"enter"});let o;"auto"===m?(o=x.transitions.getAutoHeightDuration(e.clientHeight),b.current=o):o=n,e.style.transition=[x.transitions.create("opacity",{duration:o,delay:r}),x.transitions.create("transform",{duration:nl?o:.666*o,delay:r,easing:i})].join(","),l&&l(e,t)})),A=E(c),k=E(f),j=E((e=>{const{duration:t,delay:n,easing:r}=Ja({style:g,timeout:m,easing:s},{mode:"exit"});let i;"auto"===m?(i=x.transitions.getAutoHeightDuration(e.clientHeight),b.current=i):i=t,e.style.transition=[x.transitions.create("opacity",{duration:i,delay:n}),x.transitions.create("transform",{duration:nl?i:.666*i,delay:nl?n:n||.333*i,easing:r})].join(","),e.style.opacity=0,e.style.transform=el(.75),h&&h(e)})),I=E(p);return n.useEffect((()=>()=>{clearTimeout(_.current)}),[]),(0,Ae.jsx)(y,(0,d.c)({appear:i,in:a,nodeRef:S,onEnter:C,onEntered:A,onEntering:P,onExit:j,onExited:I,onExiting:k,addEndListener:e=>{"auto"===m&&(_.current=setTimeout(e,b.current||0)),r&&r(S.current,e)},timeout:"auto"===m?null:m},v,{children:(e,t)=>n.cloneElement(o,(0,d.c)({style:(0,d.c)({opacity:0,transform:el(.75),visibility:"exited"!==e||a?void 0:"hidden"},tl[e],g,o.props.style),ref:w},t))}))}));rl.muiSupportAuto=!0;const il=rl;var ol=__webpack_require__(68724),sl=__webpack_require__(52048),al=__webpack_require__(75192);function ll(e){if(null==e)return window;if("[object Window]"!==e.toString()){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function cl(e){return e instanceof ll(e).Element||e instanceof Element}function ul(e){return e instanceof ll(e).HTMLElement||e instanceof HTMLElement}function dl(e){return"undefined"!==typeof ShadowRoot&&(e instanceof ll(e).ShadowRoot||e instanceof ShadowRoot)}var hl=Math.max,pl=Math.min,fl=Math.round;function gl(){var e=navigator.userAgentData;return null!=e&&e.brands?e.brands.map((function(e){return e.brand+"/"+e.version})).join(" "):navigator.userAgent}function ml(){return!/^((?!chrome|android).)*safari/i.test(gl())}function yl(e,t,n){void 0===t&&(t=!1),void 0===n&&(n=!1);var r=e.getBoundingClientRect(),i=1,o=1;t&&ul(e)&&(i=e.offsetWidth>0&&fl(r.width)/e.offsetWidth||1,o=e.offsetHeight>0&&fl(r.height)/e.offsetHeight||1);var s=(cl(e)?ll(e):window).visualViewport,a=!ml()&&n,l=(r.left+(a&&s?s.offsetLeft:0))/i,c=(r.top+(a&&s?s.offsetTop:0))/o,u=r.width/i,d=r.height/o;return{width:u,height:d,top:c,right:l+u,bottom:c+d,left:l,x:l,y:c}}function vl(e){var t=ll(e);return{scrollLeft:t.pageXOffset,scrollTop:t.pageYOffset}}function _l(e){return e?(e.nodeName||"").toLowerCase():null}function bl(e){return((cl(e)?e.ownerDocument:e.document)||window.document).documentElement}function xl(e){return yl(bl(e)).left+vl(e).scrollLeft}function Sl(e){return ll(e).getComputedStyle(e)}function wl(e){var t=Sl(e),n=t.overflow,r=t.overflowX,i=t.overflowY;return/auto|scroll|overlay|hidden/.test(n+i+r)}function El(e,t,n){void 0===n&&(n=!1);var r=ul(t),i=ul(t)&&function(e){var t=e.getBoundingClientRect(),n=fl(t.width)/e.offsetWidth||1,r=fl(t.height)/e.offsetHeight||1;return 1!==n||1!==r}(t),o=bl(t),s=yl(e,i,n),a={scrollLeft:0,scrollTop:0},l={x:0,y:0};return(r||!r&&!n)&&(("body"!==_l(t)||wl(o))&&(a=function(e){return e!==ll(e)&&ul(e)?{scrollLeft:(t=e).scrollLeft,scrollTop:t.scrollTop}:vl(e);var t}(t)),ul(t)?((l=yl(t,!0)).x+=t.clientLeft,l.y+=t.clientTop):o&&(l.x=xl(o))),{x:s.left+a.scrollLeft-l.x,y:s.top+a.scrollTop-l.y,width:s.width,height:s.height}}function Pl(e){var t=yl(e),n=e.offsetWidth,r=e.offsetHeight;return Math.abs(t.width-n)<=1&&(n=t.width),Math.abs(t.height-r)<=1&&(r=t.height),{x:e.offsetLeft,y:e.offsetTop,width:n,height:r}}function Cl(e){return"html"===_l(e)?e:e.assignedSlot||e.parentNode||(dl(e)?e.host:null)||bl(e)}function Al(e){return["html","body","#document"].indexOf(_l(e))>=0?e.ownerDocument.body:ul(e)&&wl(e)?e:Al(Cl(e))}function kl(e,t){var n;void 0===t&&(t=[]);var r=Al(e),i=r===(null==(n=e.ownerDocument)?void 0:n.body),o=ll(r),s=i?[o].concat(o.visualViewport||[],wl(r)?r:[]):r,a=t.concat(s);return i?a:a.concat(kl(Cl(s)))}function jl(e){return["table","td","th"].indexOf(_l(e))>=0}function Il(e){return ul(e)&&"fixed"!==Sl(e).position?e.offsetParent:null}function Gl(e){for(var t=ll(e),n=Il(e);n&&jl(n)&&"static"===Sl(n).position;)n=Il(n);return n&&("html"===_l(n)||"body"===_l(n)&&"static"===Sl(n).position)?t:n||function(e){var t=/firefox/i.test(gl());if(/Trident/i.test(gl())&&ul(e)&&"fixed"===Sl(e).position)return null;var n=Cl(e);for(dl(n)&&(n=n.host);ul(n)&&["html","body"].indexOf(_l(n))<0;){var r=Sl(n);if("none"!==r.transform||"none"!==r.perspective||"paint"===r.contain||-1!==["transform","perspective"].indexOf(r.willChange)||t&&"filter"===r.willChange||t&&r.filter&&"none"!==r.filter)return n;n=n.parentNode}return null}(e)||t}var Tl="top",Ml="bottom",Ol="right",Rl="left",Dl="auto",Nl=[Tl,Ml,Ol,Rl],Ll="start",Vl="end",Fl="clippingParents",zl="viewport",Bl="popper",Ul="reference",Wl=Nl.reduce((function(e,t){return e.concat([t+"-"+Ll,t+"-"+Vl])}),[]),Hl=[].concat(Nl,[Dl]).reduce((function(e,t){return e.concat([t,t+"-"+Ll,t+"-"+Vl])}),[]),ql=["beforeRead","read","afterRead","beforeMain","main","afterMain","beforeWrite","write","afterWrite"];function Xl(e){var t=new Map,n=new Set,r=[];function i(e){n.add(e.name),[].concat(e.requires||[],e.requiresIfExists||[]).forEach((function(e){if(!n.has(e)){var r=t.get(e);r&&i(r)}})),r.push(e)}return e.forEach((function(e){t.set(e.name,e)})),e.forEach((function(e){n.has(e.name)||i(e)})),r}function Yl(e){var t;return function(){return t||(t=new Promise((function(n){Promise.resolve().then((function(){t=void 0,n(e())}))}))),t}}var Kl={placement:"bottom",modifiers:[],strategy:"absolute"};function Zl(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return!t.some((function(e){return!(e&&"function"===typeof e.getBoundingClientRect)}))}function $l(e){void 0===e&&(e={});var t=e,n=t.defaultModifiers,r=void 0===n?[]:n,i=t.defaultOptions,o=void 0===i?Kl:i;return function(e,t,n){void 0===n&&(n=o);var i={placement:"bottom",orderedModifiers:[],options:Object.assign({},Kl,o),modifiersData:{},elements:{reference:e,popper:t},attributes:{},styles:{}},s=[],a=!1,l={state:i,setOptions:function(n){var a="function"===typeof n?n(i.options):n;c(),i.options=Object.assign({},o,i.options,a),i.scrollParents={reference:cl(e)?kl(e):e.contextElement?kl(e.contextElement):[],popper:kl(t)};var u=function(e){var t=Xl(e);return ql.reduce((function(e,n){return e.concat(t.filter((function(e){return e.phase===n})))}),[])}(function(e){var t=e.reduce((function(e,t){var n=e[t.name];return e[t.name]=n?Object.assign({},n,t,{options:Object.assign({},n.options,t.options),data:Object.assign({},n.data,t.data)}):t,e}),{});return Object.keys(t).map((function(e){return t[e]}))}([].concat(r,i.options.modifiers)));return i.orderedModifiers=u.filter((function(e){return e.enabled})),i.orderedModifiers.forEach((function(e){var t=e.name,n=e.options,r=void 0===n?{}:n,o=e.effect;if("function"===typeof o){var a=o({state:i,name:t,instance:l,options:r}),c=function(){};s.push(a||c)}})),l.update()},forceUpdate:function(){if(!a){var e=i.elements,t=e.reference,n=e.popper;if(Zl(t,n)){i.rects={reference:El(t,Gl(n),"fixed"===i.options.strategy),popper:Pl(n)},i.reset=!1,i.placement=i.options.placement,i.orderedModifiers.forEach((function(e){return i.modifiersData[e.name]=Object.assign({},e.data)}));for(var r=0;r<i.orderedModifiers.length;r++)if(!0!==i.reset){var o=i.orderedModifiers[r],s=o.fn,c=o.options,u=void 0===c?{}:c,d=o.name;"function"===typeof s&&(i=s({state:i,options:u,name:d,instance:l})||i)}else i.reset=!1,r=-1}}},update:Yl((function(){return new Promise((function(e){l.forceUpdate(),e(i)}))})),destroy:function(){c(),a=!0}};if(!Zl(e,t))return l;function c(){s.forEach((function(e){return e()})),s=[]}return l.setOptions(n).then((function(e){!a&&n.onFirstUpdate&&n.onFirstUpdate(e)})),l}}var Jl={passive:!0};const Ql={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:function(e){var t=e.state,n=e.instance,r=e.options,i=r.scroll,o=void 0===i||i,s=r.resize,a=void 0===s||s,l=ll(t.elements.popper),c=[].concat(t.scrollParents.reference,t.scrollParents.popper);return o&&c.forEach((function(e){e.addEventListener("scroll",n.update,Jl)})),a&&l.addEventListener("resize",n.update,Jl),function(){o&&c.forEach((function(e){e.removeEventListener("scroll",n.update,Jl)})),a&&l.removeEventListener("resize",n.update,Jl)}},data:{}};function ec(e){return e.split("-")[0]}function tc(e){return e.split("-")[1]}function nc(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function rc(e){var t,n=e.reference,r=e.element,i=e.placement,o=i?ec(i):null,s=i?tc(i):null,a=n.x+n.width/2-r.width/2,l=n.y+n.height/2-r.height/2;switch(o){case Tl:t={x:a,y:n.y-r.height};break;case Ml:t={x:a,y:n.y+n.height};break;case Ol:t={x:n.x+n.width,y:l};break;case Rl:t={x:n.x-r.width,y:l};break;default:t={x:n.x,y:n.y}}var c=o?nc(o):null;if(null!=c){var u="y"===c?"height":"width";switch(s){case Ll:t[c]=t[c]-(n[u]/2-r[u]/2);break;case Vl:t[c]=t[c]+(n[u]/2-r[u]/2)}}return t}const ic={name:"popperOffsets",enabled:!0,phase:"read",fn:function(e){var t=e.state,n=e.name;t.modifiersData[n]=rc({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement})},data:{}};var oc={top:"auto",right:"auto",bottom:"auto",left:"auto"};function sc(e){var t,n=e.popper,r=e.popperRect,i=e.placement,o=e.variation,s=e.offsets,a=e.position,l=e.gpuAcceleration,c=e.adaptive,u=e.roundOffsets,d=e.isFixed,h=s.x,p=void 0===h?0:h,f=s.y,g=void 0===f?0:f,m="function"===typeof u?u({x:p,y:g}):{x:p,y:g};p=m.x,g=m.y;var y=s.hasOwnProperty("x"),v=s.hasOwnProperty("y"),_=Rl,b=Tl,x=window;if(c){var S=Gl(n),w="clientHeight",E="clientWidth";if(S===ll(n)&&"static"!==Sl(S=bl(n)).position&&"absolute"===a&&(w="scrollHeight",E="scrollWidth"),i===Tl||(i===Rl||i===Ol)&&o===Vl)b=Ml,g-=(d&&S===x&&x.visualViewport?x.visualViewport.height:S[w])-r.height,g*=l?1:-1;if(i===Rl||(i===Tl||i===Ml)&&o===Vl)_=Ol,p-=(d&&S===x&&x.visualViewport?x.visualViewport.width:S[E])-r.width,p*=l?1:-1}var P,C=Object.assign({position:a},c&&oc),A=!0===u?function(e){var t=e.x,n=e.y,r=window.devicePixelRatio||1;return{x:fl(t*r)/r||0,y:fl(n*r)/r||0}}({x:p,y:g}):{x:p,y:g};return p=A.x,g=A.y,l?Object.assign({},C,((P={})[b]=v?"0":"",P[_]=y?"0":"",P.transform=(x.devicePixelRatio||1)<=1?"translate("+p+"px, "+g+"px)":"translate3d("+p+"px, "+g+"px, 0)",P)):Object.assign({},C,((t={})[b]=v?g+"px":"",t[_]=y?p+"px":"",t.transform="",t))}const ac={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:function(e){var t=e.state,n=e.options,r=n.gpuAcceleration,i=void 0===r||r,o=n.adaptive,s=void 0===o||o,a=n.roundOffsets,l=void 0===a||a,c={placement:ec(t.placement),variation:tc(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:i,isFixed:"fixed"===t.options.strategy};null!=t.modifiersData.popperOffsets&&(t.styles.popper=Object.assign({},t.styles.popper,sc(Object.assign({},c,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:s,roundOffsets:l})))),null!=t.modifiersData.arrow&&(t.styles.arrow=Object.assign({},t.styles.arrow,sc(Object.assign({},c,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:l})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})},data:{}};const lc={name:"applyStyles",enabled:!0,phase:"write",fn:function(e){var t=e.state;Object.keys(t.elements).forEach((function(e){var n=t.styles[e]||{},r=t.attributes[e]||{},i=t.elements[e];ul(i)&&_l(i)&&(Object.assign(i.style,n),Object.keys(r).forEach((function(e){var t=r[e];!1===t?i.removeAttribute(e):i.setAttribute(e,!0===t?"":t)})))}))},effect:function(e){var t=e.state,n={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(t.elements.popper.style,n.popper),t.styles=n,t.elements.arrow&&Object.assign(t.elements.arrow.style,n.arrow),function(){Object.keys(t.elements).forEach((function(e){var r=t.elements[e],i=t.attributes[e]||{},o=Object.keys(t.styles.hasOwnProperty(e)?t.styles[e]:n[e]).reduce((function(e,t){return e[t]="",e}),{});ul(r)&&_l(r)&&(Object.assign(r.style,o),Object.keys(i).forEach((function(e){r.removeAttribute(e)})))}))}},requires:["computeStyles"]};const cc={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:function(e){var t=e.state,n=e.options,r=e.name,i=n.offset,o=void 0===i?[0,0]:i,s=Hl.reduce((function(e,n){return e[n]=function(e,t,n){var r=ec(e),i=[Rl,Tl].indexOf(r)>=0?-1:1,o="function"===typeof n?n(Object.assign({},t,{placement:e})):n,s=o[0],a=o[1];return s=s||0,a=(a||0)*i,[Rl,Ol].indexOf(r)>=0?{x:a,y:s}:{x:s,y:a}}(n,t.rects,o),e}),{}),a=s[t.placement],l=a.x,c=a.y;null!=t.modifiersData.popperOffsets&&(t.modifiersData.popperOffsets.x+=l,t.modifiersData.popperOffsets.y+=c),t.modifiersData[r]=s}};var uc={left:"right",right:"left",bottom:"top",top:"bottom"};function dc(e){return e.replace(/left|right|bottom|top/g,(function(e){return uc[e]}))}var hc={start:"end",end:"start"};function pc(e){return e.replace(/start|end/g,(function(e){return hc[e]}))}function fc(e,t){var n=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(n&&dl(n)){var r=t;do{if(r&&e.isSameNode(r))return!0;r=r.parentNode||r.host}while(r)}return!1}function gc(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function mc(e,t,n){return t===zl?gc(function(e,t){var n=ll(e),r=bl(e),i=n.visualViewport,o=r.clientWidth,s=r.clientHeight,a=0,l=0;if(i){o=i.width,s=i.height;var c=ml();(c||!c&&"fixed"===t)&&(a=i.offsetLeft,l=i.offsetTop)}return{width:o,height:s,x:a+xl(e),y:l}}(e,n)):cl(t)?function(e,t){var n=yl(e,!1,"fixed"===t);return n.top=n.top+e.clientTop,n.left=n.left+e.clientLeft,n.bottom=n.top+e.clientHeight,n.right=n.left+e.clientWidth,n.width=e.clientWidth,n.height=e.clientHeight,n.x=n.left,n.y=n.top,n}(t,n):gc(function(e){var t,n=bl(e),r=vl(e),i=null==(t=e.ownerDocument)?void 0:t.body,o=hl(n.scrollWidth,n.clientWidth,i?i.scrollWidth:0,i?i.clientWidth:0),s=hl(n.scrollHeight,n.clientHeight,i?i.scrollHeight:0,i?i.clientHeight:0),a=-r.scrollLeft+xl(e),l=-r.scrollTop;return"rtl"===Sl(i||n).direction&&(a+=hl(n.clientWidth,i?i.clientWidth:0)-o),{width:o,height:s,x:a,y:l}}(bl(e)))}function yc(e,t,n,r){var i="clippingParents"===t?function(e){var t=kl(Cl(e)),n=["absolute","fixed"].indexOf(Sl(e).position)>=0&&ul(e)?Gl(e):e;return cl(n)?t.filter((function(e){return cl(e)&&fc(e,n)&&"body"!==_l(e)})):[]}(e):[].concat(t),o=[].concat(i,[n]),s=o[0],a=o.reduce((function(t,n){var i=mc(e,n,r);return t.top=hl(i.top,t.top),t.right=pl(i.right,t.right),t.bottom=pl(i.bottom,t.bottom),t.left=hl(i.left,t.left),t}),mc(e,s,r));return a.width=a.right-a.left,a.height=a.bottom-a.top,a.x=a.left,a.y=a.top,a}function vc(e){return Object.assign({},{top:0,right:0,bottom:0,left:0},e)}function _c(e,t){return t.reduce((function(t,n){return t[n]=e,t}),{})}function bc(e,t){void 0===t&&(t={});var n=t,r=n.placement,i=void 0===r?e.placement:r,o=n.strategy,s=void 0===o?e.strategy:o,a=n.boundary,l=void 0===a?Fl:a,c=n.rootBoundary,u=void 0===c?zl:c,d=n.elementContext,h=void 0===d?Bl:d,p=n.altBoundary,f=void 0!==p&&p,g=n.padding,m=void 0===g?0:g,y=vc("number"!==typeof m?m:_c(m,Nl)),v=h===Bl?Ul:Bl,_=e.rects.popper,b=e.elements[f?v:h],x=yc(cl(b)?b:b.contextElement||bl(e.elements.popper),l,u,s),S=yl(e.elements.reference),w=rc({reference:S,element:_,strategy:"absolute",placement:i}),E=gc(Object.assign({},_,w)),P=h===Bl?E:S,C={top:x.top-P.top+y.top,bottom:P.bottom-x.bottom+y.bottom,left:x.left-P.left+y.left,right:P.right-x.right+y.right},A=e.modifiersData.offset;if(h===Bl&&A){var k=A[i];Object.keys(C).forEach((function(e){var t=[Ol,Ml].indexOf(e)>=0?1:-1,n=[Tl,Ml].indexOf(e)>=0?"y":"x";C[e]+=k[n]*t}))}return C}const xc={name:"flip",enabled:!0,phase:"main",fn:function(e){var t=e.state,n=e.options,r=e.name;if(!t.modifiersData[r]._skip){for(var i=n.mainAxis,o=void 0===i||i,s=n.altAxis,a=void 0===s||s,l=n.fallbackPlacements,c=n.padding,u=n.boundary,d=n.rootBoundary,h=n.altBoundary,p=n.flipVariations,f=void 0===p||p,g=n.allowedAutoPlacements,m=t.options.placement,y=ec(m),v=l||(y===m||!f?[dc(m)]:function(e){if(ec(e)===Dl)return[];var t=dc(e);return[pc(e),t,pc(t)]}(m)),_=[m].concat(v).reduce((function(e,n){return e.concat(ec(n)===Dl?function(e,t){void 0===t&&(t={});var n=t,r=n.placement,i=n.boundary,o=n.rootBoundary,s=n.padding,a=n.flipVariations,l=n.allowedAutoPlacements,c=void 0===l?Hl:l,u=tc(r),d=u?a?Wl:Wl.filter((function(e){return tc(e)===u})):Nl,h=d.filter((function(e){return c.indexOf(e)>=0}));0===h.length&&(h=d);var p=h.reduce((function(t,n){return t[n]=bc(e,{placement:n,boundary:i,rootBoundary:o,padding:s})[ec(n)],t}),{});return Object.keys(p).sort((function(e,t){return p[e]-p[t]}))}(t,{placement:n,boundary:u,rootBoundary:d,padding:c,flipVariations:f,allowedAutoPlacements:g}):n)}),[]),b=t.rects.reference,x=t.rects.popper,S=new Map,w=!0,E=_[0],P=0;P<_.length;P++){var C=_[P],A=ec(C),k=tc(C)===Ll,j=[Tl,Ml].indexOf(A)>=0,I=j?"width":"height",G=bc(t,{placement:C,boundary:u,rootBoundary:d,altBoundary:h,padding:c}),T=j?k?Ol:Rl:k?Ml:Tl;b[I]>x[I]&&(T=dc(T));var M=dc(T),O=[];if(o&&O.push(G[A]<=0),a&&O.push(G[T]<=0,G[M]<=0),O.every((function(e){return e}))){E=C,w=!1;break}S.set(C,O)}if(w)for(var R=function(e){var t=_.find((function(t){var n=S.get(t);if(n)return n.slice(0,e).every((function(e){return e}))}));if(t)return E=t,"break"},D=f?3:1;D>0;D--){if("break"===R(D))break}t.placement!==E&&(t.modifiersData[r]._skip=!0,t.placement=E,t.reset=!0)}},requiresIfExists:["offset"],data:{_skip:!1}};function Sc(e,t,n){return hl(e,pl(t,n))}const wc={name:"preventOverflow",enabled:!0,phase:"main",fn:function(e){var t=e.state,n=e.options,r=e.name,i=n.mainAxis,o=void 0===i||i,s=n.altAxis,a=void 0!==s&&s,l=n.boundary,c=n.rootBoundary,u=n.altBoundary,d=n.padding,h=n.tether,p=void 0===h||h,f=n.tetherOffset,g=void 0===f?0:f,m=bc(t,{boundary:l,rootBoundary:c,padding:d,altBoundary:u}),y=ec(t.placement),v=tc(t.placement),_=!v,b=nc(y),x="x"===b?"y":"x",S=t.modifiersData.popperOffsets,w=t.rects.reference,E=t.rects.popper,P="function"===typeof g?g(Object.assign({},t.rects,{placement:t.placement})):g,C="number"===typeof P?{mainAxis:P,altAxis:P}:Object.assign({mainAxis:0,altAxis:0},P),A=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,k={x:0,y:0};if(S){if(o){var j,I="y"===b?Tl:Rl,G="y"===b?Ml:Ol,T="y"===b?"height":"width",M=S[b],O=M+m[I],R=M-m[G],D=p?-E[T]/2:0,N=v===Ll?w[T]:E[T],L=v===Ll?-E[T]:-w[T],V=t.elements.arrow,F=p&&V?Pl(V):{width:0,height:0},z=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:{top:0,right:0,bottom:0,left:0},B=z[I],U=z[G],W=Sc(0,w[T],F[T]),H=_?w[T]/2-D-W-B-C.mainAxis:N-W-B-C.mainAxis,q=_?-w[T]/2+D+W+U+C.mainAxis:L+W+U+C.mainAxis,X=t.elements.arrow&&Gl(t.elements.arrow),Y=X?"y"===b?X.clientTop||0:X.clientLeft||0:0,K=null!=(j=null==A?void 0:A[b])?j:0,Z=M+q-K,$=Sc(p?pl(O,M+H-K-Y):O,M,p?hl(R,Z):R);S[b]=$,k[b]=$-M}if(a){var J,Q="x"===b?Tl:Rl,ee="x"===b?Ml:Ol,te=S[x],ne="y"===x?"height":"width",re=te+m[Q],ie=te-m[ee],oe=-1!==[Tl,Rl].indexOf(y),se=null!=(J=null==A?void 0:A[x])?J:0,ae=oe?re:te-w[ne]-E[ne]-se+C.altAxis,le=oe?te+w[ne]+E[ne]-se-C.altAxis:ie,ce=p&&oe?function(e,t,n){var r=Sc(e,t,n);return r>n?n:r}(ae,te,le):Sc(p?ae:re,te,p?le:ie);S[x]=ce,k[x]=ce-te}t.modifiersData[r]=k}},requiresIfExists:["offset"]};const Ec={name:"arrow",enabled:!0,phase:"main",fn:function(e){var t,n=e.state,r=e.name,i=e.options,o=n.elements.arrow,s=n.modifiersData.popperOffsets,a=ec(n.placement),l=nc(a),c=[Rl,Ol].indexOf(a)>=0?"height":"width";if(o&&s){var u=function(e,t){return vc("number"!==typeof(e="function"===typeof e?e(Object.assign({},t.rects,{placement:t.placement})):e)?e:_c(e,Nl))}(i.padding,n),d=Pl(o),h="y"===l?Tl:Rl,p="y"===l?Ml:Ol,f=n.rects.reference[c]+n.rects.reference[l]-s[l]-n.rects.popper[c],g=s[l]-n.rects.reference[l],m=Gl(o),y=m?"y"===l?m.clientHeight||0:m.clientWidth||0:0,v=f/2-g/2,_=u[h],b=y-d[c]-u[p],x=y/2-d[c]/2+v,S=Sc(_,x,b),w=l;n.modifiersData[r]=((t={})[w]=S,t.centerOffset=S-x,t)}},effect:function(e){var t=e.state,n=e.options.element,r=void 0===n?"[data-popper-arrow]":n;null!=r&&("string"!==typeof r||(r=t.elements.popper.querySelector(r)))&&fc(t.elements.popper,r)&&(t.elements.arrow=r)},requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function Pc(e,t,n){return void 0===n&&(n={x:0,y:0}),{top:e.top-t.height-n.y,right:e.right-t.width+n.x,bottom:e.bottom-t.height+n.y,left:e.left-t.width-n.x}}function Cc(e){return[Tl,Ol,Ml,Rl].some((function(t){return e[t]>=0}))}const Ac={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:function(e){var t=e.state,n=e.name,r=t.rects.reference,i=t.rects.popper,o=t.modifiersData.preventOverflow,s=bc(t,{elementContext:"reference"}),a=bc(t,{altBoundary:!0}),l=Pc(s,r),c=Pc(a,i,o),u=Cc(l),d=Cc(c);t.modifiersData[n]={referenceClippingOffsets:l,popperEscapeOffsets:c,isReferenceHidden:u,hasPopperEscaped:d},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":u,"data-popper-escaped":d})}};var kc=$l({defaultModifiers:[Ql,ic,ac,lc,cc,xc,wc,Ec,Ac]}),jc=__webpack_require__(77472);const Ic=n.forwardRef((function(e,t){const{children:r,container:i,disablePortal:o=!1}=e,[s,a]=n.useState(null),l=(0,ol.c)(n.isValidElement(r)?r.ref:null,t);return(0,sl.c)((()=>{o||a(function(e){return"function"===typeof e?e():e}(i)||document.body)}),[i,o]),(0,sl.c)((()=>{if(s&&!o)return(0,jc.c)(t,s),()=>{(0,jc.c)(t,null)}}),[t,s,o]),o?n.isValidElement(r)?n.cloneElement(r,{ref:l}):r:(0,Ae.jsx)(n.Fragment,{children:s?x.createPortal(r,s):s})}));const Gc=Ic;function Tc(e){return(0,hs.c)("MuiPopperUnstyled",e)}(0,ds.c)("MuiPopperUnstyled",["root"]);function Mc(e){if(void 0===e)return{};const t={};return Object.keys(e).filter((t=>!(t.match(/^on[A-Z]/)&&"function"===typeof e[t]))).forEach((n=>{t[n]=e[n]})),t}function Oc(e){const{getSlotProps:t,additionalProps:n,externalSlotProps:r,externalForwardedProps:i,className:o}=e;if(!t){const e=(0,ts.c)(null==i?void 0:i.className,null==r?void 0:r.className,o,null==n?void 0:n.className),t=(0,d.c)({},null==n?void 0:n.style,null==i?void 0:i.style,null==r?void 0:r.style),s=(0,d.c)({},n,i,r);return e.length>0&&(s.className=e),Object.keys(t).length>0&&(s.style=t),{props:s,internalRef:void 0}}const s=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];if(void 0===e)return{};const n={};return Object.keys(e).filter((n=>n.match(/^on[A-Z]/)&&"function"===typeof e[n]&&!t.includes(n))).forEach((t=>{n[t]=e[t]})),n}((0,d.c)({},i,r)),a=Mc(r),l=Mc(i),c=t(s),u=(0,ts.c)(null==c?void 0:c.className,null==n?void 0:n.className,o,null==i?void 0:i.className,null==r?void 0:r.className),h=(0,d.c)({},null==c?void 0:c.style,null==n?void 0:n.style,null==i?void 0:i.style,null==r?void 0:r.style),p=(0,d.c)({},c,n,l,a);return u.length>0&&(p.className=u),Object.keys(h).length>0&&(p.style=h),{props:p,internalRef:c.ref}}function Rc(e,t){return"function"===typeof e?e(t):e}const Dc=["elementType","externalSlotProps","ownerState"];function Nc(e){var t;const{elementType:n,externalSlotProps:r,ownerState:i}=e,o=(0,Tt.c)(e,Dc),s=Rc(r,i),{props:a,internalRef:l}=Oc((0,d.c)({},o,{externalSlotProps:s})),c=(0,ol.c)(l,null==s?void 0:s.ref,null==(t=e.additionalProps)?void 0:t.ref);return Fa(n,(0,d.c)({},a,{ref:c}),i)}const Lc=["anchorEl","children","component","direction","disablePortal","modifiers","open","ownerState","placement","popperOptions","popperRef","slotProps","slots","TransitionProps"],Vc=["anchorEl","children","container","direction","disablePortal","keepMounted","modifiers","open","placement","popperOptions","popperRef","style","transition"];function Fc(e){return"function"===typeof e?e():e}const zc={},Bc=n.forwardRef((function(e,t){var r;const{anchorEl:i,children:o,component:s,direction:a,disablePortal:l,modifiers:c,open:u,ownerState:h,placement:p,popperOptions:f,popperRef:g,slotProps:m={},slots:y={},TransitionProps:v}=e,_=(0,Tt.c)(e,Lc),b=n.useRef(null),x=(0,ol.c)(b,t),S=n.useRef(null),w=(0,ol.c)(S,g),E=n.useRef(w);(0,sl.c)((()=>{E.current=w}),[w]),n.useImperativeHandle(g,(()=>S.current),[]);const P=function(e,t){if("ltr"===t)return e;switch(e){case"bottom-end":return"bottom-start";case"bottom-start":return"bottom-end";case"top-end":return"top-start";case"top-start":return"top-end";default:return e}}(p,a),[C,A]=n.useState(P),[k,j]=n.useState(i);n.useEffect((()=>{S.current&&S.current.forceUpdate()})),n.useEffect((()=>{i&&j(i)}),[i]),(0,sl.c)((()=>{if(!k||!u)return;Fc(k);let e=[{name:"preventOverflow",options:{altBoundary:l}},{name:"flip",options:{altBoundary:l}},{name:"onUpdate",enabled:!0,phase:"afterWrite",fn:e=>{let{state:t}=e;A(t.placement)}}];null!=c&&(e=e.concat(c)),f&&null!=f.modifiers&&(e=e.concat(f.modifiers));const t=kc(Fc(k),b.current,(0,d.c)({placement:P},f,{modifiers:e}));return E.current(t),()=>{t.destroy(),E.current(null)}}),[k,l,c,u,f,P]);const I={placement:C};null!==v&&(I.TransitionProps=v);const G=(0,ls.c)({root:["root"]},Tc,{}),T=null!=(r=null!=s?s:y.root)?r:"div",M=Nc({elementType:T,externalSlotProps:m.root,externalForwardedProps:_,additionalProps:{role:"tooltip",ref:x},ownerState:(0,d.c)({},e,h),className:G.root});return(0,Ae.jsx)(T,(0,d.c)({},M,{children:"function"===typeof o?o(I):o}))})),Uc=n.forwardRef((function(e,t){const{anchorEl:r,children:i,container:o,direction:s="ltr",disablePortal:a=!1,keepMounted:l=!1,modifiers:c,open:u,placement:h="bottom",popperOptions:p=zc,popperRef:f,style:g,transition:m=!1}=e,y=(0,Tt.c)(e,Vc),[v,_]=n.useState(!0);if(!l&&!u&&(!m||v))return null;const b=o||(r?(0,al.c)(Fc(r)).body:void 0);return(0,Ae.jsx)(Gc,{disablePortal:a,container:b,children:(0,Ae.jsx)(Bc,(0,d.c)({anchorEl:r,direction:s,disablePortal:a,modifiers:c,ref:t,open:m?!v:u,placement:h,popperOptions:p,popperRef:f},y,{style:(0,d.c)({position:"fixed",top:0,left:0,display:u||!l||m&&!v?null:"none"},g),TransitionProps:m?{in:u,onEnter:()=>{_(!1)},onExited:()=>{_(!0)}}:null,children:i}))})})),Wc=Uc;var Hc=__webpack_require__(21564);const qc=["components","componentsProps","slots","slotProps"],Xc=(0,cs.cp)(Wc,{name:"MuiPopper",slot:"Root",overridesResolver:(e,t)=>t.root})({}),Yc=n.forwardRef((function(e,t){var n;const r=(0,Hc.c)(),i=(0,Oe.c)({props:e,name:"MuiPopper"}),{components:o,componentsProps:s,slots:a,slotProps:l}=i,c=(0,Tt.c)(i,qc),u=null!=(n=null==a?void 0:a.root)?n:null==o?void 0:o.Root;return(0,Ae.jsx)(Xc,(0,d.c)({direction:null==r?void 0:r.direction,slots:{root:u},slotProps:null!=l?l:s},c,{ref:t}))})),Kc=Yc;var Zc=__webpack_require__(25432),$c=__webpack_require__(9408);function Jc(e){return(0,hs.c)("MuiTooltip",e)}const Qc=(0,ds.c)("MuiTooltip",["popper","popperInteractive","popperArrow","popperClose","tooltip","tooltipArrow","touch","tooltipPlacementLeft","tooltipPlacementRight","tooltipPlacementTop","tooltipPlacementBottom","arrow"]),eu=["arrow","children","classes","components","componentsProps","describeChild","disableFocusListener","disableHoverListener","disableInteractive","disableTouchListener","enterDelay","enterNextDelay","enterTouchDelay","followCursor","id","leaveDelay","leaveTouchDelay","onClose","onOpen","open","placement","PopperComponent","PopperProps","slotProps","slots","title","TransitionComponent","TransitionProps"];function tu(e){return Math.round(1e5*e)/1e5}const nu=(0,cs.cp)(Kc,{name:"MuiTooltip",slot:"Popper",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.popper,!n.disableInteractive&&t.popperInteractive,n.arrow&&t.popperArrow,!n.open&&t.popperClose]}})((e=>{let{theme:t,ownerState:n,open:r}=e;return(0,d.c)({zIndex:(t.vars||t).zIndex.tooltip,pointerEvents:"none"},!n.disableInteractive&&{pointerEvents:"auto"},!r&&{pointerEvents:"none"},n.arrow&&{['&[data-popper-placement*="bottom"] .'.concat(Qc.arrow)]:{top:0,marginTop:"-0.71em","&::before":{transformOrigin:"0 100%"}},['&[data-popper-placement*="top"] .'.concat(Qc.arrow)]:{bottom:0,marginBottom:"-0.71em","&::before":{transformOrigin:"100% 0"}},['&[data-popper-placement*="right"] .'.concat(Qc.arrow)]:(0,d.c)({},n.isRtl?{right:0,marginRight:"-0.71em"}:{left:0,marginLeft:"-0.71em"},{height:"1em",width:"0.71em","&::before":{transformOrigin:"100% 100%"}}),['&[data-popper-placement*="left"] .'.concat(Qc.arrow)]:(0,d.c)({},n.isRtl?{left:0,marginLeft:"-0.71em"}:{right:0,marginRight:"-0.71em"},{height:"1em",width:"0.71em","&::before":{transformOrigin:"0 0"}})})})),ru=(0,cs.cp)("div",{name:"MuiTooltip",slot:"Tooltip",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.tooltip,n.touch&&t.touch,n.arrow&&t.tooltipArrow,t["tooltipPlacement".concat((0,ha.c)(n.placement.split("-")[0]))]]}})((e=>{let{theme:t,ownerState:n}=e;return(0,d.c)({backgroundColor:t.vars?t.vars.palette.Tooltip.bg:(0,Ps.W4)(t.palette.grey[700],.92),borderRadius:(t.vars||t).shape.borderRadius,color:(t.vars||t).palette.common.white,fontFamily:t.typography.fontFamily,padding:"4px 8px",fontSize:t.typography.pxToRem(11),maxWidth:300,margin:2,wordWrap:"break-word",fontWeight:t.typography.fontWeightMedium},n.arrow&&{position:"relative",margin:0},n.touch&&{padding:"8px 16px",fontSize:t.typography.pxToRem(14),lineHeight:"".concat(tu(16/14),"em"),fontWeight:t.typography.fontWeightRegular},{[".".concat(Qc.popper,'[data-popper-placement*="left"] &')]:(0,d.c)({transformOrigin:"right center"},n.isRtl?(0,d.c)({marginLeft:"14px"},n.touch&&{marginLeft:"24px"}):(0,d.c)({marginRight:"14px"},n.touch&&{marginRight:"24px"})),[".".concat(Qc.popper,'[data-popper-placement*="right"] &')]:(0,d.c)({transformOrigin:"left center"},n.isRtl?(0,d.c)({marginRight:"14px"},n.touch&&{marginRight:"24px"}):(0,d.c)({marginLeft:"14px"},n.touch&&{marginLeft:"24px"})),[".".concat(Qc.popper,'[data-popper-placement*="top"] &')]:(0,d.c)({transformOrigin:"center bottom",marginBottom:"14px"},n.touch&&{marginBottom:"24px"}),[".".concat(Qc.popper,'[data-popper-placement*="bottom"] &')]:(0,d.c)({transformOrigin:"center top",marginTop:"14px"},n.touch&&{marginTop:"24px"})})})),iu=(0,cs.cp)("span",{name:"MuiTooltip",slot:"Arrow",overridesResolver:(e,t)=>t.arrow})((e=>{let{theme:t}=e;return{overflow:"hidden",position:"absolute",width:"1em",height:"0.71em",boxSizing:"border-box",color:t.vars?t.vars.palette.Tooltip.bg:(0,Ps.W4)(t.palette.grey[700],.9),"&::before":{content:'""',margin:"auto",display:"block",width:"100%",height:"100%",backgroundColor:"currentColor",transform:"rotate(45deg)"}}}));let ou=!1,su=null;function au(e,t){return n=>{t&&t(n),e(n)}}const lu=n.forwardRef((function(e,t){var r,i,o,s,a,l,c,u,h,p,f,g,m,y,v,_,b,x,S;const w=(0,Oe.c)({props:e,name:"MuiTooltip"}),{arrow:E=!1,children:P,components:C={},componentsProps:A={},describeChild:k=!1,disableFocusListener:j=!1,disableHoverListener:I=!1,disableInteractive:G=!1,disableTouchListener:T=!1,enterDelay:M=100,enterNextDelay:O=0,enterTouchDelay:R=700,followCursor:D=!1,id:N,leaveDelay:L=0,leaveTouchDelay:V=1500,onClose:F,onOpen:z,open:B,placement:U="bottom",PopperComponent:W,PopperProps:H={},slotProps:q={},slots:X={},title:Y,TransitionComponent:K=il,TransitionProps:Z}=w,$=(0,Tt.c)(w,eu),J=Go(),Q="rtl"===J.direction,[ee,te]=n.useState(),[ne,re]=n.useState(null),ie=n.useRef(!1),oe=G||D,se=n.useRef(),ae=n.useRef(),le=n.useRef(),ce=n.useRef(),[ue,de]=(0,$c.c)({controlled:B,default:!1,name:"Tooltip",state:"open"});let he=ue;const pe=(0,Zc.c)(N),fe=n.useRef(),ge=n.useCallback((()=>{void 0!==fe.current&&(document.body.style.WebkitUserSelect=fe.current,fe.current=void 0),clearTimeout(ce.current)}),[]);n.useEffect((()=>()=>{clearTimeout(se.current),clearTimeout(ae.current),clearTimeout(le.current),ge()}),[ge]);const me=e=>{clearTimeout(su),ou=!0,de(!0),z&&!he&&z(e)},ye=(0,As.c)((e=>{clearTimeout(su),su=setTimeout((()=>{ou=!1}),800+L),de(!1),F&&he&&F(e),clearTimeout(se.current),se.current=setTimeout((()=>{ie.current=!1}),J.transitions.duration.shortest)})),ve=e=>{ie.current&&"touchstart"!==e.type||(ee&&ee.removeAttribute("title"),clearTimeout(ae.current),clearTimeout(le.current),M||ou&&O?ae.current=setTimeout((()=>{me(e)}),ou?O:M):me(e))},_e=e=>{clearTimeout(ae.current),clearTimeout(le.current),le.current=setTimeout((()=>{ye(e)}),L)},{isFocusVisibleRef:be,onBlur:xe,onFocus:Se,ref:we}=(0,ks.c)(),[,Ee]=n.useState(!1),Pe=e=>{xe(e),!1===be.current&&(Ee(!1),_e(e))},Ce=e=>{ee||te(e.currentTarget),Se(e),!0===be.current&&(Ee(!0),ve(e))},ke=e=>{ie.current=!0;const t=P.props;t.onTouchStart&&t.onTouchStart(e)},je=ve,Ie=_e,Ge=e=>{ke(e),clearTimeout(le.current),clearTimeout(se.current),ge(),fe.current=document.body.style.WebkitUserSelect,document.body.style.WebkitUserSelect="none",ce.current=setTimeout((()=>{document.body.style.WebkitUserSelect=fe.current,ve(e)}),R)},Te=e=>{P.props.onTouchEnd&&P.props.onTouchEnd(e),ge(),clearTimeout(le.current),le.current=setTimeout((()=>{ye(e)}),V)};n.useEffect((()=>{if(he)return document.addEventListener("keydown",e),()=>{document.removeEventListener("keydown",e)};function e(e){"Escape"!==e.key&&"Esc"!==e.key||ye(e)}}),[ye,he]);const Me=(0,Cs.c)(P.ref,we,te,t);Y||0===Y||(he=!1);const Re=n.useRef({x:0,y:0}),De=n.useRef(),Ne={},Le="string"===typeof Y;k?(Ne.title=he||!Le||I?null:Y,Ne["aria-describedby"]=he?pe:null):(Ne["aria-label"]=Le?Y:null,Ne["aria-labelledby"]=he&&!Le?pe:null);const Ve=(0,d.c)({},Ne,$,P.props,{className:(0,ts.c)($.className,P.props.className),onTouchStart:ke,ref:Me},D?{onMouseMove:e=>{const t=P.props;t.onMouseMove&&t.onMouseMove(e),Re.current={x:e.clientX,y:e.clientY},De.current&&De.current.update()}}:{});const Fe={};T||(Ve.onTouchStart=Ge,Ve.onTouchEnd=Te),I||(Ve.onMouseOver=au(je,Ve.onMouseOver),Ve.onMouseLeave=au(Ie,Ve.onMouseLeave),oe||(Fe.onMouseOver=je,Fe.onMouseLeave=Ie)),j||(Ve.onFocus=au(Ce,Ve.onFocus),Ve.onBlur=au(Pe,Ve.onBlur),oe||(Fe.onFocus=Ce,Fe.onBlur=Pe));const ze=n.useMemo((()=>{var e;let t=[{name:"arrow",enabled:Boolean(ne),options:{element:ne,padding:4}}];return null!=(e=H.popperOptions)&&e.modifiers&&(t=t.concat(H.popperOptions.modifiers)),(0,d.c)({},H.popperOptions,{modifiers:t})}),[ne,H]),Be=(0,d.c)({},w,{isRtl:Q,arrow:E,disableInteractive:oe,placement:U,PopperComponentProp:W,touch:ie.current}),Ue=(e=>{const{classes:t,disableInteractive:n,arrow:r,touch:i,placement:o}=e,s={popper:["popper",!n&&"popperInteractive",r&&"popperArrow"],tooltip:["tooltip",r&&"tooltipArrow",i&&"touch","tooltipPlacement".concat((0,ha.c)(o.split("-")[0]))],arrow:["arrow"]};return(0,ls.c)(s,Jc,t)})(Be),We=null!=(r=null!=(i=X.popper)?i:C.Popper)?r:nu,He=null!=(o=null!=(s=null!=(a=X.transition)?a:C.Transition)?s:K)?o:il,qe=null!=(l=null!=(c=X.tooltip)?c:C.Tooltip)?l:ru,Xe=null!=(u=null!=(h=X.arrow)?h:C.Arrow)?u:iu,Ye=Fa(We,(0,d.c)({},H,null!=(p=q.popper)?p:A.popper,{className:(0,ts.c)(Ue.popper,null==H?void 0:H.className,null==(f=null!=(g=q.popper)?g:A.popper)?void 0:f.className)}),Be),Ke=Fa(He,(0,d.c)({},Z,null!=(m=q.transition)?m:A.transition),Be),Ze=Fa(qe,(0,d.c)({},null!=(y=q.tooltip)?y:A.tooltip,{className:(0,ts.c)(Ue.tooltip,null==(v=null!=(_=q.tooltip)?_:A.tooltip)?void 0:v.className)}),Be),$e=Fa(Xe,(0,d.c)({},null!=(b=q.arrow)?b:A.arrow,{className:(0,ts.c)(Ue.arrow,null==(x=null!=(S=q.arrow)?S:A.arrow)?void 0:x.className)}),Be);return(0,Ae.jsxs)(n.Fragment,{children:[n.cloneElement(P,Ve),(0,Ae.jsx)(We,(0,d.c)({as:null!=W?W:Kc,placement:U,anchorEl:D?{getBoundingClientRect:()=>({top:Re.current.y,left:Re.current.x,right:Re.current.x,bottom:Re.current.y,width:0,height:0})}:ee,popperRef:De,open:!!ee&&he,id:pe,transition:!0},Fe,Ye,{popperOptions:ze,children:e=>{let{TransitionProps:t}=e;return(0,Ae.jsx)(He,(0,d.c)({timeout:J.transitions.duration.shorter},t,Ke,{"data-foo":"bar",children:(0,Ae.jsxs)(qe,(0,d.c)({},Ze,{children:[Y,E?(0,Ae.jsx)(Xe,(0,d.c)({},$e,{ref:re})):null]}))}))}}))]})})),cu=lu;const uu=n.createContext(void 0);function du(){return n.useContext(uu)}function hu(e){return(0,hs.c)("MuiTypography",e)}(0,ds.c)("MuiTypography",["root","h1","h2","h3","h4","h5","h6","subtitle1","subtitle2","body1","body2","inherit","button","caption","overline","alignLeft","alignRight","alignCenter","alignJustify","noWrap","gutterBottom","paragraph"]);const pu=["align","className","component","gutterBottom","noWrap","paragraph","variant","variantMapping"],fu=(0,cs.cp)("span",{name:"MuiTypography",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.variant&&t[n.variant],"inherit"!==n.align&&t["align".concat((0,ha.c)(n.align))],n.noWrap&&t.noWrap,n.gutterBottom&&t.gutterBottom,n.paragraph&&t.paragraph]}})((e=>{let{theme:t,ownerState:n}=e;return(0,d.c)({margin:0},n.variant&&t.typography[n.variant],"inherit"!==n.align&&{textAlign:n.align},n.noWrap&&{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},n.gutterBottom&&{marginBottom:"0.35em"},n.paragraph&&{marginBottom:16})})),gu={h1:"h1",h2:"h2",h3:"h3",h4:"h4",h5:"h5",h6:"h6",subtitle1:"h6",subtitle2:"h6",body1:"p",body2:"p",inherit:"p"},mu={primary:"primary.main",textPrimary:"text.primary",secondary:"secondary.main",textSecondary:"text.secondary",error:"error.main"},yu=n.forwardRef((function(e,t){const n=(0,Oe.c)({props:e,name:"MuiTypography"}),r=(e=>mu[e]||e)(n.color),i=as((0,d.c)({},n,{color:r})),{align:o="inherit",className:s,component:a,gutterBottom:l=!1,noWrap:c=!1,paragraph:u=!1,variant:h="body1",variantMapping:p=gu}=i,f=(0,Tt.c)(i,pu),g=(0,d.c)({},i,{align:o,color:r,className:s,component:a,gutterBottom:l,noWrap:c,paragraph:u,variant:h,variantMapping:p}),m=a||(u?"p":p[h]||gu[h])||"span",y=(e=>{const{align:t,gutterBottom:n,noWrap:r,paragraph:i,variant:o,classes:s}=e,a={root:["root",o,"inherit"!==e.align&&"align".concat((0,ha.c)(t)),n&&"gutterBottom",r&&"noWrap",i&&"paragraph"]};return(0,ls.c)(a,hu,s)})(g);return(0,Ae.jsx)(fu,(0,d.c)({as:m,ref:t,ownerState:g,className:(0,ts.c)(y.root,s)},f))})),vu=yu;function _u(e){return(0,hs.c)("MuiFormControlLabel",e)}const bu=(0,ds.c)("MuiFormControlLabel",["root","labelPlacementStart","labelPlacementTop","labelPlacementBottom","disabled","label","error"]);function xu(e){let{props:t,states:n,muiFormControl:r}=e;return n.reduce(((e,n)=>(e[n]=t[n],r&&"undefined"===typeof t[n]&&(e[n]=r[n]),e)),{})}const Su=["checked","className","componentsProps","control","disabled","disableTypography","inputRef","label","labelPlacement","name","onChange","slotProps","value"],wu=(0,cs.cp)("label",{name:"MuiFormControlLabel",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{["& .".concat(bu.label)]:t.label},t.root,t["labelPlacement".concat((0,ha.c)(n.labelPlacement))]]}})((e=>{let{theme:t,ownerState:n}=e;return(0,d.c)({display:"inline-flex",alignItems:"center",cursor:"pointer",verticalAlign:"middle",WebkitTapHighlightColor:"transparent",marginLeft:-11,marginRight:16,["&.".concat(bu.disabled)]:{cursor:"default"}},"start"===n.labelPlacement&&{flexDirection:"row-reverse",marginLeft:16,marginRight:-11},"top"===n.labelPlacement&&{flexDirection:"column-reverse",marginLeft:16},"bottom"===n.labelPlacement&&{flexDirection:"column",marginLeft:16},{["& .".concat(bu.label)]:{["&.".concat(bu.disabled)]:{color:(t.vars||t).palette.text.disabled}}})})),Eu=n.forwardRef((function(e,t){var r;const i=(0,Oe.c)({props:e,name:"MuiFormControlLabel"}),{className:o,componentsProps:s={},control:a,disabled:l,disableTypography:c,label:u,labelPlacement:h="end",slotProps:p={}}=i,f=(0,Tt.c)(i,Su),g=du();let m=l;"undefined"===typeof m&&"undefined"!==typeof a.props.disabled&&(m=a.props.disabled),"undefined"===typeof m&&g&&(m=g.disabled);const y={disabled:m};["checked","name","onChange","value","inputRef"].forEach((e=>{"undefined"===typeof a.props[e]&&"undefined"!==typeof i[e]&&(y[e]=i[e])}));const v=xu({props:i,muiFormControl:g,states:["error"]}),_=(0,d.c)({},i,{disabled:m,labelPlacement:h,error:v.error}),b=(e=>{const{classes:t,disabled:n,labelPlacement:r,error:i}=e,o={root:["root",n&&"disabled","labelPlacement".concat((0,ha.c)(r)),i&&"error"],label:["label",n&&"disabled"]};return(0,ls.c)(o,_u,t)})(_),x=null!=(r=p.typography)?r:s.typography;let S=u;return null==S||S.type===vu||c||(S=(0,Ae.jsx)(vu,(0,d.c)({component:"span"},x,{className:(0,ts.c)(b.label,null==x?void 0:x.className),children:S}))),(0,Ae.jsxs)(wu,(0,d.c)({className:(0,ts.c)(b.root,o),ownerState:_,ref:t},f,{children:[n.cloneElement(a,y),S]}))})),Pu=Eu;function Cu(e){return(0,hs.c)("MuiIconButton",e)}const Au=(0,ds.c)("MuiIconButton",["root","disabled","colorInherit","colorPrimary","colorSecondary","colorError","colorInfo","colorSuccess","colorWarning","edgeStart","edgeEnd","sizeSmall","sizeMedium","sizeLarge"]),ku=["edge","children","className","color","disabled","disableFocusRipple","size"],ju=(0,cs.cp)(da,{name:"MuiIconButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,"default"!==n.color&&t["color".concat((0,ha.c)(n.color))],n.edge&&t["edge".concat((0,ha.c)(n.edge))],t["size".concat((0,ha.c)(n.size))]]}})((e=>{let{theme:t,ownerState:n}=e;return(0,d.c)({textAlign:"center",flex:"0 0 auto",fontSize:t.typography.pxToRem(24),padding:8,borderRadius:"50%",overflow:"visible",color:(t.vars||t).palette.action.active,transition:t.transitions.create("background-color",{duration:t.transitions.duration.shortest})},!n.disableRipple&&{"&:hover":{backgroundColor:t.vars?"rgba(".concat(t.vars.palette.action.activeChannel," / ").concat(t.vars.palette.action.hoverOpacity,")"):(0,Ps.W4)(t.palette.action.active,t.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},"start"===n.edge&&{marginLeft:"small"===n.size?-3:-12},"end"===n.edge&&{marginRight:"small"===n.size?-3:-12})}),(e=>{let{theme:t,ownerState:n}=e;var r;const i=null==(r=(t.vars||t).palette)?void 0:r[n.color];return(0,d.c)({},"inherit"===n.color&&{color:"inherit"},"inherit"!==n.color&&"default"!==n.color&&(0,d.c)({color:null==i?void 0:i.main},!n.disableRipple&&{"&:hover":(0,d.c)({},i&&{backgroundColor:t.vars?"rgba(".concat(i.mainChannel," / ").concat(t.vars.palette.action.hoverOpacity,")"):(0,Ps.W4)(i.main,t.palette.action.hoverOpacity)},{"@media (hover: none)":{backgroundColor:"transparent"}})}),"small"===n.size&&{padding:5,fontSize:t.typography.pxToRem(18)},"large"===n.size&&{padding:12,fontSize:t.typography.pxToRem(28)},{["&.".concat(Au.disabled)]:{backgroundColor:"transparent",color:(t.vars||t).palette.action.disabled}})})),Iu=n.forwardRef((function(e,t){const n=(0,Oe.c)({props:e,name:"MuiIconButton"}),{edge:r=!1,children:i,className:o,color:s="default",disabled:a=!1,disableFocusRipple:l=!1,size:c="medium"}=n,u=(0,Tt.c)(n,ku),h=(0,d.c)({},n,{edge:r,color:s,disabled:a,disableFocusRipple:l,size:c}),p=(e=>{const{classes:t,disabled:n,color:r,edge:i,size:o}=e,s={root:["root",n&&"disabled","default"!==r&&"color".concat((0,ha.c)(r)),i&&"edge".concat((0,ha.c)(i)),"size".concat((0,ha.c)(o))]};return(0,ls.c)(s,Cu,t)})(h);return(0,Ae.jsx)(ju,(0,d.c)({className:(0,ts.c)(p.root,o),centerRipple:!0,focusRipple:!l,disabled:a,ref:t,ownerState:h},u,{children:i}))})),Gu=Iu;__webpack_require__(46240);var Tu=__webpack_require__(25784);const Mu=n.createContext({});function Ou(e){return(0,hs.c)("MuiList",e)}(0,ds.c)("MuiList",["root","padding","dense","subheader"]);const Ru=["children","className","component","dense","disablePadding","subheader"],Du=(0,cs.cp)("ul",{name:"MuiList",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,!n.disablePadding&&t.padding,n.dense&&t.dense,n.subheader&&t.subheader]}})((e=>{let{ownerState:t}=e;return(0,d.c)({listStyle:"none",margin:0,padding:0,position:"relative"},!t.disablePadding&&{paddingTop:8,paddingBottom:8},t.subheader&&{paddingTop:0})})),Nu=n.forwardRef((function(e,t){const r=(0,Oe.c)({props:e,name:"MuiList"}),{children:i,className:o,component:s="ul",dense:a=!1,disablePadding:l=!1,subheader:c}=r,u=(0,Tt.c)(r,Ru),h=n.useMemo((()=>({dense:a})),[a]),p=(0,d.c)({},r,{component:s,dense:a,disablePadding:l}),f=(e=>{const{classes:t,disablePadding:n,dense:r,subheader:i}=e,o={root:["root",!n&&"padding",r&&"dense",i&&"subheader"]};return(0,ls.c)(o,Ou,t)})(p);return(0,Ae.jsx)(Mu.Provider,{value:h,children:(0,Ae.jsxs)(Du,(0,d.c)({as:s,className:(0,ts.c)(f.root,o),ref:t,ownerState:p},u,{children:[c,i]}))})})),Lu=Nu;function Vu(e){const t=e.documentElement.clientWidth;return Math.abs(window.innerWidth-t)}const Fu=Vu;var zu=__webpack_require__(58536);const Bu=["actions","autoFocus","autoFocusItem","children","className","disabledItemsFocusable","disableListWrap","onKeyDown","variant"];function Uu(e,t,n){return e===t?e.firstChild:t&&t.nextElementSibling?t.nextElementSibling:n?null:e.firstChild}function Wu(e,t,n){return e===t?n?e.firstChild:e.lastChild:t&&t.previousElementSibling?t.previousElementSibling:n?null:e.lastChild}function Hu(e,t){if(void 0===t)return!0;let n=e.innerText;return void 0===n&&(n=e.textContent),n=n.trim().toLowerCase(),0!==n.length&&(t.repeating?n[0]===t.keys[0]:0===n.indexOf(t.keys.join("")))}function qu(e,t,n,r,i,o){let s=!1,a=i(e,t,!!t&&n);for(;a;){if(a===e.firstChild){if(s)return!1;s=!0}const t=!r&&(a.disabled||"true"===a.getAttribute("aria-disabled"));if(a.hasAttribute("tabindex")&&Hu(a,o)&&!t)return a.focus(),!0;a=i(e,a,n)}return!1}const Xu=n.forwardRef((function(e,t){const{actions:r,autoFocus:i=!1,autoFocusItem:o=!1,children:s,className:a,disabledItemsFocusable:l=!1,disableListWrap:c=!1,onKeyDown:u,variant:h="selectedMenu"}=e,p=(0,Tt.c)(e,Bu),f=n.useRef(null),g=n.useRef({keys:[],repeating:!0,previousKeyMatched:!0,lastTime:null});(0,zu.c)((()=>{i&&f.current.focus()}),[i]),n.useImperativeHandle(r,(()=>({adjustStyleForScrollbar:(e,t)=>{const n=!f.current.style.width;if(e.clientHeight<f.current.clientHeight&&n){const n="".concat(Fu((0,Tu.c)(e)),"px");f.current.style["rtl"===t.direction?"paddingLeft":"paddingRight"]=n,f.current.style.width="calc(100% + ".concat(n,")")}return f.current}})),[]);const m=(0,Cs.c)(f,t);let y=-1;n.Children.forEach(s,((e,t)=>{n.isValidElement(e)&&(e.props.disabled||("selectedMenu"===h&&e.props.selected||-1===y)&&(y=t))}));const v=n.Children.map(s,((e,t)=>{if(t===y){const t={};return o&&(t.autoFocus=!0),void 0===e.props.tabIndex&&"selectedMenu"===h&&(t.tabIndex=0),n.cloneElement(e,t)}return e}));return(0,Ae.jsx)(Lu,(0,d.c)({role:"menu",ref:m,className:a,onKeyDown:e=>{const t=f.current,n=e.key,r=(0,Tu.c)(t).activeElement;if("ArrowDown"===n)e.preventDefault(),qu(t,r,c,l,Uu);else if("ArrowUp"===n)e.preventDefault(),qu(t,r,c,l,Wu);else if("Home"===n)e.preventDefault(),qu(t,null,c,l,Uu);else if("End"===n)e.preventDefault(),qu(t,null,c,l,Wu);else if(1===n.length){const i=g.current,o=n.toLowerCase(),s=performance.now();i.keys.length>0&&(s-i.lastTime>500?(i.keys=[],i.repeating=!0,i.previousKeyMatched=!0):i.repeating&&o!==i.keys[0]&&(i.repeating=!1)),i.lastTime=s,i.keys.push(o);const a=r&&!i.repeating&&Hu(r,i);i.previousKeyMatched&&(a||qu(t,r,!1,l,Uu,i))?e.preventDefault():i.previousKeyMatched=!1}u&&u(e)},tabIndex:i?0:-1},p,{children:v}))})),Yu=Xu,Ku=e=>{let t;return t=e<1?5.11916*e**2:4.5*Math.log(e+1)+2,(t/100).toFixed(2)};function Zu(e){return(0,hs.c)("MuiPaper",e)}(0,ds.c)("MuiPaper",["root","rounded","outlined","elevation","elevation0","elevation1","elevation2","elevation3","elevation4","elevation5","elevation6","elevation7","elevation8","elevation9","elevation10","elevation11","elevation12","elevation13","elevation14","elevation15","elevation16","elevation17","elevation18","elevation19","elevation20","elevation21","elevation22","elevation23","elevation24"]);const $u=["className","component","elevation","square","variant"],Ju=(0,cs.cp)("div",{name:"MuiPaper",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],!n.square&&t.rounded,"elevation"===n.variant&&t["elevation".concat(n.elevation)]]}})((e=>{let{theme:t,ownerState:n}=e;var r;return(0,d.c)({backgroundColor:(t.vars||t).palette.background.paper,color:(t.vars||t).palette.text.primary,transition:t.transitions.create("box-shadow")},!n.square&&{borderRadius:t.shape.borderRadius},"outlined"===n.variant&&{border:"1px solid ".concat((t.vars||t).palette.divider)},"elevation"===n.variant&&(0,d.c)({boxShadow:(t.vars||t).shadows[n.elevation]},!t.vars&&"dark"===t.palette.mode&&{backgroundImage:"linear-gradient(".concat((0,Ps.W4)("#fff",Ku(n.elevation)),", ").concat((0,Ps.W4)("#fff",Ku(n.elevation)),")")},t.vars&&{backgroundImage:null==(r=t.vars.overlays)?void 0:r[n.elevation]}))})),Qu=n.forwardRef((function(e,t){const n=(0,Oe.c)({props:e,name:"MuiPaper"}),{className:r,component:i="div",elevation:o=1,square:s=!1,variant:a="elevation"}=n,l=(0,Tt.c)(n,$u),c=(0,d.c)({},n,{component:i,elevation:o,square:s,variant:a}),u=(e=>{const{square:t,elevation:n,variant:r,classes:i}=e,o={root:["root",r,!t&&"rounded","elevation"===r&&"elevation".concat(n)]};return(0,ls.c)(o,Zu,i)})(c);return(0,Ae.jsx)(Ju,(0,d.c)({as:i,ownerState:c,className:(0,ts.c)(u.root,r),ref:t},l))}));var ed=__webpack_require__(14008),td=__webpack_require__(30360),nd=__webpack_require__(9772),rd=__webpack_require__(71196),id=__webpack_require__(79092);function od(e,t){t?e.setAttribute("aria-hidden","true"):e.removeAttribute("aria-hidden")}function sd(e){return parseInt((0,id.c)(e).getComputedStyle(e).paddingRight,10)||0}function ad(e,t,n,r,i){const o=[t,n,...r];[].forEach.call(e.children,(e=>{const t=-1===o.indexOf(e),n=!function(e){const t=-1!==["TEMPLATE","SCRIPT","STYLE","LINK","MAP","META","NOSCRIPT","PICTURE","COL","COLGROUP","PARAM","SLOT","SOURCE","TRACK"].indexOf(e.tagName),n="INPUT"===e.tagName&&"hidden"===e.getAttribute("type");return t||n}(e);t&&n&&od(e,i)}))}function ld(e,t){let n=-1;return e.some(((e,r)=>!!t(e)&&(n=r,!0))),n}function cd(e,t){const n=[],r=e.container;if(!t.disableScrollLock){if(function(e){const t=(0,al.c)(e);return t.body===e?(0,id.c)(e).innerWidth>t.documentElement.clientWidth:e.scrollHeight>e.clientHeight}(r)){const e=Vu((0,al.c)(r));n.push({value:r.style.paddingRight,property:"padding-right",el:r}),r.style.paddingRight="".concat(sd(r)+e,"px");const t=(0,al.c)(r).querySelectorAll(".mui-fixed");[].forEach.call(t,(t=>{n.push({value:t.style.paddingRight,property:"padding-right",el:t}),t.style.paddingRight="".concat(sd(t)+e,"px")}))}let e;if(r.parentNode instanceof DocumentFragment)e=(0,al.c)(r).body;else{const t=r.parentElement,n=(0,id.c)(r);e="HTML"===(null==t?void 0:t.nodeName)&&"scroll"===n.getComputedStyle(t).overflowY?t:r}n.push({value:e.style.overflow,property:"overflow",el:e},{value:e.style.overflowX,property:"overflow-x",el:e},{value:e.style.overflowY,property:"overflow-y",el:e}),e.style.overflow="hidden"}return()=>{n.forEach((e=>{let{value:t,el:n,property:r}=e;t?n.style.setProperty(r,t):n.style.removeProperty(r)}))}}const ud=["input","select","textarea","a[href]","button","[tabindex]","audio[controls]","video[controls]",'[contenteditable]:not([contenteditable="false"])'].join(",");function dd(e){const t=[],n=[];return Array.from(e.querySelectorAll(ud)).forEach(((e,r)=>{const i=function(e){const t=parseInt(e.getAttribute("tabindex"),10);return Number.isNaN(t)?"true"===e.contentEditable||("AUDIO"===e.nodeName||"VIDEO"===e.nodeName||"DETAILS"===e.nodeName)&&null===e.getAttribute("tabindex")?0:e.tabIndex:t}(e);-1!==i&&function(e){return!(e.disabled||"INPUT"===e.tagName&&"hidden"===e.type||function(e){if("INPUT"!==e.tagName||"radio"!==e.type)return!1;if(!e.name)return!1;const t=t=>e.ownerDocument.querySelector('input[type="radio"]'.concat(t));let n=t('[name="'.concat(e.name,'"]:checked'));return n||(n=t('[name="'.concat(e.name,'"]'))),n!==e}(e))}(e)&&(0===i?t.push(e):n.push({documentOrder:r,tabIndex:i,node:e}))})),n.sort(((e,t)=>e.tabIndex===t.tabIndex?e.documentOrder-t.documentOrder:e.tabIndex-t.tabIndex)).map((e=>e.node)).concat(t)}function hd(){return!0}const pd=function(e){const{children:t,disableAutoFocus:r=!1,disableEnforceFocus:i=!1,disableRestoreFocus:o=!1,getTabbable:s=dd,isEnabled:a=hd,open:l}=e,c=n.useRef(),u=n.useRef(null),d=n.useRef(null),h=n.useRef(null),p=n.useRef(null),f=n.useRef(!1),g=n.useRef(null),m=(0,ol.c)(t.ref,g),y=n.useRef(null);n.useEffect((()=>{l&&g.current&&(f.current=!r)}),[r,l]),n.useEffect((()=>{if(!l||!g.current)return;const e=(0,al.c)(g.current);return g.current.contains(e.activeElement)||(g.current.hasAttribute("tabIndex")||g.current.setAttribute("tabIndex",-1),f.current&&g.current.focus()),()=>{o||(h.current&&h.current.focus&&(c.current=!0,h.current.focus()),h.current=null)}}),[l]),n.useEffect((()=>{if(!l||!g.current)return;const e=(0,al.c)(g.current),t=t=>{const{current:n}=g;if(null!==n)if(e.hasFocus()&&!i&&a()&&!c.current){if(!n.contains(e.activeElement)){if(t&&p.current!==t.target||e.activeElement!==p.current)p.current=null;else if(null!==p.current)return;if(!f.current)return;let i=[];if(e.activeElement!==u.current&&e.activeElement!==d.current||(i=s(g.current)),i.length>0){var r,o;const e=Boolean((null==(r=y.current)?void 0:r.shiftKey)&&"Tab"===(null==(o=y.current)?void 0:o.key)),t=i[0],n=i[i.length-1];e?n.focus():t.focus()}else n.focus()}}else c.current=!1},n=t=>{y.current=t,!i&&a()&&"Tab"===t.key&&e.activeElement===g.current&&t.shiftKey&&(c.current=!0,d.current.focus())};e.addEventListener("focusin",t),e.addEventListener("keydown",n,!0);const r=setInterval((()=>{"BODY"===e.activeElement.tagName&&t()}),50);return()=>{clearInterval(r),e.removeEventListener("focusin",t),e.removeEventListener("keydown",n,!0)}}),[r,i,o,a,l,s]);const v=e=>{null===h.current&&(h.current=e.relatedTarget),f.current=!0};return(0,Ae.jsxs)(n.Fragment,{children:[(0,Ae.jsx)("div",{tabIndex:l?0:-1,onFocus:v,ref:u,"data-testid":"sentinelStart"}),n.cloneElement(t,{ref:m,onFocus:e=>{null===h.current&&(h.current=e.relatedTarget),f.current=!0,p.current=e.target;const n=t.props.onFocus;n&&n(e)}}),(0,Ae.jsx)("div",{tabIndex:l?0:-1,onFocus:v,ref:d,"data-testid":"sentinelEnd"})]})};function fd(e){return(0,hs.c)("MuiModal",e)}(0,ds.c)("MuiModal",["root","hidden"]);const gd=["children","classes","closeAfterTransition","component","container","disableAutoFocus","disableEnforceFocus","disableEscapeKeyDown","disablePortal","disableRestoreFocus","disableScrollLock","hideBackdrop","keepMounted","manager","onBackdropClick","onClose","onKeyDown","open","onTransitionEnter","onTransitionExited","slotProps","slots"];const md=new class{constructor(){this.containers=void 0,this.modals=void 0,this.modals=[],this.containers=[]}add(e,t){let n=this.modals.indexOf(e);if(-1!==n)return n;n=this.modals.length,this.modals.push(e),e.modalRef&&od(e.modalRef,!1);const r=function(e){const t=[];return[].forEach.call(e.children,(e=>{"true"===e.getAttribute("aria-hidden")&&t.push(e)})),t}(t);ad(t,e.mount,e.modalRef,r,!0);const i=ld(this.containers,(e=>e.container===t));return-1!==i?(this.containers[i].modals.push(e),n):(this.containers.push({modals:[e],container:t,restore:null,hiddenSiblings:r}),n)}mount(e,t){const n=ld(this.containers,(t=>-1!==t.modals.indexOf(e))),r=this.containers[n];r.restore||(r.restore=cd(r,t))}remove(e){let t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];const n=this.modals.indexOf(e);if(-1===n)return n;const r=ld(this.containers,(t=>-1!==t.modals.indexOf(e))),i=this.containers[r];if(i.modals.splice(i.modals.indexOf(e),1),this.modals.splice(n,1),0===i.modals.length)i.restore&&i.restore(),e.modalRef&&od(e.modalRef,t),ad(i.container,e.mount,e.modalRef,i.hiddenSiblings,!1),this.containers.splice(r,1);else{const e=i.modals[i.modals.length-1];e.modalRef&&od(e.modalRef,!1)}return n}isTopModal(e){return this.modals.length>0&&this.modals[this.modals.length-1]===e}},yd=n.forwardRef((function(e,t){var r,i;const{children:o,classes:s,closeAfterTransition:a=!1,component:l,container:c,disableAutoFocus:u=!1,disableEnforceFocus:h=!1,disableEscapeKeyDown:p=!1,disablePortal:f=!1,disableRestoreFocus:g=!1,disableScrollLock:m=!1,hideBackdrop:y=!1,keepMounted:v=!1,manager:_=md,onBackdropClick:b,onClose:x,onKeyDown:S,open:w,onTransitionEnter:E,onTransitionExited:P,slotProps:C={},slots:A={}}=e,k=(0,Tt.c)(e,gd),[j,I]=n.useState(!w),G=n.useRef({}),T=n.useRef(null),M=n.useRef(null),O=(0,ol.c)(M,t),R=function(e){return!!e.children&&e.children.props.hasOwnProperty("in")}(e),D=null==(r=e["aria-hidden"])||r,N=()=>(G.current.modalRef=M.current,G.current.mountNode=T.current,G.current),L=()=>{_.mount(N(),{disableScrollLock:m}),M.current.scrollTop=0},V=(0,nd.c)((()=>{const e=function(e){return"function"===typeof e?e():e}(c)||(0,al.c)(T.current).body;_.add(N(),e),M.current&&L()})),F=n.useCallback((()=>_.isTopModal(N())),[_]),z=(0,nd.c)((e=>{T.current=e,e&&(w&&F()?L():od(M.current,D))})),B=n.useCallback((()=>{_.remove(N(),D)}),[_,D]);n.useEffect((()=>()=>{B()}),[B]),n.useEffect((()=>{w?V():R&&a||B()}),[w,B,R,a,V]);const U=(0,d.c)({},e,{classes:s,closeAfterTransition:a,disableAutoFocus:u,disableEnforceFocus:h,disableEscapeKeyDown:p,disablePortal:f,disableRestoreFocus:g,disableScrollLock:m,exited:j,hideBackdrop:y,keepMounted:v}),W=(e=>{const{open:t,exited:n,classes:r}=e,i={root:["root",!t&&n&&"hidden"]};return(0,ls.c)(i,fd,r)})(U),H=()=>{I(!1),E&&E()},q=()=>{I(!0),P&&P(),a&&B()},X={};void 0===o.props.tabIndex&&(X.tabIndex="-1"),R&&(X.onEnter=(0,rd.c)(H,o.props.onEnter),X.onExited=(0,rd.c)(q,o.props.onExited));const Y=null!=(i=null!=l?l:A.root)?i:"div",K=Nc({elementType:Y,externalSlotProps:C.root,externalForwardedProps:k,additionalProps:{ref:O,role:"presentation",onKeyDown:e=>{S&&S(e),"Escape"===e.key&&F()&&(p||(e.stopPropagation(),x&&x(e,"escapeKeyDown")))}},className:W.root,ownerState:U}),Z=A.backdrop,$=Nc({elementType:Z,externalSlotProps:C.backdrop,additionalProps:{"aria-hidden":!0,onClick:e=>{e.target===e.currentTarget&&(b&&b(e),x&&x(e,"backdropClick"))},open:w},className:W.backdrop,ownerState:U});return v||w||R&&!j?(0,Ae.jsx)(Gc,{ref:z,container:c,disablePortal:f,children:(0,Ae.jsxs)(Y,(0,d.c)({},K,{children:[!y&&Z?(0,Ae.jsx)(Z,(0,d.c)({},$)):null,(0,Ae.jsx)(pd,{disableEnforceFocus:h,disableAutoFocus:u,disableRestoreFocus:g,isEnabled:F,open:w,children:n.cloneElement(o,X)})]}))}):null})),vd=yd,_d=["addEndListener","appear","children","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"],bd={entering:{opacity:1},entered:{opacity:1}},xd=n.forwardRef((function(e,t){const r=Go(),i={enter:r.transitions.duration.enteringScreen,exit:r.transitions.duration.leavingScreen},{addEndListener:o,appear:s=!0,children:a,easing:l,in:c,onEnter:u,onEntered:h,onEntering:p,onExit:f,onExited:g,onExiting:m,style:y,timeout:v=i,TransitionComponent:_=Za}=e,b=(0,Tt.c)(e,_d),x=n.useRef(null),S=(0,Cs.c)(x,a.ref,t),w=e=>t=>{if(e){const n=x.current;void 0===t?e(n):e(n,t)}},E=w(p),P=w(((e,t)=>{$a(e);const n=Ja({style:y,timeout:v,easing:l},{mode:"enter"});e.style.webkitTransition=r.transitions.create("opacity",n),e.style.transition=r.transitions.create("opacity",n),u&&u(e,t)})),C=w(h),A=w(m),k=w((e=>{const t=Ja({style:y,timeout:v,easing:l},{mode:"exit"});e.style.webkitTransition=r.transitions.create("opacity",t),e.style.transition=r.transitions.create("opacity",t),f&&f(e)})),j=w(g);return(0,Ae.jsx)(_,(0,d.c)({appear:s,in:c,nodeRef:x,onEnter:P,onEntered:C,onEntering:E,onExit:k,onExited:j,onExiting:A,addEndListener:e=>{o&&o(x.current,e)},timeout:v},b,{children:(e,t)=>n.cloneElement(a,(0,d.c)({style:(0,d.c)({opacity:0,visibility:"exited"!==e||c?void 0:"hidden"},bd[e],y,a.props.style),ref:S},t))}))})),Sd=xd;function wd(e){return(0,hs.c)("MuiBackdrop",e)}(0,ds.c)("MuiBackdrop",["root","invisible"]);const Ed=["children","component","components","componentsProps","className","invisible","open","slotProps","slots","transitionDuration","TransitionComponent"],Pd=(0,cs.cp)("div",{name:"MuiBackdrop",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.invisible&&t.invisible]}})((e=>{let{ownerState:t}=e;return(0,d.c)({position:"fixed",display:"flex",alignItems:"center",justifyContent:"center",right:0,bottom:0,top:0,left:0,backgroundColor:"rgba(0, 0, 0, 0.5)",WebkitTapHighlightColor:"transparent"},t.invisible&&{backgroundColor:"transparent"})})),Cd=n.forwardRef((function(e,t){var n,r,i;const o=(0,Oe.c)({props:e,name:"MuiBackdrop"}),{children:s,component:a="div",components:l={},componentsProps:c={},className:u,invisible:h=!1,open:p,slotProps:f={},slots:g={},transitionDuration:m,TransitionComponent:y=Sd}=o,v=(0,Tt.c)(o,Ed),_=(0,d.c)({},o,{component:a,invisible:h}),b=(e=>{const{classes:t,invisible:n}=e,r={root:["root",n&&"invisible"]};return(0,ls.c)(r,wd,t)})(_),x=null!=(n=f.root)?n:c.root;return(0,Ae.jsx)(y,(0,d.c)({in:p,timeout:m},v,{children:(0,Ae.jsx)(Pd,(0,d.c)({"aria-hidden":!0},x,{as:null!=(r=null!=(i=g.root)?i:l.Root)?r:a,className:(0,ts.c)(b.root,u,null==x?void 0:x.className),ownerState:(0,d.c)({},_,null==x?void 0:x.ownerState),classes:b,ref:t,children:s}))}))})),Ad=Cd,kd=["BackdropComponent","BackdropProps","closeAfterTransition","children","component","components","componentsProps","disableAutoFocus","disableEnforceFocus","disableEscapeKeyDown","disablePortal","disableRestoreFocus","disableScrollLock","hideBackdrop","keepMounted","slotProps","slots","theme"],jd=(0,cs.cp)("div",{name:"MuiModal",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,!n.open&&n.exited&&t.hidden]}})((e=>{let{theme:t,ownerState:n}=e;return(0,d.c)({position:"fixed",zIndex:(t.vars||t).zIndex.modal,right:0,bottom:0,top:0,left:0},!n.open&&n.exited&&{visibility:"hidden"})})),Id=(0,cs.cp)(Ad,{name:"MuiModal",slot:"Backdrop",overridesResolver:(e,t)=>t.backdrop})({zIndex:-1}),Gd=n.forwardRef((function(e,t){var r,i,o,s,a,l;const c=(0,Oe.c)({name:"MuiModal",props:e}),{BackdropComponent:u=Id,BackdropProps:h,closeAfterTransition:p=!1,children:f,component:g,components:m={},componentsProps:y={},disableAutoFocus:v=!1,disableEnforceFocus:_=!1,disableEscapeKeyDown:b=!1,disablePortal:x=!1,disableRestoreFocus:S=!1,disableScrollLock:w=!1,hideBackdrop:E=!1,keepMounted:P=!1,slotProps:C,slots:A,theme:k}=c,j=(0,Tt.c)(c,kd),[I,G]=n.useState(!0),T={closeAfterTransition:p,disableAutoFocus:v,disableEnforceFocus:_,disableEscapeKeyDown:b,disablePortal:x,disableRestoreFocus:S,disableScrollLock:w,hideBackdrop:E,keepMounted:P},M=(0,d.c)({},c,T,{exited:I}),O=(e=>e.classes)(M),R=null!=(r=null!=(i=null==A?void 0:A.root)?i:m.Root)?r:jd,D=null!=(o=null!=(s=null==A?void 0:A.backdrop)?s:m.Backdrop)?o:u,N=null!=(a=null==C?void 0:C.root)?a:y.root,L=null!=(l=null==C?void 0:C.backdrop)?l:y.backdrop;return(0,Ae.jsx)(vd,(0,d.c)({slots:{root:R,backdrop:D},slotProps:{root:()=>(0,d.c)({},Rc(N,M),!Va(R)&&{as:g,theme:k}),backdrop:()=>(0,d.c)({},h,Rc(L,M))},onTransitionEnter:()=>G(!1),onTransitionExited:()=>G(!0),ref:t},j,{classes:O},T,{children:f}))})),Td=Gd;function Md(e){return(0,hs.c)("MuiPopover",e)}(0,ds.c)("MuiPopover",["root","paper"]);const Od=["onEntering"],Rd=["action","anchorEl","anchorOrigin","anchorPosition","anchorReference","children","className","container","elevation","marginThreshold","open","PaperProps","transformOrigin","TransitionComponent","transitionDuration","TransitionProps"];function Dd(e,t){let n=0;return"number"===typeof t?n=t:"center"===t?n=e.height/2:"bottom"===t&&(n=e.height),n}function Nd(e,t){let n=0;return"number"===typeof t?n=t:"center"===t?n=e.width/2:"right"===t&&(n=e.width),n}function Ld(e){return[e.horizontal,e.vertical].map((e=>"number"===typeof e?"".concat(e,"px"):e)).join(" ")}function Vd(e){return"function"===typeof e?e():e}const Fd=(0,cs.cp)(Td,{name:"MuiPopover",slot:"Root",overridesResolver:(e,t)=>t.root})({}),zd=(0,cs.cp)(Qu,{name:"MuiPopover",slot:"Paper",overridesResolver:(e,t)=>t.paper})({position:"absolute",overflowY:"auto",overflowX:"hidden",minWidth:16,minHeight:16,maxWidth:"calc(100% - 32px)",maxHeight:"calc(100% - 32px)",outline:0}),Bd=n.forwardRef((function(e,t){const r=(0,Oe.c)({props:e,name:"MuiPopover"}),{action:i,anchorEl:o,anchorOrigin:s={vertical:"top",horizontal:"left"},anchorPosition:a,anchorReference:l="anchorEl",children:c,className:u,container:h,elevation:p=8,marginThreshold:f=16,open:g,PaperProps:m={},transformOrigin:y={vertical:"top",horizontal:"left"},TransitionComponent:v=il,transitionDuration:_="auto",TransitionProps:{onEntering:b}={}}=r,x=(0,Tt.c)(r.TransitionProps,Od),S=(0,Tt.c)(r,Rd),w=n.useRef(),E=(0,Cs.c)(w,m.ref),P=(0,d.c)({},r,{anchorOrigin:s,anchorReference:l,elevation:p,marginThreshold:f,PaperProps:m,transformOrigin:y,TransitionComponent:v,transitionDuration:_,TransitionProps:x}),C=(e=>{const{classes:t}=e;return(0,ls.c)({root:["root"],paper:["paper"]},Md,t)})(P),A=n.useCallback((()=>{if("anchorPosition"===l)return a;const e=Vd(o),t=(e&&1===e.nodeType?e:(0,Tu.c)(w.current).body).getBoundingClientRect();return{top:t.top+Dd(t,s.vertical),left:t.left+Nd(t,s.horizontal)}}),[o,s.horizontal,s.vertical,a,l]),k=n.useCallback((e=>({vertical:Dd(e,y.vertical),horizontal:Nd(e,y.horizontal)})),[y.horizontal,y.vertical]),j=n.useCallback((e=>{const t={width:e.offsetWidth,height:e.offsetHeight},n=k(t);if("none"===l)return{top:null,left:null,transformOrigin:Ld(n)};const r=A();let i=r.top-n.vertical,s=r.left-n.horizontal;const a=i+t.height,c=s+t.width,u=(0,td.c)(Vd(o)),d=u.innerHeight-f,h=u.innerWidth-f;if(i<f){const e=i-f;i-=e,n.vertical+=e}else if(a>d){const e=a-d;i-=e,n.vertical+=e}if(s<f){const e=s-f;s-=e,n.horizontal+=e}else if(c>h){const e=c-h;s-=e,n.horizontal+=e}return{top:"".concat(Math.round(i),"px"),left:"".concat(Math.round(s),"px"),transformOrigin:Ld(n)}}),[o,l,A,k,f]),[I,G]=n.useState(g),T=n.useCallback((()=>{const e=w.current;if(!e)return;const t=j(e);null!==t.top&&(e.style.top=t.top),null!==t.left&&(e.style.left=t.left),e.style.transformOrigin=t.transformOrigin,G(!0)}),[j]);n.useEffect((()=>{g&&T()})),n.useImperativeHandle(i,(()=>g?{updatePosition:()=>{T()}}:null),[g,T]),n.useEffect((()=>{if(!g)return;const e=(0,ed.c)((()=>{T()})),t=(0,td.c)(o);return t.addEventListener("resize",e),()=>{e.clear(),t.removeEventListener("resize",e)}}),[o,g,T]);let M=_;"auto"!==_||v.muiSupportAuto||(M=void 0);const O=h||(o?(0,Tu.c)(Vd(o)).body:void 0);return(0,Ae.jsx)(Fd,(0,d.c)({BackdropProps:{invisible:!0},className:(0,ts.c)(C.root,u),container:O,open:g,ref:t,ownerState:P},S,{children:(0,Ae.jsx)(v,(0,d.c)({appear:!0,in:g,onEntering:(e,t)=>{b&&b(e,t),T()},onExited:()=>{G(!1)},timeout:M},x,{children:(0,Ae.jsx)(zd,(0,d.c)({elevation:p},m,{ref:E,className:(0,ts.c)(C.paper,m.className)},I?void 0:{style:(0,d.c)({},m.style,{opacity:0})},{ownerState:P,children:c}))}))}))})),Ud=Bd;function Wd(e){return(0,hs.c)("MuiMenu",e)}(0,ds.c)("MuiMenu",["root","paper","list"]);const Hd=["onEntering"],qd=["autoFocus","children","disableAutoFocusItem","MenuListProps","onClose","open","PaperProps","PopoverClasses","transitionDuration","TransitionProps","variant"],Xd={vertical:"top",horizontal:"right"},Yd={vertical:"top",horizontal:"left"},Kd=(0,cs.cp)(Ud,{shouldForwardProp:e=>(0,cs.CU)(e)||"classes"===e,name:"MuiMenu",slot:"Root",overridesResolver:(e,t)=>t.root})({}),Zd=(0,cs.cp)(Qu,{name:"MuiMenu",slot:"Paper",overridesResolver:(e,t)=>t.paper})({maxHeight:"calc(100% - 96px)",WebkitOverflowScrolling:"touch"}),$d=(0,cs.cp)(Yu,{name:"MuiMenu",slot:"List",overridesResolver:(e,t)=>t.list})({outline:0}),Jd=n.forwardRef((function(e,t){const r=(0,Oe.c)({props:e,name:"MuiMenu"}),{autoFocus:i=!0,children:o,disableAutoFocusItem:s=!1,MenuListProps:a={},onClose:l,open:c,PaperProps:u={},PopoverClasses:h,transitionDuration:p="auto",TransitionProps:{onEntering:f}={},variant:g="selectedMenu"}=r,m=(0,Tt.c)(r.TransitionProps,Hd),y=(0,Tt.c)(r,qd),v=Go(),_="rtl"===v.direction,b=(0,d.c)({},r,{autoFocus:i,disableAutoFocusItem:s,MenuListProps:a,onEntering:f,PaperProps:u,transitionDuration:p,TransitionProps:m,variant:g}),x=(e=>{const{classes:t}=e;return(0,ls.c)({root:["root"],paper:["paper"],list:["list"]},Wd,t)})(b),S=i&&!s&&c,w=n.useRef(null);let E=-1;return n.Children.map(o,((e,t)=>{n.isValidElement(e)&&(e.props.disabled||("selectedMenu"===g&&e.props.selected||-1===E)&&(E=t))})),(0,Ae.jsx)(Kd,(0,d.c)({onClose:l,anchorOrigin:{vertical:"bottom",horizontal:_?"right":"left"},transformOrigin:_?Xd:Yd,PaperProps:(0,d.c)({component:Zd},u,{classes:(0,d.c)({},u.classes,{root:x.paper})}),className:x.root,open:c,ref:t,transitionDuration:p,TransitionProps:(0,d.c)({onEntering:(e,t)=>{w.current&&w.current.adjustStyleForScrollbar(e,v),f&&f(e,t)}},m),ownerState:b},y,{classes:h,children:(0,Ae.jsx)($d,(0,d.c)({onKeyDown:e=>{"Tab"===e.key&&(e.preventDefault(),l&&l(e,"tabKeyDown"))},actions:w,autoFocus:i&&(-1===E||s),autoFocusItem:S,variant:g},a,{className:(0,ts.c)(x.list,a.className),children:o}))}))})),Qd=Jd;function eh(e){return(0,hs.c)("MuiDivider",e)}const th=(0,ds.c)("MuiDivider",["root","absolute","fullWidth","inset","middle","flexItem","light","vertical","withChildren","withChildrenVertical","textAlignRight","textAlignLeft","wrapper","wrapperVertical"]);function nh(e){return(0,hs.c)("MuiListItemIcon",e)}const rh=(0,ds.c)("MuiListItemIcon",["root","alignItemsFlexStart"]);function ih(e){return(0,hs.c)("MuiListItemText",e)}const oh=(0,ds.c)("MuiListItemText",["root","multiline","dense","inset","primary","secondary"]);function sh(e){return(0,hs.c)("MuiMenuItem",e)}const ah=(0,ds.c)("MuiMenuItem",["root","focusVisible","dense","disabled","divider","gutters","selected"]),lh=["autoFocus","component","dense","divider","disableGutters","focusVisibleClassName","role","tabIndex","className"],ch=(0,cs.cp)(da,{shouldForwardProp:e=>(0,cs.CU)(e)||"classes"===e,name:"MuiMenuItem",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.dense&&t.dense,n.divider&&t.divider,!n.disableGutters&&t.gutters]}})((e=>{let{theme:t,ownerState:n}=e;return(0,d.c)({},t.typography.body1,{display:"flex",justifyContent:"flex-start",alignItems:"center",position:"relative",textDecoration:"none",minHeight:48,paddingTop:6,paddingBottom:6,boxSizing:"border-box",whiteSpace:"nowrap"},!n.disableGutters&&{paddingLeft:16,paddingRight:16},n.divider&&{borderBottom:"1px solid ".concat((t.vars||t).palette.divider),backgroundClip:"padding-box"},{"&:hover":{textDecoration:"none",backgroundColor:(t.vars||t).palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}},["&.".concat(ah.selected)]:{backgroundColor:t.vars?"rgba(".concat(t.vars.palette.primary.mainChannel," / ").concat(t.vars.palette.action.selectedOpacity,")"):(0,Ps.W4)(t.palette.primary.main,t.palette.action.selectedOpacity),["&.".concat(ah.focusVisible)]:{backgroundColor:t.vars?"rgba(".concat(t.vars.palette.primary.mainChannel," / calc(").concat(t.vars.palette.action.selectedOpacity," + ").concat(t.vars.palette.action.focusOpacity,"))"):(0,Ps.W4)(t.palette.primary.main,t.palette.action.selectedOpacity+t.palette.action.focusOpacity)}},["&.".concat(ah.selected,":hover")]:{backgroundColor:t.vars?"rgba(".concat(t.vars.palette.primary.mainChannel," / calc(").concat(t.vars.palette.action.selectedOpacity," + ").concat(t.vars.palette.action.hoverOpacity,"))"):(0,Ps.W4)(t.palette.primary.main,t.palette.action.selectedOpacity+t.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:t.vars?"rgba(".concat(t.vars.palette.primary.mainChannel," / ").concat(t.vars.palette.action.selectedOpacity,")"):(0,Ps.W4)(t.palette.primary.main,t.palette.action.selectedOpacity)}},["&.".concat(ah.focusVisible)]:{backgroundColor:(t.vars||t).palette.action.focus},["&.".concat(ah.disabled)]:{opacity:(t.vars||t).palette.action.disabledOpacity},["& + .".concat(th.root)]:{marginTop:t.spacing(1),marginBottom:t.spacing(1)},["& + .".concat(th.inset)]:{marginLeft:52},["& .".concat(oh.root)]:{marginTop:0,marginBottom:0},["& .".concat(oh.inset)]:{paddingLeft:36},["& .".concat(rh.root)]:{minWidth:36}},!n.dense&&{[t.breakpoints.up("sm")]:{minHeight:"auto"}},n.dense&&(0,d.c)({minHeight:32,paddingTop:4,paddingBottom:4},t.typography.body2,{["& .".concat(rh.root," svg")]:{fontSize:"1.25rem"}}))})),uh=n.forwardRef((function(e,t){const r=(0,Oe.c)({props:e,name:"MuiMenuItem"}),{autoFocus:i=!1,component:o="li",dense:s=!1,divider:a=!1,disableGutters:l=!1,focusVisibleClassName:c,role:u="menuitem",tabIndex:h,className:p}=r,f=(0,Tt.c)(r,lh),g=n.useContext(Mu),m=n.useMemo((()=>({dense:s||g.dense||!1,disableGutters:l})),[g.dense,s,l]),y=n.useRef(null);(0,zu.c)((()=>{i&&y.current&&y.current.focus()}),[i]);const v=(0,d.c)({},r,{dense:m.dense,divider:a,disableGutters:l}),_=(e=>{const{disabled:t,dense:n,divider:r,disableGutters:i,selected:o,classes:s}=e,a={root:["root",n&&"dense",t&&"disabled",!i&&"gutters",r&&"divider",o&&"selected"]},l=(0,ls.c)(a,sh,s);return(0,d.c)({},s,l)})(r),b=(0,Cs.c)(y,t);let x;return r.disabled||(x=void 0!==h?h:-1),(0,Ae.jsx)(Mu.Provider,{value:m,children:(0,Ae.jsx)(ch,(0,d.c)({ref:b,role:u,tabIndex:x,component:o,focusVisibleClassName:(0,ts.c)(_.focusVisible,c),className:(0,ts.c)(_.root,p)},f,{ownerState:v,classes:_}))})})),dh=uh;var hh=__webpack_require__(59656);function ph(e){return(0,hs.c)("MuiCollapse",e)}(0,ds.c)("MuiCollapse",["root","horizontal","vertical","entered","hidden","wrapper","wrapperInner"]);const fh=["addEndListener","children","className","collapsedSize","component","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","orientation","style","timeout","TransitionComponent"],gh=(0,cs.cp)("div",{name:"MuiCollapse",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.orientation],"entered"===n.state&&t.entered,"exited"===n.state&&!n.in&&"0px"===n.collapsedSize&&t.hidden]}})((e=>{let{theme:t,ownerState:n}=e;return(0,d.c)({height:0,overflow:"hidden",transition:t.transitions.create("height")},"horizontal"===n.orientation&&{height:"auto",width:0,transition:t.transitions.create("width")},"entered"===n.state&&(0,d.c)({height:"auto",overflow:"visible"},"horizontal"===n.orientation&&{width:"auto"}),"exited"===n.state&&!n.in&&"0px"===n.collapsedSize&&{visibility:"hidden"})})),mh=(0,cs.cp)("div",{name:"MuiCollapse",slot:"Wrapper",overridesResolver:(e,t)=>t.wrapper})((e=>{let{ownerState:t}=e;return(0,d.c)({display:"flex",width:"100%"},"horizontal"===t.orientation&&{width:"auto",height:"100%"})})),yh=(0,cs.cp)("div",{name:"MuiCollapse",slot:"WrapperInner",overridesResolver:(e,t)=>t.wrapperInner})((e=>{let{ownerState:t}=e;return(0,d.c)({width:"100%"},"horizontal"===t.orientation&&{width:"auto",height:"100%"})})),vh=n.forwardRef((function(e,t){const r=(0,Oe.c)({props:e,name:"MuiCollapse"}),{addEndListener:i,children:o,className:s,collapsedSize:a="0px",component:l,easing:c,in:u,onEnter:h,onEntered:p,onEntering:f,onExit:g,onExited:m,onExiting:y,orientation:v="vertical",style:_,timeout:b=hh.rV.standard,TransitionComponent:x=Za}=r,S=(0,Tt.c)(r,fh),w=(0,d.c)({},r,{orientation:v,collapsedSize:a}),E=(e=>{const{orientation:t,classes:n}=e,r={root:["root","".concat(t)],entered:["entered"],hidden:["hidden"],wrapper:["wrapper","".concat(t)],wrapperInner:["wrapperInner","".concat(t)]};return(0,ls.c)(r,ph,n)})(w),P=Go(),C=n.useRef(),A=n.useRef(null),k=n.useRef(),j="number"===typeof a?"".concat(a,"px"):a,I="horizontal"===v,G=I?"width":"height";n.useEffect((()=>()=>{clearTimeout(C.current)}),[]);const T=n.useRef(null),M=(0,Cs.c)(t,T),O=e=>t=>{if(e){const n=T.current;void 0===t?e(n):e(n,t)}},R=()=>A.current?A.current[I?"clientWidth":"clientHeight"]:0,D=O(((e,t)=>{A.current&&I&&(A.current.style.position="absolute"),e.style[G]=j,h&&h(e,t)})),N=O(((e,t)=>{const n=R();A.current&&I&&(A.current.style.position="");const{duration:r,easing:i}=Ja({style:_,timeout:b,easing:c},{mode:"enter"});if("auto"===b){const t=P.transitions.getAutoHeightDuration(n);e.style.transitionDuration="".concat(t,"ms"),k.current=t}else e.style.transitionDuration="string"===typeof r?r:"".concat(r,"ms");e.style[G]="".concat(n,"px"),e.style.transitionTimingFunction=i,f&&f(e,t)})),L=O(((e,t)=>{e.style[G]="auto",p&&p(e,t)})),V=O((e=>{e.style[G]="".concat(R(),"px"),g&&g(e)})),F=O(m),z=O((e=>{const t=R(),{duration:n,easing:r}=Ja({style:_,timeout:b,easing:c},{mode:"exit"});if("auto"===b){const n=P.transitions.getAutoHeightDuration(t);e.style.transitionDuration="".concat(n,"ms"),k.current=n}else e.style.transitionDuration="string"===typeof n?n:"".concat(n,"ms");e.style[G]=j,e.style.transitionTimingFunction=r,y&&y(e)}));return(0,Ae.jsx)(x,(0,d.c)({in:u,onEnter:D,onEntered:L,onEntering:N,onExit:V,onExited:F,onExiting:z,addEndListener:e=>{"auto"===b&&(C.current=setTimeout(e,k.current||0)),i&&i(T.current,e)},nodeRef:T,timeout:"auto"===b?null:b},S,{children:(e,t)=>(0,Ae.jsx)(gh,(0,d.c)({as:l,className:(0,ts.c)(E.root,s,{entered:E.entered,exited:!u&&"0px"===j&&E.hidden}[e]),style:(0,d.c)({[I?"minWidth":"minHeight"]:j},_),ownerState:(0,d.c)({},w,{state:e}),ref:M},t,{children:(0,Ae.jsx)(mh,{ownerState:(0,d.c)({},w,{state:e}),className:E.wrapper,ref:A,children:(0,Ae.jsx)(yh,{ownerState:(0,d.c)({},w,{state:e}),className:E.wrapperInner,children:o})})}))}))}));vh.muiSupportAuto=!0;const _h=vh;const bh=n.createContext({});function xh(e){return(0,hs.c)("MuiAccordion",e)}const Sh=(0,ds.c)("MuiAccordion",["root","rounded","expanded","disabled","gutters","region"]),wh=["children","className","defaultExpanded","disabled","disableGutters","expanded","onChange","square","TransitionComponent","TransitionProps"],Eh=(0,cs.cp)(Qu,{name:"MuiAccordion",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{["& .".concat(Sh.region)]:t.region},t.root,!n.square&&t.rounded,!n.disableGutters&&t.gutters]}})((e=>{let{theme:t}=e;const n={duration:t.transitions.duration.shortest};return{position:"relative",transition:t.transitions.create(["margin"],n),overflowAnchor:"none","&:before":{position:"absolute",left:0,top:-1,right:0,height:1,content:'""',opacity:1,backgroundColor:(t.vars||t).palette.divider,transition:t.transitions.create(["opacity","background-color"],n)},"&:first-of-type":{"&:before":{display:"none"}},["&.".concat(Sh.expanded)]:{"&:before":{opacity:0},"&:first-of-type":{marginTop:0},"&:last-of-type":{marginBottom:0},"& + &":{"&:before":{display:"none"}}},["&.".concat(Sh.disabled)]:{backgroundColor:(t.vars||t).palette.action.disabledBackground}}}),(e=>{let{theme:t,ownerState:n}=e;return(0,d.c)({},!n.square&&{borderRadius:0,"&:first-of-type":{borderTopLeftRadius:(t.vars||t).shape.borderRadius,borderTopRightRadius:(t.vars||t).shape.borderRadius},"&:last-of-type":{borderBottomLeftRadius:(t.vars||t).shape.borderRadius,borderBottomRightRadius:(t.vars||t).shape.borderRadius,"@supports (-ms-ime-align: auto)":{borderBottomLeftRadius:0,borderBottomRightRadius:0}}},!n.disableGutters&&{["&.".concat(Sh.expanded)]:{margin:"16px 0"}})})),Ph=n.forwardRef((function(e,t){const r=(0,Oe.c)({props:e,name:"MuiAccordion"}),{children:i,className:o,defaultExpanded:s=!1,disabled:a=!1,disableGutters:l=!1,expanded:c,onChange:u,square:h=!1,TransitionComponent:p=_h,TransitionProps:f}=r,g=(0,Tt.c)(r,wh),[m,y]=(0,$c.c)({controlled:c,default:s,name:"Accordion",state:"expanded"}),v=n.useCallback((e=>{y(!m),u&&u(e,!m)}),[m,u,y]),[_,...b]=n.Children.toArray(i),x=n.useMemo((()=>({expanded:m,disabled:a,disableGutters:l,toggle:v})),[m,a,l,v]),S=(0,d.c)({},r,{square:h,disabled:a,disableGutters:l,expanded:m}),w=(e=>{const{classes:t,square:n,expanded:r,disabled:i,disableGutters:o}=e,s={root:["root",!n&&"rounded",r&&"expanded",i&&"disabled",!o&&"gutters"],region:["region"]};return(0,ls.c)(s,xh,t)})(S);return(0,Ae.jsxs)(Eh,(0,d.c)({className:(0,ts.c)(w.root,o),ref:t,ownerState:S,square:h},g,{children:[(0,Ae.jsx)(bh.Provider,{value:x,children:_}),(0,Ae.jsx)(p,(0,d.c)({in:m,timeout:"auto"},f,{children:(0,Ae.jsx)("div",{"aria-labelledby":_.props.id,id:_.props["aria-controls"],role:"region",className:w.region,children:b})}))]}))}));function Ch(e){return(0,hs.c)("MuiAccordionSummary",e)}const Ah=(0,ds.c)("MuiAccordionSummary",["root","expanded","focusVisible","disabled","gutters","contentGutters","content","expandIconWrapper"]),kh=["children","className","expandIcon","focusVisibleClassName","onClick"],jh=(0,cs.cp)(da,{name:"MuiAccordionSummary",slot:"Root",overridesResolver:(e,t)=>t.root})((e=>{let{theme:t,ownerState:n}=e;const r={duration:t.transitions.duration.shortest};return(0,d.c)({display:"flex",minHeight:48,padding:t.spacing(0,2),transition:t.transitions.create(["min-height","background-color"],r),["&.".concat(Ah.focusVisible)]:{backgroundColor:(t.vars||t).palette.action.focus},["&.".concat(Ah.disabled)]:{opacity:(t.vars||t).palette.action.disabledOpacity},["&:hover:not(.".concat(Ah.disabled,")")]:{cursor:"pointer"}},!n.disableGutters&&{["&.".concat(Ah.expanded)]:{minHeight:64}})})),Ih=(0,cs.cp)("div",{name:"MuiAccordionSummary",slot:"Content",overridesResolver:(e,t)=>t.content})((e=>{let{theme:t,ownerState:n}=e;return(0,d.c)({display:"flex",flexGrow:1,margin:"12px 0"},!n.disableGutters&&{transition:t.transitions.create(["margin"],{duration:t.transitions.duration.shortest}),["&.".concat(Ah.expanded)]:{margin:"20px 0"}})})),Gh=(0,cs.cp)("div",{name:"MuiAccordionSummary",slot:"ExpandIconWrapper",overridesResolver:(e,t)=>t.expandIconWrapper})((e=>{let{theme:t}=e;return{display:"flex",color:(t.vars||t).palette.action.active,transform:"rotate(0deg)",transition:t.transitions.create("transform",{duration:t.transitions.duration.shortest}),["&.".concat(Ah.expanded)]:{transform:"rotate(180deg)"}}})),Th=n.forwardRef((function(e,t){const r=(0,Oe.c)({props:e,name:"MuiAccordionSummary"}),{children:i,className:o,expandIcon:s,focusVisibleClassName:a,onClick:l}=r,c=(0,Tt.c)(r,kh),{disabled:u=!1,disableGutters:h,expanded:p,toggle:f}=n.useContext(bh),g=(0,d.c)({},r,{expanded:p,disabled:u,disableGutters:h}),m=(e=>{const{classes:t,expanded:n,disabled:r,disableGutters:i}=e,o={root:["root",n&&"expanded",r&&"disabled",!i&&"gutters"],focusVisible:["focusVisible"],content:["content",n&&"expanded",!i&&"contentGutters"],expandIconWrapper:["expandIconWrapper",n&&"expanded"]};return(0,ls.c)(o,Ch,t)})(g);return(0,Ae.jsxs)(jh,(0,d.c)({focusRipple:!1,disableRipple:!0,disabled:u,component:"div","aria-expanded":p,className:(0,ts.c)(m.root,o),focusVisibleClassName:(0,ts.c)(m.focusVisible,a),onClick:e=>{f&&f(e),l&&l(e)},ref:t,ownerState:g},c,{children:[(0,Ae.jsx)(Ih,{className:m.content,ownerState:g,children:i}),s&&(0,Ae.jsx)(Gh,{className:m.expandIconWrapper,ownerState:g,children:s})]}))}));function Mh(e){return(0,hs.c)("MuiAccordionDetails",e)}(0,ds.c)("MuiAccordionDetails",["root"]);const Oh=["className"],Rh=(0,cs.cp)("div",{name:"MuiAccordionDetails",slot:"Root",overridesResolver:(e,t)=>t.root})((e=>{let{theme:t}=e;return{padding:t.spacing(1,2,2)}})),Dh=n.forwardRef((function(e,t){const n=(0,Oe.c)({props:e,name:"MuiAccordionDetails"}),{className:r}=n,i=(0,Tt.c)(n,Oh),o=n,s=(e=>{const{classes:t}=e;return(0,ls.c)({root:["root"]},Mh,t)})(o);return(0,Ae.jsx)(Rh,(0,d.c)({className:(0,ts.c)(s.root,r),ref:t,ownerState:o},i))}));function Nh(e){return ka({tag:"svg",attr:{viewBox:"0 0 460 512"},child:[{tag:"path",attr:{d:"M220.6 130.3l-67.2 28.2V43.2L98.7 233.5l54.7-24.2v130.3l67.2-209.3zm-83.2-96.7l-1.3 4.7-15.2 52.9C80.6 106.7 52 145.8 52 191.5c0 52.3 34.3 95.9 83.4 105.5v53.6C57.5 340.1 0 272.4 0 191.6c0-80.5 59.8-147.2 137.4-158zm311.4 447.2c-11.2 11.2-23.1 12.3-28.6 10.5-5.4-1.8-27.1-19.9-60.4-44.4-33.3-24.6-33.6-35.7-43-56.7-9.4-20.9-30.4-42.6-57.5-52.4l-9.7-14.7c-24.7 16.9-53 26.9-81.3 28.7l2.1-6.6 15.9-49.5c46.5-11.9 80.9-54 80.9-104.2 0-54.5-38.4-102.1-96-107.1V32.3C254.4 37.4 320 106.8 320 191.6c0 33.6-11.2 64.7-29 90.4l14.6 9.6c9.8 27.1 31.5 48 52.4 57.4s32.2 9.7 56.8 43c24.6 33.2 42.7 54.9 44.5 60.3s.7 17.3-10.5 28.5zm-9.9-17.9c0-4.4-3.6-8-8-8s-8 3.6-8 8 3.6 8 8 8 8-3.6 8-8z"}}]})(e)}function Lh(e){return ka({tag:"svg",attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{d:"M8 256c0 136.966 111.033 248 248 248s248-111.034 248-248S392.966 8 256 8 8 119.033 8 256zm248 184V72c101.705 0 184 82.311 184 184 0 101.705-82.311 184-184 184z"}}]})(e)}function Vh(e){return ka({tag:"svg",attr:{viewBox:"0 0 640 512"},child:[{tag:"path",attr:{d:"M256 336h-.02c0-16.18 1.34-8.73-85.05-181.51-17.65-35.29-68.19-35.36-85.87 0C-2.06 328.75.02 320.33.02 336H0c0 44.18 57.31 80 128 80s128-35.82 128-80zM128 176l72 144H56l72-144zm511.98 160c0-16.18 1.34-8.73-85.05-181.51-17.65-35.29-68.19-35.36-85.87 0-87.12 174.26-85.04 165.84-85.04 181.51H384c0 44.18 57.31 80 128 80s128-35.82 128-80h-.02zM440 320l72-144 72 144H440zm88 128H352V153.25c23.51-10.29 41.16-31.48 46.39-57.25H528c8.84 0 16-7.16 16-16V48c0-8.84-7.16-16-16-16H383.64C369.04 12.68 346.09 0 320 0s-49.04 12.68-63.64 32H112c-8.84 0-16 7.16-16 16v32c0 8.84 7.16 16 16 16h129.61c5.23 25.76 22.87 46.96 46.39 57.25V448H112c-8.84 0-16 7.16-16 16v32c0 8.84 7.16 16 16 16h416c8.84 0 16-7.16 16-16v-32c0-8.84-7.16-16-16-16z"}}]})(e)}function Fh(e){return ka({tag:"svg",attr:{viewBox:"0 0 576 512"},child:[{tag:"path",attr:{d:"M208 0c-29.9 0-54.7 20.5-61.8 48.2-.8 0-1.4-.2-2.2-.2-35.3 0-64 28.7-64 64 0 4.8.6 9.5 1.7 14C52.5 138 32 166.6 32 200c0 12.6 3.2 24.3 8.3 34.9C16.3 248.7 0 274.3 0 304c0 33.3 20.4 61.9 49.4 73.9-.9 4.6-1.4 9.3-1.4 14.1 0 39.8 32.2 72 72 72 4.1 0 8.1-.5 12-1.2 9.6 28.5 36.2 49.2 68 49.2 39.8 0 72-32.2 72-72V64c0-35.3-28.7-64-64-64zm368 304c0-29.7-16.3-55.3-40.3-69.1 5.2-10.6 8.3-22.3 8.3-34.9 0-33.4-20.5-62-49.7-74 1-4.5 1.7-9.2 1.7-14 0-35.3-28.7-64-64-64-.8 0-1.5.2-2.2.2C422.7 20.5 397.9 0 368 0c-35.3 0-64 28.6-64 64v376c0 39.8 32.2 72 72 72 31.8 0 58.4-20.7 68-49.2 3.9.7 7.9 1.2 12 1.2 39.8 0 72-32.2 72-72 0-4.8-.5-9.5-1.4-14.1 29-12 49.4-40.6 49.4-73.9z"}}]})(e)}function zh(e){return ka({tag:"svg",attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{d:"M512 144v288c0 26.5-21.5 48-48 48H48c-26.5 0-48-21.5-48-48V144c0-26.5 21.5-48 48-48h88l12.3-32.9c7-18.7 24.9-31.1 44.9-31.1h125.5c20 0 37.9 12.4 44.9 31.1L376 96h88c26.5 0 48 21.5 48 48zM376 288c0-66.2-53.8-120-120-120s-120 53.8-120 120 53.8 120 120 120 120-53.8 120-120zm-32 0c0 48.5-39.5 88-88 88s-88-39.5-88-88 39.5-88 88-88 88 39.5 88 88z"}}]})(e)}function Bh(e){return ka({tag:"svg",attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{d:"M173.898 439.404l-166.4-166.4c-9.997-9.997-9.997-26.206 0-36.204l36.203-36.204c9.997-9.998 26.207-9.998 36.204 0L192 312.69 432.095 72.596c9.997-9.997 26.207-9.997 36.204 0l36.203 36.204c9.997 9.997 9.997 26.206 0 36.204l-294.4 294.401c-9.998 9.997-26.207 9.997-36.204-.001z"}}]})(e)}function Uh(e){return ka({tag:"svg",attr:{viewBox:"0 0 640 512"},child:[{tag:"path",attr:{d:"M537.6 226.6c4.1-10.7 6.4-22.4 6.4-34.6 0-53-43-96-96-96-19.7 0-38.1 6-53.3 16.2C367 64.2 315.3 32 256 32c-88.4 0-160 71.6-160 160 0 2.7.1 5.4.2 8.1C40.2 219.8 0 273.2 0 336c0 79.5 64.5 144 144 144h368c70.7 0 128-57.3 128-128 0-61.9-44-113.6-102.4-125.4zm-132.9 88.7L299.3 420.7c-6.2 6.2-16.4 6.2-22.6 0L171.3 315.3c-10.1-10.1-2.9-27.3 11.3-27.3H248V176c0-8.8 7.2-16 16-16h48c8.8 0 16 7.2 16 16v112h65.4c14.2 0 21.4 17.2 11.3 27.3z"}}]})(e)}function Wh(e){return ka({tag:"svg",attr:{viewBox:"0 0 640 512"},child:[{tag:"path",attr:{d:"M537.6 226.6c4.1-10.7 6.4-22.4 6.4-34.6 0-53-43-96-96-96-19.7 0-38.1 6-53.3 16.2C367 64.2 315.3 32 256 32c-88.4 0-160 71.6-160 160 0 2.7.1 5.4.2 8.1C40.2 219.8 0 273.2 0 336c0 79.5 64.5 144 144 144h368c70.7 0 128-57.3 128-128 0-61.9-44-113.6-102.4-125.4zM393.4 288H328v112c0 8.8-7.2 16-16 16h-48c-8.8 0-16-7.2-16-16V288h-65.4c-14.3 0-21.4-17.2-11.3-27.3l105.4-105.4c6.2-6.2 16.4-6.2 22.6 0l105.4 105.4c10.1 10.1 2.9 27.3-11.3 27.3z"}}]})(e)}function Hh(e){return ka({tag:"svg",attr:{viewBox:"0 0 576 512"},child:[{tag:"path",attr:{d:"M572.52 241.4C518.29 135.59 410.93 64 288 64S57.68 135.64 3.48 241.41a32.35 32.35 0 0 0 0 29.19C57.71 376.41 165.07 448 288 448s230.32-71.64 284.52-177.41a32.35 32.35 0 0 0 0-29.19zM288 400a144 144 0 1 1 144-144 143.93 143.93 0 0 1-144 144zm0-240a95.31 95.31 0 0 0-25.31 3.79 47.85 47.85 0 0 1-66.9 66.9A95.78 95.78 0 1 0 288 160z"}}]})(e)}function qh(e){return ka({tag:"svg",attr:{viewBox:"0 0 384 512"},child:[{tag:"path",attr:{d:"M224 136V0H24C10.7 0 0 10.7 0 24v464c0 13.3 10.7 24 24 24h336c13.3 0 24-10.7 24-24V160H248c-13.2 0-24-10.8-24-24zm-96 144c0 4.42-3.58 8-8 8h-8c-8.84 0-16 7.16-16 16v32c0 8.84 7.16 16 16 16h8c4.42 0 8 3.58 8 8v16c0 4.42-3.58 8-8 8h-8c-26.51 0-48-21.49-48-48v-32c0-26.51 21.49-48 48-48h8c4.42 0 8 3.58 8 8v16zm44.27 104H160c-4.42 0-8-3.58-8-8v-16c0-4.42 3.58-8 8-8h12.27c5.95 0 10.41-3.5 10.41-6.62 0-1.3-.75-2.66-2.12-3.84l-21.89-18.77c-8.47-7.22-13.33-17.48-13.33-28.14 0-21.3 19.02-38.62 42.41-38.62H200c4.42 0 8 3.58 8 8v16c0 4.42-3.58 8-8 8h-12.27c-5.95 0-10.41 3.5-10.41 6.62 0 1.3.75 2.66 2.12 3.84l21.89 18.77c8.47 7.22 13.33 17.48 13.33 28.14.01 21.29-19 38.62-42.39 38.62zM256 264v20.8c0 20.27 5.7 40.17 16 56.88 10.3-16.7 16-36.61 16-56.88V264c0-4.42 3.58-8 8-8h16c4.42 0 8 3.58 8 8v20.8c0 35.48-12.88 68.89-36.28 94.09-3.02 3.25-7.27 5.11-11.72 5.11s-8.7-1.86-11.72-5.11c-23.4-25.2-36.28-58.61-36.28-94.09V264c0-4.42 3.58-8 8-8h16c4.42 0 8 3.58 8 8zm121-159L279.1 7c-4.5-4.5-10.6-7-17-7H256v128h128v-6.1c0-6.3-2.5-12.4-7-16.9z"}}]})(e)}function Xh(e){return ka({tag:"svg",attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{d:"M349.565 98.783C295.978 98.783 251.721 64 184.348 64c-24.955 0-47.309 4.384-68.045 12.013a55.947 55.947 0 0 0 3.586-23.562C118.117 24.015 94.806 1.206 66.338.048 34.345-1.254 8 24.296 8 56c0 19.026 9.497 35.825 24 45.945V488c0 13.255 10.745 24 24 24h16c13.255 0 24-10.745 24-24v-94.4c28.311-12.064 63.582-22.122 114.435-22.122 53.588 0 97.844 34.783 165.217 34.783 48.169 0 86.667-16.294 122.505-40.858C506.84 359.452 512 349.571 512 339.045v-243.1c0-23.393-24.269-38.87-45.485-29.016-34.338 15.948-76.454 31.854-116.95 31.854z"}}]})(e)}function Yh(e){return ka({tag:"svg",attr:{viewBox:"0 0 640 512"},child:[{tag:"path",attr:{d:"M488 192H336v56c0 39.7-32.3 72-72 72s-72-32.3-72-72V126.4l-64.9 39C107.8 176.9 96 197.8 96 220.2v47.3l-80 46.2C.7 322.5-4.6 342.1 4.3 357.4l80 138.6c8.8 15.3 28.4 20.5 43.7 11.7L231.4 448H368c35.3 0 64-28.7 64-64h16c17.7 0 32-14.3 32-32v-64h8c13.3 0 24-10.7 24-24v-48c0-13.3-10.7-24-24-24zm147.7-37.4L555.7 16C546.9.7 527.3-4.5 512 4.3L408.6 64H306.4c-12 0-23.7 3.4-33.9 9.7L239 94.6c-9.4 5.8-15 16.1-15 27.1V248c0 22.1 17.9 40 40 40s40-17.9 40-40v-88h184c30.9 0 56 25.1 56 56v28.5l80-46.2c15.3-8.9 20.5-28.4 11.7-43.7z"}}]})(e)}function Kh(e){return ka({tag:"svg",attr:{viewBox:"0 0 320 512"},child:[{tag:"path",attr:{d:"M302.189 329.126H196.105l55.831 135.993c3.889 9.428-.555 19.999-9.444 23.999l-49.165 21.427c-9.165 4-19.443-.571-23.332-9.714l-53.053-129.136-86.664 89.138C18.729 472.71 0 463.554 0 447.977V18.299C0 1.899 19.921-6.096 30.277 5.443l284.412 292.542c11.472 11.179 3.007 31.141-12.5 31.141z"}}]})(e)}function Zh(e){return ka({tag:"svg",attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{d:"M497.9 142.1l-46.1 46.1c-4.7 4.7-12.3 4.7-17 0l-111-111c-4.7-4.7-4.7-12.3 0-17l46.1-46.1c18.7-18.7 49.1-18.7 67.9 0l60.1 60.1c18.8 18.7 18.8 49.1 0 67.9zM284.2 99.8L21.6 362.4.4 483.9c-2.9 16.4 11.4 30.6 27.8 27.8l121.5-21.3 262.6-262.6c4.7-4.7 4.7-12.3 0-17l-111-111c-4.8-4.7-12.4-4.7-17.1 0zM124.1 339.9c-5.5-5.5-5.5-14.3 0-19.8l154-154c5.5-5.5 14.3-5.5 19.8 0s5.5 14.3 0 19.8l-154 154c-5.5 5.5-14.3 5.5-19.8 0zM88 424h48v36.3l-64.5 11.3-31.1-31.1L51.7 376H88v48z"}}]})(e)}function $h(e){return ka({tag:"svg",attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{d:"M504 256c0 136.997-111.043 248-248 248S8 392.997 8 256C8 119.083 119.043 8 256 8s248 111.083 248 248zM262.655 90c-54.497 0-89.255 22.957-116.549 63.758-3.536 5.286-2.353 12.415 2.715 16.258l34.699 26.31c5.205 3.947 12.621 3.008 16.665-2.122 17.864-22.658 30.113-35.797 57.303-35.797 20.429 0 45.698 13.148 45.698 32.958 0 14.976-12.363 22.667-32.534 33.976C247.128 238.528 216 254.941 216 296v4c0 6.627 5.373 12 12 12h56c6.627 0 12-5.373 12-12v-1.333c0-28.462 83.186-29.647 83.186-106.667 0-58.002-60.165-102-116.531-102zM256 338c-25.365 0-46 20.635-46 46 0 25.364 20.635 46 46 46s46-20.636 46-46c0-25.365-20.635-46-46-46z"}}]})(e)}function Jh(e){return ka({tag:"svg",attr:{viewBox:"0 0 640 512"},child:[{tag:"path",attr:{d:"M431.98 448.01l-47.97.05V416h-128v32.21l-47.98.05c-8.82.01-15.97 7.16-15.98 15.99l-.05 31.73c-.01 8.85 7.17 16.03 16.02 16.02l223.96-.26c8.82-.01 15.97-7.16 15.98-15.98l.04-31.73c.01-8.85-7.17-16.03-16.02-16.02zM585.2 26.74C582.58 11.31 568.99 0 553.06 0H86.93C71 0 57.41 11.31 54.79 26.74-3.32 369.16.04 348.08.03 352c-.03 17.32 14.29 32 32.6 32h574.74c18.23 0 32.51-14.56 32.59-31.79.02-4.08 3.35 16.95-54.76-325.47zM259.83 64h120.33l9.77 96H250.06l9.77-96zm-75.17 256H71.09L90.1 208h105.97l-11.41 112zm16.29-160H98.24l16.29-96h96.19l-9.77 96zm32.82 160l11.4-112h149.65l11.4 112H233.77zm195.5-256h96.19l16.29 96H439.04l-9.77-96zm26.06 256l-11.4-112H549.9l19.01 112H455.33z"}}]})(e)}function Qh(e){return ka({tag:"svg",attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{d:"M256 160c-52.9 0-96 43.1-96 96s43.1 96 96 96 96-43.1 96-96-43.1-96-96-96zm246.4 80.5l-94.7-47.3 33.5-100.4c4.5-13.6-8.4-26.5-21.9-21.9l-100.4 33.5-47.4-94.8c-6.4-12.8-24.6-12.8-31 0l-47.3 94.7L92.7 70.8c-13.6-4.5-26.5 8.4-21.9 21.9l33.5 100.4-94.7 47.4c-12.8 6.4-12.8 24.6 0 31l94.7 47.3-33.5 100.5c-4.5 13.6 8.4 26.5 21.9 21.9l100.4-33.5 47.3 94.7c6.4 12.8 24.6 12.8 31 0l47.3-94.7 100.4 33.5c13.6 4.5 26.5-8.4 21.9-21.9l-33.5-100.4 94.7-47.3c13-6.5 13-24.7.2-31.1zm-155.9 106c-49.9 49.9-131.1 49.9-181 0-49.9-49.9-49.9-131.1 0-181 49.9-49.9 131.1-49.9 181 0 49.9 49.9 49.9 131.1 0 181z"}}]})(e)}function ep(e){return ka({tag:"svg",attr:{viewBox:"0 0 576 512"},child:[{tag:"path",attr:{d:"M288 32C128.94 32 0 160.94 0 320c0 52.8 14.25 102.26 39.06 144.8 5.61 9.62 16.3 15.2 27.44 15.2h443c11.14 0 21.83-5.58 27.44-15.2C561.75 422.26 576 372.8 576 320c0-159.06-128.94-288-288-288zm0 64c14.71 0 26.58 10.13 30.32 23.65-1.11 2.26-2.64 4.23-3.45 6.67l-9.22 27.67c-5.13 3.49-10.97 6.01-17.64 6.01-17.67 0-32-14.33-32-32S270.33 96 288 96zM96 384c-17.67 0-32-14.33-32-32s14.33-32 32-32 32 14.33 32 32-14.33 32-32 32zm48-160c-17.67 0-32-14.33-32-32s14.33-32 32-32 32 14.33 32 32-14.33 32-32 32zm246.77-72.41l-61.33 184C343.13 347.33 352 364.54 352 384c0 11.72-3.38 22.55-8.88 32H232.88c-5.5-9.45-8.88-20.28-8.88-32 0-33.94 26.5-61.43 59.9-63.59l61.34-184.01c4.17-12.56 17.73-19.45 30.36-15.17 12.57 4.19 19.35 17.79 15.17 30.36zm14.66 57.2l15.52-46.55c3.47-1.29 7.13-2.23 11.05-2.23 17.67 0 32 14.33 32 32s-14.33 32-32 32c-11.38-.01-20.89-6.28-26.57-15.22zM480 384c-17.67 0-32-14.33-32-32s14.33-32 32-32 32 14.33 32 32-14.33 32-32 32z"}}]})(e)}function tp(e){return ka({tag:"svg",attr:{viewBox:"0 0 352 512"},child:[{tag:"path",attr:{d:"M242.72 256l100.07-100.07c12.28-12.28 12.28-32.19 0-44.48l-22.24-22.24c-12.28-12.28-32.19-12.28-44.48 0L176 189.28 75.93 89.21c-12.28-12.28-32.19-12.28-44.48 0L9.21 111.45c-12.28 12.28-12.28 32.19 0 44.48L109.28 256 9.21 356.07c-12.28 12.28-12.28 32.19 0 44.48l22.24 22.24c12.28 12.28 32.2 12.28 44.48 0L176 322.72l100.07 100.07c12.28 12.28 32.2 12.28 44.48 0l22.24-22.24c12.28-12.28 12.28-32.19 0-44.48L242.72 256z"}}]})(e)}function np(e){return ka({tag:"svg",attr:{viewBox:"0 0 448 512"},child:[{tag:"path",attr:{d:"M432 32H312l-9.4-18.7A24 24 0 0 0 281.1 0H166.8a23.72 23.72 0 0 0-21.4 13.3L136 32H16A16 16 0 0 0 0 48v32a16 16 0 0 0 16 16h416a16 16 0 0 0 16-16V48a16 16 0 0 0-16-16zM53.2 467a48 48 0 0 0 47.9 45h245.8a48 48 0 0 0 47.9-45L416 128H32z"}}]})(e)}function rp(e){return ka({tag:"svg",attr:{viewBox:"0 0 640 512"},child:[{tag:"path",attr:{d:"M633.8 458.1L389.6 269.3C433.8 244.7 464 198.1 464 144 464 64.5 399.5 0 320 0c-67.1 0-123 46.1-139 108.2L45.5 3.4C38.5-2 28.5-.8 23 6.2L3.4 31.4c-5.4 7-4.2 17 2.8 22.4l588.4 454.7c7 5.4 17 4.2 22.5-2.8l19.6-25.3c5.4-6.8 4.1-16.9-2.9-22.3zM198.4 320C124.2 320 64 380.2 64 454.4v9.6c0 26.5 21.5 48 48 48h382.2L245.8 320h-47.4z"}}]})(e)}function ip(e){return ka({tag:"svg",attr:{viewBox:"0 0 448 512"},child:[{tag:"path",attr:{d:"M224 256c70.7 0 128-57.3 128-128S294.7 0 224 0 96 57.3 96 128s57.3 128 128 128zm89.6 32h-16.7c-22.2 10.2-46.9 16-72.9 16s-50.6-5.8-72.9-16h-16.7C60.2 288 0 348.2 0 422.4V464c0 26.5 21.5 48 48 48h352c26.5 0 48-21.5 48-48v-41.6c0-74.2-60.2-134.4-134.4-134.4z"}}]})(e)}function op(e){return ka({tag:"svg",attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{d:"M512 128V32c0-17.67-14.33-32-32-32h-96c-17.67 0-32 14.33-32 32H160c0-17.67-14.33-32-32-32H32C14.33 0 0 14.33 0 32v96c0 17.67 14.33 32 32 32v192c-17.67 0-32 14.33-32 32v96c0 17.67 14.33 32 32 32h96c17.67 0 32-14.33 32-32h192c0 17.67 14.33 32 32 32h96c17.67 0 32-14.33 32-32v-96c0-17.67-14.33-32-32-32V160c17.67 0 32-14.33 32-32zm-96-64h32v32h-32V64zM64 64h32v32H64V64zm32 384H64v-32h32v32zm352 0h-32v-32h32v32zm-32-96h-32c-17.67 0-32 14.33-32 32v32H160v-32c0-17.67-14.33-32-32-32H96V160h32c17.67 0 32-14.33 32-32V96h192v32c0 17.67 14.33 32 32 32h32v192z"}}]})(e)}function sp(e){return ka({tag:"svg",attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{d:"M156.7 256H16c-8.8 0-16 7.2-16 16v32c0 8.8 7.2 16 16 16h142.2c15.9 0 30.8 10.9 33.4 26.6 3.3 20-12.1 37.4-31.6 37.4-14.1 0-26.1-9.2-30.4-21.9-2.1-6.3-8.6-10.1-15.2-10.1H81.6c-9.8 0-17.7 8.8-15.9 18.4 8.6 44.1 47.6 77.6 94.2 77.6 57.1 0 102.7-50.1 95.2-108.6C249 291 205.4 256 156.7 256zM16 224h336c59.7 0 106.8-54.8 93.8-116.7-7.6-36.2-36.9-65.5-73.1-73.1-55.4-11.6-105.1 24.9-114.9 75.5-1.9 9.6 6.1 18.3 15.8 18.3h32.8c6.7 0 13.1-3.8 15.2-10.1C325.9 105.2 337.9 96 352 96c19.4 0 34.9 17.4 31.6 37.4-2.6 15.7-17.4 26.6-33.4 26.6H16c-8.8 0-16 7.2-16 16v32c0 8.8 7.2 16 16 16zm384 32H243.7c19.3 16.6 33.2 38.8 39.8 64H400c26.5 0 48 21.5 48 48s-21.5 48-48 48c-17.9 0-33.3-9.9-41.6-24.4-2.9-5-8.7-7.6-14.5-7.6h-33.8c-10.9 0-19 10.8-15.3 21.1 17.8 50.6 70.5 84.8 129.4 72.3 41.2-8.7 75.1-41.6 84.7-82.7C526 321.5 470.5 256 400 256z"}}]})(e)}function ap(e){return ka({tag:"svg",attr:{viewBox:"0 0 448 512"},child:[{tag:"path",attr:{d:"M128 148v-40c0-6.6 5.4-12 12-12h40c6.6 0 12 5.4 12 12v40c0 6.6-5.4 12-12 12h-40c-6.6 0-12-5.4-12-12zm140 12h40c6.6 0 12-5.4 12-12v-40c0-6.6-5.4-12-12-12h-40c-6.6 0-12 5.4-12 12v40c0 6.6 5.4 12 12 12zm-128 96h40c6.6 0 12-5.4 12-12v-40c0-6.6-5.4-12-12-12h-40c-6.6 0-12 5.4-12 12v40c0 6.6 5.4 12 12 12zm128 0h40c6.6 0 12-5.4 12-12v-40c0-6.6-5.4-12-12-12h-40c-6.6 0-12 5.4-12 12v40c0 6.6 5.4 12 12 12zm-76 84v-40c0-6.6-5.4-12-12-12h-40c-6.6 0-12 5.4-12 12v40c0 6.6 5.4 12 12 12h40c6.6 0 12-5.4 12-12zm76 12h40c6.6 0 12-5.4 12-12v-40c0-6.6-5.4-12-12-12h-40c-6.6 0-12 5.4-12 12v40c0 6.6 5.4 12 12 12zm180 124v36H0v-36c0-6.6 5.4-12 12-12h19.5V24c0-13.3 10.7-24 24-24h337c13.3 0 24 10.7 24 24v440H436c6.6 0 12 5.4 12 12zM79.5 463H192v-67c0-6.6 5.4-12 12-12h40c6.6 0 12 5.4 12 12v67h112.5V49L80 48l-.5 415z"}}]})(e)}function lp(e){return ka({tag:"svg",attr:{viewBox:"0 0 576 512"},child:[{tag:"path",attr:{d:"M560.02 32c-1.96 0-3.98.37-5.96 1.16L384.01 96H384L212 35.28A64.252 64.252 0 0 0 191.76 32c-6.69 0-13.37 1.05-19.81 3.14L20.12 87.95A32.006 32.006 0 0 0 0 117.66v346.32C0 473.17 7.53 480 15.99 480c1.96 0 3.97-.37 5.96-1.16L192 416l172 60.71a63.98 63.98 0 0 0 40.05.15l151.83-52.81A31.996 31.996 0 0 0 576 394.34V48.02c0-9.19-7.53-16.02-15.98-16.02zM224 90.42l128 45.19v285.97l-128-45.19V90.42zM48 418.05V129.07l128-44.53v286.2l-.64.23L48 418.05zm480-35.13l-128 44.53V141.26l.64-.24L528 93.95v288.97z"}}]})(e)}var cp=__webpack_require__(46239);function up(e){return ka({tag:"svg",attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{d:"M247 32v23.21C143.25 59.8 59.798 143.25 55.21 247H32v18h23.21C59.8 368.75 143.25 452.202 247 456.79V480h18v-23.21C368.75 452.2 452.202 368.75 456.79 265H480v-18h-23.21C452.2 143.25 368.75 59.798 265 55.21V32h-18zm0 41.223V128h18V73.223C359 77.76 434.24 153 438.777 247H384v18h54.777C434.24 359 359 434.24 265 438.777V384h-18v54.777C153 434.24 77.76 359 73.223 265H128v-18H73.223C77.76 153 153 77.76 247 73.223zM247 224v23h-23v18h23v23h18v-23h23v-18h-23v-23h-18z"}}]})(e)}function dp(e){return ka({tag:"svg",attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{d:"M256 21C126.426 21 21 126.426 21 256s105.426 235 235 235 235-105.426 235-235S385.574 21 256 21zm0 36c110.118 0 199 88.882 199 199s-88.882 199-199 199S57 366.118 57 256 145.882 57 256 57zm-7.352 36.744c-8.227 0-15.317 2.976-21.27 8.928-5.776 5.952-8.665 12.955-8.665 21.008 0 8.227 2.89 15.23 8.666 21.006 5.95 5.776 13.04 8.666 21.268 8.666 8.228 0 15.23-2.89 21.006-8.666 5.777-5.777 8.666-12.78 8.666-21.006 0-8.053-2.976-15.056-8.927-21.008-5.777-5.952-12.692-8.928-20.745-8.928zm-62.757 82.453v28.096h46.215v186.13H185.89v27.833h140.22v-27.834h-45.69V176.197h-94.53z"}}]})(e)}function hp(e){return ka({tag:"svg",attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{d:"M409.1 26.44c-14.5-.16-28.9 5.01-42.2 18.31l-16.3 16.29 27.6 27.55-12.8 12.71-27.6-27.49-32.4 32.49 27.5 27.5-12.8 12.8-27.5-27.5-32.5 32.4 27.6 27.6-12.8 12.8-27.6-27.6-32.4 32.5 27.5 27.5-12.8 12.8-27.5-27.5-32.5 32.4 27.6 27.6-12.8 12.8-27.6-27.6-16.2 16.3c-.7.7-2.9 4.5-4.5 9.9s-3 12.3-4.4 19.4c-1.4 7-2.8 14.3-4.8 20.9-1.9 6.6-4 12.6-8.9 17.6l-79.26 79.2c-9.72 9.7-12.79 19.6-12.23 29.2.56 9.5 5.16 18.9 12.23 26 7.08 7 16.45 11.6 26 12.2 9.54.5 19.46-2.5 29.2-12.3L173.1 394c5-4.9 11-7 17.6-8.9 6.6-2 13.9-3.4 20.9-4.8 7.1-1.4 14-2.8 19.4-4.4 5.4-1.6 9.2-3.8 9.9-4.5l226.3-226.3c15.2-15.2 19.8-31.8 18-48.46-1.9-16.66-10.7-33.37-23.6-46.24-12.9-12.86-29.6-21.72-46.2-23.58-2.1-.23-4.2-.38-6.3-.38zM422 77.28L434.8 90 113 411.8l11.3 11.3-29.01 29c-6.71 6.7-14.02 10.6-21.34 11.7-7.32 1-14.7-1.1-19.65-6.1-4.95-4.9-7.13-12.3-6.08-19.6 1.04-7.4 5.02-14.7 11.74-21.4l22.6-22.7 6.37-6.3L100.2 399 422 77.28z"}}]})(e)}function pp(e){return ka({tag:"svg",attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{d:"M272 16c-32 48-38.97 115.99-38 176 .118 7.3 2.486 17.54 5.086 26.69 5.166-2.36 10.89-3.69 16.914-3.69 3.04 0 6 .346 8.857.982L272 16zm-16 217c-12.81 0-23 10.19-23 23s10.19 23 23 23 23-10.19 23-23-10.19-23-23-23zm40.8 27.033c-.897 9.054-4.776 17.268-10.632 23.643L455.812 389.87c-25.57-51.714-80.964-91.744-133.42-120.91-6.366-3.54-16.386-6.605-25.593-8.927zm-79.896 8.274L40.124 362.12c57.57 3.714 119.937-24.243 171.423-55.09 6.274-3.758 13.95-10.936 20.58-17.77-7.1-5.122-12.522-12.447-15.223-20.953zm55.86 25.07c-5.127 2.32-10.8 3.623-16.764 3.623-5.964 0-11.637-1.302-16.764-3.62L232 496h48l-7.236-202.623z"}}]})(e)}function fp(e){return ka({tag:"svg",attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"polygon",attr:{points:"22 3 2 3 10 12.46 10 19 14 21 14 12.46 22 3"}}]})(e)}function gp(e){return ka({tag:"svg",attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"circle",attr:{cx:"12",cy:"12",r:"1"}},{tag:"circle",attr:{cx:"19",cy:"12",r:"1"}},{tag:"circle",attr:{cx:"5",cy:"12",r:"1"}}]})(e)}function mp(e){return ka({tag:"svg",attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"circle",attr:{cx:"11",cy:"11",r:"8"}},{tag:"line",attr:{x1:"21",y1:"21",x2:"16.65",y2:"16.65"}}]})(e)}var yp=__webpack_require__(11032),vp=__webpack_require__(76280);const _p=["className","component"];function bp(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const{defaultTheme:t,defaultClassName:r="MuiBox-root",generateClassName:i}=e,o=(0,yp.cp)("div",{shouldForwardProp:e=>"theme"!==e&&"sx"!==e&&"as"!==e})(vp.c);return n.forwardRef((function(e,n){const s=(0,Ie.c)(t),a=as(e),{className:l,component:c="div"}=a,u=(0,Tt.c)(a,_p);return(0,Ae.jsx)(o,(0,d.c)({as:c,ref:n,className:(0,ts.c)(l,i?i(r):r),theme:s},u))}))}var xp=__webpack_require__(85115),Sp=__webpack_require__(4400);const wp=bp({defaultTheme:(0,Sp.c)(),defaultClassName:"MuiBox-root",generateClassName:xp.c.generate});var Ep=__webpack_require__(37016);function Pp(e){return String(parseFloat(e)).length===String(e).length}function Cp(e){return parseFloat(e)}function Ap(e){return(t,n)=>{const r=String(t).match(/[\d.\-+]*\s*(.*)/)[1]||"";if(r===n)return t;let i=Cp(t);"px"!==r&&("em"===r||"rem"===r)&&(i=Cp(t)*Cp(e));let o=i;if("px"!==n)if("em"===n)o=i/Cp(e);else{if("rem"!==n)return t;o=i/Cp(e)}return parseFloat(o.toFixed(5))+n}}function kp(e){let{lineHeight:t,pixels:n,htmlFontSize:r}=e;return n/(t*r)}const jp="#00A6FF",Ip="rgba(0, 166, 255, 0.5)",Gp="#333B46",Tp="#003257",Mp="#ffeb3b",Op="#f15959",Rp="#C4C4C4",Dp="#F4F6F8",Np="#535353",Lp="rgba(55, 53, 47, 0.13)",Vp="#6200ea",Fp="#006A4E",zp="#FFA500",Bp="#FF0000",Up="#67AD5B",Wp="0 2px 6px rgba(0, 0, 0, 0.3)",Hp="#FFA118",qp="rgba(0, 166, 255, 0.2)",Xp=Object.freeze({POLYGONS:{stroke:{default:"rgba(0, 0, 0, 0.2)",disabled:Rp,selected:jp},fill:{default:qp,disabled:"rgba(196, 196, 196, 0.2)",selected:"rgba(0, 166, 255, 0.3)"}}}),Yp=Object.freeze({FOUNDATION:"#0FFD0B",PILE:"#23DFEB",MODULE:"#F37F5A",TABLE:"#E8D214"}),Kp=Object.freeze({1:"#008F98",2:"#006C7A",3:"#F29D00",4:"#FF5500",5:"#FF0000"}),Zp={1:"#4FFFB0",2:"#006A4E",3:"#FFA500",4:"#FF5500",5:"#FF0000"};let $p=(0,Sp.c)({typography:{fontFamily:["Calibri","Gill Sans","Gill Sans MT","Trebuchet MS","sans-serif"].join(",")},palette:{primary:{main:jp,contrastText:"#FFFFFF"},secondary:{main:Np},info:{main:"#FFFFFF",contrastText:"#00000"},error:{main:Op},action:{disabledBackground:Ip}},components:{MuiTooltip:{styleOverrides:{tooltip:{fontSize:"1em",color:"#FFFFFF",backgroundColor:jp},arrow:{color:jp}}},MuiBadge:{styleOverrides:{root:{border:"none !important"},badge:{border:"none !important"}}},MuiStepIcon:{styleOverrides:{root:{"&.Mui-active":{color:jp},"&.Mui-completed":{color:"green"}}}},MuiTab:{styleOverrides:{root:{backgroundColor:"white",color:jp,"&$selected":{}}}},MuiSlider:{styleOverrides:{root:{"& .MuiSlider-valueLabelOpen":{backgroundColor:jp}}}},MuiSwitch:{styleOverrides:{root:{".MuiSwitch-colorPrimary.Mui-checked":{color:"#4CAF50","& + .MuiSwitch-track":{backgroundColor:"#95cc97"}}}}},MuiAlert:{styleOverrides:{root:{"&.MuiAlert-standardInfo":{backgroundColor:"rgb(229, 246, 253)",color:"rgb(1, 67, 97)","& .MuiAlert-icon":{color:"#0288d1"}},"&.MuiAlert-filledInfo":{backgroundColor:"#0288d1",color:"white","& .MuiAlert-icon":{color:"white"}}}}}}});$p=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const{breakpoints:n=["sm","md","lg"],disableAlign:r=!1,factor:i=2,variants:o=["h1","h2","h3","h4","h5","h6","subtitle1","subtitle2","body1","body2","caption","button","overline"]}=t,s=(0,d.c)({},e);s.typography=(0,d.c)({},s.typography);const a=s.typography,l=Ap(a.htmlFontSize),c=n.map((e=>s.breakpoints.values[e]));return o.forEach((e=>{const t=a[e],n=parseFloat(l(t.fontSize,"rem"));if(n<=1)return;const o=n,s=1+(o-1)/i;let{lineHeight:u}=t;if(!Pp(u)&&!r)throw new Error((0,Ep.c)(6));Pp(u)||(u=parseFloat(l(u,"rem"))/parseFloat(n));let h=null;r||(h=e=>function(e){let{size:t,grid:n}=e;const r=t-t%n,i=r+n;return t-r<i-t?r:i}({size:e,grid:kp({pixels:4,lineHeight:u,htmlFontSize:a.htmlFontSize})})),a[e]=(0,d.c)({},t,function(e){let{cssProperty:t,min:n,max:r,unit:i="rem",breakpoints:o=[600,900,1200],transform:s=null}=e;const a={[t]:"".concat(n).concat(i)},l=(r-n)/o[o.length-1];return o.forEach((e=>{let r=n+l*e;null!==s&&(r=s(r)),a["@media (min-width:".concat(e,"px)")]={[t]:"".concat(Math.round(1e4*r)/1e4).concat(i)}})),a}({cssProperty:"fontSize",min:s,max:o,unit:"rem",breakpoints:c,transform:h}))})),s}($p);const Jp=$p;function Qp(e){return(0,hs.c)("MuiCircularProgress",e)}(0,ds.c)("MuiCircularProgress",["root","determinate","indeterminate","colorPrimary","colorSecondary","svg","circle","circleDeterminate","circleIndeterminate","circleDisableShrink"]);var ef,tf,nf,rf;const of=["className","color","disableShrink","size","style","thickness","value","variant"];let sf,af,lf,cf;const uf=44,df=Bs(sf||(sf=ef||(ef=js(["\n  0% {\n    transform: rotate(0deg);\n  }\n\n  100% {\n    transform: rotate(360deg);\n  }\n"])))),hf=Bs(af||(af=tf||(tf=js(["\n  0% {\n    stroke-dasharray: 1px, 200px;\n    stroke-dashoffset: 0;\n  }\n\n  50% {\n    stroke-dasharray: 100px, 200px;\n    stroke-dashoffset: -15px;\n  }\n\n  100% {\n    stroke-dasharray: 100px, 200px;\n    stroke-dashoffset: -125px;\n  }\n"])))),pf=(0,cs.cp)("span",{name:"MuiCircularProgress",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],t["color".concat((0,ha.c)(n.color))]]}})((e=>{let{ownerState:t,theme:n}=e;return(0,d.c)({display:"inline-block"},"determinate"===t.variant&&{transition:n.transitions.create("transform")},"inherit"!==t.color&&{color:(n.vars||n).palette[t.color].main})}),(e=>{let{ownerState:t}=e;return"indeterminate"===t.variant&&zs(lf||(lf=nf||(nf=js(["\n      animation: "," 1.4s linear infinite;\n    "]))),df)})),ff=(0,cs.cp)("svg",{name:"MuiCircularProgress",slot:"Svg",overridesResolver:(e,t)=>t.svg})({display:"block"}),gf=(0,cs.cp)("circle",{name:"MuiCircularProgress",slot:"Circle",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.circle,t["circle".concat((0,ha.c)(n.variant))],n.disableShrink&&t.circleDisableShrink]}})((e=>{let{ownerState:t,theme:n}=e;return(0,d.c)({stroke:"currentColor"},"determinate"===t.variant&&{transition:n.transitions.create("stroke-dashoffset")},"indeterminate"===t.variant&&{strokeDasharray:"80px, 200px",strokeDashoffset:0})}),(e=>{let{ownerState:t}=e;return"indeterminate"===t.variant&&!t.disableShrink&&zs(cf||(cf=rf||(rf=js(["\n      animation: "," 1.4s ease-in-out infinite;\n    "]))),hf)})),mf=n.forwardRef((function(e,t){const n=(0,Oe.c)({props:e,name:"MuiCircularProgress"}),{className:r,color:i="primary",disableShrink:o=!1,size:s=40,style:a,thickness:l=3.6,value:c=0,variant:u="indeterminate"}=n,h=(0,Tt.c)(n,of),p=(0,d.c)({},n,{color:i,disableShrink:o,size:s,thickness:l,value:c,variant:u}),f=(e=>{const{classes:t,variant:n,color:r,disableShrink:i}=e,o={root:["root",n,"color".concat((0,ha.c)(r))],svg:["svg"],circle:["circle","circle".concat((0,ha.c)(n)),i&&"circleDisableShrink"]};return(0,ls.c)(o,Qp,t)})(p),g={},m={},y={};if("determinate"===u){const e=2*Math.PI*((uf-l)/2);g.strokeDasharray=e.toFixed(3),y["aria-valuenow"]=Math.round(c),g.strokeDashoffset="".concat(((100-c)/100*e).toFixed(3),"px"),m.transform="rotate(-90deg)"}return(0,Ae.jsx)(pf,(0,d.c)({className:(0,ts.c)(f.root,r),style:(0,d.c)({width:s,height:s},m,a),ownerState:p,ref:t,role:"progressbar"},y,h,{children:(0,Ae.jsx)(ff,{className:f.svg,ownerState:p,viewBox:"".concat(22," ").concat(22," ").concat(uf," ").concat(uf),children:(0,Ae.jsx)(gf,{className:f.circle,style:g,ownerState:p,cx:uf,cy:uf,r:(uf-l)/2,fill:"none",strokeWidth:l})})}))})),yf=mf,vf={all:[],display:[],allSubs:[],loadingAllSubs:!1,needRefreshSubs:!0,currentType:"",current:void 0,error:"",status:"loading"},_f=Qr({name:"assets",initialState:vf,reducers:{setAssets:(e,t)=>{e.all=t.payload,e.status="done"},setDisplayAssets:(e,t)=>{e.display=e.all.filter((e=>e.type===t.payload)),e.currentType=t.payload},filterDisplayAssets:(e,t)=>{e.display=e.all.filter((t=>t.type===e.currentType)).filter((e=>Dy(e.name,t.payload)||e.company&&Dy(e.company,t.payload)))},setCurrentAssets:(e,t)=>{e.current=t.payload},setLoadingAllSubs:(e,t)=>{e.loadingAllSubs=t.payload},setAllSubs:(e,t)=>{e.allSubs=t.payload,e.needRefreshSubs=!1,e.loadingAllSubs=!1},refreshAllSubs:e=>{e.needRefreshSubs=!0},updateAssetType:(e,t)=>{e.currentType=t.payload},resetAssets:(e,t)=>vf}}),{setAssets:bf,setDisplayAssets:xf,setCurrentAssets:Sf,filterDisplayAssets:wf,setAllSubs:Ef,refreshAllSubs:Pf,updateAssetType:Cf,resetAssets:Af,setLoadingAllSubs:kf}=_f.actions,jf=e=>e.assets.all,If=e=>e.assets.allSubs,Gf=e=>e.assets.needRefreshSubs&&!e.assets.loadingAllSubs,Tf=e=>e.assets.loadingAllSubs,Mf=_f.reducer,Of=e=>e.assets,Rf=[],Df=Qr({name:"subassets",initialState:Rf,reducers:{setSubAssets:(e,t)=>{const n=((e,t)=>t.findIndex((t=>t.assetInfos.id===e)))(t.payload.assetInfos.id,e);-1!==n?e[n]=t.payload:e.push(t.payload)},resetSubAssets:e=>Rf}}),{setSubAssets:Nf,resetSubAssets:Lf}=Df.actions,Vf=e=>e.subassets,Ff=Df.reducer,zf={all:[],display:[],selected:[],error:"",type:"loading",inspectStats:[],loadedInspectStats:!1,defectStats:[],loadedDefectStats:!1,loadingDefectStats:!1,solarAnnotations:[],bladesAnnotations:[],towerAnnotations:[],loadingSolarAnnots:!1,loadingBladeAnnots:!1,loadedAll:!1,isSolarAnnotationsSaving:!1},Bf=Qr({name:"inspections",initialState:zf,reducers:{setInspections:(e,t)=>{e.all=t.payload,e.loadedAll=!0},setSelectedInspection:(e,t)=>{e.selected=t.payload},setInspectionsStats:(e,t)=>{e.inspectStats=t.payload,e.loadedInspectStats=!0},refreshInspectionsStats:(e,t)=>{e.loadedInspectStats=!1},setDefectStats:(e,t)=>{e.defectStats=t.payload,e.loadedDefectStats=!0},refreshDefectsStats:(e,t)=>{e.loadedDefectStats=!1,e.loadingSolarAnnots=!1,e.loadingBladeAnnots=!1},setLoadingDefects:(e,t)=>{e.loadingDefectStats=t.payload},updateDefectStats:(e,t)=>{e.defectStats=e.defectStats.filter((e=>!t.payload.includes(e.id)))},createDefects:(e,t)=>{e.defectStats=[...e.defectStats,...t.payload]},updateDefect:(e,t)=>{const n=e.defectStats.findIndex((e=>e.id===t.payload.defect.id));-1!==n?t.payload.inspectionId?e.defectStats[n]=t.payload.defect:e.defectStats[n]={...t.payload.defect,...t.payload.otherData}:e.defectStats=[...e.defectStats,{...t.payload.defect,...t.payload.otherData}]},updateDefectStatus:(e,t)=>{const n=e.defectStats.findIndex((e=>e.id===t.payload.id));-1!==n&&(e.defectStats[n]={...e.defectStats[n],state:t.payload.state,comments:t.payload.comments})},updateDefectFiles:(e,t)=>{const n=e.defectStats.findIndex((e=>e.id===t.payload.id));-1!==n&&(e.defectStats[n]={...e.defectStats[n],files:t.payload.files})},setSolarAnnotations:(e,t)=>{e.solarAnnotations=t.payload},setBladesAnnotations:(e,t)=>{e.bladesAnnotations=t.payload},setTowerAnnotations:(e,t)=>{e.towerAnnotations=t.payload},setSolarAnnotationsSavingState:(e,t)=>{e.isSolarAnnotationsSaving=t.payload},setLoadingSolarAnnots:(e,t)=>{e.loadingSolarAnnots=t.payload},setLoadingBladeAnnots:(e,t)=>{e.loadingBladeAnnots=t.payload},updateNote:(e,t)=>{const n=e.inspectStats.findIndex((e=>e.id===t.payload.inspectionId));-1!==n&&(e.inspectStats[n].notes=t.payload.notes)},addNewComment:(e,t)=>{const n=e.defectStats.findIndex((e=>e.id===t.payload.id));-1!==n&&(e.defectStats[n].comments||(e.defectStats[n].comments=[]),e.defectStats[n].comments.unshift(...t.payload.comments))},removeComment:(e,t)=>{const n=e.defectStats.findIndex((e=>e.id===t.payload.id));if(-1!==n){var r;const i=null===(r=e.defectStats[n].comments)||void 0===r?void 0:r.findIndex((e=>t.payload.comment?e.comment===t.payload.comment:e.on===t.payload.on));-1!==i&&void 0!==i&&e.defectStats[n].comments.splice(i,1)}},removeFile:(e,t)=>{const n=e.defectStats.findIndex((e=>e.id===t.payload.id));if(-1!==n){var r;const i=null===(r=e.defectStats[n].files)||void 0===r?void 0:r.findIndex((e=>e.timestamp===t.payload.on));-1!==i&&void 0!==i&&e.defectStats[n].files.splice(i,1)}},resetInspections:(e,t)=>zf,addNewInspectionSpecs:(e,t)=>{e.inspectStats=e.inspectStats.concat(t.payload)}}}),{setInspections:Uf,setSelectedInspection:Wf,setInspectionsStats:Hf,setDefectStats:qf,refreshInspectionsStats:Xf,refreshDefectsStats:Yf,setLoadingDefects:Kf,resetInspections:Zf,updateDefectStats:$f,updateDefect:Jf,setSolarAnnotations:Qf,setBladesAnnotations:eg,setTowerAnnotations:tg,setLoadingSolarAnnots:ng,setLoadingBladeAnnots:rg,updateNote:ig,createDefects:og,updateDefectStatus:sg,addNewComment:ag,removeComment:lg,removeFile:cg,updateDefectFiles:ug,addNewInspectionSpecs:dg,setSolarAnnotationsSavingState:hg}=Bf.actions,pg=e=>e.inspections.all,fg=e=>e.inspections.loadedAll,gg=e=>e.inspections.inspectStats,mg=e=>e.inspections.defectStats,yg=e=>!e.inspections.loadedInspectStats,vg=e=>!e.inspections.loadedDefectStats,_g=e=>e.inspections.loadingDefectStats,bg=e=>e.inspections.solarAnnotations,xg=e=>e.inspections.bladesAnnotations,Sg=e=>e.inspections.towerAnnotations,wg=e=>e.inspections.loadingSolarAnnots,Eg=e=>e.inspections.loadingBladeAnnots,Pg=e=>e.inspections.isSolarAnnotationsSaving,Cg=Bf.reducer,Ag={inspectionDoc:null,photosData:[],mobileData:{},photosDB:[],annotations:[],comparedAnnotations:[],pickers:[],defects:[],currentDefect:{annotations:[],note:"",type:"",severity:0,rootCause:"",nextStep:"",blade:"A",new:!0,id:""},error:"",hoverAnnotation:"",currentPage:"inspect",status:"loading",currentPhotoData:{photoId:"",thumbURL:"",thermalJpgURL:"",thermalCelciusURL:"",thermalPixelURL:"",photoURL:[],photoName:"",originalPhotoNumber:0,sortData:{altitude:0,yaw:0,blade:"Default",edge:"",hubDistance:0,side:"",timestamp:0}},currentPhotoExif:null,currentPhotoId:"",currentDefectId:"",deletePhotoIndex:-1,localPhotoUrl:"",dragAnnotId:"",dragDefectId:"",loadingInit:!1,modelInfo:null,measureScale:!1,needReloadData:!1,thermalPalette:"greyscale",thermalCameraData:null,currentSolarPanels:null,allSolarPanels:null,allAiFaultyPanels:null,cacheThermalData:[],loadingNextThermalData:"",filterTemp:null,thermalBladesDisplay:!1,faultyImageUrls:[],hideNoPanelsImages:!0},kg=Qr({name:"inspectionTool",initialState:Ag,reducers:{setInspectionDoc:(e,t)=>{e.status="done",e.inspectionDoc=t.payload,e.allSolarPanels=null,e.allAiFaultyPanels=null,e.faultyImageUrls=[]},setPhotoData:(e,t)=>{e.photosData=t.payload},setMobileData:(e,t)=>{e.mobileData=t.payload},setAnnotations:(e,t)=>{e.annotations=t.payload},setComparedAnnotations:(e,t)=>{const n=e.comparedAnnotations.find((e=>e.inspectId===t.payload.inspectId));n||(e.comparedAnnotations=[...e.comparedAnnotations,t.payload])},addAnnotations:(e,t)=>{e.annotations=[...e.annotations,...t.payload]},updateAnnotationStore:(e,t)=>{const n=e.annotations.findIndex((e=>{let{fileName:n}=e;return n===t.payload.fileName}));if(n<0)return;const r=[...e.annotations];r[n]={...r[n],...t.payload},e.annotations=r},removeAnnotationStore:(e,t)=>{const n=t.payload;e.annotations=[...e.annotations].filter((e=>{let{fileName:t}=e;return t!==n})),e.defects=[...e.defects].map((e=>{const t=e.annotations.filter((e=>{let{annotationRef:t}=e;return t!==n}));return 0===t.length?null:{...e,annotations:t}})).flatMap((e=>e?[e]:[]))},setPickers:(e,t)=>{e.pickers=t.payload},setDefects:(e,t)=>{e.defects=t.payload},setPhotosDB:(e,t)=>{e.photosDB=t.payload},setCurrentPhotoData:(e,t)=>{e.currentPhotoData=t.payload},setCurrentPhotoExif:(e,t)=>{e.currentPhotoExif=t.payload},setHoverAnnotation:(e,t)=>{e.hoverAnnotation=t.payload},setCurrentDefect:(e,t)=>{e.currentDefect=t.payload},setCurrentPhotoId:(e,t)=>{e.currentPhotoId=t.payload},setDeletedPhotoIndex:(e,t)=>{e.deletePhotoIndex=t.payload},setCurrentDefectId:(e,t)=>{e.currentDefectId=t.payload},setLocalPhotoUrl:(e,t)=>{e.localPhotoUrl=t.payload},reset:(e,t)=>Ag,updatePhotoDataDefect:(e,t)=>{e.photosData=e.photosData.map(((e,n)=>n===t.payload.index?{...e,defectDetection:t.payload.value}:e))},updatePhotoDataInspected:(e,t)=>{e.photosData=e.photosData.map((e=>e.id===t.payload.photoId?{...e,inspected:1}:e)),jg(e)},updateStatus:(e,t)=>{const n=JSON.parse(JSON.stringify(e.inspectionDoc));n.status=t.payload,e.inspectionDoc=n},setAnnotDragId:(e,t)=>{e.dragAnnotId=t.payload},setDefectDragId:(e,t)=>{e.dragDefectId=t.payload},setNotes:(e,t)=>{e.inspectionDoc&&(e.inspectionDoc.notes=t.payload)},setInspectionLegislationStore:(e,t)=>{e.inspectionDoc&&(e.inspectionDoc.legislation=t.payload)},setExternalMethod:(e,t)=>{e.inspectionDoc&&(e.inspectionDoc.externalMethod=t.payload)},setUpdatePlannedDate:(e,t)=>{e.inspectionDoc&&(e.inspectionDoc.inspectionDates.planned=t.payload)},setFlag:(e,t)=>{e.inspectionDoc&&(1===t.payload?e.inspectionDoc.stats.flaggedCount+=1:e.inspectionDoc.stats.flaggedCount-=1)},updateReviews:(e,t)=>{e.inspectionDoc&&e.inspectionDoc.reviews&&(e.inspectionDoc.reviews[t.payload.field]=t.payload.review)},setAnnotateCropped:(e,t)=>{const n=e.annotations.findIndex((e=>e.fileName===t.payload.fileName));-1!==n?e.annotations=e.annotations.map(((e,r)=>r===n?{...e,urls:t.payload.urls}:e)):console.log("problem annotation not found: ",t.payload)},setSingleAnnotation:(e,t)=>{if(t.payload){const n=e.annotations.findIndex((e=>e.fileName===t.payload.fileName));e.annotations=-1!==n?e.annotations.map(((e,r)=>r===n?{...t.payload,urls:e.urls}:e)):[...e.annotations,t.payload]}},setLoadingInit:(e,t)=>{e.loadingInit=t.payload},setModelInfo:(e,t)=>{e.modelInfo=t.payload},setMeasureScale:(e,t)=>{e.measureScale=t.payload},setScaleCurrentPhoto:(e,t)=>{e.currentPhotoExif&&(e.currentPhotoExif.scale=t.payload)},changePhotoData:(e,t)=>{if(e.photosData=e.photosData.map((e=>e.id===t.payload.photoId?{...e,...t.payload.dataToChange}:e)),e.currentPhotoExif&&e.currentPhotoExif.id===t.payload.photoId){const t=e.photosData.find((t=>e.currentPhotoExif&&t.id===e.currentPhotoExif.id));t&&(e.currentPhotoExif=t)}e.photosDB=e.photosDB.map((e=>e.photoId===t.payload.photoId?{...e,sortData:{...e.sortData,...t.payload.dataToChange}}:e))},setNeedReloadData:(e,t)=>{e.needReloadData=t.payload},setThermalPalette:(e,t)=>{e.thermalPalette=t.payload},setThermalCameraData:(e,t)=>{e.thermalCameraData=t.payload},setSolarPanelsData:(e,t)=>{e.currentSolarPanels=t.payload},setAllSolarPanelsData:(e,t)=>{e.allSolarPanels=t.payload},setAllAiFaultyPanels:(e,t)=>{e.allAiFaultyPanels=t.payload},setLoadingNextThermalData:(e,t)=>{e.loadingNextThermalData=t.payload},setCacheThermalData:(e,t)=>{e.cacheThermalData.length<3?e.cacheThermalData=[...e.cacheThermalData,t.payload]:(e.cacheThermalData.pop(),e.cacheThermalData.unshift(t.payload))},setFilterTemp:(e,t)=>{e.filterTemp=t.payload},setThermalBladesDisplay:(e,t)=>{e.thermalBladesDisplay=t.payload},setPdfUrl:(e,t)=>{e.inspectionDoc&&(e.inspectionDoc.report.url=t.payload)},setFaultyImageUrls:(e,t)=>{e.faultyImageUrls=t.payload},updateFaultyImageUrls:(e,t)=>{for(const n of t.payload){-1===e.faultyImageUrls.findIndex((e=>e.fileName===n.fileName))&&(e.faultyImageUrls=[...e.faultyImageUrls,n])}},deleteSolarFaultyPanels:(e,t)=>{if(e.allAiFaultyPanels)for(const n of t.payload){const t=n.split("_")[0],r=parseInt(n.split("_")[1],10),i=e.allAiFaultyPanels.findIndex((e=>e.photoId===t));if(-1!==i){const t=e.allAiFaultyPanels[i].faultyPanels.findIndex((e=>e.panelId===r));-1!==t&&e.allAiFaultyPanels[i].faultyPanels.splice(t,1)}}},changeDefectStatus:(e,t)=>{const n=e.defects.findIndex((e=>e.id===t.payload.id));-1!==n&&(e.defects[n].state=t.payload.state,e.defects[n].comments=t.payload.comments)},setNewComment:(e,t)=>{const n=e.defects.findIndex((e=>e.id===t.payload.id));-1!==n&&(e.defects[n].comments||(e.defects[n].comments=[]),e.defects[n].comments.unshift(...t.payload.comments))},deleteComment:(e,t)=>{const n=e.defects.findIndex((e=>e.id===t.payload.id));if(-1!==n){var r;const i=null===(r=e.defects[n].comments)||void 0===r?void 0:r.findIndex((e=>t.payload.comment?e.comment===t.payload.comment:e.on===t.payload.on));-1!==i&&void 0!==i&&e.defects[n].comments.splice(i,1)}},deleteFile:(e,t)=>{const n=e.defects.findIndex((e=>e.id===t.payload.id));if(-1!==n){var r;const i=null===(r=e.defects[n].files)||void 0===r?void 0:r.findIndex((e=>e.timestamp===t.payload.on));-1!==i&&void 0!==i&&e.defects[n].files.splice(i,1)}},setDefect:(e,t)=>{const n=e.defects.findIndex((e=>e.id===t.payload.id));-1!==n&&(e.defects[n]=t.payload)},setNewFile:(e,t)=>{const n=e.defects.findIndex((e=>e.id===t.payload.id));-1!==n&&(e.defects[n].files=t.payload.files)},setHideNoPanelsImages:(e,t)=>{e.hideNoPanelsImages=t.payload},setInspectionOffsetAnnotations:(e,t)=>{e.inspectionDoc&&(e.inspectionDoc.offsetAnnotations=t.payload)},setInspectionAiStatus:(e,t)=>{e.inspectionDoc&&(e.inspectionDoc.aiStatus=t.payload)}}}),jg=e=>{let t=0;e.photosData.forEach((e=>{e.inspected&&t++})),e.inspectionDoc.stats.viewedCount=t},{setInspectionDoc:Ig,setPhotoData:Gg,setMobileData:Tg,setAnnotations:Mg,setComparedAnnotations:Og,setPickers:Rg,setDefects:Dg,setPhotosDB:Ng,setCurrentPhotoData:Lg,setCurrentPhotoExif:Vg,setHoverAnnotation:Fg,setCurrentDefect:zg,setCurrentPhotoId:Bg,setDeletedPhotoIndex:Ug,setCurrentDefectId:Wg,setLocalPhotoUrl:Hg,reset:qg,updatePhotoDataDefect:Xg,updateStatus:Yg,updatePhotoDataInspected:Kg,setAnnotDragId:Zg,setDefectDragId:$g,updateReviews:Jg,setAnnotateCropped:Qg,setLoadingInit:em,setNotes:tm,setInspectionLegislationStore:nm,setFlag:rm,setSingleAnnotation:im,setExternalMethod:om,setUpdatePlannedDate:sm,setModelInfo:am,setMeasureScale:lm,setScaleCurrentPhoto:cm,changePhotoData:um,setNeedReloadData:dm,setThermalPalette:hm,setThermalCameraData:pm,setSolarPanelsData:fm,setAllSolarPanelsData:gm,setAllAiFaultyPanels:mm,setLoadingNextThermalData:ym,setCacheThermalData:vm,setFilterTemp:_m,setThermalBladesDisplay:bm,setPdfUrl:xm,setFaultyImageUrls:Sm,updateFaultyImageUrls:wm,deleteSolarFaultyPanels:Em,addAnnotations:Pm,updateAnnotationStore:Cm,removeAnnotationStore:Am,changeDefectStatus:km,setNewComment:jm,deleteComment:Im,deleteFile:Gm,setNewFile:Tm,setDefect:Mm,setHideNoPanelsImages:Om,setInspectionOffsetAnnotations:Rm,setInspectionAiStatus:Dm}=kg.actions,Nm=e=>e.inspectionTool.inspectionDoc,Lm=e=>e.inspectionTool.photosData,Vm=e=>e.inspectionTool.mobileData,Fm=e=>e.inspectionTool.photosDB,zm=e=>e.inspectionTool.currentPhotoData,Bm=e=>e.inspectionTool.currentPhotoExif,Um=e=>e.inspectionTool.annotations,Wm=e=>e.inspectionTool.defects,Hm=e=>{var t;return null===(t=e.inspectionTool.inspectionDoc)||void 0===t?void 0:t.defectsList},qm=e=>e.inspectionTool.currentPhotoId,Xm=e=>e.inspectionTool.deletePhotoIndex,Ym=e=>e.inspectionTool.currentDefectId,Km=e=>e.inspectionTool.dragAnnotId,Zm=e=>e.inspectionTool.dragDefectId,$m=e=>{var t,n;return{bladeA:"",bladeB:"",bladeC:"",subAsset:"",...null!==(t=null===(n=e.inspectionTool.inspectionDoc)||void 0===n?void 0:n.reviews)&&void 0!==t?t:{}}},Jm=e=>e.inspectionTool.loadingInit,Qm=e=>e.inspectionTool.modelInfo,ey=e=>e.inspectionTool.measureScale,ty=e=>e.inspectionTool.needReloadData,ny=e=>e.inspectionTool.allSolarPanels,ry=e=>e.inspectionTool.allAiFaultyPanels,iy=e=>e.inspectionTool.thermalBladesDisplay,oy=e=>e.inspectionTool.thermalCameraData,sy=e=>e.inspectionTool.hideNoPanelsImages,ay=kg.reducer,ly={data:{annotations:[],defects:[],inspections:[]}},cy=(e,t)=>{const n=t.defects.findIndex((t=>t.id===e));return n},uy=(e,t,n)=>{if(["comments","files"].includes(e)&&t.defectId){const o=cy(t.defectId,n);if(-1!==o){let s=-1;var r;if(t.timestamp&&!t.comment)s=null===(r=n.defects[o][e])||void 0===r?void 0:r.findIndex((e=>e.timestamp===t.timestamp));else if(t.comment){var i;s=null===(i=n.defects[o][e])||void 0===i?void 0:i.findIndex((e=>e.comment===t.comment))}-1!==s&&void 0!==s?n.defects[o][e].splice(s,1):console.log("Error when removing ".concat(e,": defectId: ").concat(t.defectId,"\n             with timestamp:").concat(t.timestamp,"  not found"))}else console.log("Error when removing ".concat(e,":: defectId: ").concat(t.defectId," not found"))}else console.log("Error when removing ".concat(e," with defectId: ").concat(t.defectId," no defect or element provided"))},dy=Qr({name:"groupedInspections",initialState:ly,reducers:{setGroupedInspectionsData:(e,t)=>{e.data=t.payload},updateGroupedInspectionsComments:(e,t)=>{const n=cy(t.payload.defectId,e.data);-1!==n?(e.data.defects[n].comments||(e.data.defects[n].comments=[]),e.data.defects[n].comments.unshift(...t.payload.comments)):console.log("Error: defectId: ".concat(t.payload.defectId,"  not found"))},removeGroupedInspectionsComment:(e,t)=>{uy("comments",t.payload,e.data)},removeGroupedInspectionsFile:(e,t)=>{uy("files",t.payload,e.data)},updateGroupedDefectFiles:(e,t)=>{const n=cy(t.payload.defectId,e.data);-1!==n?e.data.defects[n].files=t.payload.files:console.log("Error: defectId: ".concat(t.payload.defectId,"  not found"))},updateGroupedDefectStatus:(e,t)=>{const n=cy(t.payload.defectId,e.data);-1!==n?e.data.defects[n]={...e.data.defects[n],state:t.payload.state,comments:t.payload.comments}:console.log("Error: defectId: ".concat(t.payload.defectId,"  not found"))},updateAnnotationUrls:(e,t)=>{const n=((e,t)=>{const n=t.annotations.findIndex((t=>t.fileName===e));return n})(t.payload.annotationId,e.data);-1!==n?e.data.annotations[n]={...e.data.annotations[n],urls:t.payload.urls}:console.log("Error: annotationId: ".concat(t.payload.annotationId,"  not found"))},resetGroupedInspections:(e,t)=>ly,setCampaignDefect:(e,t)=>{var n;const r=null===(n=e.data)||void 0===n?void 0:n.defects.findIndex((e=>e.id===t.payload.id));-1!==r&&(e.data.defects[r]=t.payload)}}}),{setGroupedInspectionsData:hy,updateGroupedInspectionsComments:py,removeGroupedInspectionsComment:fy,removeGroupedInspectionsFile:gy,updateGroupedDefectFiles:my,updateGroupedDefectStatus:yy,updateAnnotationUrls:vy,resetGroupedInspections:_y,setCampaignDefect:by}=dy.actions,xy=e=>e.groupedInspections.data,Sy=function(e){var t,n=Zr(),r=e||{},i=r.reducer,o=void 0===i?void 0:i,s=r.middleware,a=void 0===s?n():s,l=r.devTools,c=void 0===l||l,u=r.preloadedState,d=void 0===u?void 0:u,h=r.enhancers,p=void 0===h?void 0:h;if("function"===typeof o)t=o;else{if(!Xr(o))throw new Error('"reducer" is a required argument, and must be a function or an object of functions that can be passed to combineReducers');t=Ar(o)}var f=a;"function"===typeof f&&(f=f(n));var g=jr.apply(void 0,f),m=kr;c&&(m=qr(Ur({trace:!1},"object"===typeof c&&c)));var y=[g];return Array.isArray(p)?y=Rr([g],p):"function"===typeof p&&(y=p(y)),Cr(t,d,m.apply(void 0,y))}({reducer:{auth:ko,assets:Mf,subassets:Ff,inspections:Cg,inspectionTool:ay,groupedInspections:dy.reducer},middleware:e=>e({serializableCheck:!1})}),wy=["POST","PATCH","PUT","DELETE"],Ey=async(e,t)=>{var n;t&&wy.includes(null!==(n=t.method)&&void 0!==n?n:"")&&!t.headers&&(t.headers={"Content-Type":"application/json"});const r={NODE_ENV:"production",PUBLIC_URL:"",WDS_SOCKET_HOST:void 0,WDS_SOCKET_PATH:void 0,WDS_SOCKET_PORT:void 0,FAST_REFRESH:!0,REACT_APP_API_KEY:"AIzaSyBHPgV3XKgYOnM990_yTwspgeTvJbOgAhg",REACT_APP_APP_ID:"1:251853988099:web:bab0205739db7f7d060936",REACT_APP_AUTH_DOMAIN:"skyvisor-prod.firebaseapp.com",REACT_APP_DATABASE_URL:"https://skyvisor-prod.firebaseio.com",REACT_APP_GOOGLE_MAPS_API_KEY:"AIzaSyCHaKkxdhCFUJ_YQq_n-sa8zb3jxT8UQio",REACT_APP_MAP_TILER_API_KEY:"9il2HwEuumNUJKgkhkUF",REACT_APP_MESSAGING_SENDER_ID:"251853988099",REACT_APP_PROJECT_ID:"skyvisor-prod",REACT_APP_STORAGE_BUCKET:"skyvisor-prod.appspot.com"}.REACT_APP_FORCED_PROXY_URL,i=await fetch("".concat(null!==r&&void 0!==r?r:"","/api")+e,{...t,credentials:"include"});if(null!==i&&void 0!==i&&i.status&&401===i.status&&(Sy.dispatch(go()),window.location.href="/login"),null!==i&&void 0!==i&&i.status&&403===i.status){const e=window.location.href.includes("/login"),t=window.location.href.includes("/forbidden");!e&&!t&&(window.location.href="/forbidden")}return null!==i&&void 0!==i&&i.status&&500===i.status&&Sy.dispatch(vo(!0)),i},Py=async function(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];const n="/inspections/".concat(e,"/getReport?downloadPurpose=").concat(t),r=await Ey(n,{method:"GET"}),i=await r.json();return i.report?(Sy.dispatch(xm("generated")),i.report):""},Cy=async function(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=arguments.length>2?arguments[2]:void 0;const r=new URLSearchParams;r.append("downloadPurpose","".concat(t)),n&&r.append("externalUserCode",n);const i="/campaigns/".concat(e,"/getReport?").concat(r),o=await Ey(i,{method:"GET"}),s=await o.json();return s.report?s.report:""};function Ay(e,t,n,r){const i="number"===typeof e[n]?e[n]:String(e[n]).toLowerCase(),o="number"===typeof t[n]?t[n]:String(t[n]).toLowerCase(),s="number"===typeof i&&"number"===typeof o?i-o:"".concat(i).localeCompare("".concat(o),"fr",{numeric:!0});return"asc"===r?s:-s}const ky=(e,t,n)=>{const r=e.map((e=>e));return r.sort(((e,r)=>Ay(e,r,n,t))),r},jy=(e,t)=>[...e].sort(((e,n)=>{if(e.isReportGenerated===n.isReportGenerated)return 0;const r="asc"===t?-1:1;return e.isReportGenerated?r:-r})),Iy=e=>new Date(String(e)).toLocaleDateString(),Gy=e=>new Date(String(e)).toLocaleString(),Ty=e=>new Date(e).getTime(),My=e=>e.charAt(0).toUpperCase()+e.slice(1),Oy=(e,t)=>{let n=!0;for(const i of e)if("number"!==typeof(r=i[t])&&("string"!==typeof r||""===r.trim())||isNaN(r)){n=!1;break}var r;return n},Ry=e=>e.normalize("NFD").replace(/[\u0300-\u036f]/g,""),Dy=(e,t)=>{const n=t.replace(/[.*+?^${}()|[\]\\]/g,"\\$&");return-1!==Ry(String(e).toLowerCase()).search(Ry(n.toLowerCase()))},Ny=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";const n=document.createElement("script");return n.src=e,t&&(n.type=t),document.body.appendChild(n),n},Ly=(e,t)=>Math.round(e*10**t)/10**t,Vy=(e,t,n)=>{const r=e.map((e=>e[t])).filter(((e,t,n)=>n.indexOf(e)===t));return n?r.sort(((e,t)=>e>t?1:-1)):r},Fy=async function(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];const n=await Py(e,t);n&&window.open(n)},zy=async function(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=arguments.length>2?arguments[2]:void 0;const r=await Cy(e,t,n);r&&window.open(r)},By=[{status:"toplan",name:"To plan"},{status:"planned",name:"Planned"},{status:"inspected",name:"Upload"},{status:"uploaded",name:"Annotate"},{status:"annotated",name:"Analyze"},{status:"analyzed",name:"Finalized"}],Uy=e=>{const t=By.find((t=>t.status===e));return t?t.name:""},Wy=()=>window&&window.innerWidth<=768,Hy=()=>{const e=navigator.userAgent||navigator.vendor;return/android/i.test(e)?"Android":/iPad|iPhone|iPod/.test(e)?"IOS":void 0},qy=(e,t,n)=>{(e=>e&&(e.ctrlKey||e.metaKey))(e)?window.open(t):n.push(t)},Xy=(e,t)=>{var n,r;const i=e.split(","),o=null===(n=i[0])||void 0===n||null===(r=n.match(/:(.*?);/))||void 0===r?void 0:r[1],s=atob(i[1]);let a=s.length;const l=new Uint8Array(a);for(;a--;)l[a]=s.charCodeAt(a);return new File([l],t,{type:o})},Yy=()=>"standalone"in navigator&&navigator.standalone||window.matchMedia("(display-mode: standalone)").matches,Ky=(e,t)=>{let n=0;t(0);for(const r of e)r.finally((()=>{n++;const r=Math.trunc(100*n/e.length);t(r),n===e.length-1&&t(100)}));return e};function Zy(e){return(0,Ae.jsxs)(wp,{sx:{position:"relative",display:"inline-flex"},children:[(0,Ae.jsx)(yf,{variant:"determinate",...e}),(0,Ae.jsx)(wp,{sx:{top:0,left:0,bottom:0,right:0,position:"absolute",display:"flex",alignItems:"center",justifyContent:"center"},children:(0,Ae.jsx)(vu,{variant:"caption",component:"div",color:e.color,children:"".concat(Ly(Number(e.value),1),"%")})})]})}const $y=e=>{const t=e.style?e.style:{},n=e.size?e.size:40,r=e.color?e.color:"#00A6FF";return(0,Ae.jsxs)(ws,{container:!0,direction:"column",style:{zIndex:40,paddingTop:e.topMargin?e.topMargin:"",...t},alignItems:"center",children:[(0,Ae.jsx)(yf,{size:n,style:{color:r}}),e.text&&(0,Ae.jsxs)("div",{style:{fontSize:"".concat(n/40,"rem")},children:[" ",e.text]})]})},Jy={primary:"#00A6FF",delete:Op,success:"#4caf50",create:"#6200ea",cancel:"#e0e0e0",light:"white",question:"rgba(255, 193, 7)",answer:"#4caf50",localize:"#535353"},Qy={primary:"rgba(0, 166, 255, 0.6)",delete:"rgba(241, 89, 89, 0.6)",success:"rgba(76, 175, 80, 0.6)",create:"rgba(98, 0, 234, 0.6)",cancel:"rgba(224, 224, 224, 0.6)",light:"rgba(255, 255, 255, 0.6)",question:"rgba(255, 193, 7)",answer:"rgba(76, 175, 80, 0.6)"},ev=e=>{var t,n,r,i,o,s,a,l,c,u;const{variant:d,style:h,fullHeight:p=!1,ref:f,className:g,lowerCase:m,waitIconColor:y}=e,v=null!==h&&void 0!==h?h:{},_=null!==(t=e.color)&&void 0!==t?t:"primary",b=e.submit?"submit":"button",x=e.textColor?e.textColor:"light"===_||"cancel"===_?Gp:"white",S={color:x,backgroundColor:"outlined"===d?"transparent":e.disabled?Qy[_]:Jy[_],borderColor:"outlined"===d?"delete"===_?Jy.delete:x:"transparent",height:p?"100%":"initial",...v},w=e.id?e.id:null!==(n=e.label)&&void 0!==n?n:"",E="small"===e.size?10:20;return e.children?(0,Ae.jsx)(Sa,{id:w,disabled:e.loading||e.disabled,style:S,variant:null!==(r=e.variant)&&void 0!==r?r:"contained",onClick:e.onClick,type:b,size:e.size?e.size:"medium",fullWidth:!!e.fullWidth,ref:f,className:g,children:(0,Ae.jsxs)(wp,{display:"flex",flexWrap:"nowrap",justifyContent:"space-between",alignItems:"center",columnGap:"0.5rem",width:e.fullChildrenWidth?"100%":"auto",children:[null!==(i=e.frontIcon)&&void 0!==i?i:(0,Ae.jsx)(Ae.Fragment,{}),e.children,null!==(o=e.trailingIcon)&&void 0!==o?o:(0,Ae.jsx)(Ae.Fragment,{}),e.loading&&(0,Ae.jsx)($y,{size:E,color:"light"===e.color?jp:"white"})]})}):(0,Ae.jsxs)(Sa,{id:w,disabled:e.loading||e.disabled,style:S,variant:null!==(s=e.variant)&&void 0!==s?s:"contained",onClick:e.onClick,type:b,size:e.size?e.size:"medium",fullWidth:!!e.fullWidth,ref:f,className:g,sx:{textTransform:m?"capitalize":""},children:[!e.loading&&e.frontIcon&&(0,Ae.jsxs)(Ae.Fragment,{children:[e.frontIcon,(0,Ae.jsx)("span",{style:{paddingLeft:e.frontIcon&&e.label?"0.2rem":0},children:"".concat(null!==(a=e.label)&&void 0!==a?a:"")})]}),!e.loading&&e.trailingIcon&&(0,Ae.jsxs)(Ae.Fragment,{children:["".concat(null!==(l=e.label)&&void 0!==l?l:"","  "),e.trailingIcon]}),!e.loading&&!e.trailingIcon&&!e.frontIcon&&(null!==(c=e.label)&&void 0!==c?c:""),e.loading&&(0,Ae.jsxs)(Ae.Fragment,{children:[(0,Ae.jsx)("span",{style:{marginRight:5},children:null!==(u=e.label)&&void 0!==u?u:""}),!e.progress&&(0,Ae.jsx)($y,{size:E,color:y||("light"===e.color?jp:"white"),style:{width:"unset"}})]}),!!e.progress&&(0,Ae.jsx)("div",{style:{marginLeft:5,height:"1.6rem",marginTop:-10},children:(0,Ae.jsx)(Zy,{style:{color:"white",fontSize:"0.5rem"},size:"2.2rem",value:e.progress,variant:"indeterminate"})})]})},tv=Zo()((()=>({root:{textAlign:"center",padding:20,borderRadius:10},title:{paddingBottom:10},topTitle:{fontSize:22,paddingBottom:10}}))),nv=e=>{const{classes:t}=tv();return(0,Ae.jsx)("div",{children:(0,Ae.jsx)(Ud,{open:!0,onClose:e.close,anchorEl:e.anchorEl,anchorOrigin:{vertical:"bottom",horizontal:"center"},transformOrigin:{vertical:"bottom",horizontal:"center"},children:(0,Ae.jsxs)("div",{className:t.root,children:[e.topTitle&&(0,Ae.jsx)("div",{className:t.topTitle,style:{color:e.colorTopTitle?e.colorTopTitle:"black"},children:e.topTitle}),(0,Ae.jsx)("div",{className:t.title,children:e.title}),(0,Ae.jsx)(ev,{color:"cancel",label:"Cancel",onClick:()=>e.close(),style:{marginRight:20},disabled:e.loading}),(0,Ae.jsx)(ev,{label:e.titleConfirm,color:"delete",onClick:()=>e.confirm(),disabled:e.loading,loading:e.loading})]})})})};var rv=__webpack_require__(10232);function iv(e,t,r,i,o){const s="undefined"!==typeof window&&"undefined"!==typeof window.matchMedia,[a,l]=n.useState((()=>o&&s?r(e).matches:i?i(e).matches:t));return(0,zu.c)((()=>{let t=!0;if(!s)return;const n=r(e),i=()=>{t&&l(n.matches)};return i(),n.addListener(i),()=>{t=!1,n.removeListener(i)}}),[e,r,s]),a}const ov=r.useSyncExternalStore;function sv(e,t,r,i){const o=n.useCallback((()=>t),[t]),s=n.useMemo((()=>{if(null!==i){const{matches:t}=i(e);return()=>t}return o}),[o,e,i]),[a,l]=n.useMemo((()=>{if(null===r)return[o,()=>()=>{}];const t=r(e);return[()=>t.matches,e=>(t.addListener(e),()=>{t.removeListener(e)})]}),[o,r,e]);return ov(l,a,s)}const av=()=>{const e=n.useContext(Le);if(null===e)throw new Error("MUI: Can not find utils in context. It looks like you forgot to wrap your component in LocalizationProvider, or pass dateAdapter prop directly.");return e},lv=()=>av().utils,cv=()=>av().defaultDates,uv=()=>av().localeText,dv=()=>{const e=lv();return n.useRef(e.date()).current},hv=e=>{let{date:t,disableFuture:n,disablePast:r,maxDate:i,minDate:o,isDateDisabled:s,utils:a}=e;const l=a.startOfDay(a.date());r&&a.isBefore(o,l)&&(o=l),n&&a.isAfter(i,l)&&(i=l);let c=t,u=t;for(a.isBefore(t,o)&&(c=a.date(o),u=null),a.isAfter(t,i)&&(u&&(u=a.date(i)),c=null);c||u;){if(c&&a.isAfter(c,i)&&(c=null),u&&a.isBefore(u,o)&&(u=null),c){if(!s(c))return c;c=a.addDays(c,1)}if(u){if(!s(u))return u;u=a.addDays(u,-1)}}return null},pv=(e,t,n)=>{if(null==t)return n;const r=e.date(t);return e.isValid(r)?r:n},fv=e=>1===e.length&&"year"===e[0],gv=e=>2===e.length&&-1!==e.indexOf("month")&&-1!==e.indexOf("year");function mv(e,t){var n;const r=lv(),i=cv(),o=(0,Oe.c)({props:e,name:t}),s=null!=(n=o.views)?n:["year","day"];return(0,d.c)({openTo:"day",disableFuture:!1,disablePast:!1},((e,t)=>fv(e)?{inputFormat:t.formats.year}:gv(e)?{disableMaskedInput:!0,inputFormat:t.formats.monthAndYear}:{inputFormat:t.formats.keyboardDate})(s,r),o,{views:s,minDate:pv(r,o.minDate,i.minDate),maxDate:pv(r,o.maxDate,i.maxDate)})}const yv={emptyValue:null,getTodayValue:e=>e.date(),parseInput:(e,t)=>{const n=e.date(t);return e.isValid(n)?n:null},areValuesEqual:(e,t,n)=>e.isEqual(t,n)};var vv=__webpack_require__(65912);const _v=(0,vv.c)((0,Ae.jsx)("path",{d:"M7 10l5 5 5-5z"}),"ArrowDropDown"),bv=(0,vv.c)((0,Ae.jsx)("path",{d:"M15.41 16.59L10.83 12l4.58-4.59L14 6l-6 6 6 6 1.41-1.41z"}),"ArrowLeft"),xv=(0,vv.c)((0,Ae.jsx)("path",{d:"M8.59 16.59L13.17 12 8.59 7.41 10 6l6 6-6 6-1.41-1.41z"}),"ArrowRight"),Sv=(0,vv.c)((0,Ae.jsx)("path",{d:"M17 12h-5v5h5v-5zM16 1v2H8V1H6v2H5c-1.11 0-1.99.9-1.99 2L3 19c0 1.1.89 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2h-1V1h-2zm3 18H5V8h14v11z"}),"Calendar"),wv=(0,vv.c)((0,Ae.jsxs)(n.Fragment,{children:[(0,Ae.jsx)("path",{d:"M11.99 2C6.47 2 2 6.48 2 12s4.47 10 9.99 10C17.52 22 22 17.52 22 12S17.52 2 11.99 2zM12 20c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8z"}),(0,Ae.jsx)("path",{d:"M12.5 7H11v6l5.25 3.15.75-1.23-4.5-2.67z"})]}),"Clock"),Ev=((0,vv.c)((0,Ae.jsx)("path",{d:"M9 11H7v2h2v-2zm4 0h-2v2h2v-2zm4 0h-2v2h2v-2zm2-7h-1V2h-2v2H8V2H6v2H5c-1.11 0-1.99.9-1.99 2L3 20c0 1.1.89 2 2 2h14c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2zm0 16H5V9h14v11z"}),"DateRange"),(0,vv.c)((0,Ae.jsx)("path",{d:"M3 17.25V21h3.75L17.81 9.94l-3.75-3.75L3 17.25zM20.71 7.04c.39-.39.39-1.02 0-1.41l-2.34-2.34a.9959.9959 0 00-1.41 0l-1.83 1.83 3.75 3.75 1.83-1.83z"}),"Pen"));(0,vv.c)((0,Ae.jsxs)(n.Fragment,{children:[(0,Ae.jsx)("path",{d:"M11.99 2C6.47 2 2 6.48 2 12s4.47 10 9.99 10C17.52 22 22 17.52 22 12S17.52 2 11.99 2zM12 20c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8z"}),(0,Ae.jsx)("path",{d:"M12.5 7H11v6l5.25 3.15.75-1.23-4.5-2.67z"})]}),"Time");function Pv(e){return(0,hs.c)("MuiPickersToolbar",e)}const Cv=(0,ds.c)("MuiPickersToolbar",["root","content","penIconButton","penIconButtonLandscape"]),Av=(0,cs.cp)("div",{name:"MuiPickersToolbar",slot:"Root",overridesResolver:(e,t)=>t.root})((e=>{let{theme:t,ownerState:n}=e;return(0,d.c)({display:"flex",flexDirection:"column",alignItems:"flex-start",justifyContent:"space-between",padding:t.spacing(2,3)},n.isLandscape&&{height:"auto",maxWidth:160,padding:16,justifyContent:"flex-start",flexWrap:"wrap"})})),kv=(0,cs.cp)(ws,{name:"MuiPickersToolbar",slot:"Content",overridesResolver:(e,t)=>t.content})((e=>{let{ownerState:t}=e;return(0,d.c)({flex:1},!t.isLandscape&&{alignItems:"center"})})),jv=(0,cs.cp)(Gu,{name:"MuiPickersToolbar",slot:"PenIconButton",overridesResolver:(e,t)=>[{["&.".concat(Cv.penIconButtonLandscape)]:t.penIconButtonLandscape},t.penIconButton]})({}),Iv=e=>"clock"===e?(0,Ae.jsx)(wv,{color:"inherit"}):(0,Ae.jsx)(Sv,{color:"inherit"}),Gv=n.forwardRef((function(e,t){const n=(0,Oe.c)({props:e,name:"MuiPickersToolbar"}),{children:r,className:i,getMobileKeyboardInputViewButtonText:o,isLandscape:s,isMobileKeyboardViewOpen:a,landscapeDirection:l="column",toggleMobileKeyboardView:c,toolbarTitle:u,viewType:d="calendar"}=n,h=n,p=uv(),f=(e=>{const{classes:t,isLandscape:n}=e,r={root:["root"],content:["content"],penIconButton:["penIconButton",n&&"penIconButtonLandscape"]};return(0,ls.c)(r,Pv,t)})(h);return(0,Ae.jsxs)(Av,{ref:t,className:(0,ts.c)(f.root,i),ownerState:h,children:[(0,Ae.jsx)(vu,{color:"text.secondary",variant:"overline",children:u}),(0,Ae.jsxs)(kv,{container:!0,justifyContent:"space-between",className:f.content,ownerState:h,direction:s?l:"row",alignItems:s?"flex-start":"flex-end",children:[r,(0,Ae.jsx)(jv,{onClick:c,className:f.penIconButton,ownerState:h,color:"inherit","aria-label":o?o(a,d):p.inputModeToggleButtonAriaLabel(a,d),children:a?Iv(d):(0,Ae.jsx)(Ev,{color:"inherit"})})]})]})}));function Tv(e){return(0,hs.c)("MuiDatePickerToolbar",e)}(0,ds.c)("MuiDatePickerToolbar",["root","title"]);const Mv=["parsedValue","isLandscape","isMobileKeyboardViewOpen","onChange","toggleMobileKeyboardView","toolbarFormat","toolbarPlaceholder","toolbarTitle","views"],Ov=(0,cs.cp)(Gv,{name:"MuiDatePickerToolbar",slot:"Root",overridesResolver:(e,t)=>t.root})({}),Rv=(0,cs.cp)(vu,{name:"MuiDatePickerToolbar",slot:"Title",overridesResolver:(e,t)=>t.title})((e=>{let{ownerState:t}=e;return(0,d.c)({},t.isLandscape&&{margin:"auto 16px auto auto"})})),Dv=n.forwardRef((function(e,t){const r=(0,Oe.c)({props:e,name:"MuiDatePickerToolbar"}),{parsedValue:i,isLandscape:o,isMobileKeyboardViewOpen:s,toggleMobileKeyboardView:a,toolbarFormat:l,toolbarPlaceholder:c="\u2013\u2013",toolbarTitle:u,views:h}=r,p=(0,Tt.c)(r,Mv),f=lv(),g=uv(),m=(e=>{const{classes:t}=e;return(0,ls.c)({root:["root"],title:["title"]},Tv,t)})(r),y=null!=u?u:g.datePickerDefaultToolbarTitle,v=n.useMemo((()=>i?l?f.formatByString(i,l):fv(h)?f.format(i,"year"):gv(h)?f.format(i,"month"):/en/.test(f.getCurrentLocaleCode())?f.format(i,"normalDateWithWeekday"):f.format(i,"normalDate"):c),[i,l,c,f,h]),_=r;return(0,Ae.jsx)(Ov,(0,d.c)({ref:t,toolbarTitle:y,isMobileKeyboardViewOpen:s,toggleMobileKeyboardView:a,isLandscape:o,className:m.root},p,{children:(0,Ae.jsx)(Rv,{variant:"h4",align:o?"left":"center",ownerState:_,className:m.title,children:v})}))})),Nv=n.createContext(null);function Lv(e){return(0,hs.c)("MuiDialogActions",e)}(0,ds.c)("MuiDialogActions",["root","spacing"]);const Vv=["className","disableSpacing"],Fv=(0,cs.cp)("div",{name:"MuiDialogActions",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,!n.disableSpacing&&t.spacing]}})((e=>{let{ownerState:t}=e;return(0,d.c)({display:"flex",alignItems:"center",padding:8,justifyContent:"flex-end",flex:"0 0 auto"},!t.disableSpacing&&{"& > :not(:first-of-type)":{marginLeft:8}})})),zv=n.forwardRef((function(e,t){const n=(0,Oe.c)({props:e,name:"MuiDialogActions"}),{className:r,disableSpacing:i=!1}=n,o=(0,Tt.c)(n,Vv),s=(0,d.c)({},n,{disableSpacing:i}),a=(e=>{const{classes:t,disableSpacing:n}=e,r={root:["root",!n&&"spacing"]};return(0,ls.c)(r,Lv,t)})(s);return(0,Ae.jsx)(Fv,(0,d.c)({className:(0,ts.c)(a.root,r),ownerState:s,ref:t},o))})),Bv=["onAccept","onClear","onCancel","onSetToday","actions"],Uv=e=>{const{onAccept:t,onClear:r,onCancel:i,onSetToday:o,actions:s}=e,a=(0,Tt.c)(e,Bv),l=n.useContext(Nv),c=uv(),u="function"===typeof s?s(l):s;if(null==u||0===u.length)return null;const h=null==u?void 0:u.map((e=>{switch(e){case"clear":return(0,Ae.jsx)(Sa,{onClick:r,children:c.clearButtonLabel},e);case"cancel":return(0,Ae.jsx)(Sa,{onClick:i,children:c.cancelButtonLabel},e);case"accept":return(0,Ae.jsx)(Sa,{onClick:t,children:c.okButtonLabel},e);case"today":return(0,Ae.jsx)(Sa,{onClick:o,children:c.todayButtonLabel},e);default:return null}}));return(0,Ae.jsx)(zv,(0,d.c)({},a,{children:h}))};function Wv(e){return(0,hs.c)("MuiPickersPopper",e)}(0,ds.c)("MuiPickersPopper",["root","paper"]);function Hv(e,t){return Array.isArray(t)?t.every((t=>-1!==e.indexOf(t))):-1!==e.indexOf(t)}const qv=(e,t)=>n=>{"Enter"!==n.key&&" "!==n.key||(e(n),n.preventDefault(),n.stopPropagation()),t&&t(n)},Xv=function(){const e=(arguments.length>0&&void 0!==arguments[0]?arguments[0]:document).activeElement;return e?e.shadowRoot?Xv(e.shadowRoot):e:null},Yv=["onClick","onTouchStart"],Kv=e=>{const{classes:t}=e;return(0,ls.c)({root:["root"],paper:["paper"]},Wv,t)},Zv=(0,cs.cp)(Kc,{name:"MuiPickersPopper",slot:"Root",overridesResolver:(e,t)=>t.root})((e=>{let{theme:t}=e;return{zIndex:t.zIndex.modal}})),$v=(0,cs.cp)(Qu,{name:"MuiPickersPopper",slot:"Paper",overridesResolver:(e,t)=>t.paper})((e=>{let{ownerState:t}=e;return(0,d.c)({transformOrigin:"top center",outline:0},"top"===t.placement&&{transformOrigin:"bottom center"})}));function Jv(e){var t;const r=(0,Oe.c)({props:e,name:"MuiPickersPopper"}),{anchorEl:i,children:o,containerRef:s=null,onBlur:a,onClose:l,onClear:c,onAccept:u,onCancel:h,onSetToday:p,open:f,PopperProps:g,role:m,TransitionComponent:y=il,TrapFocusProps:v,PaperProps:_={},components:b,componentsProps:x}=r;n.useEffect((()=>{function e(e){!f||"Escape"!==e.key&&"Esc"!==e.key||l()}return document.addEventListener("keydown",e),()=>{document.removeEventListener("keydown",e)}}),[l,f]);const S=n.useRef(null);n.useEffect((()=>{"tooltip"!==m&&(f?S.current=Xv(document):S.current&&S.current instanceof HTMLElement&&setTimeout((()=>{S.current instanceof HTMLElement&&S.current.focus()})))}),[f,m]);const[w,E,P]=function(e,t){const r=n.useRef(!1),i=n.useRef(!1),o=n.useRef(null),s=n.useRef(!1);n.useEffect((()=>{if(e)return document.addEventListener("mousedown",t,!0),document.addEventListener("touchstart",t,!0),()=>{document.removeEventListener("mousedown",t,!0),document.removeEventListener("touchstart",t,!0),s.current=!1};function t(){s.current=!0}}),[e]);const a=(0,As.c)((e=>{if(!s.current)return;const n=i.current;i.current=!1;const a=(0,Tu.c)(o.current);if(!o.current||"clientX"in e&&function(e,t){return t.documentElement.clientWidth<e.clientX||t.documentElement.clientHeight<e.clientY}(e,a))return;if(r.current)return void(r.current=!1);let l;l=e.composedPath?e.composedPath().indexOf(o.current)>-1:!a.documentElement.contains(e.target)||o.current.contains(e.target),l||n||t(e)})),l=()=>{i.current=!0};return n.useEffect((()=>{if(e){const e=(0,Tu.c)(o.current),t=()=>{r.current=!0};return e.addEventListener("touchstart",a),e.addEventListener("touchmove",t),()=>{e.removeEventListener("touchstart",a),e.removeEventListener("touchmove",t)}}}),[e,a]),n.useEffect((()=>{if(e){const e=(0,Tu.c)(o.current);return e.addEventListener("click",a),()=>{e.removeEventListener("click",a),i.current=!1}}}),[e,a]),[o,l,l]}(f,null!=a?a:l),C=n.useRef(null),A=(0,Cs.c)(C,s),k=(0,Cs.c)(A,w),j=r,I=Kv(j),{onClick:G,onTouchStart:T}=_,M=(0,Tt.c)(_,Yv),O=null!=(t=null==b?void 0:b.ActionBar)?t:Uv,R=(null==b?void 0:b.PaperContent)||n.Fragment;return(0,Ae.jsx)(Zv,(0,d.c)({transition:!0,role:m,open:f,anchorEl:i,onKeyDown:e=>{"Escape"===e.key&&(e.stopPropagation(),l())},className:I.root},g,{children:e=>{let{TransitionProps:t,placement:n}=e;return(0,Ae.jsx)(pd,(0,d.c)({open:f,disableAutoFocus:!0,disableRestoreFocus:!0,disableEnforceFocus:"tooltip"===m,isEnabled:()=>!0},v,{children:(0,Ae.jsx)(y,(0,d.c)({},t,{children:(0,Ae.jsx)($v,(0,d.c)({tabIndex:-1,elevation:8,ref:k,onClick:e=>{E(e),G&&G(e)},onTouchStart:e=>{P(e),T&&T(e)},ownerState:(0,d.c)({},j,{placement:n}),className:I.paper},M,{children:(0,Ae.jsxs)(R,(0,d.c)({},null==x?void 0:x.paperContent,{children:[o,(0,Ae.jsx)(O,(0,d.c)({onAccept:u,onClear:c,onCancel:h,onSetToday:p,actions:[]},null==x?void 0:x.actionBar))]}))}))}))}))}}))}function Qv(e){const{children:t,DateInputProps:r,KeyboardDateInputComponent:i,onClear:o,onDismiss:s,onCancel:a,onAccept:l,onSetToday:c,open:u,PopperProps:h,PaperProps:p,TransitionComponent:f,components:g,componentsProps:m}=e,y=n.useRef(null),v=(0,Cs.c)(r.inputRef,y);return(0,Ae.jsxs)(Nv.Provider,{value:"desktop",children:[(0,Ae.jsx)(i,(0,d.c)({},r,{inputRef:v})),(0,Ae.jsx)(Jv,{role:"dialog",open:u,anchorEl:y.current,TransitionComponent:f,PopperProps:h,PaperProps:p,onClose:s,onCancel:a,onClear:o,onAccept:l,onSetToday:c,components:g,componentsProps:m,children:t})]})}function e_(e){let{onChange:t,onViewChange:r,openTo:i,view:o,views:s}=e;var a,l;const[c,u]=(0,$c.c)({name:"Picker",state:"view",controlled:o,default:i&&Hv(s,i)?i:s[0]}),d=null!=(a=s[s.indexOf(c)-1])?a:null,h=null!=(l=s[s.indexOf(c)+1])?l:null,p=n.useCallback((e=>{u(e),r&&r(e)}),[u,r]),f=n.useCallback((()=>{h&&p(h)}),[h,p]),g=n.useCallback(((e,n)=>{const r="finish"===n,i=r&&Boolean(h)?"partial":n;t(e,i),r&&f()}),[h,t,f]);return{handleChangeAndOpenNext:g,nextView:h,previousView:d,openNext:f,openView:c,setOpenView:p}}const t_=220,n_=36,r_={x:t_/2,y:t_/2},i_=r_.x-r_.x,o_=0-r_.y,s_=(e,t,n)=>{const r=t-r_.x,i=n-r_.y;let o=(e=>e*(180/Math.PI))(Math.atan2(i_,o_)-Math.atan2(r,i));o=Math.round(o/e)*e,o%=360;const s=r**2+i**2;return{value:Math.floor(o/e)||0,distance:Math.sqrt(s)}};function a_(e){return(0,hs.c)("MuiClockPointer",e)}(0,ds.c)("MuiClockPointer",["root","thumb"]);const l_=["className","hasSelected","isInner","type","value"],c_=e=>{const{classes:t}=e;return(0,ls.c)({root:["root"],thumb:["thumb"]},a_,t)},u_=(0,cs.cp)("div",{name:"MuiClockPointer",slot:"Root",overridesResolver:(e,t)=>t.root})((e=>{let{theme:t,ownerState:n}=e;return(0,d.c)({width:2,backgroundColor:t.palette.primary.main,position:"absolute",left:"calc(50% - 1px)",bottom:"50%",transformOrigin:"center bottom 0px"},n.shouldAnimate&&{transition:t.transitions.create(["transform","height"])})})),d_=(0,cs.cp)("div",{name:"MuiClockPointer",slot:"Thumb",overridesResolver:(e,t)=>t.thumb})((e=>{let{theme:t,ownerState:n}=e;return(0,d.c)({width:4,height:4,backgroundColor:t.palette.primary.contrastText,borderRadius:"50%",position:"absolute",top:-21,left:"calc(50% - ".concat(18,"px)"),border:"".concat(16,"px solid ").concat(t.palette.primary.main),boxSizing:"content-box"},n.hasSelected&&{backgroundColor:t.palette.primary.main})}));function h_(e){const t=(0,Oe.c)({props:e,name:"MuiClockPointer"}),{className:r,isInner:i,type:o,value:s}=t,a=(0,Tt.c)(t,l_),l=n.useRef(o);n.useEffect((()=>{l.current=o}),[o]);const c=(0,d.c)({},t,{shouldAnimate:l.current!==o}),u=c_(c);return(0,Ae.jsx)(u_,(0,d.c)({style:(()=>{let e=360/("hours"===o?12:60)*s;return"hours"===o&&s>12&&(e-=360),{height:Math.round((i?.26:.4)*t_),transform:"rotateZ(".concat(e,"deg)")}})(),className:(0,ts.c)(r,u.root),ownerState:c},a,{children:(0,Ae.jsx)(d_,{ownerState:c,className:u.thumb})}))}function p_(e){return(0,hs.c)("MuiClock",e)}(0,ds.c)("MuiClock",["root","clock","wrapper","squareMask","pin","amButton","pmButton"]);const f_=(0,cs.cp)("div",{name:"MuiClock",slot:"Root",overridesResolver:(e,t)=>t.root})((e=>{let{theme:t}=e;return{display:"flex",justifyContent:"center",alignItems:"center",margin:t.spacing(2)}})),g_=(0,cs.cp)("div",{name:"MuiClock",slot:"Clock",overridesResolver:(e,t)=>t.clock})({backgroundColor:"rgba(0,0,0,.07)",borderRadius:"50%",height:220,width:220,flexShrink:0,position:"relative",pointerEvents:"none"}),m_=(0,cs.cp)("div",{name:"MuiClock",slot:"Wrapper",overridesResolver:(e,t)=>t.wrapper})({"&:focus":{outline:"none"}}),y_=(0,cs.cp)("div",{name:"MuiClock",slot:"SquareMask",overridesResolver:(e,t)=>t.squareMask})((e=>{let{ownerState:t}=e;return(0,d.c)({width:"100%",height:"100%",position:"absolute",pointerEvents:"auto",outline:0,touchAction:"none",userSelect:"none"},t.disabled?{}:{"@media (pointer: fine)":{cursor:"pointer",borderRadius:"50%"},"&:active":{cursor:"move"}})})),v_=(0,cs.cp)("div",{name:"MuiClock",slot:"Pin",overridesResolver:(e,t)=>t.pin})((e=>{let{theme:t}=e;return{width:6,height:6,borderRadius:"50%",backgroundColor:t.palette.primary.main,position:"absolute",top:"50%",left:"50%",transform:"translate(-50%, -50%)"}})),__=(0,cs.cp)(Gu,{name:"MuiClock",slot:"AmButton",overridesResolver:(e,t)=>t.amButton})((e=>{let{theme:t,ownerState:n}=e;return(0,d.c)({zIndex:1,position:"absolute",bottom:n.ampmInClock?64:8,left:8},"am"===n.meridiemMode&&{backgroundColor:t.palette.primary.main,color:t.palette.primary.contrastText,"&:hover":{backgroundColor:t.palette.primary.light}})})),b_=(0,cs.cp)(Gu,{name:"MuiClock",slot:"PmButton",overridesResolver:(e,t)=>t.pmButton})((e=>{let{theme:t,ownerState:n}=e;return(0,d.c)({zIndex:1,position:"absolute",bottom:n.ampmInClock?64:8,right:8},"pm"===n.meridiemMode&&{backgroundColor:t.palette.primary.main,color:t.palette.primary.contrastText,"&:hover":{backgroundColor:t.palette.primary.light}})}));function x_(e){const t=(0,Oe.c)({props:e,name:"MuiClock"}),{ampm:r,ampmInClock:i,autoFocus:o,children:s,date:a,getClockLabelText:l,handleMeridiemChange:c,isTimeDisabled:u,meridiemMode:d,minutesStep:h=1,onChange:p,selectedId:f,type:g,value:m,disabled:y,readOnly:v,className:_}=t,b=t,x=lv(),S=n.useContext(Nv),w=n.useRef(!1),E=(e=>{const{classes:t}=e;return(0,ls.c)({root:["root"],clock:["clock"],wrapper:["wrapper"],squareMask:["squareMask"],pin:["pin"],amButton:["amButton"],pmButton:["pmButton"]},p_,t)})(b),P=u(m,g),C=!r&&"hours"===g&&(m<1||m>12),A=(e,t)=>{y||v||u(e,g)||p(e,t)},k=(e,t)=>{let{offsetX:n,offsetY:i}=e;if(void 0===n){const t=e.target.getBoundingClientRect();n=e.changedTouches[0].clientX-t.left,i=e.changedTouches[0].clientY-t.top}const o="seconds"===g||"minutes"===g?function(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1;const r=6*n;let{value:i}=s_(r,e,t);return i=i*n%60,i}(n,i,h):((e,t,n)=>{const{value:r,distance:i}=s_(30,e,t);let o=r||12;return n?o%=12:i<t_/2-n_&&(o+=12,o%=24),o})(n,i,Boolean(r));A(o,t)},j=n.useMemo((()=>"hours"===g||m%5===0),[g,m]),I="minutes"===g?h:1,G=n.useRef(null);(0,sl.c)((()=>{o&&G.current.focus()}),[o]);return(0,Ae.jsxs)(f_,{className:(0,ts.c)(_,E.root),children:[(0,Ae.jsxs)(g_,{className:E.clock,children:[(0,Ae.jsx)(y_,{onTouchMove:e=>{w.current=!0,k(e,"shallow")},onTouchEnd:e=>{w.current&&(k(e,"finish"),w.current=!1)},onMouseUp:e=>{w.current&&(w.current=!1),k(e.nativeEvent,"finish")},onMouseMove:e=>{e.buttons>0&&k(e.nativeEvent,"shallow")},ownerState:{disabled:y},className:E.squareMask}),!P&&(0,Ae.jsxs)(n.Fragment,{children:[(0,Ae.jsx)(v_,{className:E.pin}),a&&(0,Ae.jsx)(h_,{type:g,value:m,isInner:C,hasSelected:j})]}),(0,Ae.jsx)(m_,{"aria-activedescendant":f,"aria-label":l(g,a,x),ref:G,role:"listbox",onKeyDown:e=>{if(!w.current)switch(e.key){case"Home":A(0,"partial"),e.preventDefault();break;case"End":A("minutes"===g?59:23,"partial"),e.preventDefault();break;case"ArrowUp":A(m+I,"partial"),e.preventDefault();break;case"ArrowDown":A(m-I,"partial"),e.preventDefault()}},tabIndex:0,className:E.wrapper,children:s})]}),r&&("desktop"===S||i)&&(0,Ae.jsxs)(n.Fragment,{children:[(0,Ae.jsx)(__,{onClick:v?void 0:()=>c("am"),disabled:y||null===d,ownerState:b,className:E.amButton,children:(0,Ae.jsx)(vu,{variant:"caption",children:"AM"})}),(0,Ae.jsx)(b_,{disabled:y||null===d,onClick:v?void 0:()=>c("pm"),ownerState:b,className:E.pmButton,children:(0,Ae.jsx)(vu,{variant:"caption",children:"PM"})})]})]})}function S_(e){return(0,hs.c)("MuiClockNumber",e)}const w_=(0,ds.c)("MuiClockNumber",["root","selected","disabled"]),E_=["className","disabled","index","inner","label","selected"],P_=(0,cs.cp)("span",{name:"MuiClockNumber",slot:"Root",overridesResolver:(e,t)=>[t.root,{["&.".concat(w_.disabled)]:t.disabled},{["&.".concat(w_.selected)]:t.selected}]})((e=>{let{theme:t,ownerState:n}=e;return(0,d.c)({height:n_,width:n_,position:"absolute",left:"calc((100% - ".concat(n_,"px) / 2)"),display:"inline-flex",justifyContent:"center",alignItems:"center",borderRadius:"50%",color:t.palette.text.primary,fontFamily:t.typography.fontFamily,"&:focused":{backgroundColor:t.palette.background.paper},["&.".concat(w_.selected)]:{color:t.palette.primary.contrastText},["&.".concat(w_.disabled)]:{pointerEvents:"none",color:t.palette.text.disabled}},n.inner&&(0,d.c)({},t.typography.body2,{color:t.palette.text.secondary}))}));function C_(e){const t=(0,Oe.c)({props:e,name:"MuiClockNumber"}),{className:n,disabled:r,index:i,inner:o,label:s,selected:a}=t,l=(0,Tt.c)(t,E_),c=t,u=(e=>{const{classes:t,selected:n,disabled:r}=e,i={root:["root",n&&"selected",r&&"disabled"]};return(0,ls.c)(i,S_,t)})(c),h=i%12/12*Math.PI*2-Math.PI/2,p=(t_-n_-2)/2*(o?.65:1),f=Math.round(Math.cos(h)*p),g=Math.round(Math.sin(h)*p);return(0,Ae.jsx)(P_,(0,d.c)({className:(0,ts.c)(n,u.root),"aria-disabled":!!r||void 0,"aria-selected":!!a||void 0,role:"option",style:{transform:"translate(".concat(f,"px, ").concat(g+(t_-n_)/2,"px")},ownerState:c},l,{children:s}))}const A_=e=>{let{ampm:t,date:n,getClockNumberText:r,isDisabled:i,selectedId:o,utils:s}=e;const a=n?s.getHours(n):null,l=[],c=t?12:23,u=e=>null!==a&&(t?12===e?12===a||0===a:a===e||a-12===e:a===e);for(let d=t?1:0;d<=c;d+=1){let e=d.toString();0===d&&(e="00");const n=!t&&(0===d||d>12);e=s.formatNumber(e);const a=u(d);l.push((0,Ae.jsx)(C_,{id:a?o:void 0,index:d,inner:n,selected:a,disabled:i(d),label:e,"aria-label":r(e)},d))}return l},k_=e=>{let{utils:t,value:n,isDisabled:r,getClockNumberText:i,selectedId:o}=e;const s=t.formatNumber;return[[5,s("05")],[10,s("10")],[15,s("15")],[20,s("20")],[25,s("25")],[30,s("30")],[35,s("35")],[40,s("40")],[45,s("45")],[50,s("50")],[55,s("55")],[0,s("00")]].map(((e,t)=>{let[s,a]=e;const l=s===n;return(0,Ae.jsx)(C_,{label:a,id:l?o:void 0,index:t+1,inner:!1,disabled:r(s),selected:l,"aria-label":i(a)},s)}))};function j_(e){return(0,hs.c)("MuiPickersArrowSwitcher",e)}(0,ds.c)("MuiPickersArrowSwitcher",["root","spacer","button"]);const I_=["children","className","components","componentsProps","isLeftDisabled","isLeftHidden","isRightDisabled","isRightHidden","leftArrowButtonText","onLeftClick","onRightClick","rightArrowButtonText"],G_=(0,cs.cp)("div",{name:"MuiPickersArrowSwitcher",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"flex"}),T_=(0,cs.cp)("div",{name:"MuiPickersArrowSwitcher",slot:"Spacer",overridesResolver:(e,t)=>t.spacer})((e=>{let{theme:t}=e;return{width:t.spacing(3)}})),M_=(0,cs.cp)(Gu,{name:"MuiPickersArrowSwitcher",slot:"Button",overridesResolver:(e,t)=>t.button})((e=>{let{ownerState:t}=e;return(0,d.c)({},t.hidden&&{visibility:"hidden"})})),O_=n.forwardRef((function(e,t){const n=(0,Oe.c)({props:e,name:"MuiPickersArrowSwitcher"}),{children:r,className:i,components:o,componentsProps:s,isLeftDisabled:a,isLeftHidden:l,isRightDisabled:c,isRightHidden:u,leftArrowButtonText:h,onLeftClick:p,onRightClick:f,rightArrowButtonText:g}=n,m=(0,Tt.c)(n,I_),y="rtl"===Go().direction,v=(null==s?void 0:s.leftArrowButton)||{},_=(null==o?void 0:o.LeftArrowIcon)||bv,b=(null==s?void 0:s.rightArrowButton)||{},x=(null==o?void 0:o.RightArrowIcon)||xv,S=n,w=(e=>{const{classes:t}=e;return(0,ls.c)({root:["root"],spacer:["spacer"],button:["button"]},j_,t)})(S);return(0,Ae.jsxs)(G_,(0,d.c)({ref:t,className:(0,ts.c)(w.root,i),ownerState:S},m,{children:[(0,Ae.jsx)(M_,(0,d.c)({as:null==o?void 0:o.LeftArrowButton,size:"small","aria-label":h,title:h,disabled:a,edge:"end",onClick:p},v,{className:(0,ts.c)(w.button,v.className),ownerState:(0,d.c)({},S,v,{hidden:l}),children:y?(0,Ae.jsx)(x,{}):(0,Ae.jsx)(_,{})})),r?(0,Ae.jsx)(vu,{variant:"subtitle1",component:"span",children:r}):(0,Ae.jsx)(T_,{className:w.spacer,ownerState:S}),(0,Ae.jsx)(M_,(0,d.c)({as:null==o?void 0:o.RightArrowButton,size:"small","aria-label":g,title:g,edge:"start",disabled:c,onClick:f},b,{className:(0,ts.c)(w.button,b.className),ownerState:(0,d.c)({},S,b,{hidden:u}),children:y?(0,Ae.jsx)(_,{}):(0,Ae.jsx)(x,{})}))]}))})),R_=(e,t,n)=>{if(n){if((e>=12?"pm":"am")!==t)return"am"===t?e-12:e+12}return e},D_=(e,t)=>3600*t.getHours(e)+60*t.getMinutes(e)+t.getSeconds(e);function N_(e,t,r){const i=lv(),o=((e,t)=>e?t.getHours(e)>=12?"pm":"am":null)(e,i),s=n.useCallback((n=>{const o=null==e?null:((e,t,n,r)=>{const i=R_(r.getHours(e),t,n);return r.setHours(e,i)})(e,n,Boolean(t),i);r(o,"partial")}),[t,e,r,i]);return{meridiemMode:o,handleMeridiemChange:s}}function L_(e){return(0,hs.c)("MuiClockPicker",e)}(0,ds.c)("MuiClockPicker",["root","arrowSwitcher"]);const V_=(0,cs.cp)("div")({overflowX:"hidden",width:320,maxHeight:358,display:"flex",flexDirection:"column",margin:"0 auto"}),F_=(0,cs.cp)(V_,{name:"MuiClockPicker",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"flex",flexDirection:"column"}),z_=(0,cs.cp)(O_,{name:"MuiClockPicker",slot:"ArrowSwitcher",overridesResolver:(e,t)=>t.arrowSwitcher})({position:"absolute",right:12,top:15}),B_=()=>{},U_=n.forwardRef((function(e,t){const r=(0,Oe.c)({props:e,name:"MuiClockPicker"}),{ampm:i=!1,ampmInClock:o=!1,autoFocus:s,components:a,componentsProps:l,date:c,disableIgnoringDatePartForTimeValidation:u,getClockLabelText:h,getHoursClockNumberText:p,getMinutesClockNumberText:f,getSecondsClockNumberText:g,leftArrowButtonText:m,maxTime:y,minTime:v,minutesStep:_=1,rightArrowButtonText:b,shouldDisableTime:x,showViewSwitcher:S,onChange:w,view:E,views:P=["hours","minutes"],openTo:C,onViewChange:A,className:k,disabled:j,readOnly:I}=r;B_({leftArrowButtonText:m,rightArrowButtonText:b,getClockLabelText:h,getHoursClockNumberText:p,getMinutesClockNumberText:f,getSecondsClockNumberText:g});const G=uv(),T=null!=m?m:G.openPreviousView,M=null!=b?b:G.openNextView,O=null!=h?h:G.clockLabelText,R=null!=p?p:G.hoursClockNumberText,D=null!=f?f:G.minutesClockNumberText,N=null!=g?g:G.secondsClockNumberText,{openView:L,setOpenView:V,nextView:F,previousView:z,handleChangeAndOpenNext:B}=e_({view:E,views:P,openTo:C,onViewChange:A,onChange:w}),U=dv(),W=lv(),H=n.useMemo((()=>c||W.setSeconds(W.setMinutes(W.setHours(U,0),0),0)),[c,U,W]),{meridiemMode:q,handleMeridiemChange:X}=N_(H,i,B),Y=n.useCallback(((e,t)=>{const n=function(){let e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=arguments.length>1?arguments[1]:void 0;return(n,r)=>e?t.isAfter(n,r):D_(n,t)>D_(r,t)}(u,W),r=e=>{let{start:t,end:r}=e;return(!v||!n(v,r))&&(!y||!n(t,y))},o=function(e){return e%(arguments.length>1&&void 0!==arguments[1]?arguments[1]:1)===0&&(!x||!x(e,t))};switch(t){case"hours":{const t=R_(e,q,i),n=W.setHours(H,t);return!r({start:W.setSeconds(W.setMinutes(n,0),0),end:W.setSeconds(W.setMinutes(n,59),59)})||!o(t)}case"minutes":{const t=W.setMinutes(H,e);return!r({start:W.setSeconds(t,0),end:W.setSeconds(t,59)})||!o(e,_)}case"seconds":{const t=W.setSeconds(H,e);return!r({start:t,end:t})||!o(e)}default:throw new Error("not supported")}}),[i,H,u,y,q,v,_,x,W]),K=(0,Zc.c)(),Z=n.useMemo((()=>{switch(L){case"hours":{const e=(e,t)=>{const n=R_(e,q,i);B(W.setHours(H,n),t)};return{onChange:e,value:W.getHours(H),children:A_({date:c,utils:W,ampm:i,onChange:e,getClockNumberText:R,isDisabled:e=>j||Y(e,"hours"),selectedId:K})}}case"minutes":{const e=W.getMinutes(H),t=(e,t)=>{B(W.setMinutes(H,e),t)};return{value:e,onChange:t,children:k_({utils:W,value:e,onChange:t,getClockNumberText:D,isDisabled:e=>j||Y(e,"minutes"),selectedId:K})}}case"seconds":{const e=W.getSeconds(H),t=(e,t)=>{B(W.setSeconds(H,e),t)};return{value:e,onChange:t,children:k_({utils:W,value:e,onChange:t,getClockNumberText:N,isDisabled:e=>j||Y(e,"seconds"),selectedId:K})}}default:throw new Error("You must provide the type for ClockView")}}),[L,W,c,i,R,D,N,q,B,H,Y,K,j]),$=r,J=(e=>{const{classes:t}=e;return(0,ls.c)({root:["root"],arrowSwitcher:["arrowSwitcher"]},L_,t)})($);return(0,Ae.jsxs)(F_,{ref:t,className:(0,ts.c)(J.root,k),ownerState:$,children:[S&&(0,Ae.jsx)(z_,{className:J.arrowSwitcher,leftArrowButtonText:T,rightArrowButtonText:M,components:a,componentsProps:l,onLeftClick:()=>V(z),onRightClick:()=>V(F),isLeftDisabled:!z,isRightDisabled:!F,ownerState:$}),(0,Ae.jsx)(x_,(0,d.c)({autoFocus:s,date:c,ampmInClock:o,type:L,ampm:i,getClockLabelText:O,minutesStep:_,isTimeDisabled:Y,meridiemMode:q,handleMeridiemChange:X,selectedId:K,disabled:j,readOnly:I},Z))]})}));function W_(e){return(0,hs.c)("PrivatePickersMonth",e)}const H_=(0,ds.c)("PrivatePickersMonth",["root","selected"]),q_=["disabled","onSelect","selected","value","tabIndex","hasFocus","onFocus","onBlur"],X_=(0,cs.cp)(vu,{name:"PrivatePickersMonth",slot:"Root",overridesResolver:(e,t)=>[t.root,{["&.".concat(H_.selected)]:t.selected}]})((e=>{let{theme:t}=e;return(0,d.c)({flex:"1 0 33.33%",display:"flex",alignItems:"center",justifyContent:"center",color:"unset",backgroundColor:"transparent",border:0,outline:0},t.typography.subtitle1,{margin:"8px 0",height:36,borderRadius:18,cursor:"pointer","&:focus, &:hover":{backgroundColor:(0,Ps.W4)(t.palette.action.active,t.palette.action.hoverOpacity)},"&:disabled":{pointerEvents:"none",color:t.palette.text.secondary},["&.".concat(H_.selected)]:{color:t.palette.primary.contrastText,backgroundColor:t.palette.primary.main,"&:focus, &:hover":{backgroundColor:t.palette.primary.dark}}})})),Y_=()=>{},K_=e=>{const{disabled:t,onSelect:r,selected:i,value:o,tabIndex:s,hasFocus:a,onFocus:l=Y_,onBlur:c=Y_}=e,u=(0,Tt.c)(e,q_),h=(e=>{const{classes:t,selected:n}=e,r={root:["root",n&&"selected"]};return(0,ls.c)(r,W_,t)})(e),p=()=>{r(o)},f=n.useRef(null);return(0,zu.c)((()=>{var e;a&&(null==(e=f.current)||e.focus())}),[a]),(0,Ae.jsx)(X_,(0,d.c)({ref:f,component:"button",type:"button",className:h.root,tabIndex:s,onClick:p,onKeyDown:qv(p),color:i?"primary":void 0,variant:i?"h5":"subtitle1",disabled:t,onFocus:e=>l(e,o),onBlur:e=>c(e,o)},u))};function Z_(e){return(0,hs.c)("MuiMonthPicker",e)}(0,ds.c)("MuiMonthPicker",["root"]);const $_=["className","date","disabled","disableFuture","disablePast","maxDate","minDate","onChange","shouldDisableMonth","readOnly","disableHighlightToday","autoFocus","onMonthFocus","hasFocus","onFocusedViewChange"];const J_=(0,cs.cp)("div",{name:"MuiMonthPicker",slot:"Root",overridesResolver:(e,t)=>t.root})({width:310,display:"flex",flexWrap:"wrap",alignContent:"stretch",margin:"0 4px"}),Q_=n.forwardRef((function(e,t){const r=lv(),i=dv(),o=function(e,t){const n=lv(),r=cv(),i=(0,Oe.c)({props:e,name:t});return(0,d.c)({disableFuture:!1,disablePast:!1},i,{minDate:pv(n,i.minDate,r.minDate),maxDate:pv(n,i.maxDate,r.maxDate)})}(e,"MuiMonthPicker"),{className:s,date:a,disabled:l,disableFuture:c,disablePast:u,maxDate:h,minDate:p,onChange:f,shouldDisableMonth:g,readOnly:m,disableHighlightToday:y,autoFocus:v=!1,onMonthFocus:_,hasFocus:b,onFocusedViewChange:x}=o,S=(0,Tt.c)(o,$_),w=o,E=(e=>{const{classes:t}=e;return(0,ls.c)({root:["root"]},Z_,t)})(w),P=(0,Ie.c)(),C=n.useMemo((()=>null!=a?a:r.startOfMonth(i)),[i,r,a]),A=n.useMemo((()=>null!=a?r.getMonth(a):y?null:r.getMonth(i)),[i,a,r,y]),[k,j]=n.useState((()=>A||r.getMonth(i))),I=n.useCallback((e=>{const t=r.startOfMonth(u&&r.isAfter(i,p)?i:p),n=r.startOfMonth(c&&r.isBefore(i,h)?i:h);return!!r.isBefore(e,t)||(!!r.isAfter(e,n)||!!g&&g(e))}),[c,u,h,p,i,g,r]),G=e=>{if(m)return;const t=r.setMonth(C,e);f(t,"finish")},[T,M]=(0,$c.c)({name:"MonthPicker",state:"hasFocus",controlled:b,default:v}),O=n.useCallback((e=>{M(e),x&&x(e)}),[M,x]),R=n.useCallback((e=>{I(r.setMonth(C,e))||(j(e),O(!0),_&&_(e))}),[I,r,C,O,_]);n.useEffect((()=>{j((e=>null!==A&&e!==A?A:e))}),[A]);const D=(0,As.c)((e=>{const t=12;switch(e.key){case"ArrowUp":R((t+k-3)%t),e.preventDefault();break;case"ArrowDown":R((t+k+3)%t),e.preventDefault();break;case"ArrowLeft":R((t+k+("ltr"===P.direction?-1:1))%t),e.preventDefault();break;case"ArrowRight":R((t+k+("ltr"===P.direction?1:-1))%t),e.preventDefault()}})),N=n.useCallback(((e,t)=>{R(t)}),[R]),L=n.useCallback((()=>{O(!1)}),[O]),V=r.getMonth(i);return(0,Ae.jsx)(J_,(0,d.c)({ref:t,className:(0,ts.c)(E.root,s),ownerState:w,onKeyDown:D},S,{children:r.getMonthArray(C).map((e=>{const t=r.getMonth(e),n=r.format(e,"monthShort"),i=l||I(e);return(0,Ae.jsx)(K_,{value:t,selected:t===A,tabIndex:t!==k||i?-1:0,hasFocus:T&&t===k,onSelect:G,onFocus:N,onBlur:L,disabled:i,"aria-current":V===t?"date":void 0,children:n},n)}))}))}));const eb=e=>{let{props:t,value:n,adapter:r}=e;const i=r.utils.date(),o=r.utils.date(n),s=pv(r.utils,t.minDate,r.defaultDates.minDate),a=pv(r.utils,t.maxDate,r.defaultDates.maxDate);if(null===o)return null;switch(!0){case!r.utils.isValid(n):return"invalidDate";case Boolean(t.shouldDisableDate&&t.shouldDisableDate(o)):return"shouldDisableDate";case Boolean(t.disableFuture&&r.utils.isAfterDay(o,i)):return"disableFuture";case Boolean(t.disablePast&&r.utils.isBeforeDay(o,i)):return"disablePast";case Boolean(s&&r.utils.isBeforeDay(o,s)):return"minDate";case Boolean(a&&r.utils.isAfterDay(o,a)):return"maxDate";default:return null}},tb=e=>{let{shouldDisableDate:t,minDate:r,maxDate:i,disableFuture:o,disablePast:s}=e;const a=av();return n.useCallback((e=>null!==eb({adapter:a,value:e,props:{shouldDisableDate:t,minDate:r,maxDate:i,disableFuture:o,disablePast:s}})),[a,t,r,i,o,s])},nb=(e,t)=>e===t,rb=e=>function(e,t,r){const{value:i,onError:o}=e,s=av(),a=n.useRef(null),l=t({adapter:s,value:i,props:e});return n.useEffect((()=>{o&&!r(l,a.current)&&o(l,i),a.current=l}),[r,o,a,l,i]),l}(e,eb,nb),ib=e=>{let{date:t,defaultCalendarMonth:r,disableFuture:i,disablePast:o,disableSwitchToMonthOnDayFocus:s=!1,maxDate:a,minDate:l,onMonthChange:c,reduceAnimations:u,shouldDisableDate:h}=e;var p;const f=dv(),g=lv(),m=n.useRef(((e,t,n)=>(r,i)=>{switch(i.type){case"changeMonth":return(0,d.c)({},r,{slideDirection:i.direction,currentMonth:i.newMonth,isMonthSwitchingAnimating:!e});case"finishMonthSwitchingAnimation":return(0,d.c)({},r,{isMonthSwitchingAnimating:!1});case"changeFocusedDay":{if(null!=r.focusedDay&&null!=i.focusedDay&&n.isSameDay(i.focusedDay,r.focusedDay))return r;const o=null!=i.focusedDay&&!t&&!n.isSameMonth(r.currentMonth,i.focusedDay);return(0,d.c)({},r,{focusedDay:i.focusedDay,isMonthSwitchingAnimating:o&&!e&&!i.withoutMonthSwitchingAnimation,currentMonth:o?n.startOfMonth(i.focusedDay):r.currentMonth,slideDirection:null!=i.focusedDay&&n.isAfterDay(i.focusedDay,r.currentMonth)?"left":"right"})}default:throw new Error("missing support")}})(Boolean(u),s,g)).current,[y,v]=n.useReducer(m,{isMonthSwitchingAnimating:!1,focusedDay:t||f,currentMonth:g.startOfMonth(null!=(p=null!=t?t:r)?p:f),slideDirection:"left"}),_=n.useCallback((e=>{v((0,d.c)({type:"changeMonth"},e)),c&&c(e.newMonth)}),[c]),b=n.useCallback((e=>{const t=null!=e?e:f;g.isSameMonth(t,y.currentMonth)||_({newMonth:g.startOfMonth(t),direction:g.isAfterDay(t,y.currentMonth)?"left":"right"})}),[y.currentMonth,_,f,g]),x=tb({shouldDisableDate:h,minDate:l,maxDate:a,disableFuture:i,disablePast:o}),S=n.useCallback((()=>{v({type:"finishMonthSwitchingAnimation"})}),[]),w=n.useCallback(((e,t)=>{x(e)||v({type:"changeFocusedDay",focusedDay:e,withoutMonthSwitchingAnimation:t})}),[x]);return{calendarState:y,changeMonth:b,changeFocusedDay:w,isDateDisabled:x,onMonthSwitchingAnimationEnd:S,handleChangeMonth:_}},ob=e=>(0,hs.c)("MuiPickersFadeTransitionGroup",e),sb=((0,ds.c)("MuiPickersFadeTransitionGroup",["root"]),e=>{const{classes:t}=e;return(0,ls.c)({root:["root"]},ob,t)}),ab=500,lb=(0,cs.cp)(Ns,{name:"MuiPickersFadeTransitionGroup",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"block",position:"relative"});function cb(e){const t=(0,Oe.c)({props:e,name:"MuiPickersFadeTransitionGroup"}),{children:n,className:r,reduceAnimations:i,transKey:o}=t,s=sb(t);return i?n:(0,Ae.jsx)(lb,{className:(0,ts.c)(s.root,r),children:(0,Ae.jsx)(Sd,{appear:!1,mountOnEnter:!0,unmountOnExit:!0,timeout:{appear:ab,enter:ab/2,exit:0},children:n},o)})}function ub(e){return(0,hs.c)("MuiPickersDay",e)}const db=(0,ds.c)("MuiPickersDay",["root","dayWithMargin","dayOutsideMonth","hiddenDaySpacingFiller","today","selected","disabled"]),hb=["autoFocus","className","day","disabled","disableHighlightToday","disableMargin","hidden","isAnimating","onClick","onDaySelect","onFocus","onBlur","onKeyDown","onMouseDown","outsideCurrentMonth","selected","showDaysOutsideCurrentMonth","children","today"],pb=e=>{let{theme:t,ownerState:n}=e;return(0,d.c)({},t.typography.caption,{width:36,height:36,borderRadius:"50%",padding:0,backgroundColor:t.palette.background.paper,color:t.palette.text.primary,"&:hover":{backgroundColor:(0,Ps.W4)(t.palette.action.active,t.palette.action.hoverOpacity)},"&:focus":{backgroundColor:(0,Ps.W4)(t.palette.action.active,t.palette.action.hoverOpacity),["&.".concat(db.selected)]:{willChange:"background-color",backgroundColor:t.palette.primary.dark}},["&.".concat(db.selected)]:{color:t.palette.primary.contrastText,backgroundColor:t.palette.primary.main,fontWeight:t.typography.fontWeightMedium,transition:t.transitions.create("background-color",{duration:t.transitions.duration.short}),"&:hover":{willChange:"background-color",backgroundColor:t.palette.primary.dark}},["&.".concat(db.disabled)]:{color:t.palette.text.disabled}},!n.disableMargin&&{margin:"0 ".concat(2,"px")},n.outsideCurrentMonth&&n.showDaysOutsideCurrentMonth&&{color:t.palette.text.secondary},!n.disableHighlightToday&&n.today&&{["&:not(.".concat(db.selected,")")]:{border:"1px solid ".concat(t.palette.text.secondary)}})},fb=(e,t)=>{const{ownerState:n}=e;return[t.root,!n.disableMargin&&t.dayWithMargin,!n.disableHighlightToday&&n.today&&t.today,!n.outsideCurrentMonth&&n.showDaysOutsideCurrentMonth&&t.dayOutsideMonth,n.outsideCurrentMonth&&!n.showDaysOutsideCurrentMonth&&t.hiddenDaySpacingFiller]},gb=(0,cs.cp)(da,{name:"MuiPickersDay",slot:"Root",overridesResolver:fb})(pb),mb=(0,cs.cp)("div",{name:"MuiPickersDay",slot:"Root",overridesResolver:fb})((e=>{let{theme:t,ownerState:n}=e;return(0,d.c)({},pb({theme:t,ownerState:n}),{opacity:0,pointerEvents:"none"})})),yb=()=>{},vb=n.forwardRef((function(e,t){const r=(0,Oe.c)({props:e,name:"MuiPickersDay"}),{autoFocus:i=!1,className:o,day:s,disabled:a=!1,disableHighlightToday:l=!1,disableMargin:c=!1,isAnimating:u,onClick:h,onDaySelect:p,onFocus:f=yb,onBlur:g=yb,onKeyDown:m=yb,onMouseDown:y,outsideCurrentMonth:v,selected:_=!1,showDaysOutsideCurrentMonth:b=!1,children:x,today:S=!1}=r,w=(0,Tt.c)(r,hb),E=(0,d.c)({},r,{autoFocus:i,disabled:a,disableHighlightToday:l,disableMargin:c,selected:_,showDaysOutsideCurrentMonth:b,today:S}),P=(e=>{const{selected:t,disableMargin:n,disableHighlightToday:r,today:i,disabled:o,outsideCurrentMonth:s,showDaysOutsideCurrentMonth:a,classes:l}=e,c={root:["root",t&&"selected",o&&"disabled",!n&&"dayWithMargin",!r&&i&&"today",s&&a&&"dayOutsideMonth",s&&!a&&"hiddenDaySpacingFiller"],hiddenDaySpacingFiller:["hiddenDaySpacingFiller"]};return(0,ls.c)(c,ub,l)})(E),C=lv(),A=n.useRef(null),k=(0,Cs.c)(A,t);(0,sl.c)((()=>{!i||a||u||v||A.current.focus()}),[i,a,u,v]);return v&&!b?(0,Ae.jsx)(mb,{className:(0,ts.c)(P.root,P.hiddenDaySpacingFiller,o),ownerState:E,role:w.role}):(0,Ae.jsx)(gb,(0,d.c)({className:(0,ts.c)(P.root,o),ownerState:E,ref:k,centerRipple:!0,disabled:a,tabIndex:_?0:-1,onKeyDown:e=>m(e,s),onFocus:e=>f(e,s),onBlur:e=>g(e,s),onClick:e=>{a||p(s,"finish"),v&&e.currentTarget.focus(),h&&h(e)},onMouseDown:e=>{y&&y(e),v&&e.preventDefault()}},w,{children:x||C.format(s,"dayOfMonth")}))})),_b=(e,t)=>e.autoFocus===t.autoFocus&&e.isAnimating===t.isAnimating&&e.today===t.today&&e.disabled===t.disabled&&e.selected===t.selected&&e.disableMargin===t.disableMargin&&e.showDaysOutsideCurrentMonth===t.showDaysOutsideCurrentMonth&&e.disableHighlightToday===t.disableHighlightToday&&e.className===t.className&&e.sx===t.sx&&e.outsideCurrentMonth===t.outsideCurrentMonth&&e.onFocus===t.onFocus&&e.onBlur===t.onBlur&&e.onDaySelect===t.onDaySelect,bb=n.memo(vb,_b);function xb(e,t){return e.replace(new RegExp("(^|\\s)"+t+"(?:\\s|$)","g"),"$1").replace(/\s+/g," ").replace(/^\s*|\s*$/g,"")}var Sb=function(e,t){return e&&t&&t.split(" ").forEach((function(t){return r=t,void((n=e).classList?n.classList.remove(r):"string"===typeof n.className?n.className=xb(n.className,r):n.setAttribute("class",xb(n.className&&n.className.baseVal||"",r)));var n,r}))},wb=function(e){function t(){for(var t,n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];return(t=e.call.apply(e,[this].concat(r))||this).appliedClasses={appear:{},enter:{},exit:{}},t.onEnter=function(e,n){var r=t.resolveArguments(e,n),i=r[0],o=r[1];t.removeClasses(i,"exit"),t.addClass(i,o?"appear":"enter","base"),t.props.onEnter&&t.props.onEnter(e,n)},t.onEntering=function(e,n){var r=t.resolveArguments(e,n),i=r[0],o=r[1]?"appear":"enter";t.addClass(i,o,"active"),t.props.onEntering&&t.props.onEntering(e,n)},t.onEntered=function(e,n){var r=t.resolveArguments(e,n),i=r[0],o=r[1]?"appear":"enter";t.removeClasses(i,o),t.addClass(i,o,"done"),t.props.onEntered&&t.props.onEntered(e,n)},t.onExit=function(e){var n=t.resolveArguments(e)[0];t.removeClasses(n,"appear"),t.removeClasses(n,"enter"),t.addClass(n,"exit","base"),t.props.onExit&&t.props.onExit(e)},t.onExiting=function(e){var n=t.resolveArguments(e)[0];t.addClass(n,"exit","active"),t.props.onExiting&&t.props.onExiting(e)},t.onExited=function(e){var n=t.resolveArguments(e)[0];t.removeClasses(n,"exit"),t.addClass(n,"exit","done"),t.props.onExited&&t.props.onExited(e)},t.resolveArguments=function(e,n){return t.props.nodeRef?[t.props.nodeRef.current,e]:[e,n]},t.getClassNames=function(e){var n=t.props.classNames,r="string"===typeof n,i=r?""+(r&&n?n+"-":"")+e:n[e];return{baseClassName:i,activeClassName:r?i+"-active":n[e+"Active"],doneClassName:r?i+"-done":n[e+"Done"]}},t}Qe(t,e);var r=t.prototype;return r.addClass=function(e,t,n){var r=this.getClassNames(t)[n+"ClassName"],i=this.getClassNames("enter").doneClassName;"appear"===t&&"done"===n&&i&&(r+=" "+i),"active"===n&&e&&Ba(e),r&&(this.appliedClasses[t][n]=r,function(e,t){e&&t&&t.split(" ").forEach((function(t){return r=t,void((n=e).classList?n.classList.add(r):function(e,t){return e.classList?!!t&&e.classList.contains(t):-1!==(" "+(e.className.baseVal||e.className)+" ").indexOf(" "+t+" ")}(n,r)||("string"===typeof n.className?n.className=n.className+" "+r:n.setAttribute("class",(n.className&&n.className.baseVal||"")+" "+r)));var n,r}))}(e,r))},r.removeClasses=function(e,t){var n=this.appliedClasses[t],r=n.base,i=n.active,o=n.done;this.appliedClasses[t]={},r&&Sb(e,r),i&&Sb(e,i),o&&Sb(e,o)},r.render=function(){var e=this.props,t=(e.classNames,(0,Tt.c)(e,["classNames"]));return n.createElement(Za,(0,d.c)({},t,{onEnter:this.onEnter,onEntered:this.onEntered,onEntering:this.onEntering,onExit:this.onExit,onExiting:this.onExiting,onExited:this.onExited}))},t}(n.Component);wb.defaultProps={classNames:""},wb.propTypes={};const Eb=wb,Pb=e=>(0,hs.c)("PrivatePickersSlideTransition",e),Cb=(0,ds.c)("PrivatePickersSlideTransition",["root","slideEnter-left","slideEnter-right","slideEnterActive","slideExit","slideExitActiveLeft-left","slideExitActiveLeft-right"]),Ab=["children","className","reduceAnimations","slideDirection","transKey"],kb=(0,cs.cp)(Ns,{name:"PrivatePickersSlideTransition",slot:"Root",overridesResolver:(e,t)=>[t.root,{[".".concat(Cb["slideEnter-left"])]:t["slideEnter-left"]},{[".".concat(Cb["slideEnter-right"])]:t["slideEnter-right"]},{[".".concat(Cb.slideEnterActive)]:t.slideEnterActive},{[".".concat(Cb.slideExit)]:t.slideExit},{[".".concat(Cb["slideExitActiveLeft-left"])]:t["slideExitActiveLeft-left"]},{[".".concat(Cb["slideExitActiveLeft-right"])]:t["slideExitActiveLeft-right"]}]})((e=>{let{theme:t}=e;const n=t.transitions.create("transform",{duration:350,easing:"cubic-bezier(0.35, 0.8, 0.4, 1)"});return{display:"block",position:"relative",overflowX:"hidden","& > *":{position:"absolute",top:0,right:0,left:0},["& .".concat(Cb["slideEnter-left"])]:{willChange:"transform",transform:"translate(100%)",zIndex:1},["& .".concat(Cb["slideEnter-right"])]:{willChange:"transform",transform:"translate(-100%)",zIndex:1},["& .".concat(Cb.slideEnterActive)]:{transform:"translate(0%)",transition:n},["& .".concat(Cb.slideExit)]:{transform:"translate(0%)"},["& .".concat(Cb["slideExitActiveLeft-left"])]:{willChange:"transform",transform:"translate(-100%)",transition:n,zIndex:0},["& .".concat(Cb["slideExitActiveLeft-right"])]:{willChange:"transform",transform:"translate(100%)",transition:n,zIndex:0}}})),jb=e=>(0,hs.c)("MuiDayPicker",e),Ib=((0,ds.c)("MuiDayPicker",["header","weekDayLabel","loadingContainer","slideTransition","monthContainer","weekContainer"]),e=>e.charAt(0).toUpperCase()),Gb=(0,cs.cp)("div",{name:"MuiDayPicker",slot:"Header",overridesResolver:(e,t)=>t.header})({display:"flex",justifyContent:"center",alignItems:"center"}),Tb=(0,cs.cp)(vu,{name:"MuiDayPicker",slot:"WeekDayLabel",overridesResolver:(e,t)=>t.weekDayLabel})((e=>{let{theme:t}=e;return{width:36,height:40,margin:"0 2px",textAlign:"center",display:"flex",justifyContent:"center",alignItems:"center",color:t.palette.text.secondary}})),Mb=(0,cs.cp)("div",{name:"MuiDayPicker",slot:"LoadingContainer",overridesResolver:(e,t)=>t.loadingContainer})({display:"flex",justifyContent:"center",alignItems:"center",minHeight:240}),Ob=(0,cs.cp)((e=>{const{children:t,className:r,reduceAnimations:i,slideDirection:o,transKey:s}=e,a=(0,Tt.c)(e,Ab),l=(e=>{const{classes:t}=e;return(0,ls.c)({root:["root"]},Pb,t)})(e);if(i)return(0,Ae.jsx)("div",{className:(0,ts.c)(l.root,r),children:t});const c={exit:Cb.slideExit,enterActive:Cb.slideEnterActive,enter:Cb["slideEnter-".concat(o)],exitActive:Cb["slideExitActiveLeft-".concat(o)]};return(0,Ae.jsx)(kb,{className:(0,ts.c)(l.root,r),childFactory:e=>n.cloneElement(e,{classNames:c}),role:"presentation",children:(0,Ae.jsx)(Eb,(0,d.c)({mountOnEnter:!0,unmountOnExit:!0,timeout:350,classNames:c},a,{children:t}),s)})}),{name:"MuiDayPicker",slot:"SlideTransition",overridesResolver:(e,t)=>t.slideTransition})({minHeight:240}),Rb=(0,cs.cp)("div",{name:"MuiDayPicker",slot:"MonthContainer",overridesResolver:(e,t)=>t.monthContainer})({overflow:"hidden"}),Db=(0,cs.cp)("div",{name:"MuiDayPicker",slot:"WeekContainer",overridesResolver:(e,t)=>t.weekContainer})({margin:"".concat(2,"px 0"),display:"flex",justifyContent:"center"});function Nb(e){const t=dv(),r=lv(),i=(0,Oe.c)({props:e,name:"MuiDayPicker"}),o=(e=>{const{classes:t}=e;return(0,ls.c)({header:["header"],weekDayLabel:["weekDayLabel"],loadingContainer:["loadingContainer"],slideTransition:["slideTransition"],monthContainer:["monthContainer"],weekContainer:["weekContainer"]},jb,t)})(i),{onFocusedDayChange:s,className:a,currentMonth:l,selectedDays:c,disabled:u,disableHighlightToday:h,focusedDay:p,isMonthSwitchingAnimating:f,loading:g,onSelectedDaysChange:m,onMonthSwitchingAnimationEnd:y,readOnly:v,reduceAnimations:_,renderDay:b,renderLoading:x=(()=>(0,Ae.jsx)("span",{children:"..."})),showDaysOutsideCurrentMonth:S,slideDirection:w,TransitionProps:E,disablePast:P,disableFuture:C,minDate:A,maxDate:k,shouldDisableDate:j,dayOfWeekFormatter:I=Ib,hasFocus:G,onFocusedViewChange:T,gridLabelId:M}=i,O=tb({shouldDisableDate:j,minDate:A,maxDate:k,disablePast:P,disableFuture:C}),[R,D]=n.useState((()=>p||t)),N=n.useCallback((e=>{T&&T(e)}),[T]),L=n.useCallback((function(e){v||m(e,arguments.length>1&&void 0!==arguments[1]?arguments[1]:"finish")}),[m,v]),V=n.useCallback((e=>{O(e)||(s(e),D(e),N(!0))}),[O,s,N]),F=Go();function z(e,t){switch(e.key){case"ArrowUp":V(r.addDays(t,-7)),e.preventDefault();break;case"ArrowDown":V(r.addDays(t,7)),e.preventDefault();break;case"ArrowLeft":{const n=r.addDays(t,"ltr"===F.direction?-1:1),i="ltr"===F.direction?r.getPreviousMonth(t):r.getNextMonth(t),o=hv({utils:r,date:n,minDate:"ltr"===F.direction?r.startOfMonth(i):n,maxDate:"ltr"===F.direction?n:r.endOfMonth(i),isDateDisabled:O});V(o||n),e.preventDefault();break}case"ArrowRight":{const n=r.addDays(t,"ltr"===F.direction?1:-1),i="ltr"===F.direction?r.getNextMonth(t):r.getPreviousMonth(t),o=hv({utils:r,date:n,minDate:"ltr"===F.direction?n:r.startOfMonth(i),maxDate:"ltr"===F.direction?r.endOfMonth(i):n,isDateDisabled:O});V(o||n),e.preventDefault();break}case"Home":V(r.startOfWeek(t)),e.preventDefault();break;case"End":V(r.endOfWeek(t)),e.preventDefault();break;case"PageUp":V(r.getNextMonth(t)),e.preventDefault();break;case"PageDown":V(r.getPreviousMonth(t)),e.preventDefault()}}function B(e,t){V(t)}function U(e,t){G&&r.isSameDay(R,t)&&N(!1)}const W=r.getMonth(l),H=c.filter((e=>!!e)).map((e=>r.startOfDay(e))),q=W,X=n.useMemo((()=>n.createRef()),[q]),Y=r.startOfWeek(t),K=n.useMemo((()=>{const e=r.startOfMonth(l),t=r.endOfMonth(l);return O(R)||r.isAfterDay(R,t)||r.isBeforeDay(R,e)?hv({utils:r,date:R,minDate:e,maxDate:t,disablePast:P,disableFuture:C,isDateDisabled:O}):R}),[l,C,P,R,O,r]);return(0,Ae.jsxs)("div",{role:"grid","aria-labelledby":M,children:[(0,Ae.jsx)(Gb,{role:"row",className:o.header,children:r.getWeekdays().map(((e,t)=>{var n;return(0,Ae.jsx)(Tb,{variant:"caption",role:"columnheader","aria-label":r.format(r.addDays(Y,t),"weekday"),className:o.weekDayLabel,children:null!=(n=null==I?void 0:I(e))?n:e},e+t.toString())}))}),g?(0,Ae.jsx)(Mb,{className:o.loadingContainer,children:x()}):(0,Ae.jsx)(Ob,(0,d.c)({transKey:q,onExited:y,reduceAnimations:_,slideDirection:w,className:(0,ts.c)(a,o.slideTransition)},E,{nodeRef:X,children:(0,Ae.jsx)(Rb,{ref:X,role:"rowgroup",className:o.monthContainer,children:r.getWeekArray(l).map((e=>(0,Ae.jsx)(Db,{role:"row",className:o.weekContainer,children:e.map((e=>{const n=null!==K&&r.isSameDay(e,K),i=H.some((t=>r.isSameDay(t,e))),o=r.isSameDay(e,t),s={key:null==e?void 0:e.toString(),day:e,isAnimating:f,disabled:u||O(e),autoFocus:G&&n,today:o,outsideCurrentMonth:r.getMonth(e)!==W,selected:i,disableHighlightToday:h,showDaysOutsideCurrentMonth:S,onKeyDown:z,onFocus:B,onBlur:U,onDaySelect:L,tabIndex:n?0:-1,role:"gridcell","aria-selected":i};return o&&(s["aria-current"]="date"),b?b(e,H,s):(0,Ae.jsx)(bb,(0,d.c)({},s),s.key)}))},"week-".concat(e[0]))))})}))]})}const Lb=e=>(0,hs.c)("MuiPickersCalendarHeader",e),Vb=((0,ds.c)("MuiPickersCalendarHeader",["root","labelContainer","label","switchViewButton","switchViewIcon"]),(0,cs.cp)("div",{name:"MuiPickersCalendarHeader",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"flex",alignItems:"center",marginTop:16,marginBottom:8,paddingLeft:24,paddingRight:12,maxHeight:30,minHeight:30})),Fb=(0,cs.cp)("div",{name:"MuiPickersCalendarHeader",slot:"LabelContainer",overridesResolver:(e,t)=>t.labelContainer})((e=>{let{theme:t}=e;return(0,d.c)({display:"flex",maxHeight:30,overflow:"hidden",alignItems:"center",cursor:"pointer",marginRight:"auto"},t.typography.body1,{fontWeight:t.typography.fontWeightMedium})})),zb=(0,cs.cp)("div",{name:"MuiPickersCalendarHeader",slot:"Label",overridesResolver:(e,t)=>t.label})({marginRight:6}),Bb=(0,cs.cp)(Gu,{name:"MuiPickersCalendarHeader",slot:"SwitchViewButton",overridesResolver:(e,t)=>t.switchViewButton})({marginRight:"auto"}),Ub=(0,cs.cp)(_v,{name:"MuiPickersCalendarHeader",slot:"SwitchViewIcon",overridesResolver:(e,t)=>t.switchViewIcon})((e=>{let{theme:t,ownerState:n}=e;return(0,d.c)({willChange:"transform",transition:t.transitions.create("transform"),transform:"rotate(0deg)"},"year"===n.openView&&{transform:"rotate(180deg)"})})),Wb=()=>{};function Hb(e){const t=(0,Oe.c)({props:e,name:"MuiPickersCalendarHeader"}),{components:r={},componentsProps:i={},currentMonth:o,disabled:s,disableFuture:a,disablePast:l,getViewSwitchingButtonText:c,leftArrowButtonText:u,maxDate:h,minDate:p,onMonthChange:f,onViewChange:g,openView:m,reduceAnimations:y,rightArrowButtonText:v,views:_,labelId:b}=t;Wb({leftArrowButtonText:u,rightArrowButtonText:v,getViewSwitchingButtonText:c});const x=uv(),S=null!=u?u:x.previousMonth,w=null!=v?v:x.nextMonth,E=null!=c?c:x.calendarViewSwitchingButtonAriaLabel,P=lv(),C=(e=>{const{classes:t}=e;return(0,ls.c)({root:["root"],labelContainer:["labelContainer"],label:["label"],switchViewButton:["switchViewButton"],switchViewIcon:["switchViewIcon"]},Lb,t)})(t),A=i.switchViewButton||{},k=function(e,t){let{disableFuture:r,maxDate:i}=t;const o=lv();return n.useMemo((()=>{const t=o.date(),n=o.startOfMonth(r&&o.isBefore(t,i)?t:i);return!o.isAfter(n,e)}),[r,i,e,o])}(o,{disableFuture:a,maxDate:h}),j=function(e,t){let{disablePast:r,minDate:i}=t;const o=lv();return n.useMemo((()=>{const t=o.date(),n=o.startOfMonth(r&&o.isAfter(t,i)?t:i);return!o.isBefore(n,e)}),[r,i,e,o])}(o,{disablePast:l,minDate:p});if(1===_.length&&"year"===_[0])return null;const I=t;return(0,Ae.jsxs)(Vb,{ownerState:I,className:C.root,children:[(0,Ae.jsxs)(Fb,{role:"presentation",onClick:()=>{if(1!==_.length&&g&&!s)if(2===_.length)g(_.find((e=>e!==m))||_[0]);else{const e=0!==_.indexOf(m)?0:1;g(_[e])}},ownerState:I,"aria-live":"polite",className:C.labelContainer,children:[(0,Ae.jsx)(cb,{reduceAnimations:y,transKey:P.format(o,"monthAndYear"),children:(0,Ae.jsx)(zb,{id:b,ownerState:I,className:C.label,children:P.format(o,"monthAndYear")})}),_.length>1&&!s&&(0,Ae.jsx)(Bb,(0,d.c)({size:"small",as:r.SwitchViewButton,"aria-label":E(m),className:C.switchViewButton},A,{children:(0,Ae.jsx)(Ub,{as:r.SwitchViewIcon,ownerState:I,className:C.switchViewIcon})}))]}),(0,Ae.jsx)(Sd,{in:"day"===m,children:(0,Ae.jsx)(O_,{leftArrowButtonText:S,rightArrowButtonText:w,components:r,componentsProps:i,onLeftClick:()=>f(P.getPreviousMonth(o),"right"),onRightClick:()=>f(P.getNextMonth(o),"left"),isLeftDisabled:j,isRightDisabled:k})})]})}var qb=__webpack_require__(55476);function Xb(e){return(0,hs.c)("PrivatePickersYear",e)}const Yb=(0,ds.c)("PrivatePickersYear",["root","modeDesktop","modeMobile","yearButton","selected","disabled"]),Kb=["autoFocus","className","children","disabled","onClick","onKeyDown","value","tabIndex","onFocus","onBlur"],Zb=(0,cs.cp)("div",{name:"PrivatePickersYear",slot:"Root",overridesResolver:(e,t)=>[t.root,{["&.".concat(Yb.modeDesktop)]:t.modeDesktop},{["&.".concat(Yb.modeMobile)]:t.modeMobile}]})((e=>{let{ownerState:t}=e;return(0,d.c)({flexBasis:"33.3%",display:"flex",alignItems:"center",justifyContent:"center"},"desktop"===(null==t?void 0:t.wrapperVariant)&&{flexBasis:"25%"})})),$b=(0,cs.cp)("button",{name:"PrivatePickersYear",slot:"Button",overridesResolver:(e,t)=>[t.button,{["&.".concat(Yb.disabled)]:t.disabled},{["&.".concat(Yb.selected)]:t.selected}]})((e=>{let{theme:t}=e;return(0,d.c)({color:"unset",backgroundColor:"transparent",border:0,outline:0},t.typography.subtitle1,{margin:"8px 0",height:36,width:72,borderRadius:18,cursor:"pointer","&:focus, &:hover":{backgroundColor:(0,Ps.W4)(t.palette.action.active,t.palette.action.hoverOpacity)},["&.".concat(Yb.disabled)]:{color:t.palette.text.secondary},["&.".concat(Yb.selected)]:{color:t.palette.primary.contrastText,backgroundColor:t.palette.primary.main,"&:focus, &:hover":{backgroundColor:t.palette.primary.dark}}})})),Jb=()=>{},Qb=n.forwardRef((function(e,t){const{autoFocus:r,className:i,children:o,disabled:s,onClick:a,onKeyDown:l,value:c,tabIndex:u,onFocus:h=Jb,onBlur:p=Jb}=e,f=(0,Tt.c)(e,Kb),g=n.useRef(null),m=(0,Cs.c)(g,t),y=n.useContext(Nv),v=(0,d.c)({},e,{wrapperVariant:y}),_=(e=>{const{wrapperVariant:t,disabled:n,selected:r,classes:i}=e,o={root:["root",t&&"mode".concat((0,ha.c)(t))],yearButton:["yearButton",n&&"disabled",r&&"selected"]};return(0,ls.c)(o,Xb,i)})(v);return n.useEffect((()=>{r&&g.current.focus()}),[r]),(0,Ae.jsx)(Zb,{className:(0,ts.c)(_.root,i),ownerState:v,children:(0,Ae.jsx)($b,(0,d.c)({ref:m,disabled:s,type:"button",tabIndex:s?-1:u,onClick:e=>a(e,c),onKeyDown:e=>l(e,c),onFocus:e=>h(e,c),onBlur:e=>p(e,c),className:_.yearButton,ownerState:v},f,{children:o}))})}));function ex(e){return(0,hs.c)("MuiYearPicker",e)}(0,ds.c)("MuiYearPicker",["root"]);const tx=(0,cs.cp)("div",{name:"MuiYearPicker",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"flex",flexDirection:"row",flexWrap:"wrap",overflowY:"auto",height:"100%",padding:"0 4px",maxHeight:"304px"}),nx=n.forwardRef((function(e,t){const r=dv(),i=Go(),o=lv(),s=function(e,t){const n=lv(),r=cv(),i=(0,Oe.c)({props:e,name:t});return(0,d.c)({disablePast:!1,disableFuture:!1},i,{minDate:pv(n,i.minDate,r.minDate),maxDate:pv(n,i.maxDate,r.maxDate)})}(e,"MuiYearPicker"),{autoFocus:a,className:l,date:c,disabled:u,disableFuture:h,disablePast:p,maxDate:f,minDate:g,onChange:m,readOnly:y,shouldDisableYear:v,disableHighlightToday:_,onYearFocus:b,hasFocus:x,onFocusedViewChange:S}=s,w=s,E=(e=>{const{classes:t}=e;return(0,ls.c)({root:["root"]},ex,t)})(w),P=n.useMemo((()=>null!=c?c:o.startOfYear(r)),[r,o,c]),C=n.useMemo((()=>null!=c?o.getYear(c):_?null:o.getYear(r)),[r,c,o,_]),A=n.useContext(Nv),k=n.useRef(null),[j,I]=n.useState((()=>C||o.getYear(r))),[G,T]=(0,qb.c)({name:"YearPicker",state:"hasFocus",controlled:x,default:a}),M=n.useCallback((e=>{T(e),S&&S(e)}),[T,S]),O=n.useCallback((e=>!(!p||!o.isBeforeYear(e,r))||(!(!h||!o.isAfterYear(e,r))||(!(!g||!o.isBeforeYear(e,g))||(!(!f||!o.isAfterYear(e,f))||!(!v||!v(e)))))),[h,p,f,g,r,v,o]),R=function(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"finish";if(y)return;const r=o.setYear(P,t);m(r,n)},D=n.useCallback((e=>{O(o.setYear(P,e))||(I(e),M(!0),null==b||b(e))}),[O,o,P,M,b]);n.useEffect((()=>{I((e=>null!==C&&e!==C?C:e))}),[C]);const N="desktop"===A?4:3,L=n.useCallback(((e,t)=>{switch(e.key){case"ArrowUp":D(t-N),e.preventDefault();break;case"ArrowDown":D(t+N),e.preventDefault();break;case"ArrowLeft":D(t+("ltr"===i.direction?-1:1)),e.preventDefault();break;case"ArrowRight":D(t+("ltr"===i.direction?1:-1)),e.preventDefault()}}),[D,i.direction,N]),V=n.useCallback(((e,t)=>{D(t)}),[D]),F=n.useCallback(((e,t)=>{j===t&&M(!1)}),[j,M]),z=o.getYear(r),B=n.useRef(null),U=(0,Cs.c)(t,B);return n.useEffect((()=>{if(a||null===B.current)return;const e=B.current.querySelector('[tabindex="0"]');if(!e)return;const t=e.offsetHeight,n=e.offsetTop,r=B.current.clientHeight,i=B.current.scrollTop,o=n+t;t>r||n<i||(B.current.scrollTop=o-r/2-t/2)}),[a]),(0,Ae.jsx)(tx,{ref:U,className:(0,ts.c)(E.root,l),ownerState:w,children:o.getYearRange(g,f).map((e=>{const t=o.getYear(e),n=t===C;return(0,Ae.jsx)(Qb,{selected:n,value:t,onClick:R,onKeyDown:L,autoFocus:G&&t===j,ref:n?k:void 0,disabled:u||O(e),tabIndex:t===j?0:-1,onFocus:V,onBlur:F,"aria-current":z===t?"date":void 0,children:o.format(e,"year")},o.format(e,"year"))}))})})),rx="undefined"!==typeof navigator&&/(android)/i.test(navigator.userAgent),ix=e=>(0,hs.c)("MuiCalendarPicker",e),ox=((0,ds.c)("MuiCalendarPicker",["root","viewTransitionContainer"]),["autoFocus","onViewChange","date","disableFuture","disablePast","defaultCalendarMonth","onChange","onYearChange","onMonthChange","reduceAnimations","shouldDisableDate","shouldDisableMonth","shouldDisableYear","view","views","openTo","className","disabled","readOnly","minDate","maxDate","disableHighlightToday","focusedView","onFocusedViewChange","classes"]);const sx=(0,cs.cp)(V_,{name:"MuiCalendarPicker",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"flex",flexDirection:"column"}),ax=(0,cs.cp)(cb,{name:"MuiCalendarPicker",slot:"ViewTransitionContainer",overridesResolver:(e,t)=>t.viewTransitionContainer})({}),lx=n.forwardRef((function(e,t){const r=lv(),i=(0,Zc.c)(),o=function(e,t){const n=lv(),r=cv(),i=(0,Oe.c)({props:e,name:t});return(0,d.c)({loading:!1,disablePast:!1,disableFuture:!1,openTo:"day",views:["year","day"],reduceAnimations:rx,renderLoading:()=>(0,Ae.jsx)("span",{children:"..."})},i,{minDate:pv(n,i.minDate,r.minDate),maxDate:pv(n,i.maxDate,r.maxDate)})}(e,"MuiCalendarPicker"),{autoFocus:s,onViewChange:a,date:l,disableFuture:c,disablePast:u,defaultCalendarMonth:h,onChange:p,onYearChange:f,onMonthChange:g,reduceAnimations:m,shouldDisableDate:y,shouldDisableMonth:v,shouldDisableYear:_,view:b,views:x,openTo:S,className:w,disabled:E,readOnly:P,minDate:C,maxDate:A,disableHighlightToday:k,focusedView:j,onFocusedViewChange:I}=o,G=(0,Tt.c)(o,ox),{openView:T,setOpenView:M,openNext:O}=e_({view:b,views:x,openTo:S,onChange:p,onViewChange:a}),{calendarState:R,changeFocusedDay:D,changeMonth:N,handleChangeMonth:L,isDateDisabled:V,onMonthSwitchingAnimationEnd:F}=ib({date:l,defaultCalendarMonth:h,reduceAnimations:m,onMonthChange:g,minDate:C,maxDate:A,shouldDisableDate:y,disablePast:u,disableFuture:c}),z=n.useCallback(((e,t)=>{const n=r.startOfMonth(e),i=r.endOfMonth(e),o=V(e)?hv({utils:r,date:e,minDate:r.isBefore(C,n)?n:C,maxDate:r.isAfter(A,i)?i:A,disablePast:u,disableFuture:c,isDateDisabled:V}):e;o?(p(o,t),null==g||g(n)):(O(),N(n)),D(o,!0)}),[D,c,u,V,A,C,p,g,N,O,r]),B=n.useCallback(((e,t)=>{const n=r.startOfYear(e),i=r.endOfYear(e),o=V(e)?hv({utils:r,date:e,minDate:r.isBefore(C,n)?n:C,maxDate:r.isAfter(A,i)?i:A,disablePast:u,disableFuture:c,isDateDisabled:V}):e;o?(p(o,t),null==f||f(o)):(O(),N(n)),D(o,!0)}),[D,c,u,V,A,C,p,f,O,r,N]),U=n.useCallback(((e,t)=>p(l&&e?r.mergeDateAndTime(e,l):e,t)),[r,l,p]);n.useEffect((()=>{l&&N(l)}),[l]);const W=o,H=(e=>{const{classes:t}=e;return(0,ls.c)({root:["root"],viewTransitionContainer:["viewTransitionContainer"]},ix,t)})(W),q={disablePast:u,disableFuture:c,maxDate:A,minDate:C},X=E&&l||C,Y=E&&l||A,K={disableHighlightToday:k,readOnly:P,disabled:E},Z="".concat(i,"-grid-label"),[$,J]=(0,$c.c)({name:"DayPicker",state:"focusedView",controlled:j,default:s?T:null}),Q=null!==$,ee=(0,As.c)((e=>t=>{I?I(e)(t):J(t?e:t=>t===e?null:t)})),te=n.useRef(T);return n.useEffect((()=>{te.current!==T&&(te.current=T,ee(T)(!0))}),[T,ee]),(0,Ae.jsxs)(sx,{ref:t,className:(0,ts.c)(H.root,w),ownerState:W,children:[(0,Ae.jsx)(Hb,(0,d.c)({},G,{views:x,openView:T,currentMonth:R.currentMonth,onViewChange:M,onMonthChange:(e,t)=>L({newMonth:e,direction:t}),minDate:X,maxDate:Y,disabled:E,disablePast:u,disableFuture:c,reduceAnimations:m,labelId:Z})),(0,Ae.jsx)(ax,{reduceAnimations:m,className:H.viewTransitionContainer,transKey:T,ownerState:W,children:(0,Ae.jsxs)("div",{children:["year"===T&&(0,Ae.jsx)(nx,(0,d.c)({},G,q,K,{autoFocus:s,date:l,onChange:B,shouldDisableYear:_,hasFocus:Q,onFocusedViewChange:ee("year")})),"month"===T&&(0,Ae.jsx)(Q_,(0,d.c)({},q,K,{autoFocus:s,hasFocus:Q,className:w,date:l,onChange:z,shouldDisableMonth:v,onFocusedViewChange:ee("month")})),"day"===T&&(0,Ae.jsx)(Nb,(0,d.c)({},G,R,q,K,{autoFocus:s,onMonthSwitchingAnimationEnd:F,onFocusedDayChange:D,reduceAnimations:m,selectedDays:[l],onSelectedDaysChange:U,shouldDisableDate:y,hasFocus:Q,onFocusedViewChange:ee("day"),gridLabelId:Z}))]})})]})}));function cx(e){return(0,hs.c)("MuiInputAdornment",e)}const ux=(0,ds.c)("MuiInputAdornment",["root","filled","standard","outlined","positionStart","positionEnd","disablePointerEvents","hiddenLabel","sizeSmall"]);var dx;const hx=["children","className","component","disablePointerEvents","disableTypography","position","variant"],px=(0,cs.cp)("div",{name:"MuiInputAdornment",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t["position".concat((0,ha.c)(n.position))],!0===n.disablePointerEvents&&t.disablePointerEvents,t[n.variant]]}})((e=>{let{theme:t,ownerState:n}=e;return(0,d.c)({display:"flex",height:"0.01em",maxHeight:"2em",alignItems:"center",whiteSpace:"nowrap",color:(t.vars||t).palette.action.active},"filled"===n.variant&&{["&.".concat(ux.positionStart,"&:not(.").concat(ux.hiddenLabel,")")]:{marginTop:16}},"start"===n.position&&{marginRight:8},"end"===n.position&&{marginLeft:8},!0===n.disablePointerEvents&&{pointerEvents:"none"})})),fx=n.forwardRef((function(e,t){const r=(0,Oe.c)({props:e,name:"MuiInputAdornment"}),{children:i,className:o,component:s="div",disablePointerEvents:a=!1,disableTypography:l=!1,position:c,variant:u}=r,h=(0,Tt.c)(r,hx),p=du()||{};let f=u;u&&p.variant,p&&!f&&(f=p.variant);const g=(0,d.c)({},r,{hiddenLabel:p.hiddenLabel,size:p.size,disablePointerEvents:a,position:c,variant:f}),m=(e=>{const{classes:t,disablePointerEvents:n,hiddenLabel:r,position:i,size:o,variant:s}=e,a={root:["root",n&&"disablePointerEvents",i&&"position".concat((0,ha.c)(i)),s,r&&"hiddenLabel",o&&"size".concat((0,ha.c)(o))]};return(0,ls.c)(a,cx,t)})(g);return(0,Ae.jsx)(uu.Provider,{value:null,children:(0,Ae.jsx)(px,(0,d.c)({as:s,ownerState:g,className:(0,ts.c)(m.root,o),ref:t},h,{children:"string"!==typeof i||l?(0,Ae.jsxs)(n.Fragment,{children:["start"===c?dx||(dx=(0,Ae.jsx)("span",{className:"notranslate",children:"\u200b"})):null,i]}):(0,Ae.jsx)(vu,{color:"text.secondary",children:i})}))})})),gx=e=>{const[,t]=(0,n.useReducer)((e=>e+1),0),r=(0,n.useRef)(null),{replace:i,append:o}=e,s=i?i(e.format(e.value)):e.format(e.value),a=(0,n.useRef)(!1);return(0,n.useLayoutEffect)((()=>{if(null==r.current)return;let[n,a,l,c,u]=r.current;r.current=null;const d=c&&u,h=n.slice(a.selectionStart).search(e.accept||/\d/g),p=-1!==h?h:0,f=t=>(t.match(e.accept||/\d/g)||[]).join(""),g=f(n.substr(0,a.selectionStart)),m=e=>{let t=0,n=0;for(let r=0;r!==g.length;++r){let i=e.indexOf(g[r],t)+1,o=f(e).indexOf(g[r],n)+1;o-n>1&&(i=t,o=n),n=Math.max(o,n),t=Math.max(t,i)}return t};if(!0===e.mask&&l&&!u){let e=m(n);const t=f(n.substr(e))[0];e=n.indexOf(t,e),n="".concat(n.substr(0,e)).concat(n.substr(e+1))}let y=e.format(n);null==o||a.selectionStart!==n.length||u||(l?y=o(y):""===f(y.slice(-1))&&(y=y.slice(0,-1)));const v=i?i(y):y;return s===v?t():e.onChange(v),()=>{let t=m(y);if(null!=e.mask&&(l||c&&!d))for(;y[t]&&""===f(y[t]);)t+=1;a.selectionStart=a.selectionEnd=t+(d?1+p:0)}})),(0,n.useEffect)((()=>{const e=e=>{"Delete"===e.code&&(a.current=!0)},t=e=>{"Delete"===e.code&&(a.current=!1)};return document.addEventListener("keydown",e),document.addEventListener("keyup",t),()=>{document.removeEventListener("keydown",e),document.removeEventListener("keyup",t)}}),[]),{value:null!=r.current?r.current[0]:s,onChange:n=>{const i=n.target.value;r.current=[i,n.target,i.length>s.length,a.current,s===e.format(i)],t()}}},mx=(e,t,n)=>{const r=e.date(t);return null===t?"":e.isValid(r)?e.formatByString(r,n):""},yx="_",vx="2019-11-21T22:30:00.000",_x="2019-01-01T09:00:00.000";function bx(e,t,n,r){if(!e)return!1;const i=r.formatByString(r.date(_x),t).replace(n,yx),o=r.formatByString(r.date(vx),t).replace(n,"_"),s=o===i&&e===o;return!s&&r.lib,s}const xx=e=>{let{acceptRegex:t=/[\d]/gi,disabled:r,disableMaskedInput:i,ignoreInvalidInputs:o,inputFormat:s,inputProps:a,label:l,mask:c,onChange:u,rawValue:h,readOnly:p,rifmFormatter:f,TextFieldProps:g,validationError:m}=e;const y=lv(),v=y.getFormatHelperText(s),{shouldUseMaskedInput:_,maskToUse:b}=n.useMemo((()=>{if(i)return{shouldUseMaskedInput:!1,maskToUse:""};const e=function(e,t,n,r){if(e)return e;const i=r.formatByString(r.date(_x),t).replace(n,yx);return i===r.formatByString(r.date(vx),t).replace(n,"_")?i:""}(c,s,t,y);return{shouldUseMaskedInput:bx(e,s,t,y),maskToUse:e}}),[t,i,s,c,y]),x=n.useMemo((()=>_&&b?((e,t)=>n=>{let r=0;return n.split("").map(((i,o)=>{if(t.lastIndex=0,r>e.length-1)return"";const s=e[r],a=e[r+1],l=t.test(i)?i:"",c=s===yx?l:s+l;return r+=c.length,o===n.length-1&&a&&a!==yx?c?c+a:"":c})).join("")})(b,t):e=>e),[t,b,_]),S=null===h?null:y.date(h),[w,E]=n.useState(S),[P,C]=n.useState(mx(y,h,s)),A=n.useRef(),k=n.useRef(y.locale),j=n.useRef(s);n.useEffect((()=>{const e=h!==A.current,t=y.locale!==k.current,n=s!==j.current;if(A.current=h,k.current=y.locale,j.current=s,!e&&!t&&!n)return;const r=null===h?null:y.date(h),i=null===h||y.isValid(r),o=null===w?null===r:null!==r&&0===Math.abs(y.getDiff(w,r,"seconds"));if(!t&&!n&&(!i||o))return;const a=mx(y,h,s);E(r),C(a)}),[y,h,s,w]);const I=e=>{const t=""===e||e===c?"":e;C(t);const n=null===t?null:y.parse(t,s);o&&!y.isValid(n)||(E(n),u(n,t||void 0))},G=gx({value:P,onChange:I,format:f||x}),T=_?G:{value:P,onChange:e=>{I(e.currentTarget.value)}};return(0,d.c)({label:l,disabled:r,error:m,inputProps:(0,d.c)({},T,{disabled:r,placeholder:v,readOnly:p,type:_?"tel":"text"},a)},g)},Sx=["className","components","disableOpenPicker","getOpenDialogAriaText","InputAdornmentProps","InputProps","inputRef","openPicker","OpenPickerButtonProps","renderInput"],wx=n.forwardRef((function(e,t){const{className:n,components:r={},disableOpenPicker:i,getOpenDialogAriaText:o,InputAdornmentProps:s,InputProps:a,inputRef:l,openPicker:c,OpenPickerButtonProps:u,renderInput:h}=e,p=(0,Tt.c)(e,Sx),f=uv(),g=null!=o?o:f.openDatePickerDialogue,m=lv(),y=xx(p),v=(null==s?void 0:s.position)||"end",_=r.OpenPickerIcon||Sv;return h((0,d.c)({ref:t,inputRef:l,className:n},y,{InputProps:(0,d.c)({},a,{["".concat(v,"Adornment")]:i?void 0:(0,Ae.jsx)(fx,(0,d.c)({position:v},s,{children:(0,Ae.jsx)(Gu,(0,d.c)({edge:v,disabled:p.disabled||p.readOnly,"aria-label":g(p.rawValue,m)},u,{onClick:c,children:(0,Ae.jsx)(_,{})}))}))})}))}));function Ex(){return"undefined"===typeof window?"portrait":window.screen&&window.screen.orientation&&window.screen.orientation.angle?90===Math.abs(window.screen.orientation.angle)?"landscape":"portrait":window.orientation&&90===Math.abs(Number(window.orientation))?"landscape":"portrait"}function Px(e){return(0,hs.c)("MuiCalendarOrClockPicker",e)}(0,ds.c)("MuiCalendarOrClockPicker",["root","mobileKeyboardInputView"]);const Cx=["autoFocus","className","parsedValue","DateInputProps","isMobileKeyboardViewOpen","onDateChange","onViewChange","openTo","orientation","showToolbar","toggleMobileKeyboardView","ToolbarComponent","toolbarFormat","toolbarPlaceholder","toolbarTitle","views","dateRangeIcon","timeIcon","hideTabs","classes"],Ax=(0,cs.cp)("div",{name:"MuiCalendarOrClockPicker",slot:"MobileKeyboardInputView",overridesResolver:(e,t)=>t.mobileKeyboardInputView})({padding:"16px 24px"}),kx=(0,cs.cp)("div",{name:"MuiCalendarOrClockPicker",slot:"Root",overridesResolver:(e,t)=>t.root})((e=>{let{ownerState:t}=e;return(0,d.c)({display:"flex",flexDirection:"column"},t.isLandscape&&{flexDirection:"row"})})),jx={fullWidth:!0},Ix=e=>"year"===e||"month"===e||"day"===e,Gx=e=>"hours"===e||"minutes"===e||"seconds"===e;function Tx(e){var t,r;const i=(0,Oe.c)({props:e,name:"MuiCalendarOrClockPicker"}),{autoFocus:o,parsedValue:s,DateInputProps:a,isMobileKeyboardViewOpen:l,onDateChange:c,onViewChange:u,openTo:h,orientation:p,showToolbar:f,toggleMobileKeyboardView:g,ToolbarComponent:m=(()=>null),toolbarFormat:y,toolbarPlaceholder:v,toolbarTitle:_,views:b,dateRangeIcon:x,timeIcon:S,hideTabs:w}=i,E=(0,Tt.c)(i,Cx),P=null==(t=E.components)?void 0:t.Tabs,C=((e,t)=>{const[r,i]=n.useState(Ex);return(0,sl.c)((()=>{const e=()=>{i(Ex())};return window.addEventListener("orientationchange",e),()=>{window.removeEventListener("orientationchange",e)}}),[]),!Hv(e,["hours","minutes","seconds"])&&"landscape"===(t||r)})(b,p),A=n.useContext(Nv),k=(e=>{const{classes:t}=e;return(0,ls.c)({root:["root"],mobileKeyboardInputView:["mobileKeyboardInputView"]},Px,t)})(i),j=null!=f?f:"desktop"!==A,I=!w&&"undefined"!==typeof window&&window.innerHeight>667,G=n.useCallback(((e,t)=>{c(e,A,t)}),[c,A]),T=n.useCallback((e=>{l&&g(),u&&u(e)}),[l,u,g]);const{openView:M,setOpenView:O,handleChangeAndOpenNext:R}=e_({view:void 0,views:b,openTo:h,onChange:G,onViewChange:T}),{focusedView:D,setFocusedView:N}=(e=>{let{autoFocus:t,openView:r}=e;const[i,o]=n.useState(t?r:null);return{focusedView:i,setFocusedView:n.useCallback((e=>t=>{o(t?e:t=>e===t?null:t)}),[])}})({autoFocus:o,openView:M});return(0,Ae.jsxs)(kx,{ownerState:{isLandscape:C},className:k.root,children:[j&&(0,Ae.jsx)(m,(0,d.c)({},E,{views:b,isLandscape:C,parsedValue:s,onChange:G,setOpenView:O,openView:M,toolbarTitle:_,toolbarFormat:y,toolbarPlaceholder:v,isMobileKeyboardViewOpen:l,toggleMobileKeyboardView:g})),I&&!!P&&(0,Ae.jsx)(P,(0,d.c)({dateRangeIcon:x,timeIcon:S,view:M,onChange:O},null==(r=E.componentsProps)?void 0:r.tabs)),(0,Ae.jsx)(V_,{children:l?(0,Ae.jsx)(Ax,{className:k.mobileKeyboardInputView,children:(0,Ae.jsx)(wx,(0,d.c)({},a,{ignoreInvalidInputs:!0,disableOpenPicker:!0,TextFieldProps:jx}))}):(0,Ae.jsxs)(n.Fragment,{children:[Ix(M)&&(0,Ae.jsx)(lx,(0,d.c)({autoFocus:o,date:s,onViewChange:O,onChange:R,view:M,views:b.filter(Ix),focusedView:D,onFocusedViewChange:N},E)),Gx(M)&&(0,Ae.jsx)(U_,(0,d.c)({},E,{autoFocus:o,date:s,view:M,views:b.filter(Gx),onChange:R,onViewChange:O,showViewSwitcher:"desktop"===A}))]})})]})}const Mx=(e,t)=>{const{onAccept:r,onChange:i,value:o,closeOnSelect:s}=e,a=lv(),{isOpen:l,setIsOpen:c}=(e=>{let{open:t,onOpen:r,onClose:i}=e;const o=n.useRef("boolean"===typeof t).current,[s,a]=n.useState(!1);return n.useEffect((()=>{if(o){if("boolean"!==typeof t)throw new Error("You must not mix controlling and uncontrolled mode for `open` prop");a(t)}}),[o,t]),{isOpen:s,setIsOpen:n.useCallback((e=>{o||a(e),e&&r&&r(),!e&&i&&i()}),[o,r,i])}})(e),u=n.useMemo((()=>t.parseInput(a,o)),[t,a,o]),[h,p]=n.useState(u),[f,g]=n.useState((()=>({committed:u,draft:u,resetFallback:u}))),m=n.useCallback((e=>{g((t=>{switch(e.action){case"setAll":case"acceptAndClose":return{draft:e.value,committed:e.value,resetFallback:e.value};case"setCommitted":return(0,d.c)({},t,{draft:e.value,committed:e.value});case"setDraft":return(0,d.c)({},t,{draft:e.value});default:return t}})),(e.forceOnChangeCall||!e.skipOnChangeCall&&!t.areValuesEqual(a,f.committed,e.value))&&i(e.value),"acceptAndClose"===e.action&&(c(!1),r&&!t.areValuesEqual(a,f.resetFallback,e.value)&&r(e.value))}),[r,i,c,f,a,t]);n.useEffect((()=>{a.isValid(u)&&p(u)}),[a,u]),n.useEffect((()=>{l&&m({action:"setAll",value:u,skipOnChangeCall:!0})}),[l]),t.areValuesEqual(a,f.committed,u)||m({action:"setCommitted",value:u,skipOnChangeCall:!0});const y=n.useMemo((()=>({open:l,onClear:()=>{m({value:t.emptyValue,action:"acceptAndClose",forceOnChangeCall:!t.areValuesEqual(a,o,t.emptyValue)})},onAccept:()=>{m({value:f.draft,action:"acceptAndClose",forceOnChangeCall:!t.areValuesEqual(a,o,u)})},onDismiss:()=>{m({value:f.committed,action:"acceptAndClose"})},onCancel:()=>{m({value:f.resetFallback,action:"acceptAndClose"})},onSetToday:()=>{m({value:t.getTodayValue(a),action:"acceptAndClose"})}})),[m,l,a,f,t,o,u]),[v,_]=n.useState(!1),b=n.useMemo((()=>({parsedValue:f.draft,isMobileKeyboardViewOpen:v,toggleMobileKeyboardView:()=>_(!v),onDateChange:function(e,t){switch(arguments.length>2&&void 0!==arguments[2]?arguments[2]:"partial"){case"shallow":return m({action:"setDraft",value:e,skipOnChangeCall:!0});case"partial":return m({action:"setDraft",value:e});case"finish":return m((null!=s?s:"desktop"===t)?{value:e,action:"acceptAndClose"}:{value:e,action:"setCommitted"});default:throw new Error("MUI: Invalid selectionState passed to `onDateChange`")}}})),[m,v,f.draft,s]),x=n.useCallback(((e,n)=>{const r=t.valueReducer?t.valueReducer(a,h,e):e;i(r,n)}),[i,t,h,a]),S={pickerProps:b,inputProps:n.useMemo((()=>({onChange:x,open:l,rawValue:o,openPicker:()=>c(!0)})),[x,l,o,c]),wrapperProps:y};return n.useDebugValue(S,(()=>({MuiPickerState:{dateState:f,other:S}}))),S},Ox=["onChange","PopperProps","PaperProps","ToolbarComponent","TransitionComponent","value","components","componentsProps"],Rx=n.forwardRef((function(e,t){const n=mv(e,"MuiDesktopDatePicker"),r=null!==rb(n),{pickerProps:i,inputProps:o,wrapperProps:s}=Mx(n,yv),{PopperProps:a,PaperProps:l,ToolbarComponent:c=Dv,TransitionComponent:u,components:h,componentsProps:p}=n,f=(0,Tt.c)(n,Ox),g=(0,d.c)({},o,f,{components:h,componentsProps:p,ref:t,validationError:r});return(0,Ae.jsx)(Qv,(0,d.c)({},s,{DateInputProps:g,KeyboardDateInputComponent:wx,PopperProps:a,PaperProps:l,TransitionComponent:u,components:h,componentsProps:p,children:(0,Ae.jsx)(Tx,(0,d.c)({},i,{autoFocus:!0,toolbarTitle:n.label||n.toolbarTitle,ToolbarComponent:c,DateInputProps:g,components:h,componentsProps:p},f))}))}));function Dx(e){return(0,hs.c)("MuiDialogContent",e)}(0,ds.c)("MuiDialogContent",["root","dividers"]);function Nx(e){return(0,hs.c)("MuiDialogTitle",e)}const Lx=(0,ds.c)("MuiDialogTitle",["root"]),Vx=["className","dividers"],Fx=(0,cs.cp)("div",{name:"MuiDialogContent",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.dividers&&t.dividers]}})((e=>{let{theme:t,ownerState:n}=e;return(0,d.c)({flex:"1 1 auto",WebkitOverflowScrolling:"touch",overflowY:"auto",padding:"20px 24px"},n.dividers?{padding:"16px 24px",borderTop:"1px solid ".concat((t.vars||t).palette.divider),borderBottom:"1px solid ".concat((t.vars||t).palette.divider)}:{[".".concat(Lx.root," + &")]:{paddingTop:0}})})),zx=n.forwardRef((function(e,t){const n=(0,Oe.c)({props:e,name:"MuiDialogContent"}),{className:r,dividers:i=!1}=n,o=(0,Tt.c)(n,Vx),s=(0,d.c)({},n,{dividers:i}),a=(e=>{const{classes:t,dividers:n}=e,r={root:["root",n&&"dividers"]};return(0,ls.c)(r,Dx,t)})(s);return(0,Ae.jsx)(Fx,(0,d.c)({className:(0,ts.c)(a.root,r),ownerState:s,ref:t},o))}));var Bx=__webpack_require__(52308);function Ux(e){return(0,hs.c)("MuiDialog",e)}const Wx=(0,ds.c)("MuiDialog",["root","scrollPaper","scrollBody","container","paper","paperScrollPaper","paperScrollBody","paperWidthFalse","paperWidthXs","paperWidthSm","paperWidthMd","paperWidthLg","paperWidthXl","paperFullWidth","paperFullScreen"]);const Hx=(0,n.createContext)({}),qx=["aria-describedby","aria-labelledby","BackdropComponent","BackdropProps","children","className","disableEscapeKeyDown","fullScreen","fullWidth","maxWidth","onBackdropClick","onClose","open","PaperComponent","PaperProps","scroll","TransitionComponent","transitionDuration","TransitionProps"],Xx=(0,cs.cp)(Ad,{name:"MuiDialog",slot:"Backdrop",overrides:(e,t)=>t.backdrop})({zIndex:-1}),Yx=(0,cs.cp)(Td,{name:"MuiDialog",slot:"Root",overridesResolver:(e,t)=>t.root})({"@media print":{position:"absolute !important"}}),Kx=(0,cs.cp)("div",{name:"MuiDialog",slot:"Container",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.container,t["scroll".concat((0,ha.c)(n.scroll))]]}})((e=>{let{ownerState:t}=e;return(0,d.c)({height:"100%","@media print":{height:"auto"},outline:0},"paper"===t.scroll&&{display:"flex",justifyContent:"center",alignItems:"center"},"body"===t.scroll&&{overflowY:"auto",overflowX:"hidden",textAlign:"center","&:after":{content:'""',display:"inline-block",verticalAlign:"middle",height:"100%",width:"0"}})})),Zx=(0,cs.cp)(Qu,{name:"MuiDialog",slot:"Paper",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.paper,t["scrollPaper".concat((0,ha.c)(n.scroll))],t["paperWidth".concat((0,ha.c)(String(n.maxWidth)))],n.fullWidth&&t.paperFullWidth,n.fullScreen&&t.paperFullScreen]}})((e=>{let{theme:t,ownerState:n}=e;return(0,d.c)({margin:32,position:"relative",overflowY:"auto","@media print":{overflowY:"visible",boxShadow:"none"}},"paper"===n.scroll&&{display:"flex",flexDirection:"column",maxHeight:"calc(100% - 64px)"},"body"===n.scroll&&{display:"inline-block",verticalAlign:"middle",textAlign:"left"},!n.maxWidth&&{maxWidth:"calc(100% - 64px)"},"xs"===n.maxWidth&&{maxWidth:"px"===t.breakpoints.unit?Math.max(t.breakpoints.values.xs,444):"".concat(t.breakpoints.values.xs).concat(t.breakpoints.unit),["&.".concat(Wx.paperScrollBody)]:{[t.breakpoints.down(Math.max(t.breakpoints.values.xs,444)+64)]:{maxWidth:"calc(100% - 64px)"}}},n.maxWidth&&"xs"!==n.maxWidth&&{maxWidth:"".concat(t.breakpoints.values[n.maxWidth]).concat(t.breakpoints.unit),["&.".concat(Wx.paperScrollBody)]:{[t.breakpoints.down(t.breakpoints.values[n.maxWidth]+64)]:{maxWidth:"calc(100% - 64px)"}}},n.fullWidth&&{width:"calc(100% - 64px)"},n.fullScreen&&{margin:0,width:"100%",maxWidth:"100%",height:"100%",maxHeight:"none",borderRadius:0,["&.".concat(Wx.paperScrollBody)]:{margin:0,maxWidth:"100%"}})})),$x=n.forwardRef((function(e,t){const r=(0,Oe.c)({props:e,name:"MuiDialog"}),i=Go(),o={enter:i.transitions.duration.enteringScreen,exit:i.transitions.duration.leavingScreen},{"aria-describedby":s,"aria-labelledby":a,BackdropComponent:l,BackdropProps:c,children:u,className:h,disableEscapeKeyDown:p=!1,fullScreen:f=!1,fullWidth:g=!1,maxWidth:m="sm",onBackdropClick:y,onClose:v,open:_,PaperComponent:b=Qu,PaperProps:x={},scroll:S="paper",TransitionComponent:w=Sd,transitionDuration:E=o,TransitionProps:P}=r,C=(0,Tt.c)(r,qx),A=(0,d.c)({},r,{disableEscapeKeyDown:p,fullScreen:f,fullWidth:g,maxWidth:m,scroll:S}),k=(e=>{const{classes:t,scroll:n,maxWidth:r,fullWidth:i,fullScreen:o}=e,s={root:["root"],container:["container","scroll".concat((0,ha.c)(n))],paper:["paper","paperScroll".concat((0,ha.c)(n)),"paperWidth".concat((0,ha.c)(String(r))),i&&"paperFullWidth",o&&"paperFullScreen"]};return(0,ls.c)(s,Ux,t)})(A),j=n.useRef(),I=(0,Bx.c)(a),G=n.useMemo((()=>({titleId:I})),[I]);return(0,Ae.jsx)(Yx,(0,d.c)({className:(0,ts.c)(k.root,h),closeAfterTransition:!0,components:{Backdrop:Xx},componentsProps:{backdrop:(0,d.c)({transitionDuration:E,as:l},c)},disableEscapeKeyDown:p,onClose:v,open:_,ref:t,onClick:e=>{j.current&&(j.current=null,y&&y(e),v&&v(e,"backdropClick"))},ownerState:A},C,{children:(0,Ae.jsx)(w,(0,d.c)({appear:!0,in:_,timeout:E,role:"presentation"},P,{children:(0,Ae.jsx)(Kx,{className:(0,ts.c)(k.container),onMouseDown:e=>{j.current=e.target===e.currentTarget},ownerState:A,children:(0,Ae.jsx)(Zx,(0,d.c)({as:b,elevation:24,role:"dialog","aria-describedby":s,"aria-labelledby":I},x,{className:(0,ts.c)(k.paper,x.className),ownerState:A,children:(0,Ae.jsx)(Hx.Provider,{value:G,children:u})}))})}))}))})),Jx=(0,cs.cp)($x)({["& .".concat(Wx.container)]:{outline:0},["& .".concat(Wx.paper)]:{outline:0,minWidth:320}}),Qx=(0,cs.cp)(zx)({"&:first-of-type":{padding:0}}),eS=e=>{var t;const{children:n,DialogProps:r={},onAccept:i,onClear:o,onDismiss:s,onCancel:a,onSetToday:l,open:c,components:u,componentsProps:h}=e,p=null!=(t=null==u?void 0:u.ActionBar)?t:Uv;return(0,Ae.jsxs)(Jx,(0,d.c)({open:c,onClose:s},r,{children:[(0,Ae.jsx)(Qx,{children:n}),(0,Ae.jsx)(p,(0,d.c)({onAccept:i,onClear:o,onCancel:a,onSetToday:l,actions:["cancel","accept"]},null==h?void 0:h.actionBar))]}))},tS=["children","DateInputProps","DialogProps","onAccept","onClear","onDismiss","onCancel","onSetToday","open","PureDateInputComponent","components","componentsProps"];function nS(e){const{children:t,DateInputProps:n,DialogProps:r,onAccept:i,onClear:o,onDismiss:s,onCancel:a,onSetToday:l,open:c,PureDateInputComponent:u,components:h,componentsProps:p}=e,f=(0,Tt.c)(e,tS);return(0,Ae.jsxs)(Nv.Provider,{value:"mobile",children:[(0,Ae.jsx)(u,(0,d.c)({components:h},f,n)),(0,Ae.jsx)(eS,{DialogProps:r,onAccept:i,onClear:o,onDismiss:s,onCancel:a,onSetToday:l,open:c,components:h,componentsProps:p,children:t})]})}const rS=n.forwardRef((function(e,t){const{disabled:r,getOpenDialogAriaText:i,inputFormat:o,InputProps:s,inputRef:a,label:l,openPicker:c,rawValue:u,renderInput:h,TextFieldProps:p={},validationError:f,className:g}=e,m=uv(),y=null!=i?i:m.openDatePickerDialogue,v=lv(),_=n.useMemo((()=>(0,d.c)({},s,{readOnly:!0})),[s]),b=mx(v,u,o),x=(0,As.c)((e=>{e.stopPropagation(),c()}));return h((0,d.c)({label:l,disabled:r,ref:t,inputRef:a,error:f,InputProps:_,className:g},!e.readOnly&&!e.disabled&&{onClick:x},{inputProps:(0,d.c)({disabled:r,readOnly:!0,"aria-readonly":!0,"aria-label":y(u,v),value:b},!e.readOnly&&{onClick:x},{onKeyDown:qv(c)})},p))})),iS=["ToolbarComponent","value","onChange","components","componentsProps"],oS=n.forwardRef((function(e,t){const n=mv(e,"MuiMobileDatePicker"),r=null!==rb(n),{pickerProps:i,inputProps:o,wrapperProps:s}=Mx(n,yv),{ToolbarComponent:a=Dv,components:l,componentsProps:c}=n,u=(0,Tt.c)(n,iS),h=(0,d.c)({},o,u,{components:l,componentsProps:c,ref:t,validationError:r});return(0,Ae.jsx)(nS,(0,d.c)({},u,s,{DateInputProps:h,PureDateInputComponent:rS,components:l,componentsProps:c,children:(0,Ae.jsx)(Tx,(0,d.c)({},i,{autoFocus:!0,toolbarTitle:n.label||n.toolbarTitle,ToolbarComponent:a,DateInputProps:h,components:l,componentsProps:c},u))}))})),sS=["desktopModeMediaQuery","DialogProps","PopperProps","TransitionComponent"],aS=n.forwardRef((function(e,t){const n=(0,Oe.c)({props:e,name:"MuiDatePicker"}),{desktopModeMediaQuery:r="@media (pointer: fine)",DialogProps:i,PopperProps:o,TransitionComponent:s}=n,a=(0,Tt.c)(n,sS),l=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const n=(0,Hc.c)(),r="undefined"!==typeof window&&"undefined"!==typeof window.matchMedia,{defaultMatches:i=!1,matchMedia:o=(r?window.matchMedia:null),ssrMatchMedia:s=null,noSsr:a}=(0,rv.c)({name:"MuiUseMediaQuery",props:t,theme:n});let l="function"===typeof e?e(n):e;return l=l.replace(/^@media( ?)/m,""),(void 0!==ov?sv:iv)(l,i,o,s,a)}(r,{defaultMatches:!0});return l?(0,Ae.jsx)(Rx,(0,d.c)({ref:t,PopperProps:o,TransitionComponent:s},a)):(0,Ae.jsx)(oS,(0,d.c)({ref:t,DialogProps:i},a))}));var lS=__webpack_require__(82732);const cS=["onChange","maxRows","minRows","style","value"];function uS(e,t){return parseInt(e[t],10)||0}const dS={visibility:"hidden",position:"absolute",overflow:"hidden",height:0,top:0,left:0,transform:"translateZ(0)"};function hS(e){return void 0===e||null===e||0===Object.keys(e).length}const pS=n.forwardRef((function(e,t){const{onChange:r,maxRows:i,minRows:o=1,style:s,value:a}=e,l=(0,Tt.c)(e,cS),{current:c}=n.useRef(null!=a),u=n.useRef(null),h=(0,ol.c)(t,u),p=n.useRef(null),f=n.useRef(0),[g,m]=n.useState({}),y=n.useCallback((()=>{const t=u.current,n=(0,id.c)(t).getComputedStyle(t);if("0px"===n.width)return{};const r=p.current;r.style.width=n.width,r.value=t.value||e.placeholder||"x","\n"===r.value.slice(-1)&&(r.value+=" ");const s=n["box-sizing"],a=uS(n,"padding-bottom")+uS(n,"padding-top"),l=uS(n,"border-bottom-width")+uS(n,"border-top-width"),c=r.scrollHeight;r.value="x";const d=r.scrollHeight;let h=c;o&&(h=Math.max(Number(o)*d,h)),i&&(h=Math.min(Number(i)*d,h)),h=Math.max(h,d);return{outerHeightStyle:h+("border-box"===s?a+l:0),overflow:Math.abs(h-c)<=1}}),[i,o,e.placeholder]),v=(e,t)=>{const{outerHeightStyle:n,overflow:r}=t;return f.current<20&&(n>0&&Math.abs((e.outerHeightStyle||0)-n)>1||e.overflow!==r)?(f.current+=1,{overflow:r,outerHeightStyle:n}):e},_=n.useCallback((()=>{const e=y();hS(e)||m((t=>v(t,e)))}),[y]);n.useEffect((()=>{const e=(0,lS.c)((()=>{f.current=0,u.current&&(()=>{const e=y();hS(e)||(0,x.flushSync)((()=>{m((t=>v(t,e)))}))})()})),t=(0,id.c)(u.current);let n;return t.addEventListener("resize",e),"undefined"!==typeof ResizeObserver&&(n=new ResizeObserver(e),n.observe(u.current)),()=>{e.clear(),t.removeEventListener("resize",e),n&&n.disconnect()}})),(0,sl.c)((()=>{_()})),n.useEffect((()=>{f.current=0}),[a]);return(0,Ae.jsxs)(n.Fragment,{children:[(0,Ae.jsx)("textarea",(0,d.c)({value:a,onChange:e=>{f.current=0,c||_(),r&&r(e)},ref:h,rows:o,style:(0,d.c)({height:g.outerHeightStyle,overflow:g.overflow?"hidden":null},s)},l)),(0,Ae.jsx)("textarea",{"aria-hidden":!0,className:e.className,readOnly:!0,ref:p,tabIndex:-1,style:(0,d.c)({},dS,s,{padding:0})})]})})),fS=pS;function gS(e){const{styles:t,defaultTheme:n={}}=e,r="function"===typeof t?e=>{return t(void 0===(r=e)||null===r||0===Object.keys(r).length?n:e);var r}:t;return(0,Ae.jsx)(Fs,{styles:r})}const mS=function(e){return(0,Ae.jsx)(gS,(0,d.c)({},e,{defaultTheme:Io.c}))};function yS(e){return null!=e&&!(Array.isArray(e)&&0===e.length)}function vS(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return e&&(yS(e.value)&&""!==e.value||t&&yS(e.defaultValue)&&""!==e.defaultValue)}function _S(e){return(0,hs.c)("MuiInputBase",e)}const bS=(0,ds.c)("MuiInputBase",["root","formControl","focused","disabled","adornedStart","adornedEnd","error","sizeSmall","multiline","colorSecondary","fullWidth","hiddenLabel","readOnly","input","inputSizeSmall","inputMultiline","inputTypeSearch","inputAdornedStart","inputAdornedEnd","inputHiddenLabel"]),xS=["aria-describedby","autoComplete","autoFocus","className","color","components","componentsProps","defaultValue","disabled","disableInjectingGlobalStyles","endAdornment","error","fullWidth","id","inputComponent","inputProps","inputRef","margin","maxRows","minRows","multiline","name","onBlur","onChange","onClick","onFocus","onKeyDown","onKeyUp","placeholder","readOnly","renderSuffix","rows","size","slotProps","slots","startAdornment","type","value"],SS=(e,t)=>{const{ownerState:n}=e;return[t.root,n.formControl&&t.formControl,n.startAdornment&&t.adornedStart,n.endAdornment&&t.adornedEnd,n.error&&t.error,"small"===n.size&&t.sizeSmall,n.multiline&&t.multiline,n.color&&t["color".concat((0,ha.c)(n.color))],n.fullWidth&&t.fullWidth,n.hiddenLabel&&t.hiddenLabel]},wS=(e,t)=>{const{ownerState:n}=e;return[t.input,"small"===n.size&&t.inputSizeSmall,n.multiline&&t.inputMultiline,"search"===n.type&&t.inputTypeSearch,n.startAdornment&&t.inputAdornedStart,n.endAdornment&&t.inputAdornedEnd,n.hiddenLabel&&t.inputHiddenLabel]},ES=(0,cs.cp)("div",{name:"MuiInputBase",slot:"Root",overridesResolver:SS})((e=>{let{theme:t,ownerState:n}=e;return(0,d.c)({},t.typography.body1,{color:(t.vars||t).palette.text.primary,lineHeight:"1.4375em",boxSizing:"border-box",position:"relative",cursor:"text",display:"inline-flex",alignItems:"center",["&.".concat(bS.disabled)]:{color:(t.vars||t).palette.text.disabled,cursor:"default"}},n.multiline&&(0,d.c)({padding:"4px 0 5px"},"small"===n.size&&{paddingTop:1}),n.fullWidth&&{width:"100%"})})),PS=(0,cs.cp)("input",{name:"MuiInputBase",slot:"Input",overridesResolver:wS})((e=>{let{theme:t,ownerState:n}=e;const r="light"===t.palette.mode,i=(0,d.c)({color:"currentColor"},t.vars?{opacity:t.vars.opacity.inputPlaceholder}:{opacity:r?.42:.5},{transition:t.transitions.create("opacity",{duration:t.transitions.duration.shorter})}),o={opacity:"0 !important"},s=t.vars?{opacity:t.vars.opacity.inputPlaceholder}:{opacity:r?.42:.5};return(0,d.c)({font:"inherit",letterSpacing:"inherit",color:"currentColor",padding:"4px 0 5px",border:0,boxSizing:"content-box",background:"none",height:"1.4375em",margin:0,WebkitTapHighlightColor:"transparent",display:"block",minWidth:0,width:"100%",animationName:"mui-auto-fill-cancel",animationDuration:"10ms","&::-webkit-input-placeholder":i,"&::-moz-placeholder":i,"&:-ms-input-placeholder":i,"&::-ms-input-placeholder":i,"&:focus":{outline:0},"&:invalid":{boxShadow:"none"},"&::-webkit-search-decoration":{WebkitAppearance:"none"},["label[data-shrink=false] + .".concat(bS.formControl," &")]:{"&::-webkit-input-placeholder":o,"&::-moz-placeholder":o,"&:-ms-input-placeholder":o,"&::-ms-input-placeholder":o,"&:focus::-webkit-input-placeholder":s,"&:focus::-moz-placeholder":s,"&:focus:-ms-input-placeholder":s,"&:focus::-ms-input-placeholder":s},["&.".concat(bS.disabled)]:{opacity:1,WebkitTextFillColor:(t.vars||t).palette.text.disabled},"&:-webkit-autofill":{animationDuration:"5000s",animationName:"mui-auto-fill"}},"small"===n.size&&{paddingTop:1},n.multiline&&{height:"auto",resize:"none",padding:0,paddingTop:0},"search"===n.type&&{MozAppearance:"textfield"})})),CS=(0,Ae.jsx)(mS,{styles:{"@keyframes mui-auto-fill":{from:{display:"block"}},"@keyframes mui-auto-fill-cancel":{from:{display:"block"}}}}),AS=n.forwardRef((function(e,t){var r;const i=(0,Oe.c)({props:e,name:"MuiInputBase"}),{"aria-describedby":o,autoComplete:s,autoFocus:a,className:l,components:c={},componentsProps:u={},defaultValue:h,disabled:p,disableInjectingGlobalStyles:f,endAdornment:g,fullWidth:m=!1,id:y,inputComponent:v="input",inputProps:_={},inputRef:b,maxRows:x,minRows:S,multiline:w=!1,name:E,onBlur:P,onChange:C,onClick:A,onFocus:k,onKeyDown:j,onKeyUp:I,placeholder:G,readOnly:T,renderSuffix:M,rows:O,slotProps:R={},slots:D={},startAdornment:N,type:L="text",value:V}=i,F=(0,Tt.c)(i,xS),z=null!=_.value?_.value:V,{current:B}=n.useRef(null!=z),U=n.useRef(),W=n.useCallback((e=>{0}),[]),H=(0,Cs.c)(U,b,_.ref,W),[q,X]=n.useState(!1),Y=du();const K=xu({props:i,muiFormControl:Y,states:["color","disabled","error","hiddenLabel","size","required","filled"]});K.focused=Y?Y.focused:q,n.useEffect((()=>{!Y&&p&&q&&(X(!1),P&&P())}),[Y,p,q,P]);const Z=Y&&Y.onFilled,$=Y&&Y.onEmpty,J=n.useCallback((e=>{vS(e)?Z&&Z():$&&$()}),[Z,$]);(0,zu.c)((()=>{B&&J({value:z})}),[z,J,B]);n.useEffect((()=>{J(U.current)}),[]);let Q=v,ee=_;w&&"input"===Q&&(ee=O?(0,d.c)({type:void 0,minRows:O,maxRows:O},ee):(0,d.c)({type:void 0,maxRows:x,minRows:S},ee),Q=fS);n.useEffect((()=>{Y&&Y.setAdornedStart(Boolean(N))}),[Y,N]);const te=(0,d.c)({},i,{color:K.color||"primary",disabled:K.disabled,endAdornment:g,error:K.error,focused:K.focused,formControl:Y,fullWidth:m,hiddenLabel:K.hiddenLabel,multiline:w,size:K.size,startAdornment:N,type:L}),ne=(e=>{const{classes:t,color:n,disabled:r,error:i,endAdornment:o,focused:s,formControl:a,fullWidth:l,hiddenLabel:c,multiline:u,readOnly:d,size:h,startAdornment:p,type:f}=e,g={root:["root","color".concat((0,ha.c)(n)),r&&"disabled",i&&"error",l&&"fullWidth",s&&"focused",a&&"formControl","small"===h&&"sizeSmall",u&&"multiline",p&&"adornedStart",o&&"adornedEnd",c&&"hiddenLabel",d&&"readOnly"],input:["input",r&&"disabled","search"===f&&"inputTypeSearch",u&&"inputMultiline","small"===h&&"inputSizeSmall",c&&"inputHiddenLabel",p&&"inputAdornedStart",o&&"inputAdornedEnd",d&&"readOnly"]};return(0,ls.c)(g,_S,t)})(te),re=D.root||c.Root||ES,ie=R.root||u.root||{},oe=D.input||c.Input||PS;return ee=(0,d.c)({},ee,null!=(r=R.input)?r:u.input),(0,Ae.jsxs)(n.Fragment,{children:[!f&&CS,(0,Ae.jsxs)(re,(0,d.c)({},ie,!Va(re)&&{ownerState:(0,d.c)({},te,ie.ownerState)},{ref:t,onClick:e=>{U.current&&e.currentTarget===e.target&&U.current.focus(),A&&A(e)}},F,{className:(0,ts.c)(ne.root,ie.className,l),children:[N,(0,Ae.jsx)(uu.Provider,{value:null,children:(0,Ae.jsx)(oe,(0,d.c)({ownerState:te,"aria-invalid":K.error,"aria-describedby":o,autoComplete:s,autoFocus:a,defaultValue:h,disabled:K.disabled,id:y,onAnimationStart:e=>{J("mui-auto-fill-cancel"===e.animationName?U.current:{value:"x"})},name:E,placeholder:G,readOnly:T,required:K.required,rows:O,value:z,onKeyDown:j,onKeyUp:I,type:L},ee,!Va(oe)&&{as:Q,ownerState:(0,d.c)({},te,ee.ownerState)},{ref:H,className:(0,ts.c)(ne.input,ee.className),onBlur:e=>{P&&P(e),_.onBlur&&_.onBlur(e),Y&&Y.onBlur?Y.onBlur(e):X(!1)},onChange:function(e){if(!B){const t=e.target||U.current;if(null==t)throw new Error((0,Ep.c)(1));J({value:t.value})}for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];_.onChange&&_.onChange(e,...n),C&&C(e,...n)},onFocus:e=>{K.disabled?e.stopPropagation():(k&&k(e),_.onFocus&&_.onFocus(e),Y&&Y.onFocus?Y.onFocus(e):X(!0))}}))}),g,M?M((0,d.c)({},K,{startAdornment:N})):null]}))]})})),kS=AS;function jS(e){return(0,hs.c)("MuiInput",e)}const IS=(0,d.c)({},bS,(0,ds.c)("MuiInput",["root","underline","input"])),GS=["disableUnderline","components","componentsProps","fullWidth","inputComponent","multiline","slotProps","slots","type"],TS=(0,cs.cp)(ES,{shouldForwardProp:e=>(0,cs.CU)(e)||"classes"===e,name:"MuiInput",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[...SS(e,t),!n.disableUnderline&&t.underline]}})((e=>{let{theme:t,ownerState:n}=e;let r="light"===t.palette.mode?"rgba(0, 0, 0, 0.42)":"rgba(255, 255, 255, 0.7)";return t.vars&&(r="rgba(".concat(t.vars.palette.common.onBackgroundChannel," / ").concat(t.vars.opacity.inputUnderline,")")),(0,d.c)({position:"relative"},n.formControl&&{"label + &":{marginTop:16}},!n.disableUnderline&&{"&:after":{borderBottom:"2px solid ".concat((t.vars||t).palette[n.color].main),left:0,bottom:0,content:'""',position:"absolute",right:0,transform:"scaleX(0)",transition:t.transitions.create("transform",{duration:t.transitions.duration.shorter,easing:t.transitions.easing.easeOut}),pointerEvents:"none"},["&.".concat(IS.focused,":after")]:{transform:"scaleX(1) translateX(0)"},["&.".concat(IS.error,":after")]:{borderBottomColor:(t.vars||t).palette.error.main,transform:"scaleX(1)"},"&:before":{borderBottom:"1px solid ".concat(r),left:0,bottom:0,content:'"\\00a0"',position:"absolute",right:0,transition:t.transitions.create("border-bottom-color",{duration:t.transitions.duration.shorter}),pointerEvents:"none"},["&:hover:not(.".concat(IS.disabled,"):before")]:{borderBottom:"2px solid ".concat((t.vars||t).palette.text.primary),"@media (hover: none)":{borderBottom:"1px solid ".concat(r)}},["&.".concat(IS.disabled,":before")]:{borderBottomStyle:"dotted"}})})),MS=(0,cs.cp)(PS,{name:"MuiInput",slot:"Input",overridesResolver:wS})({}),OS=n.forwardRef((function(e,t){var n,r,i,o;const s=(0,Oe.c)({props:e,name:"MuiInput"}),{disableUnderline:a,components:l={},componentsProps:c,fullWidth:u=!1,inputComponent:h="input",multiline:p=!1,slotProps:f,slots:g={},type:m="text"}=s,y=(0,Tt.c)(s,GS),v=(e=>{const{classes:t,disableUnderline:n}=e,r={root:["root",!n&&"underline"],input:["input"]},i=(0,ls.c)(r,jS,t);return(0,d.c)({},t,i)})(s),_={root:{ownerState:{disableUnderline:a}}},b=(null!=f?f:c)?(0,rs.c)(null!=f?f:c,_):_,x=null!=(n=null!=(r=g.root)?r:l.Root)?n:TS,S=null!=(i=null!=(o=g.input)?o:l.Input)?i:MS;return(0,Ae.jsx)(kS,(0,d.c)({slots:{root:x,input:S},slotProps:b,fullWidth:u,inputComponent:h,multiline:p,ref:t,type:m},y,{classes:v}))}));OS.muiName="Input";const RS=OS;function DS(e){return(0,hs.c)("MuiFilledInput",e)}const NS=(0,d.c)({},bS,(0,ds.c)("MuiFilledInput",["root","underline","input"])),LS=["disableUnderline","components","componentsProps","fullWidth","hiddenLabel","inputComponent","multiline","slotProps","slots","type"],VS=(0,cs.cp)(ES,{shouldForwardProp:e=>(0,cs.CU)(e)||"classes"===e,name:"MuiFilledInput",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[...SS(e,t),!n.disableUnderline&&t.underline]}})((e=>{let{theme:t,ownerState:n}=e;var r;const i="light"===t.palette.mode,o=i?"rgba(0, 0, 0, 0.42)":"rgba(255, 255, 255, 0.7)",s=i?"rgba(0, 0, 0, 0.06)":"rgba(255, 255, 255, 0.09)",a=i?"rgba(0, 0, 0, 0.09)":"rgba(255, 255, 255, 0.13)",l=i?"rgba(0, 0, 0, 0.12)":"rgba(255, 255, 255, 0.12)";return(0,d.c)({position:"relative",backgroundColor:t.vars?t.vars.palette.FilledInput.bg:s,borderTopLeftRadius:(t.vars||t).shape.borderRadius,borderTopRightRadius:(t.vars||t).shape.borderRadius,transition:t.transitions.create("background-color",{duration:t.transitions.duration.shorter,easing:t.transitions.easing.easeOut}),"&:hover":{backgroundColor:t.vars?t.vars.palette.FilledInput.hoverBg:a,"@media (hover: none)":{backgroundColor:t.vars?t.vars.palette.FilledInput.bg:s}},["&.".concat(NS.focused)]:{backgroundColor:t.vars?t.vars.palette.FilledInput.bg:s},["&.".concat(NS.disabled)]:{backgroundColor:t.vars?t.vars.palette.FilledInput.disabledBg:l}},!n.disableUnderline&&{"&:after":{borderBottom:"2px solid ".concat(null==(r=(t.vars||t).palette[n.color||"primary"])?void 0:r.main),left:0,bottom:0,content:'""',position:"absolute",right:0,transform:"scaleX(0)",transition:t.transitions.create("transform",{duration:t.transitions.duration.shorter,easing:t.transitions.easing.easeOut}),pointerEvents:"none"},["&.".concat(NS.focused,":after")]:{transform:"scaleX(1) translateX(0)"},["&.".concat(NS.error,":after")]:{borderBottomColor:(t.vars||t).palette.error.main,transform:"scaleX(1)"},"&:before":{borderBottom:"1px solid ".concat(t.vars?"rgba(".concat(t.vars.palette.common.onBackgroundChannel," / ").concat(t.vars.opacity.inputUnderline,")"):o),left:0,bottom:0,content:'"\\00a0"',position:"absolute",right:0,transition:t.transitions.create("border-bottom-color",{duration:t.transitions.duration.shorter}),pointerEvents:"none"},["&:hover:not(.".concat(NS.disabled,"):before")]:{borderBottom:"1px solid ".concat((t.vars||t).palette.text.primary)},["&.".concat(NS.disabled,":before")]:{borderBottomStyle:"dotted"}},n.startAdornment&&{paddingLeft:12},n.endAdornment&&{paddingRight:12},n.multiline&&(0,d.c)({padding:"25px 12px 8px"},"small"===n.size&&{paddingTop:21,paddingBottom:4},n.hiddenLabel&&{paddingTop:16,paddingBottom:17}))})),FS=(0,cs.cp)(PS,{name:"MuiFilledInput",slot:"Input",overridesResolver:wS})((e=>{let{theme:t,ownerState:n}=e;return(0,d.c)({paddingTop:25,paddingRight:12,paddingBottom:8,paddingLeft:12},!t.vars&&{"&:-webkit-autofill":{WebkitBoxShadow:"light"===t.palette.mode?null:"0 0 0 100px #266798 inset",WebkitTextFillColor:"light"===t.palette.mode?null:"#fff",caretColor:"light"===t.palette.mode?null:"#fff",borderTopLeftRadius:"inherit",borderTopRightRadius:"inherit"}},t.vars&&{"&:-webkit-autofill":{borderTopLeftRadius:"inherit",borderTopRightRadius:"inherit"},[t.getColorSchemeSelector("dark")]:{"&:-webkit-autofill":{WebkitBoxShadow:"0 0 0 100px #266798 inset",WebkitTextFillColor:"#fff",caretColor:"#fff"}}},"small"===n.size&&{paddingTop:21,paddingBottom:4},n.hiddenLabel&&{paddingTop:16,paddingBottom:17},n.multiline&&{paddingTop:0,paddingBottom:0,paddingLeft:0,paddingRight:0},n.startAdornment&&{paddingLeft:0},n.endAdornment&&{paddingRight:0},n.hiddenLabel&&"small"===n.size&&{paddingTop:8,paddingBottom:9})})),zS=n.forwardRef((function(e,t){var n,r,i,o;const s=(0,Oe.c)({props:e,name:"MuiFilledInput"}),{components:a={},componentsProps:l,fullWidth:c=!1,inputComponent:u="input",multiline:h=!1,slotProps:p,slots:f={},type:g="text"}=s,m=(0,Tt.c)(s,LS),y=(0,d.c)({},s,{fullWidth:c,inputComponent:u,multiline:h,type:g}),v=(e=>{const{classes:t,disableUnderline:n}=e,r={root:["root",!n&&"underline"],input:["input"]},i=(0,ls.c)(r,DS,t);return(0,d.c)({},t,i)})(s),_={root:{ownerState:y},input:{ownerState:y}},b=(null!=p?p:l)?(0,rs.c)(null!=p?p:l,_):_,x=null!=(n=null!=(r=f.root)?r:a.Root)?n:VS,S=null!=(i=null!=(o=f.input)?o:a.Input)?i:FS;return(0,Ae.jsx)(kS,(0,d.c)({slots:{root:x,input:S},componentsProps:b,fullWidth:c,inputComponent:u,multiline:h,ref:t,type:g},m,{classes:v}))}));zS.muiName="Input";const BS=zS;var US;const WS=["children","classes","className","label","notched"],HS=(0,cs.cp)("fieldset")({textAlign:"left",position:"absolute",bottom:0,right:0,top:-5,left:0,margin:0,padding:"0 8px",pointerEvents:"none",borderRadius:"inherit",borderStyle:"solid",borderWidth:1,overflow:"hidden",minWidth:"0%"}),qS=(0,cs.cp)("legend")((e=>{let{ownerState:t,theme:n}=e;return(0,d.c)({float:"unset",width:"auto",overflow:"hidden"},!t.withLabel&&{padding:0,lineHeight:"11px",transition:n.transitions.create("width",{duration:150,easing:n.transitions.easing.easeOut})},t.withLabel&&(0,d.c)({display:"block",padding:0,height:11,fontSize:"0.75em",visibility:"hidden",maxWidth:.01,transition:n.transitions.create("max-width",{duration:50,easing:n.transitions.easing.easeOut}),whiteSpace:"nowrap","& > span":{paddingLeft:5,paddingRight:5,display:"inline-block",opacity:0,visibility:"visible"}},t.notched&&{maxWidth:"100%",transition:n.transitions.create("max-width",{duration:100,easing:n.transitions.easing.easeOut,delay:50})}))}));function XS(e){return(0,hs.c)("MuiOutlinedInput",e)}const YS=(0,d.c)({},bS,(0,ds.c)("MuiOutlinedInput",["root","notchedOutline","input"])),KS=["components","fullWidth","inputComponent","label","multiline","notched","slots","type"],ZS=(0,cs.cp)(ES,{shouldForwardProp:e=>(0,cs.CU)(e)||"classes"===e,name:"MuiOutlinedInput",slot:"Root",overridesResolver:SS})((e=>{let{theme:t,ownerState:n}=e;const r="light"===t.palette.mode?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)";return(0,d.c)({position:"relative",borderRadius:(t.vars||t).shape.borderRadius,["&:hover .".concat(YS.notchedOutline)]:{borderColor:(t.vars||t).palette.text.primary},"@media (hover: none)":{["&:hover .".concat(YS.notchedOutline)]:{borderColor:t.vars?"rgba(".concat(t.vars.palette.common.onBackgroundChannel," / 0.23)"):r}},["&.".concat(YS.focused," .").concat(YS.notchedOutline)]:{borderColor:(t.vars||t).palette[n.color].main,borderWidth:2},["&.".concat(YS.error," .").concat(YS.notchedOutline)]:{borderColor:(t.vars||t).palette.error.main},["&.".concat(YS.disabled," .").concat(YS.notchedOutline)]:{borderColor:(t.vars||t).palette.action.disabled}},n.startAdornment&&{paddingLeft:14},n.endAdornment&&{paddingRight:14},n.multiline&&(0,d.c)({padding:"16.5px 14px"},"small"===n.size&&{padding:"8.5px 14px"}))})),$S=(0,cs.cp)((function(e){const{className:t,label:n,notched:r}=e,i=(0,Tt.c)(e,WS),o=null!=n&&""!==n,s=(0,d.c)({},e,{notched:r,withLabel:o});return(0,Ae.jsx)(HS,(0,d.c)({"aria-hidden":!0,className:t,ownerState:s},i,{children:(0,Ae.jsx)(qS,{ownerState:s,children:o?(0,Ae.jsx)("span",{children:n}):US||(US=(0,Ae.jsx)("span",{className:"notranslate",children:"\u200b"}))})}))}),{name:"MuiOutlinedInput",slot:"NotchedOutline",overridesResolver:(e,t)=>t.notchedOutline})((e=>{let{theme:t}=e;const n="light"===t.palette.mode?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)";return{borderColor:t.vars?"rgba(".concat(t.vars.palette.common.onBackgroundChannel," / 0.23)"):n}})),JS=(0,cs.cp)(PS,{name:"MuiOutlinedInput",slot:"Input",overridesResolver:wS})((e=>{let{theme:t,ownerState:n}=e;return(0,d.c)({padding:"16.5px 14px"},!t.vars&&{"&:-webkit-autofill":{WebkitBoxShadow:"light"===t.palette.mode?null:"0 0 0 100px #266798 inset",WebkitTextFillColor:"light"===t.palette.mode?null:"#fff",caretColor:"light"===t.palette.mode?null:"#fff",borderRadius:"inherit"}},t.vars&&{"&:-webkit-autofill":{borderRadius:"inherit"},[t.getColorSchemeSelector("dark")]:{"&:-webkit-autofill":{WebkitBoxShadow:"0 0 0 100px #266798 inset",WebkitTextFillColor:"#fff",caretColor:"#fff"}}},"small"===n.size&&{padding:"8.5px 14px"},n.multiline&&{padding:0},n.startAdornment&&{paddingLeft:0},n.endAdornment&&{paddingRight:0})})),QS=n.forwardRef((function(e,t){var r,i,o,s,a;const l=(0,Oe.c)({props:e,name:"MuiOutlinedInput"}),{components:c={},fullWidth:u=!1,inputComponent:h="input",label:p,multiline:f=!1,notched:g,slots:m={},type:y="text"}=l,v=(0,Tt.c)(l,KS),_=(e=>{const{classes:t}=e,n=(0,ls.c)({root:["root"],notchedOutline:["notchedOutline"],input:["input"]},XS,t);return(0,d.c)({},t,n)})(l),b=du(),x=xu({props:l,muiFormControl:b,states:["required"]}),S=(0,d.c)({},l,{color:x.color||"primary",disabled:x.disabled,error:x.error,focused:x.focused,formControl:b,fullWidth:u,hiddenLabel:x.hiddenLabel,multiline:f,size:x.size,type:y}),w=null!=(r=null!=(i=m.root)?i:c.Root)?r:ZS,E=null!=(o=null!=(s=m.input)?s:c.Input)?o:JS;return(0,Ae.jsx)(kS,(0,d.c)({slots:{root:w,input:E},renderSuffix:e=>(0,Ae.jsx)($S,{ownerState:S,className:_.notchedOutline,label:null!=p&&""!==p&&x.required?a||(a=(0,Ae.jsxs)(n.Fragment,{children:[p,"\xa0","*"]})):p,notched:"undefined"!==typeof g?g:Boolean(e.startAdornment||e.filled||e.focused)}),fullWidth:u,inputComponent:h,multiline:f,ref:t,type:y},v,{classes:(0,d.c)({},_,{notchedOutline:null})}))}));QS.muiName="Input";const ew=QS;function tw(e){return(0,hs.c)("MuiFormLabel",e)}const nw=(0,ds.c)("MuiFormLabel",["root","colorSecondary","focused","disabled","error","filled","required","asterisk"]),rw=["children","className","color","component","disabled","error","filled","focused","required"],iw=(0,cs.cp)("label",{name:"MuiFormLabel",slot:"Root",overridesResolver:(e,t)=>{let{ownerState:n}=e;return(0,d.c)({},t.root,"secondary"===n.color&&t.colorSecondary,n.filled&&t.filled)}})((e=>{let{theme:t,ownerState:n}=e;return(0,d.c)({color:(t.vars||t).palette.text.secondary},t.typography.body1,{lineHeight:"1.4375em",padding:0,position:"relative",["&.".concat(nw.focused)]:{color:(t.vars||t).palette[n.color].main},["&.".concat(nw.disabled)]:{color:(t.vars||t).palette.text.disabled},["&.".concat(nw.error)]:{color:(t.vars||t).palette.error.main}})})),ow=(0,cs.cp)("span",{name:"MuiFormLabel",slot:"Asterisk",overridesResolver:(e,t)=>t.asterisk})((e=>{let{theme:t}=e;return{["&.".concat(nw.error)]:{color:(t.vars||t).palette.error.main}}})),sw=n.forwardRef((function(e,t){const n=(0,Oe.c)({props:e,name:"MuiFormLabel"}),{children:r,className:i,component:o="label"}=n,s=(0,Tt.c)(n,rw),a=xu({props:n,muiFormControl:du(),states:["color","required","focused","disabled","error","filled"]}),l=(0,d.c)({},n,{color:a.color||"primary",component:o,disabled:a.disabled,error:a.error,filled:a.filled,focused:a.focused,required:a.required}),c=(e=>{const{classes:t,color:n,focused:r,disabled:i,error:o,filled:s,required:a}=e,l={root:["root","color".concat((0,ha.c)(n)),i&&"disabled",o&&"error",s&&"filled",r&&"focused",a&&"required"],asterisk:["asterisk",o&&"error"]};return(0,ls.c)(l,tw,t)})(l);return(0,Ae.jsxs)(iw,(0,d.c)({as:o,ownerState:l,className:(0,ts.c)(c.root,i),ref:t},s,{children:[r,a.required&&(0,Ae.jsxs)(ow,{ownerState:l,"aria-hidden":!0,className:c.asterisk,children:["\u2009","*"]})]}))})),aw=sw;function lw(e){return(0,hs.c)("MuiInputLabel",e)}(0,ds.c)("MuiInputLabel",["root","focused","disabled","error","required","asterisk","formControl","sizeSmall","shrink","animated","standard","filled","outlined"]);const cw=["disableAnimation","margin","shrink","variant","className"],uw=(0,cs.cp)(aw,{shouldForwardProp:e=>(0,cs.CU)(e)||"classes"===e,name:"MuiInputLabel",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{["& .".concat(nw.asterisk)]:t.asterisk},t.root,n.formControl&&t.formControl,"small"===n.size&&t.sizeSmall,n.shrink&&t.shrink,!n.disableAnimation&&t.animated,t[n.variant]]}})((e=>{let{theme:t,ownerState:n}=e;return(0,d.c)({display:"block",transformOrigin:"top left",whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis",maxWidth:"100%"},n.formControl&&{position:"absolute",left:0,top:0,transform:"translate(0, 20px) scale(1)"},"small"===n.size&&{transform:"translate(0, 17px) scale(1)"},n.shrink&&{transform:"translate(0, -1.5px) scale(0.75)",transformOrigin:"top left",maxWidth:"133%"},!n.disableAnimation&&{transition:t.transitions.create(["color","transform","max-width"],{duration:t.transitions.duration.shorter,easing:t.transitions.easing.easeOut})},"filled"===n.variant&&(0,d.c)({zIndex:1,pointerEvents:"none",transform:"translate(12px, 16px) scale(1)",maxWidth:"calc(100% - 24px)"},"small"===n.size&&{transform:"translate(12px, 13px) scale(1)"},n.shrink&&(0,d.c)({userSelect:"none",pointerEvents:"auto",transform:"translate(12px, 7px) scale(0.75)",maxWidth:"calc(133% - 24px)"},"small"===n.size&&{transform:"translate(12px, 4px) scale(0.75)"})),"outlined"===n.variant&&(0,d.c)({zIndex:1,pointerEvents:"none",transform:"translate(14px, 16px) scale(1)",maxWidth:"calc(100% - 24px)"},"small"===n.size&&{transform:"translate(14px, 9px) scale(1)"},n.shrink&&{userSelect:"none",pointerEvents:"auto",maxWidth:"calc(133% - 24px)",transform:"translate(14px, -9px) scale(0.75)"}))})),dw=n.forwardRef((function(e,t){const n=(0,Oe.c)({name:"MuiInputLabel",props:e}),{disableAnimation:r=!1,shrink:i,className:o}=n,s=(0,Tt.c)(n,cw),a=du();let l=i;"undefined"===typeof l&&a&&(l=a.filled||a.focused||a.adornedStart);const c=xu({props:n,muiFormControl:a,states:["size","variant","required"]}),u=(0,d.c)({},n,{disableAnimation:r,formControl:a,shrink:l,size:c.size,variant:c.variant,required:c.required}),h=(e=>{const{classes:t,formControl:n,size:r,shrink:i,disableAnimation:o,variant:s,required:a}=e,l={root:["root",n&&"formControl",!o&&"animated",i&&"shrink","small"===r&&"sizeSmall",s],asterisk:[a&&"asterisk"]},c=(0,ls.c)(l,lw,t);return(0,d.c)({},t,c)})(u);return(0,Ae.jsx)(uw,(0,d.c)({"data-shrink":l,ownerState:u,ref:t,className:(0,ts.c)(h.root,o)},s,{classes:h}))}));var hw=__webpack_require__(59600);function pw(e){return(0,hs.c)("MuiFormControl",e)}(0,ds.c)("MuiFormControl",["root","marginNone","marginNormal","marginDense","fullWidth","disabled"]);const fw=["children","className","color","component","disabled","error","focused","fullWidth","hiddenLabel","margin","required","size","variant"],gw=(0,cs.cp)("div",{name:"MuiFormControl",slot:"Root",overridesResolver:(e,t)=>{let{ownerState:n}=e;return(0,d.c)({},t.root,t["margin".concat((0,ha.c)(n.margin))],n.fullWidth&&t.fullWidth)}})((e=>{let{ownerState:t}=e;return(0,d.c)({display:"inline-flex",flexDirection:"column",position:"relative",minWidth:0,padding:0,margin:0,border:0,verticalAlign:"top"},"normal"===t.margin&&{marginTop:16,marginBottom:8},"dense"===t.margin&&{marginTop:8,marginBottom:4},t.fullWidth&&{width:"100%"})})),mw=n.forwardRef((function(e,t){const r=(0,Oe.c)({props:e,name:"MuiFormControl"}),{children:i,className:o,color:s="primary",component:a="div",disabled:l=!1,error:c=!1,focused:u,fullWidth:h=!1,hiddenLabel:p=!1,margin:f="none",required:g=!1,size:m="medium",variant:y="outlined"}=r,v=(0,Tt.c)(r,fw),_=(0,d.c)({},r,{color:s,component:a,disabled:l,error:c,fullWidth:h,hiddenLabel:p,margin:f,required:g,size:m,variant:y}),b=(e=>{const{classes:t,margin:n,fullWidth:r}=e,i={root:["root","none"!==n&&"margin".concat((0,ha.c)(n)),r&&"fullWidth"]};return(0,ls.c)(i,pw,t)})(_),[x,S]=n.useState((()=>{let e=!1;return i&&n.Children.forEach(i,(t=>{if(!(0,hw.c)(t,["Input","Select"]))return;const n=(0,hw.c)(t,["Select"])?t.props.input:t;n&&n.props.startAdornment&&(e=!0)})),e})),[w,E]=n.useState((()=>{let e=!1;return i&&n.Children.forEach(i,(t=>{(0,hw.c)(t,["Input","Select"])&&vS(t.props,!0)&&(e=!0)})),e})),[P,C]=n.useState(!1);l&&P&&C(!1);const A=void 0===u||l?P:u;let k;const j=n.useMemo((()=>({adornedStart:x,setAdornedStart:S,color:s,disabled:l,error:c,filled:w,focused:A,fullWidth:h,hiddenLabel:p,size:m,onBlur:()=>{C(!1)},onEmpty:()=>{E(!1)},onFilled:()=>{E(!0)},onFocus:()=>{C(!0)},registerEffect:k,required:g,variant:y})),[x,s,l,c,w,A,h,p,k,g,m,y]);return(0,Ae.jsx)(uu.Provider,{value:j,children:(0,Ae.jsx)(gw,(0,d.c)({as:a,ownerState:_,className:(0,ts.c)(b.root,o),ref:t},v,{children:i}))})})),yw=mw;function vw(e){return(0,hs.c)("MuiFormHelperText",e)}const _w=(0,ds.c)("MuiFormHelperText",["root","error","disabled","sizeSmall","sizeMedium","contained","focused","filled","required"]);var bw;const xw=["children","className","component","disabled","error","filled","focused","margin","required","variant"],Sw=(0,cs.cp)("p",{name:"MuiFormHelperText",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.size&&t["size".concat((0,ha.c)(n.size))],n.contained&&t.contained,n.filled&&t.filled]}})((e=>{let{theme:t,ownerState:n}=e;return(0,d.c)({color:(t.vars||t).palette.text.secondary},t.typography.caption,{textAlign:"left",marginTop:3,marginRight:0,marginBottom:0,marginLeft:0,["&.".concat(_w.disabled)]:{color:(t.vars||t).palette.text.disabled},["&.".concat(_w.error)]:{color:(t.vars||t).palette.error.main}},"small"===n.size&&{marginTop:4},n.contained&&{marginLeft:14,marginRight:14})})),ww=n.forwardRef((function(e,t){const n=(0,Oe.c)({props:e,name:"MuiFormHelperText"}),{children:r,className:i,component:o="p"}=n,s=(0,Tt.c)(n,xw),a=xu({props:n,muiFormControl:du(),states:["variant","size","disabled","error","filled","focused","required"]}),l=(0,d.c)({},n,{component:o,contained:"filled"===a.variant||"outlined"===a.variant,variant:a.variant,size:a.size,disabled:a.disabled,error:a.error,filled:a.filled,focused:a.focused,required:a.required}),c=(e=>{const{classes:t,contained:n,size:r,disabled:i,error:o,filled:s,focused:a,required:l}=e,c={root:["root",i&&"disabled",o&&"error",r&&"size".concat((0,ha.c)(r)),n&&"contained",a&&"focused",s&&"filled",l&&"required"]};return(0,ls.c)(c,vw,t)})(l);return(0,Ae.jsx)(Sw,(0,d.c)({as:o,ownerState:l,className:(0,ts.c)(c.root,i),ref:t},s,{children:" "===r?bw||(bw=(0,Ae.jsx)("span",{className:"notranslate",children:"\u200b"})):r}))}));function Ew(e){return(0,hs.c)("MuiNativeSelect",e)}const Pw=(0,ds.c)("MuiNativeSelect",["root","select","multiple","filled","outlined","standard","disabled","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput"]),Cw=["className","disabled","IconComponent","inputRef","variant"],Aw=e=>{let{ownerState:t,theme:n}=e;return(0,d.c)({MozAppearance:"none",WebkitAppearance:"none",userSelect:"none",borderRadius:0,cursor:"pointer","&:focus":(0,d.c)({},n.vars?{backgroundColor:"rgba(".concat(n.vars.palette.common.onBackgroundChannel," / 0.05)")}:{backgroundColor:"light"===n.palette.mode?"rgba(0, 0, 0, 0.05)":"rgba(255, 255, 255, 0.05)"},{borderRadius:0}),"&::-ms-expand":{display:"none"},["&.".concat(Pw.disabled)]:{cursor:"default"},"&[multiple]":{height:"auto"},"&:not([multiple]) option, &:not([multiple]) optgroup":{backgroundColor:(n.vars||n).palette.background.paper},"&&&":{paddingRight:24,minWidth:16}},"filled"===t.variant&&{"&&&":{paddingRight:32}},"outlined"===t.variant&&{borderRadius:(n.vars||n).shape.borderRadius,"&:focus":{borderRadius:(n.vars||n).shape.borderRadius},"&&&":{paddingRight:32}})},kw=(0,cs.cp)("select",{name:"MuiNativeSelect",slot:"Select",shouldForwardProp:cs.CU,overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.select,t[n.variant],{["&.".concat(Pw.multiple)]:t.multiple}]}})(Aw),jw=e=>{let{ownerState:t,theme:n}=e;return(0,d.c)({position:"absolute",right:0,top:"calc(50% - .5em)",pointerEvents:"none",color:(n.vars||n).palette.action.active,["&.".concat(Pw.disabled)]:{color:(n.vars||n).palette.action.disabled}},t.open&&{transform:"rotate(180deg)"},"filled"===t.variant&&{right:7},"outlined"===t.variant&&{right:7})},Iw=(0,cs.cp)("svg",{name:"MuiNativeSelect",slot:"Icon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.icon,n.variant&&t["icon".concat((0,ha.c)(n.variant))],n.open&&t.iconOpen]}})(jw),Gw=n.forwardRef((function(e,t){const{className:r,disabled:i,IconComponent:o,inputRef:s,variant:a="standard"}=e,l=(0,Tt.c)(e,Cw),c=(0,d.c)({},e,{disabled:i,variant:a}),u=(e=>{const{classes:t,variant:n,disabled:r,multiple:i,open:o}=e,s={select:["select",n,r&&"disabled",i&&"multiple"],icon:["icon","icon".concat((0,ha.c)(n)),o&&"iconOpen",r&&"disabled"]};return(0,ls.c)(s,Ew,t)})(c);return(0,Ae.jsxs)(n.Fragment,{children:[(0,Ae.jsx)(kw,(0,d.c)({ownerState:c,className:(0,ts.c)(u.select,r),disabled:i,ref:s||t},l)),e.multiple?null:(0,Ae.jsx)(Iw,{as:o,ownerState:c,className:u.icon})]})}));function Tw(e){return(0,hs.c)("MuiSelect",e)}const Mw=(0,ds.c)("MuiSelect",["select","multiple","filled","outlined","standard","disabled","focused","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput"]);var Ow;const Rw=["aria-describedby","aria-label","autoFocus","autoWidth","children","className","defaultOpen","defaultValue","disabled","displayEmpty","IconComponent","inputRef","labelId","MenuProps","multiple","name","onBlur","onChange","onClose","onFocus","onOpen","open","readOnly","renderValue","SelectDisplayProps","tabIndex","type","value","variant"],Dw=(0,cs.cp)("div",{name:"MuiSelect",slot:"Select",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{["&.".concat(Mw.select)]:t.select},{["&.".concat(Mw.select)]:t[n.variant]},{["&.".concat(Mw.multiple)]:t.multiple}]}})(Aw,{["&.".concat(Mw.select)]:{height:"auto",minHeight:"1.4375em",textOverflow:"ellipsis",whiteSpace:"nowrap",overflow:"hidden"}}),Nw=(0,cs.cp)("svg",{name:"MuiSelect",slot:"Icon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.icon,n.variant&&t["icon".concat((0,ha.c)(n.variant))],n.open&&t.iconOpen]}})(jw),Lw=(0,cs.cp)("input",{shouldForwardProp:e=>(0,cs.Cq)(e)&&"classes"!==e,name:"MuiSelect",slot:"NativeInput",overridesResolver:(e,t)=>t.nativeInput})({bottom:0,left:0,position:"absolute",opacity:0,pointerEvents:"none",width:"100%",boxSizing:"border-box"});function Vw(e,t){return"object"===typeof t&&null!==t?e===t:String(e)===String(t)}function Fw(e){return null==e||"string"===typeof e&&!e.trim()}const zw=n.forwardRef((function(e,t){const{"aria-describedby":r,"aria-label":i,autoFocus:o,autoWidth:s,children:a,className:l,defaultOpen:c,defaultValue:u,disabled:h,displayEmpty:p,IconComponent:f,inputRef:g,labelId:m,MenuProps:y={},multiple:v,name:_,onBlur:b,onChange:x,onClose:S,onFocus:w,onOpen:E,open:P,readOnly:C,renderValue:A,SelectDisplayProps:k={},tabIndex:j,value:I,variant:G="standard"}=e,T=(0,Tt.c)(e,Rw),[M,O]=(0,$c.c)({controlled:I,default:u,name:"Select"}),[R,D]=(0,$c.c)({controlled:P,default:c,name:"Select"}),N=n.useRef(null),L=n.useRef(null),[V,F]=n.useState(null),{current:z}=n.useRef(null!=P),[B,U]=n.useState(),W=(0,Cs.c)(t,g),H=n.useCallback((e=>{L.current=e,e&&F(e)}),[]);n.useImperativeHandle(W,(()=>({focus:()=>{L.current.focus()},node:N.current,value:M})),[M]),n.useEffect((()=>{c&&R&&V&&!z&&(U(s?null:V.clientWidth),L.current.focus())}),[V,s]),n.useEffect((()=>{o&&L.current.focus()}),[o]),n.useEffect((()=>{if(!m)return;const e=(0,Tu.c)(L.current).getElementById(m);if(e){const t=()=>{getSelection().isCollapsed&&L.current.focus()};return e.addEventListener("click",t),()=>{e.removeEventListener("click",t)}}}),[m]);const q=(e,t)=>{e?E&&E(t):S&&S(t),z||(U(s?null:V.clientWidth),D(e))},X=n.Children.toArray(a),Y=e=>t=>{let n;if(t.currentTarget.hasAttribute("tabindex")){if(v){n=Array.isArray(M)?M.slice():[];const t=M.indexOf(e.props.value);-1===t?n.push(e.props.value):n.splice(t,1)}else n=e.props.value;if(e.props.onClick&&e.props.onClick(t),M!==n&&(O(n),x)){const r=t.nativeEvent||t,i=new r.constructor(r.type,r);Object.defineProperty(i,"target",{writable:!0,value:{value:n,name:_}}),x(i,e)}v||q(!1,t)}},K=null!==V&&R;let Z,$;delete T["aria-invalid"];const J=[];let Q=!1,ee=!1;(vS({value:M})||p)&&(A?Z=A(M):Q=!0);const te=X.map(((e,t,r)=>{if(!n.isValidElement(e))return null;let i;if(v){if(!Array.isArray(M))throw new Error((0,Ep.c)(2));i=M.some((t=>Vw(t,e.props.value))),i&&Q&&J.push(e.props.children)}else i=Vw(M,e.props.value),i&&Q&&($=e.props.children);if(i&&(ee=!0),void 0===e.props.value)return n.cloneElement(e,{"aria-readonly":!0,role:"option"});return n.cloneElement(e,{"aria-selected":i?"true":"false",onClick:Y(e),onKeyUp:t=>{" "===t.key&&t.preventDefault(),e.props.onKeyUp&&e.props.onKeyUp(t)},role:"option",selected:void 0===r[0].props.value||!0===r[0].props.disabled?(()=>{if(M)return i;const t=r.find((e=>void 0!==e.props.value&&!0!==e.props.disabled));return e===t||i})():i,value:void 0,"data-value":e.props.value})}));Q&&(Z=v?0===J.length?null:J.reduce(((e,t,n)=>(e.push(t),n<J.length-1&&e.push(", "),e)),[]):$);let ne,re=B;!s&&z&&V&&(re=V.clientWidth),ne="undefined"!==typeof j?j:h?null:0;const ie=k.id||(_?"mui-component-select-".concat(_):void 0),oe=(0,d.c)({},e,{variant:G,value:M,open:K}),se=(e=>{const{classes:t,variant:n,disabled:r,multiple:i,open:o}=e,s={select:["select",n,r&&"disabled",i&&"multiple"],icon:["icon","icon".concat((0,ha.c)(n)),o&&"iconOpen",r&&"disabled"],nativeInput:["nativeInput"]};return(0,ls.c)(s,Tw,t)})(oe);return(0,Ae.jsxs)(n.Fragment,{children:[(0,Ae.jsx)(Dw,(0,d.c)({ref:H,tabIndex:ne,role:"button","aria-disabled":h?"true":void 0,"aria-expanded":K?"true":"false","aria-haspopup":"listbox","aria-label":i,"aria-labelledby":[m,ie].filter(Boolean).join(" ")||void 0,"aria-describedby":r,onKeyDown:e=>{if(!C){-1!==[" ","ArrowUp","ArrowDown","Enter"].indexOf(e.key)&&(e.preventDefault(),q(!0,e))}},onMouseDown:h||C?null:e=>{0===e.button&&(e.preventDefault(),L.current.focus(),q(!0,e))},onBlur:e=>{!K&&b&&(Object.defineProperty(e,"target",{writable:!0,value:{value:M,name:_}}),b(e))},onFocus:w},k,{ownerState:oe,className:(0,ts.c)(k.className,se.select,l),id:ie,children:Fw(Z)?Ow||(Ow=(0,Ae.jsx)("span",{className:"notranslate",children:"\u200b"})):Z})),(0,Ae.jsx)(Lw,(0,d.c)({value:Array.isArray(M)?M.join(","):M,name:_,ref:N,"aria-hidden":!0,onChange:e=>{const t=X.map((e=>e.props.value)).indexOf(e.target.value);if(-1===t)return;const n=X[t];O(n.props.value),x&&x(e,n)},tabIndex:-1,disabled:h,className:se.nativeInput,autoFocus:o,ownerState:oe},T)),(0,Ae.jsx)(Nw,{as:f,className:se.icon,ownerState:oe}),(0,Ae.jsx)(Qd,(0,d.c)({id:"menu-".concat(_||""),anchorEl:V,open:K,onClose:e=>{q(!1,e)},anchorOrigin:{vertical:"bottom",horizontal:"center"},transformOrigin:{vertical:"top",horizontal:"center"}},y,{MenuListProps:(0,d.c)({"aria-labelledby":m,role:"listbox",disableListWrap:!0},y.MenuListProps),PaperProps:(0,d.c)({},y.PaperProps,{style:(0,d.c)({minWidth:re},null!=y.PaperProps?y.PaperProps.style:null)}),children:te}))]})})),Bw=zw,Uw=(0,vv.c)((0,Ae.jsx)("path",{d:"M7 10l5 5 5-5z"}),"ArrowDropDown");var Ww,Hw;const qw=["autoWidth","children","classes","className","defaultOpen","displayEmpty","IconComponent","id","input","inputProps","label","labelId","MenuProps","multiple","native","onClose","onOpen","open","renderValue","SelectDisplayProps","variant"],Xw={name:"MuiSelect",overridesResolver:(e,t)=>t.root,shouldForwardProp:e=>(0,cs.CU)(e)&&"variant"!==e,slot:"Root"},Yw=(0,cs.cp)(RS,Xw)(""),Kw=(0,cs.cp)(ew,Xw)(""),Zw=(0,cs.cp)(BS,Xw)(""),$w=n.forwardRef((function(e,t){const r=(0,Oe.c)({name:"MuiSelect",props:e}),{autoWidth:i=!1,children:o,classes:s={},className:a,defaultOpen:l=!1,displayEmpty:c=!1,IconComponent:u=Uw,id:h,input:p,inputProps:f,label:g,labelId:m,MenuProps:y,multiple:v=!1,native:_=!1,onClose:b,onOpen:x,open:S,renderValue:w,SelectDisplayProps:E,variant:P="outlined"}=r,C=(0,Tt.c)(r,qw),A=_?Gw:Bw,k=xu({props:r,muiFormControl:du(),states:["variant"]}).variant||P,j=p||{standard:Ww||(Ww=(0,Ae.jsx)(Yw,{})),outlined:(0,Ae.jsx)(Kw,{label:g}),filled:Hw||(Hw=(0,Ae.jsx)(Zw,{}))}[k],I=(e=>{const{classes:t}=e;return t})((0,d.c)({},r,{variant:k,classes:s})),G=(0,Cs.c)(t,j.ref);return(0,Ae.jsx)(n.Fragment,{children:n.cloneElement(j,(0,d.c)({inputComponent:A,inputProps:(0,d.c)({children:o,IconComponent:u,variant:k,type:void 0,multiple:v},_?{id:h}:{autoWidth:i,defaultOpen:l,displayEmpty:c,labelId:m,MenuProps:y,onClose:b,onOpen:x,open:S,renderValue:w,SelectDisplayProps:(0,d.c)({id:h},E)},f,{classes:f?(0,rs.c)(I,f.classes):I},p?p.props.inputProps:{})},v&&_&&"outlined"===k?{notched:!0}:{},{ref:G,className:(0,ts.c)(j.props.className,a)},!p&&{variant:k},C))})}));$w.muiName="Select";const Jw=$w;function Qw(e){return(0,hs.c)("MuiTextField",e)}(0,ds.c)("MuiTextField",["root"]);const eE=["autoComplete","autoFocus","children","className","color","defaultValue","disabled","error","FormHelperTextProps","fullWidth","helperText","id","InputLabelProps","inputProps","InputProps","inputRef","label","maxRows","minRows","multiline","name","onBlur","onChange","onFocus","placeholder","required","rows","select","SelectProps","type","value","variant"],tE={standard:RS,filled:BS,outlined:ew},nE=(0,cs.cp)(yw,{name:"MuiTextField",slot:"Root",overridesResolver:(e,t)=>t.root})({}),rE=n.forwardRef((function(e,t){const n=(0,Oe.c)({props:e,name:"MuiTextField"}),{autoComplete:r,autoFocus:i=!1,children:o,className:s,color:a="primary",defaultValue:l,disabled:c=!1,error:u=!1,FormHelperTextProps:h,fullWidth:p=!1,helperText:f,id:g,InputLabelProps:m,inputProps:y,InputProps:v,inputRef:_,label:b,maxRows:x,minRows:S,multiline:w=!1,name:E,onBlur:P,onChange:C,onFocus:A,placeholder:k,required:j=!1,rows:I,select:G=!1,SelectProps:T,type:M,value:O,variant:R="outlined"}=n,D=(0,Tt.c)(n,eE),N=(0,d.c)({},n,{autoFocus:i,color:a,disabled:c,error:u,fullWidth:p,multiline:w,required:j,select:G,variant:R}),L=(e=>{const{classes:t}=e;return(0,ls.c)({root:["root"]},Qw,t)})(N);const V={};"outlined"===R&&(m&&"undefined"!==typeof m.shrink&&(V.notched=m.shrink),V.label=b),G&&(T&&T.native||(V.id=void 0),V["aria-describedby"]=void 0);const F=(0,Bx.c)(g),z=f&&F?"".concat(F,"-helper-text"):void 0,B=b&&F?"".concat(F,"-label"):void 0,U=tE[R],W=(0,Ae.jsx)(U,(0,d.c)({"aria-describedby":z,autoComplete:r,autoFocus:i,defaultValue:l,fullWidth:p,multiline:w,name:E,rows:I,maxRows:x,minRows:S,type:M,value:O,id:F,inputRef:_,onBlur:P,onChange:C,onFocus:A,placeholder:k,inputProps:y},V,v));return(0,Ae.jsxs)(nE,(0,d.c)({className:(0,ts.c)(L.root,s),disabled:c,error:u,fullWidth:p,ref:t,required:j,color:a,variant:R,ownerState:N},D,{children:[null!=b&&""!==b&&(0,Ae.jsx)(dw,(0,d.c)({htmlFor:F,id:B},m,{children:b})),G?(0,Ae.jsx)(Jw,(0,d.c)({"aria-describedby":z,id:F,labelId:B,value:O,input:W},T,{children:o})):W,f&&(0,Ae.jsx)(ww,(0,d.c)({id:z},h,{children:f}))]}))})),iE=rE,oE=Zo()(((e,t)=>{let{isBlue:n}=t;return{dateChange:{marginLeft:15},dateInput:{marginLeft:"15px",maxWidth:"150px","& .MuiInputBase-root, & .MuiButtonBase-root":{color:n?jp:"initial"}}}})),sE=e=>{var t;const[r,i]=(0,n.useState)(e.date),{classes:o}=oE({isBlue:null!==(t=e.blueColor)&&void 0!==t&&t}),s=(0,Sp.c)({palette:{primary:{main:jp,contrastText:"#FFFFFF"}}}),a=()=>(0,Ae.jsx)(aS,{inputFormat:"DD/MM/YYYY",closeOnSelect:!1,className:o.dateChange,value:r,onChange:t=>(t=>{if(i(t),t instanceof Date&&!isNaN(t.getTime())){e.onlyDate||t.setHours(t.getHours()+12);const n=e.assetId?e.assetId:"";e.item?e.manageDate(t,e.item.assetId,e.item):e.manageDate(t,n,void 0)}})(t?new Date(t):null),renderInput:e=>(0,Ae.jsx)(iE,{...e,className:o.dateInput,variant:"standard"})});return(0,Ae.jsxs)(Me,{theme:s,children:[e.onlyDate&&(0,Ae.jsx)(Ve,{dateAdapter:$e,children:(0,Ae.jsx)(a,{})}),!e.onlyDate&&(0,Ae.jsx)(dh,{onClick:e=>e.stopPropagation(),children:(0,Ae.jsxs)(Ve,{dateAdapter:$e,children:["Reschedule",(0,Ae.jsx)(a,{})]})})]})};function aE(e){return ka({tag:"svg",attr:{viewBox:"0 0 20 20",fill:"currentColor"},child:[{tag:"path",attr:{fillRule:"evenodd",d:"M3 5a1 1 0 011-1h12a1 1 0 110 2H4a1 1 0 01-1-1zM3 10a1 1 0 011-1h12a1 1 0 110 2H4a1 1 0 01-1-1zM3 15a1 1 0 011-1h12a1 1 0 110 2H4a1 1 0 01-1-1z",clipRule:"evenodd"}}]})(e)}function lE(e){return ka({tag:"svg",attr:{fill:"none",viewBox:"0 0 24 24",stroke:"currentColor"},child:[{tag:"path",attr:{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2",d:"M9 12h6m-6 4h6m2 5H7a2 2 0 01-2-2V5a2 2 0 012-2h5.586a1 1 0 01.707.293l5.414 5.414a1 1 0 01.293.707V19a2 2 0 01-2 2z"}}]})(e)}function cE(e){return ka({tag:"svg",attr:{fill:"none",viewBox:"0 0 24 24",stroke:"currentColor"},child:[{tag:"path",attr:{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2",d:"M10 6H6a2 2 0 00-2 2v10a2 2 0 002 2h10a2 2 0 002-2v-4M14 4h6m0 0v6m0-6L10 14"}}]})(e)}function uE(e){return ka({tag:"svg",attr:{viewBox:"0 0 24 24",fill:"currentColor"},child:[{tag:"path",attr:{d:"M3.463 12.86l-.005-.07.005.07zm7.264.69l-3.034-3.049 1.014-1.014 3.209 3.225 3.163-3.163 1.014 1.014-3.034 3.034 3.034 3.05-1.014 1.014-3.209-3.225L8.707 17.6l-1.014-1.014 3.034-3.034z"}},{tag:"path",attr:{fillRule:"evenodd",clipRule:"evenodd",d:"M16.933 5.003V6h1.345l2.843-2.842 1.014 1.014-2.692 2.691.033.085a13.75 13.75 0 0 1 .885 4.912c0 .335-.011.667-.034.995l-.005.075h3.54v1.434h-3.72l-.01.058c-.303 1.653-.891 3.16-1.692 4.429l-.06.094 3.423 3.44-1.017 1.012-3.274-3.29-.099.11c-1.479 1.654-3.395 2.646-5.483 2.646-2.12 0-4.063-1.023-5.552-2.723l-.098-.113-3.209 3.208-1.014-1.014 3.366-3.365-.059-.095c-.772-1.25-1.34-2.725-1.636-4.34l-.01-.057H0V12.93h3.538l-.005-.075a14.23 14.23 0 0 1-.034-.995c0-1.743.31-3.39.863-4.854l.032-.084-2.762-2.776L2.65 3.135 5.5 6h1.427v-.997a5.003 5.003 0 0 1 10.006 0zm-8.572 0V6H15.5v-.997a3.569 3.569 0 0 0-7.138 0zm9.8 2.522l-.034-.09H5.733l-.034.09a12.328 12.328 0 0 0-.766 4.335c0 2.76.862 5.201 2.184 6.92 1.32 1.716 3.036 2.649 4.813 2.649 1.777 0 3.492-.933 4.813-2.65 1.322-1.718 2.184-4.16 2.184-6.919 0-1.574-.28-3.044-.766-4.335z"}}]})(e)}function dE(e){return ka({tag:"svg",attr:{version:"1.1",viewBox:"0 0 16 16"},child:[{tag:"path",attr:{d:"M0 3l5-2v12l-5 2z"}},{tag:"path",attr:{d:"M6 0.5l5 3v11.5l-5-2.5z"}},{tag:"path",attr:{d:"M12 3.5l4-3v12l-4 3z"}}]})(e)}function hE(e){return ka({tag:"svg",attr:{version:"1.1",viewBox:"0 0 16 16"},child:[{tag:"path",attr:{d:"M8 1c4.418 0 8 2.91 8 6.5s-3.582 6.5-8 6.5c-0.424 0-0.841-0.027-1.247-0.079-1.718 1.718-3.77 2.027-5.753 2.072v-0.421c1.071-0.525 2-1.48 2-2.572 0-0.152-0.012-0.302-0.034-0.448-1.809-1.192-2.966-3.012-2.966-5.052 0-3.59 3.582-6.5 8-6.5z"}}]})(e)}function pE(e){return ka({tag:"svg",attr:{version:"1.1",viewBox:"0 0 16 16"},child:[{tag:"path",attr:{d:"M8 3c-0.858 0-1.687 0.135-2.464 0.402-0.73 0.251-1.38 0.605-1.932 1.054-1.035 0.841-1.604 1.922-1.604 3.044 0 0.63 0.175 1.24 0.52 1.815 0.356 0.592 0.89 1.134 1.547 1.566 0.474 0.312 0.793 0.812 0.878 1.373 0.028 0.187 0.046 0.376 0.053 0.564 0.117-0.097 0.23-0.201 0.342-0.312 0.377-0.377 0.887-0.586 1.414-0.586 0.084 0 0.168 0.005 0.252 0.016 0.328 0.042 0.662 0.063 0.995 0.063 0.858 0 1.687-0.135 2.464-0.402 0.73-0.251 1.38-0.605 1.932-1.054 1.035-0.841 1.604-1.922 1.604-3.044s-0.57-2.203-1.604-3.044c-0.552-0.448-1.202-0.803-1.932-1.054-0.777-0.267-1.606-0.402-2.464-0.402zM8 1v0c4.418 0 8 2.91 8 6.5s-3.582 6.5-8 6.5c-0.424 0-0.841-0.027-1.247-0.079-1.718 1.718-3.77 2.027-5.753 2.072v-0.421c1.071-0.525 2-1.48 2-2.572 0-0.152-0.012-0.302-0.034-0.448-1.809-1.192-2.966-3.012-2.966-5.052 0-3.59 3.582-6.5 8-6.5z"}}]})(e)}function fE(e){return ka({tag:"svg",attr:{version:"1.1",viewBox:"0 0 16 16"},child:[{tag:"path",attr:{d:"M6 11.5c0-2.363 1.498-4.383 3.594-5.159 0.254-0.571 0.406-1.206 0.406-1.841 0-2.485 0-4.5-3-4.5s-3 2.015-3 4.5c0 1.548 0.898 3.095 2 3.716v0.825c-3.392 0.277-6 1.944-6 3.959h6.208c-0.135-0.477-0.208-0.98-0.208-1.5z"}},{tag:"path",attr:{d:"M11.5 7c-2.485 0-4.5 2.015-4.5 4.5s2.015 4.5 4.5 4.5c2.485 0 4.5-2.015 4.5-4.5s-2.015-4.5-4.5-4.5zM14 12h-2v2h-1v-2h-2v-1h2v-2h1v2h2v1z"}}]})(e)}function gE(e){return ka({tag:"svg",attr:{version:"1.1",viewBox:"0 0 16 16"},child:[{tag:"path",attr:{d:"M6.879 9.934c-0.208 0-0.416-0.079-0.575-0.238-1.486-1.486-1.486-3.905 0-5.392l3-3c0.72-0.72 1.678-1.117 2.696-1.117s1.976 0.397 2.696 1.117c1.486 1.487 1.486 3.905 0 5.392l-1.371 1.371c-0.317 0.317-0.832 0.317-1.149 0s-0.317-0.832 0-1.149l1.371-1.371c0.853-0.853 0.853-2.241 0-3.094-0.413-0.413-0.963-0.641-1.547-0.641s-1.134 0.228-1.547 0.641l-3 3c-0.853 0.853-0.853 2.241 0 3.094 0.317 0.317 0.317 0.832 0 1.149-0.159 0.159-0.367 0.238-0.575 0.238z"}},{tag:"path",attr:{d:"M4 15.813c-1.018 0-1.976-0.397-2.696-1.117-1.486-1.486-1.486-3.905 0-5.392l1.371-1.371c0.317-0.317 0.832-0.317 1.149 0s0.317 0.832 0 1.149l-1.371 1.371c-0.853 0.853-0.853 2.241 0 3.094 0.413 0.413 0.962 0.641 1.547 0.641s1.134-0.228 1.547-0.641l3-3c0.853-0.853 0.853-2.241 0-3.094-0.317-0.317-0.317-0.832 0-1.149s0.832-0.317 1.149 0c1.486 1.486 1.486 3.905 0 5.392l-3 3c-0.72 0.72-1.678 1.117-2.696 1.117z"}}]})(e)}function mE(e){return ka({tag:"svg",attr:{version:"1.1",viewBox:"0 0 16 16"},child:[{tag:"path",attr:{d:"M8 0.5l-7.5 7.5h4.5v8h6v-8h4.5z"}}]})(e)}function yE(e){return ka({tag:"svg",attr:{version:"1.1",viewBox:"0 0 16 16"},child:[{tag:"path",attr:{d:"M15.5 8l-7.5-7.5v4.5h-8v6h8v4.5z"}}]})(e)}function vE(e){return ka({tag:"svg",attr:{version:"1.1",viewBox:"0 0 16 16"},child:[{tag:"path",attr:{d:"M8 15.5l7.5-7.5h-4.5v-8h-6v8h-4.5z"}}]})(e)}function _E(e){return ka({tag:"svg",attr:{version:"1.1",viewBox:"0 0 16 16"},child:[{tag:"path",attr:{d:"M0.5 8l7.5 7.5v-4.5h8v-6h-8v-4.5z"}}]})(e)}var bE,xE;!function(e){e.assertEqual=e=>e,e.assertIs=function(e){},e.assertNever=function(e){throw new Error},e.arrayToEnum=e=>{const t={};for(const n of e)t[n]=n;return t},e.getValidEnumValues=t=>{const n=e.objectKeys(t).filter((e=>"number"!==typeof t[t[e]])),r={};for(const e of n)r[e]=t[e];return e.objectValues(r)},e.objectValues=t=>e.objectKeys(t).map((function(e){return t[e]})),e.objectKeys="function"===typeof Object.keys?e=>Object.keys(e):e=>{const t=[];for(const n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.push(n);return t},e.find=(e,t)=>{for(const n of e)if(t(n))return n},e.isInteger="function"===typeof Number.isInteger?e=>Number.isInteger(e):e=>"number"===typeof e&&isFinite(e)&&Math.floor(e)===e,e.joinValues=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:" | ";return e.map((e=>"string"===typeof e?"'".concat(e,"'"):e)).join(t)},e.jsonStringifyReplacer=(e,t)=>"bigint"===typeof t?t.toString():t}(bE||(bE={})),function(e){e.mergeShapes=(e,t)=>({...e,...t})}(xE||(xE={}));const SE=bE.arrayToEnum(["string","nan","number","integer","float","boolean","date","bigint","symbol","function","undefined","null","array","object","unknown","promise","void","never","map","set"]),wE=e=>{switch(typeof e){case"undefined":return SE.undefined;case"string":return SE.string;case"number":return isNaN(e)?SE.nan:SE.number;case"boolean":return SE.boolean;case"function":return SE.function;case"bigint":return SE.bigint;case"symbol":return SE.symbol;case"object":return Array.isArray(e)?SE.array:null===e?SE.null:e.then&&"function"===typeof e.then&&e.catch&&"function"===typeof e.catch?SE.promise:"undefined"!==typeof Map&&e instanceof Map?SE.map:"undefined"!==typeof Set&&e instanceof Set?SE.set:"undefined"!==typeof Date&&e instanceof Date?SE.date:SE.object;default:return SE.unknown}},EE=bE.arrayToEnum(["invalid_type","invalid_literal","custom","invalid_union","invalid_union_discriminator","invalid_enum_value","unrecognized_keys","invalid_arguments","invalid_return_type","invalid_date","invalid_string","too_small","too_big","invalid_intersection_types","not_multiple_of","not_finite"]);class PE extends Error{constructor(e){var t;super(),t=this,this.issues=[],this.addIssue=e=>{this.issues=[...this.issues,e]},this.addIssues=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];t.issues=[...t.issues,...e]};const n=new.target.prototype;Object.setPrototypeOf?Object.setPrototypeOf(this,n):this.__proto__=n,this.name="ZodError",this.issues=e}get errors(){return this.issues}format(e){const t=e||function(e){return e.message},n={_errors:[]},r=e=>{for(const i of e.issues)if("invalid_union"===i.code)i.unionErrors.map(r);else if("invalid_return_type"===i.code)r(i.returnTypeError);else if("invalid_arguments"===i.code)r(i.argumentsError);else if(0===i.path.length)n._errors.push(t(i));else{let e=n,r=0;for(;r<i.path.length;){const n=i.path[r];r===i.path.length-1?(e[n]=e[n]||{_errors:[]},e[n]._errors.push(t(i))):e[n]=e[n]||{_errors:[]},e=e[n],r++}}};return r(this),n}toString(){return this.message}get message(){return JSON.stringify(this.issues,bE.jsonStringifyReplacer,2)}get isEmpty(){return 0===this.issues.length}flatten(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:e=>e.message;const t={},n=[];for(const r of this.issues)r.path.length>0?(t[r.path[0]]=t[r.path[0]]||[],t[r.path[0]].push(e(r))):n.push(e(r));return{formErrors:n,fieldErrors:t}}get formErrors(){return this.flatten()}}PE.create=e=>new PE(e);const CE=(e,t)=>{let n;switch(e.code){case EE.invalid_type:n=e.received===SE.undefined?"Required":"Expected ".concat(e.expected,", received ").concat(e.received);break;case EE.invalid_literal:n="Invalid literal value, expected ".concat(JSON.stringify(e.expected,bE.jsonStringifyReplacer));break;case EE.unrecognized_keys:n="Unrecognized key(s) in object: ".concat(bE.joinValues(e.keys,", "));break;case EE.invalid_union:n="Invalid input";break;case EE.invalid_union_discriminator:n="Invalid discriminator value. Expected ".concat(bE.joinValues(e.options));break;case EE.invalid_enum_value:n="Invalid enum value. Expected ".concat(bE.joinValues(e.options),", received '").concat(e.received,"'");break;case EE.invalid_arguments:n="Invalid function arguments";break;case EE.invalid_return_type:n="Invalid function return type";break;case EE.invalid_date:n="Invalid date";break;case EE.invalid_string:"object"===typeof e.validation?"includes"in e.validation?(n='Invalid input: must include "'.concat(e.validation.includes,'"'),"number"===typeof e.validation.position&&(n="".concat(n," at one or more positions greater than or equal to ").concat(e.validation.position))):"startsWith"in e.validation?n='Invalid input: must start with "'.concat(e.validation.startsWith,'"'):"endsWith"in e.validation?n='Invalid input: must end with "'.concat(e.validation.endsWith,'"'):bE.assertNever(e.validation):n="regex"!==e.validation?"Invalid ".concat(e.validation):"Invalid";break;case EE.too_small:n="array"===e.type?"Array must contain ".concat(e.exact?"exactly":e.inclusive?"at least":"more than"," ").concat(e.minimum," element(s)"):"string"===e.type?"String must contain ".concat(e.exact?"exactly":e.inclusive?"at least":"over"," ").concat(e.minimum," character(s)"):"number"===e.type?"Number must be ".concat(e.exact?"exactly equal to ":e.inclusive?"greater than or equal to ":"greater than ").concat(e.minimum):"date"===e.type?"Date must be ".concat(e.exact?"exactly equal to ":e.inclusive?"greater than or equal to ":"greater than ").concat(new Date(Number(e.minimum))):"Invalid input";break;case EE.too_big:n="array"===e.type?"Array must contain ".concat(e.exact?"exactly":e.inclusive?"at most":"less than"," ").concat(e.maximum," element(s)"):"string"===e.type?"String must contain ".concat(e.exact?"exactly":e.inclusive?"at most":"under"," ").concat(e.maximum," character(s)"):"number"===e.type?"Number must be ".concat(e.exact?"exactly":e.inclusive?"less than or equal to":"less than"," ").concat(e.maximum):"bigint"===e.type?"BigInt must be ".concat(e.exact?"exactly":e.inclusive?"less than or equal to":"less than"," ").concat(e.maximum):"date"===e.type?"Date must be ".concat(e.exact?"exactly":e.inclusive?"smaller than or equal to":"smaller than"," ").concat(new Date(Number(e.maximum))):"Invalid input";break;case EE.custom:n="Invalid input";break;case EE.invalid_intersection_types:n="Intersection results could not be merged";break;case EE.not_multiple_of:n="Number must be a multiple of ".concat(e.multipleOf);break;case EE.not_finite:n="Number must be finite";break;default:n=t.defaultError,bE.assertNever(e)}return{message:n}};let AE=CE;function kE(){return AE}const jE=e=>{const{data:t,path:n,errorMaps:r,issueData:i}=e,o=[...n,...i.path||[]],s={...i,path:o};let a="";const l=r.filter((e=>!!e)).slice().reverse();for(const c of l)a=c(s,{data:t,defaultError:a}).message;return{...i,path:o,message:i.message||a}};function IE(e,t){const n=jE({issueData:t,data:e.data,path:e.path,errorMaps:[e.common.contextualErrorMap,e.schemaErrorMap,kE(),CE].filter((e=>!!e))});e.common.issues.push(n)}class GE{constructor(){this.value="valid"}dirty(){"valid"===this.value&&(this.value="dirty")}abort(){"aborted"!==this.value&&(this.value="aborted")}static mergeArray(e,t){const n=[];for(const r of t){if("aborted"===r.status)return TE;"dirty"===r.status&&e.dirty(),n.push(r.value)}return{status:e.value,value:n}}static async mergeObjectAsync(e,t){const n=[];for(const r of t)n.push({key:await r.key,value:await r.value});return GE.mergeObjectSync(e,n)}static mergeObjectSync(e,t){const n={};for(const r of t){const{key:t,value:i}=r;if("aborted"===t.status)return TE;if("aborted"===i.status)return TE;"dirty"===t.status&&e.dirty(),"dirty"===i.status&&e.dirty(),"__proto__"===t.value||"undefined"===typeof i.value&&!r.alwaysSet||(n[t.value]=i.value)}return{status:e.value,value:n}}}const TE=Object.freeze({status:"aborted"}),ME=e=>({status:"dirty",value:e}),OE=e=>({status:"valid",value:e}),RE=e=>"aborted"===e.status,DE=e=>"dirty"===e.status,NE=e=>"valid"===e.status,LE=e=>"undefined"!==typeof Promise&&e instanceof Promise;var VE;!function(e){e.errToObj=e=>"string"===typeof e?{message:e}:e||{},e.toString=e=>"string"===typeof e?e:null===e||void 0===e?void 0:e.message}(VE||(VE={}));class FE{constructor(e,t,n,r){this._cachedPath=[],this.parent=e,this.data=t,this._path=n,this._key=r}get path(){return this._cachedPath.length||(this._key instanceof Array?this._cachedPath.push(...this._path,...this._key):this._cachedPath.push(...this._path,this._key)),this._cachedPath}}const zE=(e,t)=>{if(NE(t))return{success:!0,data:t.value};if(!e.common.issues.length)throw new Error("Validation failed but no issues detected.");return{success:!1,get error(){if(this._error)return this._error;const t=new PE(e.common.issues);return this._error=t,this._error}}};function BE(e){if(!e)return{};const{errorMap:t,invalid_type_error:n,required_error:r,description:i}=e;if(t&&(n||r))throw new Error('Can\'t use "invalid_type_error" or "required_error" in conjunction with custom error map.');if(t)return{errorMap:t,description:i};return{errorMap:(e,t)=>"invalid_type"!==e.code?{message:t.defaultError}:"undefined"===typeof t.data?{message:null!==r&&void 0!==r?r:t.defaultError}:{message:null!==n&&void 0!==n?n:t.defaultError},description:i}}class UE{constructor(e){this.spa=this.safeParseAsync,this._def=e,this.parse=this.parse.bind(this),this.safeParse=this.safeParse.bind(this),this.parseAsync=this.parseAsync.bind(this),this.safeParseAsync=this.safeParseAsync.bind(this),this.spa=this.spa.bind(this),this.refine=this.refine.bind(this),this.refinement=this.refinement.bind(this),this.superRefine=this.superRefine.bind(this),this.optional=this.optional.bind(this),this.nullable=this.nullable.bind(this),this.nullish=this.nullish.bind(this),this.array=this.array.bind(this),this.promise=this.promise.bind(this),this.or=this.or.bind(this),this.and=this.and.bind(this),this.transform=this.transform.bind(this),this.brand=this.brand.bind(this),this.default=this.default.bind(this),this.catch=this.catch.bind(this),this.describe=this.describe.bind(this),this.pipe=this.pipe.bind(this),this.readonly=this.readonly.bind(this),this.isNullable=this.isNullable.bind(this),this.isOptional=this.isOptional.bind(this)}get description(){return this._def.description}_getType(e){return wE(e.data)}_getOrReturnCtx(e,t){return t||{common:e.parent.common,data:e.data,parsedType:wE(e.data),schemaErrorMap:this._def.errorMap,path:e.path,parent:e.parent}}_processInputParams(e){return{status:new GE,ctx:{common:e.parent.common,data:e.data,parsedType:wE(e.data),schemaErrorMap:this._def.errorMap,path:e.path,parent:e.parent}}}_parseSync(e){const t=this._parse(e);if(LE(t))throw new Error("Synchronous parse encountered promise.");return t}_parseAsync(e){const t=this._parse(e);return Promise.resolve(t)}parse(e,t){const n=this.safeParse(e,t);if(n.success)return n.data;throw n.error}safeParse(e,t){var n;const r={common:{issues:[],async:null!==(n=null===t||void 0===t?void 0:t.async)&&void 0!==n&&n,contextualErrorMap:null===t||void 0===t?void 0:t.errorMap},path:(null===t||void 0===t?void 0:t.path)||[],schemaErrorMap:this._def.errorMap,parent:null,data:e,parsedType:wE(e)},i=this._parseSync({data:e,path:r.path,parent:r});return zE(r,i)}async parseAsync(e,t){const n=await this.safeParseAsync(e,t);if(n.success)return n.data;throw n.error}async safeParseAsync(e,t){const n={common:{issues:[],contextualErrorMap:null===t||void 0===t?void 0:t.errorMap,async:!0},path:(null===t||void 0===t?void 0:t.path)||[],schemaErrorMap:this._def.errorMap,parent:null,data:e,parsedType:wE(e)},r=this._parse({data:e,path:n.path,parent:n}),i=await(LE(r)?r:Promise.resolve(r));return zE(n,i)}refine(e,t){const n=e=>"string"===typeof t||"undefined"===typeof t?{message:t}:"function"===typeof t?t(e):t;return this._refinement(((t,r)=>{const i=e(t),o=()=>r.addIssue({code:EE.custom,...n(t)});return"undefined"!==typeof Promise&&i instanceof Promise?i.then((e=>!!e||(o(),!1))):!!i||(o(),!1)}))}refinement(e,t){return this._refinement(((n,r)=>!!e(n)||(r.addIssue("function"===typeof t?t(n,r):t),!1)))}_refinement(e){return new GP({schema:this,typeName:UP.ZodEffects,effect:{type:"refinement",refinement:e}})}superRefine(e){return this._refinement(e)}optional(){return TP.create(this,this._def)}nullable(){return MP.create(this,this._def)}nullish(){return this.nullable().optional()}array(){return hP.create(this,this._def)}promise(){return IP.create(this,this._def)}or(e){return gP.create([this,e],this._def)}and(e){return _P.create(this,e,this._def)}transform(e){return new GP({...BE(this._def),schema:this,typeName:UP.ZodEffects,effect:{type:"transform",transform:e}})}default(e){const t="function"===typeof e?e:()=>e;return new OP({...BE(this._def),innerType:this,defaultValue:t,typeName:UP.ZodDefault})}brand(){return new LP({typeName:UP.ZodBranded,type:this,...BE(this._def)})}catch(e){const t="function"===typeof e?e:()=>e;return new RP({...BE(this._def),innerType:this,catchValue:t,typeName:UP.ZodCatch})}describe(e){return new(0,this.constructor)({...this._def,description:e})}pipe(e){return VP.create(this,e)}readonly(){return FP.create(this)}isOptional(){return this.safeParse(void 0).success}isNullable(){return this.safeParse(null).success}}const WE=/^c[^\s-]{8,}$/i,HE=/^[a-z][a-z0-9]*$/,qE=/^[0-9A-HJKMNP-TV-Z]{26}$/,XE=/^[0-9a-fA-F]{8}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{12}$/i,YE=/^(?!\.)(?!.*\.\.)([A-Z0-9_+-\.]*)[A-Z0-9_+-]@([A-Z0-9][A-Z0-9\-]*\.)+[A-Z]{2,}$/i;let KE;const ZE=/^(((25[0-5])|(2[0-4][0-9])|(1[0-9]{2})|([0-9]{1,2}))\.){3}((25[0-5])|(2[0-4][0-9])|(1[0-9]{2})|([0-9]{1,2}))$/,$E=/^(([a-f0-9]{1,4}:){7}|::([a-f0-9]{1,4}:){0,6}|([a-f0-9]{1,4}:){1}:([a-f0-9]{1,4}:){0,5}|([a-f0-9]{1,4}:){2}:([a-f0-9]{1,4}:){0,4}|([a-f0-9]{1,4}:){3}:([a-f0-9]{1,4}:){0,3}|([a-f0-9]{1,4}:){4}:([a-f0-9]{1,4}:){0,2}|([a-f0-9]{1,4}:){5}:([a-f0-9]{1,4}:){0,1})([a-f0-9]{1,4}|(((25[0-5])|(2[0-4][0-9])|(1[0-9]{2})|([0-9]{1,2}))\.){3}((25[0-5])|(2[0-4][0-9])|(1[0-9]{2})|([0-9]{1,2})))$/;function JE(e,t){return!("v4"!==t&&t||!ZE.test(e))||!("v6"!==t&&t||!$E.test(e))}class QE extends UE{_parse(e){this._def.coerce&&(e.data=String(e.data));if(this._getType(e)!==SE.string){const t=this._getOrReturnCtx(e);return IE(t,{code:EE.invalid_type,expected:SE.string,received:t.parsedType}),TE}const t=new GE;let n;for(const i of this._def.checks)if("min"===i.kind)e.data.length<i.value&&(n=this._getOrReturnCtx(e,n),IE(n,{code:EE.too_small,minimum:i.value,type:"string",inclusive:!0,exact:!1,message:i.message}),t.dirty());else if("max"===i.kind)e.data.length>i.value&&(n=this._getOrReturnCtx(e,n),IE(n,{code:EE.too_big,maximum:i.value,type:"string",inclusive:!0,exact:!1,message:i.message}),t.dirty());else if("length"===i.kind){const r=e.data.length>i.value,o=e.data.length<i.value;(r||o)&&(n=this._getOrReturnCtx(e,n),r?IE(n,{code:EE.too_big,maximum:i.value,type:"string",inclusive:!0,exact:!0,message:i.message}):o&&IE(n,{code:EE.too_small,minimum:i.value,type:"string",inclusive:!0,exact:!0,message:i.message}),t.dirty())}else if("email"===i.kind)YE.test(e.data)||(n=this._getOrReturnCtx(e,n),IE(n,{validation:"email",code:EE.invalid_string,message:i.message}),t.dirty());else if("emoji"===i.kind)KE||(KE=new RegExp("^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$","u")),KE.test(e.data)||(n=this._getOrReturnCtx(e,n),IE(n,{validation:"emoji",code:EE.invalid_string,message:i.message}),t.dirty());else if("uuid"===i.kind)XE.test(e.data)||(n=this._getOrReturnCtx(e,n),IE(n,{validation:"uuid",code:EE.invalid_string,message:i.message}),t.dirty());else if("cuid"===i.kind)WE.test(e.data)||(n=this._getOrReturnCtx(e,n),IE(n,{validation:"cuid",code:EE.invalid_string,message:i.message}),t.dirty());else if("cuid2"===i.kind)HE.test(e.data)||(n=this._getOrReturnCtx(e,n),IE(n,{validation:"cuid2",code:EE.invalid_string,message:i.message}),t.dirty());else if("ulid"===i.kind)qE.test(e.data)||(n=this._getOrReturnCtx(e,n),IE(n,{validation:"ulid",code:EE.invalid_string,message:i.message}),t.dirty());else if("url"===i.kind)try{new URL(e.data)}catch(Di){n=this._getOrReturnCtx(e,n),IE(n,{validation:"url",code:EE.invalid_string,message:i.message}),t.dirty()}else if("regex"===i.kind){i.regex.lastIndex=0;i.regex.test(e.data)||(n=this._getOrReturnCtx(e,n),IE(n,{validation:"regex",code:EE.invalid_string,message:i.message}),t.dirty())}else if("trim"===i.kind)e.data=e.data.trim();else if("includes"===i.kind)e.data.includes(i.value,i.position)||(n=this._getOrReturnCtx(e,n),IE(n,{code:EE.invalid_string,validation:{includes:i.value,position:i.position},message:i.message}),t.dirty());else if("toLowerCase"===i.kind)e.data=e.data.toLowerCase();else if("toUpperCase"===i.kind)e.data=e.data.toUpperCase();else if("startsWith"===i.kind)e.data.startsWith(i.value)||(n=this._getOrReturnCtx(e,n),IE(n,{code:EE.invalid_string,validation:{startsWith:i.value},message:i.message}),t.dirty());else if("endsWith"===i.kind)e.data.endsWith(i.value)||(n=this._getOrReturnCtx(e,n),IE(n,{code:EE.invalid_string,validation:{endsWith:i.value},message:i.message}),t.dirty());else if("datetime"===i.kind){((r=i).precision?r.offset?new RegExp("^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}\\.\\d{".concat(r.precision,"}(([+-]\\d{2}(:?\\d{2})?)|Z)$")):new RegExp("^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}\\.\\d{".concat(r.precision,"}Z$")):0===r.precision?r.offset?new RegExp("^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}(([+-]\\d{2}(:?\\d{2})?)|Z)$"):new RegExp("^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}Z$"):r.offset?new RegExp("^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}(\\.\\d+)?(([+-]\\d{2}(:?\\d{2})?)|Z)$"):new RegExp("^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}(\\.\\d+)?Z$")).test(e.data)||(n=this._getOrReturnCtx(e,n),IE(n,{code:EE.invalid_string,validation:"datetime",message:i.message}),t.dirty())}else"ip"===i.kind?JE(e.data,i.version)||(n=this._getOrReturnCtx(e,n),IE(n,{validation:"ip",code:EE.invalid_string,message:i.message}),t.dirty()):bE.assertNever(i);var r;return{status:t.value,value:e.data}}_regex(e,t,n){return this.refinement((t=>e.test(t)),{validation:t,code:EE.invalid_string,...VE.errToObj(n)})}_addCheck(e){return new QE({...this._def,checks:[...this._def.checks,e]})}email(e){return this._addCheck({kind:"email",...VE.errToObj(e)})}url(e){return this._addCheck({kind:"url",...VE.errToObj(e)})}emoji(e){return this._addCheck({kind:"emoji",...VE.errToObj(e)})}uuid(e){return this._addCheck({kind:"uuid",...VE.errToObj(e)})}cuid(e){return this._addCheck({kind:"cuid",...VE.errToObj(e)})}cuid2(e){return this._addCheck({kind:"cuid2",...VE.errToObj(e)})}ulid(e){return this._addCheck({kind:"ulid",...VE.errToObj(e)})}ip(e){return this._addCheck({kind:"ip",...VE.errToObj(e)})}datetime(e){var t;return"string"===typeof e?this._addCheck({kind:"datetime",precision:null,offset:!1,message:e}):this._addCheck({kind:"datetime",precision:"undefined"===typeof(null===e||void 0===e?void 0:e.precision)?null:null===e||void 0===e?void 0:e.precision,offset:null!==(t=null===e||void 0===e?void 0:e.offset)&&void 0!==t&&t,...VE.errToObj(null===e||void 0===e?void 0:e.message)})}regex(e,t){return this._addCheck({kind:"regex",regex:e,...VE.errToObj(t)})}includes(e,t){return this._addCheck({kind:"includes",value:e,position:null===t||void 0===t?void 0:t.position,...VE.errToObj(null===t||void 0===t?void 0:t.message)})}startsWith(e,t){return this._addCheck({kind:"startsWith",value:e,...VE.errToObj(t)})}endsWith(e,t){return this._addCheck({kind:"endsWith",value:e,...VE.errToObj(t)})}min(e,t){return this._addCheck({kind:"min",value:e,...VE.errToObj(t)})}max(e,t){return this._addCheck({kind:"max",value:e,...VE.errToObj(t)})}length(e,t){return this._addCheck({kind:"length",value:e,...VE.errToObj(t)})}nonempty(e){return this.min(1,VE.errToObj(e))}trim(){return new QE({...this._def,checks:[...this._def.checks,{kind:"trim"}]})}toLowerCase(){return new QE({...this._def,checks:[...this._def.checks,{kind:"toLowerCase"}]})}toUpperCase(){return new QE({...this._def,checks:[...this._def.checks,{kind:"toUpperCase"}]})}get isDatetime(){return!!this._def.checks.find((e=>"datetime"===e.kind))}get isEmail(){return!!this._def.checks.find((e=>"email"===e.kind))}get isURL(){return!!this._def.checks.find((e=>"url"===e.kind))}get isEmoji(){return!!this._def.checks.find((e=>"emoji"===e.kind))}get isUUID(){return!!this._def.checks.find((e=>"uuid"===e.kind))}get isCUID(){return!!this._def.checks.find((e=>"cuid"===e.kind))}get isCUID2(){return!!this._def.checks.find((e=>"cuid2"===e.kind))}get isULID(){return!!this._def.checks.find((e=>"ulid"===e.kind))}get isIP(){return!!this._def.checks.find((e=>"ip"===e.kind))}get minLength(){let e=null;for(const t of this._def.checks)"min"===t.kind&&(null===e||t.value>e)&&(e=t.value);return e}get maxLength(){let e=null;for(const t of this._def.checks)"max"===t.kind&&(null===e||t.value<e)&&(e=t.value);return e}}function eP(e,t){const n=(e.toString().split(".")[1]||"").length,r=(t.toString().split(".")[1]||"").length,i=n>r?n:r;return parseInt(e.toFixed(i).replace(".",""))%parseInt(t.toFixed(i).replace(".",""))/Math.pow(10,i)}QE.create=e=>{var t;return new QE({checks:[],typeName:UP.ZodString,coerce:null!==(t=null===e||void 0===e?void 0:e.coerce)&&void 0!==t&&t,...BE(e)})};class tP extends UE{constructor(){super(...arguments),this.min=this.gte,this.max=this.lte,this.step=this.multipleOf}_parse(e){this._def.coerce&&(e.data=Number(e.data));if(this._getType(e)!==SE.number){const t=this._getOrReturnCtx(e);return IE(t,{code:EE.invalid_type,expected:SE.number,received:t.parsedType}),TE}let t;const n=new GE;for(const r of this._def.checks)if("int"===r.kind)bE.isInteger(e.data)||(t=this._getOrReturnCtx(e,t),IE(t,{code:EE.invalid_type,expected:"integer",received:"float",message:r.message}),n.dirty());else if("min"===r.kind){(r.inclusive?e.data<r.value:e.data<=r.value)&&(t=this._getOrReturnCtx(e,t),IE(t,{code:EE.too_small,minimum:r.value,type:"number",inclusive:r.inclusive,exact:!1,message:r.message}),n.dirty())}else if("max"===r.kind){(r.inclusive?e.data>r.value:e.data>=r.value)&&(t=this._getOrReturnCtx(e,t),IE(t,{code:EE.too_big,maximum:r.value,type:"number",inclusive:r.inclusive,exact:!1,message:r.message}),n.dirty())}else"multipleOf"===r.kind?0!==eP(e.data,r.value)&&(t=this._getOrReturnCtx(e,t),IE(t,{code:EE.not_multiple_of,multipleOf:r.value,message:r.message}),n.dirty()):"finite"===r.kind?Number.isFinite(e.data)||(t=this._getOrReturnCtx(e,t),IE(t,{code:EE.not_finite,message:r.message}),n.dirty()):bE.assertNever(r);return{status:n.value,value:e.data}}gte(e,t){return this.setLimit("min",e,!0,VE.toString(t))}gt(e,t){return this.setLimit("min",e,!1,VE.toString(t))}lte(e,t){return this.setLimit("max",e,!0,VE.toString(t))}lt(e,t){return this.setLimit("max",e,!1,VE.toString(t))}setLimit(e,t,n,r){return new tP({...this._def,checks:[...this._def.checks,{kind:e,value:t,inclusive:n,message:VE.toString(r)}]})}_addCheck(e){return new tP({...this._def,checks:[...this._def.checks,e]})}int(e){return this._addCheck({kind:"int",message:VE.toString(e)})}positive(e){return this._addCheck({kind:"min",value:0,inclusive:!1,message:VE.toString(e)})}negative(e){return this._addCheck({kind:"max",value:0,inclusive:!1,message:VE.toString(e)})}nonpositive(e){return this._addCheck({kind:"max",value:0,inclusive:!0,message:VE.toString(e)})}nonnegative(e){return this._addCheck({kind:"min",value:0,inclusive:!0,message:VE.toString(e)})}multipleOf(e,t){return this._addCheck({kind:"multipleOf",value:e,message:VE.toString(t)})}finite(e){return this._addCheck({kind:"finite",message:VE.toString(e)})}safe(e){return this._addCheck({kind:"min",inclusive:!0,value:Number.MIN_SAFE_INTEGER,message:VE.toString(e)})._addCheck({kind:"max",inclusive:!0,value:Number.MAX_SAFE_INTEGER,message:VE.toString(e)})}get minValue(){let e=null;for(const t of this._def.checks)"min"===t.kind&&(null===e||t.value>e)&&(e=t.value);return e}get maxValue(){let e=null;for(const t of this._def.checks)"max"===t.kind&&(null===e||t.value<e)&&(e=t.value);return e}get isInt(){return!!this._def.checks.find((e=>"int"===e.kind||"multipleOf"===e.kind&&bE.isInteger(e.value)))}get isFinite(){let e=null,t=null;for(const n of this._def.checks){if("finite"===n.kind||"int"===n.kind||"multipleOf"===n.kind)return!0;"min"===n.kind?(null===t||n.value>t)&&(t=n.value):"max"===n.kind&&(null===e||n.value<e)&&(e=n.value)}return Number.isFinite(t)&&Number.isFinite(e)}}tP.create=e=>new tP({checks:[],typeName:UP.ZodNumber,coerce:(null===e||void 0===e?void 0:e.coerce)||!1,...BE(e)});class nP extends UE{constructor(){super(...arguments),this.min=this.gte,this.max=this.lte}_parse(e){this._def.coerce&&(e.data=BigInt(e.data));if(this._getType(e)!==SE.bigint){const t=this._getOrReturnCtx(e);return IE(t,{code:EE.invalid_type,expected:SE.bigint,received:t.parsedType}),TE}let t;const n=new GE;for(const r of this._def.checks)if("min"===r.kind){(r.inclusive?e.data<r.value:e.data<=r.value)&&(t=this._getOrReturnCtx(e,t),IE(t,{code:EE.too_small,type:"bigint",minimum:r.value,inclusive:r.inclusive,message:r.message}),n.dirty())}else if("max"===r.kind){(r.inclusive?e.data>r.value:e.data>=r.value)&&(t=this._getOrReturnCtx(e,t),IE(t,{code:EE.too_big,type:"bigint",maximum:r.value,inclusive:r.inclusive,message:r.message}),n.dirty())}else"multipleOf"===r.kind?e.data%r.value!==BigInt(0)&&(t=this._getOrReturnCtx(e,t),IE(t,{code:EE.not_multiple_of,multipleOf:r.value,message:r.message}),n.dirty()):bE.assertNever(r);return{status:n.value,value:e.data}}gte(e,t){return this.setLimit("min",e,!0,VE.toString(t))}gt(e,t){return this.setLimit("min",e,!1,VE.toString(t))}lte(e,t){return this.setLimit("max",e,!0,VE.toString(t))}lt(e,t){return this.setLimit("max",e,!1,VE.toString(t))}setLimit(e,t,n,r){return new nP({...this._def,checks:[...this._def.checks,{kind:e,value:t,inclusive:n,message:VE.toString(r)}]})}_addCheck(e){return new nP({...this._def,checks:[...this._def.checks,e]})}positive(e){return this._addCheck({kind:"min",value:BigInt(0),inclusive:!1,message:VE.toString(e)})}negative(e){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!1,message:VE.toString(e)})}nonpositive(e){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!0,message:VE.toString(e)})}nonnegative(e){return this._addCheck({kind:"min",value:BigInt(0),inclusive:!0,message:VE.toString(e)})}multipleOf(e,t){return this._addCheck({kind:"multipleOf",value:e,message:VE.toString(t)})}get minValue(){let e=null;for(const t of this._def.checks)"min"===t.kind&&(null===e||t.value>e)&&(e=t.value);return e}get maxValue(){let e=null;for(const t of this._def.checks)"max"===t.kind&&(null===e||t.value<e)&&(e=t.value);return e}}nP.create=e=>{var t;return new nP({checks:[],typeName:UP.ZodBigInt,coerce:null!==(t=null===e||void 0===e?void 0:e.coerce)&&void 0!==t&&t,...BE(e)})};class rP extends UE{_parse(e){this._def.coerce&&(e.data=Boolean(e.data));if(this._getType(e)!==SE.boolean){const t=this._getOrReturnCtx(e);return IE(t,{code:EE.invalid_type,expected:SE.boolean,received:t.parsedType}),TE}return OE(e.data)}}rP.create=e=>new rP({typeName:UP.ZodBoolean,coerce:(null===e||void 0===e?void 0:e.coerce)||!1,...BE(e)});class iP extends UE{_parse(e){this._def.coerce&&(e.data=new Date(e.data));if(this._getType(e)!==SE.date){const t=this._getOrReturnCtx(e);return IE(t,{code:EE.invalid_type,expected:SE.date,received:t.parsedType}),TE}if(isNaN(e.data.getTime())){return IE(this._getOrReturnCtx(e),{code:EE.invalid_date}),TE}const t=new GE;let n;for(const r of this._def.checks)"min"===r.kind?e.data.getTime()<r.value&&(n=this._getOrReturnCtx(e,n),IE(n,{code:EE.too_small,message:r.message,inclusive:!0,exact:!1,minimum:r.value,type:"date"}),t.dirty()):"max"===r.kind?e.data.getTime()>r.value&&(n=this._getOrReturnCtx(e,n),IE(n,{code:EE.too_big,message:r.message,inclusive:!0,exact:!1,maximum:r.value,type:"date"}),t.dirty()):bE.assertNever(r);return{status:t.value,value:new Date(e.data.getTime())}}_addCheck(e){return new iP({...this._def,checks:[...this._def.checks,e]})}min(e,t){return this._addCheck({kind:"min",value:e.getTime(),message:VE.toString(t)})}max(e,t){return this._addCheck({kind:"max",value:e.getTime(),message:VE.toString(t)})}get minDate(){let e=null;for(const t of this._def.checks)"min"===t.kind&&(null===e||t.value>e)&&(e=t.value);return null!=e?new Date(e):null}get maxDate(){let e=null;for(const t of this._def.checks)"max"===t.kind&&(null===e||t.value<e)&&(e=t.value);return null!=e?new Date(e):null}}iP.create=e=>new iP({checks:[],coerce:(null===e||void 0===e?void 0:e.coerce)||!1,typeName:UP.ZodDate,...BE(e)});class oP extends UE{_parse(e){if(this._getType(e)!==SE.symbol){const t=this._getOrReturnCtx(e);return IE(t,{code:EE.invalid_type,expected:SE.symbol,received:t.parsedType}),TE}return OE(e.data)}}oP.create=e=>new oP({typeName:UP.ZodSymbol,...BE(e)});class sP extends UE{_parse(e){if(this._getType(e)!==SE.undefined){const t=this._getOrReturnCtx(e);return IE(t,{code:EE.invalid_type,expected:SE.undefined,received:t.parsedType}),TE}return OE(e.data)}}sP.create=e=>new sP({typeName:UP.ZodUndefined,...BE(e)});class aP extends UE{_parse(e){if(this._getType(e)!==SE.null){const t=this._getOrReturnCtx(e);return IE(t,{code:EE.invalid_type,expected:SE.null,received:t.parsedType}),TE}return OE(e.data)}}aP.create=e=>new aP({typeName:UP.ZodNull,...BE(e)});class lP extends UE{constructor(){super(...arguments),this._any=!0}_parse(e){return OE(e.data)}}lP.create=e=>new lP({typeName:UP.ZodAny,...BE(e)});class cP extends UE{constructor(){super(...arguments),this._unknown=!0}_parse(e){return OE(e.data)}}cP.create=e=>new cP({typeName:UP.ZodUnknown,...BE(e)});class uP extends UE{_parse(e){const t=this._getOrReturnCtx(e);return IE(t,{code:EE.invalid_type,expected:SE.never,received:t.parsedType}),TE}}uP.create=e=>new uP({typeName:UP.ZodNever,...BE(e)});class dP extends UE{_parse(e){if(this._getType(e)!==SE.undefined){const t=this._getOrReturnCtx(e);return IE(t,{code:EE.invalid_type,expected:SE.void,received:t.parsedType}),TE}return OE(e.data)}}dP.create=e=>new dP({typeName:UP.ZodVoid,...BE(e)});class hP extends UE{_parse(e){const{ctx:t,status:n}=this._processInputParams(e),r=this._def;if(t.parsedType!==SE.array)return IE(t,{code:EE.invalid_type,expected:SE.array,received:t.parsedType}),TE;if(null!==r.exactLength){const e=t.data.length>r.exactLength.value,i=t.data.length<r.exactLength.value;(e||i)&&(IE(t,{code:e?EE.too_big:EE.too_small,minimum:i?r.exactLength.value:void 0,maximum:e?r.exactLength.value:void 0,type:"array",inclusive:!0,exact:!0,message:r.exactLength.message}),n.dirty())}if(null!==r.minLength&&t.data.length<r.minLength.value&&(IE(t,{code:EE.too_small,minimum:r.minLength.value,type:"array",inclusive:!0,exact:!1,message:r.minLength.message}),n.dirty()),null!==r.maxLength&&t.data.length>r.maxLength.value&&(IE(t,{code:EE.too_big,maximum:r.maxLength.value,type:"array",inclusive:!0,exact:!1,message:r.maxLength.message}),n.dirty()),t.common.async)return Promise.all([...t.data].map(((e,n)=>r.type._parseAsync(new FE(t,e,t.path,n))))).then((e=>GE.mergeArray(n,e)));const i=[...t.data].map(((e,n)=>r.type._parseSync(new FE(t,e,t.path,n))));return GE.mergeArray(n,i)}get element(){return this._def.type}min(e,t){return new hP({...this._def,minLength:{value:e,message:VE.toString(t)}})}max(e,t){return new hP({...this._def,maxLength:{value:e,message:VE.toString(t)}})}length(e,t){return new hP({...this._def,exactLength:{value:e,message:VE.toString(t)}})}nonempty(e){return this.min(1,e)}}function pP(e){if(e instanceof fP){const t={};for(const n in e.shape){const r=e.shape[n];t[n]=TP.create(pP(r))}return new fP({...e._def,shape:()=>t})}return e instanceof hP?new hP({...e._def,type:pP(e.element)}):e instanceof TP?TP.create(pP(e.unwrap())):e instanceof MP?MP.create(pP(e.unwrap())):e instanceof bP?bP.create(e.items.map((e=>pP(e)))):e}hP.create=(e,t)=>new hP({type:e,minLength:null,maxLength:null,exactLength:null,typeName:UP.ZodArray,...BE(t)});class fP extends UE{constructor(){super(...arguments),this._cached=null,this.nonstrict=this.passthrough,this.augment=this.extend}_getCached(){if(null!==this._cached)return this._cached;const e=this._def.shape(),t=bE.objectKeys(e);return this._cached={shape:e,keys:t}}_parse(e){if(this._getType(e)!==SE.object){const t=this._getOrReturnCtx(e);return IE(t,{code:EE.invalid_type,expected:SE.object,received:t.parsedType}),TE}const{status:t,ctx:n}=this._processInputParams(e),{shape:r,keys:i}=this._getCached(),o=[];if(!(this._def.catchall instanceof uP&&"strip"===this._def.unknownKeys))for(const a in n.data)i.includes(a)||o.push(a);const s=[];for(const a of i){const e=r[a],t=n.data[a];s.push({key:{status:"valid",value:a},value:e._parse(new FE(n,t,n.path,a)),alwaysSet:a in n.data})}if(this._def.catchall instanceof uP){const e=this._def.unknownKeys;if("passthrough"===e)for(const t of o)s.push({key:{status:"valid",value:t},value:{status:"valid",value:n.data[t]}});else if("strict"===e)o.length>0&&(IE(n,{code:EE.unrecognized_keys,keys:o}),t.dirty());else if("strip"!==e)throw new Error("Internal ZodObject error: invalid unknownKeys value.")}else{const e=this._def.catchall;for(const t of o){const r=n.data[t];s.push({key:{status:"valid",value:t},value:e._parse(new FE(n,r,n.path,t)),alwaysSet:t in n.data})}}return n.common.async?Promise.resolve().then((async()=>{const e=[];for(const t of s){const n=await t.key;e.push({key:n,value:await t.value,alwaysSet:t.alwaysSet})}return e})).then((e=>GE.mergeObjectSync(t,e))):GE.mergeObjectSync(t,s)}get shape(){return this._def.shape()}strict(e){return VE.errToObj,new fP({...this._def,unknownKeys:"strict",...void 0!==e?{errorMap:(t,n)=>{var r,i,o,s;const a=null!==(o=null===(i=(r=this._def).errorMap)||void 0===i?void 0:i.call(r,t,n).message)&&void 0!==o?o:n.defaultError;return"unrecognized_keys"===t.code?{message:null!==(s=VE.errToObj(e).message)&&void 0!==s?s:a}:{message:a}}}:{}})}strip(){return new fP({...this._def,unknownKeys:"strip"})}passthrough(){return new fP({...this._def,unknownKeys:"passthrough"})}extend(e){return new fP({...this._def,shape:()=>({...this._def.shape(),...e})})}merge(e){return new fP({unknownKeys:e._def.unknownKeys,catchall:e._def.catchall,shape:()=>({...this._def.shape(),...e._def.shape()}),typeName:UP.ZodObject})}setKey(e,t){return this.augment({[e]:t})}catchall(e){return new fP({...this._def,catchall:e})}pick(e){const t={};return bE.objectKeys(e).forEach((n=>{e[n]&&this.shape[n]&&(t[n]=this.shape[n])})),new fP({...this._def,shape:()=>t})}omit(e){const t={};return bE.objectKeys(this.shape).forEach((n=>{e[n]||(t[n]=this.shape[n])})),new fP({...this._def,shape:()=>t})}deepPartial(){return pP(this)}partial(e){const t={};return bE.objectKeys(this.shape).forEach((n=>{const r=this.shape[n];e&&!e[n]?t[n]=r:t[n]=r.optional()})),new fP({...this._def,shape:()=>t})}required(e){const t={};return bE.objectKeys(this.shape).forEach((n=>{if(e&&!e[n])t[n]=this.shape[n];else{let e=this.shape[n];for(;e instanceof TP;)e=e._def.innerType;t[n]=e}})),new fP({...this._def,shape:()=>t})}keyof(){return AP(bE.objectKeys(this.shape))}}fP.create=(e,t)=>new fP({shape:()=>e,unknownKeys:"strip",catchall:uP.create(),typeName:UP.ZodObject,...BE(t)}),fP.strictCreate=(e,t)=>new fP({shape:()=>e,unknownKeys:"strict",catchall:uP.create(),typeName:UP.ZodObject,...BE(t)}),fP.lazycreate=(e,t)=>new fP({shape:e,unknownKeys:"strip",catchall:uP.create(),typeName:UP.ZodObject,...BE(t)});class gP extends UE{_parse(e){const{ctx:t}=this._processInputParams(e),n=this._def.options;if(t.common.async)return Promise.all(n.map((async e=>{const n={...t,common:{...t.common,issues:[]},parent:null};return{result:await e._parseAsync({data:t.data,path:t.path,parent:n}),ctx:n}}))).then((function(e){for(const t of e)if("valid"===t.result.status)return t.result;for(const r of e)if("dirty"===r.result.status)return t.common.issues.push(...r.ctx.common.issues),r.result;const n=e.map((e=>new PE(e.ctx.common.issues)));return IE(t,{code:EE.invalid_union,unionErrors:n}),TE}));{let e;const r=[];for(const o of n){const n={...t,common:{...t.common,issues:[]},parent:null},i=o._parseSync({data:t.data,path:t.path,parent:n});if("valid"===i.status)return i;"dirty"!==i.status||e||(e={result:i,ctx:n}),n.common.issues.length&&r.push(n.common.issues)}if(e)return t.common.issues.push(...e.ctx.common.issues),e.result;const i=r.map((e=>new PE(e)));return IE(t,{code:EE.invalid_union,unionErrors:i}),TE}}get options(){return this._def.options}}gP.create=(e,t)=>new gP({options:e,typeName:UP.ZodUnion,...BE(t)});const mP=e=>e instanceof PP?mP(e.schema):e instanceof GP?mP(e.innerType()):e instanceof CP?[e.value]:e instanceof kP?e.options:e instanceof jP?Object.keys(e.enum):e instanceof OP?mP(e._def.innerType):e instanceof sP?[void 0]:e instanceof aP?[null]:null;class yP extends UE{_parse(e){const{ctx:t}=this._processInputParams(e);if(t.parsedType!==SE.object)return IE(t,{code:EE.invalid_type,expected:SE.object,received:t.parsedType}),TE;const n=this.discriminator,r=t.data[n],i=this.optionsMap.get(r);return i?t.common.async?i._parseAsync({data:t.data,path:t.path,parent:t}):i._parseSync({data:t.data,path:t.path,parent:t}):(IE(t,{code:EE.invalid_union_discriminator,options:Array.from(this.optionsMap.keys()),path:[n]}),TE)}get discriminator(){return this._def.discriminator}get options(){return this._def.options}get optionsMap(){return this._def.optionsMap}static create(e,t,n){const r=new Map;for(const i of t){const t=mP(i.shape[e]);if(!t)throw new Error("A discriminator value for key `".concat(e,"` could not be extracted from all schema options"));for(const n of t){if(r.has(n))throw new Error("Discriminator property ".concat(String(e)," has duplicate value ").concat(String(n)));r.set(n,i)}}return new yP({typeName:UP.ZodDiscriminatedUnion,discriminator:e,options:t,optionsMap:r,...BE(n)})}}function vP(e,t){const n=wE(e),r=wE(t);if(e===t)return{valid:!0,data:e};if(n===SE.object&&r===SE.object){const n=bE.objectKeys(t),r=bE.objectKeys(e).filter((e=>-1!==n.indexOf(e))),i={...e,...t};for(const o of r){const n=vP(e[o],t[o]);if(!n.valid)return{valid:!1};i[o]=n.data}return{valid:!0,data:i}}if(n===SE.array&&r===SE.array){if(e.length!==t.length)return{valid:!1};const n=[];for(let r=0;r<e.length;r++){const i=vP(e[r],t[r]);if(!i.valid)return{valid:!1};n.push(i.data)}return{valid:!0,data:n}}return n===SE.date&&r===SE.date&&+e===+t?{valid:!0,data:e}:{valid:!1}}class _P extends UE{_parse(e){const{status:t,ctx:n}=this._processInputParams(e),r=(e,r)=>{if(RE(e)||RE(r))return TE;const i=vP(e.value,r.value);return i.valid?((DE(e)||DE(r))&&t.dirty(),{status:t.value,value:i.data}):(IE(n,{code:EE.invalid_intersection_types}),TE)};return n.common.async?Promise.all([this._def.left._parseAsync({data:n.data,path:n.path,parent:n}),this._def.right._parseAsync({data:n.data,path:n.path,parent:n})]).then((e=>{let[t,n]=e;return r(t,n)})):r(this._def.left._parseSync({data:n.data,path:n.path,parent:n}),this._def.right._parseSync({data:n.data,path:n.path,parent:n}))}}_P.create=(e,t,n)=>new _P({left:e,right:t,typeName:UP.ZodIntersection,...BE(n)});class bP extends UE{_parse(e){const{status:t,ctx:n}=this._processInputParams(e);if(n.parsedType!==SE.array)return IE(n,{code:EE.invalid_type,expected:SE.array,received:n.parsedType}),TE;if(n.data.length<this._def.items.length)return IE(n,{code:EE.too_small,minimum:this._def.items.length,inclusive:!0,exact:!1,type:"array"}),TE;!this._def.rest&&n.data.length>this._def.items.length&&(IE(n,{code:EE.too_big,maximum:this._def.items.length,inclusive:!0,exact:!1,type:"array"}),t.dirty());const r=[...n.data].map(((e,t)=>{const r=this._def.items[t]||this._def.rest;return r?r._parse(new FE(n,e,n.path,t)):null})).filter((e=>!!e));return n.common.async?Promise.all(r).then((e=>GE.mergeArray(t,e))):GE.mergeArray(t,r)}get items(){return this._def.items}rest(e){return new bP({...this._def,rest:e})}}bP.create=(e,t)=>{if(!Array.isArray(e))throw new Error("You must pass an array of schemas to z.tuple([ ... ])");return new bP({items:e,typeName:UP.ZodTuple,rest:null,...BE(t)})};class xP extends UE{get keySchema(){return this._def.keyType}get valueSchema(){return this._def.valueType}_parse(e){const{status:t,ctx:n}=this._processInputParams(e);if(n.parsedType!==SE.object)return IE(n,{code:EE.invalid_type,expected:SE.object,received:n.parsedType}),TE;const r=[],i=this._def.keyType,o=this._def.valueType;for(const s in n.data)r.push({key:i._parse(new FE(n,s,n.path,s)),value:o._parse(new FE(n,n.data[s],n.path,s))});return n.common.async?GE.mergeObjectAsync(t,r):GE.mergeObjectSync(t,r)}get element(){return this._def.valueType}static create(e,t,n){return new xP(t instanceof UE?{keyType:e,valueType:t,typeName:UP.ZodRecord,...BE(n)}:{keyType:QE.create(),valueType:e,typeName:UP.ZodRecord,...BE(t)})}}class SP extends UE{get keySchema(){return this._def.keyType}get valueSchema(){return this._def.valueType}_parse(e){const{status:t,ctx:n}=this._processInputParams(e);if(n.parsedType!==SE.map)return IE(n,{code:EE.invalid_type,expected:SE.map,received:n.parsedType}),TE;const r=this._def.keyType,i=this._def.valueType,o=[...n.data.entries()].map(((e,t)=>{let[o,s]=e;return{key:r._parse(new FE(n,o,n.path,[t,"key"])),value:i._parse(new FE(n,s,n.path,[t,"value"]))}}));if(n.common.async){const e=new Map;return Promise.resolve().then((async()=>{for(const n of o){const r=await n.key,i=await n.value;if("aborted"===r.status||"aborted"===i.status)return TE;"dirty"!==r.status&&"dirty"!==i.status||t.dirty(),e.set(r.value,i.value)}return{status:t.value,value:e}}))}{const e=new Map;for(const n of o){const r=n.key,i=n.value;if("aborted"===r.status||"aborted"===i.status)return TE;"dirty"!==r.status&&"dirty"!==i.status||t.dirty(),e.set(r.value,i.value)}return{status:t.value,value:e}}}}SP.create=(e,t,n)=>new SP({valueType:t,keyType:e,typeName:UP.ZodMap,...BE(n)});class wP extends UE{_parse(e){const{status:t,ctx:n}=this._processInputParams(e);if(n.parsedType!==SE.set)return IE(n,{code:EE.invalid_type,expected:SE.set,received:n.parsedType}),TE;const r=this._def;null!==r.minSize&&n.data.size<r.minSize.value&&(IE(n,{code:EE.too_small,minimum:r.minSize.value,type:"set",inclusive:!0,exact:!1,message:r.minSize.message}),t.dirty()),null!==r.maxSize&&n.data.size>r.maxSize.value&&(IE(n,{code:EE.too_big,maximum:r.maxSize.value,type:"set",inclusive:!0,exact:!1,message:r.maxSize.message}),t.dirty());const i=this._def.valueType;function o(e){const n=new Set;for(const r of e){if("aborted"===r.status)return TE;"dirty"===r.status&&t.dirty(),n.add(r.value)}return{status:t.value,value:n}}const s=[...n.data.values()].map(((e,t)=>i._parse(new FE(n,e,n.path,t))));return n.common.async?Promise.all(s).then((e=>o(e))):o(s)}min(e,t){return new wP({...this._def,minSize:{value:e,message:VE.toString(t)}})}max(e,t){return new wP({...this._def,maxSize:{value:e,message:VE.toString(t)}})}size(e,t){return this.min(e,t).max(e,t)}nonempty(e){return this.min(1,e)}}wP.create=(e,t)=>new wP({valueType:e,minSize:null,maxSize:null,typeName:UP.ZodSet,...BE(t)});class EP extends UE{constructor(){super(...arguments),this.validate=this.implement}_parse(e){const{ctx:t}=this._processInputParams(e);if(t.parsedType!==SE.function)return IE(t,{code:EE.invalid_type,expected:SE.function,received:t.parsedType}),TE;function n(e,n){return jE({data:e,path:t.path,errorMaps:[t.common.contextualErrorMap,t.schemaErrorMap,kE(),CE].filter((e=>!!e)),issueData:{code:EE.invalid_arguments,argumentsError:n}})}function r(e,n){return jE({data:e,path:t.path,errorMaps:[t.common.contextualErrorMap,t.schemaErrorMap,kE(),CE].filter((e=>!!e)),issueData:{code:EE.invalid_return_type,returnTypeError:n}})}const i={errorMap:t.common.contextualErrorMap},o=t.data;if(this._def.returns instanceof IP){const e=this;return OE((async function(){for(var t=arguments.length,s=new Array(t),a=0;a<t;a++)s[a]=arguments[a];const l=new PE([]),c=await e._def.args.parseAsync(s,i).catch((e=>{throw l.addIssue(n(s,e)),l})),u=await Reflect.apply(o,this,c);return await e._def.returns._def.type.parseAsync(u,i).catch((e=>{throw l.addIssue(r(u,e)),l}))}))}{const e=this;return OE((function(){for(var t=arguments.length,s=new Array(t),a=0;a<t;a++)s[a]=arguments[a];const l=e._def.args.safeParse(s,i);if(!l.success)throw new PE([n(s,l.error)]);const c=Reflect.apply(o,this,l.data),u=e._def.returns.safeParse(c,i);if(!u.success)throw new PE([r(c,u.error)]);return u.data}))}}parameters(){return this._def.args}returnType(){return this._def.returns}args(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return new EP({...this._def,args:bP.create(t).rest(cP.create())})}returns(e){return new EP({...this._def,returns:e})}implement(e){return this.parse(e)}strictImplement(e){return this.parse(e)}static create(e,t,n){return new EP({args:e||bP.create([]).rest(cP.create()),returns:t||cP.create(),typeName:UP.ZodFunction,...BE(n)})}}class PP extends UE{get schema(){return this._def.getter()}_parse(e){const{ctx:t}=this._processInputParams(e);return this._def.getter()._parse({data:t.data,path:t.path,parent:t})}}PP.create=(e,t)=>new PP({getter:e,typeName:UP.ZodLazy,...BE(t)});class CP extends UE{_parse(e){if(e.data!==this._def.value){const t=this._getOrReturnCtx(e);return IE(t,{received:t.data,code:EE.invalid_literal,expected:this._def.value}),TE}return{status:"valid",value:e.data}}get value(){return this._def.value}}function AP(e,t){return new kP({values:e,typeName:UP.ZodEnum,...BE(t)})}CP.create=(e,t)=>new CP({value:e,typeName:UP.ZodLiteral,...BE(t)});class kP extends UE{_parse(e){if("string"!==typeof e.data){const t=this._getOrReturnCtx(e),n=this._def.values;return IE(t,{expected:bE.joinValues(n),received:t.parsedType,code:EE.invalid_type}),TE}if(-1===this._def.values.indexOf(e.data)){const t=this._getOrReturnCtx(e),n=this._def.values;return IE(t,{received:t.data,code:EE.invalid_enum_value,options:n}),TE}return OE(e.data)}get options(){return this._def.values}get enum(){const e={};for(const t of this._def.values)e[t]=t;return e}get Values(){const e={};for(const t of this._def.values)e[t]=t;return e}get Enum(){const e={};for(const t of this._def.values)e[t]=t;return e}extract(e){return kP.create(e)}exclude(e){return kP.create(this.options.filter((t=>!e.includes(t))))}}kP.create=AP;class jP extends UE{_parse(e){const t=bE.getValidEnumValues(this._def.values),n=this._getOrReturnCtx(e);if(n.parsedType!==SE.string&&n.parsedType!==SE.number){const e=bE.objectValues(t);return IE(n,{expected:bE.joinValues(e),received:n.parsedType,code:EE.invalid_type}),TE}if(-1===t.indexOf(e.data)){const e=bE.objectValues(t);return IE(n,{received:n.data,code:EE.invalid_enum_value,options:e}),TE}return OE(e.data)}get enum(){return this._def.values}}jP.create=(e,t)=>new jP({values:e,typeName:UP.ZodNativeEnum,...BE(t)});class IP extends UE{unwrap(){return this._def.type}_parse(e){const{ctx:t}=this._processInputParams(e);if(t.parsedType!==SE.promise&&!1===t.common.async)return IE(t,{code:EE.invalid_type,expected:SE.promise,received:t.parsedType}),TE;const n=t.parsedType===SE.promise?t.data:Promise.resolve(t.data);return OE(n.then((e=>this._def.type.parseAsync(e,{path:t.path,errorMap:t.common.contextualErrorMap}))))}}IP.create=(e,t)=>new IP({type:e,typeName:UP.ZodPromise,...BE(t)});class GP extends UE{innerType(){return this._def.schema}sourceType(){return this._def.schema._def.typeName===UP.ZodEffects?this._def.schema.sourceType():this._def.schema}_parse(e){const{status:t,ctx:n}=this._processInputParams(e),r=this._def.effect||null,i={addIssue:e=>{IE(n,e),e.fatal?t.abort():t.dirty()},get path(){return n.path}};if(i.addIssue=i.addIssue.bind(i),"preprocess"===r.type){const e=r.transform(n.data,i);return n.common.issues.length?{status:"dirty",value:n.data}:n.common.async?Promise.resolve(e).then((e=>this._def.schema._parseAsync({data:e,path:n.path,parent:n}))):this._def.schema._parseSync({data:e,path:n.path,parent:n})}if("refinement"===r.type){const e=e=>{const t=r.refinement(e,i);if(n.common.async)return Promise.resolve(t);if(t instanceof Promise)throw new Error("Async refinement encountered during synchronous parse operation. Use .parseAsync instead.");return e};if(!1===n.common.async){const r=this._def.schema._parseSync({data:n.data,path:n.path,parent:n});return"aborted"===r.status?TE:("dirty"===r.status&&t.dirty(),e(r.value),{status:t.value,value:r.value})}return this._def.schema._parseAsync({data:n.data,path:n.path,parent:n}).then((n=>"aborted"===n.status?TE:("dirty"===n.status&&t.dirty(),e(n.value).then((()=>({status:t.value,value:n.value}))))))}if("transform"===r.type){if(!1===n.common.async){const e=this._def.schema._parseSync({data:n.data,path:n.path,parent:n});if(!NE(e))return e;const o=r.transform(e.value,i);if(o instanceof Promise)throw new Error("Asynchronous transform encountered during synchronous parse operation. Use .parseAsync instead.");return{status:t.value,value:o}}return this._def.schema._parseAsync({data:n.data,path:n.path,parent:n}).then((e=>NE(e)?Promise.resolve(r.transform(e.value,i)).then((e=>({status:t.value,value:e}))):e))}bE.assertNever(r)}}GP.create=(e,t,n)=>new GP({schema:e,typeName:UP.ZodEffects,effect:t,...BE(n)}),GP.createWithPreprocess=(e,t,n)=>new GP({schema:t,effect:{type:"preprocess",transform:e},typeName:UP.ZodEffects,...BE(n)});class TP extends UE{_parse(e){return this._getType(e)===SE.undefined?OE(void 0):this._def.innerType._parse(e)}unwrap(){return this._def.innerType}}TP.create=(e,t)=>new TP({innerType:e,typeName:UP.ZodOptional,...BE(t)});class MP extends UE{_parse(e){return this._getType(e)===SE.null?OE(null):this._def.innerType._parse(e)}unwrap(){return this._def.innerType}}MP.create=(e,t)=>new MP({innerType:e,typeName:UP.ZodNullable,...BE(t)});class OP extends UE{_parse(e){const{ctx:t}=this._processInputParams(e);let n=t.data;return t.parsedType===SE.undefined&&(n=this._def.defaultValue()),this._def.innerType._parse({data:n,path:t.path,parent:t})}removeDefault(){return this._def.innerType}}OP.create=(e,t)=>new OP({innerType:e,typeName:UP.ZodDefault,defaultValue:"function"===typeof t.default?t.default:()=>t.default,...BE(t)});class RP extends UE{_parse(e){const{ctx:t}=this._processInputParams(e),n={...t,common:{...t.common,issues:[]}},r=this._def.innerType._parse({data:n.data,path:n.path,parent:{...n}});return LE(r)?r.then((e=>({status:"valid",value:"valid"===e.status?e.value:this._def.catchValue({get error(){return new PE(n.common.issues)},input:n.data})}))):{status:"valid",value:"valid"===r.status?r.value:this._def.catchValue({get error(){return new PE(n.common.issues)},input:n.data})}}removeCatch(){return this._def.innerType}}RP.create=(e,t)=>new RP({innerType:e,typeName:UP.ZodCatch,catchValue:"function"===typeof t.catch?t.catch:()=>t.catch,...BE(t)});class DP extends UE{_parse(e){if(this._getType(e)!==SE.nan){const t=this._getOrReturnCtx(e);return IE(t,{code:EE.invalid_type,expected:SE.nan,received:t.parsedType}),TE}return{status:"valid",value:e.data}}}DP.create=e=>new DP({typeName:UP.ZodNaN,...BE(e)});const NP=Symbol("zod_brand");class LP extends UE{_parse(e){const{ctx:t}=this._processInputParams(e),n=t.data;return this._def.type._parse({data:n,path:t.path,parent:t})}unwrap(){return this._def.type}}class VP extends UE{_parse(e){const{status:t,ctx:n}=this._processInputParams(e);if(n.common.async){return(async()=>{const e=await this._def.in._parseAsync({data:n.data,path:n.path,parent:n});return"aborted"===e.status?TE:"dirty"===e.status?(t.dirty(),ME(e.value)):this._def.out._parseAsync({data:e.value,path:n.path,parent:n})})()}{const e=this._def.in._parseSync({data:n.data,path:n.path,parent:n});return"aborted"===e.status?TE:"dirty"===e.status?(t.dirty(),{status:"dirty",value:e.value}):this._def.out._parseSync({data:e.value,path:n.path,parent:n})}}static create(e,t){return new VP({in:e,out:t,typeName:UP.ZodPipeline})}}class FP extends UE{_parse(e){const t=this._def.innerType._parse(e);return NE(t)&&(t.value=Object.freeze(t.value)),t}}FP.create=(e,t)=>new FP({innerType:e,typeName:UP.ZodReadonly,...BE(t)});const zP=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2?arguments[2]:void 0;return e?lP.create().superRefine(((r,i)=>{var o,s;if(!e(r)){const e="function"===typeof t?t(r):"string"===typeof t?{message:t}:t,a=null===(s=null!==(o=e.fatal)&&void 0!==o?o:n)||void 0===s||s,l="string"===typeof e?{message:e}:e;i.addIssue({code:"custom",...l,fatal:a})}})):lP.create()},BP={object:fP.lazycreate};var UP;!function(e){e.ZodString="ZodString",e.ZodNumber="ZodNumber",e.ZodNaN="ZodNaN",e.ZodBigInt="ZodBigInt",e.ZodBoolean="ZodBoolean",e.ZodDate="ZodDate",e.ZodSymbol="ZodSymbol",e.ZodUndefined="ZodUndefined",e.ZodNull="ZodNull",e.ZodAny="ZodAny",e.ZodUnknown="ZodUnknown",e.ZodNever="ZodNever",e.ZodVoid="ZodVoid",e.ZodArray="ZodArray",e.ZodObject="ZodObject",e.ZodUnion="ZodUnion",e.ZodDiscriminatedUnion="ZodDiscriminatedUnion",e.ZodIntersection="ZodIntersection",e.ZodTuple="ZodTuple",e.ZodRecord="ZodRecord",e.ZodMap="ZodMap",e.ZodSet="ZodSet",e.ZodFunction="ZodFunction",e.ZodLazy="ZodLazy",e.ZodLiteral="ZodLiteral",e.ZodEnum="ZodEnum",e.ZodEffects="ZodEffects",e.ZodNativeEnum="ZodNativeEnum",e.ZodOptional="ZodOptional",e.ZodNullable="ZodNullable",e.ZodDefault="ZodDefault",e.ZodCatch="ZodCatch",e.ZodPromise="ZodPromise",e.ZodBranded="ZodBranded",e.ZodPipeline="ZodPipeline",e.ZodReadonly="ZodReadonly"}(UP||(UP={}));const WP=QE.create,HP=tP.create,qP=DP.create,XP=nP.create,YP=rP.create,KP=iP.create,ZP=oP.create,$P=sP.create,JP=aP.create,QP=lP.create,eC=cP.create,tC=uP.create,nC=dP.create,rC=hP.create,iC=fP.create,oC=fP.strictCreate,sC=gP.create,aC=yP.create,lC=_P.create,cC=bP.create,uC=xP.create,dC=SP.create,hC=wP.create,pC=EP.create,fC=PP.create,gC=CP.create,mC=kP.create,yC=jP.create,vC=IP.create,_C=GP.create,bC=TP.create,xC=MP.create,SC=GP.createWithPreprocess,wC=VP.create,EC={string:e=>QE.create({...e,coerce:!0}),number:e=>tP.create({...e,coerce:!0}),boolean:e=>rP.create({...e,coerce:!0}),bigint:e=>nP.create({...e,coerce:!0}),date:e=>iP.create({...e,coerce:!0})},PC=TE;var CC=Object.freeze({__proto__:null,defaultErrorMap:CE,setErrorMap:function(e){AE=e},getErrorMap:kE,makeIssue:jE,EMPTY_PATH:[],addIssueToContext:IE,ParseStatus:GE,INVALID:TE,DIRTY:ME,OK:OE,isAborted:RE,isDirty:DE,isValid:NE,isAsync:LE,get util(){return bE},get objectUtil(){return xE},ZodParsedType:SE,getParsedType:wE,ZodType:UE,ZodString:QE,ZodNumber:tP,ZodBigInt:nP,ZodBoolean:rP,ZodDate:iP,ZodSymbol:oP,ZodUndefined:sP,ZodNull:aP,ZodAny:lP,ZodUnknown:cP,ZodNever:uP,ZodVoid:dP,ZodArray:hP,ZodObject:fP,ZodUnion:gP,ZodDiscriminatedUnion:yP,ZodIntersection:_P,ZodTuple:bP,ZodRecord:xP,ZodMap:SP,ZodSet:wP,ZodFunction:EP,ZodLazy:PP,ZodLiteral:CP,ZodEnum:kP,ZodNativeEnum:jP,ZodPromise:IP,ZodEffects:GP,ZodTransformer:GP,ZodOptional:TP,ZodNullable:MP,ZodDefault:OP,ZodCatch:RP,ZodNaN:DP,BRAND:NP,ZodBranded:LP,ZodPipeline:VP,ZodReadonly:FP,custom:zP,Schema:UE,ZodSchema:UE,late:BP,get ZodFirstPartyTypeKind(){return UP},coerce:EC,any:QP,array:rC,bigint:XP,boolean:YP,date:KP,discriminatedUnion:aC,effect:_C,enum:mC,function:pC,instanceof:function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{message:"Input not instance of ".concat(e.name)};return zP((t=>t instanceof e),t)},intersection:lC,lazy:fC,literal:gC,map:dC,nan:qP,nativeEnum:yC,never:tC,null:JP,nullable:xC,number:HP,object:iC,oboolean:()=>YP().optional(),onumber:()=>HP().optional(),optional:bC,ostring:()=>WP().optional(),pipeline:wC,preprocess:SC,promise:vC,record:uC,set:hC,strictObject:oC,string:WP,symbol:ZP,transformer:_C,tuple:cC,undefined:$P,union:sC,unknown:eC,void:nC,NEVER:PC,ZodIssueCode:EE,quotelessJson:e=>JSON.stringify(e,null,2).replace(/"([^"]+)":/g,"$1:"),ZodError:PE});const AC=CC.object({by:CC.object({email:CC.string(),name:CC.string().optional()}),at:CC.date()});let kC=function(e){return e.ASSET="asset",e.INSPECTION="inspection",e.CAMPAIGN="campaign",e}({});const jC="globalSearch",IC=[{word:"rep",label:"Reports",icon:lE,goTo:"/inspections/reports"},{word:"new",label:"New inspection",icon:Na,goTo:"/inspections/new"},{word:"ong",label:"Ongoing inspections",icon:Nh,goTo:"/inspections/ongoing"},{word:"ass",label:"Assets (wind)",icon:sp,goTo:"/assets-wind"},{word:"ass",label:"Assets (solar)",icon:Qh,color:"rgba(255, 193, 7)",goTo:"/assets-solar"},{word:"up",label:"Upload",icon:Wh,goTo:"/uploader"},{word:"load",label:"Upload",icon:Wh,goTo:"/uploader"},{word:"exi",label:"Exit",icon:function(e){return ka({tag:"svg",attr:{version:"1.1",viewBox:"0 0 16 16"},child:[{tag:"path",attr:{d:"M12 10v-2h-5v-2h5v-2l3 3zM11 9v4h-5v3l-6-3v-13h11v5h-1v-4h-8l4 2v9h4v-3z"}}]})(e)},goTo:"/login"},{word:"hom",label:"Home/Dashboard",icon:ep,goTo:"/"},{word:"das",label:"Dashboard",icon:ep,goTo:"/"},{word:"def",label:"Defects (wind)",icon:uE,goTo:"/defects-wind"},{word:"def",label:"Defects (solar)",icon:uE,color:"rgba(255, 193, 7)",goTo:"/defects-solar"}],GC=(e,t)=>{const n=(r=t,IC.filter((e=>r.startsWith(e.word))));var r;if(null!==n&&void 0!==n&&n.length&&!e){const e=n.findIndex((e=>e.label.includes("solar")));-1!==e&&n.splice(e,1)}return n},TC=(e,t,n,r)=>{if("previousKeys"!==e){let o=JSON.parse(String(localStorage.getItem(jC)));const s=MC(e,t,o);if(-1===s&&r){var i;(null===(i=o)||void 0===i?void 0:i.length)>8&&o.pop(),o=o?[{type:e,value:r,item:t,secondId:n}].concat(o):[{type:e,value:r,item:t,secondId:n}],localStorage.setItem(jC,JSON.stringify(o))}else{const e={...o[s]};o.splice(s,1),o.unshift(e),localStorage.setItem(jC,JSON.stringify(o))}}},MC=(e,t,n)=>{if(n&&n.length)for(const[r,i]of n.entries())if(e===i.type){if(e===kC.INSPECTION&&i.item.id===t.id)return r;if(e===kC.ASSET&&i.item[0]===t[0])return r;if("special"===e&&i===t)return r}return-1};let OC=function(e){return e.DELETED="deleted",e.PLANNED="planned",e.INSPECTED="inspected",e.UPLOADED="uploaded",e.ANNOTATED="annotated",e.ANALYZED="analyzed",e.ONGOING_ANALYSIS="ongoingAnalysis",e}({}),RC=function(e){return e.WIND="Wind",e.BLADES="Blades",e.TOWER="Tower",e.SOLAR="Solar",e.SOLAR_CONSTRUCTION="SolarConstruction",e}({}),DC=function(e){return e.ANALYSIS_DONE="2f5f2da3-86cc-4dbe-be16-cc0a9f300112",e}({}),NC=function(e){return e.PENDING="e31e7885-4fea-4e61-b523-bfb92e5c14a4",e.REVIEWED="878e0a27-4dcb-43c1-963b-a60de56840a9",e}({}),LC=function(e){return e.COMPLETE="Complete",e.POLYGONS="Polygons already exist",e.ERROR="Error",e.PROCESSING="Processing...",e.DONE="Done, waiting for review",e.DETECTED="Boxes already exist",e.PENDING="No ai status yet",e.REJECTED="Rejected",e.NOT_SOLAR="Not a solar inspection",e.REVIEWING="Reviewing",e}({}),VC=function(e){return e.PENDING="pending",e.DETECTED="detected",e.POLYGONS="polygons",e.PROCESSING="processing",e.DONE="done",e.REVIEWING="reviewing",e.COMPLETE="complete",e.DECLINED="declined",e.ERROR="error",e.REJECTED="rejected",e.NOT_SOLAR="not_solar",e.NOT_AVAILABLE="not_available",e.ONGOING="ongoing",e}({}),FC=function(e){return e.COMPLETE="green",e.POLYGONS="orange",e.ERROR="red",e.PROCESSING="orange",e.REVIEWING="#00A6FF",e.NOT_AVAILABLE="#9e9e9e",e.DETECTED="orange",e.REJECTED="red",e.PENDING="orange",e.DECLINED="#9e9e9e",e.ONGOING="orange",e}({});let zC=function(e){return e.AI_DEFECT="AI DEFECT",e.AI_NON_DEFECT="AI NON DEFECT",e.AI_SEGMENTATION_ISSUE="AI SEGMENTATION ISSUE",e}({});var BC=__webpack_require__(99800),UC=__webpack_require__(66664),WC=__webpack_require__(79365),HC=__webpack_require__(9172),qC=__webpack_require__(10852);const XC=(0,vv.c)((0,Ae.jsx)("path",{d:"M12 2C6.47 2 2 6.47 2 12s4.47 10 10 10 10-4.47 10-10S17.53 2 12 2zm5 13.59L15.59 17 12 13.41 8.41 17 7 15.59 10.59 12 7 8.41 8.41 7 12 10.59 15.59 7 17 8.41 13.41 12 17 15.59z"}),"Cancel");function YC(e){return(0,hs.c)("MuiChip",e)}const KC=(0,ds.c)("MuiChip",["root","sizeSmall","sizeMedium","colorError","colorInfo","colorPrimary","colorSecondary","colorSuccess","colorWarning","disabled","clickable","clickableColorPrimary","clickableColorSecondary","deletable","deletableColorPrimary","deletableColorSecondary","outlined","filled","outlinedPrimary","outlinedSecondary","filledPrimary","filledSecondary","avatar","avatarSmall","avatarMedium","avatarColorPrimary","avatarColorSecondary","icon","iconSmall","iconMedium","iconColorPrimary","iconColorSecondary","label","labelSmall","labelMedium","deleteIcon","deleteIconSmall","deleteIconMedium","deleteIconColorPrimary","deleteIconColorSecondary","deleteIconOutlinedColorPrimary","deleteIconOutlinedColorSecondary","deleteIconFilledColorPrimary","deleteIconFilledColorSecondary","focusVisible"]),ZC=["avatar","className","clickable","color","component","deleteIcon","disabled","icon","label","onClick","onDelete","onKeyDown","onKeyUp","size","variant","tabIndex","skipFocusWhenDisabled"],$C=(0,cs.cp)("div",{name:"MuiChip",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e,{color:r,iconColor:i,clickable:o,onDelete:s,size:a,variant:l}=n;return[{["& .".concat(KC.avatar)]:t.avatar},{["& .".concat(KC.avatar)]:t["avatar".concat((0,ha.c)(a))]},{["& .".concat(KC.avatar)]:t["avatarColor".concat((0,ha.c)(r))]},{["& .".concat(KC.icon)]:t.icon},{["& .".concat(KC.icon)]:t["icon".concat((0,ha.c)(a))]},{["& .".concat(KC.icon)]:t["iconColor".concat((0,ha.c)(i))]},{["& .".concat(KC.deleteIcon)]:t.deleteIcon},{["& .".concat(KC.deleteIcon)]:t["deleteIcon".concat((0,ha.c)(a))]},{["& .".concat(KC.deleteIcon)]:t["deleteIconColor".concat((0,ha.c)(r))]},{["& .".concat(KC.deleteIcon)]:t["deleteIcon".concat((0,ha.c)(l),"Color").concat((0,ha.c)(r))]},t.root,t["size".concat((0,ha.c)(a))],t["color".concat((0,ha.c)(r))],o&&t.clickable,o&&"default"!==r&&t["clickableColor".concat((0,ha.c)(r),")")],s&&t.deletable,s&&"default"!==r&&t["deletableColor".concat((0,ha.c)(r))],t[l],t["".concat(l).concat((0,ha.c)(r))]]}})((e=>{let{theme:t,ownerState:n}=e;const r=(0,Ps.W4)(t.palette.text.primary,.26),i="light"===t.palette.mode?t.palette.grey[700]:t.palette.grey[300];return(0,d.c)({maxWidth:"100%",fontFamily:t.typography.fontFamily,fontSize:t.typography.pxToRem(13),display:"inline-flex",alignItems:"center",justifyContent:"center",height:32,color:(t.vars||t).palette.text.primary,backgroundColor:(t.vars||t).palette.action.selected,borderRadius:16,whiteSpace:"nowrap",transition:t.transitions.create(["background-color","box-shadow"]),cursor:"default",outline:0,textDecoration:"none",border:0,padding:0,verticalAlign:"middle",boxSizing:"border-box",["&.".concat(KC.disabled)]:{opacity:(t.vars||t).palette.action.disabledOpacity,pointerEvents:"none"},["& .".concat(KC.avatar)]:{marginLeft:5,marginRight:-6,width:24,height:24,color:t.vars?t.vars.palette.Chip.defaultAvatarColor:i,fontSize:t.typography.pxToRem(12)},["& .".concat(KC.avatarColorPrimary)]:{color:(t.vars||t).palette.primary.contrastText,backgroundColor:(t.vars||t).palette.primary.dark},["& .".concat(KC.avatarColorSecondary)]:{color:(t.vars||t).palette.secondary.contrastText,backgroundColor:(t.vars||t).palette.secondary.dark},["& .".concat(KC.avatarSmall)]:{marginLeft:4,marginRight:-4,width:18,height:18,fontSize:t.typography.pxToRem(10)},["& .".concat(KC.icon)]:(0,d.c)({marginLeft:5,marginRight:-6},"small"===n.size&&{fontSize:18,marginLeft:4,marginRight:-4},n.iconColor===n.color&&(0,d.c)({color:t.vars?t.vars.palette.Chip.defaultIconColor:i},"default"!==n.color&&{color:"inherit"})),["& .".concat(KC.deleteIcon)]:(0,d.c)({WebkitTapHighlightColor:"transparent",color:t.vars?"rgba(".concat(t.vars.palette.text.primaryChannel," / 0.26)"):r,fontSize:22,cursor:"pointer",margin:"0 5px 0 -6px","&:hover":{color:t.vars?"rgba(".concat(t.vars.palette.text.primaryChannel," / 0.4)"):(0,Ps.W4)(r,.4)}},"small"===n.size&&{fontSize:16,marginRight:4,marginLeft:-4},"default"!==n.color&&{color:t.vars?"rgba(".concat(t.vars.palette[n.color].contrastTextChannel," / 0.7)"):(0,Ps.W4)(t.palette[n.color].contrastText,.7),"&:hover, &:active":{color:(t.vars||t).palette[n.color].contrastText}})},"small"===n.size&&{height:24},"default"!==n.color&&{backgroundColor:(t.vars||t).palette[n.color].main,color:(t.vars||t).palette[n.color].contrastText},n.onDelete&&{["&.".concat(KC.focusVisible)]:{backgroundColor:t.vars?"rgba(".concat(t.vars.palette.action.selectedChannel," / calc(").concat(t.vars.palette.action.selectedOpacity+t.vars.palette.action.focusOpacity,"))"):(0,Ps.W4)(t.palette.action.selected,t.palette.action.selectedOpacity+t.palette.action.focusOpacity)}},n.onDelete&&"default"!==n.color&&{["&.".concat(KC.focusVisible)]:{backgroundColor:(t.vars||t).palette[n.color].dark}})}),(e=>{let{theme:t,ownerState:n}=e;return(0,d.c)({},n.clickable&&{userSelect:"none",WebkitTapHighlightColor:"transparent",cursor:"pointer","&:hover":{backgroundColor:t.vars?"rgba(".concat(t.vars.palette.action.selectedChannel," / calc(").concat(t.vars.palette.action.selectedOpacity+t.vars.palette.action.hoverOpacity,"))"):(0,Ps.W4)(t.palette.action.selected,t.palette.action.selectedOpacity+t.palette.action.hoverOpacity)},["&.".concat(KC.focusVisible)]:{backgroundColor:t.vars?"rgba(".concat(t.vars.palette.action.selectedChannel," / calc(").concat(t.vars.palette.action.selectedOpacity+t.vars.palette.action.focusOpacity,"))"):(0,Ps.W4)(t.palette.action.selected,t.palette.action.selectedOpacity+t.palette.action.focusOpacity)},"&:active":{boxShadow:(t.vars||t).shadows[1]}},n.clickable&&"default"!==n.color&&{["&:hover, &.".concat(KC.focusVisible)]:{backgroundColor:(t.vars||t).palette[n.color].dark}})}),(e=>{let{theme:t,ownerState:n}=e;return(0,d.c)({},"outlined"===n.variant&&{backgroundColor:"transparent",border:t.vars?"1px solid ".concat(t.vars.palette.Chip.defaultBorder):"1px solid ".concat("light"===t.palette.mode?t.palette.grey[400]:t.palette.grey[700]),["&.".concat(KC.clickable,":hover")]:{backgroundColor:(t.vars||t).palette.action.hover},["&.".concat(KC.focusVisible)]:{backgroundColor:(t.vars||t).palette.action.focus},["& .".concat(KC.avatar)]:{marginLeft:4},["& .".concat(KC.avatarSmall)]:{marginLeft:2},["& .".concat(KC.icon)]:{marginLeft:4},["& .".concat(KC.iconSmall)]:{marginLeft:2},["& .".concat(KC.deleteIcon)]:{marginRight:5},["& .".concat(KC.deleteIconSmall)]:{marginRight:3}},"outlined"===n.variant&&"default"!==n.color&&{color:(t.vars||t).palette[n.color].main,border:"1px solid ".concat(t.vars?"rgba(".concat(t.vars.palette[n.color].mainChannel," / 0.7)"):(0,Ps.W4)(t.palette[n.color].main,.7)),["&.".concat(KC.clickable,":hover")]:{backgroundColor:t.vars?"rgba(".concat(t.vars.palette[n.color].mainChannel," / ").concat(t.vars.palette.action.hoverOpacity,")"):(0,Ps.W4)(t.palette[n.color].main,t.palette.action.hoverOpacity)},["&.".concat(KC.focusVisible)]:{backgroundColor:t.vars?"rgba(".concat(t.vars.palette[n.color].mainChannel," / ").concat(t.vars.palette.action.focusOpacity,")"):(0,Ps.W4)(t.palette[n.color].main,t.palette.action.focusOpacity)},["& .".concat(KC.deleteIcon)]:{color:t.vars?"rgba(".concat(t.vars.palette[n.color].mainChannel," / 0.7)"):(0,Ps.W4)(t.palette[n.color].main,.7),"&:hover, &:active":{color:(t.vars||t).palette[n.color].main}}})})),JC=(0,cs.cp)("span",{name:"MuiChip",slot:"Label",overridesResolver:(e,t)=>{const{ownerState:n}=e,{size:r}=n;return[t.label,t["label".concat((0,ha.c)(r))]]}})((e=>{let{ownerState:t}=e;return(0,d.c)({overflow:"hidden",textOverflow:"ellipsis",paddingLeft:12,paddingRight:12,whiteSpace:"nowrap"},"small"===t.size&&{paddingLeft:8,paddingRight:8})}));function QC(e){return"Backspace"===e.key||"Delete"===e.key}const eA=n.forwardRef((function(e,t){const r=(0,Oe.c)({props:e,name:"MuiChip"}),{avatar:i,className:o,clickable:s,color:a="default",component:l,deleteIcon:c,disabled:u=!1,icon:h,label:p,onClick:f,onDelete:g,onKeyDown:m,onKeyUp:y,size:v="medium",variant:_="filled",tabIndex:b,skipFocusWhenDisabled:x=!1}=r,S=(0,Tt.c)(r,ZC),w=n.useRef(null),E=(0,Cs.c)(w,t),P=e=>{e.stopPropagation(),g&&g(e)},C=!(!1===s||!f)||s,A=C||g?da:l||"div",k=(0,d.c)({},r,{component:A,disabled:u,size:v,color:a,iconColor:n.isValidElement(h)&&h.props.color||a,onDelete:!!g,clickable:C,variant:_}),j=(e=>{const{classes:t,disabled:n,size:r,color:i,iconColor:o,onDelete:s,clickable:a,variant:l}=e,c={root:["root",l,n&&"disabled","size".concat((0,ha.c)(r)),"color".concat((0,ha.c)(i)),a&&"clickable",a&&"clickableColor".concat((0,ha.c)(i)),s&&"deletable",s&&"deletableColor".concat((0,ha.c)(i)),"".concat(l).concat((0,ha.c)(i))],label:["label","label".concat((0,ha.c)(r))],avatar:["avatar","avatar".concat((0,ha.c)(r)),"avatarColor".concat((0,ha.c)(i))],icon:["icon","icon".concat((0,ha.c)(r)),"iconColor".concat((0,ha.c)(o))],deleteIcon:["deleteIcon","deleteIcon".concat((0,ha.c)(r)),"deleteIconColor".concat((0,ha.c)(i)),"deleteIcon".concat((0,ha.c)(l),"Color").concat((0,ha.c)(i))]};return(0,ls.c)(c,YC,t)})(k),I=A===da?(0,d.c)({component:l||"div",focusVisibleClassName:j.focusVisible},g&&{disableRipple:!0}):{};let G=null;g&&(G=c&&n.isValidElement(c)?n.cloneElement(c,{className:(0,ts.c)(c.props.className,j.deleteIcon),onClick:P}):(0,Ae.jsx)(XC,{className:(0,ts.c)(j.deleteIcon),onClick:P}));let T=null;i&&n.isValidElement(i)&&(T=n.cloneElement(i,{className:(0,ts.c)(j.avatar,i.props.className)}));let M=null;return h&&n.isValidElement(h)&&(M=n.cloneElement(h,{className:(0,ts.c)(j.icon,h.props.className)})),(0,Ae.jsxs)($C,(0,d.c)({as:A,className:(0,ts.c)(j.root,o),disabled:!(!C||!u)||void 0,onClick:f,onKeyDown:e=>{e.currentTarget===e.target&&QC(e)&&e.preventDefault(),m&&m(e)},onKeyUp:e=>{e.currentTarget===e.target&&(g&&QC(e)?g(e):"Escape"===e.key&&w.current&&w.current.blur()),y&&y(e)},ref:E,tabIndex:x&&u?-1:b,ownerState:k},I,S,{children:[T||M,(0,Ae.jsx)(JC,{className:(0,ts.c)(j.label),ownerState:k,children:p}),G]}))})),tA=eA,nA=e=>{const t=$o(tA,(()=>({root:{color:"white",backgroundColor:"".concat(e.color," !important"),"&:hover":{backgroundColor:e.color,filter:"brightness(120%)"},"&:active":{boxShadow:"none",backgroundColor:e.color,borderColor:e.color},"& .MuiChip-labelSmall":{padding:e.small?0:"inital"}},outlined:{color:e.color,border:"1px solid ".concat(e.color),backgroundColor:"transparent !important"},icon:{color:"outlined"===e.variant?e.color:"white"},deleteIcon:{color:"outlined"===e.variant?e.color:"white"}})));return(0,Ae.jsx)(t,{label:e.label,size:e.small?"small":void 0})};function rA(e){return ka({tag:"svg",attr:{viewBox:"0 0 15 15",fill:"none"},child:[{tag:"path",attr:{fillRule:"evenodd",clipRule:"evenodd",d:"M0.877075 7.49972C0.877075 3.84204 3.84222 0.876892 7.49991 0.876892C11.1576 0.876892 14.1227 3.84204 14.1227 7.49972C14.1227 11.1574 11.1576 14.1226 7.49991 14.1226C3.84222 14.1226 0.877075 11.1574 0.877075 7.49972ZM7.49991 1.82689C4.36689 1.82689 1.82708 4.36671 1.82708 7.49972C1.82708 10.6327 4.36689 13.1726 7.49991 13.1726C10.6329 13.1726 13.1727 10.6327 13.1727 7.49972C13.1727 4.36671 10.6329 1.82689 7.49991 1.82689ZM8.24993 10.5C8.24993 10.9142 7.91414 11.25 7.49993 11.25C7.08571 11.25 6.74993 10.9142 6.74993 10.5C6.74993 10.0858 7.08571 9.75 7.49993 9.75C7.91414 9.75 8.24993 10.0858 8.24993 10.5ZM6.05003 6.25C6.05003 5.57211 6.63511 4.925 7.50003 4.925C8.36496 4.925 8.95003 5.57211 8.95003 6.25C8.95003 6.74118 8.68002 6.99212 8.21447 7.27494C8.16251 7.30651 8.10258 7.34131 8.03847 7.37854L8.03841 7.37858C7.85521 7.48497 7.63788 7.61119 7.47449 7.73849C7.23214 7.92732 6.95003 8.23198 6.95003 8.7C6.95004 9.00376 7.19628 9.25 7.50004 9.25C7.8024 9.25 8.04778 9.00601 8.05002 8.70417L8.05056 8.7033C8.05924 8.6896 8.08493 8.65735 8.15058 8.6062C8.25207 8.52712 8.36508 8.46163 8.51567 8.37436L8.51571 8.37433C8.59422 8.32883 8.68296 8.27741 8.78559 8.21506C9.32004 7.89038 10.05 7.35382 10.05 6.25C10.05 4.92789 8.93511 3.825 7.50003 3.825C6.06496 3.825 4.95003 4.92789 4.95003 6.25C4.95003 6.55376 5.19628 6.8 5.50003 6.8C5.80379 6.8 6.05003 6.55376 6.05003 6.25Z",fill:"currentColor"}}]})(e)}let iA=function(e){return e.FOUNDATION="FOUNDATION",e.PILE="PILE",e.MODULE="MODULE",e.TABLE="TABLE",e}({});const oA=Object.freeze({[iA.FOUNDATION]:{label:"Number of foundations"},[iA.PILE]:{label:"Number of piles"},[iA.MODULE]:{label:"Number of modules"},[iA.TABLE]:{label:"Number of tables"}});let sA=function(e){return e.FOUNDATION="FOUNDATION",e.PILE="PILE",e.MODULE="MODULE",e.TABLE="TABLE",e}({}),aA=function(e){return e.NOTE="NOTE",e.DEVIATION_FROM_PLANS="DEVIATION_FROM_PLANS",e.DAMAGE="DAMAGE",e.STORAGE_ISSUE="STORAGE_ISSUE",e.FIELD_ISSUE="FIELD_ISSUE",e}({}),lA=function(e){return e.NOTE="Note",e.DEVIATION_FROM_PLANS="Deviation from plans",e.DAMAGE="Damage",e.STORAGE_ISSUE="Storage issue",e.FIELD_ISSUE="Field issue",e}({}),cA=function(e){return e.STAMPS="stamps",e.MEASUREMENTS="measurements",e.ANNOTATIONS="annotations",e.ITEMS="items",e}({}),uA=function(e){return e.MAP="map",e.LIST="list",e.STATS="stats",e}({}),dA=function(e){return e.DETAILS="details",e.COMPARISON="comparison",e}({}),hA=function(e){return e.PENDING="PENDING",e.PENDING_DOWNLOAD_ORIGINAL="PENDING_DOWNLOAD_ORIGINAL",e.PENDING_OPEN_FILE="PENDING_OPEN_FILE",e.PENDING_TRANSFORM_EPSG="PENDING_TRANSFORM_EPSG",e.PENDING_CREATE_OVERVIEW="PENDING_CREATE_OVERVIEW",e.PENDING_TRANSFORM_COG="PENDING_TRANSFORM_COG",e.PENDING_UPLOADING_FILE="PENDING_UPLOADING_FILE",e.DONE="DONE",e.ERROR="ERROR",e}({}),pA=function(e){return e.STAMPS="STAMPS",e.ANNOTATIONS="ANNOTATIONS",e.MEASUREMENTS="MEASUREMENTS",e}({});const fA=[{dbStatus:[VC.PENDING,VC.POLYGONS,VC.PROCESSING,VC.ONGOING,VC.DONE,hA.PENDING,hA.PENDING_DOWNLOAD_ORIGINAL,hA.PENDING_OPEN_FILE,hA.PENDING_TRANSFORM_EPSG,hA.PENDING_CREATE_OVERVIEW,hA.PENDING_TRANSFORM_COG,hA.PENDING_UPLOADING_FILE],text:"Pending",color:FC.PENDING,icon:(0,Ae.jsx)(UC.c,{})},{dbStatus:[VC.REJECTED],text:"Unavailable",color:FC.REJECTED,icon:(0,Ae.jsx)(WC.c,{})},{dbStatus:[VC.ERROR,VC.NOT_SOLAR,hA.ERROR],text:"Error",color:FC.ERROR,icon:(0,Ae.jsx)(WC.c,{})},{dbStatus:[VC.COMPLETE,hA.DONE],text:"Complete",color:FC.COMPLETE,icon:(0,Ae.jsx)(BC.c,{})},{dbStatus:[VC.DECLINED],text:"Declined",color:FC.DECLINED,icon:(0,Ae.jsx)(HC.c,{})},{dbStatus:[VC.NOT_AVAILABLE],text:"Not available",color:FC.NOT_AVAILABLE,icon:(0,Ae.jsx)(HC.c,{})},{dbStatus:[VC.REVIEWING],text:"Reviewing",color:FC.REVIEWING,icon:(0,Ae.jsx)(qC.c,{})}],gA=Zo()((()=>({small:{width:"1.2rem",height:"1.2rem",padding:0,margin:0,borderRadius:"50%",color:"white","& div":{height:"1rem"},"& svg":{fontSize:"1rem"}}}))),mA=e=>{const{classes:t}=gA(),{text:r,color:i,icon:o}=(0,n.useMemo)((()=>{const t=fA.find((t=>t.dbStatus.includes(e.status)));return t?{text:t.text,color:t.color,icon:t.icon}:{color:"red",text:"Error",icon:(0,Ae.jsx)(WC.c,{})}}),[e.status]),s=(0,n.useMemo)((()=>e.tooltipMessage?e.tooltipMessage:e.status===VC.REJECTED?"Rejected - AI not available for this inspection":"AI is ".concat(r.toLocaleLowerCase())),[e.tooltipMessage,r]),a=(0,n.useCallback)((()=>(0,Ae.jsx)(ws,{container:!0,justifyContent:"center",alignItems:"center",className:t.small,bgcolor:i,children:(0,Ae.jsx)(ws,{item:!0,children:o})})),[e.status,i]);return(0,Ae.jsxs)(wp,{height:"100%",display:"flex",justifyContent:"center",alignItems:"center",gap:"0.5rem",children:[e.small?(0,Ae.jsx)(cu,{title:e.withTooltip?s:void 0,children:(0,Ae.jsx)("span",{children:(0,Ae.jsx)(a,{})})}):(0,Ae.jsx)(nA,{color:i,label:e.small?o:r}),e.withTooltip&&!e.small&&(0,Ae.jsx)(cu,{title:s,children:(0,Ae.jsx)(wp,{height:"100%",display:"flex",justifyContent:"center",alignItems:"center",children:(0,Ae.jsx)(rA,{style:{color:jp},size:25})})})]})},yA=e=>{const{text:t}=e;return t?(0,Ae.jsx)("span",{children:t.split(" ").map(((e,t)=>e.match(/(https?:\/\/[^\s]+)/g)?(0,Ae.jsxs)(Ae.Fragment,{children:[(0,Ae.jsx)("a",{href:e.replace("(","").replace(")",""),target:"_blank",rel:"noreferrer",children:e},t),(0,Ae.jsx)("span",{children:" "})]}):e+" "))}):(0,Ae.jsx)(Ae.Fragment,{})},vA=Zo()((()=>({topCard:{borderRadius:"0.2rem",marginBottom:"1rem","& .MuiAccordionSummary-expandIconWrapper":{position:"absolute",right:"0.8rem",top:"1rem"}},card:{paddingBottom:"0.4rem"},inspection:{padding:"0.6rem",border:"1px solid #FAFAFA",cursor:"pointer",alignItems:"center","&:hover":{backgroundColor:"#f6f6f6"}},alignContent:{display:"flex",alignItems:"center"},header:{padding:" 1.2rem 0.8rem",color:jp,height:"5rem"},expand:{color:jp},headerTitle:{position:"absolute",left:"1.3rem",top:"1.1rem",fontSize:"1.1rem",display:"inline-flex",alignItems:"center",gap:"0.2rem"},assetTitle:{maxWidth:"13rem",overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis"},linkAsset:{fontSize:"1.2rem",marginLeft:"0.5rem"},contentTitle:{position:"absolute",right:"2.6rem",top:"1.3rem",fontSize:"0.9rem"},contentNb:{position:"absolute",left:"1.3rem",top:"2.8rem",fontSize:"0.9rem",color:Gp,opacity:.5,marginTop:"0.5rem"},textFormat:{fontSize:"1rem"},content:{display:"contents"},icons:{cursor:"default !important"},midSection:{textAlign:"center"},infoSection:{paddingTop:4},topIcons:{marginTop:0},topRoot:{},iconDown:{paddingRight:"0.1rem",verticalAlign:"bottom"},iconBtn:{color:jp},iconTower:{height:"1.2rem",width:"0.5rem",marginLeft:"0.4rem",marginRight:"0.25rem",paddingRight:"0.1rem"},upload:{cursor:"pointer",float:"right"},headerAction:{position:"absolute",right:10,fontSize:"1rem",color:"rgba(0, 0, 0, 0.87)",alignItems:"center",fontWeight:500,cursor:"pointer",zIndex:5,marginTop:-5},deleteAll:{marginRight:"0.8rem",color:"#EB5757",cursor:"pointer",marginLeft:"0.25rem"},delete:{fontSize:"1.2rem",color:"rgba(0, 0, 0, 0.54)",marginLeft:"0.1rem"},label:{marginLeft:"unset",marginRight:"unset"},dateChange:{marginLeft:15},moreButton:{padding:0}}))),_A=$o(cu,{tooltip:{backgroundColor:"#FAFAFA",color:"rgba(0, 0, 0, 0.87)",fontSize:14,fontWeight:"normal",outline:"solid",outlineColor:jp,boxShadow:"0.15rem 0.15rem 0.1rem 0.1rem lightgrey"}}),bA=e=>{const{classes:t}=vA(),r=on(),[i,o]=(0,n.useState)(!1),[s,a]=(0,n.useState)(!1),[l,c]=(0,n.useState)(0===e.index),[u,d]=(0,n.useState)(null),[h,p]=(0,n.useState)(null),[f,g]=(0,n.useState)(null);(0,n.useEffect)((()=>{d(null),p(null),g(null)}),[e.content]);const m=e=>{const t=/wind: \s*(.*?)\s*m\/s/g.exec(e);return t&&t.length>1?t[1]:""},y=e=>((e,t)=>{if("Weather not available yet"===e)return"grey";if("Solar"!==t){if("0"===(e=>{const t=/rain: \s*(.*?)\s*mm\/hr/g.exec(e);return t&&t.length>1?t[1]:""})(e)&&parseInt(m(e),10)<10&&parseInt((e=>{const t=/wind gust: \s*(.*?)\s*m\/s/g.exec(e);return t&&t.length>1?t[1]:""})(e),10)<10)return"green";if(parseInt(m(e),10)>10)return"red"}return"orange"})(e.weather,e.type),v={Blades:(0,Ae.jsx)(pp,{className:t.iconDown,size:"18px"}),Tower:(0,Ae.jsx)("img",{src:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAC0AAACOCAYAAAClkoHaAAAABHNCSVQICAgIfAhkiAAABZVJREFUeJztXFlO8zAYnCxd6EJLk4AqwcEQd+AQ3IULcBFeeUYgISil6UK6Jfkffozaxmlsx3ZS1JH6UCvEo2G+zxM3CcCA2WwWA/j91Ov12HXdrTHWT6PR2Po+Ho9jFg6bsFkOGo1GW9/n8znm8znvXACA7+/vre+fn5/c5zBZDvr6+uI+MSs+Pj64/+YgSTPZI420aZro9/twHAeu68J1XXieh16vB9d14TgOHMeB53m4u7vDw8ND8aSvr69xf39vvL6+Zp7j9vaWWnCDwYCFwhaY7LFbiARnZ2fME7muSx1X5unhcEgdl0Fau9Ldbpd5ovPzc+q4MtJpnu71eswTeZ5HHVdmDxlKa7dHmtIySL+/vzOfgyBXITqOwzyR4zgwzeR0vu9juVxy5Q9tStu2bdC6TRzH3PlDm6cBeb06k/RisYh3kxkAVCoVtFotrslkdZBM0vusYZqmwTOZrA6SSTrNGp1Oh2siQKPSaZ2DZ2EhSCMtXek0e/DkDoK0Fllq0trs4fs+dZy33QEaC1GHp7W2PF5oU1qXp6MoYs4fwn1aROlWq2WcnJwkxlerFcbjMfN5tHoakNOrhZUWsQcgJzRp9TRQsNIi2QOQo/TezZrVahVXq9XEuGma0klLU3o0GiGOk52o0+nAsiyuWEogY4HZS1q2nwFNStMg0qMJlCstu90BGpSWsYe3i6OnaVBhj16vB8uyEuO+72OxWDCFJiHSoj0aSN+0AdjVFvK0aFgiyGsR7Z4G8hfj3yOtohABxfZQUYiAYqVl7EvTkFfp1GgahiE1lhqGoUzp3PYYj8cIwzAx3mq1UKlUhGIpQd4LgVTSqjoHoFBpFbGUQLvSeVdDYL/SLJs2hdij0WgYzWYzMb5er1P/w5sohDSQr+1xk5bhaSDfAlNIIQKKSKuKpQRK7KEqLBEoUfpYiBQcZCEqUVp1IebJH6mkZf4UR4PMu8cAAJPJZN/NrVIwGAyoc7TbbbHsobpzkHPZdvIaZDKZIAiCvcSppFUXIQBYlmWk1UeWr6mkVWw80iDaQQqzByDeq7nscVQakpVWvYQTiC4wpbSHVKWP9sCxENWHJQKZtyej3+9Tw8zLy4u0wAQA8/mcOo9lWXEYhnxz1et16sl+HoeSip9Ul/j8pEAqEvYIgiCmPeJUrVbRbDZz7ZbSIGKRBGldnYNAZIFJkNYRSzchssAkSKu+NtyFFHvoWsIJRHo1s6dVkf5ThcildFkKkUtp3YWoVOljIW5AaSGqIt3tdlGpVBLjs9kMaVmH2R55f1pOg2maBu8DDoUXIsCfPwq3B8CfP7Z2AJfLJfXOA8uy0G63JdCjI5fS+xYW3ue0eMCr9BZp3Us4AW/bYyKtsggB/gXm7yqtsnMAipQuNWndsZTgIAvRdV0YRrKjDodDrNfrRP4oRSHWajXj9PQ0MR5FETVWlMLTAJ9Ftkjr2nikgacYS2EPIIfSRcRSAulKl83Tv9E0DMOYdtkj44ZYFggp7fs+oihKHNBut2HbtrJYSiDk6aIWFgKeC4FM0jr8DPBdCGSS1tHuAEGliwpLBEJKF9mjAaDb7Rq0i+ogCDCdTrdCU2k8DbCrnWmPMpDe9XVpPA2wLzCZni610mXwNLfSZSCdpvTuy6VK5Wnu7lF09gDY7WEDQBRF1N1SQN1mOg1chTidTrFerxMHNxoN1Go15bGUgKsQi17CCVhDkwmUYzUE/j/nmLZps1qtfvOHCRQfSwmq1apBq6E4jrfcUCqlAba3cpbK0wBbB9mrtM52R8DSQQ5G6c23cppAsXt4u2DeSri5uRF61bjOz+Zblfe2vDIh4WmWR0SLxmY8PVylD5K053m4uLgojFAWrq6ucHl5mX5AEATx29tb/PT0JP0OXlY8Pj7Gz8/PSu4iPuKIMuIf+2UUIhU0l80AAAAASUVORK5CYII=",className:t.iconTower,alt:"Tower inspection"}),Solar:(0,Ae.jsx)(Qh,{className:t.iconDown,size:"18px"})},_=n=>e.status===OC.PLANNED?(e=>{let n=e.weather?(0,Ae.jsx)(_A,{title:e.weather,placement:"top",children:(0,Ae.jsx)(Pu,{className:t.label,control:(0,Ae.jsx)(sp,{style:{marginRight:5},color:y(e)}),label:""})}):(0,Ae.jsx)(Ae.Fragment,{});var r;return n=e.legislation?(0,Ae.jsxs)(Ae.Fragment,{children:[n,(0,Ae.jsx)(_A,{title:(0,Ae.jsx)(yA,{text:e.legislation}),placement:"top",children:(0,Ae.jsx)(Pu,{className:t.label,label:"",control:(0,Ae.jsx)(Vh,{style:{marginRight:5},color:(r=e.legislation,"Clear to fly"===r?"green":"Legislation not available yet"===r?"grey":"orange")})})})]}):n,(0,Ae.jsx)("span",{className:t.icons,onClick:e=>e.stopPropagation(),children:n})})(n):n.info,b=e=>{let t="",n="";return e.flaggedCount&&(t=" Tagged pictures: ".concat(e.flaggedCount)),e.notes&&(n="Notes: ".concat(e.notes)),(0,Ae.jsxs)("div",{children:[!!n&&n,t&&(0,Ae.jsxs)("div",{children:[(0,Ae.jsx)(Xh,{color:"#ffc107"}),t]})]})},x=e=>(0,Ae.jsx)(_A,{title:b(e),placement:"top",children:(0,Ae.jsx)(Pu,{className:t.label,onClick:e=>e.stopPropagation(),control:(0,Ae.jsx)(dp,{style:{marginBottom:4,cursor:"default"}}),label:""})}),S=(e,t)=>{return t&&(n=t,Object.values(VC).includes(n))?t:e?VC.COMPLETE:null;var n};return(0,Ae.jsx)("div",{className:t.card,children:(0,Ae.jsxs)(Ph,{expanded:l,className:t.topCard,id:"OngoingCard",children:[(0,Ae.jsxs)(Th,{onClick:()=>c(!l),expandIcon:(0,Ae.jsx)(cp.c,{className:t.iconBtn}),className:t.header,children:[(0,Ae.jsxs)("div",{style:{width:"100%",marginTop:-20},children:[(0,Ae.jsxs)("div",{className:t.headerTitle,children:[(0,Ae.jsx)("div",{className:t.assetTitle,children:e.header.title}),(0,Ae.jsx)(cE,{className:t.linkAsset,onClick:t=>{qy(t,"/assets/".concat(e.content[0].assetId),r)}}),i&&(0,Ae.jsx)(mA,{small:!0,status:VC.PENDING,withTooltip:!0,tooltipMessage:"AI is still ongoing on at least 1 inspection"})]}),(0,Ae.jsx)("div",{className:t.contentTitle,children:e.status===OC.PLANNED?"Next: ".concat(e.contenttitle?Iy(e.contenttitle):""):e.contenttitle})]}),(0,Ae.jsxs)("div",{style:{cursor:"default"},children:[(0,Ae.jsx)("br",{}),(0,Ae.jsx)("div",{className:t.contentNb,children:"".concat(e.content.length," item").concat(e.content.length>1?"s":"")}),e.status===OC.PLANNED&&(0,Ae.jsxs)("div",{className:t.headerAction,children:[(0,Ae.jsx)(Gu,{onClick:e=>{e.stopPropagation(),p(e.currentTarget)},children:(0,Ae.jsx)(gp,{})}),(0,Ae.jsxs)(Qd,{anchorEl:h,open:!!h,onClose:()=>p(null),onClick:e=>{e.stopPropagation()},children:[(0,Ae.jsx)(dh,{onClick:e=>{a(!0)},children:"Delete"}),(0,Ae.jsx)(sE,{blueColor:!0,date:e.plannedDate,manageDate:e.manageChangeDate,assetId:e.content.length?e.content[0].assetId:""})]})]})]}),(0,Ae.jsx)("br",{})]}),(0,Ae.jsx)(Dh,{className:t.content,classes:{root:t.topRoot},children:e.content.map(((n,r)=>{var s,a,l,c,h,p;const m=S(null===(s=n.inspect)||void 0===s?void 0:s.aiReady,null===(a=n.inspect)||void 0===a?void 0:a.aiStatus);return!i&&n.type===RC.SOLAR&&m&&[VC.PENDING,VC.POLYGONS,VC.DETECTED].includes(m)&&o(!0),(0,Ae.jsxs)(ws,{container:!0,justifyContent:"space-between",className:t.inspection,onClick:e=>((e,t)=>{t.inspect&&TC("inspection",t.inspect,"",t.inspect.id),t.onClick(e)})(e,n),children:[(0,Ae.jsxs)(ws,{item:!0,xs:[OC.UPLOADED,OC.ANNOTATED,OC.ANALYZED].includes(null===(l=n.inspect)||void 0===l?void 0:l.status)&&(null===(c=n.inspect)||void 0===c?void 0:c.type)===RC.SOLAR?4:5,className:t.alignContent,children:[v[n.type],(0,Ae.jsx)("span",{className:t.textFormat,children:(y=n,"Solar"===y.type||isNaN(y.label)?"Solar"!==y.type||isNaN(y.label)?" "+y.label:" Subasset "+y.label:" Turbine "+y.label)})]}),[OC.UPLOADED,OC.ANNOTATED,OC.ANALYZED].includes(null===(h=n.inspect)||void 0===h?void 0:h.status)&&(null===(p=n.inspect)||void 0===p?void 0:p.type)===RC.SOLAR&&m&&(0,Ae.jsx)(ws,{item:!0,xs:1,children:(0,Ae.jsx)(mA,{small:!0,status:m,withTooltip:!0})}),(0,Ae.jsx)(ws,{item:!0,xs:1,children:(n.notes||!!n.flaggedCount)&&x(n)}),(0,Ae.jsx)(ws,{item:!0,xs:3,className:t.midSection,children:(0,Ae.jsx)("span",{style:{fontSize:"0.95rem"},children:Iy(e.status===OC.INSPECTED&&n.inspectedDate?n.inspectedDate:n.plannedDate)})}),(0,Ae.jsx)(ws,{item:!0,xs:3,children:(0,Ae.jsxs)("div",{className:t.alignContent,style:{float:"right"},children:[(0,Ae.jsx)("span",{className:t.textFormat,children:_(n)}),!!n.deleteItem&&(0,Ae.jsxs)("span",{onClick:e=>e.stopPropagation(),children:[(0,Ae.jsx)(Gu,{className:t.moreButton,onClick:e=>{d(n.id),g(e.currentTarget)},children:(0,Ae.jsx)(gp,{})}),(0,Ae.jsxs)(Qd,{anchorEl:f,open:u===n.id,onClose:()=>d(null),children:[(0,Ae.jsx)(dh,{onClick:()=>{n.deleteItem&&n.deleteItem(n.id),d(null)},children:"Delete"}),(0,Ae.jsx)(sE,{item:n,blueColor:!1,date:n.plannedDate,manageDate:(t,n,r)=>{e.manageChangeDate(t,n,r),d(null)}})]})]})]})})]},r);var y}))}),s&&(0,Ae.jsx)(nv,{title:"You are about to delete the planned inspections of ".concat(e.header.title),close:()=>a(!1),titleConfirm:"Delete",confirm:()=>{e.header.deleteAll&&e.header.deleteAll(),a(!1),p(null)},anchorEl:h})]})},e.index)};class xA extends Error{constructor(e,t){let{status:n}=t;super(e),this.status=void 0,this.status=n}}let SA=function(e){return e.MAVIC2_ENTERPRISE_ADVANCED="Mavic 2 Enterprise Advanced",e}({}),wA=function(e){return e.NO_RTK="No RTK",e.NOT_IN_USE="Plugged service off",e.FLOAT="Float",e.FIXED="Fixed",e.UNKNOWN="Unknown",e}({}),EA=function(e){return e[e.NO_RTK=0]="NO_RTK",e[e.NOT_IN_USE=16]="NOT_IN_USE",e[e.FLOAT_RANGE_START=32]="FLOAT_RANGE_START",e[e.FLOAT_RANGE_END=49]="FLOAT_RANGE_END",e[e.FIXED=50]="FIXED",e}({});const PA=async(e,t)=>{let n="/inspections/".concat(e,"/getInspectionDoc");t&&(n+="?campaignLink=".concat(encodeURIComponent(t)));const r=await Ey(n,{method:"GET"});if(200===r.status){const e=await r.json();return Sy.dispatch(Ig(e)),e}if(404===r.status||403===r.status)throw new xA("Inspection not found",{status:r.status});return!1},CA=async function(e){let t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];const n=await Ey("/inspections/"+e+"/getPhotoData",{method:"GET"}),r=await n.json();return t&&Sy.dispatch(Gg(r)),r},AA=async(e,t)=>{const n=await Ey("/inspections/"+e+"/getAnnotations",{method:"GET"});if(200===n.status){const e=await n.json();return t||Sy.dispatch(Mg(e)),e}return[]},kA=async(e,t)=>{const n={method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({status:t})};200===(await Ey("/inspections/".concat(e,"/updateStatus"),n)).status&&Sy.dispatch(Yg(t))},jA=(e,t)=>{const n=[...e];return n.sort(((e,n)=>{if(e.annotations.length>0&&n.annotations.length>0){const r=t.find((t=>t.fileName===e.annotations[0].annotationRef)),i=t.find((e=>e.fileName===n.annotations[0].annotationRef));if(r&&i)return r.key===i.key?r.position.lon===i.position.lon?0:r.position.lon>i.position.lon?1:-1:parseInt(r.key,10)>parseInt(i.key,10)?1:-1}return 1})),n},IA=e=>{if(null!==e&&void 0!==e&&e.subAsset){const{id:t,area:n,lat:r,lon:i,name:o}=e.subAsset;return{id:t,name:o,area:n,lat:r,lon:i}}return null},GA=async()=>{const e=await Ey("/inspections",{method:"GET"}),t=await e.json();return Sy.dispatch(Uf(t)),t},TA=async e=>{const t=new Headers;t.append("Content-Type","application/json");const n={method:"POST",headers:t,body:JSON.stringify([e])};await Ey("/inspections/deleteInspections",n),await GA(),Sy.dispatch(Yf("")),Sy.dispatch(Xf(""))},MA=async()=>{const e=await Ey("/models/getWindModels",{method:"GET"});return await e.json()},OA=async(e,t)=>{const n=new Headers;n.append("Content-Type","application/json");const r={method:"POST",headers:n,body:JSON.stringify({date:e})};return 200===(await Ey("/inspections/".concat(t,"/updatePlannedDate"),r)).status&&(Sy.dispatch(sm(e.toString())),!0)},RA=async(e,t)=>{const n=new URLSearchParams({inspectionIds:e.join(",")}),r=t?"getGroupedInspectionsDefects?".concat(n):"getGroupedInspectionsDefectsExt?".concat(n),i=await Ey("/inspections/".concat(r),{method:"GET",headers:{"Content-Type":"application/json"}});if(200===i.status){const e=await i.json();return e.inspections.sort(((e,t)=>e.subAsset.lat<t.subAsset.lat?1:-1)),e.defects=((e,t,n)=>{let r=[];for(const i of n){const n=e.filter((e=>e.inspectionId===i.id)),o=t.filter((e=>e.inspectionId===i.id)),s=jA(n,o);r=r.concat(s)}return r})(e.defects,e.annotations,e.inspections),Sy.dispatch(hy(e)),e}return!1},DA=async(e,t,n)=>{const r=new URLSearchParams({inspectionId:e,annotationId:t,inspectionType:n}),i=await Ey("/inspections/retrieveAnnotationCrop?".concat(r),{method:"GET"});if(200===i.status){return await i.json()}return!1};const NA=n.createContext();function LA(e){return(0,hs.c)("MuiTable",e)}(0,ds.c)("MuiTable",["root","stickyHeader"]);const VA=["className","component","padding","size","stickyHeader"],FA=(0,cs.cp)("table",{name:"MuiTable",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.stickyHeader&&t.stickyHeader]}})((e=>{let{theme:t,ownerState:n}=e;return(0,d.c)({display:"table",width:"100%",borderCollapse:"collapse",borderSpacing:0,"& caption":(0,d.c)({},t.typography.body2,{padding:t.spacing(2),color:(t.vars||t).palette.text.secondary,textAlign:"left",captionSide:"bottom"})},n.stickyHeader&&{borderCollapse:"separate"})})),zA="table",BA=n.forwardRef((function(e,t){const r=(0,Oe.c)({props:e,name:"MuiTable"}),{className:i,component:o=zA,padding:s="normal",size:a="medium",stickyHeader:l=!1}=r,c=(0,Tt.c)(r,VA),u=(0,d.c)({},r,{component:o,padding:s,size:a,stickyHeader:l}),h=(e=>{const{classes:t,stickyHeader:n}=e,r={root:["root",n&&"stickyHeader"]};return(0,ls.c)(r,LA,t)})(u),p=n.useMemo((()=>({padding:s,size:a,stickyHeader:l})),[s,a,l]);return(0,Ae.jsx)(NA.Provider,{value:p,children:(0,Ae.jsx)(FA,(0,d.c)({as:o,role:o===zA?null:"table",ref:t,className:(0,ts.c)(h.root,i),ownerState:u},c))})}));const UA=n.createContext();function WA(e){return(0,hs.c)("MuiTableBody",e)}(0,ds.c)("MuiTableBody",["root"]);const HA=["className","component"],qA=(0,cs.cp)("tbody",{name:"MuiTableBody",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"table-row-group"}),XA={variant:"body"},YA="tbody",KA=n.forwardRef((function(e,t){const n=(0,Oe.c)({props:e,name:"MuiTableBody"}),{className:r,component:i=YA}=n,o=(0,Tt.c)(n,HA),s=(0,d.c)({},n,{component:i}),a=(e=>{const{classes:t}=e;return(0,ls.c)({root:["root"]},WA,t)})(s);return(0,Ae.jsx)(UA.Provider,{value:XA,children:(0,Ae.jsx)(qA,(0,d.c)({className:(0,ts.c)(a.root,r),as:i,ref:t,role:i===YA?null:"rowgroup",ownerState:s},o))})}));function ZA(e){return(0,hs.c)("MuiTableCell",e)}const $A=(0,ds.c)("MuiTableCell",["root","head","body","footer","sizeSmall","sizeMedium","paddingCheckbox","paddingNone","alignLeft","alignCenter","alignRight","alignJustify","stickyHeader"]),JA=["align","className","component","padding","scope","size","sortDirection","variant"],QA=(0,cs.cp)("td",{name:"MuiTableCell",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],t["size".concat((0,ha.c)(n.size))],"normal"!==n.padding&&t["padding".concat((0,ha.c)(n.padding))],"inherit"!==n.align&&t["align".concat((0,ha.c)(n.align))],n.stickyHeader&&t.stickyHeader]}})((e=>{let{theme:t,ownerState:n}=e;return(0,d.c)({},t.typography.body2,{display:"table-cell",verticalAlign:"inherit",borderBottom:t.vars?"1px solid ".concat(t.vars.palette.TableCell.border):"1px solid\n    ".concat("light"===t.palette.mode?(0,Ps.IV)((0,Ps.W4)(t.palette.divider,1),.88):(0,Ps.sP)((0,Ps.W4)(t.palette.divider,1),.68)),textAlign:"left",padding:16},"head"===n.variant&&{color:(t.vars||t).palette.text.primary,lineHeight:t.typography.pxToRem(24),fontWeight:t.typography.fontWeightMedium},"body"===n.variant&&{color:(t.vars||t).palette.text.primary},"footer"===n.variant&&{color:(t.vars||t).palette.text.secondary,lineHeight:t.typography.pxToRem(21),fontSize:t.typography.pxToRem(12)},"small"===n.size&&{padding:"6px 16px",["&.".concat($A.paddingCheckbox)]:{width:24,padding:"0 12px 0 16px","& > *":{padding:0}}},"checkbox"===n.padding&&{width:48,padding:"0 0 0 4px"},"none"===n.padding&&{padding:0},"left"===n.align&&{textAlign:"left"},"center"===n.align&&{textAlign:"center"},"right"===n.align&&{textAlign:"right",flexDirection:"row-reverse"},"justify"===n.align&&{textAlign:"justify"},n.stickyHeader&&{position:"sticky",top:0,zIndex:2,backgroundColor:(t.vars||t).palette.background.default})})),ek=n.forwardRef((function(e,t){const r=(0,Oe.c)({props:e,name:"MuiTableCell"}),{align:i="inherit",className:o,component:s,padding:a,scope:l,size:c,sortDirection:u,variant:h}=r,p=(0,Tt.c)(r,JA),f=n.useContext(NA),g=n.useContext(UA),m=g&&"head"===g.variant;let y;y=s||(m?"th":"td");let v=l;!v&&m&&(v="col");const _=h||g&&g.variant,b=(0,d.c)({},r,{align:i,component:y,padding:a||(f&&f.padding?f.padding:"normal"),size:c||(f&&f.size?f.size:"medium"),sortDirection:u,stickyHeader:"head"===_&&f&&f.stickyHeader,variant:_}),x=(e=>{const{classes:t,variant:n,align:r,padding:i,size:o,stickyHeader:s}=e,a={root:["root",n,s&&"stickyHeader","inherit"!==r&&"align".concat((0,ha.c)(r)),"normal"!==i&&"padding".concat((0,ha.c)(i)),"size".concat((0,ha.c)(o))]};return(0,ls.c)(a,ZA,t)})(b);let S=null;return u&&(S="asc"===u?"ascending":"descending"),(0,Ae.jsx)(QA,(0,d.c)({as:y,ref:t,className:(0,ts.c)(x.root,o),"aria-sort":S,scope:v,ownerState:b},p))})),tk=ek;function nk(e){return(0,hs.c)("MuiTableContainer",e)}(0,ds.c)("MuiTableContainer",["root"]);const rk=["className","component"],ik=(0,cs.cp)("div",{name:"MuiTableContainer",slot:"Root",overridesResolver:(e,t)=>t.root})({width:"100%",overflowX:"auto"}),ok=n.forwardRef((function(e,t){const n=(0,Oe.c)({props:e,name:"MuiTableContainer"}),{className:r,component:i="div"}=n,o=(0,Tt.c)(n,rk),s=(0,d.c)({},n,{component:i}),a=(e=>{const{classes:t}=e;return(0,ls.c)({root:["root"]},nk,t)})(s);return(0,Ae.jsx)(ik,(0,d.c)({ref:t,as:i,className:(0,ts.c)(a.root,r),ownerState:s},o))}));function sk(e){return(0,hs.c)("MuiToolbar",e)}(0,ds.c)("MuiToolbar",["root","gutters","regular","dense"]);const ak=["className","component","disableGutters","variant"],lk=(0,cs.cp)("div",{name:"MuiToolbar",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,!n.disableGutters&&t.gutters,t[n.variant]]}})((e=>{let{theme:t,ownerState:n}=e;return(0,d.c)({position:"relative",display:"flex",alignItems:"center"},!n.disableGutters&&{paddingLeft:t.spacing(2),paddingRight:t.spacing(2),[t.breakpoints.up("sm")]:{paddingLeft:t.spacing(3),paddingRight:t.spacing(3)}},"dense"===n.variant&&{minHeight:48})}),(e=>{let{theme:t,ownerState:n}=e;return"regular"===n.variant&&t.mixins.toolbar})),ck=n.forwardRef((function(e,t){const n=(0,Oe.c)({props:e,name:"MuiToolbar"}),{className:r,component:i="div",disableGutters:o=!1,variant:s="regular"}=n,a=(0,Tt.c)(n,ak),l=(0,d.c)({},n,{component:i,disableGutters:o,variant:s}),c=(e=>{const{classes:t,disableGutters:n,variant:r}=e,i={root:["root",!n&&"gutters",r]};return(0,ls.c)(i,sk,t)})(l);return(0,Ae.jsx)(lk,(0,d.c)({as:i,className:(0,ts.c)(c.root,r),ref:t,ownerState:l},a))})),uk=(0,vv.c)((0,Ae.jsx)("path",{d:"M15.41 16.09l-4.58-4.59 4.58-4.59L14 5.5l-6 6 6 6z"}),"KeyboardArrowLeft"),dk=(0,vv.c)((0,Ae.jsx)("path",{d:"M8.59 16.34l4.58-4.59-4.58-4.59L10 5.75l6 6-6 6z"}),"KeyboardArrowRight"),hk=(0,vv.c)((0,Ae.jsx)("path",{d:"M5.59 7.41L10.18 12l-4.59 4.59L7 18l6-6-6-6zM16 6h2v12h-2z"}),"LastPage"),pk=(0,vv.c)((0,Ae.jsx)("path",{d:"M18.41 16.59L13.82 12l4.59-4.59L17 6l-6 6 6 6zM6 6h2v12H6z"}),"FirstPage");var fk,gk,mk,yk,vk,_k,bk,xk;const Sk=["backIconButtonProps","count","getItemAriaLabel","nextIconButtonProps","onPageChange","page","rowsPerPage","showFirstButton","showLastButton"],wk=n.forwardRef((function(e,t){const{backIconButtonProps:n,count:r,getItemAriaLabel:i,nextIconButtonProps:o,onPageChange:s,page:a,rowsPerPage:l,showFirstButton:c,showLastButton:u}=e,h=(0,Tt.c)(e,Sk),p=Go();return(0,Ae.jsxs)("div",(0,d.c)({ref:t},h,{children:[c&&(0,Ae.jsx)(Gu,{onClick:e=>{s(e,0)},disabled:0===a,"aria-label":i("first",a),title:i("first",a),children:"rtl"===p.direction?fk||(fk=(0,Ae.jsx)(hk,{})):gk||(gk=(0,Ae.jsx)(pk,{}))}),(0,Ae.jsx)(Gu,(0,d.c)({onClick:e=>{s(e,a-1)},disabled:0===a,color:"inherit","aria-label":i("previous",a),title:i("previous",a)},n,{children:"rtl"===p.direction?mk||(mk=(0,Ae.jsx)(dk,{})):yk||(yk=(0,Ae.jsx)(uk,{}))})),(0,Ae.jsx)(Gu,(0,d.c)({onClick:e=>{s(e,a+1)},disabled:-1!==r&&a>=Math.ceil(r/l)-1,color:"inherit","aria-label":i("next",a),title:i("next",a)},o,{children:"rtl"===p.direction?vk||(vk=(0,Ae.jsx)(uk,{})):_k||(_k=(0,Ae.jsx)(dk,{}))})),u&&(0,Ae.jsx)(Gu,{onClick:e=>{s(e,Math.max(0,Math.ceil(r/l)-1))},disabled:a>=Math.ceil(r/l)-1,"aria-label":i("last",a),title:i("last",a),children:"rtl"===p.direction?bk||(bk=(0,Ae.jsx)(pk,{})):xk||(xk=(0,Ae.jsx)(hk,{}))})]}))}));function Ek(e){return(0,hs.c)("MuiTablePagination",e)}const Pk=(0,ds.c)("MuiTablePagination",["root","toolbar","spacer","selectLabel","selectRoot","select","selectIcon","input","menuItem","displayedRows","actions"]);var Ck;const Ak=["ActionsComponent","backIconButtonProps","className","colSpan","component","count","getItemAriaLabel","labelDisplayedRows","labelRowsPerPage","nextIconButtonProps","onPageChange","onRowsPerPageChange","page","rowsPerPage","rowsPerPageOptions","SelectProps","showFirstButton","showLastButton"],kk=(0,cs.cp)(tk,{name:"MuiTablePagination",slot:"Root",overridesResolver:(e,t)=>t.root})((e=>{let{theme:t}=e;return{overflow:"auto",color:(t.vars||t).palette.text.primary,fontSize:t.typography.pxToRem(14),"&:last-child":{padding:0}}})),jk=(0,cs.cp)(ck,{name:"MuiTablePagination",slot:"Toolbar",overridesResolver:(e,t)=>(0,d.c)({["& .".concat(Pk.actions)]:t.actions},t.toolbar)})((e=>{let{theme:t}=e;return{minHeight:52,paddingRight:2,["".concat(t.breakpoints.up("xs")," and (orientation: landscape)")]:{minHeight:52},[t.breakpoints.up("sm")]:{minHeight:52,paddingRight:2},["& .".concat(Pk.actions)]:{flexShrink:0,marginLeft:20}}})),Ik=(0,cs.cp)("div",{name:"MuiTablePagination",slot:"Spacer",overridesResolver:(e,t)=>t.spacer})({flex:"1 1 100%"}),Gk=(0,cs.cp)("p",{name:"MuiTablePagination",slot:"SelectLabel",overridesResolver:(e,t)=>t.selectLabel})((e=>{let{theme:t}=e;return(0,d.c)({},t.typography.body2,{flexShrink:0})})),Tk=(0,cs.cp)(Jw,{name:"MuiTablePagination",slot:"Select",overridesResolver:(e,t)=>(0,d.c)({["& .".concat(Pk.selectIcon)]:t.selectIcon,["& .".concat(Pk.select)]:t.select},t.input,t.selectRoot)})({color:"inherit",fontSize:"inherit",flexShrink:0,marginRight:32,marginLeft:8,["& .".concat(Pk.select)]:{paddingLeft:8,paddingRight:24,textAlign:"right",textAlignLast:"right"}}),Mk=(0,cs.cp)(dh,{name:"MuiTablePagination",slot:"MenuItem",overridesResolver:(e,t)=>t.menuItem})({}),Ok=(0,cs.cp)("p",{name:"MuiTablePagination",slot:"DisplayedRows",overridesResolver:(e,t)=>t.displayedRows})((e=>{let{theme:t}=e;return(0,d.c)({},t.typography.body2,{flexShrink:0})}));function Rk(e){let{from:t,to:n,count:r}=e;return"".concat(t,"\u2013").concat(n," of ").concat(-1!==r?r:"more than ".concat(n))}function Dk(e){return"Go to ".concat(e," page")}const Nk=n.forwardRef((function(e,t){const r=(0,Oe.c)({props:e,name:"MuiTablePagination"}),{ActionsComponent:i=wk,backIconButtonProps:o,className:s,colSpan:a,component:l=tk,count:c,getItemAriaLabel:u=Dk,labelDisplayedRows:h=Rk,labelRowsPerPage:p="Rows per page:",nextIconButtonProps:f,onPageChange:g,onRowsPerPageChange:m,page:y,rowsPerPage:v,rowsPerPageOptions:_=[10,25,50,100],SelectProps:b={},showFirstButton:x=!1,showLastButton:S=!1}=r,w=(0,Tt.c)(r,Ak),E=r,P=(e=>{const{classes:t}=e;return(0,ls.c)({root:["root"],toolbar:["toolbar"],spacer:["spacer"],selectLabel:["selectLabel"],select:["select"],input:["input"],selectIcon:["selectIcon"],menuItem:["menuItem"],displayedRows:["displayedRows"],actions:["actions"]},Ek,t)})(E),C=b.native?"option":Mk;let A;l!==tk&&"td"!==l||(A=a||1e3);const k=(0,Zc.c)(b.id),j=(0,Zc.c)(b.labelId);return(0,Ae.jsx)(kk,(0,d.c)({colSpan:A,ref:t,as:l,ownerState:E,className:(0,ts.c)(P.root,s)},w,{children:(0,Ae.jsxs)(jk,{className:P.toolbar,children:[(0,Ae.jsx)(Ik,{className:P.spacer}),_.length>1&&(0,Ae.jsx)(Gk,{className:P.selectLabel,id:j,children:p}),_.length>1&&(0,Ae.jsx)(Tk,(0,d.c)({variant:"standard"},!b.variant&&{input:Ck||(Ck=(0,Ae.jsx)(kS,{}))},{value:v,onChange:m,id:k,labelId:j},b,{classes:(0,d.c)({},b.classes,{root:(0,ts.c)(P.input,P.selectRoot,(b.classes||{}).root),select:(0,ts.c)(P.select,(b.classes||{}).select),icon:(0,ts.c)(P.selectIcon,(b.classes||{}).icon)}),children:_.map((e=>(0,n.createElement)(C,(0,d.c)({},!Va(C)&&{ownerState:E},{className:P.menuItem,key:e.label?e.label:e,value:e.value?e.value:e}),e.label?e.label:e)))})),(0,Ae.jsx)(Ok,{className:P.displayedRows,children:h({from:0===c?0:y*v+1,to:-1===c?(y+1)*v:-1===v?c:Math.min(c,(y+1)*v),count:-1===c?-1:c,page:y})}),(0,Ae.jsx)(i,{className:P.actions,backIconButtonProps:o,count:c,nextIconButtonProps:f,onPageChange:g,page:y,rowsPerPage:v,showFirstButton:x,showLastButton:S,getItemAriaLabel:u})]})}))}));function Lk(e){return(0,hs.c)("MuiTableRow",e)}const Vk=(0,ds.c)("MuiTableRow",["root","selected","hover","head","footer"]),Fk=["className","component","hover","selected"],zk=(0,cs.cp)("tr",{name:"MuiTableRow",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.head&&t.head,n.footer&&t.footer]}})((e=>{let{theme:t}=e;return{color:"inherit",display:"table-row",verticalAlign:"middle",outline:0,["&.".concat(Vk.hover,":hover")]:{backgroundColor:(t.vars||t).palette.action.hover},["&.".concat(Vk.selected)]:{backgroundColor:t.vars?"rgba(".concat(t.vars.palette.primary.mainChannel," / ").concat(t.vars.palette.action.selectedOpacity,")"):(0,Ps.W4)(t.palette.primary.main,t.palette.action.selectedOpacity),"&:hover":{backgroundColor:t.vars?"rgba(".concat(t.vars.palette.primary.mainChannel," / calc(").concat(t.vars.palette.action.selectedOpacity," + ").concat(t.vars.palette.action.hoverOpacity,"))"):(0,Ps.W4)(t.palette.primary.main,t.palette.action.selectedOpacity+t.palette.action.hoverOpacity)}}}})),Bk="tr",Uk=n.forwardRef((function(e,t){const r=(0,Oe.c)({props:e,name:"MuiTableRow"}),{className:i,component:o=Bk,hover:s=!1,selected:a=!1}=r,l=(0,Tt.c)(r,Fk),c=n.useContext(UA),u=(0,d.c)({},r,{component:o,hover:s,selected:a,head:c&&"head"===c.variant,footer:c&&"footer"===c.variant}),h=(e=>{const{classes:t,selected:n,hover:r,head:i,footer:o}=e,s={root:["root",n&&"selected",r&&"hover",i&&"head",o&&"footer"]};return(0,ls.c)(s,Lk,t)})(u);return(0,Ae.jsx)(zk,(0,d.c)({as:o,ref:t,className:(0,ts.c)(h.root,i),role:o===Bk?null:"row",ownerState:u},l))})),Wk=Uk;function Hk(e){return(0,hs.c)("PrivateSwitchBase",e)}(0,ds.c)("PrivateSwitchBase",["root","checked","disabled","input","edgeStart","edgeEnd"]);const qk=["autoFocus","checked","checkedIcon","className","defaultChecked","disabled","disableFocusRipple","edge","icon","id","inputProps","inputRef","name","onBlur","onChange","onFocus","readOnly","required","tabIndex","type","value"],Xk=(0,cs.cp)(da)((e=>{let{ownerState:t}=e;return(0,d.c)({padding:9,borderRadius:"50%"},"start"===t.edge&&{marginLeft:"small"===t.size?-3:-12},"end"===t.edge&&{marginRight:"small"===t.size?-3:-12})})),Yk=(0,cs.cp)("input")({cursor:"inherit",position:"absolute",opacity:0,width:"100%",height:"100%",top:0,left:0,margin:0,padding:0,zIndex:1}),Kk=n.forwardRef((function(e,t){const{autoFocus:n,checked:r,checkedIcon:i,className:o,defaultChecked:s,disabled:a,disableFocusRipple:l=!1,edge:c=!1,icon:u,id:h,inputProps:p,inputRef:f,name:g,onBlur:m,onChange:y,onFocus:v,readOnly:_,required:b,tabIndex:x,type:S,value:w}=e,E=(0,Tt.c)(e,qk),[P,C]=(0,$c.c)({controlled:r,default:Boolean(s),name:"SwitchBase",state:"checked"}),A=du();let k=a;A&&"undefined"===typeof k&&(k=A.disabled);const j="checkbox"===S||"radio"===S,I=(0,d.c)({},e,{checked:P,disabled:k,disableFocusRipple:l,edge:c}),G=(e=>{const{classes:t,checked:n,disabled:r,edge:i}=e,o={root:["root",n&&"checked",r&&"disabled",i&&"edge".concat((0,ha.c)(i))],input:["input"]};return(0,ls.c)(o,Hk,t)})(I);return(0,Ae.jsxs)(Xk,(0,d.c)({component:"span",className:(0,ts.c)(G.root,o),centerRipple:!0,focusRipple:!l,disabled:k,tabIndex:null,role:void 0,onFocus:e=>{v&&v(e),A&&A.onFocus&&A.onFocus(e)},onBlur:e=>{m&&m(e),A&&A.onBlur&&A.onBlur(e)},ownerState:I,ref:t},E,{children:[(0,Ae.jsx)(Yk,(0,d.c)({autoFocus:n,checked:r,defaultChecked:s,className:G.input,disabled:k,id:j&&h,name:g,onChange:e=>{if(e.nativeEvent.defaultPrevented)return;const t=e.target.checked;C(t),y&&y(e,t)},readOnly:_,ref:f,required:b,ownerState:I,tabIndex:x,type:S},"checkbox"===S&&void 0===w?{}:{value:w},p)),P?i:u]}))})),Zk=Kk,$k=(0,vv.c)((0,Ae.jsx)("path",{d:"M19 5v14H5V5h14m0-2H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2z"}),"CheckBoxOutlineBlank"),Jk=(0,vv.c)((0,Ae.jsx)("path",{d:"M19 3H5c-1.11 0-2 .9-2 2v14c0 1.1.89 2 2 2h14c1.11 0 2-.9 2-2V5c0-1.1-.89-2-2-2zm-9 14l-5-5 1.41-1.41L10 14.17l7.59-7.59L19 8l-9 9z"}),"CheckBox"),Qk=(0,vv.c)((0,Ae.jsx)("path",{d:"M19 3H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm-2 10H7v-2h10v2z"}),"IndeterminateCheckBox");function ej(e){return(0,hs.c)("MuiCheckbox",e)}const tj=(0,ds.c)("MuiCheckbox",["root","checked","disabled","indeterminate","colorPrimary","colorSecondary"]),nj=["checkedIcon","color","icon","indeterminate","indeterminateIcon","inputProps","size","className"],rj=(0,cs.cp)(Zk,{shouldForwardProp:e=>(0,cs.CU)(e)||"classes"===e,name:"MuiCheckbox",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.indeterminate&&t.indeterminate,"default"!==n.color&&t["color".concat((0,ha.c)(n.color))]]}})((e=>{let{theme:t,ownerState:n}=e;return(0,d.c)({color:(t.vars||t).palette.text.secondary},!n.disableRipple&&{"&:hover":{backgroundColor:t.vars?"rgba(".concat("default"===n.color?t.vars.palette.action.activeChannel:t.vars.palette.primary.mainChannel," / ").concat(t.vars.palette.action.hoverOpacity,")"):(0,Ps.W4)("default"===n.color?t.palette.action.active:t.palette[n.color].main,t.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},"default"!==n.color&&{["&.".concat(tj.checked,", &.").concat(tj.indeterminate)]:{color:(t.vars||t).palette[n.color].main},["&.".concat(tj.disabled)]:{color:(t.vars||t).palette.action.disabled}})})),ij=(0,Ae.jsx)(Jk,{}),oj=(0,Ae.jsx)($k,{}),sj=(0,Ae.jsx)(Qk,{}),aj=n.forwardRef((function(e,t){var r,i;const o=(0,Oe.c)({props:e,name:"MuiCheckbox"}),{checkedIcon:s=ij,color:a="primary",icon:l=oj,indeterminate:c=!1,indeterminateIcon:u=sj,inputProps:h,size:p="medium",className:f}=o,g=(0,Tt.c)(o,nj),m=c?u:l,y=c?u:s,v=(0,d.c)({},o,{color:a,indeterminate:c,size:p}),_=(e=>{const{classes:t,indeterminate:n,color:r}=e,i={root:["root",n&&"indeterminate","color".concat((0,ha.c)(r))]},o=(0,ls.c)(i,ej,t);return(0,d.c)({},t,o)})(v);return(0,Ae.jsx)(rj,(0,d.c)({type:"checkbox",inputProps:(0,d.c)({"data-indeterminate":c},h),icon:n.cloneElement(m,{fontSize:null!=(r=m.props.fontSize)?r:p}),checkedIcon:n.cloneElement(y,{fontSize:null!=(i=y.props.fontSize)?i:p}),ownerState:v,ref:t,className:(0,ts.c)(_.root,f)},g,{classes:_}))})),lj=aj;function cj(e){return(0,hs.c)("MuiCard",e)}(0,ds.c)("MuiCard",["root"]);const uj=["className","raised"],dj=(0,cs.cp)(Qu,{name:"MuiCard",slot:"Root",overridesResolver:(e,t)=>t.root})((()=>({overflow:"hidden"}))),hj=n.forwardRef((function(e,t){const n=(0,Oe.c)({props:e,name:"MuiCard"}),{className:r,raised:i=!1}=n,o=(0,Tt.c)(n,uj),s=(0,d.c)({},n,{raised:i}),a=(e=>{const{classes:t}=e;return(0,ls.c)({root:["root"]},cj,t)})(s);return(0,Ae.jsx)(dj,(0,d.c)({className:(0,ts.c)(a.root,r),elevation:i?8:void 0,ref:t,ownerState:s},o))}));var pj=__webpack_require__(54044);const fj=["component","direction","spacing","divider","children"];function gj(e,t){const r=n.Children.toArray(e).filter(Boolean);return r.reduce(((e,i,o)=>(e.push(i),o<r.length-1&&e.push(n.cloneElement(t,{key:"separator-".concat(o)})),e)),[])}const mj=(0,cs.cp)("div",{name:"MuiStack",slot:"Root",overridesResolver:(e,t)=>[t.root]})((e=>{let{ownerState:t,theme:n}=e,r=(0,d.c)({display:"flex",flexDirection:"column"},(0,ns.ls)({theme:n},(0,ns.Ws)({values:t.direction,breakpoints:n.breakpoints.values}),(e=>({flexDirection:e}))));if(t.spacing){const e=(0,pj.IV)(n),i=Object.keys(n.breakpoints.values).reduce(((e,n)=>(("object"===typeof t.spacing&&null!=t.spacing[n]||"object"===typeof t.direction&&null!=t.direction[n])&&(e[n]=!0),e)),{}),o=(0,ns.Ws)({values:t.direction,base:i}),s=(0,ns.Ws)({values:t.spacing,base:i});"object"===typeof o&&Object.keys(o).forEach(((e,t,n)=>{if(!o[e]){const r=t>0?o[n[t-1]]:"column";o[e]=r}}));const a=(n,r)=>{return{"& > :not(style) + :not(style)":{margin:0,["margin".concat((i=r?o[r]:t.direction,{row:"Left","row-reverse":"Right",column:"Top","column-reverse":"Bottom"}[i]))]:(0,pj.uc)(e,n)}};var i};r=(0,rs.c)(r,(0,ns.ls)({theme:n},s,a))}return r=(0,ns.cD)(n.breakpoints,r),r})),yj=n.forwardRef((function(e,t){const n=as((0,Oe.c)({props:e,name:"MuiStack"})),{component:r="div",direction:i="column",spacing:o=0,divider:s,children:a}=n,l=(0,Tt.c)(n,fj),c={direction:i,spacing:o};return(0,Ae.jsx)(mj,(0,d.c)({as:r,ownerState:c,ref:t},l,{children:s?gj(a,s):a}))})),vj=yj;function _j(e){return(0,hs.c)("MuiSwitch",e)}const bj=(0,ds.c)("MuiSwitch",["root","edgeStart","edgeEnd","switchBase","colorPrimary","colorSecondary","sizeSmall","sizeMedium","checked","disabled","input","thumb","track"]),xj=["className","color","edge","size","sx"],Sj=(0,cs.cp)("span",{name:"MuiSwitch",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.edge&&t["edge".concat((0,ha.c)(n.edge))],t["size".concat((0,ha.c)(n.size))]]}})((e=>{let{ownerState:t}=e;return(0,d.c)({display:"inline-flex",width:58,height:38,overflow:"hidden",padding:12,boxSizing:"border-box",position:"relative",flexShrink:0,zIndex:0,verticalAlign:"middle","@media print":{colorAdjust:"exact"}},"start"===t.edge&&{marginLeft:-8},"end"===t.edge&&{marginRight:-8},"small"===t.size&&{width:40,height:24,padding:7,["& .".concat(bj.thumb)]:{width:16,height:16},["& .".concat(bj.switchBase)]:{padding:4,["&.".concat(bj.checked)]:{transform:"translateX(16px)"}}})})),wj=(0,cs.cp)(Zk,{name:"MuiSwitch",slot:"SwitchBase",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.switchBase,{["& .".concat(bj.input)]:t.input},"default"!==n.color&&t["color".concat((0,ha.c)(n.color))]]}})((e=>{let{theme:t}=e;return{position:"absolute",top:0,left:0,zIndex:1,color:t.vars?t.vars.palette.Switch.defaultColor:"".concat("light"===t.palette.mode?t.palette.common.white:t.palette.grey[300]),transition:t.transitions.create(["left","transform"],{duration:t.transitions.duration.shortest}),["&.".concat(bj.checked)]:{transform:"translateX(20px)"},["&.".concat(bj.disabled)]:{color:t.vars?t.vars.palette.Switch.defaultDisabledColor:"".concat("light"===t.palette.mode?t.palette.grey[100]:t.palette.grey[600])},["&.".concat(bj.checked," + .").concat(bj.track)]:{opacity:.5},["&.".concat(bj.disabled," + .").concat(bj.track)]:{opacity:t.vars?t.vars.opacity.switchTrackDisabled:"".concat("light"===t.palette.mode?.12:.2)},["& .".concat(bj.input)]:{left:"-100%",width:"300%"}}}),(e=>{let{theme:t,ownerState:n}=e;return(0,d.c)({"&:hover":{backgroundColor:t.vars?"rgba(".concat(t.vars.palette.action.activeChannel," / ").concat(t.vars.palette.action.hoverOpacity,")"):(0,Ps.W4)(t.palette.action.active,t.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},"default"!==n.color&&{["&.".concat(bj.checked)]:{color:(t.vars||t).palette[n.color].main,"&:hover":{backgroundColor:t.vars?"rgba(".concat(t.vars.palette[n.color].mainChannel," / ").concat(t.vars.palette.action.hoverOpacity,")"):(0,Ps.W4)(t.palette[n.color].main,t.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},["&.".concat(bj.disabled)]:{color:t.vars?t.vars.palette.Switch["".concat(n.color,"DisabledColor")]:"".concat("light"===t.palette.mode?(0,Ps.IV)(t.palette[n.color].main,.62):(0,Ps.sP)(t.palette[n.color].main,.55))}},["&.".concat(bj.checked," + .").concat(bj.track)]:{backgroundColor:(t.vars||t).palette[n.color].main}})})),Ej=(0,cs.cp)("span",{name:"MuiSwitch",slot:"Track",overridesResolver:(e,t)=>t.track})((e=>{let{theme:t}=e;return{height:"100%",width:"100%",borderRadius:7,zIndex:-1,transition:t.transitions.create(["opacity","background-color"],{duration:t.transitions.duration.shortest}),backgroundColor:t.vars?t.vars.palette.common.onBackground:"".concat("light"===t.palette.mode?t.palette.common.black:t.palette.common.white),opacity:t.vars?t.vars.opacity.switchTrack:"".concat("light"===t.palette.mode?.38:.3)}})),Pj=(0,cs.cp)("span",{name:"MuiSwitch",slot:"Thumb",overridesResolver:(e,t)=>t.thumb})((e=>{let{theme:t}=e;return{boxShadow:(t.vars||t).shadows[1],backgroundColor:"currentColor",width:20,height:20,borderRadius:"50%"}})),Cj=n.forwardRef((function(e,t){const n=(0,Oe.c)({props:e,name:"MuiSwitch"}),{className:r,color:i="primary",edge:o=!1,size:s="medium",sx:a}=n,l=(0,Tt.c)(n,xj),c=(0,d.c)({},n,{color:i,edge:o,size:s}),u=(e=>{const{classes:t,edge:n,size:r,color:i,checked:o,disabled:s}=e,a={root:["root",n&&"edge".concat((0,ha.c)(n)),"size".concat((0,ha.c)(r))],switchBase:["switchBase","color".concat((0,ha.c)(i)),o&&"checked",s&&"disabled"],thumb:["thumb"],track:["track"],input:["input"]},l=(0,ls.c)(a,_j,t);return(0,d.c)({},t,l)})(c),h=(0,Ae.jsx)(Pj,{className:u.thumb,ownerState:c});return(0,Ae.jsxs)(Sj,{className:(0,ts.c)(u.root,r),sx:a,ownerState:c,children:[(0,Ae.jsx)(wj,(0,d.c)({type:"checkbox",icon:h,checkedIcon:h,ref:t,ownerState:c},l,{classes:(0,d.c)({},u,{root:u.switchBase})})),(0,Ae.jsx)(Ej,{className:u.track,ownerState:c})]})})),Aj=Cj;function kj(e){return(0,hs.c)("MuiTableHead",e)}(0,ds.c)("MuiTableHead",["root"]);const jj=["className","component"],Ij=(0,cs.cp)("thead",{name:"MuiTableHead",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"table-header-group"}),Gj={variant:"head"},Tj="thead",Mj=n.forwardRef((function(e,t){const n=(0,Oe.c)({props:e,name:"MuiTableHead"}),{className:r,component:i=Tj}=n,o=(0,Tt.c)(n,jj),s=(0,d.c)({},n,{component:i}),a=(e=>{const{classes:t}=e;return(0,ls.c)({root:["root"]},kj,t)})(s);return(0,Ae.jsx)(UA.Provider,{value:Gj,children:(0,Ae.jsx)(Ij,(0,d.c)({as:i,className:(0,ts.c)(a.root,r),ref:t,role:i===Tj?null:"rowgroup",ownerState:s},o))})})),Oj=(0,vv.c)((0,Ae.jsx)("path",{d:"M20 12l-1.41-1.41L13 16.17V4h-2v12.17l-5.58-5.59L4 12l8 8 8-8z"}),"ArrowDownward");function Rj(e){return(0,hs.c)("MuiTableSortLabel",e)}const Dj=(0,ds.c)("MuiTableSortLabel",["root","active","icon","iconDirectionDesc","iconDirectionAsc"]),Nj=["active","children","className","direction","hideSortIcon","IconComponent"],Lj=(0,cs.cp)(da,{name:"MuiTableSortLabel",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.active&&t.active]}})((e=>{let{theme:t}=e;return{cursor:"pointer",display:"inline-flex",justifyContent:"flex-start",flexDirection:"inherit",alignItems:"center","&:focus":{color:(t.vars||t).palette.text.secondary},"&:hover":{color:(t.vars||t).palette.text.secondary,["& .".concat(Dj.icon)]:{opacity:.5}},["&.".concat(Dj.active)]:{color:(t.vars||t).palette.text.primary,["& .".concat(Dj.icon)]:{opacity:1,color:(t.vars||t).palette.text.secondary}}}})),Vj=(0,cs.cp)("span",{name:"MuiTableSortLabel",slot:"Icon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.icon,t["iconDirection".concat((0,ha.c)(n.direction))]]}})((e=>{let{theme:t,ownerState:n}=e;return(0,d.c)({fontSize:18,marginRight:4,marginLeft:4,opacity:0,transition:t.transitions.create(["opacity","transform"],{duration:t.transitions.duration.shorter}),userSelect:"none"},"desc"===n.direction&&{transform:"rotate(0deg)"},"asc"===n.direction&&{transform:"rotate(180deg)"})})),Fj=n.forwardRef((function(e,t){const n=(0,Oe.c)({props:e,name:"MuiTableSortLabel"}),{active:r=!1,children:i,className:o,direction:s="asc",hideSortIcon:a=!1,IconComponent:l=Oj}=n,c=(0,Tt.c)(n,Nj),u=(0,d.c)({},n,{active:r,direction:s,hideSortIcon:a,IconComponent:l}),h=(e=>{const{classes:t,direction:n,active:r}=e,i={root:["root",r&&"active"],icon:["icon","iconDirection".concat((0,ha.c)(n))]};return(0,ls.c)(i,Rj,t)})(u);return(0,Ae.jsxs)(Lj,(0,d.c)({className:(0,ts.c)(h.root,o),component:"span",disableRipple:!0,ownerState:u,ref:t},c,{children:[i,a&&!r?null:(0,Ae.jsx)(Vj,{as:l,className:(0,ts.c)(h.icon),ownerState:u})]}))}));function zj(e){return ka({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"}},{tag:"path",attr:{d:"M11.71 17.99A5.993 5.993 0 016 12c0-3.31 2.69-6 6-6 3.22 0 5.84 2.53 5.99 5.71l-2.1-.63a3.999 3.999 0 10-4.81 4.81l.63 2.1zM22 12c0 .3-.01.6-.04.9l-1.97-.59c.01-.1.01-.21.01-.31 0-4.42-3.58-8-8-8s-8 3.58-8 8 3.58 8 8 8c.1 0 .21 0 .31-.01l.59 1.97c-.3.03-.6.04-.9.04-5.52 0-10-4.48-10-10S6.48 2 12 2s10 4.48 10 10zm-3.77 4.26L22 15l-10-3 3 10 1.26-3.77 4.27 4.27 1.98-1.98-4.28-4.26z"}}]})(e)}function Bj(e){return ka({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"}},{tag:"path",attr:{d:"M6 19c0 1.1.9 2 2 2h8c1.1 0 2-.9 2-2V7H6v12zM19 4h-3.5l-1-1h-5l-1 1H5v2h14V4z"}}]})(e)}function Uj(e){return ka({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"}},{tag:"path",attr:{d:"M19 19H5V5h7V3H5a2 2 0 00-2 2v14a2 2 0 002 2h14c1.1 0 2-.9 2-2v-7h-2v7zM14 3v2h3.59l-9.83 9.83 1.41 1.41L19 6.41V10h2V3h-7z"}}]})(e)}function Wj(e){return ka({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"}},{tag:"path",attr:{d:"M16.6 10.88l-1.42-1.42-4.24 4.25-2.12-2.13L7.4 13l3.54 3.54z"}},{tag:"path",attr:{d:"M19 4H5a2 2 0 00-2 2v12a2 2 0 002 2h14c1.1 0 2-.9 2-2V6a2 2 0 00-2-2zm0 14H5V8h14v10z"}}]})(e)}function Hj(e){return ka({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"}},{tag:"path",attr:{d:"M10 18h4v-2h-4v2zM3 6v2h18V6H3zm3 7h12v-2H6v2z"}}]})(e)}function qj(e){return ka({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"}},{tag:"path",attr:{d:"M16.5 6v11.5c0 2.21-1.79 4-4 4s-4-1.79-4-4V5a2.5 2.5 0 015 0v10.5c0 .55-.45 1-1 1s-1-.45-1-1V6H10v9.5a2.5 2.5 0 005 0V5c0-2.21-1.79-4-4-4S7 2.79 7 5v12.5c0 3.04 2.46 5.5 5.5 5.5s5.5-2.46 5.5-5.5V6h-1.5z"}}]})(e)}function Xj(e){return ka({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"}},{tag:"path",attr:{d:"M19.88 18.47c.44-.7.7-1.51.7-2.39 0-2.49-2.01-4.5-4.5-4.5s-4.5 2.01-4.5 4.5 2.01 4.5 4.49 4.5c.88 0 1.7-.26 2.39-.7L21.58 23 23 21.58l-3.12-3.11zm-3.8.11a2.5 2.5 0 010-5 2.5 2.5 0 010 5zm-.36-8.5c-.74.02-1.45.18-2.1.45l-.55-.83-3.8 6.18-3.01-3.52-3.63 5.81L1 17l5-8 3 3.5L13 6l2.72 4.08zm2.59.5c-.64-.28-1.33-.45-2.05-.49L21.38 2 23 3.18l-4.69 7.4z"}}]})(e)}function Yj(e){return ka({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0V0zM-74 29h48v48h-48V29z"}},{tag:"path",attr:{d:"M20 5h-3.2L15 3H9L7.2 5H4c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V7c0-1.1-.9-2-2-2zm0 14h-8v-1c-2.8 0-5-2.2-5-5s2.2-5 5-5V7h8v12zm-3-6c0-2.8-2.2-5-5-5v1.8c1.8 0 3.2 1.4 3.2 3.2s-1.4 3.2-3.2 3.2V18c2.8 0 5-2.2 5-5zm-8.2 0c0 1.8 1.4 3.2 3.2 3.2V9.8c-1.8 0-3.2 1.4-3.2 3.2z"}}]})(e)}function Kj(e){return ka({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"}},{tag:"path",attr:{d:"M19 6.41L17.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"}}]})(e)}function Zj(e){return ka({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"}},{tag:"path",attr:{d:"M7 14H5v5h5v-2H7v-3zm-2-4h2V7h3V5H5v5zm12 7h-3v2h5v-5h-2v3zM14 5v2h3v3h2V5h-5z"}}]})(e)}function $j(e){return ka({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"}},{tag:"path",attr:{d:"M12 3c-.46 0-.93.04-1.4.14-2.76.53-4.96 2.76-5.48 5.52-.48 2.61.48 5.01 2.22 6.56.43.38.66.91.66 1.47V19c0 1.1.9 2 2 2h.28a1.98 1.98 0 003.44 0H14c1.1 0 2-.9 2-2v-2.31c0-.55.22-1.09.64-1.46A6.956 6.956 0 0019 10c0-3.87-3.13-7-7-7zm2 16h-4v-1h4v1zm0-2h-4v-1h4v1zm-1.5-5.59V14h-1v-2.59L9.67 9.59l.71-.71L12 10.5l1.62-1.62.71.71-1.83 1.82z"}}]})(e)}function Jj(e){return ka({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0V0z"}},{tag:"path",attr:{d:"M15.5 14h-.79l-.28-.27A6.471 6.471 0 0016 9.5 6.5 6.5 0 109.5 16c1.61 0 3.09-.59 4.23-1.57l.27.28v.79l5 4.99L20.49 19l-4.99-5zm-6 0C7.01 14 5 11.99 5 9.5S7.01 5 9.5 5 14 7.01 14 9.5 11.99 14 9.5 14z"}}]})(e)}function Qj(e){return ka({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{d:"M11 15h2v2h-2v-2zm0-8h2v6h-2V7zm.99-5C6.47 2 2 6.48 2 12s4.47 10 9.99 10C17.52 22 22 17.52 22 12S17.52 2 11.99 2zM12 20c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8z"}}]})(e)}function eI(e){return ka({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0V0z"}},{tag:"path",attr:{d:"M21.99 4c0-1.1-.89-2-1.99-2H4c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h14l4 4-.01-18zM20 4v13.17L18.83 16H4V4h16zM6 12h12v2H6zm0-3h12v2H6zm0-3h12v2H6z"}}]})(e)}function tI(e){return ka({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0V0z"}},{tag:"path",attr:{d:"M20 2H8c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2V4c0-1.1-.9-2-2-2zm0 14H8V4h12v12zM4 6H2v14c0 1.1.9 2 2 2h14v-2H4V6zm12 6V9c0-.55-.45-1-1-1h-2v5h2c.55 0 1-.45 1-1zm-2-3h1v3h-1V9zm4 2h1v-1h-1V9h1V8h-2v5h1zm-8 0h1c.55 0 1-.45 1-1V9c0-.55-.45-1-1-1H9v5h1v-2zm0-2h1v1h-1V9z"}}]})(e)}function nI(e){return ka({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0V0z"}},{tag:"path",attr:{d:"M7.34 6.41L.86 12.9l6.49 6.48 6.49-6.48-6.5-6.49zM3.69 12.9l3.66-3.66L11 12.9l-3.66 3.66-3.65-3.66zm15.67-6.26A8.95 8.95 0 0013 4V.76L8.76 5 13 9.24V6c1.79 0 3.58.68 4.95 2.05a7.007 7.007 0 010 9.9 6.973 6.973 0 01-7.79 1.44l-1.49 1.49C10.02 21.62 11.51 22 13 22c2.3 0 4.61-.88 6.36-2.64a8.98 8.98 0 000-12.72z"}}]})(e)}function rI(e){return ka({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"}},{tag:"path",attr:{d:"M2 4h15v2H2zM15 17h2v-3h1v-2l-1-5H2l-1 5v2h1v6h9v-6h4v3zm-6 1H4v-4h5v4zm-5.96-6l.6-3h11.72l.6 3H3.04z"}},{tag:"path",attr:{d:"M23 18h-3v-3h-2v3h-3v2h3v3h2v-3h3z"}}]})(e)}function iI(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function oI(e,t){if(e){if("string"===typeof e)return iI(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?iI(e,t):void 0}}function sI(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,i,o,s,a=[],l=!0,c=!1;try{if(o=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;l=!1}else for(;!(l=(r=o.call(n)).done)&&(a.push(r.value),a.length!==t);l=!0);}catch(e){c=!0,i=e}finally{try{if(!l&&null!=n.return&&(s=n.return(),Object(s)!==s))return}finally{if(c)throw i}}return a}}(e,t)||oI(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function aI(e,t){if(null==e)return{};var n,r,i=(0,Tt.c)(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}var lI=["defaultInputValue","defaultMenuIsOpen","defaultValue","inputValue","menuIsOpen","onChange","onInputChange","onMenuClose","onMenuOpen","value"];function cI(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,P(r.key),r)}}function uI(e){return uI=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},uI(e)}function dI(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(dI=function(){return!!e})()}function hI(e){var t=dI();return function(){var n,r=uI(e);if(t){var i=uI(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return function(e,t){if(t&&("object"===E(t)||"function"===typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return Is(e)}(this,n)}}function pI(e){return function(e){if(Array.isArray(e))return iI(e)}(e)||function(e){if("undefined"!==typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||oI(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}Math.min,Math.max;const fI=["top","right","bottom","left"];fI.reduce(((e,t)=>e.concat(t,t+"-start",t+"-end")),[]);function gI(e){var t;return(null==(t=e.ownerDocument)?void 0:t.defaultView)||window}function mI(e){return gI(e).getComputedStyle(e)}function yI(e){return SI(e)?(e.nodeName||"").toLowerCase():""}let vI;function _I(){if(vI)return vI;const e=navigator.userAgentData;return e&&Array.isArray(e.brands)?(vI=e.brands.map((e=>e.brand+"/"+e.version)).join(" "),vI):navigator.userAgent}function bI(e){return e instanceof gI(e).HTMLElement}function xI(e){return e instanceof gI(e).Element}function SI(e){return e instanceof gI(e).Node}function wI(e){return"undefined"!=typeof ShadowRoot&&(e instanceof gI(e).ShadowRoot||e instanceof ShadowRoot)}function EI(e){const{overflow:t,overflowX:n,overflowY:r,display:i}=mI(e);return/auto|scroll|overlay|hidden/.test(t+r+n)&&!["inline","contents"].includes(i)}function PI(){return!/^((?!chrome|android).)*safari/i.test(_I())}function CI(e){return["html","body","#document"].includes(yI(e))}const AI={x:1,y:1};function kI(e){const t=!xI(e)&&e.contextElement?e.contextElement:xI(e)?e:null;if(!t)return AI;const n=t.getBoundingClientRect(),r=mI(t);let i=n.width/parseFloat(r.width),o=n.height/parseFloat(r.height);return i&&Number.isFinite(i)||(i=1),o&&Number.isFinite(o)||(o=1),{x:i,y:o}}function jI(e,t,n,r){var i,o,s,a;void 0===t&&(t=!1),void 0===n&&(n=!1);const l=e.getBoundingClientRect();let c=AI;t&&(r?xI(r)&&(c=kI(r)):c=kI(e));const u=xI(e)?gI(e):window,d=!PI()&&n,h=(l.left+(d&&null!=(i=null==(o=u.visualViewport)?void 0:o.offsetLeft)?i:0))/c.x,p=(l.top+(d&&null!=(s=null==(a=u.visualViewport)?void 0:a.offsetTop)?s:0))/c.y,f=l.width/c.x,g=l.height/c.y;return{width:f,height:g,top:p,right:h+f,bottom:p+g,left:h,x:h,y:p}}function II(e){return((SI(e)?e.ownerDocument:e.document)||window.document).documentElement}function GI(e){if("html"===yI(e))return e;const t=e.assignedSlot||e.parentNode||(wI(e)?e.host:null)||II(e);return wI(t)?t.host:t}Math.min,Math.max;function TI(e){const t=GI(e);return CI(t)?e.ownerDocument.body:bI(t)&&EI(t)?t:TI(t)}function MI(e,t){var n;void 0===t&&(t=[]);const r=TI(e),i=r===(null==(n=e.ownerDocument)?void 0:n.body),o=gI(r);return i?t.concat(o,o.visualViewport||[],EI(r)?r:[]):t.concat(r,MI(r))}const OI=n.useLayoutEffect;var RI=["className","clearValue","cx","getStyles","getClassNames","getValue","hasValue","isMulti","isRtl","options","selectOption","selectProps","setValue","theme"],DI=function(){};function NI(e,t){return t?"-"===t[0]?e+t:e+"__"+t:e}function LI(e,t){for(var n=arguments.length,r=new Array(n>2?n-2:0),i=2;i<n;i++)r[i-2]=arguments[i];var o=[].concat(r);if(t&&e)for(var s in t)t.hasOwnProperty(s)&&t[s]&&o.push("".concat(NI(e,s)));return o.filter((function(e){return e})).map((function(e){return String(e).trim()})).join(" ")}var VI=function(e){return t=e,Array.isArray(t)?e.filter(Boolean):"object"===E(e)&&null!==e?[e]:[];var t},FI=function(e){return e.className,e.clearValue,e.cx,e.getStyles,e.getClassNames,e.getValue,e.hasValue,e.isMulti,e.isRtl,e.options,e.selectOption,e.selectProps,e.setValue,e.theme,br({},aI(e,RI))},zI=function(e,t,n){var r=e.cx,i=e.getStyles,o=e.getClassNames,s=e.className;return{css:i(t,e),className:r(null!==n&&void 0!==n?n:{},o(t,e),s)}};function BI(e){return[document.documentElement,document.body,window].indexOf(e)>-1}function UI(e){return BI(e)?window.pageYOffset:e.scrollTop}function WI(e,t){BI(e)?window.scrollTo(0,t):e.scrollTop=t}function HI(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:200,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:DI,i=UI(e),o=t-i,s=0;!function t(){var a=function(e,t,n,r){return n*((e=e/r-1)*e*e+1)+t}(s+=10,i,o,n);WI(e,a),s<n?window.requestAnimationFrame(t):r(e)}()}function qI(e,t){var n=e.getBoundingClientRect(),r=t.getBoundingClientRect(),i=t.offsetHeight/3;r.bottom+i>n.bottom?WI(e,Math.min(t.offsetTop+t.clientHeight-e.offsetHeight+i,e.scrollHeight)):r.top-i<n.top&&WI(e,Math.max(t.offsetTop-i,0))}function XI(){try{return document.createEvent("TouchEvent"),!0}catch(e){return!1}}var YI=!1,KI={get passive(){return YI=!0}},ZI="undefined"!==typeof window?window:{};ZI.addEventListener&&ZI.removeEventListener&&(ZI.addEventListener("p",DI,KI),ZI.removeEventListener("p",DI,!1));var $I=YI;function JI(e){return null!=e}function QI(e,t,n){return e?t:n}function eG(e){var t=e.maxHeight,n=e.menuEl,r=e.minHeight,i=e.placement,o=e.shouldScroll,s=e.isFixedPosition,a=e.controlHeight,l=function(e){var t=getComputedStyle(e),n="absolute"===t.position,r=/(auto|scroll)/;if("fixed"===t.position)return document.documentElement;for(var i=e;i=i.parentElement;)if(t=getComputedStyle(i),(!n||"static"!==t.position)&&r.test(t.overflow+t.overflowY+t.overflowX))return i;return document.documentElement}(n),c={placement:"bottom",maxHeight:t};if(!n||!n.offsetParent)return c;var u,d=l.getBoundingClientRect().height,h=n.getBoundingClientRect(),p=h.bottom,f=h.height,g=h.top,m=n.offsetParent.getBoundingClientRect().top,y=s?window.innerHeight:BI(u=l)?window.innerHeight:u.clientHeight,v=UI(l),_=parseInt(getComputedStyle(n).marginBottom,10),b=parseInt(getComputedStyle(n).marginTop,10),x=m-b,S=y-g,w=x+v,E=d-v-g,P=p-y+v+_,C=v+g-b,A=160;switch(i){case"auto":case"bottom":if(S>=f)return{placement:"bottom",maxHeight:t};if(E>=f&&!s)return o&&HI(l,P,A),{placement:"bottom",maxHeight:t};if(!s&&E>=r||s&&S>=r)return o&&HI(l,P,A),{placement:"bottom",maxHeight:s?S-_:E-_};if("auto"===i||s){var k=t,j=s?x:w;return j>=r&&(k=Math.min(j-_-a,t)),{placement:"top",maxHeight:k}}if("bottom"===i)return o&&WI(l,P),{placement:"bottom",maxHeight:t};break;case"top":if(x>=f)return{placement:"top",maxHeight:t};if(w>=f&&!s)return o&&HI(l,C,A),{placement:"top",maxHeight:t};if(!s&&w>=r||s&&x>=r){var I=t;return(!s&&w>=r||s&&x>=r)&&(I=s?x-b:w-b),o&&HI(l,C,A),{placement:"top",maxHeight:I}}return{placement:"bottom",maxHeight:t};default:throw new Error('Invalid placement provided "'.concat(i,'".'))}return c}var tG=function(e){return"auto"===e?"bottom":e},nG=(0,n.createContext)(null),rG=function(e){var t=e.children,r=e.minMenuHeight,i=e.maxMenuHeight,o=e.menuPlacement,s=e.menuPosition,a=e.menuShouldScrollIntoView,l=e.theme,c=((0,n.useContext)(nG)||{}).setPortalPlacement,u=(0,n.useRef)(null),d=sI((0,n.useState)(i),2),h=d[0],p=d[1],f=sI((0,n.useState)(null),2),g=f[0],m=f[1],y=l.spacing.controlHeight;return OI((function(){var e=u.current;if(e){var t="fixed"===s,n=eG({maxHeight:i,menuEl:e,minHeight:r,placement:o,shouldScroll:a&&!t,isFixedPosition:t,controlHeight:y});p(n.maxHeight),m(n.placement),null===c||void 0===c||c(n.placement)}}),[i,o,s,a,r,c,y]),t({ref:u,placerProps:br(br({},e),{},{placement:g||tG(o),maxHeight:h})})},iG=function(e,t){var n=e.theme,r=n.spacing.baseUnit,i=n.colors;return br({textAlign:"center"},t?{}:{color:i.neutral40,padding:"".concat(2*r,"px ").concat(3*r,"px")})},oG=iG,sG=iG,aG=function(e){var t=e.children,n=e.innerProps;return Vs("div",(0,d.c)({},zI(e,"noOptionsMessage",{"menu-notice":!0,"menu-notice--no-options":!0}),n),t)};aG.defaultProps={children:"No options"};var lG=function(e){var t=e.children,n=e.innerProps;return Vs("div",(0,d.c)({},zI(e,"loadingMessage",{"menu-notice":!0,"menu-notice--loading":!0}),n),t)};lG.defaultProps={children:"Loading..."};var cG,uG=["size"];var dG={name:"8mmkcg",styles:"display:inline-block;fill:currentColor;line-height:1;stroke:currentColor;stroke-width:0"},hG=function(e){var t=e.size,n=aI(e,uG);return Vs("svg",(0,d.c)({height:t,width:t,viewBox:"0 0 20 20","aria-hidden":"true",focusable:"false",css:dG},n))},pG=function(e){return Vs(hG,(0,d.c)({size:20},e),Vs("path",{d:"M14.348 14.849c-0.469 0.469-1.229 0.469-1.697 0l-2.651-3.030-2.651 3.029c-0.469 0.469-1.229 0.469-1.697 0-0.469-0.469-0.469-1.229 0-1.697l2.758-3.15-2.759-3.152c-0.469-0.469-0.469-1.228 0-1.697s1.228-0.469 1.697 0l2.652 3.031 2.651-3.031c0.469-0.469 1.228-0.469 1.697 0s0.469 1.229 0 1.697l-2.758 3.152 2.758 3.15c0.469 0.469 0.469 1.229 0 1.698z"}))},fG=function(e){return Vs(hG,(0,d.c)({size:20},e),Vs("path",{d:"M4.516 7.548c0.436-0.446 1.043-0.481 1.576 0l3.908 3.747 3.908-3.747c0.533-0.481 1.141-0.446 1.574 0 0.436 0.445 0.408 1.197 0 1.615-0.406 0.418-4.695 4.502-4.695 4.502-0.217 0.223-0.502 0.335-0.787 0.335s-0.57-0.112-0.789-0.335c0 0-4.287-4.084-4.695-4.502s-0.436-1.17 0-1.615z"}))},gG=function(e,t){var n=e.isFocused,r=e.theme,i=r.spacing.baseUnit,o=r.colors;return br({label:"indicatorContainer",display:"flex",transition:"color 150ms"},t?{}:{color:n?o.neutral60:o.neutral20,padding:2*i,":hover":{color:n?o.neutral80:o.neutral40}})},mG=gG,yG=gG,vG=Bs(cG||(cG=js(["\n  0%, 80%, 100% { opacity: 0; }\n  40% { opacity: 1; }\n"]))),_G=function(e){var t=e.delay,n=e.offset;return Vs("span",{css:zs({animation:"".concat(vG," 1s ease-in-out ").concat(t,"ms infinite;"),backgroundColor:"currentColor",borderRadius:"1em",display:"inline-block",marginLeft:n?"1em":void 0,height:"1em",verticalAlign:"top",width:"1em"},"","")})},bG=function(e){var t=e.innerProps,n=e.isRtl;return Vs("div",(0,d.c)({},zI(e,"loadingIndicator",{indicator:!0,"loading-indicator":!0}),t),Vs(_G,{delay:0,offset:n}),Vs(_G,{delay:160,offset:!0}),Vs(_G,{delay:320,offset:!n}))};bG.defaultProps={size:4};var xG=["data"],SG=["innerRef","isDisabled","isHidden","inputClassName"],wG={gridArea:"1 / 2",font:"inherit",minWidth:"2px",border:0,margin:0,outline:0,padding:0},EG={flex:"1 1 auto",display:"inline-grid",gridArea:"1 / 1 / 2 / 3",gridTemplateColumns:"0 min-content","&:after":br({content:'attr(data-value) " "',visibility:"hidden",whiteSpace:"pre"},wG)},PG=function(e){return br({label:"input",color:"inherit",background:0,opacity:e?0:1,width:"100%"},wG)},CG=function(e){var t=e.children,n=e.innerProps;return Vs("div",n,t)};var AG={ClearIndicator:function(e){var t=e.children,n=e.innerProps;return Vs("div",(0,d.c)({},zI(e,"clearIndicator",{indicator:!0,"clear-indicator":!0}),n),t||Vs(pG,null))},Control:function(e){var t=e.children,n=e.isDisabled,r=e.isFocused,i=e.innerRef,o=e.innerProps,s=e.menuIsOpen;return Vs("div",(0,d.c)({ref:i},zI(e,"control",{control:!0,"control--is-disabled":n,"control--is-focused":r,"control--menu-is-open":s}),o),t)},DropdownIndicator:function(e){var t=e.children,n=e.innerProps;return Vs("div",(0,d.c)({},zI(e,"dropdownIndicator",{indicator:!0,"dropdown-indicator":!0}),n),t||Vs(fG,null))},DownChevron:fG,CrossIcon:pG,Group:function(e){var t=e.children,n=e.cx,r=e.getStyles,i=e.getClassNames,o=e.Heading,s=e.headingProps,a=e.innerProps,l=e.label,c=e.theme,u=e.selectProps;return Vs("div",(0,d.c)({},zI(e,"group",{group:!0}),a),Vs(o,(0,d.c)({},s,{selectProps:u,theme:c,getStyles:r,getClassNames:i,cx:n}),l),Vs("div",null,t))},GroupHeading:function(e){var t=FI(e);t.data;var n=aI(t,xG);return Vs("div",(0,d.c)({},zI(e,"groupHeading",{"group-heading":!0}),n))},IndicatorsContainer:function(e){var t=e.children,n=e.innerProps;return Vs("div",(0,d.c)({},zI(e,"indicatorsContainer",{indicators:!0}),n),t)},IndicatorSeparator:function(e){var t=e.innerProps;return Vs("span",(0,d.c)({},t,zI(e,"indicatorSeparator",{"indicator-separator":!0})))},Input:function(e){var t=e.cx,n=e.value,r=FI(e),i=r.innerRef,o=r.isDisabled,s=r.isHidden,a=r.inputClassName,l=aI(r,SG);return Vs("div",(0,d.c)({},zI(e,"input",{"input-container":!0}),{"data-value":n||""}),Vs("input",(0,d.c)({className:t({input:!0},a),ref:i,style:PG(s),disabled:o},l)))},LoadingIndicator:bG,Menu:function(e){var t=e.children,n=e.innerRef,r=e.innerProps;return Vs("div",(0,d.c)({},zI(e,"menu",{menu:!0}),{ref:n},r),t)},MenuList:function(e){var t=e.children,n=e.innerProps,r=e.innerRef,i=e.isMulti;return Vs("div",(0,d.c)({},zI(e,"menuList",{"menu-list":!0,"menu-list--is-multi":i}),{ref:r},n),t)},MenuPortal:function(e){var t=e.appendTo,r=e.children,i=e.controlElement,o=e.innerProps,s=e.menuPlacement,a=e.menuPosition,l=(0,n.useRef)(null),c=(0,n.useRef)(null),u=sI((0,n.useState)(tG(s)),2),h=u[0],p=u[1],f=(0,n.useMemo)((function(){return{setPortalPlacement:p}}),[]),g=sI((0,n.useState)(null),2),m=g[0],y=g[1],v=(0,n.useCallback)((function(){if(i){var e=function(e){var t=e.getBoundingClientRect();return{bottom:t.bottom,height:t.height,left:t.left,right:t.right,top:t.top,width:t.width}}(i),t="fixed"===a?0:window.pageYOffset,n=e[h]+t;n===(null===m||void 0===m?void 0:m.offset)&&e.left===(null===m||void 0===m?void 0:m.rect.left)&&e.width===(null===m||void 0===m?void 0:m.rect.width)||y({offset:n,rect:e})}}),[i,a,h,null===m||void 0===m?void 0:m.offset,null===m||void 0===m?void 0:m.rect.left,null===m||void 0===m?void 0:m.rect.width]);OI((function(){v()}),[v]);var _=(0,n.useCallback)((function(){"function"===typeof c.current&&(c.current(),c.current=null),i&&l.current&&(c.current=function(e,t,n,r){void 0===r&&(r={});const{ancestorScroll:i=!0,ancestorResize:o=!0,elementResize:s=!0,animationFrame:a=!1}=r,l=i&&!a,c=l||o?[...xI(e)?MI(e):e.contextElement?MI(e.contextElement):[],...MI(t)]:[];c.forEach((e=>{l&&e.addEventListener("scroll",n,{passive:!0}),o&&e.addEventListener("resize",n)}));let u,d=null;if(s){let r=!0;d=new ResizeObserver((()=>{r||n(),r=!1})),xI(e)&&!a&&d.observe(e),xI(e)||!e.contextElement||a||d.observe(e.contextElement),d.observe(t)}let h=a?jI(e):null;return a&&function t(){const r=jI(e);!h||r.x===h.x&&r.y===h.y&&r.width===h.width&&r.height===h.height||n(),h=r,u=requestAnimationFrame(t)}(),n(),()=>{var e;c.forEach((e=>{l&&e.removeEventListener("scroll",n),o&&e.removeEventListener("resize",n)})),null==(e=d)||e.disconnect(),d=null,a&&cancelAnimationFrame(u)}}(i,l.current,v,{elementResize:"ResizeObserver"in window}))}),[i,v]);OI((function(){_()}),[_]);var b=(0,n.useCallback)((function(e){l.current=e,_()}),[_]);if(!t&&"fixed"!==a||!m)return null;var S=Vs("div",(0,d.c)({ref:b},zI(br(br({},e),{},{offset:m.offset,position:a,rect:m.rect}),"menuPortal",{"menu-portal":!0}),o),r);return Vs(nG.Provider,{value:f},t?(0,x.createPortal)(S,t):S)},LoadingMessage:lG,NoOptionsMessage:aG,MultiValue:function(e){var t=e.children,n=e.components,r=e.data,i=e.innerProps,o=e.isDisabled,s=e.removeProps,a=e.selectProps,l=n.Container,c=n.Label,u=n.Remove;return Vs(l,{data:r,innerProps:br(br({},zI(e,"multiValue",{"multi-value":!0,"multi-value--is-disabled":o})),i),selectProps:a},Vs(c,{data:r,innerProps:br({},zI(e,"multiValueLabel",{"multi-value__label":!0})),selectProps:a},t),Vs(u,{data:r,innerProps:br(br({},zI(e,"multiValueRemove",{"multi-value__remove":!0})),{},{"aria-label":"Remove ".concat(t||"option")},s),selectProps:a}))},MultiValueContainer:CG,MultiValueLabel:CG,MultiValueRemove:function(e){var t=e.children,n=e.innerProps;return Vs("div",(0,d.c)({role:"button"},n),t||Vs(pG,{size:14}))},Option:function(e){var t=e.children,n=e.isDisabled,r=e.isFocused,i=e.isSelected,o=e.innerRef,s=e.innerProps;return Vs("div",(0,d.c)({},zI(e,"option",{option:!0,"option--is-disabled":n,"option--is-focused":r,"option--is-selected":i}),{ref:o,"aria-disabled":n},s),t)},Placeholder:function(e){var t=e.children,n=e.innerProps;return Vs("div",(0,d.c)({},zI(e,"placeholder",{placeholder:!0}),n),t)},SelectContainer:function(e){var t=e.children,n=e.innerProps,r=e.isDisabled,i=e.isRtl;return Vs("div",(0,d.c)({},zI(e,"container",{"--is-disabled":r,"--is-rtl":i}),n),t)},SingleValue:function(e){var t=e.children,n=e.isDisabled,r=e.innerProps;return Vs("div",(0,d.c)({},zI(e,"singleValue",{"single-value":!0,"single-value--is-disabled":n}),r),t)},ValueContainer:function(e){var t=e.children,n=e.innerProps,r=e.isMulti,i=e.hasValue;return Vs("div",(0,d.c)({},zI(e,"valueContainer",{"value-container":!0,"value-container--is-multi":r,"value-container--has-value":i}),n),t)}},kG=Number.isNaN||function(e){return"number"===typeof e&&e!==e};function jG(e,t){return e===t||!(!kG(e)||!kG(t))}function IG(e,t){if(e.length!==t.length)return!1;for(var n=0;n<e.length;n++)if(!jG(e[n],t[n]))return!1;return!0}for(var GG={name:"7pg0cj-a11yText",styles:"label:a11yText;z-index:9999;border:0;clip:rect(1px, 1px, 1px, 1px);height:1px;width:1px;position:absolute;overflow:hidden;padding:0;white-space:nowrap"},TG=function(e){return Vs("span",(0,d.c)({css:GG},e))},MG={guidance:function(e){var t=e.isSearchable,n=e.isMulti,r=e.isDisabled,i=e.tabSelectsValue;switch(e.context){case"menu":return"Use Up and Down to choose options".concat(r?"":", press Enter to select the currently focused option",", press Escape to exit the menu").concat(i?", press Tab to select the option and exit the menu":"",".");case"input":return"".concat(e["aria-label"]||"Select"," is focused ").concat(t?",type to refine list":"",", press Down to open the menu, ").concat(n?" press left to focus selected values":"");case"value":return"Use left and right to toggle between focused values, press Backspace to remove the currently focused value";default:return""}},onChange:function(e){var t=e.action,n=e.label,r=void 0===n?"":n,i=e.labels,o=e.isDisabled;switch(t){case"deselect-option":case"pop-value":case"remove-value":return"option ".concat(r,", deselected.");case"clear":return"All selected options have been cleared.";case"initial-input-focus":return"option".concat(i.length>1?"s":""," ").concat(i.join(","),", selected.");case"select-option":return"option ".concat(r,o?" is disabled. Select another option.":", selected.");default:return""}},onFocus:function(e){var t=e.context,n=e.focused,r=e.options,i=e.label,o=void 0===i?"":i,s=e.selectValue,a=e.isDisabled,l=e.isSelected,c=function(e,t){return e&&e.length?"".concat(e.indexOf(t)+1," of ").concat(e.length):""};if("value"===t&&s)return"value ".concat(o," focused, ").concat(c(s,n),".");if("menu"===t){var u=a?" disabled":"",d="".concat(l?"selected":"focused").concat(u);return"option ".concat(o," ").concat(d,", ").concat(c(r,n),".")}return""},onFilter:function(e){var t=e.inputValue,n=e.resultsMessage;return"".concat(n).concat(t?" for search term "+t:"",".")}},OG=function(e){var t=e.ariaSelection,r=e.focusedOption,i=e.focusedValue,o=e.focusableOptions,s=e.isFocused,a=e.selectValue,l=e.selectProps,c=e.id,u=l.ariaLiveMessages,d=l.getOptionLabel,h=l.inputValue,p=l.isMulti,f=l.isOptionDisabled,g=l.isSearchable,m=l.menuIsOpen,y=l.options,v=l.screenReaderStatus,_=l.tabSelectsValue,b=l["aria-label"],x=l["aria-live"],S=(0,n.useMemo)((function(){return br(br({},MG),u||{})}),[u]),w=(0,n.useMemo)((function(){var e,n="";if(t&&S.onChange){var r=t.option,i=t.options,o=t.removedValue,s=t.removedValues,l=t.value,c=o||r||(e=l,Array.isArray(e)?null:e),u=c?d(c):"",h=i||s||void 0,p=h?h.map(d):[],g=br({isDisabled:c&&f(c,a),label:u,labels:p},t);n=S.onChange(g)}return n}),[t,S,f,a,d]),E=(0,n.useMemo)((function(){var e="",t=r||i,n=!!(r&&a&&a.includes(r));if(t&&S.onFocus){var s={focused:t,label:d(t),isDisabled:f(t,a),isSelected:n,options:o,context:t===r?"menu":"value",selectValue:a};e=S.onFocus(s)}return e}),[r,i,d,f,S,o,a]),P=(0,n.useMemo)((function(){var e="";if(m&&y.length&&S.onFilter){var t=v({count:o.length});e=S.onFilter({inputValue:h,resultsMessage:t})}return e}),[o,h,m,S,y,v]),C=(0,n.useMemo)((function(){var e="";if(S.guidance){var t=i?"value":m?"menu":"input";e=S.guidance({"aria-label":b,context:t,isDisabled:r&&f(r,a),isMulti:p,isSearchable:g,tabSelectsValue:_})}return e}),[b,r,i,p,f,g,m,S,a,_]),A="".concat(E," ").concat(P," ").concat(C),k=Vs(n.Fragment,null,Vs("span",{id:"aria-selection"},w),Vs("span",{id:"aria-context"},A)),j="initial-input-focus"===(null===t||void 0===t?void 0:t.action);return Vs(n.Fragment,null,Vs(TG,{id:c},j&&k),Vs(TG,{"aria-live":x,"aria-atomic":"false","aria-relevant":"additions text"},s&&!j&&k))},RG=[{base:"A",letters:"A\u24b6\uff21\xc0\xc1\xc2\u1ea6\u1ea4\u1eaa\u1ea8\xc3\u0100\u0102\u1eb0\u1eae\u1eb4\u1eb2\u0226\u01e0\xc4\u01de\u1ea2\xc5\u01fa\u01cd\u0200\u0202\u1ea0\u1eac\u1eb6\u1e00\u0104\u023a\u2c6f"},{base:"AA",letters:"\ua732"},{base:"AE",letters:"\xc6\u01fc\u01e2"},{base:"AO",letters:"\ua734"},{base:"AU",letters:"\ua736"},{base:"AV",letters:"\ua738\ua73a"},{base:"AY",letters:"\ua73c"},{base:"B",letters:"B\u24b7\uff22\u1e02\u1e04\u1e06\u0243\u0182\u0181"},{base:"C",letters:"C\u24b8\uff23\u0106\u0108\u010a\u010c\xc7\u1e08\u0187\u023b\ua73e"},{base:"D",letters:"D\u24b9\uff24\u1e0a\u010e\u1e0c\u1e10\u1e12\u1e0e\u0110\u018b\u018a\u0189\ua779"},{base:"DZ",letters:"\u01f1\u01c4"},{base:"Dz",letters:"\u01f2\u01c5"},{base:"E",letters:"E\u24ba\uff25\xc8\xc9\xca\u1ec0\u1ebe\u1ec4\u1ec2\u1ebc\u0112\u1e14\u1e16\u0114\u0116\xcb\u1eba\u011a\u0204\u0206\u1eb8\u1ec6\u0228\u1e1c\u0118\u1e18\u1e1a\u0190\u018e"},{base:"F",letters:"F\u24bb\uff26\u1e1e\u0191\ua77b"},{base:"G",letters:"G\u24bc\uff27\u01f4\u011c\u1e20\u011e\u0120\u01e6\u0122\u01e4\u0193\ua7a0\ua77d\ua77e"},{base:"H",letters:"H\u24bd\uff28\u0124\u1e22\u1e26\u021e\u1e24\u1e28\u1e2a\u0126\u2c67\u2c75\ua78d"},{base:"I",letters:"I\u24be\uff29\xcc\xcd\xce\u0128\u012a\u012c\u0130\xcf\u1e2e\u1ec8\u01cf\u0208\u020a\u1eca\u012e\u1e2c\u0197"},{base:"J",letters:"J\u24bf\uff2a\u0134\u0248"},{base:"K",letters:"K\u24c0\uff2b\u1e30\u01e8\u1e32\u0136\u1e34\u0198\u2c69\ua740\ua742\ua744\ua7a2"},{base:"L",letters:"L\u24c1\uff2c\u013f\u0139\u013d\u1e36\u1e38\u013b\u1e3c\u1e3a\u0141\u023d\u2c62\u2c60\ua748\ua746\ua780"},{base:"LJ",letters:"\u01c7"},{base:"Lj",letters:"\u01c8"},{base:"M",letters:"M\u24c2\uff2d\u1e3e\u1e40\u1e42\u2c6e\u019c"},{base:"N",letters:"N\u24c3\uff2e\u01f8\u0143\xd1\u1e44\u0147\u1e46\u0145\u1e4a\u1e48\u0220\u019d\ua790\ua7a4"},{base:"NJ",letters:"\u01ca"},{base:"Nj",letters:"\u01cb"},{base:"O",letters:"O\u24c4\uff2f\xd2\xd3\xd4\u1ed2\u1ed0\u1ed6\u1ed4\xd5\u1e4c\u022c\u1e4e\u014c\u1e50\u1e52\u014e\u022e\u0230\xd6\u022a\u1ece\u0150\u01d1\u020c\u020e\u01a0\u1edc\u1eda\u1ee0\u1ede\u1ee2\u1ecc\u1ed8\u01ea\u01ec\xd8\u01fe\u0186\u019f\ua74a\ua74c"},{base:"OI",letters:"\u01a2"},{base:"OO",letters:"\ua74e"},{base:"OU",letters:"\u0222"},{base:"P",letters:"P\u24c5\uff30\u1e54\u1e56\u01a4\u2c63\ua750\ua752\ua754"},{base:"Q",letters:"Q\u24c6\uff31\ua756\ua758\u024a"},{base:"R",letters:"R\u24c7\uff32\u0154\u1e58\u0158\u0210\u0212\u1e5a\u1e5c\u0156\u1e5e\u024c\u2c64\ua75a\ua7a6\ua782"},{base:"S",letters:"S\u24c8\uff33\u1e9e\u015a\u1e64\u015c\u1e60\u0160\u1e66\u1e62\u1e68\u0218\u015e\u2c7e\ua7a8\ua784"},{base:"T",letters:"T\u24c9\uff34\u1e6a\u0164\u1e6c\u021a\u0162\u1e70\u1e6e\u0166\u01ac\u01ae\u023e\ua786"},{base:"TZ",letters:"\ua728"},{base:"U",letters:"U\u24ca\uff35\xd9\xda\xdb\u0168\u1e78\u016a\u1e7a\u016c\xdc\u01db\u01d7\u01d5\u01d9\u1ee6\u016e\u0170\u01d3\u0214\u0216\u01af\u1eea\u1ee8\u1eee\u1eec\u1ef0\u1ee4\u1e72\u0172\u1e76\u1e74\u0244"},{base:"V",letters:"V\u24cb\uff36\u1e7c\u1e7e\u01b2\ua75e\u0245"},{base:"VY",letters:"\ua760"},{base:"W",letters:"W\u24cc\uff37\u1e80\u1e82\u0174\u1e86\u1e84\u1e88\u2c72"},{base:"X",letters:"X\u24cd\uff38\u1e8a\u1e8c"},{base:"Y",letters:"Y\u24ce\uff39\u1ef2\xdd\u0176\u1ef8\u0232\u1e8e\u0178\u1ef6\u1ef4\u01b3\u024e\u1efe"},{base:"Z",letters:"Z\u24cf\uff3a\u0179\u1e90\u017b\u017d\u1e92\u1e94\u01b5\u0224\u2c7f\u2c6b\ua762"},{base:"a",letters:"a\u24d0\uff41\u1e9a\xe0\xe1\xe2\u1ea7\u1ea5\u1eab\u1ea9\xe3\u0101\u0103\u1eb1\u1eaf\u1eb5\u1eb3\u0227\u01e1\xe4\u01df\u1ea3\xe5\u01fb\u01ce\u0201\u0203\u1ea1\u1ead\u1eb7\u1e01\u0105\u2c65\u0250"},{base:"aa",letters:"\ua733"},{base:"ae",letters:"\xe6\u01fd\u01e3"},{base:"ao",letters:"\ua735"},{base:"au",letters:"\ua737"},{base:"av",letters:"\ua739\ua73b"},{base:"ay",letters:"\ua73d"},{base:"b",letters:"b\u24d1\uff42\u1e03\u1e05\u1e07\u0180\u0183\u0253"},{base:"c",letters:"c\u24d2\uff43\u0107\u0109\u010b\u010d\xe7\u1e09\u0188\u023c\ua73f\u2184"},{base:"d",letters:"d\u24d3\uff44\u1e0b\u010f\u1e0d\u1e11\u1e13\u1e0f\u0111\u018c\u0256\u0257\ua77a"},{base:"dz",letters:"\u01f3\u01c6"},{base:"e",letters:"e\u24d4\uff45\xe8\xe9\xea\u1ec1\u1ebf\u1ec5\u1ec3\u1ebd\u0113\u1e15\u1e17\u0115\u0117\xeb\u1ebb\u011b\u0205\u0207\u1eb9\u1ec7\u0229\u1e1d\u0119\u1e19\u1e1b\u0247\u025b\u01dd"},{base:"f",letters:"f\u24d5\uff46\u1e1f\u0192\ua77c"},{base:"g",letters:"g\u24d6\uff47\u01f5\u011d\u1e21\u011f\u0121\u01e7\u0123\u01e5\u0260\ua7a1\u1d79\ua77f"},{base:"h",letters:"h\u24d7\uff48\u0125\u1e23\u1e27\u021f\u1e25\u1e29\u1e2b\u1e96\u0127\u2c68\u2c76\u0265"},{base:"hv",letters:"\u0195"},{base:"i",letters:"i\u24d8\uff49\xec\xed\xee\u0129\u012b\u012d\xef\u1e2f\u1ec9\u01d0\u0209\u020b\u1ecb\u012f\u1e2d\u0268\u0131"},{base:"j",letters:"j\u24d9\uff4a\u0135\u01f0\u0249"},{base:"k",letters:"k\u24da\uff4b\u1e31\u01e9\u1e33\u0137\u1e35\u0199\u2c6a\ua741\ua743\ua745\ua7a3"},{base:"l",letters:"l\u24db\uff4c\u0140\u013a\u013e\u1e37\u1e39\u013c\u1e3d\u1e3b\u017f\u0142\u019a\u026b\u2c61\ua749\ua781\ua747"},{base:"lj",letters:"\u01c9"},{base:"m",letters:"m\u24dc\uff4d\u1e3f\u1e41\u1e43\u0271\u026f"},{base:"n",letters:"n\u24dd\uff4e\u01f9\u0144\xf1\u1e45\u0148\u1e47\u0146\u1e4b\u1e49\u019e\u0272\u0149\ua791\ua7a5"},{base:"nj",letters:"\u01cc"},{base:"o",letters:"o\u24de\uff4f\xf2\xf3\xf4\u1ed3\u1ed1\u1ed7\u1ed5\xf5\u1e4d\u022d\u1e4f\u014d\u1e51\u1e53\u014f\u022f\u0231\xf6\u022b\u1ecf\u0151\u01d2\u020d\u020f\u01a1\u1edd\u1edb\u1ee1\u1edf\u1ee3\u1ecd\u1ed9\u01eb\u01ed\xf8\u01ff\u0254\ua74b\ua74d\u0275"},{base:"oi",letters:"\u01a3"},{base:"ou",letters:"\u0223"},{base:"oo",letters:"\ua74f"},{base:"p",letters:"p\u24df\uff50\u1e55\u1e57\u01a5\u1d7d\ua751\ua753\ua755"},{base:"q",letters:"q\u24e0\uff51\u024b\ua757\ua759"},{base:"r",letters:"r\u24e1\uff52\u0155\u1e59\u0159\u0211\u0213\u1e5b\u1e5d\u0157\u1e5f\u024d\u027d\ua75b\ua7a7\ua783"},{base:"s",letters:"s\u24e2\uff53\xdf\u015b\u1e65\u015d\u1e61\u0161\u1e67\u1e63\u1e69\u0219\u015f\u023f\ua7a9\ua785\u1e9b"},{base:"t",letters:"t\u24e3\uff54\u1e6b\u1e97\u0165\u1e6d\u021b\u0163\u1e71\u1e6f\u0167\u01ad\u0288\u2c66\ua787"},{base:"tz",letters:"\ua729"},{base:"u",letters:"u\u24e4\uff55\xf9\xfa\xfb\u0169\u1e79\u016b\u1e7b\u016d\xfc\u01dc\u01d8\u01d6\u01da\u1ee7\u016f\u0171\u01d4\u0215\u0217\u01b0\u1eeb\u1ee9\u1eef\u1eed\u1ef1\u1ee5\u1e73\u0173\u1e77\u1e75\u0289"},{base:"v",letters:"v\u24e5\uff56\u1e7d\u1e7f\u028b\ua75f\u028c"},{base:"vy",letters:"\ua761"},{base:"w",letters:"w\u24e6\uff57\u1e81\u1e83\u0175\u1e87\u1e85\u1e98\u1e89\u2c73"},{base:"x",letters:"x\u24e7\uff58\u1e8b\u1e8d"},{base:"y",letters:"y\u24e8\uff59\u1ef3\xfd\u0177\u1ef9\u0233\u1e8f\xff\u1ef7\u1e99\u1ef5\u01b4\u024f\u1eff"},{base:"z",letters:"z\u24e9\uff5a\u017a\u1e91\u017c\u017e\u1e93\u1e95\u01b6\u0225\u0240\u2c6c\ua763"}],DG=new RegExp("["+RG.map((function(e){return e.letters})).join("")+"]","g"),NG={},LG=0;LG<RG.length;LG++)for(var VG=RG[LG],FG=0;FG<VG.letters.length;FG++)NG[VG.letters[FG]]=VG.base;var zG=function(e){return e.replace(DG,(function(e){return NG[e]}))},BG=function(e,t){void 0===t&&(t=IG);var n=null;function r(){for(var r=[],i=0;i<arguments.length;i++)r[i]=arguments[i];if(n&&n.lastThis===this&&t(r,n.lastArgs))return n.lastResult;var o=e.apply(this,r);return n={lastResult:o,lastArgs:r,lastThis:this},o}return r.clear=function(){n=null},r}(zG),UG=function(e){return e.replace(/^\s+|\s+$/g,"")},WG=function(e){return"".concat(e.label," ").concat(e.value)},HG=["innerRef"];function qG(e){var t=e.innerRef,n=function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];var i=Object.entries(e).filter((function(e){var t=sI(e,1)[0];return!n.includes(t)}));return i.reduce((function(e,t){var n=sI(t,2),r=n[0],i=n[1];return e[r]=i,e}),{})}(aI(e,HG),"onExited","in","enter","exit","appear");return Vs("input",(0,d.c)({ref:t},n,{css:zs({label:"dummyInput",background:0,border:0,caretColor:"transparent",fontSize:"inherit",gridArea:"1 / 1 / 2 / 3",outline:0,padding:0,width:1,color:"transparent",left:-100,opacity:0,position:"relative",transform:"scale(.01)"},"","")}))}var XG=function(e){e.preventDefault(),e.stopPropagation()};var YG=["boxSizing","height","overflow","paddingRight","position"],KG={boxSizing:"border-box",overflow:"hidden",position:"relative",height:"100%"};function ZG(e){e.preventDefault()}function $G(e){e.stopPropagation()}function JG(){var e=this.scrollTop,t=this.scrollHeight,n=e+this.offsetHeight;0===e?this.scrollTop=1:n===t&&(this.scrollTop=e-1)}function QG(){return"ontouchstart"in window||navigator.maxTouchPoints}var eT=!("undefined"===typeof window||!window.document||!window.document.createElement),tT=0,nT={capture:!1,passive:!1};var rT=function(){return document.activeElement&&document.activeElement.blur()},iT={name:"1kfdb0e",styles:"position:fixed;left:0;bottom:0;right:0;top:0"};function oT(e){var t=e.children,r=e.lockEnabled,i=e.captureEnabled,o=function(e){var t=e.isEnabled,r=e.onBottomArrive,i=e.onBottomLeave,o=e.onTopArrive,s=e.onTopLeave,a=(0,n.useRef)(!1),l=(0,n.useRef)(!1),c=(0,n.useRef)(0),u=(0,n.useRef)(null),d=(0,n.useCallback)((function(e,t){if(null!==u.current){var n=u.current,c=n.scrollTop,d=n.scrollHeight,h=n.clientHeight,p=u.current,f=t>0,g=d-h-c,m=!1;g>t&&a.current&&(i&&i(e),a.current=!1),f&&l.current&&(s&&s(e),l.current=!1),f&&t>g?(r&&!a.current&&r(e),p.scrollTop=d,m=!0,a.current=!0):!f&&-t>c&&(o&&!l.current&&o(e),p.scrollTop=0,m=!0,l.current=!0),m&&XG(e)}}),[r,i,o,s]),h=(0,n.useCallback)((function(e){d(e,e.deltaY)}),[d]),p=(0,n.useCallback)((function(e){c.current=e.changedTouches[0].clientY}),[]),f=(0,n.useCallback)((function(e){var t=c.current-e.changedTouches[0].clientY;d(e,t)}),[d]),g=(0,n.useCallback)((function(e){if(e){var t=!!$I&&{passive:!1};e.addEventListener("wheel",h,t),e.addEventListener("touchstart",p,t),e.addEventListener("touchmove",f,t)}}),[f,p,h]),m=(0,n.useCallback)((function(e){e&&(e.removeEventListener("wheel",h,!1),e.removeEventListener("touchstart",p,!1),e.removeEventListener("touchmove",f,!1))}),[f,p,h]);return(0,n.useEffect)((function(){if(t){var e=u.current;return g(e),function(){m(e)}}}),[t,g,m]),function(e){u.current=e}}({isEnabled:void 0===i||i,onBottomArrive:e.onBottomArrive,onBottomLeave:e.onBottomLeave,onTopArrive:e.onTopArrive,onTopLeave:e.onTopLeave}),s=function(e){var t=e.isEnabled,r=e.accountForScrollbars,i=void 0===r||r,o=(0,n.useRef)({}),s=(0,n.useRef)(null),a=(0,n.useCallback)((function(e){if(eT){var t=document.body,n=t&&t.style;if(i&&YG.forEach((function(e){var t=n&&n[e];o.current[e]=t})),i&&tT<1){var r=parseInt(o.current.paddingRight,10)||0,s=document.body?document.body.clientWidth:0,a=window.innerWidth-s+r||0;Object.keys(KG).forEach((function(e){var t=KG[e];n&&(n[e]=t)})),n&&(n.paddingRight="".concat(a,"px"))}t&&QG()&&(t.addEventListener("touchmove",ZG,nT),e&&(e.addEventListener("touchstart",JG,nT),e.addEventListener("touchmove",$G,nT))),tT+=1}}),[i]),l=(0,n.useCallback)((function(e){if(eT){var t=document.body,n=t&&t.style;tT=Math.max(tT-1,0),i&&tT<1&&YG.forEach((function(e){var t=o.current[e];n&&(n[e]=t)})),t&&QG()&&(t.removeEventListener("touchmove",ZG,nT),e&&(e.removeEventListener("touchstart",JG,nT),e.removeEventListener("touchmove",$G,nT)))}}),[i]);return(0,n.useEffect)((function(){if(t){var e=s.current;return a(e),function(){l(e)}}}),[t,a,l]),function(e){s.current=e}}({isEnabled:r});return Vs(n.Fragment,null,r&&Vs("div",{onClick:rT,css:iT}),t((function(e){o(e),s(e)})))}var sT={name:"1a0ro4n-requiredInput",styles:"label:requiredInput;opacity:0;pointer-events:none;position:absolute;bottom:0;left:0;right:0;width:100%"},aT=function(e){var t=e.name,n=e.onFocus;return Vs("input",{required:!0,name:t,tabIndex:-1,onFocus:n,css:sT,value:"",onChange:function(){}})},lT={clearIndicator:yG,container:function(e){var t=e.isDisabled;return{label:"container",direction:e.isRtl?"rtl":void 0,pointerEvents:t?"none":void 0,position:"relative"}},control:function(e,t){var n=e.isDisabled,r=e.isFocused,i=e.theme,o=i.colors,s=i.borderRadius;return br({label:"control",alignItems:"center",cursor:"default",display:"flex",flexWrap:"wrap",justifyContent:"space-between",minHeight:i.spacing.controlHeight,outline:"0 !important",position:"relative",transition:"all 100ms"},t?{}:{backgroundColor:n?o.neutral5:o.neutral0,borderColor:n?o.neutral10:r?o.primary:o.neutral20,borderRadius:s,borderStyle:"solid",borderWidth:1,boxShadow:r?"0 0 0 1px ".concat(o.primary):void 0,"&:hover":{borderColor:r?o.primary:o.neutral30}})},dropdownIndicator:mG,group:function(e,t){var n=e.theme.spacing;return t?{}:{paddingBottom:2*n.baseUnit,paddingTop:2*n.baseUnit}},groupHeading:function(e,t){var n=e.theme,r=n.colors,i=n.spacing;return br({label:"group",cursor:"default",display:"block"},t?{}:{color:r.neutral40,fontSize:"75%",fontWeight:500,marginBottom:"0.25em",paddingLeft:3*i.baseUnit,paddingRight:3*i.baseUnit,textTransform:"uppercase"})},indicatorsContainer:function(){return{alignItems:"center",alignSelf:"stretch",display:"flex",flexShrink:0}},indicatorSeparator:function(e,t){var n=e.isDisabled,r=e.theme,i=r.spacing.baseUnit,o=r.colors;return br({label:"indicatorSeparator",alignSelf:"stretch",width:1},t?{}:{backgroundColor:n?o.neutral10:o.neutral20,marginBottom:2*i,marginTop:2*i})},input:function(e,t){var n=e.isDisabled,r=e.value,i=e.theme,o=i.spacing,s=i.colors;return br(br({visibility:n?"hidden":"visible",transform:r?"translateZ(0)":""},EG),t?{}:{margin:o.baseUnit/2,paddingBottom:o.baseUnit/2,paddingTop:o.baseUnit/2,color:s.neutral80})},loadingIndicator:function(e,t){var n=e.isFocused,r=e.size,i=e.theme,o=i.colors,s=i.spacing.baseUnit;return br({label:"loadingIndicator",display:"flex",transition:"color 150ms",alignSelf:"center",fontSize:r,lineHeight:1,marginRight:r,textAlign:"center",verticalAlign:"middle"},t?{}:{color:n?o.neutral60:o.neutral20,padding:2*s})},loadingMessage:sG,menu:function(e,t){var n,r=e.placement,i=e.theme,o=i.borderRadius,s=i.spacing,a=i.colors;return br((C(n={label:"menu"},function(e){return e?{bottom:"top",top:"bottom"}[e]:"bottom"}(r),"100%"),C(n,"position","absolute"),C(n,"width","100%"),C(n,"zIndex",1),n),t?{}:{backgroundColor:a.neutral0,borderRadius:o,boxShadow:"0 0 0 1px hsla(0, 0%, 0%, 0.1), 0 4px 11px hsla(0, 0%, 0%, 0.1)",marginBottom:s.menuGutter,marginTop:s.menuGutter})},menuList:function(e,t){var n=e.maxHeight,r=e.theme.spacing.baseUnit;return br({maxHeight:n,overflowY:"auto",position:"relative",WebkitOverflowScrolling:"touch"},t?{}:{paddingBottom:r,paddingTop:r})},menuPortal:function(e){var t=e.rect,n=e.offset,r=e.position;return{left:t.left,position:r,top:n,width:t.width,zIndex:1}},multiValue:function(e,t){var n=e.theme,r=n.spacing,i=n.borderRadius,o=n.colors;return br({label:"multiValue",display:"flex",minWidth:0},t?{}:{backgroundColor:o.neutral10,borderRadius:i/2,margin:r.baseUnit/2})},multiValueLabel:function(e,t){var n=e.theme,r=n.borderRadius,i=n.colors,o=e.cropWithEllipsis;return br({overflow:"hidden",textOverflow:o||void 0===o?"ellipsis":void 0,whiteSpace:"nowrap"},t?{}:{borderRadius:r/2,color:i.neutral80,fontSize:"85%",padding:3,paddingLeft:6})},multiValueRemove:function(e,t){var n=e.theme,r=n.spacing,i=n.borderRadius,o=n.colors,s=e.isFocused;return br({alignItems:"center",display:"flex"},t?{}:{borderRadius:i/2,backgroundColor:s?o.dangerLight:void 0,paddingLeft:r.baseUnit,paddingRight:r.baseUnit,":hover":{backgroundColor:o.dangerLight,color:o.danger}})},noOptionsMessage:oG,option:function(e,t){var n=e.isDisabled,r=e.isFocused,i=e.isSelected,o=e.theme,s=o.spacing,a=o.colors;return br({label:"option",cursor:"default",display:"block",fontSize:"inherit",width:"100%",userSelect:"none",WebkitTapHighlightColor:"rgba(0, 0, 0, 0)"},t?{}:{backgroundColor:i?a.primary:r?a.primary25:"transparent",color:n?a.neutral20:i?a.neutral0:"inherit",padding:"".concat(2*s.baseUnit,"px ").concat(3*s.baseUnit,"px"),":active":{backgroundColor:n?void 0:i?a.primary:a.primary50}})},placeholder:function(e,t){var n=e.theme,r=n.spacing,i=n.colors;return br({label:"placeholder",gridArea:"1 / 1 / 2 / 3"},t?{}:{color:i.neutral50,marginLeft:r.baseUnit/2,marginRight:r.baseUnit/2})},singleValue:function(e,t){var n=e.isDisabled,r=e.theme,i=r.spacing,o=r.colors;return br({label:"singleValue",gridArea:"1 / 1 / 2 / 3",maxWidth:"100%",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},t?{}:{color:n?o.neutral40:o.neutral80,marginLeft:i.baseUnit/2,marginRight:i.baseUnit/2})},valueContainer:function(e,t){var n=e.theme.spacing,r=e.isMulti,i=e.hasValue,o=e.selectProps.controlShouldRenderValue;return br({alignItems:"center",display:r&&i&&o?"flex":"grid",flex:1,flexWrap:"wrap",WebkitOverflowScrolling:"touch",position:"relative",overflow:"hidden"},t?{}:{padding:"".concat(n.baseUnit/2,"px ").concat(2*n.baseUnit,"px")})}};var cT={borderRadius:4,colors:{primary:"#2684FF",primary75:"#4C9AFF",primary50:"#B2D4FF",primary25:"#DEEBFF",danger:"#DE350B",dangerLight:"#FFBDAD",neutral0:"hsl(0, 0%, 100%)",neutral5:"hsl(0, 0%, 95%)",neutral10:"hsl(0, 0%, 90%)",neutral20:"hsl(0, 0%, 80%)",neutral30:"hsl(0, 0%, 70%)",neutral40:"hsl(0, 0%, 60%)",neutral50:"hsl(0, 0%, 50%)",neutral60:"hsl(0, 0%, 40%)",neutral70:"hsl(0, 0%, 30%)",neutral80:"hsl(0, 0%, 20%)",neutral90:"hsl(0, 0%, 10%)"},spacing:{baseUnit:4,controlHeight:38,menuGutter:8}},uT={"aria-live":"polite",backspaceRemovesValue:!0,blurInputOnSelect:XI(),captureMenuScroll:!XI(),classNames:{},closeMenuOnSelect:!0,closeMenuOnScroll:!1,components:{},controlShouldRenderValue:!0,escapeClearsValue:!1,filterOption:function(e){return function(t,n){if(t.data.__isNew__)return!0;var r=br({ignoreCase:!0,ignoreAccents:!0,stringify:WG,trim:!0,matchFrom:"any"},e),i=r.ignoreCase,o=r.ignoreAccents,s=r.stringify,a=r.trim,l=r.matchFrom,c=a?UG(n):n,u=a?UG(s(t)):s(t);return i&&(c=c.toLowerCase(),u=u.toLowerCase()),o&&(c=BG(c),u=zG(u)),"start"===l?u.substr(0,c.length)===c:u.indexOf(c)>-1}}(),formatGroupLabel:function(e){return e.label},getOptionLabel:function(e){return e.label},getOptionValue:function(e){return e.value},isDisabled:!1,isLoading:!1,isMulti:!1,isRtl:!1,isSearchable:!0,isOptionDisabled:function(e){return!!e.isDisabled},loadingMessage:function(){return"Loading..."},maxMenuHeight:300,minMenuHeight:140,menuIsOpen:!1,menuPlacement:"bottom",menuPosition:"absolute",menuShouldBlockScroll:!1,menuShouldScrollIntoView:!function(){try{return/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent)}catch(e){return!1}}(),noOptionsMessage:function(){return"No options"},openMenuOnFocus:!1,openMenuOnClick:!0,options:[],pageSize:5,placeholder:"Select...",screenReaderStatus:function(e){var t=e.count;return"".concat(t," result").concat(1!==t?"s":""," available")},styles:{},tabIndex:0,tabSelectsValue:!0,unstyled:!1};function dT(e,t,n,r){return{type:"option",data:t,isDisabled:yT(e,t,n),isSelected:vT(e,t,n),label:gT(e,t),value:mT(e,t),index:r}}function hT(e,t){return e.options.map((function(n,r){if("options"in n){var i=n.options.map((function(n,r){return dT(e,n,t,r)})).filter((function(t){return fT(e,t)}));return i.length>0?{type:"group",data:n,options:i,index:r}:void 0}var o=dT(e,n,t,r);return fT(e,o)?o:void 0})).filter(JI)}function pT(e){return e.reduce((function(e,t){return"group"===t.type?e.push.apply(e,pI(t.options.map((function(e){return e.data})))):e.push(t.data),e}),[])}function fT(e,t){var n=e.inputValue,r=void 0===n?"":n,i=t.data,o=t.isSelected,s=t.label,a=t.value;return(!bT(e)||!o)&&_T(e,{label:s,value:a,data:i},r)}var gT=function(e,t){return e.getOptionLabel(t)},mT=function(e,t){return e.getOptionValue(t)};function yT(e,t,n){return"function"===typeof e.isOptionDisabled&&e.isOptionDisabled(t,n)}function vT(e,t,n){if(n.indexOf(t)>-1)return!0;if("function"===typeof e.isOptionSelected)return e.isOptionSelected(t,n);var r=mT(e,t);return n.some((function(t){return mT(e,t)===r}))}function _T(e,t,n){return!e.filterOption||e.filterOption(t,n)}var bT=function(e){var t=e.hideSelectedOptions,n=e.isMulti;return void 0===t?n:t},xT=1,ST=function(e){!function(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Je(e,t)}(s,e);var t,r,i,o=hI(s);function s(e){var t;if(function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,s),(t=o.call(this,e)).state={ariaSelection:null,focusedOption:null,focusedValue:null,inputIsHidden:!1,isFocused:!1,selectValue:[],clearFocusValueOnUpdate:!1,prevWasFocused:!1,inputIsHiddenAfterUpdate:void 0,prevProps:void 0},t.blockOptionHover=!1,t.isComposing=!1,t.commonProps=void 0,t.initialTouchX=0,t.initialTouchY=0,t.instancePrefix="",t.openAfterFocus=!1,t.scrollToFocusedOptionOnUpdate=!1,t.userIsDragging=void 0,t.controlRef=null,t.getControlRef=function(e){t.controlRef=e},t.focusedOptionRef=null,t.getFocusedOptionRef=function(e){t.focusedOptionRef=e},t.menuListRef=null,t.getMenuListRef=function(e){t.menuListRef=e},t.inputRef=null,t.getInputRef=function(e){t.inputRef=e},t.focus=t.focusInput,t.blur=t.blurInput,t.onChange=function(e,n){var r=t.props,i=r.onChange,o=r.name;n.name=o,t.ariaOnChange(e,n),i(e,n)},t.setValue=function(e,n,r){var i=t.props,o=i.closeMenuOnSelect,s=i.isMulti,a=i.inputValue;t.onInputChange("",{action:"set-value",prevInputValue:a}),o&&(t.setState({inputIsHiddenAfterUpdate:!s}),t.onMenuClose()),t.setState({clearFocusValueOnUpdate:!0}),t.onChange(e,{action:n,option:r})},t.selectOption=function(e){var n=t.props,r=n.blurInputOnSelect,i=n.isMulti,o=n.name,s=t.state.selectValue,a=i&&t.isOptionSelected(e,s),l=t.isOptionDisabled(e,s);if(a){var c=t.getOptionValue(e);t.setValue(s.filter((function(e){return t.getOptionValue(e)!==c})),"deselect-option",e)}else{if(l)return void t.ariaOnChange(e,{action:"select-option",option:e,name:o});i?t.setValue([].concat(pI(s),[e]),"select-option",e):t.setValue(e,"select-option")}r&&t.blurInput()},t.removeValue=function(e){var n=t.props.isMulti,r=t.state.selectValue,i=t.getOptionValue(e),o=r.filter((function(e){return t.getOptionValue(e)!==i})),s=QI(n,o,o[0]||null);t.onChange(s,{action:"remove-value",removedValue:e}),t.focusInput()},t.clearValue=function(){var e=t.state.selectValue;t.onChange(QI(t.props.isMulti,[],null),{action:"clear",removedValues:e})},t.popValue=function(){var e=t.props.isMulti,n=t.state.selectValue,r=n[n.length-1],i=n.slice(0,n.length-1),o=QI(e,i,i[0]||null);t.onChange(o,{action:"pop-value",removedValue:r})},t.getValue=function(){return t.state.selectValue},t.cx=function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return LI.apply(void 0,[t.props.classNamePrefix].concat(n))},t.getOptionLabel=function(e){return gT(t.props,e)},t.getOptionValue=function(e){return mT(t.props,e)},t.getStyles=function(e,n){var r=t.props.unstyled,i=lT[e](n,r);i.boxSizing="border-box";var o=t.props.styles[e];return o?o(i,n):i},t.getClassNames=function(e,n){var r,i;return null===(r=(i=t.props.classNames)[e])||void 0===r?void 0:r.call(i,n)},t.getElementId=function(e){return"".concat(t.instancePrefix,"-").concat(e)},t.getComponents=function(){return e=t.props,br(br({},AG),e.components);var e},t.buildCategorizedOptions=function(){return hT(t.props,t.state.selectValue)},t.getCategorizedOptions=function(){return t.props.menuIsOpen?t.buildCategorizedOptions():[]},t.buildFocusableOptions=function(){return pT(t.buildCategorizedOptions())},t.getFocusableOptions=function(){return t.props.menuIsOpen?t.buildFocusableOptions():[]},t.ariaOnChange=function(e,n){t.setState({ariaSelection:br({value:e},n)})},t.onMenuMouseDown=function(e){0===e.button&&(e.stopPropagation(),e.preventDefault(),t.focusInput())},t.onMenuMouseMove=function(e){t.blockOptionHover=!1},t.onControlMouseDown=function(e){if(!e.defaultPrevented){var n=t.props.openMenuOnClick;t.state.isFocused?t.props.menuIsOpen?"INPUT"!==e.target.tagName&&"TEXTAREA"!==e.target.tagName&&t.onMenuClose():n&&t.openMenu("first"):(n&&(t.openAfterFocus=!0),t.focusInput()),"INPUT"!==e.target.tagName&&"TEXTAREA"!==e.target.tagName&&e.preventDefault()}},t.onDropdownIndicatorMouseDown=function(e){if((!e||"mousedown"!==e.type||0===e.button)&&!t.props.isDisabled){var n=t.props,r=n.isMulti,i=n.menuIsOpen;t.focusInput(),i?(t.setState({inputIsHiddenAfterUpdate:!r}),t.onMenuClose()):t.openMenu("first"),e.preventDefault()}},t.onClearIndicatorMouseDown=function(e){e&&"mousedown"===e.type&&0!==e.button||(t.clearValue(),e.preventDefault(),t.openAfterFocus=!1,"touchend"===e.type?t.focusInput():setTimeout((function(){return t.focusInput()})))},t.onScroll=function(e){"boolean"===typeof t.props.closeMenuOnScroll?e.target instanceof HTMLElement&&BI(e.target)&&t.props.onMenuClose():"function"===typeof t.props.closeMenuOnScroll&&t.props.closeMenuOnScroll(e)&&t.props.onMenuClose()},t.onCompositionStart=function(){t.isComposing=!0},t.onCompositionEnd=function(){t.isComposing=!1},t.onTouchStart=function(e){var n=e.touches,r=n&&n.item(0);r&&(t.initialTouchX=r.clientX,t.initialTouchY=r.clientY,t.userIsDragging=!1)},t.onTouchMove=function(e){var n=e.touches,r=n&&n.item(0);if(r){var i=Math.abs(r.clientX-t.initialTouchX),o=Math.abs(r.clientY-t.initialTouchY);t.userIsDragging=i>5||o>5}},t.onTouchEnd=function(e){t.userIsDragging||(t.controlRef&&!t.controlRef.contains(e.target)&&t.menuListRef&&!t.menuListRef.contains(e.target)&&t.blurInput(),t.initialTouchX=0,t.initialTouchY=0)},t.onControlTouchEnd=function(e){t.userIsDragging||t.onControlMouseDown(e)},t.onClearIndicatorTouchEnd=function(e){t.userIsDragging||t.onClearIndicatorMouseDown(e)},t.onDropdownIndicatorTouchEnd=function(e){t.userIsDragging||t.onDropdownIndicatorMouseDown(e)},t.handleInputChange=function(e){var n=t.props.inputValue,r=e.currentTarget.value;t.setState({inputIsHiddenAfterUpdate:!1}),t.onInputChange(r,{action:"input-change",prevInputValue:n}),t.props.menuIsOpen||t.onMenuOpen()},t.onInputFocus=function(e){t.props.onFocus&&t.props.onFocus(e),t.setState({inputIsHiddenAfterUpdate:!1,isFocused:!0}),(t.openAfterFocus||t.props.openMenuOnFocus)&&t.openMenu("first"),t.openAfterFocus=!1},t.onInputBlur=function(e){var n=t.props.inputValue;t.menuListRef&&t.menuListRef.contains(document.activeElement)?t.inputRef.focus():(t.props.onBlur&&t.props.onBlur(e),t.onInputChange("",{action:"input-blur",prevInputValue:n}),t.onMenuClose(),t.setState({focusedValue:null,isFocused:!1}))},t.onOptionHover=function(e){t.blockOptionHover||t.state.focusedOption===e||t.setState({focusedOption:e})},t.shouldHideSelectedOptions=function(){return bT(t.props)},t.onValueInputFocus=function(e){e.preventDefault(),e.stopPropagation(),t.focus()},t.onKeyDown=function(e){var n=t.props,r=n.isMulti,i=n.backspaceRemovesValue,o=n.escapeClearsValue,s=n.inputValue,a=n.isClearable,l=n.isDisabled,c=n.menuIsOpen,u=n.onKeyDown,d=n.tabSelectsValue,h=n.openMenuOnFocus,p=t.state,f=p.focusedOption,g=p.focusedValue,m=p.selectValue;if(!l&&("function"!==typeof u||(u(e),!e.defaultPrevented))){switch(t.blockOptionHover=!0,e.key){case"ArrowLeft":if(!r||s)return;t.focusValue("previous");break;case"ArrowRight":if(!r||s)return;t.focusValue("next");break;case"Delete":case"Backspace":if(s)return;if(g)t.removeValue(g);else{if(!i)return;r?t.popValue():a&&t.clearValue()}break;case"Tab":if(t.isComposing)return;if(e.shiftKey||!c||!d||!f||h&&t.isOptionSelected(f,m))return;t.selectOption(f);break;case"Enter":if(229===e.keyCode)break;if(c){if(!f)return;if(t.isComposing)return;t.selectOption(f);break}return;case"Escape":c?(t.setState({inputIsHiddenAfterUpdate:!1}),t.onInputChange("",{action:"menu-close",prevInputValue:s}),t.onMenuClose()):a&&o&&t.clearValue();break;case" ":if(s)return;if(!c){t.openMenu("first");break}if(!f)return;t.selectOption(f);break;case"ArrowUp":c?t.focusOption("up"):t.openMenu("last");break;case"ArrowDown":c?t.focusOption("down"):t.openMenu("first");break;case"PageUp":if(!c)return;t.focusOption("pageup");break;case"PageDown":if(!c)return;t.focusOption("pagedown");break;case"Home":if(!c)return;t.focusOption("first");break;case"End":if(!c)return;t.focusOption("last");break;default:return}e.preventDefault()}},t.instancePrefix="react-select-"+(t.props.instanceId||++xT),t.state.selectValue=VI(e.value),e.menuIsOpen&&t.state.selectValue.length){var n=t.buildFocusableOptions(),r=n.indexOf(t.state.selectValue[0]);t.state.focusedOption=n[r]}return t}return t=s,r=[{key:"componentDidMount",value:function(){this.startListeningComposition(),this.startListeningToTouch(),this.props.closeMenuOnScroll&&document&&document.addEventListener&&document.addEventListener("scroll",this.onScroll,!0),this.props.autoFocus&&this.focusInput(),this.props.menuIsOpen&&this.state.focusedOption&&this.menuListRef&&this.focusedOptionRef&&qI(this.menuListRef,this.focusedOptionRef)}},{key:"componentDidUpdate",value:function(e){var t=this.props,n=t.isDisabled,r=t.menuIsOpen,i=this.state.isFocused;(i&&!n&&e.isDisabled||i&&r&&!e.menuIsOpen)&&this.focusInput(),i&&n&&!e.isDisabled?this.setState({isFocused:!1},this.onMenuClose):i||n||!e.isDisabled||this.inputRef!==document.activeElement||this.setState({isFocused:!0}),this.menuListRef&&this.focusedOptionRef&&this.scrollToFocusedOptionOnUpdate&&(qI(this.menuListRef,this.focusedOptionRef),this.scrollToFocusedOptionOnUpdate=!1)}},{key:"componentWillUnmount",value:function(){this.stopListeningComposition(),this.stopListeningToTouch(),document.removeEventListener("scroll",this.onScroll,!0)}},{key:"onMenuOpen",value:function(){this.props.onMenuOpen()}},{key:"onMenuClose",value:function(){this.onInputChange("",{action:"menu-close",prevInputValue:this.props.inputValue}),this.props.onMenuClose()}},{key:"onInputChange",value:function(e,t){this.props.onInputChange(e,t)}},{key:"focusInput",value:function(){this.inputRef&&this.inputRef.focus()}},{key:"blurInput",value:function(){this.inputRef&&this.inputRef.blur()}},{key:"openMenu",value:function(e){var t=this,n=this.state,r=n.selectValue,i=n.isFocused,o=this.buildFocusableOptions(),s="first"===e?0:o.length-1;if(!this.props.isMulti){var a=o.indexOf(r[0]);a>-1&&(s=a)}this.scrollToFocusedOptionOnUpdate=!(i&&this.menuListRef),this.setState({inputIsHiddenAfterUpdate:!1,focusedValue:null,focusedOption:o[s]},(function(){return t.onMenuOpen()}))}},{key:"focusValue",value:function(e){var t=this.state,n=t.selectValue,r=t.focusedValue;if(this.props.isMulti){this.setState({focusedOption:null});var i=n.indexOf(r);r||(i=-1);var o=n.length-1,s=-1;if(n.length){switch(e){case"previous":s=0===i?0:-1===i?o:i-1;break;case"next":i>-1&&i<o&&(s=i+1)}this.setState({inputIsHidden:-1!==s,focusedValue:n[s]})}}}},{key:"focusOption",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"first",t=this.props.pageSize,n=this.state.focusedOption,r=this.getFocusableOptions();if(r.length){var i=0,o=r.indexOf(n);n||(o=-1),"up"===e?i=o>0?o-1:r.length-1:"down"===e?i=(o+1)%r.length:"pageup"===e?(i=o-t)<0&&(i=0):"pagedown"===e?(i=o+t)>r.length-1&&(i=r.length-1):"last"===e&&(i=r.length-1),this.scrollToFocusedOptionOnUpdate=!0,this.setState({focusedOption:r[i],focusedValue:null})}}},{key:"getTheme",value:function(){return this.props.theme?"function"===typeof this.props.theme?this.props.theme(cT):br(br({},cT),this.props.theme):cT}},{key:"getCommonProps",value:function(){var e=this.clearValue,t=this.cx,n=this.getStyles,r=this.getClassNames,i=this.getValue,o=this.selectOption,s=this.setValue,a=this.props,l=a.isMulti,c=a.isRtl,u=a.options;return{clearValue:e,cx:t,getStyles:n,getClassNames:r,getValue:i,hasValue:this.hasValue(),isMulti:l,isRtl:c,options:u,selectOption:o,selectProps:a,setValue:s,theme:this.getTheme()}}},{key:"hasValue",value:function(){return this.state.selectValue.length>0}},{key:"hasOptions",value:function(){return!!this.getFocusableOptions().length}},{key:"isClearable",value:function(){var e=this.props,t=e.isClearable,n=e.isMulti;return void 0===t?n:t}},{key:"isOptionDisabled",value:function(e,t){return yT(this.props,e,t)}},{key:"isOptionSelected",value:function(e,t){return vT(this.props,e,t)}},{key:"filterOption",value:function(e,t){return _T(this.props,e,t)}},{key:"formatOptionLabel",value:function(e,t){if("function"===typeof this.props.formatOptionLabel){var n=this.props.inputValue,r=this.state.selectValue;return this.props.formatOptionLabel(e,{context:t,inputValue:n,selectValue:r})}return this.getOptionLabel(e)}},{key:"formatGroupLabel",value:function(e){return this.props.formatGroupLabel(e)}},{key:"startListeningComposition",value:function(){document&&document.addEventListener&&(document.addEventListener("compositionstart",this.onCompositionStart,!1),document.addEventListener("compositionend",this.onCompositionEnd,!1))}},{key:"stopListeningComposition",value:function(){document&&document.removeEventListener&&(document.removeEventListener("compositionstart",this.onCompositionStart),document.removeEventListener("compositionend",this.onCompositionEnd))}},{key:"startListeningToTouch",value:function(){document&&document.addEventListener&&(document.addEventListener("touchstart",this.onTouchStart,!1),document.addEventListener("touchmove",this.onTouchMove,!1),document.addEventListener("touchend",this.onTouchEnd,!1))}},{key:"stopListeningToTouch",value:function(){document&&document.removeEventListener&&(document.removeEventListener("touchstart",this.onTouchStart),document.removeEventListener("touchmove",this.onTouchMove),document.removeEventListener("touchend",this.onTouchEnd))}},{key:"renderInput",value:function(){var e=this.props,t=e.isDisabled,r=e.isSearchable,i=e.inputId,o=e.inputValue,s=e.tabIndex,a=e.form,l=e.menuIsOpen,c=e.required,u=this.getComponents().Input,h=this.state,p=h.inputIsHidden,f=h.ariaSelection,g=this.commonProps,m=i||this.getElementId("input"),y=br(br(br({"aria-autocomplete":"list","aria-expanded":l,"aria-haspopup":!0,"aria-errormessage":this.props["aria-errormessage"],"aria-invalid":this.props["aria-invalid"],"aria-label":this.props["aria-label"],"aria-labelledby":this.props["aria-labelledby"],"aria-required":c,role:"combobox"},l&&{"aria-controls":this.getElementId("listbox"),"aria-owns":this.getElementId("listbox")}),!r&&{"aria-readonly":!0}),this.hasValue()?"initial-input-focus"===(null===f||void 0===f?void 0:f.action)&&{"aria-describedby":this.getElementId("live-region")}:{"aria-describedby":this.getElementId("placeholder")});return r?n.createElement(u,(0,d.c)({},g,{autoCapitalize:"none",autoComplete:"off",autoCorrect:"off",id:m,innerRef:this.getInputRef,isDisabled:t,isHidden:p,onBlur:this.onInputBlur,onChange:this.handleInputChange,onFocus:this.onInputFocus,spellCheck:"false",tabIndex:s,form:a,type:"text",value:o},y)):n.createElement(qG,(0,d.c)({id:m,innerRef:this.getInputRef,onBlur:this.onInputBlur,onChange:DI,onFocus:this.onInputFocus,disabled:t,tabIndex:s,inputMode:"none",form:a,value:""},y))}},{key:"renderPlaceholderOrValue",value:function(){var e=this,t=this.getComponents(),r=t.MultiValue,i=t.MultiValueContainer,o=t.MultiValueLabel,s=t.MultiValueRemove,a=t.SingleValue,l=t.Placeholder,c=this.commonProps,u=this.props,h=u.controlShouldRenderValue,p=u.isDisabled,f=u.isMulti,g=u.inputValue,m=u.placeholder,y=this.state,v=y.selectValue,_=y.focusedValue,b=y.isFocused;if(!this.hasValue()||!h)return g?null:n.createElement(l,(0,d.c)({},c,{key:"placeholder",isDisabled:p,isFocused:b,innerProps:{id:this.getElementId("placeholder")}}),m);if(f)return v.map((function(t,a){var l=t===_,u="".concat(e.getOptionLabel(t),"-").concat(e.getOptionValue(t));return n.createElement(r,(0,d.c)({},c,{components:{Container:i,Label:o,Remove:s},isFocused:l,isDisabled:p,key:u,index:a,removeProps:{onClick:function(){return e.removeValue(t)},onTouchEnd:function(){return e.removeValue(t)},onMouseDown:function(e){e.preventDefault()}},data:t}),e.formatOptionLabel(t,"value"))}));if(g)return null;var x=v[0];return n.createElement(a,(0,d.c)({},c,{data:x,isDisabled:p}),this.formatOptionLabel(x,"value"))}},{key:"renderClearIndicator",value:function(){var e=this.getComponents().ClearIndicator,t=this.commonProps,r=this.props,i=r.isDisabled,o=r.isLoading,s=this.state.isFocused;if(!this.isClearable()||!e||i||!this.hasValue()||o)return null;var a={onMouseDown:this.onClearIndicatorMouseDown,onTouchEnd:this.onClearIndicatorTouchEnd,"aria-hidden":"true"};return n.createElement(e,(0,d.c)({},t,{innerProps:a,isFocused:s}))}},{key:"renderLoadingIndicator",value:function(){var e=this.getComponents().LoadingIndicator,t=this.commonProps,r=this.props,i=r.isDisabled,o=r.isLoading,s=this.state.isFocused;return e&&o?n.createElement(e,(0,d.c)({},t,{innerProps:{"aria-hidden":"true"},isDisabled:i,isFocused:s})):null}},{key:"renderIndicatorSeparator",value:function(){var e=this.getComponents(),t=e.DropdownIndicator,r=e.IndicatorSeparator;if(!t||!r)return null;var i=this.commonProps,o=this.props.isDisabled,s=this.state.isFocused;return n.createElement(r,(0,d.c)({},i,{isDisabled:o,isFocused:s}))}},{key:"renderDropdownIndicator",value:function(){var e=this.getComponents().DropdownIndicator;if(!e)return null;var t=this.commonProps,r=this.props.isDisabled,i=this.state.isFocused,o={onMouseDown:this.onDropdownIndicatorMouseDown,onTouchEnd:this.onDropdownIndicatorTouchEnd,"aria-hidden":"true"};return n.createElement(e,(0,d.c)({},t,{innerProps:o,isDisabled:r,isFocused:i}))}},{key:"renderMenu",value:function(){var e=this,t=this.getComponents(),r=t.Group,i=t.GroupHeading,o=t.Menu,s=t.MenuList,a=t.MenuPortal,l=t.LoadingMessage,c=t.NoOptionsMessage,u=t.Option,h=this.commonProps,p=this.state.focusedOption,f=this.props,g=f.captureMenuScroll,m=f.inputValue,y=f.isLoading,v=f.loadingMessage,_=f.minMenuHeight,b=f.maxMenuHeight,x=f.menuIsOpen,S=f.menuPlacement,w=f.menuPosition,E=f.menuPortalTarget,P=f.menuShouldBlockScroll,C=f.menuShouldScrollIntoView,A=f.noOptionsMessage,k=f.onMenuScrollToTop,j=f.onMenuScrollToBottom;if(!x)return null;var I,G=function(t,r){var i=t.type,o=t.data,s=t.isDisabled,a=t.isSelected,l=t.label,c=t.value,f=p===o,g=s?void 0:function(){return e.onOptionHover(o)},m=s?void 0:function(){return e.selectOption(o)},y="".concat(e.getElementId("option"),"-").concat(r),v={id:y,onClick:m,onMouseMove:g,onMouseOver:g,tabIndex:-1};return n.createElement(u,(0,d.c)({},h,{innerProps:v,data:o,isDisabled:s,isSelected:a,key:y,label:l,type:i,value:c,isFocused:f,innerRef:f?e.getFocusedOptionRef:void 0}),e.formatOptionLabel(t.data,"menu"))};if(this.hasOptions())I=this.getCategorizedOptions().map((function(t){if("group"===t.type){var o=t.data,s=t.options,a=t.index,l="".concat(e.getElementId("group"),"-").concat(a),c="".concat(l,"-heading");return n.createElement(r,(0,d.c)({},h,{key:l,data:o,options:s,Heading:i,headingProps:{id:c,data:t.data},label:e.formatGroupLabel(t.data)}),t.options.map((function(e){return G(e,"".concat(a,"-").concat(e.index))})))}if("option"===t.type)return G(t,"".concat(t.index))}));else if(y){var T=v({inputValue:m});if(null===T)return null;I=n.createElement(l,h,T)}else{var M=A({inputValue:m});if(null===M)return null;I=n.createElement(c,h,M)}var O={minMenuHeight:_,maxMenuHeight:b,menuPlacement:S,menuPosition:w,menuShouldScrollIntoView:C},R=n.createElement(rG,(0,d.c)({},h,O),(function(t){var r=t.ref,i=t.placerProps,a=i.placement,l=i.maxHeight;return n.createElement(o,(0,d.c)({},h,O,{innerRef:r,innerProps:{onMouseDown:e.onMenuMouseDown,onMouseMove:e.onMenuMouseMove,id:e.getElementId("listbox")},isLoading:y,placement:a}),n.createElement(oT,{captureEnabled:g,onTopArrive:k,onBottomArrive:j,lockEnabled:P},(function(t){return n.createElement(s,(0,d.c)({},h,{innerRef:function(n){e.getMenuListRef(n),t(n)},isLoading:y,maxHeight:l,focusedOption:p}),I)})))}));return E||"fixed"===w?n.createElement(a,(0,d.c)({},h,{appendTo:E,controlElement:this.controlRef,menuPlacement:S,menuPosition:w}),R):R}},{key:"renderFormField",value:function(){var e=this,t=this.props,r=t.delimiter,i=t.isDisabled,o=t.isMulti,s=t.name,a=t.required,l=this.state.selectValue;if(s&&!i){if(a&&!this.hasValue())return n.createElement(aT,{name:s,onFocus:this.onValueInputFocus});if(o){if(r){var c=l.map((function(t){return e.getOptionValue(t)})).join(r);return n.createElement("input",{name:s,type:"hidden",value:c})}var u=l.length>0?l.map((function(t,r){return n.createElement("input",{key:"i-".concat(r),name:s,type:"hidden",value:e.getOptionValue(t)})})):n.createElement("input",{name:s,type:"hidden",value:""});return n.createElement("div",null,u)}var d=l[0]?this.getOptionValue(l[0]):"";return n.createElement("input",{name:s,type:"hidden",value:d})}}},{key:"renderLiveRegion",value:function(){var e=this.commonProps,t=this.state,r=t.ariaSelection,i=t.focusedOption,o=t.focusedValue,s=t.isFocused,a=t.selectValue,l=this.getFocusableOptions();return n.createElement(OG,(0,d.c)({},e,{id:this.getElementId("live-region"),ariaSelection:r,focusedOption:i,focusedValue:o,isFocused:s,selectValue:a,focusableOptions:l}))}},{key:"render",value:function(){var e=this.getComponents(),t=e.Control,r=e.IndicatorsContainer,i=e.SelectContainer,o=e.ValueContainer,s=this.props,a=s.className,l=s.id,c=s.isDisabled,u=s.menuIsOpen,h=this.state.isFocused,p=this.commonProps=this.getCommonProps();return n.createElement(i,(0,d.c)({},p,{className:a,innerProps:{id:l,onKeyDown:this.onKeyDown},isDisabled:c,isFocused:h}),this.renderLiveRegion(),n.createElement(t,(0,d.c)({},p,{innerRef:this.getControlRef,innerProps:{onMouseDown:this.onControlMouseDown,onTouchEnd:this.onControlTouchEnd},isDisabled:c,isFocused:h,menuIsOpen:u}),n.createElement(o,(0,d.c)({},p,{isDisabled:c}),this.renderPlaceholderOrValue(),this.renderInput()),n.createElement(r,(0,d.c)({},p,{isDisabled:c}),this.renderClearIndicator(),this.renderLoadingIndicator(),this.renderIndicatorSeparator(),this.renderDropdownIndicator())),this.renderMenu(),this.renderFormField())}}],i=[{key:"getDerivedStateFromProps",value:function(e,t){var n=t.prevProps,r=t.clearFocusValueOnUpdate,i=t.inputIsHiddenAfterUpdate,o=t.ariaSelection,s=t.isFocused,a=t.prevWasFocused,l=e.options,c=e.value,u=e.menuIsOpen,d=e.inputValue,h=e.isMulti,p=VI(c),f={};if(n&&(c!==n.value||l!==n.options||u!==n.menuIsOpen||d!==n.inputValue)){var g=u?function(e,t){return pT(hT(e,t))}(e,p):[],m=r?function(e,t){var n=e.focusedValue,r=e.selectValue.indexOf(n);if(r>-1){if(t.indexOf(n)>-1)return n;if(r<t.length)return t[r]}return null}(t,p):null,y=function(e,t){var n=e.focusedOption;return n&&t.indexOf(n)>-1?n:t[0]}(t,g);f={selectValue:p,focusedOption:y,focusedValue:m,clearFocusValueOnUpdate:!1}}var v=null!=i&&e!==n?{inputIsHidden:i,inputIsHiddenAfterUpdate:void 0}:{},_=o,b=s&&a;return s&&!b&&(_={value:QI(h,p,p[0]||null),options:p,action:"initial-input-focus"},b=!a),"initial-input-focus"===(null===o||void 0===o?void 0:o.action)&&(_=null),br(br(br({},f),v),{},{prevProps:e,ariaSelection:_,prevWasFocused:b})}}],r&&cI(t.prototype,r),i&&cI(t,i),Object.defineProperty(t,"prototype",{writable:!1}),s}(n.Component);ST.defaultProps=uT;var wT=(0,n.forwardRef)((function(e,t){var r=function(e){var t=e.defaultInputValue,r=void 0===t?"":t,i=e.defaultMenuIsOpen,o=void 0!==i&&i,s=e.defaultValue,a=void 0===s?null:s,l=e.inputValue,c=e.menuIsOpen,u=e.onChange,d=e.onInputChange,h=e.onMenuClose,p=e.onMenuOpen,f=e.value,g=aI(e,lI),m=sI((0,n.useState)(void 0!==l?l:r),2),y=m[0],v=m[1],_=sI((0,n.useState)(void 0!==c?c:o),2),b=_[0],x=_[1],S=sI((0,n.useState)(void 0!==f?f:a),2),w=S[0],E=S[1],P=(0,n.useCallback)((function(e,t){"function"===typeof u&&u(e,t),E(e)}),[u]),C=(0,n.useCallback)((function(e,t){var n;"function"===typeof d&&(n=d(e,t)),v(void 0!==n?n:e)}),[d]),A=(0,n.useCallback)((function(){"function"===typeof p&&p(),x(!0)}),[p]),k=(0,n.useCallback)((function(){"function"===typeof h&&h(),x(!1)}),[h]),j=void 0!==l?l:y,I=void 0!==c?c:b,G=void 0!==f?f:w;return br(br({},g),{},{inputValue:j,menuIsOpen:I,onChange:P,onInputChange:C,onMenuClose:k,onMenuOpen:A,value:G})}(e);return n.createElement(ST,(0,d.c)({ref:t},r))}));const ET=wT,PT=e=>{const t=Zo()((()=>({select:{position:"fixed",top:e.position.y+"px",left:e.position.x+15+"px",width:"12rem",zIndex:3}}))),{classes:n}=t();return(0,Ae.jsx)(Ae.Fragment,{children:(0,Ae.jsx)("div",{className:n.select,children:(0,Ae.jsx)(ET,{styles:{menu:e=>({...e,zIndex:2})},value:e.filterValues.map((e=>({label:e,value:e}))),onChange:t=>{const n=t.map((e=>e.value));e.setFilter(e.headCell,n)},onKeyDown:t=>{"Escape"===t.key&&e.close()},options:e.options.map((e=>({label:e,value:e}))),isMulti:!0})})})},CT=Zo()((()=>({arrow:{color:"black"},tooltip:{fontSize:13,border:"1px solid red",color:"red",background:"white"}}))),AT=e=>{const t=(0,n.useMemo)((()=>e.autoColumnsSize?"auto":e.evenColumns&&e.headCells.length?"".concat(100/e.headCells.length,"%"):"20%"),[e.autoColumnsSize,e.evenColumns,e.headCells]),{classes:r}=(i=t,o=e.dense,Zo()((()=>({hidden:{display:"none"},shown:{width:i,fontWeight:"bold",padding:o?"0.15rem":void 0},shownGrouped:{width:"5%",fontWeight:"bold",padding:o?"0.15rem":void 0},tableHead:{"& > tr > th":{backgroundColor:"#fafafa"}}}))))();var i,o;const{classes:s}=CT(),[a,l]=(0,n.useState)(null),[c,u]=(0,n.useState)({x:0,y:0}),[d,h]=(0,n.useState)(e.headCells.map((e=>({id:e.id,values:[]}))));(0,n.useEffect)((()=>{e.resetFilters&&e.changeResetFilters&&(h(e.headCells.map((e=>({id:e.id,values:[]})))),e.changeResetFilters())}),[e.resetFilters]);const p=e=>{const t=d.find((t=>t.id===e.id));return t?t.values:[]},f=e=>{const t=d.find((t=>t.id===e.id));return t&&!!t.values.length};return(0,Ae.jsxs)(Ae.Fragment,{children:[(0,Ae.jsx)(Mj,{onClick:()=>{a&&l(null)},className:r.tableHead,children:(0,Ae.jsxs)(Wk,{children:[e.checkBox&&(0,Ae.jsx)(tk,{padding:"checkbox",children:(0,Ae.jsx)(lj,{checked:e.checkBox.checkedAll,onChange:()=>e.checkBox.checkedAll?e.checkBox.unSelectAll():e.checkBox.selectAll()})}),e.headCells.map((t=>{var n;return(0,Ae.jsx)(tk,{className:t.hidden?r.hidden:r.shown,align:t.align?t.align:"center",padding:t.disablePadding?"none":"normal",sortDirection:e.orderBy===t.id&&e.order,style:{lineHeight:"0.9rem",...null!==(n=t.css)&&void 0!==n?n:{}},children:(0,Ae.jsxs)(ws,{container:!0,wrap:"nowrap",alignItems:"center",justifyContent:"center",children:[t.loading&&(0,Ae.jsx)($y,{size:10,style:{display:"inline"}}),!t.noSort&&!t.loading&&(0,Ae.jsx)(Fj,{active:e.orderBy===t.id,direction:e.orderBy===t.id?e.order:"asc",onClick:()=>e.actionSort(t.id),children:t.icon?t.icon:t.label}),(t.noSort||t.loading)&&t.label,!t.loading&&t.filter&&(0,Ae.jsx)("span",{onClick:e=>{e.stopPropagation(),u({x:e.clientX-150,y:e.clientY-40}),l(a?null:t)},children:(0,Ae.jsx)(cu,{classes:s,placement:"top",title:f(t)?p(t).join().toString():"",children:(0,Ae.jsx)("span",{children:(0,Ae.jsx)(Hj,{color:f(t)?"red":"black"})})})}),!t.loading&&t.TrailingContent&&(0,Ae.jsx)(t.TrailingContent,{})]})},t.id)}))]})}),null!==a&&void 0!==a&&a.filterOptions?(0,Ae.jsx)(PT,{headCell:a,setFilter:(e,t)=>{const n=d.findIndex((t=>t.id===e.id));if(-1!==n){const i=(r=d,JSON.parse(JSON.stringify(r)));i[n]={id:e.id,values:t},h(i)}var r;e.filterAction&&e.filterAction(e.id,t),l(null)},filterValues:p(a),options:a.filterOptions,position:c,close:()=>l(null)}):null]})};const kT=Zo()(((e,t)=>({root:{width:"100%",borderRadius:"0.5rem"},tableRow:{"&:hover":{backgroundColor:"#f6f6f6"}},groupedTableRow:{"&:hover":{backgroundColor:"#87CEFA"}},groupedTableCell:{paddingLeft:0},hightlightRow:{backgroundColor:jp,"& .MuiCheckbox-root.Mui-checked":{color:"white"}},disabledRow:{backgroundColor:"#f5f5f5",opacity:.5,"& .MuiCheckbox-root.Mui-checked":{color:"white"}},tableBodySelect:{cursor:"pointer"},tableBodyNoSelect:{cursor:"auto"},hidden:{display:"none"},shown:{width:t.width,padding:t.dense?"0.29rem":void 0,wordBreak:"break-word"},shownGrouped:{width:"5%",padding:t.dense?"0.29rem":void 0,wordBreak:"break-word"},hightlightCell:{color:"white"},shiftLeft:{marginLeft:t.noShift?0:"-18px"}}))),jT=e=>{var t;const{contentCells:r,selectRow:i,checkBox:o,highlightId:s,specificFormat:a,setFirstId:l,rows:c,loader:u,loading:d,allowedRows:h,disabledRowCallback:p}=e,f=(0,n.useMemo)((()=>e.autoColumnsSize?"auto":e.evenColumns&&e.headCells.length?"".concat(100/e.headCells.length,"%"):"20%"),[e.autoColumnsSize,e.evenColumns,e.headCells]),[g,m]=(0,n.useState)(0),[y,v]=(0,n.useState)(!!e.dense&&e.dense),{classes:_}=kT({width:f,dense:y,noShift:null!==(t=e.noShift)&&void 0!==t&&t}),[b,x]=(0,n.useState)(10),S=function(e){const t=(0,n.useRef)();return(0,n.useEffect)((()=>{t.current=e})),t.current}(c.length),[w,E]=(0,n.useState)(e.order?e.order:"asc"),[P,C]=(0,n.useState)(e.orderBy?e.orderBy:""),A=(0,n.useRef)(null),k=(0,n.useMemo)((()=>{var t;return null!==(t=e.specificSort)&&void 0!==t?t:ky}),[e.specificSort]);(0,n.useEffect)((()=>{var t,n;const r=e.noPagination?null!==(t=c.length)&&void 0!==t?t:10:null!==(n=e.rowsPerPage)&&void 0!==n?n:10;x(r)}),[e.rowsPerPage,c.length,e.noPagination]),(0,n.useEffect)((()=>{S&&c.length!==S&&m(0)})),(0,n.useEffect)((()=>{e.order!==w&&e.order&&E(e.order)}),[e.order]);const j=(0,n.useCallback)(((e,t,n)=>{if("specific"===t.type&&void 0!==a)return a(t.name,e[t.name],e,n);let r="date"===t.type?Iy(e[t.name]):e[t.name];return r=t.trailer?r+t.trailer:r,r}),[a]),I=(0,n.useMemo)((()=>c.reduce(((e,t)=>(e[t.id]=n.createRef(),e)),{})),[c]);(0,n.useEffect)((()=>{var t;e.highlightId&&((null===(t=I[e.highlightId])||void 0===t?void 0:t.current)&&I[e.highlightId].current.scrollIntoView({behavior:"smooth",block:"center",inline:"center"}))}),[e.highlightId]),(0,n.useEffect)((()=>{if(e.arrowKey&&e.highlightId)return window.addEventListener("keydown",G),function(){window.removeEventListener("keydown",G)}}),[e.highlightId]);const G=t=>{const n=k(c,w,P).slice(g*b,g*b+b),r=n.findIndex((t=>t.id===e.highlightId));"ArrowUp"===t.key&&r>0&&e.selectRow&&e.selectRow(n[r-1].id,t),"ArrowDown"===t.key&&-1!==r&&r<b-1&&r<c.length-1&&e.selectRow&&e.selectRow(n[r+1].id,t)},T=(0,n.useCallback)((e=>{var t;let{row:n,item:r,index:i,isHighlighted:o}=e;const s=j(n,r,o);return(0,Ae.jsx)(tk,{align:r.align?r.align:"center",className:"".concat(_.shown," ").concat(r.hidden?_.hidden:""," ").concat(o?_.hightlightCell:""),style:r.css?r.css:{},children:(0,Ae.jsx)("div",{className:_.shiftLeft,style:null!==(t=r.childCSS)&&void 0!==t?t:{},children:s})},i)}),[_,j]);(0,n.useEffect)((()=>{const e=k(c,w,P)[0];e&&l&&l(e.id)}),[k,l,c,w,P]);const M=(0,n.useCallback)((e=>{let{row:t,index:n,grouped:s,isHighlighted:a,isDisabled:l=!1}=e;const c=null===o||void 0===o?void 0:o.checked(String(t.id));return(0,Ae.jsxs)(Wk,{className:a?_.hightlightRow:l?_.disabledRow:_.tableRow,ref:I[t.id],onClick:e=>{if(!h)return null===i||void 0===i?void 0:i(t.id,e);h.includes(t.id)?null===i||void 0===i||i(t.id,e):null===p||void 0===p||p(t.id,e)},children:[o&&(0,Ae.jsx)(tk,{padding:"checkbox",children:(0,Ae.jsx)(lj,{onClick:e=>{e.stopPropagation(),o&&o.actionSelect(e,String(t.id))},checked:c})}),s&&(0,Ae.jsx)(tk,{className:_.shownGrouped}),r.map(((e,n)=>(0,Ae.jsx)(T,{row:t,item:e,index:n,isHighlighted:a},"table-cell-format-".concat(n))))]},n)}),[o,r,i,T,_,I]),O=(0,n.useCallback)((()=>{const e=k(c,w,P).slice(g*b,g*b+b);return(0,Ae.jsx)(Ae.Fragment,{children:e.map(((e,t)=>(0,Ae.jsx)(M,{row:e,index:t,isHighlighted:void 0!==s&&(null===e||void 0===e?void 0:e.id)===s,isDisabled:h&&!h.includes(e.id)},"table-row-".concat(t))))})}),[k,M,c,w,P,g,b,s,h]);return(0,Ae.jsxs)(hj,{className:e.rootStyle?e.rootStyle:_.root,style:{height:"100%",...e.noShadow?{boxShadow:"none"}:{}},children:[!d&&(0,Ae.jsxs)(ws,{container:!0,direction:"column",wrap:"nowrap",height:"100%",children:[(0,Ae.jsx)(ws,{item:!0,flex:1,height:0,children:(0,Ae.jsx)(ok,{ref:A,style:{maxHeight:e.maxHeight?e.maxHeight:void 0,height:e.height},children:(0,Ae.jsxs)(BA,{"aria-labelledby":e.ariaLabel,size:y?"small":"medium",stickyHeader:!0,children:[(0,Ae.jsx)(AT,{headCells:e.headCells,dense:e.dense,order:w,orderBy:P,actionSort:e=>{E(P===e&&"asc"===w?"desc":"asc"),C(e),m(0)},evenColumns:e.evenColumns,autoColumnsSize:e.autoColumnsSize,checkBox:e.checkBox,resetFilters:e.resetFilters,changeResetFilters:e.changeResetFilters}),(0,Ae.jsx)(KA,{className:e.selectRow?_.tableBodySelect:_.tableBodyNoSelect,children:(0,Ae.jsx)(O,{})})]})})}),!e.noPagination&&(0,Ae.jsx)(Nk,{rowsPerPageOptions:[5,10,25,100],component:"div",count:c.length,rowsPerPage:b,page:g,onPageChange:(e,t)=>{m(t)},onRowsPerPageChange:e=>{x(parseInt(e.target.value,10)),m(0)},SelectProps:{inputProps:{"aria-label":"rows per page"},native:!0}}),e.denseChoice&&(0,Ae.jsx)(Pu,{control:(0,Ae.jsx)(Aj,{checked:y,onChange:e=>{v(e.target.checked)}}),label:"Dense padding"})]}),d?u?(0,Ae.jsx)(vj,{marginY:"-5rem",children:u}):(0,Ae.jsx)(vj,{marginY:"1rem",children:(0,Ae.jsx)($y,{})}):null]})},IT=async e=>{const t=await Ey("/assets",{method:"GET"}),n=await t.json();return Sy.dispatch(bf(n)),Sy.dispatch(xf(e)),n},GT=async()=>{const e=await Ey("/assets/all",{method:"GET"});if(200===e.status){return await e.json()}return!1},TT=async(e,t)=>{const n=new URLSearchParams;t&&n.append("externalUserCode",t);const r=await Ey("/assets/".concat(e,"/getFarmData?").concat(n),{method:"GET"});return await r.json()},MT=async(e,t)=>{const n=new URLSearchParams;t&&n.append("externalUserCode",t);const r=await Ey("/assets/".concat(e,"/getTurbines?").concat(n),{method:"GET"});if(r){const e=await r.json();return DT(e)}return[]},OT=async()=>{const e={method:"GET"};if(!Sy.getState().assets.loadingAllSubs){Sy.dispatch(kf(!0));const t=await Ey("/assets/allSubassets",e);if(t){const e=await t.json();return Sy.dispatch(Ef(e)),e}}},RT=async()=>{const e=await Ey("/backoffice/allSubAssets",{method:"GET"});if(!e.ok)return;return await e.json()},DT=e=>{const t=[];for(const[n,r]of Object.entries(e)){const e={...r,id:n};t.push(e)}return t},NT=async(e,t)=>{const n=await Ey("/inspections/".concat(e,"/").concat(t),{method:"GET"});return await n.json()};async function LT(e){const t=arguments.length>1&&void 0!==arguments[1]&&arguments[1]?[]:await MT(e),n=await TT(e);n.id=e;const r={assetInfos:n,subAssets:t};return Sy.dispatch(Nf(r)),r}const VT=async()=>{const e=await Ey("/assets/hasSolarWindAsset",{method:"GET"});if(e&&200===e.status){return await e.json()}return!1};function FT(e){return e.substring(2).toLowerCase()}const zT=function(e){const{children:t,disableReactTree:r=!1,mouseEvent:i="onClick",onClickAway:o,touchEvent:s="onTouchEnd"}=e,a=n.useRef(!1),l=n.useRef(null),c=n.useRef(!1),u=n.useRef(!1);n.useEffect((()=>(setTimeout((()=>{c.current=!0}),0),()=>{c.current=!1})),[]);const d=(0,ol.c)(t.ref,l),h=(0,nd.c)((e=>{const t=u.current;u.current=!1;const n=(0,al.c)(l.current);if(!c.current||!l.current||"clientX"in e&&function(e,t){return t.documentElement.clientWidth<e.clientX||t.documentElement.clientHeight<e.clientY}(e,n))return;if(a.current)return void(a.current=!1);let i;i=e.composedPath?e.composedPath().indexOf(l.current)>-1:!n.documentElement.contains(e.target)||l.current.contains(e.target),i||!r&&t||o(e)})),p=e=>n=>{u.current=!0;const r=t.props[e];r&&r(n)},f={ref:d};return!1!==s&&(f[s]=p(s)),n.useEffect((()=>{if(!1!==s){const e=FT(s),t=(0,al.c)(l.current),n=()=>{a.current=!0};return t.addEventListener(e,h),t.addEventListener("touchmove",n),()=>{t.removeEventListener(e,h),t.removeEventListener("touchmove",n)}}}),[h,s]),!1!==i&&(f[i]=p(i)),n.useEffect((()=>{if(!1!==i){const e=FT(i),t=(0,al.c)(l.current);return t.addEventListener(e,h),()=>{t.removeEventListener(e,h)}}}),[h,i]),(0,Ae.jsx)(n.Fragment,{children:n.cloneElement(t,f)})};function BT(e){return(0,hs.c)("MuiSnackbarContent",e)}(0,ds.c)("MuiSnackbarContent",["root","message","action"]);const UT=["action","className","message","role"],WT=(0,cs.cp)(Qu,{name:"MuiSnackbarContent",slot:"Root",overridesResolver:(e,t)=>t.root})((e=>{let{theme:t}=e;const n="light"===t.palette.mode?.8:.98,r=(0,Ps.ct)(t.palette.background.default,n);return(0,d.c)({},t.typography.body2,{color:t.vars?t.vars.palette.SnackbarContent.color:t.palette.getContrastText(r),backgroundColor:t.vars?t.vars.palette.SnackbarContent.bg:r,display:"flex",alignItems:"center",flexWrap:"wrap",padding:"6px 16px",borderRadius:(t.vars||t).shape.borderRadius,flexGrow:1,[t.breakpoints.up("sm")]:{flexGrow:"initial",minWidth:288}})})),HT=(0,cs.cp)("div",{name:"MuiSnackbarContent",slot:"Message",overridesResolver:(e,t)=>t.message})({padding:"8px 0"}),qT=(0,cs.cp)("div",{name:"MuiSnackbarContent",slot:"Action",overridesResolver:(e,t)=>t.action})({display:"flex",alignItems:"center",marginLeft:"auto",paddingLeft:16,marginRight:-8}),XT=n.forwardRef((function(e,t){const n=(0,Oe.c)({props:e,name:"MuiSnackbarContent"}),{action:r,className:i,message:o,role:s="alert"}=n,a=(0,Tt.c)(n,UT),l=n,c=(e=>{const{classes:t}=e;return(0,ls.c)({root:["root"],action:["action"],message:["message"]},BT,t)})(l);return(0,Ae.jsxs)(WT,(0,d.c)({role:s,square:!0,elevation:6,className:(0,ts.c)(c.root,i),ownerState:l,ref:t},a,{children:[(0,Ae.jsx)(HT,{className:c.message,ownerState:l,children:o}),r?(0,Ae.jsx)(qT,{className:c.action,ownerState:l,children:r}):null]}))}));function YT(e){return(0,hs.c)("MuiSnackbar",e)}(0,ds.c)("MuiSnackbar",["root","anchorOriginTopCenter","anchorOriginBottomCenter","anchorOriginTopRight","anchorOriginBottomRight","anchorOriginTopLeft","anchorOriginBottomLeft"]);const KT=["onEnter","onExited"],ZT=["action","anchorOrigin","autoHideDuration","children","className","ClickAwayListenerProps","ContentProps","disableWindowBlurListener","message","onBlur","onClose","onFocus","onMouseEnter","onMouseLeave","open","resumeHideDuration","TransitionComponent","transitionDuration","TransitionProps"],$T=(0,cs.cp)("div",{name:"MuiSnackbar",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t["anchorOrigin".concat((0,ha.c)(n.anchorOrigin.vertical)).concat((0,ha.c)(n.anchorOrigin.horizontal))]]}})((e=>{let{theme:t,ownerState:n}=e;return(0,d.c)({zIndex:(t.vars||t).zIndex.snackbar,position:"fixed",display:"flex",left:8,right:8,justifyContent:"center",alignItems:"center"},"top"===n.anchorOrigin.vertical?{top:8}:{bottom:8},"left"===n.anchorOrigin.horizontal&&{justifyContent:"flex-start"},"right"===n.anchorOrigin.horizontal&&{justifyContent:"flex-end"},{[t.breakpoints.up("sm")]:(0,d.c)({},"top"===n.anchorOrigin.vertical?{top:24}:{bottom:24},"center"===n.anchorOrigin.horizontal&&{left:"50%",right:"auto",transform:"translateX(-50%)"},"left"===n.anchorOrigin.horizontal&&{left:24,right:"auto"},"right"===n.anchorOrigin.horizontal&&{right:24,left:"auto"})})})),JT=n.forwardRef((function(e,t){const r=(0,Oe.c)({props:e,name:"MuiSnackbar"}),i=Go(),o={enter:i.transitions.duration.enteringScreen,exit:i.transitions.duration.leavingScreen},{action:s,anchorOrigin:{vertical:a,horizontal:l}={vertical:"bottom",horizontal:"left"},autoHideDuration:c=null,children:u,className:h,ClickAwayListenerProps:p,ContentProps:f,disableWindowBlurListener:g=!1,message:m,onBlur:y,onClose:v,onFocus:_,onMouseEnter:b,onMouseLeave:x,open:S,resumeHideDuration:w,TransitionComponent:E=il,transitionDuration:P=o,TransitionProps:{onEnter:C,onExited:A}={}}=r,k=(0,Tt.c)(r.TransitionProps,KT),j=(0,Tt.c)(r,ZT),I=(0,d.c)({},r,{anchorOrigin:{vertical:a,horizontal:l}}),G=(e=>{const{classes:t,anchorOrigin:n}=e,r={root:["root","anchorOrigin".concat((0,ha.c)(n.vertical)).concat((0,ha.c)(n.horizontal))]};return(0,ls.c)(r,YT,t)})(I),T=n.useRef(),[M,O]=n.useState(!0),R=(0,As.c)((function(){v&&v(...arguments)})),D=(0,As.c)((e=>{v&&null!=e&&(clearTimeout(T.current),T.current=setTimeout((()=>{R(null,"timeout")}),e))}));n.useEffect((()=>(S&&D(c),()=>{clearTimeout(T.current)})),[S,c,D]);const N=()=>{clearTimeout(T.current)},L=n.useCallback((()=>{null!=c&&D(null!=w?w:.5*c)}),[c,w,D]);return n.useEffect((()=>{if(!g&&S)return window.addEventListener("focus",L),window.addEventListener("blur",N),()=>{window.removeEventListener("focus",L),window.removeEventListener("blur",N)}}),[g,L,S]),n.useEffect((()=>{if(S)return document.addEventListener("keydown",e),()=>{document.removeEventListener("keydown",e)};function e(e){e.defaultPrevented||"Escape"!==e.key&&"Esc"!==e.key||v&&v(e,"escapeKeyDown")}}),[M,S,v]),!S&&M?null:(0,Ae.jsx)(zT,(0,d.c)({onClickAway:e=>{v&&v(e,"clickaway")}},p,{children:(0,Ae.jsx)($T,(0,d.c)({className:(0,ts.c)(G.root,h),onBlur:e=>{y&&y(e),L()},onFocus:e=>{_&&_(e),N()},onMouseEnter:e=>{b&&b(e),N()},onMouseLeave:e=>{x&&x(e),L()},ownerState:I,ref:t,role:"presentation"},j,{children:(0,Ae.jsx)(E,(0,d.c)({appear:!0,in:S,timeout:P,direction:"top"===a?"down":"up",onEnter:(e,t)=>{O(!1),C&&C(e,t)},onExited:e=>{O(!0),A&&A(e)}},k,{children:u||(0,Ae.jsx)(XT,(0,d.c)({message:m,action:s},f))}))}))}))}));function QT(e){return(0,hs.c)("MuiAlert",e)}const eM=(0,ds.c)("MuiAlert",["root","action","icon","message","filled","filledSuccess","filledInfo","filledWarning","filledError","outlined","outlinedSuccess","outlinedInfo","outlinedWarning","outlinedError","standard","standardSuccess","standardInfo","standardWarning","standardError"]),tM=(0,vv.c)((0,Ae.jsx)("path",{d:"M20,12A8,8 0 0,1 12,20A8,8 0 0,1 4,12A8,8 0 0,1 12,4C12.76,4 13.5,4.11 14.2, 4.31L15.77,2.74C14.61,2.26 13.34,2 12,2A10,10 0 0,0 2,12A10,10 0 0,0 12,22A10,10 0 0, 0 22,12M7.91,10.08L6.5,11.5L11,16L21,6L19.59,4.58L11,13.17L7.91,10.08Z"}),"SuccessOutlined"),nM=(0,vv.c)((0,Ae.jsx)("path",{d:"M12 5.99L19.53 19H4.47L12 5.99M12 2L1 21h22L12 2zm1 14h-2v2h2v-2zm0-6h-2v4h2v-4z"}),"ReportProblemOutlined"),rM=(0,vv.c)((0,Ae.jsx)("path",{d:"M11 15h2v2h-2zm0-8h2v6h-2zm.99-5C6.47 2 2 6.48 2 12s4.47 10 9.99 10C17.52 22 22 17.52 22 12S17.52 2 11.99 2zM12 20c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8z"}),"ErrorOutline"),iM=(0,vv.c)((0,Ae.jsx)("path",{d:"M11,9H13V7H11M12,20C7.59,20 4,16.41 4,12C4,7.59 7.59,4 12,4C16.41,4 20,7.59 20, 12C20,16.41 16.41,20 12,20M12,2A10,10 0 0,0 2,12A10,10 0 0,0 12,22A10,10 0 0,0 22,12A10, 10 0 0,0 12,2M11,17H13V11H11V17Z"}),"InfoOutlined"),oM=(0,vv.c)((0,Ae.jsx)("path",{d:"M19 6.41L17.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"),sM=["action","children","className","closeText","color","components","componentsProps","icon","iconMapping","onClose","role","severity","slotProps","slots","variant"],aM=(0,cs.cp)(Qu,{name:"MuiAlert",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],t["".concat(n.variant).concat((0,ha.c)(n.color||n.severity))]]}})((e=>{let{theme:t,ownerState:n}=e;const r="light"===t.palette.mode?Ps.sP:Ps.IV,i="light"===t.palette.mode?Ps.IV:Ps.sP,o=n.color||n.severity;return(0,d.c)({},t.typography.body2,{backgroundColor:"transparent",display:"flex",padding:"6px 16px"},o&&"standard"===n.variant&&{color:t.vars?t.vars.palette.Alert["".concat(o,"Color")]:r(t.palette[o].light,.6),backgroundColor:t.vars?t.vars.palette.Alert["".concat(o,"StandardBg")]:i(t.palette[o].light,.9),["& .".concat(eM.icon)]:t.vars?{color:t.vars.palette.Alert["".concat(o,"IconColor")]}:{color:t.palette[o].main}},o&&"outlined"===n.variant&&{color:t.vars?t.vars.palette.Alert["".concat(o,"Color")]:r(t.palette[o].light,.6),border:"1px solid ".concat((t.vars||t).palette[o].light),["& .".concat(eM.icon)]:t.vars?{color:t.vars.palette.Alert["".concat(o,"IconColor")]}:{color:t.palette[o].main}},o&&"filled"===n.variant&&(0,d.c)({fontWeight:t.typography.fontWeightMedium},t.vars?{color:t.vars.palette.Alert["".concat(o,"FilledColor")],backgroundColor:t.vars.palette.Alert["".concat(o,"FilledBg")]}:{backgroundColor:"dark"===t.palette.mode?t.palette[o].dark:t.palette[o].main,color:t.palette.getContrastText(t.palette[o].main)}))})),lM=(0,cs.cp)("div",{name:"MuiAlert",slot:"Icon",overridesResolver:(e,t)=>t.icon})({marginRight:12,padding:"7px 0",display:"flex",fontSize:22,opacity:.9}),cM=(0,cs.cp)("div",{name:"MuiAlert",slot:"Message",overridesResolver:(e,t)=>t.message})({padding:"8px 0",minWidth:0,overflow:"auto"}),uM=(0,cs.cp)("div",{name:"MuiAlert",slot:"Action",overridesResolver:(e,t)=>t.action})({display:"flex",alignItems:"flex-start",padding:"4px 0 0 16px",marginLeft:"auto",marginRight:-8}),dM={success:(0,Ae.jsx)(tM,{fontSize:"inherit"}),warning:(0,Ae.jsx)(nM,{fontSize:"inherit"}),error:(0,Ae.jsx)(rM,{fontSize:"inherit"}),info:(0,Ae.jsx)(iM,{fontSize:"inherit"})},hM=n.forwardRef((function(e,t){var n,r,i,o,s,a;const l=(0,Oe.c)({props:e,name:"MuiAlert"}),{action:c,children:u,className:h,closeText:p="Close",color:f,components:g={},componentsProps:m={},icon:y,iconMapping:v=dM,onClose:_,role:b="alert",severity:x="success",slotProps:S={},slots:w={},variant:E="standard"}=l,P=(0,Tt.c)(l,sM),C=(0,d.c)({},l,{color:f,severity:x,variant:E}),A=(e=>{const{variant:t,color:n,severity:r,classes:i}=e,o={root:["root","".concat(t).concat((0,ha.c)(n||r)),"".concat(t)],icon:["icon"],message:["message"],action:["action"]};return(0,ls.c)(o,QT,i)})(C),k=null!=(n=null!=(r=w.closeButton)?r:g.CloseButton)?n:Gu,j=null!=(i=null!=(o=w.closeIcon)?o:g.CloseIcon)?i:oM,I=null!=(s=S.closeButton)?s:m.closeButton,G=null!=(a=S.closeIcon)?a:m.closeIcon;return(0,Ae.jsxs)(aM,(0,d.c)({role:b,elevation:0,ownerState:C,className:(0,ts.c)(A.root,h),ref:t},P,{children:[!1!==y?(0,Ae.jsx)(lM,{ownerState:C,className:A.icon,children:y||v[x]||dM[x]}):null,(0,Ae.jsx)(cM,{ownerState:C,className:A.message,children:u}),null!=c?(0,Ae.jsx)(uM,{ownerState:C,className:A.action,children:c}):null,null==c&&_?(0,Ae.jsx)(uM,{ownerState:C,className:A.action,children:(0,Ae.jsx)(k,(0,d.c)({size:"small","aria-label":p,title:p,color:"inherit",onClick:_},I,{children:(0,Ae.jsx)(j,(0,d.c)({fontSize:"small"},G))}))}):null]}))})),pM=hM;function fM(e){return ka({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{d:"M3 5v14c0 1.103.897 2 2 2h14c1.103 0 2-.897 2-2V5c0-1.103-.897-2-2-2H5c-1.103 0-2 .897-2 2zm16.002 14H5V5h14l.002 14z"}},{tag:"path",attr:{d:"M15 12h2V7h-5v2h3zm-3 3H9v-3H7v5h5z"}}]})(e)}function gM(e){return ka({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{d:"M6 18h12v2H6zm5-14v8.586L6.707 8.293 5.293 9.707 12 16.414l6.707-6.707-1.414-1.414L13 12.586V4z"}}]})(e)}function mM(e){return ka({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{d:"M18 6h2v12h-2zM4 13h8.586l-4.293 4.293 1.414 1.414L16.414 12 9.707 5.293 8.293 6.707 12.586 11H4z"}}]})(e)}function yM(e){return ka({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{d:"M12 10c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zm6 0c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zM6 10c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2z"}}]})(e)}const vM=e=>{var t;const r=null!==(t=e.size)&&void 0!==t?t:20,[i,o]=(0,n.useState)(!1),[s,a]=(0,n.useState)(!1),[l,c]=(0,n.useState)(null),[u,d]=(0,n.useState)(null);(0,n.useEffect)((()=>{u&&(u.click(),c(null))}),[u]);const h=async t=>{t.stopPropagation(),o(!0);let n="";switch(e.type){case kC.INSPECTION:n=await Py(e.itemId,!0);break;case kC.CAMPAIGN:n=await Cy(e.itemId,!0)}o(!1),""!==n?c(n):a(!0)};return(0,Ae.jsxs)(Ae.Fragment,{children:[!i&&e.type===kC.INSPECTION&&(0,Ae.jsx)(cu,{title:"Download report",children:(0,Ae.jsx)(Sa,{onClick:h,children:(0,Ae.jsx)(gM,{size:r})})}),e.type===kC.CAMPAIGN&&(0,Ae.jsx)(ev,{onClick:h,color:"light",loading:i,label:"Download report",frontIcon:(0,Ae.jsx)(gM,{size:r}),textColor:jp}),i&&e.type===kC.INSPECTION&&(0,Ae.jsx)(yf,{size:r}),l&&(0,Ae.jsx)("a",{ref:e=>d(e),onClick:e=>e.stopPropagation(),href:l,style:{visibility:"hidden"},download:!0}),(0,Ae.jsx)(JT,{open:s,autoHideDuration:3e3,onClose:()=>a(!1),anchorOrigin:{vertical:"bottom",horizontal:"center"},children:(0,Ae.jsx)(pM,{severity:"error",children:"Could not download inspection report"})})]})};var _M=__webpack_require__(42392);const bM=Symbol.for("Dexie"),xM=globalThis[bM]||(globalThis[bM]=_M);if(_M.semVer!==xM.semVer)throw new Error("Two different versions of Dexie loaded in the same app: ".concat(_M.semVer," and ").concat(xM.semVer));const{liveQuery:SM,mergeRanges:wM,rangesOverlap:EM,RangeSet:PM,cmp:CM,Entity:AM,PropModSymbol:kM,PropModification:jM,replacePrefix:IM,add:GM,remove:TM}=xM,MM=xM,OM=new MM("OfflineInspections");OM.version(1).stores({inspections:"id,timestamp",campaigns:"id,timestamp",subAssets:"id,inspectionIds"});const RM={UNKNOWN:0,INTERSECTING:1,ABOVE:2,RIGHT:4,BELOW:8,LEFT:16};function DM(e){const t=WM();for(let n=0,r=e.length;n<r;++n)$M(t,e[n]);return t}function NM(e,t,n){return n?(n[0]=e[0]-t,n[1]=e[1]-t,n[2]=e[2]+t,n[3]=e[3]+t,n):[e[0]-t,e[1]-t,e[2]+t,e[3]+t]}function LM(e,t){return t?(t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t):e.slice()}function VM(e,t,n){let r,i;return r=t<e[0]?e[0]-t:e[2]<t?t-e[2]:0,i=n<e[1]?e[1]-n:e[3]<n?n-e[3]:0,r*r+i*i}function FM(e,t){return BM(e,t[0],t[1])}function zM(e,t){return e[0]<=t[0]&&t[2]<=e[2]&&e[1]<=t[1]&&t[3]<=e[3]}function BM(e,t,n){return e[0]<=t&&t<=e[2]&&e[1]<=n&&n<=e[3]}function UM(e,t){const n=e[0],r=e[1],i=e[2],o=e[3],s=t[0],a=t[1];let l=RM.UNKNOWN;return s<n?l|=RM.LEFT:s>i&&(l|=RM.RIGHT),a<r?l|=RM.BELOW:a>o&&(l|=RM.ABOVE),l===RM.UNKNOWN&&(l=RM.INTERSECTING),l}function WM(){return[1/0,1/0,-1/0,-1/0]}function HM(e,t,n,r,i){return i?(i[0]=e,i[1]=t,i[2]=n,i[3]=r,i):[e,t,n,r]}function qM(e){return HM(1/0,1/0,-1/0,-1/0,e)}function XM(e,t){const n=e[0],r=e[1];return HM(n,r,n,r,t)}function YM(e,t,n,r,i){return JM(qM(i),e,t,n,r)}function KM(e,t){return e[0]==t[0]&&e[2]==t[2]&&e[1]==t[1]&&e[3]==t[3]}function ZM(e,t){return t[0]<e[0]&&(e[0]=t[0]),t[2]>e[2]&&(e[2]=t[2]),t[1]<e[1]&&(e[1]=t[1]),t[3]>e[3]&&(e[3]=t[3]),e}function $M(e,t){t[0]<e[0]&&(e[0]=t[0]),t[0]>e[2]&&(e[2]=t[0]),t[1]<e[1]&&(e[1]=t[1]),t[1]>e[3]&&(e[3]=t[1])}function JM(e,t,n,r,i){for(;n<r;n+=i)QM(e,t[n],t[n+1]);return e}function QM(e,t,n){e[0]=Math.min(e[0],t),e[1]=Math.min(e[1],n),e[2]=Math.max(e[2],t),e[3]=Math.max(e[3],n)}function eO(e,t){let n;return n=t(nO(e)),n||(n=t(rO(e)),n||(n=t(uO(e)),n||(n=t(cO(e)),n||!1)))}function tO(e){let t=0;return pO(e)||(t=dO(e)*aO(e)),t}function nO(e){return[e[0],e[1]]}function rO(e){return[e[2],e[1]]}function iO(e){return[(e[0]+e[2])/2,(e[1]+e[3])/2]}function oO(e,t){let n;if("bottom-left"===t)n=nO(e);else if("bottom-right"===t)n=rO(e);else if("top-left"===t)n=cO(e);else{if("top-right"!==t)throw new Error("Invalid corner");n=uO(e)}return n}function sO(e,t,n,r,i){const[o,s,a,l,c,u,d,h]=function(e,t,n,r){const i=t*r[0]/2,o=t*r[1]/2,s=Math.cos(n),a=Math.sin(n),l=i*s,c=i*a,u=o*s,d=o*a,h=e[0],p=e[1];return[h-l+d,p-c-u,h-l-d,p-c+u,h+l-d,p+c+u,h+l+d,p+c-u,h-l+d,p-c-u]}(e,t,n,r);return HM(Math.min(o,a,c,d),Math.min(s,l,u,h),Math.max(o,a,c,d),Math.max(s,l,u,h),i)}function aO(e){return e[3]-e[1]}function lO(e,t,n){const r=n||[1/0,1/0,-1/0,-1/0];return hO(e,t)?(e[0]>t[0]?r[0]=e[0]:r[0]=t[0],e[1]>t[1]?r[1]=e[1]:r[1]=t[1],e[2]<t[2]?r[2]=e[2]:r[2]=t[2],e[3]<t[3]?r[3]=e[3]:r[3]=t[3]):qM(r),r}function cO(e){return[e[0],e[3]]}function uO(e){return[e[2],e[3]]}function dO(e){return e[2]-e[0]}function hO(e,t){return e[0]<=t[2]&&e[2]>=t[0]&&e[1]<=t[3]&&e[3]>=t[1]}function pO(e){return e[2]<e[0]||e[3]<e[1]}function fO(e,t){const n=(e[2]-e[0])/2*(t-1),r=(e[3]-e[1])/2*(t-1);e[0]-=n,e[2]+=n,e[1]-=r,e[3]+=r}function gO(e,t,n,r){if(pO(e))return qM(n);let i=[];if(r>1){const t=e[2]-e[0],n=e[3]-e[1];for(let o=0;o<r;++o)i.push(e[0]+t*o/r,e[1],e[2],e[1]+n*o/r,e[2]-t*o/r,e[3],e[0],e[3]-n*o/r)}else i=[e[0],e[1],e[2],e[1],e[2],e[3],e[0],e[3]];t(i,i,2);const o=[],s=[];for(let a=0,l=i.length;a<l;a+=2)o.push(i[a]),s.push(i[a+1]);return function(e,t,n){return HM(Math.min.apply(null,e),Math.min.apply(null,t),Math.max.apply(null,e),Math.max.apply(null,t),n)}(o,s,n)}function mO(e,t){const n=t.getExtent(),r=iO(e);if(t.canWrapX()&&(r[0]<n[0]||r[0]>=n[2])){const t=dO(n),i=Math.floor((r[0]-n[0])/t)*t;e[0]-=i,e[2]-=i}return e}function yO(e,t,n){if(t.canWrapX()){const r=t.getExtent();if(!isFinite(e[0])||!isFinite(e[2]))return[[r[0],e[1],r[2],e[3]]];mO(e,t);const i=dO(r);if(dO(e)>i&&!n)return[[r[0],e[1],r[2],e[3]]];if(e[0]<r[0])return[[e[0]+i,e[1],r[2],e[3]],[r[0],e[1],e[2],e[3]]];if(e[2]>r[2])return[[e[0],e[1],r[2],e[3]],[r[0],e[1],e[2]-i,e[3]]]}return[e]}const vO={9001:"m",9002:"ft",9003:"us-ft",9101:"radians",9102:"degrees"};function _O(e){return vO[e]}const bO={radians:6370997/(2*Math.PI),degrees:2*Math.PI*6370997/360,ft:.3048,m:1,"us-ft":1200/3937};const xO=class{constructor(e){this.code_=e.code,this.units_=e.units,this.extent_=void 0!==e.extent?e.extent:null,this.worldExtent_=void 0!==e.worldExtent?e.worldExtent:null,this.axisOrientation_=void 0!==e.axisOrientation?e.axisOrientation:"enu",this.global_=void 0!==e.global&&e.global,this.canWrapX_=!(!this.global_||!this.extent_),this.getPointResolutionFunc_=e.getPointResolution,this.defaultTileGrid_=null,this.metersPerUnit_=e.metersPerUnit}canWrapX(){return this.canWrapX_}getCode(){return this.code_}getExtent(){return this.extent_}getUnits(){return this.units_}getMetersPerUnit(){return this.metersPerUnit_||bO[this.units_]}getWorldExtent(){return this.worldExtent_}getAxisOrientation(){return this.axisOrientation_}isGlobal(){return this.global_}setGlobal(e){this.global_=e,this.canWrapX_=!(!e||!this.extent_)}getDefaultTileGrid(){return this.defaultTileGrid_}setDefaultTileGrid(e){this.defaultTileGrid_=e}setExtent(e){this.extent_=e,this.canWrapX_=!(!this.global_||!e)}setWorldExtent(e){this.worldExtent_=e}setGetPointResolution(e){this.getPointResolutionFunc_=e}getPointResolutionFunc(){return this.getPointResolutionFunc_}},SO=6378137,wO=Math.PI*SO,EO=[-wO,-wO,wO,wO],PO=[-180,-85,180,85],CO=SO*Math.log(Math.tan(Math.PI/2));class AO extends xO{constructor(e){super({code:e,units:"m",extent:EO,global:!0,worldExtent:PO,getPointResolution:function(e,t){return e/Math.cosh(t[1]/SO)}})}}const kO=[new AO("EPSG:3857"),new AO("EPSG:102100"),new AO("EPSG:102113"),new AO("EPSG:900913"),new AO("http://www.opengis.net/def/crs/EPSG/0/3857"),new AO("http://www.opengis.net/gml/srs/epsg.xml#3857")];function jO(e,t,n,r){var i;const o=e.length;n=n>1?n:2,r=null!==(i=r)&&void 0!==i?i:n,void 0===t&&(t=n>2?e.slice():new Array(o));for(let s=0;s<o;s+=r){t[s]=wO*e[s]/180;let n=SO*Math.log(Math.tan(Math.PI*(+e[s+1]+90)/360));n>CO?n=CO:n<-CO&&(n=-CO),t[s+1]=n}return t}function IO(e,t,n,r){var i;const o=e.length;n=n>1?n:2,r=null!==(i=r)&&void 0!==i?i:n,void 0===t&&(t=n>2?e.slice():new Array(o));for(let s=0;s<o;s+=r)t[s]=180*e[s]/wO,t[s+1]=360*Math.atan(Math.exp(e[s+1]/SO))/Math.PI-90;return t}const GO=[-180,-90,180,90],TO=6378137*Math.PI/180;class MO extends xO{constructor(e,t){super({code:e,units:"degrees",extent:GO,axisOrientation:t,global:!0,metersPerUnit:TO,worldExtent:GO})}}const OO=[new MO("CRS:84"),new MO("EPSG:4326","neu"),new MO("urn:ogc:def:crs:OGC:1.3:CRS84"),new MO("urn:ogc:def:crs:OGC:2:84"),new MO("http://www.opengis.net/def/crs/OGC/1.3/CRS84"),new MO("http://www.opengis.net/gml/srs/epsg.xml#4326","neu"),new MO("http://www.opengis.net/def/crs/EPSG/0/4326","neu")];let RO={};let DO={};function NO(e,t,n){const r=e.getCode(),i=t.getCode();r in DO||(DO[r]={}),DO[r][i]=n}function LO(e,t){let n;return e in DO&&t in DO[e]&&(n=DO[e][t]),n}function VO(e,t,n){return Math.min(Math.max(e,t),n)}function FO(e,t,n,r,i,o){const s=i-n,a=o-r;if(0!==s||0!==a){const l=((e-n)*s+(t-r)*a)/(s*s+a*a);l>1?(n=i,r=o):l>0&&(n+=s*l,r+=a*l)}return zO(e,t,n,r)}function zO(e,t,n,r){const i=n-e,o=r-t;return i*i+o*o}function BO(e){return 180*e/Math.PI}function UO(e){return e*Math.PI/180}function WO(e,t){const n=e%t;return n*t<0?n+t:n}function HO(e,t,n){return e+n*(t-e)}function qO(e,t){const n=Math.pow(10,t);return Math.round(e*n)/n}function XO(e,t){return Math.floor(qO(e,t))}function YO(e,t){return Math.ceil(qO(e,t))}function KO(e,t){return e[0]+=+t[0],e[1]+=+t[1],e}function ZO(e,t){const n=t.getRadius(),r=t.getCenter(),i=r[0],o=r[1];let s=e[0]-i;const a=e[1]-o;0===s&&0===a&&(s=1);const l=Math.sqrt(s*s+a*a);return[i+n*s/l,o+n*a/l]}function $O(e,t){const n=e[0],r=e[1],i=t[0],o=t[1],s=i[0],a=i[1],l=o[0],c=o[1],u=l-s,d=c-a,h=0===u&&0===d?0:(u*(n-s)+d*(r-a))/(u*u+d*d||0);let p,f;return h<=0?(p=s,f=a):h>=1?(p=l,f=c):(p=s+h*u,f=a+h*d),[p,f]}function JO(e,t){let n=!0;for(let r=e.length-1;r>=0;--r)if(e[r]!=t[r]){n=!1;break}return n}function QO(e,t){const n=Math.cos(t),r=Math.sin(t),i=e[0]*n-e[1]*r,o=e[1]*n+e[0]*r;return e[0]=i,e[1]=o,e}function eR(e,t){return e[0]*=t,e[1]*=t,e}function tR(e,t){const n=e[0]-t[0],r=e[1]-t[1];return n*n+r*r}function nR(e,t){return Math.sqrt(tR(e,t))}function rR(e,t){if(t.canWrapX()){const n=dO(t.getExtent()),r=iR(e,t,n);r&&(e[0]-=r*n)}return e}function iR(e,t,n){const r=t.getExtent();let i=0;return t.canWrapX()&&(e[0]<r[0]||e[0]>r[2])&&(n=n||dO(r),i=Math.floor((e[0]-r[0])/n)),i}const oR=6371008.8;function sR(e,t,n){n=n||oR;const r=UO(e[1]),i=UO(t[1]),o=(i-r)/2,s=UO(t[0]-e[0])/2,a=Math.sin(o)*Math.sin(o)+Math.sin(s)*Math.sin(s)*Math.cos(r)*Math.cos(i);return 2*n*Math.atan2(Math.sqrt(a),Math.sqrt(1-a))}function aR(e,t){let n=0;for(let r=0,i=e.length;r<i-1;++r)n+=sR(e[r],e[r+1],t);return n}function lR(e,t){const n=(t=t||{}).radius||oR,r=t.projection||"EPSG:3857",i=e.getType();"GeometryCollection"!==i&&(e=e.clone().transform(r,"EPSG:4326"));let o,s,a,l,c,u,d=0;switch(i){case"Point":case"MultiPoint":break;case"LineString":case"LinearRing":o=e.getCoordinates(),d=aR(o,n);break;case"MultiLineString":case"Polygon":for(o=e.getCoordinates(),a=0,l=o.length;a<l;++a)d+=aR(o[a],n);break;case"MultiPolygon":for(o=e.getCoordinates(),a=0,l=o.length;a<l;++a)for(s=o[a],c=0,u=s.length;c<u;++c)d+=aR(s[c],n);break;case"GeometryCollection":{const n=e.getGeometries();for(a=0,l=n.length;a<l;++a)d+=lR(n[a],t);break}default:throw new Error("Unsupported geometry type: "+i)}return d}function cR(e,t){let n=0;const r=e.length;let i=e[r-1][0],o=e[r-1][1];for(let s=0;s<r;s++){const t=e[s][0],r=e[s][1];n+=UO(t-i)*(2+Math.sin(UO(o))+Math.sin(UO(r))),i=t,o=r}return n*t*t/2}function uR(e,t){const n=(t=t||{}).radius||oR,r=t.projection||"EPSG:3857",i=e.getType();"GeometryCollection"!==i&&(e=e.clone().transform(r,"EPSG:4326"));let o,s,a,l,c,u,d=0;switch(i){case"Point":case"MultiPoint":case"LineString":case"MultiLineString":case"LinearRing":break;case"Polygon":for(o=e.getCoordinates(),d=Math.abs(cR(o[0],n)),a=1,l=o.length;a<l;++a)d-=Math.abs(cR(o[a],n));break;case"MultiPolygon":for(o=e.getCoordinates(),a=0,l=o.length;a<l;++a)for(s=o[a],d+=Math.abs(cR(s[0],n)),c=1,u=s.length;c<u;++c)d-=Math.abs(cR(s[c],n));break;case"GeometryCollection":{const n=e.getGeometries();for(a=0,l=n.length;a<l;++a)d+=uR(n[a],t);break}default:throw new Error("Unsupported geometry type: "+i)}return d}function dR(e,t,n,r){r=r||oR;const i=UO(e[1]),o=UO(e[0]),s=t/r,a=Math.asin(Math.sin(i)*Math.cos(s)+Math.cos(i)*Math.sin(s)*Math.cos(n));return[BO(o+Math.atan2(Math.sin(n)*Math.sin(s)*Math.cos(i),Math.cos(s)-Math.sin(i)*Math.sin(a))),BO(a)]}const hR={info:1,warn:2,error:3,none:4};let pR=hR.info;function fR(){pR>hR.warn||console.warn(...arguments)}function gR(){pR>hR.error||console.error(...arguments)}let mR=!0;function yR(e){mR=!(void 0===e||e)}function vR(e,t){if(void 0!==t)for(let n=0,r=e.length;n<r;++n)t[n]=e[n];else t=e.slice();return t}function _R(e,t){if(void 0!==t&&e!==t){for(let n=0,r=e.length;n<r;++n)t[n]=e[n];e=t}return e}function bR(e){!function(e,t){RO[e]=t}(e.getCode(),e),NO(e,e,vR)}function xR(e){return"string"===typeof e?RO[t=e]||RO[t.replace(/urn:(x-)?ogc:def:crs:EPSG:(.*:)?(\w+)$/,"EPSG:$3")]||null:e||null;var t}function SR(e,t,n,r){let i;const o=(e=xR(e)).getPointResolutionFunc();if(o){if(i=o(t,n),r&&r!==e.getUnits()){const t=e.getMetersPerUnit();t&&(i=i*t/bO[r])}}else{const o=e.getUnits();if("degrees"==o&&!r||"degrees"==r)i=t;else{const s=IR(e,xR("EPSG:4326"));if(s===_R&&"degrees"!==o)i=t*e.getMetersPerUnit();else{let e=[n[0]-t/2,n[1],n[0]+t/2,n[1],n[0],n[1]-t/2,n[0],n[1]+t/2];e=s(e,e,2);i=(sR(e.slice(0,2),e.slice(2,4))+sR(e.slice(4,6),e.slice(6,8)))/2}const a=r?bO[r]:e.getMetersPerUnit();void 0!==a&&(i/=a)}}return i}function wR(e){!function(e){e.forEach(bR)}(e),e.forEach((function(t){e.forEach((function(e){t!==e&&NO(t,e,vR)}))}))}function ER(e,t){return e?"string"===typeof e?xR(e):e:xR(t)}function PR(e){return function(t,n,r,i){var o;const s=t.length;r=void 0!==r?r:2,i=null!==(o=i)&&void 0!==o?o:r,n=void 0!==n?n:new Array(s);for(let a=0;a<s;a+=i){const o=e(t.slice(a,a+r)),s=o.length;for(let e=0,r=i;e<r;++e)n[a+e]=e>=s?t[a+e]:o[e]}return n}}function CR(e,t,n,r){const i=xR(e),o=xR(t);NO(i,o,PR(n)),NO(o,i,PR(r))}function AR(e,t){return yR(),TR(e,"EPSG:4326",void 0!==t?t:"EPSG:3857")}function kR(e,t){const n=TR(e,void 0!==t?t:"EPSG:3857","EPSG:4326"),r=n[0];return(r<-180||r>180)&&(n[0]=WO(r+180,360)-180),n}function jR(e,t){if(e===t)return!0;const n=e.getUnits()===t.getUnits();if(e.getCode()===t.getCode())return n;return IR(e,t)===vR&&n}function IR(e,t){let n=LO(e.getCode(),t.getCode());return n||(n=_R),n}function GR(e,t){return IR(xR(e),xR(t))}function TR(e,t,n){return GR(t,n)(e,void 0,e.length)}function MR(e,t,n,r){return gO(e,GR(t,n),void 0,r)}let OR=null;function RR(){return OR}function DR(e,t){return OR?TR(e,t,OR):e}function NR(e,t){return OR?TR(e,OR,t):(mR&&!JO(e,[0,0])&&e[0]>=-180&&e[0]<=180&&e[1]>=-90&&e[1]<=90&&(mR=!1,fR("Call useGeographic() from ol/proj once to work with [longitude, latitude] coordinates.")),e)}function LR(e,t){return OR?MR(e,t,OR):e}function VR(e,t){return OR?MR(e,OR,t):e}function FR(e,t){if(!OR)return e;const n=xR(t).getMetersPerUnit(),r=OR.getMetersPerUnit();return n&&r?e*n/r:e}function zR(e,t,n){return function(r){let i,o;if(e.canWrapX()){const t=e.getExtent(),s=dO(t);o=iR(r=r.slice(0),e,s),o&&(r[0]=r[0]-o*s),r[0]=VO(r[0],t[0],t[2]),r[1]=VO(r[1],t[1],t[3]),i=n(r)}else i=n(r);return o&&t.canWrapX()&&(i[0]+=o*dO(t.getExtent())),i}}!function(){var e,t,n;wR(kO),wR(OO),e=kO,t=jO,n=IO,OO.forEach((function(r){e.forEach((function(e){NO(r,e,t),NO(e,r,n)}))}))}();const BR="change",UR="error",WR="contextmenu",HR="click",qR="dblclick",XR="keydown",YR="keypress",KR="load",ZR="touchmove",$R="wheel";const JR=class{constructor(){this.disposed=!1}dispose(){this.disposed||(this.disposed=!0,this.disposeInternal())}disposeInternal(){}};const QR=class{constructor(e){this.propagationStopped,this.defaultPrevented,this.type=e,this.target=null}preventDefault(){this.defaultPrevented=!0}stopPropagation(){this.propagationStopped=!0}};function eD(e,t){return e>t?1:e<t?-1:0}function tD(e,t){return e<t?1:e>t?-1:0}function nD(e,t,n){if(e[0]<=t)return 0;const r=e.length;if(t<=e[r-1])return r-1;if("function"===typeof n){for(let i=1;i<r;++i){const r=e[i];if(r===t)return i;if(r<t)return n(t,e[i-1],r)>0?i-1:i}return r-1}if(n>0){for(let n=1;n<r;++n)if(e[n]<t)return n-1;return r-1}if(n<0){for(let n=1;n<r;++n)if(e[n]<=t)return n;return r-1}for(let i=1;i<r;++i){if(e[i]==t)return i;if(e[i]<t)return e[i-1]-t<t-e[i]?i-1:i}return r-1}function rD(e,t,n){for(;t<n;){const r=e[t];e[t]=e[n],e[n]=r,++t,--n}}function iD(e,t){const n=Array.isArray(t)?t:[t],r=n.length;for(let i=0;i<r;i++)e[e.length]=n[i]}function oD(e,t){const n=e.length;if(n!==t.length)return!1;for(let r=0;r<n;r++)if(e[r]!==t[r])return!1;return!0}function sD(){return!0}function aD(){return!1}function lD(){}function cD(e){let t,n,r;return function(){const i=Array.prototype.slice.call(arguments);return n&&this===r&&oD(i,n)||(r=this,n=i,t=e.apply(this,arguments)),t}}function uD(e){return function(){let t;try{t=e()}catch(n){return Promise.reject(n)}return t instanceof Promise?t:Promise.resolve(t)}()}function dD(e){for(const t in e)delete e[t]}function hD(e){let t;for(t in e)return!1;return!t}const pD=class extends JR{constructor(e){super(),this.eventTarget_=e,this.pendingRemovals_=null,this.dispatching_=null,this.listeners_=null}addEventListener(e,t){if(!e||!t)return;const n=this.listeners_||(this.listeners_={}),r=n[e]||(n[e]=[]);r.includes(t)||r.push(t)}dispatchEvent(e){const t="string"===typeof e,n=t?e:e.type,r=this.listeners_&&this.listeners_[n];if(!r)return;const i=t?new QR(e):e;i.target||(i.target=this.eventTarget_||this);const o=this.dispatching_||(this.dispatching_={}),s=this.pendingRemovals_||(this.pendingRemovals_={});let a;n in o||(o[n]=0,s[n]=0),++o[n];for(let l=0,c=r.length;l<c;++l)if(a="handleEvent"in r[l]?r[l].handleEvent(i):r[l].call(this,i),!1===a||i.propagationStopped){a=!1;break}if(0===--o[n]){let e=s[n];for(delete s[n];e--;)this.removeEventListener(n,lD);delete o[n]}return a}disposeInternal(){this.listeners_&&dD(this.listeners_)}getListeners(e){return this.listeners_&&this.listeners_[e]||void 0}hasListener(e){return!!this.listeners_&&(e?e in this.listeners_:Object.keys(this.listeners_).length>0)}removeEventListener(e,t){if(!this.listeners_)return;const n=this.listeners_[e];if(!n)return;const r=n.indexOf(t);-1!==r&&(this.pendingRemovals_&&e in this.pendingRemovals_?(n[r]=lD,++this.pendingRemovals_[e]):(n.splice(r,1),0===n.length&&delete this.listeners_[e]))}},fD=0,gD=1,mD=2,yD=3,vD=4;function _D(){throw new Error("Unimplemented abstract method.")}let bD=0;function xD(e){return e.ol_uid||(e.ol_uid=String(++bD))}function SD(e){return Math.pow(e,3)}function wD(e){return 1-SD(1-e)}function ED(e){return 3*e*e-2*e*e*e}function PD(e){return e}const CD=class extends pD{constructor(e,t,n){super(),n=n||{},this.tileCoord=e,this.state=t,this.key="",this.transition_=void 0===n.transition?250:n.transition,this.transitionStarts_={},this.interpolate=!!n.interpolate}changed(){this.dispatchEvent(BR)}release(){this.state===yD&&this.setState(vD)}getKey(){return this.key+"/"+this.tileCoord}getTileCoord(){return this.tileCoord}getState(){return this.state}setState(e){if(this.state!==yD&&this.state>e)throw new Error("Tile load sequence violation");this.state=e,this.changed()}load(){_D()}getAlpha(e,t){if(!this.transition_)return 1;let n=this.transitionStarts_[e];if(n){if(-1===n)return 1}else n=t,this.transitionStarts_[e]=n;const r=t-n+1e3/60;return r>=this.transition_?1:SD(r/this.transition_)}inTransition(e){return!!this.transition_&&-1!==this.transitionStarts_[e]}endTransition(e){this.transition_&&(this.transitionStarts_[e]=-1)}},AD="undefined"!==typeof navigator&&"undefined"!==typeof navigator.userAgent?navigator.userAgent.toLowerCase():"",kD=AD.includes("firefox"),jD=AD.includes("safari")&&!AD.includes("chrom")&&(AD.includes("version/15.4")||/cpu (os|iphone os) 15_4 like mac os x/.test(AD)),ID=AD.includes("webkit")&&!AD.includes("edge"),GD=AD.includes("macintosh"),TD="undefined"!==typeof devicePixelRatio?devicePixelRatio:1,MD="undefined"!==typeof WorkerGlobalScope&&"undefined"!==typeof OffscreenCanvas&&self instanceof WorkerGlobalScope,OD="undefined"!==typeof Image&&Image.prototype.decode,RD="function"===typeof createImageBitmap,DD=function(){let e=!1;try{const t=Object.defineProperty({},"passive",{get:function(){e=!0}});window.addEventListener("_",null,t),window.removeEventListener("_",null,t)}catch(t){}return e}();function ND(e,t,n,r){let i;return i=n&&n.length?n.shift():MD?new OffscreenCanvas(e||300,t||300):document.createElement("canvas"),e&&(i.width=e),t&&(i.height=t),i.getContext("2d",r)}let LD;function VD(){return LD||(LD=ND(1,1)),LD}function FD(e){const t=e.canvas;t.width=1,t.height=1,e.clearRect(0,0,1,1)}function zD(e){let t=e.offsetWidth;const n=getComputedStyle(e);return t+=parseInt(n.marginLeft,10)+parseInt(n.marginRight,10),t}function BD(e){let t=e.offsetHeight;const n=getComputedStyle(e);return t+=parseInt(n.marginTop,10)+parseInt(n.marginBottom,10),t}function UD(e,t){const n=t.parentNode;n&&n.replaceChild(e,t)}function WD(e){for(;e.lastChild;)e.lastChild.remove()}const HD={IDLE:0,LOADING:1,LOADED:2,ERROR:3,EMPTY:4};function qD(e,t,n,r,i){if(i){const i=n;n=function(){e.removeEventListener(t,n),i.apply(null!==r&&void 0!==r?r:this,arguments)}}else r&&r!==e&&(n=n.bind(r));const o={target:e,type:t,listener:n};return e.addEventListener(t,n),o}function XD(e,t,n,r){return qD(e,t,n,r,!0)}function YD(e){e&&e.target&&(e.target.removeEventListener(e.type,e.listener),dD(e))}function KD(e,t){return t&&(e.src=t),e.src&&OD?new Promise(((t,n)=>e.decode().then((()=>t(e))).catch((r=>e.complete&&e.width?t(e):n(r))))):function(e,t){return new Promise(((n,r)=>{function i(){s(),n(e)}function o(){s(),r(new Error("Image load error"))}function s(){e.removeEventListener("load",i),e.removeEventListener("error",o)}e.addEventListener("load",i),e.addEventListener("error",o),t&&(e.src=t)}))}(e)}function ZD(e,t){return t&&(e.src=t),e.src&&OD&&RD?e.decode().then((()=>createImageBitmap(e))).catch((t=>{if(e.complete&&e.width)return e;throw t})):KD(e)}const $D=class extends pD{constructor(e,t,n,r){super(),this.extent=e,this.pixelRatio_=n,this.resolution=t,this.state="function"===typeof r?HD.IDLE:r,this.image_=null,this.loader="function"===typeof r?r:null}changed(){this.dispatchEvent(BR)}getExtent(){return this.extent}getImage(){return this.image_}getPixelRatio(){return this.pixelRatio_}getResolution(){return this.resolution}getState(){return this.state}load(){if(this.state==HD.IDLE&&this.loader){this.state=HD.LOADING,this.changed();const e=this.getResolution(),t=Array.isArray(e)?e[0]:e;uD((()=>this.loader(this.getExtent(),t,this.getPixelRatio()))).then((e=>{"image"in e&&(this.image_=e.image),"extent"in e&&(this.extent=e.extent),"resolution"in e&&(this.resolution=e.resolution),"pixelRatio"in e&&(this.pixelRatio_=e.pixelRatio),(e instanceof HTMLImageElement||e instanceof ImageBitmap||e instanceof HTMLCanvasElement||e instanceof HTMLVideoElement)&&(this.image_=e),this.state=HD.LOADED})).catch((e=>{this.state=HD.ERROR,console.error(e)})).finally((()=>this.changed()))}}setImage(e){this.image_=e}setResolution(e){this.resolution=e}};const JD=class extends CD{constructor(e,t,n,r,i,o){super(e,t,o),this.crossOrigin_=r,this.src_=n,this.key=n,this.image_=new Image,null!==r&&(this.image_.crossOrigin=r),this.unlisten_=null,this.tileLoadFunction_=i}getImage(){return this.image_}setImage(e){this.image_=e,this.state=mD,this.unlistenImage_(),this.changed()}handleImageError_(){this.state=yD,this.unlistenImage_(),this.image_=function(){const e=ND(1,1);return e.fillStyle="rgba(0,0,0,0)",e.fillRect(0,0,1,1),e.canvas}(),this.changed()}handleImageLoad_(){const e=this.image_;e.naturalWidth&&e.naturalHeight?this.state=mD:this.state=vD,this.unlistenImage_(),this.changed()}load(){this.state==yD&&(this.state=fD,this.image_=new Image,null!==this.crossOrigin_&&(this.image_.crossOrigin=this.crossOrigin_)),this.state==fD&&(this.state=gD,this.changed(),this.tileLoadFunction_(this,this.src_),this.unlisten_=function(e,t,n){const r=e;let i=!0,o=!1,s=!1;const a=[XD(r,KR,(function(){s=!0,o||t()}))];return r.src&&OD?(o=!0,r.decode().then((function(){i&&t()})).catch((function(e){i&&(s?t():n())}))):a.push(XD(r,UR,n)),function(){i=!1,a.forEach(YD)}}(this.image_,this.handleImageLoad_.bind(this),this.handleImageError_.bind(this)))}unlistenImage_(){this.unlisten_&&(this.unlisten_(),this.unlisten_=null)}};const QD=class{constructor(e,t,n,r,i,o){this.sourceProj_=e,this.targetProj_=t;let s={};const a=GR(this.targetProj_,this.sourceProj_);this.transformInv_=function(e){const t=e[0]+"/"+e[1];return s[t]||(s[t]=a(e)),s[t]},this.maxSourceExtent_=r,this.errorThresholdSquared_=i*i,this.triangles_=[],this.wrapsXInSource_=!1,this.canWrapXInSource_=this.sourceProj_.canWrapX()&&!!r&&!!this.sourceProj_.getExtent()&&dO(r)>=dO(this.sourceProj_.getExtent()),this.sourceWorldWidth_=this.sourceProj_.getExtent()?dO(this.sourceProj_.getExtent()):null,this.targetWorldWidth_=this.targetProj_.getExtent()?dO(this.targetProj_.getExtent()):null;const l=cO(n),c=uO(n),u=rO(n),d=nO(n),h=this.transformInv_(l),p=this.transformInv_(c),f=this.transformInv_(u),g=this.transformInv_(d),m=10+(o?Math.max(0,Math.ceil(Math.log2(tO(n)/(o*o*256*256)))):0);if(this.addQuad_(l,c,u,d,h,p,f,g,m),this.wrapsXInSource_){let e=1/0;this.triangles_.forEach((function(t,n,r){e=Math.min(e,t.source[0][0],t.source[1][0],t.source[2][0])})),this.triangles_.forEach((t=>{if(Math.max(t.source[0][0],t.source[1][0],t.source[2][0])-e>this.sourceWorldWidth_/2){const n=[[t.source[0][0],t.source[0][1]],[t.source[1][0],t.source[1][1]],[t.source[2][0],t.source[2][1]]];n[0][0]-e>this.sourceWorldWidth_/2&&(n[0][0]-=this.sourceWorldWidth_),n[1][0]-e>this.sourceWorldWidth_/2&&(n[1][0]-=this.sourceWorldWidth_),n[2][0]-e>this.sourceWorldWidth_/2&&(n[2][0]-=this.sourceWorldWidth_);const r=Math.min(n[0][0],n[1][0],n[2][0]);Math.max(n[0][0],n[1][0],n[2][0])-r<this.sourceWorldWidth_/2&&(t.source=n)}}))}s={}}addTriangle_(e,t,n,r,i,o){this.triangles_.push({source:[r,i,o],target:[e,t,n]})}addQuad_(e,t,n,r,i,o,s,a,l){const c=DM([i,o,s,a]),u=this.sourceWorldWidth_?dO(c)/this.sourceWorldWidth_:null,d=this.sourceWorldWidth_,h=this.sourceProj_.canWrapX()&&u>.5&&u<1;let p=!1;if(l>0){if(this.targetProj_.isGlobal()&&this.targetWorldWidth_){p=dO(DM([e,t,n,r]))/this.targetWorldWidth_>.25||p}!h&&this.sourceProj_.isGlobal()&&u&&(p=u>.25||p)}if(!p&&this.maxSourceExtent_&&isFinite(c[0])&&isFinite(c[1])&&isFinite(c[2])&&isFinite(c[3])&&!hO(c,this.maxSourceExtent_))return;let f=0;if(!p&&(!isFinite(i[0])||!isFinite(i[1])||!isFinite(o[0])||!isFinite(o[1])||!isFinite(s[0])||!isFinite(s[1])||!isFinite(a[0])||!isFinite(a[1])))if(l>0)p=!0;else if(f=(isFinite(i[0])&&isFinite(i[1])?0:8)+(isFinite(o[0])&&isFinite(o[1])?0:4)+(isFinite(s[0])&&isFinite(s[1])?0:2)+(isFinite(a[0])&&isFinite(a[1])?0:1),1!=f&&2!=f&&4!=f&&8!=f)return;if(l>0){if(!p){const t=[(e[0]+n[0])/2,(e[1]+n[1])/2],r=this.transformInv_(t);let o;if(h){o=(WO(i[0],d)+WO(s[0],d))/2-WO(r[0],d)}else o=(i[0]+s[0])/2-r[0];const a=(i[1]+s[1])/2-r[1];p=o*o+a*a>this.errorThresholdSquared_}if(p){if(Math.abs(e[0]-n[0])<=Math.abs(e[1]-n[1])){const c=[(t[0]+n[0])/2,(t[1]+n[1])/2],u=this.transformInv_(c),d=[(r[0]+e[0])/2,(r[1]+e[1])/2],h=this.transformInv_(d);this.addQuad_(e,t,c,d,i,o,u,h,l-1),this.addQuad_(d,c,n,r,h,u,s,a,l-1)}else{const c=[(e[0]+t[0])/2,(e[1]+t[1])/2],u=this.transformInv_(c),d=[(n[0]+r[0])/2,(n[1]+r[1])/2],h=this.transformInv_(d);this.addQuad_(e,c,d,r,i,u,h,a,l-1),this.addQuad_(c,t,n,d,u,o,s,h,l-1)}return}}if(h){if(!this.canWrapXInSource_)return;this.wrapsXInSource_=!0}0==(11&f)&&this.addTriangle_(e,n,r,i,s,a),0==(14&f)&&this.addTriangle_(e,n,t,i,s,o),f&&(0==(13&f)&&this.addTriangle_(t,r,e,o,a,i),0==(7&f)&&this.addTriangle_(t,r,n,o,a,s))}calculateSourceExtent(){const e=[1/0,1/0,-1/0,-1/0];return this.triangles_.forEach((function(t,n,r){const i=t.source;$M(e,i[0]),$M(e,i[1]),$M(e,i[2])})),e}getTriangles(){return this.triangles_}};let eN;const tN=[];function nN(e,t,n,r,i){e.beginPath(),e.moveTo(0,0),e.lineTo(t,n),e.lineTo(r,i),e.closePath(),e.save(),e.clip(),e.fillRect(0,0,Math.max(t,r)+1,Math.max(n,i)),e.restore()}function rN(e,t){return Math.abs(e[4*t]-210)>2||Math.abs(e[4*t+3]-191.25)>2}function iN(e,t,n,r){const i=TR(n,t,e);let o=SR(t,r,n);const s=t.getMetersPerUnit();void 0!==s&&(o*=s);const a=e.getMetersPerUnit();void 0!==a&&(o/=a);const l=e.getExtent();if(!l||FM(l,i)){const t=SR(e,o,i)/o;isFinite(t)&&t>0&&(o/=t)}return o}function oN(e,t,n,r){const i=iO(n);let o=iN(e,t,i,r);return(!isFinite(o)||o<=0)&&eO(n,(function(n){return o=iN(e,t,n,r),isFinite(o)&&o>0})),o}function sN(e,t,n,r,i,o,s,a,l,c,u,d,h,p){const f=ND(Math.round(n*e),Math.round(n*t),tN);if(d||(f.imageSmoothingEnabled=!1),0===l.length)return f.canvas;function g(e){return Math.round(e*n)/n}f.scale(n,n),f.globalCompositeOperation="lighter";const m=[1/0,1/0,-1/0,-1/0];let y;l.forEach((function(e,t,n){ZM(m,e.extent)}));const v=n/r,_=(d?1:1+Math.pow(2,-24))/v;if(!h||1!==l.length||0!==c){if(y=ND(Math.round(dO(m)*v),Math.round(aO(m)*v),tN),d||(y.imageSmoothingEnabled=!1),i&&p){const e=(i[0]-m[0])*v,t=-(i[3]-m[3])*v,n=dO(i)*v,r=aO(i)*v;y.rect(e,t,n,r),y.clip()}l.forEach((function(e,t,n){if(e.image.width>0&&e.image.height>0){if(e.clipExtent){y.save();const t=(e.clipExtent[0]-m[0])*v,n=-(e.clipExtent[3]-m[3])*v,r=dO(e.clipExtent)*v,i=aO(e.clipExtent)*v;y.rect(d?t:Math.round(t),d?n:Math.round(n),d?r:Math.round(t+r)-Math.round(t),d?i:Math.round(n+i)-Math.round(n)),y.clip()}const t=(e.extent[0]-m[0])*v,n=-(e.extent[3]-m[3])*v,r=dO(e.extent)*v,i=aO(e.extent)*v;y.drawImage(e.image,c,c,e.image.width-2*c,e.image.height-2*c,d?t:Math.round(t),d?n:Math.round(n),d?r:Math.round(t+r)-Math.round(t),d?i:Math.round(n+i)-Math.round(n)),e.clipExtent&&y.restore()}}))}const b=cO(s);return a.getTriangles().forEach((function(e,t,n){const r=e.source,i=e.target;let s=r[0][0],a=r[0][1],c=r[1][0],u=r[1][1],h=r[2][0],p=r[2][1];const v=g((i[0][0]-b[0])/o),x=g(-(i[0][1]-b[1])/o),S=g((i[1][0]-b[0])/o),w=g(-(i[1][1]-b[1])/o),E=g((i[2][0]-b[0])/o),P=g(-(i[2][1]-b[1])/o),C=s,A=a;s=0,a=0,c-=C,u-=A,h-=C,p-=A;const k=function(e){const t=e.length;for(let r=0;r<t;r++){let n=r,i=Math.abs(e[r][r]);for(let s=r+1;s<t;s++){const t=Math.abs(e[s][r]);t>i&&(i=t,n=s)}if(0===i)return null;const o=e[n];e[n]=e[r],e[r]=o;for(let s=r+1;s<t;s++){const n=-e[s][r]/e[r][r];for(let i=r;i<t+1;i++)r==i?e[s][i]=0:e[s][i]+=n*e[r][i]}}const n=new Array(t);for(let r=t-1;r>=0;r--){n[r]=e[r][t]/e[r][r];for(let i=r-1;i>=0;i--)e[i][t]-=e[i][r]*n[r]}return n}([[c,u,0,0,S-v],[h,p,0,0,E-v],[0,0,c,u,w-x],[0,0,h,p,P-x]]);if(!k)return;if(f.save(),f.beginPath(),function(){if(void 0===eN){const e=ND(6,6,tN);e.globalCompositeOperation="lighter",e.fillStyle="rgba(210, 0, 0, 0.75)",nN(e,4,5,4,0),nN(e,4,5,0,5);const t=e.getImageData(0,0,3,3).data;eN=rN(t,0)||rN(t,4)||rN(t,8),FD(e),tN.push(e.canvas)}return eN}()||!d){f.moveTo(S,w);const e=4,t=v-S,n=x-w;for(let r=0;r<e;r++)f.lineTo(S+g((r+1)*t/e),w+g(r*n/(e-1))),r!=e-1&&f.lineTo(S+g((r+1)*t/e),w+g((r+1)*n/(e-1)));f.lineTo(E,P)}else f.moveTo(S,w),f.lineTo(v,x),f.lineTo(E,P);let j;if(f.clip(),f.transform(k[0],k[2],k[1],k[3],v,x),f.translate(m[0]-C,m[3]-A),y)j=y.canvas,f.scale(_,-_);else{const e=l[0],t=e.extent;j=e.image,f.scale(dO(t)/j.width,-aO(t)/j.height)}f.drawImage(j,0,0),f.restore()})),y&&(FD(y),tN.push(y.canvas)),u&&(f.save(),f.globalCompositeOperation="source-over",f.strokeStyle="black",f.lineWidth=1,a.getTriangles().forEach((function(e,t,n){const r=e.target,i=(r[0][0]-b[0])/o,s=-(r[0][1]-b[1])/o,a=(r[1][0]-b[0])/o,l=-(r[1][1]-b[1])/o,c=(r[2][0]-b[0])/o,u=-(r[2][1]-b[1])/o;f.beginPath(),f.moveTo(a,l),f.lineTo(i,s),f.lineTo(c,u),f.closePath(),f.stroke()})),f.restore()),f.canvas}const aN=class extends CD{constructor(e,t,n,r,i,o,s,a,l,c,u,d){super(i,fD,d),this.renderEdges_=void 0!==u&&u,this.pixelRatio_=s,this.gutter_=a,this.canvas_=null,this.sourceTileGrid_=t,this.targetTileGrid_=r,this.wrappedTileCoord_=o||i,this.sourceTiles_=[],this.sourcesListenerKeys_=null,this.sourceZ_=0,this.clipExtent_=e.canWrapX()?e.getExtent():void 0;const h=r.getTileCoordExtent(this.wrappedTileCoord_),p=this.targetTileGrid_.getExtent();let f=this.sourceTileGrid_.getExtent();const g=p?lO(h,p):h;if(0===tO(g))return void(this.state=vD);const m=e.getExtent();m&&(f=f?lO(f,m):m);const y=r.getResolution(this.wrappedTileCoord_[0]),v=oN(e,n,g,y);if(!isFinite(v)||v<=0)return void(this.state=vD);const _=void 0!==c?c:.5;if(this.triangulation_=new QD(e,n,g,f,v*_,y),0===this.triangulation_.getTriangles().length)return void(this.state=vD);this.sourceZ_=t.getZForResolution(v);let b=this.triangulation_.calculateSourceExtent();if(f&&(e.canWrapX()?(b[1]=VO(b[1],f[1],f[3]),b[3]=VO(b[3],f[1],f[3])):b=lO(b,f)),tO(b)){let n=0,r=0;e.canWrapX()&&(n=dO(m),r=Math.floor((b[0]-m[0])/n));yO(b.slice(),e,!0).forEach((e=>{const i=t.getTileRangeForExtentAndZ(e,this.sourceZ_);for(let t=i.minX;t<=i.maxX;t++)for(let e=i.minY;e<=i.maxY;e++){const i=l(this.sourceZ_,t,e,s);if(i){const e=r*n;this.sourceTiles_.push({tile:i,offset:e})}}++r})),0===this.sourceTiles_.length&&(this.state=vD)}else this.state=vD}getImage(){return this.canvas_}reproject_(){const e=[];if(this.sourceTiles_.forEach((t=>{const n=t.tile;if(n&&n.getState()==mD){var r;const i=this.sourceTileGrid_.getTileCoordExtent(n.tileCoord);i[0]+=t.offset,i[2]+=t.offset;const o=null===(r=this.clipExtent_)||void 0===r?void 0:r.slice();o&&(o[0]+=t.offset,o[2]+=t.offset),e.push({extent:i,clipExtent:o,image:n.getImage()})}})),this.sourceTiles_.length=0,0===e.length)this.state=yD;else{const t=this.wrappedTileCoord_[0],n=this.targetTileGrid_.getTileSize(t),r="number"===typeof n?n:n[0],i="number"===typeof n?n:n[1],o=this.targetTileGrid_.getResolution(t),s=this.sourceTileGrid_.getResolution(this.sourceZ_),a=this.targetTileGrid_.getTileCoordExtent(this.wrappedTileCoord_);this.canvas_=sN(r,i,this.pixelRatio_,s,this.sourceTileGrid_.getExtent(),o,a,this.triangulation_,e,this.gutter_,this.renderEdges_,this.interpolate),this.state=mD}this.changed()}load(){if(this.state==fD){this.state=gD,this.changed();let e=0;this.sourcesListenerKeys_=[],this.sourceTiles_.forEach((t=>{let{tile:n}=t;const r=n.getState();if(r==fD||r==gD){e++;const t=qD(n,BR,(r=>{const i=n.getState();i!=mD&&i!=yD&&i!=vD||(YD(t),e--,0===e&&(this.unlistenSources_(),this.reproject_()))}));this.sourcesListenerKeys_.push(t)}})),0===e?setTimeout(this.reproject_.bind(this),0):this.sourceTiles_.forEach((function(e,t,n){let{tile:r}=e;r.getState()==fD&&r.load()}))}}unlistenSources_(){this.sourcesListenerKeys_.forEach(YD),this.sourcesListenerKeys_=null}release(){this.canvas_&&(FD(this.canvas_.getContext("2d")),tN.push(this.canvas_),this.canvas_=null),super.release()}};function lN(e,t){if(!e)throw new Error(t)}const cN=class{constructor(e){this.highWaterMark=void 0!==e?e:2048,this.count_=0,this.entries_={},this.oldest_=null,this.newest_=null}canExpireCache(){return this.highWaterMark>0&&this.getCount()>this.highWaterMark}expireCache(e){for(;this.canExpireCache();)this.pop()}clear(){this.count_=0,this.entries_={},this.oldest_=null,this.newest_=null}containsKey(e){return this.entries_.hasOwnProperty(e)}forEach(e){let t=this.oldest_;for(;t;)e(t.value_,t.key_,this),t=t.newer}get(e,t){const n=this.entries_[e];return lN(void 0!==n,"Tried to get a value for a key that does not exist in the cache"),n===this.newest_||(n===this.oldest_?(this.oldest_=this.oldest_.newer,this.oldest_.older=null):(n.newer.older=n.older,n.older.newer=n.newer),n.newer=null,n.older=this.newest_,this.newest_.newer=n,this.newest_=n),n.value_}remove(e){const t=this.entries_[e];return lN(void 0!==t,"Tried to get a value for a key that does not exist in the cache"),t===this.newest_?(this.newest_=t.older,this.newest_&&(this.newest_.newer=null)):t===this.oldest_?(this.oldest_=t.newer,this.oldest_&&(this.oldest_.older=null)):(t.newer.older=t.older,t.older.newer=t.newer),delete this.entries_[e],--this.count_,t.value_}getCount(){return this.count_}getKeys(){const e=new Array(this.count_);let t,n=0;for(t=this.newest_;t;t=t.older)e[n++]=t.key_;return e}getValues(){const e=new Array(this.count_);let t,n=0;for(t=this.newest_;t;t=t.older)e[n++]=t.value_;return e}peekLast(){return this.oldest_.value_}peekLastKey(){return this.oldest_.key_}peekFirstKey(){return this.newest_.key_}peek(e){var t;return null===(t=this.entries_[e])||void 0===t?void 0:t.value_}pop(){const e=this.oldest_;return delete this.entries_[e.key_],e.newer&&(e.newer.older=null),this.oldest_=e.newer,this.oldest_||(this.newest_=null),--this.count_,e.value_}replace(e,t){this.get(e),this.entries_[e].value_=t}set(e,t){lN(!(e in this.entries_),"Tried to set a value for a key that is used already");const n={key_:e,newer:null,older:this.newest_,value_:t};this.newest_?this.newest_.newer=n:this.oldest_=n,this.newest_=n,this.entries_[e]=n,++this.count_}setSize(e){this.highWaterMark=e}};function uN(e,t,n,r){return void 0!==r?(r[0]=e,r[1]=t,r[2]=n,r):[e,t,n]}function dN(e,t,n){return e+"/"+t+"/"+n}function hN(e){return dN(e[0],e[1],e[2])}const pN=class extends cN{clear(){for(;this.getCount()>0;)this.pop().release();super.clear()}expireCache(e){for(;this.canExpireCache();){if(this.peekLast().getKey()in e)break;this.pop().release()}}pruneExceptNewestZ(){if(0===this.getCount())return;const e=function(e){return e.split("/").map(Number)}(this.peekFirstKey()),t=e[0];this.forEach((e=>{e.tileCoord[0]!==t&&(this.remove(hN(e.tileCoord)),e.release())}))}},fN="tileloadstart",gN="tileloadend",mN="tileloaderror",yN="propertychange";class vN extends pD{constructor(){super(),this.on=this.onInternal,this.once=this.onceInternal,this.un=this.unInternal,this.revision_=0}changed(){++this.revision_,this.dispatchEvent(BR)}getRevision(){return this.revision_}onInternal(e,t){if(Array.isArray(e)){const n=e.length,r=new Array(n);for(let i=0;i<n;++i)r[i]=qD(this,e[i],t);return r}return qD(this,e,t)}onceInternal(e,t){let n;if(Array.isArray(e)){const r=e.length;n=new Array(r);for(let i=0;i<r;++i)n[i]=XD(this,e[i],t)}else n=XD(this,e,t);return t.ol_key=n,n}unInternal(e,t){const n=t.ol_key;if(n)_N(n);else if(Array.isArray(e))for(let r=0,i=e.length;r<i;++r)this.removeEventListener(e[r],t);else this.removeEventListener(e,t)}}function _N(e){if(Array.isArray(e))for(let t=0,n=e.length;t<n;++t)YD(e[t]);else YD(e)}vN.prototype.on,vN.prototype.once,vN.prototype.un;const bN=vN;class xN extends QR{constructor(e,t,n){super(e),this.key=t,this.oldValue=n}}const SN=class extends bN{constructor(e){super(),this.on,this.once,this.un,xD(this),this.values_=null,void 0!==e&&this.setProperties(e)}get(e){let t;return this.values_&&this.values_.hasOwnProperty(e)&&(t=this.values_[e]),t}getKeys(){return this.values_&&Object.keys(this.values_)||[]}getProperties(){return this.values_&&Object.assign({},this.values_)||{}}getPropertiesInternal(){return this.values_}hasProperties(){return!!this.values_}notify(e,t){let n;n="change:".concat(e),this.hasListener(n)&&this.dispatchEvent(new xN(n,e,t)),n=yN,this.hasListener(n)&&this.dispatchEvent(new xN(n,e,t))}addChangeListener(e,t){this.addEventListener("change:".concat(e),t)}removeChangeListener(e,t){this.removeEventListener("change:".concat(e),t)}set(e,t,n){const r=this.values_||(this.values_={});if(n)r[e]=t;else{const n=r[e];r[e]=t,n!==t&&this.notify(e,n)}}setProperties(e,t){for(const n in e)this.set(n,e[n],t)}applyProperties(e){e.values_&&Object.assign(this.values_||(this.values_={}),e.values_)}unset(e,t){if(this.values_&&e in this.values_){const n=this.values_[e];delete this.values_[e],hD(this.values_)&&(this.values_=null),t||this.notify(e,n)}}};function wN(e){return e?"function"===typeof e?e:(Array.isArray(e)||(e=[e]),t=>e):null}const EN=class extends SN{constructor(e){var t;super(),this.projection=xR(e.projection),this.attributions_=wN(e.attributions),this.attributionsCollapsible_=null===(t=e.attributionsCollapsible)||void 0===t||t,this.loading=!1,this.state_=void 0!==e.state?e.state:"ready",this.wrapX_=void 0!==e.wrapX&&e.wrapX,this.interpolate_=!!e.interpolate,this.viewResolver=null,this.viewRejector=null;const n=this;this.viewPromise_=new Promise((function(e,t){n.viewResolver=e,n.viewRejector=t}))}getAttributions(){return this.attributions_}getAttributionsCollapsible(){return this.attributionsCollapsible_}getProjection(){return this.projection}getResolutions(e){return null}getView(){return this.viewPromise_}getState(){return this.state_}getWrapX(){return this.wrapX_}getInterpolate(){return this.interpolate_}refresh(){this.changed()}setAttributions(e){this.attributions_=wN(e),this.changed()}setState(e){this.state_=e,this.changed()}};class PN{constructor(e,t,n,r){this.minX=e,this.maxX=t,this.minY=n,this.maxY=r}contains(e){return this.containsXY(e[1],e[2])}containsTileRange(e){return this.minX<=e.minX&&e.maxX<=this.maxX&&this.minY<=e.minY&&e.maxY<=this.maxY}containsXY(e,t){return this.minX<=e&&e<=this.maxX&&this.minY<=t&&t<=this.maxY}equals(e){return this.minX==e.minX&&this.minY==e.minY&&this.maxX==e.maxX&&this.maxY==e.maxY}extend(e){e.minX<this.minX&&(this.minX=e.minX),e.maxX>this.maxX&&(this.maxX=e.maxX),e.minY<this.minY&&(this.minY=e.minY),e.maxY>this.maxY&&(this.maxY=e.maxY)}getHeight(){return this.maxY-this.minY+1}getSize(){return[this.getWidth(),this.getHeight()]}getWidth(){return this.maxX-this.minX+1}intersects(e){return this.minX<=e.maxX&&this.maxX>=e.minX&&this.minY<=e.maxY&&this.maxY>=e.minY}}function CN(e,t,n,r,i){return void 0!==i?(i.minX=e,i.maxX=t,i.minY=n,i.maxY=r,i):new PN(e,t,n,r)}const AN=PN,kN=42,jN=256;function IN(e,t,n,r,i){let o;for(t+=r;t<n;t+=r)if(o=i(e.slice(t-r,t),e.slice(t,t+r)),o)return o;return!1}function GN(e,t,n,r,i){return!eO(i,(function(i){return!TN(e,t,n,r,i[0],i[1])}))}function TN(e,t,n,r,i,o){let s=0,a=e[n-r],l=e[n-r+1];for(;t<n;t+=r){const n=e[t],r=e[t+1];l<=o?r>o&&(n-a)*(o-l)-(i-a)*(r-l)>0&&s++:r<=o&&(n-a)*(o-l)-(i-a)*(r-l)<0&&s--,a=n,l=r}return 0!==s}function MN(e,t,n,r,i,o){if(0===n.length)return!1;if(!TN(e,t,n[0],r,i,o))return!1;for(let s=1,a=n.length;s<a;++s)if(TN(e,n[s-1],n[s],r,i,o))return!1;return!0}function ON(e,t,n,r,i){const o=JM([1/0,1/0,-1/0,-1/0],e,t,n,r);return!!hO(i,o)&&(!!zM(i,o)||(o[0]>=i[0]&&o[2]<=i[2]||(o[1]>=i[1]&&o[3]<=i[3]||IN(e,t,n,r,(function(e,t){return function(e,t,n){let r=!1;const i=UM(e,t),o=UM(e,n);if(i===RM.INTERSECTING||o===RM.INTERSECTING)r=!0;else{const s=e[0],a=e[1],l=e[2],c=e[3],u=t[0],d=t[1],h=n[0],p=n[1],f=(p-d)/(h-u);let g,m;o&RM.ABOVE&&!(i&RM.ABOVE)&&(g=h-(p-c)/f,r=g>=s&&g<=l),r||!(o&RM.RIGHT)||i&RM.RIGHT||(m=p-(h-l)*f,r=m>=a&&m<=c),r||!(o&RM.BELOW)||i&RM.BELOW||(g=h-(p-a)/f,r=g>=s&&g<=l),r||!(o&RM.LEFT)||i&RM.LEFT||(m=p-(h-s)*f,r=m>=a&&m<=c)}return r}(i,e,t)})))))}function RN(e,t,n,r,i){return!!ON(e,t,n,r,i)||(!!TN(e,t,n,r,i[0],i[1])||(!!TN(e,t,n,r,i[0],i[3])||(!!TN(e,t,n,r,i[2],i[1])||!!TN(e,t,n,r,i[2],i[3]))))}function DN(e,t,n,r,i){if(!RN(e,t,n[0],r,i))return!1;if(1===n.length)return!0;for(let o=1,s=n.length;o<s;++o)if(GN(e,n[o-1],n[o],r,i)&&!ON(e,n[o-1],n[o],r,i))return!1;return!0}function NN(e){return e[0]>0&&e[1]>0}function LN(e,t){return Array.isArray(e)?e:(void 0===t?t=[e,e]:(t[0]=e,t[1]=e),t)}const VN=[0,0,0];const FN=class{constructor(e){let t;if(this.minZoom=void 0!==e.minZoom?e.minZoom:0,this.resolutions_=e.resolutions,lN(function(e,t,n){const r=t||eD;return e.every((function(t,i){if(0===i)return!0;const o=r(e[i-1],t);return!(o>0||n&&0===o)}))}(this.resolutions_,((e,t)=>t-e),!0),"`resolutions` must be sorted in descending order"),!e.origins)for(let r=0,i=this.resolutions_.length-1;r<i;++r)if(t){if(this.resolutions_[r]/this.resolutions_[r+1]!==t){t=void 0;break}}else t=this.resolutions_[r]/this.resolutions_[r+1];this.zoomFactor_=t,this.maxZoom=this.resolutions_.length-1,this.origin_=void 0!==e.origin?e.origin:null,this.origins_=null,void 0!==e.origins&&(this.origins_=e.origins,lN(this.origins_.length==this.resolutions_.length,"Number of `origins` and `resolutions` must be equal"));const n=e.extent;void 0===n||this.origin_||this.origins_||(this.origin_=cO(n)),lN(!this.origin_&&this.origins_||this.origin_&&!this.origins_,"Either `origin` or `origins` must be configured, never both"),this.tileSizes_=null,void 0!==e.tileSizes&&(this.tileSizes_=e.tileSizes,lN(this.tileSizes_.length==this.resolutions_.length,"Number of `tileSizes` and `resolutions` must be equal")),this.tileSize_=void 0!==e.tileSize?e.tileSize:this.tileSizes_?null:jN,lN(!this.tileSize_&&this.tileSizes_||this.tileSize_&&!this.tileSizes_,"Either `tileSize` or `tileSizes` must be configured, never both"),this.extent_=void 0!==n?n:null,this.fullTileRanges_=null,this.tmpSize_=[0,0],this.tmpExtent_=[0,0,0,0],void 0!==e.sizes?this.fullTileRanges_=e.sizes.map(((e,t)=>{const r=new AN(Math.min(0,e[0]),Math.max(e[0]-1,-1),Math.min(0,e[1]),Math.max(e[1]-1,-1));if(n){const e=this.getTileRangeForExtentAndZ(n,t);r.minX=Math.max(e.minX,r.minX),r.maxX=Math.min(e.maxX,r.maxX),r.minY=Math.max(e.minY,r.minY),r.maxY=Math.min(e.maxY,r.maxY)}return r})):n&&this.calculateTileRanges_(n)}forEachTileCoord(e,t,n){const r=this.getTileRangeForExtentAndZ(e,t);for(let i=r.minX,o=r.maxX;i<=o;++i)for(let e=r.minY,s=r.maxY;e<=s;++e)n([t,i,e])}forEachTileCoordParentTileRange(e,t,n,r){let i,o,s,a=null,l=e[0]-1;for(2===this.zoomFactor_?(o=e[1],s=e[2]):a=this.getTileCoordExtent(e,r);l>=this.minZoom;){if(void 0!==o&&void 0!==s?(o=Math.floor(o/2),s=Math.floor(s/2),i=CN(o,o,s,s,n)):i=this.getTileRangeForExtentAndZ(a,l,n),t(l,i))return!0;--l}return!1}getExtent(){return this.extent_}getMaxZoom(){return this.maxZoom}getMinZoom(){return this.minZoom}getOrigin(e){return this.origin_?this.origin_:this.origins_[e]}getResolution(e){return this.resolutions_[e]}getResolutions(){return this.resolutions_}getTileCoordChildTileRange(e,t,n){if(e[0]<this.maxZoom){if(2===this.zoomFactor_){const n=2*e[1],r=2*e[2];return CN(n,n+1,r,r+1,t)}const r=this.getTileCoordExtent(e,n||this.tmpExtent_);return this.getTileRangeForExtentAndZ(r,e[0]+1,t)}return null}getTileRangeForTileCoordAndZ(e,t,n){if(t>this.maxZoom||t<this.minZoom)return null;const r=e[0],i=e[1],o=e[2];if(t===r)return CN(i,o,i,o,n);if(this.zoomFactor_){const e=Math.pow(this.zoomFactor_,t-r),s=Math.floor(i*e),a=Math.floor(o*e);if(t<r)return CN(s,s,a,a,n);return CN(s,Math.floor(e*(i+1))-1,a,Math.floor(e*(o+1))-1,n)}const s=this.getTileCoordExtent(e,this.tmpExtent_);return this.getTileRangeForExtentAndZ(s,t,n)}getTileRangeForExtentAndZ(e,t,n){this.getTileCoordForXYAndZ_(e[0],e[3],t,!1,VN);const r=VN[1],i=VN[2];this.getTileCoordForXYAndZ_(e[2],e[1],t,!0,VN);return CN(r,VN[1],i,VN[2],n)}getTileCoordCenter(e){const t=this.getOrigin(e[0]),n=this.getResolution(e[0]),r=LN(this.getTileSize(e[0]),this.tmpSize_);return[t[0]+(e[1]+.5)*r[0]*n,t[1]-(e[2]+.5)*r[1]*n]}getTileCoordExtent(e,t){const n=this.getOrigin(e[0]),r=this.getResolution(e[0]),i=LN(this.getTileSize(e[0]),this.tmpSize_),o=n[0]+e[1]*i[0]*r,s=n[1]-(e[2]+1)*i[1]*r;return HM(o,s,o+i[0]*r,s+i[1]*r,t)}getTileCoordForCoordAndResolution(e,t,n){return this.getTileCoordForXYAndResolution_(e[0],e[1],t,!1,n)}getTileCoordForXYAndResolution_(e,t,n,r,i){const o=this.getZForResolution(n),s=n/this.getResolution(o),a=this.getOrigin(o),l=LN(this.getTileSize(o),this.tmpSize_);let c=s*(e-a[0])/n/l[0],u=s*(a[1]-t)/n/l[1];return r?(c=YO(c,5)-1,u=YO(u,5)-1):(c=XO(c,5),u=XO(u,5)),uN(o,c,u,i)}getTileCoordForXYAndZ_(e,t,n,r,i){const o=this.getOrigin(n),s=this.getResolution(n),a=LN(this.getTileSize(n),this.tmpSize_);let l=(e-o[0])/s/a[0],c=(o[1]-t)/s/a[1];return r?(l=YO(l,5)-1,c=YO(c,5)-1):(l=XO(l,5),c=XO(c,5)),uN(n,l,c,i)}getTileCoordForCoordAndZ(e,t,n){return this.getTileCoordForXYAndZ_(e[0],e[1],t,!1,n)}getTileCoordResolution(e){return this.resolutions_[e[0]]}getTileSize(e){return this.tileSize_?this.tileSize_:this.tileSizes_[e]}getFullTileRange(e){return this.fullTileRanges_?this.fullTileRanges_[e]:this.extent_?this.getTileRangeForExtentAndZ(this.extent_,e):null}getZForResolution(e,t){return VO(nD(this.resolutions_,e,t||0),this.minZoom,this.maxZoom)}tileCoordIntersectsViewport(e,t){return RN(t,0,t.length,2,this.getTileCoordExtent(e))}calculateTileRanges_(e){const t=this.resolutions_.length,n=new Array(t);for(let r=this.minZoom;r<t;++r)n[r]=this.getTileRangeForExtentAndZ(e,r);this.fullTileRanges_=n}};function zN(e){let t=e.getDefaultTileGrid();return t||(t=function(e,t,n,r){const i=WN(e);return function(e,t,n,r){r=void 0!==r?r:"top-left";const i=UN(e,t,n);return new FN({extent:e,origin:oO(e,r),resolutions:i,tileSize:n})}(i,t,n,r)}(e),e.setDefaultTileGrid(t)),t}function BN(e){const t=e||{},n=t.extent||xR("EPSG:3857").getExtent(),r={extent:n,minZoom:t.minZoom,tileSize:t.tileSize,resolutions:UN(n,t.maxZoom,t.tileSize,t.maxResolution)};return new FN(r)}function UN(e,t,n,r){t=void 0!==t?t:kN,n=LN(void 0!==n?n:jN);const i=aO(e),o=dO(e);r=r>0?r:Math.max(o/n[0],i/n[1]);const s=t+1,a=new Array(s);for(let l=0;l<s;++l)a[l]=r/Math.pow(2,l);return a}function WN(e){let t=(e=xR(e)).getExtent();if(!t){const n=180*bO.degrees/e.getMetersPerUnit();t=HM(-n,-n,n,n)}return t}class HN extends QR{constructor(e,t){super(e),this.tile=t}}const qN=class extends EN{constructor(e){super({attributions:e.attributions,attributionsCollapsible:e.attributionsCollapsible,projection:e.projection,state:e.state,wrapX:e.wrapX,interpolate:e.interpolate}),this.on,this.once,this.un,this.tilePixelRatio_=void 0!==e.tilePixelRatio?e.tilePixelRatio:1,this.tileGrid=void 0!==e.tileGrid?e.tileGrid:null;const t=[256,256];this.tileGrid&&LN(this.tileGrid.getTileSize(this.tileGrid.getMinZoom()),t),this.tileCache=new pN(e.cacheSize||0),this.tmpSize=[0,0],this.key_=e.key||"",this.tileOptions={transition:e.transition,interpolate:e.interpolate},this.zDirection=e.zDirection?e.zDirection:0}canExpireCache(){return this.tileCache.canExpireCache()}expireCache(e,t){const n=this.getTileCacheForProjection(e);n&&n.expireCache(t)}getGutterForProjection(e){return 0}getKey(){return this.key_}setKey(e){this.key_!==e&&(this.key_=e,this.changed())}getResolutions(e){const t=e?this.getTileGridForProjection(e):this.tileGrid;return t?t.getResolutions():null}getTile(e,t,n,r,i){return _D()}getTileGrid(){return this.tileGrid}getTileGridForProjection(e){return this.tileGrid?this.tileGrid:zN(e)}getTileCacheForProjection(e){const t=this.getProjection();return lN(null===t||jR(t,e),"A VectorTile source can only be rendered if it has a projection compatible with the view projection."),this.tileCache}getTilePixelRatio(e){return this.tilePixelRatio_}getTilePixelSize(e,t,n){const r=this.getTileGridForProjection(n),i=this.getTilePixelRatio(t),o=LN(r.getTileSize(e),this.tmpSize);return 1==i?o:(s=o,a=i,void 0===(l=this.tmpSize)&&(l=[0,0]),l[0]=s[0]*a+.5|0,l[1]=s[1]*a+.5|0,l);var s,a,l}getTileCoordForTileUrlFunction(e,t){t=void 0!==t?t:this.getProjection();const n=this.getTileGridForProjection(t);return this.getWrapX()&&t.isGlobal()&&(e=function(e,t,n){const r=t[0],i=e.getTileCoordCenter(t),o=WN(n);if(!FM(o,i)){const t=dO(o),n=Math.ceil((o[0]-i[0])/t);return i[0]+=t*n,e.getTileCoordForCoordAndZ(i,r)}return t}(n,e,t)),function(e,t){const n=e[0],r=e[1],i=e[2];if(t.getMinZoom()>n||n>t.getMaxZoom())return!1;const o=t.getFullTileRange(n);return!o||o.containsXY(r,i)}(e,n)?e:null}clear(){this.tileCache.clear()}refresh(){this.clear(),super.refresh()}useTile(e,t,n,r){}};function XN(e,t){const n=[];Object.keys(t).forEach((function(e){null!==t[e]&&void 0!==t[e]&&n.push(e+"="+encodeURIComponent(t[e]))}));const r=n.join("&");return e=e.replace(/[?&]$/,""),(e+=e.includes("?")?"&":"?")+r}const YN=/\{z\}/g,KN=/\{x\}/g,ZN=/\{y\}/g,$N=/\{-y\}/g;function JN(e){const t=[];let n=/\{([a-z])-([a-z])\}/.exec(e);if(n){const r=n[1].charCodeAt(0),i=n[2].charCodeAt(0);let o;for(o=r;o<=i;++o)t.push(e.replace(n[0],String.fromCharCode(o)));return t}if(n=/\{(\d+)-(\d+)\}/.exec(e),n){const r=parseInt(n[2],10);for(let i=parseInt(n[1],10);i<=r;i++)t.push(e.replace(n[0],i.toString()));return t}return t.push(e),t}function QN(e,t){return function(n,r,i){if(!n)return;let o;const s=n[0];if(t){const e=t.getFullTileRange(s);e&&(o=e.getHeight()-1)}return function(e,t,n,r,i){return e.replace(YN,t.toString()).replace(KN,n.toString()).replace(ZN,r.toString()).replace($N,(function(){if(void 0===i)throw new Error("If the URL template has a {-y} placeholder, the grid extent must be known");return(i-r).toString()}))}(e,s,n[1],n[2],o)}}function eL(e){return 1===e.length?e[0]:function(t,n,r){if(!t)return;const i=function(e){return function(e,t,n){return(t<<e)+n}(e[0],e[1],e[2])}(t),o=WO(i,e.length);return e[o](t,n,r)}}class tL extends qN{constructor(e){super({attributions:e.attributions,cacheSize:e.cacheSize,projection:e.projection,state:e.state,tileGrid:e.tileGrid,tilePixelRatio:e.tilePixelRatio,wrapX:e.wrapX,transition:e.transition,interpolate:e.interpolate,key:e.key,attributionsCollapsible:e.attributionsCollapsible,zDirection:e.zDirection}),this.generateTileUrlFunction_=this.tileUrlFunction===tL.prototype.tileUrlFunction,this.tileLoadFunction=e.tileLoadFunction,e.tileUrlFunction&&(this.tileUrlFunction=e.tileUrlFunction),this.urls=null,e.urls?this.setUrls(e.urls):e.url&&this.setUrl(e.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(e){const t=e.target,n=xD(t),r=t.getState();let i;r==gD?(this.tileLoadingKeys_[n]=!0,i=fN):n in this.tileLoadingKeys_&&(delete this.tileLoadingKeys_[n],i=r==yD?mN:r==mD?gN:void 0),void 0!=i&&this.dispatchEvent(new HN(i,t))}setTileLoadFunction(e){this.tileCache.clear(),this.tileLoadFunction=e,this.changed()}setTileUrlFunction(e,t){this.tileUrlFunction=e,this.tileCache.pruneExceptNewestZ(),"undefined"!==typeof t?this.setKey(t):this.changed()}setUrl(e){const t=JN(e);this.urls=t,this.setUrls(t)}setUrls(e){this.urls=e;const t=e.join("\n");this.generateTileUrlFunction_?this.setTileUrlFunction(function(e,t){const n=e.length,r=new Array(n);for(let i=0;i<n;++i)r[i]=QN(e[i],t);return eL(r)}(e,this.tileGrid),t):this.setKey(t)}tileUrlFunction(e,t,n){}useTile(e,t,n){const r=dN(e,t,n);this.tileCache.containsKey(r)&&this.tileCache.get(r)}}const nL=tL;function rL(e,t){e.getImage().src=t}const iL=class extends nL{constructor(e){super({attributions:e.attributions,cacheSize:e.cacheSize,projection:e.projection,state:e.state,tileGrid:e.tileGrid,tileLoadFunction:e.tileLoadFunction?e.tileLoadFunction:rL,tilePixelRatio:e.tilePixelRatio,tileUrlFunction:e.tileUrlFunction,url:e.url,urls:e.urls,wrapX:e.wrapX,transition:e.transition,interpolate:void 0===e.interpolate||e.interpolate,key:e.key,attributionsCollapsible:e.attributionsCollapsible,zDirection:e.zDirection}),this.crossOrigin=void 0!==e.crossOrigin?e.crossOrigin:null,this.tileClass=void 0!==e.tileClass?e.tileClass:JD,this.tileCacheForProjection={},this.tileGridForProjection={},this.reprojectionErrorThreshold_=e.reprojectionErrorThreshold,this.renderReprojectionEdges_=!1}canExpireCache(){if(this.tileCache.canExpireCache())return!0;for(const e in this.tileCacheForProjection)if(this.tileCacheForProjection[e].canExpireCache())return!0;return!1}expireCache(e,t){const n=this.getTileCacheForProjection(e);this.tileCache.expireCache(this.tileCache==n?t:{});for(const r in this.tileCacheForProjection){const e=this.tileCacheForProjection[r];e.expireCache(e==n?t:{})}}getGutterForProjection(e){return this.getProjection()&&e&&!jR(this.getProjection(),e)?0:this.getGutter()}getGutter(){return 0}getKey(){let e=super.getKey();return this.getInterpolate()||(e+=":disable-interpolation"),e}getTileGridForProjection(e){const t=this.getProjection();if(this.tileGrid&&(!t||jR(t,e)))return this.tileGrid;const n=xD(e);return n in this.tileGridForProjection||(this.tileGridForProjection[n]=zN(e)),this.tileGridForProjection[n]}getTileCacheForProjection(e){const t=this.getProjection();if(!t||jR(t,e))return this.tileCache;const n=xD(e);return n in this.tileCacheForProjection||(this.tileCacheForProjection[n]=new pN(this.tileCache.highWaterMark)),this.tileCacheForProjection[n]}createTile_(e,t,n,r,i,o){const s=[e,t,n],a=this.getTileCoordForTileUrlFunction(s,i),l=a?this.tileUrlFunction(a,r,i):void 0,c=new this.tileClass(s,void 0!==l?fD:vD,void 0!==l?l:"",this.crossOrigin,this.tileLoadFunction,this.tileOptions);return c.key=o,c.addEventListener(BR,this.handleTileChange.bind(this)),c}getTile(e,t,n,r,i){const o=this.getProjection();if(!o||!i||jR(o,i))return this.getTileInternal(e,t,n,r,o||i);const s=this.getTileCacheForProjection(i),a=[e,t,n];let l;const c=hN(a);s.containsKey(c)&&(l=s.get(c));const u=this.getKey();if(l&&l.key==u)return l;const d=this.getTileGridForProjection(o),h=this.getTileGridForProjection(i),p=this.getTileCoordForTileUrlFunction(a,i),f=new aN(o,d,i,h,a,p,this.getTilePixelRatio(r),this.getGutter(),((e,t,n,r)=>this.getTileInternal(e,t,n,r,o)),this.reprojectionErrorThreshold_,this.renderReprojectionEdges_,this.tileOptions);return f.key=u,l?s.replace(c,f):s.set(c,f),f}getTileInternal(e,t,n,r,i){const o=dN(e,t,n),s=this.getKey();if(!this.tileCache.containsKey(o)){const a=this.createTile_(e,t,n,r,i,s);return this.tileCache.set(o,a),a}let a=this.tileCache.get(o);return a.key!=s&&(a=this.createTile_(e,t,n,r,i,s),this.tileCache.replace(o,a)),a}setRenderReprojectionEdges(e){if(this.renderReprojectionEdges_!=e){this.renderReprojectionEdges_=e;for(const e in this.tileCacheForProjection)this.tileCacheForProjection[e].clear();this.changed()}}setTileGridForProjection(e,t){const n=xR(e);if(n){const e=xD(n);e in this.tileGridForProjection||(this.tileGridForProjection[e]=t)}}clear(){super.clear();for(const e in this.tileCacheForProjection)this.tileCacheForProjection[e].clear()}};const oL=class extends iL{constructor(e){const t=void 0!==(e=e||{}).projection?e.projection:"EPSG:3857",n=void 0!==e.tileGrid?e.tileGrid:BN({extent:WN(t),maxResolution:e.maxResolution,maxZoom:e.maxZoom,minZoom:e.minZoom,tileSize:e.tileSize});super({attributions:e.attributions,cacheSize:e.cacheSize,crossOrigin:e.crossOrigin,interpolate:e.interpolate,projection:t,reprojectionErrorThreshold:e.reprojectionErrorThreshold,tileGrid:n,tileLoadFunction:e.tileLoadFunction,tilePixelRatio:e.tilePixelRatio,tileUrlFunction:e.tileUrlFunction,url:e.url,urls:e.urls,wrapX:void 0===e.wrapX||e.wrapX,transition:e.transition,attributionsCollapsible:e.attributionsCollapsible,zDirection:e.zDirection}),this.gutter_=void 0!==e.gutter?e.gutter:0}getGutter(){return this.gutter_}};const sL=class extends iL{constructor(e){const t=void 0!==e.requestEncoding?e.requestEncoding:"KVP",n=e.tileGrid;let r=e.urls;void 0===r&&void 0!==e.url&&(r=JN(e.url)),super({attributions:e.attributions,attributionsCollapsible:e.attributionsCollapsible,cacheSize:e.cacheSize,crossOrigin:e.crossOrigin,interpolate:e.interpolate,projection:e.projection,reprojectionErrorThreshold:e.reprojectionErrorThreshold,tileClass:e.tileClass,tileGrid:n,tileLoadFunction:e.tileLoadFunction,tilePixelRatio:e.tilePixelRatio,urls:r,wrapX:void 0!==e.wrapX&&e.wrapX,transition:e.transition,zDirection:e.zDirection}),this.version_=void 0!==e.version?e.version:"1.0.0",this.format_=void 0!==e.format?e.format:"image/jpeg",this.dimensions_=void 0!==e.dimensions?e.dimensions:{},this.layer_=e.layer,this.matrixSet_=e.matrixSet,this.style_=e.style,this.requestEncoding_=t,this.setKey(this.getKeyForDimensions_()),r&&r.length>0&&(this.tileUrlFunction=eL(r.map(this.createFromWMTSTemplate.bind(this))))}setUrls(e){this.urls=e;const t=e.join("\n");this.setTileUrlFunction(eL(e.map(this.createFromWMTSTemplate.bind(this))),t)}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 e=this.urls?this.urls.slice(0):[];for(const t in this.dimensions_)e.push(t+"-"+this.dimensions_[t]);return e.join("/")}updateDimensions(e){Object.assign(this.dimensions_,e),this.setKey(this.getKeyForDimensions_())}createFromWMTSTemplate(e){const t=this.requestEncoding_,n={layer:this.layer_,style:this.style_,tilematrixset:this.matrixSet_};"KVP"==t&&Object.assign(n,{Service:"WMTS",Request:"GetTile",Version:this.version_,Format:this.format_}),e="KVP"==t?XN(e,n):e.replace(/\{(\w+?)\}/g,(function(e,t){return t.toLowerCase()in n?n[t.toLowerCase()]:e}));const r=this.tileGrid,i=this.dimensions_;return function(n,o,s){if(!n)return;const a={TileMatrix:r.getMatrixId(n[0]),TileCol:n[1],TileRow:n[2]};Object.assign(a,i);let l=e;return l="KVP"==t?XN(l,a):l.replace(/\{(\w+?)\}/g,(function(e,t){return a[t]})),l}}};class aL extends FN{constructor(e){super({extent:e.extent,origin:e.origin,origins:e.origins,resolutions:e.resolutions,tileSize:e.tileSize,tileSizes:e.tileSizes,sizes:e.sizes}),this.matrixIds_=e.matrixIds}getMatrixId(e){return this.matrixIds_[e]}getMatrixIds(){return this.matrixIds_}}const lL=aL;let cL=function(e){return e.OSM="OSM",e.GoogleSatellite="GoogleSatellite",e.GoogleMaps="GoogleMaps",e.GeoportailOrthophotos="GeoportailOrthophotos",e.NoMap="NoMap",e}({});const uL={id:cL.OSM,name:"Open Street Map",buildSource:()=>new oL({url:"https://tile.openstreetmap.org/{z}/{x}/{y}.png",maxZoom:19})},dL={id:cL.GoogleSatellite,name:"Google Satellite",buildSource:()=>new oL({url:"//mt.google.com/vt/lyrs=y&x={x}&y={y}&z={z}",maxZoom:21})},hL={id:cL.GoogleMaps,name:"Google Maps",buildSource:()=>new oL({url:"//mt.google.com/vt/lyrs=m&x={x}&y={y}&z={z}",maxZoom:21})},pL=()=>{var e;const t=[],n=[],r=xR("EPSG:3857"),i=dO(null!==(e=null===r||void 0===r?void 0:r.getExtent())&&void 0!==e?e:[])/256;for(let o=0;o<20;o++)n[o]=o.toString(),t[o]=i/Math.pow(2,o);return new lL({origin:[-20037508,20037508],resolutions:t,matrixIds:n})},fL={id:cL.GeoportailOrthophotos,name:"Geoportail Ortho",buildSource:()=>new sL({url:"https://data.geopf.fr/wmts",layer:"ORTHOIMAGERY.ORTHOPHOTOS",matrixSet:"PM",format:"image/jpeg",projection:"EPSG:3857",tileGrid:pL(),style:"normal"})},gL={id:cL.NoMap,name:"No map"},mL=Object.freeze({[cL.GoogleSatellite]:dL,[cL.OSM]:uL,[cL.GoogleMaps]:hL,[cL.GeoportailOrthophotos]:fL,[cL.NoMap]:gL}),yL=CC.object({lat:CC.number(),lng:CC.number()}),vL=mL.GoogleSatellite;let _L=function(e){return e.GREYSCALE="greyscale",e.HOTWHITE="hotwhite",e.RGB="rgb",e}({});const bL=CC.object({coordinates:CC.array(CC.number().gte(0).lte(1)).length(8)}),xL=CC.object({x:CC.number().gte(0).lte(100),y:CC.number().gte(0).lte(100),width:CC.number().gte(0).lte(100),height:CC.number().gte(0).lte(100),angle:CC.number().optional()}),SL=CC.union([bL,xL]),wL=CC.object({max:CC.number(),mean:CC.number(),min:CC.number()}),EL=CC.object({id:CC.string().optional(),photoId:CC.string(),type:CC.string(),palette:CC.union([CC.literal(_L.GREYSCALE),CC.literal(_L.HOTWHITE),CC.literal(_L.RGB)]),position:yL.optional(),thermalStats:wL.optional()}).and(SL).and(CC.object({id:CC.string(),severity:CC.number().positive(),note:CC.string(),palette:CC.string(),position:yL,thermalStats:wL,ai:CC.boolean().optional()}));let PL=function(e){return e.HOTSPOT="HOTSPOT",e.DIODE="DIODE",e.DISCONNECTED="DISCONNECTED",e}({}),CL=function(e){return e.UNSYNCED="UNSYNCED TRACKER",e.DISCONNECTED="DISCONNECTED",e}({});const AL=Object.freeze({[PL.HOTSPOT]:"HOTSPOT",[PL.DIODE]:"DIODE",[PL.DISCONNECTED]:"DISCONNECTED"}),kL=async function(e,t,n,r){let i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:"defect",o=arguments.length>5&&void 0!==arguments[5]?arguments[5]:[],s=arguments.length>6&&void 0!==arguments[6]&&arguments[6],a=arguments.length>7?arguments[7]:void 0;const l=new Headers;l.append("Content-Type","application/json");const c={method:"POST",headers:l,body:JSON.stringify({filename:t,timestamp:n,identifier:r,type:i,currentFile:a})},u=await Ey("/inspections/".concat(e,"/addAttachFile"),c);if("defect"===i&&200===u.status){const e=await u.json(),t=wo(),i=t?t.email:"";if(s){const t=[...o,{timestamp:n,fileName:e.fileName,email:i}];Sy.dispatch(my({defectId:r,files:t}))}else Sy.dispatch(Tm({id:r,files:[...o,{timestamp:n,fileName:e.fileName,email:i}]}));return e}return!1},jL=async function(e,t){let n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],r=arguments.length>3?arguments[3]:void 0,i=arguments.length>4&&void 0!==arguments[4]&&arguments[4];const o=await Ey("/inspections/".concat(e,"/getAnnotations?inspectionWorkflowMode=").concat(i),{method:"GET",headers:{"Content-Type":"application/json"}}),s=await o.json();let a=null!==r&&void 0!==r?r:[];if([RC.BLADES,RC.TOWER,RC.WIND].includes(t)){if(!r||0===a.length){const t=await CA(e,n);a=t}s.forEach((e=>{if(void 0===e.blade){e.blade="Default",e.edge="",e.side="";const t=a.find((t=>t.id===e.key));t&&(e.blade=t.blade?t.blade:"Default",e.edge=t.edge?t.edge:"",e.side=t.side?t.side:"")}}))}return n&&Sy.dispatch(Mg(s)),{photos:a,annotations:s}},IL=async function(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];const r=Ao()?"/getDefects?comments=".concat(t):"/getDefectsExt",i=await Ey("/inspections/"+e+r,{method:"GET",headers:{"Content-Type":"application/json"}}),o=await i.json();return n&&Sy.dispatch(Dg(o)),o},GL=async e=>{var t,n;const r=[],i=Sy.getState(),o=null===(t=i.inspectionTool.inspectionDoc)||void 0===t?void 0:t.id,s=null===(n=i.inspectionTool.inspectionDoc)||void 0===n?void 0:n.type;for(const f of e)r.push(OL(f,s));const a={method:"POST",headers:{"Content-type":"application/json"},body:JSON.stringify({defects:r})},l=await Ey("/inspections/".concat(o,"/createDefects"),a);await IL(o,!0);const c=[];for(const f of r){var u,d,h,p;c.push({...f,inspectionId:o,inspectionType:s,inspectionDate:null===(u=i.inspectionTool.inspectionDoc)||void 0===u?void 0:u.inspectionDates.planned,model:null===(d=i.inspectionTool.inspectionDoc)||void 0===d?void 0:d.subAsset.model,asset:null===(h=i.inspectionTool.inspectionDoc)||void 0===h?void 0:h.asset.name,subAsset:null===(p=i.inspectionTool.inspectionDoc)||void 0===p?void 0:p.subAsset.name})}return Sy.dispatch(og(c)),Sy.dispatch(Yg(OC.ANALYZED)),l.ok?l.json():[]},TL=async e=>{await ML(e,!1)},ML=async(e,t)=>{var n,r,i,o,s,a,l,c,u,d,h;const p=Sy.getState(),f=null!==(n=e.inspectionId)&&void 0!==n?n:null===(r=p.inspectionTool.inspectionDoc)||void 0===r?void 0:r.id,g=null===(i=p.inspectionTool.inspectionDoc)||void 0===i?void 0:i.type,m=OL(e,g),y=t?{currentDefect:m}:{defect:m},v=t?"/setDefect":"/updateDefect",_={method:"POST",headers:{"Content-type":"application/json"},body:JSON.stringify(y)};await Ey("/inspections/".concat(f).concat(v),_),await IL(f,!0),Sy.dispatch(Jf({defect:m,otherData:{inspectionId:f,inspectionType:g,inspectionDate:null!==(o=e.inspectionDate)&&void 0!==o?o:null===(s=p.inspectionTool.inspectionDoc)||void 0===s?void 0:s.inspectionDates.planned,model:null!==(a=e.model)&&void 0!==a?a:null===(l=p.inspectionTool.inspectionDoc)||void 0===l?void 0:l.subAsset.model,asset:null!==(c=e.asset)&&void 0!==c?c:null===(u=p.inspectionTool.inspectionDoc)||void 0===u?void 0:u.asset.name,subAsset:null!==(d=e.subAsset)&&void 0!==d?d:null===(h=p.inspectionTool.inspectionDoc)||void 0===h?void 0:h.subAsset.name}}))},OL=(e,t)=>{const n={...e};return"Blades"!==t&&(void 0!==n.blade&&delete n.blade,void 0!==n.face&&delete n.face,void 0!==n.hubDistance&&delete n.hubDistance),"Tower"!==t&&void 0!==n.altitude&&delete n.altitude,n},RL=async(e,t)=>{const n=Sy.getState(),r={method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({defectIds:t})};await Ey("/inspections/"+e+"/deleteDefects",r);const i=n.inspectionTool.defects.filter((e=>!t.includes(e.id)));Sy.dispatch(Dg(i));Sy.dispatch(zg({annotations:[],note:"",type:"",severity:0,rootCause:"",nextStep:"",blade:"",new:!0,id:""})),Sy.dispatch($f(t))},DL=async(e,t,n)=>{const r={method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({field:t,review:n})};await Ey("/inspections/"+e.id+"/setReviews",r),Sy.dispatch(Jg({field:t,review:n}))},NL=async function(e,t,n){let r=arguments.length>3&&void 0!==arguments[3]&&arguments[3],i=arguments.length>4?arguments[4]:void 0;const o={method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({status:n})},s=await Ey("/inspections/".concat(e,"/changeDefectStatus/").concat(t),o);if(s&&200===s.status){const e=await s.json();return!(null===e||void 0===e||!e.state)&&(Sy.dispatch(sg({state:e.state,id:t,comments:e.comments})),r||Sy.dispatch(km({state:e.state,id:t,comments:e.comments})),i&&Sy.dispatch(yy({state:e.state,defectId:t,comments:e.comments})),!0)}},LL=async(e,t,n,r,i)=>{if(e&&t&&n){const o={method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({timestamp:n,comment:i})};Sy.dispatch(Im({id:t,on:n,comment:i})),Sy.dispatch(lg({id:t,on:n,comment:i})),r&&Sy.dispatch(fy({defectId:t,timestamp:n,comment:i})),await Ey("/inspections/".concat(e,"/deleteComment/").concat(t),o)}return!1},VL=async(e,t,n,r)=>{if(e&&t&&n){const i={method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({timestamp:n})};Sy.dispatch(Gm({id:t,on:n})),Sy.dispatch(cg({id:t,on:n})),r&&Sy.dispatch(gy({defectId:t,timestamp:n}));const o=await Ey("/inspections/".concat(e,"/deleteFile/").concat(t),i);if(o&&200===o.status)return Sy.dispatch(Gm({id:t,on:n})),Sy.dispatch(cg({id:t,on:n})),r&&Sy.dispatch(gy({defectId:t,timestamp:n})),!0}return!1},FL=async(e,t,n)=>{const r=n?"getDefectAttachmentsNoRight":"getDefectAttachments",i=await Ey("/inspections/"+e+"/".concat(r,"/").concat(t),{method:"GET",headers:{"Content-Type":"application/json"}});if(i&&200===i.status){return await i.json()}return!1},zL=async(e,t,n,r)=>{if(n&&t){var i;const o=new Date,s=o.getTime(),a="_"+o.getUTCFullYear()+"_"+(o.getUTCMonth()+1).toString()+"_"+o.getUTCDate(),l=Xy(e,"photo"+a+".png"),c=wo(),u=c?c.email:"",d=null!==(i=t.files)&&void 0!==i?i:[];if(r){const e=[...d,{timestamp:s,fileName:l.name,email:u}];Sy.dispatch(my({defectId:t.id,files:e}))}else Sy.dispatch(Tm({id:t.id,files:[...d,{timestamp:s,fileName:l.name,email:u}]}));await kL(n,l.name,s,t.id,"defect",d,r,e)}},BL=function(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"width";const{imageWidth:r,imageHeight:i,gsd:o}=t;if("width"===n){const t=r*(e/100);return Math.round(t*o)}if("height"===n){const t=i*(e/100);return Math.round(t*o)}return 0},UL=(e,t,n,r)=>{const i=6371e3,o=n/i,s=r/(i*Math.cos(Math.PI*e/180));return{lat:e+180*o/Math.PI,lon:t+180*s/Math.PI}},WL=(e,t,n,r)=>{const i=6371e3,o=n*Math.PI/180,s=e*Math.PI/180,a=t*Math.PI/180,l=Math.asin(Math.sin(s)*Math.cos(r/i)+Math.cos(s)*Math.sin(r/i)*Math.cos(o)),c=a+Math.atan2(Math.sin(o)*Math.sin(r/i)*Math.cos(s),Math.cos(r/i)-Math.sin(s)*Math.sin(l));return{lat:180*l/Math.PI,lon:180*c/Math.PI}},HL=(e,t,n)=>{var r;n=null!==(r=n)&&void 0!==r?r:0;const i=t.relativeAltitude>n?t.relativeAltitude-n:t.relativeAltitude,o=Math.tan((90+t.gimbalPitchDegree)*(Math.PI/180))*i,s=WL(t.latitude,t.longitude,t.flightYawDegree,o),a=WL(s.lat,s.lon,125,2.5/Math.sin(25*Math.PI/180)),l=WL(s.lat,s.lon,270,2.5);return{north:a.lat,south:l.lat,west:l.lon,east:a.lon}},qL=(e,t)=>{var n;const r=[],i=null!==(n=null===t||void 0===t?void 0:t.subAsset.panelElevation)&&void 0!==n?n:1.5;return e.forEach((e=>{r.push({id:e.id,bounds:HL(e.id,e.exif,i),inspectionId:null===t||void 0===t?void 0:t.id})})),r},XL=function(e,t,n,r){let i=arguments.length>4&&void 0!==arguments[4]&&arguments[4];const o=((e,t)=>{var n;let r=e.obstacleDistance;null!=r&&0!==r||(r=e.sensorObstacleDistance),(0===r||r>30)&&(r=5);const i=e.exif.imageWidth/e.exif.imageHeight;return(null!==(n=t.diagonalMM)&&void 0!==n?n:22)*i*Math.sqrt(1/(i*i+1))*r*100/(e.exif.focalLength*e.exif.imageWidth)})(n,r),s=e.x/100*n.exif.imageWidth+.5*e.width/100*n.exif.imageWidth,a=e.y/100*n.exif.imageHeight+.5*e.height/100*n.exif.imageHeight,l=n.exif.imageHeight/2-a,c=n.exif.imageWidth/2-s;"Unknown"===t&&(t="A");let u=n.hubDistance;if(t===n.blade)u=n.hubDistance+l*o/100;else if("PS"===n.side||"SS"===n.side)u=n.hubDistance-l*o/100;else if(n.blade){const e=function(e,t){let n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=!1;return"A"===t&&(r=n?"C"===e:"B"===e),"B"===t&&(r=n?"A"===e:"C"===e),"C"===t&&(r=n?"B"===e:"A"===e),r}(n.blade,t,i);u=e&&"LE"===n.edge||!e&&"TE"===n.edge?n.hubDistance-c*o/100:n.hubDistance+c*o/100}return u<0&&(u=0),u},YL=e=>{const t=e.length,n=(parseInt(e,10)+1).toString();return String(n).padStart(t,"0")},KL="inspections",ZL=async(e,t)=>{const n={method:"PATCH",body:JSON.stringify(t)},r=await Ey("/".concat(KL,"/").concat(e),n),i=await r.json();if(200!==r.status)throw new Error(null!==i&&void 0!==i?i:r.statusText);return i},$L=async(e,t)=>{const n={method:"PATCH",body:JSON.stringify(t)},r=await Ey("/".concat(KL,"/").concat(e),n),i=await r.json();if(200!==r.status)throw new Error(null!==i&&void 0!==i?i:r.statusText);return i},JL=async(e,t,n)=>await Ey("/".concat(KL,"/").concat(e,"/assign-annotator"),{method:"PATCH",body:JSON.stringify({action:t,annotatorUids:n})}),QL=e=>""===e.blade&&""===e.side&&""===e.edge,eV=(e,t)=>e.find((e=>-1!==e[0].indexOf(t))),tV=(e,t,n,r)=>{let i=parseInt(t,10);i++;const o=i.toString();let s=n;for(let a=0;a<t.length-o.length;a++)s+="0";return e.find((e=>-1!==e[0].indexOf(s+i+r)))},nV=(e,t)=>e.find((e=>-1!==e[0].indexOf(t))),rV=e=>(e.sort((function(e,t){if(e.sortData.blade<t.sortData.blade)return-1;if(e.sortData.blade>t.sortData.blade)return 1;if(void 0!==e.sortData.side&&void 0!==t.sortData.side){if(e.sortData.side<t.sortData.side)return-1;if(e.sortData.side>t.sortData.side)return 1}if(e.sortData.edge<t.sortData.edge)return-1;if(e.sortData.edge>t.sortData.edge)return 1;if(void 0!==e.sortData.hubDistance&&void 0!==t.sortData.hubDistance){if(e.sortData.hubDistance<t.sortData.hubDistance)return-1;if(e.sortData.hubDistance>t.sortData.hubDistance)return 1}if(e.sortData.timestamp>t.sortData.timestamp)return 1;if(e.sortData.timestamp<t.sortData.timestamp)return-1;if(void 0!==e.sortData.originalName&&void 0!==t.sortData.originalName){if(e.sortData.originalName>t.sortData.originalName)return 1;if(e.sortData.originalName<t.sortData.originalName)return-1}return 1})),e),iV=(e,t)=>{const n=[];return e.forEach(((e,r)=>{t.find((t=>t.id===e.photoId))?n.push({...e,originalPhotoNumber:r}):n.push({...e})})),n},oV=async(e,t,n)=>{var r;const i=await Ey("/inspections/".concat(e.id,"/getPhotosURL"),{method:"POST",headers:{"Content-Type":"application/json"}}),{type:o}=e,s=await i.json(),a=s[0],l=s[1],c=s[2],u=s[3],d=s[4];let h=[];const p="Solar"===o?aV(t):t;for(const m of p)if(m.uploaded&&void 0!==m.photoId&&(!QL(m)||e.isExternal)){var f;const t=m.photoId.toUpperCase(),n=(g=t).startsWith("SV_")?g.substring(g.indexOf("SV_")+3,g.indexOf(".")):g.substring(g.indexOf("DJI_")+4,g.indexOf(".JPG"));let r;if(e.isExternal)r={exif:m.exif,edge:m.edge,side:m.side,blade:m.blade,hubDistance:m.hubDistance,timestamp:m.timestamp,infoFilled:m.infoFilled,originalName:m.originalName};else switch(o){case RC.BLADES:r={edge:m.edge,side:m.side,blade:m.blade,hubDistance:m.hubDistance,timestamp:m.timestamp};break;case RC.TOWER:r={altitude:m.exif.relativeAltitude,towerHeading:"towerHeading"in m?m.towerHeading:void 0,yaw:m.exif.flightYawDegree};break;case RC.SOLAR:r={timestamp:m.timestamp,exif:m.exif}}h.push({photoName:t,photoId:n,thumbURL:eV(a,t),photoURL:nV(l,t),thermalJpgURL:"Solar"===o||c?tV(c,n,"DJI_",".JPG"):"",thermalCelciusURL:"Solar"===o?tV(u,n,"SV_","_THERMAL_CELCIUS.RAW"):"",thermalPixelURL:"Solar"===o?tV(d,n,"SV_","_THERMAL_PIXEL.RAW"):"",sortData:r,aiTagged:null!==(f=m.aiTagged)&&void 0!==f&&f})}var g;if(e.isExternal)h=(e=>rV(e))(h);else switch(o){case"Tower":h=(e=>[...e].sort((function(e,t){return void 0!=e.sortData.towerHeading&&void 0!=t.sortData.towerHeading&&e.sortData.towerHeading!==t.sortData.towerHeading?e.sortData.towerHeading-t.sortData.towerHeading:void 0!=e.sortData.altitude&&void 0!=t.sortData.altitude&&e.sortData.altitude!==t.sortData.altitude?e.sortData.altitude-t.sortData.altitude:e.sortData.yaw<t.sortData.yaw?-1:e.sortData.yaw>t.sortData.yaw?1:-1})))(h);break;case"Blades":h=rV(h);break;case"Solar":h=(e=>e.sort(((e,t)=>e.sortData.timestamp-t.sortData.timestamp)))(h)}if(h=iV(h,p),null!==(r=h)&&void 0!==r&&r.length){const e=h["Blades"===o?sV(h,n):0],t=p.find((t=>t.id===e.photoId));Sy.dispatch(Lg(e)),t&&Sy.dispatch(Vg(t)),Sy.dispatch(Ng(h))}else Sy.dispatch(Ng([]))},sV=(e,t)=>{let n=-1;return n=t?e.findIndex((e=>e.id===t.id)):e.findIndex((e=>"LE"===e.sortData.edge)),-1!==n?n:0},aV=e=>{const t=[...e];t.sort(((e,t)=>parseInt(e.id)>parseInt(t.id)?1:-1));const n=[];for(let r=0;r<t.length;r++)t[r].exif&&Number(t[r].id)%2===0&&n.push(t[r]);return n},lV=async(e,t)=>{if(Eo())return;200===(await Ey("/inspections/"+e+"/"+t+"/markAsInspected",{method:"POST",headers:{"Content-Type":"application/json"}})).status&&Sy.dispatch(Kg({photoId:t}))},cV=async function(e,t,n){return uV("update",e,t,!(arguments.length>3&&void 0!==arguments[3]&&arguments[3]),n)},uV=async(e,t,n,r,i)=>{var o,s,a,l;const c=Sy.getState(),u=null===(o=c.inspectionTool.inspectionDoc)||void 0===o?void 0:o.id,d=t.fileName?t.fileName.split("_")[0]:c.inspectionTool.currentPhotoData.photoId,h=c.inspectionTool.photosData.find((e=>e.id===d)),p=t.fileName?t.fileName.split("_")[1]:Date.now().toString(),f=pV(t,null===(s=c.inspectionTool.inspectionDoc)||void 0===s?void 0:s.type);if("Tower"===(null===(a=c.inspectionTool.inspectionDoc)||void 0===a?void 0:a.type)&&i)f.altitude=c.inspectionTool.currentPhotoData.sortData.altitude;else if("Blades"===(null===(l=c.inspectionTool.inspectionDoc)||void 0===l?void 0:l.type)&&h&&c.inspectionTool.thermalCameraData&&c.inspectionTool.inspectionDoc.verticalBlade&&i){var g,m;f.hubDistance=XL(t,c.inspectionTool.inspectionDoc.verticalBlade,h,c.inspectionTool.thermalCameraData,null!==(g=null===(m=c.inspectionTool.inspectionDoc.subAsset)||void 0===m?void 0:m.bladesAntiClockWise)&&void 0!==g&&g)}const y={method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({annotationId:p,annotation:f,thermalCameraData:c.inspectionTool.thermalCameraData,imageSettings:n})},v="create"===e?"setAnnotation":"updateAnnotation",_=JSON.parse(JSON.stringify(t));_.fileName="".concat(d,"_").concat(p),_.key=d,f.position&&(_.position=f.position),f.hubDistance&&(_.hubDistance=f.hubDistance),Sy.dispatch(im(_));if(200===(await Ey("/inspections/".concat(u,"/").concat(d,"/").concat(v),y)).status)return u&&!r&&dV(u,d,y,p,c.inspectionTool.inspectionDoc),_.fileName;{const e=c.inspectionTool.annotations.filter((e=>e.fileName!==_.fileName));Sy.dispatch(Mg(e))}return!1},dV=async(e,t,n,r,i)=>{const o=await Ey("/inspections/".concat(e,"/").concat(t,"/").concat(r,"/cropAnnotationImage"),n);if(200===o.status){const e=await o.json();Sy.dispatch(Qg({fileName:e.fileName,urls:e.urls}))}},hV=async(e,t)=>{var n;const r=Sy.getState(),i=null===(n=r.inspectionTool.inspectionDoc)||void 0===n?void 0:n.id,o=null!==t&&void 0!==t?t:r.inspectionTool.currentPhotoData.photoId,s={method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({annotationId:e.fileName.split("_")[1]})},a=r.inspectionTool.annotations.filter((t=>t.fileName!==e.fileName));Sy.dispatch(Mg(a)),await Ey("/inspections/".concat(i,"/").concat(o,"/deleteAnnotation"),s),i&&IL(i)},pV=(e,t)=>{const n=JSON.parse(JSON.stringify(e));return["key","urls","fileName","blade","edge","side"].forEach((e=>{void 0!==n[e]&&delete n[e]})),"Solar"!==t&&["thermalRangeMin","thermalRangeMax","thermalStats","palette","idPanel","coordinates"].forEach((e=>{void 0!==n[e]&&delete n[e]})),"Solar"===t&&["realWidth","realHeight"].forEach((e=>{void 0!==n[e]&&delete n[e]})),n},fV=async e=>{const t=await Ey("/inspections/"+e+"/getPreviousInspectionDetails",{method:"GET",headers:{"Content-Type":"application/json"}});return(await t.json()).previousInspections},gV=async(e,t,n,r)=>{const i={method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({photoKey:t,isSolar:n,solarPhoto:!!r})},o=await Ey("/inspections/"+e+"/getSinglePhotoURL",i);return await o.json()},mV=async(e,t)=>{const n=await Ey("/inspections/"+e+"/getSingleNormalPhotoUrl/"+t,{method:"GET",headers:{"Content-Type":"application/json"}});return await n.json()},yV=async function(e,t,n){let r=arguments.length>3&&void 0!==arguments[3]&&arguments[3];const i={method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(n)},o=await Ey("/inspections/"+e+"/"+t+"/updatePhotoData",i);r||Sy.dispatch(um({photoId:t,dataToChange:n}));const s=Sy.getState().inspectionTool.annotations.filter((e=>e.key===t));return s.length&&s.forEach((e=>{const t={...e,...n};uV("update",t,void 0,!0,!0)})),o&&200===o.status},vV=async e=>{const t=await Ey("/inspections/"+e+"/getMobileData",{method:"GET",headers:{"Content-Type":"application/json"}}),n=await t.json();return Sy.dispatch(Tg(n)),n},_V=async e=>{ZL(e,{aiStatus:VC.COMPLETE}),(async(e,t)=>{const n={method:"PATCH",body:JSON.stringify({notionStatus:t})},r=await Ey("/".concat(KL,"/").concat(e,"/notion-wind-ai-board"),n);if(!r.ok){var i;const e=await r.text();throw new Error(null!==(i=null!==e&&void 0!==e?e:r.statusText)&&void 0!==i?i:"An error occured")}await r.json()})(e,NC.REVIEWED)},bV=async e=>{const t={method:"PATCH",headers:{"Content-Type":"application/json"},body:JSON.stringify({jsonData:e})};return await Ey("/ai-wind/json",t)};let xV=function(e){return e.IMAGE="IMAGE",e.GEOTIFF="GEOTIFF",e.GEOJSON="GEOJSON",e}({}),SV=function(e){return e.PENDING="PENDING",e.DONE="DONE",e.ERROR="ERROR",e}({});const wV=CC.object({imagePoints:CC.tuple([yL,yL]),mapPoints:CC.tuple([yL,yL])}),EV=CC.object({angleRadians:CC.number().default(0),around:yL.optional()}),PV=CC.object({id:CC.string(),name:CC.string().min(1),fileName:CC.string(),defaultVisible:CC.boolean().default(!1),zIndex:CC.number().min(-1).default(0),showOnPDF:CC.boolean().default(!1),asset:CC.object({id:CC.string().min(1)}),subAsset:CC.object({id:CC.string().min(1),name:CC.string().min(1)}),signedUrl:CC.string()}),CV=PV.extend({type:CC.literal(xV.IMAGE),topRight:yL,bottomLeft:yL,rotation:EV.default({angleRadians:0}),calibrationPoints:wV.default({imagePoints:[{lat:0,lng:0},{lat:0,lng:0}],mapPoints:[{lat:0,lng:0},{lat:0,lng:0}]})}),AV=PV.extend({type:CC.literal(xV.GEOTIFF),status:CC.nativeEnum(SV)}),kV=PV.extend({type:CC.literal(xV.GEOJSON)}),jV=CC.union([CV,AV,kV]),IV=async(e,t)=>{const n={method:"PATCH",body:JSON.stringify(t)},r=await Ey("/assets/".concat(e),n),i=await r.json();if(200!==r.status)throw new Error(null!==i&&void 0!==i?i:r.statusText);return i},GV=async(e,t,n)=>{const r=new URLSearchParams;t&&r.append("subAssetsIds",(null!==t&&void 0!==t?t:[]).filter((e=>e)).join(",")),n&&r.append("externalUserCode",n);const i=await Ey("/assets/overlays/".concat(e,"?").concat(r),{method:"GET"});if(200!==i.status){var o;const e=await i.text();throw new Error(null!==(o=null!==e&&void 0!==e?e:i.statusText)&&void 0!==o?o:"An error occured")}const s=await i.json();return CC.array(jV).parse(s)},TV=async e=>{const t=await Ey("/campaigns/asset/".concat(e),{method:"GET"});return!(!t||200!==t.status)&&t.json()},MV=async e=>{const t=await Ey("/campaigns/".concat(e),{method:"GET"});if(t&&200===t.status){return await t.json()}return!1},OV=e=>({isSolarCampaign:e.types.length>0&&e.types.every((e=>e===RC.SOLAR)),isWindCampaign:e.types.length>0&&e.types.every((e=>[RC.WIND,RC.BLADES,RC.TOWER].includes(e))),isConstructionCampaign:e.types.length>0&&e.types.every((e=>e===RC.SOLAR_CONSTRUCTION))}),RV=async()=>{const e={method:"GET"};if(!Sy.getState().inspections.loadedInspectStats){const t=await Ey("/stats/getStatsInspect",e),n=t?await t.json():[];Sy.dispatch(Hf(n))}},DV=async()=>{Sy.dispatch(Kf(!0));const e=await Ey("/stats/getStatsDefects",{method:"GET"}),t=e?await e.json():[];return Sy.dispatch(qf(t)),Sy.dispatch(Kf(!1)),t},NV=async()=>{const e=await Ey("/stats/news",{method:"GET"}),t=e?await e.json():null;return t&&Sy.dispatch(xo({lightVersion:t.lightVersion,assetRight:t.assetRight})),t},LV=Object.freeze({inspection:"inspections",campaign:"campaigns"}),VV=async(e,t)=>{const n=await Ey("/".concat(LV[e],"/").concat(t,"/getUsersSharedResults"),{method:"GET"});return await n.json()},FV=async(e,t)=>{var n,r,i;const o=await Ey("/".concat(LV[e],"/check-external-link/").concat(t),{method:"GET"}),s=await o.json();return{inspectionId:null!==(n=s.inspectionId)&&void 0!==n?n:null,campaignId:null!==(r=s.campaignId)&&void 0!==r?r:null,defectId:null!==(i=s.defectId)&&void 0!==i?i:null}},zV=async(e,t)=>{const n=new URLSearchParams;t&&n.append("externalUserCode",t);const r=await Ey("/inspections/".concat(e,"/panels-infos?").concat(n));if(!r.ok){const e=await r.text();throw new Error(null!==e&&void 0!==e?e:"An error occured")}return r.json()};var BV=__webpack_require__(37160);const UV=["#000000","#010101","#020202","#030303","#040404","#050505","#050505","#060606","#070707","#080808","#090909","#0a0a0a","#0b0b0b","#0c0c0c","#0d0d0d","#0d0d0d","#0e0e0e","#0f0f0f","#101010","#101010","#111111","#121212","#121212","#131313","#131313","#141414","#141414","#151515","#161616","#161616","#171717","#171717","#181818","#181818","#191919","#191919","#1a1a1a","#1a1a1a","#1b1b1b","#1b1b1b","#1c1c1c","#1c1c1c","#1d1d1d","#1d1d1d","#1e1e1e","#1e1e1e","#1f1f1f","#1f1f1f","#202020","#202020","#212121","#212121","#222222","#222222","#232323","#232323","#242424","#242424","#252525","#252525","#262626","#262626","#272727","#272727","#282828","#282828","#292929","#292929","#2a2a2a","#2a2a2a","#2b2b2b","#2c2c2c","#2c2c2c","#2d2d2d","#2d2d2d","#2e2e2e","#2e2e2e","#2f2f2f","#2f2f2f","#303030","#303030","#313131","#313131","#323232","#333333","#333333","#343434","#343434","#353535","#353535","#363636","#363636","#373737","#383838","#383838","#393939","#393939","#3a3a3a","#3a3a3a","#3b3b3b","#3b3b3b","#3c3c3c","#3d3d3d","#3d3d3d","#3e3e3e","#3e3e3e","#3f3f3f","#3f3f3f","#404040","#414141","#414141","#424242","#424242","#434343","#434343","#444444","#454545","#454545","#464646","#464646","#474747","#474747","#484848","#494949","#494949","#4a4a4a","#4a4a4a","#4b4b4b","#4b4b4b","#4c4c4c","#4d4d4d","#4d4d4d","#4e4e4e","#4e4e4e","#4f4f4f","#505050","#505050","#515151","#515151","#525252","#525252","#535353","#545454","#545454","#555555","#555555","#565656","#575757","#575757","#585858","#585858","#595959","#5a5a5a","#5a5a5a","#5b5b5b","#5b5b5b","#5c5c5c","#5d5d5d","#5d5d5d","#5e5e5e","#5e5e5e","#5f5f5f","#606060","#606060","#616161","#626262","#626262","#636363","#636363","#646464","#656565","#656565","#666666","#666666","#676767","#686868","#686868","#696969","#696969","#6a6a6a","#6b6b6b","#6b6b6b","#6c6c6c","#6d6d6d","#6d6d6d","#6e6e6e","#6e6e6e","#6f6f6f","#707070","#707070","#717171","#727272","#727272","#737373","#737373","#747474","#757575","#757575","#767676","#777777","#777777","#787878","#787878","#797979","#7a7a7a","#7a7a7a","#7b7b7b","#7c7c7c","#7c7c7c","#7d7d7d","#7e7e7e","#7e7e7e","#7f7f7f","#7f7f7f","#808080","#818181","#818181","#828282","#838383","#838383","#848484","#858585","#858585","#868686","#878787","#878787","#888888","#888888","#898989","#8a8a8a","#8a8a8a","#8b8b8b","#8c8c8c","#8c8c8c","#8d8d8d","#8e8e8e","#8e8e8e","#8f8f8f","#909090","#909090","#919191","#929292","#929292","#939393","#949494","#949494","#959595","#969696","#969696","#979797","#989898","#989898","#999999","#999999","#9a9a9a","#9b9b9b","#9b9b9b","#9c9c9c","#9d9d9d","#9d9d9d","#9e9e9e","#9f9f9f","#9f9f9f","#a0a0a0","#a1a1a1","#a1a1a1","#a2a2a2","#a3a3a3","#a3a3a3","#a4a4a4","#a5a5a5","#a5a5a5","#a6a6a6","#a7a7a7","#a7a7a7","#a8a8a8","#a9a9a9","#a9a9a9","#aaaaaa","#ababab","#acacac","#acacac","#adadad","#aeaeae","#aeaeae","#afafaf","#b0b0b0","#b0b0b0","#b1b1b1","#b2b2b2","#b2b2b2","#b3b3b3","#b4b4b4","#b4b4b4","#b5b5b5","#b6b6b6","#b6b6b6","#b7b7b7","#b8b8b8","#b8b8b8","#b9b9b9","#bababa","#bababa","#bbbbbb","#bcbcbc","#bdbdbd","#bdbdbd","#bebebe","#bfbfbf","#bfbfbf","#c0c0c0","#c1c1c1","#c1c1c1","#c2c2c2","#c3c3c3","#c3c3c3","#c4c4c4","#c5c5c5","#c5c5c5","#c6c6c6","#c7c7c7","#c8c8c8","#c8c8c8","#c9c9c9","#cacaca","#cacaca","#cbcbcb","#cccccc","#cccccc","#cdcdcd","#cecece","#cfcfcf","#cfcfcf","#d0d0d0","#d1d1d1","#d1d1d1","#d2d2d2","#d3d3d3","#d3d3d3","#d4d4d4","#d5d5d5","#d6d6d6","#d6d6d6","#d7d7d7","#d8d8d8","#d8d8d8","#d9d9d9","#dadada","#dadada","#dbdbdb","#dcdcdc","#dddddd","#dddddd","#dedede","#dfdfdf","#dfdfdf","#e0e0e0","#e1e1e1","#e2e2e2","#e2e2e2","#e3e3e3","#e4e4e4","#e4e4e4","#e5e5e5","#e6e6e6","#e7e7e7","#e7e7e7","#e8e8e8","#e9e9e9","#e9e9e9","#eaeaea","#ebebeb","#ececec","#ececec","#ededed","#eeeeee","#eeeeee","#efefef","#f0f0f0","#f1f1f1","#f1f1f1","#f2f2f2","#f3f3f3","#f3f3f3","#f4f4f4","#f5f5f5","#f6f6f6","#f6f6f6","#f7f7f7","#f8f8f8","#f8f8f8","#f9f9f9","#fafafa","#fbfbfb","#fbfbfb","#fcfcfc","#fdfdfd","#fefefe","#fefefe","#ffffff"],WV=(e,t,n)=>e*(4*n)+4*t,HV=e=>{if(void 0===e)return{r:255,g:255,b:255};const t=e.match(/^#?([\da-f]{2})([\da-f]{2})([\da-f]{2})$/i);return t?{r:parseInt(t[1],16),g:parseInt(t[2],16),b:parseInt(t[3],16)}:{r:255,g:255,b:255}},qV=async e=>{if(e.some((e=>"string"!==typeof e)))throw new Error("Signed urls must be strings");const t=await Promise.all(e.map((e=>(async e=>{const t=await fetch(e);if(!t.ok)throw new Error("test");const n=await t.arrayBuffer(),r=BV.Sn.from(n),i=new Uint8Array(r.buffer,r.byteOffset,r.length),o=640,s=512;let a=-1/0,l=1/0;for(let p=0;p<s;p++)for(let e=0;e<o;e++){const t=i[3*(p*o+e)];t>a&&(a=t),t<l&&(l=t)}const c=document.createElement("canvas");c.width=o,c.height=s;const u=c.getContext("2d");if(!u)return;const d=UV;if(0===c.width||0===c.height)return;const h=u.createImageData(c.width,c.height);for(let p=0;p<c.width;p++)for(let e=0;e<c.height;e++){const t={x:p,y:e},n=WV(e,p,c.width);let r=(i[3*(t.y*o+t.x)]-l)/(a-l);r<0&&(r=0);const s=Math.round(d.length*r),u=HV(d[s]);h.data[n]=u.r,h.data[n+1]=u.g,h.data[n+2]=u.b,h.data[n+3]=255}return u.putImageData(h,0,0),new Promise(((e,t)=>{c.toBlob((n=>{n?e(URL.createObjectURL(n)):t("[pdfToImage] An error occurred while generating blob from canvas")}),"image/webp",1)}))})(e))));return t.filter((e=>e))},XV=async(e,t,n,r)=>{const i=new URLSearchParams;t.forEach((e=>i.append("photosIds",e))),i.append("palette",n),r&&i.append("campaignLink",r);const o=await Ey("/inspections/".concat(e,"/signed-photos?").concat(i.toString()),{method:"GET"});if(!o.ok){var s;const e=await o.text();throw new Error(null!==(s=null!==e&&void 0!==e?e:o.statusText)&&void 0!==s?s:"[getSolarInspectionHotwhitePhotosSignedUrls] An error occured")}const a=await o.json();if(!Array.isArray(a))throw new Error("Invalid json");return[_L.GREYSCALE,_L.RGB].includes(n)?(async e=>{if(e.some((e=>"string"!==typeof e)))throw new Error("Signed urls must be strings");return e})(a):n===_L.HOTWHITE?qV(a):[]},YV=async(e,t)=>{const n=await Ey("/inspections/".concat(e,"/thermal-gsd-data?externalUserCode=").concat(encodeURIComponent(null!==t&&void 0!==t?t:"")),{method:"GET"});if(!n.ok)return[];const r=await n.json();if(!Array.isArray(r))throw new Error("Invalid json");return r},KV=async(e,t)=>{const n={method:"POST",body:JSON.stringify({photoIds:t})},r=await Ey("/inspections/".concat(e,"/viewed-photos"),n);if(200===r.status){return await r.json()}return[]},ZV=(e,t)=>((e,t)=>{const n={method:"PATCH",body:JSON.stringify({...t})};return Ey("/inspections/".concat(e),n)})(e,{offsetAnnotations:t}),$V=async(e,t)=>{const n=new URLSearchParams;t&&(n.append("externalUserCode",t),n.append("campaignLink",t));const r=await Ey("/inspections/".concat(e,"/sorted-photos?").concat(n));return r.ok?r.json():[]},JV=async(e,t)=>{const n=await Ey("/inspections/".concat(e,"/annotations/crops"),{method:"POST",body:JSON.stringify({annotationsFullIds:t})});if(!n.ok)return{};return await n.json()},QV=async(e,t)=>{var n;const r=await Ey("/release-note/".concat(e,"/").concat(t),{method:"GET"});if(!r.ok){var i;const e=await r.text();throw new Error(null!==(i=null!==e&&void 0!==e?e:r.statusText)&&void 0!==i?i:"[hasReadReleaseNote] An error occurred")}return null!==(n=(await r.json()).read)&&void 0!==n&&n},eF=e=>200===e?"":404===e?"No account with this email found":"An error occured",tF=async(e,t)=>{const n=await Ey("/share/".concat(e,"/").concat(t),{method:"GET"});return await n.json()},nF=async(e,t)=>{const n=(await GV(e,[t])).map((e=>fetch(e.signedUrl)));await Promise.all(n)},rF=async(e,t)=>{await OM.inspections.get({id:e})&&await OM.inspections.delete(e),await OM.inspections.add({id:e,timestamp:Date.now(),synced:!1});const n=await PA(e),r=await OM.subAssets.get({id:n.subAsset.id});if(r?await OM.subAssets.update(n.subAsset.id,{inspectionIds:[...r.inspectionIds,e],timestamp:Date.now()}):await OM.subAssets.add({id:n.subAsset.id,inspectionIds:[e],timestamp:Date.now()}),n.status!==OC.ANALYZED)return;const i=n.asset.id,o=n.subAsset.id,{annotations:s}=await jL(e,n.type,!0,void 0,!0),a=await IL(e,!0),l=a.flatMap((e=>e.annotations.map((e=>e.annotationRef)))),c=s.filter((e=>l.includes(e.fileName))),u=a.filter((e=>{var t;return(null===(t=e.files)||void 0===t?void 0:t.length)>0})),d=(await Promise.all(u.map((t=>FL(e,t.id,!1))))).flatMap((e=>e)).map((e=>e.url)).map((e=>fetch(e)));await Promise.all(d);const h=await(async(e,t)=>{const n=[...new Set(t.map((e=>e.key)))].map((t=>XV(e,[t],_L.GREYSCALE)));return(await Promise.all(n)).flatMap((e=>fetch(e[0])))})(e,c),p=await(async(e,t)=>{const n=t.filter((e=>"DISCONNECTED"!==e.type)).map((e=>e.fileName)).map((t=>DA(e,t,RC.SOLAR)));return(await Promise.all(n)).flatMap((e=>e.urls)).map((e=>fetch(e)))})(e,c),f=[vV(e),CA(e),nF(i,o),NV(),VT(),tF(kC.INSPECTION,e),VV(kC.INSPECTION,e),QV("SolarPdf",1),$V(e),YV(e),TT(i),MT(i),zV(e),...p,...h];if(!t)return f;await Promise.all(Ky(f,t)).finally((()=>{OM.inspections.update(e,{synced:!0,timestamp:Date.now()})}))},iF=async(e,t)=>{const n=await PA(e),r=n.campaign,i=n.subAsset.id,o=await OM.campaigns.get({id:null!==r&&void 0!==r?r:""}),s=await OM.subAssets.get({id:i}),a=await caches.open("offline-cache"),l=await a.keys(),c=l.filter((t=>t.url.includes(e))),u=c.map((e=>a.delete(e)));if(s){const n=s.inspectionIds.filter((t=>t!==e));if(0===n.length){const e=l.filter((e=>e.url.includes(i))),n=e.map((e=>a.delete(e)));t?u.push(...n):(await Promise.all(n),await OM.subAssets.delete(i))}else await OM.subAssets.update(i,{inspectionIds:n})}if(t)return u;await Promise.all(u).then((()=>{OM.inspections.delete(e),o&&OM.campaigns.delete(r)}))};var oF=__webpack_require__(28004),sF=__webpack_require__(56824);const aF=e=>{var t;const n=null!==e&&void 0!==e&&e.column?"column":"row",r=null!==e&&void 0!==e&&e.small?"small":"medium",{textStyle:i,color:o="primary",textBefore:s=!1,disabled:a=!1}=e;return(0,Ae.jsx)(Ae.Fragment,{children:(0,Ae.jsxs)(wp,{display:"flex",flexDirection:n,alignItems:"center",style:null!==(t=null===e||void 0===e?void 0:e.style)&&void 0!==t?t:{},children:[e.text&&s&&(0,Ae.jsx)(vu,{style:i,children:e.text}),(0,Ae.jsx)(Aj,{size:r,color:o,disabled:a,checked:e.checked,onChange:t=>{e.onChange(t.target.checked),t.target.blur()}}),e.text&&!s&&(0,Ae.jsx)(vu,{style:i,children:e.text})]})})},lF=e=>{const{isChecked:t,entitySyncPercent:n,onSyncSwitch:r,onUnsyncSwitch:i,noIcon:o}=e,s=()=>{let e;switch(n){case 100:e=(0,Ae.jsx)(oF.c,{color:"success"});break;case void 0:e=(0,Ae.jsx)(sF.c,{color:"primary"});break;default:e=(0,Ae.jsx)(Ae.Fragment,{})}return(0,Ae.jsx)(cu,{title:100===n?"Offline ready. Click on the switch to unsync (delete locally).":"Not offline ready. Click on the switch to sync (download locally).",enterTouchDelay:0,children:e})};return(0,Ae.jsxs)(vj,{flexDirection:"row",alignItems:"center",justifyContent:"center",children:[!o&&(0,Ae.jsx)(s,{}),(0,Ae.jsx)(wp,{onClick:e=>e.stopPropagation(),children:(0,Ae.jsx)(aF,{checked:t,onChange:t?i:r,disabled:!navigator.onLine})})]})},cF=e=>!!Yy()&&e.some((e=>e.status===OC.ANALYZED&&e.type===RC.SOLAR)),uF=e=>{const t=b(pg),r=b(fg),i=on(),[o,s]=(0,n.useState)(""),a=b(Of),[l,c]=(0,n.useState)(""),u=(0,n.useMemo)((()=>cF(t)),[t]),[d,h]=(0,n.useState)(new Map),[p,f]=(0,n.useState)([]),[g,m]=(0,n.useState)(!1);(0,n.useEffect)((()=>{if(!Yy())return;(async()=>{const e=(await OM.inspections.toArray()).filter((e=>e.synced)).map((e=>e.id));f(e),e.forEach((e=>{h((t=>{const n=new Map(t);return n.set(e,100),n}))}))})()}),[]);const y=[...u?[{id:"sync",label:"Offline ready",noSort:!0}]:[],{id:"plannedDate",label:"Inspection Date"},{id:"assetName",label:"Asset"},{id:"subAssetName",label:"SubAsset"},...e.reports?[]:[{id:"status",label:"Status"}],{id:"type",label:"Type"},{id:"defectsCount",numeric:!0,label:"Defects"},{id:"notes",label:"Note"},{id:"download",label:"PDF report"}],v=[...u?[{name:"sync",type:"specific"}]:[],{name:"plannedDate",type:"date"},{name:"assetName"},{name:"subAssetName"},...e.reports?[]:[{name:"status",type:"specific"}],{name:"type"},{name:"defectsCount"},{name:"notes"},{name:"download",type:"specific"}],_=(e,t)=>{h((n=>{const r=new Map(n);return r.set(e,t),r}))},x=(0,n.useCallback)((async e=>{_(e,0),await rF(e,(t=>_(e,t)))}),[]),S=(0,n.useCallback)((async e=>{await iF(e),h((t=>{const n=new Map(t);return n.delete(e),n}))}),[]);(0,n.useEffect)((()=>{(async()=>{await GA()})(),Eo()&&!a.all.length&&IT("wind")}),[]),(0,n.useEffect)((()=>{void 0!==e.searchValue&&s(e.searchValue)}),[e.searchValue]);let w=o?t.filter((t=>e.reports?"analyzed"===t.status:"analyzed"!==t.status)).filter((e=>Dy(e.assetName,o)||Dy(e.subAssetName,o)||Dy(e.notes,o)||Dy(e.status,o)||Dy(e.type,o)||Dy(Iy(e.plannedDate),o))):t.filter((t=>e.reports?"analyzed"===t.status:"analyzed"!==t.status));w=l&&"All"!==l?w.filter((e=>{const t=a.all.filter((e=>e.company===l)).map((e=>e.id));return t.includes(e.assetId)})):w;Vy(a.all,"company").unshift("All");return(0,n.useEffect)((()=>{var t;t=e.selectedCompany,c(t||"")}),[e.selectedCompany]),(0,Ae.jsxs)(Ae.Fragment,{children:[(0,Ae.jsx)(Ud,{open:g,onClose:()=>m(!1),anchorOrigin:{vertical:"center",horizontal:"center"},transformOrigin:{vertical:"center",horizontal:"center"},children:(0,Ae.jsxs)(vj,{padding:"2rem",borderRadius:"5px",justifyContent:"center",alignItems:"center",children:[(0,Ae.jsx)(vu,{children:"You are currently offline, you can only access synced inspections. Please connect to the internet to access all inspections."}),(0,Ae.jsx)(ev,{onClick:()=>m(!1),label:"Close"})]})}),(0,Ae.jsxs)("div",{style:{margin:10},children:[r&&(0,Ae.jsx)(jT,{ariaLabel:"enhanced table",headCells:y,order:"desc",orderBy:"plannedDate",rows:w,contentCells:v,selectRow:(e,n)=>{const r=t.find((t=>t.id===e));r&&TC("inspection",r,"",e),qy(n,"/inspections/".concat(e),i)},evenColumns:!0,loading:!1,specificFormat:(e,t,n)=>{const r=d.get(n.id);switch(e){case"status":return Uy(t);case"sync":return n.type===RC.SOLAR?(0,Ae.jsx)(wp,{paddingLeft:"1rem",height:"100%",children:void 0!==r&&100!==r?(0,Ae.jsxs)(vu,{color:"black",children:[r," %"]}):(0,Ae.jsx)(lF,{isChecked:100===r,onSyncSwitch:()=>{x(n.id)},onUnsyncSwitch:()=>S(n.id),entitySyncPercent:r})}):(0,Ae.jsx)(Ae.Fragment,{});case"download":return n.isReportGenerated&&(0,Ae.jsx)(vM,{type:kC.INSPECTION,itemId:n.id})}},maxHeight:"calc(100vh - 136px - 2.5rem)",specificSort:(e,t,n)=>"download"===n?jy(e,t):ky(e,t,n),allowedRows:!navigator.onLine&&Yy()?p:void 0,disabledRowCallback:()=>m(!0)}),!r&&(0,Ae.jsx)($y,{topMargin:"40px"})]})]})};function dF(e,t){return void 0!==t&&void 0!==e&&(Array.isArray(t)?t.indexOf(e)>=0:e===t)}function hF(e){return(0,hs.c)("MuiToggleButtonGroup",e)}const pF=(0,ds.c)("MuiToggleButtonGroup",["root","selected","vertical","disabled","grouped","groupedHorizontal","groupedVertical"]),fF=["children","className","color","disabled","exclusive","fullWidth","onChange","orientation","size","value"],gF=(0,cs.cp)("div",{name:"MuiToggleButtonGroup",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{["& .".concat(pF.grouped)]:t.grouped},{["& .".concat(pF.grouped)]:t["grouped".concat((0,ha.c)(n.orientation))]},t.root,"vertical"===n.orientation&&t.vertical,n.fullWidth&&t.fullWidth]}})((e=>{let{ownerState:t,theme:n}=e;return(0,d.c)({display:"inline-flex",borderRadius:(n.vars||n).shape.borderRadius},"vertical"===t.orientation&&{flexDirection:"column"},t.fullWidth&&{width:"100%"},{["& .".concat(pF.grouped)]:(0,d.c)({},"horizontal"===t.orientation?{"&:not(:first-of-type)":{marginLeft:-1,borderLeft:"1px solid transparent",borderTopLeftRadius:0,borderBottomLeftRadius:0},"&:not(:last-of-type)":{borderTopRightRadius:0,borderBottomRightRadius:0},["&.".concat(pF.selected," + .").concat(pF.grouped,".").concat(pF.selected)]:{borderLeft:0,marginLeft:0}}:{"&:not(:first-of-type)":{marginTop:-1,borderTop:"1px solid transparent",borderTopLeftRadius:0,borderTopRightRadius:0},"&:not(:last-of-type)":{borderBottomLeftRadius:0,borderBottomRightRadius:0},["&.".concat(pF.selected," + .").concat(pF.grouped,".").concat(pF.selected)]:{borderTop:0,marginTop:0}})})})),mF=n.forwardRef((function(e,t){const r=(0,Oe.c)({props:e,name:"MuiToggleButtonGroup"}),{children:i,className:o,color:s="standard",disabled:a=!1,exclusive:l=!1,fullWidth:c=!1,onChange:u,orientation:h="horizontal",size:p="medium",value:f}=r,g=(0,Tt.c)(r,fF),m=(0,d.c)({},r,{disabled:a,fullWidth:c,orientation:h,size:p}),y=(e=>{const{classes:t,orientation:n,fullWidth:r,disabled:i}=e,o={root:["root","vertical"===n&&"vertical",r&&"fullWidth"],grouped:["grouped","grouped".concat((0,ha.c)(n)),i&&"disabled"]};return(0,ls.c)(o,hF,t)})(m),v=(e,t)=>{if(!u)return;const n=f&&f.indexOf(t);let r;f&&n>=0?(r=f.slice(),r.splice(n,1)):r=f?f.concat(t):[t],u(e,r)},_=(e,t)=>{u&&u(e,f===t?null:t)};return(0,Ae.jsx)(gF,(0,d.c)({role:"group",className:(0,ts.c)(y.root,o),ref:t,ownerState:m},g,{children:n.Children.map(i,(e=>n.isValidElement(e)?n.cloneElement(e,{className:(0,ts.c)(y.grouped,e.props.className),onChange:l?_:v,selected:void 0===e.props.selected?dF(e.props.value,f):e.props.selected,size:e.props.size||p,fullWidth:c,color:e.props.color||s,disabled:e.props.disabled||a}):null))}))})),yF=mF;function vF(e){return(0,hs.c)("MuiToggleButton",e)}const _F=(0,ds.c)("MuiToggleButton",["root","disabled","selected","standard","primary","secondary","sizeSmall","sizeMedium","sizeLarge"]),bF=["children","className","color","disabled","disableFocusRipple","fullWidth","onChange","onClick","selected","size","value"],xF=(0,cs.cp)(da,{name:"MuiToggleButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t["size".concat((0,ha.c)(n.size))]]}})((e=>{let t,{theme:n,ownerState:r}=e,i="standard"===r.color?n.palette.text.primary:n.palette[r.color].main;return n.vars&&(i="standard"===r.color?n.vars.palette.text.primary:n.vars.palette[r.color].main,t="standard"===r.color?n.vars.palette.text.primaryChannel:n.vars.palette[r.color].mainChannel),(0,d.c)({},n.typography.button,{borderRadius:(n.vars||n).shape.borderRadius,padding:11,border:"1px solid ".concat((n.vars||n).palette.divider),color:(n.vars||n).palette.action.active},r.fullWidth&&{width:"100%"},{["&.".concat(_F.disabled)]:{color:(n.vars||n).palette.action.disabled,border:"1px solid ".concat((n.vars||n).palette.action.disabledBackground)},"&:hover":{textDecoration:"none",backgroundColor:n.vars?"rgba(".concat(n.vars.palette.text.primaryChannel," / ").concat(n.vars.palette.action.hoverOpacity,")"):(0,Ps.W4)(n.palette.text.primary,n.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},["&.".concat(_F.selected)]:{color:i,backgroundColor:n.vars?"rgba(".concat(t," / ").concat(n.vars.palette.action.selectedOpacity,")"):(0,Ps.W4)(i,n.palette.action.selectedOpacity),"&:hover":{backgroundColor:n.vars?"rgba(".concat(t," / calc(").concat(n.vars.palette.action.selectedOpacity," + ").concat(n.vars.palette.action.hoverOpacity,"))"):(0,Ps.W4)(i,n.palette.action.selectedOpacity+n.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:n.vars?"rgba(".concat(t," / ").concat(n.vars.palette.action.selectedOpacity,")"):(0,Ps.W4)(i,n.palette.action.selectedOpacity)}}}},"small"===r.size&&{padding:7,fontSize:n.typography.pxToRem(13)},"large"===r.size&&{padding:15,fontSize:n.typography.pxToRem(15)})})),SF=n.forwardRef((function(e,t){const n=(0,Oe.c)({props:e,name:"MuiToggleButton"}),{children:r,className:i,color:o="standard",disabled:s=!1,disableFocusRipple:a=!1,fullWidth:l=!1,onChange:c,onClick:u,selected:h,size:p="medium",value:f}=n,g=(0,Tt.c)(n,bF),m=(0,d.c)({},n,{color:o,disabled:s,disableFocusRipple:a,fullWidth:l,size:p}),y=(e=>{const{classes:t,fullWidth:n,selected:r,disabled:i,size:o,color:s}=e,a={root:["root",r&&"selected",i&&"disabled",n&&"fullWidth","size".concat((0,ha.c)(o)),s]};return(0,ls.c)(a,vF,t)})(m);return(0,Ae.jsx)(xF,(0,d.c)({className:(0,ts.c)(y.root,i),disabled:s,focusRipple:!a,ref:t,onClick:e=>{u&&(u(e,f),e.defaultPrevented)||c&&c(e,f)},onChange:c,value:f,ownerState:m,"aria-pressed":h},g,{children:r}))})),wF=SF,EF=e=>{const t=Zo()((()=>{var t;return{root:null!==(t=e.style)&&void 0!==t?t:{},buttonOn:{backgroundColor:jp+"!important",color:"white!important",height:Wy()?"2.4rem":"3rem"},buttonOff:{backgroundColor:"white!important",color:jp,height:Wy()?"2.4rem":"3rem"}}})),{classes:n}=t();return(0,Ae.jsxs)(yF,{value:e.value,exclusive:!0,onChange:()=>e.onChange(),className:n.root,children:[(0,Ae.jsx)(wF,{value:!0,className:e.value?n.buttonOn:n.buttonOff,children:e.button1Label}),(0,Ae.jsx)(wF,{value:!1,className:e.value?n.buttonOff:n.buttonOn,children:e.button2Label})]})},PF=e=>{var t,n,r,i,o,s,a,l;const c=Zo()((()=>({root:{height:Wy()?"100dvh":"100vh",display:"flex",flexDirection:"column"},header:{paddingLeft:Wy()?"25px":0,borderBottom:e.noBorder?void 0:"1px solid rgba(0, 0, 0, 0.12)"},content:{flexGrow:1,overflowY:"auto"},container:{display:"flex",width:"100%",maxWidth:"100%",alignItems:"center",justifyContent:"space-between",padding:"0.5rem",rowGap:Wy()?"0.25rem":"initial",overflowX:Wy()?"auto":"initial",...e.customStyle},left:{textAlign:"left"},center:{textAlign:"center"},right:{textAlign:"right"}}))),{classes:u}=c(),d=null!==(t=null===(n=e.size)||void 0===n?void 0:n.left)&&void 0!==t?t:4,h=null!==(r=null===(i=e.size)||void 0===i?void 0:i.center)&&void 0!==r?r:4,p=null!==(o=null===(s=e.size)||void 0===s?void 0:s.right)&&void 0!==o?o:4;return(0,Ae.jsxs)("div",{className:u.root,children:[(0,Ae.jsxs)("div",{className:u.header,children:[(0,Ae.jsx)(we,{children:(0,Ae.jsx)("title",{children:e.pageTitle})}),(0,Ae.jsxs)(ws,{container:!0,className:u.container,children:[(0,Ae.jsx)(ws,{item:!0,xs:d,className:u.left,children:null!==(a=e.left)&&void 0!==a?a:null}),e.center?(0,Ae.jsx)(ws,{item:!0,xs:h,className:u.center,children:e.center}):null,(0,Ae.jsx)(ws,{item:!0,xs:p,className:u.right,children:null!==(l=e.right)&&void 0!==l?l:null})]})]}),(0,Ae.jsx)("div",{className:u.content,children:e.children})]})},CF=e=>{let{title:t}=e;return(0,Ae.jsx)(vu,{color:"black",variant:"h5",lineHeight:"1.2rem",children:t})};function AF(e){return ka({tag:"svg",attr:{version:"1",viewBox:"0 0 48 48",enableBackground:"new 0 0 48 48"},child:[{tag:"path",attr:{fill:"#455A64",d:"M36,4H26c0,1.1-0.9,2-2,2s-2-0.9-2-2H12C9.8,4,8,5.8,8,8v32c0,2.2,1.8,4,4,4h24c2.2,0,4-1.8,4-4V8 C40,5.8,38.2,4,36,4z"}},{tag:"path",attr:{fill:"#fff",d:"M36,41H12c-0.6,0-1-0.4-1-1V8c0-0.6,0.4-1,1-1h24c0.6,0,1,0.4,1,1v32C37,40.6,36.6,41,36,41z"}},{tag:"g",attr:{fill:"#90A4AE"},child:[{tag:"path",attr:{d:"M26,4c0,1.1-0.9,2-2,2s-2-0.9-2-2h-7v4c0,1.1,0.9,2,2,2h14c1.1,0,2-0.9,2-2V4H26z"}},{tag:"path",attr:{d:"M24,0c-2.2,0-4,1.8-4,4s1.8,4,4,4s4-1.8,4-4S26.2,0,24,0z M24,6c-1.1,0-2-0.9-2-2s0.9-2,2-2s2,0.9,2,2 S25.1,6,24,6z"}}]},{tag:"polygon",attr:{fill:"#4CAF50",points:"30.6,18.6 21.6,27.6 17.4,23.3 14.9,25.8 21.7,32.5 33.1,21.1"}}]})(e)}const kF=Object.freeze({ArrowDown:"ArrowDown",ArrowUp:"ArrowUp",Enter:"Enter"}),jF=e=>{const t=on(),r=b(jf),i=b(If),o=b(gg),s=b(yg),a=b(Gf),[l,c]=(0,n.useState)(""),[u,d]=(0,n.useState)(""),[h,p]=(0,n.useState)(null),[f,g]=(0,n.useState)([]),[m,y]=(0,n.useState)([]),[v,_]=(0,n.useState)(!1),[x,S]=(0,n.useState)(!1),[w,E]=(0,n.useState)(null),[P,C]=(0,n.useState)(null),[A,k]=(0,n.useState)(null),j=(0,n.useRef)(null),I=(0,n.useRef)([]);(0,n.useEffect)((()=>{I.current=[]}),[l]);const G=Zo()((()=>({deleteInput:{float:"right",right:10,color:"black",cursor:"pointer"},input:{padding:e.minVersion?"10px 5px":"12px 6px",width:e.minVersion?"12rem":"16rem"},container:{alignItems:"center"},inputStart:{caretColor:"transparent",padding:e.minVersion?"10px 5px":"12px 6px",width:e.minVersion?"12rem":"16rem"},grid:{position:"absolute",top:10},main:{background:"white",maxWidth:e.responsive?"100%":"initial",marginRight:e.responsive?"initial":5,marginLeft:e.responsive?"initial":25,position:Wy()&&!e.responsive?"fixed":void 0,right:Wy()&&!e.responsive?5:void 0},btnVersion:{height:"100%",borderColor:Rp,color:Np},hidden:{visibility:"hidden"},title:{fontSize:"0.9rem",color:"black",float:"left",width:"100%",paddingTop:8,paddingBottom:2,marginBottom:5,paddingLeft:3,borderBottom:"1px solid black"},text:{fontSize:"0.85rem",color:"rgba(0, 0, 0, 0.87)",padding:3,display:"flex",alignItems:"center",textAlign:"left",cursor:"pointer","&:hover":{backgroundColor:null===A?"#f6f6f6":"initial"}},searchResults:{textAlign:"center",background:"white",width:345,zIndex:1e3,margin:5},infos:{textAlign:"left"},select:{width:70,padding:0,display:"inline-block"},selectedItem:{backgroundColor:"#f6f6f6"}}))),{classes:T}=G(),M={control:(e,t)=>({...e,border:"unset",minHeight:20,zIndex:1100}),dropdownIndicator:e=>({...e,padding:0}),menuPortal:e=>({...e,zIndex:9999,fontSize:"0.9rem"})};(0,n.useEffect)((()=>{e.anchorEl&&(_(!0),p(e.anchorEl))}),[e.anchorEl]),(0,n.useEffect)((()=>{s&&RV(),a&&OT(),0===r.length&&IT("")}),[]),(0,n.useEffect)((()=>{if(null!==o&&void 0!==o&&o.length){const e=o.filter((e=>"Solar"===e.type));e.length&&S(!0)}}),[o]);const O=e=>{"Escape"===e.key&&R(!0)};(0,n.useEffect)((()=>(window.addEventListener("keydown",O),function(){window.removeEventListener("keydown",O)})),[]);const R=t=>{_(!1),t&&l&&(!u||u!==l)&&d(l),!t&&d(""),c(""),k(null),e.exit&&e.exit()};(0,n.useEffect)((()=>{if(!l)return E(null),void g([]);const e=(t=l,o.filter((e=>Dy(e.assetName,t)||t.length>5&&Dy(e.id,t)||Dy(e.subAssetName,t)||Dy(Iy(e.plannedDate),t)||Dy(Uy(e.status),t)||Dy(e.notes,t)||Dy(e.type,t)))).sort(((e,t)=>e.plannedDate<t.plannedDate?1:-1)).slice(0,8);var t;g(e);const n=(0,Qo.groupBy)((e=>i.filter((t=>Dy(t.subAssetName,e)||e.length>5&&Dy(t.subAssetId,e)||Dy(t.type,e))).sort(((e,t)=>e.assetName>t.assetName?1:-1)))(l),"assetId");for(const r in n){const e=n[r].sort(((e,t)=>Ay(e,t,"subAssetName","asc")));n[r]=e}const s=Object.fromEntries(Object.entries(n).slice(0,8)),a=(e=>r.filter((t=>{let{id:n,name:r}=t;return n&&(Dy(r,e)||e.length>5&&Dy(n,e))})).sort(((e,t)=>e.name>t.name?1:-1)))(l);a.forEach((e=>{let{id:t,name:n,type:r,status:i}=e;if(!Object.keys(s).includes(t)){const e={assetName:n,subAssetName:"",type:r,assetId:t,subAssetId:"",assetStatus:null!==i&&void 0!==i?i:""};s[t]=[e]}})),E(s),y(GC(x,l))}),[l,i,o]);const D=(e,n,r,i)=>{const o=n===kC.INSPECTION?r.id:n===kC.ASSET?(null===r||void 0===r?void 0:r.length)&&r[0]:"";switch(N(n,r,i||""),c(""),R(),n){case kC.INSPECTION:window.location.pathname.startsWith("/inspections/")?(qy(e,"/inspections/".concat(o),t),e&&e.ctrlKey&&e.metaKey||t.go(0)):qy(e,"/inspections/".concat(o),t);break;case kC.ASSET:qy(e,i?"/assets/".concat(o,"/").concat(i):"/assets/".concat(o),t)}},N=(e,t,n)=>{TC(e,t,n,l),R()},L=e=>(0,Ae.jsxs)(ws,{container:!0,children:[(0,Ae.jsx)(ws,{item:!0,xs:6,className:T.infos,children:(0,Ae.jsxs)(Ae.Fragment,{children:[(0,Ae.jsx)("b",{children:e.assetName}),"-".concat(e.subAssetName)]})}),(0,Ae.jsx)(ws,{item:!0,xs:3,children:Iy(e.plannedDate)}),(0,Ae.jsx)(ws,{item:!0,xs:3,children:Uy(e.status)})]}),V=(e,t)=>{const n=e[1][0].assetName,r=e.length>1&&e[1].map((e=>({label:e.subAssetName,value:e.subAssetId})));return(0,Ae.jsxs)(ws,{container:!0,className:T.container,children:[(0,Ae.jsx)(ws,{ref:e=>I.current[t]=e,item:!0,xs:6,className:T.infos,onClick:t=>D(t,kC.ASSET,e),children:(0,Ae.jsx)("b",{children:"".concat(n," ")})}),(0,Ae.jsx)(ws,{item:!0,xs:6,onClick:e=>e.stopPropagation(),children:r.length>0&&""!==r[0].value&&(0,Ae.jsx)(ET,{options:r,value:{label:"All",value:"all"},onChange:t=>D("",kC.ASSET,e,t.value),className:T.select,styles:M,menuPortalTarget:document.body})})]})},F=t=>{e.filter&&e.filter(t)},z=(e,t,n)=>{const r=A===n;return(0,Ae.jsxs)(ws,{container:!0,ref:t=>e!==kC.ASSET?I.current[n]=t:null,className:"".concat(T.text," ").concat(r?T.selectedItem:""),onClick:n=>{"previousKeys"!==e&&e!==kC.ASSET&&D(n,e,t),"previousKeys"===e&&(e=>{var t;F(e),c(e),null===(t=j.current)||void 0===t||t.focus()})(t)},children:[(0,Ae.jsx)(ws,{item:!0,xs:1,children:"previousKeys"===e?(0,Ae.jsx)(mp,{size:18}):e===kC.INSPECTION?(0,Ae.jsx)(AF,{size:20,color:jp}):t.length>1&&"solar"===t[1][0].type?(0,Ae.jsx)(Qh,{size:18,color:"rgba(255, 193, 7)"}):(0,Ae.jsx)(sp,{size:18,color:jp})}),(0,Ae.jsx)(ws,{item:!0,xs:11,children:"previousKeys"===e?(0,Ae.jsx)("div",{children:t}):e===kC.INSPECTION?L(t):V(t,n)})]},n)},B=(e,n)=>{const r=A===n;return(0,Ae.jsxs)(ws,{container:!0,ref:e=>I.current[n]=e,className:"".concat(T.text," ").concat(r?T.selectedItem:""),onClick:n=>((e,n)=>{N("special",n.word,""),qy(e,n.goTo,t)})(n,e),children:[(0,Ae.jsx)(ws,{item:!0,xs:1,children:(0,Ae.jsx)(e.icon,{size:18,color:e.color?e.color:jp})}),(0,Ae.jsx)(ws,{item:!0,xs:11,children:e.label})]},n)},U=()=>""===l&&v,W=()=>{var e,t;null!==A&&(null===(e=I.current)||void 0===e||null===(t=e[A])||void 0===t||t.click(),k(null))},H=e=>{let t=0;const n=U()?P&&null!==P&&void 0!==P&&P.length?Vy(P,"value").length+P.filter((e=>"special"!==e.type)).length:0:m.length+Object.entries(null!==w&&void 0!==w?w:{}).length+f.length;if(e===kF.ArrowDown){t=((null!==A&&void 0!==A?A:-1)+1)%n}else if(e===kF.ArrowUp){t=(null!==A&&void 0!==A?A:0)-1,t<0&&(t=n-1)}k(t)},q=()=>{k(null)};return(0,Ae.jsxs)(Ae.Fragment,{children:[e.btnVersion?(0,Ae.jsx)(Sa,{variant:"outlined",title:e.filter?"Search all and filter":"Search all",onClick:e=>{p(e.currentTarget),_(!0)},className:v?T.hidden:T.btnVersion,children:(0,Ae.jsx)(mp,{})}):!e.anchorEl&&(0,Ae.jsx)(iE,{placeholder:e.filter?"Search all and filter":"Search all",value:u,className:v?T.hidden:T.main,onClick:e=>{p(e.currentTarget),_(!0)},variant:"outlined",InputProps:{type:"input",classes:{input:T.inputStart},startAdornment:(0,Ae.jsx)(fx,{position:"start",children:(0,Ae.jsx)(mp,{})}),endAdornment:u&&(0,Ae.jsx)(fx,{position:"end",children:(0,Ae.jsx)(tp,{className:T.deleteInput,onClick:e=>{e.stopPropagation(),R(),F("")}})})}}),(0,Ae.jsx)(Ud,{open:v,onClose:()=>R(!0),className:T.grid,anchorEl:h,anchorOrigin:{vertical:"top",horizontal:"center"},transformOrigin:{vertical:"top",horizontal:"center"},children:(0,Ae.jsxs)("div",{className:T.searchResults,children:[(0,Ae.jsx)(iE,{ref:j,placeholder:e.filter?"Search all and filter":"Search all",value:l,onChange:e=>{c(e.target.value),F(e.target.value)},autoFocus:!0,onKeyDown:e=>(e=>{const t=e.key;t===kF.Enter?(W(),e.preventDefault()):[kF.ArrowDown,kF.ArrowUp].includes(t)?(H(t),e.preventDefault()):k(null)})(e),variant:"outlined",InputProps:{type:"input",autoComplete:"off",classes:{input:T.input},startAdornment:(0,Ae.jsx)(fx,{position:"start",children:(0,Ae.jsx)(mp,{})}),endAdornment:(0,Ae.jsx)(fx,{position:"end",children:l&&(0,Ae.jsx)(tp,{className:T.deleteInput,onClick:()=>{R(),F("")}})})}}),(0,Ae.jsxs)("div",{onMouseEnter:()=>q(),onMouseMove:()=>q(),children:[(()=>{if(!P){const e=(e=>{const t=localStorage.getItem(jC),n=JSON.parse(String(t));return t&&n&&Array.isArray(n)?n:[]})();C(e)}if(U()&&null!==P&&void 0!==P&&P.length){let e=-1;const t=Vy(P,"value").map((t=>(e++,t&&z("previousKeys",t,e)))),n=P.filter((e=>"special"!==e.type)).map((t=>(e++,z(t.type,t.item,e))));return(0,Ae.jsxs)("div",{children:[(0,Ae.jsx)("div",{className:T.title,children:"Previous searches"}),t,(0,Ae.jsx)("div",{className:T.title,children:"Previously viewed"}),n]})}return(0,Ae.jsx)(Ae.Fragment,{})})(),(()=>{let e=-1;const t=(null!==m&&void 0!==m?m:[]).map((t=>(e++,B(t,e)))),n=Object.entries(null!==w&&void 0!==w?w:{}).map((t=>(e++,z(kC.ASSET,t,e)))),r=(null!==f&&void 0!==f?f:[]).map((t=>(e++,z(kC.INSPECTION,t,e))));return(0,Ae.jsxs)(Ae.Fragment,{children:[!!m.length&&(0,Ae.jsxs)("div",{children:[(0,Ae.jsx)("div",{className:T.title,children:"Menus"}),t]}),!(0,Qo.isEmpty)(w)&&(0,Ae.jsxs)("div",{children:[(0,Ae.jsx)("div",{className:T.title,children:"Assets"}),n]}),!!f.length&&(0,Ae.jsxs)("div",{children:[(0,Ae.jsx)("div",{className:T.title,children:"Inspections"}),r]})]})})()]})]})})]})};function IF(e){return"undefined"!==typeof e.normalize?e.normalize("NFD").replace(/[\u0300-\u036f]/g,""):e}function GF(e,t){for(let n=0;n<e.length;n+=1)if(t(e[n]))return n;return-1}const TF=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const{ignoreAccents:t=!0,ignoreCase:n=!0,limit:r,matchFrom:i="any",stringify:o,trim:s=!1}=e;return(e,a)=>{let{inputValue:l,getOptionLabel:c}=a,u=s?l.trim():l;n&&(u=u.toLowerCase()),t&&(u=IF(u));const d=u?e.filter((e=>{let r=(o||c)(e);return n&&(r=r.toLowerCase()),t&&(r=IF(r)),"start"===i?0===r.indexOf(u):r.indexOf(u)>-1})):e;return"number"===typeof r?d.slice(0,r):d}}(),MF=e=>{var t;return null!==e.current&&(null==(t=e.current.parentElement)?void 0:t.contains(document.activeElement))};function OF(e){const{unstable_isActiveElementInListbox:t=MF,unstable_classNamePrefix:r="Mui",autoComplete:i=!1,autoHighlight:o=!1,autoSelect:s=!1,blurOnSelect:a=!1,clearOnBlur:l=!e.freeSolo,clearOnEscape:c=!1,componentName:u="useAutocomplete",defaultValue:h=(e.multiple?[]:null),disableClearable:p=!1,disableCloseOnSelect:f=!1,disabled:g,disabledItemsFocusable:m=!1,disableListWrap:y=!1,filterOptions:v=TF,filterSelectedOptions:_=!1,freeSolo:b=!1,getOptionDisabled:x,getOptionLabel:S=(e=>{var t;return null!=(t=e.label)?t:e}),groupBy:w,handleHomeEndKeys:E=!e.freeSolo,id:P,includeInputInList:C=!1,inputValue:A,isOptionEqualToValue:k=((e,t)=>e===t),multiple:j=!1,onChange:I,onClose:G,onHighlightChange:T,onInputChange:M,onOpen:O,open:R,openOnFocus:D=!1,options:N,readOnly:L=!1,selectOnFocus:V=!e.freeSolo,value:F}=e,z=(0,Bx.c)(P);let B=S;B=e=>{const t=S(e);return"string"!==typeof t?String(t):t};const U=n.useRef(!1),W=n.useRef(!0),H=n.useRef(null),q=n.useRef(null),[X,Y]=n.useState(null),[K,Z]=n.useState(-1),$=o?0:-1,J=n.useRef($),[Q,ee]=(0,qb.c)({controlled:F,default:h,name:u}),[te,ne]=(0,qb.c)({controlled:A,default:"",name:u,state:"inputValue"}),[re,ie]=n.useState(!1),oe=n.useCallback(((e,t)=>{if(!(j?Q.length<t.length:null!==t)&&!l)return;let n;if(j)n="";else if(null==t)n="";else{const e=B(t);n="string"===typeof e?e:""}te!==n&&(ne(n),M&&M(e,n,"reset"))}),[B,te,j,M,ne,l,Q]),se=n.useRef();n.useEffect((()=>{const e=Q!==se.current;se.current=Q,re&&!e||b&&!e||oe(null,Q)}),[Q,oe,re,se,b]);const[ae,le]=(0,qb.c)({controlled:R,default:!1,name:u,state:"open"}),[ce,ue]=n.useState(!0),de=!j&&null!=Q&&te===B(Q),he=ae&&!L,pe=he?v(N.filter((e=>!_||!(j?Q:[Q]).some((t=>null!==t&&k(e,t))))),{inputValue:de&&ce?"":te,getOptionLabel:B}):[],fe=ae&&pe.length>0&&!L;const ge=(0,nd.c)((e=>{-1===e?H.current.focus():X.querySelector('[data-tag-index="'.concat(e,'"]')).focus()}));n.useEffect((()=>{j&&K>Q.length-1&&(Z(-1),ge(-1))}),[Q,j,K,ge]);const me=(0,nd.c)((e=>{let{event:t,index:n,reason:i="auto"}=e;if(J.current=n,-1===n?H.current.removeAttribute("aria-activedescendant"):H.current.setAttribute("aria-activedescendant","".concat(z,"-option-").concat(n)),T&&T(t,-1===n?null:pe[n],i),!q.current)return;const o=q.current.querySelector('[role="option"].'.concat(r,"-focused"));o&&(o.classList.remove("".concat(r,"-focused")),o.classList.remove("".concat(r,"-focusVisible")));const s=q.current.parentElement.querySelector('[role="listbox"]');if(!s)return;if(-1===n)return void(s.scrollTop=0);const a=q.current.querySelector('[data-option-index="'.concat(n,'"]'));if(a&&(a.classList.add("".concat(r,"-focused")),"keyboard"===i&&a.classList.add("".concat(r,"-focusVisible")),s.scrollHeight>s.clientHeight&&"mouse"!==i)){const e=a,t=s.clientHeight+s.scrollTop,n=e.offsetTop+e.offsetHeight;n>t?s.scrollTop=n-s.clientHeight:e.offsetTop-e.offsetHeight*(w?1.3:0)<s.scrollTop&&(s.scrollTop=e.offsetTop-e.offsetHeight*(w?1.3:0))}})),ye=(0,nd.c)((e=>{let{event:t,diff:n,direction:r="next",reason:o="auto"}=e;if(!he)return;const s=function(e,t){if(!q.current||-1===e)return-1;let n=e;for(;;){if("next"===t&&n===pe.length||"previous"===t&&-1===n)return-1;const e=q.current.querySelector('[data-option-index="'.concat(n,'"]')),r=!m&&(!e||e.disabled||"true"===e.getAttribute("aria-disabled"));if(!(e&&!e.hasAttribute("tabindex")||r))return n;n+="next"===t?1:-1}}((()=>{const e=pe.length-1;if("reset"===n)return $;if("start"===n)return 0;if("end"===n)return e;const t=J.current+n;return t<0?-1===t&&C?-1:y&&-1!==J.current||Math.abs(n)>1?0:e:t>e?t===e+1&&C?-1:y||Math.abs(n)>1?e:0:t})(),r);if(me({index:s,reason:o,event:t}),i&&"reset"!==n)if(-1===s)H.current.value=te;else{const e=B(pe[s]);H.current.value=e;0===e.toLowerCase().indexOf(te.toLowerCase())&&te.length>0&&H.current.setSelectionRange(te.length,e.length)}})),ve=n.useCallback((()=>{if(!he)return;const e=j?Q[0]:Q;if(0!==pe.length&&null!=e){if(q.current)if(null==e)J.current>=pe.length-1?me({index:pe.length-1}):me({index:J.current});else{const t=pe[J.current];if(j&&t&&-1!==GF(Q,(e=>k(t,e))))return;const n=GF(pe,(t=>k(t,e)));-1===n?ye({diff:"reset"}):me({index:n})}}else ye({diff:"reset"})}),[pe.length,!j&&Q,_,ye,me,he,te,j]),_e=(0,nd.c)((e=>{(0,jc.c)(q,e),e&&ve()}));n.useEffect((()=>{ve()}),[ve]);const be=e=>{ae||(le(!0),ue(!0),O&&O(e))},xe=(e,t)=>{ae&&(le(!1),G&&G(e,t))},Se=(e,t,n,r)=>{if(j){if(Q.length===t.length&&Q.every(((e,n)=>e===t[n])))return}else if(Q===t)return;I&&I(e,t,n,r),ee(t)},we=n.useRef(!1),Ee=function(e,t){let n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"options",r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"selectOption",i=t;if(j){i=Array.isArray(Q)?Q.slice():[];const e=GF(i,(e=>k(t,e)));-1===e?i.push(t):"freeSolo"!==n&&(i.splice(e,1),r="removeOption")}oe(e,i),Se(e,i,r,{option:t}),f||e&&(e.ctrlKey||e.metaKey)||xe(e,r),(!0===a||"touch"===a&&we.current||"mouse"===a&&!we.current)&&H.current.blur()};const Pe=(e,t)=>{if(!j)return;""===te&&xe(e,"toggleInput");let n=K;-1===K?""===te&&"previous"===t&&(n=Q.length-1):(n+="next"===t?1:-1,n<0&&(n=0),n===Q.length&&(n=-1)),n=function(e,t){if(-1===e)return-1;let n=e;for(;;){if("next"===t&&n===Q.length||"previous"===t&&-1===n)return-1;const e=X.querySelector('[data-tag-index="'.concat(n,'"]'));if(e&&e.hasAttribute("tabindex")&&!e.disabled&&"true"!==e.getAttribute("aria-disabled"))return n;n+="next"===t?1:-1}}(n,t),Z(n),ge(n)},Ce=e=>{U.current=!0,ne(""),M&&M(e,"","clear"),Se(e,j?[]:null,"clear")},Ae=e=>t=>{if(e.onKeyDown&&e.onKeyDown(t),!t.defaultMuiPrevented&&(-1!==K&&-1===["ArrowLeft","ArrowRight"].indexOf(t.key)&&(Z(-1),ge(-1)),229!==t.which))switch(t.key){case"Home":he&&E&&(t.preventDefault(),ye({diff:"start",direction:"next",reason:"keyboard",event:t}));break;case"End":he&&E&&(t.preventDefault(),ye({diff:"end",direction:"previous",reason:"keyboard",event:t}));break;case"PageUp":t.preventDefault(),ye({diff:-5,direction:"previous",reason:"keyboard",event:t}),be(t);break;case"PageDown":t.preventDefault(),ye({diff:5,direction:"next",reason:"keyboard",event:t}),be(t);break;case"ArrowDown":t.preventDefault(),ye({diff:1,direction:"next",reason:"keyboard",event:t}),be(t);break;case"ArrowUp":t.preventDefault(),ye({diff:-1,direction:"previous",reason:"keyboard",event:t}),be(t);break;case"ArrowLeft":Pe(t,"previous");break;case"ArrowRight":Pe(t,"next");break;case"Enter":if(-1!==J.current&&he){const e=pe[J.current],n=!!x&&x(e);if(t.preventDefault(),n)return;Ee(t,e,"selectOption"),i&&H.current.setSelectionRange(H.current.value.length,H.current.value.length)}else b&&""!==te&&!1===de&&(j&&t.preventDefault(),Ee(t,te,"createOption","freeSolo"));break;case"Escape":he?(t.preventDefault(),t.stopPropagation(),xe(t,"escape")):c&&(""!==te||j&&Q.length>0)&&(t.preventDefault(),t.stopPropagation(),Ce(t));break;case"Backspace":if(j&&!L&&""===te&&Q.length>0){const e=-1===K?Q.length-1:K,n=Q.slice();n.splice(e,1),Se(t,n,"removeOption",{option:Q[e]})}break;case"Delete":if(j&&!L&&""===te&&Q.length>0&&-1!==K){const e=K,n=Q.slice();n.splice(e,1),Se(t,n,"removeOption",{option:Q[e]})}}},ke=e=>{ie(!0),D&&!U.current&&be(e)},je=e=>{t(q)?H.current.focus():(ie(!1),W.current=!0,U.current=!1,s&&-1!==J.current&&he?Ee(e,pe[J.current],"blur"):s&&b&&""!==te?Ee(e,te,"blur","freeSolo"):l&&oe(e,Q),xe(e,"blur"))},Ie=e=>{const t=e.target.value;te!==t&&(ne(t),ue(!1),M&&M(e,t,"input")),""===t?p||j||Se(e,null,"clear"):be(e)},Ge=e=>{me({event:e,index:Number(e.currentTarget.getAttribute("data-option-index")),reason:"mouse"})},Te=()=>{we.current=!0},Me=e=>{const t=Number(e.currentTarget.getAttribute("data-option-index"));Ee(e,pe[t],"selectOption"),we.current=!1},Oe=e=>t=>{const n=Q.slice();n.splice(e,1),Se(t,n,"removeOption",{option:Q[e]})},Re=e=>{ae?xe(e,"toggleInput"):be(e)},De=e=>{e.target.getAttribute("id")!==z&&e.preventDefault()},Ne=()=>{H.current.focus(),V&&W.current&&H.current.selectionEnd-H.current.selectionStart===0&&H.current.select(),W.current=!1},Le=e=>{""!==te&&ae||Re(e)};let Ve=b&&te.length>0;Ve=Ve||(j?Q.length>0:null!==Q);let Fe=pe;if(w){new Map;Fe=pe.reduce(((e,t,n)=>{const r=w(t);return e.length>0&&e[e.length-1].group===r?e[e.length-1].options.push(t):e.push({key:n,index:n,group:r,options:[t]}),e}),[])}return g&&re&&je(),{getRootProps:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return(0,d.c)({"aria-owns":fe?"".concat(z,"-listbox"):null},e,{onKeyDown:Ae(e),onMouseDown:De,onClick:Ne})},getInputLabelProps:()=>({id:"".concat(z,"-label"),htmlFor:z}),getInputProps:()=>({id:z,value:te,onBlur:je,onFocus:ke,onChange:Ie,onMouseDown:Le,"aria-activedescendant":he?"":null,"aria-autocomplete":i?"both":"list","aria-controls":fe?"".concat(z,"-listbox"):void 0,"aria-expanded":fe,autoComplete:"off",ref:H,autoCapitalize:"none",spellCheck:"false",role:"combobox"}),getClearProps:()=>({tabIndex:-1,onClick:Ce}),getPopupIndicatorProps:()=>({tabIndex:-1,onClick:Re}),getTagProps:e=>{let{index:t}=e;return(0,d.c)({key:t,"data-tag-index":t,tabIndex:-1},!L&&{onDelete:Oe(t)})},getListboxProps:()=>({role:"listbox",id:"".concat(z,"-listbox"),"aria-labelledby":"".concat(z,"-label"),ref:_e,onMouseDown:e=>{e.preventDefault()}}),getOptionProps:e=>{let{index:t,option:n}=e;const r=(j?Q:[Q]).some((e=>null!=e&&k(n,e))),i=!!x&&x(n);return{key:B(n),tabIndex:-1,role:"option",id:"".concat(z,"-option-").concat(t),onMouseOver:Ge,onClick:Me,onTouchStart:Te,"data-option-index":t,"aria-disabled":i,"aria-selected":r}},id:z,inputValue:te,value:Q,dirty:Ve,popupOpen:he,focused:re||-1!==K,anchorEl:X,setAnchorEl:Y,focusedTag:K,groupedOptions:Fe}}function RF(e){return(0,hs.c)("MuiListSubheader",e)}(0,ds.c)("MuiListSubheader",["root","colorPrimary","colorInherit","gutters","inset","sticky"]);const DF=["className","color","component","disableGutters","disableSticky","inset"],NF=(0,cs.cp)("li",{name:"MuiListSubheader",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,"default"!==n.color&&t["color".concat((0,ha.c)(n.color))],!n.disableGutters&&t.gutters,n.inset&&t.inset,!n.disableSticky&&t.sticky]}})((e=>{let{theme:t,ownerState:n}=e;return(0,d.c)({boxSizing:"border-box",lineHeight:"48px",listStyle:"none",color:(t.vars||t).palette.text.secondary,fontFamily:t.typography.fontFamily,fontWeight:t.typography.fontWeightMedium,fontSize:t.typography.pxToRem(14)},"primary"===n.color&&{color:(t.vars||t).palette.primary.main},"inherit"===n.color&&{color:"inherit"},!n.disableGutters&&{paddingLeft:16,paddingRight:16},n.inset&&{paddingLeft:72},!n.disableSticky&&{position:"sticky",top:0,zIndex:1,backgroundColor:(t.vars||t).palette.background.paper})})),LF=n.forwardRef((function(e,t){const n=(0,Oe.c)({props:e,name:"MuiListSubheader"}),{className:r,color:i="default",component:o="li",disableGutters:s=!1,disableSticky:a=!1,inset:l=!1}=n,c=(0,Tt.c)(n,DF),u=(0,d.c)({},n,{color:i,component:o,disableGutters:s,disableSticky:a,inset:l}),h=(e=>{const{classes:t,color:n,disableGutters:r,inset:i,disableSticky:o}=e,s={root:["root","default"!==n&&"color".concat((0,ha.c)(n)),!r&&"gutters",i&&"inset",!o&&"sticky"]};return(0,ls.c)(s,RF,t)})(u);return(0,Ae.jsx)(NF,(0,d.c)({as:o,className:(0,ts.c)(h.root,r),ref:t,ownerState:u},c))})),VF=LF;function FF(e){return(0,hs.c)("MuiAutocomplete",e)}const zF=(0,ds.c)("MuiAutocomplete",["root","fullWidth","focused","focusVisible","tag","tagSizeSmall","tagSizeMedium","hasPopupIcon","hasClearIcon","inputRoot","input","inputFocused","endAdornment","clearIndicator","popupIndicator","popupIndicatorOpen","popper","popperDisablePortal","paper","listbox","loading","noOptions","option","groupLabel","groupUl"]);var BF,UF;const WF=["autoComplete","autoHighlight","autoSelect","blurOnSelect","ChipProps","className","clearIcon","clearOnBlur","clearOnEscape","clearText","closeText","componentsProps","defaultValue","disableClearable","disableCloseOnSelect","disabled","disabledItemsFocusable","disableListWrap","disablePortal","filterOptions","filterSelectedOptions","forcePopupIcon","freeSolo","fullWidth","getLimitTagsText","getOptionDisabled","getOptionLabel","isOptionEqualToValue","groupBy","handleHomeEndKeys","id","includeInputInList","inputValue","limitTags","ListboxComponent","ListboxProps","loading","loadingText","multiple","noOptionsText","onChange","onClose","onHighlightChange","onInputChange","onOpen","open","openOnFocus","openText","options","PaperComponent","PopperComponent","popupIcon","readOnly","renderGroup","renderInput","renderOption","renderTags","selectOnFocus","size","slotProps","value"],HF=(0,cs.cp)("div",{name:"MuiAutocomplete",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e,{fullWidth:r,hasClearIcon:i,hasPopupIcon:o,inputFocused:s,size:a}=n;return[{["& .".concat(zF.tag)]:t.tag},{["& .".concat(zF.tag)]:t["tagSize".concat((0,ha.c)(a))]},{["& .".concat(zF.inputRoot)]:t.inputRoot},{["& .".concat(zF.input)]:t.input},{["& .".concat(zF.input)]:s&&t.inputFocused},t.root,r&&t.fullWidth,o&&t.hasPopupIcon,i&&t.hasClearIcon]}})((e=>{let{ownerState:t}=e;return(0,d.c)({["&.".concat(zF.focused," .").concat(zF.clearIndicator)]:{visibility:"visible"},"@media (pointer: fine)":{["&:hover .".concat(zF.clearIndicator)]:{visibility:"visible"}}},t.fullWidth&&{width:"100%"},{["& .".concat(zF.tag)]:(0,d.c)({margin:3,maxWidth:"calc(100% - 6px)"},"small"===t.size&&{margin:2,maxWidth:"calc(100% - 4px)"}),["& .".concat(zF.inputRoot)]:{flexWrap:"wrap",[".".concat(zF.hasPopupIcon,"&, .").concat(zF.hasClearIcon,"&")]:{paddingRight:30},[".".concat(zF.hasPopupIcon,".").concat(zF.hasClearIcon,"&")]:{paddingRight:56},["& .".concat(zF.input)]:{width:0,minWidth:30}},["& .".concat(IS.root)]:{paddingBottom:1,"& .MuiInput-input":{padding:"4px 4px 4px 0px"}},["& .".concat(IS.root,".").concat(bS.sizeSmall)]:{["& .".concat(IS.input)]:{padding:"2px 4px 3px 0"}},["& .".concat(YS.root)]:{padding:9,[".".concat(zF.hasPopupIcon,"&, .").concat(zF.hasClearIcon,"&")]:{paddingRight:39},[".".concat(zF.hasPopupIcon,".").concat(zF.hasClearIcon,"&")]:{paddingRight:65},["& .".concat(zF.input)]:{padding:"7.5px 4px 7.5px 6px"},["& .".concat(zF.endAdornment)]:{right:9}},["& .".concat(YS.root,".").concat(bS.sizeSmall)]:{paddingTop:6,paddingBottom:6,paddingLeft:6,["& .".concat(zF.input)]:{padding:"2.5px 4px 2.5px 6px"}},["& .".concat(NS.root)]:{paddingTop:19,paddingLeft:8,[".".concat(zF.hasPopupIcon,"&, .").concat(zF.hasClearIcon,"&")]:{paddingRight:39},[".".concat(zF.hasPopupIcon,".").concat(zF.hasClearIcon,"&")]:{paddingRight:65},["& .".concat(NS.input)]:{padding:"7px 4px"},["& .".concat(zF.endAdornment)]:{right:9}},["& .".concat(NS.root,".").concat(bS.sizeSmall)]:{paddingBottom:1,["& .".concat(NS.input)]:{padding:"2.5px 4px"}},["& .".concat(bS.hiddenLabel)]:{paddingTop:8},["& .".concat(zF.input)]:(0,d.c)({flexGrow:1,textOverflow:"ellipsis",opacity:0},t.inputFocused&&{opacity:1})})})),qF=(0,cs.cp)("div",{name:"MuiAutocomplete",slot:"EndAdornment",overridesResolver:(e,t)=>t.endAdornment})({position:"absolute",right:0,top:"calc(50% - 14px)"}),XF=(0,cs.cp)(Gu,{name:"MuiAutocomplete",slot:"ClearIndicator",overridesResolver:(e,t)=>t.clearIndicator})({marginRight:-2,padding:4,visibility:"hidden"}),YF=(0,cs.cp)(Gu,{name:"MuiAutocomplete",slot:"PopupIndicator",overridesResolver:(e,t)=>{let{ownerState:n}=e;return(0,d.c)({},t.popupIndicator,n.popupOpen&&t.popupIndicatorOpen)}})((e=>{let{ownerState:t}=e;return(0,d.c)({padding:2,marginRight:-2},t.popupOpen&&{transform:"rotate(180deg)"})})),KF=(0,cs.cp)(Kc,{name:"MuiAutocomplete",slot:"Popper",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{["& .".concat(zF.option)]:t.option},t.popper,n.disablePortal&&t.popperDisablePortal]}})((e=>{let{theme:t,ownerState:n}=e;return(0,d.c)({zIndex:(t.vars||t).zIndex.modal},n.disablePortal&&{position:"absolute"})})),ZF=(0,cs.cp)(Qu,{name:"MuiAutocomplete",slot:"Paper",overridesResolver:(e,t)=>t.paper})((e=>{let{theme:t}=e;return(0,d.c)({},t.typography.body1,{overflow:"auto"})})),$F=(0,cs.cp)("div",{name:"MuiAutocomplete",slot:"Loading",overridesResolver:(e,t)=>t.loading})((e=>{let{theme:t}=e;return{color:(t.vars||t).palette.text.secondary,padding:"14px 16px"}})),JF=(0,cs.cp)("div",{name:"MuiAutocomplete",slot:"NoOptions",overridesResolver:(e,t)=>t.noOptions})((e=>{let{theme:t}=e;return{color:(t.vars||t).palette.text.secondary,padding:"14px 16px"}})),QF=(0,cs.cp)("div",{name:"MuiAutocomplete",slot:"Listbox",overridesResolver:(e,t)=>t.listbox})((e=>{let{theme:t}=e;return{listStyle:"none",margin:0,padding:"8px 0",maxHeight:"40vh",overflow:"auto",position:"relative",["& .".concat(zF.option)]:{minHeight:48,display:"flex",overflow:"hidden",justifyContent:"flex-start",alignItems:"center",cursor:"pointer",paddingTop:6,boxSizing:"border-box",outline:"0",WebkitTapHighlightColor:"transparent",paddingBottom:6,paddingLeft:16,paddingRight:16,[t.breakpoints.up("sm")]:{minHeight:"auto"},["&.".concat(zF.focused)]:{backgroundColor:(t.vars||t).palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}},'&[aria-disabled="true"]':{opacity:(t.vars||t).palette.action.disabledOpacity,pointerEvents:"none"},["&.".concat(zF.focusVisible)]:{backgroundColor:(t.vars||t).palette.action.focus},'&[aria-selected="true"]':{backgroundColor:t.vars?"rgba(".concat(t.vars.palette.primary.mainChannel," / ").concat(t.vars.palette.action.selectedOpacity,")"):(0,Ps.W4)(t.palette.primary.main,t.palette.action.selectedOpacity),["&.".concat(zF.focused)]:{backgroundColor:t.vars?"rgba(".concat(t.vars.palette.primary.mainChannel," / calc(").concat(t.vars.palette.action.selectedOpacity," + ").concat(t.vars.palette.action.hoverOpacity,"))"):(0,Ps.W4)(t.palette.primary.main,t.palette.action.selectedOpacity+t.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:(t.vars||t).palette.action.selected}},["&.".concat(zF.focusVisible)]:{backgroundColor:t.vars?"rgba(".concat(t.vars.palette.primary.mainChannel," / calc(").concat(t.vars.palette.action.selectedOpacity," + ").concat(t.vars.palette.action.focusOpacity,"))"):(0,Ps.W4)(t.palette.primary.main,t.palette.action.selectedOpacity+t.palette.action.focusOpacity)}}}}})),ez=(0,cs.cp)(VF,{name:"MuiAutocomplete",slot:"GroupLabel",overridesResolver:(e,t)=>t.groupLabel})((e=>{let{theme:t}=e;return{backgroundColor:(t.vars||t).palette.background.paper,top:-8}})),tz=(0,cs.cp)("ul",{name:"MuiAutocomplete",slot:"GroupUl",overridesResolver:(e,t)=>t.groupUl})({padding:0,["& .".concat(zF.option)]:{paddingLeft:24}}),nz=n.forwardRef((function(e,t){var r,i,o,s;const a=(0,Oe.c)({props:e,name:"MuiAutocomplete"}),{autoComplete:l=!1,autoHighlight:c=!1,autoSelect:u=!1,blurOnSelect:h=!1,ChipProps:p,className:f,clearIcon:g=BF||(BF=(0,Ae.jsx)(oM,{fontSize:"small"})),clearOnBlur:m=!a.freeSolo,clearOnEscape:y=!1,clearText:v="Clear",closeText:_="Close",componentsProps:b={},defaultValue:x=(a.multiple?[]:null),disableClearable:S=!1,disableCloseOnSelect:w=!1,disabled:E=!1,disabledItemsFocusable:P=!1,disableListWrap:C=!1,disablePortal:A=!1,filterSelectedOptions:k=!1,forcePopupIcon:j="auto",freeSolo:I=!1,fullWidth:G=!1,getLimitTagsText:T=(e=>"+".concat(e)),getOptionLabel:M=(e=>{var t;return null!=(t=e.label)?t:e}),groupBy:O,handleHomeEndKeys:R=!a.freeSolo,includeInputInList:D=!1,limitTags:N=-1,ListboxComponent:L="ul",ListboxProps:V,loading:F=!1,loadingText:z="Loading\u2026",multiple:B=!1,noOptionsText:U="No options",openOnFocus:W=!1,openText:H="Open",PaperComponent:q=Qu,PopperComponent:X=Kc,popupIcon:Y=UF||(UF=(0,Ae.jsx)(Uw,{})),readOnly:K=!1,renderGroup:Z,renderInput:$,renderOption:J,renderTags:Q,selectOnFocus:ee=!a.freeSolo,size:te="medium",slotProps:ne={}}=a,re=(0,Tt.c)(a,WF),{getRootProps:ie,getInputProps:oe,getInputLabelProps:se,getPopupIndicatorProps:ae,getClearProps:le,getTagProps:ce,getListboxProps:ue,getOptionProps:de,value:he,dirty:pe,id:fe,popupOpen:ge,focused:me,focusedTag:ye,anchorEl:ve,setAnchorEl:_e,inputValue:be,groupedOptions:xe}=OF((0,d.c)({},a,{componentName:"Autocomplete"})),Se=!S&&!E&&pe&&!K,we=(!I||!0===j)&&!1!==j,Ee=(0,d.c)({},a,{disablePortal:A,focused:me,fullWidth:G,hasClearIcon:Se,hasPopupIcon:we,inputFocused:-1===ye,popupOpen:ge,size:te}),Pe=(e=>{const{classes:t,disablePortal:n,focused:r,fullWidth:i,hasClearIcon:o,hasPopupIcon:s,inputFocused:a,popupOpen:l,size:c}=e,u={root:["root",r&&"focused",i&&"fullWidth",o&&"hasClearIcon",s&&"hasPopupIcon"],inputRoot:["inputRoot"],input:["input",a&&"inputFocused"],tag:["tag","tagSize".concat((0,ha.c)(c))],endAdornment:["endAdornment"],clearIndicator:["clearIndicator"],popupIndicator:["popupIndicator",l&&"popupIndicatorOpen"],popper:["popper",n&&"popperDisablePortal"],paper:["paper"],listbox:["listbox"],loading:["loading"],noOptions:["noOptions"],option:["option"],groupLabel:["groupLabel"],groupUl:["groupUl"]};return(0,ls.c)(u,FF,t)})(Ee);let Ce;if(B&&he.length>0){const e=e=>(0,d.c)({className:Pe.tag,disabled:E},ce(e));Ce=Q?Q(he,e,Ee):he.map(((t,n)=>(0,Ae.jsx)(tA,(0,d.c)({label:M(t),size:te},e({index:n}),p))))}if(N>-1&&Array.isArray(Ce)){const e=Ce.length-N;!me&&e>0&&(Ce=Ce.splice(0,N),Ce.push((0,Ae.jsx)("span",{className:Pe.tag,children:T(e)},Ce.length)))}const ke=Z||(e=>(0,Ae.jsxs)("li",{children:[(0,Ae.jsx)(ez,{className:Pe.groupLabel,ownerState:Ee,component:"div",children:e.group}),(0,Ae.jsx)(tz,{className:Pe.groupUl,ownerState:Ee,children:e.children})]},e.key)),je=J||((e,t)=>(0,Ae.jsx)("li",(0,d.c)({},e,{children:M(t)}))),Ie=(e,t)=>{const n=de({option:e,index:t});return je((0,d.c)({},n,{className:Pe.option}),e,{selected:n["aria-selected"],inputValue:be})},Ge=null!=(r=ne.clearIndicator)?r:b.clearIndicator,Te=null!=(i=ne.paper)?i:b.paper,Me=null!=(o=ne.popper)?o:b.popper,Re=null!=(s=ne.popupIndicator)?s:b.popupIndicator;return(0,Ae.jsxs)(n.Fragment,{children:[(0,Ae.jsx)(HF,(0,d.c)({ref:t,className:(0,ts.c)(Pe.root,f),ownerState:Ee},ie(re),{children:$({id:fe,disabled:E,fullWidth:!0,size:"small"===te?"small":void 0,InputLabelProps:se(),InputProps:(0,d.c)({ref:_e,className:Pe.inputRoot,startAdornment:Ce},(Se||we)&&{endAdornment:(0,Ae.jsxs)(qF,{className:Pe.endAdornment,ownerState:Ee,children:[Se?(0,Ae.jsx)(XF,(0,d.c)({},le(),{"aria-label":v,title:v,ownerState:Ee},Ge,{className:(0,ts.c)(Pe.clearIndicator,null==Ge?void 0:Ge.className),children:g})):null,we?(0,Ae.jsx)(YF,(0,d.c)({},ae(),{disabled:E,"aria-label":ge?_:H,title:ge?_:H,ownerState:Ee},Re,{className:(0,ts.c)(Pe.popupIndicator,null==Re?void 0:Re.className),children:Y})):null]})}),inputProps:(0,d.c)({className:Pe.input,disabled:E,readOnly:K},oe())})})),ve?(0,Ae.jsx)(KF,(0,d.c)({as:X,disablePortal:A,style:{width:ve?ve.clientWidth:null},ownerState:Ee,role:"presentation",anchorEl:ve,open:ge},Me,{className:(0,ts.c)(Pe.popper,null==Me?void 0:Me.className),children:(0,Ae.jsxs)(ZF,(0,d.c)({ownerState:Ee,as:q},Te,{className:(0,ts.c)(Pe.paper,null==Te?void 0:Te.className),children:[F&&0===xe.length?(0,Ae.jsx)($F,{className:Pe.loading,ownerState:Ee,children:z}):null,0!==xe.length||I||F?null:(0,Ae.jsx)(JF,{className:Pe.noOptions,ownerState:Ee,role:"presentation",onMouseDown:e=>{e.preventDefault()},children:U}),xe.length>0?(0,Ae.jsx)(QF,(0,d.c)({as:L,className:Pe.listbox,ownerState:Ee},ue(),V,{children:xe.map(((e,t)=>O?ke({key:e.key,group:e.group,children:e.options.map(((t,n)=>Ie(t,e.index+n)))}):Ie(e,t)))})):null]}))})):null]})})),rz=nz,iz=Zo()(((e,t)=>({root:{justifyContent:t?"end":"initial"},selectContainer:{width:"100%",maxWidth:"15rem"}}))),oz={value:"All",label:"All companies"},sz=e=>{const{pushRight:t=!1,onCompanyFilterSelected:r}=e,{classes:i}=iz(t),o=b(Of),[s,a]=(0,n.useState)(oz),l=(0,n.useMemo)((()=>{const e=Vy(o.all,"company").map((e=>({value:e,label:e})));return e.unshift(oz),e}),[o.all]);return(0,n.useEffect)((()=>{r(s.value)}),[r,s]),(0,Ae.jsx)(ws,{container:!0,className:i.root,children:(0,Ae.jsx)(ws,{item:!0,className:i.selectContainer,children:(0,Ae.jsx)(rz,{id:"select-company-filter",size:Wy()?"small":"medium",options:l,value:s,placeholder:"Company",onChange:(e,t)=>{a(null!==t&&void 0!==t?t:oz)},renderInput:e=>(0,Ae.jsx)(iE,{...e,size:"small",label:"Company"})})})})},az=Zo()((()=>({step:{fontSize:"1.4rem",color:Gp,padding:"1.3rem 0.6rem 1rem 0rem",display:"flex",alignItems:"center"},topIcon:{color:jp,fontSize:"1.5rem",cursor:"pointer"},buttonTopIcon:{paddingLeft:0},column:{paddingLeft:"1.3rem",paddingRight:"1.3rem"},search:{top:"0.2rem",padding:"0.4rem ",float:"left",background:"white",width:"25rem",zIndex:5,borderRadius:"0.2rem",border:"1px solid lightgrey",marginLeft:"0.3rem"},cards:{overflowY:"auto",paddingBottom:"0.8rem"},report:{float:"right",marginTop:"-3.5rem",fontSize:"1rem",padding:"0.6rem 0.9rem",border:"1px solid #47A5F8",borderRadius:"0.6rem",cursor:"pointer",color:jp,textTransform:"none"},countInspections:{paddingLeft:"0.8rem",fontSize:"0.9rem",color:Gp}}))),lz=[{label:"Planned",status:"planned"},{label:"Upload",status:"inspected"},{label:"Annotate",status:"uploaded"},{label:"Analyze",status:"annotated"}],cz=()=>{const{classes:e}=az(),[t,r]=(0,n.useState)(!1),[i,o]=(0,n.useState)(!!Wy()),s=b(pg),[a,l]=(0,n.useState)(s),[c,u]=(0,n.useState)({}),[d,h]=(0,n.useState)(""),p=b(Of),[f,g]=(0,n.useState)(""),m=on(),y=async e=>{let t=e.filter((e=>e.status!==OC.ANALYZED)).sort(((e,t)=>e.status>t.status?1:e.status<t.status||e.status===OC.PLANNED&&e.plannedDate<t.plannedDate?-1:e.status===OC.PLANNED&&e.plannedDate>t.plannedDate||e.plannedDate<t.plannedDate?1:e.plannedDate>t.plannedDate?-1:1));d&&(t=t.filter((e=>Dy(e.assetName,d)||Dy(e.subAssetName,d)||Dy(e.notes,d)||Dy(e.legislation,d)||Dy(e.status,d)||Dy(e.type,d)||Dy(Iy(e.plannedDate),d)))),t=f&&"All"!==f?t.filter((e=>{const t=p.all.filter((e=>e.company===f)).map((e=>e.id));return t.includes(e.assetId)})):t;const n=(0,Qo.groupBy)(t,"status");for(const r in n){const e=(0,Qo.groupBy)(n[r],"assetName");for(const t in e){const n=e[t].sort(((e,t)=>e.status>t.status?1:e.status<t.status||"planned"===e.status&&e.plannedDate<t.plannedDate?-1:"planned"===e.status&&e.plannedDate>t.plannedDate||e.plannedDate<t.plannedDate?1:e.plannedDate>t.plannedDate?-1:Ay(e,t,"subAssetName","asc")));e[t]=n}n[r]=e}n&&u(n)};(0,n.useEffect)((()=>{(async()=>{const e=await GA();r(!0),l(e);const t=new URLSearchParams(window.location.search).get("status");t&&h(t)})(),Eo()&&!p.all.length&&IT("wind")}),[]),(0,n.useEffect)((()=>{t&&(y(s),l(s))}),[s,d,t,f]);const v=async e=>{if(null!==c&&void 0!==c&&c.planned[e]){const t=s.filter((t=>t.assetName!==e));y(t);const n=c.planned[e].map((e=>e.id));await(async e=>{const t=new Headers;t.append("Content-Type","application/json");const n={method:"POST",headers:t,body:JSON.stringify(e)};await Ey("/inspections/deleteInspections",n),await GA(),Sy.dispatch(Yf("")),Sy.dispatch(Xf(""))})(n)}},_=e=>{const t=new Date;return t.setHours(0,0,0,0),new Date(e).getTime()<t.getTime()},x=(e,t)=>{switch(t){case OC.PLANNED:return e.plannedDate;case OC.INSPECTED:return e.photoCount?"".concat(Math.floor(100*e.stats.uploadedCount/e.photoCount),"%"):"0%";case OC.UPLOADED:return e.photoCount?"".concat(((e,t,n)=>{let r=("Solar"===e?2*t:t)/n;return r=r>1?1:r,Math.floor(100*r)})(e.type,e.stats.viewedCount,e.photoCount),"%"):"0%";case OC.ANNOTATED:return e.defectsCount?e.defectsCount:0}},S=(e,t)=>{const n=[];return e.forEach((e=>{const{type:r,weather:i,legislation:o,subAssetName:a,id:l,plannedDate:c,inspectedDate:u,assetId:d,stats:h,notes:p}=e;n.push({label:a,type:r,id:l,weather:t===OC.PLANNED?i:"",legislation:t===OC.PLANNED?o:"",info:x(e,t),onClick:e=>qy(e,"/inspections/"+l,m),deleteItem:t===OC.PLANNED?()=>(async e=>{const t=s.filter((t=>t.id!==e));y(t),await TA(e)})(l):null,overdue:t===OC.PLANNED&&_(c),plannedDate:c,inspectedDate:u,assetId:d,notes:p,flaggedCount:h.flaggedCount,inspect:e})})),n},w=e=>{let t=0;return e.forEach((e=>{e&&(t+=e)})),t},E=e=>{if(e.length){const t=[];if(e.forEach((e=>{const n=e.split("%");2===n.length&&t.push(parseInt(n[0],10))})),t&&t.length)return Math.ceil(w(t)/t.length)}return 0},P=(e,t)=>{const n=e.map((e=>e.info));return"planned"===t&&n.length?n[0]:""},C=(e,t)=>{const n=e.map((e=>e.info));switch(t){case"planned":return"".concat(n.length?n[0]:"");case"inspected":return"".concat(E(n),"% uploaded");case"uploaded":return"".concat(E(n),"% viewed");case"annotated":if(n.length){const e=n.map((e=>parseInt(e,10))),t=w(e);return t+(t+t>1?" defects":" defect")}return"0 defects"}},A=async(e,t,n)=>{let r=!1;if(e)if(n){if(r=await OA(e,n.id),r){const t=JSON.parse(JSON.stringify(a)),r=t.findIndex((e=>e.id===n.id));-1!==r&&(t[r].plannedDate=e.toISOString().split("T")[0],l(t),y(t))}}else if(r=await(async(e,t)=>{const n=new Headers;n.append("Content-Type","application/json");const r={method:"POST",headers:n,body:JSON.stringify({assetId:t,date:e})};return 200===(await Ey("/inspections/".concat(t,"/updateAssetPlannedDate"),r)).status})(e,t),r){const n=JSON.parse(JSON.stringify(a));n.forEach((n=>{n.assetId===t&&"planned"===n.status&&(n.plannedDate=e.toISOString().split("T")[0])})),l(n),y(n)}},k=e=>{let t=0;return c[e]&&c[e]&&Object.keys(c[e]).forEach((n=>{t+=c[e][n].length})),t?"".concat(t," items"):""};Vy(p.all,"company").unshift("All");return(0,Ae.jsxs)(PF,{pageTitle:"Ongoing Inspections",left:(0,Ae.jsx)(CF,{title:"Ongoing Inspections"}),center:(0,Ae.jsx)(jF,{responsive:!0,btnVersion:Wy()}),right:(0,Ae.jsxs)(ws,{container:!0,wrap:"nowrap",justifyContent:"end",alignItems:"center",columnGap:"1rem",children:[Eo()&&(0,Ae.jsx)(ws,{item:!0,flex:1,children:(0,Ae.jsx)(sz,{pushRight:!0,onCompanyFilterSelected:e=>{g(e||"")}})}),!Wy()&&(0,Ae.jsx)(ws,{item:!0,children:(0,Ae.jsx)(EF,{value:!i,onChange:()=>o(!i),button1Label:"Status",button2Label:"List"})})]}),children:[!i&&(0,Ae.jsxs)(Ae.Fragment,{children:[(0,Ae.jsx)(ws,{container:!0,direction:"row",justifyContent:"space-evenly",children:lz.map(((t,n)=>(0,Ae.jsx)(Ae.Fragment,{children:(0,Ae.jsxs)(ws,{item:!0,xs:3,className:e.column,children:[(0,Ae.jsxs)("div",{className:e.step,children:[t.label,(0,Ae.jsx)("span",{className:e.countInspections,children:k(t.status)}),t.status===OC.PLANNED&&(0,Ae.jsx)(Sa,{className:e.buttonTopIcon,children:(0,Ae.jsx)(Na,{className:e.topIcon,onClick:e=>qy(e,"/inspections/new",m)})}),t.status===OC.INSPECTED&&(0,Ae.jsx)(Sa,{className:e.buttonTopIcon,children:(0,Ae.jsx)(Oa,{className:e.topIcon,onClick:e=>qy(e,"/uploader",m)})})]}),n===lz.length-1&&(0,Ae.jsx)(Sa,{className:e.report,onClick:e=>qy(e,"/inspections/reports",m),children:"> Reports"})]},n)})))}),!t&&(0,Ae.jsx)($y,{topMargin:"40px"}),t&&(0,Ae.jsx)(ws,{container:!0,direction:"row",justifyContent:"space-evenly",className:e.cards,children:lz.map(((t,n)=>(0,Ae.jsx)(Ae.Fragment,{children:(0,Ae.jsx)(ws,{item:!0,xs:3,className:e.column,children:c[t.status]&&Object.keys(c[t.status]).map(((e,n)=>{const r=S(c[t.status][e],t.status);return(0,Ae.jsx)(bA,{index:n,header:{title:e,deleteAll:"planned"===t.status?()=>v(e):void 0},content:r,status:t.status,manageChangeDate:A,contenttitle:C(r,t.status),plannedDate:P(r,t.status)},n)}))},n)})))})]}),i&&(0,Ae.jsx)(uF,{reports:!1,searchValue:d})]})};var uz,dz,hz,pz,fz,gz,mz,yz,vz,_z,bz,xz,Sz,wz,Ez,Pz,Cz,Az,kz,jz,Iz,Gz,Tz,Mz,Oz,Rz,Dz,Nz,Lz,Vz,Fz,zz,Bz,Uz;function Wz(){return Wz=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Wz.apply(this,arguments)}function Hz(e,t){let{title:r,titleId:i,...o}=e;return n.createElement("svg",Wz({width:1e3,height:712,viewBox:"0 0 1000 712",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:t,"aria-labelledby":i},o),r?n.createElement("title",{id:i},r):null,uz||(uz=n.createElement("path",{d:"M25.1179 628.029H29.9795V676.678H25.1179V628.029Z",fill:"#535353"})),dz||(dz=n.createElement("path",{d:"M40.3972 640.695H45.0273V647.144C46.8794 644.675 48.9298 642.834 51.1787 641.621C53.4276 640.387 55.875 639.769 58.5207 639.769C61.2106 639.769 63.5918 640.453 65.6643 641.82C67.7589 643.187 69.3022 645.028 70.2944 647.343C71.2866 649.658 71.7826 653.263 71.7826 658.157V676.678H67.1856V659.513C67.1856 655.368 67.0092 652.601 66.6565 651.212C66.1053 648.831 65.069 647.045 63.5477 645.854C62.0264 644.642 60.042 644.035 57.5947 644.035C54.7946 644.035 52.2811 644.962 50.0543 646.814C47.8495 648.666 46.3943 650.959 45.6888 653.693C45.2478 655.478 45.0273 658.742 45.0273 663.482V676.678H40.3972V640.695Z",fill:"#535353"})),hz||(hz=n.createElement("path",{d:"M117.654 626.805V676.678H113.09V670.493C111.149 672.852 108.967 674.627 106.541 675.818C104.138 677.008 101.503 677.604 98.6372 677.604C93.5441 677.604 89.1896 675.763 85.5737 672.081C81.9799 668.377 80.1829 663.879 80.1829 658.587C80.1829 653.406 82.0019 648.974 85.6398 645.292C89.2778 641.61 93.6543 639.769 98.7695 639.769C101.724 639.769 104.392 640.398 106.773 641.654C109.176 642.911 111.282 644.796 113.09 647.31V626.805H117.654ZM99.1333 644.234C96.5536 644.234 94.1724 644.873 91.9897 646.152C89.8069 647.409 88.0651 649.184 86.7643 651.477C85.4855 653.77 84.8461 656.195 84.8461 658.753C84.8461 661.288 85.4965 663.713 86.7974 666.028C88.0982 668.343 89.84 670.151 92.0228 671.452C94.2276 672.731 96.5867 673.37 99.1002 673.37C101.636 673.37 104.039 672.731 106.31 671.452C108.581 670.173 110.323 668.443 111.535 666.26C112.77 664.077 113.387 661.619 113.387 658.885C113.387 654.718 112.009 651.234 109.253 648.434C106.519 645.634 103.146 644.234 99.1333 644.234Z",fill:"#535353"})),pz||(pz=n.createElement("path",{d:"M127.575 640.695H132.238V657.496C132.238 661.597 132.459 664.419 132.9 665.962C133.561 668.167 134.818 669.909 136.67 671.188C138.544 672.466 140.771 673.106 143.351 673.106C145.93 673.106 148.113 672.489 149.899 671.254C151.707 669.997 152.953 668.354 153.636 666.326C154.099 664.937 154.331 661.994 154.331 657.496V640.695H159.06V658.356C159.06 663.317 158.476 667.054 157.307 669.567C156.161 672.081 154.419 674.054 152.082 675.487C149.767 676.898 146.856 677.604 143.351 677.604C139.845 677.604 136.913 676.898 134.553 675.487C132.216 674.054 130.464 672.07 129.295 669.534C128.148 666.976 127.575 663.14 127.575 658.025V640.695Z",fill:"#535353"})),fz||(fz=n.createElement("path",{d:"M187.469 644.631L184.492 647.706C182.023 645.303 179.609 644.102 177.25 644.102C175.75 644.102 174.46 644.598 173.38 645.59C172.322 646.582 171.793 647.74 171.793 649.062C171.793 650.231 172.234 651.344 173.116 652.403C173.997 653.483 175.849 654.751 178.672 656.206C182.111 657.992 184.448 659.712 185.683 661.365C186.896 663.041 187.502 664.926 187.502 667.021C187.502 669.975 186.466 672.477 184.393 674.528C182.321 676.578 179.73 677.604 176.621 677.604C174.549 677.604 172.564 677.152 170.668 676.248C168.794 675.344 167.24 674.098 166.005 672.511L168.915 669.203C171.275 671.871 173.777 673.205 176.423 673.205C178.275 673.205 179.851 672.61 181.152 671.419C182.453 670.229 183.103 668.829 183.103 667.219C183.103 665.896 182.673 664.717 181.813 663.68C180.954 662.666 179.013 661.387 175.993 659.844C172.752 658.168 170.547 656.515 169.378 654.883C168.21 653.252 167.626 651.389 167.626 649.294C167.626 646.56 168.552 644.289 170.404 642.481C172.278 640.673 174.637 639.769 177.481 639.769C180.788 639.769 184.117 641.39 187.469 644.631Z",fill:"#535353"})),gz||(gz=n.createElement("path",{d:"M199.739 627.334H204.402V640.695H211.744V644.664H204.402V676.678H199.739V644.664H193.422V640.695H199.739V627.334Z",fill:"#535353"})),mz||(mz=n.createElement("path",{d:"M216.903 640.695H221.632V645.954C223.043 643.881 224.532 642.338 226.097 641.324C227.662 640.287 229.294 639.769 230.992 639.769C232.27 639.769 233.637 640.177 235.093 640.993L232.678 644.895C231.708 644.476 230.892 644.267 230.231 644.267C228.688 644.267 227.199 644.906 225.766 646.185C224.333 647.442 223.242 649.404 222.492 652.072C221.919 654.122 221.632 658.268 221.632 664.507V676.678H216.903V640.695Z",fill:"#535353"})),yz||(yz=n.createElement("path",{d:"M240.649 625.879C241.707 625.879 242.611 626.254 243.361 627.003C244.11 627.753 244.485 628.657 244.485 629.715C244.485 630.752 244.11 631.644 243.361 632.394C242.611 633.144 241.707 633.519 240.649 633.519C239.612 633.519 238.72 633.144 237.97 632.394C237.22 631.644 236.845 630.752 236.845 629.715C236.845 628.657 237.22 627.753 237.97 627.003C238.72 626.254 239.612 625.879 240.649 625.879ZM238.334 640.695H242.997V676.678H238.334V640.695Z",fill:"#535353"})),vz||(vz=n.createElement("path",{d:"M288.438 640.695V676.678H283.874V670.493C281.934 672.852 279.751 674.627 277.326 675.818C274.922 677.008 272.288 677.604 269.421 677.604C264.328 677.604 259.974 675.763 256.358 672.081C252.764 668.377 250.967 663.879 250.967 658.587C250.967 653.406 252.786 648.974 256.424 645.292C260.062 641.61 264.439 639.769 269.554 639.769C272.508 639.769 275.176 640.398 277.557 641.654C279.96 642.911 282.066 644.796 283.874 647.31V640.695H288.438ZM269.918 644.234C267.338 644.234 264.957 644.873 262.774 646.152C260.591 647.409 258.849 649.184 257.549 651.477C256.27 653.77 255.63 656.195 255.63 658.753C255.63 661.288 256.281 663.713 257.582 666.028C258.882 668.343 260.624 670.151 262.807 671.452C265.012 672.731 267.371 673.37 269.884 673.37C272.42 673.37 274.823 672.731 277.094 671.452C279.365 670.173 281.107 668.443 282.32 666.26C283.554 664.077 284.172 661.619 284.172 658.885C284.172 654.718 282.794 651.234 280.038 648.434C277.304 645.634 273.93 644.234 269.918 644.234Z",fill:"#535353"})),_z||(_z=n.createElement("path",{d:"M298.194 626.805H302.824V676.678H298.194V626.805Z",fill:"#535353"})),bz||(bz=n.createElement("path",{d:"M332.854 625.879C333.912 625.879 334.816 626.254 335.566 627.003C336.315 627.753 336.69 628.657 336.69 629.715C336.69 630.752 336.315 631.644 335.566 632.394C334.816 633.144 333.912 633.519 332.854 633.519C331.817 633.519 330.924 633.144 330.175 632.394C329.425 631.644 329.05 630.752 329.05 629.715C329.05 628.657 329.425 627.753 330.175 627.003C330.924 626.254 331.817 625.879 332.854 625.879ZM330.539 640.695H335.202V676.678H330.539V640.695Z",fill:"#535353"})),xz||(xz=n.createElement("path",{d:"M344.793 640.695H349.423V647.144C351.275 644.675 353.325 642.834 355.574 641.621C357.823 640.387 360.27 639.769 362.916 639.769C365.606 639.769 367.987 640.453 370.06 641.82C372.154 643.187 373.698 645.028 374.69 647.343C375.682 649.658 376.178 653.263 376.178 658.157V676.678H371.581V659.513C371.581 655.368 371.405 652.601 371.052 651.212C370.501 648.831 369.465 647.045 367.943 645.854C366.422 644.642 364.438 644.035 361.99 644.035C359.19 644.035 356.677 644.962 354.45 646.814C352.245 648.666 350.79 650.959 350.084 653.693C349.643 655.478 349.423 658.742 349.423 663.482V676.678H344.793V640.695Z",fill:"#535353"})),Sz||(Sz=n.createElement("path",{d:"M404.223 644.631L401.247 647.706C398.777 645.303 396.363 644.102 394.004 644.102C392.505 644.102 391.215 644.598 390.135 645.59C389.076 646.582 388.547 647.74 388.547 649.062C388.547 650.231 388.988 651.344 389.87 652.403C390.752 653.483 392.604 654.751 395.426 656.206C398.866 657.992 401.203 659.712 402.437 661.365C403.65 663.041 404.256 664.926 404.256 667.021C404.256 669.975 403.22 672.477 401.148 674.528C399.075 676.578 396.484 677.604 393.376 677.604C391.303 677.604 389.319 677.152 387.423 676.248C385.549 675.344 383.994 674.098 382.759 672.511L385.67 669.203C388.029 671.871 390.531 673.205 393.177 673.205C395.029 673.205 396.606 672.61 397.906 671.419C399.207 670.229 399.858 668.829 399.858 667.219C399.858 665.896 399.428 664.717 398.568 663.68C397.708 662.666 395.768 661.387 392.747 659.844C389.506 658.168 387.301 656.515 386.133 654.883C384.964 653.252 384.38 651.389 384.38 649.294C384.38 646.56 385.306 644.289 387.158 642.481C389.032 640.673 391.391 639.769 394.236 639.769C397.543 639.769 400.872 641.39 404.223 644.631Z",fill:"#535353"})),wz||(wz=n.createElement("path",{d:"M412.524 640.695H417.121V647.31C418.951 644.796 421.057 642.911 423.438 641.654C425.819 640.398 428.476 639.769 431.409 639.769C436.524 639.769 440.9 641.61 444.538 645.292C448.176 648.974 449.995 653.406 449.995 658.587C449.995 663.879 448.187 668.377 444.571 672.081C440.977 675.763 436.634 677.604 431.541 677.604C428.675 677.604 426.04 677.008 423.637 675.818C421.233 674.627 419.062 672.852 417.121 670.493V689.84H412.524V640.695ZM431.045 644.234C427.032 644.234 423.648 645.634 420.892 648.434C418.158 651.234 416.791 654.718 416.791 658.885C416.791 661.619 417.397 664.077 418.61 666.26C419.844 668.443 421.597 670.173 423.868 671.452C426.161 672.731 428.575 673.37 431.111 673.37C433.602 673.37 435.939 672.731 438.122 671.452C440.327 670.151 442.08 668.343 443.381 666.028C444.681 663.713 445.332 661.288 445.332 658.753C445.332 656.195 444.681 653.77 443.381 651.477C442.102 649.184 440.371 647.409 438.188 646.152C436.006 644.873 433.624 644.234 431.045 644.234Z",fill:"#535353"})),Ez||(Ez=n.createElement("path",{d:"M488.987 664.739L492.89 666.789C491.611 669.303 490.134 671.331 488.458 672.874C486.782 674.418 484.897 675.597 482.803 676.413C480.708 677.207 478.338 677.604 475.692 677.604C469.827 677.604 465.241 675.685 461.934 671.849C458.627 667.991 456.973 663.636 456.973 658.786C456.973 654.222 458.373 650.154 461.173 646.582C464.723 642.04 469.474 639.769 475.427 639.769C481.557 639.769 486.452 642.095 490.111 646.747C492.713 650.033 494.036 654.133 494.08 659.05H461.736C461.824 663.239 463.158 666.679 465.737 669.369C468.317 672.037 471.503 673.37 475.295 673.37C477.125 673.37 478.9 673.051 480.62 672.411C482.362 671.772 483.839 670.923 485.051 669.865C486.264 668.806 487.576 667.098 488.987 664.739ZM488.987 655.048C488.37 652.579 487.466 650.606 486.275 649.129C485.107 647.651 483.552 646.461 481.612 645.557C479.672 644.653 477.632 644.201 475.494 644.201C471.966 644.201 468.934 645.336 466.399 647.607C464.547 649.261 463.147 651.741 462.199 655.048H488.987Z",fill:"#535353"})),Pz||(Pz=n.createElement("path",{d:"M537.669 648.169L533.998 650.451C530.823 646.24 526.491 644.135 521.001 644.135C516.613 644.135 512.964 645.546 510.054 648.368C507.166 651.19 505.721 654.619 505.721 658.653C505.721 661.277 506.383 663.746 507.706 666.061C509.051 668.377 510.881 670.173 513.196 671.452C515.533 672.731 518.146 673.37 521.034 673.37C526.325 673.37 530.647 671.265 533.998 667.054L537.669 669.468C535.949 672.048 533.634 674.054 530.724 675.487C527.836 676.898 524.54 677.604 520.835 677.604C515.147 677.604 510.429 675.796 506.681 672.18C502.932 668.564 501.058 664.165 501.058 658.984C501.058 655.5 501.929 652.27 503.671 649.294C505.435 646.295 507.849 643.958 510.914 642.283C513.979 640.607 517.407 639.769 521.199 639.769C523.58 639.769 525.873 640.133 528.078 640.861C530.305 641.588 532.19 642.536 533.734 643.705C535.277 644.873 536.589 646.362 537.669 648.169Z",fill:"#535353"})),Cz||(Cz=n.createElement("path",{d:"M550.633 627.334H555.297V640.695H562.639V644.664H555.297V676.678H550.633V644.664H544.317V640.695H550.633V627.334Z",fill:"#535353"})),Az||(Az=n.createElement("path",{d:"M571.171 625.879C572.229 625.879 573.133 626.254 573.883 627.003C574.633 627.753 575.008 628.657 575.008 629.715C575.008 630.752 574.633 631.644 573.883 632.394C573.133 633.144 572.229 633.519 571.171 633.519C570.135 633.519 569.242 633.144 568.492 632.394C567.743 631.644 567.368 630.752 567.368 629.715C567.368 628.657 567.743 627.753 568.492 627.003C569.242 626.254 570.135 625.879 571.171 625.879ZM568.856 640.695H573.519V676.678H568.856V640.695Z",fill:"#535353"})),kz||(kz=n.createElement("path",{d:"M600.142 639.769C605.676 639.769 610.262 641.776 613.9 645.788C617.208 649.448 618.861 653.781 618.861 658.786C618.861 663.813 617.108 668.211 613.603 671.981C610.119 675.73 605.632 677.604 600.142 677.604C594.63 677.604 590.121 675.73 586.616 671.981C583.132 668.211 581.39 663.813 581.39 658.786C581.39 653.803 583.044 649.481 586.351 645.821C589.989 641.787 594.586 639.769 600.142 639.769ZM600.142 644.3C596.306 644.3 593.01 645.722 590.254 648.566C587.498 651.411 586.12 654.85 586.12 658.885C586.12 661.487 586.748 663.912 588.005 666.161C589.262 668.41 590.959 670.151 593.098 671.386C595.237 672.599 597.585 673.205 600.142 673.205C602.7 673.205 605.048 672.599 607.187 671.386C609.325 670.151 611.023 668.41 612.28 666.161C613.536 663.912 614.165 661.487 614.165 658.885C614.165 654.85 612.776 651.411 609.998 648.566C607.242 645.722 603.957 644.3 600.142 644.3Z",fill:"#535353"})),jz||(jz=n.createElement("path",{d:"M627.493 640.695H632.123V647.144C633.975 644.675 636.026 642.834 638.274 641.621C640.523 640.387 642.971 639.769 645.616 639.769C648.306 639.769 650.688 640.453 652.76 641.82C654.855 643.187 656.398 645.028 657.39 647.343C658.382 649.658 658.878 653.263 658.878 658.157V676.678H654.281V659.513C654.281 655.368 654.105 652.601 653.752 651.212C653.201 648.831 652.165 647.045 650.643 645.854C649.122 644.642 647.138 644.035 644.69 644.035C641.89 644.035 639.377 644.962 637.15 646.814C634.945 648.666 633.49 650.959 632.784 653.693C632.344 655.478 632.123 658.742 632.123 663.482V676.678H627.493V640.695Z",fill:"#535353"})),Iz||(Iz=n.createElement("path",{d:"M687.916 676.678V626.805H692.513V646.88C694.453 644.498 696.625 642.724 699.028 641.555C701.431 640.364 704.066 639.769 706.932 639.769C712.025 639.769 716.369 641.621 719.963 645.325C723.578 649.007 725.386 653.483 725.386 658.753C725.386 663.956 723.567 668.399 719.929 672.081C716.292 675.763 711.915 677.604 706.8 677.604C703.867 677.604 701.211 676.975 698.829 675.719C696.448 674.462 694.343 672.577 692.513 670.063V676.678H687.916ZM706.436 673.139C709.016 673.139 711.397 672.511 713.58 671.254C715.762 669.975 717.493 668.189 718.772 665.896C720.073 663.603 720.723 661.178 720.723 658.62C720.723 656.063 720.073 653.626 718.772 651.311C717.471 648.996 715.718 647.199 713.513 645.921C711.331 644.62 708.994 643.969 706.502 643.969C703.967 643.969 701.552 644.62 699.259 645.921C696.988 647.199 695.236 648.93 694.001 651.113C692.788 653.296 692.182 655.754 692.182 658.488C692.182 662.655 693.549 666.139 696.283 668.939C699.039 671.739 702.423 673.139 706.436 673.139Z",fill:"#535353"})),Gz||(Gz=n.createElement("path",{d:"M729.983 640.695H734.878L747.247 668.41L759.252 640.695H764.18L742.716 689.84H737.821L744.767 673.966L729.983 640.695Z",fill:"#535353"})),Tz||(Tz=n.createElement("path",{d:"M824.867 626.805V676.678H820.303V670.493C818.363 672.852 816.18 674.627 813.755 675.818C811.352 677.008 808.717 677.604 805.851 677.604C800.758 677.604 796.403 675.763 792.787 672.081C789.193 668.377 787.396 663.879 787.396 658.587C787.396 653.406 789.215 648.974 792.853 645.292C796.491 641.61 800.868 639.769 805.983 639.769C808.937 639.769 811.605 640.398 813.986 641.654C816.39 642.911 818.495 644.796 820.303 647.31V626.805H824.867ZM806.347 644.234C803.767 644.234 801.386 644.873 799.203 646.152C797.02 647.409 795.279 649.184 793.978 651.477C792.699 653.77 792.06 656.195 792.06 658.753C792.06 661.288 792.71 663.713 794.011 666.028C795.312 668.343 797.054 670.151 799.236 671.452C801.441 672.731 803.8 673.37 806.314 673.37C808.849 673.37 811.253 672.731 813.523 671.452C815.794 670.173 817.536 668.443 818.749 666.26C819.984 664.077 820.601 661.619 820.601 658.885C820.601 654.718 819.223 651.234 816.467 648.434C813.733 645.634 810.36 644.234 806.347 644.234Z",fill:"#535353"})),Mz||(Mz=n.createElement("path",{d:"M833.631 640.695H838.361V645.954C839.772 643.881 841.26 642.338 842.825 641.324C844.391 640.287 846.022 639.769 847.72 639.769C848.999 639.769 850.366 640.177 851.821 640.993L849.407 644.895C848.437 644.476 847.621 644.267 846.959 644.267C845.416 644.267 843.928 644.906 842.495 646.185C841.061 647.442 839.97 649.404 839.22 652.072C838.647 654.122 838.361 658.268 838.361 664.507V676.678H833.631V640.695Z",fill:"#535353"})),Oz||(Oz=n.createElement("path",{d:"M872.524 639.769C878.058 639.769 882.644 641.776 886.282 645.788C889.589 649.448 891.243 653.781 891.243 658.786C891.243 663.813 889.49 668.211 885.984 671.981C882.501 675.73 878.014 677.604 872.524 677.604C867.012 677.604 862.503 675.73 858.998 671.981C855.514 668.211 853.772 663.813 853.772 658.786C853.772 653.803 855.426 649.481 858.733 645.821C862.371 641.787 866.968 639.769 872.524 639.769ZM872.524 644.3C868.688 644.3 865.391 645.722 862.635 648.566C859.879 651.411 858.501 654.85 858.501 658.885C858.501 661.487 859.13 663.912 860.387 666.161C861.643 668.41 863.341 670.151 865.48 671.386C867.618 672.599 869.966 673.205 872.524 673.205C875.082 673.205 877.43 672.599 879.568 671.386C881.707 670.151 883.405 668.41 884.661 666.161C885.918 663.912 886.547 661.487 886.547 658.885C886.547 654.85 885.158 651.411 882.38 648.566C879.624 645.722 876.338 644.3 872.524 644.3Z",fill:"#535353"})),Rz||(Rz=n.createElement("path",{d:"M899.875 640.695H904.505V647.144C906.357 644.675 908.407 642.834 910.656 641.621C912.905 640.387 915.352 639.769 917.998 639.769C920.688 639.769 923.069 640.453 925.142 641.82C927.236 643.187 928.78 645.028 929.772 647.343C930.764 649.658 931.26 653.263 931.26 658.157V676.678H926.663V659.513C926.663 655.368 926.487 652.601 926.134 651.212C925.583 648.831 924.546 647.045 923.025 645.854C921.504 644.642 919.519 644.035 917.072 644.035C914.272 644.035 911.759 644.962 909.532 646.814C907.327 648.666 905.872 650.959 905.166 653.693C904.725 655.478 904.505 658.742 904.505 663.482V676.678H899.875V640.695Z",fill:"#535353"})),Dz||(Dz=n.createElement("path",{d:"M971.509 664.739L975.411 666.789C974.133 669.303 972.655 671.331 970.98 672.874C969.304 674.418 967.419 675.597 965.324 676.413C963.23 677.207 960.86 677.604 958.214 677.604C952.349 677.604 947.763 675.685 944.456 671.849C941.149 667.991 939.495 663.636 939.495 658.786C939.495 654.222 940.895 650.154 943.695 646.582C947.245 642.04 951.996 639.769 957.949 639.769C964.079 639.769 968.973 642.095 972.633 646.747C975.235 650.033 976.558 654.133 976.602 659.05H944.257C944.346 663.239 945.68 666.679 948.259 669.369C950.839 672.037 954.025 673.37 957.817 673.37C959.647 673.37 961.422 673.051 963.142 672.411C964.883 671.772 966.361 670.923 967.573 669.865C968.786 668.806 970.098 667.098 971.509 664.739ZM971.509 655.048C970.891 652.579 969.987 650.606 968.797 649.129C967.628 647.651 966.074 646.461 964.134 645.557C962.193 644.653 960.154 644.201 958.015 644.201C954.488 644.201 951.456 645.336 948.921 647.607C947.069 649.261 945.668 651.741 944.72 655.048H971.509Z",fill:"#535353"})),Nz||(Nz=n.createElement("path",{d:"M478.934 327.059C484.282 327.059 488.851 328.954 492.639 332.742C496.428 336.531 498.322 341.099 498.322 346.448C498.322 351.685 496.428 356.198 492.639 359.987C488.851 363.775 484.282 365.669 478.934 365.669C473.696 365.669 469.183 363.775 465.395 359.987C461.606 356.198 459.712 351.685 459.712 346.448C459.712 341.099 461.606 336.531 465.395 332.742C469.183 328.954 473.696 327.059 478.934 327.059ZM467.233 401.94H490.801V583.792H467.233V401.94Z",fill:"#00A6FF"})),Lz||(Lz=n.createElement("path",{d:"M630.7 421.83L615.657 437.374C603.177 425.228 590.975 419.155 579.052 419.155C571.475 419.155 564.957 421.662 559.497 426.677C554.148 431.691 551.474 437.541 551.474 444.227C551.474 450.133 553.702 455.76 558.16 461.108C562.617 466.568 571.977 472.976 586.24 480.33C603.623 489.356 615.434 498.047 621.674 506.404C627.803 514.873 630.867 524.4 630.867 534.986C630.867 549.917 625.63 562.565 615.156 572.927C604.681 583.29 591.588 588.472 575.877 588.472C565.402 588.472 555.374 586.187 545.791 581.619C536.319 577.05 528.464 570.755 522.224 562.732L536.932 546.017C548.855 559.5 561.502 566.242 574.874 566.242C584.234 566.242 592.201 563.233 598.775 557.216C605.35 551.199 608.637 544.123 608.637 535.989C608.637 529.303 606.464 523.341 602.118 518.104C597.773 512.979 587.967 506.516 572.701 498.716C556.321 490.247 545.178 481.89 539.272 473.644C533.367 465.398 530.414 455.983 530.414 445.397C530.414 431.58 535.094 420.102 544.454 410.965C553.925 401.828 565.848 397.26 580.223 397.26C596.937 397.26 613.763 405.45 630.7 421.83Z",fill:"#00A6FF"})),Vz||(Vz=n.createElement("path",{d:"M758.398 397.26C786.366 397.26 809.543 407.4 827.929 427.68C844.644 446.177 853.001 468.073 853.001 493.367C853.001 518.773 844.142 541.003 826.425 560.057C808.819 579 786.143 588.472 758.398 588.472C730.54 588.472 707.753 579 690.036 560.057C672.43 541.003 663.627 518.773 663.627 493.367C663.627 468.184 671.984 446.344 688.699 427.847C707.084 407.455 730.317 397.26 758.398 397.26ZM758.398 420.158C739.009 420.158 722.35 427.345 708.422 441.72C694.493 456.094 687.529 473.477 687.529 493.868C687.529 507.017 690.704 519.274 697.056 530.64C703.407 542.006 711.987 550.809 722.796 557.049C733.605 563.177 745.472 566.242 758.398 566.242C771.323 566.242 783.19 563.177 793.999 557.049C804.808 550.809 813.388 542.006 819.739 530.64C826.091 519.274 829.266 507.017 829.266 493.868C829.266 473.477 822.246 456.094 808.206 441.72C794.278 427.345 777.675 420.158 758.398 420.158Z",fill:"#00A6FF"})),Fz||(Fz=n.createElement("path",{d:"M887.767 401.94H911.668V428.515C918.8 418.041 926.321 410.241 934.233 405.115C942.144 399.878 950.39 397.26 958.97 397.26C965.433 397.26 972.341 399.321 979.696 403.444L967.494 423.167C962.591 421.05 958.468 419.991 955.125 419.991C947.326 419.991 939.804 423.223 932.561 429.685C925.318 436.037 919.802 445.954 916.014 459.437C913.117 469.8 911.668 490.748 911.668 522.283V583.792H887.767V401.94Z",fill:"#00A6FF"})),zz||(zz=n.createElement("path",{d:"M20.4473 226.702L41.3402 214.167C56.0488 241.244 73.0418 254.783 92.319 254.783C100.565 254.783 108.309 252.888 115.552 249.1C122.795 245.2 128.311 240.018 132.099 233.555C135.888 227.092 137.782 220.24 137.782 212.997C137.782 204.751 134.996 196.672 129.425 188.761C121.736 177.841 107.696 164.692 87.3047 149.315C66.8017 133.826 54.0431 122.628 49.0288 115.719C40.3373 104.13 35.9916 91.5947 35.9916 78.1118C35.9916 67.4146 38.5545 57.6646 43.6802 48.8617C48.806 40.0588 55.9931 33.1502 65.2417 28.1359C74.6018 23.0101 84.7418 20.4473 95.6619 20.4473C107.25 20.4473 118.059 23.3444 128.088 29.1387C138.228 34.8216 148.925 45.3517 160.179 60.7289L140.122 75.9389C130.873 63.6817 122.962 55.6031 116.388 51.7031C109.925 47.8031 102.849 45.8531 95.1604 45.8531C85.2433 45.8531 77.1089 48.8617 70.7575 54.8788C64.5175 60.896 61.3974 68.306 61.3974 77.1089C61.3974 82.4575 62.5117 87.639 64.7403 92.6533C66.9689 97.6676 71.036 103.128 76.9418 109.033C80.1732 112.153 90.759 120.343 108.699 133.603C129.982 149.315 144.579 163.299 152.491 175.556C160.402 187.814 164.358 200.127 164.358 212.495C164.358 230.324 157.561 245.812 143.966 258.961C130.483 272.11 114.048 278.684 94.659 278.684C79.7275 278.684 66.1889 274.728 54.0431 266.817C41.8974 258.794 30.6987 245.423 20.4473 226.702Z",fill:"#00A6FF"})),Bz||(Bz=n.createElement("path",{d:"M212.328 20.4473H235.895V163.856L319.969 90.6476H354.4L254.615 177.395L360.25 272.5H327.156L235.895 190.767V272.5H212.328V20.4473Z",fill:"#00A6FF"})),Uz||(Uz=n.createElement("path",{d:"M241.971 337.817H215.075L320.492 583.792H325.592L537.601 90.8652H512.885L452.247 231.212L389.653 90.8652H364.714L439.533 259.086L323.147 527.555L241.971 337.817Z",fill:"#535353"})))}const qz=n.forwardRef(Hz);__webpack_require__.p;var Xz=__webpack_require__(28672),Yz=__webpack_require__(75484);const Kz=(0,__webpack_require__(8676).cp)();var Zz=__webpack_require__(61572);const $z=["className","component","disableGutters","fixed","maxWidth","classes"],Jz=(0,Zz.c)(),Qz=Kz("div",{name:"MuiContainer",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t["maxWidth".concat((0,Xz.c)(String(n.maxWidth)))],n.fixed&&t.fixed,n.disableGutters&&t.disableGutters]}}),eB=e=>(0,Yz.c)({props:e,name:"MuiContainer",defaultTheme:Jz});const tB=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const{createStyledComponent:t=Qz,useThemeProps:r=eB,componentName:i="MuiContainer"}=e,o=t((e=>{let{theme:t,ownerState:n}=e;return(0,d.c)({width:"100%",marginLeft:"auto",boxSizing:"border-box",marginRight:"auto",display:"block"},!n.disableGutters&&{paddingLeft:t.spacing(2),paddingRight:t.spacing(2),[t.breakpoints.up("sm")]:{paddingLeft:t.spacing(3),paddingRight:t.spacing(3)}})}),(e=>{let{theme:t,ownerState:n}=e;return n.fixed&&Object.keys(t.breakpoints.values).reduce(((e,n)=>{const r=n,i=t.breakpoints.values[r];return 0!==i&&(e[t.breakpoints.up(r)]={maxWidth:"".concat(i).concat(t.breakpoints.unit)}),e}),{})}),(e=>{let{theme:t,ownerState:n}=e;return(0,d.c)({},"xs"===n.maxWidth&&{[t.breakpoints.up("xs")]:{maxWidth:Math.max(t.breakpoints.values.xs,444)}},n.maxWidth&&"xs"!==n.maxWidth&&{[t.breakpoints.up(n.maxWidth)]:{maxWidth:"".concat(t.breakpoints.values[n.maxWidth]).concat(t.breakpoints.unit)}})})),s=n.forwardRef((function(e,t){const n=r(e),{className:s,component:a="div",disableGutters:l=!1,fixed:c=!1,maxWidth:u="lg"}=n,h=(0,Tt.c)(n,$z),p=(0,d.c)({},n,{component:a,disableGutters:l,fixed:c,maxWidth:u}),f=((e,t)=>{const{classes:n,fixed:r,disableGutters:i,maxWidth:o}=e,s={root:["root",o&&"maxWidth".concat((0,Xz.c)(String(o))),r&&"fixed",i&&"disableGutters"]};return(0,ls.c)(s,(e=>(0,hs.c)(t,e)),n)})(p,i);return(0,Ae.jsx)(o,(0,d.c)({as:a,ownerState:p,className:(0,ts.c)(f.root,s),ref:t},h))}));return s}({createStyledComponent:(0,cs.cp)("div",{name:"MuiContainer",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t["maxWidth".concat((0,ha.c)(String(n.maxWidth)))],n.fixed&&t.fixed,n.disableGutters&&t.disableGutters]}}),useThemeProps:e=>(0,Oe.c)({props:e,name:"MuiContainer"})}),nB=tB;function rB(e){return(0,hs.c)("MuiLink",e)}const iB=(0,ds.c)("MuiLink",["root","underlineNone","underlineHover","underlineAlways","button","focusVisible"]);var oB=__webpack_require__(92576);const sB={primary:"primary.main",textPrimary:"text.primary",secondary:"secondary.main",textSecondary:"text.secondary",error:"error.main"},aB=e=>{let{theme:t,ownerState:n}=e;const r=(e=>sB[e]||e)(n.color),i=(0,oB.O0)(t,"palette.".concat(r),!1)||n.color,o=(0,oB.O0)(t,"palette.".concat(r,"Channel"));return"vars"in t&&o?"rgba(".concat(o," / 0.4)"):(0,Ps.W4)(i,.4)},lB=["className","color","component","onBlur","onFocus","TypographyClasses","underline","variant","sx"],cB=(0,cs.cp)(vu,{name:"MuiLink",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t["underline".concat((0,ha.c)(n.underline))],"button"===n.component&&t.button]}})((e=>{let{theme:t,ownerState:n}=e;return(0,d.c)({},"none"===n.underline&&{textDecoration:"none"},"hover"===n.underline&&{textDecoration:"none","&:hover":{textDecoration:"underline"}},"always"===n.underline&&(0,d.c)({textDecoration:"underline"},"inherit"!==n.color&&{textDecorationColor:aB({theme:t,ownerState:n})},{"&:hover":{textDecorationColor:"inherit"}}),"button"===n.component&&{position:"relative",WebkitTapHighlightColor:"transparent",backgroundColor:"transparent",outline:0,border:0,margin:0,borderRadius:0,padding:0,cursor:"pointer",userSelect:"none",verticalAlign:"middle",MozAppearance:"none",WebkitAppearance:"none","&::-moz-focus-inner":{borderStyle:"none"},["&.".concat(iB.focusVisible)]:{outline:"auto"}})})),uB=n.forwardRef((function(e,t){const r=(0,Oe.c)({props:e,name:"MuiLink"}),{className:i,color:o="primary",component:s="a",onBlur:a,onFocus:l,TypographyClasses:c,underline:u="always",variant:h="inherit",sx:p}=r,f=(0,Tt.c)(r,lB),{isFocusVisibleRef:g,onBlur:m,onFocus:y,ref:v}=(0,ks.c)(),[_,b]=n.useState(!1),x=(0,Cs.c)(t,v),S=(0,d.c)({},r,{color:o,component:s,focusVisible:_,underline:u,variant:h}),w=(e=>{const{classes:t,component:n,focusVisible:r,underline:i}=e,o={root:["root","underline".concat((0,ha.c)(i)),"button"===n&&"button",r&&"focusVisible"]};return(0,ls.c)(o,rB,t)})(S);return(0,Ae.jsx)(cB,(0,d.c)({color:o,className:(0,ts.c)(w.root,i),classes:c,component:s,onBlur:e=>{m(e),!1===g.current&&b(!1),a&&a(e)},onFocus:e=>{y(e),!0===g.current&&b(!0),l&&l(e)},ref:x,ownerState:S,variant:h,sx:[...Object.keys(sB).includes(o)?[]:[{color:o}],...Array.isArray(p)?p:[p]]},f))})),dB=uB;var hB=__webpack_require__(65848),pB=__webpack_require__(836);let fB=function(e){return e.OWNER="owner",e.EXPERT="expert",e.ANNOTATOR="annotator",e.READ="read",e.EDIT="edit",e.DOWNLOAD="download",e.UPLOAD="upload",e}({});const gB=()=>{mB()},mB=()=>{Sy.dispatch(go()),Sy.dispatch(qg("")),Sy.dispatch(Af("")),Sy.dispatch(Lf()),Sy.dispatch(Zf(""))},yB=async()=>{const e=await Ey("/profile",{method:"GET"}),t=await e.json();return Sy.dispatch(mo(t)),t},vB=()=>{const e=wo();return!(!e||"admin"!==e.profile)},_B=()=>{const e=wo();return!(!e||e.role!==fB.EXPERT)},bB=()=>{const e=wo();return!(!e||e.role!==fB.ANNOTATOR)},xB=()=>{const e=wo();return e&&[fB.ANNOTATOR,fB.EXPERT].includes(e.role)},SB=()=>{const e=Sy.getState().auth.assetRight,t=wo(),n=null===e?t.assetRight:e;return!(!t||"admin"!==t.profile&&!n)},wB=()=>{const e=Sy.getState().auth.lightVersion,t=wo(),n=null===e?t.lightVersion:e;if(t&&"admin"!==t.profile&&n)return!0},EB=async e=>{const t=new Headers;t.append("Content-Type","application/json");const n={method:"POST",headers:t,body:JSON.stringify(e)};return await Ey("/registerCompany",n)},PB=async()=>{const e=await Ey("/companies",{method:"GET"});return await e.json()},CB=async e=>{const t=await Ey("/company/".concat(e),{method:"GET"});return await t.json()},AB=async()=>{const e=await Ey("/users",{method:"GET"});return await e.json()},kB=()=>{const e=on(),t=sn(),[r,i]=(0,n.useState)({email:"",password:""}),[o,s]=(0,n.useState)(""),[a,l]=(0,n.useState)(!1),[c,u]=(0,n.useState)(!1),d=e=>{i({...r,[e.target.id]:e.target.value})};return(0,Ae.jsxs)(Ae.Fragment,{children:[(0,Ae.jsx)(we,{children:(0,Ae.jsx)("title",{children:"Login "})}),(0,Ae.jsx)(wp,{sx:{marginTop:"10%",display:"flex",flexDirection:"column",height:"100%",justifyContent:"center"},children:(0,Ae.jsxs)(nB,{maxWidth:"sm",style:{backgroundColor:"white",borderRadius:"4%",paddingBottom:"1%"},children:[(0,Ae.jsx)(qz,{height:"130",width:"180",style:{marginTop:"7%",marginLeft:"33%"}}),(0,Ae.jsxs)("form",{onSubmit:async n=>{n.preventDefault(),l(!0);try{var i,o;await(async(e,t)=>{if(mB(),await ho.setPersistence(po.LOCAL),await ho.signInWithEmailAndPassword(e,t),!ho.currentUser)return;const n=await ho.currentUser.getIdToken(!0);if(200!==(await Ey("/sessionLogin?idToken="+n,{method:"POST",credentials:"same-origin"})).status)return!1;const r=await yB();return Sy.dispatch(So(r.role)),!0})(r.email,r.password);const n=null!==(i=null===t||void 0===t||null===(o=t.state)||void 0===o?void 0:o.from)&&void 0!==i?i:"/";e.push(n)}catch(n){s("Error please check your login and password")}l(!1)},children:[(0,Ae.jsx)(iE,{fullWidth:!0,required:!0,label:"Email Address",margin:"normal",id:"email",onChange:d,type:"email",value:r.email,variant:"outlined",InputLabelProps:{shrink:!0}}),(0,Ae.jsx)(iE,{fullWidth:!0,required:!0,label:"Password",margin:"normal",id:"password",onChange:d,type:c?"text":"password",value:r.password,variant:"outlined",InputProps:{endAdornment:(0,Ae.jsx)(fx,{position:"end",children:(0,Ae.jsx)(Gu,{"aria-label":"toggle password visibility",onClick:()=>u(!c),children:c?(0,Ae.jsx)(hB.c,{}):(0,Ae.jsx)(pB.c,{})})})},InputLabelProps:{shrink:!0}}),(0,Ae.jsx)(wp,{sx:{py:2,textAlign:"center"},children:(0,Ae.jsx)(ev,{label:"Login",size:"large",submit:!0,loading:a})}),""!==o&&(0,Ae.jsx)(pM,{severity:"error",children:o})]}),(0,Ae.jsx)(vu,{color:"textSecondary",variant:"body1",align:"center",children:(0,Ae.jsx)(dB,{component:fn,to:"/forgot-password",variant:"subtitle1",children:"Forgot password?"})}),(0,Ae.jsx)(vu,{color:"textSecondary",variant:"body1",align:"center",children:(0,Ae.jsx)(dB,{component:fn,to:"/register",variant:"subtitle1",children:"Don't have an account?"})})]})})]})},jB=()=>{const[e,t]=(0,n.useState)({firstName:"",lastName:"",email:"",company:""}),[r,i]=(0,n.useState)(""),[o,s]=(0,n.useState)(""),a=n=>{t({...e,[n.target.id]:n.target.value})};return(0,Ae.jsxs)(Ae.Fragment,{children:[(0,Ae.jsx)(we,{children:(0,Ae.jsx)("title",{children:"Register"})}),(0,Ae.jsx)(wp,{sx:{marginTop:"7%",display:"flex",flexDirection:"column",height:"100%",justifyContent:"center"},children:(0,Ae.jsxs)(nB,{maxWidth:"sm",style:{backgroundColor:"white",borderRadius:"4%",paddingBottom:"1%"},children:[(0,Ae.jsx)(qz,{height:"130",width:"180",style:{marginTop:"7%",marginLeft:"33%"}}),(0,Ae.jsxs)("form",{onSubmit:async t=>{t.preventDefault();try{const t=await(async e=>{const t=new Headers;t.append("Content-Type","application/json");const n={method:"POST",headers:t,body:JSON.stringify(e)};return await Ey("/register",n)})(e);if(200!==t.status)return void i(await t.text());s(await t.text())}catch(t){i("An error occured")}},children:[(0,Ae.jsx)(iE,{fullWidth:!0,label:"First name",margin:"normal",id:"firstName",name:"firstName",onChange:a,value:e.firstName,variant:"outlined"}),(0,Ae.jsx)(iE,{fullWidth:!0,label:"Last name",margin:"normal",id:"lastName",name:"lastName",onChange:a,value:e.lastName,variant:"outlined"}),(0,Ae.jsx)(iE,{fullWidth:!0,label:"Email Address",margin:"normal",name:"email",id:"email",onChange:a,type:"email",value:e.email,variant:"outlined"}),(0,Ae.jsx)(iE,{fullWidth:!0,label:"Company",margin:"normal",id:"company",name:"company",onChange:a,type:"text",value:e.company,variant:"outlined"}),(0,Ae.jsx)(wp,{sx:{alignItems:"center",display:"flex",ml:-1}}),(0,Ae.jsx)(wp,{sx:{py:2},children:(0,Ae.jsx)(Sa,{color:"primary",fullWidth:!0,size:"large",type:"submit",variant:"contained",children:"Sign up now"})}),""!==r&&(0,Ae.jsx)(pM,{severity:"error",children:r}),""!==o&&(0,Ae.jsx)(pM,{severity:"success",children:o}),(0,Ae.jsxs)(vu,{color:"textSecondary",variant:"body1",children:["Have an account?"," ",(0,Ae.jsx)(dB,{component:fn,to:"/login",variant:"h6",children:"Sign in"})]})]})]})})]})},IB={color:"grey"},GB={color:"red"},TB={backgroundColor:"#1cc88a",color:"white",padding:5,borderRadius:5},MB=()=>{const[e,t]=(0,n.useState)(""),[r,i]=(0,n.useState)(""),o=on();return(0,Ae.jsxs)(Ae.Fragment,{children:[(0,Ae.jsx)(we,{children:(0,Ae.jsx)("title",{children:"Forgot password"})}),(0,Ae.jsx)(wp,{sx:{marginTop:"10%",display:"flex",flexDirection:"column",height:"100%",justifyContent:"center"},children:(0,Ae.jsxs)(nB,{maxWidth:"sm",style:{backgroundColor:"white",borderRadius:"4%",paddingBottom:"1%",textAlign:"center"},children:[(0,Ae.jsx)(qz,{height:"130",width:"180",style:{marginTop:"7%",marginBottom:10}}),(0,Ae.jsxs)("form",{onSubmit:async t=>{if(t.preventDefault(),"yes"===r)return void o.push("/login");const n=window.location.href,s=n.substring(0,n.lastIndexOf("/"));try{await ho.sendPasswordResetEmail(e,{url:"".concat(s,"/login?email=").concat(e)}),i("yes")}catch(a){i(null===a||void 0===a?void 0:a.message)}},children:[(0,Ae.jsx)(vu,{variant:"h4",color:"secondary",children:"Forgot your password?"}),(0,Ae.jsx)("br",{}),""===r&&(0,Ae.jsx)(vu,{style:IB,children:"We get it, stuff happens. Just enter your email address below and we'll send you a link to reset your password!"}),r&&"yes"!==r&&(0,Ae.jsx)(vu,{style:GB,children:r}),"yes"===r&&(0,Ae.jsxs)(vu,{style:TB,children:["An email with a link to reset your password has been sent to"," ".concat(e)]}),"yes"!==r&&(0,Ae.jsx)(iE,{fullWidth:!0,required:!0,label:"Email Address",margin:"normal",id:"email",onChange:e=>{t(e.target.value),i("")},type:"email",variant:"outlined",autoFocus:!0}),(0,Ae.jsx)(wp,{sx:{py:2,textAlign:"center"},children:(0,Ae.jsx)(ev,{label:"yes"===r?"Login":"Reset Password",size:"large",submit:!0})})]}),(0,Ae.jsxs)(vu,{color:"textSecondary",variant:"body1",align:"center",children:[(0,Ae.jsx)(dB,{component:fn,to:"/register",variant:"subtitle1",children:"Create an account?"}),(0,Ae.jsx)("br",{}),(0,Ae.jsx)(dB,{component:fn,to:"/login",variant:"subtitle1",children:"Login"})]})]})})]})};var OB=__webpack_require__(98868);const RB=[{text:"Password must have at least ".concat(8," characters"),checkerFn:e=>e.length>=8},{text:"Password must have at least 1 lowercase character",checkerFn:e=>/[a-z]/.test(e)},{text:"Password must have at least 1 uppercase character",checkerFn:e=>/[A-Z]/.test(e)},{text:"Password must have at least 1 number or 1 special character",checkerFn:e=>/[0-9]|[^a-zA-Z]/.test(e)}],DB=Zo()((()=>({root:{border:"1px solid ".concat(Rp),color:"black",padding:"1rem",width:"fit-content",margin:"auto",borderRadius:"0.5rem"},iconValid:{color:Fp},iconInvalid:{width:"24px",fontSize:"50px",lineHeight:"18px",color:Rp}}))),NB=e=>{const{classes:t}=DB(),{password:r,onValidityChange:i}=e,o=(0,n.useMemo)((()=>RB.map((e=>{let{checkerFn:t,text:n}=e;return{text:n,isValid:t(r)}}))),[r]),s=o.every((e=>{let{isValid:t}=e;return t}));return(0,n.useEffect)((()=>{i(s)}),[i,s]),(0,Ae.jsx)(ws,{container:!0,direction:"column",wrap:"nowrap",className:t.root,children:o.map(((e,n)=>{let{text:r,isValid:i}=e;return(0,Ae.jsxs)(ws,{item:!0,container:!0,wrap:"nowrap",justifyContent:"left",columnGap:"0.5rem",children:[i?(0,Ae.jsx)(OB.c,{className:t.iconValid}):(0,Ae.jsx)(vu,{className:t.iconInvalid,children:"\xb7"}),(0,Ae.jsx)(vu,{children:r})]},"password-checker-".concat(n))}))})},LB=Zo()((()=>({root:{height:"100vh",width:"100vw",display:"flex",justifyContent:"center",alignItems:"center"},formContainer:{width:"50vw",minWidth:"25rem",maxWidth:"45rem",padding:"2rem",justifyContent:"center",backgroundColor:"white",borderRadius:"1rem",textAlign:"center",rowGap:"1rem"},passwordInput:{width:"50%",minWidth:"15rem"}}))),VB=()=>{const{classes:e}=LB(),t=sn(),[r,i]=(0,n.useState)(""),[o,s]=(0,n.useState)(!1),[a,l]=(0,n.useState)(),[c,u]=(0,n.useState)(!1),d=(0,n.useMemo)((()=>new URLSearchParams(t.search).get("oobCode")),[t.search]);(0,n.useEffect)((()=>{d||l("The provided link is incorrect.")}),[d]);return(0,Ae.jsxs)(Ae.Fragment,{children:[(0,Ae.jsx)(we,{children:(0,Ae.jsx)("title",{children:"Reset password"})}),(0,Ae.jsx)("div",{className:e.root,children:(0,Ae.jsxs)(ws,{container:!0,direction:"column",wrap:"nowrap",className:e.formContainer,children:[(0,Ae.jsx)(ws,{item:!0,children:(0,Ae.jsx)(qz,{height:"130",width:"180"})}),void 0!==a&&(0,Ae.jsx)(pM,{severity:"error",children:a}),void 0===d&&(0,Ae.jsx)(pM,{severity:"error",children:"The provided"}),c&&(0,Ae.jsxs)(pM,{severity:"success",children:["Your password has been reset. You can now"," ",(0,Ae.jsx)("a",{href:"/login",children:"go to the login page"}),"."]}),null!==d&&!1===c&&(0,Ae.jsxs)(Ae.Fragment,{children:[(0,Ae.jsxs)("form",{onSubmit:async e=>{if(e.preventDefault(),u(!1),l(void 0),d)try{await ho.confirmPasswordReset(d,r),u(!0)}catch(a){l(null===a||void 0===a?void 0:a.message)}},children:[(0,Ae.jsx)(vu,{variant:"h4",color:"secondary",children:"Enter new password"}),(0,Ae.jsx)(iE,{className:e.passwordInput,required:!0,autoComplete:"new-password",type:"password",label:"Password",margin:"normal",id:"new-password",onChange:e=>{i(e.target.value)},variant:"outlined",autoFocus:!0}),(0,Ae.jsx)(wp,{children:(0,Ae.jsx)(ev,{submit:!0,label:"Save new password",size:"large",disabled:!o})})]}),(0,Ae.jsx)(ws,{item:!0,children:(0,Ae.jsx)(NB,{password:r,onValidityChange:s})})]}),(0,Ae.jsxs)(vu,{color:"textSecondary",variant:"body1",align:"center",children:[(0,Ae.jsx)(dB,{component:fn,to:"/register",variant:"subtitle1",children:"Create an account?"}),(0,Ae.jsx)("br",{}),(0,Ae.jsx)(dB,{component:fn,to:"/login",variant:"subtitle1",children:"Login"})]})]})})]})},FB={control:()=>({paddingTop:0,margin:15,width:200,display:"flex",border:"1px solid grey",height:40,zIndex:2})},zB={marginRight:20,height:40},BB={color:"red",marginTop:25,fontWeight:700},UB=Zo()((()=>({root:{},topBar:{background:"white",color:"black",flexGrow:1},topBarCreate:{background:"white",color:"black",flexGrow:1,width:"50%",marginLeft:"25%",marginTop:"20%",padding:15,borderRadius:10},asset:{width:"auto",fontSize:16,height:40,margin:15,padding:8},groupAsset:{textAlign:"left"},assetInfos:{margin:15,marginTop:25},card:{width:270,position:"absolute",right:20,top:90,zIndex:10},item:{padding:5,paddingTop:20,margin:"4px 10px 5px 10px",height:40,width:500,maxWidth:"90%",border:"1px solid grey",fontSize:16},titleNoEdit:{position:"absolute",fontSize:14,color:"grey",paddingLeft:14},topTitle:{display:"flex",justifyContent:"space-between",padding:10},titleGroup:{marginLeft:5,fontWeight:"bold",paddingTop:20,marginBottom:5},buttonZone:{margin:"20px 10px 20px 10px"},errorDelete:{color:"red",marginBottom:5,marginLeft:5},dateField:{marginTop:5},title:{position:"absolute",paddingTop:7,fontSize:14,color:"grey",paddingLeft:13},buttonPlan:{border:"1px solid ",marginTop:5},buttonTopZoneCreate:{paddingTop:15,paddingLeft:10,paddingBottom:5},buttonTopZone:{position:"fixed",right:5,top:4,zIndex:10},infoSubs:{right:0,marginTop:25},company:{display:"inline-block"},showPlan:{margin:14}}))),WB=(e,t)=>{if(null===e||void 0===e||!e.length)return;const n=[];if(null!==e&&void 0!==e&&e.length){const r=(0,Qo.groupBy)(e,"subAssetId");if(Object.keys(r).length!==t)return;for(const e in r){let t=0;for(const n of r[e]){const e=Ty(n.plannedDate);e>t&&(t=e)}n.push(t)}const i=Math.min(...n);return new Date(i).toISOString()}};let HB=function(e){return e.WIND="wind",e.SOLAR="solar",e}({});var qB,XB,YB,KB,ZB,$B;function JB(){return JB=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},JB.apply(this,arguments)}function QB(e,t){let{title:r,titleId:i,...o}=e;return n.createElement("svg",JB({width:200,height:300,style:{background:"transparent"},transform:"scale(0.5)",ref:t,"aria-labelledby":i},o),r?n.createElement("title",{id:i},r):null,qB||(qB=n.createElement("style",null,"\r\n\t\t\t\t\t.hidden { visibility: hidden; }\t\t\t\t\t\t/* Animation */\t\t\t\t\t\t@keyframes spin { \t\t\t\tfrom { transform: rotate(0deg); } \t\t\t\tto { transform: rotate(360deg); }\t\t\t}\t\t\t\t\t\t#wind-blade { width: 158.63px; height: 158.63px; transform-origin: 94.663px 94.663px; animation: spin 0s linear infinite; transform: rotate(15deg); }>\r\n\t")),XB||(XB=n.createElement("symbol",{id:"blade"},n.createElement("path",{fill:"#e6e6e6",id:"blade-front",d:"M14.6491879,1.85011601 C14.2684455,-0.0535962877 10.7150812,-0.815081206 9.06473318,3.37308585 L0.434338747,70.7658933 L8.93805104,91.9607889 L15.4106729,90.437819 L17.5684455,78.3807425 L14.5218097,1.97679814 L14.6491879,1.85011601 Z"}),n.createElement("path",{fill:"#d0d6d7",id:"blade-side",d:"M11.0951276,0.581206497 C10.3336427,0.961948956 9.57215777,1.85011601 8.93735499,3.24640371 L0.306960557,70.6392111 L8.81067285,91.8341067 L3.35359629,70.0044084 L11.0951276,0.581206497 Z"}))),n.createElement("g",null,YB||(YB=n.createElement("g",{id:"structure",transform:"translate(58.123, 82.664)",fillRule:"nonzero"},n.createElement("polygon",{id:"tower",fill:"#e6e6e6",points:"33.111,10.984 39.965,10.984 44.28,196.176 28.796,196.176"}),n.createElement("path",{id:"yaw",fill:"rgba(0,0,0,0.25)",d:"M40.3454756,23.2948956 L40.7262181,34.8445476 C38.8225058,35.0986079 35.7765661,35.0986079 32.349884,34.337123 L32.7306265,23.2955916 L40.3454756,23.2955916 L40.3454756,23.2948956 Z"}),n.createElement("path",{id:"base",fill:"#d0d6d7",transform:"translate(0 42)",d:"M26.3846868,150.591647 L46.5640371,150.591647 C48.8484919,150.591647 50.7522042,152.49536 50.7522042,154.779814 L50.7522042,158.967981 L22.0691415,158.967981 L22.0691415,154.779814 C22.0691415,152.49536 23.9728538,150.591647 26.2573086,150.591647 L26.3846868,150.591647 Z"}),n.createElement("circle",{id:"nacelle",fill:"#e6e6e6",cx:36.54,cy:12,r:11.93}),n.createElement("circle",{id:"gearbox",fill:"none",stroke:"#d0d6d7",strokeWidth:2.75,cx:36.538,cy:11.999,r:5.8}))),n.createElement("g",{id:"wind-blade",style:{animation:"spin 1.25s linear infinite"}},KB||(KB=n.createElement("use",{id:"blade1",href:"#blade",x:83.24,y:0})),ZB||(ZB=n.createElement("use",{id:"blade2",href:"#blade",x:83.24,y:0,transform:"rotate(120 94.663 94.663)"})),$B||($B=n.createElement("use",{id:"blade3",href:"#blade",x:83.24,y:0,transform:"rotate(-120 94.663 94.663)"})))))}const eU=n.forwardRef(QB),tU=(__webpack_require__.p,e=>{const t=/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i.exec(e);return t?{r:parseInt(t[1],16),g:parseInt(t[2],16),b:parseInt(t[3],16)}:null});const nU=(e,t)=>{const n=tU(e);if(!n)return e;const{r:r,g:i,b:o}=n;return"rgba(".concat(r,", ").concat(i,", ").concat(o,", ").concat(t,")")},rU=(e,t)=>{const n=tU(e);if(!n)return"";return function(e){let{r:t,g:n,b:r}=e;return"#"+[t,n,r].map((e=>{const t=e.toString(16);return 1===t.length?"0"+t:t})).join("")}({r:Math.max(Math.round(n.r-n.r*t),0),g:Math.max(Math.round(n.g-n.g*t),0),b:Math.max(Math.round(n.b-n.b*t),0)})},iU=Zo()(((e,t)=>({root:{"& svg":{"#blade-front, #tower, #nacelle":{fill:t},"#blade-side, #base":{fill:rU(t,.2)},"#gearbox":{stroke:rU(t,.2)},"#yaw":{fill:"rgba(0,0,0,0.25)"}}}}))),oU=e=>{const{text:t,size:n,color:r="#e6e6e6",scale:i=1}=e,o=n||1,{classes:s}=iU(r);return(0,Ae.jsxs)(ws,{container:!0,direction:"column",style:{zIndex:40,overflow:"hidden"},alignItems:"center",className:s.root,children:[(0,Ae.jsx)(ws,{item:!0,style:{},children:(0,Ae.jsx)(eU,{style:{transform:"scale(".concat(i,")")}})}),(0,Ae.jsx)(ws,{item:!0,style:{fontSize:"".concat(o,"rem")},children:t})]})},sU=[{id:"name",disablePadding:!0,label:"Asset Name"},{id:"subAssetsCount",numeric:!0,label:"SubAssets Count"},{id:"nbInspections",numeric:!0,label:"# Inspections"},{id:"totalPower",numeric:!0,label:"Total Power"},{id:"poweringDate",label:"Powering Date"},{id:"oldestInspection",label:"Oldest Inspection"}],aU=[{name:"name"},{name:"subAssetsCount"},{name:"nbInspections"},{name:"totalPower"},{name:"poweringDate",type:"date"},{name:"oldestInspection",type:"date"}];function lU(e){const t=b((e=>"loading"===e.assets.status)),r=b(gg),[i,o]=(0,n.useState)([]),s=on();return(0,n.useEffect)((()=>{const t=JSON.parse(JSON.stringify(e.assets));t.forEach(((e,n)=>{var i;const o=r.filter((t=>"planned"!==t.status&&t.assetId===e.id)),s=o.length,a=WB(o,null!==(i=null===e||void 0===e?void 0:e.subAssetsCount)&&void 0!==i?i:0);a&&(t[n].oldestInspection=a),t[n].nbInspections=s})),o(t)}),[r,e.assets]),(0,Ae.jsx)(jT,{ariaLabel:"enhanced table",headCells:sU,order:"asc",orderBy:"name",rows:i,contentCells:aU,selectRow:(e,t)=>{qy(t,"/assets/".concat(e),s)},loading:t,evenColumns:!0,maxHeight:"100%",loader:e.type===HB.WIND?(0,Ae.jsx)(oU,{color:Np,scale:.35}):void 0})}var cU={fullscreenEnabled:0,fullscreenElement:1,requestFullscreen:2,exitFullscreen:3,fullscreenchange:4,fullscreenerror:5,fullscreen:6},uU=["webkitFullscreenEnabled","webkitFullscreenElement","webkitRequestFullscreen","webkitExitFullscreen","webkitfullscreenchange","webkitfullscreenerror","-webkit-full-screen"],dU=["mozFullScreenEnabled","mozFullScreenElement","mozRequestFullScreen","mozCancelFullScreen","mozfullscreenchange","mozfullscreenerror","-moz-full-screen"],hU=["msFullscreenEnabled","msFullscreenElement","msRequestFullscreen","msExitFullscreen","MSFullscreenChange","MSFullscreenError","-ms-fullscreen"],pU="undefined"!==typeof window&&"undefined"!==typeof window.document?window.document:{},fU="fullscreenEnabled"in pU&&Object.keys(cU)||uU[0]in pU&&uU||dU[0]in pU&&dU||hU[0]in pU&&hU||[],gU={requestFullscreen:function(e){return e[fU[cU.requestFullscreen]]()},requestFullscreenFunction:function(e){return e[fU[cU.requestFullscreen]]},get exitFullscreen(){return pU[fU[cU.exitFullscreen]].bind(pU)},get fullscreenPseudoClass(){return":"+fU[cU.fullscreen]},addEventListener:function(e,t,n){return pU.addEventListener(fU[cU[e]],t,n)},removeEventListener:function(e,t,n){return pU.removeEventListener(fU[cU[e]],t,n)},get fullscreenEnabled(){return Boolean(pU[fU[cU.fullscreenEnabled]])},set fullscreenEnabled(e){},get fullscreenElement(){return pU[fU[cU.fullscreenElement]]},set fullscreenElement(e){},get onfullscreenchange(){return pU[("on"+fU[cU.fullscreenchange]).toLowerCase()]},set onfullscreenchange(e){return pU[("on"+fU[cU.fullscreenchange]).toLowerCase()]=e},get onfullscreenerror(){return pU[("on"+fU[cU.fullscreenerror]).toLowerCase()]},set onfullscreenerror(e){return pU[("on"+fU[cU.fullscreenerror]).toLowerCase()]=e}};const mU=gU;function yU(){var e=(0,n.useState)(!1),t=e[0],r=e[1],i=(0,n.useRef)(null);(0,n.useEffect)((function(){var e=function(){r(mU.fullscreenElement===i.current)};return mU.addEventListener("fullscreenchange",e),function(){return mU.removeEventListener("fullscreenchange",e)}}),[]);var o=(0,n.useCallback)((function(){return mU.fullscreenElement?mU.exitFullscreen().then((function(){return mU.requestFullscreen(i.current)})):i.current?mU.requestFullscreen(i.current):void 0}),[]),s=(0,n.useCallback)((function(){return mU.fullscreenElement===i.current?mU.exitFullscreen():Promise.resolve()}),[]);return(0,n.useMemo)((function(){return{active:t,enter:o,exit:s,node:i}}),[t,o,s])}var vU=function(e){var t=e.handle,r=e.onChange,i=e.children,o=e.className,s=[];return o&&s.push(o),s.push("fullscreen"),t.active&&s.push("fullscreen-enabled"),(0,n.useEffect)((function(){r&&r(t.active,t)}),[t.active]),n.createElement("div",{className:s.join(" "),ref:t.node,style:t.active?{height:"100%",width:"100%"}:void 0},i)},_U=__webpack_require__(31812);const bU=(e,t,n)=>{if(n&&void 0!==t)return t;if(void 0===e&&void 0===t)throw new Error("No yaw degree");return void 0===e?t:void 0===t?e:Math.abs(e-t)<10?t:Math.abs(e+180-t)<10?e+180:Math.abs(e-180-t)<10?e-180:t},xU=(e,t,n,r)=>{const i=6371e3,o=n*Math.PI/180,s=e*Math.PI/180,a=t*Math.PI/180,l=Math.asin(Math.sin(s)*Math.cos(r/i)+Math.cos(s)*Math.sin(r/i)*Math.cos(o)),c=a+Math.atan2(Math.sin(o)*Math.sin(r/i)*Math.cos(s),Math.cos(r/i)-Math.sin(s)*Math.sin(l));return{lat:180*l/Math.PI,lon:180*c/Math.PI}},SU=e=>{var t,n,r,i;return null!==e&&void 0!==e&&e.thermalStats?Ly((null!==(t=null===(n=e.thermalStats)||void 0===n?void 0:n.max)&&void 0!==t?t:0)-(null!==(r=null===(i=e.thermalStats)||void 0===i?void 0:i.mean)&&void 0!==r?r:0),1):0},wU={border:"1px solid lightgrey",borderRadius:10,boxShadow:"0px 2px 1px -1px rgb(0 0 0 / 20%), 0px 1px 1px 0px rgb(0 0 0 / 14%), 0px 1px 3px 0px rgb(0 0 0 / 12%)"},EU="red",PU="#ff8000",CU="black",AU="#FFDAB9",kU=e=>{const t=Zo()((()=>({circle:{display:"flex",alignItems:"center",justifyContent:"center",marginRight:"0.3rem",width:e.solarMap?"1rem":22,height:e.solarMap?"1rem":22,opacity:e.solarMap?.85:1,borderRadius:e.solarMap?void 0:11},legend:{position:e.relative?"relative":"absolute",bottom:e.relative?0:"0.5rem",right:e.relative?0:"0.4rem",fontSize:"0.8rem",padding:"0.2rem 0.4rem",color:"black",textAlign:"left",background:"white",...wU},itemLegend:{display:"flex",alignItems:"center",marginBottom:"0.2rem"}}))),{classes:n}=t(),r=[{background:"#ffc107",color:"black",content:"i",label:"severity <= 3"},{background:"#ff0000",color:"white",content:"i",label:"severity > 3"}],i=[{background:AU,color:"black",content:" ",label:"severity < 3"},{background:PU,color:"black",content:" ",label:"severity = 3"},{background:EU,color:"white",content:" ",label:"severity > 3"}],o=e.solarMap?i:r;return(0,Ae.jsx)("div",{className:n.legend,children:o.map(((e,t)=>(0,Ae.jsxs)("div",{className:n.itemLegend,children:[(0,Ae.jsx)("div",{className:n.circle,style:{backgroundColor:e.background,color:e.color},children:e.content}),e.label]},t)))})},jU=()=>(0,Ae.jsxs)("div",{style:{margin:"1rem",color:Gp},children:["Your current plan does not contain this feature,",(0,Ae.jsx)("br",{}),"for more information contact",(0,Ae.jsx)("a",{href:"mailto: sales@skyvisor.eu",children:"sales@skyvisor.eu"})]}),IU=e=>{const[t,r]=(0,n.useState)(!1);return(0,Ae.jsxs)(Ae.Fragment,{children:[(0,Ae.jsx)(cu,{title:"Copy url to clipboard",children:(0,Ae.jsx)("span",{children:(0,Ae.jsx)(gE,{onClick:t=>{(t=>{t.stopPropagation(),navigator.clipboard.writeText(e.url),r(!0)})(t)}})})}),(0,Ae.jsx)(JT,{open:t,autoHideDuration:3e3,onClose:()=>r(!1),anchorOrigin:{vertical:"bottom",horizontal:"center"},children:(0,Ae.jsx)(pM,{severity:"success",children:"The link has been copied in your clipboard"})})]})},GU=e=>{const t=e.toLowerCase();return t.includes("hot")&&t.includes("spot")?PL.HOTSPOT:t.includes("diode")?PL.DIODE:t.includes("disconnected")||t.includes("unsync")?PL.DISCONNECTED:PL.HOTSPOT},TU=(e,t)=>{var n,r,i;return t===PL.HOTSPOT?null!==(n=e.find((e=>e.toLowerCase().includes("hot")&&e.toLowerCase().includes("spot"))))&&void 0!==n?n:"HOTSPOT":t===PL.DIODE?null!==(r=e.find((e=>e.toLowerCase().includes("diode"))))&&void 0!==r?r:"DIODE ISSUE":t===PL.DISCONNECTED?null!==(i=e.find((e=>e.toLowerCase().includes("disconnected"))))&&void 0!==i?i:"DISCONNECTED":t},MU=e=>{let{text:t,color:n,fontWeight:r}=e;return(0,Ae.jsx)(vj,{borderRadius:"4px",sx:{backgroundColor:n},paddingTop:.25,paddingBottom:.5,paddingX:1,alignItems:"center",width:"fit-content",height:"100%",minWidth:"1.75rem",children:(0,Ae.jsx)(vu,{color:"white",fontWeight:r,variant:"body2",children:t})})},OU=e=>{var t;const{severity:n}=e;return(0,Ae.jsx)(MU,{text:"".concat(n),color:null!==(t=Kp[n])&&void 0!==t?t:Kp[3]})};var RU,DU;function NU(){return NU=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},NU.apply(this,arguments)}function LU(e,t){let{title:r,titleId:i,...o}=e;return n.createElement("svg",NU({width:22,height:22,viewBox:"0 0 22 22",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:t,"aria-labelledby":i},o),r?n.createElement("title",{id:i},r):null,RU||(RU=n.createElement("path",{d:"M20.2332 3.71048L16.5103 7.43335L13.8749 4.79788L17.5964 1.07632C16.5544 0.578646 15.3838 0.415867 14.2455 0.610343C13.1072 0.804819 12.0571 1.34701 11.2394 2.16242C10.547 2.85637 10.0492 3.7202 9.79603 4.66725C9.54283 5.6143 9.54311 6.61128 9.79684 7.55819L3.333 14.022C2.23796 15.1171 2.23796 16.8802 3.333 17.9752C4.42803 19.0702 6.19116 19.0702 7.28619 17.9752L13.7513 11.5101C14.6979 11.7637 15.6946 11.7641 16.6414 11.5111C17.5882 11.2582 18.4518 10.7608 19.1458 10.0688C19.9617 9.25117 20.5043 8.20086 20.699 7.0623C20.8937 5.92373 20.731 4.7528 20.2332 3.71048Z",fill:"white"})),DU||(DU=n.createElement("line",{x1:1.33229,y1:1.68499,x2:20.4892,y2:20.3964,stroke:"white",strokeWidth:3})))}const VU=n.forwardRef(LU);__webpack_require__.p;var FU;function zU(){return zU=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},zU.apply(this,arguments)}function BU(e,t){let{title:r,titleId:i,...o}=e;return n.createElement("svg",zU({width:19,height:20,viewBox:"0 0 19 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:t,"aria-labelledby":i},o),r?n.createElement("title",{id:i},r):null,FU||(FU=n.createElement("path",{d:"M17.7302 4.047L14.0074 7.76987L11.3719 5.1344L15.0935 1.41283C14.0515 0.915164 12.8809 0.752384 11.7426 0.94686C10.6043 1.14134 9.55416 1.68353 8.73646 2.49893C8.04405 3.19289 7.54629 4.05672 7.2931 5.00377C7.0399 5.95082 7.04018 6.9478 7.29391 7.8947L0.830066 14.3585C-0.26497 15.4536 -0.26497 17.2167 0.830066 18.3117C1.9251 19.4068 3.68823 19.4068 4.78326 18.3117L11.2484 11.8466C12.195 12.1002 13.1917 12.1006 14.1384 11.8476C15.0852 11.5947 15.9489 11.0973 16.6429 10.4053C17.4588 9.58769 18.0014 8.53738 18.1961 7.39881C18.3908 6.26025 18.2281 5.08931 17.7302 4.047Z",fill:"white"})))}const UU=n.forwardRef(BU);__webpack_require__.p;var WU,HU;function qU(){return qU=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},qU.apply(this,arguments)}function XU(e,t){let{title:r,titleId:i,...o}=e;return n.createElement("svg",qU({width:27,height:26,viewBox:"0 0 27 26",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:t,"aria-labelledby":i},o),r?n.createElement("title",{id:i},r):null,WU||(WU=n.createElement("g",{clipPath:"url(#clip0_8710_2115)"},n.createElement("path",{d:"M25.5787 18.6532L21.1323 10.95L16.6858 3.24677C15.9478 1.9629 14.6188 1.19861 13.1391 1.19861C11.6557 1.19861 10.3304 1.9629 9.58874 3.24677L0.692022 18.6532C-0.0496845 19.9371 -0.0496845 21.4694 0.692022 22.7533C1.43373 24.0371 2.75901 24.8014 4.24242 24.8014H22.0321C23.5155 24.8014 24.8408 24.0371 25.5825 22.7533C26.3242 21.4694 26.3204 19.9371 25.5787 18.6532ZM23.6247 21.62C23.465 21.901 23.2332 22.1343 22.9532 22.2958C22.6733 22.4573 22.3553 22.5411 22.0321 22.5387H4.24242C3.57602 22.5387 2.98115 22.1961 2.64983 21.62C2.48709 21.3405 2.40135 21.0229 2.40135 20.6995C2.40135 20.3761 2.48709 20.0584 2.64983 19.7789L11.5428 4.37628C11.7036 4.09542 11.9361 3.86235 12.2166 3.70093C12.4972 3.53951 12.8155 3.45554 13.1391 3.45761C13.8055 3.45761 14.4004 3.80023 14.7317 4.37628L23.6247 19.7827C23.7874 20.0615 23.8732 20.3785 23.8732 20.7014C23.8732 21.0242 23.7874 21.3412 23.6247 21.62ZM13.2069 15.5621C13.8319 15.5621 14.3364 15.0576 14.3364 14.4326V7.54641C14.3364 6.92142 13.8319 6.41691 13.2069 6.41691C12.5819 6.41691 12.0774 6.92142 12.0774 7.54641V14.4326C12.0774 15.0538 12.5819 15.5621 13.2069 15.5621ZM13.2069 17.1058C12.2054 17.1058 11.3922 17.919 11.3922 18.9205C11.3922 19.922 12.2054 20.7352 13.2069 20.7352C14.2084 20.7352 15.0216 19.922 15.0216 18.9205C15.0216 17.919 14.2084 17.1058 13.2069 17.1058ZM13.2069 19.3648C12.9622 19.3648 12.7626 19.1652 12.7626 18.9205C12.7626 18.6758 12.9622 18.4762 13.2069 18.4762C13.4516 18.4762 13.6512 18.6758 13.6512 18.9205C13.6512 19.1652 13.4516 19.3648 13.2069 19.3648Z",fill:"white"}))),HU||(HU=n.createElement("defs",null,n.createElement("clipPath",{id:"clip0_8710_2115"},n.createElement("rect",{width:26,height:26,fill:"white",transform:"translate(0.135742)"})))))}const YU=n.forwardRef(XU),KU=(__webpack_require__.p,Object.freeze({1:(0,Ae.jsx)(VU,{width:18,height:18}),2:(0,Ae.jsx)(UU,{width:18,height:18}),3:(0,Ae.jsx)(UU,{width:18,height:18}),4:(0,Ae.jsx)(UU,{width:18,height:18}),5:(0,Ae.jsx)(YU,{width:18,height:18})})),ZU=Object.freeze({1:"No action required",2:"Repair damages",3:"Repair within next 6 months",4:"Repair within next 3 months",5:"STOP OPERATION!\nContact technical support!"}),$U=e=>{const t=(0,n.useMemo)((()=>Math.max(Math.min(e.severity,5),1)),[e.severity]);return(0,Ae.jsxs)(ws,{container:!0,wrap:"nowrap",alignItems:"center",gap:"0.25rem",borderRadius:"4px",bgcolor:Kp[t],padding:"0.25rem 0.5rem",width:"100%",height:"100%",children:[KU[t],(0,Ae.jsx)(ws,{item:!0,flex:1,children:(0,Ae.jsx)(vu,{color:"white",variant:"body2",whiteSpace:"pre-line",style:{lineHeight:"1rem"},children:ZU[t]})})]})},JU=Zo()((()=>({root:{width:"100%",height:"100%",borderRadius:"10px",borderColor:"red"},copy:{color:jp,cursor:"pointer"},map:{cursor:"pointer"},copyHighlight:{color:"white",cursor:"pointer"},select:{display:"inline-block",minWidth:"6rem",marginRight:"0.8rem",fontSize:"0.9rem",zIndex:100},switch_track:{backgroundColor:"orange"},switch_base:{color:"orange","&.Mui-disabled":{color:"#e886a9"},"&.Mui-checked":{color:"#95cc97"},"&.Mui-checked + .MuiSwitch-track":{backgroundColor:"#4CAF50"}},switch_primary:{"&.Mui-checked":{color:"#4CAF50"},"&.Mui-checked + .MuiSwitch-track":{backgroundColor:"#4CAF50"}}}))),QU=e=>{var t,r,i;const{classes:o}=JU(),{assetsDefects:s,currentDefect:a,select:l,copyDefect:c,changeOpenClose:u,open:d,goToMap:h,filterAction:p,getFilterOptions:f}=e,[g,m]=(0,n.useState)([]),[y,v]=(0,n.useState)(""),[_,b]=(0,n.useState)(null),[x,S]=(0,n.useState)(!1),w=(0,n.useCallback)(((t,n,r)=>{if(e.unfilteredDefects){let n=e.unfilteredDefects.map((e=>({defect:e,annotationRef:e.annotations[0].annotationRef})));n=t?n.filter((e=>e.defect.blade===t)):n;const i=n.findIndex((e=>e.defect.id===r));if(-1!==i)return(i+1).toString()}return(n+1).toString()}),[e.unfilteredDefects]),E=(0,n.useCallback)(((t,n,r)=>{t.forEach(((t,i)=>{const o=e.annotations.find((e=>e.fileName===t.annotationRef));if(o){var s,a;const l=GU(t.defect.type)===PL.DISCONNECTED;n.push({identifier:r+w(r,i,t.defect.id),id:t.defect.id,severity:t.defect.severity,type:t.defect.type,delta:l?"-":SU(o),max:l?"-":o.thermalStats&&Ly(o.thermalStats.max,1),note:t.defect.note,nextStep:t.defect.nextStep,rootCause:t.defect.rootCause,location:t.annotationRef,hubDistance:t.defect.hubDistance?Ly(t.defect.hubDistance,1):0,blade:t.defect.blade,face:t.defect.face,altitude:Math.round(t.defect.altitude),towerHeading:t.defect.towerHeading,openClose:null!==(s=t.defect.openClose)&&void 0!==s&&s,nbModules:null!==(a=t.defect.nbModules)&&void 0!==a?a:0,size:"Solar"===e.type?"":C(o)})}}))}),[e.annotations,e.type,w]),P=(0,n.useCallback)((()=>{const t=e.defects.map((e=>({defect:{...e,openClose:!(!e.state||"closed"!==e.state.status),nbModules:e.annotations.length},annotationRef:e.annotations[0].annotationRef}))),n=[];if("Blades"===e.type)for(const e of["A","B","C"]){const r=t.filter((t=>t.defect.blade===e));E(r,n,e)}else E(t,n,"");m(n)}),[e.defects,e.type,E]),C=e=>{let t="";return e.realHeight&&e.realWidth&&(t="".concat(e.realWidth," x ").concat(e.realHeight)),t},A=(0,n.useCallback)((()=>{e.assetsDefects&&m(e.assetsDefects)}),[e.assetsDefects]);(0,n.useEffect)((()=>{e.assetsDefects?A():P()}),[e.defects,e.assetsDefects,e.annotations,P,A]);(0,n.useCallback)((t=>{const n=e.defects.find((e=>e.id===t));n&&(null===c||void 0===c||c({...n,annotations:[],new:!1}))}),[e.defects,c]);const[k,j]=(0,n.useState)();(0,n.useEffect)((()=>{if(k||0===e.defects.length)return;const t=new Map;e.defects.forEach((e=>{var n;t.set(e.id,"closed"===(null===(n=e.state)||void 0===n?void 0:n.status))})),j(t)}),[k,e.defects]);const I=t=>{let{defectId:n}=t;const r=null===k||void 0===k?void 0:k.get(n);return void 0===r?(0,Ae.jsx)(Ae.Fragment,{}):e.forbiddenEdit?r?(0,Ae.jsx)(Bh,{}):(0,Ae.jsx)(Ae.Fragment,{}):(0,Ae.jsx)("div",{onClick:e=>e.stopPropagation(),children:(0,Ae.jsx)(Aj,{checked:r,classes:{track:o.switch_track,switchBase:o.switch_base,colorPrimary:o.switch_primary},color:r?"primary":"default",onChange:e=>{j(new Map(k).set(n,e.target.checked)),wB()?(b(e.currentTarget),S(!0)):null===u||void 0===u||u(n,r?"open":"closed")}})})},G=(0,n.useCallback)(((t,n,r,i)=>{switch(t){case"active":return n?(0,Ae.jsx)(Bh,{}):(0,Ae.jsx)(Ae.Fragment,{});case"openClose":return e.forbiddenEdit?n?(0,Ae.jsx)(Bh,{}):(0,Ae.jsx)(Ae.Fragment,{}):(0,Ae.jsx)(I,{defectId:r.id});case"action":return(0,Ae.jsx)(wp,{margin:"auto",children:(0,Ae.jsx)($U,{severity:r.severity})});case"open":const t="".concat(window.location.host,"/inspections/").concat(r.inspectionId,"/defect/").concat(r.id);return(0,Ae.jsxs)(wp,{sx:{display:"flex",justifyContent:"space-evenly"},children:[(0,Ae.jsx)(Uj,{className:i?o.copyHighlight:o.copy,onClick:e=>{e.stopPropagation(),null===d||void 0===d||d(r.id,e)}}),(0,Ae.jsx)(IU,{url:t})]});case"nbComments":return!!r.nbComments&&(0,Ae.jsxs)("div",{style:{display:"inline-flex",marginLeft:"0.4rem",float:"left"},children:[(0,Ae.jsx)(hE,{color:i?"white":jp,style:{marginRight:r.nbComments>9?"-1rem":"-0.85rem",fontSize:"1.2rem"}}),(0,Ae.jsx)("div",{style:{zIndex:5,color:i?jp:"white",fontSize:r.nbComments>9?"0.7rem":"0.8rem"},children:r.nbComments})]});case"openAnalyze":return(0,Ae.jsx)(Zh,{className:i?o.copyHighlight:o.copy,onClick:e=>{e.stopPropagation(),null===d||void 0===d||d(r.id,e)}});case"map":return(0,Ae.jsx)(dE,{className:o.map,fontSize:"small",onClick:()=>{const t=e.defects.find((e=>e.id===r.id));t&&(null===h||void 0===h||h(t))}});case"severity":return e.type&&[RC.BLADES,RC.TOWER].includes(e.type)?(0,Ae.jsx)(wp,{width:"fit-content",margin:"auto",children:(0,Ae.jsx)(OU,{severity:n})}):"COMBINER BOX"===r.type?(0,Ae.jsx)("span",{style:{fontWeight:"bold"},children:"COMMENT"}):n>3?(0,Ae.jsx)("span",{style:{color:EU,fontWeight:"bold"},children:n}):3===n?(0,Ae.jsx)("span",{style:{color:PU,fontWeight:"bold"},children:n}):(0,Ae.jsx)("span",{style:{color:CU,fontWeight:"normal"},children:n});case"towerHeading":return null!=r.towerHeading?"".concat(r.towerHeading,"\xb0"):"-";default:return""}}),[o,e.type,e.forbiddenEdit,e.defects,u,d,h,k]),T=(0,n.useCallback)((()=>{if(a){const t=e.defects.find((e=>e.id===a.id));if(t)return void v(t.id)}if(e.currentAssetsDefect){const t=e.assetsDefects&&e.assetsDefects.find((t=>e.currentAssetsDefect.id===t.id));t&&v(e.currentAssetsDefect.id)}else v("")}),[a,e.defects,e.currentAssetsDefect,e.assetsDefects]);(0,n.useEffect)((()=>{T()}),[T,e.currentDefect,e.currentAssetsDefect]);const M=(0,n.useCallback)((t=>{if(s){const e=s.find((e=>e.id===t));e&&(null===l||void 0===l||l(e))}else{const n=e.defects.find((e=>e.id===t));n&&(null===l||void 0===l||l(n))}}),[s,e.defects,l]),O=(0,n.useCallback)((e=>({filterOptions:f?f(e):[],filterAction:p})),[f,p]),R="Results"===e.origin,D=(0,n.useMemo)((()=>!R),[R]),N=(0,n.useMemo)((()=>({id:"id",label:"Id",hidden:!0})),[]),L=(0,n.useMemo)((()=>({name:"id",hidden:!0})),[]),V=(0,n.useMemo)((()=>R?[{id:"identifier",label:"Id"}]:[]),[R]),F=(0,n.useMemo)((()=>R?[{name:"identifier"}]:[]),[R]),z=(0,n.useMemo)((()=>"Assets"===e.origin?[{id:"asset",label:"Asset",filter:!0,...O("asset")}]:[]),[e.origin,O]),B=(0,n.useMemo)((()=>"Assets"!==e.origin?[]:[{name:"asset",align:"left",css:{paddingLeft:"0.5rem"}}]),[e.origin]),U=(0,n.useMemo)((()=>({id:"type",label:"Type",filter:!0,...O("type")})),[O]),W=(0,n.useMemo)((()=>D?[{id:"open",label:"Open inspection"}]:[]),[D]),H=(0,n.useMemo)((()=>"Results"!==e.origin||e.forbiddenEdit||Wy()?[]:[{id:"openAnalyze",label:"Edit",noSort:!0}]),[e.origin,e.forbiddenEdit]),q=(0,n.useMemo)((()=>"Results"!==e.origin||e.forbiddenEdit||Wy()?[]:[{name:"openAnalyze",type:"specific"}]),[e.origin,e.forbiddenEdit]),X=(0,n.useMemo)((()=>"Assets"===e.origin?[{id:"active",label:"Latest",filter:!0,...O("active")}]:[]),[e.origin,O]),Y=(0,n.useMemo)((()=>"Assets"===e.origin?[{name:"active",type:"specific",childCSS:{marginLeft:"-18px"}}]:[]),[e.origin]),K=(0,n.useMemo)((()=>[{name:"openClose",type:"specific"}]),[]),Z=(0,n.useMemo)((()=>D?[{id:"nbComments",label:"Comments",icon:(0,Ae.jsx)(pE,{size:16})}]:[]),[D]),$=(0,n.useMemo)((()=>D?[{name:"nbComments",type:"specific",childCSS:{marginLeft:"-9px"}}]:[]),[D]),J=(0,n.useMemo)((()=>0!==e.annotations.length&&e.annotations.every((e=>{let{inspectionId:t}=e;return["Vsek5AouMMP1mQ9lyagJ","fJW0qHy02oEwPjXaEpHn","VW24JyNOAojNi3VNpqBk","V0AGhGxmleANAPKStaui"].includes(null!==t&&void 0!==t?t:"")}))),[e.annotations]),Q=(0,n.useMemo)((()=>[N,...V,...z,..."Assets"===e.origin||"Asset"===e.origin?[{id:"subAsset",label:"Subasset",filter:!0,...O("subAsset")}]:[],...D?[{id:"model",label:"Model",filter:!0,...O("model")}]:[],U,{id:"severity",numeric:!0,label:Wy()?"Sev":"Severity",filter:!0,...O("severity")},{id:"delta",numeric:!0,label:"DeltaT \xb0C",loading:!!e.loadingSolar,TrailingContent:J?()=>(0,Ae.jsx)(cu,{title:"Normalized to 1000W/m\xb2",children:(0,Ae.jsx)("div",{children:(0,Ae.jsx)(_U.c,{color:"primary",fontSize:"small"})})}):void 0},...Wy()?[]:[{id:"max",numeric:!0,label:"MaxT \xb0C",loading:!!e.loadingSolar}],{id:"nbModules",numeric:!0,label:"Modules impacted"},...W,...Z,...H,...X,{label:"Resolved (".concat(g.filter((e=>{let{openClose:t}=e;return t})).length,")"),id:"openClose",noSort:!0,filter:!0,...O("openClose")}]),[X,O,z,D,Z,N,V,J,g,H,W,e.loadingSolar,e.origin,U]),ee=(0,n.useMemo)((()=>[L,...F,...B,..."Assets"===e.origin||"Asset"===e.origin?[{name:"subAsset",align:"left"}]:[],...D?[{name:"model",align:"left"}]:[],{name:"type",align:"center",childCSS:D?{marginLeft:"-18px"}:{}},{name:"severity",type:"specific",childCSS:D?{marginLeft:"-18px"}:{}},{name:"delta",childCSS:D?{marginLeft:"-18px"}:{}},...Wy()?[]:[{name:"max",childCSS:D?{marginLeft:"-18px"}:{}}],{name:"nbModules",childCSS:D?{marginLeft:"-18px"}:{}},...D?[{name:"open",type:"specific",childCSS:{marginLeft:"-18px"}}]:[],...$,...q,...Y,...K]),[L,F,B,e.origin,D,$,q,Y,K]),te=(0,n.useMemo)((()=>[N,...V,...z,..."Assets"===e.origin||"Asset"===e.origin?[{id:"subAsset",label:"Turbine",filter:!0,...O("subAsset")}]:[],...D?[{id:"model",label:"Model",filter:!0,css:{padding:"1rem 0"},...O("model")}]:[],U,...D?[{id:"size",label:"Defect size (cm)",noSort:!0,loading:!!e.loadingWind}]:[],{id:"severity",numeric:!0,label:"Severity",filter:!0,...O("severity")},...D?[{id:"action",label:"Action",noSort:!0}]:[],...D?[{id:"nextStep",label:"Next step"}]:[],{id:"blade",label:"Blade"},{id:"face",label:"Side"},{id:"hubDistance",label:"Root blade distance (m)"},...D?[]:[{id:"size",label:"Defect size (cm)",noSort:!0,loading:!!e.loadingWind}],...Z,...H,{label:"Resolved (".concat(g.filter((e=>{let{openClose:t}=e;return t})).length,")"),id:"openClose",noSort:!0,filter:!0,...O("openClose")}]),[O,z,D,Z,N,V,g,H,e.loadingWind,e.origin,U]),ne=(0,n.useMemo)((()=>[L,...F,...B,..."Assets"===e.origin||"Asset"===e.origin?[{name:"subAsset",align:"left",css:"Asset"===e.origin?{paddingLeft:"0.5rem"}:{}}]:[],...D?[{name:"model",align:"left"}]:[],{name:"type",align:"left"},...D?[{name:"size",align:"left"}]:[],{name:"severity",align:"left",type:"specific",childCSS:D?{marginLeft:"-18px"}:{}},...D?[{name:"action",type:"specific"}]:[],...D?[{name:"nextStep",align:"left",css:{maxWidth:"10rem",lineHeight:"0.9rem"}}]:[],{name:"blade",align:"center",childCSS:D?{marginLeft:"-18px"}:{}},{name:"face",childCSS:D?{marginLeft:"-18px"}:{}},{name:"hubDistance",childCSS:D?{marginLeft:"-18px"}:{}},...D?[]:[{name:"size"}],...$,...q,...K]),[L,F,B,e.origin,D,$,q,K]),re=(0,n.useMemo)((()=>[N,...V,...z,..."Assets"===e.origin||"Asset"===e.origin?[{id:"subAsset",label:"Turbine",filter:!0,...O("subAsset")}]:[],...D?[{id:"model",label:"Model",filter:!0,...O("model")}]:[],U,{id:"severity",numeric:!0,label:"Severity",filter:"Results"===e.origin,...O("severity")},{id:"altitude",label:"Altitude"},{id:"towerHeading",label:"Heading"},...W,...Z,...H,...X,{label:"Resolved (".concat(g.filter((e=>{let{openClose:t}=e;return t})).length,")"),noSort:!0,id:"openClose",filter:!0,...O("openClose")}]),[X,O,z,D,Z,N,V,g,H,W,e.origin,U]),ie=(0,n.useMemo)((()=>[L,...F,...B,..."Assets"===e.origin||"Asset"===e.origin?[{name:"subAsset"}]:[],...D?[{name:"model"}]:[],{name:"type"},{name:"severity",type:"specific"},{name:"altitude"},{name:"towerHeading",type:"specific"},...D?[{name:"open",type:"specific"}]:[],...$,...q,...Y,...K]),[L,F,B,e.origin,D,$,q,Y,K]),oe=(0,n.useMemo)((()=>"Tower"===e.type?re:"Blades"===e.type?te:Q),[e.type,re,te,Q]),se=(0,n.useMemo)((()=>"Tower"===e.type?ie:"Blades"===e.type?ne:ee),[e.type,ie,ne,ee]);return(0,Ae.jsxs)(Ae.Fragment,{children:[(0,Ae.jsx)("div",{style:{height:null!==(t=e.height)&&void 0!==t?t:void 0},children:(0,Ae.jsx)(jT,{arrowKey:!0,ariaLabel:"enhanced table",noPagination:!!e.noPagination,noShift:D,dense:!0,maxHeight:null!==(r=e.maxHeight)&&void 0!==r?r:"65vh",height:e.tableHeight,headCells:oe,contentCells:se,order:e.order?e.order:"asc",orderBy:e.orderBy?e.orderBy:"id",rows:g,selectRow:M,rootStyle:o.root,highlightId:y,rowsPerPage:D?25:10,specificFormat:G,specificSort:"Blades"===e.type?(e,t,n)=>{if("identifier"===n){const r=e.map((e=>e));return r.sort(((e,t)=>e[n].charAt(0)===t[n].charAt(0)?parseInt(e[n].slice(1))>parseInt(t[n].slice(1))?1:-1:e[n].charAt(0)>t[n].charAt(0)?1:-1)),"asc"===t?r:r.reverse()}return ky(e,t,n)}:void 0,setFirstId:e.firstId,autoColumnsSize:D&&e.type===RC.BLADES,evenColumns:void 0===e.evenColumns||e.evenColumns,checkBox:null!==(i=e.checkBox)&&void 0!==i?i:void 0,loading:e.loadingList,resetFilters:e.resetFilters,changeResetFilters:e.changeResetFilters,noShadow:D})}),0===g.length&&!e.assetsDefects&&!e.loadingList&&(0,Ae.jsx)("div",{style:{padding:"0.8rem"},children:"There are currently no defects"}),(0,Ae.jsx)(Ud,{open:x,anchorEl:_,onClose:()=>S(!1),anchorOrigin:{vertical:"top",horizontal:"center"},transformOrigin:{vertical:"bottom",horizontal:"center"},children:(0,Ae.jsx)(jU,{})})]})},eW=(e,t,n,r)=>{const i=e*Math.PI/180,o=n*Math.PI/180,s=(n-e)*Math.PI/180,a=(r-t)*Math.PI/180,l=Math.sin(s/2)*Math.sin(s/2)+Math.cos(i)*Math.cos(o)*Math.sin(a/2)*Math.sin(a/2);return 6371e3*(2*Math.atan2(Math.sqrt(l),Math.sqrt(1-l)))},tW=(e,t)=>{let n="";if("Tower"===t.type){var r,i,o;const a=bU(null===(r=t.currentPhotoExif)||void 0===r?void 0:r.exif.gimbalYawDegree,null===(i=t.currentPhotoExif)||void 0===i?void 0:i.exif.flightYawDegree);let l,c,u,d;const h=Math.round(a),p=Math.round(null===(o=t.currentPhotoExif)||void 0===o?void 0:o.exif.relativeAltitude);let f=360,g=5;for(const t of Object.values(e.photos)){var s;if(t.uploaded&&void 0!==t.exif)l=Math.round(null!==(s=bU(t.exif.gimbalYawDegree,t.exif.flightYawDegree))&&void 0!==s?s:0),u=Math.round(t.exif.relativeAltitude),d=Math.abs(p-u),c=Math.abs(h-l),c<f&&d<g&&(f=c,g=d,n=t.id)}}else if("Blades"===t.type){var a,l,c,u;const r=null===(a=t.currentPhotoExif)||void 0===a?void 0:a.hubDistance;let i,o=5;const s=null===(l=t.currentPhotoExif)||void 0===l?void 0:l.blade,d=null===(c=t.currentPhotoExif)||void 0===c?void 0:c.side,h=null===(u=t.currentPhotoExif)||void 0===u?void 0:u.edge;for(const t of Object.values(e.photos))t.uploaded&&t.blade===s&&(""!==d&&t.side===d&&(i=Math.abs(t.hubDistance-r),i<=o&&(o=i,n=t.id)),""!==h&&t.edge===h&&(i=Math.abs(t.hubDistance-r),i<=o&&(o=i,n=t.id)))}else if("Solar"===t.type){var d,h;const r=null===(d=t.currentPhotoExif)||void 0===d?void 0:d.exif.latitude,i=null===(h=t.currentPhotoExif)||void 0===h?void 0:h.exif.longitude;let o=10;for(const t of Object.values(e.photos))if(t.uploaded){if(parseInt(t.id)%2!==0){const e=t.exif.latitude,s=t.exif.longitude,a=eW(r,i,e,s);a<o&&(o=a,n=t.id)}}}return n},nW=e=>{const[t,r]=(0,n.useState)(!1),[i,o]=(0,n.useState)(!1),[s,a]=(0,n.useState)(""),l=m(),[c,u]=(0,n.useState)({selected:[],lock:!1}),[d,h]=(0,n.useState)([]),[p,f]=(0,n.useState)([]);(0,n.useEffect)((()=>{t&&0===d.length&&(async()=>{o(!0);const t=await fV(e.inspectionId);h(t),o(!1)})()}),[t]),(0,n.useEffect)((()=>{g()}),[e.currentPhotoData]);const g=()=>{const e=c.selected;e.forEach((t=>{const n=p.find((e=>e.inspectionId===t.inspectionId));n&&y(t.inspectionId,e,n)}))},y=async(t,n,r)=>{const i=d.find((e=>e.id===t)),o=tW(r,e),s=ze()(null===i||void 0===i?void 0:i.inspectionDate).format("DD-MM-YYYY HH:mm");if(null!==o&&void 0!==o){var a;const r=await gV(t,o,"Solar"===e.type),i=r[0][0],l=r.length>0?r[1][0]:"",c=r.length>0?r[2][0]:"",u=r.length>0?null===r||void 0===r||null===(a=r[3])||void 0===a?void 0:a[0]:"",d=n.findIndex((e=>e.inspectionId===t));-1!==d?n[d]={inspectionId:t,photoURL:i,thermalCelciusURL:l,thermalPixelURL:c,thermalJpgURL:u,date:s,photoKey:o}:n.push({inspectionId:t,photoURL:i,thermalCelciusURL:l,thermalPixelURL:c,thermalJpgURL:u,date:s,photoKey:o})}else{const e=n.findIndex((e=>e.inspectionId===t));-1!==e?n[e]={inspectionId:t,photoURL:"not_found",thermalCelciusURL:"",thermalPixelURL:"",thermalJpgURL:"",date:s,photoKey:""}:n.push({inspectionId:t,photoURL:"not_found",thermalCelciusURL:"",thermalPixelURL:"",thermalJpgURL:"",date:s,photoKey:""})}u({selected:n,lock:n.length>=2}),e.callbackComparison(n)},v=async t=>{const n=t.target.value;let r=c.selected,i=p.find((e=>e.inspectionId===n));if(!i){a(n);const t=await jL(n,e.type,!1);l(Og({inspectId:n,annots:t.annotations})),a(""),i={inspectionId:n,...t},t&&f([...p,i])}r.find((e=>e.inspectionId===n))?(r=r.filter((e=>e.inspectionId!==n)),e.callbackComparison(r),u({selected:r,lock:!1})):(r.push({inspectionId:n,photoURL:"",thermalCelciusURL:"",thermalPixelURL:"",thermalJpgURL:"",date:"",photoKey:""}),u({selected:r,lock:!1}),y(n,r,i))};return(0,Ae.jsxs)(Ph,{square:!0,disableGutters:!0,expanded:t,children:[(0,Ae.jsx)(Th,{expandIcon:(0,Ae.jsx)(cp.c,{}),"aria-controls":"panel1a-content",id:"panel1a-header",onClick:()=>{r(!t)},children:(0,Ae.jsxs)(vu,{color:"secondary",style:{cursor:"default"},children:["Comparison",c.selected.length>0&&(0,Ae.jsx)(Sa,{style:{marginLeft:10},color:"primary",variant:"outlined",size:"small",className:"ml-2 noOutline",onClick:()=>{const t=[];e.callbackComparison(t),u({selected:t,lock:!1})},children:"Clear"})]})}),(0,Ae.jsx)(Dh,{style:{padding:"0px"},children:(0,Ae.jsx)("div",{id:"ComparisonContainer",children:d&&d.length>0?(0,Ae.jsx)("form",{children:[...d].sort(((e,t)=>e.inspectionDate<=t.inspectionDate?1:-1)).map(((e,t)=>(0,Ae.jsx)("div",{className:"d-flex justify-content-between mr-3",children:(0,Ae.jsxs)("div",{children:[s!==e.id&&(0,Ae.jsx)("input",{className:"checkboxesComparison",type:"checkbox",id:"inspection"+t,value:e.id,onChange:v,disabled:c.lock&&!c.selected.find((t=>t.inspectionId===e.id)),checked:void 0!==c.selected.find((t=>t.inspectionId===e.id))}),s===e.id&&(0,Ae.jsx)($y,{size:14,style:{display:"inline",paddingRight:5}}),(0,Ae.jsxs)("div",{style:{display:"inline-flex"},children:[ze()(e.inspectionDate).format("DD-MM-YYYY HH:mm"),!_B()&&(0,Ae.jsx)(Uj,{style:{cursor:"pointer",marginLeft:"0.4rem"},color:jp,onClick:()=>window.open("/inspections/".concat(e.id))})]})]})},t)))}):(0,Ae.jsx)(vu,{className:"noUserSelect m-1",color:"secondary",children:i?"Loading previous inspections\u2026":"No previous inspections available"})})})]})};var rW=__webpack_require__(4948);function iW(e){return(0,hs.c)("MuiButtonGroup",e)}const oW=(0,ds.c)("MuiButtonGroup",["root","contained","outlined","text","disableElevation","disabled","fullWidth","vertical","grouped","groupedHorizontal","groupedVertical","groupedText","groupedTextHorizontal","groupedTextVertical","groupedTextPrimary","groupedTextSecondary","groupedOutlined","groupedOutlinedHorizontal","groupedOutlinedVertical","groupedOutlinedPrimary","groupedOutlinedSecondary","groupedContained","groupedContainedHorizontal","groupedContainedVertical","groupedContainedPrimary","groupedContainedSecondary"]),sW=["children","className","color","component","disabled","disableElevation","disableFocusRipple","disableRipple","fullWidth","orientation","size","variant"],aW=(0,cs.cp)("div",{name:"MuiButtonGroup",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{["& .".concat(oW.grouped)]:t.grouped},{["& .".concat(oW.grouped)]:t["grouped".concat((0,ha.c)(n.orientation))]},{["& .".concat(oW.grouped)]:t["grouped".concat((0,ha.c)(n.variant))]},{["& .".concat(oW.grouped)]:t["grouped".concat((0,ha.c)(n.variant)).concat((0,ha.c)(n.orientation))]},{["& .".concat(oW.grouped)]:t["grouped".concat((0,ha.c)(n.variant)).concat((0,ha.c)(n.color))]},t.root,t[n.variant],!0===n.disableElevation&&t.disableElevation,n.fullWidth&&t.fullWidth,"vertical"===n.orientation&&t.vertical]}})((e=>{let{theme:t,ownerState:n}=e;return(0,d.c)({display:"inline-flex",borderRadius:(t.vars||t).shape.borderRadius},"contained"===n.variant&&{boxShadow:(t.vars||t).shadows[2]},n.disableElevation&&{boxShadow:"none"},n.fullWidth&&{width:"100%"},"vertical"===n.orientation&&{flexDirection:"column"},{["& .".concat(oW.grouped)]:(0,d.c)({minWidth:40,"&:not(:first-of-type)":(0,d.c)({},"horizontal"===n.orientation&&{borderTopLeftRadius:0,borderBottomLeftRadius:0},"vertical"===n.orientation&&{borderTopRightRadius:0,borderTopLeftRadius:0},"outlined"===n.variant&&"horizontal"===n.orientation&&{marginLeft:-1},"outlined"===n.variant&&"vertical"===n.orientation&&{marginTop:-1}),"&:not(:last-of-type)":(0,d.c)({},"horizontal"===n.orientation&&{borderTopRightRadius:0,borderBottomRightRadius:0},"vertical"===n.orientation&&{borderBottomRightRadius:0,borderBottomLeftRadius:0},"text"===n.variant&&"horizontal"===n.orientation&&{borderRight:t.vars?"1px solid rgba(".concat(t.vars.palette.common.onBackgroundChannel," / 0.23)"):"1px solid ".concat("light"===t.palette.mode?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)")},"text"===n.variant&&"vertical"===n.orientation&&{borderBottom:t.vars?"1px solid rgba(".concat(t.vars.palette.common.onBackgroundChannel," / 0.23)"):"1px solid ".concat("light"===t.palette.mode?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)")},"text"===n.variant&&"inherit"!==n.color&&{borderColor:t.vars?"rgba(".concat(t.vars.palette[n.color].mainChannel," / 0.5)"):(0,Ps.W4)(t.palette[n.color].main,.5)},"outlined"===n.variant&&"horizontal"===n.orientation&&{borderRightColor:"transparent"},"outlined"===n.variant&&"vertical"===n.orientation&&{borderBottomColor:"transparent"},"contained"===n.variant&&"horizontal"===n.orientation&&{borderRight:"1px solid ".concat((t.vars||t).palette.grey[400]),["&.".concat(oW.disabled)]:{borderRight:"1px solid ".concat((t.vars||t).palette.action.disabled)}},"contained"===n.variant&&"vertical"===n.orientation&&{borderBottom:"1px solid ".concat((t.vars||t).palette.grey[400]),["&.".concat(oW.disabled)]:{borderBottom:"1px solid ".concat((t.vars||t).palette.action.disabled)}},"contained"===n.variant&&"inherit"!==n.color&&{borderColor:(t.vars||t).palette[n.color].dark},{"&:hover":(0,d.c)({},"outlined"===n.variant&&"horizontal"===n.orientation&&{borderRightColor:"currentColor"},"outlined"===n.variant&&"vertical"===n.orientation&&{borderBottomColor:"currentColor"})}),"&:hover":(0,d.c)({},"contained"===n.variant&&{boxShadow:"none"})},"contained"===n.variant&&{boxShadow:"none"})})})),lW=n.forwardRef((function(e,t){const r=(0,Oe.c)({props:e,name:"MuiButtonGroup"}),{children:i,className:o,color:s="primary",component:a="div",disabled:l=!1,disableElevation:c=!1,disableFocusRipple:u=!1,disableRipple:h=!1,fullWidth:p=!1,orientation:f="horizontal",size:g="medium",variant:m="outlined"}=r,y=(0,Tt.c)(r,sW),v=(0,d.c)({},r,{color:s,component:a,disabled:l,disableElevation:c,disableFocusRipple:u,disableRipple:h,fullWidth:p,orientation:f,size:g,variant:m}),_=(e=>{const{classes:t,color:n,disabled:r,disableElevation:i,fullWidth:o,orientation:s,variant:a}=e,l={root:["root",a,"vertical"===s&&"vertical",o&&"fullWidth",i&&"disableElevation"],grouped:["grouped","grouped".concat((0,ha.c)(s)),"grouped".concat((0,ha.c)(a)),"grouped".concat((0,ha.c)(a)).concat((0,ha.c)(s)),"grouped".concat((0,ha.c)(a)).concat((0,ha.c)(n)),r&&"disabled"]};return(0,ls.c)(l,iW,t)})(v),b=n.useMemo((()=>({className:_.grouped,color:s,disabled:l,disableElevation:c,disableFocusRipple:u,disableRipple:h,fullWidth:p,size:g,variant:m})),[s,l,c,u,h,p,g,m,_.grouped]);return(0,Ae.jsx)(aW,(0,d.c)({as:a,role:"group",className:(0,ts.c)(_.root,o),ref:t,ownerState:v},y,{children:(0,Ae.jsx)(ga.Provider,{value:b,children:i})}))})),cW=lW;function uW(e){return(0,hs.c)("MuiSlider",e)}const dW=(0,ds.c)("MuiSlider",["root","active","focusVisible","disabled","dragging","marked","vertical","trackInverted","trackFalse","rail","track","mark","markActive","markLabel","markLabelActive","thumb","valueLabel","valueLabelOpen","valueLabelCircle","valueLabelLabel"]);function hW(e){const{children:t,className:r,value:i}=e,o=(e=>{const{open:t}=e;return{offset:(0,ts.c)(t&&dW.valueLabelOpen),circle:dW.valueLabelCircle,label:dW.valueLabelLabel}})(e);return n.cloneElement(t,{className:(0,ts.c)(t.props.className)},(0,Ae.jsxs)(n.Fragment,{children:[t.props.children,(0,Ae.jsx)("span",{className:(0,ts.c)(o.offset,r),"aria-hidden":!0,children:(0,Ae.jsx)("span",{className:o.circle,children:(0,Ae.jsx)("span",{className:o.label,children:i})})})]}))}var pW=__webpack_require__(39956);const fW={border:0,clip:"rect(0 0 0 0)",height:"1px",margin:-1,overflow:"hidden",padding:0,position:"absolute",whiteSpace:"nowrap",width:"1px"};function gW(e,t){return e-t}function mW(e,t,n){return null==e?t:Math.min(Math.max(t,e),n)}function yW(e,t){var n;const{index:r}=null!=(n=e.reduce(((e,n,r)=>{const i=Math.abs(t-n);return null===e||i<e.distance||i===e.distance?{distance:i,index:r}:e}),null))?n:{};return r}function vW(e,t){if(void 0!==t.current&&e.changedTouches){const n=e;for(let e=0;e<n.changedTouches.length;e+=1){const r=n.changedTouches[e];if(r.identifier===t.current)return{x:r.clientX,y:r.clientY}}return!1}return{x:e.clientX,y:e.clientY}}function _W(e,t,n){return 100*(e-t)/(n-t)}function bW(e,t,n){const r=Math.round((e-n)/t)*t+n;return Number(r.toFixed(function(e){if(Math.abs(e)<1){const t=e.toExponential().split("e-"),n=t[0].split(".")[1];return(n?n.length:0)+parseInt(t[1],10)}const t=e.toString().split(".")[1];return t?t.length:0}(t)))}function xW(e){let{values:t,newValue:n,index:r}=e;const i=t.slice();return i[r]=n,i.sort(gW)}function SW(e){let{sliderRef:t,activeIndex:n,setActive:r}=e;var i,o;const s=(0,al.c)(t.current);var a;null!=(i=t.current)&&i.contains(s.activeElement)&&Number(null==s||null==(o=s.activeElement)?void 0:o.getAttribute("data-index"))===n||(null==(a=t.current)||a.querySelector('[type="range"][data-index="'.concat(n,'"]')).focus());r&&r(n)}const wW={horizontal:{offset:e=>({left:"".concat(e,"%")}),leap:e=>({width:"".concat(e,"%")})},"horizontal-reverse":{offset:e=>({right:"".concat(e,"%")}),leap:e=>({width:"".concat(e,"%")})},vertical:{offset:e=>({bottom:"".concat(e,"%")}),leap:e=>({height:"".concat(e,"%")})}},EW=e=>e;let PW;function CW(){return void 0===PW&&(PW="undefined"===typeof CSS||"function"!==typeof CSS.supports||CSS.supports("touch-action","none")),PW}function AW(e){const{"aria-labelledby":t,defaultValue:r,disabled:i=!1,disableSwap:o=!1,isRtl:s=!1,marks:a=!1,max:l=100,min:c=0,name:u,onChange:h,onChangeCommitted:p,orientation:f="horizontal",ref:g,scale:m=EW,step:y=1,tabIndex:v,value:_}=e,b=n.useRef(),[x,S]=n.useState(-1),[w,E]=n.useState(-1),[P,C]=n.useState(!1),A=n.useRef(0),[k,j]=(0,qb.c)({controlled:_,default:null!=r?r:c,name:"Slider"}),I=h&&((e,t,n)=>{const r=e.nativeEvent||e,i=new r.constructor(r.type,r);Object.defineProperty(i,"target",{writable:!0,value:{value:t,name:u}}),h(i,t,n)}),G=Array.isArray(k);let T=G?k.slice().sort(gW):[k];T=T.map((e=>mW(e,c,l)));const M=!0===a&&null!==y?[...Array(Math.floor((l-c)/y)+1)].map(((e,t)=>({value:c+y*t}))):a||[],O=M.map((e=>e.value)),{isFocusVisibleRef:R,onBlur:D,onFocus:N,ref:L}=(0,pW.c)(),[V,F]=n.useState(-1),z=n.useRef(),B=(0,ol.c)(L,z),U=(0,ol.c)(g,B),W=e=>t=>{var n;const r=Number(t.currentTarget.getAttribute("data-index"));N(t),!0===R.current&&F(r),E(r),null==e||null==(n=e.onFocus)||n.call(e,t)},H=e=>t=>{var n;D(t),!1===R.current&&F(-1),E(-1),null==e||null==(n=e.onBlur)||n.call(e,t)};(0,sl.c)((()=>{var e;i&&z.current.contains(document.activeElement)&&(null==(e=document.activeElement)||e.blur())}),[i]),i&&-1!==x&&S(-1),i&&-1!==V&&F(-1);const q=e=>t=>{var n;null==(n=e.onChange)||n.call(e,t);const r=Number(t.currentTarget.getAttribute("data-index")),i=T[r],s=O.indexOf(i);let a=t.target.valueAsNumber;if(M&&null==y&&(a=a<i?O[s-1]:O[s+1]),a=mW(a,c,l),M&&null==y){const e=O.indexOf(T[r]);a=a<T[r]?O[e-1]:O[e+1]}if(G){o&&(a=mW(a,T[r-1]||-1/0,T[r+1]||1/0));const e=a;a=xW({values:T,newValue:a,index:r});let t=r;o||(t=a.indexOf(e)),SW({sliderRef:z,activeIndex:t})}j(a),F(r),I&&I(t,a,r),p&&p(t,a)},X=n.useRef();let Y=f;s&&"horizontal"===f&&(Y+="-reverse");const K=e=>{let{finger:t,move:n=!1}=e;const{current:r}=z,{width:i,height:s,bottom:a,left:u}=r.getBoundingClientRect();let d,h;if(d=0===Y.indexOf("vertical")?(a-t.y)/s:(t.x-u)/i,-1!==Y.indexOf("-reverse")&&(d=1-d),h=function(e,t,n){return(n-t)*e+t}(d,c,l),y)h=bW(h,y,c);else{const e=yW(O,h);h=O[e]}h=mW(h,c,l);let p=0;if(G){p=n?X.current:yW(T,h),o&&(h=mW(h,T[p-1]||-1/0,T[p+1]||1/0));const e=h;h=xW({values:T,newValue:h,index:p}),o&&n||(p=h.indexOf(e),X.current=p)}return{newValue:h,activeIndex:p}},Z=(0,nd.c)((e=>{const t=vW(e,b);if(!t)return;if(A.current+=1,"mousemove"===e.type&&0===e.buttons)return void $(e);const{newValue:n,activeIndex:r}=K({finger:t,move:!0});SW({sliderRef:z,activeIndex:r,setActive:S}),j(n),!P&&A.current>2&&C(!0),I&&n!==k&&I(e,n,r)})),$=(0,nd.c)((e=>{const t=vW(e,b);if(C(!1),!t)return;const{newValue:n}=K({finger:t,move:!0});S(-1),"touchend"===e.type&&E(-1),p&&p(e,n),b.current=void 0,Q()})),J=(0,nd.c)((e=>{if(i)return;CW()||e.preventDefault();const t=e.changedTouches[0];null!=t&&(b.current=t.identifier);const n=vW(e,b);if(!1!==n){const{newValue:t,activeIndex:r}=K({finger:n});SW({sliderRef:z,activeIndex:r,setActive:S}),j(t),I&&I(e,t,r)}A.current=0;const r=(0,al.c)(z.current);r.addEventListener("touchmove",Z),r.addEventListener("touchend",$)})),Q=n.useCallback((()=>{const e=(0,al.c)(z.current);e.removeEventListener("mousemove",Z),e.removeEventListener("mouseup",$),e.removeEventListener("touchmove",Z),e.removeEventListener("touchend",$)}),[$,Z]);n.useEffect((()=>{const{current:e}=z;return e.addEventListener("touchstart",J,{passive:CW()}),()=>{e.removeEventListener("touchstart",J,{passive:CW()}),Q()}}),[Q,J]),n.useEffect((()=>{i&&Q()}),[i,Q]);const ee=e=>t=>{var n;if(null==(n=e.onMouseDown)||n.call(e,t),i)return;if(t.defaultPrevented)return;if(0!==t.button)return;t.preventDefault();const r=vW(t,b);if(!1!==r){const{newValue:e,activeIndex:n}=K({finger:r});SW({sliderRef:z,activeIndex:n,setActive:S}),j(e),I&&I(t,e,n)}A.current=0;const o=(0,al.c)(z.current);o.addEventListener("mousemove",Z),o.addEventListener("mouseup",$)},te=_W(G?T[0]:c,c,l),ne=_W(T[T.length-1],c,l)-te,re=e=>t=>{var n;null==(n=e.onMouseOver)||n.call(e,t);const r=Number(t.currentTarget.getAttribute("data-index"));E(r)},ie=e=>t=>{var n;null==(n=e.onMouseLeave)||n.call(e,t),E(-1)};return{active:x,axis:Y,axisProps:wW,dragging:P,focusedThumbIndex:V,getHiddenInputProps:function(){let n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};var r;const o={onChange:q(n||{}),onFocus:W(n||{}),onBlur:H(n||{})},a=(0,d.c)({},n,o);return(0,d.c)({tabIndex:v,"aria-labelledby":t,"aria-orientation":f,"aria-valuemax":m(l),"aria-valuemin":m(c),name:u,type:"range",min:e.min,max:e.max,step:null!=(r=e.step)?r:void 0,disabled:i},a,{style:(0,d.c)({},fW,{direction:s?"rtl":"ltr",width:"100%",height:"100%"})})},getRootProps:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const t={onMouseDown:ee(e||{})},n=(0,d.c)({},e,t);return(0,d.c)({ref:U},n)},getThumbProps:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const t={onMouseOver:re(e||{}),onMouseLeave:ie(e||{})};return(0,d.c)({},e,t)},marks:M,open:w,range:G,trackLeap:ne,trackOffset:te,values:T}}const kW=["aria-label","aria-valuetext","aria-labelledby","className","component","classes","disableSwap","disabled","getAriaLabel","getAriaValueText","marks","max","min","name","onChange","onChangeCommitted","orientation","scale","step","tabIndex","track","value","valueLabelDisplay","valueLabelFormat","isRtl","slotProps","slots"],jW=e=>e,IW=e=>{let{children:t}=e;return t},GW=n.forwardRef((function(e,t){var r,i,o,s,a,l,c;const{"aria-label":u,"aria-valuetext":h,"aria-labelledby":p,className:f,component:g,classes:m,disableSwap:y=!1,disabled:v=!1,getAriaLabel:_,getAriaValueText:b,marks:x=!1,max:S=100,min:w=0,orientation:E="horizontal",scale:P=jW,step:C=1,track:A="normal",valueLabelDisplay:k="off",valueLabelFormat:j=jW,isRtl:I=!1,slotProps:G={},slots:T={}}=e,M=(0,Tt.c)(e,kW),O=(0,d.c)({},e,{marks:x,classes:m,disabled:v,isRtl:I,max:S,min:w,orientation:E,scale:P,step:C,track:A,valueLabelDisplay:k,valueLabelFormat:j}),{axisProps:R,getRootProps:D,getHiddenInputProps:N,getThumbProps:L,open:V,active:F,axis:z,range:B,focusedThumbIndex:U,dragging:W,marks:H,values:q,trackOffset:X,trackLeap:Y}=AW((0,d.c)({},O,{ref:t}));O.marked=H.length>0&&H.some((e=>e.label)),O.dragging=W,O.focusedThumbIndex=U;const K=(e=>{const{disabled:t,dragging:n,marked:r,orientation:i,track:o,classes:s}=e,a={root:["root",t&&"disabled",n&&"dragging",r&&"marked","vertical"===i&&"vertical","inverted"===o&&"trackInverted",!1===o&&"trackFalse"],rail:["rail"],track:["track"],mark:["mark"],markActive:["markActive"],markLabel:["markLabel"],markLabelActive:["markLabelActive"],valueLabel:["valueLabel"],thumb:["thumb",t&&"disabled"],active:["active"],disabled:["disabled"],focusVisible:["focusVisible"]};return(0,ls.c)(a,uW,s)})(O),Z=null!=(r=null!=g?g:T.root)?r:"span",$=Nc({elementType:Z,getSlotProps:D,externalSlotProps:G.root,externalForwardedProps:M,ownerState:O,className:[K.root,f]}),J=null!=(i=T.rail)?i:"span",Q=Nc({elementType:J,externalSlotProps:G.rail,ownerState:O,className:K.rail}),ee=null!=(o=T.track)?o:"span",te=Nc({elementType:ee,externalSlotProps:G.track,additionalProps:{style:(0,d.c)({},R[z].offset(X),R[z].leap(Y))},ownerState:O,className:K.track}),ne=null!=(s=T.thumb)?s:"span",re=Nc({elementType:ne,getSlotProps:L,externalSlotProps:G.thumb,ownerState:O}),ie=null!=(a=T.valueLabel)?a:hW,oe=Nc({elementType:ie,externalSlotProps:G.valueLabel,ownerState:O}),se=null!=(l=T.mark)?l:"span",ae=Nc({elementType:se,externalSlotProps:G.mark,ownerState:O,className:K.mark}),le=null!=(c=T.markLabel)?c:"span",ce=Nc({elementType:le,externalSlotProps:G.markLabel,ownerState:O}),ue=T.input||"input",de=Nc({elementType:ue,getSlotProps:N,externalSlotProps:G.input,ownerState:O});return(0,Ae.jsxs)(Z,(0,d.c)({},$,{children:[(0,Ae.jsx)(J,(0,d.c)({},Q)),(0,Ae.jsx)(ee,(0,d.c)({},te)),H.filter((e=>e.value>=w&&e.value<=S)).map(((e,t)=>{const r=_W(e.value,w,S),i=R[z].offset(r);let o;return o=!1===A?-1!==q.indexOf(e.value):"normal"===A&&(B?e.value>=q[0]&&e.value<=q[q.length-1]:e.value<=q[0])||"inverted"===A&&(B?e.value<=q[0]||e.value>=q[q.length-1]:e.value>=q[0]),(0,Ae.jsxs)(n.Fragment,{children:[(0,Ae.jsx)(se,(0,d.c)({"data-index":t},ae,!Va(se)&&{markActive:o},{style:(0,d.c)({},i,ae.style),className:(0,ts.c)(ae.className,o&&K.markActive)})),null!=e.label?(0,Ae.jsx)(le,(0,d.c)({"aria-hidden":!0,"data-index":t},ce,!Va(le)&&{markLabelActive:o},{style:(0,d.c)({},i,ce.style),className:(0,ts.c)(K.markLabel,ce.className,o&&K.markLabelActive),children:e.label})):null]},t)})),q.map(((e,t)=>{const r=_W(e,w,S),i=R[z].offset(r),o="off"===k?IW:ie;return(0,Ae.jsx)(n.Fragment,{children:(0,Ae.jsx)(o,(0,d.c)({},!Va(o)&&{valueLabelFormat:j,valueLabelDisplay:k,value:"function"===typeof j?j(P(e),t):j,index:t,open:V===t||F===t||"on"===k,disabled:v},oe,{className:(0,ts.c)(K.valueLabel,oe.className),children:(0,Ae.jsx)(ne,(0,d.c)({"data-index":t,"data-focusvisible":U===t},re,{className:(0,ts.c)(K.thumb,re.className,F===t&&K.active,U===t&&K.focusVisible),style:(0,d.c)({},i,{pointerEvents:y&&F!==t?"none":void 0},re.style),children:(0,Ae.jsx)(ue,(0,d.c)({"data-index":t,"aria-label":_?_(t):u,"aria-valuenow":P(e),"aria-labelledby":p,"aria-valuetext":b?b(P(e),t):h,value:q[t]},de))}))}))},t)}))]}))})),TW=GW,MW=e=>!e||!Va(e),OW=["component","components","componentsProps","color","size","slotProps","slots"],RW=(0,d.c)({},dW,(0,ds.c)("MuiSlider",["colorPrimary","colorSecondary","thumbColorPrimary","thumbColorSecondary","sizeSmall","thumbSizeSmall"])),DW=(0,cs.cp)("span",{name:"MuiSlider",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t["color".concat((0,ha.c)(n.color))],"medium"!==n.size&&t["size".concat((0,ha.c)(n.size))],n.marked&&t.marked,"vertical"===n.orientation&&t.vertical,"inverted"===n.track&&t.trackInverted,!1===n.track&&t.trackFalse]}})((e=>{let{theme:t,ownerState:n}=e;return(0,d.c)({borderRadius:12,boxSizing:"content-box",display:"inline-block",position:"relative",cursor:"pointer",touchAction:"none",color:(t.vars||t).palette[n.color].main,WebkitTapHighlightColor:"transparent"},"horizontal"===n.orientation&&(0,d.c)({height:4,width:"100%",padding:"13px 0","@media (pointer: coarse)":{padding:"20px 0"}},"small"===n.size&&{height:2},n.marked&&{marginBottom:20}),"vertical"===n.orientation&&(0,d.c)({height:"100%",width:4,padding:"0 13px","@media (pointer: coarse)":{padding:"0 20px"}},"small"===n.size&&{width:2},n.marked&&{marginRight:44}),{"@media print":{colorAdjust:"exact"},["&.".concat(RW.disabled)]:{pointerEvents:"none",cursor:"default",color:(t.vars||t).palette.grey[400]},["&.".concat(RW.dragging)]:{["& .".concat(RW.thumb,", & .").concat(RW.track)]:{transition:"none"}}})})),NW=(0,cs.cp)("span",{name:"MuiSlider",slot:"Rail",overridesResolver:(e,t)=>t.rail})((e=>{let{ownerState:t}=e;return(0,d.c)({display:"block",position:"absolute",borderRadius:"inherit",backgroundColor:"currentColor",opacity:.38},"horizontal"===t.orientation&&{width:"100%",height:"inherit",top:"50%",transform:"translateY(-50%)"},"vertical"===t.orientation&&{height:"100%",width:"inherit",left:"50%",transform:"translateX(-50%)"},"inverted"===t.track&&{opacity:1})})),LW=(0,cs.cp)("span",{name:"MuiSlider",slot:"Track",overridesResolver:(e,t)=>t.track})((e=>{let{theme:t,ownerState:n}=e;const r="light"===t.palette.mode?(0,Ps.IV)(t.palette[n.color].main,.62):(0,Ps.sP)(t.palette[n.color].main,.5);return(0,d.c)({display:"block",position:"absolute",borderRadius:"inherit",border:"1px solid currentColor",backgroundColor:"currentColor",transition:t.transitions.create(["left","width","bottom","height"],{duration:t.transitions.duration.shortest})},"small"===n.size&&{border:"none"},"horizontal"===n.orientation&&{height:"inherit",top:"50%",transform:"translateY(-50%)"},"vertical"===n.orientation&&{width:"inherit",left:"50%",transform:"translateX(-50%)"},!1===n.track&&{display:"none"},"inverted"===n.track&&{backgroundColor:t.vars?t.vars.palette.Slider["".concat(n.color,"Track")]:r,borderColor:t.vars?t.vars.palette.Slider["".concat(n.color,"Track")]:r})})),VW=(0,cs.cp)("span",{name:"MuiSlider",slot:"Thumb",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.thumb,t["thumbColor".concat((0,ha.c)(n.color))],"medium"!==n.size&&t["thumbSize".concat((0,ha.c)(n.size))]]}})((e=>{let{theme:t,ownerState:n}=e;return(0,d.c)({position:"absolute",width:20,height:20,boxSizing:"border-box",borderRadius:"50%",outline:0,backgroundColor:"currentColor",display:"flex",alignItems:"center",justifyContent:"center",transition:t.transitions.create(["box-shadow","left","bottom"],{duration:t.transitions.duration.shortest})},"small"===n.size&&{width:12,height:12},"horizontal"===n.orientation&&{top:"50%",transform:"translate(-50%, -50%)"},"vertical"===n.orientation&&{left:"50%",transform:"translate(-50%, 50%)"},{"&:before":(0,d.c)({position:"absolute",content:'""',borderRadius:"inherit",width:"100%",height:"100%",boxShadow:(t.vars||t).shadows[2]},"small"===n.size&&{boxShadow:"none"}),"&::after":{position:"absolute",content:'""',borderRadius:"50%",width:42,height:42,top:"50%",left:"50%",transform:"translate(-50%, -50%)"},["&:hover, &.".concat(RW.focusVisible)]:{boxShadow:"0px 0px 0px 8px ".concat(t.vars?"rgba(".concat(t.vars.palette[n.color].mainChannel," / 0.16)"):(0,Ps.W4)(t.palette[n.color].main,.16)),"@media (hover: none)":{boxShadow:"none"}},["&.".concat(RW.active)]:{boxShadow:"0px 0px 0px 14px ".concat(t.vars?"rgba(".concat(t.vars.palette[n.color].mainChannel," / 0.16)"):(0,Ps.W4)(t.palette[n.color].main,.16))},["&.".concat(RW.disabled)]:{"&:hover":{boxShadow:"none"}}})})),FW=(0,cs.cp)(hW,{name:"MuiSlider",slot:"ValueLabel",overridesResolver:(e,t)=>t.valueLabel})((e=>{let{theme:t,ownerState:n}=e;return(0,d.c)({["&.".concat(RW.valueLabelOpen)]:{transform:"translateY(-100%) scale(1)"},zIndex:1,whiteSpace:"nowrap"},t.typography.body2,{fontWeight:500,transition:t.transitions.create(["transform"],{duration:t.transitions.duration.shortest}),transform:"translateY(-100%) scale(0)",position:"absolute",backgroundColor:(t.vars||t).palette.grey[600],borderRadius:2,color:(t.vars||t).palette.common.white,display:"flex",alignItems:"center",justifyContent:"center",padding:"0.25rem 0.75rem"},"horizontal"===n.orientation&&{top:"-10px",transformOrigin:"bottom center","&:before":{position:"absolute",content:'""',width:8,height:8,transform:"translate(-50%, 50%) rotate(45deg)",backgroundColor:"inherit",bottom:0,left:"50%"}},"vertical"===n.orientation&&{right:"30px",top:"24px",transformOrigin:"right center","&:before":{position:"absolute",content:'""',width:8,height:8,transform:"translate(-50%, 50%) rotate(45deg)",backgroundColor:"inherit",right:"-20%",top:"25%"}},"small"===n.size&&{fontSize:t.typography.pxToRem(12),padding:"0.25rem 0.5rem"})})),zW=(0,cs.cp)("span",{name:"MuiSlider",slot:"Mark",shouldForwardProp:e=>(0,cs.Cq)(e)&&"markActive"!==e,overridesResolver:(e,t)=>{const{markActive:n}=e;return[t.mark,n&&t.markActive]}})((e=>{let{theme:t,ownerState:n,markActive:r}=e;return(0,d.c)({position:"absolute",width:2,height:2,borderRadius:1,backgroundColor:"currentColor"},"horizontal"===n.orientation&&{top:"50%",transform:"translate(-1px, -50%)"},"vertical"===n.orientation&&{left:"50%",transform:"translate(-50%, 1px)"},r&&{backgroundColor:(t.vars||t).palette.background.paper,opacity:.8})})),BW=(0,cs.cp)("span",{name:"MuiSlider",slot:"MarkLabel",shouldForwardProp:e=>(0,cs.Cq)(e)&&"markLabelActive"!==e,overridesResolver:(e,t)=>t.markLabel})((e=>{let{theme:t,ownerState:n,markLabelActive:r}=e;return(0,d.c)({},t.typography.body2,{color:(t.vars||t).palette.text.secondary,position:"absolute",whiteSpace:"nowrap"},"horizontal"===n.orientation&&{top:30,transform:"translateX(-50%)","@media (pointer: coarse)":{top:40}},"vertical"===n.orientation&&{left:36,transform:"translateY(50%)","@media (pointer: coarse)":{left:44}},r&&{color:(t.vars||t).palette.text.primary})})),UW=n.forwardRef((function(e,t){var n,r,i,o,s,a,l,c,u,h,p,f,g,m,y,v,_,b,x,S,w,E,P;const C=(0,Oe.c)({props:e,name:"MuiSlider"}),A="rtl"===Go().direction,{component:k="span",components:j={},componentsProps:I={},color:G="primary",size:T="medium",slotProps:M,slots:O}=C,R=(0,Tt.c)(C,OW),D=(e=>{const{color:t,size:n,classes:r={}}=e;return(0,d.c)({},r,{root:(0,ts.c)(r.root,uW("color".concat((0,ha.c)(t))),r["color".concat((0,ha.c)(t))],n&&[uW("size".concat((0,ha.c)(n))),r["size".concat((0,ha.c)(n))]]),thumb:(0,ts.c)(r.thumb,uW("thumbColor".concat((0,ha.c)(t))),r["thumbColor".concat((0,ha.c)(t))],n&&[uW("thumbSize".concat((0,ha.c)(n))),r["thumbSize".concat((0,ha.c)(n))]])})})((0,d.c)({},C,{color:G,size:T})),N=null!=(n=null!=(r=null==O?void 0:O.root)?r:j.Root)?n:DW,L=null!=(i=null!=(o=null==O?void 0:O.rail)?o:j.Rail)?i:NW,V=null!=(s=null!=(a=null==O?void 0:O.track)?a:j.Track)?s:LW,F=null!=(l=null!=(c=null==O?void 0:O.thumb)?c:j.Thumb)?l:VW,z=null!=(u=null!=(h=null==O?void 0:O.valueLabel)?h:j.ValueLabel)?u:FW,B=null!=(p=null!=(f=null==O?void 0:O.mark)?f:j.Mark)?p:zW,U=null!=(g=null!=(m=null==O?void 0:O.markLabel)?m:j.MarkLabel)?g:BW,W=null!=(y=null==O?void 0:O.input)?y:j.Input,H=null!=(v=null==M?void 0:M.root)?v:I.root,q=null!=(_=null==M?void 0:M.rail)?_:I.rail,X=null!=(b=null==M?void 0:M.track)?b:I.track,Y=null!=(x=null==M?void 0:M.thumb)?x:I.thumb,K=null!=(S=null==M?void 0:M.valueLabel)?S:I.valueLabel,Z=null!=(w=null==M?void 0:M.mark)?w:I.mark,$=null!=(E=null==M?void 0:M.markLabel)?E:I.markLabel,J=null!=(P=null==M?void 0:M.input)?P:I.input;return(0,Ae.jsx)(TW,(0,d.c)({},R,{isRtl:A,slots:{root:N,rail:L,track:V,thumb:F,valueLabel:z,mark:B,markLabel:U,input:W},slotProps:(0,d.c)({},I,{root:(0,d.c)({},H,MW(N)&&{as:k,ownerState:(0,d.c)({},null==H?void 0:H.ownerState,{color:G,size:T})}),rail:q,thumb:(0,d.c)({},Y,MW(F)&&{ownerState:(0,d.c)({},null==Y?void 0:Y.ownerState,{color:G,size:T})}),track:(0,d.c)({},X,MW(V)&&{ownerState:(0,d.c)({},null==X?void 0:X.ownerState,{color:G,size:T})}),valueLabel:(0,d.c)({},K,MW(z)&&{ownerState:(0,d.c)({},null==K?void 0:K.ownerState,{color:G,size:T})}),mark:Z,markLabel:$,input:J}),classes:D,ref:t}))})),WW=UW;var HW=__webpack_require__(48187),qW=__webpack_require__.n(HW);const XW=e=>{const t=e.comparisonNb&&"main"===e.imageType?qW()("#SideBar").width()-5+(window.innerWidth-qW()("#SideBar").width())/2:e.comparisonNb?void 0:qW()("#LeftBar").width()+qW()("#SideBar").width()+e.width,[r,i]=(0,n.useState)(!1),o=Zo()((()=>({root:{position:"absolute",top:".5rem",right:".5rem",zIndex:5},analyzeRoot:{float:"right"},alterRoot:{position:"fixed",left:"Map"===e.imageType?void 0:100,marginRight:"Map"===e.imageType?120:void 0,bottom:40},close:{marginTop:5,marginLeft:200,cursor:"pointer",color:"#00A6FF"},button:{border:void 0===e.offsetX?"1px solid #00A6FF":"0px",backgroundColor:"white !important"},card:{width:250,textAlign:"center",padding:6,fontSize:"14px",position:"fixed",left:t?t-100+"px":void 0,zIndex:10},analyzeCard:{width:250,textAlign:"center",padding:6,fontSize:"14px",zIndex:10}}))),{classes:s}=o(),a=e.offsetY||!r;return(0,Ae.jsxs)("div",{className:s.root,children:[a&&(0,Ae.jsx)(Sa,{className:s.button,color:"primary",onClick:()=>{i(!r)},children:(0,Ae.jsx)(Lh,{})}),r&&(0,Ae.jsxs)(hj,{className:void 0!==e.offsetY?s.card:s.analyzeCard,children:[(0,Ae.jsx)(tp,{className:s.close,onClick:()=>{i(!1)}}),[{label:"Contrast",id:"contrast",min:0,max:2,step:.1},{label:"Brightness",id:"brightness",min:0,max:2,step:.1},{label:"Saturation",id:"saturate",min:0,max:10,step:.5}].map(((t,n)=>(0,Ae.jsxs)(vj,{spacing:2,direction:"row",sx:{mb:1},alignItems:"center",children:[(0,Ae.jsx)("div",{children:t.label}),(0,Ae.jsx)(WW,{"aria-label":t.label,size:"small",onChange:(n,r)=>((t,n)=>{e.handleChange(t,n)})(t.id,r),min:t.min,max:t.max,step:t.step,value:e.data[t.id]})]},n))),(0,Ae.jsx)(ev,{label:"Reset",onClick:e.reset,color:"cancel",size:"large"})]})]})},YW=e=>{const[t,r]=(0,n.useState)(0),i=["LE","PS","TE","SS"],[o,s]=(0,n.useState)(!1),[a,l]=(0,n.useState)(!1);(0,n.useEffect)((()=>{var n;null!==(n=e.currentPhotoExif)&&void 0!==n&&n.hubDistance&&Math.abs(e.currentPhotoExif.hubDistance-t)>1&&r(e.currentPhotoExif.hubDistance),e.moveAlong&&("Blades"===e.inspectionDoc.type&&(p("awayFromHub",!1),p("closerToHub",!1)),"Tower"===e.inspectionDoc.type&&(f("awayFromHub",!1),f("closerToHub",!1)))}),[e.currentPhotoExif.id]);const c=Zo()((()=>({arrows:{fontSize:"1.6rem"},arrowUp:{position:"absolute",bottom:"4.3rem",left:"1.75rem",cursor:"pointer"},arrowDown:{position:"absolute",bottom:"1.1rem",left:"1.75rem",cursor:"pointer"},arrowLeft:{position:"absolute",bottom:"3rem",left:"0.5rem",cursor:"pointer"},arrowRight:{position:"absolute",bottom:"2.7rem",left:"3rem",cursor:"pointer"},hub:{position:"absolute",fontSize:"1rem",bottom:"0.6rem",left:"1.6rem"},next:{position:"absolute",fontSize:"1rem",bottom:"-0.8rem",left:"0.2rem"},previous:{position:"absolute",fontSize:"1rem",bottom:"1.9rem",left:"0.2rem"},infos:{position:"absolute",fontSize:"1rem",bottom:"8.5rem",left:"0",textAlign:"left"}}))),{classes:u}=c(),d=e=>{const t=null!==e&&void 0!==e&&e.side?null===e||void 0===e?void 0:e.side:null===e||void 0===e?void 0:e.edge,n=i.findIndex((e=>e===t));return i[(n+1)%4]},h=e=>{const t=null!==e&&void 0!==e&&e.side?null===e||void 0===e?void 0:e.side:null===e||void 0===e?void 0:e.edge,n=i.findIndex((e=>e===t));return i[n?n-1:3]},p=(t,n)=>{const r=e.photosData.filter((t=>t.blade===e.currentPhotoExif.blade&&t.side===e.currentPhotoExif.side&&t.edge===e.currentPhotoExif.edge)).sort(((e,t)=>e.hubDistance>t.hubDistance?1:-1)),i=r.findIndex((t=>t.photoId===e.currentPhotoExif.photoId));if(-1!==i)if("awayFromHub"===t){const t=r.length-1,o=i>=t-1?t:i+1,a=o===t;n&&e.moveAlong&&e.callbackSelection&&e.callbackSelection(r[o].id),s(!a),l(!0)}else{const t=i<=1?0:i-1,o=0===t;n&&e.moveAlong&&e.callbackSelection(r[t].id),l(!o),s(!0)}},f=(t,n)=>{const r=e.photosData.map((e=>e)).sort(((e,t)=>e.exif.relativeAltitude<t.exif.relativeAltitude?1:-1)),i=r.findIndex((t=>t.photoId===e.currentPhotoExif.photoId));if(-1!==i)if("awayFromHub"===t){const t=r.length-1,o=i>=t-1?t:i+1,a=o===t;n&&e.moveAlong&&e.callbackSelection&&e.callbackSelection(r[o].id),s(!a),l(!0)}else{const t=i<=1?0:i-1,o=0===t;n&&e.moveAlong&&e.callbackSelection(r[t].id),l(!o),s(!0)}};return(0,Ae.jsx)(Ae.Fragment,{children:(0,Ae.jsxs)("div",{className:u.arrows,children:["Blades"===e.inspectionDoc.type&&(0,Ae.jsxs)(Ae.Fragment,{children:[(0,Ae.jsxs)("div",{className:u.arrowDown,onClick:()=>{const t=d(e.currentPhotoExif);e.findRelevantPhoto(t)},children:[(0,Ae.jsx)(vE,{}),(0,Ae.jsx)("div",{className:u.next,children:d(e.currentPhotoExif)})]}),(0,Ae.jsxs)("div",{className:u.arrowUp,onClick:()=>{const t=h(e.currentPhotoExif);e.findRelevantPhoto(t)},children:[(0,Ae.jsx)(mE,{}),(0,Ae.jsx)("div",{className:u.previous,children:h(e.currentPhotoExif)})]}),a&&e.moveAlong&&(0,Ae.jsxs)("div",{className:u.arrowRight,onClick:()=>p("closerToHub",!0),children:[(0,Ae.jsx)(yE,{}),(0,Ae.jsx)("div",{className:u.hub,children:" Hub"})]}),o&&e.moveAlong&&(0,Ae.jsx)(_E,{onClick:()=>p("awayFromHub",!0),className:u.arrowLeft})]}),"Tower"===e.inspectionDoc.type&&(0,Ae.jsxs)(Ae.Fragment,{children:[a&&(0,Ae.jsx)("div",{className:u.arrowUp,onClick:()=>f("closerToHub",!0),children:(0,Ae.jsx)(mE,{})}),o&&(0,Ae.jsx)("div",{className:u.arrowDown,onClick:()=>f("awayFromHub",!0),children:(0,Ae.jsx)(vE,{})})]}),(0,Ae.jsxs)("div",{className:u.infos,children:["Blades"===e.inspectionDoc.type&&(0,Ae.jsxs)(Ae.Fragment,{children:[(0,Ae.jsxs)("div",{children:[" Blade : ",e.currentPhotoExif.blade]}),(0,Ae.jsxs)("div",{children:[" Side : ",(g=e.currentPhotoExif,null!==g&&void 0!==g&&g.side?null===g||void 0===g?void 0:g.side:null===g||void 0===g?void 0:g.edge)]}),(0,Ae.jsxs)("div",{children:["Hub : ",Ly(e.currentPhotoExif.hubDistance,1),"m"]})]}),"Tower"===e.inspectionDoc.type&&(0,Ae.jsx)(Ae.Fragment,{children:(0,Ae.jsxs)("div",{children:["Altitude :",Ly(e.currentPhotoExif.exif.relativeAltitude,1),"m"]})})]})]})});var g},KW=e=>{var t,r,i,o;const[s,a]=(0,n.useState)(0),[l,c]=(0,n.useState)(qW()("#LeftBar").width()+qW()("#SideBar").width()),[u,d]=(0,n.useState)(!1);(0,n.useEffect)((()=>{var t;null!==(t=e.currentPhotoExif)&&void 0!==t&&t.hubDistance&&Math.abs(e.currentPhotoExif.hubDistance-s)>1&&a(e.currentPhotoExif.hubDistance)}),[e.currentPhotoExif.id]),(0,n.useEffect)((()=>(window.addEventListener("resize",h),function(){window.removeEventListener("resize",h)})),[]);const h=()=>{c(qW()("#LeftBar").width()+qW()("#SideBar").width())},p=Zo()((()=>({root:{left:"calc(".concat(l,"px + 0.6rem)"),top:"calc(60px + 5vh)",position:"absolute",zIndex:100,textAlign:"left"},button:{backgroundColor:"white !important"},card:{textAlign:"center",padding:8},close:{marginTop:5,float:"right",cursor:"pointer",color:"#00A6FF"},pale:{width:"12rem",padding:"0.5rem"}}))),{classes:f}=p(),g={padding:"6px 10px",minWidth:"unset",fontSize:"0.8125rem"},m=t=>{var n;let r=null,i=5;const o=null===(n=e.currentPhotoExif)||void 0===n?void 0:n.blade;for(const a of e.photosData)if(a.uploaded&&a.blade===o&&(["PS","SS"].includes(t)&&a.side===t||["LE","TE"].includes(t)&&a.edge===t)){const e=Math.abs(a.hubDistance-s);e<=i&&(i=e,r=a.id)}if(r)if(e.photosDB){const t=e.photosDB.findIndex((e=>e.photoId===r));-1!==t&&e.callbackSelection(t)}else e.callbackSelection(r)},y=null!==(t=e.currentPhotoExif)&&void 0!==t&&t.side?null===(r=e.currentPhotoExif)||void 0===r?void 0:r.side:null===(i=e.currentPhotoExif)||void 0===i?void 0:i.edge,v=e=>{if(e!==y)return"light"},_=e=>{if(e!==y)return jp};return(0,Ae.jsxs)(Ae.Fragment,{children:[!e.arrowsMode&&(0,Ae.jsxs)("div",{className:f.root,style:null!==(o=null===e||void 0===e?void 0:e.customStyle)&&void 0!==o?o:{},children:[!u&&(0,Ae.jsx)(cu,{title:"Turn around the blade",children:(0,Ae.jsx)(Sa,{className:f.button,color:"primary",onClick:()=>{d(!u)},children:(0,Ae.jsx)(nI,{})})}),u&&(0,Ae.jsxs)(hj,{className:f.card,children:[(0,Ae.jsxs)("div",{children:[(0,Ae.jsx)(ev,{style:{left:"2%",...g},label:"SS",color:v("SS"),textColor:_("SS"),onClick:()=>m("SS")}),(0,Ae.jsx)(tp,{className:f.close,onClick:()=>{d(!1)}})]}),(0,Ae.jsx)("img",{src:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAeIAAACTCAYAAABS4BpzAAAACXBIWXMAACxLAAAsSwGlPZapAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAA6BSURBVHgB7d2NddtGFobhTxXEW4FnK5C2Ak8HcQfhVrDeCsStIE4FVCqwUwHpChJXQKSCyBVkeTOYAKZFEiAxgwHwPufMAUXJpEwR+HDnB7wTpsS1tq/q1r7fvv6udfvVC7dferw+nuvWVp34/u9H97W/V514LABYlDthbE4hJNvb163vxftfab5iIFet27+/cF+8DQCzQRCn5xRC9EFNyLpWQ3+VmlCOgf2bmrCuBAATQRAPxx2aVxO2MXjnXMmWrB3OFtaVvg5rKmsARSCI+7Ng9Qohe9+6jWlpB/VnNZV0vA8AsiCIz4tdytbeqKlyMW/tLm5CGkBSBPHXnEKF+0ZUunjZcSVtt6t6CwC9LT2InQheDCeGMgENoLOlBXHsan57aN9resF7vB63qu//om/X6Z663Vapv5eWUrkT33et+75rfS82p2UgoAGctIQgtgP+SiF4H1TeLOZ2qFr7omZWb7xPmveSHKdvA9q2r4/uc5qXGMqf6tuMQQMLNNcgboev1/gqhYNsXEbTbhx4+zm++Em8HUO7xJOtPuIYtFXPO1E9A7M3pyAeO3xjBRsPovF2JYwhBrJTs9RsqpV1O5zje2onALMwhyD2h/aovJVQpXAgJHCnK75fjq949qDpiN3ZMaB3AjA5Uw1iO4D+59DeKX34WjWyE+N4S+LUhLJtYzU9hZAmnIGJmVoQe4Xq1yudSk3w7kSli6/FcLZmy96mMC69UxPMsQEoxBSCOI79/qA0FYlVtx8VgvejqHZxnfZV2JxCFV1qQB9PCGNoBRhRyUGcsvt5d2i/qDkIAam0A9pa/ECQ0gK6UtgXGIIBMisxiFMEcKwAfhZVL8oQK2fb3qvMiWIxmHdiGRWwCBa6Nv77x6H9OUCzx9kqjCeXPH4HRPY+9QonoU8K798/C2q2T32ofz8vALNiFfBQAbxVntnUQC5WKb89tPcK7++h9pWh9rf39e/nBGByvEJ31xBn6msRvliOUsP510PbKEywLK2rHUCLU+jiGuJs3AuAKTGc6c4GCnRrN3Ssfp0AXGLhvFITziUEs/0eaxHMQHZOtx0I6H4GhuEVKlSrVK0reexw3iqcKNjvxf4NJHJLFUwAA2nF2dprldGlTTADA3K6vgomgIHxxC7tJ41fNW9FMANX8Ye2FwEMzEFJVTPBDHRgXdHX7GA2ZuUEYAqsao5jzXuNG8xrMfkL+IudnW7Uf0fai50ImDqnsHzqSeN2Z2/FcikslNN1F+dYi+4lYI5sv26vax4jlNvrmLnACGbNqX/XlIU2OwawHMfjzGMEsx2nNgoT0ZyAmXDqH8LvBQDNmuatxpkAFi/JaZU7PXOYJKto++w8ezFuA+A0r3GD2Z53LY5TmIi+IWxvcCcA6M5rvGCO48srcexCgZz6dUfTFQ1gCF7jBbMd8zaiGxsFcOoXwu8EAGl4jTf5y56T2djIzql7CNvZ6koAkI/XOMul7Li4Ed3YyKDrOmELYc4SAYwprmN+Uv4LjNjzxctwAoN5FCEMYLqcmg+y2CtfKDPpC4NYiRAGMC/xWtlb5Z34RbWM3py6v0kJYQBT5ZV/fJlqGZ3s1e0NxexoAHPRHl/uegwcom0VZoFT1OBvj+r25lkLAOar3Y2dK5T3Yt3y4jl1e7NsBADL4hW6sXPOxt6KLuzFsXGLLmdsnKkBWDKnEJB2zMw16cuOvUz4mrmVur0ZnAAAbV55q2UL/43CcZvCaEbsbOvSH38tAMA5Tvmr5a3CeLYTJmulbt0iAIB+vPJWy3vRhT1J9oejSxoA0nLKWy3bsX0jZmEXb6XLf8yNAABD88pbLW/FLOwi2RkT1TAAjMsphKSFZa5Q5iMdC+BFNQwApcl9lS97DsaVR/IkqmEAKJ1VrWvl6cK2UN4onAggg0uTBaiGAaAsTs2Er9Sh3P6ACiZ7JWBnO5f+CIwdAEDZcnZhb8Vkr0E96fwL/qsAAFPilW8WtoUyFxG50V7nX2Q+4hAApssp3yxsC35mYPfkdPmFdQIAzIGN764UekJTX0hkL2Zgd3JpfHgvAMBceeUZV7bH34hQftFa51+8jQAAS+CVZ1yZUD7yUWJ8GADwFadw/N+KUE7u0ovsBQBYMqc8k73iZysv7gIidjZy7oVh5hsAIIqTvVJ/atSiQvnSiwEAwCk5LiIy+1AmiAEAQ/AilK9CEAMAhuZFKHd2qY+fi3sDAG5hc41sWRShfMKlF8YJAIBhWCjbsqiUa5Ut1yyUvSbi0ovB51ACAFJwIpT/8qTz/wku6AEASM1poaF8p/Af//HMzzwd2r8FAMB5Tv091+34cfyh/aB0oVkd2u7Qfjq03zQiC2Lrev5w5mfsBfqHAABL8apuD/XW1dvvjr6Whp9HVB1t1fo9UqkO7ReFCWWVMrMgtv/cHxd+7p8a4ZcDACTj1AScbV/X9zkte7WMVcdWJe+UKffu6q31m7szP/c/hU9pAgBMR6xeH9SEbQxflqZetju0n5UplK0cPzfAvRUAoFROYZjR5vzYZCSb8JTyOtBLbFuFa2wPfgITK2Kvy2H7L408oA0AC+cUKlrb3rduU93m9aQwpvxRA4rjxOfOBtYCAORgx2QvKtzS214DL4e61D1tbwLOugBgWE6hy9OOwbaCxQ7uJYcP7XQov9cVs8jvWre9LndPM2kLAK4TJ055zbdbuVJ/c5w41mvm9d3R15bo7szPPyssZXoWAOCUuCTImoWu1/Su21+12heF436l5gIcVf1zL12Q41qvjppxra9fq3kdnabxmu4UZl7bePKLr9NxEK8P7VHnURUDwNcscL2aSvdB5YthatXbl3r7XG8rTYdTE9ZxadZ96+tS2GtrYRyXQ/3tOIjtF9/rfDcBVTGAJXMKoRur3dRXfbpVpRCuv6sJ2diWoH3REqcy/maVQhhbYVvdvfADa1EVA4BpdzG/UQjgEkO3Xd1+rr/eiSsinnP8t3Uap4L+70tB3KUqNqwrBjA3cdmQtRKr3ePAjbcrYSheX4/vpw7nf576xlqXp2pfmmENAKWzkF0pLDuxAqS05TAf6t/NfkcnjKG9pttyb8j13LY+/OwTd3mydwKA6SgxeO1Y+2v9O9kxtfQxZ4S/0Uq3r/teXXqidx0faIw+dQDowgLtrcoJXgvdrahy56YdzH0qZtflwbcdHmgvzt4AlCF2I1rQdTl+EbpIwSsM8Z57D37s+mAP6vaG2wgAxuGUZvyO0MUQnF6ullc9HqPTxC1rjBcDyMVr3O5me96NmjFdoKs4VNKbTSTo8uZ8KwAYXpxkZeGXu+ptV7tvxVAcRuLU7c1vP8PZIYAhODVdzrmD94OodlGglbp32TgBQH9e4cp+OcPXjlkbheB1AgpnXTOEMYAheeUd77WKl+DFpHUdLyaMAZziFcI3x3hvu6vZCZgBp+5nroQxgMgrX/huFVZ8eAEz5dR9ZyKMgWWKF9fYKH342uPHNbzMasZidL3YB2EMLEfO8N2KqhfoPJM6hjFLAYB58kofvnE9r431UvUCLSv125G46AcwD17px3zjDGd7LsIXOGOtfjvXowBMkVee8H0vupyB3tbqt7P9KM5wgSnwSh++ezHeCwxipf47nxOA0niFnquU4bsV4QskYWPAfXbevRg3BkrgFMLX9snU4esEICmbHd13Z34UgNxseMj2PQtIwheYGaf+YbwXOyuQmoVv6k81InyBQjh1vzZ1bNat/U4AhhQ/z5fwBRaq66c2tdtG7NDArbzSXmjDTrTXYl8FJsGq3L47+V7hLB5Ad15plxvZfrkWs52BSXK6bkbmVpxxA+d4pV1uxEU2gBlxh/ak6w4GjwIQpZ7xTPgCM7fW9d1iKwHLlHrGM+ELLIzT9RcP2IjuaiyHP7QPStP1HD/VyJ6Dy84CC7XW9QcRu2a1EzA/XmknXVn4rkT4Aqg5XV8d279bCZg+p7SXmbTw5fN8AZy11vUHGQIZU5R63Je1vgB6c7qtIiCQUToLX6+0k67WYtIVgBtZlUAgY0680o37MuMZQBJO1687JpBRAqd0477MeAaQzTUfrUggYyypx323YtIVgJGsRCCjXF4hJFN0PcdJV4QvgCKsNVwgOwHX82LcF8BCOd0+fhwPdhsRyOgu5XWe4/vRCwAmwmmYQLZmlxH0Ar5l4bsS474AcJLTcIG8F93WCLzSdT1b+K5F+AKYGafhAtnaRlTJSxO7nhn3BYAbOA0byHtRJc9ZyiVHjPsCWDSnYQM5dimuRJfiHHiFkEzV9cy4LwDUnIZZ9vRSpfNWmBKndF3P9v5ai/AFgLNWGv6Sg4Ry2VJ3PTPuCwBX8Ep3YLalUCtRGY0pfsqRnSCl6nr24m8MADdzCuPIew1/sI4HbKvGHoTUcoQv474AkNBK6S7aYG2vpgvbCUNwarqdUy05WouuZwDIyiltlRybXcx/I4K5D6tG7fWycdlUf584vOAFABjdSuGg/GeGtq+fyyo8Lxin8Dew4LUTl5Sv/1Z0PQPI5E7oyymE4w/KG5K/1e1z6/az5skpjKXb9k3rdkr2Wv50aB8VXlsAyIIgvo1T6B61UB5jEpaFRwznSk04TyVInJqQtXZff52rErXXaqcQwDsBwAgI4uE4hVD+XmV0J1d1s7D5XG/j18+tr1N41WqutX1d385R4Z6zO7RfFMb/59qrAGAiCOI0nEIYWyhP4eIe1dFWJ76OYshG7sT9Jdkd2ieF8K0EAFgUrzyzr2kvT7pyAoBCURHn59RUy2N30c6NdTPbZKtP9ZZuZwDFI4jH91A3grm/ONnqU71ltjOAySGIy+MUAtkr/yzi0lUKgftZBC+AmSCIpyFWyra9b92es0pN6M593TSABSOIpysuA4rb+6P7piAuobKQ/aImcCsRugAWgiCep+P1u9Ze69u1vakC+3itsm2/qFnbXImwBYC/EMRoB7I7+p478++q1u0Yusf3AwAu+D+MTeus/YGnZgAAAABJRU5ErkJggg==",className:f.pale,alt:"Pale"}),(0,Ae.jsx)(ev,{style:{float:"left",marginTop:16,...g},label:"LE",color:v("LE"),textColor:_("LE"),onClick:()=>m("LE")}),(0,Ae.jsx)(ev,{style:{float:"right",marginTop:16,...g},label:"TE",color:v("TE"),textColor:_("TE"),onClick:()=>m("TE")}),(0,Ae.jsx)("div",{children:(0,Ae.jsx)(ev,{style:g,label:"PS",color:v("PS"),textColor:_("PS"),onClick:()=>m("PS")})})]})]}),e.arrowsMode&&(0,Ae.jsx)(YW,{callbackSelection:e.callbackSelection,findRelevantPhoto:m,photosData:e.photosData,inspectionDoc:e.inspectionDoc,moveAlong:e.moveAlong,currentPhotoExif:e.currentPhotoExif})]})},ZW=e=>{var t,r;const i=window.innerHeight?window.innerHeight/2-100:1e3,o=1.5*i,s=Zo()((()=>({imagesContainer:{height:"100%",textAlign:"center",position:"relative",padding:4},imageZoom:{overflow:"hidden"},imageCropped:{width:e.widthMax?e.widthMax:"100%",height:e.widthMax?void 0:e.heightMax?e.heightMax:"calc(50vh - 58px)",maxHeight:e.cssMaxHeight?e.cssMaxHeight:void 0},images:{height:i,width:o,margin:"0 auto"},zoom:{position:"absolute",bottom:"0.5rem",right:"0.5rem","& .MuiButtonBase-root":{borderColor:"#bdbdbd",color:"black",backgroundColor:"white","&:hover":{backgroundColor:"#d5d5d5"}}},openButton:{position:"absolute",bottom:"0.8rem",left:"0.6rem",backgroundColor:"white",color:jp},download:{position:"absolute",bottom:"0.8rem",left:"0.6rem",minWidth:"unset"},thermal:{position:"absolute",left:"20%",top:"0.2rem",zIndex:10},settings:{position:"absolute",top:"0.2rem",right:"1.6rem",zIndex:10},settingsDown:{position:"absolute",top:"5rem",right:"1.6rem",zIndex:10},icon:{marginRight:7},fullScreen:{position:"absolute",fontSize:"2rem",zIndex:10,left:"1.6rem",backgroundColor:"rgba(255,255,255,0.3)",borderRadius:"4px",top:"0.2rem",cursor:"pointer"},fullScreenComp:{height:"100%"},exit:{position:"absolute",right:"0.5rem",top:"0.2rem",cursor:"pointer",fontSize:"2rem",color:"white",borderRadius:"1rem",backgroundColor:"rgba(0,0,0,0.6)",border:"2px solid",padding:"0.3rem",zIndex:10}}))),{classes:a}=s(),[l,c]=(0,n.useState)(!0),u=(0,n.useRef)(null),[d,h]=(0,n.useState)(!1),[p,f]=(0,n.useState)(1),[g,m]=(0,n.useState)(!0),[y,v]=(0,n.useState)({contrast:1,brightness:1,saturate:1}),_=yU();(0,n.useEffect)((()=>{e.urls[0]&&m(!0),h(!1)}),[e.urls[0]]);const b=e=>{const t=null!==u&&void 0!==u&&u.current?u.current:null;t&&("zoomIn"===e?t.zoomIn(1):"zoomOut"===e?t.zoomOut(1):t.reset())},x=()=>{h(!0),e.loaded&&e.loaded()},S=()=>"Solar"===e.type&&l?e.urls[1]:e.urls[0],w=null!==(t=e.noImageMsg)&&void 0!==t?t:"No image";return(0,Ae.jsxs)("div",{className:a.imagesContainer,children:[e.fullScreen&&g&&(0,Ae.jsx)(Zj,{onClick:_.enter,className:a.fullScreen}),e.openBig&&g&&(0,Ae.jsx)(Zj,{onClick:e.openBig,className:a.fullScreen}),g&&!(null===(r=e.urls)||void 0===r||!r.length)&&(0,Ae.jsx)(Ae.Fragment,{children:(0,Ae.jsxs)(vU,{handle:_,className:"theFull ".concat(a.fullScreenComp),children:[_.active&&(0,Ae.jsx)(Kj,{className:a.exit,onClick:_.exit}),"Solar"===e.type&&(0,Ae.jsxs)(cW,{variant:"contained",size:"small",className:a.thermal,children:[(0,Ae.jsx)(Sa,{className:"noOutline",color:l?"primary":"secondary",onClick:()=>c(!l),children:"Thermal"}),(0,Ae.jsx)(Sa,{className:"noOutline",color:l?"secondary":"primary",onClick:()=>c(!l),children:"RGB"})]}),(0,Ae.jsx)("div",{style:{overflow:_.active?void 0:"hidden",height:"100%"},children:(0,Ae.jsxs)("div",{style:{display:"flex",justifyContent:"center",height:"100%"},children:[(0,Ae.jsxs)(rW.c,{fullScreen:!0,onZoomChange:e=>f(e),maxZoom:12,ref:u,children:[(0,Ae.jsx)("img",{className:a.imageCropped,crossOrigin:"anonymous",style:(()=>{let e="";return Object.keys(y).forEach((t=>{e+=" ".concat(t,"(").concat(y[t],")")})),{filter:e}})(),src:S(),alt:"image loading\u2026",onError:()=>{m(!1),x()},onLoad:()=>x()}),e.selectedAnnotation&&d&&"Solar"!==e.type&&!e.cropped&&(e=>(0,Ae.jsx)("div",{style:{top:e.y+"%",left:e.x+"%",width:e.width+"%",height:e.height+"%",border:"solid",borderColor:"red",borderWidth:2/p+"px",position:"absolute",zIndex:3,transform:"".concat(e.angle?"rotate("+e.angle+"rad)":"rotate(0rad)")}}))(e.selectedAnnotation)]}),!d&&!e.hideLoad&&(0,Ae.jsx)($y,{style:{position:"absolute",top:"50%",zIndex:100}})]})}),e.openPhoto&&(0,Ae.jsxs)(Sa,{className:a.openButton,color:"secondary",variant:"contained",onClick:e.openPhoto,children:[e.openTitle&&e.openTitle,!e.openTitle&&(0,Ae.jsxs)(Ae.Fragment,{children:[(0,Ae.jsx)(op,{className:a.icon}),"Open"]})]}),e.download&&(0,Ae.jsx)(Sa,{onClick:()=>(async e=>{const t=document.createElement("a"),n=await fetch(e);t.href=URL.createObjectURL(await n.blob()),t.rel="noopener noreferrer",t.target="_blank",t.download="img_".concat(Date.now()),t.click()})(S()),className:a.download,children:(0,Ae.jsx)(Uh,{size:"1.5rem",className:"mr-2",style:{color:"#00A6FF"}})}),!Wy()&&!e.hideSettings&&(0,Ae.jsx)("div",{className:_.active?a.settingsDown:a.settings,children:(0,Ae.jsx)(XW,{reset:()=>{v({brightness:1,contrast:1,saturate:1})},handleChange:(e,t)=>{const n={...y};n[e]=t,v(n)},data:y,imageType:e.fromMap?"Map":"Analyze"})}),(0,Ae.jsxs)(cW,{id:"theZoom",className:a.zoom,size:Wy()?"small":"medium",children:[(0,Ae.jsx)(Sa,{onClick:()=>b("zoomOut"),children:"-"}),e.hideZoomReset?(0,Ae.jsx)(Ae.Fragment,{}):(0,Ae.jsxs)(Sa,{style:{textTransform:"lowercase"},onClick:()=>b("zoomReset"),children:["x",p.toFixed(2)]}),(0,Ae.jsx)(Sa,{onClick:()=>b("zoomIn"),children:"+"})]}),e.aroundArrows&&e.propsLookAround&&(0,Ae.jsx)(KW,{...e.propsLookAround})]})}),!g&&(0,Ae.jsxs)("div",{style:{color:"orange",paddingTop:20},children:[" ",w]})]})},$W=Zo()((()=>({imageContainer:{border:"1px solid"},select:{minWidth:"13rem",fontSize:"0.9rem",zIndex:100},title:{textAlign:"center",fontSize:"1.3rem"},switch:{position:"absolute",bottom:"0.2rem",right:"40%",display:"flex"},switchButton:{background:"lightgrey"},switchText:{marginTop:"1.3rem",marginRight:"0.5rem"}}))),JW={base:{zIndex:2},control:e=>({...e,background:"black",color:jp,borderColor:jp}),indicatorSeparator:e=>({...e,backgroundColor:jp}),singleValue:e=>({...e,color:jp}),placeholder:e=>({...e,color:jp}),menuList:e=>({...e,background:"black",padding:0})},QW=e=>{var t;const{classes:r}=$W(),[i,o]=(0,n.useState)(null),[s,a]=(0,n.useState)([null,null,null]),[l,c]=(0,n.useState)(!1),[u,d]=(0,n.useState)(""),[h,p]=(0,n.useState)([]),[f,g]=(0,n.useState)([[],[],[]]),[m,y]=(0,n.useState)([!1,!1,!1]),[v,_]=(0,n.useState)([]),[b,x]=(0,n.useState)([]),[S,w]=(0,n.useState)(-1),[E,P]=(0,n.useState)([]),[C,A]=(0,n.useState)([]),[k,j]=(0,n.useState)(!1),I=e.inspectionDoc.id;(0,n.useEffect)((()=>{e.active&&e.defect&&(p([]),M(e.annotations[0].key,!0),e.noCompare||O(),a([null,null,null]),g([[],[],[]]),y([!1,!1,!1]))}),[e.defect,e.active]),(0,n.useEffect)((()=>{null!==h&&void 0!==h&&h.length&&N()}),[h]);const G=async(t,n,r)=>{var i;let o=T(t,n);if(null===(i=o)||void 0===i||!i.length)if("Solar"===e.inspectionDoc.type&&"current"===r)o=e.annotations[0].urls;else{const r=await gV(t,n,!1,"Solar"===e.inspectionDoc.type);null!==r&&void 0!==r&&r.length&&(o=r[0],A([...C,{inspectionId:t,photoId:n,photoUrls:o}]))}return o},T=(e,t)=>{const n=C.find((n=>n.inspectionId===e&&n.photoId===t));return n?n.photoUrls:[]},M=async(e,t)=>{let n;if(t){const t=await CA(I);n=t.find((t=>t.id===e)),P(t)}else n=E.find((t=>t.id===e));n&&o(n);const r=await G(I,e,"current");p(r),d(e)},O=async()=>{c(!0);const e=await fV(I);null!==e&&void 0!==e&&e.length&&e.sort(((e,t)=>e.inspectionDate<=t.inspectionDate?1:-1)),_(e),c(!1)},R=e=>l||S===e?"Retrieving previous inspections...":v.length?"Compare "+(e+1):"No previous inspections found",D=(e,t)=>{const n=[...m];n[e]=t,y(n)},N=async()=>{let e=0;const t=[[],[],[]];for(const n of s){if(n&&(k||0===e)){const r=b.find((e=>e.inspectionId===n.value));if(r){const i=await L(e,n.value,r);null!==i&&void 0!==i&&i.length?t[e]=i:D(e,!0)}}e+=1}g(t)},L=async(t,n,r)=>{const o=n&&v.find((e=>e.id===n));if(D(t,!1),o&&i){const t=tW(r,{type:e.inspectionDoc.type,currentPhotoExif:i,inspectionId:"",callbackComparison:e=>console.log(e)});if(t){return await G(o.id,t,"compare")}}return[]},V=async e=>{M(e,!1)},F=(t,n,r)=>{var o;return(0,Ae.jsx)(Ae.Fragment,{children:(0,Ae.jsx)(ZW,{fromMap:!1,urls:t,selectedAnnotation:n&&n.key===u?n:void 0,aroundArrows:!!r&&i&&!(null===E||void 0===E||!E.length),propsLookAround:{callbackSelection:V,photosData:E,currentPhotoExif:i,arrowsMode:!0,moveAlong:!0,inspectionDoc:e.inspectionDoc},type:null!==(o=e.defect)&&void 0!==o&&o.inspectionType?e.defect.inspectionType:"Blades"})})},z=e=>(0,Ae.jsxs)("div",{className:r.title,children:[" ",e]}),B=t=>{var n;return(0,Ae.jsxs)(ws,{item:!0,md:6,className:r.imageContainer,height:"50%",container:!0,wrap:"nowrap",direction:"column",children:[(0,Ae.jsxs)(ws,{item:!0,container:!0,justifyContent:"space-between",alignItems:"center",padding:"0.5rem",flexShrink:1,children:[(0,Ae.jsx)(ws,{item:!0,xs:4,children:!l&&(0,Ae.jsx)(ET,{className:r.select,placeholder:"Select inspection",styles:JW,options:v.map((e=>({label:Gy(e.inspectionDate),value:e.id,isDisabled:s.some((t=>t&&t.value===e.id))}))),value:s[t],onChange:n=>(async(t,n)=>{if(n){let i=b.find((e=>e.inspectionId===n.value));if(!i){var r;w(t);const o=null!==(r=e.defect)&&void 0!==r&&r.inspectionType?e.defect.inspectionType:"Blades",s=await jL(n.value,o,!1);w(-1),i={inspectionId:n.value,...s},s&&x([...b,i])}const o=await L(t,n.value,i);if(null!==o&&void 0!==o&&o.length){const e=[...f];e[t]=o,g(e)}else D(t,!0);const l=[...s];l[t]=n,a(l)}})(t,n)})}),(0,Ae.jsx)(ws,{item:!0,xs:4,children:z(R(t))}),(0,Ae.jsx)(ws,{item:!0,xs:4})]}),(0,Ae.jsxs)(ws,{item:!0,height:0,flex:1,children:[!(null===(n=f[t])||void 0===n||!n.length)&&!m[t]&&F(f[t]),m[t]&&(0,Ae.jsx)("div",{style:{marginTop:"5vh"},children:"Relevant picture has not been found"})]})]})};return(0,Ae.jsx)("div",{style:{height:"100%"},children:!(null===(t=e.annotations)||void 0===t||!t.length)&&e.active&&(0,Ae.jsxs)(ws,{container:!0,justifyContent:"center",direction:"row",height:"100%",children:[(0,Ae.jsxs)(ws,{item:!0,md:6,className:r.imageContainer,height:"50%",container:!0,wrap:"nowrap",direction:"column",children:[(0,Ae.jsxs)(ws,{item:!0,container:!0,justifyContent:"space-between",alignItems:"center",padding:"0.5rem",flexShrink:1,children:[(0,Ae.jsx)(ws,{item:!0,xs:4,children:(0,Ae.jsx)("div",{className:r.select,children:Gy(e.inspectionDoc.inspectionDates.inspected)})}),(0,Ae.jsx)(ws,{item:!0,xs:4,children:z(null!==v&&void 0!==v&&v.length||l?"Selected":"Selected (no previous inspection)")}),(0,Ae.jsx)(ws,{item:!0,xs:4})]}),(0,Ae.jsx)(ws,{item:!0,height:0,flex:1,children:h&&F(h,e.annotations[0],!0)})]}),(l||0===S||!!v.length)&&B(0),k&&(0,Ae.jsxs)(Ae.Fragment,{children:[(l||1===S||v.length>1)&&B(1),(l||2===S||v.length>2)&&B(2)]}),!l&&v.length>1&&(0,Ae.jsxs)("div",{className:r.switch,children:[(0,Ae.jsx)("div",{className:r.switchText,children:k?"Compare less ":"Compare more "}),(0,Ae.jsx)(Aj,{color:"primary",checked:k,onChange:()=>j(!k),className:r.switchButton})]})]})})};var eH=__webpack_require__(48080),tH=__webpack_require__(58132);const nH=async(e,t,n)=>{const r={method:"PATCH",body:JSON.stringify(n)};return Ey("/inspections/".concat(e,"/defects/").concat(t),r)},rH=e=>{const t=e.realHeight,n=e.realWidth;return n&&t?"".concat(n,"cm x ").concat(t,"cm"):""},iH=(e,t)=>{const n=window.location.protocol+"//"+window.location.host;return"".concat(n,"/inspections/").concat(t.id,"/defect/").concat(e.id)},oH=async function(e,t){let n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];const r=await Ey("/inspections/".concat(e,"/defects/external-links"),{method:"POST",body:JSON.stringify({defectsIds:t,forceRegenerate:n})}),i=await r.json();if(200!==r.status)throw new Error(null!==i&&void 0!==i?i:r.statusText);if(!Array.isArray(i)||i.some((e=>!e.defectId||!e.externalLink)))throw new Error("Invalid json");return i},sH=e=>{var t,r,i,o;const[s,a]=(0,n.useState)(),[l,c]=(0,n.useState)(!1),[u,d]=(0,n.useState)(!1),[h,p]=(0,n.useState)(!1),f=b(Um),g=null!==(t=e.annotations)&&void 0!==t?t:f,m=e=>e.annotations&&e.annotations.length,{inspections:y,internal:v}=e,_=null!==(r=null!==(i=e.inspectionType)&&void 0!==i?i:null===y||void 0===y||null===(o=y[0])||void 0===o?void 0:o.type)&&void 0!==r?r:RC.BLADES,x=(0,n.useMemo)((()=>_===RC.SOLAR),[_]),S=t=>t.inspectionId||1!==e.inspections.length?y.find((e=>{let{id:n}=e;return n===t.inspectionId})):e.inspections[0],w=e=>{const t=e.comments;if(!t)return"";const n=t.filter((e=>"Defect created"!==e.comment&&"Defect closed"!==e.comment));n.sort(((e,t)=>new Date(e.on).getTime()-new Date(t.on).getTime()));const r=n.map((e=>{const t=Iy(e.on);return"".concat(e.by," - ").concat(t," - ").concat(e.comment.replace(/(\r\n|\n|\r)/gm," "))}));return r.join(" // ")},E=e=>{let t;switch(e){case kC.INSPECTION:t="Inspection";break;case kC.CAMPAIGN:t="Campaign";break;case"Asset":t="Asset";break;case"SubAsset":t="SubAsset";break;case"Assets":t="Global";break;default:t=null}return t},P=async t=>{const n=[];n.push((()=>{var t;let n;const r=null!==(t=E(e.mode))&&void 0!==t?t:"";return n=x?[e.defectManagerName?"":"ID_".concat(r,"_context"),"unique_ID","Asset","Sub_Asset","Panel_Model","Inspection_Date","Defect_Creation_Date","Defect_Created_By","Type","Severity","Delta_T\xb0C","Mean_T\xb0C","Max_T\xb0C","Note","Root_cause","Next_step","Module_Serial_Number","Status","Latitude","Longitude","Google_maps_Link","SkyVisor_".concat(r,"_link"),e.defectManagerName?"":"External_defect_link","Comments_(Name-Date-Content)"]:_===RC.TOWER?["Unique_ID","Type","Model","Severity","Altitude_(m)","Note","Root_cause","Next_step","Asset","Sub_Asset","Status","SkyVisor_".concat(r,"_link")]:[e.defectManagerName?"":"ID_".concat(r,"_context"),"unique_ID","Asset","Turbine","Turbine_Model",e.defectManagerName?"":"Turbine_Serial","Inspection_Date","Defect_Creation_Date","Type","Severity","Defect_Size","Blade",e.defectManagerName?"":"Blade_Serial","Side","Root_Blade_Distance(m)","Note","Root_cause","Next_step","Status","SkyVisor_".concat(r,"_link"),"Comments_(Name-Date-Content)"],n})());let r=0;for(const{inspectionId:e,defects:o}of t){const t=await N(e,o,r);n.push(...t),r+=o.length}const i=n[0].map(((e,t)=>""===e?t:null)).filter((e=>null!==e));for(let e=0;e<n.length;e++){const t=n[e];n[e]=t.filter(((e,t)=>!i.includes(t)))}return n.push([""]),n.push(["","Powered by SkyVisor"]),n},C=e=>{var t,n;if(null!==e&&void 0!==e&&e.asset)return null===e||void 0===e?void 0:e.asset;const r=S(e);return null!==(t=null===r||void 0===r||null===(n=r.asset)||void 0===n?void 0:n.name)&&void 0!==t?t:""},A=e=>{var t,n;if(null!==e&&void 0!==e&&e.subAsset)return null===e||void 0===e?void 0:e.subAsset;const r=S(e);return null!==(t=null===r||void 0===r||null===(n=r.subAsset)||void 0===n?void 0:n.name)&&void 0!==t?t:""},k=t=>{var n,r;if(e.defectManagerName)return null!==(n=t.model)&&void 0!==n?n:"";const i=S(t);return null!==(r=null===i||void 0===i?void 0:i.subAsset.model)&&void 0!==r?r:""},j=t=>{if(e.defectManagerName)return t.inspectionDate;const n=S(t);return n?n.inspectionDates.inspected:""},I=(t,n)=>{var r;const i=window.location.protocol+"//"+window.location.host;if(e.defectManagerName)return"".concat(i,"/inspections/").concat(t.inspectionId,"/defect/").concat(t.id);const o=null===(r=S(t))||void 0===r?void 0:r.id;return o?"".concat(i,"/inspections/").concat(o,"/defect/").concat(t.id):""},G=e=>{if(!m(e))return"";const t=g.find((t=>t.fileName===e.annotations[0].annotationRef)),n=null===t||void 0===t?void 0:t.realHeight,r=null===t||void 0===t?void 0:t.realWidth;return r&&n?"".concat(r," x ").concat(n):""},T=e=>{if(m(e)){const t=g.find((t=>t.fileName===e.annotations[0].annotationRef));if(null!==t&&void 0!==t&&t.thermalStats)return SU(t)}return 0},M=e=>{if(m(e)){const t=g.find((t=>t.fileName===e.annotations[0].annotationRef));if(null!==t&&void 0!==t&&t.thermalStats)return Ly(t.thermalStats.mean,1)}return 0},O=e=>{if(m(e)){const t=g.find((t=>t.fileName===e.annotations[0].annotationRef));if(null!==t&&void 0!==t&&t.thermalStats)return Ly(t.thermalStats.max,1)}return 0},R=e=>{if(m(e)){const t=g.find((t=>t.fileName===e.annotations[0].annotationRef));if(null!==t&&void 0!==t&&t.position)return{lat:t.position.lat,lon:t.position.lon}}return{lat:"",lon:""}},D=e=>{const t=S(e);return t?t.subAsset.serials:{turbine:"",A:"",B:"",C:""}},N=async(t,n,r)=>{let i=[];v&&x&&n.length>0&&!e.defectManagerName&&(i=await oH(t,n.map((e=>{let{id:t}=e;return t}))));const o="".concat(window.location.host,"/results"),s=e=>{var t;const n=null===(t=i.find((t=>{let{defectId:n}=t;return n===e.id})))||void 0===t?void 0:t.externalLink;return n?"".concat(o,"/").concat(n):""};if(x)return n.map(((t,n)=>[e.defectManagerName?"":(r+n+1).toString(),t.id,C(t),A(t),k(t),j(t),t.modified,t.author,t.type,t.severity,T(t),M(t),O(t),t.note.replace(/(\r\n|\n|\r)/gm," "),t.rootCause.replace(/(\r\n|\n|\r)/gm," "),t.nextStep.replace(/(\r\n|\n|\r)/gm," "),t.panelSerialNumber,t.state&&"closed"===t.state.status?"Resolved":"Ongoing",R(t).lat,R(t).lon,L(t),I(t,e.mode),e.defectManagerName?"":s(t),w(t)]));if("Wind"===_)return n.map(((t,n)=>{var r,i,o,s;return[e.defectManagerName?"":(n+1).toString(),t.id,C(t),A(t),k(t),null===(r=D(t))||void 0===r?void 0:r.turbine,j(t),null===(i=t.state)||void 0===i?void 0:i.by,t.type,t.severity,G(t),t.blade,null===(o=D(t))||void 0===o?void 0:o[null!==(s=t.blade)&&void 0!==s?s:""],t.face,t.hubDistance?Ly(t.hubDistance,2):"",t.note.replace(/(\r\n|\n|\r)/gm," "),t.rootCause.replace(/(\r\n|\n|\r)/gm," "),t.nextStep.replace(/(\r\n|\n|\r)/gm," "),t.state?"open"===t.state.status?"Ongoing":"Resolved":"Ongoing",I(t,e.mode),w(t)]}));if(_===RC.BLADES){let t=[];for(const r of["A","B","C"]){const i=n.filter((e=>e.blade===r)),o=i.map(((t,n)=>{var i,o,s,a;return[e.defectManagerName?"":r+(n+1).toString(),t.id,C(t),A(t),k(t),null===(i=D(t))||void 0===i?void 0:i.turbine,j(t),null===(o=t.state)||void 0===o?void 0:o.by,t.type,t.severity,G(t),t.blade,null===(s=D(t))||void 0===s?void 0:s[null!==(a=t.blade)&&void 0!==a?a:""],t.face,t.hubDistance?Ly(t.hubDistance,2):"",t.note.replace(/(\r\n|\n|\r)/gm," "),t.rootCause.replace(/(\r\n|\n|\r)/gm," "),t.nextStep.replace(/(\r\n|\n|\r)/gm," "),t.state?"open"===t.state.status?"Ongoing":"Resolved":"Ongoing",I(t,e.mode),w(t)]}));t=t.concat(o)}return t}return _===RC.TOWER?n.map(((t,n)=>[e.defectManagerName?"":(r+n+1).toString(),t.type,k(t),t.severity,t.altitude,t.note,t.rootCause,t.nextStep.replace(/(\r\n|\n|\r)/gm," "),C(t),A(t),t.state?"open"===t.state.status?"Ongoing":"Resolved":"Ongoing",I(t),s(t)])):[]},L=e=>{if(m(e)){const t=g.find((t=>t.fileName===e.annotations[0].annotationRef));if(t&&t.position)return'"https://maps.google.com/?q='.concat(t.position.lat,",").concat(t.position.lon,'"')}return""},V=async e=>{a(void 0);const t=await P(e);a(t)},F=(0,n.useMemo)((()=>{var t,n,r;return x&&!e.defectManagerName?y.map((t=>{let{id:n}=t;return{inspectionId:n,defects:jA(e.defects.filter((e=>{var t;return(null===(t=S(e))||void 0===t?void 0:t.id)===n})),g)}})):[{inspectionId:null!==(t=null===(n=e.defects)||void 0===n||null===(r=n[0])||void 0===r?void 0:r.inspectionId)&&void 0!==t?t:"",defects:e.defects}]}),[y,e.defects,g,x]),z=(0,n.useCallback)((async()=>{p(!0),a(void 0),await Promise.all(F.map((e=>{let{inspectionId:t,defects:n}=e;const r=n.map((e=>{let{id:t}=e;return t}));return(async(e,t)=>oH(e,t,!0))(t,r)}))),V(F),p(!1)}),[F]),B=async e=>{e.preventDefault(),c(!0),await V(F),c(!1),d(!0)},U=(0,n.useRef)(null);return(0,n.useEffect)((()=>{u&&!l&&U.current&&(U.current.link.click(),d(!1))}),[u,l]),(0,Ae.jsxs)(ws,{container:!0,alignItems:"center",gap:2,width:x?"100%":"fit-content",wrap:"nowrap",children:[v&&x&&!e.defectManagerName&&(0,Ae.jsx)(ws,{item:!0,xs:8.5,children:(0,Ae.jsx)(cu,{title:"This will regenerate an external link per defect in CSV, and delete existing ones",children:(0,Ae.jsx)(wp,{children:(0,Ae.jsx)(ev,{onClick:z,loading:h,label:h?"Regenerating links\u2026":"Regenerate external links",lowerCase:!0,variant:"outlined",textColor:Fp,waitIconColor:Fp,fullWidth:!0,style:{fontSize:"1rem"}})})})}),(0,Ae.jsx)(ws,{item:!0,xs:x&&v?3.5:12,children:(0,Ae.jsx)(eH.CSVLink,{ref:U,data:null!==s&&void 0!==s?s:[],enclosingCharacter:"",separator:";",style:{textDecorationLine:"none"},filename:(()=>{var t;const n=null!==(t=E(e.mode))&&void 0!==t?t:"",r=e.inspections[0];switch(n){case"Inspection":return"Defects_".concat(null===r||void 0===r?void 0:r.asset.name,"_").concat(null===r||void 0===r?void 0:r.subAsset.name,".csv");case"Campaign":return"Defects_Campaign_".concat(null===r||void 0===r?void 0:r.asset.name,".csv");case"Asset":case"SubAsset":return"Defects_".concat(e.defectManagerName,".csv");case"Global":return"All_".concat(e.inspectionType,"_Defects_.csv");default:return"Defects_".concat(null===r||void 0===r?void 0:r.asset.name,".csv")}})(),target:"_blank",children:x?(0,Ae.jsx)(ev,{loading:l,disabled:l,onClick:e=>B(e),frontIcon:(0,Ae.jsx)(tH.c,{}),label:"Export CSV",color:"success"}):(0,Ae.jsx)(ev,{loading:l,disabled:l,onClick:e=>B(e),frontIcon:(0,Ae.jsx)(gM,{size:20}),label:e.smallWithIcon?"CSV":e.title?e.title:"Export CSV",color:"success"})})})]})};var aH;function lH(){return lH=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},lH.apply(this,arguments)}function cH(e,t){let{title:r,titleId:i,...o}=e;return n.createElement("svg",lH({viewBox:"0 0 36 35",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:t,"aria-labelledby":i},o),r?n.createElement("title",{id:i},r):null,aH||(aH=n.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M34.076 1.52462C32.0432 -0.508197 28.7475 -0.508214 26.7147 1.52462L23.8 4.43927L10.0822 18.157C9.85983 18.3795 9.70209 18.6581 9.62581 18.9632L7.8907 25.9036C7.74287 26.495 7.91612 27.1205 8.34709 27.5513C8.77805 27.9823 9.40354 28.1557 9.99483 28.0078L16.9352 26.2727C17.2404 26.1964 17.5189 26.0386 17.7414 25.8162L31.3594 12.1982L34.3738 9.18379C36.4067 7.15098 36.4067 3.85512 34.3738 1.82231L34.076 1.52462ZM29.1685 3.97844C29.846 3.30084 30.9447 3.30084 31.6223 3.97844L31.92 4.27613C32.5976 4.95375 32.5976 6.05237 31.92 6.72997L30.1563 8.49375L27.4575 5.68947L29.1685 3.97844ZM25.0031 8.14375L27.7019 10.948L15.6275 23.0226L11.9587 23.9398L12.8759 20.2711L25.0031 8.14375ZM4.36866 10.7084C4.36866 9.75014 5.14551 8.97329 6.10378 8.97329H14.7793C15.7376 8.97329 16.5145 8.19646 16.5145 7.23817C16.5145 6.2799 15.7376 5.50305 14.7793 5.50305H6.10378C3.22895 5.50305 0.898438 7.83358 0.898438 10.7084V29.7946C0.898438 32.6696 3.22895 35 6.10378 35H25.19C28.0649 35 30.3954 32.6696 30.3954 29.7946V21.119C30.3954 20.1609 29.6185 19.3839 28.6602 19.3839C27.7019 19.3839 26.9251 20.1609 26.9251 21.119V29.7946C26.9251 30.753 26.1483 31.5298 25.19 31.5298H6.10378C5.14551 31.5298 4.36866 30.753 4.36866 29.7946V10.7084Z",fill:"#00A6FF"})))}const uH=n.forwardRef(cH);__webpack_require__.p;const dH=__webpack_require__.p+"static/media/blade1-2.fd5c66249e5435defcd85c0322ccd6cf.svg";var hH=new Map([["aac","audio/aac"],["abw","application/x-abiword"],["arc","application/x-freearc"],["avif","image/avif"],["avi","video/x-msvideo"],["azw","application/vnd.amazon.ebook"],["bin","application/octet-stream"],["bmp","image/bmp"],["bz","application/x-bzip"],["bz2","application/x-bzip2"],["cda","application/x-cdf"],["csh","application/x-csh"],["css","text/css"],["csv","text/csv"],["doc","application/msword"],["docx","application/vnd.openxmlformats-officedocument.wordprocessingml.document"],["eot","application/vnd.ms-fontobject"],["epub","application/epub+zip"],["gz","application/gzip"],["gif","image/gif"],["heic","image/heic"],["heif","image/heif"],["htm","text/html"],["html","text/html"],["ico","image/vnd.microsoft.icon"],["ics","text/calendar"],["jar","application/java-archive"],["jpeg","image/jpeg"],["jpg","image/jpeg"],["js","text/javascript"],["json","application/json"],["jsonld","application/ld+json"],["mid","audio/midi"],["midi","audio/midi"],["mjs","text/javascript"],["mp3","audio/mpeg"],["mp4","video/mp4"],["mpeg","video/mpeg"],["mpkg","application/vnd.apple.installer+xml"],["odp","application/vnd.oasis.opendocument.presentation"],["ods","application/vnd.oasis.opendocument.spreadsheet"],["odt","application/vnd.oasis.opendocument.text"],["oga","audio/ogg"],["ogv","video/ogg"],["ogx","application/ogg"],["opus","audio/opus"],["otf","font/otf"],["png","image/png"],["pdf","application/pdf"],["php","application/x-httpd-php"],["ppt","application/vnd.ms-powerpoint"],["pptx","application/vnd.openxmlformats-officedocument.presentationml.presentation"],["rar","application/vnd.rar"],["rtf","application/rtf"],["sh","application/x-sh"],["svg","image/svg+xml"],["swf","application/x-shockwave-flash"],["tar","application/x-tar"],["tif","image/tiff"],["tiff","image/tiff"],["ts","video/mp2t"],["ttf","font/ttf"],["txt","text/plain"],["vsd","application/vnd.visio"],["wav","audio/wav"],["weba","audio/webm"],["webm","video/webm"],["webp","image/webp"],["woff","font/woff"],["woff2","font/woff2"],["xhtml","application/xhtml+xml"],["xls","application/vnd.ms-excel"],["xlsx","application/vnd.openxmlformats-officedocument.spreadsheetml.sheet"],["xml","application/xml"],["xul","application/vnd.mozilla.xul+xml"],["zip","application/zip"],["7z","application/x-7z-compressed"],["mkv","video/x-matroska"],["mov","video/quicktime"],["msg","application/vnd.ms-outlook"]]);function pH(e,t){var n=function(e){var t=e.name;if(t&&-1!==t.lastIndexOf(".")&&!e.type){var n=t.split(".").pop().toLowerCase(),r=hH.get(n);r&&Object.defineProperty(e,"type",{value:r,writable:!1,configurable:!1,enumerable:!0})}return e}(e);if("string"!==typeof n.path){var r=e.webkitRelativePath;Object.defineProperty(n,"path",{value:"string"===typeof t?t:"string"===typeof r&&r.length>0?r:e.name,writable:!1,configurable:!1,enumerable:!0})}return n}var fH=[".DS_Store","Thumbs.db"];function gH(e){return"object"===typeof e&&null!==e}function mH(e){return bH(e.target.files).map((function(e){return pH(e)}))}function yH(e){return hi(this,void 0,void 0,(function(){return pi(this,(function(t){switch(t.label){case 0:return[4,Promise.all(e.map((function(e){return e.getFile()})))];case 1:return[2,t.sent().map((function(e){return pH(e)}))]}}))}))}function vH(e,t){return hi(this,void 0,void 0,(function(){var n;return pi(this,(function(r){switch(r.label){case 0:return e.items?(n=bH(e.items).filter((function(e){return"file"===e.kind})),"drop"!==t?[2,n]:[4,Promise.all(n.map(xH))]):[3,2];case 1:return[2,_H(SH(r.sent()))];case 2:return[2,_H(bH(e.files).map((function(e){return pH(e)})))]}}))}))}function _H(e){return e.filter((function(e){return-1===fH.indexOf(e.name)}))}function bH(e){if(null===e)return[];for(var t=[],n=0;n<e.length;n++){var r=e[n];t.push(r)}return t}function xH(e){if("function"!==typeof e.webkitGetAsEntry)return wH(e);var t=e.webkitGetAsEntry();return t&&t.isDirectory?PH(t):wH(e)}function SH(e){return e.reduce((function(e,t){return mi(mi([],gi(e),!1),gi(Array.isArray(t)?SH(t):[t]),!1)}),[])}function wH(e){var t=e.getAsFile();if(!t)return Promise.reject("".concat(e," is not a File"));var n=pH(t);return Promise.resolve(n)}function EH(e){return hi(this,void 0,void 0,(function(){return pi(this,(function(t){return[2,e.isDirectory?PH(e):CH(e)]}))}))}function PH(e){var t=e.createReader();return new Promise((function(e,n){var r=[];!function i(){var o=this;t.readEntries((function(t){return hi(o,void 0,void 0,(function(){var o,s,a;return pi(this,(function(l){switch(l.label){case 0:if(t.length)return[3,5];l.label=1;case 1:return l.trys.push([1,3,,4]),[4,Promise.all(r)];case 2:return o=l.sent(),e(o),[3,4];case 3:return s=l.sent(),n(s),[3,4];case 4:return[3,6];case 5:a=Promise.all(t.map(EH)),r.push(a),i(),l.label=6;case 6:return[2]}}))}))}),(function(e){n(e)}))}()}))}function CH(e){return hi(this,void 0,void 0,(function(){return pi(this,(function(t){return[2,new Promise((function(t,n){e.file((function(n){var r=pH(n,e.fullPath);t(r)}),(function(e){n(e)}))}))]}))}))}var AH=__webpack_require__(88856);function kH(e){return function(e){if(Array.isArray(e))return OH(e)}(e)||function(e){if("undefined"!==typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||MH(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function jH(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function IH(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?jH(Object(n),!0).forEach((function(t){GH(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):jH(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function GH(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function TH(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!==typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null==n)return;var r,i,o=[],s=!0,a=!1;try{for(n=n.call(e);!(s=(r=n.next()).done)&&(o.push(r.value),!t||o.length!==t);s=!0);}catch(l){a=!0,i=l}finally{try{s||null==n.return||n.return()}finally{if(a)throw i}}return o}(e,t)||MH(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function MH(e,t){if(e){if("string"===typeof e)return OH(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?OH(e,t):void 0}}function OH(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var RH="file-invalid-type",DH="file-too-large",NH="file-too-small",LH="too-many-files",VH=function(e){e=Array.isArray(e)&&1===e.length?e[0]:e;var t=Array.isArray(e)?"one of ".concat(e.join(", ")):e;return{code:RH,message:"File type must be ".concat(t)}},FH=function(e){return{code:DH,message:"File is larger than ".concat(e," ").concat(1===e?"byte":"bytes")}},zH=function(e){return{code:NH,message:"File is smaller than ".concat(e," ").concat(1===e?"byte":"bytes")}},BH={code:LH,message:"Too many files"};function UH(e,t){var n="application/x-moz-file"===e.type||(0,AH.c)(e,t);return[n,n?null:VH(t)]}function WH(e,t,n){if(HH(e.size))if(HH(t)&&HH(n)){if(e.size>n)return[!1,FH(n)];if(e.size<t)return[!1,zH(t)]}else{if(HH(t)&&e.size<t)return[!1,zH(t)];if(HH(n)&&e.size>n)return[!1,FH(n)]}return[!0,null]}function HH(e){return void 0!==e&&null!==e}function qH(e){return"function"===typeof e.isPropagationStopped?e.isPropagationStopped():"undefined"!==typeof e.cancelBubble&&e.cancelBubble}function XH(e){return e.dataTransfer?Array.prototype.some.call(e.dataTransfer.types,(function(e){return"Files"===e||"application/x-moz-file"===e})):!!e.target&&!!e.target.files}function YH(e){e.preventDefault()}function KH(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return function(e){for(var n=arguments.length,r=new Array(n>1?n-1:0),i=1;i<n;i++)r[i-1]=arguments[i];return t.some((function(t){return!qH(e)&&t&&t.apply(void 0,[e].concat(r)),qH(e)}))}}function ZH(e){return"audio/*"===e||"video/*"===e||"image/*"===e||"text/*"===e||/\w+\/[-+.\w]+/g.test(e)}function $H(e){return/^.*\.[\w]+$/.test(e)}var JH=["children"],QH=["open"],eq=["refKey","role","onKeyDown","onFocus","onBlur","onClick","onDragEnter","onDragOver","onDragLeave","onDrop"],tq=["refKey","onChange","onClick"];function nq(e){return function(e){if(Array.isArray(e))return oq(e)}(e)||function(e){if("undefined"!==typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||iq(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function rq(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!==typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null==n)return;var r,i,o=[],s=!0,a=!1;try{for(n=n.call(e);!(s=(r=n.next()).done)&&(o.push(r.value),!t||o.length!==t);s=!0);}catch(l){a=!0,i=l}finally{try{s||null==n.return||n.return()}finally{if(a)throw i}}return o}(e,t)||iq(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function iq(e,t){if(e){if("string"===typeof e)return oq(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?oq(e,t):void 0}}function oq(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function sq(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function aq(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?sq(Object(n),!0).forEach((function(t){lq(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):sq(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function lq(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function cq(e,t){if(null==e)return{};var n,r,i=function(e,t){if(null==e)return{};var n,r,i={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(i[n]=e[n]);return i}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}var uq=(0,n.forwardRef)((function(e,t){var r=e.children,i=pq(cq(e,JH)),o=i.open,s=cq(i,QH);return(0,n.useImperativeHandle)(t,(function(){return{open:o}}),[o]),n.createElement(n.Fragment,null,r(aq(aq({},s),{},{open:o})))}));uq.displayName="Dropzone";var dq={disabled:!1,getFilesFromEvent:function(e){return hi(this,void 0,void 0,(function(){return pi(this,(function(t){return gH(e)&&function(e){return gH(e)}(e.dataTransfer)?[2,vH(e.dataTransfer,e.type)]:function(e){return gH(e)&&gH(e.target)}(e)?[2,mH(e)]:Array.isArray(e)&&e.every((function(e){return"getFile"in e&&"function"===typeof e.getFile}))?[2,yH(e)]:[2,[]]}))}))},maxSize:1/0,minSize:0,multiple:!0,maxFiles:0,preventDropOnDocument:!0,noClick:!1,noKeyboard:!1,noDrag:!1,noDragEventsBubbling:!1,validator:null,useFsAccessApi:!0,autoFocus:!1};uq.defaultProps=dq,uq.propTypes={children:tt().func,accept:tt().objectOf(tt().arrayOf(tt().string)),multiple:tt().bool,preventDropOnDocument:tt().bool,noClick:tt().bool,noKeyboard:tt().bool,noDrag:tt().bool,noDragEventsBubbling:tt().bool,minSize:tt().number,maxSize:tt().number,maxFiles:tt().number,disabled:tt().bool,getFilesFromEvent:tt().func,onFileDialogCancel:tt().func,onFileDialogOpen:tt().func,useFsAccessApi:tt().bool,autoFocus:tt().bool,onDragEnter:tt().func,onDragLeave:tt().func,onDragOver:tt().func,onDrop:tt().func,onDropAccepted:tt().func,onDropRejected:tt().func,onError:tt().func,validator:tt().func};var hq={isFocused:!1,isFileDialogActive:!1,isDragActive:!1,isDragAccept:!1,isDragReject:!1,acceptedFiles:[],fileRejections:[]};function pq(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=aq(aq({},dq),e),r=t.accept,i=t.disabled,o=t.getFilesFromEvent,s=t.maxSize,a=t.minSize,l=t.multiple,c=t.maxFiles,u=t.onDragEnter,d=t.onDragLeave,h=t.onDragOver,p=t.onDrop,f=t.onDropAccepted,g=t.onDropRejected,m=t.onFileDialogCancel,y=t.onFileDialogOpen,v=t.useFsAccessApi,_=t.autoFocus,b=t.preventDropOnDocument,x=t.noClick,S=t.noKeyboard,w=t.noDrag,E=t.noDragEventsBubbling,P=t.onError,C=t.validator,A=(0,n.useMemo)((function(){return function(e){if(HH(e))return Object.entries(e).reduce((function(e,t){var n=TH(t,2),r=n[0],i=n[1];return[].concat(kH(e),[r],kH(i))}),[]).filter((function(e){return ZH(e)||$H(e)})).join(",")}(r)}),[r]),k=(0,n.useMemo)((function(){return function(e){if(HH(e)){var t=Object.entries(e).filter((function(e){var t=TH(e,2),n=t[0],r=t[1],i=!0;return ZH(n)||(console.warn('Skipped "'.concat(n,'" because it is not a valid MIME type. Check https://developer.mozilla.org/en-US/docs/Web/HTTP/Basics_of_HTTP/MIME_types/Common_types for a list of valid MIME types.')),i=!1),Array.isArray(r)&&r.every($H)||(console.warn('Skipped "'.concat(n,'" because an invalid file extension was provided.')),i=!1),i})).reduce((function(e,t){var n=TH(t,2),r=n[0],i=n[1];return IH(IH({},e),{},GH({},r,i))}),{});return[{description:"Files",accept:t}]}return e}(r)}),[r]),j=(0,n.useMemo)((function(){return"function"===typeof y?y:gq}),[y]),I=(0,n.useMemo)((function(){return"function"===typeof m?m:gq}),[m]),G=(0,n.useRef)(null),T=(0,n.useRef)(null),M=rq((0,n.useReducer)(fq,hq),2),O=M[0],R=M[1],D=O.isFocused,N=O.isFileDialogActive,L=(0,n.useRef)("undefined"!==typeof window&&window.isSecureContext&&v&&"showOpenFilePicker"in window),V=function(){!L.current&&N&&setTimeout((function(){T.current&&(T.current.files.length||(R({type:"closeDialog"}),I()))}),300)};(0,n.useEffect)((function(){return window.addEventListener("focus",V,!1),function(){window.removeEventListener("focus",V,!1)}}),[T,N,I,L]);var F=(0,n.useRef)([]),z=function(e){G.current&&G.current.contains(e.target)||(e.preventDefault(),F.current=[])};(0,n.useEffect)((function(){return b&&(document.addEventListener("dragover",YH,!1),document.addEventListener("drop",z,!1)),function(){b&&(document.removeEventListener("dragover",YH),document.removeEventListener("drop",z))}}),[G,b]),(0,n.useEffect)((function(){return!i&&_&&G.current&&G.current.focus(),function(){}}),[G,_,i]);var B=(0,n.useCallback)((function(e){P?P(e):console.error(e)}),[P]),U=(0,n.useCallback)((function(e){e.preventDefault(),e.persist(),ne(e),F.current=[].concat(nq(F.current),[e.target]),XH(e)&&Promise.resolve(o(e)).then((function(t){if(!qH(e)||E){var n=t.length,r=n>0&&function(e){var t=e.files,n=e.accept,r=e.minSize,i=e.maxSize,o=e.multiple,s=e.maxFiles,a=e.validator;return!(!o&&t.length>1||o&&s>=1&&t.length>s)&&t.every((function(e){var t=TH(UH(e,n),1)[0],o=TH(WH(e,r,i),1)[0],s=a?a(e):null;return t&&o&&!s}))}({files:t,accept:A,minSize:a,maxSize:s,multiple:l,maxFiles:c,validator:C});R({isDragAccept:r,isDragReject:n>0&&!r,isDragActive:!0,type:"setDraggedFiles"}),u&&u(e)}})).catch((function(e){return B(e)}))}),[o,u,B,E,A,a,s,l,c,C]),W=(0,n.useCallback)((function(e){e.preventDefault(),e.persist(),ne(e);var t=XH(e);if(t&&e.dataTransfer)try{e.dataTransfer.dropEffect="copy"}catch(n){}return t&&h&&h(e),!1}),[h,E]),H=(0,n.useCallback)((function(e){e.preventDefault(),e.persist(),ne(e);var t=F.current.filter((function(e){return G.current&&G.current.contains(e)})),n=t.indexOf(e.target);-1!==n&&t.splice(n,1),F.current=t,t.length>0||(R({type:"setDraggedFiles",isDragActive:!1,isDragAccept:!1,isDragReject:!1}),XH(e)&&d&&d(e))}),[G,d,E]),q=(0,n.useCallback)((function(e,t){var n=[],r=[];e.forEach((function(e){var t=rq(UH(e,A),2),i=t[0],o=t[1],l=rq(WH(e,a,s),2),c=l[0],u=l[1],d=C?C(e):null;if(i&&c&&!d)n.push(e);else{var h=[o,u];d&&(h=h.concat(d)),r.push({file:e,errors:h.filter((function(e){return e}))})}})),(!l&&n.length>1||l&&c>=1&&n.length>c)&&(n.forEach((function(e){r.push({file:e,errors:[BH]})})),n.splice(0)),R({acceptedFiles:n,fileRejections:r,type:"setFiles"}),p&&p(n,r,t),r.length>0&&g&&g(r,t),n.length>0&&f&&f(n,t)}),[R,l,A,a,s,c,p,f,g,C]),X=(0,n.useCallback)((function(e){e.preventDefault(),e.persist(),ne(e),F.current=[],XH(e)&&Promise.resolve(o(e)).then((function(t){qH(e)&&!E||q(t,e)})).catch((function(e){return B(e)})),R({type:"reset"})}),[o,q,B,E]),Y=(0,n.useCallback)((function(){if(L.current){R({type:"openDialog"}),j();var e={multiple:l,types:k};window.showOpenFilePicker(e).then((function(e){return o(e)})).then((function(e){q(e,null),R({type:"closeDialog"})})).catch((function(e){!function(e){return e instanceof DOMException&&("AbortError"===e.name||e.code===e.ABORT_ERR)}(e)?!function(e){return e instanceof DOMException&&("SecurityError"===e.name||e.code===e.SECURITY_ERR)}(e)?B(e):(L.current=!1,T.current?(T.current.value=null,T.current.click()):B(new Error("Cannot open the file picker because the https://developer.mozilla.org/en-US/docs/Web/API/File_System_Access_API is not supported and no <input> was provided."))):(I(e),R({type:"closeDialog"}))}))}else T.current&&(R({type:"openDialog"}),j(),T.current.value=null,T.current.click())}),[R,j,I,v,q,B,k,l]),K=(0,n.useCallback)((function(e){G.current&&G.current.isEqualNode(e.target)&&(" "!==e.key&&"Enter"!==e.key&&32!==e.keyCode&&13!==e.keyCode||(e.preventDefault(),Y()))}),[G,Y]),Z=(0,n.useCallback)((function(){R({type:"focus"})}),[]),$=(0,n.useCallback)((function(){R({type:"blur"})}),[]),J=(0,n.useCallback)((function(){x||(!function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:window.navigator.userAgent;return function(e){return-1!==e.indexOf("MSIE")||-1!==e.indexOf("Trident/")}(e)||function(e){return-1!==e.indexOf("Edge/")}(e)}()?Y():setTimeout(Y,0))}),[x,Y]),Q=function(e){return i?null:e},ee=function(e){return S?null:Q(e)},te=function(e){return w?null:Q(e)},ne=function(e){E&&e.stopPropagation()},re=(0,n.useMemo)((function(){return function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.refKey,n=void 0===t?"ref":t,r=e.role,o=e.onKeyDown,s=e.onFocus,a=e.onBlur,l=e.onClick,c=e.onDragEnter,u=e.onDragOver,d=e.onDragLeave,h=e.onDrop,p=cq(e,eq);return aq(aq(lq({onKeyDown:ee(KH(o,K)),onFocus:ee(KH(s,Z)),onBlur:ee(KH(a,$)),onClick:Q(KH(l,J)),onDragEnter:te(KH(c,U)),onDragOver:te(KH(u,W)),onDragLeave:te(KH(d,H)),onDrop:te(KH(h,X)),role:"string"===typeof r&&""!==r?r:"presentation"},n,G),i||S?{}:{tabIndex:0}),p)}}),[G,K,Z,$,J,U,W,H,X,S,w,i]),ie=(0,n.useCallback)((function(e){e.stopPropagation()}),[]),oe=(0,n.useMemo)((function(){return function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.refKey,n=void 0===t?"ref":t,r=e.onChange,i=e.onClick,o=cq(e,tq);return aq(aq({},lq({accept:A,multiple:l,type:"file",style:{display:"none"},onChange:Q(KH(r,X)),onClick:Q(KH(i,ie)),tabIndex:-1},n,T)),o)}}),[T,r,l,X,i]);return aq(aq({},O),{},{isFocused:D&&!i,getRootProps:re,getInputProps:oe,rootRef:G,inputRef:T,open:Q(Y)})}function fq(e,t){switch(t.type){case"focus":return aq(aq({},e),{},{isFocused:!0});case"blur":return aq(aq({},e),{},{isFocused:!1});case"openDialog":return aq(aq({},hq),{},{isFileDialogActive:!0});case"closeDialog":return aq(aq({},e),{},{isFileDialogActive:!1});case"setDraggedFiles":return aq(aq({},e),{},{isDragActive:t.isDragActive,isDragAccept:t.isDragAccept,isDragReject:t.isDragReject});case"setFiles":return aq(aq({},e),{},{acceptedFiles:t.acceptedFiles,fileRejections:t.fileRejections});case"reset":return aq({},hq);default:return e}}function gq(){}const mq=e=>{const[t,r]=(0,n.useState)([]),[i,o]=(0,n.useState)(!1),s={flex:1,display:"flex",flexDirection:"column",alignItems:"center",padding:"40px",borderWidth:3,borderRadius:3,borderColor:jp,borderStyle:"dashed",backgroundColor:"#fafafa",color:"#5d5d5d",outline:"none",transition:"border .24s ease-in-out"},a={borderColor:"#2196f3"},l={borderColor:"#00e676"},c={borderColor:"#00e676"},u=(0,n.useCallback)((async e=>{v(e)}),[]),{getRootProps:d,getInputProps:h,isDragActive:p,isDragAccept:f,isDragReject:g,fileRejections:m}=pq({onDrop:u,accept:"all"===e.acceptedFiles?void 0:e.acceptedFiles,maxSize:e.fileSizeMax}),y=(0,n.useMemo)((()=>({...s,...p?a:{},...f?l:{},...g?c:{}})),[p,g,f]),v=async n=>{o(!0);for(let i of n){const n=(new Date).getTime(),o=await kL(e.inspectionId,i.name,n,e.identifier);if(o&&o.url){const n={file:i,url:o.url,inspectionId:e.inspectionId,fileName:o.fileName};r([...t,n]),await fetch(n.url,{method:"PUT",body:n.file})}}e.finished()};(0,n.useEffect)((()=>{i&&!e.loadDefect&&o(!1)}),[e.loadDefect]);const _=m.map(((t,n)=>{let{file:r,errors:i}=t;return(0,Ae.jsx)("li",{children:(0,Ae.jsx)("ul",{children:i.map((t=>(0,Ae.jsx)("li",{children:"".concat(e.rejectedMessage,": ").concat(r.name)},t.code)))})},n)}));return(0,Ae.jsxs)(Ae.Fragment,{children:[(0,Ae.jsxs)("div",{...d({style:y}),children:[(0,Ae.jsx)("input",{...h()}),(0,Ae.jsx)("p",{children:e.text}),i&&(0,Ae.jsx)("p",{children:(0,Ae.jsx)($y,{})})]}),(0,Ae.jsx)("ul",{children:_})]})},yq=(e,t)=>{const n="multiColor"===e?"./multiColor":"./monoColor";switch(t){case"mp3":case"wav":case"mpa":case"wma":case"ogg":case"aif":case"cda":case"mid":case"midi":case"wpl":return __webpack_require__(36900)("".concat(n,"/audio.json"));case"apk":return __webpack_require__(53840)("".concat(n,"/apk.json"));case"c":return __webpack_require__(7992)("".concat(n,"/c.json"));case"7z":case"arj":case"deb":case"pkg":case"rar":case"rpm":case"z":case"zip":return __webpack_require__(78532)("".concat(n,"/compressed.json"));case"cpp":return __webpack_require__(31296)("".concat(n,"/cpp.json"));case"cs":return __webpack_require__(27388)("".concat(n,"/cs.json"));case"css":return __webpack_require__(56243)("".concat(n,"/css.json"));case"iso":case"bin":case"toast":case"vcd":return __webpack_require__(79112)("".concat(n,"/disc.json"));case"sql":case"csv":case"db":case"dbf":case"log":case"mdb":case"sav":case"tar":case"xml":case"dat":return __webpack_require__(68420)("".concat(n,"/database.json"));case"doc":case"docx":case"odt":case"rtf":case"wpd":case"tex":case"txt":return __webpack_require__(47664)("".concat(n,"/document.json"));case"email":case"eml":case"emlx":case"msg":case"oft":case"ost":case"pst":case"vcf":return __webpack_require__(36071)("".concat(n,"/email.json"));case"exe":return __webpack_require__(93896)("".concat(n,"/exe.json"));case"fnt":case"fon":case"otf":case"ttf":return __webpack_require__(57936)("".concat(n,"/font.json"));case"html":return __webpack_require__(80472)("".concat(n,"/html.json"));case"png":case"jpeg":case"jpg":case"gif":case"exif":case"tiff":case"tif":case"bmp":return __webpack_require__(92376)("".concat(n,"/image.json"));case"java":return __webpack_require__(56416)("".concat(n,"/java.json"));case"js":return __webpack_require__(23747)("".concat(n,"/js.json"));case"json":return __webpack_require__(34340)("".concat(n,"/json.json"));case"pdf":return __webpack_require__(95704)("".concat(n,"/pdf.json"));case"php":return __webpack_require__(72192)("".concat(n,"/php.json"));case"py":return __webpack_require__(60052)("".concat(n,"/py.json"));case"bak":case"cab":case"cfg":case"cpl":case"dll":case"cur":case"dmp":case"drv":case"icns":case"ico":case"ini":case"lnk":case"msi":case"sys":case"tmp":return __webpack_require__(66888)("".concat(n,"/setting.json"));case"ppt":case"pptx":case"key":case"odp":case"pps":return __webpack_require__(65288)("".concat(n,"/slides.json"));case"xlsx":case"xlsm":case"xls":case"ods":return __webpack_require__(18028)("".concat(n,"/spreadsheet.json"));case"svg":return __webpack_require__(12652)("".concat(n,"/svg.json"));case"mp4":case"avi":case"flv":case"mov":case"mkv":case"mpeg":case"mpg":case"h264":case"3gp":case"3g2":case"rm":case"swf":case"m4v":case"vob":case"wmv":return __webpack_require__(27268)("".concat(n,"/video.json"));default:return __webpack_require__(93108)("".concat(n,"/fallback.json"))}},vq=e=>{if(e)return e.map((e=>n.createElement(e.tag,{...e.attr},vq(e.child))))},_q=(e,t,r,i,o)=>{const s=r||"1em";return((e,t)=>n.createElement(e.tag,{...e.attr,...t},vq(e.child)))(yq(t,e),{stroke:i||"currentColor",fill:i||"currentColor",strokeWidth:"0",height:s,width:s,className:o||null})},bq=e=>{let t,{fileName:n,fileType:r,colorType:i,size:o,color:s,className:a}=e;if(n){const e=new RegExp("[^.]+$");t=n.match(e)[0]}else t=r;return t=t.toLowerCase(),_q(t,i,o,s,a)},xq=e=>{const t=[...e];if(0===t.length)return"";if(1===t.length)return t[0];const n=t.pop(),r=t.join(", ");return"".concat(r," and ").concat(n)},Sq=e=>e.charAt(0).toUpperCase()+e.slice(1).toLowerCase(),wq=(e,t)=>"".concat(e).concat(t>1?"s":""),Eq=e=>{var t,r,i,o,s;const[a,l]=(0,n.useState)(!1),[c,u]=(0,n.useState)(!1),[d,h]=(0,n.useState)(null),[p,f]=(0,n.useState)([]),[g,m]=(0,n.useState)(!1),[y,v]=(0,n.useState)(""),_=Zo()((()=>({attach:{cursor:"pointer",marginLeft:Wy()?"0.5rem":"auto",marginRight:"1rem",color:jp,display:"flex"},fileUpload:{maxWidth:"20rem",margin:"0.3rem"},files:{marginLeft:"auto"},filesList:{margin:"0.5rem",display:"flex",flexFlow:"wrap",textAlign:"center"},file:{padding:"0.2rem 0.2rem 1rem 0.2rem",fontSize:"0.8rem",cursor:"pointer"},deleteFile:{fontSize:"0.9rem",color:"red",float:"right",marginRight:"-0.5rem",marginTop:"-1.3rem"},filesTitle:{margin:"0.5rem",fontSize:"1.1rem",color:jp,paddingTop:"0.5rem",paddingBottom:"0.5rem"},iconGroup:{...wU,padding:"0.3rem"}}))),{classes:b}=_();(0,n.useEffect)((()=>{x()}),[e.defect]);const x=async()=>{var t;if(null!==(t=e.defect)&&void 0!==t&&t.files){const t=await FL(e.inspectionId,e.defect.id,!!e.readOnly);f(t)}else f([])},S=e=>{if(null!==e&&void 0!==e&&e.fileName){const t=e.fileName.split(".").pop();return e.fileName.substr(0,e.fileName.lastIndexOf("_"))+"."+t}return""},w=e=>{if(p.length&&e){const t=p.find((t=>t.timestamp===e.timestamp));if(t&&t.write)return!0}return!1};return e.defect?(0,Ae.jsxs)(Ae.Fragment,{children:[(0,Ae.jsxs)("div",{className:b.attach,onClick:e=>{h(e.currentTarget),wB()?u(!0):l(!0)},children:[!(null===(t=e.defect)||void 0===t||null===(r=t.files)||void 0===r||!r.length)&&(0,Ae.jsx)("span",{style:{cursor:"pointer"},children:"".concat(e.defect.files.length," ").concat(wq("file",e.defect.files.length))}),!(e.readOnly&&(null===(i=e.defect)||void 0===i||!i.files))&&(0,Ae.jsx)(qj,{})]}),(0,Ae.jsx)(Ud,{anchorEl:d,open:a,onClose:()=>l(!1),anchorOrigin:{vertical:"top",horizontal:"right"},children:(0,Ae.jsxs)("div",{className:b.fileUpload,children:[e.defect&&!e.readOnly&&(0,Ae.jsx)(mq,{fileSizeMax:6e6,inspectionId:e.inspectionId,identifier:e.defect.id,text:"Drag and drop your new files here",finished:async()=>{m(!0),await(async(e,t,n)=>{const r=await Ey("/inspections/"+e+"/getDefect/"+t,{method:"GET",headers:{"Content-Type":"application/json"}}),i=await r.json();return Sy.dispatch(Mm(i)),i&&i.files&&(Sy.dispatch(ug({id:t,files:i.files})),n&&Sy.dispatch(my({defectId:t,files:i.files}))),i})(e.inspectionId,e.defect.id,e.groupedMode),m(!1)},loadDefect:g,acceptedFiles:"all",rejectedMessage:"Your file was rejected please ensure it is < 6MB"}),!(null===(o=e.defect)||void 0===o||null===(s=o.files)||void 0===s||!s.length)&&(0,Ae.jsxs)(Ae.Fragment,{children:[(0,Ae.jsx)("div",{className:b.filesTitle,children:"Uploaded files"}),(0,Ae.jsx)("div",{className:b.filesList,children:e.defect.files.map(((t,n)=>(0,Ae.jsx)("div",{className:b.file,children:(0,Ae.jsxs)("div",{onClick:()=>(async e=>{if(p.length&&e){const t=p.find((t=>t.timestamp===e.timestamp));t&&window.open(t.url)}})(t),className:b.iconGroup,children:[y===t.timestamp&&(0,Ae.jsx)($y,{size:16}),y!==t.timestamp&&(0,Ae.jsx)(bq,{fileName:t.fileName,colorType:"multiColor",size:"1.2rem"}),w(t)&&(0,Ae.jsx)("span",{className:b.deleteFile,onClick:n=>{n.stopPropagation(),(async t=>{v(t.timestamp),await VL(e.inspectionId,e.defect.id,t.timestamp,e.groupedMode),v("")})(t)},children:(0,Ae.jsx)(tp,{})}),(0,Ae.jsx)("div",{children:S(t)})]})},n)))})]})]})}),(0,Ae.jsx)(Ud,{open:c,anchorEl:d,onClose:()=>u(!1),anchorOrigin:{vertical:"top",horizontal:"center"},transformOrigin:{vertical:"bottom",horizontal:"center"},children:(0,Ae.jsx)(jU,{})})]}):(0,Ae.jsx)(Ae.Fragment,{})},Pq=e=>{var t;const[r,i]=(0,n.useState)(!1),[o,s]=(0,n.useState)(""),[a,l]=(0,n.useState)(null),[c,u]=(0,n.useState)(!1),{heightFitContent:d=!1}=e,h=Zo()((()=>({comments:{width:e.fromManager?"100%":"50%",justifyContent:"space-between",padding:"0.3rem",border:"1px solid lightgrey",borderRadius:"10px"},commentsSection:{height:d?"fit-content":"9vh",maxHeight:"9vh",overflowY:"auto"},titleInput:{margin:"0.5rem",color:jp,fontSize:"1rem"},add:{color:jp,cursor:"pointer"},author:{fontSize:"0.8rem",fontWeight:"bold"},date:{fontSize:"0.8rem",color:"grey"},input:{background:"white",width:"20rem",height:"5rem",margin:"0.3rem"},item:{display:"flex",paddingBottom:"0.2rem"},comment:{paddingLeft:"0.5rem",fontSize:"0.9rem"},delete:{marginLeft:"auto",fontSize:"0.9rem",color:"red",cursor:"pointer",paddingRight:"0.5rem"}}))),{classes:p}=h(),f=(0,n.useCallback)((e=>{if(e){return((e,t,n)=>new Date(String(e)).toLocaleDateString(void 0,n))(e,0,{year:"numeric",month:"numeric",day:"numeric"})}return""}),[]);return(0,Ae.jsxs)(Ae.Fragment,{children:[(0,Ae.jsxs)("div",{className:p.comments,children:[(0,Ae.jsxs)(ws,{container:!0,wrap:"nowrap",alignItems:"center",gap:"0.5rem",children:[(0,Ae.jsx)("b",{children:"Comments:"}),!e.isCommentReadOnly&&(0,Ae.jsxs)(ws,{item:!0,container:!0,wrap:"nowrap",alignItems:"center",gap:"2px",className:p.add,onClick:e=>{l(e.currentTarget),wB()?u(!0):i(!0)},children:[(0,Ae.jsx)(Na,{color:jp}),(0,Ae.jsx)("p",{children:"Add"})]}),!Wy()&&(0,Ae.jsx)(Eq,{defect:e.defect,readOnly:e.canAttachFiles,inspectionId:e.inspectionId,groupedMode:e.groupedMode})]}),(0,Ae.jsx)("div",{className:p.commentsSection,children:e.defect&&!(null===(t=e.defect.comments)||void 0===t||!t.length)&&(0,Ae.jsx)("div",{children:e.defect.comments.map((e=>e)).sort(((e,t)=>e.on>t.on?-1:1)).map(((t,n)=>(0,Ae.jsxs)("div",{className:p.item,children:[(0,Ae.jsxs)("div",{children:[(0,Ae.jsx)("div",{className:p.author,children:"".concat(t.by,":")}),(0,Ae.jsx)("div",{className:p.date,children:f(t.on)})]}),(0,Ae.jsx)("div",{className:p.comment,children:" ".concat(t.comment)}),t.write&&!e.externalUserCode&&(0,Ae.jsx)("div",{className:p.delete,children:(0,Ae.jsx)(Bj,{onClick:()=>((t,n)=>{var r;LL(e.inspectionId,e.defect.id,t,e.groupedMode,n),null===(r=e.setSelectedDefect)||void 0===r||r.call(e,(e=>({...e,comments:[...e.comments.filter((e=>e.on!==t))]})))})(t.on,t.comment)})})]},n)))})})]}),(0,Ae.jsxs)(Ud,{anchorEl:a,open:r,onClose:()=>i(!1),anchorOrigin:{vertical:"top",horizontal:"right"},transformOrigin:{vertical:"bottom",horizontal:"left"},children:[(0,Ae.jsx)("div",{className:p.titleInput,children:" New comment "}),(0,Ae.jsx)(iE,{className:p.input,color:"primary",label:"",maxRows:3,multiline:!0,autoFocus:!0,inputProps:{maxLength:400},value:o,InputLabelProps:{shrink:!1},onChange:e=>s(e.target.value)}),(0,Ae.jsxs)("div",{style:{display:"flex",justifyContent:"right"},children:[(0,Ae.jsx)("div",{children:(0,Ae.jsx)(ev,{label:"Exit",onClick:()=>{i(!1),s("")},size:"small",style:{width:"fit-content",margin:"0.5rem"},color:"cancel"})}),(0,Ae.jsx)("div",{children:(0,Ae.jsx)(ev,{label:"Save",onClick:()=>{var t;const{firstName:n,lastName:r}=wo();(async(e,t,n,r,i)=>{if(e){const o={method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({comment:n})},{firstName:s,lastName:a}=wo();Sy.dispatch(jm({id:t,comments:[{by:s&&a?"".concat(s," ").concat(a):"You",on:new Date,comment:n,write:!0}]})),Sy.dispatch(ag({id:t,comments:[{by:s&&a?"".concat(s," ").concat(a):"You",on:new Date,comment:n,write:!0}]})),r&&Sy.dispatch(py({defectId:t,comments:[{by:s&&a?"".concat(s," ").concat(a):"You",on:(new Date).toDateString(),comment:n,write:!0}]})),await Ey("/inspections/".concat(e,"/newComment/").concat(t,"?externalUserCode=").concat(encodeURIComponent(null!==i&&void 0!==i?i:"")),o)}})(e.inspectionId,e.defect.id,o,e.groupedMode,e.externalUserCode),null===(t=e.setSelectedDefect)||void 0===t||t.call(e,(e=>({...e,comments:[...e.comments,{by:n&&r?"".concat(n," ").concat(r):"You",on:(new Date).toDateString(),comment:o,write:!0}]}))),i(!1),s("")},size:"small",style:{width:"fit-content",margin:"0.5rem"}})})]})]}),(0,Ae.jsx)(Ud,{open:c,anchorEl:a,onClose:()=>u(!1),anchorOrigin:{vertical:"top",horizontal:"center"},transformOrigin:{vertical:"bottom",horizontal:"center"},children:(0,Ae.jsx)(jU,{})})]})},Cq=Zo()((()=>({select:{padding:"1rem"}}))),Aq=e=>{var t;const{classes:n}=Cq(),{fullWidth:r}=e,i=b(Hm),o=i&&i.find((t=>t===e.type)),s=o&&i?i:i?[...i,e.type]:[];return(0,Ae.jsx)(Jw,{fullWidth:r,label:"Type",onChange:e.onChange,value:e.type,disabled:e.disabled,classes:{select:n.select},style:{marginBottom:null!==(t=e.marginBottom)&&void 0!==t?t:"0.8rem",textAlign:"left"},children:s&&s.map(((e,t)=>(0,Ae.jsx)(dh,{value:e,children:e},t)))})},kq=e=>(0,Ae.jsx)(cW,{id:"gravity",variant:"outlined",color:"primary",disabled:e.disabled,style:e.style,children:Array.from({length:5},((e,t)=>t+1)).map(((t,n)=>(0,Ae.jsx)(Sa,{value:t,style:e.buttonStyle,variant:e.severity===t?"contained":"outlined",onClick:()=>e.onChange(t),children:(0,Ae.jsx)("span",{children:t})},n)))});function jq(e){return(0,hs.c)("MuiListItem",e)}const Iq=(0,ds.c)("MuiListItem",["root","container","focusVisible","dense","alignItemsFlexStart","disabled","divider","gutters","padding","button","secondaryAction","selected"]);const Gq=(0,ds.c)("MuiListItemButton",["root","focusVisible","dense","alignItemsFlexStart","disabled","divider","gutters","selected"]);function Tq(e){return(0,hs.c)("MuiListItemSecondaryAction",e)}(0,ds.c)("MuiListItemSecondaryAction",["root","disableGutters"]);const Mq=["className"],Oq=(0,cs.cp)("div",{name:"MuiListItemSecondaryAction",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.disableGutters&&t.disableGutters]}})((e=>{let{ownerState:t}=e;return(0,d.c)({position:"absolute",right:16,top:"50%",transform:"translateY(-50%)"},t.disableGutters&&{right:0})})),Rq=n.forwardRef((function(e,t){const r=(0,Oe.c)({props:e,name:"MuiListItemSecondaryAction"}),{className:i}=r,o=(0,Tt.c)(r,Mq),s=n.useContext(Mu),a=(0,d.c)({},r,{disableGutters:s.disableGutters}),l=(e=>{const{disableGutters:t,classes:n}=e,r={root:["root",t&&"disableGutters"]};return(0,ls.c)(r,Tq,n)})(a);return(0,Ae.jsx)(Oq,(0,d.c)({className:(0,ts.c)(l.root,i),ownerState:a,ref:t},o))}));Rq.muiName="ListItemSecondaryAction";const Dq=Rq,Nq=["className"],Lq=["alignItems","autoFocus","button","children","className","component","components","componentsProps","ContainerComponent","ContainerProps","dense","disabled","disableGutters","disablePadding","divider","focusVisibleClassName","secondaryAction","selected","slotProps","slots"],Vq=(0,cs.cp)("div",{name:"MuiListItem",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.dense&&t.dense,"flex-start"===n.alignItems&&t.alignItemsFlexStart,n.divider&&t.divider,!n.disableGutters&&t.gutters,!n.disablePadding&&t.padding,n.button&&t.button,n.hasSecondaryAction&&t.secondaryAction]}})((e=>{let{theme:t,ownerState:n}=e;return(0,d.c)({display:"flex",justifyContent:"flex-start",alignItems:"center",position:"relative",textDecoration:"none",width:"100%",boxSizing:"border-box",textAlign:"left"},!n.disablePadding&&(0,d.c)({paddingTop:8,paddingBottom:8},n.dense&&{paddingTop:4,paddingBottom:4},!n.disableGutters&&{paddingLeft:16,paddingRight:16},!!n.secondaryAction&&{paddingRight:48}),!!n.secondaryAction&&{["& > .".concat(Gq.root)]:{paddingRight:48}},{["&.".concat(Iq.focusVisible)]:{backgroundColor:(t.vars||t).palette.action.focus},["&.".concat(Iq.selected)]:{backgroundColor:t.vars?"rgba(".concat(t.vars.palette.primary.mainChannel," / ").concat(t.vars.palette.action.selectedOpacity,")"):(0,Ps.W4)(t.palette.primary.main,t.palette.action.selectedOpacity),["&.".concat(Iq.focusVisible)]:{backgroundColor:t.vars?"rgba(".concat(t.vars.palette.primary.mainChannel," / calc(").concat(t.vars.palette.action.selectedOpacity," + ").concat(t.vars.palette.action.focusOpacity,"))"):(0,Ps.W4)(t.palette.primary.main,t.palette.action.selectedOpacity+t.palette.action.focusOpacity)}},["&.".concat(Iq.disabled)]:{opacity:(t.vars||t).palette.action.disabledOpacity}},"flex-start"===n.alignItems&&{alignItems:"flex-start"},n.divider&&{borderBottom:"1px solid ".concat((t.vars||t).palette.divider),backgroundClip:"padding-box"},n.button&&{transition:t.transitions.create("background-color",{duration:t.transitions.duration.shortest}),"&:hover":{textDecoration:"none",backgroundColor:(t.vars||t).palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}},["&.".concat(Iq.selected,":hover")]:{backgroundColor:t.vars?"rgba(".concat(t.vars.palette.primary.mainChannel," / calc(").concat(t.vars.palette.action.selectedOpacity," + ").concat(t.vars.palette.action.hoverOpacity,"))"):(0,Ps.W4)(t.palette.primary.main,t.palette.action.selectedOpacity+t.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:t.vars?"rgba(".concat(t.vars.palette.primary.mainChannel," / ").concat(t.vars.palette.action.selectedOpacity,")"):(0,Ps.W4)(t.palette.primary.main,t.palette.action.selectedOpacity)}}},n.hasSecondaryAction&&{paddingRight:48})})),Fq=(0,cs.cp)("li",{name:"MuiListItem",slot:"Container",overridesResolver:(e,t)=>t.container})({position:"relative"}),zq=n.forwardRef((function(e,t){const r=(0,Oe.c)({props:e,name:"MuiListItem"}),{alignItems:i="center",autoFocus:o=!1,button:s=!1,children:a,className:l,component:c,components:u={},componentsProps:h={},ContainerComponent:p="li",ContainerProps:{className:f}={},dense:g=!1,disabled:m=!1,disableGutters:y=!1,disablePadding:v=!1,divider:_=!1,focusVisibleClassName:b,secondaryAction:x,selected:S=!1,slotProps:w={},slots:E={}}=r,P=(0,Tt.c)(r.ContainerProps,Nq),C=(0,Tt.c)(r,Lq),A=n.useContext(Mu),k=n.useMemo((()=>({dense:g||A.dense||!1,alignItems:i,disableGutters:y})),[i,A.dense,g,y]),j=n.useRef(null);(0,zu.c)((()=>{o&&j.current&&j.current.focus()}),[o]);const I=n.Children.toArray(a),G=I.length&&(0,hw.c)(I[I.length-1],["ListItemSecondaryAction"]),T=(0,d.c)({},r,{alignItems:i,autoFocus:o,button:s,dense:k.dense,disabled:m,disableGutters:y,disablePadding:v,divider:_,hasSecondaryAction:G,selected:S}),M=(e=>{const{alignItems:t,button:n,classes:r,dense:i,disabled:o,disableGutters:s,disablePadding:a,divider:l,hasSecondaryAction:c,selected:u}=e,d={root:["root",i&&"dense",!s&&"gutters",!a&&"padding",l&&"divider",o&&"disabled",n&&"button","flex-start"===t&&"alignItemsFlexStart",c&&"secondaryAction",u&&"selected"],container:["container"]};return(0,ls.c)(d,jq,r)})(T),O=(0,Cs.c)(j,t),R=E.root||u.Root||Vq,D=w.root||h.root||{},N=(0,d.c)({className:(0,ts.c)(M.root,D.className,l),disabled:m},C);let L=c||"li";return s&&(N.component=c||"div",N.focusVisibleClassName=(0,ts.c)(Iq.focusVisible,b),L=da),G?(L=N.component||c?L:"div","li"===p&&("li"===L?L="div":"li"===N.component&&(N.component="div")),(0,Ae.jsx)(Mu.Provider,{value:k,children:(0,Ae.jsxs)(Fq,(0,d.c)({as:p,className:(0,ts.c)(M.container,f),ref:O,ownerState:T},P,{children:[(0,Ae.jsx)(R,(0,d.c)({},D,!Va(R)&&{as:L,ownerState:(0,d.c)({},T,D.ownerState)},N,{children:I})),I.pop()]}))})):(0,Ae.jsx)(Mu.Provider,{value:k,children:(0,Ae.jsxs)(R,(0,d.c)({},D,{as:L,ref:O},!Va(R)&&{ownerState:(0,d.c)({},T,D.ownerState)},N,{children:[I,x&&(0,Ae.jsx)(Dq,{children:x})]}))})})),Bq=zq,Uq=["children","className","disableTypography","inset","primary","primaryTypographyProps","secondary","secondaryTypographyProps"],Wq=(0,cs.cp)("div",{name:"MuiListItemText",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{["& .".concat(oh.primary)]:t.primary},{["& .".concat(oh.secondary)]:t.secondary},t.root,n.inset&&t.inset,n.primary&&n.secondary&&t.multiline,n.dense&&t.dense]}})((e=>{let{ownerState:t}=e;return(0,d.c)({flex:"1 1 auto",minWidth:0,marginTop:4,marginBottom:4},t.primary&&t.secondary&&{marginTop:6,marginBottom:6},t.inset&&{paddingLeft:56})})),Hq=n.forwardRef((function(e,t){const r=(0,Oe.c)({props:e,name:"MuiListItemText"}),{children:i,className:o,disableTypography:s=!1,inset:a=!1,primary:l,primaryTypographyProps:c,secondary:u,secondaryTypographyProps:h}=r,p=(0,Tt.c)(r,Uq),{dense:f}=n.useContext(Mu);let g=null!=l?l:i,m=u;const y=(0,d.c)({},r,{disableTypography:s,inset:a,primary:!!g,secondary:!!m,dense:f}),v=(e=>{const{classes:t,inset:n,primary:r,secondary:i,dense:o}=e,s={root:["root",n&&"inset",o&&"dense",r&&i&&"multiline"],primary:["primary"],secondary:["secondary"]};return(0,ls.c)(s,ih,t)})(y);return null==g||g.type===vu||s||(g=(0,Ae.jsx)(vu,(0,d.c)({variant:f?"body2":"body1",className:v.primary,component:null!=c&&c.variant?void 0:"span",display:"block"},c,{children:g}))),null==m||m.type===vu||s||(m=(0,Ae.jsx)(vu,(0,d.c)({variant:"body2",className:v.secondary,color:"text.secondary",display:"block"},h,{children:m}))),(0,Ae.jsxs)(Wq,(0,d.c)({className:(0,ts.c)(v.root,o),ownerState:y,ref:t},p,{children:[g,m]}))})),qq=e=>{const t=Zo()((()=>({deleteInput:{float:"right",right:10,color:"black",cursor:"pointer"},input:{border:e.outlined?void 0:"1px solid lightgrey"}}))),{classes:r}=t(),{tag:i,value:o="",disabled:s=!1}=e,[a,l]=(0,n.useState)(""),[c,u]=(0,n.useState)(1),[d,h]=(0,n.useState)(!1),[p,f]=(0,n.useState)([]);(0,n.useEffect)((()=>{const e=(e=>{const t=localStorage.getItem(e),n=JSON.parse(String(t));return t&&n&&Array.isArray(n)?n:[]})(i);f(e)}),[i]),(0,n.useEffect)((()=>{l(o)}),[o]);const g=(t,n)=>{e.maxCharacters&&n.length<=e.maxCharacters&&(e.changeValue&&e.changeValue(n),l(n),n.length<e.maxCharacters&&h(!1)),e.maxCharacters&&n.length>=e.maxCharacters&&h(!0)},m=(0,n.useCallback)((0,Qo.debounce)(g,300),[]);return(0,Ae.jsx)(rz,{freeSolo:!0,options:p,disableClearable:!0,disabled:s,value:a,renderOption:(e,t)=>(0,Ae.jsxs)(Bq,{children:[(0,Ae.jsx)(Hq,{primary:t,onClick:e=>g(0,e.target.innerText)}),(0,Ae.jsx)("div",{children:(0,Ae.jsx)(Gu,{edge:"end","aria-label":"delete",style:{fontSize:12},onClick:e=>{e.stopPropagation(),(e=>{const t=JSON.parse(String(localStorage.getItem(i))).filter((t=>t!==e));localStorage.setItem(i,JSON.stringify(t)),f(t)})(t)},children:(0,Ae.jsx)(Bj,{size:15})})})]}),renderInput:t=>(0,Ae.jsx)(Ae.Fragment,{children:(0,Ae.jsx)(iE,{...t,autoFocus:!0,className:e.class,placeholder:e.label,defaultValue:a,onChange:e=>m(e,e.target.value),onInput:t=>(t=>{e.maxCharacters&&t.target.value.length>=e.maxCharacters&&(t.target.value=t.target.value.substring(0,e.maxCharacters))})(t),onBlur:t=>(t=>{var n,r,o;if(!(t&&t.length>2))return;let s=JSON.parse(String(localStorage.getItem(i)));s?s.includes(t)||s.unshift(t):s=[t];const a=null!==(n=e.maxInputs)&&void 0!==n?n:10;(null===(r=s)||void 0===r?void 0:r.length)>a&&s.pop(),localStorage.setItem(i,JSON.stringify(s)),f(s),null===(o=e.onBlur)||void 0===o||o.call(e,t)})(t.target.value),multiline:!!e.multiline,maxRows:e.maxRows?e.maxRows:1,disabled:s,variant:e.outlined?"outlined":"standard",error:d,helperText:d?"maximum input reached":"",InputProps:{type:"input",...t.InputProps,startAdornment:(0,Ae.jsxs)(fx,{position:"start",children:[e.searchIcon&&(0,Ae.jsx)(mp,{}),e.filterIcon&&(0,Ae.jsx)(fp,{})]}),endAdornment:(0,Ae.jsx)(fx,{position:"end",children:a&&(0,Ae.jsx)(tp,{className:r.deleteInput,onClick:e=>{g(0,""),u(c+1)}})})}})})},c)},Xq=[{type:"HOTSPOT",severity:3},{type:"CRACKED",severity:4},{type:"DIODE ISSUE",severity:4},{type:"DISCONNECTED",severity:4},{type:"VEGETATION",severity:2},{type:"SHADOW",severity:2},{type:"DIRT",severity:1}],Yq=Zo()((()=>({defectForm:{textAlign:"center",paddingRight:"1.6rem",paddingLeft:"1.6rem",paddingTop:"0.5rem",background:"white"},entry:{width:"100%"},btn:{display:"flex",justifyContent:"space-around",marginTop:"0.8rem"},input:{marginTop:"0.6rem",width:"100%"},face:{float:"right"},severity:{display:"flex",width:"100%",textAlign:"left",alignItems:"flex-start",justifyContent:"space-between"},select:{padding:"0.8rem"},container:{display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center",marginBottom:"0.2rem"}}))),Kq=e=>{var t;const{classes:r}=Yq(),[i,o]=(0,n.useState)(!1),[s,a]=(0,n.useState)(e.currentDefect),l=s.face?s.face:"LE";(0,n.useEffect)((()=>{a(e.currentDefect)}),[e.currentDefect]);const c=(t,n)=>{const r="severity"===n?parseInt(t,10):t.target.value.replace(/(\r\n|\n|\r)/gm," ");let i;if("type"===n&&e.type===RC.SOLAR){const e=Xq.find((e=>e.type===t.target.value));e&&(i=e.severity)}a((e=>{const t={...e,[n]:r};return i&&(t.severity=i),t}))},u=0===(null===s||void 0===s?void 0:s.annotations.length);return(0,Ae.jsx)("div",{children:(0,Ae.jsxs)("div",{className:r.defectForm,children:[(0,Ae.jsxs)(yw,{className:r.input,variant:"outlined",children:[(0,Ae.jsx)(dw,{children:"Type"}),(0,Ae.jsx)(Aq,{onChange:e=>c(e,"type"),type:s.type,disabled:u})]}),(0,Ae.jsxs)("div",{className:r.severity,children:[(0,Ae.jsxs)("div",{className:r.container,children:[(0,Ae.jsx)("p",{children:"Defect Severity"}),(0,Ae.jsx)(kq,{onChange:e=>c(e,"severity"),severity:s.severity,disabled:u,style:{float:"left"}})]}),"Blades"===e.type&&1===e.selectedDefects.length&&(0,Ae.jsxs)("div",{className:r.container,children:[(0,Ae.jsx)("p",{children:"Blade Root Distance (m)"}),(0,Ae.jsx)(iE,{value:Ly(null!==(t=s.hubDistance)&&void 0!==t?t:0,1),onChange:e=>c(e,"hubDistance"),disabled:u,size:"small",variant:"outlined",type:"number",inputProps:{step:.1,min:0},style:{width:"5rem"}})]}),"Blades"===e.type&&1===e.selectedDefects.length&&(0,Ae.jsxs)("div",{className:r.container,children:[(0,Ae.jsx)("p",{children:"Blade Face"}),(0,Ae.jsx)(Jw,{onChange:e=>c(e,"face"),value:l,size:"small",variant:"outlined",disabled:u,className:r.face,classes:{select:r.select},style:{width:"5rem"},children:["PS","SS","TE","LE"].map(((e,t)=>(0,Ae.jsx)(dh,{value:e,children:e},t)))})]})]}),[{id:"note",label:"Note"},{id:"rootCause",label:"Root cause"},{id:"nextStep",label:"Next step"}].map(((e,t)=>(0,Ae.jsx)("div",{children:(0,Ae.jsx)(qq,{label:e.label,tag:"defect_"+e.id,class:r.input,multiline:!0,maxRows:1,outlined:!0,value:String(s[e.id]),disabled:u,maxInputs:50,maxCharacters:220,changeValue:t=>{c({target:{value:t}},e.id)}},t)},t))),s.annotations.length&&(0,Ae.jsxs)("div",{className:r.btn,children:[e.selectedDefects.length>0&&(0,Ae.jsx)(ev,{color:"delete",label:e.selectedDefects.length>1?"Remove ".concat(e.selectedDefects.length," Defects"):"Remove Defect",onClick:async()=>{const t=e.selectedDefects.map((e=>e.inspectionId?RL(e.inspectionId,[e.id]):Promise.resolve()));await Promise.all(t),e.exit()}}),(0,Ae.jsx)(ev,{color:"cancel",label:"Close",onClick:()=>e.exit()}),(0,Ae.jsx)(ev,{color:"primary",label:e.selectedDefects.length>1?"Update ".concat(e.selectedDefects.length," Defects"):e.selectedDefects.length<1?"Nothing selected":"Update",onClick:async()=>{o(!0);const t=e.selectedDefects.map((t=>{const n={..."Blades"===e.type&&""===t.face?{...t,face:l}:t,severity:s.severity,hubDistance:1===e.selectedDefects.length?s.hubDistance:t.hubDistance,face:1===e.selectedDefects.length?s.face:t.face,type:s.type,note:s.note,rootCause:s.rootCause,nextStep:s.nextStep};return TL(n)}));await Promise.all(t),o(!1),e.exit()},disabled:e.selectedDefects.length<1,loading:i})]})]})})},Zq=["absolute","children","className","component","flexItem","light","orientation","role","textAlign","variant"],$q=(0,cs.cp)("div",{name:"MuiDivider",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.absolute&&t.absolute,t[n.variant],n.light&&t.light,"vertical"===n.orientation&&t.vertical,n.flexItem&&t.flexItem,n.children&&t.withChildren,n.children&&"vertical"===n.orientation&&t.withChildrenVertical,"right"===n.textAlign&&"vertical"!==n.orientation&&t.textAlignRight,"left"===n.textAlign&&"vertical"!==n.orientation&&t.textAlignLeft]}})((e=>{let{theme:t,ownerState:n}=e;return(0,d.c)({margin:0,flexShrink:0,borderWidth:0,borderStyle:"solid",borderColor:(t.vars||t).palette.divider,borderBottomWidth:"thin"},n.absolute&&{position:"absolute",bottom:0,left:0,width:"100%"},n.light&&{borderColor:t.vars?"rgba(".concat(t.vars.palette.dividerChannel," / 0.08)"):(0,Ps.W4)(t.palette.divider,.08)},"inset"===n.variant&&{marginLeft:72},"middle"===n.variant&&"horizontal"===n.orientation&&{marginLeft:t.spacing(2),marginRight:t.spacing(2)},"middle"===n.variant&&"vertical"===n.orientation&&{marginTop:t.spacing(1),marginBottom:t.spacing(1)},"vertical"===n.orientation&&{height:"100%",borderBottomWidth:0,borderRightWidth:"thin"},n.flexItem&&{alignSelf:"stretch",height:"auto"})}),(e=>{let{theme:t,ownerState:n}=e;return(0,d.c)({},n.children&&{display:"flex",whiteSpace:"nowrap",textAlign:"center",border:0,"&::before, &::after":{position:"relative",width:"100%",borderTop:"thin solid ".concat((t.vars||t).palette.divider),top:"50%",content:'""',transform:"translateY(50%)"}})}),(e=>{let{theme:t,ownerState:n}=e;return(0,d.c)({},n.children&&"vertical"===n.orientation&&{flexDirection:"column","&::before, &::after":{height:"100%",top:"0%",left:"50%",borderTop:0,borderLeft:"thin solid ".concat((t.vars||t).palette.divider),transform:"translateX(0%)"}})}),(e=>{let{ownerState:t}=e;return(0,d.c)({},"right"===t.textAlign&&"vertical"!==t.orientation&&{"&::before":{width:"90%"},"&::after":{width:"10%"}},"left"===t.textAlign&&"vertical"!==t.orientation&&{"&::before":{width:"10%"},"&::after":{width:"90%"}})})),Jq=(0,cs.cp)("span",{name:"MuiDivider",slot:"Wrapper",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.wrapper,"vertical"===n.orientation&&t.wrapperVertical]}})((e=>{let{theme:t,ownerState:n}=e;return(0,d.c)({display:"inline-block",paddingLeft:"calc(".concat(t.spacing(1)," * 1.2)"),paddingRight:"calc(".concat(t.spacing(1)," * 1.2)")},"vertical"===n.orientation&&{paddingTop:"calc(".concat(t.spacing(1)," * 1.2)"),paddingBottom:"calc(".concat(t.spacing(1)," * 1.2)")})})),Qq=n.forwardRef((function(e,t){const n=(0,Oe.c)({props:e,name:"MuiDivider"}),{absolute:r=!1,children:i,className:o,component:s=(i?"div":"hr"),flexItem:a=!1,light:l=!1,orientation:c="horizontal",role:u=("hr"!==s?"separator":void 0),textAlign:h="center",variant:p="fullWidth"}=n,f=(0,Tt.c)(n,Zq),g=(0,d.c)({},n,{absolute:r,component:s,flexItem:a,light:l,orientation:c,role:u,textAlign:h,variant:p}),m=(e=>{const{absolute:t,children:n,classes:r,flexItem:i,light:o,orientation:s,textAlign:a,variant:l}=e,c={root:["root",t&&"absolute",l,o&&"light","vertical"===s&&"vertical",i&&"flexItem",n&&"withChildren",n&&"vertical"===s&&"withChildrenVertical","right"===a&&"vertical"!==s&&"textAlignRight","left"===a&&"vertical"!==s&&"textAlignLeft"],wrapper:["wrapper","vertical"===s&&"wrapperVertical"]};return(0,ls.c)(c,eh,r)})(g);return(0,Ae.jsx)($q,(0,d.c)({as:s,className:(0,ts.c)(m.root,o),role:u,ref:t,ownerState:g},f,{children:i?(0,Ae.jsx)(Jq,{className:m.wrapper,ownerState:g,children:i}):null}))})),eX=Zo()((()=>({root:{width:"100%"}}))),tX=e=>{const{color:t}=e,{classes:n}=eX();return(0,Ae.jsx)("div",{className:n.root,children:(0,Ae.jsx)(Qq,{color:t})})},nX=e=>.00399135*Math.pow(e,2)-.261104*e+26.54,rX=Object.freeze({TE:e=>-304304e-10*Math.pow(e,3)+.00967116*Math.pow(e,2)-.412742*e+12.4767,LE:()=>50,SS:nX,PS:e=>100-nX(e)}),iX=Zo()((e=>{let{palette:t}=e;return{root:{background:"white",height:"100%",flexWrap:"nowrap",padding:"0.25rem 0.5rem 0.25rem 1rem",rowGap:"0.5rem",border:"2px solid ".concat(t.primary.main),borderRadius:10},inspectionLink:{textDecoration:"none",color:jp,"&:hover":{textDecoration:"underline"}},editPen:{height:"18px",cursor:"pointer"},defectItem:{color:Gp,gap:"0.5rem"},table:{"& .MuiTableCell-root":{borderBottom:"none",padding:0}},firstTable:{width:"100%"},tableKey:{width:"auto",fontWeight:"bold",whiteSpace:"nowrap",paddingRight:"0.5rem !important"},firstTableKey:{width:"auto",paddingRight:"1rem !important"},secondTableKey:{width:"6rem"},bladeImg:{height:"100%"},defectChip:{position:"absolute",width:"15px",height:"15px",borderRadius:"50%",transform:"translate(-50%, -50%)"}}})),oX=e=>{var t,r;const{currentDefect:i,loadingDefect:o,showImage:s,selectedAnnots:a,windTurbineModel:l,inspectionType:c,compare:u,openBig:d,setEditMode:h}=e,{classes:p}=iX(),[f,g]=(0,n.useState)(!1),[m,y]=(0,n.useState)(!1);(0,n.useEffect)((()=>{g(!1),h(!1)}),[i,h]);const v=(0,n.useMemo)((()=>{var e;return"closed"===(null===i||void 0===i||null===(e=i.state)||void 0===e?void 0:e.status)}),[i]);(0,n.useEffect)((()=>{y(v)}),[v]);const _=(0,n.useMemo)((()=>{var e;if(!l||!i.face)return;const{face:t,hubDistance:n}=i,r=null!==(e=l.bladeLength)&&void 0!==e?e:0,o=100*Math.min(Math.max(null!==n&&void 0!==n?n:0,0),r)/r;return{x:(0,rX[t])(o),y:o}}),[l,i]);return(0,Ae.jsxs)(ws,{container:!0,direction:"column",className:p.root,children:[(0,Ae.jsxs)(ws,{item:!0,height:0,flex:1,overflow:"auto",children:[i&&f&&(0,Ae.jsx)(Kq,{currentDefect:i,type:null!==i&&void 0!==i&&i.inspectionType?i.inspectionType:"Blades",exit:()=>{g(!1),e.setEditMode(!1)},selectedDefects:e.selectedDefects}),i&&!f&&(0,Ae.jsxs)(ws,{container:!0,direction:"column",wrap:"nowrap",children:[(0,Ae.jsx)(ws,{item:!0,children:(0,Ae.jsxs)(ws,{container:!0,wrap:"nowrap",justifyContent:"space-between",alignItems:"center",children:[(0,Ae.jsx)(fn,{to:"/inspections/".concat(e.inspectionId,"/defect/").concat(i.id),target:"_blank",className:p.inspectionLink,children:(0,Ae.jsxs)(ws,{container:!0,wrap:"nowrap",alignItems:"center",gap:"0.5rem",children:[(0,Ae.jsx)(vu,{variant:"h6",color:jp,children:i.type}),(0,Ae.jsx)(Uj,{})]})}),(0,Ae.jsx)(uH,{className:p.editPen,onClick:()=>{g(!0),e.setEditMode(!0)}})]})}),(0,Ae.jsxs)(ws,{className:p.defectItem,container:!0,wrap:"nowrap",height:"100%",children:[(0,Ae.jsx)(ws,{item:!0,flex:1,children:(0,Ae.jsxs)(ws,{container:!0,direction:"column",rowGap:"0.5rem",height:"100%",children:[(0,Ae.jsx)(BA,{className:"".concat(p.table," ").concat(p.firstTable),children:(0,Ae.jsxs)(KA,{children:[(0,Ae.jsxs)(Wk,{children:[(0,Ae.jsx)(tk,{className:"".concat(p.tableKey," ").concat(p.firstTableKey),children:"Severity:"}),(0,Ae.jsx)(tk,{style:{width:"50%"},children:(0,Ae.jsx)(OU,{severity:i.severity})}),(0,Ae.jsx)(tk,{className:"".concat(p.tableKey," ").concat(p.firstTableKey),style:{textAlign:"right"},children:"Status:"}),(0,Ae.jsx)(tk,{style:{width:"50%"},children:(0,Ae.jsx)(aF,{checked:m,color:m?"primary":"default",onChange:t=>{var n;const r=t?"closed":"open";null===(n=e.changeOpenClose)||void 0===n||n.call(e,i.id,r),y(t)},style:{marginLeft:"-12px"}})})]}),(0,Ae.jsxs)(Wk,{children:[(0,Ae.jsx)(tk,{className:"".concat(p.tableKey," ").concat(p.firstTableKey),style:{paddingRight:"1rem"},children:"Defect size:"}),(0,Ae.jsx)(tk,{style:{width:"50%"},children:i.size}),c===RC.BLADES&&(0,Ae.jsxs)(Ae.Fragment,{children:[(0,Ae.jsx)(tk,{className:"".concat(p.tableKey," ").concat(p.firstTableKey),style:{textAlign:"right"},children:"Blade Side:"}),(0,Ae.jsx)(tk,{style:{width:"50%"},children:i.face})]})]})]})}),(0,Ae.jsx)(tX,{}),(0,Ae.jsx)(BA,{className:p.table,children:(0,Ae.jsxs)(KA,{children:[(0,Ae.jsxs)(Wk,{children:[(0,Ae.jsx)(tk,{className:"".concat(p.tableKey," ").concat(p.secondTableKey),children:"Root Cause:"}),(0,Ae.jsx)(tk,{children:i.rootCause})]}),(0,Ae.jsxs)(Wk,{children:[(0,Ae.jsx)(tk,{className:"".concat(p.tableKey," ").concat(p.secondTableKey),children:"Next Step:"}),(0,Ae.jsx)(tk,{children:i.nextStep})]}),(0,Ae.jsxs)(Wk,{children:[(0,Ae.jsx)(tk,{className:"".concat(p.tableKey," ").concat(p.secondTableKey),children:"Note:"}),(0,Ae.jsx)(tk,{children:i.note})]})]})}),(0,Ae.jsx)(wp,{maxWidth:"25rem",children:(0,Ae.jsx)(Pq,{defect:i,fromManager:!0,heightFitContent:!0,inspectionId:e.inspectionId})})]})}),c===RC.BLADES&&void 0!==_&&(0,Ae.jsx)(ws,{item:!0,xs:4,children:(0,Ae.jsx)(ws,{container:!0,direction:"column",wrap:"nowrap",height:"100%",children:(0,Ae.jsxs)(ws,{item:!0,flex:1,height:0,maxHeight:"20rem",width:"fit-content",margin:"0 auto",position:"relative",children:[(0,Ae.jsx)("img",{alt:"blade",src:dH,className:p.bladeImg}),(0,Ae.jsx)(wp,{className:p.defectChip,left:"".concat(_.x,"%"),top:"".concat(_.y,"%"),border:"1px solid ".concat(Kp[null!==(t=i.severity)&&void 0!==t?t:3]),bgcolor:nU(Kp[null!==(r=i.severity)&&void 0!==r?r:3],.5)})]})})})]})]})]}),(0,Ae.jsxs)(ws,{item:!0,children:[o&&(0,Ae.jsx)($y,{topMargin:"10rem"}),!o&&s&&(0,Ae.jsx)(Ae.Fragment,{children:!(null===a||void 0===a||!a.length)&&a.map(((e,t)=>0===t&&(0,Ae.jsx)(ZW,{hideSettings:!0,openBig:d,openTitle:"Compare",fromMap:!1,urls:e.urls,heightMax:"35vh",openPhoto:u,type:null!==i&&void 0!==i&&i.inspectionType?i.inspectionType:"Blades"},t)))})]})]})},sX=e=>{let t=e.map((e=>e.state&&"closed"===e.state.status?"resolved":"unresolved"));return t=t.filter(((e,t,n)=>n.indexOf(e)===t)).sort(((e,t)=>e>t?-1:1)),t},aX=(e,t)=>1===t.length?"unresolved"===t[0]?e.filter((e=>!e.state||e.state&&"open"===e.state.status)):e.filter((e=>e.state&&"closed"===e.state.status)):e,lX=e=>e.map((e=>e)).sort(((e,t)=>e.hubDistance===t.hubDistance?e.severity===t.severity?e.id>t.id?1:-1:e.severity-t.severity:e.hubDistance-t.hubDistance)),cX=Zo()((e=>{let{palette:t}=e;return{main:{height:"100%"},title:{color:"#333B46"},tableContainer:{height:"100%",borderRadius:"10px",border:"1px solid ".concat(t.secondary.main)},right:{textAlign:"right",padding:"0.5rem",paddingRight:"1.2rem"},exit:{position:"absolute",right:"0.5rem",cursor:"pointer",fontSize:"2rem",color:"white",borderRadius:"1rem",backgroundColor:"rgba(0,0,0,0.6)",border:"2px solid",padding:"0.3rem",zIndex:10},pictures:{paddingLeft:"0.8rem",paddingRight:"0.8rem"},defectsManagerToolbar:{color:jp,position:"absolute",height:48,display:"flex",alignItems:"center",top:"-48px",paddingRight:"0.5rem",marginLeft:"calc(100% / 3)",width:"calc(100% / 3)"},select:{minWidth:"15rem",zIndex:100}}})),uX=e=>{const{classes:t}=cX(),[r,i]=(0,n.useState)(""),[o,s]=(0,n.useState)(!1),[a,l]=(0,n.useState)(!1),c=b(mg),u=b(_g),[d,h]=(0,n.useState)(!1),p=b(wg),f=b(Eg),[g,m]=(0,n.useState)([]),[y,v]=(0,n.useState)([]),[_,x]=(0,n.useState)([]),[S,w]=(0,n.useState)([]),[E,P]=(0,n.useState)([]),[C,A]=(0,n.useState)([]),[k,j]=(0,n.useState)([]),[I,G]=(0,n.useState)([]),[T,M]=(0,n.useState)([]),[O,R]=(0,n.useState)([]),[D,N]=(0,n.useState)([]),[L,V]=(0,n.useState)(["Blades","Tower"]),[F,z]=(0,n.useState)([]),[B,U]=(0,n.useState)([]),[W,H]=(0,n.useState)([]),[q,X]=(0,n.useState)([]),[Y,K]=(0,n.useState)([]),[Z,$]=(0,n.useState)([]),[J,Q]=(0,n.useState)(!1),[ee,te]=(0,n.useState)([]),[ne,re]=(0,n.useState)(null),ie=b(Nm),oe=yU(),se=on(),ae=b(bg),le=b(xg),ce=b(Sg),ue=b(vg),[de,he]=(0,n.useState)(""),[pe,fe]=(0,n.useState)(!1),[ge,me]=(0,n.useState)(!1),[ye,ve]=(0,n.useState)(!1),[_e,be]=(0,n.useState)([]),[xe,Se]=(0,n.useState)(new Map),{actionSelect:we,isItemChecked:Ee,areAllItemsChecked:Pe,selectAll:Ce,unSelectAll:ke,checkedItems:je}=((e,t)=>{const[r,i]=(0,n.useState)([]);return(0,n.useEffect)((()=>{i(t?[t]:[])}),[t]),{actionSelect:(e,t)=>{r.includes(t)?i((e=>e.filter((e=>e!==t)))):i((e=>[...e,t]))},isItemChecked:e=>r.includes(e),areAllItemsChecked:r.length===e.length,selectAll:()=>{i(e)},unSelectAll:()=>{i(t?[t]:[])},checkedItems:r}})(y.map((e=>{let{id:t}=e;return t})),ne&&ne.id),{modelsMap:Ie}=(e=>{const{active:t=!0}=null!==e&&void 0!==e?e:{},[r,i]=(0,n.useState)(new Map);return(0,n.useEffect)((()=>{t&&(async()=>{const e=await MA(),t=new Map;Object.keys(e).map((n=>{t.set(n,e[n])})),i(t)})()}),[t]),{modelsMap:r}})({active:e.type===HB.WIND}),Ge=(0,n.useMemo)((()=>{if(ne)return y.find((e=>ne.id===e.id))}),[ne,y]);(0,n.useEffect)((()=>{const e=y.filter((e=>je.includes(e.id)));be([...e])}),[je]);const Te=t=>{let n=e.type===HB.SOLAR?t.filter((e=>"Solar"===e.inspectionType||"solar"===e.inspectionType)):t.filter((e=>"Solar"!==e.inspectionType&&"solar"!==e.inspectionType));return"Asset"===e.mode&&(n=n.filter((t=>t.assetId===e.modeValue))),"SubAsset"===e.mode&&(n=n.filter((t=>t.subAssetId===e.modeValue))),n},Me=async t=>(e.type===HB.SOLAR?ae.length||(async()=>{Sy.dispatch(ng(!0));const e=await Ey("/stats/getStatsAnnots/solar",{method:"GET"}),t=e?await e.json():[];Sy.dispatch(ng(!1)),Sy.dispatch(Qf(t))})():(le.length||(async()=>{Sy.dispatch(rg(!0));const e=await Ey("/stats/getStatsAnnots/blades",{method:"GET"}),t=e?await e.json():[];Sy.dispatch(rg(!1)),Sy.dispatch(eg(t))})(),ce.length||(async()=>{const e=await Ey("/stats/getStatsAnnots/tower",{method:"GET"}),t=e?await e.json():[];Sy.dispatch(tg(t))})()),t),Oe=e=>{const t=Le(e).map((e=>e.id));return e.map((e=>{var n;const r=t.includes(e.id),i="closed"===(null===(n=e.state)||void 0===n?void 0:n.status);return{...e,openClose:i,active:r}}))};(0,n.useEffect)((()=>{void 0!==e.search&&he(e.search)}),[e.search]),(0,n.useEffect)((()=>{s(!!u)}),[u]),(0,n.useEffect)((()=>{wB()||(null!==c&&void 0!==c&&c.length&&!ue||u||d?(async()=>{let e=Te(c);e=await Me(e),m(Oe(e))})():((async()=>{s(!0);const e=await DV();let t=Te(e);t=await Me(t),m(Oe(t)),s(!1)})(),h(!0)))}),[c]);(0,n.useEffect)((()=>{(()=>{if(0===g.length)return;let t=Ve(void 0,de);if(t=t.map((e=>{let t=0;return e.comments&&(t=e.comments.filter((e=>"Defect created"!==e.comment&&"Defect closed"!==e.comment)).length),{...e,nbComments:t}})),e.type===HB.SOLAR&&ae.length?t=Re(t,ae):(le.length||ce.length)&&(t=De(t,le.concat(ce))),1===I.length&&t.length&&(t=t.filter((e=>"latest"===I[0]?!0===e.active:!1===e.active))),v(t),Fe(t),ne){const e=c.find((e=>e.id===ne.id));e&&re(e)}})()}),[de,g,T,_,S,E,C,Y,Z,k,I,le,ce,ae,e.type,c]),(0,n.useEffect)((()=>{let e=!1;if(ne&&(e=y.find((e=>e.id===ne.id))),!e&&y.length&&r){const e=y.find((e=>e.id===r));e&&Ue(e)}}),[r]);const Re=(e,t)=>{const n=e.map((e=>{var n;const r=t.find((t=>e.annotations[0]&&t.fileName===e.annotations[0].annotationRef)),i="closed"===(null===(n=e.state)||void 0===n?void 0:n.status),o={...e,openClose:i,nbModules:e.annotations.length};if(r){const t=GU(e.type)===PL.DISCONNECTED,n=t?"-":SU(r),i=t?"-":r.thermalStats&&Ly(r.thermalStats.mean,1),s=t?"-":r.thermalStats&&Ly(r.thermalStats.max,1);return{...o,delta:n,mean:i,max:s}}return o}));return n},De=(e,t)=>{const n=e.map((e=>{var n,r;const i="closed"===(null===(n=e.state)||void 0===n?void 0:n.status);if(null!==(r=e.annotations)&&void 0!==r&&r.length){const n=t.find((t=>t.fileName===e.annotations[0].annotationRef));if(n&&n.realHeight&&n.realWidth){const t="".concat(n.realWidth," x ").concat(n.realHeight);return{...e,size:t,openClose:i}}}return{...e,openClose:i}}));return n},Ne=t=>g.filter((n=>(n=>{let r=!1,i=["model","inspectionDate","type","inspectionId","note","rootCause","nextStep","max","delta","hubDistance"];return"Asset"===e.mode&&(i=[...i,"subAsset"]),"Assets"===e.mode&&(i=[...i,"subAsset","asset"]),i.forEach((e=>{r=r||n[e]&&Dy(n[e],t)})),r})(n))),Le=e=>{const t=es().uniqBy(e,(e=>{let{subAssetId:t,inspectionDate:n}=e;return"".concat(t).concat(n)})).map((e=>({subAssetId:e.subAssetId,inspectionDate:e.inspectionDate}))).sort(((e,t)=>e.inspectionDate<t.inspectionDate?1:-1)),n=[],r=[];for(const i of t)r.includes(i.subAssetId)||(n.push(i),r.push(i.subAssetId));return e.filter((e=>n.some((t=>t.subAssetId===e.subAssetId&&t.inspectionDate===e.inspectionDate))))},Ve=(e,t)=>{if(0===g.length)return[];let n=t?Ne(t):g;return n=aX(n,k),[{field:"type",filter:Y},{field:"severity",filter:Z},{field:"subAsset",filter:S},{field:"inspectionType",filter:C},{field:"asset",filter:_},{field:"model",filter:E}].forEach((t=>{e&&e===t.field||(n=t.filter.length?n.filter((e=>t.filter.includes(e[t.field]))):n)})),n},Fe=e=>{ze("asset",T,M),ze("subAsset",O,R),ze("inspectionType",L,V),ze("model",D,N),ze("type",F,z),ze("severity",B,U);X(["latest","previous"]);const t=sX(Ve());H(t)},ze=(e,t,n)=>{const r=Vy(Ve(e),e,!0);var i,o;o=t,(i=r).length===o.length&&i.every(((e,t)=>e===o[t]))||n(r)},Be=(0,n.useMemo)((()=>{if(e.type===HB.SOLAR)return!1;const t=(0,Qo.groupBy)(g,"inspectionType");return 2===Object.keys(t).length}),[e.type,g]),Ue=async e=>{var t,n;Q(!0),l(!0);let r=ie;ie&&ie.id===e.inspectionId||(r=await PA(e.inspectionId));let i=[];var o;xe.has(e.inspectionId)?i=null!==(o=xe.get(e.inspectionId))&&void 0!==o?o:[]:(i=await AA(e.inspectionId,!0),Se((t=>new Map(t).set(e.inspectionId,i))));l(!1);const s=[];if(null!==(t=i)&&void 0!==t&&t.length&&null!==e&&void 0!==e&&null!==(n=e.annotations)&&void 0!==n&&n.length){for(const t of e.annotations){const e=i.find((e=>e.fileName===t.annotationRef));e&&s.length<4&&s.push(e)}te(s),re(e)}return{defectAnnots:s,inspectionDoc:r}},We=async(e,t)=>{const n=y.find((t=>t.id===e));n&&await NL(n.inspectionId,e,t,!0)};return wB()?(0,Ae.jsx)(jU,{}):(0,Ae.jsxs)(wp,{height:"100%",position:"relative",children:[!!y.length&&(0,Ae.jsx)("div",{className:t.defectsManagerToolbar,children:(0,Ae.jsxs)(ws,{container:!0,wrap:"nowrap",alignItems:"center",justifyContent:"flex-end",height:"100%",gap:"0.5rem",children:[(Be||y.length!==g.length)&&(0,Ae.jsxs)(Ae.Fragment,{children:[Be&&(0,Ae.jsx)(ET,{className:t.select,placeholder:"Inspection type",isMulti:!0,options:L.map((e=>({label:e,value:e}))),value:C.map((e=>({label:e,value:e}))),onChange:e=>A(e.map((e=>e.value)))}),y.length!==g.length&&(0,Ae.jsx)(ev,{color:"delete",label:"Clear filters",onClick:()=>{$([]),x([]),w([]),P([]),K([]),A([]),j([]),G([]),me(!0)}})]}),(0,Ae.jsx)(ws,{item:!0,width:"fit-content",children:(0,Ae.jsx)(sH,{inspections:[],annotations:e.type===HB.SOLAR?ae:le.concat(ce),mode:e.mode,inspectionType:e.type===HB.SOLAR?RC.SOLAR:RC.WIND,defects:e.type===HB.SOLAR&&y.length&&y[0].inspectionType!==RC.SOLAR?[]:y,title:"Export list",defectManagerName:"Asset"===e.mode?y[0].asset:"SubAsset"===e.mode?"".concat(y[0].asset,"_").concat(y[0].subAsset):"Assets"===e.mode?"Assets":null})})]})}),(0,Ae.jsx)("div",{className:t.main,children:(0,Ae.jsxs)(ws,{container:!0,wrap:"nowrap",height:"100%",children:[(0,Ae.jsx)(ws,{item:!0,md:8,padding:"0.5rem",height:"100%",children:(0,Ae.jsxs)("div",{className:t.tableContainer,children:[o&&(0,Ae.jsx)($y,{size:40,topMargin:"10rem",text:"Loading defects",style:{position:"fixed",width:180,left:"30vw"}}),(0,Ae.jsx)(QU,{defects:[],annotations:[],assetsDefects:y,currentAssetsDefect:ne,type:e.type===HB.SOLAR?RC.SOLAR:RC.BLADES,evenColumns:!1,order:"desc",orderBy:"inspectionDate",select:Ue,open:async(e,t)=>{var n;let r=[],i=ie;if(ne&&ne.id===e)r=ee;else{const t=y.find((t=>t.id===e));if(t){const e=await Ue(t);i=e.inspectionDoc,r=e.defectAnnots}}const o=!i||"analyzed"!==i.status&&"annotated"!==i.status?i&&"analyzed"!==i.status&&"annotated"!==i.status&&null!==(n=r)&&void 0!==n&&n.length?"/inspections/".concat(i.id,"/").concat(r[0].key):"":"/inspections/".concat(i.id,"/defect/").concat(e);o&&qy(t,o,se)},origin:e.mode,filterAction:(e,t)=>{switch(e){case"severity":$(t);break;case"asset":x(t);break;case"subAsset":w(t);break;case"model":P(t);break;case"type":K(t);break;case"openClose":j(t);break;case"active":G(t)}},getFilterOptions:e=>{switch(e){case"severity":return B;case"asset":return T;case"subAsset":return O;case"model":return D;case"type":return F;case"openClose":return W;case"active":return q}},firstId:e=>i(e),loadingSolar:p,loadingWind:f,resetFilters:ge,changeResetFilters:()=>me(!1),changeOpenClose:We,height:"100%",maxHeight:"100%",checkBox:ye?{actionSelect:we,checked:Ee,checkedAll:Pe,selectAll:Ce,unSelectAll:ke}:void 0})]})}),(0,Ae.jsx)(ws,{item:!0,md:4,height:"100%",padding:"0.5rem",paddingLeft:0,children:Ge&&ie&&(0,Ae.jsx)(oX,{currentDefect:Ge,loadingDefect:a,showImage:J,selectedAnnots:ee,compare:()=>oe.enter(),openBig:()=>{fe(!0),oe.enter()},inspectionId:ie.id,inspectionType:ie.type,changeOpenClose:We,setEditMode:ve,selectedDefects:_e,windTurbineModel:Ie.get(Ge.model)})})]})}),(0,Ae.jsxs)(vU,{handle:oe,children:[oe.active&&(0,Ae.jsx)(Kj,{className:t.exit,onClick:()=>{oe.exit(),fe(!1)}}),null!=ie&&(0,Ae.jsx)(QW,{defect:ne,annotations:ee,active:oe.active,inspectionDoc:ie,noCompare:pe})]})]})};let dX;function hX(){if(dX)return dX;const e=document.createElement("div"),t=document.createElement("div");return t.style.width="10px",t.style.height="1px",e.appendChild(t),e.dir="rtl",e.style.fontSize="14px",e.style.width="4px",e.style.height="1px",e.style.position="absolute",e.style.top="-1000px",e.style.overflow="scroll",document.body.appendChild(e),dX="reverse",e.scrollLeft>0?dX="default":(e.scrollLeft=1,0===e.scrollLeft&&(dX="negative")),document.body.removeChild(e),dX}function pX(e,t){const n=e.scrollLeft;if("rtl"!==t)return n;switch(hX()){case"negative":return e.scrollWidth-e.clientWidth+n;case"reverse":return e.scrollWidth-e.clientWidth-n;default:return n}}function fX(e){return(1+Math.sin(Math.PI*e-Math.PI/2))/2}const gX=["onChange"],mX={width:99,height:99,position:"absolute",top:-9999,overflow:"scroll"};function yX(e){return(0,hs.c)("MuiTabScrollButton",e)}const vX=(0,ds.c)("MuiTabScrollButton",["root","vertical","horizontal","disabled"]);var _X,bX;const xX=["className","direction","orientation","disabled"],SX=(0,cs.cp)(da,{name:"MuiTabScrollButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.orientation&&t[n.orientation]]}})((e=>{let{ownerState:t}=e;return(0,d.c)({width:40,flexShrink:0,opacity:.8,["&.".concat(vX.disabled)]:{opacity:0}},"vertical"===t.orientation&&{width:"100%",height:40,"& svg":{transform:"rotate(".concat(t.isRtl?-90:90,"deg)")}})})),wX=n.forwardRef((function(e,t){const n=(0,Oe.c)({props:e,name:"MuiTabScrollButton"}),{className:r,direction:i}=n,o=(0,Tt.c)(n,xX),s="rtl"===Go().direction,a=(0,d.c)({isRtl:s},n),l=(e=>{const{classes:t,orientation:n,disabled:r}=e,i={root:["root",n,r&&"disabled"]};return(0,ls.c)(i,yX,t)})(a);return(0,Ae.jsx)(SX,(0,d.c)({component:"div",className:(0,ts.c)(l.root,r),ref:t,role:null,ownerState:a,tabIndex:null},o,{children:"left"===i?_X||(_X=(0,Ae.jsx)(uk,{fontSize:"small"})):bX||(bX=(0,Ae.jsx)(dk,{fontSize:"small"}))}))}));function EX(e){return(0,hs.c)("MuiTabs",e)}const PX=(0,ds.c)("MuiTabs",["root","vertical","flexContainer","flexContainerVertical","centered","scroller","fixed","scrollableX","scrollableY","hideScrollbar","scrollButtons","scrollButtonsHideMobile","indicator"]),CX=["aria-label","aria-labelledby","action","centered","children","className","component","allowScrollButtonsMobile","indicatorColor","onChange","orientation","ScrollButtonComponent","scrollButtons","selectionFollowsFocus","TabIndicatorProps","TabScrollButtonProps","textColor","value","variant","visibleScrollbar"],AX=(e,t)=>e===t?e.firstChild:t&&t.nextElementSibling?t.nextElementSibling:e.firstChild,kX=(e,t)=>e===t?e.lastChild:t&&t.previousElementSibling?t.previousElementSibling:e.lastChild,jX=(e,t,n)=>{let r=!1,i=n(e,t);for(;i;){if(i===e.firstChild){if(r)return;r=!0}const t=i.disabled||"true"===i.getAttribute("aria-disabled");if(i.hasAttribute("tabindex")&&!t)return void i.focus();i=n(e,i)}},IX=(0,cs.cp)("div",{name:"MuiTabs",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{["& .".concat(PX.scrollButtons)]:t.scrollButtons},{["& .".concat(PX.scrollButtons)]:n.scrollButtonsHideMobile&&t.scrollButtonsHideMobile},t.root,n.vertical&&t.vertical]}})((e=>{let{ownerState:t,theme:n}=e;return(0,d.c)({overflow:"hidden",minHeight:48,WebkitOverflowScrolling:"touch",display:"flex"},t.vertical&&{flexDirection:"column"},t.scrollButtonsHideMobile&&{["& .".concat(PX.scrollButtons)]:{[n.breakpoints.down("sm")]:{display:"none"}}})})),GX=(0,cs.cp)("div",{name:"MuiTabs",slot:"Scroller",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.scroller,n.fixed&&t.fixed,n.hideScrollbar&&t.hideScrollbar,n.scrollableX&&t.scrollableX,n.scrollableY&&t.scrollableY]}})((e=>{let{ownerState:t}=e;return(0,d.c)({position:"relative",display:"inline-block",flex:"1 1 auto",whiteSpace:"nowrap"},t.fixed&&{overflowX:"hidden",width:"100%"},t.hideScrollbar&&{scrollbarWidth:"none","&::-webkit-scrollbar":{display:"none"}},t.scrollableX&&{overflowX:"auto",overflowY:"hidden"},t.scrollableY&&{overflowY:"auto",overflowX:"hidden"})})),TX=(0,cs.cp)("div",{name:"MuiTabs",slot:"FlexContainer",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.flexContainer,n.vertical&&t.flexContainerVertical,n.centered&&t.centered]}})((e=>{let{ownerState:t}=e;return(0,d.c)({display:"flex"},t.vertical&&{flexDirection:"column"},t.centered&&{justifyContent:"center"})})),MX=(0,cs.cp)("span",{name:"MuiTabs",slot:"Indicator",overridesResolver:(e,t)=>t.indicator})((e=>{let{ownerState:t,theme:n}=e;return(0,d.c)({position:"absolute",height:2,bottom:0,width:"100%",transition:n.transitions.create()},"primary"===t.indicatorColor&&{backgroundColor:(n.vars||n).palette.primary.main},"secondary"===t.indicatorColor&&{backgroundColor:(n.vars||n).palette.secondary.main},t.vertical&&{height:"100%",width:2,right:0})})),OX=(0,cs.cp)((function(e){const{onChange:t}=e,r=(0,Tt.c)(e,gX),i=n.useRef(),o=n.useRef(null),s=()=>{i.current=o.current.offsetHeight-o.current.clientHeight};return n.useEffect((()=>{const e=(0,ed.c)((()=>{const e=i.current;s(),e!==i.current&&t(i.current)})),n=(0,td.c)(o.current);return n.addEventListener("resize",e),()=>{e.clear(),n.removeEventListener("resize",e)}}),[t]),n.useEffect((()=>{s(),t(i.current)}),[t]),(0,Ae.jsx)("div",(0,d.c)({style:mX,ref:o},r))}),{name:"MuiTabs",slot:"ScrollbarSize"})({overflowX:"auto",overflowY:"hidden",scrollbarWidth:"none","&::-webkit-scrollbar":{display:"none"}}),RX={};const DX=n.forwardRef((function(e,t){const r=(0,Oe.c)({props:e,name:"MuiTabs"}),i=Go(),o="rtl"===i.direction,{"aria-label":s,"aria-labelledby":a,action:l,centered:c=!1,children:u,className:h,component:p="div",allowScrollButtonsMobile:f=!1,indicatorColor:g="primary",onChange:m,orientation:y="horizontal",ScrollButtonComponent:v=wX,scrollButtons:_="auto",selectionFollowsFocus:b,TabIndicatorProps:x={},TabScrollButtonProps:S={},textColor:w="primary",value:E,variant:P="standard",visibleScrollbar:C=!1}=r,A=(0,Tt.c)(r,CX),k="scrollable"===P,j="vertical"===y,I=j?"scrollTop":"scrollLeft",G=j?"top":"left",T=j?"bottom":"right",M=j?"clientHeight":"clientWidth",O=j?"height":"width",R=(0,d.c)({},r,{component:p,allowScrollButtonsMobile:f,indicatorColor:g,orientation:y,vertical:j,scrollButtons:_,textColor:w,variant:P,visibleScrollbar:C,fixed:!k,hideScrollbar:k&&!C,scrollableX:k&&!j,scrollableY:k&&j,centered:c&&!k,scrollButtonsHideMobile:!f}),D=(e=>{const{vertical:t,fixed:n,hideScrollbar:r,scrollableX:i,scrollableY:o,centered:s,scrollButtonsHideMobile:a,classes:l}=e,c={root:["root",t&&"vertical"],scroller:["scroller",n&&"fixed",r&&"hideScrollbar",i&&"scrollableX",o&&"scrollableY"],flexContainer:["flexContainer",t&&"flexContainerVertical",s&&"centered"],indicator:["indicator"],scrollButtons:["scrollButtons",a&&"scrollButtonsHideMobile"],scrollableX:[i&&"scrollableX"],hideScrollbar:[r&&"hideScrollbar"]};return(0,ls.c)(c,EX,l)})(R);const[N,L]=n.useState(!1),[V,F]=n.useState(RX),[z,B]=n.useState({start:!1,end:!1}),[U,W]=n.useState({overflow:"hidden",scrollbarWidth:0}),H=new Map,q=n.useRef(null),X=n.useRef(null),Y=()=>{const e=q.current;let t,n;if(e){const n=e.getBoundingClientRect();t={clientWidth:e.clientWidth,scrollLeft:e.scrollLeft,scrollTop:e.scrollTop,scrollLeftNormalized:pX(e,i.direction),scrollWidth:e.scrollWidth,top:n.top,bottom:n.bottom,left:n.left,right:n.right}}if(e&&!1!==E){const e=X.current.children;if(e.length>0){const t=e[H.get(E)];0,n=t?t.getBoundingClientRect():null}}return{tabsMeta:t,tabMeta:n}},K=(0,As.c)((()=>{const{tabsMeta:e,tabMeta:t}=Y();let n,r=0;if(j)n="top",t&&e&&(r=t.top-e.top+e.scrollTop);else if(n=o?"right":"left",t&&e){const i=o?e.scrollLeftNormalized+e.clientWidth-e.scrollWidth:e.scrollLeft;r=(o?-1:1)*(t[n]-e[n]+i)}const i={[n]:r,[O]:t?t[O]:0};if(isNaN(V[n])||isNaN(V[O]))F(i);else{const e=Math.abs(V[n]-i[n]),t=Math.abs(V[O]-i[O]);(e>=1||t>=1)&&F(i)}})),Z=function(e){let{animation:t=!0}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};t?function(e,t,n){let r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:()=>{};const{ease:o=fX,duration:s=300}=r;let a=null;const l=t[e];let c=!1;const u=()=>{c=!0},d=r=>{if(c)return void i(new Error("Animation cancelled"));null===a&&(a=r);const u=Math.min(1,(r-a)/s);t[e]=o(u)*(n-l)+l,u>=1?requestAnimationFrame((()=>{i(null)})):requestAnimationFrame(d)};l===n?i(new Error("Element already at target position")):requestAnimationFrame(d)}(I,q.current,e,{duration:i.transitions.duration.standard}):q.current[I]=e},$=e=>{let t=q.current[I];j?t+=e:(t+=e*(o?-1:1),t*=o&&"reverse"===hX()?-1:1),Z(t)},J=()=>{const e=q.current[M];let t=0;const n=Array.from(X.current.children);for(let r=0;r<n.length;r+=1){const i=n[r];if(t+i[M]>e){0===r&&(t=e);break}t+=i[M]}return t},Q=()=>{$(-1*J())},ee=()=>{$(J())},te=n.useCallback((e=>{W({overflow:null,scrollbarWidth:e})}),[]),ne=(0,As.c)((e=>{const{tabsMeta:t,tabMeta:n}=Y();if(n&&t)if(n[G]<t[G]){const r=t[I]+(n[G]-t[G]);Z(r,{animation:e})}else if(n[T]>t[T]){const r=t[I]+(n[T]-t[T]);Z(r,{animation:e})}})),re=(0,As.c)((()=>{if(k&&!1!==_){const{scrollTop:e,scrollHeight:t,clientHeight:n,scrollWidth:r,clientWidth:s}=q.current;let a,l;if(j)a=e>1,l=e<t-n-1;else{const e=pX(q.current,i.direction);a=o?e<r-s-1:e>1,l=o?e>1:e<r-s-1}a===z.start&&l===z.end||B({start:a,end:l})}}));n.useEffect((()=>{const e=(0,ed.c)((()=>{q.current&&(K(),re())})),t=(0,td.c)(q.current);let n;return t.addEventListener("resize",e),"undefined"!==typeof ResizeObserver&&(n=new ResizeObserver(e),Array.from(X.current.children).forEach((e=>{n.observe(e)}))),()=>{e.clear(),t.removeEventListener("resize",e),n&&n.disconnect()}}),[K,re]);const ie=n.useMemo((()=>(0,ed.c)((()=>{re()}))),[re]);n.useEffect((()=>()=>{ie.clear()}),[ie]),n.useEffect((()=>{L(!0)}),[]),n.useEffect((()=>{K(),re()})),n.useEffect((()=>{ne(RX!==V)}),[ne,V]),n.useImperativeHandle(l,(()=>({updateIndicator:K,updateScrollButtons:re})),[K,re]);const oe=(0,Ae.jsx)(MX,(0,d.c)({},x,{className:(0,ts.c)(D.indicator,x.className),ownerState:R,style:(0,d.c)({},V,x.style)}));let se=0;const ae=n.Children.map(u,(e=>{if(!n.isValidElement(e))return null;const t=void 0===e.props.value?se:e.props.value;H.set(t,se);const r=t===E;return se+=1,n.cloneElement(e,(0,d.c)({fullWidth:"fullWidth"===P,indicator:r&&!N&&oe,selected:r,selectionFollowsFocus:b,onChange:m,textColor:w,value:t},1!==se||!1!==E||e.props.tabIndex?{}:{tabIndex:0}))})),le=(()=>{const e={};e.scrollbarSizeListener=k?(0,Ae.jsx)(OX,{onChange:te,className:(0,ts.c)(D.scrollableX,D.hideScrollbar)}):null;const t=z.start||z.end,n=k&&("auto"===_&&t||!0===_);return e.scrollButtonStart=n?(0,Ae.jsx)(v,(0,d.c)({orientation:y,direction:o?"right":"left",onClick:Q,disabled:!z.start},S,{className:(0,ts.c)(D.scrollButtons,S.className)})):null,e.scrollButtonEnd=n?(0,Ae.jsx)(v,(0,d.c)({orientation:y,direction:o?"left":"right",onClick:ee,disabled:!z.end},S,{className:(0,ts.c)(D.scrollButtons,S.className)})):null,e})();return(0,Ae.jsxs)(IX,(0,d.c)({className:(0,ts.c)(D.root,h),ownerState:R,ref:t,as:p},A,{children:[le.scrollButtonStart,le.scrollbarSizeListener,(0,Ae.jsxs)(GX,{className:D.scroller,ownerState:R,style:{overflow:U.overflow,[j?"margin".concat(o?"Left":"Right"):"marginBottom"]:C?void 0:-U.scrollbarWidth},ref:q,onScroll:ie,children:[(0,Ae.jsx)(TX,{"aria-label":s,"aria-labelledby":a,"aria-orientation":"vertical"===y?"vertical":null,className:D.flexContainer,ownerState:R,onKeyDown:e=>{const t=X.current,n=(0,Tu.c)(t).activeElement;if("tab"!==n.getAttribute("role"))return;let r="horizontal"===y?"ArrowLeft":"ArrowUp",i="horizontal"===y?"ArrowRight":"ArrowDown";switch("horizontal"===y&&o&&(r="ArrowRight",i="ArrowLeft"),e.key){case r:e.preventDefault(),jX(t,n,kX);break;case i:e.preventDefault(),jX(t,n,AX);break;case"Home":e.preventDefault(),jX(t,null,AX);break;case"End":e.preventDefault(),jX(t,null,kX)}},ref:X,role:"tablist",children:ae}),N&&oe]}),le.scrollButtonEnd]}))})),NX=DX;function LX(e){return(0,hs.c)("MuiTab",e)}const VX=(0,ds.c)("MuiTab",["root","labelIcon","textColorInherit","textColorPrimary","textColorSecondary","selected","disabled","fullWidth","wrapped","iconWrapper"]),FX=["className","disabled","disableFocusRipple","fullWidth","icon","iconPosition","indicator","label","onChange","onClick","onFocus","selected","selectionFollowsFocus","textColor","value","wrapped"],zX=(0,cs.cp)(da,{name:"MuiTab",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.label&&n.icon&&t.labelIcon,t["textColor".concat((0,ha.c)(n.textColor))],n.fullWidth&&t.fullWidth,n.wrapped&&t.wrapped]}})((e=>{let{theme:t,ownerState:n}=e;return(0,d.c)({},t.typography.button,{maxWidth:360,minWidth:90,position:"relative",minHeight:48,flexShrink:0,padding:"12px 16px",overflow:"hidden",whiteSpace:"normal",textAlign:"center"},n.label&&{flexDirection:"top"===n.iconPosition||"bottom"===n.iconPosition?"column":"row"},{lineHeight:1.25},n.icon&&n.label&&{minHeight:72,paddingTop:9,paddingBottom:9,["& > .".concat(VX.iconWrapper)]:(0,d.c)({},"top"===n.iconPosition&&{marginBottom:6},"bottom"===n.iconPosition&&{marginTop:6},"start"===n.iconPosition&&{marginRight:t.spacing(1)},"end"===n.iconPosition&&{marginLeft:t.spacing(1)})},"inherit"===n.textColor&&{color:"inherit",opacity:.6,["&.".concat(VX.selected)]:{opacity:1},["&.".concat(VX.disabled)]:{opacity:(t.vars||t).palette.action.disabledOpacity}},"primary"===n.textColor&&{color:(t.vars||t).palette.text.secondary,["&.".concat(VX.selected)]:{color:(t.vars||t).palette.primary.main},["&.".concat(VX.disabled)]:{color:(t.vars||t).palette.text.disabled}},"secondary"===n.textColor&&{color:(t.vars||t).palette.text.secondary,["&.".concat(VX.selected)]:{color:(t.vars||t).palette.secondary.main},["&.".concat(VX.disabled)]:{color:(t.vars||t).palette.text.disabled}},n.fullWidth&&{flexShrink:1,flexGrow:1,flexBasis:0,maxWidth:"none"},n.wrapped&&{fontSize:t.typography.pxToRem(12)})})),BX=n.forwardRef((function(e,t){const r=(0,Oe.c)({props:e,name:"MuiTab"}),{className:i,disabled:o=!1,disableFocusRipple:s=!1,fullWidth:a,icon:l,iconPosition:c="top",indicator:u,label:h,onChange:p,onClick:f,onFocus:g,selected:m,selectionFollowsFocus:y,textColor:v="inherit",value:_,wrapped:b=!1}=r,x=(0,Tt.c)(r,FX),S=(0,d.c)({},r,{disabled:o,disableFocusRipple:s,selected:m,icon:!!l,iconPosition:c,label:!!h,fullWidth:a,textColor:v,wrapped:b}),w=(e=>{const{classes:t,textColor:n,fullWidth:r,wrapped:i,icon:o,label:s,selected:a,disabled:l}=e,c={root:["root",o&&s&&"labelIcon","textColor".concat((0,ha.c)(n)),r&&"fullWidth",i&&"wrapped",a&&"selected",l&&"disabled"],iconWrapper:["iconWrapper"]};return(0,ls.c)(c,LX,t)})(S),E=l&&h&&n.isValidElement(l)?n.cloneElement(l,{className:(0,ts.c)(w.iconWrapper,l.props.className)}):l;return(0,Ae.jsxs)(zX,(0,d.c)({focusRipple:!s,className:(0,ts.c)(w.root,i),ref:t,role:"tab","aria-selected":m,disabled:o,onClick:e=>{!m&&p&&p(e,_),f&&f(e)},onFocus:e=>{y&&!m&&p&&p(e,_),g&&g(e)},ownerState:S,tabIndex:m?0:-1},x,{children:["top"===c||"start"===c?(0,Ae.jsxs)(n.Fragment,{children:[E,h]}):(0,Ae.jsxs)(n.Fragment,{children:[h,E]}),u]}))})),UX=BX,WX=Zo()((()=>({main:{display:"inline-flex"},tab:{backgroundColor:"#f4f6f8",minWidth:"10rem"}}))),HX=e=>{var t;const{classes:n}=WX();return(0,Ae.jsx)("div",{className:n.main,children:(0,Ae.jsxs)(NX,{value:e.tab,onChange:(t,n)=>e.changeTab(n),indicatorColor:"primary",children:[(0,Ae.jsx)(UX,{label:null!==(t=e.tab1Label)&&void 0!==t?t:"General",className:n.tab}),(0,Ae.jsx)(UX,{label:"Defects",className:n.tab}),e.globalAssets&&(0,Ae.jsx)(UX,{label:"Global Map",className:n.tab})]})})};var qX=__webpack_require__(33192),XX=__webpack_require__.n(qX),YX=__webpack_require__(89944);const KX="add",ZX="remove",$X="length";class JX extends QR{constructor(e,t,n){super(e),this.element=t,this.index=n}}const QX=class extends SN{constructor(e,t){if(super(),this.on,this.once,this.un,t=t||{},this.unique_=!!t.unique,this.array_=e||[],this.unique_)for(let n=0,r=this.array_.length;n<r;++n)this.assertUnique_(this.array_[n],n);this.updateLength_()}clear(){for(;this.getLength()>0;)this.pop()}extend(e){for(let t=0,n=e.length;t<n;++t)this.push(e[t]);return this}forEach(e){const t=this.array_;for(let n=0,r=t.length;n<r;++n)e(t[n],n,t)}getArray(){return this.array_}item(e){return this.array_[e]}getLength(){return this.get($X)}insertAt(e,t){if(e<0||e>this.getLength())throw new Error("Index out of bounds: "+e);this.unique_&&this.assertUnique_(t),this.array_.splice(e,0,t),this.updateLength_(),this.dispatchEvent(new JX(KX,t,e))}pop(){return this.removeAt(this.getLength()-1)}push(e){this.unique_&&this.assertUnique_(e);const t=this.getLength();return this.insertAt(t,e),this.getLength()}remove(e){const t=this.array_;for(let n=0,r=t.length;n<r;++n)if(t[n]===e)return this.removeAt(n)}removeAt(e){if(e<0||e>=this.getLength())return;const t=this.array_[e];return this.array_.splice(e,1),this.updateLength_(),this.dispatchEvent(new JX(ZX,t,e)),t}setAt(e,t){if(e>=this.getLength())return void this.insertAt(e,t);if(e<0)throw new Error("Index out of bounds: "+e);this.unique_&&this.assertUnique_(t,e);const n=this.array_[e];this.array_[e]=t,this.dispatchEvent(new JX(ZX,n,e)),this.dispatchEvent(new JX(KX,t,e))}updateLength_(){this.set($X,this.array_.length)}assertUnique_(e,t){for(let n=0,r=this.array_.length;n<r;++n)if(this.array_[n]===e&&n!==t)throw new Error("Duplicate item added to a unique collection")}},eY="opacity",tY="visible",nY="extent",rY="zIndex",iY="maxResolution",oY="minResolution",sY="maxZoom",aY="minZoom",lY="source",cY="map";const uY=class extends SN{constructor(e){super(),this.on,this.once,this.un,this.background_=e.background;const t=Object.assign({},e);"object"===typeof e.properties&&(delete t.properties,Object.assign(t,e.properties)),t[eY]=void 0!==e.opacity?e.opacity:1,lN("number"===typeof t[eY],"Layer opacity must be a number"),t[tY]=void 0===e.visible||e.visible,t[rY]=e.zIndex,t[iY]=void 0!==e.maxResolution?e.maxResolution:1/0,t[oY]=void 0!==e.minResolution?e.minResolution:0,t[aY]=void 0!==e.minZoom?e.minZoom:-1/0,t[sY]=void 0!==e.maxZoom?e.maxZoom:1/0,this.className_=void 0!==t.className?t.className:"ol-layer",delete t.className,this.setProperties(t),this.state_=null}getBackground(){return this.background_}getClassName(){return this.className_}getLayerState(e){const t=this.state_||{layer:this,managed:void 0===e||e},n=this.getZIndex();return t.opacity=VO(Math.round(100*this.getOpacity())/100,0,1),t.visible=this.getVisible(),t.extent=this.getExtent(),t.zIndex=void 0!==n||t.managed?n:1/0,t.maxResolution=this.getMaxResolution(),t.minResolution=Math.max(this.getMinResolution(),0),t.minZoom=this.getMinZoom(),t.maxZoom=this.getMaxZoom(),this.state_=t,t}getLayersArray(e){return _D()}getLayerStatesArray(e){return _D()}getExtent(){return this.get(nY)}getMaxResolution(){return this.get(iY)}getMinResolution(){return this.get(oY)}getMinZoom(){return this.get(aY)}getMaxZoom(){return this.get(sY)}getOpacity(){return this.get(eY)}getSourceState(){return _D()}getVisible(){return this.get(tY)}getZIndex(){return this.get(rY)}setBackground(e){this.background_=e,this.changed()}setExtent(e){this.set(nY,e)}setMaxResolution(e){this.set(iY,e)}setMinResolution(e){this.set(oY,e)}setMaxZoom(e){this.set(sY,e)}setMinZoom(e){this.set(aY,e)}setOpacity(e){lN("number"===typeof e,"Layer opacity must be a number"),this.set(eY,e)}setVisible(e){this.set(tY,e)}setZIndex(e){this.set(rY,e)}disposeInternal(){this.state_&&(this.state_.layer=null,this.state_=null),super.disposeInternal()}},dY="prerender",hY="postrender",pY="precompose",fY="postcompose",gY="rendercomplete",mY=0,yY=1,vY={CENTER:"center",RESOLUTION:"resolution",ROTATION:"rotation"};function _Y(e,t,n){return function(r,i,o,s,a){if(!r)return;if(!i&&!t)return r;const l=t?0:o[0]*i,c=t?0:o[1]*i,u=a?a[0]:0,d=a?a[1]:0;let h=e[0]+l/2+u,p=e[2]-l/2+u,f=e[1]+c/2+d,g=e[3]-c/2+d;h>p&&(h=(p+h)/2,p=h),f>g&&(f=(g+f)/2,g=f);let m=VO(r[0],h,p),y=VO(r[1],f,g);if(s&&n&&i){const e=30*i;m+=-e*Math.log(1+Math.max(0,h-r[0])/e)+e*Math.log(1+Math.max(0,r[0]-p)/e),y+=-e*Math.log(1+Math.max(0,f-r[1])/e)+e*Math.log(1+Math.max(0,r[1]-g)/e)}return[m,y]}}function bY(e){return e}function xY(e,t,n,r){const i=dO(t)/n[0],o=aO(t)/n[1];return r?Math.min(e,Math.max(i,o)):Math.min(e,Math.min(i,o))}function SY(e,t,n){let r=Math.min(e,t);return r*=Math.log(1+50*Math.max(0,e/t-1))/50+1,n&&(r=Math.max(r,n),r/=Math.log(1+50*Math.max(0,n/e-1))/50+1),VO(r,n/2,2*t)}function wY(e,t,n,r,i){return n=void 0===n||n,function(o,s,a,l){if(void 0!==o){const s=r?xY(e,r,a,i):e;return n&&l?SY(o,s,t):VO(o,t,s)}}}function EY(e){if(void 0!==e)return 0}function PY(e){if(void 0!==e)return e}const CY=new Array(6);function AY(e,t){const n=e[0],r=e[1],i=e[2],o=e[3],s=e[4],a=e[5],l=t[0],c=t[1],u=t[2],d=t[3],h=t[4],p=t[5];return e[0]=n*l+i*c,e[1]=r*l+o*c,e[2]=n*u+i*d,e[3]=r*u+o*d,e[4]=n*h+i*p+s,e[5]=r*h+o*p+a,e}function kY(e,t,n,r,i,o,s){return e[0]=t,e[1]=n,e[2]=r,e[3]=i,e[4]=o,e[5]=s,e}function jY(e,t){const n=t[0],r=t[1];return t[0]=e[0]*n+e[2]*r+e[4],t[1]=e[1]*n+e[3]*r+e[5],t}function IY(e,t,n){return AY(e,kY(CY,t,0,0,n,0,0))}function GY(e,t,n){return AY(e,kY(CY,1,0,0,1,t,n))}function TY(e,t,n,r,i,o,s,a){const l=Math.sin(o),c=Math.cos(o);return e[0]=r*c,e[1]=i*l,e[2]=-r*l,e[3]=i*c,e[4]=s*r*c-a*r*l+t,e[5]=s*i*l+a*i*c+n,e}function MY(e,t){const n=(r=t)[0]*r[3]-r[1]*r[2];var r;lN(0!==n,"Transformation matrix cannot be inverted");const i=t[0],o=t[1],s=t[2],a=t[3],l=t[4],c=t[5];return e[0]=a/n,e[1]=-o/n,e[2]=-s/n,e[3]=i/n,e[4]=(s*c-a*l)/n,e[5]=-(i*c-o*l)/n,e}const OY=[1e6,1e6,1e6,1e6,2,2];function RY(e){const t="matrix("+e.map(((e,t)=>Math.round(e*OY[t])/OY[t])).join(", ")+")";return t}function DY(e,t,n,r,i,o,s){o=o||[],s=s||2;let a=0;for(let l=t;l<n;l+=r){const t=e[l],n=e[l+1];o[a++]=i[0]*t+i[2]*n+i[4],o[a++]=i[1]*t+i[3]*n+i[5];for(let r=2;r<s;r++)o[a++]=e[l+r]}return o&&o.length!=a&&(o.length=a),o}function NY(e,t,n,r,i,o,s){s=s||[];const a=Math.cos(i),l=Math.sin(i),c=o[0],u=o[1];let d=0;for(let h=t;h<n;h+=r){const t=e[h]-c,n=e[h+1]-u;s[d++]=c+t*a-n*l,s[d++]=u+t*l+n*a;for(let i=h+2;i<h+r;++i)s[d++]=e[i]}return s&&s.length!=d&&(s.length=d),s}const LY=[1,0,0,1,0,0];const VY=class extends SN{constructor(){super(),this.extent_=[1/0,1/0,-1/0,-1/0],this.extentRevision_=-1,this.simplifiedGeometryMaxMinSquaredTolerance=0,this.simplifiedGeometryRevision=0,this.simplifyTransformedInternal=cD(((e,t,n)=>{if(!n)return this.getSimplifiedGeometry(t);const r=this.clone();return r.applyTransform(n),r.getSimplifiedGeometry(t)}))}simplifyTransformed(e,t){return this.simplifyTransformedInternal(this.getRevision(),e,t)}clone(){return _D()}closestPointXY(e,t,n,r){return _D()}containsXY(e,t){const n=this.getClosestPoint([e,t]);return n[0]===e&&n[1]===t}getClosestPoint(e,t){return t=t||[NaN,NaN],this.closestPointXY(e[0],e[1],t,1/0),t}intersectsCoordinate(e){return this.containsXY(e[0],e[1])}computeExtent(e){return _D()}getExtent(e){if(this.extentRevision_!=this.getRevision()){const e=this.computeExtent(this.extent_);(isNaN(e[0])||isNaN(e[1]))&&qM(e),this.extentRevision_=this.getRevision()}return function(e,t){return t?(t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t):e}(this.extent_,e)}rotate(e,t){_D()}scale(e,t,n){_D()}simplify(e){return this.getSimplifiedGeometry(e*e)}getSimplifiedGeometry(e){return _D()}getType(){return _D()}applyTransform(e){_D()}intersectsExtent(e){return _D()}translate(e,t){_D()}transform(e,t){const n=xR(e),r="tile-pixels"==n.getUnits()?function(e,r,i){const o=n.getExtent(),s=n.getWorldExtent(),a=aO(s)/aO(o);return TY(LY,s[0],s[3],a,-a,0,0,0),DY(e,0,e.length,i,LY,r),GR(n,t)(e,r,i)}:GR(n,t);return this.applyTransform(r),this}};function FY(e){let t;return 2==e?t="XY":3==e?t="XYZ":4==e&&(t="XYZM"),t}function zY(e){let t;return"XY"==e?t=2:"XYZ"==e||"XYM"==e?t=3:"XYZM"==e&&(t=4),t}const BY=class extends VY{constructor(){super(),this.layout="XY",this.stride=2,this.flatCoordinates}computeExtent(e){return YM(this.flatCoordinates,0,this.flatCoordinates.length,this.stride,e)}getCoordinates(){return _D()}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(e){if(this.simplifiedGeometryRevision!==this.getRevision()&&(this.simplifiedGeometryMaxMinSquaredTolerance=0,this.simplifiedGeometryRevision=this.getRevision()),e<0||0!==this.simplifiedGeometryMaxMinSquaredTolerance&&e<=this.simplifiedGeometryMaxMinSquaredTolerance)return this;const t=this.getSimplifiedGeometryInternal(e);return t.getFlatCoordinates().length<this.flatCoordinates.length?t:(this.simplifiedGeometryMaxMinSquaredTolerance=e,this)}getSimplifiedGeometryInternal(e){return this}getStride(){return this.stride}setFlatCoordinates(e,t){this.stride=zY(e),this.layout=e,this.flatCoordinates=t}setCoordinates(e,t){_D()}setLayout(e,t,n){let r;if(e)r=zY(e);else{for(let e=0;e<n;++e){if(0===t.length)return this.layout="XY",void(this.stride=2);t=t[0]}r=t.length,e=FY(r)}this.layout=e,this.stride=r}applyTransform(e){this.flatCoordinates&&(e(this.flatCoordinates,this.flatCoordinates,this.layout.startsWith("XYZ")?3:2,this.stride),this.changed())}rotate(e,t){const n=this.getFlatCoordinates();if(n){const r=this.getStride();NY(n,0,n.length,r,e,t,n),this.changed()}}scale(e,t,n){void 0===t&&(t=e),n||(n=iO(this.getExtent()));const r=this.getFlatCoordinates();if(r){const i=this.getStride();!function(e,t,n,r,i,o,s,a){a=a||[];const l=s[0],c=s[1];let u=0;for(let d=t;d<n;d+=r){const t=e[d]-l,n=e[d+1]-c;a[u++]=l+i*t,a[u++]=c+o*n;for(let i=d+2;i<d+r;++i)a[u++]=e[i]}a&&a.length!=u&&(a.length=u)}(r,0,r.length,i,e,t,n,r),this.changed()}}translate(e,t){const n=this.getFlatCoordinates();if(n){const r=this.getStride();!function(e,t,n,r,i,o,s){s=s||[];let a=0;for(let l=t;l<n;l+=r){s[a++]=e[l]+i,s[a++]=e[l+1]+o;for(let t=l+2;t<l+r;++t)s[a++]=e[t]}s&&s.length!=a&&(s.length=a)}(n,0,n.length,r,e,t,n),this.changed()}}};function UY(e,t,n,r,i,o,s){const a=e[t],l=e[t+1],c=e[n]-a,u=e[n+1]-l;let d;if(0===c&&0===u)d=t;else{const h=((i-a)*c+(o-l)*u)/(c*c+u*u);if(h>1)d=n;else{if(h>0){for(let i=0;i<r;++i)s[i]=HO(e[t+i],e[n+i],h);return void(s.length=r)}d=t}}for(let h=0;h<r;++h)s[h]=e[d+h];s.length=r}function WY(e,t,n,r,i){let o=e[t],s=e[t+1];for(t+=r;t<n;t+=r){const n=e[t],r=e[t+1],a=zO(o,s,n,r);a>i&&(i=a),o=n,s=r}return i}function HY(e,t,n,r,i){for(let o=0,s=n.length;o<s;++o){const s=n[o];i=WY(e,t,s,r,i),t=s}return i}function qY(e,t,n,r,i,o,s,a,l,c,u){if(t==n)return c;let d,h;if(0===i){if(h=zO(s,a,e[t],e[t+1]),h<c){for(d=0;d<r;++d)l[d]=e[t+d];return l.length=r,h}return c}u=u||[NaN,NaN];let p=t+r;for(;p<n;)if(UY(e,p-r,p,r,s,a,u),h=zO(s,a,u[0],u[1]),h<c){for(c=h,d=0;d<r;++d)l[d]=u[d];l.length=r,p+=r}else p+=r*Math.max((Math.sqrt(h)-Math.sqrt(c))/i|0,1);if(o&&(UY(e,n-r,t,r,s,a,u),h=zO(s,a,u[0],u[1]),h<c)){for(c=h,d=0;d<r;++d)l[d]=u[d];l.length=r}return c}function XY(e,t,n,r,i,o,s,a,l,c,u){u=u||[NaN,NaN];for(let d=0,h=n.length;d<h;++d){const h=n[d];c=qY(e,t,h,r,i,o,s,a,l,c,u),t=h}return c}function YY(e,t,n,r){for(let i=0,o=n.length;i<o;++i)e[t++]=n[i];return t}function KY(e,t,n,r){for(let i=0,o=n.length;i<o;++i){const o=n[i];for(let n=0;n<r;++n)e[t++]=o[n]}return t}function ZY(e,t,n,r,i){i=i||[];let o=0;for(let s=0,a=n.length;s<a;++s){const a=KY(e,t,n[s],r);i[o++]=a,t=a}return i.length=o,i}function $Y(e,t,n,r,i){i=i||[];let o=0;for(let s=0,a=n.length;s<a;++s){const a=ZY(e,t,n[s],r,i[o]);0===a.length&&(a[0]=t),i[o++]=a,t=a[a.length-1]}return i.length=o,i}function JY(e,t,n,r,i,o,s){const a=(n-t)/r;if(a<3){for(;t<n;t+=r)o[s++]=e[t],o[s++]=e[t+1];return s}const l=new Array(a);l[0]=1,l[a-1]=1;const c=[t,n-r];let u=0;for(;c.length>0;){const n=c.pop(),o=c.pop();let s=0;const a=e[o],d=e[o+1],h=e[n],p=e[n+1];for(let t=o+r;t<n;t+=r){const n=FO(e[t],e[t+1],a,d,h,p);n>s&&(u=t,s=n)}s>i&&(l[(u-t)/r]=1,o+r<u&&c.push(o,u),u+r<n&&c.push(u,n))}for(let d=0;d<a;++d)l[d]&&(o[s++]=e[t+d*r],o[s++]=e[t+d*r+1]);return s}function QY(e,t,n,r,i,o,s,a){for(let l=0,c=n.length;l<c;++l){const c=n[l];s=JY(e,t,c,r,i,o,s),a.push(s),t=c}return s}function eK(e,t){return t*Math.round(e/t)}function tK(e,t,n,r,i,o,s){if(t==n)return s;let a,l,c=eK(e[t],i),u=eK(e[t+1],i);t+=r,o[s++]=c,o[s++]=u;do{if(a=eK(e[t],i),l=eK(e[t+1],i),(t+=r)==n)return o[s++]=a,o[s++]=l,s}while(a==c&&l==u);for(;t<n;){const n=eK(e[t],i),d=eK(e[t+1],i);if(t+=r,n==a&&d==l)continue;const h=a-c,p=l-u,f=n-c,g=d-u;h*g==p*f&&(h<0&&f<h||h==f||h>0&&f>h)&&(p<0&&g<p||p==g||p>0&&g>p)?(a=n,l=d):(o[s++]=a,o[s++]=l,c=a,u=l,a=n,l=d)}return o[s++]=a,o[s++]=l,s}function nK(e,t,n,r,i,o,s,a){for(let l=0,c=n.length;l<c;++l){const c=n[l];s=tK(e,t,c,r,i,o,s),a.push(s),t=c}return s}function rK(e,t,n,r,i){i=void 0!==i?i:[];let o=0;for(let s=t;s<n;s+=r)i[o++]=e.slice(s,s+r);return i.length=o,i}function iK(e,t,n,r,i){i=void 0!==i?i:[];let o=0;for(let s=0,a=n.length;s<a;++s){const a=n[s];i[o++]=rK(e,t,a,r,i[o]),t=a}return i.length=o,i}function oK(e,t,n,r,i){i=void 0!==i?i:[];let o=0;for(let s=0,a=n.length;s<a;++s){const a=n[s];i[o++]=1===a.length&&a[0]===t?[]:iK(e,t,a,r,i[o]),t=a[a.length-1]}return i.length=o,i}function sK(e,t,n,r){let i=0;const o=e[n-r],s=e[n-r+1];let a=0,l=0;for(;t<n;t+=r){const n=e[t]-o,r=e[t+1]-s;i+=l*n-a*r,a=n,l=r}return i/2}function aK(e,t,n,r){let i=0;for(let o=0,s=n.length;o<s;++o){const s=n[o];i+=sK(e,t,s,r),t=s}return i}class lK extends BY{constructor(e,t){super(),this.maxDelta_=-1,this.maxDeltaRevision_=-1,void 0===t||Array.isArray(e[0])?this.setCoordinates(e,t):this.setFlatCoordinates(t,e)}clone(){return new lK(this.flatCoordinates.slice(),this.layout)}closestPointXY(e,t,n,r){return r<VM(this.getExtent(),e,t)?r:(this.maxDeltaRevision_!=this.getRevision()&&(this.maxDelta_=Math.sqrt(WY(this.flatCoordinates,0,this.flatCoordinates.length,this.stride,0)),this.maxDeltaRevision_=this.getRevision()),qY(this.flatCoordinates,0,this.flatCoordinates.length,this.stride,this.maxDelta_,!0,e,t,n,r))}getArea(){return sK(this.flatCoordinates,0,this.flatCoordinates.length,this.stride)}getCoordinates(){return rK(this.flatCoordinates,0,this.flatCoordinates.length,this.stride)}getSimplifiedGeometryInternal(e){const t=[];return t.length=JY(this.flatCoordinates,0,this.flatCoordinates.length,this.stride,e,t,0),new lK(t,"XY")}getType(){return"LinearRing"}intersectsExtent(e){return!1}setCoordinates(e,t){this.setLayout(t,e,1),this.flatCoordinates||(this.flatCoordinates=[]),this.flatCoordinates.length=KY(this.flatCoordinates,0,e,this.stride),this.changed()}}const cK=lK;class uK extends BY{constructor(e,t){super(),this.setCoordinates(e,t)}clone(){const e=new uK(this.flatCoordinates.slice(),this.layout);return e.applyProperties(this),e}closestPointXY(e,t,n,r){const i=this.flatCoordinates,o=zO(e,t,i[0],i[1]);if(o<r){const e=this.stride;for(let t=0;t<e;++t)n[t]=i[t];return n.length=e,o}return r}getCoordinates(){return this.flatCoordinates.slice()}computeExtent(e){return XM(this.flatCoordinates,e)}getType(){return"Point"}intersectsExtent(e){return BM(e,this.flatCoordinates[0],this.flatCoordinates[1])}setCoordinates(e,t){this.setLayout(t,e,0),this.flatCoordinates||(this.flatCoordinates=[]),this.flatCoordinates.length=YY(this.flatCoordinates,0,e,this.stride),this.changed()}}const dK=uK;function hK(e,t,n,r,i,o,s){let a,l,c,u,d,h,p;const f=i[o+1],g=[];for(let v=0,_=n.length;v<_;++v){const i=n[v];for(u=e[i-r],h=e[i-r+1],a=t;a<i;a+=r)d=e[a],p=e[a+1],(f<=h&&p<=f||h<=f&&f<=p)&&(c=(f-h)/(p-h)*(d-u)+u,g.push(c)),u=d,h=p}let m=NaN,y=-1/0;for(g.sort(eD),u=g[0],a=1,l=g.length;a<l;++a){d=g[a];const i=Math.abs(d-u);i>y&&(c=(u+d)/2,MN(e,t,n,r,c,f)&&(m=c,y=i)),u=d}return isNaN(m)&&(m=i[o]),s?(s.push(m,f,y),s):[m,f,y]}function pK(e,t,n,r,i){let o=[];for(let s=0,a=n.length;s<a;++s){const a=n[s];o=hK(e,t,a,r,i,2*s,o),t=a[a.length-1]}return o}function fK(e,t,n,r){for(;t<n-r;){for(let i=0;i<r;++i){const o=e[t+i];e[t+i]=e[n-r+i],e[n-r+i]=o}t+=r,n-=r}}function gK(e,t,n,r){let i=0,o=e[n-r],s=e[n-r+1];for(;t<n;t+=r){const n=e[t],r=e[t+1];i+=(n-o)*(r+s),o=n,s=r}return 0===i?void 0:i>0}function mK(e,t,n,r,i){i=void 0!==i&&i;for(let o=0,s=n.length;o<s;++o){const s=n[o],a=gK(e,t,s,r);if(0===o){if(i&&a||!i&&!a)return!1}else if(i&&!a||!i&&a)return!1;t=s}return!0}function yK(e,t,n,r,i){for(let o=0,s=n.length;o<s;++o){const s=n[o];if(!mK(e,t,s,r,i))return!1;s.length&&(t=s[s.length-1])}return!0}function vK(e,t,n,r,i){i=void 0!==i&&i;for(let o=0,s=n.length;o<s;++o){const s=n[o],a=gK(e,t,s,r);(0===o?i&&a||!i&&!a:i&&!a||!i&&a)&&fK(e,t,s,r),t=s}return t}function _K(e,t,n,r,i){for(let o=0,s=n.length;o<s;++o)t=vK(e,t,n[o],r,i);return t}class bK extends BY{constructor(e,t,n){super(),this.ends_=[],this.flatInteriorPointRevision_=-1,this.flatInteriorPoint_=null,this.maxDelta_=-1,this.maxDeltaRevision_=-1,this.orientedRevision_=-1,this.orientedFlatCoordinates_=null,void 0!==t&&n?(this.setFlatCoordinates(t,e),this.ends_=n):this.setCoordinates(e,t)}appendLinearRing(e){this.flatCoordinates?iD(this.flatCoordinates,e.getFlatCoordinates()):this.flatCoordinates=e.getFlatCoordinates().slice(),this.ends_.push(this.flatCoordinates.length),this.changed()}clone(){const e=new bK(this.flatCoordinates.slice(),this.layout,this.ends_.slice());return e.applyProperties(this),e}closestPointXY(e,t,n,r){return r<VM(this.getExtent(),e,t)?r:(this.maxDeltaRevision_!=this.getRevision()&&(this.maxDelta_=Math.sqrt(HY(this.flatCoordinates,0,this.ends_,this.stride,0)),this.maxDeltaRevision_=this.getRevision()),XY(this.flatCoordinates,0,this.ends_,this.stride,this.maxDelta_,!0,e,t,n,r))}containsXY(e,t){return MN(this.getOrientedFlatCoordinates(),0,this.ends_,this.stride,e,t)}getArea(){return aK(this.getOrientedFlatCoordinates(),0,this.ends_,this.stride)}getCoordinates(e){let t;return void 0!==e?(t=this.getOrientedFlatCoordinates().slice(),vK(t,0,this.ends_,this.stride,e)):t=this.flatCoordinates,iK(t,0,this.ends_,this.stride)}getEnds(){return this.ends_}getFlatInteriorPoint(){if(this.flatInteriorPointRevision_!=this.getRevision()){const e=iO(this.getExtent());this.flatInteriorPoint_=hK(this.getOrientedFlatCoordinates(),0,this.ends_,this.stride,e,0),this.flatInteriorPointRevision_=this.getRevision()}return this.flatInteriorPoint_}getInteriorPoint(){return new dK(this.getFlatInteriorPoint(),"XYM")}getLinearRingCount(){return this.ends_.length}getLinearRing(e){return e<0||this.ends_.length<=e?null:new cK(this.flatCoordinates.slice(0===e?0:this.ends_[e-1],this.ends_[e]),this.layout)}getLinearRings(){const e=this.layout,t=this.flatCoordinates,n=this.ends_,r=[];let i=0;for(let o=0,s=n.length;o<s;++o){const s=n[o],a=new cK(t.slice(i,s),e);r.push(a),i=s}return r}getOrientedFlatCoordinates(){if(this.orientedRevision_!=this.getRevision()){const e=this.flatCoordinates;mK(e,0,this.ends_,this.stride)?this.orientedFlatCoordinates_=e:(this.orientedFlatCoordinates_=e.slice(),this.orientedFlatCoordinates_.length=vK(this.orientedFlatCoordinates_,0,this.ends_,this.stride)),this.orientedRevision_=this.getRevision()}return this.orientedFlatCoordinates_}getSimplifiedGeometryInternal(e){const t=[],n=[];return t.length=nK(this.flatCoordinates,0,this.ends_,this.stride,Math.sqrt(e),t,0,n),new bK(t,"XY",n)}getType(){return"Polygon"}intersectsExtent(e){return DN(this.getOrientedFlatCoordinates(),0,this.ends_,this.stride,e)}setCoordinates(e,t){this.setLayout(t,e,2),this.flatCoordinates||(this.flatCoordinates=[]);const n=ZY(this.flatCoordinates,0,e,this.stride,this.ends_);this.flatCoordinates.length=0===n.length?0:n[n.length-1],this.changed()}}const xK=bK;function SK(e){if(pO(e))throw new Error("Cannot create polygon from empty extent");const t=e[0],n=e[1],r=e[2],i=e[3],o=[t,n,t,i,r,i,r,n,t,n];return new bK(o,"XY",[o.length])}function wK(e,t,n){t=t||32;const r=e.getStride(),i=e.getLayout(),o=e.getCenter(),s=r*(t+1),a=new Array(s);for(let u=0;u<s;u+=r){a[u]=0,a[u+1]=0;for(let e=2;e<r;e++)a[u+e]=o[e]}const l=[a.length],c=new bK(a,i,l);return function(e,t,n,r){const i=e.getFlatCoordinates(),o=e.getStride(),s=i.length/o-1,a=r||0;for(let l=0;l<=s;++l){const e=l*o,r=a+2*WO(l,s)*Math.PI/s;i[e]=t[0]+n*Math.cos(r),i[e+1]=t[1]+n*Math.sin(r)}e.changed()}(c,o,e.getRadius(),n),c}function EK(e,t){setTimeout((function(){e(t)}),0)}function PK(e){return!(e.sourceCenter&&e.targetCenter&&!JO(e.sourceCenter,e.targetCenter))&&(e.sourceResolution===e.targetResolution&&e.sourceRotation===e.targetRotation)}function CK(e,t,n,r,i){const o=Math.cos(-i);let s=Math.sin(-i),a=e[0]*o-e[1]*s,l=e[1]*o+e[0]*s;a+=(t[0]/2-n[0])*r,l+=(n[1]-t[1]/2)*r,s=-s;return[a*o-l*s,l*o+a*s]}const AK=class extends SN{constructor(e){super(),this.on,this.once,this.un,e=Object.assign({},e),this.hints_=[0,0],this.animations_=[],this.updateAnimationKey_,this.projection_=ER(e.projection,"EPSG:3857"),this.viewportSize_=[100,100],this.targetCenter_=null,this.targetResolution_,this.targetRotation_,this.nextCenter_=null,this.nextResolution_,this.nextRotation_,this.cancelAnchor_=void 0,e.projection&&yR(),e.center&&(e.center=NR(e.center,this.projection_)),e.extent&&(e.extent=VR(e.extent,this.projection_)),this.applyOptions_(e)}applyOptions_(e){const t=Object.assign({},e);for(const s in vY)delete t[s];this.setProperties(t,!0);const n=function(e){let t,n,r;const i=28,o=2;let s=void 0!==e.minZoom?e.minZoom:0,a=void 0!==e.maxZoom?e.maxZoom:i;const l=void 0!==e.zoomFactor?e.zoomFactor:o,c=void 0!==e.multiWorld&&e.multiWorld,u=void 0===e.smoothResolutionConstraint||e.smoothResolutionConstraint,d=void 0!==e.showFullExtent&&e.showFullExtent,h=ER(e.projection,"EPSG:3857"),p=h.getExtent();let f=e.constrainOnlyCenter,g=e.extent;c||g||!h.isGlobal()||(f=!1,g=p);if(void 0!==e.resolutions){const i=e.resolutions;n=i[s],r=void 0!==i[a]?i[a]:i[i.length-1],t=e.constrainResolution?function(e,t,n,r){return t=void 0===t||t,function(i,o,s,a){if(void 0!==i){const l=e[0],c=e[e.length-1],u=n?xY(l,n,s,r):l;if(a)return t?SY(i,u,c):VO(i,c,u);const d=Math.min(u,i),h=Math.floor(nD(e,d,o));return e[h]>u&&h<e.length-1?e[h+1]:e[h]}}}(i,u,!f&&g,d):wY(n,r,u,!f&&g,d)}else{const c=(p?Math.max(dO(p),aO(p)):360*bO.degrees/h.getMetersPerUnit())/jN/Math.pow(o,0),m=c/Math.pow(o,i-0);n=e.maxResolution,void 0!==n?s=0:n=c/Math.pow(l,s),r=e.minResolution,void 0===r&&(r=void 0!==e.maxZoom?void 0!==e.maxResolution?n/Math.pow(l,a):c/Math.pow(l,a):m),a=s+Math.floor(Math.log(n/r)/Math.log(l)),r=n/Math.pow(l,a-s),t=e.constrainResolution?function(e,t,n,r,i,o){return r=void 0===r||r,n=void 0!==n?n:0,function(s,a,l,c){if(void 0!==s){const u=i?xY(t,i,l,o):t;if(c)return r?SY(s,u,n):VO(s,n,u);const d=1e-9,h=Math.ceil(Math.log(t/u)/Math.log(e)-d),p=-a*(.5-d)+.5,f=Math.min(u,s),g=Math.floor(Math.log(t/f)/Math.log(e)+p),m=Math.max(h,g);return VO(t/Math.pow(e,m),n,u)}}}(l,n,r,u,!f&&g,d):wY(n,r,u,!f&&g,d)}return{constraint:t,maxResolution:n,minResolution:r,minZoom:s,zoomFactor:l}}(e);this.maxResolution_=n.maxResolution,this.minResolution_=n.minResolution,this.zoomFactor_=n.zoomFactor,this.resolutions_=e.resolutions,this.padding_=e.padding,this.minZoom_=n.minZoom;const r=function(e){if(void 0!==e.extent){const t=void 0===e.smoothExtentConstraint||e.smoothExtentConstraint;return _Y(e.extent,e.constrainOnlyCenter,t)}const t=ER(e.projection,"EPSG:3857");if(!0!==e.multiWorld&&t.isGlobal()){const e=t.getExtent().slice();return e[0]=-1/0,e[2]=1/0,_Y(e,!1,!1)}return bY}(e),i=n.constraint,o=function(e){const t=void 0===e.enableRotation||e.enableRotation;if(t){const t=e.constrainRotation;return void 0===t||!0===t?function(e){const t=void 0===e?UO(5):e;return function(e,n){return n||void 0===e?e:Math.abs(e)<=t?0:e}}():!1===t?PY:"number"===typeof t?function(e){const t=2*Math.PI/e;return function(e,n){return n?e:void 0!==e?e=Math.floor(e/t+.5)*t:void 0}}(t):PY}return EY}(e);this.constraints_={center:r,resolution:i,rotation:o},this.setRotation(void 0!==e.rotation?e.rotation:0),this.setCenterInternal(void 0!==e.center?e.center:null),void 0!==e.resolution?this.setResolution(e.resolution):void 0!==e.zoom&&this.setZoom(e.zoom)}get padding(){return this.padding_}set padding(e){let t=this.padding_;this.padding_=e;const n=this.getCenterInternal();if(n){const r=e||[0,0,0,0];t=t||[0,0,0,0];const i=this.getResolution(),o=i/2*(r[3]-t[3]+t[1]-r[1]),s=i/2*(r[0]-t[0]+t[2]-r[2]);this.setCenterInternal([n[0]+o,n[1]-s])}}getUpdatedOptions_(e){const t=this.getProperties();return void 0!==t.resolution?t.resolution=this.getResolution():t.zoom=this.getZoom(),t.center=this.getCenterInternal(),t.rotation=this.getRotation(),Object.assign({},t,e)}animate(e){this.isDef()&&!this.getAnimating()&&this.resolveConstraints(0);const t=new Array(arguments.length);for(let n=0;n<t.length;++n){let e=arguments[n];e.center&&(e=Object.assign({},e),e.center=NR(e.center,this.getProjection())),e.anchor&&(e=Object.assign({},e),e.anchor=NR(e.anchor,this.getProjection())),t[n]=e}this.animateInternal.apply(this,t)}animateInternal(e){let t,n=arguments.length;n>1&&"function"===typeof arguments[n-1]&&(t=arguments[n-1],--n);let r=0;for(;r<n&&!this.isDef();++r){const e=arguments[r];e.center&&this.setCenterInternal(e.center),void 0!==e.zoom?this.setZoom(e.zoom):e.resolution&&this.setResolution(e.resolution),void 0!==e.rotation&&this.setRotation(e.rotation)}if(r===n)return void(t&&EK(t,!0));let i=Date.now(),o=this.targetCenter_.slice(),s=this.targetResolution_,a=this.targetRotation_;const l=[];for(;r<n;++r){const e=arguments[r],n={start:i,complete:!1,anchor:e.anchor,duration:void 0!==e.duration?e.duration:1e3,easing:e.easing||ED,callback:t};if(e.center&&(n.sourceCenter=o,n.targetCenter=e.center.slice(),o=n.targetCenter),void 0!==e.zoom?(n.sourceResolution=s,n.targetResolution=this.getResolutionForZoom(e.zoom),s=n.targetResolution):e.resolution&&(n.sourceResolution=s,n.targetResolution=e.resolution,s=n.targetResolution),void 0!==e.rotation){n.sourceRotation=a;const t=WO(e.rotation-a+Math.PI,2*Math.PI)-Math.PI;n.targetRotation=a+t,a=n.targetRotation}PK(n)?n.complete=!0:i+=n.duration,l.push(n)}this.animations_.push(l),this.setHint(mY,1),this.updateAnimations_()}getAnimating(){return this.hints_[mY]>0}getInteracting(){return this.hints_[yY]>0}cancelAnimations(){let e;this.setHint(mY,-this.hints_[mY]);for(let t=0,n=this.animations_.length;t<n;++t){const n=this.animations_[t];if(n[0].callback&&EK(n[0].callback,!1),!e)for(let t=0,r=n.length;t<r;++t){const r=n[t];if(!r.complete){e=r.anchor;break}}}this.animations_.length=0,this.cancelAnchor_=e,this.nextCenter_=null,this.nextResolution_=NaN,this.nextRotation_=NaN}updateAnimations_(){if(void 0!==this.updateAnimationKey_&&(cancelAnimationFrame(this.updateAnimationKey_),this.updateAnimationKey_=void 0),!this.getAnimating())return;const e=Date.now();let t=!1;for(let n=this.animations_.length-1;n>=0;--n){const r=this.animations_[n];let i=!0;for(let n=0,o=r.length;n<o;++n){const o=r[n];if(o.complete)continue;const s=e-o.start;let a=o.duration>0?s/o.duration:1;a>=1?(o.complete=!0,a=1):i=!1;const l=o.easing(a);if(o.sourceCenter){const e=o.sourceCenter[0],t=o.sourceCenter[1],n=o.targetCenter[0],r=o.targetCenter[1];this.nextCenter_=o.targetCenter;const i=e+l*(n-e),s=t+l*(r-t);this.targetCenter_=[i,s]}if(o.sourceResolution&&o.targetResolution){const e=1===l?o.targetResolution:o.sourceResolution+l*(o.targetResolution-o.sourceResolution);if(o.anchor){const t=this.getViewportSize_(this.getRotation()),n=this.constraints_.resolution(e,0,t,!0);this.targetCenter_=this.calculateCenterZoom(n,o.anchor)}this.nextResolution_=o.targetResolution,this.targetResolution_=e,this.applyTargetState_(!0)}if(void 0!==o.sourceRotation&&void 0!==o.targetRotation){const e=1===l?WO(o.targetRotation+Math.PI,2*Math.PI)-Math.PI:o.sourceRotation+l*(o.targetRotation-o.sourceRotation);if(o.anchor){const t=this.constraints_.rotation(e,!0);this.targetCenter_=this.calculateCenterRotate(t,o.anchor)}this.nextRotation_=o.targetRotation,this.targetRotation_=e}if(this.applyTargetState_(!0),t=!0,!o.complete)break}if(i){this.animations_[n]=null,this.setHint(mY,-1),this.nextCenter_=null,this.nextResolution_=NaN,this.nextRotation_=NaN;const e=r[0].callback;e&&EK(e,!0)}}this.animations_=this.animations_.filter(Boolean),t&&void 0===this.updateAnimationKey_&&(this.updateAnimationKey_=requestAnimationFrame(this.updateAnimations_.bind(this)))}calculateCenterRotate(e,t){let n;const r=this.getCenterInternal();return void 0!==r&&(n=[r[0]-t[0],r[1]-t[1]],QO(n,e-this.getRotation()),KO(n,t)),n}calculateCenterZoom(e,t){let n;const r=this.getCenterInternal(),i=this.getResolution();if(void 0!==r&&void 0!==i){n=[t[0]-e*(t[0]-r[0])/i,t[1]-e*(t[1]-r[1])/i]}return n}getViewportSize_(e){const t=this.viewportSize_;if(e){const n=t[0],r=t[1];return[Math.abs(n*Math.cos(e))+Math.abs(r*Math.sin(e)),Math.abs(n*Math.sin(e))+Math.abs(r*Math.cos(e))]}return t}setViewportSize(e){this.viewportSize_=Array.isArray(e)?e.slice():[100,100],this.getAnimating()||this.resolveConstraints(0)}getCenter(){const e=this.getCenterInternal();return e?DR(e,this.getProjection()):e}getCenterInternal(){return this.get(vY.CENTER)}getConstraints(){return this.constraints_}getConstrainResolution(){return this.get("constrainResolution")}getHints(e){return void 0!==e?(e[0]=this.hints_[0],e[1]=this.hints_[1],e):this.hints_.slice()}calculateExtent(e){return LR(this.calculateExtentInternal(e),this.getProjection())}calculateExtentInternal(e){e=e||this.getViewportSizeMinusPadding_();const t=this.getCenterInternal();lN(t,"The view center is not defined");const n=this.getResolution();lN(void 0!==n,"The view resolution is not defined");const r=this.getRotation();return lN(void 0!==r,"The view rotation is not defined"),sO(t,n,r,e)}getMaxResolution(){return this.maxResolution_}getMinResolution(){return this.minResolution_}getMaxZoom(){return this.getZoomForResolution(this.minResolution_)}setMaxZoom(e){this.applyOptions_(this.getUpdatedOptions_({maxZoom:e}))}getMinZoom(){return this.getZoomForResolution(this.maxResolution_)}setMinZoom(e){this.applyOptions_(this.getUpdatedOptions_({minZoom:e}))}setConstrainResolution(e){this.applyOptions_(this.getUpdatedOptions_({constrainResolution:e}))}getProjection(){return this.projection_}getResolution(){return this.get(vY.RESOLUTION)}getResolutions(){return this.resolutions_}getResolutionForExtent(e,t){return this.getResolutionForExtentInternal(VR(e,this.getProjection()),t)}getResolutionForExtentInternal(e,t){t=t||this.getViewportSizeMinusPadding_();const n=dO(e)/t[0],r=aO(e)/t[1];return Math.max(n,r)}getResolutionForValueFunction(e){e=e||2;const t=this.getConstrainedResolution(this.maxResolution_),n=this.minResolution_,r=Math.log(t/n)/Math.log(e);return function(n){return t/Math.pow(e,n*r)}}getRotation(){return this.get(vY.ROTATION)}getValueForResolutionFunction(e){const t=Math.log(e||2),n=this.getConstrainedResolution(this.maxResolution_),r=this.minResolution_,i=Math.log(n/r)/t;return function(e){return Math.log(n/e)/t/i}}getViewportSizeMinusPadding_(e){let t=this.getViewportSize_(e);const n=this.padding_;return n&&(t=[t[0]-n[1]-n[3],t[1]-n[0]-n[2]]),t}getState(){const e=this.getProjection(),t=this.getResolution(),n=this.getRotation();let r=this.getCenterInternal();const i=this.padding_;if(i){const e=this.getViewportSizeMinusPadding_();r=CK(r,this.getViewportSize_(),[e[0]/2+i[3],e[1]/2+i[0]],t,n)}return{center:r.slice(0),projection:void 0!==e?e:null,resolution:t,nextCenter:this.nextCenter_,nextResolution:this.nextResolution_,nextRotation:this.nextRotation_,rotation:n,zoom:this.getZoom()}}getViewStateAndExtent(){return{viewState:this.getState(),extent:this.calculateExtent()}}getZoom(){let e;const t=this.getResolution();return void 0!==t&&(e=this.getZoomForResolution(t)),e}getZoomForResolution(e){let t,n,r=this.minZoom_||0;if(this.resolutions_){const i=nD(this.resolutions_,e,1);r=i,t=this.resolutions_[i],n=i==this.resolutions_.length-1?2:t/this.resolutions_[i+1]}else t=this.maxResolution_,n=this.zoomFactor_;return r+Math.log(t/e)/Math.log(n)}getResolutionForZoom(e){if(this.resolutions_){if(this.resolutions_.length<=1)return 0;const t=VO(Math.floor(e),0,this.resolutions_.length-2),n=this.resolutions_[t]/this.resolutions_[t+1];return this.resolutions_[t]/Math.pow(n,VO(e-t,0,1))}return this.maxResolution_/Math.pow(this.zoomFactor_,e-this.minZoom_)}fit(e,t){let n;if(lN(Array.isArray(e)||"function"===typeof e.getSimplifiedGeometry,"Invalid extent or geometry provided as `geometry`"),Array.isArray(e)){lN(!pO(e),"Cannot fit empty extent provided as `geometry`");n=SK(VR(e,this.getProjection()))}else if("Circle"===e.getType()){const t=VR(e.getExtent(),this.getProjection());n=SK(t),n.rotate(this.getRotation(),iO(t))}else{const t=RR();n=t?e.clone().transform(t,this.getProjection()):e}this.fitInternal(n,t)}rotatedExtentForGeometry(e){const t=this.getRotation(),n=Math.cos(t),r=Math.sin(-t),i=e.getFlatCoordinates(),o=e.getStride();let s=1/0,a=1/0,l=-1/0,c=-1/0;for(let u=0,d=i.length;u<d;u+=o){const e=i[u]*n-i[u+1]*r,t=i[u]*r+i[u+1]*n;s=Math.min(s,e),a=Math.min(a,t),l=Math.max(l,e),c=Math.max(c,t)}return[s,a,l,c]}fitInternal(e,t){let n=(t=t||{}).size;n||(n=this.getViewportSizeMinusPadding_());const r=void 0!==t.padding?t.padding:[0,0,0,0],i=void 0!==t.nearest&&t.nearest;let o;o=void 0!==t.minResolution?t.minResolution:void 0!==t.maxZoom?this.getResolutionForZoom(t.maxZoom):0;const s=this.rotatedExtentForGeometry(e);let a=this.getResolutionForExtentInternal(s,[n[0]-r[1]-r[3],n[1]-r[0]-r[2]]);a=isNaN(a)?o:Math.max(a,o),a=this.getConstrainedResolution(a,i?0:1);const l=this.getRotation(),c=Math.sin(l),u=Math.cos(l),d=iO(s);d[0]+=(r[1]-r[3])/2*a,d[1]+=(r[0]-r[2])/2*a;const h=d[0]*u-d[1]*c,p=d[1]*u+d[0]*c,f=this.getConstrainedCenter([h,p],a),g=t.callback?t.callback:lD;void 0!==t.duration?this.animateInternal({resolution:a,center:f,duration:t.duration,easing:t.easing},g):(this.targetResolution_=a,this.targetCenter_=f,this.applyTargetState_(!1,!0),EK(g,!0))}centerOn(e,t,n){this.centerOnInternal(NR(e,this.getProjection()),t,n)}centerOnInternal(e,t,n){this.setCenterInternal(CK(e,t,n,this.getResolution(),this.getRotation()))}calculateCenterShift(e,t,n,r){let i;const o=this.padding_;if(o&&e){const s=this.getViewportSizeMinusPadding_(-n),a=CK(e,r,[s[0]/2+o[3],s[1]/2+o[0]],t,n);i=[e[0]-a[0],e[1]-a[1]]}return i}isDef(){return!!this.getCenterInternal()&&void 0!==this.getResolution()}adjustCenter(e){const t=DR(this.targetCenter_,this.getProjection());this.setCenter([t[0]+e[0],t[1]+e[1]])}adjustCenterInternal(e){const t=this.targetCenter_;this.setCenterInternal([t[0]+e[0],t[1]+e[1]])}adjustResolution(e,t){t=t&&NR(t,this.getProjection()),this.adjustResolutionInternal(e,t)}adjustResolutionInternal(e,t){const n=this.getAnimating()||this.getInteracting(),r=this.getViewportSize_(this.getRotation()),i=this.constraints_.resolution(this.targetResolution_*e,0,r,n);t&&(this.targetCenter_=this.calculateCenterZoom(i,t)),this.targetResolution_*=e,this.applyTargetState_()}adjustZoom(e,t){this.adjustResolution(Math.pow(this.zoomFactor_,-e),t)}adjustRotation(e,t){t&&(t=NR(t,this.getProjection())),this.adjustRotationInternal(e,t)}adjustRotationInternal(e,t){const n=this.getAnimating()||this.getInteracting(),r=this.constraints_.rotation(this.targetRotation_+e,n);t&&(this.targetCenter_=this.calculateCenterRotate(r,t)),this.targetRotation_+=e,this.applyTargetState_()}setCenter(e){this.setCenterInternal(e?NR(e,this.getProjection()):e)}setCenterInternal(e){this.targetCenter_=e,this.applyTargetState_()}setHint(e,t){return this.hints_[e]+=t,this.changed(),this.hints_[e]}setResolution(e){this.targetResolution_=e,this.applyTargetState_()}setRotation(e){this.targetRotation_=e,this.applyTargetState_()}setZoom(e){this.setResolution(this.getResolutionForZoom(e))}applyTargetState_(e,t){const n=this.getAnimating()||this.getInteracting()||t,r=this.constraints_.rotation(this.targetRotation_,n),i=this.getViewportSize_(r),o=this.constraints_.resolution(this.targetResolution_,0,i,n),s=this.constraints_.center(this.targetCenter_,o,i,n,this.calculateCenterShift(this.targetCenter_,o,r,i));this.get(vY.ROTATION)!==r&&this.set(vY.ROTATION,r),this.get(vY.RESOLUTION)!==o&&(this.set(vY.RESOLUTION,o),this.set("zoom",this.getZoom(),!0)),s&&this.get(vY.CENTER)&&JO(this.get(vY.CENTER),s)||this.set(vY.CENTER,s),this.getAnimating()&&!e&&this.cancelAnimations(),this.cancelAnchor_=void 0}resolveConstraints(e,t,n){e=void 0!==e?e:200;const r=t||0,i=this.constraints_.rotation(this.targetRotation_),o=this.getViewportSize_(i),s=this.constraints_.resolution(this.targetResolution_,r,o),a=this.constraints_.center(this.targetCenter_,s,o,!1,this.calculateCenterShift(this.targetCenter_,s,i,o));if(0===e&&!this.cancelAnchor_)return this.targetResolution_=s,this.targetRotation_=i,this.targetCenter_=a,void this.applyTargetState_();n=n||(0===e?this.cancelAnchor_:void 0),this.cancelAnchor_=void 0,this.getResolution()===s&&this.getRotation()===i&&this.getCenterInternal()&&JO(this.getCenterInternal(),a)||(this.getAnimating()&&this.cancelAnimations(),this.animateInternal({rotation:i,center:a,resolution:s,duration:e,easing:wD,anchor:n}))}beginInteraction(){this.resolveConstraints(0),this.setHint(yY,1)}endInteraction(e,t,n){n=n&&NR(n,this.getProjection()),this.endInteractionInternal(e,t,n)}endInteractionInternal(e,t,n){this.getInteracting()&&(this.setHint(yY,-1),this.resolveConstraints(e,t,n))}getConstrainedCenter(e,t){const n=this.getViewportSize_(this.getRotation());return this.constraints_.center(e,t||this.getResolution(),n)}getConstrainedZoom(e,t){const n=this.getResolutionForZoom(e);return this.getZoomForResolution(this.getConstrainedResolution(n,t))}getConstrainedResolution(e,t){t=t||0;const n=this.getViewportSize_(this.getRotation());return this.constraints_.resolution(e,t,n)}};function kK(e,t){if(!e.visible)return!1;const n=t.resolution;if(n<e.minResolution||n>=e.maxResolution)return!1;const r=t.zoom;return r>e.minZoom&&r<=e.maxZoom}const jK=class extends uY{constructor(e){const t=Object.assign({},e);delete t.source,super(t),this.on,this.once,this.un,this.mapPrecomposeKey_=null,this.mapRenderKey_=null,this.sourceChangeKey_=null,this.renderer_=null,this.sourceReady_=!1,this.rendered=!1,e.render&&(this.render=e.render),e.map&&this.setMap(e.map),this.addChangeListener(lY,this.handleSourcePropertyChange_);const n=e.source?e.source:null;this.setSource(n)}getLayersArray(e){return(e=e||[]).push(this),e}getLayerStatesArray(e){return(e=e||[]).push(this.getLayerState()),e}getSource(){return this.get(lY)||null}getRenderSource(){return this.getSource()}getSourceState(){const e=this.getSource();return e?e.getState():"undefined"}handleSourceChange_(){this.changed(),this.sourceReady_||"ready"!==this.getSource().getState()||(this.sourceReady_=!0,this.dispatchEvent("sourceready"))}handleSourcePropertyChange_(){this.sourceChangeKey_&&(YD(this.sourceChangeKey_),this.sourceChangeKey_=null),this.sourceReady_=!1;const e=this.getSource();e&&(this.sourceChangeKey_=qD(e,BR,this.handleSourceChange_,this),"ready"===e.getState()&&(this.sourceReady_=!0,setTimeout((()=>{this.dispatchEvent("sourceready")}),0))),this.changed()}getFeatures(e){return this.renderer_?this.renderer_.getFeatures(e):Promise.resolve([])}getData(e){return this.renderer_&&this.rendered?this.renderer_.getData(e):null}isVisible(e){let t;const n=this.getMapInternal();let r;!e&&n&&(e=n.getView()),t=e instanceof AK?{viewState:e.getState(),extent:e.calculateExtent()}:e,!t.layerStatesArray&&n&&(t.layerStatesArray=n.getLayerGroup().getLayerStatesArray()),r=t.layerStatesArray?t.layerStatesArray.find((e=>e.layer===this)):this.getLayerState();const i=this.getExtent();return kK(r,t.viewState)&&(!i||hO(i,t.extent))}getAttributions(e){var t;if(!this.isVisible(e))return[];const n=null===(t=this.getSource())||void 0===t?void 0:t.getAttributions();if(!n)return[];let r=n(e instanceof AK?e.getViewStateAndExtent():e);return Array.isArray(r)||(r=[r]),r}render(e,t){const n=this.getRenderer();return n.prepareFrame(e)?(this.rendered=!0,n.renderFrame(e,t)):null}unrender(){this.rendered=!1}getDeclutter(){}renderDeclutter(e,t){}renderDeferred(e){const t=this.getRenderer();t&&t.renderDeferred(e)}setMapInternal(e){e||this.unrender(),this.set(cY,e)}getMapInternal(){return this.get(cY)}setMap(e){this.mapPrecomposeKey_&&(YD(this.mapPrecomposeKey_),this.mapPrecomposeKey_=null),e||this.changed(),this.mapRenderKey_&&(YD(this.mapRenderKey_),this.mapRenderKey_=null),e&&(this.mapPrecomposeKey_=qD(e,pY,(e=>{const t=e.frameState.layerStatesArray,n=this.getLayerState(!1);lN(!t.some((function(e){return e.layer===n.layer})),"A layer can only be added to the map once. Use either `layer.setMap()` or `map.addLayer()`, not both."),t.push(n)})),this.mapRenderKey_=qD(this,BR,e.render,e),this.changed())}setSource(e){this.set(lY,e)}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()}};function IK(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:e.length-1,i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:TK;for(;r>n;){if(r-n>600){const o=r-n+1,s=t-n+1,a=Math.log(o),l=.5*Math.exp(2*a/3),c=.5*Math.sqrt(a*l*(o-l)/o)*(s-o/2<0?-1:1);IK(e,t,Math.max(n,Math.floor(t-s*l/o+c)),Math.min(r,Math.floor(t+(o-s)*l/o+c)),i)}const o=e[t];let s=n,a=r;for(GK(e,n,t),i(e[r],o)>0&&GK(e,n,r);s<a;){for(GK(e,s,a),s++,a--;i(e[s],o)<0;)s++;for(;i(e[a],o)>0;)a--}0===i(e[n],o)?GK(e,n,a):(a++,GK(e,a,r)),a<=t&&(n=a+1),t<=a&&(r=a-1)}}function GK(e,t,n){const r=e[t];e[t]=e[n],e[n]=r}function TK(e,t){return e<t?-1:e>t?1:0}class MK{constructor(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:9;this._maxEntries=Math.max(4,e),this._minEntries=Math.max(2,Math.ceil(.4*this._maxEntries)),this.clear()}all(){return this._all(this.data,[])}search(e){let t=this.data;const n=[];if(!HK(e,t))return n;const r=this.toBBox,i=[];for(;t;){for(let o=0;o<t.children.length;o++){const s=t.children[o],a=t.leaf?r(s):s;HK(e,a)&&(t.leaf?n.push(s):WK(e,a)?this._all(s,n):i.push(s))}t=i.pop()}return n}collides(e){let t=this.data;if(!HK(e,t))return!1;const n=[];for(;t;){for(let r=0;r<t.children.length;r++){const i=t.children[r],o=t.leaf?this.toBBox(i):i;if(HK(e,o)){if(t.leaf||WK(e,o))return!0;n.push(i)}}t=n.pop()}return!1}load(e){if(!e||!e.length)return this;if(e.length<this._minEntries){for(let t=0;t<e.length;t++)this.insert(e[t]);return this}let t=this._build(e.slice(),0,e.length-1,0);if(this.data.children.length)if(this.data.height===t.height)this._splitRoot(this.data,t);else{if(this.data.height<t.height){const e=this.data;this.data=t,t=e}this._insert(t,this.data.height-t.height-1,!0)}else this.data=t;return this}insert(e){return e&&this._insert(e,this.data.height-1),this}clear(){return this.data=qK([]),this}remove(e,t){if(!e)return this;let n=this.data;const r=this.toBBox(e),i=[],o=[];let s,a,l;for(;n||i.length;){if(n||(n=i.pop(),a=i[i.length-1],s=o.pop(),l=!0),n.leaf){const r=OK(e,n.children,t);if(-1!==r)return n.children.splice(r,1),i.push(n),this._condense(i),this}l||n.leaf||!WK(n,r)?a?(s++,n=a.children[s],l=!1):n=null:(i.push(n),o.push(s),s=0,a=n,n=n.children[0])}return this}toBBox(e){return e}compareMinX(e,t){return e.minX-t.minX}compareMinY(e,t){return e.minY-t.minY}toJSON(){return this.data}fromJSON(e){return this.data=e,this}_all(e,t){const n=[];for(;e;)e.leaf?t.push(...e.children):n.push(...e.children),e=n.pop();return t}_build(e,t,n,r){const i=n-t+1;let o,s=this._maxEntries;if(i<=s)return o=qK(e.slice(t,n+1)),RK(o,this.toBBox),o;r||(r=Math.ceil(Math.log(i)/Math.log(s)),s=Math.ceil(i/Math.pow(s,r-1))),o=qK([]),o.leaf=!1,o.height=r;const a=Math.ceil(i/s),l=a*Math.ceil(Math.sqrt(s));XK(e,t,n,l,this.compareMinX);for(let c=t;c<=n;c+=l){const t=Math.min(c+l-1,n);XK(e,c,t,a,this.compareMinY);for(let n=c;n<=t;n+=a){const i=Math.min(n+a-1,t);o.children.push(this._build(e,n,i,r-1))}}return RK(o,this.toBBox),o}_chooseSubtree(e,t,n,r){for(;r.push(t),!t.leaf&&r.length-1!==n;){let n,r=1/0,i=1/0;for(let o=0;o<t.children.length;o++){const s=t.children[o],a=FK(s),l=BK(e,s)-a;l<i?(i=l,r=a<r?a:r,n=s):l===i&&a<r&&(r=a,n=s)}t=n||t.children[0]}return t}_insert(e,t,n){const r=n?e:this.toBBox(e),i=[],o=this._chooseSubtree(r,this.data,t,i);for(o.children.push(e),NK(o,r);t>=0&&i[t].children.length>this._maxEntries;)this._split(i,t),t--;this._adjustParentBBoxes(r,i,t)}_split(e,t){const n=e[t],r=n.children.length,i=this._minEntries;this._chooseSplitAxis(n,i,r);const o=this._chooseSplitIndex(n,i,r),s=qK(n.children.splice(o,n.children.length-o));s.height=n.height,s.leaf=n.leaf,RK(n,this.toBBox),RK(s,this.toBBox),t?e[t-1].children.push(s):this._splitRoot(n,s)}_splitRoot(e,t){this.data=qK([e,t]),this.data.height=e.height+1,this.data.leaf=!1,RK(this.data,this.toBBox)}_chooseSplitIndex(e,t,n){let r,i=1/0,o=1/0;for(let s=t;s<=n-t;s++){const t=DK(e,0,s,this.toBBox),a=DK(e,s,n,this.toBBox),l=UK(t,a),c=FK(t)+FK(a);l<i?(i=l,r=s,o=c<o?c:o):l===i&&c<o&&(o=c,r=s)}return r||n-t}_chooseSplitAxis(e,t,n){const r=e.leaf?this.compareMinX:LK,i=e.leaf?this.compareMinY:VK;this._allDistMargin(e,t,n,r)<this._allDistMargin(e,t,n,i)&&e.children.sort(r)}_allDistMargin(e,t,n,r){e.children.sort(r);const i=this.toBBox,o=DK(e,0,t,i),s=DK(e,n-t,n,i);let a=zK(o)+zK(s);for(let l=t;l<n-t;l++){const t=e.children[l];NK(o,e.leaf?i(t):t),a+=zK(o)}for(let l=n-t-1;l>=t;l--){const t=e.children[l];NK(s,e.leaf?i(t):t),a+=zK(s)}return a}_adjustParentBBoxes(e,t,n){for(let r=n;r>=0;r--)NK(t[r],e)}_condense(e){for(let t,n=e.length-1;n>=0;n--)0===e[n].children.length?n>0?(t=e[n-1].children,t.splice(t.indexOf(e[n]),1)):this.clear():RK(e[n],this.toBBox)}}function OK(e,t,n){if(!n)return t.indexOf(e);for(let r=0;r<t.length;r++)if(n(e,t[r]))return r;return-1}function RK(e,t){DK(e,0,e.children.length,t,e)}function DK(e,t,n,r,i){i||(i=qK(null)),i.minX=1/0,i.minY=1/0,i.maxX=-1/0,i.maxY=-1/0;for(let o=t;o<n;o++){const t=e.children[o];NK(i,e.leaf?r(t):t)}return i}function NK(e,t){return e.minX=Math.min(e.minX,t.minX),e.minY=Math.min(e.minY,t.minY),e.maxX=Math.max(e.maxX,t.maxX),e.maxY=Math.max(e.maxY,t.maxY),e}function LK(e,t){return e.minX-t.minX}function VK(e,t){return e.minY-t.minY}function FK(e){return(e.maxX-e.minX)*(e.maxY-e.minY)}function zK(e){return e.maxX-e.minX+(e.maxY-e.minY)}function BK(e,t){return(Math.max(t.maxX,e.maxX)-Math.min(t.minX,e.minX))*(Math.max(t.maxY,e.maxY)-Math.min(t.minY,e.minY))}function UK(e,t){const n=Math.max(e.minX,t.minX),r=Math.max(e.minY,t.minY),i=Math.min(e.maxX,t.maxX),o=Math.min(e.maxY,t.maxY);return Math.max(0,i-n)*Math.max(0,o-r)}function WK(e,t){return e.minX<=t.minX&&e.minY<=t.minY&&t.maxX<=e.maxX&&t.maxY<=e.maxY}function HK(e,t){return t.minX<=e.maxX&&t.minY<=e.maxY&&t.maxX>=e.minX&&t.maxY>=e.minY}function qK(e){return{children:e,height:1,leaf:!0,minX:1/0,minY:1/0,maxX:-1/0,maxY:-1/0}}function XK(e,t,n,r,i){const o=[t,n];for(;o.length;){if((n=o.pop())-(t=o.pop())<=r)continue;const s=t+Math.ceil((n-t)/r/2)*r;IK(e,s,t,n,i),o.push(t,s,s,n)}}class YK{constructor(e){this.opacity_=e.opacity,this.rotateWithView_=e.rotateWithView,this.rotation_=e.rotation,this.scale_=e.scale,this.scaleArray_=LN(e.scale),this.displacement_=e.displacement,this.declutterMode_=e.declutterMode}clone(){const e=this.getScale();return new YK({opacity:this.getOpacity(),scale:Array.isArray(e)?e.slice():e,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 _D()}getImage(e){return _D()}getHitDetectionImage(){return _D()}getPixelRatio(e){return 1}getImageState(){return _D()}getImageSize(){return _D()}getOrigin(){return _D()}getSize(){return _D()}setDisplacement(e){this.displacement_=e}setOpacity(e){this.opacity_=e}setRotateWithView(e){this.rotateWithView_=e}setRotation(e){this.rotation_=e}setScale(e){this.scale_=e,this.scaleArray_=LN(e)}listenImageChange(e){_D()}load(){_D()}unlistenImageChange(e){_D()}ready(){return Promise.resolve()}}const KK=YK,ZK={name:"rgb",min:[0,0,0],max:[255,255,255],channel:["red","green","blue"],alias:["RGB"]};var $K={name:"xyz",min:[0,0,0],channel:["X","Y","Z"],alias:["XYZ","ciexyz","cie1931"],whitepoint:{2:{A:[109.85,100,35.585],C:[98.074,100,118.232],D50:[96.422,100,82.521],D55:[95.682,100,92.149],D65:[95.045592705167,100,108.9057750759878],D75:[94.972,100,122.638],F2:[99.187,100,67.395],F7:[95.044,100,108.755],F11:[100.966,100,64.37],E:[100,100,100]},10:{A:[111.144,100,35.2],C:[97.285,100,116.145],D50:[96.72,100,81.427],D55:[95.799,100,90.926],D65:[94.811,100,107.304],D75:[94.416,100,120.641],F2:[103.28,100,69.026],F7:[95.792,100,107.687],F11:[103.866,100,65.627],E:[100,100,100]}}};$K.max=$K.whitepoint[2].D65,$K.rgb=function(e,t){t=t||$K.whitepoint[2].E;var n,r,i,o=e[0]/t[0],s=e[1]/t[1],a=e[2]/t[2];return r=-.96924363628087*o+1.87596750150772*s+.041555057407175*a,i=.055630079696993*o+-.20397695888897*s+1.056971514242878*a,n=(n=3.240969941904521*o+-1.537383177570093*s+-.498610760293*a)>.0031308?1.055*Math.pow(n,1/2.4)-.055:n*=12.92,r=r>.0031308?1.055*Math.pow(r,1/2.4)-.055:r*=12.92,i=i>.0031308?1.055*Math.pow(i,1/2.4)-.055:i*=12.92,[255*(n=Math.min(Math.max(0,n),1)),255*(r=Math.min(Math.max(0,r),1)),255*(i=Math.min(Math.max(0,i),1))]},ZK.xyz=function(e,t){var n=e[0]/255,r=e[1]/255,i=e[2]/255,o=.21263900587151*(n=n>.04045?Math.pow((n+.055)/1.055,2.4):n/12.92)+.71516867876775*(r=r>.04045?Math.pow((r+.055)/1.055,2.4):r/12.92)+.072192315360733*(i=i>.04045?Math.pow((i+.055)/1.055,2.4):i/12.92),s=.019330818715591*n+.11919477979462*r+.95053215224966*i;return[(.41239079926595*n+.35758433938387*r+.18048078840183*i)*(t=t||$K.whitepoint[2].E)[0],o*t[1],s*t[2]]};const JK=$K,QK={name:"luv",min:[0,-134,-140],max:[100,224,122],channel:["lightness","u","v"],alias:["LUV","cieluv","cie1976"],xyz:function(e,t,n){var r,i,o,s,a,l,c,u,d;if(o=e[0],s=e[1],a=e[2],0===o)return[0,0,0];return t=t||"D65",n=n||2,r=s/(13*o)+4*(c=JK.whitepoint[n][t][0])/(c+15*(u=JK.whitepoint[n][t][1])+3*(d=JK.whitepoint[n][t][2]))||0,i=a/(13*o)+9*u/(c+15*u+3*d)||0,[9*(l=o>8?u*Math.pow((o+16)/116,3):u*o*.0011070564598794539)*r/(4*i)||0,l,l*(12-3*r-20*i)/(4*i)||0]}};JK.luv=function(e,t,n){var r,i,o,s,a,l,c,u,d,h,p;t=t||"D65",n=n||2,h=4*(c=JK.whitepoint[n][t][0])/(c+15*(u=JK.whitepoint[n][t][1])+3*(d=JK.whitepoint[n][t][2])),p=9*u/(c+15*u+3*d),r=4*(s=e[0])/(s+15*(a=e[1])+3*(l=e[2]))||0,i=9*a/(s+15*a+3*l)||0;var f=a/u;return[o=f<=.008856451679035631?903.2962962962961*f:116*Math.pow(f,1/3)-16,13*o*(r-h),13*o*(i-p)]};var eZ={name:"lchuv",channel:["lightness","chroma","hue"],alias:["LCHuv","cielchuv"],min:[0,0,0],max:[100,100,360],luv:function(e){var t,n=e[0],r=e[1];return t=e[2]/360*2*Math.PI,[n,r*Math.cos(t),r*Math.sin(t)]},xyz:function(e){return QK.xyz(eZ.luv(e))}};const tZ=eZ;QK.lchuv=function(e){var t=e[0],n=e[1],r=e[2],i=Math.sqrt(n*n+r*r),o=360*Math.atan2(r,n)/2/Math.PI;return o<0&&(o+=360),[t,i,o]},JK.lchuv=function(e){return QK.lchuv(JK.luv(e))};const nZ={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]},rZ=function(e){var t,n,r=[],i=1;if("number"===typeof e)return{space:"rgb",values:[e>>>16,(65280&e)>>>8,255&e],alpha:1};if("number"===typeof e)return{space:"rgb",values:[e>>>16,(65280&e)>>>8,255&e],alpha:1};if(e=String(e).toLowerCase(),nZ[e])r=nZ[e].slice(),n="rgb";else if("transparent"===e)i=0,n="rgb",r=[0,0,0];else if("#"===e[0]){var o=e.slice(1),s=o.length;i=1,s<=4?(r=[parseInt(o[0]+o[0],16),parseInt(o[1]+o[1],16),parseInt(o[2]+o[2],16)],4===s&&(i=parseInt(o[3]+o[3],16)/255)):(r=[parseInt(o[0]+o[1],16),parseInt(o[2]+o[3],16),parseInt(o[4]+o[5],16)],8===s&&(i=parseInt(o[6]+o[7],16)/255)),r[0]||(r[0]=0),r[1]||(r[1]=0),r[2]||(r[2]=0),n="rgb"}else if(t=/^((?:rgba?|hs[lvb]a?|hwba?|cmyk?|xy[zy]|gray|lab|lchu?v?|[ly]uv|lms|oklch|oklab|color))\s*\(([^\)]*)\)/.exec(e)){var a=t[1],l="cmyk"===(n=a.replace(/a$/,""))?4:"gray"===n?1:3;r=t[2].trim().split(/\s*[,\/]\s*|\s+/),"color"===n&&(n=r.shift()),r=r.map((function(e,t){if("%"===e[e.length-1])return e=parseFloat(e)/100,3===t?e:"rgb"===n?255*e:"h"===n[0]?100*e:"l"!==n[0]||t?"lab"===n?125*e:"lch"===n?t<2?150*e:360*e:"o"!==n[0]||t?"oklab"===n?.4*e:"oklch"===n?t<2?.4*e:360*e:e:e:100*e;if("h"===n[t]||2===t&&"h"===n[n.length-1]){if(void 0!==iZ[e])return iZ[e];if(e.endsWith("deg"))return parseFloat(e);if(e.endsWith("turn"))return 360*parseFloat(e);if(e.endsWith("grad"))return 360*parseFloat(e)/400;if(e.endsWith("rad"))return 180*parseFloat(e)/Math.PI}return"none"===e?0:parseFloat(e)})),i=r.length>l?r.pop():1}else if(/[0-9](?:\s|\/|,)/.test(e)){var c;r=e.match(/([0-9]+)/g).map((function(e){return parseFloat(e)})),n=(null===(c=e.match(/([a-z])/gi))||void 0===c||null===(c=c.join(""))||void 0===c?void 0:c.toLowerCase())||"rgb"}return{space:n,values:r,alpha:i}};var iZ={red:0,orange:60,yellow:120,green:180,blue:240,purple:300};const oZ={name:"hsl",min:[0,0,0],max:[360,100,100],channel:["hue","saturation","lightness"],alias:["HSL"],rgb:function(e){var t,n,r,i,o,s=e[0]/360,a=e[1]/100,l=e[2]/100,c=0;if(0===a)return[o=255*l,o,o];for(t=2*l-(n=l<.5?l*(1+a):l+a-l*a),i=[0,0,0];c<3;)(r=s+1/3*-(c-1))<0?r++:r>1&&r--,o=6*r<1?t+6*(n-t)*r:2*r<1?n:3*r<2?t+(n-t)*(2/3-r)*6:t,i[c++]=255*o;return i}};ZK.hsl=function(e){var t,n,r=e[0]/255,i=e[1]/255,o=e[2]/255,s=Math.min(r,i,o),a=Math.max(r,i,o),l=a-s;return a===s?t=0:r===a?t=(i-o)/l:i===a?t=2+(o-r)/l:o===a&&(t=4+(r-i)/l),(t=Math.min(60*t,360))<0&&(t+=360),n=(s+a)/2,[t,100*(a===s?0:n<=.5?l/(a+s):l/(2-a-s)),100*n]};const sZ=[NaN,NaN,NaN,0];const aZ=1024,lZ={};let cZ=0;function uZ(e){if(4===e.length)return e;const t=e.slice();return t[3]=1,t}function dZ(e){const t=JK.lchuv(ZK.xyz(e));return t[3]=e[3],t}function hZ(e){if("none"===e)return sZ;if(lZ.hasOwnProperty(e))return lZ[e];if(cZ>=aZ){let e=0;for(const t in lZ)0===(3&e++)&&(delete lZ[t],--cZ)}const t=function(e){var t;Array.isArray(e)&&e.raw&&(e=String.raw(...arguments)),e instanceof Number&&(e=+e);var n=rZ(e);if(!n.space)return[];const r="h"===n.space[0]?oZ.min:ZK.min,i="h"===n.space[0]?oZ.max:ZK.max;return(t=Array(3))[0]=Math.min(Math.max(n.values[0],r[0]),i[0]),t[1]=Math.min(Math.max(n.values[1],r[1]),i[1]),t[2]=Math.min(Math.max(n.values[2],r[2]),i[2]),"h"===n.space[0]&&(t=oZ.rgb(t)),t.push(Math.min(Math.max(n.alpha,0),1)),t}(e);if(4!==t.length)throw new Error('failed to parse "'+e+'" as color');for(const n of t)if(isNaN(n))throw new Error('failed to parse "'+e+'" as color');return fZ(t),lZ[e]=t,++cZ,t}function pZ(e){return Array.isArray(e)?e:hZ(e)}function fZ(e){return e[0]=VO(e[0]+.5|0,0,255),e[1]=VO(e[1]+.5|0,0,255),e[2]=VO(e[2]+.5|0,0,255),e[3]=VO(e[3],0,1),e}function gZ(e){let t=e[0];t!=(0|t)&&(t=t+.5|0);let n=e[1];n!=(0|n)&&(n=n+.5|0);let r=e[2];r!=(0|r)&&(r=r+.5|0);return"rgba("+t+","+n+","+r+","+(void 0===e[3]?1:Math.round(1e3*e[3])/1e3)+")"}class mZ{constructor(){this.cache_={},this.patternCache_={},this.cacheSize_=0,this.maxCacheSize_=32}clear(){this.cache_={},this.patternCache_={},this.cacheSize_=0}canExpireCache(){return this.cacheSize_>this.maxCacheSize_}expire(){if(this.canExpireCache()){let e=0;for(const t in this.cache_){const n=this.cache_[t];0!==(3&e++)||n.hasListener()||(delete this.cache_[t],delete this.patternCache_[t],--this.cacheSize_)}}}get(e,t,n){const r=yZ(e,t,n);return r in this.cache_?this.cache_[r]:null}getPattern(e,t,n){const r=yZ(e,t,n);return r in this.patternCache_?this.patternCache_[r]:null}set(e,t,n,r,i){const o=yZ(e,t,n),s=o in this.cache_;this.cache_[o]=r,i&&(r.getImageState()===HD.IDLE&&r.load(),r.getImageState()===HD.LOADING?r.ready().then((()=>{this.patternCache_[o]=VD().createPattern(r.getImage(1),"repeat")})):this.patternCache_[o]=VD().createPattern(r.getImage(1),"repeat")),s||++this.cacheSize_}setSize(e){this.maxCacheSize_=e,this.expire()}}function yZ(e,t,n){return t+":"+e+":"+(n?pZ(n):"null")}const vZ=new mZ;let _Z=null;class bZ extends pD{constructor(e,t,n,r,i){super(),this.hitDetectionImage_=null,this.image_=e,this.crossOrigin_=n,this.canvas_={},this.color_=i,this.imageState_=void 0===r?HD.IDLE:r,this.size_=e&&e.width&&e.height?[e.width,e.height]:null,this.src_=t,this.tainted_,this.ready_=null}initializeImage_(){this.image_=new Image,null!==this.crossOrigin_&&(this.image_.crossOrigin=this.crossOrigin_)}isTainted_(){if(void 0===this.tainted_&&this.imageState_===HD.LOADED){_Z||(_Z=ND(1,1,void 0,{willReadFrequently:!0})),_Z.drawImage(this.image_,0,0);try{_Z.getImageData(0,0,1,1),this.tainted_=!1}catch(e){_Z=null,this.tainted_=!0}}return!0===this.tainted_}dispatchChangeEvent_(){this.dispatchEvent(BR)}handleImageError_(){this.imageState_=HD.ERROR,this.dispatchChangeEvent_()}handleImageLoad_(){this.imageState_=HD.LOADED,this.size_=[this.image_.width,this.image_.height],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],t=this.size_[1],n=ND(e,t);n.fillRect(0,0,e,t),this.hitDetectionImage_=n.canvas}else this.hitDetectionImage_=this.image_;return this.hitDetectionImage_}getSize(){return this.size_}getSrc(){return this.src_}load(){if(this.imageState_===HD.IDLE){this.image_||this.initializeImage_(),this.imageState_=HD.LOADING;try{void 0!==this.src_&&(this.image_.src=this.src_)}catch(e){this.handleImageError_()}this.image_ instanceof HTMLImageElement&&KD(this.image_,this.src_).then((e=>{this.image_=e,this.handleImageLoad_()})).catch(this.handleImageError_.bind(this))}}replaceColor_(e){if(!this.color_||this.canvas_[e]||this.imageState_!==HD.LOADED)return;const t=this.image_,n=document.createElement("canvas");n.width=Math.ceil(t.width*e),n.height=Math.ceil(t.height*e);const r=n.getContext("2d");r.scale(e,e),r.drawImage(t,0,0),r.globalCompositeOperation="multiply",r.fillStyle=function(e){return"string"===typeof e?e:gZ(e)}(this.color_),r.fillRect(0,0,n.width/e,n.height/e),r.globalCompositeOperation="destination-in",r.drawImage(t,0,0),this.canvas_[e]=n}ready(){return this.ready_||(this.ready_=new Promise((e=>{if(this.imageState_===HD.LOADED||this.imageState_===HD.ERROR)e();else{const t=()=>{this.imageState_!==HD.LOADED&&this.imageState_!==HD.ERROR||(this.removeEventListener(BR,t),e())};this.addEventListener(BR,t)}}))),this.ready_}}function xZ(e,t,n,r,i,o){let s=void 0===t?void 0:vZ.get(t,n,i);return s||(s=new bZ(e,e&&"src"in e?e.src||void 0:t,n,r,i),vZ.set(t,n,i,s,o)),o&&s&&!vZ.getPattern(t,n,i)&&vZ.set(t,n,i,s,o),s}function SZ(e){return e?Array.isArray(e)?gZ(e):"object"===typeof e&&"src"in e?function(e){if(!e.offset||!e.size)return vZ.getPattern(e.src,"anonymous",e.color);const t=e.src+":"+e.offset,n=vZ.getPattern(t,void 0,e.color);if(n)return n;const r=vZ.get(e.src,"anonymous",null);if(r.getImageState()!==HD.LOADED)return null;const i=ND(e.size[0],e.size[1]);return i.drawImage(r.getImage(1),e.offset[0],e.offset[1],e.size[0],e.size[1],0,0,e.size[0],e.size[1]),xZ(i.canvas,t,void 0,HD.LOADED,e.color,!0),vZ.getPattern(t,void 0,e.color)}(e):e:null}const wZ="ol-hidden",EZ="ol-unselectable",PZ="ol-control",CZ="ol-collapsed",AZ=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"),kZ=["style","variant","weight","size","lineHeight","family"],jZ=function(e){const t=e.match(AZ);if(!t)return null;const n={lineHeight:"normal",size:"1.2em",style:"normal",weight:"normal",variant:"normal"};for(let r=0,i=kZ.length;r<i;++r){const e=t[r+1];void 0!==e&&(n[kZ[r]]=e)}return n.families=n.family.split(/,\s?/),n},IZ="10px sans-serif",GZ="#000",TZ="round",MZ=[],OZ="round",RZ="#000",DZ="center",NZ="middle",LZ=[0,0,0,0],VZ=new SN;let FZ,zZ=null;const BZ={},UZ=function(){const e="32px ",t=["monospace","serif"],n=t.length,r="wmytzilWMYTZIL@#/&?$%10\uf013";let i,o;function s(i,s,a){let l=!0;for(let c=0;c<n;++c){const n=t[c];if(o=qZ(i+" "+s+" "+e+n,r),a!=n){const t=qZ(i+" "+s+" "+e+a+","+n,r);l=l&&t!=o}}return!!l}function a(){let e=!0;const t=VZ.getKeys();for(let n=0,r=t.length;n<r;++n){const r=t[n];if(VZ.get(r)<100){const[t,n,i]=r.split("\n");s(t,n,i)?(dD(BZ),zZ=null,FZ=void 0,VZ.set(r,100)):(VZ.set(r,VZ.get(r)+1,!0),e=!1)}}e&&(clearInterval(i),i=void 0)}return function(e){const t=jZ(e);if(!t)return;const n=t.families;for(let r=0,o=n.length;r<o;++r){const e=n[r],o=t.style+"\n"+t.weight+"\n"+e;void 0===VZ.get(o)&&(VZ.set(o,100,!0),s(t.style,t.weight,e)||(VZ.set(o,0,!0),void 0===i&&(i=setInterval(a,32))))}}}(),WZ=function(){let e;return function(t){let n=BZ[t];if(void 0==n){if(MD){const e=jZ(t),r=HZ(t,"\u017dg");n=(isNaN(Number(e.lineHeight))?1.2:Number(e.lineHeight))*(r.actualBoundingBoxAscent+r.actualBoundingBoxDescent)}else e||(e=document.createElement("div"),e.innerHTML="M",e.style.minHeight="0",e.style.maxHeight="none",e.style.height="auto",e.style.padding="0",e.style.border="none",e.style.position="absolute",e.style.display="block",e.style.left="-99999px"),e.style.font=t,document.body.appendChild(e),n=e.offsetHeight,document.body.removeChild(e);BZ[t]=n}return n}}();function HZ(e,t){return zZ||(zZ=ND(1,1)),e!=FZ&&(zZ.font=e,FZ=zZ.font),zZ.measureText(t)}function qZ(e,t){return HZ(e,t).width}function XZ(e,t,n){if(t in n)return n[t];const r=t.split("\n").reduce(((t,n)=>Math.max(t,qZ(e,n))),0);return n[t]=r,r}function YZ(e,t,n,r,i,o,s,a,l,c,u){e.save(),1!==n&&(void 0===e.globalAlpha?e.globalAlpha=e=>e.globalAlpha*=n:e.globalAlpha*=n),t&&e.transform.apply(e,t),r.contextInstructions?(e.translate(l,c),e.scale(u[0],u[1]),function(e,t){const n=e.contextInstructions;for(let r=0,i=n.length;r<i;r+=2)Array.isArray(n[r+1])?t[n[r]].apply(t,n[r+1]):t[n[r]]=n[r+1]}(r,e)):u[0]<0||u[1]<0?(e.translate(l,c),e.scale(u[0],u[1]),e.drawImage(r,i,o,s,a,0,0,s,a)):e.drawImage(r,i,o,s,a,l,c,s*u[0],a*u[1]),e.restore()}class KZ extends KK{constructor(e){super({opacity:1,rotateWithView:void 0!==e.rotateWithView&&e.rotateWithView,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],declutterMode:e.declutterMode}),this.canvases_,this.hitDetectionCanvas_=null,this.fill_=void 0!==e.fill?e.fill:null,this.origin_=[0,0],this.points_=e.points,this.radius=e.radius,this.radius2_=e.radius2,this.angle_=void 0!==e.angle?e.angle:0,this.stroke_=void 0!==e.stroke?e.stroke:null,this.size_,this.renderOptions_,this.imageState_=this.fill_&&this.fill_.loading()?HD.LOADING:HD.LOADED,this.imageState_===HD.LOADING&&this.ready().then((()=>this.imageState_=HD.LOADED)),this.render()}clone(){const e=this.getScale(),t=new KZ({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(e)?e.slice():e,displacement:this.getDisplacement().slice(),declutterMode:this.getDeclutterMode()});return t.setOpacity(this.getOpacity()),t}getAnchor(){const e=this.size_,t=this.getDisplacement(),n=this.getScaleArray();return[e[0]/2-t[0]/n[0],e[1]/2+t[1]/n[1]]}getAngle(){return this.angle_}getFill(){return this.fill_}setFill(e){this.fill_=e,this.render()}getHitDetectionImage(){return this.hitDetectionCanvas_||(this.hitDetectionCanvas_=this.createHitDetectionCanvas_(this.renderOptions_)),this.hitDetectionCanvas_}getImage(e){let t=this.canvases_[e];if(!t){const n=this.renderOptions_,r=ND(n.size*e,n.size*e);this.draw_(n,r,e),t=r.canvas,this.canvases_[e]=t}return t}getPixelRatio(e){return e}getImageSize(){return this.size_}getImageState(){return this.imageState_}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(e){this.stroke_=e,this.render()}listenImageChange(e){}load(){}unlistenImageChange(e){}calculateLineJoinSize_(e,t,n){if(0===t||this.points_===1/0||"bevel"!==e&&"miter"!==e)return t;let r=this.radius,i=void 0===this.radius2_?r:this.radius2_;if(r<i){const e=r;r=i,i=e}const o=void 0===this.radius2_?this.points_:2*this.points_,s=2*Math.PI/o,a=i*Math.sin(s),l=r-Math.sqrt(i*i-a*a),c=Math.sqrt(a*a+l*l),u=c/a;if("miter"===e&&u<=n)return u*t;const d=t/2/u,h=t/2*(l/c),p=Math.sqrt((r+d)*(r+d)+h*h)-r;if(void 0===this.radius2_||"bevel"===e)return 2*p;const f=r*Math.sin(s),g=i-Math.sqrt(r*r-f*f),m=Math.sqrt(f*f+g*g)/f;if(m<=n){const e=m*t/2-i-r;return 2*Math.max(p,e)}return 2*p}createRenderOptions(){let e,t=TZ,n=OZ,r=0,i=null,o=0,s=0;var a,l,c,u,d,h;this.stroke_&&(e=SZ(null!==(a=this.stroke_.getColor())&&void 0!==a?a:RZ),s=null!==(l=this.stroke_.getWidth())&&void 0!==l?l:1,i=this.stroke_.getLineDash(),o=null!==(c=this.stroke_.getLineDashOffset())&&void 0!==c?c:0,n=null!==(u=this.stroke_.getLineJoin())&&void 0!==u?u:OZ,t=null!==(d=this.stroke_.getLineCap())&&void 0!==d?d:TZ,r=null!==(h=this.stroke_.getMiterLimit())&&void 0!==h?h:10);const p=this.calculateLineJoinSize_(n,s,r),f=Math.max(this.radius,this.radius2_||0);return{strokeStyle:e,strokeWidth:s,size:Math.ceil(2*f+p),lineCap:t,lineDash:i,lineDashOffset:o,lineJoin:n,miterLimit:r}}render(){this.renderOptions_=this.createRenderOptions();const e=this.renderOptions_.size;this.canvases_={},this.hitDetectionCanvas_=null,this.size_=[e,e]}draw_(e,t,n){if(t.scale(n,n),t.translate(e.size/2,e.size/2),this.createPath_(t),this.fill_){let e=this.fill_.getColor();null===e&&(e=GZ),t.fillStyle=SZ(e),t.fill()}e.strokeStyle&&(t.strokeStyle=e.strokeStyle,t.lineWidth=e.strokeWidth,e.lineDash&&(t.setLineDash(e.lineDash),t.lineDashOffset=e.lineDashOffset),t.lineCap=e.lineCap,t.lineJoin=e.lineJoin,t.miterLimit=e.miterLimit,t.stroke())}createHitDetectionCanvas_(e){let t;if(this.fill_){let n=this.fill_.getColor(),r=0;"string"===typeof n&&(n=pZ(n)),null===n?r=1:Array.isArray(n)&&(r=4===n.length?n[3]:1),0===r&&(t=ND(e.size,e.size),this.drawHitDetectionCanvas_(e,t))}return t?t.canvas:this.getImage(1)}createPath_(e){let t=this.points_;const n=this.radius;if(t===1/0)e.arc(0,0,n,0,2*Math.PI);else{const r=void 0===this.radius2_?n:this.radius2_;void 0!==this.radius2_&&(t*=2);const i=this.angle_-Math.PI/2,o=2*Math.PI/t;for(let s=0;s<t;s++){const t=i+s*o,a=s%2===0?n:r;e.lineTo(a*Math.cos(t),a*Math.sin(t))}e.closePath()}}drawHitDetectionCanvas_(e,t){t.translate(e.size/2,e.size/2),this.createPath_(t),t.fillStyle=GZ,t.fill(),e.strokeStyle&&(t.strokeStyle=e.strokeStyle,t.lineWidth=e.strokeWidth,e.lineDash&&(t.setLineDash(e.lineDash),t.lineDashOffset=e.lineDashOffset),t.lineJoin=e.lineJoin,t.miterLimit=e.miterLimit,t.stroke())}ready(){return this.fill_?this.fill_.ready():Promise.resolve()}}const ZZ=KZ;class $Z extends ZZ{constructor(e){super({points:1/0,fill:(e=e||{radius:5}).fill,radius:e.radius,stroke:e.stroke,scale:void 0!==e.scale?e.scale:1,rotation:void 0!==e.rotation?e.rotation:0,rotateWithView:void 0!==e.rotateWithView&&e.rotateWithView,displacement:void 0!==e.displacement?e.displacement:[0,0],declutterMode:e.declutterMode})}clone(){const e=this.getScale(),t=new $Z({fill:this.getFill()?this.getFill().clone():void 0,stroke:this.getStroke()?this.getStroke().clone():void 0,radius:this.getRadius(),scale:Array.isArray(e)?e.slice():e,rotation:this.getRotation(),rotateWithView:this.getRotateWithView(),displacement:this.getDisplacement().slice(),declutterMode:this.getDeclutterMode()});return t.setOpacity(this.getOpacity()),t}setRadius(e){this.radius=e,this.render()}}const JZ=$Z;class QZ{constructor(e){e=e||{},this.patternImage_=null,this.color_=null,void 0!==e.color&&this.setColor(e.color)}clone(){const e=this.getColor();return new QZ({color:Array.isArray(e)?e.slice():e||void 0})}getColor(){return this.color_}setColor(e){if(null!==e&&"object"===typeof e&&"src"in e){const t=xZ(null,e.src,"anonymous",void 0,e.offset?null:e.color?e.color:null,!(e.offset&&e.size));t.ready().then((()=>{this.patternImage_=null})),t.getImageState()===HD.IDLE&&t.load(),t.getImageState()===HD.LOADING&&(this.patternImage_=t)}this.color_=e}loading(){return!!this.patternImage_}ready(){return this.patternImage_?this.patternImage_.ready():Promise.resolve()}}const e$=QZ;class t${constructor(e){e=e||{},this.color_=void 0!==e.color?e.color:null,this.lineCap_=e.lineCap,this.lineDash_=void 0!==e.lineDash?e.lineDash:null,this.lineDashOffset_=e.lineDashOffset,this.lineJoin_=e.lineJoin,this.miterLimit_=e.miterLimit,this.width_=e.width}clone(){const e=this.getColor();return new t$({color:Array.isArray(e)?e.slice():e||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(e){this.color_=e}setLineCap(e){this.lineCap_=e}setLineDash(e){this.lineDash_=e}setLineDashOffset(e){this.lineDashOffset_=e}setLineJoin(e){this.lineJoin_=e}setMiterLimit(e){this.miterLimit_=e}setWidth(e){this.width_=e}}const n$=t$;class r${constructor(e){e=e||{},this.geometry_=null,this.geometryFunction_=a$,void 0!==e.geometry&&this.setGeometry(e.geometry),this.fill_=void 0!==e.fill?e.fill:null,this.image_=void 0!==e.image?e.image:null,this.renderer_=void 0!==e.renderer?e.renderer:null,this.hitDetectionRenderer_=void 0!==e.hitDetectionRenderer?e.hitDetectionRenderer:null,this.stroke_=void 0!==e.stroke?e.stroke:null,this.text_=void 0!==e.text?e.text:null,this.zIndex_=e.zIndex}clone(){var e,t;let n=this.getGeometry();return n&&"object"===typeof n&&(n=n.clone()),new r$({geometry:null!==(e=n)&&void 0!==e?e:void 0,fill:this.getFill()?this.getFill().clone():void 0,image:this.getImage()?this.getImage().clone():void 0,renderer:null!==(t=this.getRenderer())&&void 0!==t?t:void 0,stroke:this.getStroke()?this.getStroke().clone():void 0,text:this.getText()?this.getText().clone():void 0,zIndex:this.getZIndex()})}getRenderer(){return this.renderer_}setRenderer(e){this.renderer_=e}setHitDetectionRenderer(e){this.hitDetectionRenderer_=e}getHitDetectionRenderer(){return this.hitDetectionRenderer_}getGeometry(){return this.geometry_}getGeometryFunction(){return this.geometryFunction_}getFill(){return this.fill_}setFill(e){this.fill_=e}getImage(){return this.image_}setImage(e){this.image_=e}getStroke(){return this.stroke_}setStroke(e){this.stroke_=e}getText(){return this.text_}setText(e){this.text_=e}getZIndex(){return this.zIndex_}setGeometry(e){"function"===typeof e?this.geometryFunction_=e:"string"===typeof e?this.geometryFunction_=function(t){return t.get(e)}:e?void 0!==e&&(this.geometryFunction_=function(){return e}):this.geometryFunction_=a$,this.geometry_=e}setZIndex(e){this.zIndex_=e}}let i$=null;function o$(e,t){if(!i$){const e=new e$({color:"rgba(255,255,255,0.4)"}),t=new n$({color:"#3399CC",width:1.25});i$=[new r$({image:new JZ({fill:e,stroke:t,radius:5}),fill:e,stroke:t})]}return i$}function s$(){const e={},t=[255,255,255,1],n=[0,153,255,1];return e.Polygon=[new r$({fill:new e$({color:[255,255,255,.5]})})],e.MultiPolygon=e.Polygon,e.LineString=[new r$({stroke:new n$({color:t,width:5})}),new r$({stroke:new n$({color:n,width:3})})],e.MultiLineString=e.LineString,e.Circle=e.Polygon.concat(e.LineString),e.Point=[new r$({image:new JZ({radius:6,fill:new e$({color:n}),stroke:new n$({color:t,width:1.5})}),zIndex:1/0})],e.MultiPoint=e.Point,e.GeometryCollection=e.Polygon.concat(e.LineString,e.Point),e}function a$(e){return e.getGeometry()}const l$=r$;function c$(e,t,n,r){return void 0!==n&&void 0!==r?[n/e,r/t]:void 0!==n?n/e:void 0!==r?r/t:1}class u$ extends KK{constructor(e){const t=void 0!==(e=e||{}).opacity?e.opacity:1,n=void 0!==e.rotation?e.rotation:0,r=void 0!==e.scale?e.scale:1,i=void 0!==e.rotateWithView&&e.rotateWithView;super({opacity:t,rotation:n,scale:r,displacement:void 0!==e.displacement?e.displacement:[0,0],rotateWithView:i,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;let s,a=e.src;if(lN(!(void 0!==a&&o),"`image` and `src` cannot be provided at the same time"),void 0!==a&&0!==a.length||!o||(a=o.src||xD(o)),lN(void 0!==a&&a.length>0,"A defined and non-empty `src` or `image` must be provided"),lN(!((void 0!==e.width||void 0!==e.height)&&void 0!==e.scale),"`width` or `height` cannot be provided together with `scale`"),void 0!==e.src?s=HD.IDLE:void 0!==o&&(s="complete"in o?o.complete?o.src?HD.LOADED:HD.IDLE:HD.LOADING:HD.LOADED),this.color_=void 0!==e.color?pZ(e.color):null,this.iconImage_=xZ(o,a,this.crossOrigin_,s,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.initialOptions_,void 0!==e.width||void 0!==e.height){let t,n;if(e.size)[t,n]=e.size;else{const r=this.getImage(1);if(r.width&&r.height)t=r.width,n=r.height;else if(r instanceof HTMLImageElement){this.initialOptions_=e;const t=()=>{if(this.unlistenImageChange(t),!this.initialOptions_)return;const n=this.iconImage_.getSize();this.setScale(c$(n[0],n[1],e.width,e.height))};return void this.listenImageChange(t)}}void 0!==t&&this.setScale(c$(t,n,e.width,e.height))}}clone(){let e,t,n;return this.initialOptions_?(t=this.initialOptions_.width,n=this.initialOptions_.height):(e=this.getScale(),e=Array.isArray(e)?e.slice():e),new u$({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_,offset:this.offset_.slice(),offsetOrigin:this.offsetOrigin_,opacity:this.getOpacity(),rotateWithView:this.getRotateWithView(),rotation:this.getRotation(),scale:e,width:t,height:n,size:null!==this.size_?this.size_.slice():void 0,src:this.getSrc(),displacement:this.getDisplacement().slice(),declutterMode:this.getDeclutterMode()})}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 t=this.getDisplacement(),n=this.getScaleArray();return[e[0]-t[0]/n[0],e[1]+t[1]/n[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 t=this.getSize(),n=this.iconImage_.getSize();if(!t||!n)return null;e=e.slice(),"top-right"!=this.offsetOrigin_&&"bottom-right"!=this.offsetOrigin_||(e[0]=n[0]-t[0]-e[0]),"bottom-left"!=this.offsetOrigin_&&"bottom-right"!=this.offsetOrigin_||(e[1]=n[1]-t[1]-e[1])}return this.origin_=e,this.origin_}getSrc(){return this.iconImage_.getSrc()}getSize(){return this.size_?this.size_:this.iconImage_.getSize()}getWidth(){const e=this.getScaleArray();return this.size_?this.size_[0]*e[0]:this.iconImage_.getImageState()==HD.LOADED?this.iconImage_.getSize()[0]*e[0]:void 0}getHeight(){const e=this.getScaleArray();return this.size_?this.size_[1]*e[1]:this.iconImage_.getImageState()==HD.LOADED?this.iconImage_.getSize()[1]*e[1]:void 0}setScale(e){delete this.initialOptions_,super.setScale(e)}listenImageChange(e){this.iconImage_.addEventListener(BR,e)}load(){this.iconImage_.load()}unlistenImageChange(e){this.iconImage_.removeEventListener(BR,e)}ready(){return this.iconImage_.ready()}}const d$=u$;class h${constructor(e){e=e||{},this.font_=e.font,this.rotation_=e.rotation,this.rotateWithView_=e.rotateWithView,this.scale_=e.scale,this.scaleArray_=LN(void 0!==e.scale?e.scale:1),this.text_=e.text,this.textAlign_=e.textAlign,this.justify_=e.justify,this.repeat_=e.repeat,this.textBaseline_=e.textBaseline,this.fill_=void 0!==e.fill?e.fill:new e$({color:"#333"}),this.maxAngle_=void 0!==e.maxAngle?e.maxAngle:Math.PI/4,this.placement_=void 0!==e.placement?e.placement:"point",this.overflow_=!!e.overflow,this.stroke_=void 0!==e.stroke?e.stroke:null,this.offsetX_=void 0!==e.offsetX?e.offsetX:0,this.offsetY_=void 0!==e.offsetY?e.offsetY:0,this.backgroundFill_=e.backgroundFill?e.backgroundFill:null,this.backgroundStroke_=e.backgroundStroke?e.backgroundStroke:null,this.padding_=void 0===e.padding?null:e.padding,this.declutterMode_=e.declutterMode}clone(){const e=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(e)?e.slice():e,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,declutterMode:this.getDeclutterMode()})}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_}getDeclutterMode(){return this.declutterMode_}setOverflow(e){this.overflow_=e}setFont(e){this.font_=e}setMaxAngle(e){this.maxAngle_=e}setOffsetX(e){this.offsetX_=e}setOffsetY(e){this.offsetY_=e}setPlacement(e){this.placement_=e}setRepeat(e){this.repeat_=e}setRotateWithView(e){this.rotateWithView_=e}setFill(e){this.fill_=e}setRotation(e){this.rotation_=e}setScale(e){this.scale_=e,this.scaleArray_=LN(void 0!==e?e:1)}setStroke(e){this.stroke_=e}setText(e){this.text_=e}setTextAlign(e){this.textAlign_=e}setJustify(e){this.justify_=e}setTextBaseline(e){this.textBaseline_=e}setBackgroundFill(e){this.backgroundFill_=e}setBackgroundStroke(e){this.backgroundStroke_=e}setPadding(e){this.padding_=e}}const p$=h$;let f$=0;const g$=1<<f$++,m$=1<<f$++,y$=1<<f$++,v$=1<<f$++,_$=1<<f$++,b$=1<<f$++,x$=Math.pow(2,6)-1,S$={[g$]:"boolean",[m$]:"number",[y$]:"string",[v$]:"color",[_$]:"number[]",[b$]:"size"},w$=Object.keys(S$).map(Number).sort(eD);function E$(e){const t=[];for(const n of w$)P$(e,n)&&t.push(S$[n]);return 0===t.length?"untyped":t.length<3?t.join(" or "):t.slice(0,-1).join(", ")+", or "+t[t.length-1]}function P$(e,t){return(e&t)===t}function C$(e,t){return e===t}class A${constructor(e,t){if(!function(e){return e in S$}(e))throw new Error("literal expressions must have a specific type, got ".concat(E$(e)));this.type=e,this.value=t}}class k${constructor(e,t){this.type=e,this.operator=t;for(var n=arguments.length,r=new Array(n>2?n-2:0),i=2;i<n;i++)r[i-2]=arguments[i];this.args=r}}function j$(){return{variables:new Set,properties:new Set,featureId:!1,geometryType:!1}}function I$(e,t,n){switch(typeof e){case"boolean":if(C$(t,y$))return new A$(y$,e?"true":"false");if(!P$(t,g$))throw new Error("got a boolean, but expected ".concat(E$(t)));return new A$(g$,e);case"number":if(C$(t,b$))return new A$(b$,LN(e));if(C$(t,g$))return new A$(g$,!!e);if(C$(t,y$))return new A$(y$,e.toString());if(!P$(t,m$))throw new Error("got a number, but expected ".concat(E$(t)));return new A$(m$,e);case"string":if(C$(t,v$))return new A$(v$,hZ(e));if(C$(t,g$))return new A$(g$,!!e);if(!P$(t,y$))throw new Error("got a string, but expected ".concat(E$(t)));return new A$(y$,e)}if(!Array.isArray(e))throw new Error("expression must be an array or a primitive value");if(0===e.length)throw new Error("empty expression");if("string"===typeof e[0])return function(e,t,n){const r=e[0],i=T$[r];if(!i)throw new Error("unknown operator: ".concat(r));return i(e,t,n)}(e,t,n);for(const r of e)if("number"!==typeof r)throw new Error("expected an array of numbers");if(C$(t,b$)){if(2!==e.length)throw new Error("expected an array of two values for a size, got ".concat(e.length));return new A$(b$,e)}if(C$(t,v$)){if(3===e.length)return new A$(v$,[...e,1]);if(4===e.length)return new A$(v$,e);throw new Error("expected an array of 3 or 4 values for a color, got ".concat(e.length))}if(!P$(t,_$))throw new Error("got an array of numbers, but expected ".concat(E$(t)));return new A$(_$,e)}const G$={Get:"get",Var:"var",Concat:"concat",GeometryType:"geometry-type",LineMetric:"line-metric",Any:"any",All:"all",Not:"!",Resolution:"resolution",Zoom:"zoom",Time:"time",Equal:"==",NotEqual:"!=",GreaterThan:">",GreaterThanOrEqualTo:">=",LessThan:"<",LessThanOrEqualTo:"<=",Multiply:"*",Divide:"/",Add:"+",Subtract:"-",Clamp:"clamp",Mod:"%",Pow:"^",Abs:"abs",Floor:"floor",Ceil:"ceil",Round:"round",Sin:"sin",Cos:"cos",Atan:"atan",Sqrt:"sqrt",Match:"match",Between:"between",Interpolate:"interpolate",Coalesce:"coalesce",Case:"case",In:"in",Number:"number",String:"string",Array:"array",Color:"color",Id:"id",Band:"band",Palette:"palette",ToString:"to-string",Has:"has"},T$={[G$.Get]:V$(R$(1,1/0),M$),[G$.Var]:V$(R$(1,1),(function(e,t,n){const r=e[1];if("string"!==typeof r)throw new Error("expected a string argument for var operation");return n.variables.add(r),[new A$(y$,r)]})),[G$.Has]:V$(R$(1,1/0),M$),[G$.Id]:V$((function(e,t,n){n.featureId=!0}),O$),[G$.Concat]:V$(R$(2,1/0),N$(y$)),[G$.GeometryType]:V$((function(e,t,n){n.geometryType=!0}),O$),[G$.LineMetric]:V$(O$),[G$.Resolution]:V$(O$),[G$.Zoom]:V$(O$),[G$.Time]:V$(O$),[G$.Any]:V$(R$(2,1/0),N$(g$)),[G$.All]:V$(R$(2,1/0),N$(g$)),[G$.Not]:V$(R$(1,1),N$(g$)),[G$.Equal]:V$(R$(2,2),N$(x$)),[G$.NotEqual]:V$(R$(2,2),N$(x$)),[G$.GreaterThan]:V$(R$(2,2),N$(m$)),[G$.GreaterThanOrEqualTo]:V$(R$(2,2),N$(m$)),[G$.LessThan]:V$(R$(2,2),N$(m$)),[G$.LessThanOrEqualTo]:V$(R$(2,2),N$(m$)),[G$.Multiply]:V$(R$(2,1/0),D$),[G$.Coalesce]:V$(R$(2,1/0),D$),[G$.Divide]:V$(R$(2,2),N$(m$)),[G$.Add]:V$(R$(2,1/0),N$(m$)),[G$.Subtract]:V$(R$(2,2),N$(m$)),[G$.Clamp]:V$(R$(3,3),N$(m$)),[G$.Mod]:V$(R$(2,2),N$(m$)),[G$.Pow]:V$(R$(2,2),N$(m$)),[G$.Abs]:V$(R$(1,1),N$(m$)),[G$.Floor]:V$(R$(1,1),N$(m$)),[G$.Ceil]:V$(R$(1,1),N$(m$)),[G$.Round]:V$(R$(1,1),N$(m$)),[G$.Sin]:V$(R$(1,1),N$(m$)),[G$.Cos]:V$(R$(1,1),N$(m$)),[G$.Atan]:V$(R$(1,2),N$(m$)),[G$.Sqrt]:V$(R$(1,1),N$(m$)),[G$.Match]:V$(R$(4,1/0),L$,(function(e,t,n){const r=e.length-1,i=y$|m$|g$,o=I$(e[1],i,n),s=I$(e[e.length-1],t,n),a=new Array(r-2);for(let c=0;c<r-2;c+=2){try{const t=I$(e[c+2],o.type,n);a[c]=t}catch(l){throw new Error("failed to parse argument ".concat(c+1," of match expression: ").concat(l.message))}try{const t=I$(e[c+3],s.type,n);a[c+1]=t}catch(l){throw new Error("failed to parse argument ".concat(c+2," of match expression: ").concat(l.message))}}return[o,...a,s]})),[G$.Between]:V$(R$(3,3),N$(m$)),[G$.Interpolate]:V$(R$(6,1/0),L$,(function(e,t,n){const r=e[1];let i;switch(r[0]){case"linear":i=1;break;case"exponential":const e=r[1];if("number"!==typeof e||e<=0)throw new Error("expected a number base for exponential interpolation"+", got ".concat(JSON.stringify(e)," instead"));i=e;break;default:throw new Error("invalid interpolation type: ".concat(JSON.stringify(r)))}const o=new A$(m$,i);let s;try{s=I$(e[2],m$,n)}catch(l){throw new Error("failed to parse argument 1 in interpolate expression: ".concat(l.message))}const a=new Array(e.length-3);for(let c=0;c<a.length;c+=2){try{const t=I$(e[c+3],m$,n);a[c]=t}catch(l){throw new Error("failed to parse argument ".concat(c+2," for interpolate expression: ").concat(l.message))}try{const r=I$(e[c+4],t,n);a[c+1]=r}catch(l){throw new Error("failed to parse argument ".concat(c+3," for interpolate expression: ").concat(l.message))}}return[o,s,...a]})),[G$.Case]:V$(R$(3,1/0),(function(e,t,n){const r=e[0],i=e.length-1;if(i%2===0)throw new Error("expected an odd number of arguments for ".concat(r,", got ").concat(i," instead"))}),(function(e,t,n){const r=I$(e[e.length-1],t,n),i=new Array(e.length-1);for(let s=0;s<i.length-1;s+=2){try{const t=I$(e[s+1],g$,n);i[s]=t}catch(o){throw new Error("failed to parse argument ".concat(s," of case expression: ").concat(o.message))}try{const t=I$(e[s+2],r.type,n);i[s+1]=t}catch(o){throw new Error("failed to parse argument ".concat(s+1," of case expression: ").concat(o.message))}}return i[i.length-1]=r,i})),[G$.In]:V$(R$(2,2),(function(e,t,n){let r,i=e[2];if(!Array.isArray(i))throw new Error('the second argument for the "in" operator must be an array');if("string"===typeof i[0]){if("literal"!==i[0])throw new Error('for the "in" operator, a string array should be wrapped in a "literal" operator to disambiguate from expressions');if(!Array.isArray(i[1]))throw new Error('failed to parse "in" expression: the literal operator must be followed by an array');i=i[1],r=y$}else r=m$;const o=new Array(i.length);for(let l=0;l<o.length;l++)try{const e=I$(i[l],r,n);o[l]=e}catch(a){throw new Error("failed to parse haystack item ".concat(l,' for "in" expression: ').concat(a.message))}const s=I$(e[1],r,n);return[s,...o]})),[G$.Number]:V$(R$(1,1/0),N$(x$)),[G$.String]:V$(R$(1,1/0),N$(x$)),[G$.Array]:V$(R$(1,1/0),N$(m$)),[G$.Color]:V$(R$(1,4),N$(m$)),[G$.Band]:V$(R$(1,3),N$(m$)),[G$.Palette]:V$(R$(2,2),(function(e,t,n){let r;try{r=I$(e[1],m$,n)}catch(s){throw new Error("failed to parse first argument in palette expression: ".concat(s.message))}const i=e[2];if(!Array.isArray(i))throw new Error("the second argument of palette must be an array");const o=new Array(i.length);for(let a=0;a<o.length;a++){let e;try{e=I$(i[a],v$,n)}catch(s){throw new Error("failed to parse color at index ".concat(a," in palette expression: ").concat(s.message))}if(!(e instanceof A$))throw new Error("the palette color at index ".concat(a," must be a literal value"));o[a]=e}return[r,...o]})),[G$.ToString]:V$(R$(1,1),N$(g$|m$|y$|v$))};function M$(e,t,n){const r=e.length-1,i=new Array(r);for(let o=0;o<r;++o){const t=e[o+1];switch(typeof t){case"number":i[o]=new A$(m$,t);break;case"string":i[o]=new A$(y$,t);break;default:throw new Error("expected a string key or numeric array index for a get operation, got ".concat(t))}0===o&&n.properties.add(String(t))}return i}function O$(e,t,n){const r=e[0];if(1!==e.length)throw new Error("expected no arguments for ".concat(r," operation"));return[]}function R$(e,t){return function(n,r,i){const o=n[0],s=n.length-1;if(e===t){if(s!==e){const t=1===e?"":"s";throw new Error("expected ".concat(e," argument").concat(t," for ").concat(o,", got ").concat(s))}}else if(s<e||s>t){const n=t===1/0?"".concat(e," or more"):"".concat(e," to ").concat(t);throw new Error("expected ".concat(n," arguments for ").concat(o,", got ").concat(s))}}}function D$(e,t,n){const r=e.length-1,i=new Array(r);for(let o=0;o<r;++o){const r=I$(e[o+1],t,n);i[o]=r}return i}function N$(e){return function(t,n,r){const i=t.length-1,o=new Array(i);for(let s=0;s<i;++s){const n=I$(t[s+1],e,r);o[s]=n}return o}}function L$(e,t,n){const r=e[0],i=e.length-1;if(i%2===1)throw new Error("expected an even number of arguments for operation ".concat(r,", got ").concat(i," instead"))}function V$(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return function(e,n,r){const i=e[0];let o;for(let s=0;s<t.length;s++){const i=t[s](e,n,r);if(s==t.length-1){if(!i)throw new Error("expected last argument validator to return the parsed args");o=i}}return new k$(n,i,...o)}}function F$(e){if(!e)return"";const t=e.getType();switch(t){case"Point":case"LineString":case"Polygon":return t;case"MultiPoint":case"MultiLineString":case"MultiPolygon":return t.substring(5);case"Circle":return"Polygon";case"GeometryCollection":return F$(e.getGeometries()[0]);default:return""}}function z$(e,t,n){return B$(I$(e,t,n),n)}function B$(e,t){if(e instanceof A$){if(e.type===v$&&"string"===typeof e.value){const t=hZ(e.value);return function(){return t}}return function(){return e.value}}const n=e.operator;switch(n){case G$.Number:case G$.String:case G$.Coalesce:return function(e,t){const n=e.operator,r=e.args.length,i=new Array(r);for(let o=0;o<r;++o)i[o]=B$(e.args[o],t);switch(n){case G$.Coalesce:return e=>{for(let t=0;t<r;++t){const n=i[t](e);if("undefined"!==typeof n&&null!==n)return n}throw new Error("Expected one of the values to be non-null")};case G$.Number:case G$.String:return e=>{for(let t=0;t<r;++t){const r=i[t](e);if(typeof r===n)return r}throw new Error("Expected one of the values to be a ".concat(n))};default:throw new Error("Unsupported assertion operator ".concat(n))}}(e,t);case G$.Get:case G$.Var:case G$.Has:return function(e,t){const n=e.args[0],r=n.value;switch(e.operator){case G$.Get:return t=>{const n=e.args;let i=t.properties[r];for(let e=1,r=n.length;e<r;++e){i=i[n[e].value]}return i};case G$.Var:return e=>e.variables[r];case G$.Has:return t=>{const n=e.args;if(!(r in t.properties))return!1;let i=t.properties[r];for(let e=1,r=n.length;e<r;++e){const t=n[e].value;if(!i||!Object.hasOwn(i,t))return!1;i=i[t]}return!0};default:throw new Error("Unsupported accessor operator ".concat(e.operator))}}(e);case G$.Id:return e=>e.featureId;case G$.GeometryType:return e=>e.geometryType;case G$.Concat:{const n=e.args.map((e=>B$(e,t)));return e=>"".concat(...n.map((t=>t(e).toString())))}case G$.Resolution:return e=>e.resolution;case G$.Any:case G$.All:case G$.Between:case G$.In:case G$.Not:return function(e,t){const n=e.operator,r=e.args.length,i=new Array(r);for(let o=0;o<r;++o)i[o]=B$(e.args[o],t);switch(n){case G$.Any:return e=>{for(let t=0;t<r;++t)if(i[t](e))return!0;return!1};case G$.All:return e=>{for(let t=0;t<r;++t)if(!i[t](e))return!1;return!0};case G$.Between:return e=>{const t=i[0](e),n=i[1](e),r=i[2](e);return t>=n&&t<=r};case G$.In:return e=>{const t=i[0](e);for(let n=1;n<r;++n)if(t===i[n](e))return!0;return!1};case G$.Not:return e=>!i[0](e);default:throw new Error("Unsupported logical operator ".concat(n))}}(e,t);case G$.Equal:case G$.NotEqual:case G$.LessThan:case G$.LessThanOrEqualTo:case G$.GreaterThan:case G$.GreaterThanOrEqualTo:return function(e,t){const n=e.operator,r=B$(e.args[0],t),i=B$(e.args[1],t);switch(n){case G$.Equal:return e=>r(e)===i(e);case G$.NotEqual:return e=>r(e)!==i(e);case G$.LessThan:return e=>r(e)<i(e);case G$.LessThanOrEqualTo:return e=>r(e)<=i(e);case G$.GreaterThan:return e=>r(e)>i(e);case G$.GreaterThanOrEqualTo:return e=>r(e)>=i(e);default:throw new Error("Unsupported comparison operator ".concat(n))}}(e,t);case G$.Multiply:case G$.Divide:case G$.Add:case G$.Subtract:case G$.Clamp:case G$.Mod:case G$.Pow:case G$.Abs:case G$.Floor:case G$.Ceil:case G$.Round:case G$.Sin:case G$.Cos:case G$.Atan:case G$.Sqrt:return function(e,t){const n=e.operator,r=e.args.length,i=new Array(r);for(let o=0;o<r;++o)i[o]=B$(e.args[o],t);switch(n){case G$.Multiply:return e=>{let t=1;for(let n=0;n<r;++n)t*=i[n](e);return t};case G$.Divide:return e=>i[0](e)/i[1](e);case G$.Add:return e=>{let t=0;for(let n=0;n<r;++n)t+=i[n](e);return t};case G$.Subtract:return e=>i[0](e)-i[1](e);case G$.Clamp:return e=>{const t=i[0](e),n=i[1](e);if(t<n)return n;const r=i[2](e);return t>r?r:t};case G$.Mod:return e=>i[0](e)%i[1](e);case G$.Pow:return e=>Math.pow(i[0](e),i[1](e));case G$.Abs:return e=>Math.abs(i[0](e));case G$.Floor:return e=>Math.floor(i[0](e));case G$.Ceil:return e=>Math.ceil(i[0](e));case G$.Round:return e=>Math.round(i[0](e));case G$.Sin:return e=>Math.sin(i[0](e));case G$.Cos:return e=>Math.cos(i[0](e));case G$.Atan:return 2===r?e=>Math.atan2(i[0](e),i[1](e)):e=>Math.atan(i[0](e));case G$.Sqrt:return e=>Math.sqrt(i[0](e));default:throw new Error("Unsupported numeric operator ".concat(n))}}(e,t);case G$.Case:return function(e,t){const n=e.args.length,r=new Array(n);for(let i=0;i<n;++i)r[i]=B$(e.args[i],t);return e=>{for(let t=0;t<n-1;t+=2){if(r[t](e))return r[t+1](e)}return r[n-1](e)}}(e,t);case G$.Match:return function(e,t){const n=e.args.length,r=new Array(n);for(let i=0;i<n;++i)r[i]=B$(e.args[i],t);return e=>{const t=r[0](e);for(let i=1;i<n;i+=2)if(t===r[i](e))return r[i+1](e);return r[n-1](e)}}(e,t);case G$.Interpolate:return function(e,t){const n=e.args.length,r=new Array(n);for(let i=0;i<n;++i)r[i]=B$(e.args[i],t);return e=>{const t=r[0](e),i=r[1](e);let o,s;for(let a=2;a<n;a+=2){const n=r[a](e);let l=r[a+1](e);const c=Array.isArray(l);if(c&&(l=uZ(l)),n>=i)return 2===a?l:c?W$(t,i,o,s,n,l):U$(t,i,o,s,n,l);o=n,s=l}return s}}(e,t);case G$.ToString:return function(e,t){const n=e.operator,r=e.args.length,i=new Array(r);for(let o=0;o<r;++o)i[o]=B$(e.args[o],t);if(n===G$.ToString)return t=>{const n=i[0](t);return e.args[0].type===v$?gZ(n):n.toString()};throw new Error("Unsupported convert operator ".concat(n))}(e,t);default:throw new Error("Unsupported operator ".concat(n))}}function U$(e,t,n,r,i,o){const s=i-n;if(0===s)return r;const a=t-n;return r+(1===e?a/s:(Math.pow(e,a)-1)/(Math.pow(e,s)-1))*(o-r)}function W$(e,t,n,r,i,o){if(0===i-n)return r;const s=dZ(r),a=dZ(o);let l=a[2]-s[2];l>180?l-=360:l<-180&&(l+=360);return fZ(function(e){const t=JK.rgb(tZ.xyz(e));return t[3]=e[3],t}([U$(e,t,n,s[0],i,a[0]),U$(e,t,n,s[1],i,a[1]),s[2]+U$(e,t,n,0,i,l),U$(e,t,n,r[3],i,o[3])]))}function H$(e){return!0}function q$(e){const t=j$(),n=function(e,t){const n=e.length,r=new Array(n);for(let i=0;i<n;++i){const n=e[i],o="filter"in n?z$(n.filter,g$,t):H$;let s;if(Array.isArray(n.style)){const e=n.style.length;s=new Array(e);for(let r=0;r<e;++r)s[r]=Y$(n.style[r],t)}else s=[Y$(n.style,t)];r[i]={filter:o,styles:s}}return function(t){const i=[];let o=!1;for(let s=0;s<n;++s){if((0,r[s].filter)(t)&&(!e[s].else||!o)){o=!0;for(const e of r[s].styles){const n=e(t);n&&i.push(n)}}}return i}}(e,t),r={variables:{},properties:{},resolution:NaN,featureId:null,geometryType:""};return function(e,i){if(r.properties=e.getPropertiesInternal(),r.resolution=i,t.featureId){const t=e.getId();r.featureId=void 0!==t?t:null}return t.geometryType&&(r.geometryType=F$(e.getGeometry())),n(r)}}function X$(e){const t=j$(),n=e.length,r=new Array(n);for(let s=0;s<n;++s)r[s]=Y$(e[s],t);const i={variables:{},properties:{},resolution:NaN,featureId:null,geometryType:""},o=new Array(n);return function(e,s){if(i.properties=e.getPropertiesInternal(),i.resolution=s,t.featureId){const t=e.getId();i.featureId=void 0!==t?t:null}let a=0;for(let t=0;t<n;++t){const e=r[t](i);e&&(o[a]=e,a+=1)}return o.length=a,o}}function Y$(e,t){const n=K$(e,"",t),r=Z$(e,"",t),i=function(e,t){const n="text-",r=J$(e,n+"value",t);if(!r)return null;const i=K$(e,n,t),o=K$(e,n+"background-",t),s=Z$(e,n,t),a=Z$(e,n+"background-",t),l=J$(e,n+"font",t),c=$$(e,n+"max-angle",t),u=$$(e,n+"offset-x",t),d=$$(e,n+"offset-y",t),h=Q$(e,n+"overflow",t),p=J$(e,n+"placement",t),f=$$(e,n+"repeat",t),g=iJ(e,n+"scale",t),m=Q$(e,n+"rotate-with-view",t),y=$$(e,n+"rotation",t),v=J$(e,n+"align",t),_=J$(e,n+"justify",t),b=J$(e,n+"baseline",t),x=tJ(e,n+"padding",t),S=lJ(e,n+"declutter-mode"),w=new p$({declutterMode:S});return function(e){if(w.setText(r(e)),i&&w.setFill(i(e)),o&&w.setBackgroundFill(o(e)),s&&w.setStroke(s(e)),a&&w.setBackgroundStroke(a(e)),l&&w.setFont(l(e)),c&&w.setMaxAngle(c(e)),u&&w.setOffsetX(u(e)),d&&w.setOffsetY(d(e)),h&&w.setOverflow(h(e)),p){const t=p(e);if("point"!==t&&"line"!==t)throw new Error("Expected point or line for text-placement");w.setPlacement(t)}if(f&&w.setRepeat(f(e)),g&&w.setScale(g(e)),m&&w.setRotateWithView(m(e)),y&&w.setRotation(y(e)),v){const t=v(e);if("left"!==t&&"center"!==t&&"right"!==t&&"end"!==t&&"start"!==t)throw new Error("Expected left, right, center, start, or end for text-align");w.setTextAlign(t)}if(_){const t=_(e);if("left"!==t&&"right"!==t&&"center"!==t)throw new Error("Expected left, right, or center for text-justify");w.setJustify(t)}if(b){const t=b(e);if("bottom"!==t&&"top"!==t&&"middle"!==t&&"alphabetic"!==t&&"hanging"!==t)throw new Error("Expected bottom, top, middle, alphabetic, or hanging for text-baseline");w.setTextBaseline(t)}return x&&w.setPadding(x(e)),w}}(e,t),o=function(e,t){if("icon-src"in e)return function(e,t){const n="icon-",r=n+"src",i=uJ(e[r],r),o=nJ(e,n+"anchor",t),s=iJ(e,n+"scale",t),a=$$(e,n+"opacity",t),l=nJ(e,n+"displacement",t),c=$$(e,n+"rotation",t),u=Q$(e,n+"rotate-with-view",t),d=sJ(e,n+"anchor-origin"),h=aJ(e,n+"anchor-x-units"),p=aJ(e,n+"anchor-y-units"),f=function(e,t){const n=e[t];if(void 0===n)return;return hJ(n,t)}(e,n+"color"),g=function(e,t){const n=e[t];if(void 0===n)return;if("string"!==typeof n)throw new Error("Expected a string for ".concat(t));return n}(e,n+"cross-origin"),m=function(e,t){const n=e[t];if(void 0===n)return;return cJ(n,t)}(e,n+"offset"),y=sJ(e,n+"offset-origin"),v=oJ(e,n+"width"),_=oJ(e,n+"height"),b=function(e,t){const n=e[t];if(void 0===n)return;if("number"===typeof n)return LN(n);if(!Array.isArray(n))throw new Error("Expected a number or size array for ".concat(t));if(2!==n.length||"number"!==typeof n[0]||"number"!==typeof n[1])throw new Error("Expected a number or size array for ".concat(t));return n}(e,n+"size"),x=lJ(e,n+"declutter-mode"),S=new d$({src:i,anchorOrigin:d,anchorXUnits:h,anchorYUnits:p,color:f,crossOrigin:g,offset:m,offsetOrigin:y,height:_,width:v,size:b,declutterMode:x});return function(e){return a&&S.setOpacity(a(e)),l&&S.setDisplacement(l(e)),c&&S.setRotation(c(e)),u&&S.setRotateWithView(u(e)),s&&S.setScale(s(e)),o&&S.setAnchor(o(e)),S}}(e,t);if("shape-points"in e)return function(e,t){const n="shape-",r=n+"points",i=n+"radius",o=dJ(e[r],r),s=dJ(e[i],i),a=K$(e,n,t),l=Z$(e,n,t),c=iJ(e,n+"scale",t),u=nJ(e,n+"displacement",t),d=$$(e,n+"rotation",t),h=Q$(e,n+"rotate-with-view",t),p=oJ(e,n+"radius2"),f=oJ(e,n+"angle"),g=lJ(e,n+"declutter-mode"),m=new ZZ({points:o,radius:s,radius2:p,angle:f,declutterMode:g});return function(e){return a&&m.setFill(a(e)),l&&m.setStroke(l(e)),u&&m.setDisplacement(u(e)),d&&m.setRotation(d(e)),h&&m.setRotateWithView(h(e)),c&&m.setScale(c(e)),m}}(e,t);if("circle-radius"in e)return function(e,t){const n="circle-",r=K$(e,n,t),i=Z$(e,n,t),o=$$(e,n+"radius",t),s=iJ(e,n+"scale",t),a=nJ(e,n+"displacement",t),l=$$(e,n+"rotation",t),c=Q$(e,n+"rotate-with-view",t),u=lJ(e,n+"declutter-mode"),d=new JZ({radius:5,declutterMode:u});return function(e){return o&&d.setRadius(o(e)),r&&d.setFill(r(e)),i&&d.setStroke(i(e)),a&&d.setDisplacement(a(e)),l&&d.setRotation(l(e)),c&&d.setRotateWithView(c(e)),s&&d.setScale(s(e)),d}}(e,t);return null}(e,t),s=$$(e,"z-index",t);if(!n&&!r&&!i&&!o&&!hD(e))throw new Error("No fill, stroke, point, or text symbolizer properties in style: "+JSON.stringify(e));const a=new l$;return function(e){let t=!0;if(n){const r=n(e);r&&(t=!1),a.setFill(r)}if(r){const n=r(e);n&&(t=!1),a.setStroke(n)}if(i){const n=i(e);n&&(t=!1),a.setText(n)}if(o){const n=o(e);n&&(t=!1),a.setImage(n)}return s&&a.setZIndex(s(e)),t?null:a}}function K$(e,t,n){let r;if(t+"fill-pattern-src"in e)r=function(e,t,n){const r=J$(e,t+"pattern-src",n),i=rJ(e,t+"pattern-offset",n),o=rJ(e,t+"pattern-size",n),s=eJ(e,t+"color",n);return function(e){return{src:r(e),offset:i&&i(e),size:o&&o(e),color:s&&s(e)}}}(e,t+"fill-",n);else{if("none"===e[t+"fill-color"])return e=>null;r=eJ(e,t+"fill-color",n)}if(!r)return null;const i=new e$;return function(e){const t=r(e);return t===sZ?null:(i.setColor(t),i)}}function Z$(e,t,n){const r=$$(e,t+"stroke-width",n),i=eJ(e,t+"stroke-color",n);if(!r&&!i)return null;const o=J$(e,t+"stroke-line-cap",n),s=J$(e,t+"stroke-line-join",n),a=tJ(e,t+"stroke-line-dash",n),l=$$(e,t+"stroke-line-dash-offset",n),c=$$(e,t+"stroke-miter-limit",n),u=new n$;return function(e){if(i){const t=i(e);if(t===sZ)return null;u.setColor(t)}if(r&&u.setWidth(r(e)),o){const t=o(e);if("butt"!==t&&"round"!==t&&"square"!==t)throw new Error("Expected butt, round, or square line cap");u.setLineCap(t)}if(s){const t=s(e);if("bevel"!==t&&"round"!==t&&"miter"!==t)throw new Error("Expected bevel, round, or miter line join");u.setLineJoin(t)}return a&&u.setLineDash(a(e)),l&&u.setLineDashOffset(l(e)),c&&u.setMiterLimit(c(e)),u}}function $$(e,t,n){if(!(t in e))return;const r=z$(e[t],m$,n);return function(e){return dJ(r(e),t)}}function J$(e,t,n){if(!(t in e))return null;const r=z$(e[t],y$,n);return function(e){return uJ(r(e),t)}}function Q$(e,t,n){if(!(t in e))return null;const r=z$(e[t],g$,n);return function(e){const n=r(e);if("boolean"!==typeof n)throw new Error("Expected a boolean for ".concat(t));return n}}function eJ(e,t,n){if(!(t in e))return null;const r=z$(e[t],v$,n);return function(e){return hJ(r(e),t)}}function tJ(e,t,n){if(!(t in e))return null;const r=z$(e[t],_$,n);return function(e){return cJ(r(e),t)}}function nJ(e,t,n){if(!(t in e))return null;const r=z$(e[t],_$,n);return function(e){const n=cJ(r(e),t);if(2!==n.length)throw new Error("Expected two numbers for ".concat(t));return n}}function rJ(e,t,n){if(!(t in e))return null;const r=z$(e[t],_$,n);return function(e){return pJ(r(e),t)}}function iJ(e,t,n){if(!(t in e))return null;const r=z$(e[t],_$|m$,n);return function(e){return function(e,t){if("number"===typeof e)return e;return pJ(e,t)}(r(e),t)}}function oJ(e,t){const n=e[t];if(void 0!==n){if("number"!==typeof n)throw new Error("Expected a number for ".concat(t));return n}}function sJ(e,t){const n=e[t];if(void 0!==n){if("bottom-left"!==n&&"bottom-right"!==n&&"top-left"!==n&&"top-right"!==n)throw new Error("Expected bottom-left, bottom-right, top-left, or top-right for ".concat(t));return n}}function aJ(e,t){const n=e[t];if(void 0!==n){if("pixels"!==n&&"fraction"!==n)throw new Error("Expected pixels or fraction for ".concat(t));return n}}function lJ(e,t){const n=e[t];if(void 0!==n){if("string"!==typeof n)throw new Error("Expected a string for ".concat(t));if("declutter"!==n&&"obstacle"!==n&&"none"!==n)throw new Error("Expected declutter, obstacle, or none for ".concat(t));return n}}function cJ(e,t){if(!Array.isArray(e))throw new Error("Expected an array for ".concat(t));const n=e.length;for(let r=0;r<n;++r)if("number"!==typeof e[r])throw new Error("Expected an array of numbers for ".concat(t));return e}function uJ(e,t){if("string"!==typeof e)throw new Error("Expected a string for ".concat(t));return e}function dJ(e,t){if("number"!==typeof e)throw new Error("Expected a number for ".concat(t));return e}function hJ(e,t){if("string"===typeof e)return e;const n=cJ(e,t),r=n.length;if(r<3||r>4)throw new Error("Expected a color with 3 or 4 values for ".concat(t));return n}function pJ(e,t){const n=cJ(e,t);if(2!==n.length)throw new Error("Expected an array of two numbers for ".concat(t));return n}const fJ="renderOrder";const gJ=class extends jK{constructor(e){e=e||{};const t=Object.assign({},e);delete t.style,delete t.renderBuffer,delete t.updateWhileAnimating,delete t.updateWhileInteracting,super(t),this.declutter_=e.declutter?String(e.declutter):void 0,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(fJ)}getStyle(){return this.style_}getStyleFunction(){return this.styleFunction_}getUpdateWhileAnimating(){return this.updateWhileAnimating_}getUpdateWhileInteracting(){return this.updateWhileInteracting_}renderDeclutter(e,t){const n=this.getDeclutter();n in e.declutter===!1&&(e.declutter[n]=new MK(9)),this.getRenderer().renderDeclutter(e,t)}setRenderOrder(e){this.set(fJ,e)}setStyle(e){this.style_=void 0===e?o$:e;const t=function(e){if(void 0===e)return o$;if(!e)return null;if("function"===typeof e)return e;if(e instanceof l$)return e;if(!Array.isArray(e))return X$([e]);if(0===e.length)return[];const t=e.length,n=e[0];if(n instanceof l$){const n=new Array(t);for(let r=0;r<t;++r){const t=e[r];if(!(t instanceof l$))throw new Error("Expected a list of style instances");n[r]=t}return n}if("style"in n){const n=new Array(t);for(let r=0;r<t;++r){const t=e[r];if(!("style"in t))throw new Error("Expected a list of rules with a style property");n[r]=t}return q$(n)}const r=e;return X$(r)}(e);this.styleFunction_=null===e?void 0:function(e){let t;if("function"===typeof e)t=e;else{let n;Array.isArray(e)?n=e:(lN("function"===typeof e.getZIndex,"Expected an `Style` or an array of `Style`"),n=[e]),t=function(){return n}}return t}(t),this.changed()}};function mJ(e,t){vZ.expire()}const yJ=class extends JR{constructor(e){super(),this.map_=e}dispatchRenderEvent(e,t){_D()}calculateMatrices2D(e){const t=e.viewState,n=e.coordinateToPixelTransform,r=e.pixelToCoordinateTransform;TY(n,e.size[0]/2,e.size[1]/2,1/t.resolution,-1/t.resolution,-t.rotation,-t.center[0],-t.center[1]),MY(r,n)}forEachFeatureAtCoordinate(e,t,n,r,i,o,s,a){let l;const c=t.viewState;function u(e,t,n,r){return i.call(o,t,e?n:null,r)}const d=c.projection,h=rR(e.slice(),d),p=[[0,0]];if(d.canWrapX()&&r){const e=dO(d.getExtent());p.push([-e,0],[e,0])}const f=t.layerStatesArray,g=f.length,m=[],y=[];for(let _=0;_<p.length;_++)for(let r=g-1;r>=0;--r){const i=f[r],o=i.layer;if(o.hasRenderer()&&kK(i,c)&&s.call(a,o)){const r=o.getRenderer(),s=o.getSource();if(r&&s){const o=s.getWrapX()?h:e,a=u.bind(null,i.managed);y[0]=o[0]+p[_][0],y[1]=o[1]+p[_][1],l=r.forEachFeatureAtCoordinate(y,t,n,a,m)}if(l)return l}}if(0===m.length)return;const v=1/m.length;return m.forEach(((e,t)=>e.distanceSq+=t*v)),m.sort(((e,t)=>e.distanceSq-t.distanceSq)),m.some((e=>l=e.callback(e.feature,e.layer,e.geometry))),l}hasFeatureAtCoordinate(e,t,n,r,i,o){return void 0!==this.forEachFeatureAtCoordinate(e,t,n,r,sD,this,i,o)}getMap(){return this.map_}renderFrame(e){_D()}scheduleExpireIconCache(e){vZ.canExpireCache()&&e.postRenderFunctions.push(mJ)}};const vJ=class extends QR{constructor(e,t,n,r){super(e),this.inversePixelTransform=t,this.frameState=n,this.context=r}};const _J=class extends yJ{constructor(e){super(e),this.fontChangeListenerKey_=qD(VZ,yN,e.redrawText.bind(e)),this.element_=document.createElement("div");const t=this.element_.style;t.position="absolute",t.width="100%",t.height="100%",t.zIndex="0",this.element_.className=EZ+" ol-layers";const n=e.getViewport();n.insertBefore(this.element_,n.firstChild||null),this.children_=[],this.renderedVisible_=!0}dispatchRenderEvent(e,t){const n=this.getMap();if(n.hasListener(e)){const r=new vJ(e,void 0,t);n.dispatchEvent(r)}}disposeInternal(){YD(this.fontChangeListenerKey_),this.element_.remove(),super.disposeInternal()}renderFrame(e){if(!e)return void(this.renderedVisible_&&(this.element_.style.display="none",this.renderedVisible_=!1));this.calculateMatrices2D(e),this.dispatchRenderEvent(pY,e);const t=e.layerStatesArray.sort(((e,t)=>e.zIndex-t.zIndex));t.some((e=>e.layer instanceof gJ&&e.layer.getDeclutter()))&&(e.declutter={});const n=e.viewState;this.children_.length=0;const r=[];let i=null;for(let o=0,s=t.length;o<s;++o){const s=t[o];e.layerIndex=o;const a=s.layer,l=a.getSourceState();if(!kK(s,n)||"ready"!=l&&"undefined"!=l){a.unrender();continue}const c=a.render(e,i);c&&(c!==i&&(this.children_.push(c),i=c),r.push(s))}this.declutter(e,r),function(e,t){const n=e.childNodes;for(let r=0;;++r){const i=n[r],o=t[r];if(!i&&!o)break;i!==o&&(i?o?e.insertBefore(o,i):(e.removeChild(i),--r):e.appendChild(o))}}(this.element_,this.children_),this.dispatchRenderEvent(fY,e),this.renderedVisible_||(this.element_.style.display="",this.renderedVisible_=!0),this.scheduleExpireIconCache(e)}declutter(e,t){if(e.declutter){for(let n=t.length-1;n>=0;--n){const r=t[n],i=r.layer;i.getDeclutter()&&i.renderDeclutter(e,r)}t.forEach((t=>t.layer.renderDeferred(e)))}}};class bJ extends QR{constructor(e,t){super(e),this.layer=t}}const xJ="layers";class SJ extends uY{constructor(e){e=e||{};const t=Object.assign({},e);delete t.layers;let n=e.layers;super(t),this.on,this.once,this.un,this.layersListenerKeys_=[],this.listenerKeys_={},this.addChangeListener(xJ,this.handleLayersChanged_),n?Array.isArray(n)?n=new QX(n.slice(),{unique:!0}):lN("function"===typeof n.getArray,"Expected `layers` to be an array or a `Collection`"):n=new QX(void 0,{unique:!0}),this.setLayers(n)}handleLayerChange_(){this.changed()}handleLayersChanged_(){this.layersListenerKeys_.forEach(YD),this.layersListenerKeys_.length=0;const e=this.getLayers();this.layersListenerKeys_.push(qD(e,KX,this.handleLayersAdd_,this),qD(e,ZX,this.handleLayersRemove_,this));for(const n in this.listenerKeys_)this.listenerKeys_[n].forEach(YD);dD(this.listenerKeys_);const t=e.getArray();for(let n=0,r=t.length;n<r;n++){const e=t[n];this.registerLayerListeners_(e),this.dispatchEvent(new bJ("addlayer",e))}this.changed()}registerLayerListeners_(e){const t=[qD(e,yN,this.handleLayerChange_,this),qD(e,BR,this.handleLayerChange_,this)];e instanceof SJ&&t.push(qD(e,"addlayer",this.handleLayerGroupAdd_,this),qD(e,"removelayer",this.handleLayerGroupRemove_,this)),this.listenerKeys_[xD(e)]=t}handleLayerGroupAdd_(e){this.dispatchEvent(new bJ("addlayer",e.layer))}handleLayerGroupRemove_(e){this.dispatchEvent(new bJ("removelayer",e.layer))}handleLayersAdd_(e){const t=e.element;this.registerLayerListeners_(t),this.dispatchEvent(new bJ("addlayer",t)),this.changed()}handleLayersRemove_(e){const t=e.element,n=xD(t);this.listenerKeys_[n].forEach(YD),delete this.listenerKeys_[n],this.dispatchEvent(new bJ("removelayer",t)),this.changed()}getLayers(){return this.get(xJ)}setLayers(e){const t=this.getLayers();if(t){const e=t.getArray();for(let t=0,n=e.length;t<n;++t)this.dispatchEvent(new bJ("removelayer",e[t]))}this.set(xJ,e)}getLayersArray(e){return e=void 0!==e?e:[],this.getLayers().forEach((function(t){t.getLayersArray(e)})),e}getLayerStatesArray(e){const t=void 0!==e?e:[],n=t.length;this.getLayers().forEach((function(e){e.getLayerStatesArray(t)}));const r=this.getLayerState();let i=r.zIndex;e||void 0!==r.zIndex||(i=0);for(let o=n,s=t.length;o<s;o++){const e=t[o];e.opacity*=r.opacity,e.visible=e.visible&&r.visible,e.maxResolution=Math.min(e.maxResolution,r.maxResolution),e.minResolution=Math.max(e.minResolution,r.minResolution),e.minZoom=Math.max(e.minZoom,r.minZoom),e.maxZoom=Math.min(e.maxZoom,r.maxZoom),void 0!==r.extent&&(void 0!==e.extent?e.extent=lO(e.extent,r.extent):e.extent=r.extent),void 0===e.zIndex&&(e.zIndex=i)}return t}getSourceState(){return"ready"}}const wJ=SJ;const EJ=class extends QR{constructor(e,t,n){super(e),this.map=t,this.frameState=void 0!==n?n:null}};const PJ=class extends EJ{constructor(e,t,n,r,i,o){super(e,t,i),this.originalEvent=n,this.pixel_=null,this.coordinate_=null,this.dragging=void 0!==r&&r,this.activePointers=o}get pixel(){return this.pixel_||(this.pixel_=this.map.getEventPixel(this.originalEvent)),this.pixel_}set pixel(e){this.pixel_=e}get coordinate(){return this.coordinate_||(this.coordinate_=this.map.getCoordinateFromPixel(this.pixel)),this.coordinate_}set coordinate(e){this.coordinate_=e}preventDefault(){super.preventDefault(),"preventDefault"in this.originalEvent&&this.originalEvent.preventDefault()}stopPropagation(){super.stopPropagation(),"stopPropagation"in this.originalEvent&&this.originalEvent.stopPropagation()}},CJ={SINGLECLICK:"singleclick",CLICK:HR,DBLCLICK:qR,POINTERDRAG:"pointerdrag",POINTERMOVE:"pointermove",POINTERDOWN:"pointerdown",POINTERUP:"pointerup",POINTEROVER:"pointerover",POINTEROUT:"pointerout",POINTERENTER:"pointerenter",POINTERLEAVE:"pointerleave",POINTERCANCEL:"pointercancel"},AJ="pointermove",kJ="pointerdown";const jJ=class extends pD{constructor(e,t){super(e),this.map_=e,this.clickTimeoutId_,this.emulateClicks_=!1,this.dragging_=!1,this.dragListenerKeys_=[],this.moveTolerance_=void 0===t?1:t,this.down_=null;const n=this.map_.getViewport();this.activePointers_=[],this.trackedTouches_={},this.element_=n,this.pointerdownListenerKey_=qD(n,kJ,this.handlePointerDown_,this),this.originalPointerMoveEvent_,this.relayedListenerKey_=qD(n,AJ,this.relayMoveEvent_,this),this.boundHandleTouchMove_=this.handleTouchMove_.bind(this),this.element_.addEventListener(ZR,this.boundHandleTouchMove_,!!DD&&{passive:!1})}emulateClick_(e){let t=new PJ(CJ.CLICK,this.map_,e);this.dispatchEvent(t),void 0!==this.clickTimeoutId_?(clearTimeout(this.clickTimeoutId_),this.clickTimeoutId_=void 0,t=new PJ(CJ.DBLCLICK,this.map_,e),this.dispatchEvent(t)):this.clickTimeoutId_=setTimeout((()=>{this.clickTimeoutId_=void 0;const t=new PJ(CJ.SINGLECLICK,this.map_,e);this.dispatchEvent(t)}),250)}updateActivePointers_(e){const t=e,n=t.pointerId;if(t.type==CJ.POINTERUP||t.type==CJ.POINTERCANCEL){delete this.trackedTouches_[n];for(const e in this.trackedTouches_)if(this.trackedTouches_[e].target!==t.target){delete this.trackedTouches_[e];break}}else t.type!=CJ.POINTERDOWN&&t.type!=CJ.POINTERMOVE||(this.trackedTouches_[n]=t);this.activePointers_=Object.values(this.trackedTouches_)}handlePointerUp_(e){this.updateActivePointers_(e);const t=new PJ(CJ.POINTERUP,this.map_,e,void 0,void 0,this.activePointers_);this.dispatchEvent(t),this.emulateClicks_&&!t.defaultPrevented&&!this.dragging_&&this.isMouseActionButton_(e)&&this.emulateClick_(this.down_),0===this.activePointers_.length&&(this.dragListenerKeys_.forEach(YD),this.dragListenerKeys_.length=0,this.dragging_=!1,this.down_=null)}isMouseActionButton_(e){return 0===e.button}handlePointerDown_(e){this.emulateClicks_=0===this.activePointers_.length,this.updateActivePointers_(e);const t=new PJ(CJ.POINTERDOWN,this.map_,e,void 0,void 0,this.activePointers_);if(this.dispatchEvent(t),this.down_=new PointerEvent(e.type,e),Object.defineProperty(this.down_,"target",{writable:!1,value:e.target}),0===this.dragListenerKeys_.length){const e=this.map_.getOwnerDocument();this.dragListenerKeys_.push(qD(e,CJ.POINTERMOVE,this.handlePointerMove_,this),qD(e,CJ.POINTERUP,this.handlePointerUp_,this),qD(this.element_,CJ.POINTERCANCEL,this.handlePointerUp_,this)),this.element_.getRootNode&&this.element_.getRootNode()!==e&&this.dragListenerKeys_.push(qD(this.element_.getRootNode(),CJ.POINTERUP,this.handlePointerUp_,this))}}handlePointerMove_(e){if(this.isMoving_(e)){this.updateActivePointers_(e),this.dragging_=!0;const t=new PJ(CJ.POINTERDRAG,this.map_,e,this.dragging_,void 0,this.activePointers_);this.dispatchEvent(t)}}relayMoveEvent_(e){this.originalPointerMoveEvent_=e;const t=!(!this.down_||!this.isMoving_(e));this.dispatchEvent(new PJ(CJ.POINTERMOVE,this.map_,e,t))}handleTouchMove_(e){const t=this.originalPointerMoveEvent_;t&&!t.defaultPrevented||"boolean"===typeof e.cancelable&&!0!==e.cancelable||e.preventDefault()}isMoving_(e){return this.dragging_||Math.abs(e.clientX-this.down_.clientX)>this.moveTolerance_||Math.abs(e.clientY-this.down_.clientY)>this.moveTolerance_}disposeInternal(){this.relayedListenerKey_&&(YD(this.relayedListenerKey_),this.relayedListenerKey_=null),this.element_.removeEventListener(ZR,this.boundHandleTouchMove_),this.pointerdownListenerKey_&&(YD(this.pointerdownListenerKey_),this.pointerdownListenerKey_=null),this.dragListenerKeys_.forEach(YD),this.dragListenerKeys_.length=0,this.element_=null,super.disposeInternal()}},IJ="postrender",GJ="movestart",TJ="moveend",MJ="loadstart",OJ="loadend",RJ="layergroup",DJ="size",NJ="target",LJ="view",VJ=1/0;const FJ=class{constructor(e,t){this.priorityFunction_=e,this.keyFunction_=t,this.elements_=[],this.priorities_=[],this.queuedElements_={}}clear(){this.elements_.length=0,this.priorities_.length=0,dD(this.queuedElements_)}dequeue(){const e=this.elements_,t=this.priorities_,n=e[0];1==e.length?(e.length=0,t.length=0):(e[0]=e.pop(),t[0]=t.pop(),this.siftUp_(0));const r=this.keyFunction_(n);return delete this.queuedElements_[r],n}enqueue(e){lN(!(this.keyFunction_(e)in this.queuedElements_),"Tried to enqueue an `element` that was already added to the queue");const t=this.priorityFunction_(e);return t!=VJ&&(this.elements_.push(e),this.priorities_.push(t),this.queuedElements_[this.keyFunction_(e)]=!0,this.siftDown_(0,this.elements_.length-1),!0)}getCount(){return this.elements_.length}getLeftChildIndex_(e){return 2*e+1}getRightChildIndex_(e){return 2*e+2}getParentIndex_(e){return e-1>>1}heapify_(){let e;for(e=(this.elements_.length>>1)-1;e>=0;e--)this.siftUp_(e)}isEmpty(){return 0===this.elements_.length}isKeyQueued(e){return e in this.queuedElements_}isQueued(e){return this.isKeyQueued(this.keyFunction_(e))}siftUp_(e){const t=this.elements_,n=this.priorities_,r=t.length,i=t[e],o=n[e],s=e;for(;e<r>>1;){const i=this.getLeftChildIndex_(e),o=this.getRightChildIndex_(e),s=o<r&&n[o]<n[i]?o:i;t[e]=t[s],n[e]=n[s],e=s}t[e]=i,n[e]=o,this.siftDown_(s,e)}siftDown_(e,t){const n=this.elements_,r=this.priorities_,i=n[t],o=r[t];for(;t>e;){const e=this.getParentIndex_(t);if(!(r[e]>o))break;n[t]=n[e],r[t]=r[e],t=e}n[t]=i,r[t]=o}reprioritize(){const e=this.priorityFunction_,t=this.elements_,n=this.priorities_;let r=0;const i=t.length;let o,s,a;for(s=0;s<i;++s)o=t[s],a=e(o),a==VJ?delete this.queuedElements_[this.keyFunction_(o)]:(n[r]=a,t[r++]=o);t.length=r,n.length=r,this.heapify_()}};const zJ=class extends FJ{constructor(e,t){super((function(t){return e.apply(null,t)}),(function(e){return e[0].getKey()})),this.boundHandleTileChange_=this.handleTileChange.bind(this),this.tileChangeCallback_=t,this.tilesLoading_=0,this.tilesLoadingKeys_={}}enqueue(e){const t=super.enqueue(e);if(t){e[0].addEventListener(BR,this.boundHandleTileChange_)}return t}getTilesLoading(){return this.tilesLoading_}handleTileChange(e){const t=e.target,n=t.getState();if(n===mD||n===yD||n===vD){n!==yD&&t.removeEventListener(BR,this.boundHandleTileChange_);const e=t.getKey();e in this.tilesLoadingKeys_&&(delete this.tilesLoadingKeys_[e],--this.tilesLoading_),this.tileChangeCallback_()}}loadMoreTiles(e,t){let n=0;for(;this.tilesLoading_<e&&n<t&&this.getCount()>0;){const e=this.dequeue()[0],t=e.getKey();e.getState()!==fD||t in this.tilesLoadingKeys_||(this.tilesLoadingKeys_[t]=!0,++this.tilesLoading_,++n,e.load())}}};const BJ=class extends SN{constructor(e){super();const t=e.element;!t||e.target||t.style.pointerEvents||(t.style.pointerEvents="auto"),this.element=t||null,this.target_=null,this.map_=null,this.listenerKeys=[],e.render&&(this.render=e.render),e.target&&this.setTarget(e.target)}disposeInternal(){var e;null===(e=this.element)||void 0===e||e.remove(),super.disposeInternal()}getMap(){return this.map_}setMap(e){var t;this.map_&&(null===(t=this.element)||void 0===t||t.remove());for(let r=0,i=this.listenerKeys.length;r<i;++r)YD(this.listenerKeys[r]);if(this.listenerKeys.length=0,this.map_=e,e){var n;(null!==(n=this.target_)&&void 0!==n?n:e.getOverlayContainerStopEvent()).appendChild(this.element),this.render!==lD&&this.listenerKeys.push(qD(e,IJ,this.render,this)),e.render()}}render(e){}setTarget(e){this.target_="string"===typeof e?document.getElementById(e):e}};const UJ=class extends BJ{constructor(e){e=e||{},super({element:document.createElement("div"),render:e.render,target:e.target}),this.ulElement_=document.createElement("ul"),this.collapsed_=void 0===e.collapsed||e.collapsed,this.userCollapsed_=this.collapsed_,this.overrideCollapsible_=void 0!==e.collapsible,this.collapsible_=void 0===e.collapsible||e.collapsible,this.collapsible_||(this.collapsed_=!1),this.attributions_=e.attributions;const t=void 0!==e.className?e.className:"ol-attribution",n=void 0!==e.tipLabel?e.tipLabel:"Attributions",r=void 0!==e.expandClassName?e.expandClassName:t+"-expand",i=void 0!==e.collapseLabel?e.collapseLabel:"\u203a",o=void 0!==e.collapseClassName?e.collapseClassName:t+"-collapse";"string"===typeof i?(this.collapseLabel_=document.createElement("span"),this.collapseLabel_.textContent=i,this.collapseLabel_.className=o):this.collapseLabel_=i;const s=void 0!==e.label?e.label:"i";"string"===typeof s?(this.label_=document.createElement("span"),this.label_.textContent=s,this.label_.className=r):this.label_=s;const a=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=n,this.toggleButton_.appendChild(a),this.toggleButton_.addEventListener(HR,this.handleClick_.bind(this),!1);const l=t+" "+EZ+" "+PZ+(this.collapsed_&&this.collapsible_?" "+CZ:"")+(this.collapsible_?"":" ol-uncollapsible"),c=this.element;c.className=l,c.appendChild(this.toggleButton_),c.appendChild(this.ulElement_),this.renderedAttributions_=[],this.renderedVisible_=!0}collectSourceAttributions_(e){const t=this.getMap().getAllLayers(),n=new Set(t.flatMap((t=>t.getAttributions(e))));if(void 0!==this.attributions_&&(Array.isArray(this.attributions_)?this.attributions_.forEach((e=>n.add(e))):n.add(this.attributions_)),!this.overrideCollapsible_){const e=!t.some((e=>{var t;return!1===(null===(t=e.getSource())||void 0===t?void 0:t.getAttributionsCollapsible())}));this.setCollapsible(e)}return Array.from(n)}async updateElement_(e){if(!e)return void(this.renderedVisible_&&(this.element.style.display="none",this.renderedVisible_=!1));const t=await Promise.all(this.collectSourceAttributions_(e).map((e=>uD((()=>e))))),n=t.length>0;if(this.renderedVisible_!=n&&(this.element.style.display=n?"":"none",this.renderedVisible_=n),!oD(t,this.renderedAttributions_)){WD(this.ulElement_);for(let e=0,n=t.length;e<n;++e){const n=document.createElement("li");n.innerHTML=t[e],this.ulElement_.appendChild(n)}this.renderedAttributions_=t}}handleClick_(e){e.preventDefault(),this.handleToggle_(),this.userCollapsed_=this.collapsed_}handleToggle_(){this.element.classList.toggle(CZ),this.collapsed_?UD(this.collapseLabel_,this.label_):UD(this.label_,this.collapseLabel_),this.collapsed_=!this.collapsed_,this.toggleButton_.setAttribute("aria-expanded",String(!this.collapsed_))}getCollapsible(){return this.collapsible_}setCollapsible(e){this.collapsible_!==e&&(this.collapsible_=e,this.element.classList.toggle("ol-uncollapsible"),this.userCollapsed_&&this.handleToggle_())}setCollapsed(e){this.userCollapsed_=e,this.collapsible_&&this.collapsed_!==e&&this.handleToggle_()}getCollapsed(){return this.collapsed_}render(e){this.updateElement_(e.frameState)}};const WJ=class extends BJ{constructor(e){e=e||{},super({element:document.createElement("div"),render:e.render,target:e.target});const t=void 0!==e.className?e.className:"ol-rotate",n=void 0!==e.label?e.label:"\u21e7",r=void 0!==e.compassClassName?e.compassClassName:"ol-compass";this.label_=null,"string"===typeof n?(this.label_=document.createElement("span"),this.label_.className=r,this.label_.textContent=n):(this.label_=n,this.label_.classList.add(r));const i=e.tipLabel?e.tipLabel:"Reset rotation",o=document.createElement("button");o.className=t+"-reset",o.setAttribute("type","button"),o.title=i,o.appendChild(this.label_),o.addEventListener(HR,this.handleClick_.bind(this),!1);const s=t+" "+EZ+" "+PZ,a=this.element;a.className=s,a.appendChild(o),this.callResetNorth_=e.resetNorth?e.resetNorth:void 0,this.duration_=void 0!==e.duration?e.duration:250,this.autoHide_=void 0===e.autoHide||e.autoHide,this.rotation_=void 0,this.autoHide_&&this.element.classList.add(wZ)}handleClick_(e){e.preventDefault(),void 0!==this.callResetNorth_?this.callResetNorth_():this.resetNorth_()}resetNorth_(){const e=this.getMap().getView();if(!e)return;const t=e.getRotation();void 0!==t&&(this.duration_>0&&t%(2*Math.PI)!==0?e.animate({rotation:0,duration:this.duration_,easing:wD}):e.setRotation(0))}render(e){const t=e.frameState;if(!t)return;const n=t.viewState.rotation;if(n!=this.rotation_){const e="rotate("+n+"rad)";if(this.autoHide_){const e=this.element.classList.contains(wZ);e||0!==n?e&&0!==n&&this.element.classList.remove(wZ):this.element.classList.add(wZ)}this.label_.style.transform=e}this.rotation_=n}};const HJ=class extends BJ{constructor(e){e=e||{},super({element:document.createElement("div"),target:e.target});const t=void 0!==e.className?e.className:"ol-zoom",n=void 0!==e.delta?e.delta:1,r=void 0!==e.zoomInClassName?e.zoomInClassName:t+"-in",i=void 0!==e.zoomOutClassName?e.zoomOutClassName:t+"-out",o=void 0!==e.zoomInLabel?e.zoomInLabel:"+",s=void 0!==e.zoomOutLabel?e.zoomOutLabel:"\u2013",a=void 0!==e.zoomInTipLabel?e.zoomInTipLabel:"Zoom in",l=void 0!==e.zoomOutTipLabel?e.zoomOutTipLabel:"Zoom out",c=document.createElement("button");c.className=r,c.setAttribute("type","button"),c.title=a,c.appendChild("string"===typeof o?document.createTextNode(o):o),c.addEventListener(HR,this.handleClick_.bind(this,n),!1);const u=document.createElement("button");u.className=i,u.setAttribute("type","button"),u.title=l,u.appendChild("string"===typeof s?document.createTextNode(s):s),u.addEventListener(HR,this.handleClick_.bind(this,-n),!1);const d=t+" "+EZ+" "+PZ,h=this.element;h.className=d,h.appendChild(c),h.appendChild(u),this.duration_=void 0!==e.duration?e.duration:250}handleClick_(e,t){t.preventDefault(),this.zoomByDelta_(e)}zoomByDelta_(e){const t=this.getMap().getView();if(!t)return;const n=t.getZoom();if(void 0!==n){const r=t.getConstrainedZoom(n+e);this.duration_>0?(t.getAnimating()&&t.cancelAnimations(),t.animate({zoom:r,duration:this.duration_,easing:wD})):t.setZoom(r)}}};function qJ(e){e=e||{};const t=new QX;(void 0===e.zoom||e.zoom)&&t.push(new HJ(e.zoomOptions));(void 0===e.rotate||e.rotate)&&t.push(new WJ(e.rotateOptions));return(void 0===e.attribution||e.attribution)&&t.push(new UJ(e.attributionOptions)),t}const XJ="active";function YJ(e,t,n,r){const i=e.getZoom();if(void 0===i)return;const o=e.getConstrainedZoom(i+t),s=e.getResolutionForZoom(o);e.getAnimating()&&e.cancelAnimations(),e.animate({resolution:s,anchor:n,duration:void 0!==r?r:250,easing:wD})}const KJ=class extends SN{constructor(e){super(),this.on,this.once,this.un,e&&e.handleEvent&&(this.handleEvent=e.handleEvent),this.map_=null,this.setActive(!0)}getActive(){return this.get(XJ)}getMap(){return this.map_}handleEvent(e){return!0}setActive(e){this.set(XJ,e)}setMap(e){this.map_=e}};const ZJ=class extends KJ{constructor(e){super(),e=e||{},this.delta_=e.delta?e.delta:1,this.duration_=void 0!==e.duration?e.duration:250}handleEvent(e){let t=!1;if(e.type==CJ.DBLCLICK){const n=e.originalEvent,r=e.map,i=e.coordinate,o=n.shiftKey?-this.delta_:this.delta_;YJ(r.getView(),o,i,this.duration_),n.preventDefault(),t=!0}return!t}};function $J(e){const t=e.length;let n=0,r=0;for(let i=0;i<t;i++)n+=e[i].clientX,r+=e[i].clientY;return{clientX:n/t,clientY:r/t}}const JJ=class extends KJ{constructor(e){super(e=e||{}),e.handleDownEvent&&(this.handleDownEvent=e.handleDownEvent),e.handleDragEvent&&(this.handleDragEvent=e.handleDragEvent),e.handleMoveEvent&&(this.handleMoveEvent=e.handleMoveEvent),e.handleUpEvent&&(this.handleUpEvent=e.handleUpEvent),e.stopDown&&(this.stopDown=e.stopDown),this.handlingDownUpSequence=!1,this.targetPointers=[]}getPointerCount(){return this.targetPointers.length}handleDownEvent(e){return!1}handleDragEvent(e){}handleEvent(e){if(!e.originalEvent)return!0;let t=!1;if(this.updateTrackedPointers_(e),this.handlingDownUpSequence){if(e.type==CJ.POINTERDRAG)this.handleDragEvent(e),e.originalEvent.preventDefault();else if(e.type==CJ.POINTERUP){const t=this.handleUpEvent(e);this.handlingDownUpSequence=t&&this.targetPointers.length>0}}else if(e.type==CJ.POINTERDOWN){const n=this.handleDownEvent(e);this.handlingDownUpSequence=n,t=this.stopDown(n)}else e.type==CJ.POINTERMOVE&&this.handleMoveEvent(e);return!t}handleMoveEvent(e){}handleUpEvent(e){return!1}stopDown(e){return e}updateTrackedPointers_(e){e.activePointers&&(this.targetPointers=e.activePointers)}};function QJ(e){const t=arguments;return function(e){let n=!0;for(let r=0,i=t.length;r<i&&(n=n&&t[r](e),n);++r);return n}}const eQ=function(e){const t=e.originalEvent;return t.altKey&&!(t.metaKey||t.ctrlKey)&&t.shiftKey},tQ=function(e){const t=e.map.getTargetElement(),n=t.getRootNode();return!(n instanceof ShadowRoot?n.host:t).hasAttribute("tabindex")||function(e){const t=e.map.getTargetElement(),n=t.getRootNode(),r=e.map.getOwnerDocument().activeElement;return n instanceof ShadowRoot?n.host.contains(r):t.contains(r)}(e)},nQ=sD,rQ=function(e){const t=e.originalEvent;return 0==t.button&&!(ID&&GD&&t.ctrlKey)},iQ=aD,oQ=function(e){return e.type==CJ.SINGLECLICK},sQ=function(e){const t=e.originalEvent;return!t.altKey&&!(t.metaKey||t.ctrlKey)&&!t.shiftKey},aQ=function(e){const t=e.originalEvent;return!t.altKey&&!(t.metaKey||t.ctrlKey)&&t.shiftKey},lQ=function(e){const t=e.originalEvent,n=t.target.tagName;return"INPUT"!==n&&"SELECT"!==n&&"TEXTAREA"!==n&&!t.target.isContentEditable},cQ=function(e){const t=e.originalEvent;return lN(void 0!==t,"mapBrowserEvent must originate from a pointer event"),"mouse"==t.pointerType},uQ=function(e){const t=e.originalEvent;return lN(void 0!==t,"mapBrowserEvent must originate from a pointer event"),t.isPrimary&&0===t.button};const dQ=class extends JJ{constructor(e){super({stopDown:aD}),e=e||{},this.kinetic_=e.kinetic,this.lastCentroid=null,this.lastPointersCount_,this.panning_=!1;const t=e.condition?e.condition:QJ(sQ,uQ);this.condition_=e.onFocusOnly?QJ(tQ,t):t,this.noKinetic_=!1}handleDragEvent(e){const t=e.map;this.panning_||(this.panning_=!0,t.getView().beginInteraction());const n=this.targetPointers,r=t.getEventPixel($J(n));if(n.length==this.lastPointersCount_){if(this.kinetic_&&this.kinetic_.update(r[0],r[1]),this.lastCentroid){const t=[this.lastCentroid[0]-r[0],r[1]-this.lastCentroid[1]],n=e.map.getView();eR(t,n.getResolution()),QO(t,n.getRotation()),n.adjustCenterInternal(t)}}else this.kinetic_&&this.kinetic_.begin();this.lastCentroid=r,this.lastPointersCount_=n.length,e.originalEvent.preventDefault()}handleUpEvent(e){const t=e.map,n=t.getView();if(0===this.targetPointers.length){if(!this.noKinetic_&&this.kinetic_&&this.kinetic_.end()){const e=this.kinetic_.getDistance(),r=this.kinetic_.getAngle(),i=n.getCenterInternal(),o=t.getPixelFromCoordinateInternal(i),s=t.getCoordinateFromPixelInternal([o[0]-e*Math.cos(r),o[1]-e*Math.sin(r)]);n.animateInternal({center:n.getConstrainedCenter(s),duration:500,easing:wD})}return this.panning_&&(this.panning_=!1,n.endInteraction()),!1}return this.kinetic_&&this.kinetic_.begin(),this.lastCentroid=null,!0}handleDownEvent(e){if(this.targetPointers.length>0&&this.condition_(e)){const t=e.map.getView();return this.lastCentroid=null,t.getAnimating()&&t.cancelAnimations(),this.kinetic_&&this.kinetic_.begin(),this.noKinetic_=this.targetPointers.length>1,!0}return!1}};const hQ=class extends JJ{constructor(e){e=e||{},super({stopDown:aD}),this.condition_=e.condition?e.condition:eQ,this.lastAngle_=void 0,this.duration_=void 0!==e.duration?e.duration:250}handleDragEvent(e){if(!cQ(e))return;const t=e.map,n=t.getView();if(n.getConstraints().rotation===EY)return;const r=t.getSize(),i=e.pixel,o=Math.atan2(r[1]/2-i[1],i[0]-r[0]/2);if(void 0!==this.lastAngle_){const e=o-this.lastAngle_;n.adjustRotationInternal(-e)}this.lastAngle_=o}handleUpEvent(e){if(!cQ(e))return!0;return e.map.getView().endInteraction(this.duration_),!1}handleDownEvent(e){if(!cQ(e))return!1;if(rQ(e)&&this.condition_(e)){return e.map.getView().beginInteraction(),this.lastAngle_=void 0,!0}return!1}};const pQ=class extends JR{constructor(e){super(),this.geometry_=null,this.element_=document.createElement("div"),this.element_.style.position="absolute",this.element_.style.pointerEvents="auto",this.element_.className="ol-box "+e,this.map_=null,this.startPixel_=null,this.endPixel_=null}disposeInternal(){this.setMap(null)}render_(){const e=this.startPixel_,t=this.endPixel_,n="px",r=this.element_.style;r.left=Math.min(e[0],t[0])+n,r.top=Math.min(e[1],t[1])+n,r.width=Math.abs(t[0]-e[0])+n,r.height=Math.abs(t[1]-e[1])+n}setMap(e){if(this.map_){this.map_.getOverlayContainer().removeChild(this.element_);const e=this.element_.style;e.left="inherit",e.top="inherit",e.width="inherit",e.height="inherit"}this.map_=e,this.map_&&this.map_.getOverlayContainer().appendChild(this.element_)}setPixels(e,t){this.startPixel_=e,this.endPixel_=t,this.createOrUpdateGeometry(),this.render_()}createOrUpdateGeometry(){if(!this.map_)return;const e=this.startPixel_,t=this.endPixel_,n=[e,[e[0],t[1]],t,[t[0],e[1]]].map(this.map_.getCoordinateFromPixelInternal,this.map_);n[4]=n[0].slice(),this.geometry_?this.geometry_.setCoordinates([n]):this.geometry_=new xK([n])}getGeometry(){return this.geometry_}},fQ="boxstart",gQ="boxdrag",mQ="boxend",yQ="boxcancel";class vQ extends QR{constructor(e,t,n){super(e),this.coordinate=t,this.mapBrowserEvent=n}}const _Q=class extends JJ{constructor(e){var t,n,r,i;super(),this.on,this.once,this.un,e=null!==(t=e)&&void 0!==t?t:{},this.box_=new pQ(e.className||"ol-dragbox"),this.minArea_=null!==(n=e.minArea)&&void 0!==n?n:64,e.onBoxEnd&&(this.onBoxEnd=e.onBoxEnd),this.startPixel_=null,this.condition_=null!==(r=e.condition)&&void 0!==r?r:rQ,this.boxEndCondition_=null!==(i=e.boxEndCondition)&&void 0!==i?i:this.defaultBoxEndCondition}defaultBoxEndCondition(e,t,n){const r=n[0]-t[0],i=n[1]-t[1];return r*r+i*i>=this.minArea_}getGeometry(){return this.box_.getGeometry()}handleDragEvent(e){this.startPixel_&&(this.box_.setPixels(this.startPixel_,e.pixel),this.dispatchEvent(new vQ(gQ,e.coordinate,e)))}handleUpEvent(e){if(!this.startPixel_)return!1;const t=this.boxEndCondition_(e,this.startPixel_,e.pixel);return t&&this.onBoxEnd(e),this.dispatchEvent(new vQ(t?mQ:yQ,e.coordinate,e)),this.box_.setMap(null),this.startPixel_=null,!1}handleDownEvent(e){return!!this.condition_(e)&&(this.startPixel_=e.pixel,this.box_.setMap(e.map),this.box_.setPixels(this.startPixel_,this.startPixel_),this.dispatchEvent(new vQ(fQ,e.coordinate,e)),!0)}onBoxEnd(e){}setActive(e){e||(this.box_.setMap(null),this.startPixel_&&(this.dispatchEvent(new vQ(yQ,this.startPixel_,null)),this.startPixel_=null)),super.setActive(e)}setMap(e){this.getMap()&&(this.box_.setMap(null),this.startPixel_&&(this.dispatchEvent(new vQ(yQ,this.startPixel_,null)),this.startPixel_=null)),super.setMap(e)}};const bQ=class extends _Q{constructor(e){super({condition:(e=e||{}).condition?e.condition:aQ,className:e.className||"ol-dragzoom",minArea:e.minArea}),this.duration_=void 0!==e.duration?e.duration:200,this.out_=void 0!==e.out&&e.out}onBoxEnd(e){const t=this.getMap().getView();let n=this.getGeometry();if(this.out_){const e=t.rotatedExtentForGeometry(n),r=t.getResolutionForExtentInternal(e),i=t.getResolution()/r;n=n.clone(),n.scale(i*i)}t.fitInternal(n,{duration:this.duration_,easing:wD})}},xQ="ArrowLeft",SQ="ArrowUp",wQ="ArrowRight",EQ="ArrowDown";const PQ=class extends KJ{constructor(e){super(),e=e||{},this.defaultCondition_=function(e){return sQ(e)&&lQ(e)},this.condition_=void 0!==e.condition?e.condition:this.defaultCondition_,this.duration_=void 0!==e.duration?e.duration:100,this.pixelDelta_=void 0!==e.pixelDelta?e.pixelDelta:128}handleEvent(e){let t=!1;if(e.type==XR){const n=e.originalEvent,r=n.key;if(this.condition_(e)&&(r==EQ||r==xQ||r==wQ||r==SQ)){const i=e.map.getView(),o=i.getResolution()*this.pixelDelta_;let s=0,a=0;r==EQ?a=-o:r==xQ?s=-o:r==wQ?s=o:a=o;const l=[s,a];QO(l,i.getRotation()),function(e,t,n){const r=e.getCenterInternal();if(r){const i=[r[0]+t[0],r[1]+t[1]];e.animateInternal({duration:void 0!==n?n:250,easing:PD,center:e.getConstrainedCenter(i)})}}(i,l,this.duration_),n.preventDefault(),t=!0}}return!t}};const CQ=class extends KJ{constructor(e){super(),e=e||{},this.condition_=e.condition?e.condition:function(e){return!function(e){const t=e.originalEvent;return GD?t.metaKey:t.ctrlKey}(e)&&lQ(e)},this.delta_=e.delta?e.delta:1,this.duration_=void 0!==e.duration?e.duration:100}handleEvent(e){let t=!1;if(e.type==XR||e.type==YR){const n=e.originalEvent,r=n.key;if(this.condition_(e)&&("+"===r||"-"===r)){const i=e.map,o="+"===r?this.delta_:-this.delta_;YJ(i.getView(),o,void 0,this.duration_),n.preventDefault(),t=!0}}return!t}};const AQ=class{constructor(e,t,n){this.decay_=e,this.minVelocity_=t,this.delay_=n,this.points_=[],this.angle_=0,this.initialVelocity_=0}begin(){this.points_.length=0,this.angle_=0,this.initialVelocity_=0}update(e,t){this.points_.push(e,t,Date.now())}end(){if(this.points_.length<6)return!1;const e=Date.now()-this.delay_,t=this.points_.length-3;if(this.points_[t+2]<e)return!1;let n=t-3;for(;n>0&&this.points_[n+2]>e;)n-=3;const r=this.points_[t+2]-this.points_[n+2];if(r<1e3/60)return!1;const i=this.points_[t]-this.points_[n],o=this.points_[t+1]-this.points_[n+1];return this.angle_=Math.atan2(o,i),this.initialVelocity_=Math.sqrt(i*i+o*o)/r,this.initialVelocity_>this.minVelocity_}getDistance(){return(this.minVelocity_-this.initialVelocity_)/this.decay_}getAngle(){return this.angle_}};const kQ=class extends KJ{constructor(e){super(e=e||{}),this.totalDelta_=0,this.lastDelta_=0,this.maxDelta_=void 0!==e.maxDelta?e.maxDelta:1,this.duration_=void 0!==e.duration?e.duration:250,this.timeout_=void 0!==e.timeout?e.timeout:80,this.useAnchor_=void 0===e.useAnchor||e.useAnchor,this.constrainResolution_=void 0!==e.constrainResolution&&e.constrainResolution;const t=e.condition?e.condition:nQ;this.condition_=e.onFocusOnly?QJ(tQ,t):t,this.lastAnchor_=null,this.startTime_=void 0,this.timeoutId_,this.mode_=void 0,this.trackpadEventGap_=400,this.trackpadTimeoutId_,this.deltaPerZoom_=300}endInteraction_(){this.trackpadTimeoutId_=void 0;const e=this.getMap();if(!e)return;e.getView().endInteraction(void 0,this.lastDelta_?this.lastDelta_>0?1:-1:0,this.lastAnchor_)}handleEvent(e){if(!this.condition_(e))return!0;if(e.type!==$R)return!0;const t=e.map,n=e.originalEvent;let r;if(n.preventDefault(),this.useAnchor_&&(this.lastAnchor_=e.coordinate),e.type==$R&&(r=n.deltaY,kD&&n.deltaMode===WheelEvent.DOM_DELTA_PIXEL&&(r/=TD),n.deltaMode===WheelEvent.DOM_DELTA_LINE&&(r*=40)),0===r)return!1;this.lastDelta_=r;const i=Date.now();void 0===this.startTime_&&(this.startTime_=i),(!this.mode_||i-this.startTime_>this.trackpadEventGap_)&&(this.mode_=Math.abs(r)<4?"trackpad":"wheel");const o=t.getView();if("trackpad"===this.mode_&&!o.getConstrainResolution()&&!this.constrainResolution_)return this.trackpadTimeoutId_?clearTimeout(this.trackpadTimeoutId_):(o.getAnimating()&&o.cancelAnimations(),o.beginInteraction()),this.trackpadTimeoutId_=setTimeout(this.endInteraction_.bind(this),this.timeout_),o.adjustZoom(-r/this.deltaPerZoom_,this.lastAnchor_),this.startTime_=i,!1;this.totalDelta_+=r;const s=Math.max(this.timeout_-(i-this.startTime_),0);return clearTimeout(this.timeoutId_),this.timeoutId_=setTimeout(this.handleWheelZoom_.bind(this,t),s),!1}handleWheelZoom_(e){const t=e.getView();t.getAnimating()&&t.cancelAnimations();let n=-VO(this.totalDelta_,-this.maxDelta_*this.deltaPerZoom_,this.maxDelta_*this.deltaPerZoom_)/this.deltaPerZoom_;(t.getConstrainResolution()||this.constrainResolution_)&&(n=n?n>0?1:-1:0),YJ(t,n,this.lastAnchor_,this.duration_),this.mode_=void 0,this.totalDelta_=0,this.lastAnchor_=null,this.startTime_=void 0,this.timeoutId_=void 0}setMouseAnchor(e){this.useAnchor_=e,e||(this.lastAnchor_=null)}};const jQ=class extends JJ{constructor(e){const t=e=e||{};t.stopDown||(t.stopDown=aD),super(t),this.anchor_=null,this.lastAngle_=void 0,this.rotating_=!1,this.rotationDelta_=0,this.threshold_=void 0!==e.threshold?e.threshold:.3,this.duration_=void 0!==e.duration?e.duration:250}handleDragEvent(e){let t=0;const n=this.targetPointers[0],r=this.targetPointers[1],i=Math.atan2(r.clientY-n.clientY,r.clientX-n.clientX);if(void 0!==this.lastAngle_){const e=i-this.lastAngle_;this.rotationDelta_+=e,!this.rotating_&&Math.abs(this.rotationDelta_)>this.threshold_&&(this.rotating_=!0),t=e}this.lastAngle_=i;const o=e.map,s=o.getView();s.getConstraints().rotation!==EY&&(this.anchor_=o.getCoordinateFromPixelInternal(o.getEventPixel($J(this.targetPointers))),this.rotating_&&(o.render(),s.adjustRotationInternal(t,this.anchor_)))}handleUpEvent(e){if(this.targetPointers.length<2){return e.map.getView().endInteraction(this.duration_),!1}return!0}handleDownEvent(e){if(this.targetPointers.length>=2){const t=e.map;return this.anchor_=null,this.lastAngle_=void 0,this.rotating_=!1,this.rotationDelta_=0,this.handlingDownUpSequence||t.getView().beginInteraction(),!0}return!1}};const IQ=class extends JJ{constructor(e){const t=e=e||{};t.stopDown||(t.stopDown=aD),super(t),this.anchor_=null,this.duration_=void 0!==e.duration?e.duration:400,this.lastDistance_=void 0,this.lastScaleDelta_=1}handleDragEvent(e){let t=1;const n=this.targetPointers[0],r=this.targetPointers[1],i=n.clientX-r.clientX,o=n.clientY-r.clientY,s=Math.sqrt(i*i+o*o);void 0!==this.lastDistance_&&(t=this.lastDistance_/s),this.lastDistance_=s;const a=e.map,l=a.getView();1!=t&&(this.lastScaleDelta_=t),this.anchor_=a.getCoordinateFromPixelInternal(a.getEventPixel($J(this.targetPointers))),a.render(),l.adjustResolutionInternal(t,this.anchor_)}handleUpEvent(e){if(this.targetPointers.length<2){const t=e.map.getView(),n=this.lastScaleDelta_>1?1:-1;return t.endInteraction(this.duration_,n),!1}return!0}handleDownEvent(e){if(this.targetPointers.length>=2){const t=e.map;return this.anchor_=null,this.lastDistance_=void 0,this.lastScaleDelta_=1,this.handlingDownUpSequence||t.getView().beginInteraction(),!0}return!1}};function GQ(e){e=e||{};const t=new QX,n=new AQ(-.005,.05,100);(void 0===e.altShiftDragRotate||e.altShiftDragRotate)&&t.push(new hQ);(void 0===e.doubleClickZoom||e.doubleClickZoom)&&t.push(new ZJ({delta:e.zoomDelta,duration:e.zoomDuration}));(void 0===e.dragPan||e.dragPan)&&t.push(new dQ({onFocusOnly:e.onFocusOnly,kinetic:n}));(void 0===e.pinchRotate||e.pinchRotate)&&t.push(new jQ);(void 0===e.pinchZoom||e.pinchZoom)&&t.push(new IQ({duration:e.zoomDuration}));(void 0===e.keyboard||e.keyboard)&&(t.push(new PQ),t.push(new CQ({delta:e.zoomDelta,duration:e.zoomDuration})));(void 0===e.mouseWheelZoom||e.mouseWheelZoom)&&t.push(new kQ({onFocusOnly:e.onFocusOnly,duration:e.zoomDuration}));return(void 0===e.shiftDragZoom||e.shiftDragZoom)&&t.push(new bQ({duration:e.zoomDuration})),t}function TQ(e){e instanceof jK?e.setMapInternal(null):e instanceof wJ&&e.getLayers().forEach(TQ)}function MQ(e,t){if(e instanceof jK)e.setMapInternal(t);else if(e instanceof wJ){const n=e.getLayers().getArray();for(let e=0,r=n.length;e<r;++e)MQ(n[e],t)}}const OQ=class extends SN{constructor(e){super(),e=e||{},this.on,this.once,this.un;const t=function(e){let t=null;void 0!==e.keyboardEventTarget&&(t="string"===typeof e.keyboardEventTarget?document.getElementById(e.keyboardEventTarget):e.keyboardEventTarget);const n={},r=e.layers&&"function"===typeof e.layers.getLayers?e.layers:new wJ({layers:e.layers});let i,o,s;n[RJ]=r,n[NJ]=e.target,n[LJ]=e.view instanceof AK?e.view:new AK,void 0!==e.controls&&(Array.isArray(e.controls)?i=new QX(e.controls.slice()):(lN("function"===typeof e.controls.getArray,"Expected `controls` to be an array or an `ol/Collection.js`"),i=e.controls));void 0!==e.interactions&&(Array.isArray(e.interactions)?o=new QX(e.interactions.slice()):(lN("function"===typeof e.interactions.getArray,"Expected `interactions` to be an array or an `ol/Collection.js`"),o=e.interactions));void 0!==e.overlays?Array.isArray(e.overlays)?s=new QX(e.overlays.slice()):(lN("function"===typeof e.overlays.getArray,"Expected `overlays` to be an array or an `ol/Collection.js`"),s=e.overlays):s=new QX;return{controls:i,interactions:o,keyboardEventTarget:t,overlays:s,values:n}}(e);this.renderComplete_=!1,this.loaded_=!0,this.boundHandleBrowserEvent_=this.handleBrowserEvent.bind(this),this.maxTilesLoading_=void 0!==e.maxTilesLoading?e.maxTilesLoading:16,this.pixelRatio_=void 0!==e.pixelRatio?e.pixelRatio:TD,this.postRenderTimeoutHandle_,this.animationDelayKey_,this.animationDelay_=this.animationDelay_.bind(this),this.coordinateToPixelTransform_=[1,0,0,1,0,0],this.pixelToCoordinateTransform_=[1,0,0,1,0,0],this.frameIndex_=0,this.frameState_=null,this.previousExtent_=null,this.viewPropertyListenerKey_=null,this.viewChangeListenerKey_=null,this.layerGroupPropertyListenerKeys_=null,this.viewport_=document.createElement("div"),this.viewport_.className="ol-viewport"+("ontouchstart"in window?" ol-touch":""),this.viewport_.style.position="relative",this.viewport_.style.overflow="hidden",this.viewport_.style.width="100%",this.viewport_.style.height="100%",this.overlayContainer_=document.createElement("div"),this.overlayContainer_.style.position="absolute",this.overlayContainer_.style.zIndex="0",this.overlayContainer_.style.width="100%",this.overlayContainer_.style.height="100%",this.overlayContainer_.style.pointerEvents="none",this.overlayContainer_.className="ol-overlaycontainer",this.viewport_.appendChild(this.overlayContainer_),this.overlayContainerStopEvent_=document.createElement("div"),this.overlayContainerStopEvent_.style.position="absolute",this.overlayContainerStopEvent_.style.zIndex="0",this.overlayContainerStopEvent_.style.width="100%",this.overlayContainerStopEvent_.style.height="100%",this.overlayContainerStopEvent_.style.pointerEvents="none",this.overlayContainerStopEvent_.className="ol-overlaycontainer-stopevent",this.viewport_.appendChild(this.overlayContainerStopEvent_),this.mapBrowserEventHandler_=null,this.moveTolerance_=e.moveTolerance,this.keyboardEventTarget_=t.keyboardEventTarget,this.targetChangeHandlerKeys_=null,this.targetElement_=null,this.resizeObserver_=new ResizeObserver((()=>this.updateSize())),this.controls=t.controls||qJ(),this.interactions=t.interactions||GQ({onFocusOnly:!0}),this.overlays_=t.overlays,this.overlayIdIndex_={},this.renderer_=null,this.postRenderFunctions_=[],this.tileQueue_=new zJ(this.getTilePriority.bind(this),this.handleTileChange_.bind(this)),this.addChangeListener(RJ,this.handleLayerGroupChanged_),this.addChangeListener(LJ,this.handleViewChanged_),this.addChangeListener(DJ,this.handleSizeChanged_),this.addChangeListener(NJ,this.handleTargetChanged_),this.setProperties(t.values);const n=this;!e.view||e.view instanceof AK||e.view.then((function(e){n.setView(new AK(e))})),this.controls.addEventListener(KX,(e=>{e.element.setMap(this)})),this.controls.addEventListener(ZX,(e=>{e.element.setMap(null)})),this.interactions.addEventListener(KX,(e=>{e.element.setMap(this)})),this.interactions.addEventListener(ZX,(e=>{e.element.setMap(null)})),this.overlays_.addEventListener(KX,(e=>{this.addOverlayInternal_(e.element)})),this.overlays_.addEventListener(ZX,(e=>{const t=e.element.getId();void 0!==t&&delete this.overlayIdIndex_[t.toString()],e.element.setMap(null)})),this.controls.forEach((e=>{e.setMap(this)})),this.interactions.forEach((e=>{e.setMap(this)})),this.overlays_.forEach(this.addOverlayInternal_.bind(this))}addControl(e){this.getControls().push(e)}addInteraction(e){this.getInteractions().push(e)}addLayer(e){this.getLayerGroup().getLayers().push(e)}handleLayerAdd_(e){MQ(e.layer,this)}addOverlay(e){this.getOverlays().push(e)}addOverlayInternal_(e){const t=e.getId();void 0!==t&&(this.overlayIdIndex_[t.toString()]=e),e.setMap(this)}disposeInternal(){this.controls.clear(),this.interactions.clear(),this.overlays_.clear(),this.resizeObserver_.disconnect(),this.setTarget(null),super.disposeInternal()}forEachFeatureAtPixel(e,t,n){if(!this.frameState_||!this.renderer_)return;const r=this.getCoordinateFromPixelInternal(e),i=void 0!==(n=void 0!==n?n:{}).hitTolerance?n.hitTolerance:0,o=void 0!==n.layerFilter?n.layerFilter:sD,s=!1!==n.checkWrapped;return this.renderer_.forEachFeatureAtCoordinate(r,this.frameState_,i,s,t,null,o,null)}getFeaturesAtPixel(e,t){const n=[];return this.forEachFeatureAtPixel(e,(function(e){n.push(e)}),t),n}getAllLayers(){const e=[];return function t(n){n.forEach((function(n){n instanceof wJ?t(n.getLayers()):e.push(n)}))}(this.getLayers()),e}hasFeatureAtPixel(e,t){if(!this.frameState_||!this.renderer_)return!1;const n=this.getCoordinateFromPixelInternal(e),r=void 0!==(t=void 0!==t?t:{}).layerFilter?t.layerFilter:sD,i=void 0!==t.hitTolerance?t.hitTolerance:0,o=!1!==t.checkWrapped;return this.renderer_.hasFeatureAtCoordinate(n,this.frameState_,i,o,r,null)}getEventCoordinate(e){return this.getCoordinateFromPixel(this.getEventPixel(e))}getEventCoordinateInternal(e){return this.getCoordinateFromPixelInternal(this.getEventPixel(e))}getEventPixel(e){const t=this.viewport_.getBoundingClientRect(),n=this.getSize(),r=t.width/n[0],i=t.height/n[1],o="changedTouches"in e?e.changedTouches[0]:e;return[(o.clientX-t.left)/r,(o.clientY-t.top)/i]}getTarget(){return this.get(NJ)}getTargetElement(){return this.targetElement_}getCoordinateFromPixel(e){return DR(this.getCoordinateFromPixelInternal(e),this.getView().getProjection())}getCoordinateFromPixelInternal(e){const t=this.frameState_;return t?jY(t.pixelToCoordinateTransform,e.slice()):null}getControls(){return this.controls}getOverlays(){return this.overlays_}getOverlayById(e){const t=this.overlayIdIndex_[e.toString()];return void 0!==t?t:null}getInteractions(){return this.interactions}getLayerGroup(){return this.get(RJ)}setLayers(e){const t=this.getLayerGroup();if(e instanceof QX)return void t.setLayers(e);const n=t.getLayers();n.clear(),n.extend(e)}getLayers(){return this.getLayerGroup().getLayers()}getLoadingOrNotReady(){const e=this.getLayerGroup().getLayerStatesArray();for(let t=0,n=e.length;t<n;++t){const n=e[t];if(!n.visible)continue;const r=n.layer.getRenderer();if(r&&!r.ready)return!0;const i=n.layer.getSource();if(i&&i.loading)return!0}return!1}getPixelFromCoordinate(e){const t=NR(e,this.getView().getProjection());return this.getPixelFromCoordinateInternal(t)}getPixelFromCoordinateInternal(e){const t=this.frameState_;return t?jY(t.coordinateToPixelTransform,e.slice(0,2)):null}getRenderer(){return this.renderer_}getSize(){return this.get(DJ)}getView(){return this.get(LJ)}getViewport(){return this.viewport_}getOverlayContainer(){return this.overlayContainer_}getOverlayContainerStopEvent(){return this.overlayContainerStopEvent_}getOwnerDocument(){const e=this.getTargetElement();return e?e.ownerDocument:document}getTilePriority(e,t,n,r){return function(e,t,n,r,i){if(!e||!(n in e.wantedTiles))return VJ;if(!e.wantedTiles[n][t.getKey()])return VJ;const o=e.viewState.center,s=r[0]-o[0],a=r[1]-o[1];return 65536*Math.log(i)+Math.sqrt(s*s+a*a)/i}(this.frameState_,e,t,n,r)}handleBrowserEvent(e,t){t=t||e.type;const n=new PJ(t,this,e);this.handleMapBrowserEvent(n)}handleMapBrowserEvent(e){if(!this.frameState_)return;const t=e.originalEvent,n=t.type;if(n===kJ||n===$R||n===XR){const e=this.getOwnerDocument(),n=this.viewport_.getRootNode?this.viewport_.getRootNode():e,r=t.target,i=n instanceof ShadowRoot?n.host===r?n.host.ownerDocument:n:n===e?e.documentElement:n;if(this.overlayContainerStopEvent_.contains(r)||!i.contains(r))return}if(e.frameState=this.frameState_,!1!==this.dispatchEvent(e)){const t=this.getInteractions().getArray().slice();for(let n=t.length-1;n>=0;n--){const r=t[n];if(r.getMap()!==this||!r.getActive()||!this.getTargetElement())continue;if(!r.handleEvent(e)||e.propagationStopped)break}}}handlePostRender(){const e=this.frameState_,t=this.tileQueue_;if(!t.isEmpty()){let n=this.maxTilesLoading_,r=n;if(e){const t=e.viewHints;if(t[mY]||t[yY]){const t=Date.now()-e.time>8;n=t?0:8,r=t?0:2}}t.getTilesLoading()<n&&(t.reprioritize(),t.loadMoreTiles(n,r))}e&&this.renderer_&&!e.animate&&(this.renderComplete_?(this.hasListener(gY)&&this.renderer_.dispatchRenderEvent(gY,e),!1===this.loaded_&&(this.loaded_=!0,this.dispatchEvent(new EJ(OJ,this,e)))):!0===this.loaded_&&(this.loaded_=!1,this.dispatchEvent(new EJ(MJ,this,e))));const n=this.postRenderFunctions_;for(let r=0,i=n.length;r<i;++r)n[r](this,e);n.length=0}handleSizeChanged_(){this.getView()&&!this.getView().getAnimating()&&this.getView().resolveConstraints(0),this.render()}handleTargetChanged_(){if(this.mapBrowserEventHandler_){for(let e=0,t=this.targetChangeHandlerKeys_.length;e<t;++e)YD(this.targetChangeHandlerKeys_[e]);this.targetChangeHandlerKeys_=null,this.viewport_.removeEventListener(WR,this.boundHandleBrowserEvent_),this.viewport_.removeEventListener($R,this.boundHandleBrowserEvent_),this.mapBrowserEventHandler_.dispose(),this.mapBrowserEventHandler_=null,this.viewport_.remove()}if(this.targetElement_){this.resizeObserver_.unobserve(this.targetElement_);const e=this.targetElement_.getRootNode();e instanceof ShadowRoot&&this.resizeObserver_.unobserve(e.host),this.setSize(void 0)}const e=this.getTarget(),t="string"===typeof e?document.getElementById(e):e;if(this.targetElement_=t,t){t.appendChild(this.viewport_),this.renderer_||(this.renderer_=new _J(this)),this.mapBrowserEventHandler_=new jJ(this,this.moveTolerance_);for(const t in CJ)this.mapBrowserEventHandler_.addEventListener(CJ[t],this.handleMapBrowserEvent.bind(this));let e;if(this.viewport_.addEventListener(WR,this.boundHandleBrowserEvent_,!1),this.viewport_.addEventListener($R,this.boundHandleBrowserEvent_,!!DD&&{passive:!1}),this.keyboardEventTarget_)e=this.keyboardEventTarget_;else{const n=t.getRootNode();e=n instanceof ShadowRoot?n.host:t}this.targetChangeHandlerKeys_=[qD(e,XR,this.handleBrowserEvent,this),qD(e,YR,this.handleBrowserEvent,this)];const n=t.getRootNode();n instanceof ShadowRoot&&this.resizeObserver_.observe(n.host),this.resizeObserver_.observe(t)}else this.renderer_&&(clearTimeout(this.postRenderTimeoutHandle_),this.postRenderTimeoutHandle_=void 0,this.postRenderFunctions_.length=0,this.renderer_.dispose(),this.renderer_=null),this.animationDelayKey_&&(cancelAnimationFrame(this.animationDelayKey_),this.animationDelayKey_=void 0);this.updateSize()}handleTileChange_(){this.render()}handleViewPropertyChanged_(){this.render()}handleViewChanged_(){this.viewPropertyListenerKey_&&(YD(this.viewPropertyListenerKey_),this.viewPropertyListenerKey_=null),this.viewChangeListenerKey_&&(YD(this.viewChangeListenerKey_),this.viewChangeListenerKey_=null);const e=this.getView();e&&(this.updateViewportSize_(this.getSize()),this.viewPropertyListenerKey_=qD(e,yN,this.handleViewPropertyChanged_,this),this.viewChangeListenerKey_=qD(e,BR,this.handleViewPropertyChanged_,this),e.resolveConstraints(0)),this.render()}handleLayerGroupChanged_(){this.layerGroupPropertyListenerKeys_&&(this.layerGroupPropertyListenerKeys_.forEach(YD),this.layerGroupPropertyListenerKeys_=null);const e=this.getLayerGroup();e&&(this.handleLayerAdd_(new bJ("addlayer",e)),this.layerGroupPropertyListenerKeys_=[qD(e,yN,this.render,this),qD(e,BR,this.render,this),qD(e,"addlayer",this.handleLayerAdd_,this),qD(e,"removelayer",this.handleLayerRemove_,this)]),this.render()}isRendered(){return!!this.frameState_}animationDelay_(){this.animationDelayKey_=void 0,this.renderFrame_(Date.now())}renderSync(){this.animationDelayKey_&&cancelAnimationFrame(this.animationDelayKey_),this.animationDelay_()}redrawText(){const e=this.getLayerGroup().getLayerStatesArray();for(let t=0,n=e.length;t<n;++t){const n=e[t].layer;n.hasRenderer()&&n.getRenderer().handleFontsChanged()}}render(){this.renderer_&&void 0===this.animationDelayKey_&&(this.animationDelayKey_=requestAnimationFrame(this.animationDelay_))}removeControl(e){return this.getControls().remove(e)}removeInteraction(e){return this.getInteractions().remove(e)}removeLayer(e){return this.getLayerGroup().getLayers().remove(e)}handleLayerRemove_(e){TQ(e.layer)}removeOverlay(e){return this.getOverlays().remove(e)}renderFrame_(e){const t=this.getSize(),n=this.getView(),r=this.frameState_;let i=null;if(void 0!==t&&NN(t)&&n&&n.isDef()){const r=n.getHints(this.frameState_?this.frameState_.viewHints:void 0),o=n.getState();if(i={animate:!1,coordinateToPixelTransform:this.coordinateToPixelTransform_,declutter:null,extent:sO(o.center,o.resolution,o.rotation,t),index:this.frameIndex_++,layerIndex:0,layerStatesArray:this.getLayerGroup().getLayerStatesArray(),pixelRatio:this.pixelRatio_,pixelToCoordinateTransform:this.pixelToCoordinateTransform_,postRenderFunctions:[],size:t,tileQueue:this.tileQueue_,time:e,usedTiles:{},viewState:o,viewHints:r,wantedTiles:{},mapId:xD(this),renderTargets:{}},o.nextCenter&&o.nextResolution){const e=isNaN(o.nextRotation)?o.rotation:o.nextRotation;i.nextExtent=sO(o.nextCenter,o.nextResolution,e,t)}}if(this.frameState_=i,this.renderer_.renderFrame(i),i){if(i.animate&&this.render(),Array.prototype.push.apply(this.postRenderFunctions_,i.postRenderFunctions),r){(!this.previousExtent_||!pO(this.previousExtent_)&&!KM(i.extent,this.previousExtent_))&&(this.dispatchEvent(new EJ(GJ,this,r)),this.previousExtent_=qM(this.previousExtent_))}this.previousExtent_&&!i.viewHints[mY]&&!i.viewHints[yY]&&!KM(i.extent,this.previousExtent_)&&(this.dispatchEvent(new EJ(TJ,this,i)),LM(i.extent,this.previousExtent_))}this.dispatchEvent(new EJ(IJ,this,i)),this.renderComplete_=(this.hasListener(MJ)||this.hasListener(OJ)||this.hasListener(gY))&&!this.tileQueue_.getTilesLoading()&&!this.tileQueue_.getCount()&&!this.getLoadingOrNotReady(),this.postRenderTimeoutHandle_||(this.postRenderTimeoutHandle_=setTimeout((()=>{this.postRenderTimeoutHandle_=void 0,this.handlePostRender()}),0))}setLayerGroup(e){const t=this.getLayerGroup();t&&this.handleLayerRemove_(new bJ("removelayer",t)),this.set(RJ,e)}setSize(e){this.set(DJ,e)}setTarget(e){this.set(NJ,e)}setView(e){if(!e||e instanceof AK)return void this.set(LJ,e);this.set(LJ,new AK);const t=this;e.then((function(e){t.setView(new AK(e))}))}updateSize(){const e=this.getTargetElement();let t;if(e){const n=getComputedStyle(e),r=e.offsetWidth-parseFloat(n.borderLeftWidth)-parseFloat(n.paddingLeft)-parseFloat(n.paddingRight)-parseFloat(n.borderRightWidth),i=e.offsetHeight-parseFloat(n.borderTopWidth)-parseFloat(n.paddingTop)-parseFloat(n.paddingBottom)-parseFloat(n.borderBottomWidth);isNaN(r)||isNaN(i)||(t=[Math.max(0,r),Math.max(0,i)],!NN(t)&&(e.offsetWidth||e.offsetHeight||e.getClientRects().length)&&fR("No map visible because the map container's width or height are 0."))}const n=this.getSize();!t||n&&oD(t,n)||(this.setSize(t),this.updateViewportSize_(t))}updateViewportSize_(e){const t=this.getView();t&&t.setViewportSize(e)}},RQ="accuracy",DQ="accuracyGeometry",NQ="altitude",LQ="altitudeAccuracy",VQ="heading",FQ="position",zQ="projection",BQ="speed",UQ="tracking",WQ="trackingOptions",HQ="error";class qQ extends QR{constructor(e){super(HQ),this.code=e.code,this.message=e.message}}const XQ=class extends SN{constructor(e){super(),this.on,this.once,this.un,e=e||{},this.position_=null,this.transform_=_R,this.watchId_=void 0,this.addChangeListener(zQ,this.handleProjectionChanged_),this.addChangeListener(UQ,this.handleTrackingChanged_),void 0!==e.projection&&this.setProjection(e.projection),void 0!==e.trackingOptions&&this.setTrackingOptions(e.trackingOptions),this.setTracking(void 0!==e.tracking&&e.tracking)}disposeInternal(){this.setTracking(!1),super.disposeInternal()}handleProjectionChanged_(){const e=this.getProjection();e&&(this.transform_=IR(xR("EPSG:4326"),e),this.position_&&this.set(FQ,this.transform_(this.position_)))}handleTrackingChanged_(){if("geolocation"in navigator){const e=this.getTracking();e&&void 0===this.watchId_?this.watchId_=navigator.geolocation.watchPosition(this.positionChange_.bind(this),this.positionError_.bind(this),this.getTrackingOptions()):e||void 0===this.watchId_||(navigator.geolocation.clearWatch(this.watchId_),this.watchId_=void 0)}}positionChange_(e){const t=e.coords;this.set(RQ,t.accuracy),this.set(NQ,null===t.altitude?void 0:t.altitude),this.set(LQ,null===t.altitudeAccuracy?void 0:t.altitudeAccuracy),this.set(VQ,null===t.heading?void 0:UO(t.heading)),this.position_?(this.position_[0]=t.longitude,this.position_[1]=t.latitude):this.position_=[t.longitude,t.latitude];const n=this.transform_(this.position_);this.set(FQ,n.slice()),this.set(BQ,null===t.speed?void 0:t.speed);const r=function(e,t,n,r){n=n||32;const i=[];for(let o=0;o<n;++o)iD(i,dR(e,t,2*Math.PI*o/n,r));return i.push(i[0],i[1]),new bK(i,"XY",[i.length])}(this.position_,t.accuracy);r.applyTransform(this.transform_),this.set(DQ,r),this.changed()}positionError_(e){this.dispatchEvent(new qQ(e))}getAccuracy(){return this.get(RQ)}getAccuracyGeometry(){return this.get(DQ)||null}getAltitude(){return this.get(NQ)}getAltitudeAccuracy(){return this.get(LQ)}getHeading(){return this.get(VQ)}getPosition(){return this.get(FQ)}getProjection(){return this.get(zQ)}getSpeed(){return this.get(BQ)}getTracking(){return this.get(UQ)}getTrackingOptions(){return this.get(WQ)}setProjection(e){this.set(zQ,xR(e))}setTracking(e){this.set(UQ,e)}setTrackingOptions(e){this.set(WQ,e)}},YQ="preload",KQ="useInterimTilesOnError";const ZQ=class extends jK{constructor(e){e=e||{};const t=Object.assign({},e),n=e.cacheSize;delete e.cacheSize,delete t.preload,delete t.useInterimTilesOnError,super(t),this.on,this.once,this.un,this.cacheSize_=n,this.setPreload(void 0!==e.preload?e.preload:0),this.setUseInterimTilesOnError(void 0===e.useInterimTilesOnError||e.useInterimTilesOnError)}getCacheSize(){return this.cacheSize_}getPreload(){return this.get(YQ)}setPreload(e){this.set(YQ,e)}getUseInterimTilesOnError(){return this.get(KQ)}setUseInterimTilesOnError(e){this.set(KQ,e)}getData(e){return super.getData(e)}};const $Q=class extends bN{constructor(e){super(),this.ready=!0,this.boundHandleImageChange_=this.handleImageChange_.bind(this),this.layer_=e,this.staleKeys_=new Array,this.maxStaleKeys=5}getStaleKeys(){return this.staleKeys_}prependStaleKey(e){this.staleKeys_.unshift(e),this.staleKeys_.length>this.maxStaleKeys&&(this.staleKeys_.length=this.maxStaleKeys)}getFeatures(e){return _D()}getData(e){return null}prepareFrame(e){return _D()}renderFrame(e,t){return _D()}forEachFeatureAtCoordinate(e,t,n,r,i){}getLayer(){return this.layer_}handleFontsChanged(){}handleImageChange_(e){const t=e.target;t.getState()!==HD.LOADED&&t.getState()!==HD.ERROR||this.renderIfReadyAndVisible()}loadImage(e){let t=e.getState();return t!=HD.LOADED&&t!=HD.ERROR&&e.addEventListener(BR,this.boundHandleImageChange_),t==HD.IDLE&&(e.load(),t=e.getState()),t==HD.LOADED}renderIfReadyAndVisible(){const e=this.getLayer();e&&e.getVisible()&&"ready"===e.getSourceState()&&e.changed()}renderDeferred(e){}disposeInternal(){delete this.layer_,super.disposeInternal()}};const JQ=class{constructor(){var e=this;C(this,"pushMethodArgs_",(function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return e.instructions_[e.zIndex+e.offset_].push(n),e})),this.instructions_=[],this.zIndex=0,this.offset_=0,this.context_=new Proxy(VD(),{get:(e,t)=>{if("function"===typeof VD()[t])return this.instructions_[this.zIndex+this.offset_]||(this.instructions_[this.zIndex+this.offset_]=[]),this.instructions_[this.zIndex+this.offset_].push(t),this.pushMethodArgs_},set:(e,t,n)=>(this.instructions_[this.zIndex+this.offset_]||(this.instructions_[this.zIndex+this.offset_]=[]),this.instructions_[this.zIndex+this.offset_].push(t,n),!0)})}pushFunction(e){this.instructions_[this.zIndex+this.offset_].push(e)}getContext(){return this.context_}draw(e){this.instructions_.forEach((t=>{for(let n=0,r=t.length;n<r;++n){const r=t[n];if("function"===typeof r){r(e);continue}const i=t[++n];if("function"===typeof e[r])e[r](...i);else{if("function"===typeof i){e[r]=i(e);continue}e[r]=i}}}))}clear(){this.instructions_.length=0,this.zIndex=0,this.offset_=0}offset(){this.offset_=this.instructions_.length,this.zIndex=0}},QQ=[];let e0=null;const t0=class extends $Q{constructor(e){super(e),this.container=null,this.renderedResolution,this.tempTransform=[1,0,0,1,0,0],this.pixelTransform=[1,0,0,1,0,0],this.inversePixelTransform=[1,0,0,1,0,0],this.context=null,this.deferredContext_=null,this.containerReused=!1,this.frameState=null}getImageData(e,t,n){let r;e0||(e0=ND(1,1,void 0,{willReadFrequently:!0})),e0.clearRect(0,0,1,1);try{e0.drawImage(e,t,n,1,1,0,0,1,1),r=e0.getImageData(0,0,1,1).data}catch(i){return e0=null,null}return r}getBackground(e){let t=this.getLayer().getBackground();return"function"===typeof t&&(t=t(e.viewState.resolution)),t||void 0}useContainer(e,t,n){const r=this.getLayer().getClassName();let i,o;if(e&&e.className===r&&(!n||e&&e.style.backgroundColor&&oD(pZ(e.style.backgroundColor),pZ(n)))){const t=e.firstElementChild;t instanceof HTMLCanvasElement&&(o=t.getContext("2d"))}if(o&&o.canvas.style.transform===t?(this.container=e,this.context=o,this.containerReused=!0):this.containerReused?(this.container=null,this.context=null,this.containerReused=!1):this.container&&(this.container.style.backgroundColor=null),!this.container){i=document.createElement("div"),i.className=r;let e=i.style;e.position="absolute",e.width="100%",e.height="100%",o=ND();const t=o.canvas;i.appendChild(t),e=t.style,e.position="absolute",e.left="0",e.transformOrigin="top left",this.container=i,this.context=o}this.containerReused||!n||this.container.style.backgroundColor||(this.container.style.backgroundColor=n)}clipUnrotated(e,t,n){const r=cO(n),i=uO(n),o=rO(n),s=nO(n);jY(t.coordinateToPixelTransform,r),jY(t.coordinateToPixelTransform,i),jY(t.coordinateToPixelTransform,o),jY(t.coordinateToPixelTransform,s);const a=this.inversePixelTransform;jY(a,r),jY(a,i),jY(a,o),jY(a,s),e.save(),e.beginPath(),e.moveTo(Math.round(r[0]),Math.round(r[1])),e.lineTo(Math.round(i[0]),Math.round(i[1])),e.lineTo(Math.round(o[0]),Math.round(o[1])),e.lineTo(Math.round(s[0]),Math.round(s[1])),e.clip()}prepareContainer(e,t){const n=e.extent,r=e.viewState.resolution,i=e.viewState.rotation,o=e.pixelRatio,s=Math.round(dO(n)/r*o),a=Math.round(aO(n)/r*o);TY(this.pixelTransform,e.size[0]/2,e.size[1]/2,1/o,1/o,i,-s/2,-a/2),MY(this.inversePixelTransform,this.pixelTransform);const l=RY(this.pixelTransform);if(this.useContainer(t,l,this.getBackground(e)),!this.containerReused){const e=this.context.canvas;e.width!=s||e.height!=a?(e.width=s,e.height=a):this.context.clearRect(0,0,s,a),l!==e.style.transform&&(e.style.transform=l)}}dispatchRenderEvent_(e,t,n){const r=this.getLayer();if(r.hasListener(e)){const i=new vJ(e,this.inversePixelTransform,n,t);r.dispatchEvent(i)}}preRender(e,t){this.frameState=t,t.declutter||this.dispatchRenderEvent_(dY,e,t)}postRender(e,t){t.declutter||this.dispatchRenderEvent_(hY,e,t)}renderDeferredInternal(e){}getRenderContext(e){return e.declutter&&!this.deferredContext_&&(this.deferredContext_=new JQ),e.declutter?this.deferredContext_.getContext():this.context}renderDeferred(e){e.declutter&&(this.dispatchRenderEvent_(dY,this.context,e),e.declutter&&this.deferredContext_&&(this.deferredContext_.draw(this.context),this.deferredContext_.clear()),this.renderDeferredInternal(e),this.dispatchRenderEvent_(hY,this.context,e))}getRenderTransform(e,t,n,r,i,o,s){const a=i/2,l=o/2,c=r/t,u=-c,d=-e[0]+s,h=-e[1];return TY(this.tempTransform,a,l,c,u,-n,d,h)}disposeInternal(){delete this.frameState,super.disposeInternal()}};function n0(e){return e instanceof Image||e instanceof HTMLCanvasElement||e instanceof HTMLVideoElement||e instanceof ImageBitmap?e:null}function r0(e){return e instanceof Uint8Array||e instanceof Uint8ClampedArray||e instanceof Float32Array||e instanceof DataView?e:null}const i0=new Error("disposed");let o0=null;const s0=[256,256];const a0=class extends CD{constructor(e){const t=fD;super(e.tileCoord,t,{transition:e.transition,interpolate:e.interpolate}),this.loader_=e.loader,this.data_=null,this.error_=null,this.size_=e.size||null,this.controller_=e.controller||null}getSize(){if(this.size_)return this.size_;const e=n0(this.data_);return e?[e.width,e.height]:s0}getData(){return this.data_}getError(){return this.error_}load(){if(this.state!==fD&&this.state!==yD)return;this.state=gD,this.changed();const e=this;this.loader_().then((function(t){e.data_=t,e.state=mD,e.changed()})).catch((function(t){e.error_=t,e.state=yD,e.changed()}))}disposeInternal(){this.controller_&&(this.controller_.abort(i0),this.controller_=null),super.disposeInternal()}};const l0=class extends a0{constructor(e){super({tileCoord:e.tileCoord,loader:()=>Promise.resolve(new Uint8ClampedArray(4)),interpolate:e.interpolate,transition:e.transition}),this.pixelRatio_=e.pixelRatio,this.gutter_=e.gutter,this.reprojData_=null,this.reprojError_=null,this.reprojSize_=void 0,this.sourceTileGrid_=e.sourceTileGrid,this.targetTileGrid_=e.targetTileGrid,this.wrappedTileCoord_=e.wrappedTileCoord||e.tileCoord,this.sourceTiles_=[],this.sourcesListenerKeys_=null,this.sourceZ_=0;const t=e.sourceProj,n=t.getExtent(),r=e.sourceTileGrid.getExtent();this.clipExtent_=t.canWrapX()?r?lO(n,r):n:r;const i=this.targetTileGrid_.getTileCoordExtent(this.wrappedTileCoord_),o=this.targetTileGrid_.getExtent();let s=this.sourceTileGrid_.getExtent();const a=o?lO(i,o):i;if(0===tO(a))return void(this.state=vD);n&&(s=s?lO(s,n):n);const l=this.targetTileGrid_.getResolution(this.wrappedTileCoord_[0]),c=e.targetProj,u=oN(t,c,a,l);if(!isFinite(u)||u<=0)return void(this.state=vD);const d=void 0!==e.errorThreshold?e.errorThreshold:.5;if(this.triangulation_=new QD(t,c,a,s,u*d,l),0===this.triangulation_.getTriangles().length)return void(this.state=vD);this.sourceZ_=this.sourceTileGrid_.getZForResolution(u);let h=this.triangulation_.calculateSourceExtent();if(s&&(t.canWrapX()?(h[1]=VO(h[1],s[1],s[3]),h[3]=VO(h[3],s[1],s[3])):h=lO(h,s)),tO(h)){let r=0,i=0;t.canWrapX()&&(r=dO(n),i=Math.floor((h[0]-n[0])/r));yO(h.slice(),t,!0).forEach((t=>{const n=this.sourceTileGrid_.getTileRangeForExtentAndZ(t,this.sourceZ_),o=e.getTileFunction;for(let e=n.minX;e<=n.maxX;e++)for(let t=n.minY;t<=n.maxY;t++){const n=o(this.sourceZ_,e,t,this.pixelRatio_);if(n){const e=i*r;this.sourceTiles_.push({tile:n,offset:e})}}++i})),0===this.sourceTiles_.length&&(this.state=vD)}else this.state=vD}getSize(){return this.reprojSize_}getData(){return this.reprojData_}getError(){return this.reprojError_}reproject_(){const e=[];let t=!1;if(this.sourceTiles_.forEach((n=>{var r;const i=n.tile;if(!i||i.getState()!==mD)return;const o=i.getSize(),s=this.gutter_;let a;const l=r0(i.getData());l?a=l:(t=!0,a=function(e){o0||(o0=ND(e.width,e.height,void 0,{willReadFrequently:!0}));const t=o0.canvas,n=e.width;t.width!==n&&(t.width=n);const r=e.height;return t.height!==r&&(t.height=r),o0.clearRect(0,0,n,r),o0.drawImage(e,0,0),o0.getImageData(0,0,n,r).data}(n0(i.getData())));const c=[o[0]+2*s,o[1]+2*s],u=a instanceof Float32Array,d=c[0]*c[1],h=u?Float32Array:Uint8ClampedArray,p=new h(a.buffer),f=h.BYTES_PER_ELEMENT,g=f*p.length/d,m=p.byteLength/c[1],y=Math.floor(m/f/c[0]),v=d*y;let _=p;if(p.length!==v){_=new h(v);let e=0,t=0;const n=c[0]*y;for(let r=0;r<c[1];++r){for(let r=0;r<n;++r)_[e++]=p[t+r];t+=m/f}}const b=this.sourceTileGrid_.getTileCoordExtent(i.tileCoord);b[0]+=n.offset,b[2]+=n.offset;const x=null===(r=this.clipExtent_)||void 0===r?void 0:r.slice();x&&(x[0]+=n.offset,x[2]+=n.offset),e.push({extent:b,clipExtent:x,data:new Uint8ClampedArray(_.buffer),dataType:h,bytesPerPixel:g,pixelSize:c})})),this.sourceTiles_.length=0,0===e.length)return this.state=yD,void this.changed();const n=this.wrappedTileCoord_[0],r=this.targetTileGrid_.getTileSize(n),i="number"===typeof r?r:r[0],o="number"===typeof r?r:r[1],s=this.targetTileGrid_.getResolution(n),a=this.sourceTileGrid_.getResolution(this.sourceZ_),l=this.targetTileGrid_.getTileCoordExtent(this.wrappedTileCoord_);let c,u;const d=e[0].bytesPerPixel;for(let h=Math.ceil(d/3)-1;h>=0;--h){const t=[];for(let i=0,o=e.length;i<o;++i){const n=e[i],r=n.data,o=n.pixelSize,s=o[0],a=o[1],l=ND(s,a,tN),c=l.createImageData(s,a),u=c.data;let p=3*h;for(let e=0,t=u.length;e<t;e+=4)u[e]=r[p],u[e+1]=r[p+1],u[e+2]=r[p+2],u[e+3]=255,p+=d;l.putImageData(c,0,0),t.push({extent:n.extent,clipExtent:n.clipExtent,image:l.canvas})}const n=sN(i,o,this.pixelRatio_,a,this.sourceTileGrid_.getExtent(),s,l,this.triangulation_,t,this.gutter_,!1,!1,!1);for(let e=0,i=t.length;e<i;++e){const n=t[e].image.getContext("2d");FD(n),tN.push(n.canvas)}const r=n.getContext("2d"),p=r.getImageData(0,0,n.width,n.height);FD(r),tN.push(n),c||(u=new Uint8ClampedArray(d*p.width*p.height),c=new e[0].dataType(u.buffer));const f=p.data;let g=3*h;for(let e=0,i=f.length;e<i;e+=4)255===f[e+3]?(u[g]=f[e],u[g+1]=f[e+1],u[g+2]=f[e+2]):(u[g]=0,u[g+1]=0,u[g+2]=0),g+=d}if(t){const e=ND(i,o),t=new ImageData(c,i);e.putImageData(t,0,0),this.reprojData_=e.canvas}else this.reprojData_=c;this.reprojSize_=[Math.round(i*this.pixelRatio_),Math.round(o*this.pixelRatio_)],this.state=mD,this.changed()}load(){if(this.state!==fD&&this.state!==yD)return;this.state=gD,this.changed();let e=0;this.sourcesListenerKeys_=[],this.sourceTiles_.forEach((t=>{let{tile:n}=t;const r=n.getState();if(r!==fD&&r!==gD)return;e++;const i=qD(n,BR,(()=>{const t=n.getState();t!=mD&&t!=yD&&t!=vD||(YD(i),e--,0===e&&(this.unlistenSources_(),this.reproject_()))}));this.sourcesListenerKeys_.push(i)})),0===e?setTimeout(this.reproject_.bind(this),0):this.sourceTiles_.forEach((function(e){let{tile:t}=e;t.getState()==fD&&t.load()}))}unlistenSources_(){this.sourcesListenerKeys_.forEach(YD),this.sourcesListenerKeys_=null}};function c0(e,t,n,r){return"".concat(e,",").concat(dN(t,n,r))}function u0(e,t,n){if(!(n in e))return e[n]=new Set([t]),!0;const r=e[n],i=r.has(t);return i||r.add(t),!i}function d0(e,t,n){const r=e[n];return!!r&&r.delete(t)}function h0(e,t){const n=e.layerStatesArray[e.layerIndex];n.extent&&(t=lO(t,VR(n.extent,e.viewState.projection)));const r=n.layer.getRenderSource();if(!r.getWrapX()){const n=r.getTileGridForProjection(e.viewState.projection).getExtent();n&&(t=lO(t,n))}return t}const p0=class extends t0{constructor(e,t){super(e),t=t||{},this.extentChanged=!0,this.renderComplete=!1,this.renderedExtent_=null,this.renderedPixelRatio,this.renderedProjection=null,this.renderedRevision,this.renderedTiles=[],this.renderedSourceKey_,this.renderedSourceRevision_,this.tempExtent=[1/0,1/0,-1/0,-1/0],this.tempTileRange_=new AN(0,0,0,0),this.tempTileCoord_=uN(0,0,0);const n=void 0!==t.cacheSize?t.cacheSize:512;this.tileCache_=new cN(n),this.maxStaleKeys=.5*n}getTileCache(){return this.tileCache_}getOrCreateTile(e,t,n,r){const i=this.tileCache_,o=this.getLayer().getSource(),s=c0(o.getKey(),e,t,n);let a;if(i.containsKey(s))a=i.get(s);else{if(a=o.getTile(e,t,n,r.pixelRatio,r.viewState.projection),!a)return null;i.set(s,a)}return a}getTile(e,t,n,r){const i=this.getOrCreateTile(e,t,n,r);return i||null}getData(e){const t=this.frameState;if(!t)return null;const n=this.getLayer(),r=jY(t.pixelToCoordinateTransform,e.slice()),i=n.getExtent();if(i&&!FM(i,r))return null;const o=t.viewState,s=n.getRenderSource(),a=s.getTileGridForProjection(o.projection),l=s.getTilePixelRatio(t.pixelRatio);for(let c=a.getZForResolution(o.resolution);c>=a.getMinZoom();--c){const e=a.getTileCoordForCoordAndZ(r,c),n=this.getTile(c,e[1],e[2],t);if(!n||n.getState()!==mD)continue;const i=a.getOrigin(c),u=LN(a.getTileSize(c)),d=a.getResolution(c);let h;if(n instanceof JD)h=n.getImage();else{if(!(n instanceof a0))continue;if(h=n0(n.getData()),!h)continue}const p=Math.floor(l*((r[0]-i[0])/d-e[1]*u[0])),f=Math.floor(l*((i[1]-r[1])/d-e[2]*u[1])),g=Math.round(l*s.getGutterForProjection(o.projection));return this.getImageData(h,p+g,f+g)}return null}prepareFrame(e){const t=this.getLayer().getSource();if(!t)return!1;const n=t.getRevision();return this.renderedRevision_?this.renderedRevision_!==n&&(this.renderedRevision_=n,this.renderedSourceKey_===t.getKey()&&this.tileCache_.clear()):this.renderedRevision_=n,!0}enqueueTiles(e,t,n,r,i){const o=e.viewState,s=this.getLayer(),a=s.getRenderSource(),l=a.getTileGridForProjection(o.projection),c=xD(a);c in e.wantedTiles||(e.wantedTiles[c]={});const u=e.wantedTiles[c],d=s.getMapInternal(),h=Math.max(n-i,l.getMinZoom(),l.getZForResolution(Math.min(s.getMaxResolution(),d?d.getView().getResolutionForZoom(Math.max(s.getMinZoom(),0)):l.getResolution(0)),a.zDirection));for(let p=n;p>=h;--p){const n=l.getTileRangeForExtentAndZ(t,p,this.tempTileRange_),i=l.getResolution(p);for(let t=n.minX;t<=n.maxX;++t)for(let o=n.minY;o<=n.maxY;++o){const n=this.getTile(p,t,o,e);if(!n)continue;if(!u0(r,n,p))continue;const s=n.getKey();if(u[s]=!0,n.getState()===fD&&!e.tileQueue.isKeyQueued(s)){const r=uN(p,t,o,this.tempTileCoord_);e.tileQueue.enqueue([n,c,l.getTileCoordCenter(r),i])}}}}findStaleTile_(e,t){const n=this.tileCache_,r=e[0],i=e[1],o=e[2],s=this.getStaleKeys();for(let a=0;a<s.length;++a){const e=c0(s[a],r,i,o);if(n.containsKey(e)){const i=n.get(e);if(i.getState()===mD)return i.endTransition(xD(this)),u0(t,i,r),!0}}return!1}findAltTiles_(e,t,n,r){const i=e.getTileRangeForTileCoordAndZ(t,n,this.tempTileRange_);if(!i)return!1;let o=!0;const s=this.tileCache_,a=this.getLayer().getRenderSource().getKey();for(let l=i.minX;l<=i.maxX;++l)for(let e=i.minY;e<=i.maxY;++e){const t=c0(a,n,l,e);let i=!1;if(s.containsKey(t)){const e=s.get(t);e.getState()===mD&&(u0(r,e,n),i=!0)}i||(o=!1)}return o}renderFrame(e,t){this.renderComplete=!0;const n=e.layerStatesArray[e.layerIndex],r=e.viewState,i=r.projection,o=r.resolution,s=r.center,a=e.pixelRatio,l=this.getLayer(),c=l.getSource(),u=c.getRevision(),d=c.getTileGridForProjection(i),h=d.getZForResolution(o,c.zDirection),p=d.getResolution(h),f=c.getKey();this.renderedSourceKey_?this.renderedSourceKey_!==f&&(this.prependStaleKey(this.renderedSourceKey_),this.renderedSourceKey_=f):this.renderedSourceKey_=f;let g=e.extent;const m=c.getTilePixelRatio(a);this.prepareContainer(e,t);const y=this.context.canvas.width,v=this.context.canvas.height,_=n.extent&&VR(n.extent,i);_&&(g=lO(g,VR(n.extent,i)));const b=p*y/2/m,x=p*v/2/m,S=[s[0]-b,s[1]-x,s[0]+b,s[1]+x],w={};this.renderedTiles.length=0;const E=l.getPreload();if(e.nextExtent){const t=d.getZForResolution(r.nextResolution,c.zDirection),n=h0(e,e.nextExtent);this.enqueueTiles(e,n,t,w,E)}const P=h0(e,g);if(this.enqueueTiles(e,P,h,w,0),E>0&&setTimeout((()=>{this.enqueueTiles(e,P,h-1,w,E-1)}),0),!(h in w))return this.container;const C=xD(this),A=e.time;for(const O of w[h]){const t=O.getState();if((O instanceof aN||O instanceof l0)&&t===vD)continue;const n=O.tileCoord;if(t===mD){if(1===O.getAlpha(C,A)){O.endTransition(C);continue}}this.renderComplete=!1;if(this.findStaleTile_(n,w)){d0(w,O,h),e.animate=!0;continue}if(this.findAltTiles_(d,n,h+1,w))continue;const r=d.getMinZoom();for(let e=h-1;e>=r;--e){if(this.findAltTiles_(d,n,e,w))break}}const k=p/o*a/m,j=this.getRenderContext(e);TY(this.tempTransform,y/2,v/2,k,k,0,-y/2,-v/2),n.extent&&this.clipUnrotated(j,e,_),c.getInterpolate()||(j.imageSmoothingEnabled=!1),this.preRender(j,e);const I=Object.keys(w).map(Number);let G;I.sort(eD);const T=[],M=[];for(let O=I.length-1;O>=0;--O){const t=I[O],n=c.getTilePixelSize(t,a,i),r=d.getResolution(t)/p,o=n[0]*r*k,s=n[1]*r*k,l=d.getTileCoordForCoordAndZ(cO(S),t),u=d.getTileCoordExtent(l),h=jY(this.tempTransform,[m*(u[0]-S[0])/p,m*(S[3]-u[3])/p]),f=m*c.getGutterForProjection(i);for(const i of w[t]){if(i.getState()!==mD)continue;const n=i.tileCoord,r=l[1]-n[1],a=Math.round(h[0]-(r-1)*o),u=l[2]-n[2],d=Math.round(h[1]-(u-1)*s),p=Math.round(h[0]-r*o),g=Math.round(h[1]-u*s),m=a-p,y=d-g,v=1===I.length;let _=!1;G=[p,g,p+m,g,p+m,g+y,p,g+y];for(let e=0,i=T.length;e<i;++e)if(!v&&t<M[e]){const t=T[e];hO([p,g,p+m,g+y],[t[0],t[3],t[4],t[7]])&&(_||(j.save(),_=!0),j.beginPath(),j.moveTo(G[0],G[1]),j.lineTo(G[2],G[3]),j.lineTo(G[4],G[5]),j.lineTo(G[6],G[7]),j.moveTo(t[6],t[7]),j.lineTo(t[4],t[5]),j.lineTo(t[2],t[3]),j.lineTo(t[0],t[1]),j.clip())}T.push(G),M.push(t),this.drawTile(i,e,p,g,m,y,f,v),_&&j.restore(),this.renderedTiles.unshift(i),this.updateUsedTiles(e.usedTiles,c,i)}}this.renderedRevision=u,this.renderedResolution=p,this.extentChanged=!this.renderedExtent_||!KM(this.renderedExtent_,S),this.renderedExtent_=S,this.renderedPixelRatio=a,this.renderedProjection=i,this.postRender(this.context,e),n.extent&&j.restore(),j.imageSmoothingEnabled=!0;return e.postRenderFunctions.push(((e,t)=>{const n=xD(c),r=t.wantedTiles[n],i=r?Object.keys(r).length:0;this.updateCacheSize(i),this.tileCache_.expireCache()})),this.container}updateCacheSize(e){this.tileCache_.highWaterMark=Math.max(this.tileCache_.highWaterMark,2*e)}drawTile(e,t,n,r,i,o,s,a){let l;if(e instanceof a0){if(l=n0(e.getData()),!l)throw new Error("Rendering array data is not yet supported")}else l=this.getTileImage(e);if(!l)return;const c=this.getRenderContext(t),u=xD(this),d=t.layerStatesArray[t.layerIndex],h=d.opacity*(a?e.getAlpha(u,t.time):1),p=h!==c.globalAlpha;p&&(c.save(),c.globalAlpha=h),c.drawImage(l,s,s,l.width-2*s,l.height-2*s,n,r,i,o),p&&c.restore(),h!==d.opacity?t.animate=!0:a&&e.endTransition(u)}getImage(){const e=this.context;return e?e.canvas:null}getTileImage(e){return e.getImage()}updateUsedTiles(e,t,n){const r=xD(t);r in e||(e[r]={}),e[r][n.getKey()]=!0}};const f0=class extends ZQ{constructor(e){super(e)}createRenderer(){return new p0(this,{cacheSize:this.getCacheSize()})}},g0="units",m0=[1,2,5],y0=25.4/.28;const v0=class extends BJ{constructor(e){e=e||{};const t=document.createElement("div");t.style.pointerEvents="none",super({element:t,render:e.render,target:e.target}),this.on,this.once,this.un;const n=void 0!==e.className?e.className:e.bar?"ol-scale-bar":"ol-scale-line";this.innerElement_=document.createElement("div"),this.innerElement_.className=n+"-inner",this.element.className=n+" "+EZ,this.element.appendChild(this.innerElement_),this.viewState_=null,this.minWidth_=void 0!==e.minWidth?e.minWidth:64,this.maxWidth_=e.maxWidth,this.renderedVisible_=!1,this.renderedWidth_=void 0,this.renderedHTML_="",this.addChangeListener(g0,this.handleUnitsChanged_),this.setUnits(e.units||"metric"),this.scaleBar_=e.bar||!1,this.scaleBarSteps_=e.steps||4,this.scaleBarText_=e.text||!1,this.dpi_=e.dpi||void 0}getUnits(){return this.get(g0)}handleUnitsChanged_(){this.updateElement_()}setUnits(e){this.set(g0,e)}setDpi(e){this.dpi_=e}updateElement_(){const e=this.viewState_;if(!e)return void(this.renderedVisible_&&(this.element.style.display="none",this.renderedVisible_=!1));const t=e.center,n=e.projection,r=this.getUnits(),i="degrees"==r?"degrees":"m";let o=SR(n,e.resolution,t,i);const s=this.minWidth_*(this.dpi_||y0)/y0,a=void 0!==this.maxWidth_?this.maxWidth_*(this.dpi_||y0)/y0:void 0;let l=s*o,c="";if("degrees"==r){const e=bO.degrees;l*=e,l<e/60?(c="\u2033",o*=3600):l<e?(c="\u2032",o*=60):c="\xb0"}else if("imperial"==r)l<.9144?(c="in",o/=.0254):l<1609.344?(c="ft",o/=.3048):(c="mi",o/=1609.344);else if("nautical"==r)o/=1852,c="NM";else if("metric"==r)l<1e-6?(c="nm",o*=1e9):l<.001?(c="\u03bcm",o*=1e6):l<1?(c="mm",o*=1e3):l<1e3?c="m":(c="km",o/=1e3);else{if("us"!=r)throw new Error("Invalid units");l<.9144?(c="in",o*=39.37):l<1609.344?(c="ft",o/=.30480061):(c="mi",o/=1609.3472)}let u,d,h,p,f,g,m=3*Math.floor(Math.log(s*o)/Math.log(10));for(;;){h=Math.floor(m/3);const e=Math.pow(10,h);if(u=m0[(m%3+3)%3]*e,d=Math.round(u/o),isNaN(d))return this.element.style.display="none",void(this.renderedVisible_=!1);if(void 0!==a&&d>=a){u=p,d=f,h=g;break}if(d>=s)break;p=u,f=d,g=h,++m}const y=this.scaleBar_?this.createScaleBar(d,u,c):u.toFixed(h<0?-h:0)+" "+c;this.renderedHTML_!=y&&(this.innerElement_.innerHTML=y,this.renderedHTML_=y),this.renderedWidth_!=d&&(this.innerElement_.style.width=d+"px",this.renderedWidth_=d),this.renderedVisible_||(this.element.style.display="",this.renderedVisible_=!0)}createScaleBar(e,t,n){const r=this.getScaleForResolution(),i=r<1?Math.round(1/r).toLocaleString()+" : 1":"1 : "+Math.round(r).toLocaleString(),o=this.scaleBarSteps_,s=e/o,a=[this.createMarker("absolute")];for(let l=0;l<o;++l){const r=l%2===0?"ol-scale-singlebar-odd":"ol-scale-singlebar-even";a.push("<div><div "+'class="ol-scale-singlebar '.concat(r,'" ')+'style="width: '.concat(s,'px;"')+"></div>"+this.createMarker("relative")+(l%2===0||2===o?this.createStepText(l,e,!1,t,n):"")+"</div>")}a.push(this.createStepText(o,e,!0,t,n));return(this.scaleBarText_?'<div class="ol-scale-text" style="width: '.concat(e,'px;">')+i+"</div>":"")+a.join("")}createMarker(e){const t="absolute"===e?3:-10;return'<div class="ol-scale-step-marker" '+'style="position: '.concat(e,"; top: ").concat(t,'px;"')+"></div>"}createStepText(e,t,n,r,i){const o=(0===e?0:Math.round(r/this.scaleBarSteps_*e*100)/100)+(0===e?"":" "+i),s=0===e?-3:t/this.scaleBarSteps_*-1,a=0===e?0:t/this.scaleBarSteps_*2;return'<div class="ol-scale-step-text" style="'+"margin-left: ".concat(s,"px;")+"text-align: ".concat(0===e?"left":"center",";")+"min-width: ".concat(a,"px;")+"left: ".concat(n?t+"px":"unset",";")+'">'+o+"</div>"}getScaleForResolution(){return SR(this.viewState_.projection,this.viewState_.resolution,this.viewState_.center,"m")*(1e3/25.4)*(this.dpi_||y0)}render(e){const t=e.frameState;this.viewState_=t?t.viewState:null,this.updateElement_()}},_0={pointerEvents:"none !important","& > *":{pointerEvents:"initial"}},b0={position:"absolute",display:"flex",padding:"0.5rem",..._0},x0={...b0,height:"100%",width:"100%",left:0,top:0,flexDirection:"column",justifyContent:"end",alignItems:"start",rowGap:"0.5rem"},S0={...b0,width:"100%",height:"fit-content",right:0,top:0,flexDirection:"row",justifyContent:"start",alignItems:"baseline",columnGap:"0.5rem"};var w0=__webpack_require__(54396);class E0 extends SN{constructor(e){if(super(),this.on,this.once,this.un,this.id_=void 0,this.geometryName_="geometry",this.style_=null,this.styleFunction_=void 0,this.geometryChangeKey_=null,this.addChangeListener(this.geometryName_,this.handleGeometryChanged_),e)if("function"===typeof e.getSimplifiedGeometry){const t=e;this.setGeometry(t)}else{const t=e;this.setProperties(t)}}clone(){const e=new E0(this.hasProperties()?this.getProperties():null);e.setGeometryName(this.getGeometryName());const t=this.getGeometry();t&&e.setGeometry(t.clone());const n=this.getStyle();return n&&e.setStyle(n),e}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_&&(YD(this.geometryChangeKey_),this.geometryChangeKey_=null);const e=this.getGeometry();e&&(this.geometryChangeKey_=qD(e,BR,this.handleGeometryChange_,this)),this.changed()}setGeometry(e){this.set(this.geometryName_,e)}setStyle(e){this.style_=e,this.styleFunction_=e?function(e){if("function"===typeof e)return e;let t;if(Array.isArray(e))t=e;else{lN("function"===typeof e.getZIndex,"Expected an `ol/style/Style` or an array of `ol/style/Style.js`");t=[e]}return function(){return t}}(e):void 0,this.changed()}setId(e){this.id_=e,this.changed()}setGeometryName(e){this.removeChangeListener(this.geometryName_,this.handleGeometryChanged_),this.geometryName_=e,this.addChangeListener(this.geometryName_,this.handleGeometryChanged_),this.handleGeometryChanged_()}}const P0=E0;function C0(e,t,n,r,i,o,s){let a,l;const c=(n-t)/r;if(1===c)a=t;else if(2===c)a=t,l=i;else if(0!==c){let o=e[t],s=e[t+1],c=0;const u=[0];for(let i=t+r;i<n;i+=r){const t=e[i],n=e[i+1];c+=Math.sqrt((t-o)*(t-o)+(n-s)*(n-s)),u.push(c),o=t,s=n}const d=i*c,h=function(e,t,n){let r,i;n=n||eD;let o=0,s=e.length,a=!1;for(;o<s;)r=o+(s-o>>1),i=+n(e[r],t),i<0?o=r+1:(s=r,a=!i);return a?o:~o}(u,d);h<0?(l=(d-u[-h-2])/(u[-h-1]-u[-h-2]),a=t+(-h-2)*r):a=t+h*r}s=s>1?s:2,o=o||new Array(s);for(let u=0;u<s;++u)o[u]=void 0===a?NaN:void 0===l?e[a+u]:HO(e[a+u],e[a+r+u],l);return o}function A0(e,t,n,r,i,o){if(n==t)return null;let s;if(i<e[t+r-1])return o?(s=e.slice(t,t+r),s[r-1]=i,s):null;if(e[n-1]<i)return o?(s=e.slice(n-r,n),s[r-1]=i,s):null;if(i==e[t+r-1])return e.slice(t,t+r);let a=t/r,l=n/r;for(;a<l;){const t=a+l>>1;i<e[(t+1)*r-1]?l=t:a=t+1}const c=e[a*r-1];if(i==c)return e.slice((a-1)*r,(a-1)*r+r);const u=(i-c)/(e[(a+1)*r-1]-c);s=[];for(let d=0;d<r-1;++d)s.push(HO(e[(a-1)*r+d],e[a*r+d],u));return s.push(i),s}function k0(e,t,n,r){let i=e[t],o=e[t+1],s=0;for(let a=t+r;a<n;a+=r){const t=e[a],n=e[a+1];s+=Math.sqrt((t-i)*(t-i)+(n-o)*(n-o)),i=t,o=n}return s}class j0 extends BY{constructor(e,t){super(),this.flatMidpoint_=null,this.flatMidpointRevision_=-1,this.maxDelta_=-1,this.maxDeltaRevision_=-1,void 0===t||Array.isArray(e[0])?this.setCoordinates(e,t):this.setFlatCoordinates(t,e)}appendCoordinate(e){iD(this.flatCoordinates,e),this.changed()}clone(){const e=new j0(this.flatCoordinates.slice(),this.layout);return e.applyProperties(this),e}closestPointXY(e,t,n,r){return r<VM(this.getExtent(),e,t)?r:(this.maxDeltaRevision_!=this.getRevision()&&(this.maxDelta_=Math.sqrt(WY(this.flatCoordinates,0,this.flatCoordinates.length,this.stride,0)),this.maxDeltaRevision_=this.getRevision()),qY(this.flatCoordinates,0,this.flatCoordinates.length,this.stride,this.maxDelta_,!1,e,t,n,r))}forEachSegment(e){return IN(this.flatCoordinates,0,this.flatCoordinates.length,this.stride,e)}getCoordinateAtM(e,t){return"XYM"!=this.layout&&"XYZM"!=this.layout?null:(t=void 0!==t&&t,A0(this.flatCoordinates,0,this.flatCoordinates.length,this.stride,e,t))}getCoordinates(){return rK(this.flatCoordinates,0,this.flatCoordinates.length,this.stride)}getCoordinateAt(e,t){return C0(this.flatCoordinates,0,this.flatCoordinates.length,this.stride,e,t,this.stride)}getLength(){return k0(this.flatCoordinates,0,this.flatCoordinates.length,this.stride)}getFlatMidpoint(){var e;this.flatMidpointRevision_!=this.getRevision()&&(this.flatMidpoint_=this.getCoordinateAt(.5,null!==(e=this.flatMidpoint_)&&void 0!==e?e:void 0),this.flatMidpointRevision_=this.getRevision());return this.flatMidpoint_}getSimplifiedGeometryInternal(e){const t=[];return t.length=JY(this.flatCoordinates,0,this.flatCoordinates.length,this.stride,e,t,0),new j0(t,"XY")}getType(){return"LineString"}intersectsExtent(e){return ON(this.flatCoordinates,0,this.flatCoordinates.length,this.stride,e)}setCoordinates(e,t){this.setLayout(t,e,1),this.flatCoordinates||(this.flatCoordinates=[]),this.flatCoordinates.length=KY(this.flatCoordinates,0,e,this.stride),this.changed()}}const I0=j0;class G0 extends BY{constructor(e,t,n){super(),void 0!==n&&void 0===t?this.setFlatCoordinates(n,e):(t=t||0,this.setCenterAndRadius(e,t,n))}clone(){const e=new G0(this.flatCoordinates.slice(),void 0,this.layout);return e.applyProperties(this),e}closestPointXY(e,t,n,r){const i=this.flatCoordinates,o=e-i[0],s=t-i[1],a=o*o+s*s;if(a<r){if(0===a)for(let e=0;e<this.stride;++e)n[e]=i[e];else{const e=this.getRadius()/Math.sqrt(a);n[0]=i[0]+e*o,n[1]=i[1]+e*s;for(let t=2;t<this.stride;++t)n[t]=i[t]}return n.length=this.stride,a}return r}containsXY(e,t){const n=this.flatCoordinates,r=e-n[0],i=t-n[1];return r*r+i*i<=this.getRadiusSquared_()}getCenter(){return this.flatCoordinates.slice(0,this.stride)}computeExtent(e){const t=this.flatCoordinates,n=t[this.stride]-t[0];return HM(t[0]-n,t[1]-n,t[0]+n,t[1]+n,e)}getRadius(){return Math.sqrt(this.getRadiusSquared_())}getRadiusSquared_(){const e=this.flatCoordinates[this.stride]-this.flatCoordinates[0],t=this.flatCoordinates[this.stride+1]-this.flatCoordinates[1];return e*e+t*t}getType(){return"Circle"}intersectsExtent(e){if(hO(e,this.getExtent())){const t=this.getCenter();return e[0]<=t[0]&&e[2]>=t[0]||(e[1]<=t[1]&&e[3]>=t[1]||eO(e,this.intersectsCoordinate.bind(this)))}return!1}setCenter(e){const t=this.stride,n=this.flatCoordinates[t]-this.flatCoordinates[0],r=e.slice();r[t]=r[0]+n;for(let i=1;i<t;++i)r[t+i]=e[i];this.setFlatCoordinates(this.layout,r),this.changed()}setCenterAndRadius(e,t,n){this.setLayout(n,e,0),this.flatCoordinates||(this.flatCoordinates=[]);const r=this.flatCoordinates;let i=YY(r,0,e,this.stride);r[i++]=r[0]+t;for(let o=1,s=this.stride;o<s;++o)r[i++]=r[o];r.length=i,this.changed()}getCoordinates(){return null}setCoordinates(e,t){}setRadius(e){this.flatCoordinates[this.stride]=this.flatCoordinates[0]+e,this.changed()}rotate(e,t){const n=this.getCenter(),r=this.getStride();this.setCenter(NY(n,0,n.length,r,e,t,n)),this.changed()}}G0.prototype.transform;const T0=G0;class M0 extends VY{constructor(e){super(),this.geometries_=e,this.changeEventsKeys_=[],this.listenGeometriesChange_()}unlistenGeometriesChange_(){this.changeEventsKeys_.forEach(YD),this.changeEventsKeys_.length=0}listenGeometriesChange_(){const e=this.geometries_;for(let t=0,n=e.length;t<n;++t)this.changeEventsKeys_.push(qD(e[t],BR,this.changed,this))}clone(){const e=new M0(O0(this.geometries_));return e.applyProperties(this),e}closestPointXY(e,t,n,r){if(r<VM(this.getExtent(),e,t))return r;const i=this.geometries_;for(let o=0,s=i.length;o<s;++o)r=i[o].closestPointXY(e,t,n,r);return r}containsXY(e,t){const n=this.geometries_;for(let r=0,i=n.length;r<i;++r)if(n[r].containsXY(e,t))return!0;return!1}computeExtent(e){qM(e);const t=this.geometries_;for(let n=0,r=t.length;n<r;++n)ZM(e,t[n].getExtent());return e}getGeometries(){return O0(this.geometries_)}getGeometriesArray(){return this.geometries_}getGeometriesArrayRecursive(){let e=[];const t=this.geometries_;for(let n=0,r=t.length;n<r;++n)t[n].getType()===this.getType()?e=e.concat(t[n].getGeometriesArrayRecursive()):e.push(t[n]);return e}getSimplifiedGeometry(e){if(this.simplifiedGeometryRevision!==this.getRevision()&&(this.simplifiedGeometryMaxMinSquaredTolerance=0,this.simplifiedGeometryRevision=this.getRevision()),e<0||0!==this.simplifiedGeometryMaxMinSquaredTolerance&&e<this.simplifiedGeometryMaxMinSquaredTolerance)return this;const t=[],n=this.geometries_;let r=!1;for(let i=0,o=n.length;i<o;++i){const o=n[i],s=o.getSimplifiedGeometry(e);t.push(s),s!==o&&(r=!0)}if(r){return new M0(t)}return this.simplifiedGeometryMaxMinSquaredTolerance=e,this}getType(){return"GeometryCollection"}intersectsExtent(e){const t=this.geometries_;for(let n=0,r=t.length;n<r;++n)if(t[n].intersectsExtent(e))return!0;return!1}isEmpty(){return 0===this.geometries_.length}rotate(e,t){const n=this.geometries_;for(let r=0,i=n.length;r<i;++r)n[r].rotate(e,t);this.changed()}scale(e,t,n){n||(n=iO(this.getExtent()));const r=this.geometries_;for(let i=0,o=r.length;i<o;++i)r[i].scale(e,t,n);this.changed()}setGeometries(e){this.setGeometriesArray(O0(e))}setGeometriesArray(e){this.unlistenGeometriesChange_(),this.geometries_=e,this.listenGeometriesChange_(),this.changed()}applyTransform(e){const t=this.geometries_;for(let n=0,r=t.length;n<r;++n)t[n].applyTransform(e);this.changed()}translate(e,t){const n=this.geometries_;for(let r=0,i=n.length;r<i;++r)n[r].translate(e,t);this.changed()}disposeInternal(){this.unlistenGeometriesChange_(),super.disposeInternal()}}function O0(e){return e.map((e=>e.clone()))}const R0=M0;class D0 extends BY{constructor(e,t,n){if(super(),this.ends_=[],this.maxDelta_=-1,this.maxDeltaRevision_=-1,Array.isArray(e[0]))this.setCoordinates(e,t);else if(void 0!==t&&n)this.setFlatCoordinates(t,e),this.ends_=n;else{const t=e,n=[],r=[];for(let e=0,o=t.length;e<o;++e){iD(n,t[e].getFlatCoordinates()),r.push(n.length)}const i=0===t.length?this.getLayout():t[0].getLayout();this.setFlatCoordinates(i,n),this.ends_=r}}appendLineString(e){iD(this.flatCoordinates,e.getFlatCoordinates().slice()),this.ends_.push(this.flatCoordinates.length),this.changed()}clone(){const e=new D0(this.flatCoordinates.slice(),this.layout,this.ends_.slice());return e.applyProperties(this),e}closestPointXY(e,t,n,r){return r<VM(this.getExtent(),e,t)?r:(this.maxDeltaRevision_!=this.getRevision()&&(this.maxDelta_=Math.sqrt(HY(this.flatCoordinates,0,this.ends_,this.stride,0)),this.maxDeltaRevision_=this.getRevision()),XY(this.flatCoordinates,0,this.ends_,this.stride,this.maxDelta_,!1,e,t,n,r))}getCoordinateAtM(e,t,n){return"XYM"!=this.layout&&"XYZM"!=this.layout||0===this.flatCoordinates.length?null:(t=void 0!==t&&t,n=void 0!==n&&n,function(e,t,n,r,i,o,s){if(s)return A0(e,t,n[n.length-1],r,i,o);let a;if(i<e[r-1])return o?(a=e.slice(0,r),a[r-1]=i,a):null;if(e[e.length-1]<i)return o?(a=e.slice(e.length-r),a[r-1]=i,a):null;for(let l=0,c=n.length;l<c;++l){const o=n[l];if(t!=o){if(i<e[t+r-1])return null;if(i<=e[o-1])return A0(e,t,o,r,i,!1);t=o}}return null}(this.flatCoordinates,0,this.ends_,this.stride,e,t,n))}getCoordinates(){return iK(this.flatCoordinates,0,this.ends_,this.stride)}getEnds(){return this.ends_}getLineString(e){return e<0||this.ends_.length<=e?null:new I0(this.flatCoordinates.slice(0===e?0:this.ends_[e-1],this.ends_[e]),this.layout)}getLineStrings(){const e=this.flatCoordinates,t=this.ends_,n=this.layout,r=[];let i=0;for(let o=0,s=t.length;o<s;++o){const s=t[o],a=new I0(e.slice(i,s),n);r.push(a),i=s}return r}getFlatMidpoints(){const e=[],t=this.flatCoordinates;let n=0;const r=this.ends_,i=this.stride;for(let o=0,s=r.length;o<s;++o){const s=r[o];iD(e,C0(t,n,s,i,.5)),n=s}return e}getSimplifiedGeometryInternal(e){const t=[],n=[];return t.length=QY(this.flatCoordinates,0,this.ends_,this.stride,e,t,0,n),new D0(t,"XY",n)}getType(){return"MultiLineString"}intersectsExtent(e){return function(e,t,n,r,i){for(let o=0,s=n.length;o<s;++o){if(ON(e,t,n[o],r,i))return!0;t=n[o]}return!1}(this.flatCoordinates,0,this.ends_,this.stride,e)}setCoordinates(e,t){this.setLayout(t,e,2),this.flatCoordinates||(this.flatCoordinates=[]);const n=ZY(this.flatCoordinates,0,e,this.stride,this.ends_);this.flatCoordinates.length=0===n.length?0:n[n.length-1],this.changed()}}const N0=D0;class L0 extends BY{constructor(e,t){super(),t&&!Array.isArray(e[0])?this.setFlatCoordinates(t,e):this.setCoordinates(e,t)}appendPoint(e){iD(this.flatCoordinates,e.getFlatCoordinates()),this.changed()}clone(){const e=new L0(this.flatCoordinates.slice(),this.layout);return e.applyProperties(this),e}closestPointXY(e,t,n,r){if(r<VM(this.getExtent(),e,t))return r;const i=this.flatCoordinates,o=this.stride;for(let s=0,a=i.length;s<a;s+=o){const a=zO(e,t,i[s],i[s+1]);if(a<r){r=a;for(let e=0;e<o;++e)n[e]=i[s+e];n.length=o}}return r}getCoordinates(){return rK(this.flatCoordinates,0,this.flatCoordinates.length,this.stride)}getPoint(e){const t=this.flatCoordinates.length/this.stride;return e<0||t<=e?null:new dK(this.flatCoordinates.slice(e*this.stride,(e+1)*this.stride),this.layout)}getPoints(){const e=this.flatCoordinates,t=this.layout,n=this.stride,r=[];for(let i=0,o=e.length;i<o;i+=n){const o=new dK(e.slice(i,i+n),t);r.push(o)}return r}getType(){return"MultiPoint"}intersectsExtent(e){const t=this.flatCoordinates,n=this.stride;for(let r=0,i=t.length;r<i;r+=n){if(BM(e,t[r],t[r+1]))return!0}return!1}setCoordinates(e,t){this.setLayout(t,e,1),this.flatCoordinates||(this.flatCoordinates=[]),this.flatCoordinates.length=KY(this.flatCoordinates,0,e,this.stride),this.changed()}}const V0=L0;function F0(e,t,n,r){const i=[];let o=[1/0,1/0,-1/0,-1/0];for(let s=0,a=n.length;s<a;++s){const a=n[s];o=YM(e,t,a[0],r),i.push((o[0]+o[2])/2,(o[1]+o[3])/2),t=a[a.length-1]}return i}class z0 extends BY{constructor(e,t,n){if(super(),this.endss_=[],this.flatInteriorPointsRevision_=-1,this.flatInteriorPoints_=null,this.maxDelta_=-1,this.maxDeltaRevision_=-1,this.orientedRevision_=-1,this.orientedFlatCoordinates_=null,!n&&!Array.isArray(e[0])){const r=e,i=[],o=[];for(let e=0,t=r.length;e<t;++e){const t=r[e],n=i.length,s=t.getEnds();for(let e=0,r=s.length;e<r;++e)s[e]+=n;iD(i,t.getFlatCoordinates()),o.push(s)}t=0===r.length?this.getLayout():r[0].getLayout(),e=i,n=o}void 0!==t&&n?(this.setFlatCoordinates(t,e),this.endss_=n):this.setCoordinates(e,t)}appendPolygon(e){let t;if(this.flatCoordinates){const n=this.flatCoordinates.length;iD(this.flatCoordinates,e.getFlatCoordinates()),t=e.getEnds().slice();for(let e=0,r=t.length;e<r;++e)t[e]+=n}else this.flatCoordinates=e.getFlatCoordinates().slice(),t=e.getEnds().slice(),this.endss_.push();this.endss_.push(t),this.changed()}clone(){const e=this.endss_.length,t=new Array(e);for(let r=0;r<e;++r)t[r]=this.endss_[r].slice();const n=new z0(this.flatCoordinates.slice(),this.layout,t);return n.applyProperties(this),n}closestPointXY(e,t,n,r){return r<VM(this.getExtent(),e,t)?r:(this.maxDeltaRevision_!=this.getRevision()&&(this.maxDelta_=Math.sqrt(function(e,t,n,r,i){for(let o=0,s=n.length;o<s;++o){const s=n[o];i=HY(e,t,s,r,i),t=s[s.length-1]}return i}(this.flatCoordinates,0,this.endss_,this.stride,0)),this.maxDeltaRevision_=this.getRevision()),function(e,t,n,r,i,o,s,a,l,c,u){u=u||[NaN,NaN];for(let d=0,h=n.length;d<h;++d){const h=n[d];c=XY(e,t,h,r,i,o,s,a,l,c,u),t=h[h.length-1]}return c}(this.getOrientedFlatCoordinates(),0,this.endss_,this.stride,this.maxDelta_,!0,e,t,n,r))}containsXY(e,t){return function(e,t,n,r,i,o){if(0===n.length)return!1;for(let s=0,a=n.length;s<a;++s){const a=n[s];if(MN(e,t,a,r,i,o))return!0;t=a[a.length-1]}return!1}(this.getOrientedFlatCoordinates(),0,this.endss_,this.stride,e,t)}getArea(){return function(e,t,n,r){let i=0;for(let o=0,s=n.length;o<s;++o){const s=n[o];i+=aK(e,t,s,r),t=s[s.length-1]}return i}(this.getOrientedFlatCoordinates(),0,this.endss_,this.stride)}getCoordinates(e){let t;return void 0!==e?(t=this.getOrientedFlatCoordinates().slice(),_K(t,0,this.endss_,this.stride,e)):t=this.flatCoordinates,oK(t,0,this.endss_,this.stride)}getEndss(){return this.endss_}getFlatInteriorPoints(){if(this.flatInteriorPointsRevision_!=this.getRevision()){const e=F0(this.flatCoordinates,0,this.endss_,this.stride);this.flatInteriorPoints_=pK(this.getOrientedFlatCoordinates(),0,this.endss_,this.stride,e),this.flatInteriorPointsRevision_=this.getRevision()}return this.flatInteriorPoints_}getInteriorPoints(){return new V0(this.getFlatInteriorPoints().slice(),"XYM")}getOrientedFlatCoordinates(){if(this.orientedRevision_!=this.getRevision()){const e=this.flatCoordinates;yK(e,0,this.endss_,this.stride)?this.orientedFlatCoordinates_=e:(this.orientedFlatCoordinates_=e.slice(),this.orientedFlatCoordinates_.length=_K(this.orientedFlatCoordinates_,0,this.endss_,this.stride)),this.orientedRevision_=this.getRevision()}return this.orientedFlatCoordinates_}getSimplifiedGeometryInternal(e){const t=[],n=[];return t.length=function(e,t,n,r,i,o,s,a){for(let l=0,c=n.length;l<c;++l){const c=n[l],u=[];s=nK(e,t,c,r,i,o,s,u),a.push(u),t=c[c.length-1]}return s}(this.flatCoordinates,0,this.endss_,this.stride,Math.sqrt(e),t,0,n),new z0(t,"XY",n)}getPolygon(e){if(e<0||this.endss_.length<=e)return null;let t;if(0===e)t=0;else{const n=this.endss_[e-1];t=n[n.length-1]}const n=this.endss_[e].slice(),r=n[n.length-1];if(0!==t)for(let i=0,o=n.length;i<o;++i)n[i]-=t;return new xK(this.flatCoordinates.slice(t,r),this.layout,n)}getPolygons(){const e=this.layout,t=this.flatCoordinates,n=this.endss_,r=[];let i=0;for(let o=0,s=n.length;o<s;++o){const s=n[o].slice(),a=s[s.length-1];if(0!==i)for(let e=0,t=s.length;e<t;++e)s[e]-=i;const l=new xK(t.slice(i,a),e,s);r.push(l),i=a}return r}getType(){return"MultiPolygon"}intersectsExtent(e){return function(e,t,n,r,i){for(let o=0,s=n.length;o<s;++o){const s=n[o];if(DN(e,t,s,r,i))return!0;t=s[s.length-1]}return!1}(this.getOrientedFlatCoordinates(),0,this.endss_,this.stride,e)}setCoordinates(e,t){this.setLayout(t,e,3),this.flatCoordinates||(this.flatCoordinates=[]);const n=$Y(this.flatCoordinates,0,e,this.stride,this.endss_);if(0===n.length)this.flatCoordinates.length=0;else{const e=n[n.length-1];this.flatCoordinates.length=0===e.length?0:e[e.length-1]}this.changed()}}const B0=z0,U0={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},W0=[U0.FILL],H0=[U0.STROKE],q0=[U0.BEGIN_PATH],X0=[U0.CLOSE_PATH],Y0=U0;const K0=class{drawCustom(e,t,n,r,i){}drawGeometry(e){}setStyle(e){}drawCircle(e,t,n){}drawFeature(e,t,n){}drawGeometryCollection(e,t,n){}drawLineString(e,t,n){}drawMultiLineString(e,t,n){}drawMultiPoint(e,t,n){}drawMultiPolygon(e,t,n){}drawPoint(e,t,n){}drawPolygon(e,t,n){}drawText(e,t,n){}setFillStrokeStyle(e,t){}setImageStyle(e,t){}setTextStyle(e,t){}};const Z0=class extends K0{constructor(e,t,n,r){super(),this.tolerance=e,this.maxExtent=t,this.pixelRatio=r,this.maxLineWidth=0,this.resolution=n,this.beginGeometryInstruction1_=null,this.beginGeometryInstruction2_=null,this.bufferedMaxExtent_=null,this.instructions=[],this.coordinates=[],this.tmpCoordinate_=[],this.hitDetectionInstructions=[],this.state={}}applyPixelRatio(e){const t=this.pixelRatio;return 1==t?e:e.map((function(e){return e*t}))}appendFlatPointCoordinates(e,t){const n=this.getBufferedMaxExtent(),r=this.tmpCoordinate_,i=this.coordinates;let o=i.length;for(let s=0,a=e.length;s<a;s+=t)r[0]=e[s],r[1]=e[s+1],FM(n,r)&&(i[o++]=r[0],i[o++]=r[1]);return o}appendFlatLineCoordinates(e,t,n,r,i,o){const s=this.coordinates;let a=s.length;const l=this.getBufferedMaxExtent();o&&(t+=r);let c=e[t],u=e[t+1];const d=this.tmpCoordinate_;let h,p,f,g=!0;for(h=t+r;h<n;h+=r)d[0]=e[h],d[1]=e[h+1],f=UM(l,d),f!==p?(g&&(s[a++]=c,s[a++]=u,g=!1),s[a++]=d[0],s[a++]=d[1]):f===RM.INTERSECTING?(s[a++]=d[0],s[a++]=d[1],g=!1):g=!0,c=d[0],u=d[1],p=f;return(i&&g||h===t+r)&&(s[a++]=c,s[a++]=u),a}drawCustomCoordinates_(e,t,n,r,i){for(let o=0,s=n.length;o<s;++o){const s=n[o],a=this.appendFlatLineCoordinates(e,t,s,r,!1,!1);i.push(a),t=s}return t}drawCustom(e,t,n,r,i){this.beginGeometry(e,t,i);const o=e.getType(),s=e.getStride(),a=this.coordinates.length;let l,c,u,d,h;switch(o){case"MultiPolygon":l=e.getOrientedFlatCoordinates(),d=[];const t=e.getEndss();h=0;for(let e=0,n=t.length;e<n;++e){const n=[];h=this.drawCustomCoordinates_(l,h,t[e],s,n),d.push(n)}this.instructions.push([Y0.CUSTOM,a,d,e,n,oK,i]),this.hitDetectionInstructions.push([Y0.CUSTOM,a,d,e,r||n,oK,i]);break;case"Polygon":case"MultiLineString":u=[],l="Polygon"==o?e.getOrientedFlatCoordinates():e.getFlatCoordinates(),h=this.drawCustomCoordinates_(l,0,e.getEnds(),s,u),this.instructions.push([Y0.CUSTOM,a,u,e,n,iK,i]),this.hitDetectionInstructions.push([Y0.CUSTOM,a,u,e,r||n,iK,i]);break;case"LineString":case"Circle":l=e.getFlatCoordinates(),c=this.appendFlatLineCoordinates(l,0,l.length,s,!1,!1),this.instructions.push([Y0.CUSTOM,a,c,e,n,rK,i]),this.hitDetectionInstructions.push([Y0.CUSTOM,a,c,e,r||n,rK,i]);break;case"MultiPoint":l=e.getFlatCoordinates(),c=this.appendFlatPointCoordinates(l,s),c>a&&(this.instructions.push([Y0.CUSTOM,a,c,e,n,rK,i]),this.hitDetectionInstructions.push([Y0.CUSTOM,a,c,e,r||n,rK,i]));break;case"Point":l=e.getFlatCoordinates(),this.coordinates.push(l[0],l[1]),c=this.coordinates.length,this.instructions.push([Y0.CUSTOM,a,c,e,n,void 0,i]),this.hitDetectionInstructions.push([Y0.CUSTOM,a,c,e,r||n,void 0,i])}this.endGeometry(t)}beginGeometry(e,t,n){this.beginGeometryInstruction1_=[Y0.BEGIN_GEOMETRY,t,0,e,n],this.instructions.push(this.beginGeometryInstruction1_),this.beginGeometryInstruction2_=[Y0.BEGIN_GEOMETRY,t,0,e,n],this.hitDetectionInstructions.push(this.beginGeometryInstruction2_)}finish(){return{instructions:this.instructions,hitDetectionInstructions:this.hitDetectionInstructions,coordinates:this.coordinates}}reverseHitDetectionInstructions(){const e=this.hitDetectionInstructions;let t;e.reverse();const n=e.length;let r,i,o=-1;for(t=0;t<n;++t)r=e[t],i=r[0],i==Y0.END_GEOMETRY?o=t:i==Y0.BEGIN_GEOMETRY&&(r[2]=t,rD(this.hitDetectionInstructions,o,t),o=-1)}setFillStrokeStyle(e,t){const n=this.state;if(e){const t=e.getColor();n.fillPatternScale=t&&"object"===typeof t&&"src"in t?this.pixelRatio:1,n.fillStyle=SZ(t||GZ)}else n.fillStyle=void 0;if(t){const e=t.getColor();n.strokeStyle=SZ(e||RZ);const r=t.getLineCap();n.lineCap=void 0!==r?r:TZ;const i=t.getLineDash();n.lineDash=i?i.slice():MZ;const o=t.getLineDashOffset();n.lineDashOffset=o||0;const s=t.getLineJoin();n.lineJoin=void 0!==s?s:OZ;const a=t.getWidth();n.lineWidth=void 0!==a?a:1;const l=t.getMiterLimit();n.miterLimit=void 0!==l?l:10,n.lineWidth>this.maxLineWidth&&(this.maxLineWidth=n.lineWidth,this.bufferedMaxExtent_=null)}else n.strokeStyle=void 0,n.lineCap=void 0,n.lineDash=null,n.lineDashOffset=void 0,n.lineJoin=void 0,n.lineWidth=void 0,n.miterLimit=void 0}createFill(e){const t=e.fillStyle,n=[Y0.SET_FILL_STYLE,t];return"string"!==typeof t&&n.push(e.fillPatternScale),n}applyStroke(e){this.instructions.push(this.createStroke(e))}createStroke(e){return[Y0.SET_STROKE_STYLE,e.strokeStyle,e.lineWidth*this.pixelRatio,e.lineCap,e.lineJoin,e.miterLimit,this.applyPixelRatio(e.lineDash),e.lineDashOffset*this.pixelRatio]}updateFillStyle(e,t){const n=e.fillStyle;"string"===typeof n&&e.currentFillStyle==n||(void 0!==n&&this.instructions.push(t.call(this,e)),e.currentFillStyle=n)}updateStrokeStyle(e,t){const n=e.strokeStyle,r=e.lineCap,i=e.lineDash,o=e.lineDashOffset,s=e.lineJoin,a=e.lineWidth,l=e.miterLimit;(e.currentStrokeStyle!=n||e.currentLineCap!=r||i!=e.currentLineDash&&!oD(e.currentLineDash,i)||e.currentLineDashOffset!=o||e.currentLineJoin!=s||e.currentLineWidth!=a||e.currentMiterLimit!=l)&&(void 0!==n&&t.call(this,e),e.currentStrokeStyle=n,e.currentLineCap=r,e.currentLineDash=i,e.currentLineDashOffset=o,e.currentLineJoin=s,e.currentLineWidth=a,e.currentMiterLimit=l)}endGeometry(e){this.beginGeometryInstruction1_[2]=this.instructions.length,this.beginGeometryInstruction1_=null,this.beginGeometryInstruction2_[2]=this.hitDetectionInstructions.length,this.beginGeometryInstruction2_=null;const t=[Y0.END_GEOMETRY,e];this.instructions.push(t),this.hitDetectionInstructions.push(t)}getBufferedMaxExtent(){if(!this.bufferedMaxExtent_&&(this.bufferedMaxExtent_=LM(this.maxExtent),this.maxLineWidth>0)){const e=this.resolution*(this.maxLineWidth+1)/2;NM(this.bufferedMaxExtent_,e,this.bufferedMaxExtent_)}return this.bufferedMaxExtent_}};const $0=class extends Z0{constructor(e,t,n,r){super(e,t,n,r),this.hitDetectionImage_=null,this.image_=null,this.imagePixelRatio_=void 0,this.anchorX_=void 0,this.anchorY_=void 0,this.height_=void 0,this.opacity_=void 0,this.originX_=void 0,this.originY_=void 0,this.rotateWithView_=void 0,this.rotation_=void 0,this.scale_=void 0,this.width_=void 0,this.declutterMode_=void 0,this.declutterImageWithText_=void 0}drawPoint(e,t,n){if(!this.image_||this.maxExtent&&!FM(this.maxExtent,e.getFlatCoordinates()))return;this.beginGeometry(e,t,n);const r=e.getFlatCoordinates(),i=e.getStride(),o=this.coordinates.length,s=this.appendFlatPointCoordinates(r,i);this.instructions.push([Y0.DRAW_IMAGE,o,s,this.image_,this.anchorX_*this.imagePixelRatio_,this.anchorY_*this.imagePixelRatio_,Math.ceil(this.height_*this.imagePixelRatio_),this.opacity_,this.originX_*this.imagePixelRatio_,this.originY_*this.imagePixelRatio_,this.rotateWithView_,this.rotation_,[this.scale_[0]*this.pixelRatio/this.imagePixelRatio_,this.scale_[1]*this.pixelRatio/this.imagePixelRatio_],Math.ceil(this.width_*this.imagePixelRatio_),this.declutterMode_,this.declutterImageWithText_]),this.hitDetectionInstructions.push([Y0.DRAW_IMAGE,o,s,this.hitDetectionImage_,this.anchorX_,this.anchorY_,this.height_,1,this.originX_,this.originY_,this.rotateWithView_,this.rotation_,this.scale_,this.width_,this.declutterMode_,this.declutterImageWithText_]),this.endGeometry(t)}drawMultiPoint(e,t,n){if(!this.image_)return;this.beginGeometry(e,t,n);const r=e.getFlatCoordinates(),i=[];for(let a=0,l=r.length;a<l;a+=e.getStride())this.maxExtent&&!FM(this.maxExtent,r.slice(a,a+2))||i.push(r[a],r[a+1]);const o=this.coordinates.length,s=this.appendFlatPointCoordinates(i,2);this.instructions.push([Y0.DRAW_IMAGE,o,s,this.image_,this.anchorX_*this.imagePixelRatio_,this.anchorY_*this.imagePixelRatio_,Math.ceil(this.height_*this.imagePixelRatio_),this.opacity_,this.originX_*this.imagePixelRatio_,this.originY_*this.imagePixelRatio_,this.rotateWithView_,this.rotation_,[this.scale_[0]*this.pixelRatio/this.imagePixelRatio_,this.scale_[1]*this.pixelRatio/this.imagePixelRatio_],Math.ceil(this.width_*this.imagePixelRatio_),this.declutterMode_,this.declutterImageWithText_]),this.hitDetectionInstructions.push([Y0.DRAW_IMAGE,o,s,this.hitDetectionImage_,this.anchorX_,this.anchorY_,this.height_,1,this.originX_,this.originY_,this.rotateWithView_,this.rotation_,this.scale_,this.width_,this.declutterMode_,this.declutterImageWithText_]),this.endGeometry(t)}finish(){return this.reverseHitDetectionInstructions(),this.anchorX_=void 0,this.anchorY_=void 0,this.hitDetectionImage_=null,this.image_=null,this.imagePixelRatio_=void 0,this.height_=void 0,this.scale_=void 0,this.opacity_=void 0,this.originX_=void 0,this.originY_=void 0,this.rotateWithView_=void 0,this.rotation_=void 0,this.width_=void 0,super.finish()}setImageStyle(e,t){const n=e.getAnchor(),r=e.getSize(),i=e.getOrigin();this.imagePixelRatio_=e.getPixelRatio(this.pixelRatio),this.anchorX_=n[0],this.anchorY_=n[1],this.hitDetectionImage_=e.getHitDetectionImage(),this.image_=e.getImage(this.pixelRatio),this.height_=r[1],this.opacity_=e.getOpacity(),this.originX_=i[0],this.originY_=i[1],this.rotateWithView_=e.getRotateWithView(),this.rotation_=e.getRotation(),this.scale_=e.getScaleArray(),this.width_=r[0],this.declutterMode_=e.getDeclutterMode(),this.declutterImageWithText_=t}};const J0=class extends Z0{constructor(e,t,n,r){super(e,t,n,r)}drawFlatCoordinates_(e,t,n,r){const i=this.coordinates.length,o=this.appendFlatLineCoordinates(e,t,n,r,!1,!1),s=[Y0.MOVE_TO_LINE_TO,i,o];return this.instructions.push(s),this.hitDetectionInstructions.push(s),n}drawLineString(e,t,n){const r=this.state,i=r.strokeStyle,o=r.lineWidth;if(void 0===i||void 0===o)return;this.updateStrokeStyle(r,this.applyStroke),this.beginGeometry(e,t,n),this.hitDetectionInstructions.push([Y0.SET_STROKE_STYLE,r.strokeStyle,r.lineWidth,r.lineCap,r.lineJoin,r.miterLimit,MZ,0],q0);const s=e.getFlatCoordinates(),a=e.getStride();this.drawFlatCoordinates_(s,0,s.length,a),this.hitDetectionInstructions.push(H0),this.endGeometry(t)}drawMultiLineString(e,t,n){const r=this.state,i=r.strokeStyle,o=r.lineWidth;if(void 0===i||void 0===o)return;this.updateStrokeStyle(r,this.applyStroke),this.beginGeometry(e,t,n),this.hitDetectionInstructions.push([Y0.SET_STROKE_STYLE,r.strokeStyle,r.lineWidth,r.lineCap,r.lineJoin,r.miterLimit,MZ,0],q0);const s=e.getEnds(),a=e.getFlatCoordinates(),l=e.getStride();let c=0;for(let u=0,d=s.length;u<d;++u)c=this.drawFlatCoordinates_(a,c,s[u],l);this.hitDetectionInstructions.push(H0),this.endGeometry(t)}finish(){const e=this.state;return void 0!=e.lastStroke&&e.lastStroke!=this.coordinates.length&&this.instructions.push(H0),this.reverseHitDetectionInstructions(),this.state=null,super.finish()}applyStroke(e){void 0!=e.lastStroke&&e.lastStroke!=this.coordinates.length&&(this.instructions.push(H0),e.lastStroke=this.coordinates.length),e.lastStroke=0,super.applyStroke(e),this.instructions.push(q0)}};const Q0=class extends Z0{constructor(e,t,n,r){super(e,t,n,r)}drawFlatCoordinatess_(e,t,n,r){const i=this.state,o=void 0!==i.fillStyle,s=void 0!==i.strokeStyle,a=n.length;this.instructions.push(q0),this.hitDetectionInstructions.push(q0);for(let l=0;l<a;++l){const i=n[l],o=this.coordinates.length,a=this.appendFlatLineCoordinates(e,t,i,r,!0,!s),c=[Y0.MOVE_TO_LINE_TO,o,a];this.instructions.push(c),this.hitDetectionInstructions.push(c),s&&(this.instructions.push(X0),this.hitDetectionInstructions.push(X0)),t=i}return o&&(this.instructions.push(W0),this.hitDetectionInstructions.push(W0)),s&&(this.instructions.push(H0),this.hitDetectionInstructions.push(H0)),t}drawCircle(e,t,n){const r=this.state,i=r.fillStyle,o=r.strokeStyle;if(void 0===i&&void 0===o)return;this.setFillStrokeStyles_(),this.beginGeometry(e,t,n),void 0!==r.fillStyle&&this.hitDetectionInstructions.push([Y0.SET_FILL_STYLE,GZ]),void 0!==r.strokeStyle&&this.hitDetectionInstructions.push([Y0.SET_STROKE_STYLE,r.strokeStyle,r.lineWidth,r.lineCap,r.lineJoin,r.miterLimit,MZ,0]);const s=e.getFlatCoordinates(),a=e.getStride(),l=this.coordinates.length;this.appendFlatLineCoordinates(s,0,s.length,a,!1,!1);const c=[Y0.CIRCLE,l];this.instructions.push(q0,c),this.hitDetectionInstructions.push(q0,c),void 0!==r.fillStyle&&(this.instructions.push(W0),this.hitDetectionInstructions.push(W0)),void 0!==r.strokeStyle&&(this.instructions.push(H0),this.hitDetectionInstructions.push(H0)),this.endGeometry(t)}drawPolygon(e,t,n){const r=this.state,i=r.fillStyle,o=r.strokeStyle;if(void 0===i&&void 0===o)return;this.setFillStrokeStyles_(),this.beginGeometry(e,t,n),void 0!==r.fillStyle&&this.hitDetectionInstructions.push([Y0.SET_FILL_STYLE,GZ]),void 0!==r.strokeStyle&&this.hitDetectionInstructions.push([Y0.SET_STROKE_STYLE,r.strokeStyle,r.lineWidth,r.lineCap,r.lineJoin,r.miterLimit,MZ,0]);const s=e.getEnds(),a=e.getOrientedFlatCoordinates(),l=e.getStride();this.drawFlatCoordinatess_(a,0,s,l),this.endGeometry(t)}drawMultiPolygon(e,t,n){const r=this.state,i=r.fillStyle,o=r.strokeStyle;if(void 0===i&&void 0===o)return;this.setFillStrokeStyles_(),this.beginGeometry(e,t,n),void 0!==r.fillStyle&&this.hitDetectionInstructions.push([Y0.SET_FILL_STYLE,GZ]),void 0!==r.strokeStyle&&this.hitDetectionInstructions.push([Y0.SET_STROKE_STYLE,r.strokeStyle,r.lineWidth,r.lineCap,r.lineJoin,r.miterLimit,MZ,0]);const s=e.getEndss(),a=e.getOrientedFlatCoordinates(),l=e.getStride();let c=0;for(let u=0,d=s.length;u<d;++u)c=this.drawFlatCoordinatess_(a,c,s[u],l);this.endGeometry(t)}finish(){this.reverseHitDetectionInstructions(),this.state=null;const e=this.tolerance;if(0!==e){const t=this.coordinates;for(let n=0,r=t.length;n<r;++n)t[n]=eK(t[n],e)}return super.finish()}setFillStrokeStyles_(){const e=this.state;void 0!==e.fillStyle&&this.updateFillStyle(e,this.createFill),void 0!==e.strokeStyle&&this.updateStrokeStyle(e,this.applyStroke)}};function e1(e,t,n,r,i){const o=[];let s=n,a=0,l=t.slice(n,2);for(;a<e&&s+i<r;){const[n,r]=l.slice(-2),c=t[s+i],u=t[s+i+1],d=Math.sqrt((c-n)*(c-n)+(u-r)*(u-r));if(a+=d,a>=e){const t=(e-a+d)/d,h=HO(n,c,t),p=HO(r,u,t);l.push(h,p),o.push(l),l=[h,p],a==e&&(s+=i),a=0}else if(a<e)l.push(t[s+i],t[s+i+1]),s+=i;else{const e=d-a,t=HO(n,c,e/d),h=HO(r,u,e/d);l.push(t,h),o.push(l),l=[t,h],a=0,s+=i}}return a>0&&o.push(l),o}function t1(e,t,n,r,i){let o,s,a,l,c,u,d,h,p,f,g=n,m=n,y=0,v=0,_=n;for(s=n;s<r;s+=i){const n=t[s],r=t[s+1];void 0!==c&&(p=n-c,f=r-u,l=Math.sqrt(p*p+f*f),void 0!==d&&(v+=a,o=Math.acos((d*p+h*f)/(a*l)),o>e&&(v>y&&(y=v,g=_,m=s),v=0,_=s-i)),a=l,d=p,h=f),c=n,u=r}return v+=l,v>y?[_,s]:[g,m]}const n1={left:0,center:.5,right:1,top:0,middle:.5,hanging:.2,alphabetic:.8,ideographic:.8,bottom:1};const r1=class extends Z0{constructor(e,t,n,r){super(e,t,n,r),this.labels_=null,this.text_="",this.textOffsetX_=0,this.textOffsetY_=0,this.textRotateWithView_=void 0,this.textRotation_=0,this.textFillState_=null,this.fillStates={},this.fillStates[GZ]={fillStyle:GZ},this.textStrokeState_=null,this.strokeStates={},this.textState_={},this.textStates={},this.textKey_="",this.fillKey_="",this.strokeKey_="",this.declutterMode_=void 0,this.declutterImageWithText_=void 0}finish(){const e=super.finish();return e.textStates=this.textStates,e.fillStates=this.fillStates,e.strokeStates=this.strokeStates,e}drawText(e,t,n){const r=this.textFillState_,i=this.textStrokeState_,o=this.textState_;if(""===this.text_||!o||!r&&!i)return;const s=this.coordinates;let a=s.length;const l=e.getType();let c=null,u=e.getStride();if("line"!==o.placement||"LineString"!=l&&"MultiLineString"!=l&&"Polygon"!=l&&"MultiPolygon"!=l){let r=o.overflow?null:[];switch(l){case"Point":case"MultiPoint":c=e.getFlatCoordinates();break;case"LineString":c=e.getFlatMidpoint();break;case"Circle":c=e.getCenter();break;case"MultiLineString":c=e.getFlatMidpoints(),u=2;break;case"Polygon":c=e.getFlatInteriorPoint(),o.overflow||r.push(c[2]/this.resolution),u=3;break;case"MultiPolygon":const t=e.getFlatInteriorPoints();c=[];for(let e=0,n=t.length;e<n;e+=3)o.overflow||r.push(t[e+2]/this.resolution),c.push(t[e],t[e+1]);if(0===c.length)return;u=2}const i=this.appendFlatPointCoordinates(c,u);if(i===a)return;if(r&&(i-a)/2!==c.length/u){let e=a/2;r=r.filter(((t,n)=>{const r=s[2*(e+n)]===c[n*u]&&s[2*(e+n)+1]===c[n*u+1];return r||--e,r}))}this.saveTextStates_(),(o.backgroundFill||o.backgroundStroke)&&(this.setFillStrokeStyle(o.backgroundFill,o.backgroundStroke),o.backgroundFill&&this.updateFillStyle(this.state,this.createFill),o.backgroundStroke&&(this.updateStrokeStyle(this.state,this.applyStroke),this.hitDetectionInstructions.push(this.createStroke(this.state)))),this.beginGeometry(e,t,n);let d=o.padding;if(d!=LZ&&(o.scale[0]<0||o.scale[1]<0)){let e=o.padding[0],t=o.padding[1],n=o.padding[2],r=o.padding[3];o.scale[0]<0&&(t=-t,r=-r),o.scale[1]<0&&(e=-e,n=-n),d=[e,t,n,r]}const h=this.pixelRatio;this.instructions.push([Y0.DRAW_IMAGE,a,i,null,NaN,NaN,NaN,1,0,0,this.textRotateWithView_,this.textRotation_,[1,1],NaN,this.declutterMode_,this.declutterImageWithText_,d==LZ?LZ:d.map((function(e){return e*h})),!!o.backgroundFill,!!o.backgroundStroke,this.text_,this.textKey_,this.strokeKey_,this.fillKey_,this.textOffsetX_,this.textOffsetY_,r]);const p=1/h,f=this.state.fillStyle;o.backgroundFill&&(this.state.fillStyle=GZ,this.hitDetectionInstructions.push(this.createFill(this.state))),this.hitDetectionInstructions.push([Y0.DRAW_IMAGE,a,i,null,NaN,NaN,NaN,1,0,0,this.textRotateWithView_,this.textRotation_,[p,p],NaN,this.declutterMode_,this.declutterImageWithText_,d,!!o.backgroundFill,!!o.backgroundStroke,this.text_,this.textKey_,this.strokeKey_,this.fillKey_?GZ:this.fillKey_,this.textOffsetX_,this.textOffsetY_,r]),o.backgroundFill&&(this.state.fillStyle=f,this.hitDetectionInstructions.push(this.createFill(this.state))),this.endGeometry(t)}else{if(!hO(this.maxExtent,e.getExtent()))return;let r;if(c=e.getFlatCoordinates(),"LineString"==l)r=[c.length];else if("MultiLineString"==l)r=e.getEnds();else if("Polygon"==l)r=e.getEnds().slice(0,1);else if("MultiPolygon"==l){const t=e.getEndss();r=[];for(let e=0,n=t.length;e<n;++e)r.push(t[e][0])}this.beginGeometry(e,t,n);const i=o.repeat,d=i?void 0:o.textAlign;let h=0;for(let e=0,t=r.length;e<t;++e){let t;t=i?e1(i*this.resolution,c,h,r[e],u):[c.slice(h,r[e])];for(let n=0,i=t.length;n<i;++n){const i=t[n];let l=0,c=i.length;if(void 0==d){const e=t1(o.maxAngle,i,0,i.length,2);l=e[0],c=e[1]}for(let e=l;e<c;e+=u)s.push(i[e],i[e+1]);const p=s.length;h=r[e],this.drawChars_(a,p),a=p}}this.endGeometry(t)}}saveTextStates_(){const e=this.textStrokeState_,t=this.textState_,n=this.textFillState_,r=this.strokeKey_;e&&(r in this.strokeStates||(this.strokeStates[r]={strokeStyle:e.strokeStyle,lineCap:e.lineCap,lineDashOffset:e.lineDashOffset,lineWidth:e.lineWidth,lineJoin:e.lineJoin,miterLimit:e.miterLimit,lineDash:e.lineDash}));const i=this.textKey_;i in this.textStates||(this.textStates[i]={font:t.font,textAlign:t.textAlign||DZ,justify:t.justify,textBaseline:t.textBaseline||NZ,scale:t.scale});const o=this.fillKey_;n&&(o in this.fillStates||(this.fillStates[o]={fillStyle:n.fillStyle}))}drawChars_(e,t){const n=this.textStrokeState_,r=this.textState_,i=this.strokeKey_,o=this.textKey_,s=this.fillKey_;this.saveTextStates_();const a=this.pixelRatio,l=n1[r.textBaseline],c=this.textOffsetY_*a,u=this.text_,d=n?n.lineWidth*Math.abs(r.scale[0])/2:0;this.instructions.push([Y0.DRAW_CHARS,e,t,l,r.overflow,s,r.maxAngle,a,c,i,d*a,u,o,1,this.declutterMode_]),this.hitDetectionInstructions.push([Y0.DRAW_CHARS,e,t,l,r.overflow,s?GZ:s,r.maxAngle,a,c,i,d*a,u,o,1/a,this.declutterMode_])}setTextStyle(e,t){let n,r,i;if(e){const t=e.getFill();t?(r=this.textFillState_,r||(r={},this.textFillState_=r),r.fillStyle=SZ(t.getColor()||GZ)):(r=null,this.textFillState_=r);const o=e.getStroke();if(o){i=this.textStrokeState_,i||(i={},this.textStrokeState_=i);const e=o.getLineDash(),t=o.getLineDashOffset(),n=o.getWidth(),r=o.getMiterLimit();i.lineCap=o.getLineCap()||TZ,i.lineDash=e?e.slice():MZ,i.lineDashOffset=void 0===t?0:t,i.lineJoin=o.getLineJoin()||OZ,i.lineWidth=void 0===n?1:n,i.miterLimit=void 0===r?10:r,i.strokeStyle=SZ(o.getColor()||RZ)}else i=null,this.textStrokeState_=i;n=this.textState_;const s=e.getFont()||IZ;UZ(s);const a=e.getScaleArray();n.overflow=e.getOverflow(),n.font=s,n.maxAngle=e.getMaxAngle(),n.placement=e.getPlacement(),n.textAlign=e.getTextAlign(),n.repeat=e.getRepeat(),n.justify=e.getJustify(),n.textBaseline=e.getTextBaseline()||NZ,n.backgroundFill=e.getBackgroundFill(),n.backgroundStroke=e.getBackgroundStroke(),n.padding=e.getPadding()||LZ,n.scale=void 0===a?[1,1]:a;const l=e.getOffsetX(),c=e.getOffsetY(),u=e.getRotateWithView(),d=e.getRotation();this.text_=e.getText()||"",this.textOffsetX_=void 0===l?0:l,this.textOffsetY_=void 0===c?0:c,this.textRotateWithView_=void 0!==u&&u,this.textRotation_=void 0===d?0:d,this.strokeKey_=i?("string"==typeof i.strokeStyle?i.strokeStyle:xD(i.strokeStyle))+i.lineCap+i.lineDashOffset+"|"+i.lineWidth+i.lineJoin+i.miterLimit+"["+i.lineDash.join()+"]":"",this.textKey_=n.font+n.scale+(n.textAlign||"?")+(n.repeat||"?")+(n.justify||"?")+(n.textBaseline||"?"),this.fillKey_=r&&r.fillStyle?"string"==typeof r.fillStyle?r.fillStyle:"|"+xD(r.fillStyle):""}else this.text_="";this.declutterMode_=e.getDeclutterMode(),this.declutterImageWithText_=t}},i1={Circle:Q0,Default:Z0,Image:$0,LineString:J0,Polygon:Q0,Text:r1};const o1=class{constructor(e,t,n,r){this.tolerance_=e,this.maxExtent_=t,this.pixelRatio_=r,this.resolution_=n,this.buildersByZIndex_={}}finish(){const e={};for(const t in this.buildersByZIndex_){e[t]=e[t]||{};const n=this.buildersByZIndex_[t];for(const r in n){const i=n[r].finish();e[t][r]=i}}return e}getBuilder(e,t){const n=void 0!==e?e.toString():"0";let r=this.buildersByZIndex_[n];void 0===r&&(r={},this.buildersByZIndex_[n]=r);let i=r[t];if(void 0===i){i=new(0,i1[t])(this.tolerance_,this.maxExtent_,this.resolution_,this.pixelRatio_),r[t]=i}return i}};function s1(e,t,n,r,i,o,s,a,l,c,u,d){let h=e[t],p=e[t+1],f=0,g=0,m=0,y=0;function v(){f=h,g=p,h=e[t+=r],p=e[t+1],y+=m,m=Math.sqrt((h-f)*(h-f)+(p-g)*(p-g))}do{v()}while(t<n-r&&y+m<o);let _=0===m?0:(o-y)/m;const b=HO(f,h,_),x=HO(g,p,_),S=t-r,w=y,E=o+a*l(c,i,u);for(;t<n-r&&y+m<E;)v();_=0===m?0:(E-y)/m;const P=HO(f,h,_),C=HO(g,p,_);let A;if(d){const e=[b,x,P,C];NY(e,0,4,2,d,e,e),A=e[0]>e[2]}else A=b>P;const k=Math.PI,j=[],I=S+r===t;let G;if(m=0,y=w,h=e[t=S],p=e[t+1],I){v(),G=Math.atan2(p-g,h-f),A&&(G+=G>0?-k:k);const e=(P+b)/2,t=(C+x)/2;return j[0]=[e,t,(E-o)/2,G,i],j}for(let T=0,M=(i=i.replace(/\n/g," ")).length;T<M;){v();let e=Math.atan2(p-g,h-f);if(A&&(e+=e>0?-k:k),void 0!==G){let t=e-G;if(t+=t>k?-2*k:t<-k?2*k:0,Math.abs(t)>s)return null}G=e;const d=T;let b=0;for(;T<M;++T){const e=a*l(c,i[A?M-T-1:T],u);if(t+r<n&&y+m<o+b+e/2)break;b+=e}if(T===d)continue;const x=A?i.substring(M-d,M-T):i.substring(d,T);_=0===m?0:(o+b/2-y)/m;const S=HO(f,h,_),w=HO(g,p,_);j.push([S,w,b/2,e,x]),o+=b}return j}const a1=[1/0,1/0,-1/0,-1/0],l1=[],c1=[],u1=[],d1=[];function h1(e){return e[3].declutterBox}const p1=new RegExp("["+String.fromCharCode(1425)+"-"+String.fromCharCode(2303)+String.fromCharCode(64285)+"-"+String.fromCharCode(65023)+String.fromCharCode(65136)+"-"+String.fromCharCode(65276)+String.fromCharCode(67584)+"-"+String.fromCharCode(69631)+String.fromCharCode(124928)+"-"+String.fromCharCode(126975)+"]");function f1(e,t){return"start"===t?t=p1.test(e)?"right":"left":"end"===t&&(t=p1.test(e)?"left":"right"),n1[t]}function g1(e,t,n){return n>0&&e.push("\n",""),e.push(t,""),e}const m1=class{constructor(e,t,n,r,i){this.overlaps=n,this.pixelRatio=t,this.resolution=e,this.alignAndScaleFill_,this.instructions=r.instructions,this.coordinates=r.coordinates,this.coordinateCache_={},this.renderedTransform_=[1,0,0,1,0,0],this.hitDetectionInstructions=r.hitDetectionInstructions,this.pixelCoordinates_=null,this.viewRotation_=0,this.fillStates=r.fillStates||{},this.strokeStates=r.strokeStates||{},this.textStates=r.textStates||{},this.widths_={},this.labels_={},this.zIndexContext_=i?new JQ:null}getZIndexContext(){return this.zIndexContext_}createLabel(e,t,n,r){const i=e+t+n+r;if(this.labels_[i])return this.labels_[i];const o=r?this.strokeStates[r]:null,s=n?this.fillStates[n]:null,a=this.textStates[t],l=this.pixelRatio,c=[a.scale[0]*l,a.scale[1]*l],u=a.justify?n1[a.justify]:f1(Array.isArray(e)?e[0]:e,a.textAlign||DZ),d=r&&o.lineWidth?o.lineWidth:0,h=Array.isArray(e)?e:String(e).split("\n").reduce(g1,[]),{width:p,height:f,widths:g,heights:m,lineWidths:y}=function(e,t){const n=[],r=[],i=[];let o=0,s=0,a=0,l=0;for(let c=0,u=t.length;c<=u;c+=2){const d=t[c];if("\n"===d||c===u){o=Math.max(o,s),i.push(s),s=0,a+=l,l=0;continue}const h=t[c+1]||e.font,p=qZ(h,d);n.push(p),s+=p;const f=WZ(h);r.push(f),l=Math.max(l,f)}return{width:o,height:a,widths:n,heights:r,lineWidths:i}}(a,h),v=p+d,_=[],b=(v+2)*c[0],x=(f+d)*c[1],S={width:b<0?Math.floor(b):Math.ceil(b),height:x<0?Math.floor(x):Math.ceil(x),contextInstructions:_};1==c[0]&&1==c[1]||_.push("scale",c),r&&(_.push("strokeStyle",o.strokeStyle),_.push("lineWidth",d),_.push("lineCap",o.lineCap),_.push("lineJoin",o.lineJoin),_.push("miterLimit",o.miterLimit),_.push("setLineDash",[o.lineDash]),_.push("lineDashOffset",o.lineDashOffset)),n&&_.push("fillStyle",s.fillStyle),_.push("textBaseline","middle"),_.push("textAlign","center");const w=.5-u;let E=u*v+w*d;const P=[],C=[];let A,k=0,j=0,I=0,G=0;for(let T=0,M=h.length;T<M;T+=2){const e=h[T];if("\n"===e){j+=k,k=0,E=u*v+w*d,++G;continue}const t=h[T+1]||a.font;t!==A&&(r&&P.push("font",t),n&&C.push("font",t),A=t),k=Math.max(k,m[I]);const i=[e,E+w*g[I]+u*(g[I]-y[G]),.5*(d+k)+j];E+=g[I],r&&P.push("strokeText",i),n&&C.push("fillText",i),++I}return Array.prototype.push.apply(_,P),Array.prototype.push.apply(_,C),this.labels_[i]=S,S}replayTextBackground_(e,t,n,r,i,o,s){e.beginPath(),e.moveTo.apply(e,t),e.lineTo.apply(e,n),e.lineTo.apply(e,r),e.lineTo.apply(e,i),e.lineTo.apply(e,t),o&&(this.alignAndScaleFill_=o[2],this.fill_(e)),s&&(this.setStrokeStyle_(e,s),e.stroke())}calculateImageOrLabelDimensions_(e,t,n,r,i,o,s,a,l,c,u,d,h,p,f,g){let m=n-(s*=d[0]),y=r-(a*=d[1]);const v=i+l>e?e-l:i,_=o+c>t?t-c:o,b=p[3]+v*d[0]+p[1],x=p[0]+_*d[1]+p[2],S=m-p[3],w=y-p[0];let E;return(f||0!==u)&&(l1[0]=S,d1[0]=S,l1[1]=w,c1[1]=w,c1[0]=S+b,u1[0]=c1[0],u1[1]=w+x,d1[1]=u1[1]),0!==u?(E=TY([1,0,0,1,0,0],n,r,1,1,u,-n,-r),jY(E,l1),jY(E,c1),jY(E,u1),jY(E,d1),HM(Math.min(l1[0],c1[0],u1[0],d1[0]),Math.min(l1[1],c1[1],u1[1],d1[1]),Math.max(l1[0],c1[0],u1[0],d1[0]),Math.max(l1[1],c1[1],u1[1],d1[1]),a1)):HM(Math.min(S,S+b),Math.min(w,w+x),Math.max(S,S+b),Math.max(w,w+x),a1),h&&(m=Math.round(m),y=Math.round(y)),{drawImageX:m,drawImageY:y,drawImageW:v,drawImageH:_,originX:l,originY:c,declutterBox:{minX:a1[0],minY:a1[1],maxX:a1[2],maxY:a1[3],value:g},canvasTransform:E,scale:d}}replayImageOrLabel_(e,t,n,r,i,o,s){const a=!(!o&&!s),l=r.declutterBox,c=s?s[2]*r.scale[0]/2:0;return l.minX-c<=t[0]&&l.maxX+c>=0&&l.minY-c<=t[1]&&l.maxY+c>=0&&(a&&this.replayTextBackground_(e,l1,c1,u1,d1,o,s),YZ(e,r.canvasTransform,i,n,r.originX,r.originY,r.drawImageW,r.drawImageH,r.drawImageX,r.drawImageY,r.scale)),!0}fill_(e){const t=this.alignAndScaleFill_;if(t){const n=jY(this.renderedTransform_,[0,0]),r=512*this.pixelRatio;e.save(),e.translate(n[0]%r,n[1]%r),1!==t&&e.scale(t,t),e.rotate(this.viewRotation_)}e.fill(),t&&e.restore()}setStrokeStyle_(e,t){e.strokeStyle=t[1],e.lineWidth=t[2],e.lineCap=t[3],e.lineJoin=t[4],e.miterLimit=t[5],e.lineDashOffset=t[7],e.setLineDash(t[6])}drawLabelWithPointPlacement_(e,t,n,r){const i=this.textStates[t],o=this.createLabel(e,t,r,n),s=this.strokeStates[n],a=this.pixelRatio,l=f1(Array.isArray(e)?e[0]:e,i.textAlign||DZ),c=n1[i.textBaseline||NZ],u=s&&s.lineWidth?s.lineWidth:0;return{label:o,anchorX:l*(o.width/a-2*i.scale[0])+2*(.5-l)*u,anchorY:c*o.height/a+2*(.5-c)*u}}execute_(e,t,n,r,i,o,s,a){const l=this.zIndexContext_;let c;var u,d;this.pixelCoordinates_&&oD(n,this.renderedTransform_)?c=this.pixelCoordinates_:(this.pixelCoordinates_||(this.pixelCoordinates_=[]),c=DY(this.coordinates,0,this.coordinates.length,2,n,this.pixelCoordinates_),u=this.renderedTransform_,d=n,u[0]=d[0],u[1]=d[1],u[2]=d[2],u[3]=d[3],u[4]=d[4],u[5]=d[5]);let h=0;const p=r.length;let f,g,m,y,v,_,b,x,S,w,E,P,C,A=0,k=0,j=0,I=null,G=null;const T=this.coordinateCache_,M=this.viewRotation_,O=Math.round(1e12*Math.atan2(-n[1],n[0]))/1e12,R={context:e,pixelRatio:this.pixelRatio,resolution:this.resolution,rotation:M},D=this.instructions!=r||this.overlaps?0:200;let N,L,V,F;for(;h<p;){const n=r[h];switch(n[0]){case Y0.BEGIN_GEOMETRY:N=n[1],F=n[3],N.getGeometry()?void 0===s||hO(s,F.getExtent())?++h:h=n[2]+1:h=n[2],l&&(l.zIndex=n[4]);break;case Y0.BEGIN_PATH:k>D&&(this.fill_(e),k=0),j>D&&(e.stroke(),j=0),k||j||(e.beginPath(),v=NaN,_=NaN),++h;break;case Y0.CIRCLE:A=n[1];const r=c[A],u=c[A+1],d=c[A+2]-r,p=c[A+3]-u,z=Math.sqrt(d*d+p*p);e.moveTo(r+z,u),e.arc(r,u,z,0,2*Math.PI,!0),++h;break;case Y0.CLOSE_PATH:e.closePath(),++h;break;case Y0.CUSTOM:A=n[1],f=n[2];const B=n[3],U=n[4],W=n[5];R.geometry=B,R.feature=N,h in T||(T[h]=[]);const H=T[h];W?W(c,A,f,2,H):(H[0]=c[A],H[1]=c[A+1],H.length=2),l&&(l.zIndex=n[6]),U(H,R),++h;break;case Y0.DRAW_IMAGE:A=n[1],f=n[2],S=n[3],g=n[4],m=n[5];let q=n[6];const X=n[7],Y=n[8],K=n[9],Z=n[10];let $=n[11];const J=n[12];let Q=n[13];y=n[14]||"declutter";const ee=n[15];if(!S&&n.length>=20){w=n[19],E=n[20],P=n[21],C=n[22];const e=this.drawLabelWithPointPlacement_(w,E,P,C);S=e.label,n[3]=S;const t=n[23];g=(e.anchorX-t)*this.pixelRatio,n[4]=g;const r=n[24];m=(e.anchorY-r)*this.pixelRatio,n[5]=m,q=S.height,n[6]=q,Q=S.width,n[13]=Q}let te,ne,re,ie;n.length>25&&(te=n[25]),n.length>17?(ne=n[16],re=n[17],ie=n[18]):(ne=LZ,re=!1,ie=!1),Z&&O?$+=M:Z||O||($-=M);let oe=0;for(;A<f;A+=2){if(te&&te[oe++]<Q/this.pixelRatio)continue;const n=this.calculateImageOrLabelDimensions_(S.width,S.height,c[A],c[A+1],Q,q,g,m,Y,K,$,J,i,ne,re||ie,N),r=[e,t,S,n,X,re?I:null,ie?G:null];if(a){let e,t,i,o,s;if(ee){const n=f-A;if(!ee[n]){ee[n]={args:r,declutterMode:y};continue}const o=ee[n];e=o.args,t=o.declutterMode,delete ee[n],i=h1(e)}if(!e||"declutter"===t&&a.collides(i)||(o=!0),"declutter"===y&&a.collides(n.declutterBox)||(s=!0),"declutter"===t&&"declutter"===y){const e=o&&s;o=e,s=e}o&&("none"!==t&&a.insert(i),this.replayImageOrLabel_.apply(this,e)),s&&("none"!==y&&a.insert(n.declutterBox),this.replayImageOrLabel_.apply(this,r))}else this.replayImageOrLabel_.apply(this,r)}++h;break;case Y0.DRAW_CHARS:const se=n[1],ae=n[2],le=n[3],ce=n[4];C=n[5];const ue=n[6],de=n[7],he=n[8];P=n[9];const pe=n[10];w=n[11],E=n[12];const fe=[n[13],n[13]];y=n[14]||"declutter";const ge=this.textStates[E],me=ge.font,ye=[ge.scale[0]*de,ge.scale[1]*de];let ve;me in this.widths_?ve=this.widths_[me]:(ve={},this.widths_[me]=ve);const _e=k0(c,se,ae,2),be=Math.abs(ye[0])*XZ(me,w,ve);if(ce||be<=_e){const n=s1(c,se,ae,2,w,(_e-be)*f1(w,this.textStates[E].textAlign),ue,Math.abs(ye[0]),XZ,me,ve,O?0:this.viewRotation_);e:if(n){const r=[];let i,o,s,l,c;if(P)for(i=0,o=n.length;i<o;++i){c=n[i],s=c[4],l=this.createLabel(s,E,"",P),g=c[2]+(ye[0]<0?-pe:pe),m=le*l.height+2*(.5-le)*pe*ye[1]/ye[0]-he;const o=this.calculateImageOrLabelDimensions_(l.width,l.height,c[0],c[1],l.width,l.height,g,m,0,0,c[3],fe,!1,LZ,!1,N);if(a&&"declutter"===y&&a.collides(o.declutterBox))break e;r.push([e,t,l,o,1,null,null])}if(C)for(i=0,o=n.length;i<o;++i){c=n[i],s=c[4],l=this.createLabel(s,E,C,""),g=c[2],m=le*l.height-he;const o=this.calculateImageOrLabelDimensions_(l.width,l.height,c[0],c[1],l.width,l.height,g,m,0,0,c[3],fe,!1,LZ,!1,N);if(a&&"declutter"===y&&a.collides(o.declutterBox))break e;r.push([e,t,l,o,1,null,null])}a&&"none"!==y&&a.load(r.map(h1));for(let e=0,t=r.length;e<t;++e)this.replayImageOrLabel_.apply(this,r[e])}}++h;break;case Y0.END_GEOMETRY:if(void 0!==o){N=n[1];const e=o(N,F,y);if(e)return e}++h;break;case Y0.FILL:D?k++:this.fill_(e),++h;break;case Y0.MOVE_TO_LINE_TO:for(A=n[1],f=n[2],L=c[A],V=c[A+1],e.moveTo(L,V),v=L+.5|0,_=V+.5|0,A+=2;A<f;A+=2)L=c[A],V=c[A+1],b=L+.5|0,x=V+.5|0,A!=f-2&&b===v&&x===_||(e.lineTo(L,V),v=b,_=x);++h;break;case Y0.SET_FILL_STYLE:I=n,this.alignAndScaleFill_=n[2],k&&(this.fill_(e),k=0,j&&(e.stroke(),j=0)),e.fillStyle=n[1],++h;break;case Y0.SET_STROKE_STYLE:G=n,j&&(e.stroke(),j=0),this.setStrokeStyle_(e,n),++h;break;case Y0.STROKE:D?j++:e.stroke(),++h;break;default:++h}}k&&this.fill_(e),j&&e.stroke()}execute(e,t,n,r,i,o){this.viewRotation_=r,this.execute_(e,t,n,this.instructions,i,void 0,void 0,o)}executeHitDetection(e,t,n,r,i){return this.viewRotation_=n,this.execute_(e,[e.canvas.width,e.canvas.height],t,this.hitDetectionInstructions,!0,r,i)}},y1=["Polygon","Circle","LineString","Image","Text","Default"],v1=["Image","Text"],_1=y1.filter((e=>!v1.includes(e)));const b1={};const x1=class{constructor(e,t,n,r,i,o,s){this.maxExtent_=e,this.overlaps_=r,this.pixelRatio_=n,this.resolution_=t,this.renderBuffer_=o,this.executorsByZIndex_={},this.hitDetectionContext_=null,this.hitDetectionTransform_=[1,0,0,1,0,0],this.renderedContext_=null,this.deferredZIndexContexts_={},this.createExecutors_(i,s)}clip(e,t){const n=this.getClipCoords(t);e.beginPath(),e.moveTo(n[0],n[1]),e.lineTo(n[2],n[3]),e.lineTo(n[4],n[5]),e.lineTo(n[6],n[7]),e.clip()}createExecutors_(e,t){for(const n in e){let r=this.executorsByZIndex_[n];void 0===r&&(r={},this.executorsByZIndex_[n]=r);const i=e[n];for(const e in i){const n=i[e];r[e]=new m1(this.resolution_,this.pixelRatio_,this.overlaps_,n,t)}}}hasExecutors(e){for(const t in this.executorsByZIndex_){const n=this.executorsByZIndex_[t];for(let t=0,r=e.length;t<r;++t)if(e[t]in n)return!0}return!1}forEachFeatureAtCoordinate(e,t,n,r,i,o){const s=2*(r=Math.round(r))+1,a=TY(this.hitDetectionTransform_,r+.5,r+.5,1/t,-1/t,-n,-e[0],-e[1]),l=!this.hitDetectionContext_;l&&(this.hitDetectionContext_=ND(s,s,void 0,{willReadFrequently:!0}));const c=this.hitDetectionContext_;let u;c.canvas.width!==s||c.canvas.height!==s?(c.canvas.width=s,c.canvas.height=s):l||c.clearRect(0,0,s,s),void 0!==this.renderBuffer_&&(u=[1/0,1/0,-1/0,-1/0],$M(u,e),NM(u,t*(this.renderBuffer_+r),u));const d=function(e){if(void 0!==b1[e])return b1[e];const t=2*e+1,n=e*e,r=new Array(n+1);for(let o=0;o<=e;++o)for(let i=0;i<=e;++i){const s=o*o+i*i;if(s>n)break;let a=r[s];a||(a=[],r[s]=a),a.push(4*((e+o)*t+(e+i))+3),o>0&&a.push(4*((e-o)*t+(e+i))+3),i>0&&(a.push(4*((e+o)*t+(e-i))+3),o>0&&a.push(4*((e-o)*t+(e-i))+3))}const i=[];for(let o=0,s=r.length;o<s;++o)r[o]&&i.push(...r[o]);return b1[e]=i,i}(r);let h;function p(e,t,n){const a=c.getImageData(0,0,s,s).data;for(let l=0,u=d.length;l<u;l++)if(a[d[l]]>0){if(!o||"none"===n||"Image"!==h&&"Text"!==h||o.includes(e)){const n=(d[l]-3)/4,o=r-n%s,a=r-(n/s|0),c=i(e,t,o*o+a*a);if(c)return c}c.clearRect(0,0,s,s);break}}const f=Object.keys(this.executorsByZIndex_).map(Number);let g,m,y,v,_;for(f.sort(eD),g=f.length-1;g>=0;--g){const e=f[g].toString();for(y=this.executorsByZIndex_[e],m=y1.length-1;m>=0;--m)if(h=y1[m],v=y[h],void 0!==v&&(_=v.executeHitDetection(c,a,n,p,u),_))return _}}getClipCoords(e){const t=this.maxExtent_;if(!t)return null;const n=t[0],r=t[1],i=t[2],o=t[3],s=[n,r,n,o,i,o,i,r];return DY(s,0,8,2,e,s),s}isEmpty(){return hD(this.executorsByZIndex_)}execute(e,t,n,r,i,o,s){const a=Object.keys(this.executorsByZIndex_).map(Number);a.sort(eD),o=o||y1;const l=y1.length;let c,u,d,h,p;for(s&&a.reverse(),c=0,u=a.length;c<u;++c){const u=a[c].toString();for(p=this.executorsByZIndex_[u],d=0,h=o.length;d<h;++d){const u=o[d],h=p[u];if(void 0!==h){const o=null===s?void 0:h.getZIndexContext(),p=o?o.getContext():e,f=this.maxExtent_&&"Image"!==u&&"Text"!==u;if(f&&(p.save(),this.clip(p,n)),o&&"Text"!==u&&"Image"!==u?o.pushFunction((e=>h.execute(e,t,n,r,i,s))):h.execute(p,t,n,r,i,s),f&&p.restore(),o){o.offset();const e=a[c]*l+d;this.deferredZIndexContexts_[e]||(this.deferredZIndexContexts_[e]=[]),this.deferredZIndexContexts_[e].push(o)}}}}this.renderedContext_=e}getDeferredZIndexContexts(){return this.deferredZIndexContexts_}getRenderedContext(){return this.renderedContext_}renderDeferred(){const e=this.deferredZIndexContexts_,t=Object.keys(e).map(Number).sort(eD);for(let n=0,r=t.length;n<r;++n)e[t[n]].forEach((e=>{e.draw(this.renderedContext_),e.clear()})),e[t[n]].length=0}};const S1=class extends K0{constructor(e,t,n,r,i,o,s){super(),this.context_=e,this.pixelRatio_=t,this.extent_=n,this.transform_=r,this.transformRotation_=r?qO(Math.atan2(r[1],r[0]),10):0,this.viewRotation_=i,this.squaredTolerance_=o,this.userTransform_=s,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_=[1,0,0,1,0,0]}drawImages_(e,t,n,r){if(!this.image_)return;const i=DY(e,t,n,r,this.transform_,this.pixelCoordinates_),o=this.context_,s=this.tmpLocalTransform_,a=o.globalAlpha;1!=this.imageOpacity_&&(o.globalAlpha=a*this.imageOpacity_);let l=this.imageRotation_;0===this.transformRotation_&&(l-=this.viewRotation_),this.imageRotateWithView_&&(l+=this.viewRotation_);for(let c=0,u=i.length;c<u;c+=2){const e=i[c]-this.imageAnchorX_,t=i[c+1]-this.imageAnchorY_;if(0!==l||1!=this.imageScale_[0]||1!=this.imageScale_[1]){const n=e+this.imageAnchorX_,r=t+this.imageAnchorY_;TY(s,n,r,1,1,l,-n,-r),o.save(),o.transform.apply(o,s),o.translate(n,r),o.scale(this.imageScale_[0],this.imageScale_[1]),o.drawImage(this.image_,this.imageOriginX_,this.imageOriginY_,this.imageWidth_,this.imageHeight_,-this.imageAnchorX_,-this.imageAnchorY_,this.imageWidth_,this.imageHeight_),o.restore()}else o.drawImage(this.image_,this.imageOriginX_,this.imageOriginY_,this.imageWidth_,this.imageHeight_,e,t,this.imageWidth_,this.imageHeight_)}1!=this.imageOpacity_&&(o.globalAlpha=a)}drawText_(e,t,n,r){if(!this.textState_||""===this.text_)return;this.textFillState_&&this.setContextFillState_(this.textFillState_),this.textStrokeState_&&this.setContextStrokeState_(this.textStrokeState_),this.setContextTextState_(this.textState_);const i=DY(e,t,n,r,this.transform_,this.pixelCoordinates_),o=this.context_;let s=this.textRotation_;for(0===this.transformRotation_&&(s-=this.viewRotation_),this.textRotateWithView_&&(s+=this.viewRotation_);t<n;t+=r){const e=i[t]+this.textOffsetX_,n=i[t+1]+this.textOffsetY_;0!==s||1!=this.textScale_[0]||1!=this.textScale_[1]?(o.save(),o.translate(e-this.textOffsetX_,n-this.textOffsetY_),o.rotate(s),o.translate(this.textOffsetX_,this.textOffsetY_),o.scale(this.textScale_[0],this.textScale_[1]),this.textStrokeState_&&o.strokeText(this.text_,0,0),this.textFillState_&&o.fillText(this.text_,0,0),o.restore()):(this.textStrokeState_&&o.strokeText(this.text_,e,n),this.textFillState_&&o.fillText(this.text_,e,n))}}moveToLineTo_(e,t,n,r,i){const o=this.context_,s=DY(e,t,n,r,this.transform_,this.pixelCoordinates_);o.moveTo(s[0],s[1]);let a=s.length;i&&(a-=2);for(let l=2;l<a;l+=2)o.lineTo(s[l],s[l+1]);return i&&o.closePath(),n}drawRings_(e,t,n,r){for(let i=0,o=n.length;i<o;++i)t=this.moveToLineTo_(e,t,n[i],r,!0);return t}drawCircle(e){if(this.squaredTolerance_&&(e=e.simplifyTransformed(this.squaredTolerance_,this.userTransform_)),hO(this.extent_,e.getExtent())){if(this.fillState_||this.strokeState_){this.fillState_&&this.setContextFillState_(this.fillState_),this.strokeState_&&this.setContextStrokeState_(this.strokeState_);const t=function(e,t,n){const r=e.getFlatCoordinates();if(!r)return null;const i=e.getStride();return DY(r,0,r.length,i,t,n)}(e,this.transform_,this.pixelCoordinates_),n=t[2]-t[0],r=t[3]-t[1],i=Math.sqrt(n*n+r*r),o=this.context_;o.beginPath(),o.arc(t[0],t[1],i,0,2*Math.PI),this.fillState_&&o.fill(),this.strokeState_&&o.stroke()}""!==this.text_&&this.drawText_(e.getCenter(),0,2,2)}}setStyle(e){this.setFillStrokeStyle(e.getFill(),e.getStroke()),this.setImageStyle(e.getImage()),this.setTextStyle(e.getText())}setTransform(e){this.transform_=e}drawGeometry(e){switch(e.getType()){case"Point":this.drawPoint(e);break;case"LineString":this.drawLineString(e);break;case"Polygon":this.drawPolygon(e);break;case"MultiPoint":this.drawMultiPoint(e);break;case"MultiLineString":this.drawMultiLineString(e);break;case"MultiPolygon":this.drawMultiPolygon(e);break;case"GeometryCollection":this.drawGeometryCollection(e);break;case"Circle":this.drawCircle(e)}}drawFeature(e,t){const n=t.getGeometryFunction()(e);n&&(this.setStyle(t),this.drawGeometry(n))}drawGeometryCollection(e){const t=e.getGeometriesArray();for(let n=0,r=t.length;n<r;++n)this.drawGeometry(t[n])}drawPoint(e){this.squaredTolerance_&&(e=e.simplifyTransformed(this.squaredTolerance_,this.userTransform_));const t=e.getFlatCoordinates(),n=e.getStride();this.image_&&this.drawImages_(t,0,t.length,n),""!==this.text_&&this.drawText_(t,0,t.length,n)}drawMultiPoint(e){this.squaredTolerance_&&(e=e.simplifyTransformed(this.squaredTolerance_,this.userTransform_));const t=e.getFlatCoordinates(),n=e.getStride();this.image_&&this.drawImages_(t,0,t.length,n),""!==this.text_&&this.drawText_(t,0,t.length,n)}drawLineString(e){if(this.squaredTolerance_&&(e=e.simplifyTransformed(this.squaredTolerance_,this.userTransform_)),hO(this.extent_,e.getExtent())){if(this.strokeState_){this.setContextStrokeState_(this.strokeState_);const t=this.context_,n=e.getFlatCoordinates();t.beginPath(),this.moveToLineTo_(n,0,n.length,e.getStride(),!1),t.stroke()}if(""!==this.text_){const t=e.getFlatMidpoint();this.drawText_(t,0,2,2)}}}drawMultiLineString(e){this.squaredTolerance_&&(e=e.simplifyTransformed(this.squaredTolerance_,this.userTransform_));const t=e.getExtent();if(hO(this.extent_,t)){if(this.strokeState_){this.setContextStrokeState_(this.strokeState_);const t=this.context_,n=e.getFlatCoordinates();let r=0;const i=e.getEnds(),o=e.getStride();t.beginPath();for(let e=0,s=i.length;e<s;++e)r=this.moveToLineTo_(n,r,i[e],o,!1);t.stroke()}if(""!==this.text_){const t=e.getFlatMidpoints();this.drawText_(t,0,t.length,2)}}}drawPolygon(e){if(this.squaredTolerance_&&(e=e.simplifyTransformed(this.squaredTolerance_,this.userTransform_)),hO(this.extent_,e.getExtent())){if(this.strokeState_||this.fillState_){this.fillState_&&this.setContextFillState_(this.fillState_),this.strokeState_&&this.setContextStrokeState_(this.strokeState_);const t=this.context_;t.beginPath(),this.drawRings_(e.getOrientedFlatCoordinates(),0,e.getEnds(),e.getStride()),this.fillState_&&t.fill(),this.strokeState_&&t.stroke()}if(""!==this.text_){const t=e.getFlatInteriorPoint();this.drawText_(t,0,2,2)}}}drawMultiPolygon(e){if(this.squaredTolerance_&&(e=e.simplifyTransformed(this.squaredTolerance_,this.userTransform_)),hO(this.extent_,e.getExtent())){if(this.strokeState_||this.fillState_){this.fillState_&&this.setContextFillState_(this.fillState_),this.strokeState_&&this.setContextStrokeState_(this.strokeState_);const t=this.context_,n=e.getOrientedFlatCoordinates();let r=0;const i=e.getEndss(),o=e.getStride();t.beginPath();for(let e=0,s=i.length;e<s;++e){const t=i[e];r=this.drawRings_(n,r,t,o)}this.fillState_&&t.fill(),this.strokeState_&&t.stroke()}if(""!==this.text_){const t=e.getFlatInteriorPoints();this.drawText_(t,0,t.length,2)}}}setContextFillState_(e){const t=this.context_,n=this.contextFillState_;n?n.fillStyle!=e.fillStyle&&(n.fillStyle=e.fillStyle,t.fillStyle=e.fillStyle):(t.fillStyle=e.fillStyle,this.contextFillState_={fillStyle:e.fillStyle})}setContextStrokeState_(e){const t=this.context_,n=this.contextStrokeState_;n?(n.lineCap!=e.lineCap&&(n.lineCap=e.lineCap,t.lineCap=e.lineCap),oD(n.lineDash,e.lineDash)||t.setLineDash(n.lineDash=e.lineDash),n.lineDashOffset!=e.lineDashOffset&&(n.lineDashOffset=e.lineDashOffset,t.lineDashOffset=e.lineDashOffset),n.lineJoin!=e.lineJoin&&(n.lineJoin=e.lineJoin,t.lineJoin=e.lineJoin),n.lineWidth!=e.lineWidth&&(n.lineWidth=e.lineWidth,t.lineWidth=e.lineWidth),n.miterLimit!=e.miterLimit&&(n.miterLimit=e.miterLimit,t.miterLimit=e.miterLimit),n.strokeStyle!=e.strokeStyle&&(n.strokeStyle=e.strokeStyle,t.strokeStyle=e.strokeStyle)):(t.lineCap=e.lineCap,t.setLineDash(e.lineDash),t.lineDashOffset=e.lineDashOffset,t.lineJoin=e.lineJoin,t.lineWidth=e.lineWidth,t.miterLimit=e.miterLimit,t.strokeStyle=e.strokeStyle,this.contextStrokeState_={lineCap:e.lineCap,lineDash:e.lineDash,lineDashOffset:e.lineDashOffset,lineJoin:e.lineJoin,lineWidth:e.lineWidth,miterLimit:e.miterLimit,strokeStyle:e.strokeStyle})}setContextTextState_(e){const t=this.context_,n=this.contextTextState_,r=e.textAlign?e.textAlign:DZ;n?(n.font!=e.font&&(n.font=e.font,t.font=e.font),n.textAlign!=r&&(n.textAlign=r,t.textAlign=r),n.textBaseline!=e.textBaseline&&(n.textBaseline=e.textBaseline,t.textBaseline=e.textBaseline)):(t.font=e.font,t.textAlign=r,t.textBaseline=e.textBaseline,this.contextTextState_={font:e.font,textAlign:r,textBaseline:e.textBaseline})}setFillStrokeStyle(e,t){if(e){const t=e.getColor();this.fillState_={fillStyle:SZ(t||GZ)}}else this.fillState_=null;if(t){const e=t.getColor(),n=t.getLineCap(),r=t.getLineDash(),i=t.getLineDashOffset(),o=t.getLineJoin(),s=t.getWidth(),a=t.getMiterLimit(),l=r||MZ;this.strokeState_={lineCap:void 0!==n?n:TZ,lineDash:1===this.pixelRatio_?l:l.map((e=>e*this.pixelRatio_)),lineDashOffset:(i||0)*this.pixelRatio_,lineJoin:void 0!==o?o:OZ,lineWidth:(void 0!==s?s:1)*this.pixelRatio_,miterLimit:void 0!==a?a:10,strokeStyle:SZ(e||RZ)}}else this.strokeState_=null}setImageStyle(e){let t;if(!e||!(t=e.getSize()))return void(this.image_=null);const n=e.getPixelRatio(this.pixelRatio_),r=e.getAnchor(),i=e.getOrigin();this.image_=e.getImage(this.pixelRatio_),this.imageAnchorX_=r[0]*n,this.imageAnchorY_=r[1]*n,this.imageHeight_=t[1]*n,this.imageOpacity_=e.getOpacity(),this.imageOriginX_=i[0],this.imageOriginY_=i[1],this.imageRotateWithView_=e.getRotateWithView(),this.imageRotation_=e.getRotation();const o=e.getScaleArray();this.imageScale_=[o[0]*this.pixelRatio_/n,o[1]*this.pixelRatio_/n],this.imageWidth_=t[0]*n}setTextStyle(e){if(e){const t=e.getFill();if(t){const e=t.getColor();this.textFillState_={fillStyle:SZ(e||GZ)}}else this.textFillState_=null;const n=e.getStroke();if(n){const e=n.getColor(),t=n.getLineCap(),r=n.getLineDash(),i=n.getLineDashOffset(),o=n.getLineJoin(),s=n.getWidth(),a=n.getMiterLimit();this.textStrokeState_={lineCap:void 0!==t?t:TZ,lineDash:r||MZ,lineDashOffset:i||0,lineJoin:void 0!==o?o:OZ,lineWidth:void 0!==s?s:1,miterLimit:void 0!==a?a:10,strokeStyle:SZ(e||RZ)}}else this.textStrokeState_=null;const r=e.getFont(),i=e.getOffsetX(),o=e.getOffsetY(),s=e.getRotateWithView(),a=e.getRotation(),l=e.getScaleArray(),c=e.getText(),u=e.getTextAlign(),d=e.getTextBaseline();this.textState_={font:void 0!==r?r:IZ,textAlign:void 0!==u?u:DZ,textBaseline:void 0!==d?d:NZ},this.text_=void 0!==c?Array.isArray(c)?c.reduce(((e,t,n)=>e+(n%2?" ":t)),""):c:"",this.textOffsetX_=void 0!==i?this.pixelRatio_*i:0,this.textOffsetY_=void 0!==o?this.pixelRatio_*o:0,this.textRotateWithView_=void 0!==s&&s,this.textRotation_=void 0!==a?a:0,this.textScale_=[this.pixelRatio_*l[0],this.pixelRatio_*l[1]]}else this.text_=""}},w1=.5;const E1=.5,P1={Point:function(e,t,n,r,i,o){const s=n.getImage(),a=n.getText(),l=a&&a.getText(),c=o&&s&&l?{}:void 0;if(s){if(s.getImageState()!=HD.LOADED)return;const o=e.getBuilder(n.getZIndex(),"Image");o.setImageStyle(s,c),o.drawPoint(t,r,i)}if(l){const o=e.getBuilder(n.getZIndex(),"Text");o.setTextStyle(a,c),o.drawText(t,r,i)}},LineString:function(e,t,n,r,i){const o=n.getStroke();if(o){const s=e.getBuilder(n.getZIndex(),"LineString");s.setFillStrokeStyle(null,o),s.drawLineString(t,r,i)}const s=n.getText();if(s&&s.getText()){const o=e.getBuilder(n.getZIndex(),"Text");o.setTextStyle(s),o.drawText(t,r,i)}},Polygon:function(e,t,n,r,i){const o=n.getFill(),s=n.getStroke();if(o||s){const a=e.getBuilder(n.getZIndex(),"Polygon");a.setFillStrokeStyle(o,s),a.drawPolygon(t,r,i)}const a=n.getText();if(a&&a.getText()){const o=e.getBuilder(n.getZIndex(),"Text");o.setTextStyle(a),o.drawText(t,r,i)}},MultiPoint:function(e,t,n,r,i,o){const s=n.getImage(),a=s&&0!==s.getOpacity(),l=n.getText(),c=l&&l.getText(),u=o&&a&&c?{}:void 0;if(a){if(s.getImageState()!=HD.LOADED)return;const o=e.getBuilder(n.getZIndex(),"Image");o.setImageStyle(s,u),o.drawMultiPoint(t,r,i)}if(c){const o=e.getBuilder(n.getZIndex(),"Text");o.setTextStyle(l,u),o.drawText(t,r,i)}},MultiLineString:function(e,t,n,r,i){const o=n.getStroke();if(o){const s=e.getBuilder(n.getZIndex(),"LineString");s.setFillStrokeStyle(null,o),s.drawMultiLineString(t,r,i)}const s=n.getText();if(s&&s.getText()){const o=e.getBuilder(n.getZIndex(),"Text");o.setTextStyle(s),o.drawText(t,r,i)}},MultiPolygon:function(e,t,n,r,i){const o=n.getFill(),s=n.getStroke();if(s||o){const a=e.getBuilder(n.getZIndex(),"Polygon");a.setFillStrokeStyle(o,s),a.drawMultiPolygon(t,r,i)}const a=n.getText();if(a&&a.getText()){const o=e.getBuilder(n.getZIndex(),"Text");o.setTextStyle(a),o.drawText(t,r,i)}},GeometryCollection:function(e,t,n,r,i,o){const s=t.getGeometriesArray();let a,l;for(a=0,l=s.length;a<l;++a){(0,P1[s[a].getType()])(e,s[a],n,r,i,o)}},Circle:function(e,t,n,r,i){const o=n.getFill(),s=n.getStroke();if(o||s){const a=e.getBuilder(n.getZIndex(),"Circle");a.setFillStrokeStyle(o,s),a.drawCircle(t,r,i)}const a=n.getText();if(a&&a.getText()){const i=e.getBuilder(n.getZIndex(),"Text");i.setTextStyle(a),i.drawText(t,r)}}};function C1(e,t){return parseInt(xD(e),10)-parseInt(xD(t),10)}function A1(e,t){const n=k1(e,t);return n*n}function k1(e,t){return E1*e/t}function j1(e,t,n,r,i,o,s,a){const l=[],c=n.getImage();if(c){let e=!0;const t=c.getImageState();t==HD.LOADED||t==HD.ERROR?e=!1:t==HD.IDLE&&c.load(),e&&l.push(c.ready())}const u=n.getFill();u&&u.loading()&&l.push(u.ready());const d=l.length>0;return d&&Promise.all(l).then((()=>i(null))),function(e,t,n,r,i,o,s){const a=n.getGeometryFunction()(t);if(!a)return;const l=a.simplifyTransformed(r,i),c=n.getRenderer();if(c)I1(e,l,n,t,s);else{(0,P1[l.getType()])(e,l,n,t,s,o)}}(e,t,n,r,o,s,a),d}function I1(e,t,n,r,i){if("GeometryCollection"==t.getType()){const o=t.getGeometries();for(let t=0,s=o.length;t<s;++t)I1(e,o[t],n,r,i);return}e.getBuilder(n.getZIndex(),"Default").drawCustom(t,r,n.getRenderer(),n.getHitDetectionRenderer(),i)}const G1=class extends t0{constructor(e){super(e),this.boundHandleStyleImageChange_=this.handleStyleImageChange_.bind(this),this.animatingOrInteracting_,this.hitDetectionImageData_=null,this.clipped_=!1,this.renderedFeatures_=null,this.renderedRevision_=-1,this.renderedResolution_=NaN,this.renderedExtent_=[1/0,1/0,-1/0,-1/0],this.wrappedRenderedExtent_=[1/0,1/0,-1/0,-1/0],this.renderedRotation_,this.renderedCenter_=null,this.renderedProjection_=null,this.renderedPixelRatio_=1,this.renderedRenderOrder_=null,this.renderedFrameDeclutter_,this.replayGroup_=null,this.replayGroupChanged=!0,this.clipping=!0,this.targetContext_=null,this.opacity_=1}renderWorlds(e,t,n){const r=t.extent,i=t.viewState,o=i.center,s=i.resolution,a=i.projection,l=i.rotation,c=a.getExtent(),u=this.getLayer().getSource(),d=this.getLayer().getDeclutter(),h=t.pixelRatio,p=t.viewHints,f=!(p[mY]||p[yY]),g=this.context,m=Math.round(dO(r)/s*h),y=Math.round(aO(r)/s*h),v=u.getWrapX()&&a.canWrapX(),_=v?dO(c):null,b=v?Math.ceil((r[2]-c[2])/_)+1:1;let x=v?Math.floor((r[0]-c[0])/_):0;do{let r=this.getRenderTransform(o,s,0,h,m,y,x*_);t.declutter&&(r=r.slice(0)),e.execute(g,[g.canvas.width,g.canvas.height],r,l,f,void 0===n?y1:n?v1:_1,n?d&&t.declutter[d]:void 0)}while(++x<b)}setDrawContext_(){1!==this.opacity_&&(this.targetContext_=this.context,this.context=ND(this.context.canvas.width,this.context.canvas.height,QQ))}resetDrawContext_(){if(1!==this.opacity_){const e=this.targetContext_.globalAlpha;this.targetContext_.globalAlpha=this.opacity_,this.targetContext_.drawImage(this.context.canvas,0,0),this.targetContext_.globalAlpha=e,FD(this.context),QQ.push(this.context.canvas),this.context=this.targetContext_,this.targetContext_=null}}renderDeclutter(e){this.replayGroup_&&this.getLayer().getDeclutter()&&this.renderWorlds(this.replayGroup_,e,!0)}renderDeferredInternal(e){this.replayGroup_&&(this.replayGroup_.renderDeferred(),this.clipped_&&this.context.restore(),this.resetDrawContext_())}renderFrame(e,t){const n=e.layerStatesArray[e.layerIndex];this.opacity_=n.opacity;const r=e.viewState;this.prepareContainer(e,t);const i=this.context,o=this.replayGroup_;let s=o&&!o.isEmpty();if(!s){if(!(this.getLayer().hasListener(dY)||this.getLayer().hasListener(hY)))return null}this.setDrawContext_(),this.preRender(i,e);const a=r.projection;if(this.clipped_=!1,s&&n.extent&&this.clipping){const t=VR(n.extent,a);s=hO(t,e.extent),this.clipped_=s&&!zM(t,e.extent),this.clipped_&&this.clipUnrotated(i,e,t)}return s&&this.renderWorlds(o,e,!this.getLayer().getDeclutter()&&void 0),!e.declutter&&this.clipped_&&i.restore(),this.postRender(i,e),this.renderedRotation_!==r.rotation&&(this.renderedRotation_=r.rotation,this.hitDetectionImageData_=null),e.declutter||this.resetDrawContext_(),this.container}getFeatures(e){return new Promise((t=>{if(this.frameState&&!this.hitDetectionImageData_&&!this.animatingOrInteracting_){const e=this.frameState.size.slice(),t=this.renderedCenter_,n=this.renderedResolution_,r=this.renderedRotation_,i=this.renderedProjection_,o=this.wrappedRenderedExtent_,s=this.getLayer(),a=[],l=e[0]*w1,c=e[1]*w1;a.push(this.getRenderTransform(t,n,r,w1,l,c,0).slice());const u=s.getSource(),d=i.getExtent();if(u.getWrapX()&&i.canWrapX()&&!zM(d,o)){let e=o[0];const i=dO(d);let s,u=0;for(;e<d[0];)--u,s=i*u,a.push(this.getRenderTransform(t,n,r,w1,l,c,s).slice()),e+=i;for(u=0,e=o[2];e>d[2];)++u,s=i*u,a.push(this.getRenderTransform(t,n,r,w1,l,c,s).slice()),e-=i}const h=RR();this.hitDetectionImageData_=function(e,t,n,r,i,o,s,a,l){const c=l?LR(i,l):i,u=ND(e[0]*w1,e[1]*w1);u.imageSmoothingEnabled=!1;const d=u.canvas,h=new S1(u,w1,i,null,s,a,l?IR(RR(),l):null),p=n.length,f=Math.floor(16777215/p),g={};for(let y=1;y<=p;++y){const e=n[y-1],t=e.getStyleFunction()||r;if(!t)continue;let i=t(e,o);if(!i)continue;Array.isArray(i)||(i=[i]);const s=(y*f).toString(16).padStart(7,"#00000");for(let n=0,r=i.length;n<r;++n){const t=i[n],r=t.getGeometryFunction()(e);if(!r||!hO(c,r.getExtent()))continue;const o=t.clone(),a=o.getFill();a&&a.setColor(s);const l=o.getStroke();l&&(l.setColor(s),l.setLineDash(null)),o.setText(void 0);const u=t.getImage();if(u){const e=u.getImageSize();if(!e)continue;const t=ND(e[0],e[1],void 0,{alpha:!1}),n=t.canvas;t.fillStyle=s,t.fillRect(0,0,n.width,n.height),o.setImage(new d$({img:n,anchor:u.getAnchor(),anchorXUnits:"pixels",anchorYUnits:"pixels",offset:u.getOrigin(),opacity:1,size:u.getSize(),scale:u.getScale(),rotation:u.getRotation(),rotateWithView:u.getRotateWithView()}))}const d=o.getZIndex()||0;let h=g[d];h||(h={},g[d]=h,h.Polygon=[],h.Circle=[],h.LineString=[],h.Point=[]);const p=r.getType();if("GeometryCollection"===p){const e=r.getGeometriesArrayRecursive();for(let t=0,n=e.length;t<n;++t){const n=e[t];h[n.getType().replace("Multi","")].push(n,o)}}else h[p.replace("Multi","")].push(r,o)}}const m=Object.keys(g).map(Number).sort(eD);for(let y=0,v=m.length;y<v;++y){const e=g[m[y]];for(const n in e){const r=e[n];for(let e=0,n=r.length;e<n;e+=2){h.setStyle(r[e+1]);for(let n=0,i=t.length;n<i;++n)h.setTransform(t[n]),h.drawGeometry(r[e])}}}return u.getImageData(0,0,d.width,d.height)}(e,a,this.renderedFeatures_,s.getStyleFunction(),o,n,r,A1(n,this.renderedPixelRatio_),h?i:null)}t(function(e,t,n){const r=[];if(n){const i=Math.floor(Math.round(e[0])*w1),o=Math.floor(Math.round(e[1])*w1),s=4*(VO(i,0,n.width-1)+VO(o,0,n.height-1)*n.width),a=n.data[s],l=n.data[s+1],c=n.data[s+2]+256*(l+256*a),u=Math.floor(16777215/t.length);c&&c%u===0&&r.push(t[c/u-1])}return r}(e,this.renderedFeatures_,this.hitDetectionImageData_))}))}forEachFeatureAtCoordinate(e,t,n,r,i){if(!this.replayGroup_)return;const o=t.viewState.resolution,s=t.viewState.rotation,a=this.getLayer(),l={},c=function(e,t,n){const o=xD(e),s=l[o];if(s){if(!0!==s&&n<s.distanceSq){if(0===n)return l[o]=!0,i.splice(i.lastIndexOf(s),1),r(e,a,t);s.geometry=t,s.distanceSq=n}}else{if(0===n)return l[o]=!0,r(e,a,t);i.push(l[o]={feature:e,layer:a,geometry:t,distanceSq:n,callback:r})}};let u;const d=[this.replayGroup_],h=this.getLayer().getDeclutter();return d.some((r=>u=r.forEachFeatureAtCoordinate(e,o,s,n,c,h&&t.declutter[h]?t.declutter[h].all().map((e=>e.value)):null))),u}handleFontsChanged(){const e=this.getLayer();e.getVisible()&&this.replayGroup_&&e.changed()}handleStyleImageChange_(e){this.renderIfReadyAndVisible()}prepareFrame(e){const t=this.getLayer(),n=t.getSource();if(!n)return!1;const r=e.viewHints[mY],i=e.viewHints[yY],o=t.getUpdateWhileAnimating(),s=t.getUpdateWhileInteracting();if(this.ready&&!o&&r||!s&&i)return this.animatingOrInteracting_=!0,!0;this.animatingOrInteracting_=!1;const a=e.extent,l=e.viewState,c=l.projection,u=l.resolution,d=e.pixelRatio,h=t.getRevision(),p=t.getRenderBuffer();let f=t.getRenderOrder();void 0===f&&(f=C1);const g=l.center.slice(),m=NM(a,p*u),y=m.slice(),v=[m.slice()],_=c.getExtent();if(n.getWrapX()&&c.canWrapX()&&!zM(_,e.extent)){const e=dO(_),t=Math.max(dO(m)/2,e);m[0]=_[0]-t,m[2]=_[2]+t,rR(g,c);const n=mO(v[0],c);n[0]<_[0]&&n[2]<_[2]?v.push([n[0]+e,n[1],n[2]+e,n[3]]):n[0]>_[0]&&n[2]>_[2]&&v.push([n[0]-e,n[1],n[2]-e,n[3]])}if(this.ready&&this.renderedResolution_==u&&this.renderedRevision_==h&&this.renderedRenderOrder_==f&&this.renderedFrameDeclutter_===!!e.declutter&&zM(this.wrappedRenderedExtent_,m))return oD(this.renderedExtent_,y)||(this.hitDetectionImageData_=null,this.renderedExtent_=y),this.renderedCenter_=g,this.replayGroupChanged=!1,!0;this.replayGroup_=null;const b=new o1(k1(u,d),m,u,d),x=RR();let S;if(x){for(let e=0,t=v.length;e<t;++e){const t=LR(v[e],c);n.loadFeatures(t,FR(u,c),x)}S=IR(x,c)}else for(let I=0,G=v.length;I<G;++I)n.loadFeatures(v[I],u,c);const w=A1(u,d);let E=!0;const P=(e,n)=>{let r;const i=e.getStyleFunction()||t.getStyleFunction();if(i&&(r=i(e,u)),r){const t=this.renderFeature(e,w,r,b,S,this.getLayer().getDeclutter(),n);E=E&&!t}},C=LR(m,c),A=n.getFeaturesInExtent(C);f&&A.sort(f);for(let I=0,G=A.length;I<G;++I)P(A[I],I);this.renderedFeatures_=A,this.ready=E;const k=b.finish(),j=new x1(m,u,d,n.getOverlaps(),k,t.getRenderBuffer(),!!e.declutter);return this.renderedResolution_=u,this.renderedRevision_=h,this.renderedRenderOrder_=f,this.renderedFrameDeclutter_=!!e.declutter,this.renderedExtent_=y,this.wrappedRenderedExtent_=m,this.renderedCenter_=g,this.renderedProjection_=c,this.renderedPixelRatio_=d,this.replayGroup_=j,this.hitDetectionImageData_=null,this.replayGroupChanged=!0,!0}renderFeature(e,t,n,r,i,o,s){if(!n)return!1;let a=!1;if(Array.isArray(n))for(let l=0,c=n.length;l<c;++l)a=j1(r,e,n[l],t,this.boundHandleStyleImageChange_,i,o,s)||a;else a=j1(r,e,n,t,this.boundHandleStyleImageChange_,i,o,s);return a}};const T1=class extends gJ{constructor(e){super(e)}createRenderer(){return new G1(this)}};const M1=class{constructor(e){this.rbush_=new MK(e),this.items_={}}insert(e,t){const n={minX:e[0],minY:e[1],maxX:e[2],maxY:e[3],value:t};this.rbush_.insert(n),this.items_[xD(t)]=n}load(e,t){const n=new Array(t.length);for(let r=0,i=t.length;r<i;r++){const i=e[r],o=t[r],s={minX:i[0],minY:i[1],maxX:i[2],maxY:i[3],value:o};n[r]=s,this.items_[xD(o)]=s}this.rbush_.load(n)}remove(e){const t=xD(e),n=this.items_[t];return delete this.items_[t],null!==this.rbush_.remove(n)}update(e,t){const n=this.items_[xD(t)];KM([n.minX,n.minY,n.maxX,n.maxY],e)||(this.remove(t),this.insert(e,t))}getAll(){return this.rbush_.all().map((function(e){return e.value}))}getInExtent(e){const t={minX:e[0],minY:e[1],maxX:e[2],maxY:e[3]};return this.rbush_.search(t).map((function(e){return e.value}))}forEach(e){return this.forEach_(this.getAll(),e)}forEachInExtent(e,t){return this.forEach_(this.getInExtent(e),t)}forEach_(e,t){let n;for(let r=0,i=e.length;r<i;r++)if(n=t(e[r]),n)return n;return n}isEmpty(){return hD(this.items_)}clear(){this.rbush_.clear(),this.items_={}}getExtent(e){const t=this.rbush_.toJSON();return HM(t.minX,t.minY,t.maxX,t.maxY,e)}concat(e){this.rbush_.load(e.rbush_.all());for(const t in e.items_)this.items_[t]=e.items_[t]}},O1=[1,0,0,1,0,0];class R1{constructor(e,t,n,r,i,o){this.styleFunction,this.extent_,this.id_=o,this.type_=e,this.flatCoordinates_=t,this.flatInteriorPoints_=null,this.flatMidpoints_=null,this.ends_=n||null,this.properties_=i,this.squaredTolerance_,this.stride_=r,this.simplifiedGeometry_}get(e){return this.properties_[e]}getExtent(){return this.extent_||(this.extent_="Point"===this.type_?XM(this.flatCoordinates_):YM(this.flatCoordinates_,0,this.flatCoordinates_.length,2)),this.extent_}getFlatInteriorPoint(){if(!this.flatInteriorPoints_){const e=iO(this.getExtent());this.flatInteriorPoints_=hK(this.flatCoordinates_,0,this.ends_,2,e,0)}return this.flatInteriorPoints_}getFlatInteriorPoints(){if(!this.flatInteriorPoints_){const e=function(e,t){const n=[];let r,i=0,o=0;for(let s=0,a=t.length;s<a;++s){const a=t[s],l=gK(e,i,a,2);if(void 0===r&&(r=l),l===r)n.push(t.slice(o,s+1));else{if(0===n.length)continue;n[n.length-1].push(t[o])}o=s+1,i=a}return n}(this.flatCoordinates_,this.ends_),t=F0(this.flatCoordinates_,0,e,2);this.flatInteriorPoints_=pK(this.flatCoordinates_,0,e,2,t)}return this.flatInteriorPoints_}getFlatMidpoint(){return this.flatMidpoints_||(this.flatMidpoints_=C0(this.flatCoordinates_,0,this.flatCoordinates_.length,2,.5)),this.flatMidpoints_}getFlatMidpoints(){if(!this.flatMidpoints_){this.flatMidpoints_=[];const e=this.flatCoordinates_;let t=0;const n=this.ends_;for(let r=0,i=n.length;r<i;++r){const i=n[r],o=C0(e,t,i,2,.5);iD(this.flatMidpoints_,o),t=i}}return this.flatMidpoints_}getId(){return this.id_}getOrientedFlatCoordinates(){return this.flatCoordinates_}getGeometry(){return this}getSimplifiedGeometry(e){return this}simplifyTransformed(e,t){return this}getProperties(){return this.properties_}getPropertiesInternal(){return this.properties_}getStride(){return this.stride_}getStyleFunction(){return this.styleFunction}getType(){return this.type_}transform(e){const t=(e=xR(e)).getExtent(),n=e.getWorldExtent();if(t&&n){const e=aO(n)/aO(t);TY(O1,n[0],n[3],e,-e,0,0,0),DY(this.flatCoordinates_,0,this.flatCoordinates_.length,2,O1,this.flatCoordinates_)}}applyTransform(e){e(this.flatCoordinates_,this.flatCoordinates_,this.stride_)}clone(){var e;return new R1(this.type_,this.flatCoordinates_.slice(),null===(e=this.ends_)||void 0===e?void 0:e.slice(),this.stride_,Object.assign({},this.properties_),this.id_)}getEnds(){return this.ends_}enableSimplifyTransformed(){return this.simplifyTransformed=cD(((e,t)=>{if(e===this.squaredTolerance_)return this.simplifiedGeometry_;this.simplifiedGeometry_=this.clone(),t&&this.simplifiedGeometry_.applyTransform(t);const n=this.simplifiedGeometry_.getFlatCoordinates();let r;switch(this.type_){case"LineString":n.length=JY(n,0,this.simplifiedGeometry_.flatCoordinates_.length,this.simplifiedGeometry_.stride_,e,n,0),r=[n.length];break;case"MultiLineString":r=[],n.length=QY(n,0,this.simplifiedGeometry_.ends_,this.simplifiedGeometry_.stride_,e,n,0,r);break;case"Polygon":r=[],n.length=nK(n,0,this.simplifiedGeometry_.ends_,this.simplifiedGeometry_.stride_,Math.sqrt(e),n,0,r)}return r&&(this.simplifiedGeometry_=new R1(this.type_,n,r,2,this.properties_,this.id_)),this.squaredTolerance_=e,this.simplifiedGeometry_})),this}}R1.prototype.getFlatCoordinates=R1.prototype.getOrientedFlatCoordinates;const D1=R1,N1="addfeature",L1="changefeature",V1="clear",F1="removefeature",z1="featuresloadstart",B1="featuresloadend",U1="featuresloaderror";function W1(e,t){return[[-1/0,-1/0,1/0,1/0]]}let H1=!1;function q1(e,t){return function(n,r,i,o,s){const a=this;!function(e,t,n,r,i,o,s){const a=new XMLHttpRequest;a.open("GET","function"===typeof e?e(n,r,i):e,!0),"arraybuffer"==t.getType()&&(a.responseType="arraybuffer"),a.withCredentials=H1,a.onload=function(e){if(!a.status||a.status>=200&&a.status<300){const e=t.getType();try{let r;"text"==e||"json"==e?r=a.responseText:"xml"==e?r=a.responseXML||a.responseText:"arraybuffer"==e&&(r=a.response),r?o(t.readFeatures(r,{extent:n,featureProjection:i}),t.readProjection(r)):s()}catch{s()}}else s()},a.onerror=s,a.send()}(e,t,n,r,i,(function(e,t){a.addFeatures(e),void 0!==o&&o(e)}),s||lD)}}class X1 extends QR{constructor(e,t,n){super(e),this.feature=t,this.features=n}}const Y1=class extends EN{constructor(e){super({attributions:(e=e||{}).attributions,interpolate:!0,projection:void 0,state:"ready",wrapX:void 0===e.wrapX||e.wrapX}),this.on,this.once,this.un,this.loader_=lD,this.format_=e.format||null,this.overlaps_=void 0===e.overlaps||e.overlaps,this.url_=e.url,void 0!==e.loader?this.loader_=e.loader:void 0!==this.url_&&(lN(this.format_,"`format` must be set when `url` is set"),this.loader_=q1(this.url_,this.format_)),this.strategy_=void 0!==e.strategy?e.strategy:W1;const t=void 0===e.useSpatialIndex||e.useSpatialIndex;let n,r;this.featuresRtree_=t?new M1:null,this.loadedExtentsRtree_=new M1,this.loadingExtentsCount_=0,this.nullGeometryFeatures_={},this.idIndex_={},this.uidIndex_={},this.featureChangeKeys_={},this.featuresCollection_=null,Array.isArray(e.features)?r=e.features:e.features&&(n=e.features,r=n.getArray()),t||void 0!==n||(n=new QX(r)),void 0!==r&&this.addFeaturesInternal(r),void 0!==n&&this.bindFeaturesCollection_(n)}addFeature(e){this.addFeatureInternal(e),this.changed()}addFeatureInternal(e){const t=xD(e);if(!this.addToIndex_(t,e))return void(this.featuresCollection_&&this.featuresCollection_.remove(e));this.setupChangeEvents_(t,e);const n=e.getGeometry();if(n){const t=n.getExtent();this.featuresRtree_&&this.featuresRtree_.insert(t,e)}else this.nullGeometryFeatures_[t]=e;this.dispatchEvent(new X1(N1,e))}setupChangeEvents_(e,t){t instanceof D1||(this.featureChangeKeys_[e]=[qD(t,BR,this.handleFeatureChange_,this),qD(t,yN,this.handleFeatureChange_,this)])}addToIndex_(e,t){let n=!0;if(void 0!==t.getId()){const e=String(t.getId());if(e in this.idIndex_)if(t instanceof D1){const r=this.idIndex_[e];r instanceof D1?Array.isArray(r)?r.push(t):this.idIndex_[e]=[r,t]:n=!1}else n=!1;else this.idIndex_[e]=t}return n&&(lN(!(e in this.uidIndex_),"The passed `feature` was already added to the source"),this.uidIndex_[e]=t),n}addFeatures(e){this.addFeaturesInternal(e),this.changed()}addFeaturesInternal(e){const t=[],n=[],r=[];for(let i=0,o=e.length;i<o;i++){const t=e[i],r=xD(t);this.addToIndex_(r,t)&&n.push(t)}for(let i=0,o=n.length;i<o;i++){const e=n[i],o=xD(e);this.setupChangeEvents_(o,e);const s=e.getGeometry();if(s){const n=s.getExtent();t.push(n),r.push(e)}else this.nullGeometryFeatures_[o]=e}if(this.featuresRtree_&&this.featuresRtree_.load(t,r),this.hasListener(N1))for(let i=0,o=n.length;i<o;i++)this.dispatchEvent(new X1(N1,n[i]))}bindFeaturesCollection_(e){let t=!1;this.addEventListener(N1,(function(n){t||(t=!0,e.push(n.feature),t=!1)})),this.addEventListener(F1,(function(n){t||(t=!0,e.remove(n.feature),t=!1)})),e.addEventListener(KX,(e=>{t||(t=!0,this.addFeature(e.element),t=!1)})),e.addEventListener(ZX,(e=>{t||(t=!0,this.removeFeature(e.element),t=!1)})),this.featuresCollection_=e}clear(e){if(e){for(const e in this.featureChangeKeys_){this.featureChangeKeys_[e].forEach(YD)}this.featuresCollection_||(this.featureChangeKeys_={},this.idIndex_={},this.uidIndex_={})}else if(this.featuresRtree_){const e=e=>{this.removeFeatureInternal(e)};this.featuresRtree_.forEach(e);for(const t in this.nullGeometryFeatures_)this.removeFeatureInternal(this.nullGeometryFeatures_[t])}this.featuresCollection_&&this.featuresCollection_.clear(),this.featuresRtree_&&this.featuresRtree_.clear(),this.nullGeometryFeatures_={};const t=new X1(V1);this.dispatchEvent(t),this.changed()}forEachFeature(e){if(this.featuresRtree_)return this.featuresRtree_.forEach(e);this.featuresCollection_&&this.featuresCollection_.forEach(e)}forEachFeatureAtCoordinateDirect(e,t){const n=[e[0],e[1],e[0],e[1]];return this.forEachFeatureInExtent(n,(function(n){const r=n.getGeometry();if(r instanceof D1||r.intersectsCoordinate(e))return t(n)}))}forEachFeatureInExtent(e,t){if(this.featuresRtree_)return this.featuresRtree_.forEachInExtent(e,t);this.featuresCollection_&&this.featuresCollection_.forEach(t)}forEachFeatureIntersectingExtent(e,t){return this.forEachFeatureInExtent(e,(function(n){const r=n.getGeometry();if(r instanceof D1||r.intersectsExtent(e)){const e=t(n);if(e)return e}}))}getFeaturesCollection(){return this.featuresCollection_}getFeatures(){let e;return this.featuresCollection_?e=this.featuresCollection_.getArray().slice(0):this.featuresRtree_&&(e=this.featuresRtree_.getAll(),hD(this.nullGeometryFeatures_)||iD(e,Object.values(this.nullGeometryFeatures_))),e}getFeaturesAtCoordinate(e){const t=[];return this.forEachFeatureAtCoordinateDirect(e,(function(e){t.push(e)})),t}getFeaturesInExtent(e,t){if(this.featuresRtree_){if(!(t&&t.canWrapX()&&this.getWrapX()))return this.featuresRtree_.getInExtent(e);const n=yO(e,t);return[].concat(...n.map((e=>this.featuresRtree_.getInExtent(e))))}return this.featuresCollection_?this.featuresCollection_.getArray().slice(0):[]}getClosestFeatureToCoordinate(e,t){const n=e[0],r=e[1];let i=null;const o=[NaN,NaN];let s=1/0;const a=[-1/0,-1/0,1/0,1/0];return t=t||sD,this.featuresRtree_.forEachInExtent(a,(function(e){if(t(e)){const t=e.getGeometry(),l=s;if(s=t instanceof D1?0:t.closestPointXY(n,r,o,s),s<l){i=e;const t=Math.sqrt(s);a[0]=n-t,a[1]=r-t,a[2]=n+t,a[3]=r+t}}})),i}getExtent(e){return this.featuresRtree_.getExtent(e)}getFeatureById(e){const t=this.idIndex_[e.toString()];return void 0!==t?t:null}getFeatureByUid(e){const t=this.uidIndex_[e];return void 0!==t?t:null}getFormat(){return this.format_}getOverlaps(){return this.overlaps_}getUrl(){return this.url_}handleFeatureChange_(e){const t=e.target,n=xD(t),r=t.getGeometry();if(r){const e=r.getExtent();n in this.nullGeometryFeatures_?(delete this.nullGeometryFeatures_[n],this.featuresRtree_&&this.featuresRtree_.insert(e,t)):this.featuresRtree_&&this.featuresRtree_.update(e,t)}else n in this.nullGeometryFeatures_||(this.featuresRtree_&&this.featuresRtree_.remove(t),this.nullGeometryFeatures_[n]=t);const i=t.getId();if(void 0!==i){const e=i.toString();this.idIndex_[e]!==t&&(this.removeFromIdIndex_(t),this.idIndex_[e]=t)}else this.removeFromIdIndex_(t),this.uidIndex_[n]=t;this.changed(),this.dispatchEvent(new X1(L1,t))}hasFeature(e){const t=e.getId();return void 0!==t?t in this.idIndex_:xD(e)in this.uidIndex_}isEmpty(){return this.featuresRtree_?this.featuresRtree_.isEmpty()&&hD(this.nullGeometryFeatures_):!this.featuresCollection_||0===this.featuresCollection_.getLength()}loadFeatures(e,t,n){const r=this.loadedExtentsRtree_,i=this.strategy_(e,t,n);for(let o=0,s=i.length;o<s;++o){const e=i[o],s=r.forEachInExtent(e,(function(t){return zM(t.extent,e)}));s||(++this.loadingExtentsCount_,this.dispatchEvent(new X1(z1)),this.loader_.call(this,e,t,n,(e=>{--this.loadingExtentsCount_,this.dispatchEvent(new X1(B1,void 0,e))}),(()=>{--this.loadingExtentsCount_,this.dispatchEvent(new X1(U1))})),r.insert(e,{extent:e.slice()}))}this.loading=!(this.loader_.length<4)&&this.loadingExtentsCount_>0}refresh(){this.clear(!0),this.loadedExtentsRtree_.clear(),super.refresh()}removeLoadedExtent(e){const t=this.loadedExtentsRtree_;let n;t.forEachInExtent(e,(function(t){if(KM(t.extent,e))return n=t,!0})),n&&t.remove(n)}removeFeatures(e){let t=!1;for(let n=0,r=e.length;n<r;++n)t=this.removeFeatureInternal(e[n])||t;t&&this.changed()}removeFeature(e){if(!e)return;this.removeFeatureInternal(e)&&this.changed()}removeFeatureInternal(e){const t=xD(e);if(!(t in this.uidIndex_))return!1;t in this.nullGeometryFeatures_?delete this.nullGeometryFeatures_[t]:this.featuresRtree_&&this.featuresRtree_.remove(e);const n=this.featureChangeKeys_[t];null===n||void 0===n||n.forEach(YD),delete this.featureChangeKeys_[t];const r=e.getId();if(void 0!==r){const t=r.toString(),n=this.idIndex_[t];n===e?delete this.idIndex_[t]:Array.isArray(n)&&(n.splice(n.indexOf(e),1),1===n.length&&(this.idIndex_[t]=n[0]))}return delete this.uidIndex_[t],this.hasListener(F1)&&this.dispatchEvent(new X1(F1,e)),!0}removeFromIdIndex_(e){for(const t in this.idIndex_)if(this.idIndex_[t]===e){delete this.idIndex_[t];break}}setLoader(e){this.loader_=e}setUrl(e){lN(this.format_,"`format` must be set when `url` is set"),this.url_=e,this.setLoader(q1(e,this.format_))}},K1="drawstart",Z1="drawend",$1="drawabort";class J1 extends QR{constructor(e,t){super(e),this.feature=t}}function Q1(e,t){return zO(e[0],e[1],t[0],t[1])}function e3(e,t){const n=e.length;return t<0?e[t+n]:t>=n?e[t-n]:e[t]}function t3(e,t,n){let r,i;t<n?(r=t,i=n):(r=n,i=t);const o=Math.ceil(r),s=Math.floor(i);if(o>s){return Q1(a3(e,r),a3(e,i))}let a=0;if(r<o){a+=Q1(a3(e,r),e3(e,o))}if(s<i){a+=Q1(e3(e,s),a3(e,i))}for(let l=o;l<s-1;++l){a+=Q1(e3(e,l),e3(e,l+1))}return a}function n3(e,t,n){if(t instanceof I0)i3(e,t.getCoordinates(),!1,n);else if(t instanceof N0){const r=t.getCoordinates();for(let t=0,i=r.length;t<i;++t)i3(e,r[t],!1,n)}else if(t instanceof xK){const r=t.getCoordinates();for(let t=0,i=r.length;t<i;++t)i3(e,r[t],!0,n)}else if(t instanceof B0){const r=t.getCoordinates();for(let t=0,i=r.length;t<i;++t){const i=r[t];for(let t=0,r=i.length;t<r;++t)i3(e,i[t],!0,n)}}else if(t instanceof R0){const r=t.getGeometries();for(let t=0;t<r.length;++t)n3(e,r[t],n)}else;}const r3={index:-1,endIndex:NaN};function i3(e,t,n,r){const i=e[0],o=e[1];for(let s=0,a=t.length-1;s<a;++s){const e=s3(i,o,t[s],t[s+1]);if(0===e.squaredDistance){const i=s+e.along;return void r.push({coordinates:t,ring:n,startIndex:i,endIndex:i})}}}const o3={along:0,squaredDistance:0};function s3(e,t,n,r){const i=n[0],o=n[1],s=r[0]-i,a=r[1]-o;let l=0,c=i,u=o;return 0===s&&0===a||(l=VO(((e-i)*s+(t-o)*a)/(s*s+a*a),0,1),c+=s*l,u+=a*l),o3.along=l,o3.squaredDistance=qO(zO(e,t,c,u),10),o3}function a3(e,t){const n=e.length;let r=Math.floor(t);const i=t-r;r>=n?r-=n:r<0&&(r+=n);let o=r+1;o>=n&&(o-=n);const s=e[r],a=s[0],l=s[1],c=e[o];return[a+(c[0]-a)*i,l+(c[1]-l)*i]}function l3(){const e=s$();return function(t,n){return e[t.getGeometry().getType()]}}const c3=class extends JJ{constructor(e){const t=e;t.stopDown||(t.stopDown=aD),super(t),this.on,this.once,this.un,this.shouldHandle_=!1,this.downPx_=null,this.downTimeout_,this.lastDragTime_,this.pointerType_,this.freehand_=!1,this.source_=e.source?e.source:null,this.features_=e.features?e.features:null,this.snapTolerance_=e.snapTolerance?e.snapTolerance:12,this.type_=e.type,this.mode_=function(e){switch(e){case"Point":case"MultiPoint":return"Point";case"LineString":case"MultiLineString":return"LineString";case"Polygon":case"MultiPolygon":return"Polygon";case"Circle":return"Circle";default:throw new Error("Invalid type: "+e)}}(this.type_),this.stopClick_=!!e.stopClick,this.minPoints_=e.minPoints?e.minPoints:"Polygon"===this.mode_?3:2,this.maxPoints_="Circle"===this.mode_?2:e.maxPoints?e.maxPoints:1/0,this.finishCondition_=e.finishCondition?e.finishCondition:sD,this.geometryLayout_=e.geometryLayout?e.geometryLayout:"XY";let n=e.geometryFunction;if(!n){const e=this.mode_;if("Circle"===e)n=(e,t,n)=>{const r=t||new T0([NaN,NaN]),i=NR(e[0],n),o=tR(i,NR(e[e.length-1],n));r.setCenterAndRadius(i,Math.sqrt(o),this.geometryLayout_);const s=RR();return s&&r.transform(n,s),r};else{let t;"Point"===e?t=dK:"LineString"===e?t=I0:"Polygon"===e&&(t=xK),n=(n,r,i)=>(r?"Polygon"===e?n[0].length?r.setCoordinates([n[0].concat([n[0][0]])],this.geometryLayout_):r.setCoordinates([],this.geometryLayout_):r.setCoordinates(n,this.geometryLayout_):r=new t(n,this.geometryLayout_),r)}}this.geometryFunction_=n,this.dragVertexDelay_=void 0!==e.dragVertexDelay?e.dragVertexDelay:500,this.finishCoordinate_=null,this.sketchFeature_=null,this.sketchPoint_=null,this.sketchCoords_=null,this.sketchLine_=null,this.sketchLineCoords_=null,this.squaredClickTolerance_=e.clickTolerance?e.clickTolerance*e.clickTolerance:36,this.overlay_=new T1({source:new Y1({useSpatialIndex:!1,wrapX:!!e.wrapX&&e.wrapX}),style:e.style?e.style:l3(),updateWhileInteracting:!0}),this.geometryName_=e.geometryName,this.condition_=e.condition?e.condition:sQ,this.freehandCondition_,e.freehand?this.freehandCondition_=nQ:this.freehandCondition_=e.freehandCondition?e.freehandCondition:aQ,this.traceCondition_,this.setTrace(e.trace||!1),this.traceState_={active:!1},this.traceSource_=e.traceSource||e.source||null,this.addChangeListener(XJ,this.updateState_)}setTrace(e){let t;t=e?!0===e?nQ:e:iQ,this.traceCondition_=t}setMap(e){super.setMap(e),this.updateState_()}getOverlay(){return this.overlay_}handleEvent(e){e.originalEvent.type===WR&&e.originalEvent.preventDefault(),this.freehand_="Point"!==this.mode_&&this.freehandCondition_(e);let t=e.type===CJ.POINTERMOVE,n=!0;if(!this.freehand_&&this.lastDragTime_&&e.type===CJ.POINTERDRAG){Date.now()-this.lastDragTime_>=this.dragVertexDelay_?(this.downPx_=e.pixel,this.shouldHandle_=!this.freehand_,t=!0):this.lastDragTime_=void 0,this.shouldHandle_&&void 0!==this.downTimeout_&&(clearTimeout(this.downTimeout_),this.downTimeout_=void 0)}return this.freehand_&&e.type===CJ.POINTERDRAG&&null!==this.sketchFeature_?(this.addToDrawing_(e.coordinate),n=!1):this.freehand_&&e.type===CJ.POINTERDOWN?n=!1:t&&this.getPointerCount()<2?(n=e.type===CJ.POINTERMOVE,n&&this.freehand_?(this.handlePointerMove_(e),this.shouldHandle_&&e.originalEvent.preventDefault()):("mouse"===e.originalEvent.pointerType||e.type===CJ.POINTERDRAG&&void 0===this.downTimeout_)&&this.handlePointerMove_(e)):e.type===CJ.DBLCLICK&&(n=!1),super.handleEvent(e)&&n}handleDownEvent(e){return this.shouldHandle_=!this.freehand_,this.freehand_?(this.downPx_=e.pixel,this.finishCoordinate_||this.startDrawing_(e.coordinate),!0):this.condition_(e)?(this.lastDragTime_=Date.now(),this.downTimeout_=setTimeout((()=>{this.handlePointerMove_(new PJ(CJ.POINTERMOVE,e.map,e.originalEvent,!1,e.frameState))}),this.dragVertexDelay_),this.downPx_=e.pixel,!0):(this.lastDragTime_=void 0,!1)}deactivateTrace_(){this.traceState_={active:!1}}toggleTraceState_(e){if(!this.traceSource_||!this.traceCondition_(e))return;if(this.traceState_.active)return void this.deactivateTrace_();const t=this.getMap(),n=DM([t.getCoordinateFromPixel([e.pixel[0]-this.snapTolerance_,e.pixel[1]+this.snapTolerance_]),t.getCoordinateFromPixel([e.pixel[0]+this.snapTolerance_,e.pixel[1]-this.snapTolerance_])]),r=this.traceSource_.getFeaturesInExtent(n);if(0===r.length)return;const i=function(e,t){const n=[];for(let r=0;r<t.length;++r)n3(e,t[r].getGeometry(),n);return n}(e.coordinate,r);i.length&&(this.traceState_={active:!0,startPx:e.pixel.slice(),targets:i,targetIndex:-1})}addOrRemoveTracedCoordinates_(e,t){const n=e.startIndex<=e.endIndex;n===e.startIndex<=t?n&&t>e.endIndex||!n&&t<e.endIndex?this.addTracedCoordinates_(e,e.endIndex,t):(n&&t<e.endIndex||!n&&t>e.endIndex)&&this.removeTracedCoordinates_(t,e.endIndex):(this.removeTracedCoordinates_(e.startIndex,e.endIndex),this.addTracedCoordinates_(e,e.startIndex,t))}removeTracedCoordinates_(e,t){if(e===t)return;let n=0;if(e<t){const r=Math.ceil(e);let i=Math.floor(t);i===t&&(i-=1),n=i-r+1}else{const r=Math.floor(e);let i=Math.ceil(t);i===t&&(i+=1),n=r-i+1}n>0&&this.removeLastPoints_(n)}addTracedCoordinates_(e,t,n){if(t===n)return;const r=[];if(t<n){const i=Math.ceil(t);let o=Math.floor(n);o===n&&(o-=1);for(let t=i;t<=o;++t)r.push(e3(e.coordinates,t))}else{const i=Math.floor(t);let o=Math.ceil(n);o===n&&(o+=1);for(let t=i;t>=o;--t)r.push(e3(e.coordinates,t))}r.length&&this.appendCoordinates(r)}updateTrace_(e){const t=this.traceState_;if(!t.active)return;if(-1===t.targetIndex&&nR(t.startPx,e.pixel)<this.snapTolerance_)return;const n=function(e,t,n,r){const i=e[0],o=e[1];let s=1/0,a=-1,l=NaN;for(let d=0;d<t.targets.length;++d){const e=t.targets[d],n=e.coordinates;let r,c=1/0;for(let t=0;t<n.length-1;++t){const e=s3(i,o,n[t],n[t+1]);e.squaredDistance<c&&(c=e.squaredDistance,r=t+e.along)}c<s&&(s=c,e.ring&&t.targetIndex===d&&(e.endIndex>e.startIndex?r<e.startIndex&&(r+=n.length):e.endIndex<e.startIndex&&r>e.startIndex&&(r-=n.length)),l=r,a=d)}const c=t.targets[a];let u=c.ring;if(t.targetIndex===a&&u){const e=a3(c.coordinates,l);nR(n.getPixelFromCoordinate(e),t.startPx)>r&&(u=!1)}if(u){const e=c.coordinates,t=e.length,n=c.startIndex,r=l;if(n<r){const i=t3(e,n,r);t3(e,n,r-t)<i&&(l-=t)}else{const i=t3(e,n,r);t3(e,n,r+t)<i&&(l+=t)}}return r3.index=a,r3.endIndex=l,r3}(e.coordinate,t,this.getMap(),this.snapTolerance_);if(t.targetIndex!==n.index){if(-1!==t.targetIndex){const e=t.targets[t.targetIndex];this.removeTracedCoordinates_(e.startIndex,e.endIndex)}const e=t.targets[n.index];this.addTracedCoordinates_(e,e.startIndex,n.endIndex)}else{const e=t.targets[t.targetIndex];this.addOrRemoveTracedCoordinates_(e,n.endIndex)}t.targetIndex=n.index;const r=t.targets[t.targetIndex];r.endIndex=n.endIndex;const i=a3(r.coordinates,r.endIndex),o=this.getMap().getPixelFromCoordinate(i);e.coordinate=i,e.pixel=[Math.round(o[0]),Math.round(o[1])]}handleUpEvent(e){let t=!0;if(0===this.getPointerCount()){this.downTimeout_&&(clearTimeout(this.downTimeout_),this.downTimeout_=void 0),this.handlePointerMove_(e);const n=this.traceState_.active;if(this.toggleTraceState_(e),this.shouldHandle_){const r=!this.finishCoordinate_;r&&this.startDrawing_(e.coordinate),!r&&this.freehand_?this.finishDrawing():this.freehand_||r&&"Point"!==this.mode_||(this.atFinish_(e.pixel,n)?this.finishCondition_(e)&&this.finishDrawing():this.addToDrawing_(e.coordinate)),t=!1}else this.freehand_&&this.abortDrawing()}return!t&&this.stopClick_&&e.preventDefault(),t}handlePointerMove_(e){if(this.pointerType_=e.originalEvent.pointerType,this.downPx_&&(!this.freehand_&&this.shouldHandle_||this.freehand_&&!this.shouldHandle_)){const t=this.downPx_,n=e.pixel,r=t[0]-n[0],i=t[1]-n[1],o=r*r+i*i;if(this.shouldHandle_=this.freehand_?o>this.squaredClickTolerance_:o<=this.squaredClickTolerance_,!this.shouldHandle_)return}this.finishCoordinate_?(this.updateTrace_(e),this.modifyDrawing_(e.coordinate)):this.createOrUpdateSketchPoint_(e.coordinate.slice())}atFinish_(e,t){let n=!1;if(this.sketchFeature_){let r=!1,i=[this.finishCoordinate_];const o=this.mode_;if("Point"===o)n=!0;else if("Circle"===o)n=2===this.sketchCoords_.length;else if("LineString"===o)r=!t&&this.sketchCoords_.length>this.minPoints_;else if("Polygon"===o){const e=this.sketchCoords_;r=e[0].length>this.minPoints_,i=[e[0][0],e[0][e[0].length-2]],i=t?[e[0][0]]:[e[0][0],e[0][e[0].length-2]]}if(r){const t=this.getMap();for(let r=0,o=i.length;r<o;r++){const o=i[r],s=t.getPixelFromCoordinate(o),a=e[0]-s[0],l=e[1]-s[1],c=this.freehand_?1:this.snapTolerance_;if(n=Math.sqrt(a*a+l*l)<=c,n){this.finishCoordinate_=o;break}}}}return n}createOrUpdateSketchPoint_(e){if(this.sketchPoint_){this.sketchPoint_.getGeometry().setCoordinates(e)}else this.sketchPoint_=new P0(new dK(e)),this.updateSketchFeatures_()}createOrUpdateCustomSketchLine_(e){this.sketchLine_||(this.sketchLine_=new P0);const t=e.getLinearRing(0);let n=this.sketchLine_.getGeometry();n?(n.setFlatCoordinates(t.getLayout(),t.getFlatCoordinates()),n.changed()):(n=new I0(t.getFlatCoordinates(),t.getLayout()),this.sketchLine_.setGeometry(n))}startDrawing_(e){const t=this.getMap().getView().getProjection(),n=zY(this.geometryLayout_);for(;e.length<n;)e.push(0);this.finishCoordinate_=e,"Point"===this.mode_?this.sketchCoords_=e.slice():"Polygon"===this.mode_?(this.sketchCoords_=[[e.slice(),e.slice()]],this.sketchLineCoords_=this.sketchCoords_[0]):this.sketchCoords_=[e.slice(),e.slice()],this.sketchLineCoords_&&(this.sketchLine_=new P0(new I0(this.sketchLineCoords_)));const r=this.geometryFunction_(this.sketchCoords_,void 0,t);this.sketchFeature_=new P0,this.geometryName_&&this.sketchFeature_.setGeometryName(this.geometryName_),this.sketchFeature_.setGeometry(r),this.updateSketchFeatures_(),this.dispatchEvent(new J1(K1,this.sketchFeature_))}modifyDrawing_(e){const t=this.getMap(),n=this.sketchFeature_.getGeometry(),r=t.getView().getProjection(),i=zY(this.geometryLayout_);let o,s;for(;e.length<i;)e.push(0);if("Point"===this.mode_?s=this.sketchCoords_:"Polygon"===this.mode_?(o=this.sketchCoords_[0],s=o[o.length-1],this.atFinish_(t.getPixelFromCoordinate(e))&&(e=this.finishCoordinate_.slice())):(o=this.sketchCoords_,s=o[o.length-1]),s[0]=e[0],s[1]=e[1],this.geometryFunction_(this.sketchCoords_,n,r),this.sketchPoint_){this.sketchPoint_.getGeometry().setCoordinates(e)}if("Polygon"===n.getType()&&"Polygon"!==this.mode_)this.createOrUpdateCustomSketchLine_(n);else if(this.sketchLineCoords_){this.sketchLine_.getGeometry().setCoordinates(this.sketchLineCoords_)}this.updateSketchFeatures_()}addToDrawing_(e){const t=this.sketchFeature_.getGeometry(),n=this.getMap().getView().getProjection();let r,i;const o=this.mode_;return"LineString"===o||"Circle"===o?(this.finishCoordinate_=e.slice(),i=this.sketchCoords_,i.length>=this.maxPoints_&&(this.freehand_?i.pop():r=!0),i.push(e.slice()),this.geometryFunction_(i,t,n)):"Polygon"===o&&(i=this.sketchCoords_[0],i.length>=this.maxPoints_&&(this.freehand_?i.pop():r=!0),i.push(e.slice()),r&&(this.finishCoordinate_=i[0]),this.geometryFunction_(this.sketchCoords_,t,n)),this.createOrUpdateSketchPoint_(e.slice()),this.updateSketchFeatures_(),r?this.finishDrawing():this.sketchFeature_}removeLastPoints_(e){if(!this.sketchFeature_)return;const t=this.sketchFeature_.getGeometry(),n=this.getMap().getView().getProjection(),r=this.mode_;for(let i=0;i<e;++i){let e;if("LineString"===r||"Circle"===r){if(e=this.sketchCoords_,e.splice(-2,1),e.length>=2){this.finishCoordinate_=e[e.length-2].slice();const t=this.finishCoordinate_.slice();e[e.length-1]=t,this.createOrUpdateSketchPoint_(t)}this.geometryFunction_(e,t,n),"Polygon"===t.getType()&&this.sketchLine_&&this.createOrUpdateCustomSketchLine_(t)}else if("Polygon"===r){e=this.sketchCoords_[0],e.splice(-2,1);const r=this.sketchLine_.getGeometry();if(e.length>=2){const t=e[e.length-2].slice();e[e.length-1]=t,this.createOrUpdateSketchPoint_(t)}r.setCoordinates(e),this.geometryFunction_(this.sketchCoords_,t,n)}if(1===e.length){this.abortDrawing();break}}this.updateSketchFeatures_()}removeLastPoint(){this.removeLastPoints_(1)}finishDrawing(){const e=this.abortDrawing_();if(!e)return null;let t=this.sketchCoords_;const n=e.getGeometry(),r=this.getMap().getView().getProjection();return"LineString"===this.mode_?(t.pop(),this.geometryFunction_(t,n,r)):"Polygon"===this.mode_&&(t[0].pop(),this.geometryFunction_(t,n,r),t=n.getCoordinates()),"MultiPoint"===this.type_?e.setGeometry(new V0([t])):"MultiLineString"===this.type_?e.setGeometry(new N0([t])):"MultiPolygon"===this.type_&&e.setGeometry(new B0([t])),this.dispatchEvent(new J1(Z1,e)),this.features_&&this.features_.push(e),this.source_&&this.source_.addFeature(e),e}abortDrawing_(){this.finishCoordinate_=null;const e=this.sketchFeature_;return this.sketchFeature_=null,this.sketchPoint_=null,this.sketchLine_=null,this.overlay_.getSource().clear(!0),this.deactivateTrace_(),e}abortDrawing(){const e=this.abortDrawing_();e&&this.dispatchEvent(new J1($1,e))}appendCoordinates(e){const t=this.mode_,n=!this.sketchFeature_;let r;if(n&&this.startDrawing_(e[0]),"LineString"===t||"Circle"===t)r=this.sketchCoords_;else{if("Polygon"!==t)return;r=this.sketchCoords_&&this.sketchCoords_.length?this.sketchCoords_[0]:[]}n&&r.shift(),r.pop();for(let o=0;o<e.length;o++)this.addToDrawing_(e[o]);const i=e[e.length-1];this.sketchFeature_=this.addToDrawing_(i),this.modifyDrawing_(i)}extend(e){const t=e.getGeometry();this.sketchFeature_=e,this.sketchCoords_=t.getCoordinates();const n=this.sketchCoords_[this.sketchCoords_.length-1];this.finishCoordinate_=n.slice(),this.sketchCoords_.push(n.slice()),this.sketchPoint_=new P0(new dK(n)),this.updateSketchFeatures_(),this.dispatchEvent(new J1(K1,this.sketchFeature_))}updateSketchFeatures_(){const e=[];this.sketchFeature_&&e.push(this.sketchFeature_),this.sketchLine_&&e.push(this.sketchLine_),this.sketchPoint_&&e.push(this.sketchPoint_);const t=this.overlay_.getSource();t.clear(!0),t.addFeatures(e)}updateState_(){const e=this.getMap(),t=this.getActive();e&&t||this.abortDrawing(),this.overlay_.setMap(t?e:null)}};let u3=function(e){return e.LINE="LINE",e.POLYGON="POLYGON",e.CIRCLE="CIRCLE",e.POINT="POINT",e.RECTANGLE="RECTANGLE",e.TILTED_RECTANGLE="TILTED_RECTANGLE",e}({}),d3=function(e){return e.point="point",e.cross="cross",e.icon="icon",e.svg="svg",e}({});const h3=Object.freeze({[u3.LINE]:{type:"LineString"},[u3.POLYGON]:{type:"Polygon"},[u3.CIRCLE]:{type:"Circle"},[u3.POINT]:{type:"Point"},[u3.RECTANGLE]:{type:"Circle",geometryFunction:function(e,t,n){const r=DM([e[0],e[e.length-1]].map((function(e){return NR(e,n)}))),i=[[nO(r),rO(r),uO(r),cO(r),nO(r)]];t?t.setCoordinates(i):t=new xK(i);const o=RR();return o&&t.transform(n,o),t}},[u3.TILTED_RECTANGLE]:{type:"LineString",maxPoints:3,geometryFunction:(e,t)=>{t||(t=new xK([]));const n=e[0],r=e[1];if(2===e.length)return t.setCoordinates([[n,r]]),t;const i=e[2],o={x:n[0],y:n[1]},s={x:r[0],y:r[1]},a={x:s.x-o.x,y:s.y-o.y},l=((e,t,n)=>{const r=(t.x-e.x)**2+(t.y-e.y)**2;if(0===r)return Math.sqrt((n.x-e.x)**2+(n.y-e.y)**2);const i=[t.x-e.x,t.y-e.y],o=[n.x-e.x,n.y-e.y],s=i[0]*o[0]+i[1]*o[1],a=Math.max(0,Math.min(1,s/r)),l=e.x+a*i[0],c=e.y+a*i[1];let u=Math.sqrt((n.x-l)**2+(n.y-c)**2);return(t.x-e.x)*(n.y-e.y)-(t.y-e.y)*(n.x-e.x)<0&&(u=-u),u})(o,s,{x:i[0],y:i[1]}),c=-a.y,u=a.x,d=Math.sqrt(a.x*a.x+a.y*a.y),h=c/d*l,p=u/d*l,f={x:s.x+h,y:s.y+p},g={x:o.x+h,y:o.y+p},m=[f.x,f.y],y=[g.x,g.y];return t.setCoordinates([[n,r,m,y,n]]),t}}}),p3=e=>{const t=new P0({geometry:new xK([e.coords.map(A3)])});return t.setId(e.id),t.setProperties({selected:!1,zIndex:e.zIndex}),t},f3=e=>e.map(p3),g3=e=>{var t,n,r;return new l$({image:new JZ({radius:null!==(t=null===e||void 0===e?void 0:e.size)&&void 0!==t?t:5,fill:new e$({color:null!==(n=null===e||void 0===e?void 0:e.fill)&&void 0!==n?n:"black"}),stroke:new n$({color:null!==(r=null===e||void 0===e?void 0:e.stroke)&&void 0!==r?r:"black",width:1})})})},m3=e=>{var t,n,r;return new l$({fill:new e$({color:"rgba(255, 255, 255, 0.4)"}),stroke:new n$({color:null!==(t=null===e||void 0===e?void 0:e.stroke)&&void 0!==t?t:"rgba(0, 0, 0, 1)",width:2}),image:new ZZ({stroke:new n$({color:null!==(n=null===e||void 0===e?void 0:e.stroke)&&void 0!==n?n:jp,width:2}),points:4,radius:null!==(r=null===e||void 0===e?void 0:e.size)&&void 0!==r?r:10,radius2:0,angle:0})})},y3=e=>{var t,n,r,i,o;if(!("svg"in e))return new l$;const s=null!==(t=e.style)&&void 0!==t&&t.fill?e.svg.replace("<svg ",'<svg fill="'.concat(e.style.fill,'" ')):e.svg;return new l$({image:new d$({opacity:1,src:"data:image/svg+xml;utf8,"+escape(s),scale:null!==(n=null===(r=e.style)||void 0===r?void 0:r.size)&&void 0!==n?n:1,anchor:null!==(i=null===(o=e.style)||void 0===o?void 0:o.anchor)&&void 0!==i?i:[.5,.5]})})},v3=e=>{var t,n,r,i,o,s,a,l,c,u,d,h,p,f;const g=new P0({geometry:new dK(A3(e.coords))});g.setId(e.id);const m=new l$(null!==e&&void 0!==e&&e.displayText?{text:new p$({fill:new e$({color:null!==(t=null===(n=e.textStyle)||void 0===n?void 0:n.color)&&void 0!==t?t:"#000"}),stroke:new n$({color:null!==(r=null===(i=e.textStyle)||void 0===i||null===(o=i.outline)||void 0===o?void 0:o.color)&&void 0!==r?r:"#fff",width:null!==(s=null===(a=e.textStyle)||void 0===a||null===(l=a.outline)||void 0===l?void 0:l.width)&&void 0!==s?s:4}),text:null===e||void 0===e?void 0:e.displayText,font:"".concat(null!==(c=null===(u=e.textStyle)||void 0===u?void 0:u.fontSize)&&void 0!==c?c:10,"px sans-serif"),offsetX:null!==(d=null===(h=e.textStyle)||void 0===h?void 0:h.offsetX)&&void 0!==d?d:0,offsetY:null!==(p=null===(f=e.textStyle)||void 0===f?void 0:f.offsetY)&&void 0!==p?p:0})}:{}),y=(e=>{var t,n,r,i,o,s;switch(e.type){case d3.point:return g3(null!==(t=e.style)&&void 0!==t?t:{});case d3.cross:return m3(null!==(n=e.style)&&void 0!==n?n:{});case d3.icon:return new l$({image:new d$({src:e.iconUrl,scale:null!==(r=null===(i=e.style)||void 0===i?void 0:i.size)&&void 0!==r?r:1,anchor:null!==(o=null===(s=e.style)||void 0===s?void 0:s.anchor)&&void 0!==o?o:[.5,.5]})});case d3.svg:return y3(e);default:return new l$}})(e);return g.setStyle(((t,n)=>{if(e.relativeSize&&n>0){var r,i,o;const t=null!==(r=null===(i=e.style)||void 0===i?void 0:i.size)&&void 0!==r?r:1;null===(o=y.getImage())||void 0===o||o.setScale(t/(100*n))}return[y,m]})),g},_3=e=>{const t=new I0(e.coords.map(A3)),n=new P0({geometry:t});return n.setId(e.id),n.setProperties({displayText:null===e||void 0===e?void 0:e.displayText}),n},b3=e=>{const t=new T0(A3(e.center),e.radius),n=new P0({geometry:t});return n.setId(e.id),n.setProperties({displayText:null===e||void 0===e?void 0:e.displayText}),n},x3=(e,t,n)=>{const r=E3(t);return n===d3.cross||n===d3.point?{id:e,coords:r,type:n}:{id:e,coords:r,type:d3.cross}},S3=(e,t)=>({id:e,coords:C3(t)}),w3=(e,t)=>({id:e,isLine:!0,coords:P3(t)}),E3=e=>{const t=e.getCoordinates();return k3(t)},P3=e=>e.getCoordinates().map(k3),C3=e=>{var t,n;return(null!==(t=null===(n=e.getCoordinates())||void 0===n?void 0:n[0])&&void 0!==t?t:[]).map(k3)},A3=e=>AR([e.lng,e.lat]),k3=e=>{const t=kR(e);return{lng:t[0],lat:t[1]}},j3=e=>({x:e[0],y:e[1]}),I3=e=>k3([e.x,e.y]),G3=e=>{const t=A3(e);return{x:t[0],y:t[1]}},T3=e=>{const t=(0,w0.getCenter)(e);if(t)return{lat:t.latitude,lng:t.longitude}},M3=e=>({_latitude:e.lat,_longitude:e.lng}),O3=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"none",n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;if(0===e.length)return[...A3({lat:-90,lng:-180}),...A3({lat:90,lng:180})];const r=(0,w0.getBounds)(e),i=0,o=0,s=A3({lat:r.minLat-i,lng:r.minLng-o}),a=A3({lat:r.maxLat+i,lng:r.maxLng+o});if("none"!==t){const e=Math.max(n,Math.abs(s[0]-a[0])),r=Math.max(n,Math.abs(s[1]-a[1])),i="small"===t?.1:"large"===t?.5:"superSmall"===t?.01:t;s[0]-=e*i,a[0]+=e*i,s[1]-=r*i,a[1]+=r*i}return[...s,...a]},R3=(e,t)=>(0,w0.getDistance)(e,t),D3=(e,t,n)=>{const r=6378100;return{lat:e.lat+n/r*(180/Math.PI),lng:e.lng+t/r*(180/Math.PI)/Math.cos(e.lat*Math.PI/180)}},N3=(e,t)=>({x:e.x*Math.cos(t)-e.y*Math.sin(t),y:e.x*Math.sin(t)+e.y*Math.cos(t)}),L3=(e,t)=>"https://www.google.com/maps/search/?api=1&query=".concat(null!==e&&void 0!==e?e:0,",").concat(null!==t&&void 0!==t?t:0),V3=(0,n.createContext)(null),F3=e=>void 0!=(null===e||void 0===e?void 0:e.lat)&&void 0!=(null===e||void 0===e?void 0:e.lng),z3=e=>void 0!=(null===e||void 0===e?void 0:e.x)&&void 0!=(null===e||void 0===e?void 0:e.y),B3=e=>Array.isArray(e)&&e.every(z3),U3=e=>Array.isArray(e)&&2===e.length&&!Number.isNaN(e[0])&&!Number.isNaN(e[1]),W3=e=>void 0!==(null===e||void 0===e?void 0:e.id)&&void 0!==(null===e||void 0===e?void 0:e.type)&&F3(null===e||void 0===e?void 0:e.coords),H3=e=>void 0!==(null===e||void 0===e?void 0:e.id)&&void 0!==(null===e||void 0===e?void 0:e.coords)&&Array.isArray(e.coords)&&e.coords.every(F3)&&!1===Object.hasOwn(e,"isLine"),q3=e=>void 0!==(null===e||void 0===e?void 0:e.id)&&void 0!==(null===e||void 0===e?void 0:e.coords)&&Array.isArray(e.coords)&&e.coords.every(F3)&&!0===e.isLine,X3=e=>void 0!==(null===e||void 0===e?void 0:e.id)&&void 0!==(null===e||void 0===e?void 0:e.center)&&F3(e.center)&&void 0!==e.radius&&!Number.isNaN(e.radius)&&e.radius>=0,Y3=e=>e instanceof xK,K3=e=>e instanceof dK,Z3=e=>e instanceof I0;var $3=6371008.8,J3={centimeters:637100880,centimetres:637100880,degrees:57.22891354143274,feet:20902260.511392,inches:250826616.45599997,kilometers:6371.0088,kilometres:6371.0088,meters:$3,metres:$3,miles:3958.761333810546,millimeters:6371008800,millimetres:6371008800,nauticalmiles:3440.069546436285,radians:1,yards:6967335.223679999};function Q3(e,t,n){void 0===n&&(n={});var r={type:"Feature"};return(0===n.id||n.id)&&(r.id=n.id),n.bbox&&(r.bbox=n.bbox),r.properties=t||{},r.geometry=e,r}function e2(e,t,n){if(void 0===n&&(n={}),!e)throw new Error("coordinates is required");if(!Array.isArray(e))throw new Error("coordinates must be an Array");if(e.length<2)throw new Error("coordinates must be at least 2 numbers long");if(!c2(e[0])||!c2(e[1]))throw new Error("coordinates must contain numbers");return Q3({type:"Point",coordinates:e},t,n)}function t2(e,t,n){void 0===n&&(n={});for(var r=0,i=e;r<i.length;r++){var o=i[r];if(o.length<4)throw new Error("Each LinearRing of a Polygon must have 4 or more Positions.");for(var s=0;s<o[o.length-1].length;s++)if(o[o.length-1][s]!==o[0][s])throw new Error("First and last Position are not equivalent.")}return Q3({type:"Polygon",coordinates:e},t,n)}function n2(e,t,n){if(void 0===n&&(n={}),e.length<2)throw new Error("coordinates must be an array of two or more positions");return Q3({type:"LineString",coordinates:e},t,n)}function r2(e,t){void 0===t&&(t={});var n={type:"FeatureCollection"};return t.id&&(n.id=t.id),t.bbox&&(n.bbox=t.bbox),n.features=e,n}function i2(e,t,n){return void 0===n&&(n={}),Q3({type:"MultiPoint",coordinates:e},t,n)}function o2(e,t,n){return void 0===n&&(n={}),Q3({type:"MultiPolygon",coordinates:e},t,n)}function s2(e,t){void 0===t&&(t="kilometers");var n=J3[t];if(!n)throw new Error(t+" units is invalid");return e*n}function a2(e){return 180*(e%(2*Math.PI))/Math.PI}function l2(e){return e%360*Math.PI/180}function c2(e){return!isNaN(e)&&null!==e&&!Array.isArray(e)}function u2(e,t,n){if(null!==e)for(var r,i,o,s,a,l,c,u,d=0,h=0,p=e.type,f="FeatureCollection"===p,g="Feature"===p,m=f?e.features.length:1,y=0;y<m;y++){a=(u=!!(c=f?e.features[y].geometry:g?e.geometry:e)&&"GeometryCollection"===c.type)?c.geometries.length:1;for(var v=0;v<a;v++){var _=0,b=0;if(null!==(s=u?c.geometries[v]:c)){l=s.coordinates;var x=s.type;switch(d=!n||"Polygon"!==x&&"MultiPolygon"!==x?0:1,x){case null:break;case"Point":if(!1===t(l,h,y,_,b))return!1;h++,_++;break;case"LineString":case"MultiPoint":for(r=0;r<l.length;r++){if(!1===t(l[r],h,y,_,b))return!1;h++,"MultiPoint"===x&&_++}"LineString"===x&&_++;break;case"Polygon":case"MultiLineString":for(r=0;r<l.length;r++){for(i=0;i<l[r].length-d;i++){if(!1===t(l[r][i],h,y,_,b))return!1;h++}"MultiLineString"===x&&_++,"Polygon"===x&&b++}"Polygon"===x&&_++;break;case"MultiPolygon":for(r=0;r<l.length;r++){for(b=0,i=0;i<l[r].length;i++){for(o=0;o<l[r][i].length-d;o++){if(!1===t(l[r][i][o],h,y,_,b))return!1;h++}b++}_++}break;case"GeometryCollection":for(r=0;r<s.geometries.length;r++)if(!1===u2(s.geometries[r],t,n))return!1;break;default:throw new Error("Unknown Geometry Type")}}}}}function d2(e,t){if("Feature"===e.type)t(e,0);else if("FeatureCollection"===e.type)for(var n=0;n<e.features.length&&!1!==t(e.features[n],n);n++);}function h2(e,t){var n,r,i,o,s,a,l,c,u,d,h=0,p="FeatureCollection"===e.type,f="Feature"===e.type,g=p?e.features.length:1;for(n=0;n<g;n++){for(a=p?e.features[n].geometry:f?e.geometry:e,c=p?e.features[n].properties:f?e.properties:{},u=p?e.features[n].bbox:f?e.bbox:void 0,d=p?e.features[n].id:f?e.id:void 0,s=(l=!!a&&"GeometryCollection"===a.type)?a.geometries.length:1,i=0;i<s;i++)if(null!==(o=l?a.geometries[i]:a))switch(o.type){case"Point":case"LineString":case"MultiPoint":case"Polygon":case"MultiLineString":case"MultiPolygon":if(!1===t(o,h,c,u,d))return!1;break;case"GeometryCollection":for(r=0;r<o.geometries.length;r++)if(!1===t(o.geometries[r],h,c,u,d))return!1;break;default:throw new Error("Unknown Geometry Type")}else if(!1===t(null,h,c,u,d))return!1;h++}}function p2(e,t){h2(e,(function(e,n,r,i,o){var s,a=null===e?null:e.type;switch(a){case null:case"Point":case"LineString":case"Polygon":return!1!==t(Q3(e,r,{bbox:i,id:o}),n,0)&&void 0}switch(a){case"MultiPoint":s="Point";break;case"MultiLineString":s="LineString";break;case"MultiPolygon":s="Polygon"}for(var l=0;l<e.coordinates.length;l++){var c=e.coordinates[l];if(!1===t(Q3({type:s,coordinates:c},r),n,l))return!1}}))}function f2(e){var t=[1/0,1/0,-1/0,-1/0];return u2(e,(function(e){t[0]>e[0]&&(t[0]=e[0]),t[1]>e[1]&&(t[1]=e[1]),t[2]<e[0]&&(t[2]=e[0]),t[3]<e[1]&&(t[3]=e[1])})),t}f2.default=f2;const g2=f2;function m2(e){if(!e)throw new Error("coord is required");if(!Array.isArray(e)){if("Feature"===e.type&&null!==e.geometry&&"Point"===e.geometry.type)return e.geometry.coordinates;if("Point"===e.type)return e.coordinates}if(Array.isArray(e)&&e.length>=2&&!Array.isArray(e[0])&&!Array.isArray(e[1]))return e;throw new Error("coord must be GeoJSON Point or an Array of numbers")}function y2(e){return"Feature"===e.type?e.geometry:e}__webpack_require__(14652);__webpack_require__(64039);function v2(e,t,n){if(void 0===n&&(n={}),!e)throw new Error("point is required");if(!t)throw new Error("polygon is required");var r=m2(e),i=y2(t),o=i.type,s=t.bbox,a=i.coordinates;if(s&&!1===function(e,t){return t[0]<=e[0]&&t[1]<=e[1]&&t[2]>=e[0]&&t[3]>=e[1]}(r,s))return!1;"Polygon"===o&&(a=[a]);for(var l=!1,c=0;c<a.length&&!l;c++)if(_2(r,a[c][0],n.ignoreBoundary)){for(var u=!1,d=1;d<a[c].length&&!u;)_2(r,a[c][d],!n.ignoreBoundary)&&(u=!0),d++;u||(l=!0)}return l}function _2(e,t,n){var r=!1;t[0][0]===t[t.length-1][0]&&t[0][1]===t[t.length-1][1]&&(t=t.slice(0,t.length-1));for(var i=0,o=t.length-1;i<t.length;o=i++){var s=t[i][0],a=t[i][1],l=t[o][0],c=t[o][1];if(e[1]*(s-l)+a*(l-e[0])+c*(e[0]-s)===0&&(s-e[0])*(l-e[0])<=0&&(a-e[1])*(c-e[1])<=0)return!n;a>e[1]!==c>e[1]&&e[0]<(l-s)*(e[1]-a)/(c-a)+s&&(r=!r)}return r}const b2=function(e,t,n){void 0===n&&(n={});var r=m2(e),i=m2(t),o=l2(i[1]-r[1]),s=l2(i[0]-r[0]),a=l2(r[1]),l=l2(i[1]),c=Math.pow(Math.sin(o/2),2)+Math.pow(Math.sin(s/2),2)*Math.cos(a)*Math.cos(l);return s2(2*Math.atan2(Math.sqrt(c),Math.sqrt(1-c)),n.units)};Object.prototype.hasOwnProperty;var x2=new ArrayBuffer(16);new Float64Array(x2),new Uint32Array(x2);__webpack_require__(30519);!function(){function e(e){this.points=e.points||[],this.duration=e.duration||1e4,this.sharpness=e.sharpness||.85,this.centers=[],this.controls=[],this.stepLength=e.stepLength||60,this.length=this.points.length,this.delay=0;for(var t=0;t<this.length;t++)this.points[t].z=this.points[t].z||0;for(t=0;t<this.length-1;t++){var n=this.points[t],r=this.points[t+1];this.centers.push({x:(n.x+r.x)/2,y:(n.y+r.y)/2,z:(n.z+r.z)/2})}this.controls.push([this.points[0],this.points[0]]);for(t=0;t<this.centers.length-1;t++){var i=this.points[t+1].x-(this.centers[t].x+this.centers[t+1].x)/2,o=this.points[t+1].y-(this.centers[t].y+this.centers[t+1].y)/2,s=this.points[t+1].z-(this.centers[t].y+this.centers[t+1].z)/2;this.controls.push([{x:(1-this.sharpness)*this.points[t+1].x+this.sharpness*(this.centers[t].x+i),y:(1-this.sharpness)*this.points[t+1].y+this.sharpness*(this.centers[t].y+o),z:(1-this.sharpness)*this.points[t+1].z+this.sharpness*(this.centers[t].z+s)},{x:(1-this.sharpness)*this.points[t+1].x+this.sharpness*(this.centers[t+1].x+i),y:(1-this.sharpness)*this.points[t+1].y+this.sharpness*(this.centers[t+1].y+o),z:(1-this.sharpness)*this.points[t+1].z+this.sharpness*(this.centers[t+1].z+s)}])}return this.controls.push([this.points[this.length-1],this.points[this.length-1]]),this.steps=this.cacheSteps(this.stepLength),this}e.prototype.cacheSteps=function(e){var t=[],n=this.pos(0);t.push(0);for(var r=0;r<this.duration;r+=10){var i=this.pos(r);Math.sqrt((i.x-n.x)*(i.x-n.x)+(i.y-n.y)*(i.y-n.y)+(i.z-n.z)*(i.z-n.z))>e&&(t.push(r),n=i)}return t},e.prototype.vector=function(e){var t=this.pos(e+10),n=this.pos(e-10);return{angle:180*Math.atan2(t.y-n.y,t.x-n.x)/3.14,speed:Math.sqrt((n.x-t.x)*(n.x-t.x)+(n.y-t.y)*(n.y-t.y)+(n.z-t.z)*(n.z-t.z))}},e.prototype.pos=function(e){var t=e-this.delay;t<0&&(t=0),t>this.duration&&(t=this.duration-1);var n=t/this.duration;if(n>=1)return this.points[this.length-1];var r=Math.floor((this.points.length-1)*n);return function(e,t,n,r,i){var o=function(e){var t=e*e,n=t*e;return[n,3*t*(1-e),3*e*(1-e)*(1-e),(1-e)*(1-e)*(1-e)]}(e),s={x:i.x*o[0]+r.x*o[1]+n.x*o[2]+t.x*o[3],y:i.y*o[0]+r.y*o[1]+n.y*o[2]+t.y*o[3],z:i.z*o[0]+r.z*o[1]+n.z*o[2]+t.z*o[3]};return s}((this.length-1)*n-r,this.points[r],this.controls[r][1],this.controls[r+1][0],this.points[r+1])}}();const S2=function(e){return function(e,t){void 0===t&&(t={});var n=Number(e[0]),r=Number(e[1]),i=Number(e[2]),o=Number(e[3]);if(6===e.length)throw new Error("@turf/bbox-polygon does not support BBox with 6 positions");var s=[n,r];return t2([[s,[i,r],[i,o],[n,o],s]],t.properties,{bbox:e,id:t.id})}(g2(e))};function w2(e,t,n){if(void 0===n&&(n={}),!0===n.final)return function(e,t){var n=w2(t,e);return n=(n+180)%360}(e,t);var r=m2(e),i=m2(t),o=l2(r[0]),s=l2(i[0]),a=l2(r[1]),l=l2(i[1]),c=Math.sin(s-o)*Math.cos(l),u=Math.cos(a)*Math.sin(l)-Math.sin(a)*Math.cos(l)*Math.cos(s-o);return a2(Math.atan2(c,u))}const E2=function(e,t){void 0===t&&(t={});var n=g2(e);return e2([(n[0]+n[2])/2,(n[1]+n[3])/2],t.properties,t)};const P2=function(e,t){void 0===t&&(t={});var n=0,r=0,i=0;return u2(e,(function(e){n+=e[0],r+=e[1],i++}),!0),e2([n/i,r/i],t.properties)};__webpack_require__(76188);function C2(e){var t={type:"Feature"};return Object.keys(e).forEach((function(n){switch(n){case"type":case"properties":case"geometry":return;default:t[n]=e[n]}})),t.properties=A2(e.properties),t.geometry=k2(e.geometry),t}function A2(e){var t={};return e?(Object.keys(e).forEach((function(n){var r=e[n];"object"===typeof r?null===r?t[n]=null:Array.isArray(r)?t[n]=r.map((function(e){return e})):t[n]=A2(r):t[n]=r})),t):t}function k2(e){var t={type:e.type};return e.bbox&&(t.bbox=e.bbox),"GeometryCollection"===e.type?(t.geometries=e.geometries.map((function(e){return k2(e)})),t):(t.coordinates=j2(e.coordinates),t)}function j2(e){var t=e;return"object"!==typeof t[0]?t.slice():t.map((function(e){return j2(e)}))}const I2=function(e){if(!e)throw new Error("geojson is required");switch(e.type){case"Feature":return C2(e);case"FeatureCollection":return function(e){var t={type:"FeatureCollection"};return Object.keys(e).forEach((function(n){switch(n){case"type":case"features":return;default:t[n]=e[n]}})),t.features=e.features.map((function(e){return C2(e)})),t}(e);case"Point":case"LineString":case"Polygon":case"MultiPoint":case"MultiLineString":case"MultiPolygon":case"GeometryCollection":return k2(e);default:throw new Error("unknown GeoJSON type")}};const G2=function(e,t){if(!e)throw new Error("targetPoint is required");if(!t)throw new Error("points is required");var n,r=1/0,i=0;return d2(t,(function(t,n){var o=b2(e,t);o<r&&(i=n,r=o)})),(n=I2(t.features[i])).properties.featureIndex=i,n.properties.distanceToPoint=r,n};__webpack_require__(29380);var T2=6378137;function M2(e){return function(e,t,n){var r=n;return h2(e,(function(e,i,o,s,a){r=0===i&&void 0===n?e:t(r,e,i,o,s,a)})),r}(e,(function(e,t){return e+function(e){var t,n=0;switch(e.type){case"Polygon":return O2(e.coordinates);case"MultiPolygon":for(t=0;t<e.coordinates.length;t++)n+=O2(e.coordinates[t]);return n;case"Point":case"MultiPoint":case"LineString":case"MultiLineString":return 0}return 0}(t)}),0)}function O2(e){var t=0;if(e&&e.length>0){t+=Math.abs(R2(e[0]));for(var n=1;n<e.length;n++)t-=Math.abs(R2(e[n]))}return t}function R2(e){var t,n,r,i,o,s,a=0,l=e.length;if(l>2){for(s=0;s<l;s++)s===l-2?(r=l-2,i=l-1,o=0):s===l-1?(r=l-1,i=0,o=1):(r=s,i=s+1,o=s+2),t=e[r],n=e[i],a+=(D2(e[o][0])-D2(t[0]))*Math.sin(D2(n[1]));a=a*T2*T2/2}return a}function D2(e){return e*Math.PI/180}__webpack_require__(40664);var N2=Math.PI/180,L2=180/Math.PI,V2=function(e,t){this.lon=e,this.lat=t,this.x=N2*e,this.y=N2*t};V2.prototype.view=function(){return String(this.lon).slice(0,4)+","+String(this.lat).slice(0,4)},V2.prototype.antipode=function(){var e=-1*this.lat,t=this.lon<0?180+this.lon:-1*(180-this.lon);return new V2(t,e)};var F2=function(){this.coords=[],this.length=0};F2.prototype.move_to=function(e){this.length++,this.coords.push(e)};var z2=function(e){this.properties=e||{},this.geometries=[]};z2.prototype.json=function(){if(this.geometries.length<=0)return{geometry:{type:"LineString",coordinates:null},type:"Feature",properties:this.properties};if(1===this.geometries.length)return{geometry:{type:"LineString",coordinates:this.geometries[0].coords},type:"Feature",properties:this.properties};for(var e=[],t=0;t<this.geometries.length;t++)e.push(this.geometries[t].coords);return{geometry:{type:"MultiLineString",coordinates:e},type:"Feature",properties:this.properties}},z2.prototype.wkt=function(){for(var e="",t="LINESTRING(",n=function(e){t+=e[0]+" "+e[1]+","},r=0;r<this.geometries.length;r++){if(0===this.geometries[r].coords.length)return"LINESTRING(empty)";this.geometries[r].coords.forEach(n),e+=t.substring(0,t.length-1)+")"}return e};var B2=function(e,t,n){if(!e||void 0===e.x||void 0===e.y)throw new Error("GreatCircle constructor expects two args: start and end objects with x and y properties");if(!t||void 0===t.x||void 0===t.y)throw new Error("GreatCircle constructor expects two args: start and end objects with x and y properties");this.start=new V2(e.x,e.y),this.end=new V2(t.x,t.y),this.properties=n||{};var r=this.start.x-this.end.x,i=this.start.y-this.end.y,o=Math.pow(Math.sin(i/2),2)+Math.cos(this.start.y)*Math.cos(this.end.y)*Math.pow(Math.sin(r/2),2);if(this.g=2*Math.asin(Math.sqrt(o)),this.g===Math.PI)throw new Error("it appears "+e.view()+" and "+t.view()+" are 'antipodal', e.g diametrically opposite, thus there is no single route but rather infinite");if(isNaN(this.g))throw new Error("could not calculate great circle between "+e+" and "+t)};B2.prototype.interpolate=function(e){var t=Math.sin((1-e)*this.g)/Math.sin(this.g),n=Math.sin(e*this.g)/Math.sin(this.g),r=t*Math.cos(this.start.y)*Math.cos(this.start.x)+n*Math.cos(this.end.y)*Math.cos(this.end.x),i=t*Math.cos(this.start.y)*Math.sin(this.start.x)+n*Math.cos(this.end.y)*Math.sin(this.end.x),o=t*Math.sin(this.start.y)+n*Math.sin(this.end.y),s=L2*Math.atan2(o,Math.sqrt(Math.pow(r,2)+Math.pow(i,2)));return[L2*Math.atan2(i,r),s]},B2.prototype.Arc=function(e,t){var n=[];if(!e||e<=2)n.push([this.start.lon,this.start.lat]),n.push([this.end.lon,this.end.lat]);else for(var r=1/(e-1),i=0;i<e;++i){var o=r*i,s=this.interpolate(o);n.push(s)}for(var a=!1,l=0,c=t&&t.offset?t.offset:10,u=180-c,d=-180+c,h=360-c,p=1;p<n.length;++p){var f=n[p-1][0],g=n[p][0],m=Math.abs(g-f);m>h&&(g>u&&f<d||f>u&&g<d)?a=!0:m>l&&(l=m)}var y=[];if(a&&l<c){var v=[];y.push(v);for(var _=0;_<n.length;++_){var b=parseFloat(n[_][0]);if(_>0&&Math.abs(b-n[_-1][0])>h){var x=parseFloat(n[_-1][0]),S=parseFloat(n[_-1][1]),w=parseFloat(n[_][0]),E=parseFloat(n[_][1]);if(x>-180&&x<d&&180===w&&_+1<n.length&&n[_-1][0]>-180&&n[_-1][0]<d){v.push([-180,n[_][1]]),_++,v.push([n[_][0],n[_][1]]);continue}if(x>u&&x<180&&-180===w&&_+1<n.length&&n[_-1][0]>u&&n[_-1][0]<180){v.push([180,n[_][1]]),_++,v.push([n[_][0],n[_][1]]);continue}if(x<d&&w>u){var P=x;x=w,w=P;var C=S;S=E,E=C}if(x>u&&w<d&&(w+=360),x<=180&&w>=180&&x<w){var A=(180-x)/(w-x),k=A*E+(1-A)*S;v.push([n[_-1][0]>u?180:-180,k]),(v=[]).push([n[_-1][0]>u?-180:180,k]),y.push(v)}else v=[],y.push(v);v.push([b,n[_][1]])}else v.push([n[_][0],n[_][1]])}}else{var j=[];y.push(j);for(var I=0;I<n.length;++I)j.push([n[I][0],n[I][1]])}for(var G=new z2(this.properties),T=0;T<y.length;++T){var M=new F2;G.geometries.push(M);for(var O=y[T],R=0;R<O.length;++R)M.move_to(O[R])}return G};__webpack_require__(20240);var U2=[],W2=[],H2=[],q2=[],X2=[],Y2=[],K2=[],Z2=[],$2=[],J2=[],Q2=[],e6=[],t6=[],n6=[],r6=[],i6=[],o6=[],s6=[],a6=[],l6=[],c6=[],u6=[],d6=[],h6=[];K2[85]=J2[85]=-1,Z2[85]=Q2[85]=0,$2[85]=e6[85]=1,a6[85]=u6[85]=1,l6[85]=d6[85]=0,c6[85]=h6[85]=1,U2[85]=q2[85]=0,W2[85]=X2[85]=-1,H2[85]=r6[85]=0,i6[85]=t6[85]=0,o6[85]=n6[85]=1,Y2[85]=s6[85]=1,u6[1]=u6[169]=0,d6[1]=d6[169]=-1,h6[1]=h6[169]=0,t6[1]=t6[169]=-1,n6[1]=n6[169]=0,r6[1]=r6[169]=0,J2[4]=J2[166]=0,Q2[4]=Q2[166]=-1,e6[4]=e6[166]=1,i6[4]=i6[166]=1,o6[4]=o6[166]=0,s6[4]=s6[166]=0,K2[16]=K2[154]=0,Z2[16]=Z2[154]=1,$2[16]=$2[154]=1,q2[16]=q2[154]=1,X2[16]=X2[154]=0,Y2[16]=Y2[154]=1,a6[64]=a6[106]=0,l6[64]=l6[106]=1,c6[64]=c6[106]=0,U2[64]=U2[106]=-1,W2[64]=W2[106]=0,H2[64]=H2[106]=1,a6[2]=a6[168]=0,l6[2]=l6[168]=-1,c6[2]=c6[168]=1,u6[2]=u6[168]=0,d6[2]=d6[168]=-1,h6[2]=h6[168]=0,t6[2]=t6[168]=-1,n6[2]=n6[168]=0,r6[2]=r6[168]=0,i6[2]=i6[168]=-1,o6[2]=o6[168]=0,s6[2]=s6[168]=1,K2[8]=K2[162]=0,Z2[8]=Z2[162]=-1,$2[8]=$2[162]=0,J2[8]=J2[162]=0,Q2[8]=Q2[162]=-1,e6[8]=e6[162]=1,t6[8]=t6[162]=1,n6[8]=n6[162]=0,r6[8]=r6[162]=1,i6[8]=i6[162]=1,o6[8]=o6[162]=0,s6[8]=s6[162]=0,K2[32]=K2[138]=0,Z2[32]=Z2[138]=1,$2[32]=$2[138]=1,J2[32]=J2[138]=0,Q2[32]=Q2[138]=1,e6[32]=e6[138]=0,U2[32]=U2[138]=1,W2[32]=W2[138]=0,H2[32]=H2[138]=0,q2[32]=q2[138]=1,X2[32]=X2[138]=0,Y2[32]=Y2[138]=1,u6[128]=u6[42]=0,d6[128]=d6[42]=1,h6[128]=h6[42]=1,a6[128]=a6[42]=0,l6[128]=l6[42]=1,c6[128]=c6[42]=0,U2[128]=U2[42]=-1,W2[128]=W2[42]=0,H2[128]=H2[42]=1,q2[128]=q2[42]=-1,X2[128]=X2[42]=0,Y2[128]=Y2[42]=0,J2[5]=J2[165]=-1,Q2[5]=Q2[165]=0,e6[5]=e6[165]=0,u6[5]=u6[165]=1,d6[5]=d6[165]=0,h6[5]=h6[165]=0,i6[20]=i6[150]=0,o6[20]=o6[150]=1,s6[20]=s6[150]=1,q2[20]=q2[150]=0,X2[20]=X2[150]=-1,Y2[20]=Y2[150]=1,K2[80]=K2[90]=-1,Z2[80]=Z2[90]=0,$2[80]=$2[90]=1,a6[80]=a6[90]=1,l6[80]=l6[90]=0,c6[80]=c6[90]=1,t6[65]=t6[105]=0,n6[65]=n6[105]=1,r6[65]=r6[105]=0,U2[65]=U2[105]=0,W2[65]=W2[105]=-1,H2[65]=H2[105]=0,K2[160]=K2[10]=-1,Z2[160]=Z2[10]=0,$2[160]=$2[10]=1,J2[160]=J2[10]=-1,Q2[160]=Q2[10]=0,e6[160]=e6[10]=0,u6[160]=u6[10]=1,d6[160]=d6[10]=0,h6[160]=h6[10]=0,a6[160]=a6[10]=1,l6[160]=l6[10]=0,c6[160]=c6[10]=1,i6[130]=i6[40]=0,o6[130]=o6[40]=1,s6[130]=s6[40]=1,t6[130]=t6[40]=0,n6[130]=n6[40]=1,r6[130]=r6[40]=0,U2[130]=U2[40]=0,W2[130]=W2[40]=-1,H2[130]=H2[40]=0,q2[130]=q2[40]=0,X2[130]=X2[40]=-1,Y2[130]=Y2[40]=1,J2[37]=J2[133]=0,Q2[37]=Q2[133]=1,e6[37]=e6[133]=1,u6[37]=u6[133]=0,d6[37]=d6[133]=1,h6[37]=h6[133]=0,U2[37]=U2[133]=-1,W2[37]=W2[133]=0,H2[37]=H2[133]=0,q2[37]=q2[133]=1,X2[37]=X2[133]=0,Y2[37]=Y2[133]=0,i6[148]=i6[22]=-1,o6[148]=o6[22]=0,s6[148]=s6[22]=0,u6[148]=u6[22]=0,d6[148]=d6[22]=-1,h6[148]=h6[22]=1,a6[148]=a6[22]=0,l6[148]=l6[22]=1,c6[148]=c6[22]=1,q2[148]=q2[22]=-1,X2[148]=X2[22]=0,Y2[148]=Y2[22]=1,K2[82]=K2[88]=0,Z2[82]=Z2[88]=-1,$2[82]=$2[88]=1,i6[82]=i6[88]=1,o6[82]=o6[88]=0,s6[82]=s6[88]=1,t6[82]=t6[88]=-1,n6[82]=n6[88]=0,r6[82]=r6[88]=1,a6[82]=a6[88]=0,l6[82]=l6[88]=-1,c6[82]=c6[88]=0,K2[73]=K2[97]=0,Z2[73]=Z2[97]=1,$2[73]=$2[97]=0,J2[73]=J2[97]=0,Q2[73]=Q2[97]=-1,e6[73]=e6[97]=0,t6[73]=t6[97]=1,n6[73]=n6[97]=0,r6[73]=r6[97]=0,U2[73]=U2[97]=1,W2[73]=W2[97]=0,H2[73]=H2[97]=1,K2[145]=K2[25]=0,Z2[145]=Z2[25]=-1,$2[145]=$2[25]=0,t6[145]=t6[25]=1,n6[145]=n6[25]=0,r6[145]=r6[25]=1,u6[145]=u6[25]=0,d6[145]=d6[25]=1,h6[145]=h6[25]=1,q2[145]=q2[25]=-1,X2[145]=X2[25]=0,Y2[145]=Y2[25]=0,J2[70]=J2[100]=0,Q2[70]=Q2[100]=1,e6[70]=e6[100]=0,i6[70]=i6[100]=-1,o6[70]=o6[100]=0,s6[70]=s6[100]=1,a6[70]=a6[100]=0,l6[70]=l6[100]=-1,c6[70]=c6[100]=1,U2[70]=U2[100]=1,W2[70]=W2[100]=0,H2[70]=H2[100]=0,J2[101]=J2[69]=0,Q2[101]=Q2[69]=1,e6[101]=e6[69]=0,U2[101]=U2[69]=1,W2[101]=W2[69]=0,H2[101]=H2[69]=0,u6[149]=u6[21]=0,d6[149]=d6[21]=1,h6[149]=h6[21]=1,q2[149]=q2[21]=-1,X2[149]=X2[21]=0,Y2[149]=Y2[21]=0,i6[86]=i6[84]=-1,o6[86]=o6[84]=0,s6[86]=s6[84]=1,a6[86]=a6[84]=0,l6[86]=l6[84]=-1,c6[86]=c6[84]=1,K2[89]=K2[81]=0,Z2[89]=Z2[81]=-1,$2[89]=$2[81]=0,t6[89]=t6[81]=1,n6[89]=n6[81]=0,r6[89]=r6[81]=1,K2[96]=K2[74]=0,Z2[96]=Z2[74]=1,$2[96]=$2[74]=0,J2[96]=J2[74]=-1,Q2[96]=Q2[74]=0,e6[96]=e6[74]=1,a6[96]=a6[74]=1,l6[96]=l6[74]=0,c6[96]=c6[74]=0,U2[96]=U2[74]=1,W2[96]=W2[74]=0,H2[96]=H2[74]=1,K2[24]=K2[146]=0,Z2[24]=Z2[146]=-1,$2[24]=$2[146]=1,i6[24]=i6[146]=1,o6[24]=o6[146]=0,s6[24]=s6[146]=1,t6[24]=t6[146]=0,n6[24]=n6[146]=1,r6[24]=r6[146]=1,q2[24]=q2[146]=0,X2[24]=X2[146]=-1,Y2[24]=Y2[146]=0,J2[6]=J2[164]=-1,Q2[6]=Q2[164]=0,e6[6]=e6[164]=1,i6[6]=i6[164]=-1,o6[6]=o6[164]=0,s6[6]=s6[164]=0,u6[6]=u6[164]=0,d6[6]=d6[164]=-1,h6[6]=h6[164]=1,a6[6]=a6[164]=1,l6[6]=l6[164]=0,c6[6]=c6[164]=0,t6[129]=t6[41]=0,n6[129]=n6[41]=1,r6[129]=r6[41]=1,u6[129]=u6[41]=0,d6[129]=d6[41]=1,h6[129]=h6[41]=0,U2[129]=U2[41]=-1,W2[129]=W2[41]=0,H2[129]=H2[41]=0,q2[129]=q2[41]=0,X2[129]=X2[41]=-1,Y2[129]=Y2[41]=0,i6[66]=i6[104]=0,o6[66]=o6[104]=1,s6[66]=s6[104]=0,t6[66]=t6[104]=-1,n6[66]=n6[104]=0,r6[66]=r6[104]=1,a6[66]=a6[104]=0,l6[66]=l6[104]=-1,c6[66]=c6[104]=0,U2[66]=U2[104]=0,W2[66]=W2[104]=-1,H2[66]=H2[104]=1,K2[144]=K2[26]=-1,Z2[144]=Z2[26]=0,$2[144]=$2[26]=0,u6[144]=u6[26]=1,d6[144]=d6[26]=0,h6[144]=h6[26]=1,a6[144]=a6[26]=0,l6[144]=l6[26]=1,c6[144]=c6[26]=1,q2[144]=q2[26]=-1,X2[144]=X2[26]=0,Y2[144]=Y2[26]=1,J2[36]=J2[134]=0,Q2[36]=Q2[134]=1,e6[36]=e6[134]=1,i6[36]=i6[134]=0,o6[36]=o6[134]=1,s6[36]=s6[134]=0,U2[36]=U2[134]=0,W2[36]=W2[134]=-1,H2[36]=H2[134]=1,q2[36]=q2[134]=1,X2[36]=X2[134]=0,Y2[36]=Y2[134]=0,K2[9]=K2[161]=-1,Z2[9]=Z2[161]=0,$2[9]=$2[161]=0,J2[9]=J2[161]=0,Q2[9]=Q2[161]=-1,e6[9]=e6[161]=0,t6[9]=t6[161]=1,n6[9]=n6[161]=0,r6[9]=r6[161]=0,u6[9]=u6[161]=1,d6[9]=d6[161]=0,h6[9]=h6[161]=1,K2[136]=0,Z2[136]=1,$2[136]=1,J2[136]=0,Q2[136]=1,e6[136]=0,i6[136]=-1,o6[136]=0,s6[136]=1,t6[136]=-1,n6[136]=0,r6[136]=0,u6[136]=0,d6[136]=-1,h6[136]=0,a6[136]=0,l6[136]=-1,c6[136]=1,U2[136]=1,W2[136]=0,H2[136]=0,q2[136]=1,X2[136]=0,Y2[136]=1,K2[34]=0,Z2[34]=-1,$2[34]=0,J2[34]=0,Q2[34]=-1,e6[34]=1,i6[34]=1,o6[34]=0,s6[34]=0,t6[34]=1,n6[34]=0,r6[34]=1,u6[34]=0,d6[34]=1,h6[34]=1,a6[34]=0,l6[34]=1,c6[34]=0,U2[34]=-1,W2[34]=0,H2[34]=1,q2[34]=-1,X2[34]=0,Y2[34]=0,K2[35]=0,Z2[35]=1,$2[35]=1,J2[35]=0,Q2[35]=-1,e6[35]=1,i6[35]=1,o6[35]=0,s6[35]=0,t6[35]=-1,n6[35]=0,r6[35]=0,u6[35]=0,d6[35]=-1,h6[35]=0,a6[35]=0,l6[35]=1,c6[35]=0,U2[35]=-1,W2[35]=0,H2[35]=1,q2[35]=1,X2[35]=0,Y2[35]=1,K2[153]=0,Z2[153]=1,$2[153]=1,t6[153]=-1,n6[153]=0,r6[153]=0,u6[153]=0,d6[153]=-1,h6[153]=0,q2[153]=1,X2[153]=0,Y2[153]=1,J2[102]=0,Q2[102]=-1,e6[102]=1,i6[102]=1,o6[102]=0,s6[102]=0,a6[102]=0,l6[102]=1,c6[102]=0,U2[102]=-1,W2[102]=0,H2[102]=1,K2[155]=0,Z2[155]=-1,$2[155]=0,t6[155]=1,n6[155]=0,r6[155]=1,u6[155]=0,d6[155]=1,h6[155]=1,q2[155]=-1,X2[155]=0,Y2[155]=0,J2[103]=0,Q2[103]=1,e6[103]=0,i6[103]=-1,o6[103]=0,s6[103]=1,a6[103]=0,l6[103]=-1,c6[103]=1,U2[103]=1,W2[103]=0,H2[103]=0,K2[152]=0,Z2[152]=1,$2[152]=1,i6[152]=-1,o6[152]=0,s6[152]=1,t6[152]=-1,n6[152]=0,r6[152]=0,u6[152]=0,d6[152]=-1,h6[152]=0,a6[152]=0,l6[152]=-1,c6[152]=1,q2[152]=1,X2[152]=0,Y2[152]=1,K2[156]=0,Z2[156]=-1,$2[156]=1,i6[156]=1,o6[156]=0,s6[156]=1,t6[156]=-1,n6[156]=0,r6[156]=0,u6[156]=0,d6[156]=-1,h6[156]=0,a6[156]=0,l6[156]=1,c6[156]=1,q2[156]=-1,X2[156]=0,Y2[156]=1,K2[137]=0,Z2[137]=1,$2[137]=1,J2[137]=0,Q2[137]=1,e6[137]=0,t6[137]=-1,n6[137]=0,r6[137]=0,u6[137]=0,d6[137]=-1,h6[137]=0,U2[137]=1,W2[137]=0,H2[137]=0,q2[137]=1,X2[137]=0,Y2[137]=1,K2[139]=0,Z2[139]=1,$2[139]=1,J2[139]=0,Q2[139]=-1,e6[139]=0,t6[139]=1,n6[139]=0,r6[139]=0,u6[139]=0,d6[139]=1,h6[139]=0,U2[139]=-1,W2[139]=0,H2[139]=0,q2[139]=1,X2[139]=0,Y2[139]=1,K2[98]=0,Z2[98]=-1,$2[98]=0,J2[98]=0,Q2[98]=-1,e6[98]=1,i6[98]=1,o6[98]=0,s6[98]=0,t6[98]=1,n6[98]=0,r6[98]=1,a6[98]=0,l6[98]=1,c6[98]=0,U2[98]=-1,W2[98]=0,H2[98]=1,K2[99]=0,Z2[99]=1,$2[99]=0,J2[99]=0,Q2[99]=-1,e6[99]=1,i6[99]=1,o6[99]=0,s6[99]=0,t6[99]=-1,n6[99]=0,r6[99]=1,a6[99]=0,l6[99]=-1,c6[99]=0,U2[99]=1,W2[99]=0,H2[99]=1,J2[38]=0,Q2[38]=-1,e6[38]=1,i6[38]=1,o6[38]=0,s6[38]=0,u6[38]=0,d6[38]=1,h6[38]=1,a6[38]=0,l6[38]=1,c6[38]=0,U2[38]=-1,W2[38]=0,H2[38]=1,q2[38]=-1,X2[38]=0,Y2[38]=0,J2[39]=0,Q2[39]=1,e6[39]=1,i6[39]=-1,o6[39]=0,s6[39]=0,u6[39]=0,d6[39]=-1,h6[39]=1,a6[39]=0,l6[39]=1,c6[39]=0,U2[39]=-1,W2[39]=0,H2[39]=1,q2[39]=1,X2[39]=0,Y2[39]=0;var p6=function(e){return[[e.bottomleft,0],[0,0],[0,e.leftbottom]]},f6=function(e){return[[1,e.rightbottom],[1,0],[e.bottomright,0]]},g6=function(e){return[[e.topright,1],[1,1],[1,e.righttop]]},m6=function(e){return[[0,e.lefttop],[0,1],[e.topleft,1]]},y6=function(e){return[[e.bottomright,0],[e.bottomleft,0],[0,e.leftbottom],[0,e.lefttop]]},v6=function(e){return[[e.bottomright,0],[e.bottomleft,0],[1,e.righttop],[1,e.rightbottom]]},_6=function(e){return[[1,e.righttop],[1,e.rightbottom],[e.topleft,1],[e.topright,1]]},b6=function(e){return[[0,e.leftbottom],[0,e.lefttop],[e.topleft,1],[e.topright,1]]},x6=[],S6=[],w6=[],E6=[],P6=[],C6=[],A6=[],k6=[];E6[1]=P6[1]=18,E6[169]=P6[169]=18,w6[4]=S6[4]=12,w6[166]=S6[166]=12,x6[16]=k6[16]=4,x6[154]=k6[154]=4,C6[64]=A6[64]=22,C6[106]=A6[106]=22,w6[2]=C6[2]=17,E6[2]=P6[2]=18,w6[168]=C6[168]=17,E6[168]=P6[168]=18,x6[8]=E6[8]=9,S6[8]=w6[8]=12,x6[162]=E6[162]=9,S6[162]=w6[162]=12,x6[32]=k6[32]=4,S6[32]=A6[32]=1,x6[138]=k6[138]=4,S6[138]=A6[138]=1,P6[128]=k6[128]=21,C6[128]=A6[128]=22,P6[42]=k6[42]=21,C6[42]=A6[42]=22,S6[5]=P6[5]=14,S6[165]=P6[165]=14,w6[20]=k6[20]=6,w6[150]=k6[150]=6,x6[80]=C6[80]=11,x6[90]=C6[90]=11,E6[65]=A6[65]=3,E6[105]=A6[105]=3,x6[160]=C6[160]=11,S6[160]=P6[160]=14,x6[10]=C6[10]=11,S6[10]=P6[10]=14,w6[130]=k6[130]=6,E6[130]=A6[130]=3,w6[40]=k6[40]=6,E6[40]=A6[40]=3,S6[101]=A6[101]=1,S6[69]=A6[69]=1,P6[149]=k6[149]=21,P6[21]=k6[21]=21,w6[86]=C6[86]=17,w6[84]=C6[84]=17,x6[89]=E6[89]=9,x6[81]=E6[81]=9,x6[96]=A6[96]=0,S6[96]=C6[96]=15,x6[74]=A6[74]=0,S6[74]=C6[74]=15,x6[24]=w6[24]=8,E6[24]=k6[24]=7,x6[146]=w6[146]=8,E6[146]=k6[146]=7,S6[6]=C6[6]=15,w6[6]=P6[6]=16,S6[164]=C6[164]=15,w6[164]=P6[164]=16,E6[129]=k6[129]=7,P6[129]=A6[129]=20,E6[41]=k6[41]=7,P6[41]=A6[41]=20,w6[66]=A6[66]=2,E6[66]=C6[66]=19,w6[104]=A6[104]=2,E6[104]=C6[104]=19,x6[144]=P6[144]=10,C6[144]=k6[144]=23,x6[26]=P6[26]=10,C6[26]=k6[26]=23,S6[36]=k6[36]=5,w6[36]=A6[36]=2,S6[134]=k6[134]=5,w6[134]=A6[134]=2,x6[9]=P6[9]=10,S6[9]=E6[9]=13,x6[161]=P6[161]=10,S6[161]=E6[161]=13,S6[37]=k6[37]=5,P6[37]=A6[37]=20,S6[133]=k6[133]=5,P6[133]=A6[133]=20,w6[148]=P6[148]=16,C6[148]=k6[148]=23,w6[22]=P6[22]=16,C6[22]=k6[22]=23,x6[82]=w6[82]=8,E6[82]=C6[82]=19,x6[88]=w6[88]=8,E6[88]=C6[88]=19,x6[73]=A6[73]=0,S6[73]=E6[73]=13,x6[97]=A6[97]=0,S6[97]=E6[97]=13,x6[145]=E6[145]=9,P6[145]=k6[145]=21,x6[25]=E6[25]=9,P6[25]=k6[25]=21,S6[70]=A6[70]=1,w6[70]=C6[70]=17,S6[100]=A6[100]=1,w6[100]=C6[100]=17,x6[34]=E6[34]=9,S6[34]=w6[34]=12,P6[34]=k6[34]=21,C6[34]=A6[34]=22,x6[136]=k6[136]=4,S6[136]=A6[136]=1,w6[136]=C6[136]=17,E6[136]=P6[136]=18,x6[35]=k6[35]=4,S6[35]=w6[35]=12,E6[35]=P6[35]=18,C6[35]=A6[35]=22,x6[153]=k6[153]=4,E6[153]=P6[153]=18,S6[102]=w6[102]=12,C6[102]=A6[102]=22,x6[155]=E6[155]=9,P6[155]=k6[155]=23,S6[103]=A6[103]=1,w6[103]=C6[103]=17,x6[152]=k6[152]=4,w6[152]=C6[152]=17,E6[152]=P6[152]=18,x6[156]=w6[156]=8,E6[156]=P6[156]=18,C6[156]=k6[156]=23,x6[137]=k6[137]=4,S6[137]=A6[137]=1,E6[137]=P6[137]=18,x6[139]=k6[139]=4,S6[139]=E6[139]=13,P6[139]=A6[139]=20,x6[98]=E6[98]=9,S6[98]=w6[98]=12,C6[98]=A6[98]=22,x6[99]=A6[99]=0,S6[99]=w6[99]=12,E6[99]=C6[99]=19,S6[38]=w6[38]=12,P6[38]=k6[38]=21,C6[38]=A6[38]=22,S6[39]=k6[39]=5,w6[39]=P6[39]=16,C6[39]=A6[39]=22;var j6=[];j6[1]=j6[169]=p6,j6[4]=j6[166]=f6,j6[16]=j6[154]=g6,j6[64]=j6[106]=m6,j6[168]=j6[2]=y6,j6[162]=j6[8]=v6,j6[138]=j6[32]=_6,j6[42]=j6[128]=b6,j6[5]=j6[165]=function(e){return[[0,0],[0,e.leftbottom],[1,e.rightbottom],[1,0]]},j6[20]=j6[150]=function(e){return[[1,0],[e.bottomright,0],[e.topright,1],[1,1]]},j6[80]=j6[90]=function(e){return[[1,1],[1,e.righttop],[0,e.lefttop],[0,1]]},j6[65]=j6[105]=function(e){return[[e.bottomleft,0],[0,0],[0,1],[e.topleft,1]]},j6[160]=j6[10]=function(e){return[[1,e.righttop],[1,e.rightbottom],[0,e.leftbottom],[0,e.lefttop]]},j6[130]=j6[40]=function(e){return[[e.topleft,1],[e.topright,1],[e.bottomright,0],[e.bottomleft,0]]},j6[85]=function(){return[[0,0],[0,1],[1,1],[1,0]]},j6[101]=j6[69]=function(e){return[[1,e.rightbottom],[1,0],[0,0],[0,1],[e.topleft,1]]},j6[149]=j6[21]=function(e){return[[e.topright,1],[1,1],[1,0],[0,0],[0,e.leftbottom]]},j6[86]=j6[84]=function(e){return[[1,0],[e.bottomright,0],[0,e.lefttop],[0,1],[1,1]]},j6[89]=j6[81]=function(e){return[[1,1],[1,e.righttop],[e.bottomleft,0],[0,0],[0,1]]},j6[96]=j6[74]=function(e){return[[1,e.righttop],[1,e.rightbottom],[0,e.lefttop],[0,1],[e.topleft,1]]},j6[24]=j6[146]=function(e){return[[1,1],[1,e.righttop],[e.bottomright,0],[e.bottomleft,0],[e.topright,1]]},j6[6]=j6[164]=function(e){return[[1,e.rightbottom],[1,0],[e.bottomright,0],[0,e.leftbottom],[0,e.lefttop]]},j6[129]=j6[41]=function(e){return[[e.topright,1],[e.bottomleft,0],[0,0],[0,e.leftbottom],[e.topleft,1]]},j6[66]=j6[104]=function(e){return[[e.bottomright,0],[e.bottomleft,0],[0,e.lefttop],[0,1],[e.topleft,1]]},j6[144]=j6[26]=function(e){return[[1,1],[1,e.righttop],[0,e.leftbottom],[0,e.lefttop],[e.topright,1]]},j6[36]=j6[134]=function(e){return[[1,e.rightbottom],[1,0],[e.bottomright,0],[e.topleft,1],[e.topright,1]]},j6[9]=j6[161]=function(e){return[[1,e.righttop],[1,e.rightbottom],[e.bottomleft,0],[0,0],[0,e.leftbottom]]},j6[37]=j6[133]=function(e){return[[1,e.rightbottom],[1,0],[0,0],[0,e.leftbottom],[e.topleft,1],[e.topright,1]]},j6[148]=j6[22]=function(e){return[[1,1],[1,0],[e.bottomright,0],[0,e.leftbottom],[0,e.lefttop],[e.topright,1]]},j6[82]=j6[88]=function(e){return[[1,1],[1,e.righttop],[e.bottomright,0],[e.bottomleft,0],[0,e.lefttop],[0,1]]},j6[73]=j6[97]=function(e){return[[1,e.righttop],[1,e.rightbottom],[e.bottomleft,0],[0,0],[0,1],[e.topleft,1]]},j6[145]=j6[25]=function(e){return[[1,1],[1,e.righttop],[e.bottomleft,0],[0,0],[0,e.leftbottom],[e.topright,1]]},j6[70]=j6[100]=function(e){return[[1,e.rightbottom],[1,0],[e.bottomright,0],[0,e.lefttop],[0,1],[e.topleft,1]]},j6[34]=function(e){return[b6(e),v6(e)]},j6[35]=function(e){return[[1,e.righttop],[1,e.rightbottom],[e.bottomright,0],[e.bottomleft,0],[0,e.leftbottom],[0,e.lefttop],[e.topleft,1],[e.topright,1]]},j6[136]=function(e){return[_6(e),y6(e)]},j6[153]=function(e){return[g6(e),p6(e)]},j6[102]=function(e){return[f6(e),m6(e)]},j6[155]=function(e){return[[1,1],[1,e.righttop],[e.bottomleft,0],[0,0],[0,e.leftbottom],[e.topright,1]]},j6[103]=function(e){return[[1,e.rightbottom],[1,0],[e.bottomright,0],[0,e.lefttop],[0,1],[e.topleft,1]]},j6[152]=function(e){return[g6(e),y6(e)]},j6[156]=function(e){return[[1,1],[1,e.righttop],[e.bottomright,0],[e.bottomleft,0],[0,e.leftbottom],[0,e.lefttop],[e.topright,1]]},j6[137]=function(e){return[_6(e),p6(e)]},j6[139]=function(e){return[[1,e.righttop],[1,e.rightbottom],[e.bottomleft,0],[0,0],[0,e.leftbottom],[e.topleft,1],[e.topright,1]]},j6[98]=function(e){return[v6(e),m6(e)]},j6[99]=function(e){return[[1,e.righttop],[1,e.rightbottom],[e.bottomright,0],[e.bottomleft,0],[0,e.lefttop],[0,1],[e.topleft,1]]},j6[38]=function(e){return[f6(e),b6(e)]},j6[39]=function(e){return[[1,e.rightbottom],[1,0],[e.bottomright,0],[0,e.leftbottom],[0,e.lefttop],[e.topleft,1],[e.topright,1]]};function I6(e,t,n){var r=t[0]-e[0],i=t[1]-e[1],o=n[0]-t[0];return function(e){return(e>0)-(e<0)||+e}(r*(n[1]-t[1])-o*i)}function G6(e,t){return t.geometry.coordinates[0].every((function(t){return v2(e2(t),e)}))}var T6=function(){function e(t){this.id=e.buildId(t),this.coordinates=t,this.innerEdges=[],this.outerEdges=[],this.outerEdgesSorted=!1}return e.buildId=function(e){return e.join(",")},e.prototype.removeInnerEdge=function(e){this.innerEdges=this.innerEdges.filter((function(t){return t.from.id!==e.from.id}))},e.prototype.removeOuterEdge=function(e){this.outerEdges=this.outerEdges.filter((function(t){return t.to.id!==e.to.id}))},e.prototype.addOuterEdge=function(e){this.outerEdges.push(e),this.outerEdgesSorted=!1},e.prototype.sortOuterEdges=function(){var e=this;this.outerEdgesSorted||(this.outerEdges.sort((function(t,n){var r=t.to,i=n.to;if(r.coordinates[0]-e.coordinates[0]>=0&&i.coordinates[0]-e.coordinates[0]<0)return 1;if(r.coordinates[0]-e.coordinates[0]<0&&i.coordinates[0]-e.coordinates[0]>=0)return-1;if(r.coordinates[0]-e.coordinates[0]===0&&i.coordinates[0]-e.coordinates[0]===0)return r.coordinates[1]-e.coordinates[1]>=0||i.coordinates[1]-e.coordinates[1]>=0?r.coordinates[1]-i.coordinates[1]:i.coordinates[1]-r.coordinates[1];var o=I6(e.coordinates,r.coordinates,i.coordinates);return o<0?1:o>0?-1:Math.pow(r.coordinates[0]-e.coordinates[0],2)+Math.pow(r.coordinates[1]-e.coordinates[1],2)-(Math.pow(i.coordinates[0]-e.coordinates[0],2)+Math.pow(i.coordinates[1]-e.coordinates[1],2))})),this.outerEdgesSorted=!0)},e.prototype.getOuterEdges=function(){return this.sortOuterEdges(),this.outerEdges},e.prototype.getOuterEdge=function(e){return this.sortOuterEdges(),this.outerEdges[e]},e.prototype.addInnerEdge=function(e){this.innerEdges.push(e)},e}();const M6=T6;var O6=function(){function e(e,t){this.from=e,this.to=t,this.next=void 0,this.label=void 0,this.symetric=void 0,this.ring=void 0,this.from.addOuterEdge(this),this.to.addInnerEdge(this)}return e.prototype.getSymetric=function(){return this.symetric||(this.symetric=new e(this.to,this.from),this.symetric.symetric=this),this.symetric},e.prototype.deleteEdge=function(){this.from.removeOuterEdge(this),this.to.removeInnerEdge(this)},e.prototype.isEqual=function(e){return this.from.id===e.from.id&&this.to.id===e.to.id},e.prototype.toString=function(){return"Edge { "+this.from.id+" -> "+this.to.id+" }"},e.prototype.toLineString=function(){return n2([this.from.coordinates,this.to.coordinates])},e.prototype.compareTo=function(e){return I6(e.from.coordinates,e.to.coordinates,this.to.coordinates)},e}();const R6=O6;var D6=function(){function e(){this.edges=[],this.polygon=void 0,this.envelope=void 0}return e.prototype.push=function(e){this.edges.push(e),this.polygon=this.envelope=void 0},e.prototype.get=function(e){return this.edges[e]},Object.defineProperty(e.prototype,"length",{get:function(){return this.edges.length},enumerable:!0,configurable:!0}),e.prototype.forEach=function(e){this.edges.forEach(e)},e.prototype.map=function(e){return this.edges.map(e)},e.prototype.some=function(e){return this.edges.some(e)},e.prototype.isValid=function(){return!0},e.prototype.isHole=function(){var e=this,t=this.edges.reduce((function(t,n,r){return n.from.coordinates[1]>e.edges[t].from.coordinates[1]&&(t=r),t}),0),n=(0===t?this.length:t)-1,r=(t+1)%this.length,i=I6(this.edges[n].from.coordinates,this.edges[t].from.coordinates,this.edges[r].from.coordinates);return 0===i?this.edges[n].from.coordinates[0]>this.edges[r].from.coordinates[0]:i>0},e.prototype.toMultiPoint=function(){return i2(this.edges.map((function(e){return e.from.coordinates})))},e.prototype.toPolygon=function(){if(this.polygon)return this.polygon;var e=this.edges.map((function(e){return e.from.coordinates}));return e.push(this.edges[0].from.coordinates),this.polygon=t2([e])},e.prototype.getEnvelope=function(){return this.envelope?this.envelope:this.envelope=S2(this.toPolygon())},e.findEdgeRingContaining=function(e,t){var n,r,i=e.getEnvelope();return t.forEach((function(t){var o=t.getEnvelope();if(r&&(n=r.getEnvelope()),!function(e,t){var n=e.geometry.coordinates[0].map((function(e){return e[0]})),r=e.geometry.coordinates[0].map((function(e){return e[1]})),i=t.geometry.coordinates[0].map((function(e){return e[0]})),o=t.geometry.coordinates[0].map((function(e){return e[1]}));return Math.max.apply(null,n)===Math.max.apply(null,i)&&Math.max.apply(null,r)===Math.max.apply(null,o)&&Math.min.apply(null,n)===Math.min.apply(null,i)&&Math.min.apply(null,r)===Math.min.apply(null,o)}(o,i)&&G6(o,i)){for(var s=e.map((function(e){return e.from.coordinates})),a=void 0,l=function(e){t.some((function(t){return n=e,r=t.from.coordinates,n[0]===r[0]&&n[1]===r[1];var n,r}))||(a=e)},c=0,u=s;c<u.length;c++){l(u[c])}a&&t.inside(e2(a))&&(r&&!G6(n,o)||(r=t))}})),r},e.prototype.inside=function(e){return v2(e,this.toPolygon())},e}();const N6=D6;!function(){function e(){this.edges=[],this.nodes={}}e.fromGeoJson=function(t){!function(e){if(!e)throw new Error("No geojson passed");if("FeatureCollection"!==e.type&&"GeometryCollection"!==e.type&&"MultiLineString"!==e.type&&"LineString"!==e.type&&"Feature"!==e.type)throw new Error("Invalid input type '"+e.type+"'. Geojson must be FeatureCollection, GeometryCollection, LineString, MultiLineString or Feature")}(t);var n=new e;return p2(t,(function(e){!function(e,t,n){if(!e)throw new Error("No feature passed");if(!n)throw new Error(".featureOf() requires a name");if(!e||"Feature"!==e.type||!e.geometry)throw new Error("Invalid input to "+n+", Feature with geometry required");if(!e.geometry||e.geometry.type!==t)throw new Error("Invalid input to "+n+": must be a "+t+", given "+e.geometry.type)}(e,"LineString","Graph::fromGeoJson"),function(e,t,n,r){var i=n;u2(e,(function(e,r,o,s,a){i=0===r&&void 0===n?e:t(i,e,r,o,s,a)}),r)}(e,(function(e,t){if(e){var r=n.getNode(e),i=n.getNode(t);n.addEdge(r,i)}return t}))})),n},e.prototype.getNode=function(e){var t=M6.buildId(e),n=this.nodes[t];return n||(n=this.nodes[t]=new M6(e)),n},e.prototype.addEdge=function(e,t){var n=new R6(e,t),r=n.getSymetric();this.edges.push(n),this.edges.push(r)},e.prototype.deleteDangles=function(){var e=this;Object.keys(this.nodes).map((function(t){return e.nodes[t]})).forEach((function(t){return e._removeIfDangle(t)}))},e.prototype._removeIfDangle=function(e){var t=this;if(e.innerEdges.length<=1){var n=e.getOuterEdges().map((function(e){return e.to}));this.removeNode(e),n.forEach((function(e){return t._removeIfDangle(e)}))}},e.prototype.deleteCutEdges=function(){var e=this;this._computeNextCWEdges(),this._findLabeledEdgeRings(),this.edges.forEach((function(t){t.label===t.symetric.label&&(e.removeEdge(t.symetric),e.removeEdge(t))}))},e.prototype._computeNextCWEdges=function(e){var t=this;"undefined"===typeof e?Object.keys(this.nodes).forEach((function(e){return t._computeNextCWEdges(t.nodes[e])})):e.getOuterEdges().forEach((function(t,n){e.getOuterEdge((0===n?e.getOuterEdges().length:n)-1).symetric.next=t}))},e.prototype._computeNextCCWEdges=function(e,t){for(var n,r,i=e.getOuterEdges(),o=i.length-1;o>=0;--o){var s=i[o],a=s.symetric,l=void 0,c=void 0;s.label===t&&(l=s),a.label===t&&(c=a),l&&c&&(c&&(r=c),l&&(r&&(r.next=l,r=void 0),n||(n=l)))}r&&(r.next=n)},e.prototype._findLabeledEdgeRings=function(){var e=[],t=0;return this.edges.forEach((function(n){if(!(n.label>=0)){e.push(n);var r=n;do{r.label=t,r=r.next}while(!n.isEqual(r));t++}})),e},e.prototype.getEdgeRings=function(){var e=this;this._computeNextCWEdges(),this.edges.forEach((function(e){e.label=void 0})),this._findLabeledEdgeRings().forEach((function(t){e._findIntersectionNodes(t).forEach((function(n){e._computeNextCCWEdges(n,t.label)}))}));var t=[];return this.edges.forEach((function(n){n.ring||t.push(e._findEdgeRing(n))})),t},e.prototype._findIntersectionNodes=function(e){var t=[],n=e,r=function(){var r=0;n.from.getOuterEdges().forEach((function(t){t.label===e.label&&++r})),r>1&&t.push(n.from),n=n.next};do{r()}while(!e.isEqual(n));return t},e.prototype._findEdgeRing=function(e){var t=e,n=new N6;do{n.push(t),t.ring=n,t=t.next}while(!e.isEqual(t));return n},e.prototype.removeNode=function(e){var t=this;e.getOuterEdges().forEach((function(e){return t.removeEdge(e)})),e.innerEdges.forEach((function(e){return t.removeEdge(e)})),delete this.nodes[e.id]},e.prototype.removeEdge=function(e){this.edges=this.edges.filter((function(t){return!t.isEqual(e)})),e.deleteEdge()}}();__webpack_require__(85952);__webpack_require__(14016);__webpack_require__(33440);function L6(e){for(var t=e,n=[];t.parent;)n.unshift(t),t=t.parent;return n}var V6={search:function(e,t,n,r){e.cleanDirty();var i=(r=r||{}).heuristic||V6.heuristics.manhattan,o=r.closest||!1,s=new B6((function(e){return e.f})),a=t;for(t.h=i(t,n),s.push(t);s.size()>0;){var l=s.pop();if(l===n)return L6(l);l.closed=!0;for(var c=e.neighbors(l),u=0,d=c.length;u<d;++u){var h=c[u];if(!h.closed&&!h.isWall()){var p=l.g+h.getCost(l),f=h.visited;(!f||p<h.g)&&(h.visited=!0,h.parent=l,h.h=h.h||i(h,n),h.g=p,h.f=h.g+h.h,e.markDirty(h),o&&(h.h<a.h||h.h===a.h&&h.g<a.g)&&(a=h),f?s.rescoreElement(h):s.push(h))}}}return o?L6(a):[]},heuristics:{manhattan:function(e,t){return Math.abs(t.x-e.x)+Math.abs(t.y-e.y)},diagonal:function(e,t){var n=Math.sqrt(2),r=Math.abs(t.x-e.x),i=Math.abs(t.y-e.y);return 1*(r+i)+(n-2)*Math.min(r,i)}},cleanNode:function(e){e.f=0,e.g=0,e.h=0,e.visited=!1,e.closed=!1,e.parent=null}};function F6(e,t){t=t||{},this.nodes=[],this.diagonal=!!t.diagonal,this.grid=[];for(var n=0;n<e.length;n++){this.grid[n]=[];for(var r=0,i=e[n];r<i.length;r++){var o=new z6(n,r,i[r]);this.grid[n][r]=o,this.nodes.push(o)}}this.init()}function z6(e,t,n){this.x=e,this.y=t,this.weight=n}function B6(e){this.content=[],this.scoreFunction=e}F6.prototype.init=function(){this.dirtyNodes=[];for(var e=0;e<this.nodes.length;e++)V6.cleanNode(this.nodes[e])},F6.prototype.cleanDirty=function(){for(var e=0;e<this.dirtyNodes.length;e++)V6.cleanNode(this.dirtyNodes[e]);this.dirtyNodes=[]},F6.prototype.markDirty=function(e){this.dirtyNodes.push(e)},F6.prototype.neighbors=function(e){var t=[],n=e.x,r=e.y,i=this.grid;return i[n-1]&&i[n-1][r]&&t.push(i[n-1][r]),i[n+1]&&i[n+1][r]&&t.push(i[n+1][r]),i[n]&&i[n][r-1]&&t.push(i[n][r-1]),i[n]&&i[n][r+1]&&t.push(i[n][r+1]),this.diagonal&&(i[n-1]&&i[n-1][r-1]&&t.push(i[n-1][r-1]),i[n+1]&&i[n+1][r-1]&&t.push(i[n+1][r-1]),i[n-1]&&i[n-1][r+1]&&t.push(i[n-1][r+1]),i[n+1]&&i[n+1][r+1]&&t.push(i[n+1][r+1])),t},F6.prototype.toString=function(){for(var e,t,n,r,i=[],o=this.grid,s=0,a=o.length;s<a;s++){for(e=[],n=0,r=(t=o[s]).length;n<r;n++)e.push(t[n].weight);i.push(e.join(" "))}return i.join("\n")},z6.prototype.toString=function(){return"["+this.x+" "+this.y+"]"},z6.prototype.getCost=function(e){return e&&e.x!==this.x&&e.y!==this.y?1.41421*this.weight:this.weight},z6.prototype.isWall=function(){return 0===this.weight},B6.prototype={push:function(e){this.content.push(e),this.sinkDown(this.content.length-1)},pop:function(){var e=this.content[0],t=this.content.pop();return this.content.length>0&&(this.content[0]=t,this.bubbleUp(0)),e},remove:function(e){var t=this.content.indexOf(e),n=this.content.pop();t!==this.content.length-1&&(this.content[t]=n,this.scoreFunction(n)<this.scoreFunction(e)?this.sinkDown(t):this.bubbleUp(t))},size:function(){return this.content.length},rescoreElement:function(e){this.sinkDown(this.content.indexOf(e))},sinkDown:function(e){for(var t=this.content[e];e>0;){var n=(e+1>>1)-1,r=this.content[n];if(!(this.scoreFunction(t)<this.scoreFunction(r)))break;this.content[n]=t,this.content[e]=r,e=n}},bubbleUp:function(e){for(var t=this.content.length,n=this.content[e],r=this.scoreFunction(n);;){var i,o=e+1<<1,s=o-1,a=null;if(s<t){var l=this.content[s];(i=this.scoreFunction(l))<r&&(a=s)}if(o<t){var c=this.content[o];this.scoreFunction(c)<(null===a?r:i)&&(a=o)}if(null===a)break;this.content[e]=this.content[a],this.content[a]=n,e=a}}};function U6(){this._=null}function W6(e){e.U=e.C=e.L=e.R=e.P=e.N=null}function H6(e,t){var n=t,r=t.R,i=n.U;i?i.L===n?i.L=r:i.R=r:e._=r,r.U=i,n.U=r,n.R=r.L,n.R&&(n.R.U=n),r.L=n}function q6(e,t){var n=t,r=t.L,i=n.U;i?i.L===n?i.L=r:i.R=r:e._=r,r.U=i,n.U=r,n.L=r.R,n.L&&(n.L.U=n),r.R=n}function X6(e){for(;e.L;)e=e.L;return e}U6.prototype={constructor:U6,insert:function(e,t){var n,r,i;if(e){if(t.P=e,t.N=e.N,e.N&&(e.N.P=t),e.N=t,e.R){for(e=e.R;e.L;)e=e.L;e.L=t}else e.R=t;n=e}else this._?(e=X6(this._),t.P=null,t.N=e,e.P=e.L=t,n=e):(t.P=t.N=null,this._=t,n=null);for(t.L=t.R=null,t.U=n,t.C=!0,e=t;n&&n.C;)n===(r=n.U).L?(i=r.R)&&i.C?(n.C=i.C=!1,r.C=!0,e=r):(e===n.R&&(H6(this,n),n=(e=n).U),n.C=!1,r.C=!0,q6(this,r)):(i=r.L)&&i.C?(n.C=i.C=!1,r.C=!0,e=r):(e===n.L&&(q6(this,n),n=(e=n).U),n.C=!1,r.C=!0,H6(this,r)),n=e.U;this._.C=!1},remove:function(e){e.N&&(e.N.P=e.P),e.P&&(e.P.N=e.N),e.N=e.P=null;var t,n,r,i=e.U,o=e.L,s=e.R;if(n=o?s?X6(s):o:s,i?i.L===e?i.L=n:i.R=n:this._=n,o&&s?(r=n.C,n.C=e.C,n.L=o,o.U=n,n!==s?(i=n.U,n.U=e.U,e=n.R,i.L=e,n.R=s,s.U=n):(n.U=i,i=n,e=n.R)):(r=e.C,e=n),e&&(e.U=i),!r)if(e&&e.C)e.C=!1;else{do{if(e===this._)break;if(e===i.L){if((t=i.R).C&&(t.C=!1,i.C=!0,H6(this,i),t=i.R),t.L&&t.L.C||t.R&&t.R.C){t.R&&t.R.C||(t.L.C=!1,t.C=!0,q6(this,t),t=i.R),t.C=i.C,i.C=t.R.C=!1,H6(this,i),e=this._;break}}else if((t=i.L).C&&(t.C=!1,i.C=!0,q6(this,i),t=i.L),t.L&&t.L.C||t.R&&t.R.C){t.L&&t.L.C||(t.R.C=!1,t.C=!0,H6(this,t),t=i.L),t.C=i.C,i.C=t.L.C=!1,q6(this,i),e=this._;break}t.C=!0,e=i,i=i.U}while(!e.C);e&&(e.C=!1)}}};const Y6=U6;function K6(e,t,n,r){var i=[null,null],o=_4.push(i)-1;return i.left=e,i.right=t,n&&$6(i,e,t,n),r&&$6(i,t,e,r),y4[e.index].halfedges.push(o),y4[t.index].halfedges.push(o),i}function Z6(e,t,n){var r=[t,n];return r.left=e,r}function $6(e,t,n,r){e[0]||e[1]?e.left===n?e[1]=r:e[0]=r:(e[0]=r,e.left=t,e.right=n)}function J6(e,t,n,r,i){var o,s=e[0],a=e[1],l=s[0],c=s[1],u=0,d=1,h=a[0]-l,p=a[1]-c;if(o=t-l,h||!(o>0)){if(o/=h,h<0){if(o<u)return;o<d&&(d=o)}else if(h>0){if(o>d)return;o>u&&(u=o)}if(o=r-l,h||!(o<0)){if(o/=h,h<0){if(o>d)return;o>u&&(u=o)}else if(h>0){if(o<u)return;o<d&&(d=o)}if(o=n-c,p||!(o>0)){if(o/=p,p<0){if(o<u)return;o<d&&(d=o)}else if(p>0){if(o>d)return;o>u&&(u=o)}if(o=i-c,p||!(o<0)){if(o/=p,p<0){if(o>d)return;o>u&&(u=o)}else if(p>0){if(o<u)return;o<d&&(d=o)}return!(u>0||d<1)||(u>0&&(e[0]=[l+u*h,c+u*p]),d<1&&(e[1]=[l+d*h,c+d*p]),!0)}}}}}function Q6(e,t,n,r,i){var o=e[1];if(o)return!0;var s,a,l=e[0],c=e.left,u=e.right,d=c[0],h=c[1],p=u[0],f=u[1],g=(d+p)/2,m=(h+f)/2;if(f===h){if(g<t||g>=r)return;if(d>p){if(l){if(l[1]>=i)return}else l=[g,n];o=[g,i]}else{if(l){if(l[1]<n)return}else l=[g,i];o=[g,n]}}else if(a=m-(s=(d-p)/(f-h))*g,s<-1||s>1)if(d>p){if(l){if(l[1]>=i)return}else l=[(n-a)/s,n];o=[(i-a)/s,i]}else{if(l){if(l[1]<n)return}else l=[(i-a)/s,i];o=[(n-a)/s,n]}else if(h<f){if(l){if(l[0]>=r)return}else l=[t,s*t+a];o=[r,s*r+a]}else{if(l){if(l[0]<t)return}else l=[r,s*r+a];o=[t,s*t+a]}return e[0]=l,e[1]=o,!0}function e4(e,t){var n=e.site,r=t.left,i=t.right;return n===i&&(i=r,r=n),i?Math.atan2(i[1]-r[1],i[0]-r[0]):(n===r?(r=t[1],i=t[0]):(r=t[0],i=t[1]),Math.atan2(r[0]-i[0],i[1]-r[1]))}function t4(e,t){return t[+(t.left!==e.site)]}function n4(e,t){return t[+(t.left===e.site)]}var r4,i4=[];function o4(){W6(this),this.x=this.y=this.arc=this.site=this.cy=null}function s4(e){var t=e.P,n=e.N;if(t&&n){var r=t.site,i=e.site,o=n.site;if(r!==o){var s=i[0],a=i[1],l=r[0]-s,c=r[1]-a,u=o[0]-s,d=o[1]-a,h=2*(l*d-c*u);if(!(h>=-x4)){var p=l*l+c*c,f=u*u+d*d,g=(d*p-c*f)/h,m=(l*f-u*p)/h,y=i4.pop()||new o4;y.arc=e,y.site=i,y.x=g+s,y.y=(y.cy=m+a)+Math.sqrt(g*g+m*m),e.circle=y;for(var v=null,_=v4._;_;)if(y.y<_.y||y.y===_.y&&y.x<=_.x){if(!_.L){v=_.P;break}_=_.L}else{if(!_.R){v=_;break}_=_.R}v4.insert(v,y),v||(r4=y)}}}}function a4(e){var t=e.circle;t&&(t.P||(r4=t.N),v4.remove(t),i4.push(t),W6(t),e.circle=null)}var l4=[];function c4(){W6(this),this.edge=this.site=this.circle=null}function u4(e){var t=l4.pop()||new c4;return t.site=e,t}function d4(e){a4(e),m4.remove(e),l4.push(e),W6(e)}function h4(e){var t=e.circle,n=t.x,r=t.cy,i=[n,r],o=e.P,s=e.N,a=[e];d4(e);for(var l=o;l.circle&&Math.abs(n-l.circle.x)<b4&&Math.abs(r-l.circle.cy)<b4;)o=l.P,a.unshift(l),d4(l),l=o;a.unshift(l),a4(l);for(var c=s;c.circle&&Math.abs(n-c.circle.x)<b4&&Math.abs(r-c.circle.cy)<b4;)s=c.N,a.push(c),d4(c),c=s;a.push(c),a4(c);var u,d=a.length;for(u=1;u<d;++u)c=a[u],l=a[u-1],$6(c.edge,l.site,c.site,i);l=a[0],(c=a[d-1]).edge=K6(l.site,c.site,null,i),s4(l),s4(c)}function p4(e){for(var t,n,r,i,o=e[0],s=e[1],a=m4._;a;)if((r=f4(a,s)-o)>b4)a=a.L;else{if(!((i=o-g4(a,s))>b4)){r>-b4?(t=a.P,n=a):i>-b4?(t=a,n=a.N):t=n=a;break}if(!a.R){t=a;break}a=a.R}!function(e){y4[e.index]={site:e,halfedges:[]}}(e);var l=u4(e);if(m4.insert(t,l),t||n){if(t===n)return a4(t),n=u4(t.site),m4.insert(l,n),l.edge=n.edge=K6(t.site,l.site),s4(t),void s4(n);if(n){a4(t),a4(n);var c=t.site,u=c[0],d=c[1],h=e[0]-u,p=e[1]-d,f=n.site,g=f[0]-u,m=f[1]-d,y=2*(h*m-p*g),v=h*h+p*p,_=g*g+m*m,b=[(m*v-p*_)/y+u,(h*_-g*v)/y+d];$6(n.edge,c,f,b),l.edge=K6(c,e,null,b),n.edge=K6(e,f,null,b),s4(t),s4(n)}else l.edge=K6(t.site,l.site)}}function f4(e,t){var n=e.site,r=n[0],i=n[1],o=i-t;if(!o)return r;var s=e.P;if(!s)return-1/0;var a=(n=s.site)[0],l=n[1],c=l-t;if(!c)return a;var u=a-r,d=1/o-1/c,h=u/c;return d?(-h+Math.sqrt(h*h-2*d*(u*u/(-2*c)-l+c/2+i-o/2)))/d+r:(r+a)/2}function g4(e,t){var n=e.N;if(n)return f4(n,t);var r=e.site;return r[1]===t?r[0]:1/0}var m4,y4,v4,_4,b4=1e-6,x4=1e-12;function S4(e,t,n){return(e[0]-n[0])*(t[1]-e[1])-(e[0]-t[0])*(n[1]-e[1])}function w4(e,t){return t[1]-e[1]||t[0]-e[0]}function E4(e,t){var n,r,i,o=e.sort(w4).pop();for(_4=[],y4=new Array(e.length),m4=new Y6,v4=new Y6;;)if(i=r4,o&&(!i||o[1]<i.y||o[1]===i.y&&o[0]<i.x))o[0]===n&&o[1]===r||(p4(o),n=o[0],r=o[1]),o=e.pop();else{if(!i)break;h4(i.arc)}if(function(){for(var e,t,n,r,i=0,o=y4.length;i<o;++i)if((e=y4[i])&&(r=(t=e.halfedges).length)){var s=new Array(r),a=new Array(r);for(n=0;n<r;++n)s[n]=n,a[n]=e4(e,_4[t[n]]);for(s.sort((function(e,t){return a[t]-a[e]})),n=0;n<r;++n)a[n]=t[s[n]];for(n=0;n<r;++n)t[n]=a[n]}}(),t){var s=+t[0][0],a=+t[0][1],l=+t[1][0],c=+t[1][1];!function(e,t,n,r){for(var i,o=_4.length;o--;)Q6(i=_4[o],e,t,n,r)&&J6(i,e,t,n,r)&&(Math.abs(i[0][0]-i[1][0])>b4||Math.abs(i[0][1]-i[1][1])>b4)||delete _4[o]}(s,a,l,c),function(e,t,n,r){var i,o,s,a,l,c,u,d,h,p,f,g,m=y4.length,y=!0;for(i=0;i<m;++i)if(o=y4[i]){for(s=o.site,a=(l=o.halfedges).length;a--;)_4[l[a]]||l.splice(a,1);for(a=0,c=l.length;a<c;)f=(p=n4(o,_4[l[a]]))[0],g=p[1],d=(u=t4(o,_4[l[++a%c]]))[0],h=u[1],(Math.abs(f-d)>b4||Math.abs(g-h)>b4)&&(l.splice(a,0,_4.push(Z6(s,p,Math.abs(f-e)<b4&&r-g>b4?[e,Math.abs(d-e)<b4?h:r]:Math.abs(g-r)<b4&&n-f>b4?[Math.abs(h-r)<b4?d:n,r]:Math.abs(f-n)<b4&&g-t>b4?[n,Math.abs(d-n)<b4?h:t]:Math.abs(g-t)<b4&&f-e>b4?[Math.abs(h-t)<b4?d:e,t]:null))-1),++c);c&&(y=!1)}if(y){var v,_,b,x=1/0;for(i=0,y=null;i<m;++i)(o=y4[i])&&(b=(v=(s=o.site)[0]-e)*v+(_=s[1]-t)*_)<x&&(x=b,y=o);if(y){var S=[e,t],w=[e,r],E=[n,r],P=[n,t];y.halfedges.push(_4.push(Z6(s=y.site,S,w))-1,_4.push(Z6(s,w,E))-1,_4.push(Z6(s,E,P))-1,_4.push(Z6(s,P,S))-1)}}for(i=0;i<m;++i)(o=y4[i])&&(o.halfedges.length||delete y4[i])}(s,a,l,c)}this.edges=_4,this.cells=y4,m4=v4=_4=y4=null}E4.prototype={constructor:E4,polygons:function(){var e=this.edges;return this.cells.map((function(t){var n=t.halfedges.map((function(n){return t4(t,e[n])}));return n.data=t.site.data,n}))},triangles:function(){var e=[],t=this.edges;return this.cells.forEach((function(n,r){if(o=(i=n.halfedges).length)for(var i,o,s,a=n.site,l=-1,c=t[i[o-1]],u=c.left===a?c.right:c.left;++l<o;)s=u,u=(c=t[i[l]]).left===a?c.right:c.left,s&&u&&r<s.index&&r<u.index&&S4(a,s,u)<0&&e.push([a.data,s.data,u.data])})),e},links:function(){return this.edges.filter((function(e){return e.right})).map((function(e){return{source:e.left.data,target:e.right.data}}))},find:function(e,t,n){for(var r,i,o=this,s=o._found||0,a=o.cells.length;!(i=o.cells[s]);)if(++s>=a)return null;var l=e-i.site[0],c=t-i.site[1],u=l*l+c*c;do{i=o.cells[r=s],s=null,i.halfedges.forEach((function(n){var r=o.edges[n],a=r.left;if(a!==i.site&&a||(a=r.right)){var l=e-a[0],c=t-a[1],d=l*l+c*c;d<u&&(u=d,s=a.index)}}))}while(null!==s);return o._found=r,null==n||u<=n*n?i.site:null}};var P4=__webpack_require__(27900);__webpack_require__(42752);function C4(){return new A4}function A4(){this.reset()}A4.prototype={constructor:A4,reset:function(){this.s=this.t=0},add:function(e){j4(k4,e,this.t),j4(this,k4.s,this.s),this.s?this.t+=k4.t:this.s=k4.t},valueOf:function(){return this.s}};var k4=new A4;function j4(e,t,n){var r=e.s=t+n,i=r-t,o=r-i;e.t=t-o+(n-i)}var I4=1e-6,G4=Math.PI,T4=G4/2,M4=G4/4,O4=2*G4,R4=G4/180,D4=Math.abs,N4=Math.atan,L4=Math.atan2,V4=Math.cos,F4=(Math.ceil,Math.exp),z4=(Math.floor,Math.log),B4=(Math.pow,Math.sin),U4=(Math.sign,Math.sqrt),W4=Math.tan;function H4(e){return e>1?T4:e<-1?-T4:Math.asin(e)}function q4(){}C4(),C4();function X4(e){var t=e[0],n=e[1],r=V4(n);return[r*V4(t),r*B4(t),B4(n)]}function Y4(e,t){return[e[1]*t[2]-e[2]*t[1],e[2]*t[0]-e[0]*t[2],e[0]*t[1]-e[1]*t[0]]}function K4(e){var t=U4(e[0]*e[0]+e[1]*e[1]+e[2]*e[2]);e[0]/=t,e[1]/=t,e[2]/=t}C4();function Z4(e,t){return[e>G4?e-O4:e<-G4?e+O4:e,t]}function $4(e,t,n,r){this.x=e,this.z=t,this.o=n,this.e=r,this.v=!1,this.n=this.p=null}function J4(e,t,n,r,i){var o,s,a=[],l=[];if(e.forEach((function(e){if(!((t=e.length-1)<=0)){var t,n,r=e[0],s=e[t];if(function(e,t){return D4(e[0]-t[0])<I4&&D4(e[1]-t[1])<I4}(r,s)){for(i.lineStart(),o=0;o<t;++o)i.point((r=e[o])[0],r[1]);i.lineEnd()}else a.push(n=new $4(r,e,null,!0)),l.push(n.o=new $4(r,null,n,!1)),a.push(n=new $4(s,e,null,!1)),l.push(n.o=new $4(s,null,n,!0))}})),a.length){for(l.sort(t),Q4(a),Q4(l),o=0,s=l.length;o<s;++o)l[o].e=n=!n;for(var c,u,d=a[0];;){for(var h=d,p=!0;h.v;)if((h=h.n)===d)return;c=h.z,i.lineStart();do{if(h.v=h.o.v=!0,h.e){if(p)for(o=0,s=c.length;o<s;++o)i.point((u=c[o])[0],u[1]);else r(h.x,h.n.x,1,i);h=h.n}else{if(p)for(c=h.p.z,o=c.length-1;o>=0;--o)i.point((u=c[o])[0],u[1]);else r(h.x,h.p.x,-1,i);h=h.p}c=(h=h.o).z,p=!p}while(!h.v);i.lineEnd()}}}function Q4(e){if(t=e.length){for(var t,n,r=0,i=e[0];++r<t;)i.n=n=e[r],n.p=i,i=n;i.n=n=e[0],n.p=i}}function e5(e,t){return e<t?-1:e>t?1:e>=t?0:NaN}Z4.invert=Z4;var t5;1===(t5=e5).length&&(t5=function(e){return function(t,n){return e5(e(t),n)}}(t5));var n5=Array.prototype;n5.slice,n5.map,Math.sqrt(50),Math.sqrt(10),Math.sqrt(2);var r5=C4();function i5(e,t){var n=t[0],r=t[1],i=[B4(n),-V4(n),0],o=0,s=0;r5.reset();for(var a=0,l=e.length;a<l;++a)if(u=(c=e[a]).length)for(var c,u,d=c[u-1],h=d[0],p=d[1]/2+M4,f=B4(p),g=V4(p),m=0;m<u;++m,h=v,f=b,g=x,d=y){var y=c[m],v=y[0],_=y[1]/2+M4,b=B4(_),x=V4(_),S=v-h,w=S>=0?1:-1,E=w*S,P=E>G4,C=f*b;if(r5.add(L4(C*w*B4(E),g*x+C*V4(E))),o+=P?S+w*O4:S,P^h>=n^v>=n){var A=Y4(X4(d),X4(y));K4(A);var k=Y4(i,A);K4(k);var j=(P^S>=0?-1:1)*H4(k[2]);(r>j||r===j&&(A[0]||A[1]))&&(s+=P^S>=0?1:-1)}}return(o<-I4||o<I4&&r5<-I4)^1&s}C4();C4(),C4();C4();function o5(e){return"m0,"+e+"a"+e+","+e+" 0 1,1 0,"+-2*e+"a"+e+","+e+" 0 1,1 0,"+2*e+"z"}function s5(e){return e.length>1}function a5(e,t){return((e=e.x)[0]<0?e[1]-T4-I4:T4-e[1])-((t=t.x)[0]<0?t[1]-T4-I4:T4-t[1])}o5(4.5);function l5(e){return function(t){var n=new c5;for(var r in e)n[r]=e[r];return n.stream=t,n}}function c5(){}c5.prototype={constructor:c5,point:function(e,t){this.stream.point(e,t)},sphere:function(){this.stream.sphere()},lineStart:function(){this.stream.lineStart()},lineEnd:function(){this.stream.lineEnd()},polygonStart:function(){this.stream.polygonStart()},polygonEnd:function(){this.stream.polygonEnd()}};V4(30*R4);l5({point:function(e,t){this.stream.point(e*R4,t*R4)}});function u5(e){return function(t,n){var r=V4(t),i=V4(n),o=e(r*i);return[o*i*B4(t),o*B4(n)]}}function d5(e){return function(t,n){var r=U4(t*t+n*n),i=e(r),o=B4(i),s=V4(i);return[L4(t*o,r*s),H4(r&&n*o/r)]}}var h5=u5((function(e){return U4(2/(1+e))}));h5.invert=d5((function(e){return 2*H4(e/2)}));var p5=u5((function(e){return(e=function(e){return e>1?0:e<-1?G4:Math.acos(e)}(e))&&e/B4(e)}));function f5(e,t){return[e,z4(W4((T4+t)/2))]}function g5(e,t){return[e,t]}function m5(e,t){var n=V4(t),r=V4(e)*n;return[n*B4(e)/r,B4(t)/r]}function y5(e,t){var n=t*t,r=n*n;return[e*(.8707-.131979*n+r*(r*(.003971*n-.001529*r)-.013791)),t*(1.007226+n*(.015085+r*(.028874*n-.044475-.005916*r)))]}function v5(e,t){return[V4(t)*B4(e),B4(t)]}function _5(e,t){var n=V4(t),r=1+V4(e)*n;return[n*B4(e)/r,B4(t)/r]}function b5(e,t){return[z4(W4((T4+t)/2)),-e]}p5.invert=d5((function(e){return e})),f5.invert=function(e,t){return[e,2*N4(F4(t))-T4]},g5.invert=g5,m5.invert=d5(N4),y5.invert=function(e,t){var n,r=t,i=25;do{var o=r*r,s=o*o;r-=n=(r*(1.007226+o*(.015085+s*(.028874*o-.044475-.005916*s)))-t)/(1.007226+o*(.045255+s*(.259866*o-.311325-.005916*11*s)))}while(D4(n)>I4&&--i>0);return[e/(.8707+(o=r*r)*(o*(o*o*o*(.003971-.001529*o)-.013791)-.131979)),r]},v5.invert=d5(H4),_5.invert=d5((function(e){return 2*N4(e)})),b5.invert=function(e,t){return[-t,2*N4(F4(e))-T4]};function x5(e,t,n){void 0===n&&(n={});var r=y2(e),i=y2(t),o=P4.intersection(r.coordinates,i.coordinates);return 0===o.length?null:1===o.length?t2(o[0],n.properties):o2(o,n.properties)}const S5=e=>{if(!B3(e))return[];if(0===e.length)return e;const t=e[0],n=e[e.length-1];return t.x===n.x&&t.y===n.y?e:[...e,t]},w5=e=>{if(0===e.length)throw new Error("[SV ERROR] pointsToTurfPolygon needs points.length greater than 0");const t=[...e];for(;t.length<4;)t.push(t[0]);return t2([S5(e).map((e=>[e.x,e.y]))])},E5=(e,t)=>{try{const n=w5(e);return null!==x5(w5(t),n)}catch(n){return!1}},P5=(e,t)=>{const n=w5(e),r=(e=>e2([e.x,e.y]))(t);try{return v2(r,n)}catch(i){return!1}};function C5(e){return null!==e&&void 0!==e}const A5=(e,t)=>{var n;const r=null!==(n=null===t||void 0===t?void 0:t.fontSize)&&void 0!==n?n:13,i=Array.isArray(e)?e:[e],o=i.flatMap(((e,t)=>[null!==e&&void 0!==e?e:"","".concat(r,"px Calibri,sans-serif"),t<i.length-1?"\n":null,t<i.length-1?"":null])).filter(C5);return o},k5=e=>{const t=w5(e),n=P2(t).geometry.coordinates;return{x:n[0],y:n[1]}},j5=e=>{const t=(0,n.useContext)(V3);if(!t)return(0,Ae.jsx)(Ae.Fragment,{});const{map:r}=t,[i,o]=(0,n.useState)(),[s,a]=(0,n.useState)([]),l=(0,n.useRef)(s),{visible:c,selectable:u}=(0,n.useMemo)((()=>{var t,n;return{visible:null===(t=e.visible)||void 0===t||t,selectable:null!==(n=e.selectable)&&void 0!==n&&n}}),[e]),d=(0,n.useMemo)((()=>{var t;return null!==(t=e.zIndex)&&void 0!==t?t:2}),[e.zIndex]),h=(0,n.useMemo)((()=>e.circles.filter(X3)),[e.circles]);(0,n.useEffect)((()=>{if(i)return;const e=new Y1,t=new T1({source:e,zIndex:d,visible:!1});return r.addLayer(t),o(t),()=>{r.removeLayer(t),o(void 0)}}),[r]),(0,n.useEffect)((()=>{i&&g(i,h)}),[r,i,h]),(0,n.useEffect)((()=>{var t;i&&i.setZIndex(null!==(t=e.zIndex)&&void 0!==t?t:2)}),[i,e.zIndex]),(0,n.useEffect)((()=>{i&&i.setVisible(c)}),[i,c]);const p=(0,n.useCallback)((e=>l.current.map((e=>"".concat(e.getId()))).includes(e)),[l.current]),f=(0,n.useCallback)((t=>{var n,r;if(!i)return;const o=t.coordinate,s=(null!==(n=null===(r=i.getSource())||void 0===r?void 0:r.getFeatures())&&void 0!==n?n:[]).find((e=>{const t=e.getGeometry();return!!t&&(!!t.intersectsCoordinate(o)||void 0)}));if(!s)return;const c=p("".concat(s.getId()));var u;((e=>{l.current=e,a(e)})(c?l.current.filter((e=>"".concat(e.getId())!=="".concat(null===s||void 0===s?void 0:s.getId()))):[...l.current,s]),c)||(null===(u=e.onCircleSelected)||void 0===u||u.call(e,s))}),[i,e.onCircleSelected]);(0,n.useEffect)((()=>(u?r.on("click",f):r.un("click",f),()=>{r.un("click",f)})),[r,u,f]),(0,n.useEffect)((()=>{null===i||void 0===i||i.changed()}),[s]);const g=(e,t)=>{var n,r;const i=(e=>e.map(b3))(t).map((e=>(e.set("zIndex",d),e)));null===(n=e.getSource())||void 0===n||n.clear(),null===(r=e.getSource())||void 0===r||r.addFeatures(i),e.setStyle(m)},m=(e,t)=>{var n;const r=h.find((t=>{let{id:n}=t;return n===e.getId()}));if(!r)return[];const{stroke:i,fill:o}=v(r,p(r.id)),s=[new l$({stroke:new n$({color:i.color,width:i.width}),fill:new e$({color:o.color})})];if(r.withCross){var a,l;const e=new l$({geometry:new dK(A3(r.center)),image:new ZZ({stroke:new n$({color:null!==(a=null===(l=r.style)||void 0===l?void 0:l.stroke)&&void 0!==a?a:jp,width:1}),points:4,radius:r.radius/(Math.sqrt(2)*t),radius2:0,angle:0})});s.push(e)}const c=null!==(n=e.get("displayText"))&&void 0!==n?n:"",u=A5(c),d=new l$({text:new p$({fill:new e$({color:"#000"}),stroke:new n$({color:"#fff",width:4}),textAlign:"center",textBaseline:"middle",font:"".concat(10,"px sans-serif"),text:y(c,10,r,t)?u:""})});return s.push(d),s},y=(e,t,n,r)=>{var i;const o=Array.isArray(e)?e.reduce(((e,t)=>e.length>t.length?e:t),null!==(i=e[0])&&void 0!==i?i:""):e,s=t*o.length,a=2*n.radius/r;return a>50||s<=a},v=(e,t)=>{if(e.style){var n;const r=t&&null!==(n=e.style.selected)&&void 0!==n?n:{},i={...e.style,...r};return{stroke:{color:i.stroke,width:i.size},fill:{color:i.fill}}}const r=t?"selected":"default";return{stroke:{color:Xp.POLYGONS.stroke[r],width:"selected"===r?4:1},fill:{color:Xp.POLYGONS.fill[r]}}};return(0,Ae.jsx)(Ae.Fragment,{})},I5=["className"],G5=(0,cs.cp)("div",{name:"MuiListItemIcon",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,"flex-start"===n.alignItems&&t.alignItemsFlexStart]}})((e=>{let{theme:t,ownerState:n}=e;return(0,d.c)({minWidth:56,color:(t.vars||t).palette.action.active,flexShrink:0,display:"inline-flex"},"flex-start"===n.alignItems&&{marginTop:8})})),T5=n.forwardRef((function(e,t){const r=(0,Oe.c)({props:e,name:"MuiListItemIcon"}),{className:i}=r,o=(0,Tt.c)(r,I5),s=n.useContext(Mu),a=(0,d.c)({},r,{alignItems:s.alignItems}),l=(e=>{const{alignItems:t,classes:n}=e,r={root:["root","flex-start"===t&&"alignItemsFlexStart"]};return(0,ls.c)(r,nh,n)})(a);return(0,Ae.jsx)(G5,(0,d.c)({className:(0,ts.c)(l.root,i),ownerState:a,ref:t},o))})),M5=T5;var O5=__webpack_require__(71608);let R5=function(e){return e.COPY_POSITION="COPY_POSITION",e}({});const D5=e=>(navigator.clipboard.writeText("".concat(e.lat,", ").concat(e.lng)),"Position has been copied to clipboard"),N5=e=>e===R5.COPY_POSITION?{id:R5.COPY_POSITION,text:"Copy position to clipboard",icon:(0,Ae.jsx)(O5.c,{fontSize:"small"}),callback:D5}:{id:"",text:"",icon:"",callback:()=>""},L5=e=>{const{item:t,onItemClicked:r}=e,{text:i,icon:o}=(0,n.useMemo)((()=>"text"in t&&"icon"in t?t:N5(t.id)),[t]);return(0,Ae.jsxs)(dh,{onClick:e=>r(t.id,e),children:[(0,Ae.jsx)(M5,{children:o}),(0,Ae.jsx)(Hq,{children:i})]})},V5=e=>{const{anchorEl:t,isOpen:n,items:r,onClose:i,onItemClicked:o}=e;return(0,Ae.jsx)(Ud,{anchorEl:t,open:n,onClose:i,children:(0,Ae.jsx)(Qu,{sx:{width:300,maxWidth:"100%"},children:(0,Ae.jsx)(Yu,{children:r.map(((e,t)=>(0,Ae.jsx)(L5,{item:e,onItemClicked:o},"menu-item-".concat(t))))})})})},F5=e=>(0,Ae.jsx)(V3.Provider,{value:e.context,children:e.children}),z5=Zo()(((e,t)=>{let{minimapSize:n,menuPosition:r,latLngBottomPosition:i,scaleBottomPosition:o,zoomBottomPosition:s}=t;return{root:{position:"relative",width:"100%",height:"100%"},mapContainer:{width:"100%",height:"100%","& .ol-zoom":{bottom:s,right:"0.5rem",top:"initial",left:"initial"},"& .ol-scale-line":{bottom:o,right:"0.5rem",top:"initial",left:"initial"}},latLngPositionText:{bottom:i,position:"absolute",right:"0.5rem",height:"1.1rem",backgroundColor:"rgba(255, 255, 255, 0.75)",padding:"0 0.25rem",borderRadius:"0.25rem","& p":{color:"black",fontSize:"12px",lineHeight:"1.1rem"}},mapLeftToolbar:{...x0,left:n},mapTopToolbar:S0,geolocationBtn:{background:"white",border:"1px solid black",padding:"0.25rem",width:"fit-content",fontSize:"2rem","&:hover":{background:"white"}},menuRef:{width:"0px",height:"0px",position:"absolute",left:"".concat(r.x,"px"),top:"".concat(r.y,"px")}}})),B5=28,U5=e=>{const{id:t="map-container",children:r,leftBar:i,topBar:o,provider:s=mL.GoogleSatellite,center:a,zoom:l,bounds:c,extent:u,minZoom:d=0,maxZoom:h=B5,hideControls:p,noInteraction:f,noMap:g,maxScaleLineSize:m,withGeolocation:y=!1,withLatLngPicker:v=!1,mapRotation:_=0,onMapClick:b,onMapMoveEnd:x,onFeaturesClick:S}=e,w=(0,n.useRef)(null),E=(0,n.useRef)(new OQ({view:new AK({constrainRotation:!1}),interactions:[],controls:[],layers:[]})),[P,C]=(0,n.useState)(!1),[A,k]=(0,n.useState)(),[j,I]=(0,n.useState)("0"),G=(0,n.useRef)(new f0({zIndex:1})),[T,M]=(0,n.useState)({isOpen:!1}),[O,R]=(0,n.useState)({isOpen:!1}),[D,N]=(0,n.useState)(),L=(0,n.useMemo)((()=>{var t;return v?[...null!==(t=e.rightClickMenuItems)&&void 0!==t?t:[],{id:R5.COPY_POSITION}]:e.rightClickMenuItems}),[e.rightClickMenuItems,v]),{latLngBottomPosition:V,scaleBottomPosition:F,zoomBottomPosition:z}=(0,n.useMemo)((()=>{const e=.5+(v?1.5:0),t=e+1.5;return{latLngBottomPosition:"".concat(.5,"rem"),scaleBottomPosition:"".concat(e,"rem"),zoomBottomPosition:"".concat(t,"rem")}}),[v]),{classes:B}=z5({minimapSize:j,menuPosition:T.isOpen?T.position:{x:0,y:0},latLngBottomPosition:V,scaleBottomPosition:F,zoomBottomPosition:z}),[U,W]=(0,n.useState)(),[H,q]=(0,n.useState)(!1),[X,Y]=(0,n.useState)(),[K,Z]=(0,n.useState)();(0,n.useEffect)((()=>{E.current.setTarget(t)}),[t]),(0,n.useEffect)((()=>{const e=E.current;if(p)return void e.getControls().clear();const t=qJ().extend([new v0({units:"metric",maxWidth:m})]);return t.forEach((t=>{e.addControl(t)})),()=>{t.forEach((t=>{e.removeControl(t)}))}}),[p,m]),(0,n.useEffect)((()=>{C(!1);const e=E.current;if(f)return void e.getInteractions().clear();const t=GQ({doubleClickZoom:!1,altShiftDragRotate:!1,shiftDragZoom:!1,pinchRotate:!1});return t.forEach((t=>{e.addInteraction(t)})),C(!0),()=>{C(!1),t.forEach((t=>{e.removeInteraction(t)}))}}),[f]),(0,n.useEffect)((()=>{const e=E.current,t=G.current;if(g)e.removeLayer(t);else{const n=e.getLayers().getArray();e.setLayers([t,...n])}return()=>{e.removeLayer(t)}}),[g]);const $=(0,n.useCallback)((()=>{const e=(e=>{const t=[e[0],e[1]],n=[e[2],e[3]];return[k3(t),k3(n)]})(E.current.getView().calculateExtent(E.current.getSize()));null===x||void 0===x||x(e)}),[x]);(0,n.useEffect)((()=>{const e=E.current;return e.on("moveend",$),()=>{e.un("moveend",$)}}),[$]),(0,n.useEffect)((()=>{if(!U)return;const e=G.current;if(!U.buildSource)return void e.setSource(null);const t=U.buildSource();return k(t),e.setSource(t),()=>{e.setSource(null)}}),[U]),(0,n.useEffect)((()=>{W(s)}),[s]),(0,n.useEffect)((()=>{if(!l||!a)return;const e=A3(a);E.current.getView().setCenter(e),E.current.getView().setZoom(l)}),[a,l]),(0,n.useEffect)((()=>{u&&E.current.getView().fit(u)}),[u]),(0,n.useEffect)((()=>{c&&E.current.getView().fit(c)}),[c]),(0,n.useEffect)((()=>{E.current.getView().setRotation(_)}),[_]),(0,n.useEffect)((()=>{a||c||(E.current.getView().setCenter(A3({lat:0,lng:0})),E.current.getView().setZoom(null!==l&&void 0!==l?l:1))}),[a,c,l]),(0,n.useEffect)((()=>{E.current.getView().setMinZoom(d)}),[d]),(0,n.useEffect)((()=>{E.current.getView().setMaxZoom(h)}),[h]);const J=(0,n.useCallback)((e=>{var n,r,i;const o=null===(n=e.target)||void 0===n?void 0:n.getPosition();if(!o)return Y(void 0);const s=null!==(r=null===(i=e.target)||void 0===i?void 0:i.getAccuracy())&&void 0!==r?r:1e3,a={id:"".concat(t,"-user-location-circle"),center:k3(o),radius:s/2,style:{fill:nU(jp,.2)}};Y(a)}),[t]);(0,n.useEffect)((()=>{if(!y)return void Y(void 0);const e=new XQ({trackingOptions:{enableHighAccuracy:!0,maximumAge:2e3,timeout:6e4},projection:E.current.getView().getProjection(),tracking:!1});return e.on("change",J),e.on("error",(e=>{1===e.code&&q(!0)})),e.setTracking(!0),()=>{e.un("change",J),e.setTracking(!1),Y(void 0)}}),[y,J]);const Q=(0,n.useCallback)((e=>{if(H)return void Z(e.currentTarget);if(!X)return;const t=A3(X.center),n=X.radius,r=[[t[0]-n,t[1]-n],[t[0]+n,t[1]-n],[t[0]+n,t[1]+n],[t[0]-n,t[1]+n]],i=O3(r.map(k3),"small");E.current.getView().fit(i,{duration:200})}),[X,H]),ee=(0,n.useCallback)((function(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(b){const n=E.current.getView().calculateExtent(),r=n[0],i=n[1],o=n[2],s=n[3],a=[r,s],l=[o,s],c=[o,i],u=[r,i];b(k3(e.coordinate),[a,l,c,u].map(k3),t)}if(!S)return;const n=E.current.getFeaturesAtPixel(e.pixel).sort(((e,t)=>{var n,r;const i=null!==(n=e.get("zIndex"))&&void 0!==n?n:0;return(null!==(r=t.get("zIndex"))&&void 0!==r?r:0)-i}));S(n)}),[b,S]);(0,n.useEffect)((()=>{if(!S)return;const e=E.current;let t,n=!1;const r=()=>{t=(new Date).getTime()},i=()=>{if(!t)return;const e=(new Date).getTime()-t;n=e>500};e.on("pointerdown",r),e.on("pointerup",i);const o=e=>{ee(e,n)};return e.on("singleclick",o),()=>{e.un("pointerdown",r),e.un("pointerup",i),e.un("singleclick",o)}}),[S,ee]),(0,n.useEffect)((()=>{const e=XX()((e=>{const t=k3(e.coordinate);N(t)}),100),t=E.current;return t.on("pointermove",e),()=>{t.un("pointermove",e)}}),[]),(0,n.useEffect)((()=>{const e=e=>{e.preventDefault();const t=E.current.getEventCoordinate(e),n=E.current.getEventPixel(e);M({isOpen:!0,coord:k3(t),position:{x:n[0],y:n[1]}})},t=E.current;return t.getViewport().addEventListener("contextmenu",e),()=>{t.getViewport().removeEventListener("contextmenu",e)}}),[]);const te=(0,n.useCallback)((e=>{if(!L||!T.isOpen)return;const t=L.find((t=>{let{id:n}=t;return n===e}));if(!t)return;const n=("callback"in t?t.callback:N5(t.id).callback)(T.coord,T.position);n&&R({isOpen:!0,text:n}),M({isOpen:!1})}),[L,T]),ne={map:E.current,mapProvider:{current:U,set:e=>{W(e)}},minimapSize:j,setMinimapSize:I,source:A,areMapInteractionsReady:P};return(0,Ae.jsxs)(Ae.Fragment,{children:[(0,Ae.jsxs)("div",{className:B.root,children:[(0,Ae.jsx)("div",{id:t,className:B.mapContainer}),(0,Ae.jsxs)(F5,{context:ne,children:[(0,Ae.jsxs)("div",{className:B.mapLeftToolbar,children:[null!==i&&void 0!==i?i:(0,Ae.jsx)(Ae.Fragment,{}),y&&(0,Ae.jsx)(Gu,{className:B.geolocationBtn,onClick:Q,children:X||H?(0,Ae.jsx)(YX.c,{color:H?"error":"primary",fontSize:"inherit"}):(0,Ae.jsx)($y,{size:15})})]}),(0,Ae.jsx)("div",{className:B.mapTopToolbar,children:null!==o&&void 0!==o?o:(0,Ae.jsx)(Ae.Fragment,{})}),y&&X&&(0,Ae.jsx)(j5,{circles:[X]}),v&&D&&(0,Ae.jsx)(wp,{className:B.latLngPositionText,children:(0,Ae.jsxs)(vu,{children:[D.lat.toFixed(5),","," ",D.lng.toFixed(5)]})}),(0,Ae.jsx)("div",{className:B.menuRef,ref:w}),L&&(0,Ae.jsx)(V5,{anchorEl:w.current,isOpen:T.isOpen,onClose:()=>M({isOpen:!1}),items:L,onItemClicked:te}),r]})]}),(0,Ae.jsx)(Ud,{open:void 0!==K&&H,anchorEl:K,onClose:()=>Z(void 0),anchorOrigin:{horizontal:"right",vertical:"center"},transformOrigin:{horizontal:"left",vertical:"center"},children:(0,Ae.jsx)(wp,{padding:"0.5rem",children:(0,Ae.jsx)("p",{children:"Please activate your location"})})}),(0,Ae.jsx)(JT,{open:O.isOpen,anchorOrigin:{horizontal:"center",vertical:"bottom"},autoHideDuration:6e3,onClose:()=>R({isOpen:!1}),children:(0,Ae.jsx)(pM,{severity:"success",children:O.isOpen?O.text:""})})]})};const W5=class extends Y1{constructor(e){super({attributions:(e=e||{}).attributions,wrapX:e.wrapX}),this.resolution=void 0,this.distance=void 0!==e.distance?e.distance:20,this.minDistance=e.minDistance||0,this.interpolationRatio=0,this.features=[],this.geometryFunction=e.geometryFunction||function(e){const t=e.getGeometry();return lN(!t||"Point"===t.getType(),"The default `geometryFunction` can only handle `Point` or null geometries"),t},this.createCustomCluster_=e.createCluster,this.source=null,this.boundRefresh_=this.refresh.bind(this),this.updateDistance(this.distance,this.minDistance),this.setSource(e.source||null)}clear(e){this.features.length=0,super.clear(e)}getDistance(){return this.distance}getSource(){return this.source}loadFeatures(e,t,n){var r;null===(r=this.source)||void 0===r||r.loadFeatures(e,t,n),t!==this.resolution&&(this.resolution=t,this.refresh())}setDistance(e){this.updateDistance(e,this.minDistance)}setMinDistance(e){this.updateDistance(this.distance,e)}getMinDistance(){return this.minDistance}setSource(e){this.source&&this.source.removeEventListener(BR,this.boundRefresh_),this.source=e,e&&e.addEventListener(BR,this.boundRefresh_),this.refresh()}refresh(){this.clear(),this.cluster(),this.addFeatures(this.features)}updateDistance(e,t){const n=0===e?0:Math.min(t,e)/e,r=e!==this.distance||this.interpolationRatio!==n;this.distance=e,this.minDistance=t,this.interpolationRatio=n,r&&this.refresh()}cluster(){if(void 0===this.resolution||!this.source)return;const e=[1/0,1/0,-1/0,-1/0],t=this.distance*this.resolution,n=this.source.getFeatures(),r={};for(let i=0,o=n.length;i<o;i++){const o=n[i];if(!(xD(o)in r)){const n=this.geometryFunction(o);if(n){XM(n.getCoordinates(),e),NM(e,t,e);const i=this.source.getFeaturesInExtent(e).filter((function(e){const t=xD(e);return!(t in r)&&(r[t]=!0,!0)}));this.features.push(this.createCluster(i,e))}}}}createCluster(e,t){const n=[0,0];for(let s=e.length-1;s>=0;--s){const t=this.geometryFunction(e[s]);t?KO(n,t.getCoordinates()):e.splice(s,1)}eR(n,1/e.length);const r=iO(t),i=this.interpolationRatio,o=new dK([n[0]*(1-i)+r[0]*i,n[1]*(1-i)+r[1]*i]);return this.createCustomCluster_?this.createCustomCluster_(o,e):new P0({geometry:o,features:e})}},H5="translatestart",q5="translating",X5="translateend";class Y5 extends QR{constructor(e,t,n,r,i){super(e),this.features=t,this.coordinate=n,this.startCoordinate=r,this.mapBrowserEvent=i}}const K5=class extends JJ{constructor(e){let t;if(super(e=e||{}),this.on,this.once,this.un,this.lastCoordinate_=null,this.startCoordinate_=null,this.features_=void 0!==e.features?e.features:null,e.layers&&!this.features_)if("function"===typeof e.layers)t=e.layers;else{const n=e.layers;t=function(e){return n.includes(e)}}else t=sD;this.layerFilter_=t,this.filter_=e.filter&&!this.features_?e.filter:sD,this.hitTolerance_=e.hitTolerance?e.hitTolerance:0,this.condition_=e.condition?e.condition:nQ,this.lastFeature_=null,this.addChangeListener(XJ,this.handleActiveChanged_)}handleDownEvent(e){if(!e.originalEvent||!this.condition_(e))return!1;if(this.lastFeature_=this.featuresAtPixel_(e.pixel,e.map),!this.lastCoordinate_&&this.lastFeature_){this.startCoordinate_=e.coordinate,this.lastCoordinate_=e.coordinate,this.handleMoveEvent(e);const t=this.features_||new QX([this.lastFeature_]);return this.dispatchEvent(new Y5(H5,t,e.coordinate,this.startCoordinate_,e)),!0}return!1}handleUpEvent(e){if(this.lastCoordinate_){this.lastCoordinate_=null,this.handleMoveEvent(e);const t=this.features_||new QX([this.lastFeature_]);return this.dispatchEvent(new Y5(X5,t,e.coordinate,this.startCoordinate_,e)),this.startCoordinate_=null,!0}return!1}handleDragEvent(e){if(this.lastCoordinate_){const t=e.coordinate,n=e.map.getView().getProjection(),r=NR(t,n),i=NR(this.lastCoordinate_,n),o=r[0]-i[0],s=r[1]-i[1],a=this.features_||new QX([this.lastFeature_]),l=RR();a.forEach((function(e){const t=e.getGeometry();l?(t.transform(l,n),t.translate(o,s),t.transform(n,l)):t.translate(o,s),e.setGeometry(t)})),this.lastCoordinate_=t,this.dispatchEvent(new Y5(q5,a,t,this.startCoordinate_,e))}}handleMoveEvent(e){const t=e.map.getViewport();this.featuresAtPixel_(e.pixel,e.map)?(t.classList.remove(this.lastCoordinate_?"ol-grab":"ol-grabbing"),t.classList.add(this.lastCoordinate_?"ol-grabbing":"ol-grab")):t.classList.remove("ol-grab","ol-grabbing")}featuresAtPixel_(e,t){return t.forEachFeatureAtPixel(e,((e,t)=>{if(e instanceof P0&&this.filter_(e,t)&&(!this.features_||this.features_.getArray().includes(e)))return e}),{layerFilter:this.layerFilter_,hitTolerance:this.hitTolerance_})}getHitTolerance(){return this.hitTolerance_}setHitTolerance(e){this.hitTolerance_=e}setMap(e){const t=this.getMap();super.setMap(e),this.updateState_(t)}handleActiveChanged_(){this.updateState_(null)}updateState_(e){let t=this.getMap();const n=this.getActive();if((!t||!n)&&(t=t||e,t)){t.getViewport().classList.remove("ol-grab","ol-grabbing")}}},Z5=e=>{const t=(0,n.useContext)(V3);if(!t)return(0,Ae.jsx)(Ae.Fragment,{});const{map:r,areMapInteractionsReady:i}=t,{points:o,visible:s=!0,zIndex:a=2,draggable:l,draggableIds:c,clickable:u,onPointTranslated:d,onPointTranslatedEnd:h,onPointClicked:p,onPointHovered:f,hitTolerance:g=25,cluster:m}=e,y=(0,n.useRef)(new T1({source:new W5({distance:null!==m&&void 0!==m&&m.active?20:0,source:new Y1({}),createCluster:(e,t)=>{const n=new P0({geometry:e,features:t});return n.setId(t.map((e=>"".concat(e.getId()))).join(",")),n}})}));(0,n.useEffect)((()=>{const e=y.current;return e.setStyle((e=>{var t;const n=e.get("features").length;if(1===n){var r,i,o,s;const t=null===(r=e.getProperties())||void 0===r||null===(i=r.features)||void 0===i||null===(o=i[0])||void 0===o||null===(s=o.getStyle)||void 0===s?void 0:s.call(o);if("function"!==typeof t)return;return t()}return new l$({image:new JZ({radius:10,stroke:new n$({color:"#fff"}),fill:new e$({color:null!==(t=null===m||void 0===m?void 0:m.backgroundColor)&&void 0!==t?t:jp})}),text:new p$({text:n.toString(),fill:new e$({color:"#fff"})})})})),r.addLayer(e),()=>{r.removeLayer(e)}}),[r,m]),(0,n.useEffect)((()=>{var e,t,n,r;const i=(e=>e.map(v3))(o).map((e=>(e.set("zIndex",a),e.set("originalStyle",e.getStyle()),e)));null===(e=y.current.getSource())||void 0===e||null===(t=e.getSource())||void 0===t||t.clear(),null===(n=y.current.getSource())||void 0===n||null===(r=n.getSource())||void 0===r||r.addFeatures(i)}),[o,a]),(0,n.useEffect)((()=>{y.current.setZIndex(a)}),[a]),(0,n.useEffect)((()=>{y.current.setVisible(s)}),[s]),(0,n.useEffect)((()=>{if(!i)return;if(!l)return;const e=new K5({filter:e=>{var t,n,r,i,o;return(null!==(t=null!==c&&void 0!==c?c:null===(n=y.current)||void 0===n||null===(r=n.getSource())||void 0===r||null===(i=r.getSource())||void 0===i||null===(o=i.getFeatures())||void 0===o?void 0:o.map((e=>"".concat(e.getId()))))&&void 0!==t?t:[]).includes("".concat(e.getId()))},hitTolerance:g});return e.on("translating",(e=>null===d||void 0===d?void 0:d(e))),e.on("translateend",(e=>{var t;return null!==(t=null===h||void 0===h?void 0:h(e))&&void 0!==t?t:null===d||void 0===d?void 0:d(e)})),r.addInteraction(e),()=>{e&&r.removeInteraction(e)}}),[r,i,l,c,g]);const v=(0,n.useCallback)((e=>{var t,n,i,s;if(!u)return;const a=r.getFeaturesAtPixel(e.pixel,{hitTolerance:g}),l=o.map((e=>e.id)),c=a.find((e=>l.includes("".concat(e.getId()))));if(1!==(null===c||void 0===c||null===(t=c.getProperties())||void 0===t||null===(n=t.features)||void 0===n?void 0:n.length))return;const d=null===c||void 0===c||null===(i=c.getProperties())||void 0===i||null===(s=i.features)||void 0===s?void 0:s[0];if(!d)return;const h=d.getGeometry();if(!h||!K3(h))return;const f=h.getCoordinates(),m=r.getPixelFromCoordinate(f),y={x:m[0],y:m[1]};null===p||void 0===p||p(d,y)}),[r,o,u,g,p]);return(0,n.useEffect)((()=>(r.on("click",v),()=>{r.un("click",v)})),[r,o,v]),(0,n.useEffect)((()=>{let e=null,t=null;const n=n=>{let i=!1;const o=n.pixel;r.forEachFeatureAtPixel(o,(t=>{var n,r,o,s;const a="".concat(t.getId()),l=null!==(n=null===(r=y.current)||void 0===r||null===(o=r.getSource())||void 0===o||null===(s=o.getSource())||void 0===s?void 0:s.getFeatureById(a))&&void 0!==n?n:null;if(l)return i=!0,e=l,!0}),{layerFilter:e=>e===y.current,hitTolerance:g}),i||(e=null);const s=e?"".concat(e.getId()):null;if(t!==s){if(t=s,!e)return void(null===f||void 0===f||f(null));const n=e.getGeometry();if(!K3(n))return;const r=x3("".concat(e.getId()),n,d3.point);null===f||void 0===f||f(r)}};return r.on("pointermove",n),()=>{r.un("pointermove",n)}}),[r,g,f]),(0,Ae.jsx)(Ae.Fragment,{})},$5="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADAAAAAwCAYAAABXAvmHAAAACXBIWXMAAAsTAAALEwEAmpwYAAAEjklEQVRogdVYTWhcVRg9331p/qpm0mJBSN7EtkKaLBJFoyUpZGWaDBFaSbFEF124SKGZRHQjFIcSdzaTH6FWkBahokE3qZPE1EKFQNsgWSkFUZJM0tTSRYloombePS4Sk3mPmclM8u5iDgyP973v3nPO/e59c+8DDKL98lJp20B8yiSHMtm5s+q0Amhsj869YIrDqAGCTQDgiDSZ4jBqAED9+kXqTREYNSBAHQBw42oCxgy8evF+JYByABCgtjnCAhM8xgzssZyapNui4sDSIRM85qaQMOgmStgmaIwZIKUy071fMLmIXSMuYH5VAKBrxEXlXQXENeL0VMQvmDFACoAKTyx/KvDa4OwBAEXuaB5NoYQuSCW29MTHi/v95jJiQBT2E7wg1DWJtcInlFL1JIf/dfQzvnP53eEmSGkbXDwJ8AgVpse77UkTNEYMRCJU0+WLoyBDm0SCS7GwfdZvLl+n0P8btunyeGeyeAAg0RXqjx/rGKG18ZbyBb4ZOB6drSoJLNwAKUJJuX3WSur+uD9/oG1wcdSvBe3LSISiCycp/AxAwNHynGXpo6B87s3TwmOKKAFkEsCiFp6eCAd3dWbeVQWar8wWhwbiwxR+AyAAAErxVMNj+xpEYsm5Irg0EQ5OQXBqI1ShKLdaB+LvRyLcsY4dV6Clf+GwpTAC8HnPo39E2Bjrtme8b6HW/vl2UTKaorsbBUi8Ndpz8GGuOnZkIDQYf4Pkp4A8mSZlDeC7FjmVsNZ+tZySWg2nBSIfZOj2dy18cyIcvJmLlpwMNF+ZLd67rIYIeTttEjGplQxapENgYpOIugZK1ZEIA3glXWsh+l5aroxEIqKz0ZT13GsdevB06bL1fRrxKwA+EeqasV67ZSJcOaZJd3WUlMbC9pdjPfZRpeVlAF8ASHj6EQrO3w0sfN1+eanUNwPtw7PVotfuAGh0PaDMi+A9KWTFWI/dFeuturelV5Ulp2rNzftv36mcHuuxOwssBAH0AXjkcgGccFYTP7RE57bdemxr4PjgfJPjWLcBHNyUDbkplNdXlisOx8L2R7GzwcfediRdBixllXlzRs/ZS2M99vmVMscGcQbAnaTHL1qi7oaic0cy6cv4qaOlf75WUWIAngLwo5DXEuBX3/VWPcjUDgAoLJOkJZZcAS9unXn2bwBXAVxtHYofEo3TgHQCrKaoyZboXEM6zowGCoVFjqguSzm3r5+rmt1OdDKEqgzCrYBKbyAZ4932bwD6QH4YGpivhpIGaGtvuvyMBq73Vs0AmMlOsgfiFixUWRnYaiCMAfew/ksLc59VAJdgSnYVyBXGDAjELZjILwMEA55IIHXm7mCwAp4RF8mvCsBrIK+m0PqJy1OBPDLQEV0sBrDHFcynCvxVlEglNn8M6LXCVGKLOyI/F/rNZcRAgdYpR/vPfft8r4KZCqjUBnQi5dTaFcx8Wtw44HthGfgzM2KAaTZu2vJ/P2TGQJqNm6Vz3JFmASMGVJp3PrM8E+TE5XeHAEDFlZRxImV8NzBi4GHxo4sEL0DwC4BVAD8BDI+HK0f85voParyWFJbzCwkAAAAASUVORK5CYII=";const J5=__webpack_require__.p+"static/media/solar.9cc0af300b3bb74ebaa5f1c09ee5532c.svg",Q5=e=>{const{type:t}=e,[r,i]=(0,n.useState)(!1),[o,s]=(0,n.useState)([]);(0,n.useEffect)((()=>{a()}),[]);const a=async()=>{i(!0);const e=await(async()=>{const e=await Ey("/assets/assets-with-location",{method:"GET"});if(200===e.status)return await e.json();return!1})();s(e),i(!1)},l=(0,n.useMemo)((()=>o.filter((e=>e&&e.type===HB.WIND)).map((e=>{var t,n;return{id:e.id,coords:{lat:null===(t=e.location)||void 0===t?void 0:t.lat,lng:null===(n=e.location)||void 0===n?void 0:n.lng},type:"icon",iconUrl:$5,displayText:e.name,textStyle:{offsetY:30}}})).filter(W3)),[o]),c=(0,n.useMemo)((()=>o.filter((e=>e&&e.type===HB.SOLAR)).map((e=>{var t;return{id:e.id,coords:T3(null!==(t=e.area)&&void 0!==t?t:[]),type:"icon",iconUrl:J5,displayText:e.name,textStyle:{offsetY:20}}})).filter(W3)),[o]),u=(0,n.useMemo)((()=>O3([...l,...c].map((e=>e.coords)),"small")),[l,c]),d=e=>{""!==e&&window.open("/assets/".concat(e),"_blank")};return r?(0,Ae.jsx)($y,{}):(0,Ae.jsx)(wp,{width:"100%",height:"100%",children:(0,Ae.jsxs)(U5,{bounds:u,provider:mL.OSM,children:[(void 0===t||t===HB.WIND)&&(0,Ae.jsx)(Z5,{clickable:!0,points:l,onPointClicked:e=>d("".concat(e.getId())),cluster:{active:!0,backgroundColor:jp},hitTolerance:5}),(void 0===t||t===HB.SOLAR)&&(0,Ae.jsx)(Z5,{clickable:!0,points:c,onPointClicked:e=>d("".concat(e.getId())),cluster:{active:!0,backgroundColor:Hp},hitTolerance:5})]})})},e8=e=>{var t;let{type:r,mode:i}=e;const o=on(),s=m(),a=b(Of),[l,c]=(0,n.useState)(!1),[u,d]=(0,n.useState)(0),[h,p]=(0,n.useState)(""),[f,g]=(0,n.useState)(""),y=null!==(t=null!==r&&void 0!==r?r:a.currentType)&&void 0!==t?t:HB.WIND,[v,_]=(0,n.useState)("");(0,n.useEffect)((()=>{d(0),l&&a.all.length?s(xf(y)):(IT(y),c(!0))}),[r]),(0,n.useEffect)((()=>{d("defects"===i?1:"map"===i?2:0)}),[i]);let x=h?a.all.filter((e=>e.type===a.currentType)).filter((e=>Dy(e.name,h)||e.company&&Dy(e.company,h))):a.all.filter((e=>e.type===a.currentType));x=v&&"All"!==v?x.filter((e=>e.company===v)):x;Vy(a.all.filter((e=>e.type===a.currentType)),"company").unshift("All");return(0,Ae.jsx)(PF,{pageTitle:"Assets ".concat(y),left:(0,Ae.jsx)(CF,{title:My(y)+" Farms"}),center:(0,Ae.jsx)(jF,{responsive:!0,btnVersion:Wy(),filter:e=>0===u?p(e):g(e)}),right:(0,Ae.jsxs)(ws,{container:!0,wrap:"nowrap",justifyContent:"end",alignItems:"stretch",columnGap:"1rem",children:[Eo()&&(0,Ae.jsx)(ws,{item:!0,flex:1,children:(0,Ae.jsx)(sz,{pushRight:!0,onCompanyFilterSelected:e=>{_(e||"")}})}),!Wy()&&SB()&&(0,Ae.jsx)(ws,{item:!0,children:(0,Ae.jsx)(ev,{fullHeight:!0,color:"primary",label:"New farm",onClick:()=>o.push("/assets/create".concat(y))})})]}),children:Wy()?(0,Ae.jsx)(wp,{padding:"0.5rem",height:"100%",children:(0,Ae.jsx)(lU,{assets:x,type:r})}):(0,Ae.jsxs)(ws,{container:!0,direction:"column",wrap:"nowrap",height:"100%",children:[(0,Ae.jsx)(ws,{item:!0,paddingX:"1rem",children:(0,Ae.jsx)(HX,{tab1Label:"Assets",tab:u,changeTab:e=>(e=>{switch(e){case 0:o.push("/assets-".concat(r));break;case 1:o.push("/defects-".concat(r));break;case 2:o.push("/global-map-".concat(r))}})(e),globalAssets:!0})}),0===u&&(0,Ae.jsx)(ws,{item:!0,paddingX:"1rem",children:(0,Ae.jsx)(lU,{assets:x,type:r})}),1===u&&(0,Ae.jsx)(ws,{item:!0,height:"0",flex:1,children:(0,Ae.jsx)(uX,{type:y,mode:"Assets",search:f})}),2===u&&(0,Ae.jsx)(ws,{item:!0,width:"100%",flex:1,children:(0,Ae.jsx)(Q5,{type:r})})]})})};var t8=__webpack_require__(61128),n8=__webpack_require__(54096),r8=__webpack_require__(84908);const i8=e=>{const[t,r]=(0,n.useState)([]),i=e=>{const n=[...t];n[e]=null,r(n)};return(0,Ae.jsx)("div",{children:e.buttons.map(((e,n)=>(!e.test||e.test&&e.test())&&(0,Ae.jsxs)("span",{children:[(0,Ae.jsx)(ev,{disabled:e.disable,color:e.color,onClick:e.tooltip?e=>((e,n)=>{const i=[...t];i[n]=e.currentTarget,r(i)})(e,n):e.action,label:e.label,loading:!!e.loading,style:{margin:"0 0.1rem"},trailingIcon:e.trailingIcon}),e.tooltip&&(0,Ae.jsx)(Ud,{id:"simple-popover",open:Boolean(t[n]),anchorEl:t[n],onClose:()=>i(n),anchorOrigin:{vertical:"bottom",horizontal:"center"},transformOrigin:{vertical:"top",horizontal:"center"},children:e.toolTipElement&&e.toolTipElement(i)})]},n)))})};function o8(e){return(0,hs.c)("MuiCardHeader",e)}const s8=(0,ds.c)("MuiCardHeader",["root","avatar","action","content","title","subheader"]),a8=["action","avatar","className","component","disableTypography","subheader","subheaderTypographyProps","title","titleTypographyProps"],l8=(0,cs.cp)("div",{name:"MuiCardHeader",slot:"Root",overridesResolver:(e,t)=>(0,d.c)({["& .".concat(s8.title)]:t.title,["& .".concat(s8.subheader)]:t.subheader},t.root)})({display:"flex",alignItems:"center",padding:16}),c8=(0,cs.cp)("div",{name:"MuiCardHeader",slot:"Avatar",overridesResolver:(e,t)=>t.avatar})({display:"flex",flex:"0 0 auto",marginRight:16}),u8=(0,cs.cp)("div",{name:"MuiCardHeader",slot:"Action",overridesResolver:(e,t)=>t.action})({flex:"0 0 auto",alignSelf:"flex-start",marginTop:-4,marginRight:-8,marginBottom:-4}),d8=(0,cs.cp)("div",{name:"MuiCardHeader",slot:"Content",overridesResolver:(e,t)=>t.content})({flex:"1 1 auto"}),h8=n.forwardRef((function(e,t){const n=(0,Oe.c)({props:e,name:"MuiCardHeader"}),{action:r,avatar:i,className:o,component:s="div",disableTypography:a=!1,subheader:l,subheaderTypographyProps:c,title:u,titleTypographyProps:h}=n,p=(0,Tt.c)(n,a8),f=(0,d.c)({},n,{component:s,disableTypography:a}),g=(e=>{const{classes:t}=e;return(0,ls.c)({root:["root"],avatar:["avatar"],action:["action"],content:["content"],title:["title"],subheader:["subheader"]},o8,t)})(f);let m=u;null==m||m.type===vu||a||(m=(0,Ae.jsx)(vu,(0,d.c)({variant:i?"body2":"h5",className:g.title,component:"span",display:"block"},h,{children:m})));let y=l;return null==y||y.type===vu||a||(y=(0,Ae.jsx)(vu,(0,d.c)({variant:i?"body2":"body1",className:g.subheader,color:"text.secondary",component:"span",display:"block"},c,{children:y}))),(0,Ae.jsxs)(l8,(0,d.c)({className:(0,ts.c)(g.root,o),as:s,ref:t,ownerState:f},p,{children:[i&&(0,Ae.jsx)(c8,{className:g.avatar,ownerState:f,children:i}),(0,Ae.jsxs)(d8,{className:g.content,ownerState:f,children:[m,y]}),r&&(0,Ae.jsx)(u8,{className:g.action,ownerState:f,children:r})]}))})),p8=Zo()(((e,t)=>({cardHeader:{background:"#eceff1",padding:10,"& .MuiCardHeader-action":{marginTop:0}},accordion:{width:"100%","&:before":{backgroundColor:"transparent"},"& .MuiAccordionSummary-content":{margin:"".concat(t?0:"12px"," 0")}},accordionHeader:{backgroundColor:"#eceff1",flexDirection:"row-reverse",padding:0,"& #header":{display:"flex",alignItems:"center",width:"100%",columnGap:".5rem"},"& .MuiAccordionSummary-expandIconWrapper":{margin:0,padding:"12px"}},accordionAction:{flex:1,display:"flex",justifyContent:"flex-end"},accordionContent:{display:"block",padding:0}}))),f8=e=>{var t,n,r,i,o,s;const{childComp:a,title:l}=e,{classes:c}=p8(null!==(t=e.noMargin)&&void 0!==t&&t),u=null!==(n=e.withAccordion)&&void 0!==n&&n,d=null!==(r=e.withCheckbox)&&void 0!==r&&r,h=null===(i=e.defaultExpanded)||void 0===i||i;return u?(0,Ae.jsx)(Ae.Fragment,{children:(0,Ae.jsxs)(Ph,{className:c.accordion,defaultExpanded:h,children:[(0,Ae.jsx)(Th,{className:c.accordionHeader,expandIcon:(0,Ae.jsx)(cp.c,{}),"aria-controls":"panel-content",id:"panel-header",children:(0,Ae.jsxs)("div",{id:"header",children:[d&&(0,Ae.jsx)(lj,{checked:e.checked,onClick:e=>e.stopPropagation(),onChange:t=>{var n;return null===(n=e.onCheckboxChanged)||void 0===n?void 0:n.call(e,t.target.checked)}}),(0,Ae.jsx)(vu,{variant:"h6",lineHeight:"1rem",children:l}),(0,Ae.jsx)("div",{onClick:e=>{e.stopPropagation()},className:c.accordionAction,children:null!==(s=e.action)&&void 0!==s?s:null})]})}),(0,Ae.jsx)(Dh,{className:c.accordionContent,children:a})]})}):(0,Ae.jsxs)(hj,{children:[(0,Ae.jsx)(h8,{className:c.cardHeader,title:l,titleTypographyProps:{variant:"h6"},action:null!==(o=e.action)&&void 0!==o?o:null}),a]})};var g8=__webpack_require__(38280);const m8=(0,n.createContext)({assetId:""}),y8=(e,t)=>[{id:"inspectionDate",label:"Inspection Date"},{id:"subAssetName",label:"Subasset name"},{id:"status",label:"Status"},{id:"type",label:"Type"},{id:"photos",label:"Photos uploaded/taken"},{id:"viewedPercentage",label:"Viewed %"},...e?[]:[{id:"defectsNb",numeric:!0,label:"Defects"}],...e?[]:[{id:"notes",label:"Notes",disablePadding:!0}],...t&&!e?[{id:"aiStatus",label:"AI Status"}]:[],{id:"download",label:"PDF report"}],v8=(e,t)=>[{name:"id",hidden:!0},{name:"inspectionDate",type:"date"},{name:"subAssetName"},{name:"status",type:"specific"},{name:"type"},{name:"photos",type:"specific"},{name:"viewedPercentage",trailer:" %"},...e?[]:[{name:"defectsNb"}],...e?[]:[{name:"notes",type:"specific"}],...t&&!e?[{name:"aiStatus",type:"specific"}]:[],{name:"download",type:"specific"}],_8=function(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return[...t?[{id:"sync",label:"Offline ready",noSort:!0,disablePadding:!0}]:[],{id:"inspectionDate",label:"Inspection Date"},{id:"subAssetName",label:"Subasset name"},{id:"status",label:"Status"},{id:"photos",label:"Photos uploaded/taken"},...e?[]:[{id:"defectsNb",numeric:!0,label:"Defects"}],...e?[]:[{id:"notes",label:"Notes",disablePadding:!0}],...e?[]:[{id:"aiStatus",label:"AI Status"}],...t?[]:[{id:"download",label:"PDF report"}]]},b8=function(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return[...t?[{name:"sync",type:"specific"}]:[],{name:"id",hidden:!0},{name:"inspectionDate",type:"date"},{name:"subAssetName"},{name:"status",type:"specific"},{name:"photos",type:"specific"},...e?[]:[{name:"defectsNb"}],...e?[]:[{name:"notes",type:"specific"}],...e?[]:[{name:"aiStatus",type:"specific"}],...t?[]:[{name:"download",type:"specific"}]]},x8=e=>[{id:"inspectionDate",label:"Inspection Date"},{id:"subAssetName",label:"Subasset name"},{id:"status",label:"Status"},{id:"photos",label:"Photos uploaded/taken"},...e?[]:[{id:"defectsNb",numeric:!0,label:"# Annotations"}],...e?[]:[{id:"notes",label:"Notes",disablePadding:!0}],...e?[]:[{id:"orthophotoStatus",label:"Orthophoto"}]],S8=e=>[{name:"id",hidden:!0},{name:"inspectionDate",type:"date"},{name:"subAssetName"},{name:"status",type:"specific"},{name:"photos",type:"specific"},...e?[]:[{name:"defectsNb"}],...e?[]:[{name:"notes",type:"specific"}],...e?[]:[{name:"orthophotoStatus",type:"specific"}]],w8=function(e,t){let n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=arguments.length>3&&void 0!==arguments[3]&&arguments[3];return[RC.WIND,RC.BLADES,RC.TOWER].includes(t)?{headCells:y8(e,r),contentCells:v8(e,r)}:t===RC.SOLAR?{headCells:_8(e,n),contentCells:b8(e,n)}:t===RC.SOLAR_CONSTRUCTION?{headCells:x8(e),contentCells:S8(e)}:{headCells:[],contentCells:[]}};var E8=function(e){return e.planned="Planned",e.Planned="Planned",e.inspected="Upload",e.Upload="Upload",e.uploaded="Annotate",e.Annotate="Annotate",e.annotated="Analyze",e.Analyze="Analyze",e.analyzed="Report",e.Report="Report",e.deleted="Deleted",e.Deleted="Deleted",e.ongoing="Ongoing",e.Ongoing="Ongoing",e.ongoingAnalysis="Ongoing Analysis",e}(E8||{}),P8=function(e){return e.planned="orange",e.Planned="orange",e.inspected="purple",e.Upload="purple",e.uploaded="navy",e.Annotate="navy",e.annotated="#003257",e.Analyze="#003257",e.analyzed="green",e.Report="green",e.deleted="gray",e.Deleted="gray",e.ongoing="orange",e.Ongoing="orange",e.ongoingAnalysis="#00A6FF",e}(P8||{});const C8=e=>{const t=E8[e.status],n=P8[e.status];return(0,Ae.jsx)(nA,{color:n,label:t})};var A8=function(e,t){return A8=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},A8(e,t)};function k8(e){var t="function"===typeof Symbol&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&"number"===typeof e.length)return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}var j8,I8="undefined"!==typeof globalThis?globalThis:"undefined"!==typeof window?window:"undefined"!==typeof __webpack_require__.g?__webpack_require__.g:"undefined"!==typeof self?self:{},G8=G8||{},T8=I8||self;function M8(){}function O8(e){var t=typeof e;return"array"==(t="object"!=t?t:e?Array.isArray(e)?"array":t:"null")||"object"==t&&"number"==typeof e.length}function R8(e){var t=typeof e;return"object"==t&&null!=e||"function"==t}var D8="closure_uid_"+(1e9*Math.random()>>>0),N8=0;function L8(e,t,n){return e.call.apply(e.bind,arguments)}function V8(e,t,n){if(!e)throw Error();if(2<arguments.length){var r=Array.prototype.slice.call(arguments,2);return function(){var n=Array.prototype.slice.call(arguments);return Array.prototype.unshift.apply(n,r),e.apply(t,n)}}return function(){return e.apply(t,arguments)}}function F8(e,t,n){return(F8=Function.prototype.bind&&-1!=Function.prototype.bind.toString().indexOf("native code")?L8:V8).apply(null,arguments)}function z8(e,t){var n=Array.prototype.slice.call(arguments,1);return function(){var t=n.slice();return t.push.apply(t,arguments),e.apply(this,t)}}function B8(e,t){function n(){}n.prototype=t.prototype,e.Z=t.prototype,e.prototype=new n,e.prototype.constructor=e,e.Vb=function(e,n,r){for(var i=Array(arguments.length-2),o=2;o<arguments.length;o++)i[o-2]=arguments[o];return t.prototype[n].apply(e,i)}}function U8(){this.s=this.s,this.o=this.o}var W8={};U8.prototype.s=!1,U8.prototype.na=function(){if(!this.s&&(this.s=!0,this.M(),0)){var e=function(e){return Object.prototype.hasOwnProperty.call(e,D8)&&e[D8]||(e[D8]=++N8)}(this);delete W8[e]}},U8.prototype.M=function(){if(this.o)for(;this.o.length;)this.o.shift()()};var H8=Array.prototype.indexOf?function(e,t){return Array.prototype.indexOf.call(e,t,void 0)}:function(e,t){if("string"===typeof e)return"string"!==typeof t||1!=t.length?-1:e.indexOf(t,0);for(var n=0;n<e.length;n++)if(n in e&&e[n]===t)return n;return-1},q8=Array.prototype.forEach?function(e,t,n){Array.prototype.forEach.call(e,t,n)}:function(e,t,n){for(var r=e.length,i="string"===typeof e?e.split(""):e,o=0;o<r;o++)o in i&&t.call(n,i[o],o,e)};function X8(e){return Array.prototype.concat.apply([],arguments)}function Y8(e){var t=e.length;if(0<t){for(var n=Array(t),r=0;r<t;r++)n[r]=e[r];return n}return[]}function K8(e){return/^[\s\xa0]*$/.test(e)}var Z8,$8=String.prototype.trim?function(e){return e.trim()}:function(e){return/^[\s\xa0]*([\s\S]*?)[\s\xa0]*$/.exec(e)[1]};function J8(e,t){return-1!=e.indexOf(t)}function Q8(e,t){return e<t?-1:e>t?1:0}e:{var e9=T8.navigator;if(e9){var t9=e9.userAgent;if(t9){Z8=t9;break e}}Z8=""}function n9(e,t,n){for(var r in e)t.call(n,e[r],r,e)}function r9(e){var t={};for(var n in e)t[n]=e[n];return t}var i9="constructor hasOwnProperty isPrototypeOf propertyIsEnumerable toLocaleString toString valueOf".split(" ");function o9(e,t){for(var n,r,i=1;i<arguments.length;i++){for(n in r=arguments[i])e[n]=r[n];for(var o=0;o<i9.length;o++)n=i9[o],Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}}function s9(e){return s9[" "](e),e}s9[" "]=M8;var a9,l9=J8(Z8,"Opera"),c9=J8(Z8,"Trident")||J8(Z8,"MSIE"),u9=J8(Z8,"Edge"),d9=u9||c9,h9=J8(Z8,"Gecko")&&!(J8(Z8.toLowerCase(),"webkit")&&!J8(Z8,"Edge"))&&!(J8(Z8,"Trident")||J8(Z8,"MSIE"))&&!J8(Z8,"Edge"),p9=J8(Z8.toLowerCase(),"webkit")&&!J8(Z8,"Edge");function f9(){var e=T8.document;return e?e.documentMode:void 0}e:{var g9="",m9=function(){var e=Z8;return h9?/rv:([^\);]+)(\)|;)/.exec(e):u9?/Edge\/([\d\.]+)/.exec(e):c9?/\b(?:MSIE|rv)[: ]([^\);]+)(\)|;)/.exec(e):p9?/WebKit\/(\S+)/.exec(e):l9?/(?:Version)[ \/]?(\S+)/.exec(e):void 0}();if(m9&&(g9=m9?m9[1]:""),c9){var y9=f9();if(null!=y9&&y9>parseFloat(g9)){a9=String(y9);break e}}a9=g9}var v9,_9={};function b9(){return function(e){var t=_9;return Object.prototype.hasOwnProperty.call(t,9)?t[9]:t[9]=e(9)}((function(){for(var e=0,t=$8(String(a9)).split("."),n=$8("9").split("."),r=Math.max(t.length,n.length),i=0;0==e&&i<r;i++){var o=t[i]||"",s=n[i]||"";do{if(o=/(\d*)(\D*)(.*)/.exec(o)||["","","",""],s=/(\d*)(\D*)(.*)/.exec(s)||["","","",""],0==o[0].length&&0==s[0].length)break;e=Q8(0==o[1].length?0:parseInt(o[1],10),0==s[1].length?0:parseInt(s[1],10))||Q8(0==o[2].length,0==s[2].length)||Q8(o[2],s[2]),o=o[3],s=s[3]}while(0==e)}return 0<=e}))}if(T8.document&&c9){var x9=f9();v9=x9||(parseInt(a9,10)||void 0)}else v9=void 0;var S9=v9,w9=function(){if(!T8.addEventListener||!Object.defineProperty)return!1;var e=!1,t=Object.defineProperty({},"passive",{get:function(){e=!0}});try{T8.addEventListener("test",M8,t),T8.removeEventListener("test",M8,t)}catch(Cn){}return e}();function E9(e,t){this.type=e,this.g=this.target=t,this.defaultPrevented=!1}function P9(e,t){if(E9.call(this,e?e.type:""),this.relatedTarget=this.g=this.target=null,this.button=this.screenY=this.screenX=this.clientY=this.clientX=0,this.key="",this.metaKey=this.shiftKey=this.altKey=this.ctrlKey=!1,this.state=null,this.pointerId=0,this.pointerType="",this.i=null,e){var n=this.type=e.type,r=e.changedTouches&&e.changedTouches.length?e.changedTouches[0]:null;if(this.target=e.target||e.srcElement,this.g=t,t=e.relatedTarget){if(h9){e:{try{s9(t.nodeName);var i=!0;break e}catch(Pn){}i=!1}i||(t=null)}}else"mouseover"==n?t=e.fromElement:"mouseout"==n&&(t=e.toElement);this.relatedTarget=t,r?(this.clientX=void 0!==r.clientX?r.clientX:r.pageX,this.clientY=void 0!==r.clientY?r.clientY:r.pageY,this.screenX=r.screenX||0,this.screenY=r.screenY||0):(this.clientX=void 0!==e.clientX?e.clientX:e.pageX,this.clientY=void 0!==e.clientY?e.clientY:e.pageY,this.screenX=e.screenX||0,this.screenY=e.screenY||0),this.button=e.button,this.key=e.key||"",this.ctrlKey=e.ctrlKey,this.altKey=e.altKey,this.shiftKey=e.shiftKey,this.metaKey=e.metaKey,this.pointerId=e.pointerId||0,this.pointerType="string"===typeof e.pointerType?e.pointerType:C9[e.pointerType]||"",this.state=e.state,this.i=e,e.defaultPrevented&&P9.Z.h.call(this)}}E9.prototype.h=function(){this.defaultPrevented=!0},B8(P9,E9);var C9={2:"touch",3:"pen",4:"mouse"};P9.prototype.h=function(){P9.Z.h.call(this);var e=this.i;e.preventDefault?e.preventDefault():e.returnValue=!1};var A9="closure_listenable_"+(1e6*Math.random()|0),k9=0;function j9(e,t,n,r,i){this.listener=e,this.proxy=null,this.src=t,this.type=n,this.capture=!!r,this.ia=i,this.key=++k9,this.ca=this.fa=!1}function I9(e){e.ca=!0,e.listener=null,e.proxy=null,e.src=null,e.ia=null}function G9(e){this.src=e,this.g={},this.h=0}function T9(e,t){var n=t.type;if(n in e.g){var r,i=e.g[n],o=H8(i,t);(r=0<=o)&&Array.prototype.splice.call(i,o,1),r&&(I9(t),0==e.g[n].length&&(delete e.g[n],e.h--))}}function M9(e,t,n,r){for(var i=0;i<e.length;++i){var o=e[i];if(!o.ca&&o.listener==t&&o.capture==!!n&&o.ia==r)return i}return-1}G9.prototype.add=function(e,t,n,r,i){var o=e.toString();(e=this.g[o])||(e=this.g[o]=[],this.h++);var s=M9(e,t,r,i);return-1<s?(t=e[s],n||(t.fa=!1)):((t=new j9(t,this.src,o,!!r,i)).fa=n,e.push(t)),t};var O9="closure_lm_"+(1e6*Math.random()|0),R9={};function D9(e,t,n,r,i){if(r&&r.once)return L9(e,t,n,r,i);if(Array.isArray(t)){for(var o=0;o<t.length;o++)D9(e,t[o],n,r,i);return null}return n=H9(n),e&&e[A9]?e.N(t,n,R8(r)?!!r.capture:!!r,i):N9(e,t,n,!1,r,i)}function N9(e,t,n,r,i,o){if(!t)throw Error("Invalid event type");var s=R8(i)?!!i.capture:!!i,a=U9(e);if(a||(e[O9]=a=new G9(e)),(n=a.add(t,n,r,s,o)).proxy)return n;if(r=function(){function e(n){return t.call(e.src,e.listener,n)}var t=B9;return e}(),n.proxy=r,r.src=e,r.listener=n,e.addEventListener)w9||(i=s),void 0===i&&(i=!1),e.addEventListener(t.toString(),r,i);else if(e.attachEvent)e.attachEvent(z9(t.toString()),r);else{if(!e.addListener||!e.removeListener)throw Error("addEventListener and attachEvent are unavailable.");e.addListener(r)}return n}function L9(e,t,n,r,i){if(Array.isArray(t)){for(var o=0;o<t.length;o++)L9(e,t[o],n,r,i);return null}return n=H9(n),e&&e[A9]?e.O(t,n,R8(r)?!!r.capture:!!r,i):N9(e,t,n,!0,r,i)}function V9(e,t,n,r,i){if(Array.isArray(t))for(var o=0;o<t.length;o++)V9(e,t[o],n,r,i);else r=R8(r)?!!r.capture:!!r,n=H9(n),e&&e[A9]?(e=e.i,(t=String(t).toString())in e.g&&(-1<(n=M9(o=e.g[t],n,r,i))&&(I9(o[n]),Array.prototype.splice.call(o,n,1),0==o.length&&(delete e.g[t],e.h--)))):e&&(e=U9(e))&&(t=e.g[t.toString()],e=-1,t&&(e=M9(t,n,r,i)),(n=-1<e?t[e]:null)&&F9(n))}function F9(e){if("number"!==typeof e&&e&&!e.ca){var t=e.src;if(t&&t[A9])T9(t.i,e);else{var n=e.type,r=e.proxy;t.removeEventListener?t.removeEventListener(n,r,e.capture):t.detachEvent?t.detachEvent(z9(n),r):t.addListener&&t.removeListener&&t.removeListener(r),(n=U9(t))?(T9(n,e),0==n.h&&(n.src=null,t[O9]=null)):I9(e)}}}function z9(e){return e in R9?R9[e]:R9[e]="on"+e}function B9(e,t){if(e.ca)e=!0;else{t=new P9(t,this);var n=e.listener,r=e.ia||e.src;e.fa&&F9(e),e=n.call(r,t)}return e}function U9(e){return(e=e[O9])instanceof G9?e:null}var W9="__closure_events_fn_"+(1e9*Math.random()>>>0);function H9(e){return"function"===typeof e?e:(e[W9]||(e[W9]=function(t){return e.handleEvent(t)}),e[W9])}function q9(){U8.call(this),this.i=new G9(this),this.P=this,this.I=null}function X9(e,t){var n,r=e.I;if(r)for(n=[];r;r=r.I)n.push(r);if(e=e.P,r=t.type||t,"string"===typeof t)t=new E9(t,e);else if(t instanceof E9)t.target=t.target||e;else{var i=t;o9(t=new E9(r,e),i)}if(i=!0,n)for(var o=n.length-1;0<=o;o--){var s=t.g=n[o];i=Y9(s,r,!0,t)&&i}if(i=Y9(s=t.g=e,r,!0,t)&&i,i=Y9(s,r,!1,t)&&i,n)for(o=0;o<n.length;o++)i=Y9(s=t.g=n[o],r,!1,t)&&i}function Y9(e,t,n,r){if(!(t=e.i.g[String(t)]))return!0;t=t.concat();for(var i=!0,o=0;o<t.length;++o){var s=t[o];if(s&&!s.ca&&s.capture==n){var a=s.listener,l=s.ia||s.src;s.fa&&T9(e.i,s),i=!1!==a.call(l,r)&&i}}return i&&!r.defaultPrevented}B8(q9,U8),q9.prototype[A9]=!0,q9.prototype.removeEventListener=function(e,t,n,r){V9(this,e,t,n,r)},q9.prototype.M=function(){if(q9.Z.M.call(this),this.i){var e,t=this.i;for(e in t.g){for(var n=t.g[e],r=0;r<n.length;r++)I9(n[r]);delete t.g[e],t.h--}}this.I=null},q9.prototype.N=function(e,t,n,r){return this.i.add(String(e),t,!1,n,r)},q9.prototype.O=function(e,t,n,r){return this.i.add(String(e),t,!0,n,r)};var K9=T8.JSON.stringify;function Z9(){var e=i7,t=null;return e.g&&(t=e.g,e.g=e.g.next,e.g||(e.h=null),t.next=null),t}var $9,J9=function(){function e(){this.h=this.g=null}return e.prototype.add=function(e,t){var n=Q9.get();n.set(e,t),this.h?this.h.next=n:this.g=n,this.h=n},e}(),Q9=new(function(){function e(e,t){this.i=e,this.j=t,this.h=0,this.g=null}return e.prototype.get=function(){var e;return 0<this.h?(this.h--,e=this.g,this.g=e.next,e.next=null):e=this.i(),e},e}())((function(){return new e7}),(function(e){return e.reset()})),e7=function(){function e(){this.next=this.g=this.h=null}return e.prototype.set=function(e,t){this.h=e,this.g=t,this.next=null},e.prototype.reset=function(){this.next=this.g=this.h=null},e}();function t7(e){T8.setTimeout((function(){throw e}),0)}function n7(e,t){$9||function(){var e=T8.Promise.resolve(void 0);$9=function(){e.then(o7)}}(),r7||($9(),r7=!0),i7.add(e,t)}var r7=!1,i7=new J9;function o7(){for(var e;e=Z9();){try{e.h.call(e.g)}catch(Cn){t7(Cn)}var t=Q9;t.j(e),100>t.h&&(t.h++,e.next=t.g,t.g=e)}r7=!1}function s7(e,t){q9.call(this),this.h=e||1,this.g=t||T8,this.j=F8(this.kb,this),this.l=Date.now()}function a7(e){e.da=!1,e.S&&(e.g.clearTimeout(e.S),e.S=null)}function l7(e,t,n){if("function"===typeof e)n&&(e=F8(e,n));else{if(!e||"function"!=typeof e.handleEvent)throw Error("Invalid listener argument");e=F8(e.handleEvent,e)}return 2147483647<Number(t)?-1:T8.setTimeout(e,t||0)}function c7(e){e.g=l7((function(){e.g=null,e.i&&(e.i=!1,c7(e))}),e.j);var t=e.h;e.h=null,e.m.apply(null,t)}B8(s7,q9),(j8=s7.prototype).da=!1,j8.S=null,j8.kb=function(){if(this.da){var e=Date.now()-this.l;0<e&&e<.8*this.h?this.S=this.g.setTimeout(this.j,this.h-e):(this.S&&(this.g.clearTimeout(this.S),this.S=null),X9(this,"tick"),this.da&&(a7(this),this.start()))}},j8.start=function(){this.da=!0,this.S||(this.S=this.g.setTimeout(this.j,this.h),this.l=Date.now())},j8.M=function(){s7.Z.M.call(this),a7(this),delete this.g};var u7=function(e){function t(t,n){var r=e.call(this)||this;return r.m=t,r.j=n,r.h=null,r.i=!1,r.g=null,r}return function(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}A8(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}(t,e),t.prototype.l=function(e){this.h=arguments,this.g?this.i=!0:c7(this)},t.prototype.M=function(){e.prototype.M.call(this),this.g&&(T8.clearTimeout(this.g),this.g=null,this.i=!1,this.h=null)},t}(U8);function d7(e){U8.call(this),this.h=e,this.g={}}B8(d7,U8);var h7=[];function p7(e,t,n,r){Array.isArray(n)||(n&&(h7[0]=n.toString()),n=h7);for(var i=0;i<n.length;i++){var o=D9(t,n[i],r||e.handleEvent,!1,e.h||e);if(!o)break;e.g[o.key]=o}}function f7(e){n9(e.g,(function(e,t){this.g.hasOwnProperty(t)&&F9(e)}),e),e.g={}}function g7(){this.g=!0}function m7(e,t,n,r){e.info((function(){return"XMLHTTP TEXT ("+t+"): "+function(e,t){if(!e.g)return t;if(!t)return null;try{var n=JSON.parse(t);if(n)for(e=0;e<n.length;e++)if(Array.isArray(n[e])){var r=n[e];if(!(2>r.length)){var i=r[1];if(Array.isArray(i)&&!(1>i.length)){var o=i[0];if("noop"!=o&&"stop"!=o&&"close"!=o)for(var s=1;s<i.length;s++)i[s]=""}}}return K9(n)}catch(a){return t}}(e,n)+(r?" "+r:"")}))}d7.prototype.M=function(){d7.Z.M.call(this),f7(this)},d7.prototype.handleEvent=function(){throw Error("EventHandler.handleEvent not implemented")},g7.prototype.Aa=function(){this.g=!1},g7.prototype.info=function(){};var y7={},v7=null;function _7(){return v7=v7||new q9}function b7(e){E9.call(this,y7.Ma,e)}function x7(e){var t=_7();X9(t,new b7(t,e))}function S7(e,t){E9.call(this,y7.STAT_EVENT,e),this.stat=t}function w7(e){var t=_7();X9(t,new S7(t,e))}function E7(e,t){E9.call(this,y7.Na,e),this.size=t}function P7(e,t){if("function"!==typeof e)throw Error("Fn must not be null and must be a function");return T8.setTimeout((function(){e()}),t)}y7.Ma="serverreachability",B8(b7,E9),y7.STAT_EVENT="statevent",B8(S7,E9),y7.Na="timingevent",B8(E7,E9);var C7={NO_ERROR:0,lb:1,yb:2,xb:3,sb:4,wb:5,zb:6,Ja:7,TIMEOUT:8,Cb:9},A7={qb:"complete",Mb:"success",Ka:"error",Ja:"abort",Eb:"ready",Fb:"readystatechange",TIMEOUT:"timeout",Ab:"incrementaldata",Db:"progress",tb:"downloadprogress",Ub:"uploadprogress"};function k7(){}function j7(e){return e.h||(e.h=e.i())}function I7(){}k7.prototype.h=null;var G7,T7={OPEN:"a",pb:"b",Ka:"c",Bb:"d"};function M7(){E9.call(this,"d")}function O7(){E9.call(this,"c")}function R7(){}function D7(e,t,n,r){this.l=e,this.j=t,this.m=n,this.X=r||1,this.V=new d7(this),this.P=L7,e=d9?125:void 0,this.W=new s7(e),this.H=null,this.i=!1,this.s=this.A=this.v=this.K=this.F=this.Y=this.B=null,this.D=[],this.g=null,this.C=0,this.o=this.u=null,this.N=-1,this.I=!1,this.O=0,this.L=null,this.aa=this.J=this.$=this.U=!1,this.h=new N7}function N7(){this.i=null,this.g="",this.h=!1}B8(M7,E9),B8(O7,E9),B8(R7,k7),R7.prototype.g=function(){return new XMLHttpRequest},R7.prototype.i=function(){return{}},G7=new R7;var L7=45e3,V7={},F7={};function z7(e,t,n){e.K=1,e.v=uee(iee(t)),e.s=n,e.U=!0,B7(e,null)}function B7(e,t){e.F=Date.now(),q7(e),e.A=iee(e.v);var n=e.A,r=e.X;Array.isArray(r)||(r=[String(r)]),wee(n.h,"t",r),e.C=0,n=e.l.H,e.h=new N7,e.g=Ete(e.l,n?t:null,!e.s),0<e.O&&(e.L=new u7(F8(e.Ia,e,e.g),e.O)),p7(e.V,e.g,"readystatechange",e.gb),t=e.H?r9(e.H):{},e.s?(e.u||(e.u="POST"),t["Content-Type"]="application/x-www-form-urlencoded",e.g.ea(e.A,e.u,e.s,t)):(e.u="GET",e.g.ea(e.A,e.u,null,t)),x7(1),function(e,t,n,r,i,o){e.info((function(){if(e.g)if(o)for(var s="",a=o.split("&"),l=0;l<a.length;l++){var c=a[l].split("=");if(1<c.length){var u=c[0];c=c[1];var d=u.split("_");s=2<=d.length&&"type"==d[1]?s+(u+"=")+c+"&":s+(u+"=redacted&")}}else s=null;else s=o;return"XMLHTTP REQ ("+r+") [attempt "+i+"]: "+t+"\n"+n+"\n"+s}))}(e.j,e.u,e.A,e.m,e.X,e.s)}function U7(e){return!!e.g&&("GET"==e.u&&2!=e.K&&e.l.Ba)}function W7(e,t,n){for(var r,i=!0;!e.I&&e.C<n.length;){if((r=H7(e,n))==F7){4==t&&(e.o=4,w7(14),i=!1),m7(e.j,e.m,null,"[Incomplete Response]");break}if(r==V7){e.o=4,w7(15),m7(e.j,e.m,n,"[Invalid Chunk]"),i=!1;break}m7(e.j,e.m,r,null),$7(e,r)}U7(e)&&r!=F7&&r!=V7&&(e.h.g="",e.C=0),4!=t||0!=n.length||e.h.h||(e.o=1,w7(16),i=!1),e.i=e.i&&i,i?0<n.length&&!e.aa&&(e.aa=!0,(t=e.l).g==e&&t.$&&!t.L&&(t.h.info("Great, no buffering proxy detected. Bytes received: "+n.length),mte(t),t.L=!0,w7(11))):(m7(e.j,e.m,n,"[Invalid Chunked Response]"),Z7(e),K7(e))}function H7(e,t){var n=e.C,r=t.indexOf("\n",n);return-1==r?F7:(n=Number(t.substring(n,r)),isNaN(n)?V7:(r+=1)+n>t.length?F7:(t=t.substr(r,n),e.C=r+n,t))}function q7(e){e.Y=Date.now()+e.P,X7(e,e.P)}function X7(e,t){if(null!=e.B)throw Error("WatchDog timer not null");e.B=P7(F8(e.eb,e),t)}function Y7(e){e.B&&(T8.clearTimeout(e.B),e.B=null)}function K7(e){0==e.l.G||e.I||_te(e.l,e)}function Z7(e){Y7(e);var t=e.L;t&&"function"==typeof t.na&&t.na(),e.L=null,a7(e.W),f7(e.V),e.g&&(t=e.g,e.g=null,t.abort(),t.na())}function $7(e,t){try{var n=e.l;if(0!=n.G&&(n.g==e||Iee(n.i,e)))if(n.I=e.N,!e.J&&Iee(n.i,e)&&3==n.G){try{var r=n.Ca.g.parse(t)}catch(o){r=null}if(Array.isArray(r)&&3==r.length){var i=r;if(0==i[0]){e:if(!n.u){if(n.g){if(!(n.g.F+3e3<e.F))break e;vte(n),ate(n)}gte(n),w7(18)}}else n.ta=i[1],0<n.ta-n.U&&37500>i[2]&&n.N&&0==n.A&&!n.v&&(n.v=P7(F8(n.ab,n),6e3));if(1>=jee(n.i)&&n.ka){try{n.ka()}catch(o){}n.ka=void 0}}else xte(n,11)}else if((e.J||n.g==e)&&vte(n),!K8(t))for(i=n.Ca.g.parse(t),t=0;t<i.length;t++){var o=i[t];if(n.U=o[0],o=o[1],2==n.G)if("c"==o[0]){n.J=o[1],n.la=o[2];var s=o[3];null!=s&&(n.ma=s,n.h.info("VER="+n.ma));var a=o[4];null!=a&&(n.za=a,n.h.info("SVER="+n.za));var l=o[5];null!=l&&"number"===typeof l&&0<l&&(r=1.5*l,n.K=r,n.h.info("backChannelRequestTimeoutMs_="+r)),r=n;var c=e.g;if(c){var u=c.g?c.g.getResponseHeader("X-Client-Wire-Protocol"):null;if(u){var d=r.i;!d.g&&(J8(u,"spdy")||J8(u,"quic")||J8(u,"h2"))&&(d.j=d.l,d.g=new Set,d.h&&(Gee(d,d.h),d.h=null))}if(r.D){var h=c.g?c.g.getResponseHeader("X-HTTP-Session-Id"):null;h&&(r.sa=h,cee(r.F,r.D,h))}}n.G=3,n.j&&n.j.xa(),n.$&&(n.O=Date.now()-e.F,n.h.info("Handshake RTT: "+n.O+"ms"));var p=e;if((r=n).oa=wte(r,r.H?r.la:null,r.W),p.J){Tee(r.i,p);var f=p,g=r.K;g&&f.setTimeout(g),f.B&&(Y7(f),q7(f)),r.g=p}else fte(r);0<n.l.length&&ute(n)}else"stop"!=o[0]&&"close"!=o[0]||xte(n,7);else 3==n.G&&("stop"==o[0]||"close"==o[0]?"stop"==o[0]?xte(n,7):ste(n):"noop"!=o[0]&&n.j&&n.j.wa(o),n.A=0)}x7(4)}catch(o){}}function J7(e,t){if(e.forEach&&"function"==typeof e.forEach)e.forEach(t,void 0);else if(O8(e)||"string"===typeof e)q8(e,t,void 0);else{if(e.T&&"function"==typeof e.T)var n=e.T();else if(e.R&&"function"==typeof e.R)n=void 0;else if(O8(e)||"string"===typeof e){n=[];for(var r=e.length,i=0;i<r;i++)n.push(i)}else for(i in n=[],r=0,e)n[r++]=i;r=function(e){if(e.R&&"function"==typeof e.R)return e.R();if("string"===typeof e)return e.split("");if(O8(e)){for(var t=[],n=e.length,r=0;r<n;r++)t.push(e[r]);return t}for(r in t=[],n=0,e)t[n++]=e[r];return t}(e),i=r.length;for(var o=0;o<i;o++)t.call(void 0,r[o],n&&n[o],e)}}function Q7(e,t){this.h={},this.g=[],this.i=0;var n=arguments.length;if(1<n){if(n%2)throw Error("Uneven number of arguments");for(var r=0;r<n;r+=2)this.set(arguments[r],arguments[r+1])}else if(e)if(e instanceof Q7)for(n=e.T(),r=0;r<n.length;r++)this.set(n[r],e.get(n[r]));else for(r in e)this.set(r,e[r])}function eee(e){if(e.i!=e.g.length){for(var t=0,n=0;t<e.g.length;){var r=e.g[t];tee(e.h,r)&&(e.g[n++]=r),t++}e.g.length=n}if(e.i!=e.g.length){var i={};for(n=t=0;t<e.g.length;)tee(i,r=e.g[t])||(e.g[n++]=r,i[r]=1),t++;e.g.length=n}}function tee(e,t){return Object.prototype.hasOwnProperty.call(e,t)}(j8=D7.prototype).setTimeout=function(e){this.P=e},j8.gb=function(e){e=e.target;var t=this.L;t&&3==tte(e)?t.l():this.Ia(e)},j8.Ia=function(e){try{if(e==this.g)e:{var t=tte(this.g),n=this.g.Da(),r=this.g.ba();if(!(3>t)&&(3!=t||d9||this.g&&(this.h.h||this.g.ga()||nte(this.g)))){this.I||4!=t||7==n||x7(8==n||0>=r?3:2),Y7(this);var i=this.g.ba();this.N=i;t:if(U7(this)){var o=nte(this.g);e="";var s=o.length,a=4==tte(this.g);if(!this.h.i){if("undefined"===typeof TextDecoder){Z7(this),K7(this);var l="";break t}this.h.i=new T8.TextDecoder}for(n=0;n<s;n++)this.h.h=!0,e+=this.h.i.decode(o[n],{stream:a&&n==s-1});o.splice(0,s),this.h.g+=e,this.C=0,l=this.h.g}else l=this.g.ga();if(this.i=200==i,function(e,t,n,r,i,o,s){e.info((function(){return"XMLHTTP RESP ("+r+") [ attempt "+i+"]: "+t+"\n"+n+"\n"+o+" "+s}))}(this.j,this.u,this.A,this.m,this.X,t,i),this.i){if(this.$&&!this.J){t:{if(this.g){var c,u=this.g;if((c=u.g?u.g.getResponseHeader("X-HTTP-Initial-Response"):null)&&!K8(c)){var d=c;break t}}d=null}if(!(i=d)){this.i=!1,this.o=3,w7(12),Z7(this),K7(this);break e}m7(this.j,this.m,i,"Initial handshake response via X-HTTP-Initial-Response"),this.J=!0,$7(this,i)}this.U?(W7(this,t,l),d9&&this.i&&3==t&&(p7(this.V,this.W,"tick",this.fb),this.W.start())):(m7(this.j,this.m,l,null),$7(this,l)),4==t&&Z7(this),this.i&&!this.I&&(4==t?_te(this.l,this):(this.i=!1,q7(this)))}else 400==i&&0<l.indexOf("Unknown SID")?(this.o=3,w7(12)):(this.o=0,w7(13)),Z7(this),K7(this)}}}catch(t){}},j8.fb=function(){if(this.g){var e=tte(this.g),t=this.g.ga();this.C<t.length&&(Y7(this),W7(this,e,t),this.i&&4!=e&&q7(this))}},j8.cancel=function(){this.I=!0,Z7(this)},j8.eb=function(){this.B=null;var e=Date.now();0<=e-this.Y?(function(e,t){e.info((function(){return"TIMEOUT: "+t}))}(this.j,this.A),2!=this.K&&(x7(3),w7(17)),Z7(this),this.o=2,K7(this)):X7(this,this.Y-e)},(j8=Q7.prototype).R=function(){eee(this);for(var e=[],t=0;t<this.g.length;t++)e.push(this.h[this.g[t]]);return e},j8.T=function(){return eee(this),this.g.concat()},j8.get=function(e,t){return tee(this.h,e)?this.h[e]:t},j8.set=function(e,t){tee(this.h,e)||(this.i++,this.g.push(e)),this.h[e]=t},j8.forEach=function(e,t){for(var n=this.T(),r=0;r<n.length;r++){var i=n[r],o=this.get(i);e.call(t,o,i,this)}};var nee=/^(?:([^:/?#.]+):)?(?:\/\/(?:([^\\/?#]*)@)?([^\\/?#]*?)(?::([0-9]+))?(?=[\\/?#]|$))?([^?#]+)?(?:\?([^#]*))?(?:#([\s\S]*))?$/;function ree(e,t){if(this.i=this.s=this.j="",this.m=null,this.o=this.l="",this.g=!1,e instanceof ree){this.g=void 0!==t?t:e.g,oee(this,e.j),this.s=e.s,see(this,e.i),aee(this,e.m),this.l=e.l,t=e.h;var n=new _ee;n.i=t.i,t.g&&(n.g=new Q7(t.g),n.h=t.h),lee(this,n),this.o=e.o}else e&&(n=String(e).match(nee))?(this.g=!!t,oee(this,n[1]||"",!0),this.s=dee(n[2]||""),see(this,n[3]||"",!0),aee(this,n[4]),this.l=dee(n[5]||"",!0),lee(this,n[6]||"",!0),this.o=dee(n[7]||"")):(this.g=!!t,this.h=new _ee(null,this.g))}function iee(e){return new ree(e)}function oee(e,t,n){e.j=n?dee(t,!0):t,e.j&&(e.j=e.j.replace(/:$/,""))}function see(e,t,n){e.i=n?dee(t,!0):t}function aee(e,t){if(t){if(t=Number(t),isNaN(t)||0>t)throw Error("Bad port number "+t);e.m=t}else e.m=null}function lee(e,t,n){t instanceof _ee?(e.h=t,function(e,t){t&&!e.j&&(bee(e),e.i=null,e.g.forEach((function(e,t){var n=t.toLowerCase();t!=n&&(xee(this,t),wee(this,n,e))}),e)),e.j=t}(e.h,e.g)):(n||(t=hee(t,yee)),e.h=new _ee(t,e.g))}function cee(e,t,n){e.h.set(t,n)}function uee(e){return cee(e,"zx",Math.floor(2147483648*Math.random()).toString(36)+Math.abs(Math.floor(2147483648*Math.random())^Date.now()).toString(36)),e}function dee(e,t){return e?t?decodeURI(e.replace(/%25/g,"%2525")):decodeURIComponent(e):""}function hee(e,t,n){return"string"===typeof e?(e=encodeURI(e).replace(t,pee),n&&(e=e.replace(/%25([0-9a-fA-F]{2})/g,"%$1")),e):null}function pee(e){return"%"+((e=e.charCodeAt(0))>>4&15).toString(16)+(15&e).toString(16)}ree.prototype.toString=function(){var e=[],t=this.j;t&&e.push(hee(t,fee,!0),":");var n=this.i;return(n||"file"==t)&&(e.push("//"),(t=this.s)&&e.push(hee(t,fee,!0),"@"),e.push(encodeURIComponent(String(n)).replace(/%25([0-9a-fA-F]{2})/g,"%$1")),null!=(n=this.m)&&e.push(":",String(n))),(n=this.l)&&(this.i&&"/"!=n.charAt(0)&&e.push("/"),e.push(hee(n,"/"==n.charAt(0)?mee:gee,!0))),(n=this.h.toString())&&e.push("?",n),(n=this.o)&&e.push("#",hee(n,vee)),e.join("")};var fee=/[#\/\?@]/g,gee=/[#\?:]/g,mee=/[#\?]/g,yee=/[#\?@]/g,vee=/#/g;function _ee(e,t){this.h=this.g=null,this.i=e||null,this.j=!!t}function bee(e){e.g||(e.g=new Q7,e.h=0,e.i&&function(e,t){if(e){e=e.split("&");for(var n=0;n<e.length;n++){var r=e[n].indexOf("="),i=null;if(0<=r){var o=e[n].substring(0,r);i=e[n].substring(r+1)}else o=e[n];t(o,i?decodeURIComponent(i.replace(/\+/g," ")):"")}}}(e.i,(function(t,n){e.add(decodeURIComponent(t.replace(/\+/g," ")),n)})))}function xee(e,t){bee(e),t=Eee(e,t),tee(e.g.h,t)&&(e.i=null,e.h-=e.g.get(t).length,tee((e=e.g).h,t)&&(delete e.h[t],e.i--,e.g.length>2*e.i&&eee(e)))}function See(e,t){return bee(e),t=Eee(e,t),tee(e.g.h,t)}function wee(e,t,n){xee(e,t),0<n.length&&(e.i=null,e.g.set(Eee(e,t),Y8(n)),e.h+=n.length)}function Eee(e,t){return t=String(t),e.j&&(t=t.toLowerCase()),t}(j8=_ee.prototype).add=function(e,t){bee(this),this.i=null,e=Eee(this,e);var n=this.g.get(e);return n||this.g.set(e,n=[]),n.push(t),this.h+=1,this},j8.forEach=function(e,t){bee(this),this.g.forEach((function(n,r){q8(n,(function(n){e.call(t,n,r,this)}),this)}),this)},j8.T=function(){bee(this);for(var e=this.g.R(),t=this.g.T(),n=[],r=0;r<t.length;r++)for(var i=e[r],o=0;o<i.length;o++)n.push(t[r]);return n},j8.R=function(e){bee(this);var t=[];if("string"===typeof e)See(this,e)&&(t=X8(t,this.g.get(Eee(this,e))));else{e=this.g.R();for(var n=0;n<e.length;n++)t=X8(t,e[n])}return t},j8.set=function(e,t){return bee(this),this.i=null,See(this,e=Eee(this,e))&&(this.h-=this.g.get(e).length),this.g.set(e,[t]),this.h+=1,this},j8.get=function(e,t){return e&&0<(e=this.R(e)).length?String(e[0]):t},j8.toString=function(){if(this.i)return this.i;if(!this.g)return"";for(var e=[],t=this.g.T(),n=0;n<t.length;n++){var r=t[n],i=encodeURIComponent(String(r));r=this.R(r);for(var o=0;o<r.length;o++){var s=i;""!==r[o]&&(s+="="+encodeURIComponent(String(r[o]))),e.push(s)}}return this.i=e.join("&")};var Pee=function(e,t){this.h=e,this.g=t};function Cee(e){this.l=e||Aee,T8.PerformanceNavigationTiming?e=0<(e=T8.performance.getEntriesByType("navigation")).length&&("hq"==e[0].nextHopProtocol||"h2"==e[0].nextHopProtocol):e=!!(T8.g&&T8.g.Ea&&T8.g.Ea()&&T8.g.Ea().Zb),this.j=e?this.l:1,this.g=null,1<this.j&&(this.g=new Set),this.h=null,this.i=[]}var Aee=10;function kee(e){return!!e.h||!!e.g&&e.g.size>=e.j}function jee(e){return e.h?1:e.g?e.g.size:0}function Iee(e,t){return e.h?e.h==t:!!e.g&&e.g.has(t)}function Gee(e,t){e.g?e.g.add(t):e.h=t}function Tee(e,t){e.h&&e.h==t?e.h=null:e.g&&e.g.has(t)&&e.g.delete(t)}function Mee(e){var t,n;if(null!=e.h)return e.i.concat(e.h.D);if(null!=e.g&&0!==e.g.size){var r=e.i;try{for(var i=k8(e.g.values()),o=i.next();!o.done;o=i.next()){var s=o.value;r=r.concat(s.D)}}catch(a){t={error:a}}finally{try{o&&!o.done&&(n=i.return)&&n.call(i)}finally{if(t)throw t.error}}return r}return Y8(e.i)}function Oee(){}function Ree(){this.g=new Oee}function Dee(e,t,n){var r=n||"";try{J7(e,(function(e,n){var i=e;R8(e)&&(i=K9(e)),t.push(r+n+"="+encodeURIComponent(i))}))}catch(i){throw t.push(r+"type="+encodeURIComponent("_badmap")),i}}function Nee(e,t,n,r,i){try{t.onload=null,t.onerror=null,t.onabort=null,t.ontimeout=null,i(r)}catch(Pn){}}function Lee(e){this.l=e.$b||null,this.j=e.ib||!1}function Vee(e,t){q9.call(this),this.D=e,this.u=t,this.m=void 0,this.readyState=Fee,this.status=0,this.responseType=this.responseText=this.response=this.statusText="",this.onreadystatechange=null,this.v=new Headers,this.h=null,this.C="GET",this.B="",this.g=!1,this.A=this.j=this.l=null}Cee.prototype.cancel=function(){var e,t;if(this.i=Mee(this),this.h)this.h.cancel(),this.h=null;else if(this.g&&0!==this.g.size){try{for(var n=k8(this.g.values()),r=n.next();!r.done;r=n.next()){r.value.cancel()}}catch(i){e={error:i}}finally{try{r&&!r.done&&(t=n.return)&&t.call(n)}finally{if(e)throw e.error}}this.g.clear()}},Oee.prototype.stringify=function(e){return T8.JSON.stringify(e,void 0)},Oee.prototype.parse=function(e){return T8.JSON.parse(e,void 0)},B8(Lee,k7),Lee.prototype.g=function(){return new Vee(this.l,this.j)},Lee.prototype.i=function(e){return function(){return e}}({}),B8(Vee,q9);var Fee=0;function zee(e){e.j.read().then(e.Sa.bind(e)).catch(e.ha.bind(e))}function Bee(e){e.readyState=4,e.l=null,e.j=null,e.A=null,Uee(e)}function Uee(e){e.onreadystatechange&&e.onreadystatechange.call(e)}(j8=Vee.prototype).open=function(e,t){if(this.readyState!=Fee)throw this.abort(),Error("Error reopening a connection");this.C=e,this.B=t,this.readyState=1,Uee(this)},j8.send=function(e){if(1!=this.readyState)throw this.abort(),Error("need to call open() first. ");this.g=!0;var t={headers:this.v,method:this.C,credentials:this.m,cache:void 0};e&&(t.body=e),(this.D||T8).fetch(new Request(this.B,t)).then(this.Va.bind(this),this.ha.bind(this))},j8.abort=function(){this.response=this.responseText="",this.v=new Headers,this.status=0,this.j&&this.j.cancel("Request was aborted."),1<=this.readyState&&this.g&&4!=this.readyState&&(this.g=!1,Bee(this)),this.readyState=Fee},j8.Va=function(e){if(this.g&&(this.l=e,this.h||(this.status=this.l.status,this.statusText=this.l.statusText,this.h=e.headers,this.readyState=2,Uee(this)),this.g&&(this.readyState=3,Uee(this),this.g)))if("arraybuffer"===this.responseType)e.arrayBuffer().then(this.Ta.bind(this),this.ha.bind(this));else if("undefined"!==typeof T8.ReadableStream&&"body"in e){if(this.j=e.body.getReader(),this.u){if(this.responseType)throw Error('responseType must be empty for "streamBinaryChunks" mode responses.');this.response=[]}else this.response=this.responseText="",this.A=new TextDecoder;zee(this)}else e.text().then(this.Ua.bind(this),this.ha.bind(this))},j8.Sa=function(e){if(this.g){if(this.u&&e.value)this.response.push(e.value);else if(!this.u){var t=e.value?e.value:new Uint8Array(0);(t=this.A.decode(t,{stream:!e.done}))&&(this.response=this.responseText+=t)}e.done?Bee(this):Uee(this),3==this.readyState&&zee(this)}},j8.Ua=function(e){this.g&&(this.response=this.responseText=e,Bee(this))},j8.Ta=function(e){this.g&&(this.response=e,Bee(this))},j8.ha=function(){this.g&&Bee(this)},j8.setRequestHeader=function(e,t){this.v.append(e,t)},j8.getResponseHeader=function(e){return this.h&&this.h.get(e.toLowerCase())||""},j8.getAllResponseHeaders=function(){if(!this.h)return"";for(var e=[],t=this.h.entries(),n=t.next();!n.done;)n=n.value,e.push(n[0]+": "+n[1]),n=t.next();return e.join("\r\n")},Object.defineProperty(Vee.prototype,"withCredentials",{get:function(){return"include"===this.m},set:function(e){this.m=e?"include":"same-origin"}});var Wee=T8.JSON.parse;function Hee(e){q9.call(this),this.headers=new Q7,this.u=e||null,this.h=!1,this.C=this.g=null,this.H="",this.m=0,this.j="",this.l=this.F=this.v=this.D=!1,this.B=0,this.A=null,this.J=qee,this.K=this.L=!1}B8(Hee,q9);var qee="",Xee=/^https?$/i,Yee=["POST","PUT"];function Kee(e){return"content-type"==e.toLowerCase()}function Zee(e,t){e.h=!1,e.g&&(e.l=!0,e.g.abort(),e.l=!1),e.j=t,e.m=5,$ee(e),Qee(e)}function $ee(e){e.D||(e.D=!0,X9(e,"complete"),X9(e,"error"))}function Jee(e){if(e.h&&"undefined"!=typeof G8&&(!e.C[1]||4!=tte(e)||2!=e.ba()))if(e.v&&4==tte(e))l7(e.Fa,0,e);else if(X9(e,"readystatechange"),4==tte(e)){e.h=!1;try{var t,n=e.ba();e:switch(n){case 200:case 201:case 202:case 204:case 206:case 304:case 1223:var r=!0;break e;default:r=!1}if(!(t=r)){var i;if(i=0===n){var o=String(e.H).match(nee)[1]||null;if(!o&&T8.self&&T8.self.location){var s=T8.self.location.protocol;o=s.substr(0,s.length-1)}i=!Xee.test(o?o.toLowerCase():"")}t=i}if(t)X9(e,"complete"),X9(e,"success");else{e.m=6;try{var a=2<tte(e)?e.g.statusText:""}catch(wn){a=""}e.j=a+" ["+e.ba()+"]",$ee(e)}}finally{Qee(e)}}}function Qee(e,t){if(e.g){ete(e);var n=e.g,r=e.C[0]?M8:null;e.g=null,e.C=null,t||X9(e,"ready");try{n.onreadystatechange=r}catch(i){}}}function ete(e){e.g&&e.K&&(e.g.ontimeout=null),e.A&&(T8.clearTimeout(e.A),e.A=null)}function tte(e){return e.g?e.g.readyState:0}function nte(e){try{if(!e.g)return null;if("response"in e.g)return e.g.response;switch(e.J){case qee:case"text":return e.g.responseText;case"arraybuffer":if("mozResponseArrayBuffer"in e.g)return e.g.mozResponseArrayBuffer}return null}catch(On){return null}}function rte(e,t,n){e:{for(r in n){var r=!1;break e}r=!0}r||(n=function(e){var t="";return n9(e,(function(e,n){t+=n,t+=":",t+=e,t+="\r\n"})),t}(n),"string"===typeof e?null!=n&&encodeURIComponent(String(n)):cee(e,t,n))}function ite(e,t,n){return n&&n.internalChannelParams&&n.internalChannelParams[e]||t}function ote(e){this.za=0,this.l=[],this.h=new g7,this.la=this.oa=this.F=this.W=this.g=this.sa=this.D=this.aa=this.o=this.P=this.s=null,this.Za=this.V=0,this.Xa=ite("failFast",!1,e),this.N=this.v=this.u=this.m=this.j=null,this.X=!0,this.I=this.ta=this.U=-1,this.Y=this.A=this.C=0,this.Pa=ite("baseRetryDelayMs",5e3,e),this.$a=ite("retryDelaySeedMs",1e4,e),this.Ya=ite("forwardChannelMaxRetries",2,e),this.ra=ite("forwardChannelRequestTimeoutMs",2e4,e),this.qa=e&&e.xmlHttpFactory||void 0,this.Ba=e&&e.Yb||!1,this.K=void 0,this.H=e&&e.supportsCrossDomainXhr||!1,this.J="",this.i=new Cee(e&&e.concurrentRequestLimit),this.Ca=new Ree,this.ja=e&&e.fastHandshake||!1,this.Ra=e&&e.Wb||!1,e&&e.Aa&&this.h.Aa(),e&&e.forceLongPolling&&(this.X=!1),this.$=!this.ja&&this.X&&e&&e.detectBufferingProxy||!1,this.ka=void 0,this.O=0,this.L=!1,this.B=null,this.Wa=!e||!1!==e.Xb}function ste(e){if(lte(e),3==e.G){var t=e.V++,n=iee(e.F);cee(n,"SID",e.J),cee(n,"RID",t),cee(n,"TYPE","terminate"),hte(e,n),(t=new D7(e,e.h,t,void 0)).K=2,t.v=uee(iee(n)),n=!1,T8.navigator&&T8.navigator.sendBeacon&&(n=T8.navigator.sendBeacon(t.v.toString(),"")),!n&&T8.Image&&((new Image).src=t.v,n=!0),n||(t.g=Ete(t.l,null),t.g.ea(t.v)),t.F=Date.now(),q7(t)}Ste(e)}function ate(e){e.g&&(mte(e),e.g.cancel(),e.g=null)}function lte(e){ate(e),e.u&&(T8.clearTimeout(e.u),e.u=null),vte(e),e.i.cancel(),e.m&&("number"===typeof e.m&&T8.clearTimeout(e.m),e.m=null)}function cte(e,t){e.l.push(new Pee(e.Za++,t)),3==e.G&&ute(e)}function ute(e){kee(e.i)||e.m||(e.m=!0,n7(e.Ha,e),e.C=0)}function dte(e,t){var n;n=t?t.m:e.V++;var r=iee(e.F);cee(r,"SID",e.J),cee(r,"RID",n),cee(r,"AID",e.U),hte(e,r),e.o&&e.s&&rte(r,e.o,e.s),n=new D7(e,e.h,n,e.C+1),null===e.o&&(n.H=e.s),t&&(e.l=t.D.concat(e.l)),t=pte(e,n,1e3),n.setTimeout(Math.round(.5*e.ra)+Math.round(.5*e.ra*Math.random())),Gee(e.i,n),z7(n,r,t)}function hte(e,t){e.j&&J7({},(function(e,n){cee(t,n,e)}))}function pte(e,t,n){n=Math.min(e.l.length,n);var r=e.j?F8(e.j.Oa,e.j,e):null;e:for(var i=e.l,o=-1;;){var s=["count="+n];-1==o?0<n?(o=i[0].h,s.push("ofs="+o)):o=0:s.push("ofs="+o);for(var a=!0,l=0;l<n;l++){var c=i[l].h,u=i[l].g;if(0>(c-=o))o=Math.max(0,i[l].h-100),a=!1;else try{Dee(u,s,"req"+c+"_")}catch(er){r&&r(u)}}if(a){r=s.join("&");break e}}return e=e.l.splice(0,n),t.D=e,r}function fte(e){e.g||e.u||(e.Y=1,n7(e.Ga,e),e.A=0)}function gte(e){return!(e.g||e.u||3<=e.A)&&(e.Y++,e.u=P7(F8(e.Ga,e),bte(e,e.A)),e.A++,!0)}function mte(e){null!=e.B&&(T8.clearTimeout(e.B),e.B=null)}function yte(e){e.g=new D7(e,e.h,"rpc",e.Y),null===e.o&&(e.g.H=e.s),e.g.O=0;var t=iee(e.oa);cee(t,"RID","rpc"),cee(t,"SID",e.J),cee(t,"CI",e.N?"0":"1"),cee(t,"AID",e.U),hte(e,t),cee(t,"TYPE","xmlhttp"),e.o&&e.s&&rte(t,e.o,e.s),e.K&&e.g.setTimeout(e.K);var n=e.g;e=e.la,n.K=1,n.v=uee(iee(t)),n.s=null,n.U=!0,B7(n,e)}function vte(e){null!=e.v&&(T8.clearTimeout(e.v),e.v=null)}function _te(e,t){var n=null;if(e.g==t){vte(e),mte(e),e.g=null;var r=2}else{if(!Iee(e.i,t))return;n=t.D,Tee(e.i,t),r=1}if(e.I=t.N,0!=e.G)if(t.i)if(1==r){n=t.s?t.s.length:0,t=Date.now()-t.F;var i=e.C;X9(r=_7(),new E7(r,n,t,i)),ute(e)}else fte(e);else if(3==(i=t.o)||0==i&&0<e.I||!(1==r&&function(e,t){return!(jee(e.i)>=e.i.j-(e.m?1:0))&&(e.m?(e.l=t.D.concat(e.l),!0):!(1==e.G||2==e.G||e.C>=(e.Xa?0:e.Ya))&&(e.m=P7(F8(e.Ha,e,t),bte(e,e.C)),e.C++,!0))}(e,t)||2==r&&gte(e)))switch(n&&0<n.length&&(t=e.i,t.i=t.i.concat(n)),i){case 1:xte(e,5);break;case 4:xte(e,10);break;case 3:xte(e,6);break;default:xte(e,2)}}function bte(e,t){var n=e.Pa+Math.floor(Math.random()*e.$a);return e.j||(n*=2),n*t}function xte(e,t){if(e.h.info("Error code "+t),2==t){var n=null;e.j&&(n=null);var r=F8(e.jb,e);n||(n=new ree("//www.google.com/images/cleardot.gif"),T8.location&&"http"==T8.location.protocol||oee(n,"https"),uee(n)),function(e,t){var n=new g7;if(T8.Image){var r=new Image;r.onload=z8(Nee,n,r,"TestLoadImage: loaded",!0,t),r.onerror=z8(Nee,n,r,"TestLoadImage: error",!1,t),r.onabort=z8(Nee,n,r,"TestLoadImage: abort",!1,t),r.ontimeout=z8(Nee,n,r,"TestLoadImage: timeout",!1,t),T8.setTimeout((function(){r.ontimeout&&r.ontimeout()}),1e4),r.src=e}else t(!1)}(n.toString(),r)}else w7(2);e.G=0,e.j&&e.j.va(t),Ste(e),lte(e)}function Ste(e){e.G=0,e.I=-1,e.j&&(0==Mee(e.i).length&&0==e.l.length||(e.i.i.length=0,Y8(e.l),e.l.length=0),e.j.ua())}function wte(e,t,n){var r=function(e){return e instanceof ree?iee(e):new ree(e,void 0)}(n);if(""!=r.i)t&&see(r,t+"."+r.i),aee(r,r.m);else{var i=T8.location;r=function(e,t,n,r){var i=new ree(null,void 0);return e&&oee(i,e),t&&see(i,t),n&&aee(i,n),r&&(i.l=r),i}(i.protocol,t?t+"."+i.hostname:i.hostname,+i.port,n)}return e.aa&&n9(e.aa,(function(e,t){cee(r,t,e)})),t=e.D,n=e.sa,t&&n&&cee(r,t,n),cee(r,"VER",e.ma),hte(e,r),r}function Ete(e,t,n){if(t&&!e.H)throw Error("Can't create secondary domain capable XhrIo object.");return(t=n&&e.Ba&&!e.qa?new Hee(new Lee({ib:!0})):new Hee(e.qa)).L=e.H,t}function Pte(){}function Cte(){if(c9&&!(10<=Number(S9)))throw Error("Environmental error: no available transport.")}function Ate(e,t){q9.call(this),this.g=new ote(t),this.l=e,this.h=t&&t.messageUrlParams||null,e=t&&t.messageHeaders||null,t&&t.clientProtocolHeaderRequired&&(e?e["X-Client-Protocol"]="webchannel":e={"X-Client-Protocol":"webchannel"}),this.g.s=e,e=t&&t.initMessageHeaders||null,t&&t.messageContentType&&(e?e["X-WebChannel-Content-Type"]=t.messageContentType:e={"X-WebChannel-Content-Type":t.messageContentType}),t&&t.ya&&(e?e["X-WebChannel-Client-Profile"]=t.ya:e={"X-WebChannel-Client-Profile":t.ya}),this.g.P=e,(e=t&&t.httpHeadersOverwriteParam)&&!K8(e)&&(this.g.o=e),this.A=t&&t.supportsCrossDomainXhr||!1,this.v=t&&t.sendRawJson||!1,(t=t&&t.httpSessionIdParam)&&!K8(t)&&(this.g.D=t,null!==(e=this.h)&&t in e&&(t in(e=this.h)&&delete e[t])),this.j=new Ite(this)}function kte(e){M7.call(this);var t=e.__sm__;if(t){e:{for(var n in t){e=n;break e}e=void 0}(this.i=e)&&(e=this.i,t=null!==t&&e in t?t[e]:void 0),this.data=t}else this.data=e}function jte(){O7.call(this),this.status=1}function Ite(e){this.g=e}(j8=Hee.prototype).ea=function(e,t,n,r){if(this.g)throw Error("[goog.net.XhrIo] Object is active with another request="+this.H+"; newUri="+e);t=t?t.toUpperCase():"GET",this.H=e,this.j="",this.m=0,this.D=!1,this.h=!0,this.g=this.u?this.u.g():G7.g(),this.C=this.u?j7(this.u):j7(G7),this.g.onreadystatechange=F8(this.Fa,this);try{this.F=!0,this.g.open(t,String(e),!0),this.F=!1}catch(Pn){return void Zee(this,Pn)}e=n||"";var i=new Q7(this.headers);r&&J7(r,(function(e,t){i.set(t,e)})),r=function(e){e:{for(var t=Kee,n=e.length,r="string"===typeof e?e.split(""):e,i=0;i<n;i++)if(i in r&&t.call(void 0,r[i],i,e)){t=i;break e}t=-1}return 0>t?null:"string"===typeof e?e.charAt(t):e[t]}(i.T()),n=T8.FormData&&e instanceof T8.FormData,!(0<=H8(Yee,t))||r||n||i.set("Content-Type","application/x-www-form-urlencoded;charset=utf-8"),i.forEach((function(e,t){this.g.setRequestHeader(t,e)}),this),this.J&&(this.g.responseType=this.J),"withCredentials"in this.g&&this.g.withCredentials!==this.L&&(this.g.withCredentials=this.L);try{ete(this),0<this.B&&((this.K=function(e){return c9&&b9()&&"number"===typeof e.timeout&&void 0!==e.ontimeout}(this.g))?(this.g.timeout=this.B,this.g.ontimeout=F8(this.pa,this)):this.A=l7(this.pa,this.B,this)),this.v=!0,this.g.send(e),this.v=!1}catch(Pn){Zee(this,Pn)}},j8.pa=function(){"undefined"!=typeof G8&&this.g&&(this.j="Timed out after "+this.B+"ms, aborting",this.m=8,X9(this,"timeout"),this.abort(8))},j8.abort=function(e){this.g&&this.h&&(this.h=!1,this.l=!0,this.g.abort(),this.l=!1,this.m=e||7,X9(this,"complete"),X9(this,"abort"),Qee(this))},j8.M=function(){this.g&&(this.h&&(this.h=!1,this.l=!0,this.g.abort(),this.l=!1),Qee(this,!0)),Hee.Z.M.call(this)},j8.Fa=function(){this.s||(this.F||this.v||this.l?Jee(this):this.cb())},j8.cb=function(){Jee(this)},j8.ba=function(){try{return 2<tte(this)?this.g.status:-1}catch(En){return-1}},j8.ga=function(){try{return this.g?this.g.responseText:""}catch(En){return""}},j8.Qa=function(e){if(this.g){var t=this.g.responseText;return e&&0==t.indexOf(e)&&(t=t.substring(e.length)),Wee(t)}},j8.Da=function(){return this.m},j8.La=function(){return"string"===typeof this.j?this.j:String(this.j)},(j8=ote.prototype).ma=8,j8.G=1,j8.hb=function(e){try{this.h.info("Origin Trials invoked: "+e)}catch(On){}},j8.Ha=function(e){if(this.m)if(this.m=null,1==this.G){if(!e){this.V=Math.floor(1e5*Math.random()),e=this.V++;var t=new D7(this,this.h,e,void 0),n=this.s;if(this.P&&(n?o9(n=r9(n),this.P):n=this.P),null===this.o&&(t.H=n),this.ja)e:{for(var r=0,i=0;i<this.l.length;i++){var o=this.l[i];if(void 0===(o="__data__"in o.g&&"string"===typeof(o=o.g.__data__)?o.length:void 0))break;if(4096<(r+=o)){r=i;break e}if(4096===r||i===this.l.length-1){r=i+1;break e}}r=1e3}else r=1e3;r=pte(this,t,r),cee(i=iee(this.F),"RID",e),cee(i,"CVER",22),this.D&&cee(i,"X-HTTP-Session-Id",this.D),hte(this,i),this.o&&n&&rte(i,this.o,n),Gee(this.i,t),this.Ra&&cee(i,"TYPE","init"),this.ja?(cee(i,"$req",r),cee(i,"SID","null"),t.$=!0,z7(t,i,null)):z7(t,i,r),this.G=2}}else 3==this.G&&(e?dte(this,e):0==this.l.length||kee(this.i)||dte(this))},j8.Ga=function(){if(this.u=null,yte(this),this.$&&!(this.L||null==this.g||0>=this.O)){var e=2*this.O;this.h.info("BP detection timer enabled: "+e),this.B=P7(F8(this.bb,this),e)}},j8.bb=function(){this.B&&(this.B=null,this.h.info("BP detection timeout reached."),this.h.info("Buffering proxy detected and switch to long-polling!"),this.N=!1,this.L=!0,w7(10),ate(this),yte(this))},j8.ab=function(){null!=this.v&&(this.v=null,ate(this),gte(this),w7(19))},j8.jb=function(e){e?(this.h.info("Successfully pinged google.com"),w7(2)):(this.h.info("Failed to ping google.com"),w7(1))},(j8=Pte.prototype).xa=function(){},j8.wa=function(){},j8.va=function(){},j8.ua=function(){},j8.Oa=function(){},Cte.prototype.g=function(e,t){return new Ate(e,t)},B8(Ate,q9),Ate.prototype.m=function(){this.g.j=this.j,this.A&&(this.g.H=!0);var e=this.g,t=this.l,n=this.h||void 0;e.Wa&&(e.h.info("Origin Trials enabled."),n7(F8(e.hb,e,t))),w7(0),e.W=t,e.aa=n||{},e.N=e.X,e.F=wte(e,null,e.W),ute(e)},Ate.prototype.close=function(){ste(this.g)},Ate.prototype.u=function(e){if("string"===typeof e){var t={};t.__data__=e,cte(this.g,t)}else this.v?((t={}).__data__=K9(e),cte(this.g,t)):cte(this.g,e)},Ate.prototype.M=function(){this.g.j=null,delete this.j,ste(this.g),delete this.g,Ate.Z.M.call(this)},B8(kte,M7),B8(jte,O7),B8(Ite,Pte),Ite.prototype.xa=function(){X9(this.g,"a")},Ite.prototype.wa=function(e){X9(this.g,new kte(e))},Ite.prototype.va=function(e){X9(this.g,new jte(e))},Ite.prototype.ua=function(){X9(this.g,"b")},Cte.prototype.createWebChannel=Cte.prototype.g,Ate.prototype.send=Ate.prototype.u,Ate.prototype.open=Ate.prototype.m,Ate.prototype.close=Ate.prototype.close,C7.NO_ERROR=0,C7.TIMEOUT=8,C7.HTTP_ERROR=6,A7.COMPLETE="complete",I7.EventType=T7,T7.OPEN="a",T7.CLOSE="b",T7.ERROR="c",T7.MESSAGE="d",q9.prototype.listen=q9.prototype.N,Hee.prototype.listenOnce=Hee.prototype.O,Hee.prototype.getLastError=Hee.prototype.La,Hee.prototype.getLastErrorCode=Hee.prototype.Da,Hee.prototype.getStatus=Hee.prototype.ba,Hee.prototype.getResponseJson=Hee.prototype.Qa,Hee.prototype.getResponseText=Hee.prototype.ga,Hee.prototype.send=Hee.prototype.ea;var Gte=function(){return new Cte},Tte=function(){return _7()},Mte=C7,Ote=A7,Rte=y7,Dte={rb:0,ub:1,vb:2,Ob:3,Tb:4,Qb:5,Rb:6,Pb:7,Nb:8,Sb:9,PROXY:10,NOPROXY:11,Lb:12,Hb:13,Ib:14,Gb:15,Jb:16,Kb:17,nb:18,mb:19,ob:20},Nte=Lee,Lte=I7,Vte=Hee;var Fte=function(){function e(e,t){var n=this;this.previousValue=e,t&&(t.sequenceNumberHandler=function(e){return n.t(e)},this.i=function(e){return t.writeSequenceNumber(e)})}return e.prototype.t=function(e){return this.previousValue=Math.max(e,this.previousValue),this.previousValue},e.prototype.next=function(){var e=++this.previousValue;return this.i&&this.i(e),e},e}();Fte.o=-1;var zte={OK:"ok",CANCELLED:"cancelled",UNKNOWN:"unknown",INVALID_ARGUMENT:"invalid-argument",DEADLINE_EXCEEDED:"deadline-exceeded",NOT_FOUND:"not-found",ALREADY_EXISTS:"already-exists",PERMISSION_DENIED:"permission-denied",UNAUTHENTICATED:"unauthenticated",RESOURCE_EXHAUSTED:"resource-exhausted",FAILED_PRECONDITION:"failed-precondition",ABORTED:"aborted",OUT_OF_RANGE:"out-of-range",UNIMPLEMENTED:"unimplemented",INTERNAL:"internal",UNAVAILABLE:"unavailable",DATA_LOSS:"data-loss"},Bte=function(e){function t(t,n){var r=this;return(r=e.call(this,n)||this).code=t,r.message=n,r.name="FirebaseError",r.toString=function(){return r.name+": [code="+r.code+"]: "+r.message},r}return ui(t,e),t}(Error),Ute=new qi("@firebase/firestore");function Wte(){return Ute.logLevel}function Hte(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];if(Ute.logLevel<=Vi.DEBUG){var r=t.map(Yte);Ute.debug.apply(Ute,mi(["Firestore (8.10.1): "+e],r))}}function qte(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];if(Ute.logLevel<=Vi.ERROR){var r=t.map(Yte);Ute.error.apply(Ute,mi(["Firestore (8.10.1): "+e],r))}}function Xte(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];if(Ute.logLevel<=Vi.WARN){var r=t.map(Yte);Ute.warn.apply(Ute,mi(["Firestore (8.10.1): "+e],r))}}function Yte(e){if("string"==typeof e)return e;try{return t=e,JSON.stringify(t)}catch(t){return e}var t}function Kte(e){void 0===e&&(e="Unexpected state");var t="FIRESTORE (8.10.1) INTERNAL ASSERTION FAILED: "+e;throw qte(t),new Error(t)}function Zte(e,t){e||Kte()}function $te(e,t){return e}function Jte(e){var t="undefined"!=typeof self&&(self.crypto||self.msCrypto),n=new Uint8Array(e);if(t&&"function"==typeof t.getRandomValues)t.getRandomValues(n);else for(var r=0;r<e;r++)n[r]=Math.floor(256*Math.random());return n}var Qte=function(){function e(){}return e.u=function(){for(var e="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789",t=62*Math.floor(256/62),n="";n.length<20;)for(var r=Jte(40),i=0;i<r.length;++i)n.length<20&&r[i]<t&&(n+=e.charAt(r[i]%62));return n},e}();function ene(e,t){return e<t?-1:e>t?1:0}function tne(e,t,n){return e.length===t.length&&e.every((function(e,r){return n(e,t[r])}))}function nne(e){return e+"\0"}var rne=function(){function e(e,t){if(this.seconds=e,this.nanoseconds=t,t<0)throw new Bte(zte.INVALID_ARGUMENT,"Timestamp nanoseconds out of range: "+t);if(t>=1e9)throw new Bte(zte.INVALID_ARGUMENT,"Timestamp nanoseconds out of range: "+t);if(e<-62135596800)throw new Bte(zte.INVALID_ARGUMENT,"Timestamp seconds out of range: "+e);if(e>=253402300800)throw new Bte(zte.INVALID_ARGUMENT,"Timestamp seconds out of range: "+e)}return e.now=function(){return e.fromMillis(Date.now())},e.fromDate=function(t){return e.fromMillis(t.getTime())},e.fromMillis=function(t){var n=Math.floor(t/1e3);return new e(n,Math.floor(1e6*(t-1e3*n)))},e.prototype.toDate=function(){return new Date(this.toMillis())},e.prototype.toMillis=function(){return 1e3*this.seconds+this.nanoseconds/1e6},e.prototype._compareTo=function(e){return this.seconds===e.seconds?ene(this.nanoseconds,e.nanoseconds):ene(this.seconds,e.seconds)},e.prototype.isEqual=function(e){return e.seconds===this.seconds&&e.nanoseconds===this.nanoseconds},e.prototype.toString=function(){return"Timestamp(seconds="+this.seconds+", nanoseconds="+this.nanoseconds+")"},e.prototype.toJSON=function(){return{seconds:this.seconds,nanoseconds:this.nanoseconds}},e.prototype.valueOf=function(){var e=this.seconds- -62135596800;return String(e).padStart(12,"0")+"."+String(this.nanoseconds).padStart(9,"0")},e}(),ine=function(){function e(e){this.timestamp=e}return e.fromTimestamp=function(t){return new e(t)},e.min=function(){return new e(new rne(0,0))},e.prototype.compareTo=function(e){return this.timestamp._compareTo(e.timestamp)},e.prototype.isEqual=function(e){return this.timestamp.isEqual(e.timestamp)},e.prototype.toMicroseconds=function(){return 1e6*this.timestamp.seconds+this.timestamp.nanoseconds/1e3},e.prototype.toString=function(){return"SnapshotVersion("+this.timestamp.toString()+")"},e.prototype.toTimestamp=function(){return this.timestamp},e}();function one(e){var t=0;for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t++;return t}function sne(e,t){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t(n,e[n])}function ane(e){for(var t in e)if(Object.prototype.hasOwnProperty.call(e,t))return!1;return!0}var lne=function(){function e(e,t,n){void 0===t?t=0:t>e.length&&Kte(),void 0===n?n=e.length-t:n>e.length-t&&Kte(),this.segments=e,this.offset=t,this.len=n}return Object.defineProperty(e.prototype,"length",{get:function(){return this.len},enumerable:!1,configurable:!0}),e.prototype.isEqual=function(t){return 0===e.comparator(this,t)},e.prototype.child=function(t){var n=this.segments.slice(this.offset,this.limit());return t instanceof e?t.forEach((function(e){n.push(e)})):n.push(t),this.construct(n)},e.prototype.limit=function(){return this.offset+this.length},e.prototype.popFirst=function(e){return e=void 0===e?1:e,this.construct(this.segments,this.offset+e,this.length-e)},e.prototype.popLast=function(){return this.construct(this.segments,this.offset,this.length-1)},e.prototype.firstSegment=function(){return this.segments[this.offset]},e.prototype.lastSegment=function(){return this.get(this.length-1)},e.prototype.get=function(e){return this.segments[this.offset+e]},e.prototype.isEmpty=function(){return 0===this.length},e.prototype.isPrefixOf=function(e){if(e.length<this.length)return!1;for(var t=0;t<this.length;t++)if(this.get(t)!==e.get(t))return!1;return!0},e.prototype.isImmediateParentOf=function(e){if(this.length+1!==e.length)return!1;for(var t=0;t<this.length;t++)if(this.get(t)!==e.get(t))return!1;return!0},e.prototype.forEach=function(e){for(var t=this.offset,n=this.limit();t<n;t++)e(this.segments[t])},e.prototype.toArray=function(){return this.segments.slice(this.offset,this.limit())},e.comparator=function(e,t){for(var n=Math.min(e.length,t.length),r=0;r<n;r++){var i=e.get(r),o=t.get(r);if(i<o)return-1;if(i>o)return 1}return e.length<t.length?-1:e.length>t.length?1:0},e}(),cne=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return ui(t,e),t.prototype.construct=function(e,n,r){return new t(e,n,r)},t.prototype.canonicalString=function(){return this.toArray().join("/")},t.prototype.toString=function(){return this.canonicalString()},t.fromString=function(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];for(var r=[],i=0,o=e;i<o.length;i++){var s=o[i];if(s.indexOf("//")>=0)throw new Bte(zte.INVALID_ARGUMENT,"Invalid segment ("+s+"). Paths must not contain // in them.");r.push.apply(r,s.split("/").filter((function(e){return e.length>0})))}return new t(r)},t.emptyPath=function(){return new t([])},t}(lne),une=/^[_a-zA-Z][_a-zA-Z0-9]*$/,dne=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return ui(t,e),t.prototype.construct=function(e,n,r){return new t(e,n,r)},t.isValidIdentifier=function(e){return une.test(e)},t.prototype.canonicalString=function(){return this.toArray().map((function(e){return e=e.replace(/\\/g,"\\\\").replace(/`/g,"\\`"),t.isValidIdentifier(e)||(e="`"+e+"`"),e})).join(".")},t.prototype.toString=function(){return this.canonicalString()},t.prototype.isKeyField=function(){return 1===this.length&&"__name__"===this.get(0)},t.keyField=function(){return new t(["__name__"])},t.fromServerFormat=function(e){for(var n=[],r="",i=0,o=function(){if(0===r.length)throw new Bte(zte.INVALID_ARGUMENT,"Invalid field path ("+e+"). Paths must not be empty, begin with '.', end with '.', or contain '..'");n.push(r),r=""},s=!1;i<e.length;){var a=e[i];if("\\"===a){if(i+1===e.length)throw new Bte(zte.INVALID_ARGUMENT,"Path has trailing escape character: "+e);var l=e[i+1];if("\\"!==l&&"."!==l&&"`"!==l)throw new Bte(zte.INVALID_ARGUMENT,"Path has invalid escape sequence: "+e);r+=l,i+=2}else"`"===a?(s=!s,i++):"."!==a||s?(r+=a,i++):(o(),i++)}if(o(),s)throw new Bte(zte.INVALID_ARGUMENT,"Unterminated ` in path: "+e);return new t(n)},t.emptyPath=function(){return new t([])},t}(lne),hne=function(){function e(e){this.fields=e,e.sort(dne.comparator)}return e.prototype.covers=function(e){for(var t=0,n=this.fields;t<n.length;t++)if(n[t].isPrefixOf(e))return!0;return!1},e.prototype.isEqual=function(e){return tne(this.fields,e.fields,(function(e,t){return e.isEqual(t)}))},e}(),pne=function(){function e(e){this.binaryString=e}return e.fromBase64String=function(t){return new e(atob(t))},e.fromUint8Array=function(t){return new e(function(e){for(var t="",n=0;n<e.length;++n)t+=String.fromCharCode(e[n]);return t}(t))},e.prototype.toBase64=function(){return e=this.binaryString,btoa(e);var e},e.prototype.toUint8Array=function(){return function(e){for(var t=new Uint8Array(e.length),n=0;n<e.length;n++)t[n]=e.charCodeAt(n);return t}(this.binaryString)},e.prototype.approximateByteSize=function(){return 2*this.binaryString.length},e.prototype.compareTo=function(e){return ene(this.binaryString,e.binaryString)},e.prototype.isEqual=function(e){return this.binaryString===e.binaryString},e}();pne.EMPTY_BYTE_STRING=new pne("");var fne=new RegExp(/^\d{4}-\d\d-\d\dT\d\d:\d\d:\d\d(?:\.(\d+))?Z$/);function gne(e){if(Zte(!!e),"string"==typeof e){var t=0,n=fne.exec(e);if(Zte(!!n),n[1]){var r=n[1];r=(r+"000000000").substr(0,9),t=Number(r)}var i=new Date(e);return{seconds:Math.floor(i.getTime()/1e3),nanos:t}}return{seconds:mne(e.seconds),nanos:mne(e.nanos)}}function mne(e){return"number"==typeof e?e:"string"==typeof e?Number(e):0}function yne(e){return"string"==typeof e?pne.fromBase64String(e):pne.fromUint8Array(e)}function vne(e){var t,n;return"server_timestamp"===(null===(n=((null===(t=null==e?void 0:e.mapValue)||void 0===t?void 0:t.fields)||{}).__type__)||void 0===n?void 0:n.stringValue)}function _ne(e){var t=e.mapValue.fields.__previous_value__;return vne(t)?_ne(t):t}function bne(e){var t=gne(e.mapValue.fields.__local_write_time__.timestampValue);return new rne(t.seconds,t.nanos)}function xne(e){return null==e}function Sne(e){return 0===e&&1/e==-1/0}function wne(e){return"number"==typeof e&&Number.isInteger(e)&&!Sne(e)&&e<=Number.MAX_SAFE_INTEGER&&e>=Number.MIN_SAFE_INTEGER}var Ene=function(){function e(e){this.path=e}return e.fromPath=function(t){return new e(cne.fromString(t))},e.fromName=function(t){return new e(cne.fromString(t).popFirst(5))},e.prototype.hasCollectionId=function(e){return this.path.length>=2&&this.path.get(this.path.length-2)===e},e.prototype.isEqual=function(e){return null!==e&&0===cne.comparator(this.path,e.path)},e.prototype.toString=function(){return this.path.toString()},e.comparator=function(e,t){return cne.comparator(e.path,t.path)},e.isDocumentKey=function(e){return e.length%2==0},e.fromSegments=function(t){return new e(new cne(t.slice()))},e}();function Pne(e){return"nullValue"in e?0:"booleanValue"in e?1:"integerValue"in e||"doubleValue"in e?2:"timestampValue"in e?3:"stringValue"in e?5:"bytesValue"in e?6:"referenceValue"in e?7:"geoPointValue"in e?8:"arrayValue"in e?9:"mapValue"in e?vne(e)?4:10:Kte()}function Cne(e,t){var n=Pne(e);if(n!==Pne(t))return!1;switch(n){case 0:return!0;case 1:return e.booleanValue===t.booleanValue;case 4:return bne(e).isEqual(bne(t));case 3:return function(e,t){if("string"==typeof e.timestampValue&&"string"==typeof t.timestampValue&&e.timestampValue.length===t.timestampValue.length)return e.timestampValue===t.timestampValue;var n=gne(e.timestampValue),r=gne(t.timestampValue);return n.seconds===r.seconds&&n.nanos===r.nanos}(e,t);case 5:return e.stringValue===t.stringValue;case 6:return function(e,t){return yne(e.bytesValue).isEqual(yne(t.bytesValue))}(e,t);case 7:return e.referenceValue===t.referenceValue;case 8:return function(e,t){return mne(e.geoPointValue.latitude)===mne(t.geoPointValue.latitude)&&mne(e.geoPointValue.longitude)===mne(t.geoPointValue.longitude)}(e,t);case 2:return function(e,t){if("integerValue"in e&&"integerValue"in t)return mne(e.integerValue)===mne(t.integerValue);if("doubleValue"in e&&"doubleValue"in t){var n=mne(e.doubleValue),r=mne(t.doubleValue);return n===r?Sne(n)===Sne(r):isNaN(n)&&isNaN(r)}return!1}(e,t);case 9:return tne(e.arrayValue.values||[],t.arrayValue.values||[],Cne);case 10:return function(e,t){var n=e.mapValue.fields||{},r=t.mapValue.fields||{};if(one(n)!==one(r))return!1;for(var i in n)if(n.hasOwnProperty(i)&&(void 0===r[i]||!Cne(n[i],r[i])))return!1;return!0}(e,t);default:return Kte()}}function Ane(e,t){return void 0!==(e.values||[]).find((function(e){return Cne(e,t)}))}function kne(e,t){var n=Pne(e),r=Pne(t);if(n!==r)return ene(n,r);switch(n){case 0:return 0;case 1:return ene(e.booleanValue,t.booleanValue);case 2:return function(e,t){var n=mne(e.integerValue||e.doubleValue),r=mne(t.integerValue||t.doubleValue);return n<r?-1:n>r?1:n===r?0:isNaN(n)?isNaN(r)?0:-1:1}(e,t);case 3:return jne(e.timestampValue,t.timestampValue);case 4:return jne(bne(e),bne(t));case 5:return ene(e.stringValue,t.stringValue);case 6:return function(e,t){var n=yne(e),r=yne(t);return n.compareTo(r)}(e.bytesValue,t.bytesValue);case 7:return function(e,t){for(var n=e.split("/"),r=t.split("/"),i=0;i<n.length&&i<r.length;i++){var o=ene(n[i],r[i]);if(0!==o)return o}return ene(n.length,r.length)}(e.referenceValue,t.referenceValue);case 8:return function(e,t){var n=ene(mne(e.latitude),mne(t.latitude));return 0!==n?n:ene(mne(e.longitude),mne(t.longitude))}(e.geoPointValue,t.geoPointValue);case 9:return function(e,t){for(var n=e.values||[],r=t.values||[],i=0;i<n.length&&i<r.length;++i){var o=kne(n[i],r[i]);if(o)return o}return ene(n.length,r.length)}(e.arrayValue,t.arrayValue);case 10:return function(e,t){var n=e.fields||{},r=Object.keys(n),i=t.fields||{},o=Object.keys(i);r.sort(),o.sort();for(var s=0;s<r.length&&s<o.length;++s){var a=ene(r[s],o[s]);if(0!==a)return a;var l=kne(n[r[s]],i[o[s]]);if(0!==l)return l}return ene(r.length,o.length)}(e.mapValue,t.mapValue);default:throw Kte()}}function jne(e,t){if("string"==typeof e&&"string"==typeof t&&e.length===t.length)return ene(e,t);var n=gne(e),r=gne(t),i=ene(n.seconds,r.seconds);return 0!==i?i:ene(n.nanos,r.nanos)}function Ine(e){return Gne(e)}function Gne(e){return"nullValue"in e?"null":"booleanValue"in e?""+e.booleanValue:"integerValue"in e?""+e.integerValue:"doubleValue"in e?""+e.doubleValue:"timestampValue"in e?function(e){var t=gne(e);return"time("+t.seconds+","+t.nanos+")"}(e.timestampValue):"stringValue"in e?e.stringValue:"bytesValue"in e?yne(e.bytesValue).toBase64():"referenceValue"in e?(n=e.referenceValue,Ene.fromName(n).toString()):"geoPointValue"in e?"geo("+(t=e.geoPointValue).latitude+","+t.longitude+")":"arrayValue"in e?function(e){for(var t="[",n=!0,r=0,i=e.values||[];r<i.length;r++)n?n=!1:t+=",",t+=Gne(i[r]);return t+"]"}(e.arrayValue):"mapValue"in e?function(e){for(var t="{",n=!0,r=0,i=Object.keys(e.fields||{}).sort();r<i.length;r++){var o=i[r];n?n=!1:t+=",",t+=o+":"+Gne(e.fields[o])}return t+"}"}(e.mapValue):Kte();var t,n}function Tne(e,t){return{referenceValue:"projects/"+e.projectId+"/databases/"+e.database+"/documents/"+t.path.canonicalString()}}function Mne(e){return!!e&&"integerValue"in e}function One(e){return!!e&&"arrayValue"in e}function Rne(e){return!!e&&"nullValue"in e}function Dne(e){return!!e&&"doubleValue"in e&&isNaN(Number(e.doubleValue))}function Nne(e){return!!e&&"mapValue"in e}function Lne(e){if(e.geoPointValue)return{geoPointValue:Object.assign({},e.geoPointValue)};if(e.timestampValue&&"object"==typeof e.timestampValue)return{timestampValue:Object.assign({},e.timestampValue)};if(e.mapValue){var t={mapValue:{fields:{}}};return sne(e.mapValue.fields,(function(e,n){return t.mapValue.fields[e]=Lne(n)})),t}if(e.arrayValue){for(var n={arrayValue:{values:[]}},r=0;r<(e.arrayValue.values||[]).length;++r)n.arrayValue.values[r]=Lne(e.arrayValue.values[r]);return n}return Object.assign({},e)}var Vne=function(){function e(e){this.value=e}return e.empty=function(){return new e({mapValue:{}})},e.prototype.field=function(e){if(e.isEmpty())return this.value;for(var t=this.value,n=0;n<e.length-1;++n)if(!Nne(t=(t.mapValue.fields||{})[e.get(n)]))return null;return(t=(t.mapValue.fields||{})[e.lastSegment()])||null},e.prototype.set=function(e,t){this.getFieldsMap(e.popLast())[e.lastSegment()]=Lne(t)},e.prototype.setAll=function(e){var t=this,n=dne.emptyPath(),r={},i=[];e.forEach((function(e,o){if(!n.isImmediateParentOf(o)){var s=t.getFieldsMap(n);t.applyChanges(s,r,i),r={},i=[],n=o.popLast()}e?r[o.lastSegment()]=Lne(e):i.push(o.lastSegment())}));var o=this.getFieldsMap(n);this.applyChanges(o,r,i)},e.prototype.delete=function(e){var t=this.field(e.popLast());Nne(t)&&t.mapValue.fields&&delete t.mapValue.fields[e.lastSegment()]},e.prototype.isEqual=function(e){return Cne(this.value,e.value)},e.prototype.getFieldsMap=function(e){var t=this.value;t.mapValue.fields||(t.mapValue={fields:{}});for(var n=0;n<e.length;++n){var r=t.mapValue.fields[e.get(n)];Nne(r)&&r.mapValue.fields||(r={mapValue:{fields:{}}},t.mapValue.fields[e.get(n)]=r),t=r}return t.mapValue.fields},e.prototype.applyChanges=function(e,t,n){sne(t,(function(t,n){return e[t]=n}));for(var r=0,i=n;r<i.length;r++){var o=i[r];delete e[o]}},e.prototype.clone=function(){return new e(Lne(this.value))},e}();function Fne(e){var t=[];return sne(e.fields,(function(e,n){var r=new dne([e]);if(Nne(n)){var i=Fne(n.mapValue).fields;if(0===i.length)t.push(r);else for(var o=0,s=i;o<s.length;o++){var a=s[o];t.push(r.child(a))}}else t.push(r)})),new hne(t)}var zne=function(){function e(e,t,n,r,i){this.key=e,this.documentType=t,this.version=n,this.data=r,this.documentState=i}return e.newInvalidDocument=function(t){return new e(t,0,ine.min(),Vne.empty(),0)},e.newFoundDocument=function(t,n,r){return new e(t,1,n,r,0)},e.newNoDocument=function(t,n){return new e(t,2,n,Vne.empty(),0)},e.newUnknownDocument=function(t,n){return new e(t,3,n,Vne.empty(),2)},e.prototype.convertToFoundDocument=function(e,t){return this.version=e,this.documentType=1,this.data=t,this.documentState=0,this},e.prototype.convertToNoDocument=function(e){return this.version=e,this.documentType=2,this.data=Vne.empty(),this.documentState=0,this},e.prototype.convertToUnknownDocument=function(e){return this.version=e,this.documentType=3,this.data=Vne.empty(),this.documentState=2,this},e.prototype.setHasCommittedMutations=function(){return this.documentState=2,this},e.prototype.setHasLocalMutations=function(){return this.documentState=1,this},Object.defineProperty(e.prototype,"hasLocalMutations",{get:function(){return 1===this.documentState},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"hasCommittedMutations",{get:function(){return 2===this.documentState},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"hasPendingWrites",{get:function(){return this.hasLocalMutations||this.hasCommittedMutations},enumerable:!1,configurable:!0}),e.prototype.isValidDocument=function(){return 0!==this.documentType},e.prototype.isFoundDocument=function(){return 1===this.documentType},e.prototype.isNoDocument=function(){return 2===this.documentType},e.prototype.isUnknownDocument=function(){return 3===this.documentType},e.prototype.isEqual=function(t){return t instanceof e&&this.key.isEqual(t.key)&&this.version.isEqual(t.version)&&this.documentType===t.documentType&&this.documentState===t.documentState&&this.data.isEqual(t.data)},e.prototype.clone=function(){return new e(this.key,this.documentType,this.version,this.data.clone(),this.documentState)},e.prototype.toString=function(){return"Document("+this.key+", "+this.version+", "+JSON.stringify(this.data.value)+", {documentType: "+this.documentType+"}), {documentState: "+this.documentState+"})"},e}(),Bne=function(e,t,n,r,i,o,s){void 0===t&&(t=null),void 0===n&&(n=[]),void 0===r&&(r=[]),void 0===i&&(i=null),void 0===o&&(o=null),void 0===s&&(s=null),this.path=e,this.collectionGroup=t,this.orderBy=n,this.filters=r,this.limit=i,this.startAt=o,this.endAt=s,this.h=null};function Une(e,t,n,r,i,o,s){return void 0===t&&(t=null),void 0===n&&(n=[]),void 0===r&&(r=[]),void 0===i&&(i=null),void 0===o&&(o=null),void 0===s&&(s=null),new Bne(e,t,n,r,i,o,s)}function Wne(e){var t=$te(e);if(null===t.h){var n=t.path.canonicalString();null!==t.collectionGroup&&(n+="|cg:"+t.collectionGroup),n+="|f:",n+=t.filters.map((function(e){return function(e){return e.field.canonicalString()+e.op.toString()+Ine(e.value)}(e)})).join(","),n+="|ob:",n+=t.orderBy.map((function(e){return function(e){return e.field.canonicalString()+e.dir}(e)})).join(","),xne(t.limit)||(n+="|l:",n+=t.limit),t.startAt&&(n+="|lb:",n+=rre(t.startAt)),t.endAt&&(n+="|ub:",n+=rre(t.endAt)),t.h=n}return t.h}function Hne(e,t){if(e.limit!==t.limit)return!1;if(e.orderBy.length!==t.orderBy.length)return!1;for(var n=0;n<e.orderBy.length;n++)if(!ore(e.orderBy[n],t.orderBy[n]))return!1;if(e.filters.length!==t.filters.length)return!1;for(var r=0;r<e.filters.length;r++)if(i=e.filters[r],o=t.filters[r],i.op!==o.op||!i.field.isEqual(o.field)||!Cne(i.value,o.value))return!1;var i,o;return e.collectionGroup===t.collectionGroup&&!!e.path.isEqual(t.path)&&!!are(e.startAt,t.startAt)&&are(e.endAt,t.endAt)}function qne(e){return Ene.isDocumentKey(e.path)&&null===e.collectionGroup&&0===e.filters.length}var Xne=function(e){function t(t,n,r){var i=this;return(i=e.call(this)||this).field=t,i.op=n,i.value=r,i}return ui(t,e),t.create=function(e,n,r){return e.isKeyField()?"in"===n||"not-in"===n?this.l(e,n,r):new Yne(e,n,r):"array-contains"===n?new Jne(e,r):"in"===n?new Qne(e,r):"not-in"===n?new ere(e,r):"array-contains-any"===n?new tre(e,r):new t(e,n,r)},t.l=function(e,t,n){return"in"===t?new Kne(e,n):new Zne(e,n)},t.prototype.matches=function(e){var t=e.data.field(this.field);return"!="===this.op?null!==t&&this.m(kne(t,this.value)):null!==t&&Pne(this.value)===Pne(t)&&this.m(kne(t,this.value))},t.prototype.m=function(e){switch(this.op){case"<":return e<0;case"<=":return e<=0;case"==":return 0===e;case"!=":return 0!==e;case">":return e>0;case">=":return e>=0;default:return Kte()}},t.prototype.g=function(){return["<","<=",">",">=","!=","not-in"].indexOf(this.op)>=0},t}((function(){})),Yne=function(e){function t(t,n,r){var i=this;return(i=e.call(this,t,n,r)||this).key=Ene.fromName(r.referenceValue),i}return ui(t,e),t.prototype.matches=function(e){var t=Ene.comparator(e.key,this.key);return this.m(t)},t}(Xne),Kne=function(e){function t(t,n){var r=this;return(r=e.call(this,t,"in",n)||this).keys=$ne("in",n),r}return ui(t,e),t.prototype.matches=function(e){return this.keys.some((function(t){return t.isEqual(e.key)}))},t}(Xne),Zne=function(e){function t(t,n){var r=this;return(r=e.call(this,t,"not-in",n)||this).keys=$ne("not-in",n),r}return ui(t,e),t.prototype.matches=function(e){return!this.keys.some((function(t){return t.isEqual(e.key)}))},t}(Xne);function $ne(e,t){var n;return((null===(n=t.arrayValue)||void 0===n?void 0:n.values)||[]).map((function(e){return Ene.fromName(e.referenceValue)}))}var Jne=function(e){function t(t,n){return e.call(this,t,"array-contains",n)||this}return ui(t,e),t.prototype.matches=function(e){var t=e.data.field(this.field);return One(t)&&Ane(t.arrayValue,this.value)},t}(Xne),Qne=function(e){function t(t,n){return e.call(this,t,"in",n)||this}return ui(t,e),t.prototype.matches=function(e){var t=e.data.field(this.field);return null!==t&&Ane(this.value.arrayValue,t)},t}(Xne),ere=function(e){function t(t,n){return e.call(this,t,"not-in",n)||this}return ui(t,e),t.prototype.matches=function(e){if(Ane(this.value.arrayValue,{nullValue:"NULL_VALUE"}))return!1;var t=e.data.field(this.field);return null!==t&&!Ane(this.value.arrayValue,t)},t}(Xne),tre=function(e){function t(t,n){return e.call(this,t,"array-contains-any",n)||this}return ui(t,e),t.prototype.matches=function(e){var t=this,n=e.data.field(this.field);return!(!One(n)||!n.arrayValue.values)&&n.arrayValue.values.some((function(e){return Ane(t.value.arrayValue,e)}))},t}(Xne),nre=function(e,t){this.position=e,this.before=t};function rre(e){return(e.before?"b":"a")+":"+e.position.map((function(e){return Ine(e)})).join(",")}var ire=function(e,t){void 0===t&&(t="asc"),this.field=e,this.dir=t};function ore(e,t){return e.dir===t.dir&&e.field.isEqual(t.field)}function sre(e,t,n){for(var r=0,i=0;i<e.position.length;i++){var o=t[i],s=e.position[i];if(r=o.field.isKeyField()?Ene.comparator(Ene.fromName(s.referenceValue),n.key):kne(s,n.data.field(o.field)),"desc"===o.dir&&(r*=-1),0!==r)break}return e.before?r<=0:r<0}function are(e,t){if(null===e)return null===t;if(null===t)return!1;if(e.before!==t.before||e.position.length!==t.position.length)return!1;for(var n=0;n<e.position.length;n++)if(!Cne(e.position[n],t.position[n]))return!1;return!0}var lre=function(e,t,n,r,i,o,s,a){void 0===t&&(t=null),void 0===n&&(n=[]),void 0===r&&(r=[]),void 0===i&&(i=null),void 0===o&&(o="F"),void 0===s&&(s=null),void 0===a&&(a=null),this.path=e,this.collectionGroup=t,this.explicitOrderBy=n,this.filters=r,this.limit=i,this.limitType=o,this.startAt=s,this.endAt=a,this.p=null,this.T=null,this.startAt,this.endAt};function cre(e,t,n,r,i,o,s,a){return new lre(e,t,n,r,i,o,s,a)}function ure(e){return new lre(e)}function dre(e){return!xne(e.limit)&&"F"===e.limitType}function hre(e){return!xne(e.limit)&&"L"===e.limitType}function pre(e){return e.explicitOrderBy.length>0?e.explicitOrderBy[0].field:null}function fre(e){for(var t=0,n=e.filters;t<n.length;t++){var r=n[t];if(r.g())return r.field}return null}function gre(e){return null!==e.collectionGroup}function mre(e){var t=$te(e);if(null===t.p){t.p=[];var n=fre(t),r=pre(t);if(null!==n&&null===r)n.isKeyField()||t.p.push(new ire(n)),t.p.push(new ire(dne.keyField(),"asc"));else{for(var i=!1,o=0,s=t.explicitOrderBy;o<s.length;o++){var a=s[o];t.p.push(a),a.field.isKeyField()&&(i=!0)}if(!i){var l=t.explicitOrderBy.length>0?t.explicitOrderBy[t.explicitOrderBy.length-1].dir:"asc";t.p.push(new ire(dne.keyField(),l))}}}return t.p}function yre(e){var t=$te(e);if(!t.T)if("F"===t.limitType)t.T=Une(t.path,t.collectionGroup,mre(t),t.filters,t.limit,t.startAt,t.endAt);else{for(var n=[],r=0,i=mre(t);r<i.length;r++){var o=i[r],s="desc"===o.dir?"asc":"desc";n.push(new ire(o.field,s))}var a=t.endAt?new nre(t.endAt.position,!t.endAt.before):null,l=t.startAt?new nre(t.startAt.position,!t.startAt.before):null;t.T=Une(t.path,t.collectionGroup,n,t.filters,t.limit,a,l)}return t.T}function vre(e,t,n){return new lre(e.path,e.collectionGroup,e.explicitOrderBy.slice(),e.filters.slice(),t,n,e.startAt,e.endAt)}function _re(e,t){return Hne(yre(e),yre(t))&&e.limitType===t.limitType}function bre(e){return Wne(yre(e))+"|lt:"+e.limitType}function xre(e){return"Query(target="+function(e){var t=e.path.canonicalString();return null!==e.collectionGroup&&(t+=" collectionGroup="+e.collectionGroup),e.filters.length>0&&(t+=", filters: ["+e.filters.map((function(e){return(t=e).field.canonicalString()+" "+t.op+" "+Ine(t.value);var t})).join(", ")+"]"),xne(e.limit)||(t+=", limit: "+e.limit),e.orderBy.length>0&&(t+=", orderBy: ["+e.orderBy.map((function(e){return function(e){return e.field.canonicalString()+" ("+e.dir+")"}(e)})).join(", ")+"]"),e.startAt&&(t+=", startAt: "+rre(e.startAt)),e.endAt&&(t+=", endAt: "+rre(e.endAt)),"Target("+t+")"}(yre(e))+"; limitType="+e.limitType+")"}function Sre(e,t){return t.isFoundDocument()&&function(e,t){var n=t.key.path;return null!==e.collectionGroup?t.key.hasCollectionId(e.collectionGroup)&&e.path.isPrefixOf(n):Ene.isDocumentKey(e.path)?e.path.isEqual(n):e.path.isImmediateParentOf(n)}(e,t)&&function(e,t){for(var n=0,r=e.explicitOrderBy;n<r.length;n++){var i=r[n];if(!i.field.isKeyField()&&null===t.data.field(i.field))return!1}return!0}(e,t)&&function(e,t){for(var n=0,r=e.filters;n<r.length;n++)if(!r[n].matches(t))return!1;return!0}(e,t)&&function(e,t){return!(e.startAt&&!sre(e.startAt,mre(e),t))&&(!e.endAt||!sre(e.endAt,mre(e),t))}(e,t)}function wre(e){return function(t,n){for(var r=!1,i=0,o=mre(e);i<o.length;i++){var s=o[i],a=Ere(s,t,n);if(0!==a)return a;r=r||s.field.isKeyField()}return 0}}function Ere(e,t,n){var r=e.field.isKeyField()?Ene.comparator(t.key,n.key):function(e,t,n){var r=t.data.field(e),i=n.data.field(e);return null!==r&&null!==i?kne(r,i):Kte()}(e.field,t,n);switch(e.dir){case"asc":return r;case"desc":return-1*r;default:return Kte()}}function Pre(e,t){if(e.I){if(isNaN(t))return{doubleValue:"NaN"};if(t===1/0)return{doubleValue:"Infinity"};if(t===-1/0)return{doubleValue:"-Infinity"}}return{doubleValue:Sne(t)?"-0":t}}function Cre(e){return{integerValue:""+e}}function Are(e,t){return wne(t)?Cre(t):Pre(e,t)}var kre=function(){this._=void 0};function jre(e,t,n){return e instanceof Tre?function(e,t){var n={fields:{__type__:{stringValue:"server_timestamp"},__local_write_time__:{timestampValue:{seconds:e.seconds,nanos:e.nanoseconds}}}};return t&&(n.fields.__previous_value__=t),{mapValue:n}}(n,t):e instanceof Mre?Ore(e,t):e instanceof Rre?Dre(e,t):function(e,t){var n=Gre(e,t),r=Lre(n)+Lre(e.A);return Mne(n)&&Mne(e.A)?Cre(r):Pre(e.R,r)}(e,t)}function Ire(e,t,n){return e instanceof Mre?Ore(e,t):e instanceof Rre?Dre(e,t):n}function Gre(e,t){return e instanceof Nre?Mne(n=t)||function(e){return!!e&&"doubleValue"in e}(n)?t:{integerValue:0}:null;var n}var Tre=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return ui(t,e),t}(kre),Mre=function(e){function t(t){var n=this;return(n=e.call(this)||this).elements=t,n}return ui(t,e),t}(kre);function Ore(e,t){for(var n=Vre(t),r=function(e){n.some((function(t){return Cne(t,e)}))||n.push(e)},i=0,o=e.elements;i<o.length;i++)r(o[i]);return{arrayValue:{values:n}}}var Rre=function(e){function t(t){var n=this;return(n=e.call(this)||this).elements=t,n}return ui(t,e),t}(kre);function Dre(e,t){for(var n=Vre(t),r=function(e){n=n.filter((function(t){return!Cne(t,e)}))},i=0,o=e.elements;i<o.length;i++)r(o[i]);return{arrayValue:{values:n}}}var Nre=function(e){function t(t,n){var r=this;return(r=e.call(this)||this).R=t,r.A=n,r}return ui(t,e),t}(kre);function Lre(e){return mne(e.integerValue||e.doubleValue)}function Vre(e){return One(e)&&e.arrayValue.values?e.arrayValue.values.slice():[]}var Fre=function(e,t){this.field=e,this.transform=t},zre=function(e,t){this.version=e,this.transformResults=t},Bre=function(){function e(e,t){this.updateTime=e,this.exists=t}return e.none=function(){return new e},e.exists=function(t){return new e(void 0,t)},e.updateTime=function(t){return new e(t)},Object.defineProperty(e.prototype,"isNone",{get:function(){return void 0===this.updateTime&&void 0===this.exists},enumerable:!1,configurable:!0}),e.prototype.isEqual=function(e){return this.exists===e.exists&&(this.updateTime?!!e.updateTime&&this.updateTime.isEqual(e.updateTime):!e.updateTime)},e}();function Ure(e,t){return void 0!==e.updateTime?t.isFoundDocument()&&t.version.isEqual(e.updateTime):void 0===e.exists||e.exists===t.isFoundDocument()}var Wre=function(){};function Hre(e,t,n){e instanceof Zre?function(e,t,n){var r=e.value.clone(),i=Qre(e.fieldTransforms,t,n.transformResults);r.setAll(i),t.convertToFoundDocument(n.version,r).setHasCommittedMutations()}(e,t,n):e instanceof $re?function(e,t,n){if(Ure(e.precondition,t)){var r=Qre(e.fieldTransforms,t,n.transformResults),i=t.data;i.setAll(Jre(e)),i.setAll(r),t.convertToFoundDocument(n.version,i).setHasCommittedMutations()}else t.convertToUnknownDocument(n.version)}(e,t,n):function(e,t,n){t.convertToNoDocument(n.version).setHasCommittedMutations()}(0,t,n)}function qre(e,t,n){e instanceof Zre?function(e,t,n){if(Ure(e.precondition,t)){var r=e.value.clone(),i=eie(e.fieldTransforms,n,t);r.setAll(i),t.convertToFoundDocument(Kre(t),r).setHasLocalMutations()}}(e,t,n):e instanceof $re?function(e,t,n){if(Ure(e.precondition,t)){var r=eie(e.fieldTransforms,n,t),i=t.data;i.setAll(Jre(e)),i.setAll(r),t.convertToFoundDocument(Kre(t),i).setHasLocalMutations()}}(e,t,n):function(e,t){Ure(e.precondition,t)&&t.convertToNoDocument(ine.min())}(e,t)}function Xre(e,t){for(var n=null,r=0,i=e.fieldTransforms;r<i.length;r++){var o=i[r],s=t.data.field(o.field),a=Gre(o.transform,s||null);null!=a&&(null==n&&(n=Vne.empty()),n.set(o.field,a))}return n||null}function Yre(e,t){return e.type===t.type&&!!e.key.isEqual(t.key)&&!!e.precondition.isEqual(t.precondition)&&!!function(e,t){return void 0===e&&void 0===t||!(!e||!t)&&tne(e,t,(function(e,t){return function(e,t){return e.field.isEqual(t.field)&&function(e,t){return e instanceof Mre&&t instanceof Mre||e instanceof Rre&&t instanceof Rre?tne(e.elements,t.elements,Cne):e instanceof Nre&&t instanceof Nre?Cne(e.A,t.A):e instanceof Tre&&t instanceof Tre}(e.transform,t.transform)}(e,t)}))}(e.fieldTransforms,t.fieldTransforms)&&(0===e.type?e.value.isEqual(t.value):1!==e.type||e.data.isEqual(t.data)&&e.fieldMask.isEqual(t.fieldMask))}function Kre(e){return e.isFoundDocument()?e.version:ine.min()}var Zre=function(e){function t(t,n,r,i){void 0===i&&(i=[]);var o=this;return(o=e.call(this)||this).key=t,o.value=n,o.precondition=r,o.fieldTransforms=i,o.type=0,o}return ui(t,e),t}(Wre),$re=function(e){function t(t,n,r,i,o){void 0===o&&(o=[]);var s=this;return(s=e.call(this)||this).key=t,s.data=n,s.fieldMask=r,s.precondition=i,s.fieldTransforms=o,s.type=1,s}return ui(t,e),t}(Wre);function Jre(e){var t=new Map;return e.fieldMask.fields.forEach((function(n){if(!n.isEmpty()){var r=e.data.field(n);t.set(n,r)}})),t}function Qre(e,t,n){var r=new Map;Zte(e.length===n.length);for(var i=0;i<n.length;i++){var o=e[i],s=o.transform,a=t.data.field(o.field);r.set(o.field,Ire(s,a,n[i]))}return r}function eie(e,t,n){for(var r=new Map,i=0,o=e;i<o.length;i++){var s=o[i],a=s.transform,l=n.data.field(s.field);r.set(s.field,jre(a,l,t))}return r}var tie,nie,rie=function(e){function t(t,n){var r=this;return(r=e.call(this)||this).key=t,r.precondition=n,r.type=2,r.fieldTransforms=[],r}return ui(t,e),t}(Wre),iie=function(e){function t(t,n){var r=this;return(r=e.call(this)||this).key=t,r.precondition=n,r.type=3,r.fieldTransforms=[],r}return ui(t,e),t}(Wre),oie=function(e){this.count=e};function sie(e){switch(e){case zte.OK:return Kte();case zte.CANCELLED:case zte.UNKNOWN:case zte.DEADLINE_EXCEEDED:case zte.RESOURCE_EXHAUSTED:case zte.INTERNAL:case zte.UNAVAILABLE:case zte.UNAUTHENTICATED:return!1;case zte.INVALID_ARGUMENT:case zte.NOT_FOUND:case zte.ALREADY_EXISTS:case zte.PERMISSION_DENIED:case zte.FAILED_PRECONDITION:case zte.ABORTED:case zte.OUT_OF_RANGE:case zte.UNIMPLEMENTED:case zte.DATA_LOSS:return!0;default:return Kte()}}function aie(e){if(void 0===e)return qte("GRPC error has no .code"),zte.UNKNOWN;switch(e){case tie.OK:return zte.OK;case tie.CANCELLED:return zte.CANCELLED;case tie.UNKNOWN:return zte.UNKNOWN;case tie.DEADLINE_EXCEEDED:return zte.DEADLINE_EXCEEDED;case tie.RESOURCE_EXHAUSTED:return zte.RESOURCE_EXHAUSTED;case tie.INTERNAL:return zte.INTERNAL;case tie.UNAVAILABLE:return zte.UNAVAILABLE;case tie.UNAUTHENTICATED:return zte.UNAUTHENTICATED;case tie.INVALID_ARGUMENT:return zte.INVALID_ARGUMENT;case tie.NOT_FOUND:return zte.NOT_FOUND;case tie.ALREADY_EXISTS:return zte.ALREADY_EXISTS;case tie.PERMISSION_DENIED:return zte.PERMISSION_DENIED;case tie.FAILED_PRECONDITION:return zte.FAILED_PRECONDITION;case tie.ABORTED:return zte.ABORTED;case tie.OUT_OF_RANGE:return zte.OUT_OF_RANGE;case tie.UNIMPLEMENTED:return zte.UNIMPLEMENTED;case tie.DATA_LOSS:return zte.DATA_LOSS;default:return Kte()}}(nie=tie||(tie={}))[nie.OK=0]="OK",nie[nie.CANCELLED=1]="CANCELLED",nie[nie.UNKNOWN=2]="UNKNOWN",nie[nie.INVALID_ARGUMENT=3]="INVALID_ARGUMENT",nie[nie.DEADLINE_EXCEEDED=4]="DEADLINE_EXCEEDED",nie[nie.NOT_FOUND=5]="NOT_FOUND",nie[nie.ALREADY_EXISTS=6]="ALREADY_EXISTS",nie[nie.PERMISSION_DENIED=7]="PERMISSION_DENIED",nie[nie.UNAUTHENTICATED=16]="UNAUTHENTICATED",nie[nie.RESOURCE_EXHAUSTED=8]="RESOURCE_EXHAUSTED",nie[nie.FAILED_PRECONDITION=9]="FAILED_PRECONDITION",nie[nie.ABORTED=10]="ABORTED",nie[nie.OUT_OF_RANGE=11]="OUT_OF_RANGE",nie[nie.UNIMPLEMENTED=12]="UNIMPLEMENTED",nie[nie.INTERNAL=13]="INTERNAL",nie[nie.UNAVAILABLE=14]="UNAVAILABLE",nie[nie.DATA_LOSS=15]="DATA_LOSS";var lie=function(){function e(e,t){this.comparator=e,this.root=t||uie.EMPTY}return e.prototype.insert=function(t,n){return new e(this.comparator,this.root.insert(t,n,this.comparator).copy(null,null,uie.BLACK,null,null))},e.prototype.remove=function(t){return new e(this.comparator,this.root.remove(t,this.comparator).copy(null,null,uie.BLACK,null,null))},e.prototype.get=function(e){for(var t=this.root;!t.isEmpty();){var n=this.comparator(e,t.key);if(0===n)return t.value;n<0?t=t.left:n>0&&(t=t.right)}return null},e.prototype.indexOf=function(e){for(var t=0,n=this.root;!n.isEmpty();){var r=this.comparator(e,n.key);if(0===r)return t+n.left.size;r<0?n=n.left:(t+=n.left.size+1,n=n.right)}return-1},e.prototype.isEmpty=function(){return this.root.isEmpty()},Object.defineProperty(e.prototype,"size",{get:function(){return this.root.size},enumerable:!1,configurable:!0}),e.prototype.minKey=function(){return this.root.minKey()},e.prototype.maxKey=function(){return this.root.maxKey()},e.prototype.inorderTraversal=function(e){return this.root.inorderTraversal(e)},e.prototype.forEach=function(e){this.inorderTraversal((function(t,n){return e(t,n),!1}))},e.prototype.toString=function(){var e=[];return this.inorderTraversal((function(t,n){return e.push(t+":"+n),!1})),"{"+e.join(", ")+"}"},e.prototype.reverseTraversal=function(e){return this.root.reverseTraversal(e)},e.prototype.getIterator=function(){return new cie(this.root,null,this.comparator,!1)},e.prototype.getIteratorFrom=function(e){return new cie(this.root,e,this.comparator,!1)},e.prototype.getReverseIterator=function(){return new cie(this.root,null,this.comparator,!0)},e.prototype.getReverseIteratorFrom=function(e){return new cie(this.root,e,this.comparator,!0)},e}(),cie=function(){function e(e,t,n,r){this.isReverse=r,this.nodeStack=[];for(var i=1;!e.isEmpty();)if(i=t?n(e.key,t):1,r&&(i*=-1),i<0)e=this.isReverse?e.left:e.right;else{if(0===i){this.nodeStack.push(e);break}this.nodeStack.push(e),e=this.isReverse?e.right:e.left}}return e.prototype.getNext=function(){var e=this.nodeStack.pop(),t={key:e.key,value:e.value};if(this.isReverse)for(e=e.left;!e.isEmpty();)this.nodeStack.push(e),e=e.right;else for(e=e.right;!e.isEmpty();)this.nodeStack.push(e),e=e.left;return t},e.prototype.hasNext=function(){return this.nodeStack.length>0},e.prototype.peek=function(){if(0===this.nodeStack.length)return null;var e=this.nodeStack[this.nodeStack.length-1];return{key:e.key,value:e.value}},e}(),uie=function(){function e(t,n,r,i,o){this.key=t,this.value=n,this.color=null!=r?r:e.RED,this.left=null!=i?i:e.EMPTY,this.right=null!=o?o:e.EMPTY,this.size=this.left.size+1+this.right.size}return e.prototype.copy=function(t,n,r,i,o){return new e(null!=t?t:this.key,null!=n?n:this.value,null!=r?r:this.color,null!=i?i:this.left,null!=o?o:this.right)},e.prototype.isEmpty=function(){return!1},e.prototype.inorderTraversal=function(e){return this.left.inorderTraversal(e)||e(this.key,this.value)||this.right.inorderTraversal(e)},e.prototype.reverseTraversal=function(e){return this.right.reverseTraversal(e)||e(this.key,this.value)||this.left.reverseTraversal(e)},e.prototype.min=function(){return this.left.isEmpty()?this:this.left.min()},e.prototype.minKey=function(){return this.min().key},e.prototype.maxKey=function(){return this.right.isEmpty()?this.key:this.right.maxKey()},e.prototype.insert=function(e,t,n){var r=this,i=n(e,r.key);return(r=i<0?r.copy(null,null,null,r.left.insert(e,t,n),null):0===i?r.copy(null,t,null,null,null):r.copy(null,null,null,null,r.right.insert(e,t,n))).fixUp()},e.prototype.removeMin=function(){if(this.left.isEmpty())return e.EMPTY;var t=this;return t.left.isRed()||t.left.left.isRed()||(t=t.moveRedLeft()),(t=t.copy(null,null,null,t.left.removeMin(),null)).fixUp()},e.prototype.remove=function(t,n){var r,i=this;if(n(t,i.key)<0)i.left.isEmpty()||i.left.isRed()||i.left.left.isRed()||(i=i.moveRedLeft()),i=i.copy(null,null,null,i.left.remove(t,n),null);else{if(i.left.isRed()&&(i=i.rotateRight()),i.right.isEmpty()||i.right.isRed()||i.right.left.isRed()||(i=i.moveRedRight()),0===n(t,i.key)){if(i.right.isEmpty())return e.EMPTY;r=i.right.min(),i=i.copy(r.key,r.value,null,null,i.right.removeMin())}i=i.copy(null,null,null,null,i.right.remove(t,n))}return i.fixUp()},e.prototype.isRed=function(){return this.color},e.prototype.fixUp=function(){var e=this;return e.right.isRed()&&!e.left.isRed()&&(e=e.rotateLeft()),e.left.isRed()&&e.left.left.isRed()&&(e=e.rotateRight()),e.left.isRed()&&e.right.isRed()&&(e=e.colorFlip()),e},e.prototype.moveRedLeft=function(){var e=this.colorFlip();return e.right.left.isRed()&&(e=(e=(e=e.copy(null,null,null,null,e.right.rotateRight())).rotateLeft()).colorFlip()),e},e.prototype.moveRedRight=function(){var e=this.colorFlip();return e.left.left.isRed()&&(e=(e=e.rotateRight()).colorFlip()),e},e.prototype.rotateLeft=function(){var t=this.copy(null,null,e.RED,null,this.right.left);return this.right.copy(null,null,this.color,t,null)},e.prototype.rotateRight=function(){var t=this.copy(null,null,e.RED,this.left.right,null);return this.left.copy(null,null,this.color,null,t)},e.prototype.colorFlip=function(){var e=this.left.copy(null,null,!this.left.color,null,null),t=this.right.copy(null,null,!this.right.color,null,null);return this.copy(null,null,!this.color,e,t)},e.prototype.checkMaxDepth=function(){var e=this.check();return Math.pow(2,e)<=this.size+1},e.prototype.check=function(){if(this.isRed()&&this.left.isRed())throw Kte();if(this.right.isRed())throw Kte();var e=this.left.check();if(e!==this.right.check())throw Kte();return e+(this.isRed()?0:1)},e}();uie.EMPTY=null,uie.RED=!0,uie.BLACK=!1,uie.EMPTY=new(function(){function e(){this.size=0}return Object.defineProperty(e.prototype,"key",{get:function(){throw Kte()},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"value",{get:function(){throw Kte()},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"color",{get:function(){throw Kte()},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"left",{get:function(){throw Kte()},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"right",{get:function(){throw Kte()},enumerable:!1,configurable:!0}),e.prototype.copy=function(e,t,n,r,i){return this},e.prototype.insert=function(e,t,n){return new uie(e,t)},e.prototype.remove=function(e,t){return this},e.prototype.isEmpty=function(){return!0},e.prototype.inorderTraversal=function(e){return!1},e.prototype.reverseTraversal=function(e){return!1},e.prototype.minKey=function(){return null},e.prototype.maxKey=function(){return null},e.prototype.isRed=function(){return!1},e.prototype.checkMaxDepth=function(){return!0},e.prototype.check=function(){return 0},e}());var die=function(){function e(e){this.comparator=e,this.data=new lie(this.comparator)}return e.prototype.has=function(e){return null!==this.data.get(e)},e.prototype.first=function(){return this.data.minKey()},e.prototype.last=function(){return this.data.maxKey()},Object.defineProperty(e.prototype,"size",{get:function(){return this.data.size},enumerable:!1,configurable:!0}),e.prototype.indexOf=function(e){return this.data.indexOf(e)},e.prototype.forEach=function(e){this.data.inorderTraversal((function(t,n){return e(t),!1}))},e.prototype.forEachInRange=function(e,t){for(var n=this.data.getIteratorFrom(e[0]);n.hasNext();){var r=n.getNext();if(this.comparator(r.key,e[1])>=0)return;t(r.key)}},e.prototype.forEachWhile=function(e,t){var n;for(n=void 0!==t?this.data.getIteratorFrom(t):this.data.getIterator();n.hasNext();)if(!e(n.getNext().key))return},e.prototype.firstAfterOrEqual=function(e){var t=this.data.getIteratorFrom(e);return t.hasNext()?t.getNext().key:null},e.prototype.getIterator=function(){return new hie(this.data.getIterator())},e.prototype.getIteratorFrom=function(e){return new hie(this.data.getIteratorFrom(e))},e.prototype.add=function(e){return this.copy(this.data.remove(e).insert(e,!0))},e.prototype.delete=function(e){return this.has(e)?this.copy(this.data.remove(e)):this},e.prototype.isEmpty=function(){return this.data.isEmpty()},e.prototype.unionWith=function(e){var t=this;return t.size<e.size&&(t=e,e=this),e.forEach((function(e){t=t.add(e)})),t},e.prototype.isEqual=function(t){if(!(t instanceof e))return!1;if(this.size!==t.size)return!1;for(var n=this.data.getIterator(),r=t.data.getIterator();n.hasNext();){var i=n.getNext().key,o=r.getNext().key;if(0!==this.comparator(i,o))return!1}return!0},e.prototype.toArray=function(){var e=[];return this.forEach((function(t){e.push(t)})),e},e.prototype.toString=function(){var e=[];return this.forEach((function(t){return e.push(t)})),"SortedSet("+e.toString()+")"},e.prototype.copy=function(t){var n=new e(this.comparator);return n.data=t,n},e}(),hie=function(){function e(e){this.iter=e}return e.prototype.getNext=function(){return this.iter.getNext().key},e.prototype.hasNext=function(){return this.iter.hasNext()},e}(),pie=new lie(Ene.comparator);function fie(){return pie}var gie=new lie(Ene.comparator);function mie(){return gie}var yie=new lie(Ene.comparator);function vie(){return yie}var _ie=new die(Ene.comparator);function bie(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];for(var n=_ie,r=0,i=e;r<i.length;r++){var o=i[r];n=n.add(o)}return n}var xie=new die(ene);function Sie(){return xie}var wie=function(){function e(e,t,n,r,i){this.snapshotVersion=e,this.targetChanges=t,this.targetMismatches=n,this.documentUpdates=r,this.resolvedLimboDocuments=i}return e.createSynthesizedRemoteEventForCurrentChange=function(t,n){var r=new Map;return r.set(t,Eie.createSynthesizedTargetChangeForCurrentChange(t,n)),new e(ine.min(),r,Sie(),fie(),bie())},e}(),Eie=function(){function e(e,t,n,r,i){this.resumeToken=e,this.current=t,this.addedDocuments=n,this.modifiedDocuments=r,this.removedDocuments=i}return e.createSynthesizedTargetChangeForCurrentChange=function(t,n){return new e(pne.EMPTY_BYTE_STRING,n,bie(),bie(),bie())},e}(),Pie=function(e,t,n,r){this.v=e,this.removedTargetIds=t,this.key=n,this.P=r},Cie=function(e,t){this.targetId=e,this.V=t},Aie=function(e,t,n,r){void 0===n&&(n=pne.EMPTY_BYTE_STRING),void 0===r&&(r=null),this.state=e,this.targetIds=t,this.resumeToken=n,this.cause=r},kie=function(){function e(){this.S=0,this.D=Gie(),this.C=pne.EMPTY_BYTE_STRING,this.N=!1,this.k=!0}return Object.defineProperty(e.prototype,"current",{get:function(){return this.N},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"resumeToken",{get:function(){return this.C},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"F",{get:function(){return 0!==this.S},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"$",{get:function(){return this.k},enumerable:!1,configurable:!0}),e.prototype.O=function(e){e.approximateByteSize()>0&&(this.k=!0,this.C=e)},e.prototype.M=function(){var e=bie(),t=bie(),n=bie();return this.D.forEach((function(r,i){switch(i){case 0:e=e.add(r);break;case 2:t=t.add(r);break;case 1:n=n.add(r);break;default:Kte()}})),new Eie(this.C,this.N,e,t,n)},e.prototype.L=function(){this.k=!1,this.D=Gie()},e.prototype.B=function(e,t){this.k=!0,this.D=this.D.insert(e,t)},e.prototype.q=function(e){this.k=!0,this.D=this.D.remove(e)},e.prototype.U=function(){this.S+=1},e.prototype.K=function(){this.S-=1},e.prototype.j=function(){this.k=!0,this.N=!0},e}(),jie=function(){function e(e){this.W=e,this.G=new Map,this.H=fie(),this.J=Iie(),this.Y=new die(ene)}return e.prototype.X=function(e){for(var t=0,n=e.v;t<n.length;t++){var r=n[t];e.P&&e.P.isFoundDocument()?this.Z(r,e.P):this.tt(r,e.key,e.P)}for(var i=0,o=e.removedTargetIds;i<o.length;i++)r=o[i],this.tt(r,e.key,e.P)},e.prototype.et=function(e){var t=this;this.forEachTarget(e,(function(n){var r=t.nt(n);switch(e.state){case 0:t.st(n)&&r.O(e.resumeToken);break;case 1:r.K(),r.F||r.L(),r.O(e.resumeToken);break;case 2:r.K(),r.F||t.removeTarget(n);break;case 3:t.st(n)&&(r.j(),r.O(e.resumeToken));break;case 4:t.st(n)&&(t.it(n),r.O(e.resumeToken));break;default:Kte()}}))},e.prototype.forEachTarget=function(e,t){var n=this;e.targetIds.length>0?e.targetIds.forEach(t):this.G.forEach((function(e,r){n.st(r)&&t(r)}))},e.prototype.rt=function(e){var t=e.targetId,n=e.V.count,r=this.ot(t);if(r){var i=r.target;if(qne(i))if(0===n){var o=new Ene(i.path);this.tt(t,o,zne.newNoDocument(o,ine.min()))}else Zte(1===n);else this.ct(t)!==n&&(this.it(t),this.Y=this.Y.add(t))}},e.prototype.ut=function(e){var t=this,n=new Map;this.G.forEach((function(r,i){var o=t.ot(i);if(o){if(r.current&&qne(o.target)){var s=new Ene(o.target.path);null!==t.H.get(s)||t.at(i,s)||t.tt(i,s,zne.newNoDocument(s,e))}r.$&&(n.set(i,r.M()),r.L())}}));var r=bie();this.J.forEach((function(e,n){var i=!0;n.forEachWhile((function(e){var n=t.ot(e);return!n||2===n.purpose||(i=!1,!1)})),i&&(r=r.add(e))}));var i=new wie(e,n,this.Y,this.H,r);return this.H=fie(),this.J=Iie(),this.Y=new die(ene),i},e.prototype.Z=function(e,t){if(this.st(e)){var n=this.at(e,t.key)?2:0;this.nt(e).B(t.key,n),this.H=this.H.insert(t.key,t),this.J=this.J.insert(t.key,this.ht(t.key).add(e))}},e.prototype.tt=function(e,t,n){if(this.st(e)){var r=this.nt(e);this.at(e,t)?r.B(t,1):r.q(t),this.J=this.J.insert(t,this.ht(t).delete(e)),n&&(this.H=this.H.insert(t,n))}},e.prototype.removeTarget=function(e){this.G.delete(e)},e.prototype.ct=function(e){var t=this.nt(e).M();return this.W.getRemoteKeysForTarget(e).size+t.addedDocuments.size-t.removedDocuments.size},e.prototype.U=function(e){this.nt(e).U()},e.prototype.nt=function(e){var t=this.G.get(e);return t||(t=new kie,this.G.set(e,t)),t},e.prototype.ht=function(e){var t=this.J.get(e);return t||(t=new die(ene),this.J=this.J.insert(e,t)),t},e.prototype.st=function(e){var t=null!==this.ot(e);return t||Hte("WatchChangeAggregator","Detected inactive target",e),t},e.prototype.ot=function(e){var t=this.G.get(e);return t&&t.F?null:this.W.lt(e)},e.prototype.it=function(e){var t=this;this.G.set(e,new kie),this.W.getRemoteKeysForTarget(e).forEach((function(n){t.tt(e,n,null)}))},e.prototype.at=function(e,t){return this.W.getRemoteKeysForTarget(e).has(t)},e}();function Iie(){return new lie(Ene.comparator)}function Gie(){return new lie(Ene.comparator)}var Tie={asc:"ASCENDING",desc:"DESCENDING"},Mie={"<":"LESS_THAN","<=":"LESS_THAN_OR_EQUAL",">":"GREATER_THAN",">=":"GREATER_THAN_OR_EQUAL","==":"EQUAL","!=":"NOT_EQUAL","array-contains":"ARRAY_CONTAINS",in:"IN","not-in":"NOT_IN","array-contains-any":"ARRAY_CONTAINS_ANY"},Oie=function(e,t){this.databaseId=e,this.I=t};function Rie(e,t){return e.I?new Date(1e3*t.seconds).toISOString().replace(/\.\d*/,"").replace("Z","")+"."+("000000000"+t.nanoseconds).slice(-9)+"Z":{seconds:""+t.seconds,nanos:t.nanoseconds}}function Die(e,t){return e.I?t.toBase64():t.toUint8Array()}function Nie(e,t){return Rie(e,t.toTimestamp())}function Lie(e){return Zte(!!e),ine.fromTimestamp(function(e){var t=gne(e);return new rne(t.seconds,t.nanos)}(e))}function Vie(e,t){return function(e){return new cne(["projects",e.projectId,"databases",e.database])}(e).child("documents").child(t).canonicalString()}function Fie(e){var t=cne.fromString(e);return Zte(uoe(t)),t}function zie(e,t){return Vie(e.databaseId,t.path)}function Bie(e,t){var n=Fie(t);if(n.get(1)!==e.databaseId.projectId)throw new Bte(zte.INVALID_ARGUMENT,"Tried to deserialize key from different project: "+n.get(1)+" vs "+e.databaseId.projectId);if(n.get(3)!==e.databaseId.database)throw new Bte(zte.INVALID_ARGUMENT,"Tried to deserialize key from different database: "+n.get(3)+" vs "+e.databaseId.database);return new Ene(qie(n))}function Uie(e,t){return Vie(e.databaseId,t)}function Wie(e){var t=Fie(e);return 4===t.length?cne.emptyPath():qie(t)}function Hie(e){return new cne(["projects",e.databaseId.projectId,"databases",e.databaseId.database]).canonicalString()}function qie(e){return Zte(e.length>4&&"documents"===e.get(4)),e.popFirst(5)}function Xie(e,t,n){return{name:zie(e,t),fields:n.value.mapValue.fields}}function Yie(e,t,n){var r=Bie(e,t.name),i=Lie(t.updateTime),o=new Vne({mapValue:{fields:t.fields}}),s=zne.newFoundDocument(r,i,o);return n&&s.setHasCommittedMutations(),n?s.setHasCommittedMutations():s}function Kie(e,t){var n;if(t instanceof Zre)n={update:Xie(e,t.key,t.value)};else if(t instanceof rie)n={delete:zie(e,t.key)};else if(t instanceof $re)n={update:Xie(e,t.key,t.data),updateMask:coe(t.fieldMask)};else{if(!(t instanceof iie))return Kte();n={verify:zie(e,t.key)}}return t.fieldTransforms.length>0&&(n.updateTransforms=t.fieldTransforms.map((function(e){return function(e,t){var n=t.transform;if(n instanceof Tre)return{fieldPath:t.field.canonicalString(),setToServerValue:"REQUEST_TIME"};if(n instanceof Mre)return{fieldPath:t.field.canonicalString(),appendMissingElements:{values:n.elements}};if(n instanceof Rre)return{fieldPath:t.field.canonicalString(),removeAllFromArray:{values:n.elements}};if(n instanceof Nre)return{fieldPath:t.field.canonicalString(),increment:n.A};throw Kte()}(0,e)}))),t.precondition.isNone||(n.currentDocument=function(e,t){return void 0!==t.updateTime?{updateTime:Nie(e,t.updateTime)}:void 0!==t.exists?{exists:t.exists}:Kte()}(e,t.precondition)),n}function Zie(e,t){var n=t.currentDocument?function(e){return void 0!==e.updateTime?Bre.updateTime(Lie(e.updateTime)):void 0!==e.exists?Bre.exists(e.exists):Bre.none()}(t.currentDocument):Bre.none(),r=t.updateTransforms?t.updateTransforms.map((function(t){return function(e,t){var n=null;if("setToServerValue"in t)Zte("REQUEST_TIME"===t.setToServerValue),n=new Tre;else if("appendMissingElements"in t){var r=t.appendMissingElements.values||[];n=new Mre(r)}else if("removeAllFromArray"in t){var i=t.removeAllFromArray.values||[];n=new Rre(i)}else"increment"in t?n=new Nre(e,t.increment):Kte();var o=dne.fromServerFormat(t.fieldPath);return new Fre(o,n)}(e,t)})):[];if(t.update){t.update.name;var i=Bie(e,t.update.name),o=new Vne({mapValue:{fields:t.update.fields}});if(t.updateMask){var s=function(e){var t=e.fieldPaths||[];return new hne(t.map((function(e){return dne.fromServerFormat(e)})))}(t.updateMask);return new $re(i,o,s,n,r)}return new Zre(i,o,n,r)}if(t.delete){var a=Bie(e,t.delete);return new rie(a,n)}if(t.verify){var l=Bie(e,t.verify);return new iie(l,n)}return Kte()}function $ie(e,t){return{documents:[Uie(e,t.path)]}}function Jie(e,t){var n={structuredQuery:{}},r=t.path;null!==t.collectionGroup?(n.parent=Uie(e,r),n.structuredQuery.from=[{collectionId:t.collectionGroup,allDescendants:!0}]):(n.parent=Uie(e,r.popLast()),n.structuredQuery.from=[{collectionId:r.lastSegment()}]);var i=function(e){if(0!==e.length){var t=e.map((function(e){return function(e){if("=="===e.op){if(Dne(e.value))return{unaryFilter:{field:ooe(e.field),op:"IS_NAN"}};if(Rne(e.value))return{unaryFilter:{field:ooe(e.field),op:"IS_NULL"}}}else if("!="===e.op){if(Dne(e.value))return{unaryFilter:{field:ooe(e.field),op:"IS_NOT_NAN"}};if(Rne(e.value))return{unaryFilter:{field:ooe(e.field),op:"IS_NOT_NULL"}}}return{fieldFilter:{field:ooe(e.field),op:ioe(e.op),value:e.value}}}(e)}));return 1===t.length?t[0]:{compositeFilter:{op:"AND",filters:t}}}}(t.filters);i&&(n.structuredQuery.where=i);var o=function(e){if(0!==e.length)return e.map((function(e){return function(e){return{field:ooe(e.field),direction:roe(e.dir)}}(e)}))}(t.orderBy);o&&(n.structuredQuery.orderBy=o);var s=function(e,t){return e.I||xne(t)?t:{value:t}}(e,t.limit);return null!==s&&(n.structuredQuery.limit=s),t.startAt&&(n.structuredQuery.startAt=toe(t.startAt)),t.endAt&&(n.structuredQuery.endAt=toe(t.endAt)),n}function Qie(e){var t=Wie(e.parent),n=e.structuredQuery,r=n.from?n.from.length:0,i=null;if(r>0){Zte(1===r);var o=n.from[0];o.allDescendants?i=o.collectionId:t=t.child(o.collectionId)}var s=[];n.where&&(s=eoe(n.where));var a=[];n.orderBy&&(a=n.orderBy.map((function(e){return function(e){return new ire(soe(e.field),function(e){switch(e){case"ASCENDING":return"asc";case"DESCENDING":return"desc";default:return}}(e.direction))}(e)})));var l=null;n.limit&&(l=function(e){var t;return xne(t="object"==typeof e?e.value:e)?null:t}(n.limit));var c=null;n.startAt&&(c=noe(n.startAt));var u=null;return n.endAt&&(u=noe(n.endAt)),cre(t,i,a,s,l,"F",c,u)}function eoe(e){return e?void 0!==e.unaryFilter?[loe(e)]:void 0!==e.fieldFilter?[aoe(e)]:void 0!==e.compositeFilter?e.compositeFilter.filters.map((function(e){return eoe(e)})).reduce((function(e,t){return e.concat(t)})):Kte():[]}function toe(e){return{before:e.before,values:e.position}}function noe(e){var t=!!e.before,n=e.values||[];return new nre(n,t)}function roe(e){return Tie[e]}function ioe(e){return Mie[e]}function ooe(e){return{fieldPath:e.canonicalString()}}function soe(e){return dne.fromServerFormat(e.fieldPath)}function aoe(e){return Xne.create(soe(e.fieldFilter.field),function(e){switch(e){case"EQUAL":return"==";case"NOT_EQUAL":return"!=";case"GREATER_THAN":return">";case"GREATER_THAN_OR_EQUAL":return">=";case"LESS_THAN":return"<";case"LESS_THAN_OR_EQUAL":return"<=";case"ARRAY_CONTAINS":return"array-contains";case"IN":return"in";case"NOT_IN":return"not-in";case"ARRAY_CONTAINS_ANY":return"array-contains-any";default:return Kte()}}(e.fieldFilter.op),e.fieldFilter.value)}function loe(e){switch(e.unaryFilter.op){case"IS_NAN":var t=soe(e.unaryFilter.field);return Xne.create(t,"==",{doubleValue:NaN});case"IS_NULL":var n=soe(e.unaryFilter.field);return Xne.create(n,"==",{nullValue:"NULL_VALUE"});case"IS_NOT_NAN":var r=soe(e.unaryFilter.field);return Xne.create(r,"!=",{doubleValue:NaN});case"IS_NOT_NULL":var i=soe(e.unaryFilter.field);return Xne.create(i,"!=",{nullValue:"NULL_VALUE"});default:return Kte()}}function coe(e){var t=[];return e.fields.forEach((function(e){return t.push(e.canonicalString())})),{fieldPaths:t}}function uoe(e){return e.length>=4&&"projects"===e.get(0)&&"databases"===e.get(2)}function doe(e){for(var t="",n=0;n<e.length;n++)t.length>0&&(t=poe(t)),t=hoe(e.get(n),t);return poe(t)}function hoe(e,t){for(var n=t,r=e.length,i=0;i<r;i++){var o=e.charAt(i);switch(o){case"\0":n+="\x01\x10";break;case"\x01":n+="\x01\x11";break;default:n+=o}}return n}function poe(e){return e+"\x01\x01"}function foe(e){var t=e.length;if(Zte(t>=2),2===t)return Zte("\x01"===e.charAt(0)&&"\x01"===e.charAt(1)),cne.emptyPath();for(var n=t-2,r=[],i="",o=0;o<t;){var s=e.indexOf("\x01",o);switch((s<0||s>n)&&Kte(),e.charAt(s+1)){case"\x01":var a=e.substring(o,s),l=void 0;0===i.length?l=a:(l=i+=a,i=""),r.push(l);break;case"\x10":i+=e.substring(o,s),i+="\0";break;case"\x11":i+=e.substring(o,s+1);break;default:Kte()}o=s+2}return new cne(r)}var goe=function(e,t){this.seconds=e,this.nanoseconds=t},moe=function(e,t,n){this.ownerId=e,this.allowTabSynchronization=t,this.leaseTimestampMs=n};moe.store="owner",moe.key="owner";var yoe=function(e,t,n){this.userId=e,this.lastAcknowledgedBatchId=t,this.lastStreamToken=n};yoe.store="mutationQueues",yoe.keyPath="userId";var voe=function(e,t,n,r,i){this.userId=e,this.batchId=t,this.localWriteTimeMs=n,this.baseMutations=r,this.mutations=i};voe.store="mutations",voe.keyPath="batchId",voe.userMutationsIndex="userMutationsIndex",voe.userMutationsKeyPath=["userId","batchId"];var _oe=function(){function e(){}return e.prefixForUser=function(e){return[e]},e.prefixForPath=function(e,t){return[e,doe(t)]},e.key=function(e,t,n){return[e,doe(t),n]},e}();_oe.store="documentMutations",_oe.PLACEHOLDER=new _oe;var boe=function(e,t){this.path=e,this.readTime=t},xoe=function(e,t){this.path=e,this.version=t},Soe=function(e,t,n,r,i,o){this.unknownDocument=e,this.noDocument=t,this.document=n,this.hasCommittedMutations=r,this.readTime=i,this.parentPath=o};Soe.store="remoteDocuments",Soe.readTimeIndex="readTimeIndex",Soe.readTimeIndexPath="readTime",Soe.collectionReadTimeIndex="collectionReadTimeIndex",Soe.collectionReadTimeIndexPath=["parentPath","readTime"];var woe=function(e){this.byteSize=e};woe.store="remoteDocumentGlobal",woe.key="remoteDocumentGlobalKey";var Eoe=function(e,t,n,r,i,o,s){this.targetId=e,this.canonicalId=t,this.readTime=n,this.resumeToken=r,this.lastListenSequenceNumber=i,this.lastLimboFreeSnapshotVersion=o,this.query=s};Eoe.store="targets",Eoe.keyPath="targetId",Eoe.queryTargetsIndexName="queryTargetsIndex",Eoe.queryTargetsKeyPath=["canonicalId","targetId"];var Poe=function(e,t,n){this.targetId=e,this.path=t,this.sequenceNumber=n};Poe.store="targetDocuments",Poe.keyPath=["targetId","path"],Poe.documentTargetsIndex="documentTargetsIndex",Poe.documentTargetsKeyPath=["path","targetId"];var Coe=function(e,t,n,r){this.highestTargetId=e,this.highestListenSequenceNumber=t,this.lastRemoteSnapshotVersion=n,this.targetCount=r};Coe.key="targetGlobalKey",Coe.store="targetGlobal";var Aoe=function(e,t){this.collectionId=e,this.parent=t};Aoe.store="collectionParents",Aoe.keyPath=["collectionId","parent"];var koe=function(e,t,n,r){this.clientId=e,this.updateTimeMs=t,this.networkEnabled=n,this.inForeground=r};koe.store="clientMetadata",koe.keyPath="clientId";var joe=function(e,t,n){this.bundleId=e,this.createTime=t,this.version=n};joe.store="bundles",joe.keyPath="bundleId";var Ioe=function(e,t,n){this.name=e,this.readTime=t,this.bundledQuery=n};Ioe.store="namedQueries",Ioe.keyPath="name";var Goe=mi(mi([],mi(mi([],mi(mi([],mi(mi([],[yoe.store,voe.store,_oe.store,Soe.store,Eoe.store,moe.store,Coe.store,Poe.store]),[koe.store])),[woe.store])),[Aoe.store])),[joe.store,Ioe.store]),Toe="The current tab is not in the required state to perform this operation. It might be necessary to refresh the browser tab.",Moe=function(){function e(){this.onCommittedListeners=[]}return e.prototype.addOnCommittedListener=function(e){this.onCommittedListeners.push(e)},e.prototype.raiseOnCommittedEvent=function(){this.onCommittedListeners.forEach((function(e){return e()}))},e}(),Ooe=function(){var e=this;this.promise=new Promise((function(t,n){e.resolve=t,e.reject=n}))},Roe=function(){function e(e){var t=this;this.nextCallback=null,this.catchCallback=null,this.result=void 0,this.error=void 0,this.isDone=!1,this.callbackAttached=!1,e((function(e){t.isDone=!0,t.result=e,t.nextCallback&&t.nextCallback(e)}),(function(e){t.isDone=!0,t.error=e,t.catchCallback&&t.catchCallback(e)}))}return e.prototype.catch=function(e){return this.next(void 0,e)},e.prototype.next=function(t,n){var r=this;return this.callbackAttached&&Kte(),this.callbackAttached=!0,this.isDone?this.error?this.wrapFailure(n,this.error):this.wrapSuccess(t,this.result):new e((function(e,i){r.nextCallback=function(n){r.wrapSuccess(t,n).next(e,i)},r.catchCallback=function(t){r.wrapFailure(n,t).next(e,i)}}))},e.prototype.toPromise=function(){var e=this;return new Promise((function(t,n){e.next(t,n)}))},e.prototype.wrapUserFunction=function(t){try{var n=t();return n instanceof e?n:e.resolve(n)}catch(t){return e.reject(t)}},e.prototype.wrapSuccess=function(t,n){return t?this.wrapUserFunction((function(){return t(n)})):e.resolve(n)},e.prototype.wrapFailure=function(t,n){return t?this.wrapUserFunction((function(){return t(n)})):e.reject(n)},e.resolve=function(t){return new e((function(e,n){e(t)}))},e.reject=function(t){return new e((function(e,n){n(t)}))},e.waitFor=function(t){return new e((function(e,n){var r=0,i=0,o=!1;t.forEach((function(t){++r,t.next((function(){++i,o&&i===r&&e()}),(function(e){return n(e)}))})),o=!0,i===r&&e()}))},e.or=function(t){for(var n=e.resolve(!1),r=function(t){n=n.next((function(n){return n?e.resolve(n):t()}))},i=0,o=t;i<o.length;i++)r(o[i]);return n},e.forEach=function(e,t){var n=this,r=[];return e.forEach((function(e,i){r.push(t.call(n,e,i))})),this.waitFor(r)},e}(),Doe=function(){function e(e,t){var n=this;this.action=e,this.transaction=t,this.aborted=!1,this.ft=new Ooe,this.transaction.oncomplete=function(){n.ft.resolve()},this.transaction.onabort=function(){t.error?n.ft.reject(new Voe(e,t.error)):n.ft.resolve()},this.transaction.onerror=function(t){var r=Woe(t.target.error);n.ft.reject(new Voe(e,r))}}return e.open=function(t,n,r,i){try{return new e(n,t.transaction(i,r))}catch(t){throw new Voe(n,t)}},Object.defineProperty(e.prototype,"dt",{get:function(){return this.ft.promise},enumerable:!1,configurable:!0}),e.prototype.abort=function(e){e&&this.ft.reject(e),this.aborted||(Hte("SimpleDb","Aborting transaction:",e?e.message:"Client-initiated abort"),this.aborted=!0,this.transaction.abort())},e.prototype.store=function(e){var t=this.transaction.objectStore(e);return new zoe(t)},e}(),Noe=function(){function e(t,n,r){this.name=t,this.version=n,this.wt=r,12.2===e._t(wi())&&qte("Firestore persistence suffers from a bug in iOS 12.2 Safari that may cause your app to stop working. See https://stackoverflow.com/q/56496296/110915 for details and a potential workaround.")}return e.delete=function(e){return Hte("SimpleDb","Removing database:",e),Boe(window.indexedDB.deleteDatabase(e)).toPromise()},e.yt=function(){if("undefined"==typeof indexedDB)return!1;if(e.gt())return!0;var t=wi(),n=e._t(t),r=0<n&&n<10,i=e.Et(t),o=0<i&&i<4.5;return!(t.indexOf("MSIE ")>0||t.indexOf("Trident/")>0||t.indexOf("Edge/")>0||r||o)},e.gt=function(){var e;return"undefined"!=typeof process&&"YES"===(null===(e={NODE_ENV:"production",PUBLIC_URL:"",WDS_SOCKET_HOST:void 0,WDS_SOCKET_PATH:void 0,WDS_SOCKET_PORT:void 0,FAST_REFRESH:!0,REACT_APP_API_KEY:"AIzaSyBHPgV3XKgYOnM990_yTwspgeTvJbOgAhg",REACT_APP_APP_ID:"1:251853988099:web:bab0205739db7f7d060936",REACT_APP_AUTH_DOMAIN:"skyvisor-prod.firebaseapp.com",REACT_APP_DATABASE_URL:"https://skyvisor-prod.firebaseio.com",REACT_APP_GOOGLE_MAPS_API_KEY:"AIzaSyCHaKkxdhCFUJ_YQq_n-sa8zb3jxT8UQio",REACT_APP_MAP_TILER_API_KEY:"9il2HwEuumNUJKgkhkUF",REACT_APP_MESSAGING_SENDER_ID:"251853988099",REACT_APP_PROJECT_ID:"skyvisor-prod",REACT_APP_STORAGE_BUCKET:"skyvisor-prod.appspot.com"})||void 0===e?void 0:e.Tt)},e.It=function(e,t){return e.store(t)},e._t=function(e){var t=e.match(/i(?:phone|pad|pod) os ([\d_]+)/i),n=t?t[1].split("_").slice(0,2).join("."):"-1";return Number(n)},e.Et=function(e){var t=e.match(/Android ([\d.]+)/i),n=t?t[1].split(".").slice(0,2).join("."):"-1";return Number(n)},e.prototype.At=function(e){return hi(this,void 0,void 0,(function(){var t,n=this;return pi(this,(function(r){switch(r.label){case 0:return this.db?[3,2]:(Hte("SimpleDb","Opening database:",this.name),t=this,[4,new Promise((function(t,r){var i=indexedDB.open(n.name,n.version);i.onsuccess=function(e){var n=e.target.result;t(n)},i.onblocked=function(){r(new Voe(e,"Cannot upgrade IndexedDB schema while another tab is open. Close all tabs that access Firestore and reload this page to proceed."))},i.onerror=function(t){var n=t.target.error;"VersionError"===n.name?r(new Bte(zte.FAILED_PRECONDITION,"A newer version of the Firestore SDK was previously used and so the persisted data is not compatible with the version of the SDK you are now using. The SDK will operate with persistence disabled. If you need persistence, please re-upgrade to a newer version of the SDK or else clear the persisted IndexedDB data for your app to start fresh.")):r(new Voe(e,n))},i.onupgradeneeded=function(e){Hte("SimpleDb",'Database "'+n.name+'" requires upgrade from version:',e.oldVersion);var t=e.target.result;n.wt.Rt(t,i.transaction,e.oldVersion,n.version).next((function(){Hte("SimpleDb","Database upgrade to version "+n.version+" complete")}))}}))]);case 1:t.db=r.sent(),r.label=2;case 2:return[2,(this.bt&&(this.db.onversionchange=function(e){return n.bt(e)}),this.db)]}}))}))},e.prototype.vt=function(e){this.bt=e,this.db&&(this.db.onversionchange=function(t){return e(t)})},e.prototype.runTransaction=function(e,t,n,r){return hi(this,void 0,void 0,(function(){var i,o,s,a,l;return pi(this,(function(c){switch(c.label){case 0:i="readonly"===t,o=0,s=function(){var t,s,l,c,u;return pi(this,(function(d){switch(d.label){case 0:++o,d.label=1;case 1:return d.trys.push([1,4,,5]),[4,a.At(e)];case 2:return a.db=d.sent(),t=Doe.open(a.db,e,i?"readonly":"readwrite",n),s=r(t).catch((function(e){return t.abort(e),Roe.reject(e)})).toPromise(),l={},s.catch((function(){})),[4,t.dt];case 3:return[2,(l.value=(d.sent(),s),l)];case 4:return c=d.sent(),u="FirebaseError"!==c.name&&o<3,Hte("SimpleDb","Transaction failed with error:",c.message,"Retrying:",u),a.close(),u?[3,5]:[2,{value:Promise.reject(c)}];case 5:return[2]}}))},a=this,c.label=1;case 1:return[5,s()];case 2:if("object"==typeof(l=c.sent()))return[2,l.value];c.label=3;case 3:return[3,1];case 4:return[2]}}))}))},e.prototype.close=function(){this.db&&this.db.close(),this.db=void 0},e}(),Loe=function(){function e(e){this.Pt=e,this.Vt=!1,this.St=null}return Object.defineProperty(e.prototype,"isDone",{get:function(){return this.Vt},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"Dt",{get:function(){return this.St},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"cursor",{set:function(e){this.Pt=e},enumerable:!1,configurable:!0}),e.prototype.done=function(){this.Vt=!0},e.prototype.Ct=function(e){this.St=e},e.prototype.delete=function(){return Boe(this.Pt.delete())},e}(),Voe=function(e){function t(t,n){var r=this;return(r=e.call(this,zte.UNAVAILABLE,"IndexedDB transaction '"+t+"' failed: "+n)||this).name="IndexedDbTransactionError",r}return ui(t,e),t}(Bte);function Foe(e){return"IndexedDbTransactionError"===e.name}var zoe=function(){function e(e){this.store=e}return e.prototype.put=function(e,t){var n;return void 0!==t?(Hte("SimpleDb","PUT",this.store.name,e,t),n=this.store.put(t,e)):(Hte("SimpleDb","PUT",this.store.name,"<auto-key>",e),n=this.store.put(e)),Boe(n)},e.prototype.add=function(e){return Hte("SimpleDb","ADD",this.store.name,e,e),Boe(this.store.add(e))},e.prototype.get=function(e){var t=this;return Boe(this.store.get(e)).next((function(n){return void 0===n&&(n=null),Hte("SimpleDb","GET",t.store.name,e,n),n}))},e.prototype.delete=function(e){return Hte("SimpleDb","DELETE",this.store.name,e),Boe(this.store.delete(e))},e.prototype.count=function(){return Hte("SimpleDb","COUNT",this.store.name),Boe(this.store.count())},e.prototype.Nt=function(e,t){var n=this.cursor(this.options(e,t)),r=[];return this.xt(n,(function(e,t){r.push(t)})).next((function(){return r}))},e.prototype.kt=function(e,t){Hte("SimpleDb","DELETE ALL",this.store.name);var n=this.options(e,t);n.Ft=!1;var r=this.cursor(n);return this.xt(r,(function(e,t,n){return n.delete()}))},e.prototype.$t=function(e,t){var n;t?n=e:(n={},t=e);var r=this.cursor(n);return this.xt(r,t)},e.prototype.Ot=function(e){var t=this.cursor({});return new Roe((function(n,r){t.onerror=function(e){var t=Woe(e.target.error);r(t)},t.onsuccess=function(t){var r=t.target.result;r?e(r.primaryKey,r.value).next((function(e){e?r.continue():n()})):n()}}))},e.prototype.xt=function(e,t){var n=[];return new Roe((function(r,i){e.onerror=function(e){i(e.target.error)},e.onsuccess=function(e){var i=e.target.result;if(i){var o=new Loe(i),s=t(i.primaryKey,i.value,o);if(s instanceof Roe){var a=s.catch((function(e){return o.done(),Roe.reject(e)}));n.push(a)}o.isDone?r():null===o.Dt?i.continue():i.continue(o.Dt)}else r()}})).next((function(){return Roe.waitFor(n)}))},e.prototype.options=function(e,t){var n;return void 0!==e&&("string"==typeof e?n=e:t=e),{index:n,range:t}},e.prototype.cursor=function(e){var t="next";if(e.reverse&&(t="prev"),e.index){var n=this.store.index(e.index);return e.Ft?n.openKeyCursor(e.range,t):n.openCursor(e.range,t)}return this.store.openCursor(e.range,t)},e}();function Boe(e){return new Roe((function(t,n){e.onsuccess=function(e){var n=e.target.result;t(n)},e.onerror=function(e){var t=Woe(e.target.error);n(t)}}))}var Uoe=!1;function Woe(e){var t=Noe._t(wi());if(t>=12.2&&t<13){var n="An internal error was encountered in the Indexed Database server";if(e.message.indexOf(n)>=0){var r=new Bte("internal","IOS_INDEXEDDB_BUG1: IndexedDb has thrown '"+n+"'. This is likely due to an unavoidable bug in iOS. See https://stackoverflow.com/q/56496296/110915 for details and a potential workaround.");return Uoe||(Uoe=!0,setTimeout((function(){throw r}),0)),r}}return e}var Hoe=function(e){function t(t,n){var r=this;return(r=e.call(this)||this).Mt=t,r.currentSequenceNumber=n,r}return ui(t,e),t}(Moe);function qoe(e,t){var n=$te(e);return Noe.It(n.Mt,t)}var Xoe=function(){function e(e,t,n,r){this.batchId=e,this.localWriteTime=t,this.baseMutations=n,this.mutations=r}return e.prototype.applyToRemoteDocument=function(e,t){for(var n=t.mutationResults,r=0;r<this.mutations.length;r++){var i=this.mutations[r];i.key.isEqual(e.key)&&Hre(i,e,n[r])}},e.prototype.applyToLocalView=function(e){for(var t=0,n=this.baseMutations;t<n.length;t++)(o=n[t]).key.isEqual(e.key)&&qre(o,e,this.localWriteTime);for(var r=0,i=this.mutations;r<i.length;r++){var o;(o=i[r]).key.isEqual(e.key)&&qre(o,e,this.localWriteTime)}},e.prototype.applyToLocalDocumentSet=function(e){var t=this;this.mutations.forEach((function(n){var r=e.get(n.key),i=r;t.applyToLocalView(i),r.isValidDocument()||i.convertToNoDocument(ine.min())}))},e.prototype.keys=function(){return this.mutations.reduce((function(e,t){return e.add(t.key)}),bie())},e.prototype.isEqual=function(e){return this.batchId===e.batchId&&tne(this.mutations,e.mutations,(function(e,t){return Yre(e,t)}))&&tne(this.baseMutations,e.baseMutations,(function(e,t){return Yre(e,t)}))},e}(),Yoe=function(){function e(e,t,n,r){this.batch=e,this.commitVersion=t,this.mutationResults=n,this.docVersions=r}return e.from=function(t,n,r){Zte(t.mutations.length===r.length);for(var i=vie(),o=t.mutations,s=0;s<o.length;s++)i=i.insert(o[s].key,r[s].version);return new e(t,n,r,i)},e}(),Koe=function(){function e(e,t,n,r,i,o,s){void 0===i&&(i=ine.min()),void 0===o&&(o=ine.min()),void 0===s&&(s=pne.EMPTY_BYTE_STRING),this.target=e,this.targetId=t,this.purpose=n,this.sequenceNumber=r,this.snapshotVersion=i,this.lastLimboFreeSnapshotVersion=o,this.resumeToken=s}return e.prototype.withSequenceNumber=function(t){return new e(this.target,this.targetId,this.purpose,t,this.snapshotVersion,this.lastLimboFreeSnapshotVersion,this.resumeToken)},e.prototype.withResumeToken=function(t,n){return new e(this.target,this.targetId,this.purpose,this.sequenceNumber,n,this.lastLimboFreeSnapshotVersion,t)},e.prototype.withLastLimboFreeSnapshotVersion=function(t){return new e(this.target,this.targetId,this.purpose,this.sequenceNumber,this.snapshotVersion,t,this.resumeToken)},e}(),Zoe=function(e){this.Lt=e};function $oe(e,t){if(t.document)return Yie(e.Lt,t.document,!!t.hasCommittedMutations);if(t.noDocument){var n=Ene.fromSegments(t.noDocument.path),r=nse(t.noDocument.readTime),i=zne.newNoDocument(n,r);return t.hasCommittedMutations?i.setHasCommittedMutations():i}if(t.unknownDocument){var o=Ene.fromSegments(t.unknownDocument.path);return r=nse(t.unknownDocument.version),zne.newUnknownDocument(o,r)}return Kte()}function Joe(e,t,n){var r=Qoe(n),i=t.key.path.popLast().toArray();if(t.isFoundDocument()){var o=function(e,t){return{name:zie(e,t.key),fields:t.data.value.mapValue.fields,updateTime:Rie(e,t.version.toTimestamp())}}(e.Lt,t),s=t.hasCommittedMutations;return new Soe(null,null,o,s,r,i)}if(t.isNoDocument()){var a=t.key.path.toArray(),l=tse(t.version);return s=t.hasCommittedMutations,new Soe(null,new boe(a,l),null,s,r,i)}if(t.isUnknownDocument()){var c=t.key.path.toArray(),u=tse(t.version);return new Soe(new xoe(c,u),null,null,!0,r,i)}return Kte()}function Qoe(e){var t=e.toTimestamp();return[t.seconds,t.nanoseconds]}function ese(e){var t=new rne(e[0],e[1]);return ine.fromTimestamp(t)}function tse(e){var t=e.toTimestamp();return new goe(t.seconds,t.nanoseconds)}function nse(e){var t=new rne(e.seconds,e.nanoseconds);return ine.fromTimestamp(t)}function rse(e,t){for(var n=(t.baseMutations||[]).map((function(t){return Zie(e.Lt,t)})),r=0;r<t.mutations.length-1;++r){var i=t.mutations[r];if(r+1<t.mutations.length&&void 0!==t.mutations[r+1].transform){var o=t.mutations[r+1];i.updateTransforms=o.transform.fieldTransforms,t.mutations.splice(r+1,1),++r}}var s=t.mutations.map((function(t){return Zie(e.Lt,t)})),a=rne.fromMillis(t.localWriteTimeMs);return new Xoe(t.batchId,a,n,s)}function ise(e){var t,n,r=nse(e.readTime),i=void 0!==e.lastLimboFreeSnapshotVersion?nse(e.lastLimboFreeSnapshotVersion):ine.min();return void 0!==e.query.documents?(Zte(1===(n=e.query).documents.length),t=yre(ure(Wie(n.documents[0])))):t=function(e){return yre(Qie(e))}(e.query),new Koe(t,e.targetId,0,e.lastListenSequenceNumber,r,i,pne.fromBase64String(e.resumeToken))}function ose(e,t){var n,r=tse(t.snapshotVersion),i=tse(t.lastLimboFreeSnapshotVersion);n=qne(t.target)?$ie(e.Lt,t.target):Jie(e.Lt,t.target);var o=t.resumeToken.toBase64();return new Eoe(t.targetId,Wne(t.target),r,o,t.sequenceNumber,i,n)}function sse(e){var t=Qie({parent:e.parent,structuredQuery:e.structuredQuery});return"LAST"===e.limitType?vre(t,t.limit,"L"):t}var ase=function(){function e(){}return e.prototype.getBundleMetadata=function(e,t){return lse(e).get(t).next((function(e){if(e)return{id:(t=e).bundleId,createTime:nse(t.createTime),version:t.version};var t}))},e.prototype.saveBundleMetadata=function(e,t){return lse(e).put({bundleId:(n=t).id,createTime:tse(Lie(n.createTime)),version:n.version});var n},e.prototype.getNamedQuery=function(e,t){return cse(e).get(t).next((function(e){if(e)return{name:(t=e).name,query:sse(t.bundledQuery),readTime:nse(t.readTime)};var t}))},e.prototype.saveNamedQuery=function(e,t){return cse(e).put(function(e){return{name:e.name,readTime:tse(Lie(e.readTime)),bundledQuery:e.bundledQuery}}(t))},e}();function lse(e){return qoe(e,joe.store)}function cse(e){return qoe(e,Ioe.store)}var use=function(){function e(){this.Bt=new dse}return e.prototype.addToCollectionParentIndex=function(e,t){return this.Bt.add(t),Roe.resolve()},e.prototype.getCollectionParents=function(e,t){return Roe.resolve(this.Bt.getEntries(t))},e}(),dse=function(){function e(){this.index={}}return e.prototype.add=function(e){var t=e.lastSegment(),n=e.popLast(),r=this.index[t]||new die(cne.comparator),i=!r.has(n);return this.index[t]=r.add(n),i},e.prototype.has=function(e){var t=e.lastSegment(),n=e.popLast(),r=this.index[t];return r&&r.has(n)},e.prototype.getEntries=function(e){return(this.index[e]||new die(cne.comparator)).toArray()},e}(),hse=function(){function e(){this.qt=new dse}return e.prototype.addToCollectionParentIndex=function(e,t){var n=this;if(!this.qt.has(t)){var r=t.lastSegment(),i=t.popLast();e.addOnCommittedListener((function(){n.qt.add(t)}));var o={collectionId:r,parent:doe(i)};return pse(e).put(o)}return Roe.resolve()},e.prototype.getCollectionParents=function(e,t){var n=[],r=IDBKeyRange.bound([t,""],[nne(t),""],!1,!0);return pse(e).Nt(r).next((function(e){for(var r=0,i=e;r<i.length;r++){var o=i[r];if(o.collectionId!==t)break;n.push(foe(o.parent))}return n}))},e}();function pse(e){return qoe(e,Aoe.store)}var fse={didRun:!1,sequenceNumbersCollected:0,targetsRemoved:0,documentsRemoved:0},gse=function(){function e(e,t,n){this.cacheSizeCollectionThreshold=e,this.percentileToCollect=t,this.maximumSequenceNumbersToCollect=n}return e.withCacheSize=function(t){return new e(t,e.DEFAULT_COLLECTION_PERCENTILE,e.DEFAULT_MAX_SEQUENCE_NUMBERS_TO_COLLECT)},e}();function mse(e,t,n){var r=e.store(voe.store),i=e.store(_oe.store),o=[],s=IDBKeyRange.only(n.batchId),a=0,l=r.$t({range:s},(function(e,t,n){return a++,n.delete()}));o.push(l.next((function(){Zte(1===a)})));for(var c=[],u=0,d=n.mutations;u<d.length;u++){var h=d[u],p=_oe.key(t,h.key.path,n.batchId);o.push(i.delete(p)),c.push(h.key)}return Roe.waitFor(o).next((function(){return c}))}function yse(e){if(!e)return 0;var t;if(e.document)t=e.document;else if(e.unknownDocument)t=e.unknownDocument;else{if(!e.noDocument)throw Kte();t=e.noDocument}return JSON.stringify(t).length}gse.DEFAULT_COLLECTION_PERCENTILE=10,gse.DEFAULT_MAX_SEQUENCE_NUMBERS_TO_COLLECT=1e3,gse.DEFAULT=new gse(41943040,gse.DEFAULT_COLLECTION_PERCENTILE,gse.DEFAULT_MAX_SEQUENCE_NUMBERS_TO_COLLECT),gse.DISABLED=new gse(-1,0,0);var vse=function(){function e(e,t,n,r){this.userId=e,this.R=t,this.Ut=n,this.referenceDelegate=r,this.Kt={}}return e.Qt=function(t,n,r,i){return Zte(""!==t.uid),new e(t.isAuthenticated()?t.uid:"",n,r,i)},e.prototype.checkEmpty=function(e){var t=!0,n=IDBKeyRange.bound([this.userId,Number.NEGATIVE_INFINITY],[this.userId,Number.POSITIVE_INFINITY]);return bse(e).$t({index:voe.userMutationsIndex,range:n},(function(e,n,r){t=!1,r.done()})).next((function(){return t}))},e.prototype.addMutationBatch=function(e,t,n,r){var i=this,o=xse(e),s=bse(e);return s.add({}).next((function(a){Zte("number"==typeof a);for(var l=new Xoe(a,t,n,r),c=function(e,t,n){var r=n.baseMutations.map((function(t){return Kie(e.Lt,t)})),i=n.mutations.map((function(t){return Kie(e.Lt,t)}));return new voe(t,n.batchId,n.localWriteTime.toMillis(),r,i)}(i.R,i.userId,l),u=[],d=new die((function(e,t){return ene(e.canonicalString(),t.canonicalString())})),h=0,p=r;h<p.length;h++){var f=p[h],g=_oe.key(i.userId,f.key.path,a);d=d.add(f.key.path.popLast()),u.push(s.put(c)),u.push(o.put(g,_oe.PLACEHOLDER))}return d.forEach((function(t){u.push(i.Ut.addToCollectionParentIndex(e,t))})),e.addOnCommittedListener((function(){i.Kt[a]=l.keys()})),Roe.waitFor(u).next((function(){return l}))}))},e.prototype.lookupMutationBatch=function(e,t){var n=this;return bse(e).get(t).next((function(e){return e?(Zte(e.userId===n.userId),rse(n.R,e)):null}))},e.prototype.jt=function(e,t){var n=this;return this.Kt[t]?Roe.resolve(this.Kt[t]):this.lookupMutationBatch(e,t).next((function(e){if(e){var r=e.keys();return n.Kt[t]=r,r}return null}))},e.prototype.getNextMutationBatchAfterBatchId=function(e,t){var n=this,r=t+1,i=IDBKeyRange.lowerBound([this.userId,r]),o=null;return bse(e).$t({index:voe.userMutationsIndex,range:i},(function(e,t,i){t.userId===n.userId&&(Zte(t.batchId>=r),o=rse(n.R,t)),i.done()})).next((function(){return o}))},e.prototype.getHighestUnacknowledgedBatchId=function(e){var t=IDBKeyRange.upperBound([this.userId,Number.POSITIVE_INFINITY]),n=-1;return bse(e).$t({index:voe.userMutationsIndex,range:t,reverse:!0},(function(e,t,r){n=t.batchId,r.done()})).next((function(){return n}))},e.prototype.getAllMutationBatches=function(e){var t=this,n=IDBKeyRange.bound([this.userId,-1],[this.userId,Number.POSITIVE_INFINITY]);return bse(e).Nt(voe.userMutationsIndex,n).next((function(e){return e.map((function(e){return rse(t.R,e)}))}))},e.prototype.getAllMutationBatchesAffectingDocumentKey=function(e,t){var n=this,r=_oe.prefixForPath(this.userId,t.path),i=IDBKeyRange.lowerBound(r),o=[];return xse(e).$t({range:i},(function(r,i,s){var a=r[0],l=r[1],c=r[2],u=foe(l);if(a===n.userId&&t.path.isEqual(u))return bse(e).get(c).next((function(e){if(!e)throw Kte();Zte(e.userId===n.userId),o.push(rse(n.R,e))}));s.done()})).next((function(){return o}))},e.prototype.getAllMutationBatchesAffectingDocumentKeys=function(e,t){var n=this,r=new die(ene),i=[];return t.forEach((function(t){var o=_oe.prefixForPath(n.userId,t.path),s=IDBKeyRange.lowerBound(o),a=xse(e).$t({range:s},(function(e,i,o){var s=e[0],a=e[1],l=e[2],c=foe(a);s===n.userId&&t.path.isEqual(c)?r=r.add(l):o.done()}));i.push(a)})),Roe.waitFor(i).next((function(){return n.Wt(e,r)}))},e.prototype.getAllMutationBatchesAffectingQuery=function(e,t){var n=this,r=t.path,i=r.length+1,o=_oe.prefixForPath(this.userId,r),s=IDBKeyRange.lowerBound(o),a=new die(ene);return xse(e).$t({range:s},(function(e,t,o){var s=e[0],l=e[1],c=e[2],u=foe(l);s===n.userId&&r.isPrefixOf(u)?u.length===i&&(a=a.add(c)):o.done()})).next((function(){return n.Wt(e,a)}))},e.prototype.Wt=function(e,t){var n=this,r=[],i=[];return t.forEach((function(t){i.push(bse(e).get(t).next((function(e){if(null===e)throw Kte();Zte(e.userId===n.userId),r.push(rse(n.R,e))})))})),Roe.waitFor(i).next((function(){return r}))},e.prototype.removeMutationBatch=function(e,t){var n=this;return mse(e.Mt,this.userId,t).next((function(r){return e.addOnCommittedListener((function(){n.Gt(t.batchId)})),Roe.forEach(r,(function(t){return n.referenceDelegate.markPotentiallyOrphaned(e,t)}))}))},e.prototype.Gt=function(e){delete this.Kt[e]},e.prototype.performConsistencyCheck=function(e){var t=this;return this.checkEmpty(e).next((function(n){if(!n)return Roe.resolve();var r=IDBKeyRange.lowerBound(_oe.prefixForUser(t.userId)),i=[];return xse(e).$t({range:r},(function(e,n,r){if(e[0]===t.userId){var o=foe(e[1]);i.push(o)}else r.done()})).next((function(){Zte(0===i.length)}))}))},e.prototype.containsKey=function(e,t){return _se(e,this.userId,t)},e.prototype.zt=function(e){var t=this;return Sse(e).get(this.userId).next((function(e){return e||new yoe(t.userId,-1,"")}))},e}();function _se(e,t,n){var r=_oe.prefixForPath(t,n.path),i=r[1],o=IDBKeyRange.lowerBound(r),s=!1;return xse(e).$t({range:o,Ft:!0},(function(e,n,r){var o=e[0],a=e[1];e[2],o===t&&a===i&&(s=!0),r.done()})).next((function(){return s}))}function bse(e){return qoe(e,voe.store)}function xse(e){return qoe(e,_oe.store)}function Sse(e){return qoe(e,yoe.store)}var wse=function(){function e(e){this.Ht=e}return e.prototype.next=function(){return this.Ht+=2,this.Ht},e.Jt=function(){return new e(0)},e.Yt=function(){return new e(-1)},e}(),Ese=function(){function e(e,t){this.referenceDelegate=e,this.R=t}return e.prototype.allocateTargetId=function(e){var t=this;return this.Xt(e).next((function(n){var r=new wse(n.highestTargetId);return n.highestTargetId=r.next(),t.Zt(e,n).next((function(){return n.highestTargetId}))}))},e.prototype.getLastRemoteSnapshotVersion=function(e){return this.Xt(e).next((function(e){return ine.fromTimestamp(new rne(e.lastRemoteSnapshotVersion.seconds,e.lastRemoteSnapshotVersion.nanoseconds))}))},e.prototype.getHighestSequenceNumber=function(e){return this.Xt(e).next((function(e){return e.highestListenSequenceNumber}))},e.prototype.setTargetsMetadata=function(e,t,n){var r=this;return this.Xt(e).next((function(i){return i.highestListenSequenceNumber=t,n&&(i.lastRemoteSnapshotVersion=n.toTimestamp()),t>i.highestListenSequenceNumber&&(i.highestListenSequenceNumber=t),r.Zt(e,i)}))},e.prototype.addTargetData=function(e,t){var n=this;return this.te(e,t).next((function(){return n.Xt(e).next((function(r){return r.targetCount+=1,n.ee(t,r),n.Zt(e,r)}))}))},e.prototype.updateTargetData=function(e,t){return this.te(e,t)},e.prototype.removeTargetData=function(e,t){var n=this;return this.removeMatchingKeysForTargetId(e,t.targetId).next((function(){return Pse(e).delete(t.targetId)})).next((function(){return n.Xt(e)})).next((function(t){return Zte(t.targetCount>0),t.targetCount-=1,n.Zt(e,t)}))},e.prototype.removeTargets=function(e,t,n){var r=this,i=0,o=[];return Pse(e).$t((function(s,a){var l=ise(a);l.sequenceNumber<=t&&null===n.get(l.targetId)&&(i++,o.push(r.removeTargetData(e,l)))})).next((function(){return Roe.waitFor(o)})).next((function(){return i}))},e.prototype.forEachTarget=function(e,t){return Pse(e).$t((function(e,n){var r=ise(n);t(r)}))},e.prototype.Xt=function(e){return Cse(e).get(Coe.key).next((function(e){return Zte(null!==e),e}))},e.prototype.Zt=function(e,t){return Cse(e).put(Coe.key,t)},e.prototype.te=function(e,t){return Pse(e).put(ose(this.R,t))},e.prototype.ee=function(e,t){var n=!1;return e.targetId>t.highestTargetId&&(t.highestTargetId=e.targetId,n=!0),e.sequenceNumber>t.highestListenSequenceNumber&&(t.highestListenSequenceNumber=e.sequenceNumber,n=!0),n},e.prototype.getTargetCount=function(e){return this.Xt(e).next((function(e){return e.targetCount}))},e.prototype.getTargetData=function(e,t){var n=Wne(t),r=IDBKeyRange.bound([n,Number.NEGATIVE_INFINITY],[n,Number.POSITIVE_INFINITY]),i=null;return Pse(e).$t({range:r,index:Eoe.queryTargetsIndexName},(function(e,n,r){var o=ise(n);Hne(t,o.target)&&(i=o,r.done())})).next((function(){return i}))},e.prototype.addMatchingKeys=function(e,t,n){var r=this,i=[],o=Ase(e);return t.forEach((function(t){var s=doe(t.path);i.push(o.put(new Poe(n,s))),i.push(r.referenceDelegate.addReference(e,n,t))})),Roe.waitFor(i)},e.prototype.removeMatchingKeys=function(e,t,n){var r=this,i=Ase(e);return Roe.forEach(t,(function(t){var o=doe(t.path);return Roe.waitFor([i.delete([n,o]),r.referenceDelegate.removeReference(e,n,t)])}))},e.prototype.removeMatchingKeysForTargetId=function(e,t){var n=Ase(e),r=IDBKeyRange.bound([t],[t+1],!1,!0);return n.delete(r)},e.prototype.getMatchingKeysForTargetId=function(e,t){var n=IDBKeyRange.bound([t],[t+1],!1,!0),r=Ase(e),i=bie();return r.$t({range:n,Ft:!0},(function(e,t,n){var r=foe(e[1]),o=new Ene(r);i=i.add(o)})).next((function(){return i}))},e.prototype.containsKey=function(e,t){var n=doe(t.path),r=IDBKeyRange.bound([n],[nne(n)],!1,!0),i=0;return Ase(e).$t({index:Poe.documentTargetsIndex,Ft:!0,range:r},(function(e,t,n){var r=e[0];e[1],0!==r&&(i++,n.done())})).next((function(){return i>0}))},e.prototype.lt=function(e,t){return Pse(e).get(t).next((function(e){return e?ise(e):null}))},e}();function Pse(e){return qoe(e,Eoe.store)}function Cse(e){return qoe(e,Coe.store)}function Ase(e){return qoe(e,Poe.store)}function kse(e){return hi(this,void 0,void 0,(function(){return pi(this,(function(t){if(e.code!==zte.FAILED_PRECONDITION||e.message!==Toe)throw e;return Hte("LocalStore","Unexpectedly lost primary lease"),[2]}))}))}function jse(e,t){var n=e[0],r=e[1],i=t[0],o=t[1],s=ene(n,i);return 0===s?ene(r,o):s}var Ise=function(){function e(e){this.ne=e,this.buffer=new die(jse),this.se=0}return e.prototype.ie=function(){return++this.se},e.prototype.re=function(e){var t=[e,this.ie()];if(this.buffer.size<this.ne)this.buffer=this.buffer.add(t);else{var n=this.buffer.last();jse(t,n)<0&&(this.buffer=this.buffer.delete(n).add(t))}},Object.defineProperty(e.prototype,"maxValue",{get:function(){return this.buffer.last()[0]},enumerable:!1,configurable:!0}),e}(),Gse=function(){function e(e,t){this.garbageCollector=e,this.asyncQueue=t,this.oe=!1,this.ce=null}return e.prototype.start=function(e){-1!==this.garbageCollector.params.cacheSizeCollectionThreshold&&this.ue(e)},e.prototype.stop=function(){this.ce&&(this.ce.cancel(),this.ce=null)},Object.defineProperty(e.prototype,"started",{get:function(){return null!==this.ce},enumerable:!1,configurable:!0}),e.prototype.ue=function(e){var t=this,n=this.oe?3e5:6e4;Hte("LruGarbageCollector","Garbage collection scheduled in "+n+"ms"),this.ce=this.asyncQueue.enqueueAfterDelay("lru_garbage_collection",n,(function(){return hi(t,void 0,void 0,(function(){var t;return pi(this,(function(n){switch(n.label){case 0:this.ce=null,this.oe=!0,n.label=1;case 1:return n.trys.push([1,3,,7]),[4,e.collectGarbage(this.garbageCollector)];case 2:return n.sent(),[3,7];case 3:return Foe(t=n.sent())?(Hte("LruGarbageCollector","Ignoring IndexedDB error during garbage collection: ",t),[3,6]):[3,4];case 4:return[4,kse(t)];case 5:n.sent(),n.label=6;case 6:return[3,7];case 7:return[4,this.ue(e)];case 8:return n.sent(),[2]}}))}))}))},e}(),Tse=function(){function e(e,t){this.ae=e,this.params=t}return e.prototype.calculateTargetCount=function(e,t){return this.ae.he(e).next((function(e){return Math.floor(t/100*e)}))},e.prototype.nthSequenceNumber=function(e,t){var n=this;if(0===t)return Roe.resolve(Fte.o);var r=new Ise(t);return this.ae.forEachTarget(e,(function(e){return r.re(e.sequenceNumber)})).next((function(){return n.ae.le(e,(function(e){return r.re(e)}))})).next((function(){return r.maxValue}))},e.prototype.removeTargets=function(e,t,n){return this.ae.removeTargets(e,t,n)},e.prototype.removeOrphanedDocuments=function(e,t){return this.ae.removeOrphanedDocuments(e,t)},e.prototype.collect=function(e,t){var n=this;return-1===this.params.cacheSizeCollectionThreshold?(Hte("LruGarbageCollector","Garbage collection skipped; disabled"),Roe.resolve(fse)):this.getCacheSize(e).next((function(r){return r<n.params.cacheSizeCollectionThreshold?(Hte("LruGarbageCollector","Garbage collection skipped; Cache size "+r+" is lower than threshold "+n.params.cacheSizeCollectionThreshold),fse):n.fe(e,t)}))},e.prototype.getCacheSize=function(e){return this.ae.getCacheSize(e)},e.prototype.fe=function(e,t){var n,r,i,o,s,a,l,c=this,u=Date.now();return this.calculateTargetCount(e,this.params.percentileToCollect).next((function(t){return t>c.params.maximumSequenceNumbersToCollect?(Hte("LruGarbageCollector","Capping sequence numbers to collect down to the maximum of "+c.params.maximumSequenceNumbersToCollect+" from "+t),r=c.params.maximumSequenceNumbersToCollect):r=t,o=Date.now(),c.nthSequenceNumber(e,r)})).next((function(r){return n=r,s=Date.now(),c.removeTargets(e,n,t)})).next((function(t){return i=t,a=Date.now(),c.removeOrphanedDocuments(e,n)})).next((function(e){return l=Date.now(),Wte()<=Vi.DEBUG&&Hte("LruGarbageCollector","LRU Garbage Collection\n\tCounted targets in "+(o-u)+"ms\n\tDetermined least recently used "+r+" in "+(s-o)+"ms\n\tRemoved "+i+" targets in "+(a-s)+"ms\n\tRemoved "+e+" documents in "+(l-a)+"ms\nTotal Duration: "+(l-u)+"ms"),Roe.resolve({didRun:!0,sequenceNumbersCollected:r,targetsRemoved:i,documentsRemoved:e})}))},e}(),Mse=function(){function e(e,t){this.db=e,this.garbageCollector=function(e,t){return new Tse(e,t)}(this,t)}return e.prototype.he=function(e){var t=this.de(e);return this.db.getTargetCache().getTargetCount(e).next((function(e){return t.next((function(t){return e+t}))}))},e.prototype.de=function(e){var t=0;return this.le(e,(function(e){t++})).next((function(){return t}))},e.prototype.forEachTarget=function(e,t){return this.db.getTargetCache().forEachTarget(e,t)},e.prototype.le=function(e,t){return this.we(e,(function(e,n){return t(n)}))},e.prototype.addReference=function(e,t,n){return Ose(e,n)},e.prototype.removeReference=function(e,t,n){return Ose(e,n)},e.prototype.removeTargets=function(e,t,n){return this.db.getTargetCache().removeTargets(e,t,n)},e.prototype.markPotentiallyOrphaned=function(e,t){return Ose(e,t)},e.prototype._e=function(e,t){return function(e,t){var n=!1;return Sse(e).Ot((function(r){return _se(e,r,t).next((function(e){return e&&(n=!0),Roe.resolve(!e)}))})).next((function(){return n}))}(e,t)},e.prototype.removeOrphanedDocuments=function(e,t){var n=this,r=this.db.getRemoteDocumentCache().newChangeBuffer(),i=[],o=0;return this.we(e,(function(s,a){if(a<=t){var l=n._e(e,s).next((function(t){if(!t)return o++,r.getEntry(e,s).next((function(){return r.removeEntry(s),Ase(e).delete([0,doe(s.path)])}))}));i.push(l)}})).next((function(){return Roe.waitFor(i)})).next((function(){return r.apply(e)})).next((function(){return o}))},e.prototype.removeTarget=function(e,t){var n=t.withSequenceNumber(e.currentSequenceNumber);return this.db.getTargetCache().updateTargetData(e,n)},e.prototype.updateLimboDocument=function(e,t){return Ose(e,t)},e.prototype.we=function(e,t){var n,r=Ase(e),i=Fte.o;return r.$t({index:Poe.documentTargetsIndex},(function(e,r){var o=e[0];e[1];var s=r.path,a=r.sequenceNumber;0===o?(i!==Fte.o&&t(new Ene(foe(n)),i),i=a,n=s):i=Fte.o})).next((function(){i!==Fte.o&&t(new Ene(foe(n)),i)}))},e.prototype.getCacheSize=function(e){return this.db.getRemoteDocumentCache().getSize(e)},e}();function Ose(e,t){return Ase(e).put(function(e,t){return new Poe(0,doe(e.path),t)}(t,e.currentSequenceNumber))}var Rse=function(){function e(e,t){this.mapKeyFn=e,this.equalsFn=t,this.inner={}}return e.prototype.get=function(e){var t=this.mapKeyFn(e),n=this.inner[t];if(void 0!==n)for(var r=0,i=n;r<i.length;r++){var o=i[r],s=o[0],a=o[1];if(this.equalsFn(s,e))return a}},e.prototype.has=function(e){return void 0!==this.get(e)},e.prototype.set=function(e,t){var n=this.mapKeyFn(e),r=this.inner[n];if(void 0!==r){for(var i=0;i<r.length;i++)if(this.equalsFn(r[i][0],e))return void(r[i]=[e,t]);r.push([e,t])}else this.inner[n]=[[e,t]]},e.prototype.delete=function(e){var t=this.mapKeyFn(e),n=this.inner[t];if(void 0===n)return!1;for(var r=0;r<n.length;r++)if(this.equalsFn(n[r][0],e))return 1===n.length?delete this.inner[t]:n.splice(r,1),!0;return!1},e.prototype.forEach=function(e){sne(this.inner,(function(t,n){for(var r=0,i=n;r<i.length;r++){var o=i[r],s=o[0],a=o[1];e(s,a)}}))},e.prototype.isEmpty=function(){return ane(this.inner)},e}(),Dse=function(){function e(){this.changes=new Rse((function(e){return e.toString()}),(function(e,t){return e.isEqual(t)})),this.changesApplied=!1}return e.prototype.getReadTime=function(e){var t=this.changes.get(e);return t?t.readTime:ine.min()},e.prototype.addEntry=function(e,t){this.assertNotApplied(),this.changes.set(e.key,{document:e,readTime:t})},e.prototype.removeEntry=function(e,t){void 0===t&&(t=null),this.assertNotApplied(),this.changes.set(e,{document:zne.newInvalidDocument(e),readTime:t})},e.prototype.getEntry=function(e,t){this.assertNotApplied();var n=this.changes.get(t);return void 0!==n?Roe.resolve(n.document):this.getFromCache(e,t)},e.prototype.getEntries=function(e,t){return this.getAllFromCache(e,t)},e.prototype.apply=function(e){return this.assertNotApplied(),this.changesApplied=!0,this.applyChanges(e)},e.prototype.assertNotApplied=function(){},e}(),Nse=function(){function e(e,t){this.R=e,this.Ut=t}return e.prototype.addEntry=function(e,t,n){return Fse(e).put(zse(t),n)},e.prototype.removeEntry=function(e,t){var n=Fse(e),r=zse(t);return n.delete(r)},e.prototype.updateMetadata=function(e,t){var n=this;return this.getMetadata(e).next((function(r){return r.byteSize+=t,n.me(e,r)}))},e.prototype.getEntry=function(e,t){var n=this;return Fse(e).get(zse(t)).next((function(e){return n.ye(t,e)}))},e.prototype.ge=function(e,t){var n=this;return Fse(e).get(zse(t)).next((function(e){return{document:n.ye(t,e),size:yse(e)}}))},e.prototype.getEntries=function(e,t){var n=this,r=fie();return this.pe(e,t,(function(e,t){var i=n.ye(e,t);r=r.insert(e,i)})).next((function(){return r}))},e.prototype.Ee=function(e,t){var n=this,r=fie(),i=new lie(Ene.comparator);return this.pe(e,t,(function(e,t){var o=n.ye(e,t);r=r.insert(e,o),i=i.insert(e,yse(t))})).next((function(){return{documents:r,Te:i}}))},e.prototype.pe=function(e,t,n){if(t.isEmpty())return Roe.resolve();var r=IDBKeyRange.bound(t.first().path.toArray(),t.last().path.toArray()),i=t.getIterator(),o=i.getNext();return Fse(e).$t({range:r},(function(e,t,r){for(var s=Ene.fromSegments(e);o&&Ene.comparator(o,s)<0;)n(o,null),o=i.getNext();o&&o.isEqual(s)&&(n(o,t),o=i.hasNext()?i.getNext():null),o?r.Ct(o.path.toArray()):r.done()})).next((function(){for(;o;)n(o,null),o=i.hasNext()?i.getNext():null}))},e.prototype.getDocumentsMatchingQuery=function(e,t,n){var r=this,i=fie(),o=t.path.length+1,s={};if(n.isEqual(ine.min())){var a=t.path.toArray();s.range=IDBKeyRange.lowerBound(a)}else{var l=t.path.toArray(),c=Qoe(n);s.range=IDBKeyRange.lowerBound([l,c],!0),s.index=Soe.collectionReadTimeIndex}return Fse(e).$t(s,(function(e,n,s){if(e.length===o){var a=$oe(r.R,n);t.path.isPrefixOf(a.key.path)?Sre(t,a)&&(i=i.insert(a.key,a)):s.done()}})).next((function(){return i}))},e.prototype.newChangeBuffer=function(e){return new Lse(this,!!e&&e.trackRemovals)},e.prototype.getSize=function(e){return this.getMetadata(e).next((function(e){return e.byteSize}))},e.prototype.getMetadata=function(e){return Vse(e).get(woe.key).next((function(e){return Zte(!!e),e}))},e.prototype.me=function(e,t){return Vse(e).put(woe.key,t)},e.prototype.ye=function(e,t){if(t){var n=$oe(this.R,t);if(!n.isNoDocument()||!n.version.isEqual(ine.min()))return n}return zne.newInvalidDocument(e)},e}(),Lse=function(e){function t(t,n){var r=this;return(r=e.call(this)||this).Ie=t,r.trackRemovals=n,r.Ae=new Rse((function(e){return e.toString()}),(function(e,t){return e.isEqual(t)})),r}return ui(t,e),t.prototype.applyChanges=function(e){var t=this,n=[],r=0,i=new die((function(e,t){return ene(e.canonicalString(),t.canonicalString())}));return this.changes.forEach((function(o,s){var a=t.Ae.get(o);if(s.document.isValidDocument()){var l=Joe(t.Ie.R,s.document,t.getReadTime(o));i=i.add(o.path.popLast());var c=yse(l);r+=c-a,n.push(t.Ie.addEntry(e,o,l))}else if(r-=a,t.trackRemovals){var u=Joe(t.Ie.R,zne.newNoDocument(o,ine.min()),t.getReadTime(o));n.push(t.Ie.addEntry(e,o,u))}else n.push(t.Ie.removeEntry(e,o))})),i.forEach((function(r){n.push(t.Ie.Ut.addToCollectionParentIndex(e,r))})),n.push(this.Ie.updateMetadata(e,r)),Roe.waitFor(n)},t.prototype.getFromCache=function(e,t){var n=this;return this.Ie.ge(e,t).next((function(e){return n.Ae.set(t,e.size),e.document}))},t.prototype.getAllFromCache=function(e,t){var n=this;return this.Ie.Ee(e,t).next((function(e){var t=e.documents;return e.Te.forEach((function(e,t){n.Ae.set(e,t)})),t}))},t}(Dse);function Vse(e){return qoe(e,woe.store)}function Fse(e){return qoe(e,Soe.store)}function zse(e){return e.path.toArray()}var Bse=function(){function e(e){this.R=e}return e.prototype.Rt=function(e,t,n,r){var i=this;Zte(n<r&&n>=0&&r<=11);var o=new Doe("createOrUpgrade",t);n<1&&r>=1&&(function(e){e.createObjectStore(moe.store)}(e),function(e){e.createObjectStore(yoe.store,{keyPath:yoe.keyPath}),e.createObjectStore(voe.store,{keyPath:voe.keyPath,autoIncrement:!0}).createIndex(voe.userMutationsIndex,voe.userMutationsKeyPath,{unique:!0}),e.createObjectStore(_oe.store)}(e),Use(e),function(e){e.createObjectStore(Soe.store)}(e));var s=Roe.resolve();return n<3&&r>=3&&(0!==n&&(function(e){e.deleteObjectStore(Poe.store),e.deleteObjectStore(Eoe.store),e.deleteObjectStore(Coe.store)}(e),Use(e)),s=s.next((function(){return function(e){var t=e.store(Coe.store),n=new Coe(0,0,ine.min().toTimestamp(),0);return t.put(Coe.key,n)}(o)}))),n<4&&r>=4&&(0!==n&&(s=s.next((function(){return function(e,t){return t.store(voe.store).Nt().next((function(n){e.deleteObjectStore(voe.store),e.createObjectStore(voe.store,{keyPath:voe.keyPath,autoIncrement:!0}).createIndex(voe.userMutationsIndex,voe.userMutationsKeyPath,{unique:!0});var r=t.store(voe.store),i=n.map((function(e){return r.put(e)}));return Roe.waitFor(i)}))}(e,o)}))),s=s.next((function(){!function(e){e.createObjectStore(koe.store,{keyPath:koe.keyPath})}(e)}))),n<5&&r>=5&&(s=s.next((function(){return i.Re(o)}))),n<6&&r>=6&&(s=s.next((function(){return function(e){e.createObjectStore(woe.store)}(e),i.be(o)}))),n<7&&r>=7&&(s=s.next((function(){return i.ve(o)}))),n<8&&r>=8&&(s=s.next((function(){return i.Pe(e,o)}))),n<9&&r>=9&&(s=s.next((function(){!function(e){e.objectStoreNames.contains("remoteDocumentChanges")&&e.deleteObjectStore("remoteDocumentChanges")}(e),function(e){var t=e.objectStore(Soe.store);t.createIndex(Soe.readTimeIndex,Soe.readTimeIndexPath,{unique:!1}),t.createIndex(Soe.collectionReadTimeIndex,Soe.collectionReadTimeIndexPath,{unique:!1})}(t)}))),n<10&&r>=10&&(s=s.next((function(){return i.Ve(o)}))),n<11&&r>=11&&(s=s.next((function(){!function(e){e.createObjectStore(joe.store,{keyPath:joe.keyPath})}(e),function(e){e.createObjectStore(Ioe.store,{keyPath:Ioe.keyPath})}(e)}))),s},e.prototype.be=function(e){var t=0;return e.store(Soe.store).$t((function(e,n){t+=yse(n)})).next((function(){var n=new woe(t);return e.store(woe.store).put(woe.key,n)}))},e.prototype.Re=function(e){var t=this,n=e.store(yoe.store),r=e.store(voe.store);return n.Nt().next((function(n){return Roe.forEach(n,(function(n){var i=IDBKeyRange.bound([n.userId,-1],[n.userId,n.lastAcknowledgedBatchId]);return r.Nt(voe.userMutationsIndex,i).next((function(r){return Roe.forEach(r,(function(r){Zte(r.userId===n.userId);var i=rse(t.R,r);return mse(e,n.userId,i).next((function(){}))}))}))}))}))},e.prototype.ve=function(e){var t=e.store(Poe.store),n=e.store(Soe.store);return e.store(Coe.store).get(Coe.key).next((function(e){var r=[];return n.$t((function(n,i){var o=new cne(n),s=function(e){return[0,doe(e)]}(o);r.push(t.get(s).next((function(n){return n?Roe.resolve():function(n){return t.put(new Poe(0,doe(n),e.highestListenSequenceNumber))}(o)})))})).next((function(){return Roe.waitFor(r)}))}))},e.prototype.Pe=function(e,t){e.createObjectStore(Aoe.store,{keyPath:Aoe.keyPath});var n=t.store(Aoe.store),r=new dse,i=function(e){if(r.add(e)){var t=e.lastSegment(),i=e.popLast();return n.put({collectionId:t,parent:doe(i)})}};return t.store(Soe.store).$t({Ft:!0},(function(e,t){var n=new cne(e);return i(n.popLast())})).next((function(){return t.store(_oe.store).$t({Ft:!0},(function(e,t){e[0];var n=e[1];e[2];var r=foe(n);return i(r.popLast())}))}))},e.prototype.Ve=function(e){var t=this,n=e.store(Eoe.store);return n.$t((function(e,r){var i=ise(r),o=ose(t.R,i);return n.put(o)}))},e}();function Use(e){e.createObjectStore(Poe.store,{keyPath:Poe.keyPath}).createIndex(Poe.documentTargetsIndex,Poe.documentTargetsKeyPath,{unique:!0}),e.createObjectStore(Eoe.store,{keyPath:Eoe.keyPath}).createIndex(Eoe.queryTargetsIndexName,Eoe.queryTargetsKeyPath,{unique:!0}),e.createObjectStore(Coe.store)}var Wse="Failed to obtain exclusive access to the persistence layer. To allow shared access, multi-tab synchronization has to be enabled in all tabs. If you are using `experimentalForceOwningTab:true`, make sure that only one tab has persistence enabled at any given time.",Hse=function(){function e(t,n,r,i,o,s,a,l,c,u){if(this.allowTabSynchronization=t,this.persistenceKey=n,this.clientId=r,this.Se=o,this.window=s,this.document=a,this.De=c,this.Ce=u,this.Ne=null,this.xe=!1,this.isPrimary=!1,this.networkEnabled=!0,this.ke=null,this.inForeground=!1,this.Fe=null,this.$e=null,this.Oe=Number.NEGATIVE_INFINITY,this.Me=function(e){return Promise.resolve()},!e.yt())throw new Bte(zte.UNIMPLEMENTED,"This platform is either missing IndexedDB or is known to have an incomplete implementation. Offline persistence has been disabled.");this.referenceDelegate=new Mse(this,i),this.Le=n+"main",this.R=new Zoe(l),this.Be=new Noe(this.Le,11,new Bse(this.R)),this.qe=new Ese(this.referenceDelegate,this.R),this.Ut=new hse,this.Ue=function(e,t){return new Nse(e,t)}(this.R,this.Ut),this.Ke=new ase,this.window&&this.window.localStorage?this.Qe=this.window.localStorage:(this.Qe=null,!1===u&&qte("IndexedDbPersistence","LocalStorage is unavailable. As a result, persistence may not work reliably. In particular enablePersistence() could fail immediately after refreshing the page."))}return e.prototype.start=function(){var e=this;return this.je().then((function(){if(!e.isPrimary&&!e.allowTabSynchronization)throw new Bte(zte.FAILED_PRECONDITION,Wse);return e.We(),e.Ge(),e.ze(),e.runTransaction("getHighestListenSequenceNumber","readonly",(function(t){return e.qe.getHighestSequenceNumber(t)}))})).then((function(t){e.Ne=new Fte(t,e.De)})).then((function(){e.xe=!0})).catch((function(t){return e.Be&&e.Be.close(),Promise.reject(t)}))},e.prototype.He=function(e){var t=this;return this.Me=function(n){return hi(t,void 0,void 0,(function(){return pi(this,(function(t){return this.started?[2,e(n)]:[2]}))}))},e(this.isPrimary)},e.prototype.setDatabaseDeletedListener=function(e){var t=this;this.Be.vt((function(n){return hi(t,void 0,void 0,(function(){return pi(this,(function(t){switch(t.label){case 0:return null===n.newVersion?[4,e()]:[3,2];case 1:t.sent(),t.label=2;case 2:return[2]}}))}))}))},e.prototype.setNetworkEnabled=function(e){var t=this;this.networkEnabled!==e&&(this.networkEnabled=e,this.Se.enqueueAndForget((function(){return hi(t,void 0,void 0,(function(){return pi(this,(function(e){switch(e.label){case 0:return this.started?[4,this.je()]:[3,2];case 1:e.sent(),e.label=2;case 2:return[2]}}))}))})))},e.prototype.je=function(){var e=this;return this.runTransaction("updateClientMetadataAndTryBecomePrimary","readwrite",(function(t){return Xse(t).put(new koe(e.clientId,Date.now(),e.networkEnabled,e.inForeground)).next((function(){if(e.isPrimary)return e.Je(t).next((function(t){t||(e.isPrimary=!1,e.Se.enqueueRetryable((function(){return e.Me(!1)})))}))})).next((function(){return e.Ye(t)})).next((function(n){return e.isPrimary&&!n?e.Xe(t).next((function(){return!1})):!!n&&e.Ze(t).next((function(){return!0}))}))})).catch((function(t){if(Foe(t))return Hte("IndexedDbPersistence","Failed to extend owner lease: ",t),e.isPrimary;if(!e.allowTabSynchronization)throw t;return Hte("IndexedDbPersistence","Releasing owner lease after error during lease refresh",t),!1})).then((function(t){e.isPrimary!==t&&e.Se.enqueueRetryable((function(){return e.Me(t)})),e.isPrimary=t}))},e.prototype.Je=function(e){var t=this;return qse(e).get(moe.key).next((function(e){return Roe.resolve(t.tn(e))}))},e.prototype.en=function(e){return Xse(e).delete(this.clientId)},e.prototype.nn=function(){return hi(this,void 0,void 0,(function(){var e,t,n,r,i=this;return pi(this,(function(o){switch(o.label){case 0:return!this.isPrimary||this.sn(this.Oe,18e5)?[3,2]:(this.Oe=Date.now(),[4,this.runTransaction("maybeGarbageCollectMultiClientState","readwrite-primary",(function(e){var t=qoe(e,koe.store);return t.Nt().next((function(e){var n=i.rn(e,18e5),r=e.filter((function(e){return-1===n.indexOf(e)}));return Roe.forEach(r,(function(e){return t.delete(e.clientId)})).next((function(){return r}))}))})).catch((function(){return[]}))]);case 1:if(e=o.sent(),this.Qe)for(t=0,n=e;t<n.length;t++)r=n[t],this.Qe.removeItem(this.on(r.clientId));o.label=2;case 2:return[2]}}))}))},e.prototype.ze=function(){var e=this;this.$e=this.Se.enqueueAfterDelay("client_metadata_refresh",4e3,(function(){return e.je().then((function(){return e.nn()})).then((function(){return e.ze()}))}))},e.prototype.tn=function(e){return!!e&&e.ownerId===this.clientId},e.prototype.Ye=function(e){var t=this;return this.Ce?Roe.resolve(!0):qse(e).get(moe.key).next((function(n){if(null!==n&&t.sn(n.leaseTimestampMs,5e3)&&!t.cn(n.ownerId)){if(t.tn(n)&&t.networkEnabled)return!0;if(!t.tn(n)){if(!n.allowTabSynchronization)throw new Bte(zte.FAILED_PRECONDITION,Wse);return!1}}return!(!t.networkEnabled||!t.inForeground)||Xse(e).Nt().next((function(e){return void 0===t.rn(e,5e3).find((function(e){if(t.clientId!==e.clientId){var n=!t.networkEnabled&&e.networkEnabled,r=!t.inForeground&&e.inForeground,i=t.networkEnabled===e.networkEnabled;if(n||r&&i)return!0}return!1}))}))})).next((function(e){return t.isPrimary!==e&&Hte("IndexedDbPersistence","Client "+(e?"is":"is not")+" eligible for a primary lease."),e}))},e.prototype.shutdown=function(){return hi(this,void 0,void 0,(function(){var e=this;return pi(this,(function(t){switch(t.label){case 0:return this.xe=!1,this.un(),this.$e&&(this.$e.cancel(),this.$e=null),this.an(),this.hn(),[4,this.Be.runTransaction("shutdown","readwrite",[moe.store,koe.store],(function(t){var n=new Hoe(t,Fte.o);return e.Xe(n).next((function(){return e.en(n)}))}))];case 1:return t.sent(),this.Be.close(),this.ln(),[2]}}))}))},e.prototype.rn=function(e,t){var n=this;return e.filter((function(e){return n.sn(e.updateTimeMs,t)&&!n.cn(e.clientId)}))},e.prototype.fn=function(){var e=this;return this.runTransaction("getActiveClients","readonly",(function(t){return Xse(t).Nt().next((function(t){return e.rn(t,18e5).map((function(e){return e.clientId}))}))}))},Object.defineProperty(e.prototype,"started",{get:function(){return this.xe},enumerable:!1,configurable:!0}),e.prototype.getMutationQueue=function(e){return vse.Qt(e,this.R,this.Ut,this.referenceDelegate)},e.prototype.getTargetCache=function(){return this.qe},e.prototype.getRemoteDocumentCache=function(){return this.Ue},e.prototype.getIndexManager=function(){return this.Ut},e.prototype.getBundleCache=function(){return this.Ke},e.prototype.runTransaction=function(e,t,n){var r=this;Hte("IndexedDbPersistence","Starting transaction:",e);var i,o="readonly"===t?"readonly":"readwrite";return this.Be.runTransaction(e,o,Goe,(function(o){return i=new Hoe(o,r.Ne?r.Ne.next():Fte.o),"readwrite-primary"===t?r.Je(i).next((function(e){return!!e||r.Ye(i)})).next((function(t){if(!t)throw qte("Failed to obtain primary lease for action '"+e+"'."),r.isPrimary=!1,r.Se.enqueueRetryable((function(){return r.Me(!1)})),new Bte(zte.FAILED_PRECONDITION,Toe);return n(i)})).next((function(e){return r.Ze(i).next((function(){return e}))})):r.dn(i).next((function(){return n(i)}))})).then((function(e){return i.raiseOnCommittedEvent(),e}))},e.prototype.dn=function(e){var t=this;return qse(e).get(moe.key).next((function(e){if(null!==e&&t.sn(e.leaseTimestampMs,5e3)&&!t.cn(e.ownerId)&&!t.tn(e)&&!(t.Ce||t.allowTabSynchronization&&e.allowTabSynchronization))throw new Bte(zte.FAILED_PRECONDITION,Wse)}))},e.prototype.Ze=function(e){var t=new moe(this.clientId,this.allowTabSynchronization,Date.now());return qse(e).put(moe.key,t)},e.yt=function(){return Noe.yt()},e.prototype.Xe=function(e){var t=this,n=qse(e);return n.get(moe.key).next((function(e){return t.tn(e)?(Hte("IndexedDbPersistence","Releasing primary lease."),n.delete(moe.key)):Roe.resolve()}))},e.prototype.sn=function(e,t){var n=Date.now();return!(e<n-t||e>n&&(qte("Detected an update time that is in the future: "+e+" > "+n),1))},e.prototype.We=function(){var e=this;null!==this.document&&"function"==typeof this.document.addEventListener&&(this.Fe=function(){e.Se.enqueueAndForget((function(){return e.inForeground="visible"===e.document.visibilityState,e.je()}))},this.document.addEventListener("visibilitychange",this.Fe),this.inForeground="visible"===this.document.visibilityState)},e.prototype.an=function(){this.Fe&&(this.document.removeEventListener("visibilitychange",this.Fe),this.Fe=null)},e.prototype.Ge=function(){var e,t=this;"function"==typeof(null===(e=this.window)||void 0===e?void 0:e.addEventListener)&&(this.ke=function(){t.un(),!Ei()&&navigator.userAgent.includes("Safari")&&!navigator.userAgent.includes("Chrome")&&navigator.appVersion.match("Version/14")&&t.Se.enterRestrictedMode(!0),t.Se.enqueueAndForget((function(){return t.shutdown()}))},this.window.addEventListener("pagehide",this.ke))},e.prototype.hn=function(){this.ke&&(this.window.removeEventListener("pagehide",this.ke),this.ke=null)},e.prototype.cn=function(e){var t;try{var n=null!==(null===(t=this.Qe)||void 0===t?void 0:t.getItem(this.on(e)));return Hte("IndexedDbPersistence","Client '"+e+"' "+(n?"is":"is not")+" zombied in LocalStorage"),n}catch(e){return qte("IndexedDbPersistence","Failed to get zombied client id.",e),!1}},e.prototype.un=function(){if(this.Qe)try{this.Qe.setItem(this.on(this.clientId),String(Date.now()))}catch(e){qte("Failed to set zombie client id.",e)}},e.prototype.ln=function(){if(this.Qe)try{this.Qe.removeItem(this.on(this.clientId))}catch(e){}},e.prototype.on=function(e){return"firestore_zombie_"+this.persistenceKey+"_"+e},e}();function qse(e){return qoe(e,moe.store)}function Xse(e){return qoe(e,koe.store)}function Yse(e,t){var n=e.projectId;return e.isDefaultDatabase||(n+="."+e.database),"firestore/"+t+"/"+n+"/"}var Kse=function(e,t){this.progress=e,this.wn=t},Zse=function(){function e(e,t,n){this.Ue=e,this._n=t,this.Ut=n}return e.prototype.mn=function(e,t){var n=this;return this._n.getAllMutationBatchesAffectingDocumentKey(e,t).next((function(r){return n.yn(e,t,r)}))},e.prototype.yn=function(e,t,n){return this.Ue.getEntry(e,t).next((function(e){for(var t=0,r=n;t<r.length;t++)r[t].applyToLocalView(e);return e}))},e.prototype.gn=function(e,t){e.forEach((function(e,n){for(var r=0,i=t;r<i.length;r++)i[r].applyToLocalView(n)}))},e.prototype.pn=function(e,t){var n=this;return this.Ue.getEntries(e,t).next((function(t){return n.En(e,t).next((function(){return t}))}))},e.prototype.En=function(e,t){var n=this;return this._n.getAllMutationBatchesAffectingDocumentKeys(e,t).next((function(e){return n.gn(t,e)}))},e.prototype.getDocumentsMatchingQuery=function(e,t,n){return function(e){return Ene.isDocumentKey(e.path)&&null===e.collectionGroup&&0===e.filters.length}(t)?this.Tn(e,t.path):gre(t)?this.In(e,t,n):this.An(e,t,n)},e.prototype.Tn=function(e,t){return this.mn(e,new Ene(t)).next((function(e){var t=mie();return e.isFoundDocument()&&(t=t.insert(e.key,e)),t}))},e.prototype.In=function(e,t,n){var r=this,i=t.collectionGroup,o=mie();return this.Ut.getCollectionParents(e,i).next((function(s){return Roe.forEach(s,(function(s){var a=function(e,t){return new lre(t,null,e.explicitOrderBy.slice(),e.filters.slice(),e.limit,e.limitType,e.startAt,e.endAt)}(t,s.child(i));return r.An(e,a,n).next((function(e){e.forEach((function(e,t){o=o.insert(e,t)}))}))})).next((function(){return o}))}))},e.prototype.An=function(e,t,n){var r,i,o=this;return this.Ue.getDocumentsMatchingQuery(e,t,n).next((function(n){return r=n,o._n.getAllMutationBatchesAffectingQuery(e,t)})).next((function(t){return i=t,o.Rn(e,i,r).next((function(e){r=e;for(var t=0,n=i;t<n.length;t++)for(var o=n[t],s=0,a=o.mutations;s<a.length;s++){var l=a[s],c=l.key,u=r.get(c);null==u&&(u=zne.newInvalidDocument(c),r=r.insert(c,u)),qre(l,u,o.localWriteTime),u.isFoundDocument()||(r=r.remove(c))}}))})).next((function(){return r.forEach((function(e,n){Sre(t,n)||(r=r.remove(e))})),r}))},e.prototype.Rn=function(e,t,n){for(var r=bie(),i=0,o=t;i<o.length;i++)for(var s=0,a=o[i].mutations;s<a.length;s++){var l=a[s];l instanceof $re&&null===n.get(l.key)&&(r=r.add(l.key))}var c=n;return this.Ue.getEntries(e,r).next((function(e){return e.forEach((function(e,t){t.isFoundDocument()&&(c=c.insert(e,t))})),c}))},e}(),$se=function(){function e(e,t,n,r){this.targetId=e,this.fromCache=t,this.bn=n,this.vn=r}return e.Pn=function(t,n){for(var r=bie(),i=bie(),o=0,s=n.docChanges;o<s.length;o++){var a=s[o];switch(a.type){case 0:r=r.add(a.doc.key);break;case 1:i=i.add(a.doc.key)}}return new e(t,n.fromCache,r,i)},e}(),Jse=function(){function e(){}return e.prototype.Vn=function(e){this.Sn=e},e.prototype.getDocumentsMatchingQuery=function(e,t,n,r){var i=this;return function(e){return 0===e.filters.length&&null===e.limit&&null==e.startAt&&null==e.endAt&&(0===e.explicitOrderBy.length||1===e.explicitOrderBy.length&&e.explicitOrderBy[0].field.isKeyField())}(t)||n.isEqual(ine.min())?this.Dn(e,t):this.Sn.pn(e,r).next((function(o){var s=i.Cn(t,o);return(dre(t)||hre(t))&&i.Nn(t.limitType,s,r,n)?i.Dn(e,t):(Wte()<=Vi.DEBUG&&Hte("QueryEngine","Re-using previous result from %s to execute query: %s",n.toString(),xre(t)),i.Sn.getDocumentsMatchingQuery(e,t,n).next((function(e){return s.forEach((function(t){e=e.insert(t.key,t)})),e})))}))},e.prototype.Cn=function(e,t){var n=new die(wre(e));return t.forEach((function(t,r){Sre(e,r)&&(n=n.add(r))})),n},e.prototype.Nn=function(e,t,n,r){if(n.size!==t.size)return!0;var i="F"===e?t.last():t.first();return!!i&&(i.hasPendingWrites||i.version.compareTo(r)>0)},e.prototype.Dn=function(e,t){return Wte()<=Vi.DEBUG&&Hte("QueryEngine","Using full collection scan to execute query:",xre(t)),this.Sn.getDocumentsMatchingQuery(e,t,ine.min())},e}(),Qse=function(){function e(e,t,n,r){this.persistence=e,this.xn=t,this.R=r,this.kn=new lie(ene),this.Fn=new Rse((function(e){return Wne(e)}),Hne),this.$n=ine.min(),this._n=e.getMutationQueue(n),this.On=e.getRemoteDocumentCache(),this.qe=e.getTargetCache(),this.Mn=new Zse(this.On,this._n,this.persistence.getIndexManager()),this.Ke=e.getBundleCache(),this.xn.Vn(this.Mn)}return e.prototype.collectGarbage=function(e){var t=this;return this.persistence.runTransaction("Collect garbage","readwrite-primary",(function(n){return e.collect(n,t.kn)}))},e}();function eae(e,t,n,r){return new Qse(e,t,n,r)}function tae(e,t){return hi(this,void 0,void 0,(function(){var n,r,i,o;return pi(this,(function(s){switch(s.label){case 0:return n=$te(e),r=n._n,i=n.Mn,[4,n.persistence.runTransaction("Handle user change","readonly",(function(e){var o;return n._n.getAllMutationBatches(e).next((function(s){return o=s,r=n.persistence.getMutationQueue(t),i=new Zse(n.On,r,n.persistence.getIndexManager()),r.getAllMutationBatches(e)})).next((function(t){for(var n=[],r=[],s=bie(),a=0,l=o;a<l.length;a++){var c=l[a];n.push(c.batchId);for(var u=0,d=c.mutations;u<d.length;u++){var h=d[u];s=s.add(h.key)}}for(var p=0,f=t;p<f.length;p++){var g=f[p];r.push(g.batchId);for(var m=0,y=g.mutations;m<y.length;m++){var v=y[m];s=s.add(v.key)}}return i.pn(e,s).next((function(e){return{Ln:e,removedBatchIds:n,addedBatchIds:r}}))}))}))];case 1:return o=s.sent(),[2,(n._n=r,n.Mn=i,n.xn.Vn(n.Mn),o)]}}))}))}function nae(e,t){var n=$te(e);return n.persistence.runTransaction("Acknowledge batch","readwrite-primary",(function(e){var r=t.batch.keys(),i=n.On.newChangeBuffer({trackRemovals:!0});return function(e,t,n,r){var i=n.batch,o=i.keys(),s=Roe.resolve();return o.forEach((function(e){s=s.next((function(){return r.getEntry(t,e)})).next((function(t){var o=n.docVersions.get(e);Zte(null!==o),t.version.compareTo(o)<0&&(i.applyToRemoteDocument(t,n),t.isValidDocument()&&r.addEntry(t,n.commitVersion))}))})),s.next((function(){return e._n.removeMutationBatch(t,i)}))}(n,e,t,i).next((function(){return i.apply(e)})).next((function(){return n._n.performConsistencyCheck(e)})).next((function(){return n.Mn.pn(e,r)}))}))}function rae(e){var t=$te(e);return t.persistence.runTransaction("Get last remote snapshot version","readonly",(function(e){return t.qe.getLastRemoteSnapshotVersion(e)}))}function iae(e,t){var n=$te(e),r=t.snapshotVersion,i=n.kn;return n.persistence.runTransaction("Apply remote event","readwrite-primary",(function(e){var o=n.On.newChangeBuffer({trackRemovals:!0});i=n.kn;var s=[];t.targetChanges.forEach((function(t,o){var a=i.get(o);if(a){s.push(n.qe.removeMatchingKeys(e,t.removedDocuments,o).next((function(){return n.qe.addMatchingKeys(e,t.addedDocuments,o)})));var l=t.resumeToken;if(l.approximateByteSize()>0){var c=a.withResumeToken(l,r).withSequenceNumber(e.currentSequenceNumber);i=i.insert(o,c),function(e,t,n){return Zte(t.resumeToken.approximateByteSize()>0),0===e.resumeToken.approximateByteSize()||t.snapshotVersion.toMicroseconds()-e.snapshotVersion.toMicroseconds()>=3e8||n.addedDocuments.size+n.modifiedDocuments.size+n.removedDocuments.size>0}(a,c,t)&&s.push(n.qe.updateTargetData(e,c))}}}));var a=fie();if(t.documentUpdates.forEach((function(r,i){t.resolvedLimboDocuments.has(r)&&s.push(n.persistence.referenceDelegate.updateLimboDocument(e,r))})),s.push(oae(e,o,t.documentUpdates,r,void 0).next((function(e){a=e}))),!r.isEqual(ine.min())){var l=n.qe.getLastRemoteSnapshotVersion(e).next((function(t){return n.qe.setTargetsMetadata(e,e.currentSequenceNumber,r)}));s.push(l)}return Roe.waitFor(s).next((function(){return o.apply(e)})).next((function(){return n.Mn.En(e,a)})).next((function(){return a}))})).then((function(e){return n.kn=i,e}))}function oae(e,t,n,r,i){var o=bie();return n.forEach((function(e){return o=o.add(e)})),t.getEntries(e,o).next((function(e){var o=fie();return n.forEach((function(n,s){var a=e.get(n),l=(null==i?void 0:i.get(n))||r;s.isNoDocument()&&s.version.isEqual(ine.min())?(t.removeEntry(n,l),o=o.insert(n,s)):!a.isValidDocument()||s.version.compareTo(a.version)>0||0===s.version.compareTo(a.version)&&a.hasPendingWrites?(t.addEntry(s,l),o=o.insert(n,s)):Hte("LocalStore","Ignoring outdated watch update for ",n,". Current version:",a.version," Watch version:",s.version)})),o}))}function sae(e,t){var n=$te(e);return n.persistence.runTransaction("Get next mutation batch","readonly",(function(e){return void 0===t&&(t=-1),n._n.getNextMutationBatchAfterBatchId(e,t)}))}function aae(e,t){var n=$te(e);return n.persistence.runTransaction("Allocate target","readwrite",(function(e){var r;return n.qe.getTargetData(e,t).next((function(i){return i?(r=i,Roe.resolve(r)):n.qe.allocateTargetId(e).next((function(i){return r=new Koe(t,i,0,e.currentSequenceNumber),n.qe.addTargetData(e,r).next((function(){return r}))}))}))})).then((function(e){var r=n.kn.get(e.targetId);return(null===r||e.snapshotVersion.compareTo(r.snapshotVersion)>0)&&(n.kn=n.kn.insert(e.targetId,e),n.Fn.set(t,e.targetId)),e}))}function lae(e,t,n){return hi(this,void 0,void 0,(function(){var r,i,o,s;return pi(this,(function(a){switch(a.label){case 0:r=$te(e),i=r.kn.get(t),o=n?"readwrite":"readwrite-primary",a.label=1;case 1:return a.trys.push([1,4,,5]),n?[3,3]:[4,r.persistence.runTransaction("Release target",o,(function(e){return r.persistence.referenceDelegate.removeTarget(e,i)}))];case 2:a.sent(),a.label=3;case 3:return[3,5];case 4:if(!Foe(s=a.sent()))throw s;return Hte("LocalStore","Failed to update sequence numbers for target "+t+": "+s),[3,5];case 5:return r.kn=r.kn.remove(t),r.Fn.delete(i.target),[2]}}))}))}function cae(e,t,n){var r=$te(e),i=ine.min(),o=bie();return r.persistence.runTransaction("Execute query","readonly",(function(e){return function(e,t,n){var r=$te(e),i=r.Fn.get(n);return void 0!==i?Roe.resolve(r.kn.get(i)):r.qe.getTargetData(t,n)}(r,e,yre(t)).next((function(t){if(t)return i=t.lastLimboFreeSnapshotVersion,r.qe.getMatchingKeysForTargetId(e,t.targetId).next((function(e){o=e}))})).next((function(){return r.xn.getDocumentsMatchingQuery(e,t,n?i:ine.min(),n?o:bie())})).next((function(e){return{documents:e,Bn:o}}))}))}function uae(e,t){var n=$te(e),r=$te(n.qe),i=n.kn.get(t);return i?Promise.resolve(i.target):n.persistence.runTransaction("Get target data","readonly",(function(e){return r.lt(e,t).next((function(e){return e?e.target:null}))}))}function dae(e){var t=$te(e);return t.persistence.runTransaction("Get new document changes","readonly",(function(e){return function(e,t,n){var r=$te(e),i=fie(),o=Qoe(n),s=Fse(t),a=IDBKeyRange.lowerBound(o,!0);return s.$t({index:Soe.readTimeIndex,range:a},(function(e,t){var n=$oe(r.R,t);i=i.insert(n.key,n),o=t.readTime})).next((function(){return{wn:i,readTime:ese(o)}}))}(t.On,e,t.$n)})).then((function(e){var n=e.wn,r=e.readTime;return t.$n=r,n}))}function hae(e){return hi(this,void 0,void 0,(function(){var t;return pi(this,(function(n){return[2,(t=$te(e)).persistence.runTransaction("Synchronize last document change read time","readonly",(function(e){return function(e){var t=Fse(e),n=ine.min();return t.$t({index:Soe.readTimeIndex,reverse:!0},(function(e,t,r){t.readTime&&(n=ese(t.readTime)),r.done()})).next((function(){return n}))}(e)})).then((function(e){t.$n=e}))]}))}))}function pae(e,t,n,r){return hi(this,void 0,void 0,(function(){var i,o,s,a,l,c,u,d,h,p;return pi(this,(function(f){switch(f.label){case 0:for(i=$te(e),o=bie(),s=fie(),a=vie(),l=0,c=n;l<c.length;l++)u=c[l],d=t.qn(u.metadata.name),u.document&&(o=o.add(d)),s=s.insert(d,t.Un(u)),a=a.insert(d,t.Kn(u.metadata.readTime));return h=i.On.newChangeBuffer({trackRemovals:!0}),[4,aae(i,function(e){return yre(ure(cne.fromString("__bundle__/docs/"+e)))}(r))];case 1:return p=f.sent(),[2,i.persistence.runTransaction("Apply bundle documents","readwrite",(function(e){return oae(e,h,s,ine.min(),a).next((function(t){return h.apply(e),t})).next((function(t){return i.qe.removeMatchingKeysForTargetId(e,p.targetId).next((function(){return i.qe.addMatchingKeys(e,o,p.targetId)})).next((function(){return i.Mn.En(e,t)})).next((function(){return t}))}))}))]}}))}))}function fae(e,t,n){return void 0===n&&(n=bie()),hi(this,void 0,void 0,(function(){var r,i;return pi(this,(function(o){switch(o.label){case 0:return[4,aae(e,yre(sse(t.bundledQuery)))];case 1:return r=o.sent(),[2,(i=$te(e)).persistence.runTransaction("Save named query","readwrite",(function(e){var o=Lie(t.readTime);if(r.snapshotVersion.compareTo(o)>=0)return i.Ke.saveNamedQuery(e,t);var s=r.withResumeToken(pne.EMPTY_BYTE_STRING,o);return i.kn=i.kn.insert(s.targetId,s),i.qe.updateTargetData(e,s).next((function(){return i.qe.removeMatchingKeysForTargetId(e,r.targetId)})).next((function(){return i.qe.addMatchingKeys(e,n,r.targetId)})).next((function(){return i.Ke.saveNamedQuery(e,t)}))}))]}}))}))}var gae=function(){function e(e){this.R=e,this.Qn=new Map,this.jn=new Map}return e.prototype.getBundleMetadata=function(e,t){return Roe.resolve(this.Qn.get(t))},e.prototype.saveBundleMetadata=function(e,t){var n;return this.Qn.set(t.id,{id:(n=t).id,version:n.version,createTime:Lie(n.createTime)}),Roe.resolve()},e.prototype.getNamedQuery=function(e,t){return Roe.resolve(this.jn.get(t))},e.prototype.saveNamedQuery=function(e,t){return this.jn.set(t.name,function(e){return{name:e.name,query:sse(e.bundledQuery),readTime:Lie(e.readTime)}}(t)),Roe.resolve()},e}(),mae=function(){function e(){this.Wn=new die(yae.Gn),this.zn=new die(yae.Hn)}return e.prototype.isEmpty=function(){return this.Wn.isEmpty()},e.prototype.addReference=function(e,t){var n=new yae(e,t);this.Wn=this.Wn.add(n),this.zn=this.zn.add(n)},e.prototype.Jn=function(e,t){var n=this;e.forEach((function(e){return n.addReference(e,t)}))},e.prototype.removeReference=function(e,t){this.Yn(new yae(e,t))},e.prototype.Xn=function(e,t){var n=this;e.forEach((function(e){return n.removeReference(e,t)}))},e.prototype.Zn=function(e){var t=this,n=new Ene(new cne([])),r=new yae(n,e),i=new yae(n,e+1),o=[];return this.zn.forEachInRange([r,i],(function(e){t.Yn(e),o.push(e.key)})),o},e.prototype.ts=function(){var e=this;this.Wn.forEach((function(t){return e.Yn(t)}))},e.prototype.Yn=function(e){this.Wn=this.Wn.delete(e),this.zn=this.zn.delete(e)},e.prototype.es=function(e){var t=new Ene(new cne([])),n=new yae(t,e),r=new yae(t,e+1),i=bie();return this.zn.forEachInRange([n,r],(function(e){i=i.add(e.key)})),i},e.prototype.containsKey=function(e){var t=new yae(e,0),n=this.Wn.firstAfterOrEqual(t);return null!==n&&e.isEqual(n.key)},e}(),yae=function(){function e(e,t){this.key=e,this.ns=t}return e.Gn=function(e,t){return Ene.comparator(e.key,t.key)||ene(e.ns,t.ns)},e.Hn=function(e,t){return ene(e.ns,t.ns)||Ene.comparator(e.key,t.key)},e}(),vae=function(){function e(e,t){this.Ut=e,this.referenceDelegate=t,this._n=[],this.ss=1,this.rs=new die(yae.Gn)}return e.prototype.checkEmpty=function(e){return Roe.resolve(0===this._n.length)},e.prototype.addMutationBatch=function(e,t,n,r){var i=this.ss;this.ss++,this._n.length>0&&this._n[this._n.length-1];var o=new Xoe(i,t,n,r);this._n.push(o);for(var s=0,a=r;s<a.length;s++){var l=a[s];this.rs=this.rs.add(new yae(l.key,i)),this.Ut.addToCollectionParentIndex(e,l.key.path.popLast())}return Roe.resolve(o)},e.prototype.lookupMutationBatch=function(e,t){return Roe.resolve(this.os(t))},e.prototype.getNextMutationBatchAfterBatchId=function(e,t){var n=t+1,r=this.cs(n),i=r<0?0:r;return Roe.resolve(this._n.length>i?this._n[i]:null)},e.prototype.getHighestUnacknowledgedBatchId=function(){return Roe.resolve(0===this._n.length?-1:this.ss-1)},e.prototype.getAllMutationBatches=function(e){return Roe.resolve(this._n.slice())},e.prototype.getAllMutationBatchesAffectingDocumentKey=function(e,t){var n=this,r=new yae(t,0),i=new yae(t,Number.POSITIVE_INFINITY),o=[];return this.rs.forEachInRange([r,i],(function(e){var t=n.os(e.ns);o.push(t)})),Roe.resolve(o)},e.prototype.getAllMutationBatchesAffectingDocumentKeys=function(e,t){var n=this,r=new die(ene);return t.forEach((function(e){var t=new yae(e,0),i=new yae(e,Number.POSITIVE_INFINITY);n.rs.forEachInRange([t,i],(function(e){r=r.add(e.ns)}))})),Roe.resolve(this.us(r))},e.prototype.getAllMutationBatchesAffectingQuery=function(e,t){var n=t.path,r=n.length+1,i=n;Ene.isDocumentKey(i)||(i=i.child(""));var o=new yae(new Ene(i),0),s=new die(ene);return this.rs.forEachWhile((function(e){var t=e.key.path;return!!n.isPrefixOf(t)&&(t.length===r&&(s=s.add(e.ns)),!0)}),o),Roe.resolve(this.us(s))},e.prototype.us=function(e){var t=this,n=[];return e.forEach((function(e){var r=t.os(e);null!==r&&n.push(r)})),n},e.prototype.removeMutationBatch=function(e,t){var n=this;Zte(0===this.hs(t.batchId,"removed")),this._n.shift();var r=this.rs;return Roe.forEach(t.mutations,(function(i){var o=new yae(i.key,t.batchId);return r=r.delete(o),n.referenceDelegate.markPotentiallyOrphaned(e,i.key)})).next((function(){n.rs=r}))},e.prototype.Gt=function(e){},e.prototype.containsKey=function(e,t){var n=new yae(t,0),r=this.rs.firstAfterOrEqual(n);return Roe.resolve(t.isEqual(r&&r.key))},e.prototype.performConsistencyCheck=function(e){return this._n.length,Roe.resolve()},e.prototype.hs=function(e,t){return this.cs(e)},e.prototype.cs=function(e){return 0===this._n.length?0:e-this._n[0].batchId},e.prototype.os=function(e){var t=this.cs(e);return t<0||t>=this._n.length?null:this._n[t]},e}(),_ae=function(){function e(e,t){this.Ut=e,this.ls=t,this.docs=new lie(Ene.comparator),this.size=0}return e.prototype.addEntry=function(e,t,n){var r=t.key,i=this.docs.get(r),o=i?i.size:0,s=this.ls(t);return this.docs=this.docs.insert(r,{document:t.clone(),size:s,readTime:n}),this.size+=s-o,this.Ut.addToCollectionParentIndex(e,r.path.popLast())},e.prototype.removeEntry=function(e){var t=this.docs.get(e);t&&(this.docs=this.docs.remove(e),this.size-=t.size)},e.prototype.getEntry=function(e,t){var n=this.docs.get(t);return Roe.resolve(n?n.document.clone():zne.newInvalidDocument(t))},e.prototype.getEntries=function(e,t){var n=this,r=fie();return t.forEach((function(e){var t=n.docs.get(e);r=r.insert(e,t?t.document.clone():zne.newInvalidDocument(e))})),Roe.resolve(r)},e.prototype.getDocumentsMatchingQuery=function(e,t,n){for(var r=fie(),i=new Ene(t.path.child("")),o=this.docs.getIteratorFrom(i);o.hasNext();){var s=o.getNext(),a=s.key,l=s.value,c=l.document,u=l.readTime;if(!t.path.isPrefixOf(a.path))break;u.compareTo(n)<=0||Sre(t,c)&&(r=r.insert(c.key,c.clone()))}return Roe.resolve(r)},e.prototype.fs=function(e,t){return Roe.forEach(this.docs,(function(e){return t(e)}))},e.prototype.newChangeBuffer=function(e){return new bae(this)},e.prototype.getSize=function(e){return Roe.resolve(this.size)},e}(),bae=function(e){function t(t){var n=this;return(n=e.call(this)||this).Ie=t,n}return ui(t,e),t.prototype.applyChanges=function(e){var t=this,n=[];return this.changes.forEach((function(r,i){i.document.isValidDocument()?n.push(t.Ie.addEntry(e,i.document,t.getReadTime(r))):t.Ie.removeEntry(r)})),Roe.waitFor(n)},t.prototype.getFromCache=function(e,t){return this.Ie.getEntry(e,t)},t.prototype.getAllFromCache=function(e,t){return this.Ie.getEntries(e,t)},t}(Dse),xae=function(){function e(e){this.persistence=e,this.ds=new Rse((function(e){return Wne(e)}),Hne),this.lastRemoteSnapshotVersion=ine.min(),this.highestTargetId=0,this.ws=0,this._s=new mae,this.targetCount=0,this.ys=wse.Jt()}return e.prototype.forEachTarget=function(e,t){return this.ds.forEach((function(e,n){return t(n)})),Roe.resolve()},e.prototype.getLastRemoteSnapshotVersion=function(e){return Roe.resolve(this.lastRemoteSnapshotVersion)},e.prototype.getHighestSequenceNumber=function(e){return Roe.resolve(this.ws)},e.prototype.allocateTargetId=function(e){return this.highestTargetId=this.ys.next(),Roe.resolve(this.highestTargetId)},e.prototype.setTargetsMetadata=function(e,t,n){return n&&(this.lastRemoteSnapshotVersion=n),t>this.ws&&(this.ws=t),Roe.resolve()},e.prototype.te=function(e){this.ds.set(e.target,e);var t=e.targetId;t>this.highestTargetId&&(this.ys=new wse(t),this.highestTargetId=t),e.sequenceNumber>this.ws&&(this.ws=e.sequenceNumber)},e.prototype.addTargetData=function(e,t){return this.te(t),this.targetCount+=1,Roe.resolve()},e.prototype.updateTargetData=function(e,t){return this.te(t),Roe.resolve()},e.prototype.removeTargetData=function(e,t){return this.ds.delete(t.target),this._s.Zn(t.targetId),this.targetCount-=1,Roe.resolve()},e.prototype.removeTargets=function(e,t,n){var r=this,i=0,o=[];return this.ds.forEach((function(s,a){a.sequenceNumber<=t&&null===n.get(a.targetId)&&(r.ds.delete(s),o.push(r.removeMatchingKeysForTargetId(e,a.targetId)),i++)})),Roe.waitFor(o).next((function(){return i}))},e.prototype.getTargetCount=function(e){return Roe.resolve(this.targetCount)},e.prototype.getTargetData=function(e,t){var n=this.ds.get(t)||null;return Roe.resolve(n)},e.prototype.addMatchingKeys=function(e,t,n){return this._s.Jn(t,n),Roe.resolve()},e.prototype.removeMatchingKeys=function(e,t,n){this._s.Xn(t,n);var r=this.persistence.referenceDelegate,i=[];return r&&t.forEach((function(t){i.push(r.markPotentiallyOrphaned(e,t))})),Roe.waitFor(i)},e.prototype.removeMatchingKeysForTargetId=function(e,t){return this._s.Zn(t),Roe.resolve()},e.prototype.getMatchingKeysForTargetId=function(e,t){var n=this._s.es(t);return Roe.resolve(n)},e.prototype.containsKey=function(e,t){return Roe.resolve(this._s.containsKey(t))},e}(),Sae=function(){function e(e,t){var n=this;this.gs={},this.Ne=new Fte(0),this.xe=!1,this.xe=!0,this.referenceDelegate=e(this),this.qe=new xae(this),this.Ut=new use,this.Ue=function(e,t){return new _ae(e,(function(e){return n.referenceDelegate.ps(e)}))}(this.Ut),this.R=new Zoe(t),this.Ke=new gae(this.R)}return e.prototype.start=function(){return Promise.resolve()},e.prototype.shutdown=function(){return this.xe=!1,Promise.resolve()},Object.defineProperty(e.prototype,"started",{get:function(){return this.xe},enumerable:!1,configurable:!0}),e.prototype.setDatabaseDeletedListener=function(){},e.prototype.setNetworkEnabled=function(){},e.prototype.getIndexManager=function(){return this.Ut},e.prototype.getMutationQueue=function(e){var t=this.gs[e.toKey()];return t||(t=new vae(this.Ut,this.referenceDelegate),this.gs[e.toKey()]=t),t},e.prototype.getTargetCache=function(){return this.qe},e.prototype.getRemoteDocumentCache=function(){return this.Ue},e.prototype.getBundleCache=function(){return this.Ke},e.prototype.runTransaction=function(e,t,n){var r=this;Hte("MemoryPersistence","Starting transaction:",e);var i=new wae(this.Ne.next());return this.referenceDelegate.Es(),n(i).next((function(e){return r.referenceDelegate.Ts(i).next((function(){return e}))})).toPromise().then((function(e){return i.raiseOnCommittedEvent(),e}))},e.prototype.Is=function(e,t){return Roe.or(Object.values(this.gs).map((function(n){return function(){return n.containsKey(e,t)}})))},e}(),wae=function(e){function t(t){var n=this;return(n=e.call(this)||this).currentSequenceNumber=t,n}return ui(t,e),t}(Moe),Eae=function(){function e(e){this.persistence=e,this.As=new mae,this.Rs=null}return e.bs=function(t){return new e(t)},Object.defineProperty(e.prototype,"vs",{get:function(){if(this.Rs)return this.Rs;throw Kte()},enumerable:!1,configurable:!0}),e.prototype.addReference=function(e,t,n){return this.As.addReference(n,t),this.vs.delete(n.toString()),Roe.resolve()},e.prototype.removeReference=function(e,t,n){return this.As.removeReference(n,t),this.vs.add(n.toString()),Roe.resolve()},e.prototype.markPotentiallyOrphaned=function(e,t){return this.vs.add(t.toString()),Roe.resolve()},e.prototype.removeTarget=function(e,t){var n=this;this.As.Zn(t.targetId).forEach((function(e){return n.vs.add(e.toString())}));var r=this.persistence.getTargetCache();return r.getMatchingKeysForTargetId(e,t.targetId).next((function(e){e.forEach((function(e){return n.vs.add(e.toString())}))})).next((function(){return r.removeTargetData(e,t)}))},e.prototype.Es=function(){this.Rs=new Set},e.prototype.Ts=function(e){var t=this,n=this.persistence.getRemoteDocumentCache().newChangeBuffer();return Roe.forEach(this.vs,(function(r){var i=Ene.fromPath(r);return t.Ps(e,i).next((function(e){e||n.removeEntry(i)}))})).next((function(){return t.Rs=null,n.apply(e)}))},e.prototype.updateLimboDocument=function(e,t){var n=this;return this.Ps(e,t).next((function(e){e?n.vs.delete(t.toString()):n.vs.add(t.toString())}))},e.prototype.ps=function(e){return 0},e.prototype.Ps=function(e,t){var n=this;return Roe.or([function(){return Roe.resolve(n.As.containsKey(t))},function(){return n.persistence.getTargetCache().containsKey(e,t)},function(){return n.persistence.Is(e,t)}])},e}(),Pae=function(){function e(e){this.uid=e}return e.prototype.isAuthenticated=function(){return null!=this.uid},e.prototype.toKey=function(){return this.isAuthenticated()?"uid:"+this.uid:"anonymous-user"},e.prototype.isEqual=function(e){return e.uid===this.uid},e}();function Cae(e,t){return"firestore_clients_"+e+"_"+t}function Aae(e,t,n){var r="firestore_mutations_"+e+"_"+n;return t.isAuthenticated()&&(r+="_"+t.uid),r}function kae(e,t){return"firestore_targets_"+e+"_"+t}Pae.UNAUTHENTICATED=new Pae(null),Pae.GOOGLE_CREDENTIALS=new Pae("google-credentials-uid"),Pae.FIRST_PARTY=new Pae("first-party-uid"),Pae.MOCK_USER=new Pae("mock-user");var jae=function(){function e(e,t,n,r){this.user=e,this.batchId=t,this.state=n,this.error=r}return e.Vs=function(t,n,r){var i,o=JSON.parse(r),s="object"==typeof o&&-1!==["pending","acknowledged","rejected"].indexOf(o.state)&&(void 0===o.error||"object"==typeof o.error);return s&&o.error&&(s="string"==typeof o.error.message&&"string"==typeof o.error.code)&&(i=new Bte(o.error.code,o.error.message)),s?new e(t,n,o.state,i):(qte("SharedClientState","Failed to parse mutation state for ID '"+n+"': "+r),null)},e.prototype.Ss=function(){var e={state:this.state,updateTimeMs:Date.now()};return this.error&&(e.error={code:this.error.code,message:this.error.message}),JSON.stringify(e)},e}(),Iae=function(){function e(e,t,n){this.targetId=e,this.state=t,this.error=n}return e.Vs=function(t,n){var r,i=JSON.parse(n),o="object"==typeof i&&-1!==["not-current","current","rejected"].indexOf(i.state)&&(void 0===i.error||"object"==typeof i.error);return o&&i.error&&(o="string"==typeof i.error.message&&"string"==typeof i.error.code)&&(r=new Bte(i.error.code,i.error.message)),o?new e(t,i.state,r):(qte("SharedClientState","Failed to parse target state for ID '"+t+"': "+n),null)},e.prototype.Ss=function(){var e={state:this.state,updateTimeMs:Date.now()};return this.error&&(e.error={code:this.error.code,message:this.error.message}),JSON.stringify(e)},e}(),Gae=function(){function e(e,t){this.clientId=e,this.activeTargetIds=t}return e.Vs=function(t,n){for(var r=JSON.parse(n),i="object"==typeof r&&r.activeTargetIds instanceof Array,o=Sie(),s=0;i&&s<r.activeTargetIds.length;++s)i=wne(r.activeTargetIds[s]),o=o.add(r.activeTargetIds[s]);return i?new e(t,o):(qte("SharedClientState","Failed to parse client data for instance '"+t+"': "+n),null)},e}(),Tae=function(){function e(e,t){this.clientId=e,this.onlineState=t}return e.Vs=function(t){var n=JSON.parse(t);return"object"==typeof n&&-1!==["Unknown","Online","Offline"].indexOf(n.onlineState)&&"string"==typeof n.clientId?new e(n.clientId,n.onlineState):(qte("SharedClientState","Failed to parse online state: "+t),null)},e}(),Mae=function(){function e(){this.activeTargetIds=Sie()}return e.prototype.Ds=function(e){this.activeTargetIds=this.activeTargetIds.add(e)},e.prototype.Cs=function(e){this.activeTargetIds=this.activeTargetIds.delete(e)},e.prototype.Ss=function(){var e={activeTargetIds:this.activeTargetIds.toArray(),updateTimeMs:Date.now()};return JSON.stringify(e)},e}(),Oae=function(){function e(e,t,n,r,i){this.window=e,this.Se=t,this.persistenceKey=n,this.Ns=r,this.syncEngine=null,this.onlineStateHandler=null,this.sequenceNumberHandler=null,this.xs=this.ks.bind(this),this.Fs=new lie(ene),this.started=!1,this.$s=[];var o=n.replace(/[.*+?^${}()|[\]\\]/g,"\\$&");this.storage=this.window.localStorage,this.currentUser=i,this.Os=Cae(this.persistenceKey,this.Ns),this.Ms=function(e){return"firestore_sequence_number_"+e}(this.persistenceKey),this.Fs=this.Fs.insert(this.Ns,new Mae),this.Ls=new RegExp("^firestore_clients_"+o+"_([^_]*)$"),this.Bs=new RegExp("^firestore_mutations_"+o+"_(\\d+)(?:_(.*))?$"),this.qs=new RegExp("^firestore_targets_"+o+"_(\\d+)$"),this.Us=function(e){return"firestore_online_state_"+e}(this.persistenceKey),this.Ks=function(e){return"firestore_bundle_loaded_"+e}(this.persistenceKey),this.window.addEventListener("storage",this.xs)}return e.yt=function(e){return!(!e||!e.localStorage)},e.prototype.start=function(){return hi(this,void 0,void 0,(function(){var e,t,n,r,i,o,s,a,l,c,u,d=this;return pi(this,(function(h){switch(h.label){case 0:return[4,this.syncEngine.fn()];case 1:for(e=h.sent(),t=0,n=e;t<n.length;t++)(r=n[t])!==this.Ns&&(i=this.getItem(Cae(this.persistenceKey,r)))&&(o=Gae.Vs(r,i))&&(this.Fs=this.Fs.insert(o.clientId,o));for(this.Qs(),(s=this.storage.getItem(this.Us))&&(a=this.js(s))&&this.Ws(a),l=0,c=this.$s;l<c.length;l++)u=c[l],this.ks(u);return this.$s=[],this.window.addEventListener("pagehide",(function(){return d.shutdown()})),this.started=!0,[2]}}))}))},e.prototype.writeSequenceNumber=function(e){this.setItem(this.Ms,JSON.stringify(e))},e.prototype.getAllActiveQueryTargets=function(){return this.Gs(this.Fs)},e.prototype.isActiveQueryTarget=function(e){var t=!1;return this.Fs.forEach((function(n,r){r.activeTargetIds.has(e)&&(t=!0)})),t},e.prototype.addPendingMutation=function(e){this.zs(e,"pending")},e.prototype.updateMutationState=function(e,t,n){this.zs(e,t,n),this.Hs(e)},e.prototype.addLocalQueryTarget=function(e){var t="not-current";if(this.isActiveQueryTarget(e)){var n=this.storage.getItem(kae(this.persistenceKey,e));if(n){var r=Iae.Vs(e,n);r&&(t=r.state)}}return this.Js.Ds(e),this.Qs(),t},e.prototype.removeLocalQueryTarget=function(e){this.Js.Cs(e),this.Qs()},e.prototype.isLocalQueryTarget=function(e){return this.Js.activeTargetIds.has(e)},e.prototype.clearQueryState=function(e){this.removeItem(kae(this.persistenceKey,e))},e.prototype.updateQueryState=function(e,t,n){this.Ys(e,t,n)},e.prototype.handleUserChange=function(e,t,n){var r=this;t.forEach((function(e){r.Hs(e)})),this.currentUser=e,n.forEach((function(e){r.addPendingMutation(e)}))},e.prototype.setOnlineState=function(e){this.Xs(e)},e.prototype.notifyBundleLoaded=function(){this.Zs()},e.prototype.shutdown=function(){this.started&&(this.window.removeEventListener("storage",this.xs),this.removeItem(this.Os),this.started=!1)},e.prototype.getItem=function(e){var t=this.storage.getItem(e);return Hte("SharedClientState","READ",e,t),t},e.prototype.setItem=function(e,t){Hte("SharedClientState","SET",e,t),this.storage.setItem(e,t)},e.prototype.removeItem=function(e){Hte("SharedClientState","REMOVE",e),this.storage.removeItem(e)},e.prototype.ks=function(e){var t=this,n=e;if(n.storageArea===this.storage){if(Hte("SharedClientState","EVENT",n.key,n.newValue),n.key===this.Os)return void qte("Received WebStorage notification for local change. Another client might have garbage-collected our state");this.Se.enqueueRetryable((function(){return hi(t,void 0,void 0,(function(){var e,t,r,i,o,s;return pi(this,(function(a){if(this.started){if(null!==n.key)if(this.Ls.test(n.key)){if(null==n.newValue)return e=this.ti(n.key),[2,this.ei(e,null)];if(t=this.ni(n.key,n.newValue))return[2,this.ei(t.clientId,t)]}else if(this.Bs.test(n.key)){if(null!==n.newValue&&(r=this.si(n.key,n.newValue)))return[2,this.ii(r)]}else if(this.qs.test(n.key)){if(null!==n.newValue&&(i=this.ri(n.key,n.newValue)))return[2,this.oi(i)]}else if(n.key===this.Us){if(null!==n.newValue&&(o=this.js(n.newValue)))return[2,this.Ws(o)]}else if(n.key===this.Ms)(s=function(e){var t=Fte.o;if(null!=e)try{var n=JSON.parse(e);Zte("number"==typeof n),t=n}catch(e){qte("SharedClientState","Failed to read sequence number from WebStorage",e)}return t}(n.newValue))!==Fte.o&&this.sequenceNumberHandler(s);else if(n.key===this.Ks)return[2,this.syncEngine.ci()]}else this.$s.push(n);return[2]}))}))}))}},Object.defineProperty(e.prototype,"Js",{get:function(){return this.Fs.get(this.Ns)},enumerable:!1,configurable:!0}),e.prototype.Qs=function(){this.setItem(this.Os,this.Js.Ss())},e.prototype.zs=function(e,t,n){var r=new jae(this.currentUser,e,t,n),i=Aae(this.persistenceKey,this.currentUser,e);this.setItem(i,r.Ss())},e.prototype.Hs=function(e){var t=Aae(this.persistenceKey,this.currentUser,e);this.removeItem(t)},e.prototype.Xs=function(e){var t={clientId:this.Ns,onlineState:e};this.storage.setItem(this.Us,JSON.stringify(t))},e.prototype.Ys=function(e,t,n){var r=kae(this.persistenceKey,e),i=new Iae(e,t,n);this.setItem(r,i.Ss())},e.prototype.Zs=function(){this.setItem(this.Ks,"value-not-used")},e.prototype.ti=function(e){var t=this.Ls.exec(e);return t?t[1]:null},e.prototype.ni=function(e,t){var n=this.ti(e);return Gae.Vs(n,t)},e.prototype.si=function(e,t){var n=this.Bs.exec(e),r=Number(n[1]),i=void 0!==n[2]?n[2]:null;return jae.Vs(new Pae(i),r,t)},e.prototype.ri=function(e,t){var n=this.qs.exec(e),r=Number(n[1]);return Iae.Vs(r,t)},e.prototype.js=function(e){return Tae.Vs(e)},e.prototype.ii=function(e){return hi(this,void 0,void 0,(function(){return pi(this,(function(t){return e.user.uid===this.currentUser.uid?[2,this.syncEngine.ui(e.batchId,e.state,e.error)]:(Hte("SharedClientState","Ignoring mutation for non-active user "+e.user.uid),[2])}))}))},e.prototype.oi=function(e){return this.syncEngine.ai(e.targetId,e.state,e.error)},e.prototype.ei=function(e,t){var n=this,r=t?this.Fs.insert(e,t):this.Fs.remove(e),i=this.Gs(this.Fs),o=this.Gs(r),s=[],a=[];return o.forEach((function(e){i.has(e)||s.push(e)})),i.forEach((function(e){o.has(e)||a.push(e)})),this.syncEngine.hi(s,a).then((function(){n.Fs=r}))},e.prototype.Ws=function(e){this.Fs.get(e.clientId)&&this.onlineStateHandler(e.onlineState)},e.prototype.Gs=function(e){var t=Sie();return e.forEach((function(e,n){t=t.unionWith(n.activeTargetIds)})),t},e}(),Rae=function(){function e(){this.li=new Mae,this.fi={},this.onlineStateHandler=null,this.sequenceNumberHandler=null}return e.prototype.addPendingMutation=function(e){},e.prototype.updateMutationState=function(e,t,n){},e.prototype.addLocalQueryTarget=function(e){return this.li.Ds(e),this.fi[e]||"not-current"},e.prototype.updateQueryState=function(e,t,n){this.fi[e]=t},e.prototype.removeLocalQueryTarget=function(e){this.li.Cs(e)},e.prototype.isLocalQueryTarget=function(e){return this.li.activeTargetIds.has(e)},e.prototype.clearQueryState=function(e){delete this.fi[e]},e.prototype.getAllActiveQueryTargets=function(){return this.li.activeTargetIds},e.prototype.isActiveQueryTarget=function(e){return this.li.activeTargetIds.has(e)},e.prototype.start=function(){return this.li=new Mae,Promise.resolve()},e.prototype.handleUserChange=function(e,t,n){},e.prototype.setOnlineState=function(e){},e.prototype.shutdown=function(){},e.prototype.writeSequenceNumber=function(e){},e.prototype.notifyBundleLoaded=function(){},e}(),Dae=function(){function e(){}return e.prototype.di=function(e){},e.prototype.shutdown=function(){},e}(),Nae=function(){function e(){var e=this;this.wi=function(){return e._i()},this.mi=function(){return e.yi()},this.gi=[],this.pi()}return e.prototype.di=function(e){this.gi.push(e)},e.prototype.shutdown=function(){window.removeEventListener("online",this.wi),window.removeEventListener("offline",this.mi)},e.prototype.pi=function(){window.addEventListener("online",this.wi),window.addEventListener("offline",this.mi)},e.prototype._i=function(){Hte("ConnectivityMonitor","Network connectivity changed: AVAILABLE");for(var e=0,t=this.gi;e<t.length;e++)(0,t[e])(0)},e.prototype.yi=function(){Hte("ConnectivityMonitor","Network connectivity changed: UNAVAILABLE");for(var e=0,t=this.gi;e<t.length;e++)(0,t[e])(1)},e.yt=function(){return"undefined"!=typeof window&&void 0!==window.addEventListener&&void 0!==window.removeEventListener},e}(),Lae={BatchGetDocuments:"batchGet",Commit:"commit",RunQuery:"runQuery"},Vae=function(){function e(e){this.Ei=e.Ei,this.Ti=e.Ti}return e.prototype.Ii=function(e){this.Ai=e},e.prototype.Ri=function(e){this.bi=e},e.prototype.onMessage=function(e){this.vi=e},e.prototype.close=function(){this.Ti()},e.prototype.send=function(e){this.Ei(e)},e.prototype.Pi=function(){this.Ai()},e.prototype.Vi=function(e){this.bi(e)},e.prototype.Si=function(e){this.vi(e)},e}(),Fae=function(e){function t(t){var n=this;return(n=e.call(this,t)||this).forceLongPolling=t.forceLongPolling,n.autoDetectLongPolling=t.autoDetectLongPolling,n.useFetchStreams=t.useFetchStreams,n}return ui(t,e),t.prototype.Fi=function(e,t,n,r){return new Promise((function(i,o){var s=new Vte;s.listenOnce(Ote.COMPLETE,(function(){try{switch(s.getLastErrorCode()){case Mte.NO_ERROR:var t=s.getResponseJson();Hte("Connection","XHR received:",JSON.stringify(t)),i(t);break;case Mte.TIMEOUT:Hte("Connection",'RPC "'+e+'" timed out'),o(new Bte(zte.DEADLINE_EXCEEDED,"Request time out"));break;case Mte.HTTP_ERROR:var n=s.getStatus();if(Hte("Connection",'RPC "'+e+'" failed with status:',n,"response text:",s.getResponseText()),n>0){var r=s.getResponseJson().error;if(r&&r.status&&r.message){var a=function(e){var t=e.toLowerCase().replace(/_/g,"-");return Object.values(zte).indexOf(t)>=0?t:zte.UNKNOWN}(r.status);o(new Bte(a,r.message))}else o(new Bte(zte.UNKNOWN,"Server responded with status "+s.getStatus()))}else o(new Bte(zte.UNAVAILABLE,"Connection failed."));break;default:Kte()}}finally{Hte("Connection",'RPC "'+e+'" completed.')}}));var a=JSON.stringify(r);s.send(t,"POST",a,n,15)}))},t.prototype.Oi=function(e,t){var n=[this.Di,"/","google.firestore.v1.Firestore","/",e,"/channel"],r=Gte(),i=Tte(),o={httpSessionIdParam:"gsessionid",initMessageHeaders:{},messageUrlParams:{database:"projects/"+this.databaseId.projectId+"/databases/"+this.databaseId.database},sendRawJson:!0,supportsCrossDomainXhr:!0,internalChannelParams:{forwardChannelRequestTimeoutMs:6e5},forceLongPolling:this.forceLongPolling,detectBufferingProxy:this.autoDetectLongPolling};this.useFetchStreams&&(o.xmlHttpFactory=new Nte({})),this.ki(o.initMessageHeaders,t),"undefined"!==typeof window&&(window.cordova||window.phonegap||window.PhoneGap)&&/ios|iphone|ipod|ipad|android|blackberry|iemobile/i.test(wi())||"object"===typeof navigator&&"ReactNative"===navigator.product||wi().indexOf("Electron/")>=0||function(){var e=wi();return e.indexOf("MSIE ")>=0||e.indexOf("Trident/")>=0}()||wi().indexOf("MSAppHost/")>=0||function(){var e="object"===typeof chrome?chrome.runtime:"object"===typeof browser?browser.runtime:void 0;return"object"===typeof e&&void 0!==e.id}()||(o.httpHeadersOverwriteParam="$httpHeaders");var s=n.join("");Hte("Connection","Creating WebChannel: "+s,o);var a=r.createWebChannel(s,o),l=!1,c=!1,u=new Vae({Ei:function(e){c?Hte("Connection","Not sending because WebChannel is closed:",e):(l||(Hte("Connection","Opening WebChannel transport."),a.open(),l=!0),Hte("Connection","WebChannel sending:",e),a.send(e))},Ti:function(){return a.close()}}),d=function(e,t,n){e.listen(t,(function(e){try{n(e)}catch(e){setTimeout((function(){throw e}),0)}}))};return d(a,Lte.EventType.OPEN,(function(){c||Hte("Connection","WebChannel transport opened.")})),d(a,Lte.EventType.CLOSE,(function(){c||(c=!0,Hte("Connection","WebChannel transport closed"),u.Vi())})),d(a,Lte.EventType.ERROR,(function(e){c||(c=!0,Xte("Connection","WebChannel transport errored:",e),u.Vi(new Bte(zte.UNAVAILABLE,"The operation could not be completed")))})),d(a,Lte.EventType.MESSAGE,(function(e){var t;if(!c){var n=e.data[0];Zte(!!n);var r=n,i=r.error||(null===(t=r[0])||void 0===t?void 0:t.error);if(i){Hte("Connection","WebChannel received error:",i);var o=i.status,s=function(e){var t=tie[e];if(void 0!==t)return aie(t)}(o),l=i.message;void 0===s&&(s=zte.INTERNAL,l="Unknown error status: "+o+" with message "+i.message),c=!0,u.Vi(new Bte(s,l)),a.close()}else Hte("Connection","WebChannel received:",n),u.Si(n)}})),d(i,Rte.STAT_EVENT,(function(e){e.stat===Dte.PROXY?Hte("Connection","Detected buffering proxy"):e.stat===Dte.NOPROXY&&Hte("Connection","Detected no buffering proxy")})),setTimeout((function(){u.Pi()}),0),u},t}(function(){function e(e){this.databaseInfo=e,this.databaseId=e.databaseId;var t=e.ssl?"https":"http";this.Di=t+"://"+e.host,this.Ci="projects/"+this.databaseId.projectId+"/databases/"+this.databaseId.database+"/documents"}return e.prototype.Ni=function(e,t,n,r){var i=this.xi(e,t);Hte("RestConnection","Sending: ",i,n);var o={};return this.ki(o,r),this.Fi(e,i,o,n).then((function(e){return Hte("RestConnection","Received: ",e),e}),(function(t){throw Xte("RestConnection",e+" failed with error: ",t,"url: ",i,"request:",n),t}))},e.prototype.$i=function(e,t,n,r){return this.Ni(e,t,n,r)},e.prototype.ki=function(e,t){if(e["X-Goog-Api-Client"]="gl-js/ fire/8.10.1",e["Content-Type"]="text/plain",this.databaseInfo.appId&&(e["X-Firebase-GMPID"]=this.databaseInfo.appId),t)for(var n in t.authHeaders)t.authHeaders.hasOwnProperty(n)&&(e[n]=t.authHeaders[n])},e.prototype.xi=function(e,t){var n=Lae[e];return this.Di+"/v1/"+t+":"+n},e}());function zae(){return"undefined"!=typeof window?window:null}function Bae(){return"undefined"!=typeof document?document:null}function Uae(e){return new Oie(e,!0)}var Wae=function(){function e(e,t,n,r,i){void 0===n&&(n=1e3),void 0===r&&(r=1.5),void 0===i&&(i=6e4),this.Se=e,this.timerId=t,this.Mi=n,this.Li=r,this.Bi=i,this.qi=0,this.Ui=null,this.Ki=Date.now(),this.reset()}return e.prototype.reset=function(){this.qi=0},e.prototype.Qi=function(){this.qi=this.Bi},e.prototype.ji=function(e){var t=this;this.cancel();var n=Math.floor(this.qi+this.Wi()),r=Math.max(0,Date.now()-this.Ki),i=Math.max(0,n-r);i>0&&Hte("ExponentialBackoff","Backing off for "+i+" ms (base delay: "+this.qi+" ms, delay with jitter: "+n+" ms, last attempt: "+r+" ms ago)"),this.Ui=this.Se.enqueueAfterDelay(this.timerId,i,(function(){return t.Ki=Date.now(),e()})),this.qi*=this.Li,this.qi<this.Mi&&(this.qi=this.Mi),this.qi>this.Bi&&(this.qi=this.Bi)},e.prototype.Gi=function(){null!==this.Ui&&(this.Ui.skipDelay(),this.Ui=null)},e.prototype.cancel=function(){null!==this.Ui&&(this.Ui.cancel(),this.Ui=null)},e.prototype.Wi=function(){return(Math.random()-.5)*this.qi},e}(),Hae=function(){function e(e,t,n,r,i,o){this.Se=e,this.zi=n,this.Hi=r,this.Ji=i,this.listener=o,this.state=0,this.Yi=0,this.Xi=null,this.stream=null,this.Zi=new Wae(e,t)}return e.prototype.tr=function(){return 1===this.state||2===this.state||4===this.state},e.prototype.er=function(){return 2===this.state},e.prototype.start=function(){3!==this.state?this.auth():this.nr()},e.prototype.stop=function(){return hi(this,void 0,void 0,(function(){return pi(this,(function(e){switch(e.label){case 0:return this.tr()?[4,this.close(0)]:[3,2];case 1:e.sent(),e.label=2;case 2:return[2]}}))}))},e.prototype.sr=function(){this.state=0,this.Zi.reset()},e.prototype.ir=function(){var e=this;this.er()&&null===this.Xi&&(this.Xi=this.Se.enqueueAfterDelay(this.zi,6e4,(function(){return e.rr()})))},e.prototype.cr=function(e){this.ur(),this.stream.send(e)},e.prototype.rr=function(){return hi(this,void 0,void 0,(function(){return pi(this,(function(e){return this.er()?[2,this.close(0)]:[2]}))}))},e.prototype.ur=function(){this.Xi&&(this.Xi.cancel(),this.Xi=null)},e.prototype.close=function(e,t){return hi(this,void 0,void 0,(function(){return pi(this,(function(n){switch(n.label){case 0:return this.ur(),this.Zi.cancel(),this.Yi++,3!==e?this.Zi.reset():t&&t.code===zte.RESOURCE_EXHAUSTED?(qte(t.toString()),qte("Using maximum backoff delay to prevent overloading the backend."),this.Zi.Qi()):t&&t.code===zte.UNAUTHENTICATED&&this.Ji.invalidateToken(),null!==this.stream&&(this.ar(),this.stream.close(),this.stream=null),this.state=e,[4,this.listener.Ri(t)];case 1:return n.sent(),[2]}}))}))},e.prototype.ar=function(){},e.prototype.auth=function(){var e=this;this.state=1;var t=this.hr(this.Yi),n=this.Yi;this.Ji.getToken().then((function(t){e.Yi===n&&e.lr(t)}),(function(n){t((function(){var t=new Bte(zte.UNKNOWN,"Fetching auth token failed: "+n.message);return e.dr(t)}))}))},e.prototype.lr=function(e){var t=this,n=this.hr(this.Yi);this.stream=this.wr(e),this.stream.Ii((function(){n((function(){return t.state=2,t.listener.Ii()}))})),this.stream.Ri((function(e){n((function(){return t.dr(e)}))})),this.stream.onMessage((function(e){n((function(){return t.onMessage(e)}))}))},e.prototype.nr=function(){var e=this;this.state=4,this.Zi.ji((function(){return hi(e,void 0,void 0,(function(){return pi(this,(function(e){return this.state=0,this.start(),[2]}))}))}))},e.prototype.dr=function(e){return Hte("PersistentStream","close with error: "+e),this.stream=null,this.close(3,e)},e.prototype.hr=function(e){var t=this;return function(n){t.Se.enqueueAndForget((function(){return t.Yi===e?n():(Hte("PersistentStream","stream callback skipped by getCloseGuardedDispatcher."),Promise.resolve())}))}},e}(),qae=function(e){function t(t,n,r,i,o){var s=this;return(s=e.call(this,t,"listen_stream_connection_backoff","listen_stream_idle",n,r,o)||this).R=i,s}return ui(t,e),t.prototype.wr=function(e){return this.Hi.Oi("Listen",e)},t.prototype.onMessage=function(e){this.Zi.reset();var t=function(e,t){var n;if("targetChange"in t){t.targetChange;var r=function(e){return"NO_CHANGE"===e?0:"ADD"===e?1:"REMOVE"===e?2:"CURRENT"===e?3:"RESET"===e?4:Kte()}(t.targetChange.targetChangeType||"NO_CHANGE"),i=t.targetChange.targetIds||[],o=function(e,t){return e.I?(Zte(void 0===t||"string"==typeof t),pne.fromBase64String(t||"")):(Zte(void 0===t||t instanceof Uint8Array),pne.fromUint8Array(t||new Uint8Array))}(e,t.targetChange.resumeToken),s=(a=t.targetChange.cause)&&function(e){var t=void 0===e.code?zte.UNKNOWN:aie(e.code);return new Bte(t,e.message||"")}(a);n=new Aie(r,i,o,s||null)}else if("documentChange"in t){t.documentChange,(r=t.documentChange).document,r.document.name,r.document.updateTime,i=Bie(e,r.document.name),o=Lie(r.document.updateTime);var a=new Vne({mapValue:{fields:r.document.fields}}),l=(s=zne.newFoundDocument(i,o,a),r.targetIds||[]),c=r.removedTargetIds||[];n=new Pie(l,c,s.key,s)}else if("documentDelete"in t)t.documentDelete,(r=t.documentDelete).document,i=Bie(e,r.document),o=r.readTime?Lie(r.readTime):ine.min(),a=zne.newNoDocument(i,o),s=r.removedTargetIds||[],n=new Pie([],s,a.key,a);else if("documentRemove"in t)t.documentRemove,(r=t.documentRemove).document,i=Bie(e,r.document),o=r.removedTargetIds||[],n=new Pie([],o,i,null);else{if(!("filter"in t))return Kte();t.filter;var u=t.filter;u.targetId,r=u.count||0,i=new oie(r),o=u.targetId,n=new Cie(o,i)}return n}(this.R,e),n=function(e){if(!("targetChange"in e))return ine.min();var t=e.targetChange;return t.targetIds&&t.targetIds.length?ine.min():t.readTime?Lie(t.readTime):ine.min()}(e);return this.listener._r(t,n)},t.prototype.mr=function(e){var t={};t.database=Hie(this.R),t.addTarget=function(e,t){var n,r=t.target;return(n=qne(r)?{documents:$ie(e,r)}:{query:Jie(e,r)}).targetId=t.targetId,t.resumeToken.approximateByteSize()>0?n.resumeToken=Die(e,t.resumeToken):t.snapshotVersion.compareTo(ine.min())>0&&(n.readTime=Rie(e,t.snapshotVersion.toTimestamp())),n}(this.R,e);var n=function(e,t){var n=function(e,t){switch(t){case 0:return null;case 1:return"existence-filter-mismatch";case 2:return"limbo-document";default:return Kte()}}(0,t.purpose);return null==n?null:{"goog-listen-tags":n}}(this.R,e);n&&(t.labels=n),this.cr(t)},t.prototype.yr=function(e){var t={};t.database=Hie(this.R),t.removeTarget=e,this.cr(t)},t}(Hae),Xae=function(e){function t(t,n,r,i,o){var s=this;return(s=e.call(this,t,"write_stream_connection_backoff","write_stream_idle",n,r,o)||this).R=i,s.gr=!1,s}return ui(t,e),Object.defineProperty(t.prototype,"pr",{get:function(){return this.gr},enumerable:!1,configurable:!0}),t.prototype.start=function(){this.gr=!1,this.lastStreamToken=void 0,e.prototype.start.call(this)},t.prototype.ar=function(){this.gr&&this.Er([])},t.prototype.wr=function(e){return this.Hi.Oi("Write",e)},t.prototype.onMessage=function(e){if(Zte(!!e.streamToken),this.lastStreamToken=e.streamToken,this.gr){this.Zi.reset();var t=function(e,t){return e&&e.length>0?(Zte(void 0!==t),e.map((function(e){return function(e,t){var n=e.updateTime?Lie(e.updateTime):Lie(t);return n.isEqual(ine.min())&&(n=Lie(t)),new zre(n,e.transformResults||[])}(e,t)}))):[]}(e.writeResults,e.commitTime),n=Lie(e.commitTime);return this.listener.Tr(n,t)}return Zte(!e.writeResults||0===e.writeResults.length),this.gr=!0,this.listener.Ir()},t.prototype.Ar=function(){var e={};e.database=Hie(this.R),this.cr(e)},t.prototype.Er=function(e){var t=this,n={streamToken:this.lastStreamToken,writes:e.map((function(e){return Kie(t.R,e)}))};this.cr(n)},t}(Hae),Yae=function(e){function t(t,n,r){var i=this;return(i=e.call(this)||this).credentials=t,i.Hi=n,i.R=r,i.Rr=!1,i}return ui(t,e),t.prototype.br=function(){if(this.Rr)throw new Bte(zte.FAILED_PRECONDITION,"The client has already been terminated.")},t.prototype.Ni=function(e,t,n){var r=this;return this.br(),this.credentials.getToken().then((function(i){return r.Hi.Ni(e,t,n,i)})).catch((function(e){throw"FirebaseError"===e.name?(e.code===zte.UNAUTHENTICATED&&r.credentials.invalidateToken(),e):new Bte(zte.UNKNOWN,e.toString())}))},t.prototype.$i=function(e,t,n){var r=this;return this.br(),this.credentials.getToken().then((function(i){return r.Hi.$i(e,t,n,i)})).catch((function(e){throw"FirebaseError"===e.name?(e.code===zte.UNAUTHENTICATED&&r.credentials.invalidateToken(),e):new Bte(zte.UNKNOWN,e.toString())}))},t.prototype.terminate=function(){this.Rr=!0},t}((function(){})),Kae=function(){function e(e,t){this.asyncQueue=e,this.onlineStateHandler=t,this.state="Unknown",this.vr=0,this.Pr=null,this.Vr=!0}return e.prototype.Sr=function(){var e=this;0===this.vr&&(this.Dr("Unknown"),this.Pr=this.asyncQueue.enqueueAfterDelay("online_state_timeout",1e4,(function(){return e.Pr=null,e.Cr("Backend didn't respond within 10 seconds."),e.Dr("Offline"),Promise.resolve()})))},e.prototype.Nr=function(e){"Online"===this.state?this.Dr("Unknown"):(this.vr++,this.vr>=1&&(this.kr(),this.Cr("Connection failed 1 times. Most recent error: "+e.toString()),this.Dr("Offline")))},e.prototype.set=function(e){this.kr(),this.vr=0,"Online"===e&&(this.Vr=!1),this.Dr(e)},e.prototype.Dr=function(e){e!==this.state&&(this.state=e,this.onlineStateHandler(e))},e.prototype.Cr=function(e){var t="Could not reach Cloud Firestore backend. "+e+"\nThis typically indicates that your device does not have a healthy Internet connection at the moment. The client will operate in offline mode until it is able to successfully connect to the backend.";this.Vr?(qte(t),this.Vr=!1):Hte("OnlineStateTracker",t)},e.prototype.kr=function(){null!==this.Pr&&(this.Pr.cancel(),this.Pr=null)},e}(),Zae=function(e,t,n,r,i){var o=this;this.localStore=e,this.datastore=t,this.asyncQueue=n,this.remoteSyncer={},this.Fr=[],this.$r=new Map,this.Or=new Set,this.Mr=[],this.Lr=i,this.Lr.di((function(e){n.enqueueAndForget((function(){return hi(o,void 0,void 0,(function(){return pi(this,(function(e){switch(e.label){case 0:return ole(this)?(Hte("RemoteStore","Restarting streams for network reachability change."),[4,function(e){return hi(this,void 0,void 0,(function(){var t;return pi(this,(function(n){switch(n.label){case 0:return(t=$te(e)).Or.add(4),[4,Jae(t)];case 1:return n.sent(),t.Br.set("Unknown"),t.Or.delete(4),[4,$ae(t)];case 2:return n.sent(),[2]}}))}))}(this)]):[3,2];case 1:e.sent(),e.label=2;case 2:return[2]}}))}))}))})),this.Br=new Kae(n,r)};function $ae(e){return hi(this,void 0,void 0,(function(){var t,n;return pi(this,(function(r){switch(r.label){case 0:if(!ole(e))return[3,4];t=0,n=e.Mr,r.label=1;case 1:return t<n.length?[4,(0,n[t])(!0)]:[3,4];case 2:r.sent(),r.label=3;case 3:return t++,[3,1];case 4:return[2]}}))}))}function Jae(e){return hi(this,void 0,void 0,(function(){var t,n;return pi(this,(function(r){switch(r.label){case 0:t=0,n=e.Mr,r.label=1;case 1:return t<n.length?[4,(0,n[t])(!1)]:[3,4];case 2:r.sent(),r.label=3;case 3:return t++,[3,1];case 4:return[2]}}))}))}function Qae(e,t){var n=$te(e);n.$r.has(t.targetId)||(n.$r.set(t.targetId,t),ile(n)?rle(n):ble(n).er()&&tle(n,t))}function ele(e,t){var n=$te(e),r=ble(n);n.$r.delete(t),r.er()&&nle(n,t),0===n.$r.size&&(r.er()?r.ir():ole(n)&&n.Br.set("Unknown"))}function tle(e,t){e.qr.U(t.targetId),ble(e).mr(t)}function nle(e,t){e.qr.U(t),ble(e).yr(t)}function rle(e){e.qr=new jie({getRemoteKeysForTarget:function(t){return e.remoteSyncer.getRemoteKeysForTarget(t)},lt:function(t){return e.$r.get(t)||null}}),ble(e).start(),e.Br.Sr()}function ile(e){return ole(e)&&!ble(e).tr()&&e.$r.size>0}function ole(e){return 0===$te(e).Or.size}function sle(e){e.qr=void 0}function ale(e){return hi(this,void 0,void 0,(function(){return pi(this,(function(t){return e.$r.forEach((function(t,n){tle(e,t)})),[2]}))}))}function lle(e,t){return hi(this,void 0,void 0,(function(){return pi(this,(function(n){return sle(e),ile(e)?(e.Br.Nr(t),rle(e)):e.Br.set("Unknown"),[2]}))}))}function cle(e,t,n){return hi(this,void 0,void 0,(function(){var r,i,o;return pi(this,(function(s){switch(s.label){case 0:if(e.Br.set("Online"),!(t instanceof Aie&&2===t.state&&t.cause))return[3,6];s.label=1;case 1:return s.trys.push([1,3,,5]),[4,function(e,t){return hi(this,void 0,void 0,(function(){var n,r,i,o;return pi(this,(function(s){switch(s.label){case 0:n=t.cause,r=0,i=t.targetIds,s.label=1;case 1:return r<i.length?(o=i[r],e.$r.has(o)?[4,e.remoteSyncer.rejectListen(o,n)]:[3,3]):[3,5];case 2:s.sent(),e.$r.delete(o),e.qr.removeTarget(o),s.label=3;case 3:s.label=4;case 4:return r++,[3,1];case 5:return[2]}}))}))}(e,t)];case 2:return s.sent(),[3,5];case 3:return r=s.sent(),Hte("RemoteStore","Failed to remove targets %s: %s ",t.targetIds.join(","),r),[4,ule(e,r)];case 4:return s.sent(),[3,5];case 5:return[3,13];case 6:if(t instanceof Pie?e.qr.X(t):t instanceof Cie?e.qr.rt(t):e.qr.et(t),n.isEqual(ine.min()))return[3,13];s.label=7;case 7:return s.trys.push([7,11,,13]),[4,rae(e.localStore)];case 8:return i=s.sent(),n.compareTo(i)>=0?[4,function(e,t){var n=e.qr.ut(t);return n.targetChanges.forEach((function(n,r){if(n.resumeToken.approximateByteSize()>0){var i=e.$r.get(r);i&&e.$r.set(r,i.withResumeToken(n.resumeToken,t))}})),n.targetMismatches.forEach((function(t){var n=e.$r.get(t);if(n){e.$r.set(t,n.withResumeToken(pne.EMPTY_BYTE_STRING,n.snapshotVersion)),nle(e,t);var r=new Koe(n.target,t,1,n.sequenceNumber);tle(e,r)}})),e.remoteSyncer.applyRemoteEvent(n)}(e,n)]:[3,10];case 9:s.sent(),s.label=10;case 10:return[3,13];case 11:return Hte("RemoteStore","Failed to raise snapshot:",o=s.sent()),[4,ule(e,o)];case 12:return s.sent(),[3,13];case 13:return[2]}}))}))}function ule(e,t,n){return hi(this,void 0,void 0,(function(){var r=this;return pi(this,(function(i){switch(i.label){case 0:if(!Foe(t))throw t;return e.Or.add(1),[4,Jae(e)];case 1:return i.sent(),e.Br.set("Offline"),n||(n=function(){return rae(e.localStore)}),e.asyncQueue.enqueueRetryable((function(){return hi(r,void 0,void 0,(function(){return pi(this,(function(t){switch(t.label){case 0:return Hte("RemoteStore","Retrying IndexedDB access"),[4,n()];case 1:return t.sent(),e.Or.delete(1),[4,$ae(e)];case 2:return t.sent(),[2]}}))}))})),[2]}}))}))}function dle(e,t){return t().catch((function(n){return ule(e,n,t)}))}function hle(e){return hi(this,void 0,void 0,(function(){var t,n,r,i,o;return pi(this,(function(s){switch(s.label){case 0:t=$te(e),n=xle(t),r=t.Fr.length>0?t.Fr[t.Fr.length-1].batchId:-1,s.label=1;case 1:if(!function(e){return ole(e)&&e.Fr.length<10}(t))return[3,7];s.label=2;case 2:return s.trys.push([2,4,,6]),[4,sae(t.localStore,r)];case 3:return null===(i=s.sent())?(0===t.Fr.length&&n.ir(),[3,7]):(r=i.batchId,function(e,t){e.Fr.push(t);var n=xle(e);n.er()&&n.pr&&n.Er(t.mutations)}(t,i),[3,6]);case 4:return o=s.sent(),[4,ule(t,o)];case 5:return s.sent(),[3,6];case 6:return[3,1];case 7:return ple(t)&&fle(t),[2]}}))}))}function ple(e){return ole(e)&&!xle(e).tr()&&e.Fr.length>0}function fle(e){xle(e).start()}function gle(e){return hi(this,void 0,void 0,(function(){return pi(this,(function(t){return xle(e).Ar(),[2]}))}))}function mle(e){return hi(this,void 0,void 0,(function(){var t,n,r,i;return pi(this,(function(o){for(t=xle(e),n=0,r=e.Fr;n<r.length;n++)i=r[n],t.Er(i.mutations);return[2]}))}))}function yle(e,t,n){return hi(this,void 0,void 0,(function(){var r,i;return pi(this,(function(o){switch(o.label){case 0:return r=e.Fr.shift(),i=Yoe.from(r,t,n),[4,dle(e,(function(){return e.remoteSyncer.applySuccessfulWrite(i)}))];case 1:return o.sent(),[4,hle(e)];case 2:return o.sent(),[2]}}))}))}function vle(e,t){return hi(this,void 0,void 0,(function(){return pi(this,(function(n){switch(n.label){case 0:return t&&xle(e).pr?[4,function(e,t){return hi(this,void 0,void 0,(function(){var n,r;return pi(this,(function(i){switch(i.label){case 0:return sie(r=t.code)&&r!==zte.ABORTED?(n=e.Fr.shift(),xle(e).sr(),[4,dle(e,(function(){return e.remoteSyncer.rejectFailedWrite(n.batchId,t)}))]):[3,3];case 1:return i.sent(),[4,hle(e)];case 2:i.sent(),i.label=3;case 3:return[2]}}))}))}(e,t)]:[3,2];case 1:n.sent(),n.label=2;case 2:return ple(e)&&fle(e),[2]}}))}))}function _le(e,t){return hi(this,void 0,void 0,(function(){var n;return pi(this,(function(r){switch(r.label){case 0:return n=$te(e),t?(n.Or.delete(2),[4,$ae(n)]):[3,2];case 1:return r.sent(),[3,5];case 2:return t?[3,4]:(n.Or.add(2),[4,Jae(n)]);case 3:r.sent(),n.Br.set("Unknown"),r.label=4;case 4:r.label=5;case 5:return[2]}}))}))}function ble(e){var t=this;return e.Ur||(e.Ur=function(e,t,n){var r=$te(e);return r.br(),new qae(t,r.Hi,r.credentials,r.R,n)}(e.datastore,e.asyncQueue,{Ii:ale.bind(null,e),Ri:lle.bind(null,e),_r:cle.bind(null,e)}),e.Mr.push((function(n){return hi(t,void 0,void 0,(function(){return pi(this,(function(t){switch(t.label){case 0:return n?(e.Ur.sr(),ile(e)?rle(e):e.Br.set("Unknown"),[3,3]):[3,1];case 1:return[4,e.Ur.stop()];case 2:t.sent(),sle(e),t.label=3;case 3:return[2]}}))}))}))),e.Ur}function xle(e){var t=this;return e.Kr||(e.Kr=function(e,t,n){var r=$te(e);return r.br(),new Xae(t,r.Hi,r.credentials,r.R,n)}(e.datastore,e.asyncQueue,{Ii:gle.bind(null,e),Ri:vle.bind(null,e),Ir:mle.bind(null,e),Tr:yle.bind(null,e)}),e.Mr.push((function(n){return hi(t,void 0,void 0,(function(){return pi(this,(function(t){switch(t.label){case 0:return n?(e.Kr.sr(),[4,hle(e)]):[3,2];case 1:return t.sent(),[3,4];case 2:return[4,e.Kr.stop()];case 3:t.sent(),e.Fr.length>0&&(Hte("RemoteStore","Stopping write stream with "+e.Fr.length+" pending writes"),e.Fr=[]),t.label=4;case 4:return[2]}}))}))}))),e.Kr}var Sle=function(){function e(e,t,n,r,i){this.asyncQueue=e,this.timerId=t,this.targetTimeMs=n,this.op=r,this.removalCallback=i,this.deferred=new Ooe,this.then=this.deferred.promise.then.bind(this.deferred.promise),this.deferred.promise.catch((function(e){}))}return e.createAndSchedule=function(t,n,r,i,o){var s=new e(t,n,Date.now()+r,i,o);return s.start(r),s},e.prototype.start=function(e){var t=this;this.timerHandle=setTimeout((function(){return t.handleDelayElapsed()}),e)},e.prototype.skipDelay=function(){return this.handleDelayElapsed()},e.prototype.cancel=function(e){null!==this.timerHandle&&(this.clearTimeout(),this.deferred.reject(new Bte(zte.CANCELLED,"Operation cancelled"+(e?": "+e:""))))},e.prototype.handleDelayElapsed=function(){var e=this;this.asyncQueue.enqueueAndForget((function(){return null!==e.timerHandle?(e.clearTimeout(),e.op().then((function(t){return e.deferred.resolve(t)}))):Promise.resolve()}))},e.prototype.clearTimeout=function(){null!==this.timerHandle&&(this.removalCallback(this),clearTimeout(this.timerHandle),this.timerHandle=null)},e}();function wle(e,t){if(qte("AsyncQueue",t+": "+e),Foe(e))return new Bte(zte.UNAVAILABLE,t+": "+e);throw e}var Ele=function(){function e(e){this.comparator=e?function(t,n){return e(t,n)||Ene.comparator(t.key,n.key)}:function(e,t){return Ene.comparator(e.key,t.key)},this.keyedMap=mie(),this.sortedSet=new lie(this.comparator)}return e.emptySet=function(t){return new e(t.comparator)},e.prototype.has=function(e){return null!=this.keyedMap.get(e)},e.prototype.get=function(e){return this.keyedMap.get(e)},e.prototype.first=function(){return this.sortedSet.minKey()},e.prototype.last=function(){return this.sortedSet.maxKey()},e.prototype.isEmpty=function(){return this.sortedSet.isEmpty()},e.prototype.indexOf=function(e){var t=this.keyedMap.get(e);return t?this.sortedSet.indexOf(t):-1},Object.defineProperty(e.prototype,"size",{get:function(){return this.sortedSet.size},enumerable:!1,configurable:!0}),e.prototype.forEach=function(e){this.sortedSet.inorderTraversal((function(t,n){return e(t),!1}))},e.prototype.add=function(e){var t=this.delete(e.key);return t.copy(t.keyedMap.insert(e.key,e),t.sortedSet.insert(e,null))},e.prototype.delete=function(e){var t=this.get(e);return t?this.copy(this.keyedMap.remove(e),this.sortedSet.remove(t)):this},e.prototype.isEqual=function(t){if(!(t instanceof e))return!1;if(this.size!==t.size)return!1;for(var n=this.sortedSet.getIterator(),r=t.sortedSet.getIterator();n.hasNext();){var i=n.getNext().key,o=r.getNext().key;if(!i.isEqual(o))return!1}return!0},e.prototype.toString=function(){var e=[];return this.forEach((function(t){e.push(t.toString())})),0===e.length?"DocumentSet ()":"DocumentSet (\n  "+e.join("  \n")+"\n)"},e.prototype.copy=function(t,n){var r=new e;return r.comparator=this.comparator,r.keyedMap=t,r.sortedSet=n,r},e}(),Ple=function(){function e(){this.Qr=new lie(Ene.comparator)}return e.prototype.track=function(e){var t=e.doc.key,n=this.Qr.get(t);n?0!==e.type&&3===n.type?this.Qr=this.Qr.insert(t,e):3===e.type&&1!==n.type?this.Qr=this.Qr.insert(t,{type:n.type,doc:e.doc}):2===e.type&&2===n.type?this.Qr=this.Qr.insert(t,{type:2,doc:e.doc}):2===e.type&&0===n.type?this.Qr=this.Qr.insert(t,{type:0,doc:e.doc}):1===e.type&&0===n.type?this.Qr=this.Qr.remove(t):1===e.type&&2===n.type?this.Qr=this.Qr.insert(t,{type:1,doc:n.doc}):0===e.type&&1===n.type?this.Qr=this.Qr.insert(t,{type:2,doc:e.doc}):Kte():this.Qr=this.Qr.insert(t,e)},e.prototype.jr=function(){var e=[];return this.Qr.inorderTraversal((function(t,n){e.push(n)})),e},e}(),Cle=function(){function e(e,t,n,r,i,o,s,a){this.query=e,this.docs=t,this.oldDocs=n,this.docChanges=r,this.mutatedKeys=i,this.fromCache=o,this.syncStateChanged=s,this.excludesMetadataChanges=a}return e.fromInitialDocuments=function(t,n,r,i){var o=[];return n.forEach((function(e){o.push({type:0,doc:e})})),new e(t,n,Ele.emptySet(n),o,r,i,!0,!1)},Object.defineProperty(e.prototype,"hasPendingWrites",{get:function(){return!this.mutatedKeys.isEmpty()},enumerable:!1,configurable:!0}),e.prototype.isEqual=function(e){if(!(this.fromCache===e.fromCache&&this.syncStateChanged===e.syncStateChanged&&this.mutatedKeys.isEqual(e.mutatedKeys)&&_re(this.query,e.query)&&this.docs.isEqual(e.docs)&&this.oldDocs.isEqual(e.oldDocs)))return!1;var t=this.docChanges,n=e.docChanges;if(t.length!==n.length)return!1;for(var r=0;r<t.length;r++)if(t[r].type!==n[r].type||!t[r].doc.isEqual(n[r].doc))return!1;return!0},e}(),Ale=function(){this.Wr=void 0,this.listeners=[]},kle=function(){this.queries=new Rse((function(e){return bre(e)}),_re),this.onlineState="Unknown",this.Gr=new Set};function jle(e,t){return hi(this,void 0,void 0,(function(){var n,r,i,o,s,a,l;return pi(this,(function(c){switch(c.label){case 0:if(n=$te(e),r=t.query,i=!1,(o=n.queries.get(r))||(i=!0,o=new Ale),!i)return[3,4];c.label=1;case 1:return c.trys.push([1,3,,4]),s=o,[4,n.onListen(r)];case 2:return s.Wr=c.sent(),[3,4];case 3:return a=c.sent(),l=wle(a,"Initialization of query '"+xre(t.query)+"' failed"),[2,void t.onError(l)];case 4:return n.queries.set(r,o),o.listeners.push(t),t.zr(n.onlineState),o.Wr&&t.Hr(o.Wr)&&Mle(n),[2]}}))}))}function Ile(e,t){return hi(this,void 0,void 0,(function(){var n,r,i,o,s;return pi(this,(function(a){return n=$te(e),r=t.query,i=!1,(o=n.queries.get(r))&&(s=o.listeners.indexOf(t))>=0&&(o.listeners.splice(s,1),i=0===o.listeners.length),i?[2,(n.queries.delete(r),n.onUnlisten(r))]:[2]}))}))}function Gle(e,t){for(var n=$te(e),r=!1,i=0,o=t;i<o.length;i++){var s=o[i],a=s.query,l=n.queries.get(a);if(l){for(var c=0,u=l.listeners;c<u.length;c++)u[c].Hr(s)&&(r=!0);l.Wr=s}}r&&Mle(n)}function Tle(e,t,n){var r=$te(e),i=r.queries.get(t);if(i)for(var o=0,s=i.listeners;o<s.length;o++)s[o].onError(n);r.queries.delete(t)}function Mle(e){e.Gr.forEach((function(e){e.next()}))}var Ole=function(){function e(e,t,n){this.query=e,this.Jr=t,this.Yr=!1,this.Xr=null,this.onlineState="Unknown",this.options=n||{}}return e.prototype.Hr=function(e){if(!this.options.includeMetadataChanges){for(var t=[],n=0,r=e.docChanges;n<r.length;n++){var i=r[n];3!==i.type&&t.push(i)}e=new Cle(e.query,e.docs,e.oldDocs,t,e.mutatedKeys,e.fromCache,e.syncStateChanged,!0)}var o=!1;return this.Yr?this.Zr(e)&&(this.Jr.next(e),o=!0):this.eo(e,this.onlineState)&&(this.no(e),o=!0),this.Xr=e,o},e.prototype.onError=function(e){this.Jr.error(e)},e.prototype.zr=function(e){this.onlineState=e;var t=!1;return this.Xr&&!this.Yr&&this.eo(this.Xr,e)&&(this.no(this.Xr),t=!0),t},e.prototype.eo=function(e,t){if(!e.fromCache)return!0;var n="Offline"!==t;return!(this.options.so&&n||e.docs.isEmpty()&&"Offline"!==t)},e.prototype.Zr=function(e){if(e.docChanges.length>0)return!0;var t=this.Xr&&this.Xr.hasPendingWrites!==e.hasPendingWrites;return!(!e.syncStateChanged&&!t)&&!0===this.options.includeMetadataChanges},e.prototype.no=function(e){e=Cle.fromInitialDocuments(e.query,e.docs,e.mutatedKeys,e.fromCache),this.Yr=!0,this.Jr.next(e)},e}(),Rle=function(){function e(e,t){this.payload=e,this.byteLength=t}return e.prototype.io=function(){return"metadata"in this.payload},e}(),Dle=function(){function e(e){this.R=e}return e.prototype.qn=function(e){return Bie(this.R,e)},e.prototype.Un=function(e){return e.metadata.exists?Yie(this.R,e.document,!1):zne.newNoDocument(this.qn(e.metadata.name),this.Kn(e.metadata.readTime))},e.prototype.Kn=function(e){return Lie(e)},e}();!function(){function e(e,t,n){this.ro=e,this.localStore=t,this.R=n,this.queries=[],this.documents=[],this.progress=Nle(e)}e.prototype.oo=function(e){this.progress.bytesLoaded+=e.byteLength;var t=this.progress.documentsLoaded;return e.payload.namedQuery?this.queries.push(e.payload.namedQuery):e.payload.documentMetadata?(this.documents.push({metadata:e.payload.documentMetadata}),e.payload.documentMetadata.exists||++t):e.payload.document&&(this.documents[this.documents.length-1].document=e.payload.document,++t),t!==this.progress.documentsLoaded?(this.progress.documentsLoaded=t,Object.assign({},this.progress)):null},e.prototype.co=function(e){for(var t=new Map,n=new Dle(this.R),r=0,i=e;r<i.length;r++){var o=i[r];if(o.metadata.queries)for(var s=n.qn(o.metadata.name),a=0,l=o.metadata.queries;a<l.length;a++){var c=l[a],u=(t.get(c)||bie()).add(s);t.set(c,u)}}return t},e.prototype.complete=function(){return hi(this,void 0,void 0,(function(){var e,t,n,r,i;return pi(this,(function(o){switch(o.label){case 0:return[4,pae(this.localStore,new Dle(this.R),this.documents,this.ro.id)];case 1:e=o.sent(),t=this.co(this.documents),n=0,r=this.queries,o.label=2;case 2:return n<r.length?(i=r[n],[4,fae(this.localStore,i,t.get(i.name))]):[3,5];case 3:o.sent(),o.label=4;case 4:return n++,[3,2];case 5:return[2,(this.progress.taskState="Success",new Kse(Object.assign({},this.progress),e))]}}))}))}}();function Nle(e){return{taskState:"Running",documentsLoaded:0,bytesLoaded:0,totalDocuments:e.totalDocuments,totalBytes:e.totalBytes}}var Lle=function(e){this.key=e},Vle=function(e){this.key=e},Fle=function(){function e(e,t){this.query=e,this.uo=t,this.ao=null,this.current=!1,this.ho=bie(),this.mutatedKeys=bie(),this.lo=wre(e),this.fo=new Ele(this.lo)}return Object.defineProperty(e.prototype,"wo",{get:function(){return this.uo},enumerable:!1,configurable:!0}),e.prototype._o=function(e,t){var n=this,r=t?t.mo:new Ple,i=t?t.fo:this.fo,o=t?t.mutatedKeys:this.mutatedKeys,s=i,a=!1,l=dre(this.query)&&i.size===this.query.limit?i.last():null,c=hre(this.query)&&i.size===this.query.limit?i.first():null;if(e.inorderTraversal((function(e,t){var u=i.get(e),d=Sre(n.query,t)?t:null,h=!!u&&n.mutatedKeys.has(u.key),p=!!d&&(d.hasLocalMutations||n.mutatedKeys.has(d.key)&&d.hasCommittedMutations),f=!1;u&&d?u.data.isEqual(d.data)?h!==p&&(r.track({type:3,doc:d}),f=!0):n.yo(u,d)||(r.track({type:2,doc:d}),f=!0,(l&&n.lo(d,l)>0||c&&n.lo(d,c)<0)&&(a=!0)):!u&&d?(r.track({type:0,doc:d}),f=!0):u&&!d&&(r.track({type:1,doc:u}),f=!0,(l||c)&&(a=!0)),f&&(d?(s=s.add(d),o=p?o.add(e):o.delete(e)):(s=s.delete(e),o=o.delete(e)))})),dre(this.query)||hre(this.query))for(;s.size>this.query.limit;){var u=dre(this.query)?s.last():s.first();s=s.delete(u.key),o=o.delete(u.key),r.track({type:1,doc:u})}return{fo:s,mo:r,Nn:a,mutatedKeys:o}},e.prototype.yo=function(e,t){return e.hasLocalMutations&&t.hasCommittedMutations&&!t.hasLocalMutations},e.prototype.applyChanges=function(e,t,n){var r=this,i=this.fo;this.fo=e.fo,this.mutatedKeys=e.mutatedKeys;var o=e.mo.jr();o.sort((function(e,t){return function(e,t){var n=function(e){switch(e){case 0:return 1;case 2:case 3:return 2;case 1:return 0;default:return Kte()}};return n(e)-n(t)}(e.type,t.type)||r.lo(e.doc,t.doc)})),this.po(n);var s=t?this.Eo():[],a=0===this.ho.size&&this.current?1:0,l=a!==this.ao;return this.ao=a,0!==o.length||l?{snapshot:new Cle(this.query,e.fo,i,o,e.mutatedKeys,0===a,l,!1),To:s}:{To:s}},e.prototype.zr=function(e){return this.current&&"Offline"===e?(this.current=!1,this.applyChanges({fo:this.fo,mo:new Ple,mutatedKeys:this.mutatedKeys,Nn:!1},!1)):{To:[]}},e.prototype.Io=function(e){return!this.uo.has(e)&&!!this.fo.has(e)&&!this.fo.get(e).hasLocalMutations},e.prototype.po=function(e){var t=this;e&&(e.addedDocuments.forEach((function(e){return t.uo=t.uo.add(e)})),e.modifiedDocuments.forEach((function(e){})),e.removedDocuments.forEach((function(e){return t.uo=t.uo.delete(e)})),this.current=e.current)},e.prototype.Eo=function(){var e=this;if(!this.current)return[];var t=this.ho;this.ho=bie(),this.fo.forEach((function(t){e.Io(t.key)&&(e.ho=e.ho.add(t.key))}));var n=[];return t.forEach((function(t){e.ho.has(t)||n.push(new Vle(t))})),this.ho.forEach((function(e){t.has(e)||n.push(new Lle(e))})),n},e.prototype.Ao=function(e){this.uo=e.Bn,this.ho=bie();var t=this._o(e.documents);return this.applyChanges(t,!0)},e.prototype.Ro=function(){return Cle.fromInitialDocuments(this.query,this.fo,this.mutatedKeys,0===this.ao)},e}(),zle=function(e,t,n){this.query=e,this.targetId=t,this.view=n},Ble=function(e){this.key=e,this.bo=!1},Ule=function(){function e(e,t,n,r,i,o){this.localStore=e,this.remoteStore=t,this.eventManager=n,this.sharedClientState=r,this.currentUser=i,this.maxConcurrentLimboResolutions=o,this.vo={},this.Po=new Rse((function(e){return bre(e)}),_re),this.Vo=new Map,this.So=new Set,this.Do=new lie(Ene.comparator),this.Co=new Map,this.No=new mae,this.xo={},this.ko=new Map,this.Fo=wse.Yt(),this.onlineState="Unknown",this.$o=void 0}return Object.defineProperty(e.prototype,"isPrimaryClient",{get:function(){return!0===this.$o},enumerable:!1,configurable:!0}),e}();function Wle(e,t){return hi(this,void 0,void 0,(function(){var n,r,i,o,s,a;return pi(this,(function(l){switch(l.label){case 0:return n=_ce(e),(o=n.Po.get(t))?(r=o.targetId,n.sharedClientState.addLocalQueryTarget(r),i=o.view.Ro(),[3,4]):[3,1];case 1:return[4,aae(n.localStore,yre(t))];case 2:return s=l.sent(),a=n.sharedClientState.addLocalQueryTarget(s.targetId),r=s.targetId,[4,Hle(n,t,r,"current"===a)];case 3:i=l.sent(),n.isPrimaryClient&&Qae(n.remoteStore,s),l.label=4;case 4:return[2,i]}}))}))}function Hle(e,t,n,r){return hi(this,void 0,void 0,(function(){var i,o,s,a,l,c;return pi(this,(function(u){switch(u.label){case 0:return e.Oo=function(t,n,r){return function(e,t,n,r){return hi(this,void 0,void 0,(function(){var i,o,s;return pi(this,(function(a){switch(a.label){case 0:return(i=t.view._o(n)).Nn?[4,cae(e.localStore,t.query,!1).then((function(e){var n=e.documents;return t.view._o(n,i)}))]:[3,2];case 1:i=a.sent(),a.label=2;case 2:return o=r&&r.targetChanges.get(t.targetId),s=t.view.applyChanges(i,e.isPrimaryClient,o),[2,(ice(e,t.targetId,s.To),s.snapshot)]}}))}))}(e,t,n,r)},[4,cae(e.localStore,t,!0)];case 1:return i=u.sent(),o=new Fle(t,i.Bn),s=o._o(i.documents),a=Eie.createSynthesizedTargetChangeForCurrentChange(n,r&&"Offline"!==e.onlineState),l=o.applyChanges(s,e.isPrimaryClient,a),ice(e,n,l.To),c=new zle(t,n,o),[2,(e.Po.set(t,c),e.Vo.has(n)?e.Vo.get(n).push(t):e.Vo.set(n,[t]),l.snapshot)]}}))}))}function qle(e,t){return hi(this,void 0,void 0,(function(){var n,r,i;return pi(this,(function(o){switch(o.label){case 0:return n=$te(e),r=n.Po.get(t),(i=n.Vo.get(r.targetId)).length>1?[2,(n.Vo.set(r.targetId,i.filter((function(e){return!_re(e,t)}))),void n.Po.delete(t))]:n.isPrimaryClient?(n.sharedClientState.removeLocalQueryTarget(r.targetId),n.sharedClientState.isActiveQueryTarget(r.targetId)?[3,2]:[4,lae(n.localStore,r.targetId,!1).then((function(){n.sharedClientState.clearQueryState(r.targetId),ele(n.remoteStore,r.targetId),nce(n,r.targetId)})).catch(kse)]):[3,3];case 1:o.sent(),o.label=2;case 2:return[3,5];case 3:return nce(n,r.targetId),[4,lae(n.localStore,r.targetId,!0)];case 4:o.sent(),o.label=5;case 5:return[2]}}))}))}function Xle(e,t,n){return hi(this,void 0,void 0,(function(){var r,i,o,s;return pi(this,(function(a){switch(a.label){case 0:r=bce(e),a.label=1;case 1:return a.trys.push([1,5,,6]),[4,function(e,t){var n,r=$te(e),i=rne.now(),o=t.reduce((function(e,t){return e.add(t.key)}),bie());return r.persistence.runTransaction("Locally write mutations","readwrite",(function(e){return r.Mn.pn(e,o).next((function(o){n=o;for(var s=[],a=0,l=t;a<l.length;a++){var c=l[a],u=Xre(c,n.get(c.key));null!=u&&s.push(new $re(c.key,u,Fne(u.value.mapValue),Bre.exists(!0)))}return r._n.addMutationBatch(e,i,s,t)}))})).then((function(e){return e.applyToLocalDocumentSet(n),{batchId:e.batchId,changes:n}}))}(r.localStore,t)];case 2:return i=a.sent(),r.sharedClientState.addPendingMutation(i.batchId),function(e,t,n){var r=e.xo[e.currentUser.toKey()];r||(r=new lie(ene)),r=r.insert(t,n),e.xo[e.currentUser.toKey()]=r}(r,i.batchId,n),[4,ace(r,i.changes)];case 3:return a.sent(),[4,hle(r.remoteStore)];case 4:return a.sent(),[3,6];case 5:return o=a.sent(),s=wle(o,"Failed to persist write"),n.reject(s),[3,6];case 6:return[2]}}))}))}function Yle(e,t){return hi(this,void 0,void 0,(function(){var n,r;return pi(this,(function(i){switch(i.label){case 0:n=$te(e),i.label=1;case 1:return i.trys.push([1,4,,6]),[4,iae(n.localStore,t)];case 2:return r=i.sent(),t.targetChanges.forEach((function(e,t){var r=n.Co.get(t);r&&(Zte(e.addedDocuments.size+e.modifiedDocuments.size+e.removedDocuments.size<=1),e.addedDocuments.size>0?r.bo=!0:e.modifiedDocuments.size>0?Zte(r.bo):e.removedDocuments.size>0&&(Zte(r.bo),r.bo=!1))})),[4,ace(n,r,t)];case 3:return i.sent(),[3,6];case 4:return[4,kse(i.sent())];case 5:return i.sent(),[3,6];case 6:return[2]}}))}))}function Kle(e,t,n){var r=$te(e);if(r.isPrimaryClient&&0===n||!r.isPrimaryClient&&1===n){var i=[];r.Po.forEach((function(e,n){var r=n.view.zr(t);r.snapshot&&i.push(r.snapshot)})),function(e,t){var n=$te(e);n.onlineState=t;var r=!1;n.queries.forEach((function(e,n){for(var i=0,o=n.listeners;i<o.length;i++)o[i].zr(t)&&(r=!0)})),r&&Mle(n)}(r.eventManager,t),i.length&&r.vo._r(i),r.onlineState=t,r.isPrimaryClient&&r.sharedClientState.setOnlineState(t)}}function Zle(e,t,n){return hi(this,void 0,void 0,(function(){var r,i,o,s,a,l;return pi(this,(function(c){switch(c.label){case 0:return(r=$te(e)).sharedClientState.updateQueryState(t,"rejected",n),i=r.Co.get(t),(o=i&&i.key)?(s=(s=new lie(Ene.comparator)).insert(o,zne.newNoDocument(o,ine.min())),a=bie().add(o),l=new wie(ine.min(),new Map,new die(ene),s,a),[4,Yle(r,l)]):[3,2];case 1:return c.sent(),r.Do=r.Do.remove(o),r.Co.delete(t),sce(r),[3,4];case 2:return[4,lae(r.localStore,t,!1).then((function(){return nce(r,t,n)})).catch(kse)];case 3:c.sent(),c.label=4;case 4:return[2]}}))}))}function $le(e,t){return hi(this,void 0,void 0,(function(){var n,r,i;return pi(this,(function(o){switch(o.label){case 0:n=$te(e),r=t.batch.batchId,o.label=1;case 1:return o.trys.push([1,4,,6]),[4,nae(n.localStore,t)];case 2:return i=o.sent(),tce(n,r,null),ece(n,r),n.sharedClientState.updateMutationState(r,"acknowledged"),[4,ace(n,i)];case 3:return o.sent(),[3,6];case 4:return[4,kse(o.sent())];case 5:return o.sent(),[3,6];case 6:return[2]}}))}))}function Jle(e,t,n){return hi(this,void 0,void 0,(function(){var r,i;return pi(this,(function(o){switch(o.label){case 0:r=$te(e),o.label=1;case 1:return o.trys.push([1,4,,6]),[4,function(e,t){var n=$te(e);return n.persistence.runTransaction("Reject batch","readwrite-primary",(function(e){var r;return n._n.lookupMutationBatch(e,t).next((function(t){return Zte(null!==t),r=t.keys(),n._n.removeMutationBatch(e,t)})).next((function(){return n._n.performConsistencyCheck(e)})).next((function(){return n.Mn.pn(e,r)}))}))}(r.localStore,t)];case 2:return i=o.sent(),tce(r,t,n),ece(r,t),r.sharedClientState.updateMutationState(t,"rejected",n),[4,ace(r,i)];case 3:return o.sent(),[3,6];case 4:return[4,kse(o.sent())];case 5:return o.sent(),[3,6];case 6:return[2]}}))}))}function Qle(e,t){return hi(this,void 0,void 0,(function(){var n,r,i,o,s;return pi(this,(function(a){switch(a.label){case 0:ole((n=$te(e)).remoteStore)||Hte("SyncEngine","The network is disabled. The task returned by 'awaitPendingWrites()' will not complete until the network is enabled."),a.label=1;case 1:return a.trys.push([1,3,,4]),[4,function(e){var t=$te(e);return t.persistence.runTransaction("Get highest unacknowledged batch id","readonly",(function(e){return t._n.getHighestUnacknowledgedBatchId(e)}))}(n.localStore)];case 2:return-1===(r=a.sent())?[2,void t.resolve()]:((i=n.ko.get(r)||[]).push(t),n.ko.set(r,i),[3,4]);case 3:return o=a.sent(),s=wle(o,"Initialization of waitForPendingWrites() operation failed"),t.reject(s),[3,4];case 4:return[2]}}))}))}function ece(e,t){(e.ko.get(t)||[]).forEach((function(e){e.resolve()})),e.ko.delete(t)}function tce(e,t,n){var r=$te(e),i=r.xo[r.currentUser.toKey()];if(i){var o=i.get(t);o&&(n?o.reject(n):o.resolve(),i=i.remove(t)),r.xo[r.currentUser.toKey()]=i}}function nce(e,t,n){void 0===n&&(n=null),e.sharedClientState.removeLocalQueryTarget(t);for(var r=0,i=e.Vo.get(t);r<i.length;r++){var o=i[r];e.Po.delete(o),n&&e.vo.Mo(o,n)}e.Vo.delete(t),e.isPrimaryClient&&e.No.Zn(t).forEach((function(t){e.No.containsKey(t)||rce(e,t)}))}function rce(e,t){e.So.delete(t.path.canonicalString());var n=e.Do.get(t);null!==n&&(ele(e.remoteStore,n),e.Do=e.Do.remove(t),e.Co.delete(n),sce(e))}function ice(e,t,n){for(var r=0,i=n;r<i.length;r++){var o=i[r];o instanceof Lle?(e.No.addReference(o.key,t),oce(e,o)):o instanceof Vle?(Hte("SyncEngine","Document no longer in limbo: "+o.key),e.No.removeReference(o.key,t),e.No.containsKey(o.key)||rce(e,o.key)):Kte()}}function oce(e,t){var n=t.key,r=n.path.canonicalString();e.Do.get(n)||e.So.has(r)||(Hte("SyncEngine","New document in limbo: "+n),e.So.add(r),sce(e))}function sce(e){for(;e.So.size>0&&e.Do.size<e.maxConcurrentLimboResolutions;){var t=e.So.values().next().value;e.So.delete(t);var n=new Ene(cne.fromString(t)),r=e.Fo.next();e.Co.set(r,new Ble(n)),e.Do=e.Do.insert(n,r),Qae(e.remoteStore,new Koe(yre(ure(n.path)),r,2,Fte.o))}}function ace(e,t,n){return hi(this,void 0,void 0,(function(){var r,i,o,s;return pi(this,(function(a){switch(a.label){case 0:return r=$te(e),i=[],o=[],s=[],r.Po.isEmpty()?[3,3]:(r.Po.forEach((function(e,a){s.push(r.Oo(a,t,n).then((function(e){if(e){r.isPrimaryClient&&r.sharedClientState.updateQueryState(a.targetId,e.fromCache?"not-current":"current"),i.push(e);var t=$se.Pn(a.targetId,e);o.push(t)}})))})),[4,Promise.all(s)]);case 1:return a.sent(),r.vo._r(i),[4,function(e,t){return hi(this,void 0,void 0,(function(){var n,r,i,o,s,a,l,c,u;return pi(this,(function(d){switch(d.label){case 0:n=$te(e),d.label=1;case 1:return d.trys.push([1,3,,4]),[4,n.persistence.runTransaction("notifyLocalViewChanges","readwrite",(function(e){return Roe.forEach(t,(function(t){return Roe.forEach(t.bn,(function(r){return n.persistence.referenceDelegate.addReference(e,t.targetId,r)})).next((function(){return Roe.forEach(t.vn,(function(r){return n.persistence.referenceDelegate.removeReference(e,t.targetId,r)}))}))}))}))];case 2:return d.sent(),[3,4];case 3:if(!Foe(r=d.sent()))throw r;return Hte("LocalStore","Failed to update sequence numbers: "+r),[3,4];case 4:for(i=0,o=t;i<o.length;i++)s=o[i],a=s.targetId,s.fromCache||(l=n.kn.get(a),c=l.snapshotVersion,u=l.withLastLimboFreeSnapshotVersion(c),n.kn=n.kn.insert(a,u));return[2]}}))}))}(r.localStore,o)];case 2:a.sent(),a.label=3;case 3:return[2]}}))}))}function lce(e,t){return hi(this,void 0,void 0,(function(){var n,r;return pi(this,(function(i){switch(i.label){case 0:return(n=$te(e)).currentUser.isEqual(t)?[3,3]:(Hte("SyncEngine","User change. New user:",t.toKey()),[4,tae(n.localStore,t)]);case 1:return r=i.sent(),n.currentUser=t,function(e,t){e.ko.forEach((function(e){e.forEach((function(e){e.reject(new Bte(zte.CANCELLED,"'waitForPendingWrites' promise is rejected due to a user change."))}))})),e.ko.clear()}(n),n.sharedClientState.handleUserChange(t,r.removedBatchIds,r.addedBatchIds),[4,ace(n,r.Ln)];case 2:i.sent(),i.label=3;case 3:return[2]}}))}))}function cce(e,t){var n=$te(e),r=n.Co.get(t);if(r&&r.bo)return bie().add(r.key);var i=bie(),o=n.Vo.get(t);if(!o)return i;for(var s=0,a=o;s<a.length;s++){var l=a[s],c=n.Po.get(l);i=i.unionWith(c.view.wo)}return i}function uce(e,t){return hi(this,void 0,void 0,(function(){var n,r,i;return pi(this,(function(o){switch(o.label){case 0:return[4,cae((n=$te(e)).localStore,t.query,!0)];case 1:return r=o.sent(),i=t.view.Ao(r),[2,(n.isPrimaryClient&&ice(n,t.targetId,i.To),i)]}}))}))}function dce(e){return hi(this,void 0,void 0,(function(){var t;return pi(this,(function(n){return[2,dae((t=$te(e)).localStore).then((function(e){return ace(t,e)}))]}))}))}function hce(e,t,n,r){return hi(this,void 0,void 0,(function(){var i,o;return pi(this,(function(s){switch(s.label){case 0:return[4,function(e,t){var n=$te(e),r=$te(n._n);return n.persistence.runTransaction("Lookup mutation documents","readonly",(function(e){return r.jt(e,t).next((function(t){return t?n.Mn.pn(e,t):Roe.resolve(null)}))}))}((i=$te(e)).localStore,t)];case 1:return null===(o=s.sent())?[3,6]:"pending"!==n?[3,3]:[4,hle(i.remoteStore)];case 2:return s.sent(),[3,4];case 3:"acknowledged"===n||"rejected"===n?(tce(i,t,r||null),ece(i,t),function(e,t){$te($te(e)._n).Gt(t)}(i.localStore,t)):Kte(),s.label=4;case 4:return[4,ace(i,o)];case 5:return s.sent(),[3,7];case 6:Hte("SyncEngine","Cannot apply mutation batch with id: "+t),s.label=7;case 7:return[2]}}))}))}function pce(e,t){return hi(this,void 0,void 0,(function(){var n,r,i,o,s,a,l,c;return pi(this,(function(u){switch(u.label){case 0:return _ce(n=$te(e)),bce(n),!0!==t||!0===n.$o?[3,3]:(r=n.sharedClientState.getAllActiveQueryTargets(),[4,fce(n,r.toArray())]);case 1:return i=u.sent(),n.$o=!0,[4,_le(n.remoteStore,!0)];case 2:for(u.sent(),o=0,s=i;o<s.length;o++)a=s[o],Qae(n.remoteStore,a);return[3,7];case 3:return!1!==t||!1===n.$o?[3,7]:(l=[],c=Promise.resolve(),n.Vo.forEach((function(e,t){n.sharedClientState.isLocalQueryTarget(t)?l.push(t):c=c.then((function(){return nce(n,t),lae(n.localStore,t,!0)})),ele(n.remoteStore,t)})),[4,c]);case 4:return u.sent(),[4,fce(n,l)];case 5:return u.sent(),function(e){var t=$te(e);t.Co.forEach((function(e,n){ele(t.remoteStore,n)})),t.No.ts(),t.Co=new Map,t.Do=new lie(Ene.comparator)}(n),n.$o=!1,[4,_le(n.remoteStore,!1)];case 6:u.sent(),u.label=7;case 7:return[2]}}))}))}function fce(e,t,n){return hi(this,void 0,void 0,(function(){var n,r,i,o,s,a,l,c,u,d,h,p,f,g;return pi(this,(function(m){switch(m.label){case 0:n=$te(e),r=[],i=[],o=0,s=t,m.label=1;case 1:return o<s.length?(a=s[o],l=void 0,(c=n.Vo.get(a))&&0!==c.length?[4,aae(n.localStore,yre(c[0]))]:[3,7]):[3,13];case 2:l=m.sent(),u=0,d=c,m.label=3;case 3:return u<d.length?(h=d[u],p=n.Po.get(h),[4,uce(n,p)]):[3,6];case 4:(f=m.sent()).snapshot&&i.push(f.snapshot),m.label=5;case 5:return u++,[3,3];case 6:return[3,11];case 7:return[4,uae(n.localStore,a)];case 8:return g=m.sent(),[4,aae(n.localStore,g)];case 9:return l=m.sent(),[4,Hle(n,gce(g),a,!1)];case 10:m.sent(),m.label=11;case 11:r.push(l),m.label=12;case 12:return o++,[3,1];case 13:return[2,(n.vo._r(i),r)]}}))}))}function gce(e){return cre(e.path,e.collectionGroup,e.orderBy,e.filters,e.limit,"F",e.startAt,e.endAt)}function mce(e){var t=$te(e);return $te($te(t.localStore).persistence).fn()}function yce(e,t,n,r){return hi(this,void 0,void 0,(function(){var i,o,s;return pi(this,(function(a){switch(a.label){case 0:return(i=$te(e)).$o?(Hte("SyncEngine","Ignoring unexpected query state notification."),[3,8]):[3,1];case 1:if(!i.Vo.has(t))return[3,8];switch(n){case"current":case"not-current":return[3,2];case"rejected":return[3,5]}return[3,7];case 2:return[4,dae(i.localStore)];case 3:return o=a.sent(),s=wie.createSynthesizedRemoteEventForCurrentChange(t,"current"===n),[4,ace(i,o,s)];case 4:return a.sent(),[3,8];case 5:return[4,lae(i.localStore,t,!0)];case 6:return a.sent(),nce(i,t,r),[3,8];case 7:Kte(),a.label=8;case 8:return[2]}}))}))}function vce(e,t,n){return hi(this,void 0,void 0,(function(){var r,i,o,s,a,l,c,u,d,h;return pi(this,(function(p){switch(p.label){case 0:if(!(r=_ce(e)).$o)return[3,10];i=0,o=t,p.label=1;case 1:return i<o.length?(s=o[i],r.Vo.has(s)?(Hte("SyncEngine","Adding an already active target "+s),[3,5]):[4,uae(r.localStore,s)]):[3,6];case 2:return a=p.sent(),[4,aae(r.localStore,a)];case 3:return l=p.sent(),[4,Hle(r,gce(a),l.targetId,!1)];case 4:p.sent(),Qae(r.remoteStore,l),p.label=5;case 5:return i++,[3,1];case 6:c=function(e){return pi(this,(function(t){switch(t.label){case 0:return r.Vo.has(e)?[4,lae(r.localStore,e,!1).then((function(){ele(r.remoteStore,e),nce(r,e)})).catch(kse)]:[3,2];case 1:t.sent(),t.label=2;case 2:return[2]}}))},u=0,d=n,p.label=7;case 7:return u<d.length?(h=d[u],[5,c(h)]):[3,10];case 8:p.sent(),p.label=9;case 9:return u++,[3,7];case 10:return[2]}}))}))}function _ce(e){var t=$te(e);return t.remoteStore.remoteSyncer.applyRemoteEvent=Yle.bind(null,t),t.remoteStore.remoteSyncer.getRemoteKeysForTarget=cce.bind(null,t),t.remoteStore.remoteSyncer.rejectListen=Zle.bind(null,t),t.vo._r=Gle.bind(null,t.eventManager),t.vo.Mo=Tle.bind(null,t.eventManager),t}function bce(e){var t=$te(e);return t.remoteStore.remoteSyncer.applySuccessfulWrite=$le.bind(null,t),t.remoteStore.remoteSyncer.rejectFailedWrite=Jle.bind(null,t),t}var xce=function(){function e(){this.synchronizeTabs=!1}return e.prototype.initialize=function(e){return hi(this,void 0,void 0,(function(){return pi(this,(function(t){switch(t.label){case 0:return this.R=Uae(e.databaseInfo.databaseId),this.sharedClientState=this.Bo(e),this.persistence=this.qo(e),[4,this.persistence.start()];case 1:return t.sent(),this.gcScheduler=this.Uo(e),this.localStore=this.Ko(e),[2]}}))}))},e.prototype.Uo=function(e){return null},e.prototype.Ko=function(e){return eae(this.persistence,new Jse,e.initialUser,this.R)},e.prototype.qo=function(e){return new Sae(Eae.bs,this.R)},e.prototype.Bo=function(e){return new Rae},e.prototype.terminate=function(){return hi(this,void 0,void 0,(function(){return pi(this,(function(e){switch(e.label){case 0:return this.gcScheduler&&this.gcScheduler.stop(),[4,this.sharedClientState.shutdown()];case 1:return e.sent(),[4,this.persistence.shutdown()];case 2:return e.sent(),[2]}}))}))},e}(),Sce=function(e){function t(t,n,r){var i=this;return(i=e.call(this)||this).Qo=t,i.cacheSizeBytes=n,i.forceOwnership=r,i.synchronizeTabs=!1,i}return ui(t,e),t.prototype.initialize=function(t){return hi(this,void 0,void 0,(function(){var n=this;return pi(this,(function(r){switch(r.label){case 0:return[4,e.prototype.initialize.call(this,t)];case 1:return r.sent(),[4,hae(this.localStore)];case 2:return r.sent(),[4,this.Qo.initialize(this,t)];case 3:return r.sent(),[4,bce(this.Qo.syncEngine)];case 4:return r.sent(),[4,hle(this.Qo.remoteStore)];case 5:return r.sent(),[4,this.persistence.He((function(){return n.gcScheduler&&!n.gcScheduler.started&&n.gcScheduler.start(n.localStore),Promise.resolve()}))];case 6:return r.sent(),[2]}}))}))},t.prototype.Ko=function(e){return eae(this.persistence,new Jse,e.initialUser,this.R)},t.prototype.Uo=function(e){var t=this.persistence.referenceDelegate.garbageCollector;return new Gse(t,e.asyncQueue)},t.prototype.qo=function(e){var t=Yse(e.databaseInfo.databaseId,e.databaseInfo.persistenceKey),n=void 0!==this.cacheSizeBytes?gse.withCacheSize(this.cacheSizeBytes):gse.DEFAULT;return new Hse(this.synchronizeTabs,t,e.clientId,n,e.asyncQueue,zae(),Bae(),this.R,this.sharedClientState,!!this.forceOwnership)},t.prototype.Bo=function(e){return new Rae},t}(xce),wce=function(e){function t(t,n){var r=this;return(r=e.call(this,t,n,!1)||this).Qo=t,r.cacheSizeBytes=n,r.synchronizeTabs=!0,r}return ui(t,e),t.prototype.initialize=function(t){return hi(this,void 0,void 0,(function(){var n,r=this;return pi(this,(function(i){switch(i.label){case 0:return[4,e.prototype.initialize.call(this,t)];case 1:return i.sent(),n=this.Qo.syncEngine,this.sharedClientState instanceof Oae?(this.sharedClientState.syncEngine={ui:hce.bind(null,n),ai:yce.bind(null,n),hi:vce.bind(null,n),fn:mce.bind(null,n),ci:dce.bind(null,n)},[4,this.sharedClientState.start()]):[3,3];case 2:i.sent(),i.label=3;case 3:return[4,this.persistence.He((function(e){return hi(r,void 0,void 0,(function(){return pi(this,(function(t){switch(t.label){case 0:return[4,pce(this.Qo.syncEngine,e)];case 1:return t.sent(),this.gcScheduler&&(e&&!this.gcScheduler.started?this.gcScheduler.start(this.localStore):e||this.gcScheduler.stop()),[2]}}))}))}))];case 4:return i.sent(),[2]}}))}))},t.prototype.Bo=function(e){var t=zae();if(!Oae.yt(t))throw new Bte(zte.UNIMPLEMENTED,"IndexedDB persistence is only available on platforms that support LocalStorage.");var n=Yse(e.databaseInfo.databaseId,e.databaseInfo.persistenceKey);return new Oae(t,e.asyncQueue,n,e.clientId,e.initialUser)},t}(Sce),Ece=function(){function e(){}return e.prototype.initialize=function(e,t){return hi(this,void 0,void 0,(function(){var n=this;return pi(this,(function(r){switch(r.label){case 0:return this.localStore?[3,2]:(this.localStore=e.localStore,this.sharedClientState=e.sharedClientState,this.datastore=this.createDatastore(t),this.remoteStore=this.createRemoteStore(t),this.eventManager=this.createEventManager(t),this.syncEngine=this.createSyncEngine(t,!e.synchronizeTabs),this.sharedClientState.onlineStateHandler=function(e){return Kle(n.syncEngine,e,1)},this.remoteStore.remoteSyncer.handleCredentialChange=lce.bind(null,this.syncEngine),[4,_le(this.remoteStore,this.syncEngine.isPrimaryClient)]);case 1:r.sent(),r.label=2;case 2:return[2]}}))}))},e.prototype.createEventManager=function(e){return new kle},e.prototype.createDatastore=function(e){var t,n=Uae(e.databaseInfo.databaseId),r=(t=e.databaseInfo,new Fae(t));return function(e,t,n){return new Yae(e,t,n)}(e.credentials,r,n)},e.prototype.createRemoteStore=function(e){var t,n,r,i,o,s=this;return t=this.localStore,n=this.datastore,r=e.asyncQueue,i=function(e){return Kle(s.syncEngine,e,0)},o=Nae.yt()?new Nae:new Dae,new Zae(t,n,r,i,o)},e.prototype.createSyncEngine=function(e,t){return function(e,t,n,r,i,o,s){var a=new Ule(e,t,n,r,i,o);return s&&(a.$o=!0),a}(this.localStore,this.remoteStore,this.eventManager,this.sharedClientState,e.initialUser,e.maxConcurrentLimboResolutions,t)},e.prototype.terminate=function(){return function(e){return hi(this,void 0,void 0,(function(){var t;return pi(this,(function(n){switch(n.label){case 0:return t=$te(e),Hte("RemoteStore","RemoteStore shutting down."),t.Or.add(5),[4,Jae(t)];case 1:return n.sent(),t.Lr.shutdown(),t.Br.set("Unknown"),[2]}}))}))}(this.remoteStore)},e}();var Pce=function(){function e(e){this.observer=e,this.muted=!1}return e.prototype.next=function(e){this.observer.next&&this.jo(this.observer.next,e)},e.prototype.error=function(e){this.observer.error?this.jo(this.observer.error,e):console.error("Uncaught Error in snapshot listener:",e)},e.prototype.Wo=function(){this.muted=!0},e.prototype.jo=function(e,t){var n=this;this.muted||setTimeout((function(){n.muted||e(t)}),0)},e}(),Cce=(function(){function e(e,t){var n=this;this.Go=e,this.R=t,this.metadata=new Ooe,this.buffer=new Uint8Array,this.zo=new TextDecoder("utf-8"),this.Ho().then((function(e){e&&e.io()?n.metadata.resolve(e.payload.metadata):n.metadata.reject(new Error("The first element of the bundle is not a metadata, it is\n             "+JSON.stringify(null==e?void 0:e.payload)))}),(function(e){return n.metadata.reject(e)}))}e.prototype.close=function(){return this.Go.cancel()},e.prototype.getMetadata=function(){return hi(this,void 0,void 0,(function(){return pi(this,(function(e){return[2,this.metadata.promise]}))}))},e.prototype.Lo=function(){return hi(this,void 0,void 0,(function(){return pi(this,(function(e){switch(e.label){case 0:return[4,this.getMetadata()];case 1:return[2,(e.sent(),this.Ho())]}}))}))},e.prototype.Ho=function(){return hi(this,void 0,void 0,(function(){var e,t,n,r;return pi(this,(function(i){switch(i.label){case 0:return[4,this.Jo()];case 1:return null===(e=i.sent())?[2,null]:(t=this.zo.decode(e),n=Number(t),isNaN(n)&&this.Yo("length string ("+t+") is not valid number"),[4,this.Xo(n)]);case 2:return r=i.sent(),[2,new Rle(JSON.parse(r),e.length+n)]}}))}))},e.prototype.Zo=function(){return this.buffer.findIndex((function(e){return e==="{".charCodeAt(0)}))},e.prototype.Jo=function(){return hi(this,void 0,void 0,(function(){var e,t;return pi(this,(function(n){switch(n.label){case 0:return this.Zo()<0?[4,this.tc()]:[3,3];case 1:if(n.sent())return[3,3];n.label=2;case 2:return[3,0];case 3:return 0===this.buffer.length?[2,null]:((e=this.Zo())<0&&this.Yo("Reached the end of bundle when a length string is expected."),t=this.buffer.slice(0,e),[2,(this.buffer=this.buffer.slice(e),t)])}}))}))},e.prototype.Xo=function(e){return hi(this,void 0,void 0,(function(){var t;return pi(this,(function(n){switch(n.label){case 0:return this.buffer.length<e?[4,this.tc()]:[3,3];case 1:n.sent()&&this.Yo("Reached the end of bundle when more is expected."),n.label=2;case 2:return[3,0];case 3:return t=this.zo.decode(this.buffer.slice(0,e)),[2,(this.buffer=this.buffer.slice(e),t)]}}))}))},e.prototype.Yo=function(e){throw this.Go.cancel(),new Error("Invalid bundle format: "+e)},e.prototype.tc=function(){return hi(this,void 0,void 0,(function(){var e,t;return pi(this,(function(n){switch(n.label){case 0:return[4,this.Go.read()];case 1:return(e=n.sent()).done||((t=new Uint8Array(this.buffer.length+e.value.length)).set(this.buffer),t.set(e.value,this.buffer.length),this.buffer=t),[2,e.done]}}))}))}}(),function(){function e(e){this.datastore=e,this.readVersions=new Map,this.mutations=[],this.committed=!1,this.lastWriteError=null,this.writtenDocs=new Set}return e.prototype.lookup=function(e){return hi(this,void 0,void 0,(function(){var t,n=this;return pi(this,(function(r){switch(r.label){case 0:if(this.ensureCommitNotCalled(),this.mutations.length>0)throw new Bte(zte.INVALID_ARGUMENT,"Firestore transactions require all reads to be executed before all writes.");return[4,function(e,t){return hi(this,void 0,void 0,(function(){var n,r,i,o,s,a;return pi(this,(function(l){switch(l.label){case 0:return n=$te(e),r=Hie(n.R)+"/documents",i={documents:t.map((function(e){return zie(n.R,e)}))},[4,n.$i("BatchGetDocuments",r,i)];case 1:return o=l.sent(),s=new Map,o.forEach((function(e){var t=function(e,t){return"found"in t?function(e,t){Zte(!!t.found),t.found.name,t.found.updateTime;var n=Bie(e,t.found.name),r=Lie(t.found.updateTime),i=new Vne({mapValue:{fields:t.found.fields}});return zne.newFoundDocument(n,r,i)}(e,t):"missing"in t?function(e,t){Zte(!!t.missing),Zte(!!t.readTime);var n=Bie(e,t.missing),r=Lie(t.readTime);return zne.newNoDocument(n,r)}(e,t):Kte()}(n.R,e);s.set(t.key.toString(),t)})),a=[],[2,(t.forEach((function(e){var t=s.get(e.toString());Zte(!!t),a.push(t)})),a)]}}))}))}(this.datastore,e)];case 1:return[2,((t=r.sent()).forEach((function(e){return n.recordVersion(e)})),t)]}}))}))},e.prototype.set=function(e,t){this.write(t.toMutation(e,this.precondition(e))),this.writtenDocs.add(e.toString())},e.prototype.update=function(e,t){try{this.write(t.toMutation(e,this.preconditionForUpdate(e)))}catch(e){this.lastWriteError=e}this.writtenDocs.add(e.toString())},e.prototype.delete=function(e){this.write(new rie(e,this.precondition(e))),this.writtenDocs.add(e.toString())},e.prototype.commit=function(){return hi(this,void 0,void 0,(function(){var e,t=this;return pi(this,(function(n){switch(n.label){case 0:if(this.ensureCommitNotCalled(),this.lastWriteError)throw this.lastWriteError;return e=this.readVersions,this.mutations.forEach((function(t){e.delete(t.key.toString())})),e.forEach((function(e,n){var r=Ene.fromPath(n);t.mutations.push(new iie(r,t.precondition(r)))})),[4,function(e,t){return hi(this,void 0,void 0,(function(){var n,r,i;return pi(this,(function(o){switch(o.label){case 0:return n=$te(e),r=Hie(n.R)+"/documents",i={writes:t.map((function(e){return Kie(n.R,e)}))},[4,n.Ni("Commit",r,i)];case 1:return o.sent(),[2]}}))}))}(this.datastore,this.mutations)];case 1:return n.sent(),this.committed=!0,[2]}}))}))},e.prototype.recordVersion=function(e){var t;if(e.isFoundDocument())t=e.version;else{if(!e.isNoDocument())throw Kte();t=ine.min()}var n=this.readVersions.get(e.key.toString());if(n){if(!t.isEqual(n))throw new Bte(zte.ABORTED,"Document version changed between two reads.")}else this.readVersions.set(e.key.toString(),t)},e.prototype.precondition=function(e){var t=this.readVersions.get(e.toString());return!this.writtenDocs.has(e.toString())&&t?Bre.updateTime(t):Bre.none()},e.prototype.preconditionForUpdate=function(e){var t=this.readVersions.get(e.toString());if(!this.writtenDocs.has(e.toString())&&t){if(t.isEqual(ine.min()))throw new Bte(zte.INVALID_ARGUMENT,"Can't update a document that doesn't exist.");return Bre.updateTime(t)}return Bre.exists(!0)},e.prototype.write=function(e){this.ensureCommitNotCalled(),this.mutations.push(e)},e.prototype.ensureCommitNotCalled=function(){},e}()),Ace=function(){function e(e,t,n,r){this.asyncQueue=e,this.datastore=t,this.updateFunction=n,this.deferred=r,this.ec=5,this.Zi=new Wae(this.asyncQueue,"transaction_retry")}return e.prototype.run=function(){this.ec-=1,this.nc()},e.prototype.nc=function(){var e=this;this.Zi.ji((function(){return hi(e,void 0,void 0,(function(){var e,t,n=this;return pi(this,(function(r){return e=new Cce(this.datastore),(t=this.sc(e))&&t.then((function(t){n.asyncQueue.enqueueAndForget((function(){return e.commit().then((function(){n.deferred.resolve(t)})).catch((function(e){n.ic(e)}))}))})).catch((function(e){n.ic(e)})),[2]}))}))}))},e.prototype.sc=function(e){try{var t=this.updateFunction(e);return!xne(t)&&t.catch&&t.then?t:(this.deferred.reject(Error("Transaction callback must return a Promise")),null)}catch(e){return this.deferred.reject(e),null}},e.prototype.ic=function(e){var t=this;this.ec>0&&this.rc(e)?(this.ec-=1,this.asyncQueue.enqueueAndForget((function(){return t.nc(),Promise.resolve()}))):this.deferred.reject(e)},e.prototype.rc=function(e){if("FirebaseError"===e.name){var t=e.code;return"aborted"===t||"failed-precondition"===t||!sie(t)}return!1},e}(),kce=function(){function e(e,t,n){var r=this;this.credentials=e,this.asyncQueue=t,this.databaseInfo=n,this.user=Pae.UNAUTHENTICATED,this.clientId=Qte.u(),this.credentialListener=function(){return Promise.resolve()},this.credentials.setChangeListener(t,(function(e){return hi(r,void 0,void 0,(function(){return pi(this,(function(t){switch(t.label){case 0:return Hte("FirestoreClient","Received user=",e.uid),[4,this.credentialListener(e)];case 1:return t.sent(),this.user=e,[2]}}))}))}))}return e.prototype.getConfiguration=function(){return hi(this,void 0,void 0,(function(){return pi(this,(function(e){return[2,{asyncQueue:this.asyncQueue,databaseInfo:this.databaseInfo,clientId:this.clientId,credentials:this.credentials,initialUser:this.user,maxConcurrentLimboResolutions:100}]}))}))},e.prototype.setCredentialChangeListener=function(e){this.credentialListener=e},e.prototype.verifyNotTerminated=function(){if(this.asyncQueue.isShuttingDown)throw new Bte(zte.FAILED_PRECONDITION,"The client has already been terminated.")},e.prototype.terminate=function(){var e=this;this.asyncQueue.enterRestrictedMode();var t=new Ooe;return this.asyncQueue.enqueueAndForgetEvenWhileRestricted((function(){return hi(e,void 0,void 0,(function(){var e,n;return pi(this,(function(r){switch(r.label){case 0:return r.trys.push([0,5,,6]),this.onlineComponents?[4,this.onlineComponents.terminate()]:[3,2];case 1:r.sent(),r.label=2;case 2:return this.offlineComponents?[4,this.offlineComponents.terminate()]:[3,4];case 3:r.sent(),r.label=4;case 4:return this.credentials.removeChangeListener(),t.resolve(),[3,6];case 5:return e=r.sent(),n=wle(e,"Failed to shutdown persistence"),t.reject(n),[3,6];case 6:return[2]}}))}))})),t.promise},e}();function jce(e,t){return hi(this,void 0,void 0,(function(){var n,r,i=this;return pi(this,(function(o){switch(o.label){case 0:return e.asyncQueue.verifyOperationInProgress(),Hte("FirestoreClient","Initializing OfflineComponentProvider"),[4,e.getConfiguration()];case 1:return n=o.sent(),[4,t.initialize(n)];case 2:return o.sent(),r=n.initialUser,e.setCredentialChangeListener((function(e){return hi(i,void 0,void 0,(function(){return pi(this,(function(n){switch(n.label){case 0:return r.isEqual(e)?[3,2]:[4,tae(t.localStore,e)];case 1:n.sent(),r=e,n.label=2;case 2:return[2]}}))}))})),t.persistence.setDatabaseDeletedListener((function(){return e.terminate()})),e.offlineComponents=t,[2]}}))}))}function Ice(e,t){return hi(this,void 0,void 0,(function(){var n,r;return pi(this,(function(i){switch(i.label){case 0:return e.asyncQueue.verifyOperationInProgress(),[4,Gce(e)];case 1:return n=i.sent(),Hte("FirestoreClient","Initializing OnlineComponentProvider"),[4,e.getConfiguration()];case 2:return r=i.sent(),[4,t.initialize(n,r)];case 3:return i.sent(),e.setCredentialChangeListener((function(e){return function(e,t){return hi(this,void 0,void 0,(function(){var n,r;return pi(this,(function(i){switch(i.label){case 0:return(n=$te(e)).asyncQueue.verifyOperationInProgress(),Hte("RemoteStore","RemoteStore received new credentials"),r=ole(n),n.Or.add(3),[4,Jae(n)];case 1:return i.sent(),r&&n.Br.set("Unknown"),[4,n.remoteSyncer.handleCredentialChange(t)];case 2:return i.sent(),n.Or.delete(3),[4,$ae(n)];case 3:return i.sent(),[2]}}))}))}(t.remoteStore,e)})),e.onlineComponents=t,[2]}}))}))}function Gce(e){return hi(this,void 0,void 0,(function(){return pi(this,(function(t){switch(t.label){case 0:return e.offlineComponents?[3,2]:(Hte("FirestoreClient","Using default OfflineComponentProvider"),[4,jce(e,new xce)]);case 1:t.sent(),t.label=2;case 2:return[2,e.offlineComponents]}}))}))}function Tce(e){return hi(this,void 0,void 0,(function(){return pi(this,(function(t){switch(t.label){case 0:return e.onlineComponents?[3,2]:(Hte("FirestoreClient","Using default OnlineComponentProvider"),[4,Ice(e,new Ece)]);case 1:t.sent(),t.label=2;case 2:return[2,e.onlineComponents]}}))}))}function Mce(e){return Gce(e).then((function(e){return e.persistence}))}function Oce(e){return Gce(e).then((function(e){return e.localStore}))}function Rce(e){return Tce(e).then((function(e){return e.remoteStore}))}function Dce(e){return Tce(e).then((function(e){return e.syncEngine}))}function Nce(e){return hi(this,void 0,void 0,(function(){var t,n;return pi(this,(function(r){switch(r.label){case 0:return[4,Tce(e)];case 1:return t=r.sent(),[2,((n=t.eventManager).onListen=Wle.bind(null,t.syncEngine),n.onUnlisten=qle.bind(null,t.syncEngine),n)]}}))}))}function Lce(e,t,n){var r=this;void 0===n&&(n={});var i=new Ooe;return e.asyncQueue.enqueueAndForget((function(){return hi(r,void 0,void 0,(function(){var r;return pi(this,(function(o){switch(o.label){case 0:return r=function(e,t,n,r,i){var o=new Pce({next:function(o){t.enqueueAndForget((function(){return Ile(e,s)}));var a=o.docs.has(n);!a&&o.fromCache?i.reject(new Bte(zte.UNAVAILABLE,"Failed to get document because the client is offline.")):a&&o.fromCache&&r&&"server"===r.source?i.reject(new Bte(zte.UNAVAILABLE,'Failed to get document from server. (However, this document does exist in the local cache. Run again without setting source to "server" to retrieve the cached document.)')):i.resolve(o)},error:function(e){return i.reject(e)}}),s=new Ole(ure(n.path),o,{includeMetadataChanges:!0,so:!0});return jle(e,s)},[4,Nce(e)];case 1:return[2,r.apply(void 0,[o.sent(),e.asyncQueue,t,n,i])]}}))}))})),i.promise}function Vce(e,t,n){var r=this;void 0===n&&(n={});var i=new Ooe;return e.asyncQueue.enqueueAndForget((function(){return hi(r,void 0,void 0,(function(){var r;return pi(this,(function(o){switch(o.label){case 0:return r=function(e,t,n,r,i){var o=new Pce({next:function(n){t.enqueueAndForget((function(){return Ile(e,s)})),n.fromCache&&"server"===r.source?i.reject(new Bte(zte.UNAVAILABLE,'Failed to get documents from server. (However, these documents may exist in the local cache. Run again without setting source to "server" to retrieve the cached documents.)')):i.resolve(n)},error:function(e){return i.reject(e)}}),s=new Ole(n,o,{includeMetadataChanges:!0,so:!0});return jle(e,s)},[4,Nce(e)];case 1:return[2,r.apply(void 0,[o.sent(),e.asyncQueue,t,n,i])]}}))}))})),i.promise}var Fce=function(e,t,n,r,i,o,s,a){this.databaseId=e,this.appId=t,this.persistenceKey=n,this.host=r,this.ssl=i,this.forceLongPolling=o,this.autoDetectLongPolling=s,this.useFetchStreams=a},zce=function(){function e(e,t){this.projectId=e,this.database=t||"(default)"}return Object.defineProperty(e.prototype,"isDefaultDatabase",{get:function(){return"(default)"===this.database},enumerable:!1,configurable:!0}),e.prototype.isEqual=function(t){return t instanceof e&&t.projectId===this.projectId&&t.database===this.database},e}(),Bce=new Map,Uce=function(e,t){this.user=t,this.type="OAuth",this.authHeaders={},this.authHeaders.Authorization="Bearer "+e},Wce=function(){function e(){this.changeListener=null}return e.prototype.getToken=function(){return Promise.resolve(null)},e.prototype.invalidateToken=function(){},e.prototype.setChangeListener=function(e,t){this.changeListener=t,e.enqueueRetryable((function(){return t(Pae.UNAUTHENTICATED)}))},e.prototype.removeChangeListener=function(){this.changeListener=null},e}(),Hce=function(){function e(e){this.token=e,this.changeListener=null}return e.prototype.getToken=function(){return Promise.resolve(this.token)},e.prototype.invalidateToken=function(){},e.prototype.setChangeListener=function(e,t){var n=this;this.changeListener=t,e.enqueueRetryable((function(){return t(n.token.user)}))},e.prototype.removeChangeListener=function(){this.changeListener=null},e}(),qce=function(){function e(e){var t=this;this.currentUser=Pae.UNAUTHENTICATED,this.oc=new Ooe,this.cc=0,this.forceRefresh=!1,this.auth=null,this.asyncQueue=null,this.uc=function(){t.cc++,t.currentUser=t.ac(),t.oc.resolve(),t.changeListener&&t.asyncQueue.enqueueRetryable((function(){return t.changeListener(t.currentUser)}))};var n=function(e){Hte("FirebaseCredentialsProvider","Auth detected"),t.auth=e,t.auth.addAuthTokenListener(t.uc)};e.onInit((function(e){return n(e)})),setTimeout((function(){if(!t.auth){var r=e.getImmediate({optional:!0});r?n(r):(Hte("FirebaseCredentialsProvider","Auth not yet detected"),t.oc.resolve())}}),0)}return e.prototype.getToken=function(){var e=this,t=this.cc,n=this.forceRefresh;return this.forceRefresh=!1,this.auth?this.auth.getToken(n).then((function(n){return e.cc!==t?(Hte("FirebaseCredentialsProvider","getToken aborted due to token change."),e.getToken()):n?(Zte("string"==typeof n.accessToken),new Uce(n.accessToken,e.currentUser)):null})):Promise.resolve(null)},e.prototype.invalidateToken=function(){this.forceRefresh=!0},e.prototype.setChangeListener=function(e,t){var n=this;this.asyncQueue=e,this.asyncQueue.enqueueRetryable((function(){return hi(n,void 0,void 0,(function(){return pi(this,(function(e){switch(e.label){case 0:return[4,this.oc.promise];case 1:return e.sent(),[4,t(this.currentUser)];case 2:return e.sent(),this.changeListener=t,[2]}}))}))}))},e.prototype.removeChangeListener=function(){this.auth&&this.auth.removeAuthTokenListener(this.uc),this.changeListener=function(){return Promise.resolve()}},e.prototype.ac=function(){var e=this.auth&&this.auth.getUid();return Zte(null===e||"string"==typeof e),new Pae(e)},e}(),Xce=function(){function e(e,t,n){this.hc=e,this.lc=t,this.fc=n,this.type="FirstParty",this.user=Pae.FIRST_PARTY}return Object.defineProperty(e.prototype,"authHeaders",{get:function(){var e={"X-Goog-AuthUser":this.lc},t=this.hc.auth.getAuthHeaderValueForFirstParty([]);return t&&(e.Authorization=t),this.fc&&(e["X-Goog-Iam-Authorization-Token"]=this.fc),e},enumerable:!1,configurable:!0}),e}(),Yce=function(){function e(e,t,n){this.hc=e,this.lc=t,this.fc=n}return e.prototype.getToken=function(){return Promise.resolve(new Xce(this.hc,this.lc,this.fc))},e.prototype.setChangeListener=function(e,t){e.enqueueRetryable((function(){return t(Pae.FIRST_PARTY)}))},e.prototype.removeChangeListener=function(){},e.prototype.invalidateToken=function(){},e}();function Kce(e,t,n){if(!n)throw new Bte(zte.INVALID_ARGUMENT,"Function "+e+"() cannot be called with an empty "+t+".")}function Zce(e,t){if(void 0===t)return{merge:!1};if(void 0!==t.mergeFields&&void 0!==t.merge)throw new Bte(zte.INVALID_ARGUMENT,"Invalid options passed to function "+e+'(): You cannot specify both "merge" and "mergeFields".');return t}function $ce(e,t,n,r){if(!0===t&&!0===r)throw new Bte(zte.INVALID_ARGUMENT,e+" and "+n+" cannot be used together.")}function Jce(e){if(!Ene.isDocumentKey(e))throw new Bte(zte.INVALID_ARGUMENT,"Invalid document reference. Document references must have an even number of segments, but "+e+" has "+e.length+".")}function Qce(e){if(Ene.isDocumentKey(e))throw new Bte(zte.INVALID_ARGUMENT,"Invalid collection reference. Collection references must have an odd number of segments, but "+e+" has "+e.length+".")}function eue(e){if(void 0===e)return"undefined";if(null===e)return"null";if("string"==typeof e)return e.length>20&&(e=e.substring(0,20)+"..."),JSON.stringify(e);if("number"==typeof e||"boolean"==typeof e)return""+e;if("object"==typeof e){if(e instanceof Array)return"an array";var t=function(e){if(e.constructor){var t=/function\s+([^\s(]+)\s*\(/.exec(e.constructor.toString());if(t&&t.length>1)return t[1]}return null}(e);return t?"a custom "+t+" object":"an object"}return"function"==typeof e?"a function":Kte()}function tue(e,t){if("_delegate"in e&&(e=e._delegate),!(e instanceof t)){if(t.name===e.constructor.name)throw new Bte(zte.INVALID_ARGUMENT,"Type does not match the expected instance. Did you pass a reference from a different Firestore SDK?");var n=eue(e);throw new Bte(zte.INVALID_ARGUMENT,"Expected type '"+t.name+"', but it was: "+n)}return e}function nue(e,t){if(t<=0)throw new Bte(zte.INVALID_ARGUMENT,"Function "+e+"() requires a positive number, but it was: "+t+".")}var rue=function(){function e(e){var t;if(void 0===e.host){if(void 0!==e.ssl)throw new Bte(zte.INVALID_ARGUMENT,"Can't provide ssl option if host option is not set");this.host="firestore.googleapis.com",this.ssl=!0}else this.host=e.host,this.ssl=null===(t=e.ssl)||void 0===t||t;if(this.credentials=e.credentials,this.ignoreUndefinedProperties=!!e.ignoreUndefinedProperties,void 0===e.cacheSizeBytes)this.cacheSizeBytes=41943040;else{if(-1!==e.cacheSizeBytes&&e.cacheSizeBytes<1048576)throw new Bte(zte.INVALID_ARGUMENT,"cacheSizeBytes must be at least 1048576");this.cacheSizeBytes=e.cacheSizeBytes}this.experimentalForceLongPolling=!!e.experimentalForceLongPolling,this.experimentalAutoDetectLongPolling=!!e.experimentalAutoDetectLongPolling,this.useFetchStreams=!!e.useFetchStreams,$ce("experimentalForceLongPolling",e.experimentalForceLongPolling,"experimentalAutoDetectLongPolling",e.experimentalAutoDetectLongPolling)}return e.prototype.isEqual=function(e){return this.host===e.host&&this.ssl===e.ssl&&this.credentials===e.credentials&&this.cacheSizeBytes===e.cacheSizeBytes&&this.experimentalForceLongPolling===e.experimentalForceLongPolling&&this.experimentalAutoDetectLongPolling===e.experimentalAutoDetectLongPolling&&this.ignoreUndefinedProperties===e.ignoreUndefinedProperties&&this.useFetchStreams===e.useFetchStreams},e}(),iue=function(){function e(e,t){this.type="firestore-lite",this._persistenceKey="(lite)",this._settings=new rue({}),this._settingsFrozen=!1,e instanceof zce?(this._databaseId=e,this._credentials=new Wce):(this._app=e,this._databaseId=function(e){if(!Object.prototype.hasOwnProperty.apply(e.options,["projectId"]))throw new Bte(zte.INVALID_ARGUMENT,'"projectId" not provided in firebase.initializeApp.');return new zce(e.options.projectId)}(e),this._credentials=new qce(t))}return Object.defineProperty(e.prototype,"app",{get:function(){if(!this._app)throw new Bte(zte.FAILED_PRECONDITION,"Firestore was not initialized using the Firebase SDK. 'app' is not available");return this._app},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"_initialized",{get:function(){return this._settingsFrozen},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"_terminated",{get:function(){return void 0!==this._terminateTask},enumerable:!1,configurable:!0}),e.prototype._setSettings=function(e){if(this._settingsFrozen)throw new Bte(zte.FAILED_PRECONDITION,"Firestore has already been started and its settings can no longer be changed. You can only modify settings before calling any other methods on a Firestore object.");this._settings=new rue(e),void 0!==e.credentials&&(this._credentials=function(e){if(!e)return new Wce;switch(e.type){case"gapi":var t=e.client;return Zte(!("object"!=typeof t||null===t||!t.auth||!t.auth.getAuthHeaderValueForFirstParty)),new Yce(t,e.sessionIndex||"0",e.iamToken||null);case"provider":return e.client;default:throw new Bte(zte.INVALID_ARGUMENT,"makeCredentialsProvider failed due to invalid credential type")}}(e.credentials))},e.prototype._getSettings=function(){return this._settings},e.prototype._freezeSettings=function(){return this._settingsFrozen=!0,this._settings},e.prototype._delete=function(){return this._terminateTask||(this._terminateTask=this._terminate()),this._terminateTask},e.prototype.toJSON=function(){return{app:this._app,databaseId:this._databaseId,settings:this._settings}},e.prototype._terminate=function(){return this,(e=Bce.get(this))&&(Hte("ComponentProvider","Removing Datastore"),Bce.delete(this),e.terminate()),Promise.resolve();var e},e}(),oue=function(){function e(e,t,n){this.converter=t,this._key=n,this.type="document",this.firestore=e}return Object.defineProperty(e.prototype,"_path",{get:function(){return this._key.path},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"id",{get:function(){return this._key.path.lastSegment()},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"path",{get:function(){return this._key.path.canonicalString()},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"parent",{get:function(){return new aue(this.firestore,this.converter,this._key.path.popLast())},enumerable:!1,configurable:!0}),e.prototype.withConverter=function(t){return new e(this.firestore,t,this._key)},e}(),sue=function(){function e(e,t,n){this.converter=t,this._query=n,this.type="query",this.firestore=e}return e.prototype.withConverter=function(t){return new e(this.firestore,t,this._query)},e}(),aue=function(e){function t(t,n,r){var i=this;return(i=e.call(this,t,n,ure(r))||this)._path=r,i.type="collection",i}return ui(t,e),Object.defineProperty(t.prototype,"id",{get:function(){return this._query.path.lastSegment()},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"path",{get:function(){return this._query.path.canonicalString()},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"parent",{get:function(){var e=this._path.popLast();return e.isEmpty()?null:new oue(this.firestore,null,new Ene(e))},enumerable:!1,configurable:!0}),t.prototype.withConverter=function(e){return new t(this.firestore,e,this._path)},t}(sue);function lue(e,t){for(var n,r=[],i=2;i<arguments.length;i++)r[i-2]=arguments[i];if(e=Ti(e),Kce("collection","path",t),e instanceof iue)return Qce(n=cne.fromString.apply(cne,mi([t],r))),new aue(e,null,n);if(!(e instanceof oue||e instanceof aue))throw new Bte(zte.INVALID_ARGUMENT,"Expected first argument to collection() to be a CollectionReference, a DocumentReference or FirebaseFirestore");return Qce(n=cne.fromString.apply(cne,mi([e.path],r)).child(cne.fromString(t))),new aue(e.firestore,null,n)}function cue(e,t){for(var n,r=[],i=2;i<arguments.length;i++)r[i-2]=arguments[i];if(e=Ti(e),1===arguments.length&&(t=Qte.u()),Kce("doc","path",t),e instanceof iue)return Jce(n=cne.fromString.apply(cne,mi([t],r))),new oue(e,null,new Ene(n));if(!(e instanceof oue||e instanceof aue))throw new Bte(zte.INVALID_ARGUMENT,"Expected first argument to collection() to be a CollectionReference, a DocumentReference or FirebaseFirestore");return Jce(n=e._path.child(cne.fromString.apply(cne,mi([t],r)))),new oue(e.firestore,e instanceof aue?e.converter:null,new Ene(n))}function uue(e,t){return e=Ti(e),t=Ti(t),(e instanceof oue||e instanceof aue)&&(t instanceof oue||t instanceof aue)&&e.firestore===t.firestore&&e.path===t.path&&e.converter===t.converter}function due(e,t){return e=Ti(e),t=Ti(t),e instanceof sue&&t instanceof sue&&e.firestore===t.firestore&&_re(e._query,t._query)&&e.converter===t.converter}var hue=function(){function e(){var e=this;this.dc=Promise.resolve(),this.wc=[],this._c=!1,this.mc=[],this.yc=null,this.gc=!1,this.Ec=!1,this.Tc=[],this.Zi=new Wae(this,"async_queue_retry"),this.Ic=function(){var t=Bae();t&&Hte("AsyncQueue","Visibility state changed to "+t.visibilityState),e.Zi.Gi()};var t=Bae();t&&"function"==typeof t.addEventListener&&t.addEventListener("visibilitychange",this.Ic)}return Object.defineProperty(e.prototype,"isShuttingDown",{get:function(){return this._c},enumerable:!1,configurable:!0}),e.prototype.enqueueAndForget=function(e){this.enqueue(e)},e.prototype.enqueueAndForgetEvenWhileRestricted=function(e){this.Ac(),this.Rc(e)},e.prototype.enterRestrictedMode=function(e){if(!this._c){this._c=!0,this.Ec=e||!1;var t=Bae();t&&"function"==typeof t.removeEventListener&&t.removeEventListener("visibilitychange",this.Ic)}},e.prototype.enqueue=function(e){var t=this;if(this.Ac(),this._c)return new Promise((function(){}));var n=new Ooe;return this.Rc((function(){return t._c&&t.Ec?Promise.resolve():(e().then(n.resolve,n.reject),n.promise)})).then((function(){return n.promise}))},e.prototype.enqueueRetryable=function(e){var t=this;this.enqueueAndForget((function(){return t.wc.push(e),t.bc()}))},e.prototype.bc=function(){return hi(this,void 0,void 0,(function(){var e,t=this;return pi(this,(function(n){switch(n.label){case 0:if(0===this.wc.length)return[3,5];n.label=1;case 1:return n.trys.push([1,3,,4]),[4,this.wc[0]()];case 2:return n.sent(),this.wc.shift(),this.Zi.reset(),[3,4];case 3:if(!Foe(e=n.sent()))throw e;return Hte("AsyncQueue","Operation failed with retryable error: "+e),[3,4];case 4:this.wc.length>0&&this.Zi.ji((function(){return t.bc()})),n.label=5;case 5:return[2]}}))}))},e.prototype.Rc=function(e){var t=this,n=this.dc.then((function(){return t.gc=!0,e().catch((function(e){throw t.yc=e,t.gc=!1,qte("INTERNAL UNHANDLED ERROR: ",function(e){var t=e.message||"";return e.stack&&(t=e.stack.includes(e.message)?e.stack:e.message+"\n"+e.stack),t}(e)),e})).then((function(e){return t.gc=!1,e}))}));return this.dc=n,n},e.prototype.enqueueAfterDelay=function(e,t,n){var r=this;this.Ac(),this.Tc.indexOf(e)>-1&&(t=0);var i=Sle.createAndSchedule(this,e,t,n,(function(e){return r.vc(e)}));return this.mc.push(i),i},e.prototype.Ac=function(){this.yc&&Kte()},e.prototype.verifyOperationInProgress=function(){},e.prototype.Pc=function(){return hi(this,void 0,void 0,(function(){var e;return pi(this,(function(t){switch(t.label){case 0:return[4,e=this.dc];case 1:t.sent(),t.label=2;case 2:if(e!==this.dc)return[3,0];t.label=3;case 3:return[2]}}))}))},e.prototype.Vc=function(e){for(var t=0,n=this.mc;t<n.length;t++)if(n[t].timerId===e)return!0;return!1},e.prototype.Sc=function(e){var t=this;return this.Pc().then((function(){t.mc.sort((function(e,t){return e.targetTimeMs-t.targetTimeMs}));for(var n=0,r=t.mc;n<r.length;n++){var i=r[n];if(i.skipDelay(),"all"!==e&&i.timerId===e)break}return t.Pc()}))},e.prototype.Dc=function(e){this.Tc.push(e)},e.prototype.vc=function(e){var t=this.mc.indexOf(e);this.mc.splice(t,1)},e}();function pue(e){return function(e,t){if("object"!=typeof e||null===e)return!1;for(var n=e,r=0,i=["next","error","complete"];r<i.length;r++){var o=i[r];if(o in n&&"function"==typeof n[o])return!0}return!1}(e)}!function(){function e(){this._progressObserver={},this._taskCompletionResolver=new Ooe,this._lastProgress={taskState:"Running",totalBytes:0,totalDocuments:0,bytesLoaded:0,documentsLoaded:0}}e.prototype.onProgress=function(e,t,n){this._progressObserver={next:e,error:t,complete:n}},e.prototype.catch=function(e){return this._taskCompletionResolver.promise.catch(e)},e.prototype.then=function(e,t){return this._taskCompletionResolver.promise.then(e,t)},e.prototype._completeWith=function(e){this._updateProgress(e),this._progressObserver.complete&&this._progressObserver.complete(),this._taskCompletionResolver.resolve(e)},e.prototype._failWith=function(e){this._lastProgress.taskState="Error",this._progressObserver.next&&this._progressObserver.next(this._lastProgress),this._progressObserver.error&&this._progressObserver.error(e),this._taskCompletionResolver.reject(e)},e.prototype._updateProgress=function(e){this._lastProgress=e,this._progressObserver.next&&this._progressObserver.next(e)}}();var fue=function(e){function t(t,n){var r=this;return(r=e.call(this,t,n)||this).type="firestore",r._queue=new hue,r._persistenceKey="name"in t?t.name:"[DEFAULT]",r}return ui(t,e),t.prototype._terminate=function(){return this._firestoreClient||mue(this),this._firestoreClient.terminate()},t}(iue);function gue(e){return e._firestoreClient||mue(e),e._firestoreClient.verifyNotTerminated(),e._firestoreClient}function mue(e){var t,n=e._freezeSettings(),r=function(e,t,n,r){return new Fce(e,t,n,r.host,r.ssl,r.experimentalForceLongPolling,r.experimentalAutoDetectLongPolling,r.useFetchStreams)}(e._databaseId,(null===(t=e._app)||void 0===t?void 0:t.options.appId)||"",e._persistenceKey,n);e._firestoreClient=new kce(e._credentials,e._queue,r)}function yue(e,t,n){var r=this,i=new Ooe;return e.asyncQueue.enqueue((function(){return hi(r,void 0,void 0,(function(){var r;return pi(this,(function(o){switch(o.label){case 0:return o.trys.push([0,3,,4]),[4,jce(e,n)];case 1:return o.sent(),[4,Ice(e,t)];case 2:return o.sent(),i.resolve(),[3,4];case 3:if(!function(e){return"FirebaseError"===e.name?e.code===zte.FAILED_PRECONDITION||e.code===zte.UNIMPLEMENTED:!("undefined"!=typeof DOMException&&e instanceof DOMException)||22===e.code||20===e.code||11===e.code}(r=o.sent()))throw r;return console.warn("Error enabling offline persistence. Falling back to persistence disabled: "+r),i.reject(r),[3,4];case 4:return[2]}}))}))})).then((function(){return i.promise}))}function vue(e){if(e._initialized||e._terminated)throw new Bte(zte.FAILED_PRECONDITION,"Firestore has already been started and persistence can no longer be enabled. You can only enable persistence before calling any other methods on a Firestore object.")}var _ue=function(){function e(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];for(var n=0;n<e.length;++n)if(0===e[n].length)throw new Bte(zte.INVALID_ARGUMENT,"Invalid field name at argument $(i + 1). Field names must not be empty.");this._internalPath=new dne(e)}return e.prototype.isEqual=function(e){return this._internalPath.isEqual(e._internalPath)},e}(),bue=function(){function e(e){this._byteString=e}return e.fromBase64String=function(t){try{return new e(pne.fromBase64String(t))}catch(t){throw new Bte(zte.INVALID_ARGUMENT,"Failed to construct data from Base64 string: "+t)}},e.fromUint8Array=function(t){return new e(pne.fromUint8Array(t))},e.prototype.toBase64=function(){return this._byteString.toBase64()},e.prototype.toUint8Array=function(){return this._byteString.toUint8Array()},e.prototype.toString=function(){return"Bytes(base64: "+this.toBase64()+")"},e.prototype.isEqual=function(e){return this._byteString.isEqual(e._byteString)},e}(),xue=function(e){this._methodName=e},Sue=function(){function e(e,t){if(!isFinite(e)||e<-90||e>90)throw new Bte(zte.INVALID_ARGUMENT,"Latitude must be a number between -90 and 90, but was: "+e);if(!isFinite(t)||t<-180||t>180)throw new Bte(zte.INVALID_ARGUMENT,"Longitude must be a number between -180 and 180, but was: "+t);this._lat=e,this._long=t}return Object.defineProperty(e.prototype,"latitude",{get:function(){return this._lat},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"longitude",{get:function(){return this._long},enumerable:!1,configurable:!0}),e.prototype.isEqual=function(e){return this._lat===e._lat&&this._long===e._long},e.prototype.toJSON=function(){return{latitude:this._lat,longitude:this._long}},e.prototype._compareTo=function(e){return ene(this._lat,e._lat)||ene(this._long,e._long)},e}(),wue=/^__.*__$/,Eue=function(){function e(e,t,n){this.data=e,this.fieldMask=t,this.fieldTransforms=n}return e.prototype.toMutation=function(e,t){return null!==this.fieldMask?new $re(e,this.data,this.fieldMask,t,this.fieldTransforms):new Zre(e,this.data,t,this.fieldTransforms)},e}(),Pue=function(){function e(e,t,n){this.data=e,this.fieldMask=t,this.fieldTransforms=n}return e.prototype.toMutation=function(e,t){return new $re(e,this.data,this.fieldMask,t,this.fieldTransforms)},e}();function Cue(e){switch(e){case 0:case 2:case 1:return!0;case 3:case 4:return!1;default:throw Kte()}}var Aue=function(){function e(e,t,n,r,i,o){this.settings=e,this.databaseId=t,this.R=n,this.ignoreUndefinedProperties=r,void 0===i&&this.Cc(),this.fieldTransforms=i||[],this.fieldMask=o||[]}return Object.defineProperty(e.prototype,"path",{get:function(){return this.settings.path},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"Nc",{get:function(){return this.settings.Nc},enumerable:!1,configurable:!0}),e.prototype.xc=function(t){return new e(Object.assign(Object.assign({},this.settings),t),this.databaseId,this.R,this.ignoreUndefinedProperties,this.fieldTransforms,this.fieldMask)},e.prototype.kc=function(e){var t,n=null===(t=this.path)||void 0===t?void 0:t.child(e),r=this.xc({path:n,Fc:!1});return r.$c(e),r},e.prototype.Oc=function(e){var t,n=null===(t=this.path)||void 0===t?void 0:t.child(e),r=this.xc({path:n,Fc:!1});return r.Cc(),r},e.prototype.Mc=function(e){return this.xc({path:void 0,Fc:!0})},e.prototype.Lc=function(e){return Xue(e,this.settings.methodName,this.settings.Bc||!1,this.path,this.settings.qc)},e.prototype.contains=function(e){return void 0!==this.fieldMask.find((function(t){return e.isPrefixOf(t)}))||void 0!==this.fieldTransforms.find((function(t){return e.isPrefixOf(t.field)}))},e.prototype.Cc=function(){if(this.path)for(var e=0;e<this.path.length;e++)this.$c(this.path.get(e))},e.prototype.$c=function(e){if(0===e.length)throw this.Lc("Document fields must not be empty");if(Cue(this.Nc)&&wue.test(e))throw this.Lc('Document fields cannot begin and end with "__"')},e}(),kue=function(){function e(e,t,n){this.databaseId=e,this.ignoreUndefinedProperties=t,this.R=n||Uae(e)}return e.prototype.Uc=function(e,t,n,r){return void 0===r&&(r=!1),new Aue({Nc:e,methodName:t,qc:n,path:dne.emptyPath(),Fc:!1,Bc:r},this.databaseId,this.R,this.ignoreUndefinedProperties)},e}();function jue(e){var t=e._freezeSettings(),n=Uae(e._databaseId);return new kue(e._databaseId,!!t.ignoreUndefinedProperties,n)}function Iue(e,t,n,r,i,o){void 0===o&&(o={});var s=e.Uc(o.merge||o.mergeFields?2:0,t,n,i);Uue("Data must be an object, but it was:",s,r);var a,l,c=zue(r,s);if(o.merge)a=new hne(s.fieldMask),l=s.fieldTransforms;else if(o.mergeFields){for(var u=[],d=0,h=o.mergeFields;d<h.length;d++){var p=Wue(t,h[d],n);if(!s.contains(p))throw new Bte(zte.INVALID_ARGUMENT,"Field '"+p+"' is specified in your field mask but missing from your input data.");Yue(u,p)||u.push(p)}a=new hne(u),l=s.fieldTransforms.filter((function(e){return a.covers(e.field)}))}else a=null,l=s.fieldTransforms;return new Eue(new Vne(c),a,l)}var Gue=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return ui(t,e),t.prototype._toFieldTransform=function(e){if(2!==e.Nc)throw 1===e.Nc?e.Lc(this._methodName+"() can only appear at the top level of your update data"):e.Lc(this._methodName+"() cannot be used with set() unless you pass {merge:true}");return e.fieldMask.push(e.path),null},t.prototype.isEqual=function(e){return e instanceof t},t}(xue);function Tue(e,t,n){return new Aue({Nc:3,qc:t.settings.qc,methodName:e._methodName,Fc:n},t.databaseId,t.R,t.ignoreUndefinedProperties)}var Mue=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return ui(t,e),t.prototype._toFieldTransform=function(e){return new Fre(e.path,new Tre)},t.prototype.isEqual=function(e){return e instanceof t},t}(xue),Oue=function(e){function t(t,n){var r=this;return(r=e.call(this,t)||this).Kc=n,r}return ui(t,e),t.prototype._toFieldTransform=function(e){var t=Tue(this,e,!0),n=this.Kc.map((function(e){return Fue(e,t)})),r=new Mre(n);return new Fre(e.path,r)},t.prototype.isEqual=function(e){return this===e},t}(xue),Rue=function(e){function t(t,n){var r=this;return(r=e.call(this,t)||this).Kc=n,r}return ui(t,e),t.prototype._toFieldTransform=function(e){var t=Tue(this,e,!0),n=this.Kc.map((function(e){return Fue(e,t)})),r=new Rre(n);return new Fre(e.path,r)},t.prototype.isEqual=function(e){return this===e},t}(xue),Due=function(e){function t(t,n){var r=this;return(r=e.call(this,t)||this).Qc=n,r}return ui(t,e),t.prototype._toFieldTransform=function(e){var t=new Nre(e.R,Are(e.R,this.Qc));return new Fre(e.path,t)},t.prototype.isEqual=function(e){return this===e},t}(xue);function Nue(e,t,n,r){var i=e.Uc(1,t,n);Uue("Data must be an object, but it was:",i,r);var o=[],s=Vne.empty();sne(r,(function(e,r){var a=que(t,e,n);r=Ti(r);var l=i.Oc(a);if(r instanceof Gue)o.push(a);else{var c=Fue(r,l);null!=c&&(o.push(a),s.set(a,c))}}));var a=new hne(o);return new Pue(s,a,i.fieldTransforms)}function Lue(e,t,n,r,i,o){var s=e.Uc(1,t,n),a=[Wue(t,r,n)],l=[i];if(o.length%2!=0)throw new Bte(zte.INVALID_ARGUMENT,"Function "+t+"() needs to be called with an even number of arguments that alternate between field names and values.");for(var c=0;c<o.length;c+=2)a.push(Wue(t,o[c])),l.push(o[c+1]);for(var u=[],d=Vne.empty(),h=a.length-1;h>=0;--h)if(!Yue(u,a[h])){var p=a[h],f=l[h];f=Ti(f);var g=s.Oc(p);if(f instanceof Gue)u.push(p);else{var m=Fue(f,g);null!=m&&(u.push(p),d.set(p,m))}}var y=new hne(u);return new Pue(d,y,s.fieldTransforms)}function Vue(e,t,n,r){return void 0===r&&(r=!1),Fue(n,e.Uc(r?4:3,t))}function Fue(e,t){if(Bue(e=Ti(e)))return Uue("Unsupported field value:",t,e),zue(e,t);if(e instanceof xue)return function(e,t){if(!Cue(t.Nc))throw t.Lc(e._methodName+"() can only be used with update() and set()");if(!t.path)throw t.Lc(e._methodName+"() is not currently supported inside arrays");var n=e._toFieldTransform(t);n&&t.fieldTransforms.push(n)}(e,t),null;if(void 0===e&&t.ignoreUndefinedProperties)return null;if(t.path&&t.fieldMask.push(t.path),e instanceof Array){if(t.settings.Fc&&4!==t.Nc)throw t.Lc("Nested arrays are not supported");return function(e,t){for(var n=[],r=0,i=0,o=e;i<o.length;i++){var s=Fue(o[i],t.Mc(r));null==s&&(s={nullValue:"NULL_VALUE"}),n.push(s),r++}return{arrayValue:{values:n}}}(e,t)}return function(e,t){if(null===(e=Ti(e)))return{nullValue:"NULL_VALUE"};if("number"==typeof e)return Are(t.R,e);if("boolean"==typeof e)return{booleanValue:e};if("string"==typeof e)return{stringValue:e};if(e instanceof Date){var n=rne.fromDate(e);return{timestampValue:Rie(t.R,n)}}if(e instanceof rne)return n=new rne(e.seconds,1e3*Math.floor(e.nanoseconds/1e3)),{timestampValue:Rie(t.R,n)};if(e instanceof Sue)return{geoPointValue:{latitude:e.latitude,longitude:e.longitude}};if(e instanceof bue)return{bytesValue:Die(t.R,e._byteString)};if(e instanceof oue){n=t.databaseId;var r=e.firestore._databaseId;if(!r.isEqual(n))throw t.Lc("Document reference is for database "+r.projectId+"/"+r.database+" but should be for database "+n.projectId+"/"+n.database);return{referenceValue:Vie(e.firestore._databaseId||t.databaseId,e._key.path)}}throw t.Lc("Unsupported field value: "+eue(e))}(e,t)}function zue(e,t){var n={};return ane(e)?t.path&&t.path.length>0&&t.fieldMask.push(t.path):sne(e,(function(e,r){var i=Fue(r,t.kc(e));null!=i&&(n[e]=i)})),{mapValue:{fields:n}}}function Bue(e){return!("object"!=typeof e||null===e||e instanceof Array||e instanceof Date||e instanceof rne||e instanceof Sue||e instanceof bue||e instanceof oue||e instanceof xue)}function Uue(e,t,n){if(!Bue(n)||!function(e){return"object"==typeof e&&null!==e&&(Object.getPrototypeOf(e)===Object.prototype||null===Object.getPrototypeOf(e))}(n)){var r=eue(n);throw"an object"===r?t.Lc(e+" a custom object"):t.Lc(e+" "+r)}}function Wue(e,t,n){if((t=Ti(t))instanceof _ue)return t._internalPath;if("string"==typeof t)return que(e,t);throw Xue("Field path arguments must be of type string or FieldPath.",e,!1,void 0,n)}var Hue=new RegExp("[~\\*/\\[\\]]");function que(e,t,n){if(t.search(Hue)>=0)throw Xue("Invalid field path ("+t+"). Paths must not contain '~', '*', '/', '[', or ']'",e,!1,void 0,n);try{return(new(_ue.bind.apply(_ue,mi([void 0],t.split(".")))))._internalPath}catch(r){throw Xue("Invalid field path ("+t+"). Paths must not be empty, begin with '.', end with '.', or contain '..'",e,!1,void 0,n)}}function Xue(e,t,n,r,i){var o=r&&!r.isEmpty(),s=void 0!==i,a="Function "+t+"() called with invalid data";n&&(a+=" (via `toFirestore()`)");var l="";return(o||s)&&(l+=" (found",o&&(l+=" in field "+r),s&&(l+=" in document "+i),l+=")"),new Bte(zte.INVALID_ARGUMENT,(a+=". ")+e+l)}function Yue(e,t){return e.some((function(e){return e.isEqual(t)}))}var Kue=function(){function e(e,t,n,r,i){this._firestore=e,this._userDataWriter=t,this._key=n,this._document=r,this._converter=i}return Object.defineProperty(e.prototype,"id",{get:function(){return this._key.path.lastSegment()},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"ref",{get:function(){return new oue(this._firestore,this._converter,this._key)},enumerable:!1,configurable:!0}),e.prototype.exists=function(){return null!==this._document},e.prototype.data=function(){if(this._document){if(this._converter){var e=new Zue(this._firestore,this._userDataWriter,this._key,this._document,null);return this._converter.fromFirestore(e)}return this._userDataWriter.convertValue(this._document.data.value)}},e.prototype.get=function(e){if(this._document){var t=this._document.data.field($ue("DocumentSnapshot.get",e));if(null!==t)return this._userDataWriter.convertValue(t)}},e}(),Zue=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return ui(t,e),t.prototype.data=function(){return e.prototype.data.call(this)},t}(Kue);function $ue(e,t){return"string"==typeof t?que(e,t):t instanceof _ue?t._internalPath:t._delegate._internalPath}var Jue=function(){function e(e,t){this.hasPendingWrites=e,this.fromCache=t}return e.prototype.isEqual=function(e){return this.hasPendingWrites===e.hasPendingWrites&&this.fromCache===e.fromCache},e}(),Que=function(e){function t(t,n,r,i,o,s){var a=this;return(a=e.call(this,t,n,r,i,s)||this)._firestore=t,a._firestoreImpl=t,a.metadata=o,a}return ui(t,e),t.prototype.exists=function(){return e.prototype.exists.call(this)},t.prototype.data=function(e){if(void 0===e&&(e={}),this._document){if(this._converter){var t=new ede(this._firestore,this._userDataWriter,this._key,this._document,this.metadata,null);return this._converter.fromFirestore(t,e)}return this._userDataWriter.convertValue(this._document.data.value,e.serverTimestamps)}},t.prototype.get=function(e,t){if(void 0===t&&(t={}),this._document){var n=this._document.data.field($ue("DocumentSnapshot.get",e));if(null!==n)return this._userDataWriter.convertValue(n,t.serverTimestamps)}},t}(Kue),ede=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return ui(t,e),t.prototype.data=function(t){return void 0===t&&(t={}),e.prototype.data.call(this,t)},t}(Que),tde=function(){function e(e,t,n,r){this._firestore=e,this._userDataWriter=t,this._snapshot=r,this.metadata=new Jue(r.hasPendingWrites,r.fromCache),this.query=n}return Object.defineProperty(e.prototype,"docs",{get:function(){var e=[];return this.forEach((function(t){return e.push(t)})),e},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"size",{get:function(){return this._snapshot.docs.size},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"empty",{get:function(){return 0===this.size},enumerable:!1,configurable:!0}),e.prototype.forEach=function(e,t){var n=this;this._snapshot.docs.forEach((function(r){e.call(t,new ede(n._firestore,n._userDataWriter,r.key,r,new Jue(n._snapshot.mutatedKeys.has(r.key),n._snapshot.fromCache),n.query.converter))}))},e.prototype.docChanges=function(e){void 0===e&&(e={});var t=!!e.includeMetadataChanges;if(t&&this._snapshot.excludesMetadataChanges)throw new Bte(zte.INVALID_ARGUMENT,"To include metadata changes with your document changes, you must also pass { includeMetadataChanges:true } to onSnapshot().");return this._cachedChanges&&this._cachedChangesIncludeMetadataChanges===t||(this._cachedChanges=function(e,t){if(e._snapshot.oldDocs.isEmpty()){var n=0;return e._snapshot.docChanges.map((function(t){return{type:"added",doc:new ede(e._firestore,e._userDataWriter,t.doc.key,t.doc,new Jue(e._snapshot.mutatedKeys.has(t.doc.key),e._snapshot.fromCache),e.query.converter),oldIndex:-1,newIndex:n++}}))}var r=e._snapshot.oldDocs;return e._snapshot.docChanges.filter((function(e){return t||3!==e.type})).map((function(t){var n=new ede(e._firestore,e._userDataWriter,t.doc.key,t.doc,new Jue(e._snapshot.mutatedKeys.has(t.doc.key),e._snapshot.fromCache),e.query.converter),i=-1,o=-1;return 0!==t.type&&(i=r.indexOf(t.doc.key),r=r.delete(t.doc.key)),1!==t.type&&(o=(r=r.add(t.doc)).indexOf(t.doc.key)),{type:nde(t.type),doc:n,oldIndex:i,newIndex:o}}))}(this,t),this._cachedChangesIncludeMetadataChanges=t),this._cachedChanges},e}();function nde(e){switch(e){case 0:return"added";case 2:case 3:return"modified";case 1:return"removed";default:return Kte()}}function rde(e,t){return e instanceof Que&&t instanceof Que?e._firestore===t._firestore&&e._key.isEqual(t._key)&&(null===e._document?null===t._document:e._document.isEqual(t._document))&&e._converter===t._converter:e instanceof tde&&t instanceof tde&&e._firestore===t._firestore&&due(e.query,t.query)&&e.metadata.isEqual(t.metadata)&&e._snapshot.isEqual(t._snapshot)}function ide(e){if(hre(e)&&0===e.explicitOrderBy.length)throw new Bte(zte.UNIMPLEMENTED,"limitToLast() queries require specifying at least one orderBy() clause")}var ode=function(){};function sde(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];for(var r=0,i=t;r<i.length;r++){e=i[r]._apply(e)}return e}var ade=function(e){function t(t,n,r){var i=this;return(i=e.call(this)||this).jc=t,i.Wc=n,i.Gc=r,i.type="where",i}return ui(t,e),t.prototype._apply=function(e){var t=jue(e.firestore),n=function(e,t,n,r,i,o,s){var a;if(i.isKeyField()){if("array-contains"===o||"array-contains-any"===o)throw new Bte(zte.INVALID_ARGUMENT,"Invalid Query. You can't perform '"+o+"' queries on FieldPath.documentId().");if("in"===o||"not-in"===o){fde(s,o);for(var l=[],c=0,u=s;c<u.length;c++){var d=u[c];l.push(pde(r,e,d))}a={arrayValue:{values:l}}}else a=pde(r,e,s)}else"in"!==o&&"not-in"!==o&&"array-contains-any"!==o||fde(s,o),a=Vue(n,"where",s,"in"===o||"not-in"===o);var h=Xne.create(i,o,a);return function(e,t){if(t.g()){var n=fre(e);if(null!==n&&!n.isEqual(t.field))throw new Bte(zte.INVALID_ARGUMENT,"Invalid query. All where filters with an inequality (<, <=, !=, not-in, >, or >=) must be on the same field. But you have inequality filters on '"+n.toString()+"' and '"+t.field.toString()+"'");var r=pre(e);null!==r&&gde(e,t.field,r)}var i=function(e,t){for(var n=0,r=e.filters;n<r.length;n++){var i=r[n];if(t.indexOf(i.op)>=0)return i.op}return null}(e,function(e){switch(e){case"!=":return["!=","not-in"];case"array-contains":return["array-contains","array-contains-any","not-in"];case"in":return["array-contains-any","in","not-in"];case"array-contains-any":return["array-contains","array-contains-any","in","not-in"];case"not-in":return["array-contains","array-contains-any","in","not-in","!="];default:return[]}}(t.op));if(null!==i)throw i===t.op?new Bte(zte.INVALID_ARGUMENT,"Invalid query. You cannot use more than one '"+t.op.toString()+"' filter."):new Bte(zte.INVALID_ARGUMENT,"Invalid query. You cannot use '"+t.op.toString()+"' filters with '"+i.toString()+"' filters.")}(e,h),h}(e._query,0,t,e.firestore._databaseId,this.jc,this.Wc,this.Gc);return new sue(e.firestore,e.converter,function(e,t){var n=e.filters.concat([t]);return new lre(e.path,e.collectionGroup,e.explicitOrderBy.slice(),n,e.limit,e.limitType,e.startAt,e.endAt)}(e._query,n))},t}(ode),lde=function(e){function t(t,n){var r=this;return(r=e.call(this)||this).jc=t,r.zc=n,r.type="orderBy",r}return ui(t,e),t.prototype._apply=function(e){var t=function(e,t,n){if(null!==e.startAt)throw new Bte(zte.INVALID_ARGUMENT,"Invalid query. You must not call startAt() or startAfter() before calling orderBy().");if(null!==e.endAt)throw new Bte(zte.INVALID_ARGUMENT,"Invalid query. You must not call endAt() or endBefore() before calling orderBy().");var r=new ire(t,n);return function(e,t){if(null===pre(e)){var n=fre(e);null!==n&&gde(e,n,t.field)}}(e,r),r}(e._query,this.jc,this.zc);return new sue(e.firestore,e.converter,function(e,t){var n=e.explicitOrderBy.concat([t]);return new lre(e.path,e.collectionGroup,n,e.filters.slice(),e.limit,e.limitType,e.startAt,e.endAt)}(e._query,t))},t}(ode),cde=function(e){function t(t,n,r){var i=this;return(i=e.call(this)||this).type=t,i.Hc=n,i.Jc=r,i}return ui(t,e),t.prototype._apply=function(e){return new sue(e.firestore,e.converter,vre(e._query,this.Hc,this.Jc))},t}(ode),ude=function(e){function t(t,n,r){var i=this;return(i=e.call(this)||this).type=t,i.Yc=n,i.Xc=r,i}return ui(t,e),t.prototype._apply=function(e){var t=hde(e,this.type,this.Yc,this.Xc);return new sue(e.firestore,e.converter,function(e,t){return new lre(e.path,e.collectionGroup,e.explicitOrderBy.slice(),e.filters.slice(),e.limit,e.limitType,t,e.endAt)}(e._query,t))},t}(ode),dde=function(e){function t(t,n,r){var i=this;return(i=e.call(this)||this).type=t,i.Yc=n,i.Xc=r,i}return ui(t,e),t.prototype._apply=function(e){var t=hde(e,this.type,this.Yc,this.Xc);return new sue(e.firestore,e.converter,function(e,t){return new lre(e.path,e.collectionGroup,e.explicitOrderBy.slice(),e.filters.slice(),e.limit,e.limitType,e.startAt,t)}(e._query,t))},t}(ode);function hde(e,t,n,r){if(n[0]=Ti(n[0]),n[0]instanceof Kue)return function(e,t,n,r,i){if(!r)throw new Bte(zte.NOT_FOUND,"Can't use a DocumentSnapshot that doesn't exist for "+n+"().");for(var o=[],s=0,a=mre(e);s<a.length;s++){var l=a[s];if(l.field.isKeyField())o.push(Tne(t,r.key));else{var c=r.data.field(l.field);if(vne(c))throw new Bte(zte.INVALID_ARGUMENT,'Invalid query. You are trying to start or end a query using a document for which the field "'+l.field+'" is an uncommitted server timestamp. (Since the value of this field is unknown, you cannot start/end a query with it.)');if(null===c){var u=l.field.canonicalString();throw new Bte(zte.INVALID_ARGUMENT,"Invalid query. You are trying to start or end a query using a document for which the field '"+u+"' (used as the orderBy) does not exist.")}o.push(c)}}return new nre(o,i)}(e._query,e.firestore._databaseId,t,n[0]._document,r);var i=jue(e.firestore);return function(e,t,n,r,i,o){var s=e.explicitOrderBy;if(i.length>s.length)throw new Bte(zte.INVALID_ARGUMENT,"Too many arguments provided to "+r+"(). The number of arguments must be less than or equal to the number of orderBy() clauses");for(var a=[],l=0;l<i.length;l++){var c=i[l];if(s[l].field.isKeyField()){if("string"!=typeof c)throw new Bte(zte.INVALID_ARGUMENT,"Invalid query. Expected a string for document ID in "+r+"(), but got a "+typeof c);if(!gre(e)&&-1!==c.indexOf("/"))throw new Bte(zte.INVALID_ARGUMENT,"Invalid query. When querying a collection and ordering by FieldPath.documentId(), the value passed to "+r+"() must be a plain document ID, but '"+c+"' contains a slash.");var u=e.path.child(cne.fromString(c));if(!Ene.isDocumentKey(u))throw new Bte(zte.INVALID_ARGUMENT,"Invalid query. When querying a collection group and ordering by FieldPath.documentId(), the value passed to "+r+"() must result in a valid document path, but '"+u+"' is not because it contains an odd number of segments.");var d=new Ene(u);a.push(Tne(t,d))}else{var h=Vue(n,r,c);a.push(h)}}return new nre(a,o)}(e._query,e.firestore._databaseId,i,t,n,r)}function pde(e,t,n){if("string"==typeof(n=Ti(n))){if(""===n)throw new Bte(zte.INVALID_ARGUMENT,"Invalid query. When querying with FieldPath.documentId(), you must provide a valid document ID, but it was an empty string.");if(!gre(t)&&-1!==n.indexOf("/"))throw new Bte(zte.INVALID_ARGUMENT,"Invalid query. When querying a collection by FieldPath.documentId(), you must provide a plain document ID, but '"+n+"' contains a '/' character.");var r=t.path.child(cne.fromString(n));if(!Ene.isDocumentKey(r))throw new Bte(zte.INVALID_ARGUMENT,"Invalid query. When querying a collection group by FieldPath.documentId(), the value provided must result in a valid document path, but '"+r+"' is not because it has an odd number of segments ("+r.length+").");return Tne(e,new Ene(r))}if(n instanceof oue)return Tne(e,n._key);throw new Bte(zte.INVALID_ARGUMENT,"Invalid query. When querying with FieldPath.documentId(), you must provide a valid string or a DocumentReference, but it was: "+eue(n)+".")}function fde(e,t){if(!Array.isArray(e)||0===e.length)throw new Bte(zte.INVALID_ARGUMENT,"Invalid Query. A non-empty array is required for '"+t.toString()+"' filters.");if(e.length>10)throw new Bte(zte.INVALID_ARGUMENT,"Invalid Query. '"+t.toString()+"' filters support a maximum of 10 elements in the value array.")}function gde(e,t,n){if(!n.isEqual(t))throw new Bte(zte.INVALID_ARGUMENT,"Invalid query. You have a where filter with an inequality (<, <=, !=, not-in, >, or >=) on field '"+t.toString()+"' and so you must also use '"+t.toString()+"' as your first argument to orderBy(), but your first orderBy() is on field '"+n.toString()+"' instead.")}var mde=function(){function e(){}return e.prototype.convertValue=function(e,t){switch(void 0===t&&(t="none"),Pne(e)){case 0:return null;case 1:return e.booleanValue;case 2:return mne(e.integerValue||e.doubleValue);case 3:return this.convertTimestamp(e.timestampValue);case 4:return this.convertServerTimestamp(e,t);case 5:return e.stringValue;case 6:return this.convertBytes(yne(e.bytesValue));case 7:return this.convertReference(e.referenceValue);case 8:return this.convertGeoPoint(e.geoPointValue);case 9:return this.convertArray(e.arrayValue,t);case 10:return this.convertObject(e.mapValue,t);default:throw Kte()}},e.prototype.convertObject=function(e,t){var n=this,r={};return sne(e.fields,(function(e,i){r[e]=n.convertValue(i,t)})),r},e.prototype.convertGeoPoint=function(e){return new Sue(mne(e.latitude),mne(e.longitude))},e.prototype.convertArray=function(e,t){var n=this;return(e.values||[]).map((function(e){return n.convertValue(e,t)}))},e.prototype.convertServerTimestamp=function(e,t){switch(t){case"previous":var n=_ne(e);return null==n?null:this.convertValue(n,t);case"estimate":return this.convertTimestamp(bne(e));default:return null}},e.prototype.convertTimestamp=function(e){var t=gne(e);return new rne(t.seconds,t.nanos)},e.prototype.convertDocumentKey=function(e,t){var n=cne.fromString(e);Zte(uoe(n));var r=new zce(n.get(1),n.get(3)),i=new Ene(n.popFirst(5));return r.isEqual(t)||qte("Document "+i+" contains a document reference within a different database ("+r.projectId+"/"+r.database+") which is not supported. It will be treated as a reference in the current database ("+t.projectId+"/"+t.database+") instead."),i},e}();function yde(e,t,n){return e?n&&(n.merge||n.mergeFields)?e.toFirestore(t,n):e.toFirestore(t):t}var vde=function(e){function t(t){var n=this;return(n=e.call(this)||this).firestore=t,n}return ui(t,e),t.prototype.convertBytes=function(e){return new bue(e)},t.prototype.convertReference=function(e){var t=this.convertDocumentKey(e,this.firestore._databaseId);return new oue(this.firestore,null,t)},t}(mde),_de=function(){function e(e,t){this._firestore=e,this._commitHandler=t,this._mutations=[],this._committed=!1,this._dataReader=jue(e)}return e.prototype.set=function(e,t,n){this._verifyNotCommitted();var r=bde(e,this._firestore),i=yde(r.converter,t,n),o=Iue(this._dataReader,"WriteBatch.set",r._key,i,null!==r.converter,n);return this._mutations.push(o.toMutation(r._key,Bre.none())),this},e.prototype.update=function(e,t,n){for(var r=[],i=3;i<arguments.length;i++)r[i-3]=arguments[i];this._verifyNotCommitted();var o,s=bde(e,this._firestore);return o="string"==typeof(t=Ti(t))||t instanceof _ue?Lue(this._dataReader,"WriteBatch.update",s._key,t,n,r):Nue(this._dataReader,"WriteBatch.update",s._key,t),this._mutations.push(o.toMutation(s._key,Bre.exists(!0))),this},e.prototype.delete=function(e){this._verifyNotCommitted();var t=bde(e,this._firestore);return this._mutations=this._mutations.concat(new rie(t._key,Bre.none())),this},e.prototype.commit=function(){return this._verifyNotCommitted(),this._committed=!0,this._mutations.length>0?this._commitHandler(this._mutations):Promise.resolve()},e.prototype._verifyNotCommitted=function(){if(this._committed)throw new Bte(zte.FAILED_PRECONDITION,"A write batch can no longer be used after commit() has been called.")},e}();function bde(e,t){if((e=Ti(e)).firestore!==t)throw new Bte(zte.INVALID_ARGUMENT,"Provided document reference is from a different Firestore instance.");return e}var xde=function(e){function t(t){var n=this;return(n=e.call(this)||this).firestore=t,n}return ui(t,e),t.prototype.convertBytes=function(e){return new bue(e)},t.prototype.convertReference=function(e){var t=this.convertDocumentKey(e,this.firestore._databaseId);return new oue(this.firestore,null,t)},t}(mde);function Sde(e,t,n){e=tue(e,oue);var r=tue(e.firestore,fue),i=yde(e.converter,t,n);return Pde(r,[Iue(jue(r),"setDoc",e._key,i,null!==e.converter,n).toMutation(e._key,Bre.none())])}function wde(e,t,n){for(var r=[],i=3;i<arguments.length;i++)r[i-3]=arguments[i];e=tue(e,oue);var o=tue(e.firestore,fue),s=jue(o);return Pde(o,[("string"==typeof(t=Ti(t))||t instanceof _ue?Lue(s,"updateDoc",e._key,t,n,r):Nue(s,"updateDoc",e._key,t)).toMutation(e._key,Bre.exists(!0))])}function Ede(e){for(var t,n,r,i=[],o=1;o<arguments.length;o++)i[o-1]=arguments[o];e=Ti(e);var s={includeMetadataChanges:!1},a=0;"object"!=typeof i[a]||pue(i[a])||(s=i[a],a++);var l,c,u,d={includeMetadataChanges:s.includeMetadataChanges};if(pue(i[a])){var h=i[a];i[a]=null===(t=h.next)||void 0===t?void 0:t.bind(h),i[a+1]=null===(n=h.error)||void 0===n?void 0:n.bind(h),i[a+2]=null===(r=h.complete)||void 0===r?void 0:r.bind(h)}if(e instanceof oue)c=tue(e.firestore,fue),u=ure(e._key.path),l={next:function(t){i[a]&&i[a](Cde(c,e,t))},error:i[a+1],complete:i[a+2]};else{var p=tue(e,sue);c=tue(p.firestore,fue),u=p._query;var f=new xde(c);l={next:function(e){i[a]&&i[a](new tde(c,f,p,e))},error:i[a+1],complete:i[a+2]},ide(e._query)}return function(e,t,n,r){var i=this,o=new Pce(r),s=new Ole(t,o,n);return e.asyncQueue.enqueueAndForget((function(){return hi(i,void 0,void 0,(function(){var t;return pi(this,(function(n){switch(n.label){case 0:return t=jle,[4,Nce(e)];case 1:return[2,t.apply(void 0,[n.sent(),s])]}}))}))})),function(){o.Wo(),e.asyncQueue.enqueueAndForget((function(){return hi(i,void 0,void 0,(function(){var t;return pi(this,(function(n){switch(n.label){case 0:return t=Ile,[4,Nce(e)];case 1:return[2,t.apply(void 0,[n.sent(),s])]}}))}))}))}}(gue(c),u,d,l)}function Pde(e,t){return function(e,t){var n=this,r=new Ooe;return e.asyncQueue.enqueueAndForget((function(){return hi(n,void 0,void 0,(function(){var n;return pi(this,(function(i){switch(i.label){case 0:return n=Xle,[4,Dce(e)];case 1:return[2,n.apply(void 0,[i.sent(),t,r])]}}))}))})),r.promise}(gue(e),t)}function Cde(e,t,n){var r=n.docs.get(t._key),i=new xde(e);return new Que(e,i,t._key,r,new Jue(n.hasPendingWrites,n.fromCache),t.converter)}var Ade=function(e){function t(t,n){var r=this;return(r=e.call(this,t,n)||this)._firestore=t,r}return ui(t,e),t.prototype.get=function(t){var n=this,r=bde(t,this._firestore),i=new xde(this._firestore);return e.prototype.get.call(this,t).then((function(e){return new Que(n._firestore,i,r._key,e._document,new Jue(!1,!1),r.converter)}))},t}(function(){function e(e,t){this._firestore=e,this._transaction=t,this._dataReader=jue(e)}return e.prototype.get=function(e){var t=this,n=bde(e,this._firestore),r=new vde(this._firestore);return this._transaction.lookup([n._key]).then((function(e){if(!e||1!==e.length)return Kte();var i=e[0];if(i.isFoundDocument())return new Kue(t._firestore,r,i.key,i,n.converter);if(i.isNoDocument())return new Kue(t._firestore,r,n._key,null,n.converter);throw Kte()}))},e.prototype.set=function(e,t,n){var r=bde(e,this._firestore),i=yde(r.converter,t,n),o=Iue(this._dataReader,"Transaction.set",r._key,i,null!==r.converter,n);return this._transaction.set(r._key,o),this},e.prototype.update=function(e,t,n){for(var r=[],i=3;i<arguments.length;i++)r[i-3]=arguments[i];var o,s=bde(e,this._firestore);return o="string"==typeof(t=Ti(t))||t instanceof _ue?Lue(this._dataReader,"Transaction.update",s._key,t,n,r):Nue(this._dataReader,"Transaction.update",s._key,t),this._transaction.update(s._key,o),this},e.prototype.delete=function(e){var t=bde(e,this._firestore);return this._transaction.delete(t._key),this},e}());function kde(){if("undefined"==typeof Uint8Array)throw new Bte(zte.UNIMPLEMENTED,"Uint8Arrays are not available in this environment.")}function jde(){if("undefined"==typeof atob)throw new Bte(zte.UNIMPLEMENTED,"Blobs are unavailable in Firestore in this environment.")}var Ide=function(){function e(e){this._delegate=e}return e.fromBase64String=function(t){return jde(),new e(bue.fromBase64String(t))},e.fromUint8Array=function(t){return kde(),new e(bue.fromUint8Array(t))},e.prototype.toBase64=function(){return jde(),this._delegate.toBase64()},e.prototype.toUint8Array=function(){return kde(),this._delegate.toUint8Array()},e.prototype.isEqual=function(e){return this._delegate.isEqual(e._delegate)},e.prototype.toString=function(){return"Blob(base64: "+this.toBase64()+")"},e}(),Gde=function(){function e(){}return e.prototype.enableIndexedDbPersistence=function(e,t){return function(e,t){vue(e=tue(e,fue));var n=gue(e),r=e._freezeSettings(),i=new Ece;return yue(n,i,new Sce(i,r.cacheSizeBytes,null==t?void 0:t.forceOwnership))}(e._delegate,{forceOwnership:t})},e.prototype.enableMultiTabIndexedDbPersistence=function(e){return function(e){vue(e=tue(e,fue));var t=gue(e),n=e._freezeSettings(),r=new Ece;return yue(t,r,new wce(r,n.cacheSizeBytes))}(e._delegate)},e.prototype.clearIndexedDbPersistence=function(e){return function(e){var t=this;if(e._initialized&&!e._terminated)throw new Bte(zte.FAILED_PRECONDITION,"Persistence can only be cleared before a Firestore instance is initialized or after it is terminated.");var n=new Ooe;return e._queue.enqueueAndForgetEvenWhileRestricted((function(){return hi(t,void 0,void 0,(function(){var t;return pi(this,(function(r){switch(r.label){case 0:return r.trys.push([0,2,,3]),[4,function(e){return hi(this,void 0,void 0,(function(){var t;return pi(this,(function(n){switch(n.label){case 0:return Noe.yt()?(t=e+"main",[4,Noe.delete(t)]):[2,Promise.resolve()];case 1:return n.sent(),[2]}}))}))}(Yse(e._databaseId,e._persistenceKey))];case 1:return r.sent(),n.resolve(),[3,3];case 2:return t=r.sent(),n.reject(t),[3,3];case 3:return[2]}}))}))})),n.promise}(e._delegate)},e}(),Tde=function(){function e(e,t,n){var r=this;this._delegate=t,this.Zc=n,this.INTERNAL={delete:function(){return r.terminate()}},e instanceof zce||(this.tu=e)}return Object.defineProperty(e.prototype,"_databaseId",{get:function(){return this._delegate._databaseId},enumerable:!1,configurable:!0}),e.prototype.settings=function(e){var t=this._delegate._getSettings();e.merge||t.host===e.host||Xte("You are overriding the original host. If you did not intend to override your settings, use {merge: true}."),e.merge&&delete(e=Object.assign(Object.assign({},t),e)).merge,this._delegate._setSettings(e)},e.prototype.useEmulator=function(e,t,n){void 0===n&&(n={}),function(e,t,n,r){var i;void 0===r&&(r={});var o=(e=tue(e,iue))._getSettings();if("firestore.googleapis.com"!==o.host&&o.host!==t&&Xte("Host has been set in both settings() and useEmulator(), emulator host will be used"),e._setSettings(Object.assign(Object.assign({},o),{host:t+":"+n,ssl:!1})),r.mockUserToken){var s,a;if("string"==typeof r.mockUserToken)s=r.mockUserToken,a=Pae.MOCK_USER;else{s=function(e,t){if(e.uid)throw new Error('The "uid" field is no longer supported by mockUserToken. Please use "sub" instead for Firebase Auth User ID.');var n=t||"demo-project",r=e.iat||0,i=e.sub||e.user_id;if(!i)throw new Error("mockUserToken must contain 'sub' or 'user_id' field!");var o=di({iss:"https://securetoken.google.com/"+n,aud:n,iat:r,exp:r+3600,auth_time:r,sub:i,user_id:i,firebase:{sign_in_provider:"custom",identities:{}}},e);return[_i(JSON.stringify({alg:"none",type:"JWT"})),_i(JSON.stringify(o)),""].join(".")}(r.mockUserToken,null===(i=e._app)||void 0===i?void 0:i.options.projectId);var l=r.mockUserToken.sub||r.mockUserToken.user_id;if(!l)throw new Bte(zte.INVALID_ARGUMENT,"mockUserToken must contain 'sub' or 'user_id' field!");a=new Pae(l)}e._credentials=new Hce(new Uce(s,a))}}(this._delegate,e,t,n)},e.prototype.enableNetwork=function(){return function(e){var t=this;return e.asyncQueue.enqueue((function(){return hi(t,void 0,void 0,(function(){var t,n;return pi(this,(function(r){switch(r.label){case 0:return[4,Mce(e)];case 1:return t=r.sent(),[4,Rce(e)];case 2:return n=r.sent(),[2,(t.setNetworkEnabled(!0),function(e){var t=$te(e);return t.Or.delete(0),$ae(t)}(n))]}}))}))}))}(gue(tue(this._delegate,fue)))},e.prototype.disableNetwork=function(){return function(e){var t=this;return e.asyncQueue.enqueue((function(){return hi(t,void 0,void 0,(function(){var t,n;return pi(this,(function(r){switch(r.label){case 0:return[4,Mce(e)];case 1:return t=r.sent(),[4,Rce(e)];case 2:return n=r.sent(),[2,(t.setNetworkEnabled(!1),function(e){return hi(this,void 0,void 0,(function(){var t;return pi(this,(function(n){switch(n.label){case 0:return(t=$te(e)).Or.add(0),[4,Jae(t)];case 1:return n.sent(),t.Br.set("Offline"),[2]}}))}))}(n))]}}))}))}))}(gue(tue(this._delegate,fue)))},e.prototype.enablePersistence=function(e){var t=!1,n=!1;return e&&$ce("synchronizeTabs",t=!!e.synchronizeTabs,"experimentalForceOwningTab",n=!!e.experimentalForceOwningTab),t?this.Zc.enableMultiTabIndexedDbPersistence(this):this.Zc.enableIndexedDbPersistence(this,n)},e.prototype.clearPersistence=function(){return this.Zc.clearIndexedDbPersistence(this)},e.prototype.terminate=function(){return this.tu&&(this.tu._removeServiceInstance("firestore"),this.tu._removeServiceInstance("firestore-exp")),this._delegate._delete()},e.prototype.waitForPendingWrites=function(){return function(e){var t=this,n=new Ooe;return e.asyncQueue.enqueueAndForget((function(){return hi(t,void 0,void 0,(function(){var t;return pi(this,(function(r){switch(r.label){case 0:return t=Qle,[4,Dce(e)];case 1:return[2,t.apply(void 0,[r.sent(),n])]}}))}))})),n.promise}(gue(tue(this._delegate,fue)))},e.prototype.onSnapshotsInSync=function(e){return function(e,t){return function(e,t){var n=this,r=new Pce(t);return e.asyncQueue.enqueueAndForget((function(){return hi(n,void 0,void 0,(function(){var t;return pi(this,(function(n){switch(n.label){case 0:return t=function(e,t){$te(e).Gr.add(t),t.next()},[4,Nce(e)];case 1:return[2,t.apply(void 0,[n.sent(),r])]}}))}))})),function(){r.Wo(),e.asyncQueue.enqueueAndForget((function(){return hi(n,void 0,void 0,(function(){var t;return pi(this,(function(n){switch(n.label){case 0:return t=function(e,t){$te(e).Gr.delete(t)},[4,Nce(e)];case 1:return[2,t.apply(void 0,[n.sent(),r])]}}))}))}))}}(gue(e=tue(e,fue)),pue(t)?t:{next:t})}(this._delegate,e)},Object.defineProperty(e.prototype,"app",{get:function(){if(!this.tu)throw new Bte(zte.FAILED_PRECONDITION,"Firestore was not initialized using the Firebase SDK. 'app' is not available");return this.tu},enumerable:!1,configurable:!0}),e.prototype.collection=function(e){try{return new qde(this,lue(this._delegate,e))}catch(e){throw Lde(e,"collection()","Firestore.collection()")}},e.prototype.doc=function(e){try{return new Nde(this,cue(this._delegate,e))}catch(e){throw Lde(e,"doc()","Firestore.doc()")}},e.prototype.collectionGroup=function(e){try{return new Ude(this,function(e,t){if(e=tue(e,iue),Kce("collectionGroup","collection id",t),t.indexOf("/")>=0)throw new Bte(zte.INVALID_ARGUMENT,"Invalid collection ID '"+t+"' passed to function collectionGroup(). Collection IDs must not contain '/'.");return new sue(e,null,function(e){return new lre(cne.emptyPath(),e)}(t))}(this._delegate,e))}catch(e){throw Lde(e,"collectionGroup()","Firestore.collectionGroup()")}},e.prototype.runTransaction=function(e){var t=this;return function(e,t){return function(e,t){var n=this,r=new Ooe;return e.asyncQueue.enqueueAndForget((function(){return hi(n,void 0,void 0,(function(){var n;return pi(this,(function(i){switch(i.label){case 0:return[4,function(e){return Tce(e).then((function(e){return e.datastore}))}(e)];case 1:return n=i.sent(),new Ace(e.asyncQueue,n,t,r).run(),[2]}}))}))})),r.promise}(gue(e),(function(n){return t(new Ade(e,n))}))}(this._delegate,(function(n){return e(new Ode(t,n))}))},e.prototype.batch=function(){var e=this;return gue(this._delegate),new Rde(new _de(this._delegate,(function(t){return Pde(e._delegate,t)})))},e.prototype.loadBundle=function(e){throw new Bte(zte.FAILED_PRECONDITION,'"loadBundle()" does not exist, have you imported "firebase/firestore/bundle"?')},e.prototype.namedQuery=function(e){throw new Bte(zte.FAILED_PRECONDITION,'"namedQuery()" does not exist, have you imported "firebase/firestore/bundle"?')},e}(),Mde=function(e){function t(t){var n=this;return(n=e.call(this)||this).firestore=t,n}return ui(t,e),t.prototype.convertBytes=function(e){return new Ide(new bue(e))},t.prototype.convertReference=function(e){var t=this.convertDocumentKey(e,this.firestore._databaseId);return Nde.eu(t,this.firestore,null)},t}(mde);var Ode=function(){function e(e,t){this._firestore=e,this._delegate=t,this._userDataWriter=new Mde(e)}return e.prototype.get=function(e){var t=this,n=Xde(e);return this._delegate.get(n).then((function(e){return new zde(t._firestore,new Que(t._firestore._delegate,t._userDataWriter,e._key,e._document,e.metadata,n.converter))}))},e.prototype.set=function(e,t,n){var r=Xde(e);return n?(Zce("Transaction.set",n),this._delegate.set(r,t,n)):this._delegate.set(r,t),this},e.prototype.update=function(e,t,n){for(var r,i=[],o=3;o<arguments.length;o++)i[o-3]=arguments[o];var s=Xde(e);return 2===arguments.length?this._delegate.update(s,t):(r=this._delegate).update.apply(r,mi([s,t,n],i)),this},e.prototype.delete=function(e){var t=Xde(e);return this._delegate.delete(t),this},e}(),Rde=function(){function e(e){this._delegate=e}return e.prototype.set=function(e,t,n){var r=Xde(e);return n?(Zce("WriteBatch.set",n),this._delegate.set(r,t,n)):this._delegate.set(r,t),this},e.prototype.update=function(e,t,n){for(var r,i=[],o=3;o<arguments.length;o++)i[o-3]=arguments[o];var s=Xde(e);return 2===arguments.length?this._delegate.update(s,t):(r=this._delegate).update.apply(r,mi([s,t,n],i)),this},e.prototype.delete=function(e){var t=Xde(e);return this._delegate.delete(t),this},e.prototype.commit=function(){return this._delegate.commit()},e}(),Dde=function(){function e(e,t,n){this._firestore=e,this._userDataWriter=t,this._delegate=n}return e.prototype.fromFirestore=function(e,t){var n=new ede(this._firestore._delegate,this._userDataWriter,e._key,e._document,e.metadata,null);return this._delegate.fromFirestore(new Bde(this._firestore,n),null!=t?t:{})},e.prototype.toFirestore=function(e,t){return t?this._delegate.toFirestore(e,t):this._delegate.toFirestore(e)},e.nu=function(t,n){var r=e.su,i=r.get(t);i||(i=new WeakMap,r.set(t,i));var o=i.get(n);return o||(o=new e(t,new Mde(t),n),i.set(n,o)),o},e}();Dde.su=new WeakMap;var Nde=function(){function e(e,t){this.firestore=e,this._delegate=t,this._userDataWriter=new Mde(e)}return e.iu=function(t,n,r){if(t.length%2!=0)throw new Bte(zte.INVALID_ARGUMENT,"Invalid document reference. Document references must have an even number of segments, but "+t.canonicalString()+" has "+t.length);return new e(n,new oue(n._delegate,r,new Ene(t)))},e.eu=function(t,n,r){return new e(n,new oue(n._delegate,r,t))},Object.defineProperty(e.prototype,"id",{get:function(){return this._delegate.id},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"parent",{get:function(){return new qde(this.firestore,this._delegate.parent)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"path",{get:function(){return this._delegate.path},enumerable:!1,configurable:!0}),e.prototype.collection=function(e){try{return new qde(this.firestore,lue(this._delegate,e))}catch(e){throw Lde(e,"collection()","DocumentReference.collection()")}},e.prototype.isEqual=function(e){return(e=Ti(e))instanceof oue&&uue(this._delegate,e)},e.prototype.set=function(e,t){t=Zce("DocumentReference.set",t);try{return t?Sde(this._delegate,e,t):Sde(this._delegate,e)}catch(e){throw Lde(e,"setDoc()","DocumentReference.set()")}},e.prototype.update=function(e,t){for(var n=[],r=2;r<arguments.length;r++)n[r-2]=arguments[r];try{return 1===arguments.length?wde(this._delegate,e):wde.apply(void 0,mi([this._delegate,e,t],n))}catch(e){throw Lde(e,"updateDoc()","DocumentReference.update()")}},e.prototype.delete=function(){return Pde(tue((e=this._delegate).firestore,fue),[new rie(e._key,Bre.none())]);var e},e.prototype.onSnapshot=function(){for(var e=this,t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];var r=Vde(t),i=Fde(t,(function(t){return new zde(e.firestore,new Que(e.firestore._delegate,e._userDataWriter,t._key,t._document,t.metadata,e._delegate.converter))}));return Ede(this._delegate,r,i)},e.prototype.get=function(e){var t=this;return("cache"===(null==e?void 0:e.source)?function(e){e=tue(e,oue);var t=tue(e.firestore,fue),n=gue(t),r=new xde(t);return function(e,t){var n=this,r=new Ooe;return e.asyncQueue.enqueueAndForget((function(){return hi(n,void 0,void 0,(function(){var n;return pi(this,(function(i){switch(i.label){case 0:return n=function(e,t,n){return hi(this,void 0,void 0,(function(){var r,i;return pi(this,(function(o){switch(o.label){case 0:return o.trys.push([0,2,,3]),[4,function(e,t){var n=$te(e);return n.persistence.runTransaction("read document","readonly",(function(e){return n.Mn.mn(e,t)}))}(e,t)];case 1:return(i=o.sent()).isFoundDocument()?n.resolve(i):i.isNoDocument()?n.resolve(null):n.reject(new Bte(zte.UNAVAILABLE,"Failed to get document from cache. (However, this document may exist on the server. Run again without setting 'source' in the GetOptions to attempt to retrieve the document from the server.)")),[3,3];case 2:return r=o.sent(),i=wle(r,"Failed to get document '"+t+" from cache"),n.reject(i),[3,3];case 3:return[2]}}))}))},[4,Oce(e)];case 1:return[2,n.apply(void 0,[i.sent(),t,r])]}}))}))})),r.promise}(n,e._key).then((function(n){return new Que(t,r,e._key,n,new Jue(null!==n&&n.hasLocalMutations,!0),e.converter)}))}(this._delegate):"server"===(null==e?void 0:e.source)?function(e){e=tue(e,oue);var t=tue(e.firestore,fue);return Lce(gue(t),e._key,{source:"server"}).then((function(n){return Cde(t,e,n)}))}(this._delegate):function(e){e=tue(e,oue);var t=tue(e.firestore,fue);return Lce(gue(t),e._key).then((function(n){return Cde(t,e,n)}))}(this._delegate)).then((function(e){return new zde(t.firestore,new Que(t.firestore._delegate,t._userDataWriter,e._key,e._document,e.metadata,t._delegate.converter))}))},e.prototype.withConverter=function(t){return new e(this.firestore,t?this._delegate.withConverter(Dde.nu(this.firestore,t)):this._delegate.withConverter(null))},e}();function Lde(e,t,n){return e.message=e.message.replace(t,n),e}function Vde(e){for(var t=0,n=e;t<n.length;t++){var r=n[t];if("object"==typeof r&&!pue(r))return r}return{}}function Fde(e,t){var n,r,i;return{next:function(e){i.next&&i.next(t(e))},error:null===(n=(i=pue(e[0])?e[0]:pue(e[1])?e[1]:"function"==typeof e[0]?{next:e[0],error:e[1],complete:e[2]}:{next:e[1],error:e[2],complete:e[3]}).error)||void 0===n?void 0:n.bind(i),complete:null===(r=i.complete)||void 0===r?void 0:r.bind(i)}}var zde=function(){function e(e,t){this._firestore=e,this._delegate=t}return Object.defineProperty(e.prototype,"ref",{get:function(){return new Nde(this._firestore,this._delegate.ref)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"id",{get:function(){return this._delegate.id},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"metadata",{get:function(){return this._delegate.metadata},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"exists",{get:function(){return this._delegate.exists()},enumerable:!1,configurable:!0}),e.prototype.data=function(e){return this._delegate.data(e)},e.prototype.get=function(e,t){return this._delegate.get(e,t)},e.prototype.isEqual=function(e){return rde(this._delegate,e._delegate)},e}(),Bde=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return ui(t,e),t.prototype.data=function(e){return this._delegate.data(e)},t}(zde),Ude=function(){function e(e,t){this.firestore=e,this._delegate=t,this._userDataWriter=new Mde(e)}return e.prototype.where=function(t,n,r){try{return new e(this.firestore,sde(this._delegate,function(e,t,n){var r=t,i=$ue("where",e);return new ade(i,r,n)}(t,n,r)))}catch(t){throw Lde(t,/(orderBy|where)\(\)/,"Query.$1()")}},e.prototype.orderBy=function(t,n){try{return new e(this.firestore,sde(this._delegate,function(e,t){void 0===t&&(t="asc");var n=t,r=$ue("orderBy",e);return new lde(r,n)}(t,n)))}catch(t){throw Lde(t,/(orderBy|where)\(\)/,"Query.$1()")}},e.prototype.limit=function(t){try{return new e(this.firestore,sde(this._delegate,function(e){return nue("limit",e),new cde("limit",e,"F")}(t)))}catch(t){throw Lde(t,"limit()","Query.limit()")}},e.prototype.limitToLast=function(t){try{return new e(this.firestore,sde(this._delegate,function(e){return nue("limitToLast",e),new cde("limitToLast",e,"L")}(t)))}catch(t){throw Lde(t,"limitToLast()","Query.limitToLast()")}},e.prototype.startAt=function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];try{return new e(this.firestore,sde(this._delegate,function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return new ude("startAt",e,!0)}.apply(void 0,t)))}catch(t){throw Lde(t,"startAt()","Query.startAt()")}},e.prototype.startAfter=function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];try{return new e(this.firestore,sde(this._delegate,function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return new ude("startAfter",e,!1)}.apply(void 0,t)))}catch(t){throw Lde(t,"startAfter()","Query.startAfter()")}},e.prototype.endBefore=function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];try{return new e(this.firestore,sde(this._delegate,function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return new dde("endBefore",e,!0)}.apply(void 0,t)))}catch(t){throw Lde(t,"endBefore()","Query.endBefore()")}},e.prototype.endAt=function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];try{return new e(this.firestore,sde(this._delegate,function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return new dde("endAt",e,!1)}.apply(void 0,t)))}catch(t){throw Lde(t,"endAt()","Query.endAt()")}},e.prototype.isEqual=function(e){return due(this._delegate,e._delegate)},e.prototype.get=function(e){var t=this;return("cache"===(null==e?void 0:e.source)?function(e){e=tue(e,sue);var t=tue(e.firestore,fue),n=gue(t),r=new xde(t);return function(e,t){var n=this,r=new Ooe;return e.asyncQueue.enqueueAndForget((function(){return hi(n,void 0,void 0,(function(){var n;return pi(this,(function(i){switch(i.label){case 0:return n=function(e,t,n){return hi(this,void 0,void 0,(function(){var r,i,o,s,a;return pi(this,(function(l){switch(l.label){case 0:return l.trys.push([0,2,,3]),[4,cae(e,t,!0)];case 1:return a=l.sent(),r=new Fle(t,a.Bn),i=r._o(a.documents),o=r.applyChanges(i,!1),n.resolve(o.snapshot),[3,3];case 2:return s=l.sent(),a=wle(s,"Failed to execute query '"+t+" against cache"),n.reject(a),[3,3];case 3:return[2]}}))}))},[4,Oce(e)];case 1:return[2,n.apply(void 0,[i.sent(),t,r])]}}))}))})),r.promise}(n,e._query).then((function(n){return new tde(t,r,e,n)}))}(this._delegate):"server"===(null==e?void 0:e.source)?function(e){e=tue(e,sue);var t=tue(e.firestore,fue),n=gue(t),r=new xde(t);return Vce(n,e._query,{source:"server"}).then((function(n){return new tde(t,r,e,n)}))}(this._delegate):function(e){e=tue(e,sue);var t=tue(e.firestore,fue),n=gue(t),r=new xde(t);return ide(e._query),Vce(n,e._query).then((function(n){return new tde(t,r,e,n)}))}(this._delegate)).then((function(e){return new Hde(t.firestore,new tde(t.firestore._delegate,t._userDataWriter,t._delegate,e._snapshot))}))},e.prototype.onSnapshot=function(){for(var e=this,t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];var r=Vde(t),i=Fde(t,(function(t){return new Hde(e.firestore,new tde(e.firestore._delegate,e._userDataWriter,e._delegate,t._snapshot))}));return Ede(this._delegate,r,i)},e.prototype.withConverter=function(t){return new e(this.firestore,t?this._delegate.withConverter(Dde.nu(this.firestore,t)):this._delegate.withConverter(null))},e}(),Wde=function(){function e(e,t){this._firestore=e,this._delegate=t}return Object.defineProperty(e.prototype,"type",{get:function(){return this._delegate.type},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"doc",{get:function(){return new Bde(this._firestore,this._delegate.doc)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"oldIndex",{get:function(){return this._delegate.oldIndex},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"newIndex",{get:function(){return this._delegate.newIndex},enumerable:!1,configurable:!0}),e}(),Hde=function(){function e(e,t){this._firestore=e,this._delegate=t}return Object.defineProperty(e.prototype,"query",{get:function(){return new Ude(this._firestore,this._delegate.query)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"metadata",{get:function(){return this._delegate.metadata},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"size",{get:function(){return this._delegate.size},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"empty",{get:function(){return this._delegate.empty},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"docs",{get:function(){var e=this;return this._delegate.docs.map((function(t){return new Bde(e._firestore,t)}))},enumerable:!1,configurable:!0}),e.prototype.docChanges=function(e){var t=this;return this._delegate.docChanges(e).map((function(e){return new Wde(t._firestore,e)}))},e.prototype.forEach=function(e,t){var n=this;this._delegate.forEach((function(r){e.call(t,new Bde(n._firestore,r))}))},e.prototype.isEqual=function(e){return rde(this._delegate,e._delegate)},e}(),qde=function(e){function t(t,n){var r=this;return(r=e.call(this,t,n)||this).firestore=t,r._delegate=n,r}return ui(t,e),Object.defineProperty(t.prototype,"id",{get:function(){return this._delegate.id},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"path",{get:function(){return this._delegate.path},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"parent",{get:function(){var e=this._delegate.parent;return e?new Nde(this.firestore,e):null},enumerable:!1,configurable:!0}),t.prototype.doc=function(e){try{return new Nde(this.firestore,void 0===e?cue(this._delegate):cue(this._delegate,e))}catch(e){throw Lde(e,"doc()","CollectionReference.doc()")}},t.prototype.add=function(e){var t=this;return function(e,t){var n=tue(e.firestore,fue),r=cue(e),i=yde(e.converter,t);return Pde(n,[Iue(jue(e.firestore),"addDoc",r._key,i,null!==e.converter,{}).toMutation(r._key,Bre.exists(!1))]).then((function(){return r}))}(this._delegate,e).then((function(e){return new Nde(t.firestore,e)}))},t.prototype.isEqual=function(e){return uue(this._delegate,e._delegate)},t.prototype.withConverter=function(e){return new t(this.firestore,e?this._delegate.withConverter(Dde.nu(this.firestore,e)):this._delegate.withConverter(null))},t}(Ude);function Xde(e){return tue(e,oue)}var Yde=function(){function e(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];this._delegate=new(_ue.bind.apply(_ue,mi([void 0],e)))}return e.documentId=function(){return new e(dne.keyField().canonicalString())},e.prototype.isEqual=function(e){return(e=Ti(e))instanceof _ue&&this._delegate._internalPath.isEqual(e._internalPath)},e}(),Kde=function(){function e(e){this._delegate=e}return e.serverTimestamp=function(){var t=new Mue("serverTimestamp");return t._methodName="FieldValue.serverTimestamp",new e(t)},e.delete=function(){var t=new Gue("deleteField");return t._methodName="FieldValue.delete",new e(t)},e.arrayUnion=function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];var r=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return new Oue("arrayUnion",e)}.apply(void 0,t);return r._methodName="FieldValue.arrayUnion",new e(r)},e.arrayRemove=function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];var r=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return new Rue("arrayRemove",e)}.apply(void 0,t);return r._methodName="FieldValue.arrayRemove",new e(r)},e.increment=function(t){var n=function(e){return new Due("increment",e)}(t);return n._methodName="FieldValue.increment",new e(n)},e.prototype.isEqual=function(e){return this._delegate.isEqual(e._delegate)},e}();var Zde={Firestore:Tde,GeoPoint:Sue,Timestamp:rne,Blob:Ide,Transaction:Ode,WriteBatch:Rde,DocumentReference:Nde,DocumentSnapshot:zde,Query:Ude,QueryDocumentSnapshot:Bde,QuerySnapshot:Hde,CollectionReference:qde,FieldPath:Yde,FieldValue:Kde,setLogLevel:function(e){var t;t=e,Ute.setLogLevel(t)},CACHE_SIZE_UNLIMITED:-1};!function(e){!function(e,t){e.INTERNAL.registerComponent(new Mi("firestore",(function(e){return function(e,t){return new Tde(e,new fue(e,t),new Gde)}(e.getProvider("app").getImmediate(),e.getProvider("auth-internal"))}),"PUBLIC").setServiceProps(Object.assign({},Zde)))}(e),e.registerVersion("@firebase/firestore","2.4.1")}(co);const $de=CC.object({id:CC.string(),photoId:CC.string(),coordinates:CC.array(CC.number()).length(8),maxCelcius:CC.number().optional(),minCelcius:CC.number().optional(),meanCelcius:CC.number().optional()}),Jde=$de.and(CC.object({type:CC.string(),position:yL,duplicated:CC.object({id:CC.string(),photoId:CC.string()}).optional()})),Qde=CC.object({inspectionId:CC.string(),photoId:CC.string(),panels:CC.array($de.or(Jde))}),ehe=function(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];const[r,i]=(0,n.useState)(),[o,s]=(0,n.useState)(),a=e=>{o&&o();try{const t=((e,t)=>co.firestore().collection("inspections").doc(e).onSnapshot((e=>{var n;const r=null===(n=e.data())||void 0===n?void 0:n.aiStatus;r&&t(r.toUpperCase())})))(e,(e=>{if(!e)return i(void 0);i(VC[e])}));s((()=>t))}catch(t){i(void 0)}};return(0,n.useEffect)((()=>{if(""===e)return i(void 0);const n=setTimeout((()=>{a(e)}),t?500:0);return()=>{clearTimeout(n),o&&o()}}),[e]),{aiStatus:r}},the=e=>{const{type:t,orthophotoStatus:r}=e.inspection,i=ehe(e.inspection.id).aiStatus,o=(0,n.useMemo)((()=>e.inspection.type===RC.TOWER?VC.NOT_AVAILABLE:i||(e.inspection.type===RC.SOLAR?e.inspection.status===OC.ANALYZED?VC.COMPLETE:VC.PENDING:VC.NOT_AVAILABLE)),[e.inspection,i]);return(0,Ae.jsxs)(wp,{display:"flex",justifyContent:"center",alignItems:"flex-end",children:[t!==RC.SOLAR_CONSTRUCTION&&(0,Ae.jsx)(mA,{status:o,withTooltip:!!e.inspection.aiTooltipMessage||i===VC.REJECTED,tooltipMessage:e.inspection.aiTooltipMessage}),r&&t===RC.SOLAR_CONSTRUCTION&&(0,Ae.jsx)(mA,{status:r})]})};var nhe=__webpack_require__(55808);const rhe=Zo()((()=>({root:{},mixError:{padding:"1rem",fontStyle:"italic"},syncButton:{marginLeft:"1.5rem"}})));function ihe(e){let{campaign:t,displayAiStatus:r,inspectionPercentagesMap:i,setInspectionPercentagesMap:o}=e;const{classes:s}=rhe(),[a,l]=(0,n.useState)([]),[c,u]=(0,n.useState)(!1),d=(0,n.useMemo)((()=>{if(!i)return[];[...i.keys()].filter((e=>e))}),[i]),h=on(),p=(0,n.useCallback)(((e,t)=>{o&&o((n=>{const r=new Map(n);return r.set(e,t),r}))}),[o]);(0,n.useEffect)((()=>{if(!Yy())return;const e=MM.liveQuery((()=>OM.inspections.toArray())).subscribe((e=>{e.forEach((e=>{null!==i&&void 0!==i&&i.has(e.id)||e.synced&&p(e.id,100)}))}));return()=>{e.unsubscribe()}}),[p,i]);const f=(0,n.useCallback)((async e=>{p(e,0),await rF(e,(t=>p(e,t)))}),[p]),g=(0,n.useCallback)((async e=>{await iF(e),null===o||void 0===o||o((t=>{const n=new Map(t);return n.delete(e),n}))}),[o]);(0,n.useEffect)((()=>{var e;l(null!==(e=t.inspections)&&void 0!==e?e:[])}),[]);const{isSolarCampaign:m,isWindCampaign:y,isConstructionCampaign:v}=(0,n.useMemo)((()=>OV(t)),[t]),{headCells:_,contentCells:b,type:x}=(0,n.useMemo)((()=>{const e=m?RC.SOLAR:y?RC.WIND:v?RC.SOLAR_CONSTRUCTION:null;return e?{type:e,...w8(Wy(),e,Yy(),r)}:{type:e,headCells:[],contentCells:[]}}),[m,y,v,r]);return x?(0,Ae.jsxs)("div",{className:s.root,children:[(0,Ae.jsx)(Ud,{open:c,onClose:()=>u(!1),anchorOrigin:{vertical:"center",horizontal:"center"},transformOrigin:{vertical:"center",horizontal:"center"},children:(0,Ae.jsxs)(vj,{padding:"2rem",borderRadius:"5px",justifyContent:"center",alignItems:"center",children:[(0,Ae.jsx)(vu,{children:"You are currently offline, you can only access synced inspections. Please connect to the internet to access all inspections."}),(0,Ae.jsx)(ev,{onClick:()=>u(!1),label:"Close"})]})}),(0,Ae.jsx)(jT,{ariaLabel:"subasset table",headCells:_,contentCells:b,rows:a,order:"desc",orderBy:"inspectionDate",selectRow:(e,t)=>{qy(t,"/inspections/".concat(e),h)},specificFormat:(e,t,n)=>{const r=null===i||void 0===i?void 0:i.get(n.id);switch(e){case"status":return(0,Ae.jsx)(C8,{status:n[e]});case"sync":return n.status!==OC.ANALYZED?(0,Ae.jsx)(cu,{title:"Unavailable with current status",children:(0,Ae.jsx)("div",{className:s.syncButton,children:(0,Ae.jsx)(ev,{onClick:e=>{e.stopPropagation()},disabled:!0,color:"question",frontIcon:(0,Ae.jsx)(nhe.c,{})})})}):(0,Ae.jsx)(Ae.Fragment,{children:void 0!==r&&100!==r?(0,Ae.jsxs)(vu,{color:"black",children:[r," %"]}):(0,Ae.jsx)(lF,{noIcon:!0,isChecked:100===r,onSyncSwitch:()=>{f(n.id)},onUnsyncSwitch:()=>g(n.id),entitySyncPercent:r})});case"photos":return"".concat(n.uploaded," / ").concat(Math.max(n.photoDatalength,n.uploaded));case"notes":return(0,Ae.jsx)("b",{children:n[e]});case"aiStatus":case"orthophotoStatus":return(0,Ae.jsx)(the,{inspection:n});case"download":return Yy()?(0,Ae.jsx)(Ae.Fragment,{}):n.isReportGenerated&&(0,Ae.jsx)(vM,{type:kC.INSPECTION,itemId:n.id})}},dense:!0,evenColumns:!0,maxHeight:"40vh",specificSort:(e,t,n)=>"download"===n?jy(e,t):ky(e,t,"photos"===n?"uploaded":n),noPagination:!0,allowedRows:!navigator.onLine&&Yy()?d:void 0,disabledRowCallback:()=>u(!0)})]}):(0,Ae.jsx)("p",{className:s.mixError,children:"It looks like you have mixed different types of inspections. Please edit campaign to see inspections."})}const ohe=e=>{var t,n,r,i,o;const s=Zo()((()=>({root:{columnGap:"1rem",...e.style}}))),{loading:a=!1,validateDisabled:l=!1,submit:c=!1,size:u,onValidate:d,onCancel:h}=e,{classes:p}=s(),f=null!==(t=e.validateText)&&void 0!==t?t:"Save",g=null!==(n=e.cancelText)&&void 0!==n?n:"Cancel",m=null!==(r=e.cancelAfter)&&void 0!==r&&r;return(0,Ae.jsxs)(wp,{display:"flex",justifyContent:"center",className:p.root,children:[!m&&(0,Ae.jsx)(ev,{disabled:a,label:g,color:"cancel",size:u,onClick:h}),(0,Ae.jsx)(ev,{disabled:null!==(i=a||l)&&void 0!==i&&i,loading:a,label:f,color:null!==(o=e.validateColor)&&void 0!==o?o:"primary",size:u,submit:c,onClick:c?void 0:d}),m&&(0,Ae.jsx)(ev,{disabled:a,label:g,color:"cancel",size:u,onClick:h})]})},she=Zo()((()=>({root:{padding:"1rem",minWidth:"50vw","& h3":{marginBottom:"1rem"}},inputName:{width:"100%",marginBottom:"1rem"},error:{marginTop:".5rem"}}))),ahe=e=>{var t;const{classes:r}=she(),{assetId:i}=(0,n.useContext)(m8),[o,s]=(0,n.useState)(!1),[a,l]=(0,n.useState)(!1),[c,u]=(0,n.useState)(null),[d,h]=(0,n.useState)([]),p={id:"",assetId:i,inspectionsIds:[],name:""},f=null!==(t=e.campaign)&&void 0!==t?t:p,[g,m]=(0,n.useState)(f),y=e.campaign?"Edit campaign":"Create campaign";(0,n.useEffect)((()=>{v()}),[]);const v=async()=>{var e;s(!0);const t=await NT(i,"all"),n=null!==(e=null===t||void 0===t?void 0:t.inspectionsList)&&void 0!==e?e:[];h(n),s(!1)};if(o)return(0,Ae.jsx)("div",{className:r.root,children:(0,Ae.jsx)($y,{size:30})});return(0,Ae.jsxs)("div",{className:r.root,children:[(0,Ae.jsx)("h3",{id:"form-title",children:y}),(0,Ae.jsx)(iE,{label:"Name",autoFocus:!0,required:!0,value:null===g||void 0===g?void 0:g.name,onChange:e=>{var t;t=e.target.value,u(null),m({...g,name:t})},variant:"outlined",inputProps:{maxLength:30},className:r.inputName}),(0,Ae.jsx)(jT,{ariaLabel:"inspections for campaign",headCells:[{id:"inspectionDate",label:"Inspection Date"},{id:"subAssetName",label:"Subasset"},{id:"status",label:"Status"},{id:"notes",label:"Notes",disablePadding:!0},{id:"campaign",label:"Campaign",disablePadding:!0}],contentCells:[{name:"inspectionDate",type:"date"},{name:"subAssetName"},{name:"status",type:"specific"},{name:"notes",type:"specific"},{name:"campaign",type:"specific"}],rows:d,order:"desc",orderBy:"inspectionDate",specificFormat:(e,t,n)=>{var r,i;switch(e){case"notes":return(0,Ae.jsx)("b",{children:n[e]});case"status":return(0,Ae.jsx)(C8,{status:n[e]});case"campaign":return null!==(r=null===n||void 0===n||null===(i=n.campaign)||void 0===i?void 0:i.name)&&void 0!==r?r:"No campaign"}},dense:!0,evenColumns:!0,maxHeight:"40vh",checkBox:{checkedAll:d.length===g.inspectionsIds.length,actionSelect:(e,t)=>{u(null);const n=g.inspectionsIds.includes(t);m(n?{...g,inspectionsIds:g.inspectionsIds.filter((e=>e!==t))}:{...g,inspectionsIds:[...g.inspectionsIds,t]})},checked:e=>g.inspectionsIds.includes(e),selectAll:()=>{u(null),m({...g,inspectionsIds:d.map((e=>{let{id:t}=e;return t}))})},unSelectAll:()=>{u(null),m({...g,inspectionsIds:[]})}},noPagination:!0}),(0,Ae.jsx)(ohe,{style:{marginTop:"1rem"},loading:a,onValidate:async()=>{if(""!==g.name)if(0!==g.inspectionsIds.length){u(null),l(!0);try{e.campaign?await(async e=>{const t={method:"POST",body:JSON.stringify(e)},n=await Ey("/campaigns/update",t);return!(!n||200!==n.status)})(g):await(async e=>{const t={method:"POST",body:JSON.stringify(e)},n=await Ey("/campaigns/create",t);if(n&&200===n.status)return await n.json();return!1})(g),e.close(!0)}catch(t){u("An error occurred")}finally{l(!1)}}else u("Choose at least one inspection");else u("Please provide a campaign name")},onCancel:()=>{e.close(!1)}}),c?(0,Ae.jsx)(pM,{color:"error",className:r.error,children:c}):null]})},lhe=Zo()((e=>({del:{color:e.palette.error.main}}))),che=()=>{const{classes:e}=lhe();return(0,Ae.jsx)(Bj,{fontSize:"medium",className:e.del})},uhe=Zo()((()=>({root:{columnGap:".5rem","& a":{textDecoration:"none"},"& button":{lineHeight:"0.9rem",padding:"0.5rem"}},formModal:{background:"white",maxWidth:"60%",margin:"10rem auto",borderRadius:".5rem"},threeDotsBtn:{padding:"0 .5rem",minWidth:"0"}}))),dhe=e=>{var t,r;const{classes:i}=uhe(),{campaign:o,reload:s}=e,{setInspectionPercentagesMap:a}=e,[l,c]=(0,n.useState)(),[u,d]=(0,n.useState)(!1),[h,p]=(0,n.useState)(null),[f,g]=(0,n.useState)(null),[m,y]=(0,n.useState)(!1),[v,_]=(0,n.useState)(!1),b={id:o.id,assetId:o.assetId,name:o.name,inspectionsIds:o.inspectionsIds},x=(0,n.useMemo)((()=>o.id),[o.id]);(0,n.useEffect)((()=>{if(!Yy())return;const e=MM.liveQuery((()=>OM.campaigns.toArray())).subscribe((e=>{const t=e.find((e=>e.id===x));c(t?100:void 0)}));return()=>{e.unsubscribe()}}),[x]);const S=null!==(t=null===o||void 0===o||null===(r=o.report)||void 0===r?void 0:r.storageUrl)&&void 0!==t&&t,w=()=>S?(0,Ae.jsx)(vM,{type:kC.CAMPAIGN,itemId:o.id}):(0,Ae.jsx)(ev,{disabled:!0,label:"Report not ready",color:"cancel"}),E=async()=>{try{_(!0),await(async e=>{const t=await Ey("/campaigns/".concat(e),{method:"DELETE"});if(t&&200===t.status)return await t.json();return!1})(o.id),s()}catch(e){}finally{_(!1)}},{isSolarCampaign:P,isWindCampaign:C}=(0,n.useMemo)((()=>OV(e.campaign)),[e.campaign]),A=(0,n.useMemo)((()=>{var t;return(null!==(t=e.campaign.inspections)&&void 0!==t?t:[]).some((e=>{let{status:t}=e;return t===OC.ANALYZED}))}),[e.campaign]),k=(0,n.useMemo)((()=>!A||!!P&&(Yy()&&!navigator.onLine&&100!==l)),[l,A,P]);return(0,Ae.jsxs)(Ae.Fragment,{children:[(0,Ae.jsxs)(wp,{display:"flex",alignItems:"stretch",className:i.root,children:[u&&(0,Ae.jsx)($y,{size:16,style:{width:"fit-content",paddingRight:"1rem",textAlign:"center",alignSelf:"center"}}),P&&A&&Yy()&&(void 0!==l&&100!==l?(0,Ae.jsx)(wp,{display:"flex",alignItems:"center",justifyContent:"center",paddingRight:"1rem",children:(0,Ae.jsxs)(vu,{noWrap:!0,children:[l," %"]})}):(0,Ae.jsx)(lF,{isChecked:100===l,entitySyncPercent:l,onSyncSwitch:async()=>{d(!0),c(0),await(async(e,t)=>{const n=await MV(e),{inspectionsIds:r}=n,i=r.map((e=>rF(e).finally((()=>OM.inspections.update(e,{synced:!0,timestamp:Date.now()}))))),{inspections:o}=await RA(r,!0),s=o[0].asset.id,a=o.map((e=>e.subAsset.id)),l=[RV(),IT(""),OT()];await Promise.all(Ky([GV(s,a),...i,...l],t)).finally((()=>{OM.campaigns.add({id:e,timestamp:Date.now()})}))})(x,c),c(100),d(!1)},onUnsyncSwitch:async()=>{d(!0),await(async(e,t)=>{const n=await MV(e),{inspectionsIds:r}=n,i=r.flatMap((e=>iF(e,!0)));await Promise.all(i),await Promise.all(r.map((e=>(t((t=>(t.delete(e),new Map(t)))),OM.inspections.delete(e))))),setTimeout((()=>{OM.campaigns.delete(e)}),1e3)})(x,a),c(void 0),d(!1)}})),(C||P)&&(0,Ae.jsx)(fn,{to:k?"#":"/results/campaign/".concat(o.id),children:(0,Ae.jsx)(ev,{fullHeight:!0,disabled:k,children:"View results"})}),P&&!Yy()&&(0,Ae.jsx)(w,{}),(0,Ae.jsx)(cu,{title:"More options",children:(0,Ae.jsx)(Sa,{onClick:e=>{p(e.currentTarget)},className:i.threeDotsBtn,children:(0,Ae.jsx)(yM,{size:25})})})]}),(0,Ae.jsxs)(Qd,{id:"campaign-menu",anchorEl:h,open:null!==h,onClose:()=>p(null),children:[(0,Ae.jsxs)(dh,{onClick:()=>{p(null),y(!0)},children:[(0,Ae.jsx)(M5,{children:(0,Ae.jsx)(Zh,{fontSize:"small"})}),(0,Ae.jsx)(Hq,{primary:"Edit campaign"})]}),(0,Ae.jsx)(Qq,{}),(0,Ae.jsxs)(dh,{onClick:()=>{g(h),p(null)},children:[(0,Ae.jsx)(M5,{children:(0,Ae.jsx)(che,{})}),(0,Ae.jsx)(Hq,{primary:"Delete campaign"})]})]}),(0,Ae.jsx)(Td,{open:m,onClose:()=>y(!1),"aria-labelledby":"form-title",children:(0,Ae.jsx)("div",{className:i.formModal,children:(0,Ae.jsx)(ahe,{close:e=>{y(!1),e&&s()},campaign:b})})}),null!==f&&(0,Ae.jsx)(nv,{topTitle:"Delete campaign ".concat(o.name),title:"Do you confirm deleting campaign ".concat(o.name,"? All inspections will be unassigned."),close:()=>{g(null)},confirm:()=>{E()},titleConfirm:"Delete",anchorEl:f,loading:v})]})},hhe=async e=>{const t=await Ey("/assets/".concat(e,"/unassignedInspections"),{method:"GET"});if(t&&200===t.status){return await t.json()}return!1};let phe=function(e){return e.NO_WIND_AI="NO_WIND_AI",e.WIND_AI_AUTO_TAG="WIND_AI_AUTO_TAG",e.WIND_AI_AUTO_ANNOTATE="WIND_AI_AUTO_ANNOTATE",e}({});const fhe=Object.freeze({[phe.NO_WIND_AI]:"No wind AI",[phe.WIND_AI_AUTO_TAG]:"Wind AI auto tag",[phe.WIND_AI_AUTO_ANNOTATE]:"Wind AI auto annotate"}),ghe=Zo()((()=>({title:{color:"black"},formModal:{background:"white",maxWidth:Wy()?"90%":"60%",margin:"10rem auto"}}))),mhe=e=>{const{asset:t}=e,{classes:r}=ghe(),{assetId:i}=(0,n.useContext)(m8),[o,s]=(0,n.useState)(!1),[a,l]=(0,n.useState)([]),[c,u]=(0,n.useState)([]),[d,h]=(0,n.useState)([]),[p,f]=(0,n.useState)(!1),[g,m]=(0,n.useState)(new Map),y=(0,n.useMemo)((()=>{var e;const n=(null!==(e=t.windAIMode)&&void 0!==e?e:phe.NO_WIND_AI)!==phe.NO_WIND_AI;return t.type===HB.SOLAR||n}),[t]),v=(0,n.useCallback)((async()=>{s(!0);const[e,t]=await Promise.all([TV(i),hhe(i)]);if(e){const t=e.map((e=>{var t;const n=(null!==(t=e.inspections)&&void 0!==t?t:[]).map((e=>{let{type:t}=e;return t}));return{...e,types:n}}));l(t)}if(t){const[e,n]=t.reduce(((e,t)=>(t.type===RC.SOLAR_CONSTRUCTION?e[1].push(t):e[0].push(t),e)),[[],[]]);u(e),h(n)}s(!1)}),[i]);(0,n.useEffect)((()=>{v()}),[v]);const _=e=>{f(!1),e&&v()},b=(0,n.useCallback)((()=>(0,Ae.jsxs)(Ae.Fragment,{children:[(0,Ae.jsxs)(wp,{display:"flex",justifyContent:"space-between",children:[!Wy()&&(0,Ae.jsx)("h3",{className:r.title,children:"Campaigns"}),(0,Ae.jsx)(ev,{variant:"outlined",textColor:Gp,label:"Manage campaigns",frontIcon:(0,Ae.jsx)(g8.c,{}),onClick:()=>{f(!0)}})]}),(0,Ae.jsx)(Td,{open:p,onClose:()=>f(!1),"aria-labelledby":"form-title",children:(0,Ae.jsx)("div",{className:r.formModal,children:(0,Ae.jsx)(ahe,{close:_})})})]})),[p]),x=(0,n.useMemo)((()=>a.sort(((e,t)=>{const n=e.inspections,r=t.inspections,i=null===n||void 0===n?void 0:n.reduce(((e,t)=>{if(!t.inspectionDate)return e;const n=new Date(t.inspectionDate).getTime();return n>e?n:e}),0),o=null===r||void 0===r?void 0:r.reduce(((e,t)=>{if(!t.inspectionDate)return e;const n=new Date(t.inspectionDate).getTime();return n>e?n:e}),0);return i&&o?o-i:0}))),[a]),S=(0,n.useMemo)((()=>({id:"unassigned",name:"Unassigned inspections",assetId:i,inspections:c,inspectionsIds:c.map((e=>{let{id:t}=e;return t})),types:c.map((e=>{let{type:t}=e;return t}))})),[i,c]),w=(0,n.useMemo)((()=>({id:"unassignedConstrution",name:"Unassigned construction inspections",assetId:i,inspections:d,inspectionsIds:d.map((e=>{let{id:t}=e;return t})),types:d.map((e=>{let{type:t}=e;return t}))})),[i,d]);return o?(0,Ae.jsxs)(Ae.Fragment,{children:[(0,Ae.jsx)(b,{}),(0,Ae.jsx)($y,{size:40})]}):0===a.length&&0===c.length&&0===d.length?(0,Ae.jsxs)(Ae.Fragment,{children:[(0,Ae.jsx)(b,{}),(0,Ae.jsx)(pM,{color:"info",style:{margin:"2rem"},children:"No campaigns or inspections found for this asset"})]}):(0,Ae.jsxs)(ws,{container:!0,direction:"column",wrap:"nowrap",rowGap:"0.5rem",children:[(0,Ae.jsx)(b,{}),x.map(((e,t)=>{var n;return(0,Ae.jsx)(f8,{noMargin:!0,withAccordion:!0,title:"".concat(e.name," (").concat((null!==(n=null===e||void 0===e?void 0:e.inspections)&&void 0!==n?n:[]).length,")"),defaultExpanded:0===t,action:(0,Ae.jsx)(dhe,{campaign:e,reload:v,setInspectionPercentagesMap:m}),childComp:(0,Ae.jsx)(ihe,{campaign:e,displayAiStatus:y,inspectionPercentagesMap:g,setInspectionPercentagesMap:m})},e.id)})),c.length>0&&(0,Ae.jsx)(f8,{withAccordion:!0,defaultExpanded:0===a.length,noMargin:!0,title:"Unassigned inspections (".concat(c.length,")"),childComp:(0,Ae.jsx)(ihe,{campaign:S,displayAiStatus:y,inspectionPercentagesMap:g,setInspectionPercentagesMap:m})}),d.length>0&&(0,Ae.jsx)(f8,{withAccordion:!0,noMargin:!0,defaultExpanded:0===a.length,title:"Unassigned construction inspections (".concat(d.length,")"),childComp:(0,Ae.jsx)(ihe,{campaign:w,displayAiStatus:y})})]})},yhe=e=>{const t=e.split("."),n=t.pop();return{fileName:t.join("."),extension:n}},vhe=(0,n.createContext)({getDocuments:()=>Promise.resolve([]),postDocument:()=>Promise.reject(),deleteDocument:()=>Promise.reject()}),_he=Zo()((e=>({root:{...wU,display:"inline-block",position:"relative",padding:".5rem 0",minWidth:"4rem",maxWidth:"6rem"},fileName:{overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis",padding:"0 .2rem"},fileIcon:{margin:"auto"},delIcon:{position:"absolute",top:".1rem",right:".1rem",color:e.palette.error.main,"&:hover":{cursor:"pointer",...wU}}}))),bhe=e=>{var t;const{classes:n}=_he(),r=null!==(t=null===e||void 0===e?void 0:e.deletable)&&void 0!==t&&t;return(0,Ae.jsxs)("div",{onClick:null===e||void 0===e?void 0:e.onFileClick,className:n.root,children:[(0,Ae.jsxs)(wp,{display:"flex",flexDirection:"column",title:e.file.name,children:[(0,Ae.jsx)("div",{className:n.fileIcon,children:(0,Ae.jsx)(bq,{fileName:e.file.name,colorType:"multiColor",size:"1.5rem"})}),(0,Ae.jsx)("p",{className:n.fileName,children:e.file.name})]}),r&&(0,Ae.jsx)(tp,{className:n.delIcon,onClick:t=>{var n;(t.stopPropagation(),r)&&(null===e||void 0===e||null===(n=e.onDeleteClick)||void 0===n||n.call(e))}})]})},xhe=async e=>{const t=await fetch(e);for(const[n,r]of t.headers.entries())if("content-length"===n)return Number(r);return 0},She=e=>1024*e*1024,whe=async(e,t,n)=>{const r={method:"POST",body:JSON.stringify({url:e})},i=await Ey("/upload?externalUserCode=".concat(encodeURIComponent(null!==n&&void 0!==n?n:"")),r);if(200!==i.status)return;const o=await i.json();if(!o)return;const s={method:"PUT",body:t,headers:new Headers};return fetch(o.signedUrl,s)},Ehe=async function(e,t,n){let r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:5;const i={method:"POST",body:JSON.stringify({url:e})},o=await Ey("/upload?action=resumable",i);if(200!==o.status)return;const s=await o.json();if(!s)return;const a=s.signedUrl,l=1024*r*1024,c=t.type,u=t.size;let d=0,h=l-1;const p=await fetch(a,{method:"POST",headers:{"Content-Type":"application/octet-stream","Content-Length":"0","x-goog-resumable":"start"}});if(!p.ok)throw new Error("Failed to init chunk upload: ".concat(p.statusText));const f=p.headers.get("Location");if(!f)throw new Error("Failed to init chunk upload: uploadUrl is not a string");const g=()=>Math.round(d/u*100);for(;d<u;){null===n||void 0===n||n(g(),d,u);const e=t.slice(d,h+1),r={method:"PUT",headers:{"Content-Type":c,"Content-Range":"bytes ".concat(d,"-").concat(h,"/").concat(u)},body:e},i=await fetch(f,r);if(!i.ok){if(308!==i.status)throw new Error("Failed to upload file: ".concat(i.statusText))}d=h+1,h=Math.min(h+l,u-1),null===n||void 0===n||n(g(),d,u)}return!0},Phe=async e=>{const t=await Ey("/files/?fileUrl=".concat(e));if(200!==t.status)return;const n=await t.json();return n||void 0},Che={marginBottom:"0.5rem",fontSize:"1.2rem"},Ahe=Zo()(((e,t)=>({root:{width:"100%",height:"100%",borderWidth:3,borderRadius:3,borderColor:t?Rp:e.palette.primary.main,borderStyle:"dashed",flex:1,display:"flex",flexDirection:"column",alignItems:"center",backgroundColor:"#fafafa",color:"#5d5d5d",outline:"none",transition:"border .24s ease-in-out","&:hover":{cursor:t?"inital":"pointer"},userSelect:"none"},activeStyle:{borderColor:"#2196f3"},acceptStyle:{borderColor:"#00e676"},rejectStyle:{borderColor:"#00e676"},acceptedFilesTitle:{...Che,color:e.palette.primary.main},rejectedFilesTitle:{...Che,color:e.palette.error.main}}))),khe=e=>{var t,r;const{FileLoadedComp:i,disabled:o=!1}=e,{classes:s}=Ahe(o),a=null!==(t=null===e||void 0===e?void 0:e.maxSize)&&void 0!==t?t:25e6,l=null!==(r=null===e||void 0===e?void 0:e.maxFiles)&&void 0!==r?r:0,[c,u]=(0,n.useState)([]),d=(0,n.useMemo)((()=>{var t;return null!==(t=e.height)&&void 0!==t?t:"5rem"}),[e.height]),h=e=>{const t=c.filter((t=>{let{timestamp:n}=t;return n!==e.timestamp}));p(t)},p=t=>{var n;u(t),null===e||void 0===e||null===(n=e.onLoadedFilesChange)||void 0===n||n.call(e,t)},{getRootProps:f,getInputProps:g,isDragActive:m,isDragAccept:y,isDragReject:v,fileRejections:_}=pq({onDrop:async e=>{const t=e.map((e=>({file:e,timestamp:(new Date).getTime(),url:URL.createObjectURL(e)})));if(l>0){const n=l-c.length,r=e.length-n;t.splice(-r,r)}p([...c,...t])},maxSize:a,maxFiles:l,multiple:1!==l,accept:e.filesType,disabled:o}),b=(0,n.useMemo)((()=>c.map((e=>null===i?(0,Ae.jsx)(Ae.Fragment,{}):i?(0,Ae.jsx)("span",{children:(0,Ae.jsx)(i,{file:e,deleteFn:()=>h(e)})},"uploaded-".concat(e.timestamp,"-").concat(e.file.name)):(0,Ae.jsx)("span",{style:{margin:".2rem"},children:(0,Ae.jsx)(bhe,{file:e.file,deletable:!o,onDeleteClick:()=>{h(e)}})},"uploaded-".concat(e.timestamp,"-").concat(e.file.name))))),[c,o]),x=e=>{var t;const n=a/1e6;return"file-too-large"===e.code?"File is larger than ".concat(n,"MB"):null!==(t=null===e||void 0===e?void 0:e.message)&&void 0!==t?t:"An error occured"},S=_.map(((e,t)=>{let{file:n,errors:r}=e;return(0,Ae.jsxs)("li",{children:[(0,Ae.jsx)("b",{children:n.name}),": ",x(null===r||void 0===r?void 0:r[0])]},t)})),w=[s.root,m?s.activeStyle:"",y?s.acceptStyle:"",v?s.rejectStyle:""].join(" ");return(0,Ae.jsxs)(Ae.Fragment,{children:[(c.length<l||0===l)&&(0,Ae.jsx)("div",{...f({className:w}),children:(0,Ae.jsxs)(wp,{height:d,width:"100%",display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center",children:[(0,Ae.jsx)("input",{...g()}),(0,Ae.jsx)("p",{children:e.text}),l>0&&(0,Ae.jsxs)("p",{children:["Limited to ","".concat(l," file").concat(1===l?"":"s")]})]})}),c.length>0&&(0,Ae.jsxs)(Ae.Fragment,{children:[(0,Ae.jsxs)("div",{className:s.acceptedFilesTitle,children:["Uploaded file",1===c.length?"":"s"]}),(0,Ae.jsx)("div",{children:b})]}),e.uploadButton&&c.length>0&&(0,Ae.jsx)(ev,{style:{marginTop:"1rem"},onClick:()=>{if(e.uploadButton)if(e.onUploadButtonClick)e.onUploadButtonClick();else{if(!e.uploadPath)throw new Error("uploadPath is required");c.forEach((t=>{whe("".concat(e.uploadPath,"/").concat(t.file.name),t.file)}))}},children:"Upload"}),_.length>0&&(0,Ae.jsxs)(Ae.Fragment,{children:[(0,Ae.jsx)("div",{className:s.rejectedFilesTitle,children:"Rejected files"}),(0,Ae.jsx)("ul",{style:{marginLeft:"1rem"},children:S})]})]})},jhe=Zo()((()=>({container:{padding:"1rem",minWidth:"25vw"},textField:{marginTop:"1rem"},btnContainer:{marginTop:"1rem",columnGap:"1rem"}}))),Ihe=e=>{const{classes:t}=jhe(),{postDocument:r}=(0,n.useContext)(vhe),[i,o]=(0,n.useState)(null),[s,a]=(0,n.useState)(""),[l,c]=(0,n.useState)(!1),[u,d]=(0,n.useState)(null);return(0,Ae.jsx)(Ae.Fragment,{children:(0,Ae.jsxs)(wp,{display:"flex",flexDirection:"column",className:t.container,children:[(0,Ae.jsx)(khe,{onLoadedFilesChange:e=>{var t;d(null),o(null!==(t=null===e||void 0===e?void 0:e[0])&&void 0!==t?t:null)},text:"Drag and drop file here",maxFiles:1}),(0,Ae.jsx)(iE,{color:"primary",label:"Document summary",multiline:!0,maxRows:3,disabled:l,inputProps:{maxLength:400},value:s,onChange:e=>a(e.target.value),className:t.textField,variant:"outlined"}),u?(0,Ae.jsx)(pM,{style:{marginTop:"1rem"},severity:"error",children:u}):null,(0,Ae.jsx)(ohe,{style:{marginTop:"1rem"},loading:l,onValidate:async()=>{if(d(null),i){c(!0);try{await r(i.file,s),e.onSave()}catch(t){d("An error occured")}finally{c(!1)}}else d("No file uploaded")},onCancel:()=>{e.onClose()}})]})})},Ghe=Zo()((()=>({addDocumentContainer:{margin:"0 auto",textAlign:"center"}}))),The=e=>{const{classes:t}=Ghe(),[r,i]=(0,n.useState)(!1),[o,s]=(0,n.useState)(null),a=()=>{i(!1)};return(0,Ae.jsxs)(Ae.Fragment,{children:[(0,Ae.jsx)("div",{className:t.addDocumentContainer,children:(0,Ae.jsx)(ev,{label:"Add document",frontIcon:(0,Ae.jsx)(qj,{size:16}),size:"medium",onClick:e=>{s(e.currentTarget),i(!0)}})}),(0,Ae.jsx)(Ud,{anchorEl:o,open:r,onClose:()=>i(!1),anchorOrigin:{vertical:"top",horizontal:"center"},transformOrigin:{vertical:"bottom",horizontal:"center"},children:(0,Ae.jsx)(Ihe,{onSave:()=>{e.onSave(),a()},onClose:a})})]})},Mhe=Zo()((e=>({root:{},fileName:{display:"flex",alignItems:"center",maxWidth:"40%","& p":{whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis"}},fileIcon:{flexShrink:0,marginRight:".2rem"},waitIcon:{padding:"11px"},description:{flexGrow:1,marginLeft:"1rem"},delIcon:{color:e.palette.error.main}}))),Ohe=e=>{const{classes:t}=Mhe(),r=e.document,{deleteDocument:i}=(0,n.useContext)(vhe),[o,s]=(0,n.useState)(!1),[a,l]=(0,n.useState)(null),[c,u]=(0,n.useState)(!1);return(0,Ae.jsxs)(Ae.Fragment,{children:[(0,Ae.jsxs)(wp,{display:"flex",alignItems:"center",justifyContent:"space-between",className:t.root,children:[o?(0,Ae.jsx)("span",{className:t.waitIcon,children:(0,Ae.jsx)($y,{size:20})}):(0,Ae.jsx)(Gu,{component:"span",onClick:e=>{l(e.currentTarget),u(!0)},children:(0,Ae.jsx)(Bj,{className:t.delIcon,size:20})}),(0,Ae.jsxs)(dB,{href:r.url,target:"_blank",className:t.fileName,children:[(0,Ae.jsx)(bq,{fileName:null===r||void 0===r?void 0:r.fileName,colorType:"multiColor",size:"1.5rem",className:t.fileIcon}),(0,Ae.jsx)("p",{children:r.fileName})]}),(0,Ae.jsx)("p",{className:t.description,children:r.text})]}),c&&(0,Ae.jsx)(nv,{topTitle:"Delete document",title:"Do you confirm deleting ".concat(r.fileName,"?"),close:()=>{u(!1)},confirm:()=>{(async()=>{u(!1),s(!0);try{await i(r.id),e.onDeleted(r.id)}catch(t){e.onError()}finally{s(!1)}})()},titleConfirm:"Delete",anchorEl:a})]})},Rhe=e=>{const[t,r]=(0,n.useState)([]),[i,o]=(0,n.useState)(!1),[s,a]=(0,n.useState)(null),{getDocuments:l}=(0,n.useContext)(vhe);(0,n.useEffect)((()=>{c(),e.reloadFn(c)}),[]);const c=async()=>{o(!0);try{const e=await l();r(e)}catch(e){d()}finally{o(!1)}},u=e=>{const n=t.filter((t=>{let{id:n}=t;return n!==e}));r(n)},d=()=>{r([]),a("An error occured")};return i?(0,Ae.jsx)($y,{style:{padding:"2rem 0"}}):0===t.length?(0,Ae.jsxs)("div",{style:{textAlign:"center",padding:"2rem 0"},children:[(0,Ae.jsx)("h5",{children:"Have all your key documents at your disposal here."}),(0,Ae.jsx)("p",{children:(0,Ae.jsx)("i",{children:"Master service agreement, asset initial audit, insurance contracts, \u2026"})})]}):(0,Ae.jsxs)(Ae.Fragment,{children:[s?(0,Ae.jsx)(pM,{severity:"error",children:s}):null,(0,Ae.jsx)(ws,{container:!0,direction:"column",wrap:"nowrap",padding:"0.5rem",children:t.map(((e,t)=>(0,Ae.jsx)(ws,{item:!0,children:(0,Ae.jsx)(Ohe,{document:e,onDeleted:u,onError:d})},"doc-".concat(t))))})]})},Dhe=Zo()((()=>({popover:{padding:20,width:400},title:{color:"darkRed",fontSize:22,paddingBottom:10},question:{paddingBottom:20},buttonGroup:{display:"flex",justifyContent:"space-around"}}))),Nhe=e=>{const{classes:t}=Dhe();return(0,Ae.jsxs)("div",{className:t.popover,children:[(0,Ae.jsx)("div",{className:t.title,children:e.title}),(0,Ae.jsx)("div",{className:t.question,children:e.children}),(0,Ae.jsx)(ohe,{loading:e.loading,validateText:e.validateText,cancelText:e.cancelText,onCancel:e.onCancel,onValidate:e.onConfirm})]})},Lhe=async(e,t,n)=>{const r={method:"PATCH",body:JSON.stringify(n)};return Ey("/assets/".concat(e,"/").concat(t),r)};let Vhe=function(e){return e.TURBINE="turbine",e.A="A",e.B="B",e.C="C",e.TOWER="tower",e}({}),Fhe=function(e){return e.CLOCKWISE="Clockwise",e.ANTICLOCKWISE="AntiClockwise",e}({}),zhe=function(e){return e.INSPECTIONS_EXISTS="INSPECTIONS_EXISTS",e}({});const Bhe=Zo()((()=>({title:{float:"left",fontSize:24},header:{height:50},table:{background:"white",padding:15,outline:"none",borderRadius:7,width:"80%"},modal:{display:"flex",alignItems:"center",justifyContent:"center"},cell:{width:"20%",color:"black",padding:10},cellName:{width:"20%",color:"black",padding:10,textAlign:"center"},inputCb:{height:20,padding:5},input:{height:40,padding:5,borderColor:"#00A6FF",borderRadius:7},tbody:{maxHeight:500,overflowY:"auto",display:"block"},row:{display:"table",width:"100%",tableLayout:"fixed"}})));function Uhe(e){const{classes:t}=Bhe(),[r,i]=(0,n.useState)([]),[o,s]=(0,n.useState)(null),[a,l]=(0,n.useState)(!1);(0,n.useEffect)((()=>{const t=Oy(e.subAssetsList,"name")?e.subAssetsList.map((e=>e)).sort(((e,t)=>parseInt(e.name,10)>parseInt(t.name)?1:-1)):e.subAssetsList.map((e=>e)).sort(((e,t)=>e.name>t.name?1:-1)),n=t.map((e=>{var t,n,r,i,o,s,a,l,c,u,d;return{subAssetId:e.id,subAssetName:e.name,turbine:null!==(t=null===(n=e.serials)||void 0===n?void 0:n.turbine)&&void 0!==t?t:"",A:null!==(r=null===(i=e.serials)||void 0===i?void 0:i.A)&&void 0!==r?r:"",B:null!==(o=null===(s=e.serials)||void 0===s?void 0:s.B)&&void 0!==o?o:"",C:null!==(a=null===(l=e.serials)||void 0===l?void 0:l.C)&&void 0!==a?a:"",tower:null!==(c=null===(u=e.serials)||void 0===u?void 0:u.tower)&&void 0!==c?c:"",bladesAntiClockWise:null!==(d=e.bladesAntiClockWise)&&void 0!==d&&d}}));i(n)}),[e.subAssetsList]);const c=(e,t,n)=>{const o=JSON.parse(JSON.stringify(r));o[e][t]=n,i(o)},u=(e,n,r)=>(0,Ae.jsx)("td",{className:t.cell,children:(0,Ae.jsx)("input",{type:"text",value:e[r]?e[r]:"",className:t.input,onChange:e=>c(n,r,e.target.value)})}),d=(e,n,r)=>(0,Ae.jsx)("td",{className:t.cell,children:(0,Ae.jsx)("input",{type:"checkbox",checked:!!e[r]&&e[r],className:t.inputCb,onChange:e=>c(n,r,e.target.checked)})}),h=async()=>{l(!0);try{await Promise.all(r.map((t=>{const n={bladesAntiClockWise:t.bladesAntiClockWise,serials:{turbine:t.turbine,A:t.A,B:t.B,C:t.C,tower:t.tower}};return Lhe(e.assetId,t.subAssetId,n)}))),await LT(e.assetId),e.close(),s(null)}catch(t){}finally{l(!1)}},p=()=>{s(null)};return(0,Ae.jsxs)(Ae.Fragment,{children:[(0,Ae.jsx)(Td,{open:!0,className:t.modal,children:(0,Ae.jsxs)("div",{className:t.table,children:[(0,Ae.jsxs)("div",{className:t.header,children:[(0,Ae.jsx)("div",{className:t.title,children:"Turbines serial numbers"}),(0,Ae.jsx)(ev,{label:"Update",onClick:t=>{const n=r.some((t=>{const n=e.subAssetsList.find((e=>{let{id:n}=e;return n===t.subAssetId}));return(null===n||void 0===n?void 0:n.bladesAntiClockWise)!==t.bladesAntiClockWise}));n?s(t.currentTarget):h()},style:{float:"right"},loading:a}),(0,Ae.jsx)(ev,{label:"Cancel",color:"cancel",onClick:()=>e.close(),style:{float:"right",marginRight:15}})]}),(0,Ae.jsxs)("table",{children:[(0,Ae.jsx)("thead",{children:(0,Ae.jsxs)("tr",{className:t.row,children:[(0,Ae.jsx)("th",{className:t.cell,children:"Name"}),(0,Ae.jsx)("th",{className:t.cell,children:"Turbine"}),(0,Ae.jsx)("th",{className:t.cell,children:"Blade A"}),(0,Ae.jsx)("th",{className:t.cell,children:"Blade B"}),(0,Ae.jsx)("th",{className:t.cell,children:"Blade C"}),(0,Ae.jsx)("th",{className:t.cell,children:"Tower"}),(0,Ae.jsx)("th",{className:t.cell,children:"Anticlockwise"})]})}),(0,Ae.jsx)("tbody",{className:t.tbody,children:r.map(((e,n)=>((e,n)=>(0,Ae.jsxs)("tr",{className:t.row,children:[(0,Ae.jsx)("td",{className:t.cellName,children:e.subAssetName}),Object.values(Vhe).map((t=>u(e,n,t))),d(e,n,"bladesAntiClockWise")]},n))(e,n)))})]})]})}),(0,Ae.jsx)(Ud,{open:null!==o,onClose:p,anchorEl:o,anchorOrigin:{vertical:"bottom",horizontal:"right"},transformOrigin:{vertical:"top",horizontal:"right"},children:(0,Ae.jsxs)(Nhe,{title:"Change Clockwise / Anti Clockwise",loading:!1,onCancel:p,onConfirm:h,children:[(0,Ae.jsx)("p",{children:"You are about to change the blades naming direction. This will have an impact on all inspections."}),(0,Ae.jsx)("b",{children:"Do you confirm changing the direction?"})]})})]})}const Whe=e=>e&&void 0!==e.id&&void 0!==e.name,Hhe=e=>Whe(e)&&void 0!==e.lat&&void 0!==e.lon&&void 0!==e.power&&e.power>=1&&!isNaN(e.lat)&&!isNaN(e.lon)&&void 0!==e.model,qhe=async(e,t)=>{const n=await Ey("/assets/".concat(e,"/").concat(t),{method:"GET"});if(n){const e=await n.json();if(Whe(e))return e;throw new Error("Response is not a valid subAsset")}throw new Error("Unknown error while fetching subAsset")},Xhe=(e,t,n)=>{if("name"===n){const n=e.map((e=>e));return n.sort(((e,t)=>isNaN(Number(e.name))||isNaN(Number(t.name))?!isNaN(Number(e.name))&&isNaN(Number(t.name))?1:isNaN(Number(e.name))&&!isNaN(Number(t.name))||e.name<t.name?-1:e.name>t.name?1:0:Number(e.name)-Number(t.name))),"asc"===t?n:n.reverse()}return ky(e,t,n)},Yhe=async(e,t,n)=>{const r={method:"PATCH",body:JSON.stringify(n)};return Ey("/assets/".concat(e,"/").concat(t),r)},Khe=(e,t,n,r,i)=>{const o={method:"PATCH",body:JSON.stringify({company:e,userId:r,task:i})};return Ey("/assets/".concat(t,"/").concat(n,"/expert-inspections-rights"),o)},Zhe=[{id:"id",label:"id",hidden:!0},{id:"name",label:"Name"},{id:"model",label:"Model"},{id:"lastInspectionDate",label:"Last Inspection"},{id:"poweringDate",label:"Powering Date"},{id:"nbInspections",numeric:!0,label:"# inspections"}],$he=[{name:"id",hidden:!0},{name:"name"},{name:"model"},{name:"lastInspectionDate",type:"date"},{name:"poweringDate",type:"date"},{name:"nbInspections"}];function Jhe(e){let{asset:t}=e;const r=on(),[i,o]=(0,n.useState)(!1),s=(0,n.useMemo)((()=>t.assetInfos),[t.assetInfos]),a=(0,n.useMemo)((()=>{var e;return null!==(e=t.subAssets)&&void 0!==e?e:[]}),[t.subAssets]);return(0,Ae.jsxs)("div",{children:[(0,Ae.jsx)(jT,{ariaLabel:"subasset table",headCells:Zhe,order:"asc",orderBy:"name",rows:a,contentCells:$he,selectRow:e=>{r.push("/assets/".concat(s.id,"/").concat(e))},specificSort:Xhe,dense:!0,maxHeight:"calc(100vh - 542px)"}),s.type===HB.WIND&&(0,Ae.jsx)(ev,{label:"Turbines serial numbers",onClick:()=>o(!0),style:{margin:10}}),i&&(0,Ae.jsx)(Uhe,{assetId:s.id,close:()=>o(!1),subAssetsList:a})]})}function Qhe(e){return(0,hs.c)("MuiCardContent",e)}(0,ds.c)("MuiCardContent",["root"]);const epe=["className","component"],tpe=(0,cs.cp)("div",{name:"MuiCardContent",slot:"Root",overridesResolver:(e,t)=>t.root})((()=>({padding:16,"&:last-child":{paddingBottom:24}}))),npe=n.forwardRef((function(e,t){const n=(0,Oe.c)({props:e,name:"MuiCardContent"}),{className:r,component:i="div"}=n,o=(0,Tt.c)(n,epe),s=(0,d.c)({},n,{component:i}),a=(e=>{const{classes:t}=e;return(0,ls.c)({root:["root"]},Qhe,t)})(s);return(0,Ae.jsx)(tpe,(0,d.c)({as:i,className:(0,ts.c)(a.root,r),ownerState:s,ref:t},o))})),rpe=e=>e&&e.id&&e.name,ipe=e=>null!=e.location&&null==e.area,ope=e=>{var t;const{asset:r}=e,i=b(gg).filter((e=>"planned"!==e.status&&e.assetId===r.assetInfos.id)),o=(0,n.useMemo)((()=>r.assetInfos),[r.assetInfos]),s=(0,n.useMemo)((()=>{var e;return null===(e=r.subAssets)||void 0===e?void 0:e.every((e=>rpe(e)&&e.isConstruction))}),[r.subAssets]),a=on(),l=WB(i,null!==(t=o.subAssetsCount)&&void 0!==t?t:0),c=(e,t)=>{let n=e?e[t.content]:"";return n="oldestInspection"===t.content&&l||n,n=t.date?new Date(String(n)).toLocaleDateString():n,n=t.trailing?"".concat(n," ").concat(t.trailing):n,n},u=[{title:"Oldest inspection",content:"oldestInspection",date:!0},...s?[]:[{title:"Powering date",content:"poweringDate",date:!0}]];return vB()&&u.unshift({title:"Company",content:"company"}),(0,Ae.jsx)(npe,{style:{minHeight:175},children:(0,Ae.jsxs)(ws,{container:!0,direction:"column",wrap:"nowrap",rowGap:"1rem",children:[(0,Ae.jsx)(ws,{item:!0,container:!0,spacing:5,children:[u,[{title:"Total power",content:"totalPower",trailing:"kW"},{title:"Number of sub-assets",content:"subAssetsCount"}]].map(((e,t)=>(0,Ae.jsx)(ws,{item:!0,xs:6,children:e.map(((e,t)=>(0,Ae.jsxs)("div",{style:{marginBottom:"5px"},children:[(0,Ae.jsxs)("span",{style:{fontWeight:"bolder",marginRight:"5px"},children:[e.title,":"]}),(0,Ae.jsx)("span",{children:c(o,e)})]},t)))},t)))}),(0,Ae.jsx)(ws,{item:!0,children:(0,Ae.jsx)(cu,{title:"inactive"==o.status?"Your asset is inactive":"",children:(0,Ae.jsx)("div",{style:{width:"fit-content"},children:(0,Ae.jsx)(ev,{label:"Plan a new inspection",disabled:"inactive"===o.status,onClick:()=>a.push("/inspections/new?assetId=".concat(o.id))})})})})]})})};var spe=__webpack_require__(16016);const ape=e=>String(e).toLowerCase().match(/^(([^<>()[\]\\.,;:\s@"]+(\.[^<>()[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/);function lpe(e){const t=Zo()((e=>({root:{width:"100%",backgroundColor:e.palette.background.paper},text:{paddingLeft:30},nbItem:{paddingLeft:20,color:"black",fontSize:14}}))),{classes:n}=t();return(0,Ae.jsx)(Lu,{dense:!0,className:n.root,children:e.infos.map((t=>{var r;return(0,Ae.jsxs)(Bq,{style:{display:"flex",justifyContent:"space-between",alignItems:"center"},children:[(0,Ae.jsxs)(wp,{children:[(0,Ae.jsx)(lj,{color:"primary",edge:"end",onChange:()=>e.checkedFct(t.id,e.title),checked:t.checked}),t.type&&(0,Ae.jsx)("span",{className:n.nbItem,children:t.type===HB.WIND?(0,Ae.jsx)(sp,{}):(0,Ae.jsx)(Qh,{})}),(0,Ae.jsx)("span",{className:n.text,children:t.mainText}),t.secondText&&(0,Ae.jsx)("span",{className:n.nbItem,children:t.secondText})]}),null!==(r=t.additionnalComponent)&&void 0!==r?r:null]},t.id)}))})}function cpe(e){return(0,hs.c)("MuiAlertTitle",e)}(0,ds.c)("MuiAlertTitle",["root"]);const upe=["className"],dpe=(0,cs.cp)(vu,{name:"MuiAlertTitle",slot:"Root",overridesResolver:(e,t)=>t.root})((e=>{let{theme:t}=e;return{fontWeight:t.typography.fontWeightMedium,marginTop:-2}})),hpe=n.forwardRef((function(e,t){const n=(0,Oe.c)({props:e,name:"MuiAlertTitle"}),{className:r}=n,i=(0,Tt.c)(n,upe),o=n,s=(e=>{const{classes:t}=e;return(0,ls.c)({root:["root"]},cpe,t)})(o);return(0,Ae.jsx)(dpe,(0,d.c)({gutterBottom:!0,component:"div",ownerState:o,ref:t,className:(0,ts.c)(s.root,r)},i))})),ppe=Zo()((()=>({share:{padding:20,width:600,maxHeight:"calc(100vh - 148px)"},title:{color:"green",fontSize:22,paddingBottom:10},intro:{fontWeight:"bold"},users:{padding:"10px 0px 30px 10px",maxHeight:400,overflowY:"auto"},user:{padding:5},form:{marginTop:10},delete:{color:"red",verticalAlign:"bottom",marginRight:5,cursor:"pointer"},myself:{verticalAlign:"bottom",marginRight:5},helperText:{color:"green"},usersButton:{marginLeft:10,fontSize:24}}))),fpe=e=>{const{classes:t}=ppe(),[r,i]=(0,n.useState)([]),[o,s]=(0,n.useState)([]),[a,l]=(0,n.useState)(!1),[c,u]=(0,n.useState)(""),[d,h]=(0,n.useState)(!1),[p,f]=(0,n.useState)(""),[g,m]=(0,n.useState)(!1),[y,v]=(0,n.useState)(!1),[_,b]=(0,n.useState)(!1),[x,S]=(0,n.useState)(!1),[w,E]=(0,n.useState)(""),[P,C]=(0,n.useState)(null),[A,k]=(0,n.useState)(!0),[j,I]=(0,n.useState)(!0),G=wo(),T=on();async function M(t){E(t);const n=await(async(e,t,n)=>{const r={method:"POST",body:JSON.stringify({email:n})},i=await Ey("/share/".concat(e,"/").concat(t,"/remove"),r),o=eF(i.status);return{ok:i.ok,error:o}})(e.itemType,e.itemId,t);E(""),n.ok&&(D(t)&&T.push("/"),i(r.filter((e=>e!==t))))}const O=async(t,n)=>{if(ape(t)){b(!0);const r=await async function(e,t,n){let r=arguments.length>3&&void 0!==arguments[3]&&arguments[3];const i={method:"POST",body:JSON.stringify({email:n,inherit:r})},o=await Ey("/share/".concat(e,"/").concat(t,"/add"),i),s=eF(o.status);return{ok:o.ok,error:s}}(e.itemType,e.itemId,t,n);if(b(!1),r.ok)return!0;f(r.error)}else f("Email format is invalid");return!1};(0,n.useEffect)((()=>{!async function(){if(!r.length){v(!0);try{const t=await tF(e.itemType,e.itemId);i(t)}catch(t){h(!0)}finally{v(!1)}}}()}),[]);const R=async()=>{l(!0);try{const t=(await(async(e,t)=>{const n=await Ey("/share/".concat(e,"/").concat(t,"/potential"),{method:"GET"});if(n&&200===n.status)return await n.json();return!1})(e.itemType,e.itemId)).map((e=>({checked:!0,id:e.email,mainText:e.name?"".concat(e.name," ").concat(e.email):e.email}))).filter(((e,t,n)=>t===n.findIndex((t=>t.id===e.id))));s(t)}catch(t){s([])}finally{l(!1),S(!0)}},D=e=>G&&G.email===e,N=!!p,L=g?" The user was added":p,V="Inherit on all existing inspections";return(0,Ae.jsxs)("div",{className:t.share,children:[(0,Ae.jsx)("div",{className:t.title,children:"Share"}),(0,Ae.jsx)("div",{className:t.intro,children:e.texts.sharedWith}),(0,Ae.jsxs)("div",{className:t.users,children:[y&&(0,Ae.jsx)($y,{}),d&&(0,Ae.jsx)(pM,{severity:"error",children:"An error occured when fetching users..."}),r.map(((e,n)=>(0,Ae.jsxs)(wp,{display:"flex",justifyContent:"start",className:t.user,children:[w!==e&&(0,Ae.jsx)(spe.c,{className:t.delete,onClick:()=>M(e)}),w===e&&(0,Ae.jsx)($y,{size:15,style:{width:"fit-content",marginRight:5,flexDirection:"initial"}}),(0,Ae.jsx)("p",{children:e})]},n)))]}),(0,Ae.jsx)(ev,{style:{marginBottom:10},loading:a,label:" Find users to add",onClick:e=>{R(),C(e.currentTarget)}}),(0,Ae.jsx)(vu,{variant:"body1",children:e.texts.instruction}),(0,Ae.jsxs)(pM,{severity:"warning",children:[(0,Ae.jsx)(hpe,{children:(0,Ae.jsx)("b",{children:"Be carefull"})}),(0,Ae.jsx)(vu,{variant:"body1",children:e.texts.warning})]}),(0,Ae.jsxs)("form",{onSubmit:async function(t){var n;t.preventDefault();const o=null!==(n=e.showInheritanceBtn)&&void 0!==n&&n&&A;await O(c,o)&&(r.some((e=>e===c))||i([...r,c]),u(""),m(!0),setTimeout((()=>{m(!1)}),5e3))},className:t.form,children:[(0,Ae.jsxs)(wp,{display:"flex",alignItems:"center",justifyContent:e.showInheritanceBtn?"space-evenly":"start",gap:2,children:[(0,Ae.jsx)(iE,{id:"standard-basic",size:"small",label:"email",value:c,error:N,helperText:L,onChange:e=>{u(e.target.value),f(""),m(!1)},variant:"outlined",FormHelperTextProps:{className:t.helperText}}),e.showInheritanceBtn&&(0,Ae.jsx)(aF,{column:!0,text:V,checked:A,onChange:t=>{k(t),e.onInheritChange&&e.onInheritChange(t)},style:{maxWidth:"6rem"},textStyle:{fontSize:"12px"}}),(0,Ae.jsxs)(Sa,{color:"primary",type:"submit",variant:"contained",children:[_&&(0,Ae.jsx)($y,{size:18,color:"white"}),!_&&(0,Ae.jsx)("span",{children:"Add user"})]})]}),(0,Ae.jsxs)(Ud,{open:x,onClose:()=>S(!1),anchorEl:P,anchorOrigin:{vertical:"bottom",horizontal:"center"},transformOrigin:{vertical:"top",horizontal:"center"},children:[0===o.length&&(0,Ae.jsx)(pM,{severity:"info",children:"No potential users found"}),o.length>0&&(0,Ae.jsx)(lpe,{title:"Select users",infos:o,checkedFct:(e,t)=>{const n=o.findIndex((t=>t.id===e)),r=[...o];r[n].checked=!r[n].checked,s(r)}}),(0,Ae.jsxs)(wp,{display:"flex",justifyContent:"space-evenly",style:{margin:"1rem 0"},children:[e.showInheritanceBtn&&(0,Ae.jsx)(aF,{column:!0,small:!0,text:V,checked:j,onChange:e=>{I(e)},style:{maxWidth:"6rem"},textStyle:{fontSize:"12px"}}),o.length>0&&(0,Ae.jsx)(ev,{label:"Add users",onClick:async()=>{var t;let n=!1;const s=[],a=null!==(t=e.showInheritanceBtn)&&void 0!==t&&t&&j;for(const e of o)e.checked&&(n=await O(e.id,a),s.push(e.id));n&&(i([...r,...s]),m(!0)),S(!1)},loading:_,style:{marginBottom:10}}),(0,Ae.jsx)(ev,{color:"cancel",label:"Close",onClick:()=>S(!1),style:{marginBottom:10}})]})]})]})]})},gpe="Those persons will have full access to this asset and its inspections (create, modify, delete).",mpe="Those persons will have full access to this asset (create, modify, delete).",ype={sharedWith:"This asset is shared with:",instruction:"Please enter email address of users you want to add. Those persons will require an account on SkyVisor, otherwise please contact support@skyvisor.eu.",warning:gpe},vpe=e=>{let{assetId:t}=e;const[r,i]=(0,n.useState)(ype);return(0,Ae.jsx)(fpe,{itemType:kC.ASSET,texts:r,itemId:t,showInheritanceBtn:!0,onInheritChange:e=>{const t=e?gpe:mpe;i({...ype,warning:t})}})},_pe=Zo()((()=>({share:{padding:20,width:400},title:{color:"red",fontSize:22,paddingBottom:10},question:{paddingBottom:20},buttonGroup:{display:"flex",justifyContent:"space-around"},button:{color:"white",marginRight:"3px",background:Op,marginLeft:"20px"},error:{color:"red"}}))),bpe=e=>{const{classes:t}=_pe(),[r,i]=(0,n.useState)(!1),[o,s]=(0,n.useState)(""),a=on();async function l(){i(!0);await(async e=>200===(await Ey("/assets/".concat(e,"/delete"),{method:"POST"})).status&&(Sy.dispatch(Pf()),!0))(e.assetId)?(i(!1),a.push("/assets-".concat(e.type))):s("This asset can not be deleted as inspections have been undertaken")}return(0,n.useEffect)((()=>{(()=>{let t=0,n=0;for(const r of e.subAssets)r.nbInspections&&(t+=r.nbInspections),r.nbInspectionsPlanned&&(n+=r.nbInspectionsPlanned);0!==t?s("This asset can not be deleted as inspections have been undertaken"):0===n||s("To delete this asset please delete the inspections planned")})()}),[]),(0,Ae.jsxs)("div",{className:t.share,children:[!o&&(0,Ae.jsxs)(Ae.Fragment,{children:[(0,Ae.jsx)("div",{className:t.title,children:"Delete"}),(0,Ae.jsx)("div",{className:t.question,children:(0,Ae.jsx)("p",{children:"Do you really want to delete this asset?"})}),(0,Ae.jsxs)("div",{className:t.buttonGroup,children:[(0,Ae.jsx)(ev,{onClick:e.onClose,label:"Cancel",color:"cancel"}),(0,Ae.jsx)(ev,{label:"Yes",color:"delete",onClick:()=>l(),loading:r})]})]}),o&&(0,Ae.jsx)("div",{className:t.error,children:o})]})},xpe=e=>{const{context:t,children:n}=e;return(0,Ae.jsx)(m8.Provider,{value:t,children:n})};function Spe(e){return(0,hs.c)("MuiLinearProgress",e)}(0,ds.c)("MuiLinearProgress",["root","colorPrimary","colorSecondary","determinate","indeterminate","buffer","query","dashed","dashedColorPrimary","dashedColorSecondary","bar","barColorPrimary","barColorSecondary","bar1Indeterminate","bar1Determinate","bar1Buffer","bar2Indeterminate","bar2Buffer"]);var wpe,Epe,Ppe,Cpe,Ape,kpe;const jpe=["className","color","value","valueBuffer","variant"];let Ipe,Gpe,Tpe,Mpe,Ope,Rpe;const Dpe=Bs(Ipe||(Ipe=wpe||(wpe=js(["\n  0% {\n    left: -35%;\n    right: 100%;\n  }\n\n  60% {\n    left: 100%;\n    right: -90%;\n  }\n\n  100% {\n    left: 100%;\n    right: -90%;\n  }\n"])))),Npe=Bs(Gpe||(Gpe=Epe||(Epe=js(["\n  0% {\n    left: -200%;\n    right: 100%;\n  }\n\n  60% {\n    left: 107%;\n    right: -8%;\n  }\n\n  100% {\n    left: 107%;\n    right: -8%;\n  }\n"])))),Lpe=Bs(Tpe||(Tpe=Ppe||(Ppe=js(["\n  0% {\n    opacity: 1;\n    background-position: 0 -23px;\n  }\n\n  60% {\n    opacity: 0;\n    background-position: 0 -23px;\n  }\n\n  100% {\n    opacity: 1;\n    background-position: -200px -23px;\n  }\n"])))),Vpe=(e,t)=>"inherit"===t?"currentColor":e.vars?e.vars.palette.LinearProgress["".concat(t,"Bg")]:"light"===e.palette.mode?(0,Ps.IV)(e.palette[t].main,.62):(0,Ps.sP)(e.palette[t].main,.5),Fpe=(0,cs.cp)("span",{name:"MuiLinearProgress",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t["color".concat((0,ha.c)(n.color))],t[n.variant]]}})((e=>{let{ownerState:t,theme:n}=e;return(0,d.c)({position:"relative",overflow:"hidden",display:"block",height:4,zIndex:0,"@media print":{colorAdjust:"exact"},backgroundColor:Vpe(n,t.color)},"inherit"===t.color&&"buffer"!==t.variant&&{backgroundColor:"none","&::before":{content:'""',position:"absolute",left:0,top:0,right:0,bottom:0,backgroundColor:"currentColor",opacity:.3}},"buffer"===t.variant&&{backgroundColor:"transparent"},"query"===t.variant&&{transform:"rotate(180deg)"})})),zpe=(0,cs.cp)("span",{name:"MuiLinearProgress",slot:"Dashed",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.dashed,t["dashedColor".concat((0,ha.c)(n.color))]]}})((e=>{let{ownerState:t,theme:n}=e;const r=Vpe(n,t.color);return(0,d.c)({position:"absolute",marginTop:0,height:"100%",width:"100%"},"inherit"===t.color&&{opacity:.3},{backgroundImage:"radial-gradient(".concat(r," 0%, ").concat(r," 16%, transparent 42%)"),backgroundSize:"10px 10px",backgroundPosition:"0 -23px"})}),zs(Mpe||(Mpe=Cpe||(Cpe=js(["\n    animation: "," 3s infinite linear;\n  "]))),Lpe)),Bpe=(0,cs.cp)("span",{name:"MuiLinearProgress",slot:"Bar1",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.bar,t["barColor".concat((0,ha.c)(n.color))],("indeterminate"===n.variant||"query"===n.variant)&&t.bar1Indeterminate,"determinate"===n.variant&&t.bar1Determinate,"buffer"===n.variant&&t.bar1Buffer]}})((e=>{let{ownerState:t,theme:n}=e;return(0,d.c)({width:"100%",position:"absolute",left:0,bottom:0,top:0,transition:"transform 0.2s linear",transformOrigin:"left",backgroundColor:"inherit"===t.color?"currentColor":(n.vars||n).palette[t.color].main},"determinate"===t.variant&&{transition:"transform .".concat(4,"s linear")},"buffer"===t.variant&&{zIndex:1,transition:"transform .".concat(4,"s linear")})}),(e=>{let{ownerState:t}=e;return("indeterminate"===t.variant||"query"===t.variant)&&zs(Ope||(Ope=Ape||(Ape=js(["\n      width: auto;\n      animation: "," 2.1s cubic-bezier(0.65, 0.815, 0.735, 0.395) infinite;\n    "]))),Dpe)})),Upe=(0,cs.cp)("span",{name:"MuiLinearProgress",slot:"Bar2",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.bar,t["barColor".concat((0,ha.c)(n.color))],("indeterminate"===n.variant||"query"===n.variant)&&t.bar2Indeterminate,"buffer"===n.variant&&t.bar2Buffer]}})((e=>{let{ownerState:t,theme:n}=e;return(0,d.c)({width:"100%",position:"absolute",left:0,bottom:0,top:0,transition:"transform 0.2s linear",transformOrigin:"left"},"buffer"!==t.variant&&{backgroundColor:"inherit"===t.color?"currentColor":(n.vars||n).palette[t.color].main},"inherit"===t.color&&{opacity:.3},"buffer"===t.variant&&{backgroundColor:Vpe(n,t.color),transition:"transform .".concat(4,"s linear")})}),(e=>{let{ownerState:t}=e;return("indeterminate"===t.variant||"query"===t.variant)&&zs(Rpe||(Rpe=kpe||(kpe=js(["\n      width: auto;\n      animation: "," 2.1s cubic-bezier(0.165, 0.84, 0.44, 1) 1.15s infinite;\n    "]))),Npe)})),Wpe=n.forwardRef((function(e,t){const n=(0,Oe.c)({props:e,name:"MuiLinearProgress"}),{className:r,color:i="primary",value:o,valueBuffer:s,variant:a="indeterminate"}=n,l=(0,Tt.c)(n,jpe),c=(0,d.c)({},n,{color:i,variant:a}),u=(e=>{const{classes:t,variant:n,color:r}=e,i={root:["root","color".concat((0,ha.c)(r)),n],dashed:["dashed","dashedColor".concat((0,ha.c)(r))],bar1:["bar","barColor".concat((0,ha.c)(r)),("indeterminate"===n||"query"===n)&&"bar1Indeterminate","determinate"===n&&"bar1Determinate","buffer"===n&&"bar1Buffer"],bar2:["bar","buffer"!==n&&"barColor".concat((0,ha.c)(r)),"buffer"===n&&"color".concat((0,ha.c)(r)),("indeterminate"===n||"query"===n)&&"bar2Indeterminate","buffer"===n&&"bar2Buffer"]};return(0,ls.c)(i,Spe,t)})(c),h=Go(),p={},f={bar1:{},bar2:{}};if("determinate"===a||"buffer"===a)if(void 0!==o){p["aria-valuenow"]=Math.round(o),p["aria-valuemin"]=0,p["aria-valuemax"]=100;let e=o-100;"rtl"===h.direction&&(e=-e),f.bar1.transform="translateX(".concat(e,"%)")}else 0;if("buffer"===a)if(void 0!==s){let e=(s||0)-100;"rtl"===h.direction&&(e=-e),f.bar2.transform="translateX(".concat(e,"%)")}else 0;return(0,Ae.jsxs)(Fpe,(0,d.c)({className:(0,ts.c)(u.root,r),ownerState:c,role:"progressbar"},p,{ref:t},l,{children:["buffer"===a?(0,Ae.jsx)(zpe,{className:u.dashed,ownerState:c}):null,(0,Ae.jsx)(Bpe,{className:u.bar1,ownerState:c,style:f.bar1}),"determinate"===a?null:(0,Ae.jsx)(Upe,{className:u.bar2,ownerState:c,style:f.bar2})]}))})),Hpe=Wpe,qpe=e=>{const{value:t,total:r=100,textPosition:i="top",decimal:o=0,prefixText:s="",suffixText:a="%",alignRight:l=!1,...c}=e,u=(0,n.useMemo)((()=>{const e=Ly(t,o);return"".concat(s).concat(e).concat(a," ")}),[t,o,s,a]),d=(0,n.useMemo)((()=>{switch(i){case"top":return"column";case"bottom":return"column-reverse";case"left":return"row";case"right":return"row-reverse";default:return}}),[i]),h=(0,n.useMemo)((()=>({value:100*t/r,...c})),[t,r,c]);return(0,Ae.jsxs)(ws,{container:!0,direction:d,wrap:"nowrap",alignItems:l?"flex-end":"center",children:[(0,Ae.jsx)(ws,{item:!0,minWidth:35,children:(0,Ae.jsx)(vu,{variant:"body2",color:"text.secondary",textAlign:l?"right":void 0,children:u})}),(0,Ae.jsx)(ws,{item:!0,width:"100%",marginRight:l?0:1,children:(0,Ae.jsx)(Hpe,{variant:"determinate",...h})})]})},Xpe=()=>{const[e,t]=(0,n.useState)({quota:0,usage:0});(0,n.useEffect)((()=>{let e;const n=()=>(clearTimeout(e),setTimeout((async()=>{const e=await navigator.storage.estimate();t(e)}),1e3));e=n();const r=MM.liveQuery((()=>OM.inspections.toArray())),i=MM.liveQuery((()=>OM.campaigns.toArray())),o=MM.liveQuery((()=>OM.subAssets.toArray())),s=r.subscribe((()=>{e=n()})),a=i.subscribe((()=>{e=n()})),l=o.subscribe((()=>{e=n()}));return()=>{clearTimeout(e),s.unsubscribe(),a.unsubscribe(),l.unsubscribe()}}),[]);const r=(0,n.useMemo)((()=>{var t;const n=null!==(t=null===e||void 0===e?void 0:e.quota)&&void 0!==t?t:0;return Math.floor(n/1024/1024)}),[e]),i=(0,n.useMemo)((()=>{var t;const n=null!==(t=null===e||void 0===e?void 0:e.usage)&&void 0!==t?t:0;return Math.floor(n/1024/1024)}),[e]);return(0,Ae.jsxs)(Ae.Fragment,{children:[(0,Ae.jsx)(vu,{children:"Storage used"}),(0,Ae.jsx)(qpe,{value:r>0?Math.floor(i/r*100):0,suffixText:"% (".concat(i," / ").concat(r," MB)"),alignRight:!0})]})},Ype=e=>{const{assetId:t}=e,[r,i]=(0,n.useState)(!1),[o,s]=(0,n.useState)(null),[a,l]=(0,n.useState)(null),c=(0,n.useCallback)((async(e,t)=>{try{null!==t&&void 0!==t&&t.withLoader&&i(!0);const n=await u(e);l(n)}catch(n){s("An error occured while fetching asset data")}finally{null!==t&&void 0!==t&&t.withLoader&&i(!1)}}),[]);(0,n.useEffect)((()=>{c(t,{withLoader:!0})}),[c,t]);const u=async e=>{const[t,n]=await Promise.all([TT(e),MT(e)]);return{assetInfos:t,subAssets:n}};return{isLoading:r,error:o,asset:a,refresh:()=>c(t,{withLoader:!1})}},Kpe=()=>{const{assetId:e}=an(),t=on(),[r,i]=(0,n.useState)(""),[o,s]=(0,n.useState)(0),[a,l]=(0,n.useState)((()=>null)),{asset:c}=Ype({assetId:e}),u=(0,n.useMemo)((()=>null===c||void 0===c?void 0:c.assetInfos.type),[null===c||void 0===c?void 0:c.assetInfos.type]),d=(0,n.useMemo)((()=>{var e;return null!==(e=null===c||void 0===c?void 0:c.subAssets)&&void 0!==e?e:[]}),[c]),h=(0,n.useMemo)((()=>{var e;return null!==(e=null===c||void 0===c?void 0:c.assetInfos.name)&&void 0!==e?e:""}),[null===c||void 0===c?void 0:c.assetInfos.name]),p=[{label:"",trailingIcon:void 0===u?(0,Ae.jsx)($y,{size:24,color:"white"}):(0,Ae.jsx)(r8.c,{}),color:"primary",action:()=>{t.push("/assets/edit".concat(u,"/").concat(e))},disable:void 0===u},{label:"",trailingIcon:(0,Ae.jsx)(n8.c,{}),color:"delete",tooltip:!0,toolTipElement:t=>u?(0,Ae.jsx)(bpe,{assetId:e,onClose:t,type:u,subAssets:d}):(0,Ae.jsx)(Ae.Fragment,{})},{label:"",trailingIcon:(0,Ae.jsx)(t8.c,{}),color:"success",tooltip:!0,toolTipElement:()=>(0,Ae.jsx)(vpe,{assetId:e})}];(0,n.useEffect)((()=>{u&&Sy.dispatch(Cf(u))}),[u]);const f=e=>{l((()=>e))},g={getDocuments:()=>(async e=>(await Ey("/assets/".concat(e,"/docs"),{method:"GET"})).json())(e),postDocument:(t,n)=>async function(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"";const r=t.name,{fileName:i,extension:o}=yhe(r),s={method:"POST",body:JSON.stringify({fileName:i,extension:o,text:n})},a=await Ey("/assets/".concat(e,"/docs"),s);if(200!==a.status)return Promise.reject();const{signedUrl:l}=await a.json();return fetch(l,{method:"PUT",body:t})}(e,t,n),deleteDocument:t=>((e,t)=>{const n={method:"DELETE",body:JSON.stringify({documentId:t})};return Ey("/assets/".concat(e,"/docs"),n)})(e,t)},m=(0,n.useCallback)((()=>(0,Ae.jsx)(Rhe,{reloadFn:f})),[e]),y=Wy(),v=(0,n.useCallback)((()=>(0,Ae.jsx)(ws,{item:!0,minWidth:"50vw",flex:2,marginTop:y?"0.5rem":0,children:(0,Ae.jsx)(xpe,{context:{assetId:e},children:c?(0,Ae.jsx)(mhe,{asset:c.assetInfos}):(0,Ae.jsx)($y,{})})})),[c,y,e]);return(0,Ae.jsx)(PF,{pageTitle:h,left:(0,Ae.jsx)(CF,{title:h}),center:(0,Ae.jsx)(jF,{responsive:!0,btnVersion:y,filter:0===o?void 0:e=>i(e)}),right:(0,Ae.jsxs)(Ae.Fragment,{children:[!y&&(0,Ae.jsx)(i8,{buttons:SB()?p:[]}),Yy()&&(0,Ae.jsx)(Xpe,{})]}),children:(0,Ae.jsxs)(ws,{container:!0,direction:"column",wrap:"nowrap",height:"100%",children:[!y&&(0,Ae.jsx)(ws,{item:!0,children:(0,Ae.jsx)(HX,{tab:o,changeTab:e=>s(e)})}),(0,Ae.jsxs)(ws,{item:!0,height:0,flex:1,children:[0===o&&(0,Ae.jsxs)(ws,{paddingY:"1rem",paddingX:y?"0.5rem":"1rem",container:!0,gap:"1rem",height:"100%",overflow:"auto",children:[y&&(0,Ae.jsx)(v,{}),(0,Ae.jsxs)(ws,{item:!0,flex:1,minWidth:"20rem",container:!0,gap:"1rem",height:"fit-content",children:[(0,Ae.jsx)(ws,{item:!0,width:"100%",children:(0,Ae.jsx)(f8,{title:"Details",childComp:c?(0,Ae.jsx)(ope,{asset:c}):(0,Ae.jsx)($y,{style:{margin:"1rem 0"}})})}),(0,Ae.jsx)(ws,{item:!0,width:"100%",children:(0,Ae.jsx)(f8,{title:"Subassets",childComp:c?(0,Ae.jsx)(Jhe,{asset:c}):(0,Ae.jsx)($y,{style:{margin:"1rem 0"}})})}),(0,Ae.jsx)(ws,{item:!0,width:"100%",children:(0,Ae.jsx)(vhe.Provider,{value:g,children:(0,Ae.jsx)(f8,{title:"Documents dropbox",action:(0,Ae.jsx)(The,{onSave:()=>{a()}}),childComp:(0,Ae.jsx)(m,{})})})})]}),!y&&(0,Ae.jsx)(v,{})]}),1===o&&void 0!==u&&(0,Ae.jsx)(uX,{type:u,mode:"Asset",modeValue:e,search:r})]})]})})},Zpe=e=>{var t,n,r;const i=null!==(t=e.duration)&&void 0!==t?t:5e3,o=null!==(n=e.verticalPlacement)&&void 0!==n?n:"bottom",s=null!==(r=e.horizontalPlacement)&&void 0!==r?r:"right";return(0,Ae.jsx)(JT,{open:e.isOpen,autoHideDuration:i,onClose:e.close,anchorOrigin:{vertical:o,horizontal:s},children:(0,Ae.jsx)(pM,{severity:e.severity,children:e.text})})};function $pe(e){const[t,r]=(0,n.useState)([]),[i,o]=(0,n.useState)(!1),[s,a]=(0,n.useState)(!1),l=on(),[c,u]=(0,n.useState)(),{headCells:d,contentCells:h}=(0,n.useMemo)((()=>c?w8(Wy(),c):{headCells:[],contentCells:[]}),[c]);(0,n.useEffect)((()=>{(async()=>{o(!0);const t=await NT(e.assetId,e.subAssetid);o(!1),t&&t.inspectionsList&&(r(t.inspectionsList),e.nbInspections&&e.nbInspections(t.inspectionsList.length))})()}),[e.assetId,e.subAssetid]),(0,n.useEffect)((()=>{if(0===t.length)return;const e=t.every((e=>{let{type:t}=e;return t===RC.SOLAR_CONSTRUCTION}));if(e)return u(RC.SOLAR_CONSTRUCTION);const n=t.every((e=>{let{type:t}=e;return[RC.WIND,RC.BLADES,RC.TOWER].includes(t)}));return u(n?RC.WIND:RC.SOLAR)}),[t]);const p=t.map((e=>{const t=e.photoDatalength<e.uploaded?e.uploaded:e.photoDatalength;return e.photos="".concat(e.uploaded," / ").concat(t),e}));return""===e.type?(0,Ae.jsx)($y,{}):(0,Ae.jsxs)(Ae.Fragment,{children:[(0,Ae.jsx)("div",{style:{textAlign:"center"},children:(0,Ae.jsx)(jT,{ariaLabel:"subasset table",headCells:d,order:"desc",orderBy:"inspectionDate",selectRow:(e,t)=>{qy(t,"/inspections/".concat(e),l)},rows:p,specificFormat:(e,t,n)=>{switch(e){case"download":return n.isReportGenerated&&(0,Ae.jsx)(vM,{type:kC.INSPECTION,itemId:n.id});case"aiStatus":return(0,Ae.jsx)(the,{inspection:n})}},contentCells:h,dense:!0,evenColumns:!0,loading:i,maxHeight:"calc(100vh - 202px)",specificSort:(e,t,n)=>"download"===n?jy(e,t):ky(e,t,n)})}),(0,Ae.jsx)(Zpe,{isOpen:s,close:()=>a(!1),severity:"error",text:"You can't select an unanalyzed inspection for report",duration:3e3})]})}const Jpe=[{title:"Model",content:"model"},{title:"Latest inspection",content:"lastInspectionDate",date:!0},{title:"Powering date",content:"poweringDate",date:!0},{title:"power",content:"power",trailing:"kW"},{title:"Number of inspection",content:"nbInspections"}],Qpe=e=>{const t=on(),[r,i]=(0,n.useState)(null),o=(t,n)=>{if("nbInspections"===n.content)return e.nbInspections;let r=t?t[n.content]:"";return r=n.date?new Date(String(r)).toLocaleDateString():r,r=n.trailing?"".concat(r," ").concat(n.trailing):r,r},s=async()=>{const t=await(async(e,t)=>{const n=await Ey("/assets/subInfos/".concat(e,"/").concat(t),{method:"GET"});if(n&&200===n.status)return await n.json();return null})(e.assetId,e.subAssetId);i(t)};return(0,n.useEffect)((()=>{s()}),[e.assetId,e.subAssetId]),(0,Ae.jsxs)(npe,{children:[r&&Jpe.map(((e,t)=>(0,Ae.jsxs)("div",{style:{marginBottom:"5px"},children:[(0,Ae.jsxs)("span",{style:{fontWeight:"bolder",marginRight:"5px"},children:[e.title,":"]}),(0,Ae.jsx)("span",{children:o(r,e)})]},t))),(0,Ae.jsx)(ev,{label:"Plan a new inspection",style:{margin:12},onClick:()=>r&&t.push("/inspections/new?assetId=".concat(e.assetId,"&subAssetId=").concat(e.subAssetId))}),!r&&(0,Ae.jsx)($y,{})]})};var efe=__webpack_require__(40580);const tfe=Zo()((()=>({btn:{border:"none",background:"none",color:"black",display:"flex",alignItems:"center",justifyContent:"center","& a, & span":{fontSize:22,lineHeight:1},"& a":{textDecoration:"none",color:"black","&:active, &:visited":{color:"black"}},"&:hover":{backgroundColor:Lp}},text:{color:"black",padding:"0.25rem",fontSize:22,lineHeight:1},chevron:{color:"black",fontSize:22,lineHeight:1}}))),nfe=e=>{const{classes:t}=tfe(),n=(n,r)=>{var i;return n.url?(0,Ae.jsx)("button",{className:t.btn,style:null!==(i=n.style)&&void 0!==i?i:{},children:e.noLink?(0,Ae.jsx)("span",{style:{...n.style,...n.textStyle},children:n.text}):(0,Ae.jsx)("a",{href:n.url,style:{...n.style,...n.textStyle},children:n.text})},"breadcrumb-btn-".concat(r)):(0,Ae.jsx)("p",{className:t.text,style:{...n.style,...n.textStyle},children:n.text},"breadcrumb-txt-".concat(r))},r=(n,r)=>r<e.items.length-1?(0,Ae.jsx)(efe.c,{className:t.chevron,style:{...n.style,...n.chevronStyle}}):(0,Ae.jsx)(Ae.Fragment,{});return(0,Ae.jsx)(ws,{container:!0,direction:"row",wrap:"nowrap",alignItems:"center",children:e.items.map(((e,t)=>(0,Ae.jsxs)(ws,{item:!0,container:!0,wrap:"nowrap",alignItems:"center",columnGap:"0.25rem",width:"fit-content",children:[n(e,t),r(e,t)]},"breadcrump-".concat(t))))})},rfe=()=>{const{assetId:e,subAssetId:t}=an(),[r,i]=(0,n.useState)(0),[o,s]=(0,n.useState)(""),[a,l]=(0,n.useState)({label:"",link:""}),[c,u]=(0,n.useState)(0),[d,h]=(0,n.useState)(""),[p,f]=(0,n.useState)((()=>{})),[g,m]=(0,n.useState)();(0,n.useEffect)((()=>{y()}),[]);const y=async()=>{var n,r,i,o,a,c;const u=await NT(e,t),d=null!==(n=null===u||void 0===u||null===(r=u.farm)||void 0===r?void 0:r.name)&&void 0!==n?n:"",h=null!==(i=null===u||void 0===u||null===(o=u.subassets)||void 0===o?void 0:o.name)&&void 0!==i?i:"",p=null!==(a=null===u||void 0===u||null===(c=u.farm)||void 0===c?void 0:c.type)&&void 0!==a?a:"";m(p),s(h),l({label:d,link:"/assets/".concat(e)})},v={getDocuments:()=>(async(e,t)=>(await Ey("/assets/".concat(e,"/subAssets/").concat(t,"/docs"),{method:"GET"})).json())(e,t),postDocument:(n,r)=>async function(e,t,n){let r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"";const i=n.name,{fileName:o,extension:s}=yhe(i),a={method:"POST",body:JSON.stringify({fileName:o,extension:s,text:r})},l=await Ey("/assets/".concat(e,"/subAssets/").concat(t,"/docs"),a);if(200!==l.status)return Promise.reject();const{signedUrl:c}=await l.json();return fetch(c,{method:"PUT",body:n})}(e,t,n,r),deleteDocument:n=>((e,t,n)=>{const r={method:"DELETE",body:JSON.stringify({documentId:n})};return Ey("/assets/".concat(e,"/subAssets/").concat(t,"/docs"),r)})(e,t,n)},_=(0,n.useMemo)((()=>{if(""!==a.label)return[{text:a.label,url:a.link,style:{fontSize:17}},{text:o,style:{fontSize:17}}]}),[a,o]);return void 0===g?(0,Ae.jsx)(Ae.Fragment,{}):(0,Ae.jsx)(PF,{pageTitle:"".concat(a.label," - ").concat(o),left:_&&(0,Ae.jsx)(nfe,{items:_}),center:(0,Ae.jsx)(jF,{responsive:!0,btnVersion:Wy(),filter:0===r?void 0:e=>h(e)}),children:(0,Ae.jsxs)(ws,{container:!0,direction:"column",wrap:"nowrap",height:"100%",children:[(0,Ae.jsx)(ws,{item:!0,children:(0,Ae.jsx)(HX,{tab:r,changeTab:e=>i(e)})}),(0,Ae.jsxs)(ws,{item:!0,height:0,flex:1,children:[0===r&&(0,Ae.jsxs)(ws,{container:!0,gap:"1rem",paddingY:"1rem",paddingX:Wy()?"0.5rem":"1rem",children:[(0,Ae.jsxs)(ws,{item:!0,flex:1,minWidth:"16rem",container:!0,gap:"1rem",direction:"column",wrap:"nowrap",children:[(0,Ae.jsx)(f8,{title:"Details",childComp:(0,Ae.jsx)(Qpe,{assetId:e,subAssetId:t,nbInspections:c})}),(0,Ae.jsx)(vhe.Provider,{value:v,children:(0,Ae.jsx)(f8,{title:"Documents dropbox",action:(0,Ae.jsx)(The,{onSave:()=>{p()}}),childComp:(0,Ae.jsx)(Rhe,{reloadFn:e=>{f((()=>e))}})})})]}),(0,Ae.jsx)(ws,{item:!0,minWidth:"50vw",flex:2,children:(0,Ae.jsx)(f8,{title:"Inspections",childComp:(0,Ae.jsx)($pe,{assetId:e,subAssetid:t,nbInspections:e=>u(e),type:g})})})]}),1===r&&(0,Ae.jsx)(uX,{type:g,mode:"SubAsset",modeValue:t,search:d})]})]})})};function ife(e){const{classes:t}=UB(),[r,i]=(0,n.useState)(""),[o,s]=(0,n.useState)(""),a=b((e=>e.assets.all.map((e=>e.name)))),[l,c]=(0,n.useState)(null),[u,d]=(0,n.useState)([]),h=(()=>{const e=wo();return e&&e.company?e.company:"skyvisor"})(),[p,f]=(0,n.useState)({value:h,label:h});(0,n.useEffect)((()=>{vB()&&async function(){var e;const t=await PB();if(t&&null!==(e=t.companies)&&void 0!==e&&e.length){const e=t.companies.map((e=>({label:e,value:e})));d(e)}}()}),[]);const g=(t,n)=>{switch(t){case"country":c({label:n,value:n});break;case"company":f({label:n,value:n});break;case"name":i(n),s("")}e.updateAssetInfo(t,n)};return(0,Ae.jsx)(ws,{container:!0,className:t.topBarCreate,children:(0,Ae.jsx)(ws,{item:!0,xs:12,children:(0,Ae.jsxs)(ws,{container:!0,children:[(0,Ae.jsxs)("div",{className:t.groupAsset,children:[(0,Ae.jsx)("input",{className:t.asset,onChange:e=>{g("name",e.target.value)},value:r,placeholder:"Asset name"}),vB()&&(0,Ae.jsx)("span",{className:t.company,children:(0,Ae.jsx)(ET,{styles:FB,options:u,value:p,placeholder:"Company",onChange:e=>g("company",null===e||void 0===e?void 0:e.value)})})]}),(0,Ae.jsxs)("div",{className:t.buttonTopZoneCreate,children:[(0,Ae.jsx)(ev,{disabled:""===r||null==p,label:"Create",onClick:()=>{r?a.includes(r)?s("An existing asset has already this name"):(s(""),e.saveAll({name:r,country:l?l.value:"",company:p?p.value:"standard"},null)):s("The asset name can not be empty")},style:zB,color:"success",loading:e.loading}),o&&(0,Ae.jsx)("span",{style:BB,children:o})]})]})})})}const ofe=e=>{const{assetId:t}=an(),[r,i]=(0,n.useState)({name:"",country:"",company:""}),[o,s]=(0,n.useState)(!1),a=b(Vf),[l,c]=(0,n.useState)(null),[u,d]=(0,n.useState)(!1),h=on();(0,n.useEffect)((()=>{if((async()=>{if(!l&&!u&&t){d(!0);const e=await LT(t);c(e)}})(),a&&a.length){const e=a.filter((e=>e.assetInfos.id===t));null!==e&&void 0!==e&&e.length&&!l&&c(e[0])}}),[a]);return(0,Ae.jsx)(wp,{display:"flex",flexDirection:"column",height:"fit-content",children:(0,Ae.jsx)(ife,{updateAssetInfo:(e,t)=>{const n={...r};e&&(n[e]=t,i(n))},newAssetInfo:r,saveAll:async(t,n)=>{if(s(!0),t.name){var r,i;const o={asset:{name:t.name,country:t.country?t.country:null!==n&&void 0!==n&&null!==(r=n.assetInfos)&&void 0!==r&&r.country?n.assetInfos.country:"",company:t.company?t.company:null!==n&&void 0!==n&&null!==(i=n.assetInfos)&&void 0!==i&&i.company?n.assetInfos.company:""},subAssets:n?n.subAssets:[]},s=!n||!n.subAssets.length,a=await async function(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];const n=new Headers;n.append("Content-Type","application/json");const r={method:"POST",headers:n,body:JSON.stringify(e)},i=await Ey("/assets/createWind",r);if(Sy.dispatch(Pf()),200===i.status){const e=await i.json();if(e.assetId)return await LT(e.assetId,t)}return!1}(o,s);a&&(c(a),h.push("/assets/edit".concat(e.type,"/").concat(a.assetInfos.id)))}s(!1)},loading:o})})},sfe=Wy()?[{path:"/assets-wind",icon:sp,text:"Wind farms",group:"Assets"},{path:"/assets-solar",icon:Qh,text:"Solar farms"},{path:"/inspections/new",icon:Na,text:"New",group:"Inspections"},{path:"/inspections/ongoing",icon:Nh,text:"Ongoing"},{path:"/inspections/reports",icon:lE,text:"Reports"},{path:"/profile",icon:ip,text:"Profile",group:""},{path:"logout",icon:Da,text:"Exit",group:""}]:[{path:"/",icon:ep,text:"Dashboard",group:""},{path:"/assets-wind",icon:sp,text:"Wind farms",group:"Assets"},{path:"/assets-solar",icon:Qh,text:"Solar farms",group:"Assets"},{path:"/inspections/new",icon:Na,text:"New",group:"Inspections"},{path:"/uploader",icon:Wh,text:"Uploader"},{path:"/inspections/ongoing",icon:Nh,text:"Ongoing"},{path:"/inspections/reports",icon:lE,text:"Reports"},{path:"/profile",icon:ip,text:"Profile",group:""},{path:"logout",icon:Da,text:"Exit",group:""}],afe=[{path:"/",icon:ep,text:"Dashboard",group:""},{path:"/outsource/history",icon:function(e){return ka({tag:"svg",attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{d:"M504 255.531c.253 136.64-111.18 248.372-247.82 248.468-59.015.042-113.223-20.53-155.822-54.911-11.077-8.94-11.905-25.541-1.839-35.607l11.267-11.267c8.609-8.609 22.353-9.551 31.891-1.984C173.062 425.135 212.781 440 256 440c101.705 0 184-82.311 184-184 0-101.705-82.311-184-184-184-48.814 0-93.149 18.969-126.068 49.932l50.754 50.754c10.08 10.08 2.941 27.314-11.313 27.314H24c-8.837 0-16-7.163-16-16V38.627c0-14.254 17.234-21.393 27.314-11.314l49.372 49.372C129.209 34.136 189.552 8 256 8c136.81 0 247.747 110.78 248 247.531zm-180.912 78.784l9.823-12.63c8.138-10.463 6.253-25.542-4.21-33.679L288 256.349V152c0-13.255-10.745-24-24-24h-16c-13.255 0-24 10.745-24 24v135.651l65.409 50.874c10.463 8.137 25.541 6.253 33.679-4.21z"}}]})(e)},text:"History",group:""},{path:"logout",icon:Da,text:"Exit",group:""}],lfe=[{path:"/",icon:ep,text:"Dashboard",group:""},{path:"logout",icon:Da,text:"Exit",group:""}],cfe=Zo()((()=>({root:{padding:20,width:300,backgroundColor:"white",outline:"none",textAlign:"center",borderRadius:5},question:{paddingBottom:20}}))),ufe=()=>{const e=on(),{classes:t}=cfe();return(0,Ae.jsxs)("div",{className:t.root,children:[(0,Ae.jsx)("div",{className:t.question,children:"Do you wish to log out?"}),(0,Ae.jsx)(ev,{onClick:()=>{gB(),e.push("/login")},color:"delete",label:"Log out"})]})},dfe=Zo()((e=>({sideBarLink:{textAlign:"center",textDecoration:"none"},divider:{borderTop:"1px solid #eaecf4",padding:"0.05rem"},normal:{},title:{fontSize:"0.8rem",color:"rgba(255, 255, 255, 0.9)",marginBottom:"0.7rem","&:hover":{color:"white"}},group:{fontSize:"0.6rem",color:"rgba(255, 255, 255, 0.9)",textTransform:"uppercase",marginTop:"0.5rem",marginBottom:"0.5rem",textAlign:"center"},icon:{},anchorTopRight:{top:-8,right:-5},newsIcon:{color:"".concat(e.palette.error.main," !important")}}))),hfe=Zo()((()=>({arrow:{color:"#00A6FF"},tooltip:{fontSize:13}}))),pfe=e=>{const{classes:t}=dfe(),{classes:r}=hfe(),i=sn(),o=wo(),s=o?o.email:"",[a,l]=(0,n.useState)(!1),[c,u]=(0,n.useState)(null),[d,h]=(0,n.useState)(null),{item:p}=e,f=on(),g=(e,n)=>{const r=i.pathname===p.path||a?"white":"rgba(255, 255, 255, 0.7)";return(0,Ae.jsx)(Ea.Provider,{value:{style:{color:r,marginTop:"0.4rem",marginBottom:"0.3rem"}},children:(0,Ae.jsxs)("div",{className:t.icon,children:[(0,Ae.jsx)(e,{size:"1.6rem"}),(0,Ae.jsx)("div",{className:t.title,style:{color:r},children:n})]})})};return(0,Ae.jsxs)(ws,{item:!0,children:[(0,Ae.jsx)("div",{className:void 0===p.group||e.hideItemGroup?t.normal:t.divider}),p.group&&!e.hideItemGroup&&(0,Ae.jsx)("div",{className:t.group,children:p.group}),"info"!==p.path&&"logout"!==p.path&&"search"!==p.path&&"news"!==p.path&&(0,Ae.jsxs)("div",{onMouseEnter:()=>l(!0),onMouseLeave:()=>l(!1),children:[!Wy()&&(0,Ae.jsx)(fn,{className:t.sideBarLink,to:p.path,children:g(p.icon,p.text)}),Wy()&&(0,Ae.jsx)("div",{className:t.sideBarLink,onClick:()=>{e.closeSide(),f.push(p.path)},children:g(p.icon,p.text)})]}),"search"===p.path&&(0,Ae.jsx)("div",{onMouseEnter:()=>l(!0),onMouseLeave:()=>l(!1),children:(0,Ae.jsx)("div",{className:t.sideBarLink,onClick:e=>u(e.currentTarget),children:g(p.icon,p.text)})}),"logout"===p.path&&(0,Ae.jsx)(cu,{title:s,placement:"bottom",classes:r,children:(0,Ae.jsx)("div",{className:t.sideBarLink,onClick:e=>h(e.currentTarget),onMouseEnter:()=>l(!0),onMouseLeave:()=>l(!1),children:g(p.icon,p.text)})}),(0,Ae.jsx)(Ud,{open:null!==d,onClose:()=>h(null),anchorEl:d,anchorOrigin:{vertical:"center",horizontal:"right"},transformOrigin:{vertical:"center",horizontal:"left"},children:(0,Ae.jsx)(ufe,{})}),c&&(0,Ae.jsx)(jF,{anchorEl:c,exit:()=>u(null)})]})};var ffe,gfe,mfe,yfe,vfe,_fe,bfe;function xfe(){return xfe=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},xfe.apply(this,arguments)}function Sfe(e,t){let{title:r,titleId:i,...o}=e;return n.createElement("svg",xfe({width:1e3,height:609,viewBox:"0 0 1000 609",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:t,"aria-labelledby":i},o),r?n.createElement("title",{id:i},r):null,ffe||(ffe=n.createElement("path",{d:"M478.934 327.059C484.282 327.059 488.851 328.954 492.639 332.742C496.428 336.531 498.322 341.099 498.322 346.448C498.322 351.685 496.428 356.198 492.639 359.987C488.851 363.775 484.282 365.669 478.934 365.669C473.696 365.669 469.183 363.775 465.395 359.987C461.606 356.198 459.712 351.685 459.712 346.448C459.712 341.099 461.606 336.531 465.395 332.742C469.183 328.954 473.696 327.059 478.934 327.059ZM467.233 401.94H490.801V583.792H467.233V401.94Z",fill:"white"})),gfe||(gfe=n.createElement("path",{d:"M630.7 421.83L615.657 437.374C603.177 425.228 590.975 419.155 579.052 419.155C571.475 419.155 564.957 421.662 559.497 426.677C554.148 431.691 551.474 437.541 551.474 444.227C551.474 450.133 553.702 455.76 558.16 461.108C562.617 466.568 571.977 472.976 586.24 480.33C603.623 489.356 615.434 498.047 621.674 506.404C627.803 514.873 630.867 524.4 630.867 534.986C630.867 549.917 625.63 562.565 615.156 572.927C604.681 583.29 591.588 588.472 575.877 588.472C565.402 588.472 555.374 586.187 545.791 581.619C536.319 577.05 528.464 570.755 522.224 562.732L536.932 546.017C548.855 559.5 561.502 566.242 574.874 566.242C584.234 566.242 592.201 563.233 598.775 557.216C605.35 551.199 608.637 544.123 608.637 535.989C608.637 529.303 606.464 523.341 602.118 518.104C597.773 512.979 587.967 506.516 572.701 498.716C556.321 490.247 545.178 481.89 539.272 473.644C533.367 465.398 530.414 455.983 530.414 445.397C530.414 431.58 535.094 420.102 544.454 410.965C553.925 401.828 565.848 397.26 580.223 397.26C596.937 397.26 613.763 405.45 630.7 421.83Z",fill:"white"})),mfe||(mfe=n.createElement("path",{d:"M758.398 397.26C786.366 397.26 809.543 407.4 827.929 427.68C844.644 446.177 853.001 468.073 853.001 493.367C853.001 518.773 844.142 541.003 826.425 560.057C808.819 579 786.143 588.472 758.398 588.472C730.54 588.472 707.753 579 690.036 560.057C672.43 541.003 663.627 518.773 663.627 493.367C663.627 468.184 671.984 446.344 688.699 427.847C707.084 407.455 730.317 397.26 758.398 397.26ZM758.398 420.158C739.009 420.158 722.35 427.345 708.422 441.72C694.493 456.094 687.529 473.477 687.529 493.868C687.529 507.017 690.704 519.274 697.056 530.64C703.407 542.006 711.987 550.809 722.796 557.049C733.605 563.177 745.472 566.242 758.398 566.242C771.323 566.242 783.19 563.177 793.999 557.049C804.808 550.809 813.388 542.006 819.739 530.64C826.091 519.274 829.266 507.017 829.266 493.868C829.266 473.477 822.246 456.094 808.206 441.72C794.278 427.345 777.675 420.158 758.398 420.158Z",fill:"white"})),yfe||(yfe=n.createElement("path",{d:"M887.767 401.94H911.668V428.515C918.8 418.041 926.321 410.241 934.233 405.115C942.144 399.878 950.39 397.26 958.97 397.26C965.433 397.26 972.341 399.321 979.696 403.444L967.494 423.167C962.591 421.05 958.468 419.991 955.125 419.991C947.326 419.991 939.804 423.223 932.561 429.685C925.318 436.037 919.802 445.954 916.014 459.437C913.117 469.8 911.668 490.748 911.668 522.283V583.792H887.767V401.94Z",fill:"white"})),vfe||(vfe=n.createElement("path",{d:"M20.4473 226.702L41.3402 214.167C56.0488 241.244 73.0418 254.783 92.319 254.783C100.565 254.783 108.309 252.888 115.552 249.1C122.795 245.2 128.311 240.018 132.099 233.555C135.888 227.092 137.782 220.24 137.782 212.997C137.782 204.751 134.996 196.672 129.425 188.761C121.736 177.841 107.696 164.692 87.3047 149.315C66.8017 133.826 54.0431 122.628 49.0288 115.719C40.3373 104.13 35.9916 91.5947 35.9916 78.1118C35.9916 67.4146 38.5545 57.6646 43.6802 48.8617C48.806 40.0588 55.9931 33.1502 65.2417 28.1359C74.6018 23.0101 84.7418 20.4473 95.6619 20.4473C107.25 20.4473 118.059 23.3444 128.088 29.1387C138.228 34.8216 148.925 45.3517 160.179 60.7289L140.122 75.9389C130.873 63.6817 122.962 55.6031 116.388 51.7031C109.925 47.8031 102.849 45.8531 95.1604 45.8531C85.2433 45.8531 77.1089 48.8617 70.7575 54.8788C64.5175 60.896 61.3974 68.306 61.3974 77.1089C61.3974 82.4575 62.5117 87.639 64.7403 92.6533C66.9689 97.6676 71.036 103.128 76.9418 109.033C80.1732 112.153 90.759 120.343 108.699 133.603C129.982 149.315 144.579 163.299 152.491 175.556C160.402 187.814 164.358 200.127 164.358 212.495C164.358 230.324 157.561 245.812 143.966 258.961C130.483 272.11 114.048 278.684 94.659 278.684C79.7275 278.684 66.1889 274.728 54.0431 266.817C41.8974 258.794 30.6987 245.423 20.4473 226.702Z",fill:"white"})),_fe||(_fe=n.createElement("path",{d:"M212.328 20.4473H235.895V163.856L319.969 90.6476H354.4L254.615 177.395L360.25 272.5H327.156L235.895 190.767V272.5H212.328V20.4473Z",fill:"white"})),bfe||(bfe=n.createElement("path",{d:"M241.971 337.817H215.075L320.492 583.792H325.592L537.601 90.8652H512.885L452.247 231.212L389.653 90.8652H364.714L439.533 259.086L323.147 527.555L241.971 337.817Z",fill:"white"})))}const wfe=n.forwardRef(Sfe),Efe=(__webpack_require__.p,e=>{const t=Zo()((()=>({root:{width:"100%",position:"absolute",bottom:"1rem",textAlign:"center",color:"white",fontSize:"0.9rem",cursor:"pointer"},newsIcon:{color:"rgba(255, 255, 255, 0.7)"}}))),{classes:n}=t();return(0,Ae.jsx)("div",{className:n.root,children:(0,Ae.jsx)(cu,{title:"What's new?",placement:"top",children:(0,Ae.jsx)("div",{children:e.isActive?(0,Ae.jsx)($h,{style:{color:"white"},size:25,onClick:()=>e.openNews()}):(0,Ae.jsx)(rA,{style:{color:"rgba(255, 255, 255, 0.7)"},size:25,onClick:()=>e.openNews()})})})})}),Pfe=e=>{const{withFetch:t=!1}=null!==e&&void 0!==e?e:{},[r,i]=(0,n.useState)(!1),[o,s]=(0,n.useState)(),a=m(),l=Sy.getState().auth.role,c=(0,n.useCallback)((async()=>{i(!0);try{const e=await yB();s(e)}catch(e){s(void 0)}finally{i(!1)}}),[]);return(0,n.useLayoutEffect)((()=>{if(t||o)return;const e=localStorage.getItem("_user");if(e)if(l){const t=JSON.parse(e);s({...t,role:l})}else s(JSON.parse(e))}),[a,o,l,t]),(0,n.useEffect)((()=>{t&&c()}),[t,c]),{userProfile:o,isLoading:r}},Cfe=Zo()((()=>({root:{},main:{marginLeft:Wy()?"0px":"90px",position:"relative"},sideBar:{height:"100vh",width:"90px",position:"fixed",backgroundColor:Tp,borderRight:"1px solid rgba(0, 0, 0, 0.12)",paddingLeft:"0.31rem",zIndex:2},iconBar:{position:"relative",overflowY:"auto",overflowX:"hidden",height:"100vh",cursor:"pointer"},menuIcon:{zIndex:10,position:"absolute",marginLeft:2,top:0,marginTop:"0.5rem"},stagingBanner:{position:"absolute",top:5,left:-15,width:"100%",backgroundColor:zp,color:"white",textAlign:"center",padding:"2px 0",transform:"rotate(-35deg)",zIndex:2}}))),Afe=e=>{var t;let{children:r}=e;const{classes:i}=Cfe(),o=on(),[s,a]=(0,n.useState)({solar:!0,wind:!0}),[l,c]=(0,n.useState)(!1),[u,d]=(0,n.useState)(!1),[h,p]=(0,n.useState)(null),{userProfile:f,isLoading:g}=Pfe(),m=async()=>{const e=await NV();var t,n;e&&(p(e),e.dateNews&&e.lastNewsRead?c((t=e.dateNews,n=e.lastNewsRead,Date.parse(t)-Date.parse(n)>0)):e.lastNewsRead||c(!0))},y=()=>{(async()=>{await Ey("/stats/newsRead",{method:"GET"})})(),c(!1),(null===h||void 0===h?void 0:h.url)&&window.open(h.url,"_blank")};(0,n.useEffect)((()=>{(async()=>{const e=await VT();e&&a(e)})(),m()}),[]);const v=e=>"/assets-solar"!==e.path&&"/assets-wind"!==e.path||SB()||"/assets-solar"===e.path&&s.solar||"/assets-wind"===e.path&&s.wind,_=[fB.ANNOTATOR,fB.EXPERT].includes(null!==(t=null===f||void 0===f?void 0:f.role)&&void 0!==t?t:fB.OWNER);let b;switch(null===f||void 0===f?void 0:f.role){case fB.ANNOTATOR:b=afe;break;case fB.EXPERT:b=lfe;break;default:b=sfe}const x=()=>(0,Ae.jsx)(Ea.Provider,{value:{color:"#fff"},children:(0,Ae.jsxs)(ws,{container:!0,className:i.sideBar,id:"SideBar",children:[false,(0,Ae.jsxs)("div",{className:i.iconBar,children:[(0,Ae.jsx)(wfe,{height:"80",width:"80",style:{marginTop:20,marginBottom:10,fontSize:"1rem",fontWeight:"bold"},onClick:()=>o.push("/")}),g?(0,Ae.jsx)($y,{}):b.map(((e,t)=>{var n;return v(e)?(0,Ae.jsx)(pfe,{item:e,hideItemGroup:(null===(n=b[t-1])||void 0===n?void 0:n.group)===e.group&&v(b[t-1]),closeSide:()=>d(!1)},t):(0,Ae.jsx)("div",{},t)})),!Wy()&&!_&&(0,Ae.jsx)(Efe,{openNews:y,isActive:l})]})]})});return(0,Ae.jsxs)("div",{className:i.root,children:[Wy()&&(0,Ae.jsxs)("div",{className:i.menuIcon,children:[(0,Ae.jsx)(aE,{size:25,onClick:e=>{e.preventDefault(),d(!0)}}),(0,Ae.jsx)(Td,{open:u,onClose:()=>d(!1),children:(0,Ae.jsx)("div",{children:(0,Ae.jsx)(x,{})})})]}),!Wy()&&(0,Ae.jsx)(Ae.Fragment,{children:(0,Ae.jsx)(x,{})}),(0,Ae.jsx)("div",{className:i.main,children:r})]})};var kfe=__webpack_require__(47971),jfe=__webpack_require__(28200),Ife=__webpack_require__(39632),Gfe=__webpack_require__.n(Ife);function Tfe(e){const t=e.acceptedFilesCount?e.countProgress>=e.acceptedFilesCount?e.acceptedFilesCount:e.countProgress:0;return(0,Ae.jsxs)(ws,{item:!0,children:[(0,Ae.jsxs)("div",{children:["Analyzing:"," ",(0,Ae.jsx)("span",{style:{color:e.analyzedProgress&&e.analyzedProgress===e.analyzedCount?"green":jp},children:"".concat(e.analyzedProgress," / ").concat(e.analyzedCount)})]}),(0,Ae.jsxs)("div",{children:["Uploading:"," ",(0,Ae.jsx)("span",{style:{color:e.uploadFinished&&e.acceptedFilesCount?"green":jp},children:"".concat(t," / ").concat(e.acceptedFilesCount)})]}),(0,Ae.jsxs)("div",{children:["Already uploaded:"," ",(0,Ae.jsx)("span",{style:{color:"orange"},children:e.declinedAlreadyUploadedCount})]}),(0,Ae.jsxs)("div",{children:["Inspection not found:"," ",(0,Ae.jsx)("span",{style:{color:"red"},children:e.declinedNotFoundCount})]})]})}function Mfe(e){return e.loadingExif?(0,Ae.jsx)(yf,{variant:"indeterminate",size:80}):e.total>0?(0,Ae.jsx)(Zy,{variant:"determinate",value:100*e.countProgress/e.total,size:80}):(0,Ae.jsx)("div",{})}const Ofe={flex:1,display:"flex",flexDirection:"column",alignItems:"center",padding:"40px",borderWidth:3,borderRadius:3,borderColor:"#5d5d5d",borderStyle:"dashed",backgroundColor:"#fafafa",color:"#5d5d5d",outline:"none",transition:"border .24s ease-in-out"},Rfe={borderColor:"#2196f3"},Dfe={borderColor:"#00e676"},Nfe={borderColor:"#00e676"},Lfe=[],Vfe=()=>{const e=on(),[t,r]=(0,n.useState)(!1),[i,o]=(0,n.useState)(!1),[s,a]=(0,n.useState)([]),[l,c]=(0,n.useState)([]),[u,d]=(0,n.useState)({}),[h,p]=(0,n.useState)([]),[f,g]=(0,n.useState)(0),[m,y]=(0,n.useState)(0),[v,_]=(0,n.useState)(0),[b,x]=(0,n.useState)(0),[S,w]=(0,n.useState)(0),[E,P]=(0,n.useState)(0),[C,A]=(0,n.useState)(!1),[k,j]=(0,n.useState)([]),[I,G]=(0,n.useState)(0);let T=!1;const M=wo();let O=function(e){return e[e.PENDING=0]="PENDING",e[e.UPLOADING=1]="UPLOADING",e[e.UPLOADED=2]="UPLOADED",e}({});const R=(e,t,n,r)=>{let i=e+t/60+n/3600;return"S"!==r&&"W"!==r||(i*=-1),i};(0,n.useEffect)((()=>{if(0===k.length||I>=100)return;const e=setTimeout((()=>{k.forEach((e=>{j([]),D(e)})),G((e=>e+1))}),1e4);return()=>{clearTimeout(e)}}),[I,k]);const D=async e=>{try{const n=await((e,t)=>{const n={uid:t,dateTime:e.dateTime,latitude:e.lat,longitude:e.lon,filename:e.file.name},r=new Headers;r.append("Content-Type","application/json");const i={method:"POST",headers:r,body:JSON.stringify(n)};return fetch("https://europe-west1-".concat("skyvisor-prod",".cloudfunctions.net/getUploadFileDestination"),i)})(e,M.uid);if(T&&(T=!1,o(T)),!n.ok){var t;const e=null!==(t=await n.text())&&void 0!==t?t:"An error occured";throw new Error(e)}{const t=await n.json();P((e=>e+1)),t.url&&t.inspectionId?(h.push({file:e.file,url:t.url,status:O.PENDING,inspectionId:t.inspectionId}),p(h),_((e=>e+1)),-1===Lfe.indexOf(t.inspectionId)&&Lfe.push(t.inspectionId),N()):t.inspectionId?g((e=>e+1)):y((e=>e+1))}}catch(n){j((t=>[...t,e]))}},N=()=>{let e=0;for(const t of h)t.status===O.UPLOADING&&e++;for(let t=0;t<3-e;t++){const e=V();null!=e&&(e.status=O.UPLOADING,fetch(e.url,{method:"PUT",body:e.file}).then((e=>{L(e.url),N()})).catch((()=>{N()})))}},L=e=>{for(const t of h)if(e===t.url){t.status=O.UPLOADED;for(const n of s)if(t.inspectionId===n.id&&n.uploadedCount<n.photoCount){n.uploadedCount++;const e=!n.photoCount||n.uploadedCount<0||n.photoCount<0;n.uploadProgress=e?0:100*n.uploadedCount/n.photoCount,n.uploadProgressText=e?"":n.uploadedCount+"/"+n.photoCount,n.isUploadOngoing=!0}const e=JSON.parse(JSON.stringify(s));a(e),Q(u),x((e=>e+1))}},V=()=>{let e=null;for(const t of h)null===e&&t.status===O.PENDING&&(e=t);return e},F=(0,n.useCallback)((e=>{w((t=>t+e.length)),e.length>0&&(T=!0,o(T)),e.forEach((e=>{Gfe().getData(e,(function(){const t=Gfe().getTag(e,"DateTimeOriginal"),n=Gfe().getTag(e,"GPSLatitude"),r=Gfe().getTag(e,"GPSLatitudeRef"),i=Gfe().getTag(e,"GPSLongitude"),s=Gfe().getTag(e,"GPSLongitudeRef");if(void 0!==n&&void 0!==i){const o=R(n[0],n[1],n[2],r),a=R(i[0],i[1],i[2],s),l=(e=>{const t=e.split(/\D/),n=new Date(t[0],t[1]-1,t[2],t[3],t[4],t[5]),r=new Intl.DateTimeFormat("en",{month:"2-digit"}).format(n),i=new Intl.DateTimeFormat("en",{day:"2-digit"}).format(n),o=("0"+n.getHours()).substr(-2),s=("0"+n.getMinutes()).substr(-2),a=("0"+n.getSeconds()).substr(-2);return n.getFullYear()+"-"+r+"-"+i+"T"+o+":"+s+":"+a+".000Z"})(t);D({file:e,dateTime:l,lat:o,lon:a,processed:!1})}else T&&(T=!1,o(T)),y((e=>e+1))}))}))}),[]),{getRootProps:z,getInputProps:B,isDragActive:U,isDragAccept:W,isDragReject:H}=pq({onDrop:F,accept:{"image/jpeg":[".jpg",".jpeg"]},maxSize:4e7}),q=(0,n.useMemo)((()=>({...Ofe,...U?Rfe:{},...W?Dfe:{},...H?Nfe:{}})),[U,H,W]);async function X(){r(!0);const e=await(async()=>{const e=new Headers;e.append("Content-Type","application/json");const t={method:"GET",headers:e},n=await Ey("/inspections/getInspectionsToBeUploaded",t);return await n.json()})();s.splice(0,s.length);for(const t of e)s.push(t);r(!1),a(s),Q(u)}(0,n.useEffect)((()=>{X()}),[]);const Y=(0,n.useMemo)((()=>(0,Sp.c)({palette:{primary:{light:kfe.c[300],main:kfe.c[500],dark:kfe.c[700]}}})),[]),K=(0,n.useMemo)((()=>(0,Sp.c)({palette:{primary:{light:jfe.c[300],main:jfe.c[500],dark:jfe.c[700]}}})),[]),Z=e=>({filterOptions:$(e),filterAction:J}),$=e=>{switch(e){case"asset":return Vy(s,"assetName",!0);case"subasset":return Vy(s,"subAssetName",!0);case"type":return Vy(s,"type",!0);default:return[]}},J=(e,t)=>{const n={...u,[e]:t};d(n),Q(n)},Q=e=>{let t=[...s];Object.entries(e).forEach((e=>{let[n,r]=e;Array.isArray(r)&&r.length>0&&(t=t.filter((e=>r.includes(e[n]))))})),c(t)},ee=[{id:"id",label:"id",hidden:!0},{id:"plannedDate",label:"Inspection Date"},{id:"assetName",label:"Asset",filter:!0,...Z("asset")},{id:"subAssetName",label:"SubAsset",filter:!0,...Z("subasset")},{id:"type",label:"Type",filter:!0,...Z("type")},{id:"notes",label:"Note"},{id:"uploadProgress",label:"Progress"},{id:"uploadProgressText",label:"Photos"}];return(0,Ae.jsx)(PF,{pageTitle:"Uploader",left:(0,Ae.jsx)(CF,{title:"Uploader"}),center:(0,Ae.jsx)(jF,{}),children:(0,Ae.jsxs)(ws,{container:!0,spacing:0,direction:"column",children:[(0,Ae.jsxs)(ws,{container:!0,alignItems:"center",children:[(0,Ae.jsx)(ws,{item:!0,style:{padding:"5px 20px",cursor:"pointer"},children:(0,Ae.jsxs)("div",{...z({style:{...q,borderColor:C&&!H?"#00e676":q.borderColor}}),onMouseEnter:()=>A(!0),onMouseLeave:()=>A(!1),children:[(0,Ae.jsx)("input",{...B()}),(0,Ae.jsx)("p",{children:"Drag and drop images here"})]})}),(0,Ae.jsx)(ws,{item:!0,children:(0,Ae.jsx)(Tfe,{analyzedCount:S,analyzedProgress:E,acceptedFilesCount:v,declinedAlreadyUploadedCount:f,declinedNotFoundCount:m,countProgress:b,uploadFinished:b+f+m===S})}),(0,Ae.jsx)(ws,{item:!0,style:{marginLeft:100},children:(0,Ae.jsx)(Mfe,{loadingExif:i,countProgress:b+f+m,total:S})})]}),(0,Ae.jsx)("div",{style:{margin:20,height:"calc(100vh - 230px)",overflowY:"auto"},children:(0,Ae.jsx)(jT,{ariaLabel:"enhanced table",headCells:ee,rows:l,contentCells:[{name:"id",hidden:!0},{name:"plannedDate",type:"date"},{name:"assetName"},{name:"subAssetName"},{name:"type"},{name:"notes"},{name:"uploadProgress",type:"specific"},{name:"uploadProgressText"}],evenColumns:!0,loading:t,specificFormat:(e,t,n)=>{if("uploadProgress"===e)return-1!==Lfe.indexOf(n.id)?(0,Ae.jsx)(Me,{theme:Y,children:(0,Ae.jsx)(qpe,{textPosition:"top",decimal:2,value:t,color:"primary"})}):t<0?(0,Ae.jsx)("div",{style:{color:"red"},children:"NOT INSPECTED YET"}):0===t?(0,Ae.jsx)(Me,{theme:K,children:(0,Ae.jsx)(qpe,{textPosition:"top",decimal:2,value:t,color:"primary"})}):100===t?(0,Ae.jsx)(Me,{theme:Y,children:(0,Ae.jsx)(qpe,{textPosition:"top",decimal:2,value:t,color:"primary"})}):(0,Ae.jsx)(qpe,{textPosition:"top",decimal:2,value:t,color:"primary"})},orderBy:"uploadProgress",order:"desc",selectRow:t=>{b+f+m===S&&e.push("/inspections/".concat(t))}})})]})})};var Ffe=__webpack_require__(84804);const zfe={control:()=>({marginTop:20,marginBottom:10,display:"flex",border:"1px solid lightgrey",height:60,borderRadius:4,zIndex:2})},Bfe=e=>{var t;const r={firstName:"",lastName:"",email:"",company:"",password:"",assetRight:!1,role:fB.OWNER},[i,o]=(0,n.useState)("create"),[s,a]=(0,n.useState)(r),[l,c]=(0,n.useState)([]),[u,d]=(0,n.useState)([]),[h,p]=(0,n.useState)(""),[f,g]=(0,n.useState)(!1),[m,y]=(0,n.useState)(""),[v,_]=(0,n.useState)([]),[b,x]=(0,n.useState)(!0),S=(0,n.useMemo)((()=>{var e;if(s.id)return!!s.email&&"@skyvisor.fr"===(e=s.email).substring(e.indexOf("@"))}),[s.id,s.email]);(0,n.useEffect)((()=>{!async function(){var e;const t=await PB();if(t&&null!==(e=t.companies)&&void 0!==e&&e.length){const e=t.companies.map((e=>({label:e,value:e})));_(e)}}(),(async()=>{const e=await AB();if(e&&e.length){const t=[];d(e),e.forEach((e=>{var n;const r=e.firstName?e.firstName:"",i=e.lastName?e.lastName:"",o=r+" "+i+" \u2192 "||"";t.push({label:r||i?o+e.email:e.email,value:null!==(n=e.id)&&void 0!==n?n:""})})),c(t)}})()}),[]),(0,n.useEffect)((()=>{a(r)}),[e.date]);const w=e=>{a((t=>({...t,[e.target.id]:e.target.value})))},E=async(e,t)=>{e.preventDefault();try{g(!0);const e={...s,role:[fB.EXPERT,fB.ANNOTATOR].includes(s.role)?s.role:fB.OWNER},n=await(async e=>{const t=new Headers;t.append("Content-Type","application/json");const n={method:"POST",headers:t,body:JSON.stringify(e)};return await Ey("/superSignup",n)})(e);if(g(!1),200!==n.status){const e=await n.json();p(e&&e.message?e.message:" An error occured"),setTimeout((()=>p("")),4e3)}else{y("The user has been "+(t?"created":"updated")),setTimeout((()=>y("")),3e3),p("")}}catch(n){n instanceof Error?p(n.message):p("An error occured")}},P=Object.values(fB).map((e=>({label:e.toUpperCase(),value:e}))),C=(0,n.useMemo)((()=>"create"===i),[i]),A=(0,n.useMemo)((()=>"create"===i?"Register Account":"Update user"),[i]);return(0,n.useEffect)((()=>{x("create"===i)}),[i]),(0,n.useEffect)((()=>{const e=b?function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:12;const t="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789.,;^$\xa8\xf9*/-+";let n="";for(let r=0;r<e;r++)n+=t.charAt(Math.floor(73*Math.random()));return n}():"";a((t=>({...t,password:e})))}),[b]),(0,Ae.jsxs)(Ae.Fragment,{children:[(0,Ae.jsx)(we,{children:(0,Ae.jsx)("title",{children:"Registration"})}),(0,Ae.jsxs)(nB,{maxWidth:"sm",style:{backgroundColor:"white",borderRadius:"4%",paddingBottom:"1%",margin:0,height:"90vh",overflow:"auto"},children:[(0,Ae.jsxs)(NX,{value:"create"===i?0:1,onChange:(e,t)=>{o(0===t?"create":"update"),a(r)},TabIndicatorProps:{style:{background:"red"}},children:[(0,Ae.jsx)(UX,{label:"Register"}),(0,Ae.jsx)(UX,{label:"Update"})]}),(0,Ae.jsx)("br",{}),"update"===i&&(0,Ae.jsxs)(Ae.Fragment,{children:[(0,Ae.jsx)(ET,{styles:{menu:e=>({...e,zIndex:2})},options:l,placeholder:"Select user",onChange:e=>(e=>{const t=u.find((t=>t.id===e));a(t||r)})(null===e||void 0===e?void 0:e.value)}),s.id&&(0,Ae.jsx)(vu,{color:Rp,padding:"0.25rem 0",textAlign:"right",children:s.id})]}),("create"===i||void 0!==s.id)&&(0,Ae.jsxs)("form",{children:[(0,Ae.jsx)(iE,{fullWidth:!0,label:"First name",margin:"normal",variant:"outlined",autoComplete:"off",id:"firstName",name:"firstName",onChange:w,value:s.firstName}),(0,Ae.jsx)(iE,{fullWidth:!0,label:"Last name",margin:"normal",variant:"outlined",autoComplete:"off",id:"lastName",name:"lastName",onChange:w,value:s.lastName}),(0,Ae.jsx)(iE,{fullWidth:!0,label:"Email Address",margin:"normal",variant:"outlined",autoComplete:"off",type:"email",name:"email",id:"email",onChange:w,value:s.email}),"create"===i&&(0,Ae.jsxs)(ws,{container:!0,alignItems:"center",children:[(0,Ae.jsx)(lj,{onChange:()=>x((e=>!e)),checked:b,color:"primary"}),(0,Ae.jsx)(vu,{children:"Use automatic password"})]}),(0,Ae.jsx)(iE,{fullWidth:!0,disabled:b,label:"Password",type:"password",variant:"outlined",autoComplete:"off",required:C,margin:"normal",name:"password",id:"password",onChange:w,value:s.password}),![fB.EXPERT].includes(s.role)&&(0,Ae.jsx)(ET,{id:"company",options:v,styles:zfe,value:s.company?{label:s.company,value:s.company}:null,placeholder:"Company",onChange:e=>{a((t=>({...t,company:e&&e.value?e.value:""})))}}),(0,Ae.jsx)(ET,{id:"role",options:P,styles:zfe,value:s.role?{label:s.role.toUpperCase(),value:s.role}:{label:fB.OWNER.toUpperCase(),value:fB.OWNER},placeholder:"User Role",onChange:e=>{e&&e.value===fB.EXPERT?a((t=>({...t,role:e&&e.value?e.value:fB.OWNER,company:"expert_company"}))):a((t=>({...t,role:e&&e.value?e.value:fB.OWNER,company:""})))}}),(0,Ae.jsxs)("div",{style:{color:Gp,marginTop:"0.5rem"},children:["Assets creation right:",(0,Ae.jsx)(lj,{onChange:()=>a((e=>({...e,assetRight:!s.assetRight}))),checked:s.assetRight,color:"primary"})]}),(0,Ae.jsx)(wp,{sx:{alignItems:"center",display:"flex",ml:-1}}),S&&(0,Ae.jsx)(aF,{text:"DataScientist mode",textStyle:{color:"black"},textBefore:!0,checked:null!==(t=s.isDataScientist)&&void 0!==t&&t,onChange:e=>{a((t=>({...t,isDataScientist:e})))}}),(0,Ae.jsx)(wp,{sx:{py:2},children:(0,Ae.jsx)(ev,{label:A,loading:f,fullWidth:!0,onClick:e=>E(e,C)})})]}),""!==h&&(0,Ae.jsx)(pM,{severity:"error",children:h}),""!==m&&(0,Ae.jsx)(pM,{severity:"success",children:m})]})]})};var Ufe=__webpack_require__(35488),Wfe=__webpack_require__(87424);const Hfe=()=>{var e,t;const[r,i]=(0,n.useState)([]),[o,s]=(0,n.useState)(!1),[a,l]=(0,n.useState)(!1),[c,u]=(0,n.useState)([]),[d,h]=(0,n.useState)(!1),[p,f]=(0,n.useState)(null),[g,m]=(0,n.useState)(!1),[y,v]=(0,n.useState)(null),[_,b]=(0,n.useState)(null),x=(null===y||void 0===y?void 0:y.role)===fB.EXPERT,S=[...new Set(c.map((e=>e.asset.name)))],w=[...new Set(c.map((e=>e.subAssets.map((e=>e.name)))).flat())],E=[...new Set(c.map((e=>e.asset.company?e.asset.company:"")))].filter((e=>""!==e));(0,n.useEffect)((()=>{(async()=>{s(!0),await(async()=>{const e=await AB();i(e)})(),await(async()=>{const e=await GT();e.sort(((e,t)=>e.type!==t.type?e.type===HB.SOLAR?-1:1:e.company&&t.company&&e.company!==t.company?e.company<t.company?-1:1:e.name<t.name?-1:1));const t=e.map((e=>({asset:e,subAssets:[]})));u(t)})(),s(!1)})()}),[]),(0,n.useEffect)((()=>{if(r.length>0&&c.length>0&&!y){var e;const t=wo();v(null!==(e=r.find((e=>e.id===t.uid)))&&void 0!==e?e:null)}}),[r,c]);const P=c.filter((e=>{let{asset:t,subAssets:n}=e;return null===p||(t.name===p||(t.company===p||(!!n.some((e=>{let{name:t}=e;return t===p}))||!!n.some((e=>{let{assignedExpert:t}=e;return(null===t||void 0===t?void 0:t.name)===p})))))})).filter((e=>{let{asset:t,subAssets:n}=e;return!x||t.type===HB.WIND&&n.length>0})).filter((e=>{var t;return!g||(x?e.subAssets.flat().some((e=>{let{assignedExpert:t}=e;return(null===t||void 0===t?void 0:t.id)===y.id})):Object.keys(e.asset.roles).includes(null!==(t=null===y||void 0===y?void 0:y.id)&&void 0!==t?t:""))})),C=(0,n.useCallback)((function(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};u((i=>i.map((i=>i.asset.id===e||"all"===e?{...i,...n,subAssets:i.subAssets.map((e=>"all"===t||e.id===t?{...e,...r}:e))}:i))))}),[]),A=async function(e,t){let n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(y){if(l(!0),x){const n=t?{id:y.id,name:"".concat(y.firstName," ").concat(y.lastName),email:y.email}:null,r=[];e.subAssets.map((i=>{var o;r.push(Yhe(e.asset.id,i.id,{SkyVisorAnalysis:t,assignedExpert:n})),r.push(Khe(null!==(o=e.asset.company)&&void 0!==o?o:"",e.asset.id,i.id,y.id,t?"add":"remove"))})),await Promise.all(r),C(e.asset.id,"all",{},{SkyVisorAnalysis:t,assignedExpert:n})}else await(async(e,t,n)=>{const r=new Headers;r.append("Content-Type","application/json");const i={method:"POST",body:JSON.stringify({uid:e,assetId:t,task:n}),headers:r};await Ey("/assets/updateUserAssets",i)})(y.id,e.asset.id,t?"add":"remove"),C(e.asset.id,"all",t?{asset:{...e.asset,roles:{...e.asset.roles,[y.id]:fB.OWNER}}}:{asset:{...e.asset,roles:{...Object.keys(e.asset.roles).filter((e=>e!==y.id)).reduce(((t,n)=>({...t,[n]:e.asset.roles[n]})),{})}}},{});n||l(!1)}};(0,n.useEffect)((()=>{y&&(d||y.role!==fB.EXPERT||(async()=>{l(!0);const e=(await RT()).map((e=>{const t=e.subAssets;return t.sort(((e,t)=>e.name.localeCompare(t.name,void 0,{numeric:!0,sensitivity:"base"}))),{...e,subAssets:t}}));u(e),h(!0),l(!1)})())}),[y,d]),(0,n.useEffect)((()=>{y&&u((e=>e.map((e=>({...e,subAssets:e.subAssets.map((e=>e.assignedExpert&&e.assignedExpert.id===y.id?{...e,assignedExpert:{id:y.id,name:"".concat(y.firstName," ").concat(y.lastName),email:y.email}}:e))})))))}),[y]);if(o)return(0,Ae.jsx)($y,{size:40});const k=()=>{if(!y||!_)return null;let e=0;if(x){const t=P.map((e=>e.subAssets)).flat().filter((e=>{var t;return(null===(t=e.assignedExpert)||void 0===t?void 0:t.id)===y.id})).length;e="assign"===_?P.map((e=>e.subAssets)).flat().length-t:t}else{const t=P.filter((e=>Object.keys(e.asset.roles).includes(y.id))).length;e="assign"===_?P.length-t:t}return(0,Ae.jsx)($x,{open:!!_,children:(0,Ae.jsxs)(zx,{children:[(0,Ae.jsxs)(vu,{children:["Are you sure you want to ",_," ",e," ",x?"SubAsset(s)":"Asset(s)","?"]}),(0,Ae.jsx)(ohe,{onCancel:()=>b(null),onValidate:()=>{"unassign"===_?(async()=>{if(!y)return;l(!0);const e=P.filter((e=>x?e.subAssets.some((e=>{let{assignedExpert:t}=e;return(null===t||void 0===t?void 0:t.id)===y.id})):Object.keys(e.asset.roles).includes(y.id))).map((e=>A(e,!1,!0)));await Promise.all(e),l(!1)})():"assign"===_&&(async()=>{if(!y)return;l(!0);const e=P.filter((e=>x?!e.subAssets.every((e=>{let{assignedExpert:t}=e;return(null===t||void 0===t?void 0:t.id)===y.id})):!Object.keys(e.asset.roles).includes(y.id))).map((e=>A(e,!0,!0)));await Promise.all(e),l(!1)})(),b(null)}})]})})};return(0,Ae.jsxs)(Ae.Fragment,{children:[(0,Ae.jsx)(we,{children:(0,Ae.jsx)("title",{children:"User assets rights"})}),(0,Ae.jsxs)(nB,{style:{backgroundColor:"white",borderRadius:"5px",padding:"1rem"},children:[(0,Ae.jsx)(k,{}),(0,Ae.jsxs)(wp,{display:"flex",alignItems:"center",gap:"1rem",marginBottom:"1rem",children:[(0,Ae.jsx)(rz,{options:r,isOptionEqualToValue:(e,t)=>e.id===t.id,sx:{width:300},getOptionLabel:e=>"".concat(e.firstName," ").concat(e.lastName," - ").concat(e.email),renderOption:(e,t)=>(0,n.createElement)("li",{...e,key:t.id},t.firstName," ",t.lastName," - ",t.email),renderInput:e=>(0,Ae.jsx)(iE,{...e,label:"Select user",InputLabelProps:{shrink:!0}}),value:y,disabled:a,onChange:(e,t)=>v(r.find((e=>!!t&&e.id===t.id))||null)}),y&&(0,Ae.jsxs)(wp,{display:"flex",gap:"1rem",alignItems:"center",children:[(0,Ae.jsx)(vu,{bgcolor:y.role===fB.EXPERT?"error.main":"lightblue",color:"white",borderRadius:"10px",padding:"2px",fontWeight:"bold",fontSize:"1rem",style:{textTransform:"uppercase"},children:null!==(e=null===(t=y.role)||void 0===t?void 0:t.toUpperCase())&&void 0!==e?e:fB.OWNER.toUpperCase()}),(0,Ae.jsxs)(vu,{children:[x?P.map((e=>e.subAssets)).flat().filter((e=>{var t;return(null===(t=e.assignedExpert)||void 0===t?void 0:t.id)===y.id})).length:P.map((e=>Object.keys(e.asset.roles))).flat().filter((e=>e===y.id)).length," ",x?"SubAsset(s)":"Asset(s)"]}),a&&(0,Ae.jsx)($y,{size:20})]})]}),y&&(0,Ae.jsxs)(ws,{container:!0,flexDirection:"column",style:{backgroundColor:"white",borderRadius:"5px"},children:[(0,Ae.jsxs)(ws,{item:!0,container:!0,alignItems:"center",gap:"1rem",children:[(0,Ae.jsx)(rz,{id:"filter",options:[...new Set([...S,...w,...E])],sx:{width:300},value:p,disabled:a,renderOption:(e,t)=>(0,n.createElement)("li",{...e,key:t},t),renderInput:e=>(0,Ae.jsx)(iE,{...e,label:"Filter"}),onChange:(e,t)=>f(t)}),(0,Ae.jsxs)(vu,{children:[P.length," Assets"," ",y.role===fB.EXPERT?"/ SubAssets: ".concat(P.map((e=>e.subAssets)).flat().length):""]}),(0,Ae.jsx)(ev,{onClick:()=>b("assign"),disabled:a,children:"Assign all"}),(0,Ae.jsx)(ev,{onClick:()=>b("unassign"),disabled:a,children:"Unassign all"}),(0,Ae.jsxs)(wp,{display:"flex",gap:"1rem",alignItems:"center",children:[(0,Ae.jsx)(lj,{checked:g,disabled:a,onChange:()=>{m((e=>!e))}}),(0,Ae.jsx)(vu,{children:"Show only Assigned"})]})]}),(0,Ae.jsx)(ws,{item:!0,children:P.map(((e,t)=>(0,Ae.jsx)(ws,{item:!0,children:x?(0,Ae.jsxs)(Ph,{children:[(0,Ae.jsx)(Th,{expandIcon:(0,Ae.jsx)(cp.c,{}),children:(0,Ae.jsxs)(wp,{display:"flex",alignItems:"center",gap:"1rem",children:[(0,Ae.jsx)(lj,{disabled:a,onChange:t=>A(e,t.target.checked),onClick:e=>e.stopPropagation(),checked:e.subAssets.every((e=>{let{assignedExpert:t}=e;return(null===t||void 0===t?void 0:t.id)===y.id}))}),(0,Ae.jsxs)(wp,{display:"flex",alignItems:"center",gap:"1rem",color:jp,children:[e.asset.type===HB.SOLAR?(0,Ae.jsx)(Wfe.c,{}):(0,Ae.jsx)(Ufe.c,{}),(0,Ae.jsxs)(vu,{children:[e.asset.company," - ",e.asset.name]})]}),e.subAssets.some((e=>{let{assignedExpert:t}=e;return(null===t||void 0===t?void 0:t.id)===y.id}))&&(0,Ae.jsxs)(vu,{color:"primary",children:[e.subAssets.filter((e=>{let{assignedExpert:t}=e;return(null===t||void 0===t?void 0:t.id)===y.id})).length," ","Assignments"]})]})}),(0,Ae.jsx)(Dh,{children:e.subAssets.sort(((e,t)=>e.name.localeCompare(t.name,void 0,{numeric:!0,sensitivity:"base"}))).map(((n,r)=>{var i;return(0,Ae.jsxs)(wp,{display:"flex",alignItems:"center",justifyContent:"flex-start",marginLeft:"2rem",gap:"1rem",marginY:"0.5rem",children:[(0,Ae.jsx)(lj,{onChange:t=>(async(e,t,n)=>{var r;if(!y)return;const i=c.find((t=>t.asset.id===e)),o=null===i||void 0===i?void 0:i.subAssets.find((e=>e.id===t)),s=null===i||void 0===i?void 0:i.asset.company;if(!o)return;l(!0);const a=(null===(r=o.assignedExpert)||void 0===r?void 0:r.id)===y.id?null:{id:y.id,name:"".concat(y.firstName," ").concat(y.lastName),email:y.email};await Yhe(e,t,{SkyVisorAnalysis:n,assignedExpert:a}),await Khe(null!==s&&void 0!==s?s:"",e,t,y.id,n?"add":"remove"),C(e,t,{},{SkyVisorAnalysis:n,assignedExpert:a}),l(!1)})(e.asset.id,n.id,t.target.checked),checked:(null===(i=n.assignedExpert)||void 0===i?void 0:i.id)===y.id,disabled:a}),(0,Ae.jsx)(vu,{children:n.name}),n.assignedExpert&&(0,Ae.jsx)(vu,{color:"primary",children:n.assignedExpert.name})]},n.id+t+r)}))})]}):(0,Ae.jsxs)(wp,{display:"flex",alignItems:"center",paddingY:"0.5rem",children:[(0,Ae.jsx)(lj,{disabled:a,onChange:t=>{A(e,t.target.checked)},onClick:e=>e.stopPropagation(),checked:Object.keys(e.asset.roles).includes(y.id)}),(0,Ae.jsxs)(wp,{display:"flex",alignItems:"center",gap:"1rem",children:[e.asset.type===HB.SOLAR?(0,Ae.jsx)(Wfe.c,{}):(0,Ae.jsx)(Ufe.c,{}),(0,Ae.jsxs)(vu,{children:[e.asset.company," - ",e.asset.name," "]})]})]})},e.asset.id+t)))})]}),o&&(0,Ae.jsx)($y,{size:40})]})]})},qfe=[{index:"1",clientId:"",descEn:"",descDe:"",descFr:"",descEs:""},{index:"2",clientId:"",descEn:"",descDe:"",descFr:"",descEs:""},{index:"3",clientId:"",descEn:"",descDe:"",descFr:"",descEs:""},{index:"4",clientId:"",descEn:"",descDe:"",descFr:"",descEs:""},{index:"5",clientId:"",descEn:"",descDe:"",descFr:"",descEs:""}],Xfe=e=>{const t=Zo()((()=>({title:{float:"left",fontSize:24},header:{height:50},table:{background:"white",padding:15,outline:"none",borderRadius:7,width:"80%"},modal:{display:"flex",alignItems:"center",justifyContent:"center"},cell:{width:"400px",color:"black",padding:2},cellName:{width:"100px",color:"black",padding:10,textAlign:"center"},cellNameH:{width:"100px",color:"black",padding:10,textAlign:"left"},inputLang:{width:350,height:40,padding:5,borderColor:"#00A6FF",borderRadius:7,marginLeft:5},input:{height:40,padding:5,borderColor:"#00A6FF",borderRadius:7},tbody:{maxHeight:500,overflowY:"auto",display:"block"},row:{display:"table",width:"100%"},lang:{display:"flex",alignItems:"center"}}))),{classes:r}=t(),[i,o]=(0,n.useState)(qfe),s=(0,n.useCallback)(((t,n,r)=>{o((e=>{const i=[...e];return i[t][n]=r,i}));const s=JSON.parse(JSON.stringify(i));s[t][n]=r,e.validate(s,e.type)}),[e,i]),a=(0,n.useCallback)(((e,t,n)=>(0,Ae.jsx)("tr",{className:r.row,children:(0,Ae.jsxs)("td",{className:r.lang,children:[n.toUpperCase(),(0,Ae.jsx)("input",{type:"text",value:e["desc"+n]?e["desc"+n]:"",onChange:e=>s(t,"desc"+n,e.target.value),className:r.inputLang})]})},t+n)),[r.inputLang,r.lang,r.row,s]),l=(0,n.useCallback)(((e,t)=>(0,Ae.jsx)("table",{children:(0,Ae.jsxs)("tbody",{children:[a(e,t,"En"),a(e,t,"Fr"),a(e,t,"De"),a(e,t,"Es")]})})),[a]);(0,n.useEffect)((()=>{const t=qfe;if(e.companyInfo[e.type+"DefectsCategories"])for(const n of["1","2","3","4","5"])if(e.companyInfo[e.type+"DefectsCategories"][n]){const r=t.findIndex((e=>e.index===n));-1!==r&&(t[r]={...t[r],...e.companyInfo[e.type+"DefectsCategories"][n]})}o(t)}),[e.companyInfo,e.type]);const c=(0,n.useCallback)((()=>i.map(((e,t)=>(0,Ae.jsxs)("tr",{className:r.row,children:[(0,Ae.jsx)("td",{className:r.cellName,children:e.index}),(0,Ae.jsx)("td",{className:r.cellName,children:(0,Ae.jsx)("input",{type:"text",value:e.clientId?e.clientId:"",className:r.input,onChange:e=>s(t,"clientId",e.target.value)})}),(0,Ae.jsx)("td",{className:r.cell,children:l(e,t)})]},t)))),[i,l,r.cell,r.cellName,r.input,r.row,s]);return(0,Ae.jsx)("div",{children:(0,Ae.jsxs)("table",{children:[(0,Ae.jsx)("thead",{children:(0,Ae.jsxs)("tr",{className:r.row,children:[(0,Ae.jsx)("th",{className:r.cellNameH,children:"Index"}),(0,Ae.jsx)("th",{className:r.cellNameH,children:"Ref"}),(0,Ae.jsx)("th",{className:r.cell,children:"Description"})]})}),(0,Ae.jsx)("tbody",{className:r.tbody,children:c()})]})})},Yfe=async(e,t)=>{const n=await Ey("/companies/".concat(e),{method:"PATCH",body:JSON.stringify(t)});if(!n.ok){const e=await n.text();throw new Error(null!==e&&void 0!==e?e:"An error occured")}},Kfe={control:()=>({paddingTop:0,margin:15,width:200,display:"flex",border:"1px solid grey",height:30,zIndex:2})},Zfe=()=>{const[e,t]=(0,n.useState)({label:"",value:""}),[r,i]=(0,n.useState)(),[o,s]=(0,n.useState)(""),[a,l]=(0,n.useState)({label:"",value:""}),[c,u]=(0,n.useState)({label:"",value:""}),[d,h]=(0,n.useState)(""),[p,f]=(0,n.useState)(""),[g,m]=(0,n.useState)([]),[y,v]=(0,n.useState)([]),[_,b]=(0,n.useState)([]),[x,S]=(0,n.useState)(""),[w,E]=(0,n.useState)(!1),[P,C]=(0,n.useState)(!1),[A,k]=(0,n.useState)(!1),[j,I]=(0,n.useState)(!1),[G,T]=(0,n.useState)(!1),[M,O]=(0,n.useState)({});(0,n.useEffect)((()=>{D()}),[]);const R=async e=>{var t,n;if(f(""),h(""),null===e||void 0===e||null===(t=e.target)||void 0===t||null===(n=t.files)||void 0===n||!n.length)return;const r=e.target.files[0].name,i=await(async e=>{const t=await Ey("/getLogoToBeUploadedUrl/".concat(e),{method:"GET"});return await t.json()})(r);fetch(i,{method:"PUT",body:e.target.files[0]}).then((()=>{S(r),f("Success")})).catch((()=>{h("Error uploading image")}))};async function D(){const e=await PB();if(e&&e.companies.length){const t=e.companies.map((e=>({label:e,value:e})));m(t);const n=e.windTypes.map((e=>({label:e,value:e})));b(n);const r=e.solarTypes.map((e=>e)).sort(((e,t)=>e>t?-1:1)).map((e=>({label:e,value:e})));v(r)}}const N=(e,t)=>{switch(e){case"windType":l({label:t,value:t});break;case"solarType":u({label:t,value:t})}f(""),h("")},L=e=>{if(e.length>1&&-1===e.indexOf(" ")&&-1===e.indexOf("."))return e.toLowerCase();throw new Error("Invalid company name")},V=()=>(0,Ae.jsxs)("label",{htmlFor:"photo",children:[(0,Ae.jsx)("input",{accept:"image/*",id:"photo",name:"photo",type:"file",style:{display:"none"},multiple:!1,onChange:R}),(0,Ae.jsx)(Sa,{color:"primary",component:"span",children:"Upload new logo"})]}),F=(0,n.useCallback)(((e,t)=>{const n={1:{clientId:"",descEn:"",descDe:"",descFr:"",descEs:""},2:{clientId:"",descEn:"",descDe:"",descFr:"",descEs:""},3:{clientId:"",descEn:"",descDe:"",descFr:"",descEs:""},4:{clientId:"",descEn:"",descDe:"",descFr:"",descEs:""},5:{clientId:"",descEn:"",descDe:"",descFr:"",descEs:""}};e.forEach((e=>{n[e.index]={clientId:e.clientId,descEn:e.descEn,descFr:e.descFr,descDe:e.descDe,descEs:e.descEs}}));const r={...M};r[t+"DefectsCategories"]=n,O(r)}),[M]),z=(0,n.useCallback)((async()=>{if(r&&""!==e.value)try{h(""),f("");const n=L(r);await Yfe(e.value,{id:n}),f("Company name updated"),D(),O({}),k(!1),I(!1),l({label:"",value:""}),u({label:"",value:""}),S(""),T(!1),t({label:"",value:""}),i(void 0)}catch(n){h(n instanceof Error?n.message:"An error occured")}}),[e,r]);return(0,Ae.jsxs)(Ae.Fragment,{children:[(0,Ae.jsx)(we,{children:(0,Ae.jsx)("title",{children:"Company Registration"})}),(0,Ae.jsxs)(nB,{maxWidth:"sm",style:{backgroundColor:"white",borderRadius:"4%",paddingBottom:"1%",margin:0,height:800,overflowY:"auto"},children:[(0,Ae.jsx)(iE,{fullWidth:!0,label:"New company name (no space or point, lower case)",margin:"normal",id:"company",name:"company",onChange:e=>{s(e.target.value),f(""),h("")},type:"text",variant:"outlined"}),(0,Ae.jsx)(wp,{sx:{py:2},children:(0,Ae.jsx)(ev,{label:"REGISTER NEW COMPANY",loading:w,onClick:async()=>{try{const e=L(o),t=g.find((t=>t.value===e));if(t)f(""),h("This company already exists");else{E(!0);const t=A?M.windDefectsCategories:void 0,n=j?M.solarDefectsCategories:void 0;await EB({company:e,windDefectType:"wind1",solarDefectType:"solar1",logoName:"SkyvisorLogo.png",lightVersion:G,windDefectsCategories:t,solarDefectsCategories:n}),E(!1),f("Success"),h(""),setTimeout((()=>f("")),3e3),D()}}catch(e){f(""),h(e instanceof Error?e.message:"An error occured"),setTimeout((()=>h("")),4e3)}},fullWidth:!0})}),(0,Ae.jsxs)(ws,{container:!0,wrap:"nowrap",alignItems:"center",children:[(0,Ae.jsxs)(ws,{item:!0,container:!0,direction:"column",children:[(0,Ae.jsx)(vu,{color:"secondary",children:"Company"}),(0,Ae.jsx)(ET,{styles:Kfe,options:g,value:e,placeholder:"Company",onChange:e=>(async e=>{if(!e)return;t({label:e,value:e});const n=await CB(e);O(n),k(!!n.windDefectsCategories),I(!!n.solarDefectsCategories),l({label:n.windDefectType,value:n.windDefectType}),u({label:n.solarDefectType,value:n.solarDefectType}),S(n.logoName);const r=!!n.lightVersion;T(r),f(""),h("")})(null===e||void 0===e?void 0:e.value)})]}),(0,Ae.jsxs)(ws,{item:!0,container:!0,direction:"column",children:[(0,Ae.jsx)(iE,{fullWidth:!0,disabled:""===e.value,label:"New company name",margin:"normal",id:"company",name:"company",value:null!==r&&void 0!==r?r:"",onChange:e=>i(e.target.value),type:"text",variant:"outlined"}),(0,Ae.jsx)(ev,{size:"small",disabled:""===e.value||!r,label:"Rename company",onClick:z})]})]}),(0,Ae.jsx)(vu,{color:"secondary",children:"Wind defect type"}),(0,Ae.jsx)(ET,{styles:Kfe,options:_,value:a,placeholder:"Wind type",onChange:e=>N("windType",null===e||void 0===e?void 0:e.value)}),(0,Ae.jsx)(vu,{color:"secondary",children:"Solar defect type"}),(0,Ae.jsx)(ET,{styles:Kfe,options:y,value:c,placeholder:"Solar type",onChange:e=>N("solarType",null===e||void 0===e?void 0:e.value)}),(0,Ae.jsxs)("div",{style:{color:Gp,marginTop:"0.5rem"},children:["Wind defects categories:",(0,Ae.jsx)(lj,{onChange:()=>k(!A),checked:A,color:"primary"})]}),A&&(0,Ae.jsx)(Xfe,{type:"wind",companyInfo:M,validate:F}),(0,Ae.jsxs)("div",{style:{color:Gp,marginTop:"0.5rem"},children:["Solar defects categories:",(0,Ae.jsx)(lj,{onChange:()=>I(!j),checked:j,color:"primary"})]}),j&&(0,Ae.jsx)(Xfe,{type:"solar",companyInfo:M,validate:F}),(0,Ae.jsxs)("div",{style:{color:Gp,marginTop:"0.5rem"},children:["Light version:",(0,Ae.jsx)(lj,{onChange:()=>T(!G),checked:G,color:"primary"})]}),(0,Ae.jsxs)(vu,{color:"secondary",children:["Logo name : ",x]}),(0,Ae.jsx)(V,{}),(0,Ae.jsx)(wp,{sx:{py:2},children:(0,Ae.jsx)(ev,{label:"SAVE CHANGES",loading:P,onClick:async()=>{if(x.length>0&&e.value.length>0&&a.value.length>0&&c.value.length){C(!0);const t=A?M.windDefectsCategories:void 0,n=j?M.solarDefectsCategories:void 0;await EB({company:e.value,windDefectType:a.value,solarDefectType:c.value,logoName:x,lightVersion:G,windDefectsCategories:t,solarDefectsCategories:n}),C(!1),f("Success"),h(""),setTimeout((()=>f("")),3e3)}else f(""),h("No company loaded"),setTimeout((()=>h("")),4e3)},fullWidth:!0})}),""!==d&&(0,Ae.jsx)(pM,{severity:"error",children:d}),""!==p&&(0,Ae.jsx)(pM,{severity:"success",children:p})]})]})},$fe={control:()=>({paddingTop:0,margin:15,width:"50%",display:"flex",border:"1px solid grey",height:30})},Jfe=e=>{const[t,r]=(0,n.useState)(!1),[i,o]=(0,n.useState)(""),[s,a]=(0,n.useState)(""),[l,c]=(0,n.useState)({label:"",value:""}),[u,d]=(0,n.useState)([]);(0,n.useEffect)((()=>c({label:"",value:""})),[e.date]);return(0,n.useEffect)((()=>{(async()=>{const e=await AB();if(e&&e.length){const t=[];e.forEach((e=>{const n=e.firstName?e.firstName:"",r=e.lastName?e.lastName:"",i=n+" "+r+" \u2192 "||"";t.push({label:n||r?i+e.email:e.email,value:e.id})})),d(t)}})()}),[]),(0,Ae.jsxs)("div",{children:[(0,Ae.jsx)(we,{children:(0,Ae.jsx)("title",{children:"Delete User"})}),(0,Ae.jsxs)(nB,{maxWidth:"sm",style:{backgroundColor:"white",borderRadius:"4%",paddingBottom:"1%",paddingTop:"1%",margin:0},children:[(0,Ae.jsx)(ET,{styles:$fe,options:u,placeholder:"Select user",value:l,onChange:e=>{null!==e&&void 0!==e&&e.value&&c(e)}}),(0,Ae.jsx)(ev,{color:"delete",label:"Delete",onClick:async()=>{r(!0);const e=await(async e=>await Ey("/deleteUser/".concat(e),{method:"GET"}))(l.value);if(r(!1),200!==e.status){const t=await e.json();o(t&&t.message?t.message:" An error occured"),setTimeout((()=>o("")),4e3)}else{a("The user has been deleted"),setTimeout((()=>a("")),3e3);const e=u.filter((e=>e.value!==l.value));d(e)}c({label:"",value:""})},loading:t,fullWidth:!0}),""!==i&&(0,Ae.jsx)(pM,{severity:"error",children:i}),""!==s&&(0,Ae.jsx)(pM,{severity:"success",children:s})]})]})};let Qfe=function(e){return e.TO_BE_CHECKED_BY_USER="TO_BE_CHECKED_BY_USER",e.CLEAR_TO_FLY="CLEAR_TO_FLY",e.CLIENT_ACTION="CLIENT_ACTION",e.SKYVISOR_ACTION="SKYVISOR_ACTION",e}({}),ege=function(e){return e.TO_BE_CHECKED_BY_USER="To be checked by user",e.CLEAR_TO_FLY="Clear to fly",e.CLIENT_ACTION="Client action",e.SKYVISOR_ACTION="SkyVisor action",e}({});const tge="NO_LEGISLATION",nge=e=>{const[t,r]=(0,n.useState)(tge),[i,o]=(0,n.useState)(""),[s,a]=(0,n.useState)(!1),l=(0,n.useMemo)((()=>e.assetSubAssets.asset),[e.assetSubAssets.asset]),c=(0,n.useMemo)((()=>e.assetSubAssets.subAssets),[JSON.stringify(e.assetSubAssets.subAssets)]),u=(0,n.useMemo)((()=>{const e=c.map((e=>{var t;return null!==(t=e.legislationStatus)&&void 0!==t?t:tge}));return[...new Set(e)]}),[JSON.stringify(c)]),d=(0,n.useMemo)((()=>{const e=c.map((e=>{var t;return null!==(t=e.overwriteLegislation)&&void 0!==t?t:""}));return[...new Set(e)]}),[JSON.stringify(c)]);(0,n.useEffect)((()=>{if(1!==u.length)return r(tge);r(u[0])}),[u]);const h=(0,n.useMemo)((()=>t!==tge&&!![Qfe.CLIENT_ACTION,Qfe.SKYVISOR_ACTION].includes(t)),[t]);(0,n.useEffect)((()=>{if(1!==d.length)return o("");o(d[0])}),[d]);const p=(0,n.useMemo)((()=>t!==tge&&(!h||""!==i)),[t,i]),f=(0,n.useCallback)((async n=>{if(n.stopPropagation(),t!==tge)try{a(!0);const n=c.map((n=>e.onEdit(l.id,n.id,t,i)));await Promise.all(n)}catch(r){}finally{a(!1)}}),[l.id,c,t,i]),g=(0,n.useMemo)((()=>0!==c.length&&(!!u.includes(tge)||(1!==u.length||1!==d.length))),[c,u,d]),m=(0,n.useMemo)((()=>c.some((e=>{let{legislationStatus:t,overwriteLegislation:n}=e;return"Clear to fly"===n&&t!==Qfe.CLEAR_TO_FLY}))),[JSON.stringify(c)]);return(0,n.useEffect)((()=>{e.onNeedUpdateChange(g)}),[g]),(0,n.useEffect)((()=>{e.onNeedMigrationChange(m)}),[m]),(0,Ae.jsxs)(ws,{item:!0,container:!0,wrap:"nowrap",alignItems:"center",paddingRight:"1rem",columnGap:"0.25rem",children:[(0,Ae.jsxs)(ws,{item:!0,xs:2,container:!0,alignItems:"center",columnGap:"0.25rem",children:[l.type===HB.WIND?(0,Ae.jsx)(sp,{}):(0,Ae.jsx)(Qh,{}),(0,Ae.jsx)(vu,{children:l.name})]}),(0,Ae.jsx)(ws,{item:!0,xs:2,children:0===c.length?(0,Ae.jsx)("i",{children:"Asset is empty (no subAssets)"}):(0,Ae.jsxs)(yw,{fullWidth:!0,children:[(0,Ae.jsx)(dw,{id:"asset-legislation",children:"Legislation"}),(0,Ae.jsxs)(Jw,{required:!0,fullWidth:!0,disabled:s,size:"small",labelId:"asset-legislation",label:"Legislation",placeholder:"Legislation",value:t,onClick:e=>e.stopPropagation(),onChange:e=>r(e.target.value),children:[(0,Ae.jsx)(dh,{value:tge,children:(0,Ae.jsx)("i",{children:"No legislation set"})}),Object.values(Qfe).map((e=>(0,Ae.jsx)(dh,{value:e,children:ege[e]},e)))]})]})}),(0,Ae.jsx)(ws,{item:!0,xs:6,children:h&&(0,Ae.jsx)(iE,{fullWidth:!0,disabled:s,placeholder:"Custom text",value:i,onClick:e=>e.stopPropagation(),onChange:e=>o(e.target.value),size:"small",variant:"outlined"})}),(0,Ae.jsx)(ws,{item:!0,xs:2,children:(0,Ae.jsx)(ev,{size:"small",color:m||g?"create":"success",onClick:f,loading:s,disabled:s||!p,label:"Save legislation for all subAssets".concat(m?" (was Clear to Fly)":"")})})]})},rge=e=>{const t=(0,n.useMemo)((()=>e.companyAssets.company),[e.companyAssets.company]),r=(0,n.useMemo)((()=>e.companyAssets.assets),[e.companyAssets.assets]),[i,o]=(0,n.useState)([]),[s,a]=(0,n.useState)([]),l=(0,n.useMemo)((()=>i.length>0),[i]),c=(0,n.useMemo)((()=>s.length>0),[s]),u=async(t,n,r,i)=>e.onEdit(t,n,r,i);return(0,Ae.jsxs)(Ph,{children:[(0,Ae.jsx)(Th,{expandIcon:(0,Ae.jsx)(cp.c,{}),children:(0,Ae.jsxs)(vu,{children:[t," ",c?"*":"",l?"*":""]})}),(0,Ae.jsx)(Dh,{children:(0,Ae.jsx)(ws,{container:!0,direction:"column",wrap:"nowrap",rowGap:"0.5rem",children:r.map((e=>(0,Ae.jsx)(nge,{assetSubAssets:e,onEdit:u,onNeedUpdateChange:t=>((e,t)=>{o(t?t=>[...t,e]:t=>t.filter((t=>t!==e)))})(e.asset.id,t),onNeedMigrationChange:t=>((e,t)=>{a(t?t=>[...t,e]:t=>t.filter((t=>t!==e)))})(e.asset.id,t)},e.asset.id)))})})]})},ige=e=>{const{buttons:t,fullWidth:n=!1,size:r="medium",disabled:i=!1,buttonStyle:o={},selectedButtonStyle:s={},style:a={},disabledButtonsIndex:l=[],lowerCase:c}=e,u=e.multiple?e.activeIndex:[e.activeIndex];return(0,Ae.jsx)(cW,{style:a,size:r,color:"primary",fullWidth:n,disabled:i,children:t.map(((t,n)=>{const r=u.includes(n),i=l.includes(n);return(0,Ae.jsx)(Sa,{variant:r?"contained":"outlined",onClick:t=>e.onClick(n,t),style:{...o,...r?s:{}},sx:{textTransform:c?"capitalize":""},disabled:i,children:t},n)}))})},oge=e=>{const t=(0,n.useMemo)((()=>[{status:"",label:"No legislation"},...Object.values(Qfe).map((e=>({status:e,label:ege[e]})))]),[]),r=(0,n.useMemo)((()=>t.map((e=>{let{label:t}=e;return t}))),[t]),i=(0,n.useMemo)((()=>null===e.filter?-1:t.findIndex((t=>{let{status:n}=t;return n===e.filter}))),[e.filter,t]);return(0,Ae.jsx)(ige,{buttons:r,activeIndex:i,onClick:n=>{const r=n===i?null:t[n].status;e.onFilterChange(r)}})},sge=e=>{const t=(0,n.useMemo)((()=>e.filters.map((e=>"".concat(e[0]," - ").concat(e[1])))),[e.filters]),r=(0,n.useMemo)((()=>e.filters.findIndex((t=>t[0]===e.currentFilter[0]&&t[1]===e.currentFilter[1]))),[e.currentFilter,e.filters]);return(0,Ae.jsx)(Ae.Fragment,{children:(0,Ae.jsx)(ige,{activeIndex:r,buttons:t,onClick:t=>{const n=e.filters[t];e.onFilterChange(n)}})})},age=["A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z"],lge=Zo()((()=>({root:{padding:"0.5rem",paddingLeft:"0",columnGap:"0.5rem",alignItems:"start"},bloc:{flex:1,padding:"1rem",backgroundColor:"white",borderRadius:"0.5rem"}}))),cge={value:"All",label:"All companies"},uge=[["A","F"],["G","L"],["M","R"],["S","Z"]],dge=()=>{const{classes:e}=lge(),[t,r]=(0,n.useState)(!1),[i,o]=(0,n.useState)([]),[s,a]=(0,n.useState)(cge),[l,c]=(0,n.useState)(uge[0]),[u,d]=(0,n.useState)(null),h=(0,n.useMemo)((()=>(0,Qo.groupBy)(i,"asset.company")),[i]),p=(0,n.useMemo)((()=>{const e=age.filter((e=>e>=l[0]&&e<=l[1])).map((e=>e.toLowerCase())),t=[0,1,2,3,4,5,6,7,8,9].map((e=>"".concat(e)));return e.includes("a")?[...e,...t]:e}),[l]),f=(0,n.useMemo)((()=>[cge,...Object.keys(h).sort().map((e=>({label:e,value:e})))]),[h]),g=(0,n.useMemo)((()=>{const e=Object.keys(h).sort().map((e=>({company:e,assets:h[e]}))),t=e.filter((e=>{let{company:t}=e;return p.includes(t[0].toLowerCase())}));return s.value===cge.value?null===u?t:t.filter((e=>{let{assets:t}=e;return""===u?t.some((e=>{let{subAssets:t}=e;return t.some((e=>{let{legislationStatus:t}=e;return!t||!Object.keys(Qfe).includes(t)}))})):t.some((e=>{let{subAssets:t}=e;return t.some((e=>{let{legislationStatus:t}=e;return t===u}))}))})):e.filter((e=>{let{company:t}=e;return t===s.value}))}),[h,s,p,u]);(0,n.useEffect)((()=>{(async()=>{r(!0);const e=await RT();e.sort(((e,t)=>e.asset.name>t.asset.name?1:-1));const t=e.map((e=>{const t=e.subAssets;return t.sort(((e,t)=>e.name>t.name?1:-1)),{...e,subAssets:t}}));o(t),r(!1)})()}),[]),(0,n.useEffect)((()=>{if(s.value===cge.value)return;d(null);const e=s.value[0].toLowerCase(),t=uge.find((t=>{let[n,r]=t;return e>=n.toLowerCase()&&e<=r.toLowerCase()}));c(null!==t&&void 0!==t?t:uge[0])}),[s]);const m=async(e,t,n,r)=>{o((i=>{const o=i.findIndex((t=>{let{asset:n}=t;return n.id===e}));if(-1===o)return i;const s=i[o].subAssets.findIndex((e=>{let{id:n}=e;return n===t}));if(-1===s)return i;const a=[...i];return a[o].subAssets[s].legislationStatus=n,a[o].subAssets[s].overwriteLegislation=r,a})),await Yhe(e,t,{legislationStatus:n,overwriteLegislation:r})};return t?(0,Ae.jsx)($y,{}):(0,Ae.jsxs)(ws,{container:!0,direction:"column",className:e.bloc,rowGap:"0.5rem",children:[(0,Ae.jsxs)(ws,{item:!0,container:!0,children:[(0,Ae.jsx)(ws,{item:!0,xs:6,children:(0,Ae.jsx)(ET,{options:f,value:s,placeholder:"Asset",onChange:e=>{a(null!==e&&void 0!==e?e:cge)},styles:{menu:e=>({...e,zIndex:100})}})}),(0,Ae.jsxs)(ws,{item:!0,xs:6,container:!0,justifyContent:"center",alignItems:"center",rowGap:"0.5rem",direction:"column",wrap:"nowrap",children:[(0,Ae.jsx)(sge,{filters:uge,currentFilter:l,onFilterChange:e=>{c(e),a(cge)}}),(0,Ae.jsx)(oge,{filter:u,onFilterChange:e=>{d(e),a(cge)}})]})]}),(0,Ae.jsx)(ws,{item:!0,children:g.map((e=>(0,Ae.jsx)(rge,{companyAssets:e,onEdit:m},e.company)))})]})},hge={control:()=>({paddingTop:0,width:180,display:"flex",border:"1px solid grey",height:40,zIndex:2})},pge=Zo()((()=>({alignCenter:{alignItems:"center"},nbItem:{paddingLeft:20,color:"orange"},title:{fontSize:"1rem",padding:10,color:Tp,fontWeight:"bold"},asset:{fontSize:16,height:40,padding:8},unit:{fontSize:16,height:40},company:{display:"inline-block"},grid:{marginBottom:10},aiModeTooltip:{border:"1px solid ".concat(Rp),borderRadius:"0.5rem",padding:"0.5rem",marginBottom:"0.25rem","&:hover":{cursor:"help"}}}))),fge=()=>{var e;const{classes:t}=pge(),[r,i]=(0,n.useState)(new Map),[o,s]=(0,n.useState)({}),[a,l]=(0,n.useState)(!1),[c,u]=(0,n.useState)([]),[d,h]=(0,n.useState)([]),[p,f]=(0,n.useState)(null),[g,m]=(0,n.useState)(!1),[y,v]=(0,n.useState)([]),[_,b]=(0,n.useState)(0),[x,S]=(0,n.useState)(null),[w,E]=(0,n.useState)(!1),[P,C]=(0,n.useState)([]),[A,k]=(0,n.useState)([]),[j,I]=(0,n.useState)(),G=(0,n.useCallback)((()=>{I(void 0)}),[]);(0,n.useEffect)((()=>{(async()=>{const e=await(async()=>{const e=await Ey("/companies/all");if(!e.ok){const t=await e.text();throw new Error(null!==t&&void 0!==t?t:"An error occured")}return e.json()})(),t=new Map;e.forEach((e=>{t.set(e.id,e)})),i(t)})()}),[]);const T=async()=>{k([]);const e=await GT();if(u(e),e){e.sort(((e,t)=>e.company.toLowerCase()>t.company.toLowerCase()?1:e.company.toLowerCase()<t.company.toLowerCase()?-1:e.name>t.name?1:-1));const t=(0,Qo.groupBy)(e,"company"),n=Object.keys(t).map((e=>t[e].reduce(((e,t)=>{if("solar"===(null===t||void 0===t?void 0:t.type)){var n;const r=null!==(n=null===t||void 0===t?void 0:t.totalPower)&&void 0!==n?n:0;e.solar.count+="active"===t.status?1:0,e.solar.totalCount+=1,e.solar.total+=r,e.solar.active+="active"===t.status?r:0}else if("wind"===(null===t||void 0===t?void 0:t.type)){var r;const n=null!==(r=null===t||void 0===t?void 0:t.subAssetsCount)&&void 0!==r?r:0;e.wind.total+=n,e.wind.active+="active"===t.status?n:0}return e}),{company:e,solar:{count:0,totalCount:0,active:0,total:0},wind:{active:0,total:0}})));s(t),k(n)}};(0,n.useEffect)((()=>{T(),async function(){var e;const t=await PB();if(t&&null!==(e=t.companies)&&void 0!==e&&e.length){const e=t.companies.map((e=>({label:e,value:e})));h(e)}}()}),[]),(0,n.useEffect)((()=>{M()}),[y,o]);const M=()=>{const e=[];d.filter((e=>"skyvisor"!==e.value)).forEach((t=>{let n=0,r=0;const i=o[t.value];i&&y&&y.length&&(i.forEach((e=>{const t=y&&y.length&&y.filter((t=>t.assetId===e.id)),i=!e.status||"inactive"!==e.status;"solar"===e.type&&i&&(n+=e.totalPower),t&&t.length&&i&&t.forEach((e=>{e.power&&"wind"===e.type&&(r+=e.power)}))})),n/=1e3,r/=1e3,e.push({name:t.value,powerWind:r,powerSolar:n}))})),C(e)},O=e=>{var t,n,r,i,s,a,l,c,u,d;if(!o[e])return;let h=0,p=0;const f=P.find((t=>t.name===e));f&&(h=f.powerSolar,p=f.powerWind);const g=A.find((t=>{let{company:n}=t;return n===e})),m=(null!==(t=null===g||void 0===g||null===(n=g.solar)||void 0===n?void 0:n.totalCount)&&void 0!==t?t:0)>0?"".concat(null===g||void 0===g||null===(r=g.solar)||void 0===r?void 0:r.count," / ").concat(null===g||void 0===g||null===(i=g.solar)||void 0===i?void 0:i.totalCount," PV farm, ").concat(null===g||void 0===g||null===(s=g.solar)||void 0===s?void 0:s.active," KW active / ").concat(null===g||void 0===g||null===(a=g.solar)||void 0===a?void 0:a.total," KW"):"",y=(null!==(l=null===g||void 0===g||null===(c=g.wind)||void 0===c?void 0:c.total)&&void 0!==l?l:0)>0?"".concat(null===g||void 0===g||null===(u=g.wind)||void 0===u?void 0:u.active," active / ").concat(null===g||void 0===g||null===(d=g.wind)||void 0===d?void 0:d.total," WTG"):"";return(0,Ae.jsxs)("span",{children:[e,(0,Ae.jsxs)("span",{style:{color:"navy"},children:[" ",m,m&&y&&" | ",y]}),!!h&&(0,Ae.jsx)("span",{style:{color:"orange"},children:" Solar: ".concat(h,"  MW")}),!!p&&(0,Ae.jsx)("span",{style:{color:"orange"},children:" Wind: ".concat(p,"  MW")})]})},R=function(e,t){let n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(Yfe(e,{windAIMode:t}),i((n=>{const r=new Map(n),i=r.get(e);return i?(r.set(e,{...i,windAIMode:t}),r):r})),!n)return;const r=o[e].filter((e=>{let{type:t}=e;return t===HB.WIND})).map((e=>{let{id:t}=e;return t}));r.forEach((e=>D(e,t)))},D=(e,t)=>{IV(e,{windAIMode:t});const n={...o};Object.keys(n).forEach((r=>{const i=n[r].findIndex((t=>t.id===e));i>-1&&(n[r][i].windAIMode=t)})),s(n)},N=e=>{const t=e.map((e=>{var t;return{id:e.id,type:e.type,mainText:e.name,checked:!e.status||"inactive"!==e.status,secondText:e.status&&"inactive"===e.status?"inactive":"active",additionnalComponent:e.type===HB.WIND?(0,Ae.jsx)("span",{style:{whiteSpace:"nowrap",display:"flex",alignItems:"center",marginLeft:"1rem"},children:(0,Ae.jsx)(ige,{size:"small",activeIndex:Object.values(phe).indexOf(null!==(t=e.windAIMode)&&void 0!==t?t:phe.NO_WIND_AI),onClick:t=>{D(e.id,Object.values(phe)[t])},buttons:Object.values(fhe)})}):(0,Ae.jsx)(Ae.Fragment,{})}}));return t},L=async(e,t)=>{var n;const r=o[t].findIndex((t=>t.id===e)),i="inactive"===(null===(n=o[t][r])||void 0===n?void 0:n.status)?"active":"inactive",a=await(async(e,t)=>{const n=await Ey("/assets/changeStatus/".concat(e,"/").concat(t),{method:"GET"});return!(!n||200!==n.status)})(o[t][r].id,i);if(a){const e={...o};e[t][r].status=i,s(e),T()}},V=()=>{const e=A.reduce(((e,t)=>(e.solar.count+=t.solar.count,e.solar.totalCount+=t.solar.totalCount,e.solar.active+=t.solar.active,e.solar.total+=t.solar.total,e.wind.active+=t.wind.active,e.wind.total+=t.wind.total,e)),{company:"all",solar:{count:0,totalCount:0,active:0,total:0},wind:{active:0,total:0}}),t=(0,n.useMemo)((()=>{var t,n;return Ly(null!==(t=null===e||void 0===e||null===(n=e.solar)||void 0===n?void 0:n.count)&&void 0!==t?t:0,0)}),[null===e||void 0===e?void 0:e.solar]),r=(0,n.useMemo)((()=>{var t,n;return Ly(null!==(t=null===e||void 0===e||null===(n=e.solar)||void 0===n?void 0:n.totalCount)&&void 0!==t?t:0,0)}),[null===e||void 0===e?void 0:e.solar]),i=(0,n.useMemo)((()=>{var t,n;return Ly(null!==(t=null===e||void 0===e||null===(n=e.solar)||void 0===n?void 0:n.active)&&void 0!==t?t:0,0)}),[null===e||void 0===e?void 0:e.solar]),o=(0,n.useMemo)((()=>{var t,n;return Ly(null!==(t=null===e||void 0===e||null===(n=e.solar)||void 0===n?void 0:n.total)&&void 0!==t?t:0,0)}),[null===e||void 0===e?void 0:e.solar]),s=(0,n.useMemo)((()=>{var t,n;return Ly(null!==(t=null===e||void 0===e||null===(n=e.wind)||void 0===n?void 0:n.active)&&void 0!==t?t:0,0)}),[null===e||void 0===e?void 0:e.wind]),a=(0,n.useMemo)((()=>{var t,n;return Ly(null!==(t=null===e||void 0===e||null===(n=e.wind)||void 0===n?void 0:n.total)&&void 0!==t?t:0,0)}),[null===e||void 0===e?void 0:e.wind]),l=(0,n.useMemo)((()=>t+s),[t,s]),c=(0,n.useMemo)((()=>r+a),[r,a]);return(0,Ae.jsxs)("div",{children:[(0,Ae.jsx)("b",{children:"Total active:"}),(0,Ae.jsxs)("p",{children:[(0,Ae.jsx)("b",{children:l})," active assets / ",(0,Ae.jsx)("b",{children:c})," assets"]}),(0,Ae.jsx)("p",{children:"".concat(t," active / ").concat(r," PV farm, ").concat(i," KW active / ").concat(o," KW")}),(0,Ae.jsx)("p",{children:"".concat(s," active WTG / ").concat(a)})]})};return(0,Ae.jsxs)(Ae.Fragment,{children:[(0,Ae.jsx)(we,{children:(0,Ae.jsx)("title",{children:"Companies"})}),(0,Ae.jsxs)(NX,{value:_,onChange:(e,t)=>{b(t)},TabIndicatorProps:{style:{background:"red"}},children:[(0,Ae.jsx)(UX,{label:"Activate / Deactivate Assets"}),(0,Ae.jsx)(UX,{label:"Legislation"}),(0,Ae.jsx)(UX,{label:"Change company name"})]}),0===_&&(0,Ae.jsxs)(nB,{style:{backgroundColor:"white",borderRadius:"4%",margin:0,paddingBottom:"1rem"},children:[(0,Ae.jsx)(Aj,{onChange:async()=>{if(g)m(!1),v([]);else{m(!0),l(!0);const e=await(async()=>{const e=await Ey("/assets/completeSubassets",{method:"GET"});if(e)return await e.json();return[]})();v(e),l(!1)}},checked:g,color:"primary"}),(0,Ae.jsx)("span",{children:"Show Power Stats (MW)"}),g&&(0,Ae.jsx)("span",{style:{color:"orange"},children:(()=>{let e=0,t=0;return P.forEach((n=>{e+=n.powerWind,t+=n.powerSolar})),"  Wind: ".concat(Ly(e,2)," MW  Solar: ").concat(Ly(t,2)," MW")})()}),(0,Ae.jsx)(V,{}),(0,Ae.jsxs)(ws,{container:!0,justifyContent:"space-between",alignItems:"center",children:[(0,Ae.jsx)("div",{className:t.title,children:"Activate / Deactivate Assets"}),(0,Ae.jsx)(cu,{title:(0,Ae.jsxs)("p",{children:["Changing Wind AI mode for an asset will impact all its inspections where:",(0,Ae.jsx)("br",{}),(0,Ae.jsxs)("ul",{children:[(0,Ae.jsx)("li",{children:"- status is 'planned'"}),(0,Ae.jsx)("li",{children:"- status is 'inspected'"}),(0,Ae.jsx)("li",{children:"- status is 'uploaded' with AI not started (no 'aiStatus' or 'aiStatus' set to 'pending') and that have been inspected less than 3 months ago."})]})]}),placement:"top",children:(0,Ae.jsx)(vu,{className:t.aiModeTooltip,children:"What inspections will be impacted?"})})]}),!a&&(0,Ae.jsx)("div",{style:{height:360,overflowY:"auto"},children:Object.keys(o).map((e=>((e,n)=>{var i;const o=r.get(e);return(0,Ae.jsxs)(Ph,{children:[(0,Ae.jsx)(Th,{classes:{content:t.alignCenter},expandIcon:(0,Ae.jsx)(cp.c,{}),children:(0,Ae.jsxs)(ws,{container:!0,justifyContent:"space-between",paddingRight:"1rem",children:[(0,Ae.jsx)(vu,{children:O(e)}),(0,Ae.jsx)(ige,{size:"small",activeIndex:Object.values(phe).indexOf(null!==(i=null===o||void 0===o?void 0:o.windAIMode)&&void 0!==i?i:phe.NO_WIND_AI),onClick:(t,n)=>{n.stopPropagation(),I({anchorEl:n.currentTarget,companyId:e,windAIMode:Object.values(phe)[t]})},buttons:Object.values(fhe)})]})}),(0,Ae.jsx)(Dh,{children:(0,Ae.jsx)(lpe,{title:e,infos:N(n),checkedFct:L})})]},e)})(e,o[e])))}),a&&(0,Ae.jsx)($y,{size:40}),j&&(0,Ae.jsx)(Ud,{open:void 0!==j,anchorEl:j.anchorEl,anchorOrigin:{vertical:"top",horizontal:"center"},transformOrigin:{vertical:"bottom",horizontal:"center"},onClose:G,children:(0,Ae.jsxs)(ws,{container:!0,direction:"column",padding:"1rem",gap:"0.5rem",children:[(0,Ae.jsx)("h3",{children:"Apply to all assets?"}),(0,Ae.jsxs)("p",{children:["Do you want to apply the setting"," ",(0,Ae.jsx)("b",{children:fhe[null!==(e=j.windAIMode)&&void 0!==e?e:""]})," ","to all assets of ",(0,Ae.jsx)("b",{children:j.companyId}),", or only to company?"]}),(0,Ae.jsxs)(ws,{item:!0,container:!0,justifyContent:"center",gap:"0.5rem",children:[(0,Ae.jsx)(ev,{color:"cancel",onClick:G,children:"Cancel"}),(0,Ae.jsx)(ev,{color:"success",onClick:()=>{R(j.companyId,j.windAIMode,!1),G()},children:"Only update the company"}),(0,Ae.jsx)(ev,{color:"primary",onClick:()=>{R(j.companyId,j.windAIMode,!0),G()},children:"Update company and all assets"})]})]})})]}),1===_&&(0,Ae.jsx)(dge,{}),2===_&&(0,Ae.jsxs)(nB,{maxWidth:"sm",style:{backgroundColor:"white",borderRadius:"4%",justifyContent:"space-between",margin:0,paddingBottom:"1rem",paddingTop:"1rem",display:"flex"},children:[(0,Ae.jsx)(ET,{styles:hge,options:c.map((e=>({label:e.name,value:e.id}))),value:x,className:t.company,placeholder:"Asset",onChange:e=>{if(null!==e&&void 0!==e&&e.value){S({label:e.label,value:e.value});const t=c.find((t=>t.id===e.value));t&&f({label:t.company,value:t.company})}}}),(0,Ae.jsx)(ET,{styles:hge,options:d,value:p,className:t.company,placeholder:"Company",onChange:e=>(null===e||void 0===e?void 0:e.value)&&f({label:e.value,value:e.value})}),(0,Ae.jsx)(ev,{label:"Save",onClick:async()=>{var e,t;const n=null!==(e=null===x||void 0===x?void 0:x.value)&&void 0!==e?e:"",r=null!==(t=null===p||void 0===p?void 0:p.value)&&void 0!==t?t:"";n&&r&&(E(!0),await(async(e,t)=>{const n=new Headers;n.append("Content-Type","application/json");const r={method:"POST",body:JSON.stringify({assetId:e,company:t}),headers:n};await Ey("/assets/changeAssetCompany",r)})(n,r),E(!1))},loading:w})]})]})},gge={control:e=>({paddingTop:0,width:300,display:"flex",border:"1px solid grey",height:40,zIndex:2})},mge=()=>{const[e,t]=(0,n.useState)([]),[r,i]=(0,n.useState)([]),[o,s]=(0,n.useState)(null),[a,l]=(0,n.useState)({bladeWidthBase2LE:1.5,bladeLengthCurvature:15.5,bladeWidthBase2TE:2,bladeLengthBase1:5,hubNoseOffset:2,bladeVerticalWidthCurvature:0,bladeLength:31,bladeWidthBase1TE:1,height:60,bladeRightWidthCurvature:0,bladeLeftWidthCurvature:0,bladeLengthBase2:10,hubRadius:2,diameter:66,verticalBladePitch:10,bladeWidthBase1LE:1}),[c,u]=(0,n.useState)(""),[d,h]=(0,n.useState)(0);async function p(){const e=await MA();t(e);const n=e?Object.keys(e).map((e=>({value:e,label:e}))).sort(((e,t)=>e.label>t.label?1:-1)):[];n.length&&i(n)}(0,n.useEffect)((()=>{p()}),[]);return(0,Ae.jsxs)(Ae.Fragment,{children:[(0,Ae.jsx)(we,{children:(0,Ae.jsx)("title",{children:"Turbines"})}),(0,Ae.jsxs)(nB,{maxWidth:"sm",style:{backgroundColor:"white",borderRadius:"4%",paddingBottom:"1%",margin:0},children:[(0,Ae.jsxs)(NX,{value:d,onChange:(e,t)=>{h(t)},TabIndicatorProps:{style:{background:"red"}},children:[(0,Ae.jsx)(UX,{label:"New Turbine"}),(0,Ae.jsx)(UX,{label:"Update Turbine"})]}),(0,Ae.jsx)("div",{style:{height:20}}),0===d&&(0,Ae.jsx)(iE,{label:"Name",fullWidth:!0,autoFocus:!0,value:c,variant:"outlined",onChange:e=>{u(e.target.value)}}),1===d&&(0,Ae.jsx)(ET,{styles:gge,options:r,value:o,placeholder:"Models",onChange:t=>{t.value&&(s({label:t.value,value:t.value}),l(e[t.value]))}}),(0,Ae.jsx)("div",{style:{height:20}}),(0,Ae.jsx)(ws,{container:!0,children:!(1===d&&!o)&&Object.keys(a).sort().map(((e,t)=>(0,Ae.jsx)(ws,{item:!0,md:6,children:(0,Ae.jsxs)("div",{style:{display:"flex"},children:[(0,Ae.jsx)("div",{style:{paddingTop:5,paddingRight:15},children:e}),(0,Ae.jsx)(iE,{fullWidth:!0,autoFocus:!0,inputProps:{type:"number",step:"0.5",lang:"en-US"},value:null!==a[e]?a[e].toString().replace(",","."):"",onChange:t=>{((e,t)=>{const n={...a};n[t]=e?Number(e):null,l(n)})(t.target.value,e)},variant:"standard",InputProps:{disableUnderline:!0}})]})},t)))}),(0,Ae.jsx)("div",{style:{height:20}}),!(0===d&&(!c||e[c]))&&!(1===d&&!o)&&(0,Ae.jsx)(ev,{label:0===d?"Create":"Update",onClick:async()=>{const e=0===d?c:o?o.value:"";e&&(await(async(e,t)=>{const n=new Headers;n.append("Content-Type","application/json");const r={method:"POST",headers:n,body:JSON.stringify({name:e,data:t})};return 200===(await Ey("/models/updateWindModels",r)).status})(e,a),await p())}})]})]})},yge=e=>{const[t,r]=(0,n.useState)([]),[i,o]=(0,n.useState)(!0),s=async()=>{let e=(await(async()=>{const e=await Ey("/stats/getAllAnnots",{method:"GET"});return e?await e.json():[]})()).map(((e,t)=>[t,e.assetName,e.inspectionId,e.key,e.x,e.y,e.width,e.height,e.type,e.severity,e.hubDistance,e.blade,e.side,e.imageWidth,e.imageHeight,e.angle]));e.unshift(["Id","Asset name","InspectionId","PhotoId","X","Y","Width","Height","Type","Severity","hubDistance","blade","side","imageWidth","imageHeight","angle"]),r(e),o(!1)};return(0,n.useEffect)((()=>{s()}),[]),(0,Ae.jsxs)("div",{children:[(0,Ae.jsx)(tp,{style:{color:"red",float:"right",cursor:"pointer",margin:10},onClick:()=>e.exit()}),!i&&(0,Ae.jsx)(eH.CSVLink,{data:t,enclosingCharacter:"",separator:";",style:{textDecorationLine:"none",color:"rgba(0, 0, 0, 0.87)"},filename:"myAnnotations",target:"_blank",children:(0,Ae.jsx)(ev,{frontIcon:(0,Ae.jsx)(gM,{size:20}),label:"CSV",color:"success",style:{fontSize:"0.9rem"}})}),i&&(0,Ae.jsxs)(Ae.Fragment,{children:["Loading annotations ",(0,Ae.jsx)($y,{topMargin:"40px",size:80})]})]})},vge=e=>{const[t,r]=(0,n.useState)(""),[i,o]=(0,n.useState)(""),[s,a]=(0,n.useState)(!1),l=b(Nm),c=b(Lm);return(0,n.useEffect)((()=>{if(l&&c.length&&s){var e;const t=(e=>{const t=e.map((e=>e)).sort((function(e,t){if(e.blade&&t.blade){if(e.blade<t.blade)return-1;if(e.blade>t.blade)return 1}if(void 0!==e.side&&void 0!==t.side){if(e.side<t.side)return-1;if(e.side>t.side)return 1}if(null!==e.edge&&null!==t.edge){if(e.edge<t.edge)return-1;if(e.edge>t.edge)return 1}if(void 0!==e.hubDistance&&void 0!==t.hubDistance){if(e.hubDistance<t.hubDistance)return-1;if(e.hubDistance>t.hubDistance)return 1}return 1}));return t})(c);null!==l&&void 0!==l&&null!==(e=l.inspectionDates)&&void 0!==e&&e.planned&&Iy(l.inspectionDates.planned),t.map((e=>{return{InspectionId:i,TurbineName:null===l||void 0===l?void 0:l.subAsset.name,BladePosition:e.blade,BladeSide:(t=e,t.side?"SS"===t.side?"SuctionSide":"PressureSide":t.edge?"LE"===t.edge?"LeadingEdge":"TrailingEdge":""),ImageFilePath:e.photoId.toUpperCase(),GpsLatitude:e.exif.latitude,GpsLongitude:e.exif.longitude,GpsAltitude:e.exif.relativeAltitude,Pitch:e.exif.flightPitchDegree,Roll:e.exif.flightRollDegree,Yaw:bU(e.exif.gimbalYawDegree,e.exif.flightYawDegree),SequenceDirection:"RootToTip",MeasuredDistanceToBlade:e.obstacleDistance,DistanceToRoot:e.hubDistance};var t}));a(!1)}}),[c]),(0,Ae.jsxs)("div",{style:{padding:20},children:[(0,Ae.jsx)(pM,{severity:"warning",children:"This component has been deactivated because it uses deprecated package."}),(0,Ae.jsx)(tp,{style:{color:"red",float:"right",cursor:"pointer",margin:10},onClick:()=>e.exit()}),(0,Ae.jsx)(iE,{style:{padding:10},label:"Skyvisor inspection id",placeholder:"Skyvisor inspection id",defaultValue:t,onChange:e=>r(e.target.value)}),(0,Ae.jsx)(iE,{style:{padding:10},label:"Siemens inspection id",placeholder:"Siemens inspection id",defaultValue:i,onChange:e=>o(e.target.value)}),(0,Ae.jsx)(ev,{frontIcon:(0,Ae.jsx)(gM,{size:20}),label:"Generate XLSX",color:"success",style:{fontSize:"0.9rem"},onClick:async()=>{a(!0),await PA(t),await CA(t)}}),s&&(0,Ae.jsxs)(Ae.Fragment,{children:["Loading ",(0,Ae.jsx)($y,{topMargin:"40px",size:80})]})]})},_ge=e=>{const[t,r]=(0,n.useState)(null),[i,o]=(0,n.useState)(!1),[s,a]=(0,n.useState)([]),[l,c]=(0,n.useState)([]),[u,d]=(0,n.useState)([]);(0,n.useEffect)((()=>{!async function(){const e=await PB();if(e&&e.companies.length){const t=e.companies.map((e=>({label:e,value:e})));a(t)}}()}),[]);const h=async e=>{if(r(e),e)try{o(!0);const t=await(async e=>(await Ey("/inspections/getPerCompany?company=".concat(e),{method:"GET"})).json())(e.value);c(t),p(t)}catch(t){console.error(t)}finally{o(!1)}},p=e=>{const t=e.map((e=>{var t,n,r,i,o,s,a,l,c,u,d,h;return[null!==(t=e.inspectionDates)&&void 0!==t&&t.inspected?Iy(e.inspectionDates.inspected):"",null!==(n=null===(r=e.asset)||void 0===r?void 0:r.name)&&void 0!==n?n:"",null!==(i=null===(o=e.subAsset)||void 0===o?void 0:o.name)&&void 0!==i?i:"",null!==(s=e.type)&&void 0!==s?s:"",null!==(a=e.id)&&void 0!==a?a:"",e.isExternal?"External informations":"",null!==(l=e.status)&&void 0!==l?l:"",null!==(c=e.defectAuthors.join(", "))&&void 0!==c?c:"",e.owners.join(", "),null!==(u=e.createdBy)&&void 0!==u?u:"",null!==(d=null===(h=e.report)||void 0===h?void 0:h.createdBy)&&void 0!==d?d:""]}));d([["Inspection date","Asset name","SubAsset name","Inspection Type","Inspection Id","External","Status","Defects created by","Email of the owners","Inspection created by","Report created by"],...t])},f=null!==t&&!i&&l.length>0,g=null!==t&&!i&&0===l.length;return(0,Ae.jsxs)("div",{style:{padding:20},children:[(0,Ae.jsx)(tp,{style:{color:"red",float:"right",cursor:"pointer",margin:10},onClick:()=>e.exit()}),(0,Ae.jsxs)("div",{style:{marginBottom:"2rem"},children:[(0,Ae.jsx)(vu,{color:"secondary",children:"Company"}),(0,Ae.jsx)(ET,{styles:{menu:e=>({...e,zIndex:2})},placeholder:"Company",options:s,value:t,isDisabled:i,onChange:e=>{h(e)}})]}),f?(0,Ae.jsx)(eH.CSVLink,{data:u,enclosingCharacter:"",separator:";",style:{textDecorationLine:"none"},filename:t?"".concat(t.value,"_").concat((new Date).toLocaleDateString(),".csv"):"error.csv",target:"_blank",children:(0,Ae.jsx)(ev,{label:"Download CSV of ".concat(l.length," inspections"),size:"large",frontIcon:(0,Ae.jsx)(gM,{size:20}),color:"success",style:{width:"100%"}})}):null,g?(0,Ae.jsxs)("p",{children:["No inspections yet for ",t.label]}):null,i&&(0,Ae.jsx)($y,{topMargin:"20px",size:40})]})},bge=()=>{const[e,t]=(0,n.useState)(""),[r,i]=(0,n.useState)(!1),o=e=>{i(!0),t(e)};return(0,Ae.jsxs)(Qu,{style:{width:500},children:[!r&&(0,Ae.jsxs)(Yu,{children:[(0,Ae.jsx)(dh,{onClick:()=>o("annots"),children:"Retrieve all Annotations in CSV"}),(0,Ae.jsx)(dh,{onClick:()=>o("exportInspect"),children:"Export inspection in Siemens Format"}),(0,Ae.jsx)(dh,{onClick:()=>o("exportInspectsPerCompany"),children:"Export inspections for a company"})]}),"annots"===e&&r&&(0,Ae.jsx)(yge,{exit:()=>i(!1)}),"exportInspect"===e&&r&&(0,Ae.jsx)(vge,{exit:()=>i(!1)}),"exportInspectsPerCompany"===e&&r&&(0,Ae.jsx)(_ge,{exit:()=>i(!1)})]})},xge=async()=>{const e=await Ey("/models/getSolarPanelModels",{method:"GET"}),t=await e.json(),n=[];if(t){if(t.solarPanelsModels)for(const e in t.solarPanelsModels)n.push({reference:e,...t.solarPanelsModels[e]});return{solarPanels:n,solarManufacturers:t.solarManufacturers}}return{solarPanels:[],solarManufacturers:[]}},Sge=[{label:"Power in W",field:"power",step:.1},{label:"Length in mm (biggest side)",field:"length",step:1},{label:"Width in mm",field:"width",step:1}],wge={supplier:"",reference:"",technology:"",power:0,length:0,width:0},Ege=["Monocrystalline","Polycrystalline","Thin-film","PERC","Other"],Pge=()=>{const[e,t]=(0,n.useState)([]),[r,i]=(0,n.useState)(null),[o,s]=(0,n.useState)(""),[a,l]=(0,n.useState)([]),[c,u]=(0,n.useState)(wge),[d,h]=(0,n.useState)([]),[p,f]=(0,n.useState)(null),[g,m]=(0,n.useState)(""),[y,v]=(0,n.useState)(""),[_,b]=(0,n.useState)(),[x,S]=(0,n.useState)(!1),[w,E]=(0,n.useState)(!1),[P,C]=(0,n.useState)(!1);async function A(){const e=await xge();l(e.solarPanels);const n=e.solarPanels.map((e=>({label:e.reference,value:e.reference})));t(n);const r=e.solarManufacturers.map((e=>({label:e,value:e})));h(r)}(0,n.useEffect)((()=>{A()}),[]);const k=()=>a.find((e=>e.reference===c.reference));return(0,Ae.jsxs)(wp,{padding:"0.5rem",children:[(0,Ae.jsxs)(ws,{container:!0,spacing:4,children:[(0,Ae.jsx)(ws,{item:!0,xs:6,children:(0,Ae.jsx)(hj,{children:(0,Ae.jsxs)(npe,{children:[(0,Ae.jsx)(wp,{marginBottom:"0.5rem",children:(0,Ae.jsx)("h3",{children:"Solar Model to update or delete"})}),(0,Ae.jsx)(rz,{options:e,value:r,getOptionLabel:e=>e.label,onChange:(e,t)=>(e=>{if(!e)return;i({label:e,value:e});const t=a.find((t=>t.reference===e));t&&u(t)})(null===t||void 0===t?void 0:t.value),renderInput:e=>(0,Ae.jsx)(iE,{...e,label:"Models",required:!0}),disabled:""!==o})]})})}),(0,Ae.jsx)(ws,{item:!0,xs:6,children:(0,Ae.jsx)(hj,{children:(0,Ae.jsxs)(npe,{children:[(0,Ae.jsx)(wp,{marginBottom:"0.5rem",children:(0,Ae.jsx)("h3",{children:"Create new solar model"})}),(0,Ae.jsx)(iE,{label:"Model name",required:!0,autoFocus:!0,value:o,inputProps:{style:{padding:"12px 8px"}},variant:"outlined",onChange:e=>{s(e.target.value),e.target.value&&u({...c,reference:e.target.value})}})]})})})]}),c.reference&&(0,Ae.jsx)(hj,{style:{marginTop:"1rem"},children:(0,Ae.jsx)(npe,{children:(0,Ae.jsxs)(ws,{container:!0,direction:"column",rowGap:"1rem",children:[(0,Ae.jsxs)(ws,{item:!0,xs:12,container:!0,spacing:2,alignItems:"center",children:[(0,Ae.jsx)(ws,{item:!0,xs:6,children:(0,Ae.jsx)(rz,{options:d,value:c&&c.supplier?{label:c.supplier,value:c.supplier}:null,getOptionLabel:e=>e.label,onChange:(e,t)=>(null===t||void 0===t?void 0:t.value)&&u({...c,supplier:t.value}),renderInput:e=>(0,Ae.jsx)(iE,{...e,label:"Supplier",required:!0})})}),(0,Ae.jsx)(ws,{item:!0,xs:5,children:(0,Ae.jsx)(ev,{color:"light",label:"Add new supplier",textColor:jp,onClick:e=>f(e.currentTarget)})})]}),(0,Ae.jsx)(ws,{item:!0,width:"50%",children:(0,Ae.jsx)(rz,{options:Ege.map((e=>({label:e,value:e}))),value:c&&c.technology?{label:c.technology,value:c.technology}:null,getOptionLabel:e=>e.label,onChange:(e,t)=>(null===t||void 0===t?void 0:t.value)&&u({...c,technology:t.value}),renderInput:e=>(0,Ae.jsx)(iE,{...e,label:"Technology",required:!0})})}),Sge.map(((e,t)=>(0,Ae.jsx)(ws,{item:!0,width:"50%",children:(0,Ae.jsx)(iE,{required:!0,type:"number",label:e.label,value:c[e.field],variant:"outlined",onChange:t=>{const n={...c};n[e.field]=Number(t.target.value),u(n)},inputProps:{step:e.step}})},t))),(0,Ae.jsxs)(ws,{item:!0,container:!0,spacing:2,children:[(0,Ae.jsx)(ws,{item:!0,children:(0,Ae.jsx)(ev,{label:o?'Create model "'.concat(o,'"'):"Update ".concat(null===c||void 0===c?void 0:c.reference),onClick:async()=>{const e=!k();E(!0),await(async e=>{const t=new Headers;t.append("Content-Type","application/json");const n={method:"POST",headers:t,body:JSON.stringify(e)};return 200===(await Ey("/models/createOrUpdateSolarPanelModel",n)).status})(c),u(wge),s(""),i(null),await A(),E(!1),b("Model has been ".concat(e?"created":"updated"," successfully"))},disabled:!c||!c.length||!c.width||!c.power||!c.reference||!c.technology||!c.supplier,loading:w})}),(0,Ae.jsx)(ws,{item:!0,children:!!k()&&(0,Ae.jsx)(ev,{label:'Delete model "'.concat(c.reference,'"'),onClick:async()=>{C(!0),await(async e=>{const t=new Headers;t.append("Content-Type","application/json");const n={method:"POST",headers:t,body:JSON.stringify({reference:e})};return 200===(await Ey("/models/deleteSolarPanelModel",n)).status})(c.reference),u(wge),i(null),await A(),C(!1),b("Model has been deleted successfully")},color:"delete",loading:P})})]})]})})}),(0,Ae.jsx)(Ud,{open:Boolean(p),anchorEl:p,onClose:()=>f(null),anchorOrigin:{vertical:"bottom",horizontal:"center"},transformOrigin:{vertical:"top",horizontal:"center"},children:(0,Ae.jsxs)("div",{style:{padding:"2rem",display:"flex"},children:[(0,Ae.jsx)(iE,{label:"Name",autoFocus:!0,value:g,onChange:e=>{m(e.target.value)},variant:"outlined"}),!!y&&(0,Ae.jsx)("div",{style:{padding:10,color:"red"},children:y}),(0,Ae.jsx)(ev,{label:"Create supplier",onClick:async()=>{if(!g)return void v("Name empty");const e=d.find((e=>e.value===g));if(e)return void v("Supplier already exists");v(""),S(!0);await(async e=>{const t=new Headers;t.append("Content-Type","application/json");const n={method:"POST",headers:t,body:JSON.stringify({name:e})};return 200===(await Ey("/models/createPanelSupplier",n)).status})(g)&&h([...d,{label:g,value:g}]),f(null),S(!1)},style:{marginLeft:"0.5rem"},loading:x})]})}),(0,Ae.jsx)(JT,{open:void 0!==_,anchorOrigin:{vertical:"top",horizontal:"center"},autoHideDuration:6e3,onClose:()=>b(void 0),children:(0,Ae.jsx)(pM,{severity:"success",children:_})})]})};const Cge=class extends pD{constructor(e){super(),this.tile,this.handleTileChange_=this.handleTileChange_.bind(this),this.gutter=e.gutter||0,this.helper=e.helper,this.loaded=!1,this.ready=!1}setTile(e){if(e!==this.tile)if(this.tile&&this.tile.removeEventListener(BR,this.handleTileChange_),this.tile=e,this.loaded=e.getState()===mD,this.loaded)this.uploadTile();else{if(e instanceof JD){const t=e.getImage();t instanceof Image&&!t.crossOrigin&&(t.crossOrigin="anonymous")}e.addEventListener(BR,this.handleTileChange_)}}uploadTile(){_D()}setReady(){this.ready=!0,this.dispatchEvent(BR)}handleTileChange_(){this.tile.getState()===mD&&(this.loaded=!0,this.uploadTile())}setHelper(e){this.helper=e,this.helper&&this.loaded&&this.uploadTile()}disposeInternal(){this.setHelper(null),this.tile.removeEventListener(BR,this.handleTileChange_)}},Age=34962,kge=34963,jge=35044,Ige=35048,Gge=["experimental-webgl","webgl","webkit-3d","moz-webgl"];function Tge(e,t){t=Object.assign({preserveDrawingBuffer:!0,antialias:!jD},t);const n=Gge.length;for(let i=0;i<n;++i)try{const n=e.getContext(Gge[i],t);if(n)return n}catch(r){}return null}const Mge=jge;function Oge(e){switch(e){case Age:return Float32Array;case kge:return Uint32Array;default:return Float32Array}}const Rge=class{constructor(e,t){this.array_=null,this.type_=e,lN(e===Age||e===kge,"A `WebGLArrayBuffer` must either be of type `ELEMENT_ARRAY_BUFFER` or `ARRAY_BUFFER`"),this.usage_=void 0!==t?t:Mge}ofSize(e){return this.array_=new(Oge(this.type_))(e),this}fromArray(e){return this.array_=Oge(this.type_).from(e),this}fromArrayBuffer(e){return this.array_=new(Oge(this.type_))(e),this}getType(){return this.type_}getArray(){return this.array_}getUsage(){return this.usage_}getSize(){return this.array_?this.array_.length:0}};function Dge(e,t,n){const r=n?e.LINEAR:e.NEAREST;e.bindTexture(e.TEXTURE_2D,t),e.texParameteri(e.TEXTURE_2D,e.TEXTURE_WRAP_S,e.CLAMP_TO_EDGE),e.texParameteri(e.TEXTURE_2D,e.TEXTURE_WRAP_T,e.CLAMP_TO_EDGE),e.texParameteri(e.TEXTURE_2D,e.TEXTURE_MIN_FILTER,r),e.texParameteri(e.TEXTURE_2D,e.TEXTURE_MAG_FILTER,r)}function Nge(e,t,n,r,i,o){const s=e.getGL();let a,l;if(n instanceof Float32Array){a=s.FLOAT,e.getExtension("OES_texture_float");l=null!==e.getExtension("OES_texture_float_linear")}else a=s.UNSIGNED_BYTE,l=!0;Dge(s,t,o&&l);const c=n.byteLength/r[1];let u,d=1;switch(c%8===0?d=8:c%4===0?d=4:c%2===0&&(d=2),i){case 1:u=s.LUMINANCE;break;case 2:u=s.LUMINANCE_ALPHA;break;case 3:u=s.RGB;break;case 4:u=s.RGBA;break;default:throw new Error("Unsupported number of bands: ".concat(i))}const h=s.getParameter(s.UNPACK_ALIGNMENT);s.pixelStorei(s.UNPACK_ALIGNMENT,d),s.texImage2D(s.TEXTURE_2D,0,u,r[0],r[1],0,u,a,n),s.pixelStorei(s.UNPACK_ALIGNMENT,h)}let Lge=null;const Vge=class extends Cge{constructor(e){super(e),this.textures=[],this.renderSize_=LN(e.grid.getTileSize(e.tile.tileCoord[0])),this.bandCount=NaN;const t=new Rge(Age,jge);t.fromArray([0,1,1,1,1,0,0,0]),this.helper.flushBufferData(t),this.coords=t,this.setTile(e.tile)}setHelper(e){var t;const n=null===(t=this.helper)||void 0===t?void 0:t.getGL();if(n){this.helper.deleteBuffer(this.coords);for(let e=0;e<this.textures.length;++e)n.deleteTexture(this.textures[e])}super.setHelper(e),e&&e.flushBufferData(this.coords)}uploadTile(){const e=this.helper,t=e.getGL(),n=this.tile;let r;this.textures.length=0,r=n instanceof JD||n instanceof aN?n.getImage():n.getData();const i=n0(r);if(i){const e=t.createTexture();return this.textures.push(e),this.bandCount=4,function(e,t,n,r){Dge(e,t,r),e.texImage2D(e.TEXTURE_2D,0,e.RGBA,e.RGBA,e.UNSIGNED_BYTE,n)}(t,e,i,n.interpolate),void this.setReady()}r=r0(r);const o=n.getSize(),s=[o[0]+2*this.gutter,o[1]+2*this.gutter],a=r instanceof Float32Array,l=s[0]*s[1],c=a?Float32Array:Uint8Array,u=c.BYTES_PER_ELEMENT,d=r.byteLength/s[1];this.bandCount=Math.floor(d/u/s[0]);const h=Math.ceil(this.bandCount/4);if(1===h){const i=t.createTexture();return this.textures.push(i),Nge(e,i,r,s,this.bandCount,n.interpolate),void this.setReady()}const p=new Array(h);for(let y=0;y<h;++y){const e=t.createTexture();this.textures.push(e);const n=y<h-1?4:(this.bandCount-1)%4+1;p[y]=new c(l*n)}let f=0,g=0;const m=s[0]*this.bandCount;for(let y=0;y<s[1];++y){for(let e=0;e<m;++e){const t=r[g+e],n=Math.floor(f/this.bandCount),i=e%this.bandCount,o=p[Math.floor(i/4)];o[n*(o.length/l)+i%4]=t,++f}g+=d/u}for(let y=0;y<h;++y){const t=this.textures[y],r=p[y];Nge(e,t,r,s,r.length/l,n.interpolate)}this.setReady()}getImagePixelData_(e,t,n){const r=this.gutter,i=this.renderSize_[0],o=this.renderSize_[1];Lge||(Lge=ND(1,1,void 0,{willReadFrequently:!0})),Lge.clearRect(0,0,1,1);const s=e.width-2*r,a=e.height-2*r,l=r+Math.floor(s*(t/i)),c=r+Math.floor(a*(n/o));let u;try{Lge.drawImage(e,l,c,1,1,0,0,1,1),u=Lge.getImageData(0,0,1,1).data}catch(d){return Lge=null,null}return u}getArrayPixelData_(e,t,n,r){const i=this.gutter,o=this.renderSize_[0],s=this.renderSize_[1],a=t[0],l=t[1],c=a+2*i,u=l+2*i,d=i+Math.floor(a*(n/o)),h=i+Math.floor(l*(r/s));if(e instanceof DataView){const t=e.byteLength/(c*u),n=t*(h*c+d),r=e.buffer.slice(n,n+t);return new DataView(r)}const p=this.bandCount*(h*c+d);return e.slice(p,p+this.bandCount)}getPixelData(e,t){if(!this.loaded)return null;if(this.tile instanceof a0){const n=this.tile.getData(),r=r0(n);if(r){const n=this.tile.getSize();return this.getArrayPixelData_(r,n,e,t)}return this.getImagePixelData_(n0(n),e,t)}return this.getImagePixelData_(this.tile.getImage(),e,t)}},Fge="webglcontextlost",zge="webglcontextrestored";const Bge=class{constructor(e){this.gl_=e.webGlContext;const t=this.gl_;this.scaleRatio_=e.scaleRatio||1,this.renderTargetTexture_=t.createTexture(),this.renderTargetTextureSize_=null,this.frameBuffer_=t.createFramebuffer(),this.depthBuffer_=t.createRenderbuffer();const n=t.createShader(t.VERTEX_SHADER);t.shaderSource(n,e.vertexShader||"\n  precision mediump float;\n\n  attribute vec2 a_position;\n  varying vec2 v_texCoord;\n  varying vec2 v_screenCoord;\n\n  uniform vec2 u_screenSize;\n\n  void main() {\n    v_texCoord = a_position * 0.5 + 0.5;\n    v_screenCoord = v_texCoord * u_screenSize;\n    gl_Position = vec4(a_position, 0.0, 1.0);\n  }\n"),t.compileShader(n);const r=t.createShader(t.FRAGMENT_SHADER);t.shaderSource(r,e.fragmentShader||"\n  precision mediump float;\n\n  uniform sampler2D u_image;\n  uniform float u_opacity;\n\n  varying vec2 v_texCoord;\n\n  void main() {\n    gl_FragColor = texture2D(u_image, v_texCoord) * u_opacity;\n  }\n"),t.compileShader(r),this.renderTargetProgram_=t.createProgram(),t.attachShader(this.renderTargetProgram_,n),t.attachShader(this.renderTargetProgram_,r),t.linkProgram(this.renderTargetProgram_),this.renderTargetVerticesBuffer_=t.createBuffer();t.bindBuffer(t.ARRAY_BUFFER,this.renderTargetVerticesBuffer_),t.bufferData(t.ARRAY_BUFFER,new Float32Array([-1,-1,1,-1,-1,1,1,-1,1,1,-1,1]),t.STATIC_DRAW),this.renderTargetAttribLocation_=t.getAttribLocation(this.renderTargetProgram_,"a_position"),this.renderTargetUniformLocation_=t.getUniformLocation(this.renderTargetProgram_,"u_screenSize"),this.renderTargetOpacityLocation_=t.getUniformLocation(this.renderTargetProgram_,"u_opacity"),this.renderTargetTextureLocation_=t.getUniformLocation(this.renderTargetProgram_,"u_image"),this.uniforms_=[],e.uniforms&&Object.keys(e.uniforms).forEach((n=>{this.uniforms_.push({value:e.uniforms[n],location:t.getUniformLocation(this.renderTargetProgram_,n)})}))}getGL(){return this.gl_}init(e){const t=this.getGL(),n=[t.drawingBufferWidth*this.scaleRatio_,t.drawingBufferHeight*this.scaleRatio_];if(t.bindFramebuffer(t.FRAMEBUFFER,this.getFrameBuffer()),t.bindRenderbuffer(t.RENDERBUFFER,this.getDepthBuffer()),t.viewport(0,0,n[0],n[1]),!this.renderTargetTextureSize_||this.renderTargetTextureSize_[0]!==n[0]||this.renderTargetTextureSize_[1]!==n[1]){this.renderTargetTextureSize_=n;const e=0,r=t.RGBA,i=0,o=t.RGBA,s=t.UNSIGNED_BYTE,a=null;t.bindTexture(t.TEXTURE_2D,this.renderTargetTexture_),t.texImage2D(t.TEXTURE_2D,e,r,n[0],n[1],i,o,s,a),t.texParameteri(t.TEXTURE_2D,t.TEXTURE_MIN_FILTER,t.LINEAR),t.texParameteri(t.TEXTURE_2D,t.TEXTURE_WRAP_S,t.CLAMP_TO_EDGE),t.texParameteri(t.TEXTURE_2D,t.TEXTURE_WRAP_T,t.CLAMP_TO_EDGE),t.framebufferTexture2D(t.FRAMEBUFFER,t.COLOR_ATTACHMENT0,t.TEXTURE_2D,this.renderTargetTexture_,0),t.renderbufferStorage(t.RENDERBUFFER,t.DEPTH_COMPONENT16,n[0],n[1]),t.framebufferRenderbuffer(t.FRAMEBUFFER,t.DEPTH_ATTACHMENT,t.RENDERBUFFER,this.depthBuffer_)}}apply(e,t,n,r){const i=this.getGL(),o=e.size;if(i.bindFramebuffer(i.FRAMEBUFFER,t?t.getFrameBuffer():null),i.activeTexture(i.TEXTURE0),i.bindTexture(i.TEXTURE_2D,this.renderTargetTexture_),!t){const t=xD(i.canvas);if(!e.renderTargets[t]){const n=i.getContextAttributes();n&&n.preserveDrawingBuffer&&(i.clearColor(0,0,0,0),i.clearDepth(1),i.clear(i.COLOR_BUFFER_BIT|i.DEPTH_BUFFER_BIT)),e.renderTargets[t]=!0}}i.disable(i.DEPTH_TEST),i.enable(i.BLEND),i.blendFunc(i.ONE,i.ONE_MINUS_SRC_ALPHA),i.viewport(0,0,i.drawingBufferWidth,i.drawingBufferHeight),i.bindBuffer(i.ARRAY_BUFFER,this.renderTargetVerticesBuffer_),i.useProgram(this.renderTargetProgram_),i.enableVertexAttribArray(this.renderTargetAttribLocation_),i.vertexAttribPointer(this.renderTargetAttribLocation_,2,i.FLOAT,!1,0,0),i.uniform2f(this.renderTargetUniformLocation_,o[0],o[1]),i.uniform1i(this.renderTargetTextureLocation_,0);const s=e.layerStatesArray[e.layerIndex].opacity;i.uniform1f(this.renderTargetOpacityLocation_,s),this.applyUniforms(e),n&&n(i,e),i.drawArrays(i.TRIANGLES,0,6),r&&r(i,e)}getFrameBuffer(){return this.frameBuffer_}getDepthBuffer(){return this.depthBuffer_}applyUniforms(e){const t=this.getGL();let n,r=1;this.uniforms_.forEach((function(i){if(n="function"===typeof i.value?i.value(e):i.value,n instanceof HTMLCanvasElement||n instanceof ImageData)i.texture||(i.texture=t.createTexture()),t.activeTexture(t["TEXTURE".concat(r)]),t.bindTexture(t.TEXTURE_2D,i.texture),t.texParameteri(t.TEXTURE_2D,t.TEXTURE_MIN_FILTER,t.LINEAR),t.texParameteri(t.TEXTURE_2D,t.TEXTURE_WRAP_S,t.CLAMP_TO_EDGE),t.texParameteri(t.TEXTURE_2D,t.TEXTURE_WRAP_T,t.CLAMP_TO_EDGE),n instanceof ImageData?t.texImage2D(t.TEXTURE_2D,0,t.RGBA,t.RGBA,n.width,n.height,0,t.UNSIGNED_BYTE,new Uint8Array(n.data)):t.texImage2D(t.TEXTURE_2D,0,t.RGBA,t.RGBA,t.UNSIGNED_BYTE,n),t.uniform1i(i.location,r++);else if(Array.isArray(n))switch(n.length){case 2:return void t.uniform2f(i.location,n[0],n[1]);case 3:return void t.uniform3f(i.location,n[0],n[1],n[2]);case 4:return void t.uniform4f(i.location,n[0],n[1],n[2],n[3]);default:return}else"number"===typeof n&&t.uniform1f(i.location,n)}))}};function Uge(e,t){return e[0]=t[0],e[1]=t[1],e[4]=t[2],e[5]=t[3],e[12]=t[4],e[13]=t[5],e}const Wge="u_projectionMatrix",Hge="u_time",qge="u_zoom",Xge="u_resolution",Yge="u_rotation",Kge="u_viewportSizePx",Zge="u_pixelRatio",$ge="u_hitDetection",Jge={UNSIGNED_BYTE:5121,UNSIGNED_SHORT:5123,UNSIGNED_INT:5125,FLOAT:5126},Qge={};function eme(e){return"shared/"+e}let tme=0;function nme(e){switch(e){case Jge.UNSIGNED_BYTE:return Uint8Array.BYTES_PER_ELEMENT;case Jge.UNSIGNED_SHORT:return Uint16Array.BYTES_PER_ELEMENT;case Jge.UNSIGNED_INT:return Uint32Array.BYTES_PER_ELEMENT;case Jge.FLOAT:default:return Float32Array.BYTES_PER_ELEMENT}}const rme=class extends JR{constructor(e){super(),e=e||{},this.boundHandleWebGLContextLost_=this.handleWebGLContextLost.bind(this),this.boundHandleWebGLContextRestored_=this.handleWebGLContextRestored.bind(this),this.canvasCacheKey_=e.canvasCacheKey?eme(e.canvasCacheKey):function(){const e="unique/"+tme;return tme+=1,e}(),this.gl_=function(e){let t=Qge[e];if(!t){const n=document.createElement("canvas");n.width=1,n.height=1,n.style.position="absolute",n.style.left="0",t={users:0,context:Tge(n)},Qge[e]=t}return t.users+=1,t.context}(this.canvasCacheKey_),this.bufferCache_={},this.extensionCache_={},this.currentProgram_=null,this.needsToBeRecreated_=!1;const t=this.gl_.canvas;t.addEventListener(Fge,this.boundHandleWebGLContextLost_),t.addEventListener(zge,this.boundHandleWebGLContextRestored_),this.offsetRotateMatrix_=[1,0,0,1,0,0],this.offsetScaleMatrix_=[1,0,0,1,0,0],this.tmpMat4_=[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1],this.uniformLocationsByProgram_={},this.attribLocationsByProgram_={},this.uniforms_=[],e.uniforms&&this.setUniforms(e.uniforms),this.postProcessPasses_=e.postProcesses?e.postProcesses.map((e=>new Bge({webGlContext:this.gl_,scaleRatio:e.scaleRatio,vertexShader:e.vertexShader,fragmentShader:e.fragmentShader,uniforms:e.uniforms}))):[new Bge({webGlContext:this.gl_})],this.shaderCompileErrors_=null,this.startTime_=Date.now()}setUniforms(e){this.uniforms_=[],this.addUniforms(e)}addUniforms(e){for(const t in e)this.uniforms_.push({name:t,value:e[t]})}canvasCacheKeyMatches(e){return this.canvasCacheKey_===eme(e)}getExtension(e){if(e in this.extensionCache_)return this.extensionCache_[e];const t=this.gl_.getExtension(e);return this.extensionCache_[e]=t,t}bindBuffer(e){const t=this.gl_,n=xD(e);let r=this.bufferCache_[n];if(!r){r={buffer:e,webGlBuffer:t.createBuffer()},this.bufferCache_[n]=r}t.bindBuffer(e.getType(),r.webGlBuffer)}flushBufferData(e){const t=this.gl_;this.bindBuffer(e),t.bufferData(e.getType(),e.getArray(),e.getUsage())}deleteBuffer(e){const t=this.gl_,n=xD(e),r=this.bufferCache_[n];r&&!t.isContextLost()&&t.deleteBuffer(r.webGlBuffer),delete this.bufferCache_[n]}disposeInternal(){const e=this.gl_.canvas;e.removeEventListener(Fge,this.boundHandleWebGLContextLost_),e.removeEventListener(zge,this.boundHandleWebGLContextRestored_),function(e){const t=Qge[e];if(!t)return;if(t.users-=1,t.users>0)return;const n=t.context,r=n.getExtension("WEBGL_lose_context");r&&r.loseContext();const i=n.canvas;i.width=1,i.height=1,delete Qge[e]}(this.canvasCacheKey_),delete this.gl_}prepareDraw(e,t,n){const r=this.gl_,i=this.getCanvas(),o=e.size,s=e.pixelRatio;i.width===o[0]*s&&i.height===o[1]*s||(i.width=o[0]*s,i.height=o[1]*s,i.style.width=o[0]+"px",i.style.height=o[1]+"px");for(let a=this.postProcessPasses_.length-1;a>=0;a--)this.postProcessPasses_[a].init(e);r.bindTexture(r.TEXTURE_2D,null),r.clearColor(0,0,0,0),r.depthRange(0,1),r.clearDepth(1),r.clear(r.COLOR_BUFFER_BIT|r.DEPTH_BUFFER_BIT),r.enable(r.BLEND),r.blendFunc(r.ONE,t?r.ZERO:r.ONE_MINUS_SRC_ALPHA),n?(r.enable(r.DEPTH_TEST),r.depthFunc(r.LEQUAL)):r.disable(r.DEPTH_TEST)}bindTexture(e,t,n){const r=this.gl_;r.activeTexture(r.TEXTURE0+t),r.bindTexture(r.TEXTURE_2D,e),r.uniform1i(this.getUniformLocation(n),t)}prepareDrawToRenderTarget(e,t,n,r){const i=this.gl_,o=t.getSize();i.bindFramebuffer(i.FRAMEBUFFER,t.getFramebuffer()),i.bindRenderbuffer(i.RENDERBUFFER,t.getDepthbuffer()),i.viewport(0,0,o[0],o[1]),i.bindTexture(i.TEXTURE_2D,t.getTexture()),i.clearColor(0,0,0,0),i.depthRange(0,1),i.clearDepth(1),i.clear(i.COLOR_BUFFER_BIT|i.DEPTH_BUFFER_BIT),i.enable(i.BLEND),i.blendFunc(i.ONE,n?i.ZERO:i.ONE_MINUS_SRC_ALPHA),r?(i.enable(i.DEPTH_TEST),i.depthFunc(i.LEQUAL)):i.disable(i.DEPTH_TEST)}drawElements(e,t){const n=this.gl_;this.getExtension("OES_element_index_uint");const r=n.UNSIGNED_INT,i=t-e,o=4*e;n.drawElements(n.TRIANGLES,i,r,o)}finalizeDraw(e,t,n){for(let r=0,i=this.postProcessPasses_.length;r<i;r++)r===i-1?this.postProcessPasses_[r].apply(e,null,t,n):this.postProcessPasses_[r].apply(e,this.postProcessPasses_[r+1])}getCanvas(){return this.gl_.canvas}getGL(){return this.gl_}applyFrameState(e){const t=e.size,n=e.viewState.rotation,r=e.pixelRatio;this.setUniformFloatValue(Hge,.001*(Date.now()-this.startTime_)),this.setUniformFloatValue(qge,e.viewState.zoom),this.setUniformFloatValue(Xge,e.viewState.resolution),this.setUniformFloatValue(Zge,r),this.setUniformFloatVec2(Kge,[t[0],t[1]]),this.setUniformFloatValue(Yge,n)}applyHitDetectionUniform(e){const t=this.getUniformLocation($ge);this.getGL().uniform1i(t,e?1:0),e&&this.setUniformFloatValue(Zge,.5)}applyUniforms(e){const t=this.gl_;let n,r=0;this.uniforms_.forEach((i=>{if(n="function"===typeof i.value?i.value(e):i.value,n instanceof HTMLCanvasElement||n instanceof HTMLImageElement||n instanceof ImageData||n instanceof WebGLTexture){n instanceof WebGLTexture&&!i.texture?(i.prevValue=void 0,i.texture=n):i.texture||(i.prevValue=void 0,i.texture=t.createTexture()),this.bindTexture(i.texture,r,i.name),t.texParameteri(t.TEXTURE_2D,t.TEXTURE_MIN_FILTER,t.LINEAR),t.texParameteri(t.TEXTURE_2D,t.TEXTURE_WRAP_S,t.CLAMP_TO_EDGE),t.texParameteri(t.TEXTURE_2D,t.TEXTURE_WRAP_T,t.CLAMP_TO_EDGE);const e=!(n instanceof HTMLImageElement)||n.complete;n instanceof WebGLTexture||!e||i.prevValue===n||(i.prevValue=n,t.texImage2D(t.TEXTURE_2D,0,t.RGBA,t.RGBA,t.UNSIGNED_BYTE,n)),r++}else if(Array.isArray(n)&&6===n.length)this.setUniformMatrixValue(i.name,Uge(this.tmpMat4_,n));else if(Array.isArray(n)&&n.length<=4)switch(n.length){case 2:return void t.uniform2f(this.getUniformLocation(i.name),n[0],n[1]);case 3:return void t.uniform3f(this.getUniformLocation(i.name),n[0],n[1],n[2]);case 4:return void t.uniform4f(this.getUniformLocation(i.name),n[0],n[1],n[2],n[3]);default:return}else"number"===typeof n&&t.uniform1f(this.getUniformLocation(i.name),n)}))}useProgram(e,t){this.gl_.useProgram(e),this.currentProgram_=e,this.applyFrameState(t),this.applyUniforms(t)}compileShader(e,t){const n=this.gl_,r=n.createShader(t);return n.shaderSource(r,e),n.compileShader(r),r}getProgram(e,t){const n=this.gl_,r=this.compileShader(e,n.FRAGMENT_SHADER),i=this.compileShader(t,n.VERTEX_SHADER),o=n.createProgram();if(n.attachShader(o,r),n.attachShader(o,i),n.linkProgram(o),!n.getShaderParameter(r,n.COMPILE_STATUS)){const e="Fragment shader compilation failed: ".concat(n.getShaderInfoLog(r));throw new Error(e)}if(n.deleteShader(r),!n.getShaderParameter(i,n.COMPILE_STATUS)){const e="Vertex shader compilation failed: ".concat(n.getShaderInfoLog(i));throw new Error(e)}if(n.deleteShader(i),!n.getProgramParameter(o,n.LINK_STATUS)){const e="GL program linking failed: ".concat(n.getProgramInfoLog(o));throw new Error(e)}return o}getUniformLocation(e){const t=xD(this.currentProgram_);return void 0===this.uniformLocationsByProgram_[t]&&(this.uniformLocationsByProgram_[t]={}),void 0===this.uniformLocationsByProgram_[t][e]&&(this.uniformLocationsByProgram_[t][e]=this.gl_.getUniformLocation(this.currentProgram_,e)),this.uniformLocationsByProgram_[t][e]}getAttributeLocation(e){const t=xD(this.currentProgram_);return void 0===this.attribLocationsByProgram_[t]&&(this.attribLocationsByProgram_[t]={}),void 0===this.attribLocationsByProgram_[t][e]&&(this.attribLocationsByProgram_[t][e]=this.gl_.getAttribLocation(this.currentProgram_,e)),this.attribLocationsByProgram_[t][e]}makeProjectionTransform(e,t){const n=e.size,r=e.viewState.rotation,i=e.viewState.resolution,o=e.viewState.center;return TY(t,0,0,2/(i*n[0]),2/(i*n[1]),-r,-o[0],-o[1]),t}setUniformFloatValue(e,t){this.gl_.uniform1f(this.getUniformLocation(e),t)}setUniformFloatVec2(e,t){this.gl_.uniform2fv(this.getUniformLocation(e),t)}setUniformFloatVec4(e,t){this.gl_.uniform4fv(this.getUniformLocation(e),t)}setUniformMatrixValue(e,t){this.gl_.uniformMatrix4fv(this.getUniformLocation(e),!1,t)}enableAttributeArray_(e,t,n,r,i){const o=this.getAttributeLocation(e);o<0||(this.gl_.enableVertexAttribArray(o),this.gl_.vertexAttribPointer(o,t,n,!1,r,i))}enableAttributes(e){const t=function(e){let t=0;for(let n=0;n<e.length;n++){const r=e[n];t+=r.size*nme(r.type)}return t}(e);let n=0;for(let r=0;r<e.length;r++){const i=e[r];this.enableAttributeArray_(i.name,i.size,i.type||5126,t,n),n+=i.size*nme(i.type)}}handleWebGLContextLost(e){dD(this.bufferCache_),this.currentProgram_=null,e.preventDefault()}handleWebGLContextRestored(){this.needsToBeRecreated_=!0}needsToBeRecreated(){return this.needsToBeRecreated_}createTexture(e,t,n){const r=this.gl_;n=n||r.createTexture();const i=r.RGBA,o=r.RGBA,s=r.UNSIGNED_BYTE;return r.bindTexture(r.TEXTURE_2D,n),t?r.texImage2D(r.TEXTURE_2D,0,i,o,s,t):r.texImage2D(r.TEXTURE_2D,0,i,e[0],e[1],0,o,s,null),r.texParameteri(r.TEXTURE_2D,r.TEXTURE_MIN_FILTER,r.LINEAR),r.texParameteri(r.TEXTURE_2D,r.TEXTURE_WRAP_S,r.CLAMP_TO_EDGE),r.texParameteri(r.TEXTURE_2D,r.TEXTURE_WRAP_T,r.CLAMP_TO_EDGE),n}};class ime extends $Q{constructor(e,t){super(e),t=t||{},this.inversePixelTransform_=[1,0,0,1,0,0],this.postProcesses_=t.postProcesses,this.uniforms_=t.uniforms,this.helper,this.onMapChanged_=()=>{this.clearCache(),this.removeHelper()},e.addChangeListener(cY,this.onMapChanged_),this.dispatchPreComposeEvent=this.dispatchPreComposeEvent.bind(this),this.dispatchPostComposeEvent=this.dispatchPostComposeEvent.bind(this)}dispatchPreComposeEvent(e,t){const n=this.getLayer();if(n.hasListener(pY)){const r=new vJ(pY,void 0,t,e);n.dispatchEvent(r)}}dispatchPostComposeEvent(e,t){const n=this.getLayer();if(n.hasListener(fY)){const r=new vJ(fY,void 0,t,e);n.dispatchEvent(r)}}reset(e){this.uniforms_=e.uniforms,this.helper&&this.helper.setUniforms(this.uniforms_)}removeHelper(){this.helper&&(this.helper.dispose(),delete this.helper)}prepareFrame(e){if(this.getLayer().getRenderSource()){let t,n=!0,r=-1;for(let o=0,s=e.layerStatesArray.length;o<s;o++){const i=e.layerStatesArray[o].layer,s=i.getRenderer();if(!(s instanceof ime)){n=!0;continue}const a=i.getClassName();if((n||a!==t)&&(r+=1,n=!1),t=a,s===this)break}const i="map/"+e.mapId+"/group/"+r;this.helper&&this.helper.canvasCacheKeyMatches(i)&&!this.helper.needsToBeRecreated()||(this.removeHelper(),this.helper=new rme({postProcesses:this.postProcesses_,uniforms:this.uniforms_,canvasCacheKey:i}),t&&(this.helper.getCanvas().className=t),this.afterHelperCreated())}return this.prepareFrameInternal(e)}afterHelperCreated(){}prepareFrameInternal(e){return!0}clearCache(){}disposeInternal(){var e;this.clearCache(),this.removeHelper(),null===(e=this.getLayer())||void 0===e||e.removeChangeListener(cY,this.onMapChanged_),super.disposeInternal()}dispatchRenderEvent_(e,t,n){const r=this.getLayer();if(r.hasListener(e)){TY(this.inversePixelTransform_,0,0,n.pixelRatio,-n.pixelRatio,0,0,-n.size[1]);const i=new vJ(e,this.inversePixelTransform_,n,t);r.dispatchEvent(i)}}preRender(e,t){this.dispatchRenderEvent_(dY,e,t)}postRender(e,t){this.dispatchRenderEvent_(hY,e,t)}}const ome=ime,sme={};function ame(e){return 1/(e+2)}function lme(e,t){return e.tileIds.has(xD(t))}function cme(e,t,n){const r=e.representationsByZ;n in r||(r[n]=new Set),r[n].add(t),e.tileIds.add(xD(t.tile))}function ume(e,t){const n=e.layerStatesArray[e.layerIndex];n.extent&&(t=lO(t,VR(n.extent,e.viewState.projection)));const r=n.layer.getRenderSource();if(!r.getWrapX()){const n=r.getTileGridForProjection(e.viewState.projection).getExtent();n&&(t=lO(t,n))}return t}function dme(e,t){return"".concat(e.getKey(),",").concat(hN(t))}const hme=class extends ome{constructor(e,t){super(e,{uniforms:t.uniforms,postProcesses:t.postProcesses}),this.renderComplete=!1,this.tileTransform_=[1,0,0,1,0,0],this.tempMat4=[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1],this.tempTileRange_=new AN(0,0,0,0),this.tempTileCoord_=uN(0,0,0),this.tempSize_=[0,0];const n=void 0!==t.cacheSize?t.cacheSize:512;this.tileRepresentationCache=new cN(n),this.frameState=null,this.projection_=void 0}reset(e){super.reset({uniforms:e.uniforms})}prepareFrameInternal(e){this.projection_?e.viewState.projection!==this.projection_&&(this.clearCache(),this.projection_=e.viewState.projection):this.projection_=e.viewState.projection;const t=this.getLayer().getRenderSource();return!!t&&(!pO(ume(e,e.extent))&&"ready"===t.getState())}createTileRepresentation(e){return _D()}enqueueTiles(e,t,n,r,i){const o=e.viewState,s=this.getLayer(),a=s.getRenderSource(),l=a.getTileGridForProjection(o.projection),c=a.getGutterForProjection(o.projection),u=xD(a);u in e.wantedTiles||(e.wantedTiles[u]={});const d=e.wantedTiles[u],h=this.tileRepresentationCache,p=s.getMapInternal(),f=Math.max(n-i,l.getMinZoom(),l.getZForResolution(Math.min(s.getMaxResolution(),p?p.getView().getResolutionForZoom(Math.max(s.getMinZoom(),0)):l.getResolution(0)),a.zDirection));for(let g=n;g>=f;--g){const n=l.getTileRangeForExtentAndZ(t,g,this.tempTileRange_),i=l.getResolution(g);for(let t=n.minX;t<=n.maxX;++t)for(let s=n.minY;s<=n.maxY;++s){const n=uN(g,t,s,this.tempTileCoord_),p=dme(a,n);let f,m;if(h.containsKey(p)&&(f=h.get(p),m=f.tile),(!f||f.tile.key!==a.getKey())&&(m=a.getTile(g,t,s,e.pixelRatio,o.projection),!m))continue;if(lme(r,m))continue;f?f.setTile(m):(f=this.createTileRepresentation({tile:m,grid:l,helper:this.helper,gutter:c}),h.set(p,f)),cme(r,f,g);const y=m.getKey();d[y]=!0,m.getState()===fD&&(e.tileQueue.isKeyQueued(y)||e.tileQueue.enqueue([m,u,l.getTileCoordCenter(n),i]))}}}beforeTilesRender(e,t){this.helper.prepareDraw(this.frameState,!t,!0)}beforeTilesMaskRender(e){return!1}renderTile(e,t,n,r,i,o,s,a,l,c,u){}renderTileMask(e,t,n,r){}drawTile_(e,t,n,r,i,o,s){if(!t.ready)return;const a=t.tile.tileCoord,l=hN(a),c=l in o?o[l]:1,u=s.getResolution(n),d=LN(s.getTileSize(n),this.tempSize_),h=s.getOrigin(n),p=s.getTileCoordExtent(a),f=c<1?-1:ame(n);c<1&&(e.animate=!0);const g=e.viewState,m=g.center[0],y=g.center[1],v=d[0]+2*r,_=d[1]+2*r,b=v/_,x=(m-h[0])/(d[0]*u),S=(h[1]-y)/(d[1]*u),w=g.resolution/u,E=a[1],P=a[2];!function(e){kY(e,1,0,0,1,0,0)}(this.tileTransform_),IY(this.tileTransform_,2/(e.size[0]*w/v),-2/(e.size[1]*w/v)),function(e,t){const n=Math.cos(t),r=Math.sin(t);AY(e,kY(CY,n,r,-r,n,0,0))}(this.tileTransform_,g.rotation),IY(this.tileTransform_,1,1/b),GY(this.tileTransform_,(d[0]*(E-x)-r)/v,(d[1]*(P-S)-r)/_),this.renderTile(t,this.tileTransform_,e,i,u,d,h,p,f,r,c)}renderFrame(e){this.frameState=e,this.renderComplete=!0;const t=this.helper.getGL();this.preRender(t,e);const n=e.viewState,r=this.getLayer(),i=r.getRenderSource(),o=i.getTileGridForProjection(n.projection),s=i.getGutterForProjection(n.projection),a=ume(e,e.extent),l=o.getZForResolution(n.resolution,i.zDirection),c={tileIds:new Set,representationsByZ:{}},u=r.getPreload();if(e.nextExtent){const t=o.getZForResolution(n.nextResolution,i.zDirection),r=ume(e,e.nextExtent);this.enqueueTiles(e,r,t,c,u)}this.enqueueTiles(e,a,l,c,0),u>0&&setTimeout((()=>{this.enqueueTiles(e,a,l-1,c,u-1)}),0);const d={},h=xD(this),p=e.time;let f=!1;const g=c.representationsByZ;if(l in g)for(const _ of g[l]){const e=_.tile;if((e instanceof aN||e instanceof l0)&&e.getState()===vD)continue;const t=e.tileCoord;if(_.ready){const n=e.getAlpha(h,p);if(1===n){e.endTransition(h);continue}f=!0;d[hN(t)]=n}this.renderComplete=!1;if(this.findAltTiles_(o,t,l+1,c))continue;const n=o.getMinZoom();for(let r=l-1;r>=n;--r){if(this.findAltTiles_(o,t,r,c))break}}const m=Object.keys(g).map(Number).sort(tD);if(this.beforeTilesMaskRender(e))for(let _=0,b=m.length;_<b;++_){const e=m[_];for(const t of g[e]){const n=t.tile.tileCoord;if(hN(n)in d)continue;const r=o.getTileCoordExtent(n);this.renderTileMask(t,e,r,ame(e))}}this.beforeTilesRender(e,f);for(let _=0,b=m.length;_<b;++_){const t=m[_];for(const n of g[t]){hN(n.tile.tileCoord)in d||this.drawTile_(e,n,t,s,a,d,o)}}if(l in g)for(const _ of g[l]){hN(_.tile.tileCoord)in d&&this.drawTile_(e,_,l,s,a,d,o)}this.helper.finalizeDraw(e,this.dispatchPreComposeEvent,this.dispatchPostComposeEvent);const y=this.helper.getCanvas(),v=this.tileRepresentationCache;for(;v.canExpireCache();){v.pop().dispose()}return e.postRenderFunctions.push((function(e,t){i.expireCache(t.viewState.projection,sme)})),this.postRender(t,e),y}findAltTiles_(e,t,n,r){const i=e.getTileRangeForTileCoordAndZ(t,n,this.tempTileRange_);if(!i)return!1;let o=!0;const s=this.tileRepresentationCache,a=this.getLayer().getRenderSource();for(let l=i.minX;l<=i.maxX;++l)for(let e=i.minY;e<=i.maxY;++e){const t=dme(a,[n,l,e]);let i=!1;if(s.containsKey(t)){const e=s.get(t);e.ready&&!lme(r,e.tile)&&(cme(r,e,n),i=!0)}i||(o=!1)}return o}clearCache(){super.clearCache();const e=this.tileRepresentationCache;e.forEach((e=>e.dispose())),e.clear()}afterHelperCreated(){super.afterHelperCreated(),this.tileRepresentationCache.forEach((e=>e.setHelper(this.helper)))}disposeInternal(){super.disposeInternal(),delete this.frameState}},pme={TILE_TRANSFORM:"u_tileTransform",TRANSITION_ALPHA:"u_transitionAlpha",DEPTH:"u_depth",RENDER_EXTENT:"u_renderExtent",PATTERN_ORIGIN:"u_patternOrigin",RESOLUTION:"u_resolution",ZOOM:"u_zoom",GLOBAL_ALPHA:"u_globalAlpha",PROJECTION_MATRIX:"u_projectionMatrix",SCREEN_TO_WORLD_MATRIX:"u_screenToWorldMatrix",TILE_TEXTURE_ARRAY:"u_tileTextures",TEXTURE_PIXEL_WIDTH:"u_texturePixelWidth",TEXTURE_PIXEL_HEIGHT:"u_texturePixelHeight",TEXTURE_RESOLUTION:"u_textureResolution",TEXTURE_ORIGIN_X:"u_textureOriginX",TEXTURE_ORIGIN_Y:"u_textureOriginY"},fme="a_textureCoord",gme=[{name:fme,size:2,type:Jge.FLOAT}];const mme=class extends hme{constructor(e,t){super(e,t),this.program_,this.vertexShader_=t.vertexShader,this.fragmentShader_=t.fragmentShader,this.indices_=new Rge(kge,jge),this.indices_.fromArray([0,1,3,1,2,3]),this.paletteTextures_=t.paletteTextures||[]}reset(e){if(super.reset(e),this.helper){const e=this.helper.getGL();for(const t of this.paletteTextures_)t.delete(e)}this.vertexShader_=e.vertexShader,this.fragmentShader_=e.fragmentShader,this.paletteTextures_=e.paletteTextures||[],this.helper&&(this.program_=this.helper.getProgram(this.fragmentShader_,this.vertexShader_))}afterHelperCreated(){super.afterHelperCreated(),this.program_=this.helper.getProgram(this.fragmentShader_,this.vertexShader_),this.helper.flushBufferData(this.indices_)}removeHelper(){if(this.helper){const e=this.helper.getGL();for(const t of this.paletteTextures_)t.delete(e)}super.removeHelper()}createTileRepresentation(e){return new Vge(e)}beforeTilesRender(e,t){super.beforeTilesRender(e,t),this.helper.useProgram(this.program_,e)}renderTile(e,t,n,r,i,o,s,a,l,c,u){const d=this.helper.getGL();this.helper.bindBuffer(e.coords),this.helper.bindBuffer(this.indices_),this.helper.enableAttributes(gme);let h=0;for(;h<e.textures.length;){const t="".concat(pme.TILE_TEXTURE_ARRAY,"[").concat(h,"]");this.helper.bindTexture(e.textures[h],h,t),++h}for(let b=0;b<this.paletteTextures_.length;++b){const e=this.paletteTextures_[b],t=e.getTexture(d);this.helper.bindTexture(t,h,e.name),++h}const p=n.viewState,f=o[0]+2*c,g=o[1]+2*c,m=e.tile.tileCoord,y=m[1],v=m[2];this.helper.setUniformMatrixValue(pme.TILE_TRANSFORM,Uge(this.tempMat4,t)),this.helper.setUniformFloatValue(pme.TRANSITION_ALPHA,u),this.helper.setUniformFloatValue(pme.DEPTH,l);let _=r;c>0&&(_=a,lO(_,r,_)),this.helper.setUniformFloatVec4(pme.RENDER_EXTENT,_),this.helper.setUniformFloatValue(pme.RESOLUTION,p.resolution),this.helper.setUniformFloatValue(pme.ZOOM,p.zoom),this.helper.setUniformFloatValue(pme.TEXTURE_PIXEL_WIDTH,f),this.helper.setUniformFloatValue(pme.TEXTURE_PIXEL_HEIGHT,g),this.helper.setUniformFloatValue(pme.TEXTURE_RESOLUTION,i),this.helper.setUniformFloatValue(pme.TEXTURE_ORIGIN_X,s[0]+y*o[0]*i-c*i),this.helper.setUniformFloatValue(pme.TEXTURE_ORIGIN_Y,s[1]-v*o[1]*i+c*i),this.helper.drawElements(0,this.indices_.getSize())}getData(e){if(!this.helper.getGL())return null;const t=this.frameState;if(!t)return null;const n=this.getLayer(),r=jY(t.pixelToCoordinateTransform,e.slice()),i=t.viewState,o=n.getExtent();if(o&&!FM(VR(o,i.projection),r))return null;const s=n.getSources(DM([r]),i.resolution);let a,l,c;for(a=s.length-1;a>=0;--a)if(l=s[a],"ready"===l.getState()){if(c=l.getTileGridForProjection(i.projection),l.getWrapX())break;const e=c.getExtent();if(!e||FM(e,r))break}if(a<0)return null;const u=this.tileRepresentationCache;for(let d=c.getZForResolution(i.resolution);d>=c.getMinZoom();--d){const e=c.getTileCoordForCoordAndZ(r,d),t=dme(l,e);if(!u.containsKey(t))continue;const n=u.get(t),i=n.tile;if((i instanceof aN||i instanceof l0)&&i.getState()===vD)return null;if(!n.loaded)continue;const o=c.getOrigin(d),s=LN(c.getTileSize(d)),a=c.getResolution(d),h=(r[0]-o[0])/a-e[1]*s[0],p=(o[1]-r[1])/a-e[2]*s[1];return n.getPixelData(h,p)}return null}disposeInternal(){const e=this.helper;if(e){const t=e.getGL();for(const e of this.paletteTextures_)e.delete(t);this.paletteTextures_.length=0,t.deleteProgram(this.program_),delete this.program_,e.deleteBuffer(this.indices_)}super.disposeInternal(),delete this.indices_}};const yme=class{constructor(e,t){this.name=e,this.data=t,this.texture_=null}getTexture(e){if(!this.texture_){const t=e.createTexture();e.bindTexture(e.TEXTURE_2D,t),e.texParameteri(e.TEXTURE_2D,e.TEXTURE_WRAP_S,e.CLAMP_TO_EDGE),e.texParameteri(e.TEXTURE_2D,e.TEXTURE_WRAP_T,e.CLAMP_TO_EDGE),e.texParameteri(e.TEXTURE_2D,e.TEXTURE_MIN_FILTER,e.NEAREST),e.texParameteri(e.TEXTURE_2D,e.TEXTURE_MAG_FILTER,e.NEAREST),e.texImage2D(e.TEXTURE_2D,0,e.RGBA,this.data.length/4,1,0,e.RGBA,e.UNSIGNED_BYTE,this.data),this.texture_=t}return this.texture_}delete(e){this.texture_&&e.deleteTexture(this.texture_),this.texture_=null}};function vme(e){const t=e.toString();return t.includes(".")?t:t+".0"}function _me(e){if(e.length<2||e.length>4)throw new Error("`formatArray` can only output `vec2`, `vec3` or `vec4` arrays.");return"vec".concat(e.length,"(").concat(e.map(vme).join(", "),")")}function bme(e){const t=pZ(e),n=t.length>3?t[3]:1;return _me([t[0]/255,t[1]/255,t[2]/255,n])}const xme={};let Sme=0;function wme(e){return e in xme||(xme[e]=Sme++),xme[e]}function Eme(e){return vme(wme(e))}function Pme(e){return"u_var_"+e}const Cme="getBandValue",Ame="u_paletteTextures";function kme(e){return(t,n,r)=>{const i=n.args.length,o=new Array(i);for(let e=0;e<i;++e)o[e]=Ime(n.args[e],r,t);return e(o,t)}}const jme={[G$.Get]:(e,t)=>{const n=t.args[0].value;n in e.properties||(e.properties[n]={name:n,type:t.type});return(e.inFragmentShader?"v_prop_":"a_prop_")+n},[G$.GeometryType]:(e,t,n)=>{const r="geometryType";r in e.properties||(e.properties[r]={name:r,type:y$,evaluator:e=>F$(e.getGeometry())});return(e.inFragmentShader?"v_prop_":"a_prop_")+r},[G$.LineMetric]:()=>"currentLineMetric",[G$.Var]:(e,t)=>{const n=t.args[0].value;return n in e.variables||(e.variables[n]={name:n,type:t.type}),Pme(n)},[G$.Resolution]:()=>"u_resolution",[G$.Zoom]:()=>"u_zoom",[G$.Time]:()=>"u_time",[G$.Any]:kme((e=>"(".concat(e.join(" || "),")"))),[G$.All]:kme((e=>"(".concat(e.join(" && "),")"))),[G$.Not]:kme((e=>{let[t]=e;return"(!".concat(t,")")})),[G$.Equal]:kme((e=>{let[t,n]=e;return"(".concat(t," == ").concat(n,")")})),[G$.NotEqual]:kme((e=>{let[t,n]=e;return"(".concat(t," != ").concat(n,")")})),[G$.GreaterThan]:kme((e=>{let[t,n]=e;return"(".concat(t," > ").concat(n,")")})),[G$.GreaterThanOrEqualTo]:kme((e=>{let[t,n]=e;return"(".concat(t," >= ").concat(n,")")})),[G$.LessThan]:kme((e=>{let[t,n]=e;return"(".concat(t," < ").concat(n,")")})),[G$.LessThanOrEqualTo]:kme((e=>{let[t,n]=e;return"(".concat(t," <= ").concat(n,")")})),[G$.Multiply]:kme((e=>"(".concat(e.join(" * "),")"))),[G$.Divide]:kme((e=>{let[t,n]=e;return"(".concat(t," / ").concat(n,")")})),[G$.Add]:kme((e=>"(".concat(e.join(" + "),")"))),[G$.Subtract]:kme((e=>{let[t,n]=e;return"(".concat(t," - ").concat(n,")")})),[G$.Clamp]:kme((e=>{let[t,n,r]=e;return"clamp(".concat(t,", ").concat(n,", ").concat(r,")")})),[G$.Mod]:kme((e=>{let[t,n]=e;return"mod(".concat(t,", ").concat(n,")")})),[G$.Pow]:kme((e=>{let[t,n]=e;return"pow(".concat(t,", ").concat(n,")")})),[G$.Abs]:kme((e=>{let[t]=e;return"abs(".concat(t,")")})),[G$.Floor]:kme((e=>{let[t]=e;return"floor(".concat(t,")")})),[G$.Ceil]:kme((e=>{let[t]=e;return"ceil(".concat(t,")")})),[G$.Round]:kme((e=>{let[t]=e;return"floor(".concat(t," + 0.5)")})),[G$.Sin]:kme((e=>{let[t]=e;return"sin(".concat(t,")")})),[G$.Cos]:kme((e=>{let[t]=e;return"cos(".concat(t,")")})),[G$.Atan]:kme((e=>{let[t,n]=e;return void 0!==n?"atan(".concat(t,", ").concat(n,")"):"atan(".concat(t,")")})),[G$.Sqrt]:kme((e=>{let[t]=e;return"sqrt(".concat(t,")")})),[G$.Match]:kme((e=>{const t=e[0],n=e[e.length-1];let r=null;for(let i=e.length-3;i>=1;i-=2){const o=e[i],s=e[i+1];r="(".concat(t," == ").concat(o," ? ").concat(s," : ").concat(r||n,")")}return r})),[G$.Between]:kme((e=>{let[t,n,r]=e;return"(".concat(t," >= ").concat(n," && ").concat(t," <= ").concat(r,")")})),[G$.Interpolate]:kme((e=>{let[t,n,...r]=e,i="";for(let o=0;o<r.length-2;o+=2){const e=r[o],s=i||r[o+1],a=r[o+2],l=r[o+3];let c;c=t===vme(1)?"(".concat(n," - ").concat(e,") / (").concat(a," - ").concat(e,")"):"(pow(".concat(t,", (").concat(n," - ").concat(e,")) - 1.0) / (pow(").concat(t,", (").concat(a," - ").concat(e,")) - 1.0)"),i="mix(".concat(s,", ").concat(l,", clamp(").concat(c,", 0.0, 1.0))")}return i})),[G$.Case]:kme((e=>{const t=e[e.length-1];let n=null;for(let r=e.length-3;r>=0;r-=2){const i=e[r],o=e[r+1];n="(".concat(i," ? ").concat(o," : ").concat(n||t,")")}return n})),[G$.In]:kme(((e,t)=>{let[n,...r]=e;const i=function(e,t){return"operator_".concat(e,"_").concat(Object.keys(t.functions).length)}("in",t),o=[];for(let s=0;s<r.length;s+=1)o.push("  if (inputValue == ".concat(r[s],") { return true; }"));return t.functions[i]="bool ".concat(i,"(float inputValue) {\n").concat(o.join("\n"),"\n  return false;\n}"),"".concat(i,"(").concat(n,")")})),[G$.Array]:kme((e=>"vec".concat(e.length,"(").concat(e.join(", "),")"))),[G$.Color]:kme((e=>{if(1===e.length)return"vec4(vec3(".concat(e[0]," / 255.0), 1.0)");if(2===e.length)return"vec4(vec3(".concat(e[0]," / 255.0), ").concat(e[1],")");const t=e.slice(0,3).map((e=>"".concat(e," / 255.0")));if(3===e.length)return"vec4(".concat(t.join(", "),", 1.0)");const n=e[3];return"vec4(".concat(t.join(", "),", ").concat(n,")")})),[G$.Band]:kme(((e,t)=>{let[n,r,i]=e;if(!(Cme in t.functions)){let e="";const n=t.bandCount||1;for(let t=0;t<n;t++){const r=Math.floor(t/4);let i=t%4;t===n-1&&1===i&&(i=3);const o="".concat(pme.TILE_TEXTURE_ARRAY,"[").concat(r,"]");e+="  if (band == ".concat(t+1,".0) {\n    return texture2D(").concat(o,", v_textureCoord + vec2(dx, dy))[").concat(i,"];\n  }\n")}t.functions[Cme]="float getBandValue(float band, float xOffset, float yOffset) {\n  float dx = xOffset / ".concat(pme.TEXTURE_PIXEL_WIDTH,";\n  float dy = yOffset / ").concat(pme.TEXTURE_PIXEL_HEIGHT,";\n").concat(e,"\n}")}return"".concat(Cme,"(").concat(n,", ").concat(null!==r&&void 0!==r?r:"0.0",", ").concat(null!==i&&void 0!==i?i:"0.0",")")})),[G$.Palette]:(e,t)=>{const[n,...r]=t.args,i=r.length,o=new Uint8Array(4*i);for(let c=0;c<r.length;c++){const e=pZ(r[c].value),t=4*c;o[t]=e[0],o[t+1]=e[1],o[t+2]=e[2],o[t+3]=255*e[3]}e.paletteTextures||(e.paletteTextures=[]);const s="".concat(Ame,"[").concat(e.paletteTextures.length,"]"),a=new yme(s,o);e.paletteTextures.push(a);const l=Ime(n,m$,e);return"texture2D(".concat(s,", vec2((").concat(l," + 0.5) / ").concat(i,".0, 0.5))")}};function Ime(e,t,n){if(e instanceof k$){const r=jme[e.operator];if(void 0===r)throw new Error("No compiler defined for this operator: ".concat(JSON.stringify(e.operator)));return r(n,e,t)}if((e.type&m$)>0)return vme(e.value);if((e.type&g$)>0)return e.value.toString();if((e.type&y$)>0)return Eme(e.value.toString());if((e.type&v$)>0)return bme(e.value);if((e.type&_$)>0)return _me(e.value);if((e.type&b$)>0)return _me(LN(e.value));throw new Error("Unexpected expression ".concat(e.value," (expected type ").concat(E$(t),")"))}function Gme(e,t,n){return function(e,t,n,r){return Ime(I$(e,t,n),t,r)}(t,n,j$(),e)}function Tme(e,t){const n="\n    attribute vec2 ".concat(fme,";\n    uniform mat4 ").concat(pme.TILE_TRANSFORM,";\n    uniform float ").concat(pme.TEXTURE_PIXEL_WIDTH,";\n    uniform float ").concat(pme.TEXTURE_PIXEL_HEIGHT,";\n    uniform float ").concat(pme.TEXTURE_RESOLUTION,";\n    uniform float ").concat(pme.TEXTURE_ORIGIN_X,";\n    uniform float ").concat(pme.TEXTURE_ORIGIN_Y,";\n    uniform float ").concat(pme.DEPTH,";\n\n    varying vec2 v_textureCoord;\n    varying vec2 v_mapCoord;\n\n    void main() {\n      v_textureCoord = ").concat(fme,";\n      v_mapCoord = vec2(\n        ").concat(pme.TEXTURE_ORIGIN_X," + ").concat(pme.TEXTURE_RESOLUTION," * ").concat(pme.TEXTURE_PIXEL_WIDTH," * v_textureCoord[0],\n        ").concat(pme.TEXTURE_ORIGIN_Y," - ").concat(pme.TEXTURE_RESOLUTION," * ").concat(pme.TEXTURE_PIXEL_HEIGHT," * v_textureCoord[1]\n      );\n      gl_Position = ").concat(pme.TILE_TRANSFORM," * vec4(").concat(fme,", ").concat(pme.DEPTH,", 1.0);\n    }\n  "),r={inFragmentShader:!1,variables:{},properties:{},functions:{},bandCount:0,style:{},inFragmentShader:!0,bandCount:t,style:e},i=[];if(void 0!==e.color){const t=Gme(r,e.color,v$);i.push("color = ".concat(t,";"))}if(void 0!==e.contrast){const t=Gme(r,e.contrast,m$);i.push("color.rgb = clamp((".concat(t," + 1.0) * color.rgb - (").concat(t," / 2.0), vec3(0.0, 0.0, 0.0), vec3(1.0, 1.0, 1.0));"))}if(void 0!==e.exposure){const t=Gme(r,e.exposure,m$);i.push("color.rgb = clamp((".concat(t," + 1.0) * color.rgb, vec3(0.0, 0.0, 0.0), vec3(1.0, 1.0, 1.0));"))}if(void 0!==e.saturation){const t=Gme(r,e.saturation,m$);i.push("\n      float saturation = ".concat(t," + 1.0;\n      float sr = (1.0 - saturation) * 0.2126;\n      float sg = (1.0 - saturation) * 0.7152;\n      float sb = (1.0 - saturation) * 0.0722;\n      mat3 saturationMatrix = mat3(\n        sr + saturation, sr, sr,\n        sg, sg + saturation, sg,\n        sb, sb, sb + saturation\n      );\n      color.rgb = clamp(saturationMatrix * color.rgb, vec3(0.0, 0.0, 0.0), vec3(1.0, 1.0, 1.0));\n    "))}if(void 0!==e.gamma){const t=Gme(r,e.gamma,m$);i.push("color.rgb = pow(color.rgb, vec3(1.0 / ".concat(t,"));"))}if(void 0!==e.brightness){const t=Gme(r,e.brightness,m$);i.push("color.rgb = clamp(color.rgb + ".concat(t,", vec3(0.0, 0.0, 0.0), vec3(1.0, 1.0, 1.0));"))}const o={},s=Object.keys(r.variables).length;if(s>1&&!e.variables)throw new Error("Missing variables in style (expected ".concat(r.variables,")"));for(let u=0;u<s;++u){const t=r.variables[Object.keys(r.variables)[u]];if(!(t.name in e.variables))throw new Error("Missing '".concat(t.name,"' in style variables"));o[Pme(t.name)]=function(){let n=e.variables[t.name];return"string"===typeof n&&(n=wme(n)),void 0!==n?n:-9999999}}const a=Object.keys(o).map((function(e){return"uniform float ".concat(e,";")})),l=Math.ceil(t/4);a.push("uniform sampler2D ".concat(pme.TILE_TEXTURE_ARRAY,"[").concat(l,"];")),r.paletteTextures&&a.push("uniform sampler2D ".concat(Ame,"[").concat(r.paletteTextures.length,"];"));const c=Object.keys(r.functions).map((function(e){return r.functions[e]}));return{vertexShader:n,fragmentShader:"\n    #ifdef GL_FRAGMENT_PRECISION_HIGH\n    precision highp float;\n    #else\n    precision mediump float;\n    #endif\n\n    varying vec2 v_textureCoord;\n    varying vec2 v_mapCoord;\n    uniform vec4 ".concat(pme.RENDER_EXTENT,";\n    uniform float ").concat(pme.TRANSITION_ALPHA,";\n    uniform float ").concat(pme.TEXTURE_PIXEL_WIDTH,";\n    uniform float ").concat(pme.TEXTURE_PIXEL_HEIGHT,";\n    uniform float ").concat(pme.RESOLUTION,";\n    uniform float ").concat(pme.ZOOM,";\n\n    ").concat(a.join("\n"),"\n\n    ").concat(c.join("\n"),"\n\n    void main() {\n      if (\n        v_mapCoord[0] < ").concat(pme.RENDER_EXTENT,"[0] ||\n        v_mapCoord[1] < ").concat(pme.RENDER_EXTENT,"[1] ||\n        v_mapCoord[0] > ").concat(pme.RENDER_EXTENT,"[2] ||\n        v_mapCoord[1] > ").concat(pme.RENDER_EXTENT,"[3]\n      ) {\n        discard;\n      }\n\n      vec4 color = texture2D(").concat(pme.TILE_TEXTURE_ARRAY,"[0],  v_textureCoord);\n\n      ").concat(i.join("\n"),"\n\n      gl_FragColor = color;\n      gl_FragColor.rgb *= gl_FragColor.a;\n      gl_FragColor *= ").concat(pme.TRANSITION_ALPHA,";\n    }"),uniforms:o,paletteTextures:r.paletteTextures}}class Mme extends ZQ{constructor(e){const t=(e=e?Object.assign({},e):{}).style||{};delete e.style,super(e),this.sources_=e.sources,this.renderedSource_=null,this.renderedResolution_=NaN,this.style_=t,this.styleVariables_=this.style_.variables||{},this.addChangeListener(lY,this.handleSourceUpdate_)}getSources(e,t){const n=this.getSource();return this.sources_?"function"===typeof this.sources_?this.sources_(e,t):this.sources_:n?[n]:[]}getRenderSource(){return this.renderedSource_||this.getSource()}getSourceState(){const e=this.getRenderSource();return e?e.getState():"undefined"}handleSourceUpdate_(){this.hasRenderer()&&this.getRenderer().clearCache(),this.getSource()&&this.setStyle(this.style_)}getSourceBandCount_(){const e=Number.MAX_SAFE_INTEGER,t=this.getSources([-e,-e,e,e],e);return t&&t.length&&"bandCount"in t[0]?t[0].bandCount:4}createRenderer(){const e=Tme(this.style_,this.getSourceBandCount_());return new mme(this,{vertexShader:e.vertexShader,fragmentShader:e.fragmentShader,uniforms:e.uniforms,cacheSize:this.getCacheSize(),paletteTextures:e.paletteTextures})}renderSources(e,t){const n=this.getRenderer();let r;for(let i=0,o=t.length;i<o;++i)this.renderedSource_=t[i],n.prepareFrame(e)&&(r=n.renderFrame(e));return r}render(e,t){this.rendered=!0;const n=e.viewState,r=this.getSources(e.extent,n.resolution);let i=!0;for(let s=0,a=r.length;s<a;++s){const e=r[s],t=e.getState();if("loading"==t){const t=()=>{"ready"==e.getState()&&(e.removeEventListener("change",t),this.changed())};e.addEventListener("change",t)}i=i&&"ready"==t}const o=this.renderSources(e,r);if(this.getRenderer().renderComplete&&i)return this.renderedResolution_=n.resolution,o;if(this.renderedResolution_>.5*n.resolution){const t=this.getSources(e.extent,this.renderedResolution_).filter((e=>!r.includes(e)));if(t.length>0)return this.renderSources(e,t)}return o}setStyle(e){if(this.styleVariables_=e.variables||{},this.style_=e,this.hasRenderer()){const e=Tme(this.style_,this.getSourceBandCount_());this.getRenderer().reset({vertexShader:e.vertexShader,fragmentShader:e.fragmentShader,uniforms:e.uniforms,paletteTextures:e.paletteTextures}),this.changed()}}updateStyleVariables(e){Object.assign(this.styleVariables_,e),this.changed()}}Mme.prototype.dispose;const Ome=Mme;const Rme=class extends qN{constructor(e){const t=void 0===e.projection?"EPSG:3857":e.projection;let n=e.tileGrid;void 0===n&&t&&(n=BN({extent:WN(t),maxResolution:e.maxResolution,maxZoom:e.maxZoom,minZoom:e.minZoom,tileSize:e.tileSize})),super({cacheSize:.1,attributions:e.attributions,attributionsCollapsible:e.attributionsCollapsible,projection:t,tileGrid:n,state:e.state,wrapX:e.wrapX,transition:e.transition,interpolate:e.interpolate,key:e.key}),this.gutter_=void 0!==e.gutter?e.gutter:0,this.tileSize_=e.tileSize?LN(e.tileSize):null,this.tileSizes_=null,this.tileLoadingKeys_={},this.loader_=e.loader,this.handleTileChange_=this.handleTileChange_.bind(this),this.bandCount=void 0===e.bandCount?4:e.bandCount,this.tileGridForProjection_={},this.tileCacheForProjection_={},this.crossOrigin_=e.crossOrigin||"anonymous"}setTileSizes(e){this.tileSizes_=e}getTileSize(e){if(this.tileSizes_)return this.tileSizes_[e];if(this.tileSize_)return this.tileSize_;const t=this.getTileGrid();return t?LN(t.getTileSize(e)):[256,256]}getGutterForProjection(e){const t=this.getProjection();return!t||jR(t,e)?this.gutter_:0}setLoader(e){this.loader_=e}getReprojTile_(e,t,n,r,i){const o=this.getTileCacheForProjection(r),s=dN(e,t,n);if(o.containsKey(s)){const e=o.get(s);if(e&&e.key==this.getKey())return e}const a=this.getTileGrid(),l=Math.max.apply(null,a.getResolutions().map(((e,t)=>{const n=LN(a.getTileSize(t)),r=this.getTileSize(t);return Math.max(r[0]/n[0],r[1]/n[1])}))),c=this.getTileGridForProjection(i),u=this.getTileGridForProjection(r),d=[e,t,n],h=this.getTileCoordForTileUrlFunction(d,r),p=Object.assign({sourceProj:i,sourceTileGrid:c,targetProj:r,targetTileGrid:u,tileCoord:d,wrappedTileCoord:h,pixelRatio:l,gutter:this.getGutterForProjection(i),getTileFunction:(e,t,n,r)=>this.getTile(e,t,n,r,i)},this.tileOptions),f=new l0(p);return f.key=this.getKey(),f}getTile(e,t,n,r,i){const o=this.getProjection();if(o&&i&&!jR(o,i))return this.getReprojTile_(e,t,n,i,o);const s=this.getTileSize(e),a=dN(e,t,n);if(this.tileCache.containsKey(a))return this.tileCache.get(a);const l=this.loader_,c=new AbortController,u={signal:c.signal,crossOrigin:this.crossOrigin_},d=this.getTileCoordForTileUrlFunction([e,t,n]);if(!d)return null;const h=d[0],p=d[1],f=d[2];const g=Object.assign({tileCoord:[e,t,n],loader:function(){return uD((function(){return l(h,p,f,u)}))},size:s,controller:c},this.tileOptions),m=new a0(g);return m.key=this.getKey(),m.addEventListener(BR,this.handleTileChange_),this.tileCache.set(a,m),m}handleTileChange_(e){const t=e.target,n=xD(t),r=t.getState();let i;r==gD?(this.tileLoadingKeys_[n]=!0,i=fN):n in this.tileLoadingKeys_&&(delete this.tileLoadingKeys_[n],i=r==yD?mN:r==mD?gN:void 0),i&&this.dispatchEvent(new HN(i,t))}getTileGridForProjection(e){const t=this.getProjection();if(this.tileGrid&&(!t||jR(t,e)))return this.tileGrid;const n=xD(e);return n in this.tileGridForProjection_||(this.tileGridForProjection_[n]=zN(e)),this.tileGridForProjection_[n]}setTileGridForProjection(e,t){const n=xR(e);if(n){const e=xD(n);e in this.tileGridForProjection_||(this.tileGridForProjection_[e]=t)}}getTileCacheForProjection(e){const t=this.getProjection();if(!t||jR(t,e))return this.tileCache;const n=xD(e);return n in this.tileCacheForProjection_||(this.tileCacheForProjection_[n]=new pN(.1)),this.tileCacheForProjection_[n]}expireCache(e,t){const n=this.getTileCacheForProjection(e);this.tileCache.expireCache(this.tileCache==n?t:{});for(const r in this.tileCacheForProjection_){const e=this.tileCacheForProjection_[r];e.expireCache(e==n?t:{})}}clear(){super.clear();for(const e in this.tileCacheForProjection_)this.tileCacheForProjection_[e].clear()}};var Dme=__webpack_require__(94268);const Nme=new Map;function Lme(e,t){Array.isArray(e)||(e=[e]),e.forEach((e=>Nme.set(e,t)))}async function Vme(e){const t=Nme.get(e.Compression);if(!t)throw new Error("Unknown compression method identifier: ".concat(e.Compression));return new(await t())(e)}Lme([void 0,1],(()=>__webpack_require__.e(789).then(__webpack_require__.bind(__webpack_require__,99789)).then((e=>e.default)))),Lme(5,(()=>__webpack_require__.e(288).then(__webpack_require__.bind(__webpack_require__,26288)).then((e=>e.default)))),Lme(6,(()=>{throw new Error("old style JPEG compression is not supported.")})),Lme(7,(()=>__webpack_require__.e(776).then(__webpack_require__.bind(__webpack_require__,42776)).then((e=>e.default)))),Lme([8,32946],(()=>Promise.all([__webpack_require__.e(580),__webpack_require__.e(792)]).then(__webpack_require__.bind(__webpack_require__,53792)).then((e=>e.default)))),Lme(32773,(()=>__webpack_require__.e(824).then(__webpack_require__.bind(__webpack_require__,65824)).then((e=>e.default)))),Lme(34887,(()=>Promise.all([__webpack_require__.e(580),__webpack_require__.e(516)]).then(__webpack_require__.bind(__webpack_require__,43516)).then((async e=>(await e.zstd.init(),e))).then((e=>e.default)))),Lme(50001,(()=>__webpack_require__.e(732).then(__webpack_require__.bind(__webpack_require__,10732)).then((e=>e.default))));const Fme="undefined"!==typeof navigator&&navigator.hardwareConcurrency||2;const zme=class{constructor(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Fme,t=arguments.length>1?arguments[1]:void 0;this.workers=null,this._awaitingDecoder=null,this.size=e,this.messageId=0,e&&(this._awaitingDecoder=t?Promise.resolve(t):new Promise((e=>{__webpack_require__.e(56).then(__webpack_require__.bind(__webpack_require__,14056)).then((t=>{e(t.create)}))})),this._awaitingDecoder.then((t=>{this._awaitingDecoder=null,this.workers=[];for(let n=0;n<e;n++)this.workers.push({worker:t(),idle:!0})})))}async decode(e,t){return this._awaitingDecoder&&await this._awaitingDecoder,0===this.size?Vme(e).then((n=>n.decode(e,t))):new Promise((n=>{const r=this.workers.find((e=>e.idle))||this.workers[Math.floor(Math.random()*this.size)];r.idle=!1;const i=this.messageId++,o=e=>{e.data.id===i&&(r.idle=!0,n(e.data.decoded),r.worker.removeEventListener("message",o))};r.worker.addEventListener("message",o),r.worker.postMessage({fileDirectory:e,buffer:t,id:i},[t])}))}destroy(){this.workers&&(this.workers.forEach((e=>{e.worker.terminate()})),this.workers=null)}};function Bme(e){return function(t){for(var n=arguments.length,r=new Array(n>1?n-1:0),i=1;i<n;i++)r[i-1]=arguments[i];return Wme(e,t,r)}}function Ume(e,t){return Bme(Yme(e,t).get)}const{apply:Wme,construct:Hme,defineProperty:qme,get:Xme,getOwnPropertyDescriptor:Yme,getPrototypeOf:Kme,has:Zme,ownKeys:$me,set:Jme,setPrototypeOf:Qme}=Reflect,{MAX_SAFE_INTEGER:eye,isFinite:tye,isNaN:nye}=Number,{iterator:rye,species:iye,toStringTag:oye,for:sye}=Symbol,aye=Object,{create:lye,defineProperty:cye,freeze:uye,is:dye}=aye,hye=aye.prototype,pye=(hye.__lookupGetter__&&Bme(hye.__lookupGetter__),aye.hasOwn||Bme(hye.hasOwnProperty)),fye=Array,gye=(fye.isArray,fye.prototype),mye=(Bme(gye.join),Bme(gye.push),Bme(gye.toLocaleString),gye[rye]),yye=Bme(mye),vye=(Math.trunc,ArrayBuffer),_ye=(vye.isView,vye.prototype),bye=(Bme(_ye.slice),Ume(_ye,"byteLength"),"undefined"!==typeof SharedArrayBuffer?SharedArrayBuffer:null),xye=(bye&&Ume(bye.prototype,"byteLength"),Kme(Uint8Array)),Sye=(xye.from,xye.prototype),wye=(Sye[rye],Bme(Sye.keys),Bme(Sye.values),Bme(Sye.entries),Bme(Sye.set),Bme(Sye.reverse),Bme(Sye.fill),Bme(Sye.copyWithin),Bme(Sye.sort),Bme(Sye.slice),Bme(Sye.subarray),Ume(Sye,"buffer"),Ume(Sye,"byteOffset"),Ume(Sye,"length"),Ume(Sye,oye),Uint32Array),Eye=Float32Array,Pye=Kme([][rye]()),Cye=Bme(Pye.next),Aye=Bme(function*(){}().next),kye=Kme(Pye),jye=DataView.prototype,Iye=Bme(jye.getUint16),Gye=(Bme(jye.setUint16),TypeError),Tye=WeakSet.prototype,Mye=(Bme(Tye.add),Bme(Tye.has),WeakMap),Oye=Mye.prototype,Rye=Bme(Oye.get),Dye=(Bme(Oye.has),Bme(Oye.set)),Nye=new Mye,Lye=lye(null,{next:{value:function(){const e=Rye(Nye,this);return Cye(e)}},[rye]:{value:function(){return this}}});const Vye=new Mye,Fye=lye(kye,{next:{value:function(){const e=Rye(Vye,this);return Aye(e)},writable:!0,configurable:!0}});for(const Set of $me(Pye))"next"!==Set&&cye(Fye,Set,Yme(Pye,Set));const zye=new vye(4),Bye=new Eye(zye),Uye=new wye(zye),Wye=new wye(512),Hye=new wye(512);for(let Set=0;Set<256;++Set){const e=Set-127;e<-27?(Wye[Set]=0,Wye[256|Set]=32768,Hye[Set]=24,Hye[256|Set]=24):e<-14?(Wye[Set]=1024>>-e-14,Wye[256|Set]=1024>>-e-14|32768,Hye[Set]=-e-1,Hye[256|Set]=-e-1):e<=15?(Wye[Set]=e+15<<10,Wye[256|Set]=e+15<<10|32768,Hye[Set]=13,Hye[256|Set]=13):e<128?(Wye[Set]=31744,Wye[256|Set]=64512,Hye[Set]=24,Hye[256|Set]=24):(Wye[Set]=31744,Wye[256|Set]=64512,Hye[Set]=13,Hye[256|Set]=13)}const qye=new wye(2048),Xye=new wye(64),Yye=new wye(64);for(let Set=1;Set<1024;++Set){let e=Set<<13,t=0;for(;0===(8388608&e);)e<<=1,t-=8388608;e&=-8388609,t+=947912704,qye[Set]=e|t}for(let Set=1024;Set<2048;++Set)qye[Set]=939524096+(Set-1024<<13);for(let Set=1;Set<31;++Set)Xye[Set]=Set<<23;Xye[31]=1199570944,Xye[32]=2147483648;for(let Set=33;Set<63;++Set)Xye[Set]=2147483648+(Set-32<<23);Xye[63]=3347054592;for(let Set=1;Set<64;++Set)32!==Set&&(Yye[Set]=1024);function Kye(e,t){for(var n=arguments.length,r=new Array(n>2?n-2:0),i=2;i<n;i++)r[i-2]=arguments[i];return function(e){const t=e>>10;return Uye[0]=qye[Yye[t]+(1023&e)]+Xye[t],Bye[0]}(Iye(e,t,...function(e){if(e[rye]===mye)return e;const t=lye(Lye);return Dye(Nye,t,yye(e)),t}(r)))}var Zye=__webpack_require__(36672),$ye=__webpack_require__(24520);function Jye(e,t,n){let r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:1;return new(Object.getPrototypeOf(e).constructor)(t*n*r)}function Qye(e,t,n){return(1-n)*e+n*t}function eve(e,t,n,r,i){let o=arguments.length>5&&void 0!==arguments[5]?arguments[5]:"nearest";switch(o.toLowerCase()){case"nearest":return function(e,t,n,r,i){const o=t/r,s=n/i;return e.map((e=>{const a=Jye(e,r,i);for(let l=0;l<i;++l){const i=Math.min(Math.round(s*l),n-1);for(let n=0;n<r;++n){const s=Math.min(Math.round(o*n),t-1),c=e[i*t+s];a[l*r+n]=c}}return a}))}(e,t,n,r,i);case"bilinear":case"linear":return function(e,t,n,r,i){const o=t/r,s=n/i;return e.map((e=>{const a=Jye(e,r,i);for(let l=0;l<i;++l){const i=s*l,c=Math.floor(i),u=Math.min(Math.ceil(i),n-1);for(let n=0;n<r;++n){const s=o*n,d=s%1,h=Math.floor(s),p=Math.min(Math.ceil(s),t-1),f=e[c*t+h],g=e[c*t+p],m=e[u*t+h],y=e[u*t+p],v=Qye(Qye(f,g,d),Qye(m,y,d),i%1);a[l*r+n]=v}}return a}))}(e,t,n,r,i);default:throw new Error("Unsupported resampling method: '".concat(o,"'"))}}function tve(e,t,n,r,i,o){let s=arguments.length>6&&void 0!==arguments[6]?arguments[6]:"nearest";switch(s.toLowerCase()){case"nearest":return function(e,t,n,r,i,o){const s=t/r,a=n/i,l=Jye(e,r,i,o);for(let c=0;c<i;++c){const i=Math.min(Math.round(a*c),n-1);for(let n=0;n<r;++n){const a=Math.min(Math.round(s*n),t-1);for(let s=0;s<o;++s){const u=e[i*t*o+a*o+s];l[c*r*o+n*o+s]=u}}}return l}(e,t,n,r,i,o);case"bilinear":case"linear":return function(e,t,n,r,i,o){const s=t/r,a=n/i,l=Jye(e,r,i,o);for(let c=0;c<i;++c){const i=a*c,u=Math.floor(i),d=Math.min(Math.ceil(i),n-1);for(let n=0;n<r;++n){const a=s*n,h=a%1,p=Math.floor(a),f=Math.min(Math.ceil(a),t-1);for(let s=0;s<o;++s){const a=e[u*t*o+p*o+s],g=e[u*t*o+f*o+s],m=e[d*t*o+p*o+s],y=e[d*t*o+f*o+s],v=Qye(Qye(a,g,h),Qye(m,y,h),i%1);l[c*r*o+n*o+s]=v}}}return l}(e,t,n,r,i,o);default:throw new Error("Unsupported resampling method: '".concat(s,"'"))}}function nve(e,t,n){let r=0;for(let i=t;i<n;++i)r+=e[i];return r}function rve(e,t,n){switch(e){case 1:if(t<=8)return new Uint8Array(n);if(t<=16)return new Uint16Array(n);if(t<=32)return new Uint32Array(n);break;case 2:if(8===t)return new Int8Array(n);if(16===t)return new Int16Array(n);if(32===t)return new Int32Array(n);break;case 3:switch(t){case 16:case 32:return new Float32Array(n);case 64:return new Float64Array(n)}}throw Error("Unsupported data format/bitsPerSample")}const ive=class{constructor(e,t,n,r,i,o){this.fileDirectory=e,this.geoKeys=t,this.dataView=n,this.littleEndian=r,this.tiles=i?{}:null,this.isTiled=!e.StripOffsets;const s=e.PlanarConfiguration;if(this.planarConfiguration="undefined"===typeof s?1:s,1!==this.planarConfiguration&&2!==this.planarConfiguration)throw new Error("Invalid planar configuration.");this.source=o}getFileDirectory(){return this.fileDirectory}getGeoKeys(){return this.geoKeys}getWidth(){return this.fileDirectory.ImageWidth}getHeight(){return this.fileDirectory.ImageLength}getSamplesPerPixel(){return"undefined"!==typeof this.fileDirectory.SamplesPerPixel?this.fileDirectory.SamplesPerPixel:1}getTileWidth(){return this.isTiled?this.fileDirectory.TileWidth:this.getWidth()}getTileHeight(){return this.isTiled?this.fileDirectory.TileLength:"undefined"!==typeof this.fileDirectory.RowsPerStrip?Math.min(this.fileDirectory.RowsPerStrip,this.getHeight()):this.getHeight()}getBlockWidth(){return this.getTileWidth()}getBlockHeight(e){return this.isTiled||(e+1)*this.getTileHeight()<=this.getHeight()?this.getTileHeight():this.getHeight()-e*this.getTileHeight()}getBytesPerPixel(){let e=0;for(let t=0;t<this.fileDirectory.BitsPerSample.length;++t)e+=this.getSampleByteSize(t);return e}getSampleByteSize(e){if(e>=this.fileDirectory.BitsPerSample.length)throw new RangeError("Sample index ".concat(e," is out of range."));return Math.ceil(this.fileDirectory.BitsPerSample[e]/8)}getReaderForSample(e){const t=this.fileDirectory.SampleFormat?this.fileDirectory.SampleFormat[e]:1,n=this.fileDirectory.BitsPerSample[e];switch(t){case 1:if(n<=8)return DataView.prototype.getUint8;if(n<=16)return DataView.prototype.getUint16;if(n<=32)return DataView.prototype.getUint32;break;case 2:if(n<=8)return DataView.prototype.getInt8;if(n<=16)return DataView.prototype.getInt16;if(n<=32)return DataView.prototype.getInt32;break;case 3:switch(n){case 16:return function(e,t){return Kye(this,e,t)};case 32:return DataView.prototype.getFloat32;case 64:return DataView.prototype.getFloat64}}throw Error("Unsupported data format/bitsPerSample")}getSampleFormat(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;return this.fileDirectory.SampleFormat?this.fileDirectory.SampleFormat[e]:1}getBitsPerSample(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;return this.fileDirectory.BitsPerSample[e]}getArrayForSample(e,t){return rve(this.getSampleFormat(e),this.getBitsPerSample(e),t)}async getTileOrStrip(e,t,n,r,i){const o=Math.ceil(this.getWidth()/this.getTileWidth()),s=Math.ceil(this.getHeight()/this.getTileHeight());let a;const{tiles:l}=this;let c,u;1===this.planarConfiguration?a=t*o+e:2===this.planarConfiguration&&(a=n*o*s+t*o+e),this.isTiled?(c=this.fileDirectory.TileOffsets[a],u=this.fileDirectory.TileByteCounts[a]):(c=this.fileDirectory.StripOffsets[a],u=this.fileDirectory.StripByteCounts[a]);const d=(await this.source.fetch([{offset:c,length:u}],i))[0];let h;return null!==l&&l[a]?h=l[a]:(h=(async()=>{let e=await r.decode(this.fileDirectory,d);const n=this.getSampleFormat(),i=this.getBitsPerSample();return function(e,t){return(1!==e&&2!==e||!(t<=32)||t%8!==0)&&(3!==e||16!==t&&32!==t&&64!==t)}(n,i)&&(e=function(e,t,n,r,i,o,s){const a=new DataView(e),l=2===n?1:r,c=rve(t,i,2===n?s*o:s*o*r),u=parseInt("1".repeat(i),2);if(1===t){let e;e=1===n?r*i:i;let t=o*e;0!==(7&t)&&(t=t+7&-8);for(let n=0;n<s;++n){const e=n*t;for(let t=0;t<o;++t){const r=e+t*l*i;for(let e=0;e<l;++e){const s=r+e*i,d=(n*o+t)*l+e,h=Math.floor(s/8),p=s%8;if(p+i<=8)c[d]=a.getUint8(h)>>8-i-p&u;else if(p+i<=16)c[d]=a.getUint16(h)>>16-i-p&u;else if(p+i<=24){const e=a.getUint16(h)<<8|a.getUint8(h+2);c[d]=e>>24-i-p&u}else c[d]=a.getUint32(h)>>32-i-p&u}}}}return c.buffer}(e,n,this.planarConfiguration,this.getSamplesPerPixel(),i,this.getTileWidth(),this.getBlockHeight(t))),e})(),null!==l&&(l[a]=h)),{x:e,y:t,sample:n,data:await h}}async _readRaster(e,t,n,r,i,o,s,a,l){const c=this.getTileWidth(),u=this.getTileHeight(),d=this.getWidth(),h=this.getHeight(),p=Math.max(Math.floor(e[0]/c),0),f=Math.min(Math.ceil(e[2]/c),Math.ceil(d/c)),g=Math.max(Math.floor(e[1]/u),0),m=Math.min(Math.ceil(e[3]/u),Math.ceil(h/u)),y=e[2]-e[0];let v=this.getBytesPerPixel();const _=[],b=[];for(let w=0;w<t.length;++w)1===this.planarConfiguration?_.push(nve(this.fileDirectory.BitsPerSample,0,t[w])/8):_.push(0),b.push(this.getReaderForSample(t[w]));const x=[],{littleEndian:S}=this;for(let w=g;w<m;++w)for(let o=p;o<f;++o){let s;1===this.planarConfiguration&&(s=this.getTileOrStrip(o,w,0,i,l));for(let a=0;a<t.length;++a){const p=a,f=t[a];2===this.planarConfiguration&&(v=this.getSampleByteSize(f),s=this.getTileOrStrip(o,w,f,i,l));const g=s.then((i=>{const o=i.data,s=new DataView(o),a=this.getBlockHeight(i.y),l=i.y*u,f=i.x*c,g=l+a,m=(i.x+1)*c,x=b[p],w=Math.min(a,a-(g-e[3]),h-l),E=Math.min(c,c-(m-e[2]),d-f);for(let u=Math.max(0,e[1]-l);u<w;++u)for(let i=Math.max(0,e[0]-f);i<E;++i){const o=(u*c+i)*v,a=x.call(s,o+_[p],S);let d;r?(d=(u+l-e[1])*y*t.length+(i+f-e[0])*t.length+p,n[d]=a):(d=(u+l-e[1])*y+i+f-e[0],n[p][d]=a)}}));x.push(g)}}if(await Promise.all(x),o&&e[2]-e[0]!==o||s&&e[3]-e[1]!==s){let i;return i=r?tve(n,e[2]-e[0],e[3]-e[1],o,s,t.length,a):eve(n,e[2]-e[0],e[3]-e[1],o,s,a),i.width=o,i.height=s,i}return n.width=o||e[2]-e[0],n.height=s||e[3]-e[1],n}async readRasters(){let{window:e,samples:t=[],interleave:n,pool:r=null,width:i,height:o,resampleMethod:s,fillValue:a,signal:l}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const c=e||[0,0,this.getWidth(),this.getHeight()];if(c[0]>c[2]||c[1]>c[3])throw new Error("Invalid subsets");const u=(c[2]-c[0])*(c[3]-c[1]),d=this.getSamplesPerPixel();if(t&&t.length){for(let f=0;f<t.length;++f)if(t[f]>=d)return Promise.reject(new RangeError("Invalid sample index '".concat(t[f],"'.")))}else for(let f=0;f<d;++f)t.push(f);let h;if(n){h=rve(this.fileDirectory.SampleFormat?Math.max.apply(null,this.fileDirectory.SampleFormat):1,Math.max.apply(null,this.fileDirectory.BitsPerSample),u*t.length),a&&h.fill(a)}else{h=[];for(let e=0;e<t.length;++e){const n=this.getArrayForSample(t[e],u);Array.isArray(a)&&e<a.length?n.fill(a[e]):a&&!Array.isArray(a)&&n.fill(a),h.push(n)}}const p=r||await Vme(this.fileDirectory);return await this._readRaster(c,t,h,n,p,i,o,s,l)}async readRGB(){let{window:e,interleave:t=!0,pool:n=null,width:r,height:i,resampleMethod:o,enableAlpha:s=!1,signal:a}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const l=e||[0,0,this.getWidth(),this.getHeight()];if(l[0]>l[2]||l[1]>l[3])throw new Error("Invalid subsets");const c=this.fileDirectory.PhotometricInterpretation;if(c===Dme.iI.RGB){let l=[0,1,2];if(this.fileDirectory.ExtraSamples!==Dme.v1.Unspecified&&s){l=[];for(let e=0;e<this.fileDirectory.BitsPerSample.length;e+=1)l.push(e)}return this.readRasters({window:e,interleave:t,samples:l,pool:n,width:r,height:i,resampleMethod:o,signal:a})}let u;switch(c){case Dme.iI.WhiteIsZero:case Dme.iI.BlackIsZero:case Dme.iI.Palette:u=[0];break;case Dme.iI.CMYK:u=[0,1,2,3];break;case Dme.iI.YCbCr:case Dme.iI.CIELab:u=[0,1,2];break;default:throw new Error("Invalid or unsupported photometric interpretation.")}const d={window:l,interleave:!0,samples:u,pool:n,width:r,height:i,resampleMethod:o,signal:a},{fileDirectory:h}=this,p=await this.readRasters(d),f=2**this.fileDirectory.BitsPerSample[0];let g;switch(c){case Dme.iI.WhiteIsZero:g=function(e,t){const{width:n,height:r}=e,i=new Uint8Array(n*r*3);let o;for(let s=0,a=0;s<e.length;++s,a+=3)o=256-e[s]/t*256,i[a]=o,i[a+1]=o,i[a+2]=o;return i}(p,f);break;case Dme.iI.BlackIsZero:g=function(e,t){const{width:n,height:r}=e,i=new Uint8Array(n*r*3);let o;for(let s=0,a=0;s<e.length;++s,a+=3)o=e[s]/t*256,i[a]=o,i[a+1]=o,i[a+2]=o;return i}(p,f);break;case Dme.iI.Palette:g=function(e,t){const{width:n,height:r}=e,i=new Uint8Array(n*r*3),o=t.length/3,s=t.length/3*2;for(let a=0,l=0;a<e.length;++a,l+=3){const n=e[a];i[l]=t[n]/65536*256,i[l+1]=t[n+o]/65536*256,i[l+2]=t[n+s]/65536*256}return i}(p,h.ColorMap);break;case Dme.iI.CMYK:g=function(e){const{width:t,height:n}=e,r=new Uint8Array(t*n*3);for(let i=0,o=0;i<e.length;i+=4,o+=3){const t=e[i],n=e[i+1],s=e[i+2],a=e[i+3];r[o]=(255-t)/256*255*((255-a)/256),r[o+1]=(255-n)/256*255*((255-a)/256),r[o+2]=(255-s)/256*255*((255-a)/256)}return r}(p);break;case Dme.iI.YCbCr:g=function(e){const{width:t,height:n}=e,r=new Uint8ClampedArray(t*n*3);for(let i=0,o=0;i<e.length;i+=3,o+=3){const t=e[i],n=e[i+1],s=e[i+2];r[o]=t+1.402*(s-128),r[o+1]=t-.34414*(n-128)-.71414*(s-128),r[o+2]=t+1.772*(n-128)}return r}(p);break;case Dme.iI.CIELab:g=function(e){const{width:t,height:n}=e,r=new Uint8Array(t*n*3);for(let i=0,o=0;i<e.length;i+=3,o+=3){let t,n,s,a=(e[i+0]+16)/116,l=(e[i+1]<<24>>24)/500+a,c=a-(e[i+2]<<24>>24)/200;l=.95047*(l*l*l>.008856?l*l*l:(l-16/116)/7.787),a=1*(a*a*a>.008856?a*a*a:(a-16/116)/7.787),c=1.08883*(c*c*c>.008856?c*c*c:(c-16/116)/7.787),t=3.2406*l+-1.5372*a+-.4986*c,n=-.9689*l+1.8758*a+.0415*c,s=.0557*l+-.204*a+1.057*c,t=t>.0031308?1.055*t**(1/2.4)-.055:12.92*t,n=n>.0031308?1.055*n**(1/2.4)-.055:12.92*n,s=s>.0031308?1.055*s**(1/2.4)-.055:12.92*s,r[o]=255*Math.max(0,Math.min(1,t)),r[o+1]=255*Math.max(0,Math.min(1,n)),r[o+2]=255*Math.max(0,Math.min(1,s))}return r}(p);break;default:throw new Error("Unsupported photometric interpretation.")}if(!t){const e=new Uint8Array(g.length/3),t=new Uint8Array(g.length/3),n=new Uint8Array(g.length/3);for(let r=0,i=0;r<g.length;r+=3,++i)e[i]=g[r],t[i]=g[r+1],n[i]=g[r+2];g=[e,t,n]}return g.width=p.width,g.height=p.height,g}getTiePoints(){if(!this.fileDirectory.ModelTiepoint)return[];const e=[];for(let t=0;t<this.fileDirectory.ModelTiepoint.length;t+=6)e.push({i:this.fileDirectory.ModelTiepoint[t],j:this.fileDirectory.ModelTiepoint[t+1],k:this.fileDirectory.ModelTiepoint[t+2],x:this.fileDirectory.ModelTiepoint[t+3],y:this.fileDirectory.ModelTiepoint[t+4],z:this.fileDirectory.ModelTiepoint[t+5]});return e}getGDALMetadata(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;const t={};if(!this.fileDirectory.GDAL_METADATA)return null;const n=this.fileDirectory.GDAL_METADATA;let r=$ye(n,"Item");r=null===e?r.filter((e=>void 0===Zye(e,"sample"))):r.filter((t=>Number(Zye(t,"sample"))===e));for(let i=0;i<r.length;++i){const e=r[i];t[Zye(e,"name")]=e.inner}return t}getGDALNoData(){if(!this.fileDirectory.GDAL_NODATA)return null;const e=this.fileDirectory.GDAL_NODATA;return Number(e.substring(0,e.length-1))}getOrigin(){const e=this.fileDirectory.ModelTiepoint,t=this.fileDirectory.ModelTransformation;if(e&&6===e.length)return[e[3],e[4],e[5]];if(t)return[t[3],t[7],t[11]];throw new Error("The image does not have an affine transformation.")}getResolution(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;const t=this.fileDirectory.ModelPixelScale,n=this.fileDirectory.ModelTransformation;if(t)return[t[0],-t[1],t[2]];if(n)return 0===n[1]&&0===n[4]?[n[0],-n[5],n[10]]:[Math.sqrt(n[0]*n[0]+n[4]*n[4]),-Math.sqrt(n[1]*n[1]+n[5]*n[5]),n[10]];if(e){const[t,n,r]=e.getResolution();return[t*e.getWidth()/this.getWidth(),n*e.getHeight()/this.getHeight(),r*e.getWidth()/this.getWidth()]}throw new Error("The image does not have an affine transformation.")}pixelIsArea(){return 1===this.geoKeys.GTRasterTypeGeoKey}getBoundingBox(){let e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];const t=this.getHeight(),n=this.getWidth();if(this.fileDirectory.ModelTransformation&&!e){const[e,r,i,o,s,a,l,c]=this.fileDirectory.ModelTransformation,u=[[0,0],[0,t],[n,0],[n,t]].map((t=>{let[n,i]=t;return[o+e*n+r*i,c+s*n+a*i]})),d=u.map((e=>e[0])),h=u.map((e=>e[1]));return[Math.min(...d),Math.min(...h),Math.max(...d),Math.max(...h)]}{const e=this.getOrigin(),r=this.getResolution(),i=e[0],o=e[1],s=i+r[0]*n,a=o+r[1]*t;return[Math.min(i,s),Math.min(o,a),Math.max(i,s),Math.max(o,a)]}}};class ove{constructor(e){this._dataView=new DataView(e)}get buffer(){return this._dataView.buffer}getUint64(e,t){const n=this.getUint32(e,t),r=this.getUint32(e+4,t);let i;if(t){if(i=n+2**32*r,!Number.isSafeInteger(i))throw new Error("".concat(i," exceeds MAX_SAFE_INTEGER. ")+"Precision may be lost. Please report if you get this message to https://github.com/geotiffjs/geotiff.js/issues");return i}if(i=2**32*n+r,!Number.isSafeInteger(i))throw new Error("".concat(i," exceeds MAX_SAFE_INTEGER. ")+"Precision may be lost. Please report if you get this message to https://github.com/geotiffjs/geotiff.js/issues");return i}getInt64(e,t){let n=0;const r=(128&this._dataView.getUint8(e+(t?7:0)))>0;let i=!0;for(let o=0;o<8;o++){let s=this._dataView.getUint8(e+(t?o:7-o));r&&(i?0!==s&&(s=255&~(s-1),i=!1):s=255&~s),n+=s*256**o}return r&&(n=-n),n}getUint8(e,t){return this._dataView.getUint8(e,t)}getInt8(e,t){return this._dataView.getInt8(e,t)}getUint16(e,t){return this._dataView.getUint16(e,t)}getInt16(e,t){return this._dataView.getInt16(e,t)}getUint32(e,t){return this._dataView.getUint32(e,t)}getInt32(e,t){return this._dataView.getInt32(e,t)}getFloat16(e,t){return Kye(this._dataView,e,t)}getFloat32(e,t){return this._dataView.getFloat32(e,t)}getFloat64(e,t){return this._dataView.getFloat64(e,t)}}class sve{constructor(e,t,n,r){this._dataView=new DataView(e),this._sliceOffset=t,this._littleEndian=n,this._bigTiff=r}get sliceOffset(){return this._sliceOffset}get sliceTop(){return this._sliceOffset+this.buffer.byteLength}get littleEndian(){return this._littleEndian}get bigTiff(){return this._bigTiff}get buffer(){return this._dataView.buffer}covers(e,t){return this.sliceOffset<=e&&this.sliceTop>=e+t}readUint8(e){return this._dataView.getUint8(e-this._sliceOffset,this._littleEndian)}readInt8(e){return this._dataView.getInt8(e-this._sliceOffset,this._littleEndian)}readUint16(e){return this._dataView.getUint16(e-this._sliceOffset,this._littleEndian)}readInt16(e){return this._dataView.getInt16(e-this._sliceOffset,this._littleEndian)}readUint32(e){return this._dataView.getUint32(e-this._sliceOffset,this._littleEndian)}readInt32(e){return this._dataView.getInt32(e-this._sliceOffset,this._littleEndian)}readFloat32(e){return this._dataView.getFloat32(e-this._sliceOffset,this._littleEndian)}readFloat64(e){return this._dataView.getFloat64(e-this._sliceOffset,this._littleEndian)}readUint64(e){const t=this.readUint32(e),n=this.readUint32(e+4);let r;if(this._littleEndian){if(r=t+2**32*n,!Number.isSafeInteger(r))throw new Error("".concat(r," exceeds MAX_SAFE_INTEGER. ")+"Precision may be lost. Please report if you get this message to https://github.com/geotiffjs/geotiff.js/issues");return r}if(r=2**32*t+n,!Number.isSafeInteger(r))throw new Error("".concat(r," exceeds MAX_SAFE_INTEGER. ")+"Precision may be lost. Please report if you get this message to https://github.com/geotiffjs/geotiff.js/issues");return r}readInt64(e){let t=0;const n=(128&this._dataView.getUint8(e+(this._littleEndian?7:0)))>0;let r=!0;for(let i=0;i<8;i++){let o=this._dataView.getUint8(e+(this._littleEndian?i:7-i));n&&(r?0!==o&&(o=255&~(o-1),r=!1):o=255&~o),t+=o*256**i}return n&&(t=-t),t}readOffset(e){return this._bigTiff?this.readUint64(e):this.readUint32(e)}}const ave="\r\n\r\n";function lve(e){if("undefined"!==typeof Object.fromEntries)return Object.fromEntries(e);const t={};for(const[n,r]of e)t[n.toLowerCase()]=r;return t}function cve(e){const t=e.split("\r\n").map((e=>{const t=e.split(":").map((e=>e.trim()));return t[0]=t[0].toLowerCase(),t}));return lve(t)}function uve(e){let t,n,r;return e&&([,t,n,r]=e.match(/bytes (\d+)-(\d+)\/(\d+)/),t=parseInt(t,10),n=parseInt(n,10),r=parseInt(r,10)),{start:t,end:n,total:r}}class dve{async fetch(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:void 0;return Promise.all(e.map((e=>this.fetchSlice(e,t))))}async fetchSlice(e){throw new Error("fetching of slice ".concat(e," not possible, not implemented"))}get fileSize(){return null}async close(){}}class hve extends Map{constructor(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(super(),!(e.maxSize&&e.maxSize>0))throw new TypeError("`maxSize` must be a number greater than 0");if("number"===typeof e.maxAge&&0===e.maxAge)throw new TypeError("`maxAge` must be a number greater than 0");this.maxSize=e.maxSize,this.maxAge=e.maxAge||Number.POSITIVE_INFINITY,this.onEviction=e.onEviction,this.cache=new Map,this.oldCache=new Map,this._size=0}_emitEvictions(e){if("function"===typeof this.onEviction)for(const[t,n]of e)this.onEviction(t,n.value)}_deleteIfExpired(e,t){return"number"===typeof t.expiry&&t.expiry<=Date.now()&&("function"===typeof this.onEviction&&this.onEviction(e,t.value),this.delete(e))}_getOrDeleteIfExpired(e,t){if(!1===this._deleteIfExpired(e,t))return t.value}_getItemValue(e,t){return t.expiry?this._getOrDeleteIfExpired(e,t):t.value}_peek(e,t){const n=t.get(e);return this._getItemValue(e,n)}_set(e,t){this.cache.set(e,t),this._size++,this._size>=this.maxSize&&(this._size=0,this._emitEvictions(this.oldCache),this.oldCache=this.cache,this.cache=new Map)}_moveToRecent(e,t){this.oldCache.delete(e),this._set(e,t)}*_entriesAscending(){for(const e of this.oldCache){const[t,n]=e;if(!this.cache.has(t)){!1===this._deleteIfExpired(t,n)&&(yield e)}}for(const e of this.cache){const[t,n]=e;!1===this._deleteIfExpired(t,n)&&(yield e)}}get(e){if(this.cache.has(e)){const t=this.cache.get(e);return this._getItemValue(e,t)}if(this.oldCache.has(e)){const t=this.oldCache.get(e);if(!1===this._deleteIfExpired(e,t))return this._moveToRecent(e,t),t.value}}set(e,t){let{maxAge:n=this.maxAge}=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};const r="number"===typeof n&&n!==Number.POSITIVE_INFINITY?Date.now()+n:void 0;this.cache.has(e)?this.cache.set(e,{value:t,expiry:r}):this._set(e,{value:t,expiry:r})}has(e){return this.cache.has(e)?!this._deleteIfExpired(e,this.cache.get(e)):!!this.oldCache.has(e)&&!this._deleteIfExpired(e,this.oldCache.get(e))}peek(e){return this.cache.has(e)?this._peek(e,this.cache):this.oldCache.has(e)?this._peek(e,this.oldCache):void 0}delete(e){const t=this.cache.delete(e);return t&&this._size--,this.oldCache.delete(e)||t}clear(){this.cache.clear(),this.oldCache.clear(),this._size=0}resize(e){if(!(e&&e>0))throw new TypeError("`maxSize` must be a number greater than 0");const t=[...this._entriesAscending()],n=t.length-e;n<0?(this.cache=new Map(t),this.oldCache=new Map,this._size=t.length):(n>0&&this._emitEvictions(t.slice(0,n)),this.oldCache=new Map(t.slice(n)),this.cache=new Map,this._size=0),this.maxSize=e}*keys(){for(const[e]of this)yield e}*values(){for(const[,e]of this)yield e}*[Symbol.iterator](){for(const e of this.cache){const[t,n]=e;!1===this._deleteIfExpired(t,n)&&(yield[t,n.value])}for(const e of this.oldCache){const[t,n]=e;if(!this.cache.has(t)){!1===this._deleteIfExpired(t,n)&&(yield[t,n.value])}}}*entriesDescending(){let e=[...this.cache];for(let t=e.length-1;t>=0;--t){const n=e[t],[r,i]=n;!1===this._deleteIfExpired(r,i)&&(yield[r,i.value])}e=[...this.oldCache];for(let t=e.length-1;t>=0;--t){const n=e[t],[r,i]=n;if(!this.cache.has(r)){!1===this._deleteIfExpired(r,i)&&(yield[r,i.value])}}}*entriesAscending(){for(const[e,t]of this._entriesAscending())yield[e,t.value]}get size(){if(!this._size)return this.oldCache.size;let e=0;for(const t of this.oldCache.keys())this.cache.has(t)||e++;return Math.min(this._size+e,this.maxSize)}entries(){return this.entriesAscending()}forEach(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this;for(const[n,r]of this.entriesAscending())e.call(t,r,n,this)}get[Symbol.toStringTag](){return JSON.stringify([...this.entriesAscending()])}}class pve extends Error{constructor(e){super(e),Error.captureStackTrace&&Error.captureStackTrace(this,pve),this.name="AbortError"}}class fve extends Error{constructor(e,t){super(t),this.errors=e,this.message=t,this.name="AggregateError"}}const gve=fve;class mve{constructor(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;this.offset=e,this.length=t,this.data=n}get top(){return this.offset+this.length}}class yve{constructor(e,t,n){this.offset=e,this.length=t,this.blockIds=n}}class vve extends dve{constructor(e){let{blockSize:t=65536,cacheSize:n=100}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};super(),this.source=e,this.blockSize=t,this.blockCache=new hve({maxSize:n,onEviction:(e,t)=>{this.evictedBlocks.set(e,t)}}),this.evictedBlocks=new Map,this.blockRequests=new Map,this.blockIdsToFetch=new Set,this.abortedBlockIds=new Set}get fileSize(){return this.source.fileSize}async fetch(e,t){const n=[],r=[],i=[];this.evictedBlocks.clear();for(const{offset:d,length:h}of e){let e=d+h;const{fileSize:t}=this;null!==t&&(e=Math.min(e,t));for(let o=Math.floor(d/this.blockSize)*this.blockSize;o<e;o+=this.blockSize){const e=Math.floor(o/this.blockSize);this.blockCache.has(e)||this.blockRequests.has(e)||(this.blockIdsToFetch.add(e),r.push(e)),this.blockRequests.has(e)&&n.push(this.blockRequests.get(e)),i.push(e)}}await async function(e){return new Promise((t=>setTimeout(t,e)))}(),this.fetchBlocks(t);const o=[];for(const d of r)this.blockRequests.has(d)&&o.push(this.blockRequests.get(d));await Promise.allSettled(n),await Promise.allSettled(o);const s=[],a=i.filter((e=>this.abortedBlockIds.has(e)||!this.blockCache.has(e)));if(a.forEach((e=>this.blockIdsToFetch.add(e))),a.length>0&&t&&!t.aborted){this.fetchBlocks(null);for(const e of a){const t=this.blockRequests.get(e);if(!t)throw new Error("Block ".concat(e," is not in the block requests"));s.push(t)}await Promise.allSettled(s)}if(t&&t.aborted)throw new pve("Request was aborted");const l=i.map((e=>this.blockCache.get(e)||this.evictedBlocks.get(e))),c=l.filter((e=>!e));if(c.length)throw new gve(c,"Request failed");const u=new Map(function(e,t){const n=Array.isArray(e)?e:Array.from(e),r=Array.isArray(t)?t:Array.from(t);return n.map(((e,t)=>[e,r[t]]))}(i,l));return this.readSliceData(e,u)}fetchBlocks(e){if(this.blockIdsToFetch.size>0){const t=this.groupBlocks(this.blockIdsToFetch),n=this.source.fetch(t,e);for(let r=0;r<t.length;++r){const i=t[r];for(const t of i.blockIds)this.blockRequests.set(t,(async()=>{try{const e=(await n)[r],i=t*this.blockSize,o=i-e.offset,s=Math.min(o+this.blockSize,e.data.byteLength),a=e.data.slice(o,s),l=new mve(i,a.byteLength,a,t);this.blockCache.set(t,l),this.abortedBlockIds.delete(t)}catch(i){if("AbortError"!==i.name)throw i;i.signal=e,this.blockCache.delete(t),this.abortedBlockIds.add(t)}finally{this.blockRequests.delete(t)}})())}this.blockIdsToFetch.clear()}}groupBlocks(e){const t=Array.from(e).sort(((e,t)=>e-t));if(0===t.length)return[];let n=[],r=null;const i=[];for(const o of t)null===r||r+1===o?(n.push(o),r=o):(i.push(new yve(n[0]*this.blockSize,n.length*this.blockSize,n)),n=[o],r=o);return i.push(new yve(n[0]*this.blockSize,n.length*this.blockSize,n)),i}readSliceData(e,t){return e.map((e=>{let n=e.offset+e.length;null!==this.fileSize&&(n=Math.min(this.fileSize,n));const r=Math.floor(e.offset/this.blockSize),i=Math.floor(n/this.blockSize),o=new ArrayBuffer(e.length),s=new Uint8Array(o);for(let a=r;a<=i;++a){const r=t.get(a),i=r.offset-e.offset;let o,l=0,c=0;i<0?l=-i:i>0&&(c=i),o=r.top-n<0?r.length-l:n-r.offset-l;const u=new Uint8Array(r.data,l,o);s.set(u,c)}return o}))}}class _ve{get ok(){return this.status>=200&&this.status<=299}get status(){throw new Error("not implemented")}getHeader(e){throw new Error("not implemented")}async getData(){throw new Error("not implemented")}}class bve{constructor(e){this.url=e}async request(){let{headers:e,signal:t}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};throw new Error("request is not implemented")}}class xve extends _ve{constructor(e){super(),this.response=e}get status(){return this.response.status}getHeader(e){return this.response.headers.get(e)}async getData(){return this.response.arrayBuffer?await this.response.arrayBuffer():(await this.response.buffer()).buffer}}class Sve extends bve{constructor(e,t){super(e),this.credentials=t}async request(){let{headers:e,signal:t}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const n=await fetch(this.url,{headers:e,credentials:this.credentials,signal:t});return new xve(n)}}class wve extends _ve{constructor(e,t){super(),this.xhr=e,this.data=t}get status(){return this.xhr.status}getHeader(e){return this.xhr.getResponseHeader(e)}async getData(){return this.data}}class Eve extends bve{constructRequest(e,t){return new Promise(((n,r)=>{const i=new XMLHttpRequest;i.open("GET",this.url),i.responseType="arraybuffer";for(const[t,o]of Object.entries(e))i.setRequestHeader(t,o);i.onload=()=>{const e=i.response;n(new wve(i,e))},i.onerror=r,i.onabort=()=>r(new pve("Request aborted")),i.send(),t&&(t.aborted&&i.abort(),t.addEventListener("abort",(()=>i.abort())))}))}async request(){let{headers:e,signal:t}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return await this.constructRequest(e,t)}}var Pve=__webpack_require__(11392),Cve=__webpack_require__(20728),Ave=__webpack_require__(31192);class kve extends _ve{constructor(e,t){super(),this.response=e,this.dataPromise=t}get status(){return this.response.statusCode}getHeader(e){return this.response.headers[e]}async getData(){return await this.dataPromise}}class jve extends bve{constructor(e){super(e),this.parsedUrl=Ave.parse(this.url),this.httpApi="http:"===this.parsedUrl.protocol?Pve:Cve}constructRequest(e,t){return new Promise(((n,r)=>{const i=this.httpApi.get({...this.parsedUrl,headers:e},(e=>{const t=new Promise((t=>{const n=[];e.on("data",(e=>{n.push(e)})),e.on("end",(()=>{const e=Buffer.concat(n).buffer;t(e)})),e.on("error",r)}));n(new kve(e,t))}));i.on("error",r),t&&(t.aborted&&i.destroy(new pve("Request aborted")),t.addEventListener("abort",(()=>i.destroy(new pve("Request aborted")))))}))}async request(){let{headers:e,signal:t}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return await this.constructRequest(e,t)}}class Ive extends dve{constructor(e,t,n,r){super(),this.client=e,this.headers=t,this.maxRanges=n,this.allowFullFile=r,this._fileSize=null}async fetch(e,t){return this.maxRanges>=e.length?this.fetchSlices(e,t):(this.maxRanges>0&&e.length,Promise.all(e.map((e=>this.fetchSlice(e,t)))))}async fetchSlices(e,t){const n=await this.client.request({headers:{...this.headers,Range:"bytes=".concat(e.map((e=>{let{offset:t,length:n}=e;return"".concat(t,"-").concat(t+n)})).join(","))},signal:t});if(n.ok){if(206===n.status){const{type:r,params:i}=function(e){const[t,...n]=e.split(";").map((e=>e.trim()));return{type:t,params:lve(n.map((e=>e.split("="))))}}(n.getHeader("content-type"));if("multipart/byteranges"===r){const e=function(e,t){let n=null;const r=new TextDecoder("ascii"),i=[],o="--".concat(t),s="".concat(o,"--");for(let a=0;a<10;++a)r.decode(new Uint8Array(e,a,o.length))===o&&(n=a);if(null===n)throw new Error("Could not find initial boundary");for(;n<e.byteLength;){const t=r.decode(new Uint8Array(e,n,Math.min(o.length+1024,e.byteLength-n)));if(0===t.length||t.startsWith(s))break;if(!t.startsWith(o))throw new Error("Part does not start with boundary");const a=t.substr(o.length+2);if(0===a.length)break;const l=a.indexOf(ave),c=cve(a.substr(0,l)),{start:u,end:d,total:h}=uve(c["content-range"]),p=n+o.length+l+4,f=parseInt(d,10)+1-parseInt(u,10);i.push({headers:c,data:e.slice(p,p+f),offset:u,length:f,fileSize:h}),n=p+f+4}return i}(await n.getData(),i.boundary);return this._fileSize=e[0].fileSize||null,e}const o=await n.getData(),{start:s,end:a,total:l}=uve(n.getHeader("content-range"));this._fileSize=l||null;const c=[{data:o,offset:s,length:a-s}];if(e.length>1){const n=await Promise.all(e.slice(1).map((e=>this.fetchSlice(e,t))));return c.concat(n)}return c}{if(!this.allowFullFile)throw new Error("Server responded with full file");const e=await n.getData();return this._fileSize=e.byteLength,[{data:e,offset:0,length:e.byteLength}]}}throw new Error("Error fetching data.")}async fetchSlice(e,t){const{offset:n,length:r}=e,i=await this.client.request({headers:{...this.headers,Range:"bytes=".concat(n,"-").concat(n+r)},signal:t});if(i.ok){if(206===i.status){const e=await i.getData(),{total:t}=uve(i.getHeader("content-range"));return this._fileSize=t||null,{data:e,offset:n,length:r}}{if(!this.allowFullFile)throw new Error("Server responded with full file");const e=await i.getData();return this._fileSize=e.byteLength,{data:e,offset:0,length:e.byteLength}}}throw new Error("Error fetching data.")}get fileSize(){return this._fileSize}}function Gve(e,t){let{blockSize:n,cacheSize:r}=t;return null===n?e:new vve(e,{blockSize:n,cacheSize:r})}function Tve(e){let{forceXHR:t=!1,...n}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return"function"!==typeof fetch||t?"undefined"!==typeof XMLHttpRequest?function(e){let{headers:t={},maxRanges:n=0,allowFullFile:r=!1,...i}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const o=new Eve(e);return Gve(new Ive(o,t,n,r),i)}(e,n):function(e){let{headers:t={},maxRanges:n=0,allowFullFile:r=!1,...i}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const o=new jve(e);return Gve(new Ive(o,t,n,r),i)}(e,n):function(e){let{headers:t={},credentials:n,maxRanges:r=0,allowFullFile:i=!1,...o}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const s=new Sve(e,n);return Gve(new Ive(s,t,r,i),o)}(e,n)}class Mve extends dve{constructor(e){super(),this.file=e}async fetchSlice(e,t){return new Promise(((n,r)=>{const i=this.file.slice(e.offset,e.offset+e.length),o=new FileReader;o.onload=e=>n(e.target.result),o.onerror=r,o.onabort=r,o.readAsArrayBuffer(i),t&&t.addEventListener("abort",(()=>o.abort()))}))}}function Ove(e){switch(e){case Dme.wP.BYTE:case Dme.wP.ASCII:case Dme.wP.SBYTE:case Dme.wP.UNDEFINED:return 1;case Dme.wP.SHORT:case Dme.wP.SSHORT:return 2;case Dme.wP.LONG:case Dme.wP.SLONG:case Dme.wP.FLOAT:case Dme.wP.IFD:return 4;case Dme.wP.RATIONAL:case Dme.wP.SRATIONAL:case Dme.wP.DOUBLE:case Dme.wP.LONG8:case Dme.wP.SLONG8:case Dme.wP.IFD8:return 8;default:throw new RangeError("Invalid field type: ".concat(e))}}function Rve(e,t,n,r){let i=null,o=null;const s=Ove(t);switch(t){case Dme.wP.BYTE:case Dme.wP.ASCII:case Dme.wP.UNDEFINED:i=new Uint8Array(n),o=e.readUint8;break;case Dme.wP.SBYTE:i=new Int8Array(n),o=e.readInt8;break;case Dme.wP.SHORT:i=new Uint16Array(n),o=e.readUint16;break;case Dme.wP.SSHORT:i=new Int16Array(n),o=e.readInt16;break;case Dme.wP.LONG:case Dme.wP.IFD:i=new Uint32Array(n),o=e.readUint32;break;case Dme.wP.SLONG:i=new Int32Array(n),o=e.readInt32;break;case Dme.wP.LONG8:case Dme.wP.IFD8:i=new Array(n),o=e.readUint64;break;case Dme.wP.SLONG8:i=new Array(n),o=e.readInt64;break;case Dme.wP.RATIONAL:i=new Uint32Array(2*n),o=e.readUint32;break;case Dme.wP.SRATIONAL:i=new Int32Array(2*n),o=e.readInt32;break;case Dme.wP.FLOAT:i=new Float32Array(n),o=e.readFloat32;break;case Dme.wP.DOUBLE:i=new Float64Array(n),o=e.readFloat64;break;default:throw new RangeError("Invalid field type: ".concat(t))}if(t!==Dme.wP.RATIONAL&&t!==Dme.wP.SRATIONAL)for(let a=0;a<n;++a)i[a]=o.call(e,r+a*s);else for(let a=0;a<n;a+=2)i[a]=o.call(e,r+a*s),i[a+1]=o.call(e,r+(a*s+4));return t===Dme.wP.ASCII?new TextDecoder("utf-8").decode(i):i}class Dve{constructor(e,t,n){this.fileDirectory=e,this.geoKeyDirectory=t,this.nextIFDByteOffset=n}}class Nve extends Error{constructor(e){super("No image at index ".concat(e)),this.index=e}}class Lve{async readRasters(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const{window:t,width:n,height:r}=e;let{resX:i,resY:o,bbox:s}=e;const a=await this.getImage();let l=a;const c=await this.getImageCount(),u=a.getBoundingBox();if(t&&s)throw new Error('Both "bbox" and "window" passed.');if(n||r){if(t){const[e,n]=a.getOrigin(),[r,i]=a.getResolution();s=[e+t[0]*r,n+t[1]*i,e+t[2]*r,n+t[3]*i]}const e=s||u;if(n){if(i)throw new Error("Both width and resX passed");i=(e[2]-e[0])/n}if(r){if(o)throw new Error("Both width and resY passed");o=(e[3]-e[1])/r}}if(i||o){const e=[];for(let t=0;t<c;++t){const n=await this.getImage(t),{SubfileType:r,NewSubfileType:i}=n.fileDirectory;(0===t||2===r||1&i)&&e.push(n)}e.sort(((e,t)=>e.getWidth()-t.getWidth()));for(let t=0;t<e.length;++t){const n=e[t],r=(u[2]-u[0])/n.getWidth(),s=(u[3]-u[1])/n.getHeight();if(l=n,i&&i>r||o&&o>s)break}}let d=t;if(s){const[e,t]=a.getOrigin(),[n,r]=l.getResolution(a);d=[Math.round((s[0]-e)/n),Math.round((s[1]-t)/r),Math.round((s[2]-e)/n),Math.round((s[3]-t)/r)],d=[Math.min(d[0],d[2]),Math.min(d[1],d[3]),Math.max(d[0],d[2]),Math.max(d[1],d[3])]}return l.readRasters({...e,window:d})}}class Vve extends Lve{constructor(e,t,n,r){let i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{};super(),this.source=e,this.littleEndian=t,this.bigTiff=n,this.firstIFDOffset=r,this.cache=i.cache||!1,this.ifdRequests=[],this.ghostValues=null}async getSlice(e,t){const n=this.bigTiff?4048:1024;return new sve((await this.source.fetch([{offset:e,length:"undefined"!==typeof t?t:n}]))[0],e,this.littleEndian,this.bigTiff)}async parseFileDirectoryAt(e){const t=this.bigTiff?20:12,n=this.bigTiff?8:2;let r=await this.getSlice(e);const i=this.bigTiff?r.readUint64(e):r.readUint16(e),o=i*t+(this.bigTiff?16:6);r.covers(e,o)||(r=await this.getSlice(e,o));const s={};let a=e+(this.bigTiff?8:2);for(let u=0;u<i;a+=t,++u){const e=r.readUint16(a),t=r.readUint16(a+2),n=this.bigTiff?r.readUint64(a+4):r.readUint32(a+4);let i,o;const l=Ove(t),c=a+(this.bigTiff?12:8);if(l*n<=(this.bigTiff?8:4))i=Rve(r,t,n,c);else{const e=r.readOffset(c),o=Ove(t)*n;if(r.covers(e,o))i=Rve(r,t,n,e);else{i=Rve(await this.getSlice(e,o),t,n,e)}}o=1===n&&-1===Dme.Qh.indexOf(e)&&t!==Dme.wP.RATIONAL&&t!==Dme.wP.SRATIONAL?i[0]:i,s[Dme.WK[e]]=o}const l=function(e){const t=e.GeoKeyDirectory;if(!t)return null;const n={};for(let r=4;r<=4*t[3];r+=4){const i=Dme.AF[t[r]],o=t[r+1]?Dme.WK[t[r+1]]:null,s=t[r+2],a=t[r+3];let l=null;if(o){if(l=e[o],"undefined"===typeof l||null===l)throw new Error("Could not get value of geoKey '".concat(i,"'."));"string"===typeof l?l=l.substring(a,a+s-1):l.subarray&&(l=l.subarray(a,a+s),1===s&&(l=l[0]))}else l=a;n[i]=l}return n}(s),c=r.readOffset(e+n+t*i);return new Dve(s,l,c)}async requestIFD(e){if(this.ifdRequests[e])return this.ifdRequests[e];if(0===e)return this.ifdRequests[e]=this.parseFileDirectoryAt(this.firstIFDOffset),this.ifdRequests[e];if(!this.ifdRequests[e-1])try{this.ifdRequests[e-1]=this.requestIFD(e-1)}catch(t){if(t instanceof Nve)throw new Nve(e);throw t}return this.ifdRequests[e]=(async()=>{const t=await this.ifdRequests[e-1];if(0===t.nextIFDByteOffset)throw new Nve(e);return this.parseFileDirectoryAt(t.nextIFDByteOffset)})(),this.ifdRequests[e]}async getImage(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;const t=await this.requestIFD(e);return new ive(t.fileDirectory,t.geoKeyDirectory,this.dataView,this.littleEndian,this.cache,this.source)}async getImageCount(){let e=0,t=!0;for(;t;)try{await this.requestIFD(e),++e}catch(n){if(!(n instanceof Nve))throw n;t=!1}return e}async getGhostValues(){const e=this.bigTiff?16:8;if(this.ghostValues)return this.ghostValues;const t="GDAL_STRUCTURAL_METADATA_SIZE=";let n=await this.getSlice(e,130);if(t===Rve(n,Dme.wP.ASCII,30,e)){const t=Rve(n,Dme.wP.ASCII,130,e).split("\n")[0],r=Number(t.split("=")[1].split(" ")[0])+t.length;r>130&&(n=await this.getSlice(e,r));const i=Rve(n,Dme.wP.ASCII,r,e);this.ghostValues={},i.split("\n").filter((e=>e.length>0)).map((e=>e.split("="))).forEach((e=>{let[t,n]=e;this.ghostValues[t]=n}))}return this.ghostValues}static async fromSource(e,t,n){const r=(await e.fetch([{offset:0,length:1024}],n))[0],i=new ove(r),o=i.getUint16(0,0);let s;if(18761===o)s=!0;else{if(19789!==o)throw new TypeError("Invalid byte order value.");s=!1}const a=i.getUint16(2,s);let l;if(42===a)l=!1;else{if(43!==a)throw new TypeError("Invalid magic number.");l=!0;if(8!==i.getUint16(4,s))throw new Error("Unsupported offset byte-size.")}const c=l?i.getUint64(8,s):i.getUint32(4,s);return new Vve(e,s,l,c,t)}close(){return"function"===typeof this.source.close&&this.source.close()}}class Fve extends Lve{constructor(e,t){super(),this.mainFile=e,this.overviewFiles=t,this.imageFiles=[e].concat(t),this.fileDirectoriesPerFile=null,this.fileDirectoriesPerFileParsing=null,this.imageCount=null}async parseFileDirectoriesPerFile(){const e=[this.mainFile.parseFileDirectoryAt(this.mainFile.firstIFDOffset)].concat(this.overviewFiles.map((e=>e.parseFileDirectoryAt(e.firstIFDOffset))));return this.fileDirectoriesPerFile=await Promise.all(e),this.fileDirectoriesPerFile}async getImage(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;await this.getImageCount(),await this.parseFileDirectoriesPerFile();let t=0,n=0;for(let r=0;r<this.imageFiles.length;r++){const i=this.imageFiles[r];for(let o=0;o<this.imageCounts[r];o++){if(e===t){const e=await i.requestIFD(n);return new ive(e.fileDirectory,e.geoKeyDirectory,i.dataView,i.littleEndian,i.cache,i.source)}t++,n++}n=0}throw new RangeError("Invalid image index")}async getImageCount(){if(null!==this.imageCount)return this.imageCount;const e=[this.mainFile.getImageCount()].concat(this.overviewFiles.map((e=>e.getImageCount())));return this.imageCounts=await Promise.all(e),this.imageCount=this.imageCounts.reduce(((e,t)=>e+t),0),this.imageCount}}async function zve(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2?arguments[2]:void 0;return Vve.fromSource(Tve(e,t),n)}async function Bve(e,t){return Vve.fromSource(new Mve(e),t)}function Uve(e,t){if(!e)return!1;if(!0===e)return!0;if(3!==t.getSamplesPerPixel())return!1;const n=t.fileDirectory.PhotometricInterpretation,r=Dme.iI;return n===r.CMYK||n===r.YCbCr||n===r.CIELab||n===r.ICCLab}const Wve="STATISTICS_MAXIMUM",Hve="STATISTICS_MINIMUM";let qve;function Xve(){return qve||(qve=new zme),qve}function Yve(e){try{return e.getBoundingBox()}catch(Dn){return[0,0,e.getWidth(),e.getHeight()]}}function Kve(e){try{return e.getOrigin().slice(0,2)}catch(Dn){return[0,e.getHeight()]}}function Zve(e,t){try{return e.getResolution(t)}catch(Dn){return[t.getWidth()/e.getWidth(),t.getHeight()/e.getHeight()]}}function $ve(e){const t=e.geoKeys;if(!t)return null;if(t.ProjectedCSTypeGeoKey&&32767!==t.ProjectedCSTypeGeoKey){const e="EPSG:"+t.ProjectedCSTypeGeoKey;let n=xR(e);if(!n){const r=_O(t.ProjLinearUnitsGeoKey);r&&(n=new xO({code:e,units:r}))}return n}if(t.GeographicTypeGeoKey&&32767!==t.GeographicTypeGeoKey){const e="EPSG:"+t.GeographicTypeGeoKey;let n=xR(e);if(!n){const r=_O(t.GeogAngularUnitsGeoKey);r&&(n=new xO({code:e,units:r}))}return n}return null}function Jve(e){return e.getImageCount().then((function(t){const n=new Array(t);for(let r=0;r<t;++r)n[r]=e.getImage(r);return Promise.all(n)}))}function Qve(e,t){let n;return n=e.blob?Bve(e.blob):e.overviews?async function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=arguments.length>3?arguments[3]:void 0;const i=await Vve.fromSource(Tve(e,n),r),o=await Promise.all(t.map((e=>Vve.fromSource(Tve(e,n)))));return new Fve(i,o)}(e.url,e.overviews,t):zve(e.url,t),n.then(Jve)}function e_e(e,t,n,r,i){if(Array.isArray(e)){const o=e.length;if(!Array.isArray(t)||o!=t.length){const e=new Error(r);throw i(e),e}for(let s=0;s<o;++s)e_e(e[s],t[s],n,r,i)}else if(Math.abs(e-t)>n*e)throw new Error(r)}function t_e(e){return e instanceof Int8Array?-128:e instanceof Int16Array?-32768:e instanceof Int32Array?-2147483648:e instanceof Float32Array?12e-39:0}function n_e(e){return e instanceof Int8Array?127:e instanceof Uint8Array||e instanceof Uint8ClampedArray?255:e instanceof Int16Array?32767:e instanceof Uint16Array?65535:e instanceof Int32Array?2147483647:e instanceof Uint32Array?4294967295:e instanceof Float32Array?34e37:255}class r_e extends Rme{constructor(e){super({state:"loading",tileGrid:null,projection:e.projection||null,transition:e.transition,interpolate:!1!==e.interpolate,wrapX:e.wrapX}),this.sourceInfo_=e.sources;const t=this.sourceInfo_.length;this.sourceOptions_=e.sourceOptions,this.sourceImagery_=new Array(t),this.sourceMasks_=new Array(t),this.resolutionFactors_=new Array(t),this.samplesPerPixel_,this.nodataValues_,this.metadata_,this.normalize_=!1!==e.normalize,this.addAlpha_=!1,this.error_=null,this.convertToRGB_=e.convertToRGB||!1,this.setKey(this.sourceInfo_.map((e=>e.url)).join(","));const n=this,r=new Array(t);for(let i=0;i<t;++i)r[i]=Qve(this.sourceInfo_[i],this.sourceOptions_);Promise.all(r).then((function(e){n.configure_(e)})).catch((function(e){gR(e),n.error_=e,n.setState("error")}))}getError(){return this.error_}determineProjection(e){const t=e[0];for(let n=t.length-1;n>=0;--n){const e=$ve(t[n]);if(e){this.projection=e;break}}}configure_(e){let t,n,r,i,o;const s=new Array(e.length),a=new Array(e.length),l=new Array(e.length);let c=0;const u=e.length;for(let p=0;p<u;++p){const u=[],d=[];e[p].forEach((e=>{4===(4&(e.fileDirectory.NewSubfileType||0))?d.push(e):u.push(e)}));const h=u.length;if(d.length>0&&d.length!==h)throw new Error("Expected one mask per image found ".concat(d.length," masks and ").concat(h," images"));let f,g;const m=new Array(h),y=new Array(h),v=new Array(h);a[p]=new Array(h),l[p]=new Array(h);for(let e=0;e<h;++e){const t=u[e],n=t.getGDALNoData();l[p][e]=t.getGDALMetadata(0),a[p][e]=n;const r=this.sourceInfo_[p].bands;s[p]=r?r.length:t.getSamplesPerPixel();const i=h-(e+1);f||(f=Yve(t)),g||(g=Kve(t));const o=Zve(t,u[0]);v[i]=o[0];const c=[t.getTileWidth(),t.getTileHeight()];c[0]!==c[1]&&c[1]<256&&(c[0]=256,c[1]=256),m[i]=c;const d=o[0]/Math.abs(o[1]);y[i]=[c[0],c[1]/d]}if(t?lO(t,f,t):t=f,n){e_e(n,g,0,"Origin mismatch for source ".concat(p,", got [").concat(g,"] but expected [").concat(n,"]"),this.viewRejector)}else n=g;if(o){o.length-c>v.length&&(c=o.length-v.length);const e=o[o.length-1]/v[v.length-1];this.resolutionFactors_[p]=e;const t=v.map((t=>t*e)),n="Resolution mismatch for source ".concat(p,", got [").concat(t,"] but expected [").concat(o,"]");e_e(o.slice(c,o.length),t,.02,n,this.viewRejector)}else o=v,this.resolutionFactors_[p]=1;r?e_e(r.slice(c,r.length),y,.01,"Tile size mismatch for source ".concat(p),this.viewRejector):r=y,i?e_e(i.slice(c,i.length),m,0,"Tile size mismatch for source ".concat(p),this.viewRejector):i=m,this.sourceImagery_[p]=u.reverse(),this.sourceMasks_[p]=d.reverse()}for(let p=0,f=this.sourceImagery_.length;p<f;++p){const e=this.sourceImagery_[p];for(;e.length<o.length;)e.unshift(void 0)}this.getProjection()||this.determineProjection(e),this.samplesPerPixel_=s,this.nodataValues_=a,this.metadata_=l;e:for(let p=0;p<u;++p){if(void 0!==this.sourceInfo_[p].nodata){this.addAlpha_=!0;break}if(this.sourceMasks_[p].length){this.addAlpha_=!0;break}const e=a[p],t=this.sourceInfo_[p].bands;if(t){for(let n=0;n<t.length;++n)if(null!==e[t[n]-1]){this.addAlpha_=!0;break e}}else for(let n=0;n<e.length;++n)if(null!==e[n]){this.addAlpha_=!0;break e}}let d=this.addAlpha_?1:0;for(let p=0;p<u;++p)d+=s[p];this.bandCount=d;const h=new FN({extent:t,minZoom:c,origin:n,resolutions:o,tileSizes:r});this.tileGrid=h,this.setTileSizes(i),this.setLoader(this.loadTile_.bind(this)),this.setState("ready");2===o.length?o=[o[0],o[1],o[1]/2]:1===o.length&&(o=[2*o[0],o[0],o[0]/2]),this.viewResolver({showFullExtent:!0,projection:this.projection,resolutions:o,center:DR(iO(t),this.projection),extent:LR(t,this.projection),zoom:1})}loadTile_(e,t,n,r){const i=this.getTileSize(e),o=this.sourceImagery_.length,s=new Array(2*o),a=this.nodataValues_,l=this.sourceInfo_,c=Xve();for(let u=0;u<o;++u){const d=l[u],h=this.resolutionFactors_[u],p=[Math.round(t*(i[0]*h)),Math.round(n*(i[1]*h)),Math.round((t+1)*(i[0]*h)),Math.round((n+1)*(i[1]*h))],f=this.sourceImagery_[u][e];let g,m;d.bands&&(g=d.bands.map((function(e){return e-1}))),m="nodata"in d&&null!==d.nodata?d.nodata:g?g.map((function(e){return a[u][e]})):a[u];const y={window:p,width:i[0],height:i[1],samples:g,fillValue:m,pool:c,interleave:!1,signal:r.signal};Uve(this.convertToRGB_,f)?s[u]=f.readRGB(y):s[u]=f.readRasters(y);const v=o+u,_=this.sourceMasks_[u][e];_?s[v]=_.readRasters({window:p,width:i[0],height:i[1],samples:[0],pool:c,interleave:!1}):s[v]=Promise.resolve(null)}return Promise.all(s).then(this.composeTile_.bind(this,i)).catch((function(e){throw gR(e),e}))}composeTile_(e,t){const n=this.metadata_,r=this.sourceInfo_,i=this.sourceImagery_.length,o=this.bandCount,s=this.samplesPerPixel_,a=this.nodataValues_,l=this.normalize_,c=this.addAlpha_,u=e[0]*e[1],d=u*o;let h;h=l?new Uint8Array(d):new Float32Array(d);let p=0;for(let f=0;f<u;++f){let e=c;for(let o=0;o<i;++o){const u=r[o];let d,g,m=u.min,y=u.max;if(l){const e=n[o][0];void 0===m&&(m=e&&Hve in e?parseFloat(e[Hve]):t_e(t[o][0])),void 0===y&&(y=e&&Wve in e?parseFloat(e[Wve]):n_e(t[o][0])),d=255/(y-m),g=-m*d}for(let n=0;n<s[o];++n){const r=t[o][n][f];let i;if(i=l?VO(d*r+g,0,255):r,c){let t=u.nodata;if(void 0===t){let e;e=u.bands?u.bands[n]-1:n,t=a[o][e]}const s=isNaN(t);(!s&&r!==t||s&&!isNaN(r))&&(e=!1,h[p]=i)}else h[p]=i;p++}if(!e){const n=t[i+o];n&&!n[0][f]&&(e=!0)}}c&&(e||(h[p]=255),p++)}return h}}r_e.prototype.getView;const i_e=r_e;var o_e=1,s_e=2,a_e=3,l_e=5,c_e=6378137,u_e=6356752.314,d_e=.0066943799901413165,h_e=484813681109536e-20,p_e=Math.PI/2,f_e=.16666666666666666,g_e=.04722222222222222,m_e=.022156084656084655,y_e=1e-10,v_e=.017453292519943295,__e=57.29577951308232,b_e=Math.PI/4,x_e=2*Math.PI,S_e=3.14159265359,w_e={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 E_e={ft:{to_meter:.3048},"us-ft":{to_meter:1200/3937}};var P_e=/[\s_\-\/\(\)]/g;function C_e(e,t){if(e[t])return e[t];for(var n,r=Object.keys(e),i=t.toLowerCase().replace(P_e,""),o=-1;++o<r.length;)if((n=r[o]).toLowerCase().replace(P_e,"")===i)return e[n]}function A_e(e){var t,n,r,i={},o=e.split("+").map((function(e){return e.trim()})).filter((function(e){return e})).reduce((function(e,t){var n=t.split("=");return n.push(!0),e[n[0].toLowerCase()]=n[1],e}),{}),s={proj:"projName",datum:"datumCode",rf:function(e){i.rf=parseFloat(e)},lat_0:function(e){i.lat0=e*v_e},lat_1:function(e){i.lat1=e*v_e},lat_2:function(e){i.lat2=e*v_e},lat_ts:function(e){i.lat_ts=e*v_e},lon_0:function(e){i.long0=e*v_e},lon_1:function(e){i.long1=e*v_e},lon_2:function(e){i.long2=e*v_e},alpha:function(e){i.alpha=parseFloat(e)*v_e},gamma:function(e){i.rectified_grid_angle=parseFloat(e)},lonc:function(e){i.longc=e*v_e},x_0:function(e){i.x0=parseFloat(e)},y_0:function(e){i.y0=parseFloat(e)},k_0:function(e){i.k0=parseFloat(e)},k:function(e){i.k0=parseFloat(e)},a:function(e){i.a=parseFloat(e)},b:function(e){i.b=parseFloat(e)},r:function(e){i.a=i.b=parseFloat(e)},r_a:function(){i.R_A=!0},zone:function(e){i.zone=parseInt(e,10)},south:function(){i.utmSouth=!0},towgs84:function(e){i.datum_params=e.split(",").map((function(e){return parseFloat(e)}))},to_meter:function(e){i.to_meter=parseFloat(e)},units:function(e){i.units=e;var t=C_e(E_e,e);t&&(i.to_meter=t.to_meter)},from_greenwich:function(e){i.from_greenwich=e*v_e},pm:function(e){var t=C_e(w_e,e);i.from_greenwich=(t||parseFloat(e))*v_e},nadgrids:function(e){"@null"===e?i.datumCode="none":i.nadgrids=e},axis:function(e){var t="ewnsud";3===e.length&&-1!==t.indexOf(e.substr(0,1))&&-1!==t.indexOf(e.substr(1,1))&&-1!==t.indexOf(e.substr(2,1))&&(i.axis=e)},approx:function(){i.approx=!0}};for(t in o)n=o[t],t in s?"function"===typeof(r=s[t])?r(n):i[r]=n:i[t]=n;return"string"===typeof i.datumCode&&"WGS84"!==i.datumCode&&(i.datumCode=i.datumCode.toLowerCase()),i}const k_e=function(e){var t=new R_e(e);return t.output()};var j_e=1,I_e=/\s/,G_e=/[A-Za-z]/,T_e=/[A-Za-z84_]/,M_e=/[,\]]/,O_e=/[\d\.E\-\+]/;function R_e(e){if("string"!==typeof e)throw new Error("not a string");this.text=e.trim(),this.level=0,this.place=0,this.root=null,this.stack=[],this.currentObject=null,this.state=j_e}function D_e(e,t,n){Array.isArray(t)&&(n.unshift(t),t=null);var r=t?{}:e,i=n.reduce((function(e,t){return N_e(t,e),e}),r);t&&(e[t]=i)}function N_e(e,t){if(Array.isArray(e)){var n=e.shift();if("PARAMETER"===n&&(n=e.shift()),1===e.length)return Array.isArray(e[0])?(t[n]={},void N_e(e[0],t[n])):void(t[n]=e[0]);if(e.length)if("TOWGS84"!==n){if("AXIS"===n)return n in t||(t[n]=[]),void t[n].push(e);var r;switch(Array.isArray(n)||(t[n]={}),n){case"UNIT":case"PRIMEM":case"VERT_DATUM":return t[n]={name:e[0].toLowerCase(),convert:e[1]},void(3===e.length&&N_e(e[2],t[n]));case"SPHEROID":case"ELLIPSOID":return t[n]={name:e[0],a:e[1],rf:e[2]},void(4===e.length&&N_e(e[3],t[n]));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 e[0]=["name",e[0]],void D_e(t,n,e);default:for(r=-1;++r<e.length;)if(!Array.isArray(e[r]))return N_e(e,t[n]);return D_e(t,n,e)}}else t[n]=e;else t[n]=!0}else t[e]=!0}R_e.prototype.readCharicter=function(){var e=this.text[this.place++];if(4!==this.state)for(;I_e.test(e);){if(this.place>=this.text.length)return;e=this.text[this.place++]}switch(this.state){case j_e:return this.neutral(e);case 2:return this.keyword(e);case 4:return this.quoted(e);case 5:return this.afterquote(e);case 3:return this.number(e);case-1:return}},R_e.prototype.afterquote=function(e){if('"'===e)return this.word+='"',void(this.state=4);if(M_e.test(e))return this.word=this.word.trim(),void this.afterItem(e);throw new Error("havn't handled \""+e+'" in afterquote yet, index '+this.place)},R_e.prototype.afterItem=function(e){return","===e?(null!==this.word&&this.currentObject.push(this.word),this.word=null,void(this.state=j_e)):"]"===e?(this.level--,null!==this.word&&(this.currentObject.push(this.word),this.word=null),this.state=j_e,this.currentObject=this.stack.pop(),void(this.currentObject||(this.state=-1))):void 0},R_e.prototype.number=function(e){if(!O_e.test(e)){if(M_e.test(e))return this.word=parseFloat(this.word),void this.afterItem(e);throw new Error("havn't handled \""+e+'" in number yet, index '+this.place)}this.word+=e},R_e.prototype.quoted=function(e){'"'!==e?this.word+=e:this.state=5},R_e.prototype.keyword=function(e){if(T_e.test(e))this.word+=e;else{if("["===e){var t=[];return t.push(this.word),this.level++,null===this.root?this.root=t:this.currentObject.push(t),this.stack.push(this.currentObject),this.currentObject=t,void(this.state=j_e)}if(!M_e.test(e))throw new Error("havn't handled \""+e+'" in keyword yet, index '+this.place);this.afterItem(e)}},R_e.prototype.neutral=function(e){if(G_e.test(e))return this.word=e,void(this.state=2);if('"'===e)return this.word="",void(this.state=4);if(O_e.test(e))return this.word=e,void(this.state=3);if(!M_e.test(e))throw new Error("havn't handled \""+e+'" in neutral yet, index '+this.place);this.afterItem(e)},R_e.prototype.output=function(){for(;this.place<this.text.length;)this.readCharicter();if(-1===this.state)return this.root;throw new Error('unable to parse string "'+this.text+'". State is '+this.state)};var L_e=.017453292519943295;function V_e(e){return e*L_e}function F_e(e){var t=k_e(e),n=t.shift(),r=t.shift();t.unshift(["name",r]),t.unshift(["type",n]);var i={};return N_e(t,i),function(e){if("GEOGCS"===e.type?e.projName="longlat":"LOCAL_CS"===e.type?(e.projName="identity",e.local=!0):"object"===typeof e.PROJECTION?e.projName=Object.keys(e.PROJECTION)[0]:e.projName=e.PROJECTION,e.AXIS){for(var t="",n=0,r=e.AXIS.length;n<r;++n){var i=[e.AXIS[n][0].toLowerCase(),e.AXIS[n][1].toLowerCase()];-1!==i[0].indexOf("north")||("y"===i[0]||"lat"===i[0])&&"north"===i[1]?t+="n":-1!==i[0].indexOf("south")||("y"===i[0]||"lat"===i[0])&&"south"===i[1]?t+="s":-1!==i[0].indexOf("east")||("x"===i[0]||"lon"===i[0])&&"east"===i[1]?t+="e":-1===i[0].indexOf("west")&&("x"!==i[0]&&"lon"!==i[0]||"west"!==i[1])||(t+="w")}2===t.length&&(t+="u"),3===t.length&&(e.axis=t)}e.UNIT&&(e.units=e.UNIT.name.toLowerCase(),"metre"===e.units&&(e.units="meter"),e.UNIT.convert&&("GEOGCS"===e.type?e.DATUM&&e.DATUM.SPHEROID&&(e.to_meter=e.UNIT.convert*e.DATUM.SPHEROID.a):e.to_meter=e.UNIT.convert));var o=e.GEOGCS;function s(t){return t*(e.to_meter||1)}"GEOGCS"===e.type&&(o=e),o&&(o.DATUM?e.datumCode=o.DATUM.name.toLowerCase():e.datumCode=o.name.toLowerCase(),"d_"===e.datumCode.slice(0,2)&&(e.datumCode=e.datumCode.slice(2)),"new_zealand_geodetic_datum_1949"!==e.datumCode&&"new_zealand_1949"!==e.datumCode||(e.datumCode="nzgd49"),"wgs_1984"!==e.datumCode&&"world_geodetic_system_1984"!==e.datumCode||("Mercator_Auxiliary_Sphere"===e.PROJECTION&&(e.sphere=!0),e.datumCode="wgs84"),"_ferro"===e.datumCode.slice(-6)&&(e.datumCode=e.datumCode.slice(0,-6)),"_jakarta"===e.datumCode.slice(-8)&&(e.datumCode=e.datumCode.slice(0,-8)),~e.datumCode.indexOf("belge")&&(e.datumCode="rnb72"),o.DATUM&&o.DATUM.SPHEROID&&(e.ellps=o.DATUM.SPHEROID.name.replace("_19","").replace(/[Cc]larke\_18/,"clrk"),"international"===e.ellps.toLowerCase().slice(0,13)&&(e.ellps="intl"),e.a=o.DATUM.SPHEROID.a,e.rf=parseFloat(o.DATUM.SPHEROID.rf,10)),o.DATUM&&o.DATUM.TOWGS84&&(e.datum_params=o.DATUM.TOWGS84),~e.datumCode.indexOf("osgb_1936")&&(e.datumCode="osgb36"),~e.datumCode.indexOf("osni_1952")&&(e.datumCode="osni52"),(~e.datumCode.indexOf("tm65")||~e.datumCode.indexOf("geodetic_datum_of_1965"))&&(e.datumCode="ire65"),"ch1903+"===e.datumCode&&(e.datumCode="ch1903"),~e.datumCode.indexOf("israel")&&(e.datumCode="isr93")),e.b&&!isFinite(e.b)&&(e.b=e.a),[["standard_parallel_1","Standard_Parallel_1"],["standard_parallel_1","Latitude of 1st standard parallel"],["standard_parallel_2","Standard_Parallel_2"],["standard_parallel_2","Latitude of 2nd standard parallel"],["false_easting","False_Easting"],["false_easting","False easting"],["false-easting","Easting at false origin"],["false_northing","False_Northing"],["false_northing","False northing"],["false_northing","Northing at false origin"],["central_meridian","Central_Meridian"],["central_meridian","Longitude of natural origin"],["central_meridian","Longitude of false origin"],["latitude_of_origin","Latitude_Of_Origin"],["latitude_of_origin","Central_Parallel"],["latitude_of_origin","Latitude of natural origin"],["latitude_of_origin","Latitude of false origin"],["scale_factor","Scale_Factor"],["k0","scale_factor"],["latitude_of_center","Latitude_Of_Center"],["latitude_of_center","Latitude_of_center"],["lat0","latitude_of_center",V_e],["longitude_of_center","Longitude_Of_Center"],["longitude_of_center","Longitude_of_center"],["longc","longitude_of_center",V_e],["x0","false_easting",s],["y0","false_northing",s],["long0","central_meridian",V_e],["lat0","latitude_of_origin",V_e],["lat0","standard_parallel_1",V_e],["lat1","standard_parallel_1",V_e],["lat2","standard_parallel_2",V_e],["azimuth","Azimuth"],["alpha","azimuth",V_e],["srsCode","name"]].forEach((function(t){return function(e,t){var n=t[0],r=t[1];!(n in e)&&r in e&&(e[n]=e[r],3===t.length&&(e[n]=t[2](e[n])))}(e,t)})),e.long0||!e.longc||"Albers_Conic_Equal_Area"!==e.projName&&"Lambert_Azimuthal_Equal_Area"!==e.projName||(e.long0=e.longc),e.lat_ts||!e.lat1||"Stereographic_South_Pole"!==e.projName&&"Polar Stereographic (variant B)"!==e.projName?!e.lat_ts&&e.lat0&&"Polar_Stereographic"===e.projName&&(e.lat_ts=e.lat0,e.lat0=V_e(e.lat0>0?90:-90)):(e.lat0=V_e(e.lat1>0?90:-90),e.lat_ts=e.lat1)}(i),i}function z_e(e){var t=this;if(2===arguments.length){var n=arguments[1];"string"===typeof n?"+"===n.charAt(0)?z_e[e]=A_e(arguments[1]):z_e[e]=F_e(arguments[1]):z_e[e]=n}else if(1===arguments.length){if(Array.isArray(e))return e.map((function(e){Array.isArray(e)?z_e.apply(t,e):z_e(e)}));if("string"===typeof e){if(e in z_e)return z_e[e]}else"EPSG"in e?z_e["EPSG:"+e.EPSG]=e:"ESRI"in e?z_e["ESRI:"+e.ESRI]=e:"IAU2000"in e?z_e["IAU2000:"+e.IAU2000]=e:console.log(e);return}}!function(e){e("EPSG:4326","+title=WGS 84 (long/lat) +proj=longlat +ellps=WGS84 +datum=WGS84 +units=degrees"),e("EPSG:4269","+title=NAD83 (long/lat) +proj=longlat +a=6378137.0 +b=6356752.31414036 +ellps=GRS80 +datum=NAD83 +units=degrees"),e("EPSG:3857","+title=WGS 84 / Pseudo-Mercator +proj=merc +a=6378137 +b=6378137 +lat_ts=0.0 +lon_0=0.0 +x_0=0.0 +y_0=0 +k=1.0 +units=m +nadgrids=@null +no_defs"),e.WGS84=e["EPSG:4326"],e["EPSG:3785"]=e["EPSG:3857"],e.GOOGLE=e["EPSG:3857"],e["EPSG:900913"]=e["EPSG:3857"],e["EPSG:102113"]=e["EPSG:3857"]}(z_e);const B_e=z_e;var U_e=["PROJECTEDCRS","PROJCRS","GEOGCS","GEOCCS","PROJCS","LOCAL_CS","GEODCRS","GEODETICCRS","GEODETICDATUM","ENGCRS","ENGINEERINGCRS"];var W_e=["3857","900913","3785","102113"];const H_e=function(e){if(!function(e){return"string"===typeof e}(e))return e;if(function(e){return e in B_e}(e))return B_e[e];if(function(e){return U_e.some((function(t){return e.indexOf(t)>-1}))}(e)){var t=F_e(e);if(function(e){var t=C_e(e,"authority");if(t){var n=C_e(t,"epsg");return n&&W_e.indexOf(n)>-1}}(t))return B_e["EPSG:3857"];var n=function(e){var t=C_e(e,"extension");if(t)return C_e(t,"proj4")}(t);return n?A_e(n):t}return function(e){return"+"===e[0]}(e)?A_e(e):void 0};function q_e(e,t){var n,r;if(e=e||{},!t)return e;for(r in t)void 0!==(n=t[r])&&(e[r]=n);return e}function X_e(e,t,n){var r=e*t;return n/Math.sqrt(1-r*r)}function Y_e(e){return e<0?-1:1}function K_e(e){return Math.abs(e)<=S_e?e:e-Y_e(e)*x_e}function Z_e(e,t,n){var r=e*n,i=.5*e;return r=Math.pow((1-r)/(1+r),i),Math.tan(.5*(p_e-t))/r}function $_e(e,t){for(var n,r,i=.5*e,o=p_e-2*Math.atan(t),s=0;s<=15;s++)if(n=e*Math.sin(o),o+=r=p_e-2*Math.atan(t*Math.pow((1-n)/(1+n),i))-o,Math.abs(r)<=1e-10)return o;return-9999}const J_e={init:function(){var e=this.b/this.a;this.es=1-e*e,"x0"in this||(this.x0=0),"y0"in this||(this.y0=0),this.e=Math.sqrt(this.es),this.lat_ts?this.sphere?this.k0=Math.cos(this.lat_ts):this.k0=X_e(this.e,Math.sin(this.lat_ts),Math.cos(this.lat_ts)):this.k0||(this.k?this.k0=this.k:this.k0=1)},forward:function(e){var t,n,r=e.x,i=e.y;if(i*__e>90&&i*__e<-90&&r*__e>180&&r*__e<-180)return null;if(Math.abs(Math.abs(i)-p_e)<=y_e)return null;if(this.sphere)t=this.x0+this.a*this.k0*K_e(r-this.long0),n=this.y0+this.a*this.k0*Math.log(Math.tan(b_e+.5*i));else{var o=Math.sin(i),s=Z_e(this.e,i,o);t=this.x0+this.a*this.k0*K_e(r-this.long0),n=this.y0-this.a*this.k0*Math.log(s)}return e.x=t,e.y=n,e},inverse:function(e){var t,n,r=e.x-this.x0,i=e.y-this.y0;if(this.sphere)n=p_e-2*Math.atan(Math.exp(-i/(this.a*this.k0)));else{var o=Math.exp(-i/(this.a*this.k0));if(-9999===(n=$_e(this.e,o)))return null}return t=K_e(this.long0+r/(this.a*this.k0)),e.x=t,e.y=n,e},names:["Mercator","Popular Visualisation Pseudo Mercator","Mercator_1SP","Mercator_Auxiliary_Sphere","merc"]};function Q_e(e){return e}var ebe=[J_e,{init:function(){},forward:Q_e,inverse:Q_e,names:["longlat","identity"]}],tbe={},nbe=[];function rbe(e,t){var n=nbe.length;return e.names?(nbe[n]=e,e.names.forEach((function(e){tbe[e.toLowerCase()]=n})),this):(console.log(t),!0)}const ibe={start:function(){ebe.forEach(rbe)},add:rbe,get:function(e){if(!e)return!1;var t=e.toLowerCase();return"undefined"!==typeof tbe[t]&&nbe[tbe[t]]?nbe[tbe[t]]:void 0}};var obe={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"}},sbe=obe.WGS84={a:6378137,rf:298.257223563,ellipseName:"WGS 84"};obe.sphere={a:6370997,b:6370997,ellipseName:"Normal Sphere (r=6370997)"};var abe={};abe.wgs84={towgs84:"0,0,0",ellipse:"WGS84",datumName:"WGS84"},abe.ch1903={towgs84:"674.374,15.056,405.346",ellipse:"bessel",datumName:"swiss"},abe.ggrs87={towgs84:"-199.87,74.79,246.62",ellipse:"GRS80",datumName:"Greek_Geodetic_Reference_System_1987"},abe.nad83={towgs84:"0,0,0",ellipse:"GRS80",datumName:"North_American_Datum_1983"},abe.nad27={nadgrids:"@conus,@alaska,@ntv2_0.gsb,@ntv1_can.dat",ellipse:"clrk66",datumName:"North_American_Datum_1927"},abe.potsdam={towgs84:"598.1,73.7,418.2,0.202,0.045,-2.455,6.7",ellipse:"bessel",datumName:"Potsdam Rauenberg 1950 DHDN"},abe.carthage={towgs84:"-263.0,6.0,431.0",ellipse:"clark80",datumName:"Carthage 1934 Tunisia"},abe.hermannskogel={towgs84:"577.326,90.129,463.919,5.137,1.474,5.297,2.4232",ellipse:"bessel",datumName:"Hermannskogel"},abe.militargeographische_institut={towgs84:"577.326,90.129,463.919,5.137,1.474,5.297,2.4232",ellipse:"bessel",datumName:"Militar-Geographische Institut"},abe.osni52={towgs84:"482.530,-130.596,564.557,-1.042,-0.214,-0.631,8.15",ellipse:"airy",datumName:"Irish National"},abe.ire65={towgs84:"482.530,-130.596,564.557,-1.042,-0.214,-0.631,8.15",ellipse:"mod_airy",datumName:"Ireland 1965"},abe.rassadiran={towgs84:"-133.63,-157.5,-158.62",ellipse:"intl",datumName:"Rassadiran"},abe.nzgd49={towgs84:"59.47,-5.04,187.44,0.47,-0.1,1.024,-4.5993",ellipse:"intl",datumName:"New Zealand Geodetic Datum 1949"},abe.osgb36={towgs84:"446.448,-125.157,542.060,0.1502,0.2470,0.8421,-20.4894",ellipse:"airy",datumName:"Airy 1830"},abe.s_jtsk={towgs84:"589,76,480",ellipse:"bessel",datumName:"S-JTSK (Ferro)"},abe.beduaram={towgs84:"-106,-87,188",ellipse:"clrk80",datumName:"Beduaram"},abe.gunung_segara={towgs84:"-403,684,41",ellipse:"bessel",datumName:"Gunung Segara Jakarta"},abe.rnb72={towgs84:"106.869,-52.2978,103.724,-0.33657,0.456955,-1.84218,1",ellipse:"intl",datumName:"Reseau National Belge 1972"};const lbe=function(e,t,n,r,i,o,s){var a={};return a.datum_type=void 0===e||"none"===e?l_e:4,t&&(a.datum_params=t.map(parseFloat),0===a.datum_params[0]&&0===a.datum_params[1]&&0===a.datum_params[2]||(a.datum_type=o_e),a.datum_params.length>3&&(0===a.datum_params[3]&&0===a.datum_params[4]&&0===a.datum_params[5]&&0===a.datum_params[6]||(a.datum_type=s_e,a.datum_params[3]*=h_e,a.datum_params[4]*=h_e,a.datum_params[5]*=h_e,a.datum_params[6]=a.datum_params[6]/1e6+1))),s&&(a.datum_type=a_e,a.grids=s),a.a=n,a.b=r,a.es=i,a.ep2=o,a};var cbe={};function ube(e){if(0===e.length)return null;var t="@"===e[0];return t&&(e=e.slice(1)),"null"===e?{name:"null",mandatory:!t,grid:null,isNull:!0}:{name:e,mandatory:!t,grid:cbe[e]||null,isNull:!1}}function dbe(e){return e/3600*Math.PI/180}function hbe(e,t,n){return String.fromCharCode.apply(null,new Uint8Array(e.buffer.slice(t,n)))}function pbe(e){return e.map((function(e){return[dbe(e.longitudeShift),dbe(e.latitudeShift)]}))}function fbe(e,t,n){return{name:hbe(e,t+8,t+16).trim(),parent:hbe(e,t+24,t+24+8).trim(),lowerLatitude:e.getFloat64(t+72,n),upperLatitude:e.getFloat64(t+88,n),lowerLongitude:e.getFloat64(t+104,n),upperLongitude:e.getFloat64(t+120,n),latitudeInterval:e.getFloat64(t+136,n),longitudeInterval:e.getFloat64(t+152,n),gridNodeCount:e.getInt32(t+168,n)}}function gbe(e,t,n,r){for(var i=t+176,o=[],s=0;s<n.gridNodeCount;s++){var a={latitudeShift:e.getFloat32(i+16*s,r),longitudeShift:e.getFloat32(i+16*s+4,r),latitudeAccuracy:e.getFloat32(i+16*s+8,r),longitudeAccuracy:e.getFloat32(i+16*s+12,r)};o.push(a)}return o}function mbe(e,t){if(!(this instanceof mbe))return new mbe(e);t=t||function(e){if(e)throw e};var n=H_e(e);if("object"===typeof n){var r=mbe.projections.get(n.projName);if(r){if(n.datumCode&&"none"!==n.datumCode){var i=C_e(abe,n.datumCode);i&&(n.datum_params=n.datum_params||(i.towgs84?i.towgs84.split(","):null),n.ellps=i.ellipse,n.datumName=i.datumName?i.datumName:n.datumCode)}n.k0=n.k0||1,n.axis=n.axis||"enu",n.ellps=n.ellps||"wgs84",n.lat1=n.lat1||n.lat0;var o=function(e,t,n,r,i){if(!e){var o=C_e(obe,r);o||(o=sbe),e=o.a,t=o.b,n=o.rf}return n&&!t&&(t=(1-1/n)*e),(0===n||Math.abs(e-t)<y_e)&&(i=!0,t=e),{a:e,b:t,rf:n,sphere:i}}(n.a,n.b,n.rf,n.ellps,n.sphere),s=function(e,t,n,r){var i=e*e,o=t*t,s=(i-o)/i,a=0;return r?(i=(e*=1-s*(f_e+s*(g_e+s*m_e)))*e,s=0):a=Math.sqrt(s),{es:s,e:a,ep2:(i-o)/o}}(o.a,o.b,o.rf,n.R_A),a=function(e){return void 0===e?null:e.split(",").map(ube)}(n.nadgrids),l=n.datum||lbe(n.datumCode,n.datum_params,o.a,o.b,s.es,s.ep2,a);q_e(this,n),q_e(this,r),this.a=o.a,this.b=o.b,this.rf=o.rf,this.sphere=o.sphere,this.es=s.es,this.e=s.e,this.ep2=s.ep2,this.datum=l,this.init(),t(null,this)}else t("Could not get projection name from: "+e)}else t("Could not parse to valid json: "+e)}mbe.projections=ibe,mbe.projections.start();const ybe=mbe;function vbe(e,t,n){var r,i,o,s,a=e.x,l=e.y,c=e.z?e.z:0;if(l<-p_e&&l>-1.001*p_e)l=-p_e;else if(l>p_e&&l<1.001*p_e)l=p_e;else{if(l<-p_e)return{x:-1/0,y:-1/0,z:e.z};if(l>p_e)return{x:1/0,y:1/0,z:e.z}}return a>Math.PI&&(a-=2*Math.PI),i=Math.sin(l),s=Math.cos(l),o=i*i,{x:((r=n/Math.sqrt(1-t*o))+c)*s*Math.cos(a),y:(r+c)*s*Math.sin(a),z:(r*(1-t)+c)*i}}function _be(e,t,n,r){var i,o,s,a,l,c,u,d,h,p,f,g,m,y,v,_=1e-12,b=e.x,x=e.y,S=e.z?e.z:0;if(i=Math.sqrt(b*b+x*x),o=Math.sqrt(b*b+x*x+S*S),i/n<_){if(y=0,o/n<_)return p_e,v=-r,{x:e.x,y:e.y,z:e.z}}else y=Math.atan2(x,b);s=S/o,d=(a=i/o)*(1-t)*(l=1/Math.sqrt(1-t*(2-t)*a*a)),h=s*l,m=0;do{m++,c=t*(u=n/Math.sqrt(1-t*h*h))/(u+(v=i*d+S*h-u*(1-t*h*h))),g=(f=s*(l=1/Math.sqrt(1-c*(2-c)*a*a)))*d-(p=a*(1-c)*l)*h,d=p,h=f}while(g*g>1e-24&&m<30);return{x:y,y:Math.atan(f/Math.abs(p)),z:v}}function bbe(e){return e===o_e||e===s_e}function xbe(e,t,n){if(function(e,t){return e.datum_type===t.datum_type&&!(e.a!==t.a||Math.abs(e.es-t.es)>5e-11)&&(e.datum_type===o_e?e.datum_params[0]===t.datum_params[0]&&e.datum_params[1]===t.datum_params[1]&&e.datum_params[2]===t.datum_params[2]:e.datum_type!==s_e||e.datum_params[0]===t.datum_params[0]&&e.datum_params[1]===t.datum_params[1]&&e.datum_params[2]===t.datum_params[2]&&e.datum_params[3]===t.datum_params[3]&&e.datum_params[4]===t.datum_params[4]&&e.datum_params[5]===t.datum_params[5]&&e.datum_params[6]===t.datum_params[6])}(e,t))return n;if(e.datum_type===l_e||t.datum_type===l_e)return n;var r=e.a,i=e.es;if(e.datum_type===a_e){if(0!==Sbe(e,!1,n))return;r=c_e,i=d_e}var o=t.a,s=t.b,a=t.es;if(t.datum_type===a_e&&(o=c_e,s=u_e,a=d_e),i===a&&r===o&&!bbe(e.datum_type)&&!bbe(t.datum_type))return n;if((n=vbe(n,i,r),bbe(e.datum_type)&&(n=function(e,t,n){if(t===o_e)return{x:e.x+n[0],y:e.y+n[1],z:e.z+n[2]};if(t===s_e){var r=n[0],i=n[1],o=n[2],s=n[3],a=n[4],l=n[5],c=n[6];return{x:c*(e.x-l*e.y+a*e.z)+r,y:c*(l*e.x+e.y-s*e.z)+i,z:c*(-a*e.x+s*e.y+e.z)+o}}}(n,e.datum_type,e.datum_params)),bbe(t.datum_type)&&(n=function(e,t,n){if(t===o_e)return{x:e.x-n[0],y:e.y-n[1],z:e.z-n[2]};if(t===s_e){var r=n[0],i=n[1],o=n[2],s=n[3],a=n[4],l=n[5],c=n[6],u=(e.x-r)/c,d=(e.y-i)/c,h=(e.z-o)/c;return{x:u+l*d-a*h,y:-l*u+d+s*h,z:a*u-s*d+h}}}(n,t.datum_type,t.datum_params)),n=_be(n,a,o,s),t.datum_type===a_e)&&0!==Sbe(t,!0,n))return;return n}function Sbe(e,t,n){if(null===e.grids||0===e.grids.length)return console.log("Grid shift grids not found"),-1;var r={x:-n.x,y:n.y},i={x:Number.NaN,y:Number.NaN},o=[];e:for(var s=0;s<e.grids.length;s++){var a=e.grids[s];if(o.push(a.name),a.isNull){i=r;break}if(a.mandatory,null!==a.grid)for(var l=a.grid.subgrids,c=0,u=l.length;c<u;c++){var d=l[c],h=(Math.abs(d.del[1])+Math.abs(d.del[0]))/1e4,p=d.ll[0]-h,f=d.ll[1]-h,g=d.ll[0]+(d.lim[0]-1)*d.del[0]+h,m=d.ll[1]+(d.lim[1]-1)*d.del[1]+h;if(!(f>r.y||p>r.x||m<r.y||g<r.x)&&(i=wbe(r,t,d),!isNaN(i.x)))break e}else if(a.mandatory)return console.log("Unable to find mandatory grid '"+a.name+"'"),-1}return isNaN(i.x)?(console.log("Failed to find a grid shift table for location '"+-r.x*__e+" "+r.y*__e+" tried: '"+o+"'"),-1):(n.x=-i.x,n.y=i.y,0)}function wbe(e,t,n){var r={x:Number.NaN,y:Number.NaN};if(isNaN(e.x))return r;var i={x:e.x,y:e.y};i.x-=n.ll[0],i.y-=n.ll[1],i.x=K_e(i.x-Math.PI)+Math.PI;var o=Ebe(i,n);if(t){if(isNaN(o.x))return r;o.x=i.x-o.x,o.y=i.y-o.y;var s,a,l=9;do{if(a=Ebe(o,n),isNaN(a.x)){console.log("Inverse grid shift iteration failed, presumably at grid edge.  Using first approximation.");break}s={x:i.x-(a.x+o.x),y:i.y-(a.y+o.y)},o.x+=s.x,o.y+=s.y}while(l--&&Math.abs(s.x)>1e-12&&Math.abs(s.y)>1e-12);if(l<0)return console.log("Inverse grid shift iterator failed to converge."),r;r.x=K_e(o.x+n.ll[0]),r.y=o.y+n.ll[1]}else isNaN(o.x)||(r.x=e.x+o.x,r.y=e.y+o.y);return r}function Ebe(e,t){var n,r={x:e.x/t.del[0],y:e.y/t.del[1]},i=Math.floor(r.x),o=Math.floor(r.y),s=r.x-1*i,a=r.y-1*o,l={x:Number.NaN,y:Number.NaN};if(i<0||i>=t.lim[0])return l;if(o<0||o>=t.lim[1])return l;n=o*t.lim[0]+i;var c=t.cvs[n][0],u=t.cvs[n][1];n++;var d=t.cvs[n][0],h=t.cvs[n][1];n+=t.lim[0];var p=t.cvs[n][0],f=t.cvs[n][1];n--;var g=t.cvs[n][0],m=t.cvs[n][1],y=s*a,v=s*(1-a),_=(1-s)*(1-a),b=(1-s)*a;return l.x=_*c+v*d+b*g+y*p,l.y=_*u+v*h+b*m+y*f,l}function Pbe(e,t,n){var r,i,o,s=n.x,a=n.y,l=n.z||0,c={};for(o=0;o<3;o++)if(!t||2!==o||void 0!==n.z)switch(0===o?(r=s,i=-1!=="ew".indexOf(e.axis[o])?"x":"y"):1===o?(r=a,i=-1!=="ns".indexOf(e.axis[o])?"y":"x"):(r=l,i="z"),e.axis[o]){case"e":case"n":c[i]=r;break;case"w":case"s":c[i]=-r;break;case"u":void 0!==n[i]&&(c.z=r);break;case"d":void 0!==n[i]&&(c.z=-r);break;default:return null}return c}function Cbe(e){var t={x:e[0],y:e[1]};return e.length>2&&(t.z=e[2]),e.length>3&&(t.m=e[3]),t}function Abe(e){if("function"===typeof Number.isFinite){if(Number.isFinite(e))return;throw new TypeError("coordinates must be finite numbers")}if("number"!==typeof e||e!==e||!isFinite(e))throw new TypeError("coordinates must be finite numbers")}function kbe(e,t,n,r){var i,o=void 0!==(n=Array.isArray(n)?Cbe(n):{x:n.x,y:n.y,z:n.z,m:n.m}).z;if(function(e){Abe(e.x),Abe(e.y)}(n),e.datum&&t.datum&&function(e,t){return(e.datum.datum_type===o_e||e.datum.datum_type===s_e||e.datum.datum_type===a_e)&&"WGS84"!==t.datumCode||(t.datum.datum_type===o_e||t.datum.datum_type===s_e||t.datum.datum_type===a_e)&&"WGS84"!==e.datumCode}(e,t)&&(n=kbe(e,i=new ybe("WGS84"),n,r),e=i),r&&"enu"!==e.axis&&(n=Pbe(e,!1,n)),"longlat"===e.projName)n={x:n.x*v_e,y:n.y*v_e,z:n.z||0};else if(e.to_meter&&(n={x:n.x*e.to_meter,y:n.y*e.to_meter,z:n.z||0}),!(n=e.inverse(n)))return;if(e.from_greenwich&&(n.x+=e.from_greenwich),n=xbe(e.datum,t.datum,n))return t.from_greenwich&&(n={x:n.x-t.from_greenwich,y:n.y,z:n.z||0}),"longlat"===t.projName?n={x:n.x*__e,y:n.y*__e,z:n.z||0}:(n=t.forward(n),t.to_meter&&(n={x:n.x/t.to_meter,y:n.y/t.to_meter,z:n.z||0})),r&&"enu"!==t.axis?Pbe(t,!0,n):(n&&!o&&delete n.z,n)}var jbe=ybe("WGS84");function Ibe(e,t,n,r){var i,o,s;return Array.isArray(n)?(i=kbe(e,t,n,r)||{x:NaN,y:NaN},n.length>2?"undefined"!==typeof e.name&&"geocent"===e.name||"undefined"!==typeof t.name&&"geocent"===t.name?"number"===typeof i.z?[i.x,i.y,i.z].concat(n.slice(3)):[i.x,i.y,n[2]].concat(n.slice(3)):[i.x,i.y].concat(n.slice(2)):[i.x,i.y]):(o=kbe(e,t,n,r),2===(s=Object.keys(n)).length||s.forEach((function(r){if("undefined"!==typeof e.name&&"geocent"===e.name||"undefined"!==typeof t.name&&"geocent"===t.name){if("x"===r||"y"===r||"z"===r)return}else if("x"===r||"y"===r)return;o[r]=n[r]})),o)}function Gbe(e){return e instanceof ybe?e:e.oProj?e.oProj:ybe(e)}const Tbe=function(e,t,n){e=Gbe(e);var r,i=!1;return"undefined"===typeof t?(t=e,e=jbe,i=!0):("undefined"!==typeof t.x||Array.isArray(t))&&(n=t,t=e,e=jbe,i=!0),t=Gbe(t),n?Ibe(e,t,n):(r={forward:function(n,r){return Ibe(e,t,n,r)},inverse:function(n,r){return Ibe(t,e,n,r)}},i&&(r.oProj=t),r)};var Mbe=6,Obe="AJSAJS",Rbe="AFAFAF",Dbe=65,Nbe=73,Lbe=79,Vbe=86,Fbe=90;const zbe={forward:Bbe,inverse:function(e){var t=qbe(Kbe(e.toUpperCase()));if(t.lat&&t.lon)return[t.lon,t.lat,t.lon,t.lat];return[t.left,t.bottom,t.right,t.top]},toPoint:Ube};function Bbe(e,t){return t=t||5,function(e,t){var n="00000"+e.easting,r="00000"+e.northing;return e.zoneNumber+e.zoneLetter+function(e,t,n){var r=Ybe(n),i=Math.floor(e/1e5),o=Math.floor(t/1e5)%20;return function(e,t,n){var r=n-1,i=Obe.charCodeAt(r),o=Rbe.charCodeAt(r),s=i+e-1,a=o+t,l=!1;s>Fbe&&(s=s-Fbe+Dbe-1,l=!0);(s===Nbe||i<Nbe&&s>Nbe||(s>Nbe||i<Nbe)&&l)&&s++;(s===Lbe||i<Lbe&&s>Lbe||(s>Lbe||i<Lbe)&&l)&&++s===Nbe&&s++;s>Fbe&&(s=s-Fbe+Dbe-1);a>Vbe?(a=a-Vbe+Dbe-1,l=!0):l=!1;(a===Nbe||o<Nbe&&a>Nbe||(a>Nbe||o<Nbe)&&l)&&a++;(a===Lbe||o<Lbe&&a>Lbe||(a>Lbe||o<Lbe)&&l)&&++a===Nbe&&a++;a>Vbe&&(a=a-Vbe+Dbe-1);return String.fromCharCode(s)+String.fromCharCode(a)}(i,o,r)}(e.easting,e.northing,e.zoneNumber)+n.substr(n.length-5,t)+r.substr(r.length-5,t)}(function(e){var t,n,r,i,o,s,a,l,c=e.lat,u=e.lon,d=6378137,h=.00669438,p=.9996,f=Wbe(c),g=Wbe(u);l=Math.floor((u+180)/6)+1,180===u&&(l=60);c>=56&&c<64&&u>=3&&u<12&&(l=32);c>=72&&c<84&&(u>=0&&u<9?l=31:u>=9&&u<21?l=33:u>=21&&u<33?l=35:u>=33&&u<42&&(l=37));a=Wbe(6*(l-1)-180+3),t=h/(1-h),n=d/Math.sqrt(1-h*Math.sin(f)*Math.sin(f)),r=Math.tan(f)*Math.tan(f),i=t*Math.cos(f)*Math.cos(f),o=Math.cos(f)*(g-a),s=d*((1-h/4-3*h*h/64-5*h*h*h/256)*f-(3*h/8+3*h*h/32+45*h*h*h/1024)*Math.sin(2*f)+(15*h*h/256+45*h*h*h/1024)*Math.sin(4*f)-35*h*h*h/3072*Math.sin(6*f));var m=p*n*(o+(1-r+i)*o*o*o/6+(5-18*r+r*r+72*i-58*t)*o*o*o*o*o/120)+5e5,y=p*(s+n*Math.tan(f)*(o*o/2+(5-r+9*i+4*i*i)*o*o*o*o/24+(61-58*r+r*r+600*i-330*t)*o*o*o*o*o*o/720));c<0&&(y+=1e7);return{northing:Math.round(y),easting:Math.round(m),zoneNumber:l,zoneLetter:Xbe(c)}}({lat:e[1],lon:e[0]}),t)}function Ube(e){var t=qbe(Kbe(e.toUpperCase()));return t.lat&&t.lon?[t.lon,t.lat]:[(t.left+t.right)/2,(t.top+t.bottom)/2]}function Wbe(e){return e*(Math.PI/180)}function Hbe(e){return e/Math.PI*180}function qbe(e){var t=e.northing,n=e.easting,r=e.zoneLetter,i=e.zoneNumber;if(i<0||i>60)return null;var o,s,a,l,c,u,d,h,p,f=.9996,g=6378137,m=.00669438,y=(1-Math.sqrt(.99330562))/(1+Math.sqrt(.99330562)),v=n-5e5,_=t;r<"N"&&(_-=1e7),d=6*(i-1)-180+3,o=.006739496752268451,p=(h=_/f/6367449.145945056)+(3*y/2-27*y*y*y/32)*Math.sin(2*h)+(21*y*y/16-55*y*y*y*y/32)*Math.sin(4*h)+151*y*y*y/96*Math.sin(6*h),s=g/Math.sqrt(1-m*Math.sin(p)*Math.sin(p)),a=Math.tan(p)*Math.tan(p),l=o*Math.cos(p)*Math.cos(p),c=.99330562*g/Math.pow(1-m*Math.sin(p)*Math.sin(p),1.5),u=v/(s*f);var b=p-s*Math.tan(p)/c*(u*u/2-(5+3*a+10*l-4*l*l-9*o)*u*u*u*u/24+(61+90*a+298*l+45*a*a-1.6983531815716497-3*l*l)*u*u*u*u*u*u/720);b=Hbe(b);var x,S=(u-(1+2*a+l)*u*u*u/6+(5-2*l+28*a-3*l*l+8*o+24*a*a)*u*u*u*u*u/120)/Math.cos(p);if(S=d+Hbe(S),e.accuracy){var w=qbe({northing:e.northing+e.accuracy,easting:e.easting+e.accuracy,zoneLetter:e.zoneLetter,zoneNumber:e.zoneNumber});x={top:w.lat,right:w.lon,bottom:b,left:S}}else x={lat:b,lon:S};return x}function Xbe(e){var t="Z";return 84>=e&&e>=72?t="X":72>e&&e>=64?t="W":64>e&&e>=56?t="V":56>e&&e>=48?t="U":48>e&&e>=40?t="T":40>e&&e>=32?t="S":32>e&&e>=24?t="R":24>e&&e>=16?t="Q":16>e&&e>=8?t="P":8>e&&e>=0?t="N":0>e&&e>=-8?t="M":-8>e&&e>=-16?t="L":-16>e&&e>=-24?t="K":-24>e&&e>=-32?t="J":-32>e&&e>=-40?t="H":-40>e&&e>=-48?t="G":-48>e&&e>=-56?t="F":-56>e&&e>=-64?t="E":-64>e&&e>=-72?t="D":-72>e&&e>=-80&&(t="C"),t}function Ybe(e){var t=e%Mbe;return 0===t&&(t=Mbe),t}function Kbe(e){if(e&&0===e.length)throw"MGRSPoint coverting from nothing";for(var t,n=e.length,r=null,i="",o=0;!/[A-Z]/.test(t=e.charAt(o));){if(o>=2)throw"MGRSPoint bad conversion from: "+e;i+=t,o++}var s=parseInt(i,10);if(0===o||o+3>n)throw"MGRSPoint bad conversion from: "+e;var a=e.charAt(o++);if(a<="A"||"B"===a||"Y"===a||a>="Z"||"I"===a||"O"===a)throw"MGRSPoint zone letter "+a+" not handled: "+e;r=e.substring(o,o+=2);for(var l=Ybe(s),c=function(e,t){var n=Obe.charCodeAt(t-1),r=1e5,i=!1;for(;n!==e.charCodeAt(0);){if(++n===Nbe&&n++,n===Lbe&&n++,n>Fbe){if(i)throw"Bad character: "+e;n=Dbe,i=!0}r+=1e5}return r}(r.charAt(0),l),u=function(e,t){if(e>"V")throw"MGRSPoint given invalid Northing "+e;var n=Rbe.charCodeAt(t-1),r=0,i=!1;for(;n!==e.charCodeAt(0);){if(++n===Nbe&&n++,n===Lbe&&n++,n>Vbe){if(i)throw"Bad character: "+e;n=Dbe,i=!0}r+=1e5}return r}(r.charAt(1),l);u<Zbe(a);)u+=2e6;var d=n-o;if(d%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"+e;var h,p,f,g=d/2,m=0,y=0;return g>0&&(h=1e5/Math.pow(10,g),p=e.substring(o,o+g),m=parseFloat(p)*h,f=e.substring(o+g),y=parseFloat(f)*h),{easting:m+c,northing:y+u,zoneLetter:a,zoneNumber:s,accuracy:h}}function Zbe(e){var t;switch(e){case"C":t=11e5;break;case"D":t=2e6;break;case"E":t=28e5;break;case"F":t=37e5;break;case"G":t=46e5;break;case"H":t=55e5;break;case"J":t=64e5;break;case"K":t=73e5;break;case"L":t=82e5;break;case"M":t=91e5;break;case"N":t=0;break;case"P":t=8e5;break;case"Q":t=17e5;break;case"R":t=26e5;break;case"S":t=35e5;break;case"T":t=44e5;break;case"U":t=53e5;break;case"V":t=62e5;break;case"W":t=7e6;break;case"X":t=79e5;break;default:t=-1}if(t>=0)return t;throw"Invalid zone letter: "+e}function $be(e,t,n){if(!(this instanceof $be))return new $be(e,t,n);if(Array.isArray(e))this.x=e[0],this.y=e[1],this.z=e[2]||0;else if("object"===typeof e)this.x=e.x,this.y=e.y,this.z=e.z||0;else if("string"===typeof e&&"undefined"===typeof t){var r=e.split(",");this.x=parseFloat(r[0],10),this.y=parseFloat(r[1],10),this.z=parseFloat(r[2],10)||0}else this.x=e,this.y=t,this.z=n||0;console.warn("proj4.Point will be removed in version 3, use proj4.toPoint")}$be.fromMGRS=function(e){return new $be(Ube(e))},$be.prototype.toMGRS=function(e){return Bbe([this.x,this.y],e)};const Jbe=$be;var Qbe=1,exe=.25,txe=.046875,nxe=.01953125,rxe=.01068115234375,ixe=.75,oxe=.46875,sxe=.013020833333333334,axe=.007120768229166667,lxe=.3645833333333333,cxe=.005696614583333333,uxe=.3076171875;function dxe(e){var t=[];t[0]=Qbe-e*(exe+e*(txe+e*(nxe+e*rxe))),t[1]=e*(ixe-e*(txe+e*(nxe+e*rxe)));var n=e*e;return t[2]=n*(oxe-e*(sxe+e*axe)),n*=e,t[3]=n*(lxe-e*cxe),t[4]=n*e*uxe,t}function hxe(e,t,n,r){return n*=t,t*=t,r[0]*e-n*(r[1]+t*(r[2]+t*(r[3]+t*r[4])))}var pxe=20;function fxe(e,t,n){for(var r=1/(1-t),i=e,o=pxe;o;--o){var s=Math.sin(i),a=1-t*s*s;if(i-=a=(hxe(i,s,Math.cos(i),n)-e)*(a*Math.sqrt(a))*r,Math.abs(a)<y_e)return i}return i}const gxe={init:function(){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.es&&(this.en=dxe(this.es),this.ml0=hxe(this.lat0,Math.sin(this.lat0),Math.cos(this.lat0),this.en))},forward:function(e){var t,n,r,i=e.x,o=e.y,s=K_e(i-this.long0),a=Math.sin(o),l=Math.cos(o);if(this.es){var c=l*s,u=Math.pow(c,2),d=this.ep2*Math.pow(l,2),h=Math.pow(d,2),p=Math.abs(l)>y_e?Math.tan(o):0,f=Math.pow(p,2),g=Math.pow(f,2);t=1-this.es*Math.pow(a,2),c/=Math.sqrt(t);var m=hxe(o,a,l,this.en);n=this.a*(this.k0*c*(1+u/6*(1-f+d+u/20*(5-18*f+g+14*d-58*f*d+u/42*(61+179*g-g*f-479*f)))))+this.x0,r=this.a*(this.k0*(m-this.ml0+a*s*c/2*(1+u/12*(5-f+9*d+4*h+u/30*(61+g-58*f+270*d-330*f*d+u/56*(1385+543*g-g*f-3111*f))))))+this.y0}else{var y=l*Math.sin(s);if(Math.abs(Math.abs(y)-1)<y_e)return 93;if(n=.5*this.a*this.k0*Math.log((1+y)/(1-y))+this.x0,r=l*Math.cos(s)/Math.sqrt(1-Math.pow(y,2)),(y=Math.abs(r))>=1){if(y-1>y_e)return 93;r=0}else r=Math.acos(r);o<0&&(r=-r),r=this.a*this.k0*(r-this.lat0)+this.y0}return e.x=n,e.y=r,e},inverse:function(e){var t,n,r,i,o=(e.x-this.x0)*(1/this.a),s=(e.y-this.y0)*(1/this.a);if(this.es)if(n=fxe(t=this.ml0+s/this.k0,this.es,this.en),Math.abs(n)<p_e){var a=Math.sin(n),l=Math.cos(n),c=Math.abs(l)>y_e?Math.tan(n):0,u=this.ep2*Math.pow(l,2),d=Math.pow(u,2),h=Math.pow(c,2),p=Math.pow(h,2);t=1-this.es*Math.pow(a,2);var f=o*Math.sqrt(t)/this.k0,g=Math.pow(f,2);r=n-(t*=c)*g/(1-this.es)*.5*(1-g/12*(5+3*h-9*u*h+u-4*d-g/30*(61+90*h-252*u*h+45*p+46*u-g/56*(1385+3633*h+4095*p+1574*p*h)))),i=K_e(this.long0+f*(1-g/6*(1+2*h+u-g/20*(5+28*h+24*p+8*u*h+6*u-g/42*(61+662*h+1320*p+720*p*h))))/l)}else r=p_e*Y_e(s),i=0;else{var m=Math.exp(o/this.k0),y=.5*(m-1/m),v=this.lat0+s/this.k0,_=Math.cos(v);t=Math.sqrt((1-Math.pow(_,2))/(1+Math.pow(y,2))),r=Math.asin(t),s<0&&(r=-r),i=0===y&&0===_?0:K_e(Math.atan2(y,_)+this.long0)}return e.x=i,e.y=r,e},names:["Fast_Transverse_Mercator","Fast Transverse Mercator"]};function mxe(e){var t=Math.exp(e);return t=(t-1/t)/2}function yxe(e,t){e=Math.abs(e),t=Math.abs(t);var n=Math.max(e,t),r=Math.min(e,t)/(n||1);return n*Math.sqrt(1+Math.pow(r,2))}function vxe(e){var t=Math.abs(e);return t=function(e){var t=1+e,n=t-1;return 0===n?e:e*Math.log(t)/n}(t*(1+t/(yxe(1,t)+1))),e<0?-t:t}function _xe(e,t){for(var n,r=2*Math.cos(2*t),i=e.length-1,o=e[i],s=0;--i>=0;)n=r*o-s+e[i],s=o,o=n;return t+n*Math.sin(2*t)}function bxe(e,t,n){for(var r,i,o=Math.sin(t),s=Math.cos(t),a=mxe(n),l=function(e){var t=Math.exp(e);return(t+1/t)/2}(n),c=2*s*l,u=-2*o*a,d=e.length-1,h=e[d],p=0,f=0,g=0;--d>=0;)r=f,i=p,h=c*(f=h)-r-u*(p=g)+e[d],g=u*f-i+c*p;return[(c=o*l)*h-(u=s*a)*g,c*g+u*h]}const xxe={init:function(){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&&(gxe.init.apply(this),this.forward=gxe.forward,this.inverse=gxe.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 e=this.es/(1+Math.sqrt(1-this.es)),t=e/(2-e),n=t;this.cgb[0]=t*(2+t*(-2/3+t*(t*(116/45+t*(26/45+t*(-2854/675)))-2))),this.cbg[0]=t*(t*(2/3+t*(4/3+t*(-82/45+t*(32/45+t*(4642/4725)))))-2),n*=t,this.cgb[1]=n*(7/3+t*(t*(-227/45+t*(2704/315+t*(2323/945)))-1.6)),this.cbg[1]=n*(5/3+t*(-16/15+t*(-13/9+t*(904/315+t*(-1522/945))))),n*=t,this.cgb[2]=n*(56/15+t*(-136/35+t*(-1262/105+t*(73814/2835)))),this.cbg[2]=n*(-26/15+t*(34/21+t*(1.6+t*(-12686/2835)))),n*=t,this.cgb[3]=n*(4279/630+t*(-332/35+t*(-399572/14175))),this.cbg[3]=n*(1237/630+t*(t*(-24832/14175)-2.4)),n*=t,this.cgb[4]=n*(4174/315+t*(-144838/6237)),this.cbg[4]=n*(-734/315+t*(109598/31185)),n*=t,this.cgb[5]=n*(601676/22275),this.cbg[5]=n*(444337/155925),n=Math.pow(t,2),this.Qn=this.k0/(1+t)*(1+n*(1/4+n*(1/64+n/256))),this.utg[0]=t*(t*(2/3+t*(-37/96+t*(1/360+t*(81/512+t*(-96199/604800)))))-.5),this.gtu[0]=t*(.5+t*(-2/3+t*(5/16+t*(41/180+t*(-127/288+t*(7891/37800)))))),this.utg[1]=n*(-1/48+t*(-1/15+t*(437/1440+t*(-46/105+t*(1118711/3870720))))),this.gtu[1]=n*(13/48+t*(t*(557/1440+t*(281/630+t*(-1983433/1935360)))-.6)),n*=t,this.utg[2]=n*(-17/480+t*(37/840+t*(209/4480+t*(-5569/90720)))),this.gtu[2]=n*(61/240+t*(-103/140+t*(15061/26880+t*(167603/181440)))),n*=t,this.utg[3]=n*(-4397/161280+t*(11/504+t*(830251/7257600))),this.gtu[3]=n*(49561/161280+t*(-179/168+t*(6601661/7257600))),n*=t,this.utg[4]=n*(-4583/161280+t*(108847/3991680)),this.gtu[4]=n*(34729/80640+t*(-3418889/1995840)),n*=t,this.utg[5]=n*(-20648693/638668800),this.gtu[5]=.6650675310896665*n;var r=_xe(this.cbg,this.lat0);this.Zb=-this.Qn*(r+function(e,t){for(var n,r=2*Math.cos(t),i=e.length-1,o=e[i],s=0;--i>=0;)n=r*o-s+e[i],s=o,o=n;return Math.sin(t)*n}(this.gtu,2*r))},forward:function(e){var t=K_e(e.x-this.long0),n=e.y;n=_xe(this.cbg,n);var r=Math.sin(n),i=Math.cos(n),o=Math.sin(t),s=Math.cos(t);n=Math.atan2(r,s*i),t=Math.atan2(o*i,yxe(r,i*s)),t=vxe(Math.tan(t));var a,l,c=bxe(this.gtu,2*n,2*t);return n+=c[0],t+=c[1],Math.abs(t)<=2.623395162778?(a=this.a*(this.Qn*t)+this.x0,l=this.a*(this.Qn*n+this.Zb)+this.y0):(a=1/0,l=1/0),e.x=a,e.y=l,e},inverse:function(e){var t,n,r=(e.x-this.x0)*(1/this.a),i=(e.y-this.y0)*(1/this.a);if(i=(i-this.Zb)/this.Qn,r/=this.Qn,Math.abs(r)<=2.623395162778){var o=bxe(this.utg,2*i,2*r);i+=o[0],r+=o[1],r=Math.atan(mxe(r));var s=Math.sin(i),a=Math.cos(i),l=Math.sin(r),c=Math.cos(r);i=Math.atan2(s*c,yxe(l,c*a)),t=K_e((r=Math.atan2(l,c*a))+this.long0),n=_xe(this.cgb,i)}else t=1/0,n=1/0;return e.x=t,e.y=n,e},names:["Extended_Transverse_Mercator","Extended Transverse Mercator","etmerc","Transverse_Mercator","Transverse Mercator","Gauss Kruger","Gauss_Kruger","tmerc"]};const Sxe={init:function(){var e=function(e,t){if(void 0===e){if((e=Math.floor(30*(K_e(t)+Math.PI)/Math.PI)+1)<0)return 0;if(e>60)return 60}return e}(this.zone,this.long0);if(void 0===e)throw new Error("unknown utm zone");this.lat0=0,this.long0=(6*Math.abs(e)-183)*v_e,this.x0=5e5,this.y0=this.utmSouth?1e7:0,this.k0=.9996,xxe.init.apply(this),this.forward=xxe.forward,this.inverse=xxe.inverse},names:["Universal Transverse Mercator System","utm"],dependsOn:"etmerc"};function wxe(e,t){return Math.pow((1-e)/(1+e),t)}const Exe={init:function(){var e=Math.sin(this.lat0),t=Math.cos(this.lat0);t*=t,this.rc=Math.sqrt(1-this.es)/(1-this.es*e*e),this.C=Math.sqrt(1+this.es*t*t/(1-this.es)),this.phic0=Math.asin(e/this.C),this.ratexp=.5*this.C*this.e,this.K=Math.tan(.5*this.phic0+b_e)/(Math.pow(Math.tan(.5*this.lat0+b_e),this.C)*wxe(this.e*e,this.ratexp))},forward:function(e){var t=e.x,n=e.y;return e.y=2*Math.atan(this.K*Math.pow(Math.tan(.5*n+b_e),this.C)*wxe(this.e*Math.sin(n),this.ratexp))-p_e,e.x=this.C*t,e},inverse:function(e){for(var t=e.x/this.C,n=e.y,r=Math.pow(Math.tan(.5*n+b_e)/this.K,1/this.C),i=20;i>0&&(n=2*Math.atan(r*wxe(this.e*Math.sin(e.y),-.5*this.e))-p_e,!(Math.abs(n-e.y)<1e-14));--i)e.y=n;return i?(e.x=t,e.y=n,e):null},names:["gauss"]};const Pxe={init:function(){Exe.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(e){var t,n,r,i;return e.x=K_e(e.x-this.long0),Exe.forward.apply(this,[e]),t=Math.sin(e.y),n=Math.cos(e.y),r=Math.cos(e.x),i=this.k0*this.R2/(1+this.sinc0*t+this.cosc0*n*r),e.x=i*n*Math.sin(e.x),e.y=i*(this.cosc0*t-this.sinc0*n*r),e.x=this.a*e.x+this.x0,e.y=this.a*e.y+this.y0,e},inverse:function(e){var t,n,r,i,o;if(e.x=(e.x-this.x0)/this.a,e.y=(e.y-this.y0)/this.a,e.x/=this.k0,e.y/=this.k0,o=yxe(e.x,e.y)){var s=2*Math.atan2(o,this.R2);t=Math.sin(s),n=Math.cos(s),i=Math.asin(n*this.sinc0+e.y*t*this.cosc0/o),r=Math.atan2(e.x*t,o*this.cosc0*n-e.y*this.sinc0*t)}else i=this.phic0,r=0;return e.x=r,e.y=i,Exe.inverse.apply(this,[e]),e.x=K_e(e.x+this.long0),e},names:["Stereographic_North_Pole","Oblique_Stereographic","sterea","Oblique Stereographic Alternative","Double_Stereographic"]};const Cxe={init:function(){this.x0=this.x0||0,this.y0=this.y0||0,this.lat0=this.lat0||0,this.long0=this.long0||0,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)<=y_e&&(this.k0=.5*(1+Y_e(this.lat0)*Math.sin(this.lat_ts))):(Math.abs(this.coslat0)<=y_e&&(this.lat0>0?this.con=1:this.con=-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)<=y_e&&Math.abs(Math.cos(this.lat_ts))>y_e&&(this.k0=.5*this.cons*X_e(this.e,Math.sin(this.lat_ts),Math.cos(this.lat_ts))/Z_e(this.e,this.con*this.lat_ts,this.con*Math.sin(this.lat_ts))),this.ms1=X_e(this.e,this.sinlat0,this.coslat0),this.X0=2*Math.atan(this.ssfn_(this.lat0,this.sinlat0,this.e))-p_e,this.cosX0=Math.cos(this.X0),this.sinX0=Math.sin(this.X0))},forward:function(e){var t,n,r,i,o,s,a=e.x,l=e.y,c=Math.sin(l),u=Math.cos(l),d=K_e(a-this.long0);return Math.abs(Math.abs(a-this.long0)-Math.PI)<=y_e&&Math.abs(l+this.lat0)<=y_e?(e.x=NaN,e.y=NaN,e):this.sphere?(t=2*this.k0/(1+this.sinlat0*c+this.coslat0*u*Math.cos(d)),e.x=this.a*t*u*Math.sin(d)+this.x0,e.y=this.a*t*(this.coslat0*c-this.sinlat0*u*Math.cos(d))+this.y0,e):(n=2*Math.atan(this.ssfn_(l,c,this.e))-p_e,i=Math.cos(n),r=Math.sin(n),Math.abs(this.coslat0)<=y_e?(o=Z_e(this.e,l*this.con,this.con*c),s=2*this.a*this.k0*o/this.cons,e.x=this.x0+s*Math.sin(a-this.long0),e.y=this.y0-this.con*s*Math.cos(a-this.long0),e):(Math.abs(this.sinlat0)<y_e?(t=2*this.a*this.k0/(1+i*Math.cos(d)),e.y=t*r):(t=2*this.a*this.k0*this.ms1/(this.cosX0*(1+this.sinX0*r+this.cosX0*i*Math.cos(d))),e.y=t*(this.cosX0*r-this.sinX0*i*Math.cos(d))+this.y0),e.x=t*i*Math.sin(d)+this.x0,e))},inverse:function(e){var t,n,r,i,o;e.x-=this.x0,e.y-=this.y0;var s=Math.sqrt(e.x*e.x+e.y*e.y);if(this.sphere){var a=2*Math.atan(s/(2*this.a*this.k0));return t=this.long0,n=this.lat0,s<=y_e?(e.x=t,e.y=n,e):(n=Math.asin(Math.cos(a)*this.sinlat0+e.y*Math.sin(a)*this.coslat0/s),t=Math.abs(this.coslat0)<y_e?this.lat0>0?K_e(this.long0+Math.atan2(e.x,-1*e.y)):K_e(this.long0+Math.atan2(e.x,e.y)):K_e(this.long0+Math.atan2(e.x*Math.sin(a),s*this.coslat0*Math.cos(a)-e.y*this.sinlat0*Math.sin(a))),e.x=t,e.y=n,e)}if(Math.abs(this.coslat0)<=y_e){if(s<=y_e)return n=this.lat0,t=this.long0,e.x=t,e.y=n,e;e.x*=this.con,e.y*=this.con,r=s*this.cons/(2*this.a*this.k0),n=this.con*$_e(this.e,r),t=this.con*K_e(this.con*this.long0+Math.atan2(e.x,-1*e.y))}else i=2*Math.atan(s*this.cosX0/(2*this.a*this.k0*this.ms1)),t=this.long0,s<=y_e?o=this.X0:(o=Math.asin(Math.cos(i)*this.sinX0+e.y*Math.sin(i)*this.cosX0/s),t=K_e(this.long0+Math.atan2(e.x*Math.sin(i),s*this.cosX0*Math.cos(i)-e.y*this.sinX0*Math.sin(i)))),n=-1*$_e(this.e,Math.tan(.5*(p_e+o)));return e.x=t,e.y=n,e},names:["stere","Stereographic_South_Pole","Polar Stereographic (variant B)","Polar_Stereographic"],ssfn_:function(e,t,n){return t*=n,Math.tan(.5*(p_e+e))*Math.pow((1-t)/(1+t),.5*n)}};const Axe={init:function(){var e=this.lat0;this.lambda0=this.long0;var t=Math.sin(e),n=this.a,r=1/this.rf,i=2*r-Math.pow(r,2),o=this.e=Math.sqrt(i);this.R=this.k0*n*Math.sqrt(1-i)/(1-i*Math.pow(t,2)),this.alpha=Math.sqrt(1+i/(1-i)*Math.pow(Math.cos(e),4)),this.b0=Math.asin(t/this.alpha);var s=Math.log(Math.tan(Math.PI/4+this.b0/2)),a=Math.log(Math.tan(Math.PI/4+e/2)),l=Math.log((1+o*t)/(1-o*t));this.K=s-this.alpha*a+this.alpha*o/2*l},forward:function(e){var t=Math.log(Math.tan(Math.PI/4-e.y/2)),n=this.e/2*Math.log((1+this.e*Math.sin(e.y))/(1-this.e*Math.sin(e.y))),r=-this.alpha*(t+n)+this.K,i=2*(Math.atan(Math.exp(r))-Math.PI/4),o=this.alpha*(e.x-this.lambda0),s=Math.atan(Math.sin(o)/(Math.sin(this.b0)*Math.tan(i)+Math.cos(this.b0)*Math.cos(o))),a=Math.asin(Math.cos(this.b0)*Math.sin(i)-Math.sin(this.b0)*Math.cos(i)*Math.cos(o));return e.y=this.R/2*Math.log((1+Math.sin(a))/(1-Math.sin(a)))+this.y0,e.x=this.R*s+this.x0,e},inverse:function(e){for(var t=e.x-this.x0,n=e.y-this.y0,r=t/this.R,i=2*(Math.atan(Math.exp(n/this.R))-Math.PI/4),o=Math.asin(Math.cos(this.b0)*Math.sin(i)+Math.sin(this.b0)*Math.cos(i)*Math.cos(r)),s=Math.atan(Math.sin(r)/(Math.cos(this.b0)*Math.cos(r)-Math.sin(this.b0)*Math.tan(i))),a=this.lambda0+s/this.alpha,l=0,c=o,u=-1e3,d=0;Math.abs(c-u)>1e-7;){if(++d>20)return;l=1/this.alpha*(Math.log(Math.tan(Math.PI/4+o/2))-this.K)+this.e*Math.log(Math.tan(Math.PI/4+Math.asin(this.e*Math.sin(c))/2)),u=c,c=2*Math.atan(Math.exp(l))-Math.PI/2}return e.x=a,e.y=c,e},names:["somerc"]};var kxe=1e-7;const jxe={init:function(){var e,t,n,r,i,o,s,a,l,c,u,d=0,h=0,p=0,f=0,g=0,m=0,y=0;this.no_off=function(e){var t="object"===typeof e.PROJECTION?Object.keys(e.PROJECTION)[0]:e.PROJECTION;return"no_uoff"in e||"no_off"in e||-1!==["Hotine_Oblique_Mercator","Hotine_Oblique_Mercator_Azimuth_Natural_Origin"].indexOf(t)}(this),this.no_rot="no_rot"in this;var v=!1;"alpha"in this&&(v=!0);var _=!1;if("rectified_grid_angle"in this&&(_=!0),v&&(y=this.alpha),_&&(d=this.rectified_grid_angle*v_e),v||_)h=this.longc;else if(p=this.long1,g=this.lat1,f=this.long2,m=this.lat2,Math.abs(g-m)<=kxe||(e=Math.abs(g))<=kxe||Math.abs(e-p_e)<=kxe||Math.abs(Math.abs(this.lat0)-p_e)<=kxe||Math.abs(Math.abs(m)-p_e)<=kxe)throw new Error;var b=1-this.es;t=Math.sqrt(b),Math.abs(this.lat0)>y_e?(a=Math.sin(this.lat0),n=Math.cos(this.lat0),e=1-this.es*a*a,this.B=n*n,this.B=Math.sqrt(1+this.es*this.B*this.B/b),this.A=this.B*this.k0*t/e,(i=(r=this.B*t/(n*Math.sqrt(e)))*r-1)<=0?i=0:(i=Math.sqrt(i),this.lat0<0&&(i=-i)),this.E=i+=r,this.E*=Math.pow(Z_e(this.e,this.lat0,a),this.B)):(this.B=1/t,this.A=this.k0,this.E=r=i=1),v||_?(v?(u=Math.asin(Math.sin(y)/r),_||(d=y)):(u=d,y=Math.asin(r*Math.sin(u))),this.lam0=h-Math.asin(.5*(i-1/i)*Math.tan(u))/this.B):(o=Math.pow(Z_e(this.e,g,Math.sin(g)),this.B),s=Math.pow(Z_e(this.e,m,Math.sin(m)),this.B),i=this.E/o,l=(s-o)/(s+o),c=((c=this.E*this.E)-s*o)/(c+s*o),(e=p-f)<-Math.pi?f-=x_e:e>Math.pi&&(f+=x_e),this.lam0=K_e(.5*(p+f)-Math.atan(c*Math.tan(.5*this.B*(p-f))/l)/this.B),u=Math.atan(2*Math.sin(this.B*K_e(p-this.lam0))/(i-1/i)),d=y=Math.asin(r*Math.sin(u))),this.singam=Math.sin(u),this.cosgam=Math.cos(u),this.sinrot=Math.sin(d),this.cosrot=Math.cos(d),this.rB=1/this.B,this.ArB=this.A*this.rB,this.BrA=1/this.ArB,this.A,this.B,this.no_off?this.u_0=0:(this.u_0=Math.abs(this.ArB*Math.atan(Math.sqrt(r*r-1)/Math.cos(y))),this.lat0<0&&(this.u_0=-this.u_0)),i=.5*u,this.v_pole_n=this.ArB*Math.log(Math.tan(b_e-i)),this.v_pole_s=this.ArB*Math.log(Math.tan(b_e+i))},forward:function(e){var t,n,r,i,o,s,a,l,c={};if(e.x=e.x-this.lam0,Math.abs(Math.abs(e.y)-p_e)>y_e){if(t=.5*((o=this.E/Math.pow(Z_e(this.e,e.y,Math.sin(e.y)),this.B))-(s=1/o)),n=.5*(o+s),i=Math.sin(this.B*e.x),r=(t*this.singam-i*this.cosgam)/n,Math.abs(Math.abs(r)-1)<y_e)throw new Error;l=.5*this.ArB*Math.log((1-r)/(1+r)),s=Math.cos(this.B*e.x),a=Math.abs(s)<kxe?this.A*e.x:this.ArB*Math.atan2(t*this.cosgam+i*this.singam,s)}else l=e.y>0?this.v_pole_n:this.v_pole_s,a=this.ArB*e.y;return this.no_rot?(c.x=a,c.y=l):(a-=this.u_0,c.x=l*this.cosrot+a*this.sinrot,c.y=a*this.cosrot-l*this.sinrot),c.x=this.a*c.x+this.x0,c.y=this.a*c.y+this.y0,c},inverse:function(e){var t,n,r,i,o,s,a,l={};if(e.x=(e.x-this.x0)*(1/this.a),e.y=(e.y-this.y0)*(1/this.a),this.no_rot?(n=e.y,t=e.x):(n=e.x*this.cosrot-e.y*this.sinrot,t=e.y*this.cosrot+e.x*this.sinrot+this.u_0),i=.5*((r=Math.exp(-this.BrA*n))-1/r),o=.5*(r+1/r),a=((s=Math.sin(this.BrA*t))*this.cosgam+i*this.singam)/o,Math.abs(Math.abs(a)-1)<y_e)l.x=0,l.y=a<0?-p_e:p_e;else{if(l.y=this.E/Math.sqrt((1+a)/(1-a)),l.y=$_e(this.e,Math.pow(l.y,1/this.B)),l.y===1/0)throw new Error;l.x=-this.rB*Math.atan2(i*this.cosgam-s*this.singam,Math.cos(this.BrA*t))}return l.x+=this.lam0,l},names:["Hotine_Oblique_Mercator","Hotine Oblique Mercator","Hotine_Oblique_Mercator_Azimuth_Natural_Origin","Hotine_Oblique_Mercator_Two_Point_Natural_Origin","Hotine_Oblique_Mercator_Azimuth_Center","Oblique_Mercator","omerc"]};const Ixe={init:function(){if(this.lat2||(this.lat2=this.lat1),this.k0||(this.k0=1),this.x0=this.x0||0,this.y0=this.y0||0,!(Math.abs(this.lat1+this.lat2)<y_e)){var e=this.b/this.a;this.e=Math.sqrt(1-e*e);var t=Math.sin(this.lat1),n=Math.cos(this.lat1),r=X_e(this.e,t,n),i=Z_e(this.e,this.lat1,t),o=Math.sin(this.lat2),s=Math.cos(this.lat2),a=X_e(this.e,o,s),l=Z_e(this.e,this.lat2,o),c=Z_e(this.e,this.lat0,Math.sin(this.lat0));Math.abs(this.lat1-this.lat2)>y_e?this.ns=Math.log(r/a)/Math.log(i/l):this.ns=t,isNaN(this.ns)&&(this.ns=t),this.f0=r/(this.ns*Math.pow(i,this.ns)),this.rh=this.a*this.f0*Math.pow(c,this.ns),this.title||(this.title="Lambert Conformal Conic")}},forward:function(e){var t=e.x,n=e.y;Math.abs(2*Math.abs(n)-Math.PI)<=y_e&&(n=Y_e(n)*(p_e-2*y_e));var r,i,o=Math.abs(Math.abs(n)-p_e);if(o>y_e)r=Z_e(this.e,n,Math.sin(n)),i=this.a*this.f0*Math.pow(r,this.ns);else{if((o=n*this.ns)<=0)return null;i=0}var s=this.ns*K_e(t-this.long0);return e.x=this.k0*(i*Math.sin(s))+this.x0,e.y=this.k0*(this.rh-i*Math.cos(s))+this.y0,e},inverse:function(e){var t,n,r,i,o,s=(e.x-this.x0)/this.k0,a=this.rh-(e.y-this.y0)/this.k0;this.ns>0?(t=Math.sqrt(s*s+a*a),n=1):(t=-Math.sqrt(s*s+a*a),n=-1);var l=0;if(0!==t&&(l=Math.atan2(n*s,n*a)),0!==t||this.ns>0){if(n=1/this.ns,r=Math.pow(t/(this.a*this.f0),n),-9999===(i=$_e(this.e,r)))return null}else i=-p_e;return o=K_e(l/this.ns+this.long0),e.x=o,e.y=i,e},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)"]};const Gxe={init:function(){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(e){var t,n,r,i,o,s,a,l=e.x,c=e.y,u=K_e(l-this.long0);return t=Math.pow((1+this.e*Math.sin(c))/(1-this.e*Math.sin(c)),this.alfa*this.e/2),n=2*(Math.atan(this.k*Math.pow(Math.tan(c/2+this.s45),this.alfa)/t)-this.s45),r=-u*this.alfa,i=Math.asin(Math.cos(this.ad)*Math.sin(n)+Math.sin(this.ad)*Math.cos(n)*Math.cos(r)),o=Math.asin(Math.cos(n)*Math.sin(r)/Math.cos(i)),s=this.n*o,a=this.ro0*Math.pow(Math.tan(this.s0/2+this.s45),this.n)/Math.pow(Math.tan(i/2+this.s45),this.n),e.y=a*Math.cos(s)/1,e.x=a*Math.sin(s)/1,this.czech||(e.y*=-1,e.x*=-1),e},inverse:function(e){var t,n,r,i,o,s,a,l=e.x;e.x=e.y,e.y=l,this.czech||(e.y*=-1,e.x*=-1),o=Math.sqrt(e.x*e.x+e.y*e.y),i=Math.atan2(e.y,e.x)/Math.sin(this.s0),r=2*(Math.atan(Math.pow(this.ro0/o,1/this.n)*Math.tan(this.s0/2+this.s45))-this.s45),t=Math.asin(Math.cos(this.ad)*Math.sin(r)-Math.sin(this.ad)*Math.cos(r)*Math.cos(i)),n=Math.asin(Math.cos(r)*Math.sin(i)/Math.cos(t)),e.x=this.long0-n/this.alfa,s=t,a=0;var c=0;do{e.y=2*(Math.atan(Math.pow(this.k,-1/this.alfa)*Math.pow(Math.tan(t/2+this.s45),1/this.alfa)*Math.pow((1+this.e*Math.sin(s))/(1-this.e*Math.sin(s)),this.e/2))-this.s45),Math.abs(s-e.y)<1e-10&&(a=1),s=e.y,c+=1}while(0===a&&c<15);return c>=15?null:e},names:["Krovak","krovak"]};function Txe(e,t,n,r,i){return e*i-t*Math.sin(2*i)+n*Math.sin(4*i)-r*Math.sin(6*i)}function Mxe(e){return 1-.25*e*(1+e/16*(3+1.25*e))}function Oxe(e){return.375*e*(1+.25*e*(1+.46875*e))}function Rxe(e){return.05859375*e*e*(1+.75*e)}function Dxe(e){return e*e*e*(35/3072)}function Nxe(e,t,n){var r=t*n;return e/Math.sqrt(1-r*r)}function Lxe(e){return Math.abs(e)<p_e?e:e-Y_e(e)*Math.PI}function Vxe(e,t,n,r,i){var o,s;o=e/t;for(var a=0;a<15;a++)if(o+=s=(e-(t*o-n*Math.sin(2*o)+r*Math.sin(4*o)-i*Math.sin(6*o)))/(t-2*n*Math.cos(2*o)+4*r*Math.cos(4*o)-6*i*Math.cos(6*o)),Math.abs(s)<=1e-10)return o;return NaN}const Fxe={init:function(){this.sphere||(this.e0=Mxe(this.es),this.e1=Oxe(this.es),this.e2=Rxe(this.es),this.e3=Dxe(this.es),this.ml0=this.a*Txe(this.e0,this.e1,this.e2,this.e3,this.lat0))},forward:function(e){var t,n,r=e.x,i=e.y;if(r=K_e(r-this.long0),this.sphere)t=this.a*Math.asin(Math.cos(i)*Math.sin(r)),n=this.a*(Math.atan2(Math.tan(i),Math.cos(r))-this.lat0);else{var o=Math.sin(i),s=Math.cos(i),a=Nxe(this.a,this.e,o),l=Math.tan(i)*Math.tan(i),c=r*Math.cos(i),u=c*c,d=this.es*s*s/(1-this.es);t=a*c*(1-u*l*(1/6-(8-l+8*d)*u/120)),n=this.a*Txe(this.e0,this.e1,this.e2,this.e3,i)-this.ml0+a*o/s*u*(.5+(5-l+6*d)*u/24)}return e.x=t+this.x0,e.y=n+this.y0,e},inverse:function(e){e.x-=this.x0,e.y-=this.y0;var t,n,r=e.x/this.a,i=e.y/this.a;if(this.sphere){var o=i+this.lat0;t=Math.asin(Math.sin(o)*Math.cos(r)),n=Math.atan2(Math.tan(r),Math.cos(o))}else{var s=Vxe(this.ml0/this.a+i,this.e0,this.e1,this.e2,this.e3);if(Math.abs(Math.abs(s)-p_e)<=y_e)return e.x=this.long0,e.y=p_e,i<0&&(e.y*=-1),e;var a=Nxe(this.a,this.e,Math.sin(s)),l=a*a*a/this.a/this.a*(1-this.es),c=Math.pow(Math.tan(s),2),u=r*this.a/a,d=u*u;t=s-a*Math.tan(s)/l*u*u*(.5-(1+3*c)*u*u/24),n=u*(1-d*(c/3+(1+3*c)*c*d/15))/Math.cos(s)}return e.x=K_e(n+this.long0),e.y=Lxe(t),e},names:["Cassini","Cassini_Soldner","cass"]};function zxe(e,t){var n;return e>1e-7?(1-e*e)*(t/(1-(n=e*t)*n)-.5/e*Math.log((1-n)/(1+n))):2*t}var Bxe=.3333333333333333,Uxe=.17222222222222222,Wxe=.10257936507936508,Hxe=.06388888888888888,qxe=.0664021164021164,Xxe=.016415012942191543;const Yxe={init:function(){var e,t=Math.abs(this.lat0);if(Math.abs(t-p_e)<y_e?this.mode=this.lat0<0?this.S_POLE:this.N_POLE:Math.abs(t)<y_e?this.mode=this.EQUIT:this.mode=this.OBLIQ,this.es>0)switch(this.qp=zxe(this.e,1),this.mmf=.5/(1-this.es),this.apa=function(e){var t,n=[];return n[0]=e*Bxe,t=e*e,n[0]+=t*Uxe,n[1]=t*Hxe,t*=e,n[0]+=t*Wxe,n[1]+=t*qxe,n[2]=t*Xxe,n}(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),e=Math.sin(this.lat0),this.sinb1=zxe(this.e,e)/this.qp,this.cosb1=Math.sqrt(1-this.sinb1*this.sinb1),this.dd=Math.cos(this.lat0)/(Math.sqrt(1-this.es*e*e)*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(e){var t,n,r,i,o,s,a,l,c,u,d=e.x,h=e.y;if(d=K_e(d-this.long0),this.sphere){if(o=Math.sin(h),u=Math.cos(h),r=Math.cos(d),this.mode===this.OBLIQ||this.mode===this.EQUIT){if((n=this.mode===this.EQUIT?1+u*r:1+this.sinph0*o+this.cosph0*u*r)<=y_e)return null;t=(n=Math.sqrt(2/n))*u*Math.sin(d),n*=this.mode===this.EQUIT?o:this.cosph0*o-this.sinph0*u*r}else if(this.mode===this.N_POLE||this.mode===this.S_POLE){if(this.mode===this.N_POLE&&(r=-r),Math.abs(h+this.lat0)<y_e)return null;n=b_e-.5*h,t=(n=2*(this.mode===this.S_POLE?Math.cos(n):Math.sin(n)))*Math.sin(d),n*=r}}else{switch(a=0,l=0,c=0,r=Math.cos(d),i=Math.sin(d),o=Math.sin(h),s=zxe(this.e,o),this.mode!==this.OBLIQ&&this.mode!==this.EQUIT||(a=s/this.qp,l=Math.sqrt(1-a*a)),this.mode){case this.OBLIQ:c=1+this.sinb1*a+this.cosb1*l*r;break;case this.EQUIT:c=1+l*r;break;case this.N_POLE:c=p_e+h,s=this.qp-s;break;case this.S_POLE:c=h-p_e,s=this.qp+s}if(Math.abs(c)<y_e)return null;switch(this.mode){case this.OBLIQ:case this.EQUIT:c=Math.sqrt(2/c),n=this.mode===this.OBLIQ?this.ymf*c*(this.cosb1*a-this.sinb1*l*r):(c=Math.sqrt(2/(1+l*r)))*a*this.ymf,t=this.xmf*c*l*i;break;case this.N_POLE:case this.S_POLE:s>=0?(t=(c=Math.sqrt(s))*i,n=r*(this.mode===this.S_POLE?c:-c)):t=n=0}}return e.x=this.a*t+this.x0,e.y=this.a*n+this.y0,e},inverse:function(e){e.x-=this.x0,e.y-=this.y0;var t,n,r,i,o,s,a,l=e.x/this.a,c=e.y/this.a;if(this.sphere){var u,d=0,h=0;if((n=.5*(u=Math.sqrt(l*l+c*c)))>1)return null;switch(n=2*Math.asin(n),this.mode!==this.OBLIQ&&this.mode!==this.EQUIT||(h=Math.sin(n),d=Math.cos(n)),this.mode){case this.EQUIT:n=Math.abs(u)<=y_e?0:Math.asin(c*h/u),l*=h,c=d*u;break;case this.OBLIQ:n=Math.abs(u)<=y_e?this.lat0:Math.asin(d*this.sinph0+c*h*this.cosph0/u),l*=h*this.cosph0,c=(d-Math.sin(n)*this.sinph0)*u;break;case this.N_POLE:c=-c,n=p_e-n;break;case this.S_POLE:n-=p_e}t=0!==c||this.mode!==this.EQUIT&&this.mode!==this.OBLIQ?Math.atan2(l,c):0}else{if(a=0,this.mode===this.OBLIQ||this.mode===this.EQUIT){if(l/=this.dd,c*=this.dd,(s=Math.sqrt(l*l+c*c))<y_e)return e.x=this.long0,e.y=this.lat0,e;i=2*Math.asin(.5*s/this.rq),r=Math.cos(i),l*=i=Math.sin(i),this.mode===this.OBLIQ?(a=r*this.sinb1+c*i*this.cosb1/s,o=this.qp*a,c=s*this.cosb1*r-c*this.sinb1*i):(a=c*i/s,o=this.qp*a,c=s*r)}else if(this.mode===this.N_POLE||this.mode===this.S_POLE){if(this.mode===this.N_POLE&&(c=-c),!(o=l*l+c*c))return e.x=this.long0,e.y=this.lat0,e;a=1-o/this.qp,this.mode===this.S_POLE&&(a=-a)}t=Math.atan2(l,c),n=function(e,t){var n=e+e;return e+t[0]*Math.sin(n)+t[1]*Math.sin(n+n)+t[2]*Math.sin(n+n+n)}(Math.asin(a),this.apa)}return e.x=K_e(this.long0+t),e.y=n,e},names:["Lambert Azimuthal Equal Area","Lambert_Azimuthal_Equal_Area","laea"],S_POLE:1,N_POLE:2,EQUIT:3,OBLIQ:4};function Kxe(e){return Math.abs(e)>1&&(e=e>1?1:-1),Math.asin(e)}const Zxe={init:function(){Math.abs(this.lat1+this.lat2)<y_e||(this.temp=this.b/this.a,this.es=1-Math.pow(this.temp,2),this.e3=Math.sqrt(this.es),this.sin_po=Math.sin(this.lat1),this.cos_po=Math.cos(this.lat1),this.t1=this.sin_po,this.con=this.sin_po,this.ms1=X_e(this.e3,this.sin_po,this.cos_po),this.qs1=zxe(this.e3,this.sin_po),this.sin_po=Math.sin(this.lat2),this.cos_po=Math.cos(this.lat2),this.t2=this.sin_po,this.ms2=X_e(this.e3,this.sin_po,this.cos_po),this.qs2=zxe(this.e3,this.sin_po),this.sin_po=Math.sin(this.lat0),this.cos_po=Math.cos(this.lat0),this.t3=this.sin_po,this.qs0=zxe(this.e3,this.sin_po),Math.abs(this.lat1-this.lat2)>y_e?this.ns0=(this.ms1*this.ms1-this.ms2*this.ms2)/(this.qs2-this.qs1):this.ns0=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(e){var t=e.x,n=e.y;this.sin_phi=Math.sin(n),this.cos_phi=Math.cos(n);var r=zxe(this.e3,this.sin_phi),i=this.a*Math.sqrt(this.c-this.ns0*r)/this.ns0,o=this.ns0*K_e(t-this.long0),s=i*Math.sin(o)+this.x0,a=this.rh-i*Math.cos(o)+this.y0;return e.x=s,e.y=a,e},inverse:function(e){var t,n,r,i,o,s;return e.x-=this.x0,e.y=this.rh-e.y+this.y0,this.ns0>=0?(t=Math.sqrt(e.x*e.x+e.y*e.y),r=1):(t=-Math.sqrt(e.x*e.x+e.y*e.y),r=-1),i=0,0!==t&&(i=Math.atan2(r*e.x,r*e.y)),r=t*this.ns0/this.a,this.sphere?s=Math.asin((this.c-r*r)/(2*this.ns0)):(n=(this.c-r*r)/this.ns0,s=this.phi1z(this.e3,n)),o=K_e(i/this.ns0+this.long0),e.x=o,e.y=s,e},names:["Albers_Conic_Equal_Area","Albers","aea"],phi1z:function(e,t){var n,r,i,o,s=Kxe(.5*t);if(e<y_e)return s;for(var a=e*e,l=1;l<=25;l++)if(s+=o=.5*(i=1-(r=e*(n=Math.sin(s)))*r)*i/Math.cos(s)*(t/(1-a)-n/i+.5/e*Math.log((1-r)/(1+r))),Math.abs(o)<=1e-7)return s;return null}};const $xe={init:function(){this.sin_p14=Math.sin(this.lat0),this.cos_p14=Math.cos(this.lat0),this.infinity_dist=1e3*this.a,this.rc=1},forward:function(e){var t,n,r,i,o,s,a,l=e.x,c=e.y;return r=K_e(l-this.long0),t=Math.sin(c),n=Math.cos(c),i=Math.cos(r),1,(o=this.sin_p14*t+this.cos_p14*n*i)>0||Math.abs(o)<=y_e?(s=this.x0+1*this.a*n*Math.sin(r)/o,a=this.y0+1*this.a*(this.cos_p14*t-this.sin_p14*n*i)/o):(s=this.x0+this.infinity_dist*n*Math.sin(r),a=this.y0+this.infinity_dist*(this.cos_p14*t-this.sin_p14*n*i)),e.x=s,e.y=a,e},inverse:function(e){var t,n,r,i,o,s;return e.x=(e.x-this.x0)/this.a,e.y=(e.y-this.y0)/this.a,e.x/=this.k0,e.y/=this.k0,(t=Math.sqrt(e.x*e.x+e.y*e.y))?(i=Math.atan2(t,this.rc),n=Math.sin(i),s=Kxe((r=Math.cos(i))*this.sin_p14+e.y*n*this.cos_p14/t),o=Math.atan2(e.x*n,t*this.cos_p14*r-e.y*this.sin_p14*n),o=K_e(this.long0+o)):(s=this.phic0,o=0),e.x=o,e.y=s,e},names:["gnom"]};const Jxe={init:function(){this.sphere||(this.k0=X_e(this.e,Math.sin(this.lat_ts),Math.cos(this.lat_ts)))},forward:function(e){var t,n,r=e.x,i=e.y,o=K_e(r-this.long0);if(this.sphere)t=this.x0+this.a*o*Math.cos(this.lat_ts),n=this.y0+this.a*Math.sin(i)/Math.cos(this.lat_ts);else{var s=zxe(this.e,Math.sin(i));t=this.x0+this.a*this.k0*o,n=this.y0+this.a*s*.5/this.k0}return e.x=t,e.y=n,e},inverse:function(e){var t,n;return e.x-=this.x0,e.y-=this.y0,this.sphere?(t=K_e(this.long0+e.x/this.a/Math.cos(this.lat_ts)),n=Math.asin(e.y/this.a*Math.cos(this.lat_ts))):(n=function(e,t){var n=1-(1-e*e)/(2*e)*Math.log((1-e)/(1+e));if(Math.abs(Math.abs(t)-n)<1e-6)return t<0?-1*p_e:p_e;for(var r,i,o,s,a=Math.asin(.5*t),l=0;l<30;l++)if(i=Math.sin(a),o=Math.cos(a),s=e*i,a+=r=Math.pow(1-s*s,2)/(2*o)*(t/(1-e*e)-i/(1-s*s)+.5/e*Math.log((1-s)/(1+s))),Math.abs(r)<=1e-10)return a;return NaN}(this.e,2*e.y*this.k0/this.a),t=K_e(this.long0+e.x/(this.a*this.k0))),e.x=t,e.y=n,e},names:["cea"]};const Qxe={init:function(){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(e){var t=e.x,n=e.y,r=K_e(t-this.long0),i=Lxe(n-this.lat0);return e.x=this.x0+this.a*r*this.rc,e.y=this.y0+this.a*i,e},inverse:function(e){var t=e.x,n=e.y;return e.x=K_e(this.long0+(t-this.x0)/(this.a*this.rc)),e.y=Lxe(this.lat0+(n-this.y0)/this.a),e},names:["Equirectangular","Equidistant_Cylindrical","eqc"]};const eSe={init:function(){this.temp=this.b/this.a,this.es=1-Math.pow(this.temp,2),this.e=Math.sqrt(this.es),this.e0=Mxe(this.es),this.e1=Oxe(this.es),this.e2=Rxe(this.es),this.e3=Dxe(this.es),this.ml0=this.a*Txe(this.e0,this.e1,this.e2,this.e3,this.lat0)},forward:function(e){var t,n,r,i=e.x,o=e.y,s=K_e(i-this.long0);if(r=s*Math.sin(o),this.sphere)Math.abs(o)<=y_e?(t=this.a*s,n=-1*this.a*this.lat0):(t=this.a*Math.sin(r)/Math.tan(o),n=this.a*(Lxe(o-this.lat0)+(1-Math.cos(r))/Math.tan(o)));else if(Math.abs(o)<=y_e)t=this.a*s,n=-1*this.ml0;else{var a=Nxe(this.a,this.e,Math.sin(o))/Math.tan(o);t=a*Math.sin(r),n=this.a*Txe(this.e0,this.e1,this.e2,this.e3,o)-this.ml0+a*(1-Math.cos(r))}return e.x=t+this.x0,e.y=n+this.y0,e},inverse:function(e){var t,n,r,i,o,s,a,l,c;if(r=e.x-this.x0,i=e.y-this.y0,this.sphere)if(Math.abs(i+this.a*this.lat0)<=y_e)t=K_e(r/this.a+this.long0),n=0;else{var u;for(s=this.lat0+i/this.a,a=r*r/this.a/this.a+s*s,l=s,o=20;o;--o)if(l+=c=-1*(s*(l*(u=Math.tan(l))+1)-l-.5*(l*l+a)*u)/((l-s)/u-1),Math.abs(c)<=y_e){n=l;break}t=K_e(this.long0+Math.asin(r*Math.tan(l)/this.a)/Math.sin(n))}else if(Math.abs(i+this.ml0)<=y_e)n=0,t=K_e(this.long0+r/this.a);else{var d,h,p,f,g;for(s=(this.ml0+i)/this.a,a=r*r/this.a/this.a+s*s,l=s,o=20;o;--o)if(g=this.e*Math.sin(l),d=Math.sqrt(1-g*g)*Math.tan(l),h=this.a*Txe(this.e0,this.e1,this.e2,this.e3,l),p=this.e0-2*this.e1*Math.cos(2*l)+4*this.e2*Math.cos(4*l)-6*this.e3*Math.cos(6*l),l-=c=(s*(d*(f=h/this.a)+1)-f-.5*d*(f*f+a))/(this.es*Math.sin(2*l)*(f*f+a-2*s*f)/(4*d)+(s-f)*(d*p-2/Math.sin(2*l))-p),Math.abs(c)<=y_e){n=l;break}d=Math.sqrt(1-this.es*Math.pow(Math.sin(n),2))*Math.tan(n),t=K_e(this.long0+Math.asin(r*d/this.a)/Math.sin(n))}return e.x=t,e.y=n,e},names:["Polyconic","poly"]};const tSe={init:function(){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(e){var t,n=e.x,r=e.y-this.lat0,i=n-this.long0,o=r/h_e*1e-5,s=i,a=1,l=0;for(t=1;t<=10;t++)a*=o,l+=this.A[t]*a;var c,u=l,d=s,h=1,p=0,f=0,g=0;for(t=1;t<=6;t++)c=p*u+h*d,h=h*u-p*d,p=c,f=f+this.B_re[t]*h-this.B_im[t]*p,g=g+this.B_im[t]*h+this.B_re[t]*p;return e.x=g*this.a+this.x0,e.y=f*this.a+this.y0,e},inverse:function(e){var t,n,r=e.x,i=e.y,o=r-this.x0,s=(i-this.y0)/this.a,a=o/this.a,l=1,c=0,u=0,d=0;for(t=1;t<=6;t++)n=c*s+l*a,l=l*s-c*a,c=n,u=u+this.C_re[t]*l-this.C_im[t]*c,d=d+this.C_im[t]*l+this.C_re[t]*c;for(var h=0;h<this.iterations;h++){var p,f=u,g=d,m=s,y=a;for(t=2;t<=6;t++)p=g*u+f*d,f=f*u-g*d,g=p,m+=(t-1)*(this.B_re[t]*f-this.B_im[t]*g),y+=(t-1)*(this.B_im[t]*f+this.B_re[t]*g);f=1,g=0;var v=this.B_re[1],_=this.B_im[1];for(t=2;t<=6;t++)p=g*u+f*d,f=f*u-g*d,g=p,v+=t*(this.B_re[t]*f-this.B_im[t]*g),_+=t*(this.B_im[t]*f+this.B_re[t]*g);var b=v*v+_*_;u=(m*v+y*_)/b,d=(y*v-m*_)/b}var x=u,S=d,w=1,E=0;for(t=1;t<=9;t++)w*=x,E+=this.D[t]*w;var P=this.lat0+E*h_e*1e5,C=this.long0+S;return e.x=C,e.y=P,e},names:["New_Zealand_Map_Grid","nzmg"]};const nSe={init:function(){},forward:function(e){var t=e.x,n=e.y,r=K_e(t-this.long0),i=this.x0+this.a*r,o=this.y0+this.a*Math.log(Math.tan(Math.PI/4+n/2.5))*1.25;return e.x=i,e.y=o,e},inverse:function(e){e.x-=this.x0,e.y-=this.y0;var t=K_e(this.long0+e.x/this.a),n=2.5*(Math.atan(Math.exp(.8*e.y/this.a))-Math.PI/4);return e.x=t,e.y=n,e},names:["Miller_Cylindrical","mill"]};const rSe={init:function(){this.sphere?(this.n=1,this.m=0,this.es=0,this.C_y=Math.sqrt((this.m+1)/this.n),this.C_x=this.C_y/(this.m+1)):this.en=dxe(this.es)},forward:function(e){var t,n,r=e.x,i=e.y;if(r=K_e(r-this.long0),this.sphere){if(this.m)for(var o=this.n*Math.sin(i),s=20;s;--s){var a=(this.m*i+Math.sin(i)-o)/(this.m+Math.cos(i));if(i-=a,Math.abs(a)<y_e)break}else i=1!==this.n?Math.asin(this.n*Math.sin(i)):i;t=this.a*this.C_x*r*(this.m+Math.cos(i)),n=this.a*this.C_y*i}else{var l=Math.sin(i),c=Math.cos(i);n=this.a*hxe(i,l,c,this.en),t=this.a*r*c/Math.sqrt(1-this.es*l*l)}return e.x=t,e.y=n,e},inverse:function(e){var t,n,r;return e.x-=this.x0,n=e.x/this.a,e.y-=this.y0,t=e.y/this.a,this.sphere?(t/=this.C_y,n/=this.C_x*(this.m+Math.cos(t)),this.m?t=Kxe((this.m*t+Math.sin(t))/this.n):1!==this.n&&(t=Kxe(Math.sin(t)/this.n)),n=K_e(n+this.long0),t=Lxe(t)):(t=fxe(e.y/this.a,this.es,this.en),(r=Math.abs(t))<p_e?(r=Math.sin(t),n=K_e(this.long0+e.x*Math.sqrt(1-this.es*r*r)/(this.a*Math.cos(t)))):r-y_e<p_e&&(n=this.long0)),e.x=n,e.y=t,e},names:["Sinusoidal","sinu"]};const iSe={init:function(){},forward:function(e){for(var t=e.x,n=e.y,r=K_e(t-this.long0),i=n,o=Math.PI*Math.sin(n);;){var s=-(i+Math.sin(i)-o)/(1+Math.cos(i));if(i+=s,Math.abs(s)<y_e)break}i/=2,Math.PI/2-Math.abs(n)<y_e&&(r=0);var a=.900316316158*this.a*r*Math.cos(i)+this.x0,l=1.4142135623731*this.a*Math.sin(i)+this.y0;return e.x=a,e.y=l,e},inverse:function(e){var t,n;e.x-=this.x0,e.y-=this.y0,n=e.y/(1.4142135623731*this.a),Math.abs(n)>.999999999999&&(n=.999999999999),t=Math.asin(n);var r=K_e(this.long0+e.x/(.900316316158*this.a*Math.cos(t)));r<-Math.PI&&(r=-Math.PI),r>Math.PI&&(r=Math.PI),n=(2*t+Math.sin(2*t))/Math.PI,Math.abs(n)>1&&(n=1);var i=Math.asin(n);return e.x=r,e.y=i,e},names:["Mollweide","moll"]};const oSe={init:function(){Math.abs(this.lat1+this.lat2)<y_e||(this.lat2=this.lat2||this.lat1,this.temp=this.b/this.a,this.es=1-Math.pow(this.temp,2),this.e=Math.sqrt(this.es),this.e0=Mxe(this.es),this.e1=Oxe(this.es),this.e2=Rxe(this.es),this.e3=Dxe(this.es),this.sinphi=Math.sin(this.lat1),this.cosphi=Math.cos(this.lat1),this.ms1=X_e(this.e,this.sinphi,this.cosphi),this.ml1=Txe(this.e0,this.e1,this.e2,this.e3,this.lat1),Math.abs(this.lat1-this.lat2)<y_e?this.ns=this.sinphi:(this.sinphi=Math.sin(this.lat2),this.cosphi=Math.cos(this.lat2),this.ms2=X_e(this.e,this.sinphi,this.cosphi),this.ml2=Txe(this.e0,this.e1,this.e2,this.e3,this.lat2),this.ns=(this.ms1-this.ms2)/(this.ml2-this.ml1)),this.g=this.ml1+this.ms1/this.ns,this.ml0=Txe(this.e0,this.e1,this.e2,this.e3,this.lat0),this.rh=this.a*(this.g-this.ml0))},forward:function(e){var t,n=e.x,r=e.y;if(this.sphere)t=this.a*(this.g-r);else{var i=Txe(this.e0,this.e1,this.e2,this.e3,r);t=this.a*(this.g-i)}var o=this.ns*K_e(n-this.long0),s=this.x0+t*Math.sin(o),a=this.y0+this.rh-t*Math.cos(o);return e.x=s,e.y=a,e},inverse:function(e){var t,n,r,i;e.x-=this.x0,e.y=this.rh-e.y+this.y0,this.ns>=0?(n=Math.sqrt(e.x*e.x+e.y*e.y),t=1):(n=-Math.sqrt(e.x*e.x+e.y*e.y),t=-1);var o=0;return 0!==n&&(o=Math.atan2(t*e.x,t*e.y)),this.sphere?(i=K_e(this.long0+o/this.ns),r=Lxe(this.g-n/this.a),e.x=i,e.y=r,e):(r=Vxe(this.g-n/this.a,this.e0,this.e1,this.e2,this.e3),i=K_e(this.long0+o/this.ns),e.x=i,e.y=r,e)},names:["Equidistant_Conic","eqdc"]};const sSe={init:function(){this.R=this.a},forward:function(e){var t,n,r=e.x,i=e.y,o=K_e(r-this.long0);Math.abs(i)<=y_e&&(t=this.x0+this.R*o,n=this.y0);var s=Kxe(2*Math.abs(i/Math.PI));(Math.abs(o)<=y_e||Math.abs(Math.abs(i)-p_e)<=y_e)&&(t=this.x0,n=i>=0?this.y0+Math.PI*this.R*Math.tan(.5*s):this.y0+Math.PI*this.R*-Math.tan(.5*s));var a=.5*Math.abs(Math.PI/o-o/Math.PI),l=a*a,c=Math.sin(s),u=Math.cos(s),d=u/(c+u-1),h=d*d,p=d*(2/c-1),f=p*p,g=Math.PI*this.R*(a*(d-f)+Math.sqrt(l*(d-f)*(d-f)-(f+l)*(h-f)))/(f+l);o<0&&(g=-g),t=this.x0+g;var m=l+d;return g=Math.PI*this.R*(p*m-a*Math.sqrt((f+l)*(l+1)-m*m))/(f+l),n=i>=0?this.y0+g:this.y0-g,e.x=t,e.y=n,e},inverse:function(e){var t,n,r,i,o,s,a,l,c,u,d,h;return e.x-=this.x0,e.y-=this.y0,d=Math.PI*this.R,o=(r=e.x/d)*r+(i=e.y/d)*i,d=3*(i*i/(l=-2*(s=-Math.abs(i)*(1+o))+1+2*i*i+o*o)+(2*(a=s-2*i*i+r*r)*a*a/l/l/l-9*s*a/l/l)/27)/(c=(s-a*a/3/l)/l)/(u=2*Math.sqrt(-c/3)),Math.abs(d)>1&&(d=d>=0?1:-1),h=Math.acos(d)/3,n=e.y>=0?(-u*Math.cos(h+Math.PI/3)-a/3/l)*Math.PI:-(-u*Math.cos(h+Math.PI/3)-a/3/l)*Math.PI,t=Math.abs(r)<y_e?this.long0:K_e(this.long0+Math.PI*(o-1+Math.sqrt(1+2*(r*r-i*i)+o*o))/2/r),e.x=t,e.y=n,e},names:["Van_der_Grinten_I","VanDerGrinten","vandg"]};const aSe={init:function(){this.sin_p12=Math.sin(this.lat0),this.cos_p12=Math.cos(this.lat0)},forward:function(e){var t,n,r,i,o,s,a,l,c,u,d,h,p,f,g,m,y,v,_,b,x,S,w=e.x,E=e.y,P=Math.sin(e.y),C=Math.cos(e.y),A=K_e(w-this.long0);return this.sphere?Math.abs(this.sin_p12-1)<=y_e?(e.x=this.x0+this.a*(p_e-E)*Math.sin(A),e.y=this.y0-this.a*(p_e-E)*Math.cos(A),e):Math.abs(this.sin_p12+1)<=y_e?(e.x=this.x0+this.a*(p_e+E)*Math.sin(A),e.y=this.y0+this.a*(p_e+E)*Math.cos(A),e):(v=this.sin_p12*P+this.cos_p12*C*Math.cos(A),y=(m=Math.acos(v))?m/Math.sin(m):1,e.x=this.x0+this.a*y*C*Math.sin(A),e.y=this.y0+this.a*y*(this.cos_p12*P-this.sin_p12*C*Math.cos(A)),e):(t=Mxe(this.es),n=Oxe(this.es),r=Rxe(this.es),i=Dxe(this.es),Math.abs(this.sin_p12-1)<=y_e?(o=this.a*Txe(t,n,r,i,p_e),s=this.a*Txe(t,n,r,i,E),e.x=this.x0+(o-s)*Math.sin(A),e.y=this.y0-(o-s)*Math.cos(A),e):Math.abs(this.sin_p12+1)<=y_e?(o=this.a*Txe(t,n,r,i,p_e),s=this.a*Txe(t,n,r,i,E),e.x=this.x0+(o+s)*Math.sin(A),e.y=this.y0+(o+s)*Math.cos(A),e):(a=P/C,l=Nxe(this.a,this.e,this.sin_p12),c=Nxe(this.a,this.e,P),u=Math.atan((1-this.es)*a+this.es*l*this.sin_p12/(c*C)),_=0===(d=Math.atan2(Math.sin(A),this.cos_p12*Math.tan(u)-this.sin_p12*Math.cos(A)))?Math.asin(this.cos_p12*Math.sin(u)-this.sin_p12*Math.cos(u)):Math.abs(Math.abs(d)-Math.PI)<=y_e?-Math.asin(this.cos_p12*Math.sin(u)-this.sin_p12*Math.cos(u)):Math.asin(Math.sin(A)*Math.cos(u)/Math.sin(d)),h=this.e*this.sin_p12/Math.sqrt(1-this.es),m=l*_*(1-(b=_*_)*(g=(p=this.e*this.cos_p12*Math.cos(d)/Math.sqrt(1-this.es))*p)*(1-g)/6+(x=b*_)/8*(f=h*p)*(1-2*g)+(S=x*_)/120*(g*(4-7*g)-3*h*h*(1-7*g))-S*_/48*f),e.x=this.x0+m*Math.sin(d),e.y=this.y0+m*Math.cos(d),e))},inverse:function(e){var t,n,r,i,o,s,a,l,c,u,d,h,p,f,g,m,y,v,_,b,x,S,w;if(e.x-=this.x0,e.y-=this.y0,this.sphere){if((t=Math.sqrt(e.x*e.x+e.y*e.y))>2*p_e*this.a)return;return n=t/this.a,r=Math.sin(n),i=Math.cos(n),o=this.long0,Math.abs(t)<=y_e?s=this.lat0:(s=Kxe(i*this.sin_p12+e.y*r*this.cos_p12/t),a=Math.abs(this.lat0)-p_e,o=Math.abs(a)<=y_e?this.lat0>=0?K_e(this.long0+Math.atan2(e.x,-e.y)):K_e(this.long0-Math.atan2(-e.x,e.y)):K_e(this.long0+Math.atan2(e.x*r,t*this.cos_p12*i-e.y*this.sin_p12*r))),e.x=o,e.y=s,e}return l=Mxe(this.es),c=Oxe(this.es),u=Rxe(this.es),d=Dxe(this.es),Math.abs(this.sin_p12-1)<=y_e?(s=Vxe(((h=this.a*Txe(l,c,u,d,p_e))-(t=Math.sqrt(e.x*e.x+e.y*e.y)))/this.a,l,c,u,d),o=K_e(this.long0+Math.atan2(e.x,-1*e.y)),e.x=o,e.y=s,e):Math.abs(this.sin_p12+1)<=y_e?(h=this.a*Txe(l,c,u,d,p_e),s=Vxe(((t=Math.sqrt(e.x*e.x+e.y*e.y))-h)/this.a,l,c,u,d),o=K_e(this.long0+Math.atan2(e.x,e.y)),e.x=o,e.y=s,e):(t=Math.sqrt(e.x*e.x+e.y*e.y),g=Math.atan2(e.x,e.y),p=Nxe(this.a,this.e,this.sin_p12),m=Math.cos(g),v=-(y=this.e*this.cos_p12*m)*y/(1-this.es),_=3*this.es*(1-v)*this.sin_p12*this.cos_p12*m/(1-this.es),S=1-v*(x=(b=t/p)-v*(1+v)*Math.pow(b,3)/6-_*(1+3*v)*Math.pow(b,4)/24)*x/2-b*x*x*x/6,f=Math.asin(this.sin_p12*Math.cos(x)+this.cos_p12*Math.sin(x)*m),o=K_e(this.long0+Math.asin(Math.sin(g)*Math.sin(x)/Math.cos(f))),w=Math.sin(f),s=Math.atan2((w-this.es*S*this.sin_p12)*Math.tan(f),w*(1-this.es)),e.x=o,e.y=s,e)},names:["Azimuthal_Equidistant","aeqd"]};const lSe={init:function(){this.sin_p14=Math.sin(this.lat0),this.cos_p14=Math.cos(this.lat0)},forward:function(e){var t,n,r,i,o,s,a,l=e.x,c=e.y;return r=K_e(l-this.long0),t=Math.sin(c),n=Math.cos(c),i=Math.cos(r),1,((o=this.sin_p14*t+this.cos_p14*n*i)>0||Math.abs(o)<=y_e)&&(s=1*this.a*n*Math.sin(r),a=this.y0+1*this.a*(this.cos_p14*t-this.sin_p14*n*i)),e.x=s,e.y=a,e},inverse:function(e){var t,n,r,i,o,s,a;return e.x-=this.x0,e.y-=this.y0,n=Kxe((t=Math.sqrt(e.x*e.x+e.y*e.y))/this.a),r=Math.sin(n),i=Math.cos(n),s=this.long0,Math.abs(t)<=y_e?(a=this.lat0,e.x=s,e.y=a,e):(a=Kxe(i*this.sin_p14+e.y*r*this.cos_p14/t),o=Math.abs(this.lat0)-p_e,Math.abs(o)<=y_e?(s=this.lat0>=0?K_e(this.long0+Math.atan2(e.x,-e.y)):K_e(this.long0-Math.atan2(-e.x,e.y)),e.x=s,e.y=a,e):(s=K_e(this.long0+Math.atan2(e.x*r,t*this.cos_p14*i-e.y*this.sin_p14*r)),e.x=s,e.y=a,e))},names:["ortho"]};var cSe=1,uSe=2,dSe=3,hSe=4,pSe=5,fSe=6,gSe={AREA_0:1,AREA_1:2,AREA_2:3,AREA_3:4};function mSe(e,t,n,r){var i;return e<y_e?(r.value=gSe.AREA_0,i=0):(i=Math.atan2(t,n),Math.abs(i)<=b_e?r.value=gSe.AREA_0:i>b_e&&i<=p_e+b_e?(r.value=gSe.AREA_1,i-=p_e):i>p_e+b_e||i<=-(p_e+b_e)?(r.value=gSe.AREA_2,i=i>=0?i-S_e:i+S_e):(r.value=gSe.AREA_3,i+=p_e)),i}function ySe(e,t){var n=e+t;return n<-S_e?n+=x_e:n>+S_e&&(n-=x_e),n}const vSe={init:function(){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.lat0>=p_e-b_e/2?this.face=pSe:this.lat0<=-(p_e-b_e/2)?this.face=fSe:Math.abs(this.long0)<=b_e?this.face=cSe:Math.abs(this.long0)<=p_e+b_e?this.face=this.long0>0?uSe:hSe:this.face=dSe,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(e){var t,n,r,i,o,s,a={x:0,y:0},l={value:0};if(e.x-=this.long0,t=0!==this.es?Math.atan(this.one_minus_f_squared*Math.tan(e.y)):e.y,n=e.x,this.face===pSe)i=p_e-t,n>=b_e&&n<=p_e+b_e?(l.value=gSe.AREA_0,r=n-p_e):n>p_e+b_e||n<=-(p_e+b_e)?(l.value=gSe.AREA_1,r=n>0?n-S_e:n+S_e):n>-(p_e+b_e)&&n<=-b_e?(l.value=gSe.AREA_2,r=n+p_e):(l.value=gSe.AREA_3,r=n);else if(this.face===fSe)i=p_e+t,n>=b_e&&n<=p_e+b_e?(l.value=gSe.AREA_0,r=-n+p_e):n<b_e&&n>=-b_e?(l.value=gSe.AREA_1,r=-n):n<-b_e&&n>=-(p_e+b_e)?(l.value=gSe.AREA_2,r=-n-p_e):(l.value=gSe.AREA_3,r=n>0?-n+S_e:-n-S_e);else{var c,u,d,h,p,f;this.face===uSe?n=ySe(n,+p_e):this.face===dSe?n=ySe(n,+S_e):this.face===hSe&&(n=ySe(n,-p_e)),h=Math.sin(t),p=Math.cos(t),f=Math.sin(n),c=p*Math.cos(n),u=p*f,d=h,this.face===cSe?r=mSe(i=Math.acos(c),d,u,l):this.face===uSe?r=mSe(i=Math.acos(u),d,-c,l):this.face===dSe?r=mSe(i=Math.acos(-c),d,-u,l):this.face===hSe?r=mSe(i=Math.acos(-u),d,c,l):(i=r=0,l.value=gSe.AREA_0)}return s=Math.atan(12/S_e*(r+Math.acos(Math.sin(r)*Math.cos(b_e))-p_e)),o=Math.sqrt((1-Math.cos(i))/(Math.cos(s)*Math.cos(s))/(1-Math.cos(Math.atan(1/Math.cos(r))))),l.value===gSe.AREA_1?s+=p_e:l.value===gSe.AREA_2?s+=S_e:l.value===gSe.AREA_3&&(s+=1.5*S_e),a.x=o*Math.cos(s),a.y=o*Math.sin(s),a.x=a.x*this.a+this.x0,a.y=a.y*this.a+this.y0,e.x=a.x,e.y=a.y,e},inverse:function(e){var t,n,r,i,o,s,a,l,c,u,d,h,p={lam:0,phi:0},f={value:0};if(e.x=(e.x-this.x0)/this.a,e.y=(e.y-this.y0)/this.a,n=Math.atan(Math.sqrt(e.x*e.x+e.y*e.y)),t=Math.atan2(e.y,e.x),e.x>=0&&e.x>=Math.abs(e.y)?f.value=gSe.AREA_0:e.y>=0&&e.y>=Math.abs(e.x)?(f.value=gSe.AREA_1,t-=p_e):e.x<0&&-e.x>=Math.abs(e.y)?(f.value=gSe.AREA_2,t=t<0?t+S_e:t-S_e):(f.value=gSe.AREA_3,t+=p_e),c=S_e/12*Math.tan(t),o=Math.sin(c)/(Math.cos(c)-1/Math.sqrt(2)),s=Math.atan(o),(a=1-(r=Math.cos(t))*r*(i=Math.tan(n))*i*(1-Math.cos(Math.atan(1/Math.cos(s)))))<-1?a=-1:a>1&&(a=1),this.face===pSe)l=Math.acos(a),p.phi=p_e-l,f.value===gSe.AREA_0?p.lam=s+p_e:f.value===gSe.AREA_1?p.lam=s<0?s+S_e:s-S_e:f.value===gSe.AREA_2?p.lam=s-p_e:p.lam=s;else if(this.face===fSe)l=Math.acos(a),p.phi=l-p_e,f.value===gSe.AREA_0?p.lam=-s+p_e:f.value===gSe.AREA_1?p.lam=-s:f.value===gSe.AREA_2?p.lam=-s-p_e:p.lam=s<0?-s-S_e:-s+S_e;else{var g,m,y;c=(g=a)*g,m=(c+=(y=c>=1?0:Math.sqrt(1-c)*Math.sin(s))*y)>=1?0:Math.sqrt(1-c),f.value===gSe.AREA_1?(c=m,m=-y,y=c):f.value===gSe.AREA_2?(m=-m,y=-y):f.value===gSe.AREA_3&&(c=m,m=y,y=-c),this.face===uSe?(c=g,g=-m,m=c):this.face===dSe?(g=-g,m=-m):this.face===hSe&&(c=g,g=m,m=-c),p.phi=Math.acos(-y)-p_e,p.lam=Math.atan2(m,g),this.face===uSe?p.lam=ySe(p.lam,-p_e):this.face===dSe?p.lam=ySe(p.lam,-S_e):this.face===hSe&&(p.lam=ySe(p.lam,+p_e))}return 0!==this.es&&(u=p.phi<0?1:0,d=Math.tan(p.phi),h=this.b/Math.sqrt(d*d+this.one_minus_f_squared),p.phi=Math.atan(Math.sqrt(this.a*this.a-h*h)/(this.one_minus_f*h)),u&&(p.phi=-p.phi)),p.lam+=this.long0,e.x=p.lam,e.y=p.phi,e},names:["Quadrilateralized Spherical Cube","Quadrilateralized_Spherical_Cube","qsc"]};var _Se=[[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]],bSe=[[-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]],xSe=.8487,SSe=1.3523,wSe=__e/5,ESe=1/wSe,PSe=18,CSe=function(e,t){return e[0]+t*(e[1]+t*(e[2]+t*e[3]))};const ASe={init:function(){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(e){var t=K_e(e.x-this.long0),n=Math.abs(e.y),r=Math.floor(n*wSe);r<0?r=0:r>=PSe&&(r=17);var i={x:CSe(_Se[r],n=__e*(n-ESe*r))*t,y:CSe(bSe[r],n)};return e.y<0&&(i.y=-i.y),i.x=i.x*this.a*xSe+this.x0,i.y=i.y*this.a*SSe+this.y0,i},inverse:function(e){var t={x:(e.x-this.x0)/(this.a*xSe),y:Math.abs(e.y-this.y0)/(this.a*SSe)};if(t.y>=1)t.x/=_Se[18][0],t.y=e.y<0?-p_e:p_e;else{var n=Math.floor(t.y*PSe);for(n<0?n=0:n>=PSe&&(n=17);;)if(bSe[n][0]>t.y)--n;else{if(!(bSe[n+1][0]<=t.y))break;++n}var r=bSe[n],i=5*(t.y-r[0])/(bSe[n+1][0]-r[0]);i=function(e,t,n,r){for(var i=t;r;--r){var o=e(i);if(i-=o,Math.abs(o)<n)break}return i}((function(e){return(CSe(r,e)-t.y)/function(e,t){return e[1]+t*(2*e[2]+3*t*e[3])}(r,e)}),i,y_e,100),t.x/=CSe(_Se[n],i),t.y=(5*n+i)*v_e,e.y<0&&(t.y=-t.y)}return t.x=K_e(t.x+this.long0),t},names:["Robinson","robin"]};const kSe={init:function(){this.name="geocent"},forward:function(e){return vbe(e,this.es,this.a)},inverse:function(e){return _be(e,this.es,this.a,this.b)},names:["Geocentric","geocentric","geocent","Geocent"]};var jSe=0,ISe=1,GSe=2,TSe=3,MSe={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 OSe={init:function(){if(Object.keys(MSe).forEach(function(e){if("undefined"===typeof this[e])this[e]=MSe[e].def;else{if(MSe[e].num&&isNaN(this[e]))throw new Error("Invalid parameter value, must be numeric "+e+" = "+this[e]);MSe[e].num&&(this[e]=parseFloat(this[e]))}MSe[e].degrees&&(this[e]=this[e]*v_e)}.bind(this)),Math.abs(Math.abs(this.lat0)-p_e)<y_e?this.mode=this.lat0<0?ISe:jSe:Math.abs(this.lat0)<y_e?this.mode=GSe:(this.mode=TSe,this.sinph0=Math.sin(this.lat0),this.cosph0=Math.cos(this.lat0)),this.pn1=this.h/this.a,this.pn1<=0||this.pn1>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 e=this.tilt,t=this.azi;this.cg=Math.cos(t),this.sg=Math.sin(t),this.cw=Math.cos(e),this.sw=Math.sin(e)},forward:function(e){e.x-=this.long0;var t,n,r,i,o=Math.sin(e.y),s=Math.cos(e.y),a=Math.cos(e.x);switch(this.mode){case TSe:n=this.sinph0*o+this.cosph0*s*a;break;case GSe:n=s*a;break;case ISe:n=-o;break;case jSe:n=o}switch(t=(n=this.pn1/(this.p-n))*s*Math.sin(e.x),this.mode){case TSe:n*=this.cosph0*o-this.sinph0*s*a;break;case GSe:n*=o;break;case jSe:n*=-s*a;break;case ISe:n*=s*a}return i=1/((r=n*this.cg+t*this.sg)*this.sw*this.h1+this.cw),t=(t*this.cg-n*this.sg)*this.cw*i,n=r*i,e.x=t*this.a,e.y=n*this.a,e},inverse:function(e){e.x/=this.a,e.y/=this.a;var t,n,r,i={x:e.x,y:e.y};r=1/(this.pn1-e.y*this.sw),t=this.pn1*e.x*r,n=this.pn1*e.y*this.cw*r,e.x=t*this.cg+n*this.sg,e.y=n*this.cg-t*this.sg;var o=yxe(e.x,e.y);if(Math.abs(o)<y_e)i.x=0,i.y=e.y;else{var s,a;switch(a=1-o*o*this.pfact,a=(this.p-Math.sqrt(a))/(this.pn1/o+o/this.pn1),s=Math.sqrt(1-a*a),this.mode){case TSe:i.y=Math.asin(s*this.sinph0+e.y*a*this.cosph0/o),e.y=(s-this.sinph0*Math.sin(i.y))*o,e.x*=a*this.cosph0;break;case GSe:i.y=Math.asin(e.y*a/o),e.y=s*o,e.x*=a;break;case jSe:i.y=Math.asin(s),e.y=-e.y;break;case ISe:i.y=-Math.asin(s)}i.x=Math.atan2(e.x,e.y)}return e.x=i.x+this.long0,e.y=i.y,e},names:["Tilted_Perspective","tpers"]};const RSe={init:function(){if(this.flip_axis="x"===this.sweep?1:0,this.h=Number(this.h),this.radius_g_1=this.h/this.a,this.radius_g_1<=0||this.radius_g_1>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 e=1-this.es,t=1/e;this.radius_p=Math.sqrt(e),this.radius_p2=e,this.radius_p_inv2=t,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(e){var t,n,r,i,o=e.x,s=e.y;if(o-=this.long0,"ellipse"===this.shape){s=Math.atan(this.radius_p2*Math.tan(s));var a=this.radius_p/yxe(this.radius_p*Math.cos(s),Math.sin(s));if(n=a*Math.cos(o)*Math.cos(s),r=a*Math.sin(o)*Math.cos(s),i=a*Math.sin(s),(this.radius_g-n)*n-r*r-i*i*this.radius_p_inv2<0)return e.x=Number.NaN,e.y=Number.NaN,e;t=this.radius_g-n,this.flip_axis?(e.x=this.radius_g_1*Math.atan(r/yxe(i,t)),e.y=this.radius_g_1*Math.atan(i/t)):(e.x=this.radius_g_1*Math.atan(r/t),e.y=this.radius_g_1*Math.atan(i/yxe(r,t)))}else"sphere"===this.shape&&(t=Math.cos(s),n=Math.cos(o)*t,r=Math.sin(o)*t,i=Math.sin(s),t=this.radius_g-n,this.flip_axis?(e.x=this.radius_g_1*Math.atan(r/yxe(i,t)),e.y=this.radius_g_1*Math.atan(i/t)):(e.x=this.radius_g_1*Math.atan(r/t),e.y=this.radius_g_1*Math.atan(i/yxe(r,t))));return e.x=e.x*this.a,e.y=e.y*this.a,e},inverse:function(e){var t,n,r,i,o=-1,s=0,a=0;if(e.x=e.x/this.a,e.y=e.y/this.a,"ellipse"===this.shape){this.flip_axis?(a=Math.tan(e.y/this.radius_g_1),s=Math.tan(e.x/this.radius_g_1)*yxe(1,a)):(s=Math.tan(e.x/this.radius_g_1),a=Math.tan(e.y/this.radius_g_1)*yxe(1,s));var l=a/this.radius_p;if(t=s*s+l*l+o*o,(r=(n=2*this.radius_g*o)*n-4*t*this.C)<0)return e.x=Number.NaN,e.y=Number.NaN,e;i=(-n-Math.sqrt(r))/(2*t),o=this.radius_g+i*o,s*=i,a*=i,e.x=Math.atan2(s,o),e.y=Math.atan(a*Math.cos(e.x)/o),e.y=Math.atan(this.radius_p_inv2*Math.tan(e.y))}else if("sphere"===this.shape){if(this.flip_axis?(a=Math.tan(e.y/this.radius_g_1),s=Math.tan(e.x/this.radius_g_1)*Math.sqrt(1+a*a)):(s=Math.tan(e.x/this.radius_g_1),a=Math.tan(e.y/this.radius_g_1)*Math.sqrt(1+s*s)),t=s*s+a*a+o*o,(r=(n=2*this.radius_g*o)*n-4*t*this.C)<0)return e.x=Number.NaN,e.y=Number.NaN,e;i=(-n-Math.sqrt(r))/(2*t),o=this.radius_g+i*o,s*=i,a*=i,e.x=Math.atan2(s,o),e.y=Math.atan(a*Math.cos(e.x)/o)}return e.x=e.x+this.long0,e},names:["Geostationary Satellite View","Geostationary_Satellite","geos"]};var DSe=1.340264,NSe=-.081106,LSe=893e-6,VSe=.003796,FSe=Math.sqrt(3)/2;const zSe={init:function(){this.es=0,this.long0=void 0!==this.long0?this.long0:0},forward:function(e){var t=K_e(e.x-this.long0),n=e.y,r=Math.asin(FSe*Math.sin(n)),i=r*r,o=i*i*i;return e.x=t*Math.cos(r)/(FSe*(DSe+3*NSe*i+o*(7*LSe+9*VSe*i))),e.y=r*(DSe+NSe*i+o*(LSe+VSe*i)),e.x=this.a*e.x+this.x0,e.y=this.a*e.y+this.y0,e},inverse:function(e){e.x=(e.x-this.x0)/this.a,e.y=(e.y-this.y0)/this.a;var t,n,r,i,o=e.y;for(i=0;i<12&&(o-=r=(o*(DSe+NSe*(t=o*o)+(n=t*t*t)*(LSe+VSe*t))-e.y)/(DSe+3*NSe*t+n*(7*LSe+9*VSe*t)),!(Math.abs(r)<1e-9));++i);return n=(t=o*o)*t*t,e.x=FSe*e.x*(DSe+3*NSe*t+n*(7*LSe+9*VSe*t))/Math.cos(o),e.y=Math.asin(Math.sin(o)/FSe),e.x=K_e(e.x+this.long0),e},names:["eqearth","Equal Earth","Equal_Earth"]};var BSe=1e-10;function USe(e){var t,n,r,i=K_e(e.x-(this.long0||0)),o=e.y;return t=this.am1+this.m1-hxe(o,n=Math.sin(o),r=Math.cos(o),this.en),n=r*i/(t*Math.sqrt(1-this.es*n*n)),e.x=t*Math.sin(n),e.y=this.am1-t*Math.cos(n),e.x=this.a*e.x+(this.x0||0),e.y=this.a*e.y+(this.y0||0),e}function WSe(e){var t,n,r,i;if(e.x=(e.x-(this.x0||0))/this.a,e.y=(e.y-(this.y0||0))/this.a,n=yxe(e.x,e.y=this.am1-e.y),i=fxe(this.am1+this.m1-n,this.es,this.en),(t=Math.abs(i))<p_e)t=Math.sin(i),r=n*Math.atan2(e.x,e.y)*Math.sqrt(1-this.es*t*t)/Math.cos(i);else{if(!(Math.abs(t-p_e)<=BSe))throw new Error;r=0}return e.x=K_e(r+(this.long0||0)),e.y=Lxe(i),e}function HSe(e){var t,n,r=K_e(e.x-(this.long0||0)),i=e.y;return n=this.cphi1+this.phi1-i,Math.abs(n)>BSe?(e.x=n*Math.sin(t=r*Math.cos(i)/n),e.y=this.cphi1-n*Math.cos(t)):e.x=e.y=0,e.x=this.a*e.x+(this.x0||0),e.y=this.a*e.y+(this.y0||0),e}function qSe(e){var t,n;e.x=(e.x-(this.x0||0))/this.a,e.y=(e.y-(this.y0||0))/this.a;var r=yxe(e.x,e.y=this.cphi1-e.y);if(n=this.cphi1+this.phi1-r,Math.abs(n)>p_e)throw new Error;return t=Math.abs(Math.abs(n)-p_e)<=BSe?0:r*Math.atan2(e.x,e.y)/Math.cos(n),e.x=K_e(t+(this.long0||0)),e.y=Lxe(n),e}const XSe={init:function(){var e;if(this.phi1=this.lat1,Math.abs(this.phi1)<BSe)throw new Error;this.es?(this.en=dxe(this.es),this.m1=hxe(this.phi1,this.am1=Math.sin(this.phi1),e=Math.cos(this.phi1),this.en),this.am1=e/(Math.sqrt(1-this.es*this.am1*this.am1)*this.am1),this.inverse=WSe,this.forward=USe):(Math.abs(this.phi1)+BSe>=p_e?this.cphi1=0:this.cphi1=1/Math.tan(this.phi1),this.inverse=qSe,this.forward=HSe)},names:["bonne","Bonne (Werner lat_1=90)"]};Tbe.defaultDatum="WGS84",Tbe.Proj=ybe,Tbe.WGS84=new Tbe.Proj("WGS84"),Tbe.Point=Jbe,Tbe.toPoint=Cbe,Tbe.defs=B_e,Tbe.nadgrid=function(e,t){var n=new DataView(t),r=function(e){var t=e.getInt32(8,!1);if(11===t)return!1;t=e.getInt32(8,!0),11!==t&&console.warn("Failed to detect nadgrid endian-ness, defaulting to little-endian");return!0}(n),i=function(e,t){return{nFields:e.getInt32(8,t),nSubgridFields:e.getInt32(24,t),nSubgrids:e.getInt32(40,t),shiftType:hbe(e,56,64).trim(),fromSemiMajorAxis:e.getFloat64(120,t),fromSemiMinorAxis:e.getFloat64(136,t),toSemiMajorAxis:e.getFloat64(152,t),toSemiMinorAxis:e.getFloat64(168,t)}}(n,r),o=function(e,t,n){for(var r=176,i=[],o=0;o<t.nSubgrids;o++){var s=fbe(e,r,n),a=gbe(e,r,s,n),l=Math.round(1+(s.upperLongitude-s.lowerLongitude)/s.longitudeInterval),c=Math.round(1+(s.upperLatitude-s.lowerLatitude)/s.latitudeInterval);i.push({ll:[dbe(s.lowerLongitude),dbe(s.lowerLatitude)],del:[dbe(s.longitudeInterval),dbe(s.latitudeInterval)],lim:[l,c],count:s.gridNodeCount,cvs:pbe(a)}),r+=176+16*s.gridNodeCount}return i}(n,i,r),s={header:i,subgrids:o};return cbe[e]=s,s},Tbe.transform=kbe,Tbe.mgrs=zbe,Tbe.version="__VERSION__",function(e){e.Proj.projections.add(gxe),e.Proj.projections.add(xxe),e.Proj.projections.add(Sxe),e.Proj.projections.add(Pxe),e.Proj.projections.add(Cxe),e.Proj.projections.add(Axe),e.Proj.projections.add(jxe),e.Proj.projections.add(Ixe),e.Proj.projections.add(Gxe),e.Proj.projections.add(Fxe),e.Proj.projections.add(Yxe),e.Proj.projections.add(Zxe),e.Proj.projections.add($xe),e.Proj.projections.add(Jxe),e.Proj.projections.add(Qxe),e.Proj.projections.add(eSe),e.Proj.projections.add(tSe),e.Proj.projections.add(nSe),e.Proj.projections.add(rSe),e.Proj.projections.add(iSe),e.Proj.projections.add(oSe),e.Proj.projections.add(sSe),e.Proj.projections.add(aSe),e.Proj.projections.add(lSe),e.Proj.projections.add(vSe),e.Proj.projections.add(ASe),e.Proj.projections.add(kSe),e.Proj.projections.add(OSe),e.Proj.projections.add(RSe),e.Proj.projections.add(zSe),e.Proj.projections.add(XSe)}(Tbe);const YSe=Tbe;var KSe=__webpack_require__(51504),ZSe=__webpack_require__.n(KSe);let $Se=null;function JSe(e){$Se=e;const t=Object.keys(e.defs),n=t.length;let r,i;for(r=0;r<n;++r){const n=t[r];if(!xR(n)){const t=e.defs(n);let r=t.units;r||"longlat"!==t.projName||(r="degrees"),bR(new xO({code:n,axisOrientation:t.axis,metersPerUnit:t.to_meter,units:r}))}}for(r=0;r<n;++r){const o=t[r],s=xR(o);for(i=0;i<n;++i){const n=t[i],r=xR(n);if(!LO(o,n))if(e.defs[o]===e.defs[n])wR([s,r]);else{const t=e(o,n);CR(s,r,zR(s,r,t.forward),zR(r,s,t.inverse))}}}}const QSe=(e,t,n,r)=>{const i=(e,t,n)=>{const r=QO([e[0]-n[0],e[1]-n[1]],t);return[r[0]+n[0],r[1]+n[1]]},o=null!==r&&void 0!==r?r:iO(n),s=xR(e);if(!s)return;const a=new xO({code:s.getCode()+":"+t.toString()+":"+n.toString(),units:s.getUnits(),extent:n});return bR(a),CR(e,a,(e=>i(e,t,o)),(e=>i(e,-t,o))),a},ewe=e=>{const t=[0,0,e.width,e.height];return{projection:new xO({code:"sv-image-projection",units:"pixels",extent:t}),extent:t}},twe=e=>{const{url:t,visible:r=!0,opacityPercent:i=100,zIndex:o=2,onGeoTiffReady:s}=e,[a,l]=(0,n.useState)(),c=(0,n.useContext)(V3);if(!c)return(0,Ae.jsx)(Ae.Fragment,{});const{map:u}=c,d=(0,n.useRef)(new Ome({}));return(0,n.useEffect)((()=>{const e=d.current;return u.addLayer(e),()=>{u&&u.removeLayer(e)}}),[u]),(0,n.useEffect)((()=>{d.current.setVisible(r)}),[d,r]),(0,n.useEffect)((()=>{if(null==i)return;const e=Math.max(0,Math.min(1,i/100));d.current.setOpacity(e)}),[d,i]),(0,n.useEffect)((()=>{d.current.setZIndex(o)}),[d,o]),(0,n.useEffect)((()=>{(async e=>{var t;const n=await zve(e),r=await n.getImage(),i=await r.getGeoKeys();return null!==(t=i.ProjectedCSTypeGeoKey)&&void 0!==t?t:i.GeographicTypeGeoKey})(t).then((e=>{e&&!isNaN(e)?l(e):l(void 0)}))}),[t]),(0,n.useEffect)((()=>{a&&(async e=>{var t;const n="".concat(e),r=n.includes("EPSG")?n:"EPSG:".concat(n),i=xR(r);if(null!=i)return i;const o=r.split("EPSG:")[1];if(""==o)throw new Error("code ".concat(n," is invalid"));let s=null===(t=ZSe()[r])||void 0===t?void 0:t[1];if(!s){var a,l,c;const e=await fetch("https://api.maptiler.com/coordinates/search/".concat(o,".json?exports=true&key=").concat("9il2HwEuumNUJKgkhkUF"));if(!e.ok){const t=await e.text();throw new Error(null!==t&&void 0!==t?t:"An error occured while fetching definition for EPSG code: ".concat(n))}const t=await e.json();if(s=null===t||void 0===t||null===(a=t.results)||void 0===a||null===(l=a[0])||void 0===l||null===(c=l.exports)||void 0===c?void 0:c.proj4,!s)throw new Error("Cannot find definition for code ".concat(o))}return YSe.defs(r,s),JSe(YSe),xR(r)})("".concat(a)).then((e=>{if(!e)return;const n=new i_e({projection:e,sources:[{url:t}]});d.current.setSource(n),n.getView().then((t=>{if(!t||!t.center)return;const n=function(e,t){return TR(e,t,arguments.length>2&&void 0!==arguments[2]?arguments[2]:new xO({code:"EPSG:3857"}))}(t.center,e),r=k3(n);null===s||void 0===s||s(r)}))})).catch((e=>{console.error(e instanceof Error?e.message:"Error while registering EPSG code")}))}),[a,t,s]),(0,Ae.jsx)(Ae.Fragment,{})};var nwe=__webpack_require__(24192),rwe=__webpack_require__(86632);const iwe=(0,vv.c)((0,Ae.jsx)("path",{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm0 18c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8z"}),"RadioButtonUnchecked"),owe=(0,vv.c)((0,Ae.jsx)("path",{d:"M8.465 8.465C9.37 7.56 10.62 7 12 7C14.76 7 17 9.24 17 12C17 13.38 16.44 14.63 15.535 15.535C14.63 16.44 13.38 17 12 17C9.24 17 7 14.76 7 12C7 10.62 7.56 9.37 8.465 8.465Z"}),"RadioButtonChecked"),swe=(0,cs.cp)("span")({position:"relative",display:"flex"}),awe=(0,cs.cp)(iwe)({transform:"scale(1)"}),lwe=(0,cs.cp)(owe)((e=>{let{theme:t,ownerState:n}=e;return(0,d.c)({left:0,position:"absolute",transform:"scale(0)",transition:t.transitions.create("transform",{easing:t.transitions.easing.easeIn,duration:t.transitions.duration.shortest})},n.checked&&{transform:"scale(1)",transition:t.transitions.create("transform",{easing:t.transitions.easing.easeOut,duration:t.transitions.duration.shortest})})}));const cwe=function(e){const{checked:t=!1,classes:n={},fontSize:r}=e,i=(0,d.c)({},e,{checked:t});return(0,Ae.jsxs)(swe,{className:n.root,ownerState:i,children:[(0,Ae.jsx)(awe,{fontSize:r,className:n.background,ownerState:i}),(0,Ae.jsx)(lwe,{fontSize:r,className:n.dot,ownerState:i})]})};var uwe=__webpack_require__(468);const dwe=n.createContext(void 0);function hwe(e){return(0,hs.c)("MuiRadio",e)}const pwe=(0,ds.c)("MuiRadio",["root","checked","disabled","colorPrimary","colorSecondary"]),fwe=["checked","checkedIcon","color","icon","name","onChange","size","className"],gwe=(0,cs.cp)(Zk,{shouldForwardProp:e=>(0,cs.CU)(e)||"classes"===e,name:"MuiRadio",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t["color".concat((0,ha.c)(n.color))]]}})((e=>{let{theme:t,ownerState:n}=e;return(0,d.c)({color:(t.vars||t).palette.text.secondary},!n.disableRipple&&{"&:hover":{backgroundColor:t.vars?"rgba(".concat("default"===n.color?t.vars.palette.action.activeChannel:t.vars.palette[n.color].mainChannel," / ").concat(t.vars.palette.action.hoverOpacity,")"):(0,Ps.W4)("default"===n.color?t.palette.action.active:t.palette[n.color].main,t.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},"default"!==n.color&&{["&.".concat(pwe.checked)]:{color:(t.vars||t).palette[n.color].main}},{["&.".concat(pwe.disabled)]:{color:(t.vars||t).palette.action.disabled}})}));const mwe=(0,Ae.jsx)(cwe,{checked:!0}),ywe=(0,Ae.jsx)(cwe,{}),vwe=n.forwardRef((function(e,t){var r,i;const o=(0,Oe.c)({props:e,name:"MuiRadio"}),{checked:s,checkedIcon:a=mwe,color:l="primary",icon:c=ywe,name:u,onChange:h,size:p="medium",className:f}=o,g=(0,Tt.c)(o,fwe),m=(0,d.c)({},o,{color:l,size:p}),y=(e=>{const{classes:t,color:n}=e,r={root:["root","color".concat((0,ha.c)(n))]};return(0,d.c)({},t,(0,ls.c)(r,hwe,t))})(m),v=n.useContext(dwe);let _=s;const b=(0,uwe.c)(h,v&&v.onChange);let x=u;return v&&("undefined"===typeof _&&(_=function(e,t){return"object"===typeof t&&null!==t?e===t:String(e)===String(t)}(v.value,o.value)),"undefined"===typeof x&&(x=v.name)),(0,Ae.jsx)(gwe,(0,d.c)({type:"radio",icon:n.cloneElement(c,{fontSize:null!=(r=ywe.props.fontSize)?r:p}),checkedIcon:n.cloneElement(a,{fontSize:null!=(i=mwe.props.fontSize)?i:p}),ownerState:m,classes:y,name:x,checked:_,onChange:b,ref:t,className:(0,ts.c)(y.root,f)},g))})),_we=vwe;function bwe(e){return(0,hs.c)("MuiFormGroup",e)}(0,ds.c)("MuiFormGroup",["root","row","error"]);const xwe=["className","row"],Swe=(0,cs.cp)("div",{name:"MuiFormGroup",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.row&&t.row]}})((e=>{let{ownerState:t}=e;return(0,d.c)({display:"flex",flexDirection:"column",flexWrap:"wrap"},t.row&&{flexDirection:"row"})})),wwe=n.forwardRef((function(e,t){const n=(0,Oe.c)({props:e,name:"MuiFormGroup"}),{className:r,row:i=!1}=n,o=(0,Tt.c)(n,xwe),s=xu({props:n,muiFormControl:du(),states:["error"]}),a=(0,d.c)({},n,{row:i,error:s.error}),l=(e=>{const{classes:t,row:n,error:r}=e,i={root:["root",n&&"row",r&&"error"]};return(0,ls.c)(i,bwe,t)})(a);return(0,Ae.jsx)(Swe,(0,d.c)({className:(0,ts.c)(l.root,r),ownerState:a,ref:t},o))})),Ewe=["actions","children","defaultValue","name","onChange","value"],Pwe=n.forwardRef((function(e,t){const{actions:r,children:i,defaultValue:o,name:s,onChange:a,value:l}=e,c=(0,Tt.c)(e,Ewe),u=n.useRef(null),[h,p]=(0,$c.c)({controlled:l,default:o,name:"RadioGroup"});n.useImperativeHandle(r,(()=>({focus:()=>{let e=u.current.querySelector("input:not(:disabled):checked");e||(e=u.current.querySelector("input:not(:disabled)")),e&&e.focus()}})),[]);const f=(0,Cs.c)(t,u),g=(0,Zc.c)(s),m=n.useMemo((()=>({name:g,onChange(e){p(e.target.value),a&&a(e,e.target.value)},value:h})),[g,a,p,h]);return(0,Ae.jsx)(dwe.Provider,{value:m,children:(0,Ae.jsx)(wwe,(0,d.c)({role:"radiogroup",ref:f},c,{children:i}))})})),Cwe=Pwe,Awe=e=>{var t,r;return(0,n.useEffect)((()=>{setTimeout((()=>{var t;null===(t=e.onCollapseDone)||void 0===t||t.call(e,e.open)}),300)}),[e.open]),(0,Ae.jsx)(_h,{className:e.className,in:e.open,timeout:300,collapsedSize:null!==(t=e.minHeight)&&void 0!==t?t:0,children:(0,Ae.jsx)(_h,{in:e.open,timeout:300,collapsedSize:null!==(r=e.minWidth)&&void 0!==r?r:0,orientation:"horizontal",children:e.children})})},kwe=e=>{const t=(0,n.useContext)(V3);if(!t)return(0,Ae.jsx)(Ae.Fragment,{});const{mapProvider:r}=t,[i,o]=(0,n.useState)(!1),[s,a]=(0,n.useState)(!0),[l,c]=(0,n.useState)(null),u=Zo()((()=>({root:{borderRadius:"0.5rem",backgroundColor:"white",border:"1px solid black",display:"flex",justifyContent:"center",alignItems:"center",minWidth:"4rem",overflow:"hidden",whiteSpace:"nowrap",userSelect:"none",height:"fit-content",boxShadow:i?Wp:"none","& .MuiButtonBase-root.MuiRadio-root":{padding:"1px 9px"}},closeBtn:{padding:"2px"}}))),{classes:d}=u(),h=(0,n.useMemo)((()=>e.providers?e.providers:Object.values(mL).filter((e=>e!==mL.NoMap))),[e.providers]);(0,n.useEffect)((()=>{null!==r&&void 0!==r&&r.current&&c(r.current)}),[r]);const p=t=>{var n;o(t),null===(n=e.onOpenChange)||void 0===n||n.call(e,t)},f=(0,n.useCallback)((e=>{const t=e.currentTarget.value,n=h.find((e=>{let{id:n}=e;return n===t}));n&&(c(n),null===r||void 0===r||r.set(n))}),[r,h]);return 0===h.length?(0,Ae.jsx)(Ae.Fragment,{}):l?(0,Ae.jsxs)("div",{className:d.root,style:{maxWidth:i||!s?"fit-content":"4rem"},children:[!i&&s&&(0,Ae.jsx)(Sa,{onClick:()=>p(!0),children:(0,Ae.jsx)(nwe.c,{color:"secondary",fontSize:"medium"})}),(0,Ae.jsx)(Awe,{open:i,onCollapseDone:e=>a(!e),minHeight:38,children:(0,Ae.jsxs)(wp,{width:"100%",height:"100%",padding:"1rem 1rem 0.5rem 0.5rem",position:"relative",children:[(0,Ae.jsx)(wp,{position:"absolute",top:0,right:0,children:(0,Ae.jsx)(Gu,{"aria-label":"close",className:d.closeBtn,onClick:()=>p(!1),children:(0,Ae.jsx)(rwe.c,{})})}),(0,Ae.jsx)(yw,{children:(0,Ae.jsx)(Cwe,{name:"map-providers",value:l.id,onChange:f,children:h.map((e=>(0,Ae.jsx)(Pu,{value:e.id,control:(0,Ae.jsx)(_we,{}),label:e.name},e.id)))})})]})})]}):(0,Ae.jsx)(Ae.Fragment,{})},jwe=Zo()((()=>({root:{width:"100%",display:"flex",justifyContent:"center",alignItems:"center"}}))),Iwe=e=>{const{classes:t}=jwe();return(0,Ae.jsx)(wp,{className:t.root,height:e.fullHeight?"100vh":"100%",children:(0,Ae.jsx)($y,{...e})})},Gwe=()=>{const[e,t]=(0,n.useState)(),[r,i]=(0,n.useState)(1),[o,s]=(0,n.useState)(),[a,l]=(0,n.useState)();(0,n.useEffect)((()=>{c()}),[]);const c=async()=>{var e,t;const n=await Ey("/demo/getOrthoURLs",{method:"GET"});if(200!==n.status)return;const r=await n.json();l({loudeac:null!==(e=r.loudeac)&&void 0!==e?e:"",avignonet:null!==(t=r.avignonet)&&void 0!==t?t:""}),s(r.loudeac)},u=(0,n.useCallback)((e=>{t(e),i(15)}),[]);return a?(0,Ae.jsxs)(ws,{container:!0,width:"100%",height:"100%",direction:"column",children:[(0,Ae.jsx)(ws,{item:!0,children:(0,Ae.jsxs)(yw,{children:[(0,Ae.jsx)(aw,{id:"ortho-url",children:"Orthophoto"}),(0,Ae.jsxs)(Cwe,{row:!0,"aria-labelledby":"ortho-url",value:o,onChange:e=>s(e.target.value),children:[(0,Ae.jsx)(Pu,{value:a.loudeac,control:(0,Ae.jsx)(_we,{}),label:"Loudeac"}),(0,Ae.jsx)(Pu,{value:a.avignonet,control:(0,Ae.jsx)(_we,{}),label:"Avignonet"})]})]})}),(0,Ae.jsx)(ws,{item:!0,flexGrow:1,children:(0,Ae.jsx)(U5,{center:e,zoom:r,leftBar:(0,Ae.jsx)(kwe,{}),children:(0,Ae.jsx)(twe,{url:null!==o&&void 0!==o?o:"",onGeoTiffReady:u})})})]}):(0,Ae.jsx)(Iwe,{})},Twe=e=>{const[t,r]=(0,n.useState)(),[i,o]=(0,n.useState)(),s=e=>{i&&i();try{const t=((e,t)=>co.firestore().collection("inspections").doc(e).onSnapshot((e=>{var n;const r=null===(n=e.data())||void 0===n?void 0:n.aiProgressionPercentage;t(r)})))(e,(e=>{if(!e)return r(void 0);r(e)}));o((()=>t))}catch(t){r(void 0)}};return(0,n.useEffect)((()=>""===e?r(void 0):(s(e),()=>{i&&i()})),[e]),{aiProgress:t}},Mwe=e=>{const[t,r]=(0,n.useState)(),[i,o]=(0,n.useState)(),[s,a]=(0,n.useState)(!1),l=async e=>{a(!0);try{const{findPanels:t,findDefects:n}=await(async e=>{const t=await Ey("/ai/".concat(e,"/default-values"),{method:"GET"}),n=await t.json();if(200!==t.status)throw new Error(null!==n&&void 0!==n?n:t.statusText);if(!n.findPanels||!n.findDefects)throw new Error("Wrong type");return n})(e);r(t),o(n)}catch(t){r(void 0),o(void 0)}finally{a(!1)}};return(0,n.useEffect)((()=>{if(""===e)return r(void 0),void o(void 0);l(e)}),[e]),{findPanelsDefaultValues:t,findDefectsDefaultValues:i,isLoading:s}},Owe={minimumItemsByRowOrColumn:1,minAreaPx:null,maxAreaPx:null,minRatio:null,maxRatio:null,withPhotoRange:!1,photoRange:[2,5e3],isHorizontalPanel:!1,removeIsolatedPanel:!1,shadowOnPanels:!1,isFillBlankEnabled:!1,useJPG:!1},Rwe=()=>{var e,t,r;const[i,o]=(0,n.useState)(""),[s,a]=(0,n.useState)(),[l,c]=(0,n.useState)(Owe),[u,d]=(0,n.useState)(""),[h,p]=(0,n.useState)(),f=(0,n.useMemo)((()=>l.photoRange[0]),[l]),g=(0,n.useMemo)((()=>l.photoRange[1]),[l]),[m,y]=(0,n.useState)(!1),[v,_]=(0,n.useState)(!1),[b,x]=(0,n.useState)(!1),[S,w]=(0,n.useState)(2),[E,P]=(0,n.useState)(""),[C,A]=(0,n.useState)(),[k,j]=(0,n.useState)(!1),[I,G]=(0,n.useState)(2),[T,M]=(0,n.useState)(5e3),[O,R]=(0,n.useState)(!1),[D,N]=(0,n.useState)(""),[L,V]=(0,n.useState)(""),[F,z]=(0,n.useState)(),[B,U]=(0,n.useState)(""),[W,H]=(0,n.useState)(!1),[q,X]=(0,n.useState)(),[Y,K]=(0,n.useState)(!1),[Z,$]=(0,n.useState)(!1),[J,Q]=(0,n.useState)(!1),[ee,te]=(0,n.useState)(),[ne,re]=(0,n.useState)(!0),[ie,oe]=(0,n.useState)(""),{aiStatus:se}=ehe(i,!0),{aiProgress:ae}=Twe(i),{findDefectsDefaultValues:le,isLoading:ce}=Mwe(i),[ue,de]=(0,n.useState)([]),[he,pe]=(0,n.useState)(),[fe,ge]=(0,n.useState)(),[me,ye]=(0,n.useState)("");(0,n.useEffect)((()=>{(async()=>{if(i)try{const e=await PA(i);a(e)}catch(e){a(null)}})()}),[i]);const ve=(0,n.useMemo)((()=>s?ue.filter((e=>Object.keys(s.roles).includes(e.id))):[]),[s,ue]),_e=async(e,t)=>{if(Se(),!i||!he&&!t)return void d("Missing field");const n=t?ue.find((e=>e.email===t)):he;if(!n)return void d("Annotator not found");const r=await JL(i,e,[n.id]);if(200===r.status)V("Annotator ".concat(n.email," ").concat("add"===e?"added to":"removed from"," inspection ").concat(i)),a((t=>{if(!t)return null;if("add"===e)return{...t,roles:{...t.roles,[n.id]:fB.ANNOTATOR}};{const e={...t.roles};return delete e[n.id],{...t,roles:e}}}));else{const e=await r.text();N(null!==e&&void 0!==e?e:"An error occurred")}};(0,n.useEffect)((()=>{(async()=>{const e=await(async e=>(await Ey("/users/role/".concat(e),{method:"GET"})).json())(fB.ANNOTATOR);de(e)})()}),[]);const be=(0,n.useMemo)((()=>[...new Set(ue.map((e=>{let{company:t}=e;return t})))]),[ue]),xe=(0,n.useCallback)((()=>{if(!q)return $(!1);const e=[LC.COMPLETE,LC.POLYGONS,LC.DETECTED,LC.REJECTED,LC.REVIEWING,LC.DONE].includes(q);$(e)}),[q]),Se=()=>{d(""),p(void 0),P(""),A(void 0),N(""),V(""),te(void 0),oe("")};(0,n.useEffect)((()=>{const e=Object.keys(VC).find((e=>VC[e]===se));H(se!==VC.NOT_SOLAR),X(LC[null!==e&&void 0!==e?e:""])}),[se]),(0,n.useEffect)((()=>{xe()}),[xe]),(0,n.useEffect)((()=>{Se()}),[i]);const we=async function(){let e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];if(Se(),K(!0),!i)return d("Missing field"),K(!1);const t=(new Date).getTime(),n=await Ey("/ai/findSolarDefects",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({inspectionId:i,isDiodeEnable:m,isDisconnectedEnable:v,isHotSpotEnable:b,disconnectedThreshold:S,polygonRange:k?[I,T]:void 0,isCropEnable:e,cropPixel:O})}),r=(new Date).getTime();if(200===n.status){const i=await n.json();K(!1),A({isCropEnable:e,time:(r-t)/1e3,totalPanels:i.totalPanels,totalPotentialDefects:i.totalPotentialDefects,diode:i.diode,disconnected:i.disconnected,hotspot:i.hotspot,imagesProcessed:i.imagesProcessed})}else K(!1),P("[handleSubmitSolarDefects] "+n.statusText)};return(0,Ae.jsxs)(wp,{display:"flex",alignItems:"center",justifyContent:"flex-start",gap:"1rem",width:"100%",height:"95%",paddingRight:"1rem",children:[(0,Ae.jsxs)(nB,{style:{backgroundColor:"white",borderRadius:"4%",paddingBottom:"1%",paddingTop:"1%",marginTop:"1rem",border:"1px solid skyblue",overflow:"auto"},children:[(0,Ae.jsxs)(wp,{component:"form",sx:{"& .MuiTextField-root":{m:1,width:"25ch"}},children:[(0,Ae.jsxs)(wp,{display:"flex",flexDirection:"column",justifyContent:"space-between",alignItems:"center",width:"100%",children:[(0,Ae.jsx)("p",{children:"Inspection ID of the target"}),(0,Ae.jsx)(iE,{required:!0,label:"InspectionId",onChange:e=>{o(e.target.value)},value:i}),(0,Ae.jsx)("p",{children:q}),ce&&(0,Ae.jsx)("p",{children:"Fetching default values..."}),(0,Ae.jsx)(ev,{style:{marginTop:"1rem",marginBottom:"1rem"},disabled:!i||Y||!W,onClick:()=>(async e=>{const t=await Ey("/ai/getLastSettings/".concat(e),{method:"GET",headers:{"Content-Type":"application/json"}});if(200===t.status){const e=await t.json();e.findPanels&&c({...Owe,minimumItemsByRowOrColumn:e.findPanels.minimumItemsByRowOrColumn,minAreaPx:e.findPanels.minArea,maxAreaPx:e.findPanels.maxArea,minRatio:e.findPanels.minRatio,maxRatio:e.findPanels.maxRatio,removeIsolatedPanel:e.findPanels.removeIsolatedPanel,shadowOnPanels:e.findPanels.shadowOnPanels,isHorizontalPanel:e.findPanels.isHorizontalPanel,isFillBlankEnabled:e.findPanels.isFillBlankEnable,useJPG:e.findPanels.isJPG}),e.findSolarDefects&&(y(e.findSolarDefects.isDiodeEnable),x(e.findSolarDefects.isHotSpotEnable),w(e.findSolarDefects.disconnectedThreshold),_(e.findSolarDefects.isDisconnectedEnable))}else oe("[handleFetchLastSettings] "+t.statusText)})(i),label:"Fetch last settings"}),""!==ie&&(0,Ae.jsx)(pM,{severity:"error",children:ie})]}),(0,Ae.jsxs)(wp,{display:"flex",justifyContent:"space-between",alignItems:"center",width:"100%",paddingBottom:"1rem",paddingTop:"1rem",children:[(0,Ae.jsx)("p",{children:" Full Monty "}),(0,Ae.jsx)(lj,{checked:J,onChange:e=>Q(e.target.checked)})]}),J&&(0,Ae.jsxs)(wp,{display:"flex",justifyContent:"space-between",alignItems:"center",width:"100%",paddingBottom:"1rem",children:[(0,Ae.jsx)("p",{children:" Upload solar defects crops ? "}),(0,Ae.jsx)(lj,{checked:ne,onChange:e=>re(e.target.checked)})]}),J&&(0,Ae.jsx)(ev,{style:{marginBottom:"1rem"},onClick:()=>(async()=>{if(Se(),K(!0),!i)return d("Missing field"),K(!1);const e={inspectionId:i,photoRange:l.photoRange,minimumItemsByRowOrColumn:l.minimumItemsByRowOrColumn,isHorizontalPanel:l.isHorizontalPanel,removeIsolatedPanel:l.removeIsolatedPanel,shadowOnPanels:l.shadowOnPanels,minArea:l.minAreaPx,maxArea:l.maxAreaPx,minRatio:l.minRatio,maxRatio:l.maxRatio,isFillBlankEnable:l.isFillBlankEnabled,useJPG:l.useJPG},t={inspectionId:i,polygonRange:k?[I,T]:void 0,isDiodeEnable:m,isDisconnectedEnable:v,isHotSpotEnable:b,isCropEnable:ne,disconnectedThreshold:S},n=await Ey("/ai/fullMonty",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({inspectionId:i,findPanelsData:e,findSolarDefectsData:t})});if(200===n.status){const e=await n.json();te({totalTime:e.totalTime,findPanelsStats:e.findPanelsStats,findSolarDefectsStats:e.findSolarDefectsStats,annotationGenerationTime:e.annotationGenerationTime}),K(!1)}else{const e=await n.text();d("[handleFullMonty] "+e),K(!1)}})(),label:"Launch full monty",loading:Y})]}),ee&&(0,Ae.jsx)(pM,{severity:"success",children:(0,Ae.jsxs)("div",{children:[(0,Ae.jsx)("h3",{children:"Find panels stats"}),(0,Ae.jsxs)("ul",{children:[(0,Ae.jsxs)("li",{children:["Successfully detect panels in"," ",null===ee||void 0===ee||null===(e=ee.findPanelsStats)||void 0===e?void 0:e.time," s"]}),(0,Ae.jsxs)("li",{children:["Total panels:"," ",null===ee||void 0===ee?void 0:ee.findPanelsStats.totalPanelCount]}),(0,Ae.jsxs)("li",{children:["Average panels per image:"," ",(0,Ae.jsx)("span",{children:null===ee||void 0===ee||null===(t=ee.findPanelsStats.averagePanelCount)||void 0===t?void 0:t.toFixed(0)})]}),(0,Ae.jsxs)("li",{children:["Images processed:"," ",null===ee||void 0===ee?void 0:ee.findPanelsStats.imagesProcessed]})]}),(0,Ae.jsx)("h3",{children:"Find solar defects stats"}),(0,Ae.jsxs)("ul",{children:[(0,Ae.jsxs)("li",{children:["Successfully generated in"," ",null===ee||void 0===ee?void 0:ee.findSolarDefectsStats.time," s"]}),(0,Ae.jsxs)("li",{children:[ne?"WITH ":"WITHOUT ","crops"]}),(0,Ae.jsxs)("li",{children:["Diode: ",null===ee||void 0===ee?void 0:ee.findSolarDefectsStats.diode]}),(0,Ae.jsxs)("li",{children:["Hotspot: ",null===ee||void 0===ee?void 0:ee.findSolarDefectsStats.hotspot]}),(0,Ae.jsxs)("li",{children:["Disconnected:"," ",null===ee||void 0===ee?void 0:ee.findSolarDefectsStats.disconnected]}),(0,Ae.jsxs)("li",{children:["Total Panels:"," ",null===ee||void 0===ee?void 0:ee.findSolarDefectsStats.totalPanels]}),(0,Ae.jsxs)("li",{children:["Total Potential Defect:"," ",null===ee||void 0===ee?void 0:ee.findSolarDefectsStats.totalPotentialDefects]}),(0,Ae.jsxs)("li",{children:["Images processed:"," ",null===ee||void 0===ee?void 0:ee.findSolarDefectsStats.imagesProcessed]})]}),(0,Ae.jsxs)("h3",{children:["Annotation generation time:"," ",ee.annotationGenerationTime," s"]}),(0,Ae.jsxs)("h2",{children:["Total time: ",ee.totalTime," s"]})]})})]}),(0,Ae.jsxs)(nB,{style:{backgroundColor:"white",borderRadius:"4%",paddingBottom:"1%",paddingTop:"1%",marginTop:"1rem",border:"1px solid skyblue",height:"100%",overflow:"auto"},children:[(0,Ae.jsxs)(wp,{display:"flex",flexDirection:"column",marginTop:"1rem",marginBottom:"1rem",justifyContent:"space-between",alignItems:"flex-start",children:[(0,Ae.jsxs)(wp,{component:"form",sx:{"& .MuiTextField-root":{m:1,width:"25ch"}},children:[(0,Ae.jsx)("p",{children:"Set a value to force the area (optional), else it will be set automatically by the algo"}),(0,Ae.jsx)(vj,{flexDirection:"row",children:(0,Ae.jsx)(iE,{label:"Minimum area",type:"number",InputProps:{inputProps:{min:0,max:1e4,step:"1"}},onChange:e=>{const t=e.target.value?Number(e.target.value):null;var n;n=t,c((e=>({...e,minAreaPx:n})))},value:l.minAreaPx})}),(0,Ae.jsx)(iE,{label:"Maximum area",type:"number",InputProps:{inputProps:{min:0,max:1e4,step:"1"}},onChange:e=>{const t=e.target.value?Number(e.target.value):null;var n;n=t,c((e=>({...e,maxAreaPx:n})))},value:l.maxAreaPx})]}),(0,Ae.jsxs)(wp,{component:"form",sx:{"& .MuiTextField-root":{m:1,width:"25ch"}},children:[(0,Ae.jsx)("p",{children:"Set a value to force the ratio (optional), else it will be set automatically by the algo"}),(0,Ae.jsx)(iE,{label:"Minimum ratio",type:"number",InputProps:{inputProps:{min:.01,max:1,step:".01"}},onChange:e=>{const t=e.target.value?Number(e.target.value):null;var n;n=t,c((e=>({...e,minRatio:n})))},value:l.minRatio}),(0,Ae.jsx)(iE,{label:"Maximum ratio",type:"number",InputProps:{inputProps:{min:.01,max:1,step:".01"}},onChange:e=>{const t=e.target.value?Number(e.target.value):null;var n;n=t,c((e=>({...e,maxRatio:n})))},value:l.maxRatio})]}),(0,Ae.jsxs)(wp,{width:"100%",component:"form",sx:{"& .MuiTextField-root":{m:1,width:"25ch"}},children:[(0,Ae.jsxs)(wp,{display:"flex",alignItems:"center",justifyContent:"space-between",children:[(0,Ae.jsx)("p",{children:"Use a photo range ? (will process all photos if not checked)"}),(0,Ae.jsx)(lj,{checked:l.withPhotoRange,onChange:()=>{var e;e=!l.withPhotoRange,c((t=>({...t,withPhotoRange:e})))}})]}),(0,Ae.jsx)(iE,{label:"Minimum photo range",type:"number",InputProps:{inputProps:{min:2,max:g,step:"2"}},onChange:e=>{var t;t=Number(e.target.value),c((e=>({...e,photoRange:[t,e.photoRange[1]]})))},value:f,disabled:!l.withPhotoRange}),(0,Ae.jsx)(iE,{label:"Maximum photo range",type:"number",InputProps:{inputProps:{min:f,step:"2"}},onChange:e=>{var t;t=Number(e.target.value),c((e=>({...e,photoRange:[e.photoRange[0],t]})))},value:g,disabled:!l.withPhotoRange}),l.withPhotoRange&&(0,Ae.jsxs)(wp,{display:"flex",justifyContent:"center",gap:"1rem",width:"100%",children:[(0,Ae.jsxs)("span",{children:["Photo range: ",f," - ",g]}),(0,Ae.jsxs)("span",{children:["Total photos: ",(g-f)/2+1]})]})]}),(0,Ae.jsxs)(wp,{display:"flex",alignItems:"center",justifyContent:"space-between",width:"100%",children:[(0,Ae.jsx)("p",{children:"Use JPG ?"}),(0,Ae.jsx)(lj,{checked:l.useJPG,onChange:()=>{return e=!l.useJPG,void c((t=>({...t,useJPG:e})));var e}})]})]}),(0,Ae.jsxs)(wp,{display:"flex",flexDirection:"column",marginTop:"1rem",marginBottom:"1rem",justifyContent:"space-between",alignItems:"flex-start",gap:"1rem",children:[(0,Ae.jsx)(ev,{loading:Y||q===LC.PROCESSING,disabled:!i||Y||!W,onClick:()=>(async()=>{if(Se(),K(!0),!i||!l.minimumItemsByRowOrColumn)return d("Missing field"),K(!1);const e=(new Date).getTime(),t=await Ey("/ai/findPanels",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({inspectionId:i,photoRange:l.withPhotoRange?l.photoRange:void 0,minimumItemsByRowOrColumn:l.minimumItemsByRowOrColumn,isHorizontalPanel:l.isHorizontalPanel,removeIsolatedPanel:l.removeIsolatedPanel,shadowOnPanels:l.shadowOnPanels,minArea:l.minAreaPx,maxArea:l.maxAreaPx,minRatio:l.minRatio,maxRatio:l.maxRatio,isFillBlankEnable:l.isFillBlankEnabled,useJPG:l.useJPG})});K(!1);const n=(new Date).getTime();if(200===t.status){const r=await t.json();p({time:(n-e)/1e3,totalPanels:r.totalPanelCount,imagesProcessed:r.imagesProcessed})}else{const e=await t.text();d("[handleDetectionSubmit] "+e)}})(),label:"Generate computer vision boxes",progress:100!==ae?ae:void 0}),""!==u&&(0,Ae.jsx)(pM,{severity:"error",children:u}),h&&(0,Ae.jsx)(pM,{severity:"success",children:(0,Ae.jsxs)("ul",{children:[(0,Ae.jsxs)("li",{children:["Successfully detect panels in ",h.time," s"]}),(0,Ae.jsxs)("li",{children:["Total panels: ",h.totalPanels]}),(0,Ae.jsxs)("li",{children:["Average panels per image:",(0,Ae.jsxs)("span",{children:[" ",h.totalPanels/h.imagesProcessed]})]}),(0,Ae.jsxs)("li",{children:["Images processed: ",h.imagesProcessed]})]})})]})]}),(0,Ae.jsxs)(nB,{style:{height:"100%",backgroundColor:"white",borderRadius:"4%",paddingBottom:"1%",paddingTop:"1%",marginTop:"1rem",border:"1px solid skyblue",filter:Z?"none":"grayscale(100%)",overflow:"auto"},children:[(0,Ae.jsxs)(wp,{display:"flex",flexDirection:"column",justifyContent:"space-between",alignItems:"flex-start",children:[!1===m&&!1===(null===le||void 0===le?void 0:le.withDiodeIssues)&&(0,Ae.jsx)(vu,{color:"grey",lineHeight:"1rem",children:(0,Ae.jsx)("i",{children:'The "diode issues" checkbox has been automatically unchecked because of Thin-Film technology.'})}),(0,Ae.jsxs)(wp,{display:"flex",alignItems:"center",justifyContent:"space-between",width:"100%",children:[(0,Ae.jsx)("p",{children:"Check for diode issues ?"}),(0,Ae.jsx)(lj,{checked:m,onChange:()=>y(!m)})]}),(0,Ae.jsxs)(wp,{display:"flex",alignItems:"center",justifyContent:"space-between",width:"100%",children:[(0,Ae.jsx)("p",{children:"Check for hot spots ?"}),(0,Ae.jsx)(lj,{checked:b,onChange:()=>x(!b)})]}),(0,Ae.jsxs)(wp,{display:"flex",alignItems:"center",justifyContent:"space-between",width:"100%",children:[(0,Ae.jsx)("p",{children:"Check for disconnected issues ?"}),(0,Ae.jsx)(lj,{checked:v,onChange:()=>_(!v)})]}),(0,Ae.jsxs)(wp,{display:"flex",alignItems:"center",justifyContent:"space-between",component:"form",sx:{"& .MuiTextField-root":{m:1,width:"25ch"}},children:[(0,Ae.jsx)("p",{style:{width:"50%",fontSize:"0.8rem"},children:"Threshold to consider a disconnected issue in Celsius degree."}),(0,Ae.jsx)(iE,{label:"Disconnected Threshold",disabled:!v,type:"number",InputProps:{inputProps:{min:1,step:.1}},onChange:e=>w(Number(e.target.value)),value:S})]}),(0,Ae.jsxs)(wp,{display:"flex",alignItems:"center",justifyContent:"space-between",children:[(0,Ae.jsx)("p",{children:"Use a polygon range ? (will process all polygons if unchecked)"}),(0,Ae.jsx)(lj,{checked:k,onChange:()=>j(!k)})]}),(0,Ae.jsxs)(wp,{display:"flex",alignItems:"center",justifyContent:"space-between",flexDirection:"column",component:"form",sx:{"& .MuiTextField-root":{m:1,width:"25ch"}},children:[(0,Ae.jsx)(iE,{label:"Min polygon range",type:"number",InputProps:{inputProps:{min:2,max:T,step:2}},onChange:e=>{G(Number(e.target.value))},value:I,disabled:!k}),(0,Ae.jsx)(iE,{label:"Max polygon range",type:"number",InputProps:{inputProps:{min:I,step:2}},onChange:e=>{M(Number(e.target.value))},value:T,disabled:!k})]}),k&&(0,Ae.jsxs)(wp,{display:"flex",justifyContent:"center",gap:"1rem",width:"100%",children:[(0,Ae.jsxs)("span",{children:["Polygon range: ",I," - ",T]}),(0,Ae.jsxs)("span",{children:["Total photos: ",(T-I)/2+1]})]})]}),(0,Ae.jsxs)(wp,{display:"flex",alignItems:"center",justifyContent:"space-between",width:"100%",marginBottom:"1rem",children:[(0,Ae.jsx)("p",{children:"Crop on pixels (JPG if unchecked) ?"}),(0,Ae.jsx)(lj,{checked:O,onChange:()=>R(!O)})]}),(0,Ae.jsxs)(wp,{display:"flex",alignItems:"center",justifyContent:"space-between",width:"100%",gap:"1rem",children:[(0,Ae.jsx)(ev,{onClick:()=>we(!0),loading:Y,label:"Generate solar defects",disabled:!Z||!i||Y,progress:100!==ae?ae:void 0}),(0,Ae.jsx)(ev,{style:{backgroundColor:"red"},onClick:()=>we(!1),loading:Y,label:"Generate solar defects without Crops",disabled:!Z||!i||Y,progress:100!==ae?ae:void 0})]}),""!==E&&(0,Ae.jsx)(pM,{severity:"error",children:E}),C&&(0,Ae.jsx)(pM,{severity:"success",children:(0,Ae.jsxs)("ul",{children:[(0,Ae.jsxs)("li",{children:["Successfully generated in ",null===C||void 0===C?void 0:C.time," s"]}),(0,Ae.jsxs)("li",{children:[null!==C&&void 0!==C&&C.isCropEnable?"WITH":"WITHOUT"," crops"]}),(0,Ae.jsxs)("li",{children:["Diode: ",null===C||void 0===C?void 0:C.diode]}),(0,Ae.jsxs)("li",{children:["Hotspot: ",null===C||void 0===C?void 0:C.hotspot]}),(0,Ae.jsxs)("li",{children:["Disconnected: ",null===C||void 0===C?void 0:C.disconnected]}),(0,Ae.jsxs)("li",{children:["Total Panels: ",null===C||void 0===C?void 0:C.totalPanels]}),(0,Ae.jsxs)("li",{children:["Total Potential Defect: ",null===C||void 0===C?void 0:C.totalPotentialDefects]}),(0,Ae.jsxs)("li",{children:["Images processed: ",null===C||void 0===C?void 0:C.imagesProcessed]})]})})]}),(0,Ae.jsxs)(nB,{style:{display:"flex",flexDirection:"column",justifyContent:"center",alignItems:"center",width:"100%",height:"100%",backgroundColor:"white",borderRadius:"4%",paddingBottom:"1%",paddingTop:"1%",marginTop:"1rem",border:"1px solid skyblue",gap:"1rem",overflow:"auto",filter:q!==LC.PENDING&&Z&&q!==LC.DETECTED&&q!==LC.ERROR&&q!==LC.PROCESSING&&i?"none":"grayscale(100%)"},children:[(0,Ae.jsx)("p",{children:"Generate the complete json"}),(0,Ae.jsx)(ev,{onClick:async()=>{if(Se(),K(!0),!i)return d("Missing field"),K(!1);const e=await Ey("/ai/createDefectsAnnots",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({inspectionId:i})});K(!1),200===e.status?V("Success"):N("[handleGenerateAnnots] "+e.statusText)},loading:Y,disabled:q===LC.PENDING||q===LC.DETECTED||q===LC.ERROR||q===LC.PROCESSING||!i||Y||!Z,label:"Generate polygons.json",size:"large",progress:100!==ae?ae:void 0}),(0,Ae.jsx)(Qq,{sx:{width:"100%"}}),(0,Ae.jsx)("p",{children:"Set manually the status of the inspection or a tooltip message"}),(0,Ae.jsx)(Jw,{onChange:e=>z(e.target.value),value:F,variant:"outlined",size:"small",style:{width:"100%"},children:Object.keys(VC).filter((e=>!["PROCESSING","ERROR","NOT_SOLAR","DECLINED"].includes(e))).map(((e,t)=>(0,Ae.jsx)(dh,{value:e,children:e},t)))}),(0,Ae.jsx)(ev,{onClick:async()=>{Se(),K(!0),i&&F||d("Missing field");try{await Ey("/ai/setDetectionStatus",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({inspectionId:i,status:F})}),V("Status ".concat(F," set for ").concat(i))}catch(e){N("[handleSelectSubmit] something went wrong.")}finally{K(!1)}},loading:Y,disabled:!F||!i||Y,label:"Update the status",size:"small"}),(0,Ae.jsx)(Qq,{sx:{width:"100%"}}),ve.length>0?(0,Ae.jsxs)("p",{children:[ve.length," annotator",ve.length>1?"s":""," assigned to the inspection:"]}):(0,Ae.jsx)("p",{children:"Assign an annotator to the inspection (only if inspection status is uploaded / annotated)"}),ve.length>0&&(0,Ae.jsx)(Lu,{disablePadding:!0,style:{minHeight:"100px",maxHeight:"250px",overflow:"auto"},children:ve.map(((e,t)=>(0,Ae.jsx)(Bq,{style:{paddingTop:0,paddingBottom:0},secondaryAction:(0,Ae.jsx)(Gu,{edge:"end","aria-label":"delete",onClick:()=>_e("remove",e.email),children:(0,Ae.jsx)(che,{})}),children:(0,Ae.jsx)(Hq,{primary:e.email})},e.email+t)))}),(0,Ae.jsxs)(wp,{display:"flex",width:"100%",gap:"0.5rem",children:[(0,Ae.jsxs)(wp,{width:"100%",children:[(0,Ae.jsx)("p",{children:"Company"}),(0,Ae.jsx)(Jw,{onChange:e=>{ge(e.target.value)},value:fe,placeholder:"Company",variant:"outlined",size:"small",style:{width:"100%"},children:be.map(((e,t)=>(0,Ae.jsx)(dh,{value:e,children:e},t)))})]}),(0,Ae.jsxs)(wp,{width:"100%",children:[(0,Ae.jsx)("p",{children:"Annotator"}),(0,Ae.jsx)(Jw,{onChange:e=>{const t=ue.find((t=>t.email===e.target.value));pe(t)},value:null!==(r=null===he||void 0===he?void 0:he.email)&&void 0!==r?r:"",variant:"outlined",size:"small",style:{width:"100%"},children:ue.filter((e=>!ve.includes(e))).map(((e,t)=>(0,Ae.jsx)(dh,{value:e.email,children:e.email},t)))})]})]}),ve.length>0&&(0,Ae.jsxs)(wp,{display:"flex",gap:"0.2rem",width:"100%",children:[(0,Ae.jsx)(iE,{placeholder:"Note to outsource",value:me,size:"small",onChange:e=>ye(e.target.value),fullWidth:!0,disabled:!i||Y}),(0,Ae.jsx)(ev,{size:"small",color:"success",label:"Save note",onClick:async()=>{if(i&&me){K(!0);try{await ZL(i,{"annotationOutsource.note":me}),V("Note saved")}catch(e){N(e.message)}K(!1)}else N("Missing field")}})]}),(0,Ae.jsxs)(wp,{display:"flex",width:"100%",gap:"1rem",justifyContent:"center",children:[(0,Ae.jsx)(ev,{onClick:()=>(async e=>{if(Se(),!i||!fe)return void d("Missing field");const t=ue.filter((e=>e.company===fe)).map((e=>e.id)),n=await JL(i,e,t);if(200===n.status)V("All annotators from company ".concat(fe," ").concat("add"===e?"added to":"removed from"," inspection ").concat(i)),a((n=>{if(!n)return null;if("add"===e){const e={...n.roles};return t.forEach((t=>{e[t]=fB.ANNOTATOR})),{...n,roles:e}}{const e={...n.roles};return t.forEach((t=>{delete e[t]})),{...n,roles:e}}}));else{const e=await n.text();N(null!==e&&void 0!==e?e:"An error occurred")}})("add"),loading:Y,disabled:!fe||!i||Y,label:"Assign Company",size:"small"}),(0,Ae.jsx)(ev,{onClick:()=>_e("add"),loading:Y,disabled:!he||!i||Y,label:"Assign Annotator",size:"small"}),(0,Ae.jsx)(ev,{onClick:async()=>{if(Se(),!i)return void d("Missing field");const e=await JL(i,"remove",ve.map((e=>e.id)));200===e.status?(V("All annotators removed from inspection ".concat(i)),a((e=>{if(!e)return null;const t={...e.roles};return ve.forEach((e=>{delete t[e.id]})),{...e,roles:t}}))):d("An error occurred")},loading:Y,disabled:!ve.length||!i||Y,label:"Unassign Annotators",size:"small"})]}),(0,Ae.jsx)(Qq,{sx:{width:"100%"}}),(0,Ae.jsx)("p",{children:"Set a tooltip message to be displayed to the client"}),(0,Ae.jsx)(iE,{label:"Set tooltip message",fullWidth:!0,value:B,onChange:e=>U(e.target.value),disabled:!i||Y}),(0,Ae.jsx)(ev,{onClick:()=>(async(e,t)=>{K(!0);const n=await Ey("/inspections/".concat(e),{method:"PATCH",headers:{"Content-Type":"application/json"},body:JSON.stringify({aiTooltipMessage:t})});200===n.status?V("Tooltip message set for ".concat(e)):N("[handleTooltipMessageSubmit] "+n.statusText),K(!1)})(i,B),loading:Y,disabled:!i||Y,label:"Update the tooltip message",size:"small"}),""!==D&&(0,Ae.jsx)(pM,{severity:"error",children:D}),""!==L&&(0,Ae.jsx)(pM,{severity:"success",children:L})]})]})},Dwe=(0,vv.c)((0,Ae.jsx)("path",{d:"M12 12c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm0 2c-2.67 0-8 1.34-8 4v2h16v-2c0-2.66-5.33-4-8-4z"}),"Person");function Nwe(e){return(0,hs.c)("MuiAvatar",e)}(0,ds.c)("MuiAvatar",["root","colorDefault","circular","rounded","square","img","fallback"]);const Lwe=["alt","children","className","component","imgProps","sizes","src","srcSet","variant"],Vwe=(0,cs.cp)("div",{name:"MuiAvatar",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],n.colorDefault&&t.colorDefault]}})((e=>{let{theme:t,ownerState:n}=e;return(0,d.c)({position:"relative",display:"flex",alignItems:"center",justifyContent:"center",flexShrink:0,width:40,height:40,fontFamily:t.typography.fontFamily,fontSize:t.typography.pxToRem(20),lineHeight:1,borderRadius:"50%",overflow:"hidden",userSelect:"none"},"rounded"===n.variant&&{borderRadius:(t.vars||t).shape.borderRadius},"square"===n.variant&&{borderRadius:0},n.colorDefault&&(0,d.c)({color:(t.vars||t).palette.background.default},t.vars?{backgroundColor:t.vars.palette.Avatar.defaultBg}:{backgroundColor:"light"===t.palette.mode?t.palette.grey[400]:t.palette.grey[600]}))})),Fwe=(0,cs.cp)("img",{name:"MuiAvatar",slot:"Img",overridesResolver:(e,t)=>t.img})({width:"100%",height:"100%",textAlign:"center",objectFit:"cover",color:"transparent",textIndent:1e4}),zwe=(0,cs.cp)(Dwe,{name:"MuiAvatar",slot:"Fallback",overridesResolver:(e,t)=>t.fallback})({width:"75%",height:"75%"});const Bwe=n.forwardRef((function(e,t){const r=(0,Oe.c)({props:e,name:"MuiAvatar"}),{alt:i,children:o,className:s,component:a="div",imgProps:l,sizes:c,src:u,srcSet:h,variant:p="circular"}=r,f=(0,Tt.c)(r,Lwe);let g=null;const m=function(e){let{crossOrigin:t,referrerPolicy:r,src:i,srcSet:o}=e;const[s,a]=n.useState(!1);return n.useEffect((()=>{if(!i&&!o)return;a(!1);let e=!0;const n=new Image;return n.onload=()=>{e&&a("loaded")},n.onerror=()=>{e&&a("error")},n.crossOrigin=t,n.referrerPolicy=r,n.src=i,o&&(n.srcset=o),()=>{e=!1}}),[t,r,i,o]),s}((0,d.c)({},l,{src:u,srcSet:h})),y=u||h,v=y&&"error"!==m,_=(0,d.c)({},r,{colorDefault:!v,component:a,variant:p}),b=(e=>{const{classes:t,variant:n,colorDefault:r}=e,i={root:["root",n,r&&"colorDefault"],img:["img"],fallback:["fallback"]};return(0,ls.c)(i,Nwe,t)})(_);return g=v?(0,Ae.jsx)(Fwe,(0,d.c)({alt:i,src:u,srcSet:h,sizes:c,ownerState:_,className:b.img},l)):null!=o?o:y&&i?i[0]:(0,Ae.jsx)(zwe,{className:b.fallback}),(0,Ae.jsx)(Vwe,(0,d.c)({as:a,ownerState:_,className:(0,ts.c)(b.root,s),ref:t},f,{children:g}))})),Uwe=Bwe,Wwe=Zo()((()=>({card:{width:"14rem",margin:"1rem"},mainGrid:{width:"30rem"}}))),Hwe=()=>{const[e,t]=(0,n.useState)(!1),[r,i]=(0,n.useState)({totalPhotos:0,totalReports:0,totalDefects:0,totalAnnotations:0,totalInspections:0}),{classes:o}=Wwe();(0,n.useEffect)((()=>{s()}),[]);const s=async()=>{t(!0);const e=await(async()=>{const e=await Ey("/inspections/allForMap",{method:"GET"});return e?await e.json():[]})();a(e.inspections),t(!1)},a=e=>{const t=e.length;let n=0,r=0,o=0,s=0;e.forEach((e=>{var t,i,a,l,c,u;e.stats&&(n+=null!==(t=null===(i=e.stats)||void 0===i?void 0:i.photoCount)&&void 0!==t?t:0,o+=null!==(a=null===(l=e.stats)||void 0===l?void 0:l.defectsCount)&&void 0!==a?a:0,s+=null!==(c=null===(u=e.stats)||void 0===u?void 0:u.annotationsCount)&&void 0!==c?c:0);"analyzed"===e.status&&(r+=1)})),i({totalInspections:t,totalPhotos:n,totalReports:r,totalDefects:o,totalAnnotations:s})},l=(e,t,n,r)=>(0,Ae.jsx)(ws,{item:!0,xs:12,md:6,children:(0,Ae.jsx)(hj,{className:o.card,children:(0,Ae.jsx)(npe,{children:(0,Ae.jsxs)(ws,{container:!0,spacing:3,justifyContent:"space-between",children:[(0,Ae.jsxs)(ws,{item:!0,children:[(0,Ae.jsx)(vu,{color:"textSecondary",gutterBottom:!0,variant:"overline",children:e}),(0,Ae.jsx)(vu,{color:"textPrimary",variant:"h4",children:t.toLocaleString("fr")})]}),(0,Ae.jsx)(ws,{item:!0,children:(0,Ae.jsx)(Uwe,{style:{backgroundColor:n},children:(0,Ae.jsx)(r,{})})})]})})})});return e?(0,Ae.jsx)($y,{}):(0,Ae.jsxs)(ws,{container:!0,className:o.mainGrid,children:[l("Inspections",r.totalInspections,jp,Jj),l("Photos",r.totalPhotos,"purple",Yj),l("Reports",r.totalReports,"green",tI),l("Defects",r.totalDefects,"red",Qj),l("Annotations",r.totalAnnotations,"orange",eI)]})},qwe=()=>{const[e,t]=(0,n.useState)(!1),[r,i]=(0,n.useState)([]);(0,n.useEffect)((()=>{o()}),[]);const o=async()=>{t(!0);const e=await(async()=>{const e=await Ey("/assets/allWithLocation",{method:"GET"});if(200===e.status)return await e.json();return!1})();i(e),t(!1)},s=(0,n.useMemo)((()=>r.filter((e=>{var t;return e&&["solar","wind"].includes(null!==(t=e.type)&&void 0!==t?t:"")})).map((e=>{var t,n,r;return{id:e.id,coords:"wind"===e.type?{lat:null===(t=e.location)||void 0===t?void 0:t.lat,lng:null===(n=e.location)||void 0===n?void 0:n.lng}:T3(null!==(r=e.area)&&void 0!==r?r:[]),type:"icon",iconUrl:"wind"===e.type?$5:J5,displayText:e.name}})).filter(W3)),[r]);return e?(0,Ae.jsx)($y,{}):(0,Ae.jsx)(wp,{width:"100%",height:"100%",children:(0,Ae.jsx)(U5,{leftBar:(0,Ae.jsx)(Ae.Fragment,{children:(0,Ae.jsx)(kwe,{})}),children:(0,Ae.jsx)(Z5,{clickable:!0,cluster:{active:!0,backgroundColor:jp},points:s,onPointClicked:e=>{var t;""!==(t="".concat(e.getId()))&&window.open("/assets/".concat(t),"_blank")}})})})},Xwe=()=>{const[e,t]=(0,n.useState)(),[r,i]=(0,n.useState)(!0),[o,s]=(0,n.useState)(!1),[a,l]=(0,n.useState)(""),[c,u]=(0,n.useState)();return(0,Ae.jsxs)(Ae.Fragment,{children:[(0,Ae.jsxs)(wp,{display:"flex",marginTop:"1rem",marginBottom:"1rem",justifyContent:"space-between",children:[(0,Ae.jsx)(iE,{onChange:e=>t(e.target.value),value:null!==e&&void 0!==e?e:"",onSubmit:e=>e.preventDefault(),placeholder:"InspectionId"}),(0,Ae.jsx)(aF,{disabled:o,checked:r,onChange:i,text:"Copy files?"}),(0,Ae.jsx)(ev,{loading:o,label:o?"Copy in progress":"Copy from prod to staging",disabled:!e||o,style:{marginLeft:"1rem"},onClick:async()=>{if(!e)return;u(void 0),l(""),s(!0);const n=await Ey("/backoffice/inspection-copy/".concat(e),{method:"POST",body:JSON.stringify({withInspectionFiles:r})});if(s(!1),200!==n.status){const e=await n.text();l("Error: ".concat(n.status," ").concat(n.statusText," | ").concat(e))}else u((0,Ae.jsxs)("p",{children:["Inspection"," ",(0,Ae.jsx)("a",{href:"/inspections/".concat(e),target:"_blank",rel:"noreferrer",children:e})," ","copied successfully."]})),t("")}})]}),""!==a&&(0,Ae.jsx)(pM,{severity:"error",children:a}),void 0!==c&&(0,Ae.jsx)(pM,{severity:"success",children:c})]})},Ywe=()=>{const[e,t]=(0,n.useState)(),[r,i]=(0,n.useState)(),[o,s]=(0,n.useState)(!1),[a,l]=(0,n.useState)(""),[c,u]=(0,n.useState)("");return(0,Ae.jsxs)(Ae.Fragment,{children:[(0,Ae.jsxs)(wp,{display:"flex",marginTop:"1rem",marginBottom:"1rem",justifyContent:"space-between",gap:"1rem",children:[(0,Ae.jsx)(iE,{onChange:e=>t(e.target.value),value:null!==e&&void 0!==e?e:"",onSubmit:e=>e.preventDefault(),placeholder:"InspectionId 1"}),(0,Ae.jsx)(iE,{onChange:e=>i(e.target.value),value:null!==r&&void 0!==r?r:"",onSubmit:e=>e.preventDefault(),placeholder:"InspectionId 2"}),(0,Ae.jsx)(ev,{loading:o,label:o?"Merging in progress":"Merge Inspections",disabled:!e||!r||o,onClick:async()=>{if(l(""),u(""),e&&r){s(!0);try{const t=await(async(e,t)=>await Ey("/inspections/merge",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({inspectionId1:e,inspectionId2:t})}))(e,r);if(!t.ok){const e=await t.text();return l(null!==e&&void 0!==e?e:"Error merging inspections"),void s(!1)}u("Inspections merged successfully. New inspection id : ".concat(await t.text())),s(!1)}catch(t){l("Error merging inspections"),s(!1)}}else l("Please fill in both inspection ids")}})]}),""!==a&&(0,Ae.jsx)(pM,{severity:"error",children:a}),""!==c&&(0,Ae.jsx)(pM,{severity:"success",children:c})]})},Kwe=()=>{const[e,t]=(0,n.useState)(),[r,i]=(0,n.useState)(!1),[o,s]=(0,n.useState)(""),[a,l]=(0,n.useState)("");return(0,Ae.jsxs)(Ae.Fragment,{children:[(0,Ae.jsxs)(wp,{display:"flex",marginTop:"1rem",marginBottom:"1rem",justifyContent:"space-between",gap:"1rem",children:[(0,Ae.jsx)(iE,{onChange:e=>t(e.target.value),value:null!==e&&void 0!==e?e:"",onSubmit:e=>e.preventDefault(),placeholder:"InspectionId to duplicate"}),(0,Ae.jsx)(ev,{loading:r,label:r?"Duplicating in progress":"Duplicate Inspection",disabled:!e||r,onClick:async()=>{if(s(""),l(""),e){i(!0);try{const t=await(async e=>await Ey("/inspections/duplicate",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({inspectionId:e})}))(e);if(!t.ok){const e=await t.text();return s(null!==e&&void 0!==e?e:"Error duplicating inspection"),void i(!1)}l("Inspection duplicated successfully. New inspection id: ".concat(await t.text())),i(!1)}catch(t){s("Error duplicating inspections"),i(!1)}}else s("Please fill in inspection id")}})]}),""!==o&&(0,Ae.jsx)(pM,{severity:"error",children:o}),""!==a&&(0,Ae.jsx)(pM,{severity:"success",children:a})]})},Zwe=e=>{let{title:t,subtitle:n="",children:r}=e;return(0,Ae.jsx)(ws,{item:!0,xs:12,md:6,children:(0,Ae.jsxs)(nB,{sx:{display:"flex",flexDirection:"column",justifyContent:"space-around",maxWidth:"500px",minHeight:"15rem",marginX:0,backgroundColor:"white",paddingBottom:"1%",paddingTop:"1%",borderRadius:"4%"},children:[(0,Ae.jsxs)(vj,{children:[(0,Ae.jsx)(vu,{variant:"h4",children:t}),(0,Ae.jsx)("p",{children:n})]}),r]})})},$we=()=>{const[e,t]=(0,n.useState)(""),[r,i]=(0,n.useState)(),[o,s]=(0,n.useState)(!1),[a,l]=(0,n.useState)(""),[c,u]=(0,n.useState)(""),d=()=>{l(""),u("")};return(0,Ae.jsxs)(Ae.Fragment,{children:[(0,Ae.jsxs)(wp,{display:"flex",marginTop:"1rem",marginBottom:"1rem",justifyContent:"space-between",gap:"1rem",children:[(0,Ae.jsx)(iE,{sx:{minWidth:"12rem"},onChange:e=>t(e.target.value),onBlur:async()=>{if(d(),e)try{const t=await(async e=>{const t=await Ey("/".concat(KL,"/").concat(e,"/getInspectionDoc"));if(200!==t.status)throw new Error(t.statusText);return t.json()})(e);i(t.status)}catch(t){l("Invalid inspection id")}},value:e,onSubmit:e=>e.preventDefault(),placeholder:"Inspection id"}),(0,Ae.jsxs)(yw,{fullWidth:!0,children:[(0,Ae.jsx)(dw,{id:"status-label",children:"Status"}),(0,Ae.jsxs)(Jw,{labelId:"status-label",id:"demo-simple-select",value:null!==r&&void 0!==r?r:"",label:"Status",onChange:e=>i(e.target.value),children:[(0,Ae.jsx)(dh,{value:"",sx:{display:"none"}}),Object.values(OC).filter((e=>e!==OC.ONGOING_ANALYSIS)).map((e=>(0,Ae.jsx)(dh,{value:e,children:e},e)))]})]}),(0,Ae.jsx)(ev,{style:{minWidth:"9rem"},loading:o,label:o?"Loading":"Change status",disabled:!e||!r||o,onClick:async()=>{if(d(),e)if(r){s(!0);try{await ZL(e,{status:r}),u("Inspection's status updated successfully.")}catch(t){l("Error during updating inspection's status.")}s(!1)}else l("Please choose a status");else l("Please fill in inspection id")}})]}),a&&(0,Ae.jsx)(pM,{severity:"error",children:a}),c&&(0,Ae.jsx)(pM,{severity:"success",children:c})]})},Jwe=()=>(0,Ae.jsxs)(ws,{container:!0,marginTop:1,paddingRight:"15vw",rowSpacing:2,columnSpacing:2,justifyContent:"flex-start",children:[(0,Ae.jsx)(Zwe,{title:"Inspection copy from prod to staging",subtitle:"Set the inspectionId from prod that you want to copy in staging",children:(0,Ae.jsx)(Xwe,{})}),(0,Ae.jsx)(Zwe,{title:"Inspection merging",subtitle:"Create a new inspection with data combined from 2 inspections.\r Annotations and defects are not copied.",children:(0,Ae.jsx)(Ywe,{})}),(0,Ae.jsx)(Zwe,{title:"Duplicate inspection",children:(0,Ae.jsx)(Kwe,{})}),(0,Ae.jsx)(Zwe,{title:"Change inspection status",subtitle:"Update the status of an inspection.",children:(0,Ae.jsx)($we,{})})]}),Qwe={backgroundColor:"white",borderRadius:"10px",paddingBottom:"0.5rem",paddingTop:"0.5rem",marginTop:"1rem",border:"1px solid skyblue",overflow:"auto"},eEe=async e=>{const t=await Ey("/inspections/".concat(e,"/annotations"),{method:"GET"}),n=await t.json();if(!t.ok){var r;const e=await t.text();throw new Error(null!==(r=null!==e&&void 0!==e?e:t.statusText)&&void 0!==r?r:"[getSolarInspectionAnnotations] An error occured")}return CC.array(CC.any()).transform((e=>e.filter((e=>{const t=(e=>({...e,note:"",severity:3,thermalStats:{max:0,min:0,mean:0},palette:_L.GREYSCALE}))(e);return EL.safeParse(t).success})))).parse(n)},tEe=async(e,t)=>{const n=await Ey("/inspections/".concat(e,"/annotations"),{method:"POST",body:JSON.stringify(t)});if(!n.ok){var r;const e=await n.text();throw new Error(null!==(r=null!==e&&void 0!==e?e:n.statusText)&&void 0!==r?r:"An error occurred")}return n.json()},nEe=async(e,t)=>{const n=await Ey("/inspections/".concat(e,"/annotations"),{method:"PATCH",body:JSON.stringify(t)});if(!n.ok){var r;const e=await n.text();throw new Error(null!==(r=null!==e&&void 0!==e?e:n.statusText)&&void 0!==r?r:"An error occurred")}return n.json()},rEe=async(e,t)=>{const n=await Ey("/inspections/".concat(e,"/annotations"),{method:"DELETE",body:JSON.stringify(t)});if(!n.ok){var r;const e=await n.text();throw new Error(null!==(r=null!==e&&void 0!==e?e:n.statusText)&&void 0!==r?r:"An error occurred")}},iEe=e=>Ly(e.thermalStats.max-e.thermalStats.mean,1),oEe=(e,t)=>e.photoId===t.photoId?e.position.lng===t.position.lng?0:e.position.lng>t.position.lng?1:-1:parseInt(e.photoId,10)>parseInt(t.photoId,10)?1:-1,sEe={display:"flex",flexDirection:"column",justifyContent:"space-between",alignItems:"center",width:"100%",gap:"0.5rem"},aEe={display:"flex",flexDirection:"row",justifyContent:"space-between",alignItems:"center",width:"100%",gap:"0.5rem"},lEe=e=>{let{label:t,value:n,onChange:r,activeValue:i,checkBoxOnChange:o}=e;return(0,Ae.jsxs)(wp,{style:{...aEe,justifyContent:"space-between"},children:[(0,Ae.jsxs)(vj,{flex:1,alignItems:"center",direction:"row",justifyContent:"space-between",children:[(0,Ae.jsxs)("p",{children:["Modify ",t,"?"]}),(0,Ae.jsx)(lj,{checked:i,onChange:o})]}),(0,Ae.jsx)(iE,{label:t,value:n,onChange:r,disabled:!i})]})},cEe=()=>{const e={annotationReprojection:{isLoading:!1,isDone:!1,error:void 0},shiftPhoto:{isLoading:!1,isDone:!1,error:void 0}},[t,r]=(0,n.useReducer)(((e,t)=>({...e,...t})),{inspectionId:"",photoRange:{isPhotoRangeActive:!1,min:0,max:0},fieldsToPostprocess:{isYawDegreeActive:!1,yawDegree:0,isHeightActive:!1,height:0},offsetPhotos:{isReprojectAnnotationsActive:!1,x:0,y:0}}),[i,o]=(0,n.useReducer)(((e,t)=>({...e,...t})),e),{inspectionId:s,photoRange:a,fieldsToPostprocess:l,offsetPhotos:c}=t,u=()=>(0,Ae.jsx)(Qq,{style:{backgroundColor:"grey",width:"90%",marginTop:"0.5rem",marginBottom:"0.5rem"}}),d=(0,Ae.jsx)(nB,{style:Qwe,children:(0,Ae.jsxs)(wp,{display:"flex",flexDirection:"column",justifyContent:"space-between",alignItems:"center",width:"100%",children:[(0,Ae.jsx)("p",{children:"Inspection ID"}),(0,Ae.jsx)(iE,{required:!0,placeholder:"Inspection ID",onChange:e=>{r({inspectionId:e.target.value})},value:s})]})}),h=(0,Ae.jsxs)(wp,{style:aEe,children:[(0,Ae.jsxs)(wp,{display:"flex",alignItems:"center",children:[(0,Ae.jsx)("p",{children:"Use a photo range?"}),(0,Ae.jsx)(lj,{checked:a.isPhotoRangeActive,onChange:()=>{r({photoRange:{...a,isPhotoRangeActive:!a.isPhotoRangeActive}})}})]}),(0,Ae.jsx)(iE,{label:"Minimum photo range",type:"number",InputProps:{inputProps:{max:a.max,step:2}},onChange:e=>{let t=Math.round(Number(e.target.value));t<0&&(t=0),t>a.max&&(t=a.max),r({photoRange:{...a,min:t}})},value:a.min,disabled:!a.isPhotoRangeActive}),(0,Ae.jsx)(iE,{label:"Maximum photo range",type:"number",InputProps:{inputProps:{min:a.min,step:2}},onChange:e=>{const t=Math.round(Number(e.target.value));r({photoRange:{...a,max:Math.round(t)}})},onBlur:()=>{a.max<a.min&&r({photoRange:{...a,max:a.min}})},value:a.max,disabled:!a.isPhotoRangeActive})]}),p=(0,Ae.jsx)(lEe,{label:"Yaw Degree",value:l.yawDegree,activeValue:l.isYawDegreeActive,checkBoxOnChange:()=>r({fieldsToPostprocess:{...l,isYawDegreeActive:!l.isYawDegreeActive}}),onChange:e=>{let t=e.target.value;/^-?\d*$/.test(e.target.value)&&(Number(e.target.value)<-180&&(t="-180"),Number(e.target.value)>180&&(t="180"),r({fieldsToPostprocess:{...l,yawDegree:"-"===t?t:Number(t)}}))}}),f=(0,Ae.jsx)(Ae.Fragment,{children:(0,Ae.jsx)(lEe,{label:"Height",value:l.height,activeValue:l.isHeightActive,checkBoxOnChange:()=>r({fieldsToPostprocess:{...l,isHeightActive:!l.isHeightActive}}),onChange:e=>{/^\d*$/.test(e.target.value)&&r({fieldsToPostprocess:{...l,height:Number(e.target.value)}})}})}),g=(0,Ae.jsxs)(wp,{style:{...sEe,width:"70%"},children:[p,f]}),m=async function(){var e;let t=arguments.length>0&&void 0!==arguments[0]&&arguments[0];if("-"===l.yawDegree)return void o({...i,annotationReprojection:{isLoading:!1,isDone:!1,error:"Yaw degree is required"}});const n=t||!l.isHeightActive?null:l.height,r=t||!l.isYawDegreeActive?null:l.yawDegree;o({...i,annotationReprojection:{isLoading:!0,isDone:!1,error:void 0}});const c=await(async(e,t,n,r,i)=>{const o=await Ey("/inspections/".concat(e,"/annotations/reproject"),{method:"POST",body:JSON.stringify({height:n,yaw:r,restoreOriginalValues:t,photoRange:i})});return{...await o.json(),ok:o.ok}})(s,t,n,r,a.isPhotoRangeActive?[a.min,a.max]:void 0);o({...i,annotationReprojection:{isLoading:!1,isDone:!!c.ok,error:c.ok?void 0:null!==(e=c.message)&&void 0!==e?e:"Something went wrong. StatusCode: ".concat(c.status)}})},y=async function(){var e;let t=arguments.length>0&&void 0!==arguments[0]&&arguments[0];if("-"===c.x||"-"===c.y)return void o({...i,shiftPhoto:{isLoading:!1,isDone:!1,error:"X and Y are required"}});o({...i,shiftPhoto:{isLoading:!0,isDone:!1,error:void 0}});const n=await async function(e,t,n,r){let i=arguments.length>4&&void 0!==arguments[4]&&arguments[4],o=arguments.length>5&&void 0!==arguments[5]&&arguments[5];const s={method:"POST",body:JSON.stringify({shift:{x:t,y:n},photoRange:r,reprojectAnnotations:i,restoreOriginalValues:o})},a=await Ey("/inspections/".concat(e,"/shift-photos"),s);return{...await a.json(),ok:a.ok}}(s,Number(c.x),Number(c.y),a.isPhotoRangeActive?[a.min,a.max]:null,c.isReprojectAnnotationsActive,t);o({...i,shiftPhoto:{isLoading:!1,isDone:!!n.ok,error:n.ok?void 0:null!==(e=n.message)&&void 0!==e?e:"Something went wrong. StatusCode: ".concat(n.status)}})},v=e=>(0,Ae.jsxs)(Ae.Fragment,{children:[i[e].isLoading&&(0,Ae.jsx)($y,{size:20}),i[e].error&&(0,Ae.jsx)(pM,{severity:"error",children:i[e].error}),i[e].isDone&&(0,Ae.jsx)(pM,{severity:"success",children:"Done"})]}),_=(0,Ae.jsxs)(Ae.Fragment,{children:[(0,Ae.jsxs)(wp,{style:aEe,children:[(0,Ae.jsx)(ev,{label:"Reproject annotations on ".concat(a.isPhotoRangeActive?a.max-a.min===0?1:a.max-a.min:"all"," photos"),disabled:"-"===l.yawDegree||!s||!l.isHeightActive&&!l.isYawDegreeActive,onClick:()=>m(),color:"question"}),(0,Ae.jsx)(ev,{label:"Reproject annotations on ".concat(a.isPhotoRangeActive?a.max-a.min===0?1:a.max-a.min:"all"," photos with original values"),disabled:"-"===l.yawDegree||!s||i.annotationReprojection.isLoading,color:"answer",onClick:()=>m(!0)})]}),v("annotationReprojection")]}),b=(0,Ae.jsxs)(Ae.Fragment,{children:[(0,Ae.jsxs)(wp,{display:"flex",flexDirection:"column",alignItems:"center",children:[(0,Ae.jsx)("p",{children:"Reproject annotations?"}),(0,Ae.jsx)(lj,{checked:c.isReprojectAnnotationsActive,disabled:i.shiftPhoto.isLoading,onChange:()=>r({offsetPhotos:{...c,isReprojectAnnotationsActive:!c.isReprojectAnnotationsActive}})})]}),(0,Ae.jsx)(iE,{label:"X",disabled:i.shiftPhoto.isLoading,value:c.x,onChange:e=>{/^-?\d*\.?\d*?$/.test(e.target.value)&&r({offsetPhotos:{...c,x:"-"===e.target.value?"-":e.target.value}})}}),(0,Ae.jsx)(iE,{label:"Y",disabled:i.shiftPhoto.isLoading,value:c.y,onChange:e=>{/^-?\d*\.?\d*?$/.test(e.target.value)&&r({offsetPhotos:{...c,y:"-"===e.target.value?"-":e.target.value}})}})]}),x=(0,n.useMemo)((()=>a.max-a.min),[a]),S=(0,Ae.jsxs)(wp,{display:"flex",flexDirection:"column",gap:"0.2rem",children:[(0,Ae.jsx)(ev,{label:"Apply offset to ".concat(a.isPhotoRangeActive?0===x?1:x:"all"," photos"),color:"question",disabled:"-"===c.x||"-"===c.y||!s,onClick:()=>y()}),(0,Ae.jsx)(ev,{label:"Restore original values for ".concat(a.isPhotoRangeActive?a.max-a.min===0?1:a.max-a.min:"all"," photos"),color:"success",disabled:"-"===c.x||"-"===c.y||!s||i.shiftPhoto.isLoading,onClick:()=>y(!0)})]}),w=(0,Ae.jsxs)(Ae.Fragment,{children:[g,_]}),E=(0,Ae.jsxs)(Ae.Fragment,{children:[(0,Ae.jsx)("h1",{children:"Photo Offset"}),(0,Ae.jsx)("p",{children:"1500 photos max per photoDataExif document without any other compensation"}),(0,Ae.jsxs)(wp,{style:aEe,children:[b,S]}),v("shiftPhoto")]}),P=(0,Ae.jsx)(nB,{style:Qwe,children:(0,Ae.jsxs)(wp,{style:sEe,children:[(0,Ae.jsx)("h1",{children:"Rerender annotations"}),(0,Ae.jsx)(u,{}),h,(0,Ae.jsx)(u,{}),w,(0,Ae.jsx)(u,{}),E]})});return(0,Ae.jsxs)(ws,{container:!0,children:[(0,Ae.jsx)(ws,{item:!0,children:d}),(0,Ae.jsx)(ws,{item:!0,flex:1,children:P})]})};let uEe=function(e){return e.NAME="name",e.DEADLINE="deadline",e.TIME_SPENT="timeSpent",e.ANNOTATOR="annotator",e.AI_STATUS="aiStatus",e.VIEWED_PHOTOS="viewedPhotos",e.NOTE="note",e.ANNOTATIONS_NB="annotationsNumber",e.ESTIMATED_POWER="estimatedPower",e}({});const dEe=[{id:uEe.NAME,disablePadding:!1,label:"Inspection name"},{id:uEe.DEADLINE,disablePadding:!1,label:"Deadline"},{id:uEe.AI_STATUS,disablePadding:!1,label:"AI status"},{id:uEe.VIEWED_PHOTOS,disablePadding:!1,label:"Progression"}],hEe=[...dEe,{id:uEe.ANNOTATIONS_NB,disablePadding:!1,label:"Number of annotations"},{id:uEe.ESTIMATED_POWER,disablePadding:!1,label:"Estimated power"},{id:uEe.TIME_SPENT,disablePadding:!1,label:"Time spent"},{id:uEe.ANNOTATOR,disablePadding:!1,label:"Current annotator"},{id:uEe.NOTE,disablePadding:!1,label:"Note"}],pEe=e=>{const{order:t,orderBy:r,onRequestSort:i,displayAnnotator:o}=e,s=(0,n.useMemo)((()=>o?hEe:dEe),[o]);return(0,Ae.jsx)(Mj,{children:(0,Ae.jsx)(Wk,{children:s.map((e=>{return(0,Ae.jsx)(tk,{sx:{width:"auto"},align:"center",padding:e.disablePadding?"none":"normal",sortDirection:r===e.id&&t,children:(0,Ae.jsx)(Fj,{active:r===e.id,direction:r===e.id?t:"asc",onClick:(n=e.id,()=>{i(n)}),children:e.label})},e.id);var n}))})})},fEe=e=>e&&e.id&&e.coords&&Array.isArray(e.coords)&&e.coords.every(F3)&&e.inspectionId,gEe=CC.object({minAltitude:CC.number(),maxAltitude:CC.number(),nbPoints:CC.number().positive(),signedUrl:CC.string().url(),message:CC.string().optional()});let mEe=function(e){return e.EARTHDATA="earthdata",e.MANUAL_DEM="manual-dem",e}({}),yEe=function(e){return e.SRTM="SRTM",e.ASTER="ASTER",e}({}),vEe=function(e){return e.NOT_NEEDED="Not needed",e.UPLOADED="Uploaded",e}({}),_Ee=function(e){return e.NOT_NEEDED="NOT_NEEDED",e.UPLOADED="UPLOADED",e}({});const bEe=async(e,t)=>{const n=void 0!==t?"/assets/".concat(e,"/subAssets/").concat(t,"/dem"):"/assets/".concat(e,"/dem"),r=await Ey(n,{method:"GET"});if(!r.ok){var i;const e=await r.text();throw new Error(null!==(i=null!==e&&void 0!==e?e:r.statusText)&&void 0!==i?i:"[getSolarSubAssetDemData] Error while creating subAsset")}const o=await r.json();return gEe.parse(o)},xEe=async(e,t,n)=>{void 0===t&&(t={mode:mEe.EARTHDATA,organization:yEe.SRTM});const r=void 0!==n?"/assets/".concat(e,"/subAssets/").concat(n,"/dem"):"/assets/".concat(e,"/dem"),i=await Ey(r,{method:"POST",body:JSON.stringify({options:t})});if(!i.ok){var o;const e=await i.text();throw new Error(null!==(o=null!==e&&void 0!==e?e:i.statusText)&&void 0!==o?o:"[generateSolarDem] Error while creating dem")}const s=await i.json(),a=gEe.safeParse(s);if(a.success)return a.data;throw new Error("The DEM generator response is not correctly formatted")},SEe=async(e,t,n)=>{const r={method:"PATCH",body:JSON.stringify(n)},i=await Ey("/assets/".concat(e,"/").concat(t),r);if(!i.ok){const e=await i.text();throw new Error("[updateSolarSubAsset] ".concat(null!==e&&void 0!==e?e:"An error occured"))}return i.json()},wEe=async(e,t,n)=>{const r=new URLSearchParams;n&&r.append("externalUserCode",n);const i=await Ey("/assets/".concat(e,"/").concat(t,"/digital-twin?").concat(r)),o=await i.json();if(200!==i.status)throw new Error(null!==o&&void 0!==o?o:i.statusText);const s={assetId:e,subAssetId:t,modules:null===o||void 0===o?void 0:o.modules};if(!((a=s)&&a.assetId&&a.subAssetId&&a.modules&&Array.isArray(a.modules)&&a.modules.every(fEe)))throw new Error("Invalid solar subAsset digital twin");var a;return s},EEe=(e,t,n)=>{const r=e[n]||"",i=t[n]||"";return i<r?-1:i>r?1:0},PEe=e=>{let{inspections:t,forceRole:r,setTotalEstimatedPower:i,setErrorMessage:o}=e;const[s,a]=(0,n.useState)(!0),[l,c]=(0,n.useState)("asc"),[u,d]=(0,n.useState)(uEe.DEADLINE),[h,p]=(0,n.useState)(0),[f,g]=(0,n.useState)(10),[m,y]=(0,n.useState)([]),[v,_]=(0,n.useState)(),[b,x]=(0,n.useState)(),S=on(),w=r===fB.EXPERT||_B(),E=r===fB.ANNOTATOR||bB(),P=(0,n.useCallback)(((e,t,n,r,i,o,s,a,l,c)=>{const u={name:e,aiStatus:t,viewedPhotos:n,inspectionId:r,deadline:i};return E?{...u,annotationsNb:o,estimatedPower:s,timeSpent:a,annotator:l,note:c}:u}),[E]);(0,n.useEffect)((()=>{(async()=>{if(t)return y(t),void a(!1);try{const e=(await GA()).filter((e=>[OC.UPLOADED,OC.ANNOTATED].includes(e.status)));y(e),a(!1)}catch(e){console.error(e),a(!1)}})()}),[t]),(0,n.useEffect)((()=>{(async()=>{const e=new Map;let t=0;const n=m.map((async n=>{const r=await(async(e,t)=>{const n=await Ey("/assets/".concat(e,"/estimated-power/").concat(t),{method:"GET"});if(!n.ok){const e=await n.text();throw new Error(null!==e&&void 0!==e?e:"An error occured fetching estimated power")}return n.json()})(n.assetId,n.subAsset.id);e.set(n.subAsset.id,r),t+=r}));try{await Promise.all(n),_(e),x(t)}catch(i){var r;x(0),o&&o(null!==(r=i.message)&&void 0!==r?r:"An error occurred fetching estimated power")}})()}),[m]);const C=(0,n.useMemo)((()=>{const e=[];return m&&m.forEach((t=>{var n,r,i,o,s,a,l,c,u,d,h;const p=t.type===RC.SOLAR?t.stats.uploadedCount/2:t.stats.uploadedCount,f=null!==(n=t.annotationOutsource)&&void 0!==n&&n.polygonsExists?VC.COMPLETE:VC.NOT_AVAILABLE,g="".concat(t.stats.viewedCount," / ").concat(p," (").concat(Math.round(t.stats.viewedCount/p*100)," %)"),m=E?null!==(r=null===(i=t.annotationOutsource)||void 0===i||null===(o=i.dates)||void 0===o?void 0:o.deadline)&&void 0!==r?r:"N/A":t.uploadedDate?ze()(new Date(t.uploadedDate)).add(10,"day").format("YYYY/MM/DD - HH:mm"):"N/A",y=w?"".concat(t.assetId.slice(0,5).toUpperCase()," - Turbine ").concat(t.subAssetName):"".concat(t.assetName," - ").concat(t.subAssetName),_=null===v||void 0===v?void 0:v.get(t.subAsset.id);e.push(P(y,f,g,t.id,m,null!==(s=t.stats.annotationsCount)&&void 0!==s?s:0,null!==_&&void 0!==_?_:0,null!==(a=null===(l=t.annotationOutsource)||void 0===l?void 0:l.time)&&void 0!==a?a:0,null!==(c=null===(u=t.annotationOutsource)||void 0===u?void 0:u.currentAnnotator)&&void 0!==c?c:"",null!==(d=null===(h=t.annotationOutsource)||void 0===h?void 0:h.note)&&void 0!==d?d:""))})),e}),[P,E,w,m,v]);(0,n.useEffect)((()=>{i&&b&&i(b)}),[b]);const A=(0,n.useMemo)((()=>((e,t)=>{const n=e.map(((e,t)=>[e,t]));return n.sort(((e,n)=>{const r=t(e[0],n[0]);return 0!==r?r:e[1]-n[1]})),n.map((e=>e[0]))})(C,((e,t)=>"desc"===e?(e,n)=>EEe(e,n,t):(e,n)=>-EEe(e,n,t))(l,u)).slice(h*f,h*f+f)),[l,u,h,f,C]);return s?(0,Ae.jsx)(wp,{sx:{padding:"2rem"},children:(0,Ae.jsx)($y,{})}):0===A.length?(0,Ae.jsx)(wp,{sx:{display:"flex",justifyContent:"center",alignItems:"center",padding:"1rem",width:"100%"},children:"No inspections"}):(0,Ae.jsx)(wp,{sx:{width:"100%",padding:"1rem"},children:(0,Ae.jsxs)(Qu,{sx:{width:"100%",mb:2},children:[(0,Ae.jsx)(ok,{children:(0,Ae.jsxs)(BA,{sx:{minWidth:750},"aria-labelledby":"tableTitle",size:"medium",children:[(0,Ae.jsx)(pEe,{order:l,orderBy:u,onRequestSort:e=>{c(u===e&&"asc"===l?"desc":"asc"),d(e)},rowCount:A.length,displayAnnotator:E}),(0,Ae.jsx)(KA,{children:A.map(((e,t)=>{var n,i;const o="enhanced-table-".concat(t);return(0,Ae.jsxs)(Wk,{hover:!0,onClick:()=>{return t=e.inspectionId,void S.push("/inspections/".concat(t,"/uploaded"));var t},tabIndex:-1,sx:{cursor:"pointer",backgroundColor:ze()()>ze()(e.deadline)&&!r?"rgba(255, 0, 0, 0.1)":""},children:[(0,Ae.jsx)(tk,{align:"center",id:o,children:e.name}),(0,Ae.jsx)(tk,{align:"center",children:e.deadline}),(0,Ae.jsx)(tk,{align:"center",children:(0,Ae.jsx)(mA,{status:e.aiStatus||VC.NOT_AVAILABLE})}),(0,Ae.jsx)(tk,{align:"center",children:e.viewedPhotos}),E&&(0,Ae.jsxs)(Ae.Fragment,{children:[(0,Ae.jsx)(tk,{align:"center",children:e.annotationsNb}),(0,Ae.jsxs)(tk,{align:"center",children:[Ly((null!==(n=e.estimatedPower)&&void 0!==n?n:0)/1e3,2)," MW"]}),(0,Ae.jsxs)(tk,{align:"center",children:[Math.ceil((null!==(i=e.timeSpent)&&void 0!==i?i:0)/6e4)," min"]}),(0,Ae.jsx)(tk,{align:"center",children:e.annotator}),(0,Ae.jsx)(tk,{align:"center",children:e.note})]})]},"".concat(e.inspectionId," {").concat(t))}))})]})}),(0,Ae.jsx)(Nk,{rowsPerPageOptions:[5,10,25],component:"div",count:C.length,rowsPerPage:f,page:h,onPageChange:(e,t)=>{p(t)},onRowsPerPageChange:e=>{g(parseInt(e.target.value,10)),p(0)}})]})})},CEe=e=>{const t=(new Date).toISOString().split("T")[0],[r,i]=(0,n.useState)(t),[o,s]=(0,n.useState)(t),{setDateRange:a}=e;(0,n.useEffect)((()=>{a({startDate:r||"",endDate:o||""})}),[r,o,a]);const l=e=>{e.preventDefault()};return(0,Ae.jsxs)(vj,{direction:"row",spacing:2,children:[(0,Ae.jsx)(aS,{label:"Start Date",value:r?new Date(r):null,inputFormat:"YYYY-MM-DD",onChange:e=>{const n=null===e||void 0===e?void 0:e.toISOString().split("T")[0];i(null!==n&&void 0!==n?n:t)},renderInput:e=>(0,Ae.jsx)(iE,{onKeyDown:l,...e})}),(0,Ae.jsx)(aS,{label:"End Date (optional)",value:o?new Date(o):null,inputFormat:"YYYY-MM-DD",onChange:e=>{const n=null===e||void 0===e?void 0:e.toISOString().split("T")[0];s(null!==n&&void 0!==n?n:t)},renderInput:e=>(0,Ae.jsx)(iE,{onKeyDown:l,...e})})]})},AEe=()=>{const[e,t]=(0,n.useState)(),[r,i]=(0,n.useState)(""),[o,s]=(0,n.useState)(!1),[a,l]=(0,n.useState)(0),[c,u]=(0,n.useState)([]),d=(0,n.useMemo)((()=>c.reduce(((e,t)=>{var n;return null!==(n=t.annotationOutsource)&&void 0!==n&&n.time?e+t.annotationOutsource.time:e}),0)),[c]),h=(0,n.useMemo)((()=>c.reduce(((e,t)=>e+t.stats.viewedCount),0)),[c]),p=(0,n.useMemo)((()=>c.reduce(((e,t)=>e+t.stats.annotationsCount),0)),[c]);return(0,Ae.jsxs)(Ae.Fragment,{children:[(0,Ae.jsxs)(ws,{container:!0,paddingTop:"1rem",justifyContent:"space-around",alignItems:"center",gap:"1rem",wrap:"nowrap",children:[r&&(0,Ae.jsx)(pM,{severity:"error",children:r}),(0,Ae.jsx)(ws,{item:!0,children:(0,Ae.jsx)(CEe,{setDateRange:e=>t(e)})}),c.length>0&&(0,Ae.jsxs)(Ae.Fragment,{children:[(0,Ae.jsx)(ws,{item:!0,children:(0,Ae.jsxs)(vu,{children:[d/6e4," minutes spent on outsource"]})}),(0,Ae.jsx)(ws,{item:!0,children:(0,Ae.jsxs)(vu,{children:[h," viewed photos"]})}),Eo()&&(0,Ae.jsxs)(Ae.Fragment,{children:[(0,Ae.jsx)(ws,{item:!0,children:(0,Ae.jsxs)(vu,{children:[p," annotations"]})}),(0,Ae.jsx)(ws,{item:!0,children:a||0===a?(0,Ae.jsxs)(vu,{children:[Ly(a/1e3,2)," MW of solar power inspected"]}):(0,Ae.jsx)($y,{size:20})})]})]}),(0,Ae.jsx)(ev,{size:"small",label:"Get hours spent by outsource for time period",onClick:async()=>{if(i(""),null===e||void 0===e||!e.startDate)return s(!1),void i("Please select a start date");s(!0);try{const t=await(async(e,t)=>{const n=await Ey("".concat("/inspections/outsource","?startDate=").concat(e,"&endDate=").concat(t));if(!n.ok){var r;const e=await n.text();throw new Error(null!==(r=null!==e&&void 0!==e?e:n.statusText)&&void 0!==r?r:"An error occured")}return n.json()})(e.startDate,null===e||void 0===e?void 0:e.endDate);u(t)}catch(r){var t;i(null!==(t=null===r||void 0===r?void 0:r.message)&&void 0!==t?t:"An error occured"),u([])}finally{s(!1)}}})]}),o?(0,Ae.jsx)($y,{}):(0,Ae.jsx)(PEe,{inspections:c,forceRole:fB.ANNOTATOR,setTotalEstimatedPower:e=>l(e),setErrorMessage:e=>i(e)})]})},kEe=Zo()((()=>({icon:{backgroundColor:Tp,width:"7rem",height:"7rem",display:"flex",marginLeft:"1.3rem",marginTop:"2rem","&:hover":{color:Tp,backgroundColor:"black"}},iconText:{color:"white",display:"block",fontSize:"0.8rem",marginLeft:"0.3rem"},content:{zIndex:5},top:{fontSize:"1.2rem"}}))),jEe=()=>{const[e,t]=(0,n.useState)(null),[r,i]=(0,n.useState)("Back Office"),[o,s]=(0,n.useState)(0),[a,l]=(0,n.useState)(null),{classes:c}=kEe(),u=$o((e=>(0,Ae.jsx)(Qd,{elevation:0,anchorOrigin:{vertical:"top",horizontal:"right"},transformOrigin:{vertical:"top",horizontal:"left"},...e})),{paper:{border:"1px solid #d3d4d5"}}),d=(e,n,r,d,h)=>(0,Ae.jsxs)(Ae.Fragment,{children:[(0,Ae.jsxs)(Sa,{className:c.icon,onClick:t=>{l(t.currentTarget),s(e)},style:{color:"white"},children:[(0,Ae.jsx)(n,{size:30,color:"white"}),h?(0,Ae.jsx)(h,{size:20,color:"white"}):(0,Ae.jsx)(Ae.Fragment,{}),(0,Ae.jsx)("div",{className:c.iconText,children:r})]}),(0,Ae.jsx)(u,{anchorEl:a,keepMounted:!0,open:o===e,onClose:()=>{s(0),l(null)},children:d.map(((e,n)=>(0,Ae.jsxs)(dh,{onClick:()=>{s(0),i(e.label),e.component&&t(e.component),e.url&&window.open(e.url,"_blank")},children:[(0,Ae.jsx)(M5,{children:e.icon}),(0,Ae.jsx)(Hq,{primary:e.label})]},n)))})]});return(0,Ae.jsx)(PF,{pageTitle:"Back Office",center:(0,Ae.jsx)("h3",{children:r}),children:(0,Ae.jsxs)(ws,{container:!0,direction:"row",alignContent:"space-between",paddingTop:"1rem",height:"100%",children:[(0,Ae.jsxs)(ws,{item:!0,xs:2,height:"100%",children:[d(1,fE,"User / Company",[{label:"Register Company",icon:(0,Ae.jsx)(rI,{}),component:(0,Ae.jsx)(Zfe,{})},{label:"Register/Update user",icon:(0,Ae.jsx)(fE,{}),component:(0,Ae.jsx)(Bfe,{date:new Date})},{label:"Delete user",icon:(0,Ae.jsx)(rp,{}),component:(0,Ae.jsx)(Jfe,{date:new Date})},{label:"User assets rights",icon:(0,Ae.jsx)(Hh,{}),component:(0,Ae.jsx)(Hfe,{})},{label:"Assets management",icon:(0,Ae.jsx)(ap,{}),component:(0,Ae.jsx)(fge,{})},{label:"Wind turbines",icon:(0,Ae.jsx)(pp,{}),component:(0,Ae.jsx)(mge,{})},{label:"Solar Panels",icon:(0,Ae.jsx)(Jh,{}),component:(0,Ae.jsx)(Pge,{})}],ap),d(2,Ffe.c,"SkyVisor Internal",[{label:"Inspection utils",icon:(0,Ae.jsx)(Ia,{}),component:(0,Ae.jsx)(Jwe,{})},{label:"AI Solar",icon:(0,Ae.jsx)(Fh,{}),component:(0,Ae.jsx)(Rwe,{})},{label:"Inspection postprocessing",icon:(0,Ae.jsx)(Ta,{}),component:(0,Ae.jsx)(cEe,{})},{label:"Solar outsource",icon:(0,Ae.jsx)(Yh,{}),component:(0,Ae.jsx)(AEe,{})}]),d(3,Xj,"SkyVisor figures",[{label:"Asset Map",icon:(0,Ae.jsx)(lp,{}),component:(0,Ae.jsx)(qwe,{})},{label:"Key figures",icon:(0,Ae.jsx)(Wj,{}),component:(0,Ae.jsx)(Hwe,{})},{label:"Exports",icon:(0,Ae.jsx)(Wj,{}),component:(0,Ae.jsx)(bge,{})}]),d(4,$j,"SkyVisor Demos",[{label:"3D Wind",icon:(0,Ae.jsx)(pp,{}),url:"/backOffice/3dwind"},{label:"3D Solar",icon:(0,Ae.jsx)(Jh,{}),url:"/backOffice/3dsolar"},{label:"Orthophoto",icon:(0,Ae.jsx)(lp,{}),component:(0,Ae.jsx)(Gwe,{})}])]}),(0,Ae.jsx)(ws,{item:!0,xs:10,className:c.content,height:"100%",children:e})]})})},IEe=e=>{let{...t}=e;return Ao()&&vB()?(0,Ae.jsx)(Zt,{...t}):(0,Ae.jsx)(Ht,{to:"/login"})},GEe=Zo()((()=>({wholeImage:{position:"relative",aspectRatio:"2 / 1"},selectedBoxStyle:{position:"absolute",top:0,left:0,width:"100%",height:"100%",zIndex:2,border:"4px solid ".concat(jp),pointerEvents:"none"},imageContainer:{position:"relative",overflow:"hidden"},standardImage:{width:"100%"},topLeft:{position:"absolute",top:0,left:0,paddingLeft:"0.5rem",paddingTop:"0.25rem",textAlign:"left","& p":{fontSize:"0.8rem",color:"#ffffe0",textShadow:"-1px -1px 0 #000, 1px -1px 0 #000, -1px 1px 0 #000, 1px 1px 0 #000",letterSpacing:"0.1rem"}},topRight:{position:"absolute",top:0,right:0,paddingRight:"0.5rem",paddingTop:"0.25rem",textAlign:"right"},bottom:{position:"absolute",bottom:0,left:0,paddingLeft:"0.5rem",paddingRight:"0.5rem",paddingBottom:"0.25rem",..._0},delete:{color:Bp,fontSize:"1.6rem",cursor:"pointer"},checkbox:{padding:0,marginRight:"0rem"},absoluteLoader:{position:"absolute",width:"50%",height:"100%",top:0,right:0}}))),TEe=e=>{var t;const{classes:r}=GEe(),{annotation:i,thermalCropUrl:o,rgbCropUrl:s,refs:a,deleteAnnot:l,selected:c,checked:u,checkAnnot:d,selectAnnotation:h,isLoading:p}=e,f=b(Nm),g=m(),[y,v]=(0,n.useState)(!1),[_,x]=(0,n.useState)(!1),[S,w]=(0,n.useState)(!1),[E,P]=(0,n.useState)(!1);(0,n.useEffect)((()=>{if(y&&_)return w(!1);const e=setTimeout((()=>{w(!0)}),5e3);return()=>{clearTimeout(e)}}),[y,_]);const C=e=>e||"https://storage.googleapis.com/skyvisor-staging.appspot.com/utils/solar/crop_loading_image.jpg",A=(0,n.useCallback)((async()=>{if(!f)return;const e=i.id;P(!0);try{const t=(await(async(e,t)=>{const n=await Ey("/inspections/".concat(e,"/annotations/crops"),{method:"POST",body:JSON.stringify({annotationsFullIds:t})});if(!n.ok){const e=await n.text();throw new Error(null!==e&&void 0!==e?e:"Unknown error")}return n.json()})(f.id,[e]))[e];if(!t||2!==t.length)throw new Error;g(Cm({fileName:e,...{urls:t,tmpCrop:!1}})),w(!1)}catch(t){}finally{P(!1)}}),[f,i,g]),k=e=>{h(e,i),2===e.detail&&d(!u)};return(0,Ae.jsxs)(ws,{container:!0,direction:"row",wrap:"nowrap",className:r.wholeImage,ref:a[i.id],children:[(0,Ae.jsx)("div",{className:c?r.selectedBoxStyle:""}),(0,Ae.jsxs)(ws,{item:!0,flex:1,className:r.imageContainer,onClick:k,container:!0,alignItems:"center",children:[(0,Ae.jsx)("img",{alt:"loading thermal\u2026",loading:"lazy",className:r.standardImage,src:C(o),onLoad:()=>x(!0)}),!_&&(0,Ae.jsx)(wp,{className:r.absoluteLoader,children:(0,Ae.jsx)(Iwe,{size:18})})]}),(0,Ae.jsxs)(ws,{item:!0,flex:1,className:r.imageContainer,onClick:k,container:!0,alignItems:"center",children:[(0,Ae.jsx)("img",{alt:"loading rgb\u2026",loading:"lazy",className:r.standardImage,src:C(s),onLoad:()=>v(!0)}),!y&&(0,Ae.jsx)(wp,{className:r.absoluteLoader,children:(0,Ae.jsx)(Iwe,{size:18})})]}),(0,Ae.jsxs)(ws,{container:!0,direction:"column",wrap:"nowrap",className:r.topLeft,children:[(0,Ae.jsx)("p",{children:"Delta: ".concat(iEe(i),"\xb0C")}),(0,Ae.jsx)("p",{children:"Max: ".concat(null!==(t=i.thermalStats.max)&&void 0!==t?t:"","\xb0C")})]}),S&&(0,Ae.jsx)(wp,{width:"100%",className:r.topRight,children:(0,Ae.jsx)(ev,{size:"small",label:E?"Loading (could take 60s)":"Regenerate crops",onClick:A,disabled:E,loading:E})}),(0,Ae.jsxs)(ws,{container:!0,wrap:"nowrap",justifyContent:"space-between",className:r.bottom,children:[(0,Ae.jsx)(n8.c,{className:r.delete,fontSize:"small",onClick:e=>{e.stopPropagation(),l(i)}}),(0,Ae.jsx)(lj,{style:{color:"white",transform:"scale(1.1)"},edge:"end",classes:{root:r.checkbox},onChange:e=>d(e.target.checked),checked:u,disabled:p})]})]})},MEe=(0,n.createContext)(null);let OEe=function(e){return e.NOT_FETCHED="NOT_FETCHED",e.FETCHING="FETCHING",e.FETCHED="FETCHED",e.FAILED="FAILED",e}({}),REe=function(e){return e.photoData="photoData",e.mobileData="mobileData",e.annotationData="annotationData",e.buildPhotoDB="buildPhotoDB",e.defectData="defectData",e}({});const DEe={photoData:OEe.NOT_FETCHED,mobileData:OEe.NOT_FETCHED,annotationData:OEe.NOT_FETCHED,buildPhotoDB:OEe.NOT_FETCHED,defectData:OEe.NOT_FETCHED},NEe=(0,n.createContext)(null),LEe=Zo()((()=>({images:{overflowY:"auto"},emptyList:{textAlign:"center",paddingTop:"3rem"}}))),VEe=e=>{const{classes:t}=LEe(),{deleteAnnotation:r,isLoading:i}=e,o=(0,n.useContext)(NEe),s=(0,n.useContext)(MEe);if(!o||!s)return(0,Ae.jsx)(Ae.Fragment,{});const{fetchStatus:a}=o,{annotations:{filtered:l,checked:{current:c,check:u,uncheck:d},selected:{currentId:h,set:p},crops:f},mapZoom:{set:g}}=s,m=l.reduce(((e,t)=>(e[t.id]=n.createRef(),e)),{}),y=(0,n.useCallback)((e=>h===e),[h]),v=(0,n.useCallback)((e=>{r(e)}),[r]),_=(0,n.useCallback)((e=>{p(e),g([e])}),[p,g]);return a.annotationData!==OEe.FETCHED?(0,Ae.jsx)(Iwe,{text:"Loading annotations\u2026"}):(0,Ae.jsxs)(ws,{container:!0,direction:"column",wrap:"nowrap",height:"100%",children:[(0,Ae.jsx)(ws,{container:!0,className:t.images,columns:2,children:l.map(((e,t)=>{const n="".concat(e.photoId,"_").concat(e.id),r=f.get(n);return(0,Ae.jsx)(ws,{item:!0,xs:2,lg:1,paddingBottom:"0.25rem",children:(0,Ae.jsx)(TEe,{annotation:e,refs:m,selected:y(n),deleteAnnot:v,selectAnnotation:()=>_(n),checkAnnot:e=>((e,t)=>{t?u(e):d(e)})(n,e),checked:c.includes(n),thermalCropUrl:null===r||void 0===r?void 0:r.thermal,rgbCropUrl:null===r||void 0===r?void 0:r.rgb,isLoading:i})},t)}))}),0===l.length&&(0,Ae.jsx)("div",{className:t.emptyList,children:"The list of annotations is empty"})]})};var FEe=__webpack_require__(60888),zEe=__webpack_require__(41360),BEe=__webpack_require__(40676);var UEe=__webpack_require__(84840);const WEe=e=>{var t,r;const[i,o]=(0,n.useState)(!1),[s,a]=(0,n.useState)(!0),l=null!==(t=e.stayOpen)&&void 0!==t&&t,c=l?"0.5rem":"1rem 1rem 0.5rem 0.5rem",u=(0,n.useRef)();(0,n.useEffect)((()=>{var t;null===(t=e.onRefChanged)||void 0===t||t.call(e,u.current)}),[u]);const d=Zo()((()=>({root:{borderRadius:"0.5rem",backgroundColor:"white",border:"1px solid black",display:"flex",justifyContent:"center",alignItems:"center",minWidth:"4rem",whiteSpace:"nowrap",height:"fit-content",boxShadow:i?Wp:"none","& .MuiButtonBase-root.MuiRadio-root":{padding:"1px 9px"}},closeBtn:{padding:"2px"}}))),{classes:h}=d(),p=t=>{var n;o(t),null===(n=e.onOpenChange)||void 0===n||n.call(e,t)},f=(0,n.useCallback)((()=>e.icon?e.icon:(0,Ae.jsx)(UEe.c,{color:"secondary",fontSize:"medium"})),[e.icon]);return(0,Ae.jsxs)("div",{className:h.root,style:{maxWidth:i||!s?"fit-content":"4rem"},children:[!i&&s&&(0,Ae.jsx)(cu,{title:null!==(r=e.tooltip)&&void 0!==r?r:"",placement:"top",children:(0,Ae.jsx)(Sa,{onClick:()=>(()=>{var t;e.stayClose||p(!0),null===(t=e.onIconClicked)||void 0===t||t.call(e)})(),children:(0,Ae.jsx)(f,{})})}),(0,Ae.jsx)(Awe,{open:i||l,onCollapseDone:e=>a(!e),minHeight:38,children:(0,Ae.jsxs)(wp,{ref:u,width:"100%",height:"100%",padding:c,position:"relative",children:[!1===l&&(0,Ae.jsx)(wp,{position:"absolute",top:0,right:0,children:(0,Ae.jsx)(Gu,{"aria-label":"close",className:h.closeBtn,onClick:()=>p(!1),children:(0,Ae.jsx)(rwe.c,{})})}),e.children]})})]})},HEe=[0,0,0,0],qEe=[],XEe="modifystart",YEe="modifyend";class KEe extends QR{constructor(e,t,n){super(e),this.features=t,this.mapBrowserEvent=n}}function ZEe(e,t){return e.index-t.index}function $Ee(e,t,n){const r=t.geometry;if("Circle"===r.getType()){let i=r;if(1===t.index){const t=RR();t&&(i=i.clone().transform(t,n));const r=tR(i.getCenter(),NR(e,n)),o=Math.sqrt(r)-i.getRadius();return o*o}}const i=NR(e,n);return qEe[0]=NR(t.segment[0],n),qEe[1]=NR(t.segment[1],n),function(e,t){return tR(e,$O(e,t))}(i,qEe)}function JEe(e,t,n){const r=t.geometry;if("Circle"===r.getType()&&1===t.index){let t=r;const i=RR();return i&&(t=t.clone().transform(i,n)),DR(t.getClosestPoint(NR(e,n)),n)}const i=NR(e,n);return qEe[0]=NR(t.segment[0],n),qEe[1]=NR(t.segment[1],n),DR($O(i,qEe),n)}function QEe(){const e=s$();return function(t,n){return e.Point}}const ePe=class extends JJ{constructor(e){let t;if(super(e),this.on,this.once,this.un,this.boundHandleFeatureChange_=this.handleFeatureChange_.bind(this),this.condition_=e.condition?e.condition:uQ,this.defaultDeleteCondition_=function(e){return function(e){const t=e.originalEvent;return t.altKey&&!(t.metaKey||t.ctrlKey)&&!t.shiftKey}(e)&&oQ(e)},this.deleteCondition_=e.deleteCondition?e.deleteCondition:this.defaultDeleteCondition_,this.insertVertexCondition_=e.insertVertexCondition?e.insertVertexCondition:nQ,this.vertexFeature_=null,this.vertexSegments_=null,this.lastPixel_=[0,0],this.ignoreNextSingleClick_=!1,this.featuresBeingModified_=null,this.rBush_=new M1,this.pixelTolerance_=void 0!==e.pixelTolerance?e.pixelTolerance:10,this.snappedToVertex_=!1,this.changingFeature_=!1,this.dragSegments_=[],this.overlay_=new T1({source:new Y1({useSpatialIndex:!1,wrapX:!!e.wrapX}),style:e.style?e.style:QEe(),updateWhileAnimating:!0,updateWhileInteracting:!0}),this.SEGMENT_WRITERS_={Point:this.writePointGeometry_.bind(this),LineString:this.writeLineStringGeometry_.bind(this),LinearRing:this.writeLineStringGeometry_.bind(this),Polygon:this.writePolygonGeometry_.bind(this),MultiPoint:this.writeMultiPointGeometry_.bind(this),MultiLineString:this.writeMultiLineStringGeometry_.bind(this),MultiPolygon:this.writeMultiPolygonGeometry_.bind(this),Circle:this.writeCircleGeometry_.bind(this),GeometryCollection:this.writeGeometryCollectionGeometry_.bind(this)},this.source_=null,this.hitDetection_=null,e.features?t=e.features:e.source&&(this.source_=e.source,t=new QX(this.source_.getFeatures()),this.source_.addEventListener(N1,this.handleSourceAdd_.bind(this)),this.source_.addEventListener(F1,this.handleSourceRemove_.bind(this))),!t)throw new Error("The modify interaction requires features, a source or a layer");e.hitDetection&&(this.hitDetection_=e.hitDetection),this.features_=t,this.features_.forEach(this.addFeature_.bind(this)),this.features_.addEventListener(KX,this.handleFeatureAdd_.bind(this)),this.features_.addEventListener(ZX,this.handleFeatureRemove_.bind(this)),this.lastPointerEvent_=null,this.delta_=[0,0],this.snapToPointer_=void 0===e.snapToPointer?!this.hitDetection_:e.snapToPointer}addFeature_(e){const t=e.getGeometry();if(t){const n=this.SEGMENT_WRITERS_[t.getType()];n&&n(e,t)}const n=this.getMap();n&&n.isRendered()&&this.getActive()&&this.handlePointerAtPixel_(this.lastPixel_,n),e.addEventListener(BR,this.boundHandleFeatureChange_)}willModifyFeatures_(e,t){if(!this.featuresBeingModified_){this.featuresBeingModified_=new QX;const n=this.featuresBeingModified_.getArray();for(let e=0,r=t.length;e<r;++e){const r=t[e];for(let e=0,t=r.length;e<t;++e){const t=r[e].feature;t&&!n.includes(t)&&this.featuresBeingModified_.push(t)}}0===this.featuresBeingModified_.getLength()?this.featuresBeingModified_=null:this.dispatchEvent(new KEe(XEe,this.featuresBeingModified_,e))}}removeFeature_(e){this.removeFeatureSegmentData_(e),this.vertexFeature_&&0===this.features_.getLength()&&(this.overlay_.getSource().removeFeature(this.vertexFeature_),this.vertexFeature_=null),e.removeEventListener(BR,this.boundHandleFeatureChange_)}removeFeatureSegmentData_(e){const t=this.rBush_,n=[];t.forEach((function(t){e===t.feature&&n.push(t)}));for(let r=n.length-1;r>=0;--r){const e=n[r];for(let t=this.dragSegments_.length-1;t>=0;--t)this.dragSegments_[t][0]===e&&this.dragSegments_.splice(t,1);t.remove(e)}}setActive(e){this.vertexFeature_&&!e&&(this.overlay_.getSource().removeFeature(this.vertexFeature_),this.vertexFeature_=null),super.setActive(e)}setMap(e){this.overlay_.setMap(e),super.setMap(e)}getOverlay(){return this.overlay_}handleSourceAdd_(e){e.feature&&this.features_.push(e.feature)}handleSourceRemove_(e){e.feature&&this.features_.remove(e.feature)}handleFeatureAdd_(e){this.addFeature_(e.element)}handleFeatureChange_(e){if(!this.changingFeature_){const t=e.target;this.removeFeature_(t),this.addFeature_(t)}}handleFeatureRemove_(e){this.removeFeature_(e.element)}writePointGeometry_(e,t){const n=t.getCoordinates(),r={feature:e,geometry:t,segment:[n,n]};this.rBush_.insert(t.getExtent(),r)}writeMultiPointGeometry_(e,t){const n=t.getCoordinates();for(let r=0,i=n.length;r<i;++r){const i=n[r],o={feature:e,geometry:t,depth:[r],index:r,segment:[i,i]};this.rBush_.insert(t.getExtent(),o)}}writeLineStringGeometry_(e,t){const n=t.getCoordinates();for(let r=0,i=n.length-1;r<i;++r){const i=n.slice(r,r+2),o={feature:e,geometry:t,index:r,segment:i};this.rBush_.insert(DM(i),o)}}writeMultiLineStringGeometry_(e,t){const n=t.getCoordinates();for(let r=0,i=n.length;r<i;++r){const i=n[r];for(let n=0,o=i.length-1;n<o;++n){const o=i.slice(n,n+2),s={feature:e,geometry:t,depth:[r],index:n,segment:o};this.rBush_.insert(DM(o),s)}}}writePolygonGeometry_(e,t){const n=t.getCoordinates();for(let r=0,i=n.length;r<i;++r){const i=n[r];for(let n=0,o=i.length-1;n<o;++n){const o=i.slice(n,n+2),s={feature:e,geometry:t,depth:[r],index:n,segment:o};this.rBush_.insert(DM(o),s)}}}writeMultiPolygonGeometry_(e,t){const n=t.getCoordinates();for(let r=0,i=n.length;r<i;++r){const i=n[r];for(let n=0,o=i.length;n<o;++n){const o=i[n];for(let i=0,s=o.length-1;i<s;++i){const s=o.slice(i,i+2),a={feature:e,geometry:t,depth:[n,r],index:i,segment:s};this.rBush_.insert(DM(s),a)}}}}writeCircleGeometry_(e,t){const n=t.getCenter(),r={feature:e,geometry:t,index:0,segment:[n,n]},i={feature:e,geometry:t,index:1,segment:[n,n]},o=[r,i];r.featureSegments=o,i.featureSegments=o,this.rBush_.insert(XM(n),r);let s=t;const a=RR();if(a&&this.getMap()){const e=this.getMap().getView().getProjection();s=s.clone().transform(a,e),s=wK(s).transform(e,a)}this.rBush_.insert(s.getExtent(),i)}writeGeometryCollectionGeometry_(e,t){const n=t.getGeometriesArray();for(let r=0;r<n.length;++r){const t=n[r];(0,this.SEGMENT_WRITERS_[t.getType()])(e,t)}}createOrUpdateVertexFeature_(e,t,n){let r=this.vertexFeature_;if(r){r.getGeometry().setCoordinates(e)}else r=new P0(new dK(e)),this.vertexFeature_=r,this.overlay_.getSource().addFeature(r);return r.set("features",t),r.set("geometries",n),r}handleEvent(e){if(!e.originalEvent)return!0;let t;return this.lastPointerEvent_=e,e.map.getView().getInteracting()||e.type!=CJ.POINTERMOVE||this.handlingDownUpSequence||this.handlePointerMove_(e),this.vertexFeature_&&this.deleteCondition_(e)&&(t=!(e.type!=CJ.SINGLECLICK||!this.ignoreNextSingleClick_)||this.removePoint()),e.type==CJ.SINGLECLICK&&(this.ignoreNextSingleClick_=!1),super.handleEvent(e)&&!t}handleDragEvent(e){this.ignoreNextSingleClick_=!1,this.willModifyFeatures_(e,this.dragSegments_);const t=[e.coordinate[0]+this.delta_[0],e.coordinate[1]+this.delta_[1]],n=[],r=[];for(let i=0,o=this.dragSegments_.length;i<o;++i){const o=this.dragSegments_[i],s=o[0],a=s.feature;n.includes(a)||n.push(a);const l=s.geometry;r.includes(l)||r.push(l);const c=s.depth;let u;const d=s.segment,h=o[1];for(;t.length<l.getStride();)t.push(d[h][t.length]);switch(l.getType()){case"Point":u=t,d[0]=t,d[1]=t;break;case"MultiPoint":u=l.getCoordinates(),u[s.index]=t,d[0]=t,d[1]=t;break;case"LineString":u=l.getCoordinates(),u[s.index+h]=t,d[h]=t;break;case"MultiLineString":case"Polygon":u=l.getCoordinates(),u[c[0]][s.index+h]=t,d[h]=t;break;case"MultiPolygon":u=l.getCoordinates(),u[c[1]][c[0]][s.index+h]=t,d[h]=t;break;case"Circle":if(d[0]=t,d[1]=t,0===s.index)this.changingFeature_=!0,l.setCenter(t),this.changingFeature_=!1;else{this.changingFeature_=!0;const n=e.map.getView().getProjection();let r=nR(NR(l.getCenter(),n),NR(t,n));const i=RR();if(i){const e=l.clone().transform(i,n);e.setRadius(r),r=e.transform(n,i).getRadius()}l.setRadius(r),this.changingFeature_=!1}}u&&this.setGeometryCoordinates_(l,u)}this.createOrUpdateVertexFeature_(t,n,r)}handleDownEvent(e){if(!this.condition_(e))return!1;const t=e.coordinate;this.handlePointerAtPixel_(e.pixel,e.map,t),this.dragSegments_.length=0,this.featuresBeingModified_=null;const n=this.vertexFeature_;if(n){const r=e.map.getView().getProjection(),i=[],o=n.getGeometry().getCoordinates(),s=DM([o]),a=this.rBush_.getInExtent(s),l={};a.sort(ZEe);for(let n=0,c=a.length;n<c;++n){const s=a[n],c=s.segment;let u=xD(s.geometry);const d=s.depth;if(d&&(u+="-"+d.join("-")),l[u]||(l[u]=new Array(2)),"Circle"!==s.geometry.getType()||1!==s.index)if(!JO(c[0],o)||l[u][0])if(!JO(c[1],o)||l[u][1])xD(c)in this.vertexSegments_&&!l[u][0]&&!l[u][1]&&this.insertVertexCondition_(e)&&i.push(s);else{if(l[u][0]&&0===l[u][0].index){let e=s.geometry.getCoordinates();switch(s.geometry.getType()){case"LineString":case"MultiLineString":continue;case"MultiPolygon":e=e[d[1]];case"Polygon":if(s.index!==e[d[0]].length-2)continue}}this.dragSegments_.push([s,1]),l[u][1]=s}else this.dragSegments_.push([s,0]),l[u][0]=s;else{JO(JEe(t,s,r),o)&&!l[u][0]&&(this.dragSegments_.push([s,0]),l[u][0]=s)}}i.length&&this.willModifyFeatures_(e,[i]);for(let e=i.length-1;e>=0;--e)this.insertVertex_(i[e],o)}return!!this.vertexFeature_}handleUpEvent(e){for(let t=this.dragSegments_.length-1;t>=0;--t){const n=this.dragSegments_[t][0],r=n.geometry;if("Circle"===r.getType()){const t=r.getCenter(),i=n.featureSegments[0],o=n.featureSegments[1];i.segment[0]=t,i.segment[1]=t,o.segment[0]=t,o.segment[1]=t,this.rBush_.update(XM(t),i);let s=r;const a=RR();if(a){const t=e.map.getView().getProjection();s=s.clone().transform(a,t),s=wK(s).transform(t,a)}this.rBush_.update(s.getExtent(),o)}else this.rBush_.update(DM(n.segment),n)}return this.featuresBeingModified_&&(this.dispatchEvent(new KEe(YEe,this.featuresBeingModified_,e)),this.featuresBeingModified_=null),!1}handlePointerMove_(e){this.lastPixel_=e.pixel,this.handlePointerAtPixel_(e.pixel,e.map,e.coordinate)}handlePointerAtPixel_(e,t,n){const r=n||t.getCoordinateFromPixel(e),i=t.getView().getProjection(),o=function(e,t){return $Ee(r,e,i)-$Ee(r,t,i)};let s,a;if(this.hitDetection_){const n="object"===typeof this.hitDetection_?e=>e===this.hitDetection_:void 0;t.forEachFeatureAtPixel(e,((e,t,n)=>{n&&"Point"===n.getType()&&(n=new dK(DR(n.getCoordinates(),i)));const r=n||e.getGeometry();if(e instanceof P0&&this.features_.getArray().includes(e)){a=r;const t=e.getGeometry().getFlatCoordinates().slice(0,2);s=[{feature:e,geometry:a,segment:[t,t]}]}return!0}),{layerFilter:n})}if(!s){const e=LR(NM(VR(XM(r,HEe),i),t.getView().getResolution()*this.pixelTolerance_,HEe),i);s=this.rBush_.getInExtent(e)}if(s&&s.length>0){const n=s.sort(o)[0],l=n.segment;let c=JEe(r,n,i);const u=t.getPixelFromCoordinate(c);let d=nR(e,u);if(a||d<=this.pixelTolerance_){const e={};if(e[xD(l)]=!0,this.snapToPointer_||(this.delta_[0]=c[0]-r[0],this.delta_[1]=c[1]-r[1]),"Circle"===n.geometry.getType()&&1===n.index)this.snappedToVertex_=!0,this.createOrUpdateVertexFeature_(c,[n.feature],[n.geometry]);else{const r=t.getPixelFromCoordinate(l[0]),i=t.getPixelFromCoordinate(l[1]),o=tR(u,r),a=tR(u,i);d=Math.sqrt(Math.min(o,a)),this.snappedToVertex_=d<=this.pixelTolerance_,this.snappedToVertex_&&(c=o>a?l[1]:l[0]),this.createOrUpdateVertexFeature_(c,[n.feature],[n.geometry]);const h={};h[xD(n.geometry)]=!0;for(let t=1,n=s.length;t<n;++t){const n=s[t].segment;if(!(JO(l[0],n[0])&&JO(l[1],n[1])||JO(l[0],n[1])&&JO(l[1],n[0])))break;{const r=xD(s[t].geometry);r in h||(h[r]=!0,e[xD(n)]=!0)}}}return void(this.vertexSegments_=e)}}this.vertexFeature_&&(this.overlay_.getSource().removeFeature(this.vertexFeature_),this.vertexFeature_=null)}insertVertex_(e,t){const n=e.segment,r=e.feature,i=e.geometry,o=e.depth,s=e.index;let a;for(;t.length<i.getStride();)t.push(0);switch(i.getType()){case"MultiLineString":case"Polygon":a=i.getCoordinates(),a[o[0]].splice(s+1,0,t);break;case"MultiPolygon":a=i.getCoordinates(),a[o[1]][o[0]].splice(s+1,0,t);break;case"LineString":a=i.getCoordinates(),a.splice(s+1,0,t);break;default:return}this.setGeometryCoordinates_(i,a);const l=this.rBush_;l.remove(e),this.updateSegmentIndices_(i,s,o,1);const c={segment:[n[0],t],feature:r,geometry:i,depth:o,index:s};l.insert(DM(c.segment),c),this.dragSegments_.push([c,1]);const u={segment:[t,n[1]],feature:r,geometry:i,depth:o,index:s+1};l.insert(DM(u.segment),u),this.dragSegments_.push([u,0]),this.ignoreNextSingleClick_=!0}removePoint(){if(this.lastPointerEvent_&&this.lastPointerEvent_.type!=CJ.POINTERDRAG){const e=this.lastPointerEvent_;this.willModifyFeatures_(e,this.dragSegments_);const t=this.removeVertex_();return this.featuresBeingModified_&&this.dispatchEvent(new KEe(YEe,this.featuresBeingModified_,e)),this.featuresBeingModified_=null,t}return!1}removeVertex_(){const e=this.dragSegments_,t={};let n,r,i,o,s,a,l,c,u,d,h,p=!1;for(s=e.length-1;s>=0;--s)i=e[s],d=i[0],h=xD(d.feature),d.depth&&(h+="-"+d.depth.join("-")),h in t||(t[h]={}),0===i[1]?(t[h].right=d,t[h].index=d.index):1==i[1]&&(t[h].left=d,t[h].index=d.index+1);for(h in t){switch(u=t[h].right,l=t[h].left,a=t[h].index,c=a-1,d=void 0!==l?l:u,c<0&&(c=0),o=d.geometry,r=o.getCoordinates(),n=r,p=!1,o.getType()){case"MultiLineString":r[d.depth[0]].length>2&&(r[d.depth[0]].splice(a,1),p=!0);break;case"LineString":r.length>2&&(r.splice(a,1),p=!0);break;case"MultiPolygon":n=n[d.depth[1]];case"Polygon":n=n[d.depth[0]],n.length>4&&(a==n.length-1&&(a=0),n.splice(a,1),p=!0,0===a&&(n.pop(),n.push(n[0]),c=n.length-1))}if(p){this.setGeometryCoordinates_(o,r);const t=[];if(void 0!==l&&(this.rBush_.remove(l),t.push(l.segment[0])),void 0!==u&&(this.rBush_.remove(u),t.push(u.segment[1])),void 0!==l&&void 0!==u){const e={depth:d.depth,feature:d.feature,geometry:d.geometry,index:c,segment:t};this.rBush_.insert(DM(e.segment),e)}this.updateSegmentIndices_(o,a,d.depth,-1),this.vertexFeature_&&(this.overlay_.getSource().removeFeature(this.vertexFeature_),this.vertexFeature_=null),e.length=0}}return p}setGeometryCoordinates_(e,t){this.changingFeature_=!0,e.setCoordinates(t),this.changingFeature_=!1}updateSegmentIndices_(e,t,n,r){this.rBush_.forEachInExtent(e.getExtent(),(function(i){i.geometry===e&&(void 0===n||void 0===i.depth||oD(i.depth,n))&&i.index>t&&(i.index+=r)}))}},tPe="snap";class nPe extends QR{constructor(e,t){super(e),this.vertex=t.vertex,this.vertexPixel=t.vertexPixel,this.feature=t.feature,this.segment=t.segment}}function rPe(e){return e.feature?e.feature:e.element?e.element:null}const iPe=[];const oPe=class extends JJ{constructor(e){const t=e=e||{};t.handleDownEvent||(t.handleDownEvent=sD),t.stopDown||(t.stopDown=aD),super(t),this.on,this.once,this.un,this.source_=e.source?e.source:null,this.vertex_=void 0===e.vertex||e.vertex,this.edge_=void 0===e.edge||e.edge,this.features_=e.features?e.features:null,this.featuresListenerKeys_=[],this.featureChangeListenerKeys_={},this.indexedFeaturesExtents_={},this.pendingFeatures_={},this.pixelTolerance_=void 0!==e.pixelTolerance?e.pixelTolerance:10,this.rBush_=new M1,this.GEOMETRY_SEGMENTERS_={Point:this.segmentPointGeometry_.bind(this),LineString:this.segmentLineStringGeometry_.bind(this),LinearRing:this.segmentLineStringGeometry_.bind(this),Polygon:this.segmentPolygonGeometry_.bind(this),MultiPoint:this.segmentMultiPointGeometry_.bind(this),MultiLineString:this.segmentMultiLineStringGeometry_.bind(this),MultiPolygon:this.segmentMultiPolygonGeometry_.bind(this),GeometryCollection:this.segmentGeometryCollectionGeometry_.bind(this),Circle:this.segmentCircleGeometry_.bind(this)}}addFeature(e,t){t=void 0===t||t;const n=xD(e),r=e.getGeometry();if(r){const t=this.GEOMETRY_SEGMENTERS_[r.getType()];if(t){this.indexedFeaturesExtents_[n]=r.getExtent([1/0,1/0,-1/0,-1/0]);const i=[];if(t(i,r),1===i.length)this.rBush_.insert(DM(i[0]),{feature:e,segment:i[0]});else if(i.length>1){const t=i.map((e=>DM(e))),n=i.map((t=>({feature:e,segment:t})));this.rBush_.load(t,n)}}}t&&(this.featureChangeListenerKeys_[n]=qD(e,BR,this.handleFeatureChange_,this))}getFeatures_(){let e;return this.features_?e=this.features_:this.source_&&(e=this.source_.getFeatures()),e}handleEvent(e){const t=this.snapTo(e.pixel,e.coordinate,e.map);return t&&(e.coordinate=t.vertex.slice(0,2),e.pixel=t.vertexPixel,this.dispatchEvent(new nPe(tPe,{vertex:e.coordinate,vertexPixel:e.pixel,feature:t.feature,segment:t.segment}))),super.handleEvent(e)}handleFeatureAdd_(e){const t=rPe(e);t&&this.addFeature(t)}handleFeatureRemove_(e){const t=rPe(e);t&&this.removeFeature(t)}handleFeatureChange_(e){const t=e.target;if(this.handlingDownUpSequence){const e=xD(t);e in this.pendingFeatures_||(this.pendingFeatures_[e]=t)}else this.updateFeature_(t)}handleUpEvent(e){const t=Object.values(this.pendingFeatures_);return t.length&&(t.forEach(this.updateFeature_.bind(this)),this.pendingFeatures_={}),!1}removeFeature(e,t){const n=void 0===t||t,r=xD(e),i=this.indexedFeaturesExtents_[r];if(i){const t=this.rBush_,n=[];t.forEachInExtent(i,(function(t){e===t.feature&&n.push(t)}));for(let e=n.length-1;e>=0;--e)t.remove(n[e])}n&&(YD(this.featureChangeListenerKeys_[r]),delete this.featureChangeListenerKeys_[r])}setMap(e){const t=this.getMap(),n=this.featuresListenerKeys_,r=this.getFeatures_();t&&(n.forEach(YD),n.length=0,this.rBush_.clear(),Object.values(this.featureChangeListenerKeys_).forEach(YD),this.featureChangeListenerKeys_={}),super.setMap(e),e&&(this.features_?n.push(qD(this.features_,KX,this.handleFeatureAdd_,this),qD(this.features_,ZX,this.handleFeatureRemove_,this)):this.source_&&n.push(qD(this.source_,N1,this.handleFeatureAdd_,this),qD(this.source_,F1,this.handleFeatureRemove_,this)),r.forEach((e=>this.addFeature(e))))}snapTo(e,t,n){const r=n.getView().getProjection(),i=NR(t,r),o=LR(NM(DM([i]),n.getView().getResolution()*this.pixelTolerance_),r),s=this.rBush_.getInExtent(o),a=s.length;if(0===a)return null;let l,c,u=1/0,d=null;const h=this.pixelTolerance_*this.pixelTolerance_,p=()=>{if(l){const t=n.getPixelFromCoordinate(l);if(tR(e,t)<=h)return{vertex:l,vertexPixel:[Math.round(t[0]),Math.round(t[1])],feature:c,segment:d}}return null};if(this.vertex_){for(let t=0;t<a;++t){const e=s[t];"Circle"!==e.feature.getGeometry().getType()&&e.segment.forEach((t=>{const n=NR(t,r),o=tR(i,n);o<u&&(l=t,u=o,c=e.feature)}))}const e=p();if(e)return e}if(this.edge_){for(let t=0;t<a;++t){let e=null;const n=s[t];if("Circle"===n.feature.getGeometry().getType()){let t=n.feature.getGeometry();const o=RR();o&&(t=t.clone().transform(o,r)),e=ZO(i,t)}else{const[t,o]=n.segment;o&&(iPe[0]=NR(t,r),iPe[1]=NR(o,r),e=$O(i,iPe))}if(e){const t=tR(i,e);t<u&&(l=DR(e,r),d="Circle"===n.feature.getGeometry().getType()?null:n.segment,u=t,c=n.feature)}}const e=p();if(e)return e}return null}updateFeature_(e){this.removeFeature(e,!1),this.addFeature(e,!1)}segmentCircleGeometry_(e,t){const n=this.getMap().getView().getProjection();let r=t;const i=RR();i&&(r=r.clone().transform(i,n));const o=wK(r);i&&o.transform(n,i);const s=o.getCoordinates()[0];for(let a=0,l=s.length-1;a<l;++a)e.push(s.slice(a,a+2))}segmentGeometryCollectionGeometry_(e,t){const n=t.getGeometriesArray();for(let r=0;r<n.length;++r){const t=this.GEOMETRY_SEGMENTERS_[n[r].getType()];t&&t(e,n[r])}}segmentLineStringGeometry_(e,t){const n=t.getCoordinates();for(let r=0,i=n.length-1;r<i;++r)e.push(n.slice(r,r+2))}segmentMultiLineStringGeometry_(e,t){const n=t.getCoordinates();for(let r=0,i=n.length;r<i;++r){const t=n[r];for(let n=0,r=t.length-1;n<r;++n)e.push(t.slice(n,n+2))}}segmentMultiPointGeometry_(e,t){t.getCoordinates().forEach((t=>{e.push([t])}))}segmentMultiPolygonGeometry_(e,t){const n=t.getCoordinates();for(let r=0,i=n.length;r<i;++r){const t=n[r];for(let n=0,r=t.length;n<r;++n){const r=t[n];for(let t=0,n=r.length-1;t<n;++t)e.push(r.slice(t,t+2))}}}segmentPointGeometry_(e,t){e.push([t.getCoordinates()])}segmentPolygonGeometry_(e,t){const n=t.getCoordinates();for(let r=0,i=n.length;r<i;++r){const t=n[r];for(let n=0,r=t.length-1;n<r;++n)e.push(t.slice(n,n+2))}}};const sPe=class extends SN{constructor(e){e=e||{},super();var t,n=this.input=e.input;n||(n=this.input=document.createElement("INPUT"),e.type&&n.setAttribute("type",e.type),void 0!==e.min&&n.setAttribute("min",e.min),void 0!==e.max&&n.setAttribute("max",e.max),void 0!==e.step&&n.setAttribute("step",e.step),e.parent&&e.parent.appendChild(n)),e.disabled&&(n.disabled=!0),void 0!==e.checked&&(n.checked=!!e.checked),void 0!==e.val&&(n.value=e.val),e.hidden&&(n.style.display="none"),n.addEventListener("focus",function(){this.element&&this.element.classList.add("ol-focus")}.bind(this)),n.addEventListener("focusout",function(){this.element&&(t&&clearTimeout(t),t=setTimeout(function(){this.element.classList.remove("ol-focus")}.bind(this),0))}.bind(this))}_listenDrag(e,t){var n=function(n){this.moving=!0,this.element.classList.add("ol-moving");var r=function(n){"pointerup"===n.type&&(document.removeEventListener("pointermove",r),document.removeEventListener("pointerup",r),document.removeEventListener("pointercancel",r),setTimeout(function(){this.moving=!1,this.element.classList.remove("ol-moving")}.bind(this))),n.target===e&&t(n),n.stopPropagation(),n.preventDefault()}.bind(this);document.addEventListener("pointermove",r,!1),document.addEventListener("pointerup",r,!1),document.addEventListener("pointercancel",r,!1),n.stopPropagation(),n.preventDefault()}.bind(this);e.addEventListener("mousedown",n,!1),e.addEventListener("touchstart",n,!1)}setValue(e){void 0!==e&&(this.input.value=e),this.input.dispatchEvent(new Event("change"))}getValue(){return this.input.value}getInputElement(){return this.input}};const aPe=class extends sPe{constructor(e){super(e=e||{});var t=this.element=document.createElement("LABEL");e.html instanceof Element?t.appendChild(e.html):void 0!==e.html&&(t.innerHTML=e.html),t.className=("ol-ext-check ol-ext-checkbox "+(e.className||"")).trim(),this.input.parentNode&&this.input.parentNode.insertBefore(t,this.input),t.appendChild(this.input),t.appendChild(document.createElement("SPAN")),e.after&&t.appendChild(document.createTextNode(e.after)),this.input.addEventListener("change",function(){this.dispatchEvent({type:"check",checked:this.input.checked,value:this.input.value})}.bind(this))}isChecked(){return this.input.checked}};const lPe=class extends aPe{constructor(e){super(e=e||{}),this.element.className=("ol-ext-toggle-switch "+(e.className||"")).trim()}};const cPe=class extends aPe{constructor(e){super(e=e||{}),this.element.className=("ol-ext-check ol-ext-radio "+(e.className||"")).trim()}};var uPe={create:function(e,t){var n;if(t=t||{},"TEXT"===e)n=document.createTextNode(t.html||""),t.parent&&t.parent.appendChild(n);else for(var r in n=document.createElement(e),/button/i.test(e)&&n.setAttribute("type","button"),t)switch(r){case"className":t.className&&t.className.trim&&n.setAttribute("class",t.className.trim());break;case"text":n.innerText=t.text;break;case"html":t.html instanceof Element?n.appendChild(t.html):void 0!==t.html&&(n.innerHTML=t.html);break;case"parent":t.parent&&t.parent.appendChild(n);break;case"options":if(/select/i.test(e))for(var i in t.options)uPe.create("OPTION",{html:i,value:t.options[i],parent:n});break;case"style":uPe.setStyle(n,t.style);break;case"change":case"click":uPe.addListener(n,r,t[r]);break;case"on":for(var o in t.on)uPe.addListener(n,o,t.on[o]);break;case"checked":n.checked=!!t.checked;break;default:n.setAttribute(r,t[r])}return n},createSwitch:function(e){var t=uPe.create("INPUT",{type:"checkbox",on:e.on,click:e.click,change:e.change,parent:e.parent}),n=Object.assign({input:t},e||{});return new lPe(n),t},createCheck:function(e){var t=uPe.create("INPUT",{name:e.name,type:"radio"===e.type?"radio":"checkbox",on:e.on,parent:e.parent}),n=Object.assign({input:t},e||{});return"radio"===e.type?new cPe(n):new aPe(n),t},setHTML:function(e,t){t instanceof Element?e.appendChild(t):void 0!==t&&(e.innerHTML=t)},appendText:function(e,t){e.appendChild(document.createTextNode(t||""))},addListener:function(e,t,n,r){"string"===typeof t&&(t=t.split(" ")),t.forEach((function(t){e.addEventListener(t,n,r)}))},removeListener:function(e,t,n){"string"===typeof t&&(t=t.split(" ")),t.forEach((function(t){e.removeEventListener(t,n)}))},show:function(e){e.style.display=""},hide:function(e){e.style.display="none"},hidden:function(e){return"none"===uPe.getStyle(e,"display")},toggle:function(e){e.style.display="none"===e.style.display?"":"none"},setStyle:function(e,t){for(var n in t)switch(n){case"top":case"left":case"bottom":case"right":case"minWidth":case"maxWidth":case"width":case"height":"number"===typeof t[n]?e.style[n]=t[n]+"px":e.style[n]=t[n];break;default:e.style[n]=t[n]}},getStyle:function(e,t){var n,r=(e.ownerDocument||document).defaultView;if(r&&r.getComputedStyle)t=t.replace(/([A-Z])/g,"-$1").toLowerCase(),n=r.getComputedStyle(e,null).getPropertyValue(t);else if(e.currentStyle&&(t=t.replace(/-(\w)/g,(function(e,t){return t.toUpperCase()})),n=e.currentStyle[t],/^\d+(em|pt|%|ex)?$/i.test(n)))return function(t){var n=e.style.left,r=e.runtimeStyle.left;return e.runtimeStyle.left=e.currentStyle.left,e.style.left=t||0,t=e.style.pixelLeft+"px",e.style.left=n,e.runtimeStyle.left=r,t}(n);return/px$/.test(n)?parseInt(n):n},outerHeight:function(e){return e.offsetHeight+uPe.getStyle(e,"marginBottom")},outerWidth:function(e){return e.offsetWidth+uPe.getStyle(e,"marginLeft")},offsetRect:function(e){var t=e.getBoundingClientRect();return{top:t.top+(window.pageYOffset||document.documentElement.scrollTop||document.body.scrollTop||0),left:t.left+(window.pageXOffset||document.documentElement.scrollLeft||document.body.scrollLeft||0),height:t.height||t.bottom-t.top,width:t.width||t.right-t.left}},getFixedOffset:function(e){var t={left:0,top:0},n=function(e){if(!e)return t;if("absolute"===uPe.getStyle(e,"position")&&"none"!==uPe.getStyle(e,"transform")){var r=e.getBoundingClientRect();return t.left+=r.left,t.top+=r.top,t}return n(e.offsetParent)};return n(e.offsetParent)},positionRect:function(e,t){var n=0,r=0,i=function(o){if(o)return n+=o.offsetLeft,r+=o.offsetTop,i(o.offsetParent);var s={top:e.offsetTop+r,left:e.offsetLeft+n};return t&&(s.top-=window.pageYOffset||document.documentElement.scrollTop||document.body.scrollTop||0,s.left-=window.pageXOffset||document.documentElement.scrollLeft||document.body.scrollLeft||0),s.bottom=s.top+e.offsetHeight,s.right=s.top+e.offsetWidth,s};return i(e.offsetParent)},scrollDiv:function(e,t){var n,r,i,o,s,a=!1,l=0,c=0,u="function"===typeof(t=t||{}).onmove?t.onmove:function(){},d=t.vertical?"screenY":"screenX",h=t.vertical?"scrollTop":"scrollLeft",p=!1,f=0,g=function(){s&&(f++,setTimeout(m))},m=function(){if(s){if(--f)return;var t=e.clientHeight,n=e.scrollHeight;r=t/n,s.style.height=100*r+"%",s.style.top=e.scrollTop/n*100+"%",o.style.height=t+"px",t>n-.5?o.classList.add("ol-100pc"):o.classList.remove("ol-100pc")}},y=function(t){t.target.classList.contains("ol-noscroll")||(p=!1,a=t[d],c=new Date,e.classList.add("ol-move"),t.preventDefault(),window.addEventListener("pointermove",v),uPe.addListener(window,["pointerup","pointercancel"],x))},v=function(t){if(!1!==a){var o=(i?-1/r:1)*(a-t[d]);p=p||Math.round(o),e[h]+=o,(n=new Date)-c&&(l=(l+o/(n-c))/2),a=t[d],c=n,o&&u(!0)}else p=!0},_=function(t){var n=t>0?Math.min(100,t/2):Math.max(-100,t/2);t-=n,e[h]+=n,-1<t&&t<1?(p?setTimeout((function(){e.classList.remove("ol-move")})):e.classList.remove("ol-move"),p=!1,u(!1)):setTimeout((function(){_(t)}),40)};if(t.vertical&&t.minibar){var b=function(n){e.removeEventListener("pointermove",b),e.parentNode.classList.add("ol-miniscroll"),s=uPe.create("DIV"),o=uPe.create("DIV",{className:"ol-scroll",html:s}),e.parentNode.insertBefore(o,e),s.addEventListener("pointerdown",(function(e){i=!0,y(e)})),t.mousewheel&&(uPe.addListener(o,["mousewheel","DOMMouseScroll","onmousewheel"],(function(e){S(e)})),uPe.addListener(s,["mousewheel","DOMMouseScroll","onmousewheel"],(function(e){S(e)}))),e.parentNode.addEventListener("pointerenter",g),window.addEventListener("resize",g),!1!==n&&g()};e.parentNode?b(!1):e.addEventListener("pointermove",b),e.addEventListener("scroll",(function(){g()}))}e.style["touch-action"]="none",e.style.overflow="hidden",e.classList.add("ol-scrolldiv"),uPe.addListener(e,["pointerdown"],(function(e){i=!1,y(e)})),e.addEventListener("click",(function(t){e.classList.contains("ol-move")&&(t.preventDefault(),t.stopPropagation())}),!0);var x=function(n){(c=new Date-c)>100||i?l=0:c>0&&(l=((l||0)+(a-n[d])/c)/2),_(!1===t.animate?0:200*l),a=!1,l=0,c=0,e.classList.contains("ol-move")?e.classList.remove("ol-hasClick"):(e.classList.add("ol-hasClick"),setTimeout((function(){e.classList.remove("ol-hasClick")}),500)),i=!1,window.removeEventListener("pointermove",v),uPe.removeListener(window,["pointerup","pointercancel"],x)},S=function(t){var n=Math.max(-1,Math.min(1,t.wheelDelta||-t.detail));return e.classList.add("ol-move"),e[h]-=30*n,e.classList.remove("ol-move"),!1};return t.mousewheel&&uPe.addListener(e,["mousewheel","DOMMouseScroll","onmousewheel"],S),{refresh:g}},dispatchEvent:function(e,t){var n;try{n=new CustomEvent(e)}catch(r){(n=document.createEvent("CustomEvent")).initCustomEvent(e,!0,!0,{})}t.dispatchEvent(n)},setCursor:function(e,t){e instanceof OQ&&(e=e.getTargetElement()),!("ontouchstart"in window)&&e instanceof Element&&(e.style.cursor=t)}};const dPe=uPe;var hPe=class extends JJ{constructor(e){e=e||{},super({handleDownEvent:function(e){return t.handleDownEvent_(e)},handleDragEvent:function(e){return this.handleDragEvent_(e)},handleMoveEvent:function(e){return this.handleMoveEvent_(e)},handleUpEvent:function(e){return this.handleUpEvent_(e)}});var t=this;this.selection_=new QX,this.handles_=new QX,this.overlayLayer_=new T1({source:new Y1({features:this.handles_,useSpatialIndex:!1,wrapX:!1}),name:"Transform overlay",displayInLayerSwitcher:!1,style:function(e){return t.style[(e.get("handle")||"default")+(e.get("constraint")||"")+(e.get("option")||"")]},updateWhileAnimating:!0,updateWhileInteracting:!0}),this.features_=e.features,"function"===typeof e.filter&&(this._filter=e.filter),this.layers_=e.layers?e.layers instanceof Array?e.layers:[e.layers]:null,this._handleEvent=e.condition||function(){return!0},this.addFn_=e.addCondition||function(){return!1},this.setPointRadius(e.pointRadius),this.set("translateFeature",!1!==e.translateFeature),this.set("translate",!1!==e.translate),this.set("translateBBox",!0===e.translateBBox),this.set("stretch",!1!==e.stretch),this.set("scale",!1!==e.scale),this.set("rotate",!1!==e.rotate),this.set("keepAspectRatio",e.keepAspectRatio||function(e){return e.originalEvent.shiftKey}),this.set("modifyCenter",e.modifyCenter||function(e){return e.originalEvent.metaKey||e.originalEvent.ctrlKey}),this.set("noFlip",e.noFlip||!1),this.set("selection",!1!==e.selection),this.set("hitTolerance",e.hitTolerance||0),this.set("enableRotatedTransform",e.enableRotatedTransform||!1),this.set("keepRectangle",e.keepRectangle||!1),this.set("buffer",e.buffer||0),this.on("propertychange",(function(){this.drawSketch_()})),this.setDefaultStyle()}setMap(e){var t=this.getMap();t&&(t.removeLayer(this.overlayLayer_),this.previousCursor_&&dPe.setCursor(t,this.previousCursor_),this.previousCursor_=void 0),super.setMap(e),this.overlayLayer_.setMap(e),null===e&&this.select(null),null!==e&&(this.isTouch=/touch/.test(e.getViewport().className),this.setDefaultStyle())}setActive(e){this.select(null),this.overlayLayer_&&this.overlayLayer_.setVisible(e),super.setActive(e)}setDefaultStyle(e){var t=(e=e||{}).pointStroke||new n$({color:[255,0,0,1],width:1}),n=e.stroke||new n$({color:[255,0,0,1],width:1,lineDash:[4,4]}),r=e.fill||new e$({color:[255,0,0,.01]}),i=e.pointFill||new e$({color:[255,255,255,.8]}),o=new ZZ({fill:i,stroke:t,radius:this.isTouch?12:6,displacement:this.isTouch?[24,-24]:[12,-12],points:15});o.setDisplacement||(o.getAnchor()[0]=this.isTouch?-10:-5);var s=new ZZ({fill:i,stroke:t,radius:this.isTouch?16:8,points:4,angle:Math.PI/4}),a=new ZZ({fill:i,stroke:t,radius:this.isTouch?12:6,points:4,angle:Math.PI/4});function l(e,t,n){return[new l$({image:e,stroke:t,fill:n})]}this.style={default:l(s,n,r),translate:l(s,t,i),rotate:l(o,t,i),rotate0:l(s,t,i),scale:l(s,t,i),scale1:l(s,t,i),scale2:l(s,t,i),scale3:l(s,t,i),scalev:l(a,t,i),scaleh1:l(a,t,i),scalev2:l(a,t,i),scaleh3:l(a,t,i)},this.drawSketch_()}setStyle(e,t){if(t){this.style[e]=t instanceof Array?t:[t];for(var n=0;n<this.style[e].length;n++){var r=this.style[e][n].getImage();r&&("rotate"==e&&(r.getAnchor()[0]=-5),this.isTouch&&r.setScale(1.8));var i=this.style[e][n].getText();i&&("rotate"==e&&i.setOffsetX(this.isTouch?14:7),this.isTouch&&i.setScale(1.8))}this.drawSketch_()}}getFeatureAtPixel_(e){var t=this;return this.getMap().forEachFeatureAtPixel(e,(function(e,n){var r=!1;if(!n){if(e===t.bbox_)return!!t.get("translateBBox")&&{feature:e,handle:"translate",constraint:"",option:""};if(t.handles_.forEach((function(t){t===e&&(r=!0)})),r)return{feature:e,handle:e.get("handle"),constraint:e.get("constraint"),option:e.get("option")}}if(!t.get("selection"))return t.selection_.getArray().some((function(t){return e===t}))?{feature:e}:null;if(t._filter)return t._filter(e,n)?{feature:e}:null;if(t.layers_){for(var i=0;i<t.layers_.length;i++)if(t.layers_[i]===n)return{feature:e};return null}return t.features_?(t.features_.forEach((function(t){t===e&&(r=!0)})),r?{feature:e}:null):{feature:e}}),{hitTolerance:this.get("hitTolerance")})||{}}getGeometryRotateToZero_(e,t){var n=e.getGeometry(),r=this.getMap().getView().getRotation();if(0===r||!this.get("enableRotatedTransform"))return t?n.clone():n;var i=n.clone();return i.rotate(-1*r,this.getMap().getView().getCenter()),i}_isRectangle(e){return!(!this.get("keepRectangle")||"Polygon"!==e.getType())&&5===e.getCoordinates()[0].length}drawSketch_(e){var t,n,r,i=this.selection_.item(0)&&this._isRectangle(this.selection_.item(0).getGeometry());if(this.overlayLayer_.getSource().clear(),this.selection_.getLength()){var o,s=this.getMap().getView().getRotation(),a=this.getGeometryRotateToZero_(this.selection_.item(0)).getExtent();i&&(o=this.getGeometryRotateToZero_(this.selection_.item(0)).getCoordinates()[0].slice(0,4)).unshift(o[3]),a=NM(a,this.get("buffer")),this.selection_.forEach(function(e){var t=this.getGeometryRotateToZero_(e).getExtent();ZM(a,t)}.bind(this));var l=1===this.selection_.getLength()?this._pointRadius(this.selection_.item(0)):0;if(!l||l instanceof Array||(l=[l,l]),!0===e)this.ispt_||(this.overlayLayer_.getSource().addFeature(new P0({geometry:new dK(this.center_),handle:"rotate0"})),r=SK(a),this.get("enableRotatedTransform")&&0!==s&&r.rotate(s,this.getMap().getView().getCenter()),n=this.bbox_=new P0(r),this.overlayLayer_.getSource().addFeature(n));else{if(this.ispt_){var c=this.getMap().getPixelFromCoordinate(iO(a));if(c){var u=l&&l[0]||10,d=l&&l[1]||10;a=DM([this.getMap().getCoordinateFromPixel([c[0]-u,c[1]-d]),this.getMap().getCoordinateFromPixel([c[0]+u,c[1]+d])])}}r=i?new xK([o]):SK(a),this.get("enableRotatedTransform")&&0!==s&&r.rotate(s,this.getMap().getView().getCenter()),n=this.bbox_=new P0(r);var h=[],p=r.getCoordinates()[0];if(!this.ispt_||l){if(h.push(n),!this.iscircle_&&!this.ispt_&&this.get("stretch")&&this.get("scale"))for(t=0;t<p.length-1;t++)n=new P0({geometry:new dK([(p[t][0]+p[t+1][0])/2,(p[t][1]+p[t+1][1])/2]),handle:"scale",constraint:t%2?"h":"v",option:t}),h.push(n);if(this.get("scale"))for(t=0;t<p.length-1;t++)n=new P0({geometry:new dK(p[t]),handle:"scale",option:t}),h.push(n);this.get("translate")&&!this.get("translateFeature")&&(n=new P0({geometry:new dK([(p[0][0]+p[2][0])/2,(p[0][1]+p[2][1])/2]),handle:"translate"}),h.push(n))}!this.iscircle_&&this.get("rotate")&&(n=new P0({geometry:new dK(p[3]),handle:"rotate"}),h.push(n)),this.overlayLayer_.getSource().addFeatures(h)}}}select(e,t){if(e){if(e.getGeometry&&e.getGeometry()){if(t)this.selection_.push(e);else{var n=this.selection_.getArray().indexOf(e);this.selection_.removeAt(n)}this.ispt_=1===this.selection_.getLength()&&"Point"==this.selection_.item(0).getGeometry().getType(),this.iscircle_=1===this.selection_.getLength()&&"Circle"==this.selection_.item(0).getGeometry().getType(),this.drawSketch_(),this.watchFeatures_(),this.dispatchEvent({type:"select",feature:e,features:this.selection_})}}else this.selection_&&(this.selection_.clear(),this.drawSketch_())}setSelection(e){this.selection_.clear(),e.forEach(function(e){this.selection_.push(e)}.bind(this)),this.ispt_=1===this.selection_.getLength()&&"Point"==this.selection_.item(0).getGeometry().getType(),this.iscircle_=1===this.selection_.getLength()&&"Circle"==this.selection_.item(0).getGeometry().getType(),this.drawSketch_(),this.watchFeatures_(),this.dispatchEvent({type:"select",features:this.selection_})}watchFeatures_(){this._featureListeners&&this._featureListeners.forEach((function(e){_N(e)})),this._featureListeners=[],this.selection_.forEach(function(e){this._featureListeners.push(e.on("change",function(){this.isUpdating_||this.drawSketch_()}.bind(this)))}.bind(this))}handleDownEvent_(e){if(this._handleEvent(e,this.selection_)){var t=this.getFeatureAtPixel_(e.pixel),n=t.feature;if(this.selection_.getLength()&&this.selection_.getArray().indexOf(n)>=0&&(this.ispt_&&this.get("translate")||this.get("translateFeature"))&&(t.handle="translate"),t.handle){this.mode_=t.handle,this.opt_=t.option,this.constraint_=t.constraint;var r=this.getMap().getView().getRotation();this.coordinate_=n.get("handle")?n.getGeometry().getCoordinates():e.coordinate,this.pixel_=this.getMap().getCoordinateFromPixel(this.coordinate_),this.geoms_=[],this.rotatedGeoms_=[];for(var i,o=[1/0,1/0,-1/0,-1/0],s=[1/0,1/0,-1/0,-1/0],a=0;i=this.selection_.item(a);a++)if(this.geoms_.push(i.getGeometry().clone()),o=ZM(o,i.getGeometry().getExtent()),this.get("enableRotatedTransform")&&0!==r){var l=this.getGeometryRotateToZero_(i,!0);this.rotatedGeoms_.push(l),s=ZM(s,l.getExtent())}if(this.extent_=SK(o).getCoordinates()[0],this.get("enableRotatedTransform")&&0!==r&&(this.rotatedExtent_=SK(s).getCoordinates()[0]),"rotate"===this.mode_){this.center_=this.getCenter()||iO(o);var c=e.map.getTargetElement();dPe.setCursor(c,this.Cursors.rotate0),this.previousCursor_=c.style.cursor}else this.center_=iO(o);return this.angle_=Math.atan2(this.center_[1]-e.coordinate[1],this.center_[0]-e.coordinate[0]),this.dispatchEvent({type:this.mode_+"start",feature:this.selection_.item(0),features:this.selection_,pixel:e.pixel,coordinate:e.coordinate}),!0}if(this.get("selection")){if(n){this.addFn_(e)||this.selection_.clear();var u=this.selection_.getArray().indexOf(n);u<0?this.selection_.push(n):this.selection_.removeAt(u)}else this.selection_.clear();return this.ispt_=1===this.selection_.getLength()&&"Point"==this.selection_.item(0).getGeometry().getType(),this.iscircle_=1===this.selection_.getLength()&&"Circle"==this.selection_.item(0).getGeometry().getType(),this.drawSketch_(),this.watchFeatures_(),this.dispatchEvent({type:"select",feature:n,features:this.selection_,pixel:e.pixel,coordinate:e.coordinate}),!1}}}getCenter(){return this.get("center")}setCenter(e){return this.set("center",e)}handleDragEvent_(e){if(this._handleEvent(e,this.features_)){var t,n,r,i,o=this.getMap().getView().getRotation(),s=[this.coordinate_[0],this.coordinate_[1]],a=[e.coordinate[0],e.coordinate[1]];switch(this.isUpdating_=!0,this.mode_){case"rotate":var l=Math.atan2(this.center_[1]-a[1],this.center_[0]-a[0]);if(!this.ispt)for(t=0;r=this.selection_.item(t);t++)(i=this.geoms_[t].clone()).rotate(l-this.angle_,this.center_),"Circle"==i.getType()&&i.setCenterAndRadius(i.getCenter(),i.getRadius()),r.setGeometry(i);this.drawSketch_(!0),this.dispatchEvent({type:"rotating",feature:this.selection_.item(0),features:this.selection_,angle:l-this.angle_,pixel:e.pixel,coordinate:e.coordinate});break;case"translate":var c=a[0]-s[0],u=a[1]-s[1];for(t=0;r=this.selection_.item(t);t++)r.getGeometry().translate(c,u);this.handles_.forEach((function(e){e.getGeometry().translate(c,u)})),this.coordinate_=e.coordinate,this.dispatchEvent({type:"translating",feature:this.selection_.item(0),features:this.selection_,delta:[c,u],pixel:e.pixel,coordinate:e.coordinate});break;case"scale":var d=this.center_;if(this.get("modifyCenter")(e)){var h=this.extent_;this.get("enableRotatedTransform")&&0!==o&&(h=this.rotatedExtent_),d=h[(Number(this.opt_)+2)%4]}var p=1==this.geoms_.length&&this._isRectangle(this.geoms_[0]),f=this.constraint_,g=this.opt_,m=this.coordinate_,y=e.coordinate;if(this.get("enableRotatedTransform")&&0!==o){var v=new dK(this.coordinate_);v.rotate(-1*o,d),m=v.getCoordinates();var _=new dK(e.coordinate);_.rotate(-1*o,d),y=_.getCoordinates()}var b=(y[0]-d[0])/(m[0]-d[0]),x=(y[1]-d[1])/(m[1]-d[1]),S=[y[0]-m[0],y[1]-m[1]];if(this.get("enableRotatedTransform")&&0!==o){var w=new dK(d);w.rotate(-1*o,this.getMap().getView().getCenter()),d=w.getCoordinates()}for(this.get("noFlip")&&(b<0&&(b=-b),x<0&&(x=-x)),this.constraint_?"h"==this.constraint_?b=1:x=1:this.get("keepAspectRatio")(e)&&(b=x=Math.min(b,x)),t=0;r=this.selection_.item(t);t++)(i=0!==o&&this.get("enableRotatedTransform")?this.rotatedGeoms_[t].clone():this.geoms_[t].clone()).applyTransform(function(e,t,r){if(r<2)return t;if(p){var o=[[6],[0,8],[2],[4]],s=[e[0],e[1]],a=[e[2],e[3]],l=[e[4],e[5]],c=[e[6],e[7]],u=[e[8],e[9]];if(f){var h=g%2===0?this._countVector(s,a):this._countVector(c,s),m=this._projectVectorOnVector(S,h),v=[...o[g],...o[g+1<o.length?g+1:0]];for(n=0;n<e.length;n+=r)t[n]=v.includes(n)?e[n]+m[0]:e[n],t[n+1]=v.includes(n)?e[n+1]+m[1]:e[n+1]}else{var _,w;switch(g){case 0:S=this._countVector(c,y),_=this._projectVectorOnVector(S,this._countVector(l,c)),w=this._projectVectorOnVector(S,this._countVector(s,c)),[t[0],t[1]]=this._movePoint(s,_),[t[4],t[5]]=this._movePoint(l,w),[t[6],t[7]]=this._movePoint(c,S),[t[8],t[9]]=this._movePoint(u,_);break;case 1:S=this._countVector(s,y),_=this._projectVectorOnVector(S,this._countVector(c,s)),w=this._projectVectorOnVector(S,this._countVector(a,s)),[t[0],t[1]]=this._movePoint(s,S),[t[2],t[3]]=this._movePoint(a,_),[t[6],t[7]]=this._movePoint(c,w),[t[8],t[9]]=this._movePoint(u,S);break;case 2:S=this._countVector(a,y),_=this._projectVectorOnVector(S,this._countVector(s,a)),w=this._projectVectorOnVector(S,this._countVector(l,a)),[t[0],t[1]]=this._movePoint(s,w),[t[2],t[3]]=this._movePoint(a,S),[t[4],t[5]]=this._movePoint(l,_),[t[8],t[9]]=this._movePoint(u,w);break;case 3:S=this._countVector(l,y),_=this._projectVectorOnVector(S,this._countVector(a,l)),w=this._projectVectorOnVector(S,this._countVector(c,l)),[t[2],t[3]]=this._movePoint(a,w),[t[4],t[5]]=this._movePoint(l,S),[t[6],t[7]]=this._movePoint(c,_)}}}else for(n=0;n<e.length;n+=r)1!=b&&(t[n]=d[0]+(e[n]-d[0])*b),1!=x&&(t[n+1]=d[1]+(e[n+1]-d[1])*x);return"Circle"==i.getType()&&i.setCenterAndRadius(i.getCenter(),i.getRadius()),t}.bind(this)),this.get("enableRotatedTransform")&&0!==o&&i.rotate(o,this.getMap().getView().getCenter()),r.setGeometry(i);this.drawSketch_(),this.dispatchEvent({type:"scaling",feature:this.selection_.item(0),features:this.selection_,scale:[b,x],pixel:e.pixel,coordinate:e.coordinate})}this.isUpdating_=!1}}handleMoveEvent_(e){if(this._handleEvent(e,this.features_)&&!this.mode_){var t=this.getFeatureAtPixel_(e.pixel),n=e.map.getTargetElement();if(t.feature){var r=t.handle?this.Cursors[(t.handle||"default")+(t.constraint||"")+(t.option||"")]:this.Cursors.select;void 0===this.previousCursor_&&(this.previousCursor_=n.style.cursor),dPe.setCursor(n,r)}else void 0!==this.previousCursor_&&dPe.setCursor(n,this.previousCursor_),this.previousCursor_=void 0}}handleUpEvent_(e){if("rotate"===this.mode_){var t=e.map.getTargetElement();dPe.setCursor(t,this.Cursors.default),this.previousCursor_=void 0}return this.dispatchEvent({type:this.mode_+"end",feature:this.selection_.item(0),features:this.selection_,oldgeom:this.geoms_[0],oldgeoms:this.geoms_}),this.drawSketch_(),this.mode_=null,!1}setPointRadius(e){this._pointRadius="function"===typeof e?e:function(){return e}}getFeatures(){return this.selection_}_projectVectorOnVector(e,t){var n=(e[0]*t[0]+e[1]*t[1])/(t[0]*t[0]+t[1]*t[1]);return[t[0]*n,t[1]*n]}_countVector(e,t){return[t[0]-e[0],t[1]-e[1]]}_movePoint(e,t){return[e[0]+t[0],e[1]+t[1]]}};hPe.prototype.Cursors={default:"auto",select:"pointer",translate:"move",rotate:"move",rotate0:"move",scale:"nesw-resize",scale1:"nwse-resize",scale2:"nesw-resize",scale3:"nwse-resize",scalev:"ew-resize",scaleh1:"ns-resize",scalev2:"ew-resize",scaleh3:"ns-resize"};const pPe=hPe;let fPe=function(e){return e.IF_CTRL="if-ctrl",e.IF_SELECTED="if-selected",e}({}),gPe=function(e){return e.IF_SELECTED="if-selected",e.RECTANGLE="rectangle",e}({});const mPe=(e,t)=>{const{transformInteractionStyle:r}=e,i=(0,n.useContext)(V3);if(!i)return(0,Ae.jsx)(Ae.Fragment,{});const{map:o,areMapInteractionsReady:s}=i,a=(0,n.useMemo)((()=>{var t;return null!==(t=e.selectable)&&void 0!==t&&t}),[e.selectable]),l=(0,n.useMemo)((()=>{var t;return!a&&null!==(t=e.clickable)&&void 0!==t&&t}),[a,e.clickable]),c=(0,n.useMemo)((()=>a||l),[a,l]),u=(0,n.useMemo)((()=>{var t;return null!==(t=e.draggable)&&void 0!==t&&t}),[e.draggable]),d=(0,n.useMemo)((()=>{var t;return null!==(t=e.resizable)&&void 0!==t&&t}),[e.resizable]),h=(0,n.useMemo)((()=>{var t;return null!==(t=e.autoSelect)&&void 0!==t&&t}),[e.autoSelect]),p=(0,n.useMemo)((()=>{var t;return null===(t=e.selectedPolygonsIds)||void 0===t?void 0:t.filter((e=>e))}),[e.selectedPolygonsIds]),f=(0,n.useMemo)((()=>{var t;return null===(t=e.visible)||void 0===t||t}),[e.visible]),g=(0,n.useMemo)((()=>e.onHoverStyle),[e.onHoverStyle]),m=(0,n.useMemo)((()=>{var t;return null!==(t=e.zIndex)&&void 0!==t?t:2}),[e.zIndex]),y=(0,n.useMemo)((()=>{var t;return null!==(t=e.onPolygonSelected)&&void 0!==t?t:()=>null}),[e.onPolygonSelected]),v=(0,n.useMemo)((()=>{var t;return null!==(t=e.onPolygonUnselected)&&void 0!==t?t:()=>null}),[e.onPolygonUnselected]),_=(0,n.useMemo)((()=>{var t;return null!==(t=e.onPolygonTranslated)&&void 0!==t?t:()=>null}),[e.onPolygonTranslated]),b=(0,n.useMemo)((()=>{var t;return null!==(t=e.onPolygonChanged)&&void 0!==t?t:()=>null}),[e.onPolygonChanged]),x=(0,n.useMemo)((()=>{var t;return null!==(t=e.onPolygonResized)&&void 0!==t?t:()=>null}),[e.onPolygonResized]),S=(0,n.useMemo)((()=>{var t;return null!==(t=e.onPolygonHovered)&&void 0!==t?t:()=>null}),[e.onPolygonHovered]),w=(0,n.useMemo)((()=>{var t;return null!==(t=e.onTransformedPolygonSelected)&&void 0!==t?t:()=>null}),[e.onTransformedPolygonSelected]),E=(0,n.useMemo)((()=>{var t;return null!==(t=e.onPolygonClicked)&&void 0!==t?t:()=>null}),[e.onPolygonClicked]),P=(0,n.useMemo)((()=>{if(g)return new l$({stroke:new n$({color:g.stroke,width:g.size}),fill:new e$({color:g.fill})})}),[g]),C=(0,n.useRef)(new T1({source:new Y1,visible:!1})),[A,k]=(0,n.useState)([]),j=(0,n.useRef)(A),I=e=>{j.current=e,k(e)},G=(0,n.useMemo)((()=>e.polygons.filter((e=>e))),[e.polygons]);(0,n.useEffect)((()=>{const e=C.current;return o.addLayer(e),()=>{o.removeLayer(e)}}),[o]),(0,n.useEffect)((()=>{C.current.setZIndex(m)}),[m]),(0,n.useEffect)((()=>{C.current.setVisible(f)}),[f]);const T=(0,n.useCallback)((e=>N().includes(e)),[]),M=(0,n.useCallback)((t=>{var n,r;const i=j.current,s=e.multiSelect?[...i,t]:[t];I(s);const a=t.getGeometry();if(!a||!Y3(a))return;const l=(null!==(n=null===(r=a.getCoordinates())||void 0===r?void 0:r[0])&&void 0!==n?n:[]).map((e=>{const t=o.getPixelFromCoordinate(e);if(t)return{x:t[0],y:t[1]}})).filter((e=>e));y(t,s,l)}),[o,y,e.multiSelect]),O=(0,n.useCallback)((e=>{const t=[...j.current.filter((t=>t.getId()!==e.getId()))];I(t),v(e,t)}),[v]),R=(0,n.useCallback)((e=>{if(!e)return j.current.length>0&&v(null,[]),void I([]);T("".concat(e.getId()))?O(e):M(e)}),[T,v,M,O]);(0,n.useEffect)((()=>{if(!c)return;const e=e=>{const t=o.getFeaturesAtPixel(e.pixel,{layerFilter:e=>e===C.current}),n=G.map((e=>e.id)),r=t.find((e=>n.includes("".concat(null===e||void 0===e?void 0:e.getId()))));if(r&&(R(r),l)){var i,s;e.stopPropagation();const t=r.getGeometry();if(!Y3(t))return;const n=S3("".concat(r.getId()),t),a=(null!==(i=null===(s=t.getCoordinates())||void 0===s?void 0:s[0])&&void 0!==i?i:[]).flatMap((e=>{const t=o.getPixelFromCoordinate(e);return t?[{x:t[0],y:t[1]}]:[]}));E(n,a),O(r)}};return o.on("click",e),()=>{o.un("click",e)}}),[o,l,c,G,R,O,E]),(0,n.useEffect)((()=>{C.current.changed()}),[A]),(0,n.useEffect)((()=>{if(!s)return;if(!u)return;let e=null;if(u===fPe.IF_SELECTED){var t;const n=N();if(1!==n.length)return;const r=n[0],i=null===(t=C.current.getSource())||void 0===t?void 0:t.getFeatures().find((e=>e.getId()===r));if(!i)return;e=new K5({features:new QX([i])})}else{if(u!==fPe.IF_CTRL)return void console.error("Invalid draggable mode");o.getViewport().style.cursor="default",e=new K5({layers:[C.current],condition:e=>e.originalEvent.ctrlKey})}return e.on("translateend",(e=>{var t,n,r;_(e);const i=null===(t=e.features)||void 0===t||null===(n=t.getArray())||void 0===n||null===(r=n[0])||void 0===r?void 0:r.getGeometry();if(!i||!Y3(i))return;const o=S3("translated-polygon",i);b(o)})),o.addInteraction(e),()=>{e&&o.removeInteraction(e)}}),[o,s,b,_,u,A]);const D=(0,n.useCallback)((e=>{const t=e.getGeometry();if(!Y3(t))return;const n=S3("".concat(e.getId()),t);b(n)}),[b]);(0,n.useEffect)((()=>{var e,t;if(!s)return;if(d!==gPe.IF_SELECTED)return;a||console.log('[MapPolygonsDisplayer] You are using the resizable mode with "IF_SELECTED" but the "selectable" props is false');const n=N();if(1!==n.length)return;const r=n[0],i=(null!==(e=null===(t=C.current.getSource())||void 0===t?void 0:t.getFeatures())&&void 0!==e?e:[]).filter((e=>e.getId()===r)),l=new ePe({features:new QX(i)});return l.on("modifyend",(e=>{var t,n,r;x(e);const i=null===(t=e.features)||void 0===t||null===(n=t.getArray())||void 0===n||null===(r=n[0])||void 0===r?void 0:r.getGeometry();if(!i||!Y3(i))return;const o=S3("resized-polygon",i);b(o)})),o.addInteraction(l),()=>{l&&o.removeInteraction(l)}}),[o,s,b,x,a,d,A]),(0,n.useEffect)((()=>{if(!s)return;if(!e.snapPolygons)return;const t=f3(e.snapPolygons.polygons),n=new oPe({features:new QX(t)});return o.addInteraction(n),()=>{n&&o.removeInteraction(n)}}),[o,s,e.snapPolygons,d,A]),(0,n.useEffect)((()=>{var e,t;if(!p)return;(null!==(e=null===(t=C.current.getSource())||void 0===t?void 0:t.getFeatures())&&void 0!==e?e:[]).forEach((e=>{const t="".concat(e.getId());p.includes(t)&&!T(t)?M(e):!p.includes(t)&&T(t)&&O(e)}))}),[T,M,O,p]);const N=()=>j.current.map((e=>"".concat(e.getId()))),L=(0,n.useCallback)(((e,t)=>{const n=G.find((e=>{let{id:n}=e;return n===t.getId()})),r=T("".concat(t.getId()));if(n&&n.style){var i;const e=r&&null!==(i=n.style.selected)&&void 0!==i?i:{},t={...n.style,...e};return{stroke:{color:t.stroke,width:t.size,lineDash:t.lineDash},fill:{color:t.fill}}}const o=r?"selected":e?"default":"disabled";return{stroke:{color:Xp.POLYGONS.stroke[o],width:"selected"===o?4:1},fill:{color:Xp.POLYGONS.fill[o]}}}),[T,G]),V=(0,n.useCallback)((e=>{var t;const{stroke:n,fill:r}=L(c,e),i=e.get("zIndex"),o=new l$({zIndex:i,stroke:new n$({color:n.color,width:n.width,lineDash:n.lineDash}),fill:new e$({color:r.color})}),s=null===(t=G.find((t=>{let{id:n}=t;return n==="".concat(e.getId())})))||void 0===t?void 0:t.texts,a=e.getGeometry(),l=a.getCoordinates()[0][0],u=a.getCoordinates()[0][1],d=a.getCoordinates()[0][2],h=a.getCoordinates()[0][3];return[o,...(null!==s&&void 0!==s?s:[]).flatMap((e=>{var t,n,r,o,s,a;const c=e.text;if(!c)return[];const p=e.alwaysVisible,f=e.style,g=[l,u],m=[h,d],y=e.alongPolygon;let v,_="middle";return y&&(v=new xK(["top"===y.line?g:m]),y.polygonRelative&&("bottom"===y.line?_="inside"===y.polygonRelative?"bottom":"top":"top"===y.line&&(_="inside"===y.polygonRelative?"top":"bottom"))),[new l$({geometry:v,zIndex:i,text:new p$({font:"".concat(null!==(t=null===f||void 0===f?void 0:f.fontSize)&&void 0!==t?t:13,"px sans-serif"),fill:new e$({color:null!==(n=null===f||void 0===f?void 0:f.color)&&void 0!==n?n:"#000"}),stroke:new n$({color:null!==(r=null===f||void 0===f||null===(o=f.outline)||void 0===o?void 0:o.color)&&void 0!==r?r:"#fff",width:null!==(s=null===f||void 0===f||null===(a=f.outline)||void 0===a?void 0:a.width)&&void 0!==s?s:4}),text:c,overflow:null!==p&&void 0!==p&&p,placement:void 0!==y?"line":"point",textAlign:null===y||void 0===y?void 0:y.align,textBaseline:_})})]}))]}),[L,c,G]),F=(0,n.useCallback)(((e,t)=>{var n,r;const i=f3(t).map((e=>{var t;const n=null!==(t=e.get("zIndex"))&&void 0!==t?t:0;return e.set("zIndex",m+n),e}));null===(n=e.getSource())||void 0===n||n.clear(),null===(r=e.getSource())||void 0===r||r.addFeatures(i);const o=i.map((e=>e.getId())),s=[...j.current].filter((e=>o.includes(e.getId())));I(s),i.forEach((e=>{e.setStyle(V),(h||null!==p&&void 0!==p&&p.includes("".concat(e.getId())))&&M(e)}))}),[h,m,p,M,V]);(0,n.useEffect)((()=>{F(C.current,G)}),[G,F]),(0,n.useEffect)((()=>{let e=null,t=null;const n=()=>{var e;g&&(null===(e=C.current.getSource())||void 0===e||e.getFeatures().forEach((e=>{e.setStyle(V)})))},r=r=>{n();let i=!1;const s=r.pixel;o.forEachFeatureAtPixel(s,(t=>{var n,r;const o="".concat(t.getId()),s=null!==(n=null===(r=C.current.getSource())||void 0===r?void 0:r.getFeatureById(o))&&void 0!==n?n:null;if(s)return i=!0,e=s,g&&s.setStyle(P),!0}),{layerFilter:e=>e===C.current}),i||(e=null);const a=e?"".concat(e.getId()):null;if(t!==a){if(t=a,!e)return void S(null);const n=e.getGeometry();if(!Y3(n))return;const r=S3("".concat(e.getId()),n);S(r)}};return o.on("pointermove",r),o.getViewport().addEventListener("mouseleave",n),()=>{o.un("pointermove",r),o.getViewport().removeEventListener("mouseleave",n)}}),[o,g,P,V,S,a]);const{selectedFeature:z,unselectAll:B}=(e=>{const{active:t,layer:r,style:i,onTransform:o,onTransformEnd:s}=e,a=(0,n.useContext)(V3);if(!a)return{selectedFeature:void 0,unselectAll:()=>null};const{map:l,areMapInteractionsReady:c}=a,[u,d]=(0,n.useState)(),h=(0,n.useRef)(new pPe({layers:[r],hitTolerance:2,translateFeature:!1,translate:!1,scale:!0,stretch:!0,rotate:!0,keepRectangle:!0})),p=(0,n.useCallback)((e=>{var t,n,r,i;if(!("feature"in e)||!(e.feature instanceof P0))return;const o=null===(t=e.feature)||void 0===t?void 0:t.getGeometry();if(!Y3(o))return;const a=null!==(n=null===(r=o.getCoordinates())||void 0===r||null===(i=r[0])||void 0===i?void 0:i.map((e=>({x:e[0],y:e[1]}))))&&void 0!==n?n:[];null===s||void 0===s||s(e.feature,a)}),[s]),f=(0,n.useCallback)((e=>{var t,n,r,i;if(!("feature"in e)||!(e.feature instanceof P0))return;const s=null===(t=e.feature)||void 0===t?void 0:t.getGeometry();if(!Y3(s))return;const a=null!==(n=null===(r=s.getCoordinates())||void 0===r||null===(i=r[0])||void 0===i?void 0:i.map((e=>({x:e[0],y:e[1]}))))&&void 0!==n?n:[];null===o||void 0===o||o(e.feature,a)}),[o]),g=(0,n.useCallback)((()=>{h.current.setSelection([])}),[]);return(0,n.useEffect)((()=>{var e;const t=h.current;if(!c)return void l.removeInteraction(t);l.addInteraction(t),t.setDefaultStyle({stroke:new n$({color:"transparent",width:0}),fill:new e$({color:"transparent"})}),t.Cursors.rotate="pointer";const n=null!==(e=null===i||void 0===i?void 0:i.anchorColor)&&void 0!==e?e:"black",r=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:5;return new l$({image:new ZZ({fill:new e$({color:[255,255,255,.5]}),stroke:new n$({color:n}),radius:e,points:15})})};return t.setStyle("rotate",new l$({image:new ZZ({fill:new e$({color:[255,255,255,.5]}),stroke:new n$({color:n}),radius:6,points:15,displacement:[12,-12]})})),t.setStyle("rotate0",new l$({})),t.setStyle("scale",r()),t.setStyle("scale1",r()),t.setStyle("scale2",r()),t.setStyle("scale3",r()),t.setStyle("scalev",r(3)),t.setStyle("scaleh1",r(3)),t.setStyle("scalev2",r(3)),t.setStyle("scaleh3",r(3)),()=>{l.removeInteraction(t)}}),[l,i,c]),(0,n.useEffect)((()=>{h.current.setActive(t)}),[t]),(0,n.useEffect)((()=>{const e=h.current;return e.on(["rotateend","scaleend"],p),e.on(["scaling","rotating"],f),()=>{e.un(["rotateend","scaleend"],p),e.un(["scaling","rotating"],f)}}),[p,f]),(0,n.useEffect)((()=>{const e=e=>d(e.feature),t=h.current;return t.on(["select"],e),()=>{t.un(["select"],e)}}),[]),{selectedFeature:u,unselectAll:g}})({map:o,active:d===gPe.RECTANGLE,layer:C.current,style:r,onTransform:D,onTransformEnd:D});return(0,n.useEffect)((()=>{if(!z)return void w(null);const e=z.getGeometry();if(!Y3(e))return;const t=S3("".concat(z.getId()),e);w(t)}),[z,w]),(0,n.useImperativeHandle)(t,(()=>({unselectAll(){j.current.forEach((e=>O(e))),B()},refresh(){C.current.changed()}}))),(0,Ae.jsx)(Ae.Fragment,{})},yPe=(0,n.forwardRef)(mPe),vPe=(e,t)=>{const r=(0,n.useContext)(V3);if(!r)return(0,Ae.jsx)(Ae.Fragment,{});const{map:i,areMapInteractionsReady:o}=r,[s,a]=(0,n.useState)(),[l,c]=(0,n.useState)(),[u,d]=(0,n.useState)(!1),[h,p]=(0,n.useState)(!1),{shape:f,footprint:g,maxPoints:m,drawPointer:y="default",drawText:v,freehand:_=!1,cancelDrawWhenMouseOutside:b=!1,snapTolerance:x=12,onDrawStart:S,onDrawEnd:w,onFootprintDrawEnd:E,onMouseMove:P,onDrawAbort:C}=e,A=(0,n.useMemo)((()=>e.drawStyle),[JSON.stringify(e.drawStyle)]);_&&void 0!==m&&console.warn('[MapShapeDrawer] It is not recommended to have a "maxPoints" limit when using freehand');const k=(0,n.useMemo)((()=>!!e.drawEnabled&&(u||h&&!b)),[u,h,b,e.drawEnabled]),j=(0,n.useRef)(new l$({text:new p$({fill:new e$({color:"#000"}),stroke:new n$({color:"#fff",width:4}),textAlign:"center",textBaseline:"middle",offsetX:0,offsetY:0,font:"10px sans-serif",text:""})})),I=(0,n.useMemo)((()=>void 0!==v),[v]),{drawTextOffsetX:G,drawTextOffsetY:T}=(0,n.useMemo)((()=>{var e;let t=0,n=0;switch(null!==(e=null===v||void 0===v?void 0:v.position)&&void 0!==e?e:"top"){case"bottom":t=0,n=10;break;case"top":t=0,n=-10;break;case"left":t=-10,n=0;break;case"right":t=10,n=0}return{drawTextOffsetX:t,drawTextOffsetY:n}}),[v]),M=(0,n.useMemo)((()=>{if("default"===y)return;const e=m3(null!==A&&void 0!==A?A:{});var t;"mouse-crosshair"===y&&(null===(t=e.getImage())||void 0===t||t.setOpacity(0));return I?[e,j.current]:[e]}),[y,A,I]);(0,n.useEffect)((()=>{"mouse-crosshair"===y&&(i.getViewport().style.cursor=k?"crosshair":"")}),[y,k,i]),(0,n.useEffect)((()=>{var e;null===(e=j.current.getText())||void 0===e||e.setText(null===v||void 0===v?void 0:v.text)}),[v]),(0,n.useEffect)((()=>{var e,t;null===(e=j.current.getText())||void 0===e||e.setOffsetX(G),null===(t=j.current.getText())||void 0===t||t.setOffsetY(T)}),[G,T]),(0,n.useEffect)((()=>{if(!o)return;const e=(e=>{var t;return null!==(t=h3[e])&&void 0!==t?t:null})(f);if(!e)return;const t=new Y1({wrapX:!1}),n=new c3({source:t,features:new QX,type:e.type,geometryFunction:e.geometryFunction,maxPoints:e.maxPoints,style:M,condition:e=>uQ(e),freehandCondition:()=>!1,freehand:_,snapTolerance:x});return a(n),n.setActive(!1),i.addInteraction(n),()=>{i.removeInteraction(n),a(void 0)}}),[i,o,f,M,_,x]);const O=(0,n.useCallback)((e=>{var t,n;const r=null===(t=e.feature)||void 0===t?void 0:t.getGeometry();if(!r)return;let o=[],s=[];var a,c,u,d,h;if(Y3(r))o=null!==(a=null===(c=r.getCoordinates())||void 0===c||null===(u=c[0])||void 0===u?void 0:u.map(j3))&&void 0!==a?a:[],s=null===(d=r.getCoordinates())||void 0===d||null===(h=d[0])||void 0===h?void 0:h.map((e=>{const t=i.getPixelFromCoordinate(e);return j3(t)}));else if(K3(r)){const e=r.getCoordinates();o=[j3(e)];const t=i.getPixelFromCoordinate(e);s=[j3(t)]}if(p(!1),null===w||void 0===w||w(r,o,s),void 0===g||!l)return;const f=new xK([null!==(n=l.coords.map(A3))&&void 0!==n?n:[]]);null===E||void 0===E||E(f)}),[i,w,E,g,l]),R=(0,n.useCallback)((e=>{var t;const n=null===(t=e.feature)||void 0===t?void 0:t.getGeometry();n&&(p(!0),null===S||void 0===S||S(n),m&&n.on("change",(t=>{var n,r,i;const o=t.target,a=o.getType(),l=o.getCoordinates();let c=0;switch(a){case"LineString":c=(null!==(n=null===l||void 0===l?void 0:l.length)&&void 0!==n?n:1)-1;break;case"Polygon":c=(null!==(r=null===l||void 0===l||null===(i=l[0])||void 0===i?void 0:i.length)&&void 0!==r?r:0)-2;break;default:c=0}c>=m&&(null===s||void 0===s||s.abortDrawing(),O(e))})))}),[s,S,O,m]),D=(0,n.useCallback)((()=>{p(!1),null===C||void 0===C||C()}),[C]);(0,n.useEffect)((()=>{if(s)return s.on("drawstart",R),()=>{s.un("drawstart",R)}}),[s,R]),(0,n.useEffect)((()=>{if(s)return s.on("drawabort",D),()=>{s.un("drawabort",D)}}),[s,D]),(0,n.useEffect)((()=>{if(s)return s.on("drawend",O),()=>{s.un("drawend",O)}}),[s,O]),(0,n.useEffect)((()=>{if(!s)return;s.setActive(k);const e=e=>{s&&"Escape"===e.key&&s.abortDrawing()};return k?window.addEventListener("keydown",e):window.removeEventListener("keydown",e),()=>{window.removeEventListener("keydown",e)}}),[i,s,k]),(0,n.useEffect)((()=>{const e=()=>d(!0),t=()=>d(!1);return i.getViewport().addEventListener("mouseenter",e),i.getViewport().addEventListener("mouseleave",t),()=>{i.getViewport().removeEventListener("mouseenter",e),i.getViewport().removeEventListener("mouseleave",t)}}),[i]);const N=(0,n.useCallback)(((e,t)=>{const[n,r]=e.coordinate,i=t.map((e=>{let{x:t,y:i}=e;return[n+t,r+i]})),o={id:"footprint-polygon",coords:i.map(k3),style:{fill:"rgba(100,100,100,0.5)",size:2,stroke:"black",...null===g||void 0===g?void 0:g.style}};c(o)}),[g]);(0,n.useEffect)((()=>{if(!g)return c(void 0);const e=g.coords;if(e.every(F3))return console.warn("[MapShapeDrawer] LatLng footprint is not available yet"),c(void 0);let t;if(B3(e)){const n=k5(e),r=e.map((e=>{return t=n,{x:(r=e).x-t.x,y:r.y-t.y};var t,r}));t=e=>N(e,r),i.on("pointermove",t)}return()=>{c(void 0),t&&i.un("pointermove",t)}}),[i,g,N]),(0,n.useEffect)((()=>{if(!k)return;const e=e=>{const[t,n]=e.coordinate;return null===P||void 0===P?void 0:P({x:t,y:n})};return i.on("pointermove",e),()=>{i.un("pointermove",e)}}),[i,P,k]),(0,n.useImperativeHandle)(t,(()=>({removeLastDrawnedPoint(){s&&s.removeLastPoint()},abortDraw(){null===s||void 0===s||s.abortDrawing()}})));const L=(0,n.useMemo)((()=>k&&void 0!==g&&void 0!==l),[k,g,l]);return(0,Ae.jsx)(Ae.Fragment,{children:L&&(0,Ae.jsx)(yPe,{visible:L,polygons:[l],zIndex:3})})},_Pe=(0,n.forwardRef)(vPe);var bPe=__webpack_require__(44160),xPe=__webpack_require__(35696),SPe=__webpack_require__(79084),wPe=__webpack_require__(54732);const EPe=e=>{const{isIndividualOffset:t}=e,[r,i]=(0,n.useState)(.5),o=Number(r);return(0,Ae.jsxs)(ws,{container:!0,display:"flex",flexDirection:"column",width:"5rem",children:[Eo()&&(0,Ae.jsx)(ws,{container:!0,item:!0,marginY:"1rem",justifyContent:"center",children:(0,Ae.jsxs)(Ae.Fragment,{children:[(0,Ae.jsx)(vu,{sx:{whiteSpace:"nowrap",fontSize:12},children:"Offset step (m)"}),(0,Ae.jsx)(iE,{type:"number",size:"small",value:r,InputProps:{inputProps:{step:.1}},onChange:e=>i(e.target.value)})]})}),(0,Ae.jsxs)(ws,{item:!0,children:[(0,Ae.jsxs)(vu,{color:"secondary",sx:{whiteSpace:"nowrap",fontSize:12},children:[(0,Ae.jsx)("b",{children:"Offset X"}),": ",e.offset.x,"m"]}),(0,Ae.jsxs)(vu,{color:"secondary",sx:{whiteSpace:"nowrap",fontSize:12},children:[(0,Ae.jsx)("b",{children:"Offset Y"}),": ",e.offset.y,"m"]})]}),(0,Ae.jsxs)(ws,{item:!0,container:!0,direction:"column",alignItems:"center",wrap:"nowrap",children:[(0,Ae.jsx)(ws,{item:!0,marginBottom:"-1rem",children:(0,Ae.jsx)(Gu,{onClick:()=>{const n=t?o:e.offset.y+o;e.onChange("y",n)},children:(0,Ae.jsx)(bPe.c,{color:"secondary",fontSize:"small"})})}),(0,Ae.jsxs)(ws,{item:!0,container:!0,direction:"row",justifyContent:"space-evenly",wrap:"nowrap",children:[(0,Ae.jsx)(ws,{item:!0,children:(0,Ae.jsx)(Gu,{onClick:()=>{const n=t?-o:e.offset.x-o;e.onChange("x",n)},children:(0,Ae.jsx)(xPe.c,{color:"secondary",fontSize:"small"})})}),(0,Ae.jsx)(ws,{item:!0,children:(0,Ae.jsx)(Gu,{onClick:()=>{const n=t?o:e.offset.x+o;e.onChange("x",n)},children:(0,Ae.jsx)(SPe.c,{color:"secondary",fontSize:"small"})})})]}),(0,Ae.jsx)(ws,{item:!0,marginTop:"-1rem",children:(0,Ae.jsx)(Gu,{onClick:()=>{const n=t?-o:e.offset.y-o;e.onChange("y",n)},children:(0,Ae.jsx)(wPe.c,{color:"secondary",fontSize:"small"})})})]})]})},PPe=e=>{const{overlays:t}=e,[r,i]=(0,n.useState)([]);(0,n.useEffect)((()=>{const e=t.map((e=>{var t,n,r,i;return{...e,withVisibility:null===(t=e.withVisibility)||void 0===t||t,isVisible:null===(n=e.isVisible)||void 0===n||n,withOpacity:null===(r=e.withOpacity)||void 0===r||r,opacity:null!==(i=e.opacity)&&void 0!==i?i:100}}));i(e)}),[t]);const o=(0,n.useMemo)((()=>{const e=r.map((e=>({id:e.id,label:e.label,groupId:e.groupId,withVisibility:e.withVisibility,isVisible:e.isVisible,setVisible:t=>((e,t,n)=>{i((r=>r.map((r=>r.id===e&&r.groupId===t?{...r,isVisible:n}:r))))})(e.id,e.groupId,t),withOpacity:e.withOpacity,opacity:e.opacity,setOpacity:t=>((e,t,n)=>{i((r=>r.map((r=>r.id===e&&r.groupId===t?{...r,opacity:n}:r))))})(e.id,e.groupId,t)})));return e}),[r]),s=(e,t,n)=>e.find((e=>{let{id:r,groupId:i}=e;return r===t&&(!n||i===n)})),a=(0,n.useCallback)(((e,t)=>((e,t,n)=>{var r,i;return null!==(r=null===(i=s(e,t,n))||void 0===i?void 0:i.isVisible)&&void 0!==r&&r})(r,e,t)),[r]),l=(0,n.useCallback)(((e,t)=>((e,t,n)=>{var r,i;return null!==(r=null===(i=s(e,t,n))||void 0===i?void 0:i.opacity)&&void 0!==r?r:0})(r,e,t)),[r]);return{mapOverlaysItems:o,isVisibleFn:a,getOpacityFn:l}},CPe=e=>{var t;return{id:e.id,label:e.name,groupId:null!==(t=e.subAsset.id)&&void 0!==t?t:"",withVisibility:!0,isVisible:e.defaultVisible,withOpacity:!0,opacity:100}};const APe=class{constructor(){this.dataProjection=void 0,this.defaultFeatureProjection=void 0,this.featureClass=P0,this.supportedMediaTypes=null}getReadOptions(e,t){if(t){let n=t.dataProjection?xR(t.dataProjection):this.readProjection(e);t.extent&&n&&"tile-pixels"===n.getUnits()&&(n=xR(n),n.setWorldExtent(t.extent)),t={dataProjection:n,featureProjection:t.featureProjection}}return this.adaptOptions(t)}adaptOptions(e){return Object.assign({dataProjection:this.dataProjection,featureProjection:this.defaultFeatureProjection,featureClass:this.featureClass},e)}getType(){return _D()}readFeature(e,t){return _D()}readFeatures(e,t){return _D()}readGeometry(e,t){return _D()}readProjection(e){return _D()}writeFeature(e,t){return _D()}writeFeatures(e,t){return _D()}writeGeometry(e,t){return _D()}};function kPe(e,t,n){const r=n?xR(n.featureProjection):null,i=n?xR(n.dataProjection):null;let o=e;if(r&&i&&!jR(r,i)){t&&(o=e.clone());const n=t?r:i,s=t?i:r;"tile-pixels"===n.getUnits()?o.transform(n,s):o.applyTransform(GR(n,s))}if(t&&n&&void 0!==n.decimals){const t=Math.pow(10,n.decimals),r=function(e){for(let n=0,r=e.length;n<r;++n)e[n]=Math.round(e[n]*t)/t;return e};o===e&&(o=e.clone()),o.applyTransform(r)}return o}const jPe={Point:dK,LineString:I0,Polygon:xK,MultiPoint:V0,MultiLineString:N0,MultiPolygon:B0};function IPe(e,t){var n;const r=e.geometry;if(!r)return[];if(Array.isArray(r))return r.map((t=>IPe({...e,geometry:t}))).flat();const i="MultiPolygon"===r.type?"Polygon":r.type;if("GeometryCollection"===i||"Circle"===i)throw new Error("Unsupported geometry type: "+i);const o=r.layout.length;return kPe(new D1(i,"Polygon"===i?function(e,t,n){return Array.isArray(t[0])?(yK(e,0,t,n)||_K(e=e.slice(),0,t,n),e):(mK(e,0,t,n)||vK(e=e.slice(),0,t,n),e)}(r.flatCoordinates,r.ends,o):r.flatCoordinates,null===(n=r.ends)||void 0===n?void 0:n.flat(),o,e.properties||{},e.id).enableSimplifyTransformed(),!1,t)}function GPe(e,t){if(!e)return null;if(Array.isArray(e)){const n=e.map((e=>GPe(e,t)));return new R0(n)}return kPe(new(0,jPe[e.type])(e.flatCoordinates,e.layout,e.ends),!1,t)}function TPe(e){if("string"===typeof e){const t=JSON.parse(e);return t||null}return null!==e?e:null}const MPe=class extends APe{constructor(){super()}getType(){return"json"}readFeature(e,t){return this.readFeatureFromObject(TPe(e),this.getReadOptions(e,t))}readFeatures(e,t){return this.readFeaturesFromObject(TPe(e),this.getReadOptions(e,t))}readFeatureFromObject(e,t){return _D()}readFeaturesFromObject(e,t){return _D()}readGeometry(e,t){return this.readGeometryFromObject(TPe(e),this.getReadOptions(e,t))}readGeometryFromObject(e,t){return _D()}readProjection(e){return this.readProjectionFromObject(TPe(e))}readProjectionFromObject(e){return _D()}writeFeature(e,t){return JSON.stringify(this.writeFeatureObject(e,t))}writeFeatureObject(e,t){return _D()}writeFeatures(e,t){return JSON.stringify(this.writeFeaturesObject(e,t))}writeFeaturesObject(e,t){return _D()}writeGeometry(e,t){return JSON.stringify(this.writeGeometryObject(e,t))}writeGeometryObject(e,t){return _D()}};function OPe(e,t){if(!e)return null;let n;switch(e.type){case"Point":n=function(e){const t=e.coordinates;return{type:"Point",flatCoordinates:t,layout:FY(t.length)}}(e);break;case"LineString":n=function(e){var t;const n=e.coordinates,r=n.flat();return{type:"LineString",flatCoordinates:r,ends:[r.length],layout:FY((null===(t=n[0])||void 0===t?void 0:t.length)||2)}}(e);break;case"Polygon":n=function(e){var t;const n=e.coordinates,r=[],i=null===(t=n[0])||void 0===t||null===(t=t[0])||void 0===t?void 0:t.length,o=ZY(r,0,n,i);return{type:"Polygon",flatCoordinates:r,ends:o,layout:FY(i)}}(e);break;case"MultiPoint":n=function(e){var t;const n=e.coordinates;return{type:"MultiPoint",flatCoordinates:n.flat(),layout:FY((null===(t=n[0])||void 0===t?void 0:t.length)||2)}}(e);break;case"MultiLineString":n=function(e){var t;const n=e.coordinates,r=(null===(t=n[0])||void 0===t||null===(t=t[0])||void 0===t?void 0:t.length)||2,i=[],o=ZY(i,0,n,r);return{type:"MultiLineString",flatCoordinates:i,ends:o,layout:FY(r)}}(e);break;case"MultiPolygon":n=function(e){var t;const n=e.coordinates,r=[],i=(null===(t=n[0])||void 0===t||null===(t=t[0])||void 0===t?void 0:t[0].length)||2,o=$Y(r,0,n,i);return{type:"MultiPolygon",flatCoordinates:r,ends:o,layout:FY(i)}}(e);break;case"GeometryCollection":n=function(e,t){const n=e.geometries.map((function(e){return OPe(e,t)}));return n}(e);break;default:throw new Error("Unsupported GeoJSON type: "+e.type)}return n}function RPe(e,t){const n=(e=kPe(e,!0,t)).getType();let r;switch(n){case"Point":r=function(e,t){return{type:"Point",coordinates:e.getCoordinates()}}(e);break;case"LineString":r=function(e,t){return{type:"LineString",coordinates:e.getCoordinates()}}(e);break;case"Polygon":r=function(e,t){let n;t&&(n=t.rightHanded);return{type:"Polygon",coordinates:e.getCoordinates(n)}}(e,t);break;case"MultiPoint":r=function(e,t){return{type:"MultiPoint",coordinates:e.getCoordinates()}}(e);break;case"MultiLineString":r=function(e,t){return{type:"MultiLineString",coordinates:e.getCoordinates()}}(e);break;case"MultiPolygon":r=function(e,t){let n;t&&(n=t.rightHanded);return{type:"MultiPolygon",coordinates:e.getCoordinates(n)}}(e,t);break;case"GeometryCollection":r=function(e,t){t=Object.assign({},t),delete t.featureProjection;const n=e.getGeometriesArray().map((function(e){return RPe(e,t)}));return{type:"GeometryCollection",geometries:n}}(e,t);break;case"Circle":r={type:"GeometryCollection",geometries:[]};break;default:throw new Error("Unsupported geometry type: "+n)}return r}const DPe=class extends MPe{constructor(e){e=e||{},super(),this.dataProjection=xR(e.dataProjection?e.dataProjection:"EPSG:4326"),e.featureProjection&&(this.defaultFeatureProjection=xR(e.featureProjection)),e.featureClass&&(this.featureClass=e.featureClass),this.geometryName_=e.geometryName,this.extractGeometryName_=e.extractGeometryName,this.supportedMediaTypes=["application/geo+json","application/vnd.geo+json"]}readFeatureFromObject(e,t){let n=null;n="Feature"===e.type?e:{type:"Feature",geometry:e,properties:null};const r=OPe(n.geometry,t);if(this.featureClass===D1)return IPe({geometry:r,id:n.id,properties:n.properties},t);const i=new P0;return this.geometryName_?i.setGeometryName(this.geometryName_):this.extractGeometryName_&&n.geometry_name&&i.setGeometryName(n.geometry_name),i.setGeometry(GPe(r,t)),"id"in n&&i.setId(n.id),n.properties&&i.setProperties(n.properties,!0),i}readFeaturesFromObject(e,t){let n=null;if("FeatureCollection"===e.type){n=[];const r=e.features;for(let e=0,i=r.length;e<i;++e){const i=this.readFeatureFromObject(r[e],t);i&&n.push(i)}}else n=[this.readFeatureFromObject(e,t)];return n.flat()}readGeometryFromObject(e,t){return function(e,t){const n=OPe(e,t);return GPe(n,t)}(e,t)}readProjectionFromObject(e){const t=e.crs;let n;if(t)if("name"==t.type)n=xR(t.properties.name);else{if("EPSG"!==t.type)throw new Error("Unknown SRS type");n=xR("EPSG:"+t.properties.code)}else n=this.dataProjection;return n}writeFeatureObject(e,t){t=this.adaptOptions(t);const n={type:"Feature",geometry:null,properties:null},r=e.getId();if(void 0!==r&&(n.id=r),!e.hasProperties())return n;const i=e.getProperties(),o=e.getGeometry();return o&&(n.geometry=RPe(o,t),delete i[e.getGeometryName()]),hD(i)||(n.properties=i),n}writeFeaturesObject(e,t){t=this.adaptOptions(t);const n=[];for(let r=0,i=e.length;r<i;++r)n.push(this.writeFeatureObject(e[r],t));return{type:"FeatureCollection",features:n}}writeGeometryObject(e,t){return RPe(e,this.adaptOptions(t))}};const NPe=class extends t0{constructor(e){super(e),this.image=null}getImage(){return this.image?this.image.getImage():null}prepareFrame(e){const t=e.layerStatesArray[e.layerIndex],n=e.pixelRatio,r=e.viewState,i=r.resolution,o=this.getLayer().getSource(),s=e.viewHints;let a=e.extent;if(void 0!==t.extent&&(a=lO(a,VR(t.extent,r.projection))),!s[mY]&&!s[yY]&&!pO(a))if(o){const e=r.projection,t=o.getImage(a,i,n,e);t&&(this.loadImage(t)?this.image=t:t.getState()===HD.EMPTY&&(this.image=null))}else this.image=null;return!!this.image}getData(e){const t=this.frameState;if(!t)return null;const n=this.getLayer(),r=jY(t.pixelToCoordinateTransform,e.slice()),i=n.getExtent();if(i&&!FM(i,r))return null;const o=this.image.getExtent(),s=this.image.getImage(),a=dO(o),l=Math.floor(s.width*((r[0]-o[0])/a));if(l<0||l>=s.width)return null;const c=aO(o),u=Math.floor(s.height*((o[3]-r[1])/c));return u<0||u>=s.height?null:this.getImageData(s,l,u)}renderFrame(e,t){const n=this.image,r=n.getExtent(),i=n.getResolution(),[o,s]=Array.isArray(i)?i:[i,i],a=n.getPixelRatio(),l=e.layerStatesArray[e.layerIndex],c=e.pixelRatio,u=e.viewState,d=u.center,h=u.resolution,p=c*o/(h*a),f=c*s/(h*a);this.prepareContainer(e,t);const g=this.context.canvas.width,m=this.context.canvas.height,y=this.getRenderContext(e);let v=!1,_=!0;if(l.extent){const t=VR(l.extent,u.projection);_=hO(t,e.extent),v=_&&!zM(t,e.extent),v&&this.clipUnrotated(y,e,t)}const b=n.getImage(),x=TY(this.tempTransform,g/2,m/2,p,f,0,a*(r[0]-d[0])/o,a*(d[1]-r[3])/s);this.renderedResolution=s*c/a;const S=b.width*x[0],w=b.height*x[3];if(this.getLayer().getSource().getInterpolate()||(y.imageSmoothingEnabled=!1),this.preRender(y,e),_&&S>=.5&&w>=.5){const e=x[4],t=x[5],n=l.opacity;1!==n&&(y.save(),y.globalAlpha=n),y.drawImage(b,0,0,+b.width,+b.height,e,t,S,w),1!==n&&y.restore()}return this.postRender(this.context,e),v&&y.restore(),y.imageSmoothingEnabled=!0,this.container}};const LPe=class extends $D{constructor(e,t,n,r,i){super(e,t,n,void 0!==i?HD.IDLE:HD.LOADED),this.loader_=void 0!==i?i:null,this.canvas_=r,this.error_=null}getError(){return this.error_}handleLoad_(e){e?(this.error_=e,this.state=HD.ERROR):this.state=HD.LOADED,this.changed()}load(){this.state==HD.IDLE&&(this.state=HD.LOADING,this.changed(),this.loader_(this.handleLoad_.bind(this)))}getImage(){return this.canvas_}};function VPe(e){return Array.isArray(e)?Math.min(...e):e}const FPe=class extends NPe{constructor(e){super(e),this.vectorRenderer_=new G1(e),this.layerImageRatio_=e.getImageRatio(),this.coordinateToVectorPixelTransform_=[1,0,0,1,0,0],this.renderedPixelToCoordinateTransform_=null}disposeInternal(){this.vectorRenderer_.dispose(),super.disposeInternal()}getFeatures(e){if(!this.vectorRenderer_)return Promise.resolve([]);const t=jY(this.coordinateToVectorPixelTransform_,jY(this.renderedPixelToCoordinateTransform_,e.slice()));return this.vectorRenderer_.getFeatures(t)}handleFontsChanged(){this.vectorRenderer_.handleFontsChanged()}prepareFrame(e){const t=e.pixelRatio,n=e.viewState,r=n.resolution,i=e.viewHints,o=this.vectorRenderer_;let s=e.extent;1!==this.layerImageRatio_&&(s=s.slice(0),fO(s,this.layerImageRatio_));const a=dO(s)/r,l=aO(s)/r;if(!i[mY]&&!i[yY]&&!pO(s)){o.useContainer(null,null);const i=o.context,c=e.layerStatesArray[e.layerIndex],u=Object.assign({},c,{opacity:1}),d=Object.assign({},e,{extent:s,size:[a,l],viewState:Object.assign({},e.viewState,{rotation:0}),layerStatesArray:[u],layerIndex:0,declutter:null}),h=this.getLayer().getDeclutter();h&&(d.declutter={[h]:new MK(9)});let p=!0;const f=new LPe(s,r,t,i.canvas,(function(e){o.prepareFrame(d)&&o.replayGroupChanged&&(o.clipping=!1,o.renderFrame(d,null)&&(o.renderDeclutter(d),o.renderDeferred(d),p=!1),e())}));f.addEventListener(BR,(()=>{if(f.getState()!==HD.LOADED)return;this.image=p?null:f;const e=f.getPixelRatio(),r=VPe(f.getResolution())*t/e;this.renderedResolution=r,this.coordinateToVectorPixelTransform_=TY(this.coordinateToVectorPixelTransform_,a/2,l/2,1/r,-1/r,0,-n.center[0],-n.center[1])})),f.load()}return this.image&&(this.renderedPixelToCoordinateTransform_=e.pixelToCoordinateTransform.slice()),!!this.image}preRender(){}postRender(){}renderDeclutter(){}forEachFeatureAtCoordinate(e,t,n,r,i){return this.vectorRenderer_?this.vectorRenderer_.forEachFeatureAtCoordinate(e,t,n,r,i):super.forEachFeatureAtCoordinate(e,t,n,r,i)}};const zPe=class extends gJ{constructor(e){e=e||{};const t=Object.assign({},e);delete t.imageRatio,super(t),this.imageRatio_=void 0!==e.imageRatio?e.imageRatio:1}getImageRatio(){return this.imageRatio_}createRenderer(){return new FPe(this)}},BPe=(e,t,n,r,i)=>[(e-n)*Math.cos(i)-(t-r)*Math.sin(i)+n,(e-n)*Math.sin(i)+(t-r)*Math.cos(i)+r],UPe=e=>e*Math.PI/180,WPe=e=>180*e/Math.PI,HPe=(e,t)=>e.map((e=>{const n=A3(e),r=[n[0]+t.x,n[1]+t.y];return k3(r)})),qPe="Text",XPe=e=>{const t=(0,n.useContext)(V3);if(!t)return(0,Ae.jsx)(Ae.Fragment,{});const{map:r}=t,{url:i,visible:o=!0,opacityPercent:s=100,zIndex:a=2,featureSpecificStyle:l,withVectorLayer:c=!1,groupPointsInMultiPoint:u=!0,showPointsAtZoomLevel:d=18,onGeoJSONReady:h,featureTransformerFunction:p}=e,[f,g]=(0,n.useState)([]),m=(0,n.useRef)(c?new T1({}):new zPe({}));(0,n.useEffect)((()=>{const e=m.current;return r.addLayer(e),()=>{r&&r.removeLayer(e)}}),[r]),(0,n.useEffect)((()=>{const e=m.current;return e.setStyle((e=>{var t,n,i,o,s;if(void 0!=d){var a;const t=null!==(a=r.getView().getZoom())&&void 0!==a?a:0;if(void 0==e.get(qPe)&&(e.getGeometry()instanceof dK||e.getGeometry()instanceof V0)&&t<d)return[]}const c={size:1,stroke:jp,fill:nU(jp,.8),...null===l||void 0===l?void 0:l.get("".concat(e.getId()))},u=new l$({stroke:new n$({color:c.stroke,width:c.size})}),h=[u],p=[u,new l$({image:null!==(t=c.image)&&void 0!==t?t:new JZ({radius:2,fill:new e$({color:c.fill}),stroke:new n$({color:c.stroke,width:c.size})})})],f=e.get(qPe);if(!f)return p;const g=-UPe(null!==(n=e.get("rotation"))&&void 0!==n?n:0),m=null!==(i=e.get("textHeight"))&&void 0!==i?i:1,y=A5(f);if(""===y[0])return p;const v=null!==(o=null===r||void 0===r||null===(s=r.getView())||void 0===s?void 0:s.getResolution())&&void 0!==o?o:1,_=new l$({text:new p$({placement:"point",fill:new e$({color:"white"}),stroke:new n$({color:"black",width:4}),scale:1/(20*v),textAlign:"left",textBaseline:"top",text:y[0].toUpperCase(),font:"".concat(20*m,"px sans-serif"),rotation:g})});return h.push(_),h})),()=>{e.setStyle(void 0)}}),[r,l,d]),(0,n.useEffect)((()=>{fetch(i).then((e=>e.json())).then((e=>{const t=e;if(u){const n={type:"Feature",geometry:{type:"MultiPoint",coordinates:[]}},r=[];e.features.forEach((e=>{"Point"!==e.geometry.type||qPe in e.properties?r.push(e):n.geometry.coordinates.push(e.geometry.coordinates)})),r.push(n),t.features=r}const n=new DPe({featureProjection:"EPSG:3857"}).readFeatures(t);g(n)})).catch((()=>{g([])}))}),[i,u]);const y=(0,n.useMemo)((()=>p?f.map((e=>p(e))).filter((e=>null!=e)):f),[f,p]);return(0,n.useEffect)((()=>{const e=m.current,t=new Y1({format:new DPe({featureProjection:"EPSG:3857"})});e.setSource(t);const n=()=>{if("ready"===t.getState()){const e=t.getExtent();if(e.some((e=>e===1/0||e===-1/0)))return;const n=iO(e);null===h||void 0===h||h(k3(n),e,t.getFeatures())}};return t.on("change",n),t.addFeatures(y),()=>{t.un("change",n)}}),[y,h]),(0,n.useEffect)((()=>{m.current.setVisible(o)}),[o]),(0,n.useEffect)((()=>{m.current.setZIndex(a)}),[a]),(0,n.useEffect)((()=>{const e=Math.max(0,Math.min(1,s/100));m.current.setOpacity(e)}),[s]),(0,Ae.jsx)(Ae.Fragment,{})};const YPe=class extends jK{constructor(e){super(e=e||{})}};const KPe=class extends YPe{constructor(e){super(e)}createRenderer(){return new NPe(this)}getData(e){return super.getData(e)}};const ZPe=class extends $D{constructor(e,t,n,r,i,o,s){let a=e.getExtent();a&&e.canWrapX()&&(a=a.slice(),a[0]=-1/0,a[2]=1/0);let l=t.getExtent();l&&t.canWrapX()&&(l=l.slice(),l[0]=-1/0,l[2]=1/0);const c=l?lO(n,l):n,u=iN(e,t,iO(c),r),d=new QD(e,t,c,a,.5*u,r),h=d.calculateSourceExtent(),p=pO(h)?null:o(h,u,i),f=p?HD.IDLE:HD.EMPTY,g=p?p.getPixelRatio():1;super(n,r,g,f),this.targetProj_=t,this.maxSourceExtent_=a,this.triangulation_=d,this.targetResolution_=r,this.targetExtent_=n,this.sourceImage_=p,this.sourcePixelRatio_=g,this.interpolate_=s,this.canvas_=null,this.sourceListenerKey_=null}disposeInternal(){this.state==HD.LOADING&&this.unlistenSource_(),super.disposeInternal()}getImage(){return this.canvas_}getProjection(){return this.targetProj_}reproject_(){const e=this.sourceImage_.getState();if(e==HD.LOADED){const e=dO(this.targetExtent_)/this.targetResolution_,t=aO(this.targetExtent_)/this.targetResolution_;this.canvas_=sN(e,t,this.sourcePixelRatio_,VPe(this.sourceImage_.getResolution()),this.maxSourceExtent_,this.targetResolution_,this.targetExtent_,this.triangulation_,[{extent:this.sourceImage_.getExtent(),image:this.sourceImage_.getImage()}],0,void 0,this.interpolate_,!0)}this.state=e,this.changed()}load(){if(this.state==HD.IDLE){this.state=HD.LOADING,this.changed();const e=this.sourceImage_.getState();e==HD.LOADED||e==HD.ERROR?this.reproject_():(this.sourceListenerKey_=qD(this.sourceImage_,BR,(e=>{const t=this.sourceImage_.getState();t!=HD.LOADED&&t!=HD.ERROR||(this.unlistenSource_(),this.reproject_())})),this.sourceImage_.load())}}unlistenSource_(){YD(this.sourceListenerKey_),this.sourceListenerKey_=null}},$Pe="imageloadstart",JPe="imageloadend",QPe="imageloaderror";class eCe extends QR{constructor(e,t){super(e),this.image=t}}function tCe(e,t){e.getImage().src=t}const nCe=class extends EN{constructor(e){super({attributions:e.attributions,projection:e.projection,state:e.state,interpolate:void 0===e.interpolate||e.interpolate}),this.on,this.once,this.un,this.loader=e.loader||null,this.resolutions_=void 0!==e.resolutions?e.resolutions:null,this.reprojectedImage_=null,this.reprojectedRevision_=0,this.image=null,this.wantedExtent_,this.wantedResolution_,this.static_=!!e.loader&&0===e.loader.length,this.wantedProjection_=null}getResolutions(){return this.resolutions_}setResolutions(e){this.resolutions_=e}findNearestResolution(e){const t=this.getResolutions();if(t){e=t[nD(t,e,0)]}return e}getImage(e,t,n,r){const i=this.getProjection();if(!i||!r||jR(i,r))return i&&(r=i),this.getImageInternal(e,t,n,r);if(this.reprojectedImage_){if(this.reprojectedRevision_==this.getRevision()&&jR(this.reprojectedImage_.getProjection(),r)&&this.reprojectedImage_.getResolution()==t&&KM(this.reprojectedImage_.getExtent(),e))return this.reprojectedImage_;this.reprojectedImage_.dispose(),this.reprojectedImage_=null}return this.reprojectedImage_=new ZPe(i,r,e,t,n,((e,t,n)=>this.getImageInternal(e,t,n,i)),this.getInterpolate()),this.reprojectedRevision_=this.getRevision(),this.reprojectedImage_}getImageInternal(e,t,n,r){if(this.loader){const i=function(e,t,n,r){const i=t/n,o=iO(e),s=YO(dO(e)/i,4),a=YO(aO(e)/i,4),l=YO((r-1)*s/2,4),c=s+2*l,u=YO((r-1)*a/2,4);return sO(o,i,0,[c,a+2*u])}(e,t,n,1),o=this.findNearestResolution(t);if(this.image&&(this.static_||this.wantedProjection_===r&&(this.wantedExtent_&&zM(this.wantedExtent_,i)||zM(this.image.getExtent(),i))&&(this.wantedResolution_&&VPe(this.wantedResolution_)===o||VPe(this.image.getResolution())===o)))return this.image;this.wantedProjection_=r,this.wantedExtent_=i,this.wantedResolution_=o,this.image=new $D(i,o,n,this.loader),this.image.addEventListener(BR,this.handleImageChange.bind(this))}return this.image}handleImageChange(e){const t=e.target;let n;switch(t.getState()){case HD.LOADING:this.loading=!0,n=$Pe;break;case HD.LOADED:this.loading=!1,n=JPe;break;case HD.ERROR:this.loading=!1,n=QPe;break;default:return}this.hasListener(n)&&this.dispatchEvent(new eCe(n,t))}};const rCe=class extends nCe{constructor(e){const t=void 0!==e.crossOrigin?e.crossOrigin:null,n=void 0!==e.imageLoadFunction?e.imageLoadFunction:tCe;super({attributions:e.attributions,interpolate:e.interpolate,projection:xR(e.projection)}),this.url_=e.url,this.imageExtent_=e.imageExtent,this.image=null,this.image=new $D(this.imageExtent_,void 0,1,function(e){var t;const n=e.load||ZD,r=e.imageExtent,i=null!==(t=e.crossOrigin)&&void 0!==t?t:null;return()=>{const t=new Image;return t.crossOrigin=i,n(t,e.url).then((e=>{const t=dO(r)/e.width,n=aO(r)/e.height;return{image:e,extent:r,resolution:t!==n?[t,n]:n,pixelRatio:1}}))}}({url:e.url,imageExtent:e.imageExtent,crossOrigin:t,load:(e,t)=>(this.image.setImage(e),n(this.image,t),ZD(e))})),this.image.addEventListener(BR,this.handleImageChange.bind(this))}getImageExtent(){return this.imageExtent_}getImageInternal(e,t,n,r){return hO(e,this.image.getExtent())?this.image:null}getUrl(){return this.url_}},iCe=async(e,t)=>{const n=new Image,r=await xhe(e),i=She(t);if(!e||!r||Number.isNaN(r))return Promise.reject("Err no image url or size");if(n.crossOrigin="anonymous",n.src=e,await new Promise(((e,t)=>{n.onload=()=>{e(!0)},n.onerror=()=>{t()}})),r<=0)return Promise.reject("Err image size should be greater than 0");const o=Math.min(1,Math.max(.001,i/r)),s=document.createElement("canvas"),a=s.getContext("2d");if(!a)return Promise.reject("Err context not found");const l=n.width,c=n.height;s.width=l*o,s.height=c*o,a.drawImage(n,0,0,l*o,c*o);return new Promise(((e,t)=>{s.toBlob((n=>{n?e(URL.createObjectURL(n)):t("Err no blob")}),"image/png",1)}))},oCe=async(e,t)=>{const n=e=>(t,n)=>({min:n[e]<t.min?n[e]:t.min,max:n[e]>t.max?n[e]:t.max}),r={min:1/0,max:-1/0},{min:i,max:o}=t.reduce(n(0),r),s=o-i,{min:a,max:l}=t.reduce(n(1),r),c=l-a;if(!t.every((e=>2===e.length)))throw new Error("all points should have 2 coordinates");const u=t.map((e=>[e[0]-i,e[1]-a])),d=u.shift();if(!d)throw new Error("cropPath should not be empty");try{const t=new Image;t.crossOrigin="anonymous",t.src=e;const n=await new Promise(((e,n)=>{t.onload=()=>{const r=document.createElement("canvas");r.width=s,r.height=c;const o=r.getContext("2d");o?(o.save(),o.beginPath(),o.lineWidth=1,o.moveTo(d[0],d[1]),u.forEach((e=>{o.lineTo(e[0],e[1])})),o.closePath(),o.clip(),o.drawImage(t,-i,-a),o.restore(),e(r)):n()}}));return await new Promise(((e,t)=>{n.toBlob((n=>{n?e(URL.createObjectURL(n)):t()}),"image/png")}))}catch(h){return null}},sCe=Zo()((()=>({loaderContainer:{position:"absolute",top:"0",left:"0",width:"100%",height:"100%",display:"flex",alignItems:"center"}}))),aCe=e=>{var t,r,i,o;const{classes:s}=sCe(),a=(0,n.useContext)(V3);if(!a)return(0,Ae.jsx)(Ae.Fragment,{});const{map:l}=a,c=(0,n.useRef)(new KPe({})),[u,d]=(0,n.useState)(null),[h,p]=(0,n.useState)(!1),{visible:f=!0,zIndex:g=2,maxFileSizeMBCompression:m}=e,y=(0,n.useMemo)((()=>{var t,n;return null!==(t=null===(n=e.image)||void 0===n?void 0:n.rotation)&&void 0!==t?t:{angleRadians:0}}),[null===(t=e.image)||void 0===t?void 0:t.rotation]),v=(0,n.useMemo)((()=>{var t;return null===(t=e.image)||void 0===t?void 0:t.url}),[null===(r=e.image)||void 0===r?void 0:r.url]),_=(0,n.useMemo)((()=>{var t;return null===(t=e.image)||void 0===t?void 0:t.firstCorner}),[null===(i=e.image)||void 0===i?void 0:i.firstCorner]),b=(0,n.useMemo)((()=>{var t;return null===(t=e.image)||void 0===t?void 0:t.secondCorner}),[null===(o=e.image)||void 0===o?void 0:o.secondCorner]),x=(0,n.useMemo)((()=>{if(!_||!b)return null;const e=_,t=b,[n,r]=A3(e),[i,o]=A3(t);return[Math.min(n,i),Math.min(r,o),Math.max(n,i),Math.max(r,o)]}),[_,b]),S=(0,n.useMemo)((()=>{if(!u||!x)return null;const e=l.getView().getProjection();return new rCe({projection:QSe(e,y.angleRadians,x,y.around?A3(y.around):void 0),url:u,crossOrigin:"anonymous",imageExtent:x})}),[l,u,y,x]),w=(0,n.useCallback)((async e=>{if(m){p(!0);try{const t=await iCe(e,m);d(t)}catch(t){d(null),console.error("Image not found: ".concat(e))}finally{p(!1)}}else d(e)}),[m]);return(0,n.useEffect)((()=>{if(!v)return d(null),void p(!1);w(v)}),[w,v]),(0,n.useEffect)((()=>{c.current.setVisible(f)}),[f]),(0,n.useEffect)((()=>{const e=c.current;return l.addLayer(e),()=>{l&&l.removeLayer(e)}}),[l]),(0,n.useEffect)((()=>{S?c.current.setSource(S):c.current.setSource(null)}),[S]),(0,n.useEffect)((()=>{var t;const n=null!==(t=e.opacityPercent)&&void 0!==t?t:100,r=Math.max(0,Math.min(1,n/100));c.current.setOpacity(r)}),[e.opacityPercent]),(0,n.useEffect)((()=>{c.current.setZIndex(g)}),[g]),h&&f&&!e.hideLoader?(0,Ae.jsxs)("div",{className:s.loaderContainer,children:[(0,Ae.jsx)($y,{}),";"]}):(0,Ae.jsx)(Ae.Fragment,{})},lCe=async(e,t,n,r)=>{const i=await Ey("/assets/".concat(e,"/").concat(t,"/overlay/").concat(n),{method:"PATCH",body:JSON.stringify(r)});if(!i.ok){var o;const e=await i.text();throw new Error(null!==(o=null!==e&&void 0!==e?e:i.statusText)&&void 0!==o?o:"[updateSolarSubAssetOverlay] An error occured")}const s=await i.json();if(!s.filePath)throw new Error("[updateSolarSubAssetOverlay] No filePath in response");return s},cCe=e=>{const{overlay:t,zIndex:n,visible:r,opacityPercent:i,geoJSONOverlayProps:o}=e;if(t.type===xV.IMAGE){const e=(e=>({url:e.signedUrl,firstCorner:e.topRight,secondCorner:e.bottomLeft,rotation:e.rotation}))(t);return(0,Ae.jsx)(aCe,{hideLoader:!0,maxFileSizeMBCompression:Wy()?2:8,image:e,zIndex:n,visible:r,opacityPercent:i})}return t.type===xV.GEOTIFF?(0,Ae.jsx)(twe,{url:t.signedUrl,visible:r,zIndex:n,opacityPercent:i}):t.type===xV.GEOJSON?(0,Ae.jsx)(XPe,{url:t.signedUrl,visible:r,zIndex:n,opacityPercent:i,...o}):(0,Ae.jsx)(Ae.Fragment,{})},uCe=e=>{const{assetId:t,externalUserCode:r,active:i=!0}=e,[o,s]=(0,n.useState)(!1),[a,l]=(0,n.useState)(null),[c,u]=(0,n.useState)(null),d=(0,n.useCallback)((async e=>{const[t,n]=await Promise.all([TT(e,r),MT(e,r)]);return{assetInfos:{...t,id:e},subAssets:n}}),[r]),h=(0,n.useCallback)((async(e,t)=>{try{null!==t&&void 0!==t&&t.withLoader&&s(!0);const n=await d(e);u(n)}catch(n){l("An error occured while fetching asset data")}finally{null!==t&&void 0!==t&&t.withLoader&&s(!1)}}),[d]);(0,n.useEffect)((()=>{i&&h(t,{withLoader:!0})}),[h,t,i]);const p=(0,n.useCallback)((()=>{h(t,{withLoader:!1})}),[h,t]);return{isLoading:o,error:a,asset:c,refresh:p,modifySubAsset:(e,t)=>{if(null===c||void 0===c||!c.subAssets)return;const n=c.subAssets.findIndex((t=>{let{id:n}=t;return n===e}));-1!==n&&u((e=>e?(e.subAssets[n]={...c.subAssets[n],...t},e):null))}}},dCe=Object.freeze({[xV.GEOTIFF]:2,[xV.GEOJSON]:3,[xV.IMAGE]:4}),hCe=e=>{var t;const{active:r=!0,assetId:i,minZIndex:o=1,externalUserCode:s,assetData:a={fetch:!0},geoJSONOverlayProps:l}=e,c=uCe({assetId:i,externalUserCode:s,active:a.fetch}),u=(0,n.useMemo)((()=>{var e;return null!==(e=a.assetSubs)&&void 0!==e?e:c.asset}),[a.assetSubs,c.asset]),[d,h]=(0,n.useState)(!1),[p,f]=(0,n.useState)([]),g=(0,n.useMemo)((()=>e.subAssetsIds),[JSON.stringify(e.subAssetsIds)]),m=(0,n.useMemo)((()=>e.only),[JSON.stringify(e.only)]),y=(0,n.useMemo)((()=>e.except),[JSON.stringify(e.except)]),v=(0,n.useMemo)((()=>e.computeDefaultVisible),[JSON.stringify(e.computeDefaultVisible)]),[_,b]=(0,n.useState)([]),[x,S]=(0,n.useState)(null!==(t=e.customOverlays)&&void 0!==t?t:[]),w=(0,n.useMemo)((()=>{const e=Math.min(...Object.values(dCe));return Math.max(o,e)}),[o]),E=(0,n.useMemo)((()=>[..._].sort(((e,t)=>{let{zIndex:n}=e,{zIndex:r}=t;return r-n}))),[_]),P=(0,n.useMemo)((()=>{let e=[...E];if(m){const t=m;e=e.filter(t)}e=e.filter((e=>!y||!0!==y(e)));return[...(v?e.map((e=>({...e,defaultVisible:v(e)}))):e).map(CPe),...x]}),[E,JSON.stringify(x),m,y,v]),C=(0,n.useCallback)((e=>w+e.zIndex),[w]),{mapOverlaysItems:A,isVisibleFn:k,getOpacityFn:j}=PPe({overlays:P}),I=(0,n.useCallback)((async(e,t,n)=>{try{h(!0);const r=await GV(e,t,n);r.forEach((e=>{e.type===xV.GEOTIFF&&e.status!==SV.DONE||T(e)}));const i=r.reduce(((e,t)=>(e.some((e=>e.id===t.subAsset.id))||e.push({id:t.subAsset.id,name:t.subAsset.name}),e)),[]);f(i)}catch(r){console.error(r),b([]),f([])}finally{h(!1)}}),[]),G=(0,n.useCallback)((function(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];const n=Array.isArray(e)?e:[e];S((e=>{const r=[...e];return t?r.unshift(...n):r.push(...n),Array.from(new Set(r.map((e=>e.id)))).map((e=>r.find((t=>t.id===e)))).filter((e=>void 0!==e))}))}),[]);(0,n.useEffect)((()=>{r&&null!==g&&I(i,null!==g&&void 0!==g?g:[],s)}),[r,g,I,i,s]),(0,n.useEffect)((()=>{e.customOverlays&&G(e.customOverlays)}),[G,e.customOverlays]);const T=e=>{b((t=>{const n=t.findIndex((t=>t.id===e.id));if(-1!==n){const r=jV.parse({...t[n],...e});return[...t.slice(0,n),r,...t.slice(n+1)]}const r=jV.parse(e);return[...t,r]}))},M=(0,n.useMemo)((()=>g&&1===g.length?[]:p.map((e=>({id:e.id,label:e.name}))).sort(((e,t)=>{const n=e.label.toLowerCase(),r=t.label.toLowerCase();return n<r?-1:n>r?1:0}))),[p,g]),O=(0,n.useMemo)((()=>{var e,t;if(!u)return mL.NoMap;const n=null!==(e=u.subAssets)&&void 0!==e?e:[],r=void 0!==g?n.filter((e=>{let{id:t}=e;return null===g||void 0===g?void 0:g.includes(t)})):n;if(0===r.length)return vL;const i=r.flatMap((e=>{let{defaultMapProvider:t}=e;return t?[t]:[]})),o=null!==(t=i[0])&&void 0!==t?t:vL;return mL[o]}),[u,g]),R=(0,n.useMemo)((()=>{var e;if(!u)return new Map;const t=new Map;return(null!==(e=u.subAssets)&&void 0!==e?e:[]).forEach((e=>{t.set(e.id,e.defaultMapProvider?mL[e.defaultMapProvider]:vL)})),t}),[u]),D=(0,n.useCallback)((()=>(0,Ae.jsx)(Ae.Fragment,{children:_.map((e=>{const t=C(e),n=k(e.id,e.subAsset.id),r=j(e.id,e.subAsset.id);return(0,Ae.jsx)(cCe,{overlay:e,zIndex:t,visible:n,opacityPercent:r,geoJSONOverlayProps:l},"overlay-".concat(e.id))}))})),[_,l,j,C,k]);return{isLoading:d,overlays:E,modifyOverlay:(e,t,n)=>{T({...n,id:e})},removeOverlay:e=>{b((t=>t.filter((t=>!(t.id===e)))))},refresh:()=>{I(i,null!==g&&void 0!==g?g:[])},mapOverlaysGroups:M,mapOverlaysItems:A,addItemFn:G,isOverlayVisible:k,getOverlayOpacity:j,MapOverlaysComp:D,defaultMapProvider:O,subAssetsMapProvidersMap:R}},pCe=Zo()((()=>({root:{maxWidth:"min(15rem, 40vw)"},eyeContainer:{width:"24px","& button":{padding:0}},sliderContainer:{"& .MuiSlider-root":{padding:"5px 0"}}}))),fCe=e=>{var t;const{classes:n}=pCe(),{item:r}=e;return(0,Ae.jsxs)(ws,{container:!0,direction:"column",wrap:"nowrap",className:n.root,children:[(0,Ae.jsxs)(ws,{item:!0,container:!0,wrap:"nowrap",alignItems:"center",columnGap:"0.5rem",children:[(0,Ae.jsx)(ws,{item:!0,className:n.eyeContainer,children:(0,Ae.jsx)("span",{children:e.loading?(0,Ae.jsx)($y,{size:15}):(0,Ae.jsx)(Gu,{onClick:()=>{var e;return null===(e=r.setVisible)||void 0===e?void 0:e.call(r,!r.isVisible)},disabled:!r.withVisibility,children:r.isVisible?(0,Ae.jsx)(hB.c,{}):(0,Ae.jsx)(pB.c,{})})})}),(0,Ae.jsx)(ws,{item:!0,minWidth:0,flex:1,children:(0,Ae.jsx)(vu,{overflow:"hidden",textOverflow:"ellipsis",title:r.label,children:r.label})})]}),(0,Ae.jsxs)(ws,{item:!0,container:!0,wrap:"nowrap",columnGap:"0.5rem",alignItems:"center",children:[(0,Ae.jsx)(ws,{item:!0,className:n.eyeContainer,children:r.withOpacity&&(0,Ae.jsxs)(vu,{color:r.isVisible?jp:Rp,sx:{fontSize:10},children:[r.opacity,"%"]})}),(0,Ae.jsx)(ws,{item:!0,width:"100%",className:n.sliderContainer,children:r.withOpacity&&(0,Ae.jsx)(WW,{size:"small",value:null!==(t=r.opacity)&&void 0!==t?t:0,onChange:(e,t)=>{var n;return null===(n=r.setOpacity)||void 0===n?void 0:n.call(r,t)},disabled:!r.isVisible})})]})]})},gCe=Zo()((()=>({groupItemsRoot:{position:"absolute"},groupItemsContainer:{borderRadius:"0.5rem",minWidth:"8rem",minHeight:"4rem",maxHeight:"50vh",whiteSpace:"nowrap",padding:"1rem",background:"white"},closeBtn:{padding:"2px"}}))),mCe=e=>{var t;const{classes:n}=gCe();return(0,Ae.jsxs)(Ae.Fragment,{children:[(0,Ae.jsx)(ev,{fullWidth:!0,fullChildrenWidth:!0,variant:"outlined",textColor:jp,disabled:e.loading,onClick:()=>e.onOpenChanged(!0),style:{margin:"0.25rem 0"},children:(0,Ae.jsxs)(ws,{container:!0,wrap:"nowrap",width:"100%",justifyContent:"space-between",alignItems:"center",columnGap:"0.5rem",children:[(0,Ae.jsx)(ws,{item:!0,children:e.group.label}),(0,Ae.jsx)(ws,{item:!0,display:"flex",children:e.loading?(0,Ae.jsx)($y,{size:15}):(0,Ae.jsx)(efe.c,{fontSize:"small"})})]})}),(0,Ae.jsx)(wp,{className:n.groupItemsRoot,left:"".concat(null===(t=e.anchorEl)||void 0===t?void 0:t.clientWidth,"px"),bottom:0,children:(0,Ae.jsx)(Awe,{open:e.isOpen,children:(0,Ae.jsxs)(wp,{position:"relative",className:n.groupItemsContainer,children:[(0,Ae.jsx)(wp,{position:"absolute",top:0,right:0,children:(0,Ae.jsx)(Gu,{"aria-label":"close",className:n.closeBtn,onClick:()=>e.onOpenChanged(!1),children:(0,Ae.jsx)(rwe.c,{})})}),(0,Ae.jsxs)(ws,{container:!0,direction:"column",wrap:"nowrap",children:[0===e.items.length&&(0,Ae.jsx)("p",{children:"No overlays to display"}),e.items.map(((e,t)=>(0,Ae.jsx)(ws,{item:!0,children:(0,Ae.jsx)(fCe,{item:e})},"grouped-overlay-".concat(t))))]})]})})})]})},yCe=e=>{var t;const[r,i]=(0,n.useState)(),[o,s]=(0,n.useState)(),a=(0,n.useMemo)((()=>e.items.filter((t=>{var n;return!t.groupId||!(null!==(n=e.groups)&&void 0!==n?n:[]).map((e=>{let{id:t}=e;return t})).includes(t.groupId)}))),[e.items]);return(0,Ae.jsx)(WEe,{onRefChanged:e=>i(e),onOpenChange:e=>{e||s(void 0)},children:(0,Ae.jsxs)(ws,{container:!0,direction:"column",wrap:"nowrap",children:[0===e.items.length&&(0,Ae.jsx)("p",{children:"No overlays to display"}),a.map(((t,n)=>(0,Ae.jsx)(ws,{item:!0,children:(0,Ae.jsx)(fCe,{item:t,loading:e.loading})},"overlay-".concat(n)))),null===(t=e.groups)||void 0===t?void 0:t.map(((t,n)=>{return(0,Ae.jsx)(ws,{item:!0,children:(0,Ae.jsx)(mCe,{isOpen:t.id===o,onOpenChanged:e=>((e,t)=>{s(e?t:void 0)})(e,t.id),group:t,items:(i=t.id,e.items.filter((e=>e.groupId===i))),anchorEl:null!==r&&void 0!==r?r:null,loading:e.loading})},"overlay-group-".concat(n));var i}))]})})},vCe=Zo()((()=>({pointerEvents:{width:"fit-content",..._0},mapLeftToolbar:{..._0,flexWrap:"nowrap",height:"100%",width:"100%",justifyContent:"space-between",overflowY:"auto",overflowX:"hidden",rowGap:"0.25rem"}}))),_Ce=e=>{const{classes:t}=vCe(),{assetId:r,subAssetsIds:i,withMapProviders:o=!0,withOverlays:s=!0,withSubAssetsPolygons:a=!1,externalUserCode:l,setOverlayVisibleFn:c,autoBounds:u=!0,bounds:d,...h}=e,{asset:p}=e.asset?{asset:e.asset}:uCe({assetId:r,externalUserCode:l}),f=(0,n.useMemo)((()=>i),[JSON.stringify(i)]),g=(0,n.useMemo)((()=>{var t;return null!==(t=e.customOverlays)&&void 0!==t?t:[]}),[e.customOverlays]),{isLoading:m,mapOverlaysItems:y,mapOverlaysGroups:v,isOverlayVisible:_,MapOverlaysComp:b,defaultMapProvider:x}=hCe({active:s,assetId:r,assetData:{fetch:!1,assetSubs:p},subAssetsIds:f,customOverlays:g,externalUserCode:l});(0,n.useEffect)((()=>{null===c||void 0===c||c((()=>_))}),[_,c]);const[S,w]=(0,n.useMemo)((()=>{if(!p)return[[],[]];const e=f?p.subAssets.filter((e=>{let{id:t}=e;return f.includes(t)})):p.subAssets,t=e.filter((e=>{let{area:t}=e;return void 0!==t})).map((e=>{var t;const n=(null!==(t=e.area)&&void 0!==t?t:[]).map((e=>({lat:e._latitude,lng:e._longitude})));return{id:"subAsset-".concat(e.id),coords:n,style:{stroke:"blue",size:2,fill:"transparent"},texts:"with-texts"===a?[{text:e.name,alwaysVisible:!0}]:[]}}));return[t,e.filter((e=>{let{area:t,location:n}=e;return void 0==t&&void 0!==n})).map((e=>{var t,n,r,i;const o={lat:null!==(t=null===(n=e.location)||void 0===n?void 0:n._latitude)&&void 0!==t?t:0,lng:null!==(r=null===(i=e.location)||void 0===i?void 0:i._longitude)&&void 0!==r?r:0};return{id:"subAsset-".concat(e.id),coords:o,type:d3.icon,iconUrl:J5,displayText:e.name,textStyle:{offsetY:20}}}))]}),[p,f,a]),E=(0,n.useMemo)((()=>{if(d)return d;if(!u)return;const e=S.length>0?0:1e3;return O3([...S.flatMap((e=>e.coords)),...w.map((e=>{let{coords:t}=e;return t}))],"small",e)}),[S,w,u,d]);return(0,Ae.jsx)(wp,{position:"relative",width:"100%",height:"100%",children:(0,Ae.jsxs)(U5,{provider:!navigator.onLine&&Yy()?mL[cL.NoMap]:x,bounds:E,...h,leftBar:(0,Ae.jsxs)(ws,{container:!0,direction:"column",className:"".concat(t.pointerEvents," ").concat(t.mapLeftToolbar),children:[(0,Ae.jsx)(ws,{item:!0,flex:1,className:t.pointerEvents,children:h.leftBar}),s&&(0,Ae.jsx)(ws,{item:!0,className:t.pointerEvents,children:(0,Ae.jsx)(yCe,{loading:m,groups:v,items:y})}),o&&(0,Ae.jsx)(ws,{item:!0,className:t.pointerEvents,children:(0,Ae.jsx)(kwe,{})})]}),children:[s&&b(),!1!==a&&(0,Ae.jsxs)(Ae.Fragment,{children:[(0,Ae.jsx)(yPe,{polygons:S,zIndex:12}),(0,Ae.jsx)(Z5,{points:w})]}),h.children]})})},bCe=co.firestore(),xCe=Zo()((e=>({disconnectedActionsBtns:{position:"absolute",width:"100%",left:0,top:"0.5rem",padding:"0 0.5rem",columnGap:"0.5rem",..._0},leftBarContainer:{..._0},topBarContainer:{flex:1,..._0,"& button, & p":{whiteSpace:"nowrap"}},emptyTopBarContainer:{flexShrink:2,[e.breakpoints.down("lg")]:{display:"none"}},switchContainer:{margin:"auto",borderRadius:"4px",width:"fit-content",paddingRight:"1.5rem",paddingLeft:"0.5rem",backgroundColor:e.palette.primary.main,color:"white",..._0},polygonFilterBtns:{float:"right",width:"fit-content",backgroundColor:"white",borderRadius:"4px",..._0}}))),SCe=e=>{var t;const r=m(),{assetId:i,subAssetId:o,offset:s,onOffsetUpdated:a,onFilterPolygonChanged:l}=e,{classes:c}=xCe(),u=b(Nm),d=(0,n.useContext)(MEe);if(!d)return(0,Ae.jsx)(Ae.Fragment,{});const{tab:{isCurrentTabDisconnected:h},filters:{current:p},annotations:{all:f,currentTabNotInDefectsPolygons:g,currentTabInDefectsPolygons:y,checked:{current:v,set:_,change:x},selected:{set:S},highlighted:w,filtered:E},defects:{all:P,selected:{set:C}},mapZoom:{zoomOnAnnotationsFullIds:A,set:k}}=d,{subAsset:j,isLoading:I}=(e=>{const{assetId:t,subAssetId:r}=e,[i,o]=(0,n.useState)(!1),[s,a]=(0,n.useState)(),[l,c]=(0,n.useState)();(0,n.useEffect)((()=>{u(t,r,{withLoader:!0})}),[t,r]);const u=async(e,t,n)=>{try{null!==n&&void 0!==n&&n.withLoader&&o(!0);const r=await qhe(e,t);c(r)}catch(r){a("An error occured while fetching asset data")}finally{null!==n&&void 0!==n&&n.withLoader&&o(!1)}};return{isLoading:i,error:s,subAsset:l,refresh:()=>u(t,r,{withLoader:!1})}})({assetId:i,subAssetId:o}),[G,T]=(0,n.useState)(),[M,O]=(0,n.useState)(),[R,D]=(0,n.useState)((()=>()=>!1));(0,n.useEffect)((()=>{l(M)}),[l,M]);const N=(0,n.useMemo)((()=>{if(!M)return;return{id:"polygon-filter",coords:M}}),[M]),L=(0,n.useMemo)((()=>[N]),[N]),V=(0,n.useMemo)((()=>void 0!==N),[N]),F="defectsOverlayId",z="annotationsOverlayId",B=(0,n.useMemo)((()=>[{id:F,label:"Defects",withOpacity:!1},{id:z,label:"Annotations",withOpacity:!1}]),[]),U=(0,n.useMemo)((()=>g.map((e=>{const t=w.includes(e.id);return{...e,style:{fill:PU,stroke:t?jp:Xp.POLYGONS.stroke.default,size:t?2:1}}}))),[g,w]),W=(0,n.useMemo)((()=>y.map((e=>{const t=w.includes(e.id);return{...e,style:{fill:EU,stroke:t?jp:Xp.POLYGONS.stroke.default,size:t?2:1}}}))),[y,w]),H=!!j&&ipe(j);(0,n.useEffect)((()=>{if(!A||0===A.length)return;const e=[...y,...g].filter((e=>{let{id:t}=e;return A.includes(t)}));if(0===e.length)return;const t=e.flatMap((e=>{let{coords:t}=e;return t})),n=t[0];t.every((e=>e.lat===n.lat&&e.lng===n.lng))||(T(O3(t,4)),k(void 0))}),[g,y,A,k]),(0,n.useEffect)((()=>{O(h?[]:void 0)}),[h]),(0,n.useEffect)((()=>{h&&0===v.length&&S(void 0)}),[h,v,S]);const q=async t=>{var n,i;const o=null===(n=t.features)||void 0===n||null===(i=n.getArray())||void 0===i?void 0:i[0];if(!o)return;const s=o.getId();if(!s)return;const a="".concat(s),[l,c]=a.split("_"),d=[...f],h=d.find((e=>{let{fileName:t}=e;return t===a})),p=o.getGeometry().getCoordinates()[0].map((t=>{const n=t[0]-e.offset.x,r=t[1]-e.offset.y;return[n/20037508.34*180,360*Math.atan(Math.exp(r/20037508.34*Math.PI))/Math.PI-90]})),g=p.map((e=>({lat:e[1],lng:e[0]}))),m=T3(g);if(!m)return;var y;h&&await bCe.collection("inspections").doc(null!==(y=null===u||void 0===u?void 0:u.id)&&void 0!==y?y:"").collection("data").doc("annotations").update({["annots.".concat(l,".").concat(c,".position")]:{lat:m.lat,lon:m.lng}});const v=d.map((e=>e.fileName===a?{...e,position:{lat:m.lat,lon:m.lng}}:{...e,position:{lat:e.position.lat,lon:e.position.lng}}));r(Mg([...v]))},X=(0,n.useCallback)((e=>{const t=e.id;S(t),h&&x(t)}),[h,S,x]),Y=(0,n.useCallback)((e=>{if(!h)return X(e);const t=e.id,n=P.find((e=>e.annotations.map((e=>{let{annotationRef:t}=e;return t})).includes(t)));if(!n)return;const r=n.id;C(r)}),[h,P,X,C]),K=e=>{var t,n,r;const i=null===(t=e.features)||void 0===t||null===(n=t.getArray())||void 0===n||null===(r=n[0])||void 0===r?void 0:r.getGeometry();i&&Y3(i)&&O(C3(i))},Z=(0,n.useCallback)((()=>{_([])}),[_]),$=(0,n.useMemo)((()=>[o]),[o]);return I?(0,Ae.jsx)(Iwe,{}):j?(0,Ae.jsxs)(_Ce,{withSubAssetsPolygons:!H,assetId:i,subAssetsIds:$,customOverlays:B,setOverlayVisibleFn:D,bounds:G,leftBar:(0,Ae.jsxs)(ws,{container:!0,direction:"column",wrap:"nowrap",height:"100%",justifyContent:"end",rowGap:"0.25rem",className:c.leftBarContainer,children:[!h&&(0,Ae.jsx)(WEe,{stayClose:!0,icon:V?(0,Ae.jsx)(zEe.c,{color:"secondary",fontSize:"medium"}):(0,Ae.jsx)(FEe.c,{color:"secondary",fontSize:"medium"}),tooltip:V?"Remove filter":"Filter zone",onIconClicked:()=>{O(V?void 0:[])}}),(0,Ae.jsx)(WEe,{icon:(0,Ae.jsx)(BEe.c,{color:"secondary",fontSize:"medium",style:{transform:"rotate(45deg)"}}),children:(0,Ae.jsx)(EPe,{offset:s,onChange:a,isIndividualOffset:!!Eo()&&(p.mapArea&&p.mapArea.length>0&&(null!==(t=null===E||void 0===E?void 0:E.length)&&void 0!==t?t:0)>0)})})]}),children:[h&&(0,Ae.jsxs)(ws,{container:!0,wrap:"nowrap",justifyContent:"space-between",className:c.disconnectedActionsBtns,children:[(0,Ae.jsx)(ws,{item:!0,className:"".concat(c.topBarContainer," ").concat(c.emptyTopBarContainer)}),(0,Ae.jsx)(ws,{item:!0,className:c.topBarContainer,children:(0,Ae.jsx)(wp,{className:c.switchContainer,children:(0,Ae.jsx)(aF,{color:"info",checked:V,onChange:e=>{O(e?[]:void 0)},text:"Selection tool"})})}),(0,Ae.jsx)(ws,{item:!0,className:c.topBarContainer,children:(0,Ae.jsx)("div",{className:c.polygonFilterBtns,children:(0,Ae.jsxs)(cW,{orientation:"vertical",children:[(0,Ae.jsx)(ev,{disabled:0===v.length,onClick:Z,children:"Unselect all"}),void 0!==M&&(0,Ae.jsx)(ev,{disabled:M.length<=0,onClick:()=>{O([]),Z()},children:"Remove polygon"})]})})})]}),(0,Ae.jsx)(yPe,{clickable:!0,zIndex:10,visible:R(F),polygons:W,onPolygonClicked:Y,draggable:!!Eo()&&fPe.IF_CTRL,onPolygonTranslated:q}),(0,Ae.jsx)(yPe,{clickable:!0,draggable:!!Eo()&&fPe.IF_CTRL,onPolygonTranslated:q,zIndex:10,visible:R(z),polygons:U,onPolygonClicked:X}),(0,Ae.jsx)(_Pe,{drawEnabled:V&&0===(null===M||void 0===M?void 0:M.length),shape:u3.POLYGON,onDrawEnd:e=>{Y3(e)&&O(C3(e))}}),(0,Ae.jsx)(yPe,{selectable:!0,autoSelect:!0,resizable:gPe.IF_SELECTED,draggable:fPe.IF_SELECTED,visible:V&&H3(N),polygons:L,onPolygonTranslated:K,onPolygonResized:K,zIndex:11})]}):(0,Ae.jsx)(Ae.Fragment,{})},wCe=e=>{const{children:t,context:n}=e;return(0,Ae.jsx)(MEe.Provider,{value:n,children:t})},ECe=e=>{const t=n.useRef({});return n.useEffect((()=>{t.current=e})),t.current};function PCe(e){return(0,hs.c)("MuiBadge",e)}(0,ds.c)("MuiBadge",["root","badge","invisible"]);const CCe=["badgeContent","component","children","invisible","max","slotProps","slots","showZero"],ACe=n.forwardRef((function(e,t){const{component:n,children:r,max:i=99,slotProps:o={},slots:s={},showZero:a=!1}=e,l=(0,Tt.c)(e,CCe),{badgeContent:c,max:u,displayValue:h,invisible:p}=function(e){const{badgeContent:t,invisible:n=!1,max:r=99,showZero:i=!1}=e,o=ECe({badgeContent:t,max:r});let s=n;!1!==n||0!==t||i||(s=!0);const{badgeContent:a,max:l=r}=s?o:e;return{badgeContent:a,invisible:s,max:l,displayValue:a&&Number(a)>l?"".concat(l,"+"):a}}((0,d.c)({},e,{max:i})),f=(0,d.c)({},e,{badgeContent:c,invisible:p,max:u,showZero:a}),g=(e=>{const{invisible:t}=e,n={root:["root"],badge:["badge",t&&"invisible"]};return(0,ls.c)(n,PCe,void 0)})(f),m=n||s.root||"span",y=Nc({elementType:m,externalSlotProps:o.root,externalForwardedProps:l,additionalProps:{ref:t},ownerState:f,className:g.root}),v=s.badge||"span",_=Nc({elementType:v,externalSlotProps:o.badge,ownerState:f,className:g.badge});return(0,Ae.jsxs)(m,(0,d.c)({},y,{children:[r,(0,Ae.jsx)(v,(0,d.c)({},_,{children:h}))]}))})),kCe=ACe;function jCe(e){return(0,hs.c)("MuiBadge",e)}const ICe=(0,ds.c)("MuiBadge",["root","badge","dot","standard","anchorOriginTopRight","anchorOriginBottomRight","anchorOriginTopLeft","anchorOriginBottomLeft","invisible","colorError","colorInfo","colorPrimary","colorSecondary","colorSuccess","colorWarning","overlapRectangular","overlapCircular","anchorOriginTopLeftCircular","anchorOriginTopLeftRectangular","anchorOriginTopRightCircular","anchorOriginTopRightRectangular","anchorOriginBottomLeftCircular","anchorOriginBottomLeftRectangular","anchorOriginBottomRightCircular","anchorOriginBottomRightRectangular"]),GCe=["anchorOrigin","className","component","components","componentsProps","overlap","color","invisible","max","badgeContent","slots","slotProps","showZero","variant"],TCe=(0,cs.cp)("span",{name:"MuiBadge",slot:"Root",overridesResolver:(e,t)=>t.root})({position:"relative",display:"inline-flex",verticalAlign:"middle",flexShrink:0}),MCe=(0,cs.cp)("span",{name:"MuiBadge",slot:"Badge",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.badge,t[n.variant],t["anchorOrigin".concat((0,ha.c)(n.anchorOrigin.vertical)).concat((0,ha.c)(n.anchorOrigin.horizontal)).concat((0,ha.c)(n.overlap))],"default"!==n.color&&t["color".concat((0,ha.c)(n.color))],n.invisible&&t.invisible]}})((e=>{let{theme:t,ownerState:n}=e;return(0,d.c)({display:"flex",flexDirection:"row",flexWrap:"wrap",justifyContent:"center",alignContent:"center",alignItems:"center",position:"absolute",boxSizing:"border-box",fontFamily:t.typography.fontFamily,fontWeight:t.typography.fontWeightMedium,fontSize:t.typography.pxToRem(12),minWidth:20,lineHeight:1,padding:"0 6px",height:20,borderRadius:10,zIndex:1,transition:t.transitions.create("transform",{easing:t.transitions.easing.easeInOut,duration:t.transitions.duration.enteringScreen})},"default"!==n.color&&{backgroundColor:(t.vars||t).palette[n.color].main,color:(t.vars||t).palette[n.color].contrastText},"dot"===n.variant&&{borderRadius:4,height:8,minWidth:8,padding:0},"top"===n.anchorOrigin.vertical&&"right"===n.anchorOrigin.horizontal&&"rectangular"===n.overlap&&{top:0,right:0,transform:"scale(1) translate(50%, -50%)",transformOrigin:"100% 0%",["&.".concat(ICe.invisible)]:{transform:"scale(0) translate(50%, -50%)"}},"bottom"===n.anchorOrigin.vertical&&"right"===n.anchorOrigin.horizontal&&"rectangular"===n.overlap&&{bottom:0,right:0,transform:"scale(1) translate(50%, 50%)",transformOrigin:"100% 100%",["&.".concat(ICe.invisible)]:{transform:"scale(0) translate(50%, 50%)"}},"top"===n.anchorOrigin.vertical&&"left"===n.anchorOrigin.horizontal&&"rectangular"===n.overlap&&{top:0,left:0,transform:"scale(1) translate(-50%, -50%)",transformOrigin:"0% 0%",["&.".concat(ICe.invisible)]:{transform:"scale(0) translate(-50%, -50%)"}},"bottom"===n.anchorOrigin.vertical&&"left"===n.anchorOrigin.horizontal&&"rectangular"===n.overlap&&{bottom:0,left:0,transform:"scale(1) translate(-50%, 50%)",transformOrigin:"0% 100%",["&.".concat(ICe.invisible)]:{transform:"scale(0) translate(-50%, 50%)"}},"top"===n.anchorOrigin.vertical&&"right"===n.anchorOrigin.horizontal&&"circular"===n.overlap&&{top:"14%",right:"14%",transform:"scale(1) translate(50%, -50%)",transformOrigin:"100% 0%",["&.".concat(ICe.invisible)]:{transform:"scale(0) translate(50%, -50%)"}},"bottom"===n.anchorOrigin.vertical&&"right"===n.anchorOrigin.horizontal&&"circular"===n.overlap&&{bottom:"14%",right:"14%",transform:"scale(1) translate(50%, 50%)",transformOrigin:"100% 100%",["&.".concat(ICe.invisible)]:{transform:"scale(0) translate(50%, 50%)"}},"top"===n.anchorOrigin.vertical&&"left"===n.anchorOrigin.horizontal&&"circular"===n.overlap&&{top:"14%",left:"14%",transform:"scale(1) translate(-50%, -50%)",transformOrigin:"0% 0%",["&.".concat(ICe.invisible)]:{transform:"scale(0) translate(-50%, -50%)"}},"bottom"===n.anchorOrigin.vertical&&"left"===n.anchorOrigin.horizontal&&"circular"===n.overlap&&{bottom:"14%",left:"14%",transform:"scale(1) translate(-50%, 50%)",transformOrigin:"0% 100%",["&.".concat(ICe.invisible)]:{transform:"scale(0) translate(-50%, 50%)"}},n.invisible&&{transition:t.transitions.create("transform",{easing:t.transitions.easing.easeInOut,duration:t.transitions.duration.leavingScreen})})})),OCe=n.forwardRef((function(e,t){var n,r,i,o,s,a;const l=(0,Oe.c)({props:e,name:"MuiBadge"}),{anchorOrigin:c={vertical:"top",horizontal:"right"},className:u,component:h="span",components:p={},componentsProps:f={},overlap:g="rectangular",color:m="default",invisible:y=!1,max:v,badgeContent:_,slots:b,slotProps:x,showZero:S=!1,variant:w="standard"}=l,E=(0,Tt.c)(l,GCe),P=ECe({anchorOrigin:c,color:m,overlap:g,variant:w});let C=y;!1===y&&(0===_&&!S||null==_&&"dot"!==w)&&(C=!0);const{color:A=m,overlap:k=g,anchorOrigin:j=c,variant:I=w}=C?P:l,G=(e=>{const{color:t,anchorOrigin:n,invisible:r,overlap:i,variant:o,classes:s={}}=e,a={root:["root"],badge:["badge",o,r&&"invisible","anchorOrigin".concat((0,ha.c)(n.vertical)).concat((0,ha.c)(n.horizontal)),"anchorOrigin".concat((0,ha.c)(n.vertical)).concat((0,ha.c)(n.horizontal)).concat((0,ha.c)(i)),"overlap".concat((0,ha.c)(i)),"default"!==t&&"color".concat((0,ha.c)(t))]};return(0,ls.c)(a,jCe,s)})((0,d.c)({},l,{anchorOrigin:j,invisible:C,color:A,overlap:k,variant:I}));let T;"dot"!==I&&(T=_&&Number(_)>v?"".concat(v,"+"):_);const M=null!=(n=null!=(r=null==b?void 0:b.root)?r:p.Root)?n:TCe,O=null!=(i=null!=(o=null==b?void 0:b.badge)?o:p.Badge)?i:MCe,R=null!=(s=null==x?void 0:x.root)?s:f.root,D=null!=(a=null==x?void 0:x.badge)?a:f.badge;return(0,Ae.jsx)(kCe,(0,d.c)({invisible:y,badgeContent:T,showZero:S,max:v},E,{slots:{root:M,badge:O},className:(0,ts.c)(null==R?void 0:R.className,G.root,u),slotProps:{root:(0,d.c)({},R,MW(M)&&{as:h,ownerState:(0,d.c)({},null==R?void 0:R.ownerState,{anchorOrigin:j,color:A,overlap:k,variant:I})}),badge:(0,d.c)({},D,{className:(0,ts.c)(G.badge,null==D?void 0:D.className)},MW(O)&&{ownerState:(0,d.c)({},null==D?void 0:D.ownerState,{anchorOrigin:j,color:A,overlap:k,variant:I})})},ref:t}))})),RCe=OCe,DCe=e=>{const{range:t,values:r,step:i=1,onChange:o,title:s,size:a}=e,[l,c]=(0,n.useState)([Ly(r[0],2),Ly(r[1],2)]);(0,n.useEffect)((()=>{c([Ly(r[0],2),Ly(r[1],2)])}),[r]);const u=(0,n.useMemo)((()=>l[0]!==Ly(t[0],2)||l[1]!==Ly(t[1],2)),[l,t]);return(0,Ae.jsxs)(ws,{container:!0,direction:"column",wrap:"nowrap",justifyContent:"center",children:[void 0!==s?(0,Ae.jsxs)(vu,{id:"range-slider",textAlign:"center",children:[" ",s," "]}):null,(0,Ae.jsx)(WW,{size:a,value:[...l],onChangeCommitted:(e,t)=>o(t),onChange:(e,t)=>c(t),"aria-labelledby":"range-slider",valueLabelDisplay:"on",style:{color:u?"rgb(241, 89, 89)":jp},step:i,min:Ly(t[0],2),max:Ly(t[1],2)})]})},NCe=e=>{const{buttonContent:t,popupContent:r,popupTitle:i="",popupValidateBtnText:o,popupCancelBtnText:s,onClick:a,...l}=e,[c,u]=(0,n.useState)(null),[d,h]=(0,n.useState)(!1),p=(0,n.useCallback)((e=>{u(e.currentTarget)}),[]),f=(0,n.useCallback)((()=>{u(null)}),[]),g=(0,n.useCallback)((async e=>{if(a)try{h(!0),await a(e),u(null)}catch(t){}finally{h(!1)}}),[a]);return(0,Ae.jsxs)(Ae.Fragment,{children:[void 0!==t?(0,Ae.jsx)(ev,{...l,onClick:p,children:t}):(0,Ae.jsx)(ev,{...l,onClick:p}),(0,Ae.jsx)(Ud,{open:null!==c,onClose:f,anchorEl:c,anchorOrigin:{vertical:"bottom",horizontal:"center"},transformOrigin:{vertical:"top",horizontal:"center"},children:(0,Ae.jsx)(Nhe,{title:i,loading:d,validateText:o,cancelText:s,onCancel:f,onConfirm:g,children:r})})]})},LCe=(e,t)=>Math.sqrt(Math.pow(t.x-e.x,2)+Math.pow(t.y-e.y,2)),VCe=(e,t)=>{const n=Math.min(...e.map((e=>e.x))),r=Math.max(...e.map((e=>e.x))),i=Math.min(...e.map((e=>e.y))),o="top-left"===t?{x:n,y:i}:{x:r,y:i},s=e.map((e=>({point:e,distance:LCe(o,e)}))),a=s.reduce(((e,t)=>t.distance<e.distance?t:e),s[0]).point;return a},FCe=function(e,t,n,r,i){let o=arguments.length>5&&void 0!==arguments[5]?arguments[5]:0;const s=i.width*(t/100)*r/100,a=i.height*(n/100)*r/100,l=UL(e.lat,e.lng,-a/2,-s/2),c=UL(e.lat,e.lng,a/2,s/2),u=[{lat:l.lat,lng:c.lon},{lat:l.lat,lng:l.lon},{lat:c.lat,lng:l.lon},{lat:c.lat,lng:c.lon}],d=A3(e);return u.map((e=>{const t=A3(e);return BPe(t[0],t[1],d[0],d[1],-o)})).filter(U3).map(k3)},zCe=e=>{if(8!==e.length)throw new Error("coordinates should be an array of 8 numbers");const t=e.reduce(((t,n,r)=>{if(r%2===0){const i=100*n,o=100*e[r+1];t.push({x:i,y:o})}return t}),[]),n=Math.min(...t.map((e=>e.x))),r=Math.max(...t.map((e=>e.x))),i=Math.min(...t.map((e=>e.y))),o=Math.max(...t.map((e=>e.y))),s=r-n,a=o-i,l=VCe(t,"top-left"),c=VCe(t,"top-right"),u=Math.atan2(c.y-l.y,c.x-l.x);return{x:l.x,y:l.y,width:s,height:a,angle:u}},BCe=e=>{let{photoId:t,id:n}=e;return"".concat(t,"_").concat(n)},UCe=e=>{var t,n,r,i,o,s,a,l;const[c,u]=e.fileName.split("_");return{...e,id:u,photoId:c,palette:e.palette&&Object.values(_L).some((t=>t===e.palette))?e.palette:_L.GREYSCALE,position:{lat:null!==(t=null===(n=e.position)||void 0===n?void 0:n.lat)&&void 0!==t?t:0,lng:null!==(r=null===(i=e.position)||void 0===i?void 0:i.lon)&&void 0!==r?r:0},note:null!==(o=e.note)&&void 0!==o?o:"",severity:null!==(s=e.severity)&&void 0!==s?s:3,thermalStats:null!==(a=e.thermalStats)&&void 0!==a?a:{max:0,min:0,mean:0},coordinates:null!==(l=e.coordinates)&&void 0!==l?l:[]}},WCe=Zo()((()=>({root:{justifyContent:"space-between",columnGap:"1rem"},tabsContainer:{width:"fit-content",alignItems:"center",justifyContent:"left",columnGap:"1rem",flexDirection:"row"},btnTypeContainer:{width:"8rem"},slidersFiltersContainer:{height:"fit-content",width:"fit-content",padding:"0.5rem",paddingBottom:0,columnGap:"0.5rem",rowGap:"0.5rem",justifyContent:"end"},sliderContainer:{border:"1px solid ".concat(Rp),borderRadius:"1rem",padding:"0.5rem 1.75rem 0rem",minWidth:"10rem",maxWidth:"13rem","& .MuiSlider-root":{paddingBottom:"0.5rem"}},annotationBadge:{color:"white",backgroundColor:PU},defectBadge:{bottom:"4px",color:"white",backgroundColor:EU}}))),HCe=[PL.DISCONNECTED,PL.DIODE,PL.HOTSPOT],qCe=e=>{const{classes:t}=WCe(),{defectsPerTypeCount:r,annotationsPerTypeCount:i,onMultiDeleteClick:o}=e,s=(0,n.useContext)(MEe);if(!s)return(0,Ae.jsx)(Ae.Fragment,{});const{tab:{current:a,isCurrentTabDisconnected:l,set:c,isDiodeTabDisabled:u},filters:{current:d,set:h},annotations:{filtered:p,selected:{set:f},checked:{current:g,set:m}},loaders:{deleteMultiAnnotations:y}}=s,v=(0,n.useCallback)((e=>{const t=a===e,n={background:t?jp:"white",color:t?"white":"black",fontWeight:t?"bold":"normal",whiteSpace:"nowrap"};return u&&e===PL.DIODE?{...n,background:"lightgrey",color:"black",opacity:.3}:n}),[a,u]),_=(0,n.useCallback)(((e,t)=>{h((n=>({...n,[e]:{...n[e],values:t}})))}),[h]),b=(0,n.useMemo)((()=>g.length),[g]),x=(0,n.useMemo)((()=>0!==p.length&&b===p.length),[b,p]),S=(0,n.useCallback)((()=>{if(x)return m([]);0!==p.length&&(m(p.map(BCe)),f(BCe(p[0])))}),[x,p,m,f]);return(0,Ae.jsxs)(ws,{container:!0,wrap:"nowrap",className:t.root,children:[(0,Ae.jsxs)(ws,{item:!0,container:!0,paddingTop:"1.25rem",direction:l?"row":"column",width:l?"100%":"fit-content",justifyContent:"space-between",rowGap:"0.5rem",columnGap:"0.25rem",paddingX:"0.5rem",children:[(0,Ae.jsx)(ws,{item:!0,container:!0,wrap:"nowrap",className:t.tabsContainer,children:HCe.map(((e,n)=>(0,Ae.jsx)(cu,{title:e===PL.DIODE&&u?"Diode annotations are not available for this panel model":"",children:(0,Ae.jsx)(ws,{item:!0,className:t.btnTypeContainer,children:(0,Ae.jsx)(RCe,{badgeContent:r[n],max:9999,style:{width:"100%",height:"100%",bottom:"4px"},classes:{badge:t.defectBadge},anchorOrigin:{vertical:"bottom",horizontal:"right"},children:(0,Ae.jsx)(RCe,{badgeContent:i[n],max:9999,classes:{badge:t.annotationBadge},style:{width:"100%",height:"100%"},showZero:!0,children:(0,Ae.jsx)(ev,{fullWidth:!0,fullHeight:!0,label:e,style:v(e),onClick:()=>c(e),disabled:u&&e===PL.DIODE})})})},"solar-analyze-tab-".concat(e))},e+n)))}),(0,Ae.jsxs)(ws,{item:!0,container:!0,wrap:"nowrap",justifyContent:"space-between",direction:"row-reverse",alignItems:"center",flex:1,children:[(0,Ae.jsx)(NCe,{color:"delete",disabled:y||0===b,loading:y,onClick:o,buttonContent:"Delete ".concat(b," ").concat(wq("annotation",b)),popupTitle:"Delete annotations",popupContent:"Do you confirm deleting ".concat(b," annotations?"),popupValidateBtnText:"Confirm"}),!l&&(0,Ae.jsx)(ev,{color:"cancel",disabled:0===p.length,onClick:S,children:(0,Ae.jsxs)(ws,{container:!0,wrap:"nowrap",alignItems:"center",columnGap:"0.5rem",children:[(0,Ae.jsx)(lj,{style:{padding:0},checked:x,indeterminate:!x&&b>0}),(0,Ae.jsx)(ws,{item:!0,children:x?"Unselect all (".concat(b,")"):"Select all (".concat(p.length,")")})]})})]})]}),!l&&(0,Ae.jsxs)(ws,{item:!0,flex:1,container:!0,className:t.slidersFiltersContainer,children:[(0,Ae.jsx)(ws,{item:!0,flex:1,className:t.sliderContainer,children:(0,Ae.jsx)(DCe,{title:"Delta T\xb0",size:"small",range:d.deltaT.range,values:d.deltaT.values,step:.1,onChange:e=>_("deltaT",e)})}),(0,Ae.jsx)(ws,{item:!0,flex:1,className:t.sliderContainer,children:(0,Ae.jsx)(DCe,{title:"Max T\xb0",size:"small",range:d.maxT.range,values:d.maxT.values,step:.1,onChange:e=>_("maxT",e)})})]})]})};var XCe=__webpack_require__(81124),YCe=__webpack_require__(93344);const KCe=Zo()((()=>({root:{position:"absolute",top:".5rem",right:".5rem",zIndex:3},card:{width:"15rem",padding:".5rem",paddingTop:"1rem",textAlign:"center",fontSize:"14px",position:"relative"},closeBtn:{position:"absolute",top:"0.25rem",right:"0.25rem",color:"#00A6FF","&:hover":{cursor:"pointer"}},openBtn:{backgroundColor:"white","&:hover":{backgroundColor:"white"}}}))),ZCe=[{label:"Contrast",id:"contrast",min:0,max:2,step:.1},{label:"Brightness",id:"brightness",min:0,max:2,step:.1},{label:"Saturation",id:"saturate",min:0,max:10,step:.5}],$Ce={contrast:1,brightness:1,saturate:1},JCe=e=>{const{imageSettings:t,setImageSettings:r}=e,{classes:i}=KCe(),[o,s]=(0,n.useState)(!1);return(0,Ae.jsxs)("div",{className:i.root,children:[!o&&(0,Ae.jsx)(Sa,{className:i.openBtn,color:"primary",onClick:()=>s(!0),children:(0,Ae.jsx)(Lh,{})}),o&&(0,Ae.jsxs)(hj,{className:i.card,children:[(0,Ae.jsx)(tp,{className:i.closeBtn,onClick:()=>s(!1)}),ZCe.map((e=>{let{id:n,label:i,min:o,max:s,step:a}=e;return(0,Ae.jsxs)(vj,{spacing:2,direction:"row",sx:{mb:1},alignItems:"center",children:[(0,Ae.jsx)("div",{children:i}),(0,Ae.jsx)(WW,{"aria-label":i,size:"small",onChange:(e,i)=>((e,n)=>{r({...t,[e]:n})})(n,i),min:o,max:s,step:a,value:t[n]})]},n)})),(0,Ae.jsx)(ev,{label:"Reset",color:"cancel",size:"medium",onClick:()=>{r($Ce)}})]})]})},QCe=(e,t)=>100*e/t,eAe=(e,t)=>e*t/100,tAe=Zo()((()=>({root:{position:"relative",width:"100%",height:"100%"},imageContainer:{width:"100%",height:"100%"},imgLoader:{position:"absolute",top:0,left:0,width:"100%",height:"100%",display:"flex",justifyContent:"center",alignItems:"center"}}))),nAe=(e,t)=>{const{imageUrl:r,children:i,id:o,onImageReady:s,onImageSizeChanged:a,onRealImageSizeChanged:l,onImageRatioChanged:c,maxFileSizeMBCompression:u,overviewPurpose:d,hideControls:h=!1,hideLoader:p=!1,noWheelZoom:f=!1,cursor:g="",imageSettings:m=$Ce,transparentImageUrl:y}=e,{classes:v}=tAe(),_=(0,n.useRef)(null),b=(0,n.useRef)(new KPe({zIndex:1})),x=(0,n.useMemo)((()=>o?"id_".concat(o):"image-map-sv"),[o]),[S,w]=(0,n.useState)(),[E,P]=(0,n.useState)(!1),[C,A]=(0,n.useState)(!1),k=(0,n.useRef)(new OQ({controls:[],interactions:[]})),j=(0,n.useRef)(new kQ),[I,G]=(0,n.useState)(null),[T,M]=(0,n.useState)(null),[O,R]=(0,n.useState)(),[D,N]=(0,n.useState)(!1),L=(0,n.useCallback)((()=>{_.current&&w({width:_.current.clientWidth,height:_.current.clientHeight})}),[]);(0,n.useEffect)((()=>{const e=_.current;if(!e)return;const t=new ResizeObserver((()=>{L()}));return t.observe(e),()=>{t.unobserve(e)}}),[L]);const V=(0,n.useCallback)((e=>u?iCe(e,u):Promise.resolve(e)),[u]),F=(0,n.useCallback)((async e=>{N(!0);const t=await V(e);M(t),N(!1)}),[V]);(0,n.useEffect)((()=>{R(void 0),F(r)}),[F,r]),(0,n.useEffect)((()=>{if(!T||!S)return;const e=new Image;e.crossOrigin="anonymous",e.src=T,e.onload=()=>{const t={width:e.width,height:e.height};if(!t.width||!t.height)return;null===l||void 0===l||l(t);const{imageRatioSize:n,viewExtent:r}=((e,t)=>{const n=e.width/e.height,r=t.width/t.height;let i,o;if(n>1&&r<1||r<n){const n=t.width*e.height/t.height,r=(e.width-n)/2;i=[-r,0,n+r,e.height],o={height:e.height,width:n}}else{const n=t.height*e.width/t.width,r=(e.height-n)/2;i=[0,-r,e.width,n+r],o={height:n,width:e.width}}return{viewExtent:i,imageRatioSize:o}})(S,t);n.width&&n.height&&(e.width=n.width,e.height=n.height,G(r),R({width:e.width,height:e.height,imageFinalUrl:T}),null===a||void 0===a||a(n),null===c||void 0===c||c(n.width/t.width))}}),[T,S,c,a,l]),(0,n.useEffect)((()=>{k.current.setTarget(x)}),[x]),(0,n.useEffect)((()=>{const e=k.current;if(h)return void e.getControls().clear();const t=qJ({attribution:!1,rotate:!1,zoom:!(null!==d&&void 0!==d&&d)});return t.forEach((t=>{e.addControl(t)})),()=>{t.forEach((t=>{e.removeControl(t)}))}}),[h,d]),(0,n.useEffect)((()=>{A(!1);const e=k.current,t=j.current,n=GQ({doubleClickZoom:!1,altShiftDragRotate:!1,shiftDragZoom:!1,mouseWheelZoom:!1});return n.forEach((t=>{e.addInteraction(t)})),e.addInteraction(t),A(!0),()=>{A(!1),n.forEach((t=>{e.removeInteraction(t)})),e.removeInteraction(t)}}),[]),(0,n.useEffect)((()=>{j.current.setActive(!f)}),[f]),(0,n.useEffect)((()=>{const e=k.current,t=b.current;return e.addLayer(t),()=>{e.removeLayer(t)}}),[]),(0,n.useEffect)((()=>{const e=b.current;if(!O)return void e.setSource(null);if(!I)return;const t=k.current,{extent:n,projection:r}=ewe(O),i=d?"EPSG:4326":r,o=new rCe({url:O.imageFinalUrl,projection:i,imageExtent:n,crossOrigin:"anonymous"});return e.setSource(o),o.once("imageloadend",(()=>{null===s||void 0===s||s()})),t.setView(new AK({projection:i,extent:I,minZoom:0,zoom:0,maxZoom:5})),t.getView().setCenter([O.width/2,O.height/2]),P(!0),()=>{e.setSource(null)}}),[O,I,d,s]),(0,n.useEffect)((()=>{k.current.getViewport().style.cursor=g}),[g]),(0,n.useEffect)((()=>{const e=document.querySelector("#".concat(x," canvas"));e&&(e.style.filter=(e=>{let t="";return Object.keys(e).forEach((n=>{t+=" ".concat(n,"(").concat(e[n],")")})),{filter:t}})(m).filter)}),[x,m]),(e=>{const{map:t,transparentImageUrl:r,imageSize:i}=e;(0,n.useEffect)((()=>{if(!r||!i)return;const{extent:e,projection:n}=ewe(i),o=new KPe({zIndex:2,source:new rCe({url:r,projection:n,imageExtent:e})});return t.addLayer(o),()=>{t.removeLayer(o)}}),[t,r,i])})({map:k.current,imageSize:O,transparentImageUrl:y}),(0,n.useImperativeHandle)(t,(()=>({getPixelFromCoordinate(e){const t=k.current.getPixelFromCoordinate(e);return j3(t)}})));const z={map:k.current,areMapInteractionsReady:C};return(0,Ae.jsxs)("div",{className:v.root,children:[(!E||D)&&!p&&(0,Ae.jsx)("div",{className:v.imgLoader,children:(0,Ae.jsx)($y,{})}),(0,Ae.jsx)("div",{id:x,className:v.imageContainer,ref:_}),void 0!=(null===z||void 0===z?void 0:z.map)&&E&&(0,Ae.jsx)(F5,{context:z,children:i})]})},rAe=(0,n.forwardRef)(nAe),iAe=(e,t)=>{var n;if(!("x"in e))return[];const r=e.x/100*t.width,i=e.width/100*t.width,o=t.height-e.y/100*t.height,s=-e.height/100*t.height,a={x:r,y:o},l=[a,{x:r+i,y:o},{x:r+i,y:o+s},{x:r,y:o+s},a],c=-(null!==(n=e.angle)&&void 0!==n?n:0);if(!c)return l;const u=k5(l);return l.map((e=>BPe(e.x,e.y,u.x,u.y,c))).map((e=>({x:e[0],y:e[1]})))},oAe=function(e,t){let n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];const r=e.reduce(((r,i,o)=>{if(o%2===0){const s=i*t.width,a=n?t.height-e[o+1]*t.height:e[o+1]*t.height;r.push({x:s,y:a})}return r}),[]);return r},sAe=(e,t)=>"coordinates"in e?oAe(e.coordinates,t,!0):iAe(e,t),aAe=e=>{switch(e.toUpperCase()){case"HOTSPOT":return PL.HOTSPOT;case"DISCONNECTED":return PL.DISCONNECTED;case"DIODE":return PL.DIODE;default:return null}},lAe=Zo()((()=>({root:{border:"1px solid black",backgroundColor:"black",position:"relative"},actions:{position:"absolute",top:0,left:0,height:"100%",justifyContent:"space-between",alignItems:"center",padding:"0.5rem",..._0},clickThroughContainer:{..._0},formPositionRef:{position:"absolute"}})));var cAe=function(e){return e.THERMAL="Thermal",e.FULL="Full",e.RGB="RGB",e}(cAe||{});const uAe=[cAe.THERMAL,cAe.FULL],dAe=e=>{const{id:t,inspectionId:r,photoId:i,thermalCropUrl:o,rgbCropUrl:s,thermalImageUrl:a,annotations:l,onlyFullThermal:c=!1,disabled:u=!1,withOpenBtn:d=!1,noWheelZoom:h=!1,deleteAnnotation:p}=e,{classes:f}=lAe(),g=(0,n.useRef)(null),[m,y]=(0,n.useState)(cAe.THERMAL),[v,_]=(0,n.useState)(),[b,x]=(0,n.useState)(),[S,w]=(0,n.useState)(!1),[E,P]=(0,n.useState)(),[C,A]=(0,n.useState)();(0,n.useEffect)((()=>{c&&y(cAe.FULL)}),[c]);const k=(0,n.useMemo)((()=>{switch(m){case cAe.THERMAL:return o;case cAe.FULL:return a;case cAe.RGB:return s;default:return""}}),[m,o,s,a]),j=(0,n.useMemo)((()=>l&&v&&b?l.flatMap((e=>e?[e]:[])).map((e=>{const t=sAe(e,b).map((e=>{let{x:t,y:n}=e;return k3([t*v,n*v])}));return{id:BCe(e),coords:t,style:{stroke:Bp,fill:"transparent",size:2}}})):[]),[l,v,b]),I=(0,n.useMemo)((()=>S?"pointer":""),[S]);(0,n.useEffect)((()=>{void 0===p&&w(!1)}),[p]);const G=(0,n.useMemo)((()=>{if(!C)return{};const e=Math.min(...C.map((e=>e.y))),t=Math.min(...C.map((e=>e.x)));return{left:Math.max(0,t),top:Math.max(0,e)}}),[C]),T=(0,n.useCallback)(((e,t,n)=>{e&&(P("".concat(e.getId())),A(n))}),[]),M=(0,n.useCallback)((()=>{E&&(null===p||void 0===p||p(E),P(void 0))}),[E,p]);return(0,n.useEffect)((()=>{if(!a)return;const e=new Image;e.crossOrigin="anonymous",e.src=a,e.onload=()=>{x({width:e.width,height:e.height})}}),[a]),(0,Ae.jsxs)(wp,{width:"100%",height:"100%",className:f.root,children:[u&&(0,Ae.jsx)(ws,{container:!0,height:"100%",alignItems:"center",justifyContent:"center",children:(0,Ae.jsx)(vu,{color:"white",children:"Select an annotation"})}),k&&(0,Ae.jsx)(rAe,{noWheelZoom:h,id:t,imageUrl:k,onImageRatioChanged:_,cursor:I,children:m===cAe.FULL?(0,Ae.jsx)(yPe,{clickable:void 0!==p,polygons:j,onPolygonHovered:e=>void 0===p?null:w(null!==e),onPolygonSelected:T}):(0,Ae.jsx)(Ae.Fragment,{})}),(0,Ae.jsxs)(ws,{container:!0,direction:"column",className:f.actions,children:[(0,Ae.jsx)(ws,{item:!0,container:!0,wrap:"nowrap",justifyContent:"center",gap:"0.5rem",className:f.clickThroughContainer,children:!1===c&&(0,Ae.jsxs)(Ae.Fragment,{children:[(0,Ae.jsx)(ws,{item:!0,children:(0,Ae.jsx)(ige,{disabled:u,activeIndex:uAe.indexOf(m),onClick:e=>y(uAe[e]),size:"small",buttons:[cAe.THERMAL,(0,Ae.jsx)(XCe.c,{},"full-screen-icon")],buttonStyle:{color:"white",backgroundColor:Np,borderColor:Np},selectedButtonStyle:{backgroundColor:jp,boxShadow:"none"}})}),(0,Ae.jsx)(ws,{item:!0,children:(0,Ae.jsx)(ev,{disabled:u,size:"small",label:cAe.RGB,onClick:()=>{y(cAe.RGB)},style:{color:"white",backgroundColor:m===cAe.RGB?jp:Np,borderColor:Np,boxShadow:"none"}})})]})}),d&&i&&(0,Ae.jsx)(ws,{item:!0,width:"100%",className:f.clickThroughContainer,children:(0,Ae.jsx)(cu,{title:"Open photo",placement:"top",enterDelay:500,enterNextDelay:500,children:(0,Ae.jsx)("a",{href:u?"#":"/inspections/".concat(r,"/").concat(i),target:"_blank",rel:"noreferrer",children:(0,Ae.jsx)(ev,{disabled:u,children:(0,Ae.jsx)(YCe.c,{fontSize:"small"})})})})})]}),(0,Ae.jsx)("div",{className:f.formPositionRef,ref:g,style:G}),(0,Ae.jsx)(Ud,{anchorEl:g.current,open:void 0!==E,onClose:()=>P(void 0),children:(0,Ae.jsx)(wp,{padding:"0.5rem",children:(0,Ae.jsx)(ev,{color:"delete",onClick:M,children:"DELETE"})})})]})},hAe=e=>{const{inspectionId:t,externalCampaignUserCode:r}=e,[i,o]=(0,n.useState)({[_L.GREYSCALE]:new Map,[_L.HOTWHITE]:new Map}),[s,a]=(0,n.useState)([]),l=(0,n.useCallback)((async(e,n)=>{a((t=>[...t,e]));const i=await XV(t,[e],n,r);if(i.length>0){const t=i[0];o((r=>{const i=r[n],o=new Map(i);return o.set(e,t),{...r,[n]:o}}))}a((t=>[...t].filter((t=>t!==e))))}),[t,r]);return{getThermalPhotoSignedUrl:(0,n.useCallback)(((e,t)=>{var n;const r=null===(n=i[t])||void 0===n?void 0:n.get(e);return r||(s.includes(e)||l(e,t),"")}),[i,s,l])}};let pAe=function(e){return e.OPEN="open",e.CLOSED="closed",e}({}),fAe=function(e){return e.SEVERITIES="severities",e.DEFECTS="defects",e.DELTA_T="delta-t",e.MAX_T="max-t",e.WITH_DETAILS="with-details",e.STATUS="status",e}({}),gAe=function(e){return e[e.ALL=0]="ALL",e[e.ONLY_RESOLVED=1]="ONLY_RESOLVED",e[e.ONLY_UNRESOLVED=2]="ONLY_UNRESOLVED",e}({});const mAe=CC.object({id:CC.string(),type:CC.string(),note:CC.string(),severity:CC.number().min(1).max(5).default(3),rootCause:CC.string(),nextStep:CC.string(),annotations:CC.array(CC.object({annotationRef:CC.string()})),state:CC.optional(CC.object({by:CC.string(),on:CC.string(),status:CC.enum([pAe.OPEN,pAe.CLOSED])})),comments:CC.optional(CC.array(CC.object({by:CC.string(),on:CC.string(),comment:CC.string(),write:CC.boolean()}))),files:CC.optional(CC.array(CC.object({email:CC.string(),fileName:CC.string(),timestamp:CC.number()}))),orderId:CC.optional(CC.number())}),yAe=e=>{switch(e){case 1:case 2:return CU;case 3:return PU;case 4:case 5:return EU;default:return""}},vAe=Zo()((()=>({root:{height:"100%",overflowY:"auto",padding:"0.5rem 0",justifyContent:"space-between","& button":{lineHeight:"1rem",minHeight:"2.25rem"}},defectForm:{textAlign:"center"}}))),_Ae={id:"",annotations:[],note:"",type:"",severity:3,rootCause:"",nextStep:""},bAe=e=>{const{onLoadingChange:t}=e,{classes:r}=vAe(),i=m(),{copyDefectData:o,onDefectDataCopied:s}=e,a=(0,n.useContext)(NEe),l=(0,n.useContext)(MEe);if(!a||!l)return(0,Ae.jsx)(Ae.Fragment,{});const{inspection:{id:c}}=a,{tab:{isCurrentTabDisconnected:u},annotations:{currentTabInDefects:d,selected:{current:h,set:p},checked:{current:f,set:g}},defects:{all:y,selected:{current:v,set:_},checked:{current:b,set:x}}}=l,[S,w]=(0,n.useState)(),[E,P]=(0,n.useState)(!1);(0,n.useEffect)((()=>{t(E)}),[t,E]);const[C,A]=(0,n.useState)(_Ae);(0,n.useEffect)((()=>{if(v)return A(v);if(h){var e;const t=null===(e=Xq.find((e=>e.type===h.type)))||void 0===e?void 0:e.severity;return A({..._Ae,type:h.type,severity:null!==t&&void 0!==t?t:h.severity})}A(_Ae)}),[v,h]),(0,n.useEffect)((()=>{if(!o)return;const{severity:e,note:t,rootCause:n,nextStep:r}=o;A((i=>({...i,severity:e,note:t,rootCause:n,nextStep:r}))),null===s||void 0===s||s()}),[o,s]);const k=(e,t)=>{const n="severity"===t?parseInt(e,10):e.target.value.replace(/(\r\n|\n|\r)/gm," ");A((e=>({...e,[t]:n})))},j=(0,n.useCallback)((()=>{p(void 0),g([]),_(void 0),x([])}),[p,g,_,x]),I=(0,n.useCallback)((async e=>{const t=e.map((e=>({...C,new:!0,annotations:[{annotationRef:e,favorite:!1}]})));return GL(t)}),[C]),G=(0,n.useCallback)((async e=>{const t={...C,new:!0,annotations:e.map((e=>({annotationRef:e,favorite:!1})))};return GL([t])}),[C]),T=(0,n.useCallback)((async e=>{if(0!==e.length){P(!0),w("delete");try{await RL(c,e),x([])}catch(t){}finally{w(void 0),P(!1)}}}),[c,x]),M=(0,n.useMemo)((()=>f.length>0?f:h?["".concat(h.photoId,"_").concat(h.id)]:[]),[f,h]),O=(0,n.useMemo)((()=>b.length>0?b:v?[v.id]:[]),[b,v]),R=(0,n.useMemo)((()=>0===M.length&&0===O.length),[M,O]),D=(0,n.useMemo)((()=>O.length>0&&u),[O,u]),N=(0,n.useMemo)((()=>{if(""===C.type)return;const e=v?d.find((e=>BCe(e)===v.annotations[0].annotationRef)):h;if(!e)return;const t=((e,t)=>{if(!e.type||!t.type)return;const n=GU(e.type),r=GU(t.type);if(r===n)return;const i=[PL.DIODE,PL.DISCONNECTED].includes(r),o=r===PL.HOTSPOT&&[PL.DIODE,PL.DISCONNECTED].includes(n);return i||o?n:void 0})(C,e);return t}),[C,h,v,d]),L=(0,n.useMemo)((()=>{if(!N)return;const e=N;return"Choosing type ".concat(C.type," will change the annotation type. You will see it in the ").concat(e," tab.")}),[N,C]),V=(0,n.useCallback)((e=>{N&&e.forEach((e=>{i(Cm({fileName:e,type:N}))}))}),[i,N]),F=(0,n.useCallback)((async e=>{w("update"),P(!0);try{const t=e.map((e=>{const t=y.find((t=>{let{id:n}=t;return n===e}));if(!t)return;const{nextStep:n,note:r,rootCause:i,severity:o,type:s}=C;return{...t,new:!0,annotations:t.annotations.map((e=>({...e,favorite:!1}))),nextStep:n,note:r,rootCause:i,severity:o,type:s}})).flatMap((e=>e?[e]:[]));await(async e=>{var t,n,r;if(0===e.length)return;const i=Sy.getState(),o=null!==(t=e[0].inspectionId)&&void 0!==t?t:null===(n=i.inspectionTool.inspectionDoc)||void 0===n?void 0:n.id;if(!o)return;const s=null===(r=i.inspectionTool.inspectionDoc)||void 0===r?void 0:r.type,a=e.map((e=>OL(e,s)));return await Promise.all(a.map((e=>{const t={method:"POST",headers:{"Content-type":"application/json"},body:JSON.stringify({defect:e})};return Ey("/inspections/".concat(o,"/updateDefect"),t)}))),IL(o,!0)})(t);const n=t.flatMap((e=>e.annotations.map((e=>{let{annotationRef:t}=e;return t}))));V(n)}catch(t){}finally{w(void 0),P(!1)}}),[y,C,V]),z=(0,n.useCallback)((()=>v||h?(0,Ae.jsx)(ev,{color:"cancel",label:"Cancel",onClick:j,disabled:void 0!==S}):null),[v,h,S,j]),B=(0,n.useCallback)((()=>{const e=O.length;if(0===e)return null;const t=e>1?"Remove ".concat(e," defects"):"Remove defect";return(0,Ae.jsx)(ev,{color:"delete",label:t,onClick:()=>T(O),loading:"delete"===S,disabled:void 0!==S})}),[O,S,T]),U=(0,n.useCallback)((()=>{const e=O.length;if(0===e)return null;const t=e>1?"Update ".concat(e," defects"):"Update defect";return(0,Ae.jsx)(ev,{color:"primary",label:t,onClick:()=>F(O),loading:"update"===S,disabled:void 0!==S})}),[O,S,F]),W=(0,n.useCallback)((()=>{if(v)return null;const e=M.length;if(0===e)return null;const t=Object.values(CL),n=u&&t.includes(C.type),r=e>1?"Save ".concat(e," ").concat(n?"in defect":"as defects"):"Save as defect";return(0,Ae.jsx)(ev,{color:"primary",label:r,onClick:()=>(async e=>{w("create"),P(!0);try{const t=n?await G(e):await I(e);V(e),g([]),t&&t.length>0&&_(t[0])}catch(t){}finally{w(void 0),P(!1)}})(M),loading:"create"===S,disabled:void 0!==S})}),[v,C,M,S,u,V,G,I,g,_]);return(0,Ae.jsxs)(ws,{container:!0,direction:"column",wrap:"nowrap",className:r.root,children:[(0,Ae.jsxs)(ws,{container:!0,direction:"column",wrap:"nowrap",className:r.defectForm,rowGap:"0.5rem",children:[(0,Ae.jsxs)(yw,{variant:"outlined",children:[(0,Ae.jsx)(dw,{children:"Type"}),(0,Ae.jsx)(cu,{title:D?"You cannot change a disconnected defect type":"",placement:"top",children:(0,Ae.jsx)("div",{children:(0,Ae.jsx)(Aq,{fullWidth:!0,onChange:e=>k(e,"type"),type:C.type,disabled:R||D,marginBottom:0})})})]}),L&&(0,Ae.jsx)(pM,{severity:"warning",children:L}),(0,Ae.jsxs)(ws,{item:!0,container:!0,direction:"column",wrap:"nowrap",children:[(0,Ae.jsx)("p",{children:"Severity"}),(0,Ae.jsx)(kq,{onChange:e=>k(e,"severity"),severity:C.severity,disabled:R,style:{margin:"auto"}})]}),[{id:"note",label:"Note"},{id:"rootCause",label:"Root cause"},{id:"nextStep",label:"Next step"}].map(((e,t)=>(0,Ae.jsx)("div",{children:(0,Ae.jsx)(qq,{label:e.label,tag:"defect_"+e.id,class:"",multiline:!0,maxRows:1,outlined:!0,value:String(C[e.id]),disabled:R,maxInputs:50,maxCharacters:220,changeValue:t=>{k({target:{value:t}},e.id)}},t)},t)))]}),(0,Ae.jsxs)(ws,{item:!0,container:!0,wrap:"nowrap",justifyContent:"space-between",paddingX:"0.5rem",columnGap:"0.25rem",children:[(0,Ae.jsx)(z,{}),(0,Ae.jsx)(B,{}),(0,Ae.jsx)(U,{}),(0,Ae.jsx)(W,{})]})]})};let xAe=function(e){return e.ANALYZE_COMMON="analyze-common",e.ANALYZE_DISCONNECTED="analyze-disconnected",e}({});mAe.and(CC.object({customId:CC.number().min(1),deltaT:CC.number(),maxT:CC.number(),annotationsCount:CC.number()}));const SAe=CC.union([CC.literal("customId"),CC.literal("type"),CC.literal("severity"),CC.literal("deltaT"),CC.literal("maxT")]),wAe=Zo()((()=>({tableCell:{"& > span":{whiteSpace:"nowrap"}}}))),EAe=e=>{const{classes:t}=wAe(),{purpose:r,onSelectAllClick:i,order:o,orderBy:s,numSelected:a,rowCount:l,onRequestSort:c}=e,u=e=>t=>{(e=>SAe.safeParse(e).success)(e)&&c(t,e)},d=(0,n.useMemo)((()=>{const e=[{key:"customId",label:"Id",width:"fit-content"},{key:"type",label:"Type"},{key:"severity",label:"Severity",width:"fit-content"}];return r===xAe.ANALYZE_COMMON?e.push({key:"deltaT",label:"Delta T\xb0",width:"fit-content"},{key:"maxT",label:"Max T\xb0",width:"fit-content"}):r===xAe.ANALYZE_DISCONNECTED&&e.push({key:"annotationsCount",label:"Modules impacted"}),e.map((e=>({...e,sortable:SAe.safeParse(e.key).success})))}),[r]);return(0,Ae.jsx)(Mj,{children:(0,Ae.jsxs)(Wk,{children:[(0,Ae.jsx)(tk,{padding:"checkbox",children:(0,Ae.jsx)(lj,{color:"primary",indeterminate:a>0&&a<l,checked:l>0&&a===l,onChange:i,inputProps:{"aria-label":"select all"}})}),d.map((e=>(0,Ae.jsx)(tk,{align:"left",sortDirection:s===e.key&&o,className:t.tableCell,padding:"none",style:{width:e.width,paddingRight:"0.5rem",lineHeight:"1rem"},children:e.sortable?(0,Ae.jsx)(Fj,{active:s===e.key,direction:s===e.key?o:"asc",onClick:u(e.key),children:e.label}):e.label},e.key))),(0,Ae.jsx)(tk,{align:"left",padding:"none",style:{width:"fit-content",paddingRight:"0.5rem"},children:"Copy"})]})})};function PAe(e){return ka({tag:"svg",attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{d:"M352 115h90c3.3 0 6-2.7 6-6 0-8.2-3.7-16-10-21.3l-77.1-64.2c-4.9-4.1-14.2-7.4-20.6-7.4-4.1 0-7.4 3.3-7.4 7.4V96c.1 10.5 8.6 19 19.1 19z"}},{tag:"path",attr:{d:"M307 96V16H176c-17.6 0-32 14.4-32 32v336c0 17.6 14.4 32 32 32h240c17.6 0 32-14.4 32-32V141h-96c-24.8 0-45-20.2-45-45z"}},{tag:"path",attr:{d:"M116 412V80H96c-17.6 0-32 14.4-32 32v352c0 17.6 14.4 32 32 32h256c17.6 0 32-14.4 32-32v-20H148c-17.6 0-32-14.4-32-32z"}}]})(e)}const CAe=e=>{const{purpose:t,defect:r,isSelected:i=!1,isChecked:o=!1,onCheckboxChange:s,onClick:a,copyDefect:l,isLoading:c}=e,u=(0,n.useRef)(null);return(0,n.useEffect)((()=>{i&&u.current&&u.current.scrollIntoView({behavior:"smooth",block:"center",inline:"center"})}),[i]),(0,Ae.jsxs)(Wk,{hover:!0,tabIndex:-1,sx:{cursor:"pointer",bgcolor:i?qp:"initial"},onClick:a,ref:u,children:[(0,Ae.jsx)(tk,{padding:"checkbox",children:(0,Ae.jsx)(lj,{disabled:c,color:"primary",checked:o,onClick:e=>e.stopPropagation(),onChange:e=>{null===s||void 0===s||s(e.target.checked)}})}),(0,Ae.jsx)(tk,{padding:"none",children:r.customId}),(0,Ae.jsx)(tk,{padding:"none",children:r.type}),(0,Ae.jsx)(tk,{padding:"none",style:{color:yAe(r.severity),paddingLeft:"1rem"},children:r.severity}),t===xAe.ANALYZE_COMMON&&(0,Ae.jsxs)(Ae.Fragment,{children:[(0,Ae.jsx)(tk,{padding:"none",children:r.deltaT}),(0,Ae.jsx)(tk,{padding:"none",children:r.maxT})]}),t===xAe.ANALYZE_DISCONNECTED&&(0,Ae.jsx)(Ae.Fragment,{children:(0,Ae.jsx)(tk,{padding:"none",style:{paddingLeft:"1rem"},children:r.annotationsCount})}),(0,Ae.jsx)(tk,{padding:"none",style:{textAlign:"center"},children:(0,Ae.jsx)(PAe,{fontSize:"small",onClick:e=>{e.stopPropagation(),null===l||void 0===l||l()}})})]})},AAe=100,kAe=Zo()((()=>({root:{maxHeight:"100%"}}))),jAe=e=>{const{purpose:t,defects:r,geoSortedAnnotations:i,selectedDefectId:o,defectType:s,onDefectClick:a,checkedDefectsIds:l=[],onCheckedDefectsChange:c,copyDefect:u,isLoading:d}=e,{classes:h}=kAe(),[p,f]=(0,n.useState)("asc"),[g,m]=(0,n.useState)("customId"),[y,v]=(0,n.useState)(0),_=(0,n.useMemo)((()=>r.slice().map((e=>{const t=e.annotations.map((e=>{let{annotationRef:t}=e;return t})),n=[];if(i.forEach(((e,r)=>{const{id:i,photoId:o}=e;t.includes("".concat(o,"_").concat(i))&&n.push({...e,index:r})})),0===n.length)return null;const r=n[0];return{...e,maxT:r.thermalStats.max,deltaT:iEe(r),annotationIndex:r.index,annotationsCount:e.annotations.length,customId:0}})).flatMap((e=>e?[e]:[])).sort(((e,t)=>e.annotationIndex>t.annotationIndex?1:-1)).map(((e,t)=>({...e,customId:t+1})))),[r,i]),b=(0,n.useMemo)((()=>{const e=function(e,t){return"desc"===e?(e,n)=>IAe(e,n,t):(e,n)=>-IAe(e,n,t)}(p,g);return _.slice().sort(e)}),[p,g,_]);(0,n.useEffect)((()=>{const e=b.findIndex((e=>{let{id:t}=e;return t===o}));if(e<0)return;const t=Math.floor(e/AAe);v(t)}),[o,b]);const x=(0,n.useMemo)((()=>b.slice().slice(y*AAe,y*AAe+AAe)),[b,y]);return(0,Ae.jsxs)(ws,{container:!0,direction:"column",wrap:"nowrap",className:h.root,children:[(0,Ae.jsx)(ok,{style:{overflowX:"hidden"},children:(0,Ae.jsxs)(BA,{size:"small",children:[(0,Ae.jsx)(EAe,{purpose:t,numSelected:l.length,order:p,orderBy:g,onSelectAllClick:e=>{if(e.target.checked)return null===c||void 0===c?void 0:c(_.map((e=>{let{id:t}=e;return t})));null===c||void 0===c||c([])},onRequestSort:(e,t)=>{f(g===t&&"asc"===p?"desc":"asc"),m(t)},rowCount:_.length}),(0,Ae.jsx)(KA,{children:x.map((e=>{const n=(e=>-1!==l.indexOf(e))(e.id),r=(e=>o===e)(e.id);return(0,Ae.jsx)(CAe,{purpose:t,isChecked:n,isSelected:r,defect:e,onClick:()=>null===a||void 0===a?void 0:a(e.id),onCheckboxChange:t=>((e,t)=>{t?null===c||void 0===c||c([...l,e]):null===c||void 0===c||c([...l].filter((t=>t!==e)))})(e.id,t),copyDefect:()=>null===u||void 0===u?void 0:u(e),isLoading:d},"defect-row-".concat(e.id))}))})]})}),(0,Ae.jsxs)(ws,{item:!0,container:!0,wrap:"nowrap",justifyContent:"space-between",alignItems:"center",paddingLeft:"1rem",children:[(0,Ae.jsx)(vu,{color:"inherit",variant:"subtitle1",children:l.length>0?"".concat(l.length," selected"):"".concat(_.length," ").concat(s?"".concat(s.toLowerCase()," "):"").concat(wq("defect",_.length))}),(0,Ae.jsx)(Nk,{component:"div",count:_.length,rowsPerPageOptions:[AAe],rowsPerPage:AAe,page:y,onPageChange:(e,t)=>{v(t)}})]})]})};function IAe(e,t,n){return t[n]<e[n]?-1:t[n]>e[n]?1:0}const GAe=e=>e.toString().padStart(4,"0"),TAe=e=>{const t=Number(e);return GAe(t%2===0?t:t+1)},MAe=e=>{const t=Number(e);return GAe(t%2===0?t-1:t)},OAe=e=>{const[t,n]=e.split("_");return{photoId:t,annotationId:n}},RAe=Zo()((()=>({root:{height:"100%",overflowX:"auto",backgroundColor:"black",alignItems:"center"},imageItem:{height:"100%",flex:"0 0 auto",aspectRatio:"640/512",margin:"auto"}}))),DAe=e=>{const{classes:t}=RAe(),{inspectionId:r,annotations:i,sortedPhotos:o=[],thermalPhotosUrl:s,deletable:a=!1,withOpenBtn:l=!1,deleteAnnotation:c}=e,u=(0,n.useMemo)((()=>o.flat()),[o]),d=(0,n.useMemo)((()=>[...i].sort(((e,t)=>u.indexOf(TAe(e.photoId))-u.indexOf(TAe(t.photoId)))).reduce(((e,t)=>{var n;const{photoId:r}=t;return e.set(r,[...null!==(n=e.get(r))&&void 0!==n?n:[],t]),e}),new Map)),[u,i]),h=(0,n.useMemo)((()=>Array.from(d,(e=>{let[t,n]=e;return{photoId:t,annotations:n,signedUrl:s.get(t)}}))),[d,s]);return(0,Ae.jsxs)(ws,{container:!0,wrap:"nowrap",className:t.root,children:[0===h.length&&(0,Ae.jsx)(ws,{item:!0,margin:"auto",children:(0,Ae.jsx)(vu,{variant:"h6",children:"Select an annotation or a defect to display thermal photo"})}),h.map(((e,n)=>{let{photoId:i,annotations:o,signedUrl:s}=e;return(0,Ae.jsx)(ws,{item:!0,className:t.imageItem,children:(0,Ae.jsx)(dAe,{noWheelZoom:!0,id:i,inspectionId:r,photoId:i,withOpenBtn:l,onlyFullThermal:!0,annotations:o,thermalImageUrl:s,deleteAnnotation:a?c:void 0})},n)}))]})},NAe=e=>{const{inspectionId:t,priorityPhotosIds:r=[],locked:i=!1,withThermalStats:o=!1}=e,[s,a]=(0,n.useState)(new Map),[l,c]=(0,n.useState)([]),[u,d]=(0,n.useState)([]),[h,p]=(0,n.useState)(!1),f=(0,n.useMemo)((()=>r.filter((e=>!l.includes(e)&&!u.includes(e)))),[r,l,u]),g=e=>{a((t=>{const n=new Map(t);return e.forEach((e=>{const t=n.get(e.photoId);if(!t)return void n.set(e.photoId,e);const r=t.panels,i=e.panels,o=r.map((e=>{const t=i.find((t=>t.id===e.id));return t?{...e,...t}:e}));i.forEach((e=>{o.find((t=>t.id===e.id))||o.push(e)})),n.set(e.photoId,{...t,panels:o})})),n}))},m=(0,n.useCallback)((async e=>{if(0===e.length)return;d((t=>[...t,...e]));const n=await(async(e,t)=>{const n=new URLSearchParams;null===t||void 0===t||t.forEach((e=>n.append("photosIds",e)));const r=await Ey("/inspections/".concat(e,"/solar-ai?").concat(n.toString()),{method:"GET"}),i=await r.json();if(!r.ok){var o;const e=await r.text();throw new Error(null!==(o=null!==e&&void 0!==e?e:r.statusText)&&void 0!==o?o:"[getSolarInspectionAIResults] An error occured")}return CC.array(CC.any()).transform((e=>e.filter((e=>Qde.safeParse(e).success)))).parse(i)})(t,e);g(n);const r=n.map((e=>e.photoId));d((e=>e.filter((e=>!r.includes(e))))),c((e=>[...e,...r]))}),[t]),y=(0,n.useCallback)((async()=>{const e=await(async(e,t)=>{const n=new URLSearchParams;t.withThermalStats&&n.set("withThermalStats","true");const r=await Ey("/inspections/".concat(e,"/solar-ai-annotations?").concat(n.toString()),{method:"GET"});if(!r.ok){var i;const e=await r.text();throw new Error(null!==(i=null!==e&&void 0!==e?e:r.statusText)&&void 0!==i?i:"[getAllSolarInspectionAIAnnotations] An error occured")}const o=await r.json();return CC.array(CC.any()).transform((e=>e.filter((e=>!!Qde.safeParse(e).success&&e.panels.every((e=>"type"in e&&""!==e.type)))))).parse(o)})(t,{withThermalStats:o});g(e)}),[t,o]);(0,n.useEffect)((()=>{i||(f.length>0?m(f):h||0===u.length&&0===f.length&&(p(!0),y()))}),[m,y,i,f,u,h]);const v=(0,n.useCallback)((async(e,t)=>{a((n=>{var r;const i=new Map(n),o=i.get(e);if(!o)return i;const s=null!==(r=null===o||void 0===o?void 0:o.panels)&&void 0!==r?r:[],a=s.find((e=>{let{id:n}=e;return n===t}));if(!a)return i;const l={id:a.id,photoId:a.photoId,coordinates:a.coordinates},c=s.filter((e=>{let{id:n}=e;return n!==t}));return o.panels=[...c,l],i.set(e,o),i}))}),[]),_=(0,n.useMemo)((()=>[...s.values()].flatMap((e=>e.panels))),[s]),{AIAnnotations:b,AIModules:x}=(0,n.useMemo)((()=>_.reduce(((e,t)=>("type"in t&&!t.duplicated?e.AIAnnotations.push(t):e.AIModules.push({id:t.id,photoId:t.photoId,coordinates:t.coordinates,maxCelcius:t.maxCelcius,meanCelcius:t.meanCelcius,minCelcius:t.minCelcius}),e)),{AIAnnotations:[],AIModules:[]})),[_]);return{AIAnnotations:b,AIModules:x,removeAnnotation:v}},LAe=100,VAe=e=>{const t=(0,n.useMemo)((()=>"inspectionId"in e?[e.inspectionId]:e.inspectionIds),[JSON.stringify(e)]),{locked:r=!1,externalUserCode:i}=e,[o,s]=(0,n.useState)(!1),[a,l]=(0,n.useState)(new Map),c=(0,n.useCallback)((async()=>{const e=await Promise.all(t.map((e=>YV(e,i))));l((()=>{const n=new Map;return t.forEach(((t,r)=>{const i=e[r],o=new Map;i.forEach((e=>{o.set(e.photoId,e)})),n.set(t,o)})),n})),s(!0)}),[t,i]);(0,n.useEffect)((()=>{r||c()}),[r,c]);return{isGSDFetched:o,getPhotoGSDData:(0,n.useCallback)(((e,n)=>{var r;let i=n;if(!i){if(1!==t.length)throw new Error("You must provide an inspectionId when using multiple inspections");i=t[0]}return null===(r=a.get(i))||void 0===r?void 0:r.get(e)}),[a,t])}};let FAe=function(e){return e.NEXT_PHOTO="NEXT_PHOTO",e.PREVIOUS_PHOTO="PREVIOUS_PHOTO",e.DRAW_ANNOTATION="DRAW_ANNOTATION",e.ADD_ANNOTATION="ADD_ANNOTATION",e.GRID_ANNOTATION="GRID_ANNOTATION",e.PICKER="PICKER",e.FREEHAND="FREEHAND",e}({});const zAe=Object.freeze({"&":{value:PL.HOTSPOT,type:"defect"},1:{value:PL.HOTSPOT,type:"defect"},"\xe9":{value:PL.DIODE,type:"defect"},2:{value:PL.DIODE,type:"defect"},'"':{value:PL.DISCONNECTED,type:"defect"},3:{value:PL.DISCONNECTED,type:"defect"},r:{value:FAe.DRAW_ANNOTATION,type:"tool"},t:{value:FAe.ADD_ANNOTATION,type:"tool"},g:{value:FAe.GRID_ANNOTATION,type:"tool"},p:{value:FAe.PICKER,type:"tool"},f:{value:FAe.FREEHAND,type:"tool"}}),BAe={[PL.HOTSPOT]:"#c72828",[PL.DIODE]:"#f7e528",[PL.DISCONNECTED]:"#4cc7be"},UAe=e=>{const{inspections:t,getPhotoGSDData:r,getPanelsInfosForInspection:i,annotationsMap:o}=e,s=(0,n.useMemo)((()=>new Map(t.map((e=>[e.id,e])))),[t]),a=(0,n.useMemo)((()=>e.styleFunction?e.styleFunction:e=>{var t;const n=null!==(t=aAe(e.type))&&void 0!==t?t:PL.HOTSPOT,r=BAe[n];return{size:2,stroke:r,fill:nU(r,.3)}}),[e.styleFunction]),l=(0,n.useCallback)(((e,t,n,i)=>{var o,s,a,l;if(!t.position)return[];const c={lat:t.position.lat,lng:t.position.lng},{width:u,height:d}=(e=>{var t;if(!("coordinates"in e))return{width:0,height:0};const{minX:n,maxX:r,minY:i,maxY:o}=(null!==(t=e.coordinates)&&void 0!==t?t:[]).reduce(((e,t,n)=>(n%2===0?(t<e.minX&&(e.minX=t),t>e.maxX&&(e.maxX=t)):(t<e.minY&&(e.minY=t),t>e.maxY&&(e.maxY=t)),e)),{minX:1/0,maxX:-1/0,minY:1/0,maxY:-1/0});return[n,r,i,o].some((e=>Math.abs(e)===1/0))?{width:0,height:0}:{width:100*(r-n),height:100*(o-i)}})(t);if(!t.position)return[];const h="width"in t&&0!==t.width?t.width:u,p="height"in t&&0!==t.height?t.height:d,f=TAe(t.photoId),g=r(f,e),m=null!==(o=null===g||void 0===g?void 0:g.thermalGsd)&&void 0!==o?o:0,y=null!==(s=null===g||void 0===g?void 0:g.imageSize)&&void 0!==s?s:{width:0,height:0},v=null!==(a=null===g||void 0===g?void 0:g.yawDegree)&&void 0!==a?a:0,_=n?UPe(n)+(i?UPe(90):0):UPe(v)+("angle"in t&&null!==(l=t.angle)&&void 0!==l?l:0);return FCe(c,h,p,m,y,_)}),[r]),c=(0,n.useCallback)((e=>{var t,n,r,o;const a={polygonsBearingInDegrees:void 0,arePanelsVertical:void 0,polygonsDimension:void 0},l=s.get(e);if(!l||!i)return a;const c=i(e);return c?(a.arePanelsVertical="vertical"===c.panelOrientation,null!==(t=null===(n=l.annotationsShape)||void 0===n?void 0:n.rectangle)&&void 0!==t&&t&&(a.polygonsDimension={width:c.panelModel.width,height:c.panelModel.length}),null!==(r=null===(o=l.annotationsShape)||void 0===o?void 0:o.bearingAngle)&&void 0!==r&&r&&(a.polygonsBearingInDegrees=c.subAssetBearingDegree),a):a}),[s,i]),u=(0,n.useCallback)(((e,t,n,i,o)=>{var s,a,l;if(!("coordinates"in t))return[];const c=t.position,u=TAe(t.photoId),d=r(u,e),h=null!==(s=null===d||void 0===d?void 0:d.yawDegree)&&void 0!==s?s:0,p={x:t.coordinates[0],y:t.coordinates[1]},f={x:t.coordinates[2],y:t.coordinates[3]},g=w2(e2([p.x,p.y]),e2([f.x,f.y])),m=UPe(g),y=AR([c.lng,c.lat]);let v=null!==(a=null===n||void 0===n?void 0:n.width)&&void 0!==a?a:1e3,_=null!==(l=null===n||void 0===n?void 0:n.height)&&void 0!==l?l:2e3;o&&([v,_]=[_,v]);const b=v/1e3/2,x=_/1e3/2,S=(e=>{const t=[];let n="top-left";for(let r=0;r<4;r++){switch(r){case 0:n="top-left";break;case 1:n="top-right";break;case 2:n="bottom-right";break;case 3:n="bottom-left"}t.push(oO(e,n))}return t})([y[0]-b,y[1]-x,y[0]+b,y[1]+x]);return S.map((e=>BPe(e[0],e[1],y[0],y[1],i?-UPe(i):m-UPe(h)))).map((e=>{const[t,n]=kR(e);return{lat:n,lng:t}}))}),[r]),d=(0,n.useMemo)((()=>Array.from(o,(e=>{var t;let[n,r]=e;const i=s.get(n),o=null!==(t=null===i||void 0===i?void 0:i.offsetAnnotations)&&void 0!==t?t:{x:0,y:0},{polygonsBearingInDegrees:d,arePanelsVertical:h,polygonsDimension:p}=c(n);return r.map((e=>{const t=p?u(n,e,p,d,h):l(n,e,d,h);let r=t;o&&(r=HPe(t,o));const i=a(e);return{id:BCe(e),coords:r,style:i}}))})).flat()),[o,l,c,u,s,a]);return{annotationsPolygons:d}},WAe=e=>{const t=e.coords;return t[0]!==t[t.length-1]&&t.push(t[0]),t2([t.map((e=>[e.lat,e.lng]))])},HAe=["className","id"],qAe=(0,cs.cp)(vu,{name:"MuiDialogTitle",slot:"Root",overridesResolver:(e,t)=>t.root})({padding:"16px 24px",flex:"0 0 auto"}),XAe=n.forwardRef((function(e,t){const r=(0,Oe.c)({props:e,name:"MuiDialogTitle"}),{className:i,id:o}=r,s=(0,Tt.c)(r,HAe),a=r,l=(e=>{const{classes:t}=e;return(0,ls.c)({root:["root"]},Nx,t)})(a),{titleId:c=o}=n.useContext(Hx);return(0,Ae.jsx)(qAe,(0,d.c)({component:"h2",className:(0,ts.c)(l.root,i),ownerState:a,ref:t,variant:"h6",id:c},s))})),YAe=XAe,KAe=e=>{const{inspection:t}=e,[r,i]=(0,n.useState)(!1),[o,s]=(0,n.useState)(!1),a=on(),l=Eo(),c=(0,n.useMemo)((()=>{return t.type===RC.SOLAR?!t.aiStatus&&t.status===OC.INSPECTED||!!t.aiStatus&&(!bB()&&[VC.PENDING,VC.DETECTED,VC.POLYGONS,VC.DONE,VC.PROCESSING].includes(t.aiStatus)):t.type===RC.BLADES&&((null!==(e=t.windAIMode)&&void 0!==e?e:phe.NO_WIND_AI)!==phe.NO_WIND_AI&&(!!t.aiStatus&&[VC.PENDING].includes(t.aiStatus)));var e}),[t]),u=(0,n.useMemo)((()=>!(l&&t.type===RC.SOLAR||!t.aiStatus||bB())&&[VC.REVIEWING,VC.ONGOING].includes(t.aiStatus)),[l,t]),d=(0,n.useCallback)((()=>a.push("/assets/".concat(t.asset.id))),[t,a]),h=async()=>{s(!0);try{await(async e=>{const t=await Ey("/".concat(KL,"/").concat(e,"/decline-ai"),{method:"PATCH"});if(!t.ok){const e=await t.text();throw new Error(null!==e&&void 0!==e?e:"An error occurred")}return t.json()})(t.id),window.location.reload()}catch(e){}finally{s(!1)}};(0,n.useEffect)((()=>{(c||u)&&i(!0)}),[c,u]);const p=(0,n.useCallback)((()=>c?(0,Ae.jsxs)(wp,{display:"flex",width:"100%",justifyContent:Eo()?"space-between":"center",children:[(0,Ae.jsx)(ohe,{cancelAfter:!0,cancelText:"Keep AI mode and go back",validateText:"Decline AI",validateColor:"delete",loading:o,onCancel:d,onValidate:h}),Eo()&&(0,Ae.jsx)(ev,{label:"Skip (only skyvisor)",onClick:()=>i(!1)})]}):u?(0,Ae.jsxs)(wp,{display:"flex",gap:"1rem",textAlign:"center",justifyContent:"center",children:[(0,Ae.jsx)(ev,{label:"Wait and go back",color:"cancel",onClick:d}),Eo()&&(0,Ae.jsx)(ev,{label:"Skip (only skyvisor)",onClick:()=>i(!1)})]}):(0,Ae.jsx)(Ae.Fragment,{})),[c,u,o]),f=(0,n.useMemo)((()=>{if(c){if(t.inspectionDates.uploaded){const e=new Date(t.inspectionDates.uploaded);return e.setDate(e.getDate()+10),"This will be ready before the ".concat(e.toLocaleDateString(),".")}return"This will be ready within 10 days after the upload of all photos."}return u?"This will be ready in the next 4 business days.":""}),[c,u]);return(0,Ae.jsxs)($x,{open:r,children:[(0,Ae.jsx)(YAe,{children:"AI is ongoing"}),(0,Ae.jsxs)(ws,{padding:"1rem",container:!0,direction:"column",wrap:"nowrap",rowGap:"0.5rem",children:[(0,Ae.jsxs)(Ae.Fragment,{children:[(0,Ae.jsx)(ws,{item:!0,children:(0,Ae.jsxs)(vu,{children:[t.inspectionDates.uploaded?"Since the photos were uploaded on ".concat(new Date(t.inspectionDates.uploaded).toLocaleDateString(),", the AI processing is in progress. "):"The auto detection of defects with artificial intelligence is in progress. ",f," Meanwhile, your inspection is locked to prevent duplications."]})}),c&&(0,Ae.jsx)(ws,{item:!0,children:(0,Ae.jsxs)(pM,{severity:"warning",children:["If you want to annotate manually, you can decline the AI mode. This will stop the auto detection of defects. This action is"," ",(0,Ae.jsx)("b",{children:"irreversible"}),"."]})})]}),(0,Ae.jsx)(ws,{item:!0,children:(0,Ae.jsx)(p,{})})]})]})},ZAe=e=>{const{component:t,componentVersion:r,title:i,width:o="sm",children:s}=e,[a,l]=(0,n.useState)(),c=(0,n.useMemo)((()=>!1===a),[a]),u=(0,n.useCallback)((async()=>{const e=await QV(t,r);l(e)}),[t,r]);(0,n.useEffect)((()=>{u()}),[u]);const d=(0,n.useCallback)((()=>{l(!0),(async(e,t)=>{const n=await Ey("/release-note/".concat(e,"/").concat(t),{method:"POST"});if(!n.ok){var r;const e=await n.text();throw new Error(null!==(r=null!==e&&void 0!==e?e:n.statusText)&&void 0!==r?r:"[setReleaseNoteRead] An error occurred")}})(t,r)}),[t,r]);return(0,Ae.jsxs)($x,{open:c,maxWidth:o,children:[i&&(0,Ae.jsx)(YAe,{style:{fontWeight:"bold",color:jp,fontSize:"1.5rem"},children:i}),(0,Ae.jsxs)(ws,{padding:"0 1rem 1rem",container:!0,direction:"column",wrap:"nowrap",rowGap:"1rem",justifyContent:"flex-end",children:[(0,Ae.jsx)(ws,{item:!0,children:s}),(0,Ae.jsx)(ws,{item:!0,container:!0,justifyContent:"end",children:(0,Ae.jsx)(ev,{color:"primary",onClick:d,children:"OK"})})]})]})},$Ae=()=>(0,Ae.jsx)(ZAe,{component:"SolarAnalyze",componentVersion:1,title:"Solar Analyze tool updates",children:(0,Ae.jsxs)(wp,{display:"flex",flexDirection:"column",justifyContent:"center",alignItems:"flex-start",textAlign:"justify",gap:"0.3rem",width:"100%",children:[(0,Ae.jsx)(vu,{children:"We have added new features to help you analyze your solar farms!"}),(0,Ae.jsxs)(vu,{children:["To handle this new tool, we have created a tutorial to help you. Please visit the documentation right"," ",(0,Ae.jsx)("a",{href:"https://skyvisor.notion.site/How-to-use-the-new-Solar-Analyze-page-0c374ca4f8ea4058a2a38dafc92277a5",style:{textDecoration:"none",fontWeight:"bold"},target:"_blank",rel:"noreferrer",children:"here."})]}),(0,Ae.jsxs)(vu,{children:["If you have any questions or feedback, please contact us at"," ",(0,Ae.jsx)("a",{href:"mailto:\r support@skyvisor.eu",style:{textDecoration:"none",fontWeight:"bold"},target:"_blank",rel:"noreferrer",children:"support@skyvisor.eu"})]}),(0,Ae.jsx)(vu,{children:"Thank you for your trust and enjoy the new tool!"})]})}),JAe=e=>{const{inspections:t,externalUserCode:r}=e,[i,o]=(0,n.useState)(!0),[s,a]=(0,n.useState)(),l=(0,n.useCallback)((async()=>{if(i&&t){const n=new Map;for(const i of t)if(i&&(null===i||void 0===i?void 0:i.type)===RC.SOLAR){try{const e=await zV(i.id,r);e&&n.set(i.id,e)}catch(e){a(void 0)}o(!1)}a(n)}}),[t,i,r]);(0,n.useEffect)((()=>{l()}),[l,t,i]);const c=(0,n.useCallback)((e=>null===s||void 0===s?void 0:s.get(e)),[s]);return{panelInfosMap:s,getPanelsInfosForInspection:c}};let QAe=function(e){return e.MONOCRYSTALLINE="Monocrystalline",e.POLYCRYSTALLINE="Polycrystalline",e.THIN_FILM="Thin-film",e.PERC="PERC",e.OTHER="Other",e}({});const eke=e=>{const[t,r]=(0,n.useState)(!1),[i,o]=(0,n.useState)(),s=async e=>{try{r(!0);const t=await(async e=>{const t=await Ey("/inspections/".concat(e,"/defects/defects-list"));if(!t.ok){var n;const e=await t.text();throw new Error(null!==(n=null!==e&&void 0!==e?e:t.statusText)&&void 0!==n?n:"Unknown error")}const r=await t.json();return CC.array(CC.string()).parse(r)})(e);o(t)}catch(t){o([])}finally{r(!1)}};return(0,n.useEffect)((()=>{s(e)}),[e]),{defectsList:i,isLoading:t}},tke=e=>{const{externalUserCode:t}=e,[r,i]=(0,n.useState)(new Map),o=(0,n.useMemo)((()=>"inspectionsIds"in e?e.inspectionsIds:[e.inspectionId]),[e]),s=(0,n.useMemo)((()=>o),[JSON.stringify(o)]);(0,n.useEffect)((()=>{(async()=>{const e=await Promise.all(s.map((e=>$V(e,t)))),n=new Map(s.map(((t,n)=>[t,e[n]])));i(n)})()}),[s,t]);const a=(0,n.useCallback)((e=>r.get(e)),[r]);return{sortedPhotos:(0,n.useMemo)((()=>{if(!("inspectionsIds"in e))return a(e.inspectionId)}),[e,a]),getSortedPhotosPerInspection:a}},nke=Zo()((()=>({root:{background:"white",height:"100%"},imageDisplayer:{width:"100%",aspectRatio:"1/1"},delete:{textAlign:"right",marginRight:"0.5rem",marginTop:"4rem"},title:{width:"100%",textAlign:"center",color:"white",fontSize:16,padding:"0.25rem 0",backgroundColor:"rgba(83, 83, 83, 1)"}}))),rke=e=>{var t;const{classes:r}=nke(),i=m(),o=sn(),{inspectionDoc:s}=e,a=(0,n.useContext)(NEe);if(!a)return(0,Ae.jsx)(Ae.Fragment,{});const l=(0,n.useMemo)((()=>[s]),[s]),{getPanelsInfosForInspection:c}=JAe({inspections:l}),u=(0,n.useMemo)((()=>c(s.id)),[c,s.id]),{fetchStatus:d,solarAnalyzeAnnotationsPanelVisibility:h}=a,p=b(Um),f=b(Wm),g=(0,n.useMemo)((()=>{var e;return(null===u||void 0===u||null===(e=u.panelModel)||void 0===e?void 0:e.technology)===QAe.THIN_FILM}),[u]),y=(0,n.useMemo)((()=>CC.array(CC.any()).transform((e=>e.filter((e=>mAe.safeParse(e).success)))).parse(f)),[f]),v=b($m),[_,x]=(0,n.useState)(!1),[S,w]=(0,n.useState)(),[E,P]=(0,n.useState)({x:0,y:0}),[C,A]=(0,n.useState)(PL.DISCONNECTED),[k,j]=(0,n.useState)(!1),[I,G]=(0,n.useState)(),[T,M]=(0,n.useState)(),[O,R]=(0,n.useState)(!1),D=(0,n.useMemo)((()=>s.id),[s.id]),N=(0,n.useMemo)((()=>[D]),[D]),L=(0,n.useMemo)((()=>s.asset.id),[s]),V=(0,n.useMemo)((()=>s.subAsset.id),[s]),{AIAnnotations:F,removeAnnotation:z}=NAe({inspectionId:D,withThermalStats:!0}),{getThermalPhotoSignedUrl:B}=hAe({inspectionId:s.id}),{getPhotoGSDData:U}=VAe({inspectionIds:N}),{defectsList:W,isLoading:H}=eke(D),q=(0,n.useMemo)((()=>C===PL.DISCONNECTED),[C]),X=(0,n.useMemo)((()=>{if(!W)return[];const e=p.map((e=>{const t=UCe(e);return{...t,type:TU(W,t.type)}})),t=F.map((e=>{var t,n,r;return{...e,thermalStats:{max:null!==(t=e.maxCelcius)&&void 0!==t?t:0,mean:null!==(n=e.meanCelcius)&&void 0!==n?n:0,min:null!==(r=e.minCelcius)&&void 0!==r?r:0},palette:_L.GREYSCALE,note:"",severity:3}}));return CC.array(CC.any()).transform((e=>e.filter((e=>EL.safeParse(e).success)))).parse([...e,...t]).sort(oEe)}),[W,p,F]),[Y,K]=(0,n.useState)([]),[Z,$]=(0,n.useState)([]),J=(0,n.useMemo)((()=>y.map((e=>e.annotations.map((e=>e.annotationRef)))).flat()),[y]),Q=(0,n.useMemo)((()=>X.filter((e=>GU(e.type)===C))),[X,C]),{currentTabAnnotationsInDefects:ee,currentTabAnnotationsNotInDefects:te}=(0,n.useMemo)((()=>Q.reduce(((e,t)=>{const n="".concat(t.photoId,"_").concat(t.id);return J.includes(n)?e.currentTabAnnotationsInDefects.push(t):e.currentTabAnnotationsNotInDefects.push(t),e}),{currentTabAnnotationsInDefects:[],currentTabAnnotationsNotInDefects:[]})),[Q,J]),[ne,re]=(0,n.useState)(),ie=(0,n.useMemo)((()=>Q.find((e=>{let{photoId:t,id:n}=e;return"".concat(t,"_").concat(n)===ne}))),[Q,ne]),[oe,se]=(0,n.useState)(),ae=(0,n.useMemo)((()=>y.find((e=>{let{id:t}=e;return oe===t}))),[oe,y]);(0,n.useEffect)((()=>{IL(D)}),[D]);const[le,ce]=(0,n.useState)([]);(0,n.useEffect)((()=>{const e=[...Y,...[oe,...Z].map((e=>{var t;return null===(t=y.find((t=>{let{id:n}=t;return n===e})))||void 0===t?void 0:t.annotations.map((e=>{let{annotationRef:t}=e;return t}))})).flat()];q||e.push(ne);const t=e.flatMap((e=>e?[e]:[]));ce((e=>e.length===t.length&&e.every(((e,n)=>e===t[n]))?e:t))}),[q,ne,Y,oe,Z,y]);const ue=(0,n.useMemo)((()=>{var e,t;return null===ae||void 0===ae||null===(e=ae.annotations)||void 0===e||null===(t=e[0])||void 0===t?void 0:t.annotationRef}),[ae]),de=(0,n.useMemo)((()=>null!==ue&&void 0!==ue?ue:ne),[ue,ne]),{annotationsCropsMap:he,addAnnotationCrops:pe}=(e=>{const{inspectionIds:t,annotationsFullIds:r,maxAnnotationsAtOnce:i=LAe}=e,[o,s]=(0,n.useState)(new Map),[a,l]=(0,n.useState)(new Map),[c,u]=(0,n.useState)(!1),d=(0,n.useMemo)((()=>[...a.keys()].filter((e=>{var t;return(null!==(t=a.get(e))&&void 0!==t?t:0)>=5}))),[a]),h=(0,n.useMemo)((()=>{const e=[...o.keys()],t=r.flatMap((e=>e?[e]:[])).filter((t=>!d.includes(t)&&!e.includes(t)));return[...new Set(t)]}),[o,d,r]),p=(0,n.useCallback)((async e=>{const n=e.slice(0,i);if(0!==n.length)try{u(!0);const e=(await Promise.all(t.map((e=>JV(e,n))))).reduce(((e,t)=>({...e,...t})),{});s((t=>{const n=new Map(t);return Object.keys(e).forEach((t=>{const[r,i]=e[t];r&&i&&n.set(t,{rgb:r,thermal:i})})),n}));const r=Object.keys(e),i=n.filter((e=>!r.includes(e)));l((e=>{const t=new Map(e);return i.forEach((n=>{var r;t.set(n,(null!==(r=e.get(n))&&void 0!==r?r:0)+1)})),t}))}catch(r){}finally{u(!1)}}),[t]);(0,n.useEffect)((()=>{if(0===h.length)return;if(c)return;const e=setTimeout((()=>{p(h)}),50);return()=>{clearTimeout(e)}}),[c,h,p]),(0,n.useEffect)((()=>{const e=setInterval((()=>{0!==d.length&&p(d)}),5e3);return()=>{clearInterval(e)}}),[d,p]);const f=(0,n.useCallback)(((e,t)=>{s((n=>{const r=new Map(n);return r.set(e,t),r}))}),[]);return{annotationsCropsMap:o,addAnnotationCrops:f}})({inspectionIds:[D],annotationsFullIds:[...q?[]:te.map(BCe),de]}),{sortedPhotos:fe}=tke({inspectionId:D}),ge=(0,n.useMemo)((()=>Q.find((e=>{let{id:t,photoId:n}=e;return de==="".concat(n,"_").concat(t)}))),[Q,de]),[me,ye]=(0,n.useMemo)((()=>{if(!de)return[void 0,void 0];const e=he.get(de);return e?[e.thermal,e.rgb]:[void 0,void 0]}),[de,he]),ve=(0,n.useMemo)((()=>{var e;if(!ge)return;const t=ge.photoId,n=null!==(e=ge.palette)&&void 0!==e?e:_L.GREYSCALE;return B(t,n)}),[B,ge]),_e=(0,n.useCallback)((e=>{K((t=>[...new Set([...t,e])])),re(e)}),[]),be=(0,n.useCallback)((e=>{K((t=>[...t].filter((t=>t!==e))))}),[]),xe=(0,n.useCallback)((e=>{K((t=>t.includes(e)?[...t].filter((t=>t!==e)):[...new Set([...t,e])]))}),[]);(0,n.useEffect)((()=>{ae&&K(ae.annotations.map((e=>{let{annotationRef:t}=e;return t})))}),[ae]),(0,n.useEffect)((()=>{if(!I)return;const e=y.find((e=>{let{id:t}=e;return t===I}));if(!e)return;const t=GU(e.type);A(t),setTimeout((()=>{se(I),G(void 0)}),100)}),[I,y]);const[Se,we]=(0,n.useState)({deltaT:{range:[0,100],values:[0,100]},maxT:{range:[0,100],values:[0,100]},mapArea:void 0}),[Ee,Pe]=(0,n.useMemo)((()=>X.reduce(((e,t)=>(J.includes(BCe(t))?e[0].push(t):e[1].push(t),e)),[[],[]])),[X,J]),Ce=(0,n.useMemo)((()=>y.filter((e=>{var t,n;const r=null===(t=e.annotations)||void 0===t||null===(n=t[0])||void 0===n?void 0:n.annotationRef;return!!r&&ee.map((e=>{let{id:t,photoId:n}=e;return"".concat(n,"_").concat(t)})).includes(r)}))),[y,ee]),ke=(0,n.useMemo)((()=>{const e=new Map;return e.set(D,te),e}),[D,te]),{annotationsPolygons:je}=UAe({inspections:l,annotationsMap:ke,getPhotoGSDData:U,getPanelsInfosForInspection:c}),Ie=(0,n.useMemo)((()=>{const e=new Map;return e.set(D,ee),e}),[D,ee]),{annotationsPolygons:Ge}=UAe({inspections:l,annotationsMap:Ie,getPhotoGSDData:U,getPanelsInfosForInspection:c}),Te=(0,n.useMemo)((()=>{let e=te;const{mapArea:t}=Se;if(t&&t.length>=4){const n=je.filter((e=>{const n=WAe(e);return x5(WAe({id:"tmp-filter-polygon",coords:t}),n)})).map((e=>e.id));e=[...e].filter((e=>n.includes(BCe(e))))}const n=Se.deltaT.values,r=Se.maxT.values;return e.filter((e=>{if(!e.thermalStats)return!0;const t=iEe(e);return t>=n[0]&&t<=n[1]&&e.thermalStats.max>=r[0]&&e.thermalStats.max<=r[1]}))}),[je,te,Se]),[Me,Oe]=(0,n.useMemo)((()=>{const{mapArea:e}=Se;if(!e||e.length<4)return[[],[]];const t=Ge.filter((t=>{const n=WAe(t);return x5(WAe({id:"tmp-filter-polygon",coords:e}),n)})).map((e=>e.id)),n=Ce.filter((e=>e.annotations.map((e=>{let{annotationRef:t}=e;return t})).some((e=>t.includes(e)))));return[n,[...ee].filter((e=>t.includes(BCe(e))))]}),[Se,ee,Ge,Ce]);(0,n.useEffect)((()=>{q&&(Se.mapArea&&Se.mapArea.length>3?(K(Te.map(BCe)),re(Te.length>0?BCe(Te[0]):void 0),0===Te.length&&Me.length>0&&$(Me.map((e=>{let{id:t}=e;return t})))):void 0===Se.mapArea&&(K([]),re(void 0)))}),[q,Se.mapArea]),(0,n.useEffect)((()=>{const e=Re(te),t=De(te);we((n=>({...n,deltaT:{values:e,range:e},maxT:{values:t,range:t}})))}),[te]);const Re=e=>{if(0===e.length)return[0,100];const t=e.map((e=>iEe(e)));return[Math.min(...t),Math.max(...t)]},De=e=>{if(0===e.length)return[0,100];const t=e.map((e=>{var t,n;return null!==(t=null===e||void 0===e||null===(n=e.thermalStats)||void 0===n?void 0:n.max)&&void 0!==t?t:0}));return[Math.min(...t),Math.max(...t)]};(0,n.useEffect)((()=>{if(void 0===ne)return;if(null!==ae&&void 0!==ae&&ae.annotations.map((e=>{let{annotationRef:t}=e;return t})).includes(ne))return;const e=y.find((e=>{let{annotations:t}=e;return t.some((e=>{let{annotationRef:t}=e;return t===ne}))}));if(e)return se(e.id);se(void 0),$([])}),[ne]),(0,n.useEffect)((()=>{if(void 0===ae)return;K([]),re(void 0);const e=GU(ae.type);C!==e&&G(ae.id)}),[ae]);const Ne=(0,n.useMemo)((()=>Pe.reduce(((e,t)=>{const n=GU(t.type);return e[HCe.indexOf(n)]+=1,e}),[0,0,0])),[Pe]),Le=(0,n.useMemo)((()=>y.reduce(((e,t)=>{const n=Ee.find((e=>{var n;return(null===(n=t.annotations[0])||void 0===n?void 0:n.annotationRef)===BCe(e)}));if(!n)return e;const r=GU(n.type);return e[HCe.indexOf(r)]+=1,e}),[0,0,0])),[y,Ee]);(0,n.useEffect)((()=>{if(![...Le,...Ne].every((e=>0===e))&&!k)if(j(!0),o.pathname.includes("defect")){const e=o.pathname.split("/").pop();G(e)}else if(0===Le[0]&&0===Ne[0]){if(0===Le[1]&&0===Ne[1]){if(0===Le[2]&&0===Ne[2])return;return A(HCe[2])}return A(HCe[1])}}),[Ne,Le,k,o.pathname]),(0,n.useEffect)((()=>{void 0===oe&&0!==Z.length&&se(Z[0])}),[Z]),(0,n.useEffect)((()=>{var e,t,n,r;P({x:null!==(e=null===(t=s.offsetAnnotations)||void 0===t?void 0:t.x)&&void 0!==e?e:0,y:null!==(n=null===(r=s.offsetAnnotations)||void 0===r?void 0:r.y)&&void 0!==n?n:0})}),[s]);const Ve=(0,n.useCallback)((0,Qo.debounce)((e=>{(async e=>{await DL(s,"subAsset",e)})(e.target.value)}),300),[]),Fe=async function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"simple";if("simple"===t&&1!==e.length)throw new Error('"simple" mode should only remove 1 annotation');try{if("simple"===t){i(Am(e[0]));const{photoId:t,annotationId:n}=OAe(e[0]);z(t,n)}else x(!0);await rEe(D,e),"multi"===t&&e.forEach((e=>{i(Am(e));const{photoId:t,annotationId:n}=OAe(e);z(t,n)})),re((t=>t&&e.includes(t)?void 0:t))}catch(n){}finally{x(!1),K((t=>t.filter((t=>!e.includes(t)))))}},ze=async(e,t)=>{var n;const r=F.map(BCe),o=[...Te,...Oe].filter((e=>{const t=BCe(e);return!r.includes(t)}));if(Eo()&&Se.mapArea&&Se.mapArea.length>0&&o.length>0)try{const n=await(async(e,t,n)=>{const r=await Ey("/inspections/".concat(e,"/annotations/offset"),{method:"POST",body:JSON.stringify({offset:t,annotations:n})});if(!r.ok){var i;const e=await r.text();throw new Error(null!==(i=null!==e&&void 0!==e?e:r.statusText)&&void 0!==i?i:"[updateSomeAnnotationsOffset] An error occurred")}return await r.json()})(D,{x:0,y:0,[e]:t},o),r=[...p],s=new Map(r.map((e=>[e.fileName,e])));n.forEach((e=>{s.set(BCe(e),e)}));const a=Array.from(s.values());return void i(Mg(a))}catch(s){}if(0===(null!==(n=Se.mapArea)&&void 0!==n?n:[]).length){const n={...E,[e]:t};P(n),Be(n)}},Be=(0,n.useCallback)((0,Qo.debounce)((e=>{ZV(s.id,e),Sy.dispatch(Rm(e))}),500),[]),Ue=(0,n.useMemo)((()=>!!H||!!d&&d.annotationData!==OEe.FETCHED),[H,d]),We=(0,n.useMemo)((()=>!!d&&d.defectData!==OEe.FETCHED),[d]);(0,n.useEffect)((()=>{p.forEach((e=>{let{fileName:t,urls:[n,r]}=e;n&&r&&pe(t,{rgb:n,thermal:r})}))}),[p,pe]),(0,n.useEffect)((()=>{p.forEach((e=>{let{fileName:t,urls:[n,r]}=e;n&&r&&pe(t,{rgb:n,thermal:r})}))}),[p,pe]),(0,n.useEffect)((()=>{if(K([]),we((e=>({...e,mapArea:void 0}))),C===PL.DISCONNECTED)return se(void 0),void re(void 0);if(te.length>0){const e=te[0];re(BCe(e))}else re(void 0),se(void 0)}),[C]);const He=(0,n.useMemo)((()=>{const e="".concat(C," Defects List");return"".concat(e[0].toUpperCase()).concat(e.slice(1).toLowerCase())}),[C]),qe={tab:{current:C,isCurrentTabDisconnected:q,set:A,isDiodeTabDisabled:g},filters:{current:Se,set:we},annotations:{all:X,notInDefects:Pe,inDefects:Ee,currentTab:Q,currentTabNotInDefects:te,currentTabNotInDefectsPolygons:je,currentTabInDefects:ee,currentTabInDefectsPolygons:Ge,filtered:Te,checked:{current:Y,set:K,check:_e,uncheck:be,change:xe},selected:{currentId:ne,current:ie,set:re},crops:he,highlighted:le},defects:{all:y,currentTab:Ce,selected:{currentId:oe,current:ae,set:se},checked:{current:Z,set:$}},images:{getThermalPhotoSignedUrl:B},loaders:{deleteMultiAnnotations:_},mapZoom:{zoomOnAnnotationsFullIds:T,set:M}},Xe=(0,n.useCallback)((e=>we((t=>({...t,mapArea:e})))),[]),Ye=(0,n.useCallback)((e=>{var t,n;se(e);const r=null!==(t=null===(n=y.find((t=>{let{id:n}=t;return n===e})))||void 0===n?void 0:n.annotations.map((e=>{let{annotationRef:t}=e;return t})))&&void 0!==t?t:[];M(r)}),[y]),Ke=()=>(0,Ae.jsx)(SCe,{assetId:L,subAssetId:V,offset:E,onOffsetUpdated:ze,onFilterPolygonChanged:Xe}),Ze=()=>(0,Ae.jsxs)(ws,{container:!0,direction:"column",wrap:"nowrap",height:"100%",children:[(0,Ae.jsx)("div",{className:r.title,children:"Defect Form"}),(0,Ae.jsx)(bAe,{copyDefectData:S,onDefectDataCopied:()=>w(void 0),onLoadingChange:e=>R(e)})]}),$e=()=>{const e=C===PL.DISCONNECTED?xAe.ANALYZE_DISCONNECTED:xAe.ANALYZE_COMMON;return(0,Ae.jsx)(jAe,{purpose:e,defects:Ce,geoSortedAnnotations:ee,defectType:C,checkedDefectsIds:Z,onCheckedDefectsChange:$,selectedDefectId:oe,onDefectClick:Ye,copyDefect:w,isLoading:O})},Je=()=>(0,Ae.jsx)(iE,{fullWidth:!0,color:"primary",label:"Conclusion",variant:"outlined",maxRows:3,multiline:!0,placeholder:"Notes",defaultValue:v.subAsset?v.subAsset:"",inputProps:{maxLength:250,style:{padding:"0.5rem",height:"unset"}},onChange:e=>Ve(e)}),Qe=q?()=>{const e=Q.filter((e=>le.includes(BCe(e)))),t=[...new Set(e.map((e=>{let{photoId:t}=e;return t})))],n=new Map,i=X.flatMap((e=>{let{palette:t}=e;return t?[t]:[]}));for(const r of i){var o;n.set(r,(null!==(o=n.get(r))&&void 0!==o?o:0)+1)}let s=_L.GREYSCALE,a=0;for(const[r,c]of n)c>a&&(a=c,s=r);const l=new Map(t.map((e=>[e,B(e,s)])));return(0,Ae.jsxs)(ws,{item:!0,width:"50%",container:!0,direction:"column",wrap:"nowrap",children:[(0,Ae.jsx)(ws,{item:!0,height:"45%",children:(0,Ae.jsx)(DAe,{withOpenBtn:!0,inspectionId:D,annotations:e,thermalPhotosUrl:l,deletable:void 0===oe,deleteAnnotation:e=>Fe([e]),sortedPhotos:fe})}),(0,Ae.jsxs)(ws,{item:!0,height:0,flex:1,container:!0,wrap:"nowrap",columnGap:"0.25rem",children:[(0,Ae.jsx)(ws,{item:!0,flex:1,children:Ze()}),(0,Ae.jsxs)(ws,{item:!0,flex:1,container:!0,direction:"column",wrap:"nowrap",children:[(0,Ae.jsx)(ws,{item:!0,children:(0,Ae.jsx)("div",{className:r.title,children:He})}),(0,Ae.jsx)(ws,{item:!0,flex:1,height:0,children:$e()}),(0,Ae.jsx)(ws,{item:!0,padding:"0 0.5rem 0.5rem 0",children:Je()})]})]})]})}:()=>(0,Ae.jsxs)(Ae.Fragment,{children:[(0,Ae.jsxs)(ws,{item:!0,height:"100%",flex:1,minWidth:"20rem",maxWidth:"25%",container:!0,direction:"column",wrap:"nowrap",children:[(0,Ae.jsx)(ws,{item:!0,className:r.imageDisplayer,children:(0,Ae.jsx)(dAe,{withOpenBtn:!0,id:ge?BCe(ge):void 0,inspectionId:D,photoId:null===ge||void 0===ge?void 0:ge.photoId,thermalCropUrl:me,rgbCropUrl:ye,thermalImageUrl:ve,annotations:[ge],disabled:void 0===ge,deleteAnnotation:void 0===oe?e=>Fe([e]):void 0})}),(0,Ae.jsx)(ws,{item:!0,flex:1,height:0,children:Ze()})]}),(0,Ae.jsxs)(ws,{item:!0,width:"fit-content",height:"100%",container:!0,direction:"column",wrap:"nowrap",children:[!q&&(0,Ae.jsx)(ws,{item:!0,height:"50%",children:Ke()}),(0,Ae.jsx)(ws,{item:!0,children:(0,Ae.jsx)("div",{className:r.title,children:He})}),(0,Ae.jsx)(ws,{item:!0,flex:1,height:0,children:We?(0,Ae.jsx)($y,{text:"Defects loading\u2026"}):$e()}),(0,Ae.jsx)(ws,{item:!0,padding:"0 0.5rem 0.5rem 0",children:Je()})]})]});return(0,Ae.jsxs)(Ae.Fragment,{children:[(0,Ae.jsx)(wCe,{context:qe,children:(0,Ae.jsxs)(ws,{container:!0,className:r.root,wrap:"nowrap",columnGap:"0.25rem",children:[Ue?(0,Ae.jsx)(wp,{margin:"auto",children:(0,Ae.jsx)($y,{text:"Annotations loading\u2026"})}):(0,Ae.jsxs)(ws,{item:!0,flex:1,height:"100%",container:!0,wrap:"nowrap",direction:"column",rowGap:"1rem",children:[(0,Ae.jsx)(ws,{item:!0,children:(0,Ae.jsx)(qCe,{defectsPerTypeCount:Le,annotationsPerTypeCount:Ne,onMultiDeleteClick:()=>Fe(Y,"multi")})}),!q&&(null===(t=null===h||void 0===h?void 0:h.visible)||void 0===t||t)&&(0,Ae.jsx)(ws,{item:!0,flex:1,height:0,children:(0,Ae.jsx)(VEe,{deleteAnnotation:e=>Fe([BCe(e)]),isLoading:O})}),q&&(0,Ae.jsx)(ws,{item:!0,flex:1,children:Ke()})]}),Qe()]})}),(0,Ae.jsx)(KAe,{inspection:s}),(0,Ae.jsx)($Ae,{})]})},ike=e=>{const[t,r]=(0,n.useState)(!1);if(!e.inspection)return(0,Ae.jsx)(Ae.Fragment,{});const i=on(),o=Eo(),s=(0,n.useMemo)((()=>[RC.BLADES,RC.TOWER,RC.WIND].includes(e.inspection.type)),[e.inspection.type]),a=(0,n.useMemo)((()=>{if(_B())return!1;return Object.values(e.inspection.roles).some((e=>e===fB.EXPERT))&&s&&[OC.UPLOADED,OC.ANNOTATED].includes(e.inspection.status)}),[s,e.inspection]),l=(0,n.useCallback)((()=>i.push("/assets/".concat(e.inspection.asset.id))),[e.inspection,i]);(0,n.useEffect)((()=>{a&&r(!0)}),[a]);const c=(0,n.useCallback)((()=>a?(0,Ae.jsxs)(wp,{textAlign:"center",display:"flex",justifyContent:"center",gap:"1rem",children:[(0,Ae.jsx)(ev,{label:"Wait and go back",color:"cancel",onClick:l}),o&&(0,Ae.jsx)(ev,{label:"Skip (SkyVisor only)",onClick:()=>r(!1)})]}):(0,Ae.jsx)(Ae.Fragment,{})),[a,l,o]);return(0,Ae.jsxs)($x,{open:t,children:[(0,Ae.jsx)(YAe,{children:"SkyVisor Blade Expert Analysis is ongoing"}),(0,Ae.jsxs)(ws,{padding:"1rem",container:!0,direction:"column",wrap:"nowrap",rowGap:"0.5rem",children:[(0,Ae.jsx)(Ae.Fragment,{children:(0,Ae.jsx)(ws,{item:!0,children:(0,Ae.jsx)(vu,{children:"The analyze of your inspection by a dedicated Wind Turbine expert is in progress. This will be ready within 10 days after the upload of all photos. Meanwhile, your inspection is locked."})})}),(0,Ae.jsx)(ws,{item:!0,children:(0,Ae.jsx)(c,{})})]})]})};var oke,ske;function ake(){return ake=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},ake.apply(this,arguments)}function lke(e,t){let{title:r,titleId:i,...o}=e;return n.createElement("svg",ake({xmlns:"http://www.w3.org/2000/svg",height:"18px",viewBox:"0 0 24 24",width:"18px",fill:"#FFFFFF",ref:t,"aria-labelledby":i},o),r?n.createElement("title",{id:i},r):null,oke||(oke=n.createElement("path",{d:"M0 0h24v24H0V0z",fill:"none"})),ske||(ske=n.createElement("path",{d:"M22 9.24l-7.19-.62L12 2 9.19 8.63 2 9.24l5.46 4.73L5.82 21 12 17.27 18.18 21l-1.63-7.03L22 9.24zM12 15.4l-3.76 2.27 1-4.28-3.32-2.88 4.38-.38L12 6.1l1.71 4.04 4.38.38-3.32 2.88 1 4.28L12 15.4z"})))}const cke=n.forwardRef(lke);__webpack_require__.p;var uke,dke;function hke(){return hke=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},hke.apply(this,arguments)}function pke(e,t){let{title:r,titleId:i,...o}=e;return n.createElement("svg",hke({xmlns:"http://www.w3.org/2000/svg",enableBackground:"new 0 0 20 20",height:"20px",viewBox:"0 0 20 20",width:"20px",fill:"#FFFFFF",ref:t,"aria-labelledby":i},o),r?n.createElement("title",{id:i},r):null,uke||(uke=n.createElement("g",null,n.createElement("path",{d:"M0,0h24v24H0V0z",fill:"none"}),n.createElement("path",{d:"M0,0h24v24H0V0z",fill:"none"}))),dke||(dke=n.createElement("g",null,n.createElement("path",{d:"M12,17.27L18.18,21l-1.64-7.03L22,9.24l-7.19-0.61L12,2L9.19,8.63L2,9.24l5.46,4.73L5.82,21L12,17.27z"}))))}const fke=n.forwardRef(pke),gke=(__webpack_require__.p,(0,n.createContext)(null));let mke=function(e){return e.CREATED_BY_AI="created_by_AI",e.ACCEPTED_BY_CLIENT="accepted_by_client",e.ACCEPTED_BY_SV="accepted_by_skyvisor",e.REJECTED_BY_CLIENT="rejected_by_client",e.REJECTED_BY_SV="rejected_by_skyvisor",e.MANUAL_BY_SV="manual_by_skyvisor",e.UPDATED_BY_SV="updated_by_skyvisor",e.TAG="tag",e}({});const yke=CC.nativeEnum(mke);let vke=function(e){return e.LE_EROSION="LE_EROSION",e.TAPE_EROSION="TAPE_EROSION",e.TE_CRACK="TE_CRACK",e.TE_DIRT="TE_DIRT",e.TRACE="TRACE",e.CRACKS="CRACKS",e.MAJOR_CRACK="MAJOR_CRACK",e.PINHOLES="PINHOLES",e.OIL="OIL",e.BROKEN_VG="BROKEN_VG",e.ERODED_VG="ERODED_VG",e.MISSING_ZZTAPE="MISSING_ZZTAPE",e.MISSING_ADDON="MISSING_ADDON",e.MISSING_BOLT="MISSING_BOLT",e.VOID="VOID",e.BULKED_COAT="BULKED_COAT",e.ERODED_TIP="ERODED_TIP",e.LIGHTNING_DAMAGE="LIGHTNING_DAMAGE",e}({});const _ke=CC.object({id:CC.string(),photoId:CC.string(),type:CC.object({ai:CC.nativeEnum(vke),defect:CC.string().optional()}),x:CC.number().min(-50).max(100),y:CC.number().min(-50).max(100),width:CC.number().min(0).max(100),height:CC.number().min(0).max(100),angle:CC.number().min(-Math.PI).max(Math.PI),status:yke.refine((e=>e!==mke.TAG),{message:"Status cannot be TAG for this type of suggestion"}),created:AC.optional(),updated:AC.optional()}),bke=CC.object({id:CC.string(),photoId:CC.string(),status:CC.literal(mke.TAG),created:AC.optional(),updated:AC.optional()}),xke=(CC.discriminatedUnion("status",[_ke,bke]),CC.discriminatedUnion("status",[_ke.omit({id:!0}),bke.omit({id:!0})]),Zo()(((e,t)=>({flagBadge:{backgroundColor:Mp,boxShadow:"inset 0 0 0 1.5px white",zIndex:1},aiBadge:{backgroundColor:"#00A6FF",boxShadow:"inset 0 0 0 1.5px white",left:t?"".concat(36*window.innerWidth/1920,"px"):void 0,color:"white",zIndex:2},favorite:{position:"absolute",top:"0.25rem",left:"0.25rem",zIndex:2},selected:{border:"4px solid #00A6FF"},visited:{opacity:.4,"&:hover":{border:" 2px solid"},border:" 2px solid transparent"},normal:{"&:hover":{border:" 2px solid"},border:" 2px solid transparent"},card:{position:"relative"},overlayBottomLeft:{position:"absolute",bottom:8,left:6,padding:4,color:"white"},overlayBottomRight:{position:"absolute",bottom:8,right:6,padding:4,color:"white",background:"rgb(128,128,128,0.3)"}})))),Ske=e=>{var t;const{windAISuggestions:r=[],flag:i=!1}=e,{classes:o}=xke(i),{areSuggestionsVisible:s}=null!==(t=(0,n.useContext)(gke))&&void 0!==t?t:{areSuggestionsVisible:!1},[a,l]=(0,n.useState)(!1),[c,u]=(0,n.useState)(0),d=m(),h=()=>{"Annotations"===e.caller?d(Zg(e.id)):d($g(e.id))},p=e=>{e.preventDefault(),d($g("")),d(Zg(""))},f=e.selected?o.selected:e.visited?o.visited:o.normal,g=()=>(0,Ae.jsxs)(Ae.Fragment,{children:[(0,Ae.jsx)("img",{alt:"thumbnail",loading:"lazy",draggable:!!e.draggable,className:f,src:e.url,id:e.id,width:"100%",onDragStart:h,onDrop:p,onDragEndCapture:p,onLoad:()=>l(!0),onError:t=>{let{currentTarget:n}=t;0===c&&(n.onerror=null,n.src=e.url,u(c+1))}}),!a&&!c&&(0,Ae.jsx)($y,{})]}),y=()=>(0,Ae.jsxs)("div",{className:o.card,children:[(0,Ae.jsx)(g,{}),e.leftInfo&&(0,Ae.jsx)("div",{className:o.overlayBottomLeft,children:e.leftInfo}),e.rightInfo&&(0,Ae.jsx)("div",{className:o.overlayBottomRight,children:e.rightInfo})]}),v=()=>void 0===e.favorite?(0,Ae.jsx)(Ae.Fragment,{}):e.favorite?(0,Ae.jsx)(fke,{className:o.favorite,onClick:()=>e.toggleFavorite&&e.toggleFavorite(e.id)}):(0,Ae.jsx)(cke,{className:o.favorite,onClick:()=>e.toggleFavorite&&e.toggleFavorite(e.id)}),_=(0,n.useMemo)((()=>{const e=r.length>0,[t,n]=r.reduce(((e,t)=>{let{status:n}=t;switch(n){case mke.CREATED_BY_AI:case mke.MANUAL_BY_SV:case mke.UPDATED_BY_SV:e[0]+=1;break;case mke.ACCEPTED_BY_CLIENT:case mke.ACCEPTED_BY_SV:case mke.REJECTED_BY_CLIENT:case mke.REJECTED_BY_SV:e[1]+=1}return e}),[0,0]);return s?t>0?t:n?"0":e?"":0:t>0||e?"":0}),[s,r]);return(0,Ae.jsx)("div",{id:e.id,style:{position:"relative"},onClick:()=>{e.callbackSelection(e.id)},onDoubleClick:()=>{var t;null===(t=e.handleDoubleClick)||void 0===t||t.call(e,e.id)},children:(0,Ae.jsx)(RCe,{overlap:"circular",classes:{badge:o.flagBadge},anchorOrigin:{vertical:"bottom",horizontal:"left"},badgeContent:i?"":0,children:(0,Ae.jsx)("div",{children:(0,Ae.jsx)(RCe,{overlap:"circular",classes:{badge:o.aiBadge},anchorOrigin:{vertical:"bottom",horizontal:"left"},badgeContent:_,children:(0,Ae.jsx)("div",{children:(0,Ae.jsx)(RCe,{color:"error",overlap:"circular",badgeContent:e.annotationsCount,anchorOrigin:{vertical:"top",horizontal:"right"},children:(0,Ae.jsxs)(Ae.Fragment,{children:[(0,Ae.jsx)(v,{}),e.leftInfo||e.rightInfo?(0,Ae.jsx)(y,{}):(0,Ae.jsx)(g,{})]})})})})})})})},wke=e=>{const t=Zo()((()=>({imagesContainer:{textAlign:"center",position:"relative",width:"100%",height:"100%"},imageZoom:{overflow:"hidden"},images:{margin:"0 auto",paddingTop:4},sectionTitle:{width:"100%",backgroundColor:"rgba(83, 83, 83, 1)",color:"white",height:"1.3rem",padding:2},zoom:{position:"absolute",bottom:6,right:5,color:jp},magnifier:{position:"absolute",bottom:5,left:10,backgroundColor:"white",color:jp},button:{backgroundColor:"white"},thermal:{position:"absolute",left:10,top:10,zIndex:10},settings:{position:"absolute",bottom:10,right:160},icon:{marginRight:7},fullScreen:{position:"absolute",fontSize:"2rem",zIndex:10,left:"20%",backgroundColor:"white",top:5,cursor:"pointer"}}))),{classes:r}=t(),[i,o]=(0,n.useState)("");(0,n.useEffect)((()=>{e.urls&&!e.urls.length&&e.infoCreateUrl&&s(e.infoCreateUrl)}),[e.urls]);const s=async e=>{var t;const n=await mV(e.inspectionId,e.id);null!==n&&void 0!==n&&null!==(t=n.url)&&void 0!==t&&t.length&&o(n.url[0])};return(0,Ae.jsxs)(ws,{container:!0,direction:"column",wrap:"nowrap",className:r.imagesContainer,children:[(0,Ae.jsx)(ws,{item:!0,children:!e.fromMap&&!e.newSolarMode&&!e.hideTitle&&(0,Ae.jsxs)("div",{className:r.sectionTitle,children:[(0,Ae.jsx)("div",{style:{float:"left"},children:e.selectedAnnotation?e.selectedAnnotation.type+" | Severity: "+e.selectedAnnotation.severity:""}),(0,Ae.jsx)("div",{style:{float:"right"},children:(()=>{if(!e.selectedAnnotation)return"";const t=e.selectedAnnotation;if(e.type===RC.BLADES)return t.hubDistance?"".concat(t.blade," - ").concat(t.edge?t.edge:t.side," - ").concat(Math.round(t.hubDistance),"m"):"";if(e.type===RC.TOWER){const e=t.altitude?"Altitude: ".concat(Math.round(t.altitude),"m"):"",n="towerHeading"in t&&null!=t.towerHeading?"Heading: ".concat(Math.round(t.towerHeading),"\xb0"):"",r=e&&n?" | ":"";return"".concat(e).concat(r).concat(n)}return""})()})]})}),(0,Ae.jsx)(ws,{item:!0,flex:1,height:0,children:(0,Ae.jsx)(ZW,{urls:i?[i]:e.urls,type:e.type,fullScreen:e.fullScreen,openPhoto:e.openPhoto,openTitle:e.openTitle,heightMax:e.heightMax,fromMap:e.fromMap,selectedAnnotation:e.selectedAnnotation,download:e.download,noImageMsg:e.noImageMsg,cropped:!0,hideLoad:e.hideLoading,hideZoomReset:e.hideZoomReset,hideSettings:e.hideSettings})})]})},Eke=(Zo()((()=>({delete:{color:"red",cursor:"pointer"}}))),Zo()((()=>({button:{width:200,borderRadius:15,color:"#333B46"},buttonHighlight:{width:200,borderRadius:15,backgroundColor:"white",border:"1px solid #00A6FF","&:hover":{backgroundColor:"white"}},normal:{color:"#333B46"},disabled:{color:"lightgrey"},highlight:{color:"#00A6FF",fontWeight:"bold"}}))));let Pke=function(e){return e.INSPECTED="inspected",e.UPLOADED="uploaded",e.ANNOTATED="annotated",e.ANALYZED="analyzed",e}({});const Cke=e=>{const{currentPage:t}=e,{classes:r}=Eke(),i=(0,n.useMemo)((()=>{const t=new Array(5).fill(!0);let n=1;return(e.status===OC.ANNOTATED||e.status===OC.UPLOADED||e.photoUploaded)&&(n+=e.type===RC.SOLAR?4:3),"analyzed"===e.status&&(n+=4),t.map(((e,t)=>t>=n&&e))}),[e.status,e.type,e.photoUploaded]),o=(n,o,s)=>(0,Ae.jsx)(Sa,{value:n,className:t===n?r.buttonHighlight:r.button,disabled:i[o],onClick:t=>((t,n)=>{if(t.ctrlKey||t.metaKey){const e=window.location.pathname.split("/").filter((e=>e));e.length>1&&window.open("/".concat(e[0],"/").concat(e[1],"/").concat(t.currentTarget.value),"_blank")}else e.setPage(n)})(t,n),children:(0,Ae.jsx)("span",{className:t===n?r.highlight:i[o]?r.disabled:r.normal,children:s})});return(0,Ae.jsxs)(wp,{display:"flex",justifyContent:"space-between",children:[o(Pke.INSPECTED,0,"1. inspect"),o(Pke.UPLOADED,1,"2. annotate"),o(Pke.ANNOTATED,3,"3. analyze"),o(Pke.ANALYZED,4,"4. results")]})},Ake=e=>{const t=m(),r=b(Um),i=b(Zm),[o,s]=(0,n.useState)(!1),a=(0,n.useRef)(null),l=Zo()((()=>({container:{display:"flex",flexDirection:"column",height:"100%",background:"white"},listContainer:{height:0,flex:1,borderBottom:"1px solid #00a6ff",backgroundColor:i?"rgba(0, 166, 255, 0.25)":"white"},containerPhotos:{height:"calc(100% - ".concat(85,"px)"),display:"flex",width:"100%",flexWrap:"wrap",overflowY:"auto",justifyContent:"space-around"},selectedPhoto:{},bladeBadges:{marginRight:15},noAnnotation:{marginTop:20,color:"black"},cropped:{height:"calc(".concat(53,"vh - 55px)")},explanation:{margin:4,padding:2,position:"absolute",left:280,zIndex:100,width:130,height:48,background:"white",border:"1px solid #333B46"},circle:{display:"inline-block",width:16,height:16,borderRadius:"50%",marginRight:5}}))),{classes:c}=l(),u="Blades"===e.inspectionDoc.type?e.annotations.filter((e=>e.urls.length>0)).filter((t=>-1===e.listIdAllDefectsAnnotations.indexOf(t.fileName))).filter((t=>t.blade===e.currentBlade)).sort(((e,t)=>e.hubDistance-t.hubDistance)):e.annotations.filter((e=>e.urls.length>0)).filter((t=>-1===e.listIdAllDefectsAnnotations.indexOf(t.fileName))),d=t=>{var n;return null!==(n=e.inspectionDoc)&&void 0!==n&&n.subAsset.serials&&e.inspectionDoc.subAsset.serials[t]?e.inspectionDoc.subAsset.serials[t]:""},h=t=>{if(t===e.currentBlade)return u.length;let n=[];e.defects.length&&e.defects.forEach((e=>n=n.concat(e.annotations)));const r=n.map((e=>e.annotationRef)),i=e.annotations.filter((e=>!r.includes(e.fileName)&&e.blade===t));return i.length};return(0,Ae.jsxs)("div",{className:c.container,children:[(0,Ae.jsxs)(ws,{container:!0,direction:"column",wrap:"nowrap",rowGap:"0.5rem",className:c.listContainer,ref:a,onDragOver:e=>{e.preventDefault()},onDrop:n=>{n.preventDefault(),e.handleUndoSelectAnnotation(i),t($g(""))},children:[(0,Ae.jsx)(ws,{item:!0,className:"sectionTitle",children:"Annotations"}),(0,Ae.jsxs)(ws,{item:!0,container:!0,gap:"0.5rem",justifyContent:"space-between",marginTop:"0.5rem",paddingX:"0.5rem",paddingBottom:"1rem",children:[(0,Ae.jsx)(ws,{item:!0,width:"fit-content",container:!0,columnGap:"0.5rem",wrap:"nowrap",children:"Blades"===e.inspectionDoc.type&&["A","B","C"].map(((t,n)=>(0,Ae.jsx)(ws,{item:!0,children:(0,Ae.jsx)(cu,{title:d(t),children:(0,Ae.jsx)(RCe,{showZero:!0,badgeContent:h(t),color:"secondary",className:c.bladeBadges,children:(0,Ae.jsx)(Sa,{value:t,onClick:()=>{return n=t,e.handleSetCurrentBlade(n),void e.handleSetCurrentDefect({annotations:[],note:"",type:"",severity:0,rootCause:"",nextStep:"",blade:n,new:!0,id:""});var n},color:"primary",variant:e.currentBlade===t?"contained":"outlined",children:(0,Ae.jsxs)("span",{children:["Blade ",t," "]})})},n)})},n)))}),!!("Blades"!==e.inspectionDoc.type?u.length:h("A")+h("B")+h("C"))&&(0,Ae.jsx)(ws,{item:!0,flex:1,textAlign:"right",children:(0,Ae.jsx)(ev,{label:"Move all to defects",onClick:async()=>{s(!0),e.setCropped(void 0),await(async()=>{const e=Sy.getState().inspectionTool.inspectionDoc;if(e){const t={method:"GET",headers:{"Content-Type":"application/json"}},n=await Ey("/inspections/"+e.id+"/addAllDefectsRemainingUnassignedAnnotations",t);n&&200===n.status&&(await jL(e.id,e.type),await IL(e.id,!0))}})(),s(!1)},trailingIcon:(0,Ae.jsx)(mM,{size:20}),color:"question",loading:o})})]}),(0,Ae.jsxs)(ws,{container:!0,className:c.containerPhotos,spacing:1,children:[false,u.map(((t,n)=>(0,Ae.jsx)(ws,{item:!0,xs:6,md:3,children:(0,Ae.jsx)(Ske,{draggable:!0,id:t.fileName,selected:e.croppedAnnotation&&e.croppedAnnotation.fileName===t.fileName,url:t.urls[0],callbackSelection:t=>{e.setCropped(e.annotations.find((e=>e.fileName===t)))},handleDoubleClick:()=>{e.handleSelectAnnotation(t.fileName,e.currentBlade)},caller:"Annotations",leftInfo:t.hubDistance||0===t.hubDistance?Math.round(t.hubDistance)+"m":"",rightInfo:t.edge?t.edge:t.side?t.side:""})},n))),"Blades"===e.inspectionDoc.type&&!u.length&&(0,Ae.jsx)("div",{className:c.noAnnotation,children:0===r.length||0===r.filter((t=>t.blade===e.currentBlade)).length?(0,Ae.jsx)("span",{children:"No annotation yet"}):(0,Ae.jsx)("span",{children:"All annotations have been processed "})})]})]}),(0,Ae.jsx)("div",{className:c.cropped,children:e.croppedAnnotation&&(0,Ae.jsx)(wke,{urls:e.croppedAnnotation.urls,selectedAnnotation:e.croppedAnnotation,openPhoto:()=>{void 0!==e.croppedAnnotation&&(t(Bg(e.croppedAnnotation.key)),e.changePage(Pke.UPLOADED))},type:e.inspectionDoc.type,fromMap:!1})})]})},kke=e=>{var t,r,i,o;const s=Zo()((()=>{var t,n;return{defectForm:{textAlign:"center",paddingRight:null!==(t=e.padding)&&void 0!==t?t:"0.5rem",paddingLeft:null!==(n=e.padding)&&void 0!==n?n:"0.5rem"},inputLabel:{background:"white",paddingLeft:5,paddingRight:5},entry:{width:"100%"},btn:{display:"flex",justifyContent:"space-around",marginTop:"0.5rem"},input:{marginTop:10,width:"100%",textAlign:"right"},severity:{display:"flex",width:"100%",textAlign:"left",alignItems:"flex-start",justifyContent:"space-between"},container:{display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center",marginBottom:"0.2rem"}}})),{classes:a}=s(),[l,c]=(0,n.useState)(!1),[u,d]=(0,n.useState)({...e.currentDefect});(0,n.useEffect)((()=>{d(e.currentDefect)}),[e.currentDefect]);const h=null!==(t=null===(r=e.currentDefect)||void 0===r?void 0:r.face)&&void 0!==t?t:"LE",p=(t,n)=>{const r="severity"===n?parseInt(t,10):t.target.value.replace(/(\r\n|\n|\r)/gm," ");let i;if("type"===n&&e.inspectionDoc.type===RC.SOLAR){const e=Xq.find((e=>e.type===t.target.value));e&&(i=e.severity)}d((e=>{const t={...e,[n]:r};return i&&(t.severity=i),t}))},f=0===(null===u||void 0===u?void 0:u.annotations.length);return(0,Ae.jsxs)("div",{style:{height:null!==(i=e.height)&&void 0!==i?i:"initial",width:"100%"},children:[!e.hideTitle&&(0,Ae.jsx)("div",{className:"sectionTitle",children:"Defect Form"}),(0,Ae.jsxs)("div",{className:a.defectForm,children:[(0,Ae.jsxs)(yw,{className:a.input,variant:"outlined",children:[(0,Ae.jsx)(dw,{className:a.inputLabel,children:"Type"}),(0,Ae.jsx)(Aq,{onChange:e=>p(e,"type"),type:u.type,disabled:f})]}),(0,Ae.jsxs)("div",{className:a.severity,children:[(0,Ae.jsxs)("div",{className:a.container,children:[(0,Ae.jsx)("p",{children:"Defect Severity"}),(0,Ae.jsx)(kq,{onChange:e=>p(e,"severity"),severity:u.severity,disabled:f,style:{float:"left"}})]}),"Blades"===e.inspectionDoc.type&&(0,Ae.jsxs)("div",{className:a.container,children:[(0,Ae.jsx)(vu,{whiteSpace:"nowrap",children:"Blade Root Distance (m)"}),(0,Ae.jsx)(iE,{value:Ly(null!==(o=u.hubDistance)&&void 0!==o?o:0,1),onChange:e=>p(e,"hubDistance"),disabled:f,size:"small",variant:"outlined",type:"number",inputProps:{step:.1,min:0},style:{width:"5rem"}})]}),"Blades"===e.inspectionDoc.type&&(0,Ae.jsxs)("div",{className:a.container,children:[(0,Ae.jsx)("p",{children:"Blade Face"}),(0,Ae.jsx)(Jw,{onChange:e=>p(e,"face"),value:h,variant:"outlined",disabled:f,size:"small",style:{width:"5rem"},children:["PS","SS","TE","LE"].map(((e,t)=>(0,Ae.jsx)(dh,{value:e,children:e},t)))})]}),"Solar"===e.inspectionDoc.type&&(0,Ae.jsx)("div",{style:{alignSelf:"center"},children:e.getSolarInfos&&!e.multi?e.getSolarInfos():""})]}),[{id:"note",label:"Note"},{id:"rootCause",label:"Root cause"},{id:"nextStep",label:"Next step"}].map(((e,t)=>(0,Ae.jsx)("div",{children:(0,Ae.jsx)(qq,{label:e.label,tag:"defect_"+e.id,class:a.input,multiline:!0,maxRows:1,outlined:!0,value:String(u[e.id]),disabled:f,maxInputs:50,maxCharacters:220,changeValue:t=>{p({target:{value:t}},e.id)}},t)},t))),0!==u.annotations.length&&(0,Ae.jsxs)("div",{className:a.btn,children:[(0,Ae.jsx)(ev,{color:"cancel",label:u.new?"Clear":"Cancel",onClick:()=>{e.handleResetDefect()}}),u.new?(0,Ae.jsx)(ev,{color:"primary",label:e.multi?"Save ".concat(e.multi,"  as defect"):"Save as defect",onClick:async()=>{e.specificSave?e.specificSave(u):(c(!0),"Blades"===e.inspectionDoc.type&&u.blade&&e.handleSetCurrentBlade&&e.handleSetCurrentBlade(u.blade),e.inspectionDoc.type!==RC.SOLAR?await(async e=>{var t,n;await ML(e,!0),Sy.dispatch(Yf(""));const r=Sy.getState(),i=null===(t=r.inspectionTool.inspectionDoc)||void 0===t?void 0:t.id;"uploaded"===(null===(n=r.inspectionTool.inspectionDoc)||void 0===n?void 0:n.status)&&kA(i,OC.ANNOTATED)})(u):await GL([u]),c(!1),e.handleResetDefect())},loading:l||e.loading}):e.checkedDefectsLength&&e.checkedDefectsLength>1?(0,Ae.jsxs)(Ae.Fragment,{children:[e.deleteCheckedDefects&&(0,Ae.jsx)(ev,{color:"delete",label:"Remove ".concat(e.checkedDefectsLength," selected"),onClick:e.deleteCheckedDefects,loading:e.loading}),(0,Ae.jsx)(ev,{color:"primary",label:"Update ".concat(e.checkedDefectsLength," selected"),onClick:()=>{e.specificSave&&e.specificSave(u)},loading:e.loading})]}):(0,Ae.jsxs)(Ae.Fragment,{children:[(0,Ae.jsx)(ev,{color:"delete",label:"Remove Defect",onClick:e.handleDeleteDefect}),(0,Ae.jsx)(ev,{color:"primary",label:u.new?"Save as defect":"Update",onClick:async()=>{c(!0);const t="Blades"===e.inspectionDoc.type&&""===u.face?{...u,face:h}:u;await TL(t),c(!1),e.handleResetDefect()},loading:l})]})]})]})]})},jke=e=>{const t=b(Um),r=b(Km),i=(0,n.useRef)(null),o=m(),[s,a]=(0,n.useState)(""),l=Zo()((()=>({container:{height:"100%",borderLeft:"2px solid #00a6ff",borderRight:"2px solid #00a6ff",background:"white"},DefectList:{height:0,borderBottom:"1px solid #00a6ff",backgroundColor:r?"rgba(0, 166, 255, 0.25)":"white"},containerPhotos:{display:"flex",flexWrap:"wrap",overflowY:"auto"},photo:{margin:"5px"},error:{color:"#FF4500",width:"100%"},help:{display:r?"normal":"none"}}))),{classes:c}=l(),u=t=>{const n=e.currentDefect.annotations.findIndex((e=>e.annotationRef===t));if(-1!==n){const t=JSON.parse(JSON.stringify(e.currentDefect.annotations));!t[n].favorite&&e.currentDefect.annotations.filter((e=>e.favorite)).length>2?(a("The maximum number of favorites managed within the report is 3"),setTimeout((()=>a("")),3e3)):(t[n].favorite=!t[n].favorite,e.handleSetCurrentDefect({...e.currentDefect,annotations:t}))}},d=e=>{if(null!==t&&void 0!==t&&t.length){const n=t.find((t=>t.fileName===e.annotationRef));if(n&&(n.hubDistance||0===n.hubDistance))return Math.round(n.hubDistance)+"m"}return""},h=e=>{if(null!==t&&void 0!==t&&t.length){const n=t.find((t=>t.fileName===e.annotationRef));if(n){return n.edge?n.edge:n.side?n.side:""}}return""};return(0,Ae.jsxs)(ws,{className:c.container,container:!0,direction:"column",wrap:"nowrap",children:[(0,Ae.jsx)(ws,{item:!0,className:"sectionTitle",children:"Defect Editor"}),(0,Ae.jsxs)(ws,{item:!0,flex:1,height:0,className:c.DefectList,ref:i,onDragOver:e=>{e.preventDefault()},onDrop:t=>{t.preventDefault(),e.handleSelectAnnotation(r,e.currentBlade),o(Zg(""))},container:!0,rowGap:"0.5rem",direction:"column",wrap:"nowrap",children:[(0,Ae.jsx)(ws,{item:!0,className:c.help,children:"Drop your annotation here"}),(0,Ae.jsxs)(ws,{item:!0,flex:1,height:0,container:!0,className:c.containerPhotos,children:[s&&(0,Ae.jsx)("div",{className:c.error,children:s}),e.currentDefect.annotations.map(((n,r)=>{var i;return(0,Ae.jsx)(ws,{item:!0,xs:6,md:3,className:c.photo,children:(0,Ae.jsx)(Ske,{id:n.annotationRef,draggable:!0,url:null===(i=t.find((e=>e.fileName===n.annotationRef)))||void 0===i?void 0:i.urls[0],callbackSelection:t=>e.showCropped(t),handleDoubleClick:()=>{e.handleUndoSelectAnnotation(n.annotationRef)},favorite:n.favorite,toggleFavorite:u,caller:"Defects",leftInfo:d(n),rightInfo:h(n)})},r)}))]})]}),(0,Ae.jsx)(ws,{item:!0,paddingBottom:"0.5rem",children:(0,Ae.jsx)(kke,{inspectionDoc:e.inspectionDoc,handleUndoSelectAnnotation:e.handleUndoSelectAnnotation,currentDefect:e.currentDefect,handleResetDefect:e.handleResetDefect,handleDeleteDefect:e.handleDeleteDefect,handleSetCurrentBlade:e.handleSetCurrentBlade})})]})},Ike=Zo()((()=>({selected:{background:jp}}))),Gke=e=>{const{classes:t}=Ike(),n=t=>e.currentDefect.id===t.id,r=(t,n)=>{if("path"===t.target.tagName||"svg"===t.target.tagName||"copyBtn"===t.target.id)return!1;e.handleDefectClick({...n,new:!1})},i=t=>{e.copyDefect({...t,annotations:[],new:!1})},o=e=>Math.round(10*e)/10;return(0,Ae.jsx)("div",{id:"defectsSummary",children:(0,Ae.jsxs)("table",{style:{width:"100%"},children:[(0,Ae.jsx)("thead",{children:(0,Ae.jsxs)("tr",{children:[(0,Ae.jsx)("th",{id:"defectnb",children:"#"}),(0,Ae.jsx)("th",{id:"defecttype",children:"Type"}),"Blades"===e.type&&(0,Ae.jsxs)(Ae.Fragment,{children:[(0,Ae.jsx)("th",{id:"face",children:"Face"}),(0,Ae.jsx)("th",{id:"defgravity",children:"Severity"}),(0,Ae.jsx)("th",{id:"hub",children:"Hub"})]}),"Solar"===e.type&&(0,Ae.jsx)(Ae.Fragment,{children:(0,Ae.jsx)("th",{id:"defgravity",children:"Severity"})}),"Tower"===e.type&&(0,Ae.jsxs)(Ae.Fragment,{children:[(0,Ae.jsx)("th",{id:"defgravity",children:"Severity"}),(0,Ae.jsx)("th",{id:"defaltitude",children:"Altitude"})]}),(0,Ae.jsx)("th",{id:"copy",children:"Copy"})]})}),(0,Ae.jsxs)("tbody",{children:["Blades"===e.type&&e.defects.filter((t=>e.blade===t.blade)).map(((s,a)=>(0,Ae.jsxs)("tr",{id:"summary",className:n(s)?t.selected:"",onClick:e=>r(e,s),children:[(0,Ae.jsx)("td",{id:"defectnb",children:e.blade+(a+1).toString()}),(0,Ae.jsx)("td",{id:"defecttype",children:s.type}),(0,Ae.jsx)("td",{id:"face",children:s.face}),(0,Ae.jsx)("td",{id:"defgravity",children:s.severity}),(0,Ae.jsxs)("td",{id:"hub",children:[s.hubDistance?o(s.hubDistance):0,"m"]}),(0,Ae.jsx)("td",{id:"copy",children:(0,Ae.jsx)(PAe,{onClick:()=>i(s),color:n(s)?"white":jp})})]},a))),"Solar"===e.type&&e.defects.map(((e,t)=>(0,Ae.jsxs)("tr",{id:"summary",onClick:t=>r(t,e),children:[(0,Ae.jsx)("td",{id:"defectnb",children:t+1}),(0,Ae.jsx)("td",{id:"defecttype",children:e.type}),(0,Ae.jsx)("td",{id:"defgravity",children:e.severity}),(0,Ae.jsx)("td",{id:"copy",children:(0,Ae.jsx)(PAe,{onClick:()=>i(e)})})]},t))),"Tower"===e.type&&e.defects.map((e=>e)).sort(((e,t)=>e.altitude>t.altitude?1:e.altitude<t.altitude?-1:e.type>=t.type?1:-1)).map(((e,o)=>{var s;return(0,Ae.jsxs)("tr",{id:"summary",className:n(e)?t.selected:"",onClick:t=>r(t,e),children:[(0,Ae.jsx)("td",{id:"defectnb",children:o+1}),(0,Ae.jsx)("td",{id:"defecttype",children:e.type}),(0,Ae.jsx)("td",{id:"defgravity",children:e.severity}),(0,Ae.jsxs)("td",{id:"defaltitude",children:[Math.round(null!==(s=e.altitude)&&void 0!==s?s:0),"m"]}),(0,Ae.jsx)("td",{id:"copy",children:(0,Ae.jsx)(PAe,{onClick:()=>i(e),color:n(e)?"white":jp})})]},o)}))]})]})})},Tke=Zo()((()=>({container:{flex:1},reviewTop:{border:"1px solid lightgrey",borderRadius:"0px!important"},review:{marginTop:15,width:"100%"}}))),Mke=e=>{const{classes:t}=Tke(),r=b(Wm),i=(0,n.useCallback)((0,Qo.debounce)((t=>{e.handleSetReview(t.target.value)}),500),[]);return(0,Ae.jsx)("div",{className:t.container,children:(0,Ae.jsxs)(Ph,{expanded:e.open,className:t.reviewTop,children:[(0,Ae.jsx)(Th,{expandIcon:e.open?(0,Ae.jsx)("span",{style:{padding:12}}):(0,Ae.jsx)(cp.c,{}),"aria-controls":"panel1a-content",id:"panel1a-header",onClick:()=>{e.informOpen(e.blade)},children:(0,Ae.jsxs)("span",{style:{width:"99%",textAlign:"center"},children:[(0,Ae.jsxs)("div",{style:{float:"left"},children:[e.title," "]}),(0,Ae.jsx)("div",{style:{float:"right"},children:e.nbDefects})]})}),(0,Ae.jsx)(Dh,{style:{padding:"0.5rem"},children:(0,Ae.jsxs)("div",{className:"d-flex flex-column justify-content-center",children:[e.summary&&r.length>0&&(0,Ae.jsx)("div",{className:"mb-2",children:(0,Ae.jsx)(Gke,{defects:e.defects,currentDefect:e.currentDefect,type:e.type,blade:e.blade,handleDefectClick:e.handleDefectClick,copyDefect:e.copyDefect})}),(0,Ae.jsx)(iE,{className:t.review,color:"primary",label:"Notes "+e.title,placeholder:"Notes",variant:"outlined",defaultValue:e.text?e.text:"",maxRows:3,inputProps:{maxLength:250},onChange:e=>i(e),multiline:!0})]})})]})})};function Oke(e){return(0,hs.c)("MuiDialogContentText",e)}(0,ds.c)("MuiDialogContentText",["root"]);const Rke=["children","className"],Dke=(0,cs.cp)(vu,{shouldForwardProp:e=>(0,cs.CU)(e)||"classes"===e,name:"MuiDialogContentText",slot:"Root",overridesResolver:(e,t)=>t.root})({}),Nke=n.forwardRef((function(e,t){const n=(0,Oe.c)({props:e,name:"MuiDialogContentText"}),{className:r}=n,i=(0,Tt.c)(n,Rke),o=(e=>{const{classes:t}=e,n=(0,ls.c)({root:["root"]},Oke,t);return(0,d.c)({},t,n)})(i);return(0,Ae.jsx)(Dke,(0,d.c)({component:"p",variant:"body1",color:"text.secondary",ref:t,ownerState:i,className:(0,ts.c)(o.root,r)},n,{classes:o}))}));var Lke=__webpack_require__(49912);const Vke=Zo()((()=>({itemsContainer:{gap:"0.5rem",margin:"0.5rem",width:"100%",borderRadius:"5px"},metricsText:{textAlign:"center",color:"white",fontWeight:"bold",textShadow:"-1px -1px 0 #000, 1px -1px 0 #000, -1px 1px 0 #000, 1px 1px 0 #000"},gridContainer:{wrap:"nowrap",alignItems:"center",justifyContent:"center",gap:"0.5rem",padding:"0.5rem",borderRadius:"5px"}}))),Fke=e=>{const{open:t,setOpen:n,inspectionDoc:r}=e,{id:i,roles:o}=r,{classes:s}=Vke(),a=b(Wm),l=b($m),c=b(wo),u=m(),d=on(),h=e=>{const{element:t}=e,n=t.slice(-1),i=["A","B","C"].includes(n),o=r.type===RC.TOWER,c=a.filter((e=>e.blade===n)),u=o?"altitude":"hubDistance",d=[...a].sort(((e,t)=>{var n,r;return(null!==(n=e[u])&&void 0!==n?n:0)-(null!==(r=t[u])&&void 0!==r?r:0)})),h=d.filter((e=>e.blade===n&&(!e.rootCause||!e.nextStep||!e.note))).map((e=>e.id)).map((e=>{const t=d.filter((e=>e.blade===n)).findIndex((t=>t.id===e));return"".concat(n).concat(t+1)})),p=d.map(((e,t)=>{if(!e.rootCause||!e.nextStep||!e.note)return t+1})).filter((e=>e));return(0,Ae.jsx)(Ae.Fragment,{children:(0,Ae.jsxs)(ws,{item:!0,container:!0,className:s.itemsContainer,wrap:"nowrap",border:"1px solid lightgrey",children:[(0,Ae.jsx)(ws,{item:!0,xs:4,container:!0,alignItems:"center",justifyContent:"center",borderRadius:"5px 0 0 5px",bgcolor:jp,children:(0,Ae.jsx)(vu,{marginY:"0.5rem",className:s.metricsText,children:i?"BLADE ".concat(n):"TURBINE SUMMARY"})}),(0,Ae.jsxs)(ws,{item:!0,container:!0,xs:4,className:s.gridContainer,flexDirection:"column",children:[(0,Ae.jsxs)(vu,{fontWeight:"bold",children:[i?c.length:a.length," Defect",i&&c.length>1||!i&&a.length>1?"s":""]}),h.length>0&&(0,Ae.jsxs)(Ae.Fragment,{children:[(0,Ae.jsx)(Lke.c,{color:"error"}),(0,Ae.jsxs)(vu,{color:"error",children:["Missing fields :"," ",h.join(", ")]})]})]}),(0,Ae.jsxs)(ws,{item:!0,container:!0,className:s.gridContainer,children:[(0,Ae.jsx)(vu,{color:""===l[t]?"red":"black",children:""===l[t]?"\u26a0 No review, please provide a review before terminating the Analysis":l[t]}),o&&p.length>0&&(0,Ae.jsxs)(Ae.Fragment,{children:[(0,Ae.jsx)(Lke.c,{color:"error"}),(0,Ae.jsxs)(vu,{color:"error",children:["Missing fields : ",p.join(", ")]})]})]})]})})},p=Object.values(l).some((e=>""===e))||a.some((e=>!e.rootCause||!e.nextStep||!e.note));return(0,Ae.jsxs)($x,{open:t,onClose:()=>n(!1),maxWidth:"md",children:[(0,Ae.jsx)(YAe,{children:"Mark as analyzed"}),(0,Ae.jsx)(zx,{children:(0,Ae.jsxs)(Nke,{color:"black",children:["Are you sure do you want to terminate your analyze of the inspection ? Please verify that you have reviewed all the defects and that you are satisfied with the results.",(0,Ae.jsx)(wp,{children:Object.entries(l).sort().map(((e,t)=>(0,Ae.jsx)(h,{element:e[0]},t)))})]})}),(0,Ae.jsx)(zv,{children:(0,Ae.jsx)(ohe,{onCancel:()=>n(!1),onValidate:async()=>{if(!o)throw new Error("Roles not found");if(!c)throw new Error("User profile not found");const e={...o};Object.keys(e).includes(c.uid)&&delete e[c.uid],ZL(i,{status:OC.ANALYZED,analyzedByExpert:{by:{email:c.email,name:"".concat(c.firstName," ").concat(c.lastName)},at:new Date},roles:e}),(async(e,t)=>{const n={method:"PATCH",body:JSON.stringify({notionStatus:t})},r=await Ey("/".concat(KL,"/").concat(e,"/notion-expert-board"),n);if(!r.ok){var i;const e=await r.text();throw new Error(null!==(i=null!==e&&void 0!==e?e:r.statusText)&&void 0!==i?i:"An error occured")}await r.json()})(r.id,DC.ANALYSIS_DONE),u(Yg(OC.ANALYZED)),n(!1),d.push("/")},validateText:"Mark as analyzed",validateDisabled:p})})]})},zke=Zo()((()=>({container:{height:"100%",background:"white"},select:{marginLeft:10},titleLanguage:{color:"black",paddingLeft:5},reviewsContainer:{overflowY:"auto",background:"white"},review:{marginTop:15}}))),Bke=e=>{const[t,r]=(0,n.useState)(!1),i=b($m),{classes:o}=zke(),s=b(Wm),a="Blades"===e.inspectionDoc.type?lX(s):s,l=m(),c=async t=>{await DL(e.inspectionDoc,"subAsset",t)},u=t=>{"Default"!==t&&e.handleSetCurrentBlade(t)};return(0,Ae.jsxs)(Ae.Fragment,{children:[(0,Ae.jsxs)(ws,{container:!0,direction:"column",wrap:"nowrap",className:o.container,children:[(0,Ae.jsx)(ws,{item:!0,children:(0,Ae.jsx)("div",{className:"sectionTitle",children:"Summary and Reviews"})}),(0,Ae.jsxs)(ws,{className:o.reviewsContainer,flex:1,height:0,children:[e.inspectionDoc.type===RC.TOWER&&(0,Ae.jsx)(Mke,{title:"Tower",nbDefects:s.length,type:e.inspectionDoc.type,defects:s,summary:!0,blade:"Default",text:i.subAsset,handleSetReview:c,handleDefectClick:e.handleDefectClick,copyDefect:e.copyDefect,currentDefect:e.currentDefect,open:!0,informOpen:u},"Tower"),e.inspectionDoc.type===RC.BLADES&&(0,Ae.jsxs)(ws,{container:!0,direction:"column",wrap:"nowrap",height:"100%",overflow:"auto",children:[["A","B","C"].map(((t,n)=>(0,Ae.jsx)(ws,{item:!0,children:(0,Ae.jsx)(Mke,{title:"Blade ".concat(t),nbDefects:s.filter((e=>e.blade===t)).length,type:e.inspectionDoc.type,defects:a,summary:!0,blade:t,text:i["blade".concat(t)],handleSetReview:n=>(async(t,n)=>{await DL(e.inspectionDoc,"blade".concat(n),t)})(n,t),handleDefectClick:e.handleDefectClick,copyDefect:e.copyDefect,currentDefect:e.currentDefect,open:t===e.currentBlade,informOpen:u})},n))),(0,Ae.jsx)(ws,{item:!0,children:(0,Ae.jsx)(Mke,{title:"SubAsset",nbDefects:s.length,type:e.inspectionDoc.type,defects:s,summary:!1,blade:"Default",currentDefect:e.currentDefect,text:i.subAsset,handleSetReview:c,handleDefectClick:e.handleDefectClick,copyDefect:e.copyDefect,open:!0,informOpen:u},"Subasset")})]})]}),e.inspectionDoc.status!==OC.ANALYZED&&(0,Ae.jsx)(ws,{item:!0,paddingY:"0.5rem",margin:"auto",children:(0,Ae.jsx)(ev,{label:"Mark as analyzed",onClick:()=>_B()?r(!0):(async()=>{await kA(e.inspectionDoc.id,OC.ANALYZED);const t=e.inspectionDoc.roles;if(Object.values(t).includes(fB.EXPERT)){const n=Object.keys(t).reduce(((e,n)=>(t[n]!==fB.EXPERT&&(e[n]=t[n]),e)),{});await ZL(e.inspectionDoc.id,{roles:n})}l(Yg("analyzed")),e.changePage(Pke.ANALYZED)})()})})]}),(0,Ae.jsx)(Fke,{open:t,setOpen:r,inspectionDoc:e.inspectionDoc})]})},Uke=(0,n.createContext)(null),Wke=()=>{const e=(0,n.useContext)(Uke);if(!e)return(0,Ae.jsx)(Ae.Fragment,{});const{inspectionDoc:t,defects:r,currentBlade:i,handleSetCurrentBlade:o,showCropped:s,handleSelectAnnotation:a,listIdAllDefectsAnnotations:l,annotations:c,croppedAnnotation:u,handleSetCurrentDefect:d,handleResetDefect:h,handleDeleteDefect:p,handleDefectClick:f,copyDefect:g,handleUndoSelectAnnotation:m,currentDefect:y,changePage:v,setCropped:_}=e;return(0,Ae.jsxs)(Ae.Fragment,{children:[(0,Ae.jsx)(ike,{inspection:t}),(0,Ae.jsxs)(ws,{container:!0,wrap:"nowrap",height:"100%",children:[(0,Ae.jsx)(ws,{item:!0,height:"100%",width:"33%",children:(0,Ae.jsx)(Ake,{inspectionDoc:t,changePage:v,annotations:c,defects:r,handleSelectAnnotation:a,listIdAllDefectsAnnotations:l,handleSetCurrentDefect:d,dragStart:()=>null,handleSetCurrentBlade:o,croppedAnnotation:u,setCropped:_,handleUndoSelectAnnotation:m,currentBlade:i,currentDefect:y})}),(0,Ae.jsx)(ws,{item:!0,flex:1,children:(0,Ae.jsx)(jke,{inspectionDoc:t,handleUndoSelectAnnotation:m,currentDefect:y,handleSetCurrentDefect:d,handleResetDefect:h,handleDeleteDefect:p,showCropped:s,handleSelectAnnotation:a,currentBlade:i,handleSetCurrentBlade:o,croppedAnnotation:u})}),(0,Ae.jsx)(ws,{item:!0,height:"100%",minWidth:"33%",maxWidth:"50%",children:(0,Ae.jsx)(Bke,{changePage:v,inspectionDoc:t,handleDefectClick:f,copyDefect:g,currentBlade:i,currentDefect:y,handleSetCurrentBlade:o})})]})]})},Hke=e=>{const{children:t,context:n}=e;return(0,Ae.jsx)(Uke.Provider,{value:n,children:t})},qke=e=>{const{text:t}=e;return(0,Ae.jsx)($x,{open:!0,PaperProps:{style:{backgroundColor:"transparent",boxShadow:"none"}},children:(0,Ae.jsx)(zx,{style:{padding:"1rem",color:"white",overflow:"hidden"},children:(0,Ae.jsx)(oU,{text:t,size:2})})})},Xke=e=>{const t=b(Nm);if(!t)return(0,Ae.jsx)(Ae.Fragment,{});const r=b(Um),i=b(Wm),o=b(Lm),s=(0,n.useContext)(NEe);if(!s)return(0,Ae.jsx)(Ae.Fragment,{});const{fetchStatus:a,fetchAnnotations:l,fetchBuildPhotoDB:c,fetchPhotoData:u,fetchMobileData:d,fetchDefects:h}=s;(0,n.useEffect)((()=>{t.type!==RC.SOLAR&&(h(t.id),l(t.id,t.type,o),c())}),[l,c,h,t.id,t.type,o]),(0,n.useEffect)((()=>{t.type===RC.SOLAR&&(h(t.id),l(t.id,t.type,o),d(t.id),u(t.id))}),[l,h,d,u,t.id,t.type,o]);const[p,f]=(0,n.useState)(void 0),[g,y]=(0,n.useState)({annotations:[],note:"",type:"",severity:0,rootCause:"",nextStep:"",blade:"A",face:"LE",new:!0,id:""}),v=b(Ym),_=m();(0,n.useEffect)((()=>{if(v){const e=i.find((e=>e.id===v));e&&(y({...g,...e}),e.blade&&w(e.blade)),_(Wg(""))}}),[v]),(0,n.useEffect)((()=>{if(t&&"Solar"===t.type&&p&&!p.urls.length){const e=r.find((e=>e.fileName===p.fileName));e&&e.urls.length&&f(e)}}),[r]);const x=b(Wm).filter((e=>e.id!==g.id)).map((e=>e.annotations.map((e=>e.annotationRef)))).flat().concat(g.annotations.map((e=>e.annotationRef))),[S,w]=(0,n.useState)(t&&"Blades"===t.type?(()=>{const e=x?r.filter((e=>-1===x.indexOf(e.fileName))):r;if(null!==e&&void 0!==e&&e.length){const t=e.find((e=>"A"===e.blade));if(!t){const t=e.find((e=>"B"===e.blade));return t?"B":"C"}}return"A"})():"Default"),E=e=>{var n,r;const o={annotationRef:e.fileName,favorite:!1,iaAuto:!!e.iaAuto},s=i.find((t=>t.annotations[0].annotationRef===e.fileName));let a={...g,new:!s,id:s?s.id:"",annotations:[o],note:e.note,type:e.type,severity:e.severity,hubDistance:null!==(n=e.hubDistance)&&void 0!==n?n:0,face:"",rootCause:"",nextStep:"",blade:S,altitude:null!==(r=e.altitude)&&void 0!==r?r:0};t.type===RC.TOWER&&"towerHeading"in e&&(a={...a,towerHeading:e.towerHeading},delete a.hubDistance),y(a)},P=e=>{const n=r.find((t=>t.fileName===e));if(!n)return;if(g.annotations.find((e=>e.annotationRef===n.fileName)))return;const i={annotationRef:n.fileName,favorite:!1};if(t&&"Solar"===t.type)E(n);else{const e=Object.assign([],g.annotations);e.push(i);const r=n.edge?n.edge:"",a=n.side?n.side:"";if(1===e.length){var o,s;let i={...g,new:!0,annotations:e,note:n.note,type:n.type,severity:n.severity,hubDistance:null!==(o=n.hubDistance)&&void 0!==o?o:0,face:r+a,blade:S,altitude:null!==(s=n.altitude)&&void 0!==s?s:0};t.type===RC.TOWER&&"towerHeading"in n&&(i={...i,towerHeading:n.towerHeading},delete i.hubDistance),y(i)}else y({...g,note:n.note===g.note?g.note:g.note+" "+n.note,annotations:e})}},C=()=>{y({annotations:[],hubDistance:0,altitude:0,note:"",type:"",severity:0,rootCause:"",nextStep:"",face:"LE",blade:S,new:!0,id:""}),f(void 0)},A=()=>{t&&(""!==g.id&&RL(t.id,[g.id]),C())},k=(0,n.useCallback)((e=>{const t=r.find((t=>t.fileName===e));t&&f(t)}),[r]),j=(0,n.useCallback)((e=>{t&&k(e.annotations[0].annotationRef);const n={...e,new:!1};y(n)}),[t,k]);if((0,n.useEffect)((()=>{if(!e.defectId)return;const t=i.find((t=>t.id===e.defectId));t&&j(t)}),[i,e.defectId,j]),!t)return(0,Ae.jsx)(Ae.Fragment,{});const I={inspectionDoc:t,currentDefect:g,handleUndoSelectAnnotation:async e=>{const t=g.annotations.filter((t=>t.annotationRef!==e));0===t.length?A():y({...g,annotations:t})},handleResetDefect:C,handleDeleteDefect:A,handleSetCurrentDefect:e=>{y(e)},changePage:e.changePage,copyDefect:e=>{y((t=>{var n,r;return{...t,type:e.type,severity:e.severity,note:e.note,rootCause:null!==(n=e.rootCause)&&void 0!==n?n:t.rootCause,nextStep:null!==(r=e.nextStep)&&void 0!==r?r:t.nextStep,id:"",new:!0,blade:g.blade,annotations:[...g.annotations]}}))}},G={...I,currentBlade:S,handleSetCurrentBlade:e=>{w(e),f(void 0)},showCropped:k,handleSelectAnnotation:e=>{P(e)},listIdAllDefectsAnnotations:x,annotations:r,defects:i,croppedAnnotation:p,handleDefectClick:j,setCropped:e=>f(e)};if(t.type===RC.SOLAR){const e={...I,newMethodAnnotation:E};return(0,Ae.jsx)(rke,{...e})}const T=(0,n.useMemo)((()=>a.photoData!==OEe.FETCHED),[a.photoData]);return(0,Ae.jsxs)(Hke,{context:G,children:[T&&(0,Ae.jsx)(qke,{text:"Loading..."}),(0,Ae.jsx)(Wke,{})]})},Yke=e=>{const[t,r]=(0,n.useState)([]),[i,o]=(0,n.useState)([]),[s,a]=(0,n.useState)(1),l=(0,n.useRef)(null),c=s<1.5?1:s/1.5,u=Zo()((()=>({image:{height:"55vh",paddingRight:20,overflow:Wy()?"scroll":void 0},imagesContainer:{maxHeight:"62vh",overflow:"hidden",padding:Wy()?void 0:"0px 15px 15px 15px",textAlign:"center",position:"relative",margin:5,...wU},zoom:{position:"absolute",top:"0.5rem",right:"1.2rem",color:jp},button:{backgroundColor:"white",color:"black","&:hover":{backgroundColor:"#d5d5d5"}}}))),{classes:d}=u();(0,n.useEffect)((()=>{(async()=>{const e=await MA();o(e)})()}),[]),(0,n.useEffect)((()=>{const t=[];["A","B","C"].forEach(((n,r)=>{let o=0;e.defects.forEach((e=>{e.blade===n&&(p(n,r,i,e,o,t),o++)}))})),r(t)}),[e.defects,i]);const h=()=>qW()("#imageBladeA").height()?qW()("#imageBladeA").height():560,p=(t,n,r,i,o,s)=>{const a=h(),l=qW()("#imageBladeA").width()?qW()("#imageBladeA").width():123,{inspectionDoc:c}=e;if(null!==c&&void 0!==c&&c.subAsset.model&&r&&r[c.subAsset.model]){var u;const e=r[c.subAsset.model].bladeLength;let n=null!==(u=i.hubDistance)&&void 0!==u?u:0;n>e?n=e:n<0&&(n=0);const d=Ly(n*a/e+38-8,1),h=i.face?f(i.face,n/e):0,p=Ly(l*h/4,1);let g=!1;const m=s.findIndex((e=>e.x===p&&e.y===d&&t===e.blade));-1!==m&&(s[m].ids=[s[m].ids[0],o+1],s[m].defectIds.push(i.id),s[m].severity<i.severity&&(s[m].severity=i.severity),g=!0),g||s.push({x:p,y:d,severity:i.severity,ids:[o+1],defectIds:[i.id],blade:t})}},f=(e,t)=>{let n=["TE","SS","LE","PS"].findIndex((t=>t===e));return n=-1===n?0:n,3===n&&t>.4&&(n=2.3),0===n&&t>.4&&(n=.6),2===n&&(n=1.75),n},g=t=>{let n=t.severity>3?"#ff0000":"#ffc107";return e.currentDefect&&t.defectIds.includes(e.currentDefect.id)&&(n=jp),n},m=(t,n)=>(0,Ae.jsx)("div",{style:{top:t.y,left:t.x,fontSize:t.ids.length>1?9/c:10/c,width:22/c,height:22/c,borderRadius:22/(2*c),border:"solid",borderWidth:2/c+"px",background:g(t),borderColor:g(t),opacity:.8,position:"absolute",zIndex:e.currentDefect&&t.defectIds.includes(e.currentDefect.id)?4:3,display:"flex",alignItems:"center",justifyContent:"center",color:t.severity>3?"white":"black",whiteSpace:"nowrap",cursor:"pointer"},onClick:()=>(t=>{const n=e.defects.find((e=>e.id===t[0]));n&&e.select(n)})(t.defectIds),children:t.ids.join("-")},n),y=e=>{const t=null!==l&&void 0!==l&&l.current?l.current:null;t&&("zoomIn"===e?t.zoomIn(.2):"zoomOut"===e?t.zoomOut(.2):t.reset())},v=(e,t,n)=>(0,Ae.jsxs)("div",{style:{height:e,textAlign:"left"},children:[(0,Ae.jsx)("div",{children:t+" m"}),(0,Ae.jsx)("hr",{style:{height:1,width:"1400%",float:"left"}})]},n);return(0,Ae.jsxs)("div",{className:d.imagesContainer,children:[(0,Ae.jsxs)(rW.c,{fullScreen:!0,onZoomChange:e=>a(e),maxZoom:8,ref:l,children:[(()=>{const{inspectionDoc:t}=e;if(null!==t&&void 0!==t&&t.subAsset.model&&i&&i[t.subAsset.model]){const e=i[t.subAsset.model].bladeLength,n=h(),r=5*n/e,o=Math.ceil((e-5/3)/5);return(0,Ae.jsxs)("div",{style:{width:"100%",position:"absolute",paddingTop:30},children:[[...Array(o)].map(((e,t)=>v(t===o-1?n-r*t-5:r,String(5*t),t))),v(0,e,99)]})}return(0,Ae.jsx)("div",{})})(),["A","B","C"].map((n=>{return(0,Ae.jsx)("div",{style:{display:"inline-block",textAlign:"center"},children:(r=n,(0,Ae.jsxs)("div",{style:{position:"relative"},children:[(!e.serialsInfo||!e.serialsInfo[r])&&(0,Ae.jsx)("div",{style:{paddingBottom:15,paddingRight:10,fontSize:"1.6rem"},children:r}),e.serialsInfo&&e.serialsInfo[r]&&(0,Ae.jsxs)(Ae.Fragment,{children:[(0,Ae.jsx)("div",{style:{paddingBottom:0,paddingRight:10,fontSize:"1.2rem"},children:r}),(0,Ae.jsx)("div",{style:{paddingBottom:5,paddingRight:10,fontSize:"0.8rem"},children:e.serialsInfo[r]})]}),(0,Ae.jsx)("img",{id:"imageBlade".concat(r),alt:"the 3 blades",src:dH,className:d.image}),t.filter((e=>e.blade===r)).map(((e,t)=>m(e,t)))]}))},n);var r}))]}),(0,Ae.jsxs)(cW,{id:"theZoom",className:d.zoom,variant:"contained",children:[(0,Ae.jsx)(Sa,{className:d.button,onClick:()=>y("zoomOut"),children:"-"}),(0,Ae.jsx)(Sa,{className:d.button,onClick:()=>y("zoomIn"),children:"+"})]}),(0,Ae.jsx)(kU,{})]})},Kke=(e,t,n)=>{const r=co.firestore();let i=100;const o=e===kC.INSPECTION?"inspections":"campaigns";return r.collection(o).doc(t).onSnapshot((e=>{if(void 0!==e.data()){var t,r,o;const s=null===(t=e.data().report)||void 0===t?void 0:t.state,a=null===(r=e.data())||void 0===r||null===(o=r.report)||void 0===o?void 0:o.progress;a&&Number.isInteger(a)&&a>i&&n(a,s),i=a}}))};function Zke(e){return(0,Ae.jsx)(pM,{elevation:6,variant:"filled",...e})}const $ke=e=>{const[t,r]=(0,n.useState)(!1);return(0,Ae.jsx)("div",{className:"noOutline",children:(0,Ae.jsx)(JT,{open:!0,autoHideDuration:6e3,anchorOrigin:{vertical:"bottom",horizontal:"right"},children:(0,Ae.jsxs)(Zke,{icon:!1,severity:"warning",children:[(0,Ae.jsx)(hpe,{children:"You have not used all the annotations ! Do you still want to finalize this inspection ?"}),(0,Ae.jsx)(Pu,{control:(0,Ae.jsx)(lj,{color:"secondary"}),label:(0,Ae.jsx)(vu,{style:{fontSize:16.5,textAlign:"left"},children:"Create new defects by non-assigned annotations"}),labelPlacement:"end",onChange:()=>r(!t)}),(0,Ae.jsx)(Sa,{variant:"contained",className:"noOutline",color:"secondary",style:{fontSize:15,marginRight:10},onClick:()=>e.close(),children:"Cancel"}),(0,Ae.jsx)(Sa,{variant:"contained",className:"noOutline",color:"primary",style:{fontSize:15},onClick:()=>t?e.unassign():e.confirm(),children:"Confirm"})]})})})};var Jke=function(e){return e.CREATING="creating",e.CREATED="created",e}(Jke||{});const Qke=Zo()((()=>({generateButton:{position:"relative",fontSize:"0.9rem",width:"100%",textAlign:"left",color:"white"},inGenerationButton:{position:"absolute",zIndex:1,top:"50%",left:" 50%",transform:"translate(-50%, -50%)",width:"100%",display:"flex",justifyContent:"center",alignItems:"center",gap:"1rem"},buttonTitle:{paddingLeft:"20%"}}))),eje=e=>{const{classes:t}=Qke(),r=[{label:"All severities",value:1},{label:" Severity >=2",value:2},{label:"Severity >=3",value:3},{label:"Severity >=4",value:4},{label:"Only severity 5",value:5}],[i,o]=(0,n.useState)(!1),[s,a]=(0,n.useState)(0),[l,c]=(0,n.useState)(!1),[u,d]=(0,n.useState)(!1),[h,p]=(0,n.useState)(r[0]),f=m(),{type:g,document:y}=e;(0,n.useEffect)((()=>{Kke(e.type,y.id,(async(t,n)=>{n===Jke.CREATING?(_(t),o(!0)):(o(!1),_(100),e.type===kC.INSPECTION?e.callbackPdfDone(await Py(y.id)):e.callbackPdfDone(await Cy(y.id)))}))}),[]);let v=b(Po);const _=e=>a(e),x=t=>{e.allAnnotManaged?S(t.altKey):(c(!0),d(t.altKey))},S=async function(t){let n=arguments.length>1&&void 0!==arguments[1]&&arguments[1];c(!1),o(!0),a(0),e.startGeneration&&e.startGeneration();const r=v||"french",i=y.id?Kke(e.type,y.id,_):null;let s=!1;e.inspectionType===RC.WIND&&(s=g===kC.INSPECTION?await async function(e,t){let n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=arguments.length>3&&void 0!==arguments[3]&&arguments[3],i=arguments.length>4?arguments[4]:void 0;const o={method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({useUnassignedAnnotations:r,pdfLang:t,minimumSeverity:i})},s=n?"/generateAnonymous":"/generateDefectsPDF";if((await Ey("/inspections/"+e.id+s,o)).ok){if(await kA(e.id,OC.ANALYZED),"analyzed"!==e.status){const t={method:"POST",body:JSON.stringify({lastInspectionDate:e.inspectionDates.inspected}),headers:{"Content-Type":"application/json"}};Ey("/inspections/"+e.asset.id+"/"+e.subAsset.id+"/updateLastInspectionDate",t)}return!0}return!1}(y,r,t,n,h.value):await async function(e,t){let n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=arguments.length>3?arguments[3]:void 0;const i={method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({pdfLang:t,campaignId:e,anonymous:n,minimumSeverity:r})},o=await Ey("/inspections/generateMultipleInspections",i);if(o.ok)return await o.json();return!1}(y.id,r,t,h.value)),e.callbackPdfDone(s),null===i||void 0===i||i(),setTimeout((()=>{_(100),o(!1)}),1e3)};return(0,Ae.jsxs)(ws,{container:!0,children:[(0,Ae.jsxs)(ws,{item:!0,xs:12,children:[i?(0,Ae.jsxs)("div",{className:t.generateButton,children:[(0,Ae.jsxs)("div",{className:t.inGenerationButton,children:[(0,Ae.jsx)("span",{className:t.buttonTitle,children:"".concat(e.title?e.title.toUpperCase():"Generate Report")}),(0,Ae.jsx)(Zy,{style:{color:"white",fontSize:"0.5rem"},size:"2.2rem",value:s,variant:"indeterminate"})]}),(0,Ae.jsx)(Hpe,{variant:"determinate",value:s,sx:{height:"2.3rem",borderRadius:"0.2rem"}})]}):(0,Ae.jsx)(ev,{label:e.title?e.title:"Generate Report",progress:100!==s?s:void 0,loading:i,disabled:i,style:{position:"relative",fontSize:"0.9rem",width:"100%",textAlign:"left"},onClick:x}),(0,Ae.jsx)(ET,{styles:{menuPortal:e=>({...e,zIndex:1300})},value:{label:My(v),value:v},onChange:e=>{return e&&(t=String(e.value),f(yo(t)),void(v=t));var t},menuPlacement:"auto",menuPortalTarget:document.body,options:["french","english","german","spanish"].map((e=>({label:My(e),value:e})))}),(0,Ae.jsx)(ET,{styles:{menuPortal:e=>({...e,zIndex:1300})},value:h,onChange:e=>e&&p(e),menuPlacement:"auto",menuPortalTarget:document.body,options:r})]}),l&&(0,Ae.jsx)($ke,{close:()=>c(!1),confirm:()=>S(u),unassign:()=>S(u,!0)})]})},tje=e=>{const t=(0,n.useRef)(null),[r,i]=(0,n.useState)(!1),[o,s]=(0,n.useState)(!1);return(0,Ae.jsxs)(Ae.Fragment,{children:[(0,Ae.jsx)("span",{ref:t,children:(0,Ae.jsx)(eje,{inspectionType:e.inspectionType,type:e.type,document:e.document,allAnnotManaged:!0,title:"Generate PDF",callbackPdfDone:t=>{t?(i(!0),e.pdfReady(!0)):s(!0)}})}),(0,Ae.jsx)(Qd,{sx:{top:"2rem"},open:r,anchorEl:t.current,onClose:()=>i(!1),children:(0,Ae.jsxs)("div",{style:{margin:15,textAlign:"center"},children:[(0,Ae.jsx)("div",{style:{marginBottom:15},children:"The pdf has been generated, do you want to download the file ?"}),(0,Ae.jsx)(ev,{label:"Cancel",color:"cancel",onClick:()=>i(!1),style:{marginRight:20}}),(0,Ae.jsx)(ev,{label:"Download",onClick:async()=>{switch(i(!1),e.type){case kC.INSPECTION:Fy(e.document.id);break;case kC.CAMPAIGN:zy(e.document.id);break;default:throw new Error("Cannot download pdf for type ".concat(e.type))}}})]})}),(0,Ae.jsx)(Qd,{open:o,anchorEl:t.current,onClose:()=>s(!1),children:(0,Ae.jsxs)("div",{style:{margin:15,textAlign:"center"},children:[(0,Ae.jsx)("div",{style:{marginBottom:15},children:"An error occured"}),(0,Ae.jsx)(ev,{label:"OK",color:"cancel",onClick:()=>s(!1),style:{marginRight:20}})]})})]})},nje={menu:e=>({...e,background:"white",zIndex:2})},rje=e=>(0,Ae.jsxs)("div",{className:e.classes.formControl,children:[(0,Ae.jsx)(dw,{className:e.classes.entry,children:"Asset"}),(0,Ae.jsx)(ET,{id:"select-asset",value:(()=>{const t=e.assets.find((t=>t.id===e.inspection.assetId));return t?{value:t.id,label:t.name}:null})(),styles:nje,options:(e=>e.map((e=>({value:e.id,label:e.name+("inactive"===e.status?" \u2014 inactive":""),isDisabled:"inactive"===e.status}))))(e.assets),onChange:t=>e.handleChangeAsset(t)})]}),ije=e=>{var t;return(0,Ae.jsx)("div",{children:(0,Ae.jsx)(Ve,{dateAdapter:$e,children:(0,Ae.jsx)(aS,{inputFormat:"DD/MM/YYYY",closeOnSelect:!1,value:null!==(t=e.inspection.inspectionDate)&&void 0!==t?t:Date.now(),onChange:t=>e.handleDateChange(t?new Date(t):new Date),label:"Inspection date",renderInput:e=>(0,Ae.jsx)(iE,{fullWidth:!0,...e})})})})},oje={rope_access:"Rope access",ground_camera:"Ground camera",platform_access:"Platform access",rover:"Rover",drone:"Drone based",lps:"LPS",other:"Other"},sje=$o((e=>(0,Ae.jsx)(Qd,{elevation:0,anchorOrigin:{vertical:"top",horizontal:"right"},transformOrigin:{vertical:"top",horizontal:"left"},...e})),{paper:{border:"1px solid #d3d4d5"}}),aje=e=>{const[t,r]=(0,n.useState)(!1),[i,o]=(0,n.useState)(null);return(0,Ae.jsxs)(Ae.Fragment,{children:[(0,Ae.jsxs)(cW,{fullWidth:!0,color:"primary",children:[(0,Ae.jsx)(Sa,{variant:e.inspection.isExternal?"outlined":"contained",onClick:()=>e.handleChangeExternal(!1),children:"SkyVisor"}),(0,Ae.jsx)(Sa,{variant:e.inspection.isExternal?"contained":"outlined",onClick:e=>{o(e.currentTarget),r(!0)},disabled:"Tower"===e.inspection.type,children:(0,Ae.jsxs)(ws,{container:!0,wrap:"nowrap",columnGap:"0.25rem",justifyContent:"center",children:[(0,Ae.jsx)(vu,{sx:{textTransform:"capitalize"},children:e.inspection.externalMethod?oje[e.inspection.externalMethod]:"External "}),(0,Ae.jsx)(vu,{children:">"})]})})]}),(0,Ae.jsx)(sje,{anchorEl:i,keepMounted:!0,open:t&&!e.notAllowed,onClose:()=>{r(!1),o(null)},children:Object.keys(oje).map(((t,n)=>(0,Ae.jsx)(dh,{onClick:()=>{r(!1),e.setExternalMethod(t)},children:oje[t]},n)))}),t&&e.notAllowed&&(0,Ae.jsx)(Ud,{open:t,onClose:()=>r(!1),anchorEl:i,anchorOrigin:{vertical:"top",horizontal:"center"},transformOrigin:{vertical:"bottom",horizontal:"center"},children:(0,Ae.jsx)(jU,{})})]})},lje=Zo()((()=>({titleButton:{color:"rgba(0, 0, 0, 0.54)",fontSize:"0.9rem",paddingTop:5},formControl:{minWidth:120}}))),cje=[{assetType:HB.WIND,type:RC.BLADES},{assetType:HB.WIND,type:RC.TOWER}],uje=e=>{const{classes:t}=lje(),r=(0,n.useMemo)((()=>cje.filter((t=>{let{assetType:n}=t;return n===e.assetType}))),[e.assetType]);return(0,Ae.jsxs)(Ae.Fragment,{children:[(0,Ae.jsx)("div",{className:t.titleButton,children:"Type"}),(0,Ae.jsx)(cW,{fullWidth:!0,color:"primary",className:t.formControl,children:r.map((t=>{let{type:n}=t;return(0,Ae.jsx)(Sa,{variant:n===e.value?"contained":"outlined",onClick:()=>e.onChange(n),children:n},"inspection-type-".concat(n))}))})]})};var dje,hje,pje,fje,gje;function mje(){return mje=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},mje.apply(this,arguments)}function yje(e,t){let{title:r,titleId:i,...o}=e;return n.createElement("svg",mje({width:41,height:44,viewBox:"0 0 41 44",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:t,"aria-labelledby":i},o),r?n.createElement("title",{id:i},r):null,dje||(dje=n.createElement("path",{d:"M26.9799 7.60214L22.4571 1.16466C22.0589 0.597819 21.2189 0.59782 20.8206 1.16466L16.2855 7.61986C16.0752 7.91912 15.7184 8.07973 15.355 8.03867L7.12044 7.10846C6.42882 7.03033 5.87092 7.66504 6.03711 8.34092L7.81168 15.5577C7.90876 15.9524 7.75717 16.3667 7.42822 16.6056L1.11421 21.1909C0.564354 21.5902 0.564353 22.4098 1.11421 22.8091L7.42822 27.3944C7.75717 27.6333 7.90876 28.0476 7.81168 28.4423L6.03711 35.6591C5.87092 36.335 6.42883 36.9697 7.12044 36.8915L15.355 35.9613C15.7184 35.9203 16.0752 36.0809 16.2855 36.3801L20.8206 42.8353C21.2189 43.4022 22.0589 43.4022 22.4571 42.8353L26.9869 36.3879C27.2 36.0845 27.5634 35.924 27.9312 35.9707L34.9995 36.869C35.6958 36.9575 36.2642 36.3198 36.0966 35.6382L34.3146 28.3909C34.2239 28.0224 34.3497 27.6344 34.6392 27.3891L40.0995 22.763C40.5709 22.3636 40.5709 21.6364 40.0995 21.237L34.5787 16.5596C34.3215 16.3417 34.1914 16.0091 34.2326 15.6746L35.1457 8.24726C35.2262 7.59268 34.6621 7.04082 34.0095 7.13561L27.9418 8.01688C27.5686 8.07109 27.1967 7.91072 26.9799 7.60214Z",fill:"#EEC55D",stroke:"#EEC55D",strokeWidth:.5})),hje||(hje=n.createElement("circle",{cx:21,cy:22,r:10,stroke:"white",strokeWidth:2})),pje||(pje=n.createElement("g",{filter:"url(#filter0_d_1129_28107)"},n.createElement("path",{d:"M14.0063 33.8027C10.5811 35.428 6.84436 31.5354 8.6094 28.1794C10.3744 24.8235 12.901 25.7225 13.7483 25.7404C14.5955 25.7582 23.2649 16.6067 23.697 16.192C24.1291 15.7773 22.0534 13.6146 25.0812 10.7086C26.96 8.90542 28.4724 9.0536 29.3497 9.42579C29.8582 9.64151 29.8625 10.2747 29.4639 10.6572L27.59 12.4557C27.2643 12.7683 27.6457 13.8188 27.8533 14.3171C27.9265 14.4928 28.0553 14.6375 28.2196 14.7336C28.7879 15.0658 30.1561 15.8098 30.496 15.4836L32.3696 13.6854C32.7681 13.303 33.4005 13.3332 33.5953 13.85C33.9313 14.7417 34.0176 16.2587 32.1387 18.062C29.1108 20.968 27.0351 18.8052 26.603 19.2199C26.171 19.6346 16.6712 27.921 16.6543 28.7683C16.6373 29.6155 17.4314 32.1774 14.0063 33.8027Z",fill:"#242426"}),n.createElement("path",{d:"M14.0063 33.8027C10.5811 35.428 6.84436 31.5354 8.6094 28.1794C10.3744 24.8235 12.901 25.7225 13.7483 25.7404C14.5955 25.7582 23.2649 16.6067 23.697 16.192C24.1291 15.7773 22.0534 13.6146 25.0812 10.7086C26.96 8.90542 28.4724 9.0536 29.3497 9.42579C29.8582 9.64151 29.8625 10.2747 29.4639 10.6572L27.59 12.4557C27.2643 12.7683 27.6457 13.8188 27.8533 14.3171C27.9265 14.4928 28.0553 14.6375 28.2196 14.7336C28.7879 15.0658 30.1561 15.8098 30.496 15.4836L32.3696 13.6854C32.7681 13.303 33.4005 13.3332 33.5953 13.85C33.9313 14.7417 34.0176 16.2587 32.1387 18.062C29.1108 20.968 27.0351 18.8052 26.603 19.2199C26.171 19.6346 16.6712 27.921 16.6543 28.7683C16.6373 29.6155 17.4314 32.1774 14.0063 33.8027Z",stroke:"black",strokeWidth:.5}))),fje||(fje=n.createElement("line",{x1:11.5274,y1:31.5546,x2:15.084,y2:27.8272,stroke:"black",strokeWidth:.5})),gje||(gje=n.createElement("defs",null,n.createElement("filter",{id:"filter0_d_1129_28107",x:3.90674,y:8.94135,width:34.1282,height:33.4929,filterUnits:"userSpaceOnUse",colorInterpolationFilters:"sRGB"},n.createElement("feFlood",{floodOpacity:0,result:"BackgroundImageFix"}),n.createElement("feColorMatrix",{in:"SourceAlpha",type:"matrix",values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0",result:"hardAlpha"}),n.createElement("feOffset",{dy:4}),n.createElement("feGaussianBlur",{stdDeviation:2}),n.createElement("feComposite",{in2:"hardAlpha",operator:"out"}),n.createElement("feColorMatrix",{type:"matrix",values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.25 0"}),n.createElement("feBlend",{mode:"normal",in2:"BackgroundImageFix",result:"effect1_dropShadow_1129_28107"}),n.createElement("feBlend",{mode:"normal",in:"SourceGraphic",in2:"effect1_dropShadow_1129_28107",result:"shape"})))))}const vje=n.forwardRef(yje);__webpack_require__.p;let _je=function(e){return e.SOLAR="solar",e.WIND="wind",e}({}),bje=function(e){return e.NORTH="NORTH",e.SOUTH="SOUTH",e.WEST="WEST",e.EAST="EAST",e}({});const xje=e=>{const t=(0,n.useCallback)((()=>{var t;if(!e.subAsset.type)return(0,Ae.jsx)(Ae.Fragment,{});if(e.subAsset.type===_je.WIND)return(0,Ae.jsx)(sp,{size:18,color:jp});const n=e.subAsset;if(!rpe(n))return(0,Ae.jsx)(Ae.Fragment,{});return null!==(t=n.isConstruction)&&void 0!==t&&t?(0,Ae.jsx)(vje,{width:18,height:18}):(0,Ae.jsx)(Qh,{size:18,color:Hp})}),[e.subAsset]);return(0,Ae.jsx)(t,{})},Sje=function(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];e||(e=new Date);const n=e.toLocaleString("en",{month:"long"}),r=n.charAt(0).toUpperCase()+n.slice(1);return"".concat(t?"Construction ":"").concat(r," ").concat(e.getFullYear())},wje=Zo()((()=>({root:{borderRadius:10,backgroundColor:"white",width:"auto",padding:"1rem 0.5rem",flexDirection:"column",flexWrap:"nowrap"},formInputContainer:{flex:2,minWidth:"16rem",flexDirection:"column",flexWrap:"nowrap"},subAssetsContainer:{flex:3,minWidth:"21rem",maxHeight:Wy()?"initial":"45vh",overflowY:"auto",textAlign:"center"},methodLabel:{color:"rgba(0, 0, 0, 0.54)",fontSize:"0.9rem",paddingTop:5},formControlCheck:{color:"black"},bottomButton:{textAlign:"right"},row:{"&:hover":{backgroundColor:"#f6f6f6"}},columnCheck:{width:"10%",padding:2},stdColumn:{width:"20%",padding:5,textAlign:"center"},headerColumn:{fontWeight:"bold"}}))),Eje=e=>{const{onInspectionChange:t,onSelectedSubAssetsChange:r}=e,i={assetId:"",assetType:HB.WIND,subAssets:[],type:RC.BLADES,inspectionDate:new Date,notes:"",isExternal:!1,externalMethod:"",campaignName:Sje()},{classes:o}=wje(),s=new URLSearchParams(window.location.search),a=s.get("assetId"),l=s.get("subAssetId"),c=b(jf).slice().sort(((e,t)=>e.name>t.name?1:-1)),[u,d]=(0,n.useState)([]),[h,p]=(0,n.useState)(i),[f,g]=(0,n.useState)(!1),[m,y]=(0,n.useState)(!1),[v,_]=(0,n.useState)(""),[x,S]=(0,n.useState)(!1),[w,E]=(0,n.useState)(!0),[P,C]=(0,n.useState)(!1),A=on(),k=b(gg),[j,I]=(0,n.useState)([]);(0,n.useEffect)((()=>{null===t||void 0===t||t(h)}),[h,t]),(0,n.useEffect)((()=>{(async()=>{await IT("wind")})()}),[]),(0,n.useEffect)((()=>{a&&c.length&&!h.assetId&&M({value:a})}),[a,c]),(0,n.useEffect)((()=>{u.length&&l&&!P&&(R(l),C(!0))}),[u]),(0,n.useEffect)((()=>{if(e.nextInfo&&c.length&&""===h.assetId){const{assetId:t,type:n,isExternal:r,externalMethod:i,previousDate:o}=e.nextInfo;let s=new Date;if(o){const e=new Date(o);s=new Date(e.setMonth(e.getMonth()+6));const t=new Date;s.getTime()<t.getTime()&&(s=t)}const a={...h,assetId:t,assetType:[RC.BLADES,RC.TOWER].includes(n)?HB.WIND:HB.SOLAR,type:n,inspectionDate:s,isExternal:null!==r&&void 0!==r&&r,externalMethod:null!==i&&void 0!==i?i:""};p(a),M({value:t},a)}}),[e.nextInfo,c]);const G=(0,n.useMemo)((()=>u.filter((e=>e.selected))),[u]);(0,n.useEffect)((()=>{null===r||void 0===r||r(G)}),[G,r]);const T=(e,t)=>e===HB.WIND?RC.BLADES:t?RC.SOLAR_CONSTRUCTION:RC.SOLAR,M=async(t,n)=>{var r;const i=null!==n&&void 0!==n?n:h,o=t.value,s=null===(r=c.find((e=>e.id===o)))||void 0===r?void 0:r.type;if(!s)return;const a=T(s,O);p({...i,assetId:o,assetType:s,type:a}),d([]),E(!0),y(!0);const l=await(async e=>{const t=await Ey("/assets/"+e+"/getSubAssets",{method:"GET"});if(t){const e=await t.json();return DT(e)}return[]})(t.value);let u=l.map((t=>{var n,r,i,o,a,l,c,u,d,h,p,f,g,m;const y=null!==(n=null!==(r=null!==(i=t.lat)&&void 0!==i?i:null===(o=t.area)||void 0===o||null===(a=o[0])||void 0===a?void 0:a._latitude)&&void 0!==r?r:null===(l=t.location)||void 0===l?void 0:l._latitude)&&void 0!==n?n:0,v=null!==(c=null!==(u=null!==(d=t.lon)&&void 0!==d?d:null===(h=t.area)||void 0===h||null===(p=h[0])||void 0===p?void 0:p._longitude)&&void 0!==u?u:null===(f=t.location)||void 0===f?void 0:f._longitude)&&void 0!==c?c:0;return{id:t.id,model:t.model,name:t.name,selected:null===(g=e.nextInfo)||void 0===g||!g.subassetId||e.nextInfo.subassetId===t.id,type:s,isConstruction:null!==(m=rpe(t)&&t.isConstruction)&&void 0!==m&&m,lat:y,lon:v}}));_(""),u=Xhe(u,"asc","name"),d(u),g(!0),y(!1),I(k.filter((e=>e.assetId===o)))},O=(0,n.useMemo)((()=>{if(0===u.length)return!1;const e=u.filter((e=>{let{selected:t}=e;return t}));return 0!==e.length&&e.every((e=>e.isConstruction))}),[u]);(0,n.useEffect)((()=>{const e=Sje(h.inspectionDate,O),t=T(h.assetType,O);p({...h,type:t,campaignName:e})}),[O,h.assetType]);const R=e=>{const t=u.map((t=>(t.id===e&&(t.selected=!t.selected),t))),n=!u.some((e=>{let{selected:t}=e;return!1===t}));E(n),_(""),d(t)},D=e=>{if(j.length){const t=j.filter((t=>t.subAssetId===e.id)),n=(e=>{if(e){const t=e.filter((e=>"analyzed"===e.status));if(t.length){const e=0;let n=0;return t.forEach(((t,r)=>{Ty(t.plannedDate)>e&&(n=r)})),t[n]}}return null})(t);return n}return null},N=e=>{const t=D(e);if(t){if(t.plannedDate){const e=(new Date).getTime(),n=new Date(t.plannedDate).getTime(),r=Math.abs(e-n),i=Math.floor(r/2592e6);return"".concat(i," months")}return Iy(t.plannedDate)}return"not inspected"},L=e=>{const t=D(e);return t?t.defectsCount:""};return(0,Ae.jsxs)(ws,{container:!0,className:o.root,rowGap:"0.5rem",children:[(0,Ae.jsxs)(ws,{item:!0,container:!0,columnGap:"2rem",rowGap:"1rem",children:[(0,Ae.jsxs)(ws,{item:!0,container:!0,className:o.formInputContainer,children:[(0,Ae.jsx)(rje,{classes:o,assets:c,inspection:h,handleChangeAsset:M}),""!==h.assetId&&(0,Ae.jsxs)(Ae.Fragment,{children:[h.assetType===HB.WIND&&(0,Ae.jsxs)(Ae.Fragment,{children:[(0,Ae.jsx)(uje,{assetType:h.assetType,value:h.type,onChange:e=>{p({...h,type:e,isExternal:!1,externalMethod:""})}}),(0,Ae.jsx)("div",{className:o.methodLabel,children:"Method"}),(0,Ae.jsx)(aje,{inspection:h,handleChangeExternal:()=>{p({...h,isExternal:!1,externalMethod:""})},setExternalMethod:e=>{wB()||p({...h,externalMethod:e,isExternal:!0})},notAllowed:wB()})]}),(0,Ae.jsx)("div",{style:{margin:"22px 0 8px"},children:(0,Ae.jsx)(ije,{inspection:h,handleDateChange:e=>{const t=Sje(e,O);p({...h,inspectionDate:e,campaignName:t})}})}),(0,Ae.jsx)(iE,{required:!0,fullWidth:!0,label:"Campaign name",inputProps:{maxLength:30},margin:"normal",onChange:e=>{p({...h,campaignName:e.target.value})},value:h.campaignName,variant:"outlined"}),(0,Ae.jsx)(iE,{fullWidth:!0,label:"Notes",margin:"normal",onChange:e=>{p({...h,notes:e.target.value})},value:h.notes,variant:"outlined"}),v&&(0,Ae.jsx)(pM,{severity:"error",children:v})]})]}),(0,Ae.jsxs)(ws,{item:!0,className:o.subAssetsContainer,children:[f&&(0,Ae.jsxs)(yw,{fullWidth:!0,component:"fieldset",className:o.formControlCheck,children:[(0,Ae.jsx)(aw,{component:"legend",style:{marginBottom:5,textAlign:"left"},children:"Subassets"}),(0,Ae.jsx)(wwe,{children:(0,Ae.jsxs)(BA,{stickyHeader:!0,children:[(0,Ae.jsx)(Mj,{children:(0,Ae.jsxs)(Wk,{children:[(0,Ae.jsx)(tk,{className:o.columnCheck,children:(0,Ae.jsx)(lj,{onChange:()=>{const e=!w;E(e);const t=u.map((t=>({...t,selected:e})));d(t)},checked:w,title:"Select / Unselect all"})}),(0,Ae.jsx)(tk,{className:"".concat(o.stdColumn," ").concat(o.headerColumn)}),(0,Ae.jsx)(tk,{className:"".concat(o.stdColumn," ").concat(o.headerColumn),children:"Name"}),(0,Ae.jsx)(tk,{className:"".concat(o.stdColumn," ").concat(o.headerColumn),children:"Model"}),(0,Ae.jsx)(tk,{className:"".concat(o.stdColumn," ").concat(o.headerColumn),children:"Last inspected"}),(0,Ae.jsx)(tk,{className:"".concat(o.stdColumn," ").concat(o.headerColumn),children:"Total defects"})]})}),(0,Ae.jsx)(KA,{children:u.map(((e,t)=>(0,Ae.jsxs)(Wk,{className:o.row,children:[(0,Ae.jsx)(tk,{className:o.columnCheck,children:(0,Ae.jsx)(lj,{onChange:()=>R(e.id),name:e.id,checked:e.selected},t)}),(0,Ae.jsx)(tk,{className:o.stdColumn,children:(0,Ae.jsx)(xje,{subAsset:e})}),(0,Ae.jsx)(tk,{className:o.stdColumn,children:e.name}),(0,Ae.jsx)(tk,{className:o.stdColumn,children:e.model}),(0,Ae.jsx)(tk,{className:o.stdColumn,children:N(e)}),(0,Ae.jsx)(tk,{className:o.stdColumn,children:L(e)})]},t)))})]})})]}),m&&(0,Ae.jsx)($y,{})]})]}),(0,Ae.jsx)(ws,{item:!0,className:o.bottomButton,children:(0,Ae.jsx)(ev,{color:"primary",label:"Create",onClick:async()=>{if(0===u.filter((e=>e.selected)).length)return void _("Please choose an asset and at least one subAsset");if(!u.filter((e=>{let{selected:t}=e;return t})).some((e=>e.isConstruction))||O)if(h.campaignName)try{var t;_(""),S(!0);const r=u.filter((e=>e.selected)).map((e=>e.id)),i={...h,subAssets:r},o=await(async e=>{const t=new Headers;t.append("Content-Type","application/json");const n={method:"POST",headers:t,body:JSON.stringify(e)},r=await Ey("/inspections/create",n);if(200===r.status){const e=await r.json();return Sy.dispatch(dg(e)),await GA(),Sy.dispatch(Yf("")),Sy.dispatch(Xf("")),e}{const e=await r.text();return Promise.reject(new Error(e))}})(i);if(e.nextInfo)return void e.nextInfo.leave();var n;if(h.isExternal&&1===h.subAssets.length&&null!==o&&void 0!==o&&o.length&&null!==(t=o[0])&&void 0!==t&&t.id)A.push("/inspections/".concat(null===(n=o[0])||void 0===n?void 0:n.id));else A.push("/inspections/ongoing")}catch(r){r instanceof xA&&r.message?_(r.message):_("An error occured"),S(!1)}else _("Please provide a campaign name");else _("Cannot mix subAssets types (thermo or construction) in a same campaign")},loading:x})})]})},Pje=Zo()((()=>({modalContainer:{width:"50rem",minWidth:"50vw",maxWidth:"90vw",margin:"5rem auto","& > div":{padding:"1rem",maxHeight:"calc(80vh - 5rem)",overflowY:"auto"}}}))),Cje=e=>{const{classes:t}=Pje(),r=b(gg),[i,o]=(0,n.useState)(!1),[s,a]=(0,n.useState)("");(0,n.useEffect)((()=>{e.type===kC.INSPECTION&&l(e.document)}),[r]);const l=e=>{const t=r.filter((t=>t.assetId===e.asset.id&&"planned"===t.status&&t.subAssetId===e.subAsset.id));t.length&&t.forEach((e=>{(e=>{const t=new Date(e),n=new Date;return t.getTime()>n.getTime()-864e5})(e.plannedDate)&&a(Iy(e.plannedDate))}))},c="Plan next ".concat(e.type===kC.INSPECTION?kC.INSPECTION:kC.CAMPAIGN);return(0,Ae.jsxs)(Ae.Fragment,{children:[!s&&(0,Ae.jsx)(ev,{label:c,style:{fontSize:"0.9rem",width:"100%",textAlign:"left"},onClick:()=>o(!0)}),!!s&&(0,Ae.jsxs)("div",{style:{paddingTop:"0.3rem"},children:["Next inspection planned on: ",s]}),(0,Ae.jsx)(Td,{open:i,onClose:()=>o(!1),children:(0,Ae.jsx)(wp,{className:t.modalContainer,children:e.type===kC.INSPECTION?(0,Ae.jsx)(Eje,{nextInfo:(()=>{var t;const{externalMethod:n,isExternal:r,asset:i,subAsset:s,type:a,inspectionDates:l}=e.document;return{leave:()=>{o(!1)},externalMethod:n,isExternal:r,type:a,assetId:i.id,assetName:i.name,subassetId:s.id,previousDate:null!==(t=l.inspected)&&void 0!==t?t:l.planned}})()}):(0,Ae.jsx)(Eje,{nextInfo:(()=>{let t,n;if((r=e.document)&&r.assetId&&r.name&&void 0!==r.inspectionsIds&&Array.isArray(r.inspectionsIds))t=e.document.assetId,n=e.document.types.includes(RC.SOLAR)?RC.SOLAR:RC.BLADES;else{const r=e.document;t=r.asset.id,n=r.type}var r;return{leave:()=>{o(!1)},assetId:t,type:n}})()})})})]})},Aje={internal:!1,selectedSubAssets:[],inspections:[],defects:[],annotations:[],dataPerSubAssets:[],SkyVisorAnalysis:!1},kje={...Aje,subAssets:[],dataPerSubAssets:[],fetchStatus:DEe},jje={...Aje,subAssets:[],selectedData:{inspections:[],annotations:[],defects:[]},setSelectedSubAssets:()=>{},inspectionIdExternalCodeMap:new Map},Ije=(0,n.createContext)(kje),Gje=(0,n.createContext)(jje),Tje=e=>{var t,r,i,o,s;const[a,l]=(0,n.useState)(!1),{externalUserCode:c}=(0,n.useContext)(Ije),[u,d]=(0,n.useState)(!1),[h,p]=(0,n.useState)(),[f,g]=(0,n.useState)(null),m=e.type===kC.INSPECTION&&[RC.WIND,RC.BLADES,RC.TOWER].includes(null===(t=e.inspections[0])||void 0===t?void 0:t.type),y=e.type===kC.INSPECTION?null===(r=e.document)||void 0===r||null===(i=r.report)||void 0===i?void 0:i.url:null===(o=e.document)||void 0===o||null===(s=o.report)||void 0===s?void 0:s.storageUrl;(0,n.useEffect)((()=>{l(!!y)}),[]);return(0,n.useEffect)((()=>{f&&(f.click(),p(void 0))}),[f]),(0,Ae.jsxs)(ws,{container:!0,direction:"column",wrap:"nowrap",rowGap:"0.25rem",children:[(0,Ae.jsxs)(ws,{container:!0,justifyContent:"space-evenly",children:[(0,Ae.jsx)(ws,{item:!0,children:(0,Ae.jsx)(sH,{inspections:e.inspections,defects:e.defects,smallWithIcon:!0,mode:e.context,annotations:e.annotations,internal:e.internal})}),a&&(0,Ae.jsxs)(ws,{item:!0,children:[(0,Ae.jsx)(ev,{onClick:async t=>{t.stopPropagation(),d(!0);let n="";const r=!Wy();switch(e.type){case kC.INSPECTION:if(r)return Fy(e.document.id),void d(!1);n=await Py(e.document.id,!0);break;case kC.CAMPAIGN:if(r)return zy(e.document.id,!1,c),void d(!1);n=await Cy(e.document.id);break;default:throw new Error("Cannot download pdf for type ".concat(e.type))}""!==n&&(p(n),d(!1))},style:{fontSize:"0.9rem",maxHeight:"2rem",padding:Wy()?"5px":"6px 16px"},label:"PDF",frontIcon:(0,Ae.jsx)(gM,{size:20}),loading:u,disabled:u}),h&&(0,Ae.jsx)("a",{ref:e=>g(e),onClick:e=>e.stopPropagation(),href:h,style:{visibility:"hidden"},download:!0})]})]}),e.internal&&!Wy()&&(0,Ae.jsx)(tje,{inspectionType:m?RC.WIND:RC.SOLAR,type:e.type,document:e.document,pdfReady:e=>l(e)}),e.internal&&m&&(0,Ae.jsx)(Cje,{type:e.type,document:e.document})]})},Mje=e=>{const[t,r]=(0,n.useState)([]),[i,o]=(0,n.useState)(""),[s,a]=(0,n.useState)(""),[l,c]=(0,n.useState)(!1),[u,d]=(0,n.useState)(!1),[h,p]=(0,n.useState)(!1),[f,g]=(0,n.useState)("");async function m(n){g(n);const i=await(async(e,t,n)=>{const r={method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({email:n})};return 200===(await Ey("/".concat(LV[e],"/").concat(t,"/removeUserSharedResults"),r)).status})(e.type,e.documentId,n);g(""),i&&r(t.filter((e=>e!==n)))}const y=async n=>{if(ape(n)){d(!0);const i=await(async(e,t,n)=>{const r={method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({email:n})},i=await Ey("/".concat(LV[e],"/").concat(t,"/addUserSharedResults"),r);return await i.json()})(e.type,e.documentId,n);d(!1),r([...t,i]),o("")}else a("Email format is invalid");return!1};(0,n.useEffect)((()=>{!async function(){if(!t.length){c(!0);const t=await VV(e.type,e.documentId);r(t),c(!1)}}()}),[]);const v=!!s;return(0,Ae.jsxs)(wp,{paddingX:3,paddingY:2.5,children:[(0,Ae.jsx)(vu,{fontWeight:"bold",children:"Share results page"}),!(null===t||void 0===t||!t.length)&&(0,Ae.jsx)(vu,{children:"This results page is externally shared with:"}),l&&(0,Ae.jsx)($y,{}),(0,Ae.jsx)(vj,{marginY:1.5,spacing:.5,children:t.map(((t,n)=>(0,Ae.jsxs)(ws,{container:!0,alignItems:"center",children:[(0,Ae.jsxs)(ws,{item:!0,xs:2,children:[f!==t&&(0,Ae.jsx)(spe.c,{sx:{color:"red",cursor:"pointer",verticalAlign:"bottom"},onClick:()=>m(t)}),f===t&&(0,Ae.jsx)($y,{size:20})]}),(0,Ae.jsx)(ws,{item:!0,xs:6,children:t.email}),(0,Ae.jsx)(ws,{item:!0,xs:4,container:!0,justifyContent:"flex-end",children:(0,Ae.jsx)(ev,{label:"Copy link",size:"small",style:{fontSize:"0.75rem"},color:"question",onClick:()=>(t=>{const n=e.type===kC.INSPECTION?"results":"results/campaign/external";navigator.clipboard.writeText("".concat(window.location.host,"/").concat(n,"/").concat(t)),p(!0)})(t.code),frontIcon:(0,Ae.jsx)(gE,{size:16})})})]},n)))}),(0,Ae.jsx)(JT,{open:h,autoHideDuration:3e3,onClose:()=>p(!1),anchorOrigin:{vertical:"bottom",horizontal:"center"},children:(0,Ae.jsx)(pM,{severity:"success",children:"The link has been copied in your clipboard"})}),(0,Ae.jsxs)(vj,{direction:"row",alignItems:"center",spacing:1.5,children:[(0,Ae.jsx)(iE,{label:"email",value:i,error:v,variant:"outlined",onChange:e=>(e=>{o(e),a("")})(e.target.value),size:"small"}),(0,Ae.jsx)(ev,{loading:u,label:"Add read-only user",style:{fontSize:"0.75rem"},onClick:e=>async function(e){e.preventDefault(),await y(i)&&(t.some((e=>e===i))||r([...t,i]),o(""))}(e)})]})]})},Oje=e=>{const[t,r]=(0,n.useState)(null);return(0,Ae.jsxs)(wp,{width:"100%",children:[(0,Ae.jsx)(ev,{fullWidth:!0,label:"Share link",onClick:e=>r(e.currentTarget),frontIcon:(0,Ae.jsx)(gE,{size:16})}),(0,Ae.jsx)(Ud,{open:null!==t,anchorEl:t,onClose:()=>r(null),anchorOrigin:{vertical:"top",horizontal:"right"},transformOrigin:{vertical:"top",horizontal:"right"},children:(0,Ae.jsx)(Mje,{type:e.type,documentId:e.documentId})})]})},Rje=e=>{var t,n;const r=Zo()((()=>({bottom:{margin:5,marginTop:0,marginBottom:0,height:"100%",...wU},title:{fontWeight:"bold",display:"inline-flex"},review:{width:"100%"},conclusionMain:{height:"100%",flexWrap:"unset"},conclusionTitle:{fontSize:"1.2rem",color:"rgba(0, 0, 0, 0.87)"},conclusionInput:{width:"100%",marginLeft:"0.5rem",minHeight:"2.5rem"},conclusion:{height:e.noHeight?"100%":"calc(34vh - 55px)",overflowY:"auto",padding:10,color:"rgba(0, 0, 0, 0.87)",display:"inline-block",borderRight:"1px solid lightgrey"},serial:{marginLeft:"0.5rem"}}))),{classes:i}=r(),o=b(Nm),s=null!==(t=null===o||void 0===o||null===(n=o.reviews)||void 0===n?void 0:n.subAsset)&&void 0!==t?t:"",a=t=>{const n=t.replace("blade","");return e.serialsInfo&&e.serialsInfo[n]?(0,Ae.jsx)("span",{className:i.serial,children:"(".concat(e.serialsInfo[n],")")}):""};return(0,Ae.jsx)("div",{className:i.bottom,id:"Conclusion",children:(0,Ae.jsxs)(ws,{container:!0,alignContent:"space-between",className:i.conclusionMain,children:[(0,Ae.jsxs)(ws,{item:!0,xs:7,className:i.conclusion,children:["Blades"===(null===o||void 0===o?void 0:o.type)&&["bladeA","bladeB","bladeC"].map(((e,t)=>{return(0,Ae.jsxs)("div",{className:i.review,children:[(0,Ae.jsxs)("div",{className:i.title,children:[(0,Ae.jsx)("div",{children:My(e.replace(/.{1}$/," $&"))}),(0,Ae.jsxs)("div",{children:[a(e),":"]})]}),(0,Ae.jsx)("div",{className:i.conclusionInput,children:(n=e,o&&o.reviews&&o.reviews[n]?o.reviews[n]:"")})]},t);var n})),(0,Ae.jsxs)("div",{className:i.review,children:[(0,Ae.jsxs)("div",{className:i.title,children:[(0,Ae.jsx)("div",{children:"Conclusion: "}),(0,Ae.jsx)("div",{children:(0,Ae.jsx)("i",{children:e.serialsInfo&&e.serialsInfo.turbine?(0,Ae.jsx)("span",{className:i.serial,children:"(".concat(e.serialsInfo.turbine,")")}):""})})]}),(0,Ae.jsxs)("div",{className:i.conclusionInput,children:[s," "]})]})]}),(0,Ae.jsx)(ws,{item:!0,xs:5,height:"100%",overflow:"auto",children:o?(0,Ae.jsxs)(ws,{container:!0,direction:"column",rowGap:"0.25rem",padding:"0.25rem",children:[e.internal&&(0,Ae.jsx)(Oje,{type:kC.INSPECTION,documentId:o.id}),(0,Ae.jsx)(Tje,{type:kC.INSPECTION,context:kC.INSPECTION,document:o,inspections:[o],internal:e.internal,defects:e.defects})]}):null})]})})};const Dje=__webpack_require__.p+"static/media/results-tower.b56cbcbb1c2efc9f0233077472db6a0b.svg",Nje=e=>{var t;const{serialsInfo:r}=e,[i,o]=(0,n.useState)([]),[s,a]=(0,n.useState)([]),l=b(Um),[c,u]=(0,n.useState)(1),d=(0,n.useRef)(null),h=22,p=c<1.5?1:c/1.5,f=Zo()((()=>({image:{height:"55vh",paddingRight:20,marginTop:25},imagesContainer:{maxHeight:"62vh",overflow:"hidden",padding:15,textAlign:"center",position:"relative",margin:5,...wU},circle:{width:h,height:h,borderRadius:11},zoom:{position:"absolute",top:"0.5rem",right:"1.2rem",color:jp},button:{backgroundColor:"white",color:"black","&:hover":{backgroundColor:"#d5d5d5"}}}))),{classes:g}=f();(0,n.useEffect)((()=>{(async()=>{const e=await MA();a(e)})()}),[]),(0,n.useEffect)((()=>{const t=[];e.defects.forEach(((e,n)=>{v(s,e,n,t)})),o(t)}),[e.defects,s]);const m=()=>qW()("#Mast").height()?qW()("#Mast").height():560,y=()=>qW()("#Mast").width()?qW()("#Mast").width():123,v=(t,n,r,i)=>{const o=m(),s=y(),{inspectionDoc:a}=e;if(null!==a&&void 0!==a&&a.subAsset.model&&t&&t[a.subAsset.model]){var c,u;const e=t[a.subAsset.model].height;let d=null!==(c=n.altitude)&&void 0!==c?c:0;d>e?d=e:d<0&&(d=0);const h=null!==(u=n.annotations)&&void 0!==u&&u.length?l.find((e=>e.fileName===n.annotations[0].annotationRef)):null;let p=.5,f=.5;h&&(p=(h.x+h.width/2)/100,f=(h.y+h.height/2)/100);const g=(e-(d+3-6*f))*o/e+10-8,m=s*(.25+p/2);let y=!1;const v=i.findIndex((e=>e.x===m&&e.y===g));-1!==v&&(i[v].ids=[i[v].ids[0],r+1],i[v].defectIds.push(n.id),i[v].severity<n.severity&&(i[v].severity=n.severity),y=!0),y||i.push({x:m,y:g,severity:n.severity,ids:[r+1],defectIds:[n.id]})}},_=t=>{let n=t.severity>3?"#ff0000":"#ffc107";return e.currentDefect&&t.defectIds.includes(e.currentDefect.id)&&(n=jp),n},x=(t,n)=>(0,Ae.jsx)("div",{style:{top:t.y,left:t.x,fontSize:t.ids.length>1?9/p:10/p,width:h/p,height:h/p,borderRadius:h/(2*p),border:"solid",borderWidth:2/p+"px",background:_(t),borderColor:_(t),opacity:.8,position:"absolute",zIndex:3,display:"flex",alignItems:"center",justifyContent:"center",color:t.severity>3?"white":"black",whiteSpace:"nowrap",cursor:"pointer"},onClick:()=>(t=>{const n=e.defects.find((e=>e.id===t[0]));n&&e.select(n)})(t.defectIds),children:t.ids.join("-")},n),S=e=>{const t=null!==d&&void 0!==d&&d.current?d.current:null;t&&("zoomIn"===e?t.zoomIn(.2):"zoomOut"===e?t.zoomOut(.2):t.reset())},w=(e,t)=>(0,Ae.jsxs)("div",{style:{height:e},children:[(0,Ae.jsxs)("div",{style:{display:"flex"},children:[(0,Ae.jsx)("p",{style:{textAlign:"center",width:"100%"},children:t+" m"}),(0,Ae.jsx)("div",{style:{width:"100%"}})]}),(0,Ae.jsx)("hr",{style:{height:1}})]},e+t);return(0,Ae.jsxs)(Ae.Fragment,{children:[(0,Ae.jsxs)("div",{style:{fontSize:"1.6rem",width:"100%",textAlign:"center"},children:["Tower ",null!==(t=null===r||void 0===r?void 0:r.tower)&&void 0!==t?t:""]}),(0,Ae.jsxs)("div",{className:g.imagesContainer,children:[(0,Ae.jsx)(rW.c,{fullScreen:!0,onZoomChange:e=>u(e),maxZoom:8,ref:d,children:(0,Ae.jsxs)("div",{style:{textAlign:"center"},children:[(()=>{const t=10,{inspectionDoc:n}=e;if(null!==n&&void 0!==n&&n.subAsset.model&&s&&s[n.subAsset.model]){const e=s[n.subAsset.model].height,r=m(),i=t*r/e,o=e%t===0?e/t:Math.ceil((e-t/3)/t);return(0,Ae.jsxs)("div",{style:{position:"absolute",paddingTop:2,width:"100%"},children:[e%t!==0&&w(i/t*(e-o*t),e),[...Array(o)].map(((e,n)=>w(i,String((o-n)*t)))),w(0,"0")]})}return(0,Ae.jsx)("div",{})})(),(0,Ae.jsxs)("div",{style:{position:"relative",width:y(),marginLeft:"43%"},children:[(0,Ae.jsx)("img",{id:"Mast",alt:"Tower",src:Dje,className:g.image}),i.map(((e,t)=>x(e,e.x+"-"+t)))]})]})}),(0,Ae.jsxs)(cW,{id:"theZoom",className:g.zoom,variant:"contained",children:[(0,Ae.jsx)(Sa,{className:g.button,onClick:()=>S("zoomOut"),children:"-"}),(0,Ae.jsx)(Sa,{className:g.button,onClick:()=>S("zoomIn"),children:"+"})]}),(0,Ae.jsx)(kU,{})]})]})},Lje=e=>{var t,r;const i=Zo()((()=>({root:{display:"flex",color:"rgba(0, 0, 0, 0.87)"},defectsdata:{height:Wy()?"10rem":"7rem",overflowY:"auto",width:"50%"},infos:{padding:"0.5rem 0.5rem 0 0.5rem",overflowY:Wy()?"auto":void 0,width:Wy()?"48vw":void 0}}))),{classes:o}=i(),s=m(),[a,l]=(0,n.useState)(!1),[c,u]=(0,n.useState)(""),[d,h]=(0,n.useState)(!1),[p,f]=(0,n.useState)("");(0,n.useEffect)((()=>{var t,n,r,i;f(null!==(t=null===(n=e.defect)||void 0===n?void 0:n.note)&&void 0!==t?t:""),u(null!==(r=null===(i=e.defect)||void 0===i?void 0:i.panelSerialNumber)&&void 0!==r?r:""),h(!1)}),[e.defect]);return(0,Ae.jsxs)("div",{className:o.root,children:[(0,Ae.jsxs)("div",{className:o.defectsdata,children:[e.isSolar&&(0,Ae.jsxs)(ws,{container:!0,className:o.infos,justifyContent:"space-between",alignItems:"center",children:[(0,Ae.jsxs)(ws,{item:!0,gap:"0.2rem",flex:1,children:[(0,Ae.jsx)("b",{children:"Serial number:"}),!a&&" ".concat(c)]}),a&&(0,Ae.jsx)(ws,{item:!0,flex:2,children:(0,Ae.jsx)(iE,{fullWidth:!0,size:"small",value:c,onChange:e=>u(e.target.value),"aria-label":"Note",inputProps:{maxLength:220}})}),!e.readOnly&&(0,Ae.jsx)(ws,{item:!0,textAlign:"right",children:a?(0,Ae.jsx)(Gu,{onClick:()=>{var t;null!==(t=e.defect)&&void 0!==t&&t.id&&(l(!1),s(Mm({...e.defect,panelSerialNumber:c})),s(by({...e.defect,panelSerialNumber:c})),nH(e.inspectionId,e.defect.id,{panelSerialNumber:c}))},children:(0,Ae.jsx)(Bh,{color:"primary",size:12})}):(0,Ae.jsx)(Gu,{onClick:()=>l((e=>!e)),children:(0,Ae.jsx)(Zh,{color:"primary",size:12})})})]}),(0,Ae.jsxs)(ws,{container:!0,padding:"0rem 0.5rem 0 0.5rem",style:{overflowY:Wy()?"auto":void 0},width:Wy()?"48vw":void 0,justifyContent:"space-between",alignItems:"center",children:[(0,Ae.jsxs)(ws,{item:!0,gap:"0.2rem",flex:1,children:[(0,Ae.jsx)("b",{children:"Note:"}),!d&&" ".concat(p)]}),d&&(0,Ae.jsx)(ws,{item:!0,flex:2,children:(0,Ae.jsx)(iE,{fullWidth:!0,size:"small",value:p,onChange:e=>f(e.target.value),"aria-label":"Note",inputProps:{maxLength:220}})}),!e.readOnly&&(0,Ae.jsx)(ws,{item:!0,textAlign:"right",children:d?(0,Ae.jsx)(Gu,{onClick:()=>{var t;null!==(t=e.defect)&&void 0!==t&&t.id&&(h(!1),s(Mm({...e.defect,note:p})),s(by({...e.defect,note:p})),nH(e.inspectionId,e.defect.id,{note:p}))},children:(0,Ae.jsx)(Bh,{color:"primary",size:12})}):(0,Ae.jsx)(Gu,{onClick:()=>h(!0),children:(0,Ae.jsx)(Zh,{color:"primary",size:12})})})]}),(0,Ae.jsxs)("div",{className:o.infos,style:{paddingTop:3},children:[(0,Ae.jsx)("b",{children:"Root cause:"})," ".concat(null!==(t=e.defect)&&void 0!==t&&t.rootCause?e.defect.rootCause:"")]}),(0,Ae.jsxs)("div",{className:o.infos,children:[(0,Ae.jsx)("b",{children:"Next step:"})," ".concat(null!==(r=e.defect)&&void 0!==r&&r.nextStep?e.defect.nextStep:"")]})]}),(0,Ae.jsx)(Pq,{defect:e.defect,setSelectedDefect:e.setSelectedDefect,externalUserCode:e.externalUserCode,canAttachFiles:e.readOnly,isCommentReadOnly:e.isCommentReadOnly,inspectionId:e.inspectionId,groupedMode:e.groupedMode})]})},Vje=Zo()((()=>({infos:{padding:"0.5rem 0.5rem 0 0.5rem",color:"rgba(0, 0, 0, 0.87)"},list:{paddingTop:"0.5rem",paddingRight:"0.5rem",paddingLeft:Wy()?"0.5rem":0,display:"flex",flexDirection:"column"},defectBlock:{...wU,paddingBottom:5},defectsTable:{margin:5},picturePart:{...wU,marginTop:5},home:{position:"fixed",top:10,right:20,cursor:"pointer"},title:{color:Gp,paddingLeft:Wy()?35:25,paddingTop:Wy()?15:4}}))),Fje=e=>{const t=b(Nm),r=b(Wm),i=b(Um),[o,s]=(0,n.useState)(void 0),[a,l]=(0,n.useState)(void 0),[c,u]=(0,n.useState)("35vh"),{classes:d}=Vje(),h=(0,n.useMemo)((()=>(null===t||void 0===t?void 0:t.type)===RC.TOWER?r.map((e=>e)).sort(((e,t)=>e.altitude>t.altitude?1:e.altitude<t.altitude?-1:e.type>=t.type?1:-1)):lX(r)),[t,r]),[p,f]=(0,n.useState)([]),[g,m]=(0,n.useState)([]),[y,v]=(0,n.useState)([]),[_,x]=(0,n.useState)([]),[S,w]=(0,n.useState)(0);(0,n.useEffect)((()=>{u("calc(52vh - 170px)")}),[o]);const E=(0,n.useCallback)((e=>{if(0===i.length)return;s(e);const t=e.annotations.map((e=>e)).sort(((e,t)=>e.favorite&&!t.favorite?-1:1)),n=t.map((e=>e.annotationRef)),r=[];n.forEach((e=>{const t=i.find((t=>t.fileName===e));t&&r.push(t)})),l(r)}),[i]);(0,n.useEffect)((()=>{if(e.defectId&&e.internal){const t=r.find((t=>t.id===e.defectId));t&&E(t)}else!o&&h.length>0&&E(h[0])}),[e.defectId,r,h,E,o,e.internal]),(0,n.useEffect)((()=>{const e=p.map((e=>parseInt(e,10)));let t=p.length?h.filter((t=>e.includes(t.severity))):h;t=y.length?t.filter((e=>y.includes(e.type))):t,t=aX(t,_),m(t);const n=r.find((e=>o&&o.id===e.id));n&&s(n)}),[p,y,_,r]);const P=(e,t)=>{"severity"===e&&f(t),"type"===e&&v(t),"openClose"===e&&x(t)},C=e=>"severity"===e?Vy(h,"severity",!0).map((e=>e.toString())):"type"===e?Vy(h,"type",!0).map((e=>e.toString())):"openClose"===e?sX(r):[],A=(e,n)=>{t&&NL(t.id,e,n)},k=()=>{var e,n,r;return(0,Ae.jsxs)(Ae.Fragment,{children:[(null===t||void 0===t?void 0:t.type)===RC.BLADES&&(0,Ae.jsx)(Yke,{inspectionDoc:t,defects:g,currentDefect:o,select:E,serialsInfo:null!==(e=null===(n=t.subAsset)||void 0===n?void 0:n.serials)&&void 0!==e?e:void 0}),(null===t||void 0===t?void 0:t.type)===RC.TOWER&&(0,Ae.jsx)(Nje,{inspectionDoc:t,defects:g,currentDefect:o,select:E,serialsInfo:null===(r=t.subAsset)||void 0===r?void 0:r.serials})]})},j=()=>{var n,r;return(0,Ae.jsx)(Rje,{noHeight:!0,internal:e.internal,serialsInfo:null!==(n=null===t||void 0===t||null===(r=t.subAsset)||void 0===r?void 0:r.serials)&&void 0!==n?n:void 0,defects:g})},I=()=>(0,Ae.jsxs)("div",{className:d.defectBlock,id:"DefectsBlock",children:[(0,Ae.jsx)("div",{className:d.defectsTable,children:(0,Ae.jsx)(QU,{annotations:i,defects:g,unfilteredDefects:h,maxHeight:"42vh",orderBy:"identifier",open:e.openInAnalyze,origin:"Results",currentDefect:o,type:null===t||void 0===t?void 0:t.type,select:E,noPagination:!0,filterAction:P,getFilterOptions:C,forbiddenEdit:!e.internal,changeOpenClose:A})}),t&&(0,Ae.jsx)(Lje,{defect:o,inspectionId:t.id,readOnly:!e.internal,externalUserCode:e.externalUserCode})]}),G=()=>(0,Ae.jsx)(Ae.Fragment,{children:t&&(0,Ae.jsx)(ws,{container:!0,className:d.picturePart,children:a&&a.map(((e,n)=>(0,Ae.jsx)(ws,{item:!0,xs:1===a.length?12:2===a.length||Wy()?6:4,children:n<3&&(0,Ae.jsx)(ZW,{urls:e.urls,type:t.type,fullScreen:!0,heightMax:c,cropped:!0,selectedAnnotation:e,download:!0,cssMaxHeight:"50vh"})},n)))})});return(0,Ae.jsxs)(ws,{container:!0,height:"100%",width:"100%",direction:"column",wrap:"nowrap",overflow:Wy()?"auto":"initial",children:[Wy()&&(0,Ae.jsx)(ws,{item:!0,children:(0,Ae.jsxs)(NX,{value:S,onChange:(e,t)=>w(t),indicatorColor:"primary",children:[(0,Ae.jsx)(UX,{label:"Map"}),(0,Ae.jsx)(UX,{label:"Defect List"})]})}),(0,Ae.jsxs)(ws,{item:!0,height:0,flex:1,children:[t&&!Wy()&&(0,Ae.jsxs)(ws,{container:!0,height:"100%",children:[(0,Ae.jsxs)(ws,{item:!0,xs:4,height:"100%",container:!0,direction:"column",wrap:"nowrap",children:[(0,Ae.jsx)(ws,{item:!0,children:k()}),(0,Ae.jsx)(ws,{item:!0,flex:1,height:0,children:j()})]}),(0,Ae.jsxs)(ws,{item:!0,xs:8,className:d.list,height:"100%",children:[(0,Ae.jsx)(ws,{item:!0,flex:1,height:0,children:I()}),(0,Ae.jsx)(ws,{item:!0,children:G()})]})]}),t&&Wy()&&(0,Ae.jsxs)(ws,{container:!0,direction:"column",wrap:"nowrap",children:[0===S&&(0,Ae.jsxs)(Ae.Fragment,{children:[(0,Ae.jsx)(ws,{item:!0,children:k()}),(0,Ae.jsx)(ws,{item:!0,children:G()})]}),1===S&&(0,Ae.jsxs)(Ae.Fragment,{children:[(0,Ae.jsx)(ws,{item:!0,padding:"0.5rem",children:I()}),(0,Ae.jsx)(ws,{item:!0,paddingBottom:"0.5rem",children:j()})]})]})]})]})};var zje=__webpack_require__(45744),Bje=__webpack_require__(15812);let Uje=function(e){return e.MAP="MAP",e.STATS="STATS",e.LIST="LIST",e}({});const Wje=Zo()((e=>({btn:{color:e.palette.primary.main,"&.MuiButton-contained":{boxShadow:"none",color:"white"}}}))),Hje=e=>{const{classes:t}=Wje(),n=e.currentTab===Uje.MAP||!Wy()&&e.currentTab===Uje.LIST;return(0,Ae.jsx)(Ae.Fragment,{children:(0,Ae.jsxs)(cW,{color:"primary",children:[(0,Ae.jsx)(Sa,{variant:e.currentTab===Uje.STATS?"contained":"outlined",onClick:()=>e.setCurrentTab(Uje.STATS),className:t.btn,startIcon:(0,Ae.jsx)(Bje.c,{}),children:"Stats"}),(0,Ae.jsx)(Sa,{variant:n?"contained":"outlined",onClick:()=>e.setCurrentTab(Uje.MAP),className:t.btn,startIcon:(0,Ae.jsx)(nwe.c,{}),id:"map-tab",children:"Map"}),e.withListTab&&(0,Ae.jsx)(Sa,{variant:e.currentTab===Uje.LIST?"contained":"outlined",onClick:()=>e.setCurrentTab(Uje.LIST),className:t.btn,startIcon:(0,Ae.jsx)(zje.c,{}),children:"List"})]})})};var qje=__webpack_require__(12312),Xje=__webpack_require__.n(qje);const Yje=Zo()((()=>({closePicture:{float:"right",paddingTop:"0.5rem",right:10,color:"red",zIndex:10,cursor:"pointer",position:"absolute",fontSize:"2.5rem"}}))),Kje=e=>{const{classes:t}=Yje();return(0,Ae.jsxs)("div",{style:{width:e.open?"100vw":void 0,zIndex:2,position:"relative"},children:[!e.open&&(0,Ae.jsx)(ev,{label:e.text,onClick:()=>e.setOpen(!0),frontIcon:(0,Ae.jsx)(zh,{color:jp,size:16,style:{marginTop:-5}}),color:"light"}),e.open&&(0,Ae.jsxs)(Ae.Fragment,{children:[(0,Ae.jsx)(tp,{className:t.closePicture,onClick:()=>e.setOpen(!1)}),(0,Ae.jsx)(Xje(),{onTakePhoto:t=>{e.handleTakePhoto(t)},idealFacingMode:qje.FACING_MODES.ENVIRONMENT})]})]})},Zje=Zo()((()=>({root:{display:"flex",flexDirection:"column",height:"100%"}}))),$je=e=>{const{classes:t}=Zje(),{getInspectionId:r}=e,[i,o]=(0,n.useState)([]),[s,a]=(0,n.useState)([]),[l,c]=(0,n.useState)([]),u=(0,n.useCallback)(((e,t)=>{"severity"===e&&o(t),"type"===e&&a(t),"openClose"===e&&c(t)}),[]),d=(0,n.useCallback)((t=>"severity"===t?Vy(e.defects,"severity",!0).map((e=>e.toString())):"type"===t?Vy(e.defects,"type",!0):"openClose"===t?sX(e.defects):[]),[e.defects]),h=(0,n.useCallback)((t=>e.inspectionId?e.inspectionId:r?r(t):""),[e.inspectionId,r]),p=(0,n.useCallback)(((t,n)=>{const r=h(t),i=e.defects.find((e=>e.id===t)),{firstName:o,lastName:s}=wo();Sy.dispatch(sg({state:{by:o&&s?"".concat(o," ").concat(s):"You",on:(new Date).toISOString(),status:n},id:t,comments:(null===i||void 0===i?void 0:i.comments)||[]})),Sy.dispatch(km({id:t,state:{by:o&&s?"".concat(o," ").concat(s):"You",on:(new Date).toISOString(),status:n},comments:(null===i||void 0===i?void 0:i.comments)||[]})),e.groupedMode&&Sy.dispatch(yy({state:{by:o&&s?"".concat(o," ").concat(s):"You",on:(new Date).toISOString(),status:n},defectId:t,comments:(null===i||void 0===i?void 0:i.comments)||[]})),r&&NL(r,t,n,!1,!0)}),[h,e.defects,e.groupedMode]),f=(0,n.useCallback)(((t,n)=>e.groupedMode?t:jA(t,n)),[e.groupedMode]),g=(0,n.useMemo)((()=>f(e.defects,e.annotations)),[f,e.defects,e.annotations]);return(0,n.useEffect)((()=>{const t=i.map((e=>parseInt(e,10)));let n=i.length?e.defects.filter((e=>t.includes(e.severity))):e.defects;n=s.length?n.filter((e=>s.includes(e.type))):n,n=aX(n,l);const r=f(n,e.annotations);e.saveFilteredDefects(r);const o=e.defects.find((t=>e.selectedDefect&&e.selectedDefect.id===t.id));o&&e.changeSelectedDefect(o)}),[i,s,l,e.defects,e.saveFilteredDefects]),(0,Ae.jsxs)("div",{className:t.root,children:[(0,Ae.jsx)("div",{style:{flexShrink:1,flexGrow:1,height:"100%",overflowY:"hidden"},children:(0,Ae.jsx)(QU,{annotations:e.annotations,defects:e.filteredDefects,unfilteredDefects:g,noPagination:!0,goToMap:Wy()&&e.goToMap?e.goToMap:void 0,maxHeight:"100%",tableHeight:"100%",height:"100%",currentDefect:e.selectedDefect,origin:"Results",orderBy:"identifier",open:e.openInAnalyze,type:RC.SOLAR,select:e.changeSelectedDefect,forbiddenEdit:!e.internal,filterAction:u,getFilterOptions:d,changeOpenClose:p})}),!Wy()&&e.selectedDefect&&(0,Ae.jsx)(Lje,{isSolar:!0,defect:e.selectedDefect,inspectionId:h(e.selectedDefect.id),readOnly:!e.internal,isCommentReadOnly:e.isCommentReadOnly,externalUserCode:e.externalUserCode,groupedMode:e.groupedMode})]})},Jje=e=>({id:e.id,coords:e.coords,style:{fill:nU(Up,.5),stroke:Up}}),Qje=e=>{const[t,r]=(0,n.useState)(!1),[i,o]=(0,n.useState)(null);(0,n.useEffect)((()=>{(async(e,t,n)=>{try{r(!0);const i=t.map((t=>wEe(e,t,n))),s=await Promise.all(i.map((e=>e.catch((()=>Promise.resolve(null)))))),a=s.filter((e=>null!==e));o(a.length>0?a:null)}catch(i){o(null)}finally{r(!1)}})(e.assetId,e.subAssetsIds,e.externalUserCode)}),[e.assetId,JSON.stringify(e.subAssetsIds),e.externalUserCode]);const s=(0,n.useMemo)((()=>{return i?(e=i.flatMap((e=>{let{modules:t}=e;return t})),e.map(Jje)):[];var e}),[i]);return{isLoading:t,digitalAsset:i,modulesPolygonSv:s}};var eIe=__webpack_require__(93080),tIe=__webpack_require__(30636);const nIe=e=>{const[t,r]=(0,n.useState)(!1),[i,o]=(0,n.useState)(),s=async e=>{try{r(!0);const t=await(async e=>{const t=await Ey("/models/solar/".concat(encodeURIComponent(e)),{method:"GET"});if(!t.ok){const e=await t.text();throw new Error(null!==e&&void 0!==e?e:"Unknown error")}const n=await t.json();if(200!==t.status)throw new Error(null!==n&&void 0!==n?n:t.statusText);if(!(r=n)||void 0==r.name||void 0==r.supplier||void 0==r.technology||void 0==r.power||void 0==r.length||void 0==r.width)throw new Error("Invalid solar panel model json");var r;return n})(e);o(t)}catch(t){o(void 0)}finally{r(!1)}};return(0,n.useEffect)((()=>{e&&s(e)}),[e]),{solarPanelModel:i,isLoading:t}},rIe=Zo()((()=>({dataContainer:{minWidth:"10rem"},rectangle:{border:"1px solid black",maxHeight:"200px","& p":{color:"black"}},powerContainer:{color:Hp},supplierContainer:{color:"black"},technologyContainer:{color:"black"},first:{textAlign:"center"},second:{transformOrigin:"bottom left",transform:"rotate(90deg)"}}))),iIe=e=>{const{classes:t}=rIe(),{solarPanelModel:r,isLoading:i}=nIe(e.module.model),o=(0,n.useMemo)((()=>{if(!r)return{};const e=80*(r.length/r.width);return{width:"".concat(80,"px"),height:"".concat(e,"px")}}),[r]);return i?(0,Ae.jsx)(Ae.Fragment,{children:"\u2026"}):r?(0,Ae.jsxs)(ws,{container:!0,wrap:"nowrap",columnGap:"1rem",children:[(0,Ae.jsxs)(ws,{item:!0,container:!0,direction:"column",wrap:"nowrap",rowGap:"0.25rem",className:t.dataContainer,children:[(0,Ae.jsx)("b",{children:r.name}),(0,Ae.jsxs)(ws,{item:!0,container:!0,alignItems:"center",columnGap:"0.25rem",wrap:"nowrap",className:t.supplierContainer,children:[(0,Ae.jsx)(tIe.c,{}),(0,Ae.jsx)("b",{children:r.supplier})]}),(0,Ae.jsxs)(ws,{item:!0,container:!0,alignItems:"center",columnGap:"0.25rem",wrap:"nowrap",className:t.technologyContainer,children:[(0,Ae.jsx)(Wfe.c,{}),(0,Ae.jsx)("p",{children:r.technology})]}),(0,Ae.jsxs)(ws,{item:!0,container:!0,alignItems:"center",columnGap:"0.25rem",wrap:"nowrap",className:t.powerContainer,children:[(0,Ae.jsx)(eIe.c,{}),(0,Ae.jsxs)("p",{children:[r.power," W (Pmax)"]})]})]}),(0,Ae.jsx)(ws,{item:!0,container:!0,direction:"column",wrap:"nowrap",children:(0,Ae.jsxs)("div",{className:t.rectangle,style:o,children:[(0,Ae.jsxs)("p",{className:t.first,children:[r.width,"mm"]}),(0,Ae.jsxs)("p",{className:t.second,children:[r.length,"mm"]})]})})]}):(0,Ae.jsx)("p",{children:"Solar panel model not available"})},oIe=Zo()((()=>({mapContent:{width:"100%",height:"100%",display:"flex",border:"1px solid lightgrey",borderRadius:7,position:"relative"},location:{zIndex:100,position:"absolute",bottom:15,left:10,cursor:"pointer"},panelModelContainer:{position:"absolute",borderRadius:"0.5rem",backgroundColor:"white",top:0,left:0},closeBtn:{padding:"2px"}}))),sIe="PHOTOS_OVERLAY",aIe="DIGITAL_TWIN_OVERLAY",lIe=e=>{const{classes:t}=oIe(),{inspections:r,subassets:i,selectedAnnotationsFullIds:o,askPhotoLayer:s}=e,a=(0,n.useMemo)((()=>{var e,t;return null!==(e=null===(t=r[0])||void 0===t?void 0:t.asset.id)&&void 0!==e?e:""}),[r]),l=(0,n.useMemo)((()=>i.map((e=>{let{id:t}=e;return t}))),[i]),c=(0,n.useMemo)((()=>r),[r]),{getPanelsInfosForInspection:u}=JAe({inspections:c,externalUserCode:e.externalUserCode}),{digitalAsset:d,modulesPolygonSv:h}=Qje({assetId:a,subAssetsIds:l,externalUserCode:e.externalUserCode}),p=(0,n.useRef)(null),[f,g]=(0,n.useState)(!1),[m,y]=(0,n.useState)(),[v,_]=(0,n.useState)(),[b,x]=(0,n.useState)([]),[S,w]=(0,n.useState)([]),[E,P]=(0,n.useState)([]),[C,A]=(0,n.useState)([]),[k,j]=(0,n.useState)((()=>()=>!1)),I=(0,n.useMemo)((()=>r.map((e=>{let{id:t}=e;return t}))),[r]),G=(0,n.useMemo)((()=>{const t=new Map;return e.annotations.forEach((e=>{var n;const r=e.inspectionId;if(!r)return;const i=null!==(n=t.get(r))&&void 0!==n?n:[],o=UCe(e);t.set(r,[...i,o])})),t}),[e.annotations]),{getPhotoGSDData:T}=VAe({inspectionIds:I,externalUserCode:e.externalUserCode}),M=(0,n.useCallback)((t=>{const n=BCe(t),r=e.defects.find((e=>{let{annotations:t}=e;return t.map((e=>{let{annotationRef:t}=e;return t})).includes(n)}));if(!r)return{};const{severity:i,type:o}=r;let s=i>3?EU:3===i?PU:AU;return"COMBINER BOX"===o&&(s="lightblue"),{fill:s,stroke:Xp.POLYGONS.stroke.default}}),[e.defects]),{annotationsPolygons:O}=UAe({inspections:r,annotationsMap:G,getPhotoGSDData:T,getPanelsInfosForInspection:u,styleFunction:M}),R=(0,n.useMemo)((()=>{const e=[{id:sIe,label:"Photos",withOpacity:!1,isVisible:!1}];return null!==d&&e.push({id:aIe,label:"Digital twin",withOpacity:!1,isVisible:!0}),e}),[d]),D=(0,n.useMemo)((()=>!i.some((e=>{let{area:t}=e;return void 0!=t}))),[i]);(0,n.useEffect)((()=>{null===s||void 0===s||s()}),[s]),(0,n.useEffect)((()=>{V(o[0],S)}),[o,S]),(0,n.useEffect)((()=>{const t=e.defects.flatMap((e=>e.annotations.flatMap((e=>{let{annotationRef:t}=e;return t})))),n=O.filter((e=>{let{id:n}=e;return t.includes(n)}));x(n)}),[e.defects,O]),(0,n.useEffect)((()=>{S.forEach((e=>{const t=o.includes(e.id);e.style={...e.style,stroke:t?jp:Xp.POLYGONS.stroke.default,size:t?2:1}}))}),[S,o]),(0,n.useEffect)((()=>{const t=[...new Set(e.photos.map((e=>e.inspectionId)))].map((t=>e.photos.filter((e=>e.inspectionId===t)))).flatMap(((t,n)=>t.map((t=>{var r,i;const o=[{lat:t.bounds.north,lng:t.bounds.east},{lat:t.bounds.north,lng:t.bounds.west},{lat:t.bounds.south,lng:t.bounds.west},{lat:t.bounds.south,lng:t.bounds.east}],{yawDegree:s}=L(e.photosDataPerInspection,null!==(r=t.inspectionId)&&void 0!==r?r:"",t.id),a=((e,t)=>{const n=T3(e);if(!n)return[];const r=A3(n);return e.map((e=>{const n=A3(e),i=BPe(n[0],n[1],r[0],r[1],t);return k3(i)}))})(o,-UPe(s)),l=N(null!==(i=t.inspectionId)&&void 0!==i?i:""),c=HPe(a,l);return{id:n+t.id,coords:c}}))));P(t)}),[e.photosDataPerInspection,e.photos]);const N=e=>{var t,n;return null!==(t=null===(n=(null!==r&&void 0!==r?r:[]).find((t=>{let{id:n}=t;return e===n})))||void 0===n?void 0:n.offsetAnnotations)&&void 0!==t?t:{x:0,y:0}},L=(e,t,n)=>{var r,i;const o=null===(r=e.find((e=>{let{inspectionId:n}=e;return n===t})))||void 0===r?void 0:r.photosData;if(!o)return{};const s=null===o||void 0===o||null===(i=o.find((e=>{let{id:t}=e;return t===n})))||void 0===i?void 0:i.exif;if(!s)return{};const{gimbalYawDegree:a,flightYawDegree:l,gimbalPitchDegree:c,relativeAltitude:u,imageWidth:d,imageHeight:h,model:p}=s;let f;try{f=bU(a,l)}catch(g){f=0}return{yawDegree:f,pitchDegree:c,altitude:null!==u&&void 0!==u?u:0,imageSize:{width:null!==d&&void 0!==d?d:0,height:null!==h&&void 0!==h?h:0},droneModel:null!==p&&void 0!==p?p:""}},V=(e,t)=>{const n=t.find((t=>t.id===e));if(!n)return;const r=O3(n.coords,10);_(r)},F=(0,n.useCallback)((t=>{const n=null===t||void 0===t?void 0:t.getId();if(!n)return;V(n.toString(),E);const r=n.toString().slice(1);e.onClickPhoto(r)}),[E]),z=(0,n.useCallback)((e=>{const t="".concat(null===e||void 0===e?void 0:e.getId());if(!t||!d)return;const n=d.flatMap((e=>{let{modules:t}=e;return t})).find((e=>{let{id:n}=e;return n===t}));y(n),g(!0)}),[d]);return(0,n.useEffect)((()=>{const{computedModulesPolygonSv:e,computedDefectsPolygonSv:t}=((e,t)=>{const n=r2(e.map((e=>{const t=WAe(e);return P2(t,{properties:{id:e.id}})})));if(0===n.features.length)return{computedModulesPolygonSv:e,computedDefectsPolygonSv:t};const r=t.map((e=>{var t;const r=WAe(e),i=P2(r),o=G2(i.geometry.coordinates,n);return{polygon:e,distanceMeters:b2(i,o,{units:"meters"}),moduleId:null===o||void 0===o||null===(t=o.properties)||void 0===t?void 0:t.id}})),{defectsToLink:i,otherDefects:o}=r.reduce(((e,t)=>(t.distanceMeters<2?e.defectsToLink.push(t):e.otherDefects.push(t),e)),{defectsToLink:[],otherDefects:[]}),{healthyModulesPolygonSv:s,unhealthyModulesPolygonSv:a}=e.reduce(((e,t)=>{const n=i.find((e=>{let{moduleId:n}=e;return n===t.id}));return n?e.unhealthyModulesPolygonSv.push({...n.polygon,coords:t.coords}):e.healthyModulesPolygonSv.push(t),e}),{healthyModulesPolygonSv:[],unhealthyModulesPolygonSv:[]});return{computedModulesPolygonSv:s,computedDefectsPolygonSv:[...o.map((e=>{let{polygon:t}=e;return t})),...a]}})(h,b);A(e),w(t)}),[b,h]),(0,Ae.jsxs)("div",{id:"map",className:t.mapContent,ref:p,children:[(0,Ae.jsxs)(_Ce,{assetId:a,subAssetsIds:l,withGeolocation:!0,withLatLngPicker:!0,withSubAssetsPolygons:!D,customOverlays:R,setOverlayVisibleFn:j,externalUserCode:e.externalUserCode,bounds:v,leftBar:(0,Ae.jsx)(Ae.Fragment,{children:(0,Ae.jsx)(wp,{display:"flex",flexDirection:"column",gap:"0.5rem",alignItems:"flex-start",justifyContent:"center",children:(0,Ae.jsx)(kU,{solarMap:!0,relative:!0})})}),children:[(0,Ae.jsx)(yPe,{polygons:S,selectable:!0,onPolygonSelected:t=>{const n=null===t||void 0===t?void 0:t.getId();n&&e.onClickDefect("".concat(n))},zIndex:16}),(0,Ae.jsx)(yPe,{polygons:E,visible:k(sIe),selectable:!0,onPolygonSelected:F,zIndex:16}),(0,Ae.jsx)(yPe,{visible:k(aIe),polygons:C,selectable:!0,onPolygonSelected:z,zIndex:13})]}),(0,Ae.jsx)(il,{in:f&&void 0!==m&&null!==p.current,className:t.panelModelContainer,children:(0,Ae.jsxs)("div",{children:[(0,Ae.jsx)(wp,{padding:"1.5rem 1rem",children:m&&(0,Ae.jsx)(iIe,{module:m,onClose:()=>g(!1)})}),(0,Ae.jsx)(wp,{position:"absolute",top:0,right:0,children:(0,Ae.jsx)(Gu,{"aria-label":"close",className:t.closeBtn,onClick:()=>g(!1),children:(0,Ae.jsx)(rwe.c,{})})})]})})]})},cIe=Zo()((()=>({photo:{height:"100%",display:"flex",justifyContent:"space-around",...wU},photoSmartphone:{height:"100%",display:"flex",justifyContent:"space-around"}}))),uIe=e=>{var t,r,i,o,s,a,l;const{classes:c}=cIe(),{inspectionId:u,sortedPhotos:d,photoDisplay:h,isSelectedDefectDisconnected:p=!1,externalCampaignUserCode:f,forceHotWhitePalette:g=!1}=e,m=(0,n.useMemo)((()=>e.annotations.map(UCe)),[e.annotations]),{getThermalPhotoSignedUrl:y}=hAe({inspectionId:u,externalCampaignUserCode:f}),v=(0,n.useMemo)((()=>{const e=[...new Set(m.map((e=>{let{photoId:t}=e;return t})))];return new Map(e.map((e=>[e,y(e,g?_L.HOTWHITE:_L.GREYSCALE)])))}),[m,y,g]),[_,b]=(0,n.useMemo)((()=>0===e.annotations.length?["none","none"]:p?["initial","none"]:["none","initial"]),[e.annotations,p]);return(0,Ae.jsxs)("div",{className:Wy()?c.photoSmartphone:c.photo,children:[e.annotations.length>0&&(0,Ae.jsxs)(Ae.Fragment,{children:[(0,Ae.jsx)("div",{style:{width:"100%",height:"100%",display:_},children:(0,Ae.jsx)(DAe,{inspectionId:u,annotations:p?m:[],sortedPhotos:d,thermalPhotosUrl:v})}),(0,Ae.jsx)("div",{style:{width:"100%",height:"100%",display:b},children:(0,Ae.jsx)(dAe,{id:"main-img-displayer",inspectionId:u,annotations:p?[]:m,thermalCropUrl:null===(t=e.annotations)||void 0===t||null===(r=t[0])||void 0===r||null===(i=r.urls)||void 0===i?void 0:i[1],rgbCropUrl:null===(o=e.annotations)||void 0===o||null===(s=o[0])||void 0===s||null===(a=s.urls)||void 0===a?void 0:a[0],thermalImageUrl:v.get(null===m||void 0===m||null===(l=m[0])||void 0===l?void 0:l.photoId)})})]}),h&&(0,Ae.jsxs)(Ae.Fragment,{children:[h.thermalJpgURL&&(0,Ae.jsx)(wke,{urls:[h.thermalJpgURL],heightMax:"100%",type:"",fromMap:!0,hideLoading:!0,hideZoomReset:!0,hideSettings:!0}),!h.thermalJpgURL&&(0,Ae.jsx)(wke,{urls:[],heightMax:"100%",type:"",fromMap:!0,infoCreateUrl:{inspectionId:e.inspectionId,id:YL(h.photoId)},hideLoading:!0,hideZoomReset:!0,hideSettings:!0})]})]})},dIe=e=>{const t=b(Nm),r=b(Wm);if(!t)return(0,Ae.jsx)(Ae.Fragment,{});const{internal:i,externalUserCode:o,resultsPageConfig:s,isDefectExternalLink:a,fetchStatus:l}=(0,n.useContext)(Ije),c=b(Lm),u=b(Vm),d=b(Fm),h=(0,n.useMemo)((()=>{var e;return{inspectionId:null!==(e=null===t||void 0===t?void 0:t.id)&&void 0!==e?e:"",photosData:c}}),[c,t]),p=(0,n.useMemo)((()=>{var e;return{inspectionId:null!==(e=null===t||void 0===t?void 0:t.id)&&void 0!==e?e:"",mobileData:u}}),[u,t]),f=b(Um),[g,m]=(0,n.useState)([]);(0,n.useEffect)((()=>{m(f.map((e=>({...e,inspectionId:null===t||void 0===t?void 0:t.id}))))}),[t,f]);const[y,v]=(0,n.useState)([]),[_,x]=(0,n.useState)([]),[S,w]=(0,n.useState)(!0),[E,P]=(0,n.useState)(void 0),[C,A]=(0,n.useState)([]),[k,j]=(0,n.useState)(),[I,G]=(0,n.useState)(!1),T=Zo()((()=>({root:{height:"100%",backgroundColor:"white",position:"relative"},rootSmartphone:{width:"100%",height:"100%",backgroundColor:"white"},smartphoneTopChildItem:{height:"100%",width:"100%",position:"absolute",top:0,left:0},rightArea:{padding:"0 .5rem",display:"flex",flexDirection:"column"},mainListContainer:{flexGrow:1,flexShrink:1,overflow:"hidden"},defects:{border:"1px solid lightgrey",borderRadius:7,textAlign:"left",height:"100%",flexGrow:1,flexShrink:1},imagesContainer:{height:"25%",flexShrink:0},images:{height:"100%"},title:{color:Gp,paddingLeft:Wy()?35:15,paddingTop:Wy()?"0.8rem":5},files:{display:"flex",color:Gp,fontWeight:"bold",padding:"0.5rem"}}))),{classes:M}=T(),{sortedPhotos:O}=tke({inspectionId:t.id,externalUserCode:o});(0,n.useEffect)((()=>{0!==c.length&&v(qL(aV(c),t))}),[c]),(0,n.useEffect)((()=>{Wy()&&A((e=>e.length>0?e:r))}),[r]),(0,n.useEffect)((()=>{if(!k)return;const e=k.id,t=r.find((t=>{let{id:n}=t;return e===n}));t&&j(t)}),[r]);const R=e=>{x([]),j(void 0);const t=d.find((t=>t.photoId===e));t&&P(t)},D=(0,n.useCallback)(((e,t)=>{const n=g.find((t=>t.fileName===e));return n?{...n,urls:null!==t&&void 0!==t?t:[]}:void 0}),[g]),N=(0,n.useCallback)(((e,n)=>{var r;if(GU(e.type)!==PL.DISCONNECTED&&(null===(r=e.urls)||void 0===r||!r.length)){var i;const e=null!==(i=null===t||void 0===t?void 0:t.id)&&void 0!==i?i:"";return DA(e,n,"Solar")}}),[t]),L=(0,n.useCallback)((e=>{const t=D(e);if(!t)return;const n=r.find((t=>t.annotations.map((e=>{let{annotationRef:t}=e;return t})).includes(e)));var i;null!==k&&void 0!==k&&k.annotations.map((e=>{let{annotationRef:t}=e;return t})).includes(e)&&n?j(n):(P(void 0),n&&(x(n.annotations.map((e=>{let{annotationRef:t}=e;return t}))),j(n),null===(i=N(t,e))||void 0===i||i.then((t=>{m((n=>[...n].map((n=>n.fileName!==e?n:{...n,urls:t.urls}))))}))))}),[D,r,N]),V=(0,n.useCallback)(((e,t)=>{e.annotations.length&&L(e.annotations[0].annotationRef)}),[L]),F=(0,n.useMemo)((()=>g.length),[g]);(0,n.useEffect)((()=>{if(!e.defectId){if(0===C.length||0===F)return;var t,n;if(!k)j(C[0]),V(C[0],!0),x(null===(t=C[0])||void 0===t||null===(n=t.annotations)||void 0===n?void 0:n.map((e=>{let{annotationRef:t}=e;return t})));return}if(0===F||0===r.length)return;const i=e.defectId,o=r.find((e=>e.id===i));o&&(V(o,!0),j(o),x(o.annotations.map((e=>{let{annotationRef:t}=e;return t}))))}),[r,C]);const z=e=>{V(e),null===s||void 0===s||s.setCurrentTab(Uje.MAP)},B=()=>{const e=IA(t);return e?[e]:[]},U=(0,n.useCallback)((e=>{0!==r.length&&0!==F&&A(e)}),[r,F]),W=(0,n.useMemo)((()=>(null===l||void 0===l?void 0:l.defectData)!==OEe.FETCHED||(null===l||void 0===l?void 0:l.annotationData)!==OEe.FETCHED),[l]),H=()=>{var n;return(0,Ae.jsx)("div",{className:M.defects,children:(0,Ae.jsx)($je,{defects:r,filteredDefects:C,annotations:g,openInAnalyze:e.openInAnalyze,internal:i,externalUserCode:o,isCommentReadOnly:a,saveFilteredDefects:U,inspectionId:null!==(n=null===t||void 0===t?void 0:t.id)&&void 0!==n?n:"",selectedDefect:k,changeSelectedDefect:V,goToMap:z})})},q=(0,n.useMemo)((()=>[t]),[t]),X=(0,n.useMemo)((()=>[h]),[h]),Y=(0,n.useMemo)((()=>[p]),[p]),K=()=>(0,Ae.jsx)(lIe,{inspections:q,annotations:g,defects:C,photos:y,photosDataPerInspection:X,mobileDataPerInspection:Y,selectedAnnotationsFullIds:_,onClickPhoto:R,onClickDefect:L,subassets:B(),externalUserCode:o}),Z=()=>{var e;return(0,Ae.jsx)(uIe,{inspectionId:null!==o&&void 0!==o?o:t.id,photoDisplay:E,annotations:g.filter((e=>{let{fileName:t}=e;return _.includes(t)})),sortedPhotos:O,isSelectedDefectDisconnected:GU(null!==(e=null===k||void 0===k?void 0:k.type)&&void 0!==e?e:"")===PL.DISCONNECTED,forceHotWhitePalette:u.droneModel===SA.MAVIC2_ENTERPRISE_ADVANCED})};return(0,Ae.jsxs)(Ae.Fragment,{children:[!Wy()&&(0,Ae.jsx)("div",{className:M.root,children:(0,Ae.jsxs)(ws,{container:!0,justifyContent:"space-between",height:"100%",children:[(0,Ae.jsx)(ws,{item:!0,xs:12,md:7,height:"100%",children:K()}),(0,Ae.jsx)(ws,{item:!0,xs:12,md:5,className:M.rightArea,height:"100%",children:W?(0,Ae.jsx)(wp,{margin:"auto",children:(0,Ae.jsx)($y,{text:"Defects loading\u2026"})}):(0,Ae.jsxs)(Ae.Fragment,{children:[(0,Ae.jsx)("div",{className:M.mainListContainer,children:H()}),(0,Ae.jsx)("div",{className:M.imagesContainer,children:Z()})]})})]})}),Wy()&&(0,Ae.jsxs)("div",{className:M.rootSmartphone,children:[I?(0,Ae.jsx)(Ae.Fragment,{}):(0,Ae.jsxs)(wp,{height:"50%",position:"relative",children:[(0,Ae.jsx)(wp,{className:M.smartphoneTopChildItem,visibility:(null===s||void 0===s?void 0:s.currentTab)===Uje.MAP?"visible":"hidden",children:K()}),(0,Ae.jsx)(wp,{className:M.smartphoneTopChildItem,visibility:(null===s||void 0===s?void 0:s.currentTab)===Uje.LIST?"visible":"hidden",children:H()})]}),(0,Ae.jsxs)(wp,{height:"50%",display:"flex",flexDirection:"column",children:[(0,Ae.jsx)(wp,{width:"100%",padding:"0.5rem",display:"flex",justifyContent:"space-between",children:k?(0,Ae.jsxs)(Ae.Fragment,{children:[(0,Ae.jsx)(Kje,{handleTakePhoto:async e=>{t&&k&&await zL(e,k,t.id)},text:"Take picture",open:I,setOpen:e=>G(e)}),!I&&(0,Ae.jsx)(EF,{value:S,onChange:()=>w(!S),button1Label:"Image",button2Label:"Details"})]}):(0,Ae.jsx)(wp,{display:"flex",justifyContent:"center",width:"100%",children:(0,Ae.jsx)(vu,{children:"Please select a defect to display its information"})})}),t?(0,Ae.jsxs)(Ae.Fragment,{children:[(0,Ae.jsx)("div",{className:M.files,children:k&&(0,Ae.jsxs)(Ae.Fragment,{children:[(0,Ae.jsx)("p",{children:"Files:"}),(0,Ae.jsx)(Eq,{defect:k,readOnly:!i,inspectionId:t.id})]})}),(0,Ae.jsx)(wp,{height:"75%",paddingX:"0.25rem",children:S?Z():(0,Ae.jsx)(Lje,{isSolar:!0,defect:k,inspectionId:t.id,readOnly:!i,externalUserCode:o})})]}):(0,Ae.jsx)(Ae.Fragment,{})]})]})]})},hIe=new Uint8Array(4);const pIe=class{constructor(e,t){this.helper_=e;const n=e.getGL();this.texture_=n.createTexture(),this.framebuffer_=n.createFramebuffer(),this.depthbuffer_=n.createRenderbuffer(),this.size_=t||[1,1],this.data_=new Uint8Array(0),this.dataCacheDirty_=!0,this.updateSize_()}setSize(e){oD(e,this.size_)||(this.size_[0]=e[0],this.size_[1]=e[1],this.updateSize_())}getSize(){return this.size_}clearCachedData(){this.dataCacheDirty_=!0}readAll(){if(this.dataCacheDirty_){const e=this.size_,t=this.helper_.getGL();t.bindFramebuffer(t.FRAMEBUFFER,this.framebuffer_),t.readPixels(0,0,e[0],e[1],t.RGBA,t.UNSIGNED_BYTE,this.data_),this.dataCacheDirty_=!1}return this.data_}readPixel(e,t){if(e<0||t<0||e>this.size_[0]||t>=this.size_[1])return hIe[0]=0,hIe[1]=0,hIe[2]=0,hIe[3]=0,hIe;this.readAll();const n=Math.floor(e)+(this.size_[1]-Math.floor(t)-1)*this.size_[0];return hIe[0]=this.data_[4*n],hIe[1]=this.data_[4*n+1],hIe[2]=this.data_[4*n+2],hIe[3]=this.data_[4*n+3],hIe}getTexture(){return this.texture_}getFramebuffer(){return this.framebuffer_}getDepthbuffer(){return this.depthbuffer_}updateSize_(){const e=this.size_,t=this.helper_.getGL();this.texture_=this.helper_.createTexture(e,null,this.texture_),t.bindFramebuffer(t.FRAMEBUFFER,this.framebuffer_),t.viewport(0,0,e[0],e[1]),t.framebufferTexture2D(t.FRAMEBUFFER,t.COLOR_ATTACHMENT0,t.TEXTURE_2D,this.texture_,0),t.bindRenderbuffer(t.RENDERBUFFER,this.depthbuffer_),t.renderbufferStorage(t.RENDERBUFFER,t.DEPTH_COMPONENT16,e[0],e[1]),t.framebufferRenderbuffer(t.FRAMEBUFFER,t.DEPTH_ATTACHMENT,t.RENDERBUFFER,this.depthbuffer_),this.data_=new Uint8Array(e[0]*e[1]*4)}},fIe="GENERATE_POINT_BUFFERS",gIe=.985;function mIe(e,t){const n=256,r=255;return(t=t||[])[0]=Math.floor(e/n/n/n)/r,t[1]=Math.floor(e/n/n)%n/r,t[2]=Math.floor(e/n)%n/r,t[3]=e%n/r,t}const yIe=class extends ome{constructor(e,t){var n;const r=t.uniforms||{},i=[1,0,0,1,0,0];r[Wge]=i,super(e,{uniforms:r,postProcesses:t.postProcesses}),this.sourceRevision_=-1,this.verticesBuffer_=new Rge(Age,Ige),this.indicesBuffer_=new Rge(kge,Ige),this.vertexShader_=t.vertexShader,this.fragmentShader_=t.fragmentShader,this.program_,this.hitDetectionEnabled_=null===(n=t.hitDetectionEnabled)||void 0===n||n;const o=t.attributes?t.attributes.map((function(e){return{name:"a_prop_"+e.name,size:1,type:Jge.FLOAT}})):[];this.attributes=[{name:"a_position",size:2,type:Jge.FLOAT},{name:"a_index",size:1,type:Jge.FLOAT}],this.hitDetectionEnabled_&&(this.attributes.push({name:"a_prop_hitColor",size:4,type:Jge.FLOAT}),this.attributes.push({name:"a_featureUid",size:1,type:Jge.FLOAT})),this.attributes.push(...o),this.customAttributes=t.attributes?t.attributes:[],this.previousExtent_=[1/0,1/0,-1/0,-1/0],this.currentTransform_=i,this.renderTransform_=[1,0,0,1,0,0],this.invertRenderTransform_=[1,0,0,1,0,0],this.renderInstructions_=new Float32Array(0),this.hitRenderTarget_,this.lastSentId=0,this.worker_=function(){const e='const t="GENERATE_POLYGON_BUFFERS",e="GENERATE_POINT_BUFFERS",n="GENERATE_LINE_STRING_BUFFERS";function r(t,e){const n=e[0],r=e[1];return e[0]=t[0]*n+t[2]*r+t[4],e[1]=t[1]*n+t[3]*r+t[5],e}function x(t,e){const n=(r=e)[0]*r[3]-r[1]*r[2];var r;!function(t,e){if(!t)throw new Error(e)}(0!==n,"Transformation matrix cannot be inverted");const x=e[0],o=e[1],u=e[2],i=e[3],f=e[4],s=e[5];return t[0]=i/n,t[1]=-o/n,t[2]=-u/n,t[3]=x/n,t[4]=(u*s-i*f)/n,t[5]=-(x*s-o*f)/n,t}function o(t,e,n=2){const r=e&&e.length,x=r?e[0]*n:t.length;let o=u(t,0,x,n,!0);const i=[];if(!o||o.next===o.prev)return i;let s,l,c;if(r&&(o=function(t,e,n,r){const x=[];for(let n=0,o=e.length;n<o;n++){const i=u(t,e[n]*r,n<o-1?e[n+1]*r:t.length,r,!1);i===i.next&&(i.steiner=!0),x.push(g(i))}x.sort(y);for(let t=0;t<x.length;t++)n=h(x[t],n);return n}(t,e,o,n)),t.length>80*n){s=1/0,l=1/0;let e=-1/0,r=-1/0;for(let o=n;o<x;o+=n){const n=t[o],x=t[o+1];n<s&&(s=n),x<l&&(l=x),n>e&&(e=n),x>r&&(r=x)}c=Math.max(e-s,r-l),c=0!==c?32767/c:0}return f(o,i,n,s,l,c,0),i}function u(t,e,n,r,x){let o;if(x===function(t,e,n,r){let x=0;for(let o=e,u=n-r;o<n;o+=r)x+=(t[u]-t[o])*(t[o+1]+t[u+1]),u=o;return x}(t,e,n,r)>0)for(let x=e;x<n;x+=r)o=z(x/r|0,t[x],t[x+1],o);else for(let x=n-r;x>=e;x-=r)o=z(x/r|0,t[x],t[x+1],o);return o&&M(o,o.next)&&(F(o),o=o.next),o}function i(t,e){if(!t)return t;e||(e=t);let n,r=t;do{if(n=!1,r.steiner||!M(r,r.next)&&0!==d(r.prev,r,r.next))r=r.next;else{if(F(r),r=e=r.prev,r===r.next)break;n=!0}}while(n||r!==e);return e}function f(t,e,n,r,x,o,u){if(!t)return;!u&&o&&function(t,e,n,r){let x=t;do{0===x.z&&(x.z=v(x.x,x.y,e,n,r)),x.prevZ=x.prev,x.nextZ=x.next,x=x.next}while(x!==t);x.prevZ.nextZ=null,x.prevZ=null,function(t){let e,n=1;do{let r,x=t;t=null;let o=null;for(e=0;x;){e++;let u=x,i=0;for(let t=0;t<n&&(i++,u=u.nextZ,u);t++);let f=n;for(;i>0||f>0&&u;)0!==i&&(0===f||!u||x.z<=u.z)?(r=x,x=x.nextZ,i--):(r=u,u=u.nextZ,f--),o?o.nextZ=r:t=r,r.prevZ=o,o=r;x=u}o.nextZ=null,n*=2}while(e>1)}(x)}(t,r,x,o);let y=t;for(;t.prev!==t.next;){const h=t.prev,p=t.next;if(o?l(t,r,x,o):s(t))e.push(h.i,t.i,p.i),F(t),t=p.next,y=p.next;else if((t=p)===y){u?1===u?f(t=c(i(t),e),e,n,r,x,o,2):2===u&&a(t,e,n,r,x,o):f(i(t),e,n,r,x,o,1);break}}}function s(t){const e=t.prev,n=t,r=t.next;if(d(e,n,r)>=0)return!1;const x=e.x,o=n.x,u=r.x,i=e.y,f=n.y,s=r.y,l=x<o?x<u?x:u:o<u?o:u,c=i<f?i<s?i:s:f<s?f:s,a=x>o?x>u?x:u:o>u?o:u,y=i>f?i>s?i:s:f>s?f:s;let h=r.next;for(;h!==e;){if(h.x>=l&&h.x<=a&&h.y>=c&&h.y<=y&&b(x,i,o,f,u,s,h.x,h.y)&&d(h.prev,h,h.next)>=0)return!1;h=h.next}return!0}function l(t,e,n,r){const x=t.prev,o=t,u=t.next;if(d(x,o,u)>=0)return!1;const i=x.x,f=o.x,s=u.x,l=x.y,c=o.y,a=u.y,y=i<f?i<s?i:s:f<s?f:s,h=l<c?l<a?l:a:c<a?c:a,p=i>f?i>s?i:s:f>s?f:s,g=l>c?l>a?l:a:c>a?c:a,Z=v(y,h,e,n,r),M=v(p,g,e,n,r);let w=t.prevZ,m=t.nextZ;for(;w&&w.z>=Z&&m&&m.z<=M;){if(w.x>=y&&w.x<=p&&w.y>=h&&w.y<=g&&w!==x&&w!==u&&b(i,l,f,c,s,a,w.x,w.y)&&d(w.prev,w,w.next)>=0)return!1;if(w=w.prevZ,m.x>=y&&m.x<=p&&m.y>=h&&m.y<=g&&m!==x&&m!==u&&b(i,l,f,c,s,a,m.x,m.y)&&d(m.prev,m,m.next)>=0)return!1;m=m.nextZ}for(;w&&w.z>=Z;){if(w.x>=y&&w.x<=p&&w.y>=h&&w.y<=g&&w!==x&&w!==u&&b(i,l,f,c,s,a,w.x,w.y)&&d(w.prev,w,w.next)>=0)return!1;w=w.prevZ}for(;m&&m.z<=M;){if(m.x>=y&&m.x<=p&&m.y>=h&&m.y<=g&&m!==x&&m!==u&&b(i,l,f,c,s,a,m.x,m.y)&&d(m.prev,m,m.next)>=0)return!1;m=m.nextZ}return!0}function c(t,e){let n=t;do{const r=n.prev,x=n.next.next;!M(r,x)&&w(r,n,n.next,x)&&E(r,x)&&E(x,r)&&(e.push(r.i,n.i,x.i),F(n),F(n.next),n=t=x),n=n.next}while(n!==t);return i(n)}function a(t,e,n,r,x,o){let u=t;do{let t=u.next.next;for(;t!==u.prev;){if(u.i!==t.i&&Z(u,t)){let s=I(u,t);return u=i(u,u.next),s=i(s,s.next),f(u,e,n,r,x,o,0),void f(s,e,n,r,x,o,0)}t=t.next}u=u.next}while(u!==t)}function y(t,e){return t.x-e.x}function h(t,e){const n=function(t,e){let n=e;const r=t.x,x=t.y;let o,u=-1/0;do{if(x<=n.y&&x>=n.next.y&&n.next.y!==n.y){const t=n.x+(x-n.y)*(n.next.x-n.x)/(n.next.y-n.y);if(t<=r&&t>u&&(u=t,o=n.x<n.next.x?n:n.next,t===r))return o}n=n.next}while(n!==e);if(!o)return null;const i=o,f=o.x,s=o.y;let l=1/0;n=o;do{if(r>=n.x&&n.x>=f&&r!==n.x&&b(x<s?r:u,x,f,s,x<s?u:r,x,n.x,n.y)){const e=Math.abs(x-n.y)/(r-n.x);E(n,t)&&(e<l||e===l&&(n.x>o.x||n.x===o.x&&p(o,n)))&&(o=n,l=e)}n=n.next}while(n!==i);return o}(t,e);if(!n)return e;const r=I(n,t);return i(r,r.next),i(n,n.next)}function p(t,e){return d(t.prev,t,e.prev)<0&&d(e.next,t,t.next)<0}function v(t,e,n,r,x){return(t=1431655765&((t=858993459&((t=252645135&((t=16711935&((t=(t-n)*x|0)|t<<8))|t<<4))|t<<2))|t<<1))|(e=1431655765&((e=858993459&((e=252645135&((e=16711935&((e=(e-r)*x|0)|e<<8))|e<<4))|e<<2))|e<<1))<<1}function g(t){let e=t,n=t;do{(e.x<n.x||e.x===n.x&&e.y<n.y)&&(n=e),e=e.next}while(e!==t);return n}function b(t,e,n,r,x,o,u,i){return(x-u)*(e-i)>=(t-u)*(o-i)&&(t-u)*(r-i)>=(n-u)*(e-i)&&(n-u)*(o-i)>=(x-u)*(r-i)}function Z(t,e){return t.next.i!==e.i&&t.prev.i!==e.i&&!function(t,e){let n=t;do{if(n.i!==t.i&&n.next.i!==t.i&&n.i!==e.i&&n.next.i!==e.i&&w(n,n.next,t,e))return!0;n=n.next}while(n!==t);return!1}(t,e)&&(E(t,e)&&E(e,t)&&function(t,e){let n=t,r=!1;const x=(t.x+e.x)/2,o=(t.y+e.y)/2;do{n.y>o!=n.next.y>o&&n.next.y!==n.y&&x<(n.next.x-n.x)*(o-n.y)/(n.next.y-n.y)+n.x&&(r=!r),n=n.next}while(n!==t);return r}(t,e)&&(d(t.prev,t,e.prev)||d(t,e.prev,e))||M(t,e)&&d(t.prev,t,t.next)>0&&d(e.prev,e,e.next)>0)}function d(t,e,n){return(e.y-t.y)*(n.x-e.x)-(e.x-t.x)*(n.y-e.y)}function M(t,e){return t.x===e.x&&t.y===e.y}function w(t,e,n,r){const x=A(d(t,e,n)),o=A(d(t,e,r)),u=A(d(n,r,t)),i=A(d(n,r,e));return x!==o&&u!==i||(!(0!==x||!m(t,n,e))||(!(0!==o||!m(t,r,e))||(!(0!==u||!m(n,t,r))||!(0!==i||!m(n,e,r)))))}function m(t,e,n){return e.x<=Math.max(t.x,n.x)&&e.x>=Math.min(t.x,n.x)&&e.y<=Math.max(t.y,n.y)&&e.y>=Math.min(t.y,n.y)}function A(t){return t>0?1:t<0?-1:0}function E(t,e){return d(t.prev,t,t.next)<0?d(t,e,t.next)>=0&&d(t,t.prev,e)>=0:d(t,e,t.prev)<0||d(t,t.next,e)<0}function I(t,e){const n=P(t.i,t.x,t.y),r=P(e.i,e.x,e.y),x=t.next,o=e.prev;return t.next=e,e.prev=t,n.next=x,x.prev=n,r.next=n,n.prev=r,o.next=r,r.prev=o,r}function z(t,e,n,r){const x=P(t,e,n);return r?(x.next=r.next,x.prev=r,r.next.prev=x,r.next=x):(x.prev=x,x.next=x),x}function F(t){t.next.prev=t.prev,t.prev.next=t.next,t.prevZ&&(t.prevZ.nextZ=t.nextZ),t.nextZ&&(t.nextZ.prevZ=t.prevZ)}function P(t,e,n){return{i:t,x:e,y:n,prev:null,next:null,z:0,prevZ:null,nextZ:null,steiner:!1}}new Array(6);const B=[],N={vertexPosition:0,indexPosition:0};function R(t,e,n,r,x){t[e+0]=n,t[e+1]=r,t[e+2]=x}function S(t,e,n,r,x,o){const u=3+x,i=t[e+0],f=t[e+1],s=B;s.length=x;for(let n=0;n<s.length;n++)s[n]=t[e+2+n];let l=o?o.vertexPosition:0,c=o?o.indexPosition:0;const a=l/u;return R(n,l,i,f,0),s.length&&n.set(s,l+3),l+=u,R(n,l,i,f,1),s.length&&n.set(s,l+3),l+=u,R(n,l,i,f,2),s.length&&n.set(s,l+3),l+=u,R(n,l,i,f,3),s.length&&n.set(s,l+3),l+=u,r[c++]=a,r[c++]=a+1,r[c++]=a+3,r[c++]=a+1,r[c++]=a+2,r[c++]=a+3,N.vertexPosition=l,N.indexPosition=c,N}function T(t,e,n,x,o,u,i,f,s,l,c){const a=10+f.length,y=u.length/a,h=[t[e+0],t[e+1]],p=[t[n],t[n+1]],v=t[e+2],g=t[n+2],b=r(s,[...h]),Z=r(s,[...p]);function d(t,e,n){const r=Math.sqrt((e[0]-t[0])*(e[0]-t[0])+(e[1]-t[1])*(e[1]-t[1])),x=[(e[0]-t[0])/r,(e[1]-t[1])/r],o=[-x[1],x[0]],u=Math.sqrt((n[0]-t[0])*(n[0]-t[0])+(n[1]-t[1])*(n[1]-t[1])),i=[(n[0]-t[0])/u,(n[1]-t[1])/u],f=0===r||0===u?0:Math.acos((s=i[0]*x[0]+i[1]*x[1],l=-1,c=1,Math.min(Math.max(s,l),c)));var s,l,c;return i[0]*o[0]+i[1]*o[1]>0?f:2*Math.PI-f}let M=-1,w=-1,m=c;const A=null!==o;if(null!==x){M=d(b,Z,r(s,[...[t[x],t[x+1]]])),Math.cos(M)<=.985&&(m+=Math.tan((M-Math.PI)/2))}if(A){w=d(Z,b,r(s,[...[t[o],t[o+1]]])),Math.cos(w)<=.985&&(m+=Math.tan((Math.PI-w)/2))}function E(t,e){return 0===e?1e4*t:Math.sign(e)*(1e4*t+Math.abs(e))}return u.push(h[0],h[1],v,p[0],p[1],g,M,w,l,E(0,c)),u.push(...f),u.push(h[0],h[1],v,p[0],p[1],g,M,w,l,E(1,c)),u.push(...f),u.push(h[0],h[1],v,p[0],p[1],g,M,w,l,E(2,c)),u.push(...f),u.push(h[0],h[1],v,p[0],p[1],g,M,w,l,E(3,c)),u.push(...f),i.push(y,y+1,y+2,y+1,y+3,y+2),{length:l+Math.sqrt((Z[0]-b[0])*(Z[0]-b[0])+(Z[1]-b[1])*(Z[1]-b[1])),angle:m}}function _(t,e,n,r,x){const u=2+x;let i=e;const f=t.slice(i,i+x);i+=x;const s=t[i++];let l=0;const c=new Array(s-1);for(let e=0;e<s;e++)l+=t[i++],e<s-1&&(c[e]=l);const a=t.slice(i,i+2*l),y=o(a,c,2);for(let t=0;t<y.length;t++)r.push(y[t]+n.length/u);for(let t=0;t<a.length;t+=2)n.push(a[t],a[t+1],...f);return i+2*l}const O=self;O.onmessage=r=>{const o=r.data;switch(o.type){case e:{const t=3,e=2,n=o.customAttributesSize,r=e+n,x=new Float32Array(o.renderInstructions),u=x.length/r,i=4*u*(n+t),f=new Uint32Array(6*u),s=new Float32Array(i);let l;for(let t=0;t<x.length;t+=r)l=S(x,t,s,f,n,l);const c=Object.assign({vertexBuffer:s.buffer,indexBuffer:f.buffer,renderInstructions:x.buffer},o);O.postMessage(c,[s.buffer,f.buffer,x.buffer]);break}case n:{const t=[],e=[],n=o.customAttributesSize,r=3,u=new Float32Array(o.renderInstructions);let i=0;const f=[1,0,0,1,0,0];let s,l;for(x(f,o.renderInstructionsTransform);i<u.length;){l=Array.from(u.slice(i,i+n)),i+=n,s=u[i++];const x=i,o=i+(s-1)*r,c=u[x]===u[o]&&u[x+1]===u[o+1];let a=0,y=0;for(let n=0;n<s-1;n++){let h=null;n>0?h=i+(n-1)*r:c&&(h=o-r);let p=null;n<s-2?p=i+(n+2)*r:c&&(p=x+r);const v=T(u,i+n*r,i+(n+1)*r,h,p,t,e,l,f,a,y);a=v.length,y=v.angle}i+=s*r}const c=Uint32Array.from(e),a=Float32Array.from(t),y=Object.assign({vertexBuffer:a.buffer,indexBuffer:c.buffer,renderInstructions:u.buffer},o);O.postMessage(y,[a.buffer,c.buffer,u.buffer]);break}case t:{const t=[],e=[],n=o.customAttributesSize,r=new Float32Array(o.renderInstructions);let x=0;for(;x<r.length;)x=_(r,x,t,e,n);const u=Uint32Array.from(e),i=Float32Array.from(t),f=Object.assign({vertexBuffer:i.buffer,indexBuffer:u.buffer,renderInstructions:r.buffer},o);O.postMessage(f,[i.buffer,u.buffer,r.buffer]);break}}};';return new Worker("undefined"===typeof Blob?"data:application/javascript;base64,"+Buffer.from(e,"binary").toString("base64"):URL.createObjectURL(new Blob([e],{type:"application/javascript"})))}(),this.worker_.addEventListener("message",(e=>{const t=e.data;if(t.type===fIe){const n=t.projectionTransform;this.verticesBuffer_.fromArrayBuffer(t.vertexBuffer),this.helper.flushBufferData(this.verticesBuffer_),this.indicesBuffer_.fromArrayBuffer(t.indexBuffer),this.helper.flushBufferData(this.indicesBuffer_),this.renderTransform_=n,MY(this.invertRenderTransform_,this.renderTransform_),this.renderInstructions_=new Float32Array(e.data.renderInstructions),t.id===this.lastSentId&&(this.ready=!0),this.getLayer().changed()}})),this.featureCache_={},this.featureCount_=0;const s=this.getLayer().getSource();this.sourceListenKeys_=[qD(s,N1,this.handleSourceFeatureAdded_,this),qD(s,L1,this.handleSourceFeatureChanged_,this),qD(s,F1,this.handleSourceFeatureDelete_,this),qD(s,V1,this.handleSourceFeatureClear_,this)],s.forEachFeature((e=>{this.featureCache_[xD(e)]={feature:e,properties:e.getProperties(),geometry:e.getGeometry()},this.featureCount_++}))}afterHelperCreated(){this.program_=this.helper.getProgram(this.fragmentShader_,this.vertexShader_),this.hitDetectionEnabled_&&(this.hitRenderTarget_=new pIe(this.helper)),this.verticesBuffer_.getArray()&&this.helper.flushBufferData(this.verticesBuffer_),this.indicesBuffer_.getArray()&&this.helper.flushBufferData(this.indicesBuffer_)}handleSourceFeatureAdded_(e){const t=e.feature;this.featureCache_[xD(t)]={feature:t,properties:t.getProperties(),geometry:t.getGeometry()},this.featureCount_++}handleSourceFeatureChanged_(e){const t=e.feature;this.featureCache_[xD(t)]={feature:t,properties:t.getProperties(),geometry:t.getGeometry()}}handleSourceFeatureDelete_(e){const t=e.feature;delete this.featureCache_[xD(t)],this.featureCount_--}handleSourceFeatureClear_(){this.featureCache_={},this.featureCount_=0}renderFrame(e){const t=this.helper.getGL();this.preRender(t,e);const[n,r,i]=function(e,t){const n=e.viewState.projection,r=t.getSource().getWrapX()&&n.canWrapX(),i=n.getExtent(),o=e.extent,s=r?dO(i):null,a=r?Math.ceil((o[2]-i[2])/s)+1:1;return[r?Math.floor((o[0]-i[0])/s):0,a,s]}(e,this.getLayer());this.renderWorlds(e,!1,n,r,i),this.helper.finalizeDraw(e,this.dispatchPreComposeEvent,this.dispatchPostComposeEvent),this.hitDetectionEnabled_&&(this.renderWorlds(e,!0,n,r,i),this.hitRenderTarget_.clearCachedData()),this.postRender(t,e);return this.helper.getCanvas()}prepareFrameInternal(e){const t=this.getLayer(),n=t.getSource(),r=e.viewState,i=!e.viewHints[mY]&&!e.viewHints[yY],o=!KM(this.previousExtent_,e.extent),s=this.sourceRevision_<n.getRevision();if(s&&(this.sourceRevision_=n.getRevision()),i&&(o||s)){const i=r.projection,o=r.resolution,s=t instanceof gJ?t.getRenderBuffer():0,a=NM(e.extent,s*o);n.loadFeatures(a,o,i),this.rebuildBuffers_(e),this.previousExtent_=e.extent.slice()}return this.helper.useProgram(this.program_,e),this.helper.prepareDraw(e),this.helper.bindBuffer(this.verticesBuffer_),this.helper.bindBuffer(this.indicesBuffer_),this.helper.enableAttributes(this.attributes),!0}rebuildBuffers_(e){const t=[1,0,0,1,0,0];this.helper.makeProjectionTransform(e,t);const n=RR(),r=(this.hitDetectionEnabled_?7:2)+this.customAttributes.length,i=r*this.featureCount_;let o,s;this.renderInstructions_&&this.renderInstructions_.length===i||(this.renderInstructions_=new Float32Array(i));const a=[],l=[];let c=-1;for(const d in this.featureCache_)if(o=this.featureCache_[d],s=o.geometry,s&&"Point"===s.getType()){if(n){const t=NR(s.getFlatCoordinates(),e.viewState.projection);a[0]=t[0],a[1]=t[1]}else a[0]=s.getFlatCoordinates()[0],a[1]=s.getFlatCoordinates()[1];if(jY(t,a),this.renderInstructions_[++c]=a[0],this.renderInstructions_[++c]=a[1],this.hitDetectionEnabled_){const e=mIe(c+5,l);this.renderInstructions_[++c]=e[0],this.renderInstructions_[++c]=e[1],this.renderInstructions_[++c]=e[2],this.renderInstructions_[++c]=e[3],this.renderInstructions_[++c]=Number(d)}for(let e=0;e<this.customAttributes.length;e++){const t=this.customAttributes[e].callback(o.feature,o.properties);this.renderInstructions_[++c]=t}}const u={id:++this.lastSentId,type:fIe,renderInstructions:this.renderInstructions_.buffer,customAttributesSize:r-2};u.projectionTransform=t,this.ready=!1,this.worker_.postMessage(u,[this.renderInstructions_.buffer]),this.renderInstructions_=null}forEachFeatureAtCoordinate(e,t,n,r,i){if(lN(this.hitDetectionEnabled_,"`forEachFeatureAtCoordinate` cannot be used on a WebGL layer if the hit detection logic has been disabled using the `disableHitDetection: true` option."),!this.renderInstructions_||!this.hitDetectionEnabled_)return;const o=jY(t.coordinateToPixelTransform,e.slice()),s=this.hitRenderTarget_.readPixel(o[0]/2,o[1]/2),a=function(e){let t=0;const n=256,r=255;return t+=Math.round(e[0]*n*n*n*r),t+=Math.round(e[1]*n*n*r),t+=Math.round(e[2]*n*r),t+=Math.round(e[3]*r),t}([s[0]/255,s[1]/255,s[2]/255,s[3]/255]),l=this.renderInstructions_[a],c=Math.floor(l).toString(),u=this.getLayer().getSource().getFeatureByUid(c);return u?r(u,this.getLayer(),null):void 0}renderWorlds(e,t,n,r,i){let o=n;this.helper.useProgram(this.program_,e),t&&(this.hitRenderTarget_.setSize([Math.floor(e.size[0]/2),Math.floor(e.size[1]/2)]),this.helper.prepareDrawToRenderTarget(e,this.hitRenderTarget_,!0)),this.helper.bindBuffer(this.verticesBuffer_),this.helper.bindBuffer(this.indicesBuffer_),this.helper.enableAttributes(this.attributes);do{this.helper.makeProjectionTransform(e,this.currentTransform_),GY(this.currentTransform_,o*i,0),AY(this.currentTransform_,this.invertRenderTransform_),this.helper.applyUniforms(e),this.helper.applyHitDetectionUniform(t);const n=this.indicesBuffer_.getSize();this.helper.drawElements(0,n)}while(++o<r)}disposeInternal(){this.worker_.terminate(),this.sourceListenKeys_.forEach((function(e){YD(e)})),this.sourceListenKeys_=null,super.disposeInternal()}renderDeclutter(){}};const vIe="#ifdef GL_FRAGMENT_PRECISION_HIGH\nprecision highp float;\n#else\nprecision mediump float;\n#endif\nuniform mat4 u_projectionMatrix;\nuniform mat4 u_screenToWorldMatrix;\nuniform vec2 u_viewportSizePx;\nuniform float u_pixelRatio;\nuniform float u_globalAlpha;\nuniform float u_time;\nuniform float u_zoom;\nuniform float u_resolution;\nuniform float u_rotation;\nuniform vec4 u_renderExtent;\nuniform vec2 u_patternOrigin;\nuniform float u_depth;\nuniform mediump int u_hitDetection;\n\nconst float PI = 3.141592653589793238;\nconst float TWO_PI = 2.0 * PI;\nfloat currentLineMetric = 0.; // an actual value will be used in the stroke shaders\n",_Ie={"fill-color":"rgba(255,255,255,0.4)","stroke-color":"#3399CC","stroke-width":1.25,"circle-radius":5,"circle-fill-color":"rgba(255,255,255,0.4)","circle-stroke-width":1.25,"circle-stroke-color":"#3399CC"};class bIe{constructor(){this.uniforms_=[],this.attributes_=[],this.varyings_=[],this.hasSymbol_=!1,this.symbolSizeExpression_="vec2(".concat(vme(_Ie["circle-radius"])," + ").concat(vme(.5*_Ie["circle-stroke-width"]),")"),this.symbolRotationExpression_="0.0",this.symbolOffsetExpression_="vec2(0.0)",this.symbolColorExpression_=bme(_Ie["circle-fill-color"]),this.texCoordExpression_="vec4(0.0, 0.0, 1.0, 1.0)",this.discardExpression_="false",this.symbolRotateWithView_=!1,this.hasStroke_=!1,this.strokeWidthExpression_=vme(_Ie["stroke-width"]),this.strokeColorExpression_=bme(_Ie["stroke-color"]),this.strokeOffsetExpression_="0.",this.strokeCapExpression_=Eme("round"),this.strokeJoinExpression_=Eme("round"),this.strokeMiterLimitExpression_="10.",this.strokeDistanceFieldExpression_="-1000.",this.hasFill_=!1,this.fillColorExpression_=bme(_Ie["fill-color"]),this.vertexShaderFunctions_=[],this.fragmentShaderFunctions_=[]}addUniform(e){return this.uniforms_.push(e),this}addAttribute(e){return this.attributes_.push(e),this}addVarying(e,t,n){return this.varyings_.push({name:e,type:t,expression:n}),this}setSymbolSizeExpression(e){return this.hasSymbol_=!0,this.symbolSizeExpression_=e,this}getSymbolSizeExpression(){return this.symbolSizeExpression_}setSymbolRotationExpression(e){return this.symbolRotationExpression_=e,this}setSymbolOffsetExpression(e){return this.symbolOffsetExpression_=e,this}getSymbolOffsetExpression(){return this.symbolOffsetExpression_}setSymbolColorExpression(e){return this.hasSymbol_=!0,this.symbolColorExpression_=e,this}getSymbolColorExpression(){return this.symbolColorExpression_}setTextureCoordinateExpression(e){return this.texCoordExpression_=e,this}setFragmentDiscardExpression(e){return this.discardExpression_=e,this}getFragmentDiscardExpression(){return this.discardExpression_}setSymbolRotateWithView(e){return this.symbolRotateWithView_=e,this}setStrokeWidthExpression(e){return this.hasStroke_=!0,this.strokeWidthExpression_=e,this}setStrokeColorExpression(e){return this.hasStroke_=!0,this.strokeColorExpression_=e,this}getStrokeColorExpression(){return this.strokeColorExpression_}setStrokeOffsetExpression(e){return this.strokeOffsetExpression_=e,this}setStrokeCapExpression(e){return this.strokeCapExpression_=e,this}setStrokeJoinExpression(e){return this.strokeJoinExpression_=e,this}setStrokeMiterLimitExpression(e){return this.strokeMiterLimitExpression_=e,this}setStrokeDistanceFieldExpression(e){return this.strokeDistanceFieldExpression_=e,this}setFillColorExpression(e){return this.hasFill_=!0,this.fillColorExpression_=e,this}getFillColorExpression(){return this.fillColorExpression_}addVertexShaderFunction(e){this.vertexShaderFunctions_.includes(e)||this.vertexShaderFunctions_.push(e)}addFragmentShaderFunction(e){this.fragmentShaderFunctions_.includes(e)||this.fragmentShaderFunctions_.push(e)}getSymbolVertexShader(){return this.hasSymbol_?"".concat(vIe,"\n").concat(this.uniforms_.map((function(e){return"uniform "+e+";"})).join("\n"),"\nattribute vec2 a_position;\nattribute float a_index;\nattribute vec4 a_prop_hitColor;\n").concat(this.attributes_.map((function(e){return"attribute "+e+";"})).join("\n"),"\nvarying vec2 v_texCoord;\nvarying vec2 v_quadCoord;\nvarying vec4 v_prop_hitColor;\nvarying vec2 v_centerPx;\nvarying float v_angle;\nvarying vec2 v_quadSizePx;\n").concat(this.varyings_.map((function(e){return"varying "+e.type+" "+e.name+";"})).join("\n"),"\n").concat(this.vertexShaderFunctions_.join("\n"),"\nvec2 pxToScreen(vec2 coordPx) {\n  vec2 scaled = coordPx / u_viewportSizePx / 0.5;\n  return scaled;\n}\n\nvec2 screenToPx(vec2 coordScreen) {\n  return (coordScreen * 0.5 + 0.5) * u_viewportSizePx;\n}\n\nvoid main(void) {\n  v_quadSizePx = ").concat(this.symbolSizeExpression_,";\n  vec2 halfSizePx = v_quadSizePx * 0.5;\n  vec2 centerOffsetPx = ").concat(this.symbolOffsetExpression_,";\n  vec2 offsetPx = centerOffsetPx;\n  if (a_index == 0.0) {\n    offsetPx -= halfSizePx;\n  } else if (a_index == 1.0) {\n    offsetPx += halfSizePx * vec2(1., -1.);\n  } else if (a_index == 2.0) {\n    offsetPx += halfSizePx;\n  } else {\n    offsetPx += halfSizePx * vec2(-1., 1.);\n  }\n  float angle = ").concat(this.symbolRotationExpression_,";\n  ").concat(this.symbolRotateWithView_?"angle += u_rotation;":"","\n  float c = cos(-angle);\n  float s = sin(-angle);\n  offsetPx = vec2(c * offsetPx.x - s * offsetPx.y, s * offsetPx.x + c * offsetPx.y);\n  vec4 center = u_projectionMatrix * vec4(a_position, 0.0, 1.0);\n  gl_Position = center + vec4(pxToScreen(offsetPx), u_depth, 0.);\n  vec4 texCoord = ").concat(this.texCoordExpression_,";\n  float u = a_index == 0.0 || a_index == 3.0 ? texCoord.s : texCoord.p;\n  float v = a_index == 2.0 || a_index == 3.0 ? texCoord.t : texCoord.q;\n  v_texCoord = vec2(u, v);\n  v_prop_hitColor = a_prop_hitColor;\n  v_angle = angle;\n  c = cos(-v_angle);\n  s = sin(-v_angle);\n  centerOffsetPx = vec2(c * centerOffsetPx.x - s * centerOffsetPx.y, s * centerOffsetPx.x + c * centerOffsetPx.y); \n  v_centerPx = screenToPx(center.xy) + centerOffsetPx;\n").concat(this.varyings_.map((function(e){return"  "+e.name+" = "+e.expression+";"})).join("\n"),"\n}"):null}getSymbolFragmentShader(){return this.hasSymbol_?"".concat(vIe,"\n").concat(this.uniforms_.map((function(e){return"uniform "+e+";"})).join("\n"),"\nvarying vec2 v_texCoord;\nvarying vec4 v_prop_hitColor;\nvarying vec2 v_centerPx;\nvarying float v_angle;\nvarying vec2 v_quadSizePx;\n").concat(this.varyings_.map((function(e){return"varying "+e.type+" "+e.name+";"})).join("\n"),"\n").concat(this.fragmentShaderFunctions_.join("\n"),"\n\nvoid main(void) {\n  if (").concat(this.discardExpression_,") { discard; }\n  vec2 coordsPx = gl_FragCoord.xy / u_pixelRatio - v_centerPx; // relative to center\n  float c = cos(v_angle);\n  float s = sin(v_angle);\n  coordsPx = vec2(c * coordsPx.x - s * coordsPx.y, s * coordsPx.x + c * coordsPx.y);\n  gl_FragColor = ").concat(this.symbolColorExpression_,";\n  gl_FragColor.rgb *= gl_FragColor.a;\n  if (u_hitDetection > 0) {\n    if (gl_FragColor.a < 0.05) { discard; };\n    gl_FragColor = v_prop_hitColor;\n  }\n}"):null}getStrokeVertexShader(){return this.hasStroke_?"".concat(vIe,"\n").concat(this.uniforms_.map((function(e){return"uniform "+e+";"})).join("\n"),"\nattribute vec2 a_segmentStart;\nattribute vec2 a_segmentEnd;\nattribute float a_measureStart;\nattribute float a_measureEnd;\nattribute float a_parameters;\nattribute float a_distance;\nattribute vec2 a_joinAngles;\nattribute vec4 a_prop_hitColor;\n").concat(this.attributes_.map((function(e){return"attribute "+e+";"})).join("\n"),"\nvarying vec2 v_segmentStart;\nvarying vec2 v_segmentEnd;\nvarying float v_angleStart;\nvarying float v_angleEnd;\nvarying float v_width;\nvarying vec4 v_prop_hitColor;\nvarying float v_distanceOffsetPx;\nvarying float v_measureStart;\nvarying float v_measureEnd;\n").concat(this.varyings_.map((function(e){return"varying "+e.type+" "+e.name+";"})).join("\n"),"\n").concat(this.vertexShaderFunctions_.join("\n"),'\nvec2 worldToPx(vec2 worldPos) {\n  vec4 screenPos = u_projectionMatrix * vec4(worldPos, 0.0, 1.0);\n  return (0.5 * screenPos.xy + 0.5) * u_viewportSizePx;\n}\n\nvec4 pxToScreen(vec2 pxPos) {\n  vec2 screenPos = 2.0 * pxPos / u_viewportSizePx - 1.0;\n  return vec4(screenPos, u_depth, 1.0);\n}\n\nbool isCap(float joinAngle) {\n  return joinAngle < -0.1;\n}\n\nvec2 getJoinOffsetDirection(vec2 normalPx, float joinAngle) {\n  float halfAngle = joinAngle / 2.0;\n  float c = cos(halfAngle);\n  float s = sin(halfAngle);\n  vec2 angleBisectorNormal = vec2(s * normalPx.x + c * normalPx.y, -c * normalPx.x + s * normalPx.y);\n  float length = 1.0 / s;\n  return angleBisectorNormal * length;\n}\n\nvec2 getOffsetPoint(vec2 point, vec2 normal, float joinAngle, float offsetPx) {\n  // if on a cap or the join angle is too high, offset the line along the segment normal\n  if (cos(joinAngle) > 0.998 || isCap(joinAngle)) {\n    return point - normal * offsetPx;\n  }\n  // offset is applied along the inverted normal (positive offset goes "right" relative to line direction)\n  return point - getJoinOffsetDirection(normal, joinAngle) * offsetPx;\n}\n\nvoid main(void) {\n  v_angleStart = a_joinAngles.x;\n  v_angleEnd = a_joinAngles.y;\n  float vertexNumber = floor(abs(a_parameters) / 10000. + 0.5);\n  currentLineMetric = vertexNumber < 1.5 ? a_measureStart : a_measureEnd;\n  // we\'re reading the fractional part while keeping the sign (so -4.12 gives -0.12, 3.45 gives 0.45)\n  float angleTangentSum = fract(abs(a_parameters) / 10000.) * 10000. * sign(a_parameters);\n\n  float lineWidth = ').concat(this.strokeWidthExpression_,";\n  float lineOffsetPx = ").concat(this.strokeOffsetExpression_,";\n\n  // compute segment start/end in px with offset\n  vec2 segmentStartPx = worldToPx(a_segmentStart);\n  vec2 segmentEndPx = worldToPx(a_segmentEnd);\n  vec2 tangentPx = normalize(segmentEndPx - segmentStartPx);\n  vec2 normalPx = vec2(-tangentPx.y, tangentPx.x);\n  segmentStartPx = getOffsetPoint(segmentStartPx, normalPx, v_angleStart, lineOffsetPx),\n  segmentEndPx = getOffsetPoint(segmentEndPx, normalPx, v_angleEnd, lineOffsetPx);\n  \n  // compute current vertex position\n  float normalDir = vertexNumber < 0.5 || (vertexNumber > 1.5 && vertexNumber < 2.5) ? 1.0 : -1.0;\n  float tangentDir = vertexNumber < 1.5 ? 1.0 : -1.0;\n  float angle = vertexNumber < 1.5 ? v_angleStart : v_angleEnd;\n  vec2 joinDirection;\n  vec2 positionPx = vertexNumber < 1.5 ? segmentStartPx : segmentEndPx;\n  // if angle is too high, do not make a proper join\n  if (cos(angle) > ").concat(gIe," || isCap(angle)) {\n    joinDirection = normalPx * normalDir - tangentPx * tangentDir;\n  } else {\n    joinDirection = getJoinOffsetDirection(normalPx * normalDir, angle);\n  }\n  positionPx = positionPx + joinDirection * (lineWidth * 0.5 + 1.); // adding 1 pixel for antialiasing\n  gl_Position = pxToScreen(positionPx);\n\n  v_segmentStart = segmentStartPx;\n  v_segmentEnd = segmentEndPx;\n  v_width = lineWidth;\n  v_prop_hitColor = a_prop_hitColor;\n  v_distanceOffsetPx = a_distance / u_resolution - (lineOffsetPx * angleTangentSum);\n  v_measureStart = a_measureStart;\n  v_measureEnd = a_measureEnd;\n").concat(this.varyings_.map((function(e){return"  "+e.name+" = "+e.expression+";"})).join("\n"),"\n}"):null}getStrokeFragmentShader(){return this.hasStroke_?"".concat(vIe,"\n").concat(this.uniforms_.map((function(e){return"uniform "+e+";"})).join("\n"),"\nvarying vec2 v_segmentStart;\nvarying vec2 v_segmentEnd;\nvarying float v_angleStart;\nvarying float v_angleEnd;\nvarying float v_width;\nvarying vec4 v_prop_hitColor;\nvarying float v_distanceOffsetPx;\nvarying float v_measureStart;\nvarying float v_measureEnd;\n").concat(this.varyings_.map((function(e){return"varying "+e.type+" "+e.name+";"})).join("\n"),"\n").concat(this.fragmentShaderFunctions_.join("\n"),"\n\nvec2 pxToWorld(vec2 pxPos) {\n  vec2 screenPos = 2.0 * pxPos / u_viewportSizePx - 1.0;\n  return (u_screenToWorldMatrix * vec4(screenPos, 0.0, 1.0)).xy;\n}\n\nbool isCap(float joinAngle) {\n  return joinAngle < -0.1;\n}\n\nfloat segmentDistanceField(vec2 point, vec2 start, vec2 end, float width) {\n  vec2 tangent = normalize(end - start);\n  vec2 normal = vec2(-tangent.y, tangent.x);\n  vec2 startToPoint = point - start;\n  return abs(dot(startToPoint, normal)) - width * 0.5;\n}\n\nfloat buttCapDistanceField(vec2 point, vec2 start, vec2 end) {\n  vec2 startToPoint = point - start;\n  vec2 tangent = normalize(end - start);\n  return dot(startToPoint, -tangent);\n}\n\nfloat squareCapDistanceField(vec2 point, vec2 start, vec2 end, float width) {\n  return buttCapDistanceField(point, start, end) - width * 0.5;\n}\n\nfloat roundCapDistanceField(vec2 point, vec2 start, vec2 end, float width) {\n  float onSegment = max(0., 1000. * dot(point - start, end - start)); // this is very high when inside the segment\n  return length(point - start) - width * 0.5 - onSegment;\n}\n\nfloat roundJoinDistanceField(vec2 point, vec2 start, vec2 end, float width) {\n  return roundCapDistanceField(point, start, end, width);\n}\n\nfloat bevelJoinField(vec2 point, vec2 start, vec2 end, float width, float joinAngle) {\n  vec2 startToPoint = point - start;\n  vec2 tangent = normalize(end - start);\n  float c = cos(joinAngle * 0.5);\n  float s = sin(joinAngle * 0.5);\n  float direction = -sign(sin(joinAngle));\n  vec2 bisector = vec2(c * tangent.x - s * tangent.y, s * tangent.x + c * tangent.y);\n  float radius = width * 0.5 * s;\n  return dot(startToPoint, bisector * direction) - radius;\n}\n\nfloat miterJoinDistanceField(vec2 point, vec2 start, vec2 end, float width, float joinAngle) {\n  if (cos(joinAngle) > ").concat(gIe,") { // avoid risking a division by zero\n    return bevelJoinField(point, start, end, width, joinAngle);\n  }\n  float miterLength = 1. / sin(joinAngle * 0.5);\n  float miterLimit = ").concat(this.strokeMiterLimitExpression_,";\n  if (miterLength > miterLimit) {\n    return bevelJoinField(point, start, end, width, joinAngle);\n  }\n  return -1000.;\n}\n\nfloat capDistanceField(vec2 point, vec2 start, vec2 end, float width, float capType) {\n   if (capType == ").concat(Eme("butt"),") {\n    return buttCapDistanceField(point, start, end);\n  } else if (capType == ").concat(Eme("square"),") {\n    return squareCapDistanceField(point, start, end, width);\n  }\n  return roundCapDistanceField(point, start, end, width);\n}\n\nfloat joinDistanceField(vec2 point, vec2 start, vec2 end, float width, float joinAngle, float joinType) {\n  if (joinType == ").concat(Eme("bevel"),") {\n    return bevelJoinField(point, start, end, width, joinAngle);\n  } else if (joinType == ").concat(Eme("miter"),") {\n    return miterJoinDistanceField(point, start, end, width, joinAngle);\n  }\n  return roundJoinDistanceField(point, start, end, width);\n}\n\nfloat computeSegmentPointDistance(vec2 point, vec2 start, vec2 end, float width, float joinAngle, float capType, float joinType) {\n  if (isCap(joinAngle)) {\n    return capDistanceField(point, start, end, width, capType);\n  }\n  return joinDistanceField(point, start, end, width, joinAngle, joinType);\n}\n\nvoid main(void) {\n  vec2 currentPoint = gl_FragCoord.xy / u_pixelRatio;\n  #ifdef GL_FRAGMENT_PRECISION_HIGH\n  vec2 worldPos = pxToWorld(currentPoint);\n  if (\n    abs(u_renderExtent[0] - u_renderExtent[2]) > 0.0 && (\n      worldPos[0] < u_renderExtent[0] ||\n      worldPos[1] < u_renderExtent[1] ||\n      worldPos[0] > u_renderExtent[2] ||\n      worldPos[1] > u_renderExtent[3]\n    )\n  ) {\n    discard;\n  }\n  #endif\n\n  float segmentLength = length(v_segmentEnd - v_segmentStart);\n  vec2 segmentTangent = (v_segmentEnd - v_segmentStart) / segmentLength;\n  vec2 segmentNormal = vec2(-segmentTangent.y, segmentTangent.x);\n  vec2 startToPoint = currentPoint - v_segmentStart;\n  float lengthToPoint = max(0., min(dot(segmentTangent, startToPoint), segmentLength));\n  float currentLengthPx = lengthToPoint + v_distanceOffsetPx; \n  float currentRadiusPx = abs(dot(segmentNormal, startToPoint));\n  float currentRadiusRatio = dot(segmentNormal, startToPoint) * 2. / v_width;\n  currentLineMetric = mix(v_measureStart, v_measureEnd, lengthToPoint / segmentLength);\n\n  if (").concat(this.discardExpression_,") { discard; }\n\n  vec4 color = ").concat(this.strokeColorExpression_,";\n  float capType = ").concat(this.strokeCapExpression_,";\n  float joinType = ").concat(this.strokeJoinExpression_,";\n  float segmentStartDistance = computeSegmentPointDistance(currentPoint, v_segmentStart, v_segmentEnd, v_width, v_angleStart, capType, joinType);\n  float segmentEndDistance = computeSegmentPointDistance(currentPoint, v_segmentEnd, v_segmentStart, v_width, v_angleEnd, capType, joinType);\n  float distance = max(\n    segmentDistanceField(currentPoint, v_segmentStart, v_segmentEnd, v_width),\n    max(segmentStartDistance, segmentEndDistance)\n  );\n  distance = max(distance, ").concat(this.strokeDistanceFieldExpression_,");\n  color.a *= smoothstep(0.5, -0.5, distance);\n  gl_FragColor = color;\n  gl_FragColor.a *= u_globalAlpha;\n  gl_FragColor.rgb *= gl_FragColor.a;\n  if (u_hitDetection > 0) {\n    if (gl_FragColor.a < 0.1) { discard; };\n    gl_FragColor = v_prop_hitColor;\n  }\n}"):null}getFillVertexShader(){return this.hasFill_?"".concat(vIe,"\n").concat(this.uniforms_.map((function(e){return"uniform "+e+";"})).join("\n"),"\nattribute vec2 a_position;\nattribute vec4 a_prop_hitColor;\n").concat(this.attributes_.map((function(e){return"attribute "+e+";"})).join("\n"),"\nvarying vec4 v_prop_hitColor;\n").concat(this.varyings_.map((function(e){return"varying "+e.type+" "+e.name+";"})).join("\n"),"\n").concat(this.vertexShaderFunctions_.join("\n"),"\nvoid main(void) {\n  gl_Position = u_projectionMatrix * vec4(a_position, u_depth, 1.0);\n  v_prop_hitColor = a_prop_hitColor;\n").concat(this.varyings_.map((function(e){return"  "+e.name+" = "+e.expression+";"})).join("\n"),"\n}"):null}getFillFragmentShader(){return this.hasFill_?"".concat(vIe,"\n").concat(this.uniforms_.map((function(e){return"uniform "+e+";"})).join("\n"),"\nvarying vec4 v_prop_hitColor;\n").concat(this.varyings_.map((function(e){return"varying "+e.type+" "+e.name+";"})).join("\n"),"\n").concat(this.fragmentShaderFunctions_.join("\n"),"\nvec2 pxToWorld(vec2 pxPos) {\n  vec2 screenPos = 2.0 * pxPos / u_viewportSizePx - 1.0;\n  return (u_screenToWorldMatrix * vec4(screenPos, 0.0, 1.0)).xy;\n}\n\nvec2 worldToPx(vec2 worldPos) {\n  vec4 screenPos = u_projectionMatrix * vec4(worldPos, 0.0, 1.0);\n  return (0.5 * screenPos.xy + 0.5) * u_viewportSizePx;\n}\n\nvoid main(void) {\n  vec2 pxPos = gl_FragCoord.xy / u_pixelRatio;\n  vec2 pxOrigin = worldToPx(u_patternOrigin);\n  #ifdef GL_FRAGMENT_PRECISION_HIGH\n  vec2 worldPos = pxToWorld(pxPos);\n  if (\n    abs(u_renderExtent[0] - u_renderExtent[2]) > 0.0 && (\n      worldPos[0] < u_renderExtent[0] ||\n      worldPos[1] < u_renderExtent[1] ||\n      worldPos[0] > u_renderExtent[2] ||\n      worldPos[1] > u_renderExtent[3]\n    )\n  ) {\n    discard;\n  }\n  #endif\n  if (").concat(this.discardExpression_,") { discard; }\n  gl_FragColor = ").concat(this.fillColorExpression_,";\n  gl_FragColor.a *= u_globalAlpha;\n  gl_FragColor.rgb *= gl_FragColor.a;\n  if (u_hitDetection > 0) {\n    if (gl_FragColor.a < 0.1) { discard; };\n    gl_FragColor = v_prop_hitColor;\n  }\n}"):null}}const xIe="blur",SIe="gradient",wIe="radius",EIe=["#00f","#0ff","#0f0","#ff0","#f00"];const PIe=class extends gJ{constructor(e){e=e||{};const t=Object.assign({},e);delete t.gradient,delete t.radius,delete t.blur,delete t.weight,super(t),this.gradient_=null,this.addChangeListener(SIe,this.handleGradientChanged_),this.setGradient(e.gradient?e.gradient:EIe),this.setBlur(void 0!==e.blur?e.blur:15),this.setRadius(void 0!==e.radius?e.radius:8);const n=e.weight?e.weight:"weight";this.weightFunction_="string"===typeof n?e=>e.get(n):n,this.setRenderOrder(null)}getBlur(){return this.get(xIe)}getGradient(){return this.get(SIe)}getRadius(){return this.get(wIe)}handleGradientChanged_(){this.gradient_=function(e){const t=1,n=256,r=ND(t,n),i=r.createLinearGradient(0,0,t,n),o=1/(e.length-1);for(let s=0,a=e.length;s<a;++s)i.addColorStop(s*o,e[s]);return r.fillStyle=i,r.fillRect(0,0,t,n),r.canvas}(this.getGradient())}setBlur(e){this.set(xIe,e)}setGradient(e){this.set(SIe,e)}setRadius(e){this.set(wIe,e)}createRenderer(){const e=(new bIe).addAttribute("float a_prop_weight").addVarying("v_prop_weight","float","a_prop_weight").addUniform("float u_size").addUniform("float u_blurSlope").setSymbolSizeExpression("vec2(u_size)").setSymbolColorExpression("vec4(smoothstep(0., 1., (1. - length(coordsPx * 2. / v_quadSizePx)) * u_blurSlope) * v_prop_weight)");return new yIe(this,{className:this.getClassName(),attributes:[{name:"weight",callback:e=>{const t=this.weightFunction_(e);return void 0!==t?VO(t,0,1):1}}],uniforms:{u_size:()=>2*(this.get(wIe)+this.get(xIe)),u_blurSlope:()=>this.get(wIe)/Math.max(1,this.get(xIe))},hitDetectionEnabled:!0,vertexShader:e.getSymbolVertexShader(),fragmentShader:e.getSymbolFragmentShader(),postProcesses:[{fragmentShader:"\n            precision mediump float;\n\n            uniform sampler2D u_image;\n            uniform sampler2D u_gradientTexture;\n            uniform float u_opacity;\n\n            varying vec2 v_texCoord;\n\n            void main() {\n              vec4 color = texture2D(u_image, v_texCoord);\n              gl_FragColor.a = color.a * u_opacity;\n              gl_FragColor.rgb = texture2D(u_gradientTexture, vec2(0.5, color.a)).rgb;\n              gl_FragColor.rgb *= gl_FragColor.a;\n            }",uniforms:{u_gradientTexture:()=>this.gradient_,u_opacity:()=>this.getOpacity()}}]})}renderDeclutter(){}},CIe=e=>{const{points:t,blur:r,radius:i,visible:o=!0,zIndex:s=2}=e,a=(0,n.useContext)(V3);if(!a)return(0,Ae.jsx)(Ae.Fragment,{});const{map:l}=a,c=(0,n.useRef)(new PIe({source:new Y1})),u=(0,n.useMemo)((()=>t.length),[t]),d=(0,n.useMemo)((()=>i||100/Math.log2(u)),[i,u]),h=(0,n.useMemo)((()=>r||22+Math.log(100+u)),[r,u]);return(0,n.useEffect)((()=>{const e=c.current;return l.addLayer(e),()=>{l.removeLayer(e)}}),[l]),(0,n.useEffect)((()=>{c.current.setZIndex(s)}),[s]),(0,n.useEffect)((()=>{h&&c.current.setBlur(h)}),[h]),(0,n.useEffect)((()=>{d&&c.current.setRadius(d)}),[d]),(0,n.useEffect)((()=>{c.current.setVisible(o)}),[o]),(0,n.useEffect)((()=>{var e,n;const r=t.map((e=>new P0(new dK(A3(e)))));null===(e=c.current.getSource())||void 0===e||e.clear(),null===(n=c.current.getSource())||void 0===n||n.addFeatures(r)}),[t]),(0,Ae.jsx)(Ae.Fragment,{})},AIe=e=>{const{subAssets:t,dataPerSubAssets:r,inspections:i,allDefects:o=[],allAnnotations:s=[],externalUserCode:a}=(0,n.useContext)(Ije),l=(0,n.useMemo)((()=>{var e;return 0===i.length?"":null!==(e=i[0].asset.id)&&void 0!==e?e:""}),[i]),c=(0,n.useMemo)((()=>(null!==r&&void 0!==r?r:[]).map((e=>{let{id:t}=e;return t}))),[r]),u=(0,n.useMemo)((()=>(null!==r&&void 0!==r?r:[]).map((e=>{var t,n,r,i,o,s;const a=null===e||void 0===e||null===(t=e.inspections)||void 0===t||null===(n=t[0].subAsset)||void 0===n?void 0:n.area,l=null!==(r=null===e||void 0===e||null===(i=e.defects)||void 0===i?void 0:i.length)&&void 0!==r?r:0;return{id:null!==(o=e.id)&&void 0!==o?o:"",coords:null===(s=null!==a&&void 0!==a?a:[])||void 0===s?void 0:s.map((e=>({lat:e._latitude,lng:e._longitude}))),style:{fill:"transparent",size:1,stroke:jp,selected:{size:3}},texts:[{text:"".concat(e.name,"\n").concat(l," defects")}]}})).filter((e=>{let{id:t}=e;return""!==t}))),[r]),d=(0,n.useMemo)((()=>o.flatMap((e=>e.annotations.map((e=>{let{annotationRef:t}=e;return t})))).map((e=>{var t;const n=s.find((t=>{let{fileName:n}=t;return n===e}));if(!n||!n.position)return;const r=n.position,o=(e=>{var t,n;return null!==(t=null===(n=i.find((t=>{let{id:n}=t;return n===e})))||void 0===n?void 0:n.offsetAnnotations)&&void 0!==t?t:{x:0,y:0}})(null!==(t=null===n||void 0===n?void 0:n.inspectionId)&&void 0!==t?t:"");return HPe([{lat:r.lat,lng:r.lon}],o)[0]})).filter(F3)),[s,o]),h=(t,n)=>{const r=n.map((e=>"".concat(e.getId()))).filter((e=>""!==e));e.onSubassetSelectionsChanged(r)};return 0===u.length?(0,Ae.jsx)($y,{}):(0,Ae.jsxs)(_Ce,{assetId:l,subAssetsIds:c,withOverlays:!1,externalUserCode:a,children:[(0,Ae.jsx)(yPe,{polygons:u,onPolygonSelected:h,onPolygonUnselected:h,withLabels:!0,selectable:t.length>1,multiSelect:!0,zIndex:3}),(0,Ae.jsx)(CIe,{points:d,zIndex:2})]})};var kIe=__webpack_require__(71780),jIe=__webpack_require__.n(kIe),IIe=__webpack_require__(25640),GIe=__webpack_require__.n(IIe),TIe=__webpack_require__(73656),MIe=__webpack_require__.n(TIe),OIe=__webpack_require__(58772),RIe=__webpack_require__.n(OIe),DIe=__webpack_require__(45416),NIe=__webpack_require__.n(DIe),LIe=__webpack_require__(30864),VIe=__webpack_require__.n(LIe),FIe=__webpack_require__(32152),zIe=__webpack_require__.n(FIe);function BIe(e){var t,n,r="";if("string"==typeof e||"number"==typeof e)r+=e;else if("object"==typeof e)if(Array.isArray(e)){var i=e.length;for(t=0;t<i;t++)e[t]&&(n=BIe(e[t]))&&(r&&(r+=" "),r+=n)}else for(n in e)e[n]&&(r&&(r+=" "),r+=n);return r}const UIe=function(){for(var e,t,n=0,r="",i=arguments.length;n<i;n++)(e=arguments[n])&&(t=BIe(e))&&(r&&(r+=" "),r+=t);return r};var WIe=__webpack_require__(6296),HIe=__webpack_require__.n(WIe),qIe=__webpack_require__(49668),XIe=__webpack_require__.n(qIe),YIe=__webpack_require__(92248),KIe=__webpack_require__(52872),ZIe=__webpack_require__.n(KIe),$Ie=__webpack_require__(49600),JIe=__webpack_require__.n($Ie),QIe=function(e){return 0===e?0:e>0?1:-1},eGe=function(e){return HIe()(e)&&e.indexOf("%")===e.length-1},tGe=function(e){return JIe()(e)&&!ZIe()(e)},nGe=function(e){return tGe(e)||HIe()(e)},rGe=0,iGe=function(e){var t=++rGe;return"".concat(e||"").concat(t)},oGe=function(e,t){var n,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,i=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(!tGe(e)&&!HIe()(e))return r;if(eGe(e)){var o=e.indexOf("%");n=t*parseFloat(e.slice(0,o))/100}else n=+e;return ZIe()(n)&&(n=r),i&&n>t&&(n=t),n},sGe=function(e){if(!e)return null;var t=Object.keys(e);return t&&t.length?e[t[0]]:null},aGe=function(e,t){return tGe(e)&&tGe(t)?function(n){return e+n*(t-e)}:function(){return t}};function lGe(e,t,n){return e&&e.length?e.find((function(e){return e&&("function"===typeof t?t(e):RIe()(e,t))===n})):null}function cGe(e,t){for(var n in e)if({}.hasOwnProperty.call(e,n)&&(!{}.hasOwnProperty.call(t,n)||e[n]!==t[n]))return!1;for(var r in t)if({}.hasOwnProperty.call(t,r)&&!{}.hasOwnProperty.call(e,r))return!1;return!0}function uGe(e){return uGe="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},uGe(e)}var dGe=["aria-activedescendant","aria-atomic","aria-autocomplete","aria-busy","aria-checked","aria-colcount","aria-colindex","aria-colspan","aria-controls","aria-current","aria-describedby","aria-details","aria-disabled","aria-errormessage","aria-expanded","aria-flowto","aria-haspopup","aria-hidden","aria-invalid","aria-keyshortcuts","aria-label","aria-labelledby","aria-level","aria-live","aria-modal","aria-multiline","aria-multiselectable","aria-orientation","aria-owns","aria-placeholder","aria-posinset","aria-pressed","aria-readonly","aria-relevant","aria-required","aria-roledescription","aria-rowcount","aria-rowindex","aria-rowspan","aria-selected","aria-setsize","aria-sort","aria-valuemax","aria-valuemin","aria-valuenow","aria-valuetext","className","color","height","id","lang","max","media","method","min","name","style","target","width","role","tabIndex","accentHeight","accumulate","additive","alignmentBaseline","allowReorder","alphabetic","amplitude","arabicForm","ascent","attributeName","attributeType","autoReverse","azimuth","baseFrequency","baselineShift","baseProfile","bbox","begin","bias","by","calcMode","capHeight","clip","clipPath","clipPathUnits","clipRule","colorInterpolation","colorInterpolationFilters","colorProfile","colorRendering","contentScriptType","contentStyleType","cursor","cx","cy","d","decelerate","descent","diffuseConstant","direction","display","divisor","dominantBaseline","dur","dx","dy","edgeMode","elevation","enableBackground","end","exponent","externalResourcesRequired","fill","fillOpacity","fillRule","filter","filterRes","filterUnits","floodColor","floodOpacity","focusable","fontFamily","fontSize","fontSizeAdjust","fontStretch","fontStyle","fontVariant","fontWeight","format","from","fx","fy","g1","g2","glyphName","glyphOrientationHorizontal","glyphOrientationVertical","glyphRef","gradientTransform","gradientUnits","hanging","horizAdvX","horizOriginX","href","ideographic","imageRendering","in2","in","intercept","k1","k2","k3","k4","k","kernelMatrix","kernelUnitLength","kerning","keyPoints","keySplines","keyTimes","lengthAdjust","letterSpacing","lightingColor","limitingConeAngle","local","markerEnd","markerHeight","markerMid","markerStart","markerUnits","markerWidth","mask","maskContentUnits","maskUnits","mathematical","mode","numOctaves","offset","opacity","operator","order","orient","orientation","origin","overflow","overlinePosition","overlineThickness","paintOrder","panose1","pathLength","patternContentUnits","patternTransform","patternUnits","pointerEvents","pointsAtX","pointsAtY","pointsAtZ","preserveAlpha","preserveAspectRatio","primitiveUnits","r","radius","refX","refY","renderingIntent","repeatCount","repeatDur","requiredExtensions","requiredFeatures","restart","result","rotate","rx","ry","seed","shapeRendering","slope","spacing","specularConstant","specularExponent","speed","spreadMethod","startOffset","stdDeviation","stemh","stemv","stitchTiles","stopColor","stopOpacity","strikethroughPosition","strikethroughThickness","string","stroke","strokeDasharray","strokeDashoffset","strokeLinecap","strokeLinejoin","strokeMiterlimit","strokeOpacity","strokeWidth","surfaceScale","systemLanguage","tableValues","targetX","targetY","textAnchor","textDecoration","textLength","textRendering","to","transform","u1","u2","underlinePosition","underlineThickness","unicode","unicodeBidi","unicodeRange","unitsPerEm","vAlphabetic","values","vectorEffect","version","vertAdvY","vertOriginX","vertOriginY","vHanging","vIdeographic","viewTarget","visibility","vMathematical","widths","wordSpacing","writingMode","x1","x2","x","xChannelSelector","xHeight","xlinkActuate","xlinkArcrole","xlinkHref","xlinkRole","xlinkShow","xlinkTitle","xlinkType","xmlBase","xmlLang","xmlns","xmlnsXlink","xmlSpace","y1","y2","y","yChannelSelector","z","zoomAndPan","ref","key","angle"],hGe=["points","pathLength"],pGe={svg:["viewBox","children"],polygon:hGe,polyline:hGe},fGe=["dangerouslySetInnerHTML","onCopy","onCopyCapture","onCut","onCutCapture","onPaste","onPasteCapture","onCompositionEnd","onCompositionEndCapture","onCompositionStart","onCompositionStartCapture","onCompositionUpdate","onCompositionUpdateCapture","onFocus","onFocusCapture","onBlur","onBlurCapture","onChange","onChangeCapture","onBeforeInput","onBeforeInputCapture","onInput","onInputCapture","onReset","onResetCapture","onSubmit","onSubmitCapture","onInvalid","onInvalidCapture","onLoad","onLoadCapture","onError","onErrorCapture","onKeyDown","onKeyDownCapture","onKeyPress","onKeyPressCapture","onKeyUp","onKeyUpCapture","onAbort","onAbortCapture","onCanPlay","onCanPlayCapture","onCanPlayThrough","onCanPlayThroughCapture","onDurationChange","onDurationChangeCapture","onEmptied","onEmptiedCapture","onEncrypted","onEncryptedCapture","onEnded","onEndedCapture","onLoadedData","onLoadedDataCapture","onLoadedMetadata","onLoadedMetadataCapture","onLoadStart","onLoadStartCapture","onPause","onPauseCapture","onPlay","onPlayCapture","onPlaying","onPlayingCapture","onProgress","onProgressCapture","onRateChange","onRateChangeCapture","onSeeked","onSeekedCapture","onSeeking","onSeekingCapture","onStalled","onStalledCapture","onSuspend","onSuspendCapture","onTimeUpdate","onTimeUpdateCapture","onVolumeChange","onVolumeChangeCapture","onWaiting","onWaitingCapture","onAuxClick","onAuxClickCapture","onClick","onClickCapture","onContextMenu","onContextMenuCapture","onDoubleClick","onDoubleClickCapture","onDrag","onDragCapture","onDragEnd","onDragEndCapture","onDragEnter","onDragEnterCapture","onDragExit","onDragExitCapture","onDragLeave","onDragLeaveCapture","onDragOver","onDragOverCapture","onDragStart","onDragStartCapture","onDrop","onDropCapture","onMouseDown","onMouseDownCapture","onMouseEnter","onMouseLeave","onMouseMove","onMouseMoveCapture","onMouseOut","onMouseOutCapture","onMouseOver","onMouseOverCapture","onMouseUp","onMouseUpCapture","onSelect","onSelectCapture","onTouchCancel","onTouchCancelCapture","onTouchEnd","onTouchEndCapture","onTouchMove","onTouchMoveCapture","onTouchStart","onTouchStartCapture","onPointerDown","onPointerDownCapture","onPointerMove","onPointerMoveCapture","onPointerUp","onPointerUpCapture","onPointerCancel","onPointerCancelCapture","onPointerEnter","onPointerEnterCapture","onPointerLeave","onPointerLeaveCapture","onPointerOver","onPointerOverCapture","onPointerOut","onPointerOutCapture","onGotPointerCapture","onGotPointerCaptureCapture","onLostPointerCapture","onLostPointerCaptureCapture","onScroll","onScrollCapture","onWheel","onWheelCapture","onAnimationStart","onAnimationStartCapture","onAnimationEnd","onAnimationEndCapture","onAnimationIteration","onAnimationIterationCapture","onTransitionEnd","onTransitionEndCapture"],gGe=function(e,t){if(!e||"function"===typeof e||"boolean"===typeof e)return null;var r=e;if((0,n.isValidElement)(e)&&(r=e.props),!XIe()(r))return null;var i={};return Object.keys(r).forEach((function(e){fGe.includes(e)&&(i[e]=t||function(t){return r[e](r,t)})})),i},mGe=function(e,t,n){if(!XIe()(e)||"object"!==uGe(e))return null;var r=null;return Object.keys(e).forEach((function(i){var o=e[i];fGe.includes(i)&&"function"===typeof o&&(r||(r={}),r[i]=function(e,t,n){return function(r){return e(t,n,r),null}}(o,t,n))})),r},yGe=["children"],vGe=["children"];function _Ge(e,t){if(null==e)return{};var n,r,i=function(e,t){if(null==e)return{};var n,r,i={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(i[n]=e[n]);return i}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function bGe(e){return bGe="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},bGe(e)}var xGe={click:"onClick",mousedown:"onMouseDown",mouseup:"onMouseUp",mouseover:"onMouseOver",mousemove:"onMouseMove",mouseout:"onMouseOut",mouseenter:"onMouseEnter",mouseleave:"onMouseLeave",touchcancel:"onTouchCancel",touchend:"onTouchEnd",touchmove:"onTouchMove",touchstart:"onTouchStart"},SGe=function(e){return"string"===typeof e?e:e?e.displayName||e.name||"Component":""},wGe=null,EGe=null,PGe=function e(t){if(t===wGe&&Array.isArray(EGe))return EGe;var r=[];return n.Children.forEach(t,(function(t){jIe()(t)||((0,YIe.isFragment)(t)?r=r.concat(e(t.props.children)):r.push(t))})),EGe=r,wGe=t,r};function CGe(e,t){var n=[],r=[];return r=Array.isArray(t)?t.map((function(e){return SGe(e)})):[SGe(t)],PGe(e).forEach((function(e){var t=RIe()(e,"type.displayName")||RIe()(e,"type.name");-1!==r.indexOf(t)&&n.push(e)})),n}function AGe(e,t){var n=CGe(e,t);return n&&n[0]}var kGe=function(e){if(!e||!e.props)return!1;var t=e.props,n=t.width,r=t.height;return!(!tGe(n)||n<=0||!tGe(r)||r<=0)},jGe=["a","altGlyph","altGlyphDef","altGlyphItem","animate","animateColor","animateMotion","animateTransform","circle","clipPath","color-profile","cursor","defs","desc","ellipse","feBlend","feColormatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence","filter","font","font-face","font-face-format","font-face-name","font-face-url","foreignObject","g","glyph","glyphRef","hkern","image","line","lineGradient","marker","mask","metadata","missing-glyph","mpath","path","pattern","polygon","polyline","radialGradient","rect","script","set","stop","style","svg","switch","symbol","text","textPath","title","tref","tspan","use","view","vkern"],IGe=function(e){return e&&e.type&&HIe()(e.type)&&jGe.indexOf(e.type)>=0},GGe=function(e,t,r){if(!e||"function"===typeof e||"boolean"===typeof e)return null;var i=e;if((0,n.isValidElement)(e)&&(i=e.props),!XIe()(i))return null;var o={};return Object.keys(i).forEach((function(e){var n;(function(e,t,n,r){var i,o=null!==(i=null===pGe||void 0===pGe?void 0:pGe[r])&&void 0!==i?i:[];return!GIe()(e)&&(r&&o.includes(t)||dGe.includes(t))||n&&fGe.includes(t)})(null===(n=i)||void 0===n?void 0:n[e],e,t,r)&&(o[e]=i[e])})),o},TGe=function e(t,r){if(t===r)return!0;var i=n.Children.count(t);if(i!==n.Children.count(r))return!1;if(0===i)return!0;if(1===i)return MGe(Array.isArray(t)?t[0]:t,Array.isArray(r)?r[0]:r);for(var o=0;o<i;o++){var s=t[o],a=r[o];if(Array.isArray(s)||Array.isArray(a)){if(!e(s,a))return!1}else if(!MGe(s,a))return!1}return!0},MGe=function(e,t){if(jIe()(e)&&jIe()(t))return!0;if(!jIe()(e)&&!jIe()(t)){var n=e.props||{},r=n.children,i=_Ge(n,yGe),o=t.props||{},s=o.children,a=_Ge(o,vGe);return r&&s?cGe(i,a)&&TGe(r,s):!r&&!s&&cGe(i,a)}return!1},OGe=function(e,t){var n=[],r={};return PGe(e).forEach((function(e,i){if(IGe(e))n.push(e);else if(e){var o=SGe(e.type),s=t[o]||{},a=s.handler,l=s.once;if(a&&(!l||!r[o])){var c=a(e,o,i);n.push(c),r[o]=!0}}})),n},RGe=["children","width","height","viewBox","className","style","title","desc"];function DGe(){return DGe=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},DGe.apply(this,arguments)}function NGe(e,t){if(null==e)return{};var n,r,i=function(e,t){if(null==e)return{};var n,r,i={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(i[n]=e[n]);return i}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function LGe(e){var t=e.children,r=e.width,i=e.height,o=e.viewBox,s=e.className,a=e.style,l=e.title,c=e.desc,u=NGe(e,RGe),d=o||{width:r,height:i,x:0,y:0},h=UIe("recharts-surface",s);return n.createElement("svg",DGe({},GGe(u,!0,"svg"),{className:h,width:r,height:i,style:a,viewBox:"".concat(d.x," ").concat(d.y," ").concat(d.width," ").concat(d.height)}),n.createElement("title",null,l),n.createElement("desc",null,c),t)}var VGe=["children","className"];function FGe(){return FGe=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},FGe.apply(this,arguments)}function zGe(e,t){if(null==e)return{};var n,r,i=function(e,t){if(null==e)return{};var n,r,i={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(i[n]=e[n]);return i}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}var BGe=n.forwardRef((function(e,t){var r=e.children,i=e.className,o=zGe(e,VGe),s=UIe("recharts-layer",i);return n.createElement("g",FGe({className:s},GGe(o,!0),{ref:t}),r)}));function UGe(e){return UGe="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},UGe(e)}function WGe(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,i,o,s,a=[],l=!0,c=!1;try{if(o=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;l=!1}else for(;!(l=(r=o.call(n)).done)&&(a.push(r.value),a.length!==t);l=!0);}catch(e){c=!0,i=e}finally{try{if(!l&&null!=n.return&&(s=n.return(),Object(s)!==s))return}finally{if(c)throw i}}return a}}(e,t)||function(e,t){if(!e)return;if("string"===typeof e)return HGe(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return HGe(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function HGe(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function qGe(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function XGe(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?qGe(Object(n),!0).forEach((function(t){YGe(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):qGe(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function YGe(e,t,n){return(t=function(e){var t=function(e,t){if("object"!==UGe(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==UGe(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===UGe(t)?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function KGe(e){return Array.isArray(e)&&nGe(e[0])&&nGe(e[1])?e.join(" ~ "):e}var ZGe=function(e){var t=e.separator,r=void 0===t?" : ":t,i=e.contentStyle,o=void 0===i?{}:i,s=e.itemStyle,a=void 0===s?{}:s,l=e.labelStyle,c=void 0===l?{}:l,u=e.payload,d=e.formatter,h=e.itemSorter,p=e.wrapperClassName,f=e.labelClassName,g=e.label,m=e.labelFormatter,y=XGe({margin:0,padding:10,backgroundColor:"#fff",border:"1px solid #ccc",whiteSpace:"nowrap"},o),v=XGe({margin:0},c),_=!jIe()(g),b=_?g:"",x=UIe("recharts-default-tooltip",p),S=UIe("recharts-tooltip-label",f);return _&&m&&void 0!==u&&null!==u&&(b=m(g,u)),n.createElement("div",{className:x,style:y},n.createElement("p",{className:S,style:v},n.isValidElement(b)?b:"".concat(b)),function(){if(u&&u.length){var e=(h?NIe()(u,h):u).map((function(e,t){if("none"===e.type)return null;var i=XGe({display:"block",paddingTop:4,paddingBottom:4,color:e.color||"#000"},a),o=e.formatter||d||KGe,s=e.value,l=e.name,c=s,h=l;if(o&&null!=c&&null!=h){var p=o(s,l,e,t,u);if(Array.isArray(p)){var f=WGe(p,2);c=f[0],h=f[1]}else c=p}return n.createElement("li",{className:"recharts-tooltip-item",key:"tooltip-item-".concat(t),style:i},nGe(h)?n.createElement("span",{className:"recharts-tooltip-item-name"},h):null,nGe(h)?n.createElement("span",{className:"recharts-tooltip-item-separator"},r):null,n.createElement("span",{className:"recharts-tooltip-item-value"},c),n.createElement("span",{className:"recharts-tooltip-item-unit"},e.unit||""))}));return n.createElement("ul",{className:"recharts-tooltip-item-list",style:{padding:0,margin:0}},e)}return null}())},$Ge=Object.getOwnPropertyNames,JGe=Object.getOwnPropertySymbols,QGe=Object.prototype.hasOwnProperty;function eTe(e,t){return function(n,r,i){return e(n,r,i)&&t(n,r,i)}}function tTe(e){return function(t,n,r){if(!t||!n||"object"!==typeof t||"object"!==typeof n)return e(t,n,r);var i=r.cache,o=i.get(t),s=i.get(n);if(o&&s)return o===n&&s===t;i.set(t,n),i.set(n,t);var a=e(t,n,r);return i.delete(t),i.delete(n),a}}function nTe(e){return $Ge(e).concat(JGe(e))}var rTe=Object.hasOwn||function(e,t){return QGe.call(e,t)};function iTe(e,t){return e||t?e===t:e===t||e!==e&&t!==t}var oTe="_owner",sTe=Object.getOwnPropertyDescriptor,aTe=Object.keys;function lTe(e,t,n){var r=e.length;if(t.length!==r)return!1;for(;r-- >0;)if(!n.equals(e[r],t[r],r,r,e,t,n))return!1;return!0}function cTe(e,t){return iTe(e.getTime(),t.getTime())}function uTe(e,t,n){if(e.size!==t.size)return!1;for(var r,i,o={},s=e.entries(),a=0;(r=s.next())&&!r.done;){for(var l=t.entries(),c=!1,u=0;(i=l.next())&&!i.done;){var d=r.value,h=d[0],p=d[1],f=i.value,g=f[0],m=f[1];c||o[u]||!(c=n.equals(h,g,a,u,e,t,n)&&n.equals(p,m,h,g,e,t,n))||(o[u]=!0),u++}if(!c)return!1;a++}return!0}function dTe(e,t,n){var r,i=aTe(e),o=i.length;if(aTe(t).length!==o)return!1;for(;o-- >0;){if((r=i[o])===oTe&&(e.$$typeof||t.$$typeof)&&e.$$typeof!==t.$$typeof)return!1;if(!rTe(t,r)||!n.equals(e[r],t[r],r,r,e,t,n))return!1}return!0}function hTe(e,t,n){var r,i,o,s=nTe(e),a=s.length;if(nTe(t).length!==a)return!1;for(;a-- >0;){if((r=s[a])===oTe&&(e.$$typeof||t.$$typeof)&&e.$$typeof!==t.$$typeof)return!1;if(!rTe(t,r))return!1;if(!n.equals(e[r],t[r],r,r,e,t,n))return!1;if(i=sTe(e,r),o=sTe(t,r),(i||o)&&(!i||!o||i.configurable!==o.configurable||i.enumerable!==o.enumerable||i.writable!==o.writable))return!1}return!0}function pTe(e,t){return iTe(e.valueOf(),t.valueOf())}function fTe(e,t){return e.source===t.source&&e.flags===t.flags}function gTe(e,t,n){if(e.size!==t.size)return!1;for(var r,i,o={},s=e.values();(r=s.next())&&!r.done;){for(var a=t.values(),l=!1,c=0;(i=a.next())&&!i.done;)l||o[c]||!(l=n.equals(r.value,i.value,r.value,i.value,e,t,n))||(o[c]=!0),c++;if(!l)return!1}return!0}function mTe(e,t){var n=e.length;if(t.length!==n)return!1;for(;n-- >0;)if(e[n]!==t[n])return!1;return!0}var yTe="[object Arguments]",vTe="[object Boolean]",_Te="[object Date]",bTe="[object Map]",xTe="[object Number]",STe="[object Object]",wTe="[object RegExp]",ETe="[object Set]",PTe="[object String]",CTe=Array.isArray,ATe="function"===typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView:null,kTe=Object.assign,jTe=Object.prototype.toString.call.bind(Object.prototype.toString);var ITe=GTe();GTe({strict:!0}),GTe({circular:!0}),GTe({circular:!0,strict:!0}),GTe({createInternalComparator:function(){return iTe}}),GTe({strict:!0,createInternalComparator:function(){return iTe}}),GTe({circular:!0,createInternalComparator:function(){return iTe}}),GTe({circular:!0,createInternalComparator:function(){return iTe},strict:!0});function GTe(e){void 0===e&&(e={});var t=e.circular,n=void 0!==t&&t,r=e.createInternalComparator,i=e.createState,o=e.strict,s=void 0!==o&&o,a=function(e){var t=e.circular,n=e.createCustomConfig,r=e.strict,i={areArraysEqual:r?hTe:lTe,areDatesEqual:cTe,areMapsEqual:r?eTe(uTe,hTe):uTe,areObjectsEqual:r?hTe:dTe,arePrimitiveWrappersEqual:pTe,areRegExpsEqual:fTe,areSetsEqual:r?eTe(gTe,hTe):gTe,areTypedArraysEqual:r?hTe:mTe};if(n&&(i=kTe({},i,n(i))),t){var o=tTe(i.areArraysEqual),s=tTe(i.areMapsEqual),a=tTe(i.areObjectsEqual),l=tTe(i.areSetsEqual);i=kTe({},i,{areArraysEqual:o,areMapsEqual:s,areObjectsEqual:a,areSetsEqual:l})}return i}(e),l=function(e){var t=e.areArraysEqual,n=e.areDatesEqual,r=e.areMapsEqual,i=e.areObjectsEqual,o=e.arePrimitiveWrappersEqual,s=e.areRegExpsEqual,a=e.areSetsEqual,l=e.areTypedArraysEqual;return function(e,c,u){if(e===c)return!0;if(null==e||null==c||"object"!==typeof e||"object"!==typeof c)return e!==e&&c!==c;var d=e.constructor;if(d!==c.constructor)return!1;if(d===Object)return i(e,c,u);if(CTe(e))return t(e,c,u);if(null!=ATe&&ATe(e))return l(e,c,u);if(d===Date)return n(e,c,u);if(d===RegExp)return s(e,c,u);if(d===Map)return r(e,c,u);if(d===Set)return a(e,c,u);var h=jTe(e);return h===_Te?n(e,c,u):h===wTe?s(e,c,u):h===bTe?r(e,c,u):h===ETe?a(e,c,u):h===STe?"function"!==typeof e.then&&"function"!==typeof c.then&&i(e,c,u):h===yTe?i(e,c,u):(h===vTe||h===xTe||h===PTe)&&o(e,c,u)}}(a),c=r?r(l):function(e){return function(t,n,r,i,o,s,a){return e(t,n,a)}}(l);return function(e){var t=e.circular,n=e.comparator,r=e.createState,i=e.equals,o=e.strict;if(r)return function(e,s){var a=r(),l=a.cache,c=void 0===l?t?new WeakMap:void 0:l,u=a.meta;return n(e,s,{cache:c,equals:i,meta:u,strict:o})};if(t)return function(e,t){return n(e,t,{cache:new WeakMap,equals:i,meta:void 0,strict:o})};var s={cache:void 0,equals:i,meta:void 0,strict:o};return function(e,t){return n(e,t,s)}}({circular:n,comparator:l,createState:i,equals:c,strict:s})}function TTe(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=-1;requestAnimationFrame((function r(i){n<0&&(n=i),i-n>t?(e(i),n=-1):function(e){"undefined"!==typeof requestAnimationFrame&&requestAnimationFrame(e)}(r)}))}function MTe(e){return MTe="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},MTe(e)}function OTe(e){return function(e){if(Array.isArray(e))return e}(e)||function(e){if("undefined"!==typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"===typeof e)return RTe(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return RTe(e,t)}(e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function RTe(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function DTe(){var e=function(){return null},t=!1,n=function n(r){if(!t){if(Array.isArray(r)){if(!r.length)return;var i=OTe(r),o=i[0],s=i.slice(1);return"number"===typeof o?void TTe(n.bind(null,s),o):(n(o),void TTe(n.bind(null,s)))}"object"===MTe(r)&&e(r),"function"===typeof r&&r()}};return{stop:function(){t=!0},start:function(e){t=!1,n(e)},subscribe:function(t){return e=t,function(){e=function(){return null}}}}}function NTe(e){return NTe="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},NTe(e)}function LTe(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function VTe(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?LTe(Object(n),!0).forEach((function(t){FTe(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):LTe(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function FTe(e,t,n){return(t=function(e){var t=function(e,t){if("object"!==NTe(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==NTe(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===NTe(t)?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var zTe=["Webkit","Moz","O","ms"],BTe=["-webkit-","-moz-","-o-","-ms-"],UTe=["transform","transformOrigin","transition"],WTe=function(e){return e},HTe=function(e,t){return Object.keys(t).reduce((function(n,r){return VTe(VTe({},n),{},FTe({},r,e(r,t[r])))}),{})},qTe=function(e){return Object.keys(e).reduce((function(e,t){return VTe(VTe({},e),function(e,t){if(-1===UTe.indexOf(e))return FTe({},e,Number.isNaN(t)?0:t);var n="transition"===e,r=e.replace(/(\w)/,(function(e){return e.toUpperCase()})),i=t;return zTe.reduce((function(e,o,s){return n&&(i=t.replace(/(transform|transform-origin)/gim,"".concat(BTe[s],"$1"))),VTe(VTe({},e),{},FTe({},o+r,i))}),{})}(t,e[t]))}),e)},XTe=function(e,t,n){return e.map((function(e){return"".concat((r=e,r.replace(/([A-Z])/g,(function(e){return"-".concat(e.toLowerCase())})))," ").concat(t,"ms ").concat(n);var r})).join(",")};function YTe(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,i,o,s,a=[],l=!0,c=!1;try{if(o=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;l=!1}else for(;!(l=(r=o.call(n)).done)&&(a.push(r.value),a.length!==t);l=!0);}catch(u){c=!0,i=u}finally{try{if(!l&&null!=n.return&&(s=n.return(),Object(s)!==s))return}finally{if(c)throw i}}return a}}(e,t)||ZTe(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function KTe(e){return function(e){if(Array.isArray(e))return $Te(e)}(e)||function(e){if("undefined"!==typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||ZTe(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function ZTe(e,t){if(e){if("string"===typeof e)return $Te(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?$Te(e,t):void 0}}function $Te(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var JTe=1e-4,QTe=function(e,t){return[0,3*e,3*t-6*e,3*e-3*t+1]},eMe=function(e,t){return e.map((function(e,n){return e*Math.pow(t,n)})).reduce((function(e,t){return e+t}))},tMe=function(e,t){return function(n){var r=QTe(e,t);return eMe(r,n)}},nMe=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var r=t[0],i=t[1],o=t[2],s=t[3];if(1===t.length)switch(t[0]){case"linear":r=0,i=0,o=1,s=1;break;case"ease":r=.25,i=.1,o=.25,s=1;break;case"ease-in":r=.42,i=0,o=1,s=1;break;case"ease-out":r=.42,i=0,o=.58,s=1;break;case"ease-in-out":r=0,i=0,o=.58,s=1;break;default:var a=t[0].split("(");if("cubic-bezier"===a[0]&&4===a[1].split(")")[0].split(",").length){var l=a[1].split(")")[0].split(",").map((function(e){return parseFloat(e)})),c=YTe(l,4);r=c[0],i=c[1],o=c[2],s=c[3]}}[r,o,i,s].every((function(e){return"number"===typeof e&&e>=0&&e<=1}));var u,d,h=tMe(r,o),p=tMe(i,s),f=(u=r,d=o,function(e){var t=QTe(u,d),n=[].concat(KTe(t.map((function(e,t){return e*t})).slice(1)),[0]);return eMe(n,e)}),g=function(e){return e>1?1:e<0?0:e},m=function(e){for(var t=e>1?1:e,n=t,r=0;r<8;++r){var i=h(n)-t,o=f(n);if(Math.abs(i-t)<JTe||o<JTe)return p(n);n=g(n-i/o)}return p(n)};return m.isStepper=!1,m},rMe=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var r=t[0];if("string"===typeof r)switch(r){case"ease":case"ease-in-out":case"ease-out":case"ease-in":case"linear":return nMe(r);case"spring":return function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.stiff,n=void 0===t?100:t,r=e.damping,i=void 0===r?8:r,o=e.dt,s=void 0===o?17:o,a=function(e,t,r){var o=r+(-(e-t)*n-r*i)*s/1e3,a=r*s/1e3+e;return Math.abs(a-t)<JTe&&Math.abs(o)<JTe?[t,0]:[a,o]};return a.isStepper=!0,a.dt=s,a}();default:if("cubic-bezier"===r.split("(")[0])return nMe(r)}return"function"===typeof r?r:null};function iMe(e){return iMe="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},iMe(e)}function oMe(e){return function(e){if(Array.isArray(e))return dMe(e)}(e)||function(e){if("undefined"!==typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||uMe(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function sMe(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function aMe(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?sMe(Object(n),!0).forEach((function(t){lMe(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):sMe(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function lMe(e,t,n){return(t=function(e){var t=function(e,t){if("object"!==iMe(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==iMe(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===iMe(t)?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function cMe(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,i,o,s,a=[],l=!0,c=!1;try{if(o=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;l=!1}else for(;!(l=(r=o.call(n)).done)&&(a.push(r.value),a.length!==t);l=!0);}catch(u){c=!0,i=u}finally{try{if(!l&&null!=n.return&&(s=n.return(),Object(s)!==s))return}finally{if(c)throw i}}return a}}(e,t)||uMe(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function uMe(e,t){if(e){if("string"===typeof e)return dMe(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?dMe(e,t):void 0}}function dMe(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var hMe=function(e,t,n){return e+(t-e)*n},pMe=function(e){return e.from!==e.to},fMe=function e(t,n,r){var i=HTe((function(e,n){if(pMe(n)){var r=cMe(t(n.from,n.to,n.velocity),2),i=r[0],o=r[1];return aMe(aMe({},n),{},{from:i,velocity:o})}return n}),n);return r<1?HTe((function(e,t){return pMe(t)?aMe(aMe({},t),{},{velocity:hMe(t.velocity,i[e].velocity,r),from:hMe(t.from,i[e].from,r)}):t}),n):e(t,i,r-1)};const gMe=function(e,t,n,r,i){var o,s,a,l,c=(o=e,s=t,[Object.keys(o),Object.keys(s)].reduce((function(e,t){return e.filter((function(e){return t.includes(e)}))}))),u=c.reduce((function(n,r){return aMe(aMe({},n),{},lMe({},r,[e[r],t[r]]))}),{}),d=c.reduce((function(n,r){return aMe(aMe({},n),{},lMe({},r,{from:e[r],velocity:0,to:t[r]}))}),{}),h=-1,p=function(){return null};return p=n.isStepper?function(r){a||(a=r);var o=(r-a)/n.dt;d=fMe(n,d,o),i(aMe(aMe(aMe({},e),t),HTe((function(e,t){return t.from}),d))),a=r,Object.values(d).filter(pMe).length&&(h=requestAnimationFrame(p))}:function(o){l||(l=o);var s=(o-l)/r,a=HTe((function(e,t){return hMe.apply(void 0,oMe(t).concat([n(s)]))}),u);if(i(aMe(aMe(aMe({},e),t),a)),s<1)h=requestAnimationFrame(p);else{var c=HTe((function(e,t){return hMe.apply(void 0,oMe(t).concat([n(1)]))}),u);i(aMe(aMe(aMe({},e),t),c))}},function(){return requestAnimationFrame(p),function(){cancelAnimationFrame(h)}}};function mMe(e){return mMe="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},mMe(e)}var yMe=["children","begin","duration","attributeName","easing","isActive","steps","from","to","canBegin","onAnimationEnd","shouldReAnimate","onAnimationReStart"];function vMe(e,t){if(null==e)return{};var n,r,i=function(e,t){if(null==e)return{};var n,r,i={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(i[n]=e[n]);return i}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function _Me(e){return function(e){if(Array.isArray(e))return bMe(e)}(e)||function(e){if("undefined"!==typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"===typeof e)return bMe(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return bMe(e,t)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function bMe(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function xMe(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function SMe(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?xMe(Object(n),!0).forEach((function(t){wMe(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):xMe(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function wMe(e,t,n){return(t=PMe(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function EMe(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,PMe(r.key),r)}}function PMe(e){var t=function(e,t){if("object"!==mMe(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==mMe(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===mMe(t)?t:String(t)}function CMe(e,t){return CMe=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},CMe(e,t)}function AMe(e){var t=function(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=IMe(e);if(t){var i=IMe(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return kMe(this,n)}}function kMe(e,t){if(t&&("object"===mMe(t)||"function"===typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return jMe(e)}function jMe(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function IMe(e){return IMe=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},IMe(e)}var GMe=function(e){!function(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&CMe(e,t)}(s,e);var t,r,i,o=AMe(s);function s(e,t){var n;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,s);var r=(n=o.call(this,e,t)).props,i=r.isActive,a=r.attributeName,l=r.from,c=r.to,u=r.steps,d=r.children,h=r.duration;if(n.handleStyleChange=n.handleStyleChange.bind(jMe(n)),n.changeStyle=n.changeStyle.bind(jMe(n)),!i||h<=0)return n.state={style:{}},"function"===typeof d&&(n.state={style:c}),kMe(n);if(u&&u.length)n.state={style:u[0].style};else if(l){if("function"===typeof d)return n.state={style:l},kMe(n);n.state={style:a?wMe({},a,l):l}}else n.state={style:{}};return n}return t=s,r=[{key:"componentDidMount",value:function(){var e=this.props,t=e.isActive,n=e.canBegin;this.mounted=!0,t&&n&&this.runAnimation(this.props)}},{key:"componentDidUpdate",value:function(e){var t=this.props,n=t.isActive,r=t.canBegin,i=t.attributeName,o=t.shouldReAnimate,s=t.to,a=t.from,l=this.state.style;if(r)if(n){if(!(ITe(e.to,s)&&e.canBegin&&e.isActive)){var c=!e.canBegin||!e.isActive;this.manager&&this.manager.stop(),this.stopJSAnimation&&this.stopJSAnimation();var u=c||o?a:e.to;if(this.state&&l){var d={style:i?wMe({},i,u):u};(i&&[i]!==u||!i&&l!==u)&&this.setState(d)}this.runAnimation(SMe(SMe({},this.props),{},{from:u,begin:0}))}}else{var h={style:i?wMe({},i,s):s};this.state&&l&&(i&&l[i]!==s||!i&&l!==s)&&this.setState(h)}}},{key:"componentWillUnmount",value:function(){this.mounted=!1;var e=this.props.onAnimationEnd;this.unSubscribe&&this.unSubscribe(),this.manager&&(this.manager.stop(),this.manager=null),this.stopJSAnimation&&this.stopJSAnimation(),e&&e()}},{key:"handleStyleChange",value:function(e){this.changeStyle(e)}},{key:"changeStyle",value:function(e){this.mounted&&this.setState({style:e})}},{key:"runJSAnimation",value:function(e){var t=this,n=e.from,r=e.to,i=e.duration,o=e.easing,s=e.begin,a=e.onAnimationEnd,l=e.onAnimationStart,c=gMe(n,r,rMe(o),i,this.changeStyle);this.manager.start([l,s,function(){t.stopJSAnimation=c()},i,a])}},{key:"runStepAnimation",value:function(e){var t=this,n=e.steps,r=e.begin,i=e.onAnimationStart,o=n[0],s=o.style,a=o.duration,l=void 0===a?0:a;return this.manager.start([i].concat(_Me(n.reduce((function(e,r,i){if(0===i)return e;var o=r.duration,s=r.easing,a=void 0===s?"ease":s,l=r.style,c=r.properties,u=r.onAnimationEnd,d=i>0?n[i-1]:r,h=c||Object.keys(l);if("function"===typeof a||"spring"===a)return[].concat(_Me(e),[t.runJSAnimation.bind(t,{from:d.style,to:l,duration:o,easing:a}),o]);var p=XTe(h,o,a),f=SMe(SMe(SMe({},d.style),l),{},{transition:p});return[].concat(_Me(e),[f,o,u]).filter(WTe)}),[s,Math.max(l,r)])),[e.onAnimationEnd]))}},{key:"runAnimation",value:function(e){this.manager||(this.manager=DTe());var t=e.begin,n=e.duration,r=e.attributeName,i=e.to,o=e.easing,s=e.onAnimationStart,a=e.onAnimationEnd,l=e.steps,c=e.children,u=this.manager;if(this.unSubscribe=u.subscribe(this.handleStyleChange),"function"!==typeof o&&"function"!==typeof c&&"spring"!==o)if(l.length>1)this.runStepAnimation(e);else{var d=r?wMe({},r,i):i,h=XTe(Object.keys(d),n,o);u.start([s,t,SMe(SMe({},d),{},{transition:h}),n,a])}else this.runJSAnimation(e)}},{key:"render",value:function(){var e=this.props,t=e.children,r=(e.begin,e.duration),i=(e.attributeName,e.easing,e.isActive),o=(e.steps,e.from,e.to,e.canBegin,e.onAnimationEnd,e.shouldReAnimate,e.onAnimationReStart,vMe(e,yMe)),s=n.Children.count(t),a=qTe(this.state.style);if("function"===typeof t)return t(a);if(!i||0===s||r<=0)return t;var l=function(e){var t=e.props,r=t.style,i=void 0===r?{}:r,s=t.className;return(0,n.cloneElement)(e,SMe(SMe({},o),{},{style:SMe(SMe({},i),a),className:s}))};return 1===s?l(n.Children.only(t)):n.createElement("div",null,n.Children.map(t,(function(e){return l(e)})))}}],r&&EMe(t.prototype,r),i&&EMe(t,i),Object.defineProperty(t,"prototype",{writable:!1}),s}(n.PureComponent);GMe.displayName="Animate",GMe.defaultProps={begin:0,duration:1e3,from:"",to:"",attributeName:"",easing:"ease",isActive:!0,canBegin:!0,steps:[],onAnimationEnd:function(){},onAnimationStart:function(){}},GMe.propTypes={from:tt().oneOfType([tt().object,tt().string]),to:tt().oneOfType([tt().object,tt().string]),attributeName:tt().string,duration:tt().number,begin:tt().number,easing:tt().oneOfType([tt().string,tt().func]),steps:tt().arrayOf(tt().shape({duration:tt().number.isRequired,style:tt().object.isRequired,easing:tt().oneOfType([tt().oneOf(["ease","ease-in","ease-out","ease-in-out","linear"]),tt().func]),properties:tt().arrayOf("string"),onAnimationEnd:tt().func})),children:tt().oneOfType([tt().node,tt().func]),isActive:tt().bool,canBegin:tt().bool,onAnimationEnd:tt().func,shouldReAnimate:tt().bool,onAnimationStart:tt().func,onAnimationReStart:tt().func};const TMe=GMe;var MMe=__webpack_require__(75176),OMe=["children","appearOptions","enterOptions","leaveOptions"];function RMe(e){return RMe="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},RMe(e)}function DMe(){return DMe=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},DMe.apply(this,arguments)}function NMe(e,t){if(null==e)return{};var n,r,i=function(e,t){if(null==e)return{};var n,r,i={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(i[n]=e[n]);return i}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function LMe(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function VMe(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?LMe(Object(n),!0).forEach((function(t){HMe(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):LMe(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function FMe(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,qMe(r.key),r)}}function zMe(e,t){return zMe=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},zMe(e,t)}function BMe(e){var t=function(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=WMe(e);if(t){var i=WMe(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return function(e,t){if(t&&("object"===RMe(t)||"function"===typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return UMe(e)}(this,n)}}function UMe(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function WMe(e){return WMe=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},WMe(e)}function HMe(e,t,n){return(t=qMe(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function qMe(e){var t=function(e,t){if("object"!==RMe(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==RMe(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===RMe(t)?t:String(t)}void 0===Number.isFinite&&(Number.isFinite=function(e){return"number"===typeof e&&isFinite(e)});var XMe=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.steps,n=e.duration;return t&&t.length?t.reduce((function(e,t){return e+(Number.isFinite(t.duration)&&t.duration>0?t.duration:0)}),0):Number.isFinite(n)?n:0},YMe=function(e){!function(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&zMe(e,t)}(s,e);var t,r,i,o=BMe(s);function s(){var e;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,s),HMe(UMe(e=o.call(this)),"handleEnter",(function(t,n){var r=e.props,i=r.appearOptions,o=r.enterOptions;e.handleStyleActive(n?i:o)})),HMe(UMe(e),"handleExit",(function(){var t=e.props.leaveOptions;e.handleStyleActive(t)})),e.state={isActive:!1},e}return t=s,r=[{key:"handleStyleActive",value:function(e){if(e){var t=e.onAnimationEnd?function(){e.onAnimationEnd()}:null;this.setState(VMe(VMe({},e),{},{onAnimationEnd:t,isActive:!0}))}}},{key:"parseTimeout",value:function(){var e=this.props,t=e.appearOptions,n=e.enterOptions,r=e.leaveOptions;return XMe(t)+XMe(n)+XMe(r)}},{key:"render",value:function(){var e=this,t=this.props,r=t.children,i=(t.appearOptions,t.enterOptions,t.leaveOptions,NMe(t,OMe));return n.createElement(MMe.Transition,DMe({},i,{onEnter:this.handleEnter,onExit:this.handleExit,timeout:this.parseTimeout()}),(function(){return n.createElement(TMe,e.state,n.Children.only(r))}))}}],r&&FMe(t.prototype,r),i&&FMe(t,i),Object.defineProperty(t,"prototype",{writable:!1}),s}(n.Component);YMe.propTypes={appearOptions:tt().object,enterOptions:tt().object,leaveOptions:tt().object,children:tt().element};const KMe=YMe;function ZMe(e){var t=e.component,r=e.children,i=e.appear,o=e.enter,s=e.leave;return n.createElement(MMe.TransitionGroup,{component:t},n.Children.map(r,(function(e,t){return n.createElement(KMe,{appearOptions:i,enterOptions:o,leaveOptions:s,key:"child-".concat(t)},e)})))}ZMe.propTypes={appear:tt().object,enter:tt().object,leave:tt().object,children:tt().oneOfType([tt().array,tt().element]),component:tt().any},ZMe.defaultProps={component:"span"};const $Me=TMe;function JMe(e){return JMe="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},JMe(e)}function QMe(e,t,n){return(t=function(e){var t=function(e,t){if("object"!==JMe(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==JMe(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===JMe(t)?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var eOe="recharts-tooltip-wrapper",tOe={visibility:"hidden"};function nOe(e){var t,n=e.coordinate,r=e.translateX,i=e.translateY;return UIe(eOe,(QMe(t={},"".concat(eOe,"-right"),tGe(r)&&n&&tGe(n.x)&&r>=n.x),QMe(t,"".concat(eOe,"-left"),tGe(r)&&n&&tGe(n.x)&&r<n.x),QMe(t,"".concat(eOe,"-bottom"),tGe(i)&&n&&tGe(n.y)&&i>=n.y),QMe(t,"".concat(eOe,"-top"),tGe(i)&&n&&tGe(n.y)&&i<n.y),t))}function rOe(e){var t=e.allowEscapeViewBox,n=e.coordinate,r=e.key,i=e.offsetTopLeft,o=e.position,s=e.reverseDirection,a=e.tooltipDimension,l=e.viewBox,c=e.viewBoxDimension;if(o&&tGe(o[r]))return o[r];var u=n[r]-a-i,d=n[r]+i;return t[r]?s[r]?u:d:s[r]?u<l[r]?Math.max(d,l[r]):Math.max(u,l[r]):d+a>l[r]+c?Math.max(u,l[r]):Math.max(d,l[r])}function iOe(e){var t,n,r,i=e.allowEscapeViewBox,o=e.coordinate,s=e.offsetTopLeft,a=e.position,l=e.reverseDirection,c=e.tooltipBox,u=e.useTranslate3d,d=e.viewBox;return t=c.height>0&&c.width>0&&o?function(e){var t=e.translateX,n=e.translateY,r=e.useTranslate3d;return qTe({transform:r?"translate3d(".concat(t,"px, ").concat(n,"px, 0)"):"translate(".concat(t,"px, ").concat(n,"px)")})}({translateX:n=rOe({allowEscapeViewBox:i,coordinate:o,key:"x",offsetTopLeft:s,position:a,reverseDirection:l,tooltipDimension:c.width,viewBox:d,viewBoxDimension:d.width}),translateY:r=rOe({allowEscapeViewBox:i,coordinate:o,key:"y",offsetTopLeft:s,position:a,reverseDirection:l,tooltipDimension:c.height,viewBox:d,viewBoxDimension:d.height}),useTranslate3d:u}):tOe,{cssProperties:t,cssClasses:nOe({translateX:n,translateY:r,coordinate:o})}}function oOe(e){return oOe="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},oOe(e)}function sOe(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function aOe(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?sOe(Object(n),!0).forEach((function(t){pOe(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):sOe(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function lOe(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,fOe(r.key),r)}}function cOe(e,t){return cOe=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},cOe(e,t)}function uOe(e){var t=function(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=hOe(e);if(t){var i=hOe(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return function(e,t){if(t&&("object"===oOe(t)||"function"===typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return dOe(e)}(this,n)}}function dOe(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function hOe(e){return hOe=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},hOe(e)}function pOe(e,t,n){return(t=fOe(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function fOe(e){var t=function(e,t){if("object"!==oOe(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==oOe(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===oOe(t)?t:String(t)}var gOe=function(e){!function(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&cOe(e,t)}(s,e);var t,r,i,o=uOe(s);function s(){var e;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,s);for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return pOe(dOe(e=o.call.apply(o,[this].concat(n))),"state",{dismissed:!1,dismissedAtCoordinate:{x:0,y:0}}),pOe(dOe(e),"lastBoundingBox",{width:-1,height:-1}),pOe(dOe(e),"handleKeyDown",(function(t){var n,r,i,o;"Escape"===t.key&&e.setState({dismissed:!0,dismissedAtCoordinate:{x:null!==(n=null===(r=e.props.coordinate)||void 0===r?void 0:r.x)&&void 0!==n?n:0,y:null!==(i=null===(o=e.props.coordinate)||void 0===o?void 0:o.y)&&void 0!==i?i:0}})})),e}return t=s,r=[{key:"updateBBox",value:function(){if(this.wrapperNode&&this.wrapperNode.getBoundingClientRect){var e=this.wrapperNode.getBoundingClientRect();(Math.abs(e.width-this.lastBoundingBox.width)>1||Math.abs(e.height-this.lastBoundingBox.height)>1)&&(this.lastBoundingBox.width=e.width,this.lastBoundingBox.height=e.height)}else-1===this.lastBoundingBox.width&&-1===this.lastBoundingBox.height||(this.lastBoundingBox.width=-1,this.lastBoundingBox.height=-1)}},{key:"componentDidMount",value:function(){document.addEventListener("keydown",this.handleKeyDown),this.updateBBox()}},{key:"componentWillUnmount",value:function(){document.removeEventListener("keydown",this.handleKeyDown)}},{key:"componentDidUpdate",value:function(){var e,t;this.props.active&&this.updateBBox(),this.state.dismissed&&((null===(e=this.props.coordinate)||void 0===e?void 0:e.x)===this.state.dismissedAtCoordinate.x&&(null===(t=this.props.coordinate)||void 0===t?void 0:t.y)===this.state.dismissedAtCoordinate.y||(this.state.dismissed=!1))}},{key:"render",value:function(){var e=this,t=this.props,r=t.active,i=t.allowEscapeViewBox,o=t.animationDuration,s=t.animationEasing,a=t.children,l=t.coordinate,c=t.hasPayload,u=t.isAnimationActive,d=t.offset,h=t.position,p=t.reverseDirection,f=t.useTranslate3d,g=t.viewBox,m=t.wrapperStyle,y=iOe({allowEscapeViewBox:i,coordinate:l,offsetTopLeft:d,position:h,reverseDirection:p,tooltipBox:{height:this.lastBoundingBox.height,width:this.lastBoundingBox.width},useTranslate3d:f,viewBox:g}),v=y.cssClasses,_=y.cssProperties,b=aOe(aOe(aOe({},u&&r&&qTe({transition:"transform ".concat(o,"ms ").concat(s)})),_),{},{pointerEvents:"none",visibility:!this.state.dismissed&&r&&c?"visible":"hidden",position:"absolute",top:0,left:0},m);return n.createElement("div",{tabIndex:-1,role:"dialog",className:v,style:b,ref:function(t){e.wrapperNode=t}},a)}}],r&&lOe(t.prototype,r),i&&lOe(t,i),Object.defineProperty(t,"prototype",{writable:!1}),s}(n.PureComponent),mOe={isSsr:!("undefined"!==typeof window&&window.document&&window.document.createElement&&window.setTimeout),get:function(e){return mOe[e]},set:function(e,t){if("string"===typeof e)mOe[e]=t;else{var n=Object.keys(e);n&&n.length&&n.forEach((function(t){mOe[t]=e[t]}))}}},yOe=__webpack_require__(75264),vOe=__webpack_require__.n(yOe);function _Oe(e,t,n){return!0===t?vOe()(e,n):GIe()(t)?vOe()(e,t):e}function bOe(e){return bOe="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},bOe(e)}function xOe(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function SOe(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?xOe(Object(n),!0).forEach((function(t){AOe(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):xOe(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function wOe(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,kOe(r.key),r)}}function EOe(e,t){return EOe=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},EOe(e,t)}function POe(e){var t=function(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=COe(e);if(t){var i=COe(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return function(e,t){if(t&&("object"===bOe(t)||"function"===typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(this,n)}}function COe(e){return COe=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},COe(e)}function AOe(e,t,n){return(t=kOe(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function kOe(e){var t=function(e,t){if("object"!==bOe(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==bOe(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===bOe(t)?t:String(t)}function jOe(e){return e.dataKey}var IOe=function(e){!function(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&EOe(e,t)}(s,e);var t,r,i,o=POe(s);function s(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,s),o.apply(this,arguments)}return t=s,r=[{key:"render",value:function(){var e=this,t=this.props,r=t.active,i=t.allowEscapeViewBox,o=t.animationDuration,s=t.animationEasing,a=t.content,l=t.coordinate,c=t.filterNull,u=t.isAnimationActive,d=t.offset,h=t.payload,p=t.payloadUniqBy,f=t.position,g=t.reverseDirection,m=t.useTranslate3d,y=t.viewBox,v=t.wrapperStyle,_=null!==h&&void 0!==h?h:[];c&&_.length&&(_=_Oe(h.filter((function(t){return null!=t.value&&(!0!==t.hide||e.props.includeHidden)})),p,jOe));var b=_.length>0;return n.createElement(gOe,{allowEscapeViewBox:i,animationDuration:o,animationEasing:s,isAnimationActive:u,active:r,coordinate:l,hasPayload:b,offset:d,position:f,reverseDirection:g,useTranslate3d:m,viewBox:y,wrapperStyle:v},function(e,t){return n.isValidElement(e)?n.cloneElement(e,t):"function"===typeof e?n.createElement(e,t):n.createElement(ZGe,t)}(a,SOe(SOe({},this.props),{},{payload:_})))}}],r&&wOe(t.prototype,r),i&&wOe(t,i),Object.defineProperty(t,"prototype",{writable:!1}),s}(n.PureComponent);AOe(IOe,"displayName","Tooltip"),AOe(IOe,"defaultProps",{allowEscapeViewBox:{x:!1,y:!1},animationDuration:400,animationEasing:"ease",contentStyle:{},coordinate:{x:0,y:0},cursor:!0,cursorStyle:{},filterNull:!0,isAnimationActive:!mOe.isSsr,itemStyle:{},labelStyle:{},offset:10,reverseDirection:{x:!1,y:!1},separator:" : ",trigger:"hover",useTranslate3d:!1,viewBox:{x:0,y:0,height:0,width:0},wrapperStyle:{}});var GOe=function(e,t){for(var n=arguments.length,r=new Array(n>2?n-2:0),i=2;i<n;i++)r[i-2]=arguments[i]},TOe=__webpack_require__(57987),MOe=__webpack_require__.n(TOe);Math.abs,Math.atan2;const OOe=Math.cos,ROe=(Math.max,Math.min,Math.sin),DOe=Math.sqrt,NOe=Math.PI,LOe=2*NOe;const VOe={draw(e,t){const n=DOe(t/NOe);e.moveTo(n,0),e.arc(0,0,n,0,LOe)}},FOe={draw(e,t){const n=DOe(t/5)/2;e.moveTo(-3*n,-n),e.lineTo(-n,-n),e.lineTo(-n,-3*n),e.lineTo(n,-3*n),e.lineTo(n,-n),e.lineTo(3*n,-n),e.lineTo(3*n,n),e.lineTo(n,n),e.lineTo(n,3*n),e.lineTo(-n,3*n),e.lineTo(-n,n),e.lineTo(-3*n,n),e.closePath()}},zOe=DOe(1/3),BOe=2*zOe,UOe={draw(e,t){const n=DOe(t/BOe),r=n*zOe;e.moveTo(0,-n),e.lineTo(r,0),e.lineTo(0,n),e.lineTo(-r,0),e.closePath()}},WOe={draw(e,t){const n=DOe(t),r=-n/2;e.rect(r,r,n,n)}},HOe=ROe(NOe/10)/ROe(7*NOe/10),qOe=ROe(LOe/10)*HOe,XOe=-OOe(LOe/10)*HOe,YOe={draw(e,t){const n=DOe(.8908130915292852*t),r=qOe*n,i=XOe*n;e.moveTo(0,-n),e.lineTo(r,i);for(let o=1;o<5;++o){const t=LOe*o/5,s=OOe(t),a=ROe(t);e.lineTo(a*n,-s*n),e.lineTo(s*r-a*i,a*r+s*i)}e.closePath()}},KOe=DOe(3),ZOe={draw(e,t){const n=-DOe(t/(3*KOe));e.moveTo(0,2*n),e.lineTo(-KOe*n,-n),e.lineTo(KOe*n,-n),e.closePath()}},$Oe=-.5,JOe=DOe(3)/2,QOe=1/DOe(12),eRe=3*(QOe/2+1),tRe={draw(e,t){const n=DOe(t/eRe),r=n/2,i=n*QOe,o=r,s=n*QOe+n,a=-o,l=s;e.moveTo(r,i),e.lineTo(o,s),e.lineTo(a,l),e.lineTo($Oe*r-JOe*i,JOe*r+$Oe*i),e.lineTo($Oe*o-JOe*s,JOe*o+$Oe*s),e.lineTo($Oe*a-JOe*l,JOe*a+$Oe*l),e.lineTo($Oe*r+JOe*i,$Oe*i-JOe*r),e.lineTo($Oe*o+JOe*s,$Oe*s-JOe*o),e.lineTo($Oe*a+JOe*l,$Oe*l-JOe*a),e.closePath()}};function nRe(e){return function(){return e}}var rRe,iRe,oRe,sRe,aRe,lRe,cRe,uRe,dRe,hRe,pRe,fRe,gRe,mRe;const yRe=Math.PI,vRe=2*yRe,_Re=1e-6,bRe=vRe-_Re;function xRe(e){this._+=e[0];for(let t=1,n=e.length;t<n;++t)this._+=arguments[t]+e[t]}class SRe{constructor(e){this._x0=this._y0=this._x1=this._y1=null,this._="",this._append=null==e?xRe:function(e){let t=Math.floor(e);if(!(t>=0))throw new Error("invalid digits: ".concat(e));if(t>15)return xRe;const n=10**t;return function(e){this._+=e[0];for(let t=1,r=e.length;t<r;++t)this._+=Math.round(arguments[t]*n)/n+e[t]}}(e)}moveTo(e,t){this._append(rRe||(rRe=js(["M",",",""])),this._x0=this._x1=+e,this._y0=this._y1=+t)}closePath(){null!==this._x1&&(this._x1=this._x0,this._y1=this._y0,this._append(iRe||(iRe=js(["Z"]))))}lineTo(e,t){this._append(oRe||(oRe=js(["L",",",""])),this._x1=+e,this._y1=+t)}quadraticCurveTo(e,t,n,r){this._append(sRe||(sRe=js(["Q",",",",",",",""])),+e,+t,this._x1=+n,this._y1=+r)}bezierCurveTo(e,t,n,r,i,o){this._append(aRe||(aRe=js(["C",",",",",",",",",",",""])),+e,+t,+n,+r,this._x1=+i,this._y1=+o)}arcTo(e,t,n,r,i){if(e=+e,t=+t,n=+n,r=+r,(i=+i)<0)throw new Error("negative radius: ".concat(i));let o=this._x1,s=this._y1,a=n-e,l=r-t,c=o-e,u=s-t,d=c*c+u*u;if(null===this._x1)this._append(lRe||(lRe=js(["M",",",""])),this._x1=e,this._y1=t);else if(d>_Re)if(Math.abs(u*a-l*c)>_Re&&i){let h=n-o,p=r-s,f=a*a+l*l,g=h*h+p*p,m=Math.sqrt(f),y=Math.sqrt(d),v=i*Math.tan((yRe-Math.acos((f+d-g)/(2*m*y)))/2),_=v/y,b=v/m;Math.abs(_-1)>_Re&&this._append(uRe||(uRe=js(["L",",",""])),e+_*c,t+_*u),this._append(dRe||(dRe=js(["A",",",",0,0,",",",",",""])),i,i,+(u*h>c*p),this._x1=e+b*a,this._y1=t+b*l)}else this._append(cRe||(cRe=js(["L",",",""])),this._x1=e,this._y1=t);else;}arc(e,t,n,r,i,o){if(e=+e,t=+t,o=!!o,(n=+n)<0)throw new Error("negative radius: ".concat(n));let s=n*Math.cos(r),a=n*Math.sin(r),l=e+s,c=t+a,u=1^o,d=o?r-i:i-r;null===this._x1?this._append(hRe||(hRe=js(["M",",",""])),l,c):(Math.abs(this._x1-l)>_Re||Math.abs(this._y1-c)>_Re)&&this._append(pRe||(pRe=js(["L",",",""])),l,c),n&&(d<0&&(d=d%vRe+vRe),d>bRe?this._append(fRe||(fRe=js(["A",",",",0,1,",",",",","A",",",",0,1,",",",",",""])),n,n,u,e-s,t-a,n,n,u,this._x1=l,this._y1=c):d>_Re&&this._append(gRe||(gRe=js(["A",",",",0,",",",",",",",""])),n,n,+(d>=yRe),u,this._x1=e+n*Math.cos(i),this._y1=t+n*Math.sin(i)))}rect(e,t,n,r){this._append(mRe||(mRe=js(["M",",","h","v","h","Z"])),this._x0=this._x1=+e,this._y0=this._y1=+t,n=+n,+r,-n)}toString(){return this._}}function wRe(e){let t=3;return e.digits=function(n){if(!arguments.length)return t;if(null==n)t=null;else{const e=Math.floor(n);if(!(e>=0))throw new RangeError("invalid digits: ".concat(n));t=e}return e},()=>new SRe(t)}SRe.prototype;DOe(3),DOe(3);function ERe(e){return ERe="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},ERe(e)}var PRe=["type","size","sizeType"];function CRe(){return CRe=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},CRe.apply(this,arguments)}function ARe(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function kRe(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ARe(Object(n),!0).forEach((function(t){jRe(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ARe(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function jRe(e,t,n){return(t=function(e){var t=function(e,t){if("object"!==ERe(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==ERe(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===ERe(t)?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function IRe(e,t){if(null==e)return{};var n,r,i=function(e,t){if(null==e)return{};var n,r,i={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(i[n]=e[n]);return i}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}var GRe={symbolCircle:VOe,symbolCross:FOe,symbolDiamond:UOe,symbolSquare:WOe,symbolStar:YOe,symbolTriangle:ZOe,symbolWye:tRe},TRe=Math.PI/180,MRe=function(e){var t=e.type,r=void 0===t?"circle":t,i=e.size,o=void 0===i?64:i,s=e.sizeType,a=void 0===s?"area":s,l=kRe(kRe({},IRe(e,PRe)),{},{type:r,size:o,sizeType:a}),c=l.className,u=l.cx,d=l.cy,h=GGe(l,!0);return u===+u&&d===+d&&o===+o?n.createElement("path",CRe({},h,{className:UIe("recharts-symbols",c),transform:"translate(".concat(u,", ").concat(d,")"),d:function(){var e=function(e){var t="symbol".concat(MOe()(e));return GRe[t]||VOe}(r),t=function(e,t){let n=null,r=wRe(i);function i(){let i;if(n||(n=i=r()),e.apply(this,arguments).draw(n,+t.apply(this,arguments)),i)return n=null,i+""||null}return e="function"===typeof e?e:nRe(e||VOe),t="function"===typeof t?t:nRe(void 0===t?64:+t),i.type=function(t){return arguments.length?(e="function"===typeof t?t:nRe(t),i):e},i.size=function(e){return arguments.length?(t="function"===typeof e?e:nRe(+e),i):t},i.context=function(e){return arguments.length?(n=null==e?null:e,i):n},i}().type(e).size(function(e,t,n){if("area"===t)return e;switch(n){case"cross":return 5*e*e/9;case"diamond":return.5*e*e/Math.sqrt(3);case"square":return e*e;case"star":var r=18*TRe;return 1.25*e*e*(Math.tan(r)-Math.tan(2*r)*Math.pow(Math.tan(r),2));case"triangle":return Math.sqrt(3)*e*e/4;case"wye":return(21-10*Math.sqrt(3))*e*e/8;default:return Math.PI*e*e/4}}(o,a,r));return t()}()})):null};function ORe(e){return ORe="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},ORe(e)}function RRe(){return RRe=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},RRe.apply(this,arguments)}function DRe(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function NRe(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,BRe(r.key),r)}}function LRe(e,t){return LRe=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},LRe(e,t)}function VRe(e){var t=function(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=FRe(e);if(t){var i=FRe(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return function(e,t){if(t&&("object"===ORe(t)||"function"===typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(this,n)}}function FRe(e){return FRe=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},FRe(e)}function zRe(e,t,n){return(t=BRe(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function BRe(e){var t=function(e,t){if("object"!==ORe(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==ORe(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===ORe(t)?t:String(t)}MRe.registerSymbol=function(e,t){GRe["symbol".concat(MOe()(e))]=t};var URe=32,WRe=function(e){!function(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&LRe(e,t)}(s,e);var t,r,i,o=VRe(s);function s(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,s),o.apply(this,arguments)}return t=s,r=[{key:"renderIcon",value:function(e){var t=this.props.inactiveColor,r=16,i=5.333333333333333,o=10.666666666666666,s=e.inactive?t:e.color;if("plainline"===e.type)return n.createElement("line",{strokeWidth:4,fill:"none",stroke:s,strokeDasharray:e.payload.strokeDasharray,x1:0,y1:r,x2:URe,y2:r,className:"recharts-legend-icon"});if("line"===e.type)return n.createElement("path",{strokeWidth:4,fill:"none",stroke:s,d:"M0,".concat(r,"h").concat(o,"\n            A").concat(i,",").concat(i,",0,1,1,").concat(2*o,",").concat(r,"\n            H").concat(URe,"M").concat(2*o,",").concat(r,"\n            A").concat(i,",").concat(i,",0,1,1,").concat(o,",").concat(r),className:"recharts-legend-icon"});if("rect"===e.type)return n.createElement("path",{stroke:"none",fill:s,d:"M0,".concat(4,"h").concat(URe,"v").concat(24,"h").concat(-32,"z"),className:"recharts-legend-icon"});if(n.isValidElement(e.legendIcon)){var a=function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?DRe(Object(n),!0).forEach((function(t){zRe(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):DRe(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({},e);return delete a.legendIcon,n.cloneElement(e.legendIcon,a)}return n.createElement(MRe,{fill:s,cx:r,cy:r,size:URe,sizeType:"diameter",type:e.type})}},{key:"renderItems",value:function(){var e=this,t=this.props,r=t.payload,i=t.iconSize,o=t.layout,s=t.formatter,a=t.inactiveColor,l={x:0,y:0,width:URe,height:URe},c={display:"horizontal"===o?"inline-block":"block",marginRight:10},u={display:"inline-block",verticalAlign:"middle",marginRight:4};return r.map((function(t,r){var o,d=t.formatter||s,h=UIe((zRe(o={"recharts-legend-item":!0},"legend-item-".concat(r),!0),zRe(o,"inactive",t.inactive),o));if("none"===t.type)return null;var p=GIe()(t.value)?null:t.value;GOe(!GIe()(t.value),'The name property is also required when using a function for the dataKey of a chart\'s cartesian components. Ex: <Bar name="Name of my Data"/>');var f=t.inactive?a:t.color;return n.createElement("li",RRe({className:h,style:c,key:"legend-item-".concat(r)},mGe(e.props,t,r)),n.createElement(LGe,{width:i,height:i,viewBox:l,style:u},e.renderIcon(t)),n.createElement("span",{className:"recharts-legend-item-text",style:{color:f}},d?d(p,t,r):p))}))}},{key:"render",value:function(){var e=this.props,t=e.payload,r=e.layout,i=e.align;if(!t||!t.length)return null;var o={padding:0,margin:0,textAlign:"horizontal"===r?i:"left"};return n.createElement("ul",{className:"recharts-default-legend",style:o},this.renderItems())}}],r&&NRe(t.prototype,r),i&&NRe(t,i),Object.defineProperty(t,"prototype",{writable:!1}),s}(n.PureComponent);function HRe(e){return HRe="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},HRe(e)}zRe(WRe,"displayName","Legend"),zRe(WRe,"defaultProps",{iconSize:14,layout:"horizontal",align:"center",verticalAlign:"middle",inactiveColor:"#ccc"});var qRe=["ref"];function XRe(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function YRe(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?XRe(Object(n),!0).forEach((function(t){eDe(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):XRe(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function KRe(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,tDe(r.key),r)}}function ZRe(e,t){return ZRe=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},ZRe(e,t)}function $Re(e){var t=function(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=QRe(e);if(t){var i=QRe(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return function(e,t){if(t&&("object"===HRe(t)||"function"===typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return JRe(e)}(this,n)}}function JRe(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function QRe(e){return QRe=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},QRe(e)}function eDe(e,t,n){return(t=tDe(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function tDe(e){var t=function(e,t){if("object"!==HRe(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==HRe(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===HRe(t)?t:String(t)}function nDe(e,t){if(null==e)return{};var n,r,i=function(e,t){if(null==e)return{};var n,r,i={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(i[n]=e[n]);return i}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function rDe(e){return e.value}var iDe=function(e){!function(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&ZRe(e,t)}(s,e);var t,r,i,o=$Re(s);function s(){var e;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,s);for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return eDe(JRe(e=o.call.apply(o,[this].concat(n))),"lastBoundingBox",{width:-1,height:-1}),e}return t=s,r=[{key:"componentDidMount",value:function(){this.updateBBox()}},{key:"componentDidUpdate",value:function(){this.updateBBox()}},{key:"getBBox",value:function(){return this.wrapperNode&&this.wrapperNode.getBoundingClientRect?this.wrapperNode.getBoundingClientRect():null}},{key:"updateBBox",value:function(){var e=this.props.onBBoxUpdate;if(this.wrapperNode&&this.wrapperNode.getBoundingClientRect){var t=this.wrapperNode.getBoundingClientRect();(Math.abs(t.width-this.lastBoundingBox.width)>1||Math.abs(t.height-this.lastBoundingBox.height)>1)&&(this.lastBoundingBox.width=t.width,this.lastBoundingBox.height=t.height,e&&e(t))}else-1===this.lastBoundingBox.width&&-1===this.lastBoundingBox.height||(this.lastBoundingBox.width=-1,this.lastBoundingBox.height=-1,e&&e(null))}},{key:"getBBoxSnapshot",value:function(){return this.lastBoundingBox.width>=0&&this.lastBoundingBox.height>=0?YRe({},this.lastBoundingBox):{width:0,height:0}}},{key:"getDefaultPosition",value:function(e){var t,n,r=this.props,i=r.layout,o=r.align,s=r.verticalAlign,a=r.margin,l=r.chartWidth,c=r.chartHeight;return e&&(void 0!==e.left&&null!==e.left||void 0!==e.right&&null!==e.right)||(t="center"===o&&"vertical"===i?{left:((l||0)-this.getBBoxSnapshot().width)/2}:"right"===o?{right:a&&a.right||0}:{left:a&&a.left||0}),e&&(void 0!==e.top&&null!==e.top||void 0!==e.bottom&&null!==e.bottom)||(n="middle"===s?{top:((c||0)-this.getBBoxSnapshot().height)/2}:"bottom"===s?{bottom:a&&a.bottom||0}:{top:a&&a.top||0}),YRe(YRe({},t),n)}},{key:"render",value:function(){var e=this,t=this.props,r=t.content,i=t.width,o=t.height,s=t.wrapperStyle,a=t.payloadUniqBy,l=t.payload,c=YRe(YRe({position:"absolute",width:i||"auto",height:o||"auto"},this.getDefaultPosition(s)),s);return n.createElement("div",{className:"recharts-legend-wrapper",style:c,ref:function(t){e.wrapperNode=t}},function(e,t){if(n.isValidElement(e))return n.cloneElement(e,t);if("function"===typeof e)return n.createElement(e,t);t.ref;var r=nDe(t,qRe);return n.createElement(WRe,r)}(r,YRe(YRe({},this.props),{},{payload:_Oe(l,a,rDe)})))}}],i=[{key:"getWithHeight",value:function(e,t){var n=e.props.layout;return"vertical"===n&&tGe(e.props.height)?{height:e.props.height}:"horizontal"===n?{width:e.props.width||t}:null}}],r&&KRe(t.prototype,r),i&&KRe(t,i),Object.defineProperty(t,"prototype",{writable:!1}),s}(n.PureComponent);function oDe(){return oDe=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},oDe.apply(this,arguments)}eDe(iDe,"displayName","Legend"),eDe(iDe,"defaultProps",{iconSize:14,layout:"horizontal",align:"center",verticalAlign:"bottom"});var sDe=function(e){var t=e.cx,r=e.cy,i=e.r,o=e.className,s=UIe("recharts-dot",o);return t===+t&&r===+r&&i===+i?n.createElement("circle",oDe({},GGe(e,!1),gGe(e),{className:s,cx:t,cy:r,r:i})):null};function aDe(e){return aDe="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},aDe(e)}function lDe(){return lDe=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},lDe.apply(this,arguments)}function cDe(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,i,o,s,a=[],l=!0,c=!1;try{if(o=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;l=!1}else for(;!(l=(r=o.call(n)).done)&&(a.push(r.value),a.length!==t);l=!0);}catch(e){c=!0,i=e}finally{try{if(!l&&null!=n.return&&(s=n.return(),Object(s)!==s))return}finally{if(c)throw i}}return a}}(e,t)||function(e,t){if(!e)return;if("string"===typeof e)return uDe(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return uDe(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function uDe(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function dDe(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function hDe(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?dDe(Object(n),!0).forEach((function(t){pDe(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):dDe(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function pDe(e,t,n){return(t=function(e){var t=function(e,t){if("object"!==aDe(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==aDe(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===aDe(t)?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var fDe=function(e,t,n,r,i){var o,s=Math.min(Math.abs(n)/2,Math.abs(r)/2),a=r>=0?1:-1,l=n>=0?1:-1,c=r>=0&&n>=0||r<0&&n<0?1:0;if(s>0&&i instanceof Array){for(var u=[0,0,0,0],d=0;d<4;d++)u[d]=i[d]>s?s:i[d];o="M".concat(e,",").concat(t+a*u[0]),u[0]>0&&(o+="A ".concat(u[0],",").concat(u[0],",0,0,").concat(c,",").concat(e+l*u[0],",").concat(t)),o+="L ".concat(e+n-l*u[1],",").concat(t),u[1]>0&&(o+="A ".concat(u[1],",").concat(u[1],",0,0,").concat(c,",\n        ").concat(e+n,",").concat(t+a*u[1])),o+="L ".concat(e+n,",").concat(t+r-a*u[2]),u[2]>0&&(o+="A ".concat(u[2],",").concat(u[2],",0,0,").concat(c,",\n        ").concat(e+n-l*u[2],",").concat(t+r)),o+="L ".concat(e+l*u[3],",").concat(t+r),u[3]>0&&(o+="A ".concat(u[3],",").concat(u[3],",0,0,").concat(c,",\n        ").concat(e,",").concat(t+r-a*u[3])),o+="Z"}else if(s>0&&i===+i&&i>0){var h=Math.min(s,i);o="M ".concat(e,",").concat(t+a*h,"\n            A ").concat(h,",").concat(h,",0,0,").concat(c,",").concat(e+l*h,",").concat(t,"\n            L ").concat(e+n-l*h,",").concat(t,"\n            A ").concat(h,",").concat(h,",0,0,").concat(c,",").concat(e+n,",").concat(t+a*h,"\n            L ").concat(e+n,",").concat(t+r-a*h,"\n            A ").concat(h,",").concat(h,",0,0,").concat(c,",").concat(e+n-l*h,",").concat(t+r,"\n            L ").concat(e+l*h,",").concat(t+r,"\n            A ").concat(h,",").concat(h,",0,0,").concat(c,",").concat(e,",").concat(t+r-a*h," Z")}else o="M ".concat(e,",").concat(t," h ").concat(n," v ").concat(r," h ").concat(-n," Z");return o},gDe=function(e,t){if(!e||!t)return!1;var n=e.x,r=e.y,i=t.x,o=t.y,s=t.width,a=t.height;if(Math.abs(s)>0&&Math.abs(a)>0){var l=Math.min(i,i+s),c=Math.max(i,i+s),u=Math.min(o,o+a),d=Math.max(o,o+a);return n>=l&&n<=c&&r>=u&&r<=d}return!1},mDe={x:0,y:0,width:0,height:0,radius:0,isAnimationActive:!1,isUpdateAnimationActive:!1,animationBegin:0,animationDuration:1500,animationEasing:"ease"},yDe=function(e){var t=hDe(hDe({},mDe),e),r=(0,n.useRef)(),i=cDe((0,n.useState)(-1),2),o=i[0],s=i[1];(0,n.useEffect)((function(){if(r.current&&r.current.getTotalLength)try{var e=r.current.getTotalLength();e&&s(e)}catch(t){}}),[]);var a=t.x,l=t.y,c=t.width,u=t.height,d=t.radius,h=t.className,p=t.animationEasing,f=t.animationDuration,g=t.animationBegin,m=t.isAnimationActive,y=t.isUpdateAnimationActive;if(a!==+a||l!==+l||c!==+c||u!==+u||0===c||0===u)return null;var v=UIe("recharts-rectangle",h);return y?n.createElement($Me,{canBegin:o>0,from:{width:c,height:u,x:a,y:l},to:{width:c,height:u,x:a,y:l},duration:f,animationEasing:p,isActive:y},(function(e){var i=e.width,s=e.height,a=e.x,l=e.y;return n.createElement($Me,{canBegin:o>0,from:"0px ".concat(-1===o?1:o,"px"),to:"".concat(o,"px 0px"),attributeName:"strokeDasharray",begin:g,duration:f,isActive:m,easing:p},n.createElement("path",lDe({},GGe(t,!0),{className:v,d:fDe(a,l,i,s,d),ref:r})))})):n.createElement("path",lDe({},GGe(t,!0),{className:v,d:fDe(a,l,c,u,d)}))};function vDe(e,t){switch(arguments.length){case 0:break;case 1:this.range(e);break;default:this.range(t).domain(e)}return this}function _De(e,t){switch(arguments.length){case 0:break;case 1:"function"===typeof e?this.interpolator(e):this.range(e);break;default:this.domain(e),"function"===typeof t?this.interpolator(t):this.range(t)}return this}class bDe extends Map{constructor(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:EDe;if(super(),Object.defineProperties(this,{_intern:{value:new Map},_key:{value:t}}),null!=e)for(const[n,r]of e)this.set(n,r)}get(e){return super.get(xDe(this,e))}has(e){return super.has(xDe(this,e))}set(e,t){return super.set(SDe(this,e),t)}delete(e){return super.delete(wDe(this,e))}}Set;function xDe(e,t){let{_intern:n,_key:r}=e;const i=r(t);return n.has(i)?n.get(i):t}function SDe(e,t){let{_intern:n,_key:r}=e;const i=r(t);return n.has(i)?n.get(i):(n.set(i,t),t)}function wDe(e,t){let{_intern:n,_key:r}=e;const i=r(t);return n.has(i)&&(t=n.get(i),n.delete(i)),t}function EDe(e){return null!==e&&"object"===typeof e?e.valueOf():e}const PDe=Symbol("implicit");function CDe(){var e=new bDe,t=[],n=[],r=PDe;function i(i){let o=e.get(i);if(void 0===o){if(r!==PDe)return r;e.set(i,o=t.push(i)-1)}return n[o%n.length]}return i.domain=function(n){if(!arguments.length)return t.slice();t=[],e=new bDe;for(const r of n)e.has(r)||e.set(r,t.push(r)-1);return i},i.range=function(e){return arguments.length?(n=Array.from(e),i):n.slice()},i.unknown=function(e){return arguments.length?(r=e,i):r},i.copy=function(){return CDe(t,n).unknown(r)},vDe.apply(i,arguments),i}function ADe(){var e,t,n=CDe().unknown(void 0),r=n.domain,i=n.range,o=0,s=1,a=!1,l=0,c=0,u=.5;function d(){var n=r().length,d=s<o,h=d?s:o,p=d?o:s;e=(p-h)/Math.max(1,n-l+2*c),a&&(e=Math.floor(e)),h+=(p-h-e*(n-l))*u,t=e*(1-l),a&&(h=Math.round(h),t=Math.round(t));var f=function(e,t,n){e=+e,t=+t,n=(i=arguments.length)<2?(t=e,e=0,1):i<3?1:+n;for(var r=-1,i=0|Math.max(0,Math.ceil((t-e)/n)),o=new Array(i);++r<i;)o[r]=e+r*n;return o}(n).map((function(t){return h+e*t}));return i(d?f.reverse():f)}return delete n.unknown,n.domain=function(e){return arguments.length?(r(e),d()):r()},n.range=function(e){return arguments.length?([o,s]=e,o=+o,s=+s,d()):[o,s]},n.rangeRound=function(e){return[o,s]=e,o=+o,s=+s,a=!0,d()},n.bandwidth=function(){return t},n.step=function(){return e},n.round=function(e){return arguments.length?(a=!!e,d()):a},n.padding=function(e){return arguments.length?(l=Math.min(1,c=+e),d()):l},n.paddingInner=function(e){return arguments.length?(l=Math.min(1,e),d()):l},n.paddingOuter=function(e){return arguments.length?(c=+e,d()):c},n.align=function(e){return arguments.length?(u=Math.max(0,Math.min(1,e)),d()):u},n.copy=function(){return ADe(r(),[o,s]).round(a).paddingInner(l).paddingOuter(c).align(u)},vDe.apply(d(),arguments)}function kDe(e){var t=e.copy;return e.padding=e.paddingOuter,delete e.paddingInner,delete e.paddingOuter,e.copy=function(){return kDe(t())},e}function jDe(){return kDe(ADe.apply(null,arguments).paddingInner(1))}function IDe(e){return IDe="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},IDe(e)}function GDe(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function TDe(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?GDe(Object(n),!0).forEach((function(t){MDe(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):GDe(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function MDe(e,t,n){return(t=function(e){var t=function(e,t){if("object"!==IDe(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==IDe(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===IDe(t)?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var ODe={widthCache:{},cacheCount:0},RDe={position:"absolute",top:"-20000px",left:0,padding:0,margin:0,border:"none",whiteSpace:"pre"},DDe="recharts_measurement_span";var NDe=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(void 0===e||null===e||mOe.isSsr)return{width:0,height:0};var n=function(e){var t=TDe({},e);return Object.keys(t).forEach((function(e){t[e]||delete t[e]})),t}(t),r=JSON.stringify({text:e,copyStyle:n});if(ODe.widthCache[r])return ODe.widthCache[r];try{var i=document.getElementById(DDe);i||((i=document.createElement("span")).setAttribute("id",DDe),i.setAttribute("aria-hidden","true"),document.body.appendChild(i));var o=TDe(TDe({},RDe),n);Object.assign(i.style,o),i.textContent="".concat(e);var s=i.getBoundingClientRect(),a={width:s.width,height:s.height};return ODe.widthCache[r]=a,++ODe.cacheCount>2e3&&(ODe.cacheCount=0,ODe.widthCache={}),a}catch(l){return{width:0,height:0}}};function LDe(e){return LDe="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},LDe(e)}function VDe(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,i,o,s,a=[],l=!0,c=!1;try{if(o=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;l=!1}else for(;!(l=(r=o.call(n)).done)&&(a.push(r.value),a.length!==t);l=!0);}catch(e){c=!0,i=e}finally{try{if(!l&&null!=n.return&&(s=n.return(),Object(s)!==s))return}finally{if(c)throw i}}return a}}(e,t)||function(e,t){if(!e)return;if("string"===typeof e)return FDe(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return FDe(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function FDe(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function zDe(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,BDe(r.key),r)}}function BDe(e){var t=function(e,t){if("object"!==LDe(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==LDe(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===LDe(t)?t:String(t)}var UDe=/(-?\d+(?:\.\d+)?[a-zA-Z%]*)([*/])(-?\d+(?:\.\d+)?[a-zA-Z%]*)/,WDe=/(-?\d+(?:\.\d+)?[a-zA-Z%]*)([+-])(-?\d+(?:\.\d+)?[a-zA-Z%]*)/,HDe=/^px|cm|vh|vw|em|rem|%|mm|in|pt|pc|ex|ch|vmin|vmax|Q$/,qDe=/(-?\d+(?:\.\d+)?)([a-zA-Z%]+)?/,XDe={cm:96/2.54,mm:96/25.4,pt:96/72,pc:16,in:96,Q:96/101.6,px:1},YDe=Object.keys(XDe),KDe="NaN";var ZDe=function(){function e(t,n){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.num=t,this.unit=n,this.num=t,this.unit=n,Number.isNaN(t)&&(this.unit=""),""===n||HDe.test(n)||(this.num=NaN,this.unit=""),YDe.includes(n)&&(this.num=function(e,t){return e*XDe[t]}(t,n),this.unit="px")}var t,n,r;return t=e,r=[{key:"parse",value:function(t){var n,r=VDe(null!==(n=qDe.exec(t))&&void 0!==n?n:[],3),i=r[1],o=r[2];return new e(parseFloat(i),null!==o&&void 0!==o?o:"")}}],(n=[{key:"add",value:function(t){return this.unit!==t.unit?new e(NaN,""):new e(this.num+t.num,this.unit)}},{key:"subtract",value:function(t){return this.unit!==t.unit?new e(NaN,""):new e(this.num-t.num,this.unit)}},{key:"multiply",value:function(t){return""!==this.unit&&""!==t.unit&&this.unit!==t.unit?new e(NaN,""):new e(this.num*t.num,this.unit||t.unit)}},{key:"divide",value:function(t){return""!==this.unit&&""!==t.unit&&this.unit!==t.unit?new e(NaN,""):new e(this.num/t.num,this.unit||t.unit)}},{key:"toString",value:function(){return"".concat(this.num).concat(this.unit)}},{key:"isNaN",value:function(){return Number.isNaN(this.num)}}])&&zDe(t.prototype,n),r&&zDe(t,r),Object.defineProperty(t,"prototype",{writable:!1}),e}();function $De(e){if(e.includes(KDe))return KDe;for(var t=e;t.includes("*")||t.includes("/");){var n,r=VDe(null!==(n=UDe.exec(t))&&void 0!==n?n:[],4),i=r[1],o=r[2],s=r[3],a=ZDe.parse(null!==i&&void 0!==i?i:""),l=ZDe.parse(null!==s&&void 0!==s?s:""),c="*"===o?a.multiply(l):a.divide(l);if(c.isNaN())return KDe;t=t.replace(UDe,c.toString())}for(;t.includes("+")||/.-\d+(?:\.\d+)?/.test(t);){var u,d=VDe(null!==(u=WDe.exec(t))&&void 0!==u?u:[],4),h=d[1],p=d[2],f=d[3],g=ZDe.parse(null!==h&&void 0!==h?h:""),m=ZDe.parse(null!==f&&void 0!==f?f:""),y="+"===p?g.add(m):g.subtract(m);if(y.isNaN())return KDe;t=t.replace(WDe,y.toString())}return t}var JDe=/\(([^()]*)\)/;function QDe(e){var t=e.replace(/\s+/g,"");return t=function(e){for(var t=e;t.includes("(");){var n=VDe(JDe.exec(t),2)[1];t=t.replace(JDe,$De(n))}return t}(t),t=$De(t)}function eNe(e){var t=function(e){try{return QDe(e)}catch(t){return KDe}}(e.slice(5,-1));return t===KDe?"":t}var tNe=["x","y","lineHeight","capHeight","scaleToFit","textAnchor","verticalAnchor","fill"],nNe=["dx","dy","angle","className","breakAll"];function rNe(){return rNe=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},rNe.apply(this,arguments)}function iNe(e,t){if(null==e)return{};var n,r,i=function(e,t){if(null==e)return{};var n,r,i={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(i[n]=e[n]);return i}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function oNe(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,i,o,s,a=[],l=!0,c=!1;try{if(o=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;l=!1}else for(;!(l=(r=o.call(n)).done)&&(a.push(r.value),a.length!==t);l=!0);}catch(e){c=!0,i=e}finally{try{if(!l&&null!=n.return&&(s=n.return(),Object(s)!==s))return}finally{if(c)throw i}}return a}}(e,t)||function(e,t){if(!e)return;if("string"===typeof e)return sNe(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return sNe(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function sNe(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var aNe=/[ \f\n\r\t\v\u2028\u2029]+/,lNe=function(e){var t=e.children,n=e.breakAll,r=e.style;try{var i=[];return jIe()(t)||(i=n?t.toString().split(""):t.toString().split(aNe)),{wordsWithComputedWidth:i.map((function(e){return{word:e,width:NDe(e,r).width}})),spaceWidth:n?0:NDe("\xa0",r).width}}catch(o){return null}},cNe=function(e){return[{words:jIe()(e)?[]:e.toString().split(aNe)}]},uNe=function(e){var t=e.width,n=e.scaleToFit,r=e.children,i=e.style,o=e.breakAll,s=e.maxLines;if((t||n)&&!mOe.isSsr){var a=lNe({breakAll:o,children:r,style:i});return a?function(e,t,n,r,i){var o=e.maxLines,s=e.children,a=e.style,l=e.breakAll,c=tGe(o),u=s,d=function(){return(arguments.length>0&&void 0!==arguments[0]?arguments[0]:[]).reduce((function(e,t){var o=t.word,s=t.width,a=e[e.length-1];if(a&&(null==r||i||a.width+s+n<Number(r)))a.words.push(o),a.width+=s+n;else{var l={words:[o],width:s};e.push(l)}return e}),[])},h=d(t);if(!c)return h;for(var p,f=function(e){var t=u.slice(0,e),n=lNe({breakAll:l,style:a,children:t+"\u2026"}).wordsWithComputedWidth,i=d(n),s=i.length>o||function(e){return e.reduce((function(e,t){return e.width>t.width?e:t}))}(i).width>Number(r);return[s,i]},g=0,m=u.length-1,y=0;g<=m&&y<=u.length-1;){var v=Math.floor((g+m)/2),_=oNe(f(v-1),2),b=_[0],x=_[1],S=oNe(f(v),1)[0];if(b||S||(g=v+1),b&&S&&(m=v-1),!b&&S){p=x;break}y++}return p||h}({breakAll:o,children:r,maxLines:s,style:i},a.wordsWithComputedWidth,a.spaceWidth,t,n):cNe(r)}return cNe(r)},dNe="#808080",hNe=function(e){var t=e.x,r=void 0===t?0:t,i=e.y,o=void 0===i?0:i,s=e.lineHeight,a=void 0===s?"1em":s,l=e.capHeight,c=void 0===l?"0.71em":l,u=e.scaleToFit,d=void 0!==u&&u,h=e.textAnchor,p=void 0===h?"start":h,f=e.verticalAnchor,g=void 0===f?"end":f,m=e.fill,y=void 0===m?dNe:m,v=iNe(e,tNe),_=(0,n.useMemo)((function(){return uNe({breakAll:v.breakAll,children:v.children,maxLines:v.maxLines,scaleToFit:d,style:v.style,width:v.width})}),[v.breakAll,v.children,v.maxLines,d,v.style,v.width]),b=v.dx,x=v.dy,S=v.angle,w=v.className,E=v.breakAll,P=iNe(v,nNe);if(!nGe(r)||!nGe(o))return null;var C,A=r+(tGe(b)?b:0),k=o+(tGe(x)?x:0);switch(g){case"start":C=eNe("calc(".concat(c,")"));break;case"middle":C=eNe("calc(".concat((_.length-1)/2," * -").concat(a," + (").concat(c," / 2))"));break;default:C=eNe("calc(".concat(_.length-1," * -").concat(a,")"))}var j=[];if(d){var I=_[0].width,G=v.width;j.push("scale(".concat((tGe(G)?G/I:1)/I,")"))}return S&&j.push("rotate(".concat(S,", ").concat(A,", ").concat(k,")")),j.length&&(P.transform=j.join(" ")),n.createElement("text",rNe({},GGe(P,!0),{x:A,y:k,className:UIe("recharts-text",w),textAnchor:p,fill:y.includes("url")?dNe:y}),_.map((function(e,t){var r=e.words.join(E?"":" ");return n.createElement("tspan",{x:A,dy:0===t?C:a,key:r},r)})))};const pNe=Math.sqrt(50),fNe=Math.sqrt(10),gNe=Math.sqrt(2);function mNe(e,t,n){const r=(t-e)/Math.max(0,n),i=Math.floor(Math.log10(r)),o=r/Math.pow(10,i),s=o>=pNe?10:o>=fNe?5:o>=gNe?2:1;let a,l,c;return i<0?(c=Math.pow(10,-i)/s,a=Math.round(e*c),l=Math.round(t*c),a/c<e&&++a,l/c>t&&--l,c=-c):(c=Math.pow(10,i)*s,a=Math.round(e/c),l=Math.round(t/c),a*c<e&&++a,l*c>t&&--l),l<a&&.5<=n&&n<2?mNe(e,t,2*n):[a,l,c]}function yNe(e,t,n){if(!((n=+n)>0))return[];if((e=+e)===(t=+t))return[e];const r=t<e,[i,o,s]=r?mNe(t,e,n):mNe(e,t,n);if(!(o>=i))return[];const a=o-i+1,l=new Array(a);if(r)if(s<0)for(let c=0;c<a;++c)l[c]=(o-c)/-s;else for(let c=0;c<a;++c)l[c]=(o-c)*s;else if(s<0)for(let c=0;c<a;++c)l[c]=(i+c)/-s;else for(let c=0;c<a;++c)l[c]=(i+c)*s;return l}function vNe(e,t,n){return mNe(e=+e,t=+t,n=+n)[2]}function _Ne(e,t,n){n=+n;const r=(t=+t)<(e=+e),i=r?vNe(t,e,n):vNe(e,t,n);return(r?-1:1)*(i<0?1/-i:i)}function bNe(e,t){return null==e||null==t?NaN:e<t?-1:e>t?1:e>=t?0:NaN}function xNe(e,t){return null==e||null==t?NaN:t<e?-1:t>e?1:t>=e?0:NaN}function SNe(e){let t,n,r;function i(e,r){let i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:e.length;if(i<o){if(0!==t(r,r))return o;do{const t=i+o>>>1;n(e[t],r)<0?i=t+1:o=t}while(i<o)}return i}return 2!==e.length?(t=bNe,n=(t,n)=>bNe(e(t),n),r=(t,n)=>e(t)-n):(t=e===bNe||e===xNe?e:wNe,n=e,r=e),{left:i,center:function(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;const o=i(e,t,n,(arguments.length>3&&void 0!==arguments[3]?arguments[3]:e.length)-1);return o>n&&r(e[o-1],t)>-r(e[o],t)?o-1:o},right:function(e,r){let i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:e.length;if(i<o){if(0!==t(r,r))return o;do{const t=i+o>>>1;n(e[t],r)<=0?i=t+1:o=t}while(i<o)}return i}}}function wNe(){return 0}function ENe(e){return null===e?NaN:+e}const PNe=SNe(bNe),CNe=PNe.right,ANe=(PNe.left,SNe(ENe).center,CNe);function kNe(e,t,n){e.prototype=t.prototype=n,n.constructor=e}function jNe(e,t){var n=Object.create(e.prototype);for(var r in t)n[r]=t[r];return n}function INe(){}var GNe=.7,TNe=1/GNe,MNe="\\s*([+-]?\\d+)\\s*",ONe="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",RNe="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",DNe=/^#([0-9a-f]{3,8})$/,NNe=new RegExp("^rgb\\(".concat(MNe,",").concat(MNe,",").concat(MNe,"\\)$")),LNe=new RegExp("^rgb\\(".concat(RNe,",").concat(RNe,",").concat(RNe,"\\)$")),VNe=new RegExp("^rgba\\(".concat(MNe,",").concat(MNe,",").concat(MNe,",").concat(ONe,"\\)$")),FNe=new RegExp("^rgba\\(".concat(RNe,",").concat(RNe,",").concat(RNe,",").concat(ONe,"\\)$")),zNe=new RegExp("^hsl\\(".concat(ONe,",").concat(RNe,",").concat(RNe,"\\)$")),BNe=new RegExp("^hsla\\(".concat(ONe,",").concat(RNe,",").concat(RNe,",").concat(ONe,"\\)$")),UNe={aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074};function WNe(){return this.rgb().formatHex()}function HNe(){return this.rgb().formatRgb()}function qNe(e){var t,n;return e=(e+"").trim().toLowerCase(),(t=DNe.exec(e))?(n=t[1].length,t=parseInt(t[1],16),6===n?XNe(t):3===n?new ZNe(t>>8&15|t>>4&240,t>>4&15|240&t,(15&t)<<4|15&t,1):8===n?YNe(t>>24&255,t>>16&255,t>>8&255,(255&t)/255):4===n?YNe(t>>12&15|t>>8&240,t>>8&15|t>>4&240,t>>4&15|240&t,((15&t)<<4|15&t)/255):null):(t=NNe.exec(e))?new ZNe(t[1],t[2],t[3],1):(t=LNe.exec(e))?new ZNe(255*t[1]/100,255*t[2]/100,255*t[3]/100,1):(t=VNe.exec(e))?YNe(t[1],t[2],t[3],t[4]):(t=FNe.exec(e))?YNe(255*t[1]/100,255*t[2]/100,255*t[3]/100,t[4]):(t=zNe.exec(e))?nLe(t[1],t[2]/100,t[3]/100,1):(t=BNe.exec(e))?nLe(t[1],t[2]/100,t[3]/100,t[4]):UNe.hasOwnProperty(e)?XNe(UNe[e]):"transparent"===e?new ZNe(NaN,NaN,NaN,0):null}function XNe(e){return new ZNe(e>>16&255,e>>8&255,255&e,1)}function YNe(e,t,n,r){return r<=0&&(e=t=n=NaN),new ZNe(e,t,n,r)}function KNe(e,t,n,r){return 1===arguments.length?function(e){return e instanceof INe||(e=qNe(e)),e?new ZNe((e=e.rgb()).r,e.g,e.b,e.opacity):new ZNe}(e):new ZNe(e,t,n,null==r?1:r)}function ZNe(e,t,n,r){this.r=+e,this.g=+t,this.b=+n,this.opacity=+r}function $Ne(){return"#".concat(tLe(this.r)).concat(tLe(this.g)).concat(tLe(this.b))}function JNe(){const e=QNe(this.opacity);return"".concat(1===e?"rgb(":"rgba(").concat(eLe(this.r),", ").concat(eLe(this.g),", ").concat(eLe(this.b)).concat(1===e?")":", ".concat(e,")"))}function QNe(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function eLe(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function tLe(e){return((e=eLe(e))<16?"0":"")+e.toString(16)}function nLe(e,t,n,r){return r<=0?e=t=n=NaN:n<=0||n>=1?e=t=NaN:t<=0&&(e=NaN),new iLe(e,t,n,r)}function rLe(e){if(e instanceof iLe)return new iLe(e.h,e.s,e.l,e.opacity);if(e instanceof INe||(e=qNe(e)),!e)return new iLe;if(e instanceof iLe)return e;var t=(e=e.rgb()).r/255,n=e.g/255,r=e.b/255,i=Math.min(t,n,r),o=Math.max(t,n,r),s=NaN,a=o-i,l=(o+i)/2;return a?(s=t===o?(n-r)/a+6*(n<r):n===o?(r-t)/a+2:(t-n)/a+4,a/=l<.5?o+i:2-o-i,s*=60):a=l>0&&l<1?0:s,new iLe(s,a,l,e.opacity)}function iLe(e,t,n,r){this.h=+e,this.s=+t,this.l=+n,this.opacity=+r}function oLe(e){return(e=(e||0)%360)<0?e+360:e}function sLe(e){return Math.max(0,Math.min(1,e||0))}function aLe(e,t,n){return 255*(e<60?t+(n-t)*e/60:e<180?n:e<240?t+(n-t)*(240-e)/60:t)}function lLe(e,t,n,r,i){var o=e*e,s=o*e;return((1-3*e+3*o-s)*t+(4-6*o+3*s)*n+(1+3*e+3*o-3*s)*r+s*i)/6}kNe(INe,qNe,{copy(e){return Object.assign(new this.constructor,this,e)},displayable(){return this.rgb().displayable()},hex:WNe,formatHex:WNe,formatHex8:function(){return this.rgb().formatHex8()},formatHsl:function(){return rLe(this).formatHsl()},formatRgb:HNe,toString:HNe}),kNe(ZNe,KNe,jNe(INe,{brighter(e){return e=null==e?TNe:Math.pow(TNe,e),new ZNe(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=null==e?GNe:Math.pow(GNe,e),new ZNe(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new ZNe(eLe(this.r),eLe(this.g),eLe(this.b),QNe(this.opacity))},displayable(){return-.5<=this.r&&this.r<255.5&&-.5<=this.g&&this.g<255.5&&-.5<=this.b&&this.b<255.5&&0<=this.opacity&&this.opacity<=1},hex:$Ne,formatHex:$Ne,formatHex8:function(){return"#".concat(tLe(this.r)).concat(tLe(this.g)).concat(tLe(this.b)).concat(tLe(255*(isNaN(this.opacity)?1:this.opacity)))},formatRgb:JNe,toString:JNe})),kNe(iLe,(function(e,t,n,r){return 1===arguments.length?rLe(e):new iLe(e,t,n,null==r?1:r)}),jNe(INe,{brighter(e){return e=null==e?TNe:Math.pow(TNe,e),new iLe(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=null==e?GNe:Math.pow(GNe,e),new iLe(this.h,this.s,this.l*e,this.opacity)},rgb(){var e=this.h%360+360*(this.h<0),t=isNaN(e)||isNaN(this.s)?0:this.s,n=this.l,r=n+(n<.5?n:1-n)*t,i=2*n-r;return new ZNe(aLe(e>=240?e-240:e+120,i,r),aLe(e,i,r),aLe(e<120?e+240:e-120,i,r),this.opacity)},clamp(){return new iLe(oLe(this.h),sLe(this.s),sLe(this.l),QNe(this.opacity))},displayable(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl(){const e=QNe(this.opacity);return"".concat(1===e?"hsl(":"hsla(").concat(oLe(this.h),", ").concat(100*sLe(this.s),"%, ").concat(100*sLe(this.l),"%").concat(1===e?")":", ".concat(e,")"))}}));const cLe=e=>()=>e;function uLe(e,t){return function(n){return e+n*t}}function dLe(e){return 1===(e=+e)?hLe:function(t,n){return n-t?function(e,t,n){return e=Math.pow(e,n),t=Math.pow(t,n)-e,n=1/n,function(r){return Math.pow(e+r*t,n)}}(t,n,e):cLe(isNaN(t)?n:t)}}function hLe(e,t){var n=t-e;return n?uLe(e,n):cLe(isNaN(e)?t:e)}const pLe=function e(t){var n=dLe(t);function r(e,t){var r=n((e=KNe(e)).r,(t=KNe(t)).r),i=n(e.g,t.g),o=n(e.b,t.b),s=hLe(e.opacity,t.opacity);return function(t){return e.r=r(t),e.g=i(t),e.b=o(t),e.opacity=s(t),e+""}}return r.gamma=e,r}(1);function fLe(e){return function(t){var n,r,i=t.length,o=new Array(i),s=new Array(i),a=new Array(i);for(n=0;n<i;++n)r=KNe(t[n]),o[n]=r.r||0,s[n]=r.g||0,a[n]=r.b||0;return o=e(o),s=e(s),a=e(a),r.opacity=1,function(e){return r.r=o(e),r.g=s(e),r.b=a(e),r+""}}}fLe((function(e){var t=e.length-1;return function(n){var r=n<=0?n=0:n>=1?(n=1,t-1):Math.floor(n*t),i=e[r],o=e[r+1],s=r>0?e[r-1]:2*i-o,a=r<t-1?e[r+2]:2*o-i;return lLe((n-r/t)*t,s,i,o,a)}})),fLe((function(e){var t=e.length;return function(n){var r=Math.floor(((n%=1)<0?++n:n)*t),i=e[(r+t-1)%t],o=e[r%t],s=e[(r+1)%t],a=e[(r+2)%t];return lLe((n-r/t)*t,i,o,s,a)}}));function gLe(e,t){var n,r=t?t.length:0,i=e?Math.min(r,e.length):0,o=new Array(i),s=new Array(r);for(n=0;n<i;++n)o[n]=wLe(e[n],t[n]);for(;n<r;++n)s[n]=t[n];return function(e){for(n=0;n<i;++n)s[n]=o[n](e);return s}}function mLe(e,t){var n=new Date;return e=+e,t=+t,function(r){return n.setTime(e*(1-r)+t*r),n}}function yLe(e,t){return e=+e,t=+t,function(n){return e*(1-n)+t*n}}function vLe(e,t){var n,r={},i={};for(n in null!==e&&"object"===typeof e||(e={}),null!==t&&"object"===typeof t||(t={}),t)n in e?r[n]=wLe(e[n],t[n]):i[n]=t[n];return function(e){for(n in r)i[n]=r[n](e);return i}}var _Le=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,bLe=new RegExp(_Le.source,"g");function xLe(e,t){var n,r,i,o=_Le.lastIndex=bLe.lastIndex=0,s=-1,a=[],l=[];for(e+="",t+="";(n=_Le.exec(e))&&(r=bLe.exec(t));)(i=r.index)>o&&(i=t.slice(o,i),a[s]?a[s]+=i:a[++s]=i),(n=n[0])===(r=r[0])?a[s]?a[s]+=r:a[++s]=r:(a[++s]=null,l.push({i:s,x:yLe(n,r)})),o=bLe.lastIndex;return o<t.length&&(i=t.slice(o),a[s]?a[s]+=i:a[++s]=i),a.length<2?l[0]?function(e){return function(t){return e(t)+""}}(l[0].x):function(e){return function(){return e}}(t):(t=l.length,function(e){for(var n,r=0;r<t;++r)a[(n=l[r]).i]=n.x(e);return a.join("")})}function SLe(e,t){t||(t=[]);var n,r=e?Math.min(t.length,e.length):0,i=t.slice();return function(o){for(n=0;n<r;++n)i[n]=e[n]*(1-o)+t[n]*o;return i}}function wLe(e,t){var n,r=typeof t;return null==t||"boolean"===r?cLe(t):("number"===r?yLe:"string"===r?(n=qNe(t))?(t=n,pLe):xLe:t instanceof qNe?pLe:t instanceof Date?mLe:function(e){return ArrayBuffer.isView(e)&&!(e instanceof DataView)}(t)?SLe:Array.isArray(t)?gLe:"function"!==typeof t.valueOf&&"function"!==typeof t.toString||isNaN(t)?vLe:yLe)(e,t)}function ELe(e,t){return e=+e,t=+t,function(n){return Math.round(e*(1-n)+t*n)}}function PLe(e){return+e}var CLe=[0,1];function ALe(e){return e}function kLe(e,t){return(t-=e=+e)?function(n){return(n-e)/t}:function(e){return function(){return e}}(isNaN(t)?NaN:.5)}function jLe(e,t,n){var r=e[0],i=e[1],o=t[0],s=t[1];return i<r?(r=kLe(i,r),o=n(s,o)):(r=kLe(r,i),o=n(o,s)),function(e){return o(r(e))}}function ILe(e,t,n){var r=Math.min(e.length,t.length)-1,i=new Array(r),o=new Array(r),s=-1;for(e[r]<e[0]&&(e=e.slice().reverse(),t=t.slice().reverse());++s<r;)i[s]=kLe(e[s],e[s+1]),o[s]=n(t[s],t[s+1]);return function(t){var n=ANe(e,t,1,r)-1;return o[n](i[n](t))}}function GLe(e,t){return t.domain(e.domain()).range(e.range()).interpolate(e.interpolate()).clamp(e.clamp()).unknown(e.unknown())}function TLe(){var e,t,n,r,i,o,s=CLe,a=CLe,l=wLe,c=ALe;function u(){var e=Math.min(s.length,a.length);return c!==ALe&&(c=function(e,t){var n;return e>t&&(n=e,e=t,t=n),function(n){return Math.max(e,Math.min(t,n))}}(s[0],s[e-1])),r=e>2?ILe:jLe,i=o=null,d}function d(t){return null==t||isNaN(t=+t)?n:(i||(i=r(s.map(e),a,l)))(e(c(t)))}return d.invert=function(n){return c(t((o||(o=r(a,s.map(e),yLe)))(n)))},d.domain=function(e){return arguments.length?(s=Array.from(e,PLe),u()):s.slice()},d.range=function(e){return arguments.length?(a=Array.from(e),u()):a.slice()},d.rangeRound=function(e){return a=Array.from(e),l=ELe,u()},d.clamp=function(e){return arguments.length?(c=!!e||ALe,u()):c!==ALe},d.interpolate=function(e){return arguments.length?(l=e,u()):l},d.unknown=function(e){return arguments.length?(n=e,d):n},function(n,r){return e=n,t=r,u()}}function MLe(){return TLe()(ALe,ALe)}var OLe,RLe=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function DLe(e){if(!(t=RLe.exec(e)))throw new Error("invalid format: "+e);var t;return new NLe({fill:t[1],align:t[2],sign:t[3],symbol:t[4],zero:t[5],width:t[6],comma:t[7],precision:t[8]&&t[8].slice(1),trim:t[9],type:t[10]})}function NLe(e){this.fill=void 0===e.fill?" ":e.fill+"",this.align=void 0===e.align?">":e.align+"",this.sign=void 0===e.sign?"-":e.sign+"",this.symbol=void 0===e.symbol?"":e.symbol+"",this.zero=!!e.zero,this.width=void 0===e.width?void 0:+e.width,this.comma=!!e.comma,this.precision=void 0===e.precision?void 0:+e.precision,this.trim=!!e.trim,this.type=void 0===e.type?"":e.type+""}function LLe(e,t){if((n=(e=t?e.toExponential(t-1):e.toExponential()).indexOf("e"))<0)return null;var n,r=e.slice(0,n);return[r.length>1?r[0]+r.slice(2):r,+e.slice(n+1)]}function VLe(e){return(e=LLe(Math.abs(e)))?e[1]:NaN}function FLe(e,t){var n=LLe(e,t);if(!n)return e+"";var r=n[0],i=n[1];return i<0?"0."+new Array(-i).join("0")+r:r.length>i+1?r.slice(0,i+1)+"."+r.slice(i+1):r+new Array(i-r.length+2).join("0")}DLe.prototype=NLe.prototype,NLe.prototype.toString=function(){return this.fill+this.align+this.sign+this.symbol+(this.zero?"0":"")+(void 0===this.width?"":Math.max(1,0|this.width))+(this.comma?",":"")+(void 0===this.precision?"":"."+Math.max(0,0|this.precision))+(this.trim?"~":"")+this.type};const zLe={"%":(e,t)=>(100*e).toFixed(t),b:e=>Math.round(e).toString(2),c:e=>e+"",d:function(e){return Math.abs(e=Math.round(e))>=1e21?e.toLocaleString("en").replace(/,/g,""):e.toString(10)},e:(e,t)=>e.toExponential(t),f:(e,t)=>e.toFixed(t),g:(e,t)=>e.toPrecision(t),o:e=>Math.round(e).toString(8),p:(e,t)=>FLe(100*e,t),r:FLe,s:function(e,t){var n=LLe(e,t);if(!n)return e+"";var r=n[0],i=n[1],o=i-(OLe=3*Math.max(-8,Math.min(8,Math.floor(i/3))))+1,s=r.length;return o===s?r:o>s?r+new Array(o-s+1).join("0"):o>0?r.slice(0,o)+"."+r.slice(o):"0."+new Array(1-o).join("0")+LLe(e,Math.max(0,t+o-1))[0]},X:e=>Math.round(e).toString(16).toUpperCase(),x:e=>Math.round(e).toString(16)};function BLe(e){return e}var ULe,WLe,HLe,qLe=Array.prototype.map,XLe=["y","z","a","f","p","n","\xb5","m","","k","M","G","T","P","E","Z","Y"];function YLe(e){var t,n,r=void 0===e.grouping||void 0===e.thousands?BLe:(t=qLe.call(e.grouping,Number),n=e.thousands+"",function(e,r){for(var i=e.length,o=[],s=0,a=t[0],l=0;i>0&&a>0&&(l+a+1>r&&(a=Math.max(1,r-l)),o.push(e.substring(i-=a,i+a)),!((l+=a+1)>r));)a=t[s=(s+1)%t.length];return o.reverse().join(n)}),i=void 0===e.currency?"":e.currency[0]+"",o=void 0===e.currency?"":e.currency[1]+"",s=void 0===e.decimal?".":e.decimal+"",a=void 0===e.numerals?BLe:function(e){return function(t){return t.replace(/[0-9]/g,(function(t){return e[+t]}))}}(qLe.call(e.numerals,String)),l=void 0===e.percent?"%":e.percent+"",c=void 0===e.minus?"\u2212":e.minus+"",u=void 0===e.nan?"NaN":e.nan+"";function d(e){var t=(e=DLe(e)).fill,n=e.align,d=e.sign,h=e.symbol,p=e.zero,f=e.width,g=e.comma,m=e.precision,y=e.trim,v=e.type;"n"===v?(g=!0,v="g"):zLe[v]||(void 0===m&&(m=12),y=!0,v="g"),(p||"0"===t&&"="===n)&&(p=!0,t="0",n="=");var _="$"===h?i:"#"===h&&/[boxX]/.test(v)?"0"+v.toLowerCase():"",b="$"===h?o:/[%p]/.test(v)?l:"",x=zLe[v],S=/[defgprs%]/.test(v);function w(e){var i,o,l,h=_,w=b;if("c"===v)w=x(e)+w,e="";else{var E=(e=+e)<0||1/e<0;if(e=isNaN(e)?u:x(Math.abs(e),m),y&&(e=function(e){e:for(var t,n=e.length,r=1,i=-1;r<n;++r)switch(e[r]){case".":i=t=r;break;case"0":0===i&&(i=r),t=r;break;default:if(!+e[r])break e;i>0&&(i=0)}return i>0?e.slice(0,i)+e.slice(t+1):e}(e)),E&&0===+e&&"+"!==d&&(E=!1),h=(E?"("===d?d:c:"-"===d||"("===d?"":d)+h,w=("s"===v?XLe[8+OLe/3]:"")+w+(E&&"("===d?")":""),S)for(i=-1,o=e.length;++i<o;)if(48>(l=e.charCodeAt(i))||l>57){w=(46===l?s+e.slice(i+1):e.slice(i))+w,e=e.slice(0,i);break}}g&&!p&&(e=r(e,1/0));var P=h.length+e.length+w.length,C=P<f?new Array(f-P+1).join(t):"";switch(g&&p&&(e=r(C+e,C.length?f-w.length:1/0),C=""),n){case"<":e=h+e+w+C;break;case"=":e=h+C+e+w;break;case"^":e=C.slice(0,P=C.length>>1)+h+e+w+C.slice(P);break;default:e=C+h+e+w}return a(e)}return m=void 0===m?6:/[gprs]/.test(v)?Math.max(1,Math.min(21,m)):Math.max(0,Math.min(20,m)),w.toString=function(){return e+""},w}return{format:d,formatPrefix:function(e,t){var n=d(((e=DLe(e)).type="f",e)),r=3*Math.max(-8,Math.min(8,Math.floor(VLe(t)/3))),i=Math.pow(10,-r),o=XLe[8+r/3];return function(e){return n(i*e)+o}}}}function KLe(e,t,n,r){var i,o=_Ne(e,t,n);switch((r=DLe(null==r?",f":r)).type){case"s":var s=Math.max(Math.abs(e),Math.abs(t));return null!=r.precision||isNaN(i=function(e,t){return Math.max(0,3*Math.max(-8,Math.min(8,Math.floor(VLe(t)/3)))-VLe(Math.abs(e)))}(o,s))||(r.precision=i),HLe(r,s);case"":case"e":case"g":case"p":case"r":null!=r.precision||isNaN(i=function(e,t){return e=Math.abs(e),t=Math.abs(t)-e,Math.max(0,VLe(t)-VLe(e))+1}(o,Math.max(Math.abs(e),Math.abs(t))))||(r.precision=i-("e"===r.type));break;case"f":case"%":null!=r.precision||isNaN(i=function(e){return Math.max(0,-VLe(Math.abs(e)))}(o))||(r.precision=i-2*("%"===r.type))}return WLe(r)}function ZLe(e){var t=e.domain;return e.ticks=function(e){var n=t();return yNe(n[0],n[n.length-1],null==e?10:e)},e.tickFormat=function(e,n){var r=t();return KLe(r[0],r[r.length-1],null==e?10:e,n)},e.nice=function(n){null==n&&(n=10);var r,i,o=t(),s=0,a=o.length-1,l=o[s],c=o[a],u=10;for(c<l&&(i=l,l=c,c=i,i=s,s=a,a=i);u-- >0;){if((i=vNe(l,c,n))===r)return o[s]=l,o[a]=c,t(o);if(i>0)l=Math.floor(l/i)*i,c=Math.ceil(c/i)*i;else{if(!(i<0))break;l=Math.ceil(l*i)/i,c=Math.floor(c*i)/i}r=i}return e},e}function $Le(){var e=MLe();return e.copy=function(){return GLe(e,$Le())},vDe.apply(e,arguments),ZLe(e)}function JLe(e){var t;function n(e){return null==e||isNaN(e=+e)?t:e}return n.invert=n,n.domain=n.range=function(t){return arguments.length?(e=Array.from(t,PLe),n):e.slice()},n.unknown=function(e){return arguments.length?(t=e,n):t},n.copy=function(){return JLe(e).unknown(t)},e=arguments.length?Array.from(e,PLe):[0,1],ZLe(n)}function QLe(e,t){var n,r=0,i=(e=e.slice()).length-1,o=e[r],s=e[i];return s<o&&(n=r,r=i,i=n,n=o,o=s,s=n),e[r]=t.floor(o),e[i]=t.ceil(s),e}function eVe(e){return Math.log(e)}function tVe(e){return Math.exp(e)}function nVe(e){return-Math.log(-e)}function rVe(e){return-Math.exp(-e)}function iVe(e){return isFinite(e)?+("1e"+e):e<0?0:e}function oVe(e){return(t,n)=>-e(-t,n)}function sVe(e){const t=e(eVe,tVe),n=t.domain;let r,i,o=10;function s(){return r=function(e){return e===Math.E?Math.log:10===e&&Math.log10||2===e&&Math.log2||(e=Math.log(e),t=>Math.log(t)/e)}(o),i=function(e){return 10===e?iVe:e===Math.E?Math.exp:t=>Math.pow(e,t)}(o),n()[0]<0?(r=oVe(r),i=oVe(i),e(nVe,rVe)):e(eVe,tVe),t}return t.base=function(e){return arguments.length?(o=+e,s()):o},t.domain=function(e){return arguments.length?(n(e),s()):n()},t.ticks=e=>{const t=n();let s=t[0],a=t[t.length-1];const l=a<s;l&&([s,a]=[a,s]);let c,u,d=r(s),h=r(a);const p=null==e?10:+e;let f=[];if(!(o%1)&&h-d<p){if(d=Math.floor(d),h=Math.ceil(h),s>0){for(;d<=h;++d)for(c=1;c<o;++c)if(u=d<0?c/i(-d):c*i(d),!(u<s)){if(u>a)break;f.push(u)}}else for(;d<=h;++d)for(c=o-1;c>=1;--c)if(u=d>0?c/i(-d):c*i(d),!(u<s)){if(u>a)break;f.push(u)}2*f.length<p&&(f=yNe(s,a,p))}else f=yNe(d,h,Math.min(h-d,p)).map(i);return l?f.reverse():f},t.tickFormat=(e,n)=>{if(null==e&&(e=10),null==n&&(n=10===o?"s":","),"function"!==typeof n&&(o%1||null!=(n=DLe(n)).precision||(n.trim=!0),n=WLe(n)),e===1/0)return n;const s=Math.max(1,o*e/t.ticks().length);return e=>{let t=e/i(Math.round(r(e)));return t*o<o-.5&&(t*=o),t<=s?n(e):""}},t.nice=()=>n(QLe(n(),{floor:e=>i(Math.floor(r(e))),ceil:e=>i(Math.ceil(r(e)))})),t}function aVe(){const e=sVe(TLe()).domain([1,10]);return e.copy=()=>GLe(e,aVe()).base(e.base()),vDe.apply(e,arguments),e}function lVe(e){return function(t){return Math.sign(t)*Math.log1p(Math.abs(t/e))}}function cVe(e){return function(t){return Math.sign(t)*Math.expm1(Math.abs(t))*e}}function uVe(e){var t=1,n=e(lVe(t),cVe(t));return n.constant=function(n){return arguments.length?e(lVe(t=+n),cVe(t)):t},ZLe(n)}function dVe(){var e=uVe(TLe());return e.copy=function(){return GLe(e,dVe()).constant(e.constant())},vDe.apply(e,arguments)}function hVe(e){return function(t){return t<0?-Math.pow(-t,e):Math.pow(t,e)}}function pVe(e){return e<0?-Math.sqrt(-e):Math.sqrt(e)}function fVe(e){return e<0?-e*e:e*e}function gVe(e){var t=e(ALe,ALe),n=1;return t.exponent=function(t){return arguments.length?1===(n=+t)?e(ALe,ALe):.5===n?e(pVe,fVe):e(hVe(n),hVe(1/n)):n},ZLe(t)}function mVe(){var e=gVe(TLe());return e.copy=function(){return GLe(e,mVe()).exponent(e.exponent())},vDe.apply(e,arguments),e}function yVe(){return mVe.apply(null,arguments).exponent(.5)}function vVe(e){return Math.sign(e)*e*e}function _Ve(){var e,t=MLe(),n=[0,1],r=!1;function i(n){var i=function(e){return Math.sign(e)*Math.sqrt(Math.abs(e))}(t(n));return isNaN(i)?e:r?Math.round(i):i}return i.invert=function(e){return t.invert(vVe(e))},i.domain=function(e){return arguments.length?(t.domain(e),i):t.domain()},i.range=function(e){return arguments.length?(t.range((n=Array.from(e,PLe)).map(vVe)),i):n.slice()},i.rangeRound=function(e){return i.range(e).round(!0)},i.round=function(e){return arguments.length?(r=!!e,i):r},i.clamp=function(e){return arguments.length?(t.clamp(e),i):t.clamp()},i.unknown=function(t){return arguments.length?(e=t,i):e},i.copy=function(){return _Ve(t.domain(),n).round(r).clamp(t.clamp()).unknown(e)},vDe.apply(i,arguments),ZLe(i)}function bVe(e,t){let n;if(void 0===t)for(const r of e)null!=r&&(n<r||void 0===n&&r>=r)&&(n=r);else{let r=-1;for(let i of e)null!=(i=t(i,++r,e))&&(n<i||void 0===n&&i>=i)&&(n=i)}return n}function xVe(e,t){let n;if(void 0===t)for(const r of e)null!=r&&(n>r||void 0===n&&r>=r)&&(n=r);else{let r=-1;for(let i of e)null!=(i=t(i,++r,e))&&(n>i||void 0===n&&i>=i)&&(n=i)}return n}function SVe(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:bNe;if(e===bNe)return wVe;if("function"!==typeof e)throw new TypeError("compare is not a function");return(t,n)=>{const r=e(t,n);return r||0===r?r:(0===e(n,n))-(0===e(t,t))}}function wVe(e,t){return(null==e||!(e>=e))-(null==t||!(t>=t))||(e<t?-1:e>t?1:0)}function EVe(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:1/0,i=arguments.length>4?arguments[4]:void 0;if(t=Math.floor(t),n=Math.floor(Math.max(0,n)),r=Math.floor(Math.min(e.length-1,r)),!(n<=t&&t<=r))return e;for(i=void 0===i?wVe:SVe(i);r>n;){if(r-n>600){const o=r-n+1,s=t-n+1,a=Math.log(o),l=.5*Math.exp(2*a/3),c=.5*Math.sqrt(a*l*(o-l)/o)*(s-o/2<0?-1:1);EVe(e,t,Math.max(n,Math.floor(t-s*l/o+c)),Math.min(r,Math.floor(t+(o-s)*l/o+c)),i)}const o=e[t];let s=n,a=r;for(PVe(e,n,t),i(e[r],o)>0&&PVe(e,n,r);s<a;){for(PVe(e,s,a),++s,--a;i(e[s],o)<0;)++s;for(;i(e[a],o)>0;)--a}0===i(e[n],o)?PVe(e,n,a):(++a,PVe(e,a,r)),a<=t&&(n=a+1),t<=a&&(r=a-1)}return e}function PVe(e,t,n){const r=e[t];e[t]=e[n],e[n]=r}function CVe(e,t,n){if(e=Float64Array.from(function*(e,t){if(void 0===t)for(let n of e)null!=n&&(n=+n)>=n&&(yield n);else{let n=-1;for(let r of e)null!=(r=t(r,++n,e))&&(r=+r)>=r&&(yield r)}}(e,n)),(r=e.length)&&!isNaN(t=+t)){if(t<=0||r<2)return xVe(e);if(t>=1)return bVe(e);var r,i=(r-1)*t,o=Math.floor(i),s=bVe(EVe(e,o).subarray(0,o+1));return s+(xVe(e.subarray(o+1))-s)*(i-o)}}function AVe(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:ENe;if((r=e.length)&&!isNaN(t=+t)){if(t<=0||r<2)return+n(e[0],0,e);if(t>=1)return+n(e[r-1],r-1,e);var r,i=(r-1)*t,o=Math.floor(i),s=+n(e[o],o,e);return s+(+n(e[o+1],o+1,e)-s)*(i-o)}}function kVe(){var e,t=[],n=[],r=[];function i(){var e=0,i=Math.max(1,n.length);for(r=new Array(i-1);++e<i;)r[e-1]=AVe(t,e/i);return o}function o(t){return null==t||isNaN(t=+t)?e:n[ANe(r,t)]}return o.invertExtent=function(e){var i=n.indexOf(e);return i<0?[NaN,NaN]:[i>0?r[i-1]:t[0],i<r.length?r[i]:t[t.length-1]]},o.domain=function(e){if(!arguments.length)return t.slice();t=[];for(let n of e)null==n||isNaN(n=+n)||t.push(n);return t.sort(bNe),i()},o.range=function(e){return arguments.length?(n=Array.from(e),i()):n.slice()},o.unknown=function(t){return arguments.length?(e=t,o):e},o.quantiles=function(){return r.slice()},o.copy=function(){return kVe().domain(t).range(n).unknown(e)},vDe.apply(o,arguments)}function jVe(){var e,t=0,n=1,r=1,i=[.5],o=[0,1];function s(t){return null!=t&&t<=t?o[ANe(i,t,0,r)]:e}function a(){var e=-1;for(i=new Array(r);++e<r;)i[e]=((e+1)*n-(e-r)*t)/(r+1);return s}return s.domain=function(e){return arguments.length?([t,n]=e,t=+t,n=+n,a()):[t,n]},s.range=function(e){return arguments.length?(r=(o=Array.from(e)).length-1,a()):o.slice()},s.invertExtent=function(e){var s=o.indexOf(e);return s<0?[NaN,NaN]:s<1?[t,i[0]]:s>=r?[i[r-1],n]:[i[s-1],i[s]]},s.unknown=function(t){return arguments.length?(e=t,s):s},s.thresholds=function(){return i.slice()},s.copy=function(){return jVe().domain([t,n]).range(o).unknown(e)},vDe.apply(ZLe(s),arguments)}function IVe(){var e,t=[.5],n=[0,1],r=1;function i(i){return null!=i&&i<=i?n[ANe(t,i,0,r)]:e}return i.domain=function(e){return arguments.length?(t=Array.from(e),r=Math.min(t.length,n.length-1),i):t.slice()},i.range=function(e){return arguments.length?(n=Array.from(e),r=Math.min(t.length,n.length-1),i):n.slice()},i.invertExtent=function(e){var r=n.indexOf(e);return[t[r-1],t[r]]},i.unknown=function(t){return arguments.length?(e=t,i):e},i.copy=function(){return IVe().domain(t).range(n).unknown(e)},vDe.apply(i,arguments)}ULe=YLe({thousands:",",grouping:[3],currency:["$",""]}),WLe=ULe.format,HLe=ULe.formatPrefix;const GVe=1e3,TVe=6e4,MVe=36e5,OVe=864e5,RVe=6048e5,DVe=2592e6,NVe=31536e6,LVe=new Date,VVe=new Date;function FVe(e,t,n,r){function i(t){return e(t=0===arguments.length?new Date:new Date(+t)),t}return i.floor=t=>(e(t=new Date(+t)),t),i.ceil=n=>(e(n=new Date(n-1)),t(n,1),e(n),n),i.round=e=>{const t=i(e),n=i.ceil(e);return e-t<n-e?t:n},i.offset=(e,n)=>(t(e=new Date(+e),null==n?1:Math.floor(n)),e),i.range=(n,r,o)=>{const s=[];if(n=i.ceil(n),o=null==o?1:Math.floor(o),!(n<r)||!(o>0))return s;let a;do{s.push(a=new Date(+n)),t(n,o),e(n)}while(a<n&&n<r);return s},i.filter=n=>FVe((t=>{if(t>=t)for(;e(t),!n(t);)t.setTime(t-1)}),((e,r)=>{if(e>=e)if(r<0)for(;++r<=0;)for(;t(e,-1),!n(e););else for(;--r>=0;)for(;t(e,1),!n(e););})),n&&(i.count=(t,r)=>(LVe.setTime(+t),VVe.setTime(+r),e(LVe),e(VVe),Math.floor(n(LVe,VVe))),i.every=e=>(e=Math.floor(e),isFinite(e)&&e>0?e>1?i.filter(r?t=>r(t)%e===0:t=>i.count(0,t)%e===0):i:null)),i}const zVe=FVe((()=>{}),((e,t)=>{e.setTime(+e+t)}),((e,t)=>t-e));zVe.every=e=>(e=Math.floor(e),isFinite(e)&&e>0?e>1?FVe((t=>{t.setTime(Math.floor(t/e)*e)}),((t,n)=>{t.setTime(+t+n*e)}),((t,n)=>(n-t)/e)):zVe:null);zVe.range;const BVe=FVe((e=>{e.setTime(e-e.getMilliseconds())}),((e,t)=>{e.setTime(+e+t*GVe)}),((e,t)=>(t-e)/GVe),(e=>e.getUTCSeconds())),UVe=(BVe.range,FVe((e=>{e.setTime(e-e.getMilliseconds()-e.getSeconds()*GVe)}),((e,t)=>{e.setTime(+e+t*TVe)}),((e,t)=>(t-e)/TVe),(e=>e.getMinutes()))),WVe=(UVe.range,FVe((e=>{e.setUTCSeconds(0,0)}),((e,t)=>{e.setTime(+e+t*TVe)}),((e,t)=>(t-e)/TVe),(e=>e.getUTCMinutes()))),HVe=(WVe.range,FVe((e=>{e.setTime(e-e.getMilliseconds()-e.getSeconds()*GVe-e.getMinutes()*TVe)}),((e,t)=>{e.setTime(+e+t*MVe)}),((e,t)=>(t-e)/MVe),(e=>e.getHours()))),qVe=(HVe.range,FVe((e=>{e.setUTCMinutes(0,0,0)}),((e,t)=>{e.setTime(+e+t*MVe)}),((e,t)=>(t-e)/MVe),(e=>e.getUTCHours()))),XVe=(qVe.range,FVe((e=>e.setHours(0,0,0,0)),((e,t)=>e.setDate(e.getDate()+t)),((e,t)=>(t-e-(t.getTimezoneOffset()-e.getTimezoneOffset())*TVe)/OVe),(e=>e.getDate()-1))),YVe=(XVe.range,FVe((e=>{e.setUTCHours(0,0,0,0)}),((e,t)=>{e.setUTCDate(e.getUTCDate()+t)}),((e,t)=>(t-e)/OVe),(e=>e.getUTCDate()-1))),KVe=(YVe.range,FVe((e=>{e.setUTCHours(0,0,0,0)}),((e,t)=>{e.setUTCDate(e.getUTCDate()+t)}),((e,t)=>(t-e)/OVe),(e=>Math.floor(e/OVe))));KVe.range;function ZVe(e){return FVe((t=>{t.setDate(t.getDate()-(t.getDay()+7-e)%7),t.setHours(0,0,0,0)}),((e,t)=>{e.setDate(e.getDate()+7*t)}),((e,t)=>(t-e-(t.getTimezoneOffset()-e.getTimezoneOffset())*TVe)/RVe))}const $Ve=ZVe(0),JVe=ZVe(1),QVe=ZVe(2),eFe=ZVe(3),tFe=ZVe(4),nFe=ZVe(5),rFe=ZVe(6);$Ve.range,JVe.range,QVe.range,eFe.range,tFe.range,nFe.range,rFe.range;function iFe(e){return FVe((t=>{t.setUTCDate(t.getUTCDate()-(t.getUTCDay()+7-e)%7),t.setUTCHours(0,0,0,0)}),((e,t)=>{e.setUTCDate(e.getUTCDate()+7*t)}),((e,t)=>(t-e)/RVe))}const oFe=iFe(0),sFe=iFe(1),aFe=iFe(2),lFe=iFe(3),cFe=iFe(4),uFe=iFe(5),dFe=iFe(6),hFe=(oFe.range,sFe.range,aFe.range,lFe.range,cFe.range,uFe.range,dFe.range,FVe((e=>{e.setDate(1),e.setHours(0,0,0,0)}),((e,t)=>{e.setMonth(e.getMonth()+t)}),((e,t)=>t.getMonth()-e.getMonth()+12*(t.getFullYear()-e.getFullYear())),(e=>e.getMonth()))),pFe=(hFe.range,FVe((e=>{e.setUTCDate(1),e.setUTCHours(0,0,0,0)}),((e,t)=>{e.setUTCMonth(e.getUTCMonth()+t)}),((e,t)=>t.getUTCMonth()-e.getUTCMonth()+12*(t.getUTCFullYear()-e.getUTCFullYear())),(e=>e.getUTCMonth()))),fFe=(pFe.range,FVe((e=>{e.setMonth(0,1),e.setHours(0,0,0,0)}),((e,t)=>{e.setFullYear(e.getFullYear()+t)}),((e,t)=>t.getFullYear()-e.getFullYear()),(e=>e.getFullYear())));fFe.every=e=>isFinite(e=Math.floor(e))&&e>0?FVe((t=>{t.setFullYear(Math.floor(t.getFullYear()/e)*e),t.setMonth(0,1),t.setHours(0,0,0,0)}),((t,n)=>{t.setFullYear(t.getFullYear()+n*e)})):null;fFe.range;const gFe=FVe((e=>{e.setUTCMonth(0,1),e.setUTCHours(0,0,0,0)}),((e,t)=>{e.setUTCFullYear(e.getUTCFullYear()+t)}),((e,t)=>t.getUTCFullYear()-e.getUTCFullYear()),(e=>e.getUTCFullYear()));gFe.every=e=>isFinite(e=Math.floor(e))&&e>0?FVe((t=>{t.setUTCFullYear(Math.floor(t.getUTCFullYear()/e)*e),t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0)}),((t,n)=>{t.setUTCFullYear(t.getUTCFullYear()+n*e)})):null;gFe.range;function mFe(e,t,n,r,i,o){const s=[[BVe,1,GVe],[BVe,5,5e3],[BVe,15,15e3],[BVe,30,3e4],[o,1,TVe],[o,5,3e5],[o,15,9e5],[o,30,18e5],[i,1,MVe],[i,3,108e5],[i,6,216e5],[i,12,432e5],[r,1,OVe],[r,2,1728e5],[n,1,RVe],[t,1,DVe],[t,3,7776e6],[e,1,NVe]];function a(t,n,r){const i=Math.abs(n-t)/r,o=SNe((e=>{let[,,t]=e;return t})).right(s,i);if(o===s.length)return e.every(_Ne(t/NVe,n/NVe,r));if(0===o)return zVe.every(Math.max(_Ne(t,n,r),1));const[a,l]=s[i/s[o-1][2]<s[o][2]/i?o-1:o];return a.every(l)}return[function(e,t,n){const r=t<e;r&&([e,t]=[t,e]);const i=n&&"function"===typeof n.range?n:a(e,t,n),o=i?i.range(e,+t+1):[];return r?o.reverse():o},a]}const[yFe,vFe]=mFe(gFe,pFe,oFe,KVe,qVe,WVe),[_Fe,bFe]=mFe(fFe,hFe,$Ve,XVe,HVe,UVe);function xFe(e){if(0<=e.y&&e.y<100){var t=new Date(-1,e.m,e.d,e.H,e.M,e.S,e.L);return t.setFullYear(e.y),t}return new Date(e.y,e.m,e.d,e.H,e.M,e.S,e.L)}function SFe(e){if(0<=e.y&&e.y<100){var t=new Date(Date.UTC(-1,e.m,e.d,e.H,e.M,e.S,e.L));return t.setUTCFullYear(e.y),t}return new Date(Date.UTC(e.y,e.m,e.d,e.H,e.M,e.S,e.L))}function wFe(e,t,n){return{y:e,m:t,d:n,H:0,M:0,S:0,L:0}}var EFe,PFe,CFe,AFe={"-":"",_:" ",0:"0"},kFe=/^\s*\d+/,jFe=/^%/,IFe=/[\\^$*+?|[\]().{}]/g;function GFe(e,t,n){var r=e<0?"-":"",i=(r?-e:e)+"",o=i.length;return r+(o<n?new Array(n-o+1).join(t)+i:i)}function TFe(e){return e.replace(IFe,"\\$&")}function MFe(e){return new RegExp("^(?:"+e.map(TFe).join("|")+")","i")}function OFe(e){return new Map(e.map(((e,t)=>[e.toLowerCase(),t])))}function RFe(e,t,n){var r=kFe.exec(t.slice(n,n+1));return r?(e.w=+r[0],n+r[0].length):-1}function DFe(e,t,n){var r=kFe.exec(t.slice(n,n+1));return r?(e.u=+r[0],n+r[0].length):-1}function NFe(e,t,n){var r=kFe.exec(t.slice(n,n+2));return r?(e.U=+r[0],n+r[0].length):-1}function LFe(e,t,n){var r=kFe.exec(t.slice(n,n+2));return r?(e.V=+r[0],n+r[0].length):-1}function VFe(e,t,n){var r=kFe.exec(t.slice(n,n+2));return r?(e.W=+r[0],n+r[0].length):-1}function FFe(e,t,n){var r=kFe.exec(t.slice(n,n+4));return r?(e.y=+r[0],n+r[0].length):-1}function zFe(e,t,n){var r=kFe.exec(t.slice(n,n+2));return r?(e.y=+r[0]+(+r[0]>68?1900:2e3),n+r[0].length):-1}function BFe(e,t,n){var r=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(t.slice(n,n+6));return r?(e.Z=r[1]?0:-(r[2]+(r[3]||"00")),n+r[0].length):-1}function UFe(e,t,n){var r=kFe.exec(t.slice(n,n+1));return r?(e.q=3*r[0]-3,n+r[0].length):-1}function WFe(e,t,n){var r=kFe.exec(t.slice(n,n+2));return r?(e.m=r[0]-1,n+r[0].length):-1}function HFe(e,t,n){var r=kFe.exec(t.slice(n,n+2));return r?(e.d=+r[0],n+r[0].length):-1}function qFe(e,t,n){var r=kFe.exec(t.slice(n,n+3));return r?(e.m=0,e.d=+r[0],n+r[0].length):-1}function XFe(e,t,n){var r=kFe.exec(t.slice(n,n+2));return r?(e.H=+r[0],n+r[0].length):-1}function YFe(e,t,n){var r=kFe.exec(t.slice(n,n+2));return r?(e.M=+r[0],n+r[0].length):-1}function KFe(e,t,n){var r=kFe.exec(t.slice(n,n+2));return r?(e.S=+r[0],n+r[0].length):-1}function ZFe(e,t,n){var r=kFe.exec(t.slice(n,n+3));return r?(e.L=+r[0],n+r[0].length):-1}function $Fe(e,t,n){var r=kFe.exec(t.slice(n,n+6));return r?(e.L=Math.floor(r[0]/1e3),n+r[0].length):-1}function JFe(e,t,n){var r=jFe.exec(t.slice(n,n+1));return r?n+r[0].length:-1}function QFe(e,t,n){var r=kFe.exec(t.slice(n));return r?(e.Q=+r[0],n+r[0].length):-1}function eze(e,t,n){var r=kFe.exec(t.slice(n));return r?(e.s=+r[0],n+r[0].length):-1}function tze(e,t){return GFe(e.getDate(),t,2)}function nze(e,t){return GFe(e.getHours(),t,2)}function rze(e,t){return GFe(e.getHours()%12||12,t,2)}function ize(e,t){return GFe(1+XVe.count(fFe(e),e),t,3)}function oze(e,t){return GFe(e.getMilliseconds(),t,3)}function sze(e,t){return oze(e,t)+"000"}function aze(e,t){return GFe(e.getMonth()+1,t,2)}function lze(e,t){return GFe(e.getMinutes(),t,2)}function cze(e,t){return GFe(e.getSeconds(),t,2)}function uze(e){var t=e.getDay();return 0===t?7:t}function dze(e,t){return GFe($Ve.count(fFe(e)-1,e),t,2)}function hze(e){var t=e.getDay();return t>=4||0===t?tFe(e):tFe.ceil(e)}function pze(e,t){return e=hze(e),GFe(tFe.count(fFe(e),e)+(4===fFe(e).getDay()),t,2)}function fze(e){return e.getDay()}function gze(e,t){return GFe(JVe.count(fFe(e)-1,e),t,2)}function mze(e,t){return GFe(e.getFullYear()%100,t,2)}function yze(e,t){return GFe((e=hze(e)).getFullYear()%100,t,2)}function vze(e,t){return GFe(e.getFullYear()%1e4,t,4)}function _ze(e,t){var n=e.getDay();return GFe((e=n>=4||0===n?tFe(e):tFe.ceil(e)).getFullYear()%1e4,t,4)}function bze(e){var t=e.getTimezoneOffset();return(t>0?"-":(t*=-1,"+"))+GFe(t/60|0,"0",2)+GFe(t%60,"0",2)}function xze(e,t){return GFe(e.getUTCDate(),t,2)}function Sze(e,t){return GFe(e.getUTCHours(),t,2)}function wze(e,t){return GFe(e.getUTCHours()%12||12,t,2)}function Eze(e,t){return GFe(1+YVe.count(gFe(e),e),t,3)}function Pze(e,t){return GFe(e.getUTCMilliseconds(),t,3)}function Cze(e,t){return Pze(e,t)+"000"}function Aze(e,t){return GFe(e.getUTCMonth()+1,t,2)}function kze(e,t){return GFe(e.getUTCMinutes(),t,2)}function jze(e,t){return GFe(e.getUTCSeconds(),t,2)}function Ize(e){var t=e.getUTCDay();return 0===t?7:t}function Gze(e,t){return GFe(oFe.count(gFe(e)-1,e),t,2)}function Tze(e){var t=e.getUTCDay();return t>=4||0===t?cFe(e):cFe.ceil(e)}function Mze(e,t){return e=Tze(e),GFe(cFe.count(gFe(e),e)+(4===gFe(e).getUTCDay()),t,2)}function Oze(e){return e.getUTCDay()}function Rze(e,t){return GFe(sFe.count(gFe(e)-1,e),t,2)}function Dze(e,t){return GFe(e.getUTCFullYear()%100,t,2)}function Nze(e,t){return GFe((e=Tze(e)).getUTCFullYear()%100,t,2)}function Lze(e,t){return GFe(e.getUTCFullYear()%1e4,t,4)}function Vze(e,t){var n=e.getUTCDay();return GFe((e=n>=4||0===n?cFe(e):cFe.ceil(e)).getUTCFullYear()%1e4,t,4)}function Fze(){return"+0000"}function zze(){return"%"}function Bze(e){return+e}function Uze(e){return Math.floor(+e/1e3)}function Wze(e){return new Date(e)}function Hze(e){return e instanceof Date?+e:+new Date(+e)}function qze(e,t,n,r,i,o,s,a,l,c){var u=MLe(),d=u.invert,h=u.domain,p=c(".%L"),f=c(":%S"),g=c("%I:%M"),m=c("%I %p"),y=c("%a %d"),v=c("%b %d"),_=c("%B"),b=c("%Y");function x(e){return(l(e)<e?p:a(e)<e?f:s(e)<e?g:o(e)<e?m:r(e)<e?i(e)<e?y:v:n(e)<e?_:b)(e)}return u.invert=function(e){return new Date(d(e))},u.domain=function(e){return arguments.length?h(Array.from(e,Hze)):h().map(Wze)},u.ticks=function(t){var n=h();return e(n[0],n[n.length-1],null==t?10:t)},u.tickFormat=function(e,t){return null==t?x:c(t)},u.nice=function(e){var n=h();return e&&"function"===typeof e.range||(e=t(n[0],n[n.length-1],null==e?10:e)),e?h(QLe(n,e)):u},u.copy=function(){return GLe(u,qze(e,t,n,r,i,o,s,a,l,c))},u}function Xze(){return vDe.apply(qze(_Fe,bFe,fFe,hFe,$Ve,XVe,HVe,UVe,BVe,PFe).domain([new Date(2e3,0,1),new Date(2e3,0,2)]),arguments)}function Yze(){return vDe.apply(qze(yFe,vFe,gFe,pFe,oFe,YVe,qVe,WVe,BVe,CFe).domain([Date.UTC(2e3,0,1),Date.UTC(2e3,0,2)]),arguments)}function Kze(){var e,t,n,r,i,o=0,s=1,a=ALe,l=!1;function c(t){return null==t||isNaN(t=+t)?i:a(0===n?.5:(t=(r(t)-e)*n,l?Math.max(0,Math.min(1,t)):t))}function u(e){return function(t){var n,r;return arguments.length?([n,r]=t,a=e(n,r),c):[a(0),a(1)]}}return c.domain=function(i){return arguments.length?([o,s]=i,e=r(o=+o),t=r(s=+s),n=e===t?0:1/(t-e),c):[o,s]},c.clamp=function(e){return arguments.length?(l=!!e,c):l},c.interpolator=function(e){return arguments.length?(a=e,c):a},c.range=u(wLe),c.rangeRound=u(ELe),c.unknown=function(e){return arguments.length?(i=e,c):i},function(i){return r=i,e=i(o),t=i(s),n=e===t?0:1/(t-e),c}}function Zze(e,t){return t.domain(e.domain()).interpolator(e.interpolator()).clamp(e.clamp()).unknown(e.unknown())}function $ze(){var e=ZLe(Kze()(ALe));return e.copy=function(){return Zze(e,$ze())},_De.apply(e,arguments)}function Jze(){var e=sVe(Kze()).domain([1,10]);return e.copy=function(){return Zze(e,Jze()).base(e.base())},_De.apply(e,arguments)}function Qze(){var e=uVe(Kze());return e.copy=function(){return Zze(e,Qze()).constant(e.constant())},_De.apply(e,arguments)}function eBe(){var e=gVe(Kze());return e.copy=function(){return Zze(e,eBe()).exponent(e.exponent())},_De.apply(e,arguments)}function tBe(){return eBe.apply(null,arguments).exponent(.5)}function nBe(){var e=[],t=ALe;function n(n){if(null!=n&&!isNaN(n=+n))return t((ANe(e,n,1)-1)/(e.length-1))}return n.domain=function(t){if(!arguments.length)return e.slice();e=[];for(let n of t)null==n||isNaN(n=+n)||e.push(n);return e.sort(bNe),n},n.interpolator=function(e){return arguments.length?(t=e,n):t},n.range=function(){return e.map(((n,r)=>t(r/(e.length-1))))},n.quantiles=function(t){return Array.from({length:t+1},((n,r)=>CVe(e,r/t)))},n.copy=function(){return nBe(t).domain(e)},_De.apply(n,arguments)}function rBe(){var e,t,n,r,i,o,s,a=0,l=.5,c=1,u=1,d=ALe,h=!1;function p(e){return isNaN(e=+e)?s:(e=.5+((e=+o(e))-t)*(u*e<u*t?r:i),d(h?Math.max(0,Math.min(1,e)):e))}function f(e){return function(t){var n,r,i;return arguments.length?([n,r,i]=t,d=function(e,t){void 0===t&&(t=e,e=wLe);for(var n=0,r=t.length-1,i=t[0],o=new Array(r<0?0:r);n<r;)o[n]=e(i,i=t[++n]);return function(e){var t=Math.max(0,Math.min(r-1,Math.floor(e*=r)));return o[t](e-t)}}(e,[n,r,i]),p):[d(0),d(.5),d(1)]}}return p.domain=function(s){return arguments.length?([a,l,c]=s,e=o(a=+a),t=o(l=+l),n=o(c=+c),r=e===t?0:.5/(t-e),i=t===n?0:.5/(n-t),u=t<e?-1:1,p):[a,l,c]},p.clamp=function(e){return arguments.length?(h=!!e,p):h},p.interpolator=function(e){return arguments.length?(d=e,p):d},p.range=f(wLe),p.rangeRound=f(ELe),p.unknown=function(e){return arguments.length?(s=e,p):s},function(s){return o=s,e=s(a),t=s(l),n=s(c),r=e===t?0:.5/(t-e),i=t===n?0:.5/(n-t),u=t<e?-1:1,p}}function iBe(){var e=ZLe(rBe()(ALe));return e.copy=function(){return Zze(e,iBe())},_De.apply(e,arguments)}function oBe(){var e=sVe(rBe()).domain([.1,1,10]);return e.copy=function(){return Zze(e,oBe()).base(e.base())},_De.apply(e,arguments)}function sBe(){var e=uVe(rBe());return e.copy=function(){return Zze(e,sBe()).constant(e.constant())},_De.apply(e,arguments)}function aBe(){var e=gVe(rBe());return e.copy=function(){return Zze(e,aBe()).exponent(e.exponent())},_De.apply(e,arguments)}function lBe(){return aBe.apply(null,arguments).exponent(.5)}function cBe(e,t){if((i=e.length)>1)for(var n,r,i,o=1,s=e[t[0]],a=s.length;o<i;++o)for(r=s,s=e[t[o]],n=0;n<a;++n)s[n][1]+=s[n][0]=isNaN(r[n][1])?r[n][0]:r[n][1]}!function(e){EFe=function(e){var t=e.dateTime,n=e.date,r=e.time,i=e.periods,o=e.days,s=e.shortDays,a=e.months,l=e.shortMonths,c=MFe(i),u=OFe(i),d=MFe(o),h=OFe(o),p=MFe(s),f=OFe(s),g=MFe(a),m=OFe(a),y=MFe(l),v=OFe(l),_={a:function(e){return s[e.getDay()]},A:function(e){return o[e.getDay()]},b:function(e){return l[e.getMonth()]},B:function(e){return a[e.getMonth()]},c:null,d:tze,e:tze,f:sze,g:yze,G:_ze,H:nze,I:rze,j:ize,L:oze,m:aze,M:lze,p:function(e){return i[+(e.getHours()>=12)]},q:function(e){return 1+~~(e.getMonth()/3)},Q:Bze,s:Uze,S:cze,u:uze,U:dze,V:pze,w:fze,W:gze,x:null,X:null,y:mze,Y:vze,Z:bze,"%":zze},b={a:function(e){return s[e.getUTCDay()]},A:function(e){return o[e.getUTCDay()]},b:function(e){return l[e.getUTCMonth()]},B:function(e){return a[e.getUTCMonth()]},c:null,d:xze,e:xze,f:Cze,g:Nze,G:Vze,H:Sze,I:wze,j:Eze,L:Pze,m:Aze,M:kze,p:function(e){return i[+(e.getUTCHours()>=12)]},q:function(e){return 1+~~(e.getUTCMonth()/3)},Q:Bze,s:Uze,S:jze,u:Ize,U:Gze,V:Mze,w:Oze,W:Rze,x:null,X:null,y:Dze,Y:Lze,Z:Fze,"%":zze},x={a:function(e,t,n){var r=p.exec(t.slice(n));return r?(e.w=f.get(r[0].toLowerCase()),n+r[0].length):-1},A:function(e,t,n){var r=d.exec(t.slice(n));return r?(e.w=h.get(r[0].toLowerCase()),n+r[0].length):-1},b:function(e,t,n){var r=y.exec(t.slice(n));return r?(e.m=v.get(r[0].toLowerCase()),n+r[0].length):-1},B:function(e,t,n){var r=g.exec(t.slice(n));return r?(e.m=m.get(r[0].toLowerCase()),n+r[0].length):-1},c:function(e,n,r){return E(e,t,n,r)},d:HFe,e:HFe,f:$Fe,g:zFe,G:FFe,H:XFe,I:XFe,j:qFe,L:ZFe,m:WFe,M:YFe,p:function(e,t,n){var r=c.exec(t.slice(n));return r?(e.p=u.get(r[0].toLowerCase()),n+r[0].length):-1},q:UFe,Q:QFe,s:eze,S:KFe,u:DFe,U:NFe,V:LFe,w:RFe,W:VFe,x:function(e,t,r){return E(e,n,t,r)},X:function(e,t,n){return E(e,r,t,n)},y:zFe,Y:FFe,Z:BFe,"%":JFe};function S(e,t){return function(n){var r,i,o,s=[],a=-1,l=0,c=e.length;for(n instanceof Date||(n=new Date(+n));++a<c;)37===e.charCodeAt(a)&&(s.push(e.slice(l,a)),null!=(i=AFe[r=e.charAt(++a)])?r=e.charAt(++a):i="e"===r?" ":"0",(o=t[r])&&(r=o(n,i)),s.push(r),l=a+1);return s.push(e.slice(l,a)),s.join("")}}function w(e,t){return function(n){var r,i,o=wFe(1900,void 0,1);if(E(o,e,n+="",0)!=n.length)return null;if("Q"in o)return new Date(o.Q);if("s"in o)return new Date(1e3*o.s+("L"in o?o.L:0));if(t&&!("Z"in o)&&(o.Z=0),"p"in o&&(o.H=o.H%12+12*o.p),void 0===o.m&&(o.m="q"in o?o.q:0),"V"in o){if(o.V<1||o.V>53)return null;"w"in o||(o.w=1),"Z"in o?(i=(r=SFe(wFe(o.y,0,1))).getUTCDay(),r=i>4||0===i?sFe.ceil(r):sFe(r),r=YVe.offset(r,7*(o.V-1)),o.y=r.getUTCFullYear(),o.m=r.getUTCMonth(),o.d=r.getUTCDate()+(o.w+6)%7):(i=(r=xFe(wFe(o.y,0,1))).getDay(),r=i>4||0===i?JVe.ceil(r):JVe(r),r=XVe.offset(r,7*(o.V-1)),o.y=r.getFullYear(),o.m=r.getMonth(),o.d=r.getDate()+(o.w+6)%7)}else("W"in o||"U"in o)&&("w"in o||(o.w="u"in o?o.u%7:"W"in o?1:0),i="Z"in o?SFe(wFe(o.y,0,1)).getUTCDay():xFe(wFe(o.y,0,1)).getDay(),o.m=0,o.d="W"in o?(o.w+6)%7+7*o.W-(i+5)%7:o.w+7*o.U-(i+6)%7);return"Z"in o?(o.H+=o.Z/100|0,o.M+=o.Z%100,SFe(o)):xFe(o)}}function E(e,t,n,r){for(var i,o,s=0,a=t.length,l=n.length;s<a;){if(r>=l)return-1;if(37===(i=t.charCodeAt(s++))){if(i=t.charAt(s++),!(o=x[i in AFe?t.charAt(s++):i])||(r=o(e,n,r))<0)return-1}else if(i!=n.charCodeAt(r++))return-1}return r}return _.x=S(n,_),_.X=S(r,_),_.c=S(t,_),b.x=S(n,b),b.X=S(r,b),b.c=S(t,b),{format:function(e){var t=S(e+="",_);return t.toString=function(){return e},t},parse:function(e){var t=w(e+="",!1);return t.toString=function(){return e},t},utcFormat:function(e){var t=S(e+="",b);return t.toString=function(){return e},t},utcParse:function(e){var t=w(e+="",!0);return t.toString=function(){return e},t}}}(e),PFe=EFe.format,EFe.parse,CFe=EFe.utcFormat,EFe.utcParse}({dateTime:"%x, %X",date:"%-m/%-d/%Y",time:"%-I:%M:%S %p",periods:["AM","PM"],days:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],shortDays:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],months:["January","February","March","April","May","June","July","August","September","October","November","December"],shortMonths:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"]});Array.prototype.slice;function uBe(e){return"object"===typeof e&&"length"in e?e:Array.from(e)}function dBe(e){for(var t=e.length,n=new Array(t);--t>=0;)n[t]=t;return n}function hBe(e,t){return e[t]}function pBe(e){const t=[];return t.key=e,t}var fBe=__webpack_require__(94720),gBe=__webpack_require__.n(fBe),mBe=__webpack_require__(13464),yBe=__webpack_require__.n(mBe),vBe=__webpack_require__(63768),_Be=__webpack_require__.n(vBe),bBe=__webpack_require__(61264),xBe=__webpack_require__.n(bBe),SBe=__webpack_require__(69184),wBe=__webpack_require__.n(SBe);function EBe(e){return function(e){if(Array.isArray(e))return PBe(e)}(e)||function(e){if("undefined"!==typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"===typeof e)return PBe(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return PBe(e,t)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function PBe(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var CBe=function(e){return e},ABe={"@@functional/placeholder":!0},kBe=function(e){return e===ABe},jBe=function(e){return function t(){return 0===arguments.length||1===arguments.length&&kBe(arguments.length<=0?void 0:arguments[0])?t:e.apply(void 0,arguments)}},IBe=function e(t,n){return 1===t?n:jBe((function(){for(var r=arguments.length,i=new Array(r),o=0;o<r;o++)i[o]=arguments[o];var s=i.filter((function(e){return e!==ABe})).length;return s>=t?n.apply(void 0,i):e(t-s,jBe((function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];var o=i.map((function(e){return kBe(e)?t.shift():e}));return n.apply(void 0,EBe(o).concat(t))})))}))},GBe=function(e){return IBe(e.length,e)},TBe=function(e,t){for(var n=[],r=e;r<t;++r)n[r-e]=r;return n},MBe=GBe((function(e,t){return Array.isArray(t)?t.map(e):Object.keys(t).map((function(e){return t[e]})).map(e)})),OBe=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];if(!t.length)return CBe;var r=t.reverse(),i=r[0],o=r.slice(1);return function(){return o.reduce((function(e,t){return t(e)}),i.apply(void 0,arguments))}},RBe=function(e){return Array.isArray(e)?e.reverse():e.split("").reverse.join("")},DBe=function(e){var t=null,n=null;return function(){for(var r=arguments.length,i=new Array(r),o=0;o<r;o++)i[o]=arguments[o];return t&&i.every((function(e,n){return e===t[n]}))?n:(t=i,n=e.apply(void 0,i))}};var NBe=GBe((function(e,t,n){var r=+e;return r+n*(+t-r)})),LBe=GBe((function(e,t,n){var r=t-+e;return(n-e)/(r=r||1/0)})),VBe=GBe((function(e,t,n){var r=t-+e;return r=r||1/0,Math.max(0,Math.min(1,(n-e)/r))}));const FBe={rangeStep:function(e,t,n){for(var r=new(wBe())(e),i=0,o=[];r.lt(t)&&i<1e5;)o.push(r.toNumber()),r=r.add(n),i++;return o},getDigitCount:function(e){return 0===e?1:Math.floor(new(wBe())(e).abs().log(10).toNumber())+1},interpolateNumber:NBe,uninterpolateNumber:LBe,uninterpolateTruncation:VBe};function zBe(e){return function(e){if(Array.isArray(e))return WBe(e)}(e)||function(e){if("undefined"!==typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}(e)||UBe(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function BBe(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"===typeof Symbol||!(Symbol.iterator in Object(e)))return;var n=[],r=!0,i=!1,o=void 0;try{for(var s,a=e[Symbol.iterator]();!(r=(s=a.next()).done)&&(n.push(s.value),!t||n.length!==t);r=!0);}catch(l){i=!0,o=l}finally{try{r||null==a.return||a.return()}finally{if(i)throw o}}return n}(e,t)||UBe(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function UBe(e,t){if(e){if("string"===typeof e)return WBe(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?WBe(e,t):void 0}}function WBe(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function HBe(e){var t=BBe(e,2),n=t[0],r=t[1],i=n,o=r;return n>r&&(i=r,o=n),[i,o]}function qBe(e,t,n){if(e.lte(0))return new(wBe())(0);var r=FBe.getDigitCount(e.toNumber()),i=new(wBe())(10).pow(r),o=e.div(i),s=1!==r?.05:.1,a=new(wBe())(Math.ceil(o.div(s).toNumber())).add(n).mul(s).mul(i);return t?a:new(wBe())(Math.ceil(a))}function XBe(e,t,n){var r=1,i=new(wBe())(e);if(!i.isint()&&n){var o=Math.abs(e);o<1?(r=new(wBe())(10).pow(FBe.getDigitCount(e)-1),i=new(wBe())(Math.floor(i.div(r).toNumber())).mul(r)):o>1&&(i=new(wBe())(Math.floor(e)))}else 0===e?i=new(wBe())(Math.floor((t-1)/2)):n||(i=new(wBe())(Math.floor(e)));var s=Math.floor((t-1)/2);return OBe(MBe((function(e){return i.add(new(wBe())(e-s).mul(r)).toNumber()})),TBe)(0,t)}function YBe(e,t,n,r){var i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:0;if(!Number.isFinite((t-e)/(n-1)))return{step:new(wBe())(0),tickMin:new(wBe())(0),tickMax:new(wBe())(0)};var o,s=qBe(new(wBe())(t).sub(e).div(n-1),r,i);o=e<=0&&t>=0?new(wBe())(0):(o=new(wBe())(e).add(t).div(2)).sub(new(wBe())(o).mod(s));var a=Math.ceil(o.sub(e).div(s).toNumber()),l=Math.ceil(new(wBe())(t).sub(o).div(s).toNumber()),c=a+l+1;return c>n?YBe(e,t,n,r,i+1):(c<n&&(l=t>0?l+(n-c):l,a=t>0?a:a+(n-c)),{step:s,tickMin:o.sub(new(wBe())(a).mul(s)),tickMax:o.add(new(wBe())(l).mul(s))})}var KBe=DBe((function(e){var t=BBe(e,2),n=t[0],r=t[1],i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:6,o=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],s=Math.max(i,2),a=BBe(HBe([n,r]),2),l=a[0],c=a[1];if(l===-1/0||c===1/0){var u=c===1/0?[l].concat(zBe(TBe(0,i-1).map((function(){return 1/0})))):[].concat(zBe(TBe(0,i-1).map((function(){return-1/0}))),[c]);return n>r?RBe(u):u}if(l===c)return XBe(l,i,o);var d=YBe(l,c,s,o),h=d.step,p=d.tickMin,f=d.tickMax,g=FBe.rangeStep(p,f.add(new(wBe())(.1).mul(h)),h);return n>r?RBe(g):g})),ZBe=(DBe((function(e){var t=BBe(e,2),n=t[0],r=t[1],i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:6,o=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],s=Math.max(i,2),a=BBe(HBe([n,r]),2),l=a[0],c=a[1];if(l===-1/0||c===1/0)return[n,r];if(l===c)return XBe(l,i,o);var u=qBe(new(wBe())(c).sub(l).div(s-1),o,0),d=OBe(MBe((function(e){return new(wBe())(l).add(new(wBe())(e).mul(u)).toNumber()})),TBe)(0,s).filter((function(e){return e>=l&&e<=c}));return n>r?RBe(d):d})),DBe((function(e,t){var n=BBe(e,2),r=n[0],i=n[1],o=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],s=BBe(HBe([r,i]),2),a=s[0],l=s[1];if(a===-1/0||l===1/0)return[r,i];if(a===l)return[a];var c=Math.max(t,2),u=qBe(new(wBe())(l).sub(a).div(c-1),o,0),d=[].concat(zBe(FBe.rangeStep(new(wBe())(a),new(wBe())(l).sub(new(wBe())(.99).mul(u)),u)),[l]);return r>i?RBe(d):d}))),$Be=["offset","layout","width","dataKey","data","dataPointFormatter","xAxis","yAxis"];function JBe(){return JBe=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},JBe.apply(this,arguments)}function QBe(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,i,o,s,a=[],l=!0,c=!1;try{if(o=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;l=!1}else for(;!(l=(r=o.call(n)).done)&&(a.push(r.value),a.length!==t);l=!0);}catch(e){c=!0,i=e}finally{try{if(!l&&null!=n.return&&(s=n.return(),Object(s)!==s))return}finally{if(c)throw i}}return a}}(e,t)||function(e,t){if(!e)return;if("string"===typeof e)return eUe(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return eUe(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function eUe(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function tUe(e,t){if(null==e)return{};var n,r,i=function(e,t){if(null==e)return{};var n,r,i={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(i[n]=e[n]);return i}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function nUe(e){var t=e.offset,r=e.layout,i=e.width,o=e.dataKey,s=e.data,a=e.dataPointFormatter,l=e.xAxis,c=e.yAxis,u=tUe(e,$Be),d=GGe(u,!1);"x"===e.direction&&"number"!==l.type&&ct(!1);var h=s.map((function(e){var s=a(e,o),u=s.x,h=s.y,p=s.value,f=s.errorVal;if(!f)return null;var g,m,y=[];if(Array.isArray(f)){var v=QBe(f,2);g=v[0],m=v[1]}else g=m=f;if("vertical"===r){var _=l.scale,b=h+t,x=b+i,S=b-i,w=_(p-g),E=_(p+m);y.push({x1:E,y1:x,x2:E,y2:S}),y.push({x1:w,y1:b,x2:E,y2:b}),y.push({x1:w,y1:x,x2:w,y2:S})}else if("horizontal"===r){var P=c.scale,C=u+t,A=C-i,k=C+i,j=P(p-g),I=P(p+m);y.push({x1:A,y1:I,x2:k,y2:I}),y.push({x1:C,y1:j,x2:C,y2:I}),y.push({x1:A,y1:j,x2:k,y2:j})}return n.createElement(BGe,JBe({className:"recharts-errorBar",key:"bar-".concat(y.map((function(e){return"".concat(e.x1,"-").concat(e.x2,"-").concat(e.y1,"-").concat(e.y2)})))},d),y.map((function(e){return n.createElement("line",JBe({},e,{key:"line-".concat(e.x1,"-").concat(e.x2,"-").concat(e.y1,"-").concat(e.y2)}))})))}));return n.createElement(BGe,{className:"recharts-errorBars"},h)}function rUe(e){return rUe="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},rUe(e)}function iUe(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function oUe(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?iUe(Object(n),!0).forEach((function(t){sUe(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):iUe(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function sUe(e,t,n){return(t=function(e){var t=function(e,t){if("object"!==rUe(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==rUe(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===rUe(t)?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}nUe.defaultProps={stroke:"black",strokeWidth:1.5,width:5,offset:0,layout:"horizontal"},nUe.displayName="ErrorBar";var aUe=function(e){var t,n=e.children,r=e.formattedGraphicalItems,i=e.legendWidth,o=e.legendContent,s=AGe(n,iDe);return s?(t=s.props&&s.props.payload?s.props&&s.props.payload:"children"===o?(r||[]).reduce((function(e,t){var n=t.item,r=t.props,i=r.sectors||r.data||[];return e.concat(i.map((function(e){return{type:s.props.iconType||n.props.legendType,value:e.name,color:e.fill,payload:e}})))}),[]):(r||[]).map((function(e){var t=e.item,n=t.props,r=n.dataKey,i=n.name,o=n.legendType;return{inactive:n.hide,dataKey:r,type:s.props.iconType||o||"square",color:mUe(t),value:i||r,payload:t.props}})),oUe(oUe(oUe({},s.props),iDe.getWithHeight(s,i)),{},{payload:t,item:s})):null};function lUe(e){return lUe="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},lUe(e)}function cUe(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function uUe(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?cUe(Object(n),!0).forEach((function(t){dUe(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):cUe(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function dUe(e,t,n){return(t=function(e){var t=function(e,t){if("object"!==lUe(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==lUe(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===lUe(t)?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function hUe(e){return function(e){if(Array.isArray(e))return pUe(e)}(e)||function(e){if("undefined"!==typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"===typeof e)return pUe(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return pUe(e,t)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function pUe(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function fUe(e,t,n){return jIe()(e)||jIe()(t)?n:nGe(t)?RIe()(e,t,n):GIe()(t)?t(e):n}function gUe(e,t,n,r){var i=_Be()(e,(function(e){return fUe(e,t)}));if("number"===n){var o=i.filter((function(e){return tGe(e)||parseFloat(e)}));return o.length?[yBe()(o),gBe()(o)]:[1/0,-1/0]}return(r?i.filter((function(e){return!jIe()(e)})):i).map((function(e){return nGe(e)||e instanceof Date?e:""}))}var mUe=function(e){var t,n=e.type.displayName,r=e.props,i=r.stroke,o=r.fill;switch(n){case"Line":t=i;break;case"Area":case"Radar":t=i&&"none"!==i?i:o;break;default:t=o}return t},yUe=function(e,t,n,r,i){var o=CGe(t.props.children,nUe).filter((function(e){return function(e,t,n){return!!jIe()(t)||("horizontal"===e?"yAxis"===t:"vertical"===e||"x"===n?"xAxis"===t:"y"!==n||"yAxis"===t)}(r,i,e.props.direction)}));if(o&&o.length){var s=o.map((function(e){return e.props.dataKey}));return e.reduce((function(e,t){var r=fUe(t,n,0),i=Array.isArray(r)?[yBe()(r),gBe()(r)]:[r,r],o=s.reduce((function(e,n){var r=fUe(t,n,0),o=i[0]-Math.abs(Array.isArray(r)?r[0]:r),s=i[1]+Math.abs(Array.isArray(r)?r[1]:r);return[Math.min(o,e[0]),Math.max(s,e[1])]}),[1/0,-1/0]);return[Math.min(o[0],e[0]),Math.max(o[1],e[1])]}),[1/0,-1/0])}return null},vUe=function(e,t,n,r,i){var o=t.map((function(t){var o=t.props.dataKey;return"number"===n&&o&&yUe(e,t,o,r)||gUe(e,o,n,i)}));if("number"===n)return o.reduce((function(e,t){return[Math.min(e[0],t[0]),Math.max(e[1],t[1])]}),[1/0,-1/0]);var s={};return o.reduce((function(e,t){for(var n=0,r=t.length;n<r;n++)s[t[n]]||(s[t[n]]=!0,e.push(t[n]));return e}),[])},_Ue=function(e,t){return"horizontal"===e&&"xAxis"===t||"vertical"===e&&"yAxis"===t||"centric"===e&&"angleAxis"===t||"radial"===e&&"radiusAxis"===t},bUe=function(e,t,n,r){if(r)return e.map((function(e){return e.coordinate}));var i,o,s=e.map((function(e){return e.coordinate===t&&(i=!0),e.coordinate===n&&(o=!0),e.coordinate}));return i||s.push(t),o||s.push(n),s},xUe=function(e,t,n){if(!e)return null;var r=e.scale,i=e.duplicateDomain,o=e.type,s=e.range,a="scaleBand"===e.realScaleType?r.bandwidth()/2:2,l=(t||n)&&"category"===o&&r.bandwidth?r.bandwidth()/a:0;return l="angleAxis"===e.axisType&&(null===s||void 0===s?void 0:s.length)>=2?2*QIe(s[0]-s[1])*l:l,t&&(e.ticks||e.niceTicks)?(e.ticks||e.niceTicks).map((function(e){var t=i?i.indexOf(e):e;return{coordinate:r(t)+l,value:e,offset:l}})).filter((function(e){return!ZIe()(e.coordinate)})):e.isCategorical&&e.categoricalDomain?e.categoricalDomain.map((function(e,t){return{coordinate:r(e)+l,value:e,index:t,offset:l}})):r.ticks&&!n?r.ticks(e.tickCount).map((function(e){return{coordinate:r(e)+l,value:e,offset:l}})):r.domain().map((function(e,t){return{coordinate:r(e)+l,value:i?i[e]:e,index:t,offset:l}}))},SUe=new WeakMap,wUe=function(e,t){if("function"!==typeof t)return e;SUe.has(e)||SUe.set(e,new WeakMap);var n=SUe.get(e);if(n.has(t))return n.get(t);var r=function(){e.apply(void 0,arguments),t.apply(void 0,arguments)};return n.set(t,r),r},EUe=function(t,n,r){var i=t.scale,o=t.type,s=t.layout,a=t.axisType;if("auto"===i)return"radial"===s&&"radiusAxis"===a?{scale:ADe(),realScaleType:"band"}:"radial"===s&&"angleAxis"===a?{scale:$Le(),realScaleType:"linear"}:"category"===o&&n&&(n.indexOf("LineChart")>=0||n.indexOf("AreaChart")>=0||n.indexOf("ComposedChart")>=0&&!r)?{scale:jDe(),realScaleType:"point"}:"category"===o?{scale:ADe(),realScaleType:"band"}:{scale:$Le(),realScaleType:"linear"};if(HIe()(i)){var l="scale".concat(MOe()(i));return{scale:(e[l]||jDe)(),realScaleType:e[l]?l:"point"}}return GIe()(i)?{scale:i}:{scale:jDe(),realScaleType:"point"}},PUe=1e-4,CUe=function(e){var t=e.domain();if(t&&!(t.length<=2)){var n=t.length,r=e.range(),i=Math.min(r[0],r[1])-PUe,o=Math.max(r[0],r[1])+PUe,s=e(t[0]),a=e(t[n-1]);(s<i||s>o||a<i||a>o)&&e.domain([t[0],t[n-1]])}},AUe={sign:function(e){var t=e.length;if(!(t<=0))for(var n=0,r=e[0].length;n<r;++n)for(var i=0,o=0,s=0;s<t;++s){var a=ZIe()(e[s][n][1])?e[s][n][0]:e[s][n][1];a>=0?(e[s][n][0]=i,e[s][n][1]=i+a,i=e[s][n][1]):(e[s][n][0]=o,e[s][n][1]=o+a,o=e[s][n][1])}},expand:function(e,t){if((r=e.length)>0){for(var n,r,i,o=0,s=e[0].length;o<s;++o){for(i=n=0;n<r;++n)i+=e[n][o][1]||0;if(i)for(n=0;n<r;++n)e[n][o][1]/=i}cBe(e,t)}},none:cBe,silhouette:function(e,t){if((n=e.length)>0){for(var n,r=0,i=e[t[0]],o=i.length;r<o;++r){for(var s=0,a=0;s<n;++s)a+=e[s][r][1]||0;i[r][1]+=i[r][0]=-a/2}cBe(e,t)}},wiggle:function(e,t){if((i=e.length)>0&&(r=(n=e[t[0]]).length)>0){for(var n,r,i,o=0,s=1;s<r;++s){for(var a=0,l=0,c=0;a<i;++a){for(var u=e[t[a]],d=u[s][1]||0,h=(d-(u[s-1][1]||0))/2,p=0;p<a;++p){var f=e[t[p]];h+=(f[s][1]||0)-(f[s-1][1]||0)}l+=d,c+=h*d}n[s-1][1]+=n[s-1][0]=o,l&&(o-=c/l)}n[s-1][1]+=n[s-1][0]=o,cBe(e,t)}},positive:function(e){var t=e.length;if(!(t<=0))for(var n=0,r=e[0].length;n<r;++n)for(var i=0,o=0;o<t;++o){var s=ZIe()(e[o][n][1])?e[o][n][0]:e[o][n][1];s>=0?(e[o][n][0]=i,e[o][n][1]=i+s,i=e[o][n][1]):(e[o][n][0]=0,e[o][n][1]=0)}}},kUe=function(e,t,n){var r=t.map((function(e){return e.props.dataKey})),i=AUe[n],o=function(){var e=nRe([]),t=dBe,n=cBe,r=hBe;function i(i){var o,s,a=Array.from(e.apply(this,arguments),pBe),l=a.length,c=-1;for(const e of i)for(o=0,++c;o<l;++o)(a[o][c]=[0,+r(e,a[o].key,c,i)]).data=e;for(o=0,s=uBe(t(a));o<l;++o)a[s[o]].index=o;return n(a,s),a}return i.keys=function(t){return arguments.length?(e="function"===typeof t?t:nRe(Array.from(t)),i):e},i.value=function(e){return arguments.length?(r="function"===typeof e?e:nRe(+e),i):r},i.order=function(e){return arguments.length?(t=null==e?dBe:"function"===typeof e?e:nRe(Array.from(e)),i):t},i.offset=function(e){return arguments.length?(n=null==e?cBe:e,i):n},i}().keys(r).value((function(e,t){return+fUe(e,t,0)})).order(dBe).offset(i);return o(e)},jUe=function(e,t){var n=t.realScaleType,r=t.type,i=t.tickCount,o=t.originalDomain,s=t.allowDecimals,a=n||t.scale;if("auto"!==a&&"linear"!==a)return null;if(i&&"number"===r&&o&&("auto"===o[0]||"auto"===o[1])){var l=e.domain();if(!l.length)return null;var c=KBe(l,i,s);return e.domain([yBe()(c),gBe()(c)]),{niceTicks:c}}if(i&&"number"===r){var u=e.domain();return{niceTicks:ZBe(u,i,s)}}return null},IUe=function(e){var t=e.axis,n=e.ticks,r=e.bandSize,i=e.entry,o=e.index,s=e.dataKey;if("category"===t.type){if(!t.allowDuplicatedCategory&&t.dataKey&&!jIe()(i[t.dataKey])){var a=lGe(n,"value",i[t.dataKey]);if(a)return a.coordinate+r/2}return n[o]?n[o].coordinate+r/2:null}var l=fUe(i,jIe()(s)?t.dataKey:s);return jIe()(l)?null:t.scale(l)},GUe=function(e){var t=e.axis,n=e.ticks,r=e.offset,i=e.bandSize,o=e.entry,s=e.index;if("category"===t.type)return n[s]?n[s].coordinate+r:null;var a=fUe(o,t.dataKey,t.domain[s]);return jIe()(a)?null:t.scale(a)-i/2+r},TUe=function(e,t,n){return Object.keys(e).reduce((function(r,i){var o=e[i].stackedData.reduce((function(e,r){var i=r.slice(t,n+1).reduce((function(e,t){return[yBe()(t.concat([e[0]]).filter(tGe)),gBe()(t.concat([e[1]]).filter(tGe))]}),[1/0,-1/0]);return[Math.min(e[0],i[0]),Math.max(e[1],i[1])]}),[1/0,-1/0]);return[Math.min(o[0],r[0]),Math.max(o[1],r[1])]}),[1/0,-1/0]).map((function(e){return e===1/0||e===-1/0?0:e}))},MUe=/^dataMin[\s]*-[\s]*([0-9]+([.]{1}[0-9]+){0,1})$/,OUe=/^dataMax[\s]*\+[\s]*([0-9]+([.]{1}[0-9]+){0,1})$/,RUe=function(e,t,n){if(GIe()(e))return e(t,n);if(!Array.isArray(e))return t;var r=[];if(tGe(e[0]))r[0]=n?e[0]:Math.min(e[0],t[0]);else if(MUe.test(e[0])){var i=+MUe.exec(e[0])[1];r[0]=t[0]-i}else GIe()(e[0])?r[0]=e[0](t[0]):r[0]=t[0];if(tGe(e[1]))r[1]=n?e[1]:Math.max(e[1],t[1]);else if(OUe.test(e[1])){var o=+OUe.exec(e[1])[1];r[1]=t[1]+o}else GIe()(e[1])?r[1]=e[1](t[1]):r[1]=t[1];return r},DUe=function(e,t,n){if(e&&e.scale&&e.scale.bandwidth){var r=e.scale.bandwidth();if(!n||r>0)return r}if(e&&t&&t.length>=2){for(var i=NIe()(t,(function(e){return e.coordinate})),o=1/0,s=1,a=i.length;s<a;s++){var l=i[s],c=i[s-1];o=Math.min((l.coordinate||0)-(c.coordinate||0),o)}return o===1/0?0:o}return n?void 0:0},NUe=function(e,t,n){return e&&e.length?xBe()(e,RIe()(n,"type.defaultProps.domain"))?t:e:t},LUe=function(e,t){var n=e.props,r=n.dataKey,i=n.name,o=n.unit,s=n.formatter,a=n.tooltipType,l=n.chartType,c=n.hide;return uUe(uUe({},GGe(e,!1)),{},{dataKey:r,unit:o,formatter:s,name:i||r,color:mUe(e),value:fUe(t,r),type:a,payload:t,chartType:l,hide:c})};function VUe(e){return VUe="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},VUe(e)}function FUe(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function zUe(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?FUe(Object(n),!0).forEach((function(t){BUe(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):FUe(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function BUe(e,t,n){return(t=function(e){var t=function(e,t){if("object"!==VUe(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==VUe(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===VUe(t)?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var UUe=["Webkit","Moz","O","ms"];function WUe(e){return WUe="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},WUe(e)}function HUe(){return HUe=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},HUe.apply(this,arguments)}function qUe(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function XUe(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?qUe(Object(n),!0).forEach((function(t){QUe(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):qUe(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function YUe(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,eWe(r.key),r)}}function KUe(e,t){return KUe=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},KUe(e,t)}function ZUe(e){var t=function(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=JUe(e);if(t){var i=JUe(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return function(e,t){if(t&&("object"===WUe(t)||"function"===typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return $Ue(e)}(this,n)}}function $Ue(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function JUe(e){return JUe=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},JUe(e)}function QUe(e,t,n){return(t=eWe(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function eWe(e){var t=function(e,t){if("object"!==WUe(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==WUe(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===WUe(t)?t:String(t)}var tWe=function(e){return e.changedTouches&&!!e.changedTouches.length},nWe=function(e){!function(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&KUe(e,t)}(s,e);var t,r,i,o=ZUe(s);function s(e){var t;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,s),QUe($Ue(t=o.call(this,e)),"handleDrag",(function(e){t.leaveTimer&&(clearTimeout(t.leaveTimer),t.leaveTimer=null),t.state.isTravellerMoving?t.handleTravellerMove(e):t.state.isSlideMoving&&t.handleSlideDrag(e)})),QUe($Ue(t),"handleTouchMove",(function(e){null!=e.changedTouches&&e.changedTouches.length>0&&t.handleDrag(e.changedTouches[0])})),QUe($Ue(t),"handleDragEnd",(function(){t.setState({isTravellerMoving:!1,isSlideMoving:!1},(function(){var e=t.props,n=e.endIndex,r=e.onDragEnd,i=e.startIndex;null===r||void 0===r||r({endIndex:n,startIndex:i})})),t.detachDragEndListener()})),QUe($Ue(t),"handleLeaveWrapper",(function(){(t.state.isTravellerMoving||t.state.isSlideMoving)&&(t.leaveTimer=window.setTimeout(t.handleDragEnd,t.props.leaveTimeOut))})),QUe($Ue(t),"handleEnterSlideOrTraveller",(function(){t.setState({isTextActive:!0})})),QUe($Ue(t),"handleLeaveSlideOrTraveller",(function(){t.setState({isTextActive:!1})})),QUe($Ue(t),"handleSlideDragStart",(function(e){var n=tWe(e)?e.changedTouches[0]:e;t.setState({isTravellerMoving:!1,isSlideMoving:!0,slideMoveStartX:n.pageX}),t.attachDragEndListener()})),t.travellerDragStartHandlers={startX:t.handleTravellerDragStart.bind($Ue(t),"startX"),endX:t.handleTravellerDragStart.bind($Ue(t),"endX")},t.state={},t}return t=s,r=[{key:"componentWillUnmount",value:function(){this.leaveTimer&&(clearTimeout(this.leaveTimer),this.leaveTimer=null),this.detachDragEndListener()}},{key:"getIndex",value:function(e){var t=e.startX,n=e.endX,r=this.state.scaleValues,i=this.props,o=i.gap,a=i.data.length-1,l=Math.min(t,n),c=Math.max(t,n),u=s.getIndexInRange(r,l),d=s.getIndexInRange(r,c);return{startIndex:u-u%o,endIndex:d===a?a:d-d%o}}},{key:"getTextOfTick",value:function(e){var t=this.props,n=t.data,r=t.tickFormatter,i=t.dataKey,o=fUe(n[e],i,e);return GIe()(r)?r(o,e):o}},{key:"attachDragEndListener",value:function(){window.addEventListener("mouseup",this.handleDragEnd,!0),window.addEventListener("touchend",this.handleDragEnd,!0),window.addEventListener("mousemove",this.handleDrag,!0)}},{key:"detachDragEndListener",value:function(){window.removeEventListener("mouseup",this.handleDragEnd,!0),window.removeEventListener("touchend",this.handleDragEnd,!0),window.removeEventListener("mousemove",this.handleDrag,!0)}},{key:"handleSlideDrag",value:function(e){var t=this.state,n=t.slideMoveStartX,r=t.startX,i=t.endX,o=this.props,s=o.x,a=o.width,l=o.travellerWidth,c=o.startIndex,u=o.endIndex,d=o.onChange,h=e.pageX-n;h>0?h=Math.min(h,s+a-l-i,s+a-l-r):h<0&&(h=Math.max(h,s-r,s-i));var p=this.getIndex({startX:r+h,endX:i+h});p.startIndex===c&&p.endIndex===u||!d||d(p),this.setState({startX:r+h,endX:i+h,slideMoveStartX:e.pageX})}},{key:"handleTravellerDragStart",value:function(e,t){var n=tWe(t)?t.changedTouches[0]:t;this.setState({isSlideMoving:!1,isTravellerMoving:!0,movingTravellerId:e,brushMoveStartX:n.pageX}),this.attachDragEndListener()}},{key:"handleTravellerMove",value:function(e){var t,n=this.state,r=n.brushMoveStartX,i=n.movingTravellerId,o=n.endX,s=n.startX,a=this.state[i],l=this.props,c=l.x,u=l.width,d=l.travellerWidth,h=l.onChange,p=l.gap,f=l.data,g={startX:this.state.startX,endX:this.state.endX},m=e.pageX-r;m>0?m=Math.min(m,c+u-d-a):m<0&&(m=Math.max(m,c-a)),g[i]=a+m;var y=this.getIndex(g),v=y.startIndex,_=y.endIndex;this.setState((QUe(t={},i,a+m),QUe(t,"brushMoveStartX",e.pageX),t),(function(){h&&function(){var e=f.length-1;return"startX"===i&&(o>s?v%p===0:_%p===0)||o<s&&_===e||"endX"===i&&(o>s?_%p===0:v%p===0)||o>s&&_===e}()&&h(y)}))}},{key:"handleTravellerMoveKeyboard",value:function(e,t){var n=this,r=this.state,i=r.scaleValues,o=r.startX,s=r.endX,a=this.state[t],l=i.indexOf(a);if(-1!==l){var c=l+e;if(!(-1===c||c>=i.length)){var u=i[c];"startX"===t&&u>=s||"endX"===t&&u<=o||this.setState(QUe({},t,u),(function(){n.props.onChange(n.getIndex({startX:n.state.startX,endX:n.state.endX}))}))}}}},{key:"renderBackground",value:function(){var e=this.props,t=e.x,r=e.y,i=e.width,o=e.height,s=e.fill,a=e.stroke;return n.createElement("rect",{stroke:a,fill:s,x:t,y:r,width:i,height:o})}},{key:"renderPanorama",value:function(){var e=this.props,t=e.x,r=e.y,i=e.width,o=e.height,s=e.data,a=e.children,l=e.padding,c=n.Children.only(a);return c?n.cloneElement(c,{x:t,y:r,width:i,height:o,margin:l,compact:!0,data:s}):null}},{key:"renderTravellerLayer",value:function(e,t){var r=this,i=this.props,o=i.y,a=i.travellerWidth,l=i.height,c=i.traveller,u=i.ariaLabel,d=i.data,h=i.startIndex,p=i.endIndex,f=Math.max(e,this.props.x),g=XUe(XUe({},GGe(this.props,!1)),{},{x:f,y:o,width:a,height:l}),m=u||"Min value: ".concat(d[h].name,", Max value: ").concat(d[p].name);return n.createElement(BGe,{tabIndex:0,role:"slider","aria-label":m,"aria-valuenow":e,className:"recharts-brush-traveller",onMouseEnter:this.handleEnterSlideOrTraveller,onMouseLeave:this.handleLeaveSlideOrTraveller,onMouseDown:this.travellerDragStartHandlers[t],onTouchStart:this.travellerDragStartHandlers[t],onKeyDown:function(e){["ArrowLeft","ArrowRight"].includes(e.key)&&(e.preventDefault(),e.stopPropagation(),r.handleTravellerMoveKeyboard("ArrowRight"===e.key?1:-1,t))},onFocus:function(){r.setState({isTravellerFocused:!0})},onBlur:function(){r.setState({isTravellerFocused:!1})},style:{cursor:"col-resize"}},s.renderTraveller(c,g))}},{key:"renderSlide",value:function(e,t){var r=this.props,i=r.y,o=r.height,s=r.stroke,a=r.travellerWidth,l=Math.min(e,t)+a,c=Math.max(Math.abs(t-e)-a,0);return n.createElement("rect",{className:"recharts-brush-slide",onMouseEnter:this.handleEnterSlideOrTraveller,onMouseLeave:this.handleLeaveSlideOrTraveller,onMouseDown:this.handleSlideDragStart,onTouchStart:this.handleSlideDragStart,style:{cursor:"move"},stroke:"none",fill:s,fillOpacity:.2,x:l,y:i,width:c,height:o})}},{key:"renderText",value:function(){var e=this.props,t=e.startIndex,r=e.endIndex,i=e.y,o=e.height,s=e.travellerWidth,a=e.stroke,l=this.state,c=l.startX,u=l.endX,d={pointerEvents:"none",fill:a};return n.createElement(BGe,{className:"recharts-brush-texts"},n.createElement(hNe,HUe({textAnchor:"end",verticalAnchor:"middle",x:Math.min(c,u)-5,y:i+o/2},d),this.getTextOfTick(t)),n.createElement(hNe,HUe({textAnchor:"start",verticalAnchor:"middle",x:Math.max(c,u)+s+5,y:i+o/2},d),this.getTextOfTick(r)))}},{key:"render",value:function(){var e=this.props,t=e.data,r=e.className,i=e.children,o=e.x,s=e.y,a=e.width,l=e.height,c=e.alwaysShowText,u=this.state,d=u.startX,h=u.endX,p=u.isTextActive,f=u.isSlideMoving,g=u.isTravellerMoving,m=u.isTravellerFocused;if(!t||!t.length||!tGe(o)||!tGe(s)||!tGe(a)||!tGe(l)||a<=0||l<=0)return null;var y=UIe("recharts-brush",r),v=1===n.Children.count(i),_=function(e,t){if(!e)return null;var n=e.replace(/(\w)/,(function(e){return e.toUpperCase()})),r=UUe.reduce((function(e,r){return zUe(zUe({},e),{},BUe({},r+n,t))}),{});return r[e]=t,r}("userSelect","none");return n.createElement(BGe,{className:y,onMouseLeave:this.handleLeaveWrapper,onTouchMove:this.handleTouchMove,style:_},this.renderBackground(),v&&this.renderPanorama(),this.renderSlide(d,h),this.renderTravellerLayer(d,"startX"),this.renderTravellerLayer(h,"endX"),(p||f||g||m||c)&&this.renderText())}}],i=[{key:"renderDefaultTraveller",value:function(e){var t=e.x,r=e.y,i=e.width,o=e.height,s=e.stroke,a=Math.floor(r+o/2)-1;return n.createElement(n.Fragment,null,n.createElement("rect",{x:t,y:r,width:i,height:o,fill:s,stroke:"none"}),n.createElement("line",{x1:t+1,y1:a,x2:t+i-1,y2:a,fill:"none",stroke:"#fff"}),n.createElement("line",{x1:t+1,y1:a+2,x2:t+i-1,y2:a+2,fill:"none",stroke:"#fff"}))}},{key:"renderTraveller",value:function(e,t){return n.isValidElement(e)?n.cloneElement(e,t):GIe()(e)?e(t):s.renderDefaultTraveller(t)}},{key:"getDerivedStateFromProps",value:function(e,t){var n=e.data,r=e.width,i=e.x,o=e.travellerWidth,s=e.updateId,a=e.startIndex,l=e.endIndex;if(n!==t.prevData||s!==t.prevUpdateId)return XUe({prevData:n,prevTravellerWidth:o,prevUpdateId:s,prevX:i,prevWidth:r},n&&n.length?function(e){var t=e.data,n=e.startIndex,r=e.endIndex,i=e.x,o=e.width,s=e.travellerWidth;if(!t||!t.length)return{};var a=t.length,l=jDe().domain(MIe()(0,a)).range([i,i+o-s]),c=l.domain().map((function(e){return l(e)}));return{isTextActive:!1,isSlideMoving:!1,isTravellerMoving:!1,isTravellerFocused:!1,startX:l(n),endX:l(r),scale:l,scaleValues:c}}({data:n,width:r,x:i,travellerWidth:o,startIndex:a,endIndex:l}):{scale:null,scaleValues:null});if(t.scale&&(r!==t.prevWidth||i!==t.prevX||o!==t.prevTravellerWidth)){t.scale.range([i,i+r-o]);var c=t.scale.domain().map((function(e){return t.scale(e)}));return{prevData:n,prevTravellerWidth:o,prevUpdateId:s,prevX:i,prevWidth:r,startX:t.scale(e.startIndex),endX:t.scale(e.endIndex),scaleValues:c}}return null}},{key:"getIndexInRange",value:function(e,t){for(var n=0,r=e.length-1;r-n>1;){var i=Math.floor((n+r)/2);e[i]>t?r=i:n=i}return t>=e[r]?r:n}}],r&&YUe(t.prototype,r),i&&YUe(t,i),Object.defineProperty(t,"prototype",{writable:!1}),s}(n.PureComponent);function rWe(e){return rWe="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},rWe(e)}function iWe(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function oWe(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?iWe(Object(n),!0).forEach((function(t){sWe(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):iWe(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function sWe(e,t,n){return(t=function(e){var t=function(e,t){if("object"!==rWe(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==rWe(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===rWe(t)?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function aWe(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,i,o,s,a=[],l=!0,c=!1;try{if(o=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;l=!1}else for(;!(l=(r=o.call(n)).done)&&(a.push(r.value),a.length!==t);l=!0);}catch(e){c=!0,i=e}finally{try{if(!l&&null!=n.return&&(s=n.return(),Object(s)!==s))return}finally{if(c)throw i}}return a}}(e,t)||function(e,t){if(!e)return;if("string"===typeof e)return lWe(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return lWe(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function lWe(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}QUe(nWe,"displayName","Brush"),QUe(nWe,"defaultProps",{height:40,travellerWidth:5,gap:1,fill:"#fff",stroke:"#666",padding:{top:1,right:1,bottom:1,left:1},leaveTimeOut:1e3,alwaysShowText:!1});var cWe=Math.PI/180,uWe=function(e){return 180*e/Math.PI},dWe=function(e,t,n,r){return{x:e+Math.cos(-cWe*r)*n,y:t+Math.sin(-cWe*r)*n}},hWe=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{top:0,right:0,bottom:0,left:0};return Math.min(Math.abs(e-(n.left||0)-(n.right||0)),Math.abs(t-(n.top||0)-(n.bottom||0)))/2},pWe=function(e,t){var n=e.x,r=e.y,i=t.cx,o=t.cy,s=function(e,t){var n=e.x,r=e.y,i=t.x,o=t.y;return Math.sqrt(Math.pow(n-i,2)+Math.pow(r-o,2))}({x:n,y:r},{x:i,y:o});if(s<=0)return{radius:s};var a=(n-i)/s,l=Math.acos(a);return r>o&&(l=2*Math.PI-l),{radius:s,angle:uWe(l),angleInRadian:l}},fWe=function(e,t){var n=t.startAngle,r=t.endAngle,i=Math.floor(n/360),o=Math.floor(r/360);return e+360*Math.min(i,o)},gWe=function(e,t){var n=e.x,r=e.y,i=pWe({x:n,y:r},t),o=i.radius,s=i.angle,a=t.innerRadius,l=t.outerRadius;if(o<a||o>l)return!1;if(0===o)return!0;var c,u=function(e){var t=e.startAngle,n=e.endAngle,r=Math.floor(t/360),i=Math.floor(n/360),o=Math.min(r,i);return{startAngle:t-360*o,endAngle:n-360*o}}(t),d=u.startAngle,h=u.endAngle,p=s;if(d<=h){for(;p>h;)p-=360;for(;p<d;)p+=360;c=p>=d&&p<=h}else{for(;p>d;)p-=360;for(;p<h;)p+=360;c=p>=h&&p<=d}return c?oWe(oWe({},t),{},{radius:o,angle:fWe(p,t)}):null};function mWe(e){return mWe="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},mWe(e)}var yWe=["offset"];function vWe(e){return function(e){if(Array.isArray(e))return _We(e)}(e)||function(e){if("undefined"!==typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"===typeof e)return _We(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return _We(e,t)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function _We(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function bWe(e,t){if(null==e)return{};var n,r,i=function(e,t){if(null==e)return{};var n,r,i={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(i[n]=e[n]);return i}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function xWe(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function SWe(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?xWe(Object(n),!0).forEach((function(t){wWe(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):xWe(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function wWe(e,t,n){return(t=function(e){var t=function(e,t){if("object"!==mWe(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==mWe(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===mWe(t)?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function EWe(){return EWe=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},EWe.apply(this,arguments)}var PWe=function(e){var t=e.value,n=e.formatter,r=jIe()(e.children)?t:e.children;return GIe()(n)?n(r):r},CWe=function(e,t,r){var i,o,s=e.position,a=e.viewBox,l=e.offset,c=e.className,u=a,d=u.cx,h=u.cy,p=u.innerRadius,f=u.outerRadius,g=u.startAngle,m=u.endAngle,y=u.clockWise,v=(p+f)/2,_=function(e,t){return QIe(t-e)*Math.min(Math.abs(t-e),360)}(g,m),b=_>=0?1:-1;"insideStart"===s?(i=g+b*l,o=y):"insideEnd"===s?(i=m-b*l,o=!y):"end"===s&&(i=m+b*l,o=y),o=_<=0?o:!o;var x=dWe(d,h,v,i),S=dWe(d,h,v,i+359*(o?1:-1)),w="M".concat(x.x,",").concat(x.y,"\n    A").concat(v,",").concat(v,",0,1,").concat(o?0:1,",\n    ").concat(S.x,",").concat(S.y),E=jIe()(e.id)?iGe("recharts-radial-line-"):e.id;return n.createElement("text",EWe({},r,{dominantBaseline:"central",className:UIe("recharts-radial-bar-label",c)}),n.createElement("defs",null,n.createElement("path",{id:E,d:w})),n.createElement("textPath",{xlinkHref:"#".concat(E)},t))},AWe=function(e){var t=e.viewBox,n=e.offset,r=e.position,i=t,o=i.cx,s=i.cy,a=i.innerRadius,l=i.outerRadius,c=(i.startAngle+i.endAngle)/2;if("outside"===r){var u=dWe(o,s,l+n,c),d=u.x;return{x:d,y:u.y,textAnchor:d>=o?"start":"end",verticalAnchor:"middle"}}if("center"===r)return{x:o,y:s,textAnchor:"middle",verticalAnchor:"middle"};if("centerTop"===r)return{x:o,y:s,textAnchor:"middle",verticalAnchor:"start"};if("centerBottom"===r)return{x:o,y:s,textAnchor:"middle",verticalAnchor:"end"};var h=dWe(o,s,(a+l)/2,c);return{x:h.x,y:h.y,textAnchor:"middle",verticalAnchor:"middle"}},kWe=function(e){var t=e.viewBox,n=e.parentViewBox,r=e.offset,i=e.position,o=t,s=o.x,a=o.y,l=o.width,c=o.height,u=c>=0?1:-1,d=u*r,h=u>0?"end":"start",p=u>0?"start":"end",f=l>=0?1:-1,g=f*r,m=f>0?"end":"start",y=f>0?"start":"end";if("top"===i)return SWe(SWe({},{x:s+l/2,y:a-u*r,textAnchor:"middle",verticalAnchor:h}),n?{height:Math.max(a-n.y,0),width:l}:{});if("bottom"===i)return SWe(SWe({},{x:s+l/2,y:a+c+d,textAnchor:"middle",verticalAnchor:p}),n?{height:Math.max(n.y+n.height-(a+c),0),width:l}:{});if("left"===i){var v={x:s-g,y:a+c/2,textAnchor:m,verticalAnchor:"middle"};return SWe(SWe({},v),n?{width:Math.max(v.x-n.x,0),height:c}:{})}if("right"===i){var _={x:s+l+g,y:a+c/2,textAnchor:y,verticalAnchor:"middle"};return SWe(SWe({},_),n?{width:Math.max(n.x+n.width-_.x,0),height:c}:{})}var b=n?{width:l,height:c}:{};return"insideLeft"===i?SWe({x:s+g,y:a+c/2,textAnchor:y,verticalAnchor:"middle"},b):"insideRight"===i?SWe({x:s+l-g,y:a+c/2,textAnchor:m,verticalAnchor:"middle"},b):"insideTop"===i?SWe({x:s+l/2,y:a+d,textAnchor:"middle",verticalAnchor:p},b):"insideBottom"===i?SWe({x:s+l/2,y:a+c-d,textAnchor:"middle",verticalAnchor:h},b):"insideTopLeft"===i?SWe({x:s+g,y:a+d,textAnchor:y,verticalAnchor:p},b):"insideTopRight"===i?SWe({x:s+l-g,y:a+d,textAnchor:m,verticalAnchor:p},b):"insideBottomLeft"===i?SWe({x:s+g,y:a+c-d,textAnchor:y,verticalAnchor:h},b):"insideBottomRight"===i?SWe({x:s+l-g,y:a+c-d,textAnchor:m,verticalAnchor:h},b):XIe()(i)&&(tGe(i.x)||eGe(i.x))&&(tGe(i.y)||eGe(i.y))?SWe({x:s+oGe(i.x,l),y:a+oGe(i.y,c),textAnchor:"end",verticalAnchor:"end"},b):SWe({x:s+l/2,y:a+c/2,textAnchor:"middle",verticalAnchor:"middle"},b)},jWe=function(e){return"cx"in e&&tGe(e.cx)};function IWe(e){var t,r=e.offset,i=SWe({offset:void 0===r?5:r},bWe(e,yWe)),o=i.viewBox,s=i.position,a=i.value,l=i.children,c=i.content,u=i.className,d=void 0===u?"":u,h=i.textBreakAll;if(!o||jIe()(a)&&jIe()(l)&&!(0,n.isValidElement)(c)&&!GIe()(c))return null;if((0,n.isValidElement)(c))return(0,n.cloneElement)(c,i);if(GIe()(c)){if(t=(0,n.createElement)(c,i),(0,n.isValidElement)(t))return t}else t=PWe(i);var p=jWe(o),f=GGe(i,!0);if(p&&("insideStart"===s||"insideEnd"===s||"end"===s))return CWe(i,t,f);var g=p?AWe(i):kWe(i);return n.createElement(hNe,EWe({className:UIe("recharts-label",d)},f,g,{breakAll:h}),t)}IWe.displayName="Label";var GWe=function(e){var t=e.cx,n=e.cy,r=e.angle,i=e.startAngle,o=e.endAngle,s=e.r,a=e.radius,l=e.innerRadius,c=e.outerRadius,u=e.x,d=e.y,h=e.top,p=e.left,f=e.width,g=e.height,m=e.clockWise,y=e.labelViewBox;if(y)return y;if(tGe(f)&&tGe(g)){if(tGe(u)&&tGe(d))return{x:u,y:d,width:f,height:g};if(tGe(h)&&tGe(p))return{x:h,y:p,width:f,height:g}}return tGe(u)&&tGe(d)?{x:u,y:d,width:0,height:0}:tGe(t)&&tGe(n)?{cx:t,cy:n,startAngle:i||r||0,endAngle:o||r||0,innerRadius:l||0,outerRadius:c||a||s||0,clockWise:m}:e.viewBox?e.viewBox:{}};IWe.parseViewBox=GWe,IWe.renderCallByParent=function(e,t){var r=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];if(!e||!e.children&&r&&!e.label)return null;var i=e.children,o=GWe(e),s=CGe(i,IWe).map((function(e,r){return(0,n.cloneElement)(e,{viewBox:t||o,key:"label-".concat(r)})}));if(!r)return s;var a=function(e,t){return e?!0===e?n.createElement(IWe,{key:"label-implicit",viewBox:t}):nGe(e)?n.createElement(IWe,{key:"label-implicit",viewBox:t,value:e}):(0,n.isValidElement)(e)?e.type===IWe?(0,n.cloneElement)(e,{key:"label-implicit",viewBox:t}):n.createElement(IWe,{key:"label-implicit",content:e,viewBox:t}):GIe()(e)?n.createElement(IWe,{key:"label-implicit",content:e,viewBox:t}):XIe()(e)?n.createElement(IWe,EWe({viewBox:t},e,{key:"label-implicit"})):null:null}(e.label,t||o);return[a].concat(vWe(s))};var TWe=function(e,t){var n=e.alwaysShow,r=e.ifOverflow;return n&&(r="extendDomain"),r===t},MWe=__webpack_require__(65880),OWe=__webpack_require__.n(MWe),RWe=function(e){return null};RWe.displayName="Cell";var DWe=__webpack_require__(11140),NWe=__webpack_require__.n(DWe);function LWe(e){return LWe="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},LWe(e)}var VWe=["valueAccessor"],FWe=["data","dataKey","clockWise","id","textBreakAll"];function zWe(e){return function(e){if(Array.isArray(e))return BWe(e)}(e)||function(e){if("undefined"!==typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"===typeof e)return BWe(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return BWe(e,t)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function BWe(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function UWe(){return UWe=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},UWe.apply(this,arguments)}function WWe(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function HWe(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?WWe(Object(n),!0).forEach((function(t){qWe(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):WWe(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function qWe(e,t,n){return(t=function(e){var t=function(e,t){if("object"!==LWe(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==LWe(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===LWe(t)?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function XWe(e,t){if(null==e)return{};var n,r,i=function(e,t){if(null==e)return{};var n,r,i={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(i[n]=e[n]);return i}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}var YWe=function(e){return Array.isArray(e.value)?NWe()(e.value):e.value};function KWe(e){var t=e.valueAccessor,r=void 0===t?YWe:t,i=XWe(e,VWe),o=i.data,s=i.dataKey,a=i.clockWise,l=i.id,c=i.textBreakAll,u=XWe(i,FWe);return o&&o.length?n.createElement(BGe,{className:"recharts-label-list"},o.map((function(e,t){var i=jIe()(s)?r(e,t):fUe(e&&e.payload,s),o=jIe()(l)?{}:{id:"".concat(l,"-").concat(t)};return n.createElement(IWe,UWe({},GGe(e,!0),u,o,{parentViewBox:e.parentViewBox,value:i,textBreakAll:c,viewBox:IWe.parseViewBox(jIe()(a)?e:HWe(HWe({},e),{},{clockWise:a})),key:"label-".concat(t),index:t}))}))):null}KWe.displayName="LabelList",KWe.renderCallByParent=function(e,t){var r=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];if(!e||!e.children&&r&&!e.label)return null;var i=CGe(e.children,KWe).map((function(e,r){return(0,n.cloneElement)(e,{data:t,key:"labelList-".concat(r)})}));return r?[function(e,t){return e?!0===e?n.createElement(KWe,{key:"labelList-implicit",data:t}):n.isValidElement(e)||GIe()(e)?n.createElement(KWe,{key:"labelList-implicit",data:t,content:e}):XIe()(e)?n.createElement(KWe,UWe({data:t},e,{key:"labelList-implicit"})):null:null}(e.label,t)].concat(zWe(i)):i};var ZWe=__webpack_require__(6479),$We=__webpack_require__.n(ZWe),JWe=__webpack_require__(8740),QWe=__webpack_require__.n(JWe);function eHe(e){return eHe="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},eHe(e)}function tHe(){return tHe=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},tHe.apply(this,arguments)}function nHe(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,i,o,s,a=[],l=!0,c=!1;try{if(o=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;l=!1}else for(;!(l=(r=o.call(n)).done)&&(a.push(r.value),a.length!==t);l=!0);}catch(e){c=!0,i=e}finally{try{if(!l&&null!=n.return&&(s=n.return(),Object(s)!==s))return}finally{if(c)throw i}}return a}}(e,t)||function(e,t){if(!e)return;if("string"===typeof e)return rHe(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return rHe(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function rHe(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function iHe(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function oHe(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?iHe(Object(n),!0).forEach((function(t){sHe(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):iHe(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function sHe(e,t,n){return(t=function(e){var t=function(e,t){if("object"!==eHe(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==eHe(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===eHe(t)?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var aHe=function(e,t,n,r,i){var o,s=n-r;return o="M ".concat(e,",").concat(t),o+="L ".concat(e+n,",").concat(t),o+="L ".concat(e+n-s/2,",").concat(t+i),o+="L ".concat(e+n-s/2-r,",").concat(t+i),o+="L ".concat(e,",").concat(t," Z")},lHe={x:0,y:0,upperWidth:0,lowerWidth:0,height:0,isUpdateAnimationActive:!1,animationBegin:0,animationDuration:1500,animationEasing:"ease"},cHe=function(e){var t=oHe(oHe({},lHe),e),r=(0,n.useRef)(),i=nHe((0,n.useState)(-1),2),o=i[0],s=i[1];(0,n.useEffect)((function(){if(r.current&&r.current.getTotalLength)try{var e=r.current.getTotalLength();e&&s(e)}catch(t){}}),[]);var a=t.x,l=t.y,c=t.upperWidth,u=t.lowerWidth,d=t.height,h=t.className,p=t.animationEasing,f=t.animationDuration,g=t.animationBegin,m=t.isUpdateAnimationActive;if(a!==+a||l!==+l||c!==+c||u!==+u||d!==+d||0===c&&0===u||0===d)return null;var y=UIe("recharts-trapezoid",h);return m?n.createElement($Me,{canBegin:o>0,from:{upperWidth:0,lowerWidth:0,height:d,x:a,y:l},to:{upperWidth:c,lowerWidth:u,height:d,x:a,y:l},duration:f,animationEasing:p,isActive:m},(function(e){var i=e.upperWidth,s=e.lowerWidth,a=e.height,l=e.x,c=e.y;return n.createElement($Me,{canBegin:o>0,from:"0px ".concat(-1===o?1:o,"px"),to:"".concat(o,"px 0px"),attributeName:"strokeDasharray",begin:g,duration:f,easing:p},n.createElement("path",tHe({},GGe(t,!0),{className:y,d:aHe(l,c,i,s,a),ref:r})))})):n.createElement("g",null,n.createElement("path",tHe({},GGe(t,!0),{className:y,d:aHe(a,l,c,u,d)})))};function uHe(e){return uHe="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},uHe(e)}function dHe(){return dHe=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},dHe.apply(this,arguments)}function hHe(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function pHe(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?hHe(Object(n),!0).forEach((function(t){fHe(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):hHe(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function fHe(e,t,n){return(t=function(e){var t=function(e,t){if("object"!==uHe(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==uHe(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===uHe(t)?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var gHe=function(e){var t=e.cx,n=e.cy,r=e.radius,i=e.angle,o=e.sign,s=e.isExternal,a=e.cornerRadius,l=e.cornerIsExternal,c=a*(s?1:-1)+r,u=Math.asin(a/c)/cWe,d=l?i:i+o*u,h=l?i-o*u:i;return{center:dWe(t,n,c,d),circleTangency:dWe(t,n,r,d),lineTangency:dWe(t,n,c*Math.cos(u*cWe),h),theta:u}},mHe=function(e){var t=e.cx,n=e.cy,r=e.innerRadius,i=e.outerRadius,o=e.startAngle,s=function(e,t){return QIe(t-e)*Math.min(Math.abs(t-e),359.999)}(o,e.endAngle),a=o+s,l=dWe(t,n,i,o),c=dWe(t,n,i,a),u="M ".concat(l.x,",").concat(l.y,"\n    A ").concat(i,",").concat(i,",0,\n    ").concat(+(Math.abs(s)>180),",").concat(+(o>a),",\n    ").concat(c.x,",").concat(c.y,"\n  ");if(r>0){var d=dWe(t,n,r,o),h=dWe(t,n,r,a);u+="L ".concat(h.x,",").concat(h.y,"\n            A ").concat(r,",").concat(r,",0,\n            ").concat(+(Math.abs(s)>180),",").concat(+(o<=a),",\n            ").concat(d.x,",").concat(d.y," Z")}else u+="L ".concat(t,",").concat(n," Z");return u},yHe={cx:0,cy:0,innerRadius:0,outerRadius:0,startAngle:0,endAngle:0,cornerRadius:0,forceCornerRadius:!1,cornerIsExternal:!1},vHe=function(e){var t=pHe(pHe({},yHe),e),r=t.cx,i=t.cy,o=t.innerRadius,s=t.outerRadius,a=t.cornerRadius,l=t.forceCornerRadius,c=t.cornerIsExternal,u=t.startAngle,d=t.endAngle,h=t.className;if(s<o||u===d)return null;var p,f=UIe("recharts-sector",h),g=s-o,m=oGe(a,g,0,!0);return p=m>0&&Math.abs(u-d)<360?function(e){var t=e.cx,n=e.cy,r=e.innerRadius,i=e.outerRadius,o=e.cornerRadius,s=e.forceCornerRadius,a=e.cornerIsExternal,l=e.startAngle,c=e.endAngle,u=QIe(c-l),d=gHe({cx:t,cy:n,radius:i,angle:l,sign:u,cornerRadius:o,cornerIsExternal:a}),h=d.circleTangency,p=d.lineTangency,f=d.theta,g=gHe({cx:t,cy:n,radius:i,angle:c,sign:-u,cornerRadius:o,cornerIsExternal:a}),m=g.circleTangency,y=g.lineTangency,v=g.theta,_=a?Math.abs(l-c):Math.abs(l-c)-f-v;if(_<0)return s?"M ".concat(p.x,",").concat(p.y,"\n        a").concat(o,",").concat(o,",0,0,1,").concat(2*o,",0\n        a").concat(o,",").concat(o,",0,0,1,").concat(2*-o,",0\n      "):mHe({cx:t,cy:n,innerRadius:r,outerRadius:i,startAngle:l,endAngle:c});var b="M ".concat(p.x,",").concat(p.y,"\n    A").concat(o,",").concat(o,",0,0,").concat(+(u<0),",").concat(h.x,",").concat(h.y,"\n    A").concat(i,",").concat(i,",0,").concat(+(_>180),",").concat(+(u<0),",").concat(m.x,",").concat(m.y,"\n    A").concat(o,",").concat(o,",0,0,").concat(+(u<0),",").concat(y.x,",").concat(y.y,"\n  ");if(r>0){var x=gHe({cx:t,cy:n,radius:r,angle:l,sign:u,isExternal:!0,cornerRadius:o,cornerIsExternal:a}),S=x.circleTangency,w=x.lineTangency,E=x.theta,P=gHe({cx:t,cy:n,radius:r,angle:c,sign:-u,isExternal:!0,cornerRadius:o,cornerIsExternal:a}),C=P.circleTangency,A=P.lineTangency,k=P.theta,j=a?Math.abs(l-c):Math.abs(l-c)-E-k;if(j<0&&0===o)return"".concat(b,"L").concat(t,",").concat(n,"Z");b+="L".concat(A.x,",").concat(A.y,"\n      A").concat(o,",").concat(o,",0,0,").concat(+(u<0),",").concat(C.x,",").concat(C.y,"\n      A").concat(r,",").concat(r,",0,").concat(+(j>180),",").concat(+(u>0),",").concat(S.x,",").concat(S.y,"\n      A").concat(o,",").concat(o,",0,0,").concat(+(u<0),",").concat(w.x,",").concat(w.y,"Z")}else b+="L".concat(t,",").concat(n,"Z");return b}({cx:r,cy:i,innerRadius:o,outerRadius:s,cornerRadius:Math.min(m,g/2),forceCornerRadius:l,cornerIsExternal:c,startAngle:u,endAngle:d}):mHe({cx:r,cy:i,innerRadius:o,outerRadius:s,startAngle:u,endAngle:d}),n.createElement("path",dHe({},GGe(t,!0),{className:f,d:p,role:"img"}))},_He=["option","shapeType","propTransformer","activeClassName","isActive"];function bHe(e){return bHe="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},bHe(e)}function xHe(e,t){if(null==e)return{};var n,r,i=function(e,t){if(null==e)return{};var n,r,i={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(i[n]=e[n]);return i}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function SHe(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function wHe(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?SHe(Object(n),!0).forEach((function(t){EHe(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):SHe(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function EHe(e,t,n){return(t=function(e){var t=function(e,t){if("object"!==bHe(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==bHe(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===bHe(t)?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function PHe(e,t){return wHe(wHe({},t),e)}function CHe(e){var t=e.shapeType,r=e.elementProps;switch(t){case"rectangle":return n.createElement(yDe,r);case"trapezoid":return n.createElement(cHe,r);case"sector":return n.createElement(vHe,r);case"symbols":if(function(e,t){return"symbols"===e}(t))return n.createElement(MRe,r);break;default:return null}}function AHe(e){var t,r=e.option,i=e.shapeType,o=e.propTransformer,s=void 0===o?PHe:o,a=e.activeClassName,l=void 0===a?"recharts-active-shape":a,c=e.isActive,u=xHe(e,_He);if((0,n.isValidElement)(r))t=(0,n.cloneElement)(r,wHe(wHe({},u),function(e){return(0,n.isValidElement)(e)?e.props:e}(r)));else if(GIe()(r))t=r(u);else if($We()(r)&&!QWe()(r)){var d=s(r,u);t=n.createElement(CHe,{shapeType:i,elementProps:d})}else{var h=u;t=n.createElement(CHe,{shapeType:i,elementProps:h})}return c?n.createElement(BGe,{className:l},t):t}function kHe(e,t){return null!=t&&"trapezoids"in e.props}function jHe(e,t){return null!=t&&"sectors"in e.props}function IHe(e,t){return null!=t&&"points"in e.props}function GHe(e,t){var n,r,i=e.x===(null===t||void 0===t||null===(n=t.labelViewBox)||void 0===n?void 0:n.x)||e.x===t.x,o=e.y===(null===t||void 0===t||null===(r=t.labelViewBox)||void 0===r?void 0:r.y)||e.y===t.y;return i&&o}function THe(e,t){var n=e.endAngle===t.endAngle,r=e.startAngle===t.startAngle;return n&&r}function MHe(e,t){var n=e.x===t.x,r=e.y===t.y,i=e.z===t.z;return n&&r&&i}function OHe(e){var t=e.activeTooltipItem,n=e.graphicalItem,r=e.itemData,i=function(e,t){var n;return kHe(e,t)?n="trapezoids":jHe(e,t)?n="sectors":IHe(e,t)&&(n="points"),n}(n,t),o=function(e,t){var n,r;return kHe(e,t)?null===(n=t.tooltipPayload)||void 0===n||null===(n=n[0])||void 0===n||null===(n=n.payload)||void 0===n?void 0:n.payload:jHe(e,t)?null===(r=t.tooltipPayload)||void 0===r||null===(r=r[0])||void 0===r||null===(r=r.payload)||void 0===r?void 0:r.payload:IHe(e,t)?t.payload:{}}(n,t),s=r.filter((function(e,r){var s=xBe()(o,e),a=n.props[i].filter((function(e){var r=function(e,t){var n;return kHe(e,t)?n=GHe:jHe(e,t)?n=THe:IHe(e,t)&&(n=MHe),n}(n,t);return r(e,t)})),l=n.props[i].indexOf(a[a.length-1]);return s&&r===l}));return r.indexOf(s[s.length-1])}function RHe(e){return RHe="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},RHe(e)}var DHe=["x","y"];function NHe(){return NHe=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},NHe.apply(this,arguments)}function LHe(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function VHe(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?LHe(Object(n),!0).forEach((function(t){FHe(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):LHe(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function FHe(e,t,n){return(t=function(e){var t=function(e,t){if("object"!==RHe(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==RHe(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===RHe(t)?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function zHe(e,t){if(null==e)return{};var n,r,i=function(e,t){if(null==e)return{};var n,r,i={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(i[n]=e[n]);return i}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function BHe(e,t){var n=e.x,r=e.y,i=zHe(e,DHe),o="".concat(n),s=parseInt(o,10),a="".concat(r),l=parseInt(a,10),c="".concat(t.height||i.height),u=parseInt(c,10),d="".concat(t.width||i.width),h=parseInt(d,10);return VHe(VHe(VHe(VHe(VHe({},t),i),s?{x:s}:{}),l?{y:l}:{}),{},{height:u,width:h,name:t.name,radius:t.radius})}function UHe(e){return n.createElement(AHe,NHe({shapeType:"rectangle",propTransformer:BHe,activeClassName:"recharts-active-bar"},e))}var WHe=["value","background"];function HHe(e){return HHe="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},HHe(e)}function qHe(e,t){if(null==e)return{};var n,r,i=function(e,t){if(null==e)return{};var n,r,i={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(i[n]=e[n]);return i}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function XHe(){return XHe=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},XHe.apply(this,arguments)}function YHe(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function KHe(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?YHe(Object(n),!0).forEach((function(t){tqe(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):YHe(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function ZHe(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,nqe(r.key),r)}}function $He(e,t){return $He=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},$He(e,t)}function JHe(e){var t=function(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=eqe(e);if(t){var i=eqe(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return function(e,t){if(t&&("object"===HHe(t)||"function"===typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return QHe(e)}(this,n)}}function QHe(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function eqe(e){return eqe=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},eqe(e)}function tqe(e,t,n){return(t=nqe(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function nqe(e){var t=function(e,t){if("object"!==HHe(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==HHe(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===HHe(t)?t:String(t)}var rqe=function(e){!function(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&$He(e,t)}(s,e);var t,r,i,o=JHe(s);function s(){var e;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,s);for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return tqe(QHe(e=o.call.apply(o,[this].concat(n))),"state",{isAnimationFinished:!1}),tqe(QHe(e),"id",iGe("recharts-bar-")),tqe(QHe(e),"handleAnimationEnd",(function(){var t=e.props.onAnimationEnd;e.setState({isAnimationFinished:!0}),t&&t()})),tqe(QHe(e),"handleAnimationStart",(function(){var t=e.props.onAnimationStart;e.setState({isAnimationFinished:!1}),t&&t()})),e}return t=s,r=[{key:"renderRectanglesStatically",value:function(e){var t=this,r=this.props,i=r.shape,o=r.dataKey,s=r.activeIndex,a=r.activeBar,l=GGe(this.props,!1);return e&&e.map((function(e,r){var c=r===s,u=c?a:i,d=KHe(KHe(KHe({},l),e),{},{isActive:c,option:u,index:r,dataKey:o,onAnimationStart:t.handleAnimationStart,onAnimationEnd:t.handleAnimationEnd});return n.createElement(BGe,XHe({className:"recharts-bar-rectangle"},mGe(t.props,e,r),{key:"rectangle-".concat(null===e||void 0===e?void 0:e.x,"-").concat(null===e||void 0===e?void 0:e.y,"-").concat(null===e||void 0===e?void 0:e.value)}),n.createElement(UHe,d))}))}},{key:"renderRectanglesWithAnimation",value:function(){var e=this,t=this.props,r=t.data,i=t.layout,o=t.isAnimationActive,s=t.animationBegin,a=t.animationDuration,l=t.animationEasing,c=t.animationId,u=this.state.prevData;return n.createElement($Me,{begin:s,duration:a,isActive:o,easing:l,from:{t:0},to:{t:1},key:"bar-".concat(c),onAnimationEnd:this.handleAnimationEnd,onAnimationStart:this.handleAnimationStart},(function(t){var o=t.t,s=r.map((function(e,t){var n=u&&u[t];if(n){var r=aGe(n.x,e.x),s=aGe(n.y,e.y),a=aGe(n.width,e.width),l=aGe(n.height,e.height);return KHe(KHe({},e),{},{x:r(o),y:s(o),width:a(o),height:l(o)})}if("horizontal"===i){var c=aGe(0,e.height)(o);return KHe(KHe({},e),{},{y:e.y+e.height-c,height:c})}var d=aGe(0,e.width)(o);return KHe(KHe({},e),{},{width:d})}));return n.createElement(BGe,null,e.renderRectanglesStatically(s))}))}},{key:"renderRectangles",value:function(){var e=this.props,t=e.data,n=e.isAnimationActive,r=this.state.prevData;return!(n&&t&&t.length)||r&&xBe()(r,t)?this.renderRectanglesStatically(t):this.renderRectanglesWithAnimation()}},{key:"renderBackground",value:function(){var e=this,t=this.props,r=t.data,i=t.dataKey,o=t.activeIndex,s=GGe(this.props.background,!1);return r.map((function(t,r){t.value;var a=t.background,l=qHe(t,WHe);if(!a)return null;var c=KHe(KHe(KHe(KHe(KHe({},l),{},{fill:"#eee"},a),s),mGe(e.props,t,r)),{},{onAnimationStart:e.handleAnimationStart,onAnimationEnd:e.handleAnimationEnd,dataKey:i,index:r,key:"background-bar-".concat(r),className:"recharts-bar-background-rectangle"});return n.createElement(UHe,XHe({option:e.props.background,isActive:r===o},c))}))}},{key:"renderErrorBar",value:function(e,t){if(this.props.isAnimationActive&&!this.state.isAnimationFinished)return null;var r=this.props,i=r.data,o=r.xAxis,s=r.yAxis,a=r.layout,l=CGe(r.children,nUe);if(!l)return null;var c="vertical"===a?i[0].height/2:i[0].width/2,u=function(e,t){var n=Array.isArray(e.value)?e.value[1]:e.value;return{x:e.x,y:e.y,value:n,errorVal:fUe(e,t)}},d={clipPath:e?"url(#clipPath-".concat(t,")"):null};return n.createElement(BGe,d,l.map((function(e){return n.cloneElement(e,{key:"error-bar-".concat(t,"-").concat(e.props.dataKey),data:i,xAxis:o,yAxis:s,layout:a,offset:c,dataPointFormatter:u})})))}},{key:"render",value:function(){var e=this.props,t=e.hide,r=e.data,i=e.className,o=e.xAxis,s=e.yAxis,a=e.left,l=e.top,c=e.width,u=e.height,d=e.isAnimationActive,h=e.background,p=e.id;if(t||!r||!r.length)return null;var f=this.state.isAnimationFinished,g=UIe("recharts-bar",i),m=o&&o.allowDataOverflow,y=s&&s.allowDataOverflow,v=m||y,_=jIe()(p)?this.id:p;return n.createElement(BGe,{className:g},m||y?n.createElement("defs",null,n.createElement("clipPath",{id:"clipPath-".concat(_)},n.createElement("rect",{x:m?a:a-c/2,y:y?l:l-u/2,width:m?c:2*c,height:y?u:2*u}))):null,n.createElement(BGe,{className:"recharts-bar-rectangles",clipPath:v?"url(#clipPath-".concat(_,")"):null},h?this.renderBackground():null,this.renderRectangles()),this.renderErrorBar(v,_),(!d||f)&&KWe.renderCallByParent(this.props,r))}}],i=[{key:"getDerivedStateFromProps",value:function(e,t){return e.animationId!==t.prevAnimationId?{prevAnimationId:e.animationId,curData:e.data,prevData:t.curData}:e.data!==t.curData?{curData:e.data}:null}}],r&&ZHe(t.prototype,r),i&&ZHe(t,i),Object.defineProperty(t,"prototype",{writable:!1}),s}(n.PureComponent);function iqe(e){return iqe="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},iqe(e)}function oqe(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,cqe(r.key),r)}}function sqe(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function aqe(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?sqe(Object(n),!0).forEach((function(t){lqe(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):sqe(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function lqe(e,t,n){return(t=cqe(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function cqe(e){var t=function(e,t){if("object"!==iqe(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==iqe(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===iqe(t)?t:String(t)}tqe(rqe,"displayName","Bar"),tqe(rqe,"defaultProps",{xAxisId:0,yAxisId:0,legendType:"rect",minPointSize:0,hide:!1,data:[],layout:"vertical",activeBar:!0,isAnimationActive:!mOe.isSsr,animationBegin:0,animationDuration:400,animationEasing:"ease"}),tqe(rqe,"getComposedData",(function(e){var t=e.props,n=e.item,r=e.barPosition,i=e.bandSize,o=e.xAxis,s=e.yAxis,a=e.xAxisTicks,l=e.yAxisTicks,c=e.stackedData,u=e.dataStartIndex,d=e.displayedData,h=e.offset,p=function(e,t){if(!e)return null;for(var n=0,r=e.length;n<r;n++)if(e[n].item===t)return e[n].position;return null}(r,n);if(!p)return null;var f=t.layout,g=n.props,m=g.dataKey,y=g.children,v=g.minPointSize,_="horizontal"===f?s:o,b=c?_.scale.domain():null,x=function(e){var t=e.numericAxis,n=t.scale.domain();if("number"===t.type){var r=Math.min(n[0],n[1]),i=Math.max(n[0],n[1]);return r<=0&&i>=0?0:i<0?i:r}return n[0]}({numericAxis:_}),S=CGe(y,RWe),w=d.map((function(e,t){var r,d,h,g,y,_;if(c?r=function(e,t){if(!t||2!==t.length||!tGe(t[0])||!tGe(t[1]))return e;var n=Math.min(t[0],t[1]),r=Math.max(t[0],t[1]),i=[e[0],e[1]];return(!tGe(e[0])||e[0]<n)&&(i[0]=n),(!tGe(e[1])||e[1]>r)&&(i[1]=r),i[0]>r&&(i[0]=r),i[1]<n&&(i[1]=n),i}(c[u+t],b):(r=fUe(e,m),Array.isArray(r)||(r=[x,r])),"horizontal"===f){var w,E=[s.scale(r[0]),s.scale(r[1])],P=E[0],C=E[1];d=GUe({axis:o,ticks:a,bandSize:i,offset:p.offset,entry:e,index:t}),h=null!==(w=null!==C&&void 0!==C?C:P)&&void 0!==w?w:void 0,g=p.size;var A=P-C;if(y=Number.isNaN(A)?0:A,_={x:d,y:s.y,width:g,height:s.height},Math.abs(v)>0&&Math.abs(y)<Math.abs(v)){var k=QIe(y||v)*(Math.abs(v)-Math.abs(y));h-=k,y+=k}}else{var j=[o.scale(r[0]),o.scale(r[1])],I=j[0],G=j[1];if(d=I,h=GUe({axis:s,ticks:l,bandSize:i,offset:p.offset,entry:e,index:t}),g=G-I,y=p.size,_={x:o.x,y:h,width:o.width,height:y},Math.abs(v)>0&&Math.abs(g)<Math.abs(v))g+=QIe(g||v)*(Math.abs(v)-Math.abs(g))}return KHe(KHe(KHe({},e),{},{x:d,y:h,width:g,height:y,value:c?r:r[1],payload:e,background:_},S&&S[t]&&S[t].props),{},{tooltipPayload:[LUe(n,e)],tooltipPosition:{x:d+g/2,y:h+y/2}})}));return KHe({data:w,layout:f},h)}));var uqe=function(e,t,n,r,i){var o=e.width,s=e.height,a=e.layout,l=e.children,c=Object.keys(t),u={left:n.left,leftMirror:n.left,right:o-n.right,rightMirror:o-n.right,top:n.top,topMirror:n.top,bottom:s-n.bottom,bottomMirror:s-n.bottom},d=!!AGe(l,rqe);return c.reduce((function(o,s){var l,c,h,p,f,g=t[s],m=g.orientation,y=g.domain,v=g.padding,_=void 0===v?{}:v,b=g.mirror,x=g.reversed,S="".concat(m).concat(b?"Mirror":"");if("number"===g.type&&("gap"===g.padding||"no-gap"===g.padding)){var w=y[1]-y[0],E=1/0,P=g.categoricalDomain.sort();P.forEach((function(e,t){t>0&&(E=Math.min((e||0)-(P[t-1]||0),E))}));var C=E/w,A="vertical"===g.layout?n.height:n.width;if("gap"===g.padding&&(l=C*A/2),"no-gap"===g.padding){var k=oGe(e.barCategoryGap,C*A),j=C*A/2;l=j-k-(j-k)/A*k}}c="xAxis"===r?[n.left+(_.left||0)+(l||0),n.left+n.width-(_.right||0)-(l||0)]:"yAxis"===r?"horizontal"===a?[n.top+n.height-(_.bottom||0),n.top+(_.top||0)]:[n.top+(_.top||0)+(l||0),n.top+n.height-(_.bottom||0)-(l||0)]:g.range,x&&(c=[c[1],c[0]]);var I=EUe(g,i,d),G=I.scale,T=I.realScaleType;G.domain(y).range(c),CUe(G);var M=jUe(G,aqe(aqe({},g),{},{realScaleType:T}));"xAxis"===r?(f="top"===m&&!b||"bottom"===m&&b,h=n.left,p=u[S]-f*g.height):"yAxis"===r&&(f="left"===m&&!b||"right"===m&&b,h=u[S]-f*g.width,p=n.top);var O=aqe(aqe(aqe({},g),M),{},{realScaleType:T,x:h,y:p,scale:G,width:"xAxis"===r?n.width:g.width,height:"yAxis"===r?n.height:g.height});return O.bandSize=DUe(O,M),g.hide||"xAxis"!==r?g.hide||(u[S]+=(f?-1:1)*O.width):u[S]+=(f?-1:1)*O.height,aqe(aqe({},o),{},lqe({},s,O))}),{})},dqe=function(e,t){var n=e.x,r=e.y,i=t.x,o=t.y;return{x:Math.min(n,i),y:Math.min(r,o),width:Math.abs(i-n),height:Math.abs(o-r)}},hqe=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.scale=t}var t,n,r;return t=e,n=[{key:"domain",get:function(){return this.scale.domain}},{key:"range",get:function(){return this.scale.range}},{key:"rangeMin",get:function(){return this.range()[0]}},{key:"rangeMax",get:function(){return this.range()[1]}},{key:"bandwidth",get:function(){return this.scale.bandwidth}},{key:"apply",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.bandAware,r=t.position;if(void 0!==e){if(r)switch(r){case"start":default:return this.scale(e);case"middle":var i=this.bandwidth?this.bandwidth()/2:0;return this.scale(e)+i;case"end":var o=this.bandwidth?this.bandwidth():0;return this.scale(e)+o}if(n){var s=this.bandwidth?this.bandwidth()/2:0;return this.scale(e)+s}return this.scale(e)}}},{key:"isInRange",value:function(e){var t=this.range(),n=t[0],r=t[t.length-1];return n<=r?e>=n&&e<=r:e>=r&&e<=n}}],r=[{key:"create",value:function(t){return new e(t)}}],n&&oqe(t.prototype,n),r&&oqe(t,r),Object.defineProperty(t,"prototype",{writable:!1}),e}();lqe(hqe,"EPS",1e-4);var pqe=function(e){var t=Object.keys(e).reduce((function(t,n){return aqe(aqe({},t),{},lqe({},n,hqe.create(e[n])))}),{});return aqe(aqe({},t),{},{apply:function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=n.bandAware,i=n.position;return OWe()(e,(function(e,n){return t[n].apply(e,{bandAware:r,position:i})}))},isInRange:function(e){return zIe()(e,(function(e,n){return t[n].isInRange(e)}))}})};var fqe=function(e){var t=e.width,n=e.height,r=function(e){return(e%180+180)%180}(arguments.length>1&&void 0!==arguments[1]?arguments[1]:0),i=r*Math.PI/180,o=Math.atan(n/t),s=i>o&&i<Math.PI-o?n/Math.sin(i):t/Math.cos(i);return Math.abs(s)};function gqe(e){return gqe="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},gqe(e)}function mqe(){return mqe=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},mqe.apply(this,arguments)}function yqe(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function vqe(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?yqe(Object(n),!0).forEach((function(t){_qe(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):yqe(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function _qe(e,t,n){return(t=function(e){var t=function(e,t){if("object"!==gqe(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==gqe(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===gqe(t)?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function bqe(e){var t=e.x,r=e.y,i=e.r,o=e.alwaysShow,s=e.clipPathId,a=nGe(t),l=nGe(r);if(GOe(void 0===o,'The alwaysShow prop is deprecated. Please use ifOverflow="extendDomain" instead.'),!a||!l)return null;var c=function(e){var t=e.x,n=e.y,r=e.xAxis,i=e.yAxis,o=pqe({x:r.scale,y:i.scale}),s=o.apply({x:t,y:n},{bandAware:!0});return TWe(e,"discard")&&!o.isInRange(s)?null:s}(e);if(!c)return null;var u=c.x,d=c.y,h=e.shape,p=e.className,f=vqe(vqe({clipPath:TWe(e,"hidden")?"url(#".concat(s,")"):void 0},GGe(e,!0)),{},{cx:u,cy:d});return n.createElement(BGe,{className:UIe("recharts-reference-dot",p)},bqe.renderDot(h,f),IWe.renderCallByParent(e,{x:u-i,y:d-i,width:2*i,height:2*i}))}bqe.displayName="ReferenceDot",bqe.defaultProps={isFront:!1,ifOverflow:"discard",xAxisId:0,yAxisId:0,r:10,fill:"#fff",stroke:"#ccc",fillOpacity:1,strokeWidth:1},bqe.renderDot=function(e,t){return n.isValidElement(e)?n.cloneElement(e,t):GIe()(e)?e(t):n.createElement(sDe,mqe({},t,{cx:t.cx,cy:t.cy,className:"recharts-reference-dot-dot"}))};var xqe=__webpack_require__(20916),Sqe=__webpack_require__.n(xqe),wqe=__webpack_require__(5012),Eqe=__webpack_require__.n(wqe)()((function(e){return{x:e.left,y:e.top,width:e.width,height:e.height}}),(function(e){return["l",e.left,"t",e.top,"w",e.width,"h",e.height].join("")}));var Pqe=(0,n.createContext)(void 0),Cqe=(0,n.createContext)(void 0),Aqe=(0,n.createContext)(void 0),kqe=(0,n.createContext)({}),jqe=(0,n.createContext)(void 0),Iqe=(0,n.createContext)(0),Gqe=(0,n.createContext)(0),Tqe=function(e){var t=e.state,r=t.xAxisMap,i=t.yAxisMap,o=t.offset,s=e.clipPathId,a=e.children,l=e.width,c=e.height,u=Eqe(o);return n.createElement(Pqe.Provider,{value:r},n.createElement(Cqe.Provider,{value:i},n.createElement(kqe.Provider,{value:o},n.createElement(Aqe.Provider,{value:u},n.createElement(jqe.Provider,{value:s},n.createElement(Iqe.Provider,{value:c},n.createElement(Gqe.Provider,{value:l},a)))))))};var Mqe=function(e){var t=(0,n.useContext)(Pqe);null==t&&ct(!1);var r=t[e];return null==r&&ct(!1),r},Oqe=function(e){var t=(0,n.useContext)(Cqe);null==t&&ct(!1);var r=t[e];return null==r&&ct(!1),r},Rqe=function(){return(0,n.useContext)(Gqe)},Dqe=function(){return(0,n.useContext)(Iqe)};function Nqe(e){return Nqe="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Nqe(e)}function Lqe(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Vqe(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Lqe(Object(n),!0).forEach((function(t){Fqe(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Lqe(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Fqe(e,t,n){return(t=function(e){var t=function(e,t){if("object"!==Nqe(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==Nqe(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===Nqe(t)?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function zqe(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,i,o,s,a=[],l=!0,c=!1;try{if(o=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;l=!1}else for(;!(l=(r=o.call(n)).done)&&(a.push(r.value),a.length!==t);l=!0);}catch(e){c=!0,i=e}finally{try{if(!l&&null!=n.return&&(s=n.return(),Object(s)!==s))return}finally{if(c)throw i}}return a}}(e,t)||function(e,t){if(!e)return;if("string"===typeof e)return Bqe(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Bqe(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Bqe(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function Uqe(){return Uqe=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Uqe.apply(this,arguments)}function Wqe(e){var t=e.x,r=e.y,i=e.segment,o=e.xAxisId,s=e.yAxisId,a=e.shape,l=e.className,c=e.alwaysShow,u=(0,n.useContext)(jqe),d=Mqe(o),h=Oqe(s),p=(0,n.useContext)(Aqe);if(!u||!p)return null;GOe(void 0===c,'The alwaysShow prop is deprecated. Please use ifOverflow="extendDomain" instead.');var f=function(e,t,n,r,i,o,s,a,l){var c=i.x,u=i.y,d=i.width,h=i.height;if(n){var p=l.y,f=e.y.apply(p,{position:o});if(TWe(l,"discard")&&!e.y.isInRange(f))return null;var g=[{x:c+d,y:f},{x:c,y:f}];return"left"===a?g.reverse():g}if(t){var m=l.x,y=e.x.apply(m,{position:o});if(TWe(l,"discard")&&!e.x.isInRange(y))return null;var v=[{x:y,y:u+h},{x:y,y:u}];return"top"===s?v.reverse():v}if(r){var _=l.segment.map((function(t){return e.apply(t,{position:o})}));return TWe(l,"discard")&&Sqe()(_,(function(t){return!e.isInRange(t)}))?null:_}return null}(pqe({x:d.scale,y:h.scale}),nGe(t),nGe(r),i&&2===i.length,p,e.position,d.orientation,h.orientation,e);if(!f)return null;var g=zqe(f,2),m=g[0],y=m.x,v=m.y,_=g[1],b=_.x,x=_.y,S=Vqe(Vqe({clipPath:TWe(e,"hidden")?"url(#".concat(u,")"):void 0},GGe(e,!0)),{},{x1:y,y1:v,x2:b,y2:x});return n.createElement(BGe,{className:UIe("recharts-reference-line",l)},function(e,t){return n.isValidElement(e)?n.cloneElement(e,t):GIe()(e)?e(t):n.createElement("line",Uqe({},t,{className:"recharts-reference-line-line"}))}(a,S),IWe.renderCallByParent(e,function(e){var t=e.x1,n=e.y1,r=e.x2,i=e.y2;return dqe({x:t,y:n},{x:r,y:i})}({x1:y,y1:v,x2:b,y2:x})))}function Hqe(e){return Hqe="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Hqe(e)}function qqe(){return qqe=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},qqe.apply(this,arguments)}function Xqe(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Yqe(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Xqe(Object(n),!0).forEach((function(t){Kqe(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Xqe(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Kqe(e,t,n){return(t=function(e){var t=function(e,t){if("object"!==Hqe(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==Hqe(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===Hqe(t)?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}Wqe.displayName="ReferenceLine",Wqe.defaultProps={isFront:!1,ifOverflow:"discard",xAxisId:0,yAxisId:0,fill:"none",stroke:"#ccc",fillOpacity:1,strokeWidth:1,position:"middle"};function Zqe(e){var t=e.x1,r=e.x2,i=e.y1,o=e.y2,s=e.className,a=e.alwaysShow,l=e.clipPathId;GOe(void 0===a,'The alwaysShow prop is deprecated. Please use ifOverflow="extendDomain" instead.');var c=nGe(t),u=nGe(r),d=nGe(i),h=nGe(o),p=e.shape;if(!c&&!u&&!d&&!h&&!p)return null;var f=function(e,t,n,r,i){var o=i.x1,s=i.x2,a=i.y1,l=i.y2,c=i.xAxis,u=i.yAxis;if(!c||!u)return null;var d=pqe({x:c.scale,y:u.scale}),h={x:e?d.x.apply(o,{position:"start"}):d.x.rangeMin,y:n?d.y.apply(a,{position:"start"}):d.y.rangeMin},p={x:t?d.x.apply(s,{position:"end"}):d.x.rangeMax,y:r?d.y.apply(l,{position:"end"}):d.y.rangeMax};return!TWe(i,"discard")||d.isInRange(h)&&d.isInRange(p)?dqe(h,p):null}(c,u,d,h,e);if(!f&&!p)return null;var g=TWe(e,"hidden")?"url(#".concat(l,")"):void 0;return n.createElement(BGe,{className:UIe("recharts-reference-area",s)},Zqe.renderRect(p,Yqe(Yqe({clipPath:g},GGe(e,!0)),f)),IWe.renderCallByParent(e,f))}function $qe(e){return function(e){if(Array.isArray(e))return Jqe(e)}(e)||function(e){if("undefined"!==typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"===typeof e)return Jqe(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Jqe(e,t)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Jqe(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}Zqe.displayName="ReferenceArea",Zqe.defaultProps={isFront:!1,ifOverflow:"discard",xAxisId:0,yAxisId:0,r:10,fill:"#ccc",fillOpacity:.5,stroke:"none",strokeWidth:1},Zqe.renderRect=function(e,t){return n.isValidElement(e)?n.cloneElement(e,t):GIe()(e)?e(t):n.createElement(yDe,qqe({},t,{className:"recharts-reference-area-rect"}))};var Qqe=function(e,t,n,r,i){var o=CGe(e,Wqe),s=CGe(e,bqe),a=[].concat($qe(o),$qe(s)),l=CGe(e,Zqe),c="".concat(r,"Id"),u=r[0],d=t;if(a.length&&(d=a.reduce((function(e,t){if(t.props[c]===n&&TWe(t.props,"extendDomain")&&tGe(t.props[u])){var r=t.props[u];return[Math.min(e[0],r),Math.max(e[1],r)]}return e}),d)),l.length){var h="".concat(u,"1"),p="".concat(u,"2");d=l.reduce((function(e,t){if(t.props[c]===n&&TWe(t.props,"extendDomain")&&tGe(t.props[h])&&tGe(t.props[p])){var r=t.props[h],i=t.props[p];return[Math.min(e[0],r,i),Math.max(e[1],r,i)]}return e}),d)}return i&&i.length&&(d=i.reduce((function(e,t){return tGe(t)?[Math.min(e[0],t),Math.max(e[1],t)]:e}),d)),d},eXe=__webpack_require__(39512),tXe=new(__webpack_require__.n(eXe)()),nXe="recharts.syncMouseEvents";function rXe(e){return rXe="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},rXe(e)}function iXe(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,sXe(r.key),r)}}function oXe(e,t,n){return(t=sXe(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function sXe(e){var t=function(e,t){if("object"!==rXe(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==rXe(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===rXe(t)?t:String(t)}var aXe=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),oXe(this,"activeIndex",0),oXe(this,"coordinateList",[]),oXe(this,"layout","horizontal")}var t,n,r;return t=e,n=[{key:"setDetails",value:function(e){var t,n=e.coordinateList,r=void 0===n?null:n,i=e.container,o=void 0===i?null:i,s=e.layout,a=void 0===s?null:s,l=e.offset,c=void 0===l?null:l,u=e.mouseHandlerCallback,d=void 0===u?null:u;this.coordinateList=null!==(t=null!==r&&void 0!==r?r:this.coordinateList)&&void 0!==t?t:[],this.container=null!==o&&void 0!==o?o:this.container,this.layout=null!==a&&void 0!==a?a:this.layout,this.offset=null!==c&&void 0!==c?c:this.offset,this.mouseHandlerCallback=null!==d&&void 0!==d?d:this.mouseHandlerCallback,this.activeIndex=Math.min(Math.max(this.activeIndex,0),this.coordinateList.length-1)}},{key:"focus",value:function(){this.spoofMouse()}},{key:"keyboardEvent",value:function(e){if(0!==this.coordinateList.length)switch(e.key){case"ArrowRight":if("horizontal"!==this.layout)return;this.activeIndex=Math.min(this.activeIndex+1,this.coordinateList.length-1),this.spoofMouse();break;case"ArrowLeft":if("horizontal"!==this.layout)return;this.activeIndex=Math.max(this.activeIndex-1,0),this.spoofMouse()}}},{key:"setIndex",value:function(e){this.activeIndex=e}},{key:"spoofMouse",value:function(){var e,t;if("horizontal"===this.layout&&0!==this.coordinateList.length){var n=this.container.getBoundingClientRect(),r=n.x,i=n.y,o=n.height,s=this.coordinateList[this.activeIndex].coordinate,a=(null===(e=window)||void 0===e?void 0:e.scrollX)||0,l=(null===(t=window)||void 0===t?void 0:t.scrollY)||0,c=r+s+a,u=i+this.offset.top+o/2+l;this.mouseHandlerCallback({pageX:c,pageY:u})}}}],n&&iXe(t.prototype,n),r&&iXe(t,r),Object.defineProperty(t,"prototype",{writable:!1}),e}();function lXe(){}function cXe(e,t,n){e._context.bezierCurveTo((2*e._x0+e._x1)/3,(2*e._y0+e._y1)/3,(e._x0+2*e._x1)/3,(e._y0+2*e._y1)/3,(e._x0+4*e._x1+t)/6,(e._y0+4*e._y1+n)/6)}function uXe(e){this._context=e}function dXe(e){this._context=e}function hXe(e){this._context=e}uXe.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},lineEnd:function(){switch(this._point){case 3:cXe(this,this._x1,this._y1);case 2:this._context.lineTo(this._x1,this._y1)}(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;break;case 2:this._point=3,this._context.lineTo((5*this._x0+this._x1)/6,(5*this._y0+this._y1)/6);default:cXe(this,e,t)}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}},dXe.prototype={areaStart:lXe,areaEnd:lXe,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._y0=this._y1=this._y2=this._y3=this._y4=NaN,this._point=0},lineEnd:function(){switch(this._point){case 1:this._context.moveTo(this._x2,this._y2),this._context.closePath();break;case 2:this._context.moveTo((this._x2+2*this._x3)/3,(this._y2+2*this._y3)/3),this._context.lineTo((this._x3+2*this._x2)/3,(this._y3+2*this._y2)/3),this._context.closePath();break;case 3:this.point(this._x2,this._y2),this.point(this._x3,this._y3),this.point(this._x4,this._y4)}},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._x2=e,this._y2=t;break;case 1:this._point=2,this._x3=e,this._y3=t;break;case 2:this._point=3,this._x4=e,this._y4=t,this._context.moveTo((this._x0+4*this._x1+e)/6,(this._y0+4*this._y1+t)/6);break;default:cXe(this,e,t)}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}},hXe.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},lineEnd:function(){(this._line||0!==this._line&&3===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3;var n=(this._x0+4*this._x1+e)/6,r=(this._y0+4*this._y1+t)/6;this._line?this._context.lineTo(n,r):this._context.moveTo(n,r);break;case 3:this._point=4;default:cXe(this,e,t)}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};class pXe{constructor(e,t){this._context=e,this._x=t}areaStart(){this._line=0}areaEnd(){this._line=NaN}lineStart(){this._point=0}lineEnd(){(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line}point(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;default:this._x?this._context.bezierCurveTo(this._x0=(this._x0+e)/2,this._y0,this._x0,t,e,t):this._context.bezierCurveTo(this._x0,this._y0=(this._y0+t)/2,e,this._y0,e,t)}this._x0=e,this._y0=t}}function fXe(e){this._context=e}function gXe(e){this._context=e}function mXe(e){return new gXe(e)}function yXe(e){return e<0?-1:1}function vXe(e,t,n){var r=e._x1-e._x0,i=t-e._x1,o=(e._y1-e._y0)/(r||i<0&&-0),s=(n-e._y1)/(i||r<0&&-0),a=(o*i+s*r)/(r+i);return(yXe(o)+yXe(s))*Math.min(Math.abs(o),Math.abs(s),.5*Math.abs(a))||0}function _Xe(e,t){var n=e._x1-e._x0;return n?(3*(e._y1-e._y0)/n-t)/2:t}function bXe(e,t,n){var r=e._x0,i=e._y0,o=e._x1,s=e._y1,a=(o-r)/3;e._context.bezierCurveTo(r+a,i+a*t,o-a,s-a*n,o,s)}function xXe(e){this._context=e}function SXe(e){this._context=new wXe(e)}function wXe(e){this._context=e}function EXe(e){this._context=e}function PXe(e){var t,n,r=e.length-1,i=new Array(r),o=new Array(r),s=new Array(r);for(i[0]=0,o[0]=2,s[0]=e[0]+2*e[1],t=1;t<r-1;++t)i[t]=1,o[t]=4,s[t]=4*e[t]+2*e[t+1];for(i[r-1]=2,o[r-1]=7,s[r-1]=8*e[r-1]+e[r],t=1;t<r;++t)n=i[t]/o[t-1],o[t]-=n,s[t]-=n*s[t-1];for(i[r-1]=s[r-1]/o[r-1],t=r-2;t>=0;--t)i[t]=(s[t]-i[t+1])/o[t];for(o[r-1]=(e[r]+i[r-1])/2,t=0;t<r-1;++t)o[t]=2*e[t+1]-i[t+1];return[i,o]}function CXe(e,t){this._context=e,this._t=t}function AXe(e){return e[0]}function kXe(e){return e[1]}function jXe(e,t){var n=nRe(!0),r=null,i=mXe,o=null,s=wRe(a);function a(a){var l,c,u,d=(a=uBe(a)).length,h=!1;for(null==r&&(o=i(u=s())),l=0;l<=d;++l)!(l<d&&n(c=a[l],l,a))===h&&((h=!h)?o.lineStart():o.lineEnd()),h&&o.point(+e(c,l,a),+t(c,l,a));if(u)return o=null,u+""||null}return e="function"===typeof e?e:void 0===e?AXe:nRe(e),t="function"===typeof t?t:void 0===t?kXe:nRe(t),a.x=function(t){return arguments.length?(e="function"===typeof t?t:nRe(+t),a):e},a.y=function(e){return arguments.length?(t="function"===typeof e?e:nRe(+e),a):t},a.defined=function(e){return arguments.length?(n="function"===typeof e?e:nRe(!!e),a):n},a.curve=function(e){return arguments.length?(i=e,null!=r&&(o=i(r)),a):i},a.context=function(e){return arguments.length?(null==e?r=o=null:o=i(r=e),a):r},a}function IXe(e,t,n){var r=null,i=nRe(!0),o=null,s=mXe,a=null,l=wRe(c);function c(c){var u,d,h,p,f,g=(c=uBe(c)).length,m=!1,y=new Array(g),v=new Array(g);for(null==o&&(a=s(f=l())),u=0;u<=g;++u){if(!(u<g&&i(p=c[u],u,c))===m)if(m=!m)d=u,a.areaStart(),a.lineStart();else{for(a.lineEnd(),a.lineStart(),h=u-1;h>=d;--h)a.point(y[h],v[h]);a.lineEnd(),a.areaEnd()}m&&(y[u]=+e(p,u,c),v[u]=+t(p,u,c),a.point(r?+r(p,u,c):y[u],n?+n(p,u,c):v[u]))}if(f)return a=null,f+""||null}function u(){return jXe().defined(i).curve(s).context(o)}return e="function"===typeof e?e:void 0===e?AXe:nRe(+e),t="function"===typeof t?t:nRe(void 0===t?0:+t),n="function"===typeof n?n:void 0===n?kXe:nRe(+n),c.x=function(t){return arguments.length?(e="function"===typeof t?t:nRe(+t),r=null,c):e},c.x0=function(t){return arguments.length?(e="function"===typeof t?t:nRe(+t),c):e},c.x1=function(e){return arguments.length?(r=null==e?null:"function"===typeof e?e:nRe(+e),c):r},c.y=function(e){return arguments.length?(t="function"===typeof e?e:nRe(+e),n=null,c):t},c.y0=function(e){return arguments.length?(t="function"===typeof e?e:nRe(+e),c):t},c.y1=function(e){return arguments.length?(n=null==e?null:"function"===typeof e?e:nRe(+e),c):n},c.lineX0=c.lineY0=function(){return u().x(e).y(t)},c.lineY1=function(){return u().x(e).y(n)},c.lineX1=function(){return u().x(r).y(t)},c.defined=function(e){return arguments.length?(i="function"===typeof e?e:nRe(!!e),c):i},c.curve=function(e){return arguments.length?(s=e,null!=o&&(a=s(o)),c):s},c.context=function(e){return arguments.length?(null==e?o=a=null:a=s(o=e),c):o},c}function GXe(e){return GXe="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},GXe(e)}function TXe(){return TXe=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},TXe.apply(this,arguments)}function MXe(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function OXe(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?MXe(Object(n),!0).forEach((function(t){RXe(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):MXe(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function RXe(e,t,n){return(t=function(e){var t=function(e,t){if("object"!==GXe(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==GXe(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===GXe(t)?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}fXe.prototype={areaStart:lXe,areaEnd:lXe,lineStart:function(){this._point=0},lineEnd:function(){this._point&&this._context.closePath()},point:function(e,t){e=+e,t=+t,this._point?this._context.lineTo(e,t):(this._point=1,this._context.moveTo(e,t))}},gXe.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._point=0},lineEnd:function(){(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;default:this._context.lineTo(e,t)}}},xXe.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=this._t0=NaN,this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x1,this._y1);break;case 3:bXe(this,this._t0,_Xe(this,this._t0))}(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){var n=NaN;if(t=+t,(e=+e)!==this._x1||t!==this._y1){switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;break;case 2:this._point=3,bXe(this,_Xe(this,n=vXe(this,e,t)),n);break;default:bXe(this,this._t0,n=vXe(this,e,t))}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t,this._t0=n}}},(SXe.prototype=Object.create(xXe.prototype)).point=function(e,t){xXe.prototype.point.call(this,t,e)},wXe.prototype={moveTo:function(e,t){this._context.moveTo(t,e)},closePath:function(){this._context.closePath()},lineTo:function(e,t){this._context.lineTo(t,e)},bezierCurveTo:function(e,t,n,r,i,o){this._context.bezierCurveTo(t,e,r,n,o,i)}},EXe.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x=[],this._y=[]},lineEnd:function(){var e=this._x,t=this._y,n=e.length;if(n)if(this._line?this._context.lineTo(e[0],t[0]):this._context.moveTo(e[0],t[0]),2===n)this._context.lineTo(e[1],t[1]);else for(var r=PXe(e),i=PXe(t),o=0,s=1;s<n;++o,++s)this._context.bezierCurveTo(r[0][o],i[0][o],r[1][o],i[1][o],e[s],t[s]);(this._line||0!==this._line&&1===n)&&this._context.closePath(),this._line=1-this._line,this._x=this._y=null},point:function(e,t){this._x.push(+e),this._y.push(+t)}},CXe.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x=this._y=NaN,this._point=0},lineEnd:function(){0<this._t&&this._t<1&&2===this._point&&this._context.lineTo(this._x,this._y),(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line>=0&&(this._t=1-this._t,this._line=1-this._line)},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;default:if(this._t<=0)this._context.lineTo(this._x,t),this._context.lineTo(e,t);else{var n=this._x*(1-this._t)+e*this._t;this._context.lineTo(n,this._y),this._context.lineTo(n,t)}}this._x=e,this._y=t}};var DXe={curveBasisClosed:function(e){return new dXe(e)},curveBasisOpen:function(e){return new hXe(e)},curveBasis:function(e){return new uXe(e)},curveBumpX:function(e){return new pXe(e,!0)},curveBumpY:function(e){return new pXe(e,!1)},curveLinearClosed:function(e){return new fXe(e)},curveLinear:mXe,curveMonotoneX:function(e){return new xXe(e)},curveMonotoneY:function(e){return new SXe(e)},curveNatural:function(e){return new EXe(e)},curveStep:function(e){return new CXe(e,.5)},curveStepAfter:function(e){return new CXe(e,1)},curveStepBefore:function(e){return new CXe(e,0)}},NXe=function(e){return e.x===+e.x&&e.y===+e.y},LXe=function(e){return e.x},VXe=function(e){return e.y},FXe=function(e){var t,n=e.type,r=void 0===n?"linear":n,i=e.points,o=void 0===i?[]:i,s=e.baseLine,a=e.layout,l=e.connectNulls,c=void 0!==l&&l,u=function(e,t){if(GIe()(e))return e;var n="curve".concat(MOe()(e));return"curveMonotone"!==n&&"curveBump"!==n||!t?DXe[n]||mXe:DXe["".concat(n).concat("vertical"===t?"Y":"X")]}(r,a),d=c?o.filter((function(e){return NXe(e)})):o;if(Array.isArray(s)){var h=c?s.filter((function(e){return NXe(e)})):s,p=d.map((function(e,t){return OXe(OXe({},e),{},{base:h[t]})}));return t="vertical"===a?IXe().y(VXe).x1(LXe).x0((function(e){return e.base.x})):IXe().x(LXe).y1(VXe).y0((function(e){return e.base.y})),t.defined(NXe).curve(u),t(p)}return(t="vertical"===a&&tGe(s)?IXe().y(VXe).x1(LXe).x0(s):tGe(s)?IXe().x(LXe).y1(VXe).y0(s):jXe().x(LXe).y(VXe)).defined(NXe).curve(u),t(d)},zXe=function(e){var t=e.className,r=e.points,i=e.path,o=e.pathRef;if((!r||!r.length)&&!i)return null;var s=r&&r.length?FXe(e):i;return n.createElement("path",TXe({},GGe(e,!1),gGe(e),{className:UIe("recharts-curve",t),d:s,ref:o}))};function BXe(e){return BXe="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},BXe(e)}var UXe=["x","y","top","left","width","height","className"];function WXe(){return WXe=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},WXe.apply(this,arguments)}function HXe(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function qXe(e,t,n){return(t=function(e){var t=function(e,t){if("object"!==BXe(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==BXe(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===BXe(t)?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function XXe(e,t){if(null==e)return{};var n,r,i=function(e,t){if(null==e)return{};var n,r,i={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(i[n]=e[n]);return i}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}var YXe=function(e,t,n,r,i,o){return"M".concat(e,",").concat(i,"v").concat(r,"M").concat(o,",").concat(t,"h").concat(n)},KXe=function(e){var t=e.x,r=void 0===t?0:t,i=e.y,o=void 0===i?0:i,s=e.top,a=void 0===s?0:s,l=e.left,c=void 0===l?0:l,u=e.width,d=void 0===u?0:u,h=e.height,p=void 0===h?0:h,f=e.className,g=function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?HXe(Object(n),!0).forEach((function(t){qXe(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):HXe(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({x:r,y:o,top:a,left:c,width:d,height:p},XXe(e,UXe));return tGe(r)&&tGe(o)&&tGe(d)&&tGe(p)&&tGe(a)&&tGe(c)?n.createElement("path",WXe({},GGe(g,!0),{className:UIe("recharts-cross",f),d:YXe(r,o,d,p,a,c)})):null};function ZXe(e){var t=e.cx,n=e.cy,r=e.radius,i=e.startAngle,o=e.endAngle;return{points:[dWe(t,n,r,i),dWe(t,n,r,o)],cx:t,cy:n,radius:r,startAngle:i,endAngle:o}}function $Xe(e,t,n){var r,i,o,s;if("horizontal"===e)o=r=t.x,i=n.top,s=n.top+n.height;else if("vertical"===e)s=i=t.y,r=n.left,o=n.left+n.width;else if(null!=t.cx&&null!=t.cy){if("centric"!==e)return ZXe(t);var a=t.cx,l=t.cy,c=t.innerRadius,u=t.outerRadius,d=t.angle,h=dWe(a,l,c,d),p=dWe(a,l,u,d);r=h.x,i=h.y,o=p.x,s=p.y}return[{x:r,y:i},{x:o,y:s}]}function JXe(e){return JXe="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},JXe(e)}function QXe(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function eYe(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?QXe(Object(n),!0).forEach((function(t){tYe(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):QXe(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function tYe(e,t,n){return(t=function(e){var t=function(e,t){if("object"!==JXe(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==JXe(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===JXe(t)?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function nYe(e){var t,r=e.element,i=e.tooltipEventType,o=e.isActive,s=e.activeCoordinate,a=e.activePayload,l=e.offset,c=e.activeTooltipIndex,u=e.tooltipAxisBandSize,d=e.layout,h=e.chartName;if(!r||!r.props.cursor||!o||!s||"ScatterChart"!==h&&"axis"!==i)return null;var p=zXe;if("ScatterChart"===h)t=s,p=KXe;else if("BarChart"===h)t=function(e,t,n,r){var i=r/2;return{stroke:"none",fill:"#ccc",x:"horizontal"===e?t.x-i:n.left+.5,y:"horizontal"===e?n.top+.5:t.y-i,width:"horizontal"===e?r:n.width-1,height:"horizontal"===e?n.height-1:r}}(d,s,l,u),p=yDe;else if("radial"===d){var f=ZXe(s),g=f.cx,m=f.cy,y=f.radius;t={cx:g,cy:m,startAngle:f.startAngle,endAngle:f.endAngle,innerRadius:y,outerRadius:y},p=vHe}else t={points:$Xe(d,s,l)},p=zXe;var v=eYe(eYe(eYe(eYe({stroke:"#ccc",pointerEvents:"none"},l),t),GGe(r.props.cursor,!1)),{},{payload:a,payloadIndex:c,className:"recharts-tooltip-cursor"});return(0,n.isValidElement)(r.props.cursor)?(0,n.cloneElement)(r.props.cursor,v):(0,n.createElement)(p,v)}var rYe=["item"],iYe=["children","className","width","height","style","compact","title","desc"];function oYe(e){return oYe="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},oYe(e)}function sYe(){return sYe=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},sYe.apply(this,arguments)}function aYe(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,i,o,s,a=[],l=!0,c=!1;try{if(o=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;l=!1}else for(;!(l=(r=o.call(n)).done)&&(a.push(r.value),a.length!==t);l=!0);}catch(e){c=!0,i=e}finally{try{if(!l&&null!=n.return&&(s=n.return(),Object(s)!==s))return}finally{if(c)throw i}}return a}}(e,t)||gYe(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function lYe(e,t){if(null==e)return{};var n,r,i=function(e,t){if(null==e)return{};var n,r,i={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(i[n]=e[n]);return i}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function cYe(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,bYe(r.key),r)}}function uYe(e,t){return uYe=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},uYe(e,t)}function dYe(e){var t=function(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=pYe(e);if(t){var i=pYe(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return function(e,t){if(t&&("object"===oYe(t)||"function"===typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return hYe(e)}(this,n)}}function hYe(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function pYe(e){return pYe=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},pYe(e)}function fYe(e){return function(e){if(Array.isArray(e))return mYe(e)}(e)||function(e){if("undefined"!==typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||gYe(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function gYe(e,t){if(e){if("string"===typeof e)return mYe(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?mYe(e,t):void 0}}function mYe(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function yYe(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function vYe(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?yYe(Object(n),!0).forEach((function(t){_Ye(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):yYe(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function _Ye(e,t,n){return(t=bYe(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function bYe(e){var t=function(e,t){if("object"!==oYe(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==oYe(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===oYe(t)?t:String(t)}var xYe={xAxis:["bottom","top"],yAxis:["left","right"]},SYe={width:"100%",height:"100%"},wYe={x:0,y:0};function EYe(e){return e}var PYe=function(e,t){var n=t.graphicalItems,r=t.dataStartIndex,i=t.dataEndIndex,o=(null!==n&&void 0!==n?n:[]).reduce((function(e,t){var n=t.props.data;return n&&n.length?[].concat(fYe(e),fYe(n)):e}),[]);return o.length>0?o:e&&e.length&&tGe(r)&&tGe(i)?e.slice(r,i+1):[]};function CYe(e){return"number"===e?[0,"auto"]:void 0}var AYe=function(e,t,n,r){var i=e.graphicalItems,o=e.tooltipAxis,s=PYe(t,e);return n<0||!i||!i.length||n>=s.length?null:i.reduce((function(i,a){var l,c,u=null!==(l=a.props.data)&&void 0!==l?l:t;(u&&e.dataStartIndex+e.dataEndIndex!==0&&(u=u.slice(e.dataStartIndex,e.dataEndIndex+1)),o.dataKey&&!o.allowDuplicatedCategory)?c=lGe(void 0===u?s:u,o.dataKey,r):c=u&&u[n]||s[n];return c?[].concat(fYe(i),[LUe(a,c)]):i}),[])},kYe=function(e,t,n,r){var i=r||{x:e.chartX,y:e.chartY},o=function(e,t){return"horizontal"===t?e.x:"vertical"===t?e.y:"centric"===t?e.angle:e.radius}(i,n),s=e.orderedTooltipTicks,a=e.tooltipAxis,l=e.tooltipTicks,c=function(e){var t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],r=arguments.length>2?arguments[2]:void 0,i=arguments.length>3?arguments[3]:void 0,o=-1,s=null!==(t=null===n||void 0===n?void 0:n.length)&&void 0!==t?t:0;if(s<=1)return 0;if(i&&"angleAxis"===i.axisType&&Math.abs(Math.abs(i.range[1]-i.range[0])-360)<=1e-6)for(var a=i.range,l=0;l<s;l++){var c=l>0?r[l-1].coordinate:r[s-1].coordinate,u=r[l].coordinate,d=l>=s-1?r[0].coordinate:r[l+1].coordinate,h=void 0;if(QIe(u-c)!==QIe(d-u)){var p=[];if(QIe(d-u)===QIe(a[1]-a[0])){h=d;var f=u+a[1]-a[0];p[0]=Math.min(f,(f+c)/2),p[1]=Math.max(f,(f+c)/2)}else{h=c;var g=d+a[1]-a[0];p[0]=Math.min(u,(g+u)/2),p[1]=Math.max(u,(g+u)/2)}var m=[Math.min(u,(h+u)/2),Math.max(u,(h+u)/2)];if(e>m[0]&&e<=m[1]||e>=p[0]&&e<=p[1]){o=r[l].index;break}}else{var y=Math.min(c,d),v=Math.max(c,d);if(e>(y+u)/2&&e<=(v+u)/2){o=r[l].index;break}}}else for(var _=0;_<s;_++)if(0===_&&e<=(n[_].coordinate+n[_+1].coordinate)/2||_>0&&_<s-1&&e>(n[_].coordinate+n[_-1].coordinate)/2&&e<=(n[_].coordinate+n[_+1].coordinate)/2||_===s-1&&e>(n[_].coordinate+n[_-1].coordinate)/2){o=n[_].index;break}return o}(o,s,l,a);if(c>=0&&l){var u=l[c]&&l[c].value,d=AYe(e,t,c,u),h=function(e,t,n,r){var i=t.find((function(e){return e&&e.index===n}));if(i){if("horizontal"===e)return{x:i.coordinate,y:r.y};if("vertical"===e)return{x:r.x,y:i.coordinate};if("centric"===e){var o=i.coordinate,s=r.radius;return vYe(vYe(vYe({},r),dWe(r.cx,r.cy,s,o)),{},{angle:o,radius:s})}var a=i.coordinate,l=r.angle;return vYe(vYe(vYe({},r),dWe(r.cx,r.cy,a,l)),{},{angle:l,radius:a})}return wYe}(n,s,c,i);return{activeTooltipIndex:c,activeLabel:u,activePayload:d,activeCoordinate:h}}return null},jYe=function(e,t){var n=t.axes,r=t.graphicalItems,i=t.axisType,o=t.axisIdKey,s=t.stackGroups,a=t.dataStartIndex,l=t.dataEndIndex,c=e.layout,u=e.children,d=e.stackOffset,h=_Ue(c,i);return n.reduce((function(t,n){var p,f=n.props,g=f.type,m=f.dataKey,y=f.allowDataOverflow,v=f.allowDuplicatedCategory,_=f.scale,b=f.ticks,x=f.includeHidden,S=n.props[o];if(t[S])return t;var w,E,P,C=PYe(e.data,{graphicalItems:r.filter((function(e){return e.props[o]===S})),dataStartIndex:a,dataEndIndex:l}),A=C.length;(function(e,t,n){if("number"===n&&!0===t&&Array.isArray(e)){var r=null===e||void 0===e?void 0:e[0],i=null===e||void 0===e?void 0:e[1];if(r&&i&&tGe(r)&&tGe(i))return!0}return!1})(n.props.domain,y,g)&&(w=RUe(n.props.domain,null,y),!h||"number"!==g&&"auto"===_||(P=gUe(C,m,"category")));var k=CYe(g);if(!w||0===w.length){var j,I=null!==(j=n.props.domain)&&void 0!==j?j:k;if(m){if(w=gUe(C,m,g),"category"===g&&h){var G=function(e){if(!Array.isArray(e))return!1;for(var t=e.length,n={},r=0;r<t;r++){if(n[e[r]])return!0;n[e[r]]=!0}return!1}(w);v&&G?(E=w,w=MIe()(0,A)):v||(w=NUe(I,w,n).reduce((function(e,t){return e.indexOf(t)>=0?e:[].concat(fYe(e),[t])}),[]))}else if("category"===g)w=v?w.filter((function(e){return""!==e&&!jIe()(e)})):NUe(I,w,n).reduce((function(e,t){return e.indexOf(t)>=0||""===t||jIe()(t)?e:[].concat(fYe(e),[t])}),[]);else if("number"===g){var T=function(e,t,n,r,i){var o=t.map((function(t){return yUe(e,t,n,i,r)})).filter((function(e){return!jIe()(e)}));return o&&o.length?o.reduce((function(e,t){return[Math.min(e[0],t[0]),Math.max(e[1],t[1])]}),[1/0,-1/0]):null}(C,r.filter((function(e){return e.props[o]===S&&(x||!e.props.hide)})),m,i,c);T&&(w=T)}!h||"number"!==g&&"auto"===_||(P=gUe(C,m,"category"))}else w=h?MIe()(0,A):s&&s[S]&&s[S].hasStack&&"number"===g?"expand"===d?[0,1]:TUe(s[S].stackGroups,a,l):vUe(C,r.filter((function(e){return e.props[o]===S&&(x||!e.props.hide)})),g,c,!0);if("number"===g)w=Qqe(u,w,S,i,b),I&&(w=RUe(I,w,y));else if("category"===g&&I){var M=I;w.every((function(e){return M.indexOf(e)>=0}))&&(w=M)}}return vYe(vYe({},t),{},_Ye({},S,vYe(vYe({},n.props),{},{axisType:i,domain:w,categoricalDomain:P,duplicateDomain:E,originalDomain:null!==(p=n.props.domain)&&void 0!==p?p:k,isCategorical:h,layout:c})))}),{})},IYe=function(e,t){var n=t.axisType,r=void 0===n?"xAxis":n,i=t.AxisComp,o=t.graphicalItems,s=t.stackGroups,a=t.dataStartIndex,l=t.dataEndIndex,c=e.children,u="".concat(r,"Id"),d=CGe(c,i),h={};return d&&d.length?h=jYe(e,{axes:d,graphicalItems:o,axisType:r,axisIdKey:u,stackGroups:s,dataStartIndex:a,dataEndIndex:l}):o&&o.length&&(h=function(e,t){var n=t.graphicalItems,r=t.Axis,i=t.axisType,o=t.axisIdKey,s=t.stackGroups,a=t.dataStartIndex,l=t.dataEndIndex,c=e.layout,u=e.children,d=PYe(e.data,{graphicalItems:n,dataStartIndex:a,dataEndIndex:l}),h=d.length,p=_Ue(c,i),f=-1;return n.reduce((function(e,t){var g,m=t.props[o],y=CYe("number");return e[m]?e:(f++,p?g=MIe()(0,h):s&&s[m]&&s[m].hasStack?(g=TUe(s[m].stackGroups,a,l),g=Qqe(u,g,m,i)):(g=RUe(y,vUe(d,n.filter((function(e){return e.props[o]===m&&!e.props.hide})),"number",c),r.defaultProps.allowDataOverflow),g=Qqe(u,g,m,i)),vYe(vYe({},e),{},_Ye({},m,vYe(vYe({axisType:i},r.defaultProps),{},{hide:!0,orientation:RIe()(xYe,"".concat(i,".").concat(f%2),null),domain:g,originalDomain:y,isCategorical:p,layout:c}))))}),{})}(e,{Axis:i,graphicalItems:o,axisType:r,axisIdKey:u,stackGroups:s,dataStartIndex:a,dataEndIndex:l})),h},GYe=function(e){var t=e.children,n=e.defaultShowTooltip,r=AGe(t,nWe),i=0,o=0;return e.data&&0!==e.data.length&&(o=e.data.length-1),r&&r.props&&(r.props.startIndex>=0&&(i=r.props.startIndex),r.props.endIndex>=0&&(o=r.props.endIndex)),{chartX:0,chartY:0,dataStartIndex:i,dataEndIndex:o,activeTooltipIndex:-1,isTooltipActive:Boolean(n)}},TYe=function(e){return"horizontal"===e?{numericAxisName:"yAxis",cateAxisName:"xAxis"}:"vertical"===e?{numericAxisName:"xAxis",cateAxisName:"yAxis"}:"centric"===e?{numericAxisName:"radiusAxis",cateAxisName:"angleAxis"}:{numericAxisName:"angleAxis",cateAxisName:"radiusAxis"}},MYe=function(e,t){var n=e.props,r=(e.graphicalItems,e.xAxisMap),i=void 0===r?{}:r,o=e.yAxisMap,s=void 0===o?{}:o,a=n.width,l=n.height,c=n.children,u=n.margin||{},d=AGe(c,nWe),h=AGe(c,iDe),p=Object.keys(s).reduce((function(e,t){var n=s[t],r=n.orientation;return n.mirror||n.hide?e:vYe(vYe({},e),{},_Ye({},r,e[r]+n.width))}),{left:u.left||0,right:u.right||0}),f=Object.keys(i).reduce((function(e,t){var n=i[t],r=n.orientation;return n.mirror||n.hide?e:vYe(vYe({},e),{},_Ye({},r,RIe()(e,"".concat(r))+n.height))}),{top:u.top||0,bottom:u.bottom||0}),g=vYe(vYe({},f),p),m=g.bottom;d&&(g.bottom+=d.props.height||nWe.defaultProps.height),h&&t&&(g=function(e,t,n,r){var i=n.children,o=n.width,s=n.margin,a=o-(s.left||0)-(s.right||0),l=aUe({children:i,legendWidth:a});if(l){var c=r||{},u=c.width,d=c.height,h=l.align,p=l.verticalAlign,f=l.layout;if(("vertical"===f||"horizontal"===f&&"middle"===p)&&"center"!==h&&tGe(e[h]))return uUe(uUe({},e),{},dUe({},h,e[h]+(u||0)));if(("horizontal"===f||"vertical"===f&&"center"===h)&&"middle"!==p&&tGe(e[p]))return uUe(uUe({},e),{},dUe({},p,e[p]+(d||0)))}return e}(g,0,n,t));var y=a-g.left-g.right,v=l-g.top-g.bottom;return vYe(vYe({brushBottom:m},g),{},{width:Math.max(y,0),height:Math.max(v,0)})},OYe=function(e){var t,r=e.chartName,i=e.GraphicalChild,o=e.defaultTooltipEventType,s=void 0===o?"axis":o,a=e.validateTooltipEventTypes,l=void 0===a?["axis"]:a,c=e.axisComponents,u=e.legendContent,d=e.formatAxisMap,h=e.defaultProps,p=function(e,t){var n=t.graphicalItems,r=t.stackGroups,i=t.offset,o=t.updateId,s=t.dataStartIndex,a=t.dataEndIndex,l=e.barSize,u=e.layout,d=e.barGap,h=e.barCategoryGap,p=e.maxBarSize,f=TYe(u),g=f.numericAxisName,m=f.cateAxisName,y=function(e){return!(!e||!e.length)&&e.some((function(e){var t=SGe(e&&e.type);return t&&t.indexOf("Bar")>=0}))}(n),v=y&&function(e){var t=e.barSize,n=e.stackGroups,r=void 0===n?{}:n;if(!r)return{};for(var i={},o=Object.keys(r),s=0,a=o.length;s<a;s++)for(var l=r[o[s]].stackGroups,c=Object.keys(l),u=0,d=c.length;u<d;u++){var h=l[c[u]],p=h.items,f=h.cateAxisId,g=p.filter((function(e){return SGe(e.type).indexOf("Bar")>=0}));if(g&&g.length){var m=g[0].props.barSize,y=g[0].props[f];i[y]||(i[y]=[]),i[y].push({item:g[0],stackList:g.slice(1),barSize:jIe()(m)?t:m})}}return i}({barSize:l,stackGroups:r}),_=[];return n.forEach((function(n,l){var f=PYe(e.data,{graphicalItems:[n],dataStartIndex:s,dataEndIndex:a}),y=n.props,b=y.dataKey,x=y.maxBarSize,S=n.props["".concat(g,"Id")],w=n.props["".concat(m,"Id")],E=c.reduce((function(e,r){var i,o=t["".concat(r.axisType,"Map")],s=n.props["".concat(r.axisType,"Id")];o&&o[s]||"zAxis"===r.axisType||ct(!1);var a=o[s];return vYe(vYe({},e),{},(_Ye(i={},r.axisType,a),_Ye(i,"".concat(r.axisType,"Ticks"),xUe(a)),i))}),{}),P=E[m],C=E["".concat(m,"Ticks")],A=r&&r[S]&&r[S].hasStack&&function(e,t){var n=e.props.stackId;if(nGe(n)){var r=t[n];if(r){var i=r.items.indexOf(e);return i>=0?r.stackedData[i]:null}}return null}(n,r[S].stackGroups),k=SGe(n.type).indexOf("Bar")>=0,j=DUe(P,C),I=[];if(k){var G,T,M=jIe()(x)?p:x,O=null!==(G=null!==(T=DUe(P,C,!0))&&void 0!==T?T:M)&&void 0!==G?G:0;I=function(e){var t=e.barGap,n=e.barCategoryGap,r=e.bandSize,i=e.sizeList,o=void 0===i?[]:i,s=e.maxBarSize,a=o.length;if(a<1)return null;var l,c=oGe(t,r,0,!0),u=[];if(o[0].barSize===+o[0].barSize){var d=!1,h=r/a,p=o.reduce((function(e,t){return e+t.barSize||0}),0);(p+=(a-1)*c)>=r&&(p-=(a-1)*c,c=0),p>=r&&h>0&&(d=!0,p=a*(h*=.9));var f={offset:((r-p)/2>>0)-c,size:0};l=o.reduce((function(e,t){var n={item:t.item,position:{offset:f.offset+f.size+c,size:d?h:t.barSize}},r=[].concat(hUe(e),[n]);return f=r[r.length-1].position,t.stackList&&t.stackList.length&&t.stackList.forEach((function(e){r.push({item:e,position:f})})),r}),u)}else{var g=oGe(n,r,0,!0);r-2*g-(a-1)*c<=0&&(c=0);var m=(r-2*g-(a-1)*c)/a;m>1&&(m>>=0);var y=s===+s?Math.min(m,s):m;l=o.reduce((function(e,t,n){var r=[].concat(hUe(e),[{item:t.item,position:{offset:g+(m+c)*n+(m-y)/2,size:y}}]);return t.stackList&&t.stackList.length&&t.stackList.forEach((function(e){r.push({item:e,position:r[r.length-1].position})})),r}),u)}return l}({barGap:d,barCategoryGap:h,bandSize:O!==j?O:j,sizeList:v[w],maxBarSize:M}),O!==j&&(I=I.map((function(e){return vYe(vYe({},e),{},{position:vYe(vYe({},e.position),{},{offset:e.position.offset-O/2})})})))}var R,D,N,L=n&&n.type&&n.type.getComposedData;L&&_.push({props:vYe(vYe({},L(vYe(vYe({},E),{},{displayedData:f,props:e,dataKey:b,item:n,bandSize:j,barPosition:I,offset:i,stackedData:A,layout:u,dataStartIndex:s,dataEndIndex:a}))),{},(R={key:n.key||"item-".concat(l)},_Ye(R,g,E[g]),_Ye(R,m,E[m]),_Ye(R,"animationId",o),R)),childIndex:(D=n,N=e.children,PGe(N).indexOf(D)),item:n})})),_},f=function(e,t){var n=e.props,o=e.dataStartIndex,s=e.dataEndIndex,a=e.updateId;if(!kGe({props:n}))return null;var l=n.children,u=n.layout,h=n.stackOffset,f=n.data,g=n.reverseStackOrder,m=TYe(u),y=m.numericAxisName,v=m.cateAxisName,_=CGe(l,i),b=function(e,t,n,r,i,o){if(!e)return null;var s=(o?t.reverse():t).reduce((function(e,t){var i=t.props,o=i.stackId;if(i.hide)return e;var s=t.props[n],a=e[s]||{hasStack:!1,stackGroups:{}};if(nGe(o)){var l=a.stackGroups[o]||{numericAxisId:n,cateAxisId:r,items:[]};l.items.push(t),a.hasStack=!0,a.stackGroups[o]=l}else a.stackGroups[iGe("_stackId_")]={numericAxisId:n,cateAxisId:r,items:[t]};return uUe(uUe({},e),{},dUe({},s,a))}),{});return Object.keys(s).reduce((function(t,o){var a=s[o];return a.hasStack&&(a.stackGroups=Object.keys(a.stackGroups).reduce((function(t,o){var s=a.stackGroups[o];return uUe(uUe({},t),{},dUe({},o,{numericAxisId:n,cateAxisId:r,items:s.items,stackedData:kUe(e,s.items,i)}))}),{})),uUe(uUe({},t),{},dUe({},o,a))}),{})}(f,_,"".concat(y,"Id"),"".concat(v,"Id"),h,g),x=c.reduce((function(e,t){var r="".concat(t.axisType,"Map");return vYe(vYe({},e),{},_Ye({},r,IYe(n,vYe(vYe({},t),{},{graphicalItems:_,stackGroups:t.axisType===y&&b,dataStartIndex:o,dataEndIndex:s}))))}),{}),S=MYe(vYe(vYe({},x),{},{props:n,graphicalItems:_}),null===t||void 0===t?void 0:t.legendBBox);Object.keys(x).forEach((function(e){x[e]=d(n,x[e],S,e.replace("Map",""),r)}));var w=function(e){var t=sGe(e),n=xUe(t,!1,!0);return{tooltipTicks:n,orderedTooltipTicks:NIe()(n,(function(e){return e.coordinate})),tooltipAxis:t,tooltipAxisBandSize:DUe(t,n)}}(x["".concat(v,"Map")]),E=p(n,vYe(vYe({},x),{},{dataStartIndex:o,dataEndIndex:s,updateId:a,graphicalItems:_,stackGroups:b,offset:S}));return vYe(vYe({formattedGraphicalItems:E,graphicalItems:_,offset:S,stackGroups:b},w),x)};return t=function(e){!function(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&uYe(e,t)}(c,e);var t,i,o,a=dYe(c);function c(e){var t,i,o;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,c),_Ye(hYe(o=a.call(this,e)),"eventEmitterSymbol",Symbol("rechartsEventEmitter")),_Ye(hYe(o),"accessibilityManager",new aXe),_Ye(hYe(o),"handleLegendBBoxUpdate",(function(e){if(e){var t=o.state,n=t.dataStartIndex,r=t.dataEndIndex,i=t.updateId;o.setState(vYe({legendBBox:e},f({props:o.props,dataStartIndex:n,dataEndIndex:r,updateId:i},vYe(vYe({},o.state),{},{legendBBox:e}))))}})),_Ye(hYe(o),"handleReceiveSyncEvent",(function(e,t,n){if(o.props.syncId===e){if(n===o.eventEmitterSymbol&&"function"!==typeof o.props.syncMethod)return;o.applySyncEvent(t)}})),_Ye(hYe(o),"handleBrushChange",(function(e){var t=e.startIndex,n=e.endIndex;if(t!==o.state.dataStartIndex||n!==o.state.dataEndIndex){var r=o.state.updateId;o.setState((function(){return vYe({dataStartIndex:t,dataEndIndex:n},f({props:o.props,dataStartIndex:t,dataEndIndex:n,updateId:r},o.state))})),o.triggerSyncEvent({dataStartIndex:t,dataEndIndex:n})}})),_Ye(hYe(o),"handleMouseEnter",(function(e){var t=o.getMouseInfo(e);if(t){var n=vYe(vYe({},t),{},{isTooltipActive:!0});o.setState(n),o.triggerSyncEvent(n);var r=o.props.onMouseEnter;GIe()(r)&&r(n,e)}})),_Ye(hYe(o),"triggeredAfterMouseMove",(function(e){var t=o.getMouseInfo(e),n=t?vYe(vYe({},t),{},{isTooltipActive:!0}):{isTooltipActive:!1};o.setState(n),o.triggerSyncEvent(n);var r=o.props.onMouseMove;GIe()(r)&&r(n,e)})),_Ye(hYe(o),"handleItemMouseEnter",(function(e){o.setState((function(){return{isTooltipActive:!0,activeItem:e,activePayload:e.tooltipPayload,activeCoordinate:e.tooltipPosition||{x:e.cx,y:e.cy}}}))})),_Ye(hYe(o),"handleItemMouseLeave",(function(){o.setState((function(){return{isTooltipActive:!1}}))})),_Ye(hYe(o),"handleMouseMove",(function(e){e.persist(),o.throttleTriggeredAfterMouseMove(e)})),_Ye(hYe(o),"handleMouseLeave",(function(e){var t={isTooltipActive:!1};o.setState(t),o.triggerSyncEvent(t);var n=o.props.onMouseLeave;GIe()(n)&&n(t,e)})),_Ye(hYe(o),"handleOuterEvent",(function(e){var t,n=function(e){var t=e&&e.type;return t&&xGe[t]?xGe[t]:null}(e),r=RIe()(o.props,"".concat(n));n&&GIe()(r)&&r(null!==(t=/.*touch.*/i.test(n)?o.getMouseInfo(e.changedTouches[0]):o.getMouseInfo(e))&&void 0!==t?t:{},e)})),_Ye(hYe(o),"handleClick",(function(e){var t=o.getMouseInfo(e);if(t){var n=vYe(vYe({},t),{},{isTooltipActive:!0});o.setState(n),o.triggerSyncEvent(n);var r=o.props.onClick;GIe()(r)&&r(n,e)}})),_Ye(hYe(o),"handleMouseDown",(function(e){var t=o.props.onMouseDown;GIe()(t)&&t(o.getMouseInfo(e),e)})),_Ye(hYe(o),"handleMouseUp",(function(e){var t=o.props.onMouseUp;GIe()(t)&&t(o.getMouseInfo(e),e)})),_Ye(hYe(o),"handleTouchMove",(function(e){null!=e.changedTouches&&e.changedTouches.length>0&&o.throttleTriggeredAfterMouseMove(e.changedTouches[0])})),_Ye(hYe(o),"handleTouchStart",(function(e){null!=e.changedTouches&&e.changedTouches.length>0&&o.handleMouseDown(e.changedTouches[0])})),_Ye(hYe(o),"handleTouchEnd",(function(e){null!=e.changedTouches&&e.changedTouches.length>0&&o.handleMouseUp(e.changedTouches[0])})),_Ye(hYe(o),"triggerSyncEvent",(function(e){void 0!==o.props.syncId&&tXe.emit(nXe,o.props.syncId,e,o.eventEmitterSymbol)})),_Ye(hYe(o),"applySyncEvent",(function(e){var t=o.props,n=t.layout,r=t.syncMethod,i=o.state.updateId,s=e.dataStartIndex,a=e.dataEndIndex;if(void 0!==e.dataStartIndex||void 0!==e.dataEndIndex)o.setState(vYe({dataStartIndex:s,dataEndIndex:a},f({props:o.props,dataStartIndex:s,dataEndIndex:a,updateId:i},o.state)));else if(void 0!==e.activeTooltipIndex){var l=e.chartX,c=e.chartY,u=e.activeTooltipIndex,d=o.state,h=d.offset,p=d.tooltipTicks;if(!h)return;if("function"===typeof r)u=r(p,e);else if("value"===r){u=-1;for(var g=0;g<p.length;g++)if(p[g].value===e.activeLabel){u=g;break}}var m=vYe(vYe({},h),{},{x:h.left,y:h.top}),y=Math.min(l,m.x+m.width),v=Math.min(c,m.y+m.height),_=p[u]&&p[u].value,b=AYe(o.state,o.props.data,u),x=p[u]?{x:"horizontal"===n?p[u].coordinate:y,y:"horizontal"===n?v:p[u].coordinate}:wYe;o.setState(vYe(vYe({},e),{},{activeLabel:_,activeCoordinate:x,activePayload:b,activeTooltipIndex:u}))}else o.setState(e)})),_Ye(hYe(o),"renderCursor",(function(e){var t,i=o.state,s=i.isTooltipActive,a=i.activeCoordinate,l=i.activePayload,c=i.offset,u=i.activeTooltipIndex,d=i.tooltipAxisBandSize,h=o.getTooltipEventType(),p=null!==(t=e.props.active)&&void 0!==t?t:s,f=o.props.layout,g=e.key||"_recharts-cursor";return n.createElement(nYe,{key:g,activeCoordinate:a,activePayload:l,activeTooltipIndex:u,chartName:r,element:e,isActive:p,layout:f,offset:c,tooltipAxisBandSize:d,tooltipEventType:h})})),_Ye(hYe(o),"renderPolarAxis",(function(e,t,r){var i=RIe()(e,"type.axisType"),s=RIe()(o.state,"".concat(i,"Map")),a=s&&s[e.props["".concat(i,"Id")]];return(0,n.cloneElement)(e,vYe(vYe({},a),{},{className:i,key:e.key||"".concat(t,"-").concat(r),ticks:xUe(a,!0)}))})),_Ye(hYe(o),"renderGrid",(function(e){var t=o.state,r=t.xAxisMap,i=t.yAxisMap,s=t.offset,a=sGe(r),l=VIe()(i,(function(e){return zIe()(e.domain,Number.isFinite)}))||sGe(i),c=e.props||{};return(0,n.cloneElement)(e,{key:e.key||"grid",x:tGe(c.x)?c.x:s.left,y:tGe(c.y)?c.y:s.top,width:tGe(c.width)?c.width:s.width,height:tGe(c.height)?c.height:s.height,xAxis:a,yAxis:l,verticalCoordinatesGenerator:c.verticalCoordinatesGenerator,horizontalCoordinatesGenerator:c.horizontalCoordinatesGenerator})})),_Ye(hYe(o),"renderPolarGrid",(function(e){var t=e.props,r=t.radialLines,i=t.polarAngles,s=t.polarRadius,a=o.state,l=a.radiusAxisMap,c=a.angleAxisMap,u=sGe(l),d=sGe(c),h=d.cx,p=d.cy,f=d.innerRadius,g=d.outerRadius;return(0,n.cloneElement)(e,{polarAngles:Array.isArray(i)?i:xUe(d,!0).map((function(e){return e.coordinate})),polarRadius:Array.isArray(s)?s:xUe(u,!0).map((function(e){return e.coordinate})),cx:h,cy:p,innerRadius:f,outerRadius:g,key:e.key||"polar-grid",radialLines:r})})),_Ye(hYe(o),"renderLegend",(function(){var e=o.state.formattedGraphicalItems,t=o.props,r=t.children,i=t.width,s=t.height,a=o.props.margin||{},l=i-(a.left||0)-(a.right||0),c=aUe({children:r,formattedGraphicalItems:e,legendWidth:l,legendContent:u});if(!c)return null;var d=c.item,h=lYe(c,rYe);return(0,n.cloneElement)(d,vYe(vYe({},h),{},{chartWidth:i,chartHeight:s,margin:a,onBBoxUpdate:o.handleLegendBBoxUpdate}))})),_Ye(hYe(o),"renderTooltip",(function(){var e,t=AGe(o.props.children,IOe);if(!t)return null;var r=o.state,i=r.isTooltipActive,s=r.activeCoordinate,a=r.activePayload,l=r.activeLabel,c=r.offset,u=null!==(e=t.props.active)&&void 0!==e?e:i;return(0,n.cloneElement)(t,{viewBox:vYe(vYe({},c),{},{x:c.left,y:c.top}),active:u,label:l,payload:u?a:[],coordinate:s})})),_Ye(hYe(o),"renderBrush",(function(e){var t=o.props,r=t.margin,i=t.data,s=o.state,a=s.offset,l=s.dataStartIndex,c=s.dataEndIndex,u=s.updateId;return(0,n.cloneElement)(e,{key:e.key||"_recharts-brush",onChange:wUe(o.handleBrushChange,e.props.onChange),data:i,x:tGe(e.props.x)?e.props.x:a.left,y:tGe(e.props.y)?e.props.y:a.top+a.height+a.brushBottom-(r.bottom||0),width:tGe(e.props.width)?e.props.width:a.width,startIndex:l,endIndex:c,updateId:"brush-".concat(u)})})),_Ye(hYe(o),"renderReferenceElement",(function(e,t,r){if(!e)return null;var i=hYe(o).clipPathId,s=o.state,a=s.xAxisMap,l=s.yAxisMap,c=s.offset,u=e.props,d=u.xAxisId,h=u.yAxisId;return(0,n.cloneElement)(e,{key:e.key||"".concat(t,"-").concat(r),xAxis:a[d],yAxis:l[h],viewBox:{x:c.left,y:c.top,width:c.width,height:c.height},clipPathId:i})})),_Ye(hYe(o),"renderActivePoints",(function(e){var t=e.item,n=e.activePoint,r=e.basePoint,i=e.childIndex,o=e.isRange,s=[],a=t.props.key,l=t.item.props,u=l.activeDot,d=vYe(vYe({index:i,dataKey:l.dataKey,cx:n.x,cy:n.y,r:4,fill:mUe(t.item),strokeWidth:2,stroke:"#fff",payload:n.payload,value:n.value,key:"".concat(a,"-activePoint-").concat(i)},GGe(u,!1)),gGe(u));return s.push(c.renderActiveDot(u,d)),r?s.push(c.renderActiveDot(u,vYe(vYe({},d),{},{cx:r.x,cy:r.y,key:"".concat(a,"-basePoint-").concat(i)}))):o&&s.push(null),s})),_Ye(hYe(o),"renderGraphicChild",(function(e,t,r){var i=o.filterFormatItem(e,t,r);if(!i)return null;var s=o.getTooltipEventType(),a=o.state,l=a.isTooltipActive,c=a.tooltipAxis,u=a.activeTooltipIndex,d=a.activeLabel,h=AGe(o.props.children,IOe),p=i.props,f=p.points,g=p.isRange,m=p.baseLine,y=i.item.props,v=y.activeDot,_=y.hide,b=y.activeBar,x=y.activeShape,S=Boolean(!_&&l&&h&&(v||b||x)),w={};"axis"!==s&&h&&"click"===h.props.trigger?w={onClick:wUe(o.handleItemMouseEnter,e.props.onClick)}:"axis"!==s&&(w={onMouseLeave:wUe(o.handleItemMouseLeave,e.props.onMouseLeave),onMouseEnter:wUe(o.handleItemMouseEnter,e.props.onMouseEnter)});var E=(0,n.cloneElement)(e,vYe(vYe({},i.props),w));if(S){if(!(u>=0)){var P,C=(null!==(P=o.getItemByXY(o.state.activeCoordinate))&&void 0!==P?P:{graphicalItem:E}).graphicalItem,A=C.item,k=void 0===A?e:A,j=C.childIndex,I=vYe(vYe(vYe({},i.props),w),{},{activeIndex:j});return[(0,n.cloneElement)(k,I),null,null]}var G,T;if(c.dataKey&&!c.allowDuplicatedCategory){var M="function"===typeof c.dataKey?function(e){return"function"===typeof c.dataKey?c.dataKey(e.payload):null}:"payload.".concat(c.dataKey.toString());G=lGe(f,M,d),T=g&&m&&lGe(m,M,d)}else G=null===f||void 0===f?void 0:f[u],T=g&&m&&m[u];if(x||b){var O=void 0!==e.props.activeIndex?e.props.activeIndex:u;return[(0,n.cloneElement)(e,vYe(vYe(vYe({},i.props),w),{},{activeIndex:O})),null,null]}if(!jIe()(G))return[E].concat(fYe(o.renderActivePoints({item:i,activePoint:G,basePoint:T,childIndex:u,isRange:g})))}return g?[E,null,null]:[E,null]})),_Ye(hYe(o),"renderCustomized",(function(e,t,r){return(0,n.cloneElement)(e,vYe(vYe({key:"recharts-customized-".concat(r)},o.props),o.state))})),_Ye(hYe(o),"renderMap",{CartesianGrid:{handler:o.renderGrid,once:!0},ReferenceArea:{handler:o.renderReferenceElement},ReferenceLine:{handler:EYe},ReferenceDot:{handler:o.renderReferenceElement},XAxis:{handler:EYe},YAxis:{handler:EYe},Brush:{handler:o.renderBrush,once:!0},Bar:{handler:o.renderGraphicChild},Line:{handler:o.renderGraphicChild},Area:{handler:o.renderGraphicChild},Radar:{handler:o.renderGraphicChild},RadialBar:{handler:o.renderGraphicChild},Scatter:{handler:o.renderGraphicChild},Pie:{handler:o.renderGraphicChild},Funnel:{handler:o.renderGraphicChild},Tooltip:{handler:o.renderCursor,once:!0},PolarGrid:{handler:o.renderPolarGrid,once:!0},PolarAngleAxis:{handler:o.renderPolarAxis},PolarRadiusAxis:{handler:o.renderPolarAxis},Customized:{handler:o.renderCustomized}}),o.clipPathId="".concat(null!==(t=e.id)&&void 0!==t?t:iGe("recharts"),"-clip"),o.throttleTriggeredAfterMouseMove=XX()(o.triggeredAfterMouseMove,null!==(i=e.throttleDelay)&&void 0!==i?i:1e3/60),o.state={},o}return t=c,i=[{key:"componentDidMount",value:function(){var e,t;this.addListener(),this.accessibilityManager.setDetails({container:this.container,offset:{left:null!==(e=this.props.margin.left)&&void 0!==e?e:0,top:null!==(t=this.props.margin.top)&&void 0!==t?t:0},coordinateList:this.state.tooltipTicks,mouseHandlerCallback:this.triggeredAfterMouseMove,layout:this.props.layout}),this.displayDefaultTooltip()}},{key:"displayDefaultTooltip",value:function(){var e=this.props,t=e.children,n=e.data,r=e.height,i=e.layout,o=AGe(t,IOe);if(o){var s=o.props.defaultIndex;if(!("number"!==typeof s||s<0||s>this.state.tooltipTicks.length)){var a=this.state.tooltipTicks[s]&&this.state.tooltipTicks[s].value,l=AYe(this.state,n,s,a),c=this.state.tooltipTicks[s].coordinate,u=(this.state.offset.top+r)/2,d="horizontal"===i?{x:c,y:u}:{y:c,x:u},h=this.state.formattedGraphicalItems.find((function(e){return"Scatter"===e.item.type.name}));h&&(d=vYe(vYe({},d),h.props.points[s].tooltipPosition),l=h.props.points[s].tooltipPayload);var p={activeTooltipIndex:s,isTooltipActive:!0,activeLabel:a,activePayload:l,activeCoordinate:d};this.setState(p),this.renderCursor(o),this.accessibilityManager.setIndex(s)}}}},{key:"getSnapshotBeforeUpdate",value:function(e,t){return this.props.accessibilityLayer?(this.state.tooltipTicks!==t.tooltipTicks&&this.accessibilityManager.setDetails({coordinateList:this.state.tooltipTicks}),this.props.layout!==e.layout&&this.accessibilityManager.setDetails({layout:this.props.layout}),this.props.margin!==e.margin&&this.accessibilityManager.setDetails({offset:{left:null!==(n=this.props.margin.left)&&void 0!==n?n:0,top:null!==(r=this.props.margin.top)&&void 0!==r?r:0}}),null):null;var n,r}},{key:"componentDidUpdate",value:function(e){TGe([AGe(e.children,IOe)],[AGe(this.props.children,IOe)])||this.displayDefaultTooltip()}},{key:"componentWillUnmount",value:function(){this.removeListener(),this.throttleTriggeredAfterMouseMove.cancel()}},{key:"getTooltipEventType",value:function(){var e=AGe(this.props.children,IOe);if(e&&"boolean"===typeof e.props.shared){var t=e.props.shared?"axis":"item";return l.indexOf(t)>=0?t:s}return s}},{key:"getMouseInfo",value:function(e){if(!this.container)return null;var t,n=this.container,r=n.getBoundingClientRect(),i={top:(t=r).top+window.scrollY-document.documentElement.clientTop,left:t.left+window.scrollX-document.documentElement.clientLeft},o={chartX:Math.round(e.pageX-i.left),chartY:Math.round(e.pageY-i.top)},s=r.width/n.offsetWidth||1,a=this.inRange(o.chartX,o.chartY,s);if(!a)return null;var l=this.state,c=l.xAxisMap,u=l.yAxisMap;if("axis"!==this.getTooltipEventType()&&c&&u){var d=sGe(c).scale,h=sGe(u).scale,p=d&&d.invert?d.invert(o.chartX):null,f=h&&h.invert?h.invert(o.chartY):null;return vYe(vYe({},o),{},{xValue:p,yValue:f})}var g=kYe(this.state,this.props.data,this.props.layout,a);return g?vYe(vYe({},o),g):null}},{key:"inRange",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1,r=this.props.layout,i=e/n,o=t/n;if("horizontal"===r||"vertical"===r){var s=this.state.offset;return i>=s.left&&i<=s.left+s.width&&o>=s.top&&o<=s.top+s.height?{x:i,y:o}:null}var a=this.state,l=a.angleAxisMap,c=a.radiusAxisMap;if(l&&c){var u=sGe(l);return gWe({x:i,y:o},u)}return null}},{key:"parseEventsOfWrapper",value:function(){var e=this.props.children,t=this.getTooltipEventType(),n=AGe(e,IOe),r={};return n&&"axis"===t&&(r="click"===n.props.trigger?{onClick:this.handleClick}:{onMouseEnter:this.handleMouseEnter,onMouseMove:this.handleMouseMove,onMouseLeave:this.handleMouseLeave,onTouchMove:this.handleTouchMove,onTouchStart:this.handleTouchStart,onTouchEnd:this.handleTouchEnd}),vYe(vYe({},gGe(this.props,this.handleOuterEvent)),r)}},{key:"addListener",value:function(){tXe.on(nXe,this.handleReceiveSyncEvent)}},{key:"removeListener",value:function(){tXe.removeListener(nXe,this.handleReceiveSyncEvent)}},{key:"filterFormatItem",value:function(e,t,n){for(var r=this.state.formattedGraphicalItems,i=0,o=r.length;i<o;i++){var s=r[i];if(s.item===e||s.props.key===e.key||t===SGe(s.item.type)&&n===s.childIndex)return s}return null}},{key:"renderClipPath",value:function(){var e=this.clipPathId,t=this.state.offset,r=t.left,i=t.top,o=t.height,s=t.width;return n.createElement("defs",null,n.createElement("clipPath",{id:e},n.createElement("rect",{x:r,y:i,height:o,width:s})))}},{key:"getXScales",value:function(){var e=this.state.xAxisMap;return e?Object.entries(e).reduce((function(e,t){var n=aYe(t,2),r=n[0],i=n[1];return vYe(vYe({},e),{},_Ye({},r,i.scale))}),{}):null}},{key:"getYScales",value:function(){var e=this.state.yAxisMap;return e?Object.entries(e).reduce((function(e,t){var n=aYe(t,2),r=n[0],i=n[1];return vYe(vYe({},e),{},_Ye({},r,i.scale))}),{}):null}},{key:"getXScaleByAxisId",value:function(e){var t;return null===(t=this.state.xAxisMap)||void 0===t||null===(t=t[e])||void 0===t?void 0:t.scale}},{key:"getYScaleByAxisId",value:function(e){var t;return null===(t=this.state.yAxisMap)||void 0===t||null===(t=t[e])||void 0===t?void 0:t.scale}},{key:"getItemByXY",value:function(e){var t=this.state,n=t.formattedGraphicalItems,r=t.activeItem;if(n&&n.length)for(var i=0,o=n.length;i<o;i++){var s=n[i],a=s.props,l=s.item,c=SGe(l.type);if("Bar"===c){var u=(a.data||[]).find((function(t){return gDe(e,t)}));if(u)return{graphicalItem:s,payload:u}}else if("RadialBar"===c){var d=(a.data||[]).find((function(t){return gWe(e,t)}));if(d)return{graphicalItem:s,payload:d}}else if(kHe(s,r)||jHe(s,r)||IHe(s,r)){var h=OHe({graphicalItem:s,activeTooltipItem:r,itemData:l.props.data}),p=void 0===l.props.activeIndex?h:l.props.activeIndex;return{graphicalItem:vYe(vYe({},s),{},{childIndex:p}),payload:IHe(s,r)?l.props.data[h]:s.props.data[h]}}}return null}},{key:"render",value:function(){var e=this;if(!kGe(this))return null;var t,r,i=this.props,o=i.children,s=i.className,a=i.width,l=i.height,c=i.style,u=i.compact,d=i.title,h=i.desc,p=lYe(i,iYe),f=GGe(p,!1);if(u)return n.createElement(LGe,sYe({},f,{width:a,height:l,title:d,desc:h}),this.renderClipPath(),OGe(o,this.renderMap));this.props.accessibilityLayer&&(f.tabIndex=null!==(t=this.props.tabIndex)&&void 0!==t?t:0,f.role=null!==(r=this.props.role)&&void 0!==r?r:"img",f.onKeyDown=function(t){e.accessibilityManager.keyboardEvent(t)},f.onFocus=function(){e.accessibilityManager.focus()});var g=this.parseEventsOfWrapper();return n.createElement(Tqe,{state:this.state,width:this.props.width,height:this.props.height,clipPathId:this.clipPathId},n.createElement("div",sYe({className:UIe("recharts-wrapper",s),style:vYe({position:"relative",cursor:"default",width:a,height:l},c)},g,{ref:function(t){e.container=t},role:"region"}),n.createElement(LGe,sYe({},f,{width:a,height:l,title:d,desc:h,style:SYe}),this.renderClipPath(),OGe(o,this.renderMap)),this.renderLegend(),this.renderTooltip()))}}],i&&cYe(t.prototype,i),o&&cYe(t,o),Object.defineProperty(t,"prototype",{writable:!1}),c}(n.Component),_Ye(t,"displayName",r),_Ye(t,"defaultProps",vYe({layout:"horizontal",stackOffset:"none",barCategoryGap:"10%",barGap:4,margin:{top:5,right:5,bottom:5,left:5},reverseStackOrder:!1,syncMethod:"index"},h)),_Ye(t,"getDerivedStateFromProps",(function(e,t){var n=e.dataKey,r=e.data,i=e.children,o=e.width,s=e.height,a=e.layout,l=e.stackOffset,c=e.margin,u=t.dataStartIndex,d=t.dataEndIndex;if(void 0===t.updateId){var h=GYe(e);return vYe(vYe(vYe({},h),{},{updateId:0},f(vYe(vYe({props:e},h),{},{updateId:0}),t)),{},{prevDataKey:n,prevData:r,prevWidth:o,prevHeight:s,prevLayout:a,prevStackOffset:l,prevMargin:c,prevChildren:i})}if(n!==t.prevDataKey||r!==t.prevData||o!==t.prevWidth||s!==t.prevHeight||a!==t.prevLayout||l!==t.prevStackOffset||!cGe(c,t.prevMargin)){var p=GYe(e),g={chartX:t.chartX,chartY:t.chartY,isTooltipActive:t.isTooltipActive},m=vYe(vYe({},kYe(t,r,a)),{},{updateId:t.updateId+1}),y=vYe(vYe(vYe({},p),g),m);return vYe(vYe(vYe({},y),f(vYe({props:e},y),t)),{},{prevDataKey:n,prevData:r,prevWidth:o,prevHeight:s,prevLayout:a,prevStackOffset:l,prevMargin:c,prevChildren:i})}if(!TGe(i,t.prevChildren)){var v,_,b,x,S=AGe(i,nWe),w=S&&null!==(v=null===(_=S.props)||void 0===_?void 0:_.startIndex)&&void 0!==v?v:u,E=S&&null!==(b=null===(x=S.props)||void 0===x?void 0:x.endIndex)&&void 0!==b?b:d,P=w!==u||E!==d,C=!jIe()(r)&&!P?t.updateId:t.updateId+1;return vYe(vYe({updateId:C},f(vYe(vYe({props:e},t),{},{updateId:C,dataStartIndex:w,dataEndIndex:E}),t)),{},{prevChildren:i,dataStartIndex:w,dataEndIndex:E})}return null})),_Ye(t,"renderActiveDot",(function(e,t){var r;return r=(0,n.isValidElement)(e)?(0,n.cloneElement)(e,t):GIe()(e)?e(t):n.createElement(sDe,t),n.createElement(BGe,{className:"recharts-active-dot",key:t.key},r)})),t};function RYe(e,t,n){if(t<1)return[];if(1===t&&void 0===n)return e;for(var r=[],i=0;i<e.length;i+=t){if(void 0!==n&&!0!==n(e[i]))return;r.push(e[i])}return r}function DYe(e,t,n,r,i){if(e*t<e*r||e*t>e*i)return!1;var o=n();return e*(t-e*o/2-r)>=0&&e*(t+e*o/2-i)<=0}function NYe(e){return NYe="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},NYe(e)}function LYe(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function VYe(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?LYe(Object(n),!0).forEach((function(t){FYe(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):LYe(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function FYe(e,t,n){return(t=function(e){var t=function(e,t){if("object"!==NYe(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==NYe(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===NYe(t)?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function zYe(e,t,n){var r=e.tick,i=e.ticks,o=e.viewBox,s=e.minTickGap,a=e.orientation,l=e.interval,c=e.tickFormatter,u=e.unit,d=e.angle;if(!i||!i.length||!r)return[];if(tGe(l)||mOe.isSsr)return function(e,t){return RYe(e,t+1)}(i,"number"===typeof l&&tGe(l)?l:0);var h=[],p="top"===a||"bottom"===a?"width":"height",f=u&&"width"===p?NDe(u,{fontSize:t,letterSpacing:n}):{width:0,height:0},g=function(e,r){var i=GIe()(c)?c(e.value,r):e.value;return"width"===p?function(e,t,n){var r={width:e.width+t.width,height:e.height+t.height};return fqe(r,n)}(NDe(i,{fontSize:t,letterSpacing:n}),f,d):NDe(i,{fontSize:t,letterSpacing:n})[p]},m=i.length>=2?QIe(i[1].coordinate-i[0].coordinate):1,y=function(e,t,n){var r="width"===n,i=e.x,o=e.y,s=e.width,a=e.height;return 1===t?{start:r?i:o,end:r?i+s:o+a}:{start:r?i+s:o+a,end:r?i:o}}(o,m,p);return"equidistantPreserveStart"===l?function(e,t,n,r,i){for(var o,s=(r||[]).slice(),a=t.start,l=t.end,c=0,u=1,d=a,h=function(){var t=null===r||void 0===r?void 0:r[c];if(void 0===t)return{v:RYe(r,u)};var o,s=c,h=function(){return void 0===o&&(o=n(t,s)),o},p=t.coordinate,f=0===c||DYe(e,p,h,d,l);f||(c=0,d=a,u+=1),f&&(d=p+e*(h()/2+i),c+=u)};u<=s.length;)if(o=h())return o.v;return[]}(m,y,g,i,s):(h="preserveStart"===l||"preserveStartEnd"===l?function(e,t,n,r,i,o){var s=(r||[]).slice(),a=s.length,l=t.start,c=t.end;if(o){var u=r[a-1],d=n(u,a-1),h=e*(u.coordinate+e*d/2-c);s[a-1]=u=VYe(VYe({},u),{},{tickCoord:h>0?u.coordinate-h*e:u.coordinate}),DYe(e,u.tickCoord,(function(){return d}),l,c)&&(c=u.tickCoord-e*(d/2+i),s[a-1]=VYe(VYe({},u),{},{isShow:!0}))}for(var p=o?a-1:a,f=function(t){var r,o=s[t],a=function(){return void 0===r&&(r=n(o,t)),r};if(0===t){var u=e*(o.coordinate-e*a()/2-l);s[t]=o=VYe(VYe({},o),{},{tickCoord:u<0?o.coordinate-u*e:o.coordinate})}else s[t]=o=VYe(VYe({},o),{},{tickCoord:o.coordinate});DYe(e,o.tickCoord,a,l,c)&&(l=o.tickCoord+e*(a()/2+i),s[t]=VYe(VYe({},o),{},{isShow:!0}))},g=0;g<p;g++)f(g);return s}(m,y,g,i,s,"preserveStartEnd"===l):function(e,t,n,r,i){for(var o=(r||[]).slice(),s=o.length,a=t.start,l=t.end,c=function(t){var r,c=o[t],u=function(){return void 0===r&&(r=n(c,t)),r};if(t===s-1){var d=e*(c.coordinate+e*u()/2-l);o[t]=c=VYe(VYe({},c),{},{tickCoord:d>0?c.coordinate-d*e:c.coordinate})}else o[t]=c=VYe(VYe({},c),{},{tickCoord:c.coordinate});DYe(e,c.tickCoord,u,a,l)&&(l=c.tickCoord-e*(u()/2+i),o[t]=VYe(VYe({},c),{},{isShow:!0}))},u=s-1;u>=0;u--)c(u);return o}(m,y,g,i,s),h.filter((function(e){return e.isShow})))}var BYe=["viewBox"],UYe=["viewBox"],WYe=["ticks"];function HYe(e){return HYe="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},HYe(e)}function qYe(){return qYe=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},qYe.apply(this,arguments)}function XYe(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function YYe(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?XYe(Object(n),!0).forEach((function(t){eKe(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):XYe(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function KYe(e,t){if(null==e)return{};var n,r,i=function(e,t){if(null==e)return{};var n,r,i={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(i[n]=e[n]);return i}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function ZYe(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,tKe(r.key),r)}}function $Ye(e,t){return $Ye=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},$Ye(e,t)}function JYe(e){var t=function(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=QYe(e);if(t){var i=QYe(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return function(e,t){if(t&&("object"===HYe(t)||"function"===typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(this,n)}}function QYe(e){return QYe=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},QYe(e)}function eKe(e,t,n){return(t=tKe(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function tKe(e){var t=function(e,t){if("object"!==HYe(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==HYe(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===HYe(t)?t:String(t)}var nKe=function(e){!function(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&$Ye(e,t)}(s,e);var t,r,i,o=JYe(s);function s(e){var t;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,s),(t=o.call(this,e)).state={fontSize:"",letterSpacing:""},t}return t=s,r=[{key:"shouldComponentUpdate",value:function(e,t){var n=e.viewBox,r=KYe(e,BYe),i=this.props,o=i.viewBox,s=KYe(i,UYe);return!cGe(n,o)||!cGe(r,s)||!cGe(t,this.state)}},{key:"componentDidMount",value:function(){var e=this.layerReference;if(e){var t=e.getElementsByClassName("recharts-cartesian-axis-tick-value")[0];t&&this.setState({fontSize:window.getComputedStyle(t).fontSize,letterSpacing:window.getComputedStyle(t).letterSpacing})}}},{key:"getTickLineCoord",value:function(e){var t,n,r,i,o,s,a=this.props,l=a.x,c=a.y,u=a.width,d=a.height,h=a.orientation,p=a.tickSize,f=a.mirror,g=a.tickMargin,m=f?-1:1,y=e.tickSize||p,v=tGe(e.tickCoord)?e.tickCoord:e.coordinate;switch(h){case"top":t=n=e.coordinate,s=(r=(i=c+ +!f*d)-m*y)-m*g,o=v;break;case"left":r=i=e.coordinate,o=(t=(n=l+ +!f*u)-m*y)-m*g,s=v;break;case"right":r=i=e.coordinate,o=(t=(n=l+ +f*u)+m*y)+m*g,s=v;break;default:t=n=e.coordinate,s=(r=(i=c+ +f*d)+m*y)+m*g,o=v}return{line:{x1:t,y1:r,x2:n,y2:i},tick:{x:o,y:s}}}},{key:"getTickTextAnchor",value:function(){var e,t=this.props,n=t.orientation,r=t.mirror;switch(n){case"left":e=r?"start":"end";break;case"right":e=r?"end":"start";break;default:e="middle"}return e}},{key:"getTickVerticalAnchor",value:function(){var e=this.props,t=e.orientation,n=e.mirror,r="end";switch(t){case"left":case"right":r="middle";break;case"top":r=n?"start":"end";break;default:r=n?"end":"start"}return r}},{key:"renderAxisLine",value:function(){var e=this.props,t=e.x,r=e.y,i=e.width,o=e.height,s=e.orientation,a=e.mirror,l=e.axisLine,c=YYe(YYe(YYe({},GGe(this.props,!1)),GGe(l,!1)),{},{fill:"none"});if("top"===s||"bottom"===s){var u=+("top"===s&&!a||"bottom"===s&&a);c=YYe(YYe({},c),{},{x1:t,y1:r+u*o,x2:t+i,y2:r+u*o})}else{var d=+("left"===s&&!a||"right"===s&&a);c=YYe(YYe({},c),{},{x1:t+d*i,y1:r,x2:t+d*i,y2:r+o})}return n.createElement("line",qYe({},c,{className:UIe("recharts-cartesian-axis-line",RIe()(l,"className"))}))}},{key:"renderTicks",value:function(e,t,r){var i=this,o=this.props,a=o.tickLine,l=o.stroke,c=o.tick,u=o.tickFormatter,d=o.unit,h=zYe(YYe(YYe({},this.props),{},{ticks:e}),t,r),p=this.getTickTextAnchor(),f=this.getTickVerticalAnchor(),g=GGe(this.props,!1),m=GGe(c,!1),y=YYe(YYe({},g),{},{fill:"none"},GGe(a,!1)),v=h.map((function(e,t){var r=i.getTickLineCoord(e),o=r.line,v=r.tick,_=YYe(YYe(YYe(YYe({textAnchor:p,verticalAnchor:f},g),{},{stroke:"none",fill:l},m),v),{},{index:t,payload:e,visibleTicksCount:h.length,tickFormatter:u});return n.createElement(BGe,qYe({className:"recharts-cartesian-axis-tick",key:"tick-".concat(e.value,"-").concat(e.coordinate,"-").concat(e.tickCoord)},mGe(i.props,e,t)),a&&n.createElement("line",qYe({},y,o,{className:UIe("recharts-cartesian-axis-tick-line",RIe()(a,"className"))})),c&&s.renderTickItem(c,_,"".concat(GIe()(u)?u(e.value,t):e.value).concat(d||"")))}));return n.createElement("g",{className:"recharts-cartesian-axis-ticks"},v)}},{key:"render",value:function(){var e=this,t=this.props,r=t.axisLine,i=t.width,o=t.height,s=t.ticksGenerator,a=t.className;if(t.hide)return null;var l=this.props,c=l.ticks,u=KYe(l,WYe),d=c;return GIe()(s)&&(d=c&&c.length>0?s(this.props):s(u)),i<=0||o<=0||!d||!d.length?null:n.createElement(BGe,{className:UIe("recharts-cartesian-axis",a),ref:function(t){e.layerReference=t}},r&&this.renderAxisLine(),this.renderTicks(d,this.state.fontSize,this.state.letterSpacing),IWe.renderCallByParent(this.props))}}],i=[{key:"renderTickItem",value:function(e,t,r){return n.isValidElement(e)?n.cloneElement(e,t):GIe()(e)?e(t):n.createElement(hNe,qYe({},t,{className:"recharts-cartesian-axis-tick-value"}),r)}}],r&&ZYe(t.prototype,r),i&&ZYe(t,i),Object.defineProperty(t,"prototype",{writable:!1}),s}(n.Component);function rKe(){return rKe=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},rKe.apply(this,arguments)}eKe(nKe,"displayName","CartesianAxis"),eKe(nKe,"defaultProps",{x:0,y:0,width:0,height:0,viewBox:{x:0,y:0,width:0,height:0},orientation:"bottom",ticks:[],stroke:"#666",tickLine:!0,axisLine:!0,tick:!0,mirror:!1,minTickGap:5,tickSize:6,tickMargin:2,interval:"preserveEnd"});var iKe=function(e){var t=e.xAxisId,r=Rqe(),i=Dqe(),o=Mqe(t);return null==o?null:n.createElement(nKe,rKe({},o,{className:UIe("recharts-".concat(o.axisType," ").concat(o.axisType),o.className),viewBox:{x:0,y:0,width:r,height:i},ticksGenerator:function(e){return xUe(e,!0)}}))};function oKe(){return oKe=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},oKe.apply(this,arguments)}iKe.displayName="XAxis",iKe.defaultProps={allowDecimals:!0,hide:!1,orientation:"bottom",width:0,height:30,mirror:!1,xAxisId:0,tickCount:5,type:"category",padding:{left:0,right:0},allowDataOverflow:!1,scale:"auto",reversed:!1,allowDuplicatedCategory:!0};var sKe=function(e){var t=e.yAxisId,r=Rqe(),i=Dqe(),o=Oqe(t);return null==o?null:n.createElement(nKe,oKe({},o,{className:UIe("recharts-".concat(o.axisType," ").concat(o.axisType),o.className),viewBox:{x:0,y:0,width:r,height:i},ticksGenerator:function(e){return xUe(e,!0)}}))};sKe.displayName="YAxis",sKe.defaultProps={allowDuplicatedCategory:!0,allowDecimals:!0,hide:!1,orientation:"left",width:60,height:0,mirror:!1,yAxisId:0,tickCount:5,type:"number",padding:{top:0,bottom:0},allowDataOverflow:!1,scale:"auto",reversed:!1};var aKe=OYe({chartName:"BarChart",GraphicalChild:rqe,defaultTooltipEventType:"axis",validateTooltipEventTypes:["axis","item"],axisComponents:[{axisType:"xAxis",AxisComp:iKe},{axisType:"yAxis",AxisComp:sKe}],formatAxisMap:uqe});function lKe(e){return lKe="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},lKe(e)}function cKe(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function uKe(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?cKe(Object(n),!0).forEach((function(t){dKe(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):cKe(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function dKe(e,t,n){return(t=function(e){var t=function(e,t){if("object"!==lKe(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==lKe(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===lKe(t)?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function hKe(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,i,o,s,a=[],l=!0,c=!1;try{if(o=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;l=!1}else for(;!(l=(r=o.call(n)).done)&&(a.push(r.value),a.length!==t);l=!0);}catch(e){c=!0,i=e}finally{try{if(!l&&null!=n.return&&(s=n.return(),Object(s)!==s))return}finally{if(c)throw i}}return a}}(e,t)||function(e,t){if(!e)return;if("string"===typeof e)return pKe(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return pKe(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function pKe(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var fKe=(0,n.forwardRef)((function(e,t){var r=e.aspect,i=e.initialDimension,o=void 0===i?{width:-1,height:-1}:i,s=e.width,a=void 0===s?"100%":s,l=e.height,c=void 0===l?"100%":l,u=e.minWidth,d=void 0===u?0:u,h=e.minHeight,p=e.maxHeight,f=e.children,g=e.debounce,m=void 0===g?0:g,y=e.id,v=e.className,_=e.onResize,b=e.style,x=void 0===b?{}:b,S=(0,n.useRef)(null),w=(0,n.useRef)();w.current=_,(0,n.useImperativeHandle)(t,(function(){return Object.assign(S.current,{get current(){return console.warn("The usage of ref.current.current is deprecated and will no longer be supported."),S.current}})}));var E=hKe((0,n.useState)({containerWidth:o.width,containerHeight:o.height}),2),P=E[0],C=E[1],A=(0,n.useCallback)((function(e,t){C((function(n){var r=Math.round(e),i=Math.round(t);return n.containerWidth===r&&n.containerHeight===i?n:{containerWidth:r,containerHeight:i}}))}),[]);(0,n.useEffect)((function(){var e=function(e){var t,n=e[0].contentRect,r=n.width,i=n.height;A(r,i),null===(t=w.current)||void 0===t||t.call(w,r,i)};m>0&&(e=XX()(e,m,{trailing:!0,leading:!1}));var t=new ResizeObserver(e),n=S.current.getBoundingClientRect(),r=n.width,i=n.height;return A(r,i),t.observe(S.current),function(){t.disconnect()}}),[A,m]);var k=(0,n.useMemo)((function(){var e=P.containerWidth,t=P.containerHeight;if(e<0||t<0)return null;GOe(eGe(a)||eGe(c),"The width(%s) and height(%s) are both fixed numbers,\n       maybe you don't need to use a ResponsiveContainer.",a,c),GOe(!r||r>0,"The aspect(%s) must be greater than zero.",r);var i=eGe(a)?e:a,o=eGe(c)?t:c;r&&r>0&&(i?o=i/r:o&&(i=o*r),p&&o>p&&(o=p)),GOe(i>0||o>0,"The width(%s) and height(%s) of chart should be greater than 0,\n       please check the style of container, or the props width(%s) and height(%s),\n       or add a minWidth(%s) or minHeight(%s) or use aspect(%s) to control the\n       height and width.",i,o,a,c,d,h,r);var s=!Array.isArray(f)&&(0,YIe.isElement)(f)&&SGe(f.type).endsWith("Chart");return n.Children.map(f,(function(e){return(0,YIe.isElement)(e)?(0,n.cloneElement)(e,uKe({width:i,height:o},s?{style:uKe({height:"100%",width:"100%",maxHeight:o,maxWidth:i},e.props.style)}:{})):e}))}),[r,f,c,p,h,d,P,a]);return n.createElement("div",{id:y?"".concat(y):void 0,className:UIe("recharts-responsive-container",v),style:uKe(uKe({},x),{},{width:a,height:c,minWidth:d,minHeight:h,maxHeight:p}),ref:S},k)}));const gKe=e=>{let{children:t,height:n}=e;return(0,Ae.jsx)(fKe,{height:"".concat(null!==n&&void 0!==n?n:"100","%"),children:t})},mKe=["#0000ff","#0003ff","#0006ff","#000aff","#000dff","#0010ff","#0013ff","#0016ff","#001aff","#001dff","#0020ff","#0023ff","#0026ff","#002aff","#002dff","#0030ff","#0033ff","#0036ff","#003aff","#003dff","#0040ff","#0043ff","#0046ff","#0049ff","#004dff","#0050ff","#0053ff","#0056ff","#0059ff","#005dff","#0060ff","#0063ff","#0066ff","#0069ff","#006dff","#0070ff","#0073ff","#0076ff","#0079ff","#007dff","#0080ff","#0083ff","#0086ff","#0089ff","#008dff","#0090ff","#0093ff","#0096ff","#0099ff","#009dff","#00a0ff","#00a3ff","#00a6ff","#00a9ff","#00adff","#00b0ff","#00b3ff","#00b6ff","#00b9ff","#00bdff","#00c0ff","#00c3ff","#00c6ff","#00c9ff","#00cdff","#00d0ff","#00d3ff","#00d6ff","#00d9ff","#00dcff","#00e0ff","#00e3ff","#00e6ff","#00e9ff","#00ecff","#00f0ff","#00f3ff","#00f6ff","#00f9ff","#00fcff","#00fefe","#02fcfc","#05f9f9","#07f6f6","#09f4f4","#0bf1f1","#0deeee","#0fecec","#11e9e9","#13e6e6","#15e4e4","#17e1e1","#19dede","#1bdcdc","#1dd9d9","#1fd6d6","#21d4d4","#24d1d1","#26cece","#28cccc","#2ac9c9","#2cc6c6","#2ec4c4","#30c1c1","#32bebe","#34bcbc","#36b9b9","#38b6b6","#3ab4b4","#3cb1b1","#3eaeae","#41acac","#43a9a9","#45a6a6","#47a4a4","#49a1a1","#4b9e9e","#4d9c9c","#4f9999","#519696","#539494","#559191","#578e8e","#598c8c","#5b8989","#5d8686","#608484","#628181","#647e7e","#667c7c","#687979","#6a7676","#6c7474","#6e7171","#706e6e","#726c6c","#746969","#766666","#786464","#7a6161","#7c5e5e","#7f5c5c","#815959","#835656","#855454","#875151","#894e4e","#8b4c4c","#8d4949","#8f4646","#914444","#934141","#953e3e","#973c3c","#993939","#9b3636","#9e3434","#a03131","#a22e2e","#a42c2c","#a52b2a","#a72c29","#a82e29","#a92f28","#aa3128","#ab3227","#ac3427","#ad3526","#ae3726","#b03825","#b13a25","#b23c24","#b33d23","#b43f23","#b54022","#b64222","#b74321","#b94521","#ba4620","#bb4820","#bc491f","#bd4b1f","#be4d1e","#bf4e1e","#c1501d","#c2511d","#c3531c","#c4541c","#c5561b","#c6571b","#c7591a","#c85a19","#ca5c19","#cb5d18","#cc5f18","#cd6117","#ce6217","#cf6416","#d06516","#d16715","#d36815","#d46a14","#d56b14","#d66d13","#d76e13","#d87012","#d97212","#da7311","#dc7511","#dd7610","#de780f","#df790f","#e07b0e","#e17c0e","#e27e0d","#e37f0d","#e5810c","#e6820c","#e7840b","#e8860b","#e9870a","#ea890a","#eb8a09","#ed8c09","#ee8d08","#ef8f08","#f09007","#f19207","#f29306","#f39505","#f49705","#f69804","#f79a04","#f89b03","#f99d03","#fa9e02","#fba002","#fca101","#fda301","#ffa400","#ffa600","#ffa700","#ffa800","#ffa900","#ffaa00","#ffab00","#ffac00","#ffae00","#ffaf00","#ffb000","#ffb100","#ffb200","#ffb300","#ffb400","#ffb500","#ffb700","#ffb800","#ffb900","#ffba00","#ffbb00","#ffbc00","#ffbd00","#ffbe00","#ffc000","#ffc100","#ffc200","#ffc300","#ffc400","#ffc500","#ffc600","#ffc800","#ffc900","#ffca00","#ffcb00","#ffcc00","#ffcd00","#ffce00","#ffcf00","#ffd100","#ffd200","#ffd300","#ffd400","#ffd500","#ffd600","#ffd700","#ffd800","#ffda00","#ffdb00","#ffdc00","#ffdd00","#ffde00","#ffdf00","#ffe000","#ffe100","#ffe300","#ffe400","#ffe500","#ffe600","#ffe700","#ffe800","#ffe900","#ffea00","#ffec00","#ffed00","#ffee00","#ffef00","#fff000","#fff100","#fff200","#fff300","#fff500","#fff600","#fff700","#fff800","#fff900","#fffa00","#fffb00","#fffd00","#fffe00","#ffff00","#ffff03","#ffff06","#ffff09","#ffff0c","#ffff0f","#ffff13","#ffff16","#ffff19","#ffff1c","#ffff1f","#ffff23","#ffff26","#ffff29","#ffff2c","#ffff2f","#ffff32","#ffff36","#ffff39","#ffff3c","#ffff3f","#ffff42","#ffff46","#ffff49","#ffff4c","#ffff4f","#ffff52","#ffff56","#ffff59","#ffff5c","#ffff5f","#ffff62","#ffff66","#ffff69","#ffff6c","#ffff6f","#ffff72","#ffff76","#ffff79","#ffff7c","#ffff7f","#ffff82","#ffff86","#ffff89","#ffff8c","#ffff8f","#ffff92","#ffff96","#ffff99","#ffff9c","#ffff9f","#ffffa2","#ffffa6","#ffffa9","#ffffac","#ffffaf","#ffffb2","#ffffb6","#ffffb9","#ffffbc","#ffffbf","#ffffc2","#ffffc5","#ffffc9","#ffffcc","#ffffcf","#ffffd2","#ffffd5","#ffffd9","#ffffdc","#ffffdf","#ffffe2","#ffffe5","#ffffe9","#ffffec","#ffffef","#fffff2","#fffff5","#fffff9","#fffffc","#ffffff"];let yKe=function(e){return e.DEFECT_TYPE="DEFECT_TYPE",e.DELTA_TEMP="DELTA_TEMP",e.SEVERITY="SEVERITY",e}({}),vKe=function(e){return e.HOTSPOT="firebrick",e.DIRT="lightgrey",e.SHADOW="grey",e["DIODE ISSUE"]="navy",e.CRACKED="firebrick",e.VEGETATION="forestgreen",e.DISCONNECTED="seagreen",e}({});const _Ke=function(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return e.filter((e=>{let{type:t}=e;return GU(t)!==PL.DISCONNECTED})).reduce(((e,n)=>{var r,i,o,s,a,l;const c={coordinates:[],maxCelcius:null!==(r=null===(i=n.thermalStats)||void 0===i?void 0:i.max)&&void 0!==r?r:0,meanCelcius:null!==(o=null===(s=n.thermalStats)||void 0===s?void 0:s.mean)&&void 0!==o?o:0,minCelcius:null!==(a=null===(l=n.thermalStats)||void 0===l?void 0:l.min)&&void 0!==a?a:0},u=Math.round((e=>Ly(e.maxCelcius-e.meanCelcius,1))(c)),d=Math.floor(u/10),h=t?e.findIndex((e=>e.ten===d)):e.findIndex((e=>e.key===u));return-1===h?(e.push({key:u,ten:d,columnName:t?SKe(d):"".concat(u,"\xb0C"),count:1}),e):(e[h].count+=1,e)}),[]).filter((e=>{let{key:t}=e;return t>0})).sort(((e,t)=>Number(e.key)-Number(t.key)))},bKe=(e,t)=>{const n=e.reduce(((e,t)=>e+t.annotations.length),0);return e.reduce(((e,r)=>{const i=r.annotations.length,o=e.findIndex((e=>{let{key:t}=e;return t===r.severity}));return-1===o?e.push({key:r.severity,columnName:"".concat(t," ").concat(null===r||void 0===r?void 0:r.severity),count:i,percentage:"".concat(Math.round(100*i/n)," %")}):(e[o].count+=i,e[o].percentage="".concat(Math.round(100*e[o].count/n)," %")),e}),[]).sort(((e,t)=>Number(e.key)-Number(t.key)))},xKe=e=>{const t=e.reduce(((e,t)=>e+t.annotations.length),0);return e.reduce(((e,n)=>{const r=null===n||void 0===n?void 0:n.type,i=e.findIndex((e=>{let{key:t}=e;return t===r})),o=n.annotations.length;return-1===i?e.push({key:r,columnName:r,count:o,percentage:"".concat(Math.round(100*o/t)," %")}):(e[i].count+=o,e[i].percentage="".concat(Math.round(100*e[i].count/t)," %")),e}),[])},SKe=e=>{const t=10*e;return"".concat(t,"\xb0C - ").concat(t+10,"\xb0C")},wKe=e=>{let{defectType:t}=e;if(!t)return"";const n=vKe[t.name];if(n)return n;const r=Object.values(vKe);return r[t.index%r.length]},EKe=e=>{let{deltaTemperature:t}=e;if(!t)return"";const n=.5*mKe.length,r=Math.max(1,t.max),i=Math.floor(t.current*n/r);return mKe[i]},PKe=e=>{var t;let{severityNumber:n}=e;return n&&null!==(t=Kp[n])&&void 0!==t?t:""},CKe=e=>{let{defects:t,vertical:r,showPercentage:i,containerHeight:o,yAxisDomainPercentMargin:s,axisFontSize:a}=e;const l=xKe(t),c=Math.max(...l.map((e=>e.count))),u=(0,n.useMemo)((()=>{switch(s){case"small":return.1;case"medium":return.2;default:return 0}}),[s]);return 0===l.length?(0,Ae.jsx)(vj,{alignItems:"center",children:(0,Ae.jsx)(vu,{color:Rp,fontWeight:"bold",fontSize:"1.5rem",children:"N/A"})}):(0,Ae.jsx)(gKe,{height:o,children:(0,Ae.jsxs)(aKe,{data:l,layout:r?"vertical":"horizontal",children:[(0,Ae.jsx)(iKe,{type:r?"number":"category",dataKey:r?"count":"columnName",style:{fontSize:a}}),(0,Ae.jsx)(sKe,{type:r?"category":"number",dataKey:r?"columnName":"count",domain:[0,c+Math.max(Math.round(c*u),1)],tickCount:c<10?1:4,style:{fontSize:a}}),(0,Ae.jsx)(IOe,{}),(0,Ae.jsxs)(rqe,{dataKey:"count",children:[i&&(0,Ae.jsx)(KWe,{dataKey:"percentage",position:"top"}),l.map(((e,t)=>(0,Ae.jsx)(RWe,{fill:wKe({defectType:{name:e.key.toString(),index:t}})},"severity-".concat(t))))]})]})})},AKe=e=>{var t,r;let{annotations:i,containerHeight:o,axisFontSize:s}=e;const a=(0,n.useMemo)((()=>_Ke(null!==i&&void 0!==i?i:[])),[i]),l=Number(null!==(t=null===(r=a[a.length-1])||void 0===r?void 0:r.key)&&void 0!==t?t:0),c=Math.max(...a.map((e=>e.count)));return 0===i.length?(0,Ae.jsx)(vj,{alignItems:"center",children:(0,Ae.jsx)(vu,{color:Rp,fontWeight:"bold",fontSize:"1.5rem",children:"N/A"})}):(0,Ae.jsx)(gKe,{height:o,children:(0,Ae.jsxs)(aKe,{data:a,children:[(0,Ae.jsx)(sKe,{type:"number",style:{fontSize:s},domain:[0,c],tickCount:c<10?1:4}),(0,Ae.jsx)(iKe,{type:"category",dataKey:"columnName",style:{fontSize:s}}),(0,Ae.jsx)(IOe,{}),(0,Ae.jsx)(rqe,{dataKey:"count",children:a.map(((e,t)=>(0,Ae.jsx)(RWe,{fill:EKe({deltaTemperature:{current:Number(e.key),max:l}})},"severity-".concat(t))))})]})})},kKe=e=>{let{defects:t,columnName:r,vertical:i,showPercentage:o,yAxisDomainPercentMargin:s,axisFontSize:a,containerHeight:l}=e;const c=bKe(t,r),u=Math.max(...c.map((e=>e.count))),d=(0,n.useMemo)((()=>{switch(s){case"small":return.1;case"medium":return.2;default:return 0}}),[s]);return 0===t.length?(0,Ae.jsx)(vj,{alignItems:"center",children:(0,Ae.jsx)(vu,{color:Rp,fontWeight:"bold",fontSize:"1.5rem",children:"N/A"})}):(0,Ae.jsx)(gKe,{height:l,children:(0,Ae.jsxs)(aKe,{data:c,layout:i?"vertical":"horizontal",children:[(0,Ae.jsx)(sKe,{type:i?"category":"number",dataKey:i?"columnName":"count",domain:[0,u+Math.max(Math.round(u*d),1)],tickCount:u<10?1:4,style:{fontSize:a}}),(0,Ae.jsx)(iKe,{type:i?"number":"category",dataKey:i?"count":"columnName",style:{fontSize:a}}),(0,Ae.jsx)(IOe,{}),(0,Ae.jsxs)(rqe,{dataKey:"count",children:[o&&(0,Ae.jsx)(KWe,{dataKey:"percentage",position:"top"}),c.map(((e,t)=>(0,Ae.jsx)(RWe,{fill:PKe({severityNumber:Number(e.key)})},"severity-".concat(t))))]})]})})},jKe=Object.freeze({[yKe.DEFECT_TYPE]:{property:"defects",statsFn:xKe,colorFn:wKe},[yKe.DELTA_TEMP]:{property:"annotations",statsFn:e=>_Ke(e,!0),colorFn:EKe},[yKe.SEVERITY]:{property:"defects",statsFn:bKe,colorFn:PKe}}),IKe=e=>{const{dataPerSubAssets:t,selectedSubAssets:r}=(0,n.useContext)(Ije),[i,o]=(0,n.useState)([]),[s,a]=(0,n.useState)([]),{property:l,statsFn:c,colorFn:u}=jKe[e.type];(0,n.useEffect)((()=>{if(!t||!r)return;const e=r.map((e=>{let{id:t}=e;return t})),n=t.filter((t=>{let{id:n}=t;return e.includes(n)})).map((e=>{var t;const n=e.defects.flatMap((e=>e.annotations.map((e=>{let{annotationRef:t}=e;return t})))),r={...e,annotations:e.annotations.filter((e=>n.includes(e.fileName)))};return{key:r.id,columnName:r.name,...c(null!==(t=r[l])&&void 0!==t?t:[],"Severity").reduce(((e,t)=>({...e,[t.columnName]:t.count})),{})}})),i=d(n);a(i),o(n)}),[r,t]);const d=e=>{const t=e.flatMap((e=>Object.keys(e).filter((e=>!["key","columnName"].includes(e)))));return[...new Set(t)]};return(0,Ae.jsx)(gKe,{children:(0,Ae.jsxs)(aKe,{data:i,layout:"vertical",children:[(0,Ae.jsx)(iKe,{type:"number"}),(0,Ae.jsx)(sKe,{type:"category",dataKey:"columnName"}),(0,Ae.jsx)(IOe,{}),s.map(((e,t)=>(0,Ae.jsx)(rqe,{dataKey:e,stackId:"a",maxBarSize:40,children:r.map((n=>{var r;let{name:i}=n;return(0,Ae.jsx)(RWe,{fill:u({defectType:{name:e,index:t},severityNumber:Number(null===(r=e.split("Severity "))||void 0===r?void 0:r[1]),deltaTemperature:{current:t,max:s.length-1}})},"subasset-".concat(i))}))},"bar-".concat(e))))]})})},GKe=Zo()((()=>({chartCard:{padding:"0.5rem",height:"100%"},chartTitle:{color:"black"}}))),TKe=e=>{const{classes:t}=GKe(),{areAnnotationsLoading:r,areDefectsLoading:i}=e,{subAssets:o}=(0,n.useContext)(Ije),{annotations:s,defects:a}=(0,n.useContext)(Ije),l=o.length>1,c="10rem",u="15rem",d=(0,n.useMemo)((()=>{var e;if(!a)return[];const t=a.flatMap((e=>{let{annotations:t}=e;return t.map((e=>e.annotationRef))}));return null!==(e=null===s||void 0===s?void 0:s.filter((e=>{let{fileName:n}=e;return t.includes(n)})))&&void 0!==e?e:[]}),[a,s]);return(0,Ae.jsxs)(ws,{container:!0,height:"100%",spacing:1,direction:"column",wrap:"nowrap",children:[(0,Ae.jsxs)(ws,{item:!0,container:!0,direction:"column",flex:1,children:[(0,Ae.jsx)(ws,{item:!0,children:(0,Ae.jsx)("h3",{className:t.chartTitle,children:"Breakdown by type"})}),(0,Ae.jsx)(ws,{item:!0,container:!0,flex:1,children:i?(0,Ae.jsx)(wp,{margin:"auto",children:(0,Ae.jsx)($y,{})}):(0,Ae.jsxs)(ws,{item:!0,container:!0,gap:"0.5rem",children:[(0,Ae.jsx)(ws,{item:!0,flex:1,minHeight:c,minWidth:u,children:(0,Ae.jsx)(hj,{className:t.chartCard,children:(0,Ae.jsx)(CKe,{defects:a,vertical:!0})})}),l&&(0,Ae.jsx)(ws,{item:!0,flex:1,minHeight:c,minWidth:u,children:(0,Ae.jsx)(hj,{className:t.chartCard,children:(0,Ae.jsx)(IKe,{type:yKe.DEFECT_TYPE})})})]})})]}),(0,Ae.jsxs)(ws,{item:!0,container:!0,direction:"column",flex:1,children:[(0,Ae.jsx)(ws,{item:!0,children:(0,Ae.jsx)("h3",{className:t.chartTitle,children:"Breakdown by temperature delta"})}),(0,Ae.jsx)(ws,{item:!0,container:!0,flex:1,children:r?(0,Ae.jsx)(wp,{margin:"auto",children:(0,Ae.jsx)($y,{})}):(0,Ae.jsxs)(ws,{item:!0,container:!0,gap:"0.5rem",children:[(0,Ae.jsx)(ws,{item:!0,flex:1,minHeight:c,minWidth:u,children:(0,Ae.jsx)(hj,{className:t.chartCard,children:(0,Ae.jsx)(AKe,{annotations:d})})}),l&&(0,Ae.jsx)(ws,{item:!0,flex:1,minHeight:c,minWidth:u,children:(0,Ae.jsx)(hj,{className:t.chartCard,children:(0,Ae.jsx)(IKe,{type:yKe.DELTA_TEMP})})})]})})]}),(0,Ae.jsxs)(ws,{item:!0,container:!0,direction:"column",flex:1,children:[(0,Ae.jsx)(ws,{item:!0,children:(0,Ae.jsx)("h3",{className:t.chartTitle,children:"Breakdown by severity"})}),(0,Ae.jsx)(ws,{item:!0,container:!0,flex:1,children:i?(0,Ae.jsx)(wp,{margin:"auto",children:(0,Ae.jsx)($y,{})}):(0,Ae.jsxs)(ws,{item:!0,container:!0,gap:"0.5rem",children:[(0,Ae.jsx)(ws,{item:!0,flex:1,minHeight:c,minWidth:u,children:(0,Ae.jsx)(hj,{className:t.chartCard,children:(0,Ae.jsx)(kKe,{defects:a,columnName:"Severity"})})}),l&&(0,Ae.jsx)(ws,{item:!0,flex:1,minHeight:c,minWidth:u,children:(0,Ae.jsx)(hj,{className:t.chartCard,children:(0,Ae.jsx)(IKe,{type:yKe.SEVERITY})})})]})})]})]})},MKe=Zo()((()=>({alert:{flexGrow:1,alignItems:"center",fontSize:18}}))),OKe=e=>{var t;const{classes:r}=MKe(),{dataPerSubAssets:i}=(0,n.useContext)(Ije),{areDefectsLoading:o}=e,[s,a]=(0,n.useState)(),l=(null!==i&&void 0!==i?i:[]).flatMap((e=>{let{defects:t}=e;return t})),c=l.length,u=(0,n.useMemo)((()=>l.flatMap((e=>{let{annotations:t}=e;return t})).length),[l]),d=l.filter((e=>{var t;return"closed"===(null===e||void 0===e||null===(t=e.state)||void 0===t?void 0:t.status)})).length,h={HOTSPOT:.1,DIRT:.2,SHADOW:.2,DIODE_ISSUE:.33,CRACKED:.2,VEGETATION:.2,DISCONNECTED:1,JB:.001},p={PM060PW1:270,PM060P00:250,"Astro CHSM72M-HC550":450,"DM350P1-72HSW":350,"DMH360P6-144SW":345,"E20-327-COM":327,"FS-4117A-3":117,"FS-6435A":435,"JAM72S01 365-385/PR":365,JLS60P255W:255,"NA-E135L5":135,STP280:280,"SUNTECH STP535S":535,"Sunmodule Plus SW 260":260,"TSM-290PE06H":290,"LR4-72HPH 440":440},f=(0,n.useMemo)((()=>(e=>{const t=e.flatMap((e=>{let{inspections:t}=e;return t}));return[...new Set(t.map((e=>e.id)))]})(null!==i&&void 0!==i?i:[])),[i]);(0,n.useEffect)((()=>{(e=>{const t=e.map((e=>{let{model:t}=e;return t}));a(t[0]),new Set(t.filter((e=>void 0!==e)).map((e=>e)))})(null!==i&&void 0!==i?i:[])}),[i]);const g=e=>{if(!s)return 0;const t=.8*p[s],n=e.reduce(((e,n)=>{var r;const{type:i}=n;if("closed"===(null===(r=n.state)||void 0===r?void 0:r.status))return e;if(void 0===h[i])return e;return e+h[i]*t}),0);return Math.round(n)};return(0,Ae.jsxs)(wp,{display:"flex",flexDirection:"column",rowGap:"0.5rem",children:[(0,Ae.jsx)("h2",{children:"Key metrics"}),o?(0,Ae.jsx)($y,{}):(0,Ae.jsxs)(wp,{display:"flex",columnGap:"0.5rem",children:[(0,Ae.jsxs)(pM,{className:r.alert,variant:"filled",severity:"info",children:["".concat(null!==c&&void 0!==c?c:0," ").concat(wq("defect",c)),(0,Ae.jsx)("br",{}),"".concat(u," ").concat(wq("module",u)," impacted ")]}),(0,Ae.jsx)(pM,{className:r.alert,variant:"filled",severity:"success",children:"".concat(null!==d&&void 0!==d?d:0," resolved")}),(f.includes("fJW0qHy02oEwPjXaEpHn")||f.includes("Vsek5AouMMP1mQ9lyagJ")||f.includes("VW24JyNOAojNi3VNpqBk")||f.includes("V0AGhGxmleANAPKStaui"))&&s&&!isNaN(g(l))&&(0,Ae.jsx)(cu,{title:"Estimated production loss is calculated based on the NOCT power of the panel and the factor of production loss for each defect.",children:(0,Ae.jsx)(pM,{variant:"filled",severity:"warning",className:r.alert,children:"(BETA) ".concat(null!==(t=g(l))&&void 0!==t?t:0," Wh estimated prod loss")})})]})]})},RKe=Zo()((()=>({commentContainer:{margin:".25rem 0",display:"flex",columnGap:".5rem",color:"black","& p":{textAlign:"justify"}}}))),DKe=e=>{const{classes:t}=RKe(),n=e.inspections.filter((e=>{var t,n;return(null===e||void 0===e||null===(t=e.inspectionDates)||void 0===t?void 0:t.inspected)&&(null===(n=e.reviews)||void 0===n?void 0:n.subAsset)}));return 0===n.length?(0,Ae.jsx)("p",{children:"No conclusion"}):(0,Ae.jsx)(Ae.Fragment,{children:n.map(((e,n)=>{var r,i,o;return(0,Ae.jsxs)("div",{className:t.commentContainer,children:[(0,Ae.jsx)("b",{children:null===e||void 0===e||null===(r=e.subAsset)||void 0===r?void 0:r.name}),(0,Ae.jsxs)("i",{children:[Iy(null===e||void 0===e||null===(i=e.inspectionDates)||void 0===i?void 0:i.inspected),": "]}),(0,Ae.jsx)("p",{children:null===(o=e.reviews)||void 0===o?void 0:o.subAsset})]},"comment-".concat(n))}))})},NKe=bp(),LKe=e=>{let{children:t,context:n}=e;return(0,Ae.jsx)(Ije.Provider,{value:n,children:t})},VKe=Zo()((()=>({root:{height:"100%",backgroundColor:Dp},left:{height:"100%",display:"flex",flexDirection:"column",padding:Wy()?0:"0 0.5rem"},remainingSpace:{height:"100%",padding:"0.5rem"},metricsContainer:{padding:"0 .5rem"},conclusionContainer:{minHeight:"20%",margin:"0.25rem 0.5rem",padding:"0 0.5rem",border:"1px solid",overflow:"auto"},right:{height:"100%",display:"flex",flexDirection:"column",padding:"0 1rem"},statsTitle:{display:"flex",alignItems:"center",width:"100%",columnGap:"0.5rem",height:"fit-content",minHeight:"3rem"}}))),FKe=()=>{const{classes:e}=VKe(),t=(0,n.useContext)(Ije),{internal:r,inspections:i,campaign:o,annotations:s,defects:a,subAssets:l,fetchStatus:c}=t,[u,d]=(0,n.useState)([]),[h,p]=(0,n.useState)([]),[f,g]=(0,n.useState)([]),[m,y]=(0,n.useState)([]),[v,_]=(0,n.useState)([]),b=null==o;(0,n.useEffect)((()=>{x();const e=l.map((e=>{const t=e.id;return{id:t,name:e.name,inspections:i.filter((e=>{var n;return(null===e||void 0===e||null===(n=e.subAsset)||void 0===n?void 0:n.id)===t})),annotations:s.filter((e=>S(null===e||void 0===e?void 0:e.inspectionId,t))),defects:a.filter((e=>S(null===e||void 0===e?void 0:e.inspectionId,t))),model:e.model}}));p(e)}),[l,i,s,a]);const x=()=>{g(i),_(a),y(s)};(0,n.useEffect)((()=>{if(0===u.length)return void x();const e=h.filter((e=>{let{id:t}=e;return u.includes(t)}));g(e.flatMap((e=>{let{inspections:t}=e;return t}))),_(e.flatMap((e=>{let{defects:t}=e;return t}))),y(e.flatMap((e=>{let{annotations:t}=e;return t})))}),[u]);const S=(e,t)=>{var n;if(!e||!t)return!1;const r=i.find((t=>{let{id:n}=t;return n===e}));return(null===r||void 0===r||null===(n=r.subAsset)||void 0===n?void 0:n.id)===t},w=0===u.length?l:l.filter((e=>{let{id:t}=e;return u.includes(t)})),E={...t,selectedSubAssets:w,inspections:f,annotations:m,allAnnotations:s,defects:v,allDefects:a,dataPerSubAssets:h,fetchStatus:c},P=1===l.length,C=P?5:4,A=P?7:8,k=w.map((e=>{let{name:t}=e;return t})),j=w.length>1?"subassets":"subasset",I="Statistics for ".concat(j," ").concat(xq(k)),G=w.length>0&&w.length<l.length,T=(0,n.useMemo)((()=>!!c&&c.defectData!==OEe.FETCHED),[c]),M=(0,n.useMemo)((()=>!!c&&c.annotationData!==OEe.FETCHED),[c]);return(0,Ae.jsx)(LKe,{context:E,children:(0,Ae.jsxs)(ws,{container:!0,className:e.root,children:[(0,Ae.jsxs)(ws,{item:!0,xs:12,lg:C,className:e.left,children:[(0,Ae.jsx)(NKe,{padding:"0.5rem",children:(0,Ae.jsx)("h2",{children:"Site map"})}),(0,Ae.jsx)(AIe,{onSubassetSelectionsChanged:e=>{d(e)}}),(0,Ae.jsx)("div",{className:e.metricsContainer,children:(0,Ae.jsx)(OKe,{areDefectsLoading:T})}),(0,Ae.jsx)("div",{className:e.conclusionContainer,children:(0,Ae.jsx)(DKe,{inspections:i})}),r&&(0,Ae.jsx)(NKe,{padding:"0.5rem",children:(0,Ae.jsx)(Cje,{type:kC.CAMPAIGN,document:b?i[0]:o})})]}),(0,Ae.jsxs)(ws,{item:!0,xs:12,lg:A,className:e.right,children:[(0,Ae.jsxs)("div",{className:e.statsTitle,children:[(0,Ae.jsx)("h2",{children:"Statistics"}),(0,Ae.jsx)(NKe,{width:"100%",children:G&&(0,Ae.jsx)(pM,{severity:"info",children:I})})]}),(0,Ae.jsx)(NKe,{height:"100%",children:(0,Ae.jsx)(TKe,{areDefectsLoading:T,areAnnotationsLoading:M})})]})]})})};var zKe=__webpack_require__(60400),BKe=__webpack_require__(78796),UKe=__webpack_require__(56840),WKe=__webpack_require__(37048),HKe=__webpack_require__(76208),qKe=__webpack_require__(22912);const XKe=()=>{const e=[{icon:(0,Ae.jsx)(zKe.c,{sx:{color:Vp}}),text:"Choose language"},{icon:(0,Ae.jsx)(BKe.c,{sx:{color:zp}}),text:"Filter by severity level"},{icon:(0,Ae.jsx)(UKe.c,{sx:{color:Np}}),text:"Filter by type of defect"},{icon:(0,Ae.jsx)(WKe.c,{sx:{color:Bp}}),text:"Limit to several temperature ranges (DeltaT\xb0 & MaxT\xb0)"},{icon:(0,Ae.jsx)(HKe.c,{sx:{color:jp}}),text:"Display details & photos for each defect"},{icon:(0,Ae.jsx)(qKe.c,{sx:{color:Fp}}),text:"Select only resolved or unresolved defects"}];return(0,Ae.jsx)(ZAe,{component:"SolarPdf",componentVersion:1,title:"New PDF report for solar inspections",children:(0,Ae.jsxs)(wp,{paddingX:1,children:[(0,Ae.jsx)(vu,{fontWeight:"bold",fontSize:"1.5rem",children:"New solar PDF is here!"}),(0,Ae.jsx)(vu,{fontSize:"1.25rem",children:"The new filters let you:"}),(0,Ae.jsx)(vj,{paddingLeft:2,marginTop:1.5,marginBottom:2,gap:.5,children:e.map(((e,t)=>(0,Ae.jsxs)(vj,{direction:"row",alignItems:"center",spacing:2,children:[e.icon,(0,Ae.jsx)(vu,{fontSize:"1.25rem",children:e.text})]},t)))}),(0,Ae.jsxs)(vj,{direction:"row",alignItems:"baseline",gap:1,children:[(0,Ae.jsx)(vu,{fontSize:"1.25rem",noWrap:!0,children:"Try it now by clicking on the"}),(0,Ae.jsx)(ev,{label:"Export",color:"success",frontIcon:(0,Ae.jsx)(tH.c,{}),style:{boxShadow:"none",cursor:"auto"}}),(0,Ae.jsx)(vu,{fontSize:"1.25rem",children:"button"})]}),(0,Ae.jsx)(vu,{fontSize:"1.25rem",children:"on the top right of this page!"})]})})},YKe=e=>{var t;const r=b(Nm),{resultsPageConfig:i,internal:o}=(0,n.useContext)(Ije),s=null!==r&&void 0!==r&&null!==(t=r.inspectionDates)&&void 0!==t&&t.planned?Iy(r.inspectionDates.planned):"";return r&&i?(0,Ae.jsxs)(Ae.Fragment,{children:[[Uje.MAP,Uje.LIST].includes(i.currentTab)?(0,Ae.jsx)(dIe,{title:r&&"".concat(r.asset.name," ").concat(r.subAsset.name," ").concat(s),defectId:e.defectId,openInAnalyze:e.openInAnalyze}):null,i.currentTab===Uje.STATS?(0,Ae.jsx)(FKe,{}):null,o&&(0,Ae.jsx)(XKe,{})]}):(0,Ae.jsx)(Ae.Fragment,{})},KKe=e=>{var t,r,i;const o=b(Nm),s=b(Wm),a=b(Um);if(!o)return(0,Ae.jsx)(Ae.Fragment,{});const l=(0,n.useContext)(NEe);if(!l)return(0,Ae.jsx)(Ae.Fragment,{});const{fetchStatus:c,fetchAnnotations:u,fetchDefects:d,fetchMobileData:h,fetchPhotoData:p,resultsPageConfig:f}=l,g=Zo()((()=>({root:{backgroundColor:"white",height:"100%"}}))),{classes:y}=g(),v=m(),_=on(),x=s.map((e=>({...e,inspectionId:null===o||void 0===o?void 0:o.id}))),S=a.map((e=>({...e,inspectionId:null===o||void 0===o?void 0:o.id})));(0,n.useEffect)((()=>{o.type===RC.SOLAR&&(p(o.id),h(o.id))}),[h,p,o.id,o.type]),(0,n.useEffect)((()=>{d(o.id),u(o.id,o.type)}),[u,d,o.id,o.type]);const w=(t,n)=>{if(o)if(n.ctrlKey||n.metaKey){const e=window.location.protocol+"//"+window.location.host,n="".concat(e,"/inspections/").concat(o.id,"/annotated/defect/").concat(t);window.open(n)}else v(Wg(t)),e.changePage(Pke.ANNOTATED),_.replace("/inspections/".concat(o.id,"/annotated/defect/").concat(t))},E=null!==o&&void 0!==o&&null!==(t=o.inspectionDates)&&void 0!==t&&t.planned?Iy(o.inspectionDates.planned):"",P=(0,n.useMemo)((()=>[RC.BLADES,RC.TOWER,RC.WIND].includes(o.type)&&c.photoData!==OEe.FETCHED),[c.photoData,o.type]);return(0,Ae.jsxs)(ws,{container:!0,className:y.root,direction:"column",wrap:"nowrap",children:[o.status!==OC.ANALYZED&&(0,Ae.jsx)(ws,{item:!0,padding:"0.5rem",children:(0,Ae.jsx)(pM,{severity:"warning",children:"The inspection has not been analyzed yet"})}),(0,Ae.jsxs)(ws,{item:!0,height:0,flex:1,children:[P&&(0,Ae.jsx)(qke,{text:"Loading results\u2026"}),(0,Ae.jsxs)(Ae.Fragment,{children:[(null===o||void 0===o?void 0:o.type)===RC.SOLAR&&(0,Ae.jsx)(LKe,{context:{internal:!0,inspections:[o],subAssets:[o.subAsset],selectedSubAssets:[o.subAsset],defects:x,annotations:S,resultsPageConfig:f,SkyVisorAnalysis:null!==(r=null===(i=o.subAsset)||void 0===i?void 0:i.SkyVisorAnalysis)&&void 0!==r&&r,fetchStatus:c},children:(0,Ae.jsx)(YKe,{defectId:e.defectId,openInAnalyze:w})}),(null===o||void 0===o?void 0:o.type)!==RC.SOLAR&&(0,Ae.jsx)(Fje,{internal:e.internal,title:"".concat(o.asset.name," ").concat(o.subAsset.name," ").concat(E),defectId:e.defectId,openInAnalyze:w})]})]})]})};var ZKe=__webpack_require__(76544),$Ke=__webpack_require__(16512);const JKe="en",QKe=Object.freeze({en:"English",fr:"French",de:"German",es:"Spanish"}),eZe=Object.freeze({firebrick:["LE EROSION","EROSION","LE TAPE EROSION","Errosion tape missing","Errosion tape damaged","Topcoat flaking","Gelcoat flaking","Coat flaking","Coat flaking","Coat damage","Coat defect"],lightgrey:["LE TAPE","LIGHTNING RECEPTOR DAMAGE","Transversal crack","Longitudinal crack","Circular crack","Scratch","Transverse crack","Crack","CRACKS"],grey:["LONGITUDINAL CRACKS ON LE BOND LINES","LS DAMAGE","COAT DAMAGE","TIP END DAMAGE","LAMINATE DAMAGE","BLADE COLLAR DAMAGE","VORTEX GENERATOR DAMAGE","SERRATION DAMAGE","OTHER ADD ON DAMAGE","SMT DAMAGE","Vortex generator missing","Vortex generator damaged","Crack location","Reticulated crack","Round crack","VORTEX/ADD-ONS"],navy:["OPEN BOND LINE IN TE","COAT CONTAMINATION/DIRT/DISCOLORATION","Serration damaged","Serration missing","Serration broken","Blowhole cavity","PAINT/COAT"],forestgreen:["PAINT DAMAGES","SHAPE FAULT","Tip","Spoiler","Bolt","Delamination"],seagreen:["45\xb0 CRACKS ON SURFACE (CUTTING FROM FACTORY)","TE BONDING LINE DAMAGE","LE BONDING LINE DAMAGE","Conspicuity","STRUCTURE/BODY"],"#4B6F44":["OTHER CRACKS ON SURFACE","MINOR CRACK","MAJOR CRACK"],"#004953":["PINHOLES","Lightning receptor"],"#58111A":["BLADES WITH HYDRAULIC OIL","Presence of oil","Presence of grease"],"#A45A52":["LIGHTNING DAMAGE","Drain hole"],"#1d1160":["VORTEX (MISSING PANELS)","Delamination"],"#FEBE10":["OTHER ADD-ONS MISSING","Leading edge","Trailing edge","Pressure side","Suction side"],"#0039a6":["VOIDS","OTHER","Doubt","Other"]});var tZe=function(e){return e.BLADE="BLADE",e.TOWER="TOWER",e}(tZe||{});const nZe=Object.freeze([1,2,3,4,5]),rZe=e=>e.reduce(((e,t)=>{const n=t.severity;return(e=>!isNaN(Number(e))&&Number(e)>=1&&Number(e)<=5)(n)?(e[n]+=1,e):e}),{1:0,2:0,3:0,4:0,5:0}),iZe=(e,t)=>{if(!e)return"";const n=Object.values(eZe).findIndex((t=>t.includes(e)));if(-1!==n){return Object.keys(eZe)[n]}const r=Object.keys(eZe);return r[(null!==t&&void 0!==t?t:0)%r.length]},oZe=e=>{let{label:t,progressLabel:n,onClick:r,isLoading:i,progress:o,disabled:s,color:a=jp,lowerCase:l}=e;return(0,Ae.jsxs)(Sa,{variant:"outlined",onClick:r,disabled:i||s,sx:{position:"relative",overflow:"hidden",width:"100%","&:before":{content:'""',position:"absolute",top:0,left:0,width:"100%",height:"100%",opacity:.8,zIndex:1},borderColor:a,textTransform:l?"capitalize":""},children:[(0,Ae.jsx)(vu,{color:i?Gp:a,zIndex:3,children:i&&n?n:t}),i&&(0,Ae.jsx)(Hpe,{variant:"determinate",value:o,sx:{position:"absolute",top:0,left:0,width:"100%",height:"100%",zIndex:2,backgroundColor:"transparent","& .MuiLinearProgress-bar":{backgroundColor:{color:a}}}})]})},sZe=e=>{let{isInternal:t,defectsList:r,language:i,severities:o,selectedDefects:s,deltaT:a,maxT:l,withDetails:c,resolvedBtnIndex:u,defectsNb:d,inspection:h,setError:p}=e;const{campaign:f}=(0,n.useContext)(Ije),{externalUserCode:g}=(0,n.useContext)(Ije),[m,y]=(0,n.useState)(!1),[v,_]=(0,n.useState)(!1),[b,x]=(0,n.useState)(!1),[S,w]=(0,n.useState)(!1),[E,P]=(0,n.useState)(0),[C,A]=(0,n.useState)(),[k,j]=(0,n.useState)(null),I=(0,n.useMemo)((()=>{var e,t;return Boolean((null===h||void 0===h||null===(e=h.report)||void 0===e?void 0:e.url)||(null===f||void 0===f||null===(t=f.report)||void 0===t?void 0:t.storageUrl))}),[h,f]),G=(0,n.useMemo)((()=>{const e=500*d+2e3;return Math.max(e/95,250)}),[d,95]);(0,n.useEffect)((()=>{if(!m)return;const e=setInterval((()=>{P((e=>e>=95?95:e+1))}),G);return()=>{clearInterval(e)}}),[m,E,G,95]);return(0,n.useEffect)((()=>{k&&(k.click(),A(void 0))}),[k]),(0,Ae.jsxs)(ws,{container:!0,direction:"column",wrap:"nowrap",gap:"0.5rem",children:[(0,Ae.jsxs)(ws,{item:!0,container:!0,gap:2,width:"100%",paddingTop:1,wrap:"nowrap",children:[t&&(0,Ae.jsx)(ws,{item:!0,xs:8.5,children:(0,Ae.jsx)(oZe,{label:"".concat(v?"Reg":"G","enerate PDF"),progressLabel:"".concat(v?"Reg":"G","enerating PDF\u2026"),onClick:async()=>{if(!f&&!h)return;let e;switch(y(!0),p(void 0),w(!1),u){case gAe.ONLY_RESOLVED:e=pAe.CLOSED;break;case gAe.ONLY_UNRESOLVED:e=pAe.OPEN;break;default:e=void 0}const t=new URLSearchParams;i&&t.append("language",i),o.length!==nZe.length&&t.append(fAe.SEVERITIES,o.join(",")),s.length!==r.length&&t.append(fAe.DEFECTS,s.join(",")),a&&t.append(fAe.DELTA_T,a.join(",")),l&&t.append(fAe.MAX_T,l.join(",")),t.append(fAe.WITH_DETAILS,String(c)),e&&t.append(fAe.STATUS,e);try{f?await(async(e,t,n,r)=>{const i=await Ey("/campaigns/".concat(t,"/solar-report?").concat(r),{method:"POST",body:JSON.stringify({assetId:e,nbOfInspections:n})}),o=await i.text();if(!i.ok)throw new Error(o);return o})(f.assetId,f.id,f.inspectionsIds.length,t):h&&await(async(e,t)=>{const n=await Ey("/inspections/".concat(e,"/solar-report?").concat(t),{method:"POST"}),r=await n.text();if(!n.ok)throw new Error(r);return r})(h.id,t),_(!0),w(!0)}catch(n){p("An error has occurred while generating PDF")}finally{y(!1),P(0)}},isLoading:m,progress:E,disabled:0===o.length||0===s.length,lowerCase:!0})}),(0,Ae.jsx)(ws,{item:!0,xs:t?3.5:12,children:(0,Ae.jsx)(ev,{label:"PDF",disabled:m||b||!v&&!I,onClick:async()=>{w(!1),x(!0);let e="";const t=!Wy();try{f?t?await zy(f.id,!1,g):e=await Cy(f.id):h&&(t?await Fy(h.id):e=await Py(h.id,!0))}catch(n){p("An error has occurred, download not possible")}finally{A(e),x(!1)}},frontIcon:(0,Ae.jsx)(tH.c,{}),loading:b,fullWidth:!0})}),C&&(0,Ae.jsx)("a",{ref:e=>j(e),onClick:e=>e.stopPropagation(),href:C,style:{visibility:"hidden"},download:!0})]}),S&&(0,Ae.jsx)(ws,{item:!0,children:(0,Ae.jsx)(pM,{severity:"success",sx:{paddingY:.25},children:"PDF ready for download"})})]})},aZe=e=>{let{filterName:t,children:r}=e;const[i,o]=(0,n.useState)(!1);return(0,Ae.jsx)(wp,{marginTop:1,width:"100%",children:(0,Ae.jsxs)(Ph,{sx:{"&:before":{display:"none"}},expanded:i,onChange:()=>o(!i),children:[(0,Ae.jsx)(Th,{expandIcon:(0,Ae.jsx)(cp.c,{}),sx:{"& :first-of-type":{marginY:"4px"},minHeight:"1rem"},children:(0,Ae.jsx)(vu,{fontWeight:"bold",children:t})}),(0,Ae.jsx)(Dh,{sx:{paddingTop:0,paddingBottom:1},children:r})]})})},lZe=e=>{let{type:t,internal:r,inspections:i,defects:o,annotations:s}=e;const a=(0,n.useMemo)((()=>[...new Set(o.map((e=>e.type)))]),[o]),l=(0,n.useMemo)((()=>{const e=s.map((e=>e.thermalStats?e.thermalStats.max-e.thermalStats.mean:0)),t=Math.min(...e),n=Math.max(...e);if(t!==n&&n)return[t,n]}),[s]),c=(0,n.useMemo)((()=>{const e=s.map((e=>e.thermalStats?e.thermalStats.max:0)),t=Math.min(...e),n=Math.max(...e);if(t!==n&&n)return[t,n]}),[s]),[u,d]=(0,n.useState)(JKe),[h,p]=(0,n.useState)([...nZe]),[f,g]=(0,n.useState)([...a]),[m,y]=(0,n.useState)(l),[v,_]=(0,n.useState)(c),[b,x]=(0,n.useState)(!1),[S,w]=(0,n.useState)(gAe.ALL),[E,P]=(0,n.useState)();(0,n.useEffect)((()=>g([...a])),[a]),(0,n.useEffect)((()=>{l&&y([l[0],l[1]])}),[l]),(0,n.useEffect)((()=>{c&&_([c[0],c[1]])}),[c]);const C=(0,n.useMemo)((()=>{const e=l&&m&&(m[0]!==l[0]||m[1]!==l[1])?m:void 0,t=c&&v&&(v[0]!==c[0]||v[1]!==c[1])?v:void 0;return{severities:h,selectedDefects:f,deltaT:e,maxT:t,withDetails:b,resolvedBtnIndex:S}}),[l,m,c,v,h,f,b,S]);return(0,Ae.jsxs)(vj,{spacing:2,padding:2,width:r?"24rem":"12rem",children:[(0,Ae.jsx)(vu,{fontWeight:"bold",width:"100%",marginBottom:1,children:r?"Filter defects and export to PDF & CSV":"Export to PDF & CSV"}),r&&(0,Ae.jsxs)(Ae.Fragment,{children:[(0,Ae.jsxs)(yw,{sx:{width:"100%"},children:[(0,Ae.jsx)(dw,{id:"select-language-label",children:"Language"}),(0,Ae.jsx)(Jw,{id:"select-language",labelId:"select-language-label",value:u,label:"Language",onChange:e=>{d(e.target.value)},size:"small",children:Object.entries(QKe).map((e=>{let[t,n]=e;return(0,Ae.jsx)(dh,{value:t,children:n},t)}))})]}),(0,Ae.jsx)(aF,{checked:b,onChange:()=>x(!b),text:"Include defects details and photos",style:{marginTop:"0.5rem",marginLeft:"-8px"},textStyle:{fontWeight:"bold"}}),(0,Ae.jsx)(ige,{activeIndex:S,size:"small",buttons:["All","Only resolved","Only unresolved"],onClick:e=>w(e),lowerCase:!0}),(0,Ae.jsx)(aZe,{filterName:"Severities",children:(0,Ae.jsx)(wwe,{sx:{display:"flex",flexDirection:"row",justifyContent:"space-between"},children:nZe.map((e=>(0,Ae.jsx)(Pu,{control:(0,Ae.jsx)(lj,{sx:{padding:.5,paddingLeft:1},checked:h.includes(e),onChange:t=>((e,t)=>{e.target.checked?p([...h,t]):p(h.filter((e=>e!==t)))})(t,e)}),label:e},e)))})}),(0,Ae.jsx)(aZe,{filterName:"Defects",children:(0,Ae.jsx)(wwe,{children:(0,Ae.jsx)(ws,{container:!0,width:"100%",alignItems:"center",columnGap:2,children:a.map((e=>(0,Ae.jsx)(ws,{item:!0,xs:5,children:(0,Ae.jsx)(Pu,{control:(0,Ae.jsx)(lj,{sx:{padding:.5,paddingLeft:1},checked:f.includes(e),onChange:t=>((e,t)=>{e.target.checked?g([...f,t]):g(f.filter((e=>e!==t)))})(t,e)}),label:e})},e)))})})}),(0,Ae.jsx)(aZe,{filterName:"Temperature",children:(0,Ae.jsxs)(vj,{paddingX:2,children:[l&&m&&(0,Ae.jsx)(DCe,{title:"Delta T\xb0",onChange:e=>y(e),range:l,values:m,size:"small"}),c&&v&&(0,Ae.jsx)(DCe,{title:"Max T\xb0",onChange:e=>_(e),range:c,values:v,size:"small"})]})})]}),(0,Ae.jsx)(sZe,{...C,isInternal:r,defectsList:a,language:u,defectsNb:o.length,inspection:t===kC.INSPECTION?i[0]:void 0,setError:e=>P(e)}),(0,Ae.jsx)(Qq,{}),(0,Ae.jsxs)(vj,{children:[(0,Ae.jsx)(sH,{inspections:i,defects:o,smallWithIcon:!0,mode:t,annotations:s,internal:r}),r&&(0,Ae.jsx)(vu,{fontStyle:"italic",fontSize:"0.8rem",marginTop:.4,children:"Filters do not apply to CSV"})]}),E&&(0,Ae.jsx)(pM,{severity:"error",sx:{paddingY:.25},children:E})]})},cZe={sharedWith:"This inspection is shared with:",instruction:"Please enter email address of users you want to add. Those persons will require an account on SkyVisor, otherwise please contact support@skyvisor.eu.",warning:"Those persons will have full access to this inspection (create, modify, delete)."},uZe=e=>(0,Ae.jsx)(fpe,{itemType:kC.INSPECTION,texts:cZe,itemId:e.inspectionId}),dZe={sharedWith:"This campaign is shared with:",instruction:"Please enter email address of users you want to add. Those persons will require an account on SkyVisor, otherwise please contact support@skyvisor.eu.",warning:"Those persons will have full access to each inspection of this campaign (create, modify, delete)."},hZe=e=>{let{campaignId:t}=e;return(0,Ae.jsx)(fpe,{itemType:kC.CAMPAIGN,texts:dZe,itemId:t})},pZe=e=>{let{type:t,id:r,internal:i,showExport:o=!0,inspections:s,defects:a,annotations:l,iconOnly:c}=e;const[u,d]=(0,n.useState)(),[h,p]=(0,n.useState)(),[f,g]=(0,n.useState)();return(0,Ae.jsxs)(vj,{direction:"row",spacing:1,justifyContent:"center",children:[i&&(0,Ae.jsxs)(Ae.Fragment,{children:[(0,Ae.jsx)(ev,{label:c?"":"Share",color:"success",frontIcon:(0,Ae.jsx)(t8.c,{}),onClick:e=>d(e.currentTarget)}),(0,Ae.jsx)(Ud,{anchorEl:u,open:void 0!==u,onClose:()=>d(void 0),anchorOrigin:{vertical:"bottom",horizontal:"right"},transformOrigin:{vertical:"top",horizontal:"right"},keepMounted:!0,children:(0,Ae.jsx)(Mje,{type:t,documentId:r})})]}),o&&s&&a&&l&&(0,Ae.jsxs)(Ae.Fragment,{children:[i?(0,Ae.jsx)(RCe,{badgeContent:(0,Ae.jsx)($Ke.c,{}),color:"warning",overlap:"circular",anchorOrigin:{vertical:"top",horizontal:"left"},children:(0,Ae.jsx)(ev,{label:c?"":"Export",color:"success",frontIcon:(0,Ae.jsx)(tH.c,{}),onClick:e=>p(e.currentTarget)})}):(0,Ae.jsx)(ev,{label:c?"":"Export",color:"success",frontIcon:(0,Ae.jsx)(tH.c,{}),onClick:e=>p(e.currentTarget)}),(0,Ae.jsx)(Ud,{anchorEl:h,open:void 0!==h,onClose:()=>p(void 0),anchorOrigin:{vertical:"bottom",horizontal:"right"},transformOrigin:{vertical:"top",horizontal:"right"},keepMounted:!0,children:(0,Ae.jsx)(lZe,{type:t,internal:i,inspections:s,defects:a,annotations:l})})]}),Eo()&&(0,Ae.jsxs)(Ae.Fragment,{children:[(0,Ae.jsx)(ev,{label:c?"":"Add user",frontIcon:(0,Ae.jsx)(ZKe.c,{}),onClick:e=>g(e.currentTarget)}),(0,Ae.jsx)(Ud,{anchorEl:f,open:void 0!==f,onClose:()=>g(void 0),anchorOrigin:{vertical:"bottom",horizontal:"right"},transformOrigin:{vertical:"top",horizontal:"right"},keepMounted:!0,children:t===kC.INSPECTION?(0,Ae.jsx)(uZe,{inspectionId:r}):(0,Ae.jsx)(hZe,{campaignId:r})})]})]})},fZe=Zo()((()=>({pageTitle:{color:Gp},linkStyle:{color:"#333B46",padding:5,textDecoration:"none","&:hover":{backgroundColor:"rgba(55, 53, 47, 0.13)"}}}))),gZe=e=>{var t,r,i,o,s,a,l,c,u;const{classes:d}=fZe(),h=m(),p=(0,n.useContext)(NEe);if(!p)return(0,Ae.jsx)(Ae.Fragment,{});const{isExpert:f,annotatorPopover:g,solarAnalyzeAnnotationsPanelVisibility:y}=p,v=b(Nm),_=b(Wm),x=b(Um),{internal:S}=e;if(!v)return(0,Ae.jsx)("p",{children:"An error occured"});const w=!Wy()&&S&&!xB(),E=v.subAsset.name,P=Iy(null!==(t=v.inspectionDates.inspected)&&void 0!==t?t:v.inspectionDates.planned),[C,A]=(0,n.useState)(!1),[k,j]=(0,n.useState)(null!==(r=null===(i=v.annotationsShape)||void 0===i?void 0:i.rectangle)&&void 0!==r&&r),[I,G]=(0,n.useState)(null!==(o=null===(s=v.annotationsShape)||void 0===s?void 0:s.bearingAngle)&&void 0!==o&&o),[T,M]=(0,n.useState)(),[O,R]=(0,n.useState)(null),D=null===(a=v.asset)||void 0===a?void 0:a.name,N=null===(l=v.asset)||void 0===l?void 0:l.id,L="Solar"===(null===v||void 0===v?void 0:v.type)?"Area ":"Turbine ",V=f?"".concat(N.substring(0,5).toUpperCase()," - ").concat(L+E):"".concat(D," ").concat(E," ").concat(P),F=!(null===v||void 0===v||!v.stats.uploadedCount),z=v.status,B=e.currentPage===Pke.ANALYZED,U=e.currentPage===Pke.UPLOADED,W=e.type===RC.SOLAR,H=b(Pg),q=!Wy()&&!bB(),X=(0,n.useMemo)((()=>W&&Eo()&&v.subAsset.model&&[Pke.UPLOADED,Pke.ANNOTATED].includes(e.currentPage)),[v.subAsset.model,e.currentPage,W]),Y=(0,n.useMemo)((()=>W&&Eo()&&e.currentPage===Pke.ANNOTATED),[e.currentPage,W]),K=(0,n.useMemo)((()=>{var t;return!(!Eo()&&!bB())&&(![VC.COMPLETE,VC.NOT_AVAILABLE].includes(null!==(t=v.aiStatus)&&void 0!==t?t:VC.NOT_AVAILABLE)&&!(v.status===OC.ANALYZED||!("annotationOutsource"in v)||![Pke.UPLOADED,Pke.ANNOTATED].includes(e.currentPage)||null!==g&&void 0!==g&&g.isAnnotatedPopoverQualityCheckValidated))}),[v,e.currentPage,null===g||void 0===g?void 0:g.isAnnotatedPopoverQualityCheckValidated]);return(0,n.useEffect)((()=>{null!==g&&void 0!==g&&g.isAnnotatedPopoverQualityCheckValidated&&A(!0)}),[null===g||void 0===g?void 0:g.isAnnotatedPopoverQualityCheckValidated]),(0,Ae.jsx)(Ae.Fragment,{children:(0,Ae.jsx)(PF,{pageTitle:V,left:Wy()||f?(0,Ae.jsx)("p",{className:d.pageTitle,style:{textAlign:"center",fontSize:"1rem"},children:V}):(0,Ae.jsxs)("div",{className:d.pageTitle,children:[(0,Ae.jsx)("a",{className:d.linkStyle,href:xB()?void 0:"/assets/".concat(v.asset.id),children:"".concat(v.asset.name)})," > ",(0,Ae.jsx)("a",{className:d.linkStyle,href:xB()?void 0:"/assets/".concat(v.asset.id,"/").concat(v.subAsset.id),children:"".concat(L).concat(v.subAsset.name)})," > ",(0,Ae.jsx)("span",{className:d.linkStyle,children:P})]}),center:(0,Ae.jsxs)(Ae.Fragment,{children:[q&&(0,Ae.jsx)(Cke,{currentPage:e.currentPage,setPage:e.changePage,photoUploaded:F,status:z,type:v.type}),B&&!Yy()&&W&&Wy()&&(0,Ae.jsx)(pZe,{type:kC.INSPECTION,id:v.id,internal:S,inspections:[v],defects:_,annotations:x,iconOnly:!0})]}),right:(0,Ae.jsxs)(wp,{display:"flex",columnGap:"0.5rem",justifyContent:Wy()?"center":"space-between",paddingLeft:Wy()?0:"1rem",children:[B&&W?(0,Ae.jsx)(Hje,{setCurrentTab:e.setCurrentTab,currentTab:e.currentTab,withListTab:Wy()}):(0,Ae.jsx)("div",{}),(0,Ae.jsxs)(wp,{display:"flex",columnGap:"0.5rem",justifyContent:"space-between",children:[(0,Ae.jsx)(Zpe,{severity:"success",isOpen:C,duration:4e3,close:()=>A(!1),text:"Workflow validated, status switched to complete",horizontalPlacement:"right",verticalPlacement:"top"}),U&&W&&H&&(0,Ae.jsx)($y,{text:"Saving\u2026",size:20,style:{width:"fit-content",marginRight:"0.5rem",height:"fit-content"}}),K&&(0,Ae.jsxs)(Ae.Fragment,{children:[(null===(c=v.annotationOutsource)||void 0===c?void 0:c.note)&&(0,Ae.jsx)(wp,{display:"flex",alignItems:"center",gap:"1rem",children:(0,Ae.jsx)(cu,{title:v.annotationOutsource.note,children:(0,Ae.jsx)(Sa,{variant:"outlined",children:"NOTE"})})}),(0,Ae.jsx)(ev,{onClick:()=>{null===g||void 0===g||g.setAnnotatedPopover(!0)},label:Eo()?"Validate Annotator workflow":"Mark as Annotated",color:"success"})]}),X&&(0,Ae.jsxs)(Ae.Fragment,{children:[(0,Ae.jsx)(cu,{title:"Display panels settings",children:(0,Ae.jsx)(Sa,{onClick:e=>{M("shape"),R(e.currentTarget)},children:(0,Ae.jsx)(Wfe.c,{})})}),(0,Ae.jsx)(Ud,{open:"shape"===T,onClose:()=>M(void 0),anchorEl:O,anchorOrigin:{vertical:"bottom",horizontal:"center"},children:(0,Ae.jsxs)(vj,{padding:"1rem",gap:"0",children:[(0,Ae.jsxs)(vj,{flexDirection:"row",alignItems:"center",children:[(0,Ae.jsx)(vu,{children:"Use panel model shape"}),(0,Ae.jsx)(Aj,{checked:k,onChange:(e,t)=>{h(Ig({...v,annotationsShape:{...v.annotationsShape,rectangle:t}})),$L(v.id,{"annotationsShape.rectangle":!k}),j(!k)},color:"primary"})]}),(0,Ae.jsxs)(vj,{flexDirection:"row",alignItems:"center",children:[(0,Ae.jsx)(vu,{children:"Align shapes to bearing"}),(0,Ae.jsx)(Aj,{checked:I,onChange:(e,t)=>{h(Ig({...v,annotationsShape:{...v.annotationsShape,bearingAngle:t}})),$L(v.id,{"annotationsShape.bearingAngle":!I}),G(!I)},color:"primary"})]})]})})]}),Y&&(0,Ae.jsxs)(Ae.Fragment,{children:[(0,Ae.jsx)(cu,{title:"Hide annotations (perfs improvement)",children:(0,Ae.jsx)(Sa,{onClick:e=>{M("hide-annotations"),R(e.currentTarget)},children:(0,Ae.jsx)(hB.c,{})})}),(0,Ae.jsx)(Ud,{open:"hide-annotations"===T,onClose:()=>M(void 0),anchorEl:O,anchorOrigin:{vertical:"bottom",horizontal:"center"},children:(0,Ae.jsx)(vj,{padding:"1rem",gap:"0",children:(0,Ae.jsxs)(vj,{flexDirection:"row",alignItems:"center",children:[(0,Ae.jsx)(vu,{children:"Show left annotations (default true)"}),(0,Ae.jsx)(Aj,{checked:null!==(u=null===y||void 0===y?void 0:y.visible)&&void 0!==u&&u,onChange:(e,t)=>{null===y||void 0===y||y.set(t)},color:"primary"})]})})})]}),w&&(0,Ae.jsx)(jF,{btnVersion:W}),B&&W&&!Wy()&&(0,Ae.jsx)(pZe,{type:kC.INSPECTION,id:v.id,internal:S,inspections:[v],defects:_,annotations:x,iconOnly:!0})]})]}),size:Wy()?{left:12,center:12,right:12}:{left:3,center:5,right:4},children:e.children})})},mZe=(0,n.createContext)(void 0);let yZe=function(e){return e.INSPECT="INSPECT",e.ANNOTATE="ANNOTATE",e.ANALYZE="ANALYZE",e.RESULTS="RESULTS",e}({}),vZe=function(e){return e.RESULTS_NOT_READY="RESULTS_NOT_READY",e.LOADING="LOADING",e}({});const _Ze=Object.freeze([[OC.PLANNED,OC.INSPECTED,OC.UPLOADED],[],[OC.ANNOTATED],[OC.ANALYZED]]),bZe=Object.freeze([[OC.PLANNED,OC.INSPECTED],[OC.UPLOADED],[OC.ANNOTATED],[OC.ANALYZED]]),xZe=[yZe.INSPECT,yZe.ANNOTATE,yZe.ANALYZE,yZe.RESULTS],SZe=Object.freeze({[yZe.INSPECT]:"1. Inspect",[yZe.ANNOTATE]:"2. Annotate",[yZe.ANALYZE]:"3. Analyze",[yZe.RESULTS]:"4. Results"}),wZe=(e,t,n)=>{if(n)return EZe(e,yZe.RESULTS)?yZe.RESULTS:vZe.RESULTS_NOT_READY;const r=(t?bZe:_Ze).findIndex((t=>t.includes(e)));return xZe[r]},EZe=(e,t)=>{if(t===yZe.ANNOTATE)return!1;return _Ze.findIndex((t=>t.includes(e)))>=xZe.indexOf(t)},PZe=e=>{var t;return null!==(t=SZe[e])&&void 0!==t?t:e},CZe=Zo()((()=>({root:{justifyContent:"center",alignItems:"center"},button:{minWidth:"10rem",borderRadius:15,color:Gp,"&.active":{backgroundColor:"white",border:"1px solid ".concat(jp),color:jp,fontWeight:"bold","&:hover":{backgroundColor:"white"}},"&.disabled":{color:"lightgrey"}},form:{padding:"1rem",maxWidth:"20rem","& p":{lineHeight:"1.2rem",textAlign:"justify"}}}))),AZe=()=>{const{classes:e}=CZe(),[t,r]=(0,n.useState)(null),i=(0,n.useContext)(mZe);if(!i)return(0,Ae.jsx)(Ae.Fragment,{});const{inspectionCtx:{inspection:o,updateInspection:s},currentPage:a,setCurrentPage:l}=i,c=(0,n.useMemo)((()=>{if(Eo())return[];let e=[yZe.INSPECT,yZe.ANNOTATE,yZe.ANALYZE,yZe.RESULTS].filter((e=>!1===EZe(o.status,e)));return o.status===OC.ANNOTATED&&(e=e.filter((e=>e!==yZe.RESULTS))),e}),[o.status]),u=(0,n.useMemo)((()=>Object.values(yZe).map((e=>({id:e,label:PZe(e),selected:a===e,disabled:c.includes(e)})))),[a,c]),d=(0,n.useCallback)(((e,t)=>{e.preventDefault(),o.status===OC.ANNOTATED&&t===yZe.RESULTS?r(e.currentTarget):l(t)}),[o]);return(0,Ae.jsxs)(Ae.Fragment,{children:[(0,Ae.jsx)(ws,{container:!0,wrap:"nowrap",className:e.root,children:u.map(((t,n)=>(0,Ae.jsx)(ws,{item:!0,children:(0,Ae.jsx)(Sa,{className:"".concat(e.button," ").concat(t.selected?"active":""," ").concat(t.disabled?"disabled":""),disabled:t.disabled,onClick:e=>d(e,t.id),children:t.label})},"construction-inspection-tool-navigation-".concat(n))))}),(0,Ae.jsx)(Ud,{open:null!==t,anchorEl:t,onClose:()=>r(null),anchorOrigin:{vertical:"bottom",horizontal:"center"},transformOrigin:{vertical:"top",horizontal:"center"},children:(0,Ae.jsxs)(ws,{container:!0,direction:"column",wrap:"nowrap",className:e.form,rowGap:"1rem",children:[(0,Ae.jsx)(ws,{item:!0,children:(0,Ae.jsx)(vu,{children:"Do you want to validate the Analyse phase? You will still be able to go back to this page later."})}),(0,Ae.jsx)(ws,{item:!0,children:(0,Ae.jsx)(ohe,{onCancel:()=>r(null),onValidate:()=>{r(null),s({status:OC.ANALYZED}),l(yZe.RESULTS)},validateText:"Mark as analyzed"})})]})})]})},kZe=Zo()((()=>({textCenter:{textAlign:"center"},pageTitle:{color:Gp},linkStyle:{color:"#333B46",padding:5,textDecoration:"none","&:hover":{backgroundColor:"rgba(55, 53, 47, 0.13)"}}}))),jZe=e=>{const{classes:t}=kZe(),r=(0,n.useContext)(mZe);if(!r)return(0,Ae.jsx)(Ae.Fragment,{});const{inspectionCtx:{inspection:i},subAsset:o,currentPage:s,selectedMobileView:a,setSelectedMobileView:l,isExternalUser:c}=r,u=(0,n.useMemo)((()=>{var e;return Iy(null!==(e=i.inspectionDates.inspected)&&void 0!==e?e:i.inspectionDates.planned)}),[i.inspectionDates.inspected,i.inspectionDates.planned]),d=(0,n.useMemo)((()=>"".concat(i.asset.name," ").concat(o.name," ").concat(u)),[i.asset.name,o.name,u]),h=(0,n.useMemo)((()=>[{text:i.asset.name,url:"/assets/".concat(i.asset.id),style:{fontSize:17}},{text:i.subAsset.name,url:"/assets/".concat(i.asset.id,"/").concat(i.subAsset.id),style:{fontSize:17}},{text:u,style:{fontSize:17}}]),[i,u]);return(0,Ae.jsx)(PF,{pageTitle:d,customStyle:{alignItems:"stretch"},left:Wy()?(0,Ae.jsx)("p",{className:t.textCenter,children:d}):(0,Ae.jsx)(ws,{container:!0,height:"100%",wrap:"nowrap",alignItems:"stretch",children:(0,Ae.jsx)(nfe,{items:h})}),center:Wy()?(0,Ae.jsx)(wp,{width:"100%",children:(0,Ae.jsx)(ige,{buttons:Object.values(uA),onClick:e=>{l(Object.values(uA)[e])},activeIndex:Object.values(uA).indexOf(a)})}):(0,Ae.jsx)(wp,{paddingX:"0.25rem",children:(0,Ae.jsx)(AZe,{})}),right:(0,Ae.jsx)(ws,{container:!0,height:"100%",wrap:"nowrap",columnGap:"0.5rem",alignItems:"stretch",justifyContent:"flex-end",paddingLeft:Wy()?0:"1rem",children:!Wy()&&!c&&(0,Ae.jsxs)(Ae.Fragment,{children:[(0,Ae.jsx)(jF,{btnVersion:!0}),s===yZe.RESULTS&&(0,Ae.jsx)(pZe,{internal:!c,id:i.id,type:kC.INSPECTION,showExport:!1})]})}),size:Wy()?{left:12,center:12,right:12}:{left:4,center:4,right:4},children:e.children})};let IZe=function(e){return e.HAND="HAND",e.SELECT="SELECT",e.TRASH="TRASH",e.STAMP="STAMP",e.STAMP_FOUNDATION="STAMP_FOUNDATION",e.STAMP_PILE="STAMP_PILE",e.STAMP_MODULE="STAMP_MODULE",e.STAMP_TABLE="STAMP_TABLE",e.ITEM_SELECTION="ITEM_SELECTION",e.ITEM_SELECTION_PILE="ITEM_SELECTION_PILE",e.ITEM_SELECTION_MODULE="ITEM_SELECTION_MODULE",e.ANNOTATE="ANNOTATE",e.MEASUREMENT="MEASUREMENT",e.LINE="LINE",e.AREA="AREA",e}({}),GZe=function(e){return e.HAND="Move the map",e.SELECT="Select item or zone",e.TRASH="Delete item",e.STAMP="Stamps",e.STAMP_FOUNDATION="Foundation",e.STAMP_PILE="Pile",e.STAMP_MODULE="Module",e.STAMP_TABLE="Table",e.ITEM_SELECTION="Selection",e.ITEM_SELECTION_PILE="Select piles",e.ITEM_SELECTION_MODULE="Select modules",e.ANNOTATE="Add an annotation",e.MEASUREMENT="Add a measurement",e.LINE="Measure a distance",e.AREA="Measure an area",e}({});const TZe=Object.freeze({[IZe.STAMP]:[IZe.STAMP_FOUNDATION,IZe.STAMP_PILE,IZe.STAMP_MODULE,IZe.STAMP_TABLE],[IZe.ITEM_SELECTION]:[IZe.ITEM_SELECTION_PILE,IZe.ITEM_SELECTION_MODULE],[IZe.MEASUREMENT]:[IZe.LINE,IZe.AREA]}),MZe=Object.freeze({h:IZe.HAND,s:IZe.SELECT,t:IZe.TRASH,1:IZe.STAMP_FOUNDATION,2:IZe.STAMP_PILE,3:IZe.STAMP_MODULE,4:IZe.STAMP_TABLE,5:IZe.ITEM_SELECTION_PILE,6:IZe.ITEM_SELECTION_MODULE,m:IZe.MEASUREMENT,l:IZe.LINE,a:IZe.AREA,d:IZe.ANNOTATE});let OZe=function(e){return e.DISTANCE="DISTANCE",e.AREA="AREA",e}({});const RZe=e=>{var t,n;return e&&e.id&&(null===(t=e.asset)||void 0===t?void 0:t.id)&&(null===(n=e.asset)||void 0===n?void 0:n.name)&&e.inspectionDates&&e.type===RC.SOLAR_CONSTRUCTION&&e.status&&e.subAsset&&void 0!=e.notes&&void 0!=e.legislation&&void 0!=e.weather&&e.stats&&e.createdBy},DZe=e=>Object.values(sA).includes(e),NZe=e=>e.id&&DZe(null===e||void 0===e?void 0:e.type)&&Array.isArray(null===e||void 0===e?void 0:e.coords)&&e.coords.every(F3)&&(e.coords.length>=3||1===e.coords.length&&e.size),LZe=e=>e&&null!=e.path&&null!=e.name,VZe=e=>{var t,n,r;return e&&e.id&&e.text&&null!=e.created&&((null===(t=e.created.by)||void 0===t?void 0:t.name)||(null===(n=e.created.by)||void 0===n?void 0:n.email))&&e.created.at instanceof Date&&"isAuthor"in e&&(null!==(r=e.files)&&void 0!==r?r:[]).every(LZe)},FZe=e=>e&&e.id&&e.type&&Object.keys(aA).includes(e.type)&&[1,2,3].includes(e.severity)&&Array.isArray(e.coords)&&e.coords.every(F3)&&(e=>e&&e.status&&Object.values(pAe).includes(e.status))(e.state)&&Array.isArray(e.comments)&&e.comments.every(VZe),zZe=e=>e&&e.id&&Array.isArray(e.coords)&&e.coords.every(F3)&&Object.values(OZe).includes(e.type)&&!Number.isNaN(e.value)&&e.unit,BZe=e=>{if("object"!==typeof e||null===e)return e;if(Array.isArray(e))return e.map(BZe);const t={};for(const n in e)if(Object.prototype.hasOwnProperty.call(e,n))if("at"===n&&"string"===typeof e[n]){const r=new Date(e[n]);t[n]=isNaN(r.getTime())?e[n]:r}else"object"===typeof e[n]?t[n]=BZe(e[n]):t[n]=e[n];return t},UZe=e=>{const t=Math.floor(((new Date).getTime()-e.getTime())/1e3);let n=t/31536e3;const r=e=>({value:Math.floor(e),plural:Math.floor(e)>1?"s":""});if(n>1){const{value:e,plural:t}=r(n);return"".concat(e," year").concat(t," ago")}if(n=t/2592e3,n>1){const{value:e,plural:t}=r(n);return"".concat(e," month").concat(t," ago")}if(n=t/86400,n>1){const{value:e,plural:t}=r(n);return"".concat(e," day").concat(t," ago")}if(n=t/3600,n>1){const{value:e,plural:t}=r(n);return"".concat(e," hour").concat(t," ago")}if(n=t/60,n>1){const{value:e,plural:t}=r(n);return"".concat(e," minute").concat(t," ago")}if(t>1){const{value:e,plural:n}=r(t);return"".concat(e," second").concat(n," ago")}return"Just now"},WZe="solar-construction",HZe=async(e,t)=>{const n={method:"POST",body:JSON.stringify({stamps:t})},r=await Ey("/".concat(WZe,"/").concat(e,"/stamps"),n),i=await r.json();if(!r.ok){var o;const e=await r.text();throw new Error(null!==(o=null!==e&&void 0!==e?e:r.statusText)&&void 0!==o?o:"An error occurred")}if(!((s=i)&&Array.isArray(s)&&s.every(NZe)))throw new Error("Invalid json");var s;return BZe(i)},qZe=function(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];const n=.2;switch(e){case sA.FOUNDATION:return{size:4,stroke:Yp.FOUNDATION,fill:nU(Yp.FOUNDATION,n)};case sA.PILE:return{size:4,stroke:Yp.PILE,fill:nU(Yp.PILE,n)};case sA.MODULE:return{size:4,stroke:t?jp:Yp.MODULE,fill:nU(Yp.MODULE,n)};case sA.TABLE:return{size:4,stroke:Yp.TABLE,fill:nU(Yp.TABLE,n)};default:return{}}},XZe=e=>{const t=(0,w0.getBounds)(e),n=A3({lat:t.minLat,lng:t.minLng}),r=A3({lat:t.maxLat,lng:t.maxLng});return Math.max(Math.abs(r[0]-n[0]),Math.abs(r[1]-n[1]))},YZe="tmp-stamp",KZe=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];const[r,i]=(0,n.useState)([]),[o,s]=(0,n.useState)([]),[a,l]=(0,n.useState)([]),c=(0,n.useMemo)((()=>t.flatMap((e=>null!=e?[e]:[]))),[t]),u=(0,n.useMemo)((()=>[...a,...r].filter((e=>{let{id:t}=e;return!o.includes(t)}))),[a,r,o]);(0,n.useEffect)((()=>{const t=((e,t)=>co.firestore().collection("inspections").doc(e).collection("stamps").onSnapshot((e=>{const n=e.docs.map((e=>{var t;return{...e.data(),id:e.id,coords:(null!==(t=e.data().coords)&&void 0!==t?t:[]).map((e=>({lat:e.latitude,lng:e.longitude}))).filter((e=>e))}}));t(n)})))(e,(e=>{l(e)}));return()=>{t()}}),[e]),(0,n.useEffect)((()=>{if(0===r.length)return;const e=r.filter((e=>{let{id:t}=e;return a.some((e=>{let{id:n}=e;return t===n}))})).map((e=>{let{id:t}=e;return t}));0!==e.length&&i((t=>[...t].filter((t=>{let{id:n}=t;return!e.includes(n)}))))}),[a,r]),(0,n.useEffect)((()=>{if(0===o.length)return;const e=o.filter((e=>!a.some((t=>{let{id:n}=t;return e===n}))));0!==e.length&&s((t=>[...t].filter((t=>!e.includes(t)))))}),[a,o]);const d=(0,n.useCallback)((async function(t){let n=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],r=arguments.length>2?arguments[2]:void 0;const o=null!==r&&void 0!==r?r:"".concat(YZe,"-").concat((new Date).getTime()),s={id:o,coords:t.coords,type:t.type,size:t.size};if(i((e=>[...e,s])),n)try{const n=await(async(e,t)=>{const n=await HZe(e,[t]);if(0===n.length)throw new Error("Invalid json: no stamps created");return n[0]})(e,t);p(o,n,!1)}catch(a){f(o,!1)}}),[e]),h=(0,n.useCallback)((async function(t){let n=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];const r=(new Date).getTime(),o=t.map(((e,t)=>({id:"".concat(YZe,"-").concat(r,"_").concat(t),coords:e.coords,type:e.type,size:e.size})));if(i((e=>[...e,...o])),n)try{(await HZe(e,t)).forEach(((e,t)=>{p(o[t].id,e,!1)}))}catch(s){o.forEach((e=>{f(e.id,!1)}))}}),[e]),p=(0,n.useCallback)((async function(t,n){let r=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];try{r&&await(async(e,t,n)=>{const r={method:"PATCH",body:JSON.stringify({stamp:n})},i=await Ey("/".concat(WZe,"/").concat(e,"/stamps/").concat(t),r),o=await i.json();if(200!==i.status)throw new Error(null!==o&&void 0!==o?o:i.statusText);if(!NZe(o))throw new Error("Invalid json");return BZe(o)})(e,t,n),i((e=>e.map((e=>e.id===t?{...e,...n}:e))))}catch(o){}}),[e]),f=(0,n.useCallback)((async function(t){let n=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];const r=u.find((e=>e.id===t));i((e=>e.filter((e=>e.id!==t)))),s((e=>[...e,t]));try{n&&await(async(e,t)=>{const n=await Ey("/".concat(WZe,"/").concat(e,"/stamps/").concat(t),{method:"DELETE"});if(204!==n.status)throw new Error(n.statusText);return!0})(e,t)}catch(o){if(!r)return;if(r.id.startsWith(YZe))return;d({type:r.type,coords:r.coords},!1)}}),[u,e]),g=(0,n.useCallback)((e=>u.find((t=>t.id===e))),[u]),m=(0,n.useMemo)((()=>u.filter((e=>{let{type:t}=e;return[sA.MODULE,sA.TABLE].includes(t)})).reduce(((e,t)=>{const{id:n,coords:r,type:i,serialNumber:o}=t,s=c.includes(n),a={id:n,coords:r,style:qZe(i,s),zIndex:s?2:1,texts:[{text:o}]};return e[i].push(a),e}),{[sA.MODULE]:[],[sA.TABLE]:[]})),[u,c]),y=(0,n.useMemo)((()=>u.filter((e=>{let{type:t}=e;return[sA.FOUNDATION,sA.PILE].includes(t)})).reduce(((e,t)=>{const{id:n,coords:r,type:i,size:o=1}=t,s={id:n,center:r[0],radius:o/2,withCross:!0,style:qZe(i)};return e[i].push(s),e}),{[sA.FOUNDATION]:[],[sA.PILE]:[]})),[u]);return{stamps:u,shapeSv:{...m,...y},addStamp:d,addMultipleStamps:h,updateStamp:p,removeStamp:f,getStamp:g}},ZZe="solar-construction",$Ze=async(e,t)=>{const n={method:"POST",body:JSON.stringify({annotation:t})},r=await Ey("/".concat(ZZe,"/").concat(e,"/annotations"),n),i=await r.json();if(200!==r.status)throw new Error(null!==i&&void 0!==i?i:r.statusText);const o=BZe(i);if(!FZe(o))throw new Error("Invalid json");return o},JZe=async(e,t,n)=>{const r={method:"PATCH",body:JSON.stringify({annotation:n})},i=await Ey("/".concat(ZZe,"/").concat(e,"/annotations/").concat(t),r),o=await i.json();if(200!==i.status)throw new Error(null!==o&&void 0!==o?o:i.statusText);const s=BZe(o);if(!FZe(s))throw new Error("Invalid json");return s},QZe=async(e,t)=>{const n=await Ey("/".concat(ZZe,"/").concat(e,"/annotations/").concat(t),{method:"DELETE"});if(204!==n.status)throw new Error(n.statusText);return!0},e$e=e=>{const[t,r]=(0,n.useState)([]),i=(0,n.useCallback)((async()=>{const t=await(async e=>{const t=await Ey("/".concat(ZZe,"/").concat(e,"/annotations"),{method:"GET"}),n=await t.json();if(200!==t.status)throw new Error(null!==n&&void 0!==n?n:t.statusText);if(!Array.isArray(n))throw new Error("Invalid json");return n.map(BZe).filter(FZe).sort(((e,t)=>e.created.at.getTime()-t.created.at.getTime()))})(e);r(t)}),[e]);(0,n.useEffect)((()=>{i()}),[i]);const o=(0,n.useCallback)((e=>{r((t=>[...t,e]))}),[]),s=(0,n.useCallback)(((e,t)=>{r((n=>n.map((n=>n.id===e?{...n,...t}:n))))}),[]),a=(0,n.useCallback)((e=>{r((t=>t.filter((t=>t.id!==e))))}),[]),l=(0,n.useMemo)((()=>t.map((e=>{let{id:t,type:n,coords:r,state:i}=e;return{id:t,coords:r,style:{stroke:i.status===pAe.CLOSED?nU("#00E000",.6):nU(Bp,.4),fill:i.status===pAe.CLOSED?nU("#00A000",.4):nU(Bp,.4),size:3,selected:{size:6,fill:i.status===pAe.CLOSED?nU(Up,.8):nU(Bp,.4)}},texts:[{text:lA[n]}]}}))),[t]);return{annotations:t,polygons:l,fetchAllAnnotations:i,addAnnotation:o,updateAnnotation:s,removeAnnotation:a}},t$e="solar-construction",n$e=async(e,t)=>{const n=await Ey("/".concat(t$e,"/").concat(e,"/measurements/").concat(t),{method:"DELETE"});if(204!==n.status)throw new Error(n.statusText);return!0},r$e=e=>{const[t,r]=(0,n.useState)([]),i=(0,n.useCallback)((async()=>{const t=await(async e=>{const t=await Ey("/".concat(t$e,"/").concat(e,"/measurements"),{method:"GET"}),n=await t.json();if(200!==t.status)throw new Error(null!==n&&void 0!==n?n:t.statusText);if(!Array.isArray(n))throw new Error("Invalid json");return n.filter(zZe)})(e);r(t)}),[e]);(0,n.useEffect)((()=>{i()}),[i]);const o=(0,n.useCallback)((e=>{r((t=>[...t,e]))}),[]),s=(0,n.useCallback)(((e,t)=>{r((n=>n.map((n=>n.id===e?{...n,...t}:n))))}),[]),a=(0,n.useCallback)((e=>{r((t=>t.filter((t=>t.id!==e))))}),[]),l=(0,n.useCallback)((e=>t.find((t=>t.id===e))),[t]),c=(0,n.useMemo)((()=>t.filter((e=>{let{type:t}=e;return t===OZe.AREA})).map((e=>{let{id:t,coords:n,name:r,value:i,unit:o}=e;return{id:t,coords:n,style:{stroke:jp,fill:"rgba(0, 100, 255, 0.4)",size:3,selected:{size:7,fill:nU(jp,.7)}},texts:[{text:"".concat(r?"".concat(r,"\n"):"").concat(i).concat(o)}]}}))),[t]),u=(0,n.useMemo)((()=>t.filter((e=>{let{type:t}=e;return t===OZe.DISTANCE})).map((e=>{let{id:t,coords:n,name:r,value:i,unit:o,bearing:s}=e;return{id:t,isLine:!0,coords:n,style:{stroke:jp,size:3},displayText:[r,"".concat(i).concat(o),"".concat(s,"\xb0")].filter((e=>e))}}))),[t]);return{measurements:t,polygons:c,lines:u,fetchAllMeasurements:i,addMeasurement:o,updateMeasurement:s,removeMeasurement:a,getMeasurement:l}},i$e="solar-construction",o$e=e=>{const[t,r]=(0,n.useState)([]),i=async e=>{try{const t=await(async e=>{const t=await Ey("/".concat(i$e,"/").concat(e,"/previous"),{method:"GET"}),n=await t.json();if(200!==t.status)throw new Error(null!==n&&void 0!==n?n:t.statusText);return n.map(BZe).filter(RZe)})(e);r(t)}catch(t){}};return(0,n.useEffect)((()=>{i(e)}),[e]),{previousInspections:t}},s$e=e=>{const[t,r]=(0,n.useState)(e.inspection);(0,n.useEffect)((()=>{r(e.inspection)}),[e.inspection]);const i=(0,n.useCallback)((async function(e){let n=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];try{n&&await(async(e,t)=>{const n={method:"PATCH",body:JSON.stringify({inspection:t})},r=await Ey("/".concat(i$e,"/").concat(e),n),i=await r.json();if(200!==r.status)throw new Error(null!==i&&void 0!==i?i:r.statusText);return i})(t.id,e),r((t=>({...t,...e})))}catch(i){}}),[t.id]);return{inspection:t,updateInspection:i}},a$e=(0,n.createContext)({selectedTool:IZe.HAND,setSelectedTool:()=>null,setOpenedToolCategory:()=>null}),l$e={bloc:{width:"100%",height:"100%",overflowY:"auto",backgroundColor:"white",padding:"0.5rem 1rem",borderRadius:"0.5rem",border:"1px solid ".concat(Rp)},title:{color:"black",fontSize:"20px",lineHeight:"28px"}};var c$e=__webpack_require__(31136);const u$e=Zo()((()=>({progressBar:{height:"2rem",flex:1,borderRadius:"0.5rem",backgroundColor:"transparent",zIndex:1,"& .MuiLinearProgress-bar":{backgroundColor:"#8FD2F5"}},progressBar2:{height:"2rem",width:"100%",flex:1,borderRadius:"0.5rem",backgroundColor:"#E6E6E6",position:"absolute",top:0,left:0},barContainer:{zIndex:2,position:"absolute",top:"5px",alignItems:"center"},barContentLabel:{paddingLeft:"0.5rem",color:"white",fontWeight:"bold",textShadow:"-1px -1px 0 #000, 1px -1px 0 #000, -1px 1px 0 #000, 1px 1px 0 #000",whiteSpace:"nowrap",textOverflow:"ellipsis"}}))),d$e=e=>{var t,n;const{classes:r}=u$e();return(0,Ae.jsxs)(ws,{container:!0,alignItems:"center",children:[(0,Ae.jsxs)(ws,{item:!0,position:"relative",width:"80%",children:[(0,Ae.jsxs)(wp,{sx:{position:"relative"},children:[(0,Ae.jsx)(Hpe,{className:r.progressBar,variant:"determinate",value:e.previousValue/e.objective*100}),(0,Ae.jsx)(Hpe,{className:r.progressBar2,variant:"determinate",value:e.currentValue/e.objective*100})]}),(0,Ae.jsxs)(ws,{container:!0,className:r.barContainer,columns:4,wrap:"nowrap",children:[(0,Ae.jsx)(ws,{item:!0,xs:2,children:(0,Ae.jsxs)(vu,{className:r.barContentLabel,children:[null!==(t=e.currentValue)&&void 0!==t?t:e.previousValue,"/",e.objective]})}),(0,Ae.jsx)(ws,{item:!0,xs:1,textAlign:"center",children:(0,Ae.jsxs)(vu,{color:"white",fontWeight:"bold",sx:{textShadow:"-1px -1px 0 #000, 1px -1px 0 #000, -1px 1px 0 #000, 1px 1px 0 #000"},children:[Ly((null!==(n=e.currentValue)&&void 0!==n?n:e.previousValue)/e.objective*100,2),"%"]})}),(0,Ae.jsx)(ws,{item:!0,xs:1})]})]}),(0,Ae.jsx)(ws,{item:!0,width:"20%",textAlign:"right",children:(0,Ae.jsxs)(vu,{color:"primary",fontWeight:"bold",children:[e.currentValue-e.previousValue>=0?"+":"-"," ",Math.abs(e.currentValue-e.previousValue)]})})]})};var h$e=["type","layout","connectNulls","ref"];function p$e(e){return p$e="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},p$e(e)}function f$e(e,t){if(null==e)return{};var n,r,i=function(e,t){if(null==e)return{};var n,r,i={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(i[n]=e[n]);return i}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function g$e(){return g$e=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},g$e.apply(this,arguments)}function m$e(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function y$e(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?m$e(Object(n),!0).forEach((function(t){P$e(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):m$e(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function v$e(e){return function(e){if(Array.isArray(e))return _$e(e)}(e)||function(e){if("undefined"!==typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"===typeof e)return _$e(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return _$e(e,t)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function _$e(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function b$e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,C$e(r.key),r)}}function x$e(e,t){return x$e=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},x$e(e,t)}function S$e(e){var t=function(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=E$e(e);if(t){var i=E$e(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return function(e,t){if(t&&("object"===p$e(t)||"function"===typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return w$e(e)}(this,n)}}function w$e(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function E$e(e){return E$e=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},E$e(e)}function P$e(e,t,n){return(t=C$e(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function C$e(e){var t=function(e,t){if("object"!==p$e(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==p$e(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===p$e(t)?t:String(t)}var A$e=function(e){!function(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&x$e(e,t)}(s,e);var t,r,i,o=S$e(s);function s(){var e;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,s);for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return P$e(w$e(e=o.call.apply(o,[this].concat(n))),"state",{isAnimationFinished:!0,totalLength:0}),P$e(w$e(e),"generateSimpleStrokeDasharray",(function(e,t){return"".concat(t,"px ").concat(e-t,"px")})),P$e(w$e(e),"getStrokeDasharray",(function(t,n,r){var i=r.reduce((function(e,t){return e+t}));if(!i)return e.generateSimpleStrokeDasharray(n,t);for(var o=Math.floor(t/i),a=t%i,l=n-t,c=[],u=0,d=0;u<r.length;d+=r[u],++u)if(d+r[u]>a){c=[].concat(v$e(r.slice(0,u)),[a-d]);break}var h=c.length%2===0?[0,l]:[l];return[].concat(v$e(s.repeat(r,o)),v$e(c),h).map((function(e){return"".concat(e,"px")})).join(", ")})),P$e(w$e(e),"id",iGe("recharts-line-")),P$e(w$e(e),"pathRef",(function(t){e.mainCurve=t})),P$e(w$e(e),"handleAnimationEnd",(function(){e.setState({isAnimationFinished:!0}),e.props.onAnimationEnd&&e.props.onAnimationEnd()})),P$e(w$e(e),"handleAnimationStart",(function(){e.setState({isAnimationFinished:!1}),e.props.onAnimationStart&&e.props.onAnimationStart()})),e}return t=s,r=[{key:"componentDidMount",value:function(){if(this.props.isAnimationActive){var e=this.getTotalLength();this.setState({totalLength:e})}}},{key:"componentDidUpdate",value:function(){if(this.props.isAnimationActive){var e=this.getTotalLength();e!==this.state.totalLength&&this.setState({totalLength:e})}}},{key:"getTotalLength",value:function(){var e=this.mainCurve;try{return e&&e.getTotalLength&&e.getTotalLength()||0}catch(t){return 0}}},{key:"renderErrorBar",value:function(e,t){if(this.props.isAnimationActive&&!this.state.isAnimationFinished)return null;var r=this.props,i=r.points,o=r.xAxis,s=r.yAxis,a=r.layout,l=CGe(r.children,nUe);if(!l)return null;var c=function(e,t){return{x:e.x,y:e.y,value:e.value,errorVal:fUe(e.payload,t)}},u={clipPath:e?"url(#clipPath-".concat(t,")"):null};return n.createElement(BGe,u,l.map((function(e){return n.cloneElement(e,{key:"bar-".concat(e.props.dataKey),data:i,xAxis:o,yAxis:s,layout:a,dataPointFormatter:c})})))}},{key:"renderDots",value:function(e,t,r){if(this.props.isAnimationActive&&!this.state.isAnimationFinished)return null;var i=this.props,o=i.dot,a=i.points,l=i.dataKey,c=GGe(this.props,!1),u=GGe(o,!0),d=a.map((function(e,t){var n=y$e(y$e(y$e({key:"dot-".concat(t),r:3},c),u),{},{value:e.value,dataKey:l,cx:e.x,cy:e.y,index:t,payload:e.payload});return s.renderDotItem(o,n)})),h={clipPath:e?"url(#clipPath-".concat(t?"":"dots-").concat(r,")"):null};return n.createElement(BGe,g$e({className:"recharts-line-dots",key:"dots"},h),d)}},{key:"renderCurveStatically",value:function(e,t,r,i){var o=this.props,s=o.type,a=o.layout,l=o.connectNulls,c=(o.ref,f$e(o,h$e)),u=y$e(y$e(y$e({},GGe(c,!0)),{},{fill:"none",className:"recharts-line-curve",clipPath:t?"url(#clipPath-".concat(r,")"):null,points:e},i),{},{type:s,layout:a,connectNulls:l});return n.createElement(zXe,g$e({},u,{pathRef:this.pathRef}))}},{key:"renderCurveWithAnimation",value:function(e,t){var r=this,i=this.props,o=i.points,s=i.strokeDasharray,a=i.isAnimationActive,l=i.animationBegin,c=i.animationDuration,u=i.animationEasing,d=i.animationId,h=i.animateNewValues,p=i.width,f=i.height,g=this.state,m=g.prevPoints,y=g.totalLength;return n.createElement($Me,{begin:l,duration:c,isActive:a,easing:u,from:{t:0},to:{t:1},key:"line-".concat(d),onAnimationEnd:this.handleAnimationEnd,onAnimationStart:this.handleAnimationStart},(function(n){var i=n.t;if(m){var a=m.length/o.length,l=o.map((function(e,t){var n=Math.floor(t*a);if(m[n]){var r=m[n],o=aGe(r.x,e.x),s=aGe(r.y,e.y);return y$e(y$e({},e),{},{x:o(i),y:s(i)})}if(h){var l=aGe(2*p,e.x),c=aGe(f/2,e.y);return y$e(y$e({},e),{},{x:l(i),y:c(i)})}return y$e(y$e({},e),{},{x:e.x,y:e.y})}));return r.renderCurveStatically(l,e,t)}var c,u=aGe(0,y)(i);if(s){var d="".concat(s).split(/[,\s]+/gim).map((function(e){return parseFloat(e)}));c=r.getStrokeDasharray(u,y,d)}else c=r.generateSimpleStrokeDasharray(y,u);return r.renderCurveStatically(o,e,t,{strokeDasharray:c})}))}},{key:"renderCurve",value:function(e,t){var n=this.props,r=n.points,i=n.isAnimationActive,o=this.state,s=o.prevPoints,a=o.totalLength;return i&&r&&r.length&&(!s&&a>0||!xBe()(s,r))?this.renderCurveWithAnimation(e,t):this.renderCurveStatically(r,e,t)}},{key:"render",value:function(){var e,t=this.props,r=t.hide,i=t.dot,o=t.points,s=t.className,a=t.xAxis,l=t.yAxis,c=t.top,u=t.left,d=t.width,h=t.height,p=t.isAnimationActive,f=t.id;if(r||!o||!o.length)return null;var g=this.state.isAnimationFinished,m=1===o.length,y=UIe("recharts-line",s),v=a&&a.allowDataOverflow,_=l&&l.allowDataOverflow,b=v||_,x=jIe()(f)?this.id:f,S=null!==(e=GGe(i,!1))&&void 0!==e?e:{r:3,strokeWidth:2},w=S.r,E=void 0===w?3:w,P=S.strokeWidth,C=void 0===P?2:P,A=(function(e){return e&&"object"===bGe(e)&&"cx"in e&&"cy"in e&&"r"in e}(i)?i:{}).clipDot,k=void 0===A||A,j=2*E+C;return n.createElement(BGe,{className:y},v||_?n.createElement("defs",null,n.createElement("clipPath",{id:"clipPath-".concat(x)},n.createElement("rect",{x:v?u:u-d/2,y:_?c:c-h/2,width:v?d:2*d,height:_?h:2*h})),!k&&n.createElement("clipPath",{id:"clipPath-dots-".concat(x)},n.createElement("rect",{x:u-j/2,y:c-j/2,width:d+j,height:h+j}))):null,!m&&this.renderCurve(b,x),this.renderErrorBar(b,x),(m||i)&&this.renderDots(b,k,x),(!p||g)&&KWe.renderCallByParent(this.props,o))}}],i=[{key:"getDerivedStateFromProps",value:function(e,t){return e.animationId!==t.prevAnimationId?{prevAnimationId:e.animationId,curPoints:e.points,prevPoints:t.curPoints}:e.points!==t.curPoints?{curPoints:e.points}:null}},{key:"repeat",value:function(e,t){for(var n=e.length%2!==0?[].concat(v$e(e),[0]):e,r=[],i=0;i<t;++i)r=[].concat(v$e(r),v$e(n));return r}},{key:"renderDotItem",value:function(e,t){var r;if(n.isValidElement(e))r=n.cloneElement(e,t);else if(GIe()(e))r=e(t);else{var i=UIe("recharts-line-dot",e?e.className:"");r=n.createElement(sDe,g$e({},t,{className:i}))}return r}}],r&&b$e(t.prototype,r),i&&b$e(t,i),Object.defineProperty(t,"prototype",{writable:!1}),s}(n.PureComponent);P$e(A$e,"displayName","Line"),P$e(A$e,"defaultProps",{xAxisId:0,yAxisId:0,connectNulls:!1,activeDot:!0,dot:!0,legendType:"line",stroke:"#3182bd",strokeWidth:1,fill:"#fff",points:[],isAnimationActive:!mOe.isSsr,animateNewValues:!0,animationBegin:0,animationDuration:1500,animationEasing:"ease",hide:!1,label:!1}),P$e(A$e,"getComposedData",(function(e){var t=e.props,n=e.xAxis,r=e.yAxis,i=e.xAxisTicks,o=e.yAxisTicks,s=e.dataKey,a=e.bandSize,l=e.displayedData,c=e.offset,u=t.layout,d=l.map((function(e,t){var l=fUe(e,s);return"horizontal"===u?{x:IUe({axis:n,ticks:i,bandSize:a,entry:e,index:t}),y:jIe()(l)?null:r.scale(l),value:l,payload:e}:{x:jIe()(l)?null:n.scale(l),y:IUe({axis:r,ticks:o,bandSize:a,entry:e,index:t}),value:l,payload:e}}));return y$e({points:d,layout:u},c)}));var k$e=OYe({chartName:"LineChart",GraphicalChild:A$e,axisComponents:[{axisType:"xAxis",AxisComp:iKe},{axisType:"yAxis",AxisComp:sKe}],formatAxisMap:uqe}),j$e=["x1","y1","x2","y2","key"],I$e=["offset"];function G$e(e){return G$e="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},G$e(e)}function T$e(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function M$e(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?T$e(Object(n),!0).forEach((function(t){O$e(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):T$e(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function O$e(e,t,n){return(t=function(e){var t=function(e,t){if("object"!==G$e(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==G$e(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===G$e(t)?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function R$e(){return R$e=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},R$e.apply(this,arguments)}function D$e(e,t){if(null==e)return{};var n,r,i=function(e,t){if(null==e)return{};var n,r,i={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(i[n]=e[n]);return i}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}var N$e=function(e){var t=e.fill;if(!t||"none"===t)return null;var r=e.fillOpacity,i=e.x,o=e.y,s=e.width,a=e.height;return n.createElement("rect",{x:i,y:o,width:s,height:a,stroke:"none",fill:t,fillOpacity:r,className:"recharts-cartesian-grid-bg"})};function L$e(e,t){var r;if(n.isValidElement(e))r=n.cloneElement(e,t);else if(GIe()(e))r=e(t);else{var i=t.x1,o=t.y1,s=t.x2,a=t.y2,l=t.key,c=D$e(t,j$e),u=GGe(c,!1),d=(u.offset,D$e(u,I$e));r=n.createElement("line",R$e({},d,{x1:i,y1:o,x2:s,y2:a,fill:"none",key:l}))}return r}function V$e(e){var t=e.x,r=e.width,i=e.horizontal,o=void 0===i||i,s=e.horizontalPoints;if(!o||!s||!s.length)return null;var a=s.map((function(n,i){var s=M$e(M$e({},e),{},{x1:t,y1:n,x2:t+r,y2:n,key:"line-".concat(i),index:i});return L$e(o,s)}));return n.createElement("g",{className:"recharts-cartesian-grid-horizontal"},a)}function F$e(e){var t=e.y,r=e.height,i=e.vertical,o=void 0===i||i,s=e.verticalPoints;if(!o||!s||!s.length)return null;var a=s.map((function(n,i){var s=M$e(M$e({},e),{},{x1:n,y1:t,x2:n,y2:t+r,key:"line-".concat(i),index:i});return L$e(o,s)}));return n.createElement("g",{className:"recharts-cartesian-grid-vertical"},a)}function z$e(e){var t=e.horizontalFill,r=e.fillOpacity,i=e.x,o=e.y,s=e.width,a=e.height,l=e.horizontalPoints,c=e.horizontal;if(!(void 0===c||c)||!t||!t.length)return null;var u=l.map((function(e){return Math.round(e+o-o)})).sort((function(e,t){return e-t}));o!==u[0]&&u.unshift(0);var d=u.map((function(e,l){var c=!u[l+1]?o+a-e:u[l+1]-e;if(c<=0)return null;var d=l%t.length;return n.createElement("rect",{key:"react-".concat(l),y:e,x:i,height:c,width:s,stroke:"none",fill:t[d],fillOpacity:r,className:"recharts-cartesian-grid-bg"})}));return n.createElement("g",{className:"recharts-cartesian-gridstripes-horizontal"},d)}function B$e(e){var t=e.vertical,r=void 0===t||t,i=e.verticalFill,o=e.fillOpacity,s=e.x,a=e.y,l=e.width,c=e.height,u=e.verticalPoints;if(!r||!i||!i.length)return null;var d=u.map((function(e){return Math.round(e+s-s)})).sort((function(e,t){return e-t}));s!==d[0]&&d.unshift(0);var h=d.map((function(e,t){var r=!d[t+1]?s+l-e:d[t+1]-e;if(r<=0)return null;var u=t%i.length;return n.createElement("rect",{key:"react-".concat(t),x:e,y:a,width:r,height:c,stroke:"none",fill:i[u],fillOpacity:o,className:"recharts-cartesian-grid-bg"})}));return n.createElement("g",{className:"recharts-cartesian-gridstripes-vertical"},h)}var U$e=function(e,t){var n=e.xAxis,r=e.width,i=e.height,o=e.offset;return bUe(zYe(M$e(M$e(M$e({},nKe.defaultProps),n),{},{ticks:xUe(n,!0),viewBox:{x:0,y:0,width:r,height:i}})),o.left,o.left+o.width,t)},W$e=function(e,t){var n=e.yAxis,r=e.width,i=e.height,o=e.offset;return bUe(zYe(M$e(M$e(M$e({},nKe.defaultProps),n),{},{ticks:xUe(n,!0),viewBox:{x:0,y:0,width:r,height:i}})),o.top,o.top+o.height,t)},H$e={horizontal:!0,vertical:!0,horizontalPoints:[],verticalPoints:[],stroke:"#ccc",fill:"none",verticalFill:[],horizontalFill:[]};function q$e(e){var t,r,i,o,s,a,l=Rqe(),c=Dqe(),u=(0,n.useContext)(kqe),d=M$e(M$e({},e),{},{stroke:null!==(t=e.stroke)&&void 0!==t?t:H$e.stroke,fill:null!==(r=e.fill)&&void 0!==r?r:H$e.fill,horizontal:null!==(i=e.horizontal)&&void 0!==i?i:H$e.horizontal,horizontalFill:null!==(o=e.horizontalFill)&&void 0!==o?o:H$e.horizontalFill,vertical:null!==(s=e.vertical)&&void 0!==s?s:H$e.vertical,verticalFill:null!==(a=e.verticalFill)&&void 0!==a?a:H$e.verticalFill}),h=d.x,p=d.y,f=d.width,g=d.height,m=d.xAxis,y=d.yAxis,v=d.syncWithTicks,_=d.horizontalValues,b=d.verticalValues;if(!tGe(f)||f<=0||!tGe(g)||g<=0||!tGe(h)||h!==+h||!tGe(p)||p!==+p)return null;var x=d.verticalCoordinatesGenerator||U$e,S=d.horizontalCoordinatesGenerator||W$e,w=d.horizontalPoints,E=d.verticalPoints;if((!w||!w.length)&&GIe()(S)){var P=_&&_.length,C=S({yAxis:y?M$e(M$e({},y),{},{ticks:P?_:y.ticks}):void 0,width:l,height:c,offset:u},!!P||v);GOe(Array.isArray(C),"horizontalCoordinatesGenerator should return Array but instead it returned [".concat(G$e(C),"]")),Array.isArray(C)&&(w=C)}if((!E||!E.length)&&GIe()(x)){var A=b&&b.length,k=x({xAxis:m?M$e(M$e({},m),{},{ticks:A?b:m.ticks}):void 0,width:l,height:c,offset:u},!!A||v);GOe(Array.isArray(k),"verticalCoordinatesGenerator should return Array but instead it returned [".concat(G$e(k),"]")),Array.isArray(k)&&(E=k)}return n.createElement("g",{className:"recharts-cartesian-grid"},n.createElement(N$e,{fill:d.fill,fillOpacity:d.fillOpacity,x:d.x,y:d.y,width:d.width,height:d.height}),n.createElement(V$e,R$e({},d,{offset:u,horizontalPoints:w})),n.createElement(F$e,R$e({},d,{offset:u,verticalPoints:E})),n.createElement(z$e,R$e({},d,{horizontalPoints:w})),n.createElement(B$e,R$e({},d,{verticalPoints:E})))}q$e.displayName="CartesianGrid";const X$e=Zo()((()=>({root:{marginLeft:"-2rem",width:"calc(100% + 2rem)"}}))),Y$e=e=>{const{classes:t}=X$e(),{inspectionDates:r,inspectionValues:i,constructionObjectives:o}=e,[s,a]=(0,n.useState)();(0,n.useEffect)((()=>{a(l(r,i))}),[r,i]);const l=(e,t)=>e.map(((e,n)=>({date:e.date,value:t[n],objective:o})));return(0,Ae.jsx)(wp,{className:t.root,children:(0,Ae.jsx)(fKe,{height:150,children:(0,Ae.jsxs)(k$e,{data:s,children:[(0,Ae.jsx)(iKe,{dataKey:"date"}),(0,Ae.jsx)(sKe,{domain:[0,o],tick:{fontWeight:"bold"}}),(0,Ae.jsx)(q$e,{stroke:"#f5f5f5"}),(0,Ae.jsx)(A$e,{type:"linear",dataKey:"value",stroke:"#00A6FF",children:(0,Ae.jsx)(KWe,{dataKey:"value",position:"center",stroke:"#00A6FF",dy:-12})}),(0,Ae.jsx)(A$e,{type:"linear",dataKey:"objective",stroke:"#00A6FF",strokeDasharray:"5 5"}),(0,Ae.jsx)(IOe,{})]})})})},K$e=Zo()((()=>({accordion:{boxShadow:"none","& .MuiAccordionSummary-root":{minHeight:"40px"}},summary:{flexDirection:"row-reverse",padding:0,"& .MuiAccordionSummary-content":{margin:0}},details:{padding:0,paddingTop:"0.5rem"},accordionNoGraph:{pointerEvents:"none",boxShadow:"none","& .MuiAccordionSummary-root":{minHeight:"40px"}}}))),Z$e=e=>{const{classes:t}=K$e(),{data:n,setCardExpanded:r,cardExpanded:i}=e;return(0,Ae.jsx)(wp,{width:"100%",children:(0,Ae.jsxs)(Ph,{expanded:i===e.title,onChange:()=>{i===e.title?r(null):r(e.title)},className:e.withGraph?t.accordion:t.accordionNoGraph,children:[(0,Ae.jsx)(Th,{className:t.summary,expandIcon:e.withGraph&&(i===e.title?(0,Ae.jsx)(c$e.c,{style:{color:"#00A6FF",transform:"rotate(-90deg)"}}):(0,Ae.jsx)(c$e.c,{style:{color:"#00A6FF"}})),children:(0,Ae.jsxs)(wp,{display:"flex",justifyContent:"space-between",alignItems:"center",width:"100%",height:"100%",gap:"1.5rem",children:[(0,Ae.jsx)(vu,{width:"40%",fontWeight:"bold",fontSize:"1rem",lineHeight:"140%",color:"black",children:Sq(e.title)}),(0,Ae.jsx)(d$e,{currentValue:e.currentValue,previousValue:e.previousValue,objective:e.objective})]})}),e.withGraph&&(0,Ae.jsx)(Dh,{className:t.details,children:(0,Ae.jsx)(Y$e,{inspectionDates:n.map((e=>e.date)),inspectionValues:n.map((t=>t.count[e.title.toUpperCase()])),constructionObjectives:e.objective})})]})})};let $$e=function(e){return e.MODULE="Module",e.PILE="Pile",e}({}),J$e=function(e){return e.NOT_INSTALLED="NOT_INSTALLED",e.INSTALLED="INSTALLED",e.DEVIATION="DEVIATION",e}({});const Q$e=Object.freeze({[J$e.NOT_INSTALLED]:"Not installed",[J$e.INSTALLED]:"Installed",[J$e.DEVIATION]:"Installed with deviation"}),eJe=CC.object({id:CC.string(),type:CC.nativeEnum($$e),status:CC.nativeEnum(J$e)}),tJe=Object.freeze({[J$e.NOT_INSTALLED]:{[$$e.MODULE]:{stroke:jp,fill:nU(jp,.1),size:1},[$$e.PILE]:{stroke:jp,fill:nU(jp,.1),size:2}},[J$e.INSTALLED]:{[$$e.MODULE]:{stroke:Up,fill:nU(Up,.1),size:1},[$$e.PILE]:{stroke:Up,fill:nU(Up,.1),size:3}},[J$e.DEVIATION]:{[$$e.MODULE]:{stroke:Bp,fill:nU(Bp,.1),size:1},[$$e.PILE]:{stroke:Bp,fill:nU(Bp,.1),size:2}}}),nJe={stroke:"#0000ff",fill:nU("#0000ff",.8),size:2},rJe=Zo()(((e,t)=>({root:{...l$e.bloc,border:t.isSmartphone?"none":l$e.bloc.border,paddingRight:0,overflowY:"hidden"},title:{...l$e.title},progressContainer:{paddingRight:"1rem",overflowY:"auto"}}))),iJe=e=>{const{classes:t}=rJe({isSmartphone:Wy()}),r=(0,n.useContext)(mZe);if(!r)return(0,Ae.jsx)(Ae.Fragment,{});const{previousInspectionsCtx:{previousInspections:i},subAsset:o,inspectionCtx:{inspection:s},stampCtx:{stamps:a},itemsCtx:{itemsMap:l}}=r,[c,u]=(0,n.useState)(null),d=(0,n.useMemo)((()=>{const e={...s,stamps:a,items:[...l.values()]},t=[...i,e].map((e=>{var t,n;const r=e.stamps.reduce(((e,t)=>(e[t.type]+=1,t.type===sA.PILE&&(e[sA.FOUNDATION]+=1),e)),{[sA.FOUNDATION]:0,[sA.PILE]:0,[sA.MODULE]:0,[sA.TABLE]:0}),i=(null!==(t=e.items)&&void 0!==t?t:[]).reduce(((e,t)=>(t.status!==J$e.NOT_INSTALLED&&(e[t.type]+=1),e)),{[$$e.PILE]:0,[$$e.MODULE]:0}),o={[sA.FOUNDATION]:r[sA.FOUNDATION],[sA.PILE]:i[$$e.PILE]||r[sA.PILE],[sA.MODULE]:i[$$e.MODULE]||r[sA.MODULE],[sA.TABLE]:r[sA.TABLE]};return{date:null!==(n=e.inspectionDates.inspected)&&void 0!==n?n:"",count:o}}));return t}),[i,s,a,l]),h=(0,n.useMemo)((()=>{var e;return Object.values(null!==(e=null===o||void 0===o?void 0:o.constructionObjectives)&&void 0!==e?e:{}).every((e=>0===e))}),[null===o||void 0===o?void 0:o.constructionObjectives]);return(0,n.useEffect)((()=>{const e=setTimeout((()=>{(e=>{const t=document.getElementById(e);t&&t.scrollIntoView({behavior:"smooth"})})(null!==c&&void 0!==c?c:sA.FOUNDATION)}),200);return()=>clearTimeout(e)}),[c]),(0,Ae.jsxs)(ws,{container:!0,direction:"column",wrap:"nowrap",className:t.root,children:[(0,Ae.jsx)(ws,{item:!0,children:(0,Ae.jsx)(vu,{className:t.title,children:"Construction progress"})}),(0,Ae.jsx)(ws,{item:!0,container:!0,direction:"column",wrap:"nowrap",rowGap:"0.25rem",alignItems:"center",paddingTop:"0.5rem",className:t.progressContainer,children:h?(0,Ae.jsx)(ws,{item:!0,width:"100%",children:(0,Ae.jsx)(vu,{fontStyle:"italic",color:"black",children:"No construction objectives"})}):Object.keys(sA).map((t=>{var n,r,i,s,a,l,h,p,f;return(null===o||void 0===o||null===(n=o.constructionObjectives)||void 0===n?void 0:n[t])>0&&(0,Ae.jsx)(ws,{item:!0,width:"100%",id:t,children:(0,Ae.jsx)(Z$e,{data:d,title:sA[t],cardExpanded:c,setCardExpanded:u,previousValue:null!==(r=null===(i=d[d.length-2])||void 0===i||null===(s=i.count)||void 0===s?void 0:s[t])&&void 0!==r?r:0,currentValue:null!==(a=null===(l=d[d.length-1])||void 0===l||null===(h=l.count)||void 0===h?void 0:h[t])&&void 0!==a?a:0,objective:null!==(p=null===o||void 0===o||null===(f=o.constructionObjectives)||void 0===f?void 0:f[sA[t]])&&void 0!==p?p:0,withGraph:e.withGraph})},t)}))})]})};var oJe=__webpack_require__(86744),sJe=__webpack_require__(42016),aJe=__webpack_require__(91428);const lJe=Zo()((()=>({root:{...l$e.bloc,border:"none"},itemsContainer:{color:"white",gap:"0.5rem",padding:"0.5rem 0",width:"100%",margin:"auto"},title:{...l$e.title},metricsText:{textAlign:"center",color:"white",fontWeight:"bold",textShadow:"-1px -1px 0 #000, 1px -1px 0 #000, -1px 1px 0 #000, 1px 1px 0 #000"}}))),cJe=e=>{const{withTitle:t}=e,{classes:r}=lJe(),i=t?"1.5rem":"0.8rem",o=(0,n.useContext)(mZe);if(!o)return(0,Ae.jsx)(Ae.Fragment,{});const{annotationCtx:s}=o,a=(0,n.useMemo)((()=>s.annotations),[s]),l=(0,n.useMemo)((()=>a.filter((e=>e.type!==aA.NOTE))),[a]),c=(0,n.useMemo)((()=>a.filter((e=>e.state.status===pAe.CLOSED))),[l]);return(0,Ae.jsxs)(ws,{container:!0,direction:"column",wrap:"nowrap",height:"100%",className:r.root,children:[t&&(0,Ae.jsx)(ws,{item:!0,children:(0,Ae.jsx)(vu,{style:l$e.title,children:"Annotations metrics"})}),(0,Ae.jsxs)(ws,{item:!0,container:!0,className:r.itemsContainer,columns:2,wrap:"nowrap",children:[(0,Ae.jsxs)(ws,{item:!0,container:!0,wrap:"nowrap",xs:6,alignItems:"center",justifyContent:"center",gap:"0.5rem",bgcolor:jp,padding:"0.5rem",borderRadius:"5px",children:[(0,Ae.jsx)(aJe.c,{stroke:"black",sx:{strokeWidth:"0.5px"}}),(0,Ae.jsxs)(vu,{className:r.metricsText,fontSize:i,children:[a.length," Annotation",a.length>1?"s":""]})]}),(0,Ae.jsxs)(ws,{item:!0,container:!0,wrap:"nowrap",xs:6,alignItems:"center",justifyContent:"center",gap:"0.5rem",bgcolor:"#67AD5B",padding:"0.5rem",borderRadius:"5px",children:[(0,Ae.jsx)(sJe.c,{stroke:"black",sx:{strokeWidth:"0.5px"}}),(0,Ae.jsxs)(vu,{className:r.metricsText,fontSize:i,children:[c.length,"/",a.length," Resolved"]})]})]})]})},uJe=Zo()(((e,t)=>({root:{...l$e.bloc,border:t.isSmartphone?"none":l$e.bloc.border}}))),dJe=e=>{const t=(0,n.useContext)(mZe);if(!t)return(0,Ae.jsx)(Ae.Fragment,{});const{inspectionCtx:{inspection:r,updateInspection:i},isExternalUser:o}=t,{classes:s}=uJe({isSmartphone:Wy()}),[a,l]=(0,n.useState)(!1),[c,u]=(0,n.useState)(r.conclusion),[d,h]=(0,n.useState)(!1),p=(0,n.useCallback)((async e=>{await i({conclusion:e})}),[i]);return(0,Ae.jsxs)(ws,{container:!0,direction:"column",wrap:"nowrap",maxHeight:"15rem",className:s.root,children:[(0,Ae.jsxs)(ws,{item:!0,container:!0,justifyContent:"space-between",alignItems:"center",wrap:"nowrap",children:[(0,Ae.jsx)(ws,{item:!0,children:(0,Ae.jsx)(vu,{style:l$e.title,children:"Conclusion notes"})}),e.withMetrics&&(0,Ae.jsx)(ws,{item:!0,flex:1,children:(0,Ae.jsx)(cJe,{})})]}),(0,Ae.jsxs)(ws,{item:!0,width:"100%",overflow:"auto",container:!0,children:[(0,Ae.jsx)(ws,{item:!0,width:"100%",flex:1,children:a?(0,Ae.jsx)(iE,{multiline:!0,fullWidth:!0,value:c,onChange:e=>u(e.target.value),disabled:!a||d,inputProps:{maxLength:400}}):(0,Ae.jsx)(vu,{color:"black",fontSize:"1rem",lineHeight:"1.5rem",width:"100%",paragraph:!0,whiteSpace:"pre-line",paddingTop:"0.5rem",children:r.conclusion||"No conclusion notes"})}),!o&&(0,Ae.jsx)(ws,{item:!0,position:"sticky",top:0,zIndex:1,height:"100%",children:a?(0,Ae.jsxs)(wp,{display:"flex",justifyContent:"space-between",alignItems:"center",children:[d?(0,Ae.jsx)(yf,{size:22}):(0,Ae.jsx)(Gu,{color:"primary",onClick:async()=>{h(!0),await p(c||""),l(!1),h(!1)},children:(0,Ae.jsx)(oJe.c,{})}),(0,Ae.jsx)(Gu,{color:"primary",onClick:()=>{u(r.conclusion),l(!1)},children:(0,Ae.jsx)(zEe.c,{})})]}):(0,Ae.jsx)(Gu,{color:"primary",onClick:()=>{l(!a)},children:(0,Ae.jsx)(r8.c,{})})})]})]})};var hJe=__webpack_require__(18344),pJe={grad:.9,turn:360,rad:360/(2*Math.PI)},fJe=function(e){return"string"==typeof e?e.length>0:"number"==typeof e},gJe=function(e,t,n){return void 0===t&&(t=0),void 0===n&&(n=Math.pow(10,t)),Math.round(n*e)/n+0},mJe=function(e,t,n){return void 0===t&&(t=0),void 0===n&&(n=1),e>n?n:e>t?e:t},yJe=function(e){return(e=isFinite(e)?e%360:0)>0?e:e+360},vJe=function(e){return{r:mJe(e.r,0,255),g:mJe(e.g,0,255),b:mJe(e.b,0,255),a:mJe(e.a)}},_Je=function(e){return{r:gJe(e.r),g:gJe(e.g),b:gJe(e.b),a:gJe(e.a,3)}},bJe=/^#([0-9a-f]{3,8})$/i,xJe=function(e){var t=e.toString(16);return t.length<2?"0"+t:t},SJe=function(e){var t=e.r,n=e.g,r=e.b,i=e.a,o=Math.max(t,n,r),s=o-Math.min(t,n,r),a=s?o===t?(n-r)/s:o===n?2+(r-t)/s:4+(t-n)/s:0;return{h:60*(a<0?a+6:a),s:o?s/o*100:0,v:o/255*100,a:i}},wJe=function(e){var t=e.h,n=e.s,r=e.v,i=e.a;t=t/360*6,n/=100,r/=100;var o=Math.floor(t),s=r*(1-n),a=r*(1-(t-o)*n),l=r*(1-(1-t+o)*n),c=o%6;return{r:255*[r,a,s,s,l,r][c],g:255*[l,r,r,a,s,s][c],b:255*[s,s,l,r,r,a][c],a:i}},EJe=function(e){return{h:yJe(e.h),s:mJe(e.s,0,100),l:mJe(e.l,0,100),a:mJe(e.a)}},PJe=function(e){return{h:gJe(e.h),s:gJe(e.s),l:gJe(e.l),a:gJe(e.a,3)}},CJe=function(e){return wJe((n=(t=e).s,{h:t.h,s:(n*=((r=t.l)<50?r:100-r)/100)>0?2*n/(r+n)*100:0,v:r+n,a:t.a}));var t,n,r},AJe=function(e){return{h:(t=SJe(e)).h,s:(i=(200-(n=t.s))*(r=t.v)/100)>0&&i<200?n*r/100/(i<=100?i:200-i)*100:0,l:i/2,a:t.a};var t,n,r,i},kJe=/^hsla?\(\s*([+-]?\d*\.?\d+)(deg|rad|grad|turn)?\s*,\s*([+-]?\d*\.?\d+)%\s*,\s*([+-]?\d*\.?\d+)%\s*(?:,\s*([+-]?\d*\.?\d+)(%)?\s*)?\)$/i,jJe=/^hsla?\(\s*([+-]?\d*\.?\d+)(deg|rad|grad|turn)?\s+([+-]?\d*\.?\d+)%\s+([+-]?\d*\.?\d+)%\s*(?:\/\s*([+-]?\d*\.?\d+)(%)?\s*)?\)$/i,IJe=/^rgba?\(\s*([+-]?\d*\.?\d+)(%)?\s*,\s*([+-]?\d*\.?\d+)(%)?\s*,\s*([+-]?\d*\.?\d+)(%)?\s*(?:,\s*([+-]?\d*\.?\d+)(%)?\s*)?\)$/i,GJe=/^rgba?\(\s*([+-]?\d*\.?\d+)(%)?\s+([+-]?\d*\.?\d+)(%)?\s+([+-]?\d*\.?\d+)(%)?\s*(?:\/\s*([+-]?\d*\.?\d+)(%)?\s*)?\)$/i,TJe={string:[[function(e){var t=bJe.exec(e);return t?(e=t[1]).length<=4?{r:parseInt(e[0]+e[0],16),g:parseInt(e[1]+e[1],16),b:parseInt(e[2]+e[2],16),a:4===e.length?gJe(parseInt(e[3]+e[3],16)/255,2):1}:6===e.length||8===e.length?{r:parseInt(e.substr(0,2),16),g:parseInt(e.substr(2,2),16),b:parseInt(e.substr(4,2),16),a:8===e.length?gJe(parseInt(e.substr(6,2),16)/255,2):1}:null:null},"hex"],[function(e){var t=IJe.exec(e)||GJe.exec(e);return t?t[2]!==t[4]||t[4]!==t[6]?null:vJe({r:Number(t[1])/(t[2]?100/255:1),g:Number(t[3])/(t[4]?100/255:1),b:Number(t[5])/(t[6]?100/255:1),a:void 0===t[7]?1:Number(t[7])/(t[8]?100:1)}):null},"rgb"],[function(e){var t=kJe.exec(e)||jJe.exec(e);if(!t)return null;var n,r,i=EJe({h:(n=t[1],r=t[2],void 0===r&&(r="deg"),Number(n)*(pJe[r]||1)),s:Number(t[3]),l:Number(t[4]),a:void 0===t[5]?1:Number(t[5])/(t[6]?100:1)});return CJe(i)},"hsl"]],object:[[function(e){var t=e.r,n=e.g,r=e.b,i=e.a,o=void 0===i?1:i;return fJe(t)&&fJe(n)&&fJe(r)?vJe({r:Number(t),g:Number(n),b:Number(r),a:Number(o)}):null},"rgb"],[function(e){var t=e.h,n=e.s,r=e.l,i=e.a,o=void 0===i?1:i;if(!fJe(t)||!fJe(n)||!fJe(r))return null;var s=EJe({h:Number(t),s:Number(n),l:Number(r),a:Number(o)});return CJe(s)},"hsl"],[function(e){var t=e.h,n=e.s,r=e.v,i=e.a,o=void 0===i?1:i;if(!fJe(t)||!fJe(n)||!fJe(r))return null;var s=function(e){return{h:yJe(e.h),s:mJe(e.s,0,100),v:mJe(e.v,0,100),a:mJe(e.a)}}({h:Number(t),s:Number(n),v:Number(r),a:Number(o)});return wJe(s)},"hsv"]]},MJe=function(e,t){for(var n=0;n<t.length;n++){var r=t[n][0](e);if(r)return[r,t[n][1]]}return[null,void 0]},OJe=function(e){return"string"==typeof e?MJe(e.trim(),TJe.string):"object"==typeof e&&null!==e?MJe(e,TJe.object):[null,void 0]},RJe=function(e,t){var n=AJe(e);return{h:n.h,s:mJe(n.s+100*t,0,100),l:n.l,a:n.a}},DJe=function(e){return(299*e.r+587*e.g+114*e.b)/1e3/255},NJe=function(e,t){var n=AJe(e);return{h:n.h,s:n.s,l:mJe(n.l+100*t,0,100),a:n.a}},LJe=function(){function e(e){this.parsed=OJe(e)[0],this.rgba=this.parsed||{r:0,g:0,b:0,a:1}}return e.prototype.isValid=function(){return null!==this.parsed},e.prototype.brightness=function(){return gJe(DJe(this.rgba),2)},e.prototype.isDark=function(){return DJe(this.rgba)<.5},e.prototype.isLight=function(){return DJe(this.rgba)>=.5},e.prototype.toHex=function(){return t=(e=_Je(this.rgba)).r,n=e.g,r=e.b,o=(i=e.a)<1?xJe(gJe(255*i)):"","#"+xJe(t)+xJe(n)+xJe(r)+o;var e,t,n,r,i,o},e.prototype.toRgb=function(){return _Je(this.rgba)},e.prototype.toRgbString=function(){return t=(e=_Je(this.rgba)).r,n=e.g,r=e.b,(i=e.a)<1?"rgba("+t+", "+n+", "+r+", "+i+")":"rgb("+t+", "+n+", "+r+")";var e,t,n,r,i},e.prototype.toHsl=function(){return PJe(AJe(this.rgba))},e.prototype.toHslString=function(){return t=(e=PJe(AJe(this.rgba))).h,n=e.s,r=e.l,(i=e.a)<1?"hsla("+t+", "+n+"%, "+r+"%, "+i+")":"hsl("+t+", "+n+"%, "+r+"%)";var e,t,n,r,i},e.prototype.toHsv=function(){return e=SJe(this.rgba),{h:gJe(e.h),s:gJe(e.s),v:gJe(e.v),a:gJe(e.a,3)};var e},e.prototype.invert=function(){return VJe({r:255-(e=this.rgba).r,g:255-e.g,b:255-e.b,a:e.a});var e},e.prototype.saturate=function(e){return void 0===e&&(e=.1),VJe(RJe(this.rgba,e))},e.prototype.desaturate=function(e){return void 0===e&&(e=.1),VJe(RJe(this.rgba,-e))},e.prototype.grayscale=function(){return VJe(RJe(this.rgba,-1))},e.prototype.lighten=function(e){return void 0===e&&(e=.1),VJe(NJe(this.rgba,e))},e.prototype.darken=function(e){return void 0===e&&(e=.1),VJe(NJe(this.rgba,-e))},e.prototype.rotate=function(e){return void 0===e&&(e=15),this.hue(this.hue()+e)},e.prototype.alpha=function(e){return"number"==typeof e?VJe({r:(t=this.rgba).r,g:t.g,b:t.b,a:e}):gJe(this.rgba.a,3);var t},e.prototype.hue=function(e){var t=AJe(this.rgba);return"number"==typeof e?VJe({h:e,s:t.s,l:t.l,a:t.a}):gJe(t.h)},e.prototype.isEqual=function(e){return this.toHex()===VJe(e).toHex()},e}(),VJe=function(e){return e instanceof LJe?e:new LJe(e)},FJe=[];var zJe=__webpack_require__(31736),BJe=__webpack_require__.n(zJe),UJe={"3d":n.createElement("path",{d:"M18 14.625V3.375L9 0 0 3.375v11.25L9 18l9-3.375zM9 2.136l5.918 2.22-5.98 2.242-5.919-2.22L9 2.137zM2 13.239V5.065l6.438 2.414v8.174L2 13.24zM9.438 15.7L16 13.239V5.018l-6.563 2.46V15.7z",transform:"translate(15 10)",fillRule:"evenodd"}),acrobat:n.createElement("path",{d:"M10.15 1.095C9.938.33 9.42-.051 8.984.005c-.528.068-1.09.382-1.314.876-.63 1.416.685 5.582.887 6.279-1.28 3.863-5.66 11.5-7.806 12.017-.045-.505.225-1.965 3.055-3.785.146-.157.315-.348.393-.472-2.392 1.168-5.492 3.044-3.628 4.448.102.079.259.146.439.213 1.426.528 3.425-1.201 5.435-5.121 2.213-.73 3.999-1.28 6.526-1.662 2.762 1.875 4.616 2.257 5.874 1.774.348-.135.898-.573 1.055-1.145-1.022 1.258-3.414.382-5.323-.82 1.763-.191 3.582-.303 4.369-.056 1 .314.965.808.954.876.079-.27.191-.708-.022-1.056-.842-1.37-4.706-.573-6.11-.427-2.212-1.336-3.74-3.717-4.358-5.436.573-2.212 1.19-3.818.742-5.413zm-.954 4.638C8.826 4.42 8.309 1.5 9.14.556c1.628.932.618 3.144.056 5.177zm3.044 6.514c-2.134.393-3.583.944-5.66 1.764.617-1.202 1.785-4.268 2.346-6.29.787 1.573 1.741 3.111 3.314 4.526z",transform:"translate(14 9)",fillRule:"evenodd"}),audio:n.createElement("path",{d:"M.25 4.75v4.5h3L7 13V1L3.25 4.75h-3zM10.375 7A3.375 3.375 0 0 0 8.5 3.977v6.037A3.355 3.355 0 0 0 10.375 7zM8.5.421v1.545A5.254 5.254 0 0 1 12.25 7a5.254 5.254 0 0 1-3.75 5.032v1.545A6.747 6.747 0 0 0 13.75 7 6.747 6.747 0 0 0 8.5.421z",transform:"translate(17 12)",fillRule:"evenodd"}),binary:n.createElement("path",{d:"M2.338 6.112c1.192 0 1.928-1.072 1.928-2.68 0-1.56-.576-2.504-1.8-2.504C1.274.928.538 2 .538 3.608c0 1.56.576 2.504 1.8 2.504zM1.61 3.408c0-1.008.24-1.568.776-1.568.376 0 .616.336.728.888l-1.504.776v-.096zM2.418 5.2c-.368 0-.608-.32-.72-.856l1.496-.768v.056c0 1.008-.24 1.568-.776 1.568zm7.03.8l.088-.944H8.36V.896L7.272.984v.592l-1.184.112.024.824h1.16v2.544h-1.32V6zm5.199 0l.088-.944h-1.176V.896L12.47.984v.592l-1.184.112.024.824h1.16v2.544h-1.32V6zM4.25 14l.088-.944H3.162v-4.16l-1.088.088v.592L.89 9.688l.024.824h1.16v2.544H.754V14zm5.198 0l.088-.944H8.36v-4.16l-1.088.088v.592l-1.184.112.024.824h1.16v2.544h-1.32V14zm3.287.112c1.192 0 1.928-1.072 1.928-2.68 0-1.56-.576-2.504-1.8-2.504-1.192 0-1.928 1.072-1.928 2.68 0 1.56.576 2.504 1.8 2.504zm-.728-2.704c0-1.008.24-1.568.776-1.568.376 0 .616.336.728.888l-1.504.776v-.096zm.808 1.792c-.368 0-.608-.32-.72-.856l1.496-.768v.056c0 1.008-.24 1.568-.776 1.568z",transform:"translate(16 11)",fillRule:"evenodd"}),code:n.createElement("path",{d:"M4.078 13.67c-1.875-.527-2.812-1.738-2.812-3.634V9.49C1.266 8.437.844 7.911 0 7.911V6.138c.844 0 1.266-.529 1.266-1.586v-.64c.015-.938.257-1.696.726-2.274C2.466 1.06 3.162.64 4.078.38l.492 1.375c-.656.25-.997.95-1.023 2.102v.695c0 1.167-.482 1.99-1.445 2.469.963.479 1.445 1.304 1.445 2.476v.688c.026 1.15.367 1.851 1.023 2.101l-.492 1.383zm7.844 0c1.875-.527 2.812-1.738 2.812-3.634V9.49c0-1.052.422-1.578 1.266-1.578V6.138c-.844 0-1.266-.529-1.266-1.586v-.64c-.015-.938-.257-1.696-.726-2.274-.474-.578-1.17-.998-2.086-1.258l-.492 1.375c.656.25.997.95 1.023 2.102v.695c0 1.167.482 1.99 1.445 2.469-.963.479-1.445 1.304-1.445 2.476v.688c-.026 1.15-.367 1.851-1.023 2.101l.492 1.383z",transform:"translate(16 13)",fillRule:"evenodd"}),code2:n.createElement("path",{d:"M7.4 10.6L2.8 6l4.6-4.6L6 0 0 6l6 6 1.4-1.4zm5.2 0L17.2 6l-4.6-4.6L14 0l6 6-6 6-1.4-1.4z",transform:"translate(14 14)",fillRule:"evenodd"}),compressed:n.createElement("path",{d:"M.25 0A.25.25 0 0 0 0 .25v1.5c0 .138.112.25.25.25h1.5A.25.25 0 0 0 2 1.75V.25A.25.25 0 0 0 1.75 0H.25zM1 17a1 1 0 0 0-1 1v6a1 1 0 0 0 1 1h2a1 1 0 0 0 1-1v-6a1 1 0 0 0-1-1H1zm0 4v3h2v-3H1zM2 2.25A.25.25 0 0 1 2.25 2h1.5a.25.25 0 0 1 .25.25v1.5a.25.25 0 0 1-.25.25h-1.5A.25.25 0 0 1 2 3.75v-1.5zM.25 4a.25.25 0 0 0-.25.25v1.5c0 .138.112.25.25.25h1.5A.25.25 0 0 0 2 5.75v-1.5A.25.25 0 0 0 1.75 4H.25zM2 6.25A.25.25 0 0 1 2.25 6h1.5a.25.25 0 0 1 .25.25v1.5a.25.25 0 0 1-.25.25h-1.5A.25.25 0 0 1 2 7.75v-1.5zM.25 8a.25.25 0 0 0-.25.25v1.5c0 .138.112.25.25.25h1.5A.25.25 0 0 0 2 9.75v-1.5A.25.25 0 0 0 1.75 8H.25zM2 10.25a.25.25 0 0 1 .25-.25h1.5a.25.25 0 0 1 .25.25v1.5a.25.25 0 0 1-.25.25h-1.5a.25.25 0 0 1-.25-.25v-1.5zM.25 12a.25.25 0 0 0-.25.25v1.5c0 .138.112.25.25.25h1.5a.25.25 0 0 0 .25-.25v-1.5a.25.25 0 0 0-.25-.25H.25zM2 14.25a.25.25 0 0 1 .25-.25h1.5a.25.25 0 0 1 .25.25v1.5a.25.25 0 0 1-.25.25h-1.5a.25.25 0 0 1-.25-.25v-1.5z",transform:"translate(15 1)",fillRule:"evenodd"}),document:n.createElement("path",{d:"M12 4H0v2h12V4zM0 10h18V8H0v2zM0 0v2h18V0H0z",transform:"translate(15 15)",fillRule:"evenodd"}),drive:n.createElement("path",{d:"M2.199.289A.5.5 0 0 1 2.652 0h8.696a.5.5 0 0 1 .453.289l1.867 4a.5.5 0 0 1-.453.711H.785a.5.5 0 0 1-.453-.711l1.867-4zM13 6H1a.752.752 0 0 0-.75.75v4.5c0 .412.338.75.75.75h12c.412 0 .75-.338.75-.75v-4.5A.752.752 0 0 0 13 6zm-9.75 4.5c-.825 0-1.5-.675-1.5-1.5s.675-1.5 1.5-1.5 1.5.675 1.5 1.5-.675 1.5-1.5 1.5z",transform:"translate(17 13)",fillRule:"evenodd"}),font:n.createElement("path",{d:"M3.722 8.702l-.686 1.89c-.053.14-.094.28-.123.421-.03.135-.044.252-.044.352 0 .304.097.527.29.668.2.14.501.21.905.21h.414V13H.083v-.756h.343c.176 0 .325-.018.448-.053a.81.81 0 0 0 .334-.22c.1-.105.193-.249.281-.43.094-.182.197-.416.308-.704L5.787.15h1.406l4.07 11.136c.07.187.14.343.21.466.077.123.165.222.264.298.1.07.214.12.343.15.129.03.281.044.457.044h.237V13H7.826v-.756h.413c.72 0 1.081-.287 1.081-.862 0-.1-.014-.202-.044-.307a3.274 3.274 0 0 0-.105-.36l-.72-2.013H3.72zM7.009 4.65c-.188-.533-.36-1.031-.519-1.494a15.92 15.92 0 0 1-.378-1.354 7.12 7.12 0 0 1-.15.633 16.95 16.95 0 0 1-.395 1.283c-.082.229-.175.484-.28.765L4.063 7.796h4.061L7.009 4.65zm8.411 5.74c0 .562.117.984.351 1.265.24.275.61.413 1.108.413.363 0 .691-.059.984-.176.3-.117.551-.284.756-.5.211-.218.372-.481.483-.792.112-.31.168-.656.168-1.037V8.104l-1.152.053c-.51.023-.937.088-1.283.193-.34.1-.615.243-.826.43a1.546 1.546 0 0 0-.457.678c-.088.27-.132.58-.132.931zm2.18-6.32c-.346 0-.627.05-.844.15a1.182 1.182 0 0 0-.501.404 1.594 1.594 0 0 0-.237.624c-.041.24-.062.5-.062.782-.498 0-.879-.085-1.143-.255-.257-.17-.386-.463-.386-.879 0-.31.085-.574.255-.79.17-.218.401-.393.694-.528.299-.14.644-.243 1.037-.308a7.76 7.76 0 0 1 1.257-.097c.55 0 1.031.056 1.441.167.41.106.753.282 1.029.528.275.246.48.568.615.967.14.392.21.876.21 1.45v4.667c0 .252.021.46.062.624a.928.928 0 0 0 .194.395c.088.1.202.17.343.211.146.041.319.062.518.062h.053V13H19.7l-.281-1.547h-.15c-.187.252-.369.483-.544.694-.176.211-.37.393-.58.545-.211.152-.452.27-.721.352a3.053 3.053 0 0 1-.958.131c-.399 0-.77-.058-1.116-.175a2.369 2.369 0 0 1-.888-.519 2.516 2.516 0 0 1-.58-.896c-.14-.364-.211-.791-.211-1.284 0-.955.34-1.664 1.02-2.127.68-.462 1.707-.714 3.084-.755l1.495-.053V6.285a6.93 6.93 0 0 0-.053-.888 1.778 1.778 0 0 0-.229-.703 1.14 1.14 0 0 0-.51-.457c-.216-.111-.51-.167-.878-.167z",transform:"translate(13 12)",fillRule:"evenodd"}),image:n.createElement("path",{d:"M13 0L9.25 5l2.85 3.8-1.6 1.2C8.81 7.75 6 4 6 4l-6 8h22L13 0z",transform:"translate(13 14)",fillRule:"evenodd"}),presentation:n.createElement("path",{d:"M2 4H0v10c0 1.1.9 2 2 2h14v-2H2V4zm16-4H6C4.9 0 4 .9 4 2v8c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2V2c0-1.1-.9-2-2-2zm0 10H6V2h12v8z",transform:"matrix(-1 0 0 1 34 12)",fillRule:"evenodd"}),settings:n.createElement("path",{d:"M13.572 8.735c.03-.24.053-.48.053-.735s-.023-.495-.053-.735l1.583-1.237a.378.378 0 0 0 .09-.48l-1.5-2.595a.377.377 0 0 0-.457-.165l-1.868.75a5.48 5.48 0 0 0-1.268-.735L9.868.815A.366.366 0 0 0 9.5.5h-3a.366.366 0 0 0-.367.315l-.285 1.988a5.762 5.762 0 0 0-1.268.735l-1.868-.75a.366.366 0 0 0-.457.165l-1.5 2.595a.37.37 0 0 0 .09.48l1.583 1.237c-.03.24-.053.488-.053.735 0 .248.022.495.053.735L.845 9.973a.378.378 0 0 0-.09.48l1.5 2.595c.09.165.292.225.458.165l1.867-.75c.39.3.81.547 1.268.735l.285 1.987c.022.18.18.315.367.315h3a.366.366 0 0 0 .367-.315l.285-1.988a5.762 5.762 0 0 0 1.268-.734l1.867.75c.173.067.368 0 .458-.165l1.5-2.595a.378.378 0 0 0-.09-.48l-1.582-1.238zM8 10.625A2.628 2.628 0 0 1 5.375 8 2.628 2.628 0 0 1 8 5.375 2.628 2.628 0 0 1 10.625 8 2.628 2.628 0 0 1 8 10.625z",transform:"translate(16 11)",fillRule:"evenodd"}),spreadsheet:n.createElement("path",{d:"M0 8h6V5H0v3zm0 5h6v-3H0v3zM0 3h6V0H0v3zm8 5h12V5H8v3zm0 5h12v-3H8v3zM8 0v3h12V0H8z",transform:"translate(14 14)",fillRule:"evenodd"}),vector:n.createElement("path",{d:"M14.5 2V1a1 1 0 0 0-1-1h-3a1 1 0 0 0-1 1v1H3.937a2 2 0 1 0 0 1h3.936A9 9 0 0 0 3 11v1h2v-1a7.003 7.003 0 0 1 4.594-6.576A1 1 0 0 0 10.5 5h3a1 1 0 0 0 .906-.576A7.003 7.003 0 0 1 19 11v1h2v-1a9 9 0 0 0-4.873-8h3.936a2 2 0 1 0 0-1H14.5zm-1-1h-3v3h3V1zM2 1.5a1 1 0 1 0 0 2 1 1 0 0 0 0-2zm19 1a1 1 0 1 0 2 0 1 1 0 0 0-2 0z",transform:"translate(12 14)",fillRule:"evenodd"}),video:n.createElement("path",{d:"M10.75 3.875V1.25A.752.752 0 0 0 10 .5H1a.752.752 0 0 0-.75.75v7.5c0 .412.338.75.75.75h9c.412 0 .75-.338.75-.75V6.125l3 3V.875l-3 3z",transform:"translate(17 14)"})};!function(e){e.forEach((function(e){FJe.indexOf(e)<0&&(e(LJe,TJe),FJe.push(e))}))}([function(e,t){var n={white:"#ffffff",bisque:"#ffe4c4",blue:"#0000ff",cadetblue:"#5f9ea0",chartreuse:"#7fff00",chocolate:"#d2691e",coral:"#ff7f50",antiquewhite:"#faebd7",aqua:"#00ffff",azure:"#f0ffff",whitesmoke:"#f5f5f5",papayawhip:"#ffefd5",plum:"#dda0dd",blanchedalmond:"#ffebcd",black:"#000000",gold:"#ffd700",goldenrod:"#daa520",gainsboro:"#dcdcdc",cornsilk:"#fff8dc",cornflowerblue:"#6495ed",burlywood:"#deb887",aquamarine:"#7fffd4",beige:"#f5f5dc",crimson:"#dc143c",cyan:"#00ffff",darkblue:"#00008b",darkcyan:"#008b8b",darkgoldenrod:"#b8860b",darkkhaki:"#bdb76b",darkgray:"#a9a9a9",darkgreen:"#006400",darkgrey:"#a9a9a9",peachpuff:"#ffdab9",darkmagenta:"#8b008b",darkred:"#8b0000",darkorchid:"#9932cc",darkorange:"#ff8c00",darkslateblue:"#483d8b",gray:"#808080",darkslategray:"#2f4f4f",darkslategrey:"#2f4f4f",deeppink:"#ff1493",deepskyblue:"#00bfff",wheat:"#f5deb3",firebrick:"#b22222",floralwhite:"#fffaf0",ghostwhite:"#f8f8ff",darkviolet:"#9400d3",magenta:"#ff00ff",green:"#008000",dodgerblue:"#1e90ff",grey:"#808080",honeydew:"#f0fff0",hotpink:"#ff69b4",blueviolet:"#8a2be2",forestgreen:"#228b22",lawngreen:"#7cfc00",indianred:"#cd5c5c",indigo:"#4b0082",fuchsia:"#ff00ff",brown:"#a52a2a",maroon:"#800000",mediumblue:"#0000cd",lightcoral:"#f08080",darkturquoise:"#00ced1",lightcyan:"#e0ffff",ivory:"#fffff0",lightyellow:"#ffffe0",lightsalmon:"#ffa07a",lightseagreen:"#20b2aa",linen:"#faf0e6",mediumaquamarine:"#66cdaa",lemonchiffon:"#fffacd",lime:"#00ff00",khaki:"#f0e68c",mediumseagreen:"#3cb371",limegreen:"#32cd32",mediumspringgreen:"#00fa9a",lightskyblue:"#87cefa",lightblue:"#add8e6",midnightblue:"#191970",lightpink:"#ffb6c1",mistyrose:"#ffe4e1",moccasin:"#ffe4b5",mintcream:"#f5fffa",lightslategray:"#778899",lightslategrey:"#778899",navajowhite:"#ffdead",navy:"#000080",mediumvioletred:"#c71585",powderblue:"#b0e0e6",palegoldenrod:"#eee8aa",oldlace:"#fdf5e6",paleturquoise:"#afeeee",mediumturquoise:"#48d1cc",mediumorchid:"#ba55d3",rebeccapurple:"#663399",lightsteelblue:"#b0c4de",mediumslateblue:"#7b68ee",thistle:"#d8bfd8",tan:"#d2b48c",orchid:"#da70d6",mediumpurple:"#9370db",purple:"#800080",pink:"#ffc0cb",skyblue:"#87ceeb",springgreen:"#00ff7f",palegreen:"#98fb98",red:"#ff0000",yellow:"#ffff00",slateblue:"#6a5acd",lavenderblush:"#fff0f5",peru:"#cd853f",palevioletred:"#db7093",violet:"#ee82ee",teal:"#008080",slategray:"#708090",slategrey:"#708090",aliceblue:"#f0f8ff",darkseagreen:"#8fbc8f",darkolivegreen:"#556b2f",greenyellow:"#adff2f",seagreen:"#2e8b57",seashell:"#fff5ee",tomato:"#ff6347",silver:"#c0c0c0",sienna:"#a0522d",lavender:"#e6e6fa",lightgreen:"#90ee90",orange:"#ffa500",orangered:"#ff4500",steelblue:"#4682b4",royalblue:"#4169e1",turquoise:"#40e0d0",yellowgreen:"#9acd32",salmon:"#fa8072",saddlebrown:"#8b4513",sandybrown:"#f4a460",rosybrown:"#bc8f8f",darksalmon:"#e9967a",lightgoldenrodyellow:"#fafad2",snow:"#fffafa",lightgrey:"#d3d3d3",lightgray:"#d3d3d3",dimgray:"#696969",dimgrey:"#696969",olivedrab:"#6b8e23",olive:"#808000"},r={};for(var i in n)r[n[i]]=i;var o={};e.prototype.toName=function(t){if(!(this.rgba.a||this.rgba.r||this.rgba.g||this.rgba.b))return"transparent";var i,s,a=r[this.toHex()];if(a)return a;if(null==t?void 0:t.closest){var l=this.toRgb(),c=1/0,u="black";if(!o.length)for(var d in n)o[d]=new e(n[d]).toRgb();for(var h in n){var p=(i=l,s=o[h],Math.pow(i.r-s.r,2)+Math.pow(i.g-s.g,2)+Math.pow(i.b-s.b,2));p<c&&(c=p,u=h)}return u}},t.string.push([function(t){var r=t.toLowerCase(),i="transparent"===r?"#0000":n[r];return i?new e(i).toRgb():null},"name"])}]);var WJe={color:tt().string,extension:tt().string,fold:tt().bool,foldColor:tt().string,glyphColor:tt().string,gradientColor:tt().string,gradientOpacity:tt().number,labelColor:tt().string,labelTextColor:tt().string,labelUppercase:tt().bool,radius:tt().number,type:tt().oneOf(["3d","acrobat","audio","binary","code","code2","compressed","document","drive","font","image","presentation","settings","spreadsheet","vector","video"])},HJe=40,qJe=48,XJe={WIDTH:HJe,HEIGHT:qJe,X_OFFSET:0},YJe=12,KJe=function(e){var t=e.color,r=void 0===t?"whitesmoke":t,i=e.extension,o=e.fold,s=void 0===o||o,a=e.foldColor,l=e.glyphColor,c=e.gradientColor,u=void 0===c?"white":c,d=e.gradientOpacity,h=void 0===d?.25:d,p=e.labelColor,f=e.labelTextColor,g=void 0===f?"white":f,m=e.labelUppercase,y=void 0!==m&&m,v=e.radius,_=void 0===v?4:v,b=e.type,x=BJe()();return n.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 "+HJe+" "+qJe,width:"100%",style:{maxWidth:"100%"}},n.createElement("defs",null,n.createElement("clipPath",{id:"pageRadius"+x},n.createElement("rect",{x:XJe.X_OFFSET,y:"0",rx:_,ry:_,width:XJe.WIDTH,height:XJe.HEIGHT})),n.createElement("clipPath",{id:"foldCrop"},n.createElement("rect",{width:XJe.WIDTH,height:YJe,transform:"rotate(-45 0 "+YJe+")"})),n.createElement("linearGradient",{x1:"100%",y1:"0%",y2:"100%",id:"pageGradient"+x},n.createElement("stop",{stopColor:u,stopOpacity:h,offset:"0%"}),n.createElement("stop",{stopColor:u,stopOpacity:"0",offset:"66.67%"}))),n.createElement("g",{id:"file",clipPath:"url(#pageRadius"+x+")"},s?n.createElement(n.Fragment,null,n.createElement("path",{d:"M"+XJe.X_OFFSET+" 0 h "+(XJe.WIDTH-YJe)+" L "+(XJe.WIDTH+XJe.X_OFFSET)+" "+YJe+" v "+(XJe.HEIGHT-YJe)+" H "+XJe.X_OFFSET+" Z",fill:r}),n.createElement("path",{d:"M"+XJe.X_OFFSET+" 0 h "+(XJe.WIDTH-YJe)+" L "+(XJe.WIDTH+XJe.X_OFFSET)+" "+YJe+" v "+(XJe.HEIGHT-YJe)+" H "+XJe.X_OFFSET+" Z",fill:"url(#pageGradient"+x+")"})):n.createElement(n.Fragment,null,n.createElement("rect",{x:XJe.X_OFFSET,y:"0",width:XJe.WIDTH,height:XJe.HEIGHT,fill:r}),n.createElement("rect",{x:XJe.X_OFFSET,y:"0",width:XJe.WIDTH,height:XJe.HEIGHT,fill:"url(#pageGradient"+x+")"}))),s&&n.createElement("g",{transform:"translate(28 "+YJe+") rotate(-90)"},n.createElement("rect",{width:XJe.WIDTH,height:XJe.HEIGHT,fill:a||VJe(r).darken(.1).toHex(),rx:_,ry:_,clipPath:"url(#foldCrop)"})),i&&n.createElement(n.Fragment,null,n.createElement("g",{id:"label"},n.createElement("rect",{fill:p||VJe(r).darken(.3).toHex(),x:XJe.X_OFFSET,y:XJe.HEIGHT-14,width:XJe.WIDTH,height:14,clipPath:"url(#pageRadius"+x+")"})),n.createElement("g",{id:"labelText",transform:"translate("+XJe.X_OFFSET+" 34)"},n.createElement("text",{x:XJe.WIDTH/2,y:"10",fontFamily:"-apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif",fontSize:"9",fill:g,textAnchor:"middle",style:{fontWeight:"bold",textAlign:"center",pointerEvents:"none",textTransform:y?"uppercase":"none",userSelect:"none"}},i))),b&&n.createElement("g",{transform:"translate(-4 "+(i?0:6)+")",fill:l||VJe(r).darken(.15).toHex()},UJe[b]))};KJe.propTypes=WJe;const ZJe=Zo()((()=>({btnContainer:{width:"fit-content","& button":{padding:0}},author:{fontWeight:600,overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis"},date:{fontStyle:"italic",fontSize:"12px",color:Rp},commentText:{fontSize:"14px",lineHeight:"1rem"},commentFilesContainer:{},commentFileContainer:{height:"1.2rem"},fileContainer:{width:"1.2rem","& svg":{height:"100%",width:"100%"}},fileName:{overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis"}}))),$Je=e=>{const{classes:t}=ZJe(),{comment:r}=e,[i,o]=(0,n.useState)(!1),s=(0,n.useMemo)((()=>{var e;return null!==(e=r.created.by.name)&&void 0!==e?e:r.created.by.email}),[r.created.by]),a=(0,n.useMemo)((()=>Iy(r.created.at.toDateString())),[r.created.at]),l=(0,n.useMemo)((()=>e.isUpdating||i),[e.isUpdating,i]);return(0,Ae.jsxs)(ws,{container:!0,direction:"column",wrap:"nowrap",color:"black",bgcolor:e.isUpdating?nU(Rp,.4):"initial",children:[(0,Ae.jsxs)(ws,{item:!0,container:!0,wrap:"nowrap",justifyContent:"space-between",alignItems:"center",columnGap:"0.5rem",children:[(0,Ae.jsxs)(ws,{item:!0,flex:1,width:0,container:!0,wrap:"nowrap",columnGap:"0.25rem",alignItems:"center",children:[(0,Ae.jsx)(ws,{item:!0,minWidth:0,maxWidth:"fit-content",children:(0,Ae.jsx)(vu,{title:s,className:t.author,children:s})}),(0,Ae.jsx)(ws,{item:!0,children:(0,Ae.jsx)(vu,{className:t.date,children:a})})]}),e.isAuthor&&!e.externalUserCode&&(0,Ae.jsxs)(ws,{item:!0,container:!0,wrap:"nowrap",className:t.btnContainer,paddingRight:"0.25rem",columnGap:Wy()?"0.5rem":"1px",children:[(0,Ae.jsx)(ws,{item:!0,children:(0,Ae.jsx)(Gu,{onClick:e.onEdit,disabled:l,children:(0,Ae.jsx)(r8.c,{fontSize:Wy()?"large":"small",color:l?"disabled":"primary"})})}),(0,Ae.jsx)(ws,{item:!0,children:(0,Ae.jsx)(Gu,{onClick:async()=>{o(!0);try{var t;await(null===(t=e.onDelete)||void 0===t?void 0:t.call(e))}catch(n){}finally{o(!1)}},disabled:l,children:i?(0,Ae.jsx)($y,{size:18}):(0,Ae.jsx)(n8.c,{fontSize:Wy()?"large":"small",color:l?"disabled":"error"})})})]})]}),(0,Ae.jsx)(ws,{item:!0,children:(0,Ae.jsx)(vu,{className:t.commentText,children:r.text})}),(0,Ae.jsx)(ws,{item:!0,container:!0,direction:"column",wrap:"nowrap",justifyContent:"center",rowGap:"0.25rem",className:t.commentFilesContainer,children:r.files.map(((e,n)=>(0,Ae.jsx)(ws,{item:!0,children:(0,Ae.jsx)("a",{href:e.signedUrl,title:e.name,target:"_blank",rel:"noreferrer",children:(0,Ae.jsxs)(ws,{container:!0,wrap:"nowrap",columnGap:"0.5rem",className:t.commentFileContainer,children:[(0,Ae.jsx)(ws,{item:!0,className:t.fileContainer,children:(0,Ae.jsx)(KJe,{extension:yhe(e.path).extension,type:"image"})}),(0,Ae.jsx)(ws,{item:!0,xs:10,children:(0,Ae.jsx)(vu,{className:t.fileName,children:e.name})})]})})},n)))})]})};var JJe=e=>"checkbox"===e.type,QJe=e=>e instanceof Date,eQe=e=>null==e;const tQe=e=>"object"===typeof e;var nQe=e=>!eQe(e)&&!Array.isArray(e)&&tQe(e)&&!QJe(e),rQe=e=>nQe(e)&&e.target?JJe(e.target)?e.target.checked:e.target.value:e,iQe=(e,t)=>e.has((e=>e.substring(0,e.search(/\.\d+(\.|$)/))||e)(t)),oQe=e=>Array.isArray(e)?e.filter(Boolean):[],sQe=e=>void 0===e,aQe=(e,t,n)=>{if(!t||!nQe(e))return n;const r=oQe(t.split(/[,[\].]+?/)).reduce(((e,t)=>eQe(e)?e:e[t]),e);return sQe(r)||r===e?sQe(e[t])?n:e[t]:r};const lQe={BLUR:"blur",FOCUS_OUT:"focusout",CHANGE:"change"},cQe={onBlur:"onBlur",onChange:"onChange",onSubmit:"onSubmit",onTouched:"onTouched",all:"all"},uQe="max",dQe="min",hQe="maxLength",pQe="minLength",fQe="pattern",gQe="required",mQe="validate",yQe=n.createContext(null),vQe=()=>n.useContext(yQe);var _Qe=function(e,t,n){let r=!(arguments.length>3&&void 0!==arguments[3])||arguments[3];const i={defaultValues:t._defaultValues};for(const o in e)Object.defineProperty(i,o,{get:()=>{const i=o;return t._proxyFormState[i]!==cQe.all&&(t._proxyFormState[i]=!r||cQe.all),n&&(n[i]=!0),e[i]}});return i},bQe=e=>nQe(e)&&!Object.keys(e).length,xQe=(e,t,n,r)=>{n(e);const{name:i,...o}=e;return bQe(o)||Object.keys(o).length>=Object.keys(t).length||Object.keys(o).find((e=>t[e]===(!r||cQe.all)))},SQe=e=>Array.isArray(e)?e:[e],wQe=(e,t,n)=>n&&t?e===t:!e||!t||e===t||SQe(e).some((e=>e&&(e.startsWith(t)||t.startsWith(e))));function EQe(e){const t=n.useRef(e);t.current=e,n.useEffect((()=>{const n=!e.disabled&&t.current.subject.subscribe({next:t.current.next});return()=>{n&&n.unsubscribe()}}),[e.disabled])}var PQe=e=>"string"===typeof e,CQe=(e,t,n,r,i)=>PQe(e)?(r&&t.watch.add(e),aQe(n,e,i)):Array.isArray(e)?e.map((e=>(r&&t.watch.add(e),aQe(n,e)))):(r&&(t.watchAll=!0),n),AQe=e=>{const t=e.constructor&&e.constructor.prototype;return nQe(t)&&t.hasOwnProperty("isPrototypeOf")},kQe="undefined"!==typeof window&&"undefined"!==typeof window.HTMLElement&&"undefined"!==typeof document;function jQe(e){let t;const n=Array.isArray(e);if(e instanceof Date)t=new Date(e);else if(e instanceof Set)t=new Set(e);else{if(kQe&&(e instanceof Blob||e instanceof FileList)||!n&&!nQe(e))return e;if(t=n?[]:{},Array.isArray(e)||AQe(e))for(const n in e)t[n]=jQe(e[n]);else t=e}return t}function IQe(e){const t=vQe(),{name:r,control:i=t.control,shouldUnregister:o}=e,s=iQe(i._names.array,r),a=function(e){const t=vQe(),{control:r=t.control,name:i,defaultValue:o,disabled:s,exact:a}=e||{},l=n.useRef(i);l.current=i,EQe({disabled:s,subject:r._subjects.watch,next:e=>{wQe(l.current,e.name,a)&&u(jQe(CQe(l.current,r._names,e.values||r._formValues,!1,o)))}});const[c,u]=n.useState(r._getWatch(i,o));return n.useEffect((()=>r._removeUnmounted())),c}({control:i,name:r,defaultValue:aQe(i._formValues,r,aQe(i._defaultValues,r,e.defaultValue)),exact:!0}),l=function(e){const t=vQe(),{control:r=t.control,disabled:i,name:o,exact:s}=e||{},[a,l]=n.useState(r._formState),c=n.useRef(!0),u=n.useRef({isDirty:!1,isLoading:!1,dirtyFields:!1,touchedFields:!1,isValidating:!1,isValid:!1,errors:!1}),d=n.useRef(o);return d.current=o,EQe({disabled:i,next:e=>c.current&&wQe(d.current,e.name,s)&&xQe(e,u.current,r._updateFormState)&&l({...r._formState,...e}),subject:r._subjects.state}),n.useEffect((()=>{c.current=!0;const e=r._proxyFormState.isDirty&&r._getDirty();return e!==r._formState.isDirty&&r._subjects.state.next({isDirty:e}),u.current.isValid&&r._updateValid(!0),()=>{c.current=!1}}),[r]),_Qe(a,r,u.current,!1)}({control:i,name:r}),c=n.useRef(i.register(r,{...e.rules,value:a}));return n.useEffect((()=>{const e=(e,t)=>{const n=aQe(i._fields,e);n&&(n._f.mount=t)};return e(r,!0),()=>{const t=i._options.shouldUnregister||o;(s?t&&!i._stateFlags.action:t)?i.unregister(r):e(r,!1)}}),[r,i,s,o]),{field:{name:r,value:a,onChange:n.useCallback((e=>c.current.onChange({target:{value:rQe(e),name:r},type:lQe.CHANGE})),[r]),onBlur:n.useCallback((()=>c.current.onBlur({target:{value:aQe(i._formValues,r),name:r},type:lQe.BLUR})),[r,i]),ref:e=>{const t=aQe(i._fields,r);t&&e&&(t._f.ref={focus:()=>e.focus(),select:()=>e.select(),setCustomValidity:t=>e.setCustomValidity(t),reportValidity:()=>e.reportValidity()})}},formState:l,fieldState:Object.defineProperties({},{invalid:{enumerable:!0,get:()=>!!aQe(l.errors,r)},isDirty:{enumerable:!0,get:()=>!!aQe(l.dirtyFields,r)},isTouched:{enumerable:!0,get:()=>!!aQe(l.touchedFields,r)},error:{enumerable:!0,get:()=>aQe(l.errors,r)}})}}const GQe=e=>e.render(IQe(e));var TQe=(e,t,n,r,i)=>t?{...n[e],types:{...n[e]&&n[e].types?n[e].types:{},[r]:i||!0}}:{},MQe=e=>/^\w*$/.test(e),OQe=e=>oQe(e.replace(/["|']|\]/g,"").split(/\.|\[/));function RQe(e,t,n){let r=-1;const i=MQe(t)?[t]:OQe(t),o=i.length,s=o-1;for(;++r<o;){const t=i[r];let o=n;if(r!==s){const n=e[t];o=nQe(n)||Array.isArray(n)?n:isNaN(+i[r+1])?{}:[]}e[t]=o,e=e[t]}return e}const DQe=(e,t,n)=>{for(const r of n||Object.keys(e)){const n=aQe(e,r);if(n){const{_f:e,...r}=n;if(e&&t(e.name)){if(e.ref.focus){e.ref.focus();break}if(e.refs&&e.refs[0].focus){e.refs[0].focus();break}}else nQe(r)&&DQe(r,t)}}};var NQe=e=>({isOnSubmit:!e||e===cQe.onSubmit,isOnBlur:e===cQe.onBlur,isOnChange:e===cQe.onChange,isOnAll:e===cQe.all,isOnTouch:e===cQe.onTouched}),LQe=(e,t,n)=>!n&&(t.watchAll||t.watch.has(e)||[...t.watch].some((t=>e.startsWith(t)&&/^\.\w+/.test(e.slice(t.length))))),VQe=(e,t,n)=>{const r=oQe(aQe(e,n));return RQe(r,"root",t[n]),RQe(e,n,r),e},FQe=e=>"boolean"===typeof e,zQe=e=>"file"===e.type,BQe=e=>"function"===typeof e,UQe=e=>{if(!kQe)return!1;const t=e?e.ownerDocument:0;return e instanceof(t&&t.defaultView?t.defaultView.HTMLElement:HTMLElement)},WQe=e=>PQe(e)||n.isValidElement(e),HQe=e=>"radio"===e.type,qQe=e=>e instanceof RegExp;const XQe={value:!1,isValid:!1},YQe={value:!0,isValid:!0};var KQe=e=>{if(Array.isArray(e)){if(e.length>1){const t=e.filter((e=>e&&e.checked&&!e.disabled)).map((e=>e.value));return{value:t,isValid:!!t.length}}return e[0].checked&&!e[0].disabled?e[0].attributes&&!sQe(e[0].attributes.value)?sQe(e[0].value)||""===e[0].value?YQe:{value:e[0].value,isValid:!0}:YQe:XQe}return XQe};const ZQe={isValid:!1,value:null};var $Qe=e=>Array.isArray(e)?e.reduce(((e,t)=>t&&t.checked&&!t.disabled?{isValid:!0,value:t.value}:e),ZQe):ZQe;function JQe(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"validate";if(WQe(e)||Array.isArray(e)&&e.every(WQe)||FQe(e)&&!e)return{type:n,message:WQe(e)?e:"",ref:t}}var QQe=e=>nQe(e)&&!qQe(e)?e:{value:e,message:""},e0e=async(e,t,n,r,i)=>{const{ref:o,refs:s,required:a,maxLength:l,minLength:c,min:u,max:d,pattern:h,validate:p,name:f,valueAsNumber:g,mount:m,disabled:y}=e._f,v=aQe(t,f);if(!m||y)return{};const _=s?s[0]:o,b=e=>{r&&_.reportValidity&&(_.setCustomValidity(FQe(e)?"":e||""),_.reportValidity())},x={},S=HQe(o),w=JJe(o),E=S||w,P=(g||zQe(o))&&sQe(o.value)&&sQe(v)||UQe(o)&&""===o.value||""===v||Array.isArray(v)&&!v.length,C=TQe.bind(null,f,n,x),A=function(e,t,n){let r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:hQe,i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:pQe;const s=e?t:n;x[f]={type:e?r:i,message:s,ref:o,...C(e?r:i,s)}};if(i?!Array.isArray(v)||!v.length:a&&(!E&&(P||eQe(v))||FQe(v)&&!v||w&&!KQe(s).isValid||S&&!$Qe(s).isValid)){const{value:e,message:t}=WQe(a)?{value:!!a,message:a}:QQe(a);if(e&&(x[f]={type:gQe,message:t,ref:_,...C(gQe,t)},!n))return b(t),x}if(!P&&(!eQe(u)||!eQe(d))){let e,t;const r=QQe(d),i=QQe(u);if(eQe(v)||isNaN(v)){const n=o.valueAsDate||new Date(v),s=e=>new Date((new Date).toDateString()+" "+e),a="time"==o.type,l="week"==o.type;PQe(r.value)&&v&&(e=a?s(v)>s(r.value):l?v>r.value:n>new Date(r.value)),PQe(i.value)&&v&&(t=a?s(v)<s(i.value):l?v<i.value:n<new Date(i.value))}else{const n=o.valueAsNumber||(v?+v:v);eQe(r.value)||(e=n>r.value),eQe(i.value)||(t=n<i.value)}if((e||t)&&(A(!!e,r.message,i.message,uQe,dQe),!n))return b(x[f].message),x}if((l||c)&&!P&&(PQe(v)||i&&Array.isArray(v))){const e=QQe(l),t=QQe(c),r=!eQe(e.value)&&v.length>e.value,i=!eQe(t.value)&&v.length<t.value;if((r||i)&&(A(r,e.message,t.message),!n))return b(x[f].message),x}if(h&&!P&&PQe(v)){const{value:e,message:t}=QQe(h);if(qQe(e)&&!v.match(e)&&(x[f]={type:fQe,message:t,ref:o,...C(fQe,t)},!n))return b(t),x}if(p)if(BQe(p)){const e=JQe(await p(v,t),_);if(e&&(x[f]={...e,...C(mQe,e.message)},!n))return b(e.message),x}else if(nQe(p)){let e={};for(const r in p){if(!bQe(e)&&!n)break;const i=JQe(await p[r](v,t),_,r);i&&(e={...i,...C(r,i.message)},b(i.message),n&&(x[f]=e))}if(!bQe(e)&&(x[f]={ref:_,...e},!n))return x}return b(!0),x};function t0e(e,t){const n=Array.isArray(t)?t:MQe(t)?[t]:OQe(t),r=1===n.length?e:function(e,t){const n=t.slice(0,-1).length;let r=0;for(;r<n;)e=sQe(e)?r++:e[t[r++]];return e}(e,n),i=n.length-1,o=n[i];return r&&delete r[o],0!==i&&(nQe(r)&&bQe(r)||Array.isArray(r)&&function(e){for(const t in e)if(!sQe(e[t]))return!1;return!0}(r))&&t0e(e,n.slice(0,-1)),e}function n0e(){let e=[];return{get observers(){return e},next:t=>{for(const n of e)n.next(t)},subscribe:t=>(e.push(t),{unsubscribe:()=>{e=e.filter((e=>e!==t))}}),unsubscribe:()=>{e=[]}}}var r0e=e=>eQe(e)||!tQe(e);function i0e(e,t){if(r0e(e)||r0e(t))return e===t;if(QJe(e)&&QJe(t))return e.getTime()===t.getTime();const n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(const i of n){const n=e[i];if(!r.includes(i))return!1;if("ref"!==i){const e=t[i];if(QJe(n)&&QJe(e)||nQe(n)&&nQe(e)||Array.isArray(n)&&Array.isArray(e)?!i0e(n,e):n!==e)return!1}}return!0}var o0e=e=>"select-multiple"===e.type,s0e=e=>HQe(e)||JJe(e),a0e=e=>UQe(e)&&e.isConnected,l0e=e=>{for(const t in e)if(BQe(e[t]))return!0;return!1};function c0e(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const n=Array.isArray(e);if(nQe(e)||n)for(const r in e)Array.isArray(e[r])||nQe(e[r])&&!l0e(e[r])?(t[r]=Array.isArray(e[r])?[]:{},c0e(e[r],t[r])):eQe(e[r])||(t[r]=!0);return t}function u0e(e,t,n){const r=Array.isArray(e);if(nQe(e)||r)for(const i in e)Array.isArray(e[i])||nQe(e[i])&&!l0e(e[i])?sQe(t)||r0e(n[i])?n[i]=Array.isArray(e[i])?c0e(e[i],[]):{...c0e(e[i])}:u0e(e[i],eQe(t)?{}:t[i],n[i]):i0e(e[i],t[i])?delete n[i]:n[i]=!0;return n}var d0e=(e,t)=>u0e(e,t,c0e(t)),h0e=(e,t)=>{let{valueAsNumber:n,valueAsDate:r,setValueAs:i}=t;return sQe(e)?e:n?""===e?NaN:e?+e:e:r&&PQe(e)?new Date(e):i?i(e):e};function p0e(e){const t=e.ref;if(!(e.refs?e.refs.every((e=>e.disabled)):t.disabled))return zQe(t)?t.files:HQe(t)?$Qe(e.refs).value:o0e(t)?[...t.selectedOptions].map((e=>{let{value:t}=e;return t})):JJe(t)?KQe(e.refs).value:h0e(sQe(t.value)?e.ref.value:t.value,e)}var f0e=(e,t,n,r)=>{const i={};for(const o of e){const e=aQe(t,o);e&&RQe(i,o,e._f)}return{criteriaMode:n,names:[...e],fields:i,shouldUseNativeValidation:r}},g0e=e=>sQe(e)?e:qQe(e)?e.source:nQe(e)?qQe(e.value)?e.value.source:e.value:e,m0e=e=>e.mount&&(e.required||e.min||e.max||e.maxLength||e.minLength||e.pattern||e.validate);function y0e(e,t,n){const r=aQe(e,n);if(r||MQe(n))return{error:r,name:n};const i=n.split(".");for(;i.length;){const r=i.join("."),o=aQe(t,r),s=aQe(e,r);if(o&&!Array.isArray(o)&&n!==r)return{name:n};if(s&&s.type)return{name:r,error:s};i.pop()}return{name:n}}var v0e=(e,t,n,r,i)=>!i.isOnAll&&(!n&&i.isOnTouch?!(t||e):(n?r.isOnBlur:i.isOnBlur)?!e:!(n?r.isOnChange:i.isOnChange)||e),_0e=(e,t)=>!oQe(aQe(e,t)).length&&t0e(e,t);const b0e={mode:cQe.onSubmit,reValidateMode:cQe.onChange,shouldFocusError:!0};function x0e(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0,n={...b0e,...e};const r=e.resetOptions&&e.resetOptions.keepDirtyValues;let i,o={submitCount:0,isDirty:!1,isLoading:!0,isValidating:!1,isSubmitted:!1,isSubmitting:!1,isSubmitSuccessful:!1,isValid:!1,touchedFields:{},dirtyFields:{},errors:{}},s={},a=nQe(n.defaultValues)&&jQe(n.defaultValues)||{},l=n.shouldUnregister?{}:jQe(a),c={action:!1,mount:!1,watch:!1},u={mount:new Set,unMount:new Set,array:new Set,watch:new Set},d=0;const h={isDirty:!1,dirtyFields:!1,touchedFields:!1,isValidating:!1,isValid:!1,errors:!1},p={watch:n0e(),array:n0e(),state:n0e()},f=NQe(n.mode),g=NQe(n.reValidateMode),m=n.criteriaMode===cQe.all,y=async e=>{if(h.isValid||e){const e=n.resolver?bQe((await S()).errors):await w(s,!0);e!==o.isValid&&(o.isValid=e,p.state.next({isValid:e}))}},v=e=>h.isValidating&&p.state.next({isValidating:e}),_=(e,t,n,r)=>{const i=aQe(s,e);if(i){const o=aQe(l,e,sQe(n)?aQe(a,e):n);sQe(o)||r&&r.defaultChecked||t?RQe(l,e,t?o:p0e(i._f)):C(e,o),c.mount&&y()}},b=(e,t,n,r,i)=>{let s=!1,l=!1;const c={name:e};if(!n||r){h.isDirty&&(l=o.isDirty,o.isDirty=c.isDirty=E(),s=l!==c.isDirty);const n=i0e(aQe(a,e),t);l=aQe(o.dirtyFields,e),n?t0e(o.dirtyFields,e):RQe(o.dirtyFields,e,!0),c.dirtyFields=o.dirtyFields,s=s||h.dirtyFields&&l!==!n}if(n){const t=aQe(o.touchedFields,e);t||(RQe(o.touchedFields,e,n),c.touchedFields=o.touchedFields,s=s||h.touchedFields&&t!==n)}return s&&i&&p.state.next(c),s?c:{}},x=(t,n,r,s)=>{const a=aQe(o.errors,t),l=h.isValid&&FQe(n)&&o.isValid!==n;var c;if(e.delayError&&r?(c=()=>((e,t)=>{RQe(o.errors,e,t),p.state.next({errors:o.errors})})(t,r),i=e=>{clearTimeout(d),d=window.setTimeout(c,e)},i(e.delayError)):(clearTimeout(d),i=null,r?RQe(o.errors,t,r):t0e(o.errors,t)),(r?!i0e(a,r):a)||!bQe(s)||l){const e={...s,...l&&FQe(n)?{isValid:n}:{},errors:o.errors,name:t};o={...o,...e},p.state.next(e)}v(!1)},S=async e=>await n.resolver(l,n.context,f0e(e||u.mount,s,n.criteriaMode,n.shouldUseNativeValidation)),w=async function(e,t){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{valid:!0};for(const i in e){const s=e[i];if(s){const{_f:e,...i}=s;if(e){const i=u.array.has(e.name),a=await e0e(s,l,m,n.shouldUseNativeValidation,i);if(a[e.name]&&(r.valid=!1,t))break;!t&&(aQe(a,e.name)?i?VQe(o.errors,a,e.name):RQe(o.errors,e.name,a[e.name]):t0e(o.errors,e.name))}i&&await w(i,t,r)}}return r.valid},E=(e,t)=>(e&&t&&RQe(l,e,t),!i0e(G(),a)),P=(e,t,n)=>CQe(e,u,{...c.mount?l:sQe(t)?a:PQe(e)?{[e]:t}:t},n,t),C=function(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};const r=aQe(s,e);let i=t;if(r){const n=r._f;n&&(!n.disabled&&RQe(l,e,h0e(t,n)),i=UQe(n.ref)&&eQe(t)?"":t,o0e(n.ref)?[...n.ref.options].forEach((e=>e.selected=i.includes(e.value))):n.refs?JJe(n.ref)?n.refs.length>1?n.refs.forEach((e=>(!e.defaultChecked||!e.disabled)&&(e.checked=Array.isArray(i)?!!i.find((t=>t===e.value)):i===e.value))):n.refs[0]&&(n.refs[0].checked=!!i):n.refs.forEach((e=>e.checked=e.value===i)):zQe(n.ref)?n.ref.value="":(n.ref.value=i,n.ref.type||p.watch.next({name:e})))}(n.shouldDirty||n.shouldTouch)&&b(e,i,n.shouldTouch,n.shouldDirty,!0),n.shouldValidate&&I(e)},A=(e,t,n)=>{for(const r in t){const i=t[r],o="".concat(e,".").concat(r),a=aQe(s,o);!u.array.has(e)&&r0e(i)&&(!a||a._f)||QJe(i)?C(o,i,n):A(o,i,n)}},k=function(e,n){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};const i=aQe(s,e),d=u.array.has(e),f=jQe(n);RQe(l,e,f),d?(p.array.next({name:e,values:l}),(h.isDirty||h.dirtyFields)&&r.shouldDirty&&(o.dirtyFields=d0e(a,l),p.state.next({name:e,dirtyFields:o.dirtyFields,isDirty:E(e,f)}))):!i||i._f||eQe(f)?C(e,f,r):A(e,f,r),LQe(e,u)&&p.state.next({}),p.watch.next({name:e}),!c.mount&&t()},j=async e=>{const t=e.target;let r=t.name;const a=aQe(s,r);if(a){let c,d;const _=t.type?p0e(a._f):rQe(e),E=e.type===lQe.BLUR||e.type===lQe.FOCUS_OUT,P=!m0e(a._f)&&!n.resolver&&!aQe(o.errors,r)&&!a._f.deps||v0e(E,aQe(o.touchedFields,r),o.isSubmitted,g,f),C=LQe(r,u,E);RQe(l,r,_),E?(a._f.onBlur&&a._f.onBlur(e),i&&i(0)):a._f.onChange&&a._f.onChange(e);const A=b(r,_,E,!1),k=!bQe(A)||C;if(!E&&p.watch.next({name:r,type:e.type}),P)return h.isValid&&y(),k&&p.state.next({name:r,...C?{}:A});if(!E&&C&&p.state.next({}),v(!0),n.resolver){const{errors:e}=await S([r]),t=y0e(o.errors,s,r),n=y0e(e,s,t.name||r);c=n.error,r=n.name,d=bQe(e)}else c=(await e0e(a,l,m,n.shouldUseNativeValidation))[r],c?d=!1:h.isValid&&(d=await w(s,!0));a._f.deps&&I(a._f.deps),x(r,d,c,A)}},I=async function(e){let t,r,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const a=SQe(e);if(v(!0),n.resolver){const n=await(async e=>{const{errors:t}=await S();if(e)for(const n of e){const e=aQe(t,n);e?RQe(o.errors,n,e):t0e(o.errors,n)}else o.errors=t;return t})(sQe(e)?e:a);t=bQe(n),r=e?!a.some((e=>aQe(n,e))):t}else e?(r=(await Promise.all(a.map((async e=>{const t=aQe(s,e);return await w(t&&t._f?{[e]:t}:t)})))).every(Boolean),(r||o.isValid)&&y()):r=t=await w(s);return p.state.next({...!PQe(e)||h.isValid&&t!==o.isValid?{}:{name:e},...n.resolver||!e?{isValid:t}:{},errors:o.errors,isValidating:!1}),i.shouldFocus&&!r&&DQe(s,(e=>e&&aQe(o.errors,e)),e?a:u.mount),r},G=e=>{const t={...a,...c.mount?l:{}};return sQe(e)?t:PQe(e)?aQe(t,e):e.map((e=>aQe(t,e)))},T=(e,t)=>({invalid:!!aQe((t||o).errors,e),isDirty:!!aQe((t||o).dirtyFields,e),isTouched:!!aQe((t||o).touchedFields,e),error:aQe((t||o).errors,e)}),M=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};for(const r of e?SQe(e):u.mount)u.mount.delete(r),u.array.delete(r),aQe(s,r)&&(t.keepValue||(t0e(s,r),t0e(l,r)),!t.keepError&&t0e(o.errors,r),!t.keepDirty&&t0e(o.dirtyFields,r),!t.keepTouched&&t0e(o.touchedFields,r),!n.shouldUnregister&&!t.keepDefaultValue&&t0e(a,r));p.watch.next({}),p.state.next({...o,...t.keepDirty?{isDirty:E()}:{}}),!t.keepIsValid&&y()},O=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=aQe(s,e);const i=FQe(t.disabled);return RQe(s,e,{...r||{},_f:{...r&&r._f?r._f:{ref:{name:e}},name:e,mount:!0,...t}}),u.mount.add(e),r?i&&RQe(l,e,t.disabled?void 0:aQe(l,e,p0e(r._f))):_(e,!0,t.value),{...i?{disabled:t.disabled}:{},...n.shouldUseNativeValidation?{required:!!t.required,min:g0e(t.min),max:g0e(t.max),minLength:g0e(t.minLength),maxLength:g0e(t.maxLength),pattern:g0e(t.pattern)}:{},name:e,onChange:j,onBlur:j,ref:i=>{if(i){O(e,t),r=aQe(s,e);const n=sQe(i.value)&&i.querySelectorAll&&i.querySelectorAll("input,select,textarea")[0]||i,o=s0e(n),l=r._f.refs||[];if(o?l.find((e=>e===n)):n===r._f.ref)return;RQe(s,e,{_f:{...r._f,...o?{refs:[...l.filter(a0e),n,...Array.isArray(aQe(a,e))?[{}]:[]],ref:{type:n.type,name:e}}:{ref:n}}}),_(e,!1,void 0,n)}else r=aQe(s,e,{}),r._f&&(r._f.mount=!1),(n.shouldUnregister||t.shouldUnregister)&&(!iQe(u.array,e)||!c.action)&&u.unMount.add(e)}}},R=()=>n.shouldFocusError&&DQe(s,(e=>e&&aQe(o.errors,e)),u.mount),D=function(n){let i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const d=n||a,f=jQe(d),g=n&&!bQe(n)?f:a;if(i.keepDefaultValues||(a=d),!i.keepValues){if(i.keepDirtyValues||r)for(const e of u.mount)aQe(o.dirtyFields,e)?RQe(g,e,aQe(l,e)):k(e,aQe(g,e));else{if(kQe&&sQe(n))for(const e of u.mount){const t=aQe(s,e);if(t&&t._f){const e=Array.isArray(t._f.refs)?t._f.refs[0]:t._f.ref;if(UQe(e)){const t=e.closest("form");if(t){t.reset();break}}}}s={}}l=e.shouldUnregister?i.keepDefaultValues?jQe(a):{}:f,p.array.next({values:g}),p.watch.next({values:g})}u={mount:new Set,unMount:new Set,array:new Set,watch:new Set,watchAll:!1,focus:""},!c.mount&&t(),c.mount=!h.isValid||!!i.keepIsValid,c.watch=!!e.shouldUnregister,p.state.next({submitCount:i.keepSubmitCount?o.submitCount:0,isDirty:i.keepDirty||i.keepDirtyValues?o.isDirty:!(!i.keepDefaultValues||i0e(n,a)),isSubmitted:!!i.keepIsSubmitted&&o.isSubmitted,dirtyFields:i.keepDirty||i.keepDirtyValues?o.dirtyFields:i.keepDefaultValues&&n?d0e(a,n):{},touchedFields:i.keepTouched?o.touchedFields:{},errors:i.keepErrors?o.errors:{},isSubmitting:!1,isSubmitSuccessful:!1})},N=(e,t)=>D(BQe(e)?e(l):e,t);return BQe(n.defaultValues)&&n.defaultValues().then((e=>{N(e,n.resetOptions),p.state.next({isLoading:!1})})),{control:{register:O,unregister:M,getFieldState:T,_executeSchema:S,_focusError:R,_getWatch:P,_getDirty:E,_updateValid:y,_removeUnmounted:()=>{for(const e of u.unMount){const t=aQe(s,e);t&&(t._f.refs?t._f.refs.every((e=>!a0e(e))):!a0e(t._f.ref))&&M(e)}u.unMount=new Set},_updateFieldArray:function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],n=arguments.length>2?arguments[2]:void 0,r=arguments.length>3?arguments[3]:void 0,i=!(arguments.length>4&&void 0!==arguments[4])||arguments[4],u=!(arguments.length>5&&void 0!==arguments[5])||arguments[5];if(r&&n){if(c.action=!0,u&&Array.isArray(aQe(s,e))){const t=n(aQe(s,e),r.argA,r.argB);i&&RQe(s,e,t)}if(u&&Array.isArray(aQe(o.errors,e))){const t=n(aQe(o.errors,e),r.argA,r.argB);i&&RQe(o.errors,e,t),_0e(o.errors,e)}if(h.touchedFields&&u&&Array.isArray(aQe(o.touchedFields,e))){const t=n(aQe(o.touchedFields,e),r.argA,r.argB);i&&RQe(o.touchedFields,e,t)}h.dirtyFields&&(o.dirtyFields=d0e(a,l)),p.state.next({name:e,isDirty:E(e,t),dirtyFields:o.dirtyFields,errors:o.errors,isValid:o.isValid})}else RQe(l,e,t)},_getFieldArray:t=>oQe(aQe(c.mount?l:a,t,e.shouldUnregister?aQe(a,t,[]):[])),_reset:D,_updateFormState:e=>{o={...o,...e}},_subjects:p,_proxyFormState:h,get _fields(){return s},get _formValues(){return l},get _stateFlags(){return c},set _stateFlags(e){c=e},get _defaultValues(){return a},get _names(){return u},set _names(e){u=e},get _formState(){return o},set _formState(e){o=e},get _options(){return n},set _options(e){n={...n,...e}}},trigger:I,register:O,handleSubmit:(e,t)=>async r=>{r&&(r.preventDefault&&r.preventDefault(),r.persist&&r.persist());let i=jQe(l);if(p.state.next({isSubmitting:!0}),n.resolver){const{errors:e,values:t}=await S();o.errors=e,i=t}else await w(s);bQe(o.errors)?(p.state.next({errors:{}}),await e(i,r)):(t&&await t({...o.errors},r),R()),p.state.next({isSubmitted:!0,isSubmitting:!1,isSubmitSuccessful:bQe(o.errors),submitCount:o.submitCount+1,errors:o.errors})},watch:(e,t)=>BQe(e)?p.watch.subscribe({next:n=>e(P(void 0,t),n)}):P(e,t,!0),setValue:k,getValues:G,reset:N,resetField:function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};aQe(s,e)&&(sQe(t.defaultValue)?k(e,aQe(a,e)):(k(e,t.defaultValue),RQe(a,e,t.defaultValue)),t.keepTouched||t0e(o.touchedFields,e),t.keepDirty||(t0e(o.dirtyFields,e),o.isDirty=t.defaultValue?E(e,aQe(a,e)):E()),t.keepError||(t0e(o.errors,e),h.isValid&&y()),p.state.next({...o}))},clearErrors:e=>{e?SQe(e).forEach((e=>t0e(o.errors,e))):o.errors={},p.state.next({errors:o.errors})},unregister:M,setError:(e,t,n)=>{const r=(aQe(s,e,{_f:{}})._f||{}).ref;RQe(o.errors,e,{...t,ref:r}),p.state.next({name:e,errors:o.errors,isValid:!1}),n&&n.shouldFocus&&r&&r.focus&&r.focus()},setFocus:function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const n=aQe(s,e),r=n&&n._f;if(r){const e=r.refs?r.refs[0]:r.ref;e.focus&&(e.focus(),t.shouldSelect&&e.select())}},getFieldState:T}}function S0e(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const t=n.useRef(),[r,i]=n.useState({isDirty:!1,isValidating:!1,isLoading:!0,isSubmitted:!1,isSubmitting:!1,isSubmitSuccessful:!1,isValid:!1,submitCount:0,dirtyFields:{},touchedFields:{},errors:{},defaultValues:BQe(e.defaultValues)?void 0:e.defaultValues});t.current||(t.current={...x0e(e,(()=>i((e=>({...e}))))),formState:r});const o=t.current.control;return o._options=e,EQe({subject:o._subjects.state,next:e=>{xQe(e,o._proxyFormState,o._updateFormState,!0)&&i({...o._formState})}}),n.useEffect((()=>{o._stateFlags.mount||(o._updateValid(),o._stateFlags.mount=!0),o._stateFlags.watch&&(o._stateFlags.watch=!1,o._subjects.state.next({})),o._removeUnmounted()})),n.useEffect((()=>{e.values&&!i0e(e.values,o._defaultValues)&&o._reset(e.values,o._options.resetOptions)}),[e.values,o]),n.useEffect((()=>{r.submitCount&&o._focusError()}),[o,r.submitCount]),t.current.formState=_Qe(r,o),t.current}var w0e=function(e,t,n){if(e&&"reportValidity"in e){var r=aQe(n,t);e.setCustomValidity(r&&r.message||""),e.reportValidity()}},E0e=function(e,t){var n=function(n){var r=t.fields[n];r&&r.ref&&"reportValidity"in r.ref?w0e(r.ref,n,e):r.refs&&r.refs.forEach((function(t){return w0e(t,n,e)}))};for(var r in t.fields)n(r)},P0e=function(e,t){t.shouldUseNativeValidation&&E0e(e,t);var n={};for(var r in e){var i=aQe(t.fields,r);RQe(n,r,Object.assign(e[r],{ref:i&&i.ref}))}return n},C0e=function(e,t,n){return void 0===t&&(t={}),void 0===n&&(n={}),function(r,i,o){try{return Promise.resolve(function(s,a){try{var l=(t.context,Promise.resolve(e["sync"===n.mode?"validateSync":"validate"](r,Object.assign({abortEarly:!1},t,{context:i}))).then((function(e){return o.shouldUseNativeValidation&&E0e({},o),{values:n.rawValues?r:e,errors:{}}})))}catch(c){return a(c)}return l&&l.then?l.then(void 0,a):l}(0,(function(e){if(!e.inner)throw e;return{values:{},errors:P0e((t=e,n=!o.shouldUseNativeValidation&&"all"===o.criteriaMode,(t.inner||[]).reduce((function(e,t){if(e[t.path]||(e[t.path]={message:t.message,type:t.type}),n){var r=e[t.path].types,i=r&&r[t.type];e[t.path]=TQe(t.path,n,e,t.type,i?[].concat(i,t.message):t.message)}return e}),{})),o)};var t,n})))}catch(s){return Promise.reject(s)}}},A0e=__webpack_require__(4436),k0e=__webpack_require__(28920),j0e=__webpack_require__(36336),I0e=__webpack_require__.n(j0e);const G0e=Object.prototype.toString,T0e=Error.prototype.toString,M0e=RegExp.prototype.toString,O0e="undefined"!==typeof Symbol?Symbol.prototype.toString:()=>"",R0e=/^Symbol\((.*)\)(.*)$/;function D0e(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(null==e||!0===e||!1===e)return""+e;const n=typeof e;if("number"===n)return function(e){return e!=+e?"NaN":0===e&&1/e<0?"-0":""+e}(e);if("string"===n)return t?'"'.concat(e,'"'):e;if("function"===n)return"[Function "+(e.name||"anonymous")+"]";if("symbol"===n)return O0e.call(e).replace(R0e,"Symbol($1)");const r=G0e.call(e).slice(8,-1);return"Date"===r?isNaN(e.getTime())?""+e:e.toISOString(e):"Error"===r||e instanceof Error?"["+T0e.call(e)+"]":"RegExp"===r?M0e.call(e):null}function N0e(e,t){let n=D0e(e,t);return null!==n?n:JSON.stringify(e,(function(e,n){let r=D0e(this[e],t);return null!==r?r:n}),2)}function L0e(e){return null==e?[]:[].concat(e)}let V0e=/\$\{\s*(\w+)\s*\}/g;class F0e extends Error{static formatError(e,t){const n=t.label||t.path||"this";return n!==t.path&&(t=Object.assign({},t,{path:n})),"string"===typeof e?e.replace(V0e,((e,n)=>N0e(t[n]))):"function"===typeof e?e(t):e}static isError(e){return e&&"ValidationError"===e.name}constructor(e,t,n,r){super(),this.value=void 0,this.path=void 0,this.type=void 0,this.errors=void 0,this.params=void 0,this.inner=void 0,this.name="ValidationError",this.value=t,this.path=n,this.type=r,this.errors=[],this.inner=[],L0e(e).forEach((e=>{F0e.isError(e)?(this.errors.push(...e.errors),this.inner=this.inner.concat(e.inner.length?e.inner:e)):this.errors.push(e)})),this.message=this.errors.length>1?"".concat(this.errors.length," errors occurred"):this.errors[0],Error.captureStackTrace&&Error.captureStackTrace(this,F0e)}}let z0e={default:"${path} is invalid",required:"${path} is a required field",defined:"${path} must be defined",notNull:"${path} cannot be null",oneOf:"${path} must be one of the following values: ${values}",notOneOf:"${path} must not be one of the following values: ${values}",notType:e=>{let{path:t,type:n,value:r,originalValue:i}=e;const o=null!=i&&i!==r?" (cast from the value `".concat(N0e(i,!0),"`)."):".";return"mixed"!==n?"".concat(t," must be a `").concat(n,"` type, ")+"but the final value was: `".concat(N0e(r,!0),"`")+o:"".concat(t," must match the configured type. ")+"The validated value was: `".concat(N0e(r,!0),"`")+o}},B0e={length:"${path} must be exactly ${length} characters",min:"${path} must be at least ${min} characters",max:"${path} must be at most ${max} characters",matches:'${path} must match the following: "${regex}"',email:"${path} must be a valid email",url:"${path} must be a valid URL",uuid:"${path} must be a valid UUID",trim:"${path} must be a trimmed string",lowercase:"${path} must be a lowercase string",uppercase:"${path} must be a upper case string"},U0e={min:"${path} must be greater than or equal to ${min}",max:"${path} must be less than or equal to ${max}",lessThan:"${path} must be less than ${less}",moreThan:"${path} must be greater than ${more}",positive:"${path} must be a positive number",negative:"${path} must be a negative number",integer:"${path} must be an integer"},W0e={min:"${path} field must be later than ${min}",max:"${path} field must be at earlier than ${max}"},H0e={isValue:"${path} field must be ${value}"},q0e={noUnknown:"${path} field has unspecified keys: ${unknown}"},X0e={min:"${path} field must have at least ${min} items",max:"${path} field must have less than or equal to ${max} items",length:"${path} must have ${length} items"};Object.assign(Object.create(null),{mixed:z0e,string:B0e,number:U0e,date:W0e,object:q0e,array:X0e,boolean:H0e});const Y0e=e=>e&&e.__isYupSchema__;class K0e{static fromOptions(e,t){if(!t.then&&!t.otherwise)throw new TypeError("either `then:` or `otherwise:` is required for `when()` conditions");let{is:n,then:r,otherwise:i}=t,o="function"===typeof n?n:function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return t.every((e=>e===n))};return new K0e(e,((e,t)=>{var n;let s=o(...e)?r:i;return null!=(n=null==s?void 0:s(t))?n:t}))}constructor(e,t){this.fn=void 0,this.refs=e,this.refs=e,this.fn=t}resolve(e,t){let n=this.refs.map((e=>e.getValue(null==t?void 0:t.value,null==t?void 0:t.parent,null==t?void 0:t.context))),r=this.fn(n,e,t);if(void 0===r||r===e)return e;if(!Y0e(r))throw new TypeError("conditions must return a schema object");return r.resolve(t)}}const Z0e="$",$0e=".";class J0e{constructor(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(this.key=void 0,this.isContext=void 0,this.isValue=void 0,this.isSibling=void 0,this.path=void 0,this.getter=void 0,this.map=void 0,"string"!==typeof e)throw new TypeError("ref must be a string, got: "+e);if(this.key=e.trim(),""===e)throw new TypeError("ref must be a non-empty string");this.isContext=this.key[0]===Z0e,this.isValue=this.key[0]===$0e,this.isSibling=!this.isContext&&!this.isValue;let n=this.isContext?Z0e:this.isValue?$0e:"";this.path=this.key.slice(n.length),this.getter=this.path&&(0,A0e.getter)(this.path,!0),this.map=t.map}getValue(e,t,n){let r=this.isContext?n:this.isValue?e:t;return this.getter&&(r=this.getter(r||{})),this.map&&(r=this.map(r)),r}cast(e,t){return this.getValue(e,null==t?void 0:t.parent,null==t?void 0:t.context)}resolve(){return this}describe(){return{type:"ref",key:this.key}}toString(){return"Ref(".concat(this.key,")")}static isRef(e){return e&&e.__isYupRef}}J0e.prototype.__isYupRef=!0;const Q0e=e=>null==e;function e1e(e){function t(t,n,r){let{value:i,path:o="",options:s,originalValue:a,schema:l}=t;const{name:c,test:u,params:d,message:h,skipAbsent:p}=e;let{parent:f,context:g,abortEarly:m=l.spec.abortEarly}=s;function y(e){return J0e.isRef(e)?e.getValue(i,f,g):e}function v(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const t=Object.assign({value:i,originalValue:a,label:l.spec.label,path:e.path||o,spec:l.spec},d,e.params);for(const r of Object.keys(t))t[r]=y(t[r]);const n=new F0e(F0e.formatError(e.message||h,t),i,t.path,e.type||c);return n.params=t,n}const _=m?n:r;let b={path:o,parent:f,type:c,from:s.from,createError:v,resolve:y,options:s,originalValue:a,schema:l};const x=e=>{F0e.isError(e)?_(e):e?r(null):_(v())},S=e=>{F0e.isError(e)?_(e):n(e)},w=p&&Q0e(i);if(!s.sync){try{Promise.resolve(!!w||u.call(b,i,b)).then(x,S)}catch(C){S(C)}return}let E;try{var P;if(E=!!w||u.call(b,i,b),"function"===typeof(null==(P=E)?void 0:P.then))throw new Error('Validation test of type: "'.concat(b.type,'" returned a Promise during a synchronous validate. ')+"This test will finish after the validate call has returned")}catch(C){return void S(C)}x(E)}return t.OPTIONS=e,t}function t1e(e,t,n){let r,i,o,s=arguments.length>3&&void 0!==arguments[3]?arguments[3]:n;return t?((0,A0e.forEach)(t,((a,l,c)=>{let u=l?a.slice(1,a.length-1):a,d="tuple"===(e=e.resolve({context:s,parent:r,value:n})).type,h=c?parseInt(u,10):0;if(e.innerType||d){if(d&&!c)throw new Error('Yup.reach cannot implicitly index into a tuple type. the path part "'.concat(o,'" must contain an index to the tuple element, e.g. "').concat(o,'[0]"'));if(n&&h>=n.length)throw new Error("Yup.reach cannot resolve an array item at index: ".concat(a,", in the path: ").concat(t,". ")+"because there is no value at that index. ");r=n,n=n&&n[h],e=d?e.spec.types[h]:e.innerType}if(!c){if(!e.fields||!e.fields[u])throw new Error("The schema does not contain the path: ".concat(t,". ")+"(failed at: ".concat(o,' which is a type: "').concat(e.type,'")'));r=n,n=n&&n[u],e=e.fields[u]}i=u,o=l?"["+a+"]":"."+a})),{schema:e,parent:r,parentPath:i}):{parent:r,parentPath:t,schema:e}}class n1e extends Set{describe(){const e=[];for(const t of this.values())e.push(J0e.isRef(t)?t.describe():t);return e}resolveAll(e){let t=[];for(const n of this.values())t.push(e(n));return t}clone(){return new n1e(this.values())}merge(e,t){const n=this.clone();return e.forEach((e=>n.add(e))),t.forEach((e=>n.delete(e))),n}}function r1e(e){let t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:new Map;if(Y0e(e)||!e||"object"!==typeof e)return e;if(n.has(e))return n.get(e);if(e instanceof Date)t=new Date(e.getTime()),n.set(e,t);else if(e instanceof RegExp)t=new RegExp(e),n.set(e,t);else if(Array.isArray(e)){t=new Array(e.length),n.set(e,t);for(let r=0;r<e.length;r++)t[r]=r1e(e[r],n)}else if(e instanceof Map){t=new Map,n.set(e,t);for(const[r,i]of e.entries())t.set(r,r1e(i,n))}else if(e instanceof Set){t=new Set,n.set(e,t);for(const r of e)t.add(r1e(r,n))}else{if(!(e instanceof Object))throw Error("Unable to clone ".concat(e));t={},n.set(e,t);for(const[r,i]of Object.entries(e))t[r]=r1e(i,n)}return t}class i1e{constructor(e){this.type=void 0,this.deps=[],this.tests=void 0,this.transforms=void 0,this.conditions=[],this._mutate=void 0,this.internalTests={},this._whitelist=new n1e,this._blacklist=new n1e,this.exclusiveTests=Object.create(null),this._typeCheck=void 0,this.spec=void 0,this.tests=[],this.transforms=[],this.withMutation((()=>{this.typeError(z0e.notType)})),this.type=e.type,this._typeCheck=e.check,this.spec=Object.assign({strip:!1,strict:!1,abortEarly:!0,recursive:!0,nullable:!1,optional:!0,coerce:!0},null==e?void 0:e.spec),this.withMutation((e=>{e.nonNullable()}))}get _type(){return this.type}clone(e){if(this._mutate)return e&&Object.assign(this.spec,e),this;const t=Object.create(Object.getPrototypeOf(this));return t.type=this.type,t._typeCheck=this._typeCheck,t._whitelist=this._whitelist.clone(),t._blacklist=this._blacklist.clone(),t.internalTests=Object.assign({},this.internalTests),t.exclusiveTests=Object.assign({},this.exclusiveTests),t.deps=[...this.deps],t.conditions=[...this.conditions],t.tests=[...this.tests],t.transforms=[...this.transforms],t.spec=r1e(Object.assign({},this.spec,e)),t}label(e){let t=this.clone();return t.spec.label=e,t}meta(){if(0===arguments.length)return this.spec.meta;let e=this.clone();return e.spec.meta=Object.assign(e.spec.meta||{},arguments.length<=0?void 0:arguments[0]),e}withMutation(e){let t=this._mutate;this._mutate=!0;let n=e(this);return this._mutate=t,n}concat(e){if(!e||e===this)return this;if(e.type!==this.type&&"mixed"!==this.type)throw new TypeError("You cannot `concat()` schema's of different types: ".concat(this.type," and ").concat(e.type));let t=this,n=e.clone();const r=Object.assign({},t.spec,n.spec);return n.spec=r,n.internalTests=Object.assign({},t.internalTests,n.internalTests),n._whitelist=t._whitelist.merge(e._whitelist,e._blacklist),n._blacklist=t._blacklist.merge(e._blacklist,e._whitelist),n.tests=t.tests,n.exclusiveTests=t.exclusiveTests,n.withMutation((t=>{e.tests.forEach((e=>{t.test(e.OPTIONS)}))})),n.transforms=[...t.transforms,...n.transforms],n}isType(e){return null==e?!(!this.spec.nullable||null!==e)||!(!this.spec.optional||void 0!==e):this._typeCheck(e)}resolve(e){let t=this;if(t.conditions.length){let n=t.conditions;t=t.clone(),t.conditions=[],t=n.reduce(((t,n)=>n.resolve(t,e)),t),t=t.resolve(e)}return t}resolveOptions(e){var t,n,r;return Object.assign({},e,{from:e.from||[],strict:null!=(t=e.strict)?t:this.spec.strict,abortEarly:null!=(n=e.abortEarly)?n:this.spec.abortEarly,recursive:null!=(r=e.recursive)?r:this.spec.recursive})}cast(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=this.resolve(Object.assign({value:e},t)),r="ignore-optionality"===t.assert,i=n._cast(e,t);if(!1!==t.assert&&!n.isType(i)){if(r&&Q0e(i))return i;let o=N0e(e),s=N0e(i);throw new TypeError("The value of ".concat(t.path||"field"," could not be cast to a value ")+'that satisfies the schema type: "'.concat(n.type,'". \n\n')+"attempted value: ".concat(o," \n")+(s!==o?"result of cast: ".concat(s):""))}return i}_cast(e,t){let n=void 0===e?e:this.transforms.reduce(((t,n)=>n.call(this,t,e,this)),e);return void 0===n&&(n=this.getDefault()),n}_validate(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2?arguments[2]:void 0,r=arguments.length>3?arguments[3]:void 0,{path:i,originalValue:o=e,strict:s=this.spec.strict}=t,a=e;s||(a=this._cast(a,Object.assign({assert:!1},t)));let l=[];for(let c of Object.values(this.internalTests))c&&l.push(c);this.runTests({path:i,value:a,originalValue:o,options:t,tests:l},n,(e=>{if(e.length)return r(e,a);this.runTests({path:i,value:a,originalValue:o,options:t,tests:this.tests},n,r)}))}runTests(e,t,n){let r=!1,{tests:i,value:o,originalValue:s,path:a,options:l}=e,c=e=>{r||(r=!0,t(e,o))},u=e=>{r||(r=!0,n(e,o))},d=i.length,h=[];if(!d)return u([]);let p={value:o,originalValue:s,path:a,options:l,schema:this};for(let f=0;f<i.length;f++){(0,i[f])(p,c,(function(e){e&&(h=h.concat(e)),--d<=0&&u(h)}))}}asNestedTest(e){let{key:t,index:n,parent:r,parentPath:i,originalParent:o,options:s}=e;const a=null!=t?t:n;if(null==a)throw TypeError("Must include `key` or `index` for nested validations");const l="number"===typeof a;let c=r[a];const u=Object.assign({},s,{strict:!0,parent:r,value:c,originalValue:o[a],key:void 0,[l?"index":"key"]:a,path:l||a.includes(".")?"".concat(i||"","[").concat(c?a:'"'.concat(a,'"'),"]"):(i?"".concat(i,"."):"")+t});return(e,t,n)=>this.resolve(u)._validate(c,u,t,n)}validate(e,t){let n=this.resolve(Object.assign({},t,{value:e}));return new Promise(((r,i)=>n._validate(e,t,((e,t)=>{F0e.isError(e)&&(e.value=t),i(e)}),((e,t)=>{e.length?i(new F0e(e,t)):r(t)}))))}validateSync(e,t){let n;return this.resolve(Object.assign({},t,{value:e}))._validate(e,Object.assign({},t,{sync:!0}),((e,t)=>{throw F0e.isError(e)&&(e.value=t),e}),((t,r)=>{if(t.length)throw new F0e(t,e);n=r})),n}isValid(e,t){return this.validate(e,t).then((()=>!0),(e=>{if(F0e.isError(e))return!1;throw e}))}isValidSync(e,t){try{return this.validateSync(e,t),!0}catch(n){if(F0e.isError(n))return!1;throw n}}_getDefault(){let e=this.spec.default;return null==e?e:"function"===typeof e?e.call(this):r1e(e)}getDefault(e){return this.resolve(e||{})._getDefault()}default(e){if(0===arguments.length)return this._getDefault();return this.clone({default:e})}strict(){let e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];return this.clone({strict:e})}nullability(e,t){const n=this.clone({nullable:e});return n.internalTests.nullable=e1e({message:t,name:"nullable",test(e){return null!==e||this.schema.spec.nullable}}),n}optionality(e,t){const n=this.clone({optional:e});return n.internalTests.optionality=e1e({message:t,name:"optionality",test(e){return void 0!==e||this.schema.spec.optional}}),n}optional(){return this.optionality(!0)}defined(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:z0e.defined;return this.optionality(!1,e)}nullable(){return this.nullability(!0)}nonNullable(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:z0e.notNull;return this.nullability(!1,e)}required(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:z0e.required;return this.clone().withMutation((t=>t.nonNullable(e).defined(e)))}notRequired(){return this.clone().withMutation((e=>e.nullable().optional()))}transform(e){let t=this.clone();return t.transforms.push(e),t}test(){let e;if(e=1===arguments.length?"function"===typeof(arguments.length<=0?void 0:arguments[0])?{test:arguments.length<=0?void 0:arguments[0]}:arguments.length<=0?void 0:arguments[0]:2===arguments.length?{name:arguments.length<=0?void 0:arguments[0],test:arguments.length<=1?void 0:arguments[1]}:{name:arguments.length<=0?void 0:arguments[0],message:arguments.length<=1?void 0:arguments[1],test:arguments.length<=2?void 0:arguments[2]},void 0===e.message&&(e.message=z0e.default),"function"!==typeof e.test)throw new TypeError("`test` is a required parameters");let t=this.clone(),n=e1e(e),r=e.exclusive||e.name&&!0===t.exclusiveTests[e.name];if(e.exclusive&&!e.name)throw new TypeError("Exclusive tests must provide a unique `name` identifying the test");return e.name&&(t.exclusiveTests[e.name]=!!e.exclusive),t.tests=t.tests.filter((t=>{if(t.OPTIONS.name===e.name){if(r)return!1;if(t.OPTIONS.test===n.OPTIONS.test)return!1}return!0})),t.tests.push(n),t}when(e,t){Array.isArray(e)||"string"===typeof e||(t=e,e=".");let n=this.clone(),r=L0e(e).map((e=>new J0e(e)));return r.forEach((e=>{e.isSibling&&n.deps.push(e.key)})),n.conditions.push("function"===typeof t?new K0e(r,t):K0e.fromOptions(r,t)),n}typeError(e){let t=this.clone();return t.internalTests.typeError=e1e({message:e,name:"typeError",test(e){return!(!Q0e(e)&&!this.schema._typeCheck(e))||this.createError({params:{type:this.schema.type}})}}),t}oneOf(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:z0e.oneOf,n=this.clone();return e.forEach((e=>{n._whitelist.add(e),n._blacklist.delete(e)})),n.internalTests.whiteList=e1e({message:t,name:"oneOf",skipAbsent:!0,test(e){let t=this.schema._whitelist,n=t.resolveAll(this.resolve);return!!n.includes(e)||this.createError({params:{values:Array.from(t).join(", "),resolved:n}})}}),n}notOneOf(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:z0e.notOneOf,n=this.clone();return e.forEach((e=>{n._blacklist.add(e),n._whitelist.delete(e)})),n.internalTests.blacklist=e1e({message:t,name:"notOneOf",test(e){let t=this.schema._blacklist,n=t.resolveAll(this.resolve);return!n.includes(e)||this.createError({params:{values:Array.from(t).join(", "),resolved:n}})}}),n}strip(){let e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0],t=this.clone();return t.spec.strip=e,t}describe(e){const t=(e?this.resolve(e):this).clone(),{label:n,meta:r,optional:i,nullable:o}=t.spec,s={meta:r,label:n,optional:i,nullable:o,default:t.getDefault(e),type:t.type,oneOf:t._whitelist.describe(),notOneOf:t._blacklist.describe(),tests:t.tests.map((e=>({name:e.OPTIONS.name,params:e.OPTIONS.params}))).filter(((e,t,n)=>n.findIndex((t=>t.name===e.name))===t))};return s}}i1e.prototype.__isYupSchema__=!0;for(const Set of["validate","validateSync"])i1e.prototype["".concat(Set,"At")]=function(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};const{parent:r,parentPath:i,schema:o}=t1e(this,e,t,n.context);return o[Set](r&&r[i],Object.assign({},n,{parent:r,path:e}))};for(const Set of["equals","is"])i1e.prototype[Set]=i1e.prototype.oneOf;for(const Set of["not","nope"])i1e.prototype[Set]=i1e.prototype.notOneOf;let o1e=/^[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])?)*$/,s1e=/^((https?|ftp):)?\/\/(((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:)*@)?(((\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])\.(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])\.(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])\.(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5]))|((([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))\.)+(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))\.?)(:\d*)?)(\/((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)+(\/(([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)*)*)?)?(\?((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)|[\uE000-\uF8FF]|\/|\?)*)?(\#((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)|\/|\?)*)?$/i,a1e=/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i,l1e=e=>Q0e(e)||e===e.trim(),c1e={}.toString();function u1e(){return new d1e}class d1e extends i1e{constructor(){super({type:"string",check:e=>(e instanceof String&&(e=e.valueOf()),"string"===typeof e)}),this.withMutation((()=>{this.transform(((e,t,n)=>{if(!n.spec.coerce||n.isType(e))return e;if(Array.isArray(e))return e;const r=null!=e&&e.toString?e.toString():e;return r===c1e?e:r}))}))}required(e){return super.required(e).withMutation((t=>t.test({message:e||z0e.required,name:"required",skipAbsent:!0,test:e=>!!e.length})))}notRequired(){return super.notRequired().withMutation((e=>(e.tests=e.tests.filter((e=>"required"!==e.OPTIONS.name)),e)))}length(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:B0e.length;return this.test({message:t,name:"length",exclusive:!0,params:{length:e},skipAbsent:!0,test(t){return t.length===this.resolve(e)}})}min(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:B0e.min;return this.test({message:t,name:"min",exclusive:!0,params:{min:e},skipAbsent:!0,test(t){return t.length>=this.resolve(e)}})}max(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:B0e.max;return this.test({name:"max",exclusive:!0,message:t,params:{max:e},skipAbsent:!0,test(t){return t.length<=this.resolve(e)}})}matches(e,t){let n,r,i=!1;return t&&("object"===typeof t?({excludeEmptyString:i=!1,message:n,name:r}=t):n=t),this.test({name:r||"matches",message:n||B0e.matches,params:{regex:e},skipAbsent:!0,test:t=>""===t&&i||-1!==t.search(e)})}email(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:B0e.email;return this.matches(o1e,{name:"email",message:e,excludeEmptyString:!0})}url(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:B0e.url;return this.matches(s1e,{name:"url",message:e,excludeEmptyString:!0})}uuid(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:B0e.uuid;return this.matches(a1e,{name:"uuid",message:e,excludeEmptyString:!1})}ensure(){return this.default("").transform((e=>null===e?"":e))}trim(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:B0e.trim;return this.transform((e=>null!=e?e.trim():e)).test({message:e,name:"trim",test:l1e})}lowercase(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:B0e.lowercase;return this.transform((e=>Q0e(e)?e:e.toLowerCase())).test({message:e,name:"string_case",exclusive:!0,skipAbsent:!0,test:e=>Q0e(e)||e===e.toLowerCase()})}uppercase(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:B0e.uppercase;return this.transform((e=>Q0e(e)?e:e.toUpperCase())).test({message:e,name:"string_case",exclusive:!0,skipAbsent:!0,test:e=>Q0e(e)||e===e.toUpperCase()})}}u1e.prototype=d1e.prototype;function h1e(){return new p1e}class p1e extends i1e{constructor(){super({type:"number",check:e=>(e instanceof Number&&(e=e.valueOf()),"number"===typeof e&&!(e=>e!=+e)(e))}),this.withMutation((()=>{this.transform(((e,t,n)=>{if(!n.spec.coerce)return e;let r=e;if("string"===typeof r){if(r=r.replace(/\s/g,""),""===r)return NaN;r=+r}return n.isType(r)?r:parseFloat(r)}))}))}min(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:U0e.min;return this.test({message:t,name:"min",exclusive:!0,params:{min:e},skipAbsent:!0,test(t){return t>=this.resolve(e)}})}max(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:U0e.max;return this.test({message:t,name:"max",exclusive:!0,params:{max:e},skipAbsent:!0,test(t){return t<=this.resolve(e)}})}lessThan(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:U0e.lessThan;return this.test({message:t,name:"max",exclusive:!0,params:{less:e},skipAbsent:!0,test(t){return t<this.resolve(e)}})}moreThan(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:U0e.moreThan;return this.test({message:t,name:"min",exclusive:!0,params:{more:e},skipAbsent:!0,test(t){return t>this.resolve(e)}})}positive(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:U0e.positive;return this.moreThan(0,e)}negative(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:U0e.negative;return this.lessThan(0,e)}integer(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:U0e.integer;return this.test({name:"integer",message:e,skipAbsent:!0,test:e=>Number.isInteger(e)})}truncate(){return this.transform((e=>Q0e(e)?e:0|e))}round(e){var t;let n=["ceil","floor","round","trunc"];if("trunc"===(e=(null==(t=e)?void 0:t.toLowerCase())||"round"))return this.truncate();if(-1===n.indexOf(e.toLowerCase()))throw new TypeError("Only valid options for round() are: "+n.join(", "));return this.transform((t=>Q0e(t)?t:Math[e](t)))}}h1e.prototype=p1e.prototype;var f1e=/^(\d{4}|[+\-]\d{6})(?:-?(\d{2})(?:-?(\d{2}))?)?(?:[ T]?(\d{2}):?(\d{2})(?::?(\d{2})(?:[,\.](\d{1,}))?)?(?:(Z)|([+\-])(\d{2})(?::?(\d{2}))?)?)?$/;let g1e=new Date("");function m1e(){return new y1e}class y1e extends i1e{constructor(){super({type:"date",check(e){return t=e,"[object Date]"===Object.prototype.toString.call(t)&&!isNaN(e.getTime());var t}}),this.withMutation((()=>{this.transform(((e,t,n)=>!n.spec.coerce||n.isType(e)?e:(e=function(e){var t,n,r=[1,4,5,6,7,10,11],i=0;if(n=f1e.exec(e)){for(var o,s=0;o=r[s];++s)n[o]=+n[o]||0;n[2]=(+n[2]||1)-1,n[3]=+n[3]||1,n[7]=n[7]?String(n[7]).substr(0,3):0,void 0!==n[8]&&""!==n[8]||void 0!==n[9]&&""!==n[9]?("Z"!==n[8]&&void 0!==n[9]&&(i=60*n[10]+n[11],"+"===n[9]&&(i=0-i)),t=Date.UTC(n[1],n[2],n[3],n[4],n[5]+i,n[6],n[7])):t=+new Date(n[1],n[2],n[3],n[4],n[5],n[6],n[7])}else t=Date.parse?Date.parse(e):NaN;return t}(e),isNaN(e)?y1e.INVALID_DATE:new Date(e))))}))}prepareParam(e,t){let n;if(J0e.isRef(e))n=e;else{let r=this.cast(e);if(!this._typeCheck(r))throw new TypeError("`".concat(t,"` must be a Date or a value that can be `cast()` to a Date"));n=r}return n}min(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:W0e.min,n=this.prepareParam(e,"min");return this.test({message:t,name:"min",exclusive:!0,params:{min:e},skipAbsent:!0,test(e){return e>=this.resolve(n)}})}max(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:W0e.max,n=this.prepareParam(e,"max");return this.test({message:t,name:"max",exclusive:!0,params:{max:e},skipAbsent:!0,test(e){return e<=this.resolve(n)}})}}function v1e(e,t){let n=1/0;return e.some(((e,r)=>{var i;if(null!=(i=t.path)&&i.includes(e))return n=r,!0})),n}function _1e(e){return(t,n)=>v1e(e,t)-v1e(e,n)}y1e.INVALID_DATE=g1e,m1e.prototype=y1e.prototype,m1e.INVALID_DATE=g1e;const b1e=(e,t,n)=>{if("string"!==typeof e)return e;let r=e;try{r=JSON.parse(e)}catch(i){}return n.isType(r)?r:e};function x1e(e){if("fields"in e){const t={};for(const[n,r]of Object.entries(e.fields))t[n]=x1e(r);return e.setFields(t)}if("array"===e.type){const t=e.optional();return t.innerType&&(t.innerType=x1e(t.innerType)),t}return"tuple"===e.type?e.optional().clone({types:e.spec.types.map(x1e)}):"optional"in e?e.optional():e}let S1e=e=>"[object Object]"===Object.prototype.toString.call(e);const w1e=_1e([]);function E1e(e){return new P1e(e)}class P1e extends i1e{constructor(e){super({type:"object",check:e=>S1e(e)||"function"===typeof e}),this.fields=Object.create(null),this._sortErrors=w1e,this._nodes=[],this._excludedEdges=[],this.withMutation((()=>{e&&this.shape(e)}))}_cast(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};var n;let r=super._cast(e,t);if(void 0===r)return this.getDefault();if(!this._typeCheck(r))return r;let i=this.fields,o=null!=(n=t.stripUnknown)?n:this.spec.noUnknown,s=[].concat(this._nodes,Object.keys(r).filter((e=>!this._nodes.includes(e)))),a={},l=Object.assign({},t,{parent:a,__validating:t.__validating||!1}),c=!1;for(const u of s){let e=i[u],n=u in r;if(e){let n,i=r[u];l.path=(t.path?"".concat(t.path,"."):"")+u,e=e.resolve({value:i,context:t.context,parent:a});let o=e instanceof i1e?e.spec:void 0,s=null==o?void 0:o.strict;if(null!=o&&o.strip){c=c||u in r;continue}n=t.__validating&&s?r[u]:e.cast(r[u],l),void 0!==n&&(a[u]=n)}else n&&!o&&(a[u]=r[u]);n===u in a&&a[u]===r[u]||(c=!0)}return c?a:r}_validate(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2?arguments[2]:void 0,r=arguments.length>3?arguments[3]:void 0,{from:i=[],originalValue:o=e,recursive:s=this.spec.recursive}=t;t.from=[{schema:this,value:o},...i],t.__validating=!0,t.originalValue=o,super._validate(e,t,n,((e,i)=>{if(!s||!S1e(i))return void r(e,i);o=o||i;let a=[];for(let n of this._nodes){let e=this.fields[n];e&&!J0e.isRef(e)&&a.push(e.asNestedTest({options:t,key:n,parent:i,parentPath:t.path,originalParent:o}))}this.runTests({tests:a,value:i,originalValue:o,options:t},n,(t=>{r(t.sort(this._sortErrors).concat(e),i)}))}))}clone(e){const t=super.clone(e);return t.fields=Object.assign({},this.fields),t._nodes=this._nodes,t._excludedEdges=this._excludedEdges,t._sortErrors=this._sortErrors,t}concat(e){let t=super.concat(e),n=t.fields;for(let[r,i]of Object.entries(this.fields)){const e=n[r];n[r]=void 0===e?i:e}return t.withMutation((e=>e.setFields(n,this._excludedEdges)))}_getDefault(){if("default"in this.spec)return super._getDefault();if(!this._nodes.length)return;let e={};return this._nodes.forEach((t=>{const n=this.fields[t];e[t]=n&&"getDefault"in n?n.getDefault():void 0})),e}setFields(e,t){let n=this.clone();return n.fields=e,n._nodes=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],n=[],r=new Set,i=new Set(t.map((e=>{let[t,n]=e;return"".concat(t,"-").concat(n)})));function o(e,t){let o=(0,A0e.split)(e)[0];r.add(o),i.has("".concat(t,"-").concat(o))||n.push([t,o])}for(const s of Object.keys(e)){let t=e[s];r.add(s),J0e.isRef(t)&&t.isSibling?o(t.path,s):Y0e(t)&&"deps"in t&&t.deps.forEach((e=>o(e,s)))}return I0e().array(Array.from(r),n).reverse()}(e,t),n._sortErrors=_1e(Object.keys(e)),t&&(n._excludedEdges=t),n}shape(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];return this.clone().withMutation((n=>{let r=n._excludedEdges;return t.length&&(Array.isArray(t[0])||(t=[t]),r=[...n._excludedEdges,...t]),n.setFields(Object.assign(n.fields,e),r)}))}partial(){const e={};for(const[t,n]of Object.entries(this.fields))e[t]="optional"in n&&n.optional instanceof Function?n.optional():n;return this.setFields(e)}deepPartial(){return x1e(this)}pick(e){const t={};for(const n of e)this.fields[n]&&(t[n]=this.fields[n]);return this.setFields(t)}omit(e){const t=Object.assign({},this.fields);for(const n of e)delete t[n];return this.setFields(t)}from(e,t,n){let r=(0,A0e.getter)(e,!0);return this.transform((i=>{if(!i)return i;let o=i;return((e,t)=>{const n=[...(0,A0e.normalizePath)(t)];if(1===n.length)return n[0]in e;let r=n.pop(),i=(0,A0e.getter)((0,A0e.join)(n),!0)(e);return!(!i||!(r in i))})(i,e)&&(o=Object.assign({},i),n||delete o[e],o[t]=r(i)),o}))}json(){return this.transform(b1e)}noUnknown(){let e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:q0e.noUnknown;"boolean"!==typeof e&&(t=e,e=!0);let n=this.test({name:"noUnknown",exclusive:!0,message:t,test(t){if(null==t)return!0;const n=function(e,t){let n=Object.keys(e.fields);return Object.keys(t).filter((e=>-1===n.indexOf(e)))}(this.schema,t);return!e||0===n.length||this.createError({params:{unknown:n.join(", ")}})}});return n.spec.noUnknown=e,n}unknown(){let e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:q0e.noUnknown;return this.noUnknown(!e,t)}transformKeys(e){return this.transform((t=>{if(!t)return t;const n={};for(const r of Object.keys(t))n[e(r)]=t[r];return n}))}camelCase(){return this.transformKeys(k0e.camelCase)}snakeCase(){return this.transformKeys(k0e.snakeCase)}constantCase(){return this.transformKeys((e=>(0,k0e.snakeCase)(e).toUpperCase()))}describe(e){let t=super.describe(e);t.fields={};for(const[r,i]of Object.entries(this.fields)){var n;let o=e;null!=(n=o)&&n.value&&(o=Object.assign({},o,{parent:o.value,value:o.value[r]})),t.fields[r]=i.describe(o)}return t}}E1e.prototype=P1e.prototype;var C1e=function(e){var t=e.as,r=e.errors,i=e.name,o=e.message,s=e.render,a=function(e,t){if(null==e)return{};var n,r,i={},o=Object.keys(e);for(r=0;r<o.length;r++)t.indexOf(n=o[r])>=0||(i[n]=e[n]);return i}(e,["as","errors","name","message","render"]),l=vQe(),c=aQe(r||l.formState.errors,i);if(!c)return null;var u=c.message,d=c.types,h=Object.assign({},a,{children:u||o});return n.isValidElement(t)?n.cloneElement(t,h):s?s({message:u||o,messages:d}):n.createElement(t||n.Fragment,h)};const A1e=Zo()((e=>({formError:{color:e.palette.error.main}}))),k1e=e=>{const{classes:t}=A1e();return(0,Ae.jsx)(C1e,{errors:e.errors,name:e.name,render:n=>{var r;let{message:i}=n;return(0,Ae.jsx)("p",{className:t.formError,children:null!==(r=e.customMessage)&&void 0!==r?r:i})}})},j1e=Zo()((()=>({root:{width:"100%"},fileContainer:{height:"1.2rem","& .file-icon svg":{height:"100%",width:"100%"},"& button":{padding:0}}}))),I1e=E1e().shape({text:u1e().required().min(1).max(200)}),G1e=e=>{var t,r,i,o;const{classes:s}=j1e(),[a,l]=(0,n.useState)(!1),c=(0,n.useMemo)((()=>e.comment?"Edit comment":"Add comment"),[e.comment]),{handleSubmit:u,control:d,formState:{errors:h},watch:p}=S0e({resolver:C0e(I1e),defaultValues:{text:null!==(t=null===(r=e.comment)||void 0===r?void 0:r.text)&&void 0!==t?t:"",files:null!==(i=null===(o=e.comment)||void 0===o?void 0:o.files)&&void 0!==i?i:[],newFiles:[]}}),f=p("files"),g=(0,n.useMemo)((()=>5-f.length),[5,f]);return(0,Ae.jsx)("form",{onSubmit:u((async t=>{var n,r;l(!0),await e.onValidate(null!==(n=null===(r=e.comment)||void 0===r?void 0:r.id)&&void 0!==n?n:null,t,e.externalUserCode),l(!1)})),className:s.root,children:(0,Ae.jsxs)(ws,{container:!0,direction:"column",wrap:"nowrap",rowGap:"0.5rem",children:[(0,Ae.jsx)(ws,{item:!0,children:(0,Ae.jsx)(vu,{variant:"h6",children:c})}),(0,Ae.jsxs)(ws,{item:!0,children:[(0,Ae.jsx)(GQe,{name:"text",control:d,render:e=>{let{field:{onChange:t,value:n,name:r}}=e;return(0,Ae.jsx)(iE,{fullWidth:!0,multiline:!0,rows:2,size:"small",name:r,id:"name",type:"text",variant:"outlined",label:"Comment",value:n,onChange:t,inputProps:{maxLength:200}})}}),(0,Ae.jsx)(k1e,{errors:h,name:"text"})]}),(0,Ae.jsx)(ws,{item:!0,children:(0,Ae.jsx)(GQe,{name:"files",control:d,render:e=>{let{field:{onChange:t,value:n}}=e;return(0,Ae.jsx)(ws,{container:!0,direction:"column",wrap:"nowrap",rowGap:"0.5rem",children:n.map(((e,r)=>(0,Ae.jsxs)(ws,{item:!0,container:!0,wrap:"nowrap",columnGap:"0.25rem",alignContent:"center",className:s.fileContainer,children:[(0,Ae.jsx)(ws,{item:!0,children:(0,Ae.jsx)(Gu,{onClick:()=>t(n.filter((t=>{let{name:n}=t;return n!==e.name}))),children:(0,Ae.jsx)(n8.c,{fontSize:"small",color:"error"})})}),(0,Ae.jsx)(ws,{item:!0,className:"file-icon",children:(0,Ae.jsx)(KJe,{extension:yhe(e.path).extension,type:"image"})}),(0,Ae.jsx)(ws,{item:!0,children:(0,Ae.jsx)(vu,{children:e.name})})]},r)))})}})}),g>0&&(0,Ae.jsx)(ws,{item:!0,children:(0,Ae.jsx)(GQe,{name:"newFiles",control:d,render:e=>{let{field:{onChange:t}}=e;return(0,Ae.jsx)(khe,{maxFiles:g,text:"You can upload files with your comment",onLoadedFilesChange:e=>{t(e.map((e=>e.file)))}})}})}),(0,Ae.jsx)(ws,{item:!0,children:(0,Ae.jsx)(ohe,{submit:!0,loading:a,onCancel:e.onCancel})})]})})},T1e="solar-construction",M1e=async(e,t,n,r,i)=>{const o=r.newFiles.map(((r,o)=>{const s=yhe(r.name).extension;if(!s)return Promise.reject();const a=((e,t,n,r,i)=>"inspections/".concat(e,"/annotations/").concat(t,"/comments/").concat(n,"/").concat(r,".").concat(i))(e,t,n,"".concat(o,"_").concat(Date.now()),s);return whe(a,r,i).then((()=>({path:a,name:r.name})))})),s=await Promise.all(o),a={method:"PATCH",body:JSON.stringify({comment:{text:r.text,files:[...r.files,...s]}})},l=await Ey("/".concat(T1e,"/").concat(e,"/annotations/").concat(t,"/comments/").concat(n,"?externalUserCode=").concat(encodeURIComponent(null!==i&&void 0!==i?i:"")),a),c=await l.json();if(200!==l.status)throw new Error(null!==c&&void 0!==c?c:l.statusText);const u=BZe(c);if(!VZe(u))throw new Error("Invalid json");return u};var O1e=__webpack_require__(85936),R1e=__webpack_require__(59568),D1e=__webpack_require__(98608),N1e=__webpack_require__(92448);const L1e=e=>"string"===typeof e,V1e=Zo()(((e,t)=>({root:{position:"relative",width:"100%",height:"100%"},image:{width:"100%",height:"100%",backgroundPosition:"center",backgroundRepeat:"no-repeat",backgroundSize:"contain",backgroundImage:t?"url(".concat(t,")"):"none",border:t?"1px solid ".concat(Rp):"none"},closeIcon:{position:"absolute",backgroundColor:Rp,top:"-10px",right:"-10px",padding:"2px","& svg":{width:"16px",height:"16px"}},otherFileIcon:{height:"100%","& svg":{height:"100%"}}}))),F1e=["image/jpeg","image/jpg","image/png","image/gif","image/bmp"],z1e=e=>{const t=(0,n.useMemo)((()=>{if(!L1e(e.file))return F1e.includes(e.file.type);return e.file.split(".").map((e=>"image/".concat(e))).some((e=>F1e.some((t=>e.startsWith(t)))))}),[e.file]),r=(0,n.useMemo)((()=>t?L1e(e.file)?e.file:URL.createObjectURL(e.file):null),[t]),i=(0,n.useMemo)((()=>{if(!L1e(e.file))return yhe(e.file.name).extension;const t=e.file.split(".").map((e=>e.split("?"))).filter((e=>e.length>1));return 0!==t.length?t[0][0]:void 0}),[e.file]),{classes:o}=V1e(r);return(0,Ae.jsxs)("div",{className:o.root,children:[(0,Ae.jsx)("div",{className:o.image,children:t?(0,Ae.jsx)(Ae.Fragment,{}):(0,Ae.jsx)("div",{className:o.otherFileIcon,children:(0,Ae.jsx)(KJe,{extension:i,type:"document"})})}),!e.disabled&&(0,Ae.jsx)(Gu,{className:o.closeIcon,onClick:e.onRemove,children:(0,Ae.jsx)(rwe.c,{})})]})},B1e=Zo()((()=>({root:{},camera:{zIndex:1e3,position:"fixed",top:0,left:0,width:"100dvw",height:"100dvh",backgroundColor:"black",display:"flex",alignItems:"center",justifyContent:"center"},close:{zIndex:2,position:"fixed",top:"10px",right:"10px"},switchCamera:{zIndex:2,position:"fixed",bottom:"10px",left:"10px"},iconContainer:{"& svg":{width:"30px",height:"30px"}},uploadedFiles:{overflowX:"auto",overflowY:"hidden"},fileItemContainer:{marginTop:"15px",width:"4rem",height:"4rem"},cameraContainer:{padding:"1rem","& .react-html5-camera-photo ":{maxWidth:"100%",maxHeight:"100%",overflow:"hidden",zIndex:1}}}))),U1e=e=>{const{classes:t}=B1e(),r=(0,n.useRef)(null),[i,o]=(0,n.useState)(!1),[s,a]=(0,n.useState)(""),[l,c]=(0,n.useState)([]),[u,d]=(0,n.useState)([]),[h,p]=(0,n.useState)(!1),[f,g]=(0,n.useState)(qje.FACING_MODES.ENVIRONMENT),m=(0,n.useMemo)((()=>[...l,...u]),[l,u]),y=(0,n.useMemo)((()=>void 0!==e.text),[e.text]);(0,n.useEffect)((()=>{var t;a(null!==(t=e.text)&&void 0!==t?t:"")}),[e.text]),(0,n.useEffect)((()=>{var t;d(null!==(t=e.files)&&void 0!==t?t:[])}),[e.files]);const v=()=>{a(""),o(!1),c([]),d([]),p(!1)};return(0,Ae.jsxs)("div",{className:t.root,children:[(0,Ae.jsxs)(ws,{container:!0,direction:"column",wrap:"nowrap",children:[(0,Ae.jsx)(ws,{item:!0,children:(0,Ae.jsxs)(yw,{sx:{width:"100%"},variant:"outlined",children:[(0,Ae.jsx)(dw,{htmlFor:"input-label",children:e.label}),(0,Ae.jsx)(ew,{id:"input-label",type:"text",disabled:h,endAdornment:(0,Ae.jsx)(fx,{position:"end",children:(0,Ae.jsxs)(ws,{container:!0,wrap:"nowrap",columnGap:"0.5rem",children:[(0,Ae.jsxs)(ws,{item:!0,children:[(0,Ae.jsx)("input",{multiple:!0,ref:r,type:"file",onChange:e=>{if(!e.target.files)return;const t=[...e.target.files];c((e=>[...e,...t]))},style:{display:"none"}}),(0,Ae.jsx)(Gu,{className:t.iconContainer,disabled:h,"aria-label":"choose file",onClick:()=>{var e;return null===(e=r.current)||void 0===e?void 0:e.click()},edge:"end",children:(0,Ae.jsx)(O1e.c,{color:"success"})})]}),(0,Ae.jsx)(ws,{item:!0,children:(0,Ae.jsx)(Gu,{className:t.iconContainer,disabled:h,"aria-label":"take picture",onClick:()=>o(!0),edge:"end",children:(0,Ae.jsx)(R1e.c,{color:"warning"})})}),y&&(0,Ae.jsx)(ws,{item:!0,children:(0,Ae.jsx)(Gu,{className:t.iconContainer,disabled:h,"aria-label":"cancel",onClick:()=>{var t;v(),null===(t=e.onCancel)||void 0===t||t.call(e)},edge:"end",children:(0,Ae.jsx)(rwe.c,{color:""===s?"disabled":"error"})})}),(0,Ae.jsx)(ws,{item:!0,container:!0,alignItems:"center",children:h?(0,Ae.jsx)($y,{size:24,style:{padding:"8px"}}):(0,Ae.jsx)(Gu,{className:t.iconContainer,disabled:""===s||h,"aria-label":"validate",onClick:async()=>{try{var t;p(!0),await(null===(t=e.onValidate)||void 0===t?void 0:t.call(e,s,u,l))}catch(n){}finally{v()}},edge:"end",children:(0,Ae.jsx)(D1e.c,{color:""===s?"disabled":"primary"})})})]})}),label:e.label,value:s,onChange:e=>a(e.target.value)})]})}),(0,Ae.jsxs)(ws,{item:!0,container:!0,wrap:"nowrap",columnGap:"0.75rem",className:t.uploadedFiles,children:[m.map(((n,r)=>(0,Ae.jsx)(ws,{item:!0,className:t.fileItemContainer,children:(0,Ae.jsx)(z1e,{file:n,onRemove:()=>(e=>{c((t=>t.filter((t=>t!==e)))),d((t=>t.filter((t=>t!==e))))})(n),disabled:e.areFilesLoading||h})},r))),e.areFilesLoading&&(0,Ae.jsx)(ws,{item:!0,className:t.fileItemContainer,children:(0,Ae.jsx)($y,{})})]})]}),i&&(0,Ae.jsxs)("div",{className:t.camera,children:[(0,Ae.jsx)(Gu,{className:t.close,onClick:()=>o(!1),children:(0,Ae.jsx)(rwe.c,{color:"error",fontSize:"large"})}),(0,Ae.jsx)(Gu,{className:t.switchCamera,onClick:()=>{g((e=>e===qje.FACING_MODES.USER?qje.FACING_MODES.ENVIRONMENT:qje.FACING_MODES.USER))},children:(0,Ae.jsx)(N1e.c,{color:"secondary",fontSize:"large"})}),(0,Ae.jsx)(ws,{container:!0,width:"100%",height:"100%",alignItems:"center",className:t.cameraContainer,children:(0,Ae.jsx)(qje.Camera,{isMaxResolution:f===qje.FACING_MODES.ENVIRONMENT,isImageMirror:f===qje.FACING_MODES.USER,idealFacingMode:f,isDisplayStartCameraError:!0,onTakePhoto:e=>{const t=Xy(e,"image-".concat(Date.now(),".png"));c((e=>[...e,t])),o(!1)}})})]})]})},W1e=e=>{var t,r;const i=(0,n.useMemo)((()=>{var t,n;return null!==(t=null===(n=e.comment)||void 0===n?void 0:n.files)&&void 0!==t?t:[]}),[e.comment]),o=(0,n.useMemo)((()=>{var t,n;return(null!==(t=null===(n=e.comment)||void 0===n?void 0:n.files)&&void 0!==t?t:[]).map((e=>e.signedUrl))}),[null===(t=e.comment)||void 0===t?void 0:t.files]),s=(0,n.useCallback)(((t,n,r)=>{var o,s;const a=n.filter(L1e),l={text:t,files:i.filter((e=>{let{signedUrl:t}=e;return a.includes(t)})),newFiles:r};return e.onValidate(null!==(o=null===(s=e.comment)||void 0===s?void 0:s.id)&&void 0!==o?o:null,l,e.externalUserCode)}),[e.comment]);return(0,Ae.jsx)(U1e,{label:"Comment",onValidate:s,onCancel:e.onCancel,text:null===(r=e.comment)||void 0===r?void 0:r.text,files:o})},H1e=Zo()((()=>({root:{position:"relative",height:"100%",overflowX:"hidden",overflowY:"auto"},commentForm:{background:"white",padding:"1rem",borderRadius:"0.5rem",minWidth:"20rem",maxHeight:"20rem",overflowY:"auto"}}))),q1e=e=>{const{classes:t}=H1e(),{annotation:r}=e,i=(0,n.useContext)(mZe);if(!i)return(0,Ae.jsx)(Ae.Fragment,{});const{inspectionCtx:{inspection:o},annotationCtx:s,externalUserCode:a}=i,[l,c]=(0,n.useState)(!1),[u,d]=(0,n.useState)(null),h=(0,n.useMemo)((()=>r.comments.find((e=>e.id===u))),[r.comments,u]),p=(0,n.useRef)(),f=(0,n.useMemo)((()=>r.comments.sort(((e,t)=>t.created.at.getTime()-e.created.at.getTime()))),[r.comments]),g=()=>{c(!1),d(null)},m=async(e,t,n)=>{try{if(e){const i=await M1e(o.id,r.id,e,t,n);s.updateAnnotation(r.id,{comments:r.comments.map((t=>t.id===e?i:t))})}else{const e=await(async(e,t,n,r)=>{const i={method:"POST",body:JSON.stringify({comment:{text:n.text}})},o=await Ey("/".concat(T1e,"/").concat(e,"/annotations/").concat(t,"/comments?externalUserCode=").concat(encodeURIComponent(null!==r&&void 0!==r?r:"")),i),s=await o.json();if(200!==o.status)throw new Error(null!==s&&void 0!==s?s:o.statusText);const a=BZe(s);if(!VZe(a))throw new Error("Invalid json");return 0===n.newFiles.length?a:M1e(e,t,a.id,n,r)})(o.id,r.id,t,n);s.updateAnnotation(r.id,{comments:[...r.comments,e]})}d(null),g()}catch(i){}},y=async e=>{const t=await(async(e,t,n)=>{const r=await Ey("/".concat(T1e,"/").concat(e,"/annotations/").concat(t,"/comments/").concat(n),{method:"DELETE"});if(204!==r.status)throw new Error(r.statusText);return!0})(o.id,r.id,e);t&&s.updateAnnotation(r.id,{comments:r.comments.filter((t=>t.id!==e))})},v={id:"created-comment",text:"Defect created",created:r.created,files:[],isAuthor:!1};return(0,Ae.jsxs)(Ae.Fragment,{children:[(0,Ae.jsx)(wp,{position:"relative",ref:p,height:"100%",width:"100%",children:(0,Ae.jsxs)(ws,{container:!0,direction:"column",wrap:"nowrap",className:t.root,children:[(0,Ae.jsxs)(ws,{item:!0,container:!0,wrap:"nowrap",alignItems:"center",children:[(0,Ae.jsx)(ws,{item:!0,children:(0,Ae.jsx)(vu,{variant:"h6",children:"Comments"})}),!Wy()&&(0,Ae.jsx)(ws,{item:!0,children:(0,Ae.jsx)(Gu,{onClick:()=>c(!0),children:(0,Ae.jsx)(hJe.c,{fontSize:"small",color:"primary"})})})]}),(0,Ae.jsxs)(ws,{item:!0,container:!0,direction:"column",wrap:"nowrap",flex:1,height:0,rowGap:"0.5rem",overflow:"auto",paddingBottom:1,children:[f.map((e=>(0,Ae.jsx)(ws,{item:!0,children:(0,Ae.jsx)($Je,{onEdit:()=>{return t=e.id,d(t),void(Wy()||c(!0));var t},onDelete:()=>y(e.id),isAuthor:e.isAuthor,comment:e,isUpdating:e.id===u,externalUserCode:a})},"comment-".concat(e.id)))),(0,Ae.jsx)(ws,{item:!0,children:(0,Ae.jsx)($Je,{isAuthor:!1,comment:v,isUpdating:!1,externalUserCode:a})})]}),Wy()&&(0,Ae.jsx)(ws,{item:!0,paddingTop:"1rem",paddingBottom:"0.5rem",children:(0,Ae.jsx)(W1e,{comment:h,onValidate:m,onCancel:()=>d(null),externalUserCode:a})})]})}),!Wy()&&(0,Ae.jsx)(Ud,{open:l,anchorEl:p.current,anchorOrigin:{vertical:"center",horizontal:"left"},transformOrigin:{vertical:"center",horizontal:"center"},children:(0,Ae.jsx)(wp,{className:t.commentForm,children:(0,Ae.jsx)(G1e,{comment:h,onValidate:m,onCancel:g,externalUserCode:a})})})]})},X1e=Zo()((()=>({switch_track:{backgroundColor:"orange"},switch_base:{color:"orange","&.Mui-disabled":{color:"#e886a9"},"&.Mui-checked":{color:"#95cc97"},"&.Mui-checked + .MuiSwitch-track":{backgroundColor:"#4CAF50"}},switch_primary:{"&.Mui-checked":{color:"#4CAF50"},"&.Mui-checked + .MuiSwitch-track":{backgroundColor:"#4CAF50"}}}))),Y1e=()=>{const{classes:e}=X1e();return(0,n.useMemo)((()=>({track:e.switch_track,switchBase:e.switch_base,colorPrimary:e.switch_primary})),[])},K1e=Zo()((()=>({detailsText:{fontSize:"1.2rem"},severity:{padding:"0.25rem",borderRadius:"0.2rem",color:Dp,display:"flex",alignItems:"center"}}))),Z1e=e=>{var t;const{classes:r}=K1e(),i=(0,n.useContext)(mZe);if(!i)return(0,Ae.jsx)(Ae.Fragment,{});const{inspectionCtx:{inspection:o},annotationCtx:{updateAnnotation:s},isExternalUser:a}=i,{annotation:l}=e;if(!l)return null;const c=(0,n.useMemo)((()=>l.state.status===pAe.CLOSED),[l.state.status]),u=Y1e(),d=(0,n.useMemo)((()=>{let e;switch(l.severity){case 1:e=1;break;case 2:default:e=3;break;case 3:e=5}return Kp[e]}),[l.severity]);return(0,Ae.jsxs)(ws,{container:!0,direction:"column",wrap:"nowrap",height:"100%",children:[(0,Ae.jsxs)(ws,{item:!0,container:!0,wrap:"nowrap",color:"black",justifyContent:"space-between",children:[(0,Ae.jsxs)(ws,{item:!0,flex:1,container:!0,alignItems:"center",columnGap:"0.5rem",children:[(0,Ae.jsx)(vu,{className:r.detailsText,fontWeight:"bold",children:null!==(t=lA[l.type])&&void 0!==t?t:"No Name"}),(0,Ae.jsx)(ws,{item:!0,className:r.severity,bgcolor:d,children:(0,Ae.jsxs)("p",{children:["severity: ",l.severity]})})]}),!a&&(0,Ae.jsxs)(ws,{item:!0,flex:1,container:!0,alignItems:"center",justifyContent:"end",columnGap:"0.25rem",children:[(0,Ae.jsx)(ws,{item:!0,children:(0,Ae.jsx)(vu,{children:"Resolved"})}),(0,Ae.jsx)(ws,{item:!0,children:(0,Ae.jsx)(Aj,{classes:{...u},checked:c,onChange:e=>(async(e,t)=>{const n={state:{by:l.state.by,status:(r=t,r?pAe.CLOSED:pAe.OPEN),at:l.state.at}};var r;s(e,n),await JZe(o.id,e,n)})(l.id,e.target.checked)})})]})]}),(0,Ae.jsx)(ws,{item:!0,flexGrow:0,height:"1px",width:"90%",bgcolor:"grey.300",margin:"0.5rem auto"}),l&&(0,Ae.jsx)(ws,{item:!0,flex:1,height:0,children:(0,Ae.jsx)(q1e,{annotation:l,isMobile:!0})})]})},$1e=Zo()((()=>({root:{width:"100%",height:"100%","& > div":{borderRadius:0}}}))),J1e=Object.freeze({num:"5%",type:"25%",created:"20%",lastComment:"40%",severity:"5%",status:"5%"}),Q1e=()=>{const{classes:e}=$1e(),t=(0,n.useContext)(mZe);if(!t)return(0,Ae.jsx)(Ae.Fragment,{});const{inspectionCtx:{inspection:r},annotationCtx:{annotations:i,updateAnnotation:o},selectedAnnotationId:s,isExternalUser:a,setSelectedAnnotationId:l}=t,c=Y1e(),u=(0,n.useMemo)((()=>{const e=[{id:"num",label:"Id",disablePadding:!0,css:{width:J1e.num,paddingLeft:"0.5rem"}},{id:"type",label:"Type",disablePadding:!0,css:{width:J1e.type}},{id:"created",label:"Created",disablePadding:!0,css:{width:J1e.created}},{id:"lastComment",label:"Last comment",disablePadding:!0,css:{width:J1e.lastComment}},{id:"severity",label:"Severity",disablePadding:!0,css:{width:J1e.severity}},{id:"status",label:"Resolved",disablePadding:!0,css:{width:J1e.status}}];if(Wy()){const t=e.findIndex((e=>"lastComment"===e.id));e.splice(t,1)}return e}),[]),d=(0,n.useMemo)((()=>{const e=[{name:"id",hidden:!0},{name:"num",css:{padding:"2px 0",textAlign:"center",width:J1e.num}},{name:"type",css:{padding:"2px",textAlign:"center",lineHeight:"1rem",width:J1e.type}},{name:"created",css:{padding:"2px 4px",lineHeight:"10px",fontSize:"11px",textAlign:"center",fontStyle:"italic",width:J1e.created}},{name:"lastComment",css:{padding:"2px",lineHeight:"1rem",textAlign:"left",width:J1e.lastComment}},{name:"severity",css:{padding:"2px 0",textAlign:"center",width:J1e.severity}},{name:"status",type:"specific",css:{padding:"2px 0",textAlign:"center",width:J1e.status}}];if(Wy()){const t=e.findIndex((e=>"lastComment"===e.name));e.splice(t,1)}return e}),[]),h=(0,n.useMemo)((()=>i.map(((e,t)=>{var n;const r=e.comments.sort(((e,t)=>e.created.at.getTime()-t.created.at.getTime())),i=r.length>0?r[r.length-1]:null;return{id:e.id,num:"".concat(t+1),type:lA[e.type],created:UZe(e.created.at),lastComment:(o=null!==(n=null===i||void 0===i?void 0:i.text)&&void 0!==n?n:"",s=40,o.length<s?o:"".concat(o.substring(0,s),"\u2026")),severity:e.severity,status:e.state.status,creationDate:e.created.at};var o,s}))),[i]),p=(0,n.useCallback)((e=>{if(!e)return;const t="".concat(e);l((e=>e===t?null:t))}),[l]),f=(0,n.useCallback)((async(e,t)=>{o(e,t),await JZe(r.id,e,t)}),[r.id,o]),g=(0,n.useCallback)(((e,t)=>{const n=i.find((t=>{let{id:n}=t;return n===e}));n&&f(e,{state:{...n.state,status:t?pAe.CLOSED:pAe.OPEN}})}),[i,f]);return(0,Ae.jsx)(wp,{className:e.root,children:(0,Ae.jsx)(jT,{noShift:!0,noPagination:!0,height:"100%",ariaLabel:"Annotations manager",headCells:u,contentCells:d,rows:h,specificFormat:(e,t,n)=>{if("status"===e){const e=t===pAe.CLOSED;return a?e?(0,Ae.jsx)(Bh,{}):(0,Ae.jsx)(Ae.Fragment,{}):(0,Ae.jsx)("div",{onClick:e=>e.stopPropagation(),children:(0,Ae.jsx)(Aj,{checked:e,classes:{...c},color:e?"primary":"default",onChange:e=>{const t=e.target.checked;g(n.id,t)}})})}return null},specificSort:(e,t,n)=>"created"===n?e.sort(((e,n)=>{const r=e.creationDate,i=n.creationDate,o=r.getTime(),s=i.getTime();return"desc"===t?o-s:s-o})):ky(e,t,n),selectRow:p,highlightId:null!==s&&void 0!==s?s:void 0})})};var e3e,t3e=new Uint8Array(16);function n3e(){if(!e3e&&!(e3e="undefined"!==typeof crypto&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)||"undefined"!==typeof msCrypto&&"function"===typeof msCrypto.getRandomValues&&msCrypto.getRandomValues.bind(msCrypto)))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return e3e(t3e)}const r3e=/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i;const i3e=function(e){return"string"===typeof e&&r3e.test(e)};for(var o3e=[],s3e=0;s3e<256;++s3e)o3e.push((s3e+256).toString(16).substr(1));const a3e=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=(o3e[e[t+0]]+o3e[e[t+1]]+o3e[e[t+2]]+o3e[e[t+3]]+"-"+o3e[e[t+4]]+o3e[e[t+5]]+"-"+o3e[e[t+6]]+o3e[e[t+7]]+"-"+o3e[e[t+8]]+o3e[e[t+9]]+"-"+o3e[e[t+10]]+o3e[e[t+11]]+o3e[e[t+12]]+o3e[e[t+13]]+o3e[e[t+14]]+o3e[e[t+15]]).toLowerCase();if(!i3e(n))throw TypeError("Stringified UUID is invalid");return n};const l3e=function(e,t,n){var r=(e=e||{}).random||(e.rng||n3e)();if(r[6]=15&r[6]|64,r[8]=63&r[8]|128,t){n=n||0;for(var i=0;i<16;++i)t[n+i]=r[i];return t}return a3e(r)},c3e=e=>{const t=(0,n.useMemo)((()=>l3e()),[]),r=(0,n.useMemo)((()=>O3(e.coords,"none")),[e.coords]),i=(0,n.useMemo)((()=>e.withPolygon?[{id:"polygon-".concat(t),coords:e.coords}]:[]),[t,e.coords,e.withPolygon]);return(0,Ae.jsxs)(U5,{noMap:!0,noInteraction:!0,hideControls:!0,id:"map-comparison-".concat(t),bounds:r,children:[(0,Ae.jsx)(twe,{url:e.orthophotoUrl,zIndex:3}),(0,Ae.jsx)(yPe,{polygons:i,zIndex:4})]})},u3e=Zo()((()=>({mapContainer:{height:"100%",border:"1px solid rgba(0, 0, 0, 0.38)"},emptyContainer:{height:"100%",color:"rgba(0, 0, 0, 0.38)",justifyContent:"center",alignItems:"center",border:"1px dashed rgba(0, 0, 0, 0.38)"}}))),d3e=e=>{const{classes:t}=u3e();return""===e.orthophotoUrl?(0,Ae.jsx)(ws,{container:!0,className:t.emptyContainer,children:(0,Ae.jsx)(ws,{item:!0,children:"Orthophoto not available"})}):e.orthophotoUrl?(0,Ae.jsx)("div",{className:t.mapContainer,children:(0,Ae.jsx)(c3e,{coords:e.coords,orthophotoUrl:e.orthophotoUrl,withPolygon:!0})}):(0,Ae.jsx)(ws,{container:!0,className:t.emptyContainer,children:(0,Ae.jsx)(ws,{item:!0,children:e.noMoreChoice?"No other inspection to compare with":"Select another inspection to compare"})})},h3e=Zo()((()=>({select:{textAlign:"left"}}))),p3e=e=>{const{inspections:t,label:n="Inspection",disabled:r,selectedInspectionId:i="",onInspectionSelected:o}=e,{classes:s}=h3e();return(0,Ae.jsxs)(yw,{fullWidth:!0,children:[t.length>0&&(0,Ae.jsx)(dw,{children:n}),(0,Ae.jsx)(Jw,{fullWidth:!0,size:"small",variant:"outlined",label:n,value:i,onChange:e=>null===o||void 0===o?void 0:o(e.target.value),disabled:r||0===t.length,className:s.select,children:t.map((e=>(0,Ae.jsx)(dh,{value:e.id,children:Iy(e.inspectionDates.inspected)},e.id)))})]})},f3e=Zo()((()=>({root:{rowGap:"0.25rem",alignItems:"center"},select:{textAlign:"left"},mapComparisonSquare:{position:"relative",width:"100%",paddingBottom:"100%",height:0},mapComparisonContainer:{position:"absolute",width:"100%",height:"100%",top:0,left:0}}))),g3e=e=>{const{classes:t}=f3e(),{inspections:r,selectedInspection:i,coords:o}=e,[s,a]=(0,n.useState)(""),l=(0,n.useMemo)((()=>{var e;return null===(e=r.find((e=>{let{id:t}=e;return t===s})))||void 0===e?void 0:e.signedOrthophotoUrl}),[r,s]);return(0,n.useEffect)((()=>{var e;a(null!==(e=null===i||void 0===i?void 0:i.id)&&void 0!==e?e:"")}),[i]),(0,Ae.jsxs)(ws,{container:!0,direction:"column",wrap:"nowrap",className:t.root,children:[(0,Ae.jsx)(p3e,{inspections:r,disabled:e.readonly,selectedInspectionId:s,onInspectionSelected:e=>a(e)}),(0,Ae.jsx)(ws,{item:!0,className:t.mapComparisonSquare,children:(0,Ae.jsx)("div",{className:t.mapComparisonContainer,children:(0,Ae.jsx)(d3e,{coords:o,inspectionId:s,noMoreChoice:0===r.length,orthophotoUrl:l})})})]})},m3e=Zo()((()=>({root:{padding:"0.5rem",rowGap:"0.5rem"},title:{...l$e.title,paddingLeft:"0.5rem"}}))),y3e=e=>{const{classes:t}=m3e(),{annotation:r}=e,i=(0,n.useContext)(mZe);if(!i)return(0,Ae.jsx)(Ae.Fragment,{});const{inspectionCtx:{inspection:o},previousInspectionsCtx:{previousInspections:s}}=i,a=(0,n.useMemo)((()=>r.coords),[r]),l=(0,n.useMemo)((()=>s.filter((e=>{let{id:t,inspectionDates:n}=e;return t!==o.id&&null!=n.inspected})).sort(((e,t)=>new Date(t.inspectionDates.inspected).getTime()-new Date(e.inspectionDates.inspected).getTime()))),[s,o.id]),c=(0,n.useMemo)((()=>[{...o},...l]),[o,l]),u=(0,n.useCallback)((e=>c.slice(e)),[c]),d=(0,n.useCallback)((e=>e>=c.length?null:c[e]),[c]);return(0,Ae.jsxs)(ws,{container:!0,direction:"column",wrap:"nowrap",className:t.root,children:[(0,Ae.jsx)(ws,{item:!0,children:(0,Ae.jsx)(vu,{className:t.title,children:"Comparison"})}),(0,Ae.jsxs)(ws,{item:!0,container:!0,wrap:"nowrap",columns:3,justifyContent:"space-between",textAlign:"center",columnGap:"0.5rem",children:[(0,Ae.jsx)(ws,{item:!0,xs:1,children:(0,Ae.jsx)(g3e,{readonly:!0,coords:a,inspections:u(0),selectedInspection:d(0)})}),(0,Ae.jsx)(ws,{item:!0,xs:1,children:(0,Ae.jsx)(g3e,{coords:a,inspections:u(1),selectedInspection:d(1)})}),(0,Ae.jsx)(ws,{item:!0,xs:1,children:(0,Ae.jsx)(g3e,{coords:a,inspections:u(2),selectedInspection:d(2)})})]})]})},v3e=e=>(0,Ae.jsxs)(Ae.Fragment,{children:[(0,Ae.jsx)(dw,{children:"Severity"}),(0,Ae.jsx)(cW,{size:"small",fullWidth:!0,children:[1,2,3].map((t=>(0,Ae.jsx)(Sa,{value:t,variant:e.value===t?"contained":"outlined",onClick:()=>e.onChange(t),disabled:e.readonly,children:(0,Ae.jsx)("span",{children:t})},"severity-".concat(t))))})]}),_3e={type:aA.NOTE,severity:2,comment:""},b3e=E1e().shape({severity:h1e().required(),comment:u1e().max(200)}),x3e=Zo()((()=>({root:{padding:"1rem",width:"20rem",rowGap:"0.5rem"}}))),S3e=e=>{const{classes:t}=x3e(),[r,i]=(0,n.useState)(!1),{handleSubmit:o,control:s,formState:{errors:a},reset:l}=S0e({resolver:C0e(b3e),defaultValues:_3e});(0,n.useEffect)((()=>{e.isOpen||l()}),[e.isOpen]);return(0,Ae.jsx)(Ud,{anchorEl:e.anchorEl,open:e.isOpen,children:(0,Ae.jsx)("form",{onSubmit:o((async t=>{i(!0),await e.onValidate(t),i(!1)})),children:(0,Ae.jsxs)(ws,{container:!0,direction:"column",wrap:"nowrap",className:t.root,children:[(0,Ae.jsx)(ws,{item:!0,children:(0,Ae.jsx)(vu,{variant:"h6",children:"Annotation creation"})}),(0,Ae.jsxs)(ws,{item:!0,children:[(0,Ae.jsx)(GQe,{name:"type",control:s,render:e=>{let{field:{onChange:t,value:n,name:r}}=e;return(0,Ae.jsxs)(yw,{fullWidth:!0,children:[(0,Ae.jsx)(dw,{id:"annotation-type",children:"Type"}),(0,Ae.jsx)(Jw,{fullWidth:!0,size:"small",labelId:"annotation-type",name:r,variant:"outlined",value:n,label:"Type",onChange:t,children:Object.keys(aA).map((e=>(0,Ae.jsx)(dh,{value:e,children:lA[e]},e)))})]})}}),(0,Ae.jsx)(k1e,{errors:a,name:"name"})]}),(0,Ae.jsxs)(ws,{item:!0,children:[(0,Ae.jsx)(GQe,{name:"severity",control:s,render:e=>{let{field:{onChange:t,value:n}}=e;return(0,Ae.jsx)(v3e,{value:n,onChange:t})}}),(0,Ae.jsx)(k1e,{errors:a,name:"severity"})]}),(0,Ae.jsxs)(ws,{item:!0,children:[(0,Ae.jsx)(GQe,{name:"comment",control:s,render:e=>{let{field:{onChange:t,value:n,name:r}}=e;return(0,Ae.jsx)(iE,{fullWidth:!0,multiline:!0,rows:2,size:"small",name:r,id:"name",type:"text",variant:"outlined",label:"Comment",value:n,onChange:t,inputProps:{maxLength:200}})}}),(0,Ae.jsx)(k1e,{errors:a,name:"comment"})]}),(0,Ae.jsx)(ws,{item:!0,children:(0,Ae.jsx)(ohe,{submit:!0,loading:r,onCancel:e.onClose})})]})})})},w3e=Zo()((()=>({formRef:{width:"10px",height:"10px",position:"absolute",top:"0.5rem",left:"0.5rem"}}))),E3e=e=>{const{classes:t}=w3e(),{RightPanelComp:r}=e,i=(0,n.useRef)(null),[o,s]=(0,n.useState)(!1),[a,l]=(0,n.useState)(),c=(0,n.useContext)(mZe);if(!c)return(0,Ae.jsx)(Ae.Fragment,{});const{inspectionCtx:{inspection:u},stampCtx:{stamps:d},annotationCtx:{addAnnotation:h},isExternalUser:p,selectedAnnotationId:f,setSelectedAnnotationId:g,selectedModuleId:m,setSelectedModuleId:y,setCommonMapProps:v}=c,{setSelectedTool:_}=(0,n.useContext)(a$e);(0,n.useEffect)((()=>{_(IZe.SELECT)}),[_]);const b=(0,n.useCallback)((e=>{if(!e)return g(null);const t="".concat(e.getId());""!==t&&(g(t),y(null))}),[g,y]),x=(0,n.useCallback)((e=>{if(!Wy())return;if(!e)return y(null);const t="".concat(e.getId()),n=d.find((e=>{let{id:n}=e;return n===t}));n&&n.type===sA.MODULE&&(y(t),g(null))}),[d,y,g]),S=(0,n.useMemo)((()=>{if(!a)return[];return[{...a,id:"tmp-annot-from-mobile",style:{stroke:jp,size:2,fill:nU(jp,.2)}}]}),[a]),w=(0,n.useCallback)(((e,t,n)=>{if(n)return;const r=R3(t[0],t[1])/2;l({center:e,radius:Math.min(Math.max(r,.5),100)}),s(!0)}),[]);(0,n.useEffect)((()=>{(f||m)&&(l(void 0),s(!1))}),[f,m]);const E=(0,n.useCallback)((()=>{s(!1),l(void 0)}),[]),P=(0,n.useCallback)((async e=>{var t;if(!a)return;const n=null===(t=wK(new T0(A3(a.center),a.radius)).getCoordinates()[0])||void 0===t?void 0:t.map(k3);try{const t=await $Ze(u.id,{...e,coords:n});E(),h(t),g(t.id)}catch(r){}}),[u.id,a,h,E,g]),C=(0,n.useMemo)((()=>Wy()&&!p&&!f&&!m),[p,f,m]);return(0,n.useEffect)((()=>{v({visibleElements:[cA.STAMPS,cA.MEASUREMENTS,cA.ANNOTATIONS],selectableItems:[cA.ANNOTATIONS,cA.STAMPS],withMinimap:!Wy()})}),[v]),(0,n.useEffect)((()=>{r&&v((e=>{if(e)return{...e,rightPanel:(0,Ae.jsx)(r,{})}}))}),[v,r]),(0,n.useEffect)((()=>{v((e=>{if(e)return{...e,onAnnotationSelected:b}}))}),[v,b]),(0,n.useEffect)((()=>{v((e=>{if(e)return{...e,onStampSelected:x}}))}),[v,x]),(0,n.useEffect)((()=>{v((e=>{if(e)return{...e,onMapClick:C?w:void 0}}))}),[v,C,w]),(0,Ae.jsxs)(Ae.Fragment,{children:[(0,Ae.jsx)(j5,{circles:S,zIndex:10}),(0,Ae.jsx)("div",{className:t.formRef,ref:i}),(0,Ae.jsx)(S3e,{anchorEl:i.current,isOpen:o,onClose:E,onValidate:P})]})},P3e=e=>{const{moduleId:t,serialNumber:r,onValidate:i,onClose:o}=e,[s,a]=(0,n.useState)(""),l=(0,n.useRef)(null);return(0,n.useEffect)((()=>{a(null!==r&&void 0!==r?r:"")}),[r,t]),(0,n.useEffect)((()=>{var e;null===(e=l.current)||void 0===e||e.focus()}),[t]),(0,Ae.jsxs)(ws,{container:!0,direction:"column",wrap:"nowrap",gap:"0.25rem",padding:"0.5rem",children:[(0,Ae.jsx)(ws,{item:!0,container:!0,wrap:"nowrap",alignItems:"center",justifyContent:"end",gap:"0.5rem",children:(0,Ae.jsx)(Gu,{onClick:()=>null===o||void 0===o?void 0:o(),style:{border:"1px solid grey",padding:"0"},children:(0,Ae.jsx)(rwe.c,{fontSize:"small"})})}),(0,Ae.jsxs)(ws,{item:!0,container:!0,wrap:"nowrap",padding:"0.25rem 0.5rem",gap:"0.5rem",children:[(0,Ae.jsx)(iE,{inputRef:l,id:"serial-number-".concat(t),fullWidth:!0,autoFocus:!0,label:"Serial number",placeholder:"Serial number",value:s,onChange:e=>a(e.target.value)}),(0,Ae.jsx)(ev,{size:"small",variant:"outlined",color:"success",textColor:Fp,style:{border:"none"},onClick:()=>null===i||void 0===i?void 0:i(s),children:(0,Ae.jsx)(OB.c,{})})]})]})},C3e=e=>{let{onClick:t}=e;return(0,Ae.jsx)(Gu,{onClick:t,children:(0,Ae.jsx)(rwe.c,{fontSize:"small"})})},A3e=Zo()((()=>({root:{height:"100%",..._0},mainViewContainer:{..._0}}))),k3e=()=>{const{classes:e}=A3e(),[t,r]=(0,n.useState)(dA.DETAILS),i=(0,n.useContext)(mZe);if(!i)return(0,Ae.jsx)(Ae.Fragment,{});const{selectedAnnotationId:o,setSelectedAnnotationId:s,selectedModuleId:a,setSelectedModuleId:l,annotationCtx:{annotations:c,removeAnnotation:u},inspectionCtx:{inspection:d},stampCtx:{getStamp:h,updateStamp:p},selectedMobileView:f,isExternalUser:g,setCommonMapProps:m}=i,y=(0,n.useMemo)((()=>{if(!o)return;const e=c.find((e=>{let{id:t}=e;return t===o}));return e||void 0}),[o,c]),{setSelectedTool:v}=(0,n.useContext)(a$e);(0,n.useEffect)((()=>{v(IZe.SELECT)}),[v]);const _=()=>(0,Ae.jsx)(ws,{item:!0,flexGrow:0,height:"1px",width:"70%",bgcolor:"grey.300",margin:"0 auto"}),b=(0,n.useCallback)((()=>{switch(f){case uA.MAP:return(0,Ae.jsx)(E3e,{});case uA.LIST:return(0,Ae.jsx)(Q1e,{});case uA.STATS:return(0,Ae.jsxs)(ws,{container:!0,direction:"column",height:"100%",bgcolor:"white",wrap:"nowrap",justifyContent:"space-between",children:[(0,Ae.jsx)(ws,{item:!0,flexGrow:1,children:(0,Ae.jsx)(cJe,{withTitle:!0})}),(0,Ae.jsx)(_,{}),(0,Ae.jsx)(ws,{item:!0,maxHeight:"18rem",flexGrow:1,children:(0,Ae.jsx)(iJe,{withGraph:!0})}),(0,Ae.jsx)(_,{}),(0,Ae.jsx)(ws,{item:!0,flexGrow:1,children:(0,Ae.jsx)(dJe,{})})]});default:return null}}),[f]),x=(0,n.useCallback)((()=>{switch(t){case dA.DETAILS:return y?(0,Ae.jsx)(Z1e,{annotation:y}):(0,Ae.jsx)(Ae.Fragment,{});case dA.COMPARISON:return y?(0,Ae.jsx)(y3e,{annotation:y}):(0,Ae.jsx)(vu,{style:l$e.title,children:"No annotation selected."});default:return null}}),[t,y]),S=(0,n.useCallback)((async()=>{o&&(await QZe(d.id,o),u(o),s(null))}),[d.id,o,u,s]),w=(0,n.useCallback)((()=>y?f===uA.STATS?(0,Ae.jsx)(Ae.Fragment,{}):(0,Ae.jsxs)(ws,{container:!0,wrap:"nowrap",height:"100%",width:"100%",direction:"column",overflow:"hidden",paddingX:"5px",children:[(0,Ae.jsxs)(ws,{item:!0,padding:"5px",width:"100%",display:"flex",justifyContent:"space-between",children:[(0,Ae.jsx)(ws,{item:!0,flex:1}),(0,Ae.jsx)(ws,{item:!0,flex:1,children:(0,Ae.jsx)(ige,{buttons:Object.values(dA),onClick:e=>r(Object.values(dA)[e]),activeIndex:Object.values(dA).indexOf(t)})}),(0,Ae.jsxs)(ws,{item:!0,container:!0,wrap:"nowrap",flex:1,justifyContent:"end",alignItems:"center",children:[!g&&(0,Ae.jsx)(NCe,{variant:"outlined",color:"delete",size:"small",style:{padding:0,minWidth:"fit-content",height:"fit-content"},frontIcon:(0,Ae.jsx)(n8.c,{color:"error"}),popupContent:(0,Ae.jsx)(vu,{variant:"h6",color:Op,children:"Do you confirm the deletion of this annotation?"}),popupValidateBtnText:"Delete",onClick:S}),(0,Ae.jsx)(C3e,{onClick:()=>s(null)})]})]}),(0,Ae.jsx)(ws,{item:!0,width:"100%",flex:1,height:0,children:(0,Ae.jsx)(x,{})})]}):(0,Ae.jsx)(Ae.Fragment,{})),[g,y,t,f,x,S,s]),E=(0,n.useCallback)((()=>{var e;return f!==uA.MAP||null===a?null:(0,Ae.jsx)(P3e,{moduleId:a,serialNumber:null===(e=h(a))||void 0===e?void 0:e.serialNumber,onValidate:e=>{p(a,{serialNumber:e}),l(null)},onClose:()=>l(null)})}),[f,a,l,h,p]);return(0,n.useEffect)((()=>{f===uA.MAP?m((e=>{if(!e)return;let t;return y?t=(0,Ae.jsx)(wp,{width:"100%",height:"50vh",children:(0,Ae.jsx)(w,{})}):a&&(t=(0,Ae.jsx)(E,{})),{...e,bottomPanel:t}})):m(void 0)}),[w,E,y,a,f,m]),(0,Ae.jsxs)(ws,{container:!0,wrap:"nowrap",direction:"column",className:e.root,children:[(0,Ae.jsx)(ws,{item:!0,width:"100%",flex:1,height:0,className:e.mainViewContainer,children:(0,Ae.jsx)(b,{})}),f===uA.LIST&&(0,Ae.jsx)(ws,{item:!0,height:"60%",children:(0,Ae.jsx)(w,{})})]})};var j3e=__webpack_require__(92280),I3e=__webpack_require__(33800),G3e=__webpack_require__(90972),T3e=__webpack_require__(88136),M3e=__webpack_require__(42428);function O3e(e){return ka({tag:"svg",attr:{viewBox:"0 0 24 24",strokeWidth:"2",stroke:"currentColor",fill:"none",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"desc",attr:{},child:[]},{tag:"path",attr:{stroke:"none",d:"M0 0h24v24H0z",fill:"none"}},{tag:"path",attr:{d:"M21 19h-18l9 -15"}},{tag:"path",attr:{d:"M20.615 15.171h.015"}},{tag:"path",attr:{d:"M19.515 11.771h.015"}},{tag:"path",attr:{d:"M17.715 8.671h.015"}},{tag:"path",attr:{d:"M15.415 5.971h.015"}}]})(e)}function R3e(e){return ka({tag:"svg",attr:{viewBox:"0 0 24 24",strokeWidth:"2",stroke:"currentColor",fill:"none",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"desc",attr:{},child:[]},{tag:"path",attr:{stroke:"none",d:"M0 0h24v24H0z",fill:"none"}},{tag:"circle",attr:{cx:"12",cy:"5",r:"2"}},{tag:"circle",attr:{cx:"19",cy:"8",r:"2"}},{tag:"circle",attr:{cx:"5",cy:"11",r:"2"}},{tag:"circle",attr:{cx:"15",cy:"19",r:"2"}},{tag:"path",attr:{d:"M6.5 9.5l3.5 -3"}},{tag:"path",attr:{d:"M14 5.5l3 1.5"}},{tag:"path",attr:{d:"M18.5 10l-2.5 7"}},{tag:"path",attr:{d:"M13.5 17.5l-7 -5"}}]})(e)}var D3e=__webpack_require__(56540),N3e=__webpack_require__(75164),L3e=__webpack_require__(71472),V3e=__webpack_require__(68963);const F3e=Zo()(((e,t)=>({iconContainer:{"& .icon, & .icon-wrapper":{transform:"rotate(0)",transformOrigin:"bottom right",transition:"transform 0.5s"},"& .icon":{color:"black",width:"".concat(t.small?1.4:2,"rem"),height:"".concat(t.small?1.4:2,"rem"),"&.foundation":{color:Yp.FOUNDATION},"&.pile":{color:Yp.PILE},"&.stamp":{color:Fp},"&.freehand":{color:jp},"&.freehand-pile":{color:Yp.PILE},"&.freehand-module":{color:Yp.MODULE},"&.trash":{color:Bp},"&.annotation":{color:Bp},"&.measurement":{color:jp}},"& .icon-wrapper":{lineHeight:0,zIndex:1,position:"relative","&::before":{content:'""',position:"absolute",top:0,left:0,width:"6px",height:"6px",border:"1px solid black",borderRadius:"50%",display:"block",zIndex:2},"&.module":{"& svg":{color:Yp.MODULE},"&::before":{backgroundColor:Yp.MODULE,left:"4px",top:"2px"}},"&.table":{"& svg":{color:Yp.TABLE},"&::before":{backgroundColor:Yp.TABLE,left:"2px",top:"4px"}}},"&:hover":{"& .icon, & .icon-wrapper":{transform:"rotate(10deg)"},"& .icon-wrapper .icon":{transform:"rotate(0)"}},"& button:disabled":{backgroundColor:Dp,"& .icon, .icon-wrapper":{color:Rp,"&::before":{backgroundColor:Rp}}},"&:hover button:disabled":{"& .icon, & .icon-wrapper, .icon-wrapper .icon":{transform:"rotate(0)"}}},chevronBadge:{"& .MuiBadge-badge":{right:"-0.5rem","& svg":{transform:"rotate(0deg)",transition:"transform 0.25s","&.open":{transform:"rotate(180deg)"},"&.measurement":{color:jp}}}},iconBtnContainer:{width:"100%",height:"100%",padding:"0.5rem ".concat(t.small?.5:1,"rem"),borderRadius:0},selected:{backgroundColor:"#E8EDF2","&:hover":{backgroundColor:"#E8EDF2"}}}))),z3e=e=>{const{tool:t,small:r=!1,disabled:i=!1,tooltipPosition:o="bottom",selectedTool:s,isToolCategory:a=!1,isToolCategoryOpen:l=!1}=e,{classes:c}=F3e({small:r}),u=(0,n.useContext)(mZe);if(!u)return(0,Ae.jsx)(Ae.Fragment,{});const{itemsCtx:{isLoading:d}}=u,h=(0,n.useCallback)((e=>{switch(e){case IZe.HAND:return(0,Ae.jsx)(G3e.c,{className:"icon"});case IZe.SELECT:return(0,Ae.jsx)(Kh,{className:"icon"});case IZe.TRASH:return(0,Ae.jsx)(T3e.c,{className:"icon trash"});case IZe.ITEM_SELECTION:return d?(0,Ae.jsx)($y,{size:22}):(0,Ae.jsx)(FEe.c,{className:"icon freehand"});case IZe.ITEM_SELECTION_PILE:return(0,Ae.jsx)(L3e.c,{className:"icon freehand-pile"});case IZe.ITEM_SELECTION_MODULE:return(0,Ae.jsx)(D3e.c,{className:"icon freehand-module"});case IZe.STAMP:return(0,Ae.jsx)(V3e.c,{className:"icon stamp"});case IZe.STAMP_FOUNDATION:return(0,Ae.jsx)(L3e.c,{className:"icon foundation"});case IZe.STAMP_PILE:return(0,Ae.jsx)(L3e.c,{className:"icon pile"});case IZe.STAMP_MODULE:return(0,Ae.jsx)("div",{className:"icon-wrapper module",children:(0,Ae.jsx)(D3e.c,{className:"icon"})});case IZe.STAMP_TABLE:return(0,Ae.jsx)("div",{className:"icon-wrapper table",children:(0,Ae.jsx)(N3e.c,{className:"icon"})});case IZe.ANNOTATE:return(0,Ae.jsx)(R3e,{className:"icon annotation"});case IZe.MEASUREMENT:return(0,Ae.jsx)(j3e.c,{className:"icon measurement"});case IZe.LINE:return(0,Ae.jsx)(I3e.c,{className:"icon measurement"});case IZe.AREA:return(0,Ae.jsx)(fM,{className:"icon measurement"});default:return(0,Ae.jsx)(Ae.Fragment,{})}}),[d]),p=(0,n.useCallback)((()=>h(t)),[h,t]),f=(0,n.useCallback)((e=>{let{customTool:t}=e;return h(t)}),[h]),g=(0,n.useMemo)((()=>t===s||!!a&&TZe[t].includes(s)),[s,t,a]),m=(0,n.useMemo)((()=>{var e;const n=Object.values(MZe).findIndex((e=>e===t)),r=n>=0?" (".concat(null===(e=Object.keys(MZe)[n])||void 0===e?void 0:e.toUpperCase(),")"):"";return"".concat(GZe[t]).concat(r)}),[t]),y=(0,n.useCallback)((e=>{var n;let{isOpen:r,selectedTool:i,className:o,children:s}=e;if(!a)return(0,Ae.jsx)(Ae.Fragment,{children:s});const l=(null!==(n=TZe[t])&&void 0!==n?n:[]).includes(i);return(0,Ae.jsx)(RCe,{className:c.chevronBadge,badgeContent:(0,Ae.jsx)(M3e.c,{className:"".concat(r?"open":""," ").concat(o)}),children:l?(0,Ae.jsx)(f,{customTool:i}):s})}),[a,c.chevronBadge,t,f]);return(0,Ae.jsx)(wp,{height:"100%",width:"100%",className:c.iconContainer,children:(0,Ae.jsx)(cu,{title:i?"":m,arrow:!0,disableInteractive:!0,placement:o,children:(0,Ae.jsx)(Gu,{disabled:i,className:"".concat(c.iconBtnContainer," ").concat(g?c.selected:""),onClick:e.onSelect,children:(0,Ae.jsx)(y,{isOpen:l,selectedTool:s,className:t.toLowerCase(),children:(0,Ae.jsx)(p,{})})})})})},B3e=Zo()((()=>({toolbox:{...l$e.bloc,padding:0,backgroundColor:"transparent",position:"relative",overflowY:"visible"},toolsList:{overflow:"hidden",textAlign:"center",backgroundColor:l$e.bloc.backgroundColor,borderRadius:l$e.bloc.borderRadius,position:"relative",zIndex:3,boxShadow:"0 -0.25rem 0.25rem -1px rgba(0, 0, 0, 0.3)","& > div":{borderRight:"1px solid ".concat(Rp)},"& > div:last-of-type":{borderRight:"none"}},toolCategoryItem:{position:"absolute",backgroundColor:l$e.bloc.backgroundColor,borderRadius:l$e.bloc.borderRadius,overflow:"hidden",boxShadow:"none",height:"fit-content",top:0,zIndex:2,width:"fit-content",transition:"top ".concat(.25,"s, box-shadow ").concat(.25,"s"),"&.open":{top:"-2.5rem"},"& > div":{borderRight:"1px solid ".concat(Rp)},"& > div:last-of-type":{borderRight:"none"}}}))),U3e=e=>{const{mode:t,disabledTools:r}=e,{classes:i}=B3e(),{openedToolCategory:o,setOpenedToolCategory:s,selectedTool:a,setSelectedTool:l}=(0,n.useContext)(a$e),c=(0,n.useContext)(mZe);if(!c)return(0,Ae.jsx)(Ae.Fragment,{});const{currentPage:u}=c,d=(0,n.useRef)({});(0,n.useEffect)((()=>{s(void 0)}),[u,s]);const h=(0,n.useMemo)((()=>{const e=[];return"analyse"===t?(e.push(IZe.MEASUREMENT),e.push(IZe.ANNOTATE),e.push(IZe.SELECT)):"annotate"===t&&(e.push(IZe.STAMP),e.push(IZe.ITEM_SELECTION),e.push(IZe.MEASUREMENT),e.push(IZe.ANNOTATE)),e.push(IZe.HAND),"annotate"===t&&e.push(IZe.TRASH),e}),[t]),p=e=>Object.keys(TZe).includes(e),f=(0,n.useMemo)((()=>[...h,...h.filter(p).flatMap((e=>TZe[e]))]),[h]),g=(0,n.useCallback)((e=>{p(e)?s(e):(l(e),s(void 0))}),[s,l]),m=e=>{if(e.target instanceof HTMLTextAreaElement||e.target instanceof HTMLInputElement)return;const t=!Number.isInteger(+e.key)&&e.shiftKey?"SHIFT":"",n=e.ctrlKey?"CTRL":"",i=e.key,o="".concat(t).concat(n).concat(i);if(!Object.keys(MZe).includes(o))return;const s=MZe[o];f.includes(s)&&(null!==r&&void 0!==r&&r.includes(s)||(e.preventDefault(),e.stopPropagation(),g(s)))},y=Wy();(0,n.useEffect)((()=>{if(!y)return document.addEventListener("keydown",m),()=>{document.removeEventListener("keydown",m)}}),[y]);const v=(0,n.useMemo)((()=>{var e,t,n,r,i;if(!o)return 0;const s=null!==(e=null===(t=d.current[o])||void 0===t||null===(n=t.parentElement)||void 0===n?void 0:n.getBoundingClientRect().x)&&void 0!==e?e:0,a=null!==(r=null===(i=d.current[o])||void 0===i?void 0:i.getBoundingClientRect().x)&&void 0!==r?r:0;return Math.max(0,a-s)}),[o]);return(0,Ae.jsxs)("div",{className:i.toolbox,children:[(0,Ae.jsx)(ws,{item:!0,container:!0,wrap:"nowrap",columns:h.length,justifyContent:"space-between",className:i.toolsList,children:h.map(((e,t)=>(0,Ae.jsx)(ws,{item:!0,xs:1,ref:t=>d.current["".concat(e)]=t,children:(0,Ae.jsx)(z3e,{tool:e,disabled:null===r||void 0===r?void 0:r.includes(e),tooltipPosition:p(e)?"left":"bottom",onSelect:()=>g(e),selectedTool:a,isToolCategory:p(e),isToolCategoryOpen:e===o})},"top-tool-".concat(t))))}),(0,Ae.jsx)(ws,{container:!0,wrap:"nowrap",justifyContent:"space-between",className:"".concat(i.toolCategoryItem," ").concat(o?"open":"closed"),left:"".concat(v,"px"),children:o&&TZe[o].map((e=>(0,Ae.jsx)(z3e,{small:!0,disabled:null===r||void 0===r?void 0:r.includes(e),tool:e,tooltipPosition:"top",selectedTool:a,onSelect:()=>g(e)},"tool-".concat(e))))})]})};var W3e=__webpack_require__(212);const H3e=Zo()((()=>({root:{...l$e.bloc},title:{...l$e.title},text:{color:"black"},icon:{paddingLeft:"1px","&.foundation":{color:Yp.FOUNDATION},"&.pile":{color:Yp.PILE},"&.module":{color:Yp.MODULE},"&.table":{color:Yp.TABLE}},btnContainer:{width:"fit-content","& button":{whiteSpace:"nowrap"}}}))),q3e=e=>{const{classes:t}=H3e(),r=(0,n.useMemo)((()=>"annotation"===e.mode?"Annotation setup":"Calibration setup"),[e.mode]),i=(0,n.useMemo)((()=>"annotation"===e.mode?"Let's go":"Calibrate"),[e.mode]),o=(0,n.useCallback)((()=>"annotation"===e.mode?(0,Ae.jsxs)(ws,{container:!0,alignItems:"start",children:[(0,Ae.jsx)(ws,{item:!0,children:"You will place foundations"}),(0,Ae.jsx)(ws,{item:!0,children:(0,Ae.jsx)(W3e.c,{className:"".concat(t.icon," foundation")})}),(0,Ae.jsx)(ws,{item:!0,children:", piles"}),(0,Ae.jsx)(ws,{item:!0,children:(0,Ae.jsx)(L3e.c,{className:"".concat(t.icon," pile")})}),(0,Ae.jsx)(ws,{item:!0,children:", modules"}),(0,Ae.jsx)(ws,{item:!0,children:(0,Ae.jsx)(D3e.c,{className:"".concat(t.icon," module")})}),(0,Ae.jsx)(ws,{item:!0,children:"and tables"}),(0,Ae.jsx)(ws,{item:!0,children:(0,Ae.jsx)(N3e.c,{className:"".concat(t.icon," table")})}),(0,Ae.jsx)(ws,{item:!0,children:"."})]}):"calibration"===e.mode?(0,Ae.jsx)("p",{children:"First, you need to calibrate modules' and tables' size. If these are not yet present on the site, the calibration is not yet necessary, select \"Skip\u201d."}):(0,Ae.jsx)(Ae.Fragment,{})),[e.mode]);return(0,Ae.jsxs)(ws,{container:!0,direction:"column",wrap:"nowrap",className:t.root,children:[(0,Ae.jsx)(ws,{item:!0,children:(0,Ae.jsx)(vu,{className:t.title,children:r})}),(0,Ae.jsxs)(ws,{item:!0,container:!0,wrap:"nowrap",justifyContent:"space-between",alignItems:"center",columnGap:"0.5rem",children:[(0,Ae.jsx)(ws,{item:!0,className:t.text,children:(0,Ae.jsx)(o,{})}),(0,Ae.jsxs)(ws,{item:!0,container:!0,direction:"column",wrap:"nowrap",rowGap:"0.5rem",className:t.btnContainer,children:[(0,Ae.jsx)(ev,{onClick:e.onValidate,children:i}),e.skippable&&(0,Ae.jsx)(ev,{color:"question",onClick:e.onSkip,children:"Skip"})]})]})]})};let X3e=function(e){return e.LOADING="LOADING",e.ANNOTATION_SETUP="ANNOTATION_SETUP",e.CALIBRATION_SETUP="CALIBRATION_SETUP",e.MODULE_CALIBRATION="MODULE_CALIBRATION",e.TABLE_CALIBRATION="TABLE_CALIBRATION",e.CALIBRATION_DONE="CALIBRATION_DONE",e}({});const Y3e=Zo()(((e,t)=>({centerContainerParent:{..._0,position:"absolute",width:"100%",height:"fit-content",bottom:"bottom"===t.position?"0.5rem":"initial",top:"top"===t.position?"0.5rem":"initial",left:0},centerContainer:{minWidth:t.minWidth,width:t.width,maxWidth:t.maxWidth,margin:"auto"}}))),K3e=e=>{const{children:t,position:n="bottom",minWidth:r="initial",width:i="fit-content",maxWidth:o="initial"}=e,{classes:s}=Y3e({position:n,minWidth:r,width:i,maxWidth:o});return(0,Ae.jsx)("div",{className:s.centerContainerParent,children:(0,Ae.jsx)("div",{className:s.centerContainer,children:t})})};function Z3e(e){return(0,hs.c)("MuiStepper",e)}(0,ds.c)("MuiStepper",["root","horizontal","vertical","alternativeLabel"]);const $3e=n.createContext({});const J3e=$3e,Q3e=n.createContext({});const e2e=Q3e;function t2e(e){return(0,hs.c)("MuiStepConnector",e)}const n2e=(0,ds.c)("MuiStepConnector",["root","horizontal","vertical","alternativeLabel","active","completed","disabled","line","lineHorizontal","lineVertical"]),r2e=["className"],i2e=(0,cs.cp)("div",{name:"MuiStepConnector",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.orientation],n.alternativeLabel&&t.alternativeLabel,n.completed&&t.completed]}})((e=>{let{ownerState:t}=e;return(0,d.c)({flex:"1 1 auto"},"vertical"===t.orientation&&{marginLeft:12},t.alternativeLabel&&{position:"absolute",top:12,left:"calc(-50% + 20px)",right:"calc(50% + 20px)"})})),o2e=(0,cs.cp)("span",{name:"MuiStepConnector",slot:"Line",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.line,t["line".concat((0,ha.c)(n.orientation))]]}})((e=>{let{ownerState:t,theme:n}=e;const r="light"===n.palette.mode?n.palette.grey[400]:n.palette.grey[600];return(0,d.c)({display:"block",borderColor:n.vars?n.vars.palette.StepConnector.border:r},"horizontal"===t.orientation&&{borderTopStyle:"solid",borderTopWidth:1},"vertical"===t.orientation&&{borderLeftStyle:"solid",borderLeftWidth:1,minHeight:24})})),s2e=n.forwardRef((function(e,t){const r=(0,Oe.c)({props:e,name:"MuiStepConnector"}),{className:i}=r,o=(0,Tt.c)(r,r2e),{alternativeLabel:s,orientation:a="horizontal"}=n.useContext(J3e),{active:l,disabled:c,completed:u}=n.useContext(e2e),h=(0,d.c)({},r,{alternativeLabel:s,orientation:a,active:l,completed:u,disabled:c}),p=(e=>{const{classes:t,orientation:n,alternativeLabel:r,active:i,completed:o,disabled:s}=e,a={root:["root",n,r&&"alternativeLabel",i&&"active",o&&"completed",s&&"disabled"],line:["line","line".concat((0,ha.c)(n))]};return(0,ls.c)(a,t2e,t)})(h);return(0,Ae.jsx)(i2e,(0,d.c)({className:(0,ts.c)(p.root,i),ref:t,ownerState:h},o,{children:(0,Ae.jsx)(o2e,{className:p.line,ownerState:h})}))})),a2e=s2e,l2e=["activeStep","alternativeLabel","children","className","component","connector","nonLinear","orientation"],c2e=(0,cs.cp)("div",{name:"MuiStepper",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.orientation],n.alternativeLabel&&t.alternativeLabel]}})((e=>{let{ownerState:t}=e;return(0,d.c)({display:"flex"},"horizontal"===t.orientation&&{flexDirection:"row",alignItems:"center"},"vertical"===t.orientation&&{flexDirection:"column"},t.alternativeLabel&&{alignItems:"flex-start"})})),u2e=(0,Ae.jsx)(a2e,{}),d2e=n.forwardRef((function(e,t){const r=(0,Oe.c)({props:e,name:"MuiStepper"}),{activeStep:i=0,alternativeLabel:o=!1,children:s,className:a,component:l="div",connector:c=u2e,nonLinear:u=!1,orientation:h="horizontal"}=r,p=(0,Tt.c)(r,l2e),f=(0,d.c)({},r,{alternativeLabel:o,orientation:h,component:l}),g=(e=>{const{orientation:t,alternativeLabel:n,classes:r}=e,i={root:["root",t,n&&"alternativeLabel"]};return(0,ls.c)(i,Z3e,r)})(f),m=n.Children.toArray(s).filter(Boolean),y=m.map(((e,t)=>n.cloneElement(e,(0,d.c)({index:t,last:t+1===m.length},e.props)))),v=n.useMemo((()=>({activeStep:i,alternativeLabel:o,connector:c,nonLinear:u,orientation:h})),[i,o,c,u,h]);return(0,Ae.jsx)(J3e.Provider,{value:v,children:(0,Ae.jsx)(c2e,(0,d.c)({as:l,ownerState:f,className:(0,ts.c)(g.root,a),ref:t},p,{children:y}))})})),h2e=d2e;function p2e(e){return(0,hs.c)("MuiStep",e)}(0,ds.c)("MuiStep",["root","horizontal","vertical","alternativeLabel","completed"]);const f2e=["active","children","className","component","completed","disabled","expanded","index","last"],g2e=(0,cs.cp)("div",{name:"MuiStep",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.orientation],n.alternativeLabel&&t.alternativeLabel,n.completed&&t.completed]}})((e=>{let{ownerState:t}=e;return(0,d.c)({},"horizontal"===t.orientation&&{paddingLeft:8,paddingRight:8},t.alternativeLabel&&{flex:1,position:"relative"})})),m2e=n.forwardRef((function(e,t){const r=(0,Oe.c)({props:e,name:"MuiStep"}),{active:i,children:o,className:s,component:a="div",completed:l,disabled:c,expanded:u=!1,index:h,last:p}=r,f=(0,Tt.c)(r,f2e),{activeStep:g,connector:m,alternativeLabel:y,orientation:v,nonLinear:_}=n.useContext(J3e);let[b=!1,x=!1,S=!1]=[i,l,c];g===h?b=void 0===i||i:!_&&g>h?x=void 0===l||l:!_&&g<h&&(S=void 0===c||c);const w=n.useMemo((()=>({index:h,last:p,expanded:u,icon:h+1,active:b,completed:x,disabled:S})),[h,p,u,b,x,S]),E=(0,d.c)({},r,{active:b,orientation:v,alternativeLabel:y,completed:x,disabled:S,expanded:u,component:a}),P=(e=>{const{classes:t,orientation:n,alternativeLabel:r,completed:i}=e,o={root:["root",n,r&&"alternativeLabel",i&&"completed"]};return(0,ls.c)(o,p2e,t)})(E),C=(0,Ae.jsxs)(g2e,(0,d.c)({as:a,className:(0,ts.c)(P.root,s),ref:t,ownerState:E},f,{children:[m&&y&&0!==h?m:null,o]}));return(0,Ae.jsx)(e2e.Provider,{value:w,children:m&&!y&&0!==h?(0,Ae.jsxs)(n.Fragment,{children:[m,C]}):C})})),y2e=m2e,v2e=(0,vv.c)((0,Ae.jsx)("path",{d:"M12 0a12 12 0 1 0 0 24 12 12 0 0 0 0-24zm-2 17l-5-5 1.4-1.4 3.6 3.6 7.6-7.6L19 8l-9 9z"}),"CheckCircle"),_2e=(0,vv.c)((0,Ae.jsx)("path",{d:"M1 21h22L12 2 1 21zm12-3h-2v-2h2v2zm0-4h-2v-4h2v4z"}),"Warning");var b2e=__webpack_require__(53458);function x2e(e){return(0,hs.c)("MuiStepIcon",e)}const S2e=(0,ds.c)("MuiStepIcon",["root","active","completed","error","text"]);var w2e;const E2e=["active","className","completed","error","icon"],P2e=(0,cs.cp)(b2e.c,{name:"MuiStepIcon",slot:"Root",overridesResolver:(e,t)=>t.root})((e=>{let{theme:t}=e;return{display:"block",transition:t.transitions.create("color",{duration:t.transitions.duration.shortest}),color:(t.vars||t).palette.text.disabled,["&.".concat(S2e.completed)]:{color:(t.vars||t).palette.primary.main},["&.".concat(S2e.active)]:{color:(t.vars||t).palette.primary.main},["&.".concat(S2e.error)]:{color:(t.vars||t).palette.error.main}}})),C2e=(0,cs.cp)("text",{name:"MuiStepIcon",slot:"Text",overridesResolver:(e,t)=>t.text})((e=>{let{theme:t}=e;return{fill:(t.vars||t).palette.primary.contrastText,fontSize:t.typography.caption.fontSize,fontFamily:t.typography.fontFamily}})),A2e=n.forwardRef((function(e,t){const n=(0,Oe.c)({props:e,name:"MuiStepIcon"}),{active:r=!1,className:i,completed:o=!1,error:s=!1,icon:a}=n,l=(0,Tt.c)(n,E2e),c=(0,d.c)({},n,{active:r,completed:o,error:s}),u=(e=>{const{classes:t,active:n,completed:r,error:i}=e,o={root:["root",n&&"active",r&&"completed",i&&"error"],text:["text"]};return(0,ls.c)(o,x2e,t)})(c);if("number"===typeof a||"string"===typeof a){const e=(0,ts.c)(i,u.root);return s?(0,Ae.jsx)(P2e,(0,d.c)({as:_2e,className:e,ref:t,ownerState:c},l)):o?(0,Ae.jsx)(P2e,(0,d.c)({as:v2e,className:e,ref:t,ownerState:c},l)):(0,Ae.jsxs)(P2e,(0,d.c)({className:e,ref:t,ownerState:c},l,{children:[w2e||(w2e=(0,Ae.jsx)("circle",{cx:"12",cy:"12",r:"12"})),(0,Ae.jsx)(C2e,{className:u.text,x:"12",y:"12",textAnchor:"middle",dominantBaseline:"central",ownerState:c,children:a})]}))}return a})),k2e=A2e;function j2e(e){return(0,hs.c)("MuiStepLabel",e)}const I2e=(0,ds.c)("MuiStepLabel",["root","horizontal","vertical","label","active","completed","error","disabled","iconContainer","alternativeLabel","labelContainer"]),G2e=["children","className","componentsProps","error","icon","optional","slotProps","StepIconComponent","StepIconProps"],T2e=(0,cs.cp)("span",{name:"MuiStepLabel",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.orientation]]}})((e=>{let{ownerState:t}=e;return(0,d.c)({display:"flex",alignItems:"center",["&.".concat(I2e.alternativeLabel)]:{flexDirection:"column"},["&.".concat(I2e.disabled)]:{cursor:"default"}},"vertical"===t.orientation&&{textAlign:"left",padding:"8px 0"})})),M2e=(0,cs.cp)("span",{name:"MuiStepLabel",slot:"Label",overridesResolver:(e,t)=>t.label})((e=>{let{theme:t}=e;return(0,d.c)({},t.typography.body2,{display:"block",transition:t.transitions.create("color",{duration:t.transitions.duration.shortest}),["&.".concat(I2e.active)]:{color:(t.vars||t).palette.text.primary,fontWeight:500},["&.".concat(I2e.completed)]:{color:(t.vars||t).palette.text.primary,fontWeight:500},["&.".concat(I2e.alternativeLabel)]:{marginTop:16},["&.".concat(I2e.error)]:{color:(t.vars||t).palette.error.main}})})),O2e=(0,cs.cp)("span",{name:"MuiStepLabel",slot:"IconContainer",overridesResolver:(e,t)=>t.iconContainer})((()=>({flexShrink:0,display:"flex",paddingRight:8,["&.".concat(I2e.alternativeLabel)]:{paddingRight:0}}))),R2e=(0,cs.cp)("span",{name:"MuiStepLabel",slot:"LabelContainer",overridesResolver:(e,t)=>t.labelContainer})((e=>{let{theme:t}=e;return{width:"100%",color:(t.vars||t).palette.text.secondary,["&.".concat(I2e.alternativeLabel)]:{textAlign:"center"}}})),D2e=n.forwardRef((function(e,t){var r;const i=(0,Oe.c)({props:e,name:"MuiStepLabel"}),{children:o,className:s,componentsProps:a={},error:l=!1,icon:c,optional:u,slotProps:h={},StepIconComponent:p,StepIconProps:f}=i,g=(0,Tt.c)(i,G2e),{alternativeLabel:m,orientation:y}=n.useContext(J3e),{active:v,disabled:_,completed:b,icon:x}=n.useContext(e2e),S=c||x;let w=p;S&&!w&&(w=k2e);const E=(0,d.c)({},i,{active:v,alternativeLabel:m,completed:b,disabled:_,error:l,orientation:y}),P=(e=>{const{classes:t,orientation:n,active:r,completed:i,error:o,disabled:s,alternativeLabel:a}=e,l={root:["root",n,o&&"error",s&&"disabled",a&&"alternativeLabel"],label:["label",r&&"active",i&&"completed",o&&"error",s&&"disabled",a&&"alternativeLabel"],iconContainer:["iconContainer",r&&"active",i&&"completed",o&&"error",s&&"disabled",a&&"alternativeLabel"],labelContainer:["labelContainer",a&&"alternativeLabel"]};return(0,ls.c)(l,j2e,t)})(E),C=null!=(r=h.label)?r:a.label;return(0,Ae.jsxs)(T2e,(0,d.c)({className:(0,ts.c)(P.root,s),ref:t,ownerState:E},g,{children:[S||w?(0,Ae.jsx)(O2e,{className:P.iconContainer,ownerState:E,children:(0,Ae.jsx)(w,(0,d.c)({completed:b,active:v,error:l,icon:S},f))}):null,(0,Ae.jsxs)(R2e,{className:P.labelContainer,ownerState:E,children:[o?(0,Ae.jsx)(M2e,(0,d.c)({ownerState:E},C,{className:(0,ts.c)(P.label,null==C?void 0:C.className),children:o})):null,u]})]}))}));D2e.muiName="StepLabel";const N2e=D2e,L2e=Zo()((()=>({root:{width:"100%",height:"100%"}}))),V2e=e=>{const{classes:t}=L2e(),r=(0,n.useMemo)((()=>{const t=e.type===sA.MODULE?"module":"table";return[(0,Ae.jsxs)("p",{children:["Zoom in on a ",t]},"step-1"),(0,Ae.jsxs)("p",{children:["Draw a polygon around the ",t,(0,Ae.jsx)("br",{}),"starting at the top-left corner and going clockwise"]},"step-2")]}),[e.type]);return(0,Ae.jsx)("div",{className:t.root,children:(0,Ae.jsx)(h2e,{activeStep:-1,alternativeLabel:!0,children:r.map(((e,t)=>(0,Ae.jsx)(y2e,{children:(0,Ae.jsx)(N2e,{children:e})},t)))})})},F2e=(0,n.createContext)(void 0),z2e=Zo()((()=>({moduleInput:{width:"3rem","& .MuiInputBase-inputSizeSmall":{textAlign:"center",padding:"2px 0px 2px 4px"}},modulesTablePreview:{borderCollapse:"collapse",border:"1px solid black"},modulesCellPreview:{border:"1px solid black",background:"white"}}))),B2e={line:1,column:1},U2e=e=>{var t,r;const{classes:i}=z2e(),{modulesPerTable:o,onChange:s,autoFocus:a=!1}=e,l=(e,t)=>{const n=t.target.value,r=Number(n);isNaN(r)?s(o?{...o,[e]:0}:void 0):s({line:0,column:0,...o,[e]:r})},c=(0,n.useMemo)((()=>!o||o.column>=o.line),[o]),u=(0,n.useCallback)((()=>(0,Ae.jsx)(vu,{color:"black",children:o?"".concat(o.line*o.column," modules"):""})),[o]),d=(0,n.useCallback)((()=>{if(!o)return(0,Ae.jsx)(Ae.Fragment,{});const e=o.line*o.column>50?6:8,t={width:"".concat(e,"px"),height:"".concat(e,"px")},n=[];for(let r=0;r<o.line;r++){const e=[];for(let n=0;n<o.column;n++)e.push((0,Ae.jsx)("td",{className:i.modulesCellPreview,style:t},n));n.push((0,Ae.jsx)("tr",{children:e},r))}return(0,Ae.jsx)("div",{children:(0,Ae.jsx)("table",{className:i.modulesTablePreview,children:(0,Ae.jsx)("tbody",{children:n})})})}),[o,i]);return(0,Ae.jsxs)(ws,{container:!0,direction:"column",wrap:"nowrap",rowGap:"0.25rem",children:[(0,Ae.jsx)(vu,{color:"black",fontWeight:"bold",marginBottom:"0.5rem",children:"Number of modules"}),(0,Ae.jsxs)(ws,{item:!0,container:!0,direction:"row",wrap:"nowrap",columnGap:"0.25rem",children:[(0,Ae.jsx)(iE,{type:"number",size:"small",label:"line",inputProps:{min:1},autoFocus:a,className:i.moduleInput,InputLabelProps:{shrink:!0},value:null!==(t=null===o||void 0===o?void 0:o.line)&&void 0!==t?t:null,onChange:e=>l("line",e)}),(0,Ae.jsx)(vu,{color:"black",children:"x"}),(0,Ae.jsx)(iE,{type:"number",size:"small",label:"col",inputProps:{min:1},InputLabelProps:{shrink:!0},value:null!==(r=null===o||void 0===o?void 0:o.column)&&void 0!==r?r:null,onChange:e=>l("column",e),className:i.moduleInput}),c?(0,Ae.jsx)(u,{}):(0,Ae.jsx)(d,{})]}),c?(0,Ae.jsx)(d,{}):(0,Ae.jsx)(u,{})]})},W2e=Zo()((()=>({root:{pointerEvents:"none",position:"absolute",top:0,left:0,width:"100%",height:"100%"},bloc:{...l$e.bloc,padding:"1rem"},title:{...l$e.title},btnContainer:{textAlign:"right","& button":{whiteSpace:"nowrap"}},moduleCountContainer:{padding:"0.5rem",borderLeft:"1px solid ".concat(Rp)}}))),H2e=e=>{const{classes:t}=W2e(),{type:r,currentCalibrationStep:i,setCurrentCalibrationStep:o}=e,s=(0,n.useContext)(mZe),a=(0,n.useContext)(F2e);if(!s||!a)return(0,Ae.jsx)(Ae.Fragment,{});const{inspectionCtx:{inspection:l,updateInspection:c}}=s,{setSelectedTool:u}=(0,n.useContext)(a$e),{mapData:d,setMapData:h}=a,[p,f]=(0,n.useState)(),[g,m]=(0,n.useState)(),[y,v]=(0,n.useState)(),_=(0,n.useMemo)((()=>[X3e.MODULE_CALIBRATION,X3e.TABLE_CALIBRATION].includes(i)&&void 0===g),[i,g]),[b,x]=(0,n.useState)(!1),S=(0,n.useMemo)((()=>"".concat(e.type===sA.TABLE?"Table":"Module"," calibration")),[e.type]);(0,n.useEffect)((()=>{var e;const t=null===(e=l.stampsCalibration)||void 0===e?void 0:e.find((e=>e.type===r));if(!t||!("coords"in t))return m(void 0);f(t),m({id:"calibration-polygon",coords:t.coords});const n=O3(t.coords,"large");h({...d,bounds:n}),t.type===sA.TABLE&&v(t.modulesCount)}),[l,r]);const w=(0,n.useCallback)((async()=>{var e;if(!g)return;let t;x(!0),r===sA.MODULE?t={type:r,coords:g.coords}:(t={type:r,coords:g.coords},y&&(t.modulesCount=y));const n=(null!==(e=l.stampsCalibration)&&void 0!==e?e:[]).filter((e=>{let{type:n}=e;return n!==t.type}));await c({stampsCalibration:[...n,t]}),x(!1)}),[r,g,y]),E=(0,n.useCallback)((()=>{u(IZe.HAND),o(p?X3e.CALIBRATION_DONE:X3e.CALIBRATION_SETUP)}),[p]);return(0,n.useEffect)((()=>{u(_?IZe.SELECT:IZe.HAND)}),[_]),(0,Ae.jsxs)("div",{className:t.root,children:[(0,Ae.jsx)(K3e,{minWidth:"30rem",children:(0,Ae.jsxs)(ws,{container:!0,direction:"column",wrap:"nowrap",className:t.bloc,children:[(0,Ae.jsx)(ws,{item:!0,children:(0,Ae.jsx)(vu,{className:t.title,children:S})}),(0,Ae.jsx)(ws,{item:!0,children:(0,Ae.jsxs)(ws,{container:!0,wrap:"nowrap",alignItems:"center",justifyContent:"space-between",columnGap:"1rem",children:[(0,Ae.jsx)(ws,{item:!0,flex:1,children:(0,Ae.jsx)(V2e,{type:r})}),r===sA.TABLE&&(0,Ae.jsx)(ws,{item:!0,className:t.moduleCountContainer,children:(0,Ae.jsx)(U2e,{modulesPerTable:y,onChange:v})}),(0,Ae.jsx)(ws,{item:!0,width:"fit-content",className:t.btnContainer,children:(0,Ae.jsxs)(ws,{container:!0,direction:"column",wrap:"nowrap",rowGap:"0.25rem",children:[g&&(0,Ae.jsx)(ws,{item:!0,width:"100%",children:(0,Ae.jsx)(ev,{fullWidth:!0,disabled:b,color:"light",onClick:()=>m(void 0),children:"Redraw"})}),(0,Ae.jsx)(ws,{item:!0,children:(0,Ae.jsx)(ev,{fullWidth:!0,loading:b,disabled:!g||b,color:"answer",onClick:w,children:"Validate"})}),(0,Ae.jsx)(ws,{item:!0,width:"100%",children:(0,Ae.jsx)(ev,{fullWidth:!0,disabled:b,color:"cancel",onClick:E,children:"Cancel"})})]})})]})})]})}),(0,Ae.jsx)(_Pe,{shape:u3.POLYGON,drawPointer:"cross",drawEnabled:_,onDrawEnd:e=>{if(!Y3(e))return;const t=S3("calibration-polygon",e);m(t)}}),(0,Ae.jsx)(yPe,{autoSelect:!0,draggable:fPe.IF_SELECTED,resizable:gPe.IF_SELECTED,onPolygonChanged:e=>{m(e)},polygons:[g],zIndex:5})]})};var q2e=__webpack_require__(27901);const X2e=e=>(0,Ae.jsxs)(ws,{container:!0,direction:"column",wrap:"nowrap",rowGap:"0.5rem",children:[(0,Ae.jsx)(ws,{item:!0,children:(0,Ae.jsx)(ev,{fullWidth:!0,frontIcon:(0,Ae.jsx)(q2e.c,{}),label:"Edit module calibration",onClick:()=>e.onGoBack(X3e.MODULE_CALIBRATION)})}),(0,Ae.jsx)(ws,{item:!0,children:(0,Ae.jsx)(ev,{fullWidth:!0,frontIcon:(0,Ae.jsx)(q2e.c,{}),label:"Edit table calibration",onClick:()=>e.onGoBack(X3e.TABLE_CALIBRATION)})})]}),Y2e=()=>{const{selectedTool:e}=(0,n.useContext)(a$e),t=(0,n.useContext)(mZe);if(!t)return(0,Ae.jsx)(Ae.Fragment,{});const{inspectionCtx:{inspection:r},annotationCtx:{addAnnotation:i},formRefAnchorEl:o}=t,[s,a]=(0,n.useState)(),[l,c]=(0,n.useState)(!1),u=(0,n.useMemo)((()=>e===IZe.ANNOTATE),[e]),d=(0,n.useCallback)((e=>{if(!Y3(e))return;const t=S3("polygon-defect",e);a({...t,style:{size:4,stroke:jp,fill:Ip}}),c(!0)}),[]),h=(0,n.useCallback)((()=>{a(void 0),c(!1)}),[]),p=(0,n.useCallback)((async e=>{if(s)try{const t=await $Ze(r.id,{...e,coords:s.coords});h(),i(t)}catch(t){}}),[r,s,h,i]);return(0,Ae.jsxs)(Ae.Fragment,{children:[(0,Ae.jsx)(yPe,{polygons:[s],zIndex:7}),(0,Ae.jsx)(_Pe,{drawEnabled:u,shape:u3.POLYGON,onDrawEnd:d}),(0,Ae.jsx)(S3e,{anchorEl:o,isOpen:l,onClose:h,onValidate:p})]})},K2e=e=>{const{index:t,isSelected:n,onClick:r}=e;return(0,Ae.jsx)(ev,{size:"small",color:n?"delete":"cancel",label:"".concat(n?"Hide":"Show"," #").concat(t),style:{width:"5rem"},onClick:r})},Z2e=Zo()((()=>({duplicatesContainer:{borderTopLeftRadius:"4px",borderBottomLeftRadius:"4px",backgroundColor:"white",padding:"0.5rem",maxHeight:"20vh",overflowY:"auto","& h6":{marginBottom:"0.5rem",color:zp}},duplicatesBtnContainer:{maxWidth:"16.5rem",gap:"0.25rem"}}))),$2e=e=>{const{onSelectedDuplicateStampId:t}=e,{classes:r}=Z2e(),[i,o]=(0,n.useState)(!1),[s,a]=(0,n.useState)([]),[l,c]=(0,n.useState)(),u=(0,n.useContext)(mZe);if(!u)return(0,Ae.jsx)(Ae.Fragment,{});const{inspectionCtx:{inspection:d,updateInspection:h},setCurrentPage:p}=u,f=(0,n.useMemo)((()=>d.status===OC.ANNOTATED),[d.status]),g=(0,n.useCallback)((async()=>{o(!0);try{const e=await(async e=>{const t=await Ey("/".concat(WZe,"/").concat(e,"/stamps/duplicates"),{method:"GET"});if(!t.ok){var n;const e=await t.text();throw new Error(null!==(n=null!==e&&void 0!==e?e:t.statusText)&&void 0!==n?n:"An error occurred")}return await t.json()})(d.id);if(a(e),e.length>0)throw new Error("Duplicated stamps");f||h({status:OC.ANNOTATED}),p(yZe.ANALYZE)}catch(e){}finally{o(!1)}}),[h,p,d.id,f]),m=(0,n.useCallback)((e=>{const n=l===e?void 0:e;c(n),t(n)}),[l,t]);return(0,Ae.jsxs)(ws,{container:!0,direction:"column",wrap:"nowrap",rowGap:"0.5rem",children:[(0,Ae.jsx)(ws,{item:!0,children:(0,Ae.jsx)(ev,{fullWidth:!0,color:"success",frontIcon:(0,Ae.jsx)(OB.c,{}),label:"Validate annotation step",onClick:g,loading:i,disabled:i})}),s.length>0&&(0,Ae.jsxs)(ws,{item:!0,className:r.duplicatesContainer,children:[(0,Ae.jsxs)(vu,{variant:"h6",children:[s.length," duplicate",s.length>1?"s":""," ","found"]}),(0,Ae.jsx)(ws,{item:!0,container:!0,className:r.duplicatesBtnContainer,children:s.map(((e,t)=>(0,Ae.jsx)(ws,{item:!0,children:(0,Ae.jsx)(K2e,{index:t+1,isSelected:l===e,onClick:()=>m(e)})},"duplicate-stamp-".concat(t))))})]})]})},J2e=Zo()((()=>({form:{padding:"1rem",width:"20rem",rowGap:"1rem"}}))),Q2e=()=>{const{classes:e}=J2e(),t=(0,n.useContext)(mZe);if(!t)return(0,Ae.jsx)(Ae.Fragment,{});const{geoJSONFeatures:{all:r,selectedIds:i,setSelectedIds:o},formRefAnchorEl:s,itemsCtx:{addItems:a}}=t,{selectedTool:l}=(0,n.useContext)(a$e),{handleSubmit:c,control:u}=S0e({defaultValues:{status:J$e.NOT_INSTALLED}}),[d,h]=(0,n.useState)(!1),[p,f]=(0,n.useState)(!1),[g,m]=(0,n.useState)(),y=(0,n.useMemo)((()=>l===IZe.ITEM_SELECTION_PILE?$$e.PILE:l===IZe.ITEM_SELECTION_MODULE?$$e.MODULE:void 0),[l]),v=(0,n.useMemo)((()=>y?r.filter((e=>e.get("Layer")===y)):[]),[r,y]),_=(0,n.useCallback)(((e,t)=>{if(![IZe.ITEM_SELECTION_PILE,IZe.ITEM_SELECTION_MODULE].includes(l))return void o([]);const n=v.map((e=>{const n="".concat(e.getId()),r=e.getGeometry();if(r instanceof dK){const e=r.getCoordinates(),i=j3(e);if(P5(t,i))return n}else if(r instanceof I0){const e=r.getCoordinates().map((e=>j3(e)));if(E5(t,e))return n}else if(r instanceof xK){const[e]=r.getCoordinates(),i=e.map((e=>j3(e)));if(E5(t,i))return n}})).filter((e=>void 0!=e));o(n),n.length>0&&h(!0)}),[l,v,o]),b=(0,n.useCallback)((()=>{h(!1),o([])}),[o]),x=(0,n.useCallback)((async e=>{let{status:t}=e;if(y)try{f(!0),await a(i.map((e=>({id:e,status:t,type:y})))),b()}catch(n){m(n instanceof Error?n.message:"An error occured")}finally{f(!1)}}),[y,i,a,b]);return(0,Ae.jsxs)(Ae.Fragment,{children:[(0,Ae.jsx)(_Pe,{drawEnabled:[IZe.ITEM_SELECTION_PILE,IZe.ITEM_SELECTION_MODULE].includes(l),shape:u3.POLYGON,onDrawEnd:_}),(0,Ae.jsx)(Ud,{anchorEl:s,open:d,onClose:(e,t)=>{"backdropClick"!==t&&b()},children:(0,Ae.jsx)("form",{onSubmit:c(x),children:(0,Ae.jsxs)(ws,{container:!0,direction:"column",wrap:"nowrap",className:e.form,children:[(0,Ae.jsx)(ws,{item:!0,children:(0,Ae.jsx)(qpe,{value:i.length,total:v.length,suffixText:" ".concat(wq(null!==y&&void 0!==y?y:"",i.length)," / ").concat(v.length)})}),(0,Ae.jsx)(GQe,{control:u,name:"status",render:e=>{let{field:{name:t,value:n,onChange:r}}=e;return(0,Ae.jsxs)(yw,{fullWidth:!0,children:[(0,Ae.jsx)(dw,{id:"status-select-label",children:"Status"}),(0,Ae.jsx)(Jw,{name:t,labelId:"status-select-label",id:"status-select",label:"Status",value:n,onChange:r,children:Object.values(J$e).map((e=>(0,Ae.jsx)(dh,{value:e,children:Q$e[e]},e)))})]})}}),null!=g&&(0,Ae.jsx)(pM,{severity:"error",children:g}),(0,Ae.jsx)(ws,{item:!0,children:(0,Ae.jsx)(ohe,{submit:!0,loading:p,onCancel:b})})]})})})]})},e6e=Zo()((()=>({root:{padding:"1rem",width:"20rem",rowGap:"0.5rem"}}))),t6e=e=>{const{classes:t}=e6e(),[r,i]=(0,n.useState)(!1),[o,s]=(0,n.useState)(!1),{type:a,value:l,unit:c,bearing:u}=(0,n.useMemo)((()=>({type:e.measurement.type,value:e.measurement.value,unit:e.measurement.unit,bearing:e.measurement.bearing})),[e.measurement]),[d,h]=(0,n.useState)("");(0,n.useEffect)((()=>{var t;h(null!==(t=e.measurement.name)&&void 0!==t?t:"")}),[e.measurement.name]);const{formTitle:p,measureLabel:f}=(0,n.useMemo)((()=>{const t=e.isUpdateDelete?"update":"creation";return a===OZe.DISTANCE?{formTitle:"Distance ".concat(t),measureLabel:"Distance"}:a===OZe.AREA?{formTitle:"Surface ".concat(t),measureLabel:"Area"}:{formTitle:"",measureLabel:""}}),[a]);(0,n.useEffect)((()=>{e.isOpen||h("")}),[e.isOpen]);return(0,Ae.jsx)(Ud,{open:e.isOpen,anchorEl:e.anchorEl,children:(0,Ae.jsx)("form",{onSubmit:async t=>{t.preventDefault(),i(!0),await e.onValidate(d),i(!1)},children:(0,Ae.jsxs)(ws,{container:!0,direction:"column",wrap:"nowrap",className:t.root,children:[(0,Ae.jsx)(ws,{item:!0,children:(0,Ae.jsx)(vu,{variant:"h6",children:p})}),(0,Ae.jsx)(ws,{item:!0,children:(0,Ae.jsx)(iE,{fullWidth:!0,size:"small",name:d,id:"name",type:"text",variant:"outlined",label:"Name (optional)",value:d,onChange:e=>h(e.target.value),inputProps:{maxLength:30}})}),(0,Ae.jsxs)(ws,{item:!0,children:[(0,Ae.jsxs)(vu,{sx:{fontWeight:"bold",marginRight:"0.25rem"},display:"inline-block",children:[f,":"]}),(0,Ae.jsxs)(vu,{display:"inline-block",children:[l," ",c]})]}),a===OZe.DISTANCE&&(0,Ae.jsxs)(ws,{item:!0,children:[(0,Ae.jsx)(vu,{sx:{fontWeight:"bold",marginRight:"0.25rem"},display:"inline-block",children:"Segment bearing:"}),(0,Ae.jsxs)(vu,{display:"inline-block",children:[u,"\xb0"]})]}),(0,Ae.jsxs)(ws,{item:!0,container:!0,wrap:"nowrap",columnGap:"1rem",justifyContent:"center",children:[e.isUpdateDelete&&(0,Ae.jsx)(ws,{item:!0,children:(0,Ae.jsx)(ev,{color:"delete",label:"Delete",disabled:o,loading:o,onClick:async()=>{s(!0),await e.onDelete(),s(!1)}})}),(0,Ae.jsx)(ws,{item:!0,children:(0,Ae.jsx)(ohe,{submit:!0,loading:r,onCancel:e.onClose})})]})]})})})},n6e=e=>Ly(lR(e),2),r6e=e=>{const t=_3(e).getGeometry();return t?n6e(t):0},i6e=e=>{const t=e.coords[0],n=e.coords[1];if(!t||!n)return 0;const r=(0,w0.getRhumbLineBearing)({latitude:t.lat,longitude:t.lng},{latitude:n.lat,longitude:n.lng});return Ly(r,1)},o6e=e=>{const t=n6e(e);return t>1e3?Ly(t/1e3,2)+" km":Ly(t,2)+" m"},s6e=e=>Ly(uR(e),2),a6e=e=>{const t=p3(e).getGeometry();return t?s6e(t):0},l6e=e=>{const t=s6e(e);return t>1e5?Ly(t/1e6,2)+" km\xb2":Ly(t,2)+" m\xb2"},c6e="element",u6e="map",d6e="offset",h6e="position",p6e="positioning";const f6e=class extends SN{constructor(e){super(),this.on,this.once,this.un,this.options=e,this.id=e.id,this.insertFirst=void 0===e.insertFirst||e.insertFirst,this.stopEvent=void 0===e.stopEvent||e.stopEvent,this.element=document.createElement("div"),this.element.className=void 0!==e.className?e.className:"ol-overlay-container ol-selectable",this.element.style.position="absolute",this.element.style.pointerEvents="auto",this.autoPan=!0===e.autoPan?{}:e.autoPan||void 0,this.rendered={transform_:"",visible:!0},this.mapPostrenderListenerKey=null,this.addChangeListener(c6e,this.handleElementChanged),this.addChangeListener(u6e,this.handleMapChanged),this.addChangeListener(d6e,this.handleOffsetChanged),this.addChangeListener(h6e,this.handlePositionChanged),this.addChangeListener(p6e,this.handlePositioningChanged),void 0!==e.element&&this.setElement(e.element),this.setOffset(void 0!==e.offset?e.offset:[0,0]),this.setPositioning(e.positioning||"top-left"),void 0!==e.position&&this.setPosition(e.position)}getElement(){return this.get(c6e)}getId(){return this.id}getMap(){return this.get(u6e)||null}getOffset(){return this.get(d6e)}getPosition(){return this.get(h6e)}getPositioning(){return this.get(p6e)}handleElementChanged(){WD(this.element);const e=this.getElement();e&&this.element.appendChild(e)}handleMapChanged(){var e;this.mapPostrenderListenerKey&&(null===(e=this.element)||void 0===e||e.remove(),YD(this.mapPostrenderListenerKey),this.mapPostrenderListenerKey=null);const t=this.getMap();if(t){this.mapPostrenderListenerKey=qD(t,IJ,this.render,this),this.updatePixelPosition();const e=this.stopEvent?t.getOverlayContainerStopEvent():t.getOverlayContainer();this.insertFirst?e.insertBefore(this.element,e.childNodes[0]||null):e.appendChild(this.element),this.performAutoPan()}}render(){this.updatePixelPosition()}handleOffsetChanged(){this.updatePixelPosition()}handlePositionChanged(){this.updatePixelPosition(),this.performAutoPan()}handlePositioningChanged(){this.updatePixelPosition()}setElement(e){this.set(c6e,e)}setMap(e){this.set(u6e,e)}setOffset(e){this.set(d6e,e)}setPosition(e){this.set(h6e,e)}performAutoPan(){this.autoPan&&this.panIntoView(this.autoPan)}panIntoView(e){const t=this.getMap();if(!t||!t.getTargetElement()||!this.get(h6e))return;const n=this.getRect(t.getTargetElement(),t.getSize()),r=this.getElement(),i=this.getRect(r,[zD(r),BD(r)]),o=void 0===(e=e||{}).margin?20:e.margin;if(!zM(n,i)){const r=i[0]-n[0],s=n[2]-i[2],a=i[1]-n[1],l=n[3]-i[3],c=[0,0];if(r<0?c[0]=r-o:s<0&&(c[0]=Math.abs(s)+o),a<0?c[1]=a-o:l<0&&(c[1]=Math.abs(l)+o),0!==c[0]||0!==c[1]){const n=t.getView().getCenterInternal(),r=t.getPixelFromCoordinateInternal(n);if(!r)return;const i=[r[0]+c[0],r[1]+c[1]],o=e.animation||{};t.getView().animateInternal({center:t.getCoordinateFromPixelInternal(i),duration:o.duration,easing:o.easing})}}}getRect(e,t){const n=e.getBoundingClientRect(),r=n.left+window.pageXOffset,i=n.top+window.pageYOffset;return[r,i,r+t[0],i+t[1]]}setPositioning(e){this.set(p6e,e)}setVisible(e){this.rendered.visible!==e&&(this.element.style.display=e?"":"none",this.rendered.visible=e)}updatePixelPosition(){const e=this.getMap(),t=this.getPosition();if(!e||!e.isRendered()||!t)return void this.setVisible(!1);const n=e.getPixelFromCoordinate(t),r=e.getSize();this.updateRenderedPosition(n,r)}updateRenderedPosition(e,t){const n=this.element.style,r=this.getOffset(),i=this.getPositioning();this.setVisible(!0);const o=Math.round(e[0]+r[0])+"px",s=Math.round(e[1]+r[1])+"px";let a="0%",l="0%";"bottom-right"==i||"center-right"==i||"top-right"==i?a="-100%":"bottom-center"!=i&&"center-center"!=i&&"top-center"!=i||(a="-50%"),"bottom-left"==i||"bottom-center"==i||"bottom-right"==i?l="-100%":"center-left"!=i&&"center-center"!=i&&"center-right"!=i||(l="-50%");const c="translate(".concat(a,", ").concat(l,") translate(").concat(o,", ").concat(s,")");this.rendered.transform_!=c&&(this.rendered.transform_=c,n.transform=c)}getOptions(){return this.options}},g6e=Zo()((()=>({tooltip:{color:"white",backgroundColor:jp,padding:"0.25rem",borderRadius:"0.5rem","&.created":{backgroundColor:Rp}}}))),m6e=e=>{const{classes:t}=g6e(),r=(0,n.useContext)(V3);if(!r)return(0,Ae.jsx)(Ae.Fragment,{});const{map:i}=r,[o,s]=(0,n.useState)(),[a,l]=(0,n.useState)(),c=n=>{var r;const i=document.createElement("div");i.className=t.tooltip,i.style.zIndex="".concat(null!==(r=e.zIndex)&&void 0!==r?r:2);const o=new f6e({element:i,offset:[0,-15],positioning:"bottom-center",stopEvent:!1,insertFirst:!1});n.addOverlay(o),s(o)},u=()=>{i&&o&&i.removeOverlay(o),a&&_N(a)};(0,n.useEffect)((()=>{c(i)}),[i]),(0,n.useEffect)((()=>()=>{u()}),[]);const d=(0,n.useMemo)((()=>e.type===OZe.DISTANCE?u3.LINE:e.type===OZe.AREA?u3.POLYGON:void 0),[e.type]),h=(0,n.useMemo)((()=>{if(e.type===OZe.DISTANCE)return 2}),[e.type]),p=(0,n.useCallback)((e=>{if(!o)return;let t="",n=[];const r=e.on("change",(e=>{const r=e.target;Y3(r)?(t=l6e(r),n=r.getInteriorPoint().getCoordinates()):Z3(r)&&(t=o6e(r),n=r.getLastCoordinate()),o.setPosition(n);const i=o.getElement();i&&(i.innerHTML=t)}));l(r)}),[o]);return d?(0,Ae.jsx)(_Pe,{shape:d,maxPoints:h,drawEnabled:e.measureEnabled,drawPointer:e.drawPointer,onDrawStart:p,onDrawEnd:t=>{var n;let r;u(),c(i),Y3(t)?r=s6e(t):Z3(t)&&(r=n6e(t)),r&&(null===(n=e.onMeasureEnd)||void 0===n||n.call(e,t,r))},onDrawAbort:()=>{var t;u(),c(i),null===(t=e.onMeasureAbort)||void 0===t||t.call(e)}}):(0,Ae.jsx)(Ae.Fragment,{})},y6e="select";class v6e extends QR{constructor(e,t,n,r){super(e),this.selected=t,this.deselected=n,this.mapBrowserEvent=r}}const _6e={};class b6e extends KJ{constructor(e){let t;if(super(),this.on,this.once,this.un,e=e||{},this.boundAddFeature_=this.addFeature_.bind(this),this.boundRemoveFeature_=this.removeFeature_.bind(this),this.condition_=e.condition?e.condition:oQ,this.addCondition_=e.addCondition?e.addCondition:iQ,this.removeCondition_=e.removeCondition?e.removeCondition:iQ,this.toggleCondition_=e.toggleCondition?e.toggleCondition:aQ,this.multi_=!!e.multi&&e.multi,this.filter_=e.filter?e.filter:sD,this.hitTolerance_=e.hitTolerance?e.hitTolerance:0,this.style_=void 0!==e.style?e.style:function(){const e=s$();return iD(e.Polygon,e.LineString),iD(e.GeometryCollection,e.LineString),function(t){return t.getGeometry()?e[t.getGeometry().getType()]:null}}(),this.features_=e.features||new QX,e.layers)if("function"===typeof e.layers)t=e.layers;else{const n=e.layers;t=function(e){return n.includes(e)}}else t=sD;this.layerFilter_=t,this.featureLayerAssociation_={}}addFeatureLayerAssociation_(e,t){this.featureLayerAssociation_[xD(e)]=t}getFeatures(){return this.features_}getHitTolerance(){return this.hitTolerance_}getLayer(e){return this.featureLayerAssociation_[xD(e)]}setHitTolerance(e){this.hitTolerance_=e}setMap(e){this.getMap()&&this.style_&&this.features_.forEach(this.restorePreviousStyle_.bind(this)),super.setMap(e),e?(this.features_.addEventListener(KX,this.boundAddFeature_),this.features_.addEventListener(ZX,this.boundRemoveFeature_),this.style_&&this.features_.forEach(this.applySelectedStyle_.bind(this))):(this.features_.removeEventListener(KX,this.boundAddFeature_),this.features_.removeEventListener(ZX,this.boundRemoveFeature_))}addFeature_(e){const t=e.element;if(this.style_&&this.applySelectedStyle_(t),!this.getLayer(t)){const e=this.getMap().getAllLayers().find((function(e){if(e instanceof T1&&e.getSource()&&e.getSource().hasFeature(t))return e}));e&&this.addFeatureLayerAssociation_(t,e)}}removeFeature_(e){this.style_&&this.restorePreviousStyle_(e.element)}getStyle(){return this.style_}applySelectedStyle_(e){const t=xD(e);t in _6e||(_6e[t]=e.getStyle()),e.setStyle(this.style_)}restorePreviousStyle_(e){const t=this.getMap().getInteractions().getArray();for(let r=t.length-1;r>=0;--r){const n=t[r];if(n!==this&&n instanceof b6e&&n.getStyle()&&-1!==n.getFeatures().getArray().lastIndexOf(e))return void e.setStyle(n.getStyle())}const n=xD(e);e.setStyle(_6e[n]),delete _6e[n]}removeFeatureLayerAssociation_(e){delete this.featureLayerAssociation_[xD(e)]}handleEvent(e){if(!this.condition_(e))return!0;const t=this.addCondition_(e),n=this.removeCondition_(e),r=this.toggleCondition_(e),i=!t&&!n&&!r,o=e.map,s=this.getFeatures(),a=[],l=[];if(i){dD(this.featureLayerAssociation_),o.forEachFeatureAtPixel(e.pixel,((e,t)=>{if(e instanceof P0&&this.filter_(e,t))return this.addFeatureLayerAssociation_(e,t),l.push(e),!this.multi_}),{layerFilter:this.layerFilter_,hitTolerance:this.hitTolerance_});for(let e=s.getLength()-1;e>=0;--e){const t=s.item(e),n=l.indexOf(t);n>-1?l.splice(n,1):(s.remove(t),a.push(t))}0!==l.length&&s.extend(l)}else{o.forEachFeatureAtPixel(e.pixel,((e,i)=>{if(e instanceof P0&&this.filter_(e,i))return!t&&!r||s.getArray().includes(e)?(n||r)&&s.getArray().includes(e)&&(a.push(e),this.removeFeatureLayerAssociation_(e)):(this.addFeatureLayerAssociation_(e,i),l.push(e)),!this.multi_}),{layerFilter:this.layerFilter_,hitTolerance:this.hitTolerance_});for(let e=a.length-1;e>=0;--e)s.remove(a[e]);s.extend(l)}return(l.length>0||a.length>0)&&this.dispatchEvent(new v6e(y6e,l,a,e)),!0}}const x6e=b6e,S6e=e=>{const t=(0,n.useContext)(V3);if(!t)return(0,Ae.jsx)(Ae.Fragment,{});const{map:r,areMapInteractionsReady:i}=t,[o,s]=(0,n.useState)(),[a,l]=(0,n.useState)(),{visible:c,selectable:u}=(0,n.useMemo)((()=>{var t,n;return{visible:null===(t=e.visible)||void 0===t||t,selectable:null!==(n=e.selectable)&&void 0!==n&&n}}),[e]),d=(0,n.useMemo)((()=>{var t;return null!==(t=e.zIndex)&&void 0!==t?t:2}),[e.zIndex]),h=(0,n.useMemo)((()=>e.lines.filter(q3)),[e.lines]);(0,n.useEffect)((()=>(p(h),()=>{r&&a&&(r.removeLayer(a),l(void 0))})),[r,h]),(0,n.useEffect)((()=>{a&&a.setVisible(c)}),[a,c]),(0,n.useEffect)((()=>{if(!i)return;if(!a)return;o&&r.removeInteraction(o);const t=new x6e({layers:[a],hitTolerance:10});return t.on("select",(t=>{var n,r,i;null===(n=e.onLineSelected)||void 0===n||n.call(e,null!==(r=null===(i=t.selected)||void 0===i?void 0:i[0])&&void 0!==r?r:null)})),t.setActive(!1),null===r||void 0===r||r.addInteraction(t),s(t),()=>{r&&r.removeInteraction(t),s(void 0)}}),[r,i,a]),(0,n.useEffect)((()=>{o&&o.setActive(u)}),[o,u]);const p=e=>{a&&r.removeLayer(a);const t=(e=>e.map(_3))(e).map((e=>(e.set("zIndex",d),e))),n=new T1({source:new Y1({features:t}),zIndex:d});n.setStyle(f),l(n),r.addLayer(n)},f=e=>{var t,n,i,o,s,a;const l=h.find((t=>{let{id:n}=t;return n===e.getId()}));if(!l)return[];const c=null!==(t=l.style)&&void 0!==t?t:{},u=[new l$({stroke:new n$({color:null!==(n=c.stroke)&&void 0!==n?n:"black",width:null!==(i=c.size)&&void 0!==i?i:1})})];if(l.withArrow){const t=m(l,e);t&&u.push(...t)}const d=null!==(o=e.get("displayText"))&&void 0!==o?o:"",p=A5(d),f=null!==(s=null===r||void 0===r||null===(a=r.getView())||void 0===a?void 0:a.getResolution())&&void 0!==s?s:1,y=new l$({text:new p$({fill:new e$({color:"#000"}),stroke:new n$({color:"#fff",width:4}),textAlign:"center",textBaseline:"middle",offsetY:-10,font:"".concat(10,"px sans-serif"),text:g(d,10,l,f)?p:""})});return u.push(y),u},g=(e,t,n,r)=>{var i;const o=Array.isArray(e)?e.reduce(((e,t)=>e.length>t.length?e:t),null!==(i=e[0])&&void 0!==i?i:""):e,s=t*o.length,a=r6e(n)/r;return a>50||s<=a},m=(e,t)=>{var n,i;if((null!==(n=r.getView().getZoom())&&void 0!==n?n:0)<17)return[];const o=t.getGeometry();if(!o)return;const s=null!==(i=e.style)&&void 0!==i?i:{},a=o,l=new Array;return a.forEachSegment(((e,t)=>{var n;const i=r.getPixelFromCoordinate(e),o=r.getPixelFromCoordinate(t),a=t[0]-e[0],c=t[1]-e[1],u=Math.atan2(c,a),d=i&&o?Math.sqrt(Math.pow(o[0]-i[0],2)+Math.pow(o[1]-i[1],2)):0;l.push(new l$({geometry:new dK(t),image:new ZZ({fill:new e$({color:null!==(n=s.stroke)&&void 0!==n?n:"black"}),points:3,radius:8,rotation:-u,angle:Math.PI/2,displacement:[-d/2,0]})}))})),l};return(0,Ae.jsx)(Ae.Fragment,{})},w6e=()=>{const[e,t]=(0,n.useState)(!1),[r,i]=(0,n.useState)(),[o,s]=(0,n.useState)(),{selectedTool:a}=(0,n.useContext)(a$e),l=(0,n.useContext)(mZe);if(!l)return(0,Ae.jsx)(Ae.Fragment,{});const{inspectionCtx:{inspection:c},measurementCtx:{getMeasurement:u,addMeasurement:d,removeMeasurement:h,updateMeasurement:p},selectedMeasurementId:f,setSelectedMeasurementId:g,formRefAnchorEl:m}=l,y=(0,n.useMemo)((()=>[IZe.LINE,IZe.AREA].includes(a)),[a]),v=(0,n.useMemo)((()=>a===IZe.AREA?OZe.AREA:OZe.DISTANCE),[a]),_=(0,n.useMemo)((()=>r?{id:null,type:OZe.AREA,value:a6e(r),unit:"m\xb2",coords:r.coords}:o?{id:null,type:OZe.DISTANCE,value:r6e(o),unit:"m",bearing:i6e(o),coords:[o.coords[0],o.coords[1]]}:f?u(f):void 0),[r,o,f,u]),b=(0,n.useCallback)((()=>{i(void 0),s(void 0),g(null),t(!1)}),[g]),x=(0,n.useCallback)((async()=>{if(f)try{await n$e(c.id,f),b(),h(f)}catch{}}),[f,c.id,b,h]),S=(0,n.useCallback)((async e=>{try{const t={type:null===_||void 0===_?void 0:_.type,value:null===_||void 0===_?void 0:_.value,unit:null===_||void 0===_?void 0:_.unit,bearing:null===_||void 0===_?void 0:_.bearing,coords:null===_||void 0===_?void 0:_.coords,name:e},n=await(async(e,t)=>{const n={method:"POST",body:JSON.stringify({measurement:t})},r=await Ey("/".concat(t$e,"/").concat(e,"/measurements"),n),i=await r.json();if(200!==r.status)throw new Error(null!==i&&void 0!==i?i:r.statusText);if(!zZe(i))throw new Error("Invalid json");return i})(c.id,t);b(),d(n)}catch{}}),[_,c.id,b,d]),w=(0,n.useCallback)((async(e,t)=>{try{const n=await(async(e,t,n)=>{const r={method:"PATCH",body:JSON.stringify({measurement:n})},i=await Ey("/".concat(t$e,"/").concat(e,"/measurements/").concat(t),r),o=await i.json();if(200!==i.status)throw new Error(null!==o&&void 0!==o?o:i.statusText);if(!zZe(o))throw new Error("Invalid json");return o})(c.id,e,{name:t});b(),p(e,n)}catch{}}),[c.id,b,p]),E=(0,n.useCallback)((e=>f?w(f,e):S(e)),[f,w,S]),P=(0,n.useCallback)((e=>{if(Y3(e)){const t={...S3("tmp-polygon-measurement",e),displayText:l6e(e)};i(t)}else if(Z3(e)){const t={...w3("tmp-line-measurement",e),displayText:o6e(e)};s(t)}g(null),t(!0)}),[g]);return(0,n.useEffect)((()=>{f&&t(!0)}),[f]),(0,Ae.jsxs)(Ae.Fragment,{children:[(0,Ae.jsx)(m6e,{measureEnabled:y,type:v,drawPointer:"cross",onMeasureEnd:P}),(0,Ae.jsx)(yPe,{polygons:[r],zIndex:7}),(0,Ae.jsx)(S6e,{lines:[o],zIndex:7}),_&&(0,Ae.jsx)(t6e,{anchorEl:m,isOpen:e,measurement:_,onClose:b,onValidate:E,onDelete:x,isUpdateDelete:null!=_.id})]})},E6e=Zo()((()=>({rightBar:{width:"fit-content",height:"fit-content",position:"absolute",bottom:"7rem",right:"0",rowGap:"0.5rem","& button":{borderTopRightRadius:0,borderBottomRightRadius:0}}}))),P6e=()=>{const{classes:e}=E6e(),t=(0,n.useContext)(mZe),r=(0,n.useContext)(F2e);if(!t||!r)return(0,Ae.jsx)(Ae.Fragment,{});const{inspectionCtx:{inspection:i,updateInspection:o},annotationCtx:{removeAnnotation:s},measurementCtx:{removeMeasurement:a},stampCtx:{getStamp:l,addMultipleStamps:c,addStamp:u,removeStamp:d},itemsCtx:{isLoading:h},geoJSONFeatures:{setSelectedIds:p},setSelectedAnnotationId:f,setCommonMapProps:g}=t,{mapData:m,setMapData:y}=r,{selectedTool:v,setSelectedTool:_}=(0,n.useContext)(a$e),[b,x]=(0,n.useState)(X3e.LOADING),[S,w]=(0,n.useState)(!1),[E,P]=(0,n.useState)();(0,n.useEffect)((()=>{_(IZe.HAND),f(null)}),[_,f]),(0,n.useEffect)((()=>{var e,t,n;if(0===(null===(e=i.stampsCalibration)||void 0===e?void 0:e.length))return x(X3e.ANNOTATION_SETUP);const r=null===(t=i.stampsCalibration)||void 0===t?void 0:t.find((e=>{let{type:t}=e;return t===sA.MODULE}));if(!r)return x(X3e.MODULE_CALIBRATION);const o=null===(n=i.stampsCalibration)||void 0===n?void 0:n.find((e=>{let{type:t}=e;return t===sA.TABLE}));return x(o?X3e.CALIBRATION_DONE:X3e.TABLE_CALIBRATION)}),[i.stampsCalibration]),(0,n.useEffect)((()=>{p([])}),[v,p]);const C=(0,n.useMemo)((()=>{var e,t;return v===IZe.STAMP_MODULE?null===(e=i.stampsCalibration)||void 0===e?void 0:e.find((e=>{let{type:t}=e;return t===sA.MODULE})):v===IZe.STAMP_TABLE?null===(t=i.stampsCalibration)||void 0===t?void 0:t.find((e=>{let{type:t}=e;return t===sA.TABLE})):void 0}),[i,v]),{candDrawPoint:A,isDeleteMode:k}=(0,n.useMemo)((()=>({candDrawPoint:[IZe.STAMP_FOUNDATION,IZe.STAMP_MODULE,IZe.STAMP_PILE,IZe.STAMP_TABLE].includes(v),isDeleteMode:v===IZe.TRASH})),[v]),j=(0,n.useMemo)((()=>{switch(v){case IZe.STAMP_FOUNDATION:return sA.FOUNDATION;case IZe.STAMP_MODULE:return sA.MODULE;case IZe.STAMP_PILE:return sA.PILE;case IZe.STAMP_TABLE:return sA.TABLE;default:return}}),[v]),I=(0,n.useMemo)((()=>b===X3e.TABLE_CALIBRATION?sA.TABLE:b===X3e.MODULE_CALIBRATION?sA.MODULE:null),[b]),G=(0,n.useCallback)((e=>{if(S)return;if(!j)return;if(!K3(e))return;const t=x3("stamp-".concat((new Date).getTime()),e,d3.point),n={type:j,coords:[]};if(j===sA.FOUNDATION){var r;n.coords=[t.coords];const e=null===(r=i.stampsCalibration)||void 0===r?void 0:r.find((e=>{let{type:t}=e;return t===sA.MODULE}));n.size=(e=>e&&"coords"in e?.9*XZe(e.coords):.3)(e)}else if(j===sA.PILE){var o;n.coords=[t.coords];const e=null===(o=i.stampsCalibration)||void 0===o?void 0:o.find((e=>{let{type:t}=e;return t===sA.MODULE}));n.size=(e=>e&&"coords"in e?.9*XZe(e.coords)*Math.sqrt(3)/6:.3)(e)}else{if(!C)return;n.coords=((e,t)=>{if(!("coords"in t))return[];const n=A3(e),r=A3(t.coords[0]);return t.coords.map((e=>{const t=A3(e),i=t[0]-r[0],o=t[1]-r[1];return k3([n[0]+i,n[1]+o])}))})(t.coords,C);const e="modulesCount"in C?C.modulesCount:void 0,r=void 0!==e;if(j===sA.TABLE&&r&&n.coords.length>=4){const t=((e,t,n)=>{const[r,i,o,s]=e,a=A3(r),l=A3(i),c=A3(s),u=Math.abs(a[0]-l[0])/n,d=Math.abs(a[1]-c[1])/t,h=(a[0]-c[0])/t,p=(a[1]-l[1])/n,f=[];for(let g=0;g<t;g++)for(let e=0;e<n;e++){const t=[a[0]+e*u-g*h,a[1]-g*d-e*p],n=[t[0]+u,t[1]-p],r=[t,n,[n[0]-h,n[1]-d],[t[0]-h,t[1]-d],t];f.push(r.map(k3))}return f})([n.coords[0],n.coords[1],n.coords[2],n.coords[3]],e.line,e.column).map((e=>({type:sA.MODULE,coords:e})));c(t)}}u(n),w(!0),setTimeout((()=>{w(!1)}),300)}),[j,S,i.stampsCalibration,C,c,u]),T=(0,n.useCallback)((e=>{e&&d("".concat(e.getId()))}),[d]),M=(0,n.useCallback)((e=>{if(!e)return;const t="".concat(e.getId());s(t),QZe(i.id,t)}),[i.id,s]),O=(0,n.useCallback)((async e=>{if(!e)return;const t="".concat(e.getId());try{a(t),await n$e(i.id,t)}catch{}}),[a,i.id]),R=(0,n.useCallback)((()=>{x(X3e.CALIBRATION_DONE),o({stampsCalibration:[{type:sA.TABLE,skipped:!0},{type:sA.MODULE,skipped:!0}]})}),[o]),D=(0,n.useCallback)((e=>{let{currentCalibrationStep:t}=e;if(t===X3e.ANNOTATION_SETUP)return(0,Ae.jsx)(q3e,{mode:"annotation",onValidate:()=>x(X3e.CALIBRATION_SETUP)});if(t===X3e.CALIBRATION_SETUP)return(0,Ae.jsx)(q3e,{skippable:!0,mode:"calibration",onValidate:()=>x(X3e.MODULE_CALIBRATION),onSkip:R});if(t===X3e.CALIBRATION_DONE){var n,r;const e=[];N(null!==(n=i.stampsCalibration)&&void 0!==n?n:[],sA.MODULE)||e.push(IZe.STAMP_MODULE);return N(null!==(r=i.stampsCalibration)&&void 0!==r?r:[],sA.TABLE)||e.push(IZe.STAMP_TABLE),h&&e.push(IZe.ITEM_SELECTION,IZe.ITEM_SELECTION_MODULE,IZe.ITEM_SELECTION_PILE),(0,Ae.jsx)(U3e,{mode:"annotate",disabledTools:e})}return(0,Ae.jsx)(Ae.Fragment,{})}),[i,h,R]),N=(e,t)=>{const n=e.find((e=>e.type===t));return n&&"coords"in n&&n.coords.length>0},L=(0,n.useCallback)((e=>{if(!e)return P(void 0),void y({...m,center:void 0});const t=l(e);if(!t)return;const n=(0,w0.getCenter)(t.coords);if(!n)return;const r={lat:n.latitude,lng:n.longitude};P(r),y({...m,center:r,zoom:25})}),[l,m,y]),V=(0,n.useMemo)((()=>{if(E)return{id:"duplicate-zone-circle",center:E,radius:1,style:{fill:nU(Bp,.3),stroke:Bp}}}),[E]);return(0,n.useEffect)((()=>{g({visibleElements:[cA.STAMPS,cA.MEASUREMENTS,cA.ANNOTATIONS],selectableItems:[],withMinimap:!0})}),[g]),(0,n.useEffect)((()=>{g((e=>{if(e)return{...e,selectableItems:k?[cA.STAMPS,cA.ANNOTATIONS,cA.MEASUREMENTS]:[]}}))}),[k,g]),(0,n.useEffect)((()=>{g((e=>{if(e)return{...e,onStampSelected:T}}))}),[T,g]),(0,n.useEffect)((()=>{g((e=>{if(e)return{...e,onAnnotationSelected:M}}))}),[M,g]),(0,n.useEffect)((()=>{g((e=>{if(e)return{...e,onMeasurementSelected:O}}))}),[O,g]),(0,Ae.jsxs)(Ae.Fragment,{children:[(0,Ae.jsx)(K3e,{width:"30%",minWidth:"25rem",children:(0,Ae.jsx)(D,{currentCalibrationStep:b})}),I&&(0,Ae.jsx)(H2e,{type:I,currentCalibrationStep:b,setCurrentCalibrationStep:x}),(0,Ae.jsx)(Y2e,{}),(0,Ae.jsx)(w6e,{}),(0,Ae.jsx)(Q2e,{}),(0,Ae.jsxs)(ws,{container:!0,direction:"column",wrap:"nowrap",className:e.rightBar,children:[null===I&&(0,Ae.jsx)(ws,{item:!0,children:(0,Ae.jsx)(X2e,{onGoBack:e=>x(e)})}),(0,Ae.jsx)(ws,{item:!0,children:(0,Ae.jsx)($2e,{onSelectedDuplicateStampId:L})})]}),(0,Ae.jsx)(_Pe,{drawEnabled:A,shape:u3.POINT,drawPointer:"cross",onDrawEnd:G}),(0,Ae.jsx)(j5,{circles:[V],zIndex:5})]})},C6e=Zo()((()=>({root:{width:"100%",height:"100%",maxHeight:"10rem",background:"white"},deleteBtnContainer:{padding:"0.25rem 0","& button":{minWidth:"initial",height:"100%",padding:"0 0.25rem"}},separator:{borderRight:"1px solid #E0E0E0",width:"1px",height:"100%"}}))),A6e=e=>{const{classes:t}=C6e(),{annotation:r}=e,[i,o]=(0,n.useState)(!1),[s,a]=(0,n.useState)(e.annotation.type);(0,n.useEffect)((()=>{a(e.annotation.type)}),[e.annotation]);return(0,Ae.jsxs)(ws,{container:!0,wrap:"nowrap",className:t.root,children:[!e.isReadOnly&&(0,Ae.jsxs)(ws,{item:!0,container:!0,direction:"column",wrap:"nowrap",flex:1,padding:"0.5rem",children:[(0,Ae.jsxs)(ws,{item:!0,container:!0,wrap:"nowrap",justifyContent:"space-between",alignItems:"stretch",children:[(0,Ae.jsx)(ws,{item:!0,xs:9,children:(0,Ae.jsxs)(yw,{fullWidth:!0,children:[(0,Ae.jsx)(dw,{id:"annotation-type",children:"Type"}),(0,Ae.jsx)(Jw,{fullWidth:!0,size:"small",labelId:"annotation-type",variant:"outlined",value:s,label:"Type",onChange:t=>{return n=t.target.value,void e.onUpdate({type:n});var n},children:Object.keys(aA).map((e=>(0,Ae.jsx)(dh,{value:e,children:lA[e]},e)))})]})}),(0,Ae.jsx)(ws,{item:!0,className:t.deleteBtnContainer,children:(0,Ae.jsx)(ev,{color:"delete",size:"small",onClick:async()=>{o(!0),await e.onDelete(),o(!1)},loading:i,frontIcon:(0,Ae.jsx)(n8.c,{})})})]}),(0,Ae.jsx)(ws,{item:!0,children:(0,Ae.jsx)(v3e,{value:r.severity,onChange:t=>{e.onUpdate({severity:t})}})})]}),!e.isReadOnly&&(0,Ae.jsx)(ws,{item:!0,className:t.separator}),(0,Ae.jsx)(ws,{item:!0,flex:1,width:0,paddingLeft:"0.5rem",children:(0,Ae.jsx)(q1e,{annotation:r})})]})},k6e=Zo()((()=>({root:{...l$e.bloc,padding:0,overflowY:"hidden"},title:{...l$e.title,padding:"0.5rem 1rem"},mainItem:{flexGrow:1,height:0},annotationForm:{borderTop:"1px solid ".concat(Rp)},comparison:{borderTop:"1px solid ".concat(Rp)}}))),j6e=e=>{const{classes:t}=k6e(),r=(0,n.useContext)(mZe);if(!r)return(0,Ae.jsx)(Ae.Fragment,{});const{inspectionCtx:{inspection:i},selectedAnnotationId:o,annotationCtx:s}=r,a=(0,n.useMemo)((()=>{if(!o)return;const e=s.annotations.find((e=>{let{id:t}=e;return t===o}));return e||void 0}),[o,s.annotations]);return(0,Ae.jsxs)(ws,{container:!0,direction:"column",wrap:"nowrap",className:t.root,children:[(0,Ae.jsx)(ws,{item:!0,children:(0,Ae.jsx)(vu,{className:t.title,children:"Annotations manager"})}),(0,Ae.jsxs)(ws,{item:!0,container:!0,direction:"column",wrap:"nowrap",className:t.mainItem,children:[(0,Ae.jsx)(ws,{item:!0,flex:1,overflow:"hidden",children:(0,Ae.jsx)(Q1e,{})}),a&&(0,Ae.jsxs)(Ae.Fragment,{children:[(0,Ae.jsx)(ws,{item:!0,className:t.annotationForm,children:(0,Ae.jsx)(A6e,{isReadOnly:e.isReadOnly,annotation:a,onCancel:()=>null,onUpdate:e=>(async(e,t)=>{s.updateAnnotation(e,t),await JZe(i.id,e,t)})(a.id,e),onDelete:()=>(async e=>{s.removeAnnotation(e),await QZe(i.id,e)})(a.id)})}),(0,Ae.jsx)(ws,{item:!0,className:t.comparison,children:(0,Ae.jsx)(y3e,{annotation:a})})]})]})]})},I6e=Zo()(((e,t)=>{const n="calc(".concat(t.minimapSize," + ").concat(t.overlaySize,"px)");return{itemsContainer:{width:"35rem",height:"100%",padding:"0.25rem",rowGap:"0.25rem"},toolboxContainerParent:{..._0,position:"absolute",height:"fit-content",bottom:"0.5rem",left:n,visibility:"0"===t.minimapSize?"hidden":"visible",width:"calc(100% - (".concat(n," + ").concat(t.scaleLineSize,"px) - 0.5rem)")},toolboxContainer:{width:"100%",maxWidth:"30rem",margin:"auto"}}})),G6e=()=>{const[{minimapSize:e,scaleLineSize:t},r]=(0,n.useState)({minimapSize:"0",scaleLineSize:0}),i=(0,n.useContext)(mZe);if(!i)return(0,Ae.jsx)(Ae.Fragment,{});const{selectedAnnotationId:o,setSelectedAnnotationId:s,setSelectedMeasurementId:a,setCommonMapProps:l}=i,{selectedTool:c,setSelectedTool:u}=(0,n.useContext)(a$e),{classes:d}=I6e({minimapSize:e,scaleLineSize:t,overlaySize:200}),h=(0,n.useCallback)(((e,t)=>{r({minimapSize:e,scaleLineSize:t})}),[]);(0,n.useEffect)((()=>{u(IZe.HAND)}),[u]);const p=(0,n.useMemo)((()=>c===IZe.SELECT),[c]),f=(0,n.useCallback)((e=>{if(!e)return s(null);const t="".concat(e.getId());""!==t&&s(t)}),[s]),g=(0,n.useCallback)((e=>{if(!e)return;const t="".concat(e.getId());""!==t&&a(t)}),[a]);return(0,n.useEffect)((()=>{l({visibleElements:[cA.STAMPS,cA.MEASUREMENTS,cA.ANNOTATIONS],selectableItems:[],withMinimap:!0})}),[l]),(0,n.useEffect)((()=>{l((e=>{if(e)return{...e,rightPanel:(0,Ae.jsxs)(ws,{container:!0,direction:"column",wrap:"nowrap",className:d.itemsContainer,children:[(0,Ae.jsx)(ws,{item:!0,width:"100%",flex:1,children:(0,Ae.jsx)(j6e,{})}),null===o&&(0,Ae.jsx)(ws,{item:!0,maxHeight:"15rem",children:(0,Ae.jsx)(iJe,{})})]})}}))}),[d.itemsContainer,o,l]),(0,n.useEffect)((()=>{l((e=>{if(e)return{...e,selectableItems:p?[cA.MEASUREMENTS,cA.ANNOTATIONS]:[]}}))}),[p,l]),(0,n.useEffect)((()=>{l((e=>{if(e)return{...e,onAnnotationSelected:f}}))}),[f,l]),(0,n.useEffect)((()=>{l((e=>{if(e)return{...e,onMeasurementSelected:g}}))}),[g,l]),(0,n.useEffect)((()=>{l((e=>{if(e)return{...e,onMapDataChanges:h}}))}),[h,l]),(0,Ae.jsxs)(Ae.Fragment,{children:[(0,Ae.jsx)("div",{className:d.toolboxContainerParent,children:(0,Ae.jsx)("div",{className:d.toolboxContainer,children:(0,Ae.jsx)(U3e,{mode:"analyse"})})}),(0,Ae.jsx)(Y2e,{}),(0,Ae.jsx)(w6e,{})]})},T6e=Zo()((()=>({itemsContainer:{width:"35rem",height:"100%",padding:"0.25rem",rowGap:"0.25rem"}}))),M6e=()=>{const{classes:e}=T6e(),t=(0,n.useContext)(mZe);if(!t)return(0,Ae.jsx)(Ae.Fragment,{});const{selectedAnnotationId:r}=t,{setSelectedTool:i}=(0,n.useContext)(a$e);(0,n.useEffect)((()=>{i(IZe.SELECT)}),[i]);const o=(0,n.useCallback)((()=>(0,Ae.jsxs)(ws,{container:!0,direction:"column",wrap:"nowrap",className:e.itemsContainer,children:[(0,Ae.jsx)(ws,{item:!0,width:"100%",flex:1,children:(0,Ae.jsx)(j6e,{isReadOnly:!0})}),null===r&&(0,Ae.jsxs)(Ae.Fragment,{children:[(0,Ae.jsx)(ws,{item:!0,maxHeight:"15rem",children:(0,Ae.jsx)(iJe,{withGraph:!0})}),(0,Ae.jsx)(ws,{item:!0,maxHeight:"15rem",children:(0,Ae.jsx)(dJe,{withMetrics:!0})})]})]})),[e.itemsContainer,r]);return(0,Ae.jsx)(E3e,{RightPanelComp:o})},O6e=Zo()((()=>({root:{padding:"1rem"}}))),R6e=()=>{const{classes:e}=O6e();return(0,Ae.jsx)("div",{className:e.root,children:(0,Ae.jsx)(pM,{severity:"info",children:"The results page of this inspection is not ready yet."})})},D6e=e=>(0,Ae.jsx)(mZe.Provider,{value:e.context,children:e.children}),N6e=e=>(0,Ae.jsx)(a$e.Provider,{value:e.context,children:e.children}),L6e=e=>(0,Ae.jsx)(F2e.Provider,{value:e.context,children:e.children}),V6e=(0,n.createContext)(null),F6e=e=>{const{children:t,context:n}=e;return(0,Ae.jsx)(V6e.Provider,{value:n,children:t})},z6e=Zo()((()=>({card:{border:"1px solid #f5f5f5",borderRadius:"24px"}}))),B6e=e=>{const{classes:t}=z6e(),r=(0,n.useContext)(V6e);if(!r)return(0,Ae.jsx)(Ae.Fragment,{});const{rtkStatus:{inspectionRtkStatus:i,percentage:o}}=r,{inspection:s,photoData:a,mobileData:l}=e,c=e=>{s&&(async(e,t)=>{const n={method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({externalMethod:t})};(await Ey("/inspections/"+e+"/externalMethod",n)).ok&&Sy.dispatch(om(t))})(s.id,e)},u=async e=>{s&&e&&await OA(e,s.id)},d=()=>{var e;return(0,Ae.jsxs)(Ae.Fragment,{children:[(0,Ae.jsxs)(Wk,{children:[(0,Ae.jsx)(tk,{scope:"row",children:"Inspection date"}),(0,Ae.jsx)(tk,{align:"right",children:s.inspectionDates.planned&&(0,Ae.jsx)(sE,{date:s.inspectionDates.planned,onlyDate:!0,manageDate:u})})]}),!RZe(s)&&(0,Ae.jsxs)(Wk,{children:[(0,Ae.jsx)(tk,{scope:"row",children:"Inspection method"}),(0,Ae.jsx)(tk,{align:"right",children:(0,Ae.jsx)(Jw,{value:null!==(e=s.externalMethod)&&void 0!==e?e:"",variant:"standard",children:Object.keys(oje).map(((e,t)=>(0,Ae.jsx)(dh,{value:e,onClick:()=>{c(e)},children:oje[e]},t)))})})]})]})};return(0,Ae.jsxs)(hj,{className:t.card,children:[(0,Ae.jsx)(h8,{style:{textAlign:"center"},title:"Acquisition"}),(0,Ae.jsx)(Qq,{}),(0,Ae.jsx)(npe,{children:(0,Ae.jsx)(ok,{children:(0,Ae.jsx)(BA,{"aria-label":"simple table",children:(0,Ae.jsx)(KA,{children:!RZe(s)&&s.isExternal?(0,Ae.jsx)(d,{}):(0,Ae.jsx)(Ae.Fragment,{children:s&&"planned"===s.status?(0,Ae.jsx)(Wk,{children:(0,Ae.jsx)(tk,{scope:"row",children:"Waiting for photo data to be uploaded"})}):(0,Ae.jsxs)(Ae.Fragment,{children:[(0,Ae.jsxs)(Wk,{children:[(0,Ae.jsx)(tk,{scope:"row",children:"Date and time"}),(0,Ae.jsx)(tk,{align:"right",children:ze()(s.inspectionDates.inspected).format("DD-MM-YYYY HH:mm")})]}),(0,Ae.jsxs)(Wk,{children:[(0,Ae.jsx)(tk,{scope:"row",children:" Photos "}),(0,Ae.jsx)(tk,{align:"right",children:s.stats.photoCount})]}),(0,Ae.jsxs)(Wk,{children:[(0,Ae.jsx)(tk,{scope:"row",children:"Tagged photos"}),(0,Ae.jsx)(tk,{align:"right",children:s.stats.flaggedCount})]}),(0,Ae.jsxs)(Wk,{children:[(0,Ae.jsx)(tk,{scope:"row",children:"Inspection duration"}),(0,Ae.jsx)(tk,{align:"right",children:(()=>{if(s.stats.inspectionDuration)return Math.ceil(s.stats.inspectionDuration/60)+" minutes";if(a.length){const e=a.map((e=>e.timestamp)).sort(),t=new Date(e[e.length-1]-e[0]).getMinutes();return"".concat(t," minutes")}return""})()})]}),(null===l||void 0===l?void 0:l.radiationValue)&&(0,Ae.jsxs)(Wk,{children:[(0,Ae.jsx)(tk,{scope:"row",children:"Radiation Value"}),(0,Ae.jsx)(tk,{align:"right",children:l.radiationValue})]}),(0,Ae.jsxs)(Wk,{children:[(0,Ae.jsx)(tk,{scope:"row",children:"RTK Status"}),(0,Ae.jsx)(tk,{align:"right",children:i?"".concat(i," ").concat(o?"(".concat(o,"%)"):""):(0,Ae.jsx)($y,{size:15,style:{alignItems:"flex-end"}})})]})]})})})})})})]})},U6e=e=>{const t=Zo()((()=>({buttongGroup:{height:"1.8rem"},button:{minWidth:"2rem",height:e.bigFont?"3rem":"1.6rem"},topInput:{paddingBottom:0},container:{display:"inline-flex",justifyContent:"center",alignItems:"center",gap:"0.5rem"},input:{paddingLeft:"0.4rem",width:"2rem",border:"1px solid ".concat(jp),fontSize:e.bigFont?"1rem":"0.9rem",height:e.bigFont?"2rem":void 0},main:{fontSize:e.bigFont?"1rem":"0.9rem",marginLeft:"1rem"}}))),{classes:r}=t(),{title:i,value:o,unit:s,field:a,updateValue:l,max:c,noSeparator:u,editMode:d}=e,[h,p]=(0,n.useState)(null===o||void 0===o?void 0:o.toString()),f=e=>(0,Ae.jsxs)("span",{className:r.container,children:[i,(0,Ae.jsx)(cW,{id:"gravity",variant:"outlined",className:r.buttongGroup,children:e.map(((e,t)=>(0,Ae.jsx)(Sa,{color:"primary",value:e,variant:o===e?"contained":"outlined",onClick:()=>l(a,e),className:r.button,children:(0,Ae.jsx)("span",{children:e})},t)))})]});return(0,Ae.jsxs)("span",{className:r.main,children:[!d&&(0,Ae.jsxs)("span",{className:"ml-1 noUserSelect",children:[u?"":"| ",i," :",(0,Ae.jsxs)("b",{children:[e.displayLabel?e.displayLabel:""!==o?" "+o:"Unknown",""!==o?s:""]})]}),d&&"blade"===a&&f(["A","B","C"]),d&&"side"===a&&f(["PS","SS","LE","TE"]),d&&"hubDistance"===a&&(0,Ae.jsxs)("span",{className:r.container,children:[(0,Ae.jsx)("span",{children:i}),(0,Ae.jsx)(WW,{value:o,size:"small",onChange:(e,t)=>l(a,t),min:0,max:c,style:{width:"5rem",marginLeft:"0.5rem"}}),(0,Ae.jsx)(RS,{value:o.toString(),className:r.topInput,margin:"dense",onChange:e=>l(a,""===e.target.value?0:Number(e.target.value)),onBlur:()=>{c&&o>c&&l(a,c)},inputProps:{step:1,min:0,max:c,type:"number",className:r.input}})]}),d&&"obstacleDistance"===a&&(0,Ae.jsxs)("span",{className:r.container,children:[(0,Ae.jsx)("span",{children:i}),(0,Ae.jsx)(RS,{value:h,className:r.topInput,margin:"dense",onChange:e=>{""!==e.target.value&&isNaN(Number(e.target.value))||p(e.target.value)},onBlur:e=>{l(a,h)},inputProps:{className:r.input}})]})]})},W6e=Zo()((()=>({thumb:{display:"inline-flex",borderRadius:2,border:"1px solid #eaeaea",marginBottom:8,marginRight:8,width:"6rem",height:"6rem",padding:4},thumbImg:{display:"flex",minWidth:0,overflow:"hidden"},img:{display:"block",width:"auto",height:"100%"},fileDisplay:{maxHeight:"18rem",overflowY:"auto"},photoSection:{display:"flex",padding:10,textAlign:"center"},progress:{width:"50%",height:10},label:{width:"15%"},nbPhotos:{paddingBottom:5},popup:{margin:20},popupTitle:{paddingBottom:15},popupOk:{paddingTop:15,textAlign:"right"}}))),H6e={flex:1,display:"flex",flexDirection:"column",alignItems:"center",padding:"40px",borderWidth:3,borderRadius:3,borderColor:"#5d5d5d",borderStyle:"dashed",backgroundColor:"#fafafa",color:"#5d5d5d",outline:"none",transition:"border .24s ease-in-out"},q6e={borderColor:"#2196f3"},X6e={borderColor:"#00e676"},Y6e={borderColor:"#00e676"};var K6e=function(e){return e[e.PENDING=0]="PENDING",e[e.UPLOADING=1]="UPLOADING",e[e.UPLOADED=2]="UPLOADED",e}(K6e||{});const Z6e=e=>{const{inspectionDoc:t}=e,r={blade:"A",hubDistance:0,obstacleDistance:0,side:"PS",edge:"",type:t.externalMethod},{classes:i}=W6e(),[o,s]=(0,n.useState)(!1),[a,l]=(0,n.useState)(!1),[c,u]=(0,n.useState)(r),[d,h]=(0,n.useState)([]),[p,f]=(0,n.useState)([]),[g,y]=(0,n.useState)(0),v=m(),_=b(ty),[x,S]=(0,n.useState)(null);let w=0;const E=()=>{const e=(0,n.useRef)(null);return(0,n.useEffect)((()=>{var t;return null===(t=e.current)||void 0===t?void 0:t.scrollIntoView(!1)})),(0,Ae.jsx)("div",{ref:e})};(0,n.useEffect)((()=>{g&&d&&!_&&g===d.length&&"planned"!==t.status&&v(dm(!0))}),[g]);const P=async e=>{s(!0);const n=await(async(e,t,n,r)=>{const i=new Headers;i.append("Content-Type","application/json"),["LE","TE"].includes(r.side)&&(r.edge=r.side,r.side="");const o={method:"POST",headers:i,body:JSON.stringify({filename:t,timestamp:n,photoInfos:r})},s=await Ey("/inspections/".concat(e,"/getExternalPhotoURL"),o);return 200===s.status&&await s.json()})(t.id,e.name,e.lastModified,c);n&&n.url&&(d.push({file:e,url:n.url,status:K6e.PENDING,inspectionId:t.id,preview:URL.createObjectURL(e),photoId:n.photoId,fileName:n.fileName}),h(d),C(d.length-1))},C=e=>{const t=d[e];null!=t&&(t.status=K6e.UPLOADING,fetch(t.url,{method:"PUT",body:t.file}).then((e=>{s(!1),A(e.url)})).catch((e=>{console.error(e)})))},A=e=>{for(const t of d)e===t.url&&(t.status=K6e.UPLOADED,w++,y(g+w))},k=(0,n.useMemo)((()=>{var e,n;return null!==(e=null===(n=t.stats)||void 0===n?void 0:n.photoCount)&&void 0!==e?e:0}),[t.stats.photoCount]),j=(0,n.useMemo)((()=>k+g),[k,g]),I=(0,n.useMemo)((()=>1e3-j),[j]),G=(0,n.useCallback)((async e=>{const t=e.slice(0,I);f(t),l(!0)}),[I]),{getRootProps:T,getInputProps:M,isDragActive:O,isDragAccept:R,isDragReject:D,fileRejections:N}=pq({onDrop:G,accept:{"image/*":[".jpeg",".jpg"]},maxSize:3e7}),L=N.map(((e,t)=>{let{file:n,errors:r}=e;return(0,Ae.jsx)("li",{children:(0,Ae.jsx)("ul",{children:r.map((e=>(0,Ae.jsx)("li",{children:"Only JPG/JPEG files are supported: ".concat(n.name)},e.code)))})},t)})),V=(0,n.useMemo)((()=>({...H6e,...O?q6e:{},...R?X6e:{},...D?Y6e:{}})),[O,D,R]),F=d.length,z=(e,t)=>{const n={...c};n[e]=t,u(n)};return(0,Ae.jsxs)("div",{onMouseEnter:e=>S(e.currentTarget),children:[(0,Ae.jsxs)("div",{className:i.nbPhotos,children:["Number of photos already uploaded: ",j]}),I>0&&(0,Ae.jsxs)("div",{...T({style:V}),children:[(0,Ae.jsx)("input",{...M()}),!o&&(0,Ae.jsx)("p",{children:"Drag and drop images or folders here"}),o&&(0,Ae.jsx)($y,{})]}),I<=0&&(0,Ae.jsx)(pM,{severity:"info",children:"You have reached the maximum photos upload."}),!!F&&(0,Ae.jsxs)("div",{className:i.photoSection,children:[(0,Ae.jsx)("span",{className:i.label,children:"Photos "}),(0,Ae.jsx)(Hpe,{variant:"determinate",value:100*g/F,className:i.progress}),(0,Ae.jsx)("span",{className:i.label,children:" ".concat(g,"/").concat(F)}),(0,Ae.jsx)(ev,{loading:g!==F,label:"Annotate",style:{width:"25%"},onClick:async()=>{await kA(t.id,OC.UPLOADED),window.location.reload()}})]}),(0,Ae.jsx)("ul",{children:L}),(0,Ae.jsx)("div",{className:i.fileDisplay,children:(0,Ae.jsxs)(Ae.Fragment,{children:[d.map((e=>(0,Ae.jsx)("div",{className:i.thumb,children:(0,Ae.jsx)("div",{className:i.thumbImg,children:(0,Ae.jsx)("img",{src:e.preview,className:i.img,alt:"external img"})})},e.file.name))),(0,Ae.jsx)(E,{})]})}),(0,Ae.jsx)(Ud,{open:a,onClose:()=>l(!1),anchorEl:x,children:(0,Ae.jsxs)("div",{className:i.popup,children:[(0,Ae.jsx)("div",{className:i.popupTitle,children:"Please provide photo related informations"}),(0,Ae.jsx)(U6e,{title:"Blade",value:c.blade,field:"blade",noSeparator:!0,updateValue:z,editMode:!0,bigFont:!0}),(0,Ae.jsx)(U6e,{title:"Side",value:c.side,bigFont:!0,field:"side",updateValue:z,editMode:!0}),(0,Ae.jsx)(U6e,{title:"Obstacle Distance",bigFont:!0,field:"obstacleDistance",unit:"m",value:c.obstacleDistance,editMode:!0,updateValue:z}),(0,Ae.jsx)("div",{className:i.popupOk,children:(0,Ae.jsx)(ev,{label:"OK",onClick:()=>{(async()=>{for(const e of p)await P(e)})(),l(!1)}})})]})})]})},$6e=Zo()((()=>({card:{border:"1px solid #f5f5f5",borderRadius:"24px"}}))),J6e=e=>{const{classes:t}=$6e(),{inspection:n}=e;return(0,Ae.jsxs)(hj,{className:t.card,children:[(0,Ae.jsx)(h8,{style:{textAlign:"center"},title:"Photo upload"}),(0,Ae.jsx)(Qq,{}),(0,Ae.jsx)(npe,{children:!RZe(n)&&n.isExternal?(0,Ae.jsx)(Z6e,{inspectionDoc:n}):(0,Ae.jsx)(Ae.Fragment,{children:(0,Ae.jsx)(ok,{children:(0,Ae.jsx)(BA,{"aria-label":"simple table",children:(0,Ae.jsx)(KA,{children:n&&"planned"===n.status?(0,Ae.jsx)(Wk,{children:(0,Ae.jsx)(tk,{scope:"row",children:"Waiting for photo data to be uploaded"})}):(0,Ae.jsxs)(Ae.Fragment,{children:[(0,Ae.jsxs)(Wk,{children:[(0,Ae.jsx)(tk,{scope:"row",children:"Uploaded photos"}),(0,Ae.jsx)(tk,{align:"right",children:n.stats.uploadedCount})]}),(0,Ae.jsxs)(Wk,{children:[(0,Ae.jsx)(tk,{scope:"row",children:"Pending photos"}),(0,Ae.jsx)(tk,{align:"right",children:n?n.stats.photoCount-n.stats.uploadedCount:0})]})]})})})})})})]})},Q6e=(0,cs.cp)(a2e)((()=>({["&.".concat(n2e.alternativeLabel)]:{top:10,left:"calc(-50% + 16px)",right:"calc(50% + 16px)"},["&.".concat(n2e.active)]:{["& .".concat(n2e.line)]:{borderColor:"#C4C4C4"}},["&.".concat(n2e.completed)]:{["& .".concat(n2e.line)]:{borderColor:"green"}},["& .".concat(n2e.line)]:{borderTopWidth:5,borderRadius:1}}))),e4e=Zo()((()=>({card:{border:"1px solid #f5f5f5",borderRadius:"24px"},stepLabel:{}}))),t4e=e=>{const{classes:t}=e4e(),{inspection:n}=e;let r=0;const i=(()=>{const e=null===n||void 0===n?void 0:n.status;if(n)switch(e){case"planned":return["Pending","Pending"];case"inspected":return r=1,0===(null===n||void 0===n?void 0:n.stats.uploadedCount)?["Complete","Pending"]:["Complete","Ongoing"];case"uploaded":return r=2,["Complete","Complete"];case"annotated":case"analyzed":return r=1,n.stats.uploadedCount<n.stats.photoCount?["Complete","Ongoing"]:(r=2,["Complete","Complete"])}return["Pending","Pending"]})();return(0,Ae.jsx)(h2e,{activeStep:r,alternativeLabel:!0,style:{backgroundColor:"#f4f6f8"},connector:(0,Ae.jsx)(Q6e,{}),children:i.map(((e,n)=>(0,Ae.jsx)(y2e,{children:(0,Ae.jsx)(N2e,{className:t.stepLabel,children:e})},n)))})},n4e=()=>{const e=(0,n.useContext)(V6e);if(!e)return(0,Ae.jsx)(Ae.Fragment,{});const{inspection:t,photoData:r,mobileData:i}=e;return(0,Ae.jsxs)(wp,{sx:{minHeight:"100%",p:5,py:4},children:[(0,Ae.jsx)(ws,{container:!0,spacing:2,paddingY:8,children:(0,Ae.jsx)(ws,{item:!0,xs:6,md:12,children:(0,Ae.jsx)(t4e,{inspection:t})})}),(0,Ae.jsxs)(ws,{container:!0,spacing:2,children:[(0,Ae.jsx)(ws,{item:!0,xs:6,md:6,children:(0,Ae.jsx)(B6e,{inspection:t,photoData:r,mobileData:i})}),(0,Ae.jsx)(ws,{item:!0,xs:6,md:6,children:(0,Ae.jsx)(J6e,{inspection:t})})]})]})},r4e=e=>{const{inspectionId:t,active:r=!0}=e,[i,o]=(0,n.useState)(),[s,a]=(0,n.useState)(new Map);(0,n.useEffect)((()=>{if(!r)return;(async()=>{try{const e=new Map,n=await(async e=>{const t=await Ey("/ai-wind/suggestions/".concat(e),{method:"GET"});if(!t.ok){const e=await t.text();throw new Error(null!==e&&void 0!==e?e:"An error occured")}return t.json()})(t);n.forEach((t=>e.set(t.id,t))),a(e)}catch(e){e instanceof Error?o(e.message):o("An error occurred fetching suggestions.")}})()}),[t,r]);const l=(0,n.useMemo)((()=>i4e(s,[mke.ACCEPTED_BY_CLIENT,mke.ACCEPTED_BY_SV,mke.CREATED_BY_AI,mke.MANUAL_BY_SV,mke.REJECTED_BY_CLIENT,mke.UPDATED_BY_SV,mke.TAG])),[s]),c=(0,n.useMemo)((()=>i4e(s,[mke.CREATED_BY_AI,mke.MANUAL_BY_SV,mke.UPDATED_BY_SV,mke.TAG])),[s]),u=async e=>{try{const n=await(async(e,t)=>{const n=await Ey("/ai-wind/suggestions/".concat(e,"/").concat(t,"/reject"),{method:"PATCH"});if(!n.ok){const e=await n.text();throw new Error(null!==e&&void 0!==e?e:"An error occured")}return n.json()})(t,e);a((e=>{const t=new Map(e);return t.set(n.id,n),t}))}catch(n){n instanceof Error?o(n.message):o("Failed to reject suggestion.")}},d=async e=>{try{const n=await(async(e,t)=>{const n=await Ey("/ai-wind/suggestions/".concat(e),{method:"POST",body:JSON.stringify(t)});if(!n.ok){const e=await n.text();throw new Error(null!==e&&void 0!==e?e:"An error occured")}return n.json()})(t,e);a((e=>{const t=new Map(e);return t.set(n.id,n),t}))}catch(n){n instanceof Error?o(n.message):o("Failed to create suggestion.")}},h=async e=>{try{const n=await(async(e,t)=>{const n=await Ey("/ai-wind/suggestions/".concat(e,"/").concat(t),{method:"DELETE"});if(!n.ok){const e=await n.text();throw new Error(null!==e&&void 0!==e?e:"An error occured")}return n.text()})(t,e);a((e=>{const t=new Map(e);return t.delete(n),t}))}catch(n){n instanceof Error?o(n.message):o("Failed to delete suggestion.")}};return{error:i,allSuggestionsMap:s,allSuggestionsByPhotoMap:l,onGoingSuggestionsByPhotoMap:c,acceptSuggestion:async e=>{try{const n=await(async(e,t)=>{const n=await Ey("/ai-wind/suggestions/".concat(e,"/").concat(t,"/accept"),{method:"PATCH"});if(!n.ok){const e=await n.text();throw new Error(null!==e&&void 0!==e?e:"An error occured")}return n.json()})(t,e);a((e=>{const t=new Map(e);return t.set(n.id,n),t}))}catch(n){n instanceof Error?o(n.message):o("Failed to accept suggestion.")}},rejectSuggestion:u,getSuggestionById:e=>s.get(e),createSuggestion:d,updateSuggestion:async(e,n)=>{try{const r=await(async(e,t,n)=>{const r=await Ey("/ai-wind/suggestions/".concat(e,"/").concat(t),{method:"PATCH",body:JSON.stringify(n)});if(!r.ok){const e=await r.text();throw new Error(null!==e&&void 0!==e?e:"An error occured")}return r.json()})(t,e,n);a((e=>{const t=new Map(e);return t.set(r.id,r),t}))}catch(r){r instanceof Error?o(r.message):o("Failed to update suggestion.")}},deleteSuggestion:h,tagPhoto:async e=>{await d({photoId:e,status:mke.TAG})},untagPhoto:async e=>{const t=c.get(e);if(!t)return o("Error: cannot untag photo ".concat(e,"."));const n=t.filter((e=>{let{status:t}=e;return t===mke.TAG})),r=t.filter((e=>{let{status:t}=e;return[mke.CREATED_BY_AI,mke.MANUAL_BY_SV].includes(t)}));await Promise.all([...n.map((e=>{let{id:t}=e;return h(t)})),...r.map((e=>{let{id:t}=e;return u(t)}))])}}},i4e=(e,t)=>{var n;const r=new Map;if(!e)return r;return Array.from(null!==(n=null===e||void 0===e?void 0:e.values())&&void 0!==n?n:[]).filter((e=>t.includes(e.status))).reduce(((e,t)=>{var n;const{photoId:r}=t;return e.has(r)||e.set(r,[]),null===(n=e.get(r))||void 0===n||n.push(t),e}),r)},o4e=Zo()((()=>({tableCell:{borderLeft:"white",borderRight:"white",overflow:"auto",color:"#535353",padding:6},tableCellNote:{borderLeft:"white",borderRight:"white",overflow:"auto",color:"#535353",padding:6,width:"unset"},tableCell100:{borderLeft:"white",borderRight:"white",overflow:"auto",color:"#535353",padding:6,width:"100%"},card:{borderRadius:"10px",height:"100%","&:last-child":{pb:0}},noteBlock:{display:"inline-block",position:"relative",width:"100%",paddingRight:20},note:{fontSize:"0.875rem",marginRight:45},noteRight:{fontSize:"0.875rem",textAlign:"right",marginRight:45},cursor:{}}))),s4e=Object.freeze({[RC.BLADES]:"Blades",[RC.TOWER]:"Tower",[RC.SOLAR]:"Thermal",[RC.SOLAR_CONSTRUCTION]:"Construction"}),a4e=e=>{var t,r,i,o;const{classes:s}=o4e(),a=m(),l=null!==(t=e.constructionInspection)&&void 0!==t?t:null===(r=(0,n.useContext)(V6e))||void 0===r?void 0:r.inspection;if(!l)return(0,Ae.jsx)(Ae.Fragment,{});const c=(0,n.useContext)(NEe),{isExpert:u}=null!==c&&void 0!==c?c:{},{allSuggestionsMap:d}=r4e({inspectionId:l.id,active:l.type===RC.BLADES}),h=(0,n.useMemo)((()=>{var e,t,n,r;return{lat:null!==(e=null===(t=l.subAsset)||void 0===t?void 0:t.lat)&&void 0!==e?e:0,lng:null!==(n=null===(r=l.subAsset)||void 0===r?void 0:r.lon)&&void 0!==n?n:0}}),[l.subAsset]),[p,f]=(0,n.useState)(!1),[g,y]=(0,n.useState)(!1),[v,_]=(0,n.useState)({open:!1}),[x,S]=(0,n.useState)(!1),[w,E]=(0,n.useState)(""),[P,C]=(0,n.useState)(!1),[A,k]=(0,n.useState)(""),[j,I]=(0,n.useState)(""),[G,T]=(0,n.useState)([]),[M,O]=(0,n.useState)(null),[R,D]=(0,n.useState)((()=>null)),N=on(),L=(0,n.createRef)(),[V,F]=(0,n.useState)(!1),z=b((e=>e.inspectionTool.inspectionDoc)),B=(0,n.useMemo)((()=>l.type===RC.BLADES&&d.size>0),[l.type,d]);(0,n.useEffect)((()=>{var e;E(null!==(e=z.notes)&&void 0!==e?e:"")}),[z.notes]),(0,n.useEffect)((()=>{var e;k(null!==(e=z.legislation)&&void 0!==e?e:"")}),[z.legislation]),(0,n.useEffect)((()=>{!async function(e){const t=await MT(e.asset.id);t.sort(((e,t)=>e.name>t.name?1:-1)),T(t)}(l)}),[]);const U=e=>{a(nm(e)),ZL(l.id,{legislation:e}),C(!1)},W=async()=>{const e=G.find((e=>e.id===j));if(e){const t=e.lon||0,n=e.lat||0,r={newSubAssetId:e.id,farmId:l.asset.id,lon:t,lat:n};await(async(e,t)=>{const n=new Headers;n.append("Content-Type","application/json");const r={method:"POST",headers:n,body:JSON.stringify(t)};return 200===(await Ey("/inspections/".concat(e,"/changeSubAsset"),r)).status&&(await PA(e),!0)})(l.id,r)}f(!1),window.location.reload()},H=(0,n.useCallback)((async function(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(!Object.keys(phe).includes(e))return;const n=[OC.PLANNED,OC.INSPECTED];t||e===phe.NO_WIND_AI||!n.includes(l.status)||B?(await ZL(l.id,{windAIMode:e}),window.location.reload()):_({open:!0,mode:e})}),[l.id,l.status,B]),q={getDocuments:()=>(async e=>(await Ey("/inspections/".concat(e,"/docs"),{method:"GET"})).json())(l.id),postDocument:(e,t)=>async function(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"";const r=t.name,{fileName:i,extension:o}=yhe(r),s={method:"POST",body:JSON.stringify({fileName:i,extension:o,text:n})},a=await Ey("/inspections/".concat(e,"/docs"),s);if(200!==a.status)return Promise.reject();const{signedUrl:l}=await a.json();return fetch(l,{method:"PUT",body:t})}(l.id,e,t),deleteDocument:e=>((e,t)=>{const n={method:"DELETE",body:JSON.stringify({documentId:t})};return Ey("/inspections/".concat(e,"/docs"),n)})(l.id,e)},X=(0,n.useMemo)((()=>[RC.SOLAR,RC.SOLAR_CONSTRUCTION].includes(l.type)),[l.type]),Y=(0,n.useCallback)((()=>{var e;if(u)return(0,Ae.jsx)(Ae.Fragment,{});const t=e=>{let{children:t}=e;return(0,Ae.jsx)(ws,{item:!0,flex:1,height:0,width:"100%",minHeight:"10rem",children:t})};return X?(0,Ae.jsx)(t,{children:(0,Ae.jsx)(_Ce,{withMapProviders:!1,assetId:l.asset.id,subAssetsIds:[l.subAsset.id],withSubAssetsPolygons:"with-texts",withOverlays:!1})}):(0,Ae.jsx)(t,{children:(0,Ae.jsx)(U5,{center:h,zoom:12,provider:mL.GoogleSatellite,leftBar:(0,Ae.jsx)(Ae.Fragment,{children:(0,Ae.jsx)(kwe,{})}),children:(0,Ae.jsx)(Z5,{points:[{id:"1",coords:h,type:d3.icon,iconUrl:$5,style:{anchor:[.5,.89]},displayText:null!==(e=l.subAsset.name)&&void 0!==e?e:"",textStyle:{offsetY:-50}}]})})})}),[l.asset.id,l.subAsset.id,l.subAsset.name,h,u,X]);return(0,Ae.jsxs)(Ae.Fragment,{children:[(0,Ae.jsx)(hj,{className:s.card,children:(0,Ae.jsxs)(ws,{container:!0,direction:"column",wrap:"nowrap",height:"100%",children:[(0,Ae.jsxs)(ws,{item:!0,container:!0,justifyContent:"space-between",alignItems:"center",paddingRight:"1rem",children:[(0,Ae.jsx)(h8,{title:"Inspection Details"}),(!u||Eo()||z.status===OC.PLANNED)&&(0,Ae.jsx)(ev,{onClick:e=>{y(!0),O(e.currentTarget)},color:"delete",trailingIcon:(0,Ae.jsx)(n8.c,{})})]}),(0,Ae.jsx)(Qq,{}),(0,Ae.jsx)(ws,{item:!0,children:(0,Ae.jsx)(BA,{"aria-label":"simple table",style:{width:"100%"},children:(0,Ae.jsxs)(KA,{children:[!u&&(0,Ae.jsxs)(Ae.Fragment,{children:[(0,Ae.jsxs)(Wk,{children:[(0,Ae.jsx)(tk,{className:s.tableCell,scope:"row",children:"Asset Name"}),(0,Ae.jsx)(tk,{className:s.tableCell,align:"right",scope:"row",children:l.asset.name})]}),(0,Ae.jsxs)(Wk,{children:[(0,Ae.jsx)(tk,{className:s.tableCell,scope:"row",children:"Inspection type"}),(0,Ae.jsx)(tk,{className:s.tableCell,align:"right",scope:"row",children:null!==(i=s4e[l.type])&&void 0!==i?i:l.type})]}),(0,Ae.jsxs)(Wk,{children:[(0,Ae.jsx)(tk,{className:s.tableCell,scope:"row",children:X?"Area":"Turbine number"}),(0,Ae.jsx)(tk,{className:s.tableCell,align:"right",scope:"row",children:X?(0,Ae.jsx)(vu,{children:l.subAsset.name}):G.length>0&&(0,Ae.jsx)(Jw,{value:l.subAsset.id,onClick:e=>O(e.currentTarget),onChange:e=>(e=>{e.target.value!==l.subAsset.id&&(O(e.currentTarget),I(e.target.value),f(!0))})(e),variant:"standard",children:G.map((e=>(0,Ae.jsx)(dh,{value:e.id,children:e.name},e.id)))})})]}),Eo()&&l.type===RC.BLADES&&(0,Ae.jsxs)(Wk,{children:[(0,Ae.jsx)(tk,{className:s.tableCell,scope:"row",children:"Wind AI Mode"}),(0,Ae.jsx)(tk,{className:s.tableCell,align:"right",scope:"row",children:(0,Ae.jsx)(Jw,{value:null!==(o=l.windAIMode)&&void 0!==o?o:phe.NO_WIND_AI,onClick:e=>{O(e.currentTarget)},onChange:e=>{H(e.target.value)},variant:"standard",children:Object.values(phe).map((e=>(0,Ae.jsx)(dh,{value:e,children:fhe[e]},e)))})})]})]}),(0,Ae.jsxs)(Wk,{children:[(0,Ae.jsx)(tk,{className:s.tableCell,scope:"row",children:"Model"}),(0,Ae.jsx)(tk,{className:s.tableCell,align:"right",scope:"row",children:l.subAsset.model})]}),(0,Ae.jsxs)(Wk,{children:[(0,Ae.jsx)(tk,{className:s.tableCell,scope:"row",children:"Date"}),(0,Ae.jsx)(tk,{align:"right",scope:"row",children:l&&l.inspectionDates&&Iy(l.inspectionDates.planned)})]}),(0,Ae.jsxs)(Wk,{children:[(0,Ae.jsx)(tk,{className:s.tableCellNote,scope:"row",children:"Notes"}),(0,Ae.jsx)(tk,{className:s.tableCell,id:"tableCells",align:"right",scope:"row",style:{borderLeft:"1px solid lightgrey"},children:(0,Ae.jsxs)("div",{className:s.noteBlock,children:[(0,Ae.jsx)(iE,{inputRef:L,variant:"standard",rows:2,fullWidth:!0,multiline:!0,value:w,onChange:e=>(e=>E(e.target.value))(e),InputProps:{classes:{input:x?s.note:s.noteRight},readOnly:!x,disableUnderline:!0}}),(0,Ae.jsxs)("span",{style:{position:"absolute",right:0,top:8},children:[!x&&(0,Ae.jsx)(Zh,{onClick:()=>{S(!0),L&&L.current&&L.current.focus()},className:s.cursor}),x&&(0,Ae.jsx)(ev,{label:"OK",size:"small",onClick:()=>{S(!1),(async(e,t)=>{const n={method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({notes:t})};(await Ey("/inspections/"+e+"/editNotes",n)).ok&&(Sy.dispatch(tm(t)),Sy.dispatch(ig({notes:t,inspectionId:e})))})(l.id,w)},style:{cursor:"pointer",minWidth:50}})]})]})})]}),(0,Ae.jsxs)(Wk,{children:[(0,Ae.jsx)(tk,{className:s.tableCell,id:"tableCells",scope:"row",children:"Legislation"}),(0,Ae.jsx)(tk,{className:s.tableCell,id:"tableCells",align:"right",scope:"row",children:(0,Ae.jsxs)(ws,{container:!0,wrap:"nowrap",alignItems:"center",columnGap:"0.5rem",children:[(0,Ae.jsx)(ws,{item:!0,flex:1,children:(0,Ae.jsx)(iE,{variant:"standard",fullWidth:!0,multiline:!0,value:A,onChange:e=>k(e.target.value),InputProps:{classes:{input:P?s.note:s.noteRight},style:{color:"Clear to fly"===A?"green":"red"},readOnly:!P,disableUnderline:!0}})}),Eo()&&!P&&(0,Ae.jsx)(ws,{item:!0,color:"black",children:(0,Ae.jsx)(Zh,{onClick:()=>C(!0),className:s.cursor})}),Eo()&&P&&(0,Ae.jsxs)(Ae.Fragment,{children:[(0,Ae.jsx)(ev,{label:"OK",size:"small",onClick:()=>U(A),style:{cursor:"pointer",minWidth:50}}),(0,Ae.jsx)(ev,{label:"Clear to fly",size:"small",color:"success",onClick:()=>U("Clear to fly"),style:{cursor:"pointer",minWidth:50}})]})]})})]}),(0,Ae.jsxs)(Wk,{children:[(0,Ae.jsx)(tk,{className:s.tableCell,id:"tableCells",scope:"row",children:"Weather"}),(0,Ae.jsx)(tk,{className:s.tableCell,id:"tableCells",align:"right",scope:"row",style:{color:"#00a6ff",overflow:"auto"},children:l.weather})]})]})})}),!u&&(0,Ae.jsx)(ws,{item:!0,children:(0,Ae.jsx)(vhe.Provider,{value:q,children:(0,Ae.jsx)(f8,{title:"Documents dropbox",action:(0,Ae.jsx)(The,{onSave:()=>{R()}}),childComp:(0,Ae.jsx)(wp,{maxHeight:"8rem",overflow:"auto",children:(0,Ae.jsx)(Rhe,{reloadFn:e=>{D((()=>e))}})})})})}),(0,Ae.jsx)(Y,{})]})}),p&&(0,Ae.jsx)(nv,{title:"You are about to change the turbine number",close:()=>f(!1),titleConfirm:"Confirm",confirm:()=>W(),anchorEl:M}),g&&(0,Ae.jsx)(nv,{title:"You are about to delete the inspection",close:()=>y(!1),titleConfirm:"Delete",confirm:()=>(async()=>{F(!0),await TA(l.id),F(!1),N.push("/assets/".concat(l.asset.id))})(),anchorEl:M,loading:V}),v.open&&(0,Ae.jsx)(nv,{title:"You are about to change the AI mode of this inspection, but there is not any suggestions. Are you sure?",close:()=>_({open:!1}),titleConfirm:"Confirm",confirm:()=>{var e;return H(null!==(e=v.mode)&&void 0!==e?e:"",!0)},anchorEl:M,loading:!1})]})},l4e=()=>{const e=(0,n.useContext)(V6e);if(!e)return(0,Ae.jsx)(Ae.Fragment,{});const{inspection:t}=e;return t?(0,Ae.jsxs)(ws,{container:!0,height:"100%",padding:"1rem",children:[(0,Ae.jsx)(ws,{item:!0,md:4,sm:12,children:(0,Ae.jsx)(a4e,{})}),!Wy()&&(0,Ae.jsx)(ws,{item:!0,md:8,sm:12,children:(0,Ae.jsx)(n4e,{})})]}):(0,Ae.jsx)(Ae.Fragment,{})},c4e=e=>{const{inspectionIds:t}=e,[r,i]=(0,n.useState)(new Map),[o,s]=(0,n.useState)(!1);(0,n.useEffect)((()=>{(async()=>{s(!0);const e=t.map((e=>(async e=>{const t=await Ey("/inspections/".concat(e,"/rtk-status"),{method:"GET"});if(200===t.status)return await t.json();return{inspectionRtkStatus:wA.NO_RTK,percentage:100}})(e)));try{const n=await Promise.all(e),r=new Map;t.forEach(((e,t)=>{r.set(e,n[t])})),i(r)}catch(n){i(new Map)}finally{s(!1)}})()}),[JSON.stringify(t)]);return{getRTKStatusPerInspection:e=>{const t=r.get(e);return t?{inspectionRtkStatus:t.inspectionRtkStatus,percentage:t.percentage}:{inspectionRtkStatus:null,percentage:null}},isLoading:o}},u4e=(0,cs.cp)(a2e)((()=>({["&.".concat(n2e.active)]:{["& .".concat(n2e.line)]:{borderColor:"#C4C4C4"}},["&.".concat(n2e.completed)]:{["& .".concat(n2e.line)]:{borderColor:"green"}},["& .".concat(n2e.line)]:{borderTopWidth:5,borderRadius:1,height:"100%"}}))),d4e=Zo()((()=>({stepper:{"& .MuiStepConnector-root:first-of-type":{display:"none"}}})));var h4e=function(e){return e.PENDING="Pending",e.ONGOING="Ongoing",e.COMPLETE="Complete",e.DATA_EXISTS="Data exists",e}(h4e||{});const p4e=e=>{const{classes:t}=d4e(),{stepper:r}=e,i=(0,n.useContext)(mZe);if(!i)return(0,Ae.jsx)(Ae.Fragment,{});const{inspectionCtx:{inspection:o},stampCtx:{stamps:s},measurementCtx:{measurements:a},annotationCtx:{annotations:l}}=i,c=(0,n.useMemo)((()=>o.status),[o.status]),u=(0,n.useMemo)((()=>c===OC.PLANNED?h4e.PENDING:h4e.COMPLETE),[c]),d=(0,n.useMemo)((()=>{return u===h4e.PENDING?h4e.PENDING:c===OC.INSPECTED?0===(null!==(e=o.stats.uploadedCount)&&void 0!==e?e:0)?h4e.PENDING:h4e.ONGOING:h4e.COMPLETE;var e}),[u,c,o]),h=(0,n.useMemo)((()=>[h4e.PENDING,h4e.ONGOING].includes(d)?h4e.PENDING:o.signedOrthophotoUrl?h4e.COMPLETE:h4e.ONGOING),[d,o]),p=(0,n.useMemo)((()=>[s,a,l].some((e=>e.length>0))?h4e.DATA_EXISTS:h4e.PENDING),[s,a,l]),f=(0,n.useMemo)((()=>[u,d,h,p]),[u,d,h,p]),g=(0,n.useMemo)((()=>f.reduce(((e,t)=>t===h4e.COMPLETE?e+1:e),0)),[f]),m="photos"===r?0:2;return(0,Ae.jsx)(h2e,{activeStep:g,connector:(0,Ae.jsx)(u4e,{}),className:t.stepper,children:f.slice(m,m+2).map(((e,t)=>(0,Ae.jsx)(y2e,{index:t+m,children:(0,Ae.jsx)(N2e,{children:e})},t)))})},f4e=Zo()((()=>({card:{border:"1px solid #f5f5f5",borderRadius:"24px"}}))),g4e=()=>{const{classes:e}=f4e(),t=(0,n.useContext)(mZe);if(!t)return(0,Ae.jsx)(Ae.Fragment,{});const{inspectionCtx:{inspection:r,updateInspection:i}}=t,o=(0,n.useMemo)((()=>r.orthophotoStatus),[r.orthophotoStatus]),[s,a]=(0,n.useState)(),[l,c]=(0,n.useState)(!1),[u,d]=(0,n.useState)(),[h,p]=(0,n.useState)(),f=e=>{p(e)},g=(e=>{const t=(0,n.useRef)();return(0,n.useEffect)((()=>{t.current=e})),t.current})(o);(0,n.useEffect)((()=>{if(!g)return;if(o===hA.ERROR)return void d({type:"error",message:"Error while generating orthophoto"});if(o!==hA.DONE)return;if(g===o)return;d({type:"info",message:"Orthophoto generated, window will reload in ".concat(5," seconds")}),setTimeout((()=>{window.location.reload()}),5e3)}),[g,o]);const m=(0,n.useMemo)((()=>o===hA.DONE&&void 0!=r.signedOrthophotoUrl),[r,o]);return(0,Ae.jsxs)(hj,{className:e.card,children:[(0,Ae.jsx)(h8,{style:{textAlign:"center"},title:"Orthophoto generation"}),(0,Ae.jsx)(Qq,{}),(0,Ae.jsxs)(npe,{children:[(0,Ae.jsx)(vu,{children:m?"The orthophoto is ready.":"An orthophoto will be available within 3 business days after the upload."}),Eo()&&!l&&(0,Ae.jsxs)(wp,{marginTop:"1rem",children:[(0,Ae.jsx)(vu,{fontStyle:"italic",children:"Orthophoto upload by SkyVisor"}),(0,Ae.jsx)(khe,{maxFiles:1,text:"Upload an orthophoto",filesType:{"image/tiff":[".tif",".tiff"]},maxSize:2e10,onLoadedFilesChange:e=>{d(void 0);const t=e[0];t&&a(t)},uploadButton:!0,uploadPath:"inspections/".concat(r.id,"/orthophotos"),onUploadButtonClick:async()=>{if(s){c(!0),p(void 0),d({type:"info",message:"Uploading file (do not close this page\u2026)"});try{const e="inspections/".concat(r.id,"/orthophotos/").concat(s.file.name);await i({orthophotoStatus:hA.PENDING}),await Ehe(e,s.file,f,20),p(void 0),d({type:"info",message:"Uploading done, update inspection data (do not close this page\u2026)"}),await i({orthophotoPath:e}),await i({orthophotoStatus:hA.DONE})}catch(e){d({type:"error",message:"Error while uploading file"}),c(!1),p(void 0)}}}})]}),Eo()&&l&&void 0!==h&&(0,Ae.jsx)(qpe,{value:h}),u&&(0,Ae.jsx)(vu,{color:"error"===(null===u||void 0===u?void 0:u.type)?Bp:void 0,children:null===u||void 0===u?void 0:u.message})]})]})},m4e=e=>{const[t,r]=(0,n.useState)(!1),[i,o]=(0,n.useState)();return(0,n.useEffect)((()=>{if(!e)return;(async()=>{r(!0);try{const t=await(async e=>{const t=await Ey("/solar-construction/".concat(e,"/stats"),{method:"GET"});if(200===t.status)return t.json();const n=await t.text();throw new Error(n)})(e);o(t)}catch(t){}finally{r(!1)}})()}),[e]),{isLoading:t,...i}},y4e=Zo()((()=>({card:{border:"1px solid #f5f5f5",borderRadius:"24px"}}))),v4e=()=>{const{classes:e}=y4e(),t=(0,n.useContext)(mZe);if(!t)return(0,Ae.jsx)(Ae.Fragment,{});const{inspectionCtx:{inspection:{id:r,status:i}},previousInspectionsCtx:{previousInspections:o},stampCtx:{stamps:s},measurementCtx:{measurements:a,fetchAllMeasurements:l},annotationCtx:{annotations:c,fetchAllAnnotations:u}}=t,[d,h]=(0,n.useState)(!1),[p,f]=(0,n.useState)(),[g,m]=(0,n.useState)(!1),[y,v]=(0,n.useState)(null),[_,b]=(0,n.useState)(),[x,S]=(0,n.useState)([pA.STAMPS,pA.ANNOTATIONS,pA.MEASUREMENTS]),{isLoading:w,annotationsCount:E=0,measurementsCount:P=0,stampsCount:C=0}=m4e(_);(0,n.useEffect)((()=>{0!==o.length&&(_||b(o[o.length-1].id))}),[o,_]);const A=(0,n.useCallback)((e=>{S((t=>t.includes(e)?[...t].filter((t=>t!==e)):(t.push(e),[...t])))}),[]),k=(0,n.useMemo)((()=>({[pA.STAMPS]:C,[pA.ANNOTATIONS]:E,[pA.MEASUREMENTS]:P})),[C,E,P]),j=(0,n.useCallback)((async()=>{if(v(null),f(void 0),_)try{h(!0),await(async(e,t,n)=>{var r;const i=await Ey("/solar-construction/".concat(t,"/copy-data"),{method:"POST",body:JSON.stringify({fromInspectionId:e,items:n})});if(200===i.status)return!0;const o=await i.text();throw new Error(null!==(r=null!==o&&void 0!==o?o:i.statusText)&&void 0!==r?r:"An error occured")})(_,r,x),await Promise.all([u(),l()]),m(!0),setTimeout((()=>{m(!1)}),3e3)}catch(e){e instanceof Error?"DUPLICATE_STAMPS"===e.message?f("Duplicate stamps have been detected. Please delete current inspection's stamps before copying."):f(e.message):f("An error occured")}finally{h(!1)}}),[_,r,x,u,l]),I=(0,n.useCallback)((e=>{[s,c,a].every((e=>0===e.length))?j():v(e.currentTarget)}),[s,c,a,j]),G=(0,n.useCallback)((t=>{let{children:n}=t;return(0,Ae.jsxs)(hj,{className:e.card,children:[(0,Ae.jsx)(h8,{style:{textAlign:"center"},title:"Data copier"}),(0,Ae.jsx)(Qq,{}),(0,Ae.jsx)(npe,{children:n})]})}),[e]),T=(0,n.useCallback)((()=>_?w?(0,Ae.jsx)($y,{size:18}):(0,Ae.jsx)(ws,{container:!0,wrap:"nowrap",textAlign:"center",children:Object.values(pA).map((e=>(0,Ae.jsxs)(vu,{flex:1,color:"black",lineHeight:"0.7rem",children:[k[e],(0,Ae.jsx)("br",{}),e.toLowerCase()]},"count-".concat(e))))}):(0,Ae.jsx)(Ae.Fragment,{})),[_,w,k]);return i===OC.PLANNED?(0,Ae.jsx)(G,{children:(0,Ae.jsx)(vu,{children:"Cannot copy data while inspection is planned."})}):0===o.length?(0,Ae.jsx)(G,{children:(0,Ae.jsx)(vu,{children:"No previous inspections to copy from."})}):(0,Ae.jsxs)(G,{children:[(0,Ae.jsxs)(ws,{container:!0,direction:"column",wrap:"nowrap",rowGap:"0.75rem",children:[(0,Ae.jsx)(p3e,{label:"Inspection to copy",inspections:o,selectedInspectionId:_,onInspectionSelected:e=>b(e)}),(0,Ae.jsx)(cW,{fullWidth:!0,children:Object.values(pA).map((e=>(0,Ae.jsx)(Sa,{variant:x.includes(e)?"contained":"outlined",onClick:()=>A(e),children:e},e)))}),(0,Ae.jsx)(ws,{item:!0,width:"100%",children:(0,Ae.jsx)(T,{})}),(0,Ae.jsx)(ev,{disabled:d||0===x.length,loading:d,color:"answer",size:"small",label:"Copy ".concat(xq(x)),onClick:I}),p&&(0,Ae.jsx)(vu,{color:Bp,children:p}),g&&(0,Ae.jsx)(pM,{color:"success",children:"Data copied successfully"})]}),(0,Ae.jsx)(Ud,{id:"simple-popover",open:null!==y,anchorEl:y,onClose:()=>v(null),anchorOrigin:{vertical:"bottom",horizontal:"center"},transformOrigin:{vertical:"top",horizontal:"center"},children:(0,Ae.jsxs)(ws,{container:!0,direction:"column",wrap:"nowrap",width:"30rem",padding:"0.5rem",rowGap:"1rem",children:[(0,Ae.jsxs)(vu,{children:["Doing the copy will overwrite all existing data already copied for this inspection. It is recommanded to copy data only once."," ",(0,Ae.jsx)("b",{children:"Are you sure to copy again the data?"})]}),(0,Ae.jsx)(ohe,{onCancel:()=>v(null),onValidate:j})]})})]})},_4e=e=>{const{inspection:t,photoData:n}=e;return(0,Ae.jsxs)(ws,{container:!0,direction:"column",wrap:"nowrap",padding:"1rem",alignItems:"stretch",rowGap:"1rem",children:[(0,Ae.jsx)(ws,{item:!0,width:"55%",marginLeft:"25%",children:(0,Ae.jsx)(p4e,{stepper:"photos"})}),(0,Ae.jsxs)(ws,{item:!0,container:!0,wrap:"nowrap",columnGap:"1rem",children:[(0,Ae.jsx)(ws,{item:!0,flex:1,children:(0,Ae.jsx)(B6e,{inspection:t,photoData:n})}),(0,Ae.jsx)(ws,{item:!0,flex:1,children:(0,Ae.jsx)(J6e,{inspection:t})})]}),Eo()&&(0,Ae.jsx)(ws,{item:!0,width:"55%",marginLeft:"25%",marginTop:"1rem",children:(0,Ae.jsx)(p4e,{stepper:"skyvisor"})}),(0,Ae.jsxs)(ws,{item:!0,container:!0,wrap:"nowrap",columnGap:"1rem",justifyContent:"center",children:[(0,Ae.jsx)(ws,{item:!0,flex:1,maxWidth:"60%",children:(0,Ae.jsx)(g4e,{})}),Eo()&&(0,Ae.jsx)(ws,{item:!0,flex:1,children:(0,Ae.jsx)(v4e,{})})]})]})},b4e=Zo()((()=>({root:{padding:"1rem",overflow:"auto"}}))),x4e=()=>{const{classes:e}=b4e(),t=b(Lm),r=(0,n.useContext)(mZe);if(!r)return(0,Ae.jsx)(Ae.Fragment,{});const{inspectionCtx:{inspection:i},setCommonMapProps:o}=r;return(0,n.useEffect)((()=>{o(void 0)}),[o]),(0,Ae.jsxs)(ws,{container:!0,wrap:"nowrap",className:e.root,height:"100%",children:[(0,Ae.jsx)(ws,{item:!0,xs:4,children:(0,Ae.jsx)(a4e,{constructionInspection:i})}),(0,Ae.jsx)(ws,{item:!0,xs:8,children:(0,Ae.jsx)(_4e,{inspection:i,photoData:t})})]})},S4e=()=>{const e=b(Nm);if(!e)return(0,Ae.jsx)(Ae.Fragment,{});const t=(0,n.useContext)(NEe),{fetchPhotoData:r,fetchMobileData:i}=null!==t&&void 0!==t?t:{},{getRTKStatusPerInspection:o}=c4e({inspectionIds:[e.id]}),{inspectionRtkStatus:s,percentage:a}=o(e.id),l=b(Lm),c=b(Vm);(0,n.useEffect)((()=>{null===i||void 0===i||i(e.id),null===r||void 0===r||r(e.id)}),[i,r,e.id]);const u={inspection:e,photoData:l,mobileData:c,rtkStatus:{inspectionRtkStatus:s,percentage:a}};return(0,Ae.jsx)(F6e,{context:u,children:e.type===RC.SOLAR_CONSTRUCTION?(0,Ae.jsx)(x4e,{}):(0,Ae.jsx)(l4e,{})})},w4e="solar-construction",E4e=e=>{const{inspectionId:t,externalUserCode:r}=e,[i,o]=(0,n.useState)(!1),[s,a]=(0,n.useState)(new Map);(0,n.useEffect)((()=>{(async()=>{o(!0);try{const e=await(async(e,t)=>{const n=new URLSearchParams;t&&n.append("externalUserCode",t);const r=await Ey("/".concat(w4e,"/").concat(e,"/items?").concat(n),{method:"GET"}),i=await r.json();if(200!==r.status)throw new Error(null!==i&&void 0!==i?i:r.statusText);const o=BZe(i);return CC.array(eJe).safeParse(o).success?o:[]})(t,r),n=new Map;e.forEach((e=>{n.set(e.id,e)})),a(n)}catch(e){a(new Map)}finally{o(!1)}})()}),[t]);const l=(0,n.useCallback)((async e=>{await(async(e,t)=>{const n={method:"POST",body:JSON.stringify(t)},r=await Ey("/".concat(w4e,"/").concat(e,"/items"),n);if(!r.ok){var i;const e=await r.text();throw new Error(null!==(i=null!==e&&void 0!==e?e:r.statusText)&&void 0!==i?i:"An error occurred")}const o=await r.json(),s=BZe(o);return CC.array(eJe).safeParse(s).success?s:[]})(t,e);const n=new Map(s);e.forEach((e=>{n.set(e.id,e)})),a(n)}),[t,s]);return{itemsMap:s,addItems:l,isLoading:i}};var P4e=__webpack_require__(38736),C4e=__webpack_require__(31888);const A4e=e=>{const t=e.getGeometry();return t instanceof dK?function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:.1;const n=e.getGeometry();if(!(n instanceof dK))return e;if(e.get("Layer")!==$$e.PILE)return e;const[r,i]=n.getCoordinates(),o=[[new dK([r-t,i-t]).getCoordinates(),new dK([r-t,i+t]).getCoordinates(),new dK([r+t,i+t]).getCoordinates(),new dK([r+t,i-t]).getCoordinates()]],s=new xK(o),a=new P0(s);return a.set("Layer",$$e.PILE),a.setId(e.getId()),a}(e):t instanceof I0?(e=>{const t=e.getGeometry();if(!(t instanceof I0))return e;if(e.get("Layer")!==$$e.MODULE)return e;const n=t.getCoordinates(),r=new xK([n]),i=new P0(r);return i.set("Layer",$$e.MODULE),i.setId(e.getId()),i})(e):e},k4e=.75,j4e=.1;const I4e=class extends BJ{constructor(e){e=e||{},super({element:document.createElement("div"),render:e.render,target:e.target}),this.boundHandleRotationChanged_=this.handleRotationChanged_.bind(this),this.collapsed_=void 0===e.collapsed||e.collapsed,this.collapsible_=void 0===e.collapsible||e.collapsible,this.collapsible_||(this.collapsed_=!1),this.rotateWithView_=void 0!==e.rotateWithView&&e.rotateWithView,this.viewExtent_=void 0;const t=void 0!==e.className?e.className:"ol-overviewmap",n=void 0!==e.tipLabel?e.tipLabel:"Overview map",r=void 0!==e.collapseLabel?e.collapseLabel:"\u2039";"string"===typeof r?(this.collapseLabel_=document.createElement("span"),this.collapseLabel_.textContent=r):this.collapseLabel_=r;const i=void 0!==e.label?e.label:"\u203a";"string"===typeof i?(this.label_=document.createElement("span"),this.label_.textContent=i):this.label_=i;const o=this.collapsible_&&!this.collapsed_?this.collapseLabel_:this.label_,s=document.createElement("button");s.setAttribute("type","button"),s.title=n,s.appendChild(o),s.addEventListener(HR,this.handleClick_.bind(this),!1),this.ovmapDiv_=document.createElement("div"),this.ovmapDiv_.className="ol-overviewmap-map",this.view_=e.view;const a=new OQ({view:e.view,controls:new QX,interactions:new QX});this.ovmap_=a,e.layers&&e.layers.forEach((function(e){a.addLayer(e)}));const l=document.createElement("div");l.className="ol-overviewmap-box",l.style.boxSizing="border-box",this.boxOverlay_=new f6e({position:[0,0],positioning:"center-center",element:l}),this.ovmap_.addOverlay(this.boxOverlay_);const c=t+" "+EZ+" "+PZ+(this.collapsed_&&this.collapsible_?" "+CZ:"")+(this.collapsible_?"":" ol-uncollapsible"),u=this.element;u.className=c,u.appendChild(this.ovmapDiv_),u.appendChild(s);const d=this,h=this.boxOverlay_,p=this.boxOverlay_.getElement(),f=function(e){const t={clientX:(n=e).clientX,clientY:n.clientY};var n;const r=a.getEventCoordinate(t);h.setPosition(r)},g=function(e){const t=a.getEventCoordinateInternal(e);d.getMap().getView().setCenterInternal(t),window.removeEventListener("pointermove",f),window.removeEventListener("pointerup",g)};this.ovmapDiv_.addEventListener("pointerdown",(function(){event.target===p&&window.addEventListener("pointermove",f),window.addEventListener("pointerup",g)}))}setMap(e){const t=this.getMap();if(e!==t){if(t){const e=t.getView();e&&this.unbindView_(e),this.ovmap_.setTarget(null)}if(super.setMap(e),e){this.ovmap_.setTarget(this.ovmapDiv_),this.listenerKeys.push(qD(e,yN,this.handleMapPropertyChange_,this));const t=e.getView();t&&this.bindView_(t),this.ovmap_.isRendered()||this.updateBoxAfterOvmapIsRendered_()}}}handleMapPropertyChange_(e){if(e.key===LJ){const t=e.oldValue;t&&this.unbindView_(t);const n=this.getMap().getView();this.bindView_(n)}else this.ovmap_.isRendered()||e.key!==NJ&&e.key!==DJ||this.ovmap_.updateSize()}bindView_(e){if(!this.view_){const t=new AK({projection:e.getProjection()});this.ovmap_.setView(t)}e.addChangeListener(vY.ROTATION,this.boundHandleRotationChanged_),this.handleRotationChanged_(),e.isDef()&&(this.ovmap_.updateSize(),this.resetExtent_())}unbindView_(e){e.removeChangeListener(vY.ROTATION,this.boundHandleRotationChanged_)}handleRotationChanged_(){this.rotateWithView_&&this.ovmap_.getView().setRotation(this.getMap().getView().getRotation())}validateExtent_(){const e=this.getMap(),t=this.ovmap_;if(!e.isRendered()||!t.isRendered())return;const n=e.getSize(),r=e.getView().calculateExtentInternal(n);if(this.viewExtent_&&KM(r,this.viewExtent_))return;this.viewExtent_=r;const i=t.getSize(),o=t.getView().calculateExtentInternal(i),s=t.getPixelFromCoordinateInternal(cO(r)),a=t.getPixelFromCoordinateInternal(rO(r)),l=Math.abs(s[0]-a[0]),c=Math.abs(s[1]-a[1]),u=i[0],d=i[1];l<u*j4e||c<d*j4e||l>u*k4e||c>d*k4e?this.resetExtent_():zM(o,r)||this.recenter_()}resetExtent_(){const e=this.getMap(),t=this.ovmap_,n=e.getSize(),r=e.getView().calculateExtentInternal(n),i=t.getView(),o=Math.log(7.5)/Math.LN2;fO(r,1/(Math.pow(2,o/2)*j4e)),i.fitInternal(SK(r))}recenter_(){const e=this.getMap(),t=this.ovmap_,n=e.getView();t.getView().setCenterInternal(n.getCenterInternal())}updateBox_(){const e=this.getMap(),t=this.ovmap_;if(!e.isRendered()||!t.isRendered())return;const n=e.getSize(),r=e.getView(),i=t.getView(),o=this.rotateWithView_?0:-r.getRotation(),s=this.boxOverlay_,a=this.boxOverlay_.getElement(),l=r.getCenter(),c=r.getResolution(),u=i.getResolution(),d=n[0]*c/u,h=n[1]*c/u;if(s.setPosition(l),a){a.style.width=d+"px",a.style.height=h+"px";const e="rotate("+o+"rad)";a.style.transform=e}}updateBoxAfterOvmapIsRendered_(){this.ovmapPostrenderKey_||(this.ovmapPostrenderKey_=XD(this.ovmap_,IJ,(e=>{delete this.ovmapPostrenderKey_,this.updateBox_()})))}handleClick_(e){e.preventDefault(),this.handleToggle_()}handleToggle_(){this.element.classList.toggle(CZ),this.collapsed_?UD(this.collapseLabel_,this.label_):UD(this.label_,this.collapseLabel_),this.collapsed_=!this.collapsed_;const e=this.ovmap_;if(!this.collapsed_){if(e.isRendered())return this.viewExtent_=void 0,void e.render();e.updateSize(),this.resetExtent_(),this.updateBoxAfterOvmapIsRendered_()}}getCollapsible(){return this.collapsible_}setCollapsible(e){this.collapsible_!==e&&(this.collapsible_=e,this.element.classList.toggle("ol-uncollapsible"),!e&&this.collapsed_&&this.handleToggle_())}setCollapsed(e){this.collapsible_&&this.collapsed_!==e&&this.handleToggle_()}getCollapsed(){return this.collapsed_}getRotateWithView(){return this.rotateWithView_}setRotateWithView(e){this.rotateWithView_!==e&&(this.rotateWithView_=e,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(e){this.validateExtent_(),this.updateBox_()}},G4e=Zo()(((e,t)=>({minimap:{width:t,height:t,border:"2px solid black","& .ol-overviewmap-map":{width:"100%",height:"100%"},"& .ol-overviewmap-box":{border:"2px solid rgba(255, 0, 0, 0.7)"}}}))),T4e=e=>{const{minimapSize:t="300px",orthophotoUrl:r}=e,i=(0,n.useContext)(V3);if(!i)return(0,Ae.jsx)(Ae.Fragment,{});const{map:o,setMinimapSize:s,source:a}=i,{classes:l}=G4e(t),c=(0,n.useRef)(new I4e({className:"ol-overviewmap ol-custom-overviewmap ".concat(l.minimap),collapsible:!1,view:new AK({projection:o.getView().getProjection(),center:o.getView().getCenter(),maxZoom:18})}));return(0,n.useEffect)((()=>{const e=c.current;return setTimeout((()=>{o.addControl(e)}),0),()=>{o.removeControl(e)}}),[o]),(0,n.useEffect)((()=>{if(!a)return;const e=c.current,t=new f0({source:a,zIndex:1});return e.getOverviewMap().addLayer(t),()=>{e.getOverviewMap().removeLayer(t)}}),[a]),(0,n.useEffect)((()=>{if(!r)return;const e=c.current,t=new Ome({source:new i_e({sources:[{url:r}]}),zIndex:2});return e.getOverviewMap().addLayer(t),()=>{t&&e.getOverviewMap().removeLayer(t)}}),[o,r]),(0,n.useEffect)((()=>{null===s||void 0===s||s(t)}),[s,t]),(0,Ae.jsx)(Ae.Fragment,{})},M4e=e=>{const{originalPhoto:t}=e,[r,i]=(0,n.useState)(),[o,s]=(0,n.useState)(),a=(0,n.useMemo)((()=>o&&r?{x:t.xyPoint.x*o,y:r.height-t.xyPoint.y*o}:{x:0,y:0}),[t.xyPoint,o,r]);return(0,Ae.jsx)(rAe,{hideControls:!0,id:"original-photo-".concat(t.photoId),imageUrl:t.signedUrl,onImageSizeChanged:i,onImageRatioChanged:s,children:(0,Ae.jsx)(Z5,{zIndex:2,points:[{id:"original-photo-cross-".concat(t.photoId),type:d3.cross,coords:k3([a.x,a.y]),style:{size:15,stroke:"red"}}]})})},O4e=Zo()((()=>({main:{position:"relative",width:"fit-content",height:"100%",padding:"1rem",alignItems:"center",rowGap:"0.5rem",overflowY:"auto"},closeBtn:{padding:"2px"}}))),R4e=e=>{const{coord:t,onClose:r}=e,{classes:i}=O4e(),o=(0,n.useContext)(mZe);if(!o)return(0,Ae.jsx)(Ae.Fragment,{});const{inspectionCtx:{inspection:{id:s}}}=o,[a,l]=(0,n.useState)(!1),[c,u]=(0,n.useState)(!1),[d,h]=(0,n.useState)([]),p=async(e,t)=>{u(!1),l(!0);try{const n=await async function(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:3;const r=new URLSearchParams({coord:JSON.stringify(t),limit:"".concat(n)}),i=await Ey("/inspections/".concat(e,"/photos/closest-photos?").concat(r.toString()),{method:"GET"});if(!i.ok){var o;const e=await i.text();throw new Error(null!==(o=null!==e&&void 0!==e?e:i.statusText)&&void 0!==o?o:"[getClosestPhotosFromCoord] An error occured")}const s=await i.json();if(Array.isArray(s))return s;throw new Error("[getClosestPhotosFromCoord] Invalid response from server")}(e,t,3);h(n)}catch(n){u(!0)}finally{l(!1)}};return(0,n.useEffect)((()=>{h([]),p(s,t)}),[s,t]),(0,Ae.jsxs)(ws,{container:!0,direction:"column",wrap:"nowrap",className:i.main,children:[(0,Ae.jsx)(wp,{position:"absolute",top:"0",right:"0",children:(0,Ae.jsx)(Gu,{"aria-label":"close",className:i.closeBtn,onClick:r,children:(0,Ae.jsx)(rwe.c,{})})}),(0,Ae.jsx)(ws,{item:!0,marginBottom:"1rem",children:(0,Ae.jsxs)("h3",{children:["Closest photos at point (",Ly(t.lat,6),","," ",Ly(t.lng,6),")"]})}),c&&(0,Ae.jsx)(ws,{item:!0,children:"An error occured"}),a&&(0,Ae.jsx)(ws,{item:!0,children:(0,Ae.jsx)($y,{})}),d.map((e=>(0,Ae.jsxs)(ws,{item:!0,container:!0,wrap:"nowrap",columnGap:"1rem",alignItems:"center",justifyContent:"space-between",children:[(0,Ae.jsxs)(ws,{item:!0,flex:0,container:!0,wrap:"nowrap",columnGap:"0.25rem",alignItems:"center",children:[(0,Ae.jsx)(zj,{}),(0,Ae.jsxs)("b",{children:[Ly(e.distance,1),"m"]})]}),(0,Ae.jsx)(ws,{item:!0,border:"1px solid black",width:"".concat(25,"rem"),height:"".concat(18.730800929047724,"rem"),children:(0,Ae.jsx)(M4e,{originalPhoto:e})})]},e.photoId)))]})},D4e=Zo()(((e,t)=>{let{isHandPointer:n}=t;return{root:{"#map-container":{cursor:n?"grab":"initial","&:active":{cursor:n?"grabbing":"initial"}}},error:{padding:"1rem",width:"50%",minWidth:"25rem"}}})),N4e="MEASUREMENT_OVERLAY",L4e="ANNOTATION_OVERLAY",V4e="14vw",F4e=e=>{const{children:t,rightPanel:r,bottomPanel:i,visibleElements:o,selectableItems:s,onStampSelected:a,onMeasurementSelected:l,onAnnotationSelected:c,onMapDataChanges:u,onMapClick:d}=e,h=(0,n.useContext)(mZe),p=(0,n.useContext)(F2e);if(!h||!p)return(0,Ae.jsx)(Ae.Fragment,{});const{inspectionCtx:{inspection:f},assetId:g,subAsset:m,selectedAnnotationId:y,stampCtx:{stamps:v,shapeSv:_},measurementCtx:b,selectedMeasurementId:x,annotationCtx:{annotations:S,polygons:w},itemsCtx:{itemsMap:E},selectedMobileView:P,externalUserCode:C,geoJSONFeatures:{set:A,all:k,selectedIds:j}}=h,{selectedTool:I}=(0,n.useContext)(a$e),{classes:G}=D4e({isHandPointer:I===IZe.HAND}),[T,M]=(0,n.useState)({isOpen:!1}),{mapData:O,setMapData:R}=p,[D,N]=(0,n.useState)({[sA.FOUNDATION]:!1,[sA.PILE]:!1,[sA.MODULE]:!1,[sA.TABLE]:!1,[L4e]:!1,[N4e]:!1}),L=(0,n.useMemo)((()=>f.signedOrthophotoUrl),[f.signedOrthophotoUrl]),{areStampsVisible:V,areMeasurementsVisible:F,areAnnotationsVisible:z}=(0,n.useMemo)((()=>({areStampsVisible:o.includes(cA.STAMPS),areMeasurementsVisible:o.includes(cA.MEASUREMENTS),areAnnotationsVisible:o.includes(cA.ANNOTATIONS)})),[o]),{areStampsSelectable:B,areMeasurementsSelectable:U,areAnnotationsSelectable:W}=(0,n.useMemo)((()=>({areStampsSelectable:s.includes(cA.STAMPS),areMeasurementsSelectable:s.includes(cA.MEASUREMENTS),areAnnotationsSelectable:s.includes(cA.ANNOTATIONS)})),[s]),H=(0,n.useMemo)((()=>x?[x]:[]),[x]),q=(0,n.useMemo)((()=>o.includes(cA.STAMPS)?Object.values(sA).map((e=>({id:e,label:"".concat(e.slice(0,1).toUpperCase()).concat(e.slice(1).toLowerCase(),"s")}))).map((e=>{let{id:t,label:n}=e;return{id:t,label:n,withOpacity:!1,isVisible:!0}})):[]),[o]),X=(0,n.useMemo)((()=>o.includes(cA.ANNOTATIONS)?[{id:L4e,label:"Annotations",withOpacity:!1,isVisible:!0}]:[]),[o]),Y=(0,n.useMemo)((()=>o.includes(cA.MEASUREMENTS)?[{id:N4e,label:"Measurements",withOpacity:!1,isVisible:!0}]:[]),[o]),K=(0,n.useMemo)((()=>[...q,...X,...Y]),[q,X,Y]),Z=(0,n.useCallback)((e=>e.type===xV.GEOJSON),[]),{isLoading:$,mapOverlaysItems:J,isOverlayVisible:Q,getOverlayOpacity:ee,overlays:te,MapOverlaysComp:ne,defaultMapProvider:re,addItemFn:ie}=hCe({assetId:g,subAssetsIds:[m.id],customOverlays:K,minZIndex:3,externalUserCode:C,except:Z}),oe=(0,n.useMemo)((()=>te.filter((e=>{let{type:t}=e;return t===xV.GEOJSON}))),[te]),se=(0,n.useMemo)((()=>{if(1===oe.length)return oe[0];const e=oe.find((e=>{let{name:t}=e;return"CAD"===t}));return e||oe[0]}),[oe]);(0,n.useEffect)((()=>{ie([...oe].map((e=>{let{id:t,name:n,defaultVisible:r}=e;return{id:t,label:n,isVisible:r}})),!0)}),[ie,oe]);const ae=(0,n.useMemo)((()=>(null!==K&&void 0!==K?K:[]).map((e=>({id:e.id,visible:Q(e.id)})))),[K,Q]);(0,n.useEffect)((()=>{ae.forEach((e=>{let{id:t,visible:n}=e;N((e=>({...e,[t]:n})))}))}),[ae]),(0,n.useEffect)((()=>{null===u||void 0===u||u(V4e,150)}),[u]),(0,n.useEffect)((()=>{var e;if(L)return;const t=(null!==(e=m.area)&&void 0!==e?e:[]).map((e=>({lat:e._latitude,lng:e._longitude}))),n=O3(t,"large");R({isReady:!0,bounds:n})}),[L,m.area]);const le=(0,n.useMemo)((()=>{if(!y)return;const e=S.find((e=>{let{id:t}=e;return t===y}));return e}),[S,y]);(0,n.useEffect)((()=>{if(!le||P!==uA.MAP)return;const e=le.coords;R({isReady:!0,bounds:O3(e,"large"),zoom:18})}),[le,P,R]);const ce=(0,n.useCallback)((e=>{R({isReady:!0,center:e,zoom:18})}),[R]),ue=(0,n.useCallback)(((e,t,n)=>{A(n)}),[A]),de=(0,n.useMemo)((()=>{const e=((e,t)=>{const n=new Map;return e.forEach((e=>{var t;let{id:r,type:i,status:o}=e;const s=null===(t=tJe[o])||void 0===t?void 0:t[i];s&&n.set(r,s)})),t.forEach((e=>{n.set(e,nJe)})),n})([...E.values()],j);return k.forEach((t=>{var n,r;const i="".concat(t.getId());if(e.has(i))return;const o=null!==(n=t.get("Layer"))&&void 0!==n?n:"",s=null===tJe||void 0===tJe||null===(r=tJe[J$e.NOT_INSTALLED])||void 0===r?void 0:r[o];s&&e.set(i,s)})),e}),[j,E,k]),he=(0,n.useCallback)((e=>{M({isOpen:!0,coord:e})}),[]),pe=(0,n.useMemo)((()=>{if(Wy())return;return[IZe.HAND,IZe.SELECT].includes(I)?[{id:"SHOW_ORIGINAL_PHOTO",text:"Show original photo here",icon:(0,Ae.jsx)(C4e.c,{fontSize:"small"}),callback:e=>he(e)}]:void 0}),[I,he]);return Eo()||L||![OC.PLANNED,OC.INSPECTED].includes(f.status)?(0,Ae.jsxs)(Ae.Fragment,{children:[!O.isReady&&(0,Ae.jsx)(Iwe,{}),(0,Ae.jsxs)(ws,{container:!0,wrap:"nowrap",visibility:O.isReady?"visible":"hidden",height:"100%",className:G.root,children:[(0,Ae.jsxs)(ws,{item:!0,flex:1,container:!0,direction:"column",wrap:"nowrap",height:"100%",children:[(0,Ae.jsx)(ws,{item:!0,flex:1,children:(0,Ae.jsxs)(U5,{withLatLngPicker:!0,provider:re,withGeolocation:P4e.y8,center:O.center,zoom:O.zoom,bounds:O.bounds,maxScaleLineSize:150,leftBar:(0,Ae.jsxs)(Ae.Fragment,{children:[(0,Ae.jsx)(yCe,{loading:$,items:J}),(0,Ae.jsx)(kwe,{})]}),rightClickMenuItems:pe,onFeaturesClick:e=>{if(!B)return;const t=v.map((e=>{let{id:t}=e;return t})),n=e.filter((e=>t.includes("".concat(e.getId()))));0!==n.length&&(null===a||void 0===a||a(n[0]))},onMapClick:d,children:[L&&(0,Ae.jsx)(twe,{zIndex:2,url:L,onGeoTiffReady:ce}),oe.filter((e=>{let{id:t}=e;return t!==se.id})).map((e=>(0,Ae.jsx)(XPe,{zIndex:3,visible:Q(e.id),opacityPercent:ee(e.id),url:e.signedUrl},e.id))),se&&(0,Ae.jsx)(XPe,{zIndex:4,visible:Q(se.id),opacityPercent:ee(se.id),url:se.signedUrl,featureSpecificStyle:de,onGeoJSONReady:ue,groupPointsInMultiPoint:!1,showPointsAtZoomLevel:15,featureTransformerFunction:A4e}),[sA.TABLE,sA.MODULE].map(((e,t)=>(0,Ae.jsx)(yPe,{visible:V&&D[e],zIndex:5+t,polygons:_[e]},e))),[sA.FOUNDATION,sA.PILE].map(((e,t)=>(0,Ae.jsx)(j5,{visible:V&&D[e],zIndex:7+t,circles:_[e]},e))),(0,Ae.jsx)(yPe,{zIndex:9,visible:z&&D[L4e],polygons:w,selectable:W,onPolygonSelected:c,onPolygonUnselected:()=>null===c||void 0===c?void 0:c(null),selectedPolygonsIds:[y]}),(0,Ae.jsx)(yPe,{zIndex:10,visible:F&&D[N4e],polygons:b.polygons,selectable:U,selectedPolygonsIds:H,onPolygonSelected:l}),(0,Ae.jsx)(S6e,{zIndex:10,visible:F&&D[N4e],lines:b.lines,selectable:U,onLineSelected:l}),e.withMinimap&&(0,Ae.jsx)(T4e,{minimapSize:V4e,orthophotoUrl:L}),ne(),t,T.isOpen&&(0,Ae.jsx)(Z5,{points:[{id:"original-photo-panel-pin",coords:T.coord,type:d3.cross,style:{stroke:"red",size:20}}]})]})}),(0,Ae.jsx)(ws,{item:!0,children:i})]}),(0,Ae.jsx)(ws,{item:!0,children:T.isOpen?(0,Ae.jsx)(R4e,{coord:T.coord,onClose:()=>M({isOpen:!1})}):r})]})]}):(0,Ae.jsx)("div",{className:G.error,children:(0,Ae.jsx)(pM,{color:"error",children:"The inspection has not been uploaded."})})},z4e=Zo()((()=>({root:{position:"absolute",top:0,left:0,width:"100%",height:"100%",..._0}}))),B4e=e=>{let{children:t}=e;const{classes:r}=z4e(),i=(0,n.useContext)(mZe);if(!i)return(0,Ae.jsx)(Ae.Fragment,{});const{commonMapProps:o}=i;return o?(0,Ae.jsx)(F4e,{...o,children:(0,Ae.jsx)(wp,{className:r.root,children:t})}):(0,Ae.jsx)(Ae.Fragment,{children:t})},U4e=Zo()((()=>({mainItemContainer:{position:"relative",width:"100%",height:"100%",overflow:"hidden"},formRef:{width:"10px",height:"10px",position:"absolute",top:"0.5rem",left:"0.5rem"}}))),W4e=e=>{const{subAsset:t,isExternalUser:r}=e,i=(0,n.useMemo)((()=>{var t;return null!==(t=e.externalUserCode)&&void 0!==t?t:""}),[e.externalUserCode]),{classes:o}=U4e(),s=(0,n.useRef)(null),a=sn(),l=s$e({inspection:e.inspection}),{inspection:c}=l,[u,d]=(0,n.useState)(),[h,p]=(0,n.useState)(vZe.LOADING),[f,g]=(0,n.useState)(null),m=o$e(r?i:c.id),y=KZe(r?i:c.id,[f]),v=r$e(r?i:c.id),_=e$e(r?i:c.id),b=E4e({inspectionId:c.id,externalUserCode:i}),[x,S]=(0,n.useState)(null),[w,E]=(0,n.useState)(null),[P,C]=(0,n.useState)({isReady:!1}),[A,k]=(0,n.useState)(IZe.HAND),[j,I]=(0,n.useState)(),[G,T]=(0,n.useState)(uA.MAP),[M,O]=(0,n.useState)([]),[R,D]=(0,n.useState)([]);(0,n.useEffect)((()=>{const e=a.pathname.split("/").pop();if((t=e)&&Object.values(OC).includes(t)){const t=wZe(e,Eo(),Wy());if(EZe(c.status,t))return void p(t)}var t;const n=wZe(c.status,Eo(),Wy());p(n)}),[c.status,a]);const N=(0,n.useCallback)((()=>{switch(h){case vZe.LOADING:return(0,Ae.jsx)(Ae.Fragment,{});case yZe.INSPECT:return(0,Ae.jsx)(S4e,{});case yZe.ANNOTATE:return(0,Ae.jsx)(P6e,{});case yZe.ANALYZE:return(0,Ae.jsx)(G6e,{});case yZe.RESULTS:return Wy()?(0,Ae.jsx)(k3e,{}):(0,Ae.jsx)(M6e,{});case vZe.RESULTS_NOT_READY:return(0,Ae.jsx)(R6e,{});default:return null}}),[h]),L={inspectionCtx:l,subAsset:t,assetId:c.asset.id,previousInspectionsCtx:m,currentPage:h,setCurrentPage:p,geoJSONFeatures:{all:M,set:O,selectedIds:R,setSelectedIds:D},annotationCtx:_,selectedAnnotationId:x,setSelectedAnnotationId:S,stampCtx:y,selectedModuleId:f,setSelectedModuleId:g,itemsCtx:b,measurementCtx:v,selectedMeasurementId:w,setSelectedMeasurementId:E,isExternalUser:null!==r&&void 0!==r&&r,externalUserCode:i,selectedMobileView:G,setSelectedMobileView:T,formRefAnchorEl:s.current,commonMapProps:u,setCommonMapProps:d},V={mapData:P,setMapData:C},F={selectedTool:A,setSelectedTool:k,openedToolCategory:j,setOpenedToolCategory:I};if(r){const e=(0,Ae.jsx)(L6e,{context:V,children:(0,Ae.jsx)(N6e,{context:F,children:(0,Ae.jsx)(B4e,{children:(0,Ae.jsx)(N,{})})})});return(0,Ae.jsx)(D6e,{context:L,children:Wy()?(0,Ae.jsx)(jZe,{children:e}):e})}return(0,Ae.jsx)(D6e,{context:L,children:(0,Ae.jsx)(jZe,{children:(0,Ae.jsx)(L6e,{context:V,children:(0,Ae.jsx)(N6e,{context:F,children:(0,Ae.jsxs)(wp,{className:o.mainItemContainer,children:[(0,Ae.jsx)("div",{className:o.formRef,ref:s}),(0,Ae.jsx)(B4e,{children:(0,Ae.jsx)(N,{})})]})})})})})},H4e=Object.create(null);H4e.open="0",H4e.close="1",H4e.ping="2",H4e.pong="3",H4e.message="4",H4e.upgrade="5",H4e.noop="6";const q4e=Object.create(null);Object.keys(H4e).forEach((e=>{q4e[H4e[e]]=e}));const X4e={type:"error",data:"parser error"},Y4e="function"===typeof Blob||"undefined"!==typeof Blob&&"[object BlobConstructor]"===Object.prototype.toString.call(Blob),K4e="function"===typeof ArrayBuffer,Z4e=e=>"function"===typeof ArrayBuffer.isView?ArrayBuffer.isView(e):e&&e.buffer instanceof ArrayBuffer,$4e=(e,t,n)=>{let{type:r,data:i}=e;return Y4e&&i instanceof Blob?t?n(i):J4e(i,n):K4e&&(i instanceof ArrayBuffer||Z4e(i))?t?n(i):J4e(new Blob([i]),n):n(H4e[r]+(i||""))},J4e=(e,t)=>{const n=new FileReader;return n.onload=function(){const e=n.result.split(",")[1];t("b"+(e||""))},n.readAsDataURL(e)};function Q4e(e){return e instanceof Uint8Array?e:e instanceof ArrayBuffer?new Uint8Array(e):new Uint8Array(e.buffer,e.byteOffset,e.byteLength)}let e5e;const t5e="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",n5e="undefined"===typeof Uint8Array?[]:new Uint8Array(256);for(let Set=0;Set<64;Set++)n5e[t5e.charCodeAt(Set)]=Set;const r5e="function"===typeof ArrayBuffer,i5e=(e,t)=>{if("string"!==typeof e)return{type:"message",data:s5e(e,t)};const n=e.charAt(0);if("b"===n)return{type:"message",data:o5e(e.substring(1),t)};return q4e[n]?e.length>1?{type:q4e[n],data:e.substring(1)}:{type:q4e[n]}:X4e},o5e=(e,t)=>{if(r5e){const n=(e=>{let t,n,r,i,o,s=.75*e.length,a=e.length,l=0;"="===e[e.length-1]&&(s--,"="===e[e.length-2]&&s--);const c=new ArrayBuffer(s),u=new Uint8Array(c);for(t=0;t<a;t+=4)n=n5e[e.charCodeAt(t)],r=n5e[e.charCodeAt(t+1)],i=n5e[e.charCodeAt(t+2)],o=n5e[e.charCodeAt(t+3)],u[l++]=n<<2|r>>4,u[l++]=(15&r)<<4|i>>2,u[l++]=(3&i)<<6|63&o;return c})(e);return s5e(n,t)}return{base64:!0,data:e}},s5e=(e,t)=>"blob"===t?e instanceof Blob?e:new Blob([e]):e instanceof ArrayBuffer?e:e.buffer,a5e=String.fromCharCode(30);function l5e(){return new TransformStream({transform(e,t){!function(e,t){Y4e&&e.data instanceof Blob?e.data.arrayBuffer().then(Q4e).then(t):K4e&&(e.data instanceof ArrayBuffer||Z4e(e.data))?t(Q4e(e.data)):$4e(e,!1,(e=>{e5e||(e5e=new TextEncoder),t(e5e.encode(e))}))}(e,(n=>{const r=n.length;let i;if(r<126)i=new Uint8Array(1),new DataView(i.buffer).setUint8(0,r);else if(r<65536){i=new Uint8Array(3);const e=new DataView(i.buffer);e.setUint8(0,126),e.setUint16(1,r)}else{i=new Uint8Array(9);const e=new DataView(i.buffer);e.setUint8(0,127),e.setBigUint64(1,BigInt(r))}e.data&&"string"!==typeof e.data&&(i[0]|=128),t.enqueue(i),t.enqueue(n)}))}})}let c5e;function u5e(e){return e.reduce(((e,t)=>e+t.length),0)}function d5e(e,t){if(e[0].length===t)return e.shift();const n=new Uint8Array(t);let r=0;for(let i=0;i<t;i++)n[i]=e[0][r++],r===e[0].length&&(e.shift(),r=0);return e.length&&r<e[0].length&&(e[0]=e[0].slice(r)),n}function h5e(e){if(e)return function(e){for(var t in h5e.prototype)e[t]=h5e.prototype[t];return e}(e)}h5e.prototype.on=h5e.prototype.addEventListener=function(e,t){return this._callbacks=this._callbacks||{},(this._callbacks["$"+e]=this._callbacks["$"+e]||[]).push(t),this},h5e.prototype.once=function(e,t){function n(){this.off(e,n),t.apply(this,arguments)}return n.fn=t,this.on(e,n),this},h5e.prototype.off=h5e.prototype.removeListener=h5e.prototype.removeAllListeners=h5e.prototype.removeEventListener=function(e,t){if(this._callbacks=this._callbacks||{},0==arguments.length)return this._callbacks={},this;var n,r=this._callbacks["$"+e];if(!r)return this;if(1==arguments.length)return delete this._callbacks["$"+e],this;for(var i=0;i<r.length;i++)if((n=r[i])===t||n.fn===t){r.splice(i,1);break}return 0===r.length&&delete this._callbacks["$"+e],this},h5e.prototype.emit=function(e){this._callbacks=this._callbacks||{};for(var t=new Array(arguments.length-1),n=this._callbacks["$"+e],r=1;r<arguments.length;r++)t[r-1]=arguments[r];if(n){r=0;for(var i=(n=n.slice(0)).length;r<i;++r)n[r].apply(this,t)}return this},h5e.prototype.emitReserved=h5e.prototype.emit,h5e.prototype.listeners=function(e){return this._callbacks=this._callbacks||{},this._callbacks["$"+e]||[]},h5e.prototype.hasListeners=function(e){return!!this.listeners(e).length};const p5e="undefined"!==typeof self?self:"undefined"!==typeof window?window:Function("return this")();function f5e(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return n.reduce(((t,n)=>(e.hasOwnProperty(n)&&(t[n]=e[n]),t)),{})}const g5e=p5e.setTimeout,m5e=p5e.clearTimeout;function y5e(e,t){t.useNativeTimers?(e.setTimeoutFn=g5e.bind(p5e),e.clearTimeoutFn=m5e.bind(p5e)):(e.setTimeoutFn=p5e.setTimeout.bind(p5e),e.clearTimeoutFn=p5e.clearTimeout.bind(p5e))}class v5e extends Error{constructor(e,t,n){super(e),this.description=t,this.context=n,this.type="TransportError"}}class _5e extends h5e{constructor(e){super(),this.writable=!1,y5e(this,e),this.opts=e,this.query=e.query,this.socket=e.socket}onError(e,t,n){return super.emitReserved("error",new v5e(e,t,n)),this}open(){return this.readyState="opening",this.doOpen(),this}close(){return"opening"!==this.readyState&&"open"!==this.readyState||(this.doClose(),this.onClose()),this}send(e){"open"===this.readyState&&this.write(e)}onOpen(){this.readyState="open",this.writable=!0,super.emitReserved("open")}onData(e){const t=i5e(e,this.socket.binaryType);this.onPacket(t)}onPacket(e){super.emitReserved("packet",e)}onClose(e){this.readyState="closed",super.emitReserved("close",e)}pause(e){}createUri(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return e+"://"+this._hostname()+this._port()+this.opts.path+this._query(t)}_hostname(){const e=this.opts.hostname;return-1===e.indexOf(":")?e:"["+e+"]"}_port(){return this.opts.port&&(this.opts.secure&&Number(443!==this.opts.port)||!this.opts.secure&&80!==Number(this.opts.port))?":"+this.opts.port:""}_query(e){const t=function(e){let t="";for(let n in e)e.hasOwnProperty(n)&&(t.length&&(t+="&"),t+=encodeURIComponent(n)+"="+encodeURIComponent(e[n]));return t}(e);return t.length?"?"+t:""}}const b5e="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz-_".split(""),x5e=64,S5e={};let w5e,E5e=0,P5e=0;function C5e(e){let t="";do{t=b5e[e%x5e]+t,e=Math.floor(e/x5e)}while(e>0);return t}function A5e(){const e=C5e(+new Date);return e!==w5e?(E5e=0,w5e=e):e+"."+C5e(E5e++)}for(;P5e<x5e;P5e++)S5e[b5e[P5e]]=P5e;let k5e=!1;try{k5e="undefined"!==typeof XMLHttpRequest&&"withCredentials"in new XMLHttpRequest}catch(Rmt){}const j5e=k5e;function I5e(e){const t=e.xdomain;try{if("undefined"!==typeof XMLHttpRequest&&(!t||j5e))return new XMLHttpRequest}catch(n){}if(!t)try{return new(p5e[["Active"].concat("Object").join("X")])("Microsoft.XMLHTTP")}catch(n){}}function G5e(){}const T5e=null!=new I5e({xdomain:!1}).responseType;class M5e extends h5e{constructor(e,t){super(),y5e(this,t),this.opts=t,this.method=t.method||"GET",this.uri=e,this.data=void 0!==t.data?t.data:null,this.create()}create(){var e;const t=f5e(this.opts,"agent","pfx","key","passphrase","cert","ca","ciphers","rejectUnauthorized","autoUnref");t.xdomain=!!this.opts.xd;const n=this.xhr=new I5e(t);try{n.open(this.method,this.uri,!0);try{if(this.opts.extraHeaders){n.setDisableHeaderCheck&&n.setDisableHeaderCheck(!0);for(let e in this.opts.extraHeaders)this.opts.extraHeaders.hasOwnProperty(e)&&n.setRequestHeader(e,this.opts.extraHeaders[e])}}catch(r){}if("POST"===this.method)try{n.setRequestHeader("Content-type","text/plain;charset=UTF-8")}catch(r){}try{n.setRequestHeader("Accept","*/*")}catch(r){}null===(e=this.opts.cookieJar)||void 0===e||e.addCookies(n),"withCredentials"in n&&(n.withCredentials=this.opts.withCredentials),this.opts.requestTimeout&&(n.timeout=this.opts.requestTimeout),n.onreadystatechange=()=>{var e;3===n.readyState&&(null===(e=this.opts.cookieJar)||void 0===e||e.parseCookies(n)),4===n.readyState&&(200===n.status||1223===n.status?this.onLoad():this.setTimeoutFn((()=>{this.onError("number"===typeof n.status?n.status:0)}),0))},n.send(this.data)}catch(r){return void this.setTimeoutFn((()=>{this.onError(r)}),0)}"undefined"!==typeof document&&(this.index=M5e.requestsCount++,M5e.requests[this.index]=this)}onError(e){this.emitReserved("error",e,this.xhr),this.cleanup(!0)}cleanup(e){if("undefined"!==typeof this.xhr&&null!==this.xhr){if(this.xhr.onreadystatechange=G5e,e)try{this.xhr.abort()}catch(t){}"undefined"!==typeof document&&delete M5e.requests[this.index],this.xhr=null}}onLoad(){const e=this.xhr.responseText;null!==e&&(this.emitReserved("data",e),this.emitReserved("success"),this.cleanup())}abort(){this.cleanup()}}if(M5e.requestsCount=0,M5e.requests={},"undefined"!==typeof document)if("function"===typeof attachEvent)attachEvent("onunload",O5e);else if("function"===typeof addEventListener){addEventListener("onpagehide"in p5e?"pagehide":"unload",O5e,!1)}function O5e(){for(let e in M5e.requests)M5e.requests.hasOwnProperty(e)&&M5e.requests[e].abort()}const R5e="function"===typeof Promise&&"function"===typeof Promise.resolve?e=>Promise.resolve().then(e):(e,t)=>t(e,0),D5e=p5e.WebSocket||p5e.MozWebSocket,N5e="undefined"!==typeof navigator&&"string"===typeof navigator.product&&"reactnative"===navigator.product.toLowerCase();const L5e={websocket:class extends _5e{constructor(e){super(e),this.supportsBinary=!e.forceBase64}get name(){return"websocket"}doOpen(){if(!this.check())return;const e=this.uri(),t=this.opts.protocols,n=N5e?{}:f5e(this.opts,"agent","perMessageDeflate","pfx","key","passphrase","cert","ca","ciphers","rejectUnauthorized","localAddress","protocolVersion","origin","maxPayload","family","checkServerIdentity");this.opts.extraHeaders&&(n.headers=this.opts.extraHeaders);try{this.ws=N5e?new D5e(e,t,n):t?new D5e(e,t):new D5e(e)}catch(Rmt){return this.emitReserved("error",Rmt)}this.ws.binaryType=this.socket.binaryType,this.addEventListeners()}addEventListeners(){this.ws.onopen=()=>{this.opts.autoUnref&&this.ws._socket.unref(),this.onOpen()},this.ws.onclose=e=>this.onClose({description:"websocket connection closed",context:e}),this.ws.onmessage=e=>this.onData(e.data),this.ws.onerror=e=>this.onError("websocket error",e)}write(e){this.writable=!1;for(let t=0;t<e.length;t++){const n=e[t],r=t===e.length-1;$4e(n,this.supportsBinary,(e=>{try{this.ws.send(e)}catch(t){}r&&R5e((()=>{this.writable=!0,this.emitReserved("drain")}),this.setTimeoutFn)}))}}doClose(){"undefined"!==typeof this.ws&&(this.ws.close(),this.ws=null)}uri(){const e=this.opts.secure?"wss":"ws",t=this.query||{};return this.opts.timestampRequests&&(t[this.opts.timestampParam]=A5e()),this.supportsBinary||(t.b64=1),this.createUri(e,t)}check(){return!!D5e}},webtransport:class extends _5e{get name(){return"webtransport"}doOpen(){"function"===typeof WebTransport&&(this.transport=new WebTransport(this.createUri("https"),this.opts.transportOptions[this.name]),this.transport.closed.then((()=>{this.onClose()})).catch((e=>{this.onError("webtransport error",e)})),this.transport.ready.then((()=>{this.transport.createBidirectionalStream().then((e=>{const t=function(e,t){c5e||(c5e=new TextDecoder);const n=[];let r=0,i=-1,o=!1;return new TransformStream({transform(s,a){for(n.push(s);;){if(0===r){if(u5e(n)<1)break;const e=d5e(n,1);o=128===(128&e[0]),i=127&e[0],r=i<126?3:126===i?1:2}else if(1===r){if(u5e(n)<2)break;const e=d5e(n,2);i=new DataView(e.buffer,e.byteOffset,e.length).getUint16(0),r=3}else if(2===r){if(u5e(n)<8)break;const e=d5e(n,8),t=new DataView(e.buffer,e.byteOffset,e.length),o=t.getUint32(0);if(o>Math.pow(2,21)-1){a.enqueue(X4e);break}i=o*Math.pow(2,32)+t.getUint32(4),r=3}else{if(u5e(n)<i)break;const e=d5e(n,i);a.enqueue(i5e(o?e:c5e.decode(e),t)),r=0}if(0===i||i>e){a.enqueue(X4e);break}}}})}(Number.MAX_SAFE_INTEGER,this.socket.binaryType),n=e.readable.pipeThrough(t).getReader(),r=l5e();r.readable.pipeTo(e.writable),this.writer=r.writable.getWriter();const i=()=>{n.read().then((e=>{let{done:t,value:n}=e;t||(this.onPacket(n),i())})).catch((e=>{}))};i();const o={type:"open"};this.query.sid&&(o.data='{"sid":"'.concat(this.query.sid,'"}')),this.writer.write(o).then((()=>this.onOpen()))}))})))}write(e){this.writable=!1;for(let t=0;t<e.length;t++){const n=e[t],r=t===e.length-1;this.writer.write(n).then((()=>{r&&R5e((()=>{this.writable=!0,this.emitReserved("drain")}),this.setTimeoutFn)}))}}doClose(){var e;null===(e=this.transport)||void 0===e||e.close()}},polling:class extends _5e{constructor(e){if(super(e),this.polling=!1,"undefined"!==typeof location){const t="https:"===location.protocol;let n=location.port;n||(n=t?"443":"80"),this.xd="undefined"!==typeof location&&e.hostname!==location.hostname||n!==e.port}const t=e&&e.forceBase64;this.supportsBinary=T5e&&!t,this.opts.withCredentials&&(this.cookieJar=void 0)}get name(){return"polling"}doOpen(){this.poll()}pause(e){this.readyState="pausing";const t=()=>{this.readyState="paused",e()};if(this.polling||!this.writable){let e=0;this.polling&&(e++,this.once("pollComplete",(function(){--e||t()}))),this.writable||(e++,this.once("drain",(function(){--e||t()})))}else t()}poll(){this.polling=!0,this.doPoll(),this.emitReserved("poll")}onData(e){((e,t)=>{const n=e.split(a5e),r=[];for(let i=0;i<n.length;i++){const e=i5e(n[i],t);if(r.push(e),"error"===e.type)break}return r})(e,this.socket.binaryType).forEach((e=>{if("opening"===this.readyState&&"open"===e.type&&this.onOpen(),"close"===e.type)return this.onClose({description:"transport closed by the server"}),!1;this.onPacket(e)})),"closed"!==this.readyState&&(this.polling=!1,this.emitReserved("pollComplete"),"open"===this.readyState&&this.poll())}doClose(){const e=()=>{this.write([{type:"close"}])};"open"===this.readyState?e():this.once("open",e)}write(e){this.writable=!1,((e,t)=>{const n=e.length,r=new Array(n);let i=0;e.forEach(((e,o)=>{$4e(e,!1,(e=>{r[o]=e,++i===n&&t(r.join(a5e))}))}))})(e,(e=>{this.doWrite(e,(()=>{this.writable=!0,this.emitReserved("drain")}))}))}uri(){const e=this.opts.secure?"https":"http",t=this.query||{};return!1!==this.opts.timestampRequests&&(t[this.opts.timestampParam]=A5e()),this.supportsBinary||t.sid||(t.b64=1),this.createUri(e,t)}request(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return Object.assign(e,{xd:this.xd,cookieJar:this.cookieJar},this.opts),new M5e(this.uri(),e)}doWrite(e,t){const n=this.request({method:"POST",data:e});n.on("success",t),n.on("error",((e,t)=>{this.onError("xhr post error",e,t)}))}doPoll(){const e=this.request();e.on("data",this.onData.bind(this)),e.on("error",((e,t)=>{this.onError("xhr poll error",e,t)})),this.pollXhr=e}}},V5e=/^(?:(?![^:@\/?#]+:[^:@\/]*@)(http|https|ws|wss):\/\/)?((?:(([^:@\/?#]*)(?::([^:@\/?#]*))?)?@)?((?:[a-f0-9]{0,4}:){2,7}[a-f0-9]{0,4}|[^:\/?#]*)(?::(\d*))?)(((\/(?:[^?#](?![^?#\/]*\.[^?#\/.]+(?:[?#]|$)))*\/?)?([^?#\/]*))(?:\?([^#]*))?(?:#(.*))?)/,F5e=["source","protocol","authority","userInfo","user","password","host","port","relative","path","directory","file","query","anchor"];function z5e(e){if(e.length>2e3)throw"URI too long";const t=e,n=e.indexOf("["),r=e.indexOf("]");-1!=n&&-1!=r&&(e=e.substring(0,n)+e.substring(n,r).replace(/:/g,";")+e.substring(r,e.length));let i=V5e.exec(e||""),o={},s=14;for(;s--;)o[F5e[s]]=i[s]||"";return-1!=n&&-1!=r&&(o.source=t,o.host=o.host.substring(1,o.host.length-1).replace(/;/g,":"),o.authority=o.authority.replace("[","").replace("]","").replace(/;/g,":"),o.ipv6uri=!0),o.pathNames=function(e,t){const n=/\/{2,9}/g,r=t.replace(n,"/").split("/");"/"!=t.slice(0,1)&&0!==t.length||r.splice(0,1);"/"==t.slice(-1)&&r.splice(r.length-1,1);return r}(0,o.path),o.queryKey=function(e,t){const n={};return t.replace(/(?:^|&)([^&=]*)=?([^&]*)/g,(function(e,t,r){t&&(n[t]=r)})),n}(0,o.query),o}class B5e extends h5e{constructor(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};super(),this.binaryType="arraybuffer",this.writeBuffer=[],e&&"object"===typeof e&&(t=e,e=null),e?(e=z5e(e),t.hostname=e.host,t.secure="https"===e.protocol||"wss"===e.protocol,t.port=e.port,e.query&&(t.query=e.query)):t.host&&(t.hostname=z5e(t.host).host),y5e(this,t),this.secure=null!=t.secure?t.secure:"undefined"!==typeof location&&"https:"===location.protocol,t.hostname&&!t.port&&(t.port=this.secure?"443":"80"),this.hostname=t.hostname||("undefined"!==typeof location?location.hostname:"localhost"),this.port=t.port||("undefined"!==typeof location&&location.port?location.port:this.secure?"443":"80"),this.transports=t.transports||["polling","websocket","webtransport"],this.writeBuffer=[],this.prevBufferLen=0,this.opts=Object.assign({path:"/engine.io",agent:!1,withCredentials:!1,upgrade:!0,timestampParam:"t",rememberUpgrade:!1,addTrailingSlash:!0,rejectUnauthorized:!0,perMessageDeflate:{threshold:1024},transportOptions:{},closeOnBeforeunload:!1},t),this.opts.path=this.opts.path.replace(/\/$/,"")+(this.opts.addTrailingSlash?"/":""),"string"===typeof this.opts.query&&(this.opts.query=function(e){let t={},n=e.split("&");for(let r=0,i=n.length;r<i;r++){let e=n[r].split("=");t[decodeURIComponent(e[0])]=decodeURIComponent(e[1])}return t}(this.opts.query)),this.id=null,this.upgrades=null,this.pingInterval=null,this.pingTimeout=null,this.pingTimeoutTimer=null,"function"===typeof addEventListener&&(this.opts.closeOnBeforeunload&&(this.beforeunloadEventListener=()=>{this.transport&&(this.transport.removeAllListeners(),this.transport.close())},addEventListener("beforeunload",this.beforeunloadEventListener,!1)),"localhost"!==this.hostname&&(this.offlineEventListener=()=>{this.onClose("transport close",{description:"network connection lost"})},addEventListener("offline",this.offlineEventListener,!1))),this.open()}createTransport(e){const t=Object.assign({},this.opts.query);t.EIO=4,t.transport=e,this.id&&(t.sid=this.id);const n=Object.assign({},this.opts,{query:t,socket:this,hostname:this.hostname,secure:this.secure,port:this.port},this.opts.transportOptions[e]);return new L5e[e](n)}open(){let e;if(this.opts.rememberUpgrade&&B5e.priorWebsocketSuccess&&-1!==this.transports.indexOf("websocket"))e="websocket";else{if(0===this.transports.length)return void this.setTimeoutFn((()=>{this.emitReserved("error","No transports available")}),0);e=this.transports[0]}this.readyState="opening";try{e=this.createTransport(e)}catch(t){return this.transports.shift(),void this.open()}e.open(),this.setTransport(e)}setTransport(e){this.transport&&this.transport.removeAllListeners(),this.transport=e,e.on("drain",this.onDrain.bind(this)).on("packet",this.onPacket.bind(this)).on("error",this.onError.bind(this)).on("close",(e=>this.onClose("transport close",e)))}probe(e){let t=this.createTransport(e),n=!1;B5e.priorWebsocketSuccess=!1;const r=()=>{n||(t.send([{type:"ping",data:"probe"}]),t.once("packet",(e=>{if(!n)if("pong"===e.type&&"probe"===e.data){if(this.upgrading=!0,this.emitReserved("upgrading",t),!t)return;B5e.priorWebsocketSuccess="websocket"===t.name,this.transport.pause((()=>{n||"closed"!==this.readyState&&(c(),this.setTransport(t),t.send([{type:"upgrade"}]),this.emitReserved("upgrade",t),t=null,this.upgrading=!1,this.flush())}))}else{const e=new Error("probe error");e.transport=t.name,this.emitReserved("upgradeError",e)}})))};function i(){n||(n=!0,c(),t.close(),t=null)}const o=e=>{const n=new Error("probe error: "+e);n.transport=t.name,i(),this.emitReserved("upgradeError",n)};function s(){o("transport closed")}function a(){o("socket closed")}function l(e){t&&e.name!==t.name&&i()}const c=()=>{t.removeListener("open",r),t.removeListener("error",o),t.removeListener("close",s),this.off("close",a),this.off("upgrading",l)};t.once("open",r),t.once("error",o),t.once("close",s),this.once("close",a),this.once("upgrading",l),-1!==this.upgrades.indexOf("webtransport")&&"webtransport"!==e?this.setTimeoutFn((()=>{n||t.open()}),200):t.open()}onOpen(){if(this.readyState="open",B5e.priorWebsocketSuccess="websocket"===this.transport.name,this.emitReserved("open"),this.flush(),"open"===this.readyState&&this.opts.upgrade){let e=0;const t=this.upgrades.length;for(;e<t;e++)this.probe(this.upgrades[e])}}onPacket(e){if("opening"===this.readyState||"open"===this.readyState||"closing"===this.readyState)switch(this.emitReserved("packet",e),this.emitReserved("heartbeat"),this.resetPingTimeout(),e.type){case"open":this.onHandshake(JSON.parse(e.data));break;case"ping":this.sendPacket("pong"),this.emitReserved("ping"),this.emitReserved("pong");break;case"error":const t=new Error("server error");t.code=e.data,this.onError(t);break;case"message":this.emitReserved("data",e.data),this.emitReserved("message",e.data)}}onHandshake(e){this.emitReserved("handshake",e),this.id=e.sid,this.transport.query.sid=e.sid,this.upgrades=this.filterUpgrades(e.upgrades),this.pingInterval=e.pingInterval,this.pingTimeout=e.pingTimeout,this.maxPayload=e.maxPayload,this.onOpen(),"closed"!==this.readyState&&this.resetPingTimeout()}resetPingTimeout(){this.clearTimeoutFn(this.pingTimeoutTimer),this.pingTimeoutTimer=this.setTimeoutFn((()=>{this.onClose("ping timeout")}),this.pingInterval+this.pingTimeout),this.opts.autoUnref&&this.pingTimeoutTimer.unref()}onDrain(){this.writeBuffer.splice(0,this.prevBufferLen),this.prevBufferLen=0,0===this.writeBuffer.length?this.emitReserved("drain"):this.flush()}flush(){if("closed"!==this.readyState&&this.transport.writable&&!this.upgrading&&this.writeBuffer.length){const e=this.getWritablePackets();this.transport.send(e),this.prevBufferLen=e.length,this.emitReserved("flush")}}getWritablePackets(){if(!(this.maxPayload&&"polling"===this.transport.name&&this.writeBuffer.length>1))return this.writeBuffer;let e=1;for(let n=0;n<this.writeBuffer.length;n++){const r=this.writeBuffer[n].data;if(r&&(e+="string"===typeof(t=r)?function(e){let t=0,n=0;for(let r=0,i=e.length;r<i;r++)t=e.charCodeAt(r),t<128?n+=1:t<2048?n+=2:t<55296||t>=57344?n+=3:(r++,n+=4);return n}(t):Math.ceil(1.33*(t.byteLength||t.size))),n>0&&e>this.maxPayload)return this.writeBuffer.slice(0,n);e+=2}var t;return this.writeBuffer}write(e,t,n){return this.sendPacket("message",e,t,n),this}send(e,t,n){return this.sendPacket("message",e,t,n),this}sendPacket(e,t,n,r){if("function"===typeof t&&(r=t,t=void 0),"function"===typeof n&&(r=n,n=null),"closing"===this.readyState||"closed"===this.readyState)return;(n=n||{}).compress=!1!==n.compress;const i={type:e,data:t,options:n};this.emitReserved("packetCreate",i),this.writeBuffer.push(i),r&&this.once("flush",r),this.flush()}close(){const e=()=>{this.onClose("forced close"),this.transport.close()},t=()=>{this.off("upgrade",t),this.off("upgradeError",t),e()},n=()=>{this.once("upgrade",t),this.once("upgradeError",t)};return"opening"!==this.readyState&&"open"!==this.readyState||(this.readyState="closing",this.writeBuffer.length?this.once("drain",(()=>{this.upgrading?n():e()})):this.upgrading?n():e()),this}onError(e){B5e.priorWebsocketSuccess=!1,this.emitReserved("error",e),this.onClose("transport error",e)}onClose(e,t){"opening"!==this.readyState&&"open"!==this.readyState&&"closing"!==this.readyState||(this.clearTimeoutFn(this.pingTimeoutTimer),this.transport.removeAllListeners("close"),this.transport.close(),this.transport.removeAllListeners(),"function"===typeof removeEventListener&&(removeEventListener("beforeunload",this.beforeunloadEventListener,!1),removeEventListener("offline",this.offlineEventListener,!1)),this.readyState="closed",this.id=null,this.emitReserved("close",e,t),this.writeBuffer=[],this.prevBufferLen=0)}filterUpgrades(e){const t=[];let n=0;const r=e.length;for(;n<r;n++)~this.transports.indexOf(e[n])&&t.push(e[n]);return t}}B5e.protocol=4;B5e.protocol;const U5e="function"===typeof ArrayBuffer,W5e=e=>"function"===typeof ArrayBuffer.isView?ArrayBuffer.isView(e):e.buffer instanceof ArrayBuffer,H5e=Object.prototype.toString,q5e="function"===typeof Blob||"undefined"!==typeof Blob&&"[object BlobConstructor]"===H5e.call(Blob),X5e="function"===typeof File||"undefined"!==typeof File&&"[object FileConstructor]"===H5e.call(File);function Y5e(e){return U5e&&(e instanceof ArrayBuffer||W5e(e))||q5e&&e instanceof Blob||X5e&&e instanceof File}function K5e(e,t){if(!e||"object"!==typeof e)return!1;if(Array.isArray(e)){for(let t=0,n=e.length;t<n;t++)if(K5e(e[t]))return!0;return!1}if(Y5e(e))return!0;if(e.toJSON&&"function"===typeof e.toJSON&&1===arguments.length)return K5e(e.toJSON(),!0);for(const n in e)if(Object.prototype.hasOwnProperty.call(e,n)&&K5e(e[n]))return!0;return!1}function Z5e(e){const t=[],n=e.data,r=e;return r.data=$5e(n,t),r.attachments=t.length,{packet:r,buffers:t}}function $5e(e,t){if(!e)return e;if(Y5e(e)){const n={_placeholder:!0,num:t.length};return t.push(e),n}if(Array.isArray(e)){const n=new Array(e.length);for(let r=0;r<e.length;r++)n[r]=$5e(e[r],t);return n}if("object"===typeof e&&!(e instanceof Date)){const n={};for(const r in e)Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=$5e(e[r],t));return n}return e}function J5e(e,t){return e.data=Q5e(e.data,t),delete e.attachments,e}function Q5e(e,t){if(!e)return e;if(e&&!0===e._placeholder){if("number"===typeof e.num&&e.num>=0&&e.num<t.length)return t[e.num];throw new Error("illegal attachments")}if(Array.isArray(e))for(let n=0;n<e.length;n++)e[n]=Q5e(e[n],t);else if("object"===typeof e)for(const n in e)Object.prototype.hasOwnProperty.call(e,n)&&(e[n]=Q5e(e[n],t));return e}const e8e=["connect","connect_error","disconnect","disconnecting","newListener","removeListener"],t8e=5;var n8e;!function(e){e[e.CONNECT=0]="CONNECT",e[e.DISCONNECT=1]="DISCONNECT",e[e.EVENT=2]="EVENT",e[e.ACK=3]="ACK",e[e.CONNECT_ERROR=4]="CONNECT_ERROR",e[e.BINARY_EVENT=5]="BINARY_EVENT",e[e.BINARY_ACK=6]="BINARY_ACK"}(n8e||(n8e={}));class r8e{constructor(e){this.replacer=e}encode(e){return e.type!==n8e.EVENT&&e.type!==n8e.ACK||!K5e(e)?[this.encodeAsString(e)]:this.encodeAsBinary({type:e.type===n8e.EVENT?n8e.BINARY_EVENT:n8e.BINARY_ACK,nsp:e.nsp,data:e.data,id:e.id})}encodeAsString(e){let t=""+e.type;return e.type!==n8e.BINARY_EVENT&&e.type!==n8e.BINARY_ACK||(t+=e.attachments+"-"),e.nsp&&"/"!==e.nsp&&(t+=e.nsp+","),null!=e.id&&(t+=e.id),null!=e.data&&(t+=JSON.stringify(e.data,this.replacer)),t}encodeAsBinary(e){const t=Z5e(e),n=this.encodeAsString(t.packet),r=t.buffers;return r.unshift(n),r}}function i8e(e){return"[object Object]"===Object.prototype.toString.call(e)}class o8e extends h5e{constructor(e){super(),this.reviver=e}add(e){let t;if("string"===typeof e){if(this.reconstructor)throw new Error("got plaintext data when reconstructing a packet");t=this.decodeString(e);const n=t.type===n8e.BINARY_EVENT;n||t.type===n8e.BINARY_ACK?(t.type=n?n8e.EVENT:n8e.ACK,this.reconstructor=new s8e(t),0===t.attachments&&super.emitReserved("decoded",t)):super.emitReserved("decoded",t)}else{if(!Y5e(e)&&!e.base64)throw new Error("Unknown type: "+e);if(!this.reconstructor)throw new Error("got binary data when not reconstructing a packet");t=this.reconstructor.takeBinaryData(e),t&&(this.reconstructor=null,super.emitReserved("decoded",t))}}decodeString(e){let t=0;const n={type:Number(e.charAt(0))};if(void 0===n8e[n.type])throw new Error("unknown packet type "+n.type);if(n.type===n8e.BINARY_EVENT||n.type===n8e.BINARY_ACK){const r=t+1;for(;"-"!==e.charAt(++t)&&t!=e.length;);const i=e.substring(r,t);if(i!=Number(i)||"-"!==e.charAt(t))throw new Error("Illegal attachments");n.attachments=Number(i)}if("/"===e.charAt(t+1)){const r=t+1;for(;++t;){if(","===e.charAt(t))break;if(t===e.length)break}n.nsp=e.substring(r,t)}else n.nsp="/";const r=e.charAt(t+1);if(""!==r&&Number(r)==r){const r=t+1;for(;++t;){const n=e.charAt(t);if(null==n||Number(n)!=n){--t;break}if(t===e.length)break}n.id=Number(e.substring(r,t+1))}if(e.charAt(++t)){const r=this.tryParse(e.substr(t));if(!o8e.isPayloadValid(n.type,r))throw new Error("invalid payload");n.data=r}return n}tryParse(e){try{return JSON.parse(e,this.reviver)}catch(t){return!1}}static isPayloadValid(e,t){switch(e){case n8e.CONNECT:return i8e(t);case n8e.DISCONNECT:return void 0===t;case n8e.CONNECT_ERROR:return"string"===typeof t||i8e(t);case n8e.EVENT:case n8e.BINARY_EVENT:return Array.isArray(t)&&("number"===typeof t[0]||"string"===typeof t[0]&&-1===e8e.indexOf(t[0]));case n8e.ACK:case n8e.BINARY_ACK:return Array.isArray(t)}}destroy(){this.reconstructor&&(this.reconstructor.finishedReconstruction(),this.reconstructor=null)}}class s8e{constructor(e){this.packet=e,this.buffers=[],this.reconPack=e}takeBinaryData(e){if(this.buffers.push(e),this.buffers.length===this.reconPack.attachments){const e=J5e(this.reconPack,this.buffers);return this.finishedReconstruction(),e}return null}finishedReconstruction(){this.reconPack=null,this.buffers=[]}}function a8e(e,t,n){return e.on(t,n),function(){e.off(t,n)}}const l8e=Object.freeze({connect:1,connect_error:1,disconnect:1,disconnecting:1,newListener:1,removeListener:1});class c8e extends h5e{constructor(e,t,n){super(),this.connected=!1,this.recovered=!1,this.receiveBuffer=[],this.sendBuffer=[],this._queue=[],this._queueSeq=0,this.ids=0,this.acks={},this.flags={},this.io=e,this.nsp=t,n&&n.auth&&(this.auth=n.auth),this._opts=Object.assign({},n),this.io._autoConnect&&this.open()}get disconnected(){return!this.connected}subEvents(){if(this.subs)return;const e=this.io;this.subs=[a8e(e,"open",this.onopen.bind(this)),a8e(e,"packet",this.onpacket.bind(this)),a8e(e,"error",this.onerror.bind(this)),a8e(e,"close",this.onclose.bind(this))]}get active(){return!!this.subs}connect(){return this.connected||(this.subEvents(),this.io._reconnecting||this.io.open(),"open"===this.io._readyState&&this.onopen()),this}open(){return this.connect()}send(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return t.unshift("message"),this.emit.apply(this,t),this}emit(e){if(l8e.hasOwnProperty(e))throw new Error('"'+e.toString()+'" is a reserved event name');for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];if(n.unshift(e),this._opts.retries&&!this.flags.fromQueue&&!this.flags.volatile)return this._addToQueue(n),this;const i={type:n8e.EVENT,data:n,options:{}};if(i.options.compress=!1!==this.flags.compress,"function"===typeof n[n.length-1]){const e=this.ids++,t=n.pop();this._registerAckCallback(e,t),i.id=e}const o=this.io.engine&&this.io.engine.transport&&this.io.engine.transport.writable;return this.flags.volatile&&(!o||!this.connected)||(this.connected?(this.notifyOutgoingListeners(i),this.packet(i)):this.sendBuffer.push(i)),this.flags={},this}_registerAckCallback(e,t){var n,r=this;const i=null!==(n=this.flags.timeout)&&void 0!==n?n:this._opts.ackTimeout;if(void 0===i)return void(this.acks[e]=t);const o=this.io.setTimeoutFn((()=>{delete this.acks[e];for(let t=0;t<this.sendBuffer.length;t++)this.sendBuffer[t].id===e&&this.sendBuffer.splice(t,1);t.call(this,new Error("operation has timed out"))}),i);this.acks[e]=function(){r.io.clearTimeoutFn(o);for(var e=arguments.length,n=new Array(e),i=0;i<e;i++)n[i]=arguments[i];t.apply(r,[null,...n])}}emitWithAck(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];const i=void 0!==this.flags.timeout||void 0!==this._opts.ackTimeout;return new Promise(((t,r)=>{n.push(((e,n)=>i?e?r(e):t(n):t(e))),this.emit(e,...n)}))}_addToQueue(e){var t=this;let n;"function"===typeof e[e.length-1]&&(n=e.pop());const r={id:this._queueSeq++,tryCount:0,pending:!1,args:e,flags:Object.assign({fromQueue:!0},this.flags)};e.push((function(e){if(r!==t._queue[0])return;if(null!==e)r.tryCount>t._opts.retries&&(t._queue.shift(),n&&n(e));else if(t._queue.shift(),n){for(var i=arguments.length,o=new Array(i>1?i-1:0),s=1;s<i;s++)o[s-1]=arguments[s];n(null,...o)}return r.pending=!1,t._drainQueue()})),this._queue.push(r),this._drainQueue()}_drainQueue(){let e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];if(!this.connected||0===this._queue.length)return;const t=this._queue[0];t.pending&&!e||(t.pending=!0,t.tryCount++,this.flags=t.flags,this.emit.apply(this,t.args))}packet(e){e.nsp=this.nsp,this.io._packet(e)}onopen(){"function"==typeof this.auth?this.auth((e=>{this._sendConnectPacket(e)})):this._sendConnectPacket(this.auth)}_sendConnectPacket(e){this.packet({type:n8e.CONNECT,data:this._pid?Object.assign({pid:this._pid,offset:this._lastOffset},e):e})}onerror(e){this.connected||this.emitReserved("connect_error",e)}onclose(e,t){this.connected=!1,delete this.id,this.emitReserved("disconnect",e,t)}onpacket(e){if(e.nsp===this.nsp)switch(e.type){case n8e.CONNECT:e.data&&e.data.sid?this.onconnect(e.data.sid,e.data.pid):this.emitReserved("connect_error",new Error("It seems you are trying to reach a Socket.IO server in v2.x with a v3.x client, but they are not compatible (more information here: https://socket.io/docs/v3/migrating-from-2-x-to-3-0/)"));break;case n8e.EVENT:case n8e.BINARY_EVENT:this.onevent(e);break;case n8e.ACK:case n8e.BINARY_ACK:this.onack(e);break;case n8e.DISCONNECT:this.ondisconnect();break;case n8e.CONNECT_ERROR:this.destroy();const t=new Error(e.data.message);t.data=e.data.data,this.emitReserved("connect_error",t)}}onevent(e){const t=e.data||[];null!=e.id&&t.push(this.ack(e.id)),this.connected?this.emitEvent(t):this.receiveBuffer.push(Object.freeze(t))}emitEvent(e){if(this._anyListeners&&this._anyListeners.length){const t=this._anyListeners.slice();for(const n of t)n.apply(this,e)}super.emit.apply(this,e),this._pid&&e.length&&"string"===typeof e[e.length-1]&&(this._lastOffset=e[e.length-1])}ack(e){const t=this;let n=!1;return function(){if(!n){n=!0;for(var r=arguments.length,i=new Array(r),o=0;o<r;o++)i[o]=arguments[o];t.packet({type:n8e.ACK,id:e,data:i})}}}onack(e){const t=this.acks[e.id];"function"===typeof t&&(t.apply(this,e.data),delete this.acks[e.id])}onconnect(e,t){this.id=e,this.recovered=t&&this._pid===t,this._pid=t,this.connected=!0,this.emitBuffered(),this.emitReserved("connect"),this._drainQueue(!0)}emitBuffered(){this.receiveBuffer.forEach((e=>this.emitEvent(e))),this.receiveBuffer=[],this.sendBuffer.forEach((e=>{this.notifyOutgoingListeners(e),this.packet(e)})),this.sendBuffer=[]}ondisconnect(){this.destroy(),this.onclose("io server disconnect")}destroy(){this.subs&&(this.subs.forEach((e=>e())),this.subs=void 0),this.io._destroy(this)}disconnect(){return this.connected&&this.packet({type:n8e.DISCONNECT}),this.destroy(),this.connected&&this.onclose("io client disconnect"),this}close(){return this.disconnect()}compress(e){return this.flags.compress=e,this}get volatile(){return this.flags.volatile=!0,this}timeout(e){return this.flags.timeout=e,this}onAny(e){return this._anyListeners=this._anyListeners||[],this._anyListeners.push(e),this}prependAny(e){return this._anyListeners=this._anyListeners||[],this._anyListeners.unshift(e),this}offAny(e){if(!this._anyListeners)return this;if(e){const t=this._anyListeners;for(let n=0;n<t.length;n++)if(e===t[n])return t.splice(n,1),this}else this._anyListeners=[];return this}listenersAny(){return this._anyListeners||[]}onAnyOutgoing(e){return this._anyOutgoingListeners=this._anyOutgoingListeners||[],this._anyOutgoingListeners.push(e),this}prependAnyOutgoing(e){return this._anyOutgoingListeners=this._anyOutgoingListeners||[],this._anyOutgoingListeners.unshift(e),this}offAnyOutgoing(e){if(!this._anyOutgoingListeners)return this;if(e){const t=this._anyOutgoingListeners;for(let n=0;n<t.length;n++)if(e===t[n])return t.splice(n,1),this}else this._anyOutgoingListeners=[];return this}listenersAnyOutgoing(){return this._anyOutgoingListeners||[]}notifyOutgoingListeners(e){if(this._anyOutgoingListeners&&this._anyOutgoingListeners.length){const t=this._anyOutgoingListeners.slice();for(const n of t)n.apply(this,e.data)}}}function u8e(e){e=e||{},this.ms=e.min||100,this.max=e.max||1e4,this.factor=e.factor||2,this.jitter=e.jitter>0&&e.jitter<=1?e.jitter:0,this.attempts=0}u8e.prototype.duration=function(){var e=this.ms*Math.pow(this.factor,this.attempts++);if(this.jitter){var t=Math.random(),n=Math.floor(t*this.jitter*e);e=0==(1&Math.floor(10*t))?e-n:e+n}return 0|Math.min(e,this.max)},u8e.prototype.reset=function(){this.attempts=0},u8e.prototype.setMin=function(e){this.ms=e},u8e.prototype.setMax=function(e){this.max=e},u8e.prototype.setJitter=function(e){this.jitter=e};class d8e extends h5e{constructor(e,n){var r;super(),this.nsps={},this.subs=[],e&&"object"===typeof e&&(n=e,e=void 0),(n=n||{}).path=n.path||"/socket.io",this.opts=n,y5e(this,n),this.reconnection(!1!==n.reconnection),this.reconnectionAttempts(n.reconnectionAttempts||1/0),this.reconnectionDelay(n.reconnectionDelay||1e3),this.reconnectionDelayMax(n.reconnectionDelayMax||5e3),this.randomizationFactor(null!==(r=n.randomizationFactor)&&void 0!==r?r:.5),this.backoff=new u8e({min:this.reconnectionDelay(),max:this.reconnectionDelayMax(),jitter:this.randomizationFactor()}),this.timeout(null==n.timeout?2e4:n.timeout),this._readyState="closed",this.uri=e;const i=n.parser||t;this.encoder=new i.Encoder,this.decoder=new i.Decoder,this._autoConnect=!1!==n.autoConnect,this._autoConnect&&this.open()}reconnection(e){return arguments.length?(this._reconnection=!!e,this):this._reconnection}reconnectionAttempts(e){return void 0===e?this._reconnectionAttempts:(this._reconnectionAttempts=e,this)}reconnectionDelay(e){var t;return void 0===e?this._reconnectionDelay:(this._reconnectionDelay=e,null===(t=this.backoff)||void 0===t||t.setMin(e),this)}randomizationFactor(e){var t;return void 0===e?this._randomizationFactor:(this._randomizationFactor=e,null===(t=this.backoff)||void 0===t||t.setJitter(e),this)}reconnectionDelayMax(e){var t;return void 0===e?this._reconnectionDelayMax:(this._reconnectionDelayMax=e,null===(t=this.backoff)||void 0===t||t.setMax(e),this)}timeout(e){return arguments.length?(this._timeout=e,this):this._timeout}maybeReconnectOnOpen(){!this._reconnecting&&this._reconnection&&0===this.backoff.attempts&&this.reconnect()}open(e){if(~this._readyState.indexOf("open"))return this;this.engine=new B5e(this.uri,this.opts);const t=this.engine,n=this;this._readyState="opening",this.skipReconnect=!1;const r=a8e(t,"open",(function(){n.onopen(),e&&e()})),i=t=>{this.cleanup(),this._readyState="closed",this.emitReserved("error",t),e?e(t):this.maybeReconnectOnOpen()},o=a8e(t,"error",i);if(!1!==this._timeout){const e=this._timeout,n=this.setTimeoutFn((()=>{r(),i(new Error("timeout")),t.close()}),e);this.opts.autoUnref&&n.unref(),this.subs.push((()=>{this.clearTimeoutFn(n)}))}return this.subs.push(r),this.subs.push(o),this}connect(e){return this.open(e)}onopen(){this.cleanup(),this._readyState="open",this.emitReserved("open");const e=this.engine;this.subs.push(a8e(e,"ping",this.onping.bind(this)),a8e(e,"data",this.ondata.bind(this)),a8e(e,"error",this.onerror.bind(this)),a8e(e,"close",this.onclose.bind(this)),a8e(this.decoder,"decoded",this.ondecoded.bind(this)))}onping(){this.emitReserved("ping")}ondata(e){try{this.decoder.add(e)}catch(t){this.onclose("parse error",t)}}ondecoded(e){R5e((()=>{this.emitReserved("packet",e)}),this.setTimeoutFn)}onerror(e){this.emitReserved("error",e)}socket(e,t){let n=this.nsps[e];return n?this._autoConnect&&!n.active&&n.connect():(n=new c8e(this,e,t),this.nsps[e]=n),n}_destroy(e){const t=Object.keys(this.nsps);for(const n of t){if(this.nsps[n].active)return}this._close()}_packet(e){const t=this.encoder.encode(e);for(let n=0;n<t.length;n++)this.engine.write(t[n],e.options)}cleanup(){this.subs.forEach((e=>e())),this.subs.length=0,this.decoder.destroy()}_close(){this.skipReconnect=!0,this._reconnecting=!1,this.onclose("forced close"),this.engine&&this.engine.close()}disconnect(){return this._close()}onclose(e,t){this.cleanup(),this.backoff.reset(),this._readyState="closed",this.emitReserved("close",e,t),this._reconnection&&!this.skipReconnect&&this.reconnect()}reconnect(){if(this._reconnecting||this.skipReconnect)return this;const e=this;if(this.backoff.attempts>=this._reconnectionAttempts)this.backoff.reset(),this.emitReserved("reconnect_failed"),this._reconnecting=!1;else{const t=this.backoff.duration();this._reconnecting=!0;const n=this.setTimeoutFn((()=>{e.skipReconnect||(this.emitReserved("reconnect_attempt",e.backoff.attempts),e.skipReconnect||e.open((t=>{t?(e._reconnecting=!1,e.reconnect(),this.emitReserved("reconnect_error",t)):e.onreconnect()})))}),t);this.opts.autoUnref&&n.unref(),this.subs.push((()=>{this.clearTimeoutFn(n)}))}}onreconnect(){const e=this.backoff.attempts;this._reconnecting=!1,this.backoff.reset(),this.emitReserved("reconnect",e)}}const h8e={};function p8e(e,t){"object"===typeof e&&(t=e,e=void 0);const n=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n=arguments.length>2?arguments[2]:void 0,r=e;n=n||"undefined"!==typeof location&&location,null==e&&(e=n.protocol+"//"+n.host),"string"===typeof e&&("/"===e.charAt(0)&&(e="/"===e.charAt(1)?n.protocol+e:n.host+e),/^(https?|wss?):\/\//.test(e)||(e="undefined"!==typeof n?n.protocol+"//"+e:"https://"+e),r=z5e(e)),r.port||(/^(http|ws)$/.test(r.protocol)?r.port="80":/^(http|ws)s$/.test(r.protocol)&&(r.port="443")),r.path=r.path||"/";const i=-1!==r.host.indexOf(":")?"["+r.host+"]":r.host;return r.id=r.protocol+"://"+i+":"+r.port+t,r.href=r.protocol+"://"+i+(n&&n.port===r.port?"":":"+r.port),r}(e,(t=t||{}).path||"/socket.io"),r=n.source,i=n.id,o=n.path,s=h8e[i]&&o in h8e[i].nsps;let a;return t.forceNew||t["force new connection"]||!1===t.multiplex||s?a=new d8e(r,t):(h8e[i]||(h8e[i]=new d8e(r,t)),a=h8e[i]),n.query&&!t.query&&(t.query=n.queryKey),a.socket(n.path,t)}Object.assign(p8e,{Manager:d8e,Socket:c8e,io:p8e,connect:p8e});const f8e=(0,n.createContext)(null),g8e=e=>(0,Ae.jsx)(f8e.Provider,{value:e.context,children:e.children}),m8e=(0,n.createContext)(null),y8e=e=>(0,Ae.jsx)(m8e.Provider,{value:e.context,children:e.children}),v8e=e=>{const{originalImageSize:t,imageSize:r}=e,{leftRightCrop:i,topBottomCrop:o,displayRatio:s}=(0,n.useMemo)((()=>{const e=t.width-t.height;e<0&&console.error("[useSolarInspectionAnnotateImageCropSize] Thermal image height should not be greater than width.");return{leftRightCrop:e/2,topBottomCrop:0,displayRatio:r/t.height}}),[t,r]);return{leftRightCrop:i,topBottomCrop:o,displayRatio:s}},_8e=e=>{const[t,r]=(0,n.useState)([]),[i,o]=(0,n.useState)([]),[s,a]=(0,n.useState)([]),[l,c]=(0,n.useState)([]),[u,d]=(0,n.useState)([]),h=(0,n.useRef)(u),{inspectionId:p,currentPhotoId:f}=e;(0,n.useEffect)((()=>{h.current=u}),[u]),(0,n.useEffect)((()=>{const e=setInterval((()=>{if(0!==h.current.length){const e=h.current;d([]),KV(p,e)}}),5e3);return()=>{const t=h.current;clearInterval(e),t.length>0&&KV(p,t)}}),[p]);const g=(0,n.useCallback)((e=>{t.includes(e)||(r((t=>[...t,e])),Eo()||d((t=>[...t,e])))}),[t]);(0,n.useEffect)((()=>{if(!f)return;const e=setTimeout((()=>{g(f)}),0);return()=>{clearTimeout(e)}}),[f,g]);const m=(0,n.useCallback)((async()=>{try{const e=await(async e=>{const t=await Ey("/inspections/".concat(e,"/remarkable-photos"),{method:"GET"});if(!t.ok){const e=await t.text();throw new Error(null!==e&&void 0!==e?e:"[getSolarInspectionRemarkablePhotos] Unknown error")}return await t.json()})(p);r(e.viewedPhotos),o(e.flaggedPhotos),a(e.manualPhotos),c(e.calibrationPhotos)}catch(Rmt){r([]),o([]),a([]),c([])}}),[p]);(0,n.useEffect)((()=>{m()}),[m]);const y=0!==u.length;return{viewedPhotos:t,flaggedPhotos:i,manualPhotos:s,calibrationPhotos:l,isSaving:y}},b8e=nU(Mp,.3),x8e=nU(Dp,.2),S8e=e=>{const[t,r]=(0,n.useState)(!1),[i,o]=(0,n.useState)(new Map),s=async e=>{try{r(!0);const t=await(async e=>{const t=await Ey("/inspections/".concat(e,"/exif"),{method:"GET"});if(!t.ok){var n;const e=await t.text();throw new Error(null!==(n=null!==e&&void 0!==e?e:t.statusText)&&void 0!==n?n:"An error occurred")}return t.json()})(e),n=new Map;Object.keys(t).forEach((e=>{n.set(e,t[e])})),o(n)}catch(Rmt){}finally{r(!1)}};return(0,n.useEffect)((()=>{s(e)}),[e]),{isLoading:t,photosDataExifs:i}},w8e=e=>{const{inspectionId:t,currentPalette:r,photosPerLines:i,originalImageSize:o,imageSize:s,fetchSettings:{nextPhotosCount:a=7,prevPhotosCount:l=3},getPhotoGSDData:c}=e,[u,d]=(0,n.useState)(),[h,p]=(0,n.useState)(0),{photosDataExifs:f}=S8e(t),g=(0,n.useMemo)((()=>i.flat()),[i]),[m,y]=(0,n.useState)(new Map),[v,_]=(0,n.useState)(new Map),[b,x]=(0,n.useState)(!1),{leftRightCrop:S,topBottomCrop:w}=v8e({originalImageSize:o,imageSize:s}),{photosPolygons:E,viewedPhotos:P,flaggedPhotos:C,manualPhotos:A,calibrationPhotos:k,isSaving:j}=(e=>{const{inspectionId:t,photosDataExifs:r,currentPhotoId:i,getPhotoGSDData:o}=e,s=(0,n.useMemo)((()=>e.imageSizePx),[JSON.stringify(e.imageSizePx)]),{viewedPhotos:a,flaggedPhotos:l,manualPhotos:c,calibrationPhotos:u,isSaving:d}=_8e({inspectionId:t,currentPhotoId:i});return{photosPolygons:(0,n.useMemo)((()=>Array.from(r.keys()).map((e=>{let t="transparent";a.includes(e)&&(t=x8e),[...l,...c].includes(e)&&(t=b8e);const n=o(e);if(!n)return;const{imageCoords:r,thermalGsd:i,imageSize:u,yawDegree:d}=n,h=n.imageSize,p=s,f=100*p.width/h.width,g=100*p.height/h.height;return{id:e,coords:FCe(r,f,g,i,u,UPe(d)),style:{stroke:"transparent",size:2,fill:t,selected:{stroke:jp,size:4}}}})).flatMap((e=>e?u.includes(e.id)?[]:[e]:[]))),[r,o,s,a,l,c,u]),isSaving:d,viewedPhotos:a,flaggedPhotos:l,manualPhotos:c,calibrationPhotos:u}})({inspectionId:t,photosDataExifs:f,getPhotoGSDData:c,currentPhotoId:u,imageSizePx:{width:o.width-2*S,height:o.height-2*w}}),I=(0,n.useCallback)(((e,t,n)=>{_((r=>{const i=new Map(r);return e.forEach((e=>{var r;const o=null!==(r=i.get(e))&&void 0!==r?r:{};o[t]=n,i.set(e,o)})),i}))}),[]),G=(0,n.useCallback)((async(e,n)=>{if(0===e.length)return;I(e,n,!0);const r=(await XV(t,e,n)).map((e=>n===_L.RGB?Promise.resolve(e):(async(e,t)=>{const{top:n=0,right:r=0,bottom:i=0,left:o=0}=t;return oCe(e,[[o,n],[r,n],[r,i],[o,i]])})(e,{left:S,right:o.width-S,top:w,bottom:o.height-w}))),i=(await Promise.all(r)).filter((e=>null!==e));y((t=>{const r=new Map(t);return i.forEach(((t,i)=>{var o;const s=e[i],a=null!==(o=r.get(s))&&void 0!==o?o:{};r.set(s,{...a,[n]:t})})),r})),I(e,n,!1)}),[t,o,S,w,I]),T=(0,n.useCallback)((async function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];for(const i of n){const t=i.filter((e=>null!==e));await G(t,e)}}),[G]);(0,n.useEffect)((()=>{if(b)return;if(!u||!g)return;const e=setTimeout((()=>{const e=[...m].reduce(((e,t)=>{let[n,i]=t;return null!=i[r]&&e.push(n),e}),[]),t=[...v].reduce(((e,t)=>{let[n,i]=t;return!0===i[r]&&e.push(n),e}),[]),n=[...e,...t],i=n.includes(u)?null:u,o=g.indexOf(u),s=g.slice(o+1,o+1+a).filter((e=>!n.includes(e))),c=g.slice(o-l,o).filter((e=>!n.includes(e)));x(!0),T(r,[i],s,c).then((()=>x(!1)))}),180);return()=>{clearTimeout(e)}}),[T,b,g,u,m,v,a,l,r]);const M=(0,n.useMemo)((()=>{var e;if(void 0===h)return new Map;const t=new Map,n=null!==(e=i[h])&&void 0!==e?e:[];for(const i of n){var o;const e=null===(o=m.get(i))||void 0===o?void 0:o[r];t.set(i,e)}return t}),[i,h,m,r]),O=(0,n.useCallback)((()=>{if(!u)return;const e=[...M.keys()],t=e.findIndex((e=>e===u))+1;if(e.length-1>=t){const n=e[t];return void d(n)}let n=h+1,r=i[n];r||(n=0,r=i[n]),p(n),d((e=>{var t,n;return null!==(t=null===(n=r)||void 0===n?void 0:n[0])&&void 0!==t?t:e}))}),[M,i,u,h]),R=(0,n.useCallback)(((e,t)=>{const n=T3(e);if(!n)return;return t.reduce(((e,t)=>{var r;const i=null===(r=E.find((e=>e.id===t)))||void 0===r?void 0:r.coords;if(!i)return e;const o=T3(i);if(!o)return e;const s=Math.abs(sR([n.lat,n.lng],[o.lat,o.lng]));return s<e.distance?{photoId:t,distance:s}:e}),{photoId:"",distance:1/0}).photoId}),[E]),D=(0,n.useCallback)((()=>{var e;let t=h+1,n=i[t];const r=null===(e=E.find((e=>e.id===u)))||void 0===e?void 0:e.coords;if(!r)return;n||(t=0,n=i[t]);const o=R(r,n);d(o),p(t)}),[h,u,i,R,E]),N=(0,n.useCallback)((()=>{var e;let t=h-1,n=i[t];const r=null===(e=E.find((e=>e.id===u)))||void 0===e?void 0:e.coords;if(!r)return;n||(t=i.length-1,n=i[t]);const o=R(r,n);d(o),p(t)}),[h,u,i,R,E]);(0,n.useEffect)((()=>{if(!u)return;if(!i[h])return;if(i[h].includes(u))return;const e=i.findIndex((e=>e.includes(u)));-1!==e&&p(e)}),[u,i,h]);const L=(0,n.useCallback)((()=>{var e,t;if(!u)return;const n=[...M.keys()],r=n.findIndex((e=>e===u))-1;if(r>=0){const e=n[r];return void d(e)}let o=h-1,s=i[o];s||(o=i.length-1,s=i[o]);const a=(null!==(e=null===(t=s)||void 0===t?void 0:t.length)&&void 0!==e?e:1)-1;p(o),d((e=>{var t,n;return null!==(t=null===(n=s)||void 0===n?void 0:n[a])&&void 0!==t?t:e}))}),[M,i,u,h]),V=(0,n.useMemo)((()=>[...m.keys()]),[m]),F=(0,n.useMemo)((()=>i.length),[i]),z=(0,n.useMemo)((()=>{const e=[...M.keys()];if(!u||0===e.length)return[];const t=e.findIndex((e=>e===u));return[0===t?null:e[t-1],...e.slice(t,t+2)].filter((e=>null!==e))}),[u,M]);return{currentPhotoId:u,setCurrentPhotoId:d,currentLine:h,totalLines:F,currentLinePhotosUrls:M,currentPhotoNeighbors:z,allSignedPhotosIds:V,locked:b,goNextPhoto:O,goPreviousPhoto:L,goNextLine:D,goPreviousLine:N,photosPolygons:E,viewedPhotos:P,flaggedPhotos:C,manualPhotos:A,calibrationPhotos:k,photosDataExifs:f,isSaving:j}},E8e=e=>{const{direction:t,selected:r,suffix:i={},areDiodeAnnotationsDisabled:o=!1}=e,s=(0,n.useMemo)((()=>Object.values(PL)),[]),a=(0,n.useCallback)((e=>{const t=r===e,n=BAe[e],i={width:"140px",background:t?n:"white",color:t?"white":"black",fontWeight:t?"bold":"normal",borderLeft:"6px solid ".concat(n),borderRight:"6px solid transparent",whiteSpace:"nowrap"};return o&&e===PL.DIODE?{...i,background:"lightgrey",borderLeft:"6px solid lightgrey",color:"black",opacity:.3}:i}),[r,o]);return(0,Ae.jsx)(ws,{container:!0,direction:t,wrap:"nowrap",alignItems:"center",justifyContent:"center",flex:1,gap:"0.5rem",children:s.map(((t,n)=>{var r;const s=e.withTooltips?"(".concat(n+1,")"):"",l=o&&t===PL.DIODE?"Diode annotations are not available for this panel model":s;return(0,Ae.jsx)(cu,{title:l,placement:"top",children:(0,Ae.jsx)(ws,{item:!0,children:(0,Ae.jsx)(ev,{label:"".concat(AL[t]).concat(null!==(r=i[t])&&void 0!==r?r:""),style:a(t),onClick:()=>{o&&t===PL.DIODE||e.onClick(t)}},t)},"defect_btn_".concat(t))},"tooltip-".concat(n))}))})},P8e=Zo()((()=>({main:{padding:"0.5rem"},defectWarning:{fontSize:12,lineHeight:"0.8rem"}}))),C8e=e=>{const{photoId:t,annotationsModulesIds:r,anchorEl:i,isOpen:o,style:s={},onClose:a,createMultiAnnotationsFromModulesId:l}=e,{classes:c}=P8e(),u=(0,n.useContext)(f8e);if(!u)return(0,Ae.jsx)(Ae.Fragment,{});const{annotations:{getOne:d,update:h,delete:p},defects:f,areDiodeAnnotationsDisabled:g}=u,m=(0,n.useMemo)((()=>r.map((e=>d(t,e))).flatMap((e=>e?[e]:[]))),[d,t,r]),y=(0,n.useMemo)((()=>{const e=m.map((e=>{let{id:t}=e;return t}));return r.filter((t=>!e.includes(t)))}),[m,r]),v=(0,n.useMemo)((()=>{if(y.length>0)return;const e=[...new Set(m.map((e=>{let{type:t}=e;return t})))];return 1===e.length?aAe(e[0]):void 0}),[m,y]),_=(0,n.useCallback)((()=>{m.forEach((e=>p(e.photoId,e.id))),a()}),[p,m,a]),b=(0,n.useCallback)((e=>{const t=y.map(((t,n)=>({moduleId:t,annotationData:{id:"".concat((new Date).getTime().toString(),"-").concat(n),type:e}})));l(t),m.forEach((t=>h(t.photoId,t.id,{type:e}))),a()}),[h,a,l,m,y]),x=(0,n.useMemo)((()=>m.length>1?"Delete (".concat(m.length,")"):"Delete"),[m]),S=(0,n.useMemo)((()=>{const e=r.length,t=" (".concat(e,")"),n={[PL.DISCONNECTED]:t,[PL.HOTSPOT]:t,[PL.DIODE]:t};return v&&(n[v]=""),n}),[r,v]),w=(0,n.useMemo)((()=>{const e=MAe(t),n=r.filter((t=>f.some((n=>n.annotations.map((e=>{let{annotationRef:t}=e;return t})).includes("".concat(e,"_").concat(t)))))).length;if(0!==n)return 1===r.length&&n>0?"Annotation is part of a defect":"".concat(n," ").concat(wq("annotation",n)," ").concat(n>1?"are":"is"," part of a defect")}),[t,r,f]);return(0,Ae.jsx)(Ud,{anchorEl:i,open:o&&null!==i,onClose:e.onClose,children:(0,Ae.jsxs)(ws,{container:!0,direction:"column",wrap:"nowrap",justifyContent:"center",alignItems:"center",gap:"0.5rem",className:c.main,style:s,children:[w&&(0,Ae.jsx)(pM,{severity:"warning",className:c.defectWarning,children:w}),(0,Ae.jsx)(E8e,{selected:v,direction:"column",suffix:S,onClick:b,areDiodeAnnotationsDisabled:g}),m.length>0&&(0,Ae.jsx)(ev,{label:x,color:"delete",style:{width:"140px"},onClick:_})]})})},A8e=Zo()((()=>({main:{padding:"0.5rem"}}))),k8e=e=>{const{photoId:t,pickerId:r,anchorEl:i,isOpen:o,onClose:s,style:a={}}=e,{classes:l}=A8e(),c=(0,n.useContext)(f8e);if(!c)return(0,Ae.jsx)(Ae.Fragment,{});const{pickers:{remove:u}}=c,d=(0,n.useCallback)((()=>{u(t,r),s()}),[u,s,t,r]);return(0,Ae.jsx)(Ud,{anchorEl:i,open:o&&null!==i,onClose:e.onClose,children:(0,Ae.jsx)(wp,{className:l.main,style:a,children:(0,Ae.jsx)(ev,{label:"Delete picker",color:"delete",style:{width:"120px"},onClick:d})})})},j8e=(e,t,n)=>{if(e.length<4)throw new Error("the polygon must have 4 points");let r,i,o,s;"width"===n?[r,i,o,s]=e:[s,r,i,o]=e;const a=(i.x-r.x)/t,l=(i.y-r.y)/t,c=[];for(let f=0;f<t+1;f++){const e={x:r.x+a*f,y:r.y+l*f};c.push(e)}const u=(o.x-s.x)/t,d=(o.y-s.y)/t,h=[];for(let f=0;f<t+1;f++){const e={x:s.x+u*f,y:s.y+d*f};h.push(e)}const p=[];for(let f=0;f<c.length-1;f++){const e=[c[f],c[f+1],h[f+1],h[f]];p.push(e)}return p},I8e=e=>{const t=e.reduce(((e,t)=>({x:e.x+t.x,y:e.y+t.y})),{x:0,y:0}),n=t.x/e.length,r=t.y/e.length,i=[...e];return i.sort(((e,t)=>Math.atan2(e.y-r,e.x-n)-Math.atan2(t.y-r,t.x-n))),i},G8e=Zo()((()=>({formPositionRef:{top:"10px",left:"10px",position:"absolute"},popupContainer:{padding:"0.5rem",rowGap:"0.5rem",flexDirection:"column",wrap:"nowrap"}}))),T8e=e=>{const{classes:t}=G8e(),{photoId:r,saveAnnotations:i}=e,o=(0,n.useRef)(null),s=(0,n.useContext)(m8e),a=(0,n.useContext)(f8e);if(!s||!a)return(0,Ae.jsx)(Ae.Fragment,{});const{annotations:{disabled:l},gridShape:{current:c,set:u}}=a,{tool:{current:d},defectType:{current:h}}=s,[p,f]=(0,n.useState)(),[g,m]=(0,n.useState)(!1),y=(0,n.useMemo)((()=>d===FAe.GRID_ANNOTATION&&!l),[d,l]),v=(0,n.useMemo)((()=>h?{stroke:BAe[h]}:{}),[h]),_=(0,n.useCallback)((e=>{var t,n;if(!Y3(e))return;const r=null!==(t=null===(n=e.getCoordinates())||void 0===n?void 0:n[0])&&void 0!==t?t:[];if(r.length<4)return;const i=r.slice(0,4);f(i.map(j3)),m(!0)}),[]),b=(0,n.useMemo)((()=>{if(p)return{id:"main-polygon",coords:p.map((e=>{let{x:t,y:n}=e;return k3([t,n])})),style:{stroke:Bp,size:2,fill:"transparent"}}}),[p]),x=(0,n.useMemo)((()=>p?((e,t,n)=>{const r=I8e([...e]);return j8e(r,n,"width").map((e=>j8e(e,t,"height"))).flat()})(p,c.line,c.column):[]),[p,c]),S=(0,n.useMemo)((()=>x.map(((e,t)=>({id:"module-".concat(t),coords:e.map((e=>{let{x:t,y:n}=e;return[t,n]})).map(k3),style:{stroke:Up,size:2,fill:"transparent"}})))),[x]),w=(0,n.useCallback)((e=>{u(null!==e&&void 0!==e?e:B2e)}),[u]),E=(0,n.useCallback)((()=>{m(!1),f(void 0)}),[]);return(0,Ae.jsxs)(Ae.Fragment,{children:[(0,Ae.jsx)("div",{className:t.formPositionRef,ref:o}),(0,Ae.jsx)(Ud,{anchorEl:o.current,open:g,onClose:E,children:(0,Ae.jsx)("form",{onSubmit:e=>{e.preventDefault();const t=x.map(((e,t)=>({photoId:r,points:e,annotationData:{id:"".concat((new Date).getTime().toString(),"-").concat(t)}})));i(t),E()},children:(0,Ae.jsxs)(ws,{container:!0,className:t.popupContainer,children:[(0,Ae.jsx)(U2e,{autoFocus:!0,modulesPerTable:c,onChange:w}),(0,Ae.jsx)(ohe,{submit:!0,size:"small",onCancel:E})]})})}),(0,Ae.jsx)(_Pe,{shape:u3.POLYGON,maxPoints:4,drawEnabled:y,drawPointer:"cross",drawStyle:v,onDrawEnd:_}),(0,Ae.jsx)(yPe,{polygons:[b,...S]})]})},M8e=Zo()((()=>({main:{padding:"0.5rem"}}))),O8e=e=>{const{anchorEl:t,isOpen:r,annotationsCount:i,onValidate:o,onCancel:s}=e,{classes:a}=M8e(),l=(0,n.useMemo)((()=>i<R8e.MAX),[i]);return(0,Ae.jsx)(Ud,{anchorEl:t,open:r&&null!==t,onClose:s,children:(0,Ae.jsxs)(ws,{container:!0,direction:"column",wrap:"nowrap",rowGap:"0.5rem",className:a.main,children:[(0,Ae.jsx)(ws,{item:!0,children:(0,Ae.jsx)(vu,{children:l?"You are about to create ".concat(i," annotations. Do you confirm?"):"You cannot save more than ".concat(R8e.MAX," annotations at once.")})}),(0,Ae.jsx)(ohe,{validateDisabled:!l,onValidate:o,onCancel:s})]})})},R8e=Object.freeze({WARN:100,MAX:400}),D8e=Zo()((()=>({main:{position:"relative",width:"100%",height:"100%"},formPositionRef:{width:"10px",height:"10px",position:"absolute"}}))),N8e={stroke:"lightgreen",fill:"transparent"},L8e=e=>{const{photoId:t,imageUrl:r}=e,{classes:i}=D8e(),o=(0,n.useContext)(m8e),s=(0,n.useContext)(f8e);if(!o||!s)return(0,Ae.jsx)(Ae.Fragment,{});const{originalImageSize:a,imageSize:l,annotations:{create:c,getPerPhoto:u,disabled:d},modules:{getPerPhoto:h,forceDisplaySolarPanels:p},celcius:{getTemperature:f,getPerPhoto:g},pickers:{getPerPhoto:m,add:y}}=s,{tool:{current:v,set:_},defectType:{current:b},footprint:{current:x,set:S},palette:{current:w}}=o,E=(0,n.useRef)(null),{leftRightCrop:P,topBottomCrop:C,displayRatio:A}=v8e({originalImageSize:a,imageSize:l}),[k,j]=(0,n.useState)(new Map([["annotation",!1],["aiModule",!1],["picker",!1]])),[I,G]=(0,n.useState)([]),[T,M]=(0,n.useState)(null),[O,R]=(0,n.useState)(),[D,N]=(0,n.useState)(!1),[L,V]=(0,n.useState)(!1),[F,z]=(0,n.useState)(),[B,U]=(0,n.useState)([]),[W,H]=(0,n.useState)([]),[q,X]=(0,n.useState)(!1);(0,n.useEffect)((()=>{const e=e=>{"Shift"===e.key&&X(!0)},t=e=>{"Shift"===e.key&&X(!1)};return window.addEventListener("keydown",e),window.addEventListener("keyup",t),()=>{window.removeEventListener("keydown",e),window.removeEventListener("keyup",t)}}),[]);const Y=(0,n.useMemo)((()=>{const e=[];B[0]&&e.push(B[0]),B[1]&&e.push(B[1]),B[2]&&e.push(B[2]),B[3]&&e.push(B[3]);for(let n=4;n<B.length;n+=10)n>B.length-1||B[n]&&e.push(B[n]);const t=B[B.length-1];return t&&e.push(t),e}),[B]),K=(0,n.useMemo)((()=>[...k.values()].some((e=>e))),[k]),Z=(0,n.useCallback)(((e,t)=>{j((n=>{const r=new Map(n);return r.set(e,t),r}))}),[]),$=(0,n.useMemo)((()=>v===FAe.DRAW_ANNOTATION&&(!d&&(!K||D))),[v,d,K,D]),J=(0,n.useMemo)((()=>v===FAe.FREEHAND&&(!d&&!q)),[v,d,q]),Q=(0,n.useMemo)((()=>w!==_L.RGB&&v===FAe.PICKER&&!1===k.get("picker")),[w,v,k]),ee=(0,n.useMemo)((()=>w!==_L.RGB),[w]),te=(0,n.useMemo)((()=>!D&&v&&[FAe.ADD_ANNOTATION,FAe.DRAW_ANNOTATION].includes(v)&&!1===k.get("picker")),[D,v,k]),ne=(0,n.useMemo)((()=>!D&&v&&[FAe.DRAW_ANNOTATION,FAe.PICKER].includes(v)),[D,v]),re=(0,n.useMemo)((()=>v===FAe.ADD_ANNOTATION&&w!==_L.RGB&&void 0!==x&&!K&&!d&&!$),[x,v,w,K,d,$]),ie=(0,n.useMemo)((()=>u(t)),[u,t]),oe=(0,n.useMemo)((()=>h(t)),[h,t]),se=(0,n.useCallback)((e=>sAe(e,a).map((e=>{const t=e.x-P,n=e.y+C;return{x:t*A,y:n*A}}))),[P,C,A,a]),ae=(0,n.useCallback)((e=>E5(Y,e)),[Y]),{annotationsPolygons:le,modulesPolygons:ce}=(0,n.useMemo)((()=>{if(!a)return{annotationsPolygons:[],modulesPolygons:[]};const e=e=>{const t=se(e),n=t.map((e=>{let{x:t,y:n}=e;return k3([t,n])})),r=ae(t);let i=p?"rgba(0, 200, 78, 0.3)":r?N8e.stroke:"transparent";const o=r?"rgba(0, 106, 78, 0.3)":"transparent";if("type"in e){var s;const t=null!==(s=aAe(e.type))&&void 0!==s?s:PL.HOTSPOT;i=BAe[t]}return{id:e.id,coords:n,style:{stroke:i,fill:o,size:2}}};return{annotationsPolygons:ie.map(e),modulesPolygons:oe.map(e)}}),[ie,oe,a,ae,se,p]),ue=(0,n.useCallback)((e=>{let{photoId:t,points:n,annotationData:r={}}=e;if(!a||!b)return;var i;if(8===n.length&&!B3(n))return c({...r,photoId:t,coordinates:n,type:null!==(i=r.type)&&void 0!==i?i:b,palette:w});if(4!==n.length)return;const o=n.map((e=>{const t=e.x/A,n=e.y/A;return{x:t+P,y:a.height-n-C}})),s=(e,t)=>e/t*100,l=o.map((e=>[s(e.x,a.width)/100,s(e.y,a.height)/100])).flat();c({...r,photoId:t,coordinates:l,type:b,palette:w})}),[c,a,P,C,A,b,w]),de=(0,n.useCallback)((e=>{if("useMemorizedData"in e){if(!W)return;return W.forEach((e=>ue(e))),void H([])}if(e.length>=R8e.WARN)return H(e),void R([{x:10,y:10}]);e.forEach((e=>ue(e)))}),[ue,W]),he=(0,n.useCallback)((()=>N(!0)),[]),pe=(0,n.useCallback)((()=>N(!1)),[]),fe=(0,n.useCallback)((e=>{var n,r;if(N(!1),!Y3(e))return;const i=null!==(n=null===(r=e.getCoordinates())||void 0===r?void 0:r[0])&&void 0!==n?n:[];if(i.length<4)return;const o=i.slice(0,4).map(j3);S(o),_(FAe.ADD_ANNOTATION),ue({photoId:t,points:o})}),[ue,_,S,t]),ge=(0,n.useCallback)((()=>{U([]),V(!0)}),[]),me=(0,n.useCallback)((()=>{U([]),V(!1)}),[]),ye=(0,n.useCallback)(((e,t)=>{V(!1);const n=[...ie,...oe].filter((e=>{const t=se(e);return ae(t)})).map((e=>{let{id:t}=e;return t}));0!==n.length?(G(n),R(t)):U([])}),[ae,se,ie,oe]),ve=(0,n.useCallback)((e=>{L&&U((t=>[...t,e]))}),[L]),_e=(0,n.useCallback)((e=>{var n,r;const i=null!==(n=null===(r=e.getCoordinates())||void 0===r?void 0:r[0])&&void 0!==n?n:[];if(i.length<4)return;const o=i.slice(0,4).map(j3);ue({photoId:t,points:o})}),[ue,t]),be=(0,n.useCallback)((e=>{let{moduleId:n,annotationData:r={}}=e;const i=oe.find((e=>{let{id:t}=e;return t===n}));if(!i)return;const o={...r};return i.minCelcius&&i.maxCelcius&&i.meanCelcius&&(o.thermalStats={min:i.minCelcius,max:i.maxCelcius,mean:i.meanCelcius}),{photoId:t,points:i.coordinates,annotationData:o}}),[t,oe]),xe=(0,n.useCallback)((e=>{const t=e.map(be).filter((e=>e));return de(t)}),[be,de]),Se=(0,n.useCallback)((e=>{e&&xe([{moduleId:"".concat(e.getId())}])}),[xe]),we=(0,n.useMemo)((()=>b?{stroke:BAe[b]}:{}),[b]),Ee=(0,n.useMemo)((()=>{if(x&&b)return{coords:x,style:{stroke:BAe[b]}}}),[x,b]),Pe=(0,n.useCallback)((e=>{if(!te)return;Z("annotation",null!==e)}),[Z,te]),Ce=(0,n.useCallback)((e=>{if(!te)return;Z("aiModule",null!==e)}),[Z,te]),ke=(0,n.useCallback)((e=>{if(!ne)return;Z("picker",null!==e)}),[Z,ne]),je=(0,n.useCallback)(((e,t,n)=>{e&&(G(["".concat(e.getId())]),R(n))}),[]),Ie=(0,n.useCallback)(((e,t)=>{e&&(M("".concat(e.getId())),R([t]))}),[]),Ge=(0,n.useMemo)((()=>{if(!O)return{};const e=Math.min(...O.map((e=>e.y))),t=Math.min(...O.map((e=>e.x))),n=Math.max(...O.map((e=>e.x)));return{left:t>160?t-160:n,top:Math.max(0,e)}}),[O]),Te=(0,n.useMemo)((()=>K?"pointer":""),[K]),Me=(0,n.useMemo)((()=>!D&&!d&&!1===k.get("annotation")&&v&&[FAe.ADD_ANNOTATION,FAe.DRAW_ANNOTATION,FAe.FREEHAND].includes(v)&&!q),[D,k,d,v,q]),Oe=(0,n.useCallback)((()=>{j((e=>{const t=new Map(e);return t.set("aiModule",!1),t.set("annotation",!1),t.set("annotation",!1),t}))}),[]);(0,n.useEffect)((()=>{v&&[FAe.PICKER,FAe.FREEHAND,FAe.GRID_ANNOTATION].includes(v)&&Oe()}),[v,Oe]);const Re=(0,n.useCallback)((()=>{G([]),Oe(),U([])}),[Oe]),De=(0,n.useCallback)((()=>{M(null),Oe()}),[Oe]),Ne=(0,n.useCallback)((e=>{const t=Math.round(e.x/A),n=a.height-Math.round(e.y/A);return{x:t+P,y:n-C}}),[a,P,A,C]),Le=(0,n.useMemo)((()=>m(t)),[m,t]),Ve=(0,n.useMemo)((()=>void 0!==g(t)),[t,g]),Fe=(0,n.useMemo)((()=>({position:"top",text:Ve?"".concat(null!==F&&void 0!==F?F:0,"\xb0C"):"Loading\u2026"})),[Ve,F]),ze=(0,n.useMemo)((()=>Le.map((e=>{const t=e.x*a.width/100,n=a.height-e.y*a.height/100,r={x:(t-P)*A,y:(n+C)*A},i=[r.x,r.y];return{id:e.id,coords:k3(i),type:d3.cross,style:{stroke:"#FF5500",size:5},displayText:"".concat(e.temperature,"\xb0C"),textStyle:{offsetY:-15,outline:{width:3}}}}))),[Le,a,P,C,A]),Be=(0,n.useCallback)((e=>{let{x:n,y:r}=e;const i=Ne({x:n,y:r}),o=f(t,i);z(o)}),[f,Ne,t]),Ue=(0,n.useCallback)((e=>{if(!Ve)return;if(!K3(e))return;const[n,r]=e.getCoordinates(),i=Ne({x:n,y:r}),o={x:100*i.x/a.width,y:100*i.y/a.height},s=f(t,i);y({id:(new Date).getTime().toString(),photoId:t,temperature:s,x:o.x,y:o.y})}),[y,f,Ne,Ve,a,t]);return(0,Ae.jsxs)("div",{className:i.main,children:[(0,Ae.jsx)("div",{className:i.formPositionRef,ref:E,style:Ge}),(0,Ae.jsx)(C8e,{photoId:t,anchorEl:E.current,annotationsModulesIds:I,isOpen:I.length>0,style:{width:160},createMultiAnnotationsFromModulesId:xe,onClose:Re}),(0,Ae.jsx)(k8e,{photoId:t,pickerId:null!==T&&void 0!==T?T:"",anchorEl:E.current,isOpen:null!==T,onClose:De}),(0,Ae.jsx)(O8e,{anchorEl:E.current,isOpen:W.length>0,annotationsCount:W.length,onValidate:()=>de({useMemorizedData:!0}),onCancel:()=>H([])}),(0,Ae.jsx)(rAe,{hideControls:!0,id:t,imageUrl:r,cursor:Te,children:(0,Ae.jsxs)(Ae.Fragment,{children:[(0,Ae.jsx)(_Pe,{shape:u3.POLYGON,maxPoints:4,drawEnabled:$,drawPointer:"cross",drawStyle:we,onDrawStart:he,onDrawAbort:pe,onDrawEnd:fe}),(0,Ae.jsx)(_Pe,{drawEnabled:re,shape:u3.POINT,drawPointer:"cross",onFootprintDrawEnd:_e,footprint:Ee}),(0,Ae.jsx)(_Pe,{drawEnabled:Q,shape:u3.POINT,drawPointer:"cross",onMouseMove:Be,onDrawEnd:Ue,drawText:Fe}),(0,Ae.jsx)(_Pe,{freehand:!0,shape:u3.POLYGON,drawEnabled:J,onDrawStart:ge,onDrawAbort:me,onDrawEnd:ye,onMouseMove:ve}),(0,Ae.jsx)(Z5,{visible:ee,points:ze,zIndex:4,clickable:ne,hitTolerance:10,onPointHovered:ke,onPointClicked:Ie}),(0,Ae.jsx)(yPe,{visible:!d,clickable:te,polygons:le,onPolygonHovered:Pe,onPolygonSelected:je,zIndex:3}),(0,Ae.jsx)(yPe,{visible:Me,clickable:te,polygons:ce,onPolygonHovered:Ce,onHoverStyle:N8e,onPolygonSelected:Se,zIndex:2}),(0,Ae.jsx)(T8e,{photoId:t,saveAnnotations:de})]})})]})};var V8e=__webpack_require__(15532),F8e=__webpack_require__(6388);const z8e=e=>"start"===e.type?(0,Ae.jsxs)(ws,{container:!0,wrap:"nowrap",direction:"column",alignItems:"center",justifyContent:"center",width:"100%",height:"100%",children:[(0,Ae.jsxs)(ws,{item:!0,children:["Line ",e.lineNumber]}),(0,Ae.jsx)(V8e.c,{fontSize:"large"})]}):"end"===e.type?(0,Ae.jsxs)(ws,{container:!0,wrap:"nowrap",direction:"column",alignItems:"center",justifyContent:"center",width:"100%",height:"100%",children:[(0,Ae.jsx)(ws,{item:!0,children:e.isLastLine?"End of farm":"End of line"}),e.isLastLine?(0,Ae.jsx)(F8e.c,{fontSize:"large"}):(0,Ae.jsx)(wPe.c,{fontSize:"large"})]}):(0,Ae.jsx)(Ae.Fragment,{}),B8e=Zo()(((e,t)=>({allImagesContainer:{alignItems:"center"},imageAnnotatorContainer:{position:"relative",flex:"0 0 ".concat(t,"px"),height:"".concat(t,"px"),zIndex:1},scrollImageContainer:{height:"100%"},imageBorder:{position:"absolute",top:0,left:0,width:t,height:t,zIndex:2,pointerEvents:"none"}}))),U8e=()=>{const e=(0,n.useContext)(f8e);if(!e)return(0,Ae.jsx)(Ae.Fragment,{});const{imageSize:t,line:{current:r,total:i},photoId:{current:o},photosUrls:{currentLinePhotosUrls:s},remarkablePhotos:{flagged:a,manual:l,calibration:c}}=e,{classes:u}=B8e(t),d=(0,n.useMemo)((()=>{const e=[...s.keys()].findIndex((e=>e===o));return"".concat(-t*e,"px")}),[s,o,t]),h=(0,n.useMemo)((()=>(null!==r&&void 0!==r?r:0)+1),[r]),p=(0,n.useMemo)((()=>r===i-1),[r,i]),f=(0,n.useMemo)((()=>s.size>0),[s]),g=(0,n.useCallback)((e=>{let t="black";e===o&&(t=jp),[...a,...l].includes(e)&&(t=Mp),c.includes(e)&&(t=Vp);return{border:"".concat(o===e?4:2,"px solid ").concat(t)}}),[a,l,c,o]);return(0,Ae.jsx)(wp,{bgcolor:"black",overflow:"hidden",children:(0,Ae.jsxs)(ws,{container:!0,wrap:"nowrap",className:u.allImagesContainer,marginLeft:d,children:[(0,Ae.jsx)(ws,{item:!0,visibility:f?"visible":"hidden",className:u.imageAnnotatorContainer,children:(0,Ae.jsx)(z8e,{type:"start",lineNumber:h})}),[...s].map((e=>{let[t,n]=e;return(0,Ae.jsxs)(ws,{item:!0,className:u.imageAnnotatorContainer,children:[(0,Ae.jsx)(wp,{className:u.imageBorder,style:g(t)}),n?(0,Ae.jsx)(L8e,{photoId:t,imageUrl:n}):(0,Ae.jsx)(Iwe,{})]},"solar-annotate-photo-".concat(t))})),(0,Ae.jsx)(ws,{item:!0,visibility:f?"visible":"hidden",className:u.imageAnnotatorContainer,children:(0,Ae.jsx)(z8e,{type:"end",isLastLine:p})})]})})};var W8e;function H8e(){return H8e=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},H8e.apply(this,arguments)}function q8e(e,t){let{title:r,titleId:i,...o}=e;return n.createElement("svg",H8e({xmlns:"http://www.w3.org/2000/svg",width:16,height:26,viewBox:"0 0 16 26",fill:"none",ref:t,"aria-labelledby":i},o),r?n.createElement("title",{id:i},r):null,W8e||(W8e=n.createElement("path",{d:"M14.5938 24.875V1.125H1.40625V24.875H14.5938Z",stroke:"black",strokeDasharray:"2 2"})))}const X8e=n.forwardRef(q8e);__webpack_require__.p;var Y8e;function K8e(){return K8e=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},K8e.apply(this,arguments)}function Z8e(e,t){let{title:r,titleId:i,...o}=e;return n.createElement("svg",K8e({xmlns:"http://www.w3.org/2000/svg",width:16,height:26,viewBox:"0 0 16 26",fill:"none",ref:t,"aria-labelledby":i},o),r?n.createElement("title",{id:i},r):null,Y8e||(Y8e=n.createElement("path",{d:"M14.5938 24.875V1.125H1.40625V24.875H14.5938Z",stroke:"black"})))}const $8e=n.forwardRef(Z8e);__webpack_require__.p;var J8e,Q8e,e9e,t9e;function n9e(){return n9e=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},n9e.apply(this,arguments)}function r9e(e,t){let{title:r,titleId:i,...o}=e;return n.createElement("svg",n9e({width:26,height:26,viewBox:"0 0 26 26",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:t,"aria-labelledby":i},o),r?n.createElement("title",{id:i},r):null,J8e||(J8e=n.createElement("path",{d:"M24.875 2.28508H1.125L1.125 23.7148H24.875V2.28508Z",stroke:"black"})),Q8e||(Q8e=n.createElement("path",{d:"M1 13L25.5 13M7 2.4375L7 23.5625",stroke:"black"})),e9e||(e9e=n.createElement("path",{d:"M1 13H25.5",stroke:"black"})),t9e||(t9e=n.createElement("path",{d:"M13 2.4375V23.5625M19 2.4375V23.5625",stroke:"black"})))}const i9e=n.forwardRef(r9e);__webpack_require__.p;var o9e=__webpack_require__(40040);const s9e=Zo()((()=>({toolBtnContainer:{flex:1,maxWidth:"5rem"},toolBtn:{width:"100%"}}))),a9e=()=>{const{classes:e}=s9e(),t=(0,n.useContext)(m8e);if(!t)return(0,Ae.jsx)(Ae.Fragment,{});const{tool:{current:r,set:i,disabled:o},footprint:{current:s},palette:{current:a}}=t,l=(0,n.useCallback)((e=>e===r?"primary":"cancel"),[r]);return(0,Ae.jsxs)(ws,{container:!0,wrap:"nowrap",alignItems:"stretch",columnGap:"0.5rem",children:[(0,Ae.jsx)(ws,{item:!0,className:e.toolBtnContainer,children:(0,Ae.jsx)(cu,{title:"Draw mode (R)",placement:"top",children:(0,Ae.jsx)("div",{children:(0,Ae.jsx)(ev,{className:e.toolBtn,disabled:o,color:l(FAe.DRAW_ANNOTATION),onClick:()=>i(FAe.DRAW_ANNOTATION),children:(0,Ae.jsx)(X8e,{})})})})}),(0,Ae.jsx)(ws,{item:!0,className:e.toolBtnContainer,children:(0,Ae.jsx)(cu,{title:"Stamp mode (T)",placement:"top",children:(0,Ae.jsx)("div",{children:(0,Ae.jsx)(ev,{className:e.toolBtn,disabled:o||!s,color:l(FAe.ADD_ANNOTATION),onClick:()=>i(FAe.ADD_ANNOTATION),children:(0,Ae.jsx)($8e,{})})})})}),(0,Ae.jsx)(ws,{item:!0,className:e.toolBtnContainer,children:(0,Ae.jsx)(cu,{title:"Freehand Selection (F)",placement:"top",children:(0,Ae.jsx)("div",{style:{height:"100%"},children:(0,Ae.jsx)(ev,{className:e.toolBtn,disabled:o,color:l(FAe.FREEHAND),onClick:()=>i(FAe.FREEHAND),children:(0,Ae.jsx)(o9e.c,{style:{width:26,height:26}})})})})}),(0,Ae.jsx)(ws,{item:!0,className:e.toolBtnContainer,children:(0,Ae.jsx)(cu,{title:"Grid mode (G)",placement:"top",children:(0,Ae.jsx)("div",{children:(0,Ae.jsx)(ev,{className:e.toolBtn,disabled:o,color:l(FAe.GRID_ANNOTATION),onClick:()=>i(FAe.GRID_ANNOTATION),children:(0,Ae.jsx)(i9e,{})})})})}),(0,Ae.jsx)(ws,{item:!0,className:e.toolBtnContainer,children:(0,Ae.jsx)(cu,{title:"Picker (P)",placement:"top",children:(0,Ae.jsx)("div",{style:{height:"100%"},children:(0,Ae.jsx)(ev,{className:e.toolBtn,disabled:a===_L.RGB,color:l(FAe.PICKER),onClick:()=>i(FAe.PICKER),children:(0,Ae.jsx)(hp,{size:26})})})})})]})};var l9e,c9e,u9e=__webpack_require__(2432),d9e=__webpack_require__(31388),h9e=__webpack_require__(19416),p9e=__webpack_require__(12992);function f9e(){return f9e=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},f9e.apply(this,arguments)}function g9e(e,t){let{title:r,titleId:i,...o}=e;return n.createElement("svg",f9e({width:18,height:18,viewBox:"0 0 18 18",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:t,"aria-labelledby":i},o),r?n.createElement("title",{id:i},r):null,l9e||(l9e=n.createElement("path",{d:"M18 16V2C18 0.9 17.1 0 16 0H2C0.9 0 0 0.9 0 2V16C0 17.1 0.9 18 2 18H16C17.1 18 18 17.1 18 16ZM5.5 10.5L8 13.51L11.5 9L16 15H2L5.5 10.5Z",fill:"url(#paint0_linear_411_5)"})),c9e||(c9e=n.createElement("defs",null,n.createElement("linearGradient",{id:"paint0_linear_411_5",x1:.5,y1:1,x2:18,y2:6,gradientUnits:"userSpaceOnUse"},n.createElement("stop",{stopColor:"#333B46"}),n.createElement("stop",{offset:.48,stopColor:"#4F555E"}),n.createElement("stop",{offset:1,stopColor:"#333B46"})))))}const m9e=n.forwardRef(g9e);__webpack_require__.p;var y9e,v9e;function _9e(){return _9e=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},_9e.apply(this,arguments)}function b9e(e,t){let{title:r,titleId:i,...o}=e;return n.createElement("svg",_9e({width:18,height:18,viewBox:"0 0 18 18",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:t,"aria-labelledby":i},o),r?n.createElement("title",{id:i},r):null,y9e||(y9e=n.createElement("path",{d:"M18 16V2C18 0.9 17.1 0 16 0H2C0.9 0 0 0.9 0 2V16C0 17.1 0.9 18 2 18H16C17.1 18 18 17.1 18 16ZM5.5 10.5L8 13.51L11.5 9L16 15H2L5.5 10.5Z",fill:"url(#paint0_linear_411_7)"})),v9e||(v9e=n.createElement("defs",null,n.createElement("linearGradient",{id:"paint0_linear_411_7",x1:9,y1:0,x2:9,y2:18,gradientUnits:"userSpaceOnUse"},n.createElement("stop",{stopColor:"#00A6FF"}),n.createElement("stop",{offset:.66,stopColor:"#00A6FF"}),n.createElement("stop",{offset:.795,stopColor:"#006A4E"})))))}const x9e=n.forwardRef(b9e);__webpack_require__.p;var S9e;function w9e(){return w9e=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},w9e.apply(this,arguments)}function E9e(e,t){let{title:r,titleId:i,...o}=e;return n.createElement("svg",w9e({width:18,height:18,viewBox:"0 0 18 18",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:t,"aria-labelledby":i},o),r?n.createElement("title",{id:i},r):null,S9e||(S9e=n.createElement("path",{d:"M18 16V2C18 0.9 17.1 0 16 0H2C0.9 0 0 0.9 0 2V16C0 17.1 0.9 18 2 18H16C17.1 18 18 17.1 18 16ZM5.5 10.5L8 13.51L11.5 9L16 15H2L5.5 10.5Z",fill:"black"})))}const P9e=n.forwardRef(E9e),C9e=(__webpack_require__.p,e=>{const{currentPalette:t,annotationDisabled:r,onChange:i}=e,[o,s]=(0,n.useState)(null),a=null!==o,l=()=>{s(null)},c=(0,n.useMemo)((()=>({color:r?Op:"black",border:r?"1px solid ".concat(Op):void 0})),[r]),u=(0,n.useCallback)((e=>{switch(e.palette){case _L.GREYSCALE:return(0,Ae.jsx)(m9e,{width:20,height:20});case _L.RGB:return(0,Ae.jsx)(x9e,{width:20,height:20});case _L.HOTWHITE:return(0,Ae.jsx)(P9e,{width:20,height:20});default:return(0,Ae.jsx)(Ae.Fragment,{})}}),[]);return(0,Ae.jsxs)(wp,{width:"fit-content",children:[(0,Ae.jsx)(ev,{id:"palette-button","aria-controls":a?"palette-menu":void 0,"aria-haspopup":"true","aria-expanded":a?"true":void 0,variant:"contained",color:"cancel",onClick:e=>{s(e.currentTarget)},style:c,trailingIcon:(0,Ae.jsx)(h9e.c,{}),children:(0,Ae.jsx)(u,{palette:t})}),(0,Ae.jsx)(Qd,{id:"palette-menu",anchorEl:o,open:a,onClose:l,elevation:0,anchorOrigin:{vertical:"top",horizontal:"center"},transformOrigin:{vertical:"bottom",horizontal:"center"},MenuListProps:{"aria-labelledby":"palette-button"},children:Object.values(_L).map((e=>(0,Ae.jsx)(dh,{onClick:()=>(i(e),void l()),style:{backgroundColor:e===t?Rp:"initial"},disableRipple:!0,children:(0,Ae.jsxs)(ws,{container:!0,wrap:"nowrap",alignItems:"center",columnGap:"0.25rem",children:[(0,Ae.jsx)(u,{palette:e}),(0,Ae.jsx)(vu,{textTransform:"capitalize",children:e})]})},"palette-item-".concat(e))))})]})});let A9e=function(e){return e.MISSION="MISSION",e.FLAGGED="FLAGGED",e.MANUAL="MANUAL",e.CALIBRATION="CALIBRATION",e}({});const k9e=()=>{const[e,t]=(0,n.useState)(null),[r,i]=(0,n.useState)(),o=(0,n.useContext)(f8e);if(!o)return(0,Ae.jsx)(Ae.Fragment,{});const{inspection:{id:s},photoId:{current:a},panelInfos:l,photos:{exifs:c},remarkablePhotos:{flagged:u,manual:d,calibration:h}}=o,p=(0,n.useCallback)((e=>{let t=A9e.MISSION;a&&(u.includes(a)&&(t=A9e.FLAGGED),d.includes(a)&&(t=A9e.MANUAL),h.includes(a)&&(t=A9e.CALIBRATION));const n={...e,photoId:null!==a&&void 0!==a?a:"",solarPanelTechnology:null===l||void 0===l?void 0:l.panelModel.technology,type:t};switch(e.rtkFlag||(n.rtkStatus=wA.NO_RTK),e.rtkFlag){case EA.NOT_IN_USE:n.rtkStatus=wA.NOT_IN_USE;break;case EA.FIXED:n.rtkStatus=wA.FIXED;break;default:e.rtkFlag&&e.rtkFlag>=EA.FLOAT_RANGE_START&&e.rtkFlag<EA.FLOAT_RANGE_END?n.rtkStatus=wA.FLOAT:n.rtkStatus=wA.NO_RTK}i(n)}),[l,a,u,d,h]);(0,n.useEffect)((()=>{if(!e)return;(async()=>{if(!a)return;const e=c.get(a);if(!e)return i(void 0);p(e)})()}),[a,s,e,c,p]);return(0,Ae.jsx)(cu,{title:e?"":"Exif Infos",placement:"top",children:(0,Ae.jsxs)("div",{children:[(0,Ae.jsx)(Ud,{open:null!==e,anchorEl:e,onClose:e=>{e.stopPropagation(),t(null)},anchorOrigin:{vertical:"top",horizontal:"left"},transformOrigin:{vertical:"bottom",horizontal:"left"},children:(0,Ae.jsx)(wp,{padding:"1rem",children:void 0!==r?Object.entries((e=>{const t=(e,t)=>e.reduce(((e,n)=>(void 0!==t[n]&&e.push([n,t[n]]),e)),[]);return{general:t(["photoId","make","model","dateTime"],e),droneRelated:t(["flightPitchDegree","gimbalPitchDegree","flightRollDegree","gimbalRollDegree","flightYawDegree","gimbalYawDegree"],e),position:t(["latitude","longitude","relativeAltitude","absoluteAltitude","rtkStatus"],e),camera:t(["imageHeight","imageWidth","fNumber","focalLength","focalLengthIn35mmFilm"],e),solarPanel:t(["solarPanelTechnology"],e),remarkable:t(["type"],e)}})(r)).map(((e,t,n)=>{let[r,i]=e;return(0,Ae.jsxs)(wp,{display:"flex",flexDirection:"column",justifyContent:"center",alignItems:"center",children:[(0,Ae.jsx)(wp,{display:"flex",flexDirection:"column",width:"100%",children:i.map((e=>{let[t,n]=e;return((e,t)=>(0,Ae.jsxs)(wp,{display:"flex",justifyContent:"space-between",alignItems:"center",gap:"1rem",width:"100%",children:[(0,Ae.jsx)("span",{children:e}),(0,Ae.jsx)(cu,{title:"Copy ".concat(e," in clipboard"),placement:"top",enterNextDelay:1e3,children:(0,Ae.jsx)("span",{onClick:e=>{e.stopPropagation(),navigator.clipboard.writeText(t)},style:{fontWeight:"bold",cursor:"pointer"},children:t})})]},e))(t,n)}))}),t!==n.length-1&&(0,Ae.jsx)(Qq,{style:{width:"100%",margin:"0.3rem 0"}})]},r)})):(0,Ae.jsx)($y,{})})}),(0,Ae.jsx)(ev,{onClick:async e=>{if(!a)return;t(e.currentTarget);const n=c.get(a);if(!n)return i(void 0);p(n)},style:{width:"100%",background:null===e?Jy.cancel:"black",color:null===e?"rgb(51, 59, 70)":"white"},children:(0,Ae.jsx)(_U.c,{})})]})})},j9e=Zo()((()=>({toolBtnContainer:{flex:1,maxWidth:"5rem"},toolBtnNavigationContainer:{maxWidth:"2.5rem","& button":{minWidth:"initial"}},toolBtn:{width:"100%"}}))),I9e=()=>{const{classes:e}=j9e(),[t,r]=(0,n.useState)(),i=(0,n.useContext)(f8e);if(!i)return(0,Ae.jsx)(Ae.Fragment,{});const o=(0,n.useContext)(m8e);if(!o)return(0,Ae.jsx)(Ae.Fragment,{});const{inspection:{id:s},photoId:{current:a}}=i,{goNextPhoto:l,goPreviousPhoto:c,goNextLine:u,goPreviousLine:d,palette:{current:h,set:p,isCurrentAnnotable:f}}=o,g=(0,n.useMemo)((()=>{if(!f)return"Cannot annotate using the selected palette, click to change palette.";const e=h.toUpperCase();return"Current palette: ".concat(e)}),[f,h]),[m,y]=(0,n.useState)(!1),v=(0,n.useCallback)((async()=>{if(a&&!m){y(!0);try{const{signedUrls:e,thermalPhotoIdString:t,rgbPhotoIdString:n}=await(async(e,t)=>{const n=await Ey("/inspections/".concat(e,"/download/").concat(t),{method:"GET"});if(!n.ok){var r;const e=await n.text();throw new Error(null!==(r=null!==e&&void 0!==e?e:n.statusText)&&void 0!==r?r:"An error occurred")}const{signedUrls:i,thermalPhotoIdString:o,rgbPhotoIdString:s}=await n.json();if(!Array.isArray(i)||2!==i.length)throw new Error("Invalid response from server, expected an array of 2 elements");return{signedUrls:i,thermalPhotoIdString:o,rgbPhotoIdString:s}})(s,a),r=document.createElement("a");r.style.display="none",document.body.appendChild(r);(await Promise.all(e.map((async e=>{const t=await fetch(e).then((e=>e.arrayBuffer()));return new Blob([t],{type:"image/jpeg"})})))).forEach(((e,i)=>{const o=URL.createObjectURL(e);r.href=o,r.download="Photo_".concat(0===i?t:n),r.click()}))}catch(e){r("Download is not available for this photo.")}y(!1)}}),[a,s,m]),_=(0,n.useCallback)((t=>{let{icon:n,tooltip:r,callback:i}=t;return(0,Ae.jsx)(ws,{item:!0,className:"".concat(e.toolBtnContainer," ").concat(e.toolBtnNavigationContainer),children:(0,Ae.jsx)(cu,{title:r,placement:"top",children:(0,Ae.jsx)("div",{children:(0,Ae.jsx)(ev,{className:e.toolBtn,color:"cancel",onClick:i,children:n})})})})}),[e]);return(0,Ae.jsxs)(ws,{container:!0,wrap:"nowrap",alignItems:"stretch",columnGap:"0.5rem",justifyContent:"flex-end",children:[(0,Ae.jsxs)(ws,{item:!0,className:e.toolBtnContainer,children:[(0,Ae.jsx)(cu,{title:"Download photos ".concat(null!==a&&void 0!==a?a:""),placement:"top",children:(0,Ae.jsx)("div",{children:(0,Ae.jsx)(ev,{loading:m,className:e.toolBtn,disabled:!a||m,onClick:v,color:"cancel",children:(0,Ae.jsx)(sF.c,{})})})}),t&&(0,Ae.jsx)(JT,{open:!!t,anchorOrigin:{vertical:"bottom",horizontal:"right"},autoHideDuration:3e3,onClose:()=>r(void 0),children:(0,Ae.jsx)(pM,{severity:"error",children:t})})]}),(0,Ae.jsx)(ws,{item:!0,className:e.toolBtnContainer,children:(0,Ae.jsx)(k9e,{})}),(0,Ae.jsx)(ws,{item:!0,children:(0,Ae.jsx)(cu,{title:g,placement:"bottom",children:(0,Ae.jsx)(wp,{width:"fit-content",children:(0,Ae.jsx)(C9e,{annotationDisabled:!f,currentPalette:h,onChange:p})})})}),(0,Ae.jsx)(_,{icon:(0,Ae.jsx)(u9e.c,{}),tooltip:"Previous photo (Q)",callback:c}),(0,Ae.jsx)(_,{icon:(0,Ae.jsx)(d9e.c,{}),tooltip:"Next photo (D or space)",callback:l}),(0,Ae.jsx)(_,{icon:(0,Ae.jsx)(h9e.c,{}),tooltip:"Previous line photo (Z)",callback:d}),(0,Ae.jsx)(_,{icon:(0,Ae.jsx)(p9e.c,{}),tooltip:"Next line photo (S)",callback:u})]})},G9e=()=>{const e=(0,n.useContext)(f8e);if(!e)return(0,Ae.jsx)(Ae.Fragment,{});const{areDiodeAnnotationsDisabled:t}=e,r=(0,n.useContext)(m8e);if(!r)return(0,Ae.jsx)(Ae.Fragment,{});const{goNextPhoto:i,goPreviousPhoto:o,goNextLine:s,goPreviousLine:a,tool:{set:l},defectType:{current:c,set:u},footprint:{current:d}}=r,h=(0,n.useCallback)((e=>{if(e.target instanceof HTMLTextAreaElement||e.target instanceof HTMLInputElement)return;const n=((e,t,n,r)=>({...zAe,ArrowLeft:{function:t,type:"function"},ArrowDown:{function:n,type:"function"},ArrowRight:{function:e,type:"function"},ArrowUp:{function:r,type:"function"}," ":{function:e,type:"function"},q:{function:t,type:"function"},d:{function:e,type:"function"},s:{function:n,type:"function"},z:{function:r,type:"function"}}))(i,o,s,a),r=e.ctrlKey?"CTRL_":"",c=e.key,h="".concat(r).concat(c);if(!Object.keys(n).includes(h))return;const p=n[e.key];if("tool"===p.type&&!d&&p.value===FAe.ADD_ANNOTATION)return;e.preventDefault(),e.stopPropagation();const f=n[e.key];switch(f.type){case"function":f.function();break;case"tool":l(f.value);break;case"defect":if(t&&f.value===PL.DIODE)return;u(f.value)}}),[i,o,s,a,u,l,d,t]);return(0,n.useEffect)((()=>(document.addEventListener("keydown",h),()=>{document.removeEventListener("keydown",h)})),[h]),(0,Ae.jsxs)(ws,{container:!0,wrap:"nowrap",columnGap:"0.5rem",justifyContent:"space-between",alignItems:"center",padding:"0.3rem",children:[(0,Ae.jsx)(ws,{item:!0,flex:1,children:(0,Ae.jsx)(a9e,{})}),(0,Ae.jsx)(ws,{item:!0,flex:1,children:(0,Ae.jsx)(E8e,{direction:"row",selected:c,onClick:e=>u(e),withTooltips:!0,areDiodeAnnotationsDisabled:t})}),(0,Ae.jsx)(ws,{item:!0,flex:1,children:(0,Ae.jsx)(I9e,{})})]})},T9e=5e3,M9e=e=>{const{inspection:t,locked:r=!1,priorityPhotosIds:i=[],getPhotoGSDData:o,isGSDFetched:s,getPanelsInfosForInspection:a}=e,[l,c]=(0,n.useState)([]),[u,d]=(0,n.useState)(!1),[h,p]=(0,n.useState)([]),[f,g]=(0,n.useState)([]),[y,v]=(0,n.useState)([]),[_,b]=(0,n.useState)([]),x=(0,n.useRef)(f),S=(0,n.useRef)(y),w=(0,n.useRef)(_),{AIModules:E,AIAnnotations:P,removeAnnotation:C}=NAe({inspectionId:t.id,priorityPhotosIds:i,locked:!u}),A=(0,n.useMemo)((()=>[t]),[t]),k=(0,n.useMemo)((()=>{const e=new Map;return e.set(t.id,l),e}),[l,t.id]),{annotationsPolygons:j}=UAe({inspections:A,annotationsMap:k,getPhotoGSDData:o,getPanelsInfosForInspection:a}),I=m();(0,n.useEffect)((()=>{x.current=f}),[f]),(0,n.useEffect)((()=>{S.current=y}),[y]),(0,n.useEffect)((()=>{w.current=_}),[_]),(0,n.useEffect)((()=>{const e=setInterval((()=>{if(0===x.current.length)return;const e=[...x.current];g([]),tEe(t.id,e)}),T9e);return()=>{clearInterval(e);const n=[...x.current];n.length>0&&tEe(t.id,n)}}),[t.id]),(0,n.useEffect)((()=>{const e=setInterval((()=>{if(0===S.current.length)return;const e=[...S.current];v([]),nEe(t.id,e)}),T9e);return()=>{const n=[...S.current];clearInterval(e),n.length>0&&nEe(t.id,n)}}),[t.id]),(0,n.useEffect)((()=>{const e=setInterval((()=>{if(0===w.current.length)return;const e=[...w.current];b([]),rEe(t.id,e.map(BCe))}),T9e);return()=>{clearInterval(e);const n=[...w.current];n.length>0&&rEe(t.id,n.map(BCe))}}),[t.id]);const G=(0,n.useCallback)((async e=>{const t=await eEe(e);c((e=>{const n=t.filter((t=>!e.some((e=>{let{photoId:n,id:r}=e;return t.id===r&&t.photoId===n}))));return[...e,...n]})),d(!0)}),[]);(0,n.useEffect)((()=>{r||G(t.id)}),[G,t.id,r]),(0,n.useEffect)((()=>{const e=P.filter((e=>!h.includes(e.photoId)));if(0===e.length)return;const t=e.filter((e=>{const t=l.filter((t=>{let{photoId:n}=t;return n===e.photoId})).map((e=>"coordinates"in e?e.coordinates:[]));return!t.some((t=>t.every((t=>e.coordinates.includes(t)))))})),n=t.map((e=>{var t,n,r;return{...e,note:"",severity:3,palette:_L.GREYSCALE,thermalStats:{max:null!==(t=e.maxCelcius)&&void 0!==t?t:0,mean:null!==(n=e.meanCelcius)&&void 0!==n?n:0,min:null!==(r=e.minCelcius)&&void 0!==r?r:0},ai:!0}}));c((e=>[...e,...n])),p((t=>[...t,...e.map((e=>e.photoId))]))}),[P,l,h]);const T=(0,n.useCallback)(((e,t,n)=>e.photoId===t&&e.id===n),[]),M=(0,n.useCallback)((e=>{c((t=>[...t,e]));const t=(e=>{var t,n,r,i;const o=MAe(e.photoId);return{...e,position:{lat:null!==(t=null===(n=e.position)||void 0===n?void 0:n.lat)&&void 0!==t?t:0,lon:null!==(r=null===(i=e.position)||void 0===i?void 0:i.lng)&&void 0!==r?r:0},urls:[],tmpCrop:!0,fileName:"".concat(o,"_").concat(e.id),key:o,height:"height"in e?e.height:0,width:"width"in e?e.width:0,x:"x"in e?e.x:0,y:"y"in e?e.y:0,angle:"angle"in e?e.angle:void 0,coordinates:"coordinates"in e?e.coordinates:void 0,thermalStats:e.thermalStats}})(e);I(Pm([t]))}),[I,c]),O=(0,n.useCallback)(((e,t,n)=>{c((r=>r.map((r=>T(r,e,t)?{...r,...n}:r)))),I(Cm({fileName:"".concat(MAe(e),"_").concat(t),type:n.type}))}),[I,c,T]),R=(0,n.useCallback)(((e,t)=>{c((n=>n.filter((n=>!T(n,e,t)))));const n="".concat(MAe(e),"_").concat(t);I(Am(n))}),[I,c,T]),D=(0,n.useCallback)((async e=>{var t,n;if(!("coordinates"in e))return;const r=o(e.photoId);if(!r)return;const i=oAe(e.coordinates,r.imageSize),s=k5(i),a=((e,t,n,r,i)=>{const o=r/100,s=e.width/2,a=e.height/2,l={x:(n.x-s)*o,y:(n.y-a)*o},c=xU(t.lat,t.lng,i+90,l.x),u=xU(c.lat,c.lon,i+180,l.y);return{lat:u.lat,lng:u.lon}})(r.imageSize,r.imageCoords,s,r.thermalGsd,r.yawDegree),l=null!==(t=e.id)&&void 0!==t?t:(new Date).getTime().toString(),c={...e,id:l,position:a,severity:3,note:"",thermalStats:null!==(n=e.thermalStats)&&void 0!==n?n:{max:0,mean:0,min:0},...zCe(e.coordinates)};M(c),g((e=>[...e,c]))}),[o,M]),N=(0,n.useCallback)((async(e,t)=>{if(x.current.find((e=>e.id===t))){const n=x.current.filter((e=>e.id!==t));return g(n),R(e,t),void C(e,t)}const n=l.find((n=>T(n,e,t)));n&&(R(e,t),C(e,t),b((e=>[...e,n])))}),[l,T,C,R]),L=(0,n.useCallback)((async(e,t,n)=>{if(f.find((e=>e.id===t))){const r=f.map((e=>e.id===t?void 0===n.type?e:{...e,type:n.type}:e));return g(r),void O(e,t,n)}O(e,t,n);const r=l.find((n=>n.photoId===e&&n.id===t));if(r)return v((e=>[...e,{...r,...n}])),null!==r&&void 0!==r&&r.ai?(await D({...r,...n}),void await N(e,t)):void 0}),[l,f,D,N,O]),V=(0,n.useCallback)((e=>l.filter((t=>t.photoId===e))),[l]),F=(0,n.useCallback)(((e,t)=>l.find((n=>T(n,e,t)))),[l,T]),z=(0,n.useCallback)((e=>{const t=V(e),n=E.filter((t=>t.photoId===e)).filter((e=>!t.some((t=>"coordinates"in t&&t.coordinates.every(((t,n)=>t===e.coordinates[n]))))));return n}),[E,V]),B=(0,n.useMemo)((()=>[f,y,_].some((e=>0!==e.length))),[f,_,y]);return{annotations:l,canCreateAnnotation:s,getPhotoAnnotations:V,getAnnotation:F,createAnnotation:D,updateAnnotation:L,deleteAnnotation:N,modules:E,getPhotoModules:z,annotationsPolygons:j,isSaving:B}},O9e=()=>{const e=(0,n.useContext)(NEe);if(!e)return(0,Ae.jsx)(Ae.Fragment,{});const{annotatorPopover:t}=e,r=(0,n.useContext)(f8e);if(!r)throw new Error("SolarAnnotatedPopover must be used within a SolarAnnotateContextProvider");const{inspection:i,annotations:{all:o},remarkablePhotos:{viewed:s,viewedPercent:a},photos:{count:l}}=r,c=o.reduce(((e,t)=>(t.type===PL.HOTSPOT?e.hotspot+=1:t.type===PL.DIODE?e.diode+=1:t.type===PL.DISCONNECTED&&(e.disconnected+=1),e.annotations+=1,e)),{hotspot:0,diode:0,disconnected:0,annotations:0}),u=a<95,d=()=>{(async e=>{const t=await Ey("/".concat(KL,"/").concat(e,"/annotator-validation"),{method:"PATCH"});if(!t.ok){const e=await t.text();throw new Error(null!==e&&void 0!==e?e:"An error occurred")}t.json()})(i.id),null===t||void 0===t||t.setAnnotatedPopover(!1),window.location.href="/"},h=async()=>{(async e=>{const t=await Ey("/".concat(KL,"/").concat(e,"/quality-check-confirmation"),{method:"PATCH"});if(!t.ok){const e=await t.text();throw new Error(null!==e&&void 0!==e?e:"An error occurred")}t.json()})(i.id),null===t||void 0===t||t.setAnnotatedPopover(!1),null===t||void 0===t||t.setAnnotatedPopoverQualityCheckValidated(!0)},p=()=>(0,Ae.jsxs)(ws,{container:!0,padding:"1rem",justifyContent:"center",alignItems:"center",direction:"column",textAlign:"left",gap:"1rem",children:[(0,Ae.jsx)(ws,{item:!0,style:{fontWeight:"bold"},children:"Are you sure you want to mark this inspection as annotated?"}),(0,Ae.jsx)(ws,{item:!0,style:{fontWeight:"bold"},children:"You will not be able to annotate anymore."}),(0,Ae.jsxs)(ws,{item:!0,children:["Photos viewed: ",s.length," / ",l," (",a," %)"]}),(0,Ae.jsxs)(ws,{item:!0,children:["Hotspots: ",c.hotspot]}),(0,Ae.jsxs)(ws,{item:!0,children:["Diodes: ",c.diode]}),(0,Ae.jsxs)(ws,{item:!0,children:["Disconnected: ",c.disconnected]}),u&&(0,Ae.jsxs)(ws,{item:!0,style:{color:Bp},children:[95,"% of the photos must be viewed before marking as annotated"]}),(0,Ae.jsx)(ws,{item:!0,margin:"1rem",children:(0,Ae.jsx)(ohe,{onCancel:()=>null===t||void 0===t?void 0:t.setAnnotatedPopover(!1),onValidate:d,validateText:"Mark as annotated",validateDisabled:u})})]}),f=()=>(0,Ae.jsxs)(ws,{container:!0,padding:"1rem",justifyContent:"center",alignItems:"center",direction:"column",textAlign:"left",children:[(0,Ae.jsx)(ws,{item:!0,children:"Are you sure you want to mark this inspection aiStatus as complete ?"}),(0,Ae.jsxs)(ws,{item:!0,children:["Photos viewed: ",s.length," / ",l," (",a," %)"]}),(0,Ae.jsxs)(ws,{item:!0,children:["Hotspots: ",c.hotspot]}),(0,Ae.jsxs)(ws,{item:!0,children:["Diodes: ",c.diode]}),(0,Ae.jsxs)(ws,{item:!0,children:["Disconnected: ",c.disconnected]}),(0,Ae.jsx)(ws,{item:!0,margin:"1rem",children:(0,Ae.jsx)(ohe,{onCancel:()=>null===t||void 0===t?void 0:t.setAnnotatedPopover(!1),onValidate:h,validateText:"Mark as complete"})})]});return(0,Ae.jsx)($x,{open:(null===t||void 0===t?void 0:t.isAnnotatedPopover)||!1,onClose:()=>null===t||void 0===t?void 0:t.setAnnotatedPopover(!1),children:Eo()?(0,Ae.jsx)(f,{}):(0,Ae.jsx)(p,{})})},R9e=(e,t,n)=>e>=t&&e<=n,D9e={stroke:"red",size:2,fill:"transparent"},N9e=Zo()((()=>({pointerEvents:{width:"fit-content",..._0},mapLeftToolbar:{..._0,flexWrap:"nowrap",height:"100%",justifyContent:"space-between",overflowY:"auto"},progressBar:{width:200,borderRadius:"0.5rem",backgroundColor:"white",padding:"0.5rem 1rem"},keepMapContainer:{width:"fit-content",borderRadius:"0.5rem",backgroundColor:"white",padding:"0.5rem 1rem"}}))),L9e=()=>{var e,t;const{classes:r}=N9e(),[i,o]=(0,n.useState)(!0),[s,a]=(0,n.useState)([]),l=(0,n.useContext)(f8e);if(!l)throw new Error("SolarAnnotateContext is not defined");const{inspection:c,photoId:{current:u,set:d},annotations:{polygons:h},remarkablePhotos:{viewed:p,viewedPercent:f},offset:{current:g,set:m},photos:{count:y,polygons:v,exifs:_}}=l,[b,x]=(0,n.useMemo)((()=>{var e;const t=(null!==(e=null===c||void 0===c?void 0:c.subAsset.area)&&void 0!==e?e:[]).map((e=>({lat:e._latitude,lng:e._longitude}))),n=t.length>=2?(0,w0.getRhumbLineBearing)({latitude:t[0].lat,longitude:t[0].lng},{latitude:t[1].lat,longitude:t[1].lng}):0,r=[-360,-270,-180,-90,0,90,180,270,360],i=e=>((e,t)=>{let n=Math.abs(e-t[0]),r=t[0];for(let i=1;i<t.length;i++){const o=Math.abs(e-t[i]);o<n&&(n=o,r=t[i])}return r})(e%360,r),o=[..._.values()].reduce(((e,t)=>{let{flightYawDegree:n}=t;return e+(i(n)+360)%360}),0)/_.size,s=i(o),a=i(n)-s!==90;return[UPe(-(n+(a?180:0)-90)),t]}),[c.subAsset.area,_]);(0,n.useEffect)((()=>{var e;if(!i)return;const t=v.find((e=>{let{id:t}=e;return t===u})),n=null!==(e=null===t||void 0===t?void 0:t.coords)&&void 0!==e?e:x,r=t?"large":"small",o=O3(n.filter(F3),r);a(o)}),[i,u,v,x]);const S=(0,n.useCallback)((e=>{if(!e)return;const t=null===e||void 0===e?void 0:e.getId();return t?d("".concat(t)):void 0}),[d]),w=(0,n.useCallback)((e=>{const t=e.id,n="".concat(t).split("_")[0];n&&d(n)}),[d]),E=(0,n.useMemo)((()=>u?[u]:[]),[u]);return(0,Ae.jsxs)(wp,{position:"relative",width:"100%",height:"100%",children:[(0,Ae.jsxs)(_Ce,{assetId:null!==(e=null===c||void 0===c?void 0:c.asset.id)&&void 0!==e?e:"",subAssetsIds:[null!==(t=null===c||void 0===c?void 0:c.subAsset.id)&&void 0!==t?t:""],withSubAssetsPolygons:!0,withLatLngPicker:!0,bounds:s,mapRotation:null!==b&&void 0!==b?b:0,leftBar:(0,Ae.jsxs)(ws,{container:!0,direction:"column",className:"".concat(r.mapLeftToolbar," ").concat(r.pointerEvents),children:[(0,Ae.jsxs)(ws,{item:!0,container:!0,direction:"column",wrap:"nowrap",rowGap:"0.25rem",className:r.pointerEvents,children:[(0,Ae.jsx)(wp,{className:r.progressBar,children:(0,Ae.jsx)(qpe,{value:f,suffixText:"% viewed (".concat(p.length," / ").concat(y,")")})}),(0,Ae.jsx)(wp,{className:r.keepMapContainer,children:(0,Ae.jsx)(aF,{text:"Automatic map",small:!0,checked:i,onChange:e=>o(e),textStyle:{fontSize:"12px"}})})]}),(0,Ae.jsx)(ws,{item:!0,className:r.pointerEvents,children:Eo()&&(0,Ae.jsx)(WEe,{icon:(0,Ae.jsx)(BEe.c,{color:"secondary",fontSize:"medium",style:{transform:"rotate(45deg)"}}),children:(0,Ae.jsx)(EPe,{offset:g,onChange:m})})})]}),children:[(0,Ae.jsx)(yPe,{polygons:v,selectable:!0,onPolygonSelected:S,selectedPolygonsIds:E,onHoverStyle:D9e,zIndex:12}),(0,Ae.jsx)(yPe,{polygons:h,onPolygonClicked:w,onHoverStyle:D9e,zIndex:13,clickable:!0})]}),(0,Ae.jsx)(O9e,{})]})},V9e=(e,t)=>{const[r,i]=(0,n.useState)(!0),[o,s]=(0,n.useState)(),a=(0,n.useCallback)((async()=>{if(!t||!r)return;const n=await(async(e,t)=>{const n=await Ey("/inspections/".concat(e,"/exif/").concat(t),{method:"GET"});if(!n.ok){var r;const e=await n.text();throw new Error(null!==(r=null!==e&&void 0!==e?e:n.statusText)&&void 0!==r?r:"An error occurred")}return n.json()})(e,t);n.model&&s(n.model),i(!1)}),[e,t,r]);return(0,n.useEffect)((()=>{a()}),[a]),{droneModel:o}},F9e=CC.record(CC.string().refine((e=>{const t=Number(e);return!Number.isNaN(t)&&t>=0})),CC.number().min(-32768).max(32767).int()),z9e=CC.object({photoId:CC.string(),imageWidth:CC.number().positive(),imageHeight:CC.number().positive(),celciusValues:F9e}),B9e=e=>{const{inspectionId:t,locked:r,photosIds:i}=e,[o,s]=(0,n.useState)(new Map),[a,l]=(0,n.useState)([]),c=(0,n.useMemo)((()=>{const e=[...a,...o.keys()];return i.filter((t=>!e.includes(t)))}),[i,o,a]),u=(0,n.useCallback)((async(e,t)=>{if(0===t.length)return;l((e=>[...e,...t]));const n=await(async(e,t)=>{const n=new URLSearchParams;t.forEach((e=>n.append("photosIds",e)));const r=await Ey("/inspections/".concat(e,"/thermal-celcius?").concat(n.toString()),{method:"GET"});if(!r.ok){var i;const e=await r.text();throw new Error(null!==(i=null!==e&&void 0!==e?e:r.statusText)&&void 0!==i?i:"[getSolarInspectionPhotosCelciusData] An error occured")}const o=await r.json();if(!Array.isArray(o))throw new Error("Invalid json");return CC.array(CC.any()).transform((e=>e.filter((e=>z9e.safeParse(e).success)))).parse(o)})(e,t);s((e=>{const t=new Map(e);return n.forEach((e=>{t.set(e.photoId,e)})),t})),l((e=>e.filter((e=>!n.some((t=>t.photoId===e))))))}),[]);(0,n.useEffect)((()=>{r||u(t,c)}),[u,t,r,c]);const d=(0,n.useCallback)((e=>o.get(e)),[o]),h=(0,n.useCallback)(((e,t)=>{const n=d(e);if(!n)return 0;const{celciusValues:r,imageWidth:i}=n,{x:o,y:s}=t;return r[s*i+o]/10}),[d]);return{getPhotoCelciusData:d,getPhotoTemperatureAtPixel:h}},U9e=CC.object({id:CC.string(),photoId:CC.string(),temperature:CC.number(),x:CC.number().min(0).max(100),y:CC.number().min(0).max(100)}),W9e=e=>{const{inspectionId:t,locked:r}=e,[i,o]=(0,n.useState)(!1),[s,a]=(0,n.useState)([]),l=(0,n.useCallback)((async e=>{const t=await(async e=>{const t=await Ey("/inspections/".concat(e,"/pickers"),{method:"GET"}),n=await t.json();if(!t.ok){var r;const e=await t.text();throw new Error(null!==(r=null!==e&&void 0!==e?e:t.statusText)&&void 0!==r?r:"[getSolarInspectionPickers] An error occured")}return CC.array(CC.any()).transform((e=>e.filter((e=>U9e.safeParse(e).success)))).parse(n)})(e);a(t)}),[]);(0,n.useEffect)((()=>{r||i||(o(!0),l(t))}),[r,i,t,l]);const c=(0,n.useCallback)((e=>{const t=MAe(e);return s.filter((e=>e.photoId===t))}),[s]),u=(0,n.useCallback)((e=>{const n=MAe(e.photoId);a((t=>[...t,{...e,photoId:n}])),(async(e,t,n)=>{const r=await Ey("/inspections/".concat(e,"/pickers/").concat(t),{method:"POST",body:JSON.stringify(n)});if(!r.ok){var i;const e=await r.text();throw new Error(null!==(i=null!==e&&void 0!==e?e:r.statusText)&&void 0!==i?i:"[createSolarInspectionPicker] An error occurred")}r.json()})(t,n,e)}),[t]),d=(0,n.useCallback)(((e,n)=>{const r=MAe(e);a((e=>e.filter((e=>!(e.photoId===r&&e.id===n))))),(async(e,t,n)=>{const r=await Ey("/inspections/".concat(e,"/pickers/").concat(t,"/").concat(n),{method:"DELETE"});if(!r.ok){var i;const e=await r.text();throw new Error(null!==(i=null!==e&&void 0!==e?e:r.statusText)&&void 0!==i?i:"[deleteSolarInspectionPicker] An error occurred")}})(t,r,n)}),[t]);return{getPhotoPickers:c,addPicker:u,removePicker:d}},H9e=()=>(0,Ae.jsx)(ZAe,{component:"SolarAnnotate",componentVersion:1,title:"Welcome to the new Solar Annotation tool",children:(0,Ae.jsxs)(wp,{display:"flex",flexDirection:"column",justifyContent:"center",alignItems:"flex-start",textAlign:"justify",gap:"0.3rem",width:"100%",children:[(0,Ae.jsx)(vu,{children:"We have added new features to help you annotate faster and more efficiently."}),(0,Ae.jsxs)(vu,{children:["To handle this new tool, we have created a tutorial to help you. Please visit the documentation right"," ",(0,Ae.jsx)("a",{href:"https://skyvisor.notion.site/What-s-new-at-SkyVisor-6a17f95cd70c42eaa28c2ee2466eca97?pvs=4",style:{textDecoration:"none",fontWeight:"bold"},target:"_blank",rel:"noreferrer",children:"here."})]}),(0,Ae.jsxs)(vu,{children:["There is also a presentation video available in English below and in french"," ",(0,Ae.jsx)("a",{style:{textDecoration:"none",fontWeight:"bold"},href:"https://youtu.be/KtRAqmH917M",target:"_blank",rel:"noreferrer",children:"here"}),"."]}),(0,Ae.jsx)("iframe",{width:"560",height:"315",src:"https://www.youtube-nocookie.com/embed/r9KUiwQncrQ?si=npyduv7X5M1D9kSe",title:"YouTube video player",allow:"accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share",allowFullScreen:!0}),(0,Ae.jsxs)(vu,{children:["If you have any questions or feedback, please contact us at"," ",(0,Ae.jsx)("a",{href:"mailto:\r support@skyvisor.eu",style:{textDecoration:"none",fontWeight:"bold"},target:"_blank",rel:"noreferrer",children:"support@skyvisor.eu"})]}),(0,Ae.jsx)(vu,{children:"Thank you for your trust and enjoy the new tool!"})]})}),q9e=e=>{const{annotatorMail:t,open:n,setOpen:r}=e;return(0,Ae.jsxs)($x,{open:n,children:[(0,Ae.jsxs)(YAe,{align:"center",children:["Inspection is currently annotated by ",t]}),(0,Ae.jsxs)(zx,{style:{padding:"1rem"},children:[(0,Ae.jsxs)(Nke,{align:"center",children:["Are you sure you want to annotate this inspection? You might duplicate the work of ",t,". Please contact him/her before proceeding."]}),(0,Ae.jsx)(ohe,{cancelText:"Go back",validateText:"I want to proceed",onCancel:()=>window.history.back(),onValidate:()=>r(!1)})]})]})},X9e=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return e=>t.reduce(((e,t)=>t(e)),e)},Y9e=e=>t=>n=>t?n.filter((n=>Array.isArray(t)?t.includes(n[e]):n[e]===t)):n,K9e=Y9e("type"),Z9e=Y9e("status"),$9e=Y9e("severity"),J9e=e=>{const{inspectionIds:t,withAnnotations:r=!1,filters:i}=e,[o,s]=(0,n.useState)(),[a,l]=(0,n.useState)(),[c,u]=(0,n.useState)(!1),[d,h]=(0,n.useState)([]),[p,f]=(0,n.useState)([]);(0,n.useEffect)((()=>{if(0===t.length)return;(async()=>{u(!0);const e=await Promise.all(t.map((e=>(async e=>{const t=await Ey("/inspections/".concat(e,"/defects"));if(!t.ok){var n;const e=await t.text();throw new Error(null!==(n=null!==e&&void 0!==e?e:t.statusText)&&void 0!==n?n:"Unknown error")}return await t.json()})(e))));s(e),h(e.flat()),u(!1)})()}),[t]);const g=(0,n.useMemo)((()=>{if(!o)return[];if(!i)return o;const e=X9e($9e(i.severities),K9e(i.defects)),t=o.map((t=>e(t)));if(i.status){return t.map((e=>e.filter((e=>{var t;return i.status===pAe.OPEN?!e.state||(null===(t=e.state)||void 0===t?void 0:t.status)===i.status:e.state&&e.state.status===i.status}))))}return t}),[o,i]);(0,n.useEffect)((()=>{if(!r&&!i)return;if(0===t.length)return;(async()=>{u(!0);const e=await Promise.all(t.map((e=>eEe(e))));l(e),f(e.flat()),u(!1)})()}),[t,r,i]);const m=(0,n.useMemo)((()=>{if(!a)return[];if(!i)return a;const e=X9e((t=null===i||void 0===i?void 0:i.deltaT,e=>t?e.filter((e=>{if(!("thermalStats"in e))return!0;const n=Ly(e.thermalStats.max-e.thermalStats.mean,2);return R9e(n,t[0],t[1])})):e),(e=>t=>e?t.filter((t=>!("thermalStats"in t)||R9e(t.thermalStats.max,e[0],e[1]))):t)(null===i||void 0===i?void 0:i.maxT));var t;return a.map((t=>e(t)))}),[a,i]),y=(0,n.useMemo)((()=>{if(!g||!m)return new Map;const e=g.flat(),t=m.flat(),n=new Map;return e.forEach((e=>{const r=e.annotations.flatMap((e=>{let{annotationRef:n}=e;const[r,i]=n.split("_"),o="".concat(TAe(r),"_").concat(i);return t.find((e=>"".concat(TAe(e.photoId),"_").concat(e.id)===o))})).flatMap((e=>e?[e]:[]));r.length>0&&n.set(e.id,r)})),n}),[g,m]),v=(0,n.useMemo)((()=>{if(!g)return new Map;const e=new Map;if(!i)return g.forEach(((n,r)=>{e.set(t[r],n)})),e;const n=g.map((e=>e.filter((e=>y.has(e.id)))));return h(n.flat()),n.forEach(((n,r)=>{e.set(t[r],n)})),e}),[g,y,i,t]),_=(0,n.useMemo)((()=>{if(!m)return new Map;const e=new Map;if(!i)return m.forEach(((n,r)=>{e.set(t[r],n)})),e;const n=m.map((e=>e.filter((e=>Array.from(y.values()).some((t=>t.some((t=>t.id===e.id))))))));return f(n.flat()),n.forEach(((n,r)=>{e.set(t[r],n)})),e}),[m,y,i,t]);return{isLoading:c,defects:d,annotations:p,annotationsMap:_,defectsMap:v,defectToAnnotationsMap:y}},Q9e=Math.floor(window.innerHeight/2),e7e=Math.min(512,Q9e),t7e=["M3T","ZH20T"],n7e=Zo()((()=>({imagesContainer:{backgroundColor:"black",height:"".concat(e7e,"px")}}))),r7e=e=>{var t,r,i;const o=m(),{defaultPhotoId:s}=e,a=b(Nm);if(!a)return null;const{classes:l}=n7e(),[c,u]=(0,n.useState)(5),[d,h]=(0,n.useState)(!0),[p,f]=(0,n.useState)(!1),[g,y]=(0,n.useState)([]),[v,_]=(0,n.useState)(),[x,S]=(0,n.useState)(PL.HOTSPOT),[w,E]=(0,n.useState)(_L.GREYSCALE),[P,C]=(0,n.useState)(!1),[A,k]=(0,n.useState)(B2e),[j,I]=(0,n.useState)(),[G,T]=(0,n.useState)(),M=b(wo);(0,n.useEffect)((()=>{(async()=>{var e;const t=null===g||void 0===g||null===(e=g[0])||void 0===e?void 0:e[0];if(!a||!t)return;const n=await XV(a.id,[t],_L.GREYSCALE),{estimatedBandwithInKBps:r,fileSizeInKByte:i}=await(async e=>{const t=performance.now();await fetch(e);const n=performance.now(),r=await xhe(e)/1e3;return{estimatedBandwithInKBps:r/((n-t)/1e3),fileSizeInKByte:r}})(n[0]),o=Math.min(40,Math.max(5,Math.floor(r/(i/2))));u(o)})()}),[a,g]),(0,n.useEffect)((()=>{if(!Eo())return;const e=e=>{"i"===e.key&&C((e=>!e))};return window.addEventListener("keydown",e),()=>window.removeEventListener("keydown",e)}),[]),(0,n.useEffect)((()=>{var e,t,n;bB()&&null!==(e=a.annotationOutsource)&&void 0!==e&&e.currentAnnotator?T(null!==(t=(null===(n=a.annotationOutsource)||void 0===n?void 0:n.currentAnnotator)!==M.email)&&void 0!==t&&t):T(!1)}),[null===(t=a.annotationOutsource)||void 0===t?void 0:t.currentAnnotator,M.email]);const[O,R]=(0,n.useState)({x:0,y:0}),D=(0,n.useMemo)((()=>g.flatMap((e=>e))),[g]),N=(0,n.useMemo)((()=>({width:640,height:512})),[]),L=e7e,V=(0,n.useMemo)((()=>a.id),[a.id]),{prevPhotoCount:F,nextPhotoCount:z}=(0,n.useMemo)((()=>w===_L.GREYSCALE?{prevPhotoCount:2,nextPhotoCount:c}:{prevPhotoCount:1,nextPhotoCount:3}),[w,c]),{getPhotoGSDData:B,isGSDFetched:U}=VAe({inspectionId:V}),{currentPhotoId:W,setCurrentPhotoId:H,currentLine:q,totalLines:X,currentPhotoNeighbors:Y,currentLinePhotosUrls:K,allSignedPhotosIds:Z,goNextPhoto:$,goPreviousPhoto:J,goNextLine:Q,goPreviousLine:ee,photosPolygons:te,viewedPhotos:ne,flaggedPhotos:re,manualPhotos:ie,calibrationPhotos:oe,photosDataExifs:se,isSaving:ae}=w8e({inspectionId:V,currentPalette:w,photosPerLines:g,originalImageSize:N,imageSize:L,fetchSettings:{prevPhotosCount:F,nextPhotosCount:z},getPhotoGSDData:B}),le=(0,n.useMemo)((()=>0===Z.length),[Z]),ce=(0,n.useMemo)((()=>[a]),[a]),{getPanelsInfosForInspection:ue}=JAe({inspections:ce}),de=(0,n.useMemo)((()=>ue(V)),[ue,V]),{annotations:he,annotationsPolygons:pe,canCreateAnnotation:fe,getAnnotation:ge,getPhotoAnnotations:me,createAnnotation:ye,updateAnnotation:ve,deleteAnnotation:_e,modules:be,getPhotoModules:xe,isSaving:Se}=M9e({inspection:a,priorityPhotosIds:Z,locked:le,offset:O,getPhotoGSDData:B,isGSDFetched:U,getPanelsInfosForInspection:ue}),{inspectionIds:we}=(0,n.useMemo)((()=>({inspectionIds:[V]})),[V]),{defects:Ee}=J9e({inspectionIds:we}),{droneModel:Pe}=V9e(V,W),{getPhotoCelciusData:Ce,getPhotoTemperatureAtPixel:ke}=B9e({inspectionId:V,locked:le||j!==FAe.PICKER,photosIds:Y}),{addPicker:je,getPhotoPickers:Ie,removePicker:Ge}=W9e({locked:le,inspectionId:V}),Te=(0,n.useMemo)((()=>Se||ae),[Se,ae]);(0,n.useEffect)((()=>{if(!bB()||void 0===G||G)return;const e=p8e(),{email:t}=wo();e.emit("inspection-workflow",JSON.stringify({inspectionId:V,email:t}));const n=()=>{e.disconnect()};return window.addEventListener("beforeunload",n),()=>{n(),window.removeEventListener("beforeunload",n)}}),[V,G]),(0,n.useEffect)((()=>{o(hg(Te))}),[Te,o]),(0,n.useEffect)((()=>{if(!Te)return;const e=e=>e.returnValue="Some data are saving, please wait before quitting this page.";return window.addEventListener("beforeunload",e),()=>{window.removeEventListener("beforeunload",e)}}),[Te,V]);const Me=(0,n.useMemo)((()=>{const e=g.flat().length;return 0===e?0:Math.floor(100*ne.length/e)}),[g,ne]),Oe=(0,n.useMemo)((()=>g.flat().length),[g]);(0,n.useEffect)((()=>{Pe&&(t7e.includes(Pe)||E(_L.HOTWHITE))}),[Pe,E]);const Re=(0,n.useMemo)((()=>{if(w===_L.RGB)return!1;if(!Pe)return!0;return!(!t7e.includes(Pe)&&w===_L.GREYSCALE)}),[Pe,w]);(0,n.useEffect)((()=>{(async e=>{f(!0);const t=await $V(e);y(t),f(!1)})(V)}),[V]),(0,n.useEffect)((()=>{const e=s?TAe(s):D[0];H(e)}),[H,s,D]),(0,n.useEffect)((()=>{fe&&void 0===j&&I(FAe.DRAW_ANNOTATION)}),[j,fe]);const De=(0,n.useCallback)(((e,t)=>{const n={...O,[e]:t};R(n),Sy.dispatch(Rm(n))}),[O]);(0,n.useEffect)((()=>{if(!bB())return;if(!d)return;const e=setInterval((()=>{ZL(V,{"annotationOutsource.time":3e4})}),3e4);return()=>clearInterval(e)}),[d,V]),(0,n.useEffect)((()=>{if(!bB())return;let e;const t=()=>{h(!0),e&&clearTimeout(e),e=setTimeout((()=>{h(!1)}),18e4)};return window.addEventListener("click",t),window.addEventListener("mousemove",t),window.addEventListener("keydown",t),()=>{window.removeEventListener("click",t),window.removeEventListener("mousemove",t),window.removeEventListener("keydown",t),e&&clearTimeout(e)}}),[]),(0,n.useEffect)((()=>{const e=setTimeout((()=>{ZV(a.id,O)}),500);return()=>{clearTimeout(e)}}),[O,a.id]),(0,n.useEffect)((()=>{a.offsetAnnotations&&(O.x===a.offsetAnnotations.x&&O.y===a.offsetAnnotations.y||R({x:a.offsetAnnotations.x,y:a.offsetAnnotations.y}))}),[O,a.offsetAnnotations]);const Ne=(0,n.useMemo)((()=>(null===de||void 0===de?void 0:de.panelModel.technology)===QAe.THIN_FILM),[de]),Le=(0,n.useMemo)((()=>({inspection:a,fetchParams:{prev:F,next:z},photoId:{current:W,set:H},line:{current:q,total:X},originalImageSize:N,imageSize:L,annotations:{all:he,disabled:!fe||!Re,getOne:ge,getPerPhoto:me,create:ye,update:ve,delete:_e,polygons:pe},modules:{all:be,getPerPhoto:xe,forceDisplaySolarPanels:P},defects:Ee,photosUrls:{currentLinePhotosUrls:K},remarkablePhotos:{viewed:ne,flagged:re,manual:ie,calibration:oe,viewedPercent:Me},photos:{count:Oe,polygons:te,exifs:se},celcius:{getPerPhoto:Ce,getTemperature:ke},pickers:{getPerPhoto:Ie,add:je,remove:Ge},offset:{current:O,set:De},gridShape:{current:A,set:k},isSaving:Te,panelInfos:de,areDiodeAnnotationsDisabled:Ne})),[a,de,F,z,W,H,q,X,N,L,he,fe,Re,ge,me,ye,ve,_e,pe,be,Ee,xe,K,Oe,ne,ie,oe,Me,re,Ce,ke,Ie,je,Ge,O,De,A,Te,te,se,Ne,P]),Ve=(0,n.useMemo)((()=>({goNextPhoto:$,goPreviousPhoto:J,goNextLine:Q,goPreviousLine:ee,tool:{current:j,set:I,disabled:!fe||!Re},footprint:{current:v,set:_},defectType:{current:x,set:S},palette:{current:w,set:E,isCurrentAnnotable:Re}})),[$,J,Q,ee,j,fe,Re,v,x,w]),Fe=(0,n.useCallback)((()=>p?(0,Ae.jsx)(Iwe,{text:"Loading photos\u2026"}):(0,Ae.jsx)(U8e,{})),[p]);return(0,Ae.jsxs)(Ae.Fragment,{children:[(0,Ae.jsx)(q9e,{open:!!G,setOpen:T,annotatorMail:null!==(r=null===(i=a.annotationOutsource)||void 0===i?void 0:i.currentAnnotator)&&void 0!==r?r:"Unknown"}),(0,Ae.jsx)(g8e,{context:Le,children:(0,Ae.jsxs)(ws,{container:!0,direction:"column",wrap:"nowrap",height:"100%",children:[(0,Ae.jsx)(ws,{item:!0,flex:1,children:!le&&(0,Ae.jsx)(L9e,{})}),(0,Ae.jsxs)(y8e,{context:Ve,children:[(0,Ae.jsx)(ws,{item:!0,children:(0,Ae.jsx)(G9e,{})}),(0,Ae.jsx)(ws,{item:!0,className:l.imagesContainer,children:(0,Ae.jsx)(Fe,{})})]})]})}),(0,Ae.jsx)(KAe,{inspection:a}),(0,Ae.jsx)(H9e,{})]})},i7e=e=>{let{children:t,context:n}=e;return(0,Ae.jsx)(NEe.Provider,{value:n,children:t})};var o7e=__webpack_require__(65076);const s7e=e=>{const[t,r]=(0,n.useState)(e.realValue?e.realValue:[0,0]),i=(e=>{const t=(0,n.useRef)();return(0,n.useEffect)((()=>{t.current=e})),t.current})(e.range);(0,n.useEffect)((()=>{if(!e.range[0]&&!e.range[1]||e.currentPhotoId||(r(e.range),e.updateValue(e.range)),e.currentPhotoId)if(i){const n=e.range[0]&&(t[0]<=e.range[0]||i&&i[0]===t[0])?e.range[0]:t[0],o=e.range[1]&&(t[1]>=e.range[1]||i&&i[1]===t[1])?e.range[1]:t[1];r([n,o]),e.updateValue([n,o])}else r(e.range),e.updateValue(e.range)}),[e.range[0],e.range[1]]),(0,n.useEffect)((()=>{(e.reset&&e.range[0]&&e.range[1]||t[0]<e.range[0]||t[1]>e.range[1])&&(r(e.range),e.changeReset())}),[e.reset]);return(0,Ae.jsxs)("div",{className:"mt-4",children:[e.title?(0,Ae.jsx)(vu,{id:"range-slider",gutterBottom:!0,children:e.title}):null,(0,Ae.jsx)(WW,{value:[...t],onChangeCommitted:(t,n)=>e.updateValue(n,!0),onChange:(e,t)=>r(t),"aria-labelledby":"range-slider",valueLabelDisplay:"on",style:{padding:e.padding?e.padding:"13px 0",color:!e.range.length||t[0]===e.range[0]&&t[1]===e.range[1]?jp:"rgb(241, 89, 89)"},min:e.range[0],max:e.range[1]})]})};var a7e,l7e;function c7e(){return c7e=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},c7e.apply(this,arguments)}function u7e(e,t){let{title:r,titleId:i,...o}=e;return n.createElement("svg",c7e({width:168,height:55,viewBox:"0 0 168 55",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:t,"aria-labelledby":i},o),r?n.createElement("title",{id:i},r):null,a7e||(a7e=n.createElement("g",{clipPath:"url(#clip0)"},n.createElement("path",{id:"blade1",d:"M6.89214 13.7447C8.25187 13.7447 42.6982 14.1965 54.4825 14.1965C66.2668 14.1965 121.109 3.80594 121.109 3.80594C121.109 3.80594 130.627 1.54704 139.692 1.09524C143.123 0.92428 152.884 0.99612 161.5 1.21402C161.5 1.21402 167 14.5002 167 27.5002C167 40.5002 161.5 53.7715 161.5 53.7715C73.9018 53.484 6.17695 53.2092 5.53242 53.0486M6.89214 13.7447C5.53242 13.7447 0.999998 18.7142 0.999999 32.719C1 46.7238 3.71945 52.5968 5.53242 53.0486M6.89214 13.7447C6.89214 13.7447 12.331 16.0036 12.331 32.719C12.331 49.4344 5.53242 53.0486 5.53242 53.0486",stroke:"black"}))),l7e||(l7e=n.createElement("defs",null,n.createElement("clipPath",{id:"clip0"},n.createElement("rect",{y:55,width:55,height:168,transform:"rotate(-90 0 55)",fill:"white"})))))}const d7e=n.forwardRef(u7e);__webpack_require__.p;var h7e,p7e;function f7e(){return f7e=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},f7e.apply(this,arguments)}function g7e(e,t){let{title:r,titleId:i,...o}=e;return n.createElement("svg",f7e({width:170,height:55,viewBox:"0 0 170 55",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:t,"aria-labelledby":i},o),r?n.createElement("title",{id:i},r):null,h7e||(h7e=n.createElement("g",{clipPath:"url(#clip0)"},n.createElement("path",{id:"blade2",d:"M36.8 3.8051C25.956 2.3905 20.03 1.9981 10.966 1.5463C8.33948 1.41537 5.01498 1.30217 1.5 1.21328C1.5 1.21328 7 11 7 28C7 45 1.5 53.7707 1.5 53.7707C76.6422 54.0174 166.408 54.2733 241 54.4746C241 54.4746 243.5 48.9995 243.5 40.9995C243.5 32.9995 239.853 28.2006 239.853 28.2006C237.587 28.2006 159.629 19.617 157.363 19.1653C155.097 18.7135 73.966 8.3228 73.966 8.3228C73.966 8.3228 47.645 5.2198 36.8 3.8051Z",stroke:"black"}))),p7e||(p7e=n.createElement("defs",null,n.createElement("clipPath",{id:"clip0"},n.createElement("rect",{y:55,width:55,height:170,transform:"rotate(-90 0 55)",fill:"white"})))))}const m7e=n.forwardRef(g7e);__webpack_require__.p;var y7e,v7e;function _7e(){return _7e=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},_7e.apply(this,arguments)}function b7e(e,t){let{title:r,titleId:i,...o}=e;return n.createElement("svg",_7e({width:179,height:55,viewBox:"0 0 179 55",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:t,"aria-labelledby":i},o),r?n.createElement("title",{id:i},r):null,y7e||(y7e=n.createElement("g",{clipPath:"url(#clip0)"},n.createElement("path",{id:"blade3",d:"M 170.90919,46.1753 C 166.37503,45.2718 4.1991862,21.780677 1.9326071,21.780677 c 0,0 0.6240202,8.584816 0.6240202,17.084816 0,8.5 0.398657,14.134507 0.398657,14.134507 L 154.58802,53.8554 c 12.69424,0 21.76156,0.9036 23.12191,-1.807 1.35934,-2.7107 -2.26758,-4.9695 -6.80074,-5.8731 z",stroke:"black"}))),v7e||(v7e=n.createElement("defs",null,n.createElement("clipPath",{id:"clip0"},n.createElement("rect",{y:55,width:55,height:179,transform:"rotate(-90 0 55)",fill:"white"})))))}const x7e=n.forwardRef(b7e),S7e=(__webpack_require__.p,Zo()((()=>({bladeSelectd:{fill:"#00a6ff",width:"30%"},blade:{fill:"#fff",width:"30%"}})))),w7e=e=>{const{classes:t}=S7e(),[r,i]=(0,n.useState)([]),[o,s]=(0,n.useState)([]),[a,l]=(0,n.useState)([]),c=b(Nm);(0,n.useEffect)((()=>{e.reset&&(p(),e.changeReset())}),[e.reset]),(0,n.useEffect)((()=>{e.applyFilters({bladeFilter:r,sideFilter:o,positionFilter:a})}),[r,o,a]);const u=()=>!r.length&&!o.length&&!a.length,d=e=>{switch(e){case"blade":i(["A","B","C"]);break;case"side":s(["PS","SS","TE","LE"]);break;case"position":l(["blade1","blade2","blade3"])}},h=e=>{u()?(l([e]),d("blade"),d("side")):a.includes(e)?l(a.filter((t=>t!==e))):l([...a,e])},p=()=>{i([]),s([]),l([])},f=e=>null!==c&&void 0!==c&&c.subAsset.serials&&c.subAsset.serials[e]?c.subAsset.serials[e]:"";return(0,Ae.jsxs)("div",{id:"FilterBlades",className:"d-flex justify-content-between flex-column",children:[(0,Ae.jsx)("div",{id:"bladeFilters",className:"mt-2",children:(0,Ae.jsx)(cW,{variant:"contained",color:"primary","aria-label":"contained primary button group",style:{transform:"scale(0.9)"},children:["A","B","C"].map(((e,t)=>(0,Ae.jsx)(cu,{title:f(e),placement:"top",children:(0,Ae.jsx)(Sa,{className:"bladeBtn noOutline",variant:r.includes(e)?"contained":"outlined",color:"primary",onClick:()=>(e=>{u()?(i([e]),d("side"),d("position")):r.includes(e)?i(r.filter((t=>t!==e))):i([...r,e])})(e),children:(0,Ae.jsx)("span",{children:e})},t)},t)))})}),(0,Ae.jsx)("div",{id:"edgeFilters",className:"mt-2",children:(0,Ae.jsx)(cW,{variant:"contained",color:"primary","aria-label":"contained primary button group",children:["PS","SS","TE","LE"].map(((e,t)=>(0,Ae.jsx)(Sa,{className:"bladeBtn noOutline",variant:o.includes(e)?"contained":"outlined",onClick:()=>(e=>{u()?(s([e]),d("blade"),d("position")):o.includes(e)?s(o.filter((t=>t!==e))):s([...o,e])})(e),children:(0,Ae.jsx)("span",{children:e})},t)))})}),(0,Ae.jsxs)("div",{id:"graphicFilters",className:"d-flex justify-content-between ml-1",children:[(0,Ae.jsx)(d7e,{className:a.includes("blade1")?t.bladeSelectd:t.blade,onClick:()=>h("blade1")}),(0,Ae.jsx)(m7e,{className:a.includes("blade2")?t.bladeSelectd:t.blade,onClick:()=>h("blade2")}),(0,Ae.jsx)(x7e,{className:a.includes("blade3")?t.bladeSelectd:t.blade,onClick:()=>h("blade3")})]})]})},E7e=Zo()(((e,t)=>{const n="max(5rem, calc(".concat(t?"50%":"33.33%"," - 0.25rem))");return{avatar:{width:"1.6rem",height:"1.6rem",fontSize:"0.8rem"},unseen:{backgroundColor:"#DDD",color:"black"},tagged:{backgroundColor:Mp,color:"black"},annots:{backgroundColor:"#f44336",color:"white"},aiTagged:{backgroundColor:"#00A6FF",color:"white"},potentialDefects:{backgroundColor:"#FFD700",color:jp},categoriesContainer:{justifyContent:"space-between",padding:"0.25rem",rowGap:"0.25rem",columnGap:"0.25rem",flexDirection:"row"},categoryFilterBtnContainer:{flex:"2 1 ".concat(n),minWidth:n},categoryFilterBtn:{overflow:"hidden",textOverflow:"ellipsis",height:"fit-content",whiteSpace:"nowrap",paddingLeft:"2px",paddingRight:"2px"},categoryFilterContent:{flexWrap:"nowrap",alignItems:"center",paddingLeft:"1px",columnGap:"6px"},categoryFilterText:{fontSize:"0.9rem",textAlign:"left"}}})),P7e={unseen:!1,tagged:!1,defect:!1,aiTagged:!1},C7e=e=>{const{classes:t}=E7e(e.isAiAllowed),[r,i]=(0,n.useState)(P7e),o=(0,n.useMemo)((()=>{const n=[{type:"unseen",label:"Unseen",nb:e.catNumbers.nbUnseen,css:t.unseen},{type:"tagged",label:"Tagged",nb:e.catNumbers.nbTagged,css:t.tagged},{type:"defect",label:"Annots",nb:e.catNumbers.nbDefects,css:t.annots},{type:"aiTagged",label:"AI Auto Tag",nb:e.catNumbers.nbAiTagged,css:t.aiTagged}];return e.isAiAllowed||n.pop(),n}),[e.catNumbers.nbUnseen,e.catNumbers.nbTagged,e.catNumbers.nbDefects,e.catNumbers.nbAiTagged,e.isAiAllowed]);(0,n.useEffect)((()=>{e.reset&&(i(P7e),e.setStatusFilters(P7e),e.changeReset())}),[e.reset]);return(0,Ae.jsx)(ws,{container:!0,className:t.categoriesContainer,children:o.map(((n,o)=>(0,Ae.jsx)(ws,{item:!0,className:t.categoryFilterBtnContainer,children:(0,Ae.jsx)(Sa,{fullWidth:!0,variant:r[n.type]?"contained":"outlined",color:"primary",onClick:()=>{(t=>{const n={...r};n[t]=!r[t],i(n),e.setStatusFilters(n)})(n.type)},className:t.categoryFilterBtn,style:{color:r[n.type]?"white":jp},children:(0,Ae.jsxs)(ws,{container:!0,className:t.categoryFilterContent,children:[(0,Ae.jsx)(ws,{item:!0,flexShrink:1,height:"100%",children:(0,Ae.jsx)(Uwe,{className:"".concat(n.css," ").concat(t.avatar),children:n.nb})}),(0,Ae.jsx)(ws,{item:!0,className:t.categoryFilterText,children:(0,Ae.jsx)("p",{children:n.label})})]})},o)},o)))})};let A7e=function(e){return e[e._0=0]="_0",e[e._60=60]="_60",e[e._120=120]="_120",e[e._180=180]="_180",e[e._240=240]="_240",e[e._300=300]="_300",e}({});const k7e=Object.values(A7e).filter((e=>"number"===typeof e)),j7e=()=>{const{innerWidth:e,innerHeight:t}=window;return{width:e,height:t}},I7e=()=>{const[e,t]=(0,n.useState)(j7e());return(0,n.useEffect)((()=>{const e=()=>{t(j7e())};return window.addEventListener("resize",e),()=>{window.removeEventListener("resize",e)}}),[]),e},G7e=e=>{const{currentTowerHeadings:t,setTowerHeadings:r}=e,{width:i}=I7e(),o=(0,n.useCallback)((e=>{const n=k7e[e];t.includes(n)?r(t.filter((e=>e!==n))):r([...t,n])}),[t,r]),s=(0,n.useMemo)((()=>t.map((e=>k7e.indexOf(e)))),[t]),a=(0,n.useCallback)((()=>i>=1600?(0,Ae.jsx)(ige,{multiple:!0,activeIndex:s,buttons:k7e.map((e=>"".concat(e,"\xb0"))),onClick:o}):(0,Ae.jsxs)(Ae.Fragment,{children:[(0,Ae.jsx)(ige,{fullWidth:!0,multiple:!0,style:{maxWidth:"10rem"},activeIndex:s,buttons:["".concat(A7e._0,"\xb0"),"".concat(A7e._60,"\xb0"),"".concat(A7e._120,"\xb0")],onClick:o}),(0,Ae.jsx)(ige,{fullWidth:!0,multiple:!0,style:{maxWidth:"10rem"},activeIndex:s.map((e=>e-3)),buttons:["".concat(A7e._180,"\xb0"),"".concat(A7e._240,"\xb0"),"".concat(A7e._300,"\xb0")],onClick:e=>{o(e+3)}})]})),[s,i,o]);return(0,Ae.jsxs)(ws,{container:!0,direction:"column",rowGap:"0.25rem",alignItems:"center",margin:"auto",children:[(0,Ae.jsx)(vu,{children:"Tower Heading"}),(0,Ae.jsx)(a,{})]})},T7e=e=>{const{towerHeadingsFilter:t,setTowerHeadingsFilter:r}=e,[i,o]=(0,n.useState)({bladeFilter:[],sideFilter:[],positionFilter:[]}),[s,a]=(0,n.useState)(0),[l,c]=(0,n.useState)([0,0]),[u,d]=(0,n.useState)(0),[h,p]=(0,n.useState)({unseen:!1,tagged:!1,defect:!1,aiTagged:!1}),[f,g]=(0,n.useState)({nbUnseen:0,nbTagged:0,nbDefects:0,nbAiTagged:0}),[y,v]=(0,n.useState)(!1),_=b(Qm),x=b(Fm),S=b(Lm),w=b(Um),E=b(ry),P=b(Co),C=m(),A=b(sy),k=b(ny);(0,n.useEffect)((()=>{G(),R(),I(x)}),[x]),(0,n.useEffect)((()=>{I(x)}),[S,w,e.aiTaggedThumbnails]),(0,n.useEffect)((()=>{R()}),[h,l,t,i,A,k,P]);const j=e=>{if(P&&A&&k&&k.length){const t=k.find((t=>t.photoId===e));if(t&&0===t.panels.length)return!0}return!1},I=t=>{let n=0,r=0,i=0;const o=e.aiTaggedThumbnails.length;if(t.length)for(const e of t){const t=S.find((t=>t.id===e.photoId));if(t){t.inspected||n++,t.defectDetection&&r++;i+=w.filter((n=>t&&n.key===e.photoId)).length}}g({nbUnseen:n,nbTagged:r,nbDefects:i,nbAiTagged:o})},G=()=>{var e,t;0!==x.length&&(x[0].sortData.altitude&&x[x.length-1].sortData.altitude&&(a(Math.round(x[0].sortData.altitude)),d(Math.round(null!==(e=x[x.length-1].sortData.altitude)&&void 0!==e?e:0)),l[0]||l[1]||c([Math.round(x[0].sortData.altitude),Math.round(null!==(t=x[x.length-1].sortData.altitude)&&void 0!==t?t:0)])))},T=()=>{if(!h.unseen&&!h.tagged&&!h.defect&&!h.aiTagged){if(e.type===RC.BLADES)return M();if(e.type===RC.TOWER)return l[0]===s&&l[1]===u&&0===t.length}return!1},M=()=>!i.bladeFilter.length&&!i.sideFilter.length&&!i.positionFilter.length,O=(e,t)=>{const n=e/3,r=2*n;return!(!i.positionFilter.includes("blade1")&&t<=n||!i.positionFilter.includes("blade2")&&n<=t&&t<=r||!i.positionFilter.includes("blade3")&&r<=t)},R=()=>{if(T())return void e.changeSelection(x);const n=[],r=(()=>{const e=null===_||void 0===_?void 0:_.bladeLength;let t;for(let n=0;n<x.length;n++){const e=S.find((e=>e.id===x[n].photoId));e&&e.hubDistance>t&&(t=e.hubDistance)}return null!==e&&void 0!==e?e:t})();for(const o of x){const s=S.find((e=>e.id===o.photoId));if(void 0===s)continue;if(j(o.photoId))continue;if(h.unseen&&s.inspected)continue;if(h.tagged&&1!==s.defectDetection)continue;const a=0===w.filter((e=>s&&e.key===o.photoId)).length,c=!P||!E||0===E.filter((e=>e.photoId===o.photoId)).length,u=e.aiTaggedThumbnails.includes(o.photoId);if((!h.aiTagged||u)&&!(h.defect&&a&&c)){if(e.type===RC.BLADES&&!M()){if(!s.blade)continue;if(s.blade&&!i.bladeFilter.includes(s.blade))continue;if(s.side&&!i.sideFilter.includes(s.side))continue;if(s.edge&&!i.sideFilter.includes(s.edge))continue;if(3!==i.positionFilter.length&&!O(r,s.hubDistance))continue}if(e.type===RC.TOWER){const e=s.exif.relativeAltitude;if(l[0]&&e&&e<l[0]||l[1]&&e&&e>l[1])continue;const n="towerHeading"in s&&null!=s.towerHeading?s.towerHeading:void 0;if(t.length>0&&(void 0==n||!t.includes(n)))continue}n.push(o)}}e.changeSelection(n)};return(0,Ae.jsxs)(ws,{container:!0,direction:"column",wrap:"nowrap",paddingTop:"0.5rem",position:"relative",children:[e.type===RC.BLADES&&(0,Ae.jsx)(w7e,{reset:y,changeReset:()=>v(!1),applyFilters:e=>{o(e)}}),e.type===RC.TOWER&&(0,Ae.jsxs)(ws,{container:!0,direction:"column",wrap:"nowrap",rowGap:"0.75rem",paddingX:"0.25rem",children:[(0,Ae.jsx)(ws,{item:!0,children:(0,Ae.jsx)(G7e,{currentTowerHeadings:t,setTowerHeadings:r})}),(0,Ae.jsx)(ws,{item:!0,width:"80%",margin:"auto",children:(0,Ae.jsx)(s7e,{title:"Altitude range",reset:y,changeReset:()=>v(!1),range:[s,u],updateValue:e=>{c(e)}})})]}),(0,Ae.jsx)(C7e,{type:e.type,setStatusFilters:e=>{p(e)},catNumbers:f,reset:y,changeReset:()=>v(!1),isAiAllowed:e.isAiAllowed}),(0,Ae.jsx)(wp,{position:"absolute",top:0,right:0,children:!T()&&(0,Ae.jsx)(cu,{title:"Clear filters",placement:"top",children:(0,Ae.jsx)("div",{children:(0,Ae.jsx)(Gu,{onClick:e=>{e.stopPropagation(),c([s,u]),r([]),v(!0),C(_m(null))},children:(0,Ae.jsx)(o7e.c,{})})})})})]})},M7e=Zo()((()=>({thumbnailsContainer:{marginTop:0,height:"100%",overflowY:"auto",overflowX:"hidden"}}))),O7e=e=>{var t,n;const{classes:r}=M7e(),{photosPerTowerHeadingMap:i}=e,o=b(Lm),s=b(zm),a=b(Jm),l=t=>{e.callbackSelection(t)},c=t=>{const{photoId:n,originalPhotoNumber:r,thumbURL:i}=t;return o.find((e=>e.id===n))?(0,Ae.jsx)(Ske,{selected:n===s.photoId,visited:e.visitedThumbnails.includes(n),annotationsCount:e.annotations.filter((e=>e.key===n)).length,hasAnnotations:void 0!==e.annotations.find((e=>e.key===n)),flag:e.flaggedThumbnails.includes(n),callbackSelection:l,id:String(r),url:i}):(0,Ae.jsx)(Ae.Fragment,{})};return a?(0,Ae.jsx)($y,{topMargin:"40px"}):(0,Ae.jsxs)(ws,{container:!0,direction:"column",height:"100%",children:[(0,Ae.jsxs)(ws,{id:"ThumbnailsContainer",item:!0,container:!0,wrap:"nowrap",direction:"column",className:r.thumbnailsContainer,children:[k7e.map((e=>{var t;const n=null!==(t=i.get(e))&&void 0!==t?t:[];return 0===n.length?(0,Ae.jsx)(Ae.Fragment,{}):(0,Ae.jsxs)(ws,{container:!0,direction:"column",wrap:"nowrap",rowGap:"0.5rem",children:[(0,Ae.jsxs)(vu,{children:["Heading ",e,"\xb0"]}),(0,Ae.jsx)(ws,{item:!0,container:!0,spacing:1,children:n.map((e=>(0,Ae.jsx)(ws,{item:!0,sm:12,md:6,lg:4,children:c(e)},e.photoId)))}),(0,Ae.jsx)("hr",{className:"sectionSeparator"})]},e)})),(null!==(t=i.get(""))&&void 0!==t?t:[]).length>0&&(0,Ae.jsxs)(ws,{container:!0,direction:"column",wrap:"nowrap",rowGap:"0.5rem",children:[(0,Ae.jsx)(vu,{children:"No tower heading"}),(0,Ae.jsx)(ws,{item:!0,container:!0,spacing:1,children:(null!==(n=i.get(""))&&void 0!==n?n:[]).map((e=>(0,Ae.jsx)(ws,{item:!0,sm:12,md:6,lg:4,children:c(e)},e.photoId)))})]})]}),0===e.selectedPhotos.length&&(0,Ae.jsx)("div",{style:{marginTop:"50%",color:"#535353"},children:"Nothing to display! You should remove some filters\u2026"})]})},R7e=e=>(0,Ae.jsx)(cu,{title:"Photo review progress",placement:"top",children:(0,Ae.jsxs)(ws,{container:!0,wrap:"nowrap",alignItems:"center",columnGap:"0.5rem",children:[(0,Ae.jsx)(ws,{item:!0,flex:1,children:(0,Ae.jsx)(Hpe,{id:"inspectedProgress",variant:"determinate",color:"primary",value:Math.round(100*e.inspectedPercentage)})}),(0,Ae.jsx)(ws,{item:!0,width:"15%",children:(0,Ae.jsxs)(vu,{children:[Math.round(100*e.inspectedPercentage),"%"]})})]})}),D7e=e=>(0,Ae.jsx)("div",{children:(0,Ae.jsx)(Ud,{open:e.show,anchorEl:e.anchorPop,onClose:e.toggleDeletionPopover,anchorOrigin:{vertical:"center",horizontal:"left"},transformOrigin:{vertical:"center",horizontal:"right"},children:(0,Ae.jsxs)("div",{style:N7e,children:[(0,Ae.jsxs)("div",{children:["You are about to delete ",(0,Ae.jsx)("br",{}),(0,Ae.jsx)("b",{children:e.photoName})]}),(0,Ae.jsxs)("div",{style:L7e,children:[(0,Ae.jsx)(ev,{color:"cancel",size:"small",label:"Cancel",onClick:e.toggleDeletionPopover}),(0,Ae.jsx)(ev,{color:"delete",size:"small",label:"Delete",onClick:e.deletePhoto})]})]})})}),N7e={padding:20,lineHeight:1.5},L7e={marginTop:15,display:"flex",justifyContent:"space-between"},V7e=e=>{const t=Zo()((()=>({main:{display:"inline-flex",justifyContent:"center",gap:"1rem",fontSize:"0.9rem",marginLeft:"1rem"},bold:{fontWeight:"bold"}}))),{classes:n}=t(),r=b(Nm),i=e.bladeInfos,{blade:o,side:s,hubDistance:a,obstacleDistance:l}=i,c=(e=>null!==r&&void 0!==r&&r.subAsset.serials&&r.subAsset.serials[e]?"".concat(e,"-").concat(r.subAsset.serials[e]):e)(o);return(0,Ae.jsxs)("span",{className:n.main,children:[(0,Ae.jsxs)("span",{className:"ml-1 noUserSelect",children:[(0,Ae.jsx)("span",{children:"Blade: "}),(0,Ae.jsx)("span",{className:n.bold,children:c||"Unknown"})]}),(0,Ae.jsxs)("span",{className:"ml-1 noUserSelect",children:[(0,Ae.jsx)("span",{children:"Side: "}),(0,Ae.jsx)("span",{className:n.bold,children:s})]}),(0,Ae.jsxs)("span",{className:"ml-1 noUserSelect",children:[(0,Ae.jsx)("span",{children:"Blade Root Distance: "}),(0,Ae.jsxs)("span",{className:n.bold,children:[Ly(a,1)," m"]})]}),!e.isExternal&&(0,Ae.jsxs)("span",{className:"ml-1 noUserSelect",children:[(0,Ae.jsx)("span",{children:"Obstacle Distance: "}),(0,Ae.jsxs)("span",{className:n.bold,children:[Ly(l,1)," m"]})]})]})},F7e=e=>{var t;const r=Zo()((()=>({container:{display:"flex",flexDirection:"column",justifyContent:"center",alignItems:"start",gap:"0.6rem",padding:"0.6rem"},buttongGroup:{height:"1.8rem"},button:{minWidth:"2rem",height:e.bigFont?"3rem":"1.6rem"},sliderBox:{display:"flex",gap:"1rem",paddingTop:"0.6rem"},input:{paddingLeft:"0.4rem",width:"2rem",border:"1px solid ".concat(jp),fontSize:e.bigFont?"1rem":"0.9rem",height:e.bigFont?"2rem":void 0,type:"number"},btnContainer:{display:"flex",width:"100%",justifyContent:"center",gap:"1rem",marginBottom:"1rem"}}))),{classes:i}=r(),o=b(Qm),[s,a]=(0,n.useState)(e.bladeInfos),[l,c]=(0,n.useState)(!1),[u,d]=(0,n.useState)(null===(t=Ly(s.obstacleDistance,1))||void 0===t?void 0:t.toString()),h=o&&o.bladeLength,p=(e,t,n)=>{const r={...s};r[e]=n?parseInt(t,10):t,a(r)},f=(e,t)=>(0,Ae.jsx)("span",{className:i.container,children:(0,Ae.jsx)(cW,{id:"gravity",variant:"outlined",className:i.buttongGroup,children:e.map(((e,n)=>(0,Ae.jsx)(Sa,{color:"primary",value:e,variant:s[t]===e?"contained":"outlined",className:i.button,onClick:()=>p(t,e),children:(0,Ae.jsx)("span",{children:e})},n)))})}),g=(0,Ae.jsxs)("span",{className:i.sliderBox,children:[(0,Ae.jsx)(WW,{value:Ly(s.hubDistance,1),size:"small",onChange:(e,t)=>p("hubDistance",t),min:0,max:h,style:{width:"5rem",marginLeft:"0.5rem"}}),(0,Ae.jsx)(RS,{disableUnderline:!0,value:Ly(s.hubDistance,1).toString(),margin:"dense",onChange:e=>p("hubDistance",""===e.target.value?0:Number(e.target.value)),onBlur:()=>{h&&Ly(s.hubDistance,1)>h&&p("hubDistance",h)},inputProps:{step:1,min:0,max:h,type:"number",className:i.input}})]}),m=(0,Ae.jsx)("span",{className:i.container,children:(0,Ae.jsx)(RS,{disableUnderline:!0,value:u,margin:"dense",onChange:e=>{""!==e.target.value&&isNaN(Number(e.target.value))||d(e.target.value)},onBlur:e=>{p("obstacleDistance",Number(e.target.value)>=.1?u:.1)},inputProps:{step:.1,min:.1,type:"number",className:i.input}})}),y=async t=>{await(async()=>{c(!0);const t=e.isExternal&&e.photoExif?{...s,infoFilled:!0,scale:e.photoExif.scale}:{...s};["LE","TE"].includes(s.side)&&(t.side="",t.edge=s.side),await yV(e.inspectionId,e.photoId,t),c(!1),e.setBladeInfos(s)})(),e.exitEditMode()};return(0,Ae.jsxs)("div",{className:i.container,children:[(0,Ae.jsxs)("span",{children:["Blade ",f(["A","B","C"],"blade")]}),!_B()&&(0,Ae.jsxs)(Ae.Fragment,{children:[(0,Ae.jsxs)("span",{children:["Side ",f(["PS","SS","LE","TE"],"side")]}),(0,Ae.jsxs)("span",{children:["Blade Root Distance ",g]}),!e.isExternal&&(0,Ae.jsxs)("span",{children:["Obstacle Distance ",m]})]}),(0,Ae.jsx)("div",{className:i.btnContainer,children:(0,Ae.jsx)(ohe,{loading:l,onCancel:e.exitEditMode,onValidate:()=>y()})})]})},z7e=Zo()((()=>({adornment:{fontSize:"11px"},help:{fontSize:"12px"},error:{fontSize:"12px",color:"red",maxWidth:190}}))),B7e=()=>{var e;const{classes:t}=z7e(),[r,i]=(0,n.useState)(0),[o,s]=(0,n.useState)(""),a=m(),l=null===(e=b(Nm))||void 0===e?void 0:e.id,c=b(qm),u=b(ey)||0;return(0,Ae.jsxs)(ws,{container:!0,wrap:"nowrap",alignItems:"center",columnGap:"0.5rem",height:"100%",children:[(0,Ae.jsx)("div",{className:t.help,children:"Click and drag mouse to measure distance"}),(0,Ae.jsx)(iE,{size:"small",color:"primary",variant:"outlined",onChange:e=>{i(""===e.target.value?0:Number(e.target.value))},type:"number",value:r?r.toString():"",style:{width:"8rem"},InputProps:{inputProps:{min:0},endAdornment:(0,Ae.jsx)(fx,{position:"end",children:(0,Ae.jsx)("span",{className:t.adornment,children:"cm"})})}}),(0,Ae.jsx)(ohe,{size:"small",cancelAfter:!0,validateText:"Confirm",onValidate:()=>{if(!u)return void s("You need to measure a distance on the photo to set up the scale");if(!r)return void s("Please input a distance value");if(!l||!c)return void s("An error occurred");const e=Number((r/u).toFixed(4)),t={scale:e};a(cm(e)),yV(l,c,t),a(lm(!1))},cancelText:"Cancel",onCancel:()=>a(lm(!1))}),o&&(0,Ae.jsx)("div",{className:t.error,children:o})]})},U7e=b,W7e={marginLeft:"30px"},H7e={color:"#FFFFFF",backgroundColor:Mp,borderColor:Mp},q7e={color:Mp,borderColor:Mp},X7e=Zo()((()=>({imageBar:{backgroundColor:"#fff",borderBottom:"1px solid rgba(0, 0, 0, 0.12);",zIndex:2,display:"flex",justifyContent:"space-between",alignItems:"center",height:"100%",width:"100%"},bladeInfosContainer:{display:"flex",justifyContent:"center",alignItems:"center",height:"100%",padding:"0.2rem 0"}}))),Y7e=e=>{var t,r,i;const{classes:o}=X7e(),s=m(),{currentPhotoUrl:a}=e,l=e.currentPhotoData,c=l&&l.photoId,u=e.currentPhoto,d=b(Nm),h=b(Lm),p=!1!==U7e(ey),[f,g]=(0,n.useState)(!1),[y,v]=(0,n.useState)(!1),[_,x]=(0,n.useState)(q7e),S=(0,n.createRef)(),[w,E]=(0,n.useState)(null),[P,C]=(0,n.useState)(null),A=(0,n.useMemo)((()=>!0===(null===u||void 0===u?void 0:u.externalImage)),[u]),k=Boolean(A&&u&&!1===u.infoFilled),[j,I]=(0,n.useState)(k),G=b(iy),T={blade:k||!u?"":u.blade,hubDistance:k||!u?0:u.hubDistance?Math.round(u.hubDistance):0,obstacleDistance:k||!u?0:null!==(t=u.obstacleDistance)&&void 0!==t?t:0,side:k||!u?"":u.side?u.side:u.edge?u.edge:"",edge:""};(0,n.useEffect)((()=>{x(1===(null===u||void 0===u?void 0:u.defectDetection)?H7e:q7e),S&&E(S.current),A||O(T)}),[u]),(0,n.useEffect)((()=>{A&&(u&&!u.scale&&A?I(!0):I(!1),O(T))}),[c]);const[M,O]=(0,n.useState)(T),R=()=>{if(u){const t=1===u.defectDetection?0:1;e.setFlagged(!e.flagged),Sy.dispatch(Vg({...u,defectDetection:t}));const n=D();!1!==n&&Sy.dispatch(Xg({index:n,value:t})),(async(e,t,n)=>{await Ey("/inspections/"+e+"/"+t+"/"+n+"/setFlag",{method:"POST",headers:{"Content-Type":"application/json"}}),Sy.dispatch(rm(n))})(e.inspectionId,l.photoId,t)}},D=()=>{if(u&&null!==h&&void 0!==h&&h.length){const e=h.findIndex((e=>u&&e.photoId===u.photoId));return-1!==e&&e}return!1},N=()=>{(async e=>{var t;const n=Sy.getState(),r=n.inspectionTool.photosDB,i=n.inspectionTool.photosData,o=n.inspectionTool.currentPhotoData,s="/inspections/"+(null===(t=n.inspectionTool.inspectionDoc)||void 0===t?void 0:t.id)+"/"+o.photoName+"/delete",a=await Ey(s,{method:"POST",headers:{"Content-Type":"application/json"}});if(!a.ok)return;if(!a.url.includes(s))return;const l=r.findIndex((e=>e.photoId===o.photoId)),c=l<=0?0:l-1;r&&r[c]&&Sy.dispatch(Ug(r[c].originalPhotoNumber));let u=r.filter((e=>e.photoId!==o.photoId));const d=i.filter((e=>e.photoId&&e.photoId.toLocaleLowerCase()!==o.photoName.toLocaleLowerCase()));u=iV(u,d);const h=n.inspectionTool.annotations.filter((e=>e.key!==o.photoId));Sy.dispatch(Mg(h)),Sy.dispatch(Ng(u)),Sy.dispatch(Gg(d))})(),v(!1)},L=()=>{V()},V=()=>{I(!1),C(null)};return(0,Ae.jsxs)(ws,{container:!0,className:o.imageBar,flexWrap:"nowrap",children:[(0,Ae.jsx)(ws,{item:!0,height:"100%",children:(0,Ae.jsxs)(cW,{className:"mr-1",variant:"text",color:"primary","aria-label":"contained primary button group",style:{height:"100%",padding:"0.2rem 0rem"},children:[(0,Ae.jsx)(Sa,{className:"noOutline",onClick:e.previousPhoto,children:e.isFastForward?(0,Ae.jsx)(Ra,{color:"#00A6FF"}):(0,Ae.jsx)(La,{color:"#00A6FF"})}),(0,Ae.jsx)(Sa,{className:"noOutline",onClick:e.nextPhoto,children:e.isFastForward?(0,Ae.jsx)(Ga,{color:"#00A6FF"}):(0,Ae.jsx)(Ma,{color:"#00A6FF"})}),(0,Ae.jsx)(Sa,{className:"noOutline",style:{...W7e,..._},variant:"outlined",onClick:()=>R(),children:(0,Ae.jsx)(Xh,{})})]})}),(0,Ae.jsxs)(ws,{item:!0,height:"100%",children:[(null===d||void 0===d?void 0:d.type)===RC.BLADES&&(0,Ae.jsxs)(Ae.Fragment,{children:[(0,Ae.jsxs)("div",{className:o.bladeInfosContainer,children:[!p&&(0,Ae.jsxs)(Ae.Fragment,{children:[(0,Ae.jsx)(V7e,{bladeInfos:M,isExternal:null!==A&&void 0!==A&&A}),(0,Ae.jsx)(ev,{label:"Edit",size:"small",textColor:j?"white":jp,style:j?{marginLeft:10,height:"100%"}:{border:"1px solid ".concat(jp),background:"white",marginLeft:10,height:"100%"},onClick:e=>{I(!0),C(e.currentTarget)}})]}),A&&(0,Ae.jsx)(wp,{paddingLeft:"0.5rem",height:"100%",children:p?(0,Ae.jsx)(B7e,{}):(0,Ae.jsxs)(Ae.Fragment,{children:[(0,Ae.jsx)(ev,{style:null!==u&&void 0!==u&&u.scale&&1!==(null===u||void 0===u?void 0:u.scale)?{border:"1px solid ".concat(jp),minHeight:"100%"}:{backgroundColor:"#f15959",border:"1px solid #f15959"},size:"small",label:"Scale",onClick:()=>{s(lm(0))}}),null!==u&&void 0!==u&&u.scale&&1!==(null===u||void 0===u?void 0:u.scale)?null:(0,Ae.jsx)("span",{children:"Please set the distance scale"})]})})]}),P&&(0,Ae.jsx)(Ud,{open:null!==P,anchorEl:P,anchorOrigin:{vertical:"bottom",horizontal:"center"},transformOrigin:{vertical:"top",horizontal:"center"},onClose:()=>{L(),s(lm(!1))},children:(0,Ae.jsx)(F7e,{bladeInfos:M,exitEditMode:L,setBladeInfos:O,inspectionId:d.id,photoId:c,photoExif:u,isExternal:null!==A&&void 0!==A&&A})})]}),(null===d||void 0===d?void 0:d.type)===RC.TOWER&&(0,Ae.jsxs)(wp,{display:"flex",alignItems:"center",height:"100%",gap:"0.5rem",children:[(null===(r=d.subAsset)||void 0===r||null===(i=r.serials)||void 0===i?void 0:i.tower)&&(0,Ae.jsxs)(Ae.Fragment,{children:[(0,Ae.jsxs)("span",{className:"noUserSelect",children:["Tower ",(0,Ae.jsx)("b",{children:d.subAsset.serials.tower})]}),(0,Ae.jsx)("span",{className:"noUserSelect",children:"|"})]}),l.sortData.altitude&&(0,Ae.jsxs)("span",{className:"noUserSelect",children:["Altitude:"," ",(0,Ae.jsxs)("b",{id:"altitude",children:[l?Math.round(l.sortData.altitude):0,"m"]})]}),(0,Ae.jsx)("span",{className:"noUserSelect",children:"|"}),null!=l.sortData.towerHeading&&(0,Ae.jsxs)(Ae.Fragment,{children:[(0,Ae.jsxs)("span",{className:"noUserSelect",children:["Heading:"," ",(0,Ae.jsxs)("b",{id:"heading",children:[l?Math.round(l.sortData.towerHeading):0,"\xb0"]})]}),(0,Ae.jsx)("span",{className:"noUserSelect",children:"|"})]}),(0,Ae.jsxs)("span",{className:"ml-1 noUserSelect",children:["Obstacle Distance:"," ",(0,Ae.jsxs)("b",{id:"obstacleDistance",children:[(()=>{if(!u)return 0;let e=u.obstacleDistance;return null!=e&&0!==e||(e=u.sensorObstacleDistance),(0===e||e>30)&&(e=5),Ly(e,1)})(),"m"]})]})]})]}),(0,Ae.jsxs)(ws,{container:!0,item:!0,flexWrap:"nowrap",width:"fit-content",gap:"1rem",children:[!f&&(0,Ae.jsx)(cu,{title:"Download photo",placement:"top",children:(0,Ae.jsx)("span",{children:(0,Ae.jsx)(Sa,{disabled:void 0==a,onClick:()=>(async()=>{var t;if(!a)return;g(!0);const n=document.createElement("a");let r=a;if(e.isThermal&&null!==(t=l.photoURL)&&void 0!==t&&t.length){let t=l.photoURL[0];if(G){var i;const n=YL(l.photoId),r=await mV(e.inspectionId,n);null!==r&&void 0!==r&&null!==(i=r.url)&&void 0!==i&&i.length&&(t=r.url[0])}const n=await fetch(t);r=URL.createObjectURL(await n.blob())}else if(e.isThermal&&!l.photoURL){var o;const t=await mV(e.inspectionId,l.photoId);if(null!==t&&void 0!==t&&null!==(o=t.url)&&void 0!==o&&o.length){const e=await fetch(t.url[0]);r=URL.createObjectURL(await e.blob())}}n.href=r,((e,t)=>{e.rel="noopener noreferrer",e.target="_blank",e.download=t,e.click()})(n,l.photoName),g(!1)})(),style:{minWidth:"unset"},children:(0,Ae.jsx)(Uh,{style:{color:"#00A6FF"}})})})}),f&&(0,Ae.jsx)($y,{size:20,style:{display:"inline"}}),(0,Ae.jsx)("span",{ref:S,children:(0,Ae.jsx)(cu,{title:"Delete photo",placement:"top",children:(0,Ae.jsx)(Sa,{onClick:()=>v(!0),style:{minWidth:"unset"},children:(0,Ae.jsx)(np,{style:{color:"#00A6FF"}})})})}),(0,Ae.jsx)(D7e,{show:y,toggleDeletionPopover:()=>v(!1),deletePhoto:()=>N(),photoName:l.photoName,anchorPop:w})]})]})},K7e=e=>{var t,r,i;const[o,s]=(0,n.useState)(!1),a=b(zm),l=b(Bm),c=b(Vm),u=e=>l&&l.exif&&l.exif[e]?l.exif[e]:"",d=e=>{const t=u(e);return t?Ly(Number(t),5):""};return(0,Ae.jsxs)(Ae.Fragment,{children:[(null===(t=e.inspectionDoc)||void 0===t?void 0:t.isExternal)&&(null===l||void 0===l?void 0:l.originalName)&&(0,Ae.jsx)(Ae.Fragment,{children:(0,Ae.jsxs)("div",{style:{textAlign:"left",color:"#535353",padding:"10px 0px 10px 16px",backgroundColor:"white",borderTop:"1px solid rgba(0,0,0,0.17)"},children:["Name: ",l.originalName]})}),(0,Ae.jsxs)(Ph,{expanded:o,disableGutters:!0,children:[(0,Ae.jsx)(Th,{expandIcon:(0,Ae.jsx)(cp.c,{}),"aria-controls":"panel1a-content",id:"panel1a-header",className:"noUserSelect",onClick:()=>{s(!o)},children:(0,Ae.jsx)(vu,{color:"secondary",className:"noUserSelect",children:"Exif & Metadata"})}),(0,Ae.jsx)(Dh,{style:{padding:"0px"},children:(0,Ae.jsxs)("div",{className:"noUserSelect",id:"ExifContainer",children:[(0,Ae.jsxs)("div",{children:[(null===l||void 0===l?void 0:l.originalName)&&(0,Ae.jsxs)("div",{className:"alignLeft",children:["Original name: ",(0,Ae.jsx)("b",{children:l.originalName})]}),(0,Ae.jsxs)("div",{className:"alignLeft",children:["Photo: ",(0,Ae.jsx)("b",{children:null===a||void 0===a?void 0:a.photoName})]}),(null===l||void 0===l?void 0:l.photoDataType)&&(0,Ae.jsxs)("div",{className:"alignLeft",children:["Type: ",(0,Ae.jsx)("b",{children:l.photoDataType})]}),(null===c||void 0===c?void 0:c.radiationValue)&&(0,Ae.jsxs)("div",{className:"alignLeft",children:["RadiationValue: ",(0,Ae.jsx)("b",{children:c.radiationValue})]}),(0,Ae.jsxs)("div",{className:"alignLeft",children:["ApertureValue: ",(0,Ae.jsx)("b",{children:u("fNumber")})]}),(0,Ae.jsxs)("div",{className:"alignLeft",children:["ExposureTime:"," ",(0,Ae.jsxs)("b",{children:["1/",null!==l&&void 0!==l&&null!==(r=l.exif)&&void 0!==r&&r.exposureTime?1/l.exif.exposureTime:0]})]}),(0,Ae.jsxs)("div",{className:"alignLeft",children:["ISOSpeedRatings: ",(0,Ae.jsx)("b",{children:u("ISO")})]}),(0,Ae.jsxs)("div",{className:"alignLeft",children:["DateTime:"," ",(0,Ae.jsx)("b",{children:null!==l&&void 0!==l&&null!==(i=l.exif)&&void 0!==i&&i.dateTime?(e=>void 0===e?"noDate":e.replace("T"," ").replace(".000Z",""))(null===l||void 0===l?void 0:l.exif.dateTime):""})]}),(0,Ae.jsxs)("div",{className:"alignLeft",children:["ImageWidth: ",(0,Ae.jsx)("b",{children:u("imageWidth")})]}),(0,Ae.jsxs)("div",{className:"alignLeft",children:["ImageHeight: ",(0,Ae.jsx)("b",{children:u("imageHeight")})]}),(0,Ae.jsxs)("div",{className:"alignLeft",children:["Make: ",(0,Ae.jsx)("b",{children:u("make")})]}),(0,Ae.jsxs)("div",{className:"alignLeft",children:["Model: ",(0,Ae.jsx)("b",{children:u("model")})]}),(0,Ae.jsxs)("div",{className:"alignLeft",children:["FocalLengthIn35mmFilm:"," ",(0,Ae.jsx)("b",{children:u("focalLengthIn35mmFilm")})]}),(0,Ae.jsxs)("div",{className:"alignLeft",children:["Calculated GSD:"," ",(0,Ae.jsx)("b",{children:e.gsd?"".concat(Ly(e.gsd,3)," cm/px"):"unknown"})]})]}),(0,Ae.jsxs)("div",{children:[(0,Ae.jsxs)("div",{className:"alignLeft",children:["Latitude: ",(0,Ae.jsx)("b",{children:d("latitude")})]}),(0,Ae.jsxs)("div",{className:"alignLeft",children:["Longitude: ",(0,Ae.jsx)("b",{children:d("longitude")})]}),(0,Ae.jsxs)("div",{className:"alignLeft",children:["RelativeAltitude: ",(0,Ae.jsx)("b",{children:u("relativeAltitude")})]}),(0,Ae.jsxs)("div",{className:"alignLeft",children:["GimbalRollDegree: ",(0,Ae.jsx)("b",{children:u("gimbalRollDegree")})]}),(0,Ae.jsxs)("div",{className:"alignLeft",children:["GimbalYawDegree: ",(0,Ae.jsx)("b",{children:u("gimbalYawDegree")})]}),(0,Ae.jsxs)("div",{className:"alignLeft",children:["GimbalPitchDegree: ",(0,Ae.jsx)("b",{children:u("gimbalPitchDegree")})]}),(0,Ae.jsxs)("div",{className:"alignLeft",children:["FlightRollDegree: ",(0,Ae.jsx)("b",{children:u("flightRollDegree")})]}),(0,Ae.jsxs)("div",{className:"alignLeft",children:["FlightYawDegree: ",(0,Ae.jsx)("b",{children:u("flightYawDegree")})]}),(0,Ae.jsxs)("div",{className:"alignLeft",children:["FlightPitchDegree: ",(0,Ae.jsx)("b",{children:u("flightPitchDegree")})]}),(0,Ae.jsxs)("div",{className:"alignLeft",children:["RTKStatus: ",(0,Ae.jsx)("b",{children:(e=>{if("string"===typeof e)return wA.NO_RTK;switch(e){case EA.NOT_IN_USE:return wA.NOT_IN_USE;case EA.FIXED:return wA.FIXED;default:return e?e>=EA.FLOAT_RANGE_START&&e<EA.FLOAT_RANGE_END?wA.FLOAT:wA.UNKNOWN:wA.NO_RTK}})(u("rtkFlag"))})]})]})]})})]})]})},Z7e=e=>{const t=b(zm),{suggestionsPerPhotoMap:r}=e;return(0,Ae.jsxs)("div",{children:[(0,Ae.jsx)("p",{className:"thumbnailContenerTitle",children:e.title}),(0,Ae.jsx)(ws,{container:!0,spacing:1,children:e.section.map(((i,o)=>{var s;return(0,Ae.jsx)(n.Fragment,{children:(0,Ae.jsx)(ws,{item:!0,sm:12,md:6,lg:4,children:(0,Ae.jsx)(Ske,{selected:i.originalPhotoNumber===t.originalPhotoNumber,visited:e.visitedThumbnails.includes(i.photoId),annotationsCount:e.annotations.length>0?e.annotations.filter((e=>e.key===i.photoId)).length:0,hasAnnotations:void 0!==e.annotations.find((e=>e.key===i.photoId)),windAISuggestions:null!==(s=r.get(i.photoId))&&void 0!==s?s:[],flag:e.flaggedThumbnails.includes(i.photoId),callbackSelection:e.callbackSelection,id:String(i.originalPhotoNumber),url:i.thumbURL})},o)},o)}))}),(0,Ae.jsx)("hr",{className:"sectionSeparator"})]})},$7e=Zo()((()=>({thumbnailsContainer:{height:"100%",overflowY:"auto",overflowX:"hidden"}}))),J7e=e=>{const{classes:t}=$7e(),[r,i]=(0,n.useState)({APS:[],ASS:[],ATE:[],ALE:[],BPS:[],BSS:[],BTE:[],BLE:[],CPS:[],CSS:[],CTE:[],CLE:[],NC:[]}),o=b(Jm);return(0,n.useEffect)((()=>{const t=[],n=[],r=[],o=[],s=[],a=[],l=[],c=[],u=[],d=[],h=[],p=[],f=[];e.selectedPhotos.forEach((e=>{void 0!==e&&(e.sortData.blade||f.push(e),"A"===e.sortData.blade&&"PS"===e.sortData.side&&t.push(e),"A"===e.sortData.blade&&"SS"===e.sortData.side&&n.push(e),"A"===e.sortData.blade&&"TE"===e.sortData.edge&&r.push(e),"A"===e.sortData.blade&&"LE"===e.sortData.edge&&o.push(e),"B"===e.sortData.blade&&"PS"===e.sortData.side&&s.push(e),"B"===e.sortData.blade&&"SS"===e.sortData.side&&a.push(e),"B"===e.sortData.blade&&"TE"===e.sortData.edge&&l.push(e),"B"===e.sortData.blade&&"LE"===e.sortData.edge&&c.push(e),"C"===e.sortData.blade&&"PS"===e.sortData.side&&u.push(e),"C"===e.sortData.blade&&"SS"===e.sortData.side&&d.push(e),"C"===e.sortData.blade&&"TE"===e.sortData.edge&&h.push(e),"C"===e.sortData.blade&&"LE"===e.sortData.edge&&p.push(e))})),i({APS:t,ASS:n,ATE:r,ALE:o,BPS:s,BSS:a,BTE:l,BLE:c,CPS:u,CSS:d,CTE:h,CLE:p,NC:f})}),[e.selectedPhotos]),(0,Ae.jsxs)(ws,{container:!0,direction:"column",height:"100%",children:[o&&(0,Ae.jsx)($y,{topMargin:"40px"}),0!==e.selectedPhotos.length&&!o&&(0,Ae.jsxs)(ws,{id:"ThumbnailsContainer",item:!0,container:!0,wrap:"nowrap",direction:"column",className:t.thumbnailsContainer,children:[(0,Ae.jsx)(ws,{item:!0,hidden:0===r.NC.length,children:(0,Ae.jsx)(Z7e,{section:r.NC,selectedPhotos:e.selectedPhotos,callbackSelection:e.callbackSelection,title:"Unknown Location",visitedThumbnails:e.visitedThumbnails,annotations:e.annotations,flaggedThumbnails:e.flaggedThumbnails,suggestionsPerPhotoMap:e.suggestionsPerPhotoMap})}),(0,Ae.jsx)(ws,{item:!0,hidden:0===r.ALE.length,children:(0,Ae.jsx)(Z7e,{section:r.ALE,selectedPhotos:e.selectedPhotos,callbackSelection:e.callbackSelection,title:"A - LE",visitedThumbnails:e.visitedThumbnails,annotations:e.annotations,flaggedThumbnails:e.flaggedThumbnails,suggestionsPerPhotoMap:e.suggestionsPerPhotoMap})}),(0,Ae.jsx)(ws,{item:!0,hidden:0===r.ATE.length,children:(0,Ae.jsx)(Z7e,{section:r.ATE,selectedPhotos:e.selectedPhotos,callbackSelection:e.callbackSelection,title:"A - TE",visitedThumbnails:e.visitedThumbnails,annotations:e.annotations,flaggedThumbnails:e.flaggedThumbnails,suggestionsPerPhotoMap:e.suggestionsPerPhotoMap})}),(0,Ae.jsx)(ws,{item:!0,hidden:0===r.APS.length,children:(0,Ae.jsx)(Z7e,{section:r.APS,selectedPhotos:e.selectedPhotos,callbackSelection:e.callbackSelection,title:"A - PS",visitedThumbnails:e.visitedThumbnails,annotations:e.annotations,flaggedThumbnails:e.flaggedThumbnails,suggestionsPerPhotoMap:e.suggestionsPerPhotoMap})}),(0,Ae.jsx)(ws,{item:!0,hidden:0===r.ASS.length,children:(0,Ae.jsx)(Z7e,{section:r.ASS,selectedPhotos:e.selectedPhotos,callbackSelection:e.callbackSelection,title:"A - SS",visitedThumbnails:e.visitedThumbnails,annotations:e.annotations,flaggedThumbnails:e.flaggedThumbnails,suggestionsPerPhotoMap:e.suggestionsPerPhotoMap})}),(0,Ae.jsx)(ws,{item:!0,hidden:0===r.BLE.length,children:(0,Ae.jsx)(Z7e,{section:r.BLE,selectedPhotos:e.selectedPhotos,callbackSelection:e.callbackSelection,title:"B - LE",visitedThumbnails:e.visitedThumbnails,annotations:e.annotations,flaggedThumbnails:e.flaggedThumbnails,suggestionsPerPhotoMap:e.suggestionsPerPhotoMap})}),(0,Ae.jsx)(ws,{item:!0,hidden:0===r.BTE.length,children:(0,Ae.jsx)(Z7e,{section:r.BTE,selectedPhotos:e.selectedPhotos,callbackSelection:e.callbackSelection,title:"B - TE",visitedThumbnails:e.visitedThumbnails,annotations:e.annotations,flaggedThumbnails:e.flaggedThumbnails,suggestionsPerPhotoMap:e.suggestionsPerPhotoMap})}),(0,Ae.jsx)(ws,{item:!0,hidden:0===r.BPS.length,children:(0,Ae.jsx)(Z7e,{section:r.BPS,selectedPhotos:e.selectedPhotos,callbackSelection:e.callbackSelection,title:"B - PS",visitedThumbnails:e.visitedThumbnails,annotations:e.annotations,flaggedThumbnails:e.flaggedThumbnails,suggestionsPerPhotoMap:e.suggestionsPerPhotoMap})}),(0,Ae.jsx)(ws,{item:!0,hidden:0===r.BSS.length,children:(0,Ae.jsx)(Z7e,{section:r.BSS,selectedPhotos:e.selectedPhotos,callbackSelection:e.callbackSelection,title:"B - SS",visitedThumbnails:e.visitedThumbnails,annotations:e.annotations,flaggedThumbnails:e.flaggedThumbnails,suggestionsPerPhotoMap:e.suggestionsPerPhotoMap})}),(0,Ae.jsx)(ws,{item:!0,hidden:0===r.CLE.length,children:(0,Ae.jsx)(Z7e,{section:r.CLE,selectedPhotos:e.selectedPhotos,callbackSelection:e.callbackSelection,title:"C - LE",visitedThumbnails:e.visitedThumbnails,annotations:e.annotations,flaggedThumbnails:e.flaggedThumbnails,suggestionsPerPhotoMap:e.suggestionsPerPhotoMap})}),(0,Ae.jsx)(ws,{item:!0,hidden:0===r.CTE.length,children:(0,Ae.jsx)(Z7e,{section:r.CTE,selectedPhotos:e.selectedPhotos,callbackSelection:e.callbackSelection,title:"C - TE",visitedThumbnails:e.visitedThumbnails,annotations:e.annotations,flaggedThumbnails:e.flaggedThumbnails,suggestionsPerPhotoMap:e.suggestionsPerPhotoMap})}),(0,Ae.jsx)(ws,{item:!0,hidden:0===r.CPS.length,children:(0,Ae.jsx)(Z7e,{section:r.CPS,selectedPhotos:e.selectedPhotos,callbackSelection:e.callbackSelection,title:"C - PS",visitedThumbnails:e.visitedThumbnails,annotations:e.annotations,flaggedThumbnails:e.flaggedThumbnails,suggestionsPerPhotoMap:e.suggestionsPerPhotoMap})}),(0,Ae.jsx)(ws,{item:!0,hidden:0===r.CSS.length,children:(0,Ae.jsx)(Z7e,{section:r.CSS,selectedPhotos:e.selectedPhotos,callbackSelection:e.callbackSelection,title:"C - SS",visitedThumbnails:e.visitedThumbnails,annotations:e.annotations,flaggedThumbnails:e.flaggedThumbnails,suggestionsPerPhotoMap:e.suggestionsPerPhotoMap})})]}),0===e.selectedPhotos.length&&!o&&(0,Ae.jsx)("div",{style:{marginTop:"50%",color:"#535353"},children:"Nothing to display! You should remove some filters\u2026"})]})};let Q7e=function(e){return e.A="A",e.B="B",e.C="C",e}({});const eet="Unknown";var tet,net,ret,iet;function oet(){return oet=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},oet.apply(this,arguments)}function set(e,t){let{title:r,titleId:i,...o}=e;return n.createElement("svg",oet({width:147,height:140,viewBox:"0 0 98 93",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:t,"aria-labelledby":i},o),r?n.createElement("title",{id:i},r):null,tet||(tet=n.createElement("path",{d:"M43.9217 49.1806C44.0764 50.1206 43.9217 54.5387 43.9217 54.5387C43.9217 54.5387 44.4631 55.0557 47.0155 55.0557C49.5679 55.0557 50.032 54.5387 50.032 54.5387C50.032 54.5387 50.264 1.52972 50.264 1.38138C50.264 1.23304 50.1094 0.958366 49.7226 1.00536C49.3359 1.05236 49.3359 1.14637 49.1812 1.56937C49.0265 1.99237 48.021 7.5854 45.4686 21.7325C42.9161 35.8796 41.524 38.6996 42.1428 42.5536C43.3421 46.8776 43.767 48.2406 43.9217 49.1806Z",fill:"#00A6FF",stroke:"black",strokeWidth:1.5})),net||(net=n.createElement("path",{d:"M54.3899 57.1826C53.4985 56.8466 49.7498 54.5036 49.7498 54.5036C49.7498 54.5036 49.0313 54.714 47.7551 56.9244C46.4789 59.1349 46.6946 59.7953 46.6946 59.7953C46.6946 59.7953 92.4857 86.5007 92.6142 86.5749C92.7426 86.649 93.0578 86.6524 93.2105 86.294C93.3632 85.9356 93.2818 85.8886 92.9928 85.5431C92.7038 85.1976 88.3628 81.5304 77.3873 72.2463C66.4118 62.9623 64.6657 60.3467 61.0186 58.9555C56.6742 57.8322 55.2814 57.5187 54.3899 57.1826Z",fill:"#EDEDED",stroke:"black",strokeWidth:1.5})),ret||(ret=n.createElement("path",{d:"M43.7069 62.4702C44.3764 61.7926 48.0416 59.3209 48.0416 59.3209L44.4501 54.3775C44.4501 54.3775 1.42855 85.3477 1.30853 85.4349C1.18852 85.5221 1.05723 85.8087 1.32257 86.0939C1.58791 86.3792 1.66396 86.3239 2.09711 86.2004C2.53025 86.077 7.64609 83.6029 20.5916 77.3524C33.5371 71.1019 36.6369 70.5706 39.3911 67.8047C42.1844 64.2929 43.0373 63.1479 43.7069 62.4702Z",fill:"#EDEDED",stroke:"black",strokeWidth:1.5})),iet||(iet=n.createElement("circle",{cx:46.9366,cy:57.0105,r:3.93249,fill:"#D9D9D9",stroke:"black"})))}const aet=n.forwardRef(set);__webpack_require__.p;var cet,uet,det,het;function pet(){return pet=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},pet.apply(this,arguments)}function fet(e,t){let{title:r,titleId:i,...o}=e;return n.createElement("svg",pet({width:147,height:140,viewBox:"0 0 98 93",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:t,"aria-labelledby":i},o),r?n.createElement("title",{id:i},r):null,cet||(cet=n.createElement("path",{d:"M43.9217 49.1806C44.0764 50.1206 43.9217 54.5387 43.9217 54.5387C43.9217 54.5387 44.4631 55.0557 47.0155 55.0557C49.5679 55.0557 50.032 54.5387 50.032 54.5387C50.032 54.5387 50.264 1.52972 50.264 1.38138C50.264 1.23304 50.1094 0.958366 49.7226 1.00536C49.3359 1.05236 49.3359 1.14637 49.1812 1.56937C49.0265 1.99237 48.021 7.5854 45.4686 21.7325C42.9161 35.8796 41.524 38.6996 42.1428 42.5536C43.3421 46.8776 43.767 48.2406 43.9217 49.1806Z",fill:"#EDEDED",stroke:"black",strokeWidth:1.5})),uet||(uet=n.createElement("path",{d:"M54.3899 57.1826C53.4985 56.8466 49.7498 54.5036 49.7498 54.5036C49.7498 54.5036 49.0313 54.714 47.7551 56.9244C46.4789 59.1349 46.6946 59.7953 46.6946 59.7953C46.6946 59.7953 92.4857 86.5007 92.6142 86.5749C92.7426 86.649 93.0578 86.6524 93.2105 86.294C93.3632 85.9356 93.2818 85.8886 92.9928 85.5431C92.7038 85.1976 88.3628 81.5304 77.3873 72.2463C66.4118 62.9623 64.6657 60.3467 61.0186 58.9555C56.6742 57.8322 55.2814 57.5187 54.3899 57.1826Z",fill:"#EDEDED",stroke:"black",strokeWidth:1.5})),det||(det=n.createElement("path",{d:"M43.7069 62.4702C44.3764 61.7926 48.0416 59.3209 48.0416 59.3209L44.4501 54.3775C44.4501 54.3775 1.42855 85.3477 1.30853 85.4349C1.18852 85.5221 1.05723 85.8087 1.32257 86.0939C1.58791 86.3792 1.66396 86.3239 2.09711 86.2004C2.53025 86.077 7.64609 83.6029 20.5916 77.3524C33.5371 71.1019 36.6369 70.5706 39.3911 67.8047C42.1844 64.2929 43.0373 63.1479 43.7069 62.4702Z",fill:"#00A6FF",stroke:"black",strokeWidth:1.5})),het||(het=n.createElement("circle",{cx:46.9366,cy:57.0105,r:3.93249,fill:"#D9D9D9",stroke:"black"})))}const get=n.forwardRef(fet);__webpack_require__.p;var met,yet,vet,_et;function bet(){return bet=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},bet.apply(this,arguments)}function xet(e,t){let{title:r,titleId:i,...o}=e;return n.createElement("svg",bet({width:147,height:140,viewBox:"0 0 98 93",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:t,"aria-labelledby":i},o),r?n.createElement("title",{id:i},r):null,met||(met=n.createElement("path",{d:"M43.9217 49.1806C44.0764 50.1206 43.9217 54.5387 43.9217 54.5387C43.9217 54.5387 44.4631 55.0557 47.0155 55.0557C49.5679 55.0557 50.032 54.5387 50.032 54.5387C50.032 54.5387 50.264 1.52972 50.264 1.38138C50.264 1.23304 50.1094 0.958366 49.7226 1.00536C49.3359 1.05236 49.3359 1.14637 49.1812 1.56937C49.0265 1.99237 48.021 7.5854 45.4686 21.7325C42.9161 35.8796 41.524 38.6996 42.1428 42.5536C43.3421 46.8776 43.767 48.2406 43.9217 49.1806Z",fill:"#EDEDED",stroke:"black",strokeWidth:1.5})),yet||(yet=n.createElement("path",{d:"M54.3899 57.1826C53.4985 56.8466 49.7498 54.5036 49.7498 54.5036C49.7498 54.5036 49.0313 54.714 47.7551 56.9244C46.4789 59.1349 46.6946 59.7953 46.6946 59.7953C46.6946 59.7953 92.4857 86.5007 92.6142 86.5749C92.7426 86.649 93.0578 86.6524 93.2105 86.294C93.3632 85.9356 93.2818 85.8886 92.9928 85.5431C92.7038 85.1976 88.3628 81.5304 77.3873 72.2463C66.4118 62.9623 64.6657 60.3467 61.0186 58.9555C56.6742 57.8322 55.2814 57.5187 54.3899 57.1826Z",fill:"#00A6FF",stroke:"black",strokeWidth:1.5})),vet||(vet=n.createElement("path",{d:"M43.7069 62.4702C44.3764 61.7926 48.0416 59.3209 48.0416 59.3209L44.4501 54.3775C44.4501 54.3775 1.42855 85.3477 1.30853 85.4349C1.18852 85.5221 1.05723 85.8087 1.32257 86.0939C1.58791 86.3792 1.66396 86.3239 2.09711 86.2004C2.53025 86.077 7.64609 83.6029 20.5916 77.3524C33.5371 71.1019 36.6369 70.5706 39.3911 67.8047C42.1844 64.2929 43.0373 63.1479 43.7069 62.4702Z",fill:"#EDEDED",stroke:"black",strokeWidth:1.5})),_et||(_et=n.createElement("circle",{cx:46.9366,cy:57.0105,r:3.93249,fill:"#D9D9D9",stroke:"black"})))}const wet=n.forwardRef(xet);__webpack_require__.p;var Eet,Pet,Cet,Aet;function ket(){return ket=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},ket.apply(this,arguments)}function jet(e,t){let{title:r,titleId:i,...o}=e;return n.createElement("svg",ket({width:147,height:140,viewBox:"0 0 98 93",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:t,"aria-labelledby":i},o),r?n.createElement("title",{id:i},r):null,Eet||(Eet=n.createElement("path",{d:"M43.9217 49.1806C44.0764 50.1206 43.9217 54.5387 43.9217 54.5387C43.9217 54.5387 44.4631 55.0557 47.0155 55.0557C49.5679 55.0557 50.032 54.5387 50.032 54.5387C50.032 54.5387 50.264 1.52972 50.264 1.38138C50.264 1.23304 50.1094 0.958366 49.7226 1.00536C49.3359 1.05236 49.3359 1.14637 49.1812 1.56937C49.0265 1.99237 48.021 7.5854 45.4686 21.7325C42.9161 35.8796 41.524 38.6996 42.1428 42.5536C43.3421 46.8776 43.767 48.2406 43.9217 49.1806Z",fill:"#EDEDED",stroke:"black",strokeWidth:1.5})),Pet||(Pet=n.createElement("path",{d:"M54.3899 57.1826C53.4985 56.8466 49.7498 54.5036 49.7498 54.5036C49.7498 54.5036 49.0313 54.714 47.7551 56.9244C46.4789 59.1349 46.6946 59.7953 46.6946 59.7953C46.6946 59.7953 92.4857 86.5007 92.6142 86.5749C92.7426 86.649 93.0578 86.6524 93.2105 86.294C93.3632 85.9356 93.2818 85.8886 92.9928 85.5431C92.7038 85.1976 88.3628 81.5304 77.3873 72.2463C66.4118 62.9623 64.6657 60.3467 61.0186 58.9555C56.6742 57.8322 55.2814 57.5187 54.3899 57.1826Z",fill:"#EDEDED",stroke:"black",strokeWidth:1.5})),Cet||(Cet=n.createElement("path",{d:"M43.7069 62.4702C44.3764 61.7926 48.0416 59.3209 48.0416 59.3209L44.4501 54.3775C44.4501 54.3775 1.42855 85.3477 1.30853 85.4349C1.18852 85.5221 1.05723 85.8087 1.32257 86.0939C1.58791 86.3792 1.66396 86.3239 2.09711 86.2004C2.53025 86.077 7.64609 83.6029 20.5916 77.3524C33.5371 71.1019 36.6369 70.5706 39.3911 67.8047C42.1844 64.2929 43.0373 63.1479 43.7069 62.4702Z",fill:"#EDEDED",stroke:"black",strokeWidth:1.5})),Aet||(Aet=n.createElement("circle",{cx:46.9366,cy:57.0105,r:3.93249,fill:"#D9D9D9",stroke:"black"})))}const Iet=n.forwardRef(jet),Get=(__webpack_require__.p,(e,t)=>{const n=e[t];return n?"".concat(t," - ").concat(n):t}),Tet=e=>{var t,n,r,i,o,s;const a=b(Nm),l=null!==(t=null===a||void 0===a||null===(n=a.subAsset)||void 0===n?void 0:n.serials)&&void 0!==t?t:{},c=null===(r=!(null!==a&&void 0!==a&&null!==(i=a.subAsset)&&void 0!==i&&i.bladesAntiClockWise))||void 0===r||r?[Q7e.A,Q7e.B,Q7e.C]:[Q7e.A,Q7e.C,Q7e.B],u=(e,t)=>{const n=e?1:2,r=c.indexOf(t);return c[(r+n)%c.length]},d=null!==a&&void 0!==a&&a.verticalBlade?Q7e[a.verticalBlade]:void 0,h=d?u(!0,d):"",p=d?u(!1,d):"",f={fontSize:"12px",whiteSpace:"nowrap",textOverflow:"ellipsis",overflow:"hidden"},g=[{name:Get(l,d),style:{top:"5%",width:"40%",left:"6%"},textStyle:{...f,textAlign:"right"}},{name:Get(l,p),style:{top:"55%",width:"30%",left:"8%"},textStyle:{...f,textAlign:"right"}},{name:Get(l,h),style:{top:"55%",width:"30%",left:"62%"},textStyle:{...f,textAlign:"left"}}],m=((e,t)=>{if(!t||!e)return(0,Ae.jsx)(Iet,{});const n=[(0,Ae.jsx)(aet,{}),(0,Ae.jsx)(wet,{}),(0,Ae.jsx)(get,{})],r=c.indexOf(t),i=c.indexOf(e);return n[(n.length+i-r)%n.length]})(Q7e[null!==(o=e.currentBlade)&&void 0!==o?o:""],Q7e[null!==(s=null===a||void 0===a?void 0:a.verticalBlade)&&void 0!==s?s:""]);return(0,Ae.jsx)("div",{style:{backgroundColor:"white",paddingTop:"1rem",border:"1px solid #C4C4C4"},children:(0,Ae.jsxs)("div",{style:{margin:"0 auto",position:"relative"},children:[m,g.map(((e,t)=>{let{name:n,style:r,textStyle:i}=e;return(0,Ae.jsx)("div",{style:{position:"absolute",...r},children:(0,Ae.jsx)("p",{style:i,children:n})},t)}))]})})},Met=Zo()((()=>({popover:{padding:20,width:400},title:{color:"darkRed",fontSize:22,paddingBottom:10},question:{paddingBottom:20},buttonGroup:{display:"flex",justifyContent:"space-around"}}))),Oet=e=>{const{classes:t}=Met();return(0,Ae.jsxs)("div",{className:t.popover,children:[(0,Ae.jsx)("div",{className:t.title,children:"Update vertical blade"}),(0,Ae.jsxs)("div",{className:t.question,children:[(0,Ae.jsx)("p",{children:"You are about to change the vertical blade, this action will change the blade picture distribution according to the specified blade ordering (CW or CCW)."}),(0,Ae.jsxs)("b",{children:['Do you confirm setting the vertical blade to "',e.newVerticalBladeName,'"?']})]}),(0,Ae.jsxs)("div",{className:t.buttonGroup,children:[(0,Ae.jsx)(ev,{variant:"contained",label:"Cancel",color:"cancel",disabled:e.loading,onClick:e.onCancel}),(0,Ae.jsx)(ev,{variant:"contained",label:"Confirm",color:"delete",disabled:e.loading,loading:e.loading,onClick:e.onConfirm})]})]})},Ret=Zo()((()=>({select:{"& .MuiSelect-outlined":{paddingTop:"8px",paddingBottom:"8px"}},redSelect:{"& .MuiOutlinedInput-notchedOutline":{borderColor:"red"}}}))),Det=e=>{var t,r,i,o;const{classes:s}=Ret(),a=b(Nm),l=null!==a&&void 0!==a&&a.verticalBlade?Q7e[a.verticalBlade]:void 0,c=null===(t=!(null!==a&&void 0!==a&&null!==(r=a.subAsset)&&void 0!==r&&r.bladesAntiClockWise))||void 0===t||t,[u,d]=(0,n.useState)(l),[h,p]=(0,n.useState)(!1),[f,g]=(0,n.useState)(!1),[m,y]=(0,n.useState)(null),[v,_]=(0,n.useState)({isOpen:!1,text:"",severity:"success"}),x=null!==(i=null===a||void 0===a||null===(o=a.subAsset)||void 0===o?void 0:o.serials)&&void 0!==i?i:{},S=u?Get(x,u):"",w=Object.keys(Q7e).map((e=>({value:e,name:Get(x,e)}))),E=()=>{d(l),p(!1),y(null)};return(0,Ae.jsxs)(Ae.Fragment,{children:[(0,Ae.jsx)(Jw,{variant:"outlined",defaultValue:"",value:null!==u&&void 0!==u?u:"",onChange:e=>{d(e.target.value)},displayEmpty:!0,renderValue:e=>e?Get(x,e):"Set vertical blade",className:s.select,style:{width:"90%"},children:w.map(((e,t)=>{let{value:n,name:r}=e;return(0,Ae.jsx)(dh,{value:n,children:r},t)}))}),(0,Ae.jsxs)("p",{style:{marginTop:".5rem",textAlign:"left",fontSize:13},children:["Blade order from the outside is set to",(0,Ae.jsxs)("b",{children:[" ",c?"clockwise":"anti clockwise"]})]}),l!==u&&(0,Ae.jsx)(ev,{color:"primary",variant:"contained",label:"Save",style:{width:"90%",marginTop:".5rem"},onClick:e=>{e.currentTarget&&(y(e.currentTarget),p(!0))}}),(0,Ae.jsx)(Ud,{open:h,onClose:E,anchorEl:m,anchorOrigin:{vertical:"top",horizontal:"right"},transformOrigin:{vertical:"bottom",horizontal:"right"},children:S&&(0,Ae.jsx)(Oet,{newVerticalBladeName:S,loading:f,onCancel:E,onConfirm:async()=>{try{var t;if(g(!0),null===a||void 0===a||!a.id)throw new Error("No inspection doc");const n=await((e,t)=>{const n={method:"POST",body:JSON.stringify({verticalBlade:t})};return Ey("/inspections/".concat(e,"/updateVerticalBlade"),n)})(a.id,u);if(200!==n.status)throw new Error("Wrong response status: ".concat(n.status));_({isOpen:!0,severity:"success",text:"Vertical blade switched successfully!"}),null===e||void 0===e||null===(t=e.onConfirmSave)||void 0===t||t.call(e)}catch(Rmt){E(),_({isOpen:!0,severity:"error",text:"An error occured while switching vertical blade"})}finally{g(!1),p(!1)}}})}),(0,Ae.jsx)(JT,{open:v.isOpen,autoHideDuration:5e3,onClose:()=>_((e=>({...e,isOpen:!1}))),anchorOrigin:{vertical:"bottom",horizontal:"right"},children:(0,Ae.jsx)(pM,{severity:v.severity,children:v.text})})]})},Net=CC.object({sensorDiagonal:CC.number().positive()}),Let=e=>{const{photosData:t}=e,[r,i]=(0,n.useState)([]),o=(0,n.useCallback)((async(e,t)=>{let n;try{n=await(async(e,t)=>{const n=await Ey("/".concat("cameras","/").concat(e,"/").concat(t),{method:"GET"});if(!n.ok){var r;const e=await n.text();throw new Error(null!==(r=null!==e&&void 0!==e?e:n.statusText)&&void 0!==r?r:"Unkown error")}const i=await n.json();return Net.parse(i)})(e,t)}catch(Rmt){console.error("Camera settings for model ".concat(e," and focal ").concat(t," not found"))}finally{i((r=>[...r,{model:e,focalLength:t,settings:n}]))}}),[]),s=(0,n.useMemo)((()=>t.reduce(((e,t)=>{let{exif:n}=t;if(!n)return e;const r=e.findIndex((e=>{let{model:t,focalLength:r}=e;return t===n.model&&r===n.focalLengthIn35mmFilm}));return r>-1?e:[...e,{model:n.model,focalLength:n.focalLengthIn35mmFilm}]}),[])),[t]);(0,n.useEffect)((()=>{s.filter((e=>!r.some((t=>{let{model:n,focalLength:r}=t;return e.model===n&&e.focalLength===r})))).forEach((e=>o(e.model,e.focalLength)))}),[s,r,o]);const a=(0,n.useMemo)((()=>t.map((e=>{var t,n;let{id:i,exif:o,obstacleDistance:s=0,externalImage:a,scale:l}=e;if(!o)return;const{imageWidth:c,imageHeight:u,focalLengthIn35mmFilm:d}=o;if(a){if(!l)return;return{photoId:i,imageWidth:c,imageHeight:u,gsd:l}}const h=s;if(!d)return;let p=r.find((e=>{let{model:t,focalLength:n}=e;return t===o.model&&n===o.focalLengthIn35mmFilm}));null!==(t=p)&&void 0!==t&&t.settings||(p=r.find((e=>{let{settings:t}=e;return t})));const f=null===(n=p)||void 0===n?void 0:n.settings;if(!f)return;const{sensorDiagonal:g}=f,m=d/(43.3/g);const y=((e,t)=>{const n=t.width/t.height;return e*n/Math.sqrt(n*n+1)})(g,{width:c,height:u}),v=((e,t,n,r)=>e*t*100/(n*r))(h,y,m,c);return{photoId:i,imageWidth:c,imageHeight:u,gsd:v}}))),[t,r]),l=(0,n.useCallback)((e=>a.find((t=>(null===t||void 0===t?void 0:t.photoId)===e))),[a]);return{cameras:r,getGSDDataForPhoto:l}},Vet=e=>{const{children:t,infoText:n,disabled:r=!1,checked:i,onChange:o,style:s={}}=e;return(0,Ae.jsx)("div",{style:{color:"#535353",padding:"0.5rem 1rem",background:"white",...s},children:(0,Ae.jsxs)(ws,{container:!0,wrap:"nowrap",height:"100%",alignItems:"center",justifyContent:"center",columnGap:"1rem",children:[(0,Ae.jsx)(ws,{item:!0,flex:1,textAlign:"left",lineHeight:"1rem",children:t}),n&&(0,Ae.jsx)(cu,{title:n,children:(0,Ae.jsx)(_U.c,{color:"primary"})}),(0,Ae.jsx)(Aj,{color:"primary",disabled:r,checked:i,onChange:e=>o(e.target.checked)})]})})},Fet=e=>{const[t,r]=(0,n.useState)(!1),{handleCloseReviewButtonClick:i}=e,o=()=>{const[e,o]=(0,n.useState)([!1,!1,!1]);return(0,Ae.jsx)($x,{open:t,children:(0,Ae.jsxs)(wp,{padding:"1rem",children:[(0,Ae.jsx)(vu,{children:"Are you sure you want to close the review? This action is irreversible"}),(0,Ae.jsxs)(Lu,{children:[(0,Ae.jsxs)(Bq,{children:[(0,Ae.jsx)(lj,{checked:e[0],onChange:t=>o([t.target.checked,e[1],e[2]])}),(0,Ae.jsx)(vu,{children:"This will give access to the client"})]}),(0,Ae.jsxs)(Bq,{children:[(0,Ae.jsx)(lj,{checked:e[1],onChange:t=>{o([e[0],t.target.checked,e[2]])}}),(0,Ae.jsx)(vu,{children:"This will switch the aiStatus to Complete"})]}),(0,Ae.jsxs)(Bq,{children:[(0,Ae.jsx)(lj,{checked:e[2],onChange:t=>{o([e[0],e[1],t.target.checked])}}),(0,Ae.jsx)(vu,{children:"This will change the status of the notion ticket"})]})]}),(0,Ae.jsx)(ohe,{validateDisabled:e.some((e=>!e)),onCancel:()=>r(!1),onValidate:()=>{i(),r(!1)},validateText:"Close Review"})]})})};return(0,Ae.jsxs)("div",{id:"close-review-button",style:{color:"#535353",background:"white",padding:"0.5rem 0"},children:[(0,Ae.jsx)(o,{}),(0,Ae.jsxs)(wp,{display:"flex",flexDirection:"column",justifyContent:"center",alignItems:"center",gap:"0.25rem",children:[(0,Ae.jsx)(vu,{children:"Complete your review"}),(0,Ae.jsx)(ev,{label:"Close Review",size:"small",color:"primary",onClick:()=>r(!0),style:{height:"fit-content"}})]})]})},zet=e=>{var t;const{photosPerTowerHeadingMap:r,callBackSelection:i,currentPhotoData:o,customStyle:s,photoDB:a,currentTowerHeadingFilter:l}=e,[c,u]=(0,n.useState)(!1),[d,h]=(0,n.useState)(null!==(t=o.sortData.towerHeading)&&void 0!==t?t:0);(0,n.useEffect)((()=>{1!==l.length||l.includes(d)||h(l[0])}),[l]);const p=()=>(0,Ae.jsxs)(wp,{display:"flex",alignItems:"center",gap:"1rem",padding:"1rem 0 1rem 0.5rem",children:[(0,Ae.jsx)("p",{children:"Turn Around"}),(0,Ae.jsx)(ige,{buttons:k7e.map((e=>"".concat(e,"\xb0"))),onClick:e=>{h(k7e[e]),((e,t)=>{var n,o;const s=null!==(n=r.get(t))&&void 0!==n?n:[];if(0===s.length)return null;const l=null!==(o=e.sortData.altitude)&&void 0!==o?o:0,c=s.reduce(((e,t)=>{var n,r;const i=null!==(n=e.sortData.altitude)&&void 0!==n?n:0,o=null!==(r=t.sortData.altitude)&&void 0!==r?r:0;return Math.abs(o-l)<Math.abs(i-l)?t:e}));if(c.photoId===e.photoId)return null;const u=a.findIndex((e=>e.photoId===c.photoId));i(u)})(o,k7e[e])},activeIndex:k7e.indexOf(d),disabledButtonsIndex:l.length>0?k7e.filter((e=>!l.includes(e))).map((e=>k7e.indexOf(e))):[]}),(0,Ae.jsx)(Sa,{onClick:()=>u(!1),children:(0,Ae.jsx)(tp,{})})]});return(0,Ae.jsx)(wp,{style:{...s,position:"absolute",zIndex:1,backgroundColor:"white",borderRadius:"5px"},children:c?(0,Ae.jsx)(p,{}):(0,Ae.jsx)(Sa,{onClick:()=>u(!0),children:(0,Ae.jsx)(nI,{})})})};var Bet=__webpack_require__(71512),Uet=__webpack_require__(59056);const Wet=e=>{let{annotationData:t,severities:r,changeSeverity:i,onChange:o}=e;const[s,a]=(0,n.useState)(!1);return(0,n.useEffect)((()=>{o(s)}),[s,o]),(0,Ae.jsxs)(Ph,{elevation:0,sx:{"&:before":{display:"none"}},expanded:s,onChange:()=>a(!s),children:[(0,Ae.jsx)(Th,{expandIcon:(0,Ae.jsx)(cp.c,{}),"aria-controls":"panel1-content",id:"panel1-header",sx:{paddingX:0,height:".2rem"},children:(0,Ae.jsxs)(vj,{direction:"row",gap:1,children:[(0,Ae.jsxs)(ws,{container:!0,alignItems:"center",gap:"0.25rem",children:[(0,Ae.jsx)(Uet.c,{color:"warning"}),(0,Ae.jsx)(vu,{children:"Automatic severity suggestions"})]}),(0,Ae.jsx)(Bet.c,{})]})}),(0,Ae.jsxs)(Dh,{sx:{padding:0},children:[(0,Ae.jsxs)(vu,{sx:{backgroundColor:"#eceff1",borderTopLeftRadius:6,borderTopRightRadius:6,padding:1,lineHeight:"1.1rem"},children:[(l=t.defectType,c=!0,["a","e","i","o","u"].includes(l.charAt(0).toLowerCase())?c?"An":"an":c?"A":"a")," ",(0,Ae.jsx)("b",{children:t.defectType})," annotation placed on the"," ",(0,Ae.jsx)("b",{children:t.edge})," at"," ",(0,Ae.jsxs)("b",{children:[Ly(t.tipDistance,2)," m from the tip"]})," with a ",(0,Ae.jsxs)("b",{children:["size of ",t.length," cm"]})," and an"," ",(0,Ae.jsxs)("b",{children:["area of ",t.area.toLocaleString()," cm\xb2"]})," is usually categorized"," ",r.length>1?(0,Ae.jsxs)(Ae.Fragment,{children:["between"," ",(0,Ae.jsxs)("b",{children:[r[0].level," and"," ",r[r.length-1].level]})]}):(0,Ae.jsx)("b",{children:r[0].level}),". Please select one of the following key factor if it applies to set the corresponding severity."]}),(0,Ae.jsx)(BA,{children:(0,Ae.jsx)(KA,{children:r.map(((e,t)=>(0,Ae.jsxs)(Wk,{sx:{cursor:"pointer",borderLeft:"solid 2px transparent","&:hover":{backgroundColor:qp,borderLeftColor:jp}},onClick:()=>(e=>{i(e.level,e.description),a(!1)})(e),children:[(0,Ae.jsx)(tk,{sx:{paddingY:0,paddingX:1,height:"100%",border:t===r.length-1?"none":""},children:e.description.split("\n").map(((e,t)=>(0,Ae.jsx)(vu,{sx:{whiteSpace:"pre-line"},children:e},t)))}),(0,Ae.jsx)(tk,{align:"right",sx:{paddingY:1.5,paddingX:1,display:"flex",justifyContent:"end",border:t===r.length-1?"none":""},children:(0,Ae.jsx)(vu,{sx:{border:"solid 1px ".concat(jp),borderRadius:1},textAlign:"center",color:jp,paddingY:".25rem",width:"2.25rem",marginY:"-4px",children:e.level})})]},t)))})}),(0,Ae.jsx)(vu,{fontStyle:"italic",fontSize:".8rem",sx:{backgroundColor:"#eceff1",borderBottomLeftRadius:6,borderBottomRightRadius:6,paddingX:1,paddingY:.5},children:"SkyVisor cannot be liable for this severity suggestion, set it according to your experience."})]})]});var l,c},Het="35rem",qet=Zo()((()=>({input:{paddingBottom:20},card:{position:"absolute"},bottomButton:{float:"right",paddingBottom:20},titleType:{background:"white",paddingLeft:5,paddingRight:5}}))),Xet={paddingBottom:10,paddingTop:10},Yet={marginRight:20},Ket=e=>{const{popoverAnnotation:t,changeDefaultAnnot:r,handleClosePopover:i,anchorPop:o,anchorPosition:s,isSuggestionsCreatorMode:a=!1,onSuggestionValidated:l}=e,{classes:c}=qet(),[u,d]=(0,n.useState)(t),[h,p]=(0,n.useState)(vke.LE_EROSION),[f,g]=(0,n.useState)(!1),m=""===u.fileName,[y,v]=(0,n.useState)(!1),[_,b]=(0,n.useState)(),[x,S]=(0,n.useState)(),[w,E]=(0,n.useState)(!m),P=(0,n.useRef)(null),[C,A]=(0,n.useState)(!1),k=U7e(Qm),j=U7e(Nm);(0,n.useEffect)((()=>{d(t)}),[t]);const I=(0,n.useMemo)((()=>(null===j||void 0===j?void 0:j.type)===RC.BLADES),[j]),G=(e,t)=>{t||A(!1),d({...u,severity:e,note:t&&!w?t:u.note})};(0,n.useEffect)((()=>{if(!I)return;const e=u.realHeight,t=u.realWidth;if(!u.edge&&!u.side||!u.hubDistance&&0!==u.hubDistance||!e||!t)return;v(!0),A(!1);const n={defectType:u.type,edge:u.edge||u.side||"",tipDistance:k.bladeLength-u.hubDistance,length:t>e?t:e,area:t*e};b(n),T(n)}),[I,u.edge,u.side,u.type,u.realHeight,u.realWidth,u.hubDistance,k]);const T=async e=>{try{const t=await(async e=>{const t=await Ey("/severities/wind",{method:"POST",body:JSON.stringify(e)});if(!t.ok){const e=await t.text();throw new Error(null!==e&&void 0!==e?e:"An error occured fetching auto wind severities")}return t.json()})(e);S(t)}catch(Rmt){S(void 0)}finally{v(!1)}},M=(0,n.useCallback)((async()=>{if(a&&h)return void(null===l||void 0===l||l(h));if(!u.type)return;g(!0);const t=e.imageSettings?(0,Qo.isEqual)(e.imageSettings,{contrast:1,brightness:1,saturate:1})?void 0:e.imageSettings:void 0;m?await(async(e,t,n)=>uV("create",e,t,!1,n))(u,t,!0):await cV(u,t,!1,!1),r(u),g(!1),i(!0)}),[u,m,a,e.imageSettings,h,r,i,l]),O=(0,n.useMemo)((()=>!a&&(null==u.type||""===u.type)),[a,u]);return(0,n.useEffect)((()=>{const e=e=>{if("Enter"===e.key){if(O)return;M()}};return window.addEventListener("keydown",e),function(){window.removeEventListener("keydown",e)}}),[M,O]),(0,Ae.jsx)(Ud,{open:!0,id:"wind-annotation-form-popover",anchorEl:null!==o&&void 0!==o?o:void 0,anchorPosition:null!==s&&void 0!==s?s:void 0,anchorReference:o?"anchorEl":"anchorPosition",anchorOrigin:{vertical:"top",horizontal:"left"},transformOrigin:{vertical:"top",horizontal:"left"},onClose:()=>i(),action:P,children:(0,Ae.jsxs)(wp,{padding:3,width:Het,children:[a&&(0,Ae.jsx)(vu,{variant:"h6",paddingBottom:"0.5rem",children:"New Wind AI Suggestion"}),(0,Ae.jsxs)(yw,{fullWidth:!0,variant:"outlined",children:[(0,Ae.jsx)(dw,{className:c.titleType,children:"Type"}),!a&&(0,Ae.jsx)(Aq,{onChange:e=>{e.preventDefault(),d({...u,type:e.target.value})},type:u.type,marginBottom:5}),a&&(0,Ae.jsx)(Jw,{fullWidth:!0,label:"Suggestion's type",onChange:e=>p(e.target.value),value:h,style:{marginBottom:"0.8rem",textAlign:"left"},children:Object.keys(vke).map((e=>(0,Ae.jsx)(dh,{value:vke[e],children:vke[e]},e)))})]}),!a&&(0,Ae.jsxs)(ws,{container:!0,justifyContent:"space-between",alignItems:"center",gap:2,marginY:2,children:[(0,Ae.jsx)(ws,{item:!0,children:(0,Ae.jsx)(vu,{children:"Severity"})}),(0,Ae.jsx)(ws,{item:!0,children:(0,Ae.jsx)(kq,{onChange:G,severity:u.severity})}),I&&(0,Ae.jsx)(ws,{item:!0,children:y&&(0,Ae.jsx)($y,{size:30})})]}),!y&&!a&&_&&x&&x.length>0&&(0,Ae.jsx)(Wet,{annotationData:_,severities:x,changeSeverity:G,onChange:e=>{C||e&&setTimeout((()=>{P.current&&P.current.updatePosition(),A(!0)}),200)}}),!a&&(0,Ae.jsx)("div",{className:"mb-1",style:Xet,children:(0,Ae.jsx)(iE,{fullWidth:!0,id:"outlined-basic",label:"Note",variant:"outlined",multiline:!0,value:u.note,onChange:e=>{A(!1);const t=e.currentTarget.value;E(""!==t),d({...u,note:t})}})}),(0,Ae.jsxs)("div",{className:c.bottomButton,children:[(0,Ae.jsx)(ev,{label:"Cancel",style:Yet,color:"cancel",size:"small",onClick:e=>{e.stopPropagation(),i()}}),!m&&(0,Ae.jsx)(ev,{label:"Delete",style:Yet,color:"delete",size:"small",onClick:e=>{e.stopPropagation(),hV(u),i()}}),(0,Ae.jsx)(ev,{color:"primary",size:"small",label:"Save",loading:f,disabled:O,onClick:e=>{e.stopPropagation(),M()}})]})]})})},Zet=(e,t)=>Math.sqrt((e.x-t.x)**2+(e.y-t.y)**2),$et=e=>{const{width:t,height:n}=(e=>Math.abs(e[0].x-e[1].x)>Math.abs(e[0].y-e[1].y)?{width:Zet(e[0],e[1]),height:Zet(e[1],e[2])}:{height:Zet(e[0],e[1]),width:Zet(e[1],e[2])})(e),r=(e=>{const t=w5(e),n=E2(t).geometry.coordinates;return{x:n[0],y:n[1]}})(e.map((e=>{let{x:t,y:n}=e;return{x:Math.round(t),y:Math.round(n)}}))),i={x:r.x-t/2,y:r.y-n/2};let o=(e=>Math.atan2(e[3].y-e[0].y,e[3].x-e[0].x)-Math.PI/2)(e);return o<-3*Math.PI/4&&(o+=Math.PI),o=o>Math.PI/4&&o<3*Math.PI/4?o-Math.PI/2:o,o=o<-Math.PI/4&&o>-3*Math.PI/4?o+Math.PI/2:o,{center:r,topLeft:i,width:t,height:n,angle:o}},Jet="14rem",Qet=Zo()((()=>({root:{width:Jet,padding:"1rem",rowGap:"0.5rem"}}))),ett=e=>{const{anchorEl:t,onPointTypeSelected:n,onClose:r}=e,{classes:i}=Qet();return(0,Ae.jsx)(Ud,{open:!0,id:"wind-ai-mistake-form",anchorEl:null!==t&&void 0!==t?t:void 0,anchorOrigin:{vertical:"top",horizontal:"left"},transformOrigin:{vertical:"top",horizontal:"left"},onClose:r,children:(0,Ae.jsxs)(ws,{container:!0,direction:"column",wrap:"nowrap",className:i.root,children:[Object.values(zC).map((e=>(0,Ae.jsx)(ev,{onClick:()=>n(e),label:e},"ai-mistake-".concat(e)))),(0,Ae.jsx)(ev,{onClick:()=>r(),style:{marginTop:"0.75rem"},label:"Cancel",color:"cancel"})]})})},ttt="20rem",ntt=e=>{const{anchorEl:t,onValidate:n,onClose:r}=e;return(0,Ae.jsx)(Ae.Fragment,{children:(0,Ae.jsx)(Ud,{open:null!==t,anchorEl:t,onClose:r,children:(0,Ae.jsxs)(ws,{container:!0,direction:"column",wrap:"nowrap",rowGap:"1rem",padding:"1rem",width:ttt,children:[(0,Ae.jsx)(vu,{children:"Do you confirm deleting this AI mistake?"}),(0,Ae.jsx)(ohe,{onCancel:r,onValidate:n,validateText:"DELETE AI MISTAKE",validateColor:"delete"})]})})})};var rtt=__webpack_require__(44060);const itt=e=>{const{elements:t,visible:r}=e,i=(0,n.useContext)(V3);if(!i)return(0,Ae.jsx)(Ae.Fragment,{});const{map:o}=i,s=(0,n.useCallback)(((e,t)=>{const{element:n,position:r={x:0,y:0},positioning:i="center-center",offset:o={x:0,y:0},visible:s=!0,zIndex:a=2,angleRadians:l=0}=e;if(!s)return;const c=document.createElement("div");c.style.zIndex="".concat(a),c.style.transform="rotate(".concat(WPe(l),"deg) "),c.style.transformOrigin=i.replace("-"," ");return(0,S.C)(c).render(n),new f6e({id:t,element:c,position:[r.x,r.y],positioning:i,offset:[o.x,o.y]})}),[]);return(0,n.useEffect)((()=>{if(!r)return;const e=t.flatMap(((e,t)=>{if(!e)return[];const n=s(e,"overlay-".concat(t));return n?[n]:[]}));return e.forEach((e=>{o.addOverlay(e)})),()=>{e.forEach((e=>{o.removeOverlay(e)}))}}),[o,t,r,s]),(0,Ae.jsx)(Ae.Fragment,{})},ott=Zo()((()=>({btnContainer:{backgroundColor:nU("#ffffff",.8),border:"1px solid white",borderRadius:"25%"},iconBtn:{padding:0}}))),stt=e=>{const{visible:t,suggestion:r,imageSize:i,onBtnHoveredChange:o,onAcceptClick:s,onRejectClick:a}=e,{classes:l}=ott(),c=(0,n.useCallback)((e=>{let{children:t}=e;return(0,Ae.jsx)("div",{onMouseEnter:()=>{o(!0)},onMouseLeave:()=>{o(!1)},className:l.btnContainer,children:t})}),[o,l.btnContainer]),u=(0,n.useCallback)((e=>{var t;if(e.status===mke.TAG)return;const n=iAe(e,i),r=null!==(t=e.angle)&&void 0!==t?t:0,o=n[0],u=N3({x:-2,y:0},r),d={element:(0,Ae.jsx)(c,{children:(0,Ae.jsx)(cu,{title:"Accept suggestion",placement:"top",children:(0,Ae.jsx)("div",{children:(0,Ae.jsx)(Gu,{className:l.iconBtn,color:"success",onClick:()=>s(e.id),children:(0,Ae.jsx)(oJe.c,{fontSize:"medium"})})})})}),position:o,angleRadians:r,positioning:"top-right",offset:u},h=N3({x:-2,y:28},r);return[d,{element:(0,Ae.jsx)(c,{children:(0,Ae.jsx)(cu,{title:"Refuse suggestion",placement:"bottom",children:(0,Ae.jsx)(Gu,{className:l.iconBtn,color:"error",onClick:()=>a(e.id),children:(0,Ae.jsx)(rtt.c,{fontSize:"medium"})})})}),position:o,angleRadians:r,positioning:"top-right",offset:h}]}),[i,l.iconBtn]),d=(0,n.useMemo)((()=>{var e;return null!==(e=u(r))&&void 0!==e?e:[]}),[r,u]);return(0,Ae.jsx)(itt,{visible:t,elements:d})};var att=__webpack_require__(53760);const ltt=Zo()((()=>({root:{userSelect:"none"},button:{padding:"0 0.25rem",backgroundColor:"rgba(255,255,255,.7)","&:hover":{backgroundColor:"rgba(255,255,255,.8)"}},buttonContent:{alignItems:"center",columnGap:"0.5rem",color:Np},annotationSize:{fontSize:"12px",color:Np,textShadow:"-1px -1px 0 white, 1px -1px 0 white, -1px 1px 0 white, 1px 1px 0 white"},sizeTextContainer:{height:0,width:0,whiteSpace:"nowrap",pointerEvents:"none","& > *":{pointerEvents:"none"}}}))),ctt=e=>{const{visible:t,annotation:r,imageSize:i,onBtnHoveredChange:o,onUpdateClick:s}=e,{classes:a}=ltt(),{fileName:l,type:c,realHeight:u,realWidth:d}=r,[h,p]=(0,n.useMemo)((()=>{const e=iAe(r,i);return[e[0],e[3]]}),[r,i]),f=(0,n.useMemo)((()=>Math.floor(h.x)),[h]),g=(0,n.useMemo)((()=>Math.floor(h.y)),[h]),m=(0,n.useMemo)((()=>Math.floor(p.x)),[p]),y=(0,n.useMemo)((()=>Math.floor(p.y)),[p]),v=(0,n.useMemo)((()=>{var e;return Ly(null!==(e=r.angle)&&void 0!==e?e:0,6)}),[r]),_=(0,n.useCallback)((e=>{let{children:t,sizeTextContainer:n}=e;return(0,Ae.jsx)("div",{className:"".concat(a.root," ").concat(n?a.sizeTextContainer:""),onMouseEnter:()=>{o(!0)},onMouseLeave:()=>{o(!1)},children:t})}),[o,a]),b=(0,n.useMemo)((()=>{if(""===c)return[];const e=f<30,t=i.height-g<30&&!e?{positioning:"top-left",angleRadians:v+Math.PI/2,offset:N3({x:-2,y:0},v)}:{positioning:"bottom-left",angleRadians:v,offset:N3({x:0,y:-2},v)};return[{element:(0,Ae.jsx)(_,{children:(0,Ae.jsx)(Sa,{className:a.button,onClick:()=>s(l),children:(0,Ae.jsxs)(ws,{container:!0,wrap:"nowrap",className:a.buttonContent,children:[(0,Ae.jsx)(vu,{children:c}),(0,Ae.jsx)(att.c,{fontSize:"small"})]})})}),position:{x:f,y:g},...t}]}),[i,_,s,a,f,g,v,l,c]),x=(0,n.useMemo)((()=>[{element:(0,Ae.jsx)(_,{sizeTextContainer:!0,children:(0,Ae.jsxs)(vu,{className:a.annotationSize,children:[null!==d&&void 0!==d?d:"?"," x ",null!==u&&void 0!==u?u:"?"," cm"]})}),position:{x:m,y:y},positioning:"top-left",angleRadians:v}]),[_,a,u,d,m,y,v]);return(0,Ae.jsxs)(Ae.Fragment,{children:[(0,Ae.jsx)(itt,{visible:t,elements:b}),(0,Ae.jsx)(itt,{visible:t,elements:x})]})},utt=zp,dtt=jp,htt={anchorColor:zp},ptt=Zo()((()=>({formPositionRef:{position:"absolute",width:"10px",height:"10px"},progressContainer:{width:"100%",position:"absolute",top:0,left:0,zIndex:3},thumbnailPreviewImgContainer:{height:"100%",position:"absolute",top:0,left:0},thumbnailPreviewImg:{display:"block",margin:"auto",maxHeight:"100%"}}))),ftt=e=>{const{id:t,photoUrl:r}=e,{classes:i}=ptt(),o=(0,n.useContext)(gke);if(!o)return(0,Ae.jsx)(Ae.Fragment,{});const{currentImageData:s,modes:{isBackgroundHidden:a,isPatchesReviewMode:l,isSuggestionsCreatorMode:c,isThermalMode:u},isSkyvisorDataScientist:d,areSuggestionsVisible:h,windAISuggestionsHook:{onGoingSuggestionsByPhotoMap:p,getSuggestionById:f,createSuggestion:g,updateSuggestion:y,acceptSuggestion:v,rejectSuggestion:_},windAIMistakesHook:{AIMistakesPoints:x,newAIMistakePoint:S,AIMistakeItemRelativePosition:w,isAIMistakeHovered:E,selectedAIMistake:P,onAIMistakeDrawEnd:C,onAIMistakeHovered:A,onAIMistakeClicked:k,createAIMistake:j,resetNewAIMistake:I,unselectAIMistake:G,deleteAIMistake:T,...M},windBackgroundRemovalHook:{getPhotoBackgroundRemovalData:O},windAIPatchesHook:{getPhotoPatchesPolygons:R}}=o,{isComparison:D,thumbnailPhotoUrl:N,photoId:L,windGSD:V,setImageSize:F,setRealImageSize:z}=(0,n.useMemo)((()=>{const t="isComparisonPurpose"in e;return t?{isComparison:t,thumbnailPhotoUrl:void 0,photoId:void 0,windGSD:void 0,setImageSize:()=>null,setRealImageSize:()=>null}:{isComparison:t,...e}}),[e]),B=I7e(),U=(0,n.useMemo)((()=>{var e;return L&&null!==(e=p.get(L))&&void 0!==e?e:[]}),[L,p]),W=m(),H=b(Um),q=!1!==b(ey),[X,Y]=(0,n.useState)(!1),[K,Z]=(0,n.useState)(),[$,J]=(0,n.useState)(),[Q,ee]=(0,n.useState)($Ce),[te,ne]=(0,n.useState)(),[re,ie]=(0,n.useState)(),[oe,se]=(0,n.useState)(),[ae,le]=(0,n.useState)(),[ce,ue]=(0,n.useState)(),[de,he]=(0,n.useState)(),[pe,fe]=(0,n.useState)(!1),[ge,me]=(0,n.useState)(),[ye,ve]=(0,n.useState)(!1),[_e,be]=(0,n.useState)(),[xe,Se]=(0,n.useState)(!1),[we,Ee]=(0,n.useState)(),Pe=(0,n.useRef)(),Ce=(0,n.useRef)(),ke=(0,n.useRef)(),je=(0,n.useRef)(),Ie=(0,n.useRef)(null);(0,n.useEffect)((()=>{K&&F(K)}),[F,K]),(0,n.useEffect)((()=>{$&&z($)}),[z,$]),(0,n.useEffect)((()=>{he(w)}),[w]);const Ge=(0,n.useMemo)((()=>!D&&!ye&&!xe&&!l&&void 0===ge&&void 0===_e&&!u&&!q),[D,ye,xe,l,ge,_e,u,q]),Te=(0,n.useMemo)((()=>!D&&M.isAIMistakeDrawable&&!u&&!q),[D,M.isAIMistakeDrawable,u,q]),Me=(0,n.useMemo)((()=>!D&&!pe&&!l),[D,pe,l]),Oe=(0,n.useMemo)((()=>d&&!D&&!pe),[D,pe,d]),Re=(0,n.useMemo)((()=>null!==te&&void 0!==te?te:oe),[te,oe]),De=(0,n.useMemo)((()=>E?"pointer":""),[E]),Ne=(0,n.useCallback)((()=>{var e,t;null===(e=Ce.current)||void 0===e||e.unselectAll(),null===(t=ke.current)||void 0===t||t.unselectAll()}),[]);(0,n.useEffect)((()=>{var e;ee($Ce),Ne(),null===(e=je.current)||void 0===e||e.abortDraw(),Y(!1),ve(!1),ne(void 0),se(void 0),le(void 0),me(void 0),be(void 0),fe(!1)}),[r,Ne]),(0,n.useEffect)((()=>{Ne()}),[B,Ne]);const Le=(0,n.useMemo)((()=>H.map((e=>({...e,urls:[]})))),[H]),Ve=(0,n.useMemo)((()=>Le.filter((e=>{let{key:t}=e;return t===L}))),[L,JSON.stringify(Le)]);(0,n.useEffect)((()=>{0!==H.length&&ue((e=>null!==e&&void 0!==e?e:{type:H[0].type,severity:H[0].severity}))}),[H]);const Fe=(0,n.useCallback)((e=>V?BL(e,V,"width"):0),[V]),ze=(0,n.useCallback)((e=>V?BL(e,V,"height"):0),[V]),Be=(0,n.useCallback)((e=>"status"in e&&e.status===mke.TAG?"":e.width&&e.height?"".concat(Fe(e.width)," x ").concat(ze(e.height)," cm"):""),[ze,Fe]),Ue=(0,n.useCallback)((e=>{if(!K)return;const t=e.map((e=>{let{x:t,y:n}=e;return{x:t,y:K.height-n}})),{topLeft:n,width:r,height:i,angle:o}=$et(t),s=QCe(r,K.width),a=QCe(i,K.height);return{width:s,height:a,x:QCe(n.x,K.width),y:QCe(n.y,K.height),angle:o,realWidth:Fe(s),realHeight:ze(a)}}),[K,ze,Fe]),We=(0,n.useMemo)((()=>!te||c?Ve:[...Ve,{...te,type:""}]),[c,te,Ve]),He=(0,n.useMemo)((()=>K?We.map((e=>({id:e.fileName,coords:iAe(e,K).map((e=>{let{x:t,y:n}=e;return k3([t,n])})),style:{fill:"transparent",stroke:utt,size:2}}))):[]),[K,We]),qe=(0,n.useMemo)((()=>c||!re?We:We.map((e=>{if(e.fileName!==re.id)return e;const t=re.coords.map(G3),n=Ue(t);return{...e,...n}}))),[c,re,We,Ue]),Xe=(0,n.useMemo)((()=>{if(!K)return[];const e=U.flatMap((e=>e.status===mke.TAG||e.id===ae?[]:[e]));var t;c&&te&&e.push({...te,angle:null!==(t=te.angle)&&void 0!==t?t:0,id:"new-suggestion",photoId:"",type:{ai:""},status:mke.MANUAL_BY_SV});return e.map((e=>{var t;const n=Be(e);return{id:e.id,coords:iAe(e,K).map((e=>{let{x:t,y:n}=e;return k3([t,n])})),style:{fill:"transparent",stroke:dtt,size:2,lineDash:[5,5]},texts:[{text:null!==(t=e.type.defect)&&void 0!==t?t:e.type.ai,style:{color:dtt,fontSize:14},alwaysVisible:!0,alongPolygon:{line:"top",align:"left",polygonRelative:"outside"}},{text:n,style:{color:dtt},alwaysVisible:!0,alongPolygon:{line:"bottom",align:"left",polygonRelative:"outside"}}]}}))}),[K,U,c,te,ae,Be]),Ye=(0,n.useCallback)(((e,t,n,r)=>{var i,o;if(5!==t.length)return;fe(!1),he(n);const a=Ue(t);if(!a)return;const l={...a,severity:null!==(i=null===ce||void 0===ce?void 0:ce.severity)&&void 0!==i?i:3,type:null!==(o=null!==r&&void 0!==r?r:null===ce||void 0===ce?void 0:ce.type)&&void 0!==o?o:"",urls:[],fileName:"",key:"",note:"",...s};ne(l)}),[Ue,s,ce]),Ke=(0,n.useCallback)((e=>{const t=e.id,n=He.find((e=>{let{id:n}=e;return n===t}));if(!n)return;const r=n.coords.map(A3),i=e.coords.map(A3),o=r.some(((e,t)=>{const n=i[t];return JSON.stringify(e)!==JSON.stringify(n)}));if(o){const e=i.map(j3),n=Ue(e);if(!n)return;const r=Ve.find((e=>{let{fileName:n}=e;return n===t}));if(!r)return;const o={...r,...n};cV(o,Q,!0,!0),se((e=>e?o:void 0))}ie(void 0)}),[He,Ve,Q,Ue]),Ze=(0,n.useCallback)((e=>{const t=e.id,n=Xe.find((e=>{let{id:n}=e;return n===t}));if(!n)return;const r=n.coords.map(A3),i=e.coords.map(A3),o=r.some(((e,t)=>{const n=i[t];return JSON.stringify(e)!==JSON.stringify(n)}));if(o){const e=i.map(j3),n=Ue(e);if(!n)return;const r=U.find((e=>{let{id:n}=e;return n===t}));if(!r)return;const{x:o,y:s,width:a,height:l,angle:c}=n,u={x:o,y:s,width:a,height:l,angle:c};y(r.id,u)}ie(void 0)}),[U,Xe,Ue,y]),$e=(0,n.useMemo)((()=>{if(!de||!K)return{top:0,left:0};const e=Math.min(...de.map((e=>e.y))),t=Math.min(...de.map((e=>e.x))),n=Math.max(...de.map((e=>e.x))),r=t>K.width/2;let i="";return i=l?P?ttt:Jet:Het,{left:r?"calc(".concat(t,"px - ").concat(i," - ").concat("4px",")"):"calc(".concat(n,"px + ").concat("4px",")"),top:e}}),[de,K,l,P]),Je=(0,n.useCallback)((e=>{pe||ve(e)}),[pe]),Qe=(0,n.useCallback)((e=>{if(!K)return;me(void 0);const t=Ve.find((t=>{let{fileName:n}=t;return n===e}));if(!t)return;Ne(),ve(!1),se(t);const n=He.find((t=>{let{id:n}=t;return n===e}));if(!n)return;const r=n.coords.map((e=>{const{x:t,y:n}=G3(e);return{x:t,y:K.height-n}}));he(r)}),[Ve,He,K,Ne]),et=(0,n.useCallback)((e=>{if(!e)return re&&Ke(re),void me(void 0);setTimeout((()=>me(e.id)),100)}),[Ke,re]),tt=(0,n.useCallback)((e=>{if(!e)return re&&Ze(re),void be(void 0);setTimeout((()=>be(e.id)),100)}),[Ze,re]),nt=(0,n.useCallback)((e=>{Me&&ve(null!==e)}),[Me]),rt=(0,n.useCallback)((e=>{Oe&&Se(null!==e)}),[Oe]),it=(0,n.useCallback)((e=>{var t,n;if(!K)return;const r=f(e);if(!r||r.status===mke.TAG)return;const{x:i,y:o,width:a,height:l,angle:c,type:u}=r,d=null!==(t=u.defect)&&void 0!==t?t:"",h={x:i,y:o,width:a,height:l,angle:c,realWidth:Fe(a),realHeight:ze(l),severity:null!==(n=null===ce||void 0===ce?void 0:ce.severity)&&void 0!==n?n:3,type:d,originalSuggestionId:e,urls:[],fileName:"",key:"",note:"",...s},p=function(e,t,n){let r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0;const i=Math.cos(r),o=Math.sin(r),s=t=>({x:(t.x-e.x)*i-(t.y-e.y)*o+e.x,y:(t.x-e.x)*o+(t.y-e.y)*i+e.y});return[e,s({x:e.x+t,y:e.y}),s({x:e.x+t,y:e.y+n}),s({x:e.x,y:e.y+n})]}({x:eAe(i,K.width),y:eAe(o,K.height)},eAe(a,K.width),eAe(l,K.height),c),g=p.map((e=>{var t;return null===(t=Pe.current)||void 0===t?void 0:t.getPixelFromCoordinate([e.x,K.height-e.y])})).filter((e=>void 0!==e));he(g),ne(h),Ne(),Se(!1),le(e)}),[K,f,Fe,ze,s,ce,Ne]),ot=(0,n.useCallback)((e=>{_(e),Ne(),Se(!1)}),[_,Ne]),st=(0,n.useCallback)((e=>{ie(e)}),[]),at=(0,n.useCallback)((e=>{ne(void 0),se(void 0),e&&ae&&v(ae),le(void 0)}),[ae,v]),lt=(0,n.useCallback)((e=>{let{type:t,severity:n}=e;ue({type:t,severity:n})}),[]),ct=(0,n.useCallback)((e=>{var t;if(!L||!te)return;const n={photoId:L,type:{ai:e},x:te.x,y:te.y,width:te.width,height:te.height,angle:null!==(t=te.angle)&&void 0!==t?t:0,status:mke.MANUAL_BY_SV};g(n),at()}),[L,te,g,at]),ut=(0,n.useCallback)((e=>{if(!$||!K)return;if(!Z3(e))return;const t={...w3("scaling-line",e),style:{size:3,stroke:jp}};Ee(t);const n=$.width/K.width,r=e.getLength()*n;W(lm(r))}),[$,K,W]);(0,n.useEffect)((()=>{q||Ee(void 0)}),[q]),(0,n.useEffect)((()=>{const e=e=>{if("Delete"===e.key){if(ge){const e=Ve.find((e=>{let{fileName:t}=e;return t===ge}));if(!e)return;return hV(e),Ne(),me(void 0),void ve(!1)}if(_e)return void ot(_e)}};return window.addEventListener("keydown",e),function(){window.removeEventListener("keydown",e)}}),[ge,_e,Ve,ot,Ne]);const dt=(0,n.useMemo)((()=>{if(L&&a)return O(L)}),[L,a,O]),ht=(0,n.useMemo)((()=>dt&&dt.isFullMask?dt.signedUrl:r),[dt,r]),pt=(0,n.useMemo)((()=>{if(dt&&!dt.isFullMask)return dt.signedUrl}),[dt]),ft=(0,n.useMemo)((()=>L&&l?R(L):[]),[L,l,R]),gt=(0,n.useCallback)((()=>{Y(!0)}),[]);return(0,Ae.jsx)(wp,{position:"relative",width:"100%",height:"100%",children:(0,Ae.jsxs)(Ae.Fragment,{children:[!X&&void 0!==N&&(0,Ae.jsx)(ws,{container:!0,className:i.thumbnailPreviewImgContainer,children:(0,Ae.jsx)("img",{width:"100%",alt:"Preview",src:N,className:i.thumbnailPreviewImg})}),(0,Ae.jsx)(wp,{width:"100%",height:"100%",children:(0,Ae.jsx)(rAe,{ref:Pe,hideControls:!0,hideLoader:!0,id:"wind-annotate-image-viewer-".concat(t),noWheelZoom:!1===X,imageUrl:null!==ht&&void 0!==ht?ht:"",cursor:De,onImageReady:gt,onRealImageSizeChanged:J,onImageSizeChanged:Z,imageSettings:Q,transparentImageUrl:pt,children:(0,Ae.jsxs)(Ae.Fragment,{children:[(0,Ae.jsx)(JCe,{imageSettings:Q,setImageSettings:ee}),(0,Ae.jsx)(_Pe,{ref:je,drawPointer:"mouse-crosshair",drawStyle:{stroke:c?dtt:utt},drawEnabled:Ge,shape:u3.TILTED_RECTANGLE,snapTolerance:1,onDrawStart:()=>fe(!0),onDrawAbort:()=>fe(!1),onDrawEnd:Ye}),(0,Ae.jsx)(_Pe,{drawPointer:"cross",drawEnabled:Te,shape:u3.POINT,drawStyle:{stroke:Bp},onDrawEnd:C}),(0,Ae.jsx)(yPe,{ref:Ce,zIndex:3,visible:!D&&!u,polygons:He,clickable:Me,resizable:!!Me&&gPe.RECTANGLE,transformInteractionStyle:htt,onPolygonHovered:nt,onTransformedPolygonSelected:et,onPolygonChanged:st}),null!=K&&qe.map((e=>(0,Ae.jsx)(ctt,{visible:!D&&!u,annotation:e,imageSize:K,onBtnHoveredChange:Je,onUpdateClick:Qe},e.fileName))),(0,Ae.jsx)(Z5,{clickable:!0,zIndex:3,visible:!D&&!u,points:x,onPointHovered:A,onPointClicked:k,hitTolerance:10}),(0,Ae.jsx)("div",{className:i.formPositionRef,ref:Ie,style:$e}),Re&&(0,Ae.jsx)(Ket,{anchorPop:Ie.current,popoverAnnotation:Re,changeDefaultAnnot:lt,handleClosePopover:at,imageSettings:Q,isSuggestionsCreatorMode:c&&void 0===ae,onSuggestionValidated:ct}),S&&(0,Ae.jsx)(ett,{anchorEl:Ie.current,onPointTypeSelected:j,onClose:I}),P&&(0,Ae.jsx)(ntt,{anchorEl:Ie.current,onValidate:T,onClose:G}),(0,Ae.jsxs)(Ae.Fragment,{children:[(0,Ae.jsx)(yPe,{ref:ke,zIndex:3,visible:h,polygons:Xe,clickable:Oe,resizable:!!Oe&&gPe.RECTANGLE,onPolygonHovered:rt,onTransformedPolygonSelected:tt,onPolygonChanged:st}),null!=K&&void 0===_e&&U.map((e=>(0,Ae.jsx)(stt,{visible:h,suggestion:e,imageSize:K,onBtnHoveredChange:Se,onAcceptClick:it,onRejectClick:ot},e.id)))]}),(0,Ae.jsx)(yPe,{visible:!u,zIndex:3,polygons:ft}),(0,Ae.jsxs)(Ae.Fragment,{children:[(0,Ae.jsx)(_Pe,{drawEnabled:q,shape:u3.LINE,drawPointer:"cross",maxPoints:2,onDrawStart:()=>Ee(void 0),onDrawAbort:()=>Ee(void 0),onDrawEnd:ut}),(0,Ae.jsx)(S6e,{zIndex:3,visible:q,lines:[we]})]})]})})})]})})},gtt=e=>{const{children:t,context:n}=e;return(0,Ae.jsx)(gke.Provider,{value:n,children:t})},mtt=Zo()((()=>({date:{position:"absolute",left:"0.25rem",top:"0.25rem",borderRadius:"0.25rem",zIndex:2,padding:"2px",backgroundColor:nU(Dp,.75)}}))),ytt=e=>{const{classes:t}=mtt(),{date:n}=e;return(0,Ae.jsx)("p",{className:t.date,children:n})},vtt=e=>{const{active:t,inspectionId:r,currentPhotoId:i,imageSize:o,realImageSize:s}=e,[a,l]=(0,n.useState)(!1),[c,u]=(0,n.useState)(!1),[d,h]=(0,n.useState)([]),[p,f]=(0,n.useState)(),[g,m]=(0,n.useState)(),[y,v]=(0,n.useState)(!1),[_,b]=(0,n.useState)(),x=(0,n.useCallback)((()=>{f(void 0),m(void 0)}),[]),S=(0,n.useCallback)((()=>{b(void 0),m(void 0)}),[]);(0,n.useEffect)((()=>{if(!t)return;if(a)return;(async e=>{u(!0);const t=await(async e=>{const t=await Ey("/ai-wind/json/".concat(e),{method:"GET",headers:{"Content-Type":"application/json"}});return t.ok?t.json():[]})(e);h(t),u(!1),l(!0)})(r)}),[t,r,a]);const w=(0,n.useMemo)((()=>{var e,t;return null!==(e=null===(t=d.find((e=>{let{photoId:t}=e;return t===i})))||void 0===t?void 0:t.annotations)&&void 0!==e?e:[]}),[i,d]),E=(0,n.useMemo)((()=>{if(!t||!o||!s)return[];return[...w,...p?[p]:[]].map(((e,t)=>{const n={x:100*e.x/s.width,y:100*e.y/s.height};return{id:"".concat(t),zIndex:3,coords:I3({x:eAe(n.x,o.width),y:o.height-eAe(n.y,o.height)}),type:d3.cross,style:{stroke:Bp},displayText:e.type,textStyle:{offsetY:-10,fontSize:8}}}))}),[t,w,p,o,s]),P=(0,n.useMemo)((()=>t&&!y),[t,y]),C=(0,n.useCallback)(((e,t,n)=>{if(1!==t.length)return;if(!o||!s)return;m(n);const r=t[0],i=QCe(r.x,o.width),a=QCe(o.height-r.y,o.height),l={x:i*s.width/100,y:a*s.height/100};f(l)}),[o,s]),A=(0,n.useCallback)((e=>{v(null!==e)}),[]),k=(0,n.useCallback)(((e,t)=>{if(void 0===e.getId())return;const n=Number(e.getId()),r=w[n];r&&(b(r),m([t]))}),[w]),j=(0,n.useCallback)((async e=>{if(!p||!i)return;const t={x:Math.round(p.x),y:Math.round(p.y),type:e};h((e=>{const n=[...e],o=n.findIndex((e=>{let{photoId:t}=e;return t===i}));var s;o<0?n.push({inspectionId:r,photoId:i,annotations:[t]}):n[o].annotations=[...null!==(s=n[o].annotations)&&void 0!==s?s:[],t];return n})),x();try{const e={inspectionId:r,photoId:i,annotations:[t]};await bV(e)}catch(Rmt){}}),[p,r,i,x]),I=(0,n.useCallback)((async()=>{if(_&&i){h((e=>{var t;const n=[...e],r=n.findIndex((e=>{let{photoId:t}=e;return t===i}));return r<0||(n[r].annotations=[...(null!==(t=n[r].annotations)&&void 0!==t?t:[]).filter((e=>{let{x:t,y:n,type:r}=e;return!(t===_.x&&n===_.y&&r===_.type)}))]),n})),S();try{const e={inspectionId:r,photoId:i,annotations:[_]};await bV(e)}catch(Rmt){}}}),[r,i,_,S]);return{isLoading:c,AIMistakesPoints:E,isAIMistakeHovered:y,isAIMistakeDrawable:P,onAIMistakeDrawEnd:C,onAIMistakeHovered:A,onAIMistakeClicked:k,newAIMistakePoint:p,AIMistakeItemRelativePosition:g,createAIMistake:j,resetNewAIMistake:x,selectedAIMistake:_,unselectAIMistake:S,deleteAIMistake:I}},_tt=CC.object({photoId:CC.string(),signedUrl:CC.string(),isFullMask:CC.boolean().optional()}),btt=e=>{const{inspectionId:t,active:r=!0}=e,[i,o]=(0,n.useState)(new Map),s=(0,n.useCallback)((async()=>{try{const e=await(async e=>{const t=await Ey("/ai-wind/background-removal/".concat(e));if(!t.ok){const e=await t.text();throw new Error(null!==e&&void 0!==e?e:"An error occured")}const n=await t.json();return CC.array(_tt).parse(n)})(t),n=new Map;e.forEach((e=>{n.set(e.photoId,e)})),o(n)}catch(Rmt){o(new Map)}}),[t]);(0,n.useEffect)((()=>{r&&s()}),[r,s]);return{getPhotoBackgroundRemovalData:(0,n.useCallback)((e=>i.get(e)),[i]),backgroundRemovedCount:(0,n.useMemo)((()=>i.size),[i])}},xtt=e=>{const{inspectionId:t,imageSize:r,realImageSize:i}=e,[o,s]=(0,n.useState)(new Map),a=(0,n.useCallback)((async e=>{try{const n=await(async(e,t)=>{const n=await Ey("/ai-wind/patches/".concat(e,"/").concat(t),{method:"GET"});if(!n.ok){const e=await n.text();throw new Error(null!==e&&void 0!==e?e:"An error occured")}return n.json()})(t,e);s((t=>{const r=new Map(t);return r.set(e,n),r}))}catch(Rmt){}}),[t]),l=(0,n.useCallback)((e=>{var t;return o.has(e)?null!==(t=o.get(e))&&void 0!==t?t:[]:(a(e),[])}),[o,a]),c=(0,n.useCallback)((e=>{if(!i||!r)return[];return l(e).map(((t,n)=>{const o=QCe(t.x,i.width),s=QCe(t.y,i.height),a=QCe(t.w,i.width),l=QCe(t.h,i.height);return{id:"patch-".concat(e,"-").concat(n),coords:iAe({x:o,y:s,width:a,height:l,angle:0},r).map((e=>{let{x:t,y:n}=e;return k3([t,n])})),texts:[{text:"".concat(t.type)}],style:{fill:"transparent",stroke:"rgb(".concat(t.color.join(","),")")}}}))}),[l,i,r]);return{getPhotoPatches:l,getPhotoPatchesPolygons:c}},Stt=__webpack_require__.p+"static/media/wind-annot-release-create.c586d95217f00cca8b38.gif",wtt=__webpack_require__.p+"static/media/wind-annot-release-update.ed01408988b8ed30a10f.gif",Ett=__webpack_require__.p+"static/media/wind-annot-release-resize-rotate.19f3baedcf5d9d1439d2.gif",Ptt=__webpack_require__.p+"static/media/wind-annot-screen-ffmode.6ef59690c8c0b31d6cd5.png",Ctt=Zo()((()=>({headerTitle:{color:Np}}))),Att=()=>{const{classes:e}=Ctt();return(0,Ae.jsx)(ZAe,{component:"WindAnnotate",componentVersion:1,title:"The Wind Annotate page has some updates!",width:"md",children:(0,Ae.jsxs)(ws,{container:!0,direction:"column",wrap:"nowrap",paddingX:1,rowGap:"0.5rem",children:[(0,Ae.jsx)(ws,{item:!0,children:(0,Ae.jsxs)(Ph,{defaultExpanded:!0,children:[(0,Ae.jsx)(Th,{expandIcon:(0,Ae.jsx)(cp.c,{}),"aria-controls":"release-block-1-content",id:"release-block-1-header",children:(0,Ae.jsx)("h3",{className:e.headerTitle,children:"Create tilted annotations with 3 points"})}),(0,Ae.jsx)(Dh,{children:(0,Ae.jsx)("img",{src:Stt,alt:"Create annotation",width:"100%"})})]})}),(0,Ae.jsx)(ws,{item:!0,children:(0,Ae.jsxs)(Ph,{children:[(0,Ae.jsx)(Th,{expandIcon:(0,Ae.jsx)(cp.c,{}),"aria-controls":"release-block-2-content",id:"release-block-2-header",children:(0,Ae.jsx)("h3",{className:e.headerTitle,children:"Update or delete an annotation by clicking on its type"})}),(0,Ae.jsx)(Dh,{children:(0,Ae.jsx)("img",{src:wtt,alt:"Update annotation",width:"100%"})})]})}),(0,Ae.jsx)(ws,{item:!0,children:(0,Ae.jsxs)(Ph,{children:[(0,Ae.jsx)(Th,{expandIcon:(0,Ae.jsx)(cp.c,{}),"aria-controls":"release-block-3-content",id:"release-block-3-header",children:(0,Ae.jsx)("h3",{className:e.headerTitle,children:"Resize or rotate annotation by clicking and dragging points"})}),(0,Ae.jsx)(Dh,{children:(0,Ae.jsx)("img",{src:Ett,alt:"Resize annotation",width:"100%"})})]})}),(0,Ae.jsx)(ws,{item:!0,children:(0,Ae.jsxs)(Ph,{children:[(0,Ae.jsx)(Th,{expandIcon:(0,Ae.jsx)(cp.c,{}),"aria-controls":"release-block-4-content",id:"release-block-4-header",children:(0,Ae.jsx)("h3",{className:e.headerTitle,children:"Fast Forward mode and viewed photos have moved"})}),(0,Ae.jsx)(Dh,{children:(0,Ae.jsx)("img",{src:Ptt,alt:"Wind Annotate",width:"100%"})})]})})]})})},ktt="3px solid ".concat(jp),jtt=Zo()((e=>{var t,n;return{root:{height:"100%",width:"100%",textAlign:"center",display:"flex",flexWrap:"nowrap"},sideBar:{flex:1,height:"100%"},rightBar:{height:"100%"},rightBarContent:{borderLeft:ktt,height:"100%",overflowY:"auto"},mainContent:{height:"100%",backgroundColor:"white",position:"relative",display:"flex",flexDirection:"column",alignItems:"center"},imageBar:{width:"100%",height:"3rem",flexShrink:0,display:"flex",alignItems:"center"},imagesContainer:{width:"100%",height:0,flex:1,backgroundColor:Dp},imageContainer:{margin:"auto",width:"100%",height:"100%"},imageTopBorder:{borderTop:ktt},imageLeftBorder:{borderLeft:ktt},loadingPhotos:{fontSize:"20px"},redAccordion:{backgroundColor:null===e||void 0===e||null===(t=e.palette)||void 0===t||null===(n=t.error)||void 0===n?void 0:n.main,color:"white"}}})),Itt=e=>{var t,r,i,o,s;const{inspectionId:a}=an(),{classes:l}=jtt(),c=m(),u=b(Nm),d=b(Lm),h=b(Um),p=b(Fm),f=b(zm),g=b(Bm),[y,v]=(0,n.useState)(1===(null===g||void 0===g?void 0:g.defectDetection)),[_,x]=(0,n.useState)(d.filter((e=>1===e.defectDetection)).map((e=>e.id))),[S,w]=(0,n.useState)(b(Fm)),[E,P]=(0,n.useState)([]),C=b(oy),[A,k]=(0,n.useState)(!1),[j,I]=(0,n.useState)(0),[G,T]=(0,n.useState)(),[M,O]=(0,n.useState)(),R=(0,n.useMemo)((()=>[G,M].filter((e=>e)).length),[G,M]),D=b(qm),N=b(iy),[L,V]=(0,n.useState)(0),F=b(Jm),z=on(),B=b(Qm),U=b(Xm),[W,H]=(0,n.useState)({switchBlade:!1}),[q,X]=(0,n.useState)(!1),[Y,K]=(0,n.useState)(!1),[Z,$]=(0,n.useState)(!1),[J,Q]=(0,n.useState)(!1),[ee,te]=(0,n.useState)([]),[ne,re]=(0,n.useState)(),[ie,oe]=(0,n.useState)(),se=(0,n.useContext)(NEe);if(!se)return(0,Ae.jsx)(Ae.Fragment,{});const{isExpert:ae}=se,{userProfile:le}=Pfe({withFetch:!0}),ce=(0,n.useMemo)((()=>{var e;return null!==(e=null===le||void 0===le?void 0:le.isDataScientist)&&void 0!==e&&e}),[le]),ue=r4e({inspectionId:a}),de=vtt({active:Z,inspectionId:a,currentPhotoId:D,imageSize:ne,realImageSize:ie}),he=btt({active:ce,inspectionId:a}),pe=xtt({inspectionId:a,imageSize:ne,realImageSize:ie}),{cameras:fe,getGSDDataForPhoto:ge}=Let({photosData:d}),me=(0,n.useMemo)((()=>void 0===ie),[ie]),ye=(null!==(t=null===u||void 0===u?void 0:u.verticalBlade)&&void 0!==t?t:eet)===eet,ve=(0,n.useMemo)((()=>{var e;return null!==(e=null===u||void 0===u?void 0:u.windAIMode)&&void 0!==e?e:phe.NO_WIND_AI}),[null===u||void 0===u?void 0:u.windAIMode]),_e=(0,n.useMemo)((()=>(null===u||void 0===u?void 0:u.type)===RC.BLADES&&(!!ce||ve!==phe.NO_WIND_AI)),[null===u||void 0===u?void 0:u.type,ve,ce]),be=(0,n.useMemo)((()=>{var e;return(null!==(e=ue.onGoingSuggestionsByPhotoMap.get(D))&&void 0!==e?e:[]).length>0}),[ue,D]),xe=(0,n.useMemo)((()=>{var e;return(null!==(e=ue.onGoingSuggestionsByPhotoMap.get(D))&&void 0!==e?e:[]).filter((e=>{let{status:t}=e;return t!==mke.TAG})).length}),[ue,D]);(0,n.useEffect)((()=>{Y&&$(!1)}),[Y]),(0,n.useEffect)((()=>{Z&&K(!1)}),[Z]),(0,n.useEffect)((()=>{"Blades"!==(null===u||void 0===u?void 0:u.type)||B||(async e=>{const t=await Ey("/inspections/"+e+"/getModelInfo",{method:"GET"});if(200===t.status){const e=await t.json();Sy.dispatch(am(e))}})(a)}),[]),(0,n.useEffect)((()=>{if(D&&p.length&&!F){const e=p.findIndex((e=>e.photoId===D));-1!==e&&0!==e&&setTimeout((()=>Ce(e)),200)}}),[p,F]),(0,n.useEffect)((()=>{if(S.length){const e=S.find((e=>e.photoId===D));if(!e)if(-1!==U){let e=S.map((e=>e.originalPhotoNumber-U));e=e.filter((e=>e>=0));const t=Math.min(...e),n=S.findIndex((e=>e.originalPhotoNumber===t+U));Ce(S[-1!==n?n:0].originalPhotoNumber,!1),c(Ug(-1))}else Ce(S[0].originalPhotoNumber,!1)}}),[S,U]),(0,n.useEffect)((()=>{P(d.filter((e=>1===e.inspected)).map((e=>e.id))),x(d.filter((e=>1===e.defectDetection)).map((e=>e.id))),I(Pe()),Ee()}),[d]);const Se=(0,n.useMemo)((()=>[...ue.allSuggestionsByPhotoMap.keys()].flatMap((e=>{var t;return(null!==(t=ue.allSuggestionsByPhotoMap.get(e))&&void 0!==t?t:[]).length>0?[e]:[]}))),[ue.allSuggestionsByPhotoMap]);(0,n.useEffect)((()=>{if(we(!0),""!==D){const e=p.find((e=>e.photoId===D));e&&c(Lg(e))}(e=>{if(e){const t=e.type===RC.SOLAR?2*e.stats.viewedCount:e.stats.viewedCount;e.status!==OC.ANNOTATED&&e.status!==OC.ANALYZED&&0!==e.stats.photoCount&&t>=e.stats.photoCount&&kA(e.id,OC.ANNOTATED)}})(u)}),[D,p]);const we=e=>{var t,n;const r=document&&document.getElementById("MainContent")?null===(t=document.getElementById("MainContent"))||void 0===t?void 0:t.clientHeight:null;let i=document&&document.getElementById("FiltersContainer")?null===(n=document.getElementById("FiltersContainer"))||void 0===n?void 0:n.clientHeight:null;i=e&&i?i+20:i;V(r&&i?r-i:"95%")},Ee=()=>{const e=d.find((e=>e.exif&&!e.externalImage));e&&!C&&(async e=>{const t=await Ey("/inspections/"+e+"/getCameraData",{method:"POST",headers:{"Content-Type":"application/json"}}),n=await t.json();Sy.dispatch(pm(n))})(e.exif.model)},Pe=(0,n.useCallback)((()=>{let e=d.filter((e=>1===e.inspected)).length/d.length;return e>1&&(e=1),e}),[d]),Ce=(0,n.useCallback)((function(e){var t,n,r,i,o,s,l;let u=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];const h=S.findIndex((t=>t.photoId===p[e].photoId)),f=null!==(t=null!==(n=null!==(r=null===(i=S[h])||void 0===i?void 0:i.photoId)&&void 0!==r?r:null===(o=S[h+1])||void 0===o?void 0:o.photoId)&&void 0!==n?n:null===(s=S[h-1])||void 0===s?void 0:s.photoId)&&void 0!==t?t:null===(l=S[0])||void 0===l?void 0:l.photoId;if(void 0!==S&&void 0!==S[h]&&void 0!==f){var g,m,y;let t=E;!E.length&&d.length&&(t=d.filter((e=>1===e.inspected)).map((e=>e.id))),Eo()||E.includes(f)||(t.push(S[h].photoId),lV(a,S[h].photoId));const n=d.find((e=>e.id===f));if(n&&(c(Vg(n)),c(Bg(n.id))),P(t),I(Pe()),c(Lg(null!==(g=null!==(m=null!==(y=S[h])&&void 0!==y?y:S[h+1])&&void 0!==m?m:S[h-1])&&void 0!==g?g:S[0])),!u||document&&null===document.getElementById(e))qW()("#ThumbnailsContainer").animate({scrollTop:0},500);else{var v,_,b;const t=null===(v=document)||void 0===v||null===(_=v.getElementById(e))||void 0===_||null===(b=_.parentElement)||void 0===b?void 0:b.offsetTop;var x;if(t)qW()("#ThumbnailsContainer").animate({scrollTop:t-(null===(x=qW()("#ThumbnailsContainer").offset())||void 0===x?void 0:x.top)-120},500)}z.push("/inspections/".concat(a,"/").concat(f))}}),[c,Pe,z,E,a,p,d,S]),ke=(0,n.useMemo)((()=>fe.some((e=>{let{model:t}=e;return"ZenmuseP1"===t}))?4:6),[fe]),je=(0,n.useCallback)(((e,t,n)=>{let r=t?1:-1;const i=(null===u||void 0===u?void 0:u.type)===RC.BLADES?"hubDistance":"altitude",o=(null===u||void 0===u?void 0:u.type)===RC.BLADES?"blade":"towerHeading";if(t)for(let u=e+1;u<S.length;u++){var s,l,c,d;const t=null===(s=S[e].sortData)||void 0===s?void 0:s[i],h=null===(l=S[u].sortData)||void 0===l?void 0:l[i],p=null===(c=S[e].sortData)||void 0===c?void 0:c[o],f=null===(d=S[u].sortData)||void 0===d?void 0:d[o];if(void 0!==t&&void 0!==h&&p===f){Math.abs(t-h)>ke?(r--,r<1&&(r=1),u=S.length):(r++,!n||E.includes(S[u].photoName)||vB()||(E.push(S[u].photoId),lV(a,S[u].photoId)))}else r=1,u=S.length}else for(let u=e-1;u>=0;u--){var h,p,f,g;const t=null===(h=S[e].sortData)||void 0===h?void 0:h[i],s=null===(p=S[u].sortData)||void 0===p?void 0:p[i],l=null===(f=S[e].sortData)||void 0===f?void 0:f[o],c=null===(g=S[u].sortData)||void 0===g?void 0:g[o];if(void 0!==t&&void 0!==s&&l===c){Math.abs(t-s)>ke?(r++,r>-1&&(r=-1),u=-1):(r--,!n||E.includes(S[u].photoName)||vB()||(E.push(S[u].photoId),lV(a,S[u].photoId)))}else u=-1,r=-1}return r}),[E,null===u||void 0===u?void 0:u.type,a,S,ke]),Ie=(0,n.useCallback)((()=>{const e=S.findIndex((e=>e.originalPhotoNumber===f.originalPhotoNumber));if(-1!==e)return e}),[f.originalPhotoNumber,S]),Ge=(0,n.useCallback)((()=>{const e=Ie();if(void 0===e)return;let t=-1;A&&(t=je(e,!1,!0)),e+t<0?Ce(S[0].originalPhotoNumber):void 0!==S[e+t]&&Ce(S[e+t].originalPhotoNumber)}),[A,S,Ce,je,Ie]),Te=(0,n.useCallback)((()=>{const e=Ie();if(void 0===e)return;let t=1;A&&(t=je(e,!0,!0)),e+t>=S.length?Ce(S[0].originalPhotoNumber):void 0!==S[e+t]&&Ce(S[e+t].originalPhotoNumber)}),[A,S,Ce,je,Ie]),Me=(0,n.useMemo)((()=>{const e=Ie();if(void 0===e)return;const t=A?je(e,!0,!1):1;return void 0!==S[e+t]?e+t>=S.length?S[0]:S[e+t]:void 0}),[A,Ie,je,S]);(0,n.useEffect)((()=>{const e=e=>{switch(e.key){case"ArrowRight":Te();break;case"ArrowLeft":Ge()}};return window.addEventListener("keydown",e),function(){window.removeEventListener("keydown",e)}}),[Te,Ge]);const Oe=function(){let e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];if(null!==g){var t,n;const o=null===(t=g.exif)||void 0===t?void 0:t.imageWidth,s=null===(n=g.exif)||void 0===n?void 0:n.imageHeight,a=new Image(o,s),l=Ie();if(void 0!==l)if(A||e){const e=je(l,!0,!1);void 0!==S[l+e]&&(a.src=S[l+e].photoURL[0])}else{var r,i;const e=l+1;null!==(r=S[e])&&void 0!==r&&null!==(i=r.photoURL)&&void 0!==i&&i.length&&(a.src=S[e].photoURL[0])}}},[Re,De]=(0,n.useMemo)((()=>{if(N){if(f.thermalJpgURL)return[f.thermalJpgURL]}else if(f.photoURL)return[f.photoURL[0],f.thumbURL];return[""]}),[f.photoURL,f.thumbURL,f.thermalJpgURL,N]),{currentPhotoLocalUrl:Ne,currentPhotoPercent:Le}=(e=>{const{currentRemotePhotoUrl:t,nextRemotePhotoUrl:r,allRemotePhotosUrl:i}=e,[o,s]=(0,n.useState)(new Map),a=(0,n.useCallback)(((e,t)=>{s((n=>{const r=new Map(n);return r.set(e,t),r}))}),[]),l=(0,n.useCallback)((async e=>{a(e,{percent:0});try{const t=await fetch(e);if(!t.ok)return;const n=await t.blob(),r=window.URL.createObjectURL(n);a(e,{localUrl:r,percent:100})}catch(Rmt){s((t=>{const n=new Map(t);return n.delete(e),n}))}}),[a]),c=(0,n.useCallback)((()=>o.get(t)),[o,t]),u=(0,n.useMemo)((()=>{var e;return null===(e=c())||void 0===e?void 0:e.percent}),[c]),d=(0,n.useMemo)((()=>{var e;return null===(e=c())||void 0===e?void 0:e.localUrl}),[c]),h=(0,n.useCallback)((e=>{const t=o.get(e),n=100===(null===t||void 0===t?void 0:t.percent);return{isLoaded:n,isLoading:!n&&void 0!==t}}),[o]),{isLoaded:p,isLoading:f}=(0,n.useMemo)((()=>h(t)),[h,t]),{isLoaded:g,isLoading:m}=(0,n.useMemo)((()=>r?h(r):{isLoaded:!0,isLoading:!0}),[h,r]),y=(0,n.useMemo)((()=>{if(!i)return[];const e=i.indexOf(t);return e<0?[]:i.slice(e+1,e+1+5).filter((e=>{const{isLoaded:t,isLoading:n}=h(e);return!t&&!n}))}),[i,t,h]);return(0,n.useEffect)((()=>{if(p)if(g||!r)y.forEach((e=>{l(e)}));else{if(m)return;l(r)}else{if(f)return;l(t)}}),[l,t,p,f,r,g,m,y]),{photosMap:o,currentPhotoPercent:u,currentPhotoLocalUrl:d}})({currentRemotePhotoUrl:Re,nextRemotePhotoUrl:null===Me||void 0===Me?void 0:Me.photoURL[0],allRemotePhotosUrl:S.map((e=>{let{photoURL:t}=e;return t[0]}))}),Ve=(0,n.useMemo)((()=>!!ce||he.backgroundRemovedCount>0),[ce,he]),Fe=(0,n.useMemo)((()=>void 0!==he.getPhotoBackgroundRemovalData(D)),[he,D]),ze=(0,n.useMemo)((()=>!N&&(!!ce||ve===phe.WIND_AI_AUTO_ANNOTATE)),[ce,N,ve]),Be=(0,n.useCallback)((async e=>{Q(!0);try{e?await ue.tagPhoto(D):await ue.untagPhoto(D)}catch(Rmt){}finally{Q(!1)}}),[ue,D]),Ue=(0,n.useMemo)((()=>{const e=new Map;return S.forEach((t=>{var n;const r=t.sortData.towerHeading;var i;void 0!=r?e.set(r,[...null!==(n=e.get(r))&&void 0!==n?n:[],t]):e.set("",[...null!==(i=e.get(""))&&void 0!==i?i:[],t])})),e}),[S]),We=(0,n.useRef)(null),He=ie?ie.width/ie.height:void 0,qe=null===(r=We.current)||void 0===r?void 0:r.clientHeight,Xe=He&&qe?qe*He:void 0,Ye={currentImageData:{edge:f.sortData.edge,side:f.sortData.side,blade:f.sortData.blade,altitude:null!==(i=f.sortData.altitude)&&void 0!==i?i:0,hubDistance:null!==(o=f.sortData.hubDistance)&&void 0!==o?o:0,towerHeading:f.sortData.towerHeading},isSkyvisorDataScientist:ce,areSuggestionsVisible:ze,modes:{isBackgroundHidden:q,isSuggestionsCreatorMode:Y,isPatchesReviewMode:Z,isThermalMode:N},windAISuggestionsHook:ue,windAIMistakesHook:de,windBackgroundRemovalHook:he,windAIPatchesHook:pe};return u?(0,Ae.jsxs)(gtt,{context:Ye,children:[me&&(0,Ae.jsx)(qke,{text:"Loading images\u2026"}),(0,Ae.jsxs)(wp,{className:l.root,visibility:me?"hidden":"initial",children:[(0,Ae.jsxs)(ws,{container:!0,direction:"column",wrap:"nowrap",className:l.sideBar,children:[(0,Ae.jsxs)(ws,{item:!0,container:!0,direction:"column",height:"3rem",children:[(0,Ae.jsx)(ws,{item:!0,flex:1,height:0,children:(0,Ae.jsx)(Vet,{checked:A,onChange:e=>{k(e),Oe(!0)},style:{height:"100%"},children:"Fast Forward Mode"})}),(0,Ae.jsx)(tX,{})]}),(0,Ae.jsx)(ws,{item:!0,padding:"0.5rem 1rem",children:(0,Ae.jsx)(R7e,{inspectedPercentage:j})}),(0,Ae.jsx)(tX,{}),(0,Ae.jsx)(ws,{item:!0,children:(0,Ae.jsx)(T7e,{type:u?u.type:RC.BLADES,setHeightThumbnails:we,selection:S,changeSelection:e=>w(e),currentPhotoId:f.photoId,aiTaggedThumbnails:Se,isAiAllowed:_e,towerHeadingsFilter:ee,setTowerHeadingsFilter:te})}),(0,Ae.jsx)(ws,{item:!0,flex:1,height:0,children:"Tower"===(null===u||void 0===u?void 0:u.type)?(0,Ae.jsx)(O7e,{annotations:h,visitedThumbnails:E,currentPhotoNumber:f.originalPhotoNumber,callbackSelection:Ce,selectedPhotos:S,flaggedThumbnails:_,heightThumbnails:L,photosPerTowerHeadingMap:Ue}):(0,Ae.jsx)(J7e,{annotations:h,visitedThumbnails:E,flaggedThumbnails:_,suggestionsPerPhotoMap:_e?ue.allSuggestionsByPhotoMap:new Map,callbackSelection:Ce,selectedPhotos:S,heightThumbnails:L})})]}),(0,Ae.jsx)("div",{className:l.mainContent,style:{width:null!==Xe&&void 0!==Xe?Xe:0,height:"100%"},children:g&&(0,Ae.jsxs)(Ae.Fragment,{children:[(0,Ae.jsx)("div",{className:l.imageBar,children:(0,Ae.jsx)(Y7e,{currentPhotoUrl:Ne,currentPhotoData:f,currentPhoto:g,inspectionId:a,inspectionDoc:u,isFastForward:A,previousPhoto:Ge,nextPhoto:Te,flagged:y,setFlagged:()=>{v(!y),y?x(_.filter((e=>e!==(null===g||void 0===g?void 0:g.id)))):_.includes(g.id)||(_.push(g.id),x(_))}})}),(0,Ae.jsx)("div",{className:l.imagesContainer,ref:We,children:(0,Ae.jsxs)(ws,{container:!0,wrap:"nowrap",width:"100%",height:"100%",alignItems:"center",children:[(0,Ae.jsxs)(ws,{item:!0,flex:1,width:0,height:"100%",position:"relative",children:[(0,Ae.jsx)(wp,{className:l.imageContainer,children:(0,Ae.jsx)(ftt,{id:"main-image",thumbnailPhotoUrl:De,photoUrl:Ne,imageProgressPercent:Le,photoId:f.photoId,windGSD:ge(g.id),setImageSize:re,setRealImageSize:oe})}),(null===u||void 0===u?void 0:u.type)===RC.TOWER&&(0,Ae.jsx)(zet,{callBackSelection:Ce,photoDB:p,currentPhotoData:f,photosPerTowerHeadingMap:Ue,currentTowerHeadingFilter:ee,customStyle:{top:"0.5rem",left:".5rem"}}),(null===u||void 0===u?void 0:u.type)===RC.BLADES&&(0,Ae.jsx)(KW,{callbackSelection:Ce,inspectionDoc:u,photosData:d,photosDB:p,currentPhotoExif:g,customStyle:{top:"0.5rem",left:".5rem"}})]}),(0,Ae.jsx)(ws,{item:!0,height:"100%",flex:R>0?1:0,className:R>0?l.imageLeftBorder:"",children:(0,Ae.jsxs)(ws,{container:!0,wrap:"nowrap",direction:"column",height:"100%",children:[G&&(0,Ae.jsx)(ws,{item:!0,height:0,flex:1,position:"relative",children:(0,Ae.jsxs)("div",{className:l.imageContainer,children:[(0,Ae.jsx)(ytt,{date:G.date}),(0,Ae.jsx)(ftt,{isComparisonPurpose:!0,id:"image-compare-1",photoUrl:G.photoURL})]})}),M&&(0,Ae.jsx)(ws,{item:!0,height:0,flex:1,className:l.imageTopBorder,position:"relative",children:(0,Ae.jsxs)("div",{className:l.imageContainer,children:[(0,Ae.jsx)(ytt,{date:M.date}),(0,Ae.jsx)(ftt,{isComparisonPurpose:!0,id:"image-compare-2",photoUrl:M.photoURL})]})})]})})]})})]})}),(0,Ae.jsxs)(ws,{className:"".concat(l.sideBar," ").concat(l.rightBar),container:!0,direction:"column",wrap:"nowrap",children:[(0,Ae.jsx)(ws,{item:!0,flexShrink:0,height:"3rem",bgcolor:"white"}),(0,Ae.jsxs)(ws,{className:l.rightBarContent,container:!0,direction:"column",wrap:"nowrap",children:[f&&f.thermalJpgURL&&(0,Ae.jsxs)(Ae.Fragment,{children:[(0,Ae.jsx)(Vet,{checked:N,onChange:e=>{c(bm(e))},children:"Thermal Mode"}),(0,Ae.jsx)(tX,{})]}),(null===u||void 0===u?void 0:u.type)===RC.BLADES&&_e&&(0,Ae.jsx)(Ae.Fragment,{children:ce&&(0,Ae.jsxs)(Ae.Fragment,{children:[Ve&&(0,Ae.jsxs)(Ae.Fragment,{children:[(0,Ae.jsx)(Vet,{disabled:!Fe,checked:q&&Fe,onChange:X,infoText:Fe?void 0:"No background removal on this photo",children:"Hide Background"}),(0,Ae.jsx)(tX,{})]}),(0,Ae.jsx)(Vet,{infoText:"You will able to create AI suggestions",checked:Y,onChange:K,children:"Create AI Suggestions"}),(0,Ae.jsx)(tX,{}),(0,Ae.jsx)(Vet,{infoText:"You will see patches and be able to add AI mistakes points",checked:Z,onChange:$,children:"Patches review"}),(0,Ae.jsx)(tX,{}),(0,Ae.jsx)(Vet,{infoText:"Tag or untag this photo",checked:be,onChange:Be,disabled:J,children:(0,Ae.jsxs)(ws,{container:!0,direction:"column",wrap:"nowrap",children:[(0,Ae.jsx)("p",{children:"AI Tag"}),xe>0&&(0,Ae.jsxs)(vu,{fontSize:"11px",fontStyle:"italic",lineHeight:".6rem",children:["Untag will reject"," ",xe," ",wq("suggestion",xe)]})]})}),(0,Ae.jsx)(tX,{}),u.aiStatus!==VC.COMPLETE&&(0,Ae.jsx)(Fet,{handleCloseReviewButtonClick:()=>{_V(a),c(Ig({...u,aiStatus:VC.COMPLETE}))}})]})}),(0,Ae.jsx)(nW,{callbackComparison:e=>{0===e.length?(T(void 0),O(void 0)):(T(e[0]),e.length>1?O(e[1]):O(void 0))},inspectionId:a,currentPhotoData:f,currentPhotoExif:null!==g&&void 0!==g?g:void 0,type:u.type}),!ae&&(0,Ae.jsx)(K7e,{inspectionDoc:u,gsd:null===(s=ge(D))||void 0===s?void 0:s.gsd}),(0,Ae.jsxs)(wp,{display:"flex",flexDirection:"column",justifyContent:"flex-end",style:{flexGrow:1},children:["Blades"===(null===u||void 0===u?void 0:u.type)&&(0,Ae.jsxs)(Ph,{square:!0,expanded:W.switchBlade,style:{borderTop:"1px solid rgba(0,0,0,0.17)",margin:0},children:[(0,Ae.jsxs)(Th,{expandIcon:(0,Ae.jsx)(cp.c,{}),"aria-controls":"panel-switch-blade-content",id:"panel-switch-blade-header",className:ye?l.redAccordion:"",onClick:()=>(e=>{H((t=>({...t,[e]:!t[e]})))})("switchBlade"),children:[ye?"Set":"Change"," vertical blade"]}),(0,Ae.jsx)(Dh,{style:{display:"block",border:"1px solid rgba(0,0,0,0.17)"},children:(0,Ae.jsx)(Det,{onConfirmSave:e.onBladeDataChanged})})]}),"Blades"===(null===u||void 0===u?void 0:u.type)&&!ye&&(0,Ae.jsx)(Tet,{currentBlade:Q7e[f.sortData.blade]})]})]})]})]}),(0,Ae.jsx)(ike,{inspection:u}),(0,Ae.jsx)(KAe,{inspection:u}),(0,Ae.jsx)(Att,{})]}):(0,Ae.jsx)(Ae.Fragment,{})},Gtt=()=>{const e=b(Nm);if(!e)return(0,Ae.jsx)(Ae.Fragment,{});const t=b(Lm),[r,i]=(0,n.useState)(t),o=(0,n.useContext)(NEe);if(!o)return(0,Ae.jsx)(Ae.Fragment,{});const{fetchStatus:s,fetchAnnotations:a,fetchBuildPhotoDB:l}=o;(0,n.useEffect)((()=>{a(e.id,e.type)}),[a,e.id,e.type]),(0,n.useEffect)((()=>{l()}),[l,r.length]);const c=(0,n.useMemo)((()=>s.buildPhotoDB!==OEe.FETCHED),[s.buildPhotoDB]);return(0,Ae.jsx)(Ae.Fragment,{children:c?(0,Ae.jsx)(qke,{text:"Loading data\u2026"}):(0,Ae.jsx)(Itt,{onBladeDataChanged:async()=>{await PA(e.id);const t=await jL(e.id,e.type);i(t.photos),await oV(e,t.photos,null)}})})},Ttt=e=>{var t;const{selectedPage:r}=e,[i,o]=(0,n.useState)(null),{inspectionId:s,photoId:a}=an(),[l,c]=(0,n.useState)(),[u,d]=(0,n.useState)(!1),[h,p]=(0,n.useState)(DEe),f=b(Nm),g=b(Lm),y=b(zm),v=b(qm),[_,x]=(0,n.useState)(),S=m(),w=on(),E=(0,n.useMemo)((()=>window.location.pathname.split("/").filter((e=>e))),[]),[P,C]=(0,n.useState)(""),A=Wy()?Uje.MAP:Uje.STATS,[k,j]=(0,n.useState)(A),[I,G]=(0,n.useState)(!1),[T,M]=(0,n.useState)(!1),[O,R]=(0,n.useState)(!0),D=(0,n.useMemo)((()=>(null===l||void 0===l?void 0:l.type)===RC.SOLAR),[l]),N=(e,t)=>{p((n=>({...n,[e]:t})))},L=(0,n.useCallback)((async e=>{if(e&&h.mobileData===OEe.NOT_FETCHED){N(REe.mobileData,OEe.FETCHING);try{await vV(e),N(REe.mobileData,OEe.FETCHED)}catch(t){N(REe.mobileData,OEe.FAILED)}}}),[h.mobileData]),V=(0,n.useCallback)((async(e,t,n)=>{if(h.annotationData!==OEe.NOT_FETCHED)return;if(t===RC.SOLAR&&h.defectData!==OEe.FETCHED)return;const r=n?[...n]:[];N(REe.annotationData,OEe.FETCHING),(null===l||void 0===l?void 0:l.type)===RC.SOLAR||n&&0!==n.length||N(REe.photoData,OEe.FETCHING);try{await jL(e,t,!0,n,!0),N(REe.annotationData,OEe.FETCHED),(null===l||void 0===l?void 0:l.type)===RC.SOLAR||r&&0!==r.length||N(REe.photoData,OEe.FETCHED)}catch(i){N(REe.annotationData,OEe.FAILED),(null===l||void 0===l?void 0:l.type)===RC.SOLAR||r&&0!==r.length||N(REe.photoData,OEe.FAILED)}}),[h.annotationData,h.defectData,null===l||void 0===l?void 0:l.type]),F=(0,n.useCallback)((async e=>{if(h.defectData===OEe.NOT_FETCHED){N(REe.defectData,OEe.FETCHING);try{await IL(e,!0),N(REe.defectData,OEe.FETCHED)}catch(t){N(REe.defectData,OEe.FAILED)}}}),[h.defectData]),z=(0,n.useCallback)((async e=>{if(h.photoData===OEe.NOT_FETCHED){N(REe.photoData,OEe.FETCHING);try{await CA(e)}catch(t){N(REe.photoData,OEe.FETCHED)}}}),[h.photoData]),B=(0,n.useCallback)((async()=>{if(l&&0!==g.length&&h.buildPhotoDB===OEe.NOT_FETCHED){N(REe.buildPhotoDB,OEe.FETCHING);try{await oV(l,g,null),N(REe.buildPhotoDB,OEe.FETCHED)}catch(e){N(REe.buildPhotoDB,OEe.FAILED)}}}),[h.buildPhotoDB,l,g]);(0,n.useEffect)((()=>{a&&!_&&(S(Bg(a)),x(a),W(Pke.UPLOADED))}),[S,_,a]),(0,n.useEffect)((()=>{if(v!==_)return;if(h.photoData!==OEe.FETCHED)return;const e=g.find((e=>e.id===_));e&&S(Vg(e))}),[y.photoId,v,S,h.photoData,_,g]),(0,n.useEffect)((()=>{if(!l||(null===l||void 0===l?void 0:l.status)===OC.ANALYZED)return;(async()=>{var e;const t=await qhe(l.asset.id,l.subAsset.id);!(null!==(e=null===t||void 0===t?void 0:t.SkyVisorAnalysis)&&void 0!==e&&e)||Eo()||_B()||W(Pke.INSPECTED)})()}),[null===l||void 0===l?void 0:l.status]),(0,n.useEffect)((()=>{(async()=>{try{const e=await PA(s);c(e),o(e)}catch(e){d(!0)}})()}),[s]),(0,n.useEffect)((()=>{o(f)}),[f]),(0,n.useEffect)((()=>{f&&c((e=>{if(e)return{...e,reviews:f.reviews}}))}),[null===f||void 0===f?void 0:f.reviews]),(0,n.useEffect)((()=>()=>{S(qg(""))}),[]),(0,n.useEffect)((()=>{const e=E[2];4===E.length&&"defect"===e?(C(E[3]),j(Uje.LIST)):5===E.length&&"defect"===E[3]?(C(E[4]),j(Uje.LIST)):C("")}),[E]);const U=(0,n.useMemo)((()=>{if(!l)return Pke.INSPECTED;const e=null===l||void 0===l?void 0:l.status,t=Object.values(Pke).includes(e)?e:Pke.INSPECTED;return r||t}),[l,r]),W=(e,t)=>{t&&x(t),w.push("/inspections/".concat(s,"/").concat(e))},H=null!==i&&void 0!==i&&null!==(t=i.inspectionDates)&&void 0!==t&&t.planned?Iy(i.inspectionDates.planned):"",q=(0,n.useCallback)((()=>{if(!l)return(0,Ae.jsx)(Ae.Fragment,{});let e=U;return Wy()&&![Pke.INSPECTED,Pke.ANALYZED].includes(e)&&(e=Pke.ANALYZED),e===Pke.INSPECTED?(0,Ae.jsx)(S4e,{}):e===Pke.UPLOADED?D?(0,Ae.jsx)(r7e,{defaultPhotoId:_}):(0,Ae.jsx)(Gtt,{}):e===Pke.ANNOTATED?(0,Ae.jsx)(Xke,{defectId:P,changePage:W}):e===Pke.ANALYZED?(0,Ae.jsx)(KKe,{internal:!0,defectId:P,changePage:W}):(0,Ae.jsx)(S4e,{})}),[null===l||void 0===l?void 0:l.id,U,P]);if(u)return(0,Ae.jsx)(yn,{});if(!l)return(0,Ae.jsx)(Ae.Fragment,{});if(l.type===RC.SOLAR_CONSTRUCTION){const e=l.subAsset;return rpe(e)&&RZe(l)?(0,Ae.jsx)(W4e,{inspection:l,subAsset:e}):(0,Ae.jsx)(Ae.Fragment,{children:"An error occured"})}const X={inspection:l,fetchStatus:h,fetchAnnotations:V,fetchDefects:F,fetchMobileData:L,fetchPhotoData:z,fetchBuildPhotoDB:B,isExpert:_B(),resultsPageConfig:{currentTab:k,setCurrentTab:j},annotatorPopover:{isAnnotatedPopover:I,setAnnotatedPopover:G,isAnnotatedPopoverQualityCheckValidated:T,setAnnotatedPopoverQualityCheckValidated:M},solarAnalyzeAnnotationsPanelVisibility:{visible:O,set:R}};return(0,Ae.jsx)(Ae.Fragment,{children:(0,Ae.jsxs)(i7e,{context:X,children:[i&&(0,Ae.jsx)(we,{children:(0,Ae.jsx)("title",{children:"".concat(i.asset.name," ").concat(i.subAsset.name," ").concat(H)})}),(0,Ae.jsx)(gZe,{type:l.type,currentPage:U,changePage:W,currentTab:k,setCurrentTab:j,internal:!0,children:(0,Ae.jsx)(q,{})})]})})},Mtt=()=>{const e=Zo()((()=>({exit:{position:"absolute",top:"0.5rem",left:"0.5rem"}}))),{classes:t}=e(),[r,i]=(0,n.useState)([]),[o,s]=(0,n.useState)(),[a,l]=(0,n.useState)(!1),c=(0,n.useCallback)((()=>{if(null===o||void 0===o||!o.type)return(0,Ae.jsx)(Ae.Fragment,{});const e=(e=>0===e.length?{lat:0,lon:0}:{lat:e[0].lat,lon:e[0].lon})(r),t=[RC.BLADES,RC.TOWER].includes(o.type)?"wind":"clouds",n=null!==o&&void 0!==o&&o.inspectionDate?Math.trunc(Math.abs(o.inspectionDate.getTime()-(new Date).getTime())/36e5):0;let i=n?12*Math.floor(n/12):0;i>24&&(i=24);const s=i?String(i):"now";return e.lat&&e.lon?(0,Ae.jsx)("iframe",{title:"windy",width:"100%",height:"100%",src:"https://embed.windy.com/embed2.html?lat=".concat(e.lat,"&lon=").concat(e.lon,"&detailLat=").concat(e.lat,"&detailLon=").concat(e.lon,"&zoom=30&level=surface&overlay=").concat(t,"&product=ecmwf&menu=&message=&marker=true&calendar=").concat(s,"&pressure=&type=map&location=coordinates&detail=true&metricWind=m%2Fs&metricTemp=default&radarRange=-1")}):(0,Ae.jsx)(Ae.Fragment,{})}),[r,null===o||void 0===o?void 0:o.type,null===o||void 0===o?void 0:o.inspectionDate]);return(0,Ae.jsx)(PF,{pageTitle:"New inspection",left:(0,Ae.jsx)(CF,{title:Wy()?"New inspection":"Create new inspection"}),center:Wy()?(0,Ae.jsx)(Ae.Fragment,{}):(0,Ae.jsx)(jF,{}),right:Wy()?(0,Ae.jsx)(jF,{btnVersion:!0}):(0,Ae.jsx)(Ae.Fragment,{}),children:(0,Ae.jsxs)(ws,{container:!0,height:"100%",paddingTop:2,paddingLeft:Wy()?0:1,columnGap:2,wrap:"nowrap",children:[(0,Ae.jsx)(ws,{item:!0,xs:Wy()?12:7,container:!0,direction:"column",height:"100%",gap:2,wrap:"nowrap",marginX:Wy()?1:0,children:(0,Ae.jsxs)(ws,{item:!0,xs:Wy()?12:6,children:[a&&(0,Ae.jsxs)(wp,{position:"relative",height:"100%",overflow:"hidden",children:[(0,Ae.jsx)(c,{}),(0,Ae.jsx)(wp,{className:t.exit,children:(0,Ae.jsx)(ev,{color:"cancel",label:"Exit",onClick:()=>l(!1)})})]}),(0,Ae.jsx)(wp,{display:a?"none":"initial",children:(0,Ae.jsx)(Eje,{onInspectionChange:s,onSelectedSubAssetsChange:i})}),Wy()&&null!==r&&void 0!==r&&r.length&&!a?(0,Ae.jsx)(wp,{padding:"0.5rem",textAlign:"center",children:(0,Ae.jsx)(ev,{label:"Show Windy map",onClick:()=>l(!0)})}):null]})}),!Wy()&&(0,Ae.jsx)(ws,{item:!0,xs:5,overflow:"hidden",height:"100%",paddingBottom:1,marginRight:1,children:(0,Ae.jsx)(c,{})})]})})},Ott=Zo()((()=>({header:{display:"flex"},title:{color:"#333B46",fontSize:"1.2rem"}}))),Rtt=()=>{var e;const{classes:t}=Ott(),{sharedId:r}=an(),i=m(),o=b(Nm),[s,a]=(0,n.useState)(null),[l,c]=(0,n.useState)(!1),[u,d]=(0,n.useState)(""),[h,p]=(0,n.useState)(!1),f=Wy()?Uje.MAP:Uje.STATS,[g,y]=(0,n.useState)(f),[v,_]=(0,n.useState)([]),[x,S]=(0,n.useState)([]),[w,E]=(0,n.useState)(DEe);(0,n.useEffect)((()=>{P()}),[]);const P=async()=>{if(!r)return c(!1),void a("This page does not exist");const{inspectionId:e,defectId:t}=await FV(kC.INSPECTION,r);if(!e)return c(!1),void a("Your link is not valid");t&&(p(!0),y(Uje.MAP));let n=null;try{n=await PA(r)}catch(Rmt){return c(!1),void a("An error occurred")}if(!n||"analyzed"!==n.status)return c(!1),void a("This inspection is not analyzed yet.");const[o,s]=await Promise.all([IL(e,!1,!1),AA(e,!0)]);E((e=>({...e,defectData:OEe.FETCHED,annotationData:OEe.FETCHED})));const l=t?o.filter((e=>{let{id:n}=e;return n===t})):o;if(_(l),S(s),i(Dg(l)),i(Mg(s)),vV(e),t&&l[0]){var u;const e=null!==(u=l[0].id)&&void 0!==u?u:"";d(e),i(Wg(e))}c(!1);const h=await CA(e);E((e=>({...e,photoData:OEe.FETCHED}))),h&&(await oV(n,h,null),E((e=>({...e,buildPhotoDB:OEe.FETCHED}))))};if(l)return(0,Ae.jsx)($y,{size:60,topMargin:"10rem"});if(s)return(0,Ae.jsx)(wp,{children:(0,Ae.jsx)(pM,{severity:"error",children:s})});if(!o)return(0,Ae.jsx)(Ae.Fragment,{});const C=null!==o&&void 0!==o&&null!==(e=o.inspectionDates)&&void 0!==e&&e.planned?Iy(o.inspectionDates.planned):"",A="".concat(o.asset.name," ").concat(o.subAsset.name," ").concat(C),k={internal:!1,externalUserCode:r,isDefectExternalLink:h,inspections:[o],subAssets:[o.subAsset],selectedSubAssets:[o.subAsset],defects:v.map((e=>({...e,inspectionId:o.id}))),annotations:x,resultsPageConfig:{currentTab:g,setCurrentTab:y},fetchStatus:w};if(o.type===RC.SOLAR)return(0,Ae.jsx)(wp,{height:"100%",children:(0,Ae.jsx)(PF,{pageTitle:A,left:(0,Ae.jsx)(qz,{height:"65",width:"90",style:{padding:3}}),center:(0,Ae.jsx)("div",{className:t.title,children:A}),right:(0,Ae.jsxs)(ws,{container:!0,wrap:"nowrap",justifyContent:"end",columnGap:"0.5rem",children:[h?void 0:(0,Ae.jsx)(Hje,{currentTab:g,setCurrentTab:y}),(0,Ae.jsx)(pZe,{internal:!1,id:o.id,type:kC.INSPECTION,inspections:[o],defects:v,annotations:x,showExport:!h})]}),children:(0,Ae.jsx)(LKe,{context:k,children:(0,Ae.jsx)(wp,{height:"100%",overflow:"auto",children:(0,Ae.jsx)(YKe,{defectId:u,openInAnalyze:()=>null})})})})});if([RC.WIND,RC.BLADES,RC.TOWER].includes(o.type))return(0,Ae.jsx)(wp,{height:"100%",children:(0,Ae.jsxs)(PF,{pageTitle:A,left:(0,Ae.jsx)(qz,{height:"65",width:"90",style:{padding:3}}),center:(0,Ae.jsx)("div",{className:t.title,children:A}),right:(0,Ae.jsx)(Ae.Fragment,{}),children:[(0,Ae.jsx)(Fje,{internal:!1,title:A,defectId:u,openInAnalyze:()=>null,externalUserCode:r}),";"]})});if(o.type===RC.SOLAR_CONSTRUCTION){const e=o.subAsset;if(!rpe(e)||!RZe(o))return(0,Ae.jsx)(Ae.Fragment,{});const n=(0,Ae.jsx)(W4e,{inspection:o,subAsset:e,isExternalUser:!0,externalUserCode:r});return(0,Ae.jsx)(wp,{height:"100%",children:Wy()?n:(0,Ae.jsx)(PF,{pageTitle:A,left:(0,Ae.jsx)(qz,{height:"65",width:"90",style:{padding:3}}),center:(0,Ae.jsx)("div",{className:t.title,children:A}),right:(0,Ae.jsx)(Ae.Fragment,{}),children:n})})}return(0,Ae.jsx)(Ae.Fragment,{})},Dtt={isLoading:!1,overlays:[],modifyOverlay:()=>null,removeOverlay:()=>null,refresh:()=>null,mapOverlaysGroups:[],mapOverlaysItems:[],addItemFn:()=>null,isOverlayVisible:()=>!1,getOverlayOpacity:()=>100,MapOverlaysComp:()=>(0,n.createElement)("<></>"),defaultMapProvider:mL[cL.NoMap],subAssetsMapProvidersMap:new Map},Ntt=(0,n.createContext)({assetId:"",asset:null,modifySubAsset:()=>{},isCreation:!1,solarSubAssetOverlaysObj:Dtt,goToMainView:()=>{},goToUpdateView:()=>{},goToCreateView:()=>{}}),Ltt=()=>{const[e,t]=(0,n.useState)([]),r=(0,n.useMemo)((()=>e?e.map((e=>{let{name:t}=e;return{label:t,value:t}})):[]),[e]);(0,n.useEffect)((()=>{i()}),[]);const i=async()=>{var e;const n=await PB();if(!n||!n.companies)return;const r=(null!==(e=n.companies)&&void 0!==e?e:[]).map((e=>({name:e})));t(r)};return{companies:e,selectCompanies:r}},Vtt=e=>{const{value:t,onChange:r,demData:i}=e,o=(0,n.useMemo)((()=>Object.values(vEe)),[]),s=(0,n.useMemo)((()=>o.findIndex((e=>void 0!==t&&e===vEe[t]))),[o,t]),a=(0,n.useCallback)((e=>{const t=Object.keys(_Ee)[e];null===r||void 0===r||r(_Ee[t])}),[r]),l=(0,n.useMemo)((()=>void 0===i?[1]:[]),[i]);return(0,Ae.jsx)(ige,{fullWidth:!0,activeIndex:s,buttons:o,onClick:a,disabledButtonsIndex:l})};var Ftt=__webpack_require__(3616),ztt=__webpack_require__(62584),Btt=__webpack_require__(99064);const Utt=Zo()(((e,t)=>({separatorContainer:{width:"100%",position:"relative",margin:0,padding:0,textAlign:"center"},separatorTextContainer:{position:"relative",zIndex:20,width:"fit-content",margin:"0 auto",padding:"0 1%",backgroundColor:"white"},separator:{zIndex:1,borderTop:"1px solid ".concat(t),width:"100%",height:"100%",position:"absolute",top:"50%",left:0}}))),Wtt=e=>{var t;const n=null!==(t=e.color)&&void 0!==t?t:"grey",{classes:r}=Utt(n);return(0,Ae.jsxs)("div",{className:r.separatorContainer,children:[(0,Ae.jsx)("div",{className:r.separatorTextContainer,children:(0,Ae.jsx)("span",{children:e.children})}),(0,Ae.jsx)("div",{className:r.separator})]})};var Htt=__webpack_require__(55680);const qtt=e=>{const{assetId:t,subAssetId:r,isOpen:i,onOpen:o,onFileUploaded:s}=e,[a,l]=(0,n.useState)(),[c,u]=(0,n.useState)(10),[d,h]=(0,n.useState)(),[p,f]=(0,n.useState)(!1),[g,m]=(0,n.useState)(),y=(0,n.useMemo)((()=>void 0!==d),[d]),v=(0,n.useCallback)((()=>{l(void 0),u(10),h(void 0),f(!1),m(void 0)}),[]);(0,n.useEffect)((()=>{v()}),[i,v]);const _=(0,n.useCallback)((e=>{h(e)}),[]),b=(0,n.useCallback)((async()=>{if(m(void 0),!i)return void o();if(!a)return;const e="assets/".concat(t,"/subAssets/").concat(r,"/manual_dem.tif");try{await Ehe(e,a,_,20)}catch(Rmt){const t=Rmt instanceof Error?Rmt.message:"Unknown error";return m("An error occured while uploading file: ".concat(t)),f(!1),void h(void 0)}h(void 0);try{f(!0),await s(e,c)}catch(Rmt){const t=Rmt instanceof Error?Rmt.message:"Unknown error";m("An error occured while generating manual DEM: ".concat(t))}finally{f(!1)}}),[t,r,i,a,c,o,s,_]);return(0,Ae.jsxs)(ws,{container:!0,direction:"column",wrap:"nowrap",rowGap:"0.25rem",children:[i&&(0,Ae.jsxs)(Ae.Fragment,{children:[(0,Ae.jsx)(ws,{item:!0,children:(0,Ae.jsx)(khe,{maxFiles:1,text:"Upload a DEM file",filesType:{"image/tiff":[".tif",".tiff"]},onLoadedFilesChange:e=>{var t,n;m(void 0),l(null!==(t=null===e||void 0===e||null===(n=e[0])||void 0===n?void 0:n.file)&&void 0!==t?t:void 0)},maxSize:2e9,disabled:y||p})}),(0,Ae.jsxs)(ws,{item:!0,container:!0,xs:2,children:[(0,Ae.jsxs)(dw,{children:["Circle diameter: ",c," meters"]}),(0,Ae.jsx)(WW,{size:"small",valueLabelDisplay:"auto",value:c,onChange:(e,t)=>u(t),min:1,max:100,disabled:y||p})]}),void 0!==d&&(0,Ae.jsx)(ws,{item:!0,children:(0,Ae.jsx)(qpe,{value:d,prefixText:"Uploading file: "})}),void 0!==g&&(0,Ae.jsx)(ws,{item:!0,children:(0,Ae.jsx)(pM,{severity:"error",children:g})})]}),(0,Ae.jsx)(ws,{item:!0,children:(0,Ae.jsx)(cu,{title:"Disabled until subAsset specific DEM is implemented",children:(0,Ae.jsx)("div",{children:(0,Ae.jsx)(ev,{fullWidth:!0,fullHeight:!0,label:"Upload DEM",frontIcon:(0,Ae.jsx)(Htt.c,{}),size:"small",color:"light",style:{lineHeight:"1rem"},disabled:!0,loading:p,onClick:b})})})})]})},Xtt=(e,t)=>{const[r,i]=(0,n.useState)(!1),[o,s]=(0,n.useState)(),[a,l]=(0,n.useState)(),[c,u]=(0,n.useState)(),d=async(e,t)=>{i(!0);try{const n=void 0!==t?await(async(e,t)=>await bEe(e,t))(e,t):await bEe(e);s(n)}catch{s(void 0)}finally{i(!1)}};(0,n.useEffect)((()=>{d(e,t)}),[e,t]);return{isLoading:r,demData:o,generateDEM:async n=>{u(void 0),l(mEe.EARTHDATA);let r=!1;try{const i=void 0!==t?await(async(e,t,n)=>await xEe(e,n,t))(e,t,n):await xEe(e,n);s(i),r=!0}catch(Rmt){Rmt instanceof Error?u(Rmt.message):u("Cannot generate DEM using Earthdata")}finally{l(void 0)}return r},isGeneratingDEM:void 0!==a,demGeneratingMode:a,demGeneratingError:c}},Ytt=Zo()(((e,t)=>{let{mode:n}=t;const r=n===mEe.EARTHDATA,i=n===mEe.MANUAL_DEM,o=!r&&!i;return{actionsContainer:{border:"1px solid ".concat(Rp),padding:"0.25rem",borderRadius:"0.25rem",paddingTop:"1.25rem",position:"relative",wrap:"nowrap",alignItems:"center"},actionContainer:{overflow:"hidden",transition:"width ".concat(.3,"s"),"& button:disabled":{border:"1px solid ".concat(Rp," !important")}},earthdataContainer:{padding:i?"2px 0":"2px 2px",width:i?"0%":r?"100%":"40%"},manualDemContainer:{padding:r?"2px 0":"2px 2px",width:r?"0%":i?"100%":"40%"},separatorContainer:{overflow:"hidden",width:o?"20%":0,transition:"width ".concat(.3,"s")},closeIcon:{position:"absolute",right:"-0.25rem",top:"-0.25rem","& button":{padding:"0.25rem"}}}})),Ktt=e=>{const{assetId:t,subAsset:r,onDEMGenerated:i,onError:o,demDataCallback:s}=e,[a,l]=(0,n.useState)(yEe.SRTM),[c,u]=(0,n.useState)(),{classes:d}=Ytt({mode:c}),{isLoading:h,demData:p,generateDEM:f,isGeneratingDEM:g,demGeneratingMode:m,demGeneratingError:y}=Xtt(t,null===r||void 0===r?void 0:r.id);(0,n.useEffect)((()=>{s&&(null===s||void 0===s||s(p))}),[s,p]);const v=(0,n.useCallback)((()=>{if(h)return(0,Ae.jsx)($y,{size:18});if(g)return(0,Ae.jsx)(Ae.Fragment,{});if(y)return(0,Ae.jsx)(Ae.Fragment,{});const e=(0,n.useMemo)((()=>void 0!==r?"subAsset":"asset"),[]);if(!p)return(0,Ae.jsxs)(pM,{severity:"info",children:["No DEM yet for this ",e,"."]});const t=Ly(p.minAltitude,2),i=Ly(p.maxAltitude,2),o=i-t;return(0,Ae.jsx)(pM,{severity:"success",children:(0,Ae.jsxs)(ws,{container:!0,direction:"column",children:[(0,Ae.jsxs)(ws,{item:!0,marginBottom:"0.5rem",children:["DEM ready for this ",e,":"]}),(0,Ae.jsxs)(ws,{item:!0,container:!0,alignItems:"center",columnGap:"0.25rem",children:[(0,Ae.jsx)(ztt.c,{fontSize:"small"}),(0,Ae.jsxs)(vu,{fontSize:15,children:[p.nbPoints," points"]})]}),(0,Ae.jsxs)(ws,{item:!0,container:!0,alignItems:"center",columnGap:"0.25rem",children:[(0,Ae.jsx)(Ftt.c,{fontSize:"small"}),(0,Ae.jsxs)(vu,{fontSize:15,children:["from ",t," to ",i," meters (",o,"m)"]})]}),void 0!==p.message&&(0,Ae.jsx)(ws,{item:!0,marginTop:"0.5rem",children:(0,Ae.jsx)(vu,{fontWeight:"bold",lineHeight:"1rem",children:p.message})})]})})}),[h,g,y,p,r]),{demStatusErrorText:_,demStatusErrorSeverity:b}=(0,n.useMemo)((()=>{const e={demStatusErrorText:void 0,demStatusErrorSeverity:void 0};return h||g||y?e:p&&null!==r&&void 0!==r&&r.demRequired?{demStatusErrorText:'This subAsset has a DEM, you should select the "Uploaded" DEM status.',demStatusErrorSeverity:"warning"}:!p&&null!==r&&void 0!==r&&r.demRequired?{demStatusErrorText:"This subAsset needs a DEM",demStatusErrorSeverity:"error"}:!p&&null!==r&&void 0!==r&&r.hasDemFile?{demStatusErrorText:'The DEM state is "Uploaded" but dem.json is not found',demStatusErrorSeverity:"error"}:e}),[h,g,y,r,p]);(0,n.useEffect)((()=>{null===o||void 0===o||o(_,b)}),[o,_,b]);const x=(0,n.useCallback)((()=>_&&b?(0,Ae.jsx)(pM,{severity:b,children:_}):(0,Ae.jsx)(Ae.Fragment,{})),[_,b]),S=(0,n.useCallback)((()=>y?(0,Ae.jsx)(wp,{width:"100%",overflow:"hidden",children:(0,Ae.jsx)(pM,{severity:"error",children:y})}):(0,Ae.jsx)(Ae.Fragment,{})),[y]),w=(0,n.useCallback)((async()=>{await f({mode:mEe.EARTHDATA,organization:a})&&(null===i||void 0===i||i())}),[a,f,i]),E=(0,n.useCallback)((async(e,t)=>{await f({mode:mEe.MANUAL_DEM,demPath:e,diameter:t})&&(null===i||void 0===i||i())}),[f,i]),P=(0,n.useCallback)((()=>{const e={[yEe.SRTM]:"SRTM is better in general",[yEe.ASTER]:"ASTER is better for hilly areas"},t=Object.values(yEe).map((t=>(0,Ae.jsxs)(ws,{container:!0,wrap:"nowrap",alignItems:"center",justifyContent:"center",columnGap:"0.25rem",children:[(0,Ae.jsx)("p",{children:t}),(0,Ae.jsx)(cu,{title:e[t],placement:"top",children:(0,Ae.jsx)(Btt.c,{fontSize:"small"})})]},"".concat(t,"-btn"))));return(0,Ae.jsxs)(ws,{container:!0,direction:"column",wrap:"nowrap",rowGap:"0.5rem",children:[c===mEe.EARTHDATA&&(0,Ae.jsx)(ige,{fullWidth:!0,disabled:g,size:"small",activeIndex:Object.values(yEe).findIndex((e=>e===a)),buttons:t,onClick:e=>l(Object.values(yEe)[e])}),(0,Ae.jsx)(ev,{fullWidth:!0,fullHeight:!0,label:"Generate from NASA",frontIcon:(0,Ae.jsx)(Ftt.c,{}),size:"small",color:"light",style:{lineHeight:"1rem"},disabled:g,loading:m===mEe.EARTHDATA,onClick:()=>c===mEe.EARTHDATA?w():u(mEe.EARTHDATA)})]})}),[c,w,g,m,a]);return(0,Ae.jsxs)(ws,{container:!0,direction:"column",wrap:"nowrap",rowGap:"0.5rem",children:[(0,Ae.jsxs)(ws,{item:!0,container:!0,className:d.actionsContainer,children:[(0,Ae.jsx)(ws,{item:!0,className:"".concat(d.actionContainer," ").concat(d.earthdataContainer),children:(0,Ae.jsx)(P,{})}),void 0!==r&&(0,Ae.jsxs)(Ae.Fragment,{children:[(0,Ae.jsx)(ws,{item:!0,className:d.separatorContainer,children:(0,Ae.jsx)(Wtt,{color:Rp,children:(0,Ae.jsx)(vu,{paddingX:"0.25rem",color:Rp,children:"or"})})}),(0,Ae.jsx)(ws,{item:!0,className:"".concat(d.actionContainer," ").concat(d.manualDemContainer),children:(0,Ae.jsx)(qtt,{assetId:t,subAssetId:r.id,isOpen:c===mEe.MANUAL_DEM,onOpen:()=>u(mEe.MANUAL_DEM),onFileUploaded:(e,t)=>E(e,t)})})]}),void 0!==c&&(0,Ae.jsx)(wp,{className:d.closeIcon,children:(0,Ae.jsx)(Gu,{onClick:()=>u(void 0),disabled:g,children:(0,Ae.jsx)(rwe.c,{fontSize:"small"})})})]}),(0,Ae.jsx)(ws,{item:!0,children:(0,Ae.jsx)(v,{})}),(0,Ae.jsx)(ws,{item:!0,children:(0,Ae.jsx)(x,{})}),(0,Ae.jsx)(ws,{item:!0,children:(0,Ae.jsx)(S,{})})]})},Ztt=e=>{const{assetData:t}=e;if(!t)return null;const{id:r,demStatus:i}=t,[o,s]=(0,n.useState)(i),[a,l]=(0,n.useState)(!1),[c,u]=(0,n.useState)(),d=(0,n.useCallback)((()=>{switch(o){case _Ee.NOT_NEEDED:return(0,Ae.jsx)(tA,{label:vEe.NOT_NEEDED,color:"primary",variant:"outlined"});case _Ee.UPLOADED:return(0,Ae.jsx)(tA,{label:vEe.UPLOADED,color:"success"});default:return(0,Ae.jsx)(tA,{label:"No DEM",color:"warning"})}}),[o]),h=o?o===_Ee.UPLOADED?"success":"question":"delete",p=o&&c?o===_Ee.UPLOADED?"Asset DEM is generated":"Asset DEM generated but not needed":"No DEM yet for this asset";return(0,Ae.jsxs)("div",{children:[(0,Ae.jsx)(cu,{title:p,children:(0,Ae.jsx)("div",{children:(0,Ae.jsx)(ev,{id:"asset-dem-btn",label:"Asset DEM",color:h,onClick:()=>{l(!0)}})})}),(0,Ae.jsx)(Ud,{open:a,onClose:()=>{l(!1)},anchorEl:document.getElementById("asset-dem-btn"),anchorOrigin:{vertical:"bottom",horizontal:"center"},transformOrigin:{vertical:"top",horizontal:"center"},children:(0,Ae.jsxs)(wp,{width:"400px",padding:"1rem",borderRadius:"4px",children:[(0,Ae.jsx)(vu,{variant:"h6",children:"Asset DEM"}),(0,Ae.jsx)(d,{}),(0,Ae.jsxs)(vj,{gap:"1rem",paddingTop:"1rem",children:[(0,Ae.jsx)(Vtt,{value:o,onChange:e=>{return IV(r,{demStatus:t=e}),s(t),{demStatus:t};var t},demData:c}),(0,Ae.jsx)(Ktt,{assetId:r,onDEMGenerated:()=>s(_Ee.UPLOADED),demDataCallback:e=>u(e)})]})]})})]})},$tt=Zo()((e=>({assetInputName:{fontSize:25,minWidth:"5ch",maxWidth:"30ch"},select:{minWidth:"10rem"},assetInputNumber:{marginLeft:"0.25rem",color:e.palette.primary.main,minWidth:"4ch",maxWidth:"12ch",textAlign:"center",fontSize:"20px"},dflex:{display:"flex",justifyContent:"center",alignItems:"center",columnGap:"0.25rem"}}))),Jtt=e=>{var t,r;const{classes:i}=$tt(),o=on(),s=m(),{assetId:a,asset:l,newSubAsset:c,updatedSubAsset:u,goToMainView:d}=(0,n.useContext)(Ntt),{selectCompanies:h}=Ltt(),p=(0,n.useMemo)((()=>null===l||void 0===l?void 0:l.assetInfos),[l]),[f,g]=(0,n.useState)(""),[y,v]=(0,n.useState)(""),[_,b]=(0,n.useState)(0),[x,S]=(0,n.useState)(0),[w,E]=(0,n.useState)(null);(0,n.useEffect)((()=>{var e,t,n,r;const i=p;g(null!==(e=null===i||void 0===i?void 0:i.name)&&void 0!==e?e:""),v(null!==(t=null===i||void 0===i?void 0:i.company)&&void 0!==t?t:""),b(null!==(n=null===i||void 0===i?void 0:i.totalPower)&&void 0!==n?n:0),S(null!==(r=null===i||void 0===i?void 0:i.panelsCount)&&void 0!==r?r:0)}),[p]);const P=async(e,t)=>{E(e),await IV(a,t),s(Lf()),E(null)},C=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return"".concat("".concat(e).length+t,"ch")},A=(0,n.useMemo)((()=>{var e;const t=null!==(e=null===p||void 0===p?void 0:p.subAssetsCount)&&void 0!==e?e:0;return"".concat(t," subAsset").concat(t>1?"s":"")}),[null===p||void 0===p?void 0:p.subAssetsCount]);return(0,Ae.jsx)(PF,{pageTitle:"Edit solar asset".concat(p?" - ".concat(p.name):""),size:{left:4,center:6,right:2},left:(0,Ae.jsxs)(wp,{display:"flex",justifyContent:"space-between",alignItems:"center",children:[(0,Ae.jsxs)("div",{className:i.dflex,children:[(0,Ae.jsx)(RS,{size:"medium",value:f,onChange:e=>g(e.target.value),"aria-label":"Asset name",onBlur:async()=>{var e;a&&(0!==f.length?P("name",{name:f}):g(null!==(e=null===p||void 0===p?void 0:p.name)&&void 0!==e?e:""))},inputProps:{className:i.assetInputName,style:{width:C(f)},maxLength:40}}),"name"===w&&(0,Ae.jsx)($y,{size:20})]}),(0,Ae.jsxs)("div",{className:i.dflex,children:[(0,Ae.jsxs)(yw,{className:i.select,children:[(0,Ae.jsx)(dw,{id:"asset-company-label",children:"Company"}),(0,Ae.jsxs)(Jw,{required:!0,size:"small",labelId:"asset-company-label",label:"Company",placeholder:"Company",onChange:e=>(async e=>{var t;a&&(e&&0!==e.length?(v(e),P("company",{company:e})):v(null!==(t=null===p||void 0===p?void 0:p.company)&&void 0!==t?t:""))})(e.target.value),value:null!==(t=null===(r=h.find((e=>e.value===y)))||void 0===r?void 0:r.value)&&void 0!==t?t:"",children:[(0,Ae.jsx)(dh,{value:"",children:(0,Ae.jsx)("em",{children:"Company"})}),h.map(((e,t)=>(0,Ae.jsx)(dh,{value:e.value,children:e.label},t)))]})]}),"company"===w&&(0,Ae.jsx)($y,{size:20})]}),(0,Ae.jsx)(Ztt,{assetData:p})]}),center:(0,Ae.jsxs)(wp,{display:"flex",justifyContent:"space-evenly",alignItems:"center",children:[(0,Ae.jsx)("h3",{children:A}),(0,Ae.jsxs)("div",{className:i.dflex,children:[(0,Ae.jsxs)(wp,{className:i.dflex,fontSize:"25px",children:[(0,Ae.jsx)(vu,{sx:{whiteSpace:"nowrap",fontSize:25},children:"Total power:"}),(0,Ae.jsx)(RS,{type:"number",size:"small",value:_,onChange:e=>b(Number(e.target.value)),"aria-label":"Asset power",onBlur:async()=>{a&&P("power",{totalPower:null!==_&&void 0!==_?_:0})},inputProps:{className:i.assetInputNumber,style:{width:C(_,2)},min:0,step:.1}}),(0,Ae.jsx)("p",{children:"kW"})]}),"power"===w&&(0,Ae.jsx)($y,{size:20}),"power"!==w&&_<1e3&&(0,Ae.jsx)(cu,{title:"Make sure the power is set in kW",children:(0,Ae.jsx)(Gu,{children:(0,Ae.jsx)(Lke.c,{color:"warning"})})})]}),(0,Ae.jsxs)("div",{className:i.dflex,children:[(0,Ae.jsxs)(wp,{className:i.dflex,fontSize:"25px",children:[(0,Ae.jsx)(vu,{sx:{whiteSpace:"nowrap",fontSize:25},children:"Panels count:"}),(0,Ae.jsx)(RS,{type:"number",size:"small",value:x,onChange:e=>S(Number(e.target.value)),"aria-label":"Panels count",onBlur:async()=>{a&&P("panels-count",{panelsCount:null!==x&&void 0!==x?x:0})},inputProps:{className:i.assetInputNumber,style:{width:C(x,2)},min:0,step:1}})]}),"panels-count"===w&&(0,Ae.jsx)($y,{size:20})]})]}),right:(0,Ae.jsx)(wp,{display:"flex",justifyContent:"end",columnGap:"0.5rem",children:(0,Ae.jsxs)(Ae.Fragment,{children:[null==c&&null==u&&(0,Ae.jsxs)(Ae.Fragment,{children:[(0,Ae.jsx)(ev,{label:"Create new subasset",onClick:e.createNewSubAsset}),(0,Ae.jsx)(ev,{color:"cancel",disabled:null!==w,onClick:()=>{o.push("/assets/".concat(a))},children:"Exit"})]}),null!=c&&(0,Ae.jsx)(ev,{label:"Cancel new subAsset creation",onClick:d}),null!=u&&(0,Ae.jsx)(ev,{label:"Cancel",onClick:d})]})}),children:e.children})};var Qtt=__webpack_require__(80712),ent=__webpack_require__(23820);let tnt=function(e){return e.MAIN="MAIN",e.OVERLAY="OVERLAY",e.POLYGON="POLYGON",e}({});const nnt=e=>Array.isArray(e)&&2===e.length&&(null===e[0]||W3(e[0]))&&(null===e[1]||W3(e[1]));let rnt=function(e){return e.INSPECTIONS_EXISTS="INSPECTIONS_EXISTS",e}({});const int=e=>{var t,n;return e.location?{id:"id"in e?e.id:"subasset-polygon",displayText:e.name,coords:{lat:e.location._latitude,lng:e.location._longitude},type:d3.cross}:{id:"id"in e?e.id:"subasset-polygon",texts:[{text:e.name}],coords:null===(t=null!==(n=null===e||void 0===e?void 0:e.area)&&void 0!==n?n:[])||void 0===t?void 0:t.map((e=>({lat:e._latitude,lng:e._longitude})))}},ont=(e,t)=>[{lat:"lat"===t?e.lat:-90,lng:"lng"===t?e.lng:-180},{lat:"lat"===t?e.lat:90,lng:"lng"===t?e.lng:180}],snt=e=>{const t=[];return e.coords[0]&&t.push({id:"line-0-1",coords:ont(e.coords[0],"lat")},{id:"line-0-2",coords:ont(e.coords[0],"lng")}),e.coords[1]&&t.push({id:"line-1-1",coords:ont(e.coords[1],"lat")},{id:"line-1-2",coords:ont(e.coords[1],"lng")}),t},ant=e=>{const t=(0,n.useMemo)((()=>H3(e)?Ly((e=>{const t=p3(e).getGeometry();return t?uR(t):0})(e),0):null),[e]),r=(0,n.useMemo)((()=>t?Ly((e=>Math.round(e/39.304))(t),0):0),[t]),i=(0,n.useMemo)((()=>t?Ly((e=>Math.round(e/1608.392))(t),0):0),[t]),o=(0,n.useMemo)((()=>{if(!H3(e))return 0;if(!e||e.coords.length<2)return null;const t=e.coords[0],n=e.coords[1],r=(0,w0.getRhumbLineBearing)({latitude:t.lat,longitude:t.lng},{latitude:n.lat,longitude:n.lng});return Ly(r,1)}),[e]);return{area:t,photos:r,duration:i,normalBearing:o}},lnt=e=>{var t,n,r,i,o,s,a,l,c,u;const d=(e=>{var t;return(null===(t=e[0])||void 0===t?void 0:t.lat)>0})((null!==(t=e.area)&&void 0!==t?t:[]).map((e=>({lat:e._latitude,lng:e._longitude}))))?bje.SOUTH:bje.NORTH;return{name:null!==(n=e.name)&&void 0!==n?n:"",panelTilt:e.panelTilt,panelElevation:e.panelElevation,panelOrientation:null!==(r=e.panelOrientation)&&void 0!==r?r:d,safeMinFlightHeight:e.safeMinFlightHeight,model:e.model,poweringDate:e.poweringDate?new Date(e.poweringDate):void 0,lastInspectionDate:e.lastInspectionDate?new Date(e.lastInspectionDate):void 0,panelsSetUp:{isHorizontal:null===(i=e.panelsSetUp)||void 0===i?void 0:i.isHorizontal,nbLinesPerGrid:null===(o=e.panelsSetUp)||void 0===o?void 0:o.nbLinesPerGrid,tracker:null===(s=e.panelsSetUp)||void 0===s?void 0:s.tracker},isConstruction:null!==(a=e.isConstruction)&&void 0!==a&&a,constructionObjectives:null!==(l=e.constructionObjectives)&&void 0!==l?l:{},demRequired:null!==(c=e.demRequired)&&void 0!==c&&c,hasDemFile:null!==(u=e.hasDemFile)&&void 0!==u&&u,demStatus:null===e||void 0===e?void 0:e.demStatus}},cnt=Zo()((()=>({overlayBtn:{"& svg":{transition:"transform 0.25s"},"&.rotate svg":{transform:"rotate(180deg)"}}}))),unt=E1e().shape({name:u1e().required().min(1),poweringDate:m1e().required().default((()=>new Date)),lastInspectionDate:m1e().required().when("poweringDate",(e=>e?m1e().min(e,"Last inspection date should be after powering date"):m1e()))}).required(),dnt=e=>{const{classes:t}=cnt(),{asset:r,goToUpdateView:i,solarSubAssetOverlaysObj:o,modifySubAsset:s}=(0,n.useContext)(Ntt),{subAsset:a}=e,[l,c]=(0,n.useState)([]),[u,d]=(0,n.useState)(),[h,p]=(0,n.useState)(!1),[f,g]=(0,n.useState)(!1),[m,y]=(0,n.useState)(null),[v,_]=(0,n.useState)(!1),[b,x]=(0,n.useState)({text:void 0,severity:void 0}),[S,w]=(0,n.useState)(),{handleSubmit:E,control:P,formState:{errors:C},setValue:A,watch:k}=S0e({resolver:C0e(unt),defaultValues:lnt(a)}),{area:j,photos:I}=ant(int(a)),G=(0,n.useMemo)((()=>{var e;return null!==(e=null===r||void 0===r?void 0:r.assetInfos.id)&&void 0!==e?e:""}),[r]);(0,n.useEffect)((()=>{T()}),[]);const T=async()=>{const e=(await xge()).solarPanels.map((e=>({label:"".concat(e.supplier," ").concat(e.reference),value:e.reference})));c(e)},M=(0,n.useCallback)((e=>{switch(e){case _Ee.NOT_NEEDED:return A("demStatus",_Ee.NOT_NEEDED),A("hasDemFile",!1),{demStatus:_Ee.NOT_NEEDED};case _Ee.UPLOADED:return A("demStatus",_Ee.UPLOADED),A("hasDemFile",!0),{demStatus:_Ee.UPLOADED}}}),[A]),O=(0,n.useMemo)((()=>Object.keys(oA).map((e=>{var t;return{key:e,label:null!==(t=oA[e].label)&&void 0!==t?t:""}}))),[]),R=k("isConstruction",!1),D=(0,n.useCallback)((()=>{switch(k("demStatus")){case _Ee.NOT_NEEDED:return(0,Ae.jsx)(tA,{label:vEe.NOT_NEEDED,color:"primary",variant:"outlined"});case _Ee.UPLOADED:return(0,Ae.jsx)(tA,{label:vEe.UPLOADED,color:"success"});default:return(0,Ae.jsx)(tA,{label:"No DEM",color:"warning"})}}),[k]),N={...a,demRequired:k("demRequired",!1),hasDemFile:k("hasDemFile",!1)},L=(0,n.useCallback)((()=>{o.refresh();const e=M(_Ee.UPLOADED);s(a.id,e)}),[M,s,o,a.id]),V=(0,n.useCallback)(((e,t)=>{x({text:e,severity:t})}),[]);return(0,Ae.jsxs)(Ae.Fragment,{children:[(0,Ae.jsxs)(wp,{height:"100%",padding:"1rem",display:"flex",flexDirection:"column",children:[(0,Ae.jsxs)(ws,{container:!0,children:[(0,Ae.jsx)(ws,{item:!0,xs:6,children:(0,Ae.jsx)("h3",{style:{fontWeight:"bold"},children:"Edit subAsset"})}),(0,Ae.jsx)(ws,{item:!0,xs:6,children:(0,Ae.jsxs)(wp,{textAlign:"right",marginY:"0.5rem",children:[Eo()&&(0,Ae.jsx)(vu,{fontSize:11,children:a.id}),null!==j&&(0,Ae.jsxs)("p",{children:[j.toLocaleString(),"m\xb2"]}),(0,Ae.jsxs)("p",{children:[I.toLocaleString()," estimated photos"]})]})})]}),(0,Ae.jsx)("form",{onSubmit:E((async t=>{var n,r,i;p(!0);const o={id:a.id,...(0,Qo.omit)(t,["poweringDate","lastInspectionDate"]),panelsSetUp:{isHorizontal:null!==(n=t.panelsSetUp.isHorizontal)&&void 0!==n&&n,tracker:null!==(r=t.panelsSetUp.tracker)&&void 0!==r&&r,nbLinesPerGrid:null!==(i=t.panelsSetUp.nbLinesPerGrid)&&void 0!==i?i:0}};t.poweringDate&&(o.poweringDate=t.poweringDate.toString()),t.lastInspectionDate&&(o.lastInspectionDate=t.lastInspectionDate.toString());try{d(void 0),await e.onUpdate(o)}catch(Rmt){d(Rmt instanceof Error?Rmt.message:"An error occured")}finally{p(!1)}})),style:{height:"100%"},children:(0,Ae.jsxs)(ws,{container:!0,direction:"column",justifyContent:"space-between",height:"100%",flexWrap:"nowrap",rowGap:"1rem",children:[(0,Ae.jsxs)(ws,{container:!0,item:!0,direction:"column",rowGap:"1rem",children:[(0,Ae.jsx)(GQe,{name:"name",control:P,render:e=>{let{field:{onChange:t,value:n,name:r}}=e;return(0,Ae.jsx)(iE,{fullWidth:!0,name:r,id:"name",type:"text",variant:"outlined",label:"Subasset name",value:n,onChange:t})}}),(0,Ae.jsx)(k1e,{errors:C,name:"name"}),(0,Ae.jsxs)(ws,{item:!0,container:!0,spacing:2,children:[(0,Ae.jsx)(cu,{title:"Panel tilt will impact the drone gimbal pitch. It will be set to -90\xb0 (NADIR) if panel tilt is lower than 10\xb0. Otherwise it will be set to -80\xb0.",placement:"left-end",children:(0,Ae.jsx)(ws,{item:!0,xs:3,children:(0,Ae.jsx)(GQe,{name:"panelTilt",control:P,render:e=>{let{field:{onChange:t,value:n,name:r}}=e;return(0,Ae.jsx)(iE,{fullWidth:!0,name:r,id:"panelTilt",type:"number",variant:"outlined",label:"Panel tilt",value:null!==n&&void 0!==n?n:"",onChange:t,inputProps:{min:0,max:90,step:"0.1"}})}})})}),(0,Ae.jsx)(ws,{item:!0,xs:3,children:(0,Ae.jsx)(GQe,{name:"panelElevation",control:P,render:e=>{let{field:{onChange:t,value:n,name:r}}=e;return(0,Ae.jsx)(iE,{fullWidth:!0,name:r,id:"panelElevation",type:"number",variant:"outlined",label:"Panel elevation",value:null!==n&&void 0!==n?n:"",onChange:t,inputProps:{min:0,step:.1}})}})}),(0,Ae.jsx)(ws,{item:!0,xs:6,children:(0,Ae.jsx)(GQe,{name:"panelOrientation",control:P,render:e=>{let{field:{onChange:t,value:n,name:r}}=e;return(0,Ae.jsxs)(yw,{fullWidth:!0,children:[(0,Ae.jsx)(dw,{id:"panel-orientation",children:"Panel orientation"}),(0,Ae.jsx)(Jw,{fullWidth:!0,labelId:"panel-orientation",name:r,variant:"outlined",value:null!==n&&void 0!==n?n:bje.NORTH,label:"Panel orientation",onChange:t,children:Object.values(bje).map((e=>(0,Ae.jsx)(dh,{value:e,children:e},e)))})]})}})})]}),(0,Ae.jsxs)(ws,{item:!0,container:!0,spacing:2,alignItems:"center",children:[(0,Ae.jsx)(ws,{item:!0,children:(0,Ae.jsx)(ent.c,{color:"warning"})}),(0,Ae.jsx)(ws,{item:!0,flex:1,children:(0,Ae.jsx)("div",{children:(0,Ae.jsx)(GQe,{name:"safeMinFlightHeight",control:P,render:e=>{let{field:{onChange:t,value:n,name:r}}=e;return(0,Ae.jsxs)(yw,{fullWidth:!0,sx:{m:1},children:[(0,Ae.jsx)(dw,{htmlFor:"safeMinFlightHeight",children:"Minimun drone height (m)"}),(0,Ae.jsx)(cu,{title:"Enter the minimum height (in meters) for the drone to fly only if necessary",placement:"left-end",children:(0,Ae.jsx)(ew,{fullWidth:!0,name:r,id:"safeMinFlightHeight",type:"number",label:"Minimun drone height (m)",value:null!==n&&void 0!==n?n:"",onChange:t,inputProps:{min:0,step:.5},endAdornment:(0,Ae.jsx)(Gu,{onClick:()=>A("safeMinFlightHeight",null),children:(0,Ae.jsx)(rwe.c,{fontSize:"small"})})})})]})}})})})]}),(0,Ae.jsx)(GQe,{name:"model",control:P,render:e=>{var t;let{field:{onChange:n,value:r}}=e;return(0,Ae.jsx)(yw,{children:(0,Ae.jsx)(rz,{id:"model",options:l,getOptionLabel:e=>e.label,renderInput:e=>(0,Ae.jsx)(iE,{...e,label:"Model",variant:"outlined"}),value:null!==(t=l.find((e=>e.value===r)))&&void 0!==t?t:null,onChange:(e,t)=>{var r;n(null!==(r=null===t||void 0===t?void 0:t.value)&&void 0!==r?r:"")}})})}}),(0,Ae.jsx)(GQe,{name:"poweringDate",control:P,render:e=>{let{field:{onChange:t,value:n}}=e;return(0,Ae.jsx)(aS,{label:"Powering date",value:null!==n&&void 0!==n?n:null,onChange:t,inputFormat:"DD/MM/YYYY",renderInput:e=>(0,Ae.jsx)(iE,{...e,variant:"filled"})})}}),(0,Ae.jsx)(k1e,{errors:C,name:"poweringDate"}),(0,Ae.jsx)(GQe,{name:"lastInspectionDate",control:P,render:e=>{let{field:{onChange:t,value:n}}=e;return(0,Ae.jsx)(aS,{label:"Last inspection date",value:null!==n&&void 0!==n?n:null,onChange:t,inputFormat:"DD/MM/YYYY",renderInput:e=>(0,Ae.jsx)(iE,{...e,variant:"filled"})})}}),(0,Ae.jsx)(k1e,{errors:C,name:"lastInspectionDate"}),(0,Ae.jsxs)(Ph,{style:{width:"100%"},children:[(0,Ae.jsx)(Th,{expandIcon:(0,Ae.jsx)(cp.c,{}),"aria-controls":"setup-content",id:"setup-header",children:(0,Ae.jsx)(vu,{fontWeight:600,children:"Panels setup"})}),(0,Ae.jsxs)(Dh,{children:[(0,Ae.jsx)(GQe,{name:"panelsSetUp.tracker",control:P,render:e=>{let{field:{onChange:t,value:n}}=e;return(0,Ae.jsx)(Pu,{control:(0,Ae.jsx)(lj,{size:"small",checked:n,onChange:t}),label:"Tracker"})}}),(0,Ae.jsx)(GQe,{name:"panelsSetUp.isHorizontal",control:P,render:e=>{let{field:{onChange:t,value:n}}=e;return(0,Ae.jsxs)(cW,{size:"small",children:[(0,Ae.jsx)(Sa,{variant:n?"outlined":"contained",onClick:()=>t(!1),children:"Vertical"},1),(0,Ae.jsx)(Sa,{variant:n?"contained":"outlined",onClick:()=>t(!0),children:"Horizontal"},2)]})}}),(0,Ae.jsx)(GQe,{name:"panelsSetUp.nbLinesPerGrid",control:P,render:e=>{let{field:{onChange:t,value:n,name:r}}=e;return(0,Ae.jsx)(iE,{size:"small",fullWidth:!0,name:r,id:"nbLinesPerGrid",type:"number",variant:"outlined",label:"Lines per grid",value:n,onChange:t,inputProps:{min:0}})}})]})]}),(0,Ae.jsxs)(Ph,{style:{width:"100%"},children:[(0,Ae.jsx)(Th,{expandIcon:(0,Ae.jsx)(cp.c,{}),"aria-controls":"dem-content",id:"dem-header",children:(0,Ae.jsxs)(ws,{container:!0,alignItems:"center",columnGap:"1rem",children:[(0,Ae.jsx)(vu,{fontWeight:600,children:"DEM"}),(0,Ae.jsx)(D,{}),b.text&&(0,Ae.jsx)(cu,{title:b.text,placement:"top",children:(0,Ae.jsx)(Qtt.c,{fontSize:"small",color:b.severity})})]})}),(0,Ae.jsx)(Dh,{children:(0,Ae.jsxs)(ws,{container:!0,direction:"column",wrap:"nowrap",rowGap:"0.5rem",children:[(0,Ae.jsxs)(ws,{item:!0,children:[(0,Ae.jsx)(dw,{id:"dem-status",children:"DEM Status"}),(0,Ae.jsx)(Vtt,{value:k("demStatus"),onChange:M,demData:S})]}),(0,Ae.jsx)(ws,{item:!0,width:"100%",children:(0,Ae.jsx)(Ktt,{assetId:G,subAsset:N,onDEMGenerated:L,onError:V,demDataCallback:e=>w(e)})})]})})]}),(0,Ae.jsxs)(wp,{children:[(0,Ae.jsx)(dw,{id:"sub-asset-type",children:"SubAsset type"}),(0,Ae.jsx)(GQe,{name:"isConstruction",control:P,render:e=>{let{field:{onChange:t,value:n}}=e;return(0,Ae.jsx)(ige,{fullWidth:!0,activeIndex:n?1:0,buttons:["Thermo","Construction"],onClick:e=>t(1===e)})}})]}),R&&(0,Ae.jsxs)(Ph,{defaultExpanded:!0,children:[(0,Ae.jsx)(Th,{expandIcon:(0,Ae.jsx)(cp.c,{}),"aria-controls":"construction-content",id:"construction-header",children:(0,Ae.jsx)(vu,{fontWeight:600,children:"Construction informations"})}),(0,Ae.jsx)(Dh,{children:(0,Ae.jsx)(ws,{container:!0,spacing:2,children:O.map((e=>{let{key:t,label:n}=e;return(0,Ae.jsx)(ws,{item:!0,xs:6,children:(0,Ae.jsx)(GQe,{name:"constructionObjectives.".concat(t),control:P,render:e=>{let{field:{onChange:r,value:i,name:o}}=e;return(0,Ae.jsx)(iE,{size:"small",fullWidth:!0,name:o,id:t,type:"number",variant:"outlined",label:n,value:i,onChange:r,inputProps:{min:0}})}})},"construction-item-".concat(t))}))})})]}),(0,Ae.jsx)(ev,{fullWidth:!0,variant:"contained",color:"light",size:"large",frontIcon:(0,Ae.jsx)(R3e,{}),disabled:ipe(a)||f||h,onClick:()=>i(tnt.POLYGON,{subAssetId:a.id}),children:"Edit polygon"}),(0,Ae.jsx)("span",{className:"".concat(t.overlayBtn," ").concat(v?"rotate":""),children:(0,Ae.jsx)(ev,{fullWidth:!0,variant:"contained",color:"create",size:"large",frontIcon:(0,Ae.jsx)(q2e.c,{}),disabled:f||h,onClick:()=>{const t=!v;_(t),e.openCloseOverlay(t)},children:"Overlays"})})]}),(0,Ae.jsx)("div",{children:(0,Ae.jsxs)(ws,{container:!0,item:!0,flexWrap:"nowrap",columnGap:"1rem",justifyContent:"space-between",marginY:"1rem",children:[(0,Ae.jsx)(ev,{fullWidth:!0,size:"large",variant:"contained",color:"cancel",onClick:e.onCancel,disabled:f||h,children:"Close"}),(0,Ae.jsx)(ev,{fullWidth:!0,size:"large",variant:"contained",color:"delete",onClick:e=>y(e.currentTarget),disabled:f||h,loading:f,children:"Delete"}),(0,Ae.jsx)(ev,{fullWidth:!0,submit:!0,size:"large",variant:"contained",color:"success",disabled:f||h,loading:h,children:"Save"})]})})]})}),u&&(0,Ae.jsx)(pM,{severity:"error",children:u})]}),m&&(0,Ae.jsx)(nv,{topTitle:"Delete subAsset",title:"Do you confirm deleting ".concat(a.name,"?"),close:()=>y(null),confirm:async()=>{y(null),g(!0),await e.onDelete(),xEe(G),g(!1)},titleConfirm:"Delete",anchorEl:m})]})};var hnt=__webpack_require__(81504),pnt=__webpack_require__(18440),fnt=__webpack_require__(7644);const gnt=e=>{const t=(0,n.useMemo)((()=>e.status===SV.PENDING?"Pending":e.status===SV.DONE?"Complete":e.status===SV.ERROR?"Error":""),[e.status]),r=(0,n.useMemo)((()=>e.status===SV.PENDING?"An optimized orthophoto is currently in generation. It will be available in a few minutes":e.status===SV.DONE?"An optimized orthophoto has been generated":e.status===SV.ERROR?"An optimized orthophoto could not be generated, please try again later":""),[e.status]),i=(0,n.useMemo)((()=>e.status===SV.PENDING?zp:e.status===SV.DONE?Fp:e.status===SV.ERROR?Bp:""),[e.status]);return(0,Ae.jsx)(cu,{title:r,children:(0,Ae.jsx)("span",{children:(0,Ae.jsx)(nA,{color:i,label:t})})})},mnt=e=>{const[t,r]=(0,n.useState)([]),i=(0,n.useMemo)((()=>e.overlay.signedUrl),[e.overlay.signedUrl]),o=(0,n.useCallback)(((e,t)=>{r(t)}),[]);return i?(0,Ae.jsx)(wp,{width:"100%",height:"100%",children:(0,Ae.jsx)(U5,{hideControls:!0,id:"geojson-map-".concat(e.overlay.id),provider:mL.OSM,bounds:t,children:(0,Ae.jsx)(XPe,{url:i,onGeoJSONReady:o})})}):(0,Ae.jsx)(Ae.Fragment,{})},ynt=Zo()((()=>({imageContainer:{aspectRatio:"1/1",border:"1px solid black"},dragHandle:{"&.drag-disabled":{color:Rp},"&:hover":{cursor:"pointer"},"&.drag-disabled:hover":{cursor:"auto"}},btnContainer:{flexDirection:"column",flexWrap:"nowrap",alignItems:"center",justifyContent:"space-between",padding:"0.5rem 0",height:"100%"}}))),vnt=e=>{const{classes:t}=ynt(),{overlay:r,onUpdateCalibration:i}=e,[o,s]=(0,n.useState)(),[a,l]=(0,n.useState)(!1),[c,u]=(0,n.useState)(!1),[d,h]=(0,n.useState)(r);(0,n.useEffect)((()=>{h(r)}),[r]);const p=(0,n.useMemo)((()=>r.type===xV.IMAGE),[r.type]),f=(0,n.useMemo)((()=>r.type===xV.GEOJSON),[r.type]),g=(0,n.useMemo)((()=>r.type!==xV.GEOTIFF),[r.type]),m=async t=>{var n;u(!0),await(null===(n=e.onUpdate)||void 0===n?void 0:n.call(e,t)),u(!1)},y=(0,n.useCallback)((()=>{const e=p?"Update calibration or file":"Update file";return(0,Ae.jsx)(cu,{title:e,placement:"left",children:(0,Ae.jsx)("div",{children:(0,Ae.jsx)(Gu,{color:"secondary",disabled:a||f,onClick:i,children:p?(0,Ae.jsx)(hnt.c,{}):(0,Ae.jsx)(Htt.c,{})})})})}),[a,p,f,i]);return(0,Ae.jsxs)(Ae.Fragment,{children:[(0,Ae.jsxs)(ws,{container:!0,wrap:"nowrap",height:"6rem",alignItems:"center",columnGap:"0.5rem",children:[(0,Ae.jsx)(ws,{item:!0,xs:1,className:"".concat(t.dragHandle," ").concat(e.draggable?"":"drag-disabled"),children:!c&&(0,Ae.jsx)(cu,{arrow:!0,title:e.draggable?"Drag and drop to reorder":"",placement:"left",children:(0,Ae.jsx)(pnt.c,{className:"drag-handle"})})}),(0,Ae.jsxs)(ws,{item:!0,xs:4,className:g?t.imageContainer:void 0,children:[r.type===xV.IMAGE&&(0,Ae.jsx)(rAe,{overviewPurpose:!0,id:"image-map-".concat(r.id),imageUrl:r.signedUrl,maxFileSizeMBCompression:.3}),r.type===xV.GEOTIFF&&r.status&&(0,Ae.jsx)(gnt,{status:r.status}),r.type===xV.GEOJSON&&(0,Ae.jsx)(mnt,{overlay:r})]}),(0,Ae.jsx)(ws,{item:!0,xs:2,children:(0,Ae.jsx)(cu,{title:"This overlay is ".concat(d.defaultVisible?"":"not ","visible by default"),children:(0,Ae.jsx)("span",{children:(0,Ae.jsx)(Gu,{onClick:()=>{const e=!d.defaultVisible;h((t=>({...t,defaultVisible:e}))),m({defaultVisible:e})},disabled:c,children:d.defaultVisible?(0,Ae.jsx)(hB.c,{}):(0,Ae.jsx)(pB.c,{})})})})}),(0,Ae.jsx)(ws,{item:!0,xs:4,children:(0,Ae.jsx)(RS,{disabled:c,size:"medium",value:d.name,onChange:e=>h((t=>({...t,name:e.target.value}))),"aria-label":"Overlay name",onBlur:e=>m({name:e.target.value}),inputProps:{maxLength:20}})}),(0,Ae.jsx)(ws,{item:!0,xs:1,children:c&&(0,Ae.jsx)($y,{size:20})}),(0,Ae.jsxs)(ws,{item:!0,xs:1,container:!0,className:t.btnContainer,children:[(0,Ae.jsx)(ws,{item:!0,children:(0,Ae.jsx)(y,{})}),(0,Ae.jsx)(ws,{item:!0,children:(0,Ae.jsx)(cu,{title:"Delete overlay",placement:"left",children:(0,Ae.jsx)(Gu,{color:"error",disabled:a,onClick:e=>{s(e.currentTarget)},children:(0,Ae.jsx)(n8.c,{})})})})]}),(0,Ae.jsxs)(ws,{item:!0,xs:1,container:!0,className:t.btnContainer,children:[(0,Ae.jsx)(ws,{item:!0,flex:1,children:(0,Ae.jsx)(cu,{title:d.showOnPDF?"Hide on PDF":"Show on PDF",placement:"left",children:(0,Ae.jsx)(Gu,{color:d.showOnPDF?"primary":"secondary",disabled:a,onClick:()=>{const e=!d.showOnPDF;h((t=>({...t,showOnPDF:e}))),m({showOnPDF:e})},children:(0,Ae.jsx)(fnt.c,{})})})}),(0,Ae.jsx)(ws,{item:!0,flex:1})]})]}),o&&(0,Ae.jsx)(nv,{anchorEl:o,topTitle:"Delete overlay",title:"Do you confirm deleting ".concat(null===r||void 0===r?void 0:r.name,"?"),close:()=>s(void 0),confirm:async()=>{var t;l(!0),await(null===(t=e.onDelete)||void 0===t?void 0:t.call(e)),s(void 0),l(!1)},loading:a,titleConfirm:"Delete"})]})};function _nt(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function bnt(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?_nt(Object(n),!0).forEach((function(t){Snt(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):_nt(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function xnt(e){return xnt="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"===typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},xnt(e)}function Snt(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function wnt(){return wnt=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},wnt.apply(this,arguments)}function Ent(e,t){if(null==e)return{};var n,r,i=function(e,t){if(null==e)return{};var n,r,i={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(i[n]=e[n]);return i}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function Pnt(e){if("undefined"!==typeof window&&window.navigator)return!!navigator.userAgent.match(e)}var Cnt=Pnt(/(?:Trident.*rv[ :]?11\.|msie|iemobile|Windows Phone)/i),Ant=Pnt(/Edge/i),knt=Pnt(/firefox/i),jnt=Pnt(/safari/i)&&!Pnt(/chrome/i)&&!Pnt(/android/i),Int=Pnt(/iP(ad|od|hone)/i),Gnt=Pnt(/chrome/i)&&Pnt(/android/i),Tnt={capture:!1,passive:!1};function Mnt(e,t,n){e.addEventListener(t,n,!Cnt&&Tnt)}function Ont(e,t,n){e.removeEventListener(t,n,!Cnt&&Tnt)}function Rnt(e,t){if(t){if(">"===t[0]&&(t=t.substring(1)),e)try{if(e.matches)return e.matches(t);if(e.msMatchesSelector)return e.msMatchesSelector(t);if(e.webkitMatchesSelector)return e.webkitMatchesSelector(t)}catch(Dn){return!1}return!1}}function Dnt(e){return e.host&&e!==document&&e.host.nodeType?e.host:e.parentNode}function Nnt(e,t,n,r){if(e){n=n||document;do{if(null!=t&&(">"===t[0]?e.parentNode===n&&Rnt(e,t):Rnt(e,t))||r&&e===n)return e;if(e===n)break}while(e=Dnt(e))}return null}var Lnt,Vnt=/\s+/g;function Fnt(e,t,n){if(e&&t)if(e.classList)e.classList[n?"add":"remove"](t);else{var r=(" "+e.className+" ").replace(Vnt," ").replace(" "+t+" "," ");e.className=(r+(n?" "+t:"")).replace(Vnt," ")}}function znt(e,t,n){var r=e&&e.style;if(r){if(void 0===n)return document.defaultView&&document.defaultView.getComputedStyle?n=document.defaultView.getComputedStyle(e,""):e.currentStyle&&(n=e.currentStyle),void 0===t?n:n[t];t in r||-1!==t.indexOf("webkit")||(t="-webkit-"+t),r[t]=n+("string"===typeof n?"":"px")}}function Bnt(e,t){var n="";if("string"===typeof e)n=e;else do{var r=znt(e,"transform");r&&"none"!==r&&(n=r+" "+n)}while(!t&&(e=e.parentNode));var i=window.DOMMatrix||window.WebKitCSSMatrix||window.CSSMatrix||window.MSCSSMatrix;return i&&new i(n)}function Unt(e,t,n){if(e){var r=e.getElementsByTagName(t),i=0,o=r.length;if(n)for(;i<o;i++)n(r[i],i);return r}return[]}function Wnt(){var e=document.scrollingElement;return e||document.documentElement}function Hnt(e,t,n,r,i){if(e.getBoundingClientRect||e===window){var o,s,a,l,c,u,d;if(e!==window&&e.parentNode&&e!==Wnt()?(s=(o=e.getBoundingClientRect()).top,a=o.left,l=o.bottom,c=o.right,u=o.height,d=o.width):(s=0,a=0,l=window.innerHeight,c=window.innerWidth,u=window.innerHeight,d=window.innerWidth),(t||n)&&e!==window&&(i=i||e.parentNode,!Cnt))do{if(i&&i.getBoundingClientRect&&("none"!==znt(i,"transform")||n&&"static"!==znt(i,"position"))){var h=i.getBoundingClientRect();s-=h.top+parseInt(znt(i,"border-top-width")),a-=h.left+parseInt(znt(i,"border-left-width")),l=s+o.height,c=a+o.width;break}}while(i=i.parentNode);if(r&&e!==window){var p=Bnt(i||e),f=p&&p.a,g=p&&p.d;p&&(l=(s/=g)+(u/=g),c=(a/=f)+(d/=f))}return{top:s,left:a,bottom:l,right:c,width:d,height:u}}}function qnt(e,t,n){for(var r=$nt(e,!0),i=Hnt(e)[t];r;){var o=Hnt(r)[n];if(!("top"===n||"left"===n?i>=o:i<=o))return r;if(r===Wnt())break;r=$nt(r,!1)}return!1}function Xnt(e,t,n,r){for(var i=0,o=0,s=e.children;o<s.length;){if("none"!==s[o].style.display&&s[o]!==tit.ghost&&(r||s[o]!==tit.dragged)&&Nnt(s[o],n.draggable,e,!1)){if(i===t)return s[o];i++}o++}return null}function Ynt(e,t){for(var n=e.lastElementChild;n&&(n===tit.ghost||"none"===znt(n,"display")||t&&!Rnt(n,t));)n=n.previousElementSibling;return n||null}function Knt(e,t){var n=0;if(!e||!e.parentNode)return-1;for(;e=e.previousElementSibling;)"TEMPLATE"===e.nodeName.toUpperCase()||e===tit.clone||t&&!Rnt(e,t)||n++;return n}function Znt(e){var t=0,n=0,r=Wnt();if(e)do{var i=Bnt(e),o=i.a,s=i.d;t+=e.scrollLeft*o,n+=e.scrollTop*s}while(e!==r&&(e=e.parentNode));return[t,n]}function $nt(e,t){if(!e||!e.getBoundingClientRect)return Wnt();var n=e,r=!1;do{if(n.clientWidth<n.scrollWidth||n.clientHeight<n.scrollHeight){var i=znt(n);if(n.clientWidth<n.scrollWidth&&("auto"==i.overflowX||"scroll"==i.overflowX)||n.clientHeight<n.scrollHeight&&("auto"==i.overflowY||"scroll"==i.overflowY)){if(!n.getBoundingClientRect||n===document.body)return Wnt();if(r||t)return n;r=!0}}}while(n=n.parentNode);return Wnt()}function Jnt(e,t){return Math.round(e.top)===Math.round(t.top)&&Math.round(e.left)===Math.round(t.left)&&Math.round(e.height)===Math.round(t.height)&&Math.round(e.width)===Math.round(t.width)}function Qnt(e,t){return function(){if(!Lnt){var n=arguments;1===n.length?e.call(this,n[0]):e.apply(this,n),Lnt=setTimeout((function(){Lnt=void 0}),t)}}}function ert(e,t,n){e.scrollLeft+=t,e.scrollTop+=n}function trt(e){var t=window.Polymer,n=window.jQuery||window.Zepto;return t&&t.dom?t.dom(e).cloneNode(!0):n?n(e).clone(!0)[0]:e.cloneNode(!0)}var nrt="Sortable"+(new Date).getTime();function rrt(){var e,t=[];return{captureAnimationState:function(){(t=[],this.options.animation)&&[].slice.call(this.el.children).forEach((function(e){if("none"!==znt(e,"display")&&e!==tit.ghost){t.push({target:e,rect:Hnt(e)});var n=bnt({},t[t.length-1].rect);if(e.thisAnimationDuration){var r=Bnt(e,!0);r&&(n.top-=r.f,n.left-=r.e)}e.fromRect=n}}))},addAnimationState:function(e){t.push(e)},removeAnimationState:function(e){t.splice(function(e,t){for(var n in e)if(e.hasOwnProperty(n))for(var r in t)if(t.hasOwnProperty(r)&&t[r]===e[n][r])return Number(n);return-1}(t,{target:e}),1)},animateAll:function(n){var r=this;if(!this.options.animation)return clearTimeout(e),void("function"===typeof n&&n());var i=!1,o=0;t.forEach((function(e){var t=0,n=e.target,s=n.fromRect,a=Hnt(n),l=n.prevFromRect,c=n.prevToRect,u=e.rect,d=Bnt(n,!0);d&&(a.top-=d.f,a.left-=d.e),n.toRect=a,n.thisAnimationDuration&&Jnt(l,a)&&!Jnt(s,a)&&(u.top-a.top)/(u.left-a.left)===(s.top-a.top)/(s.left-a.left)&&(t=function(e,t,n,r){return Math.sqrt(Math.pow(t.top-e.top,2)+Math.pow(t.left-e.left,2))/Math.sqrt(Math.pow(t.top-n.top,2)+Math.pow(t.left-n.left,2))*r.animation}(u,l,c,r.options)),Jnt(a,s)||(n.prevFromRect=s,n.prevToRect=a,t||(t=r.options.animation),r.animate(n,u,a,t)),t&&(i=!0,o=Math.max(o,t),clearTimeout(n.animationResetTimer),n.animationResetTimer=setTimeout((function(){n.animationTime=0,n.prevFromRect=null,n.fromRect=null,n.prevToRect=null,n.thisAnimationDuration=null}),t),n.thisAnimationDuration=t)})),clearTimeout(e),i?e=setTimeout((function(){"function"===typeof n&&n()}),o):"function"===typeof n&&n(),t=[]},animate:function(e,t,n,r){if(r){znt(e,"transition",""),znt(e,"transform","");var i=Bnt(this.el),o=i&&i.a,s=i&&i.d,a=(t.left-n.left)/(o||1),l=(t.top-n.top)/(s||1);e.animatingX=!!a,e.animatingY=!!l,znt(e,"transform","translate3d("+a+"px,"+l+"px,0)"),this.forRepaintDummy=function(e){return e.offsetWidth}(e),znt(e,"transition","transform "+r+"ms"+(this.options.easing?" "+this.options.easing:"")),znt(e,"transform","translate3d(0,0,0)"),"number"===typeof e.animated&&clearTimeout(e.animated),e.animated=setTimeout((function(){znt(e,"transition",""),znt(e,"transform",""),e.animated=!1,e.animatingX=!1,e.animatingY=!1}),r)}}}}var irt=[],ort={initializeByDefault:!0},srt={mount:function(e){for(var t in ort)ort.hasOwnProperty(t)&&!(t in e)&&(e[t]=ort[t]);irt.forEach((function(t){if(t.pluginName===e.pluginName)throw"Sortable: Cannot mount plugin ".concat(e.pluginName," more than once")})),irt.push(e)},pluginEvent:function(e,t,n){var r=this;this.eventCanceled=!1,n.cancel=function(){r.eventCanceled=!0};var i=e+"Global";irt.forEach((function(r){t[r.pluginName]&&(t[r.pluginName][i]&&t[r.pluginName][i](bnt({sortable:t},n)),t.options[r.pluginName]&&t[r.pluginName][e]&&t[r.pluginName][e](bnt({sortable:t},n)))}))},initializePlugins:function(e,t,n,r){for(var i in irt.forEach((function(r){var i=r.pluginName;if(e.options[i]||r.initializeByDefault){var o=new r(e,t,e.options);o.sortable=e,o.options=e.options,e[i]=o,wnt(n,o.defaults)}})),e.options)if(e.options.hasOwnProperty(i)){var o=this.modifyOption(e,i,e.options[i]);"undefined"!==typeof o&&(e.options[i]=o)}},getEventProperties:function(e,t){var n={};return irt.forEach((function(r){"function"===typeof r.eventProperties&&wnt(n,r.eventProperties.call(t[r.pluginName],e))})),n},modifyOption:function(e,t,n){var r;return irt.forEach((function(i){e[i.pluginName]&&i.optionListeners&&"function"===typeof i.optionListeners[t]&&(r=i.optionListeners[t].call(e[i.pluginName],n))})),r}};function art(e){var t=e.sortable,n=e.rootEl,r=e.name,i=e.targetEl,o=e.cloneEl,s=e.toEl,a=e.fromEl,l=e.oldIndex,c=e.newIndex,u=e.oldDraggableIndex,d=e.newDraggableIndex,h=e.originalEvent,p=e.putSortable,f=e.extraEventProperties;if(t=t||n&&n[nrt]){var g,m=t.options,y="on"+r.charAt(0).toUpperCase()+r.substr(1);!window.CustomEvent||Cnt||Ant?(g=document.createEvent("Event")).initEvent(r,!0,!0):g=new CustomEvent(r,{bubbles:!0,cancelable:!0}),g.to=s||n,g.from=a||n,g.item=i||n,g.clone=o,g.oldIndex=l,g.newIndex=c,g.oldDraggableIndex=u,g.newDraggableIndex=d,g.originalEvent=h,g.pullMode=p?p.lastPutMode:void 0;var v=bnt(bnt({},f),srt.getEventProperties(r,t));for(var _ in v)g[_]=v[_];n&&n.dispatchEvent(g),m[y]&&m[y].call(t,g)}}var lrt=["evt"],crt=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=n.evt,i=Ent(n,lrt);srt.pluginEvent.bind(tit)(e,t,bnt({dragEl:drt,parentEl:hrt,ghostEl:prt,rootEl:frt,nextEl:grt,lastDownEl:mrt,cloneEl:yrt,cloneHidden:vrt,dragStarted:Grt,putSortable:Ert,activeSortable:tit.active,originalEvent:r,oldIndex:_rt,oldDraggableIndex:xrt,newIndex:brt,newDraggableIndex:Srt,hideGhostForTarget:$rt,unhideGhostForTarget:Jrt,cloneNowHidden:function(){vrt=!0},cloneNowShown:function(){vrt=!1},dispatchSortableEvent:function(e){urt({sortable:t,name:e,originalEvent:r})}},i))};function urt(e){art(bnt({putSortable:Ert,cloneEl:yrt,targetEl:drt,rootEl:frt,oldIndex:_rt,oldDraggableIndex:xrt,newIndex:brt,newDraggableIndex:Srt},e))}var drt,hrt,prt,frt,grt,mrt,yrt,vrt,_rt,brt,xrt,Srt,wrt,Ert,Prt,Crt,Art,krt,jrt,Irt,Grt,Trt,Mrt,Ort,Rrt,Drt=!1,Nrt=!1,Lrt=[],Vrt=!1,Frt=!1,zrt=[],Brt=!1,Urt=[],Wrt="undefined"!==typeof document,Hrt=Int,qrt=Ant||Cnt?"cssFloat":"float",Xrt=Wrt&&!Gnt&&!Int&&"draggable"in document.createElement("div"),Yrt=function(){if(Wrt){if(Cnt)return!1;var e=document.createElement("x");return e.style.cssText="pointer-events:auto","auto"===e.style.pointerEvents}}(),Krt=function(e,t){var n=znt(e),r=parseInt(n.width)-parseInt(n.paddingLeft)-parseInt(n.paddingRight)-parseInt(n.borderLeftWidth)-parseInt(n.borderRightWidth),i=Xnt(e,0,t),o=Xnt(e,1,t),s=i&&znt(i),a=o&&znt(o),l=s&&parseInt(s.marginLeft)+parseInt(s.marginRight)+Hnt(i).width,c=a&&parseInt(a.marginLeft)+parseInt(a.marginRight)+Hnt(o).width;if("flex"===n.display)return"column"===n.flexDirection||"column-reverse"===n.flexDirection?"vertical":"horizontal";if("grid"===n.display)return n.gridTemplateColumns.split(" ").length<=1?"vertical":"horizontal";if(i&&s.float&&"none"!==s.float){var u="left"===s.float?"left":"right";return!o||"both"!==a.clear&&a.clear!==u?"horizontal":"vertical"}return i&&("block"===s.display||"flex"===s.display||"table"===s.display||"grid"===s.display||l>=r&&"none"===n[qrt]||o&&"none"===n[qrt]&&l+c>r)?"vertical":"horizontal"},Zrt=function(e){function t(e,n){return function(r,i,o,s){var a=r.options.group.name&&i.options.group.name&&r.options.group.name===i.options.group.name;if(null==e&&(n||a))return!0;if(null==e||!1===e)return!1;if(n&&"clone"===e)return e;if("function"===typeof e)return t(e(r,i,o,s),n)(r,i,o,s);var l=(n?r:i).options.group.name;return!0===e||"string"===typeof e&&e===l||e.join&&e.indexOf(l)>-1}}var n={},r=e.group;r&&"object"==xnt(r)||(r={name:r}),n.name=r.name,n.checkPull=t(r.pull,!0),n.checkPut=t(r.put),n.revertClone=r.revertClone,e.group=n},$rt=function(){!Yrt&&prt&&znt(prt,"display","none")},Jrt=function(){!Yrt&&prt&&znt(prt,"display","")};Wrt&&!Gnt&&document.addEventListener("click",(function(e){if(Nrt)return e.preventDefault(),e.stopPropagation&&e.stopPropagation(),e.stopImmediatePropagation&&e.stopImmediatePropagation(),Nrt=!1,!1}),!0);var Qrt=function(e){if(drt){var t=function(e,t){var n;return Lrt.some((function(r){var i=r[nrt].options.emptyInsertThreshold;if(i&&!Ynt(r)){var o=Hnt(r),s=e>=o.left-i&&e<=o.right+i,a=t>=o.top-i&&t<=o.bottom+i;return s&&a?n=r:void 0}})),n}((e=e.touches?e.touches[0]:e).clientX,e.clientY);if(t){var n={};for(var r in e)e.hasOwnProperty(r)&&(n[r]=e[r]);n.target=n.rootEl=t,n.preventDefault=void 0,n.stopPropagation=void 0,t[nrt]._onDragOver(n)}}},eit=function(e){drt&&drt.parentNode[nrt]._isOutsideThisEl(e.target)};function tit(e,t){if(!e||!e.nodeType||1!==e.nodeType)throw"Sortable: `el` must be an HTMLElement, not ".concat({}.toString.call(e));this.el=e,this.options=t=wnt({},t),e[nrt]=this;var n={group:null,sort:!0,disabled:!1,store:null,handle:null,draggable:/^[uo]l$/i.test(e.nodeName)?">li":">*",swapThreshold:1,invertSwap:!1,invertedSwapThreshold:null,removeCloneOnHide:!0,direction:function(){return Krt(e,this.options)},ghostClass:"sortable-ghost",chosenClass:"sortable-chosen",dragClass:"sortable-drag",ignore:"a, img",filter:null,preventOnFilter:!0,animation:0,easing:null,setData:function(e,t){e.setData("Text",t.textContent)},dropBubble:!1,dragoverBubble:!1,dataIdAttr:"data-id",delay:0,delayOnTouchOnly:!1,touchStartThreshold:(Number.parseInt?Number:window).parseInt(window.devicePixelRatio,10)||1,forceFallback:!1,fallbackClass:"sortable-fallback",fallbackOnBody:!1,fallbackTolerance:0,fallbackOffset:{x:0,y:0},supportPointer:!1!==tit.supportPointer&&"PointerEvent"in window&&!jnt,emptyInsertThreshold:5};for(var r in srt.initializePlugins(this,e,n),n)!(r in t)&&(t[r]=n[r]);for(var i in Zrt(t),this)"_"===i.charAt(0)&&"function"===typeof this[i]&&(this[i]=this[i].bind(this));this.nativeDraggable=!t.forceFallback&&Xrt,this.nativeDraggable&&(this.options.touchStartThreshold=1),t.supportPointer?Mnt(e,"pointerdown",this._onTapStart):(Mnt(e,"mousedown",this._onTapStart),Mnt(e,"touchstart",this._onTapStart)),this.nativeDraggable&&(Mnt(e,"dragover",this),Mnt(e,"dragenter",this)),Lrt.push(this.el),t.store&&t.store.get&&this.sort(t.store.get(this)||[]),wnt(this,rrt())}function nit(e,t,n,r,i,o,s,a){var l,c,u=e[nrt],d=u.options.onMove;return!window.CustomEvent||Cnt||Ant?(l=document.createEvent("Event")).initEvent("move",!0,!0):l=new CustomEvent("move",{bubbles:!0,cancelable:!0}),l.to=t,l.from=e,l.dragged=n,l.draggedRect=r,l.related=i||t,l.relatedRect=o||Hnt(t),l.willInsertAfter=a,l.originalEvent=s,e.dispatchEvent(l),d&&(c=d.call(u,l,s)),c}function rit(e){e.draggable=!1}function iit(){Brt=!1}function oit(e){for(var t=e.tagName+e.className+e.src+e.href+e.textContent,n=t.length,r=0;n--;)r+=t.charCodeAt(n);return r.toString(36)}function sit(e){return setTimeout(e,0)}function ait(e){return clearTimeout(e)}tit.prototype={constructor:tit,_isOutsideThisEl:function(e){this.el.contains(e)||e===this.el||(Trt=null)},_getDirection:function(e,t){return"function"===typeof this.options.direction?this.options.direction.call(this,e,t,drt):this.options.direction},_onTapStart:function(e){if(e.cancelable){var t=this,n=this.el,r=this.options,i=r.preventOnFilter,o=e.type,s=e.touches&&e.touches[0]||e.pointerType&&"touch"===e.pointerType&&e,a=(s||e).target,l=e.target.shadowRoot&&(e.path&&e.path[0]||e.composedPath&&e.composedPath()[0])||a,c=r.filter;if(function(e){Urt.length=0;var t=e.getElementsByTagName("input"),n=t.length;for(;n--;){var r=t[n];r.checked&&Urt.push(r)}}(n),!drt&&!(/mousedown|pointerdown/.test(o)&&0!==e.button||r.disabled)&&!l.isContentEditable&&(this.nativeDraggable||!jnt||!a||"SELECT"!==a.tagName.toUpperCase())&&(!(a=Nnt(a,r.draggable,n,!1))||!a.animated)&&mrt!==a){if(_rt=Knt(a),xrt=Knt(a,r.draggable),"function"===typeof c){if(c.call(this,e,a,this))return urt({sortable:t,rootEl:l,name:"filter",targetEl:a,toEl:n,fromEl:n}),crt("filter",t,{evt:e}),void(i&&e.cancelable&&e.preventDefault())}else if(c&&(c=c.split(",").some((function(r){if(r=Nnt(l,r.trim(),n,!1))return urt({sortable:t,rootEl:r,name:"filter",targetEl:a,fromEl:n,toEl:n}),crt("filter",t,{evt:e}),!0}))))return void(i&&e.cancelable&&e.preventDefault());r.handle&&!Nnt(l,r.handle,n,!1)||this._prepareDragStart(e,s,a)}}},_prepareDragStart:function(e,t,n){var r,i=this,o=i.el,s=i.options,a=o.ownerDocument;if(n&&!drt&&n.parentNode===o){var l=Hnt(n);if(frt=o,hrt=(drt=n).parentNode,grt=drt.nextSibling,mrt=n,wrt=s.group,tit.dragged=drt,Prt={target:drt,clientX:(t||e).clientX,clientY:(t||e).clientY},jrt=Prt.clientX-l.left,Irt=Prt.clientY-l.top,this._lastX=(t||e).clientX,this._lastY=(t||e).clientY,drt.style["will-change"]="all",r=function(){crt("delayEnded",i,{evt:e}),tit.eventCanceled?i._onDrop():(i._disableDelayedDragEvents(),!knt&&i.nativeDraggable&&(drt.draggable=!0),i._triggerDragStart(e,t),urt({sortable:i,name:"choose",originalEvent:e}),Fnt(drt,s.chosenClass,!0))},s.ignore.split(",").forEach((function(e){Unt(drt,e.trim(),rit)})),Mnt(a,"dragover",Qrt),Mnt(a,"mousemove",Qrt),Mnt(a,"touchmove",Qrt),Mnt(a,"mouseup",i._onDrop),Mnt(a,"touchend",i._onDrop),Mnt(a,"touchcancel",i._onDrop),knt&&this.nativeDraggable&&(this.options.touchStartThreshold=4,drt.draggable=!0),crt("delayStart",this,{evt:e}),!s.delay||s.delayOnTouchOnly&&!t||this.nativeDraggable&&(Ant||Cnt))r();else{if(tit.eventCanceled)return void this._onDrop();Mnt(a,"mouseup",i._disableDelayedDrag),Mnt(a,"touchend",i._disableDelayedDrag),Mnt(a,"touchcancel",i._disableDelayedDrag),Mnt(a,"mousemove",i._delayedDragTouchMoveHandler),Mnt(a,"touchmove",i._delayedDragTouchMoveHandler),s.supportPointer&&Mnt(a,"pointermove",i._delayedDragTouchMoveHandler),i._dragStartTimer=setTimeout(r,s.delay)}}},_delayedDragTouchMoveHandler:function(e){var t=e.touches?e.touches[0]:e;Math.max(Math.abs(t.clientX-this._lastX),Math.abs(t.clientY-this._lastY))>=Math.floor(this.options.touchStartThreshold/(this.nativeDraggable&&window.devicePixelRatio||1))&&this._disableDelayedDrag()},_disableDelayedDrag:function(){drt&&rit(drt),clearTimeout(this._dragStartTimer),this._disableDelayedDragEvents()},_disableDelayedDragEvents:function(){var e=this.el.ownerDocument;Ont(e,"mouseup",this._disableDelayedDrag),Ont(e,"touchend",this._disableDelayedDrag),Ont(e,"touchcancel",this._disableDelayedDrag),Ont(e,"mousemove",this._delayedDragTouchMoveHandler),Ont(e,"touchmove",this._delayedDragTouchMoveHandler),Ont(e,"pointermove",this._delayedDragTouchMoveHandler)},_triggerDragStart:function(e,t){t=t||"touch"==e.pointerType&&e,!this.nativeDraggable||t?this.options.supportPointer?Mnt(document,"pointermove",this._onTouchMove):Mnt(document,t?"touchmove":"mousemove",this._onTouchMove):(Mnt(drt,"dragend",this),Mnt(frt,"dragstart",this._onDragStart));try{document.selection?sit((function(){document.selection.empty()})):window.getSelection().removeAllRanges()}catch(Rmt){}},_dragStarted:function(e,t){if(Drt=!1,frt&&drt){crt("dragStarted",this,{evt:t}),this.nativeDraggable&&Mnt(document,"dragover",eit);var n=this.options;!e&&Fnt(drt,n.dragClass,!1),Fnt(drt,n.ghostClass,!0),tit.active=this,e&&this._appendGhost(),urt({sortable:this,name:"start",originalEvent:t})}else this._nulling()},_emulateDragOver:function(){if(Crt){this._lastX=Crt.clientX,this._lastY=Crt.clientY,$rt();for(var e=document.elementFromPoint(Crt.clientX,Crt.clientY),t=e;e&&e.shadowRoot&&(e=e.shadowRoot.elementFromPoint(Crt.clientX,Crt.clientY))!==t;)t=e;if(drt.parentNode[nrt]._isOutsideThisEl(e),t)do{if(t[nrt]){if(t[nrt]._onDragOver({clientX:Crt.clientX,clientY:Crt.clientY,target:e,rootEl:t})&&!this.options.dragoverBubble)break}e=t}while(t=t.parentNode);Jrt()}},_onTouchMove:function(e){if(Prt){var t=this.options,n=t.fallbackTolerance,r=t.fallbackOffset,i=e.touches?e.touches[0]:e,o=prt&&Bnt(prt,!0),s=prt&&o&&o.a,a=prt&&o&&o.d,l=Hrt&&Rrt&&Znt(Rrt),c=(i.clientX-Prt.clientX+r.x)/(s||1)+(l?l[0]-zrt[0]:0)/(s||1),u=(i.clientY-Prt.clientY+r.y)/(a||1)+(l?l[1]-zrt[1]:0)/(a||1);if(!tit.active&&!Drt){if(n&&Math.max(Math.abs(i.clientX-this._lastX),Math.abs(i.clientY-this._lastY))<n)return;this._onDragStart(e,!0)}if(prt){o?(o.e+=c-(Art||0),o.f+=u-(krt||0)):o={a:1,b:0,c:0,d:1,e:c,f:u};var d="matrix(".concat(o.a,",").concat(o.b,",").concat(o.c,",").concat(o.d,",").concat(o.e,",").concat(o.f,")");znt(prt,"webkitTransform",d),znt(prt,"mozTransform",d),znt(prt,"msTransform",d),znt(prt,"transform",d),Art=c,krt=u,Crt=i}e.cancelable&&e.preventDefault()}},_appendGhost:function(){if(!prt){var e=this.options.fallbackOnBody?document.body:frt,t=Hnt(drt,!0,Hrt,!0,e),n=this.options;if(Hrt){for(Rrt=e;"static"===znt(Rrt,"position")&&"none"===znt(Rrt,"transform")&&Rrt!==document;)Rrt=Rrt.parentNode;Rrt!==document.body&&Rrt!==document.documentElement?(Rrt===document&&(Rrt=Wnt()),t.top+=Rrt.scrollTop,t.left+=Rrt.scrollLeft):Rrt=Wnt(),zrt=Znt(Rrt)}Fnt(prt=drt.cloneNode(!0),n.ghostClass,!1),Fnt(prt,n.fallbackClass,!0),Fnt(prt,n.dragClass,!0),znt(prt,"transition",""),znt(prt,"transform",""),znt(prt,"box-sizing","border-box"),znt(prt,"margin",0),znt(prt,"top",t.top),znt(prt,"left",t.left),znt(prt,"width",t.width),znt(prt,"height",t.height),znt(prt,"opacity","0.8"),znt(prt,"position",Hrt?"absolute":"fixed"),znt(prt,"zIndex","100000"),znt(prt,"pointerEvents","none"),tit.ghost=prt,e.appendChild(prt),znt(prt,"transform-origin",jrt/parseInt(prt.style.width)*100+"% "+Irt/parseInt(prt.style.height)*100+"%")}},_onDragStart:function(e,t){var n=this,r=e.dataTransfer,i=n.options;crt("dragStart",this,{evt:e}),tit.eventCanceled?this._onDrop():(crt("setupClone",this),tit.eventCanceled||((yrt=trt(drt)).removeAttribute("id"),yrt.draggable=!1,yrt.style["will-change"]="",this._hideClone(),Fnt(yrt,this.options.chosenClass,!1),tit.clone=yrt),n.cloneId=sit((function(){crt("clone",n),tit.eventCanceled||(n.options.removeCloneOnHide||frt.insertBefore(yrt,drt),n._hideClone(),urt({sortable:n,name:"clone"}))})),!t&&Fnt(drt,i.dragClass,!0),t?(Nrt=!0,n._loopId=setInterval(n._emulateDragOver,50)):(Ont(document,"mouseup",n._onDrop),Ont(document,"touchend",n._onDrop),Ont(document,"touchcancel",n._onDrop),r&&(r.effectAllowed="move",i.setData&&i.setData.call(n,r,drt)),Mnt(document,"drop",n),znt(drt,"transform","translateZ(0)")),Drt=!0,n._dragStartId=sit(n._dragStarted.bind(n,t,e)),Mnt(document,"selectstart",n),Grt=!0,jnt&&znt(document.body,"user-select","none"))},_onDragOver:function(e){var t,n,r,i,o=this.el,s=e.target,a=this.options,l=a.group,c=tit.active,u=wrt===l,d=a.sort,h=Ert||c,p=this,f=!1;if(!Brt){if(void 0!==e.preventDefault&&e.cancelable&&e.preventDefault(),s=Nnt(s,a.draggable,o,!0),j("dragOver"),tit.eventCanceled)return f;if(drt.contains(e.target)||s.animated&&s.animatingX&&s.animatingY||p._ignoreWhileAnimating===s)return G(!1);if(Nrt=!1,c&&!a.disabled&&(u?d||(r=hrt!==frt):Ert===this||(this.lastPutMode=wrt.checkPull(this,c,drt,e))&&l.checkPut(this,c,drt,e))){if(i="vertical"===this._getDirection(e,s),t=Hnt(drt),j("dragOverValid"),tit.eventCanceled)return f;if(r)return hrt=frt,I(),this._hideClone(),j("revert"),tit.eventCanceled||(grt?frt.insertBefore(drt,grt):frt.appendChild(drt)),G(!0);var g=Ynt(o,a.draggable);if(!g||function(e,t,n){var r=Hnt(Ynt(n.el,n.options.draggable)),i=10;return t?e.clientX>r.right+i||e.clientX<=r.right&&e.clientY>r.bottom&&e.clientX>=r.left:e.clientX>r.right&&e.clientY>r.top||e.clientX<=r.right&&e.clientY>r.bottom+i}(e,i,this)&&!g.animated){if(g===drt)return G(!1);if(g&&o===e.target&&(s=g),s&&(n=Hnt(s)),!1!==nit(frt,o,drt,t,s,n,e,!!s))return I(),g&&g.nextSibling?o.insertBefore(drt,g.nextSibling):o.appendChild(drt),hrt=o,T(),G(!0)}else if(g&&function(e,t,n){var r=Hnt(Xnt(n.el,0,n.options,!0)),i=10;return t?e.clientX<r.left-i||e.clientY<r.top&&e.clientX<r.right:e.clientY<r.top-i||e.clientY<r.bottom&&e.clientX<r.left}(e,i,this)){var m=Xnt(o,0,a,!0);if(m===drt)return G(!1);if(n=Hnt(s=m),!1!==nit(frt,o,drt,t,s,n,e,!1))return I(),o.insertBefore(drt,m),hrt=o,T(),G(!0)}else if(s.parentNode===o){n=Hnt(s);var y,v,_,b=drt.parentNode!==o,x=!function(e,t,n){var r=n?e.left:e.top,i=n?e.right:e.bottom,o=n?e.width:e.height,s=n?t.left:t.top,a=n?t.right:t.bottom,l=n?t.width:t.height;return r===s||i===a||r+o/2===s+l/2}(drt.animated&&drt.toRect||t,s.animated&&s.toRect||n,i),S=i?"top":"left",w=qnt(s,"top","top")||qnt(drt,"top","top"),E=w?w.scrollTop:void 0;if(Trt!==s&&(v=n[S],Vrt=!1,Frt=!x&&a.invertSwap||b),y=function(e,t,n,r,i,o,s,a){var l=r?e.clientY:e.clientX,c=r?n.height:n.width,u=r?n.top:n.left,d=r?n.bottom:n.right,h=!1;if(!s)if(a&&Ort<c*i){if(!Vrt&&(1===Mrt?l>u+c*o/2:l<d-c*o/2)&&(Vrt=!0),Vrt)h=!0;else if(1===Mrt?l<u+Ort:l>d-Ort)return-Mrt}else if(l>u+c*(1-i)/2&&l<d-c*(1-i)/2)return function(e){return Knt(drt)<Knt(e)?1:-1}(t);if(h=h||s,h&&(l<u+c*o/2||l>d-c*o/2))return l>u+c/2?1:-1;return 0}(e,s,n,i,x?1:a.swapThreshold,null==a.invertedSwapThreshold?a.swapThreshold:a.invertedSwapThreshold,Frt,Trt===s),0!==y){var P=Knt(drt);do{P-=y,_=hrt.children[P]}while(_&&("none"===znt(_,"display")||_===prt))}if(0===y||_===s)return G(!1);Trt=s,Mrt=y;var C=s.nextElementSibling,A=!1,k=nit(frt,o,drt,t,s,n,e,A=1===y);if(!1!==k)return 1!==k&&-1!==k||(A=1===k),Brt=!0,setTimeout(iit,30),I(),A&&!C?o.appendChild(drt):s.parentNode.insertBefore(drt,A?C:s),w&&ert(w,0,E-w.scrollTop),hrt=drt.parentNode,void 0===v||Frt||(Ort=Math.abs(v-Hnt(s)[S])),T(),G(!0)}if(o.contains(drt))return G(!1)}return!1}function j(a,l){crt(a,p,bnt({evt:e,isOwner:u,axis:i?"vertical":"horizontal",revert:r,dragRect:t,targetRect:n,canSort:d,fromSortable:h,target:s,completed:G,onMove:function(n,r){return nit(frt,o,drt,t,n,Hnt(n),e,r)},changed:T},l))}function I(){j("dragOverAnimationCapture"),p.captureAnimationState(),p!==h&&h.captureAnimationState()}function G(t){return j("dragOverCompleted",{insertion:t}),t&&(u?c._hideClone():c._showClone(p),p!==h&&(Fnt(drt,Ert?Ert.options.ghostClass:c.options.ghostClass,!1),Fnt(drt,a.ghostClass,!0)),Ert!==p&&p!==tit.active?Ert=p:p===tit.active&&Ert&&(Ert=null),h===p&&(p._ignoreWhileAnimating=s),p.animateAll((function(){j("dragOverAnimationComplete"),p._ignoreWhileAnimating=null})),p!==h&&(h.animateAll(),h._ignoreWhileAnimating=null)),(s===drt&&!drt.animated||s===o&&!s.animated)&&(Trt=null),a.dragoverBubble||e.rootEl||s===document||(drt.parentNode[nrt]._isOutsideThisEl(e.target),!t&&Qrt(e)),!a.dragoverBubble&&e.stopPropagation&&e.stopPropagation(),f=!0}function T(){brt=Knt(drt),Srt=Knt(drt,a.draggable),urt({sortable:p,name:"change",toEl:o,newIndex:brt,newDraggableIndex:Srt,originalEvent:e})}},_ignoreWhileAnimating:null,_offMoveEvents:function(){Ont(document,"mousemove",this._onTouchMove),Ont(document,"touchmove",this._onTouchMove),Ont(document,"pointermove",this._onTouchMove),Ont(document,"dragover",Qrt),Ont(document,"mousemove",Qrt),Ont(document,"touchmove",Qrt)},_offUpEvents:function(){var e=this.el.ownerDocument;Ont(e,"mouseup",this._onDrop),Ont(e,"touchend",this._onDrop),Ont(e,"pointerup",this._onDrop),Ont(e,"touchcancel",this._onDrop),Ont(document,"selectstart",this)},_onDrop:function(e){var t=this.el,n=this.options;brt=Knt(drt),Srt=Knt(drt,n.draggable),crt("drop",this,{evt:e}),hrt=drt&&drt.parentNode,brt=Knt(drt),Srt=Knt(drt,n.draggable),tit.eventCanceled||(Drt=!1,Frt=!1,Vrt=!1,clearInterval(this._loopId),clearTimeout(this._dragStartTimer),ait(this.cloneId),ait(this._dragStartId),this.nativeDraggable&&(Ont(document,"drop",this),Ont(t,"dragstart",this._onDragStart)),this._offMoveEvents(),this._offUpEvents(),jnt&&znt(document.body,"user-select",""),znt(drt,"transform",""),e&&(Grt&&(e.cancelable&&e.preventDefault(),!n.dropBubble&&e.stopPropagation()),prt&&prt.parentNode&&prt.parentNode.removeChild(prt),(frt===hrt||Ert&&"clone"!==Ert.lastPutMode)&&yrt&&yrt.parentNode&&yrt.parentNode.removeChild(yrt),drt&&(this.nativeDraggable&&Ont(drt,"dragend",this),rit(drt),drt.style["will-change"]="",Grt&&!Drt&&Fnt(drt,Ert?Ert.options.ghostClass:this.options.ghostClass,!1),Fnt(drt,this.options.chosenClass,!1),urt({sortable:this,name:"unchoose",toEl:hrt,newIndex:null,newDraggableIndex:null,originalEvent:e}),frt!==hrt?(brt>=0&&(urt({rootEl:hrt,name:"add",toEl:hrt,fromEl:frt,originalEvent:e}),urt({sortable:this,name:"remove",toEl:hrt,originalEvent:e}),urt({rootEl:hrt,name:"sort",toEl:hrt,fromEl:frt,originalEvent:e}),urt({sortable:this,name:"sort",toEl:hrt,originalEvent:e})),Ert&&Ert.save()):brt!==_rt&&brt>=0&&(urt({sortable:this,name:"update",toEl:hrt,originalEvent:e}),urt({sortable:this,name:"sort",toEl:hrt,originalEvent:e})),tit.active&&(null!=brt&&-1!==brt||(brt=_rt,Srt=xrt),urt({sortable:this,name:"end",toEl:hrt,originalEvent:e}),this.save())))),this._nulling()},_nulling:function(){crt("nulling",this),frt=drt=hrt=prt=grt=yrt=mrt=vrt=Prt=Crt=Grt=brt=Srt=_rt=xrt=Trt=Mrt=Ert=wrt=tit.dragged=tit.ghost=tit.clone=tit.active=null,Urt.forEach((function(e){e.checked=!0})),Urt.length=Art=krt=0},handleEvent:function(e){switch(e.type){case"drop":case"dragend":this._onDrop(e);break;case"dragenter":case"dragover":drt&&(this._onDragOver(e),function(e){e.dataTransfer&&(e.dataTransfer.dropEffect="move");e.cancelable&&e.preventDefault()}(e));break;case"selectstart":e.preventDefault()}},toArray:function(){for(var e,t=[],n=this.el.children,r=0,i=n.length,o=this.options;r<i;r++)Nnt(e=n[r],o.draggable,this.el,!1)&&t.push(e.getAttribute(o.dataIdAttr)||oit(e));return t},sort:function(e,t){var n={},r=this.el;this.toArray().forEach((function(e,t){var i=r.children[t];Nnt(i,this.options.draggable,r,!1)&&(n[e]=i)}),this),t&&this.captureAnimationState(),e.forEach((function(e){n[e]&&(r.removeChild(n[e]),r.appendChild(n[e]))})),t&&this.animateAll()},save:function(){var e=this.options.store;e&&e.set&&e.set(this)},closest:function(e,t){return Nnt(e,t||this.options.draggable,this.el,!1)},option:function(e,t){var n=this.options;if(void 0===t)return n[e];var r=srt.modifyOption(this,e,t);n[e]="undefined"!==typeof r?r:t,"group"===e&&Zrt(n)},destroy:function(){crt("destroy",this);var e=this.el;e[nrt]=null,Ont(e,"mousedown",this._onTapStart),Ont(e,"touchstart",this._onTapStart),Ont(e,"pointerdown",this._onTapStart),this.nativeDraggable&&(Ont(e,"dragover",this),Ont(e,"dragenter",this)),Array.prototype.forEach.call(e.querySelectorAll("[draggable]"),(function(e){e.removeAttribute("draggable")})),this._onDrop(),this._disableDelayedDragEvents(),Lrt.splice(Lrt.indexOf(this.el),1),this.el=e=null},_hideClone:function(){if(!vrt){if(crt("hideClone",this),tit.eventCanceled)return;znt(yrt,"display","none"),this.options.removeCloneOnHide&&yrt.parentNode&&yrt.parentNode.removeChild(yrt),vrt=!0}},_showClone:function(e){if("clone"===e.lastPutMode){if(vrt){if(crt("showClone",this),tit.eventCanceled)return;drt.parentNode!=frt||this.options.group.revertClone?grt?frt.insertBefore(yrt,grt):frt.appendChild(yrt):frt.insertBefore(yrt,drt),this.options.group.revertClone&&this.animate(drt,yrt),znt(yrt,"display",""),vrt=!1}}else this._hideClone()}},Wrt&&Mnt(document,"touchmove",(function(e){(tit.active||Drt)&&e.cancelable&&e.preventDefault()})),tit.utils={on:Mnt,off:Ont,css:znt,find:Unt,is:function(e,t){return!!Nnt(e,t,e,!1)},extend:function(e,t){if(e&&t)for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n]);return e},throttle:Qnt,closest:Nnt,toggleClass:Fnt,clone:trt,index:Knt,nextTick:sit,cancelNextTick:ait,detectDirection:Krt,getChild:Xnt},tit.get=function(e){return e[nrt]},tit.mount=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];t[0].constructor===Array&&(t=t[0]),t.forEach((function(e){if(!e.prototype||!e.prototype.constructor)throw"Sortable: Mounted plugin must be a constructor function, not ".concat({}.toString.call(e));e.utils&&(tit.utils=bnt(bnt({},tit.utils),e.utils)),srt.mount(e)}))},tit.create=function(e,t){return new tit(e,t)},tit.version="1.15.0";var lit,cit,uit,dit,hit,pit,fit=[],git=!1;function mit(){fit.forEach((function(e){clearInterval(e.pid)})),fit=[]}function yit(){clearInterval(pit)}var vit=Qnt((function(e,t,n,r){if(t.scroll){var i,o=(e.touches?e.touches[0]:e).clientX,s=(e.touches?e.touches[0]:e).clientY,a=t.scrollSensitivity,l=t.scrollSpeed,c=Wnt(),u=!1;cit!==n&&(cit=n,mit(),lit=t.scroll,i=t.scrollFn,!0===lit&&(lit=$nt(n,!0)));var d=0,h=lit;do{var p=h,f=Hnt(p),g=f.top,m=f.bottom,y=f.left,v=f.right,_=f.width,b=f.height,x=void 0,S=void 0,w=p.scrollWidth,E=p.scrollHeight,P=znt(p),C=p.scrollLeft,A=p.scrollTop;p===c?(x=_<w&&("auto"===P.overflowX||"scroll"===P.overflowX||"visible"===P.overflowX),S=b<E&&("auto"===P.overflowY||"scroll"===P.overflowY||"visible"===P.overflowY)):(x=_<w&&("auto"===P.overflowX||"scroll"===P.overflowX),S=b<E&&("auto"===P.overflowY||"scroll"===P.overflowY));var k=x&&(Math.abs(v-o)<=a&&C+_<w)-(Math.abs(y-o)<=a&&!!C),j=S&&(Math.abs(m-s)<=a&&A+b<E)-(Math.abs(g-s)<=a&&!!A);if(!fit[d])for(var I=0;I<=d;I++)fit[I]||(fit[I]={});fit[d].vx==k&&fit[d].vy==j&&fit[d].el===p||(fit[d].el=p,fit[d].vx=k,fit[d].vy=j,clearInterval(fit[d].pid),0==k&&0==j||(u=!0,fit[d].pid=setInterval(function(){r&&0===this.layer&&tit.active._onTouchMove(hit);var t=fit[this.layer].vy?fit[this.layer].vy*l:0,n=fit[this.layer].vx?fit[this.layer].vx*l:0;"function"===typeof i&&"continue"!==i.call(tit.dragged.parentNode[nrt],n,t,e,hit,fit[this.layer].el)||ert(fit[this.layer].el,n,t)}.bind({layer:d}),24))),d++}while(t.bubbleScroll&&h!==c&&(h=$nt(h,!1)));git=u}}),30),_it=function(e){var t=e.originalEvent,n=e.putSortable,r=e.dragEl,i=e.activeSortable,o=e.dispatchSortableEvent,s=e.hideGhostForTarget,a=e.unhideGhostForTarget;if(t){var l=n||i;s();var c=t.changedTouches&&t.changedTouches.length?t.changedTouches[0]:t,u=document.elementFromPoint(c.clientX,c.clientY);a(),l&&!l.el.contains(u)&&(o("spill"),this.onSpill({dragEl:r,putSortable:n}))}};function bit(){}function xit(){}bit.prototype={startIndex:null,dragStart:function(e){var t=e.oldDraggableIndex;this.startIndex=t},onSpill:function(e){var t=e.dragEl,n=e.putSortable;this.sortable.captureAnimationState(),n&&n.captureAnimationState();var r=Xnt(this.sortable.el,this.startIndex,this.options);r?this.sortable.el.insertBefore(t,r):this.sortable.el.appendChild(t),this.sortable.animateAll(),n&&n.animateAll()},drop:_it},wnt(bit,{pluginName:"revertOnSpill"}),xit.prototype={onSpill:function(e){var t=e.dragEl,n=e.putSortable||this.sortable;n.captureAnimationState(),t.parentNode&&t.parentNode.removeChild(t),n.animateAll()},drop:_it},wnt(xit,{pluginName:"removeOnSpill"});tit.mount(new function(){function e(){for(var e in this.defaults={scroll:!0,forceAutoScrollFallback:!1,scrollSensitivity:30,scrollSpeed:10,bubbleScroll:!0},this)"_"===e.charAt(0)&&"function"===typeof this[e]&&(this[e]=this[e].bind(this))}return e.prototype={dragStarted:function(e){var t=e.originalEvent;this.sortable.nativeDraggable?Mnt(document,"dragover",this._handleAutoScroll):this.options.supportPointer?Mnt(document,"pointermove",this._handleFallbackAutoScroll):t.touches?Mnt(document,"touchmove",this._handleFallbackAutoScroll):Mnt(document,"mousemove",this._handleFallbackAutoScroll)},dragOverCompleted:function(e){var t=e.originalEvent;this.options.dragOverBubble||t.rootEl||this._handleAutoScroll(t)},drop:function(){this.sortable.nativeDraggable?Ont(document,"dragover",this._handleAutoScroll):(Ont(document,"pointermove",this._handleFallbackAutoScroll),Ont(document,"touchmove",this._handleFallbackAutoScroll),Ont(document,"mousemove",this._handleFallbackAutoScroll)),yit(),mit(),clearTimeout(Lnt),Lnt=void 0},nulling:function(){hit=cit=lit=git=pit=uit=dit=null,fit.length=0},_handleFallbackAutoScroll:function(e){this._handleAutoScroll(e,!0)},_handleAutoScroll:function(e,t){var n=this,r=(e.touches?e.touches[0]:e).clientX,i=(e.touches?e.touches[0]:e).clientY,o=document.elementFromPoint(r,i);if(hit=e,t||this.options.forceAutoScrollFallback||Ant||Cnt||jnt){vit(e,this.options,o,t);var s=$nt(o,!0);!git||pit&&r===uit&&i===dit||(pit&&yit(),pit=setInterval((function(){var o=$nt(document.elementFromPoint(r,i),!0);o!==s&&(s=o,mit()),vit(e,n.options,o,t)}),10),uit=r,dit=i)}else{if(!this.options.bubbleScroll||$nt(o,!0)===Wnt())return void mit();vit(e,this.options,$nt(o,!1),!1)}}},wnt(e,{pluginName:"scroll",initializeByDefault:!0})}),tit.mount(xit,bit);const Sit=tit,wit={lineHeight:"1rem",minHeight:"2.25rem"},Eit=e=>{const{providerId:t,setProviderId:r,setProviderIdForAll:i}=e,[o,s]=(0,n.useState)(null),[a,l]=(0,n.useState)(!1),[c,u]=(0,n.useState)(!1),[d,h]=(0,n.useState)(!1);(0,n.useEffect)((()=>{s(t)}),[t]),(0,n.useEffect)((()=>{const e=setTimeout((()=>{h(!1)}),5e3);return()=>{clearTimeout(e)}}),[d]);const p=(0,n.useCallback)((async()=>{l(!0);try{await r(o)}catch(Rmt){}finally{h(!0),l(!1)}}),[r,o]),f=(0,n.useCallback)((async()=>{u(!0);try{await i(o)}catch(Rmt){}finally{h(!0),u(!1)}}),[i,o]);return(0,Ae.jsxs)(ws,{container:!0,direction:"column",wrap:"nowrap",rowGap:"0.5rem",children:[(0,Ae.jsxs)(ws,{item:!0,container:!0,wrap:"nowrap",gap:"0.5rem",alignItems:"center",children:[(0,Ae.jsx)(ws,{item:!0,width:"50%",children:(0,Ae.jsxs)(yw,{fullWidth:!0,children:[(0,Ae.jsx)(dw,{id:"map-provider-chooser-label",children:"Map Provider"}),(0,Ae.jsxs)(Jw,{labelId:"map-provider-chooser-label",id:"map-provider-chooser",value:null!==o&&void 0!==o?o:"",label:"Map Provider",onChange:e=>{const t=e.target.value;s(""===t?null:e.target.value)},children:[(0,Ae.jsx)(dh,{value:"",children:(0,Ae.jsx)(vu,{fontStyle:"italic",children:"Default"})}),Object.values(mL).map((e=>(0,Ae.jsx)(dh,{value:e.id,children:e.name},e.id)))]})]})}),(0,Ae.jsx)(ev,{onClick:p,color:"success",disabled:a||c,loading:a,children:"OK"}),(0,Ae.jsx)(cu,{title:"This will apply this provider to all existing subAssets",children:(0,Ae.jsx)("div",{children:(0,Ae.jsx)(ev,{onClick:f,color:"primary",style:{...wit},disabled:a||c,loading:c,children:"Apply for all"})})})]}),d&&(0,Ae.jsx)(pM,{severity:"success",children:"Provider saved successfully"})]})},Pit=Zo()((()=>({main:{borderRight:"1px solid ".concat(Lp),rowGap:"1rem"},title:{fontWeight:"bold",textAlign:"center"},overlaysContainer:{padding:"1rem",overflow:"auto"},overlayItemContainer:{padding:"0.5rem 0",borderBottom:"1px solid ".concat(Lp)},overlayCategoryTitle:{color:"black",marginTop:"0.5rem"}}))),Cit=e=>{var t;const{classes:r}=Pit(),{subAsset:i}=e,{assetId:o,asset:s,modifySubAsset:a,goToUpdateView:l,solarSubAssetOverlaysObj:c}=(0,n.useContext)(Ntt),[u,d]=(0,n.useState)(!1),{overlays:h,modifyOverlay:p,removeOverlay:f}=c,g=(0,n.useMemo)((()=>h.filter((t=>{let{subAsset:n}=t;return n.id===e.subAsset.id}))),[h,e.subAsset.id]),m=async t=>{f(t),await(async(e,t,n)=>Ey("/assets/".concat(e,"/").concat(t,"/overlay/").concat(n),{method:"DELETE"}))(o,e.subAsset.id,t)};(0,n.useEffect)((()=>{a(e.subAsset.id,{overlays:h.filter((t=>{let{subAsset:n}=t;return n.id===e.subAsset.id}))})}),[h]);(e=>{(0,n.useEffect)((()=>{var t;const n=document.getElementById(e.elementId);if(!n)return;const r={disabled:null!==(t=e.disabled)&&void 0!==t&&t,onUnchoose:()=>{var t,n;null===(t=e.onDrop)||void 0===t||t.call(e,null!==(n=null===i||void 0===i?void 0:i.toArray())&&void 0!==n?n:[])}};e.animation&&(r.animation=e.animation),e.handle&&(r.handle=e.handle);const i=Sit.create(n,r);return()=>{i.destroy()}}),[e.elementId])})({elementId:"draggable-overlays",disabled:u,animation:150,handle:".drag-handle",onDrop:async t=>{d(!0),t.forEach(((t,n)=>{const r=h.length-n;p(t,e.subAsset.id,{zIndex:r})})),await(async(e,t,n)=>{const r=await Ey("/assets/".concat(e,"/").concat(t,"/overlays/order"),{method:"PATCH",body:JSON.stringify(n)});return 200!==r.status?null:r.json()})(o,e.subAsset.id,t),d(!1)}});const y=(0,n.useCallback)((async function(t){var n;const r=arguments.length>1&&void 0!==arguments[1]&&arguments[1]?null!==(n=null===s||void 0===s?void 0:s.subAssets.map((e=>{let{id:t}=e;return t})))&&void 0!==n?n:[]:[e.subAsset.id];await Promise.all(r.map((e=>{const n={defaultMapProvider:t};return a(e,n),SEe(o,e,n)})))}),[e.subAsset.id,s,o,a]);return(0,Ae.jsxs)(ws,{container:!0,direction:"column",height:"100%",justifyContent:"space-between",wrap:"nowrap",className:r.main,children:[(0,Ae.jsx)(ws,{item:!0,children:(0,Ae.jsx)("h3",{className:r.title,children:"Map provider"})}),(0,Ae.jsx)(ws,{item:!0,paddingX:"1rem",children:(0,Ae.jsx)(Eit,{providerId:null!==(t=null===i||void 0===i?void 0:i.defaultMapProvider)&&void 0!==t?t:null,setProviderId:e=>y(e,!1),setProviderIdForAll:e=>y(e,!0)})}),(0,Ae.jsx)(Qq,{}),(0,Ae.jsx)(ws,{item:!0,children:(0,Ae.jsx)("h3",{className:r.title,children:"Overlays"})}),u&&(0,Ae.jsx)(ws,{item:!0,children:(0,Ae.jsx)($y,{size:20})}),(0,Ae.jsxs)(ws,{item:!0,container:!0,direction:"column",flex:1,wrap:"nowrap",className:r.overlaysContainer,children:[0===g.length&&(0,Ae.jsx)(ws,{item:!0,children:(0,Ae.jsx)(vu,{fontStyle:"italic",children:"No overlays"})}),g.length>0&&(0,Ae.jsx)(ws,{item:!0,marginBottom:"0.5rem",children:(0,Ae.jsx)(vu,{fontStyle:"italic",children:"To the foreground"})}),(0,Ae.jsx)("div",{id:"draggable-overlays",children:g.map((t=>(0,Ae.jsx)(ws,{"data-id":t.id,item:!0,className:r.overlayItemContainer,children:(0,Ae.jsx)(vnt,{assetId:o,subAssetId:e.subAsset.id,draggable:!u,overlay:t,onUpdate:n=>(async(t,n)=>{p(t,e.subAsset.id,n),await lCe(o,e.subAsset.id,t,n)})(t.id,n),onUpdateCalibration:()=>{return n=t.id,void l(tnt.OVERLAY,{subAssetId:e.subAsset.id,overlay:{overlayId:n,type:r}});var n,r},onDelete:()=>m(t.id)})},t.id)))}),g.length>0&&(0,Ae.jsx)(ws,{item:!0,marginTop:"0.5rem",children:(0,Ae.jsx)(vu,{fontStyle:"italic",children:"To the background"})})]}),(0,Ae.jsx)(ws,{item:!0,padding:"1rem",children:(0,Ae.jsx)(ev,{fullWidth:!0,size:"large",variant:"contained",color:"create",onClick:()=>{l(tnt.OVERLAY,{subAssetId:e.subAsset.id})},children:"Add overlay"})})]})};var Ait=function(e,t){return Ait=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},Ait(e,t)};function kit(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}Ait(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}var jit=function(){return jit=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},jit.apply(this,arguments)};function Iit(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]])}return n}function Git(e,t,n,r){return new(n||(n=Promise))((function(i,o){function s(e){try{l(r.next(e))}catch(t){o(t)}}function a(e){try{l(r.throw(e))}catch(t){o(t)}}function l(e){e.done?i(e.value):function(e){return e instanceof n?e:new n((function(t){t(e)}))}(e.value).then(s,a)}l((r=r.apply(e,t||[])).next())}))}function Tit(e,t){var n,r,i,o,s={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:a(0),throw:a(1),return:a(2)},"function"===typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function a(o){return function(a){return function(o){if(n)throw new TypeError("Generator is already executing.");for(;s;)try{if(n=1,r&&(i=2&o[0]?r.return:o[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,o[1])).done)return i;switch(r=0,i&&(o=[2&o[0],i.value]),o[0]){case 0:case 1:i=o;break;case 4:return s.label++,{value:o[1],done:!1};case 5:s.label++,r=o[1],o=[0];continue;case 7:o=s.ops.pop(),s.trys.pop();continue;default:if(!(i=(i=s.trys).length>0&&i[i.length-1])&&(6===o[0]||2===o[0])){s=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]<i[3])){s.label=o[1];break}if(6===o[0]&&s.label<i[1]){s.label=i[1],i=o;break}if(i&&s.label<i[2]){s.label=i[2],s.ops.push(o);break}i[2]&&s.ops.pop(),s.trys.pop();continue}o=t.call(e,s)}catch(a){o=[6,a],r=0}finally{n=i=0}if(5&o[0])throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}([o,a])}}}function Mit(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Oit=function(e,t,n,r,i,o,s,a){if(!e){var l;if(void 0===t)l=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var c=[n,r,i,o,s,a],u=0;(l=new Error(t.replace(/%s/g,(function(){return c[u++]})))).name="Invariant Violation"}throw l.framesToPop=1,l}},Rit=Mit(Oit),Dit=(0,n.createContext)(null);function Nit(e,t,n,r){var i={};return function(e,t){Object.keys(e).forEach((function(n){return t(e[n],n)}))}(e,(function(e,o){var s=n[o];s!==t[o]&&(i[o]=s,e(r,s))})),i}function Lit(e,t,n){var r=function(e,t,n){return Object.keys(e).reduce((function(n,r){return t(n,e[r],r)}),n)}(n,(function(n,r,i){return"function"===typeof e[i]&&n.push(google.maps.event.addListener(t,r,e[i])),n}),[]);return r}function Vit(e){google.maps.event.removeListener(e)}function Fit(e){void 0===e&&(e=[]),e.forEach(Vit)}function zit(e){var t=e.updaterMap,n=e.eventMap,r=e.prevProps,i=e.nextProps,o=e.instance,s=Lit(i,o,n);return Nit(t,r,i,o),s}var Bit={onDblClick:"dblclick",onDragEnd:"dragend",onDragStart:"dragstart",onMapTypeIdChanged:"maptypeid_changed",onMouseMove:"mousemove",onMouseOut:"mouseout",onMouseOver:"mouseover",onMouseDown:"mousedown",onMouseUp:"mouseup",onRightClick:"rightclick",onTilesLoaded:"tilesloaded",onBoundsChanged:"bounds_changed",onCenterChanged:"center_changed",onClick:"click",onDrag:"drag",onHeadingChanged:"heading_changed",onIdle:"idle",onProjectionChanged:"projection_changed",onResize:"resize",onTiltChanged:"tilt_changed",onZoomChanged:"zoom_changed"},Uit={extraMapTypes:function(e,t){t.forEach((function(t,n){e.mapTypes.set(String(n),t)}))},center:function(e,t){e.setCenter(t)},clickableIcons:function(e,t){e.setClickableIcons(t)},heading:function(e,t){e.setHeading(t)},mapTypeId:function(e,t){e.setMapTypeId(t)},options:function(e,t){e.setOptions(t)},streetView:function(e,t){e.setStreetView(t)},tilt:function(e,t){e.setTilt(t)},zoom:function(e,t){e.setZoom(t)}};(0,n.memo)((function(e){var t=e.children,r=e.options,i=e.id,o=e.mapContainerStyle,s=e.mapContainerClassName,a=e.center,l=e.onClick,c=e.onDblClick,u=e.onDrag,d=e.onDragEnd,h=e.onDragStart,p=e.onMouseMove,f=e.onMouseOut,g=e.onMouseOver,m=e.onMouseDown,y=e.onMouseUp,v=e.onRightClick,_=e.onCenterChanged,b=e.onLoad,x=e.onUnmount,S=(0,n.useState)(null),w=S[0],E=S[1],P=(0,n.useRef)(null),C=(0,n.useState)(null),A=C[0],k=C[1],j=(0,n.useState)(null),I=j[0],G=j[1],T=(0,n.useState)(null),M=T[0],O=T[1],R=(0,n.useState)(null),D=R[0],N=R[1],L=(0,n.useState)(null),V=L[0],F=L[1],z=(0,n.useState)(null),B=z[0],U=z[1],W=(0,n.useState)(null),H=W[0],q=W[1],X=(0,n.useState)(null),Y=X[0],K=X[1],Z=(0,n.useState)(null),$=Z[0],J=Z[1],Q=(0,n.useState)(null),ee=Q[0],te=Q[1],ne=(0,n.useState)(null),re=ne[0],ie=ne[1],oe=(0,n.useState)(null),se=oe[0],ae=oe[1];return(0,n.useEffect)((function(){r&&null!==w&&w.setOptions(r)}),[w,r]),(0,n.useEffect)((function(){null!==w&&"undefined"!==typeof a&&w.setCenter(a)}),[w,a]),(0,n.useEffect)((function(){w&&c&&(null!==I&&google.maps.event.removeListener(I),G(google.maps.event.addListener(w,"dblclick",c)))}),[c]),(0,n.useEffect)((function(){w&&d&&(null!==M&&google.maps.event.removeListener(M),O(google.maps.event.addListener(w,"dragend",d)))}),[d]),(0,n.useEffect)((function(){w&&h&&(null!==D&&google.maps.event.removeListener(D),N(google.maps.event.addListener(w,"dragstart",h)))}),[h]),(0,n.useEffect)((function(){w&&m&&(null!==V&&google.maps.event.removeListener(V),F(google.maps.event.addListener(w,"mousedown",m)))}),[m]),(0,n.useEffect)((function(){w&&p&&(null!==B&&google.maps.event.removeListener(B),U(google.maps.event.addListener(w,"mousemove",p)))}),[p]),(0,n.useEffect)((function(){w&&f&&(null!==H&&google.maps.event.removeListener(H),q(google.maps.event.addListener(w,"mouseout",f)))}),[f]),(0,n.useEffect)((function(){w&&g&&(null!==Y&&google.maps.event.removeListener(Y),K(google.maps.event.addListener(w,"mouseover",g)))}),[g]),(0,n.useEffect)((function(){w&&y&&(null!==$&&google.maps.event.removeListener($),J(google.maps.event.addListener(w,"mouseup",y)))}),[y]),(0,n.useEffect)((function(){w&&v&&(null!==ee&&google.maps.event.removeListener(ee),te(google.maps.event.addListener(w,"rightclick",v)))}),[v]),(0,n.useEffect)((function(){w&&l&&(null!==re&&google.maps.event.removeListener(re),ie(google.maps.event.addListener(w,"click",l)))}),[l]),(0,n.useEffect)((function(){w&&u&&(null!==se&&google.maps.event.removeListener(se),ae(google.maps.event.addListener(w,"drag",u)))}),[u]),(0,n.useEffect)((function(){w&&_&&(null!==A&&google.maps.event.removeListener(A),k(google.maps.event.addListener(w,"center_changed",_)))}),[l]),(0,n.useEffect)((function(){var e=null===P.current?null:new google.maps.Map(P.current,r);return E(e),null!==e&&b&&b(e),function(){null!==e&&x&&x(e)}}),[]),(0,Ae.jsx)("div",{id:i,ref:P,style:o,className:s,children:(0,Ae.jsx)(Dit.Provider,{value:w,children:null!==w?t:null})})}));!function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.state={map:null},t.registeredEvents=[],t.mapRef=null,t.getInstance=function(){return null===t.mapRef?null:new google.maps.Map(t.mapRef,t.props.options)},t.panTo=function(e){var n=t.getInstance();n&&n.panTo(e)},t.setMapCallback=function(){null!==t.state.map&&t.props.onLoad&&t.props.onLoad(t.state.map)},t.getRef=function(e){t.mapRef=e},t}kit(t,e),t.prototype.componentDidMount=function(){var e=this.getInstance();this.registeredEvents=zit({updaterMap:Uit,eventMap:Bit,prevProps:{},nextProps:this.props,instance:e}),this.setState((function(){return{map:e}}),this.setMapCallback)},t.prototype.componentDidUpdate=function(e){null!==this.state.map&&(Fit(this.registeredEvents),this.registeredEvents=zit({updaterMap:Uit,eventMap:Bit,prevProps:e,nextProps:this.props,instance:this.state.map}))},t.prototype.componentWillUnmount=function(){null!==this.state.map&&(this.props.onUnmount&&this.props.onUnmount(this.state.map),Fit(this.registeredEvents))},t.prototype.render=function(){return(0,Ae.jsx)("div",{id:this.props.id,ref:this.getRef,style:this.props.mapContainerStyle,className:this.props.mapContainerClassName,children:(0,Ae.jsx)(Dit.Provider,{value:this.state.map,children:null!==this.state.map?this.props.children:null})})}}(n.PureComponent);var Wit="undefined"!==typeof document;function Hit(e){var t=e.url,n=e.id,r=e.nonce;return Wit?new Promise((function(e,i){var o=document.getElementById(n),s=window;if(o){var a=o.getAttribute("data-state");if(o.src===t&&"error"!==a){if("ready"===a)return e(n);var l=s.initMap,c=o.onerror;return s.initMap=function(){l&&l(),e(n)},void(o.onerror=function(e){c&&c(e),i(e)})}o.remove()}var u=document.createElement("script");u.type="text/javascript",u.src=t,u.id=n,u.async=!0,u.nonce=r||"",u.onerror=function(e){u.setAttribute("data-state","error"),i(e)},s.initMap=function(){u.setAttribute("data-state","ready"),e(n)},document.head.appendChild(u)})).catch((function(e){throw console.error("injectScript error: ",e),e})):Promise.reject(new Error("document is undefined"))}function qit(e){var t=e.href;return!(!t||0!==t.indexOf("https://fonts.googleapis.com/css?family=Roboto")&&0!==t.indexOf("https://fonts.googleapis.com/css?family=Google+Sans+Text"))||("style"===e.tagName.toLowerCase()&&e.styleSheet&&e.styleSheet.cssText&&0===e.styleSheet.cssText.replace("\r\n","").indexOf(".gm-style")?(e.styleSheet.cssText="",!0):"style"===e.tagName.toLowerCase()&&e.innerHTML&&0===e.innerHTML.replace("\r\n","").indexOf(".gm-style")?(e.innerHTML="",!0):"style"===e.tagName.toLowerCase()&&!e.styleSheet&&!e.innerHTML)}function Xit(){var e=document.getElementsByTagName("head")[0];if(e){var t=e.insertBefore.bind(e);e.insertBefore=function(n,r){return qit(n)||Reflect.apply(t,e,[n,r]),n};var n=e.appendChild.bind(e);e.appendChild=function(t){return qit(t)||Reflect.apply(n,e,[t]),t}}}function Yit(e){var t=e.googleMapsApiKey,n=e.googleMapsClientId,r=e.version,i=void 0===r?"weekly":r,o=e.language,s=e.region,a=e.libraries,l=e.channel,c=e.mapIds,u=e.authReferrerPolicy,d=[];return Rit(t&&n||!(t&&n),"You need to specify either googleMapsApiKey or googleMapsClientId for @react-google-maps/api load script to work. You cannot use both at the same time."),t?d.push("key=".concat(t)):n&&d.push("client=".concat(n)),i&&d.push("v=".concat(i)),o&&d.push("language=".concat(o)),s&&d.push("region=".concat(s)),a&&a.length&&d.push("libraries=".concat(a.sort().join(","))),l&&d.push("channel=".concat(l)),c&&c.length&&d.push("map_ids=".concat(c.join(","))),u&&d.push("auth_referrer_policy=".concat(u)),d.push("callback=initMap"),"https://maps.googleapis.com/maps/api/js?".concat(d.join("&"))}var Kit=!1;function Zit(){return(0,Ae.jsx)("div",{children:"Loading..."})}var $it,Jit={id:"script-loader",version:"weekly"};!function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.check=(0,n.createRef)(),t.state={loaded:!1},t.cleanupCallback=function(){delete window.google.maps,t.injectScript()},t.isCleaningUp=function(){return Git(t,void 0,void 0,(function(){function e(e){if(Kit){if(Wit)var t=window.setInterval((function(){Kit||(window.clearInterval(t),e())}),1)}else e()}return Tit(this,(function(t){return[2,new Promise(e)]}))}))},t.cleanup=function(){Kit=!0;var e=document.getElementById(t.props.id);e&&e.parentNode&&e.parentNode.removeChild(e),Array.prototype.slice.call(document.getElementsByTagName("script")).filter((function(e){return"string"===typeof e.src&&e.src.includes("maps.googleapis")})).forEach((function(e){e.parentNode&&e.parentNode.removeChild(e)})),Array.prototype.slice.call(document.getElementsByTagName("link")).filter((function(e){return"https://fonts.googleapis.com/css?family=Roboto:300,400,500,700|Google+Sans"===e.href})).forEach((function(e){e.parentNode&&e.parentNode.removeChild(e)})),Array.prototype.slice.call(document.getElementsByTagName("style")).filter((function(e){return void 0!==e.innerText&&e.innerText.length>0&&e.innerText.includes(".gm-")})).forEach((function(e){e.parentNode&&e.parentNode.removeChild(e)}))},t.injectScript=function(){t.props.preventGoogleFontsLoading&&Xit(),Rit(!!t.props.id,'LoadScript requires "id" prop to be a string: %s',t.props.id),Hit({id:t.props.id,nonce:t.props.nonce,url:Yit(t.props)}).then((function(){t.props.onLoad&&t.props.onLoad(),t.setState((function(){return{loaded:!0}}))})).catch((function(e){t.props.onError&&t.props.onError(e),console.error("\n          There has been an Error with loading Google Maps API script, please check that you provided correct google API key (".concat(t.props.googleMapsApiKey||"-",") or Client ID (").concat(t.props.googleMapsClientId||"-",") to <LoadScript />\n          Otherwise it is a Network issue.\n        "))}))},t}kit(t,e),t.prototype.componentDidMount=function(){if(Wit){if(window.google&&window.google.maps&&!Kit)return void console.error("google api is already presented");this.isCleaningUp().then(this.injectScript).catch((function(e){console.error("Error at injecting script after cleaning up: ",e)}))}},t.prototype.componentDidUpdate=function(e){this.props.libraries!==e.libraries&&console.warn("Performance warning! LoadScript has been reloaded unintentionally! You should not pass `libraries` prop as new array. Please keep an array of libraries as static class property for Components and PureComponents, or just a const variable outside of component, or somewhere in config files or ENV variables"),Wit&&e.language!==this.props.language&&(this.cleanup(),this.setState((function(){return{loaded:!1}}),this.cleanupCallback))},t.prototype.componentWillUnmount=function(){var e=this;if(Wit){this.cleanup();window.setTimeout((function(){e.check.current||(delete window.google,Kit=!1)}),1),this.props.onUnmount&&this.props.onUnmount()}},t.prototype.render=function(){return(0,Ae.jsxs)(Ae.Fragment,{children:[(0,Ae.jsx)("div",{ref:this.check}),this.state.loaded?this.props.children:this.props.loadingElement||(0,Ae.jsx)(Zit,{})]})},t.defaultProps=Jit}(n.PureComponent);var Qit=(0,Ae.jsx)(Zit,{});(0,n.memo)((function(e){var t=e.loadingElement,r=e.onLoad,i=e.onError,o=e.onUnmount,s=e.children,a=function(e){var t=e.id,r=void 0===t?Jit.id:t,i=e.version,o=void 0===i?Jit.version:i,s=e.nonce,a=e.googleMapsApiKey,l=e.googleMapsClientId,c=e.language,u=e.region,d=e.libraries,h=e.preventGoogleFontsLoading,p=e.channel,f=e.mapIds,g=e.authReferrerPolicy,m=(0,n.useRef)(!1),y=(0,n.useState)(!1),v=y[0],_=y[1],b=(0,n.useState)(void 0),x=b[0],S=b[1];(0,n.useEffect)((function(){return m.current=!0,function(){m.current=!1}}),[]),(0,n.useEffect)((function(){Wit&&h&&Xit()}),[h]),(0,n.useEffect)((function(){v&&Rit(!!window.google,"useLoadScript was marked as loaded, but window.google is not present. Something went wrong.")}),[v]);var w=Yit({version:o,googleMapsApiKey:a,googleMapsClientId:l,language:c,region:u,libraries:d,channel:p,mapIds:f,authReferrerPolicy:g});(0,n.useEffect)((function(){function e(){m.current&&(_(!0),$it=w)}Wit&&(window.google&&window.google.maps&&$it===w?e():Hit({id:r,url:w,nonce:s}).then(e).catch((function(e){m.current&&S(e),console.warn("\n        There has been an Error with loading Google Maps API script, please check that you provided correct google API key (".concat(a||"-",") or Client ID (").concat(l||"-",")\n        Otherwise it is a Network issue.\n      ")),console.error(e)})))}),[r,w,s]);var E=(0,n.useRef)();return(0,n.useEffect)((function(){E.current&&d!==E.current&&console.warn("Performance warning! LoadScript has been reloaded unintentionally! You should not pass `libraries` prop as new array. Please keep an array of libraries as static class property for Components and PureComponents, or just a const variable outside of component, or somewhere in config files or ENV variables"),E.current=d}),[d]),{isLoaded:v,loadError:x,url:w}}(Iit(e,["loadingElement","onLoad","onError","onUnmount","children"])),l=a.isLoaded,c=a.loadError;return(0,n.useEffect)((function(){l&&"function"===typeof r&&r()}),[l,r]),(0,n.useEffect)((function(){c&&"function"===typeof i&&i(c)}),[c,i]),(0,n.useEffect)((function(){return function(){o&&o()}}),[o]),l?s:t||Qit}));function eot(e,t,n,r){return new(n||(n=Promise))((function(i,o){function s(e){try{l(r.next(e))}catch(t){o(t)}}function a(e){try{l(r.throw(e))}catch(t){o(t)}}function l(e){e.done?i(e.value):function(e){return e instanceof n?e:new n((function(t){t(e)}))}(e.value).then(s,a)}l((r=r.apply(e,t||[])).next())}))}var tot=function e(t,n){if(t===n)return!0;if(t&&n&&"object"==typeof t&&"object"==typeof n){if(t.constructor!==n.constructor)return!1;var r,i,o;if(Array.isArray(t)){if((r=t.length)!=n.length)return!1;for(i=r;0!==i--;)if(!e(t[i],n[i]))return!1;return!0}if(t.constructor===RegExp)return t.source===n.source&&t.flags===n.flags;if(t.valueOf!==Object.prototype.valueOf)return t.valueOf()===n.valueOf();if(t.toString!==Object.prototype.toString)return t.toString()===n.toString();if((r=(o=Object.keys(t)).length)!==Object.keys(n).length)return!1;for(i=r;0!==i--;)if(!Object.prototype.hasOwnProperty.call(n,o[i]))return!1;for(i=r;0!==i--;){var s=o[i];if(!e(t[s],n[s]))return!1}return!0}return t!==t&&n!==n};const not="__googleMapsScriptId";var rot;!function(e){e[e.INITIALIZED=0]="INITIALIZED",e[e.LOADING=1]="LOADING",e[e.SUCCESS=2]="SUCCESS",e[e.FAILURE=3]="FAILURE"}(rot||(rot={}));class iot{constructor(e){let{apiKey:t,authReferrerPolicy:n,channel:r,client:i,id:o=not,language:s,libraries:a=[],mapIds:l,nonce:c,region:u,retries:d=3,url:h="https://maps.googleapis.com/maps/api/js",version:p}=e;if(this.callbacks=[],this.done=!1,this.loading=!1,this.errors=[],this.apiKey=t,this.authReferrerPolicy=n,this.channel=r,this.client=i,this.id=o||not,this.language=s,this.libraries=a,this.mapIds=l,this.nonce=c,this.region=u,this.retries=d,this.url=h,this.version=p,iot.instance){if(!tot(this.options,iot.instance.options))throw new Error("Loader must not be called again with different options. ".concat(JSON.stringify(this.options)," !== ").concat(JSON.stringify(iot.instance.options)));return iot.instance}iot.instance=this}get options(){return{version:this.version,apiKey:this.apiKey,channel:this.channel,client:this.client,id:this.id,libraries:this.libraries,language:this.language,region:this.region,mapIds:this.mapIds,nonce:this.nonce,url:this.url,authReferrerPolicy:this.authReferrerPolicy}}get status(){return this.errors.length?rot.FAILURE:this.done?rot.SUCCESS:this.loading?rot.LOADING:rot.INITIALIZED}get failed(){return this.done&&!this.loading&&this.errors.length>=this.retries+1}createUrl(){let e=this.url;return e+="?callback=__googleMapsCallback",this.apiKey&&(e+="&key=".concat(this.apiKey)),this.channel&&(e+="&channel=".concat(this.channel)),this.client&&(e+="&client=".concat(this.client)),this.libraries.length>0&&(e+="&libraries=".concat(this.libraries.join(","))),this.language&&(e+="&language=".concat(this.language)),this.region&&(e+="&region=".concat(this.region)),this.version&&(e+="&v=".concat(this.version)),this.mapIds&&(e+="&map_ids=".concat(this.mapIds.join(","))),this.authReferrerPolicy&&(e+="&auth_referrer_policy=".concat(this.authReferrerPolicy)),e}deleteScript(){const e=document.getElementById(this.id);e&&e.remove()}load(){return this.loadPromise()}loadPromise(){return new Promise(((e,t)=>{this.loadCallback((n=>{n?t(n.error):e(window.google)}))}))}importLibrary(e){return this.execute(),google.maps.importLibrary(e)}loadCallback(e){this.callbacks.push(e),this.execute()}setScript(){var e,t;if(document.getElementById(this.id))return void this.callback();const n={key:this.apiKey,channel:this.channel,client:this.client,libraries:this.libraries.length&&this.libraries,v:this.version,mapIds:this.mapIds,language:this.language,region:this.region,authReferrerPolicy:this.authReferrerPolicy};Object.keys(n).forEach((e=>!n[e]&&delete n[e])),(null===(t=null===(e=null===window||void 0===window?void 0:window.google)||void 0===e?void 0:e.maps)||void 0===t?void 0:t.importLibrary)||(e=>{let t,n,r,i="The Google Maps JavaScript API",o="google",s="importLibrary",a="__ib__",l=document,c=window;c=c[o]||(c[o]={});const u=c.maps||(c.maps={}),d=new Set,h=new URLSearchParams,p=()=>t||(t=new Promise(((s,c)=>eot(this,void 0,void 0,(function*(){var p;for(r in yield n=l.createElement("script"),n.id=this.id,h.set("libraries",[...d]+""),e)h.set(r.replace(/[A-Z]/g,(e=>"_"+e[0].toLowerCase())),e[r]);h.set("callback",o+".maps."+a),n.src=this.url+"?"+h,u[a]=s,n.onerror=()=>t=c(Error(i+" could not load.")),n.nonce=this.nonce||(null===(p=l.querySelector("script[nonce]"))||void 0===p?void 0:p.nonce)||"",l.head.append(n)})))));u[s]?console.warn(i+" only loads once. Ignoring:",e):u[s]=function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return d.add(e)&&p().then((()=>u[s](e,...n)))}})(n);const r=this.libraries.map((e=>this.importLibrary(e)));r.length||r.push(this.importLibrary("core")),Promise.all(r).then((()=>this.callback()),(e=>{const t=new ErrorEvent("error",{error:e});this.loadErrorCallback(t)}))}reset(){this.deleteScript(),this.done=!1,this.loading=!1,this.errors=[],this.onerrorEvent=null}resetIfRetryingFailed(){this.failed&&this.reset()}loadErrorCallback(e){if(this.errors.push(e),this.errors.length<=this.retries){const e=this.errors.length*Math.pow(2,this.errors.length);console.error("Failed to load Google Maps script, retrying in ".concat(e," ms.")),setTimeout((()=>{this.deleteScript(),this.setScript()}),e)}else this.onerrorEvent=e,this.callback()}callback(){this.done=!0,this.loading=!1,this.callbacks.forEach((e=>{e(this.onerrorEvent)})),this.callbacks=[]}execute(){if(this.resetIfRetryingFailed(),this.done)this.callback();else{if(window.google&&window.google.maps&&window.google.maps.version)return console.warn("Google Maps already loaded outside @googlemaps/js-api-loader.This may result in undesirable behavior as options and script parameters may not match."),void this.callback();this.loading||(this.loading=!0,this.setScript())}}}var oot=["maps"];var sot={},aot={options:function(e,t){e.setOptions(t)}};(0,n.memo)((function(e){var t=e.options,r=e.onLoad,i=e.onUnmount,o=(0,n.useContext)(Dit),s=(0,n.useState)(null),a=s[0],l=s[1];return(0,n.useEffect)((function(){null!==a&&a.setMap(o)}),[o]),(0,n.useEffect)((function(){t&&null!==a&&a.setOptions(t)}),[a,t]),(0,n.useEffect)((function(){var e=new google.maps.TrafficLayer(jit(jit({},t||{}),{map:o}));return l(e),r&&r(e),function(){null!==a&&(i&&i(a),a.setMap(null))}}),[]),null})),function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.state={trafficLayer:null},t.setTrafficLayerCallback=function(){null!==t.state.trafficLayer&&t.props.onLoad&&t.props.onLoad(t.state.trafficLayer)},t.registeredEvents=[],t}kit(t,e),t.prototype.componentDidMount=function(){var e=new google.maps.TrafficLayer(jit(jit({},this.props.options||{}),{map:this.context}));this.registeredEvents=zit({updaterMap:aot,eventMap:sot,prevProps:{},nextProps:this.props,instance:e}),this.setState((function(){return{trafficLayer:e}}),this.setTrafficLayerCallback)},t.prototype.componentDidUpdate=function(e){null!==this.state.trafficLayer&&(Fit(this.registeredEvents),this.registeredEvents=zit({updaterMap:aot,eventMap:sot,prevProps:e,nextProps:this.props,instance:this.state.trafficLayer}))},t.prototype.componentWillUnmount=function(){null!==this.state.trafficLayer&&(this.props.onUnmount&&this.props.onUnmount(this.state.trafficLayer),Fit(this.registeredEvents),this.state.trafficLayer.setMap(null))},t.prototype.render=function(){return null},t.contextType=Dit}(n.PureComponent);(0,n.memo)((function(e){var t=e.onLoad,r=e.onUnmount,i=(0,n.useContext)(Dit),o=(0,n.useState)(null),s=o[0],a=o[1];return(0,n.useEffect)((function(){null!==s&&s.setMap(i)}),[i]),(0,n.useEffect)((function(){var e=new google.maps.BicyclingLayer;return a(e),e.setMap(i),t&&t(e),function(){null!==e&&(r&&r(e),e.setMap(null))}}),[]),null})),function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.state={bicyclingLayer:null},t.setBicyclingLayerCallback=function(){null!==t.state.bicyclingLayer&&(t.state.bicyclingLayer.setMap(t.context),t.props.onLoad&&t.props.onLoad(t.state.bicyclingLayer))},t}kit(t,e),t.prototype.componentDidMount=function(){var e=new google.maps.BicyclingLayer;this.setState((function(){return{bicyclingLayer:e}}),this.setBicyclingLayerCallback)},t.prototype.componentWillUnmount=function(){null!==this.state.bicyclingLayer&&(this.props.onUnmount&&this.props.onUnmount(this.state.bicyclingLayer),this.state.bicyclingLayer.setMap(null))},t.prototype.render=function(){return null},t.contextType=Dit}(n.PureComponent);(0,n.memo)((function(e){var t=e.onLoad,r=e.onUnmount,i=(0,n.useContext)(Dit),o=(0,n.useState)(null),s=o[0],a=o[1];return(0,n.useEffect)((function(){null!==s&&s.setMap(i)}),[i]),(0,n.useEffect)((function(){var e=new google.maps.TransitLayer;return a(e),e.setMap(i),t&&t(e),function(){null!==s&&(r&&r(s),s.setMap(null))}}),[]),null})),function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.state={transitLayer:null},t.setTransitLayerCallback=function(){null!==t.state.transitLayer&&(t.state.transitLayer.setMap(t.context),t.props.onLoad&&t.props.onLoad(t.state.transitLayer))},t}kit(t,e),t.prototype.componentDidMount=function(){var e=new google.maps.TransitLayer;this.setState((function(){return{transitLayer:e}}),this.setTransitLayerCallback)},t.prototype.componentWillUnmount=function(){null!==this.state.transitLayer&&(this.props.onUnmount&&this.props.onUnmount(this.state.transitLayer),this.state.transitLayer.setMap(null))},t.prototype.render=function(){return null},t.contextType=Dit}(n.PureComponent);var lot={onCircleComplete:"circlecomplete",onMarkerComplete:"markercomplete",onOverlayComplete:"overlaycomplete",onPolygonComplete:"polygoncomplete",onPolylineComplete:"polylinecomplete",onRectangleComplete:"rectanglecomplete"},cot={drawingMode:function(e,t){e.setDrawingMode(t)},options:function(e,t){e.setOptions(t)}};(0,n.memo)((function(e){var t=e.options,r=e.drawingMode,i=e.onCircleComplete,o=e.onMarkerComplete,s=e.onOverlayComplete,a=e.onPolygonComplete,l=e.onPolylineComplete,c=e.onRectangleComplete,u=e.onLoad,d=e.onUnmount,h=(0,n.useContext)(Dit),p=(0,n.useState)(null),f=p[0],g=p[1],m=(0,n.useState)(null),y=m[0],v=m[1],_=(0,n.useState)(null),b=_[0],x=_[1],S=(0,n.useState)(null),w=S[0],E=S[1],P=(0,n.useState)(null),C=P[0],A=P[1],k=(0,n.useState)(null),j=k[0],I=k[1],G=(0,n.useState)(null),T=G[0],M=G[1];return(0,n.useEffect)((function(){null!==f&&f.setMap(h)}),[h]),(0,n.useEffect)((function(){t&&null!==f&&f.setOptions(t)}),[f,t]),(0,n.useEffect)((function(){null!==f&&f.setDrawingMode(null!==r&&void 0!==r?r:null)}),[f,r]),(0,n.useEffect)((function(){f&&i&&(null!==y&&google.maps.event.removeListener(y),v(google.maps.event.addListener(f,"circlecomplete",i)))}),[f,i]),(0,n.useEffect)((function(){f&&o&&(null!==b&&google.maps.event.removeListener(b),x(google.maps.event.addListener(f,"markercomplete",o)))}),[f,o]),(0,n.useEffect)((function(){f&&s&&(null!==w&&google.maps.event.removeListener(w),E(google.maps.event.addListener(f,"overlaycomplete",s)))}),[f,s]),(0,n.useEffect)((function(){f&&a&&(null!==C&&google.maps.event.removeListener(C),A(google.maps.event.addListener(f,"polygoncomplete",a)))}),[f,a]),(0,n.useEffect)((function(){f&&l&&(null!==j&&google.maps.event.removeListener(j),I(google.maps.event.addListener(f,"polylinecomplete",l)))}),[f,l]),(0,n.useEffect)((function(){f&&c&&(null!==T&&google.maps.event.removeListener(T),M(google.maps.event.addListener(f,"rectanglecomplete",c)))}),[f,c]),(0,n.useEffect)((function(){Rit(!!google.maps.drawing,"Did you include prop libraries={['drawing']} in the URL? %s",google.maps.drawing);var e=new google.maps.drawing.DrawingManager(jit(jit({},t||{}),{map:h}));return r&&e.setDrawingMode(r),i&&v(google.maps.event.addListener(e,"circlecomplete",i)),o&&x(google.maps.event.addListener(e,"markercomplete",o)),s&&E(google.maps.event.addListener(e,"overlaycomplete",s)),a&&A(google.maps.event.addListener(e,"polygoncomplete",a)),l&&I(google.maps.event.addListener(e,"polylinecomplete",l)),c&&M(google.maps.event.addListener(e,"rectanglecomplete",c)),g(e),u&&u(e),function(){null!==f&&(y&&google.maps.event.removeListener(y),b&&google.maps.event.removeListener(b),w&&google.maps.event.removeListener(w),C&&google.maps.event.removeListener(C),j&&google.maps.event.removeListener(j),T&&google.maps.event.removeListener(T),d&&d(f),f.setMap(null))}}),[]),null})),function(e){function t(t){var n=e.call(this,t)||this;return n.registeredEvents=[],n.state={drawingManager:null},n.setDrawingManagerCallback=function(){null!==n.state.drawingManager&&n.props.onLoad&&n.props.onLoad(n.state.drawingManager)},Rit(!!google.maps.drawing,"Did you include prop libraries={['drawing']} in the URL? %s",google.maps.drawing),n}kit(t,e),t.prototype.componentDidMount=function(){var e=new google.maps.drawing.DrawingManager(jit(jit({},this.props.options||{}),{map:this.context}));this.registeredEvents=zit({updaterMap:cot,eventMap:lot,prevProps:{},nextProps:this.props,instance:e}),this.setState((function(){return{drawingManager:e}}),this.setDrawingManagerCallback)},t.prototype.componentDidUpdate=function(e){null!==this.state.drawingManager&&(Fit(this.registeredEvents),this.registeredEvents=zit({updaterMap:cot,eventMap:lot,prevProps:e,nextProps:this.props,instance:this.state.drawingManager}))},t.prototype.componentWillUnmount=function(){null!==this.state.drawingManager&&(this.props.onUnmount&&this.props.onUnmount(this.state.drawingManager),Fit(this.registeredEvents),this.state.drawingManager.setMap(null))},t.prototype.render=function(){return null},t.contextType=Dit}(n.PureComponent);var uot={onAnimationChanged:"animation_changed",onClick:"click",onClickableChanged:"clickable_changed",onCursorChanged:"cursor_changed",onDblClick:"dblclick",onDrag:"drag",onDragEnd:"dragend",onDraggableChanged:"draggable_changed",onDragStart:"dragstart",onFlatChanged:"flat_changed",onIconChanged:"icon_changed",onMouseDown:"mousedown",onMouseOut:"mouseout",onMouseOver:"mouseover",onMouseUp:"mouseup",onPositionChanged:"position_changed",onRightClick:"rightclick",onShapeChanged:"shape_changed",onTitleChanged:"title_changed",onVisibleChanged:"visible_changed",onZindexChanged:"zindex_changed"},dot={animation:function(e,t){e.setAnimation(t)},clickable:function(e,t){e.setClickable(t)},cursor:function(e,t){e.setCursor(t)},draggable:function(e,t){e.setDraggable(t)},icon:function(e,t){e.setIcon(t)},label:function(e,t){e.setLabel(t)},map:function(e,t){e.setMap(t)},opacity:function(e,t){e.setOpacity(t)},options:function(e,t){e.setOptions(t)},position:function(e,t){e.setPosition(t)},shape:function(e,t){e.setShape(t)},title:function(e,t){e.setTitle(t)},visible:function(e,t){e.setVisible(t)},zIndex:function(e,t){e.setZIndex(t)}},hot={};(0,n.memo)((function(e){var t=e.position,r=e.options,i=e.clusterer,o=e.noClustererRedraw,s=e.children,a=e.draggable,l=e.visible,c=e.animation,u=e.clickable,d=e.cursor,h=e.icon,p=e.label,f=e.opacity,g=e.shape,m=e.title,y=e.zIndex,v=e.onClick,_=e.onDblClick,b=e.onDrag,x=e.onDragEnd,S=e.onDragStart,w=e.onMouseOut,E=e.onMouseOver,P=e.onMouseUp,C=e.onMouseDown,A=e.onRightClick,k=e.onClickableChanged,j=e.onCursorChanged,I=e.onAnimationChanged,G=e.onDraggableChanged,T=e.onFlatChanged,M=e.onIconChanged,O=e.onPositionChanged,R=e.onShapeChanged,D=e.onTitleChanged,N=e.onVisibleChanged,L=e.onZindexChanged,V=e.onLoad,F=e.onUnmount,z=(0,n.useContext)(Dit),B=(0,n.useState)(null),U=B[0],W=B[1],H=(0,n.useState)(null),q=H[0],X=H[1],Y=(0,n.useState)(null),K=Y[0],Z=Y[1],$=(0,n.useState)(null),J=$[0],Q=$[1],ee=(0,n.useState)(null),te=ee[0],ne=ee[1],re=(0,n.useState)(null),ie=re[0],oe=re[1],se=(0,n.useState)(null),ae=se[0],le=se[1],ce=(0,n.useState)(null),ue=ce[0],de=ce[1],he=(0,n.useState)(null),pe=he[0],fe=he[1],ge=(0,n.useState)(null),me=ge[0],ye=ge[1],ve=(0,n.useState)(null),_e=ve[0],be=ve[1],xe=(0,n.useState)(null),Se=xe[0],we=xe[1],Ee=(0,n.useState)(null),Pe=Ee[0],Ce=Ee[1],ke=(0,n.useState)(null),je=ke[0],Ie=ke[1],Ge=(0,n.useState)(null),Te=Ge[0],Me=Ge[1],Oe=(0,n.useState)(null),Re=Oe[0],De=Oe[1],Ne=(0,n.useState)(null),Le=Ne[0],Ve=Ne[1],Fe=(0,n.useState)(null),ze=Fe[0],Be=Fe[1],Ue=(0,n.useState)(null),We=Ue[0],He=Ue[1],qe=(0,n.useState)(null),Xe=qe[0],Ye=qe[1],Ke=(0,n.useState)(null),Ze=Ke[0],$e=Ke[1],Je=(0,n.useState)(null),Qe=Je[0],et=Je[1];(0,n.useEffect)((function(){null!==U&&U.setMap(z)}),[z]),(0,n.useEffect)((function(){"undefined"!==typeof r&&null!==U&&U.setOptions(r)}),[U,r]),(0,n.useEffect)((function(){"undefined"!==typeof a&&null!==U&&U.setDraggable(a)}),[U,a]),(0,n.useEffect)((function(){t&&null!==U&&U.setPosition(t)}),[U,t]),(0,n.useEffect)((function(){"undefined"!==typeof l&&null!==U&&U.setVisible(l)}),[U,l]),(0,n.useEffect)((function(){null===U||void 0===U||U.setAnimation(c)}),[U,c]),(0,n.useEffect)((function(){U&&void 0!==u&&U.setClickable(u)}),[U,u]),(0,n.useEffect)((function(){U&&void 0!==d&&U.setCursor(d)}),[U,d]),(0,n.useEffect)((function(){U&&void 0!==h&&U.setIcon(h)}),[U,h]),(0,n.useEffect)((function(){U&&void 0!==p&&U.setLabel(p)}),[U,p]),(0,n.useEffect)((function(){U&&void 0!==f&&U.setOpacity(f)}),[U,f]),(0,n.useEffect)((function(){U&&void 0!==g&&U.setShape(g)}),[U,g]),(0,n.useEffect)((function(){U&&void 0!==m&&U.setTitle(m)}),[U,m]),(0,n.useEffect)((function(){U&&void 0!==y&&U.setZIndex(y)}),[U,y]),(0,n.useEffect)((function(){U&&_&&(null!==q&&google.maps.event.removeListener(q),X(google.maps.event.addListener(U,"dblclick",_)))}),[_]),(0,n.useEffect)((function(){U&&x&&(null!==K&&google.maps.event.removeListener(K),Z(google.maps.event.addListener(U,"dragend",x)))}),[x]),(0,n.useEffect)((function(){U&&S&&(null!==J&&google.maps.event.removeListener(J),Q(google.maps.event.addListener(U,"dragstart",S)))}),[S]),(0,n.useEffect)((function(){U&&C&&(null!==te&&google.maps.event.removeListener(te),ne(google.maps.event.addListener(U,"mousedown",C)))}),[C]),(0,n.useEffect)((function(){U&&w&&(null!==ie&&google.maps.event.removeListener(ie),oe(google.maps.event.addListener(U,"mouseout",w)))}),[w]),(0,n.useEffect)((function(){U&&E&&(null!==ae&&google.maps.event.removeListener(ae),le(google.maps.event.addListener(U,"mouseover",E)))}),[E]),(0,n.useEffect)((function(){U&&P&&(null!==ue&&google.maps.event.removeListener(ue),de(google.maps.event.addListener(U,"mouseup",P)))}),[P]),(0,n.useEffect)((function(){U&&A&&(null!==pe&&google.maps.event.removeListener(pe),fe(google.maps.event.addListener(U,"rightclick",A)))}),[A]),(0,n.useEffect)((function(){U&&v&&(null!==me&&google.maps.event.removeListener(me),ye(google.maps.event.addListener(U,"click",v)))}),[v]),(0,n.useEffect)((function(){U&&b&&(null!==_e&&google.maps.event.removeListener(_e),be(google.maps.event.addListener(U,"drag",b)))}),[b]),(0,n.useEffect)((function(){U&&k&&(null!==Se&&google.maps.event.removeListener(Se),we(google.maps.event.addListener(U,"clickable_changed",k)))}),[k]),(0,n.useEffect)((function(){U&&j&&(null!==Pe&&google.maps.event.removeListener(Pe),Ce(google.maps.event.addListener(U,"cursor_changed",j)))}),[j]),(0,n.useEffect)((function(){U&&I&&(null!==je&&google.maps.event.removeListener(je),Ie(google.maps.event.addListener(U,"animation_changed",I)))}),[I]),(0,n.useEffect)((function(){U&&G&&(null!==Te&&google.maps.event.removeListener(Te),Me(google.maps.event.addListener(U,"draggable_changed",G)))}),[G]),(0,n.useEffect)((function(){U&&T&&(null!==Re&&google.maps.event.removeListener(Re),De(google.maps.event.addListener(U,"flat_changed",T)))}),[T]),(0,n.useEffect)((function(){U&&M&&(null!==Le&&google.maps.event.removeListener(Le),Ve(google.maps.event.addListener(U,"icon_changed",M)))}),[M]),(0,n.useEffect)((function(){U&&O&&(null!==ze&&google.maps.event.removeListener(ze),Be(google.maps.event.addListener(U,"position_changed",O)))}),[O]),(0,n.useEffect)((function(){U&&R&&(null!==We&&google.maps.event.removeListener(We),He(google.maps.event.addListener(U,"shape_changed",R)))}),[R]),(0,n.useEffect)((function(){U&&D&&(null!==Xe&&google.maps.event.removeListener(Xe),Ye(google.maps.event.addListener(U,"title_changed",D)))}),[D]),(0,n.useEffect)((function(){U&&N&&(null!==Ze&&google.maps.event.removeListener(Ze),$e(google.maps.event.addListener(U,"visible_changed",N)))}),[N]),(0,n.useEffect)((function(){U&&L&&(null!==Qe&&google.maps.event.removeListener(Qe),et(google.maps.event.addListener(U,"zindex_changed",L)))}),[L]),(0,n.useEffect)((function(){var e=jit(jit(jit({},r||hot),i?hot:{map:z}),{position:t}),n=new google.maps.Marker(e);return i?i.addMarker(n,!!o):n.setMap(z),t&&n.setPosition(t),"undefined"!==typeof l&&n.setVisible(l),"undefined"!==typeof a&&n.setDraggable(a),"undefined"!==typeof u&&n.setClickable(u),"string"===typeof d&&n.setCursor(d),h&&n.setIcon(h),"undefined"!==typeof p&&n.setLabel(p),"undefined"!==typeof f&&n.setOpacity(f),g&&n.setShape(g),"string"===typeof m&&n.setTitle(m),"number"===typeof y&&n.setZIndex(y),_&&X(google.maps.event.addListener(n,"dblclick",_)),x&&Z(google.maps.event.addListener(n,"dragend",x)),S&&Q(google.maps.event.addListener(n,"dragstart",S)),C&&ne(google.maps.event.addListener(n,"mousedown",C)),w&&oe(google.maps.event.addListener(n,"mouseout",w)),E&&le(google.maps.event.addListener(n,"mouseover",E)),P&&de(google.maps.event.addListener(n,"mouseup",P)),A&&fe(google.maps.event.addListener(n,"rightclick",A)),v&&ye(google.maps.event.addListener(n,"click",v)),b&&be(google.maps.event.addListener(n,"drag",b)),k&&we(google.maps.event.addListener(n,"clickable_changed",k)),j&&Ce(google.maps.event.addListener(n,"cursor_changed",j)),I&&Ie(google.maps.event.addListener(n,"animation_changed",I)),G&&Me(google.maps.event.addListener(n,"draggable_changed",G)),T&&De(google.maps.event.addListener(n,"flat_changed",T)),M&&Ve(google.maps.event.addListener(n,"icon_changed",M)),O&&Be(google.maps.event.addListener(n,"position_changed",O)),R&&He(google.maps.event.addListener(n,"shape_changed",R)),D&&Ye(google.maps.event.addListener(n,"title_changed",D)),N&&$e(google.maps.event.addListener(n,"visible_changed",N)),L&&et(google.maps.event.addListener(n,"zindex_changed",L)),W(n),V&&V(n),function(){null!==q&&google.maps.event.removeListener(q),null!==K&&google.maps.event.removeListener(K),null!==J&&google.maps.event.removeListener(J),null!==te&&google.maps.event.removeListener(te),null!==ie&&google.maps.event.removeListener(ie),null!==ae&&google.maps.event.removeListener(ae),null!==ue&&google.maps.event.removeListener(ue),null!==pe&&google.maps.event.removeListener(pe),null!==me&&google.maps.event.removeListener(me),null!==Se&&google.maps.event.removeListener(Se),null!==Pe&&google.maps.event.removeListener(Pe),null!==je&&google.maps.event.removeListener(je),null!==Te&&google.maps.event.removeListener(Te),null!==Re&&google.maps.event.removeListener(Re),null!==Le&&google.maps.event.removeListener(Le),null!==ze&&google.maps.event.removeListener(ze),null!==Xe&&google.maps.event.removeListener(Xe),null!==Ze&&google.maps.event.removeListener(Ze),null!==Qe&&google.maps.event.removeListener(Qe),F&&F(n),i?i.removeMarker(n,!!o):n&&n.setMap(null)}}),[]);var tt=(0,n.useMemo)((function(){return s?n.Children.map(s,(function(e){if(!(0,n.isValidElement)(e))return e;var t=e;return(0,n.cloneElement)(t,{anchor:U})})):null}),[s,U]);return(0,Ae.jsx)(Ae.Fragment,{children:tt})||null})),function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.registeredEvents=[],t}kit(t,e),t.prototype.componentDidMount=function(){var e=jit(jit(jit({},this.props.options||hot),this.props.clusterer?hot:{map:this.context}),{position:this.props.position});this.marker=new google.maps.Marker(e),this.props.clusterer?this.props.clusterer.addMarker(this.marker,!!this.props.noClustererRedraw):this.marker.setMap(this.context),this.registeredEvents=zit({updaterMap:dot,eventMap:uot,prevProps:{},nextProps:this.props,instance:this.marker}),this.props.onLoad&&this.props.onLoad(this.marker)},t.prototype.componentDidUpdate=function(e){this.marker&&(Fit(this.registeredEvents),this.registeredEvents=zit({updaterMap:dot,eventMap:uot,prevProps:e,nextProps:this.props,instance:this.marker}))},t.prototype.componentWillUnmount=function(){this.marker&&(this.props.onUnmount&&this.props.onUnmount(this.marker),Fit(this.registeredEvents),this.props.clusterer?this.props.clusterer.removeMarker(this.marker,!!this.props.noClustererRedraw):this.marker&&this.marker.setMap(null))},t.prototype.render=function(){var e=this,t=null;return this.props.children&&(t=n.Children.map(this.props.children,(function(t){if(!(0,n.isValidElement)(t))return t;var r=t;return(0,n.cloneElement)(r,{anchor:e.marker})}))),t||null},t.contextType=Dit}(n.PureComponent);var pot=function(){function e(t,n){t.getClusterer().extend(e,google.maps.OverlayView),this.cluster=t,this.clusterClassName=this.cluster.getClusterer().getClusterClass(),this.className=this.clusterClassName,this.styles=n,this.center=void 0,this.div=null,this.sums=null,this.visible=!1,this.boundsChangedListener=null,this.url="",this.height=0,this.width=0,this.anchorText=[0,0],this.anchorIcon=[0,0],this.textColor="black",this.textSize=11,this.textDecoration="none",this.fontWeight="bold",this.fontStyle="normal",this.fontFamily="Arial,sans-serif",this.backgroundPosition="0 0",this.cMouseDownInCluster=null,this.cDraggingMapByCluster=null,this.timeOut=null,this.setMap(t.getMap()),this.onBoundsChanged=this.onBoundsChanged.bind(this),this.onMouseDown=this.onMouseDown.bind(this),this.onClick=this.onClick.bind(this),this.onMouseOver=this.onMouseOver.bind(this),this.onMouseOut=this.onMouseOut.bind(this),this.onAdd=this.onAdd.bind(this),this.onRemove=this.onRemove.bind(this),this.draw=this.draw.bind(this),this.hide=this.hide.bind(this),this.show=this.show.bind(this),this.useStyle=this.useStyle.bind(this),this.setCenter=this.setCenter.bind(this),this.getPosFromLatLng=this.getPosFromLatLng.bind(this)}return e.prototype.onBoundsChanged=function(){this.cDraggingMapByCluster=this.cMouseDownInCluster},e.prototype.onMouseDown=function(){this.cMouseDownInCluster=!0,this.cDraggingMapByCluster=!1},e.prototype.onClick=function(e){if(this.cMouseDownInCluster=!1,!this.cDraggingMapByCluster){var t=this.cluster.getClusterer();if(google.maps.event.trigger(t,"click",this.cluster),google.maps.event.trigger(t,"clusterclick",this.cluster),t.getZoomOnClick()){var n=t.getMaxZoom(),r=this.cluster.getBounds(),i=t.getMap();null!==i&&"fitBounds"in i&&i.fitBounds(r),this.timeOut=window.setTimeout((function(){var e=t.getMap();if(null!==e){"fitBounds"in e&&e.fitBounds(r);var i=e.getZoom()||0;null!==n&&i>n&&e.setZoom(n+1)}}),100)}e.cancelBubble=!0,e.stopPropagation&&e.stopPropagation()}},e.prototype.onMouseOver=function(){google.maps.event.trigger(this.cluster.getClusterer(),"mouseover",this.cluster)},e.prototype.onMouseOut=function(){google.maps.event.trigger(this.cluster.getClusterer(),"mouseout",this.cluster)},e.prototype.onAdd=function(){var e;this.div=document.createElement("div"),this.div.className=this.className,this.visible&&this.show(),null===(e=this.getPanes())||void 0===e||e.overlayMouseTarget.appendChild(this.div);var t=this.getMap();null!==t&&(this.boundsChangedListener=google.maps.event.addListener(t,"bounds_changed",this.onBoundsChanged),this.div.addEventListener("mousedown",this.onMouseDown),this.div.addEventListener("click",this.onClick),this.div.addEventListener("mouseover",this.onMouseOver),this.div.addEventListener("mouseout",this.onMouseOut))},e.prototype.onRemove=function(){this.div&&this.div.parentNode&&(this.hide(),null!==this.boundsChangedListener&&google.maps.event.removeListener(this.boundsChangedListener),this.div.removeEventListener("mousedown",this.onMouseDown),this.div.removeEventListener("click",this.onClick),this.div.removeEventListener("mouseover",this.onMouseOver),this.div.removeEventListener("mouseout",this.onMouseOut),this.div.parentNode.removeChild(this.div),null!==this.timeOut&&(window.clearTimeout(this.timeOut),this.timeOut=null),this.div=null)},e.prototype.draw=function(){if(this.visible&&null!==this.div&&this.center){var e=this.getPosFromLatLng(this.center);this.div.style.top=null!==e?"".concat(e.y,"px"):"0",this.div.style.left=null!==e?"".concat(e.x,"px"):"0"}},e.prototype.hide=function(){this.div&&(this.div.style.display="none"),this.visible=!1},e.prototype.show=function(){var e,t,n,r,i,o;if(this.div&&this.center){var s=null===this.sums||"undefined"===typeof this.sums.title||""===this.sums.title?this.cluster.getClusterer().getTitle():this.sums.title,a=this.backgroundPosition.split(" "),l=parseInt((null===(e=a[0])||void 0===e?void 0:e.replace(/^\s+|\s+$/g,""))||"0",10),c=parseInt((null===(t=a[1])||void 0===t?void 0:t.replace(/^\s+|\s+$/g,""))||"0",10),u=this.getPosFromLatLng(this.center);this.div.className=this.className,this.div.setAttribute("style","cursor: pointer; position: absolute; top: ".concat(null!==u?"".concat(u.y,"px"):"0","; left: ").concat(null!==u?"".concat(u.x,"px"):"0","; width: ").concat(this.width,"px; height: ").concat(this.height,"px; "));var d=document.createElement("img");d.alt=s,d.src=this.url,d.width=this.width,d.height=this.height,d.setAttribute("style","position: absolute; top: ".concat(c,"px; left: ").concat(l,"px")),this.cluster.getClusterer().enableRetinaIcons||(d.style.clip="rect(-".concat(c,"px, -").concat(l+this.width,"px, -").concat(c+this.height,", -").concat(l,")"));var h=document.createElement("div");h.setAttribute("style","position: absolute; top: ".concat(this.anchorText[0],"px; left: ").concat(this.anchorText[1],"px; color: ").concat(this.textColor,"; font-size: ").concat(this.textSize,"px; font-family: ").concat(this.fontFamily,"; font-weight: ").concat(this.fontWeight,"; fontStyle: ").concat(this.fontStyle,"; text-decoration: ").concat(this.textDecoration,"; text-align: center; width: ").concat(this.width,"px; line-height: ").concat(this.height,"px")),(null===(n=this.sums)||void 0===n?void 0:n.text)&&(h.innerText="".concat(null===(r=this.sums)||void 0===r?void 0:r.text)),(null===(i=this.sums)||void 0===i?void 0:i.html)&&(h.innerHTML="".concat(null===(o=this.sums)||void 0===o?void 0:o.html)),this.div.innerHTML="",this.div.appendChild(d),this.div.appendChild(h),this.div.title=s,this.div.style.display=""}this.visible=!0},e.prototype.useStyle=function(e){this.sums=e;var t=this.cluster.getClusterer().getStyles(),n=t[Math.min(t.length-1,Math.max(0,e.index-1))];n&&(this.url=n.url,this.height=n.height,this.width=n.width,n.className&&(this.className="".concat(this.clusterClassName," ").concat(n.className)),this.anchorText=n.anchorText||[0,0],this.anchorIcon=n.anchorIcon||[this.height/2,this.width/2],this.textColor=n.textColor||"black",this.textSize=n.textSize||11,this.textDecoration=n.textDecoration||"none",this.fontWeight=n.fontWeight||"bold",this.fontStyle=n.fontStyle||"normal",this.fontFamily=n.fontFamily||"Arial,sans-serif",this.backgroundPosition=n.backgroundPosition||"0 0")},e.prototype.setCenter=function(e){this.center=e},e.prototype.getPosFromLatLng=function(e){var t=this.getProjection().fromLatLngToDivPixel(e);return null!==t&&(t.x-=this.anchorIcon[1],t.y-=this.anchorIcon[0]),t},e}(),fot=function(){function e(e){this.markerClusterer=e,this.map=this.markerClusterer.getMap(),this.gridSize=this.markerClusterer.getGridSize(),this.minClusterSize=this.markerClusterer.getMinimumClusterSize(),this.averageCenter=this.markerClusterer.getAverageCenter(),this.markers=[],this.center=void 0,this.bounds=null,this.clusterIcon=new pot(this,this.markerClusterer.getStyles()),this.getSize=this.getSize.bind(this),this.getMarkers=this.getMarkers.bind(this),this.getCenter=this.getCenter.bind(this),this.getMap=this.getMap.bind(this),this.getClusterer=this.getClusterer.bind(this),this.getBounds=this.getBounds.bind(this),this.remove=this.remove.bind(this),this.addMarker=this.addMarker.bind(this),this.isMarkerInClusterBounds=this.isMarkerInClusterBounds.bind(this),this.calculateBounds=this.calculateBounds.bind(this),this.updateIcon=this.updateIcon.bind(this),this.isMarkerAlreadyAdded=this.isMarkerAlreadyAdded.bind(this)}return e.prototype.getSize=function(){return this.markers.length},e.prototype.getMarkers=function(){return this.markers},e.prototype.getCenter=function(){return this.center},e.prototype.getMap=function(){return this.map},e.prototype.getClusterer=function(){return this.markerClusterer},e.prototype.getBounds=function(){for(var e=new google.maps.LatLngBounds(this.center,this.center),t=0,n=this.getMarkers();t<n.length;t++){var r=n[t].getPosition();r&&e.extend(r)}return e},e.prototype.remove=function(){this.clusterIcon.setMap(null),this.markers=[],delete this.markers},e.prototype.addMarker=function(e){var t,n;if(this.isMarkerAlreadyAdded(e))return!1;if(this.center){if(this.averageCenter&&(n=e.getPosition())){var r=this.markers.length+1;this.center=new google.maps.LatLng((this.center.lat()*(r-1)+n.lat())/r,(this.center.lng()*(r-1)+n.lng())/r),this.calculateBounds()}}else(n=e.getPosition())&&(this.center=n,this.calculateBounds());e.isAdded=!0,this.markers.push(e);var i=this.markers.length,o=this.markerClusterer.getMaxZoom(),s=null===(t=this.map)||void 0===t?void 0:t.getZoom();if(null!==o&&"undefined"!==typeof s&&s>o)e.getMap()!==this.map&&e.setMap(this.map);else if(i<this.minClusterSize)e.getMap()!==this.map&&e.setMap(this.map);else if(i===this.minClusterSize)for(var a=0,l=this.markers;a<l.length;a++){l[a].setMap(null)}else e.setMap(null);return!0},e.prototype.isMarkerInClusterBounds=function(e){if(null!==this.bounds){var t=e.getPosition();if(t)return this.bounds.contains(t)}return!1},e.prototype.calculateBounds=function(){this.bounds=this.markerClusterer.getExtendedBounds(new google.maps.LatLngBounds(this.center,this.center))},e.prototype.updateIcon=function(){var e,t=this.markers.length,n=this.markerClusterer.getMaxZoom(),r=null===(e=this.map)||void 0===e?void 0:e.getZoom();null!==n&&"undefined"!==typeof r&&r>n||t<this.minClusterSize?this.clusterIcon.hide():(this.center&&this.clusterIcon.setCenter(this.center),this.clusterIcon.useStyle(this.markerClusterer.getCalculator()(this.markers,this.markerClusterer.getStyles().length)),this.clusterIcon.show())},e.prototype.isMarkerAlreadyAdded=function(e){if(this.markers.includes)return this.markers.includes(e);for(var t=0;t<this.markers.length;t++)if(e===this.markers[t])return!0;return!1},e}();function got(e,t){var n=e.length,r=n.toString().length,i=Math.min(r,t);return{text:n.toString(),index:i,title:""}}var mot=[53,56,66,78,90],yot=function(){function e(t,n,r){void 0===n&&(n=[]),void 0===r&&(r={}),this.getMinimumClusterSize=this.getMinimumClusterSize.bind(this),this.setMinimumClusterSize=this.setMinimumClusterSize.bind(this),this.getEnableRetinaIcons=this.getEnableRetinaIcons.bind(this),this.setEnableRetinaIcons=this.setEnableRetinaIcons.bind(this),this.addToClosestCluster=this.addToClosestCluster.bind(this),this.getImageExtension=this.getImageExtension.bind(this),this.setImageExtension=this.setImageExtension.bind(this),this.getExtendedBounds=this.getExtendedBounds.bind(this),this.getAverageCenter=this.getAverageCenter.bind(this),this.setAverageCenter=this.setAverageCenter.bind(this),this.getTotalClusters=this.getTotalClusters.bind(this),this.fitMapToMarkers=this.fitMapToMarkers.bind(this),this.getIgnoreHidden=this.getIgnoreHidden.bind(this),this.setIgnoreHidden=this.setIgnoreHidden.bind(this),this.getClusterClass=this.getClusterClass.bind(this),this.setClusterClass=this.setClusterClass.bind(this),this.getTotalMarkers=this.getTotalMarkers.bind(this),this.getZoomOnClick=this.getZoomOnClick.bind(this),this.setZoomOnClick=this.setZoomOnClick.bind(this),this.getBatchSizeIE=this.getBatchSizeIE.bind(this),this.setBatchSizeIE=this.setBatchSizeIE.bind(this),this.createClusters=this.createClusters.bind(this),this.onZoomChanged=this.onZoomChanged.bind(this),this.getImageSizes=this.getImageSizes.bind(this),this.setImageSizes=this.setImageSizes.bind(this),this.getCalculator=this.getCalculator.bind(this),this.setCalculator=this.setCalculator.bind(this),this.removeMarkers=this.removeMarkers.bind(this),this.resetViewport=this.resetViewport.bind(this),this.getImagePath=this.getImagePath.bind(this),this.setImagePath=this.setImagePath.bind(this),this.pushMarkerTo=this.pushMarkerTo.bind(this),this.removeMarker=this.removeMarker.bind(this),this.clearMarkers=this.clearMarkers.bind(this),this.setupStyles=this.setupStyles.bind(this),this.getGridSize=this.getGridSize.bind(this),this.setGridSize=this.setGridSize.bind(this),this.getClusters=this.getClusters.bind(this),this.getMaxZoom=this.getMaxZoom.bind(this),this.setMaxZoom=this.setMaxZoom.bind(this),this.getMarkers=this.getMarkers.bind(this),this.addMarkers=this.addMarkers.bind(this),this.getStyles=this.getStyles.bind(this),this.setStyles=this.setStyles.bind(this),this.addMarker=this.addMarker.bind(this),this.onRemove=this.onRemove.bind(this),this.getTitle=this.getTitle.bind(this),this.setTitle=this.setTitle.bind(this),this.repaint=this.repaint.bind(this),this.onIdle=this.onIdle.bind(this),this.redraw=this.redraw.bind(this),this.onAdd=this.onAdd.bind(this),this.draw=this.draw.bind(this),this.extend=this.extend.bind(this),this.extend(e,google.maps.OverlayView),this.markers=[],this.clusters=[],this.listeners=[],this.activeMap=null,this.ready=!1,this.gridSize=r.gridSize||60,this.minClusterSize=r.minimumClusterSize||2,this.maxZoom=r.maxZoom||null,this.styles=r.styles||[],this.title=r.title||"",this.zoomOnClick=!0,void 0!==r.zoomOnClick&&(this.zoomOnClick=r.zoomOnClick),this.averageCenter=!1,void 0!==r.averageCenter&&(this.averageCenter=r.averageCenter),this.ignoreHidden=!1,void 0!==r.ignoreHidden&&(this.ignoreHidden=r.ignoreHidden),this.enableRetinaIcons=!1,void 0!==r.enableRetinaIcons&&(this.enableRetinaIcons=r.enableRetinaIcons),this.imagePath=r.imagePath||"https://developers.google.com/maps/documentation/javascript/examples/markerclusterer/m",this.imageExtension=r.imageExtension||"png",this.imageSizes=r.imageSizes||mot,this.calculator=r.calculator||got,this.batchSize=r.batchSize||2e3,this.batchSizeIE=r.batchSizeIE||500,this.clusterClass=r.clusterClass||"cluster",-1!==navigator.userAgent.toLowerCase().indexOf("msie")&&(this.batchSize=this.batchSizeIE),this.timerRefStatic=null,this.setupStyles(),this.addMarkers(n,!0),this.setMap(t)}return e.prototype.onZoomChanged=function(){var e,t;this.resetViewport(!1),(null===(e=this.getMap())||void 0===e?void 0:e.getZoom())!==(this.get("minZoom")||0)&&(null===(t=this.getMap())||void 0===t?void 0:t.getZoom())!==this.get("maxZoom")||google.maps.event.trigger(this,"idle")},e.prototype.onIdle=function(){this.redraw()},e.prototype.onAdd=function(){var e=this.getMap();this.activeMap=e,this.ready=!0,this.repaint(),null!==e&&(this.listeners=[google.maps.event.addListener(e,"zoom_changed",this.onZoomChanged),google.maps.event.addListener(e,"idle",this.onIdle)])},e.prototype.onRemove=function(){for(var e=0,t=this.markers;e<t.length;e++){var n=t[e];n.getMap()!==this.activeMap&&n.setMap(this.activeMap)}for(var r=0,i=this.clusters;r<i.length;r++){i[r].remove()}this.clusters=[];for(var o=0,s=this.listeners;o<s.length;o++){var a=s[o];google.maps.event.removeListener(a)}this.listeners=[],this.activeMap=null,this.ready=!1},e.prototype.draw=function(){},e.prototype.getMap=function(){return null},e.prototype.getPanes=function(){return null},e.prototype.getProjection=function(){return{fromContainerPixelToLatLng:function(){return null},fromDivPixelToLatLng:function(){return null},fromLatLngToContainerPixel:function(){return null},fromLatLngToDivPixel:function(){return null},getVisibleRegion:function(){return null},getWorldWidth:function(){return 0}}},e.prototype.setMap=function(){},e.prototype.addListener=function(){return{remove:function(){}}},e.prototype.bindTo=function(){},e.prototype.get=function(){},e.prototype.notify=function(){},e.prototype.set=function(){},e.prototype.setValues=function(){},e.prototype.unbind=function(){},e.prototype.unbindAll=function(){},e.prototype.setupStyles=function(){if(!(this.styles.length>0))for(var e=0;e<this.imageSizes.length;e++)this.styles.push({url:"".concat(this.imagePath+(e+1),".").concat(this.imageExtension),height:this.imageSizes[e]||0,width:this.imageSizes[e]||0})},e.prototype.fitMapToMarkers=function(){for(var e=this.getMarkers(),t=new google.maps.LatLngBounds,n=0,r=e;n<r.length;n++){var i=r[n].getPosition();i&&t.extend(i)}var o=this.getMap();null!==o&&"fitBounds"in o&&o.fitBounds(t)},e.prototype.getGridSize=function(){return this.gridSize},e.prototype.setGridSize=function(e){this.gridSize=e},e.prototype.getMinimumClusterSize=function(){return this.minClusterSize},e.prototype.setMinimumClusterSize=function(e){this.minClusterSize=e},e.prototype.getMaxZoom=function(){return this.maxZoom},e.prototype.setMaxZoom=function(e){this.maxZoom=e},e.prototype.getStyles=function(){return this.styles},e.prototype.setStyles=function(e){this.styles=e},e.prototype.getTitle=function(){return this.title},e.prototype.setTitle=function(e){this.title=e},e.prototype.getZoomOnClick=function(){return this.zoomOnClick},e.prototype.setZoomOnClick=function(e){this.zoomOnClick=e},e.prototype.getAverageCenter=function(){return this.averageCenter},e.prototype.setAverageCenter=function(e){this.averageCenter=e},e.prototype.getIgnoreHidden=function(){return this.ignoreHidden},e.prototype.setIgnoreHidden=function(e){this.ignoreHidden=e},e.prototype.getEnableRetinaIcons=function(){return this.enableRetinaIcons},e.prototype.setEnableRetinaIcons=function(e){this.enableRetinaIcons=e},e.prototype.getImageExtension=function(){return this.imageExtension},e.prototype.setImageExtension=function(e){this.imageExtension=e},e.prototype.getImagePath=function(){return this.imagePath},e.prototype.setImagePath=function(e){this.imagePath=e},e.prototype.getImageSizes=function(){return this.imageSizes},e.prototype.setImageSizes=function(e){this.imageSizes=e},e.prototype.getCalculator=function(){return this.calculator},e.prototype.setCalculator=function(e){this.calculator=e},e.prototype.getBatchSizeIE=function(){return this.batchSizeIE},e.prototype.setBatchSizeIE=function(e){this.batchSizeIE=e},e.prototype.getClusterClass=function(){return this.clusterClass},e.prototype.setClusterClass=function(e){this.clusterClass=e},e.prototype.getMarkers=function(){return this.markers},e.prototype.getTotalMarkers=function(){return this.markers.length},e.prototype.getClusters=function(){return this.clusters},e.prototype.getTotalClusters=function(){return this.clusters.length},e.prototype.addMarker=function(e,t){this.pushMarkerTo(e),t||this.redraw()},e.prototype.addMarkers=function(e,t){for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var r=e[n];r&&this.pushMarkerTo(r)}t||this.redraw()},e.prototype.pushMarkerTo=function(e){var t=this;e.getDraggable()&&google.maps.event.addListener(e,"dragend",(function(){t.ready&&(e.isAdded=!1,t.repaint())})),e.isAdded=!1,this.markers.push(e)},e.prototype.removeMarker_=function(e){var t=-1;if(this.markers.indexOf)t=this.markers.indexOf(e);else for(var n=0;n<this.markers.length;n++)if(e===this.markers[n]){t=n;break}return-1!==t&&(e.setMap(null),this.markers.splice(t,1),!0)},e.prototype.removeMarker=function(e,t){var n=this.removeMarker_(e);return!t&&n&&this.repaint(),n},e.prototype.removeMarkers=function(e,t){for(var n=!1,r=0,i=e;r<i.length;r++){var o=i[r];n=n||this.removeMarker_(o)}return!t&&n&&this.repaint(),n},e.prototype.clearMarkers=function(){this.resetViewport(!0),this.markers=[]},e.prototype.repaint=function(){var e=this.clusters.slice();this.clusters=[],this.resetViewport(!1),this.redraw(),setTimeout((function(){for(var t=0,n=e;t<n.length;t++){n[t].remove()}}),0)},e.prototype.getExtendedBounds=function(e){var t=this.getProjection(),n=t.fromLatLngToDivPixel(new google.maps.LatLng(e.getNorthEast().lat(),e.getNorthEast().lng()));null!==n&&(n.x+=this.gridSize,n.y-=this.gridSize);var r=t.fromLatLngToDivPixel(new google.maps.LatLng(e.getSouthWest().lat(),e.getSouthWest().lng()));if(null!==r&&(r.x-=this.gridSize,r.y+=this.gridSize),null!==n){var i=t.fromDivPixelToLatLng(n);null!==i&&e.extend(i)}if(null!==r){var o=t.fromDivPixelToLatLng(r);null!==o&&e.extend(o)}return e},e.prototype.redraw=function(){this.createClusters(0)},e.prototype.resetViewport=function(e){for(var t=0,n=this.clusters;t<n.length;t++){n[t].remove()}this.clusters=[];for(var r=0,i=this.markers;r<i.length;r++){var o=i[r];o.isAdded=!1,e&&o.setMap(null)}},e.prototype.distanceBetweenPoints=function(e,t){var n=(t.lat()-e.lat())*Math.PI/180,r=(t.lng()-e.lng())*Math.PI/180,i=Math.sin(n/2)*Math.sin(n/2)+Math.cos(e.lat()*Math.PI/180)*Math.cos(t.lat()*Math.PI/180)*Math.sin(r/2)*Math.sin(r/2);return 2*Math.atan2(Math.sqrt(i),Math.sqrt(1-i))*6371},e.prototype.isMarkerInBounds=function(e,t){var n=e.getPosition();return!!n&&t.contains(n)},e.prototype.addToClosestCluster=function(e){for(var t,n=4e4,r=null,i=0,o=this.clusters;i<o.length;i++){var s=(t=o[i]).getCenter(),a=e.getPosition();if(s&&a){var l=this.distanceBetweenPoints(s,a);l<n&&(n=l,r=t)}}r&&r.isMarkerInClusterBounds(e)?r.addMarker(e):((t=new fot(this)).addMarker(e),this.clusters.push(t))},e.prototype.createClusters=function(e){var t=this;if(this.ready){0===e&&(google.maps.event.trigger(this,"clusteringbegin",this),null!==this.timerRefStatic&&(window.clearTimeout(this.timerRefStatic),delete this.timerRefStatic));for(var n=this.getMap(),r=(null!==n&&"getBounds"in n?n.getBounds():null),i=((null===n||void 0===n?void 0:n.getZoom())||0)>3?new google.maps.LatLngBounds(null===r||void 0===r?void 0:r.getSouthWest(),null===r||void 0===r?void 0:r.getNorthEast()):new google.maps.LatLngBounds(new google.maps.LatLng(85.02070771743472,-178.48388434375),new google.maps.LatLng(-85.08136444384544,178.00048865625)),o=this.getExtendedBounds(i),s=Math.min(e+this.batchSize,this.markers.length),a=e;a<s;a++){var l=this.markers[a];l&&!l.isAdded&&this.isMarkerInBounds(l,o)&&(!this.ignoreHidden||this.ignoreHidden&&l.getVisible())&&this.addToClosestCluster(l)}if(s<this.markers.length)this.timerRefStatic=window.setTimeout((function(){t.createClusters(s)}),0);else{this.timerRefStatic=null,google.maps.event.trigger(this,"clusteringend",this);for(var c=0,u=this.clusters;c<u.length;c++){u[c].updateIcon()}}}},e.prototype.extend=function(e,t){return function(e){for(var t in e.prototype){var n=t;this.prototype[n]=e.prototype[n]}return this}.apply(e,[t])},e}(),vot={onClick:"click",onClusteringBegin:"clusteringbegin",onClusteringEnd:"clusteringend",onMouseOut:"mouseout",onMouseOver:"mouseover"},_ot={averageCenter:function(e,t){e.setAverageCenter(t)},batchSizeIE:function(e,t){e.setBatchSizeIE(t)},calculator:function(e,t){e.setCalculator(t)},clusterClass:function(e,t){e.setClusterClass(t)},enableRetinaIcons:function(e,t){e.setEnableRetinaIcons(t)},gridSize:function(e,t){e.setGridSize(t)},ignoreHidden:function(e,t){e.setIgnoreHidden(t)},imageExtension:function(e,t){e.setImageExtension(t)},imagePath:function(e,t){e.setImagePath(t)},imageSizes:function(e,t){e.setImageSizes(t)},maxZoom:function(e,t){e.setMaxZoom(t)},minimumClusterSize:function(e,t){e.setMinimumClusterSize(t)},styles:function(e,t){e.setStyles(t)},title:function(e,t){e.setTitle(t)},zoomOnClick:function(e,t){e.setZoomOnClick(t)}},bot={};(0,n.memo)((function(e){var t=e.children,r=e.options,i=e.averageCenter,o=e.batchSizeIE,s=e.calculator,a=e.clusterClass,l=e.enableRetinaIcons,c=e.gridSize,u=e.ignoreHidden,d=e.imageExtension,h=e.imagePath,p=e.imageSizes,f=e.maxZoom,g=e.minimumClusterSize,m=e.styles,y=e.title,v=e.zoomOnClick,_=e.onClick,b=e.onClusteringBegin,x=e.onClusteringEnd,S=e.onMouseOver,w=e.onMouseOut,E=e.onLoad,P=e.onUnmount,C=(0,n.useState)(null),A=C[0],k=C[1],j=(0,n.useContext)(Dit),I=(0,n.useState)(null),G=I[0],T=I[1],M=(0,n.useState)(null),O=M[0],R=M[1],D=(0,n.useState)(null),N=D[0],L=D[1],V=(0,n.useState)(null),F=V[0],z=V[1],B=(0,n.useState)(null),U=B[0],W=B[1];return(0,n.useEffect)((function(){A&&w&&(null!==F&&google.maps.event.removeListener(F),z(google.maps.event.addListener(A,vot.onMouseOut,w)))}),[w]),(0,n.useEffect)((function(){A&&S&&(null!==U&&google.maps.event.removeListener(U),W(google.maps.event.addListener(A,vot.onMouseOver,S)))}),[S]),(0,n.useEffect)((function(){A&&_&&(null!==G&&google.maps.event.removeListener(G),T(google.maps.event.addListener(A,vot.onClick,_)))}),[_]),(0,n.useEffect)((function(){A&&b&&(null!==O&&google.maps.event.removeListener(O),R(google.maps.event.addListener(A,vot.onClusteringBegin,b)))}),[b]),(0,n.useEffect)((function(){A&&x&&(null!==N&&google.maps.event.removeListener(N),R(google.maps.event.addListener(A,vot.onClusteringEnd,x)))}),[x]),(0,n.useEffect)((function(){"undefined"!==typeof i&&null!==A&&_ot.averageCenter(A,i)}),[A,i]),(0,n.useEffect)((function(){"undefined"!==typeof o&&null!==A&&_ot.batchSizeIE(A,o)}),[A,o]),(0,n.useEffect)((function(){"undefined"!==typeof s&&null!==A&&_ot.calculator(A,s)}),[A,s]),(0,n.useEffect)((function(){"undefined"!==typeof a&&null!==A&&_ot.clusterClass(A,a)}),[A,a]),(0,n.useEffect)((function(){"undefined"!==typeof l&&null!==A&&_ot.enableRetinaIcons(A,l)}),[A,l]),(0,n.useEffect)((function(){"undefined"!==typeof c&&null!==A&&_ot.gridSize(A,c)}),[A,c]),(0,n.useEffect)((function(){"undefined"!==typeof u&&null!==A&&_ot.ignoreHidden(A,u)}),[A,u]),(0,n.useEffect)((function(){"undefined"!==typeof d&&null!==A&&_ot.imageExtension(A,d)}),[A,d]),(0,n.useEffect)((function(){"undefined"!==typeof h&&null!==A&&_ot.imagePath(A,h)}),[A,h]),(0,n.useEffect)((function(){"undefined"!==typeof p&&null!==A&&_ot.imageSizes(A,p)}),[A,p]),(0,n.useEffect)((function(){"undefined"!==typeof f&&null!==A&&_ot.maxZoom(A,f)}),[A,f]),(0,n.useEffect)((function(){"undefined"!==typeof g&&null!==A&&_ot.minimumClusterSize(A,g)}),[A,g]),(0,n.useEffect)((function(){"undefined"!==typeof m&&null!==A&&_ot.styles(A,m)}),[A,m]),(0,n.useEffect)((function(){"undefined"!==typeof y&&null!==A&&_ot.title(A,y)}),[A,y]),(0,n.useEffect)((function(){"undefined"!==typeof v&&null!==A&&_ot.zoomOnClick(A,v)}),[A,v]),(0,n.useEffect)((function(){if(j){var e=jit({},r||bot),t=new yot(j,[],e);return i&&_ot.averageCenter(t,i),o&&_ot.batchSizeIE(t,o),s&&_ot.calculator(t,s),a&&_ot.clusterClass(t,a),l&&_ot.enableRetinaIcons(t,l),c&&_ot.gridSize(t,c),u&&_ot.ignoreHidden(t,u),d&&_ot.imageExtension(t,d),h&&_ot.imagePath(t,h),p&&_ot.imageSizes(t,p),f&&_ot.maxZoom(t,f),g&&_ot.minimumClusterSize(t,g),m&&_ot.styles(t,m),y&&_ot.title(t,y),v&&_ot.zoomOnClick(t,v),w&&z(google.maps.event.addListener(t,vot.onMouseOut,w)),S&&W(google.maps.event.addListener(t,vot.onMouseOver,S)),_&&T(google.maps.event.addListener(t,vot.onClick,_)),b&&R(google.maps.event.addListener(t,vot.onClusteringBegin,b)),x&&L(google.maps.event.addListener(t,vot.onClusteringEnd,x)),k(t),E&&E(t),function(){null!==F&&google.maps.event.removeListener(F),null!==U&&google.maps.event.removeListener(U),null!==G&&google.maps.event.removeListener(G),null!==O&&google.maps.event.removeListener(O),null!==N&&google.maps.event.removeListener(N),P&&P(t)}}}),[]),null!==A&&t(A)||null})),function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.registeredEvents=[],t.state={markerClusterer:null},t.setClustererCallback=function(){null!==t.state.markerClusterer&&t.props.onLoad&&t.props.onLoad(t.state.markerClusterer)},t}kit(t,e),t.prototype.componentDidMount=function(){if(this.context){var e=new yot(this.context,[],this.props.options);this.registeredEvents=zit({updaterMap:_ot,eventMap:vot,prevProps:{},nextProps:this.props,instance:e}),this.setState((function(){return{markerClusterer:e}}),this.setClustererCallback)}},t.prototype.componentDidUpdate=function(e){this.state.markerClusterer&&(Fit(this.registeredEvents),this.registeredEvents=zit({updaterMap:_ot,eventMap:vot,prevProps:e,nextProps:this.props,instance:this.state.markerClusterer}))},t.prototype.componentWillUnmount=function(){null!==this.state.markerClusterer&&(this.props.onUnmount&&this.props.onUnmount(this.state.markerClusterer),Fit(this.registeredEvents),this.state.markerClusterer.setMap(null))},t.prototype.render=function(){return null!==this.state.markerClusterer?this.props.children(this.state.markerClusterer):null},t.contextType=Dit}(n.PureComponent);function xot(e){e.cancelBubble=!0,e.stopPropagation&&e.stopPropagation()}var Sot=function(){function e(t){void 0===t&&(t={}),this.getCloseClickHandler=this.getCloseClickHandler.bind(this),this.closeClickHandler=this.closeClickHandler.bind(this),this.createInfoBoxDiv=this.createInfoBoxDiv.bind(this),this.addClickHandler=this.addClickHandler.bind(this),this.getCloseBoxImg=this.getCloseBoxImg.bind(this),this.getBoxWidths=this.getBoxWidths.bind(this),this.setBoxStyle=this.setBoxStyle.bind(this),this.setPosition=this.setPosition.bind(this),this.getPosition=this.getPosition.bind(this),this.setOptions=this.setOptions.bind(this),this.setContent=this.setContent.bind(this),this.setVisible=this.setVisible.bind(this),this.getContent=this.getContent.bind(this),this.getVisible=this.getVisible.bind(this),this.setZIndex=this.setZIndex.bind(this),this.getZIndex=this.getZIndex.bind(this),this.onRemove=this.onRemove.bind(this),this.panBox=this.panBox.bind(this),this.extend=this.extend.bind(this),this.close=this.close.bind(this),this.draw=this.draw.bind(this),this.show=this.show.bind(this),this.hide=this.hide.bind(this),this.open=this.open.bind(this),this.extend(e,google.maps.OverlayView),this.content=t.content||"",this.disableAutoPan=t.disableAutoPan||!1,this.maxWidth=t.maxWidth||0,this.pixelOffset=t.pixelOffset||new google.maps.Size(0,0),this.position=t.position||new google.maps.LatLng(0,0),this.zIndex=t.zIndex||null,this.boxClass=t.boxClass||"infoBox",this.boxStyle=t.boxStyle||{},this.closeBoxMargin=t.closeBoxMargin||"2px",this.closeBoxURL=t.closeBoxURL||"http://www.google.com/intl/en_us/mapfiles/close.gif",""===t.closeBoxURL&&(this.closeBoxURL=""),this.infoBoxClearance=t.infoBoxClearance||new google.maps.Size(1,1),"undefined"===typeof t.visible&&("undefined"===typeof t.isHidden?t.visible=!0:t.visible=!t.isHidden),this.isHidden=!t.visible,this.alignBottom=t.alignBottom||!1,this.pane=t.pane||"floatPane",this.enableEventPropagation=t.enableEventPropagation||!1,this.div=null,this.closeListener=null,this.moveListener=null,this.mapListener=null,this.contextListener=null,this.eventListeners=null,this.fixedWidthSet=null}return e.prototype.createInfoBoxDiv=function(){var e=this;if(!this.div){this.div=document.createElement("div"),this.setBoxStyle(),"string"===typeof this.content?this.div.innerHTML=this.getCloseBoxImg()+this.content:(this.div.innerHTML=this.getCloseBoxImg(),this.div.appendChild(this.content));var t=this.getPanes();if(null!==t&&t[this.pane].appendChild(this.div),this.addClickHandler(),this.div.style.width)this.fixedWidthSet=!0;else if(0!==this.maxWidth&&this.div.offsetWidth>this.maxWidth)this.div.style.width=this.maxWidth+"px",this.fixedWidthSet=!0;else{var n=this.getBoxWidths();this.div.style.width=this.div.offsetWidth-n.left-n.right+"px",this.fixedWidthSet=!1}if(this.panBox(this.disableAutoPan),!this.enableEventPropagation){this.eventListeners=[];for(var r=0,i=["mousedown","mouseover","mouseout","mouseup","click","dblclick","touchstart","touchend","touchmove"];r<i.length;r++){var o=i[r];this.eventListeners.push(google.maps.event.addListener(this.div,o,xot))}this.eventListeners.push(google.maps.event.addListener(this.div,"mouseover",(function(){e.div&&(e.div.style.cursor="default")})))}this.contextListener=google.maps.event.addListener(this.div,"contextmenu",(function(t){t.returnValue=!1,t.preventDefault&&t.preventDefault(),e.enableEventPropagation||xot(t)})),google.maps.event.trigger(this,"domready")}},e.prototype.getCloseBoxImg=function(){var e="";return""!==this.closeBoxURL&&(e='<img alt=""',e+=' aria-hidden="true"',e+=" src='"+this.closeBoxURL+"'",e+=" align=right",e+=" style='",e+=" position: relative;",e+=" cursor: pointer;",e+=" margin: "+this.closeBoxMargin+";",e+="'>"),e},e.prototype.addClickHandler=function(){this.closeListener=this.div&&this.div.firstChild&&""!==this.closeBoxURL?google.maps.event.addListener(this.div.firstChild,"click",this.getCloseClickHandler()):null},e.prototype.closeClickHandler=function(e){e.cancelBubble=!0,e.stopPropagation&&e.stopPropagation(),google.maps.event.trigger(this,"closeclick"),this.close()},e.prototype.getCloseClickHandler=function(){return this.closeClickHandler},e.prototype.panBox=function(e){if(this.div&&!e){var t=this.getMap();if(t instanceof google.maps.Map){var n=0,r=0,i=t.getBounds();i&&!i.contains(this.position)&&t.setCenter(this.position);var o=t.getDiv(),s=o.offsetWidth,a=o.offsetHeight,l=this.pixelOffset.width,c=this.pixelOffset.height,u=this.div.offsetWidth,d=this.div.offsetHeight,h=this.infoBoxClearance.width,p=this.infoBoxClearance.height,f=this.getProjection().fromLatLngToContainerPixel(this.position);null!==f&&(f.x<-l+h?n=f.x+l-h:f.x+u+l+h>s&&(n=f.x+u+l+h-s),this.alignBottom?f.y<-c+p+d?r=f.y+c-p-d:f.y+c+p>a&&(r=f.y+c+p-a):f.y<-c+p?r=f.y+c-p:f.y+d+c+p>a&&(r=f.y+d+c+p-a)),0===n&&0===r||t.panBy(n,r)}}},e.prototype.setBoxStyle=function(){if(this.div){this.div.className=this.boxClass,this.div.style.cssText="";var e=this.boxStyle;for(var t in e)Object.prototype.hasOwnProperty.call(e,t)&&(this.div.style[t]=e[t]);if(this.div.style.webkitTransform="translateZ(0)","undefined"!==typeof this.div.style.opacity&&""!==this.div.style.opacity){var n=parseFloat(this.div.style.opacity||"");this.div.style.msFilter='"progid:DXImageTransform.Microsoft.Alpha(Opacity='+100*n+')"',this.div.style.filter="alpha(opacity="+100*n+")"}this.div.style.position="absolute",this.div.style.visibility="hidden",null!==this.zIndex&&(this.div.style.zIndex=this.zIndex+""),this.div.style.overflow||(this.div.style.overflow="auto")}},e.prototype.getBoxWidths=function(){var e={top:0,bottom:0,left:0,right:0};if(!this.div)return e;if(document.defaultView){var t=this.div.ownerDocument,n=t&&t.defaultView?t.defaultView.getComputedStyle(this.div,""):null;n&&(e.top=parseInt(n.borderTopWidth||"",10)||0,e.bottom=parseInt(n.borderBottomWidth||"",10)||0,e.left=parseInt(n.borderLeftWidth||"",10)||0,e.right=parseInt(n.borderRightWidth||"",10)||0)}else if(document.documentElement.currentStyle){var r=this.div.currentStyle;r&&(e.top=parseInt(r.borderTopWidth||"",10)||0,e.bottom=parseInt(r.borderBottomWidth||"",10)||0,e.left=parseInt(r.borderLeftWidth||"",10)||0,e.right=parseInt(r.borderRightWidth||"",10)||0)}return e},e.prototype.onRemove=function(){this.div&&this.div.parentNode&&(this.div.parentNode.removeChild(this.div),this.div=null)},e.prototype.draw=function(){if(this.createInfoBoxDiv(),this.div){var e=this.getProjection().fromLatLngToDivPixel(this.position);null!==e&&(this.div.style.left=e.x+this.pixelOffset.width+"px",this.alignBottom?this.div.style.bottom=-(e.y+this.pixelOffset.height)+"px":this.div.style.top=e.y+this.pixelOffset.height+"px"),this.isHidden?this.div.style.visibility="hidden":this.div.style.visibility="visible"}},e.prototype.setOptions=function(e){void 0===e&&(e={}),"undefined"!==typeof e.boxClass&&(this.boxClass=e.boxClass,this.setBoxStyle()),"undefined"!==typeof e.boxStyle&&(this.boxStyle=e.boxStyle,this.setBoxStyle()),"undefined"!==typeof e.content&&this.setContent(e.content),"undefined"!==typeof e.disableAutoPan&&(this.disableAutoPan=e.disableAutoPan),"undefined"!==typeof e.maxWidth&&(this.maxWidth=e.maxWidth),"undefined"!==typeof e.pixelOffset&&(this.pixelOffset=e.pixelOffset),"undefined"!==typeof e.alignBottom&&(this.alignBottom=e.alignBottom),"undefined"!==typeof e.position&&this.setPosition(e.position),"undefined"!==typeof e.zIndex&&this.setZIndex(e.zIndex),"undefined"!==typeof e.closeBoxMargin&&(this.closeBoxMargin=e.closeBoxMargin),"undefined"!==typeof e.closeBoxURL&&(this.closeBoxURL=e.closeBoxURL),"undefined"!==typeof e.infoBoxClearance&&(this.infoBoxClearance=e.infoBoxClearance),"undefined"!==typeof e.isHidden&&(this.isHidden=e.isHidden),"undefined"!==typeof e.visible&&(this.isHidden=!e.visible),"undefined"!==typeof e.enableEventPropagation&&(this.enableEventPropagation=e.enableEventPropagation),this.div&&this.draw()},e.prototype.setContent=function(e){this.content=e,this.div&&(this.closeListener&&(google.maps.event.removeListener(this.closeListener),this.closeListener=null),this.fixedWidthSet||(this.div.style.width=""),"string"===typeof e?this.div.innerHTML=this.getCloseBoxImg()+e:(this.div.innerHTML=this.getCloseBoxImg(),this.div.appendChild(e)),this.fixedWidthSet||(this.div.style.width=this.div.offsetWidth+"px","string"===typeof e?this.div.innerHTML=this.getCloseBoxImg()+e:(this.div.innerHTML=this.getCloseBoxImg(),this.div.appendChild(e))),this.addClickHandler()),google.maps.event.trigger(this,"content_changed")},e.prototype.setPosition=function(e){this.position=e,this.div&&this.draw(),google.maps.event.trigger(this,"position_changed")},e.prototype.setVisible=function(e){this.isHidden=!e,this.div&&(this.div.style.visibility=this.isHidden?"hidden":"visible")},e.prototype.setZIndex=function(e){this.zIndex=e,this.div&&(this.div.style.zIndex=e+""),google.maps.event.trigger(this,"zindex_changed")},e.prototype.getContent=function(){return this.content},e.prototype.getPosition=function(){return this.position},e.prototype.getZIndex=function(){return this.zIndex},e.prototype.getVisible=function(){var e=this.getMap();return"undefined"!==typeof e&&null!==e&&!this.isHidden},e.prototype.show=function(){this.isHidden=!1,this.div&&(this.div.style.visibility="visible")},e.prototype.hide=function(){this.isHidden=!0,this.div&&(this.div.style.visibility="hidden")},e.prototype.open=function(e,t){var n=this;t&&(this.position=t.getPosition(),this.moveListener=google.maps.event.addListener(t,"position_changed",(function(){var e=t.getPosition();n.setPosition(e)})),this.mapListener=google.maps.event.addListener(t,"map_changed",(function(){n.setMap(t.map)}))),this.setMap(e),this.div&&this.panBox()},e.prototype.close=function(){if(this.closeListener&&(google.maps.event.removeListener(this.closeListener),this.closeListener=null),this.eventListeners){for(var e=0,t=this.eventListeners;e<t.length;e++){var n=t[e];google.maps.event.removeListener(n)}this.eventListeners=null}this.moveListener&&(google.maps.event.removeListener(this.moveListener),this.moveListener=null),this.mapListener&&(google.maps.event.removeListener(this.mapListener),this.mapListener=null),this.contextListener&&(google.maps.event.removeListener(this.contextListener),this.contextListener=null),this.setMap(null)},e.prototype.extend=function(e,t){return function(e){for(var t in e.prototype)Object.prototype.hasOwnProperty.call(this,t)||(this.prototype[t]=e.prototype[t]);return this}.apply(e,[t])},e}(),wot={onCloseClick:"closeclick",onContentChanged:"content_changed",onDomReady:"domready",onPositionChanged:"position_changed",onZindexChanged:"zindex_changed"},Eot={options:function(e,t){e.setOptions(t)},position:function(e,t){t instanceof google.maps.LatLng?e.setPosition(t):e.setPosition(new google.maps.LatLng(t.lat,t.lng))},visible:function(e,t){e.setVisible(t)},zIndex:function(e,t){e.setZIndex(t)}},Pot={};(0,n.memo)((function(e){var t=e.children,r=e.anchor,i=e.options,o=e.position,s=e.zIndex,a=e.onCloseClick,l=e.onDomReady,c=e.onContentChanged,u=e.onPositionChanged,d=e.onZindexChanged,h=e.onLoad,p=e.onUnmount,f=(0,n.useContext)(Dit),g=(0,n.useState)(null),m=g[0],y=g[1],v=(0,n.useState)(null),_=v[0],b=v[1],S=(0,n.useState)(null),w=S[0],E=S[1],P=(0,n.useState)(null),C=P[0],A=P[1],k=(0,n.useState)(null),j=k[0],I=k[1],G=(0,n.useState)(null),T=G[0],M=G[1],O=(0,n.useRef)(null);return(0,n.useEffect)((function(){f&&null!==m&&(m.close(),r?m.open(f,r):m.getPosition()&&m.open(f))}),[f,m,r]),(0,n.useEffect)((function(){i&&null!==m&&m.setOptions(i)}),[m,i]),(0,n.useEffect)((function(){if(o&&null!==m){var e=o instanceof google.maps.LatLng?o:new google.maps.LatLng(o.lat,o.lng);m.setPosition(e)}}),[o]),(0,n.useEffect)((function(){"number"===typeof s&&null!==m&&m.setZIndex(s)}),[s]),(0,n.useEffect)((function(){m&&a&&(null!==_&&google.maps.event.removeListener(_),b(google.maps.event.addListener(m,"closeclick",a)))}),[a]),(0,n.useEffect)((function(){m&&l&&(null!==w&&google.maps.event.removeListener(w),E(google.maps.event.addListener(m,"domready",l)))}),[l]),(0,n.useEffect)((function(){m&&c&&(null!==C&&google.maps.event.removeListener(C),A(google.maps.event.addListener(m,"content_changed",c)))}),[c]),(0,n.useEffect)((function(){m&&u&&(null!==j&&google.maps.event.removeListener(j),I(google.maps.event.addListener(m,"position_changed",u)))}),[u]),(0,n.useEffect)((function(){m&&d&&(null!==T&&google.maps.event.removeListener(T),M(google.maps.event.addListener(m,"zindex_changed",d)))}),[d]),(0,n.useEffect)((function(){if(f){var e=i||Pot,t=e.position,n=Iit(e,["position"]),o=void 0;!t||t instanceof google.maps.LatLng||(o=new google.maps.LatLng(t.lat,t.lng));var s=new Sot(jit(jit({},n),o?{position:o}:{}));O.current=document.createElement("div"),y(s),a&&b(google.maps.event.addListener(s,"closeclick",a)),l&&E(google.maps.event.addListener(s,"domready",l)),c&&A(google.maps.event.addListener(s,"content_changed",c)),u&&I(google.maps.event.addListener(s,"position_changed",u)),d&&M(google.maps.event.addListener(s,"zindex_changed",d)),s.setContent(O.current),r?s.open(f,r):s.getPosition()?s.open(f):Rit(!1,"You must provide either an anchor or a position prop for <InfoBox>."),h&&h(s)}return function(){null!==m&&(_&&google.maps.event.removeListener(_),C&&google.maps.event.removeListener(C),w&&google.maps.event.removeListener(w),j&&google.maps.event.removeListener(j),T&&google.maps.event.removeListener(T),p&&p(m),m.close())}}),[]),O.current?(0,x.createPortal)(n.Children.only(t),O.current):null})),function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.registeredEvents=[],t.containerElement=null,t.state={infoBox:null},t.open=function(e,n){n?null!==t.context&&e.open(t.context,n):e.getPosition()?null!==t.context&&e.open(t.context):Rit(!1,"You must provide either an anchor or a position prop for <InfoBox>.")},t.setInfoBoxCallback=function(){null!==t.state.infoBox&&null!==t.containerElement&&(t.state.infoBox.setContent(t.containerElement),t.open(t.state.infoBox,t.props.anchor),t.props.onLoad&&t.props.onLoad(t.state.infoBox))},t}kit(t,e),t.prototype.componentDidMount=function(){var e,t=this.props.options||{},n=t.position,r=Iit(t,["position"]);!n||n instanceof google.maps.LatLng||(e=new google.maps.LatLng(n.lat,n.lng));var i=new Sot(jit(jit({},r),e?{position:e}:{}));this.containerElement=document.createElement("div"),this.registeredEvents=zit({updaterMap:Eot,eventMap:wot,prevProps:{},nextProps:this.props,instance:i}),this.setState({infoBox:i},this.setInfoBoxCallback)},t.prototype.componentDidUpdate=function(e){var t=this.state.infoBox;null!==t&&(Fit(this.registeredEvents),this.registeredEvents=zit({updaterMap:Eot,eventMap:wot,prevProps:e,nextProps:this.props,instance:t}))},t.prototype.componentWillUnmount=function(){var e=this.props.onUnmount,t=this.state.infoBox;null!==t&&(e&&e(t),Fit(this.registeredEvents),t.close())},t.prototype.render=function(){return this.containerElement?(0,x.createPortal)(n.Children.only(this.props.children),this.containerElement):null},t.contextType=Dit}(n.PureComponent);var Cot=function e(t,n){if(t===n)return!0;if(t&&n&&"object"==typeof t&&"object"==typeof n){if(t.constructor!==n.constructor)return!1;var r,i,o;if(Array.isArray(t)){if((r=t.length)!=n.length)return!1;for(i=r;0!==i--;)if(!e(t[i],n[i]))return!1;return!0}if(t.constructor===RegExp)return t.source===n.source&&t.flags===n.flags;if(t.valueOf!==Object.prototype.valueOf)return t.valueOf()===n.valueOf();if(t.toString!==Object.prototype.toString)return t.toString()===n.toString();if((r=(o=Object.keys(t)).length)!==Object.keys(n).length)return!1;for(i=r;0!==i--;)if(!Object.prototype.hasOwnProperty.call(n,o[i]))return!1;for(i=r;0!==i--;){var s=o[i];if(!e(t[s],n[s]))return!1}return!0}return t!==t&&n!==n},Aot=Mit(Cot);const kot=[Int8Array,Uint8Array,Uint8ClampedArray,Int16Array,Uint16Array,Int32Array,Uint32Array,Float32Array,Float64Array];class jot{static from(e){if(!(e instanceof ArrayBuffer))throw new Error("Data must be an instance of ArrayBuffer.");const[t,n]=new Uint8Array(e,0,2);if(219!==t)throw new Error("Data does not appear to be in a KDBush format.");const r=n>>4;if(1!==r)throw new Error("Got v".concat(r," data when expected v").concat(1,"."));const i=kot[15&n];if(!i)throw new Error("Unrecognized array type.");const[o]=new Uint16Array(e,2,1),[s]=new Uint32Array(e,4,1);return new jot(s,o,i,e)}constructor(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:64,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:Float64Array,r=arguments.length>3?arguments[3]:void 0;if(isNaN(e)||e<0)throw new Error("Unpexpected numItems value: ".concat(e,"."));this.numItems=+e,this.nodeSize=Math.min(Math.max(+t,2),65535),this.ArrayType=n,this.IndexArrayType=e<65536?Uint16Array:Uint32Array;const i=kot.indexOf(this.ArrayType),o=2*e*this.ArrayType.BYTES_PER_ELEMENT,s=e*this.IndexArrayType.BYTES_PER_ELEMENT,a=(8-s%8)%8;if(i<0)throw new Error("Unexpected typed array class: ".concat(n,"."));r&&r instanceof ArrayBuffer?(this.data=r,this.ids=new this.IndexArrayType(this.data,8,e),this.coords=new this.ArrayType(this.data,8+s+a,2*e),this._pos=2*e,this._finished=!0):(this.data=new ArrayBuffer(8+o+s+a),this.ids=new this.IndexArrayType(this.data,8,e),this.coords=new this.ArrayType(this.data,8+s+a,2*e),this._pos=0,this._finished=!1,new Uint8Array(this.data,0,2).set([219,16+i]),new Uint16Array(this.data,2,1)[0]=t,new Uint32Array(this.data,4,1)[0]=e)}add(e,t){const n=this._pos>>1;return this.ids[n]=n,this.coords[this._pos++]=e,this.coords[this._pos++]=t,n}finish(){const e=this._pos>>1;if(e!==this.numItems)throw new Error("Added ".concat(e," items when expected ").concat(this.numItems,"."));return Iot(this.ids,this.coords,this.nodeSize,0,this.numItems-1,0),this._finished=!0,this}range(e,t,n,r){if(!this._finished)throw new Error("Data not yet indexed - call index.finish().");const{ids:i,coords:o,nodeSize:s}=this,a=[0,i.length-1,0],l=[];for(;a.length;){const c=a.pop()||0,u=a.pop()||0,d=a.pop()||0;if(u-d<=s){for(let s=d;s<=u;s++){const a=o[2*s],c=o[2*s+1];a>=e&&a<=n&&c>=t&&c<=r&&l.push(i[s])}continue}const h=d+u>>1,p=o[2*h],f=o[2*h+1];p>=e&&p<=n&&f>=t&&f<=r&&l.push(i[h]),(0===c?e<=p:t<=f)&&(a.push(d),a.push(h-1),a.push(1-c)),(0===c?n>=p:r>=f)&&(a.push(h+1),a.push(u),a.push(1-c))}return l}within(e,t,n){if(!this._finished)throw new Error("Data not yet indexed - call index.finish().");const{ids:r,coords:i,nodeSize:o}=this,s=[0,r.length-1,0],a=[],l=n*n;for(;s.length;){const c=s.pop()||0,u=s.pop()||0,d=s.pop()||0;if(u-d<=o){for(let n=d;n<=u;n++)Oot(i[2*n],i[2*n+1],e,t)<=l&&a.push(r[n]);continue}const h=d+u>>1,p=i[2*h],f=i[2*h+1];Oot(p,f,e,t)<=l&&a.push(r[h]),(0===c?e-n<=p:t-n<=f)&&(s.push(d),s.push(h-1),s.push(1-c)),(0===c?e+n>=p:t+n>=f)&&(s.push(h+1),s.push(u),s.push(1-c))}return a}}function Iot(e,t,n,r,i,o){if(i-r<=n)return;const s=r+i>>1;Got(e,t,s,r,i,o),Iot(e,t,n,r,s-1,1-o),Iot(e,t,n,s+1,i,1-o)}function Got(e,t,n,r,i,o){for(;i>r;){if(i-r>600){const s=i-r+1,a=n-r+1,l=Math.log(s),c=.5*Math.exp(2*l/3),u=.5*Math.sqrt(l*c*(s-c)/s)*(a-s/2<0?-1:1);Got(e,t,n,Math.max(r,Math.floor(n-a*c/s+u)),Math.min(i,Math.floor(n+(s-a)*c/s+u)),o)}const s=t[2*n+o];let a=r,l=i;for(Tot(e,t,r,n),t[2*i+o]>s&&Tot(e,t,r,i);a<l;){for(Tot(e,t,a,l),a++,l--;t[2*a+o]<s;)a++;for(;t[2*l+o]>s;)l--}t[2*r+o]===s?Tot(e,t,r,l):(l++,Tot(e,t,l,i)),l<=n&&(r=l+1),n<=l&&(i=l-1)}}function Tot(e,t,n,r){Mot(e,n,r),Mot(t,2*n,2*r),Mot(t,2*n+1,2*r+1)}function Mot(e,t,n){const r=e[t];e[t]=e[n],e[n]=r}function Oot(e,t,n,r){const i=e-n,o=t-r;return i*i+o*o}const Rot={minZoom:0,maxZoom:16,minPoints:2,radius:40,extent:512,nodeSize:64,log:!1,generateId:!1,reduce:null,map:e=>e},Dot=Math.fround||(Not=new Float32Array(1),e=>(Not[0]=+e,Not[0]));var Not;const Lot=3,Vot=5,Fot=6;class zot{constructor(e){this.options=Object.assign(Object.create(Rot),e),this.trees=new Array(this.options.maxZoom+1),this.stride=this.options.reduce?7:6,this.clusterProps=[]}load(e){const{log:t,minZoom:n,maxZoom:r}=this.options;t&&console.time("total time");const i="prepare ".concat(e.length," points");t&&console.time(i),this.points=e;const o=[];for(let a=0;a<e.length;a++){const t=e[a];if(!t.geometry)continue;const[n,r]=t.geometry.coordinates,i=Dot(Wot(n)),s=Dot(Hot(r));o.push(i,s,1/0,a,-1,1),this.options.reduce&&o.push(0)}let s=this.trees[r+1]=this._createTree(o);t&&console.timeEnd(i);for(let a=r;a>=n;a--){const e=+Date.now();s=this.trees[a]=this._createTree(this._cluster(s,a)),t&&console.log("z%d: %d clusters in %dms",a,s.numItems,+Date.now()-e)}return t&&console.timeEnd("total time"),this}getClusters(e,t){let n=((e[0]+180)%360+360)%360-180;const r=Math.max(-90,Math.min(90,e[1]));let i=180===e[2]?180:((e[2]+180)%360+360)%360-180;const o=Math.max(-90,Math.min(90,e[3]));if(e[2]-e[0]>=360)n=-180,i=180;else if(n>i){const e=this.getClusters([n,r,180,o],t),s=this.getClusters([-180,r,i,o],t);return e.concat(s)}const s=this.trees[this._limitZoom(t)],a=s.range(Wot(n),Hot(o),Wot(i),Hot(r)),l=s.data,c=[];for(const u of a){const e=this.stride*u;c.push(l[e+Vot]>1?Bot(l,e,this.clusterProps):this.points[l[e+Lot]])}return c}getChildren(e){const t=this._getOriginId(e),n=this._getOriginZoom(e),r="No cluster with the specified id.",i=this.trees[n];if(!i)throw new Error(r);const o=i.data;if(t*this.stride>=o.length)throw new Error(r);const s=this.options.radius/(this.options.extent*Math.pow(2,n-1)),a=o[t*this.stride],l=o[t*this.stride+1],c=i.within(a,l,s),u=[];for(const d of c){const t=d*this.stride;o[t+4]===e&&u.push(o[t+Vot]>1?Bot(o,t,this.clusterProps):this.points[o[t+Lot]])}if(0===u.length)throw new Error(r);return u}getLeaves(e,t,n){t=t||10,n=n||0;const r=[];return this._appendLeaves(r,e,t,n,0),r}getTile(e,t,n){const r=this.trees[this._limitZoom(e)],i=Math.pow(2,e),{extent:o,radius:s}=this.options,a=s/o,l=(n-a)/i,c=(n+1+a)/i,u={features:[]};return this._addTileFeatures(r.range((t-a)/i,l,(t+1+a)/i,c),r.data,t,n,i,u),0===t&&this._addTileFeatures(r.range(1-a/i,l,1,c),r.data,i,n,i,u),t===i-1&&this._addTileFeatures(r.range(0,l,a/i,c),r.data,-1,n,i,u),u.features.length?u:null}getClusterExpansionZoom(e){let t=this._getOriginZoom(e)-1;for(;t<=this.options.maxZoom;){const n=this.getChildren(e);if(t++,1!==n.length)break;e=n[0].properties.cluster_id}return t}_appendLeaves(e,t,n,r,i){const o=this.getChildren(t);for(const s of o){const t=s.properties;if(t&&t.cluster?i+t.point_count<=r?i+=t.point_count:i=this._appendLeaves(e,t.cluster_id,n,r,i):i<r?i++:e.push(s),e.length===n)break}return i}_createTree(e){const t=new jot(e.length/this.stride|0,this.options.nodeSize,Float32Array);for(let n=0;n<e.length;n+=this.stride)t.add(e[n],e[n+1]);return t.finish(),t.data=e,t}_addTileFeatures(e,t,n,r,i,o){for(const s of e){const e=s*this.stride,a=t[e+Vot]>1;let l,c,u;if(a)l=Uot(t,e,this.clusterProps),c=t[e],u=t[e+1];else{const n=this.points[t[e+Lot]];l=n.properties;const[r,i]=n.geometry.coordinates;c=Wot(r),u=Hot(i)}const d={type:1,geometry:[[Math.round(this.options.extent*(c*i-n)),Math.round(this.options.extent*(u*i-r))]],tags:l};let h;h=a||this.options.generateId?t[e+Lot]:this.points[t[e+Lot]].id,void 0!==h&&(d.id=h),o.features.push(d)}}_limitZoom(e){return Math.max(this.options.minZoom,Math.min(Math.floor(+e),this.options.maxZoom+1))}_cluster(e,t){const{radius:n,extent:r,reduce:i,minPoints:o}=this.options,s=n/(r*Math.pow(2,t)),a=e.data,l=[],c=this.stride;for(let u=0;u<a.length;u+=c){if(a[u+2]<=t)continue;a[u+2]=t;const n=a[u],r=a[u+1],d=e.within(a[u],a[u+1],s),h=a[u+Vot];let p=h;for(const e of d){const n=e*c;a[n+2]>t&&(p+=a[n+Vot])}if(p>h&&p>=o){let e,o=n*h,s=r*h,f=-1;const g=((u/c|0)<<5)+(t+1)+this.points.length;for(const n of d){const r=n*c;if(a[r+2]<=t)continue;a[r+2]=t;const l=a[r+Vot];o+=a[r]*l,s+=a[r+1]*l,a[r+4]=g,i&&(e||(e=this._map(a,u,!0),f=this.clusterProps.length,this.clusterProps.push(e)),i(e,this._map(a,r)))}a[u+4]=g,l.push(o/p,s/p,1/0,g,-1,p),i&&l.push(f)}else{for(let e=0;e<c;e++)l.push(a[u+e]);if(p>1)for(const e of d){const n=e*c;if(!(a[n+2]<=t)){a[n+2]=t;for(let e=0;e<c;e++)l.push(a[n+e])}}}}return l}_getOriginId(e){return e-this.points.length>>5}_getOriginZoom(e){return(e-this.points.length)%32}_map(e,t,n){if(e[t+Vot]>1){const r=this.clusterProps[e[t+Fot]];return n?Object.assign({},r):r}const r=this.points[e[t+Lot]].properties,i=this.options.map(r);return n&&i===r?Object.assign({},i):i}}function Bot(e,t,n){return{type:"Feature",id:e[t+Lot],properties:Uot(e,t,n),geometry:{type:"Point",coordinates:[qot(e[t]),Xot(e[t+1])]}}}function Uot(e,t,n){const r=e[t+Vot],i=r>=1e4?"".concat(Math.round(r/1e3),"k"):r>=1e3?"".concat(Math.round(r/100)/10,"k"):r,o=e[t+Fot],s=-1===o?{}:Object.assign({},n[o]);return Object.assign(s,{cluster:!0,cluster_id:e[t+Lot],point_count:r,point_count_abbreviated:i})}function Wot(e){return e/360+.5}function Hot(e){const t=Math.sin(e*Math.PI/180),n=.5-.25*Math.log((1+t)/(1-t))/Math.PI;return n<0?0:n>1?1:n}function qot(e){return 360*(e-.5)}function Xot(e){const t=(180-360*e)*Math.PI/180;return 360*Math.atan(Math.exp(t))/Math.PI-90}function Yot(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]])}return n}class Kot{static isAdvancedMarkerAvailable(e){return google.maps.marker&&!0===e.getMapCapabilities().isAdvancedMarkersAvailable}static isAdvancedMarker(e){return google.maps.marker&&e instanceof google.maps.marker.AdvancedMarkerElement}static setMap(e,t){this.isAdvancedMarker(e)?e.map=t:e.setMap(t)}static getPosition(e){if(this.isAdvancedMarker(e)){if(e.position){if(e.position instanceof google.maps.LatLng)return e.position;if(e.position.lat&&e.position.lng)return new google.maps.LatLng(e.position.lat,e.position.lng)}return new google.maps.LatLng(null)}return e.getPosition()}static getVisible(e){return!!this.isAdvancedMarker(e)||e.getVisible()}}class Zot{constructor(e){let{markers:t,position:n}=e;this.markers=t,n&&(n instanceof google.maps.LatLng?this._position=n:this._position=new google.maps.LatLng(n))}get bounds(){if(0===this.markers.length&&!this._position)return;const e=new google.maps.LatLngBounds(this._position,this._position);for(const t of this.markers)e.extend(Kot.getPosition(t));return e}get position(){return this._position||this.bounds.getCenter()}get count(){return this.markers.filter((e=>Kot.getVisible(e))).length}push(e){this.markers.push(e)}delete(){this.marker&&(Kot.setMap(this.marker,null),this.marker=void 0),this.markers.length=0}}class $ot{constructor(e){let{maxZoom:t=16}=e;this.maxZoom=t}noop(e){let{markers:t}=e;return Jot(t)}}const Jot=e=>e.map((e=>new Zot({position:Kot.getPosition(e),markers:[e]})));class Qot extends $ot{constructor(e){var{maxZoom:t,radius:n=60}=e,r=Yot(e,["maxZoom","radius"]);super({maxZoom:t}),this.state={zoom:-1},this.superCluster=new zot(Object.assign({maxZoom:this.maxZoom,radius:n},r))}calculate(e){let t=!1;const n={zoom:e.map.getZoom()};if(!Aot(e.markers,this.markers)){t=!0,this.markers=[...e.markers];const n=this.markers.map((e=>{const t=Kot.getPosition(e);return{type:"Feature",geometry:{type:"Point",coordinates:[t.lng(),t.lat()]},properties:{marker:e}}}));this.superCluster.load(n)}return t||(this.state.zoom<=this.maxZoom||n.zoom<=this.maxZoom)&&(t=!Aot(this.state,n)),this.state=n,t&&(this.clusters=this.cluster(e)),{clusters:this.clusters,changed:t}}cluster(e){let{map:t}=e;return this.superCluster.getClusters([-180,-90,180,90],Math.round(t.getZoom())).map((e=>this.transformCluster(e)))}transformCluster(e){let{geometry:{coordinates:[t,n]},properties:r}=e;if(r.cluster)return new Zot({markers:this.superCluster.getLeaves(r.cluster_id,1/0).map((e=>e.properties.marker)),position:{lat:n,lng:t}});const i=r.marker;return new Zot({markers:[i],position:Kot.getPosition(i)})}}class est{constructor(e,t){this.markers={sum:e.length};const n=t.map((e=>e.count)),r=n.reduce(((e,t)=>e+t),0);this.clusters={count:t.length,markers:{mean:r/t.length,sum:r,min:Math.min(...n),max:Math.max(...n)}}}}class tst{render(e,t,n){let{count:r,position:i}=e;const o=r>Math.max(10,t.clusters.markers.mean)?"#ff0000":"#0000ff",s='<svg fill="'.concat(o,'" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 240 240" width="50" height="50">\n<circle cx="120" cy="120" opacity=".6" r="70" />\n<circle cx="120" cy="120" opacity=".3" r="90" />\n<circle cx="120" cy="120" opacity=".2" r="110" />\n<text x="50%" y="50%" style="fill:#fff" text-anchor="middle" font-size="50" dominant-baseline="middle" font-family="roboto,arial,sans-serif">').concat(r,"</text>\n</svg>"),a="Cluster of ".concat(r," markers"),l=Number(google.maps.Marker.MAX_ZINDEX)+r;if(Kot.isAdvancedMarkerAvailable(n)){const e=(new DOMParser).parseFromString(s,"image/svg+xml").documentElement;e.setAttribute("transform","translate(0 25)");const t={map:n,position:i,zIndex:l,title:a,content:e};return new google.maps.marker.AdvancedMarkerElement(t)}const c={position:i,zIndex:l,title:a,icon:{url:"data:image/svg+xml;base64,".concat(btoa(s)),anchor:new google.maps.Point(25,25)}};return new google.maps.Marker(c)}}class nst{constructor(){!function(e,t){for(let n in t.prototype)e.prototype[n]=t.prototype[n]}(nst,google.maps.OverlayView)}}var rst;!function(e){e.CLUSTERING_BEGIN="clusteringbegin",e.CLUSTERING_END="clusteringend",e.CLUSTER_CLICK="click"}(rst||(rst={}));const ist=(e,t,n)=>{n.fitBounds(t.bounds)};class ost extends nst{constructor(e){let{map:t,markers:n=[],algorithmOptions:r={},algorithm:i=new Qot(r),renderer:o=new tst,onClusterClick:s=ist}=e;super(),this.markers=[...n],this.clusters=[],this.algorithm=i,this.renderer=o,this.onClusterClick=s,t&&this.setMap(t)}addMarker(e,t){this.markers.includes(e)||(this.markers.push(e),t||this.render())}addMarkers(e,t){e.forEach((e=>{this.addMarker(e,!0)})),t||this.render()}removeMarker(e,t){const n=this.markers.indexOf(e);return-1!==n&&(Kot.setMap(e,null),this.markers.splice(n,1),t||this.render(),!0)}removeMarkers(e,t){let n=!1;return e.forEach((e=>{n=this.removeMarker(e,!0)||n})),n&&!t&&this.render(),n}clearMarkers(e){this.markers.length=0,e||this.render()}render(){const e=this.getMap();if(e instanceof google.maps.Map&&e.getProjection()){google.maps.event.trigger(this,rst.CLUSTERING_BEGIN,this);const{clusters:t,changed:n}=this.algorithm.calculate({markers:this.markers,map:e,mapCanvasProjection:this.getProjection()});if(n||void 0==n){const e=new Set;for(const r of t)1==r.markers.length&&e.add(r.markers[0]);const n=[];for(const t of this.clusters)null!=t.marker&&(1==t.markers.length?e.has(t.marker)||Kot.setMap(t.marker,null):n.push(t.marker));this.clusters=t,this.renderClusters(),requestAnimationFrame((()=>n.forEach((e=>Kot.setMap(e,null)))))}google.maps.event.trigger(this,rst.CLUSTERING_END,this)}}onAdd(){this.idleListener=this.getMap().addListener("idle",this.render.bind(this)),this.render()}onRemove(){google.maps.event.removeListener(this.idleListener),this.reset()}reset(){this.markers.forEach((e=>Kot.setMap(e,null))),this.clusters.forEach((e=>e.delete())),this.clusters=[]}renderClusters(){const e=new est(this.markers,this.clusters),t=this.getMap();this.clusters.forEach((n=>{1===n.markers.length?n.marker=n.markers[0]:(n.marker=this.renderer.render(n,e,t),n.markers.forEach((e=>Kot.setMap(e,null))),this.onClusterClick&&n.marker.addListener("click",(e=>{google.maps.event.trigger(this,rst.CLUSTER_CLICK,n),this.onClusterClick(e,n,t)}))),Kot.setMap(n.marker,t)}))}}function sst(e){var t=function(){Rit(!!n.useContext,"useGoogleMap is React hook and requires React version 16.8+");var e=(0,n.useContext)(Dit);return Rit(!!e,"useGoogleMap needs a GoogleMap available up in the tree"),e}(),r=(0,n.useState)(null),i=r[0],o=r[1];return(0,n.useEffect)((function(){if(t&&null===i){var n=new ost(jit(jit({},e),{map:t}));o(n)}}),[t]),i}(0,n.memo)((function(e){var t=e.children,n=sst(e.options);return null!==n?t(n):null}));var ast={onCloseClick:"closeclick",onContentChanged:"content_changed",onDomReady:"domready",onPositionChanged:"position_changed",onZindexChanged:"zindex_changed"},lst={options:function(e,t){e.setOptions(t)},position:function(e,t){e.setPosition(t)},zIndex:function(e,t){e.setZIndex(t)}};(0,n.memo)((function(e){var t=e.children,r=e.anchor,i=e.options,o=e.position,s=e.zIndex,a=e.onCloseClick,l=e.onDomReady,c=e.onContentChanged,u=e.onPositionChanged,d=e.onZindexChanged,h=e.onLoad,p=e.onUnmount,f=(0,n.useContext)(Dit),g=(0,n.useState)(null),m=g[0],y=g[1],v=(0,n.useState)(null),_=v[0],b=v[1],S=(0,n.useState)(null),w=S[0],E=S[1],P=(0,n.useState)(null),C=P[0],A=P[1],k=(0,n.useState)(null),j=k[0],I=k[1],G=(0,n.useState)(null),T=G[0],M=G[1],O=(0,n.useRef)(null);return(0,n.useEffect)((function(){null!==m&&(m.close(),r?m.open(f,r):m.getPosition()&&m.open(f))}),[f,m,r]),(0,n.useEffect)((function(){i&&null!==m&&m.setOptions(i)}),[m,i]),(0,n.useEffect)((function(){o&&null!==m&&m.setPosition(o)}),[o]),(0,n.useEffect)((function(){"number"===typeof s&&null!==m&&m.setZIndex(s)}),[s]),(0,n.useEffect)((function(){m&&a&&(null!==_&&google.maps.event.removeListener(_),b(google.maps.event.addListener(m,"closeclick",a)))}),[a]),(0,n.useEffect)((function(){m&&l&&(null!==w&&google.maps.event.removeListener(w),E(google.maps.event.addListener(m,"domready",l)))}),[l]),(0,n.useEffect)((function(){m&&c&&(null!==C&&google.maps.event.removeListener(C),A(google.maps.event.addListener(m,"content_changed",c)))}),[c]),(0,n.useEffect)((function(){m&&u&&(null!==j&&google.maps.event.removeListener(j),I(google.maps.event.addListener(m,"position_changed",u)))}),[u]),(0,n.useEffect)((function(){m&&d&&(null!==T&&google.maps.event.removeListener(T),M(google.maps.event.addListener(m,"zindex_changed",d)))}),[d]),(0,n.useEffect)((function(){var e=new google.maps.InfoWindow(jit({},i||{}));return y(e),O.current=document.createElement("div"),a&&b(google.maps.event.addListener(e,"closeclick",a)),l&&E(google.maps.event.addListener(e,"domready",l)),c&&A(google.maps.event.addListener(e,"content_changed",c)),u&&I(google.maps.event.addListener(e,"position_changed",u)),d&&M(google.maps.event.addListener(e,"zindex_changed",d)),e.setContent(O.current),o&&e.setPosition(o),s&&e.setZIndex(s),r?e.open(f,r):e.getPosition()?e.open(f):Rit(!1,"You must provide either an anchor (typically render it inside a <Marker>) or a position props for <InfoWindow>."),h&&h(e),function(){_&&google.maps.event.removeListener(_),C&&google.maps.event.removeListener(C),w&&google.maps.event.removeListener(w),j&&google.maps.event.removeListener(j),T&&google.maps.event.removeListener(T),p&&p(e),e.close()}}),[]),O.current?(0,x.createPortal)(n.Children.only(t),O.current):null})),function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.registeredEvents=[],t.containerElement=null,t.state={infoWindow:null},t.open=function(e,n){n?e.open(t.context,n):e.getPosition()?e.open(t.context):Rit(!1,"You must provide either an anchor (typically render it inside a <Marker>) or a position props for <InfoWindow>.")},t.setInfoWindowCallback=function(){null!==t.state.infoWindow&&null!==t.containerElement&&(t.state.infoWindow.setContent(t.containerElement),t.open(t.state.infoWindow,t.props.anchor),t.props.onLoad&&t.props.onLoad(t.state.infoWindow))},t}kit(t,e),t.prototype.componentDidMount=function(){var e=new google.maps.InfoWindow(jit({},this.props.options||{}));this.containerElement=document.createElement("div"),this.registeredEvents=zit({updaterMap:lst,eventMap:ast,prevProps:{},nextProps:this.props,instance:e}),this.setState((function(){return{infoWindow:e}}),this.setInfoWindowCallback)},t.prototype.componentDidUpdate=function(e){null!==this.state.infoWindow&&(Fit(this.registeredEvents),this.registeredEvents=zit({updaterMap:lst,eventMap:ast,prevProps:e,nextProps:this.props,instance:this.state.infoWindow}))},t.prototype.componentWillUnmount=function(){null!==this.state.infoWindow&&(Fit(this.registeredEvents),this.props.onUnmount&&this.props.onUnmount(this.state.infoWindow),this.state.infoWindow.close())},t.prototype.render=function(){return this.containerElement?(0,x.createPortal)(n.Children.only(this.props.children),this.containerElement):null},t.contextType=Dit}(n.PureComponent);var cst={onClick:"click",onDblClick:"dblclick",onDrag:"drag",onDragEnd:"dragend",onDragStart:"dragstart",onMouseDown:"mousedown",onMouseMove:"mousemove",onMouseOut:"mouseout",onMouseOver:"mouseover",onMouseUp:"mouseup",onRightClick:"rightclick"},ust={draggable:function(e,t){e.setDraggable(t)},editable:function(e,t){e.setEditable(t)},map:function(e,t){e.setMap(t)},options:function(e,t){e.setOptions(t)},path:function(e,t){e.setPath(t)},visible:function(e,t){e.setVisible(t)}},dst={};(0,n.memo)((function(e){var t=e.options,r=e.draggable,i=e.editable,o=e.visible,s=e.path,a=e.onDblClick,l=e.onDragEnd,c=e.onDragStart,u=e.onMouseDown,d=e.onMouseMove,h=e.onMouseOut,p=e.onMouseOver,f=e.onMouseUp,g=e.onRightClick,m=e.onClick,y=e.onDrag,v=e.onLoad,_=e.onUnmount,b=(0,n.useContext)(Dit),x=(0,n.useState)(null),S=x[0],w=x[1],E=(0,n.useState)(null),P=E[0],C=E[1],A=(0,n.useState)(null),k=A[0],j=A[1],I=(0,n.useState)(null),G=I[0],T=I[1],M=(0,n.useState)(null),O=M[0],R=M[1],D=(0,n.useState)(null),N=D[0],L=D[1],V=(0,n.useState)(null),F=V[0],z=V[1],B=(0,n.useState)(null),U=B[0],W=B[1],H=(0,n.useState)(null),q=H[0],X=H[1],Y=(0,n.useState)(null),K=Y[0],Z=Y[1],$=(0,n.useState)(null),J=$[0],Q=$[1],ee=(0,n.useState)(null),te=ee[0],ne=ee[1];return(0,n.useEffect)((function(){null!==S&&S.setMap(b)}),[b]),(0,n.useEffect)((function(){"undefined"!==typeof t&&null!==S&&S.setOptions(t)}),[S,t]),(0,n.useEffect)((function(){"undefined"!==typeof r&&null!==S&&S.setDraggable(r)}),[S,r]),(0,n.useEffect)((function(){"undefined"!==typeof i&&null!==S&&S.setEditable(i)}),[S,i]),(0,n.useEffect)((function(){"undefined"!==typeof o&&null!==S&&S.setVisible(o)}),[S,o]),(0,n.useEffect)((function(){"undefined"!==typeof s&&null!==S&&S.setPath(s)}),[S,s]),(0,n.useEffect)((function(){S&&a&&(null!==P&&google.maps.event.removeListener(P),C(google.maps.event.addListener(S,"dblclick",a)))}),[a]),(0,n.useEffect)((function(){S&&l&&(null!==k&&google.maps.event.removeListener(k),j(google.maps.event.addListener(S,"dragend",l)))}),[l]),(0,n.useEffect)((function(){S&&c&&(null!==G&&google.maps.event.removeListener(G),T(google.maps.event.addListener(S,"dragstart",c)))}),[c]),(0,n.useEffect)((function(){S&&u&&(null!==O&&google.maps.event.removeListener(O),R(google.maps.event.addListener(S,"mousedown",u)))}),[u]),(0,n.useEffect)((function(){S&&d&&(null!==N&&google.maps.event.removeListener(N),L(google.maps.event.addListener(S,"mousemove",d)))}),[d]),(0,n.useEffect)((function(){S&&h&&(null!==F&&google.maps.event.removeListener(F),z(google.maps.event.addListener(S,"mouseout",h)))}),[h]),(0,n.useEffect)((function(){S&&p&&(null!==U&&google.maps.event.removeListener(U),W(google.maps.event.addListener(S,"mouseover",p)))}),[p]),(0,n.useEffect)((function(){S&&f&&(null!==q&&google.maps.event.removeListener(q),X(google.maps.event.addListener(S,"mouseup",f)))}),[f]),(0,n.useEffect)((function(){S&&g&&(null!==K&&google.maps.event.removeListener(K),Z(google.maps.event.addListener(S,"rightclick",g)))}),[g]),(0,n.useEffect)((function(){S&&m&&(null!==J&&google.maps.event.removeListener(J),Q(google.maps.event.addListener(S,"click",m)))}),[m]),(0,n.useEffect)((function(){S&&y&&(null!==te&&google.maps.event.removeListener(te),ne(google.maps.event.addListener(S,"drag",y)))}),[y]),(0,n.useEffect)((function(){var e=new google.maps.Polyline(jit(jit({},t||dst),{map:b}));return s&&e.setPath(s),"undefined"!==typeof o&&e.setVisible(o),"undefined"!==typeof i&&e.setEditable(i),"undefined"!==typeof r&&e.setDraggable(r),a&&C(google.maps.event.addListener(e,"dblclick",a)),l&&j(google.maps.event.addListener(e,"dragend",l)),c&&T(google.maps.event.addListener(e,"dragstart",c)),u&&R(google.maps.event.addListener(e,"mousedown",u)),d&&L(google.maps.event.addListener(e,"mousemove",d)),h&&z(google.maps.event.addListener(e,"mouseout",h)),p&&W(google.maps.event.addListener(e,"mouseover",p)),f&&X(google.maps.event.addListener(e,"mouseup",f)),g&&Z(google.maps.event.addListener(e,"rightclick",g)),m&&Q(google.maps.event.addListener(e,"click",m)),y&&ne(google.maps.event.addListener(e,"drag",y)),w(e),v&&v(e),function(){null!==P&&google.maps.event.removeListener(P),null!==k&&google.maps.event.removeListener(k),null!==G&&google.maps.event.removeListener(G),null!==O&&google.maps.event.removeListener(O),null!==N&&google.maps.event.removeListener(N),null!==F&&google.maps.event.removeListener(F),null!==U&&google.maps.event.removeListener(U),null!==q&&google.maps.event.removeListener(q),null!==K&&google.maps.event.removeListener(K),null!==J&&google.maps.event.removeListener(J),_&&_(e),e.setMap(null)}}),[]),null})),function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.registeredEvents=[],t.state={polyline:null},t.setPolylineCallback=function(){null!==t.state.polyline&&t.props.onLoad&&t.props.onLoad(t.state.polyline)},t}kit(t,e),t.prototype.componentDidMount=function(){var e=new google.maps.Polyline(jit(jit({},this.props.options||{}),{map:this.context}));this.registeredEvents=zit({updaterMap:ust,eventMap:cst,prevProps:{},nextProps:this.props,instance:e}),this.setState((function(){return{polyline:e}}),this.setPolylineCallback)},t.prototype.componentDidUpdate=function(e){null!==this.state.polyline&&(Fit(this.registeredEvents),this.registeredEvents=zit({updaterMap:ust,eventMap:cst,prevProps:e,nextProps:this.props,instance:this.state.polyline}))},t.prototype.componentWillUnmount=function(){null!==this.state.polyline&&(this.props.onUnmount&&this.props.onUnmount(this.state.polyline),Fit(this.registeredEvents),this.state.polyline.setMap(null))},t.prototype.render=function(){return null},t.contextType=Dit}(n.PureComponent);var hst={onClick:"click",onDblClick:"dblclick",onDrag:"drag",onDragEnd:"dragend",onDragStart:"dragstart",onMouseDown:"mousedown",onMouseMove:"mousemove",onMouseOut:"mouseout",onMouseOver:"mouseover",onMouseUp:"mouseup",onRightClick:"rightclick"},pst={draggable:function(e,t){e.setDraggable(t)},editable:function(e,t){e.setEditable(t)},map:function(e,t){e.setMap(t)},options:function(e,t){e.setOptions(t)},path:function(e,t){e.setPath(t)},paths:function(e,t){e.setPaths(t)},visible:function(e,t){e.setVisible(t)}};(0,n.memo)((function(e){var t=e.options,r=e.draggable,i=e.editable,o=e.visible,s=e.path,a=e.paths,l=e.onDblClick,c=e.onDragEnd,u=e.onDragStart,d=e.onMouseDown,h=e.onMouseMove,p=e.onMouseOut,f=e.onMouseOver,g=e.onMouseUp,m=e.onRightClick,y=e.onClick,v=e.onDrag,_=e.onLoad,b=e.onUnmount,x=e.onEdit,S=(0,n.useContext)(Dit),w=(0,n.useState)(null),E=w[0],P=w[1],C=(0,n.useState)(null),A=C[0],k=C[1],j=(0,n.useState)(null),I=j[0],G=j[1],T=(0,n.useState)(null),M=T[0],O=T[1],R=(0,n.useState)(null),D=R[0],N=R[1],L=(0,n.useState)(null),V=L[0],F=L[1],z=(0,n.useState)(null),B=z[0],U=z[1],W=(0,n.useState)(null),H=W[0],q=W[1],X=(0,n.useState)(null),Y=X[0],K=X[1],Z=(0,n.useState)(null),$=Z[0],J=Z[1],Q=(0,n.useState)(null),ee=Q[0],te=Q[1],ne=(0,n.useState)(null),re=ne[0],ie=ne[1];return(0,n.useEffect)((function(){null!==E&&E.setMap(S)}),[S]),(0,n.useEffect)((function(){"undefined"!==typeof t&&null!==E&&E.setOptions(t)}),[E,t]),(0,n.useEffect)((function(){"undefined"!==typeof r&&null!==E&&E.setDraggable(r)}),[E,r]),(0,n.useEffect)((function(){"undefined"!==typeof i&&null!==E&&E.setEditable(i)}),[E,i]),(0,n.useEffect)((function(){"undefined"!==typeof o&&null!==E&&E.setVisible(o)}),[E,o]),(0,n.useEffect)((function(){"undefined"!==typeof s&&null!==E&&E.setPath(s)}),[E,s]),(0,n.useEffect)((function(){"undefined"!==typeof a&&null!==E&&E.setPaths(a)}),[E,a]),(0,n.useEffect)((function(){E&&l&&(null!==A&&google.maps.event.removeListener(A),k(google.maps.event.addListener(E,"dblclick",l)))}),[l]),(0,n.useEffect)((function(){E&&(google.maps.event.addListener(E.getPath(),"insert_at",(function(){null===x||void 0===x||x(E)})),google.maps.event.addListener(E.getPath(),"set_at",(function(){null===x||void 0===x||x(E)})))}),[E,x]),(0,n.useEffect)((function(){E&&c&&(null!==I&&google.maps.event.removeListener(I),G(google.maps.event.addListener(E,"dragend",c)))}),[c]),(0,n.useEffect)((function(){E&&u&&(null!==M&&google.maps.event.removeListener(M),O(google.maps.event.addListener(E,"dragstart",u)))}),[u]),(0,n.useEffect)((function(){E&&d&&(null!==D&&google.maps.event.removeListener(D),N(google.maps.event.addListener(E,"mousedown",d)))}),[d]),(0,n.useEffect)((function(){E&&h&&(null!==V&&google.maps.event.removeListener(V),F(google.maps.event.addListener(E,"mousemove",h)))}),[h]),(0,n.useEffect)((function(){E&&p&&(null!==B&&google.maps.event.removeListener(B),U(google.maps.event.addListener(E,"mouseout",p)))}),[p]),(0,n.useEffect)((function(){E&&f&&(null!==H&&google.maps.event.removeListener(H),q(google.maps.event.addListener(E,"mouseover",f)))}),[f]),(0,n.useEffect)((function(){E&&g&&(null!==Y&&google.maps.event.removeListener(Y),K(google.maps.event.addListener(E,"mouseup",g)))}),[g]),(0,n.useEffect)((function(){E&&m&&(null!==$&&google.maps.event.removeListener($),J(google.maps.event.addListener(E,"rightclick",m)))}),[m]),(0,n.useEffect)((function(){E&&y&&(null!==ee&&google.maps.event.removeListener(ee),te(google.maps.event.addListener(E,"click",y)))}),[y]),(0,n.useEffect)((function(){E&&v&&(null!==re&&google.maps.event.removeListener(re),ie(google.maps.event.addListener(E,"drag",v)))}),[v]),(0,n.useEffect)((function(){var e=new google.maps.Polygon(jit(jit({},t||{}),{map:S}));return s&&e.setPath(s),a&&e.setPaths(a),"undefined"!==typeof o&&e.setVisible(o),"undefined"!==typeof i&&e.setEditable(i),"undefined"!==typeof r&&e.setDraggable(r),l&&k(google.maps.event.addListener(e,"dblclick",l)),c&&G(google.maps.event.addListener(e,"dragend",c)),u&&O(google.maps.event.addListener(e,"dragstart",u)),d&&N(google.maps.event.addListener(e,"mousedown",d)),h&&F(google.maps.event.addListener(e,"mousemove",h)),p&&U(google.maps.event.addListener(e,"mouseout",p)),f&&q(google.maps.event.addListener(e,"mouseover",f)),g&&K(google.maps.event.addListener(e,"mouseup",g)),m&&J(google.maps.event.addListener(e,"rightclick",m)),y&&te(google.maps.event.addListener(e,"click",y)),v&&ie(google.maps.event.addListener(e,"drag",v)),P(e),_&&_(e),function(){null!==A&&google.maps.event.removeListener(A),null!==I&&google.maps.event.removeListener(I),null!==M&&google.maps.event.removeListener(M),null!==D&&google.maps.event.removeListener(D),null!==V&&google.maps.event.removeListener(V),null!==B&&google.maps.event.removeListener(B),null!==H&&google.maps.event.removeListener(H),null!==Y&&google.maps.event.removeListener(Y),null!==$&&google.maps.event.removeListener($),null!==ee&&google.maps.event.removeListener(ee),b&&b(e),e.setMap(null)}}),[]),null})),function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.registeredEvents=[],t.state={polygon:null},t.setPolygonCallback=function(){null!==t.state.polygon&&t.props.onLoad&&t.props.onLoad(t.state.polygon)},t}kit(t,e),t.prototype.componentDidMount=function(){var e=new google.maps.Polygon(jit(jit({},this.props.options||{}),{map:this.context}));this.registeredEvents=zit({updaterMap:pst,eventMap:hst,prevProps:{},nextProps:this.props,instance:e}),this.setState((function(){return{polygon:e}}),this.setPolygonCallback)},t.prototype.componentDidUpdate=function(e){null!==this.state.polygon&&(Fit(this.registeredEvents),this.registeredEvents=zit({updaterMap:pst,eventMap:hst,prevProps:e,nextProps:this.props,instance:this.state.polygon}))},t.prototype.componentWillUnmount=function(){null!==this.state.polygon&&(this.props.onUnmount&&this.props.onUnmount(this.state.polygon),Fit(this.registeredEvents),this.state.polygon&&this.state.polygon.setMap(null))},t.prototype.render=function(){return null},t.contextType=Dit}(n.PureComponent);var fst={onBoundsChanged:"bounds_changed",onClick:"click",onDblClick:"dblclick",onDrag:"drag",onDragEnd:"dragend",onDragStart:"dragstart",onMouseDown:"mousedown",onMouseMove:"mousemove",onMouseOut:"mouseout",onMouseOver:"mouseover",onMouseUp:"mouseup",onRightClick:"rightclick"},gst={bounds:function(e,t){e.setBounds(t)},draggable:function(e,t){e.setDraggable(t)},editable:function(e,t){e.setEditable(t)},map:function(e,t){e.setMap(t)},options:function(e,t){e.setOptions(t)},visible:function(e,t){e.setVisible(t)}};(0,n.memo)((function(e){var t=e.options,r=e.bounds,i=e.draggable,o=e.editable,s=e.visible,a=e.onDblClick,l=e.onDragEnd,c=e.onDragStart,u=e.onMouseDown,d=e.onMouseMove,h=e.onMouseOut,p=e.onMouseOver,f=e.onMouseUp,g=e.onRightClick,m=e.onClick,y=e.onDrag,v=e.onBoundsChanged,_=e.onLoad,b=e.onUnmount,x=(0,n.useContext)(Dit),S=(0,n.useState)(null),w=S[0],E=S[1],P=(0,n.useState)(null),C=P[0],A=P[1],k=(0,n.useState)(null),j=k[0],I=k[1],G=(0,n.useState)(null),T=G[0],M=G[1],O=(0,n.useState)(null),R=O[0],D=O[1],N=(0,n.useState)(null),L=N[0],V=N[1],F=(0,n.useState)(null),z=F[0],B=F[1],U=(0,n.useState)(null),W=U[0],H=U[1],q=(0,n.useState)(null),X=q[0],Y=q[1],K=(0,n.useState)(null),Z=K[0],$=K[1],J=(0,n.useState)(null),Q=J[0],ee=J[1],te=(0,n.useState)(null),ne=te[0],re=te[1],ie=(0,n.useState)(null),oe=ie[0],se=ie[1];return(0,n.useEffect)((function(){null!==w&&w.setMap(x)}),[x]),(0,n.useEffect)((function(){"undefined"!==typeof t&&null!==w&&w.setOptions(t)}),[w,t]),(0,n.useEffect)((function(){"undefined"!==typeof i&&null!==w&&w.setDraggable(i)}),[w,i]),(0,n.useEffect)((function(){"undefined"!==typeof o&&null!==w&&w.setEditable(o)}),[w,o]),(0,n.useEffect)((function(){"undefined"!==typeof s&&null!==w&&w.setVisible(s)}),[w,s]),(0,n.useEffect)((function(){"undefined"!==typeof r&&null!==w&&w.setBounds(r)}),[w,r]),(0,n.useEffect)((function(){w&&a&&(null!==C&&google.maps.event.removeListener(C),A(google.maps.event.addListener(w,"dblclick",a)))}),[a]),(0,n.useEffect)((function(){w&&l&&(null!==j&&google.maps.event.removeListener(j),I(google.maps.event.addListener(w,"dragend",l)))}),[l]),(0,n.useEffect)((function(){w&&c&&(null!==T&&google.maps.event.removeListener(T),M(google.maps.event.addListener(w,"dragstart",c)))}),[c]),(0,n.useEffect)((function(){w&&u&&(null!==R&&google.maps.event.removeListener(R),D(google.maps.event.addListener(w,"mousedown",u)))}),[u]),(0,n.useEffect)((function(){w&&d&&(null!==L&&google.maps.event.removeListener(L),V(google.maps.event.addListener(w,"mousemove",d)))}),[d]),(0,n.useEffect)((function(){w&&h&&(null!==z&&google.maps.event.removeListener(z),B(google.maps.event.addListener(w,"mouseout",h)))}),[h]),(0,n.useEffect)((function(){w&&p&&(null!==W&&google.maps.event.removeListener(W),H(google.maps.event.addListener(w,"mouseover",p)))}),[p]),(0,n.useEffect)((function(){w&&f&&(null!==X&&google.maps.event.removeListener(X),Y(google.maps.event.addListener(w,"mouseup",f)))}),[f]),(0,n.useEffect)((function(){w&&g&&(null!==Z&&google.maps.event.removeListener(Z),$(google.maps.event.addListener(w,"rightclick",g)))}),[g]),(0,n.useEffect)((function(){w&&m&&(null!==Q&&google.maps.event.removeListener(Q),ee(google.maps.event.addListener(w,"click",m)))}),[m]),(0,n.useEffect)((function(){w&&y&&(null!==ne&&google.maps.event.removeListener(ne),re(google.maps.event.addListener(w,"drag",y)))}),[y]),(0,n.useEffect)((function(){w&&v&&(null!==oe&&google.maps.event.removeListener(oe),se(google.maps.event.addListener(w,"bounds_changed",v)))}),[v]),(0,n.useEffect)((function(){var e=new google.maps.Rectangle(jit(jit({},t||{}),{map:x}));return"undefined"!==typeof s&&e.setVisible(s),"undefined"!==typeof o&&e.setEditable(o),"undefined"!==typeof i&&e.setDraggable(i),"undefined"!==typeof r&&e.setBounds(r),a&&A(google.maps.event.addListener(e,"dblclick",a)),l&&I(google.maps.event.addListener(e,"dragend",l)),c&&M(google.maps.event.addListener(e,"dragstart",c)),u&&D(google.maps.event.addListener(e,"mousedown",u)),d&&V(google.maps.event.addListener(e,"mousemove",d)),h&&B(google.maps.event.addListener(e,"mouseout",h)),p&&H(google.maps.event.addListener(e,"mouseover",p)),f&&Y(google.maps.event.addListener(e,"mouseup",f)),g&&$(google.maps.event.addListener(e,"rightclick",g)),m&&ee(google.maps.event.addListener(e,"click",m)),y&&re(google.maps.event.addListener(e,"drag",y)),v&&se(google.maps.event.addListener(e,"bounds_changed",v)),E(e),_&&_(e),function(){null!==C&&google.maps.event.removeListener(C),null!==j&&google.maps.event.removeListener(j),null!==T&&google.maps.event.removeListener(T),null!==R&&google.maps.event.removeListener(R),null!==L&&google.maps.event.removeListener(L),null!==z&&google.maps.event.removeListener(z),null!==W&&google.maps.event.removeListener(W),null!==X&&google.maps.event.removeListener(X),null!==Z&&google.maps.event.removeListener(Z),null!==Q&&google.maps.event.removeListener(Q),null!==ne&&google.maps.event.removeListener(ne),null!==oe&&google.maps.event.removeListener(oe),b&&b(e),e.setMap(null)}}),[]),null})),function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.registeredEvents=[],t.state={rectangle:null},t.setRectangleCallback=function(){null!==t.state.rectangle&&t.props.onLoad&&t.props.onLoad(t.state.rectangle)},t}kit(t,e),t.prototype.componentDidMount=function(){var e=new google.maps.Rectangle(jit(jit({},this.props.options||{}),{map:this.context}));this.registeredEvents=zit({updaterMap:gst,eventMap:fst,prevProps:{},nextProps:this.props,instance:e}),this.setState((function(){return{rectangle:e}}),this.setRectangleCallback)},t.prototype.componentDidUpdate=function(e){null!==this.state.rectangle&&(Fit(this.registeredEvents),this.registeredEvents=zit({updaterMap:gst,eventMap:fst,prevProps:e,nextProps:this.props,instance:this.state.rectangle}))},t.prototype.componentWillUnmount=function(){null!==this.state.rectangle&&(this.props.onUnmount&&this.props.onUnmount(this.state.rectangle),Fit(this.registeredEvents),this.state.rectangle.setMap(null))},t.prototype.render=function(){return null},t.contextType=Dit}(n.PureComponent);var mst={onCenterChanged:"center_changed",onRadiusChanged:"radius_changed",onClick:"click",onDblClick:"dblclick",onDrag:"drag",onDragEnd:"dragend",onDragStart:"dragstart",onMouseDown:"mousedown",onMouseMove:"mousemove",onMouseOut:"mouseout",onMouseOver:"mouseover",onMouseUp:"mouseup",onRightClick:"rightclick"},yst={center:function(e,t){e.setCenter(t)},draggable:function(e,t){e.setDraggable(t)},editable:function(e,t){e.setEditable(t)},map:function(e,t){e.setMap(t)},options:function(e,t){e.setOptions(t)},radius:function(e,t){e.setRadius(t)},visible:function(e,t){e.setVisible(t)}},vst={};(0,n.memo)((function(e){var t=e.options,r=e.center,i=e.radius,o=e.draggable,s=e.editable,a=e.visible,l=e.onDblClick,c=e.onDragEnd,u=e.onDragStart,d=e.onMouseDown,h=e.onMouseMove,p=e.onMouseOut,f=e.onMouseOver,g=e.onMouseUp,m=e.onRightClick,y=e.onClick,v=e.onDrag,_=e.onCenterChanged,b=e.onRadiusChanged,x=e.onLoad,S=e.onUnmount,w=(0,n.useContext)(Dit),E=(0,n.useState)(null),P=E[0],C=E[1],A=(0,n.useState)(null),k=A[0],j=A[1],I=(0,n.useState)(null),G=I[0],T=I[1],M=(0,n.useState)(null),O=M[0],R=M[1],D=(0,n.useState)(null),N=D[0],L=D[1],V=(0,n.useState)(null),F=V[0],z=V[1],B=(0,n.useState)(null),U=B[0],W=B[1],H=(0,n.useState)(null),q=H[0],X=H[1],Y=(0,n.useState)(null),K=Y[0],Z=Y[1],$=(0,n.useState)(null),J=$[0],Q=$[1],ee=(0,n.useState)(null),te=ee[0],ne=ee[1],re=(0,n.useState)(null),ie=re[0],oe=re[1],se=(0,n.useState)(null),ae=se[0],le=se[1],ce=(0,n.useState)(null),ue=ce[0],de=ce[1];return(0,n.useEffect)((function(){null!==P&&P.setMap(w)}),[w]),(0,n.useEffect)((function(){"undefined"!==typeof t&&null!==P&&P.setOptions(t)}),[P,t]),(0,n.useEffect)((function(){"undefined"!==typeof o&&null!==P&&P.setDraggable(o)}),[P,o]),(0,n.useEffect)((function(){"undefined"!==typeof s&&null!==P&&P.setEditable(s)}),[P,s]),(0,n.useEffect)((function(){"undefined"!==typeof a&&null!==P&&P.setVisible(a)}),[P,a]),(0,n.useEffect)((function(){"number"===typeof i&&null!==P&&P.setRadius(i)}),[P,i]),(0,n.useEffect)((function(){"undefined"!==typeof r&&null!==P&&P.setCenter(r)}),[P,r]),(0,n.useEffect)((function(){P&&l&&(null!==k&&google.maps.event.removeListener(k),j(google.maps.event.addListener(P,"dblclick",l)))}),[l]),(0,n.useEffect)((function(){P&&c&&(null!==G&&google.maps.event.removeListener(G),T(google.maps.event.addListener(P,"dragend",c)))}),[c]),(0,n.useEffect)((function(){P&&u&&(null!==O&&google.maps.event.removeListener(O),R(google.maps.event.addListener(P,"dragstart",u)))}),[u]),(0,n.useEffect)((function(){P&&d&&(null!==N&&google.maps.event.removeListener(N),L(google.maps.event.addListener(P,"mousedown",d)))}),[d]),(0,n.useEffect)((function(){P&&h&&(null!==F&&google.maps.event.removeListener(F),z(google.maps.event.addListener(P,"mousemove",h)))}),[h]),(0,n.useEffect)((function(){P&&p&&(null!==U&&google.maps.event.removeListener(U),W(google.maps.event.addListener(P,"mouseout",p)))}),[p]),(0,n.useEffect)((function(){P&&f&&(null!==q&&google.maps.event.removeListener(q),X(google.maps.event.addListener(P,"mouseover",f)))}),[f]),(0,n.useEffect)((function(){P&&g&&(null!==K&&google.maps.event.removeListener(K),Z(google.maps.event.addListener(P,"mouseup",g)))}),[g]),(0,n.useEffect)((function(){P&&m&&(null!==J&&google.maps.event.removeListener(J),Q(google.maps.event.addListener(P,"rightclick",m)))}),[m]),(0,n.useEffect)((function(){P&&y&&(null!==te&&google.maps.event.removeListener(te),ne(google.maps.event.addListener(P,"click",y)))}),[y]),(0,n.useEffect)((function(){P&&v&&(null!==ie&&google.maps.event.removeListener(ie),oe(google.maps.event.addListener(P,"drag",v)))}),[v]),(0,n.useEffect)((function(){P&&_&&(null!==ae&&google.maps.event.removeListener(ae),le(google.maps.event.addListener(P,"center_changed",_)))}),[y]),(0,n.useEffect)((function(){P&&b&&(null!==ue&&google.maps.event.removeListener(ue),de(google.maps.event.addListener(P,"radius_changed",b)))}),[b]),(0,n.useEffect)((function(){var e=new google.maps.Circle(jit(jit({},t||vst),{map:w}));return"number"===typeof i&&e.setRadius(i),"undefined"!==typeof r&&e.setCenter(r),"number"===typeof i&&e.setRadius(i),"undefined"!==typeof a&&e.setVisible(a),"undefined"!==typeof s&&e.setEditable(s),"undefined"!==typeof o&&e.setDraggable(o),l&&j(google.maps.event.addListener(e,"dblclick",l)),c&&T(google.maps.event.addListener(e,"dragend",c)),u&&R(google.maps.event.addListener(e,"dragstart",u)),d&&L(google.maps.event.addListener(e,"mousedown",d)),h&&z(google.maps.event.addListener(e,"mousemove",h)),p&&W(google.maps.event.addListener(e,"mouseout",p)),f&&X(google.maps.event.addListener(e,"mouseover",f)),g&&Z(google.maps.event.addListener(e,"mouseup",g)),m&&Q(google.maps.event.addListener(e,"rightclick",m)),y&&ne(google.maps.event.addListener(e,"click",y)),v&&oe(google.maps.event.addListener(e,"drag",v)),_&&le(google.maps.event.addListener(e,"center_changed",_)),b&&de(google.maps.event.addListener(e,"radius_changed",b)),C(e),x&&x(e),function(){null!==k&&google.maps.event.removeListener(k),null!==G&&google.maps.event.removeListener(G),null!==O&&google.maps.event.removeListener(O),null!==N&&google.maps.event.removeListener(N),null!==F&&google.maps.event.removeListener(F),null!==U&&google.maps.event.removeListener(U),null!==q&&google.maps.event.removeListener(q),null!==K&&google.maps.event.removeListener(K),null!==J&&google.maps.event.removeListener(J),null!==te&&google.maps.event.removeListener(te),null!==ae&&google.maps.event.removeListener(ae),null!==ue&&google.maps.event.removeListener(ue),S&&S(e),e.setMap(null)}}),[]),null})),function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.registeredEvents=[],t.state={circle:null},t.setCircleCallback=function(){null!==t.state.circle&&t.props.onLoad&&t.props.onLoad(t.state.circle)},t}kit(t,e),t.prototype.componentDidMount=function(){var e=new google.maps.Circle(jit(jit({},this.props.options||{}),{map:this.context}));this.registeredEvents=zit({updaterMap:yst,eventMap:mst,prevProps:{},nextProps:this.props,instance:e}),this.setState((function(){return{circle:e}}),this.setCircleCallback)},t.prototype.componentDidUpdate=function(e){null!==this.state.circle&&(Fit(this.registeredEvents),this.registeredEvents=zit({updaterMap:yst,eventMap:mst,prevProps:e,nextProps:this.props,instance:this.state.circle}))},t.prototype.componentWillUnmount=function(){var e;null!==this.state.circle&&(this.props.onUnmount&&this.props.onUnmount(this.state.circle),Fit(this.registeredEvents),null===(e=this.state.circle)||void 0===e||e.setMap(null))},t.prototype.render=function(){return null},t.contextType=Dit}(n.PureComponent);var _st={onClick:"click",onDblClick:"dblclick",onMouseDown:"mousedown",onMouseOut:"mouseout",onMouseOver:"mouseover",onMouseUp:"mouseup",onRightClick:"rightclick",onAddFeature:"addfeature",onRemoveFeature:"removefeature",onRemoveProperty:"removeproperty",onSetGeometry:"setgeometry",onSetProperty:"setproperty"},bst={add:function(e,t){e.add(t)},addgeojson:function(e,t,n){e.addGeoJson(t,n)},contains:function(e,t){e.contains(t)},foreach:function(e,t){e.forEach(t)},loadgeojson:function(e,t,n,r){e.loadGeoJson(t,n,r)},overridestyle:function(e,t,n){e.overrideStyle(t,n)},remove:function(e,t){e.remove(t)},revertstyle:function(e,t){e.revertStyle(t)},controlposition:function(e,t){e.setControlPosition(t)},controls:function(e,t){e.setControls(t)},drawingmode:function(e,t){e.setDrawingMode(t)},map:function(e,t){e.setMap(t)},style:function(e,t){e.setStyle(t)},togeojson:function(e,t){e.toGeoJson(t)}};(0,n.memo)((function(e){var t=e.options,r=e.onClick,i=e.onDblClick,o=e.onMouseDown,s=e.onMouseMove,a=e.onMouseOut,l=e.onMouseOver,c=e.onMouseUp,u=e.onRightClick,d=e.onAddFeature,h=e.onRemoveFeature,p=e.onRemoveProperty,f=e.onSetGeometry,g=e.onSetProperty,m=e.onLoad,y=e.onUnmount,v=(0,n.useContext)(Dit),_=(0,n.useState)(null),b=_[0],x=_[1],S=(0,n.useState)(null),w=S[0],E=S[1],P=(0,n.useState)(null),C=P[0],A=P[1],k=(0,n.useState)(null),j=k[0],I=k[1],G=(0,n.useState)(null),T=G[0],M=G[1],O=(0,n.useState)(null),R=O[0],D=O[1],N=(0,n.useState)(null),L=N[0],V=N[1],F=(0,n.useState)(null),z=F[0],B=F[1],U=(0,n.useState)(null),W=U[0],H=U[1],q=(0,n.useState)(null),X=q[0],Y=q[1],K=(0,n.useState)(null),Z=K[0],$=K[1],J=(0,n.useState)(null),Q=J[0],ee=J[1],te=(0,n.useState)(null),ne=te[0],re=te[1],ie=(0,n.useState)(null),oe=ie[0],se=ie[1];return(0,n.useEffect)((function(){null!==b&&b.setMap(v)}),[v]),(0,n.useEffect)((function(){b&&i&&(null!==w&&google.maps.event.removeListener(w),E(google.maps.event.addListener(b,"dblclick",i)))}),[i]),(0,n.useEffect)((function(){b&&o&&(null!==C&&google.maps.event.removeListener(C),A(google.maps.event.addListener(b,"mousedown",o)))}),[o]),(0,n.useEffect)((function(){b&&s&&(null!==j&&google.maps.event.removeListener(j),I(google.maps.event.addListener(b,"mousemove",s)))}),[s]),(0,n.useEffect)((function(){b&&a&&(null!==T&&google.maps.event.removeListener(T),M(google.maps.event.addListener(b,"mouseout",a)))}),[a]),(0,n.useEffect)((function(){b&&l&&(null!==R&&google.maps.event.removeListener(R),D(google.maps.event.addListener(b,"mouseover",l)))}),[l]),(0,n.useEffect)((function(){b&&c&&(null!==L&&google.maps.event.removeListener(L),V(google.maps.event.addListener(b,"mouseup",c)))}),[c]),(0,n.useEffect)((function(){b&&u&&(null!==z&&google.maps.event.removeListener(z),B(google.maps.event.addListener(b,"rightclick",u)))}),[u]),(0,n.useEffect)((function(){b&&r&&(null!==W&&google.maps.event.removeListener(W),H(google.maps.event.addListener(b,"click",r)))}),[r]),(0,n.useEffect)((function(){b&&d&&(null!==X&&google.maps.event.removeListener(X),Y(google.maps.event.addListener(b,"addfeature",d)))}),[d]),(0,n.useEffect)((function(){b&&h&&(null!==Z&&google.maps.event.removeListener(Z),$(google.maps.event.addListener(b,"removefeature",h)))}),[h]),(0,n.useEffect)((function(){b&&p&&(null!==Q&&google.maps.event.removeListener(Q),ee(google.maps.event.addListener(b,"removeproperty",p)))}),[p]),(0,n.useEffect)((function(){b&&f&&(null!==ne&&google.maps.event.removeListener(ne),re(google.maps.event.addListener(b,"setgeometry",f)))}),[f]),(0,n.useEffect)((function(){b&&g&&(null!==oe&&google.maps.event.removeListener(oe),se(google.maps.event.addListener(b,"setproperty",g)))}),[g]),(0,n.useEffect)((function(){if(null!==v){var e=new google.maps.Data(jit(jit({},t||{}),{map:v}));i&&E(google.maps.event.addListener(e,"dblclick",i)),o&&A(google.maps.event.addListener(e,"mousedown",o)),s&&I(google.maps.event.addListener(e,"mousemove",s)),a&&M(google.maps.event.addListener(e,"mouseout",a)),l&&D(google.maps.event.addListener(e,"mouseover",l)),c&&V(google.maps.event.addListener(e,"mouseup",c)),u&&B(google.maps.event.addListener(e,"rightclick",u)),r&&H(google.maps.event.addListener(e,"click",r)),d&&Y(google.maps.event.addListener(e,"addfeature",d)),h&&$(google.maps.event.addListener(e,"removefeature",h)),p&&ee(google.maps.event.addListener(e,"removeproperty",p)),f&&re(google.maps.event.addListener(e,"setgeometry",f)),g&&se(google.maps.event.addListener(e,"setproperty",g)),x(e),m&&m(e)}return function(){b&&(null!==w&&google.maps.event.removeListener(w),null!==C&&google.maps.event.removeListener(C),null!==j&&google.maps.event.removeListener(j),null!==T&&google.maps.event.removeListener(T),null!==R&&google.maps.event.removeListener(R),null!==L&&google.maps.event.removeListener(L),null!==z&&google.maps.event.removeListener(z),null!==W&&google.maps.event.removeListener(W),null!==X&&google.maps.event.removeListener(X),null!==Z&&google.maps.event.removeListener(Z),null!==Q&&google.maps.event.removeListener(Q),null!==ne&&google.maps.event.removeListener(ne),null!==oe&&google.maps.event.removeListener(oe),y&&y(b),b.setMap(null))}}),[]),null})),function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.registeredEvents=[],t.state={data:null},t.setDataCallback=function(){null!==t.state.data&&t.props.onLoad&&t.props.onLoad(t.state.data)},t}kit(t,e),t.prototype.componentDidMount=function(){if(null!==this.context){var e=new google.maps.Data(jit(jit({},this.props.options||{}),{map:this.context}));this.registeredEvents=zit({updaterMap:bst,eventMap:_st,prevProps:{},nextProps:this.props,instance:e}),this.setState((function(){return{data:e}}),this.setDataCallback)}},t.prototype.componentDidUpdate=function(e){null!==this.state.data&&(Fit(this.registeredEvents),this.registeredEvents=zit({updaterMap:bst,eventMap:_st,prevProps:e,nextProps:this.props,instance:this.state.data}))},t.prototype.componentWillUnmount=function(){null!==this.state.data&&(this.props.onUnmount&&this.props.onUnmount(this.state.data),Fit(this.registeredEvents),this.state.data&&this.state.data.setMap(null))},t.prototype.render=function(){return null},t.contextType=Dit}(n.PureComponent);var xst={onClick:"click",onDefaultViewportChanged:"defaultviewport_changed",onStatusChanged:"status_changed"},Sst={options:function(e,t){e.setOptions(t)},url:function(e,t){e.setUrl(t)},zIndex:function(e,t){e.setZIndex(t)}};!function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.registeredEvents=[],t.state={kmlLayer:null},t.setKmlLayerCallback=function(){null!==t.state.kmlLayer&&t.props.onLoad&&t.props.onLoad(t.state.kmlLayer)},t}kit(t,e),t.prototype.componentDidMount=function(){var e=new google.maps.KmlLayer(jit(jit({},this.props.options),{map:this.context}));this.registeredEvents=zit({updaterMap:Sst,eventMap:xst,prevProps:{},nextProps:this.props,instance:e}),this.setState((function(){return{kmlLayer:e}}),this.setKmlLayerCallback)},t.prototype.componentDidUpdate=function(e){null!==this.state.kmlLayer&&(Fit(this.registeredEvents),this.registeredEvents=zit({updaterMap:Sst,eventMap:xst,prevProps:e,nextProps:this.props,instance:this.state.kmlLayer}))},t.prototype.componentWillUnmount=function(){null!==this.state.kmlLayer&&(this.props.onUnmount&&this.props.onUnmount(this.state.kmlLayer),Fit(this.registeredEvents),this.state.kmlLayer.setMap(null))},t.prototype.render=function(){return null},t.contextType=Dit}(n.PureComponent);function wst(e,t){return"function"===typeof t?t(e.offsetWidth,e.offsetHeight):{x:0,y:0}}function Est(e,t){return new t(e.lat,e.lng)}function Pst(e,t){return new t(new google.maps.LatLng(e.ne.lat,e.ne.lng),new google.maps.LatLng(e.sw.lat,e.sw.lng))}function Cst(e,t,n,r){return void 0!==n?function(e,t,n){var r=e&&e.fromLatLngToDivPixel(n.getNorthEast()),i=e&&e.fromLatLngToDivPixel(n.getSouthWest());return r&&i?{left:"".concat(i.x+t.x,"px"),top:"".concat(r.y+t.y,"px"),width:"".concat(r.x-i.x-t.x,"px"),height:"".concat(i.y-r.y-t.y,"px")}:{left:"-9999px",top:"-9999px"}}(e,t,(i=n,o=google.maps.LatLngBounds,s=Pst,i instanceof o?i:s(i,o))):function(e,t,n){var r=e&&e.fromLatLngToDivPixel(n);if(r){var i=r.x,o=r.y;return{left:"".concat(i+t.x,"px"),top:"".concat(o+t.y,"px")}}return{left:"-9999px",top:"-9999px"}}(e,t,function(e,t,n){return e instanceof t?e:n(e,t)}(r,google.maps.LatLng,Est));var i,o,s}function Ast(e){return e?(e instanceof google.maps.LatLng?e:new google.maps.LatLng(e.lat,e.lng))+"":""}function kst(e){return e?(e instanceof google.maps.LatLngBounds?e:new google.maps.LatLngBounds(new google.maps.LatLng(e.south,e.east),new google.maps.LatLng(e.north,e.west)))+"":""}(0,n.memo)((function(e){var t=e.position,r=e.bounds,i=e.mapPaneName,o=e.zIndex,s=e.onLoad,a=e.onUnmount,l=e.getPixelPositionOffset,c=e.children,u=(0,n.useContext)(Dit),d=(0,n.useMemo)((function(){var e=document.createElement("div");return e.style.position="absolute",e}),[]),h=(0,n.useMemo)((function(){return function(e,t,n,r,i){var o=function(e){function t(t,n,r,i){var o=e.call(this)||this;return o.container=t,o.pane=n,o.position=r,o.bounds=i,o}return kit(t,e),t.prototype.onAdd=function(){var e,t=null===(e=this.getPanes())||void 0===e?void 0:e[this.pane];null===t||void 0===t||t.appendChild(this.container)},t.prototype.draw=function(){for(var e=Cst(this.getProjection(),jit({},this.container?wst(this.container,i):{x:0,y:0}),this.bounds,this.position),t=0,n=Object.entries(e);t<n.length;t++){var r=n[t],o=r[0],s=r[1];this.container.style[o]=s}},t.prototype.onRemove=function(){null!==this.container.parentNode&&this.container.parentNode.removeChild(this.container)},t}(google.maps.OverlayView);return new o(e,t,n,r)}(d,i,t,r,l)}),[d,i,t,r]);return(0,n.useEffect)((function(){return null===s||void 0===s||s(h),null===h||void 0===h||h.setMap(u),function(){null===a||void 0===a||a(h),null===h||void 0===h||h.setMap(null)}}),[u,h]),(0,n.useEffect)((function(){d.style.zIndex="".concat(o)}),[o,d]),x.createPortal(c,d)})),function(e){function t(t){var r=e.call(this,t)||this;r.state={paneEl:null,containerStyle:{position:"absolute"}},r.updatePane=function(){var e=r.props.mapPaneName,t=r.overlayView.getPanes();Rit(!!e,"OverlayView requires props.mapPaneName but got %s",e),t?r.setState({paneEl:t[e]}):r.setState({paneEl:null})},r.onAdd=function(){var e,t;r.updatePane(),null===(t=(e=r.props).onLoad)||void 0===t||t.call(e,r.overlayView)},r.onPositionElement=function(){var e,t,n=Cst(r.overlayView.getProjection(),jit({x:0,y:0},r.containerRef.current?wst(r.containerRef.current,r.props.getPixelPositionOffset):{}),r.props.bounds,r.props.position),i=r.state.containerStyle,o=i.left,s=i.top,a=i.width,l=i.height;t={left:o,top:s,width:a,height:l},((e=n).left!==t.left||e.top!==t.top||e.width!==t.height||e.height!==t.height)&&r.setState({containerStyle:{top:n.top||0,left:n.left||0,width:n.width||0,height:n.height||0,position:"absolute"}})},r.draw=function(){r.onPositionElement()},r.onRemove=function(){var e,t;r.setState((function(){return{paneEl:null}})),null===(t=(e=r.props).onUnmount)||void 0===t||t.call(e,r.overlayView)},r.containerRef=(0,n.createRef)();var i=new google.maps.OverlayView;return i.onAdd=r.onAdd,i.draw=r.draw,i.onRemove=r.onRemove,r.overlayView=i,r}kit(t,e),t.prototype.componentDidMount=function(){this.overlayView.setMap(this.context)},t.prototype.componentDidUpdate=function(e){var t=Ast(e.position),n=Ast(this.props.position),r=kst(e.bounds),i=kst(this.props.bounds);t===n&&r===i||this.overlayView.draw(),e.mapPaneName!==this.props.mapPaneName&&this.updatePane()},t.prototype.componentWillUnmount=function(){this.overlayView.setMap(null)},t.prototype.render=function(){var e=this.state.paneEl;return e?x.createPortal((0,Ae.jsx)("div",{ref:this.containerRef,style:this.state.containerStyle,children:n.Children.only(this.props.children)}),e):null},t.FLOAT_PANE="floatPane",t.MAP_PANE="mapPane",t.MARKER_LAYER="markerLayer",t.OVERLAY_LAYER="overlayLayer",t.OVERLAY_MOUSE_TARGET="overlayMouseTarget",t.contextType=Dit}(n.PureComponent);function jst(){}var Ist={onDblClick:"dblclick",onClick:"click"},Gst={opacity:function(e,t){e.setOpacity(t)}};(0,n.memo)((function(e){var t=e.url,r=e.bounds,i=e.options,o=e.visible,s=(0,n.useContext)(Dit),a=new google.maps.LatLngBounds(new google.maps.LatLng(r.south,r.west),new google.maps.LatLng(r.north,r.east)),l=(0,n.useMemo)((function(){return new google.maps.GroundOverlay(t,a,jit({},i))}),[]);return(0,n.useEffect)((function(){null!==l&&l.setMap(s)}),[s]),(0,n.useEffect)((function(){"undefined"!==typeof t&&null!==l&&(l.set("url",t),l.setMap(s))}),[l,t]),(0,n.useEffect)((function(){"undefined"!==typeof o&&null!==l&&l.setOpacity(o?1:0)}),[l,o]),(0,n.useEffect)((function(){var e=new google.maps.LatLngBounds(new google.maps.LatLng(r.south,r.west),new google.maps.LatLng(r.north,r.east));"undefined"!==typeof r&&null!==l&&(l.set("bounds",e),l.setMap(s))}),[l,r]),null})),function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.registeredEvents=[],t.state={groundOverlay:null},t.setGroundOverlayCallback=function(){null!==t.state.groundOverlay&&t.props.onLoad&&t.props.onLoad(t.state.groundOverlay)},t}kit(t,e),t.prototype.componentDidMount=function(){Rit(!!this.props.url||!!this.props.bounds,"For GroundOverlay, url and bounds are passed in to constructor and are immutable after instantiated. This is the behavior of Google Maps JavaScript API v3 ( See https://developers.google.com/maps/documentation/javascript/reference#GroundOverlay) Hence, use the corresponding two props provided by `react-google-maps-api`, url and bounds. In some cases, you'll need the GroundOverlay component to reflect the changes of url and bounds. You can leverage the React's key property to remount the component. Typically, just `key={url}` would serve your need. See https://github.com/tomchentw/react-google-maps/issues/655");var e=new google.maps.GroundOverlay(this.props.url,this.props.bounds,jit(jit({},this.props.options),{map:this.context}));this.registeredEvents=zit({updaterMap:Gst,eventMap:Ist,prevProps:{},nextProps:this.props,instance:e}),this.setState((function(){return{groundOverlay:e}}),this.setGroundOverlayCallback)},t.prototype.componentDidUpdate=function(e){null!==this.state.groundOverlay&&(Fit(this.registeredEvents),this.registeredEvents=zit({updaterMap:Gst,eventMap:Ist,prevProps:e,nextProps:this.props,instance:this.state.groundOverlay}))},t.prototype.componentWillUnmount=function(){this.state.groundOverlay&&(this.props.onUnmount&&this.props.onUnmount(this.state.groundOverlay),this.state.groundOverlay.setMap(null))},t.prototype.render=function(){return null},t.defaultProps={onLoad:jst},t.contextType=Dit}(n.PureComponent);var Tst={},Mst={data:function(e,t){e.setData(t)},map:function(e,t){e.setMap(t)},options:function(e,t){e.setOptions(t)}};(0,n.memo)((function(e){var t=e.data,r=e.onLoad,i=e.onUnmount,o=e.options,s=(0,n.useContext)(Dit),a=(0,n.useState)(null),l=a[0],c=a[1];return(0,n.useEffect)((function(){google.maps.visualization||Rit(!!google.maps.visualization,'Did you include prop libraries={["visualization"]} in useJsApiScript? %s',google.maps.visualization)}),[]),(0,n.useEffect)((function(){Rit(!!t,"data property is required in HeatmapLayer %s",t)}),[t]),(0,n.useEffect)((function(){null!==l&&l.setMap(s)}),[s]),(0,n.useEffect)((function(){o&&null!==l&&l.setOptions(o)}),[l,o]),(0,n.useEffect)((function(){var e=new google.maps.visualization.HeatmapLayer(jit(jit({},o||{}),{data:t,map:s}));return c(e),r&&r(e),function(){null!==l&&(i&&i(l),l.setMap(null))}}),[]),null})),function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.registeredEvents=[],t.state={heatmapLayer:null},t.setHeatmapLayerCallback=function(){null!==t.state.heatmapLayer&&t.props.onLoad&&t.props.onLoad(t.state.heatmapLayer)},t}kit(t,e),t.prototype.componentDidMount=function(){Rit(!!google.maps.visualization,'Did you include prop libraries={["visualization"]} to <LoadScript />? %s',google.maps.visualization),Rit(!!this.props.data,"data property is required in HeatmapLayer %s",this.props.data);var e=new google.maps.visualization.HeatmapLayer(jit(jit({},this.props.options||{}),{data:this.props.data,map:this.context}));this.registeredEvents=zit({updaterMap:Mst,eventMap:Tst,prevProps:{},nextProps:this.props,instance:e}),this.setState((function(){return{heatmapLayer:e}}),this.setHeatmapLayerCallback)},t.prototype.componentDidUpdate=function(e){Fit(this.registeredEvents),this.registeredEvents=zit({updaterMap:Mst,eventMap:Tst,prevProps:e,nextProps:this.props,instance:this.state.heatmapLayer})},t.prototype.componentWillUnmount=function(){null!==this.state.heatmapLayer&&(this.props.onUnmount&&this.props.onUnmount(this.state.heatmapLayer),Fit(this.registeredEvents),this.state.heatmapLayer.setMap(null))},t.prototype.render=function(){return null},t.contextType=Dit}(n.PureComponent);var Ost={onCloseClick:"closeclick",onPanoChanged:"pano_changed",onPositionChanged:"position_changed",onPovChanged:"pov_changed",onResize:"resize",onStatusChanged:"status_changed",onVisibleChanged:"visible_changed",onZoomChanged:"zoom_changed"},Rst={register:function(e,t,n){e.registerPanoProvider(t,n)},links:function(e,t){e.setLinks(t)},motionTracking:function(e,t){e.setMotionTracking(t)},options:function(e,t){e.setOptions(t)},pano:function(e,t){e.setPano(t)},position:function(e,t){e.setPosition(t)},pov:function(e,t){e.setPov(t)},visible:function(e,t){e.setVisible(t)},zoom:function(e,t){e.setZoom(t)}},Dst=(function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.registeredEvents=[],t.state={streetViewPanorama:null},t.setStreetViewPanoramaCallback=function(){null!==t.state.streetViewPanorama&&t.props.onLoad&&t.props.onLoad(t.state.streetViewPanorama)},t}kit(t,e),t.prototype.componentDidMount=function(){var e,t,n=null!==(t=null===(e=this.context)||void 0===e?void 0:e.getStreetView())&&void 0!==t?t:null;this.registeredEvents=zit({updaterMap:Rst,eventMap:Ost,prevProps:{},nextProps:this.props,instance:n}),this.setState((function(){return{streetViewPanorama:n}}),this.setStreetViewPanoramaCallback)},t.prototype.componentDidUpdate=function(e){null!==this.state.streetViewPanorama&&(Fit(this.registeredEvents),this.registeredEvents=zit({updaterMap:Rst,eventMap:Ost,prevProps:e,nextProps:this.props,instance:this.state.streetViewPanorama}))},t.prototype.componentWillUnmount=function(){null!==this.state.streetViewPanorama&&(this.props.onUnmount&&this.props.onUnmount(this.state.streetViewPanorama),Fit(this.registeredEvents),this.state.streetViewPanorama.setVisible(!1))},t.prototype.render=function(){return null},t.contextType=Dit}(n.PureComponent),function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.state={streetViewService:null},t.setStreetViewServiceCallback=function(){null!==t.state.streetViewService&&t.props.onLoad&&t.props.onLoad(t.state.streetViewService)},t}kit(t,e),t.prototype.componentDidMount=function(){var e=new google.maps.StreetViewService;this.setState((function(){return{streetViewService:e}}),this.setStreetViewServiceCallback)},t.prototype.componentWillUnmount=function(){null!==this.state.streetViewService&&this.props.onUnmount&&this.props.onUnmount(this.state.streetViewService)},t.prototype.render=function(){return null},t.contextType=Dit}(n.PureComponent),function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.state={directionsService:null},t.setDirectionsServiceCallback=function(){null!==t.state.directionsService&&t.props.onLoad&&t.props.onLoad(t.state.directionsService)},t}kit(t,e),t.prototype.componentDidMount=function(){Rit(!!this.props.options,"DirectionsService expected options object as parameter, but got %s",this.props.options);var e=new google.maps.DirectionsService;this.setState((function(){return{directionsService:e}}),this.setDirectionsServiceCallback)},t.prototype.componentDidUpdate=function(){null!==this.state.directionsService&&this.state.directionsService.route(this.props.options,this.props.callback)},t.prototype.componentWillUnmount=function(){null!==this.state.directionsService&&this.props.onUnmount&&this.props.onUnmount(this.state.directionsService)},t.prototype.render=function(){return null}}(n.PureComponent),{onDirectionsChanged:"directions_changed"}),Nst={directions:function(e,t){e.setDirections(t)},map:function(e,t){e.setMap(t)},options:function(e,t){e.setOptions(t)},panel:function(e,t){e.setPanel(t)},routeIndex:function(e,t){e.setRouteIndex(t)}},Lst=(function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.registeredEvents=[],t.state={directionsRenderer:null},t.setDirectionsRendererCallback=function(){null!==t.state.directionsRenderer&&(t.state.directionsRenderer.setMap(t.context),t.props.onLoad&&t.props.onLoad(t.state.directionsRenderer))},t}kit(t,e),t.prototype.componentDidMount=function(){var e=new google.maps.DirectionsRenderer(this.props.options);this.registeredEvents=zit({updaterMap:Nst,eventMap:Dst,prevProps:{},nextProps:this.props,instance:e}),this.setState((function(){return{directionsRenderer:e}}),this.setDirectionsRendererCallback)},t.prototype.componentDidUpdate=function(e){null!==this.state.directionsRenderer&&(Fit(this.registeredEvents),this.registeredEvents=zit({updaterMap:Nst,eventMap:Dst,prevProps:e,nextProps:this.props,instance:this.state.directionsRenderer}))},t.prototype.componentWillUnmount=function(){null!==this.state.directionsRenderer&&(this.props.onUnmount&&this.props.onUnmount(this.state.directionsRenderer),Fit(this.registeredEvents),this.state.directionsRenderer&&this.state.directionsRenderer.setMap(null))},t.prototype.render=function(){return(0,Ae.jsx)(Ae.Fragment,{})},t.contextType=Dit}(n.PureComponent),function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.state={distanceMatrixService:null},t.setDistanceMatrixServiceCallback=function(){null!==t.state.distanceMatrixService&&t.props.onLoad&&t.props.onLoad(t.state.distanceMatrixService)},t}kit(t,e),t.prototype.componentDidMount=function(){Rit(!!this.props.options,"DistanceMatrixService expected options object as parameter, but go %s",this.props.options);var e=new google.maps.DistanceMatrixService;this.setState((function(){return{distanceMatrixService:e}}),this.setDistanceMatrixServiceCallback)},t.prototype.componentDidUpdate=function(){null!==this.state.distanceMatrixService&&this.state.distanceMatrixService.getDistanceMatrix(this.props.options,this.props.callback)},t.prototype.componentWillUnmount=function(){null!==this.state.distanceMatrixService&&this.props.onUnmount&&this.props.onUnmount(this.state.distanceMatrixService)},t.prototype.render=function(){return null}}(n.PureComponent),{onPlacesChanged:"places_changed"}),Vst={bounds:function(e,t){e.setBounds(t)}},Fst=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.registeredEvents=[],t.containerElement=(0,n.createRef)(),t.state={searchBox:null},t.setSearchBoxCallback=function(){null!==t.state.searchBox&&t.props.onLoad&&t.props.onLoad(t.state.searchBox)},t}return kit(t,e),t.prototype.componentDidMount=function(){if(Rit(!!google.maps.places,'You need to provide libraries={["places"]} prop to <LoadScript /> component %s',google.maps.places),null!==this.containerElement&&null!==this.containerElement.current){var e=this.containerElement.current.querySelector("input");if(null!==e){var t=new google.maps.places.SearchBox(e,this.props.options);this.registeredEvents=zit({updaterMap:Vst,eventMap:Lst,prevProps:{},nextProps:this.props,instance:t}),this.setState((function(){return{searchBox:t}}),this.setSearchBoxCallback)}}},t.prototype.componentDidUpdate=function(e){null!==this.state.searchBox&&(Fit(this.registeredEvents),this.registeredEvents=zit({updaterMap:Vst,eventMap:Lst,prevProps:e,nextProps:this.props,instance:this.state.searchBox}))},t.prototype.componentWillUnmount=function(){null!==this.state.searchBox&&(this.props.onUnmount&&this.props.onUnmount(this.state.searchBox),Fit(this.registeredEvents))},t.prototype.render=function(){return(0,Ae.jsx)("div",{ref:this.containerElement,children:n.Children.only(this.props.children)})},t.contextType=Dit,t}(n.PureComponent),zst={onPlaceChanged:"place_changed"},Bst={bounds:function(e,t){e.setBounds(t)},restrictions:function(e,t){e.setComponentRestrictions(t)},fields:function(e,t){e.setFields(t)},options:function(e,t){e.setOptions(t)},types:function(e,t){e.setTypes(t)}};!function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.registeredEvents=[],t.containerElement=(0,n.createRef)(),t.state={autocomplete:null},t.setAutocompleteCallback=function(){null!==t.state.autocomplete&&t.props.onLoad&&t.props.onLoad(t.state.autocomplete)},t}kit(t,e),t.prototype.componentDidMount=function(){var e;Rit(!!google.maps.places,'You need to provide libraries={["places"]} prop to <LoadScript /> component %s',google.maps.places);var t=null===(e=this.containerElement.current)||void 0===e?void 0:e.querySelector("input");if(t){var n=new google.maps.places.Autocomplete(t,this.props.options);this.registeredEvents=zit({updaterMap:Bst,eventMap:zst,prevProps:{},nextProps:this.props,instance:n}),this.setState((function(){return{autocomplete:n}}),this.setAutocompleteCallback)}},t.prototype.componentDidUpdate=function(e){Fit(this.registeredEvents),this.registeredEvents=zit({updaterMap:Bst,eventMap:zst,prevProps:e,nextProps:this.props,instance:this.state.autocomplete})},t.prototype.componentWillUnmount=function(){null!==this.state.autocomplete&&Fit(this.registeredEvents)},t.prototype.render=function(){return(0,Ae.jsx)("div",{ref:this.containerElement,className:this.props.className,children:n.Children.only(this.props.children)})},t.defaultProps={className:""},t.contextType=Dit}(n.PureComponent);const Ust=["places"],Wst=Zo()((()=>({inputSearchContainer:{backgroundColor:"white",borderRadius:"0.5rem",borderColor:"transparent",paddingTop:"0.5rem",width:"100%"},inputSearch:{width:"100%","& .MuiOutlinedInput-notchedOutline":{display:"none"}}}))),Hst=e=>{var t;const{coord:r,id:i,hidePlacesSuggestions:o,onLocationChosen:s}=e,{classes:a}=Wst(),[l,c]=(0,n.useState)(),[u,d]=(0,n.useState)(""),{isLoaded:h}=function(e){var t=e.id,r=void 0===t?Jit.id:t,i=e.version,o=void 0===i?Jit.version:i,s=e.nonce,a=e.googleMapsApiKey,l=e.language,c=e.region,u=e.libraries,d=void 0===u?oot:u,h=e.preventGoogleFontsLoading,p=e.mapIds,f=e.authReferrerPolicy,g=(0,n.useRef)(!1),m=(0,n.useState)(!1),y=m[0],v=m[1],_=(0,n.useState)(void 0),b=_[0],x=_[1];(0,n.useEffect)((function(){return g.current=!0,function(){g.current=!1}}),[]);var S=(0,n.useMemo)((function(){return new iot({id:r,apiKey:a,version:o,libraries:d,language:l||"en",region:c||"US",mapIds:p||[],nonce:s||"",authReferrerPolicy:f||"origin"})}),[r,a,o,d,l,c,p,s,f]);(0,n.useEffect)((function(){y||S.load().then((function(){g.current&&v(!0)})).catch((function(e){x(e)}))}),[]),(0,n.useEffect)((function(){Wit&&h&&Xit()}),[h]);var w=(0,n.useRef)();return(0,n.useEffect)((function(){w.current&&d!==w.current&&console.warn("Performance warning! LoadScript has been reloaded unintentionally! You should not pass `libraries` prop as new array. Please keep an array of libraries as static class property for Components and PureComponents, or just a const variable outside of component, or somewhere in config files or ENV variables"),w.current=d}),[d]),{isLoaded:y,loadError:b}}({googleMapsApiKey:null!==(t="AIzaSyCHaKkxdhCFUJ_YQq_n-sa8zb3jxT8UQio")?t:"",libraries:Ust}),[p,f]=(0,n.useState)(0),g=(0,n.useMemo)((()=>{if(r)return{id:null!==i&&void 0!==i?i:"lat-lng-point",coords:r,type:d3.cross,style:{stroke:"red",size:p}}}),[i,r,p]);(0,n.useEffect)((()=>{f(500);const e=setTimeout((()=>{f(8)}),2e3);return()=>{clearTimeout(e)}}),[r]);const m=(0,n.useCallback)((()=>g?(0,Ae.jsx)(Z5,{points:[g],zIndex:100}):(0,Ae.jsx)(Ae.Fragment,{})),[g]),y=()=>{d(""),f(0)},v=()=>{var e,t,n,r,i;if(""===u)return;const a=(e=>{if(!/^[-+]?([1-8]?\d(\.\d+)?|90(\.0+)?),\s*[-+]?(180(\.0+)?|((1[0-7]\d)|([1-9]?\d))(\.\d+)?)$/.test(e))return null;const t=e.split(",");return{lat:parseFloat(t[0]),lng:parseFloat(t[1])}})(u);if(null!==a)return null===s||void 0===s?void 0:s(a);if(o||!l)return;const c=null===(e=l.getPlaces())||void 0===e?void 0:e[0],d=null===c||void 0===c||null===(t=c.geometry)||void 0===t||null===(n=t.location)||void 0===n?void 0:n.lat(),h=null===c||void 0===c||null===(r=c.geometry)||void 0===r||null===(i=r.location)||void 0===i?void 0:i.lng();if(!d||!h)return;null===s||void 0===s||s({lat:d,lng:h})};return{MapLatLngPoint:m,MapSearchBar:()=>{if(!h)return(0,Ae.jsx)(Ae.Fragment,{});const e=e=>{"Enter"===e.key&&v(),"Escape"===e.key&&y()},t=()=>(0,Ae.jsx)(ew,{id:"form-lat-lng",label:n,placeholder:"",type:"text",value:u,className:a.inputSearch,onChange:e=>d(e.target.value),onKeyDown:e,endAdornment:(0,Ae.jsx)(fx,{position:"end",children:(0,Ae.jsx)(Gu,{"aria-label":"Reset",onClick:y,edge:"end",children:(0,Ae.jsx)(rwe.c,{})})})}),n="Search address or lat,lon";return(0,Ae.jsx)(wp,{className:a.inputSearchContainer,children:(0,Ae.jsxs)(yw,{fullWidth:!0,variant:"outlined",children:[(0,Ae.jsx)(dw,{htmlFor:"form-lat-lng",children:n}),o?t():(0,Ae.jsx)(Fst,{onLoad:c,onPlacesChanged:v,children:t()})]})})}}},qst=Zo()((()=>({root:{width:"100%",height:"100%",position:"relative"},loading:{paddingTop:"2rem"},error:{padding:"2rem"},mainContainer:{height:"100%",width:"100%",overflow:"hidden"},mapContainer:{flexGrow:1},formContainer:{overflow:"auto",backgroundColor:"white",width:"20vw",minWidth:"25rem",height:"100%","&.shadow":{boxShadow:Wp}},customLeftBarComp:{pointerEvents:"none","& > *":{pointerEvents:"initial"}}}))),Xst=e=>{var t;const{classes:r}=qst(),{asset:i,bounds:o,setBounds:s,solarSubAssetOverlaysObj:a}=(0,n.useContext)(Ntt),l=null===i||void 0===i?void 0:i.assetInfos.id,c=(0,n.useRef)(null),u=(0,n.useRef)(),[d,h]=(0,n.useState)(),[p,f]=(0,n.useState)(),[g,m]=(0,n.useState)(),[y,v]=(0,n.useState)(null),_=(0,n.useMemo)((()=>{var e,t;return null!==(e=null===i||void 0===i||null===(t=i.subAssets)||void 0===t?void 0:t.find((e=>{let{id:t}=e;return t===y})))&&void 0!==e?e:null}),[y,null===i||void 0===i?void 0:i.subAssets]),[b,x]=(0,n.useState)(!1),[S,w]=(0,n.useMemo)((()=>{if(!i)return[[],[]];const e=i.subAssets.filter((e=>{let{area:t}=e;return void 0!==t})).map(int).flatMap((e=>H3(e)?[e]:[]));return[e,i.subAssets.filter((e=>{let{area:t,location:n}=e;return void 0==t&&void 0!==n})).map((e=>{var t,n,r,i;const o={lat:null!==(t=null===(n=e.location)||void 0===n?void 0:n._latitude)&&void 0!==t?t:0,lng:null!==(r=null===(i=e.location)||void 0===i?void 0:i._longitude)&&void 0!==r?r:0};return{id:e.id,coords:o,type:d3.icon,displayText:e.name,iconUrl:J5,textStyle:{offsetY:20}}}))]}),[i]),{MapSearchBar:E,MapLatLngPoint:P}=Hst({coord:p,onLocationChosen:e=>{f(e),m(18)}}),C=e=>{const t=null===e||void 0===e?void 0:e.getId();if(!t)return void v(null);const n=[...S,...w].find((e=>{let{id:n}=e;return t===n}));n&&k([n]),v(null),setTimeout((()=>{v("".concat(t))}),0)},A=()=>{v(null),x(!1),h(void 0)},k=(0,n.useCallback)((e=>{const t=e.length>0?e.flatMap((e=>Array.isArray(e.coords)?e.coords:[e.coords])):o,n=O3(null!==t&&void 0!==t?t:[],"small",100);h(n)}),[]),{isLoading:j,overlays:I,mapOverlaysGroups:G,mapOverlaysItems:T,addItemFn:M,isOverlayVisible:O,MapOverlaysComp:R}=a,D="subAsset-shape",N="allImages",L="allGeoTiff",V="allGeoJson";(0,n.useEffect)((()=>{M({id:D,label:"SubAssets",withOpacity:!1});const[e,t,n]=I.reduce(((e,t)=>t.type===xV.IMAGE?[!0,e[1],e[2]]:t.type===xV.GEOTIFF?[e[0],!0,e[2]]:t.type===xV.GEOJSON?[e[0],e[1],!0]:e),[!1,!1,!1]);e&&M({id:N,label:"All images overlays",withOpacity:!1}),t&&M({id:L,label:"All geoTIFF overlays",withOpacity:!1}),n&&M({id:V,label:"All geoJSON overlays",withOpacity:!1})}),[I]);const F=O(N),[z,B]=(0,n.useState)(!1);(0,n.useEffect)((()=>{if(F&&!z)return void B(!0);const e=I.filter((e=>{let{type:t}=e;return t===xV.IMAGE})).map((e=>{let{id:t}=e;return t}));T.filter((t=>{let{id:n}=t;return e.includes(n)})).forEach((e=>{var t;null===(t=e.setVisible)||void 0===t||t.call(e,F)}))}),[F]);const U=O(L),[W,H]=(0,n.useState)(!1);(0,n.useEffect)((()=>{if(U&&!W)return void H(!0);const e=I.filter((e=>{let{type:t}=e;return t===xV.GEOTIFF})).map((e=>{let{id:t}=e;return t}));T.filter((t=>{let{id:n}=t;return e.includes(n)})).forEach((e=>{var t;null===(t=e.setVisible)||void 0===t||t.call(e,U)}))}),[U]);const q=O(V),[X,Y]=(0,n.useState)(!1);return(0,n.useEffect)((()=>{if(q&&!X)return void Y(!0);const e=I.filter((e=>{let{type:t}=e;return t===xV.GEOJSON})).map((e=>{let{id:t}=e;return t}));T.filter((t=>{let{id:n}=t;return e.includes(n)})).forEach((e=>{var t;null===(t=e.setVisible)||void 0===t||t.call(e,q)}))}),[q]),l?(0,Ae.jsx)("div",{className:r.root,ref:c,children:(0,Ae.jsxs)(wp,{display:"flex",className:r.mainContainer,children:[(0,Ae.jsx)("div",{className:r.mapContainer,children:(0,Ae.jsx)(_Ce,{asset:i,withOverlays:!1,assetId:null!==(t=null===i||void 0===i?void 0:i.assetInfos.id)&&void 0!==t?t:"",bounds:d,center:p,zoom:g,onMapMoveEnd:e=>{null===s||void 0===s||s(e)},withLatLngPicker:!0,leftBar:(0,Ae.jsxs)(ws,{className:r.customLeftBarComp,container:!0,direction:"column",justifyContent:"space-between",height:"100%",width:"20rem",children:[(0,Ae.jsx)(ws,{item:!0,className:r.customLeftBarComp,children:E()}),(0,Ae.jsx)(ws,{item:!0,className:r.customLeftBarComp,container:!0,direction:"column",gap:"0.25rem",children:(0,Ae.jsx)(yCe,{groups:G,items:T,loading:j})})]}),children:(0,Ae.jsxs)(Ae.Fragment,{children:[(0,Ae.jsx)(yPe,{ref:u,visible:O(D),polygons:S,selectable:!0,onPolygonSelected:C,onPolygonUnselected:A,zIndex:999}),(0,Ae.jsx)(Z5,{points:w,visible:O(D),clickable:!0,onPointClicked:C,zIndex:999}),R(),(0,Ae.jsx)(P,{})]})})}),(0,Ae.jsx)(_h,{orientation:"horizontal",in:null!==y&&b,children:(0,Ae.jsx)("div",{className:r.formContainer,children:null!==_&&b&&(0,Ae.jsx)(Cit,{subAsset:_})})}),(0,Ae.jsx)(_h,{orientation:"horizontal",in:null!==y,children:(0,Ae.jsx)("div",{className:"".concat(r.formContainer," shadow"),children:null!==_&&_&&(0,Ae.jsx)(dnt,{subAsset:_,openCloseOverlay:e=>x(e),onCancel:()=>{var e;null===u||void 0===u||null===(e=u.current)||void 0===e||e.unselectAll(),A()},onUpdate:t=>e.updateSubAsset(t),onDelete:()=>y?e.deleteSubAsset(y):Promise.reject()})})})]})}):(0,Ae.jsx)(Ae.Fragment,{})},Yst=(e,t,n)=>R3(e.coords,{lat:"lat"===n?t.coords.lat:e.coords.lat,lng:"lng"===n?t.coords.lng:e.coords.lng});let Kst=function(e){return e.UPLOAD="UPLOAD",e.PDF_MASK="PDF_MASK",e.POINTS="POINTS",e.VALIDATE="VALIDATE",e}({});const Zst="application/pdf",$st=Object.freeze({[xV.IMAGE]:[Zst,"image/png","image/jpg","image/jpeg"],[xV.GEOTIFF]:["image/tif","image/tiff"],[xV.GEOJSON]:["application/json"]}),Jst=["1. Select an overlay file","2. Calibrate overlay","3. Validate overlay"],Qst=e=>{const t=(0,n.useMemo)((()=>[Kst.UPLOAD,Kst.PDF_MASK].includes(e.currentStep)?0:e.currentStep===Kst.POINTS?1:e.currentStep===Kst.VALIDATE?2:0),[e.currentStep]);return(0,Ae.jsx)(h2e,{activeStep:t,alternativeLabel:!0,children:Jst.map((e=>(0,Ae.jsx)(y2e,{children:(0,Ae.jsx)(N2e,{children:e})},e)))})},eat=Zo()((()=>({root:{borderRadius:"0.5rem",backgroundColor:"white",border:"1px solid black",userSelect:"none",padding:"0.5rem 1rem",width:"20rem"}}))),tat=e=>{const{classes:t}=eat(),[r,i]=(0,n.useState)(e.opacity);(0,n.useEffect)((()=>{i(e.opacity)}),[e.opacity]);return(0,Ae.jsxs)("div",{className:t.root,children:[(0,Ae.jsxs)("p",{children:["Opacity (",r,"%)"]}),(0,Ae.jsx)(vj,{spacing:2,direction:"row",sx:{mb:1},alignItems:"center",children:(0,Ae.jsx)(WW,{"aria-label":"Opacity",value:r,onChange:(e,t)=>{i(t)},onChangeCommitted:(t,n)=>{e.onOpacityChange(n)}})})]})},nat=(0,cs.cp)(RCe,{shouldForwardProp:e=>"customColor"!==e})((e=>({"& .MuiBadge-badge":{top:"50%",left:"-0.5rem",backgroundColor:e.customColor}}))),rat=Zo()((()=>({label:{margin:"auto",color:"black"}}))),iat=e=>{const{classes:t}=rat();return(0,Ae.jsx)("span",{className:t.label,children:(0,Ae.jsx)(nat,{customColor:e.color,color:"primary",variant:"dot",anchorOrigin:{horizontal:"left",vertical:"top"},children:(0,Ae.jsxs)("p",{children:["Point ",e.pointNum+1]})})})},oat=Zo()((()=>({label:{padding:"0 1rem",margin:"auto"},input:{width:"7rem"}}))),sat=e=>{var t,n,r,i;const{classes:o}=oat(),s=(t,n)=>{const r=Number(t.target.value);Number.isNaN(r)||e.onChange({...e.value,[n]:r})};return(0,Ae.jsxs)(wp,{display:"flex",alignItems:"stretch",columnGap:"0.25rem",children:[(0,Ae.jsx)("span",{className:o.label,children:(0,Ae.jsx)(iat,{color:e.color,pointNum:e.pointNum})}),(0,Ae.jsx)(iE,{className:o.input,type:"number",size:"small",label:"Latitude",variant:"outlined",value:null!==(t=null===(n=e.value)||void 0===n?void 0:n.lat)&&void 0!==t?t:"",onChange:e=>s(e,"lat"),InputProps:{inputProps:{min:-90,max:90,step:1e-5}}}),(0,Ae.jsx)(iE,{className:o.input,type:"number",size:"small",label:"Longitude",variant:"outlined",value:null!==(r=null===(i=e.value)||void 0===i?void 0:i.lng)&&void 0!==r?r:"",onChange:e=>s(e,"lng"),InputProps:{inputProps:{min:-180,max:180,step:1e-5}}}),(0,Ae.jsx)(ev,{color:"create",onClick:e.onSave,children:"OK"}),(0,Ae.jsx)(Gu,{"aria-label":"delete",onClick:e.onReset,color:"error",children:(0,Ae.jsx)(n8.c,{})})]})},aat=Zo()((()=>({root:{borderRadius:"0.5rem",backgroundColor:"white",border:"1px solid black",display:"flex",flexDirection:"column",justifyContent:"center",rowGap:"0.5rem",alignItems:"center",userSelect:"none",padding:"0.5rem 1rem"}}))),lat=e=>{const{classes:t}=aat(),[r,i]=(0,n.useState)(),[o,s]=(0,n.useState)();(0,n.useEffect)((()=>{var t,n,r,o,a,l;i(null!==(t=null===(n=e.points)||void 0===n||null===(r=n[0])||void 0===r?void 0:r.coords)&&void 0!==t?t:{}),s(null!==(o=null===(a=e.points)||void 0===a||null===(l=a[1])||void 0===l?void 0:l.coords)&&void 0!==o?o:{})}),[e.points]);const a=t=>{const n=0===t?r:o;F3(n)&&e.onPointChanged(t,n)},l=t=>{e.onPointChanged(t,null)};return(0,Ae.jsxs)("div",{className:t.root,children:[(0,Ae.jsx)(sat,{pointNum:0,color:"firebrick",value:null!==r&&void 0!==r?r:null,onChange:e=>i(e),onSave:()=>a(0),onReset:()=>l(0)}),(0,Ae.jsx)(sat,{pointNum:1,color:"navy",value:null!==o&&void 0!==o?o:null,onChange:e=>s(e),onSave:()=>a(1),onReset:()=>l(1)})]})},cat=Zo()((()=>({topBarContainer:{width:"100%",display:"flex",flexWrap:"nowrap",justifyContent:"space-between",alignItems:"flex-start",pointerEvents:"none","& > *":{pointerEvents:"initial"}}}))),uat=e=>{const{classes:t}=cat(),{assetId:r,asset:i,isCreation:o,newSubAsset:s,updatedSubAsset:a,bounds:l}=(0,n.useContext)(Ntt),{mapPoints:c,image:u,overlay:d}=e,[h,p]=(0,n.useState)(),[f,g]=(0,n.useState)(),[m,y]=(0,n.useState)(100),v=(0,n.useMemo)((()=>{const e=o?s:a;if(!e)return null;const t=int(e);return H3(t)?{id:"subAsset-polygon",style:{fill:Xp.POLYGONS.fill.default},coords:t.coords}:null}),[o,a]),_=(0,n.useMemo)((()=>{var e;return(null!==(e=null===i||void 0===i?void 0:i.subAssets)&&void 0!==e?e:[]).filter((e=>{let{id:t}=e;return t!==(null===a||void 0===a?void 0:a.id)})).flatMap((e=>{const t=int(e);return H3(t)?[{id:e.id,coords:t.coords}]:[]}))}),[i]),b=(0,n.useMemo)((()=>{var e,t;if(!i)return[];const n=(null===(e=null!==(t=null===v||void 0===v?void 0:v.coords)&&void 0!==t?t:[])||void 0===e?void 0:e.length)>0?null===v||void 0===v?void 0:v.coords:l;return O3(null!==n&&void 0!==n?n:[],"small")}),[i,v]),x=e.drawEnabled||e.draggable,S=(0,n.useCallback)((e=>e.id===(null===d||void 0===d?void 0:d.id)),[d]),w=(0,n.useMemo)((()=>null!==a&&void 0!==a&&a.id?[null===a||void 0===a?void 0:a.id]:null),[null===a||void 0===a?void 0:a.id]),{isLoading:E,mapOverlaysItems:P,MapOverlaysComp:C,defaultMapProvider:A}=hCe({assetId:r,subAssetsIds:w,except:S}),{MapSearchBar:k,MapLatLngPoint:j}=Hst({coord:h,onLocationChosen:e=>{p(e),g(18)}});return(0,Ae.jsx)(Ae.Fragment,{children:(0,Ae.jsx)(ws,{container:!0,height:"100%",children:(0,Ae.jsx)(U5,{withLatLngPicker:!0,provider:A,center:h,zoom:f,bounds:b,leftBar:(0,Ae.jsxs)(Ae.Fragment,{children:[(0,Ae.jsx)(yCe,{loading:E,items:P}),(0,Ae.jsx)(kwe,{})]}),topBar:(0,Ae.jsxs)("div",{className:t.topBarContainer,children:[null===u&&(0,Ae.jsx)(wp,{width:"20rem",children:k()}),null!==u&&(0,Ae.jsx)(tat,{opacity:m,onOpacityChange:y}),x&&(0,Ae.jsx)(lat,{points:c,onPointChanged:e.onPointChanged})]}),children:(0,Ae.jsxs)(Ae.Fragment,{children:[null!==v&&(0,Ae.jsx)(yPe,{polygons:[v],zIndex:1}),(0,Ae.jsx)(yPe,{polygons:_,zIndex:1}),(0,Ae.jsx)(_Pe,{drawEnabled:e.drawEnabled,shape:u3.POINT,drawPointer:"cross",onDrawEnd:t=>{K3(t)&&e.onPointCreated(t)}}),(0,Ae.jsx)(aCe,{image:u,maxFileSizeMBCompression:5,zIndex:100,opacityPercent:m}),(0,Ae.jsx)(Z5,{points:[...c.filter(W3)],draggable:e.draggable,onPointTranslated:e.onPointTranslated,zIndex:101}),null===u&&(0,Ae.jsx)(j,{}),C()]})})})})},dat=Zo()((()=>({deletePointContainer:{"& svg":{color:Op},"& button":{paddingRight:"5px",paddingLeft:"20px"}}}))),hat=e=>{const{classes:t}=dat(),{imagePoints:n,onPointTranslated:r}=e;return(0,Ae.jsxs)(ws,{container:!0,height:"100%",direction:"column",children:[(0,Ae.jsx)(wp,{paddingBottom:"0.5rem",display:"flex",justifyContent:"end",children:(0,Ae.jsxs)(wp,{display:"flex",columnGap:"0.25rem",className:t.deletePointContainer,children:[(0,Ae.jsx)(ev,{onClick:()=>e.onPointDeleted(0),variant:"outlined",color:"delete",trailingIcon:(0,Ae.jsx)(n8.c,{fontSize:"small"}),children:(0,Ae.jsx)(iat,{color:"firebrick",pointNum:0})}),(0,Ae.jsx)(ev,{onClick:()=>e.onPointDeleted(1),variant:"outlined",color:"delete",trailingIcon:(0,Ae.jsx)(n8.c,{fontSize:"small"}),children:(0,Ae.jsx)(iat,{color:"navy",pointNum:1})})]})}),(0,Ae.jsx)(wp,{flex:1,width:"100%",height:"100%",border:"1px solid black",children:(0,Ae.jsx)(rAe,{imageUrl:e.image.url,maxFileSizeMBCompression:5,onImageSizeChanged:e.setImageSize,onRealImageSizeChanged:e.setRealImageSize,children:(0,Ae.jsxs)(Ae.Fragment,{children:[(0,Ae.jsx)(_Pe,{drawEnabled:e.drawEnabled,shape:u3.POINT,drawPointer:"cross",onDrawEnd:t=>{K3(t)&&e.onPointCreated(t)}}),(0,Ae.jsx)(Z5,{points:[...n.filter(W3)],draggable:e.dragEnabled,onPointTranslated:r,zIndex:2})]})})})]})};var pat=__webpack_require__(77052),fat=__webpack_require__(38816),gat=__webpack_require__.n(fat);pat.GlobalWorkerOptions.workerSrc=gat();const mat=async function(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"LOW",r=null,i=null,o=null,s=null,a=null;try{const i=await xhe(e),l=await pat.getDocument(e).promise;if(s=l.numPages,0===s)throw new Error("PDF has 0 page");const c=await l.getPage(t),u=i/s;a=She("LOW"===n?1:5)/u,"LOW"===n?a=Math.min(1,Math.max(.1,a)):"HIGH"===n&&(a=Math.min(5,Math.max(1,a))),"LOW"!==n&&"HIGH"!==n&&(a=n);const d=c.getViewport({scale:a}),h=d.width/d.height;let p,f;h>=1?(p=Math.min(16384,d.width),f=p/h):(f=Math.min(16384,d.height),p=f*h);const g=document.createElement("canvas");g.width=p,g.height=f;const m=g.getContext("2d");if(!m)throw new Error("Context not available");const y=c.render({canvasContext:m,viewport:d,background:"rgba(0,0,0,0)"});await y.promise,r=!0,o=await new Promise(((e,t)=>{g.toBlob((n=>{n?e(URL.createObjectURL(n)):t("[pdfToImage] An error occurred while generating blob from canvas")}),"image/png",1)}))}catch(Rmt){Rmt instanceof pat.InvalidPDFException?(i=Rmt.message,r=!1):i=Rmt instanceof Error?Rmt.message:"An error occurred"}return{isPDF:r,pagesCount:s,error:i,imageUrl:o,scale:a}},yat=Zo()((()=>({imgPreview:{width:"100%",maxWidth:"40rem",maxHeight:"30rem",border:"1px solid black",padding:"0.5rem",margin:"auto",objectFit:"contain"},imgTitle:{textAlign:"center",color:"black"}}))),vat=e=>{let{file:t,deleteFn:r,onImageReady:i}=e;const{classes:o}=yat(),[s,a]=(0,n.useState)(1),{isPDF:l,isLoading:c,imageUrl:u,pagesCount:d}=((e,t)=>{const[r,i]=(0,n.useState)(null),[o,s]=(0,n.useState)(!1),[a,l]=(0,n.useState)(null),[c,u]=(0,n.useState)(null),[d,h]=(0,n.useState)(null);(0,n.useEffect)((()=>{f(),e&&p(e,null!==t&&void 0!==t?t:1)}),[e,t]);const p=async(e,t)=>{f(),s(!0);const{isPDF:n,pagesCount:r,error:o,imageUrl:a}=await mat(e,t);s(!1),i(n),h(r),l(o),u(a)},f=()=>{i(null),h(null),l(null),u(null)};return{isPDF:r,pagesCount:d,isLoading:o,error:a,imageUrl:c}})(null===t||void 0===t?void 0:t.url,s),h=(0,n.useMemo)((()=>c?null:l&&u?u:null!==t&&void 0!==t&&t.url?t.url:null),[l,c,u,t]);(0,n.useEffect)((()=>{null!==l&&(l?null!==u&&i(u,{selectedPage:s}):i(t.url))}),[t,l,u]);const p=e=>{let{url:t}=e;return(0,Ae.jsx)("img",{className:o.imgPreview,src:t,alt:"uploaded image"})},f=e=>{let{url:t,maxPage:n}=e;return(0,Ae.jsxs)(wp,{display:"flex",flexDirection:"column",rowGap:"0.25rem",children:[(0,Ae.jsx)(wp,{display:"flex",columnGap:"0.5rem",alignItems:"center",children:n>1&&(0,Ae.jsxs)(Ae.Fragment,{children:[(0,Ae.jsxs)(pM,{severity:"info",children:["Choose a page between 1 and ",n]}),(0,Ae.jsx)(iE,{autoFocus:!0,label:"Page",type:"number",size:"small",value:s,onChange:e=>{return t=Number(e.target.value),void a(Math.min(n,Math.max(1,t)));var t},disabled:c||1===n,inputProps:{min:1,max:n,step:1}})]})}),(0,Ae.jsx)("img",{className:o.imgPreview,src:t,alt:"uploaded image"})]})};return(0,Ae.jsxs)(wp,{width:"100%",display:"flex",flexWrap:"nowrap",alignItems:"center",justifyContent:"space-evenly",columnGap:"1rem",children:[(0,Ae.jsxs)(wp,{display:"flex",flexDirection:"column",children:[(c||null===h)&&(0,Ae.jsx)($y,{}),h&&!1===l&&(0,Ae.jsx)(p,{url:h}),h&&!0===l&&(0,Ae.jsx)(f,{url:h,maxPage:null!==d&&void 0!==d?d:1}),(0,Ae.jsx)("div",{className:o.imgTitle,children:t.file.name})]}),(0,Ae.jsx)(ev,{variant:"contained",color:"create",onClick:()=>r(),children:"Choose another file"})]})},_at={"image/*":[".png",".jpg",".jpeg"],"application/pdf":[".pdf"],"image/tiff":[".tif",".tiff"],"application/JSON":[".json",".geojson"]},bat=e=>{const{onFileUploaded:t}=e,[r,i]=(0,n.useState)(null),[o,s]=(0,n.useState)(!1),a=(0,n.useMemo)((()=>{if(!r)return;const e=r.file.type;for(const t in $st)if($st[t].includes(e))return t}),[r]),l=(0,n.useCallback)(((e,n)=>{if(!r)return;const i={...r,url:e};t(i,void 0,n,a),s(!0)}),[r,a]);(0,n.useEffect)((()=>{a&&a!==xV.IMAGE&&l("")}),[a,l]);const c=(0,n.useMemo)((()=>r?r.file.type!==Zst||o?o?a===xV.GEOTIFF?(0,Ae.jsxs)(Ae.Fragment,{children:[(0,Ae.jsx)("p",{children:"Validate your TIFF or remove it to choose another file."}),(0,Ae.jsx)("p",{children:"Once the orthophoto uploaded, a optimized file will be generated. This will be done in background, and might take a few minutes."})]}):a===xV.GEOJSON?(0,Ae.jsx)("p",{children:"Validate your geoJSON or remove it to choose another file."}):"Validate your overlay or choose another file":"Generating a preview image\u2026":"Generating a preview image from your PDF file\u2026":"Select an overlay file (PNG, JPG, PDF, TIF, TIFF, JSON, geoJSON)"),[r,o,a]);return(0,Ae.jsxs)(ws,{container:!0,direction:"column",rowGap:"0.5rem",wrap:"nowrap",justifyContent:"space-between",height:"100%",children:[(0,Ae.jsx)(ws,{item:!0,children:(0,Ae.jsx)(pM,{severity:"info",children:c})}),(0,Ae.jsx)(ws,{item:!0,flexGrow:1,children:(0,Ae.jsx)(khe,{height:"100%",onLoadedFilesChange:async e=>{var n;s(!1);const r=null!==(n=null===e||void 0===e?void 0:e[0])&&void 0!==n?n:null;i(r),null===r&&t(null)},text:"Drag and drop overlay file here",maxFiles:1,maxSize:2e9,filesType:_at,FileLoadedComp:a===xV.IMAGE?e=>(0,Ae.jsx)(vat,{...e,onImageReady:l}):void 0})})]})},xat=Zo()((()=>({root:{padding:"1rem",minWidth:"20rem",maxWidth:"25vw","& p":{textAlign:"justify"}}}))),Sat=e=>{const{classes:t}=xat(),r=e.lastQuality?Ly(e.lastQuality,1):1,i=Ly(1.3*r,1),o=r+.1,s=5*i,[a,l]=(0,n.useState)(!1),[c,u]=(0,n.useState)(i);return(0,Ae.jsxs)(ws,{container:!0,className:t.root,direction:"column",rowGap:"1rem",children:[(0,Ae.jsx)(ws,{item:!0,children:(0,Ae.jsxs)("p",{children:["The image you see has been generated using a zoom value of"," ",(0,Ae.jsx)("b",{children:r}),". Regenerating with value ",(0,Ae.jsx)("b",{children:i})," ","will increase the image quality. The zoom value is limited to"," ",(0,Ae.jsx)("b",{children:s})," for performances issues. The higher the value is, the longer the process will be."]})}),(0,Ae.jsxs)(ws,{item:!0,container:!0,direction:"column",rowGap:"0.5rem",alignItems:"center",justifyContent:"center",children:[(0,Ae.jsxs)(dw,{children:["Quality zoom (",o," - ",s,")"]}),(0,Ae.jsx)(iE,{autoFocus:!0,label:"Quality",type:"number",size:"small",value:c,onChange:e=>u(Number(e.target.value)),inputProps:{step:.1,min:o,max:s}})]}),(0,Ae.jsx)(ws,{item:!0,children:(0,Ae.jsx)(ohe,{loading:a,onValidate:async()=>{l(!0),await e.onValidate(c),l(!1),e.onCancel()},onCancel:e.onCancel})})]})},wat=e=>{var t;const[r,i]=(0,n.useState)(),[o,s]=(0,n.useState)(),[a,l]=(0,n.useState)(),[c,u]=(0,n.useState)();(0,n.useEffect)((()=>{a&&r&&o&&p(a.coords,r,o)}),[o]);const d=e=>{if(!Y3(e))return;if(!r||!o)return;const t=S3("pdf-polygon",e);l(t),p(t.coords,r,o)},h=e=>{var t,n,r;const i=null===(t=e.features)||void 0===t||null===(n=t.getArray())||void 0===n||null===(r=n[0])||void 0===r?void 0:r.getGeometry();i&&d(i)},p=(t,n,r)=>{var i;const o=f(t,n,r);o&&(null===(i=e.onCropPathChanged)||void 0===i||i.call(e,o))},f=(e,t,n)=>{if(0===t.width||0===t.height)return;const r=e.map(A3),i=n.width/t.width,o=n.height/t.height;return r.map((e=>[e[0]*i,(t.height-e[1])*o]))};return(0,Ae.jsxs)(Ae.Fragment,{children:[(0,Ae.jsxs)(ws,{container:!0,height:"100%",flexDirection:"column",flexWrap:"nowrap",spacing:1,children:[(0,Ae.jsxs)(ws,{item:!0,container:!0,alignItems:"center",justifyContent:"space-between",children:[(0,Ae.jsx)(ws,{item:!0,children:(0,Ae.jsx)(pM,{severity:"info",children:"Draw a polygon around the zone that matches your overlay."})}),(0,Ae.jsx)(ws,{item:!0,children:(0,Ae.jsx)(ev,{onClick:e=>u(e.currentTarget),children:"Need a better quality?"})})]}),(0,Ae.jsx)(ws,{item:!0,flexGrow:1,children:(0,Ae.jsx)(wp,{width:"100%",height:"100%",border:"1px solid black",children:(0,Ae.jsx)(rAe,{imageUrl:e.image.url,onImageSizeChanged:i,onRealImageSizeChanged:s,children:(0,Ae.jsxs)(Ae.Fragment,{children:[(0,Ae.jsx)(_Pe,{drawEnabled:void 0===a,shape:u3.POLYGON,onDrawEnd:d}),(0,Ae.jsx)(yPe,{polygons:a?[a]:[],autoSelect:!0,resizable:gPe.IF_SELECTED,draggable:fPe.IF_SELECTED,onPolygonTranslated:h,onPolygonResized:h})]})})})})]}),(0,Ae.jsx)(Ud,{open:!!c,anchorEl:c,anchorOrigin:{vertical:"bottom",horizontal:"right"},children:(0,Ae.jsx)(Sat,{lastQuality:null!==(t=e.lastQuality)&&void 0!==t?t:null,onCancel:()=>u(void 0),onValidate:t=>e.regeneratePDFImage(t)})})]})},Eat=Zo()((()=>({errorContainer:{height:"3.8rem",margin:0},leftPanel:{height:"100%"},rightPanel:{height:"100%",display:"flex",flexDirection:"column",padding:"1rem",rowGap:"1rem",flexWrap:"nowrap",justifyContent:"space-between"}}))),Pat=e=>{const{classes:t}=Eat(),{assetId:r,subAsset:i,overlay:o,onValidate:s,onGoToPolygon:a}=e,l=(0,n.useMemo)((()=>{var e;return null!==(e=null===i||void 0===i?void 0:i.overlays)&&void 0!==e?e:[]}),[i]),c=(0,n.useMemo)((()=>void 0===i),[i]),[u,d]=(0,n.useState)(),[h,p]=(0,n.useState)(!1),[f,g]=(0,n.useState)(),[m,y]=(0,n.useState)(),[v,_]=(0,n.useState)(),[b,x]=(0,n.useState)(null),[S,w]=(0,n.useState)(null),[E,P]=(0,n.useState)(null),[C,A]=(0,n.useState)(!1),[k,j]=(0,n.useState)(!1),[I,G]=(0,n.useState)([]),[T,M]=(0,n.useState)(),[O,R]=(0,n.useState)(!1),[D,N]=(0,n.useState)(!1),[L,V]=(0,n.useState)([null,null]),F=(0,n.useMemo)((()=>L.filter(W3)),[L]),[z,B]=(0,n.useState)([null,null]),U=(0,n.useMemo)((()=>z.filter(W3)),[z]),[W,H]=(0,n.useState)(null),[q,X]=(0,n.useState)(!1),[Y,K]=(0,n.useState)(!1);(0,n.useEffect)((()=>{q||(X(!0),o?(J(null,o.signedUrl,void 0,o.type),Q()):d(Kst.UPLOAD))}),[q,u,o]),(0,n.useEffect)((()=>{Y||o&&o.type===xV.IMAGE&&S&&E&&(Z(o,S,E),K(!0))}),[Y,o,S,E]);const Z=(e,t,n)=>{const r=e.calibrationPoints.mapPoints,i=e.calibrationPoints.imagePoints,o=[ae("map",0,r[0]),ae("map",1,r[1])],s=i.map((e=>((e,t,n)=>{const r=[e.lng*t.width/n.width,e.lat*t.height/n.height];return k3(r)})(e,t,n))),a=[ae("image",0,s[0]),ae("image",1,s[1])];nnt(o)&&nnt(a)&&(d(Kst.VALIDATE),V(o),B(a))};(0,n.useEffect)((()=>{if(!S)return;if(F.length<2||U.length<2)return void A(!1);d(Kst.VALIDATE);const e=F.find((e=>{let{id:t}=e;return"map-0"===t})),t=F.find((e=>{let{id:t}=e;return"map-1"===t})),n=U.find((e=>{let{id:t}=e;return"image-0"===t})),r=U.find((e=>{let{id:t}=e;return"image-1"===t}));if(e&&t&&n&&r)try{H(null);const{basePoint:i,oppositePoint:o,rotationRadians:s}=((e,t,n,r,i)=>{const o=Yst(e,t,"lat"),s=Yst(e,t,"lng");if(o>5e3||s>5e3)throw new Error("Distance between points is too large on the map");const a=A3(n.coords),l=(0,w0.getRhumbLineBearing)({latitude:e.coords.lat,longitude:e.coords.lng},{latitude:t.coords.lat,longitude:t.coords.lng})-(0,w0.getRhumbLineBearing)({latitude:n.coords.lat,longitude:n.coords.lng},{latitude:r.coords.lat,longitude:r.coords.lng}),c=(0,w0.getDistance)(n.coords,r.coords),u=R3(e.coords,t.coords);if(u<=0||c<=0)throw new Error("Distance should be greater than zero");const d=u/c,h=a[1],p=a[0],f=i.height-a[1],g=i.width-a[0],m=A3(D3(e.coords,-p*d,f*d)),y=A3(D3(e.coords,g*d,-h*d));return{basePoint:k3(m),oppositePoint:k3(y),rotationRadians:UPe(l)}})(e,t,n,r,S);x((t=>t?{url:t.url,firstCorner:i,secondCorner:o,rotation:{angleRadians:s,around:e.coords}}:null)),A(!0)}catch(W){A(!1),H("".concat(W))}}),[S,F,U]);const $=()=>{V([null,null]),B([null,null])},J=async(e,t,n,r)=>{var i;if(g(r),r!==xV.IMAGE)return void y(null!==e&&void 0!==e?e:void 0);const o=null!==(i=null===e||void 0===e?void 0:e.url)&&void 0!==i?i:t;if(!o)return x(null),void y(void 0);x({url:o}),e&&y(e),n&&M(n),j((null===e||void 0===e?void 0:e.file.type)===Zst)},Q=async e=>{if(k){if(!m)return;const t=URL.createObjectURL(m.file);if(!T)return;R(!0);const{imageUrl:n,scale:r}=await mat(t,T.selectedPage,null!==e&&void 0!==e?e:"HIGH");if(!n)return H("An error occured"),void R(!1);x((e=>({...e,url:n}))),m&&y({...m,url:n}),_(null!==r&&void 0!==r?r:void 0),R(!1),d(Kst.PDF_MASK)}else f===xV.IMAGE?d(Kst.POINTS):d(Kst.VALIDATE)},ee=async e=>{var t;if(!b)return;N(!0);let n=b.url;const{fileName:r}=yhe(null!==(t=null===m||void 0===m?void 0:m.file.name)&&void 0!==t?t:"pdf-file.pdf");let i=r;if(null!==e){const t=await oCe(b.url,e);if(null===t)return;x((e=>({...e,url:t}))),n=t,i="".concat(i,"-cropped")}const o=await te(n,i);y(o),N(!1),d(Kst.POINTS)},te=async(e,t)=>{const n=await(async(e,t)=>{const n=await fetch(e),r=await n.arrayBuffer();return new File([r],"".concat(null!==t&&void 0!==t?t:"generated-file",".png"),{type:"image/png"})})(e,t);return{file:n,timestamp:(new Date).getTime(),url:e}},ne=async()=>{if(!f)throw new Error("Overlay type not found");p(!0);try{const e=re(f);await s(e,null===m||void 0===m?void 0:m.file)}catch(Rmt){console.error(Rmt)}finally{p(!1)}},re=e=>{var t,n,s,a,c,u,d,h,p,f;const g=null!==(t=null===o||void 0===o?void 0:o.id)&&void 0!==t?t:"overlay-".concat(Date.now());let y=null!==(n=null===o||void 0===o?void 0:o.fileName)&&void 0!==n?n:"";if(m){const e=yhe(m.file.name).extension;if(!e)throw new Error;y="".concat(g,".").concat(e)}if(""===y)throw new Error("No overlay file name");const v=null!==(s=null===m||void 0===m?void 0:m.url)&&void 0!==s?s:null===o||void 0===o?void 0:o.signedUrl,_={id:g,name:null!==(a=null!==(c=null===o||void 0===o?void 0:o.name)&&void 0!==c?c:null===m||void 0===m?void 0:m.file.name.split(".")[0])&&void 0!==a?a:"Overlay ".concat(l.length+1),type:e,fileName:y,defaultVisible:null!==(u=null===o||void 0===o?void 0:o.defaultVisible)&&void 0!==u&&u,showOnPDF:null!==(d=null===o||void 0===o?void 0:o.showOnPDF)&&void 0!==d&&d,zIndex:null!==(h=null===o||void 0===o?void 0:o.zIndex)&&void 0!==h?h:l.length+1,asset:{id:r},subAsset:{id:null!==(p=null===i||void 0===i?void 0:i.id)&&void 0!==p?p:"new-subAsset",name:null!==(f=null===i||void 0===i?void 0:i.name)&&void 0!==f?f:"new-subAsset"},signedUrl:v};if(e===xV.GEOTIFF)return jV.parse({..._,status:SV.PENDING});if(e===xV.GEOJSON)return jV.parse({..._});if(e===xV.IMAGE){var x,w;if(!b)throw new Error;const{firstCorner:e,secondCorner:t,rotation:n}=b;if(!e||!t)throw new Error;if(!S||!E)throw new Error;const r={lat:Math.min(e.lat,t.lat),lng:Math.min(e.lng,t.lng)},i={lat:Math.max(e.lat,t.lat),lng:Math.max(e.lng,t.lng)};if(2!==U.length)throw new Error;const o=U.map((e=>((e,t,n)=>{const r=A3(e);return{lat:r[1]*n.height/t.height,lng:r[0]*n.width/t.width}})(e.coords,S,E))),s={imagePoints:[o[0],o[1]],mapPoints:[null===(x=F[0])||void 0===x?void 0:x.coords,null===(w=F[1])||void 0===w?void 0:w.coords]};return jV.parse({..._,topRight:i,bottomLeft:r,rotation:n,calibrationPoints:s})}throw new Error("Overlay type not handled")},ie=(e,t)=>{if(H(null),!t)return;("map"===e?V:B)((n=>{const r=null===n[0]?0:1,i=se(e,r,t);return[0===r?i:n[0],1===r?i:n[1]]}))},oe=(0,n.useCallback)(((e,t)=>{var n,r;const i=null===(n=t.features.getArray())||void 0===n?void 0:n[0];if(!i)return;const o=i.getId(),s=null===(r=i.getGeometry())||void 0===r?void 0:r.getExtent().slice(0,2);if(!s||s.length<2)return;const a="map"===e?L:z,l=a.findIndex((e=>(null===e||void 0===e?void 0:e.id)===o));if(-1===l)return;const c=a[l];if(!c)return;const u=k3(s),d={...c,coords:u};("map"===e?V:B)((e=>[0===l?d:e[0],1===l?d:e[1]]))}),[z,L]),se=(e,t,n)=>{const r="".concat(e,"-").concat(t);return{...x3(r,n,d3.cross),style:{stroke:0===t?"firebrick":"navy"}}},ae=(e,t,n)=>({...se(e,t,new dK([])),coords:n}),le=u===Kst.UPLOAD,ce=u===Kst.PDF_MASK,ue=u===Kst.POINTS||u===Kst.VALIDATE,de=ue?7:5,he=12-de,pe=(0,n.useMemo)((()=>{const e=c?"Creating new subAsset":"Updating ".concat(null===i||void 0===i?void 0:i.name),t=o?"Updating ".concat(o.name):"Creating new overlay";return"".concat(e," > ").concat(t)}),[c,i,o]),fe=(0,n.useCallback)((e=>{oe("map",e)}),[oe]),ge=(0,n.useCallback)((e=>{oe("image",e)}),[oe]);return(0,Ae.jsxs)(ws,{container:!0,height:"100%",children:[(0,Ae.jsx)(ws,{item:!0,xs:12,lg:de,className:t.leftPanel,children:(0,Ae.jsx)(uat,{mapPoints:L,image:C?b:null,overlay:o,onPointCreated:e=>ie("map",e),onPointTranslated:fe,onPointChanged:(e,t)=>{var n;if(null===t)return V((t=>[0===e?null:t[0],1===e?null:t[1]])),void d(Kst.POINTS);const r={...null!==(n=F[e])&&void 0!==n?n:ae("map",e,t),coords:t};V((t=>[0===e?r:t[0],1===e?r:t[1]]))},drawEnabled:u===Kst.POINTS&&F.length<2,draggable:2===F.length})}),(0,Ae.jsxs)(ws,{item:!0,container:!0,xs:12,lg:he,height:"100%",className:t.rightPanel,children:[(0,Ae.jsx)(ws,{item:!0,width:"100%",children:(0,Ae.jsx)("h3",{children:pe})}),u&&(0,Ae.jsx)(Qst,{currentStep:u}),W?(0,Ae.jsx)(pM,{className:t.errorContainer,severity:"error",children:W}):null,(0,Ae.jsxs)(wp,{flex:1,children:[le&&(0,Ae.jsx)(bat,{onFileUploaded:J}),null!==b&&ce&&(0,Ae.jsx)(wat,{image:b,lastQuality:v,regeneratePDFImage:e=>Q(e),onCropPathChanged:G}),null!==b&&ue&&(0,Ae.jsx)(hat,{image:b,setImageSize:w,setRealImageSize:P,imagePoints:z,onPointCreated:e=>ie("image",e),onPointTranslated:ge,onPointDeleted:e=>{B((t=>[0===e?null:t[0],1===e?null:t[1]])),d(Kst.POINTS)},drawEnabled:u===Kst.POINTS&&U.length<2,dragEnabled:2===U.length})]}),(0,Ae.jsxs)(ws,{item:!0,container:!0,justifyContent:"center",columnGap:"1rem",children:[c&&(0,Ae.jsx)(ev,{variant:"outlined",color:"cancel",size:"large",onClick:()=>{null===a||void 0===a||a()},children:"Do it later"}),le&&f===xV.IMAGE&&(0,Ae.jsx)(ev,{label:O?"Generating image\u2026":"Validate overlay file",color:"success",size:"large",onClick:()=>Q(),disabled:O,loading:O}),le&&f&&[xV.GEOTIFF,xV.GEOJSON].includes(f)&&(0,Ae.jsx)(ev,{label:f===xV.GEOTIFF?"Validate orthophoto":"Validate geoJSON",color:"success",size:"large",disabled:h,loading:h,onClick:ne}),!le&&(0,Ae.jsx)(ev,{size:"large",onClick:()=>{x(null),y(void 0),j(!1),w(null),A(!1),$(),p(!1),H(null),d(Kst.UPLOAD)},disabled:h,children:"Change file"}),ce&&(0,Ae.jsxs)(Ae.Fragment,{children:[(0,Ae.jsx)(ev,{label:"Use full PDF",size:"large",color:"success",onClick:()=>ee(null),disabled:D,loading:D}),(0,Ae.jsx)(ev,{label:"Use selected zone",size:"large",color:"create",onClick:()=>ee(I),disabled:0===I.length||D,loading:D})]}),ue&&(0,Ae.jsx)(ev,{size:"large",color:"success",label:"Validate overlay",onClick:ne,loading:h,disabled:u!==Kst.VALIDATE||null!==W||h})]})]})]})};var Cat=__webpack_require__(85596),Aat=__webpack_require__(74560),kat=__webpack_require__(95588),jat=__webpack_require__(25544);const Iat=Zo()((()=>({root:{borderRadius:"0.5rem",backgroundColor:"white"}}))),Gat=e=>{var t,n;const{classes:r}=Iat(),i=null===(t=e.showUndo)||void 0===t||t,o=null===(n=e.showRedo)||void 0===n||n;return(0,Ae.jsx)("div",{className:r.root,children:(0,Ae.jsxs)(cW,{variant:"contained","aria-label":"undo redo buttons",children:[i&&(0,Ae.jsx)(Gu,{"aria-label":"undo",onClick:e.onUndo,disabled:!e.canUndo,children:(0,Ae.jsx)(kat.c,{})}),o&&(0,Ae.jsx)(Gu,{"aria-label":"redo",onClick:e.onRedo,disabled:!e.canRedo,children:(0,Ae.jsx)(jat.c,{})})]})})},Tat=Zo()((()=>({topBarContainer:{flexWrap:"nowrap",alignItems:"flex-start",pointerEvents:"none","& > *":{pointerEvents:"initial"}},deleteBtnContainer:{borderRadius:"0.5rem",backgroundColor:"white"}}))),Mat=e=>{var t;const{classes:r}=Tat(),{tempOverlay:i}=e,{isCreation:o,asset:s,newSubAsset:a,updatedSubAsset:l,bounds:c}=(0,n.useContext)(Ntt),{state:[u,d],hasUndo:h,undo:p,hasRedo:f,redo:g,reset:m}=(e=>{const[t,r]=(0,n.useState)([e]),[i,o]=(0,n.useState)(0),s=(0,n.useMemo)((()=>t[i]),[t,i]),a=(0,n.useMemo)((()=>i>0),[i]),l=(0,n.useMemo)((()=>i<t.length-1),[i,t.length]);return{state:[s,e=>{if(!e)return;const n=[...t.slice(0,i+1),e];r(n),o(n.length-1)}],undo:()=>{a&&o((e=>e-1))},redo:()=>{l&&o((e=>e+1))},hasUndo:a,hasRedo:l,reset:t=>{r([null!==t&&void 0!==t?t:e]),o(0)}}})([]),y=(0,n.useRef)(),[v,_]=(0,n.useState)(),[b,x]=(0,n.useState)(),[S,w]=(0,n.useState)(null),[E,P]=(0,n.useState)(!1),C=(0,n.useMemo)((()=>{var e;return(null!==(e=null===s||void 0===s?void 0:s.subAssets)&&void 0!==e?e:[]).filter((e=>{let{id:t}=e;return t!==(null===l||void 0===l?void 0:l.id)})).flatMap((e=>{const t=int(e);return H3(t)?[{id:e.id,coords:t.coords}]:[]}))}),[s,l]),A=(0,n.useMemo)((()=>({id:"subasset-polygon",coords:u})),[u]),k=(0,n.useMemo)((()=>A.coords.length>=2?(e=>e.coords.length<2?[]:[{id:"normal-point-1",type:d3.point,coords:{lat:e.coords[0].lat,lng:e.coords[0].lng},displayText:"S",style:{fill:"#4CAF50",size:8}},{id:"normal-point-2",type:d3.point,coords:{lat:e.coords[1].lat,lng:e.coords[1].lng},displayText:"E",style:{fill:"firebrick",size:8}}])(A):[]),[A]),j=(0,n.useMemo)((()=>{if(A.coords.length>0)return snt(A);return snt({id:"first-point",coords:S?[S]:[]})}),[A,S]),I=(0,n.useMemo)((()=>{var e;if(!s)return[];let t=c;if(l){const e=int(l);t=H3(e)?e.coords:[e.coords]}if(i){if(i.type===xV.IMAGE){const e={id:"new-sub-asset",coords:[i.topRight,i.bottomLeft].filter(F3)};return O3(e.coords,"small")}console.error("Other overlays types not handled in SubAsset creation")}return O3(null!==(e=t)&&void 0!==e?e:[],"small")}),[c,s,l,i]);(0,n.useEffect)((()=>{e.onPolygonChange(A.coords.length>0?A:null)}),[A]),(0,n.useEffect)((()=>{let e;if(e=o&&a?a:l||null,!e)return;const t=int(e);H3(t)&&m(t.coords)}),[o,l]);const G=()=>{m([]),P(!1)},T=e=>{var t,n,r;const i=null===(t=e.features)||void 0===t||null===(n=t.getArray())||void 0===n||null===(r=n[0])||void 0===r?void 0:r.getGeometry();if(!i||!Y3(i))return;const o=S3("subasset-polygon",i);d(o.coords)},M="other-subAssets-polygons",O=(0,n.useMemo)((()=>{const e=[];var t;(i&&e.push({...CPe(i),isVisible:!0}),C.length>0)&&e.push({id:M,label:"Other polygons",isVisible:!0,groupId:null!==(t=null===l||void 0===l?void 0:l.id)&&void 0!==t?t:"",withOpacity:!1});return e}),[l,i,C]),{isLoading:R,mapOverlaysItems:D,isOverlayVisible:N,getOverlayOpacity:L,MapOverlaysComp:V,defaultMapProvider:F}=hCe({assetId:null!==(t=null===s||void 0===s?void 0:s.assetInfos.id)&&void 0!==t?t:"",subAssetsIds:null!==l&&void 0!==l&&l.id?[null===l||void 0===l?void 0:l.id]:null,customOverlays:O}),{MapSearchBar:z,MapLatLngPoint:B}=Hst({coord:v,onLocationChosen:e=>{_(e),x(18)}});return(0,Ae.jsx)(Ae.Fragment,{children:(0,Ae.jsx)(ws,{container:!0,height:"100%",children:(0,Ae.jsx)(U5,{withLatLngPicker:!0,provider:F,center:v,zoom:b,bounds:I,topBar:(0,Ae.jsxs)(ws,{container:!0,justifyContent:"space-between",className:r.topBarContainer,children:[(0,Ae.jsx)(ws,{item:!0,width:"20rem",children:z()}),(0,Ae.jsxs)(ws,{item:!0,container:!0,width:"fit-content",columnGap:"0.5rem",children:[u.length>0||f?(0,Ae.jsx)(Gat,{canUndo:h,onUndo:p,canRedo:f,onRedo:g}):(0,Ae.jsx)(Gat,{canUndo:E,onUndo:()=>{var e;E&&(null===y||void 0===y||null===(e=y.current)||void 0===e||e.removeLastDrawnedPoint())},showRedo:!1}),!E&&u.length>0&&(0,Ae.jsx)(cW,{variant:"contained",className:r.deleteBtnContainer,children:(0,Ae.jsx)(cu,{title:"Remove and redraw polygon",children:(0,Ae.jsx)(Gu,{"aria-label":"delete",onClick:G,color:"error",children:(0,Ae.jsx)(n8.c,{})})})})]})]}),leftBar:(0,Ae.jsxs)(Ae.Fragment,{children:[(0,Ae.jsx)(yCe,{loading:R,items:D}),(0,Ae.jsx)(kwe,{})]}),children:(0,Ae.jsxs)(Ae.Fragment,{children:[(0,Ae.jsx)(yPe,{visible:N(M),polygons:C,zIndex:2}),i&&(0,Ae.jsx)(cCe,{overlay:i,visible:N(i.id),opacityPercent:L(i.id),zIndex:3}),(0,Ae.jsx)(_Pe,{ref:y,drawEnabled:0===A.coords.length,shape:u3.POLYGON,onDrawStart:e=>{if(Y3(e)){m(),P(!0);const t=S3("subasset-polygon",e);w(t.coords[0])}},onDrawEnd:e=>{if(Y3(e)){P(!1);const t=S3("subasset-polygon",e);d(t.coords)}},onDrawAbort:G}),(0,Ae.jsx)(yPe,{polygons:[A],snapPolygons:{polygons:j},autoSelect:!0,resizable:gPe.IF_SELECTED,onPolygonTranslated:T,onPolygonResized:T,zIndex:4}),(0,Ae.jsx)(Z5,{points:k,zIndex:5}),(0,Ae.jsx)(S6e,{lines:e.FPGLine?[e.FPGLine]:[],zIndex:6}),(0,Ae.jsx)(B,{}),V()]})})})})},Oat=Zo()((()=>({point:{color:"white",width:"1rem",height:"1rem",borderRadius:"50%",display:"flex",alignItems:"center",justifyContent:"center",margin:"0 0.2rem"},pointS:{backgroundColor:"#4CAF50"},pointE:{backgroundColor:"firebrick"}}))),Rat=e=>{var t;const{classes:r}=Oat(),{goToMainView:i,goToCreateView:o,assetId:s,isCreation:a,newSubAsset:l,setNewSubAsset:c,updatedSubAsset:u}=(0,n.useContext)(Ntt),[d,h]=(0,n.useState)(null),[p,f]=(0,n.useState)(null),[g,m]=(0,n.useState)(!1),[y,v]=(0,n.useState)(!1),[_,b]=(0,n.useState)(null),{area:x,photos:S,duration:w,normalBearing:E}=ant(d);(0,n.useEffect)((()=>{b(S>1e4?"The area of your subAsset is too large. Try to split it in multiple subAssets. Max estimated photos is ".concat(1e4.toLocaleString(),"."):null)}),[S]);const P=()=>{i()},C=(0,n.useMemo)((()=>l?y?"Saving subAsset\u2026":"Validate polygon and create subAsset":y?"Updating subAsset\u2026":"Validate polygon and update subAsset"),[l,y]);return(0,Ae.jsxs)(ws,{container:!0,height:"100%",children:[(0,Ae.jsx)(ws,{item:!0,xs:12,lg:8,minHeight:"100%",children:(0,Ae.jsx)(Mat,{tempOverlay:e.tempOverlay,FPGLine:p,onPolygonChange:e=>{b(null),h(e),f(null)}})}),(0,Ae.jsxs)(ws,{item:!0,container:!0,xs:12,lg:4,padding:2,minHeight:"100%",direction:"column",spacing:2,justifyContent:"space-between",children:[(0,Ae.jsxs)(ws,{item:!0,container:!0,direction:"column",rowGap:"0.5rem",children:[(0,Ae.jsx)(vu,{variant:"h5",fontWeight:"bold",children:a?"Creating new subAsset":"Updating ".concat(null===u||void 0===u?void 0:u.name)}),(0,Ae.jsx)(pM,{severity:"info",children:"Draw or update polygon around your subAsset"})]}),d&&(0,Ae.jsx)(ws,{item:!0,container:!0,justifyContent:"center",children:(0,Ae.jsxs)(vj,{direction:"column",spacing:1,children:[E&&(0,Ae.jsx)(hj,{children:(0,Ae.jsxs)(npe,{children:[(0,Ae.jsxs)(vj,{direction:"row",alignItems:"center",spacing:1,children:[(0,Ae.jsx)(O3e,{size:"1.4rem"}),(0,Ae.jsx)(vu,{variant:"h5",children:"Bearing"})]}),(0,Ae.jsxs)(vu,{sx:{fontSize:20},color:"text.secondary",children:[E,"\xb0"]}),(0,Ae.jsxs)(vu,{component:"span",sx:{fontSize:12},color:"text.secondary",display:"flex",alignItems:"center",children:["Between",(0,Ae.jsx)("div",{className:"".concat(r.point," ").concat(r.pointS),children:"S"}),"and",(0,Ae.jsx)("div",{className:"".concat(r.point," ").concat(r.pointE),children:"E"})]})]})}),x&&(0,Ae.jsx)(hj,{children:(0,Ae.jsxs)(npe,{children:[(0,Ae.jsxs)(vj,{direction:"row",alignItems:"center",spacing:1,children:[(0,Ae.jsx)(R3e,{size:"1.4rem"}),(0,Ae.jsx)(vu,{variant:"h5",children:"Area"})]}),(0,Ae.jsxs)(vu,{sx:{fontSize:20},color:"text.secondary",children:[x.toLocaleString(),"m\xb2"]})]})}),x&&(0,Ae.jsxs)(Ae.Fragment,{children:[(0,Ae.jsx)(hj,{children:(0,Ae.jsxs)(npe,{children:[(0,Ae.jsxs)(vj,{direction:"row",alignItems:"center",spacing:1,children:[(0,Ae.jsx)(Aat.c,{sx:{maxWidth:"1.4rem"}}),(0,Ae.jsx)(vu,{variant:"h5",children:"Estimated photos"})]}),(0,Ae.jsx)(vu,{sx:{fontSize:20},color:"text.secondary",children:S}),(0,Ae.jsxs)(vj,{direction:"row",alignItems:"center",spacing:1,color:"text.secondary",children:[(0,Ae.jsx)(Qtt.c,{sx:{maxWidth:"1rem"}}),(0,Ae.jsx)(vu,{fontSize:".8rem",children:"Only for thermal inspections, at 26m height"})]})]})}),(0,Ae.jsx)(hj,{children:(0,Ae.jsxs)(npe,{children:[(0,Ae.jsxs)(vj,{direction:"row",alignItems:"center",spacing:1,children:[(0,Ae.jsx)(Cat.c,{sx:{maxWidth:"1.4rem"}}),(0,Ae.jsx)(vu,{variant:"h5",children:"Estimated duration"})]}),(0,Ae.jsx)(vu,{sx:{fontSize:20},color:"text.secondary",children:"".concat(w," ").concat(wq("minute",w))}),(0,Ae.jsxs)(vj,{direction:"row",alignItems:"center",spacing:1,color:"text.secondary",children:[(0,Ae.jsx)(Qtt.c,{sx:{maxWidth:"1rem"}}),(0,Ae.jsx)(vu,{fontSize:".8rem",children:"Only for thermal inspections, at 26m height"})]})]})})]})]})}),_&&(0,Ae.jsx)(ws,{item:!0,width:"100%",children:(0,Ae.jsx)(pM,{severity:"error",children:_})}),(0,Ae.jsxs)(ws,{item:!0,container:!0,direction:"column",rowGap:1,children:[(0,Ae.jsx)(ev,{color:"create",size:"large",label:"Check Flight Plan",onClick:async()=>{const e=null===d||void 0===d?void 0:d.coords;if(!e)return;m(!0);const t=await(async(e,t,n)=>{const r={coordinates:n},i={method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(r)},o=new URLSearchParams({assetId:e});return t&&o.append("subAssetId",t),(await Ey("/FPG/?".concat(o.toString()),i)).json()})(s,null===u||void 0===u?void 0:u.id,e),n=t.filter(F3);f({id:"fpg-polygon",isLine:!0,withArrow:!0,coords:n,style:{fill:"transparent",size:2,stroke:"firebrick"}}),m(!1)},disabled:null===d||(null===d||void 0===d||null===(t=d.coords)||void 0===t?void 0:t.length)<=2,loading:g}),a&&(0,Ae.jsx)(ev,{color:"cancel",size:"large",label:"Go back to overlay calibration",onClick:()=>{if(!l)return;const e={...l,area:null===d||void 0===d?void 0:d.coords.map(M3)};null===c||void 0===c||c(e),o(tnt.OVERLAY)},disabled:y}),(0,Ae.jsx)(ev,{color:"success",size:"large",label:C,onClick:async()=>{v(!0);try{if(l){const t={...l,area:null===d||void 0===d?void 0:d.coords.map(M3)};await e.createNewSubAsset(t),xEe(s)}else if(u){const t={...u,area:null===d||void 0===d?void 0:d.coords.map(M3)};await e.updateSubAsset(t),xEe(s)}P()}catch(Rmt){b("An error occurred while saving polygon. Please redraw polygon before saving again.".concat(Rmt instanceof Error?" [ERROR]: ".concat(Rmt.message):""))}finally{v(!1)}},loading:y,disabled:!d||!!_||y}),!a&&(null===u||void 0===u?void 0:u.hasDemFile)&&(0,Ae.jsx)(pM,{severity:"error",children:"PLEASE REGENERATE DEM AFTER UPDATE"})]})]})]})},Dat=e=>(0,Ae.jsx)(Ntt.Provider,{value:e.context,children:e.children}),Nat={isOpen:!1,severity:"success",text:""},Lat=()=>{const e=m(),{assetId:t}=an(),{asset:r,isLoading:i,refresh:o,modifySubAsset:s}=uCe({assetId:t}),[a,l]=(0,n.useState)(tnt.MAIN),[c,u]=(0,n.useState)(!1),[d,h]=(0,n.useState)(),[p,f]=(0,n.useState)(),g=hCe({assetId:t,assetData:{fetch:!1,assetSubs:r}}),[y,v]=(0,n.useState)(),[_,b]=(0,n.useState)(),[x,S]=(0,n.useState)(),[w,E]=(0,n.useState)(Nat),P=(0,n.useMemo)((()=>_||g.overlays.find((e=>{let{id:t}=e;return t===(null===y||void 0===y?void 0:y.overlayId)}))),[_,g.overlays,y]),C=()=>{u(!1),h(void 0),f(void 0),v(void 0),b(void 0),l(tnt.MAIN)},A=async(e,t,n,r,i,o)=>{await whe(i,o),r===xV.GEOTIFF&&(E({isOpen:!0,severity:"success",text:"You geoTIFF overlay has been uploaded, optimization is ongoing, it will be ready in a few minutes."}),setTimeout((()=>{(async(e,t,n)=>{const r=await Ey("/assets/optimize-orthophoto/".concat(n),{method:"POST",body:JSON.stringify({assetId:e,subAssetId:t})});if(200===r.status)return r.json();const i=await r.text();throw new Error(i)})(e,t,n)}),5e3))},k=(0,n.useCallback)((async(e,t,n,r)=>{const{overlayId:i,filePath:o}=await(async(e,t,n)=>{const r=await Ey("/assets/".concat(e,"/").concat(t,"/overlay"),{method:"POST",body:JSON.stringify(n)});if(!r.ok){var i;const e=await r.text();throw new Error(null!==(i=null!==e&&void 0!==e?e:r.statusText)&&void 0!==i?i:"[createSolarSubAssetOverlay] An error occured")}const o=await r.json();if(!o.overlayId||!o.filePath)throw new Error("[createSolarSubAssetOverlay] No overlayId or filePath in response");return o})(e,t,n);await A(e,t,i,n.type,o,r)}),[]),j=(0,n.useCallback)((async(e,t)=>{if(y){const n=await lCe(e.asset.id,e.subAsset.id,e.id,e);return t&&await A(e.asset.id,e.subAsset.id,e.id,e.type,n.filePath,t),g.refresh(),void C()}if(p){if(!t)throw new Error("Trying to create an overlay without file");return await k(e.asset.id,e.subAsset.id,e,t),g.refresh(),void C()}b({...e,file:t}),l(tnt.POLYGON)}),[y,p]),I=async e=>{e.id&&(await SEe(t,e.id,e),await o(),g.refresh(),T())},G=async e=>{try{await(async(e,t)=>{const n=await Ey("/assets/".concat(e,"/").concat(t),{method:"DELETE"});if(204===n.status)return!0;const r=await n.text();throw new Error(r)})(t,e),await o(),T(),l(tnt.MAIN)}catch(n){n instanceof Error&&n.message===rnt.INSPECTIONS_EXISTS&&E({isOpen:!0,severity:"error",text:"This subAsset cannot be deleted because it already has inspections."})}},T=()=>{e(Lf())},M={assetId:t,asset:r,isCreation:c,newSubAsset:d,setNewSubAsset:h,updatedSubAsset:p,modifySubAsset:s,bounds:x,setBounds:S,solarSubAssetOverlaysObj:g,goToMainView:C,goToCreateView:e=>{l(e)},goToUpdateView:(e,t)=>{var n;const i=null===r||void 0===r||null===(n=r.subAssets)||void 0===n?void 0:n.find((e=>{let{id:n}=e;return n===t.subAssetId}));i&&(f(i),l(e),e===tnt.OVERLAY&&t.overlay?v(t.overlay):v(void 0))}},O=(0,n.useCallback)((()=>(0,Ae.jsx)(Xst,{updateSubAsset:I,deleteSubAsset:G})),[r]);return i?(0,Ae.jsx)(Iwe,{fullHeight:!0,size:50}):(0,Ae.jsxs)(Ae.Fragment,{children:[(0,Ae.jsx)(Dat,{context:M,children:(0,Ae.jsx)(Jtt,{createNewSubAsset:()=>{var e,t;u(!0);const n=null!==(e=null===r||void 0===r||null===(t=r.subAssets)||void 0===t?void 0:t.length)&&void 0!==e?e:0,i="subAsset-".concat(n+1);h({name:i}),l(tnt.OVERLAY)},children:(0,Ae.jsxs)(Ae.Fragment,{children:[a===tnt.MAIN&&(0,Ae.jsx)(O,{}),a===tnt.OVERLAY&&(0,Ae.jsx)(Pat,{assetId:t,subAsset:p,overlay:P,onValidate:j,onGoToPolygon:()=>l(tnt.POLYGON)}),a===tnt.POLYGON&&(0,Ae.jsx)(Rat,{tempOverlay:_,createNewSubAsset:async e=>{const n=await(async(e,t)=>{const n={method:"POST",body:JSON.stringify(t)},r=await Ey("/assets/".concat(e,"/createSolarSubAsset"),n);if(!r.ok){var i;const e=await r.text();throw new Error(null!==(i=null!==e&&void 0!==e?e:r.statusText)&&void 0!==i?i:"[createSolarSubAsset] Error while creating subAsset")}return await r.json()})(t,e);if(_&&_.file){const{file:e,...r}=_;await k(t,n.id,r,e),b(void 0)}await o(),g.refresh(),T(),u(!1),l(tnt.MAIN)},updateSubAsset:I})]})})}),(0,Ae.jsx)(JT,{open:w.isOpen,onClose:()=>E({...Nat}),anchorOrigin:{vertical:"bottom",horizontal:"center"},autoHideDuration:6e3,children:(0,Ae.jsx)(pM,{severity:w.severity,sx:{width:"100%"},children:w.text})})]})},Vat=()=>(0,Ae.jsx)(Lat,{}),Fat=Zo()((()=>({root:{height:"100vh",display:"flex",justifyContent:"center",alignItems:"center"},select:{minWidth:"20rem"}}))),zat=()=>{const{classes:e}=Fat(),t=on(),{handleSubmit:r,control:i,watch:o}=S0e(),[s,a]=(0,n.useState)(!1),[l,c]=(0,n.useState)(null),{selectCompanies:u}=Ltt();return(0,Ae.jsx)("div",{className:e.root,children:(0,Ae.jsxs)("form",{onSubmit:r((async e=>{a(!0),c("");const n={name:e.name,type:HB.SOLAR,company:e.company};try{const e=await(async e=>{const t={asset:{name:e.name,company:e.company,country:""},subAssets:[]},n={method:"POST",body:JSON.stringify(t)},r=await Ey("/assets/createSolar",n),i=await r.json();if(200!==r.status)throw new Error(null!==i&&void 0!==i?i:r.statusText);return"".concat(i.assetId)})(n);t.push("/assets/editsolar/".concat(e))}catch(Rmt){c("An error occured")}finally{a(!1)}})),children:[(0,Ae.jsxs)(ws,{container:!0,justifyContent:"space-between",flexWrap:"nowrap",spacing:2,alignItems:"center",children:[(0,Ae.jsx)(ws,{item:!0,children:(0,Ae.jsx)(GQe,{name:"name",control:i,render:e=>{let{field:{onChange:t,value:n,name:r}}=e;return(0,Ae.jsx)(iE,{required:!0,name:r,id:"name",type:"text",variant:"outlined",label:"Asset name",value:n,onChange:t})}})}),(0,Ae.jsx)(ws,{item:!0,children:(0,Ae.jsx)(GQe,{control:i,name:"company",render:t=>{let{field:{onChange:n,value:r}}=t;return(0,Ae.jsx)(yw,{children:(0,Ae.jsx)(rz,{className:e.select,fullWidth:!0,options:u,value:u.find((e=>e.value===r)),getOptionLabel:e=>e.label,onChange:(e,t)=>n(null===t||void 0===t?void 0:t.value),renderInput:e=>(0,Ae.jsx)(iE,{...e,label:"Company",required:!0})})})}})}),(0,Ae.jsx)(ws,{item:!0,children:(0,Ae.jsx)(ev,{fullWidth:!0,submit:!0,size:"large",variant:"contained",color:"create",disabled:s||""===o("name")||null==o("company"),loading:s,children:"Create"})})]}),l?(0,Ae.jsx)(wp,{marginY:"1rem",children:(0,Ae.jsx)(pM,{severity:"error",children:l})}):(0,Ae.jsx)(Ae.Fragment,{})]})})},Bat=e=>{let{...t}=e;const n=Ao(),r=on();var i,o;n||r.push("/login",{from:null!==(i=null===(o=r.location)||void 0===o?void 0:o.pathname)&&void 0!==i?i:"/"});return Eo()||r.push("/"),n?(0,Ae.jsx)(Zt,{...t}):(0,Ae.jsx)(Ae.Fragment,{})},Uat=e=>(0,Ae.jsxs)($x,{open:!0,children:[(0,Ae.jsx)(YAe,{children:e.text}),(0,Ae.jsx)($y,{style:{paddingBottom:"1rem"}})]}),Wat=()=>{const[e,t]=(0,n.useState)(!1),[r,i]=(0,n.useState)([]),[o,s]=(0,n.useState)(void 0),[a,l]=(0,n.useState)(),[c,u]=(0,n.useState)([]),[d,h]=(0,n.useState)([]),[p,f]=(0,n.useState)(),[g,m]=(0,n.useState)([]),[y,v]=(0,n.useState)([]),[_,b]=(0,n.useState)([]),[x,S]=(0,n.useState)(!0),[w,E]=(0,n.useState)(!1),{internal:P,externalUserCode:C,inspections:A,defects:k,annotations:j,resultsPageConfig:I}=(0,n.useContext)(Ije),G=Zo()((()=>({root:{height:"100%",backgroundColor:"white"},modal:{overflowY:Wy()?"auto":void 0},part2:{display:"inline-flex",alignItems:"center",justifyContent:"space-between",margin:"1rem 0.5rem 0.5rem 0.5rem"},rightArea:{height:"100%",padding:"0 .5rem",display:"flex",flexDirection:"column"},mainListContainer:{flexGrow:1,flexShrink:1,overflow:"hidden"},defects:{border:"1px solid lightgrey",borderRadius:7,textAlign:"left",height:"100%",flexGrow:1,flexShrink:1},imagesContainer:{height:"25%",flexShrink:0},images:{maxHeight:"100%",height:"100%"},exit:{position:"absolute",right:"0.5rem",top:"0.2rem",cursor:"pointer",fontSize:"2rem",color:"white",borderRadius:"1rem",backgroundColor:"rgba(0,0,0,0.6)",border:"2px solid",padding:"0.3rem",zIndex:10},alignRight:{position:"absolute",right:10,zIndex:1},files:{color:Gp,fontWeight:"bold",height:"2rem",padding:"0.5rem",display:"flex"},rootSmartphone:{height:"100%",width:"100%",backgroundColor:"white",display:"flex",flexDirection:"column",rowGap:".5rem"},smartphoneTop:{height:"50%"},smartphoneBottom:{borderTop:"1px solid grey",height:"50%",display:"flex",flexDirection:"column"}}))),{classes:T}=G(),{getSortedPhotosPerInspection:M}=tke({inspectionsIds:A.map((e=>{let{id:t}=e;return t})),externalUserCode:C});(0,n.useEffect)((()=>{i(k),!o&&null!==k&&void 0!==k&&k.length&&V(k[0])}),[A,k,j]);const O=(0,n.useCallback)((e=>{const t=k.find((t=>t.id===e));return null!==t&&void 0!==t&&t.inspectionId?t.inspectionId:""}),[k]),R=(0,n.useCallback)((e=>k.find((t=>{let{annotations:n}=t;return n.map((e=>{let{annotationRef:t}=e;return t})).includes(e)}))),[k]),D=(0,n.useCallback)(((e,t,n)=>{var r;if(GU(e.type)!==PL.DISCONNECTED&&(null===(r=e.urls)||void 0===r||!r.length)){const e=O(n);return DA(e,t,"Solar")}}),[O]),N=(0,n.useCallback)(((e,t)=>{const n=j.find((t=>t.fileName===e));return n?{...n,urls:null!==t&&void 0!==t?t:[]}:void 0}),[j]),L=(0,n.useCallback)((async e=>{f(void 0);const t=N(e);if(t){const n=R(e);if(!n)return;if(b(n.annotations.map((e=>{let{annotationRef:t}=e;return t}))),GU(t.type)!==PL.DISCONNECTED){const r=await D(t,e,n.id);l(r.urls)}s(n)}}),[R,N,D]),V=(0,n.useCallback)((e=>{e.annotations.length&&(L(e.annotations[0].annotationRef),b(e.annotations.map((e=>{let{annotationRef:t}=e;return t}))))}),[L]),F=(0,n.useMemo)((()=>{if(_.length>0){const e=R(_[0]);if(e)return O(e.id)}else if(p)return p.inspectionId;return""}),[_,p,R,O]),z=(0,n.useMemo)((()=>M(F)),[M,F]),B=(0,n.useCallback)((e=>{const t=O(e);window.open("/inspections/".concat(t,"/annotated/defect/").concat(e))}),[O]),U=()=>{const e=[];for(const t of A){const n=IA(t);if(n){const t=e.map((e=>e.id));t.includes(n.id)||e.push(n)}}return e},W=e=>{b([]);const t=d.find((t=>t.photoId===e));t&&f(t)},H=(0,n.useCallback)((async()=>{if(e||c.length>0)return;t(!0);let n=[];const r=[],i=[],o=[];for(const e of A){const[t,s]=await Promise.all([CA(e.id),vV(e.id)]);i.push({inspectionId:e.id,photosData:t}),o.push({inspectionId:e.id,mobileData:s});const a=qL(aV(t),e);a.length&&(n=n.concat(a)),t.forEach((t=>{r.push({inspectionId:e.id,photoId:t.id,thermalJpgURL:""})}))}m(i),v(o),h(r),u(n),t(!1)}),[e,A,c.length]),q=(0,n.useCallback)((e=>{V(e),null===I||void 0===I||I.setCurrentTab(Uje.MAP)}),[I,V]),X=()=>(0,Ae.jsx)(lIe,{inspections:A,annotations:j,defects:r,photos:c,photosDataPerInspection:g,mobileDataPerInspection:y,selectedAnnotationsFullIds:_,onClickPhoto:W,onClickDefect:L,subassets:U(),askPhotoLayer:H,externalUserCode:C}),Y=()=>(0,Ae.jsx)("div",{className:T.defects,children:(0,Ae.jsx)($je,{defects:k,filteredDefects:r,annotations:j,openInAnalyze:B,internal:P,externalUserCode:C,saveFilteredDefects:i,getInspectionId:O,selectedDefect:o,changeSelectedDefect:V,goToMap:q,groupedMode:!0})}),K=()=>{var e,t;const n=GU(null!==(e=null===o||void 0===o?void 0:o.type)&&void 0!==e?e:"")===PL.DISCONNECTED,r=n?j.filter((e=>{let{fileName:t}=e;return _.includes(t)})):[N(null!==(t=_[0])&&void 0!==t?t:"",a)].flatMap((e=>e?[e]:[]));return(0,Ae.jsx)("div",{className:T.images,children:(0,Ae.jsx)(uIe,{inspectionId:F,photoDisplay:p,annotations:r,sortedPhotos:z,isSelectedDefectDisconnected:n,externalCampaignUserCode:C})})};return(0,Ae.jsxs)(Ae.Fragment,{children:[!Wy()&&(0,Ae.jsx)(Ae.Fragment,{children:(0,Ae.jsxs)("div",{className:T.root,children:[e&&(0,Ae.jsx)(Uat,{text:"Loading photos information"}),(0,Ae.jsxs)(ws,{container:!0,justifyContent:"space-between",height:"100%",children:[(0,Ae.jsx)(ws,{item:!0,xs:12,md:7,children:X()}),(0,Ae.jsxs)(ws,{item:!0,xs:12,md:5,className:T.rightArea,children:[(0,Ae.jsx)("div",{className:T.mainListContainer,children:Y()}),(0,Ae.jsx)("div",{className:T.imagesContainer,children:K()})]})]})]})}),Wy()&&(0,Ae.jsxs)("div",{className:T.rootSmartphone,children:[w?(0,Ae.jsx)(Ae.Fragment,{}):(0,Ae.jsx)(wp,{height:"50%",children:(null===I||void 0===I?void 0:I.currentTab)===Uje.MAP?X():Y()}),(0,Ae.jsxs)(wp,{height:"50%",display:"flex",flexDirection:"column",children:[(0,Ae.jsxs)(wp,{width:"100%",padding:"0.5rem",display:"flex",justifyContent:"space-between",children:[(0,Ae.jsx)(Kje,{handleTakePhoto:async e=>{o&&await zL(e,o,o.inspectionId,!0)},text:"Take picture",open:w,setOpen:e=>E(e)}),!w&&(0,Ae.jsx)(EF,{value:x,onChange:()=>S(!x),button1Label:"Image",button2Label:"Details"})]}),o?(0,Ae.jsxs)(Ae.Fragment,{children:[(0,Ae.jsxs)("div",{className:T.files,children:[(0,Ae.jsx)("p",{children:"Files :"}),(0,Ae.jsx)(Eq,{defect:o,readOnly:!P,inspectionId:O(o.id)})]}),(0,Ae.jsx)(wp,{height:"75%",paddingX:"0.25rem",children:x?K():(0,Ae.jsx)(Lje,{isSolar:!0,defect:o,setSelectedDefect:s,inspectionId:O(o.id),readOnly:!P,groupedMode:!0})})]}):(0,Ae.jsx)(Ae.Fragment,{})]})]})]})},Hat=Zo()((()=>({smartphoneTitle:{textAlign:"center"},subTitle:{marginTop:"0.25rem",color:"black"}}))),qat=e=>{var t,r;const{classes:i}=Hat(),{internal:o,campaign:s,inspections:a,defects:l,annotations:c}=(0,n.useContext)(Ije),[u,d]=(0,n.useState)(""),h=(0,n.useMemo)((()=>"Global report of campaign ".concat(null===s||void 0===s?void 0:s.name)),[s]),p=(0,n.useMemo)((()=>{var e;return null===(e=a[0])||void 0===e?void 0:e.asset}),[a]),f=[{text:null!==(t=null===p||void 0===p?void 0:p.name)&&void 0!==t?t:"",url:"/assets/".concat(null!==(r=null===p||void 0===p?void 0:p.id)&&void 0!==r?r:""),style:{fontSize:18}},{text:h,style:{fontSize:18}}];(0,n.useEffect)((()=>{if(!a)return;const e=a.map((e=>{var t,n,r;return null!==(t=null===e||void 0===e||null===(n=e.inspectionDates)||void 0===n?void 0:n.inspected)&&void 0!==t?t:null===e||void 0===e||null===(r=e.inspectionDates)||void 0===r?void 0:r.planned})).filter((e=>e)).sort().map(Iy),t=[...new Set(e)];if(0===t.length)return;const n=t[0],r=t[t.length-1];d(1===t.length?"Campaign of ".concat(t[0]):"From ".concat(n," to ").concat(r))}),[a]);const g=!Wy()&&o;return(0,Ae.jsx)(PF,{pageTitle:h,customStyle:{alignItems:"stretch"},left:Wy()?(0,Ae.jsx)("p",{className:i.smartphoneTitle,children:h}):(0,Ae.jsxs)(Ae.Fragment,{children:[(0,Ae.jsx)(nfe,{items:f}),(0,Ae.jsx)("p",{className:i.subTitle,children:u})]}),center:(0,Ae.jsx)(Hje,{setCurrentTab:e.setCurrentTab,currentTab:e.currentTab,withListTab:Wy()}),right:(0,Ae.jsxs)(ws,{container:!0,wrap:"nowrap",columnGap:"0.5rem",justifyContent:Wy()?"center":"flex-end",paddingTop:Wy()?"0.5rem":"initial",height:"100%",maxHeight:"36px",children:[g?(0,Ae.jsx)(jF,{btnVersion:!0}):void 0,!Yy()&&s&&(0,Ae.jsx)(pZe,{type:kC.CAMPAIGN,id:s.id,internal:o,inspections:a,defects:l,annotations:c})]}),size:Wy()?{left:12,center:12,right:12}:{left:4,center:4,right:4},children:e.children})},Xat=e=>{let{internal:t,externalUserCode:r}=e;const{campaignId:i}=an(),o=Wy()?Uje.MAP:Uje.STATS,[s,a]=(0,n.useState)(o),[l,c]=(0,n.useState)(void 0),[u,d]=(0,n.useState)(!1),[h,p]=(0,n.useState)([]),[f,g]=(0,n.useState)(!1),[m,y]=(0,n.useState)(!1),[v,_]=(0,n.useState)(DEe),x=b(xy),{inspections:S,defects:w,annotations:E}=x;(0,n.useEffect)((()=>{P()}),[]);const P=()=>{i?(y(!0),k(i)):(y(!1),C())},C=async()=>{if(i)return void y(!0);const e=window.location.pathname.split("/"),t=e.length?e[e.length-1]:null;if(!t)return;g(!0);const{campaignId:n}=await FV(kC.CAMPAIGN,t);g(!1),n&&""!==n&&(y(!0),k(n))};(0,n.useEffect)((()=>{if(!S)return;const e=A(S);p(e)}),[S]);const A=e=>{const t=e.map((e=>{var t,n,r;return{id:null===e||void 0===e||null===(t=e.subAsset)||void 0===t?void 0:t.id,name:null===e||void 0===e||null===(n=e.subAsset)||void 0===n?void 0:n.name,model:null===e||void 0===e||null===(r=e.subAsset)||void 0===r?void 0:r.model}})).filter((e=>{let{id:t}=e;return t}));return[...new Map(t.map((e=>[e.id,e]))).values()]},k=async e=>{Sy.dispatch(_y),d(!0);const n=await MV(e);n&&n.inspectionsIds.length&&(await RA(n.inspectionsIds,null!==t&&void 0!==t&&t),c({...n,types:n.inspectionsIds.map((()=>RC.SOLAR))}),d(!1),_((e=>({...e,defectData:OEe.FETCHED,annotationData:OEe.FETCHED}))))};return f?(0,Ae.jsx)(Ae.Fragment,{}):f||m?u?(0,Ae.jsx)(Uat,{text:"Loading inspections information"}):(0,Ae.jsxs)(Ae.Fragment,{children:[(0,Ae.jsx)(LKe,{context:{internal:t,externalUserCode:r,inspections:S,defects:w,annotations:E,subAssets:h,selectedSubAssets:h,campaign:l,resultsPageConfig:{currentTab:s,setCurrentTab:a},fetchStatus:v},children:(0,Ae.jsxs)(qat,{currentTab:s,setCurrentTab:e=>a(e),children:[[Uje.MAP,Uje.LIST].includes(s)?(0,Ae.jsx)(Wat,{}):null,s===Uje.STATS?(0,Ae.jsx)(FKe,{}):null]})}),t&&(0,Ae.jsx)(XKe,{})]}):(0,Ae.jsx)(pM,{severity:"error",style:{margin:10},children:"You don't have the rights to view this page, please ask the authorised user that has shared this link with you"})},Yat=Zo()((()=>({csvBtnContainer:{"& a":{textDecoration:"none"}}}))),Kat=e=>{const{classes:t}=Yat();return(0,Ae.jsx)(cu,{title:"Download CSV",children:(0,Ae.jsx)("span",{className:t.csvBtnContainer,children:(0,Ae.jsx)(eH.CSVLink,{enclosingCharacter:"",separator:";",data:e.csv,filename:e.fileName,target:"_blank",children:void 0===e.label?(0,Ae.jsx)(Gu,{children:(0,Ae.jsx)(qh,{})}):(0,Ae.jsx)(ev,{frontIcon:(0,Ae.jsx)(qh,{}),label:e.label})})})})},Zat=(e,t,n)=>{const r=$at().findIndex((e=>"Subasset"===e)),i=$at().findIndex((e=>"Blade"===e)),o=e.map((e=>{const r=Qat(e,t);if(!r)return[];const i=n.find((t=>{var n,r;let{fileName:i}=t;return i===(null===(n=e.annotations)||void 0===n||null===(r=n[0])||void 0===r?void 0:r.annotationRef)}));return Jat(e,r,i)})).sort(((e,t)=>{var n,o,s,a;const l=null!==(n=e[r])&&void 0!==n?n:"",c=null!==(o=t[r])&&void 0!==o?o:"";if(l<c)return-1;if(l>c)return 1;const u=null!==(s=e[i])&&void 0!==s?s:"",d=null!==(a=t[i])&&void 0!==a?a:"";return u<d?-1:u>d?1:0})),s=[["Id",...$at()],...o.map(((e,t)=>[(t+1).toString(),...e]))];return s.push([""]),s.push(["","Powered by SkyVisor"]),s},$at=()=>["Asset","Subasset","Type","Powering Date","Last Inspection","Model","Severity","Blade","Side","Altitude (m)","Root blade distance (m)","Defect size (cm)","Note","Root cause","Next step","Resolved","Link"],Jat=(e,t,n)=>{var r,i,o,s,a,l,c,u,d,h,p,f,g;return[null!==(r=null===t||void 0===t||null===(i=t.asset)||void 0===i?void 0:i.name)&&void 0!==r?r:"",null!==(o=null===t||void 0===t||null===(s=t.subAsset)||void 0===s?void 0:s.name)&&void 0!==o?o:"",e.type,Iy(null!==(a=t.inspectionDates.created)&&void 0!==a?a:""),Iy(null!==(l=t.inspectionDates.inspected)&&void 0!==l?l:""),null!==(c=null===(u=t.subAsset)||void 0===u?void 0:u.model)&&void 0!==c?c:"",e.severity.toString(),null!==(d=e.blade)&&void 0!==d?d:"",null!==(h=e.face)&&void 0!==h?h:"",null!==(p=null===(f=e.altitude)||void 0===f?void 0:f.toString())&&void 0!==p?p:"",e.hubDistance?Ly(e.hubDistance,2).toString():"",n?rH(n):"",e.note,e.rootCause,e.nextStep.replace(/(\r\n|\n|\r)/gm," "),(null===e||void 0===e||null===(g=e.state)||void 0===g?void 0:g.status)===pAe.CLOSED?"Resolved":"",iH(e,t)]},Qat=(e,t)=>t.find((t=>{let{id:n}=t;return n===e.inspectionId})),elt=()=>{const{campaign:e,selectedData:t,selectedSubAssets:r}=(0,n.useContext)(Gje),i=(0,n.useMemo)((()=>r.length>0?"Export CSV for ".concat(r.length," turbine").concat(r.length>1?"s":""):"Export CSV for all turbines"),[r]),{csvFileName:o,csvData:s}=(0,n.useMemo)((()=>{const n=r.length?"turbines-".concat(r.map((e=>{let{name:t}=e;return t})).join("-")):"all";return{csvFileName:"Campaign ".concat(null===e||void 0===e?void 0:e.name," ").concat(n,".csv"),csvData:Zat(t.defects,t.inspections,t.annotations)}}),[r,t.inspections,t.defects,t.annotations]);return(0,Ae.jsx)(Kat,{csv:s,fileName:o,label:i})},tlt=Zo()((()=>({smartphoneTitle:{textAlign:"center"},subTitle:{marginTop:"0.25rem",paddingLeft:"0.25rem",color:"black"}}))),nlt=e=>{var t,r;const{classes:i}=tlt(),{internal:o,campaign:s,inspections:a}=(0,n.useContext)(Gje),[l,c]=(0,n.useState)(""),u=(0,n.useMemo)((()=>"Global report of campaign ".concat(null===s||void 0===s?void 0:s.name)),[s]),d=(0,n.useMemo)((()=>{var e;return null===(e=a[0])||void 0===e?void 0:e.asset}),[a]),h=[{text:null!==(t=null===d||void 0===d?void 0:d.name)&&void 0!==t?t:"",url:"/assets/".concat(null!==(r=null===d||void 0===d?void 0:d.id)&&void 0!==r?r:""),style:{fontSize:18}},{text:u,style:{fontSize:18}}];(0,n.useEffect)((()=>{if(!a)return;const e=a.map((e=>{var t,n,r;return null!==(t=null===e||void 0===e||null===(n=e.inspectionDates)||void 0===n?void 0:n.inspected)&&void 0!==t?t:null===e||void 0===e||null===(r=e.inspectionDates)||void 0===r?void 0:r.planned})).filter((e=>e)).sort().map(Iy),t=[...new Set(e)];if(0===t.length)return;const n=t[0],r=t[t.length-1];c(1===t.length?"Campaign of ".concat(t[0]):"From ".concat(n," to ").concat(r))}),[a]);const p=!Wy()&&o;return s?(0,Ae.jsx)(Ae.Fragment,{children:(0,Ae.jsx)(PF,{pageTitle:u,left:Wy()?(0,Ae.jsx)("p",{className:i.smartphoneTitle,children:u}):(0,Ae.jsxs)(Ae.Fragment,{children:[(0,Ae.jsx)(nfe,{items:h,noLink:!o}),(0,Ae.jsx)("p",{className:i.subTitle,children:l})]}),right:(0,Ae.jsxs)(ws,{container:!0,wrap:"nowrap",height:"100%",alignItems:"stretch",justifyContent:Wy()?"center":"end",columnGap:"0.5rem",children:[p&&(0,Ae.jsx)(ws,{item:!0,children:(0,Ae.jsx)(jF,{btnVersion:!0})}),(0,Ae.jsx)(ws,{item:!0,children:(0,Ae.jsx)(elt,{})}),(0,Ae.jsx)(pZe,{type:kC.CAMPAIGN,id:s.id,internal:o,showExport:!1})]}),size:Wy()?{left:12,center:0,right:12}:{left:6,center:0,right:6},children:e.children})}):(0,Ae.jsx)(Ae.Fragment,{})};var rlt=__webpack_require__(32880);const ilt=e=>{const{bladeA:t,bladeB:n,bladeC:r,hub:i,tower:o,isTurbineSelected:s}=e,a="white",l=s?3:1;return(0,Ae.jsxs)("svg",{width:"63",height:"101",viewBox:"0 0 63 101",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,Ae.jsx)("path",{d:"M26.0113 34.4363C26.5124 34.581 27.5671 38.1782 27.2397 38.9881C26.9123 39.7979 23.7434 43.539 23.0226 44.2659C22.3018 44.9927 22.3185 45.0023 21.5067 45.3919C20.6949 45.7816 3.63273 51.6762 2.27056 51.3228C0.908396 50.9695 1.05765 50.2 1.05765 50.2C1.05765 50.2 0.912839 49.6894 1.435 48.5637C1.95716 47.438 25.5103 34.2916 26.0113 34.4363Z",stroke:jp,fill:null!==r&&void 0!==r?r:a,strokeWidth:l}),(0,Ae.jsx)("path",{d:"M36.0464 29.9968C35.6697 30.3552 32.0048 29.4635 31.4621 28.7771C30.9195 28.0907 29.2409 23.4952 28.9673 22.512C28.6938 21.5288 28.6771 21.5383 28.7431 20.6454C28.8091 19.7526 32.1989 2.13377 33.1882 1.13915C34.1775 0.144518 34.774 0.657597 34.774 0.657597C34.774 0.657597 35.2917 0.788349 36.0125 1.8002C36.7333 2.81204 36.4232 29.6383 36.0464 29.9968Z",stroke:jp,fill:null!==t&&void 0!==t?t:a,strokeWidth:l}),(0,Ae.jsx)("path",{d:"M34.8966 40.8593C34.7723 40.3561 37.3825 37.6505 38.2525 37.5271C39.1226 37.4037 43.9701 38.258 44.9644 38.5144C45.9588 38.7708 45.9588 38.7517 46.7045 39.2549C47.4503 39.7581 61.1227 51.4824 61.4956 52.8303C61.8685 54.1783 61.1227 54.4347 61.1227 54.4347C61.1227 54.4347 60.7498 54.8145 59.5069 54.9284C58.2639 55.0422 35.0209 41.3625 34.8966 40.8593Z",stroke:jp,fill:null!==n&&void 0!==n?n:a,strokeWidth:l}),(0,Ae.jsx)("path",{d:"M36.3681 99.8148C36.9896 99.568 35.1252 41.6873 34.2551 40.9468C33.3851 40.2063 30.5263 40.4532 30.1534 40.9468C29.7805 41.4404 27.5432 99.568 28.1647 99.8148C28.7862 100.062 35.7467 100.062 36.3681 99.8148Z",stroke:jp,fill:null!==o&&void 0!==o?o:a,strokeWidth:l}),(0,Ae.jsx)("path",{d:"M28.9333 35.0493C28.9333 36.9509 30.4869 38.4985 32.4108 38.4985C34.3346 38.4985 35.8882 36.9509 35.8882 35.0493C35.8882 33.1477 34.3346 31.6001 32.4108 31.6001C30.4869 31.6001 28.9333 33.1477 28.9333 35.0493Z",stroke:jp,fill:null!==i&&void 0!==i?i:a,strokeWidth:l})]})},olt=Zo()((()=>({root:{userSelect:"none","& .MuiButtonBase-root.MuiCheckbox-root":{padding:"1px 9px"}}}))),slt=e=>{const{classes:t}=olt();return(0,Ae.jsx)(wwe,{className:t.root,children:e.items.map(((e,t)=>(0,Ae.jsx)(Pu,{control:(0,Ae.jsx)(lj,{checked:e.checked,onChange:t=>{var n;return null===(n=e.onChange)||void 0===n?void 0:n.call(e,t.target.checked)}}),label:e.label},"checkbox-".concat(t))))})},alt=()=>{const{subAssets:e,inspections:t,defects:r,selectedSubAssets:i,setSelectedSubAssets:o}=(0,n.useContext)(Gje),[s,a]=(0,n.useState)(!1),l=[{label:"Select all",checked:s,onChange:t=>{a(t),o(t?e.map((e=>{let{id:t,name:n}=e;return{id:t,name:n}})):[])}}],c=e=>e.map((e=>{let{lat:t,lon:n}=e;return{lat:t,lng:n}})).filter(F3),u=(0,n.useMemo)((()=>O3(c(e),"large",200)),[e]),d=(0,n.useMemo)((()=>{const t=c(e);if(0===t.length)return;const n=t.map(A3),r=n.map((e=>e[0])),i=n.map((e=>e[1])),o=Math.min(...r),s=Math.min(...i),a=Math.max(...r)-o,l=Math.max(...i)-s,u=2*Math.max(a,l,200),d=T3(c(e));if(!d)return;const[h,p]=A3(d);return[h-u,p-u,h+u,p+u]}),[e]),h=(e,t)=>{const{bladeA:n,bladeB:r,bladeC:i,tower:o}=e.reduce(((e,t)=>{const n=t.blade?"blade".concat(t.blade):"tower";return(void 0===e[n]||e[n]<t.severity)&&(e[n]=t.severity),e}),{bladeA:void 0,bladeB:void 0,bladeC:void 0,tower:void 0}),s=e=>e?Zp[e]:void 0,a=(0,Ae.jsx)(ilt,{bladeA:s(n),bladeB:s(r),bladeC:s(i),tower:s(o),isTurbineSelected:t});return(e=>URL.createObjectURL(new Blob([e],{type:"image/svg+xml"})))(rlt.renderToString(a))},p=(0,n.useMemo)((()=>((e,t,n,r)=>e.map((e=>{const i=n.filter((t=>t.subAsset.id===e.id)).map((e=>{let{id:t}=e;return t})),o=r.filter((e=>{let{inspectionId:t}=e;return i.includes(null!==t&&void 0!==t?t:"")})),s=t.map((e=>{let{id:t}=e;return t})).includes(e.id);return{id:e.id,displayText:e.name,type:"icon",coords:{lat:e.lat,lng:e.lon},style:{anchor:[.5,.89]},textStyle:{offsetY:-50},iconUrl:h(o,s)}})).filter(W3))(e,i,t,r)),[e,i,t,r]);(0,n.useEffect)((()=>{const t=i.length>0&&i.length===e.length;s!==t&&a(t)}),[i]);return 0===e.length||0===u.length?(0,Ae.jsx)(Iwe,{}):(0,Ae.jsx)(U5,{bounds:u,extent:d,leftBar:(0,Ae.jsxs)(wp,{display:"flex",flexDirection:"column",height:"100%",alignItems:"start",justifyContent:"space-between",children:[(0,Ae.jsx)(WEe,{stayOpen:!0,children:(0,Ae.jsx)(slt,{items:l})}),(0,Ae.jsx)(kwe,{})]}),children:(0,Ae.jsx)(Z5,{clickable:!0,points:p,onPointClicked:t=>{const n="".concat(t.getId());if(r=n,i.findIndex((e=>e.id===r))>-1){const e=i.filter((e=>e.id!==n));return void o(e)}var r;const s=e.find((e=>e.id===n));s&&o([...i,{id:s.id,name:s.name}])}})})},llt=Zo()(((e,t)=>({severityCardItem:{alignItems:"center",rowGap:t.small?"0.1rem":"0.5rem","& h1":{fontSize:t.small?"16px":"25px",fontWeight:500},"& p":{fontSize:t.small?"10px":"16px",color:Rp}},severityColor:{width:"100%",height:t.small?"0.2rem":"0.3rem",backgroundColor:Zp[t.severity]}}))),clt=e=>{var t;const{classes:n}=llt({severity:e.severity,small:null!==(t=e.small)&&void 0!==t&&t});return(0,Ae.jsxs)(ws,{item:!0,container:!0,direction:"column",className:"sv-severity-item ".concat(n.severityCardItem),children:[(0,Ae.jsx)(ws,{item:!0,children:(0,Ae.jsx)("h1",{children:e.count})}),(0,Ae.jsx)(ws,{item:!0,className:"".concat(n.severityColor," severity5")}),(0,Ae.jsx)(ws,{item:!0,children:(0,Ae.jsxs)("p",{children:["sev ",e.severity]})})]})},ult=Zo()(((e,t)=>{let{mainPadding:n,itemPadding:r}=t;return{severityCard:{backgroundColor:"white",padding:n,color:"black",flexWrap:"nowrap","& .sv-severity-item":{borderRight:"1px solid",borderRightColor:Rp,padding:r,"&:last-of-type":{borderRight:"none"}}}}})),dlt=e=>{const t="".concat(Wy()?.25:e.small?.5:1,"rem"),n="0 ".concat(Wy()?.25:1,"rem"),{classes:r}=ult({mainPadding:t,itemPadding:n}),i=[...nZe].reverse();return(0,Ae.jsx)(hj,{children:(0,Ae.jsx)(ws,{container:!0,className:r.severityCard,children:i.map((t=>(0,Ae.jsx)(clt,{severity:t,count:e.severityCount[t],small:e.small},"severity-item-".concat(t))))})})},hlt=e=>(0,Ae.jsxs)(ws,{container:!0,direction:"column",rowGap:"0.25rem",children:[(0,Ae.jsx)(ws,{item:!0,paddingBottom:"0.5rem",children:(0,Ae.jsx)("h3",{children:"Choose an inspection:"})}),e.inspections.map((t=>{var n,r;return(0,Ae.jsx)(ev,{onClick:()=>e.onChoose(t.id),children:(0,Ae.jsxs)(ws,{item:!0,container:!0,wrap:"nowrap",columnGap:"0.25rem",children:[(0,Ae.jsx)("b",{children:t.type}),(0,Ae.jsx)("p",{children:null!==(n=t.inspectionDates)&&void 0!==n&&n.inspected?Iy(null===(r=t.inspectionDates)||void 0===r?void 0:r.inspected):"Not inspected yet"})]})},t.id)}))]}),plt=Zo()((e=>({main:{"&:hover":{cursor:"initial"}},info:{"&:hover":{cursor:"help"}},inspectionChooserContainer:{padding:"1rem"},buttonsContainer:{[e.breakpoints.down("lg")]:{flexDirection:"column"}}})));var flt=function(e){return e.PDF="pdf",e.LINK="link",e}(flt||{});const glt=e=>{const{classes:t}=plt(),{campaign:r,defects:i,inspections:o,annotations:s,internal:a,inspectionIdExternalCodeMap:l}=(0,n.useContext)(Gje),[c,u]=(0,n.useState)(""),[d,h]=(0,n.useState)(),[p,f]=(0,n.useState)([]),[g,m]=(0,n.useState)(),y=(0,n.useRef)(null),{subAssetInspections:v,subAssetDefects:_,subAssetResolvedDefects:b,subAssetAnnotations:x}=(0,n.useMemo)((()=>{const t=o.filter((t=>t.subAsset.id===e.subAsset.id)),n=t.map((e=>{let{id:t}=e;return t})),r=i.filter((e=>{var t;return n.includes(null!==(t=e.inspectionId)&&void 0!==t?t:"")}));return{subAssetInspections:t,subAssetDefects:r,subAssetResolvedDefects:r.filter((e=>{var t;return(null===(t=e.state)||void 0===t?void 0:t.status)===pAe.CLOSED})),subAssetAnnotations:s.filter((e=>{var t;return n.includes(null!==(t=e.inspectionId)&&void 0!==t?t:"")}))}}),[i,o,s,e.subAsset]),{csvFileName:S,csvData:w}=(0,n.useMemo)((()=>({csvFileName:"Campaign ".concat(null===r||void 0===r?void 0:r.name," turbine ").concat(e.subAsset.name,".csv"),csvData:Zat(_,v,x)})),[e.subAsset,v,_,x]),E=(0,n.useMemo)((()=>rZe(_)),[_]),P=(0,n.useMemo)((()=>v.some((e=>""!==e.reviews.subAsset))),[_]);(0,n.useEffect)((()=>{C(v)}),[v]);const C=async e=>{const t=await Promise.all(e.map((e=>{let{id:t}=e;return Py(t).then((e=>({inspectionId:t,pdfURL:e})))})));f(t)},A=(e,t)=>{if(0!==v.length)if(v.length>1)m({href:"",purpose:t}),h(e.currentTarget);else{h(void 0);const e=v[0].id;t===flt.PDF&&j(e),t===flt.LINK&&k(e)}},k=(0,n.useCallback)((e=>{let t="/inspections/".concat(e);const n=l.get(e);!a&&n&&(t="/results/".concat(n)),m({href:t,purpose:flt.LINK})}),[a,l]),j=e=>{var t;const n=null===(t=p.find((t=>t.inspectionId===e)))||void 0===t?void 0:t.pdfURL;n?m({href:n,purpose:flt.PDF}):u("The PDF report for this inspection is not generated yet.")};return(0,n.useEffect)((()=>{y.current&&null!==g&&void 0!==g&&g.href&&(y.current.click(),m(void 0))}),[y.current,g]),(0,Ae.jsxs)(Ae.Fragment,{children:[(0,Ae.jsxs)(ws,{container:!0,justifyContent:"space-between",alignItems:"center",wrap:"nowrap",columnGap:".5rem",paddingX:"1rem",paddingY:"0.5rem",className:t.main,children:[!Wy()&&(0,Ae.jsx)(ws,{item:!0,children:(0,Ae.jsx)(dlt,{severityCount:E,small:!0})}),(0,Ae.jsx)(ws,{item:!0,children:(0,Ae.jsxs)("b",{children:[b.length," / ",_.length," resolved"]})}),(0,Ae.jsx)(ws,{item:!0,minWidth:"24px",children:P&&v.some((e=>void 0!==e.reviews.subAsset))&&(0,Ae.jsx)(cu,{title:(0,Ae.jsx)("div",{children:v.map((e=>(0,Ae.jsx)("p",{children:e.reviews.subAsset},"tooltip-review-".concat(e.id))))}),children:(0,Ae.jsx)(vu,{sx:{textDecoration:"underline",cursor:"help",textDecorationStyle:"dotted",textUnderlineOffset:"0.2em"},children:"Conclusion"})})}),(0,Ae.jsxs)(ws,{item:!0,container:!0,width:"fit-content",alignItems:"center",justifyContent:"space-evenly",className:t.buttonsContainer,children:[(0,Ae.jsx)(ws,{item:!0,children:p.length>0&&(0,Ae.jsx)(cu,{title:"Download PDF",children:(0,Ae.jsx)(Gu,{onClick:e=>A(e,flt.PDF),children:(0,Ae.jsx)(gM,{})})})}),(0,Ae.jsx)(ws,{item:!0,children:(0,Ae.jsx)(Kat,{csv:w,fileName:S})}),(0,Ae.jsx)(ws,{item:!0,children:(0,Ae.jsx)(cu,{title:"Open inspection",placement:"left",children:(0,Ae.jsx)(Gu,{onClick:e=>A(e,flt.LINK),children:(0,Ae.jsx)(YCe.c,{})})})})]})]}),(0,Ae.jsx)("a",{ref:y,onClick:e=>e.stopPropagation(),href:null===g||void 0===g?void 0:g.href,style:{visibility:"hidden"},target:"_blank",rel:"noreferrer",download:(null===g||void 0===g?void 0:g.purpose)===flt.PDF}),(0,Ae.jsx)(Ud,{open:void 0!==d,anchorEl:d,onClose:()=>h(void 0),anchorOrigin:{vertical:"bottom",horizontal:"center"},transformOrigin:{vertical:"top",horizontal:"right"},children:(0,Ae.jsx)("div",{className:t.inspectionChooserContainer,children:(0,Ae.jsx)(hlt,{inspections:v,onChoose:e=>{const t=null===g||void 0===g?void 0:g.purpose;t&&(t===flt.PDF&&j(e),t===flt.LINK&&k(e),h(void 0))}})})}),(0,Ae.jsx)(JT,{open:""!==c,autoHideDuration:3e3,onClose:()=>u(""),anchorOrigin:{vertical:"bottom",horizontal:"right"},children:(0,Ae.jsx)(pM,{severity:"error",children:c})})]})},mlt=Zo()((()=>({main:{paddingLeft:"5rem"}}))),ylt=e=>{const{classes:t}=mlt(),r=(0,n.useMemo)((()=>rZe(e.turbineDefects.defects)),[e.turbineDefects]),{turbinePartDefects:i,turbinePartResolvedDefects:o}=(0,n.useMemo)((()=>{const t=e.turbineDefects.defects;return{turbinePartDefects:t,turbinePartResolvedDefects:t.filter((e=>{var t;return(null===(t=e.state)||void 0===t?void 0:t.status)===pAe.CLOSED}))}}),[e.turbineDefects.defects]),s=(0,n.useMemo)((()=>e.turbineDefects.isTower?"subAsset":"blade".concat(e.turbineDefects.bladeName)),[e.turbineDefects]),a=(0,n.useMemo)((()=>e.turbineInspections.map((e=>e.reviews[s])).join("\n")),[e.turbineInspections]),l=(0,n.useMemo)((()=>a.length<=100),[a]);return(0,Ae.jsxs)(ws,{container:!0,justifyContent:"space-between",alignItems:"center",wrap:"nowrap",columnGap:"0.25rem",className:t.main,children:[(0,Ae.jsx)(ws,{item:!0,xs:1,children:e.turbineDefects.partName}),!Wy()&&(0,Ae.jsx)(ws,{item:!0,xs:4,children:(0,Ae.jsx)(dlt,{severityCount:r,small:!0})}),(0,Ae.jsx)(ws,{item:!0,xs:3,textAlign:"center",children:(0,Ae.jsxs)("b",{children:[o.length," / ",i.length," ","resolved"]})}),(0,Ae.jsx)(ws,{item:!0,xs:4,children:(0,Ae.jsx)(cu,{disableHoverListener:l,title:a,placement:"left",children:(0,Ae.jsxs)("p",{children:[a.slice(0,100),!1===l&&"\u2026"]})})})]})},vlt=e=>{const{defects:t,inspections:r,selectedSubAssets:i,setSelectedSubAssets:o}=(0,n.useContext)(Gje),s=(0,n.useMemo)((()=>r.filter((t=>t.subAsset.id===e.subAsset.id))),[r,e.subAsset.id]),a=(0,n.useMemo)((()=>s.map((e=>{let{id:t}=e;return t}))),[s]),l=(0,n.useMemo)((()=>t.filter((e=>{var t;return a.includes(null!==(t=e.inspectionId)&&void 0!==t?t:"")}))),[t,e.subAsset.id]),c=(0,n.useMemo)((()=>(e=>e.reduce(((e,t)=>{const n=void 0!==t.blade,r=n?"".concat(tZe.BLADE," ").concat(t.blade):tZe.TOWER,i=e.findIndex((e=>{let{partName:t}=e;return t===r}));return-1===i?e.push({isTower:!n,partName:r,defects:[t],bladeName:t.blade}):e[i].defects.push(t),e}),[]))(l).sort(((e,t)=>e.partName<t.partName?-1:1))),[l]),u=(0,n.useMemo)((()=>i.map((e=>{let{id:t}=e;return t})).includes(e.subAsset.id)),[i]);return(0,Ae.jsx)(f8,{withAccordion:!0,defaultExpanded:!1,noMargin:!0,title:"Turbine ".concat(e.subAsset.name),action:(0,Ae.jsx)(glt,{subAsset:e.subAsset}),withCheckbox:!0,checked:u,onCheckboxChanged:t=>{const n=e.subAsset.id,r=e.subAsset.name,s={id:n,name:r},a=t?[...i,s]:i.filter((e=>{let{id:t}=e;return t!==n}));o(a)},childComp:(0,Ae.jsx)(ws,{container:!0,direction:"column",paddingY:"0.5rem",rowGap:"0.25rem",paddingLeft:"1rem",children:c.map(((e,t)=>(0,Ae.jsx)(ws,{item:!0,children:(0,Ae.jsx)(ylt,{turbineInspections:s,turbineDefects:e})},"turbine-part-defects-".concat(t))))})})},_lt=Zo()((()=>({separator:{width:"75%",height:"0.1rem",borderRadius:"1rem",backgroundColor:"white"}}))),blt=e=>{const{classes:t}=_lt();return(0,Ae.jsxs)(ws,{container:!0,direction:"column",wrap:"nowrap",width:"100%",height:"100%",alignItems:"center",justifyContent:"space-evenly",children:[(0,Ae.jsxs)(ws,{item:!0,children:[e.resolved," resolved"]}),(0,Ae.jsx)(ws,{item:!0,className:t.separator}),(0,Ae.jsxs)(ws,{item:!0,children:[e.total," defects"]})]})},xlt=Zo()((()=>({alert:{height:"100%",alignItems:"center",fontSize:"25px","& .MuiAlert-message":{padding:0,flex:1,height:"100%"}},windTurbinePart:{width:"10rem"},csvBtnContainer:{"& a":{textDecoration:"none"}}}))),Slt=()=>{const{classes:e}=xlt(),{defects:t,subAssets:r}=(0,n.useContext)(Gje),i=(0,n.useMemo)((()=>rZe(t)),[t]),o=(0,n.useMemo)((()=>{const e=r.every((e=>!isNaN(parseFloat(e.name))));return[...r].sort(((t,n)=>e?parseFloat(t.name)-parseFloat(n.name):t.name.localeCompare(n.name)))}),[r]),s=(0,n.useMemo)((()=>t.filter((e=>{var t;return(null===e||void 0===e||null===(t=e.state)||void 0===t?void 0:t.status)===pAe.CLOSED})).length),[t]);return 0===r.length?(0,Ae.jsx)(Iwe,{}):(0,Ae.jsxs)(ws,{container:!0,direction:"column",height:"100%",overflow:"auto",wrap:"nowrap",padding:"0.5rem",rowGap:"0.5rem",children:[(0,Ae.jsxs)(ws,{item:!0,container:!0,gap:"1rem",alignItems:"stretch",wrap:Wy()?"wrap":"nowrap",children:[(0,Ae.jsx)(ws,{item:!0,xs:12,md:8,children:(0,Ae.jsx)(dlt,{severityCount:i})}),(0,Ae.jsx)(ws,{item:!0,xs:12,md:4,children:(0,Ae.jsx)(pM,{variant:"filled",severity:"info",className:e.alert,icon:!1,children:(0,Ae.jsx)(blt,{total:t.length,resolved:s})})})]}),(0,Ae.jsx)(ws,{item:!0,container:!0,flex:1,direction:"column",wrap:"nowrap",overflow:"auto",children:(0,Ae.jsx)(ws,{item:!0,overflow:"auto",children:o.map(((e,t)=>(0,Ae.jsx)(vlt,{subAsset:e},"tubine-item-".concat(t))))})})]})},wlt=()=>{const{subAssets:e,selectedSubAssets:t,defects:r,inspections:i}=(0,n.useContext)(Gje),o=(0,n.useMemo)((()=>(t.length>0?t:e).sort(((e,t)=>e.name<t.name?-1:1)).map((e=>{const t=i.filter((t=>t.subAsset.id===e.id)).map((e=>{let{id:t}=e;return t})),n=(e=>e.reduce(((e,t)=>{const n=t.type;return n in e?e[n]+=1:e[n]=1,e}),{}))(r.filter((e=>{var n;return t.includes(null!==(n=e.inspectionId)&&void 0!==n?n:"")}))),o=Object.keys(n).reduce(((e,t)=>(e[t]=n[t],e)),[]);return{key:e.id,columnName:"Turbine ".concat(e.name),...o}}))),[t,e,i,r]),s=(0,n.useMemo)((()=>[...new Set(r.map((e=>{let{type:t}=e;return t})))]),[r]);return(0,Ae.jsxs)(ws,{container:!0,height:"100%",direction:"column",wrap:"nowrap",alignItems:"center",rowGap:"0.5rem",children:[(0,Ae.jsx)(ws,{item:!0,paddingX:"0.5rem",textAlign:"center",children:(0,Ae.jsx)("h4",{children:"Turbines defects type repartition"})}),(0,Ae.jsx)(ws,{item:!0,flex:1,width:"100%",children:(0,Ae.jsx)(gKe,{children:(0,Ae.jsxs)(aKe,{data:o,children:[(0,Ae.jsx)(iKe,{dataKey:"columnName"}),(0,Ae.jsx)(sKe,{width:30}),(0,Ae.jsx)(IOe,{}),s.map(((e,t)=>(0,Ae.jsx)(rqe,{dataKey:e,stackId:"a",maxBarSize:40,fill:iZe(e,t)},"bar-".concat(e))))]})})})]})},Elt=()=>{const{subAssets:e,selectedSubAssets:t,defects:r,inspections:i}=(0,n.useContext)(Gje),o=(0,n.useMemo)((()=>(t.length>0?t:e).sort(((e,t)=>e.name<t.name?-1:1)).map((e=>{const t=i.filter((t=>t.subAsset.id===e.id)).map((e=>{let{id:t}=e;return t})),n=r.filter((e=>{var n;return t.includes(null!==(n=e.inspectionId)&&void 0!==n?n:"")})),o=rZe(n),s=Object.keys(o).sort().reduce(((e,t)=>(e["Severity ".concat(t)]=o[t],e)),[]);return{key:e.id,columnName:"Turbine ".concat(e.name),...s}}))),[t,e,i,r]);return(0,Ae.jsxs)(ws,{container:!0,height:"100%",direction:"column",wrap:"nowrap",alignItems:"center",rowGap:"0.5rem",children:[(0,Ae.jsx)(ws,{item:!0,paddingX:"0.5rem",textAlign:"center",children:(0,Ae.jsx)("h4",{children:"Turbines defects severity repartition"})}),(0,Ae.jsx)(ws,{item:!0,flex:1,width:"100%",children:(0,Ae.jsx)(gKe,{children:(0,Ae.jsxs)(aKe,{data:o,children:[(0,Ae.jsx)(iKe,{dataKey:"columnName"}),(0,Ae.jsx)(sKe,{width:30}),(0,Ae.jsx)(IOe,{}),nZe.map((e=>{var t;return(0,Ae.jsx)(rqe,{dataKey:"Severity ".concat(e),stackId:"a",maxBarSize:40,fill:null!==(t=Zp[e])&&void 0!==t?t:""},"bar-".concat(e))}))]})})})]})},Plt=Zo()((()=>({card:{height:"100%",paddingTop:".5rem"}}))),Clt=()=>{const{classes:e}=Plt();return(0,Ae.jsxs)(ws,{container:!0,wrap:"nowrap",height:"100%",alignItems:"center",justifyContent:"center",padding:Wy()?0:".5rem",columnGap:".5rem",children:[(0,Ae.jsx)(ws,{item:!0,xs:6,height:"100%",children:(0,Ae.jsx)(hj,{className:e.card,children:(0,Ae.jsx)(Elt,{})})}),(0,Ae.jsx)(ws,{item:!0,xs:6,height:"100%",children:(0,Ae.jsx)(hj,{className:e.card,children:(0,Ae.jsx)(wlt,{})})})]})},Alt=Zo()((()=>({image:{position:"relative",width:"100%","& img":{width:"100%",height:"100%",objectFit:"contain",textAlign:"center",backgroundColor:"black"},"& h3, & .defect-description, & button":{position:"absolute",color:"transparent",transition:"color ".concat(.25,"s")},"& h3":{width:"100%",textAlign:"center",top:0,overflow:"hidden",textOverflow:"ellipsis"},"& .defect-description":{padding:"0.5rem",bottom:0,width:"85%"},"& button":{bottom:0,right:0},"& .image-overlay":{position:"absolute",width:"100%",height:"100%",backgroundColor:"transparent",transition:"background-color ".concat(.25,"s")},"&:hover":{"& .image-overlay":{backgroundColor:"rgba(0,0,0,.5)"},"& h3, & .defect-description, & button":{color:"white"}}}}))),klt=e=>{const{classes:t}=Alt();return(0,Ae.jsxs)(wp,{className:t.image,children:[(0,Ae.jsxs)("div",{className:"image-overlay",children:[(0,Ae.jsx)("h3",{title:e.title,children:e.title}),(0,Ae.jsx)("div",{className:"defect-description",children:e.children}),void 0!==e.linkUrl&&(0,Ae.jsx)("a",{href:e.linkUrl,target:"_blank",rel:"noreferrer",children:(0,Ae.jsx)(Gu,{children:(0,Ae.jsx)(YCe.c,{})})})]}),(0,Ae.jsx)("img",{src:e.imageUrl,alt:"[Defect] ".concat(e.title)})]})},jlt=Zo()((()=>({main:{height:"100%",width:"100%",padding:".5rem"},text:{overflow:"hidden",textOverflow:"ellipsis"}}))),Ilt=()=>{const{classes:e}=jlt(),{selectedSubAssets:t,selectedData:r,internal:i}=(0,n.useContext)(Gje),o=(0,n.useMemo)((()=>r.defects.map((e=>{var t,n,i;const o=r.annotations.find((t=>{var n,r;return t.fileName===(null===(n=e.annotations)||void 0===n||null===(r=n[0])||void 0===r?void 0:r.annotationRef)})),s=r.inspections.find((t=>t.id===e.inspectionId)),a="/inspections/".concat(e.inspectionId,"/defect/").concat(e.id),l=o?rH(o):"";return{defectId:e.id,severity:e.severity,defectLink:a,subAssetName:null!==(t=null===s||void 0===s?void 0:s.subAsset.name)&&void 0!==t?t:"",blade:e.blade,defectType:e.type,hubDistance:e.hubDistance?Ly(e.hubDistance,1):void 0,altitude:e.altitude?Ly(e.altitude,1):void 0,size:l,imageUrl:null!==(n=null===o||void 0===o||null===(i=o.urls)||void 0===i?void 0:i[0])&&void 0!==n?n:""}}))),[r]),s=(0,n.useMemo)((()=>o.filter((e=>e.imageUrl)).reduce(((e,t)=>{const n=t.severity;return nZe.includes(n)?(n in e?e[n].push(t):e[n]=[t],e):e}),{})),[o]);return(0,Ae.jsx)("div",{className:e.main,children:(0,Ae.jsx)(hj,{style:{height:"100%",padding:"0.5rem"},children:(0,Ae.jsxs)(ws,{container:!0,direction:"column",wrap:"nowrap",height:"100%",overflow:"auto",rowGap:"1rem",children:[t.length>0&&(0,Ae.jsx)(ws,{item:!0,children:(0,Ae.jsx)(pM,{severity:"info",children:"Only the defects of the selected turbines are displayed"})}),[...nZe].reverse().map((t=>t in s&&(0,Ae.jsxs)(ws,{item:!0,container:!0,direction:"column",wrap:"nowrap",children:[(0,Ae.jsx)(ws,{item:!0,textAlign:"center",children:(0,Ae.jsx)(Wtt,{color:jp,children:(0,Ae.jsxs)(vu,{variant:"h6",color:jp,children:["Severity ",t]})})}),(0,Ae.jsx)(ws,{item:!0,container:!0,columns:Wy()?2:4,rowGap:".5rem",children:s[t].map(((t,n)=>(0,Ae.jsx)(ws,{item:!0,xs:1,padding:".5rem",children:(0,Ae.jsx)(klt,{imageUrl:t.imageUrl,linkUrl:i?t.defectLink:void 0,title:"Turbine ".concat(t.subAssetName," ").concat(t.blade?"Blade ".concat(t.blade):""),children:(0,Ae.jsxs)(Ae.Fragment,{children:[(0,Ae.jsxs)("p",{className:e.text,title:"".concat(t.defectType," | ").concat(t.size),children:[t.defectType," | ",t.size]}),t.hubDistance&&(0,Ae.jsxs)("p",{className:e.text,title:"".concat(t.hubDistance,"m from hub"),children:[t.hubDistance,"m from hub"]}),t.altitude&&(0,Ae.jsxs)("p",{className:e.text,title:"".concat(t.altitude,"m from ground"),children:[t.altitude,"m from ground"]})]})})},"defect-image-".concat(n))))})]},"images-container-severity-".concat(t))))]})})})},Glt=e=>{const{campaignId:t,externalUserCode:r}=e,[i,o]=(0,n.useState)(new Map);return(0,n.useEffect)((()=>{if(!r)return;(async()=>{const e=await(async(e,t)=>{const n=await Ey("/campaigns/".concat(e,"/external-inspections-codes?externalUserCode=").concat(encodeURIComponent(t)));if(!n.ok){const e=await n.text();throw new Error(null!==e&&void 0!==e?e:"[getExternalUserInspectionsCode] An error occured")}const r=await n.json();if(!Array.isArray(r))throw new Error("[getExternalUserInspectionsCode] Results should be an array");const i=new Map;return r.forEach((e=>{let{inspectionId:t,inspectionExternalCode:n}=e;i.set(t,n)})),i})(t,r);o(e)})()}),[t,r]),{inspectionIdExternalCodeMap:i}},Tlt=e=>{let{children:t,context:n}=e;return(0,Ae.jsx)(Gje.Provider,{value:n,children:t})},Mlt=e=>{var t;const{campaign:r,externalUserCode:i}=e,[o,s]=(0,n.useState)([]),[a,l]=(0,n.useState)([]),[c,u]=(0,n.useState)([]),[d,h]=(0,n.useState)([]),{inspectionIdExternalCodeMap:p}=Glt({campaignId:r.id,externalUserCode:i});(0,n.useEffect)((()=>{r.inspectionsIds&&v(r.inspectionsIds)}),[r.inspectionsIds]);const f=(0,n.useMemo)((()=>{var e;return null!==(e=r.inspections)&&void 0!==e?e:[]}),[r.inspections]),{selectedSubsInspections:g,selectedSubsDefects:m,selectedSubsAnnotations:y}=(0,n.useMemo)((()=>{const e=d.map((e=>{let{id:t}=e;return t}));if(0===e.length)return{selectedSubsDefects:a,selectedSubsInspections:f,selectedSubsAnnotations:c};const t=f.filter((t=>e.includes(t.subAsset.id))),n=t.map((e=>{let{id:t}=e;return t}));return{selectedSubsInspections:t,selectedSubsDefects:a.filter((e=>{var t;return n.includes(null!==(t=e.inspectionId)&&void 0!==t?t:"")})),selectedSubsAnnotations:c.filter((e=>{var t;return n.includes(null!==(t=e.inspectionId)&&void 0!==t?t:"")}))}}),[a,f,c,d]),v=e=>{const t=[...new Set(f.map((e=>{let{subAsset:t}=e;return t.id})))].map((e=>{var t;return null===(t=f.find((t=>{let{subAsset:n}=t;return n.id===e})))||void 0===t?void 0:t.subAsset})).filter((e=>e));s(t),Promise.all(e.map((e=>IL(e).then((t=>t.map((t=>({...t,inspectionId:e})))))))).then((e=>{l(e.flat())})),Promise.all(e.map((e=>jL(e,RC.WIND).then((t=>t.annotations.map((t=>({...t,inspectionId:e})))))))).then((e=>{u(e.flat())}))};return(0,Ae.jsx)(Tlt,{context:{internal:void 0===i,campaign:r,inspections:null!==(t=r.inspections)&&void 0!==t?t:[],defects:a,annotations:c,subAssets:o,selectedData:{inspections:g,annotations:y,defects:m},selectedSubAssets:d,setSelectedSubAssets:h,inspectionIdExternalCodeMap:p},children:(0,Ae.jsx)(nlt,{children:(0,Ae.jsxs)(ws,{container:!0,direction:"row",height:"100%",columnGap:"1rem",wrap:Wy()?"wrap":"nowrap",children:[(0,Ae.jsxs)(ws,{item:!0,xs:12,md:5,container:!0,direction:"column",height:"100%",rowGap:"1rem",wrap:"nowrap",children:[(0,Ae.jsx)(ws,{item:!0,height:"50%",children:(0,Ae.jsx)(alt,{})}),(0,Ae.jsx)(ws,{item:!0,height:"50%",children:(0,Ae.jsx)(Clt,{})})]}),(0,Ae.jsxs)(ws,{item:!0,xs:12,md:7,container:!0,direction:"column",height:"100%",rowGap:"1rem",wrap:"nowrap",children:[(0,Ae.jsx)(ws,{item:!0,height:"fit-content",minHeight:"20%",maxHeight:"50%",children:(0,Ae.jsx)(Slt,{})}),(0,Ae.jsx)(ws,{item:!0,flexGrow:1,height:"0",children:(0,Ae.jsx)(Ilt,{})})]})]})})})},Olt=e=>{var t;const{campaignId:r,externalLink:i}=an(),{isLoading:o,isAllowed:s,campaign:a}=(e=>{const[t,r]=(0,n.useState)(!1),[i,o]=(0,n.useState)(!1),[s,a]=(0,n.useState)(!1),[l,c]=(0,n.useState)(),[u,d]=(0,n.useState)(!1),[h,p]=(0,n.useState)();(0,n.useEffect)((()=>{f(e)}),[e]);const f=async e=>{r(!0);let t=await MV(e);t||(t=await g(e),d(!0)),t&&t.inspectionsIds.length&&(c(!0),p({...t,types:[]}),r(!1))},g=async e=>{o(!0);const{campaignId:t}=await FV(kC.CAMPAIGN,e);return o(!1),t&&""!==t?(c(!0),MV(t)):null};(0,n.useEffect)((()=>{if(null===h||void 0===h||!h.inspectionsIds)return;const t=h.inspectionsIds;m(t,u?e:void 0)}),[null===h||void 0===h?void 0:h.inspectionsIds,u,e]);const m=async(e,t)=>{a(!0);const n=await Promise.all(e.map((e=>PA(e,t).catch((()=>null))))),r=n.filter((e=>e)),i=r.map((e=>{let{type:t}=e;return t}));p((e=>e?{...e,inspections:r,types:i}:void 0)),a(!1)};return{isLoading:t||s||i,isAllowed:l,campaign:h}})(null!==(t=e.internal?r:i)&&void 0!==t?t:""),{isSolarCampaign:l,isWindCampaign:c}=(0,n.useMemo)((()=>a?OV(a):{isSolarCampaign:!1,isWindCampaign:!1}),[a]);return o?(0,Ae.jsx)(Uat,{text:"Loading campaign data"}):s?a?a.inspectionsIds&&0!==a.inspectionsIds.length&&0!==a.types.length?l?(0,Ae.jsx)(Xat,{internal:e.internal,externalUserCode:i}):c?(0,Ae.jsx)(Mlt,{campaign:a,externalUserCode:i}):(0,Ae.jsx)(Ae.Fragment,{}):(0,Ae.jsx)(Ae.Fragment,{}):(0,Ae.jsx)(Uat,{text:"Loading campaign data"}):(0,Ae.jsx)(pM,{severity:"error",style:{margin:10},children:"You don't have the rights to view this page, please ask the authorised user that has shared this link with you"})},Rlt=e=>{Dlt(),setTimeout((()=>Nlt(e)),100)},Dlt=()=>{Ny("/javascripts/res/three.js")},Nlt=e=>{try{THREE&&(Ny("/javascripts/res/FBXLoader.js"),setTimeout((()=>Llt(e)),300))}catch(t){setTimeout((()=>Nlt(e)),100)}},Llt=e=>{e.forEach((e=>{e.endsWith(".json")?Ny(e,"text/javascript"):Ny(e)}))},Vlt=["/javascripts/res/inflate.min.js","/javascripts/res/OrbitControls.js","/javascripts/res/windTurbine.json","/javascripts/3DUtility.js","/javascripts/res/windTurbineMast.json","/javascripts/3DCore.js","/javascripts/3DWindTurbine.js"],Flt=()=>((0,n.useEffect)((()=>{Rlt(Vlt)}),[]),(0,Ae.jsxs)(Ae.Fragment,{children:[(0,Ae.jsx)("button",{id:"close3D",children:"Close"}),(0,Ae.jsxs)("div",{id:"canvas",className:"bodyCore",children:[(0,Ae.jsxs)("label",{id:"switchDebug",className:"switch",children:[(0,Ae.jsx)("input",{type:"checkbox",id:"skeletonMode"}),(0,Ae.jsx)("span",{className:"slider slider2 round"})]}),(0,Ae.jsx)("h1",{hidden:!0,id:"data",children:""}),(0,Ae.jsxs)("div",{className:"slidecontainer",id:"fovSlider",style:{display:"none"},children:[(0,Ae.jsx)("input",{type:"range",min:"37",max:"117",value:"77",className:"custom-range",id:"fovRange"}),(0,Ae.jsx)("span",{id:"fovv"})]}),(0,Ae.jsx)("div",{className:"slidecontainer",children:(0,Ae.jsx)("input",{type:"range",min:"0",max:"100",value:"0",className:"custom-range",id:"myRange"})}),(0,Ae.jsx)("div",{className:"slidenumber",children:(0,Ae.jsx)("span",{id:"demo"})}),(0,Ae.jsx)("img",{id:"logo",src:"/javascripts/res/Logo1000.png",alt:" special logo"}),(0,Ae.jsxs)("table",{id:"telemetryTable",className:"table table-dark rounded",style:{width:200,top:160,left:15,position:"absolute",opacity:.5,font:"Gill Sans",fontSize:12},children:[(0,Ae.jsxs)("tbody",{id:"noDebug",style:{display:"block"},children:[(0,Ae.jsxs)("tr",{children:[(0,Ae.jsx)("td",{children:"Altitude:"}),(0,Ae.jsx)("td",{id:"altitudeDisplay"})]}),(0,Ae.jsxs)("tr",{children:[(0,Ae.jsx)("td",{children:"Yaw:"}),(0,Ae.jsx)("td",{id:"yawDisplay"})]}),(0,Ae.jsxs)("tr",{children:[(0,Ae.jsx)("td",{children:"Rotor:"}),(0,Ae.jsx)("td",{id:"rotorDisplay"})]}),(0,Ae.jsxs)("tr",{id:"distanceBlock",children:[(0,Ae.jsx)("td",{children:"DistanceToObstacle:"}),(0,Ae.jsx)("td",{id:"distanceObstacleDisplay"})]}),(0,Ae.jsxs)("tr",{children:[(0,Ae.jsx)("td",{children:"FpgLength:"}),(0,Ae.jsx)("td",{id:"FpgLengthDisplay"})]}),(0,Ae.jsxs)("tr",{children:[(0,Ae.jsx)("td",{children:"DistanceRay:"}),(0,Ae.jsx)("td",{id:"RayDisplay"})]})]}),(0,Ae.jsxs)("tbody",{id:"debug",style:{display:"none"},children:[(0,Ae.jsxs)("tr",{children:[(0,Ae.jsx)("td",{children:"Altitude:"}),(0,Ae.jsx)("td",{id:"altitudeDisplayd"})]}),(0,Ae.jsxs)("tr",{children:[(0,Ae.jsx)("td",{children:"Yaw:"}),(0,Ae.jsx)("td",{id:"yawDisplayd"})]}),(0,Ae.jsxs)("tr",{children:[(0,Ae.jsx)("td",{children:"Rotor:"}),(0,Ae.jsx)("td",{id:"rotorDisplayd"})]}),(0,Ae.jsxs)("tr",{id:"distanceBlockd",children:[(0,Ae.jsx)("td",{children:"DistanceToObstacle:"}),(0,Ae.jsx)("td",{id:"distanceObstacleDisplayd"})]}),(0,Ae.jsxs)("tr",{children:[(0,Ae.jsx)("td",{children:"FpgLength:"}),(0,Ae.jsx)("td",{id:"FpgLengthDisplayd"})]}),(0,Ae.jsxs)("tr",{children:[(0,Ae.jsx)("td",{children:"DistanceToHub:"}),(0,Ae.jsx)("td",{id:"distancetohub"})]}),(0,Ae.jsxs)("tr",{children:[(0,Ae.jsx)("td",{children:"DistanceRay:"}),(0,Ae.jsx)("td",{id:"RayDisplayd"})]}),(0,Ae.jsxs)("tr",{children:[(0,Ae.jsx)("td",{children:"Offset:"}),(0,Ae.jsx)("td",{id:"offsetDisplay"})]}),(0,Ae.jsxs)("tr",{children:[(0,Ae.jsx)("td",{children:"Pitch:"}),(0,Ae.jsx)("td",{id:"pitchDisplay"})]}),(0,Ae.jsxs)("tr",{children:[(0,Ae.jsx)("td",{children:"Heading:"}),(0,Ae.jsx)("td",{id:"headingDisplay"})]})]})]}),(0,Ae.jsxs)("label",{htmlFor:"load",children:[(0,Ae.jsx)("input",{accept:".json",id:"file-input",name:"name",type:"file",style:{display:"none"},multiple:!1}),(0,Ae.jsx)("button",{id:"load",children:"Load"})]}),(0,Ae.jsx)("input",{type:"button",value:"Pause",className:"pause",id:"pause"}),(0,Ae.jsx)("div",{id:"cursorDroneArea",children:(0,Ae.jsx)("p",{id:"cursorDrone",children:(0,Ae.jsx)(up,{})})}),(0,Ae.jsx)("div",{className:"idWaypointInput",children:(0,Ae.jsx)("span",{id:"idWaypointDisplay"})})]})]})),zlt=["/javascripts/res/FBXLoader.js","/javascripts/res/inflate.min.js","/javascripts/res/OrbitControls.js","/javascripts/res/building2.json","/javascripts/3DUtility.js","/javascripts/3DCore.js","/javascripts/3DBuilding.js"],Blt=()=>((0,n.useEffect)((()=>{Rlt(zlt)}),[]),(0,Ae.jsxs)(Ae.Fragment,{children:[(0,Ae.jsx)("button",{id:"close3D",children:"Close"}),(0,Ae.jsxs)("div",{id:"canvas",children:[(0,Ae.jsxs)("label",{className:"switch",children:[(0,Ae.jsx)("input",{type:"checkbox",id:"skeletonMode"}),(0,Ae.jsx)("span",{className:"slider slider2 round"})]}),(0,Ae.jsx)("h1",{hidden:!0,id:"data",children:""}),(0,Ae.jsxs)("div",{className:"slidecontainer",id:"fovSlider",style:{display:"none"},children:[(0,Ae.jsx)("input",{type:"range",min:"37",max:"117",value:"77",className:"custom-range",id:"fovRange"}),(0,Ae.jsx)("span",{id:"fovv"})]}),(0,Ae.jsx)("div",{className:"slidecontainer",children:(0,Ae.jsx)("input",{type:"range",min:"0",max:"100",value:"0",className:"custom-range",id:"myRange"})}),(0,Ae.jsx)("div",{className:"slidenumber",children:(0,Ae.jsx)("span",{id:"demo"})}),(0,Ae.jsx)("img",{id:"logo",src:"/javascripts/res/Logo1000.png",alt:"special logo"}),(0,Ae.jsxs)("table",{id:"telemetryTable",className:"table table-dark rounded",style:{width:180,top:160,left:15,position:"fixed",opacity:.5,font:"Gill Sans",fontSize:12},children:[(0,Ae.jsxs)("tbody",{id:"noDebug",style:{display:"block"},children:[(0,Ae.jsxs)("tr",{children:[(0,Ae.jsx)("td",{children:"Altitude:"}),(0,Ae.jsx)("td",{id:"altitudeDisplay"})]}),(0,Ae.jsxs)("tr",{id:"distanceBlock",children:[(0,Ae.jsx)("td",{children:"DistanceToObstacle:"}),(0,Ae.jsx)("td",{id:"distanceObstacleDisplay"})]}),(0,Ae.jsxs)("tr",{children:[(0,Ae.jsx)("td",{children:"FpgLength:"}),(0,Ae.jsx)("td",{id:"FpgLengthDisplay"})]}),(0,Ae.jsxs)("tr",{children:[(0,Ae.jsx)("td",{children:"Step:"}),(0,Ae.jsx)("td",{id:"StepDisplay"})]}),(0,Ae.jsxs)("tr",{children:[(0,Ae.jsx)("td",{children:"Area:"}),(0,Ae.jsx)("td",{id:"AreaDisplay"})]}),(0,Ae.jsxs)("tr",{children:[(0,Ae.jsx)("td",{children:"DistanceRay:"}),(0,Ae.jsx)("td",{id:"RayDisplay"})]})]}),(0,Ae.jsxs)("tbody",{id:"debug",style:{display:"none"},children:[(0,Ae.jsxs)("tr",{children:[(0,Ae.jsx)("td",{children:"Altitude:"}),(0,Ae.jsx)("td",{id:"altitudeDisplayd"})]}),(0,Ae.jsxs)("tr",{children:[(0,Ae.jsx)("td",{children:"FpgLength:"}),(0,Ae.jsx)("td",{id:"FpgLengthDisplayd"})]}),(0,Ae.jsxs)("tr",{children:[(0,Ae.jsx)("td",{children:"Step:"}),(0,Ae.jsx)("td",{id:"StepDisplayd"})]}),(0,Ae.jsxs)("tr",{children:[(0,Ae.jsx)("td",{children:"Area:"}),(0,Ae.jsx)("td",{id:"AreaDisplayd"})]}),(0,Ae.jsxs)("tr",{id:"distanceBlockd",children:[(0,Ae.jsx)("td",{children:"DistanceToObstacle:"}),(0,Ae.jsx)("td",{id:"distanceObstacleDisplayd"})]}),(0,Ae.jsxs)("tr",{children:[(0,Ae.jsx)("td",{children:"DistanceToHub:"}),(0,Ae.jsx)("td",{id:"distancetohub"})]}),(0,Ae.jsxs)("tr",{children:[(0,Ae.jsx)("td",{children:"DistanceRay:"}),(0,Ae.jsx)("td",{id:"RayDisplayd"})]}),(0,Ae.jsxs)("tr",{children:[(0,Ae.jsx)("td",{children:"Pitch:"}),(0,Ae.jsx)("td",{id:"pitchDisplay"})]}),(0,Ae.jsxs)("tr",{children:[(0,Ae.jsx)("td",{children:"Heading:"}),(0,Ae.jsx)("td",{id:"headingDisplay"})]})]})]}),(0,Ae.jsx)("button",{id:"load",children:"Load"}),(0,Ae.jsx)("input",{accept:".json",id:"file-input",type:"file",name:"name",style:{display:"none"}}),(0,Ae.jsx)("input",{type:"button",value:"Pause",className:"pause",id:"pause"}),(0,Ae.jsx)("div",{id:"cursorDroneArea",children:(0,Ae.jsx)("p",{id:"cursorDrone",children:(0,Ae.jsx)(up,{})})}),(0,Ae.jsx)("div",{className:"idWaypointInput",children:(0,Ae.jsx)("span",{id:"idWaypointDisplay"})})]})]})),Ult=(0,n.createContext)({assetId:"",asset:null,isCreation:!1,setCreation:()=>{},tempSubAssets:[],setTempSubAssets:()=>{},selectedSubAsset:null,setSelectedSubAsset:()=>{},isUpdating:!1,setUpdating:()=>{},createTempSubAsset:()=>{},template:{},setTemplate:()=>{},isValidInput:!1,setValidInput:()=>{}}),Wlt=Zo()((e=>({assetInputName:{fontSize:25,minWidth:"5ch",maxWidth:"20ch"},select:{minWidth:"12rem"},assetInputNumber:{marginLeft:"0.25rem",color:e.palette.primary.main,minWidth:"4ch",maxWidth:"12ch",textAlign:"center",fontSize:"20px"},dflex:{display:"flex",justifyContent:"center",alignItems:"center",columnGap:"0.25rem"}}))),Hlt=e=>{var t;const{classes:r}=Wlt(),i=on(),o=m(),{assetId:s,asset:a,tempSubAssets:l,setTempSubAssets:c,setCreation:u,template:d,isCreation:h,setUpdating:p,isUpdating:f,isValidInput:g,setValidInput:y,setSelectedSubAsset:v}=(0,n.useContext)(Ult),{selectCompanies:_}=Ltt(),b=(0,n.useMemo)((()=>null===a||void 0===a?void 0:a.assetInfos),[a]),[x,S]=(0,n.useState)(""),[w,E]=(0,n.useState)(""),[P,C]=(0,n.useState)(null),[A,k]=(0,n.useState)(!1);(0,n.useEffect)((()=>{var e,t;const n=b;S(null!==(e=null===n||void 0===n?void 0:n.name)&&void 0!==e?e:""),E(null!==(t=null===n||void 0===n?void 0:n.company)&&void 0!==t?t:"")}),[b]),(0,n.useEffect)((()=>{const e=l.every((e=>""!==e.coord&&2===e.coord.split(",").length)),t=d.power&&d.power>0&&d.model;y(!(!t||!e))}),[l,JSON.stringify(d)]);const j=async(e,t)=>{C(e),await async function(e,t){let n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];const r=new Headers;r.append("Content-Type","application/json");const i={method:"POST",headers:r,body:JSON.stringify(t)};if(200===(await Ey("/assets/".concat(e,"/updateWind"),i)).status)return await LT(e,n);return!1}(s,t),o(Lf()),C(null)},I=(0,n.useMemo)((()=>{var e;const t=null!==(e=null===b||void 0===b?void 0:b.subAssetsCount)&&void 0!==e?e:0;return"".concat(t," Turbine").concat(t>1?"s":"")}),[null===b||void 0===b?void 0:b.subAssetsCount]);return(0,Ae.jsx)(PF,{pageTitle:"Edit wind asset",left:(0,Ae.jsxs)(wp,{display:"flex",justifyContent:"space-between",alignItems:"center",children:[(0,Ae.jsxs)("div",{className:r.dflex,children:[(0,Ae.jsx)(RS,{size:"medium",value:x,onChange:e=>S(e.target.value),"aria-label":"Asset name",onBlur:async()=>{var e;s&&b&&(0!==x.length?j("name",{...a,assetInfos:{...b,name:x}}):S(null!==(e=null===b||void 0===b?void 0:b.name)&&void 0!==e?e:""))},inputProps:{className:r.assetInputName,style:{width:function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return"".concat("".concat(e).length+t,"ch")}(x)},maxLength:40}}),"name"===P&&(0,Ae.jsx)($y,{size:20})]}),(0,Ae.jsxs)("div",{className:r.dflex,children:[(0,Ae.jsx)(yw,{className:r.select,children:(0,Ae.jsx)(rz,{id:"company",options:_,getOptionLabel:e=>e.label,renderInput:e=>(0,Ae.jsx)(iE,{...e,label:"Company",variant:"outlined",onChange:e=>E(e.target.value)}),value:null!==(t=_.find((e=>e.value===w)))&&void 0!==t?t:null,onChange:(e,t)=>{t&&(async e=>{var t;s&&b&&(e&&0!==e.length?(E(e),j("company",{...a,assetInfos:{...b,company:e}})):E(null!==(t=null===b||void 0===b?void 0:b.company)&&void 0!==t?t:""))})(t.value)}})}),"company"===P&&(0,Ae.jsx)($y,{size:20})]}),(0,Ae.jsx)("div",{})]}),center:(0,Ae.jsx)(wp,{display:"flex",justifyContent:"center",alignItems:"center",children:(0,Ae.jsx)(vu,{sx:{whiteSpace:"nowrap",fontSize:20},children:I})}),right:(0,Ae.jsx)(wp,{display:"flex",justifyContent:"end",columnGap:"0.5rem",children:(0,Ae.jsxs)(Ae.Fragment,{children:[!h&&(0,Ae.jsxs)(Ae.Fragment,{children:[(0,Ae.jsx)(ev,{label:"Create new subAssets",onClick:()=>{v(null),u(!0)}}),(0,Ae.jsx)(ev,{color:"cancel",disabled:null!==P,onClick:()=>{i.push("/assets/".concat(s))},children:"Exit"})]}),h&&(0,Ae.jsxs)(Ae.Fragment,{children:[A&&(0,Ae.jsx)(vu,{color:"error",children:"Error while creating subAssets, please check your inputs"}),(0,Ae.jsx)(ev,{label:"Validate new subAsset".concat(l.length>1?"s":""),color:"success",disabled:0===l.length||f||!g,loading:f,onClick:async()=>{k(!1);try{await e.saveNewSubAssets()}catch(Rmt){k(!0),p(!1)}}}),(0,Ae.jsx)(ev,{label:"Cancel",color:"cancel",onClick:()=>{u(!1),c([]),k(!1)}})]})]})}),children:e.children})},qlt=e=>{var t,n,r,i,o,s,a,l,c,u,d,h,p,f,g,m;return{name:null!==(t=e.name)&&void 0!==t?t:"",model:null!==(n=e.model)&&void 0!==n?n:"",power:null!==(r=e.power)&&void 0!==r?r:0,lat:null!==(i=e.lat)&&void 0!==i?i:0,lon:null!==(o=e.lon)&&void 0!==o?o:0,poweringDate:e.poweringDate?new Date(e.poweringDate):new Date,lastInspectionDate:e.lastInspectionDate?new Date(e.lastInspectionDate):new Date,serials:{turbine:null!==(s=null===(a=e.serials)||void 0===a?void 0:a.turbine)&&void 0!==s?s:void 0,A:null!==(l=null===(c=e.serials)||void 0===c?void 0:c.A)&&void 0!==l?l:void 0,B:null!==(u=null===(d=e.serials)||void 0===d?void 0:d.B)&&void 0!==u?u:void 0,C:null!==(h=null===(p=e.serials)||void 0===p?void 0:p.C)&&void 0!==h?h:void 0,tower:null!==(f=null===(g=e.serials)||void 0===g?void 0:g.tower)&&void 0!==f?f:void 0},bladesAntiClockWise:null!==(m=e.bladesAntiClockWise)&&void 0!==m&&m}},Xlt={shrink:!0,lang:"en-US"},Ylt=E1e().shape({name:u1e().required().min(1),model:u1e().required().min(1),power:h1e().required().min(1),lat:h1e().min(-90).max(90),lon:h1e().min(-180).max(180),poweringDate:m1e().required().default(new Date),lastInspectionDate:m1e().required().default(new Date).when("poweringDate",((e,t)=>e&&t.min(e,"Last inspection date should be after powering date.")))}).required(),Klt=e=>{const{isUpdating:t,setUpdating:r}=(0,n.useContext)(Ult),{subAsset:i}=e,[o,s]=(0,n.useState)([]),[a,l]=(0,n.useState)(!1),[c,u]=(0,n.useState)(!1),[d,h]=(0,n.useState)(null),[p,f]=(0,n.useState)(!1),[g,m]=(0,n.useState)(!1),{handleSubmit:y,control:v,watch:_,formState:{isValid:b},setValue:x}=S0e({resolver:C0e(Ylt),defaultValues:qlt(i)});(0,n.useEffect)((()=>{S()}),[]),(0,n.useEffect)((()=>{const e=qlt(i);Object.keys(e).forEach((t=>{"serials"===t&&e.serials?Object.keys(e.serials).forEach((t=>{e.serials&&(e.serials[t]?x("serials[".concat(t,"]"),e.serials[t]):x("serials[".concat(t,"]"),""))})):x(t,e[t])}))}),[e.subAsset]);const S=async()=>{const e=await MA(),t=Object.keys(e).map((e=>({value:e,label:e})));s(t)};return(0,Ae.jsxs)(Ae.Fragment,{children:[(0,Ae.jsxs)(wp,{height:"100%",padding:"1rem",display:"flex",flexDirection:"column",children:[(0,Ae.jsx)(ws,{container:!0,children:(0,Ae.jsx)(ws,{item:!0,xs:6,children:(0,Ae.jsx)("h3",{style:{fontWeight:"bold",paddingBottom:"1rem"},children:"Edit subAsset"})})}),(0,Ae.jsx)("form",{onSubmit:y((async t=>{r(!0);const n={...i,...(0,Qo.omit)(t,["poweringDate","lastInspectionDate"])};if(t.poweringDate&&(n.poweringDate=t.poweringDate.toString()),t.lastInspectionDate&&(n.lastInspectionDate=t.lastInspectionDate.toString()),Hhe(n)){(await e.onUpdate(n)).ok?(f(!0),setTimeout((()=>f(!1)),2e3),r(!1)):(m(!0),setTimeout((()=>m(!1)),5e3),r(!1))}else m(!0),setTimeout((()=>m(!1)),5e3),r(!1)})),style:{height:"100%"},children:(0,Ae.jsxs)(ws,{container:!0,direction:"column",justifyContent:"space-between",height:"100%",flexWrap:"nowrap",rowGap:"0.2rem",children:[(0,Ae.jsxs)(ws,{container:!0,item:!0,direction:"column",rowGap:"1rem",children:[(0,Ae.jsx)(GQe,{name:"name",control:v,render:e=>{let{field:{onChange:t,value:n,name:r}}=e;return(0,Ae.jsx)(iE,{fullWidth:!0,name:r,id:"name",style:{borderRadius:"5px"},type:"text",variant:"outlined",label:"Subasset name",value:n,onChange:t})}}),!_("name")&&(0,Ae.jsx)("p",{style:{color:"red"},children:"Name is required field."}),(0,Ae.jsx)(GQe,{name:"model",control:v,render:e=>{var t;let{field:{onChange:n,value:r}}=e;return(0,Ae.jsx)(yw,{children:(0,Ae.jsx)(rz,{id:"model",options:o,renderInput:e=>(0,Ae.jsx)(iE,{...e,label:"Model",variant:"outlined"}),value:null!==(t=o.find((e=>e.value===r)))&&void 0!==t?t:null,style:{borderRadius:"5px"},onChange:(e,t)=>{var r;n(null!==(r=null===t||void 0===t?void 0:t.value)&&void 0!==r?r:"")}})})}}),!_("model")&&(0,Ae.jsx)("p",{style:{color:"red"},children:"Model is required field."}),(0,Ae.jsx)(GQe,{name:"power",control:v,render:e=>{let{field:{onChange:t,value:n,name:r}}=e;return(0,Ae.jsx)(iE,{fullWidth:!0,name:r,id:"power",type:"number",variant:"outlined",label:"Power in kW",style:{borderRadius:"5px"},value:n,onChange:t})}}),!_("power")&&(0,Ae.jsx)("p",{style:{color:"red"},children:"Power is required field."}),(0,Ae.jsx)(GQe,{name:"poweringDate",control:v,render:e=>{let{field:{onChange:t,value:n}}=e;return(0,Ae.jsx)(aS,{label:"Powering date",value:null!==n&&void 0!==n?n:null,onChange:t,inputFormat:"DD/MM/YYYY",renderInput:e=>(0,Ae.jsx)(iE,{...e,variant:"filled"})})}}),(0,Ae.jsx)(GQe,{name:"lastInspectionDate",control:v,render:e=>{let{field:{onChange:t,value:n}}=e;return(0,Ae.jsx)(aS,{label:"Last inspection date",value:null!==n&&void 0!==n?n:null,onChange:t,inputFormat:"DD/MM/YYYY",renderInput:e=>(0,Ae.jsx)(iE,{...e,variant:"filled"})})}}),(!_("lastInspectionDate")||!_("poweringDate")||_("lastInspectionDate")<_("poweringDate"))&&(0,Ae.jsx)("p",{style:{color:"red"},children:"Last inspection date should be after powering date."}),(0,Ae.jsxs)(Ph,{expanded:c,children:[(0,Ae.jsx)(Th,{expandIcon:(0,Ae.jsx)(cp.c,{}),"aria-controls":"serials-content",id:"serials-header",onClick:()=>u(!c),children:(0,Ae.jsx)(vu,{children:"Serials"})}),(0,Ae.jsx)(Dh,{children:(0,Ae.jsx)(wp,{display:"flex",flexDirection:"column",width:"100%",gap:"1rem",children:Object.values(Vhe).map((e=>(0,Ae.jsx)(GQe,{name:"serials[".concat(e,"]"),control:v,render:t=>{let{field:{onChange:n,value:r,name:i}}=t;return(0,Ae.jsx)(iE,{fullWidth:!0,name:i,id:i,type:"text",variant:"outlined",label:e.toUpperCase(),value:null!==r&&void 0!==r?r:"",onChange:n})}},e)))})})]}),(0,Ae.jsx)(GQe,{name:"bladesAntiClockWise",control:v,render:e=>{let{field:{onChange:t,value:n}}=e;return(0,Ae.jsx)(wp,{display:"flex",justifyContent:"flex-start",alignItems:"center",children:(0,Ae.jsx)(ige,{buttons:Object.values(Fhe),onClick:e=>{t(Object.values(Fhe)[e]===Fhe.ANTICLOCKWISE)},activeIndex:!0===n?Object.values(Fhe).indexOf(Fhe.ANTICLOCKWISE):Object.values(Fhe).indexOf(Fhe.CLOCKWISE)})})}}),(0,Ae.jsxs)(wp,{display:"flex",flexDirection:"column",alignItems:"flex-start",gap:"1rem",width:"100%",children:[(0,Ae.jsx)(vu,{children:"Coordinates"}),(0,Ae.jsxs)(wp,{display:"flex",width:"100%",justifyContent:"space-between",gap:"1rem",children:[(0,Ae.jsx)(GQe,{name:"lat",control:v,render:e=>{let{field:{onChange:t,value:n}}=e;return(0,Ae.jsx)(iE,{label:"Latitude",value:null!==n&&void 0!==n?n:0,style:{borderRadius:"5px"},onChange:e=>{/^-?\d*[.,]?\d*$/.test(e.target.value)&&(e.target.value.includes(",")?t(e.target.value.replace(",",".")):t(e.target.value))},InputLabelProps:Xlt})}}),(0,Ae.jsx)(GQe,{name:"lon",control:v,render:e=>{let{field:{onChange:t,value:n}}=e;return(0,Ae.jsx)(iE,{label:"Longitude",value:null!==n&&void 0!==n?n:0,style:{borderRadius:"5px"},onChange:e=>{/^-?\d*[.,]?\d*$/.test(e.target.value)&&(e.target.value.includes(",")?t(e.target.value.replace(",",".")):t(e.target.value))},InputLabelProps:Xlt})}})]}),void 0==_("lat")&&(0,Ae.jsx)("p",{style:{color:"red"},children:"Latitude is required field."}),_("lat")<-90||_("lat")>90&&(0,Ae.jsx)("p",{style:{color:"red"},children:"Latitude should be between -90 and 90."}),void 0==_("lon")&&(0,Ae.jsx)("p",{style:{color:"red"},children:"Longitude is required field."}),_("lon")<-180||_("lon")>180&&(0,Ae.jsx)("p",{style:{color:"red"},children:"Longitude should be between -180 and 180."})]})]}),(0,Ae.jsx)(pM,{style:{opacity:p?1:0,transition:"opacity 0.3s"},severity:"success",children:"SubAsset updated"}),(0,Ae.jsx)(pM,{style:{opacity:g?1:0,transition:"opacity 0.3s"},severity:"error",children:"Something went wrong, please check fields"}),(0,Ae.jsx)("div",{children:(0,Ae.jsxs)(ws,{container:!0,item:!0,flexWrap:"nowrap",columnGap:"1rem",justifyContent:"space-between",marginY:"0.3rem",children:[(0,Ae.jsx)(ev,{fullWidth:!0,size:"large",variant:"contained",color:"cancel",onClick:e.onCancel,disabled:a||t,children:"Close"}),(0,Ae.jsx)(ev,{fullWidth:!0,size:"large",variant:"contained",color:"delete",onClick:e=>h(e.currentTarget),disabled:a||t,loading:a,children:"Delete"}),(0,Ae.jsx)(ev,{fullWidth:!0,submit:!0,size:"large",variant:"contained",color:"success",disabled:a||t||!b,loading:t,children:"Save"})]})})]})})]}),d&&(0,Ae.jsx)(nv,{topTitle:"Delete subAsset",title:"Do you confirm deleting ".concat(i.name,"?"),close:()=>h(null),confirm:async()=>{h(null),l(!0),await e.onDelete(),l(!1)},titleConfirm:"Delete",anchorEl:d})]})};var Zlt=__webpack_require__(50780);const $lt=e=>{var t;const[r,i]=(0,n.useState)(e.tmpSubAsset),[o,s]=(0,n.useState)(null),[a,l]=(0,n.useState)(!1),[c,u]=(0,n.useState)(null);return(0,n.useEffect)((()=>{e.handleEdit(r)}),[r]),(0,n.useEffect)((()=>{const t=setTimeout((()=>{if(!r.coord)return void l(!1);const t=r.coord.split(",");if(2!==(n=t).length||""===n[0]||""===n[1]||n[0].split(".").length>2||n[1].split(".").length>2||Number(n[0])>90||Number(n[0])<-90||Number(n[1])>180||Number(n[1])<-180||isNaN(Number(n[0]))||isNaN(Number(n[1])))return e.setValidInput(!1),l(!0),void s("Invalid format, please use decimal WGS84 lat then lon separated by a comma.");var n;i((e=>({...e,lat:parseFloat(t[0]),lon:parseFloat(t[1])}))),l(!1)}),700);return()=>clearTimeout(t)}),[r.coord]),(0,Ae.jsxs)(wp,{display:"flex",justifyContent:"space-between",alignItems:"center",textAlign:"center",gap:"1rem",children:[(0,Ae.jsxs)(wp,{display:"flex",flexDirection:"column",flex:2,children:[(0,Ae.jsx)(vu,{children:"WGS84 Lat, lon (e.g. 45.123, 5.123)"}),(0,Ae.jsx)(iE,{fullWidth:!0,value:r.coord,type:"text",style:{backgroundColor:a?"#ffcccc":"white"},onChange:e=>{u(e.currentTarget),i((t=>({...t,coord:e.target.value})))}}),(0,Ae.jsx)(Ud,{open:!!o,anchorEl:c,anchorOrigin:{vertical:"bottom",horizontal:"left"},disableAutoFocus:!0,disableEnforceFocus:!0,onClose:()=>s(null),children:(0,Ae.jsx)(wp,{padding:"1rem",children:o})})]}),(0,Ae.jsxs)(wp,{display:"flex",flexDirection:"column",flex:1,children:[(0,Ae.jsx)(vu,{children:"Name"}),(0,Ae.jsx)(iE,{fullWidth:!0,value:r.name,type:"text",onChange:e=>{i((t=>({...t,name:e.target.value})))},InputLabelProps:Xlt})]}),(0,Ae.jsxs)(wp,{display:"flex",flexDirection:"column",width:"100%",flex:2,children:[(0,Ae.jsx)(vu,{children:"Turbine Serial"}),(0,Ae.jsx)(iE,{fullWidth:!0,value:null!==(t=r.turbineSerial)&&void 0!==t?t:"",type:"text",onChange:e=>{i((t=>({...t,turbineSerial:e.target.value})))},InputLabelProps:Xlt})]}),(0,Ae.jsx)(ev,{frontIcon:(0,Ae.jsx)(che,{}),onClick:e.handleClick})]})},Jlt=()=>{const{createTempSubAsset:e,setTempSubAssets:t,tempSubAssets:r,setValidInput:i}=(0,n.useContext)(Ult);return(0,Ae.jsxs)(wp,{display:"flex",flexDirection:"column",gap:"1rem",width:"100%",height:"100%",minHeight:"50%",overflow:"auto",paddingX:"1rem",children:[(0,Ae.jsx)("div",{style:{display:"flex",width:"100%",justifyContent:"center",position:"sticky",top:0,zIndex:1,backgroundColor:"white",paddingBottom:"1rem"},children:(0,Ae.jsx)(ev,{style:{width:"fit-content",top:"0",zIndex:1},frontIcon:(0,Ae.jsx)(Zlt.c,{}),label:"Add new Turbine",onClick:()=>{e()}})}),r.map(((e,n)=>(0,Ae.jsx)($lt,{tmpSubAsset:e,handleClick:()=>(e=>{const n=[...r];n.splice(e,1),t(n)})(n),handleEdit:e=>((e,n)=>{t((t=>{const r=[...t];return r[n]={...e},r}))})(e,n),setValidInput:i},"tmp-subAsset-".concat(e.id))))]})},Qlt=()=>{var e,t,r,i;const{template:o,setTemplate:s}=(0,n.useContext)(Ult),[a,l]=(0,n.useState)([]);(0,n.useEffect)((()=>{c()}),[]);const c=async()=>{const e=await MA(),t=Object.keys(e).map((e=>({value:e,label:e})));l(t)};return(0,Ae.jsx)(Ae.Fragment,{children:(0,Ae.jsxs)(wp,{height:"100%",padding:"1rem",display:"flex",flexDirection:"column",children:[(0,Ae.jsxs)(wp,{children:[(0,Ae.jsx)(ws,{container:!0,children:(0,Ae.jsx)(ws,{item:!0,xs:6,children:(0,Ae.jsx)("h3",{style:{fontWeight:"bold",paddingBottom:"1rem"},children:"Edit template"})})}),(0,Ae.jsx)(ws,{container:!0,direction:"column",justifyContent:"space-between",height:"100%",flexWrap:"nowrap",rowGap:"0.2rem",children:(0,Ae.jsxs)(ws,{container:!0,item:!0,direction:"column",rowGap:"1rem",children:[(0,Ae.jsx)(rz,{id:"model",options:a,value:null!==(e=a.find((e=>e.value===o.model)))&&void 0!==e?e:null,onChange:(e,t)=>{s((e=>({...e,model:null===t||void 0===t?void 0:t.value})))},renderInput:e=>(0,Ae.jsx)(iE,{...e,label:"Model",variant:"outlined"}),style:{borderRadius:"5px"}}),!o.model&&(0,Ae.jsx)(vu,{color:"red",children:"Model is required field."}),(0,Ae.jsx)(iE,{fullWidth:!0,id:"power",variant:"outlined",label:"Power in kW",value:null!==(t=null===o||void 0===o?void 0:o.power)&&void 0!==t?t:"",style:{borderRadius:"5px"},InputLabelProps:Xlt,onChange:e=>{if(/^-?\d*[.,]?\d*$/.test(e.target.value))if(e.target.value.includes(",")){const t=e.target.value.replace(",",".");s((e=>({...e,power:Number(t)})))}else s((t=>({...t,power:Number(e.target.value)})))}}),(!o.power||(null===o||void 0===o?void 0:o.power)<1)&&(0,Ae.jsx)(vu,{color:"red",children:"Power is required field."}),(0,Ae.jsx)(aS,{label:"Powering date",value:null!==(r=null===o||void 0===o?void 0:o.poweringDate)&&void 0!==r?r:Date.now(),onChange:e=>s((t=>({...t,poweringDate:e}))),inputFormat:"DD/MM/YYYY",renderInput:e=>(0,Ae.jsx)(iE,{...e,variant:"filled"})}),(0,Ae.jsx)(aS,{label:"Last inspection date",value:null!==(i=null===o||void 0===o?void 0:o.lastInspectionDate)&&void 0!==i?i:Date.now(),onChange:e=>s((t=>({...t,lastInspectionDate:e}))),inputFormat:"DD/MM/YYYY",renderInput:e=>(0,Ae.jsx)(iE,{...e,variant:"filled"})}),(0,Ae.jsxs)(wp,{children:[(0,Ae.jsx)(vu,{children:"Blades rotation"}),(0,Ae.jsx)(ige,{buttons:Object.values(Fhe),onClick:e=>{s((t=>({...t,bladesAntiClockWise:Object.values(Fhe)[e]===Fhe.ANTICLOCKWISE})))},activeIndex:!0===(null===o||void 0===o?void 0:o.bladesAntiClockWise)?Object.values(Fhe).indexOf(Fhe.ANTICLOCKWISE):Object.values(Fhe).indexOf(Fhe.CLOCKWISE)})]})]})})]}),(0,Ae.jsx)(wp,{height:"100%",flex:1,overflow:"auto",marginTop:"1rem",children:(0,Ae.jsx)(Jlt,{})})]})})},ect=Zo()((()=>({root:{width:"100%",height:"100%",position:"relative"},loading:{paddingTop:"2rem"},error:{padding:"2rem"},mainContainer:{height:"100%",width:"100%",overflow:"hidden"},mapContainer:{flexGrow:1},formContainer:{overflow:"auto",backgroundColor:"white",width:"20vw",minWidth:"25rem",height:"100%"},customTopBarComp:{width:"20rem",pointerEvents:"none","& > *":{pointerEvents:"initial"}}}))),tct=e=>{const{classes:t}=ect(),{asset:r,isCreation:i,selectedSubAsset:o,setSelectedSubAsset:s,tempSubAssets:a,createTempSubAsset:l}=(0,n.useContext)(Ult),c=(0,n.useRef)(null),[u,d]=(0,n.useState)(),[h,p]=(0,n.useState)(),[f,g]=(0,n.useState)(),[m,y]=(0,n.useState)(),[v,_]=(0,n.useState)([]),[b,x]=(0,n.useState)(!1),S=(0,n.useCallback)((()=>{var e;_(null!==(e=null===r||void 0===r?void 0:r.subAssets)&&void 0!==e?e:[])}),[null===r||void 0===r?void 0:r.subAssets]);(0,n.useEffect)((()=>{S()}),[null===r||void 0===r?void 0:r.subAssets]);const w=(0,n.useMemo)((()=>{const e=v.map((e=>{var t,n,r,i;return{id:null!==(t=e.id)&&void 0!==t?t:"",coords:{lat:null!==(n=e.lat)&&void 0!==n?n:0,lng:null!==(r=e.lon)&&void 0!==r?r:0},type:d3.icon,iconUrl:e.id===(null===o||void 0===o?void 0:o.id)?"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADAAAAA2CAYAAACBWxqaAAAO/XpUWHRSYXcgcHJvZmlsZSB0eXBlIGV4aWYAAHjarZpZdhs5EkX/sYpeAqZAAMvBeE7voJffN5CUypZll+Uq0VSSTDATiOENkN3+33+P+w8/OfnosmgtrRTPT265xc6L6p+ffn8Hn+/v+5Nep3j/3eculdeJyEfpr5H19Xl4+zy8X+A5dF7JNxeq83VifH+i5df164cLvW6UbEaRF+t1ofa6UIrPifC6QH+W5Uur+u0Sxn6O622J9Xk6+5X0Xvv9Ih/fZyV6S/gwxbhTILY7pRSfCSR7Jpc6L5TfgUFMOGVey/3kGRqegHwWp/efxoyOTTV/Oui7rOz0ebbeXrmP2crxNSR9CHJ5P376uQvyeVZu6L+5c66vV/H7z/X488zoQ/Ttec6q566ZVfRcCHV5LeptKfcV4wa3sFtXx9SKV57CJfQ+Go9KVU+ytvz0g8cMLUTSdUIOK/Rwwr7HGSZTzHG7qLyIccZ0P6xJY4szPfnjEU7U1NJKlSTPm/ac4vtcwr1t89Pdu1XuvAJDY+BiFMLXH+6rXzjHWiEE/wo+ZcG8YrRgMw3LnP1mGBkJ5xVUuQF+e3z8sbwmMigWZWuRRmDHc4kh4S8kSDfRiYHC8WmXoOt1AULErYXJhEQGyFpIEkrwGqOGQCArCepMPaYcBxkIInExyZhTKuSmRrs1X9Fwh0aJfOz4HDAjE5IKHVbJUCdZOQv1o7lSQ12SZBEpolKlSS+p5CKlFC0Gil2TZqeiRVWrNu011Vyllqq11lZ7iy0BmtJK01Zba71zz86VO9/uDOh9xJFGHuJGGTrqaKNPymfmKbNMnXW22VdcaYEfqyxddbXVd9iU0s5bdtm66267H0rtJHfykVOOnnra6e9ZC6+2/fj4QtbCK2vxZsoG6nvW+FT17RLB4EQsZyQMFglkXC0FhmyWM19DztEyZznzDfhLEpmkWM5WsIyRwbxDlBPecufik1HL3D/Km9P8Xd7in2bOWeq+mLkf8/ZZ1pbR0LwZe7rQguoT3cf5XXus3cjuh6P7/MRQsIdM2rVy07NHbfZu+VaG32+nvznpznNuCuBLbPtoBgF1lnp6W7F0gkN2ShtxjUkC0gA5pB7LqJ4uGqQTcHfibiP1aSxmz72pGlIeeI56Sj859J3OFLkzqMNmAKQzgT4m6CQoj6ZupF11KdfdvpNo3pR2ZulzbFHmXQrgnIXzo53GbewN1fnh6H524qtHLkQWKxHaVHO8AdWQ7NhDXMxGO2UYqECynFMri4nlM1m7nlU0EPqTZLjVRt4UyaYC4Ipykn8Pyc3Ze1BuzvoYvscxZw+iq+XT+tK0NyJCpo08VZX7jaaS9yljr5OytvaE59C5O/u7CPGfHt3PTnzpKLu5RqkrL+xYSjpFN9URjlIn1OCN2tlr3aWN+pQs6z+jpTmfUj80sTuetN/T/h8d3S8HnDz7Vp1JwIqVNqWe8ioIgDrBH8gJwDOKXMUNUAHUDUuIMoFHhzC6CtoUJFheZY3Re23pgBO2wDmf9e2Qds8npXtfN3arVEWNP2/s3zq6vxtAZbzhgB+31Ud4akpAsQKMrThkHbfnHAIe7rlAqq3xtHXAOR+ALPCM9gYsRwePV9ZYRiavnbBxCdB50CJd8lpuwxD9sEDlttJv6xQWP/o+pxRZRIrjSYqQ0rkRRmtWmoS2jm2lJlnnCOI6ULnheLAbtQ9AggRg0Vw0H2VV68gHMKZuEi3RIy11tOwDfk8kd2V2a4N1YPahaUjHEJ3trKmUpux9dlrLxq6qHb4QHaOqscmKjRBsoaFWJrF5lrzVkWgFwqRPEIjhLGX09cowtYAk+a28uS8keuQOxkVaaVGWBwzImIU+V415k7W4NRHB3umc1nNoFCjVy1vjbzgpjCUI5D3rPlPHUpEAL41pDMmVITAvLve9ZgNu6cRlo/wGsEuHfUoCYIBeKXmR7jgFaSy0aC5zReld4bUF5IeWNsrfyqt5g6Uj6wLYrtTYGEi+Ltx51ZkLDAUVxFDWNAUPRAQohExtuLP15qzKZJFiYj38MimNqqPqmLmMvF69A2IgtY/dplJoh7lqX7fi1yFgNiMvgLbuvScL3jtKiyFC+7NSmQ1yBoEplWFEv+Oi6HpFqrQGphZma1Fs04VJje5Vd+pdgF8j/bHKDjJDojFgrbQL8k6IhvIvzW2FYYVrLZGofazLdqtkuL1CwmgjM9tMQSPfYDkEVqBbBA2ZoS+qn7Bc7DzHYw/lKPBiAOaAI/L8j8CRRet2Dc5GRw0MyohxxG5Rmg0RwpMWoz/gO0aPhCbKXU0X0ayIqlMQYwXXNI82h2WcKKsWbQGILiJDTDvAg1I36Gloj4tAdM85JABJpCYsqlWQjMnlRy/OwomyaBHuWDKh04jcQM2DK3VP4kvAUGoZliACKMCrxJgdcQKfATtkWCH9l5uAkINA/YavpKa+uAJ2GziIeXlaC5UXKuNYOiYu6l06aDCho4i0zHuCfanQUz3kQcPAGKqrI+VOioWLiHCndAbsS9n0w3zVNi+CETYU0J2UadOIqE6Wk5A3hQgGA1YcikjqCB9tkYoUROJuWMNj8fW5+YE9LfblXB0CgSaValR6AcgI5wga6+KvIT+I2dVzQYRZ0MLwROhQ4ZmbDZxvI9WOqS76EBDfxNPmRV+ElgNYQHXGzjrwyDitmJEWqQCEtaLHdBZmtCEybzc3GGHoHRbop6GoNhIBfILmdkkISGhDJuA7wQZtIQJIIJa2WWxqJkF1uUKPtMEqeCLRXyTaQYHfr26II7gBRvWcq8nQGeCW3sDRDqCB65RNULzKmKqN6AZDWPKfPA4kEXTgCoDrbarDFCDmFEmile/3Co0BA/A83qWSHKrA0s7iU2IorGRCUeZB2EGta16B4R2wWhF+pLvWSdZx4ZOUwDvIJ2ZIvZEB8ADwWxSuoOn8DIsvAANUGrSIudjujNUeZSotrM3kabtc8UxNJv1GgaZA3mgIimJl4DQZZJcKBWBxwJBM5rIrWLsDR9Nn8DCdP6ACFDsThYIAhEYv0wQbPqEdaKyI89kdVqKndwSg4MuAgwSeci9oT2BskFIsmjV78/gqGuS8yGFdVZI3gnaPlUxUmbpYAX61InDI2QNwHCAY9i7AwBYCvRT02Gjb8mR5EHfbLEvAS/QGKLD2tTVDL7Y42pXWDtHMQ0QSUNQH3440hZFIc23lRNtNYDRF0zEXIQO3WE3Az4q1iWBIHGq/cM2GO63eSKIg8mAL/BNSMOOUIFXktmAL8UrB8NRUDuoSVB8xPPsnyfF1xRQYrMC1+25EpUrHz+SpCNIXoeshaTUrWKoSL0vNVrEQVFl0eKHgXIhmTYFlemUygj7HJwB6Z0EnkNAKRqskn5kv2DpZS+5Jf5v6zOB136ClIwF4PURDzqO8l8g2fdB8bLATawbIkUkoqA5wznyhZtAPRlGVMJAih3Q0QiM9WEVmjYvDNFOqxb9sWiN+f+si1HGXZFPILH6Y7UNjFGoLccrMB/bvRnDXMkJBt05mDcYCSqbbPIgZO5qhuoU1JdwAF/x+OsKGKubMCpaZwqIoaQ8yYE6g/Qn0euimAAcQD0SF6bWdPWd74tygdGiNygWZ8WJHWR46cmL0e0cVAFBnAWHgrWlM09G+1bVAQvS/6Whn9ro0OPxMTNDEFeILzwm95KGKIuiwZzeNQh1OSm3jQ1Cq9C4BXw8ygGwO+Gg7njp3M9oonthv0qolodpOZY5QBzcw7f+YrpKEth+7X3XEC5p9u2TkerDTSKO5NVCIeIJkeDtrCRhvpACF3RtQbdoapWZSE+5DA+AJFgIT3ehyfjKIRYY6Xg7wF06QeV3ddr3gN07Q/WAFrxNEo8Vk1pv5IkmZaAEfrNGBRISKIdhggVmyod/FbMOnYXTHF+EvkQJoIVppCnKNgDGSlGtFUYGok3DjNQKyHmbHIlDMKVBHVnpY92N622A7dTBHrM8S5EHq0GmB0uitBa+wuO0tA1CAte2JgUVGEii2CbdkKBWNZyYTQZSKATcNS5JDxCMuA17cB1xSBGZFS5xinV81wegg1nTHWkCmlhfvVyguX9n7bAJaG94JmoER2yibEgvWSVGgISW4f0fzIh2112A7XagetPeganEIRTNT2WixlWEG7utZfylzHvJttAYWQAyL5DIVFNtcd8ePYkHCQwqQDMFnZcFks2mmOAPxmYADyhzcQMNBV35hA0x2LFPPozlIF4iD+940PhW5NX/ZI7t3D2UI96IajhO6nbSfJd32UKrxh5xnP4IQstSHVXehVmFT976NYkQ9/3yXxP3+NkozAwUL0sZgDJqolR1heZAhdu84Uob+sABclv3Z7lBq3VxIkOUPVIr64EqJMaQCUkbIgCwDbwj64Keub3WvrYn5tjXxpzsT7qtf+NnOhHvbmkCV3S3Kb86+nZp3lzL0DNu3dr82K0Rx+itzNezuGuhDZDLFuG9j4JtOZfQ2yphoKGgJMlyoCS5KSU9zZDPQM1gR26dImjS6hVZA8eJSEfr6kh6S6ldL0n05OJ8tnri4X23p/BCcH0PT6OJq/ODktsH2wN6IOBTjGb2nfjyz4fELNSHYnjRojjTKtqWXMjBip8oN9MYq/qXY07+4WffxCPQgkssmQ7Gtbt7N/hAAVGY3GFBS9BAiPQJHd0QoSL3gBvQ3vVQDGjUxznYfbBAkh+6ZUmc3i9MSNkgc2ml7TM7doVBi0SWwMjQyYVVAkFayDWnMOSBLDyL3AbgF0xgxGJyjB4TKtomi0gHKZh7LdsOm/VkdbYZZVlPgGd0RfBbbKEgTMXlO3lB9A3Ybin8Cz65faYpnQ9Yw3ZM7lFaxkjT96iQNMXA8xlkDEEZWMotjMRsKB0YEa1Rar7Y3gjhbCAoawbwfVDiv22LC2hWkrwWkx1jzwcbsT9SS2jY3yNhRSsQfb0f6TdoxRwKYsOA0SQvcAo0grT675/NtL/RX5e/+bB/U/uyCxxkwevFQLVBLyNDiihBHX7fpA4yDDSsG5biBXCK5GPR3b6gZzoRA5iA0FNQ78/QEsEFfaDucBiuEUCPqfHN8mfpwTT1kZ+NbnQLkRHjZLJBgApQ4c1pRI+DsA/HYr3/wpwj3r/wt428vZJBj/7vg/zKfx8esopBZAAABhGlDQ1BJQ0MgcHJvZmlsZQAAeJx9kT1Iw0AcxV9TpSIVBzuIOESoThZERRwlikWwUNoKrTqYXPoFTRqSFBdHwbXg4Mdi1cHFWVcHV0EQ/ABxdXFSdJES/5cUWsR44ciPd/ced+8AoVFhmtU1AWi6babikpjNrYqhV4QQpi+GEZlZRiK9mIHv+LpHgP/vYjzLf9+fo0/NWwwIiMRzzDBt4g3imU3b4LxPHGElWSU+Jx436YDEj1xXPH7jXHRZ4JkRM5OaJ44Qi8UOVjqYlUyNeJo4qmo65QtZj1XOW5y1So21zslvGM7rK2mu0xxGHEtIIAkRCmooowKb+ipDJ8VCitYlH/+Q60+SSyFXGYwcC6hCg+z6wd/gd7dWYWrSSwpLQPeL43yMAqFdoFl3nO9jx2meAMFn4Epv+6sNYPaT9Hpbix4B/dvAxXVbU/aAyx1g8MmQTdmVgjSFQgF4P6NnygEDt0Dvmtdbax2nD0CGulq+AQ4OgbEiZa/73Luns7d/97T6+wGiCHK6VSGllwAADXZpVFh0WE1MOmNvbS5hZG9iZS54bXAAAAAAADw/eHBhY2tldCBiZWdpbj0i77u/IiBpZD0iVzVNME1wQ2VoaUh6cmVTek5UY3prYzlkIj8+Cjx4OnhtcG1ldGEgeG1sbnM6eD0iYWRvYmU6bnM6bWV0YS8iIHg6eG1wdGs9IlhNUCBDb3JlIDQuNC4wLUV4aXYyIj4KIDxyZGY6UkRGIHhtbG5zOnJkZj0iaHR0cDovL3d3dy53My5vcmcvMTk5OS8wMi8yMi1yZGYtc3ludGF4LW5zIyI+CiAgPHJkZjpEZXNjcmlwdGlvbiByZGY6YWJvdXQ9IiIKICAgIHhtbG5zOnhtcE1NPSJodHRwOi8vbnMuYWRvYmUuY29tL3hhcC8xLjAvbW0vIgogICAgeG1sbnM6c3RFdnQ9Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC9zVHlwZS9SZXNvdXJjZUV2ZW50IyIKICAgIHhtbG5zOmRjPSJodHRwOi8vcHVybC5vcmcvZGMvZWxlbWVudHMvMS4xLyIKICAgIHhtbG5zOkdJTVA9Imh0dHA6Ly93d3cuZ2ltcC5vcmcveG1wLyIKICAgIHhtbG5zOnRpZmY9Imh0dHA6Ly9ucy5hZG9iZS5jb20vdGlmZi8xLjAvIgogICAgeG1sbnM6eG1wPSJodHRwOi8vbnMuYWRvYmUuY29tL3hhcC8xLjAvIgogICB4bXBNTTpEb2N1bWVudElEPSJnaW1wOmRvY2lkOmdpbXA6Yjk4OTMwYzgtYjgzMi00MzYzLWE0YWYtODY4MDIxM2QyNTJjIgogICB4bXBNTTpJbnN0YW5jZUlEPSJ4bXAuaWlkOjcxYTZiNTdiLTQ2NjItNDJkNi1iYTU4LTJmOTBhZGQzMzYxOCIKICAgeG1wTU06T3JpZ2luYWxEb2N1bWVudElEPSJ4bXAuZGlkOjJmYjY0YmYzLWM2ODMtNDRhOS04ZjEwLTM1OTdkZmQzNmQzZCIKICAgZGM6Rm9ybWF0PSJpbWFnZS9wbmciCiAgIEdJTVA6QVBJPSIyLjAiCiAgIEdJTVA6UGxhdGZvcm09IldpbmRvd3MiCiAgIEdJTVA6VGltZVN0YW1wPSIxNjg5MTY2NjUyMzU0MjA4IgogICBHSU1QOlZlcnNpb249IjIuMTAuMzIiCiAgIHRpZmY6T3JpZW50YXRpb249IjEiCiAgIHhtcDpDcmVhdG9yVG9vbD0iR0lNUCAyLjEwIgogICB4bXA6TWV0YWRhdGFEYXRlPSIyMDIzOjA3OjEyVDE0OjU3OjMyKzAyOjAwIgogICB4bXA6TW9kaWZ5RGF0ZT0iMjAyMzowNzoxMlQxNDo1NzozMiswMjowMCI+CiAgIDx4bXBNTTpIaXN0b3J5PgogICAgPHJkZjpTZXE+CiAgICAgPHJkZjpsaQogICAgICBzdEV2dDphY3Rpb249InNhdmVkIgogICAgICBzdEV2dDpjaGFuZ2VkPSIvIgogICAgICBzdEV2dDppbnN0YW5jZUlEPSJ4bXAuaWlkOjkyNjQ4YWNlLTM2OTgtNDI2Ni1hYzZkLTliYTc3MTUwYTI3MyIKICAgICAgc3RFdnQ6c29mdHdhcmVBZ2VudD0iR2ltcCAyLjEwIChXaW5kb3dzKSIKICAgICAgc3RFdnQ6d2hlbj0iMjAyMy0wNy0xMlQxNDo1NzozMiIvPgogICAgPC9yZGY6U2VxPgogICA8L3htcE1NOkhpc3Rvcnk+CiAgPC9yZGY6RGVzY3JpcHRpb24+CiA8L3JkZjpSREY+CjwveDp4bXBtZXRhPgogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgCjw/eHBhY2tldCBlbmQ9InciPz6lN3XSAAAABmJLR0QA/wD/AP+gvaeTAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAB3RJTUUH5wcMDDkgA5O2JAAAApZJREFUaN7tmb1rFEEYxn97nvE4xChBQ4REJVd4WiRcQBBio6ggWJhYiCAG7FXESiw0/gNCIILWthZiY7QMCIppYyOIFoKFQSEQVHwsMgebYb/Y7Gx28AaGnZl7Z9/nmeedrz1wmARNwSK+JsG0QIKOKx81xxwmrad3BMatp3ch9N2E0HsfwQ8b8BKsCeq+hdCRUHkHMOobgQNWfcQ3AsMp9coTGOkp8D8o4GoJDczSqVD+4BOBQQu8BKs+hVBUvDcFA74QGABmzWa205yF5oChoh0FLucBMAW0gbcBLPg0B2qCF9YcmPcBeN08r0RMYglOCLapQOVrBYI/CLwy4MZizMaAfcBzFxN6M+CnBCtmlFsJCkwKTpvyFzm8qWUF3hDMWSDvJM0BwZNQ25+u/VaAbwmWIkZ5TTBhduNpwV3BGdPnfIwyC4LBMsFfEvyMASPBL8F1QUewS3BccC/BXoKvglNlhMzjFCAvBecEZ632tiH+JqHvX8Gsk5AS7BUsxjheFTzS+qbVtb9o2UyEfjsmeCr4HfO+Z4JmkeAPCz5GOPokuC3YE9HnmmV7MsJmv+CB4FvEu9+piKOHWfpWLJlfm6WzntDvlgXoQkpozkSE1+ewqnnAHxX8CI3IzayjIrhvgZnJ2G/UrFzLof1iKC+BjuCy4FCOvg8tAjdyXIragquCVpxdPeWousR6zpP6U+ppx2QByyZvyZ14UwSqcKn3nsDulHpPgR6BlPuw1wo0gO0+E+jP2OYVgYagz2cCTlToEci4iTnbzIomIJOTFOjaFJICBwQ2FuKdBVUkEEsicOTX1dfpDSQChz5dHSX6otC6+Fzi7P+B9CiqPgGV4a9W8sjLBwWygK/sKpQGsnASrkIoKEvxf5H1wj+2CiTwAAAAAElFTkSuQmCC":$5,style:{anchor:[.5,.89]},displayText:null!==(i=e.name)&&void 0!==i?i:"",textStyle:{offsetY:-50}}})),t=a.map(((e,t)=>{var n,r,i;return{id:"tmp-".concat(t),coords:{lat:null!==(n=e.lat)&&void 0!==n?n:0,lng:null!==(r=e.lon)&&void 0!==r?r:0},type:d3.icon,iconUrl:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADAAAAAwCAYAAABXAvmHAAAHaXpUWHRSYXcgcHJvZmlsZSB0eXBlIGV4aWYAAHjarVhbciQpDPznFHsEJCQQx+EZsTfY42+Kqu6xezze8Xq6w0U1RQlJqUfisP75e4e/8OGcOYgWyzXniI9UqdxwY/H6tHOlKOd6Pul+hN/v5sPzAWMq/Vhp+V7/mKengGtouNM3gmzcD/r7B1Vu+fYi6N4ouUaMm3kLqregxNcDugW0y6yYq5W3JvR1jfNhiV1/wS+pHNlPIa+/pcB7UzGZmFeiFHFNiS8Fkv+lkBpuMq6MRVA4Ke71vj58Aod85Kfnp0Kj7arKh4veofK8o4/nwytawveS9OLk/Bw/nA+kH6NyXP9mZ7H7jt/PU3HDXKMX7/vf3tP2sRlWNMlwdb6NenrNb7CuYwvf2gJUy7HgTyGinG/F1xDVA6jNOGLHd1AlBlybhCY12rTOOGhAReEVuOCGeXA6k5YKVx7J8RP/0uaSaprJgOs4sEvipy50tq1xhLObYedJWMoEYeSh8NVv+OoLe3sqEEV7+gp6MbuzoYYj51csAyK0b6fqcfDj+/pxXBMQVPeyp0iFY/sloiv9qATpAJ2wUDHKjfa8BcBF2FqhDCUgANSQFZQpFuZCBEcaAGpQnZNwBwKkyhNKsqSUgY2xb41XCp2lrIzpgHkUMyChyLgCbGpqAEtEET9FDDHUkHqiqlmLmlZtOWXJmnMu2YtiK6lIKFpyKcVKLc2SiallK2ZWrVWuCUVTa66lWq21NezZILnh7YYFrXXuqUvX0HMv3XrtbSB8hgwdeZRho442eaaJ+jHzLNNmnW3RQigtWbryKstWXW0j1HYKW7buvMu2XXd7onbD+tP3C6jRjRofpHxheaKG2VIeIsjLiTpmAAxdhIB4cQgQ0OyYRSMRduQcs1hR/pIylFTHbJIjBgRlEeumB3aBL0QduW/hFoq8w43/L3LBofsicj/j9hFq09vQOIhdWehOjQnZt3x/tranxJ3R8PxHfIzhdeLnsU3tZbeetsIKzW32PRW7ThkbCUYzMdWA7chWrytjVSNDwSp4lIbqwkxJe2FmcstxN5RAcvHchUxJ1DvfNYbHzXfHjwRp63lvzWV1jUOMJbN7qGRYhl5ps8SUZulTZG5x41QDXL+nq433my2xiggZlc97Zr2jKtXpeyiK8q8dGv7D07893oLqgSLTpRhMm+7jPR2yrGkitq53KlHd7gLNS996JfwBP/9aEIqvR85IW+BepNhbdUdDFtQLfEWap3VUDXO0eEIDrfo7Y/iNhUlmtYS8adn1KKmhoMjlMzT8MknTCDO2kQ09o7SVKtK/Z1lPP47fxi38X8B7J4QqVAPZROkZYaP6EXVZaP88UTTG2sJDqusX6xyFM+jInAt1qir1MTr1jJdPQsqZ4o7eD/aDORoognk1MIwko7MTTbpy+aTpVDRLOeY6tfzZm+H7eFXUDM0Bdd5VKlCJ80JFW4yCSsg21Os1ZVUYvBBKo6nEkWEwqq4kmGRkDUW0Ls/QcJTl5x5QH0ZWHZHmQm1WQI2sHTV2yd2l6yhoPFNXRTuyjl7hHuDgoQq+AI6YkfClTTDubih66Yhuli/HOH3/bAyfLEACoOBwHNhow+XQllON5cJLm9iQDPaTtk0JMN3rrkRYARWGyUOQtDEYJZU2GoafDHIdfiaaDQwIAQy31gb4DStthpXV67TQqrC0+dwirdSBwaqGqaq9gWTCxmzzAsHdlM52c97BHxqSHRW+LxvcNgSO7V0VtDhPROwlfqsUmNn5jjqUBCzpIAR6uRK0Bkp+MTlgGNW4YnbHdXjFU9kCNu0T6jOpjYVK7p5Dh0ZPLhQfVedHBMLy986gjWa9UUam5LVOwR+X8UgKZFjGg8Jw/vQzhaytjBLn7QX1z8qqWNeyA/L0ETSFUBAC+MbgXVF0/Y24w+/cRMAbEgI0prYKajuN1OMCPUCQkYGQIA3AT8FGxnYIcp76A/pU6VQmVFfBoQLrK86J65xlB0zHmi7F29vyZFOkSE6gY3S1O5RqhMfD/fmXoYptEKUQQ3CoNque/eStvnRs/K4FgfHOeHqQLfxAIOLU46mN7TaoEloSEKLsZ6fNEYUNhbVsgLHX5LqwQexOinDScS4DMSAdqYN6wQA42BWKt/4OqEf2ycbgdQo18D0aaJdv2lGVXXBUu5JYxKv96eD16VJkQsA5D3ogElBktji3AXfc7GGFvoCKDOqle1JuY/a6QTN5TJzsVkJizparTjP4KeQMpaX4CQWhD5InYJdcnJHp68afjeGzBTLfAvAajh0+XXyXKwmG4Lvyrnw97d6M4UsvfEJawm+ylv8cwzfYDDVvO+aMoMK0Xid6Hz9634OmfJWlhG+0x3QzkuHnq4tEgD93HDlslImQRCx3O0DnBGILkos0GOkOJ/2YkoY/Q0VvQfNStscHffL/1TltVtseiVDJTwDtUniCnaCn3EHX7iNAkD9E/cNHqDp84u2voPHL49BBcQ73XOt0HW9KBskAlYqoQTuospeftZ7K9tfzyq8DaeNY5v9f+xfxrgEiE5HddgAAAYVpQ0NQSUNDIHByb2ZpbGUAAHicfZE9SMNAHMVfU7UiLQ4WEXHIUB3EgqiIo1SxCBZKW6FVB5NLP4QmDUmKi6PgWnDwY7Hq4OKsq4OrIAh+gLi6OCm6SIn/SwotYjw47se7e4+7d4BQLzPV7BgHVM0yUvGYmM2tiIFXdKEfIYwiKDFTT6QXMvAcX/fw8fUuyrO8z/05QkreZIBPJJ5lumERrxNPb1o6533iMCtJCvE58ZhBFyR+5Lrs8hvnosMCzwwbmdQccZhYLLax3MasZKjEU8QRRdUoX8i6rHDe4qyWq6x5T/7CYF5bTnOd5hDiWEQCSYiQUcUGyrAQpVUjxUSK9mMe/kHHnySXTK4NMHLMowIVkuMH/4Pf3ZqFyQk3KRgDOl9s+2MYCOwCjZptfx/bduME8D8DV1rLX6kDM5+k11pa5Ajo3QYurluavAdc7gADT7pkSI7kpykUCsD7GX1TDui7BXpW3d6a+zh9ADLU1dINcHAIjBQpe83j3d3tvf17ptnfD39kcqwdE1S4AAANdmlUWHRYTUw6Y29tLmFkb2JlLnhtcAAAAAAAPD94cGFja2V0IGJlZ2luPSLvu78iIGlkPSJXNU0wTXBDZWhpSHpyZVN6TlRjemtjOWQiPz4KPHg6eG1wbWV0YSB4bWxuczp4PSJhZG9iZTpuczptZXRhLyIgeDp4bXB0az0iWE1QIENvcmUgNC40LjAtRXhpdjIiPgogPHJkZjpSREYgeG1sbnM6cmRmPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5LzAyLzIyLXJkZi1zeW50YXgtbnMjIj4KICA8cmRmOkRlc2NyaXB0aW9uIHJkZjphYm91dD0iIgogICAgeG1sbnM6eG1wTU09Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC9tbS8iCiAgICB4bWxuczpzdEV2dD0iaHR0cDovL25zLmFkb2JlLmNvbS94YXAvMS4wL3NUeXBlL1Jlc291cmNlRXZlbnQjIgogICAgeG1sbnM6ZGM9Imh0dHA6Ly9wdXJsLm9yZy9kYy9lbGVtZW50cy8xLjEvIgogICAgeG1sbnM6R0lNUD0iaHR0cDovL3d3dy5naW1wLm9yZy94bXAvIgogICAgeG1sbnM6dGlmZj0iaHR0cDovL25zLmFkb2JlLmNvbS90aWZmLzEuMC8iCiAgICB4bWxuczp4bXA9Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC8iCiAgIHhtcE1NOkRvY3VtZW50SUQ9ImdpbXA6ZG9jaWQ6Z2ltcDoyZTAzNTExNi04NTNjLTRiZTktYmMzMy1jMGYxNTEyZDdkZmYiCiAgIHhtcE1NOkluc3RhbmNlSUQ9InhtcC5paWQ6MmM4ZTlhODYtNzliNS00MjNiLTg5NmQtY2VlNzAwMTI3ODYwIgogICB4bXBNTTpPcmlnaW5hbERvY3VtZW50SUQ9InhtcC5kaWQ6MWE2ZDU4MWEtMmUwZi00N2I3LTk4ZmYtOTEwNTNiMDliMWQxIgogICBkYzpGb3JtYXQ9ImltYWdlL3BuZyIKICAgR0lNUDpBUEk9IjIuMCIKICAgR0lNUDpQbGF0Zm9ybT0iV2luZG93cyIKICAgR0lNUDpUaW1lU3RhbXA9IjE2ODc0NDIxNTA1MDgxNTIiCiAgIEdJTVA6VmVyc2lvbj0iMi4xMC4zMiIKICAgdGlmZjpPcmllbnRhdGlvbj0iMSIKICAgeG1wOkNyZWF0b3JUb29sPSJHSU1QIDIuMTAiCiAgIHhtcDpNZXRhZGF0YURhdGU9IjIwMjM6MDY6MjJUMTU6NTU6NTArMDI6MDAiCiAgIHhtcDpNb2RpZnlEYXRlPSIyMDIzOjA2OjIyVDE1OjU1OjUwKzAyOjAwIj4KICAgPHhtcE1NOkhpc3Rvcnk+CiAgICA8cmRmOlNlcT4KICAgICA8cmRmOmxpCiAgICAgIHN0RXZ0OmFjdGlvbj0ic2F2ZWQiCiAgICAgIHN0RXZ0OmNoYW5nZWQ9Ii8iCiAgICAgIHN0RXZ0Omluc3RhbmNlSUQ9InhtcC5paWQ6MDg5OGVmNmMtYzc1Ny00OTAwLTkwZmItZmJkN2IzM2MyYTkxIgogICAgICBzdEV2dDpzb2Z0d2FyZUFnZW50PSJHaW1wIDIuMTAgKFdpbmRvd3MpIgogICAgICBzdEV2dDp3aGVuPSIyMDIzLTA2LTIyVDE1OjU1OjUwIi8+CiAgICA8L3JkZjpTZXE+CiAgIDwveG1wTU06SGlzdG9yeT4KICA8L3JkZjpEZXNjcmlwdGlvbj4KIDwvcmRmOlJERj4KPC94OnhtcG1ldGE+CiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAKPD94cGFja2V0IGVuZD0idyI/PoPDmwcAAAAGYktHRAD/AP8A/6C9p5MAAAAJcEhZcwAACxMAAAsTAQCanBgAAAAHdElNRQfnBhYNNzJtrx6eAAADc0lEQVRo3u2ZTWhUVxSAvzOOyXRqM4GgIMRYGhcxCrFFrJKguWkhlLRIFcRiXXRRStzcKdiNIIqkO8X34iLabqRgaaVdNJBSkmZehOAfJdWVm0ppF/3BRcHF5HfmuMgow+ubjIkzOhdy4HE5796593z33HPevXegiuIbTfpGJ6s5RozqyjtAp9+jb7gK0AWAFkoHAXaESucAOkJlxUWq1bHXrZtE+LOgzqqyLj0hC854QIT2IrUeodW1JbQ55OoW1wA2ldFrHqCljL7qgVUPlJKhPhWg2VkPzE2zAah3dwlppLHJwbe0yZUYaALOILSrsq6wF7qgeTY6s5UY6lOZy3IA2ArctoGMOrMXurRfYzMPGQb6iplsIMdqGsDr1nh6QhZ8o0eBryJG2xuLcz2+lnz/iGhNxYBn9FURxgoptKNEcHfk5tkwl2W4UgFdEQDf6AGBX4Hu2SytwN1o+7kjsB14V/Pc8Yx2vVCA8/s04Ru9AHwPNBbW5KFEA1eAkXBcpwOZBA4V9GaBCd/oiUv7NfbcY8AzukXgKvB6qGoW6KxLMhXOQr7R94DhiO7GEI7ajPz7XAB8o4eBL4BXSjSZB44jTKL8hrANpRc4tUS3/yh8mA5kvGoA5/dpIhZjEPh4iWajCr5ADvipaKR2lA7AArtLfsNhINHA6U9+kHxFY8Azuj4W4+cSxmeBiwjtNpDedCA//s87StIG8o0NZA/Cm8DXwELEhJ6cech3vtFkxQD8Hm0TuAl0hqr+AD4Dmm0g/TYj94rqUqG2T3Sbkds2kCMIm4EB4EGo7fvANc/oxmcG8Ix2odwAXity8zhwUJUtNpCzNpD/In6aCs1tGAibkb9sICfzeVqAj1icpMeyU+CW36Nbl7IvXsb4bbKYDhuAX4ArCt+mA/n7KRyXCi2hVKmGn16TGeAycNk32gp8ABwB2lBGPaO7So0ZL3M1Uo/Sj3DDZuT3ZSarVBk9Umwg94GBoT79fG6aNpRdwMsr8oDNyBQwtcJPxYoAHkthr3Sv8LyQM/EzAdTCod55gMYy+qoHVgHK3Au5CzA/SwJY6yyA5iKNdQgg2tjE4Nta5wSASPRs53OV90K1rhZTT5mZajaNNpY4/jW6ApBaRmy4AyCuA7gUA9llvl+xxKthfW6Bc2vivAQcZvGfmfvAl3VJrlZ6rEfuCgMcQvz7HQAAAABJRU5ErkJggg==",style:{anchor:[.5,.89]},displayText:null!==(i=e.name)&&void 0!==i?i:"",textStyle:{offsetY:-50}}}));return[...e,...t]}),[v,o,a]);(0,n.useEffect)((()=>{1!==v.length||b||(p(w[0].coords),y(14)),v.length>1&&!b&&(E(w),x(!0))}),[v,b,LT]);const E=e=>{const t=e.flatMap((e=>{let{coords:t}=e;return t})),n=O3(null!==t&&void 0!==t?t:[],"large");d(n)},{MapSearchBar:P,MapLatLngPoint:C}=Hst({coord:f,onLocationChosen:function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:18;p(e),g(e),y(t)}});return(0,Ae.jsx)("div",{className:t.root,ref:c,children:(0,Ae.jsxs)(wp,{display:"flex",className:t.mainContainer,children:[(0,Ae.jsx)("div",{className:t.mapContainer,children:(0,Ae.jsxs)(U5,{withLatLngPicker:!0,bounds:u,center:h,zoom:m,leftBar:(0,Ae.jsx)(kwe,{}),topBar:(0,Ae.jsx)(wp,{className:t.customTopBarComp,children:P()}),children:[(0,Ae.jsx)(Z5,{draggable:null!==o,zIndex:3,draggableIds:o?[o.id]:[],onPointTranslatedEnd:e=>{var t;((e,t)=>{const n=k3(e.startCoordinate),r=null!==o&&void 0!==o&&o.lat?n.lat-o.lat:0,i=null!==o&&void 0!==o&&o.lon?n.lng-o.lon:0,a=k3(e.coordinate),l={lat:a.lat-r,lng:a.lng-i};(null===o||void 0===o?void 0:o.id)===t&&(s({...o,lat:l.lat,lon:l.lng}),_((e=>{const n=e.findIndex((e=>{let{id:n}=e;return n===t}));if(-1===n)return e;const r=[...e];return r[n]={...r[n],lat:l.lat,lon:l.lng},r})))})(e,null!==(t=null===o||void 0===o?void 0:o.id)&&void 0!==t?t:"")},clickable:!0,points:w,onPointClicked:e=>{var t;if(i)return;S();const n=null===e||void 0===e?void 0:e.getId();n&&s(null!==(t=v.find((e=>{let{id:t}=e;return t===n})))&&void 0!==t?t:null)}}),(0,Ae.jsx)(_Pe,{drawEnabled:i,shape:u3.POINT,drawPointer:"cross",onDrawEnd:e=>{if(!K3(e))return;const t=E3(e);l(t)}}),(0,Ae.jsx)(C,{})]})}),(0,Ae.jsx)(_h,{orientation:"horizontal",in:null!==o&&!i,children:(0,Ae.jsx)("div",{className:t.formContainer,children:null!==o&&!i&&(0,Ae.jsx)(Klt,{subAsset:o,onCancel:()=>{S(),s(null)},onUpdate:async t=>await e.updateSubAsset(t),onDelete:async()=>{if(null===o||void 0===o||!o.id)return Promise.reject();await e.deleteSubAsset(o.id),s(null)}})})}),(0,Ae.jsx)(_h,{orientation:"horizontal",in:i,children:(0,Ae.jsx)(wp,{bgcolor:"white",overflow:"auto",height:"100%",width:"48vw",minWidth:"25rem",children:i&&(0,Ae.jsx)(Qlt,{})})})]})})},nct=()=>{const e=m(),{assetId:t}=an(),{asset:r,isLoading:i,refresh:o}=Ype({assetId:t}),[s,a]=(0,n.useState)(!1),[l,c]=(0,n.useState)(!1),[u,d]=(0,n.useState)([]),[h,p]=(0,n.useState)(null),[f,g]=(0,n.useState)({}),[y,v]=(0,n.useState)(!1),[_,b]=(0,n.useState)(!1),x=()=>{e(Lf())};(0,n.useEffect)((()=>{var e;if(null!==r&&void 0!==r&&null!==(e=r.subAssets)&&void 0!==e&&e.length){var t,n,i,o;const e=[...r.subAssets].sort(((e,t)=>e.poweringDate&&t.poweringDate?new Date(t.poweringDate).getTime()-new Date(e.poweringDate).getTime():0));g({model:null!==(t=e[0].model)&&void 0!==t?t:"",power:null!==(n=e[0].power)&&void 0!==n?n:0,poweringDate:null!==(i=e[0].poweringDate)&&void 0!==i?i:(new Date).toLocaleDateString(),bladesAntiClockWise:null!==(o=e[0].bladesAntiClockWise)&&void 0!==o&&o})}}),[null===r||void 0===r?void 0:r.subAssets]);const S=(0,n.useCallback)((e=>{var t,n,i,o;const s=(null!==(t=null===r||void 0===r||null===(n=r.subAssets)||void 0===n?void 0:n.length)&&void 0!==t?t:0)+u.length,a={id:"temp-".concat(Date.now()),name:"".concat(s+1),lat:null!==(i=null===e||void 0===e?void 0:e.lat)&&void 0!==i?i:0,lon:null!==(o=null===e||void 0===e?void 0:e.lng)&&void 0!==o?o:0,coord:e?"".concat(e.lat,",").concat(e.lng):"",turbineSerial:""};d([...u,a])}),[r,u,f]),w={assetId:t,asset:r,isCreation:s,setCreation:a,selectedSubAsset:h,setSelectedSubAsset:p,tempSubAssets:u,setTempSubAssets:d,createTempSubAsset:S,isUpdating:y,setUpdating:v,template:f,setTemplate:g,isValidInput:_,setValidInput:b};return i?(0,Ae.jsx)(qke,{text:"Loading\u2026"}):(0,Ae.jsxs)(Ae.Fragment,{children:[(0,Ae.jsx)(Ult.Provider,{value:w,children:(0,Ae.jsx)(Hlt,{saveNewSubAssets:async()=>{v(!0);const e=u.map((e=>{var n;const r={...e,serials:{turbine:null!==(n=e.turbineSerial)&&void 0!==n?n:""},...f};return Hhe(r)?(async(e,t)=>{const n={...t},r={method:"POST",body:JSON.stringify(n)},i=await Ey("/assets/".concat(e,"/createWindSubAsset"),r);if(!i.ok){var o;const e=await i.text();throw new Error(null!==(o=null!==e&&void 0!==e?e:i.statusText)&&void 0!==o?o:"Error")}return await i.json()})(t,r):Promise.reject()}));await Promise.all(e),await o(),d([]),p(null),x(),v(!1),a(!1)},children:(0,Ae.jsx)(tct,{updateSubAsset:async e=>{const n=await Lhe(t,e.id,e);return await o(),x(),n},deleteSubAsset:async e=>{try{await(async(e,t)=>{const n=await Ey("/assets/".concat(e,"/").concat(t),{method:"DELETE"});if(204===n.status)return!0;const r=await n.text();throw new Error(r)})(t,e),await o(),x()}catch(n){n instanceof Error&&n.message===zhe.INSPECTIONS_EXISTS&&c(!0)}}})})}),(0,Ae.jsx)(JT,{open:l,onClose:()=>c(!1),anchorOrigin:{vertical:"bottom",horizontal:"center"},autoHideDuration:6e3,children:(0,Ae.jsx)(pM,{severity:"error",sx:{width:"100%"},children:"This subAsset cannot be deleted because it already has inspections."})})]})},rct=()=>(0,Ae.jsx)("div",{style:{padding:20},children:"You have not permission to access this page."}),ict=Zo()((()=>({root:{"& p":{lineHeight:"1rem"}},img:{margin:"auto",border:"1px solid black"},imgLegend:{fontStyle:"italic",margin:"auto",textAlign:"center",width:"80%"}}))),oct=()=>{const{classes:e}=ict();return(0,Ae.jsx)(ZAe,{component:"PWA",componentVersion:1,title:"Offline mode is available",children:(0,Ae.jsxs)(ws,{container:!0,direction:"column",wrap:"nowrap",rowGap:"0.5rem",className:e.root,children:[(0,Ae.jsxs)(vu,{children:[(0,Ae.jsx)("b",{children:"You can now access you data when offline!"}),(0,Ae.jsx)("br",{}),"Synchronize your solar inspections or campaigns with internet access, and use them on the field even without an internet connection!"]}),(0,Ae.jsx)("img",{className:e.img,src:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAZ8AAABHCAYAAADY+EpiAAAGy3pUWHRSYXcgcHJvZmlsZSB0eXBlIGV4aWYAAHjapZdrkiShDYT/cwofAYRA6Dg8I3wDH98f1T3j3dlZR4xd1V3QFA+hTKXosP/1zxP+wZVcYtBirXqtkUtdXTqVFl9Xf54p6vN8Lj/vWvq9Pai9BwlNmTK/frb6KtNH+3vAR5k6tfLLRG2+X4zfX7i+529fJnovlK9FQmW9J/L3RFleL9J7gv7aVqze7NctjP0q3+NfbuAb7qPO+Gwkvd9+/a2G91ZhnSyyc8qRZ87yMiDfr4bc7wueMTc6Ju7+fkq2tyU45Ds/fV6OReeaqt92+g2Vz9oXtGS8ffQVLZV3l/zFyfWz/LY9pPI9Ko/rf1lZ27smv7fjqfqy6Iv37/ec1c6zZ3bRteLq+t7UxxafGv3YmN6lW2C+Go1vYQp7budusHpChRVnHNwzeRJQOUnTSj2dtJ9ypomJKjuIURGZkp/Glk1cZr746b3TEcueV26gOB/YNcunLelZ1uMMz2qNlVeiqyQmSwz58R1+OuCcGwopXV/KeHyFXSLX2ZhxkbtPuoFIOm+nlsfBH/fX6+KaQbBcL98QcRw7XlOMkv6jBPkBOtOxUL5iMNl6T4CLWLpgDHGgCdRSLqmmaCKWEo5sANQxnQCSAQKpFFkYKZpzBRsiiaUZYunpKkVoDrQjZiBRcs0GNp47YKkW+GPa4FAvuWgppRYrrXjpNVetpdZq9Ypit2warFg1s2ZuveWmrbTarLXmrbt4RjSLVzdv7t47a3Zm7ozudOh9yMhDRwmjDhtt+OgT+kydZdZps02ffcnKC/1Yddlqy1ffaUOlrbvsum237bsfqHZyOHrKqcdOO376J2pvWP+4f4BaeqMmD1K3o32iRqvZxxTpykm5mAGYBE0gbhcCCC0Xs9iSqlzkLmbRhagogpHlYrbSRQwEdScpJ31gF+SF6EXu/8ItmP6Gm/yvyIUL3Q+R+xO371BbNw3NB7FXFF6nxkz00adL40Ou+rMMf3vxl3JI3WyhDF1abZDiSUqi0YMoVqJ3NQ+ys9RH38hdbGvrSdOyLLx50tpdFbwsyVD2NSRulTN7t+THwmLQHpNUWNtKIFJXX5Ei49/FHOWux888mkppm7jeO/YZfec2LR3d9W7Npt4Fh8iFczgMRGwb6bHrmbtoTA3bTFiN9H5s32xdV0HQM4nx2rG0kEWS0lbi38sy05q7Lytb0oIk2skD103Y72XMYRgYVttbfY+VezyrjjH7HKOduKtnKKZ11zJY1hKbGz0PkgHWIe5nMHlNtTNWwxre4Ug3z9ktFe29KGRO223ZXPSvjF/qvdRRZDdM2ge2VTuyCdTRqowZ9iVJgWJemM0mjiodmmd1CIvlrcmEp3PMdiMCpu6qC3Nlk9oUIe0I6whXSP2u58TTHruTvDDV9RI4G8RtkKdVxfn4FpxuEj350tlHgU6SfasGan0vL6W1Uk/24el6rI6FFUBPaN9QFWJvSt9kpHVueJHVSy925mkkUXg0i+W0hKa4yl5z4ZI9ZK2qo5mQlA/hgVSsW3bbqYykQJQVjpRb4tOSAkm+39zS7YGaEC7ea8t6EIRC37q1PIczb0vJ0xMj0iQsMP8SH+1oxGeAlmsU1CEOxH+vYTVOkVW3qMEWQ6FQmtjIsPATSjALQT13NOQEMdjH5fSgOvpYa5B9k2gldJDMPEdcyISiJIegW3tw+t3usY5OCMCee3xuR0W8Nih+QoMb5kcdcL1CBNIf7sFyxLd3z4QzY2ZFk2eD0W1yZpPcEEGESqDNznW0gGghi43QR/rQM+T9kmfO2MouA1gA6HE0kdhrbL3Pid0x1exVohWOPJA14Kd5c9wiJonkGWlGZEwKBzV2SSyt2S8pUNiKFbUTLY2/GwR/X+tK1T3Wh1cFepW2+uQ8Bbsam4KnHJjS/b/Sblq6NrUDQ00nmALKMOD1q5+JrQRqBbYCPC22UfS1LEeO6ANtGdXx32kixPbe9QiiU7D0oin7VPHRNlScIREvPu2YXpkhLpy/Sn0j8ek4NFwcBBmcVxsVgVqgN6s9ksbW95U8KmMFOPwcS9HNHQFocy66B1pSL3mkz31GrL0iAwnZG0BNJDgnTOu4Dnb1vCYbD9c/c7Gh1nV6Nbwz06VKamxjer48PotlwenJAY9v364l6qDKfPRow3tOTRlp3is5geKLgzGWcRb2eVCrhM4a8kCirIt9gQrO6idOB3DlRLw28HMsK/GMNOplOxpR46MMxCOMu9rMVjgcuNWD6k2Sw+yEKIKmtkYj3j3xf62UbYOg2EbYbFRqIoT/XcW/K8NPB/xkIiNxe/g3fF2rG6E2BdgAAAGFaUNDUElDQyBwcm9maWxlAAB4nH2RPUjDQBiG36aKtVQc7CDikKE6WRQVcZQqFsFCaSu06mBy6R80aUhSXBwF14KDP4tVBxdnXR1cBUHwB8TZwUnRRUr8Lim0iPHg7h7e+96Xu+8AoVFhqtk1AaiaZaTiMTGbWxV7XhFEAL20jkvM1BPpxQw8x9c9fHy/i/Is77o/R5+SNxngE4nnmG5YxBvEM5uWznmfOMxKkkJ8Tjxm0AWJH7kuu/zGueiwwDPDRiY1TxwmFosdLHcwKxkq8TRxRFE1yheyLiuctzirlRpr3ZO/MJTXVtJcpzmMOJaQQBIiZNRQRgUWorRrpJhI0XnMwz/k+JPkkslVBiPHAqpQITl+8D/43VuzMDXpJoViQPeLbX+MAD27QLNu29/Htt08AfzPwJXW9lcbwOwn6fW2FjkC+reBi+u2Ju8BlzvA4JMuGZIj+WkKhQLwfkbflAMGboHgmtu31jlOH4AM9Wr5Bjg4BEaLlL3u8e5AZ9/+rWn17wdmCHKiy8ORNAAADXZpVFh0WE1MOmNvbS5hZG9iZS54bXAAAAAAADw/eHBhY2tldCBiZWdpbj0i77u/IiBpZD0iVzVNME1wQ2VoaUh6cmVTek5UY3prYzlkIj8+Cjx4OnhtcG1ldGEgeG1sbnM6eD0iYWRvYmU6bnM6bWV0YS8iIHg6eG1wdGs9IlhNUCBDb3JlIDQuNC4wLUV4aXYyIj4KIDxyZGY6UkRGIHhtbG5zOnJkZj0iaHR0cDovL3d3dy53My5vcmcvMTk5OS8wMi8yMi1yZGYtc3ludGF4LW5zIyI+CiAgPHJkZjpEZXNjcmlwdGlvbiByZGY6YWJvdXQ9IiIKICAgIHhtbG5zOnhtcE1NPSJodHRwOi8vbnMuYWRvYmUuY29tL3hhcC8xLjAvbW0vIgogICAgeG1sbnM6c3RFdnQ9Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC9zVHlwZS9SZXNvdXJjZUV2ZW50IyIKICAgIHhtbG5zOmRjPSJodHRwOi8vcHVybC5vcmcvZGMvZWxlbWVudHMvMS4xLyIKICAgIHhtbG5zOkdJTVA9Imh0dHA6Ly93d3cuZ2ltcC5vcmcveG1wLyIKICAgIHhtbG5zOnRpZmY9Imh0dHA6Ly9ucy5hZG9iZS5jb20vdGlmZi8xLjAvIgogICAgeG1sbnM6eG1wPSJodHRwOi8vbnMuYWRvYmUuY29tL3hhcC8xLjAvIgogICB4bXBNTTpEb2N1bWVudElEPSJnaW1wOmRvY2lkOmdpbXA6MWE3MDQ5YjktOTM3ZC00ZDY4LThlODEtZjM3YTJlNmUyZGY3IgogICB4bXBNTTpJbnN0YW5jZUlEPSJ4bXAuaWlkOjNlMzgyZWM4LTA5NjEtNGUwYS04Mjc2LTlhZjMxZmRlZDNkZCIKICAgeG1wTU06T3JpZ2luYWxEb2N1bWVudElEPSJ4bXAuZGlkOmJmN2ZkMmYxLTAxMmQtNDRiOS04NmQ3LWVkMzA0ODZhMzFjZCIKICAgZGM6Rm9ybWF0PSJpbWFnZS9wbmciCiAgIEdJTVA6QVBJPSIyLjAiCiAgIEdJTVA6UGxhdGZvcm09IldpbmRvd3MiCiAgIEdJTVA6VGltZVN0YW1wPSIxNzI4Mzc4Njg5MjE2NTk3IgogICBHSU1QOlZlcnNpb249IjIuMTAuMzIiCiAgIHRpZmY6T3JpZW50YXRpb249IjEiCiAgIHhtcDpDcmVhdG9yVG9vbD0iR0lNUCAyLjEwIgogICB4bXA6TWV0YWRhdGFEYXRlPSIyMDI0OjEwOjA4VDExOjExOjI3KzAyOjAwIgogICB4bXA6TW9kaWZ5RGF0ZT0iMjAyNDoxMDowOFQxMToxMToyNyswMjowMCI+CiAgIDx4bXBNTTpIaXN0b3J5PgogICAgPHJkZjpTZXE+CiAgICAgPHJkZjpsaQogICAgICBzdEV2dDphY3Rpb249InNhdmVkIgogICAgICBzdEV2dDpjaGFuZ2VkPSIvIgogICAgICBzdEV2dDppbnN0YW5jZUlEPSJ4bXAuaWlkOjM1ZmZjNjY3LTZiNWEtNDZlNy1iOTFkLTZhYzUwNWVjZjdhYiIKICAgICAgc3RFdnQ6c29mdHdhcmVBZ2VudD0iR2ltcCAyLjEwIChXaW5kb3dzKSIKICAgICAgc3RFdnQ6d2hlbj0iMjAyNC0xMC0wOFQxMToxMToyOSIvPgogICAgPC9yZGY6U2VxPgogICA8L3htcE1NOkhpc3Rvcnk+CiAgPC9yZGY6RGVzY3JpcHRpb24+CiA8L3JkZjpSREY+CjwveDp4bXBtZXRhPgogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgCjw/eHBhY2tldCBlbmQ9InciPz5nwSr9AAAABmJLR0QAAAAAAAD5Q7t/AAAACXBIWXMAABYlAAAWJQFJUiTwAAAAB3RJTUUH6AoICQsdNuSNnAAADTNJREFUeNrt3W9MG+cdB/CvTaBHEwKWmnoQ11Ndrw20bK0ctJU2SENUnYQm5khIXYQq2q2rtsmNvOxNV4SiiBfRJOQVOm2iCooqRjexjHgR2jKxbEGtmw5bWUoNLTWnlDhRrK65EOpwJNS3F+iuZ3M2xiatge9HQon/3PmwzX3veZ7fc2dSFEUBERHRl8jMt4CIiBg+RETE8CEiImL4EBERw4eIiIjhQ0REDB8iIiKGDxERMXyIiIjhQ0RExPAhIiKGDxEREcOHiIgYPkRERAwfIiJi+BARETF8iIiI4UNERAwfIqK18fv96O3t5RtBDB+irbDDdzgchjt9WZbR0dGB5uZmiKKY03rTrZuI4UO0xe3btw+RSASSJCXdHw6HcenSJdxzzz1rWl8oFMLw8DBCoRBEUYTdbkcoFOIbTQwfIvrC3r174XQ6MTY2lnR/IBBAW1sbKioqtFDp6OiALMtJLSOjYLHZbCgtLQUAtLS0wOVyAQAkSUJ7e7vWKvL7/RlDTH2e/nX9fj+OHj2ac6uMGD4FTVEUKIrCT5q2hPr6eoyPj2s7eFEUEYlE4HQ6tec4HA7Mz8/jypUrAIArV65gfn4eDocjaV0WiwXnz59HV1eXtj41eLxeLzweD0RRTGohpRJFERcuXIAoipicnAQAnD59Wnu8r68PbrcbIyMjK16fGD4bMmwSiQQSiUTa20SbUWqwTExMoLGxUWv1qKHidDoxMTGhPcfpdMJisaxY18DAAKLRKGpqarQxH1EUYbPZ8PDDD2vrc7vdCAQChtvz/PPPAwAEQYDVak163Ov1aq0pYvhs2NDRBwwAmEwmmM1mmM1mmEymtM8j2iwsFgsaGxsxMjICSZJw5swZ1NbWpm0hSZKE8fFx1NfXp13f8ePHEQqFEAqF0hYd2Gy2tNvU29urdbv5fD5+SLR5wkffmlHDRh84qUFkNptXLEe0WdTW1iISiSAYDKKsrAxVVVVpW0jBYNCwy80ohNxuN2KxGG7durXi8Wg0aric3+9HLBbD5OQkRFGE1+vlB0R3NnwuzgHdQeDZvwFPnwCe/CPw/ZPA7y8A/1tY/xaPoigrAicdNYj0yxJtFlVVVSgrK8OLL74It9sNQRAMw8TpdOLUqVOGXW5qi0Udx5FlGePj46irq8OePXsQjUYRDocBLI8BDQ8Pp209Wa1WCIIASZJYLUeabXdipX+YAn53YeX9kgwMTAFvfgD89FHgmYfWJ3gAoKioaM3LFxUVIRwO49y5czCZTFkFl9q6Ki8vh81mQ3V1NbZv385vEhUMQRBQV1eHaDSasUVTX18Pn8+HoaEhw8fb2trg9Xq16jmv14uWlhYAQGdnJzweD6ampgAAQ0NDhmM3DQ0N8Hq9cDgcqK6uxr59+/gB0XIjQFnnw/6BqeXWTTb2fwP4RY5jjfpCgm3b8svQs2fPYmZmRmsVranpaDbj8ccfx4MPPrilv0iSJKG7uxuHDh0yPIpeK7V0V93Z0foTRRGvvvoqDh8+vC6fGRUGv9+P2dlZeDyegt7Ode12+8/V7IMHAP7yEXDhk/xaPer4TT5cLlfOXW+JRAJvv/02pqenN/QXVj8orJ+LoQZLe3s72tvbV0xgVI2NjcFqtcJisUAURTQ3N2vrS+1qUR9PfR396+kHyvWz7FO3QT+HJHWuSKblUp+TaZ7KZpWuyo2+fOpcK/X7uhW+k3nvuRMK8PeLwI//Afzy7NqX7zmfe6tHHefJ144dO/DAAw/kVYDwzjvvIB6Pb9gjJf2gsNVqxeuvv67t3NU5HeXl5Wn/cNSKKUmScOTIERw5cgSiKGJ0dBQ9PT1aKPj9fvT39+Pll1/OeESuDpSLoohPP/0UoihCFEW4XC4MDAxoz+vp6cHo6ChEUdReV5KkjMvpQ258fBwHDhzYkju78fFx2O127vkLyNDQ0Kpzpxg+WC4ceO400HUO+ODachCleuuZ5J9UH14DItdzC6D1lO8fYSKR0Pq/N+JOSD8wXV9fj1AoBEmS4HK5cPz48YxHx/pJiqlzQKqqqnDfffdpc0paWlrQ1dWlzZo3EggEUFdXB0EQkuaJqNsWi8UgyzImJiawd+9ebVxD/VcUxYzLqQYGBlBXV7di7slWIAgCurq62K1ZoCwWC1wulzZ3St+boG/Fi6KIgwcPor+/37C1pC5XiCGWc/jEbwOeM8DM9fw34uf/BH71FhCKra3lk0uRQTq7du3KO9DSlZsWsoWFBczPzyeFi8VigaIoabvYMnXfRKNRrbpJ3clZrVbMzs5mtS5JkhCJRAznpqjvsbr+2dnZpIOG0tJS2Gw2w88hdbtEUUQ8HsfTTz/NPR0VLLvdDkmSMDIyghMnThi24iORCOLxOERRTDqY0PdCFOJE3pzD508fApfm12cj4reBsShw8F9A33vZB9B6dLmpduzYkXf4zM3NbZqjLv2M+NVaTlNTU2hubl6XVqUoinA6nYZVWupYULrXMppBb7ScLMvo7+/HU089ZViGTPRVE0URwWAQtbW1sFgs8Hg82nc19e/J6XSira0teZ8aj6O7uxsej6dgzyCRc5nY6Yt3ZoPemAS+tQv4dmX60FG7udabum5FUdZc9baZqC2ebAai1dO4GE1kVKW2UDIJBAKG80VkWUZ3dzcaGxvTlg/LsoxYLJa0vNFy4XAYVquVp3WhgtPa2qr9f2hoSPvO+v3+pAm6q03W7evrAwC43e6C/V1zDp/YzfSP/egR4LlHjB9Tx33631/+MfLnj9KHj97S0lLeZdaq+fn8m3HpBuQLWWlpKcrKypK62CRJyroVNzIygurqau2ozGazaSe2FARBC4Rswkc9CWbqUZwsy+jq6oLVak3qVrDb7UndeQsLC0ldbumWCwQC8Pl8K071shHKU2lzM5ovpS8+sFgsWil1Jl6vF/X19ejt7YXP5yvIisac+62KMyx57P3liaTpvPlB+uABgI8yDDWoLRKz2Yzbt2+v2xtx9epVbd25tnoynd+qUKkTEoeHhyHLMmRZxvDwMNxu96pfWKPxGYfDkTT7PRwOIxqNoqGhYdVtMSr91QdIajDU1tYiGAxqlXRjY2NasUOm5dSzMas/Xq8XPp+PwUMFS720hVoglA2XywWXy4Xu7m7DKQ0bNny+vjPz47/973IXWqo3Jpcfy2RhafXXN5lM6xo+H3/8cV5dbWazGdXV1Rvyi60OutfU1KCmpiappaDOo2lqasKpU6fgcrm0+Tn6kmiV2j/d2toKh8OBzs5OdHZ2aoGizqtpbW3F4OCgdrZkfbm2XjgcxuDgIHw+34r5PA6HA/v370dTUxMcDgeGh4dx6NAhCIKQcTmijUStHNX/fWbrhRdeAJB8GYtCkfMZDv46A/w6iwD+yTeBZ2u+CJ5sCgr2WoHffDf944qi4PPPP8fNmzchCAJKSkryehPm5uYwODiIkpKSNZ1mR++JJ57Ycmc56O3thd1uX5dyXc62J9pacm75NDuAh7LYR/S9txw62QYPAPxwT3Ytn5KSEty4cSPvNyEQCORctm02m7dk8EiShFgsllV3WjbU684weO7856a/AqnD4Uh7mQSigmz5AMDVOOD99/qVXAPAzx4FDmQRPuo1eeLxOBYXF3Hvvffm9HrvvvsuQqEQ7rrrrqxbPTyxKG3k8Dl8+DAOHjzIK4fSVyqvUrGvbQeOfw/wR5aLCD7J41IJT+4GfuAEvlOZ3fPVyyKUlpbi1q1buHz5Mnbv3r2m17x8+TIcDgcee+wxbNu2LecuN6LNIBQKaaW+Bw4cQEdHBwRBgN/vx9TUFD777DOcP38evb29mJiY0O4bHBxEQ0MDjh49itdee027XahVVlQglA0skUgoS0tLyuLiohKLxZTp6WklHo+vulw8Hlemp6eVWCymLC4uKktLS0oikVCINrtr164pL730kjIzM5N0/8zMjHLs2DFFURRlYWFBeeWVV5STJ08qiqIoJ0+eVO6//34lGAxqz0+9r6enZ8VtdXkiI9s2cnCqrR8AqKioQHFxMS5evIhEIoGKigpYLBbcfffdAICbN29CkiRcv34dZrMZlZWV2L59O4qKirK+CB3RZjA3N4empibtts/nQ0tLi9YNZ3SmCK/Xu2L+if4+u92+4na2p1Qidrtt6AAymUwoKyuDIAhYWFjAjRs3MDMzo9W3C4KAnTt3oqqqCqWlpSguLtaWY/DQVlJeXo7R0dEVYz7qhER9KBExfFYJIGC5EKCkpATFxcUoKytDZWWldhoes9mcFDb6H6KtTn9ZDUEQWAFHDJ+1BJDJZEo6P5tR+XS+ZzEg2qzUs35LkoRQKMRr/dAdZd5sv5AaQqktndTbRPSFhoYG7WwWbW1t2LNnD98UurP76nzm+RAREbHlQ0REDB8iIiKGDxERMXyIiIjhQ0RExPAhIiKGDxEREcOHiIgYPkRERAwfIiJi+BARETF8iIiI4UNERAwfIiIihg8RETF8iIiIGD5ERMTwISIiYvgQERHDh4iIGD5ERERfkv8Dwt9sY8bvxR8AAAAASUVORK5CYII=",alt:"PWA Inspection not synchronized",width:"80%"}),(0,Ae.jsx)(vu,{className:e.imgLegend,children:"When an inspection is not synchronized, click on the toggle button to start downloading it."}),(0,Ae.jsx)(ws,{item:!0,marginY:"1rem",children:(0,Ae.jsx)(tX,{})}),(0,Ae.jsx)("img",{className:e.img,src:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAZoAAABFCAYAAABzGSAtAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAJcEhZcwAAFiUAABYlAUlSJPAAAAASdEVYdFNvZnR3YXJlAEdyZWVuc2hvdF5VCAUAAApASURBVHhe7Z3tj1VHHcf9V/gDjOkro0Z9YX1DbTQapKnIRqwaYpc2ja0Y6EMsFXWNVJRuo0CFQotGWgpKlWIppbuw7aKShqSRwlabSlgCgg+wuyyMfo/72/wY59yHc+/s3nv380l+uefMmZlzN3dmPmfmnHv3fQEAACAjiAYAALKCaAAAICuIBgAAsoJoAAAgK4gGAACygmgAACAriAYAALKCaAAAICuIBgAAsoJoAAAgK4gGAACygmgAACAriAYAALKCaAAAICuIBgAAsoJoAAAgK4gGAACygmgAoK3s2bMnbNy4cWYPANEA9AQa3BctWpQc4K9evRrWrFkTFi9eHE6fPj2T2hhWb1ndKRANxCAagB5Ag/vy5cvDqlWrwsWLF2dS/8fo6GhxTNGMaFSur69vtj6dQ2n1QDQQg2gAegAb3BXa9ijtwIEDhYQkGslCMxzNdITNeGKJxPk8ko8kZLMdf85YNKrH8vn6lG/9+vWVZ1vQPSCaJrlx40YRAJ2EDe6xHDR4SzBnzpyZFY0kYds+TzwTUroEEMvGJGNiive9aFTHli1bim0TmklJr5KPlYPeBdHUwcRy/fr1ZCAe6ARscI8lonRFnK68fsD3MxCPSURCsDyxzISvo1Z9jZ4XegtEU4LJZXp6Ohwa+1344dFHw90v9oVle24vQttK0zHlMekAzAepgd7LJRaNyULpeq03qzDhqN6UaJQWn9/Qti2dKRDNwgPRJDDJSCISyp3P31YzlEd5kQ3MF37QlkwkFd2XMSHEorF9u3ej/XroHKpveHj4/0Tjzx9v+7xKV5rw+aC3ySaasfG3w8C+dWHZjz8bPrnuQ+HDD74/3Pbdj4fBA4+H8/8Yn8nVeUgUmqFs/cOmpFRqhcqoLLKBucYP2hrUNbj7+x+xaITy9/f3lw72SrfyVqfOY7MbX3fZPRq/bfmUJvwx6G2yiObpV7cUYimLjz58S3h2aNtM7vYzOT0Z3r3813By/M1w/L03wuh7rzccr797LHzvtYeTImkkkA3MB/GgrX0N6jZTSYlGYvAyijEx2JKXr1/16EEBO+brSMlFeZRfT5khmoVH20Wz/dXNSbmk4gf7Hpsp1T7O//t803KxkGS2Hh9MCqSZ+P3pFxfcMpoGFF3x2sDWKhqEbECCPNgSW7s+M+gMOlHgbRXNyKmhpFBqxZ/eOT5TunUkmZRAGglJZuQvR8NX992RlEcz8fX9y8O1a9cK2XQLaph2dRqvv9tVqb9CjvGNu9bVrrDj8XkMncNffatuqyt+D3ZVrlCdVkbUKmdYHr0uNPxnBvOLX+60qNomO/FzbVk0Gkz3/3FvWPHkHeEjD30gKZNa8aXBpTM1tYaWy6rOZBTtms1YHHx7f9csoalh+kFfjdQaqgZyDdJ6Lbv6tU6iPDpu+YUGfv+NdDvXkSNHSkWjsnZM5ex7GMK/t7hue696D7XKGcqn8yiqdupuxT6zhfZ3dyq+D4m4HzVDz4lGN/W/+JPPJQVSFmt23VeIyaedOvvWTI3V0T2ZlEAaDc1m1h68NymNKjHw2iPFrKbTRRM3cOEHbEMDd5lo/DGVVX0mkLIBLc7nUScpGwB9ubhD1eqcqfPZeWqdD2AusH7i267apbVv9TFbJfB90/qeLqpsFuT7hZVL9Ym5pLJo/jXxz7D08dtvEka9WP3MvWH6+nRR/qFfPjCbrqfSVj9zT3jj9LHiWBV04z8lkEZCs5lj/xXNV9qwbGah5bOpqamOXz5Tg/XLVELb8e9iWYNOicY3bL9t+A5jpAZ+kXo/Hl+/XrVvWGf1aUb8vlS/bkyrTFwPwFxTJhq1S/UJbVtf0ba1ZbVjicT2hbV1las6K2o3lUWz+eUnbpJIvfjmzlWzktk9siuZR/HkSzcPSI3S6rLZ0XeGwhee/1RSGlVCX+qcnJzsStGk0rSdEo0avwZsyxsP6CKVViYapcd5jfh9KV8siFRaXC7u1KkyAHNJ3CbVVst+BNX3Jx2P+6WO22/IdYJkRGXRLNmwOCkKxS+Gd4R1z62d3b9/R/+sZHTM503FsVNDRd5maFk0Y+0XjRpPpz991qhUUmlC6TYzEL4TGKmBvEw0ypvqHNYRfT1xvXFnFalyOu7fY+r9Acwl1k79wwC+Hat9+mPWfstEk6pjPqksmo89cktSEqueuqs4rgH2gZ394b7tK8PU9FSRtmtoe7JMHPfvuLvI3wytLp1JNHe9sDQpjSqx8tfLisbT6aJJDc7abvQeTTxIq6zqU70iNdCLOJ8oO4fV4eUgVKdPUzm/VFBWTvu+01rE+QDmCmurvh8acX/07b5MNDoel5tPKovmE49+MCkJxc9f+WmRZ/LaxKxkdh55Kpk3FZ8ZuLUo0wytPAxgS2erf9uflEaVWP/K2q5YOhNqmDboW4OPxZBq0NpWmo4ZSvODfVljV7qd04jFIcpkIXTe1BNt/u9oRB7KE/+9AHOJtVfrNx7fV+J2XUs0Qq9Wdj6pLBo9zpyShIXJRmw73PiXOBV6OKBZWnm82R4GGBzekJRGldj35u6ueBhAWONNXdmrkfurfoU13JQshC9T67stFjqfvYe4o6XO7+v09Xmh1Svn0fkRDcwnZe1fpPqn9dF6orGy892+K4vmhdFfJSXhY9vhn4WthwaTx2qFLb81Sytf2NTjzYffOhRW7FmSFEcz8bW9d4bLly93xePNrdDOATrVYQCgN6gsGt3c79u0JCmKVqPKwwBG1Z+gsfs0P3r5+0l5NBO7jz9bXEn08m+eSQi6UmqXGCQsZhX50eelmZ+f6dnVL0AuKotGnP3735r+Lk290L2cVqnyo5oSjc1qvrX3nqRAGomBl74dLl261HU/QQMLA4kmvq8GkJuWRCMmpibCruGnw6cHbk2Ko9HQE2pH/3xkpta5RzMPiUE38MfHx8N39j+YFEmtUBmVtYcAennZDLqTWqLx97U0W9WsXGimad/LsPtcPk35NUs6e/bsTfvtmu1C99OyaHoJiUHLXRLFuXPnwuaDT4QvP/f5pFR8KI/yqozK8m8CoFMpE432m/nf/nGalt/ifSsPgGgivGzUKU+ePBk2/WZD+MbulWHF7iXFlzoV2laajimP8iIZ6HTUTuN7NCkheFHoNb6PE6fV24eFDaJJIFFo6Uv3Wa5cuRIuXLgQxsbGwokTJ8LIyEgR2laajimP3ZNBMtDJlM1ohMSQEhCigVZBNCWYbDRDkUT0nZiJiYlCKgptK03HlAfJQDdQJhqJwd+XkSSUJlLSqCeWVBlYuCCaOkgeJp1U2HGAbqCWaEwMtrymNJGSRj2xpMrAwgXRNAligW6mTDQmFy2Z6ckyPVGGaKBdIBoAAMgKogEAgKwgGgAAyAqiAQCArCAaAADICqIBAICsIBoAAMgKogEAgKwgGgAAyAqiAQCArCAaAADICqIBAICsIBoAAMgKogEAgKwgGgAAyAqiAQCArCAaAADICqIBAICsIBoAAMgKogEAgKwgGgAAyEgI/wE5BMNqQUKODgAAAABJRU5ErkJggg==",alt:"PWA Inspection synchronized",width:"80%"}),(0,Ae.jsx)(vu,{className:e.imgLegend,children:"When an inspection is synchronized, you will see a green checked cloud icon."})]})})},sct=()=>{const[e,t]=(0,n.useState)(),r=b(pg),i=(0,n.useMemo)((()=>cF(r)),[r]);return(0,Ae.jsxs)(Ae.Fragment,{children:[(0,Ae.jsx)(PF,{pageTitle:"Reports",left:(0,Ae.jsx)(CF,{title:"Reports"}),center:(0,Ae.jsx)(jF,{responsive:!0,btnVersion:Wy()}),right:(0,Ae.jsxs)(Ae.Fragment,{children:[Eo()&&(0,Ae.jsx)(sz,{pushRight:!0,onCompanyFilterSelected:t}),Yy()&&(0,Ae.jsx)(Xpe,{})]}),children:(0,Ae.jsx)(uF,{reports:!0,selectedCompany:e})}),i&&(0,Ae.jsx)(oct,{})]})},act=Zo()((()=>({select:{display:"inline-block",minWidth:"10rem",marginRight:"0.8rem",fontSize:"0.9rem",zIndex:100}}))),lct=e=>{const{classes:t}=act(),[r,i]=(0,n.useState)([]);return(0,Ae.jsxs)(ws,{container:!0,padding:"0.8rem 0 0.8rem 0.5rem",fontSize:"1.4rem",alignItems:"center",justifyContent:"space-between",wrap:"nowrap",children:[(0,Ae.jsx)(ws,{item:!0,children:e.title}),(0,Ae.jsx)(ws,{item:!0,children:e.config.map(((n,o)=>(0,Ae.jsx)(ET,{className:t.select,placeholder:n.label,isMulti:!0,options:n.data.map((e=>({label:e,value:e}))),value:r[o],onChange:t=>((t,n)=>{[...r][t]=n,i([...r]);const o=n&&n.length?n.map((e=>e.value)):[];e.config[t].action(o)})(o,t)},o)))})]})},cct=e=>{const[t,r]=(0,n.useState)([]),[i,o]=(0,n.useState)([]),[s,a]=(0,n.useState)([]),[l,c]=(0,n.useState)([]),[u,d]=(0,n.useState)([]),[h,p]=(0,n.useState)([]),[f,g]=(0,n.useState)([]),[m,y]=(0,n.useState)([]),[v,_]=(0,n.useState)([]),b=(e,t)=>t===e?1:0;(0,n.useEffect)((()=>{if(e.defects.length){const e=x();let t=[];E(),e.forEach((e=>{let{severity:n}=e;n=parseInt(n,10);let r=t.findIndex((t=>t.fullName===e.type));-1===r?(r=t.length,t.push({name:e.type.substring(0,7),fullName:e.type,"Severity 1":b(1,n),"Severity 2":b(2,n),"Severity 3":b(3,n),"Severity 4":b(4,n),"Severity 5":b(5,n),total:n})):(t[r]["Severity ".concat(n)]=t[r]["Severity ".concat(n)]+1,t[r].total+=n)})),t.sort(((e,t)=>e.total<t.total?1:-1)),t=t.slice(0,10),r(t)}}),[e.defects,l,i,s,m,v]);const x=t=>{if(e.defects.length){let n=e.defects;return[{field:"inspectionType",filter:m},{field:"severity",filter:v},{field:"asset",filter:i},{field:"model",filter:s}].forEach((e=>{t&&t===e.field||(n=e.filter.length?n.filter((t=>e.filter.includes(t[e.field]))):n)})),n}return[]},S=e=>(0,Ae.jsx)(KWe,{dataKey:e,position:"middle",style:"Severity 4"===e?{fill:"grey"}:{fill:"black"},formatter:e=>e>2?e:null}),w=(e,t)=>e.length===t.length&&e.every(((e,n)=>e===t[n])),E=()=>{const e=Vy(x("asset"),"asset",!0);w(e,l)||c(e);const t=Vy(x("model"),"model",!0);w(t,u)||d(t);const n=Vy(x("inspectionType"),"inspectionType",!0);w(t,h)||p(n);const r=Vy(x("severity"),"severity",!0);w(r,h)||g(r)};return(0,Ae.jsxs)(Ae.Fragment,{children:[(0,Ae.jsx)(lct,{title:"Defects spread",config:[{id:"type",label:"Type(s)",data:h,action:e=>y(e)},{id:"asset",label:"Farm(s)",data:l,action:e=>o(e)},{id:"model",label:"Model(s)",data:u,action:e=>a(e)},{id:"severity",label:"Severity",data:f,action:e=>_(e)}]}),!e.loading&&(0,Ae.jsx)(fKe,{width:"100%",height:"85%",children:(0,Ae.jsxs)(aKe,{data:t,children:[(0,Ae.jsx)(q$e,{strokeDasharray:"3 3"}),(0,Ae.jsx)(iKe,{dataKey:"name",axisLine:!1,tickLine:!1,dy:"0.6rem",style:{fontSize:"0.7rem"}}),(0,Ae.jsx)(sKe,{}),(0,Ae.jsx)(IOe,{cursor:{fill:"#FFFAFA"},labelFormatter:e=>{const n=t.find((t=>t.name===e));return n?n.fullName:e}}),(0,Ae.jsx)(iDe,{verticalAlign:"top"}),(0,Ae.jsx)(rqe,{dataKey:"Severity 1",stackId:"a",fill:"lightgrey",children:S("Severity 1")}),(0,Ae.jsx)(rqe,{dataKey:"Severity 2",stackId:"a",fill:"grey",children:S("Severity 2")}),(0,Ae.jsx)(rqe,{dataKey:"Severity 3",stackId:"a",fill:"#00A6FF",children:S("Severity 3")}),(0,Ae.jsx)(rqe,{dataKey:"Severity 4",stackId:"a",fill:"navy",children:S("Severity 4")}),(0,Ae.jsx)(rqe,{dataKey:"Severity 5",stackId:"a",fill:"red",children:S("Severity 5")})]})}),e.loading&&(0,Ae.jsx)($y,{topMargin:"15%"})]})},uct=e=>e.map((e=>({subUniqId:e.assetName+e.subAssetName,plannedDate:e.plannedDate,id:e.id,status:e.status,type:e.type}))).sort(((e,t)=>e.subUniqId===t.subUniqId?new Date(t.plannedDate).getTime()-new Date(e.plannedDate).getTime():e.subUniqId>t.subUniqId?1:-1)),dct=e=>{const t=uct(e).filter((e=>"planned"!==e.status));let n=[];return t.forEach((e=>{if(n.some((t=>t.subUniqId===e.subUniqId)))n.push({...e});else{const t=((e,t)=>{let n=0;return n=12*(t.getFullYear()-e.getFullYear()),n-=e.getMonth(),n+=t.getMonth(),n<=0?0:n})(new Date(e.plannedDate),new Date),r=t<3?"<3":t<6?"3-6":">6",i=">6"===r?"toplan":e.status;n.push({...e,status:i,categoryDate:r})}})),n},hct=(e,t)=>{const n=t.find((t=>t.subUniqId===e));return n?n.categoryDate:">6"},pct=(e,t)=>{let n=[];const r=dct(t);return e.forEach((e=>{const t=hct(e.assetName+e.subAssetName,r);(">6"!==t||">6"===t&&"inactive"!==e.assetStatus)&&n.push(t)})),n},fct=(e,t)=>pct(e,t).filter((e=>">6"===e)).length,gct=(e,t)=>((e,t)=>{let n=[];const r=dct(t);return e.forEach((e=>{">6"===hct(e.assetName+e.subAssetName,r)&&"inactive"!==e.assetStatus&&n.push(e)})),n})(e,t),mct=Zo()((()=>({root:{minWidth:"unset"},close:{position:"absolute",top:"1rem",right:"1rem",cursor:"pointer"}}))),yct=e=>{const[t,r]=(0,n.useState)(null),[i,o]=(0,n.useState)([]),[s,a]=(0,n.useState)([]),[l,c]=(0,n.useState)(null),{classes:u}=mct();(0,n.useEffect)((()=>{(()=>{const t=gct(e.subAssets,e.inspections);t.sort(((e,t)=>e.assetName>t.assetName?1:-1));const n=t.map((e=>({label:e.assetName,value:e.assetId?e.assetId:""}))).filter(((e,t,n)=>t===n.findIndex((t=>t.label===e.label&&t.value===e.value)))),r=(0,Qo.groupBy)(t,"assetName");for(const e in r){const t=r[e].sort(((e,t)=>Ay(e,t,"subAssetName","asc")));r[e]=t}a(n),c(r)})()}),[]);return(0,Ae.jsx)(Ud,{open:!0,onClose:()=>e.onClose(),classes:{paper:u.root},children:(0,Ae.jsxs)("div",{style:{width:"30vw",height:"45vh",padding:"1.5rem",borderRadius:10,border:"1px solid lightgrey",position:"fixed",top:"5rem",left:"14rem",background:"white",zIndex:10},children:[(0,Ae.jsx)("div",{style:{fontSize:"1.2rem",paddingBottom:"1rem"},children:"Plan a new inspection"}),(0,Ae.jsx)(tp,{className:u.close,onClick:()=>e.onClose()}),(0,Ae.jsx)(ET,{styles:{menu:e=>({...e,zIndex:2})},value:t,placeholder:"Select asset",options:s,onChange:e=>(e=>{r(e);const t=(l&&e&&l[e.label]).map((e=>({label:e.subAssetName,value:e.subAssetId})));o(t)})(e)}),(0,Ae.jsx)("div",{style:{paddingBottom:"1rem"}}),!(null===i||void 0===i||!i.length)&&(0,Ae.jsx)(ET,{styles:{menu:e=>({...e,zIndex:2})},value:null,placeholder:"Select subAsset",options:i,onChange:n=>t&&n&&e.onSelectSub(t.value,n.value)})]})})},vct=Zo()((()=>({cell:{cursor:"pointer","&:hover":{filter:"brightness(1.3)"}}}))),_ct=e=>{const t=["toplan","planned","inspected","uploaded","annotated","analyzed"],[r,i]=(0,n.useState)([{id:"toplan",nb:0,realNb:0,color:"darkblue",name:"To plan"},{id:"planned",nb:0,realNb:0,color:"#E8833A",name:"Planned"},{id:"inspected",nb:0,realNb:0,color:"#F7C325",name:"Upload"},{id:"uploaded",nb:0,realNb:0,color:"#00A6FF",name:"Annotate"},{id:"annotated",nb:0,realNb:0,color:"#ADD8E6",name:"Analyze"},{id:"analyzed",nb:0,realNb:0,color:"#207868",name:"Finalized"}]),[o,s]=(0,n.useState)(!1),[a,l]=(0,n.useState)([]),c=on(),{classes:u}=vct();return(0,n.useEffect)((()=>{if(e.inspections.length){let n=[...r];t.forEach((t=>{const i=r.findIndex((e=>e.id===t)),o=a.length?e.inspections.filter((e=>a.includes(e.type))):e.inspections,s=((e,t)=>t.filter((t=>t.status===e)).length)(t,o);n[i].realNb="toplan"===t?(()=>{if(a.length){let t=[];a.includes("Solar")&&t.push("solar"),a.includes("Blades")&&t.push("wind");const n=a.length?e.subAssets.filter((e=>t.includes(e.type))):[];return fct(n,e.inspections)}return fct(e.subAssets,e.inspections)})():s,n[i].nb=n[i].realNb}));const o=n.map((e=>e.realNb)).sort(((e,t)=>e<t?1:-1));if(o.length>1&&o[0]>3*o[1]){const e=n.findIndex((e=>e.realNb===o[0]));-1!==e&&(n[e].nb=n[e].realNb/3)}i(n)}}),[e.inspections,a,e.subAssets]),(0,Ae.jsxs)(Ae.Fragment,{children:[(0,Ae.jsx)(lct,{title:"Inspection pipeline",config:[{id:"type",label:"Type(s)",data:e.types,action:e=>l(e)}]}),!e.loading&&(0,Ae.jsx)(fKe,{width:"100%",height:"100%",children:(0,Ae.jsxs)(aKe,{width:150,height:150,data:r,margin:{top:25,right:30,left:30,bottom:70},children:[(0,Ae.jsxs)(rqe,{dataKey:"nb",barSize:60,children:[(0,Ae.jsx)(KWe,{dataKey:"realNb",position:"top"}),r.map(((e,t)=>(0,Ae.jsx)(RWe,{fill:e.color,className:u.cell,onClick:t=>{e.nb&&("toplan"===e.id?c.push("/inspections/new"):"analyzed"===e.id?c.push("/inspections/reports"):c.push("/inspections/ongoing"))}},t)))]}),(0,Ae.jsx)(iKe,{dataKey:"name",axisLine:!1,tickLine:!1,dy:10})]})}),e.loading&&(0,Ae.jsx)($y,{topMargin:"15%"}),o&&(0,Ae.jsx)(yct,{onClose:()=>s(!1),inspections:e.inspections,subAssets:e.subAssets,onSelectSub:(e,t)=>c.push("/inspections/new?assetId=".concat(e,"&subAssetId=").concat(t))})]})},bct=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],xct=e=>{const[t,r]=(0,n.useState)([]),[i,o]=(0,n.useState)([]),[s,a]=(0,n.useState)([]),[l,c]=(0,n.useState)([]),[u,d]=(0,n.useState)([]),h=(e,t,n)=>n.filter((n=>new Date(n.plannedDate).getMonth()===e&&(!t||n.status===t))).length;(0,n.useEffect)((()=>{if(e.inspections.length){const t=new Date,n=new Date(t.getFullYear(),t.getMonth()-5,1);let o=i&&i.length?e.inspections.filter((e=>i.includes(e.assetName))):e.inspections;o=u.length?o.filter((e=>u.includes(e.type))):o,p();const s=o.filter((e=>"planned"===e.status)),a=o.filter((e=>"planned"!==e.status));let l=a.filter((e=>new Date(e.plannedDate).getTime()>n.getTime())),c=s.filter((e=>new Date(e.plannedDate).getTime()>n.getTime())),d=(e=>{const t=uct(e).filter((e=>"planned"!==e.status));let n=[];return t.forEach((e=>{if(!n.some((t=>t.subUniqId===e.subUniqId))){const t=new Date(e.plannedDate);n.push({...e,status:"toplan",plannedDate:new Date(t.setMonth(t.getMonth()+6))})}})),n})(a).filter((e=>e.plannedDate.getTime()>n.getTime())),f=[],g=(t.getMonth()+7)%12,m=0;for(;m<12;){const e=h(g,"planned",c),t=h(g,"toplan",d),n=h(g,"",l),r=(new Date).getMonth();f.push({name:bct[g],"Inspections Planned":e,"Inspections to Plan":t,"Inspections Done":n,sortIndex:g>r?g:12+g}),g=(g+1)%12,m++}r(f)}}),[e.inspections,i,u]);const p=()=>{const t=new Date,n=new Date(t.getFullYear()-1,t.getMonth()+1,1),r=e.inspections.filter((e=>new Date(e.plannedDate).getTime()>n.getTime())),i=u.length?r.filter((e=>u.includes(e.type))):r,o=i.map((e=>e.assetName)).filter(((e,t,n)=>n.indexOf(e)===t)).sort(((e,t)=>e>t?1:-1));a(o);const s=i.map((e=>e.type)).filter(((e,t,n)=>n.indexOf(e)===t));c(s)},f=(new Date).getMonth();return(0,Ae.jsxs)(Ae.Fragment,{children:[(0,Ae.jsx)(lct,{config:[{id:"type",label:"Type(s)",data:l,action:e=>d(e)},{id:"asset",label:"Farm(s)",data:s,action:e=>o(e)}],title:"Inspection operations"}),(0,Ae.jsx)(fKe,{width:"100%",height:"100%",children:(0,Ae.jsxs)(aKe,{data:t,margin:{bottom:70,top:20},children:[(0,Ae.jsx)(q$e,{strokeDasharray:"3 3"}),(0,Ae.jsx)(iKe,{dataKey:"name",axisLine:!1,tickLine:!1,dy:10}),(0,Ae.jsx)(sKe,{type:"number",domain:[0,"dataMax + 2"]}),(0,Ae.jsx)(IOe,{cursor:{fill:"#FFFAFA"}}),(0,Ae.jsx)(iDe,{verticalAlign:"top",align:"right"}),(0,Ae.jsx)(Wqe,{x:bct[f],stroke:"green",type:"monotone",label:(0,Ae.jsx)(IWe,{value:"Now",fill:"green",position:"top"})}),(0,Ae.jsx)(rqe,{dataKey:"Inspections to Plan",stackId:"a",fill:"darkblue",barSize:40,isAnimationActive:!1,children:(0,Ae.jsx)(KWe,{dataKey:"Inspections to Plan",position:"middle",formatter:e=>e||null,style:{fill:"rgba(200, 200, 200, 0.87)"}})}),(0,Ae.jsx)(rqe,{dataKey:"Inspections Planned",stackId:"a",fill:"grey",isAnimationActive:!1,children:(0,Ae.jsx)(KWe,{dataKey:"Inspections Planned",position:"middle",formatter:e=>e||null})}),(0,Ae.jsx)(rqe,{dataKey:"Inspections Done",stackId:"a",fill:"#00A6FF",isAnimationActive:!1,children:(0,Ae.jsx)(KWe,{dataKey:"Inspections Done",position:"middle",formatter:e=>e||null})})]})})]})};var Sct=["points","className","baseLinePoints","connectNulls"];function wct(){return wct=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},wct.apply(this,arguments)}function Ect(e,t){if(null==e)return{};var n,r,i=function(e,t){if(null==e)return{};var n,r,i={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(i[n]=e[n]);return i}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function Pct(e){return function(e){if(Array.isArray(e))return Cct(e)}(e)||function(e){if("undefined"!==typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"===typeof e)return Cct(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Cct(e,t)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Cct(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var Act=function(e){return e&&e.x===+e.x&&e.y===+e.y},kct=function(e,t){var n=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=[[]];return e.forEach((function(e){Act(e)?t[t.length-1].push(e):t[t.length-1].length>0&&t.push([])})),Act(e[0])&&t[t.length-1].push(e[0]),t[t.length-1].length<=0&&(t=t.slice(0,-1)),t}(e);t&&(n=[n.reduce((function(e,t){return[].concat(Pct(e),Pct(t))}),[])]);var r=n.map((function(e){return e.reduce((function(e,t,n){return"".concat(e).concat(0===n?"M":"L").concat(t.x,",").concat(t.y)}),"")})).join("");return 1===n.length?"".concat(r,"Z"):r},jct=function(e){var t=e.points,r=e.className,i=e.baseLinePoints,o=e.connectNulls,s=Ect(e,Sct);if(!t||!t.length)return null;var a=UIe("recharts-polygon",r);if(i&&i.length){var l=s.stroke&&"none"!==s.stroke,c=function(e,t,n){var r=kct(e,n);return"".concat("Z"===r.slice(-1)?r.slice(0,-1):r,"L").concat(kct(t.reverse(),n).slice(1))}(t,i,o);return n.createElement("g",{className:a},n.createElement("path",wct({},GGe(s,!0),{fill:"Z"===c.slice(-1)?s.fill:"none",stroke:"none",d:c})),l?n.createElement("path",wct({},GGe(s,!0),{fill:"none",d:kct(t,o)})):null,l?n.createElement("path",wct({},GGe(s,!0),{fill:"none",d:kct(i,o)})):null)}var u=kct(t,o);return n.createElement("path",wct({},GGe(s,!0),{fill:"Z"===u.slice(-1)?s.fill:"none",className:a,d:u}))};function Ict(e){return Ict="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Ict(e)}function Gct(){return Gct=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Gct.apply(this,arguments)}function Tct(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Mct(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Tct(Object(n),!0).forEach((function(t){Lct(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Tct(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Oct(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,Vct(r.key),r)}}function Rct(e,t){return Rct=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},Rct(e,t)}function Dct(e){var t=function(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Nct(e);if(t){var i=Nct(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return function(e,t){if(t&&("object"===Ict(t)||"function"===typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(this,n)}}function Nct(e){return Nct=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},Nct(e)}function Lct(e,t,n){return(t=Vct(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Vct(e){var t=function(e,t){if("object"!==Ict(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==Ict(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===Ict(t)?t:String(t)}var Fct=Math.PI/180,zct=1e-5,Bct=function(e){!function(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Rct(e,t)}(s,e);var t,r,i,o=Dct(s);function s(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,s),o.apply(this,arguments)}return t=s,r=[{key:"getTickLineCoord",value:function(e){var t=this.props,n=t.cx,r=t.cy,i=t.radius,o=t.orientation,s=t.tickSize||8,a=dWe(n,r,i,e.coordinate),l=dWe(n,r,i+("inner"===o?-1:1)*s,e.coordinate);return{x1:a.x,y1:a.y,x2:l.x,y2:l.y}}},{key:"getTickTextAnchor",value:function(e){var t=this.props.orientation,n=Math.cos(-e.coordinate*Fct);return n>zct?"outer"===t?"start":"end":n<-zct?"outer"===t?"end":"start":"middle"}},{key:"renderAxisLine",value:function(){var e=this.props,t=e.cx,r=e.cy,i=e.radius,o=e.axisLine,s=e.axisLineType,a=Mct(Mct({},GGe(this.props,!1)),{},{fill:"none"},GGe(o,!1));if("circle"===s)return n.createElement(sDe,Gct({className:"recharts-polar-angle-axis-line"},a,{cx:t,cy:r,r:i}));var l=this.props.ticks.map((function(e){return dWe(t,r,i,e.coordinate)}));return n.createElement(jct,Gct({className:"recharts-polar-angle-axis-line"},a,{points:l}))}},{key:"renderTicks",value:function(){var e=this,t=this.props,r=t.ticks,i=t.tick,o=t.tickLine,a=t.tickFormatter,l=t.stroke,c=GGe(this.props,!1),u=GGe(i,!1),d=Mct(Mct({},c),{},{fill:"none"},GGe(o,!1)),h=r.map((function(t,r){var h=e.getTickLineCoord(t),p=Mct(Mct(Mct({textAnchor:e.getTickTextAnchor(t)},c),{},{stroke:"none",fill:l},u),{},{index:r,payload:t,x:h.x2,y:h.y2});return n.createElement(BGe,Gct({className:"recharts-polar-angle-axis-tick",key:"tick-".concat(t.coordinate)},mGe(e.props,t,r)),o&&n.createElement("line",Gct({className:"recharts-polar-angle-axis-tick-line"},d,h)),i&&s.renderTickItem(i,p,a?a(t.value,r):t.value))}));return n.createElement(BGe,{className:"recharts-polar-angle-axis-ticks"},h)}},{key:"render",value:function(){var e=this.props,t=e.ticks,r=e.radius,i=e.axisLine;return r<=0||!t||!t.length?null:n.createElement(BGe,{className:"recharts-polar-angle-axis"},i&&this.renderAxisLine(),this.renderTicks())}}],i=[{key:"renderTickItem",value:function(e,t,r){return n.isValidElement(e)?n.cloneElement(e,t):GIe()(e)?e(t):n.createElement(hNe,Gct({},t,{className:"recharts-polar-angle-axis-tick-value"}),r)}}],r&&Oct(t.prototype,r),i&&Oct(t,i),Object.defineProperty(t,"prototype",{writable:!1}),s}(n.PureComponent);Lct(Bct,"displayName","PolarAngleAxis"),Lct(Bct,"axisType","angleAxis"),Lct(Bct,"defaultProps",{type:"category",angleAxisId:0,scale:"auto",cx:0,cy:0,orientation:"outer",axisLine:!0,tickLine:!0,tickSize:8,tick:!0,hide:!1,allowDuplicatedCategory:!0});var Uct=__webpack_require__(460),Wct=__webpack_require__.n(Uct),Hct=__webpack_require__(11832),qct=__webpack_require__.n(Hct),Xct=["cx","cy","angle","ticks","axisLine"],Yct=["ticks","tick","angle","tickFormatter","stroke"];function Kct(e){return Kct="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Kct(e)}function Zct(){return Zct=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Zct.apply(this,arguments)}function $ct(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Jct(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?$ct(Object(n),!0).forEach((function(t){iut(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):$ct(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Qct(e,t){if(null==e)return{};var n,r,i=function(e,t){if(null==e)return{};var n,r,i={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(i[n]=e[n]);return i}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function eut(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,out(r.key),r)}}function tut(e,t){return tut=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},tut(e,t)}function nut(e){var t=function(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=rut(e);if(t){var i=rut(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return function(e,t){if(t&&("object"===Kct(t)||"function"===typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(this,n)}}function rut(e){return rut=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},rut(e)}function iut(e,t,n){return(t=out(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function out(e){var t=function(e,t){if("object"!==Kct(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==Kct(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===Kct(t)?t:String(t)}var sut,aut=function(e){!function(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&tut(e,t)}(s,e);var t,r,i,o=nut(s);function s(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,s),o.apply(this,arguments)}return t=s,r=[{key:"getTickValueCoord",value:function(e){var t=e.coordinate,n=this.props,r=n.angle,i=n.cx,o=n.cy;return dWe(i,o,t,r)}},{key:"getTickTextAnchor",value:function(){var e;switch(this.props.orientation){case"left":e="end";break;case"right":e="start";break;default:e="middle"}return e}},{key:"getViewBox",value:function(){var e=this.props,t=e.cx,n=e.cy,r=e.angle,i=e.ticks,o=Wct()(i,(function(e){return e.coordinate||0}));return{cx:t,cy:n,startAngle:r,endAngle:r,innerRadius:qct()(i,(function(e){return e.coordinate||0})).coordinate||0,outerRadius:o.coordinate||0}}},{key:"renderAxisLine",value:function(){var e=this.props,t=e.cx,r=e.cy,i=e.angle,o=e.ticks,s=e.axisLine,a=Qct(e,Xct),l=o.reduce((function(e,t){return[Math.min(e[0],t.coordinate),Math.max(e[1],t.coordinate)]}),[1/0,-1/0]),c=dWe(t,r,l[0],i),u=dWe(t,r,l[1],i),d=Jct(Jct(Jct({},GGe(a,!1)),{},{fill:"none"},GGe(s,!1)),{},{x1:c.x,y1:c.y,x2:u.x,y2:u.y});return n.createElement("line",Zct({className:"recharts-polar-radius-axis-line"},d))}},{key:"renderTicks",value:function(){var e=this,t=this.props,r=t.ticks,i=t.tick,o=t.angle,a=t.tickFormatter,l=t.stroke,c=Qct(t,Yct),u=this.getTickTextAnchor(),d=GGe(c,!1),h=GGe(i,!1),p=r.map((function(t,r){var c=e.getTickValueCoord(t),p=Jct(Jct(Jct(Jct({textAnchor:u,transform:"rotate(".concat(90-o,", ").concat(c.x,", ").concat(c.y,")")},d),{},{stroke:"none",fill:l},h),{},{index:r},c),{},{payload:t});return n.createElement(BGe,Zct({className:"recharts-polar-radius-axis-tick",key:"tick-".concat(t.coordinate)},mGe(e.props,t,r)),s.renderTickItem(i,p,a?a(t.value,r):t.value))}));return n.createElement(BGe,{className:"recharts-polar-radius-axis-ticks"},p)}},{key:"render",value:function(){var e=this.props,t=e.ticks,r=e.axisLine,i=e.tick;return t&&t.length?n.createElement(BGe,{className:"recharts-polar-radius-axis"},r&&this.renderAxisLine(),i&&this.renderTicks(),IWe.renderCallByParent(this.props,this.getViewBox())):null}}],i=[{key:"renderTickItem",value:function(e,t,r){return n.isValidElement(e)?n.cloneElement(e,t):GIe()(e)?e(t):n.createElement(hNe,Zct({},t,{className:"recharts-polar-radius-axis-tick-value"}),r)}}],r&&eut(t.prototype,r),i&&eut(t,i),Object.defineProperty(t,"prototype",{writable:!1}),s}(n.PureComponent);function lut(e){return lut="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},lut(e)}function cut(){return cut=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},cut.apply(this,arguments)}function uut(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function dut(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?uut(Object(n),!0).forEach((function(t){yut(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):uut(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function hut(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,vut(r.key),r)}}function put(e,t){return put=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},put(e,t)}function fut(e){var t=function(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=mut(e);if(t){var i=mut(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return function(e,t){if(t&&("object"===lut(t)||"function"===typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return gut(e)}(this,n)}}function gut(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function mut(e){return mut=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},mut(e)}function yut(e,t,n){return(t=vut(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function vut(e){var t=function(e,t){if("object"!==lut(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==lut(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===lut(t)?t:String(t)}iut(aut,"displayName","PolarRadiusAxis"),iut(aut,"axisType","radiusAxis"),iut(aut,"defaultProps",{type:"number",radiusAxisId:0,cx:0,cy:0,angle:0,orientation:"right",stroke:"#ccc",axisLine:!0,tick:!0,tickCount:5,allowDataOverflow:!1,scale:"auto",allowDuplicatedCategory:!0});var _ut=function(e){!function(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&put(e,t)}(s,e);var t,r,i,o=fut(s);function s(e){var t;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,s),yut(gut(t=o.call(this,e)),"pieRef",null),yut(gut(t),"sectorRefs",[]),yut(gut(t),"id",iGe("recharts-pie-")),yut(gut(t),"handleAnimationEnd",(function(){var e=t.props.onAnimationEnd;t.setState({isAnimationFinished:!0}),GIe()(e)&&e()})),yut(gut(t),"handleAnimationStart",(function(){var e=t.props.onAnimationStart;t.setState({isAnimationFinished:!1}),GIe()(e)&&e()})),t.state={isAnimationFinished:!e.isAnimationActive,prevIsAnimationActive:e.isAnimationActive,prevAnimationId:e.animationId,sectorToFocus:0},t}return t=s,r=[{key:"isActiveIndex",value:function(e){var t=this.props.activeIndex;return Array.isArray(t)?-1!==t.indexOf(e):e===t}},{key:"hasActiveIndex",value:function(){var e=this.props.activeIndex;return Array.isArray(e)?0!==e.length:e||0===e}},{key:"renderLabels",value:function(e){if(this.props.isAnimationActive&&!this.state.isAnimationFinished)return null;var t=this.props,r=t.label,i=t.labelLine,o=t.dataKey,a=t.valueKey,l=GGe(this.props,!1),c=GGe(r,!1),u=GGe(i,!1),d=r&&r.offsetRadius||20,h=e.map((function(e,t){var h=(e.startAngle+e.endAngle)/2,p=dWe(e.cx,e.cy,e.outerRadius+d,h),f=dut(dut(dut(dut({},l),e),{},{stroke:"none"},c),{},{index:t,textAnchor:s.getTextAnchor(p.x,e.cx)},p),g=dut(dut(dut(dut({},l),e),{},{fill:"none",stroke:e.fill},u),{},{index:t,points:[dWe(e.cx,e.cy,e.outerRadius,h),p],key:"line"}),m=o;return jIe()(o)&&jIe()(a)?m="value":jIe()(o)&&(m=a),n.createElement(BGe,{key:"label-".concat(e.startAngle,"-").concat(e.endAngle)},i&&s.renderLabelLineItem(i,g),s.renderLabelItem(r,f,fUe(e,m)))}));return n.createElement(BGe,{className:"recharts-pie-labels"},h)}},{key:"renderSectorsStatically",value:function(e){var t=this,r=this.props,i=r.activeShape,o=r.blendStroke,s=r.inactiveShape;return e.map((function(r,a){if(0===(null===r||void 0===r?void 0:r.startAngle)&&0===(null===r||void 0===r?void 0:r.endAngle)&&1!==e.length)return null;var l=t.isActiveIndex(a),c=s&&t.hasActiveIndex()?s:null,u=l?i:c,d=dut(dut({},r),{},{stroke:o?r.fill:r.stroke,tabIndex:-1});return n.createElement(BGe,cut({ref:function(e){e&&!t.sectorRefs.includes(e)&&t.sectorRefs.push(e)},tabIndex:-1,className:"recharts-pie-sector"},mGe(t.props,r,a),{key:"sector-".concat(null===r||void 0===r?void 0:r.startAngle,"-").concat(null===r||void 0===r?void 0:r.endAngle,"-").concat(r.midAngle)}),n.createElement(AHe,cut({option:u,isActive:l,shapeType:"sector"},d)))}))}},{key:"renderSectorsWithAnimation",value:function(){var e=this,t=this.props,r=t.sectors,i=t.isAnimationActive,o=t.animationBegin,s=t.animationDuration,a=t.animationEasing,l=t.animationId,c=this.state,u=c.prevSectors,d=c.prevIsAnimationActive;return n.createElement($Me,{begin:o,duration:s,isActive:i,easing:a,from:{t:0},to:{t:1},key:"pie-".concat(l,"-").concat(d),onAnimationStart:this.handleAnimationStart,onAnimationEnd:this.handleAnimationEnd},(function(t){var i=t.t,o=[],s=(r&&r[0]).startAngle;return r.forEach((function(e,t){var n=u&&u[t],r=t>0?RIe()(e,"paddingAngle",0):0;if(n){var a=aGe(n.endAngle-n.startAngle,e.endAngle-e.startAngle),l=dut(dut({},e),{},{startAngle:s+r,endAngle:s+a(i)+r});o.push(l),s=l.endAngle}else{var c=e.endAngle,d=e.startAngle,h=aGe(0,c-d)(i),p=dut(dut({},e),{},{startAngle:s+r,endAngle:s+h+r});o.push(p),s=p.endAngle}})),n.createElement(BGe,null,e.renderSectorsStatically(o))}))}},{key:"attachKeyboardHandlers",value:function(e){var t=this;e.onkeydown=function(e){if(!e.altKey)switch(e.key){case"ArrowLeft":var n=++t.state.sectorToFocus%t.sectorRefs.length;t.sectorRefs[n].focus(),t.setState({sectorToFocus:n});break;case"ArrowRight":var r=--t.state.sectorToFocus<0?t.sectorRefs.length-1:t.state.sectorToFocus%t.sectorRefs.length;t.sectorRefs[r].focus(),t.setState({sectorToFocus:r});break;case"Escape":t.sectorRefs[t.state.sectorToFocus].blur(),t.setState({sectorToFocus:0})}}}},{key:"renderSectors",value:function(){var e=this.props,t=e.sectors,n=e.isAnimationActive,r=this.state.prevSectors;return!(n&&t&&t.length)||r&&xBe()(r,t)?this.renderSectorsStatically(t):this.renderSectorsWithAnimation()}},{key:"componentDidMount",value:function(){this.pieRef&&this.attachKeyboardHandlers(this.pieRef)}},{key:"render",value:function(){var e=this,t=this.props,r=t.hide,i=t.sectors,o=t.className,s=t.label,a=t.cx,l=t.cy,c=t.innerRadius,u=t.outerRadius,d=t.isAnimationActive,h=this.state.isAnimationFinished;if(r||!i||!i.length||!tGe(a)||!tGe(l)||!tGe(c)||!tGe(u))return null;var p=UIe("recharts-pie",o);return n.createElement(BGe,{tabIndex:this.props.rootTabIndex,className:p,ref:function(t){e.pieRef=t}},this.renderSectors(),s&&this.renderLabels(i),IWe.renderCallByParent(this.props,null,!1),(!d||h)&&KWe.renderCallByParent(this.props,i,!1))}}],i=[{key:"getDerivedStateFromProps",value:function(e,t){return t.prevIsAnimationActive!==e.isAnimationActive?{prevIsAnimationActive:e.isAnimationActive,prevAnimationId:e.animationId,curSectors:e.sectors,prevSectors:[],isAnimationFinished:!0}:e.isAnimationActive&&e.animationId!==t.prevAnimationId?{prevAnimationId:e.animationId,curSectors:e.sectors,prevSectors:t.curSectors,isAnimationFinished:!0}:e.sectors!==t.curSectors?{curSectors:e.sectors,isAnimationFinished:!0}:null}},{key:"getTextAnchor",value:function(e,t){return e>t?"start":e<t?"end":"middle"}},{key:"renderLabelLineItem",value:function(e,t){return n.isValidElement(e)?n.cloneElement(e,t):GIe()(e)?e(t):n.createElement(zXe,cut({},t,{type:"linear",className:"recharts-pie-label-line"}))}},{key:"renderLabelItem",value:function(e,t,r){if(n.isValidElement(e))return n.cloneElement(e,t);var i=r;return GIe()(e)&&(i=e(t),n.isValidElement(i))?i:n.createElement(hNe,cut({},t,{alignmentBaseline:"middle",className:"recharts-pie-label-text"}),i)}}],r&&hut(t.prototype,r),i&&hut(t,i),Object.defineProperty(t,"prototype",{writable:!1}),s}(n.PureComponent);sut=_ut,yut(_ut,"displayName","Pie"),yut(_ut,"defaultProps",{stroke:"#fff",fill:"#808080",legendType:"rect",cx:"50%",cy:"50%",startAngle:0,endAngle:360,innerRadius:0,outerRadius:"80%",paddingAngle:0,labelLine:!0,hide:!1,minAngle:0,isAnimationActive:!mOe.isSsr,animationBegin:400,animationDuration:1500,animationEasing:"ease",nameKey:"name",blendStroke:!1,rootTabIndex:0}),yut(_ut,"parseDeltaAngle",(function(e,t){return QIe(t-e)*Math.min(Math.abs(t-e),360)})),yut(_ut,"getRealPieData",(function(e){var t=e.props,n=t.data,r=t.children,i=GGe(e.props,!1),o=CGe(r,RWe);return n&&n.length?n.map((function(e,t){return dut(dut(dut({payload:e},i),e),o&&o[t]&&o[t].props)})):o&&o.length?o.map((function(e){return dut(dut({},i),e.props)})):[]})),yut(_ut,"parseCoordinateOfPie",(function(e,t){var n=t.top,r=t.left,i=t.width,o=t.height,s=hWe(i,o);return{cx:r+oGe(e.props.cx,i,i/2),cy:n+oGe(e.props.cy,o,o/2),innerRadius:oGe(e.props.innerRadius,s,0),outerRadius:oGe(e.props.outerRadius,s,.8*s),maxRadius:e.props.maxRadius||Math.sqrt(i*i+o*o)/2}})),yut(_ut,"getComposedData",(function(e){var t=e.item,n=e.offset,r=sut.getRealPieData(t);if(!r||!r.length)return null;var i=t.props,o=i.cornerRadius,s=i.startAngle,a=i.endAngle,l=i.paddingAngle,c=i.dataKey,u=i.nameKey,d=i.valueKey,h=i.tooltipType,p=Math.abs(t.props.minAngle),f=sut.parseCoordinateOfPie(t,n),g=sut.parseDeltaAngle(s,a),m=Math.abs(g),y=c;jIe()(c)&&jIe()(d)?(GOe(!1,'Use "dataKey" to specify the value of pie,\n      the props "valueKey" will be deprecated in 1.1.0'),y="value"):jIe()(c)&&(GOe(!1,'Use "dataKey" to specify the value of pie,\n      the props "valueKey" will be deprecated in 1.1.0'),y=d);var v,_,b=r.filter((function(e){return 0!==fUe(e,y,0)})).length,x=m-b*p-(m>=360?b:b-1)*l,S=r.reduce((function(e,t){var n=fUe(t,y,0);return e+(tGe(n)?n:0)}),0);S>0&&(v=r.map((function(e,t){var n,r=fUe(e,y,0),i=fUe(e,u,t),a=(tGe(r)?r:0)/S,c=(n=t?_.endAngle+QIe(g)*l*(0!==r?1:0):s)+QIe(g)*((0!==r?p:0)+a*x),d=(n+c)/2,m=(f.innerRadius+f.outerRadius)/2,v=[{name:i,value:r,payload:e,dataKey:y,type:h}],b=dWe(f.cx,f.cy,m,d);return _=dut(dut(dut({percent:a,cornerRadius:o,name:i,tooltipPayload:v,midAngle:d,middleRadius:m,tooltipPosition:b},e),f),{},{value:fUe(e,y),startAngle:n,endAngle:c,payload:e,paddingAngle:QIe(g)*l})})));return dut(dut({},f),{},{sectors:v,data:r})}));var but=OYe({chartName:"PieChart",GraphicalChild:_ut,validateTooltipEventTypes:["item"],defaultTooltipEventType:"item",legendContent:"children",axisComponents:[{axisType:"angleAxis",AxisComp:Bct},{axisType:"radiusAxis",AxisComp:aut}],formatAxisMap:function(e,t,n,r,i){var o=e.width,s=e.height,a=e.startAngle,l=e.endAngle,c=oGe(e.cx,o,o/2),u=oGe(e.cy,s,s/2),d=hWe(o,s,n),h=oGe(e.innerRadius,d,0),p=oGe(e.outerRadius,d,.8*d);return Object.keys(t).reduce((function(e,n){var o,s=t[n],d=s.domain,f=s.reversed;if(jIe()(s.range))"angleAxis"===r?o=[a,l]:"radiusAxis"===r&&(o=[h,p]),f&&(o=[o[1],o[0]]);else{var g=aWe(o=s.range,2);a=g[0],l=g[1]}var m=EUe(s,i),y=m.realScaleType,v=m.scale;v.domain(d).range(o),CUe(v);var _=jUe(v,oWe(oWe({},s),{},{realScaleType:y})),b=oWe(oWe(oWe({},s),_),{},{range:o,radius:p,realScaleType:y,scale:v,cx:c,cy:u,innerRadius:h,outerRadius:p,startAngle:a,endAngle:l});return oWe(oWe({},e),{},sWe({},n,b))}),{})},defaultProps:{layout:"centric",startAngle:0,endAngle:360,cx:"50%",cy:"50%",innerRadius:0,outerRadius:"80%"}});const xut=e=>{const[t,r]=(0,n.useState)([]),[i,o]=(0,n.useState)([]),[s,a]=(0,n.useState)([]);return(0,n.useEffect)((()=>{let t=[];if(e.inspections.length){const n=e.subAssets.map((e=>e.type)).filter(((e,t,n)=>n.indexOf(e)===t));o(n);const r=s.length?e.subAssets.filter((e=>s.includes(e.type))):e.subAssets;t=pct(r,e.inspections)}const n=[{name:"> 6 months",value:t.filter((e=>">6"===e)).length,color:"darkblue"},{name:"6 to 3 months",value:t.filter((e=>"3-6"===e)).length,color:"#00A6FF"},{name:"< 3 months",value:t.filter((e=>"<3"===e)).length,color:"green"}];r(n)}),[e.inspections,s]),(0,Ae.jsxs)(Ae.Fragment,{children:[(0,Ae.jsx)(lct,{title:"Subassets status",config:[{id:"type",label:"Type(s)",data:i,action:e=>a(e)}]}),(0,Ae.jsx)("div",{style:{fontSize:"0.8rem",color:"grey",marginLeft:10},children:"Last inspection time:"}),!e.loading&&(0,Ae.jsx)(fKe,{width:"100%",height:"100%",children:(0,Ae.jsxs)(but,{height:350,children:[(0,Ae.jsx)(_ut,{data:t,innerRadius:60,outerRadius:80,paddingAngle:2,cy:"42%",fill:"#8884d8",dataKey:"value",children:t.map(((e,t)=>(0,Ae.jsx)(RWe,{fill:e.color},t)))}),(0,Ae.jsx)(IOe,{}),(0,Ae.jsx)(iDe,{verticalAlign:"top"})]})}),e.loading&&(0,Ae.jsx)($y,{topMargin:"15%"})]})},Sut=Zo()((e=>({gridRow:{[e.breakpoints.up("lg")]:{height:"50%"},[e.breakpoints.down("lg")]:{height:"50rem"}},gridItem:{[e.breakpoints.up("lg")]:{height:"100%"},[e.breakpoints.down("lg")]:{height:"50%"}}}))),wut=()=>{const{classes:e}=Sut(),t=b(If),r=b(gg),i=b(mg),o=b(Tf),s=b(vg),[a,l]=(0,n.useState)([]);return(0,n.useEffect)((()=>{o&&OT(),s&&DV()}),[]),(0,n.useEffect)((()=>{if(r.length){const e=r.map((e=>e.type)).filter(((e,t,n)=>n.indexOf(e)===t));l(e)}}),[r]),(0,Ae.jsx)(PF,{pageTitle:"Dashboard",left:(0,Ae.jsx)(CF,{title:"Dashboard"}),center:(0,Ae.jsx)(jF,{responsive:!0}),size:{left:Wy()?12:4,center:Wy()?12:4,right:Wy()?0:4},children:(0,Ae.jsxs)(ws,{container:!0,direction:"column",wrap:"nowrap",height:"100%",children:[(0,Ae.jsxs)(ws,{item:!0,container:!0,className:e.gridRow,children:[(0,Ae.jsx)(ws,{item:!0,xs:12,lg:4,padding:"0.5rem",className:e.gridItem,children:(0,Ae.jsx)(hj,{style:{height:"100%"},children:(0,Ae.jsx)(_ct,{subAssets:t,inspections:r,types:a,loading:o})})}),(0,Ae.jsx)(ws,{item:!0,xs:12,lg:8,padding:"0.5rem",className:e.gridItem,children:(0,Ae.jsx)(hj,{style:{height:"100%"},children:(0,Ae.jsx)(cct,{defects:i,types:a,loading:s})})})]}),(0,Ae.jsxs)(ws,{item:!0,container:!0,className:e.gridRow,children:[(0,Ae.jsx)(ws,{item:!0,xs:12,lg:9,padding:"0.5rem",className:e.gridItem,children:(0,Ae.jsx)(hj,{style:{height:"100%"},children:(0,Ae.jsx)(xct,{inspections:r,types:a})})}),(0,Ae.jsx)(ws,{item:!0,xs:12,lg:3,padding:"0.5rem",className:e.gridItem,children:(0,Ae.jsx)(hj,{style:{height:"100%"},children:(0,Ae.jsx)(xut,{subAssets:t,loading:o,inspections:r.filter((e=>"planned"!==e.status))})})})]})]})})},Eut=()=>{var e;const{userProfile:t,isLoading:n}=Pfe(),r=[fB.ANNOTATOR,fB.EXPERT].includes(null!==(e=null===t||void 0===t?void 0:t.role)&&void 0!==e?e:fB.OWNER);if(n)return(0,Ae.jsx)(Ae.Fragment,{});const i=()=>Wy()?(0,Ae.jsx)(sct,{}):(0,Ae.jsx)(wut,{});return r?(0,Ae.jsx)(PEe,{}):(0,Ae.jsx)(i,{})},Put=Zo()((()=>({root:{printColorAdjust:"exact",WebkitPrintColorAdjust:"exact",backgroundColor:"white","@media print":{boxShadow:"none",pageBreakBefore:"always",pageBreakInside:"avoid",pageBreakAfter:"avoid"},"& li":{padding:"0.25rem 0","& a":{fontSize:"18px"}}}}))),Cut=e=>{const{classes:t}=Put(),{children:n}=e;return(0,Ae.jsx)(ws,{container:!0,direction:"column",wrap:"nowrap",position:"relative",className:t.root,children:n})},Aut=__webpack_require__.p+"static/media/solar-pdf-background.b44b2721861bbc18e82b.png";__webpack_require__(7076);Object.create(null);const kut={};function jut(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];"string"===typeof t[0]&&kut[t[0]]||("string"===typeof t[0]&&(kut[t[0]]=new Date),function(){if(console&&console.warn){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];"string"===typeof t[0]&&(t[0]="react-i18next:: ".concat(t[0])),console.warn(...t)}}(...t))}const Iut=(e,t)=>()=>{if(e.isInitialized)t();else{const n=()=>{setTimeout((()=>{e.off("initialized",n)}),0),t()};e.on("initialized",n)}};function Gut(e,t,n){e.loadNamespaces(t,Iut(e,n))}function Tut(e,t,n,r){"string"===typeof n&&(n=[n]),n.forEach((t=>{e.options.ns.indexOf(t)<0&&e.options.ns.push(t)})),e.loadLanguages(t,Iut(e,r))}const Mut=/&(?:amp|#38|lt|#60|gt|#62|apos|#39|quot|#34|nbsp|#160|copy|#169|reg|#174|hellip|#8230|#x2F|#47);/g,Out={"&amp;":"&","&#38;":"&","&lt;":"<","&#60;":"<","&gt;":">","&#62;":">","&apos;":"'","&#39;":"'","&quot;":'"',"&#34;":'"',"&nbsp;":" ","&#160;":" ","&copy;":"\xa9","&#169;":"\xa9","&reg;":"\xae","&#174;":"\xae","&hellip;":"\u2026","&#8230;":"\u2026","&#x2F;":"/","&#47;":"/"},Rut=e=>Out[e];let Dut,Nut={bindI18n:"languageChanged",bindI18nStore:"",transEmptyNodeValue:"",transSupportBasicHtmlNodes:!0,transWrapTextNodes:"",transKeepBasicHtmlNodesFor:["br","strong","i","p"],useSuspense:!0,unescape:e=>e.replace(Mut,Rut)};const Lut={type:"3rdParty",init(e){!function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};Nut={...Nut,...e}}(e.options.react),function(e){Dut=e}(e)}},Vut=(0,n.createContext)();class Fut{constructor(){this.usedNamespaces={}}addUsedNamespaces(e){e.forEach((e=>{this.usedNamespaces[e]||(this.usedNamespaces[e]=!0)}))}getUsedNamespaces(){return Object.keys(this.usedNamespaces)}}function zut(e,t,n,r){return e.getFixedT(t,n,r)}function But(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const{i18n:r}=t,{i18n:i,defaultNS:o}=(0,n.useContext)(Vut)||{},s=r||i||Dut;if(s&&!s.reportNamespaces&&(s.reportNamespaces=new Fut),!s){jut("You will need to pass in an i18next instance by using initReactI18next");const e=(e,t)=>"string"===typeof t?t:t&&"object"===typeof t&&"string"===typeof t.defaultValue?t.defaultValue:Array.isArray(e)?e[e.length-1]:e,t=[e,{},!1];return t.t=e,t.i18n={},t.ready=!1,t}s.options.react&&void 0!==s.options.react.wait&&jut("It seems you are still using the old wait option, you may migrate to the new useSuspense behaviour.");const a={...Nut,...s.options.react,...t},{useSuspense:l,keyPrefix:c}=a;let u=e||o||s.options&&s.options.defaultNS;u="string"===typeof u?[u]:u||["translation"],s.reportNamespaces.addUsedNamespaces&&s.reportNamespaces.addUsedNamespaces(u);const d=(s.isInitialized||s.initializedStoreOnce)&&u.every((e=>function(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return t.languages&&t.languages.length?void 0!==t.options.ignoreJSONStructure?t.hasLoadedNamespace(e,{lng:n.lng,precheck:(t,r)=>{if(n.bindI18n&&n.bindI18n.indexOf("languageChanging")>-1&&t.services.backendConnector.backend&&t.isLanguageChangingTo&&!r(t.isLanguageChangingTo,e))return!1}}):function(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};const r=t.languages[0],i=!!t.options&&t.options.fallbackLng,o=t.languages[t.languages.length-1];if("cimode"===r.toLowerCase())return!0;const s=(e,n)=>{const r=t.services.backendConnector.state["".concat(e,"|").concat(n)];return-1===r||2===r};return!(n.bindI18n&&n.bindI18n.indexOf("languageChanging")>-1&&t.services.backendConnector.backend&&t.isLanguageChangingTo&&!s(t.isLanguageChangingTo,e))&&(!!t.hasResourceBundle(r,e)||!(t.services.backendConnector.backend&&(!t.options.resources||t.options.partialBundledLanguages))||!(!s(r,e)||i&&!s(o,e)))}(e,t,n):(jut("i18n.languages were undefined or empty",t.languages),!0)}(e,s,a))),h=function(e,t,r,i){return(0,n.useCallback)(zut(e,t,r,i),[e,t,r,i])}(s,t.lng||null,"fallback"===a.nsMode?u:u[0],c),p=()=>h,f=()=>zut(s,t.lng||null,"fallback"===a.nsMode?u:u[0],c),[g,m]=(0,n.useState)(p);let y=u.join();t.lng&&(y="".concat(t.lng).concat(y));const v=((e,t)=>{const r=(0,n.useRef)();return(0,n.useEffect)((()=>{r.current=t?r.current:e}),[e,t]),r.current})(y),_=(0,n.useRef)(!0);(0,n.useEffect)((()=>{const{bindI18n:e,bindI18nStore:n}=a;function r(){_.current&&m(f)}return _.current=!0,d||l||(t.lng?Tut(s,t.lng,u,(()=>{_.current&&m(f)})):Gut(s,u,(()=>{_.current&&m(f)}))),d&&v&&v!==y&&_.current&&m(f),e&&s&&s.on(e,r),n&&s&&s.store.on(n,r),()=>{_.current=!1,e&&s&&e.split(" ").forEach((e=>s.off(e,r))),n&&s&&n.split(" ").forEach((e=>s.store.off(e,r)))}}),[s,y]),(0,n.useEffect)((()=>{_.current&&d&&m(p)}),[s,c,d]);const b=[g,s,d];if(b.t=g,b.i18n=s,b.ready=d,d)return b;if(!d&&!l)return b;throw new Promise((e=>{t.lng?Tut(s,t.lng,u,(()=>e())):Gut(s,u,(()=>e()))}))}const Uut=()=>{const{t:e,i18n:t}=But("solarPdf");return{t:e,language:t.language}};let Wut=function(e){return e.SKYVISOR="skyvisor",e.GMAPS="gmaps",e}({}),Hut=function(e){return e.WIDTH="8.27in",e.HEIGHT="11.7in",e}({});const qut="4px";let Xut=function(e){return e.TABLE_OF_CONTENTS="table-of-contents",e.ASSET_INFOS="asset-infos",e.METHODOLOGY="methodology",e.RESULTS="results",e.INSPECTIONS_DEFECTS_ANALYSIS="inspections-defects-analysis",e}({});const Yut={[Xut.TABLE_OF_CONTENTS]:1,[Xut.ASSET_INFOS]:2,[Xut.METHODOLOGY]:3,[Xut.RESULTS]:5,[Xut.INSPECTIONS_DEFECTS_ANALYSIS]:7};let Kut=function(e){return e["table-of-contents"]="table_of_contents_title",e["asset-infos"]="asset_infos_title",e.methodology="methodology_title",e.results="results_title",e["inspections-defects-analysis"]="defects_analysis_title",e}({}),Zut=function(e){return e[e["asset-infos"]=1]="asset-infos",e[e.methodology=2]="methodology",e[e.results=3]="results",e[e["inspections-defects-analysis"]=4]="inspections-defects-analysis",e}({});const $ut="0.6rem",Jut=(0,n.createContext)({isCampaign:!1,campaignName:void 0,inspections:[],asset:{name:"",id:""},totalPower:0,subAssets:[],inspectionDates:[],logoUrl:"",defectsMap:new Map,cropsUrlMap:new Map,defectToAnnotationsMap:new Map,mobileDataMap:new Map,getPhotoGSDData:()=>{},getPanelsInfosForInspection:()=>{},MapOverlaysComp:()=>(0,Ae.jsx)(Ae.Fragment,{}),subAssetsMapProvidersMap:new Map,pagination:{tableOfContentsMap:new Map,setTableOfContentsMap:()=>{},totalPages:0,increment:()=>{},incrementSectionPages:()=>{},sectionPages:Yut,setSectionPages:()=>{}},getMobileDataPerInspection:()=>{},getRTKStatusPerInspection:()=>({inspectionRtkStatus:null,percentage:null}),withDetails:!1}),Qut=e=>{let{campaignText:t,assetText:n,inspectionDates:r}=e;const{t:i}=Uut();return(0,Ae.jsxs)(ws,{gap:"1rem",style:{position:"absolute",bottom:200,left:0,width:"100%",height:"100%",display:"flex",flexDirection:"column",justifyContent:"flex-end",alignItems:"flex-start",padding:"4rem"},children:[(0,Ae.jsx)(vu,{fontWeight:"bold",fontSize:65,lineHeight:.9,color:"white",children:i("cover_report_title")}),(0,Ae.jsxs)(ws,{item:!0,children:[t&&(0,Ae.jsx)(vu,{color:"white",fontSize:28,fontWeight:"bold",children:t}),(0,Ae.jsx)(vu,{color:"white",fontSize:28,children:n}),(0,Ae.jsx)(vu,{color:"white",fontSize:28,children:r})]})]})},edt=()=>{const{asset:e,subAssets:t,inspectionDates:r,campaignName:i}=(0,n.useContext)(Jut),o=t.map((e=>e.name)).join(", ");return(0,Ae.jsxs)("div",{style:{position:"relative",width:"100%"},children:[(0,Ae.jsx)("img",{src:Aut,alt:"background",style:{width:"100%",height:"100%",objectFit:"cover",objectPosition:"top center"}}),(0,Ae.jsx)("div",{style:{position:"absolute",top:0,left:0,width:"100%",height:"100%",backgroundColor:nU("#0077B6",.6)}}),(0,Ae.jsx)(Qut,{campaignText:i,assetText:"".concat(e.name," - ").concat(o),inspectionDates:r.join(", ")})]})};const tdt=__webpack_require__.p+"static/media/logo-skyvisor-solar.ffa778029647b2cf98b92fd87d5f2bd6.svg",ndt=()=>{const e="160px",t="calc(".concat(e," * (2/3))"),{t:r}=Uut(),{logoUrl:i}=(0,n.useContext)(Jut);return(0,Ae.jsxs)(ws,{container:!0,direction:"column",paddingX:"4rem",paddingY:"1rem",children:[(0,Ae.jsxs)(vj,{direction:"row",justifyContent:"space-between",paddingRight:"4.2rem",children:[i?(0,Ae.jsx)(vu,{fontWeight:"bold",color:"black",children:r("cover_footer_generated_by")}):(0,Ae.jsx)("div",{}),(0,Ae.jsx)(vu,{fontWeight:"bold",color:"black",children:r("cover_footer_powered_by")})]}),(0,Ae.jsxs)(ws,{item:!0,container:!0,justifyContent:"space-between",alignItems:"center",height:"80px",children:[i?(0,Ae.jsx)(wp,{component:"img",src:i,alt:"logo",sx:{maxWidth:e,maxHeight:t,width:"auto",height:"auto"}}):(0,Ae.jsx)("div",{style:{width:e,height:t}}),(0,Ae.jsx)(wp,{component:"img",src:tdt,alt:"skyvisor-solar-logo",sx:{width:e,height:"auto"}})]}),(0,Ae.jsxs)(vj,{direction:"row",gap:"0.5rem",alignItems:"center",marginTop:"40px",children:[(0,Ae.jsx)(vu,{fontStyle:"italic",color:"#666",fontSize:"0.75rem",children:r("cover_footer_before_printing")}),(0,Ae.jsx)(ent.c,{color:"success",sx:{fontSize:"1.25rem"}})]})]})},rdt=()=>(0,Ae.jsxs)(ws,{container:!0,direction:"column",height:Hut.HEIGHT,width:Hut.WIDTH,wrap:"nowrap",children:[(0,Ae.jsx)(ws,{item:!0,overflow:"hidden",height:"100%",children:(0,Ae.jsx)(edt,{})}),(0,Ae.jsx)(ws,{item:!0,children:(0,Ae.jsx)(ndt,{})})]}),idt=()=>{const{asset:e,subAssets:t,inspectionDates:r,campaignName:i}=(0,n.useContext)(Jut),o=t.map((e=>e.name)).join(", ");return(0,Ae.jsxs)(wp,{width:"100%",textAlign:"center",display:"flex",flexDirection:"column",children:[(0,Ae.jsxs)(vu,{color:"black",children:[i?"".concat(i," - "):"","".concat(e.name," - ").concat(o)]}),(0,Ae.jsx)(vu,{color:"black",children:r.join(", ")})]})},odt=e=>{let{pageNumber:t,isLastPage:r=!1}=e;const{logoUrl:i,pagination:o}=(0,n.useContext)(Jut),s="120px",a="calc(".concat(s," * (1/2))");return(0,Ae.jsxs)(vj,{direction:"row",justifyContent:"space-between",alignItems:"center",padding:"1rem",position:"absolute",bottom:0,left:0,width:"100%",style:{zIndex:1e3,backgroundColor:"white"},children:[i?(0,Ae.jsx)("img",{src:i,alt:"logo",style:{maxWidth:s,maxHeight:a,width:"auto",height:"auto"}}):(0,Ae.jsx)("div",{style:{width:s,height:a}}),(0,Ae.jsxs)(vu,{color:Gp,paddingTop:"1rem",children:[r?o.totalPages:t,"/",o.totalPages]}),(0,Ae.jsx)("img",{src:tdt,width:s})]})},sdt=e=>{const{children:t,id:r,style:i,pageNumber:o,withoutHeader:s=!1,withoutFooter:a=!1,isLastPage:l=!1}=e,{pagination:c}=(0,n.useContext)(Jut);return(0,n.useEffect)((()=>{a||c.increment()}),[]),(0,Ae.jsxs)(ws,{width:Hut.WIDTH,height:Hut.HEIGHT,container:!0,direction:"column",wrap:"nowrap",justifyContent:"space-between",id:r,paddingX:"2rem",paddingTop:"2rem",style:{fontFamily:"Roboto, sans-serif",...i},overflow:"hidden",position:"relative",children:[(0,Ae.jsx)(ws,{item:!0,children:!s&&(0,Ae.jsx)(idt,{})}),(0,Ae.jsx)(ws,{item:!0,flex:1,children:t}),(0,Ae.jsx)(ws,{item:!0,children:!a&&(o||l)&&(0,Ae.jsx)(odt,{pageNumber:o,isLastPage:l})})]})},adt=e=>{let{title:t,titleIndex:n}=e;return(0,Ae.jsx)(wp,{width:"100%",marginLeft:"0.5rem",children:(0,Ae.jsxs)(vu,{fontWeight:"bold",fontSize:"1.5rem",children:[n,". ",t.toUpperCase()]})})},ldt=e=>{const{pagination:{setTableOfContentsMap:t}}=(0,n.useContext)(Jut),{subTitle:r,titleIndex:i,subTitleIndex:o,subSubTitleIndex:s,pageNumber:a,style:l,addToTableOfContents:c=!0,fontSize:u="1rem"}=e,{t:d}=Uut(),h=s?"".concat(i,".").concat(o,".").concat(s):"".concat(i,".").concat(o);return(0,n.useEffect)((()=>{c&&t((e=>{const t=new Map(e),n=t.get(i)||new Map;return n.set(h,[a.toString(),r]),t.set(i,n),t}))}),[a,h,t,s,r,o,d,i,c]),(0,Ae.jsx)(wp,{paddingY:"1rem",id:h,style:l,children:(0,Ae.jsxs)(vu,{fontWeight:600,fontSize:u,children:[i,".",o,".",s," ",d(r)]})})},cdt=e=>{const{paragraphs:t}=e;return(0,Ae.jsx)(vj,{width:"100%",children:t.map(((e,t)=>(0,Ae.jsx)(vu,{color:"black",fontSize:"0.9rem",paragraph:!0,textAlign:"justify",children:e},t)))})},udt=__webpack_require__.p+"static/media/methodology-picture-1.9d5c9bcae978f2e12870.png",ddt=__webpack_require__.p+"static/media/methodology-picture-2.496af7eac17c60fb52a9.png",hdt=e=>{let{pageNumber:t}=e;const{t:n}=Uut();return(0,Ae.jsx)(sdt,{pageNumber:t,id:Xut.METHODOLOGY,children:(0,Ae.jsxs)(ws,{container:!0,direction:"column",height:"100%",wrap:"nowrap",children:[(0,Ae.jsxs)(ws,{item:!0,children:[(0,Ae.jsx)(adt,{title:n("methodology_title"),titleIndex:2}),(0,Ae.jsx)(ldt,{subTitle:n("methodology_all_in_one"),titleIndex:2,subTitleIndex:1,pageNumber:t,style:{padding:"0.5rem 0"}}),(0,Ae.jsx)(cdt,{paragraphs:[n("methodology_section_2.1")]})]}),(0,Ae.jsx)(ws,{item:!0,children:(0,Ae.jsx)(wp,{marginLeft:"2.5rem",children:(0,Ae.jsx)("img",{src:udt,alt:"Methodology 1",width:"100%",height:"100%"})})}),(0,Ae.jsx)(ws,{item:!0,children:(0,Ae.jsx)(ldt,{subTitle:n("methodology_automatic_data_acquisition"),titleIndex:2,subTitleIndex:2,pageNumber:t,style:{padding:"0 0 0.5rem 0"}})}),(0,Ae.jsxs)(ws,{item:!0,children:[(0,Ae.jsx)(cdt,{paragraphs:[n("methodology_section_2.2_1"),n("methodology_section_2.2_2")]}),(0,Ae.jsx)(ldt,{subTitle:n("methodology_data_analysis"),titleIndex:2,subTitleIndex:3,pageNumber:t,style:{padding:"0.5rem 0"}}),(0,Ae.jsx)(cdt,{paragraphs:[n("methodology_section_2.3_1"),n("methodology_section_2.3_2")]})]}),(0,Ae.jsx)(ws,{item:!0,children:(0,Ae.jsx)(wp,{marginLeft:"2.5rem",height:"100%",children:(0,Ae.jsx)("img",{src:ddt,alt:"Methodology 2",width:"100%",height:"100%"})})})]})})},pdt=e=>{let{rows:t,headers:n,customBoxStyle:r,customHeaderStyle:i,customRowStyle:o=[],firstColInBold:s,widthRepartition:a}=e;const l=Math.max(...t.map((e=>e.length))),c=a?a.reduce(((e,t,n)=>({...e,["& th:nth-of-type(".concat(n+1,"), & td:nth-of-type(").concat(n+1,")")]:{width:"".concat(t,"%")}})),{}):{"& th, & td":{width:"calc(100% / ".concat(l,")")}};return(0,Ae.jsx)(wp,{border:"1px solid ".concat(Gp),borderRadius:qut,width:"100%",overflow:"hidden",sx:r,children:(0,Ae.jsxs)(BA,{children:[n&&(0,Ae.jsx)(Mj,{sx:{backgroundColor:"#ADADAD",tableLayout:"fixed",whiteSpace:"nowrap",...i,...c},children:(0,Ae.jsx)(Wk,{children:n.map(((e,t)=>(0,Ae.jsx)(tk,{size:"small",children:(0,Ae.jsx)(vu,{color:"white",fontWeight:"bold",children:e})},"".concat(e,"-").concat(t))))})}),(0,Ae.jsx)(KA,{sx:{...c},children:t.map(((e,t)=>{var n;return(0,Ae.jsx)(Wk,{sx:{"& td":{borderBottom:"1px solid ".concat(Gp),paddingY:".5rem"},"&:last-child td":{border:0},...null===(n=o.find((e=>e.index===t)))||void 0===n?void 0:n.properties},children:Array.from({length:l}).map(((t,n)=>{var r;return(0,Ae.jsx)(tk,{size:"small",sx:{fontWeight:s&&0===n?"bold":""},children:null!==(r=e[n])&&void 0!==r?r:""},"".concat(e.name,"-").concat(n))}))},t)}))})]})})},fdt=e=>{let{headers:t,rows:n}=e;const r={borderBottom:"5px solid white"},i={"& td, & th":{color:"white",...r},"& td:first-of-type":{fontSize:"1.25rem"}},o=[{index:0,properties:{backgroundColor:Kp[1],...i}},{index:1,properties:{backgroundColor:Kp[2],...i}},{index:2,properties:{backgroundColor:Kp[3],...i}},{index:3,properties:{backgroundColor:Kp[4],...i}},{index:4,properties:{backgroundColor:Kp[5],...i}},{index:5,properties:{"& td, & th":{fontWeight:"bold"}}}];return(0,Ae.jsx)(pdt,{headers:t,rows:n,customBoxStyle:{border:0},customHeaderStyle:r,customRowStyle:o,widthRepartition:[15,27,40,18]})},gdt=e=>{let{pageNumber:t}=e;const{t:n}=Uut(),r=[n("methodology_term"),n("definition_one")],i=[["MeanT",n("methodology_meanT_definition")],["MaxT",n("methodology_maxT_definition")],["DeltaT",n("methodology_deltaT_definition")]],o=[n("severity"),n("methodology_damage"),n("methodology_action"),n("methodology_next_step")],s=[["1",n("methodology_damage_1"),n("methodology_action_1"),n("methodology_next_step_continue")],["2",n("methodology_damage_2"),n("methodology_action_2"),n("methodology_next_step_continue")],["3",n("methodology_damage_3"),n("methodology_action_3"),n("methodology_next_step_continue")],["4",n("methodology_damage_4"),n("methodology_action_4"),n("methodology_next_step_continue")],["5",n("methodology_damage_5"),n("methodology_action_5"),n("methodology_next_step_5")]];return(0,Ae.jsx)(sdt,{pageNumber:t,children:(0,Ae.jsxs)(ws,{container:!0,direction:"column",height:"100%",children:[(0,Ae.jsxs)(ws,{item:!0,children:[(0,Ae.jsx)(ldt,{subTitle:n("methodology_IEC"),titleIndex:2,subTitleIndex:4,pageNumber:t}),(0,Ae.jsx)(cdt,{paragraphs:[n("methodology_section_2.4_1"),n("methodology_section_2.4_2")]})]}),(0,Ae.jsxs)(ws,{item:!0,children:[(0,Ae.jsx)(ldt,{subTitle:n("definition_other"),titleIndex:2,subTitleIndex:5,pageNumber:t}),(0,Ae.jsx)(pdt,{headers:r,rows:i,firstColInBold:!0,widthRepartition:[25,65]})]}),(0,Ae.jsx)(ws,{item:!0,children:(0,Ae.jsx)(ldt,{subTitle:n("methodology_defects_categorization"),titleIndex:2,subTitleIndex:6,pageNumber:t})}),(0,Ae.jsx)(fdt,{headers:o,rows:s})]})})},mdt=()=>{const{pagination:{sectionPages:e}}=(0,n.useContext)(Jut),t=e[Xut.METHODOLOGY];return(0,Ae.jsxs)(Ae.Fragment,{children:[(0,Ae.jsx)(hdt,{pageNumber:t}),(0,Ae.jsx)(gdt,{pageNumber:t+1})]})};const ydt=__webpack_require__.p+"static/media/skyvisor-logo.1392b691e50e1861b5a6f158f75169d2.svg",vdt=()=>{const{t:e}=Uut(),{isCampaign:t,asset:r,subAssets:i,pagination:{sectionPages:o}}=(0,n.useContext)(Jut),s=(0,n.useMemo)((()=>i[0]),[i]),a=(0,n.useMemo)((()=>{if(r)return r.id}),[r]),[l,c]=(0,n.useState)([]);(0,n.useEffect)((()=>{(async()=>{if(!a)return;const e=await NT(a,"all");c(e.inspectionsList)})()}),[a,t,s]);const u=(0,n.useMemo)((()=>Z9e("Report")(l)),[l]),d=(0,n.useMemo)((()=>u.sort(((e,t)=>{const n=new Date(e.inspectionDates.inspected);return new Date(t.inspectionDates.inspected).getTime()-n.getTime()})).slice(0,5)),[u]),h=[e("asset_info_inspection_date"),e("inspection_method"),e("defects_count")],p=(0,n.useMemo)((()=>{const e=(0,Ae.jsx)("img",{src:ydt,alt:"Skyvisor"});return d.map((t=>[new Date(t.inspectionDates.inspected).toLocaleDateString(void 0,{year:"numeric",month:"numeric",day:"numeric"}),t.isExternal?t.externalMethod:e,t.defectsNb]))}),[d]);return(0,Ae.jsxs)(wp,{width:"100%",height:"100%",children:[(0,Ae.jsx)(ldt,{subTitle:e("asset_infos_inspection_history"),titleIndex:1,subTitleIndex:3,pageNumber:o[Xut.ASSET_INFOS]}),(0,Ae.jsx)(pdt,{rows:p,headers:h,firstColInBold:!0})]})},_dt=e=>{let{type:t,size:n="small",style:r,url:i,fullWidth:o=!1}=e;const{t:s}=Uut(),a={[Wut.SKYVISOR]:{label:s("open_on_skyvisor"),color:"primary"},[Wut.GMAPS]:{label:s("localize_with_gmaps"),color:"localize"}};return(0,Ae.jsx)(dB,{href:i,target:"_blank",rel:"noopener noreferrer",width:o?"100%":void 0,children:(0,Ae.jsx)(ev,{color:a[t].color,label:a[t].label,size:n,style:{...r,textTransform:"none",boxShadow:"none",whiteSpace:"nowrap"}})})},bdt=()=>{const{inspections:e,subAssets:t,pagination:{sectionPages:r},MapOverlaysComp:i}=(0,n.useContext)(Jut),{t:o}=Uut(),s=(0,n.useMemo)((()=>e.length?e[0].asset.id:""),[e]),a=(0,n.useMemo)((()=>[...new Set(e.flatMap((e=>{var t;return null!==(t=e.subAsset.id)&&void 0!==t?t:[]})))]),[e]),l=(0,n.useMemo)((()=>{const e=t.map((e=>({lat:e.lat,lng:e.lon})));return T3(e)}),[t]);return s?(0,Ae.jsxs)(wp,{height:"100%",overflow:"hidden",children:[(0,Ae.jsx)(ldt,{subTitle:o("asset_infos_map_and_division"),titleIndex:1,subTitleIndex:2,pageNumber:r[Xut.ASSET_INFOS]}),(0,Ae.jsx)(wp,{height:"300px",borderRadius:qut,overflow:"hidden",children:(0,Ae.jsx)(_Ce,{id:"solar-pdf-asset-map",withSubAssetsPolygons:"with-texts",assetId:s,subAssetsIds:a,hideControls:!0,noInteraction:!0,withOverlays:!1,withMapProviders:!1,children:(0,Ae.jsx)(i,{})})}),(0,Ae.jsxs)(wp,{display:"flex",justifyContent:"center",gap:"1rem",paddingTop:"1rem",children:[(0,Ae.jsx)(_dt,{type:Wut.SKYVISOR,url:"".concat(window.location.origin,"/assets/").concat(s)}),(0,Ae.jsx)(_dt,{type:Wut.GMAPS,url:L3(null===l||void 0===l?void 0:l.lat,null===l||void 0===l?void 0:l.lng)})]})]}):(0,Ae.jsx)(Ae.Fragment,{})},xdt=()=>{var e,t;const{t:r}=Uut(),{asset:i,totalPower:o,subAssets:s,pagination:{sectionPages:a}}=(0,n.useContext)(Jut),l=s.map((e=>e.name)),c=(0,n.useMemo)((()=>s.reduce(((e,t)=>{if(!t.area)return e;const n=t.area.map((e=>[e._latitude,e._longitude]));return n.push(n[0]),e+M2(t2([n]))/1e4}),0)),[s]);return(0,Ae.jsxs)(wp,{children:[(0,Ae.jsx)(ldt,{subTitle:r("asset_infos_overview"),titleIndex:1,subTitleIndex:1,pageNumber:a[Xut.ASSET_INFOS]}),i&&s&&(0,Ae.jsx)(pdt,{rows:[[r("asset_infos_asset_name"),null!==(e=i.name)&&void 0!==e?e:""],[r("subasset",{count:l.length}),null!==(t=l.join(", "))&&void 0!==t?t:""],[r("asset_infos_area"),c?"".concat(c.toFixed(2)," ha"):"No data"],[r("asset_infos_total_power"),o?"".concat(o," KW"):"No data"]],firstColInBold:!0,widthRepartition:[35,65]})]})},Sdt=()=>{const{pagination:{sectionPages:e}}=(0,n.useContext)(Jut),{t:t}=Uut();return(0,Ae.jsx)(sdt,{pageNumber:e[Xut.ASSET_INFOS],id:Xut.ASSET_INFOS,children:(0,Ae.jsxs)(vj,{children:[(0,Ae.jsx)(adt,{title:t("asset_infos_title"),titleIndex:1}),(0,Ae.jsx)(xdt,{}),(0,Ae.jsx)(bdt,{}),(0,Ae.jsx)(vdt,{})]})})};var wdt=__webpack_require__(45636),Edt=__webpack_require__(41716),Pdt=__webpack_require__(31356);const Cdt=e=>{let{title:t,subtitle:n,icon:r,data:i,color:o}=e;return(0,Ae.jsxs)(vj,{borderRadius:qut,color:"white",paddingX:3,paddingY:2,sx:{backgroundColor:o},height:"100%",justifyContent:"space-between",children:[(0,Ae.jsxs)(vj,{direction:"row",justifyContent:"space-between",alignItems:"start",children:[(0,Ae.jsxs)(vj,{children:[(0,Ae.jsx)(vu,{fontWeight:"bold",children:t}),n]}),r]}),(0,Ae.jsx)(vu,{fontSize:"1.5rem",fontWeight:"bold",children:i})]})},Adt=e=>{var t,r;let{pageNumber:i}=e;const{t:o}=Uut(),{defectsMap:s,isCampaign:a,inspections:l}=(0,n.useContext)(Jut),{nbDefects:c,nbResolvedDefects:u,impactedModules:d,firstDefectId:h}=(0,n.useMemo)((()=>{var e;const t=Array.from(s.values()).flat(),n=t.filter((e=>{var t;return(null===(t=e.state)||void 0===t?void 0:t.status)===pAe.CLOSED})),r=t.reduce(((e,t)=>{var n,r;return e+(null!==(n=null===(r=t.annotations)||void 0===r?void 0:r.length)&&void 0!==n?n:0)}),0);return{nbDefects:t.length,nbResolvedDefects:n.length,impactedModules:r,firstDefectId:null===(e=t[0])||void 0===e?void 0:e.id}}),[s]);return(0,Ae.jsxs)(wp,{children:[(0,Ae.jsx)(ldt,{subTitle:o("results_statistics"),titleIndex:3,subTitleIndex:4,pageNumber:i}),(0,Ae.jsxs)(ws,{container:!0,gap:2,wrap:"nowrap",children:[(0,Ae.jsx)(ws,{item:!0,xs:4,children:(0,Ae.jsx)(Cdt,{title:o("defects_count"),icon:(0,Ae.jsx)(wdt.c,{sx:{fontSize:"2rem"}}),data:c,color:jp})}),(0,Ae.jsx)(ws,{item:!0,xs:4,children:(0,Ae.jsx)(Cdt,{title:o("results_modules_impacted"),icon:(0,Ae.jsx)(Pdt.c,{sx:{fontSize:"2rem"}}),data:d,color:Np})}),(0,Ae.jsx)(ws,{item:!0,xs:4,children:(0,Ae.jsx)(Cdt,{title:o("results_defects_resolved"),subtitle:(0,Ae.jsxs)(vu,{variant:"body2",children:[o("results_change_status"),(0,Ae.jsx)(dB,{fontStyle:"italic",sx:{cursor:"pointer",color:"white",textDecoration:"underline"},href:a?"".concat(window.location.origin,"/results/campaign/").concat(null===(t=l[0])||void 0===t?void 0:t.campaign):"".concat(window.location.origin,"/inspections/").concat(null===(r=l[0])||void 0===r?void 0:r.id,"/defect/").concat(h),children:o("here")}),"!"]}),icon:(0,Ae.jsx)(Edt.c,{sx:{fontSize:"2rem"}}),data:"".concat(u," / ").concat(c),color:"#2E7D32"})})]})]})},kdt=e=>{let{pageNumber:t}=e;const{t:r}=Uut(),{inspections:i,getMobileDataPerInspection:o,getRTKStatusPerInspection:s}=(0,n.useContext)(Jut),[a,l]=(0,n.useState)();(0,n.useEffect)((()=>{(async()=>{const e=i.map((e=>(async e=>{const t=await Ey("/inspections/".concat(e,"/theorical-thermal-gsd"));if(!t.ok){const e=await t.text();throw new Error(null!==e&&void 0!==e?e:"Unknown error")}return t.json()})(e.id)));try{const t=await Promise.all(e),n=new Map(t.map(((e,t)=>[i[t].id,e])));l(n)}catch(Rmt){l(void 0)}})()}),[i]);const c=[r("subasset_one"),r("results_date"),r("results_time"),r("results_irradiance"),r("results_gsd"),r("results_rtk")],u=(0,n.useMemo)((()=>i?i.map((e=>{var t;const n=new Date(e.inspectionDates.inspected).toLocaleDateString(void 0,{year:"numeric",month:"numeric",day:"numeric"}),r=new Date(e.inspectionDates.inspected),i=new Date(r.getTime()-1e3*e.stats.inspectionDuration),l="".concat(i.toLocaleTimeString(void 0,{hour:"numeric",minute:"numeric"})," - ").concat(r.toLocaleTimeString(void 0,{hour:"numeric",minute:"numeric"})),c=o(e.id),u=null!==(t=null===c||void 0===c?void 0:c.radiationValue)&&void 0!==t?t:"",d=null===a||void 0===a?void 0:a.get(e.id),h=d?"".concat(Ly(d,2)," cm/px"):"-",{inspectionRtkStatus:p,percentage:f}=s(e.id),g="".concat(p," ").concat(f?"(".concat(f,"%)"):"");return[e.subAsset.name,n,l,u,h,g]})):[]),[i,o,s,a]);return(0,Ae.jsxs)(wp,{children:[(0,Ae.jsx)(ldt,{subTitle:r("results_operational_details"),titleIndex:3,subTitleIndex:2,pageNumber:t}),(0,Ae.jsx)(pdt,{rows:u,headers:c,firstColInBold:!0,widthRepartition:[12,17,18,16,16,21]})]})},jdt=e=>{let{pageNumber:t}=e;const{t:r}=Uut(),{inspections:i}=(0,n.useContext)(Jut),o=(0,n.useMemo)((()=>{if(i)return i.map((e=>{var t,n;return{subAsset:e.subAsset.name,date:new Date(e.inspectionDates.inspected).toLocaleDateString(void 0,{year:"numeric",month:"numeric",day:"numeric"}),conclusion:null!==(t=e.reviews)&&void 0!==t&&t.subAsset?null===(n=e.reviews)||void 0===n?void 0:n.subAsset:"-"}}))}),[i]);return(0,Ae.jsxs)(wp,{children:[(0,Ae.jsx)(ldt,{subTitle:r("results_operational_conclusions"),titleIndex:3,subTitleIndex:3,pageNumber:t}),(0,Ae.jsx)(vj,{color:Gp,gap:1,paddingX:2,children:o&&o.map(((e,t)=>(0,Ae.jsxs)(vj,{direction:"row",gap:2,children:[(0,Ae.jsx)(vu,{variant:"body2",children:1===o.length?(0,Ae.jsx)("b",{children:r("note")}):(0,Ae.jsxs)(Ae.Fragment,{children:[(0,Ae.jsx)("b",{children:"\u2022 ".concat(r("subasset_one")," ").concat(e.subAsset)})," - ".concat(e.date,": ")]})}),(0,Ae.jsx)(vu,{variant:"body2",fontStyle:"italic",children:e.conclusion})]},t)))})]})},Idt=e=>{let{pageNumber:t}=e;const{t:r}=Uut(),{inspections:i,mobileDataMap:o}=(0,n.useContext)(Jut),{userProfile:s}=Pfe(),a=(0,Ae.jsx)("img",{src:ydt,alt:"Skyvisor"}),l=(0,n.useMemo)((()=>{const e=i.map((e=>e.externalMethod));return[...new Set(e)].join(", ")}),[i]),c=(0,n.useMemo)((()=>{const e=Array.from(o.values()).flat().map((e=>"".concat(e.droneModel).concat("DJI_MAVIC_3_ENTERPRISE_SERIES"===e.droneModel?"_THERMAL":"")));return[...new Set(e)].join(", ")}),[o]);return(0,Ae.jsxs)(wp,{children:[(0,Ae.jsx)(ldt,{subTitle:r("results_operational_summary"),titleIndex:3,subTitleIndex:1,pageNumber:t}),s&&(0,Ae.jsx)(pdt,{rows:[[r("inspection_method"),l||a],[r("results_equipment"),c],[r("results_generated_by"),s.email],[r("results_generated_on"),(new Date).toLocaleDateString(void 0,{year:"numeric",month:"numeric",day:"numeric"})]],firstColInBold:!0,widthRepartition:[40,60]})]})},Gdt=e=>{let{pageNumber:t}=e;const{t:r}=Uut(),{inspections:i,pagination:{incrementSectionPages:o,sectionPages:s}}=(0,n.useContext)(Jut),a=(0,n.useMemo)((()=>i.length),[i]);return(0,n.useEffect)((()=>{a>7&&o(Xut.RESULTS,s)}),[a,o]),(0,Ae.jsx)(Ae.Fragment,{children:(0,Ae.jsx)(sdt,{pageNumber:t,id:Xut.RESULTS,children:(0,Ae.jsxs)(wp,{height:"100%",children:[(0,Ae.jsx)(adt,{title:r("results_title"),titleIndex:3}),(0,Ae.jsxs)(vj,{spacing:3,children:[(0,Ae.jsx)(Idt,{pageNumber:t}),(0,Ae.jsx)(kdt,{pageNumber:t}),a<=7&&(0,Ae.jsx)(jdt,{pageNumber:t}),a<3&&(0,Ae.jsx)(Adt,{pageNumber:t})]})]})})})},Tdt=e=>{let{title:t,chart:n,boxStyle:r,customTitleFontSize:i}=e;return(0,Ae.jsxs)(wp,{border:"2px solid ".concat(jp),borderRadius:qut,overflow:"hidden",children:[(0,Ae.jsxs)(vj,{direction:"row",gap:1,alignItems:"center",sx:{backgroundColor:jp},color:"white",paddingX:1,paddingY:.5,children:[(0,Ae.jsx)(wdt.c,{sx:{fontSize:"2rem"},fontWeight:"bold"}),(0,Ae.jsx)(vu,{fontSize:null!==i&&void 0!==i?i:"1rem",fontWeight:"bold",children:t})]}),(0,Ae.jsx)(wp,{width:"100%",height:"15vh",paddingTop:3,sx:r,children:n})]})},Mdt=e=>{let{defects:t}=e;const{t:r}=Uut(),i=(0,n.useMemo)((()=>{const e=t.map((e=>e.type));return[...new Set(e)]}),[t]),o=(0,n.useMemo)((()=>{const e=i.reduce(((e,n)=>{const r=K9e(n)(t),i=[n];let o=0;return nZe.forEach((e=>{const t=$9e(e)(r);i.push(t.length),o+=t.length})),i.push(o),e.push(i),e}),[]),n=[r("total_sev")];return nZe.forEach((e=>{const r=$9e(e)(t);n.push(r.length)})),n.push(t.length),e.push(n),e}),[i,t,r]),s=[r("defect_other"),"".concat(r("results_severity")," 1"),"".concat(r("results_severity")," 2"),"".concat(r("results_severity")," 3"),"".concat(r("results_severity")," 4"),"".concat(r("results_severity")," 5"),r("total_type")],a={tableLayout:"fixed","& td, & th":{borderLeft:"5px solid white",borderBottom:"1px solid white",color:Gp,width:"12.5%"},"& td:first-of-type, & th:first-of-type":{borderLeft:0,fontWeight:"bold",width:"22.5%"},"& td:last-of-type, & th:last-of-type":{fontWeight:"bold",width:"15%"},"& th:not(:first-of-type):not(:last-of-type)":{paddingX:1}},l={0:"#ADADAD",1:Kp[1],2:Kp[2],3:Kp[3],4:Kp[4],5:Kp[5],6:"#ADADAD"};return(0,Ae.jsx)(wp,{borderRadius:qut,width:"100%",overflow:"hidden",children:(0,Ae.jsxs)(BA,{children:[s&&(0,Ae.jsx)(Mj,{sx:a,children:(0,Ae.jsx)(Wk,{children:s.map(((e,t)=>(0,Ae.jsx)(tk,{size:"small",align:0===t?"left":"right",sx:{backgroundColor:l[t]},children:(0,Ae.jsx)(vu,{fontSize:".75rem",fontWeight:"bold",color:"white",children:e})},"".concat(e,"-").concat(t))))})}),o&&(0,Ae.jsx)(KA,{children:o.map(((e,t)=>(0,Ae.jsx)(Wk,{sx:a,children:e.map(((e,n)=>(0,Ae.jsx)(tk,{size:"small",align:0===n?"left":"right",sx:{backgroundColor:t===o.length-1?l[n]:nU(l[n],.5)},children:(0,Ae.jsx)(vu,{fontSize:".75rem",sx:{fontWeight:0!==e?"bold":""},color:t===o.length-1?"white":"",children:e})},n)))},t)))})]})})},Odt=e=>{let{pageNumber:t}=e;const r=(0,n.useContext)(Jut);if(!r)return(0,Ae.jsx)(Ae.Fragment,{});const{t:i,language:o}=Uut(),{defectsMap:s,defectToAnnotationsMap:a,inspections:l}=r,c=(0,n.useMemo)((()=>Array.from(s.values()).flat()),[s]),u=(0,n.useMemo)((()=>Array.from(a.values()).flat()),[a]),d=c.map((e=>({...e,new:!1,annotations:e.annotations.map((e=>({...e,favorite:!1})))}))),h=u.map((e=>{var t,n;return{...e,fileName:"",key:"",height:0,width:0,note:null!==(t=e.note)&&void 0!==t?t:"",severity:0,urls:[],x:0,y:0,type:null!==(n=e.type)&&void 0!==n?n:"",position:{lat:0,lon:0}}}));return(0,Ae.jsx)(sdt,{pageNumber:t,children:(0,Ae.jsxs)(vj,{height:"100%",spacing:2,children:[l.length>=3&&(0,Ae.jsx)(Adt,{pageNumber:t}),(0,Ae.jsxs)(wp,{children:[(0,Ae.jsx)(ldt,{subTitle:i("results_breakdown_charts"),titleIndex:3,subTitleIndex:4,subSubTitleIndex:1,pageNumber:t}),(0,Ae.jsxs)(ws,{container:!0,spacing:2,children:[(0,Ae.jsx)(ws,{item:!0,xs:12,children:(0,Ae.jsx)(Tdt,{title:i("results_breakdown_type"),boxStyle:{paddingRight:"2rem"},chart:(0,Ae.jsx)(CKe,{defects:d,showPercentage:!0,containerHeight:220,yAxisDomainPercentMargin:"small",axisFontSize:$ut})})}),(0,Ae.jsx)(ws,{item:!0,xs:6,children:(0,Ae.jsx)(Tdt,{title:i("results_breakdown_severity"),boxStyle:{marginLeft:"-1.5rem"},chart:(0,Ae.jsx)(kKe,{defects:d,columnName:"Cat",showPercentage:!0,containerHeight:220,yAxisDomainPercentMargin:"small",axisFontSize:$ut})})}),(0,Ae.jsx)(ws,{item:!0,xs:6,children:(0,Ae.jsx)(Tdt,{title:i("results_breakdown_temperature"),boxStyle:{marginLeft:"-1.5rem"},customTitleFontSize:"de"===o?"0.8rem":"1rem",chart:(0,Ae.jsx)(AKe,{annotations:h,containerHeight:220,axisFontSize:$ut})})})]})]}),(0,Ae.jsxs)(wp,{children:[(0,Ae.jsx)(ldt,{subTitle:i("results_breakdown_table"),titleIndex:3,subTitleIndex:4,subSubTitleIndex:2,pageNumber:t}),(0,Ae.jsx)(Mdt,{defects:c})]})]})})},Rdt=e=>{let{pageNumber:t}=e;return(0,Ae.jsx)(sdt,{pageNumber:t,children:(0,Ae.jsx)(jdt,{pageNumber:t})})},Ddt=()=>{const{pagination:{sectionPages:e},inspections:t}=(0,n.useContext)(Jut),r=e[Xut.RESULTS],i=t.length>7;return(0,Ae.jsxs)(Ae.Fragment,{children:[(0,Ae.jsx)(Gdt,{pageNumber:r}),i&&(0,Ae.jsx)(Rdt,{pageNumber:r+1}),(0,Ae.jsx)(Odt,{pageNumber:i?r+2:r+1})]})},Ndt=e=>{const{t:t}=Uut(),{pagination:{sectionPages:r}}=(0,n.useContext)(Jut),{section:i}=e;return(0,Ae.jsxs)(ws,{container:!0,wrap:"nowrap",justifyContent:"space-between",gap:"0.5rem",paddingLeft:"0.5rem",children:[(0,Ae.jsxs)(vu,{fontWeight:"bold",children:[Zut[i],"."," ",t(Kut[i])]}),(0,Ae.jsx)(wp,{overflow:"hidden",width:"100%",flex:1,children:(0,Ae.jsx)(vu,{fontWeight:"bold",textAlign:"center",children:".".repeat(300)})}),(0,Ae.jsx)(vu,{fontWeight:"bold",children:r[i]})]})},Ldt=e=>{const{pageNumber:t,subTitle:n,subSection:r}=e,i=r.split(".").length;return(0,Ae.jsxs)(ws,{container:!0,wrap:"nowrap",justifyContent:"space-between",gap:"0.5rem",color:Gp,paddingLeft:3===i?"3rem":2===i?"1.5rem":"0",children:[(0,Ae.jsx)(vu,{children:r}),(0,Ae.jsx)(vu,{children:n}),(0,Ae.jsx)(wp,{overflow:"hidden",width:"100%",flex:1,children:(0,Ae.jsx)(vu,{textAlign:"center",children:".".repeat(300)})}),(0,Ae.jsx)(vu,{children:t})]})},Vdt=e=>{const{section:t,pagesMap:n,sliceArray:r,withSectionTitle:i=!0}=e;return(0,Ae.jsxs)(ws,{container:!0,children:[i&&(0,Ae.jsx)(ws,{item:!0,width:"100%",children:(0,Ae.jsx)(dB,{href:"#".concat(t),underline:"none",color:"inherit",children:(0,Ae.jsx)(Ndt,{section:t})})}),n&&Array.from(n).sort(((e,t)=>{let[n]=e,[r]=t;const[i,o]=n.split("."),[s,a]=r.split(".");return i===s?Number(o)-Number(a):Number(i)-Number(s)})).slice(...r||[0,n.size]).map((e=>{let[t,[n,r]]=e;return(0,Ae.jsx)(ws,{item:!0,width:"100%",children:(0,Ae.jsx)(dB,{href:"#".concat(t),underline:"none",color:"inherit",children:(0,Ae.jsx)(Ldt,{pageNumber:n,subSection:t,subTitle:r})})},t)}))]})},Fdt=()=>{var e;const{pagination:{tableOfContentsMap:t,incrementSectionPages:r,sectionPages:i}}=(0,n.useContext)(Jut),[o,s]=(0,n.useState)(!1),{t:a}=Uut(),l=(null===(e=t.get(Zut[Xut.INSPECTIONS_DEFECTS_ANALYSIS]))||void 0===e?void 0:e.size)||0;return(0,n.useEffect)((()=>{o||l>13&&(r(Xut.TABLE_OF_CONTENTS,i),s(!0))}),[l,r]),(0,Ae.jsxs)(Ae.Fragment,{children:[(0,Ae.jsx)(sdt,{pageNumber:i[Xut.TABLE_OF_CONTENTS],id:Xut.TABLE_OF_CONTENTS,children:(0,Ae.jsxs)(ws,{container:!0,direction:"column",wrap:"nowrap",gap:"1.5rem",paddingTop:"2rem",children:[(0,Ae.jsx)(ws,{item:!0,children:(0,Ae.jsx)(vu,{fontWeight:"bold",textAlign:"center",fontSize:"1.5rem",children:a(Kut[Xut.TABLE_OF_CONTENTS])})}),Object.keys(Xut).filter((e=>Xut[e]!==Xut.TABLE_OF_CONTENTS)).map((e=>{const n=parseInt(Zut[Xut[e]]);return(0,Ae.jsx)(ws,{item:!0,children:(0,Ae.jsx)(Vdt,{section:Xut[e],pagesMap:t.get(n),sliceArray:Xut[e]===Xut.INSPECTIONS_DEFECTS_ANALYSIS?[0,13]:void 0})},Xut[e])}))]})}),l>13&&(0,Ae.jsx)(sdt,{pageNumber:i[Xut.TABLE_OF_CONTENTS]+1,id:Xut.TABLE_OF_CONTENTS+"1",children:(0,Ae.jsx)(ws,{item:!0,children:(0,Ae.jsx)(Vdt,{section:Xut.INSPECTIONS_DEFECTS_ANALYSIS,pagesMap:t.get(Zut["inspections-defects-analysis"]),sliceArray:[13,-1],withSectionTitle:!1})},Xut.INSPECTIONS_DEFECTS_ANALYSIS)})]})},zdt=e=>{var t,r,i,o;let{inspection:s,inspectionNumber:a,defects:l,pageNumber:c}=e;const{t:u}=Uut(),{defectsMap:d,defectToAnnotationsMap:h,subAssetsMapProvidersMap:p}=(0,n.useContext)(Jut),[f,g]=(0,n.useState)([]);return(0,n.useEffect)((()=>{var e;const t=[];null===(e=d.get(s.id))||void 0===e||e.map((e=>{var n;const r=null!==(n=h.get(e.id))&&void 0!==n?n:[];r&&r.forEach((e=>{var n,r,i,o;t.push({lat:null!==(n=null===e||void 0===e||null===(r=e.position)||void 0===r?void 0:r.lat)&&void 0!==n?n:0,lng:null!==(i=null===e||void 0===e||null===(o=e.position)||void 0===o?void 0:o.lng)&&void 0!==i?i:0})}))})),g(t)}),[d,h,s.id]),(0,Ae.jsx)(sdt,{id:0===a?"".concat(Xut.INSPECTIONS_DEFECTS_ANALYSIS):"".concat(Xut.INSPECTIONS_DEFECTS_ANALYSIS,"-").concat(a),pageNumber:c,children:(0,Ae.jsxs)(wp,{height:"100%",children:[(0,Ae.jsx)(adt,{title:u("defects_analysis_title"),titleIndex:4}),(0,Ae.jsx)(ldt,{subTitle:"".concat(u("subasset_one")," ").concat(My(null!==(t=null===(r=s.subAsset)||void 0===r?void 0:r.name)&&void 0!==t?t:"")),titleIndex:4,subTitleIndex:1+a,pageNumber:c}),(0,Ae.jsxs)(vj,{alignItems:"center",gap:"1rem",children:[(0,Ae.jsx)(wp,{borderRadius:qut,height:"400px",width:"100%",overflow:"hidden",children:(0,Ae.jsx)(_Ce,{assetId:s.asset.id,id:s.id,subAssetsIds:[s.subAsset.id],hideControls:!0,noInteraction:!0,withMapProviders:!1,withOverlays:!1,withSubAssetsPolygons:!0,provider:p.get(s.subAsset.id),children:(0,Ae.jsx)(CIe,{points:f,radius:10,zIndex:1e4})})}),(0,Ae.jsxs)(vj,{direction:"row",spacing:2,children:[(0,Ae.jsx)(_dt,{type:Wut.SKYVISOR,style:{paddingLeft:"2rem",paddingRight:"2rem"},url:"".concat(window.location.origin,"/inspections/").concat(s.id,"/analyzed")}),(0,Ae.jsx)(_dt,{type:Wut.GMAPS,style:{paddingLeft:"2rem",paddingRight:"2rem"},url:L3(null===(i=s.subAsset)||void 0===i?void 0:i.lat,null===(o=s.subAsset)||void 0===o?void 0:o.lon)})]})]}),(0,Ae.jsx)(ldt,{subTitle:u("defects_analysis_area_stats"),titleIndex:4,subTitleIndex:1+a,subSubTitleIndex:1,pageNumber:c}),(0,Ae.jsx)(Mdt,{defects:l})]})})},Bdt=e=>{let{name:t,content:n,fontStyle:r,isDisconnected:i,twoLinesMax:o}=e;const s=i&&!o?28:60;return(0,Ae.jsxs)(ws,{item:!0,container:!0,children:[(0,Ae.jsx)(ws,{item:!0,xs:i?4:3,children:(0,Ae.jsx)(vu,{variant:"body2",fontWeight:"bold",children:t})}),(0,Ae.jsx)(ws,{item:!0,xs:i?8:9,children:(0,Ae.jsx)(vu,{variant:"body2",fontStyle:r,children:n.length>s?"".concat(n.substring(0,s),"\u2026"):n})})]})},Udt=e=>{let{cropUrl:t,defectId:n}=e;return(0,Ae.jsx)(ws,{item:!0,width:"100%",height:"140px",borderRadius:qut,overflow:"hidden",children:(0,Ae.jsx)("img",{id:n,src:t,alt:"Crop not found",style:{width:"100%",height:"100%"}})})},Wdt=e=>{var t;const{subAssetsMapProvidersMap:r}=(0,n.useContext)(Jut),{getPhotoGSDData:i,getPanelsInfosForInspection:o,annotations:s,defectId:a,inspection:l}=e,c=s.map((e=>({lat:e.position.lat,lng:e.position.lng}))),u=(0,n.useMemo)((()=>[l]),[l]),d=(0,n.useMemo)((()=>{const e=new Map;return e.set(l.id,s),e}),[l,s]),{annotationsPolygons:h}=UAe({inspections:u,getPhotoGSDData:e=>i(e,l.id),getPanelsInfosForInspection:o,annotationsMap:d}),p=O3(c,"large",15),f=T3(c);return(0,Ae.jsxs)(ws,{container:!0,direction:"column",wrap:"nowrap",gap:"0.5rem",children:[(0,Ae.jsx)(wp,{width:"300px",height:"140px",borderRadius:qut,overflow:"hidden",children:(0,Ae.jsx)(U5,{id:a,bounds:p,noInteraction:!0,hideControls:!0,provider:null!==(t=r.get(l.subAsset.id))&&void 0!==t?t:mL[cL.OSM],children:(0,Ae.jsx)(yPe,{polygons:h,zIndex:12})})}),(0,Ae.jsxs)(ws,{container:!0,item:!0,gap:"1rem",wrap:"nowrap",children:[(0,Ae.jsx)(_dt,{url:"".concat(window.location.origin,"/inspections/").concat(l.id,"/defect/").concat(a),type:Wut.SKYVISOR,size:"small",style:{width:"100%",fontSize:".75rem",paddingBottom:0},fullWidth:!0}),(0,Ae.jsx)(_dt,{type:Wut.GMAPS,size:"small",style:{width:"100%",fontSize:".75rem",paddingBottom:0},url:L3(null===f||void 0===f?void 0:f.lat,null===f||void 0===f?void 0:f.lng),fullWidth:!0})]})]})},Hdt=e=>{var t,r,i;let{annotations:o,defectId:s,defect:a,getPhotoGSDData:l,getPanelsInfosForInspection:c,cropUrls:u,inspection:d}=e;const{t:h}=Uut(),{type:p,rootCause:f,nextStep:g,severity:m,note:y,state:v,comments:_,files:b}=a,x={width:"100%",fontSize:".75rem",paddingBottom:0},S=o[0],w=Object.values(CL).includes(p),E=(0,n.useMemo)((()=>Object.values(null!==_&&void 0!==_?_:{}).length>0||Object.values(null!==b&&void 0!==b?b:{}).length>0),[_,b]),P=(0,n.useMemo)((()=>{if(!E)return;const e=Object.values(null!==_&&void 0!==_?_:{}).length,t=Object.values(null!==b&&void 0!==b?b:{}).length;return e>=1&&t>=1?h("defects_attachments",{comments:e,files:t}):e>=1?h("defects_attachment_comments",{count:e}):h("defects_attachment_files",{count:t})}),[E,_,b,h]);return(0,Ae.jsxs)(ws,{item:!0,children:[(0,Ae.jsxs)(vu,{variant:"h6",fontWeight:"bold",fontSize:"1rem",children:[h("defect_one")," #",null!==(t=a.orderId)&&void 0!==t?t:0]}),(0,Ae.jsxs)(ws,{item:!0,container:!0,children:[(0,Ae.jsx)(ws,{item:!0,xs:7,children:(0,Ae.jsx)(wp,{borderLeft:1,borderColor:Rp,marginX:1,paddingLeft:2,color:Gp,paddingBottom:1,children:(0,Ae.jsxs)(ws,{container:!0,gap:.25,children:[(0,Ae.jsxs)(ws,{item:!0,container:!0,children:[(0,Ae.jsx)(ws,{item:!0,xs:w?4:3,alignSelf:"end",children:(0,Ae.jsx)(vu,{fontWeight:"bold",variant:"body2",children:h("defects_severity")})}),(0,Ae.jsx)(ws,{item:!0,xs:3,children:(0,Ae.jsx)(MU,{text:m.toString(),color:Kp[m],fontWeight:"bold"})}),(0,Ae.jsxs)(ws,{item:!0,xs:w?5:6,textAlign:"right",display:"flex",gap:2,alignItems:"end",children:[(0,Ae.jsx)(vu,{variant:"body2",fontWeight:"bold",children:h("defects_status")}),(0,Ae.jsx)(MU,{text:"closed"===(null===v||void 0===v?void 0:v.status)?"Resolved":"Ongoing",color:"closed"===(null===v||void 0===v?void 0:v.status)?Up:zp})]})]}),(0,Ae.jsx)(Bdt,{name:h("defects_type"),content:Sq(p),isDisconnected:w}),w?(0,Ae.jsxs)(ws,{item:!0,container:!0,alignItems:"baseline",children:[(0,Ae.jsx)(ws,{item:!0,xs:4,children:(0,Ae.jsx)(vu,{fontWeight:"bold",variant:"body2",children:h("defects_modules_impacted")})}),(0,Ae.jsx)(ws,{item:!0,xs:7,paddingLeft:.5,children:(0,Ae.jsx)(vu,{fontSize:"1.25rem",children:o.length})})]}):(0,Ae.jsxs)(ws,{item:!0,container:!0,children:[(0,Ae.jsx)(ws,{item:!0,xs:3,children:(0,Ae.jsx)(vu,{fontWeight:"bold",variant:"body2",children:h("defects_deltaT")})}),(0,Ae.jsxs)(ws,{item:!0,xs:8,display:"flex",gap:4,alignItems:"center",children:[(0,Ae.jsxs)(vu,{variant:"body2",children:[(S.thermalStats.max-S.thermalStats.mean).toFixed(2),"\xb0C"]}),(0,Ae.jsx)(wp,{sx:{height:"1rem"},children:(0,Ae.jsx)(Qq,{orientation:"vertical",sx:{backgroundColor:Rp}})}),(0,Ae.jsxs)(vj,{direction:"row",gap:2.5,children:[(0,Ae.jsx)(vu,{variant:"body2",fontWeight:"bold",children:h("defects_maxT")}),(0,Ae.jsxs)(vu,{variant:"body2",children:[S.thermalStats.max,"\xb0C"]})]})]})]}),(0,Ae.jsx)(ws,{item:!0,xs:10,children:(0,Ae.jsx)(Qq,{sx:{marginY:.5,backgroundColor:Rp}})}),(0,Ae.jsx)(Bdt,{name:h("defects_root_cause"),content:f||"-",fontStyle:"italic",isDisconnected:w}),(0,Ae.jsx)(Bdt,{name:h("defects_next_step"),content:g||"-",fontStyle:"italic",isDisconnected:w}),(0,Ae.jsx)(Bdt,{name:h("note"),content:y||"-",fontStyle:"italic",isDisconnected:w,twoLinesMax:!0})]})})}),(0,Ae.jsxs)(ws,{item:!0,container:!0,xs:5,color:Gp,justifyContent:"center",children:[(0,Ae.jsx)(ws,{item:!0,container:!0,gap:"1rem",wrap:"nowrap",children:w?(0,Ae.jsx)(Wdt,{getPhotoGSDData:l,getPanelsInfosForInspection:c,annotations:o,defectId:s,inspection:d}):(0,Ae.jsxs)(Ae.Fragment,{children:[(0,Ae.jsxs)(ws,{item:!0,container:!0,xs:6,direction:"column",gap:1,children:[(0,Ae.jsx)(Udt,{defectId:s,cropUrl:u.thermal}),(0,Ae.jsx)(ws,{item:!0,alignSelf:"center",width:"100%",children:(0,Ae.jsx)(_dt,{type:Wut.SKYVISOR,url:"".concat(window.location.origin,"/inspections/").concat(d.id,"/defect/").concat(s),style:x,fullWidth:!0})})]}),(0,Ae.jsxs)(ws,{item:!0,container:!0,xs:6,direction:"column",gap:1,children:[(0,Ae.jsx)(Udt,{defectId:"".concat(s,"-rgb"),cropUrl:u.rgb}),(0,Ae.jsx)(ws,{item:!0,alignSelf:"center",width:"100%",children:(0,Ae.jsx)(_dt,{type:Wut.GMAPS,style:x,url:L3(null===(r=S.position)||void 0===r?void 0:r.lat,null===(i=S.position)||void 0===i?void 0:i.lng),fullWidth:!0})})]})]})}),(0,Ae.jsx)(ws,{item:!0,paddingTop:"0.5rem",children:E?(0,Ae.jsxs)(Ae.Fragment,{children:[(0,Ae.jsx)(vu,{textAlign:"center",fontSize:".75rem",fontWeight:"bold",lineHeight:"7px",children:P}),(0,Ae.jsxs)(vu,{textAlign:"center",fontSize:".75rem",fontWeight:"bold",children:[h("defects_more_details"),(0,Ae.jsx)(dB,{fontStyle:"italic",color:Gp,href:"".concat(window.location.origin,"/inspections/").concat(d.id,"/defect/").concat(s),sx:{cursor:"pointer"},children:h("here")}),"!"]})]}):(0,Ae.jsx)(vu,{textAlign:"center",fontSize:".75rem",children:h("defects_attachment_zero")})})]})]})]})},qdt=e=>{const{t:t}=Uut(),{getPanelsInfosForInspection:r,getPhotoGSDData:i,cropsUrlMap:o}=(0,n.useContext)(Jut),{inspection:s,defectsAnnotationsByTypeMap:a,currentInspectionDefectsMap:l,firstPageNumber:c,inspectionNumber:u}=e;let d=0;const h=(0,n.useMemo)((()=>Array.from(a.entries()).sort(((e,t)=>{let[n]=e,[r]=t;return n===PL.DIODE?-1:r===PL.DIODE?1:n===PL.DISCONNECTED?-1:r===PL.DISCONNECTED?1:0}))),[a]);return(0,Ae.jsx)(Ae.Fragment,{children:h.map(((e,n)=>{let[a,h]=e;const p=[];for(let t=0;t<h.length;t+=4)p.push(h.slice(t,t+4));const f=h.length;return p.map(((e,h)=>{var p,g;const m=4*h+1,y=Math.min(m+3,f),v="(".concat(m===y?y:"".concat(m," - ").concat(y),"/").concat(f,")");return d++,(0,Ae.jsxs)(sdt,{id:a,withoutHeader:!0,pageNumber:c+d,children:[(0,Ae.jsxs)(wp,{display:"flex",alignItems:"flex-start",justifyContent:"flex-start",width:"100%",gap:"0.5rem",children:[(0,Ae.jsx)(ldt,{pageNumber:c+d,subTitle:"".concat(t("subasset_one")," ").concat(null!==(p=null===(g=s.subAsset)||void 0===g?void 0:g.name)&&void 0!==p?p:""," > ").concat(My(a)),subTitleIndex:u+1,titleIndex:4,subSubTitleIndex:n+2,addToTableOfContents:0===h,fontSize:"1.25rem",style:{paddingTop:0,paddingBottom:"0.5rem"}}),(0,Ae.jsx)(vu,{fontSize:"1.25rem",children:v})]}),(0,Ae.jsx)(ws,{container:!0,children:e.map(((e,t)=>{var n,a,c,u;let{defectId:d,annotations:h}=e;const p=l.get(d);if(!p)return(0,Ae.jsx)(Ae.Fragment,{});const f=null!==(n=null===(a=o.get(BCe(h[0])))||void 0===a?void 0:a[0])&&void 0!==n?n:"",g=null!==(c=null===(u=o.get(BCe(h[0])))||void 0===u?void 0:u[1])&&void 0!==c?c:"";return(0,Ae.jsx)(Hdt,{inspection:s,defect:p,annotations:h,getPhotoGSDData:i,getPanelsInfosForInspection:r,defectId:d,cropUrls:{thermal:g,rgb:f}},d+t)}))})]},"".concat(a,"-").concat(h))}))}))})},Xdt=e=>{let{inspection:t,inspectionNumber:r,firstPageNumber:i,currentInspectionDefects:o,currentInspectionDefectsMap:s,defectsAnnotationsByTypeMap:a}=e;const{withDetails:l}=(0,n.useContext)(Jut);return(0,Ae.jsxs)(Ae.Fragment,{children:[(0,Ae.jsx)(zdt,{inspectionNumber:r,inspection:t,defects:o,pageNumber:i}),l&&(0,Ae.jsx)(qdt,{firstPageNumber:i,inspectionNumber:r,currentInspectionDefectsMap:s,defectsAnnotationsByTypeMap:a,inspection:t})]})},Ydt=()=>{const{inspections:e,pagination:t,defectsMap:r,defectToAnnotationsMap:i}=(0,n.useContext)(Jut),[o,s]=(0,n.useState)([]),[a,l]=(0,n.useState)([]),c=(0,n.useMemo)((()=>{const t=e.sort(((e,t)=>e.subAsset.lat<t.subAsset.lat?1:-1)),n=t.map((e=>{var t;return(null!==(t=r.get(e.id))&&void 0!==t?t:[]).map((t=>({...t,inspectionId:e.id})))})).map((e=>e.sort(((e,t)=>{var n,r;const o=null===(n=i.get(e.id))||void 0===n?void 0:n[0],s=null===(r=i.get(t.id))||void 0===r?void 0:r[0];return o&&s?o.photoId===s.photoId?o.position.lng===s.position.lng?0:o.position.lng>s.position.lng?1:-1:parseInt(o.photoId,10)>parseInt(s.photoId,10)?1:-1:1})))),o=n.flat().map(((e,t)=>({...e,orderId:t+1}))),s=new Map;return o.forEach((e=>{var t;s.has(e.inspectionId)||s.set(e.inspectionId,[]),null===(t=s.get(e.inspectionId))||void 0===t||t.push(e)})),s}),[i,r,e]),u=(0,n.useCallback)((e=>{var t;const n=null!==(t=c.get(e))&&void 0!==t?t:[],r=new Map;n.forEach((e=>{r.set(e.id,e)}));const o=[];n.forEach((e=>{var t;const n=Array.from(null!==(t=i.get(e.id))&&void 0!==t?t:[]);o.push({defectId:e.id,annotations:n})}));const s=new Map;o.forEach((e=>{var t;let{annotations:n,defectId:r}=e;if(0===n.length)return;const i=n[0].type in PL?PL[n[0].type]:PL.HOTSPOT;s.has(i)||s.set(i,[]),null===(t=s.get(i))||void 0===t||t.push({defectId:r,annotations:n})}));const[a,l,u]=[PL.HOTSPOT,PL.DIODE,PL.DISCONNECTED].map((e=>((e,t)=>{if(t.has(e)){var n;const r=t.get(e);return Math.ceil((null!==(n=null===r||void 0===r?void 0:r.length)&&void 0!==n?n:0)/4)}return 0})(e,s)));return{inspectionId:e,inspectionDefects:n,inspectionDefectsMap:r,defectsAnnotationsByTypeMap:s,hotspotsPagesCount:a,diodesPagesCount:l,disconnectedPagesCount:u}}),[i,c]);return(0,n.useEffect)((()=>{if(!e.length)return;const t=[],n=e.sort(((e,t)=>e.subAsset.name.localeCompare(t.subAsset.name))).map((e=>{const n=u(e.id);return t.push(n.hotspotsPagesCount+n.diodesPagesCount+n.disconnectedPagesCount+1),n}));s(n),l(t)}),[u,e]),(0,Ae.jsx)(Ae.Fragment,{children:o.map(((n,r)=>{let{inspectionId:i,inspectionDefects:o,inspectionDefectsMap:s,defectsAnnotationsByTypeMap:l}=n;return(0,Ae.jsx)(Xdt,{inspection:e[r],inspectionNumber:r,firstPageNumber:0===r?t.sectionPages[Xut.INSPECTIONS_DEFECTS_ANALYSIS]:t.sectionPages[Xut.INSPECTIONS_DEFECTS_ANALYSIS]+a.slice(0,r).reduce(((e,t)=>e+t),0),currentInspectionDefects:o,currentInspectionDefectsMap:s,defectsAnnotationsByTypeMap:l},i)}))})},Kdt=()=>{const{t:e}=Uut();return(0,Ae.jsx)(sdt,{isLastPage:!0,children:(0,Ae.jsx)(vj,{height:"100%",justifyContent:"center",children:(0,Ae.jsx)(vu,{fontSize:"5rem",color:"rgba(0,0,0,0.15)",fontWeight:"bold",width:"100%",textAlign:"center",marginTop:2,children:e("end_of_report")})})})},Zdt=()=>(0,Ae.jsx)(Ae.Fragment,{children:(0,Ae.jsxs)(Cut,{children:[(0,Ae.jsx)(rdt,{}),(0,Ae.jsx)(Fdt,{}),(0,Ae.jsx)(Sdt,{}),(0,Ae.jsx)(mdt,{}),(0,Ae.jsx)(Ddt,{}),(0,Ae.jsx)(Ydt,{}),(0,Ae.jsx)(Kdt,{})]})}),$dt=e=>{let{children:t,context:n}=e;return(0,Ae.jsx)(Jut.Provider,{value:n,children:t})},Jdt={type:"logger",log(e){this.output("log",e)},warn(e){this.output("warn",e)},error(e){this.output("error",e)},output(e,t){console&&console[e]&&console[e].apply(console,t)}};class Qdt{constructor(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.init(e,t)}init(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.prefix=t.prefix||"i18next:",this.logger=e||Jdt,this.options=t,this.debug=t.debug}log(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return this.forward(t,"log","",!0)}warn(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return this.forward(t,"warn","",!0)}error(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return this.forward(t,"error","")}deprecate(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return this.forward(t,"warn","WARNING DEPRECATED: ",!0)}forward(e,t,n,r){return r&&!this.debug?null:("string"===typeof e[0]&&(e[0]="".concat(n).concat(this.prefix," ").concat(e[0])),this.logger[t](e))}create(e){return new Qdt(this.logger,{prefix:"".concat(this.prefix,":").concat(e,":"),...this.options})}clone(e){return(e=e||this.options).prefix=e.prefix||this.prefix,new Qdt(this.logger,e)}}var eht=new Qdt;class tht{constructor(){this.observers={}}on(e,t){return e.split(" ").forEach((e=>{this.observers[e]||(this.observers[e]=new Map);const n=this.observers[e].get(t)||0;this.observers[e].set(t,n+1)})),this}off(e,t){this.observers[e]&&(t?this.observers[e].delete(t):delete this.observers[e])}emit(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];if(this.observers[e]){Array.from(this.observers[e].entries()).forEach((e=>{let[t,r]=e;for(let i=0;i<r;i++)t(...n)}))}if(this.observers["*"]){Array.from(this.observers["*"].entries()).forEach((t=>{let[r,i]=t;for(let o=0;o<i;o++)r.apply(r,[e,...n])}))}}}function nht(){let e,t;const n=new Promise(((n,r)=>{e=n,t=r}));return n.resolve=e,n.reject=t,n}function rht(e){return null==e?"":""+e}const iht=/###/g;function oht(e,t,n){function r(e){return e&&e.indexOf("###")>-1?e.replace(iht,"."):e}function i(){return!e||"string"===typeof e}const o="string"!==typeof t?t:t.split(".");let s=0;for(;s<o.length-1;){if(i())return{};const t=r(o[s]);!e[t]&&n&&(e[t]=new n),e=Object.prototype.hasOwnProperty.call(e,t)?e[t]:{},++s}return i()?{}:{obj:e,k:r(o[s])}}function sht(e,t,n){const{obj:r,k:i}=oht(e,t,Object);if(void 0!==r||1===t.length)return void(r[i]=n);let o=t[t.length-1],s=t.slice(0,t.length-1),a=oht(e,s,Object);for(;void 0===a.obj&&s.length;)o="".concat(s[s.length-1],".").concat(o),s=s.slice(0,s.length-1),a=oht(e,s,Object),a&&a.obj&&"undefined"!==typeof a.obj["".concat(a.k,".").concat(o)]&&(a.obj=void 0);a.obj["".concat(a.k,".").concat(o)]=n}function aht(e,t){const{obj:n,k:r}=oht(e,t);if(n)return n[r]}function lht(e,t,n){for(const r in t)"__proto__"!==r&&"constructor"!==r&&(r in e?"string"===typeof e[r]||e[r]instanceof String||"string"===typeof t[r]||t[r]instanceof String?n&&(e[r]=t[r]):lht(e[r],t[r],n):e[r]=t[r]);return e}function cht(e){return e.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&")}var uht={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;","/":"&#x2F;"};function dht(e){return"string"===typeof e?e.replace(/[&<>"'\/]/g,(e=>uht[e])):e}const hht=[" ",",","?","!",";"],pht=new class{constructor(e){this.capacity=e,this.regExpMap=new Map,this.regExpQueue=[]}getRegExp(e){const t=this.regExpMap.get(e);if(void 0!==t)return t;const n=new RegExp(e);return this.regExpQueue.length===this.capacity&&this.regExpMap.delete(this.regExpQueue.shift()),this.regExpMap.set(e,n),this.regExpQueue.push(e),n}}(20);function fht(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:".";if(!e)return;if(e[t])return e[t];const r=t.split(n);let i=e;for(let o=0;o<r.length;){if(!i||"object"!==typeof i)return;let e,t="";for(let s=o;s<r.length;++s)if(s!==o&&(t+=n),t+=r[s],e=i[t],void 0!==e){if(["string","number","boolean"].indexOf(typeof e)>-1&&s<r.length-1)continue;o+=s-o+1;break}i=e}return i}function ght(e){return e&&e.indexOf("_")>0?e.replace("_","-"):e}class mht extends tht{constructor(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{ns:["translation"],defaultNS:"translation"};super(),this.data=e||{},this.options=t,void 0===this.options.keySeparator&&(this.options.keySeparator="."),void 0===this.options.ignoreJSONStructure&&(this.options.ignoreJSONStructure=!0)}addNamespaces(e){this.options.ns.indexOf(e)<0&&this.options.ns.push(e)}removeNamespaces(e){const t=this.options.ns.indexOf(e);t>-1&&this.options.ns.splice(t,1)}getResource(e,t,n){let r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};const i=void 0!==r.keySeparator?r.keySeparator:this.options.keySeparator,o=void 0!==r.ignoreJSONStructure?r.ignoreJSONStructure:this.options.ignoreJSONStructure;let s;e.indexOf(".")>-1?s=e.split("."):(s=[e,t],n&&(Array.isArray(n)?s.push(...n):"string"===typeof n&&i?s.push(...n.split(i)):s.push(n)));const a=aht(this.data,s);return!a&&!t&&!n&&e.indexOf(".")>-1&&(e=s[0],t=s[1],n=s.slice(2).join(".")),a||!o||"string"!==typeof n?a:fht(this.data&&this.data[e]&&this.data[e][t],n,i)}addResource(e,t,n,r){let i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{silent:!1};const o=void 0!==i.keySeparator?i.keySeparator:this.options.keySeparator;let s=[e,t];n&&(s=s.concat(o?n.split(o):n)),e.indexOf(".")>-1&&(s=e.split("."),r=t,t=s[1]),this.addNamespaces(t),sht(this.data,s,r),i.silent||this.emit("added",e,t,n,r)}addResources(e,t,n){let r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{silent:!1};for(const i in n)("string"===typeof n[i]||Array.isArray(n[i]))&&this.addResource(e,t,i,n[i],{silent:!0});r.silent||this.emit("added",e,t,n)}addResourceBundle(e,t,n,r,i){let o=arguments.length>5&&void 0!==arguments[5]?arguments[5]:{silent:!1,skipCopy:!1},s=[e,t];e.indexOf(".")>-1&&(s=e.split("."),r=n,n=t,t=s[1]),this.addNamespaces(t);let a=aht(this.data,s)||{};o.skipCopy||(n=JSON.parse(JSON.stringify(n))),r?lht(a,n,i):a={...a,...n},sht(this.data,s,a),o.silent||this.emit("added",e,t,n)}removeResourceBundle(e,t){this.hasResourceBundle(e,t)&&delete this.data[e][t],this.removeNamespaces(t),this.emit("removed",e,t)}hasResourceBundle(e,t){return void 0!==this.getResource(e,t)}getResourceBundle(e,t){return t||(t=this.options.defaultNS),"v1"===this.options.compatibilityAPI?{...this.getResource(e,t)}:this.getResource(e,t)}getDataByLanguage(e){return this.data[e]}hasLanguageSomeTranslations(e){const t=this.getDataByLanguage(e);return!!(t&&Object.keys(t)||[]).find((e=>t[e]&&Object.keys(t[e]).length>0))}toJSON(){return this.data}}var yht={processors:{},addPostProcessor(e){this.processors[e.name]=e},handle(e,t,n,r,i){return e.forEach((e=>{this.processors[e]&&(t=this.processors[e].process(t,n,r,i))})),t}};const vht={};class _ht extends tht{constructor(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};super(),function(e,t,n){e.forEach((e=>{t[e]&&(n[e]=t[e])}))}(["resourceStore","languageUtils","pluralResolver","interpolator","backendConnector","i18nFormat","utils"],e,this),this.options=t,void 0===this.options.keySeparator&&(this.options.keySeparator="."),this.logger=eht.create("translator")}changeLanguage(e){e&&(this.language=e)}exists(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{interpolation:{}};if(void 0===e||null===e)return!1;const n=this.resolve(e,t);return n&&void 0!==n.res}extractFromKey(e,t){let n=void 0!==t.nsSeparator?t.nsSeparator:this.options.nsSeparator;void 0===n&&(n=":");const r=void 0!==t.keySeparator?t.keySeparator:this.options.keySeparator;let i=t.ns||this.options.defaultNS||[];const o=n&&e.indexOf(n)>-1,s=!this.options.userDefinedKeySeparator&&!t.keySeparator&&!this.options.userDefinedNsSeparator&&!t.nsSeparator&&!function(e,t,n){t=t||"",n=n||"";const r=hht.filter((e=>t.indexOf(e)<0&&n.indexOf(e)<0));if(0===r.length)return!0;const i=pht.getRegExp("(".concat(r.map((e=>"?"===e?"\\?":e)).join("|"),")"));let o=!i.test(e);if(!o){const t=e.indexOf(n);t>0&&!i.test(e.substring(0,t))&&(o=!0)}return o}(e,n,r);if(o&&!s){const t=e.match(this.interpolator.nestingRegexp);if(t&&t.length>0)return{key:e,namespaces:i};const o=e.split(n);(n!==r||n===r&&this.options.ns.indexOf(o[0])>-1)&&(i=o.shift()),e=o.join(r)}return"string"===typeof i&&(i=[i]),{key:e,namespaces:i}}translate(e,t,n){if("object"!==typeof t&&this.options.overloadTranslationOptionHandler&&(t=this.options.overloadTranslationOptionHandler(arguments)),"object"===typeof t&&(t={...t}),t||(t={}),void 0===e||null===e)return"";Array.isArray(e)||(e=[String(e)]);const r=void 0!==t.returnDetails?t.returnDetails:this.options.returnDetails,i=void 0!==t.keySeparator?t.keySeparator:this.options.keySeparator,{key:o,namespaces:s}=this.extractFromKey(e[e.length-1],t),a=s[s.length-1],l=t.lng||this.language,c=t.appendNamespaceToCIMode||this.options.appendNamespaceToCIMode;if(l&&"cimode"===l.toLowerCase()){if(c){const e=t.nsSeparator||this.options.nsSeparator;return r?{res:"".concat(a).concat(e).concat(o),usedKey:o,exactUsedKey:o,usedLng:l,usedNS:a,usedParams:this.getUsedParamsDetails(t)}:"".concat(a).concat(e).concat(o)}return r?{res:o,usedKey:o,exactUsedKey:o,usedLng:l,usedNS:a,usedParams:this.getUsedParamsDetails(t)}:o}const u=this.resolve(e,t);let d=u&&u.res;const h=u&&u.usedKey||o,p=u&&u.exactUsedKey||o,f=Object.prototype.toString.apply(d),g=void 0!==t.joinArrays?t.joinArrays:this.options.joinArrays,m=!this.i18nFormat||this.i18nFormat.handleAsObject;if(m&&d&&("string"!==typeof d&&"boolean"!==typeof d&&"number"!==typeof d)&&["[object Number]","[object Function]","[object RegExp]"].indexOf(f)<0&&("string"!==typeof g||!Array.isArray(d))){if(!t.returnObjects&&!this.options.returnObjects){this.options.returnedObjectHandler||this.logger.warn("accessing an object - but returnObjects options is not enabled!");const e=this.options.returnedObjectHandler?this.options.returnedObjectHandler(h,d,{...t,ns:s}):"key '".concat(o," (").concat(this.language,")' returned an object instead of string.");return r?(u.res=e,u.usedParams=this.getUsedParamsDetails(t),u):e}if(i){const e=Array.isArray(d),n=e?[]:{},r=e?p:h;for(const o in d)if(Object.prototype.hasOwnProperty.call(d,o)){const e="".concat(r).concat(i).concat(o);n[o]=this.translate(e,{...t,joinArrays:!1,ns:s}),n[o]===e&&(n[o]=d[o])}d=n}}else if(m&&"string"===typeof g&&Array.isArray(d))d=d.join(g),d&&(d=this.extendTranslation(d,e,t,n));else{let r=!1,s=!1;const c=void 0!==t.count&&"string"!==typeof t.count,h=_ht.hasDefaultValue(t),p=c?this.pluralResolver.getSuffix(l,t.count,t):"",f=t.ordinal&&c?this.pluralResolver.getSuffix(l,t.count,{ordinal:!1}):"",g=c&&!t.ordinal&&0===t.count&&this.pluralResolver.shouldUseIntlApi(),m=g&&t["defaultValue".concat(this.options.pluralSeparator,"zero")]||t["defaultValue".concat(p)]||t["defaultValue".concat(f)]||t.defaultValue;!this.isValidLookup(d)&&h&&(r=!0,d=m),this.isValidLookup(d)||(s=!0,d=o);const y=(t.missingKeyNoValueFallbackToKey||this.options.missingKeyNoValueFallbackToKey)&&s?void 0:d,v=h&&m!==d&&this.options.updateMissing;if(s||r||v){if(this.logger.log(v?"updateKey":"missingKey",l,a,o,v?m:d),i){const e=this.resolve(o,{...t,keySeparator:!1});e&&e.res&&this.logger.warn("Seems the loaded translations were in flat JSON format instead of nested. Either set keySeparator: false on init or make sure your translations are published in nested format.")}let e=[];const n=this.languageUtils.getFallbackCodes(this.options.fallbackLng,t.lng||this.language);if("fallback"===this.options.saveMissingTo&&n&&n[0])for(let t=0;t<n.length;t++)e.push(n[t]);else"all"===this.options.saveMissingTo?e=this.languageUtils.toResolveHierarchy(t.lng||this.language):e.push(t.lng||this.language);const r=(e,n,r)=>{const i=h&&r!==d?r:y;this.options.missingKeyHandler?this.options.missingKeyHandler(e,a,n,i,v,t):this.backendConnector&&this.backendConnector.saveMissing&&this.backendConnector.saveMissing(e,a,n,i,v,t),this.emit("missingKey",e,a,n,d)};this.options.saveMissing&&(this.options.saveMissingPlurals&&c?e.forEach((e=>{const n=this.pluralResolver.getSuffixes(e,t);g&&t["defaultValue".concat(this.options.pluralSeparator,"zero")]&&n.indexOf("".concat(this.options.pluralSeparator,"zero"))<0&&n.push("".concat(this.options.pluralSeparator,"zero")),n.forEach((n=>{r([e],o+n,t["defaultValue".concat(n)]||m)}))})):r(e,o,m))}d=this.extendTranslation(d,e,t,u,n),s&&d===o&&this.options.appendNamespaceToMissingKey&&(d="".concat(a,":").concat(o)),(s||r)&&this.options.parseMissingKeyHandler&&(d="v1"!==this.options.compatibilityAPI?this.options.parseMissingKeyHandler(this.options.appendNamespaceToMissingKey?"".concat(a,":").concat(o):o,r?d:void 0):this.options.parseMissingKeyHandler(d))}return r?(u.res=d,u.usedParams=this.getUsedParamsDetails(t),u):d}extendTranslation(e,t,n,r,i){var o=this;if(this.i18nFormat&&this.i18nFormat.parse)e=this.i18nFormat.parse(e,{...this.options.interpolation.defaultVariables,...n},n.lng||this.language||r.usedLng,r.usedNS,r.usedKey,{resolved:r});else if(!n.skipInterpolation){n.interpolation&&this.interpolator.init({...n,interpolation:{...this.options.interpolation,...n.interpolation}});const s="string"===typeof e&&(n&&n.interpolation&&void 0!==n.interpolation.skipOnVariables?n.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables);let a;if(s){const t=e.match(this.interpolator.nestingRegexp);a=t&&t.length}let l=n.replace&&"string"!==typeof n.replace?n.replace:n;if(this.options.interpolation.defaultVariables&&(l={...this.options.interpolation.defaultVariables,...l}),e=this.interpolator.interpolate(e,l,n.lng||this.language,n),s){const t=e.match(this.interpolator.nestingRegexp);a<(t&&t.length)&&(n.nest=!1)}!n.lng&&"v1"!==this.options.compatibilityAPI&&r&&r.res&&(n.lng=r.usedLng),!1!==n.nest&&(e=this.interpolator.nest(e,(function(){for(var e=arguments.length,r=new Array(e),s=0;s<e;s++)r[s]=arguments[s];return i&&i[0]===r[0]&&!n.context?(o.logger.warn("It seems you are nesting recursively key: ".concat(r[0]," in key: ").concat(t[0])),null):o.translate(...r,t)}),n)),n.interpolation&&this.interpolator.reset()}const s=n.postProcess||this.options.postProcess,a="string"===typeof s?[s]:s;return void 0!==e&&null!==e&&a&&a.length&&!1!==n.applyPostProcessor&&(e=yht.handle(a,e,t,this.options&&this.options.postProcessPassResolved?{i18nResolved:{...r,usedParams:this.getUsedParamsDetails(n)},...n}:n,this)),e}resolve(e){let t,n,r,i,o,s=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return"string"===typeof e&&(e=[e]),e.forEach((e=>{if(this.isValidLookup(t))return;const a=this.extractFromKey(e,s),l=a.key;n=l;let c=a.namespaces;this.options.fallbackNS&&(c=c.concat(this.options.fallbackNS));const u=void 0!==s.count&&"string"!==typeof s.count,d=u&&!s.ordinal&&0===s.count&&this.pluralResolver.shouldUseIntlApi(),h=void 0!==s.context&&("string"===typeof s.context||"number"===typeof s.context)&&""!==s.context,p=s.lngs?s.lngs:this.languageUtils.toResolveHierarchy(s.lng||this.language,s.fallbackLng);c.forEach((e=>{this.isValidLookup(t)||(o=e,!vht["".concat(p[0],"-").concat(e)]&&this.utils&&this.utils.hasLoadedNamespace&&!this.utils.hasLoadedNamespace(o)&&(vht["".concat(p[0],"-").concat(e)]=!0,this.logger.warn('key "'.concat(n,'" for languages "').concat(p.join(", "),'" won\'t get resolved as namespace "').concat(o,'" was not yet loaded'),"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!")),p.forEach((n=>{if(this.isValidLookup(t))return;i=n;const o=[l];if(this.i18nFormat&&this.i18nFormat.addLookupKeys)this.i18nFormat.addLookupKeys(o,l,n,e,s);else{let e;u&&(e=this.pluralResolver.getSuffix(n,s.count,s));const t="".concat(this.options.pluralSeparator,"zero"),r="".concat(this.options.pluralSeparator,"ordinal").concat(this.options.pluralSeparator);if(u&&(o.push(l+e),s.ordinal&&0===e.indexOf(r)&&o.push(l+e.replace(r,this.options.pluralSeparator)),d&&o.push(l+t)),h){const n="".concat(l).concat(this.options.contextSeparator).concat(s.context);o.push(n),u&&(o.push(n+e),s.ordinal&&0===e.indexOf(r)&&o.push(n+e.replace(r,this.options.pluralSeparator)),d&&o.push(n+t))}}let a;for(;a=o.pop();)this.isValidLookup(t)||(r=a,t=this.getResource(n,e,a,s))})))}))})),{res:t,usedKey:n,exactUsedKey:r,usedLng:i,usedNS:o}}isValidLookup(e){return void 0!==e&&!(!this.options.returnNull&&null===e)&&!(!this.options.returnEmptyString&&""===e)}getResource(e,t,n){let r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};return this.i18nFormat&&this.i18nFormat.getResource?this.i18nFormat.getResource(e,t,n,r):this.resourceStore.getResource(e,t,n,r)}getUsedParamsDetails(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const t=["defaultValue","ordinal","context","replace","lng","lngs","fallbackLng","ns","keySeparator","nsSeparator","returnObjects","returnDetails","joinArrays","postProcess","interpolation"],n=e.replace&&"string"!==typeof e.replace;let r=n?e.replace:e;if(n&&"undefined"!==typeof e.count&&(r.count=e.count),this.options.interpolation.defaultVariables&&(r={...this.options.interpolation.defaultVariables,...r}),!n){r={...r};for(const e of t)delete r[e]}return r}static hasDefaultValue(e){const t="defaultValue";for(const n in e)if(Object.prototype.hasOwnProperty.call(e,n)&&t===n.substring(0,12)&&void 0!==e[n])return!0;return!1}}function bht(e){return e.charAt(0).toUpperCase()+e.slice(1)}class xht{constructor(e){this.options=e,this.supportedLngs=this.options.supportedLngs||!1,this.logger=eht.create("languageUtils")}getScriptPartFromCode(e){if(!(e=ght(e))||e.indexOf("-")<0)return null;const t=e.split("-");return 2===t.length?null:(t.pop(),"x"===t[t.length-1].toLowerCase()?null:this.formatLanguageCode(t.join("-")))}getLanguagePartFromCode(e){if(!(e=ght(e))||e.indexOf("-")<0)return e;const t=e.split("-");return this.formatLanguageCode(t[0])}formatLanguageCode(e){if("string"===typeof e&&e.indexOf("-")>-1){const t=["hans","hant","latn","cyrl","cans","mong","arab"];let n=e.split("-");return this.options.lowerCaseLng?n=n.map((e=>e.toLowerCase())):2===n.length?(n[0]=n[0].toLowerCase(),n[1]=n[1].toUpperCase(),t.indexOf(n[1].toLowerCase())>-1&&(n[1]=bht(n[1].toLowerCase()))):3===n.length&&(n[0]=n[0].toLowerCase(),2===n[1].length&&(n[1]=n[1].toUpperCase()),"sgn"!==n[0]&&2===n[2].length&&(n[2]=n[2].toUpperCase()),t.indexOf(n[1].toLowerCase())>-1&&(n[1]=bht(n[1].toLowerCase())),t.indexOf(n[2].toLowerCase())>-1&&(n[2]=bht(n[2].toLowerCase()))),n.join("-")}return this.options.cleanCode||this.options.lowerCaseLng?e.toLowerCase():e}isSupportedCode(e){return("languageOnly"===this.options.load||this.options.nonExplicitSupportedLngs)&&(e=this.getLanguagePartFromCode(e)),!this.supportedLngs||!this.supportedLngs.length||this.supportedLngs.indexOf(e)>-1}getBestMatchFromCodes(e){if(!e)return null;let t;return e.forEach((e=>{if(t)return;const n=this.formatLanguageCode(e);this.options.supportedLngs&&!this.isSupportedCode(n)||(t=n)})),!t&&this.options.supportedLngs&&e.forEach((e=>{if(t)return;const n=this.getLanguagePartFromCode(e);if(this.isSupportedCode(n))return t=n;t=this.options.supportedLngs.find((e=>e===n?e:e.indexOf("-")<0&&n.indexOf("-")<0?void 0:e.indexOf("-")>0&&n.indexOf("-")<0&&e.substring(0,e.indexOf("-"))===n||0===e.indexOf(n)&&n.length>1?e:void 0))})),t||(t=this.getFallbackCodes(this.options.fallbackLng)[0]),t}getFallbackCodes(e,t){if(!e)return[];if("function"===typeof e&&(e=e(t)),"string"===typeof e&&(e=[e]),Array.isArray(e))return e;if(!t)return e.default||[];let n=e[t];return n||(n=e[this.getScriptPartFromCode(t)]),n||(n=e[this.formatLanguageCode(t)]),n||(n=e[this.getLanguagePartFromCode(t)]),n||(n=e.default),n||[]}toResolveHierarchy(e,t){const n=this.getFallbackCodes(t||this.options.fallbackLng||[],e),r=[],i=e=>{e&&(this.isSupportedCode(e)?r.push(e):this.logger.warn("rejecting language code not found in supportedLngs: ".concat(e)))};return"string"===typeof e&&(e.indexOf("-")>-1||e.indexOf("_")>-1)?("languageOnly"!==this.options.load&&i(this.formatLanguageCode(e)),"languageOnly"!==this.options.load&&"currentOnly"!==this.options.load&&i(this.getScriptPartFromCode(e)),"currentOnly"!==this.options.load&&i(this.getLanguagePartFromCode(e))):"string"===typeof e&&i(this.formatLanguageCode(e)),n.forEach((e=>{r.indexOf(e)<0&&i(this.formatLanguageCode(e))})),r}}let Sht=[{lngs:["ach","ak","am","arn","br","fil","gun","ln","mfe","mg","mi","oc","pt","pt-BR","tg","tl","ti","tr","uz","wa"],nr:[1,2],fc:1},{lngs:["af","an","ast","az","bg","bn","ca","da","de","dev","el","en","eo","es","et","eu","fi","fo","fur","fy","gl","gu","ha","hi","hu","hy","ia","it","kk","kn","ku","lb","mai","ml","mn","mr","nah","nap","nb","ne","nl","nn","no","nso","pa","pap","pms","ps","pt-PT","rm","sco","se","si","so","son","sq","sv","sw","ta","te","tk","ur","yo"],nr:[1,2],fc:2},{lngs:["ay","bo","cgg","fa","ht","id","ja","jbo","ka","km","ko","ky","lo","ms","sah","su","th","tt","ug","vi","wo","zh"],nr:[1],fc:3},{lngs:["be","bs","cnr","dz","hr","ru","sr","uk"],nr:[1,2,5],fc:4},{lngs:["ar"],nr:[0,1,2,3,11,100],fc:5},{lngs:["cs","sk"],nr:[1,2,5],fc:6},{lngs:["csb","pl"],nr:[1,2,5],fc:7},{lngs:["cy"],nr:[1,2,3,8],fc:8},{lngs:["fr"],nr:[1,2],fc:9},{lngs:["ga"],nr:[1,2,3,7,11],fc:10},{lngs:["gd"],nr:[1,2,3,20],fc:11},{lngs:["is"],nr:[1,2],fc:12},{lngs:["jv"],nr:[0,1],fc:13},{lngs:["kw"],nr:[1,2,3,4],fc:14},{lngs:["lt"],nr:[1,2,10],fc:15},{lngs:["lv"],nr:[1,2,0],fc:16},{lngs:["mk"],nr:[1,2],fc:17},{lngs:["mnk"],nr:[0,1,2],fc:18},{lngs:["mt"],nr:[1,2,11,20],fc:19},{lngs:["or"],nr:[2,1],fc:2},{lngs:["ro"],nr:[1,2,20],fc:20},{lngs:["sl"],nr:[5,1,2,3],fc:21},{lngs:["he","iw"],nr:[1,2,20,21],fc:22}],wht={1:function(e){return Number(e>1)},2:function(e){return Number(1!=e)},3:function(e){return 0},4:function(e){return Number(e%10==1&&e%100!=11?0:e%10>=2&&e%10<=4&&(e%100<10||e%100>=20)?1:2)},5:function(e){return Number(0==e?0:1==e?1:2==e?2:e%100>=3&&e%100<=10?3:e%100>=11?4:5)},6:function(e){return Number(1==e?0:e>=2&&e<=4?1:2)},7:function(e){return Number(1==e?0:e%10>=2&&e%10<=4&&(e%100<10||e%100>=20)?1:2)},8:function(e){return Number(1==e?0:2==e?1:8!=e&&11!=e?2:3)},9:function(e){return Number(e>=2)},10:function(e){return Number(1==e?0:2==e?1:e<7?2:e<11?3:4)},11:function(e){return Number(1==e||11==e?0:2==e||12==e?1:e>2&&e<20?2:3)},12:function(e){return Number(e%10!=1||e%100==11)},13:function(e){return Number(0!==e)},14:function(e){return Number(1==e?0:2==e?1:3==e?2:3)},15:function(e){return Number(e%10==1&&e%100!=11?0:e%10>=2&&(e%100<10||e%100>=20)?1:2)},16:function(e){return Number(e%10==1&&e%100!=11?0:0!==e?1:2)},17:function(e){return Number(1==e||e%10==1&&e%100!=11?0:1)},18:function(e){return Number(0==e?0:1==e?1:2)},19:function(e){return Number(1==e?0:0==e||e%100>1&&e%100<11?1:e%100>10&&e%100<20?2:3)},20:function(e){return Number(1==e?0:0==e||e%100>0&&e%100<20?1:2)},21:function(e){return Number(e%100==1?1:e%100==2?2:e%100==3||e%100==4?3:0)},22:function(e){return Number(1==e?0:2==e?1:(e<0||e>10)&&e%10==0?2:3)}};const Eht=["v1","v2","v3"],Pht=["v4"],Cht={zero:0,one:1,two:2,few:3,many:4,other:5};class Aht{constructor(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.languageUtils=e,this.options=t,this.logger=eht.create("pluralResolver"),this.options.compatibilityJSON&&!Pht.includes(this.options.compatibilityJSON)||"undefined"!==typeof Intl&&Intl.PluralRules||(this.options.compatibilityJSON="v3",this.logger.error("Your environment seems not to be Intl API compatible, use an Intl.PluralRules polyfill. Will fallback to the compatibilityJSON v3 format handling.")),this.rules=function(){const e={};return Sht.forEach((t=>{t.lngs.forEach((n=>{e[n]={numbers:t.nr,plurals:wht[t.fc]}}))})),e}()}addRule(e,t){this.rules[e]=t}getRule(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(this.shouldUseIntlApi())try{return new Intl.PluralRules(ght("dev"===e?"en":e),{type:t.ordinal?"ordinal":"cardinal"})}catch(Rmt){return}return this.rules[e]||this.rules[this.languageUtils.getLanguagePartFromCode(e)]}needsPlural(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const n=this.getRule(e,t);return this.shouldUseIntlApi()?n&&n.resolvedOptions().pluralCategories.length>1:n&&n.numbers.length>1}getPluralFormsOfKey(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return this.getSuffixes(e,n).map((e=>"".concat(t).concat(e)))}getSuffixes(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const n=this.getRule(e,t);return n?this.shouldUseIntlApi()?n.resolvedOptions().pluralCategories.sort(((e,t)=>Cht[e]-Cht[t])).map((e=>"".concat(this.options.prepend).concat(t.ordinal?"ordinal".concat(this.options.prepend):"").concat(e))):n.numbers.map((n=>this.getSuffix(e,n,t))):[]}getSuffix(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};const r=this.getRule(e,n);return r?this.shouldUseIntlApi()?"".concat(this.options.prepend).concat(n.ordinal?"ordinal".concat(this.options.prepend):"").concat(r.select(t)):this.getSuffixRetroCompatible(r,t):(this.logger.warn("no plural rule found for: ".concat(e)),"")}getSuffixRetroCompatible(e,t){const n=e.noAbs?e.plurals(t):e.plurals(Math.abs(t));let r=e.numbers[n];this.options.simplifyPluralSuffix&&2===e.numbers.length&&1===e.numbers[0]&&(2===r?r="plural":1===r&&(r=""));const i=()=>this.options.prepend&&r.toString()?this.options.prepend+r.toString():r.toString();return"v1"===this.options.compatibilityJSON?1===r?"":"number"===typeof r?"_plural_".concat(r.toString()):i():"v2"===this.options.compatibilityJSON||this.options.simplifyPluralSuffix&&2===e.numbers.length&&1===e.numbers[0]?i():this.options.prepend&&n.toString()?this.options.prepend+n.toString():n.toString()}shouldUseIntlApi(){return!Eht.includes(this.options.compatibilityJSON)}}function kht(e,t,n){let r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:".",i=!(arguments.length>4&&void 0!==arguments[4])||arguments[4],o=function(e,t,n){const r=aht(e,n);return void 0!==r?r:aht(t,n)}(e,t,n);return!o&&i&&"string"===typeof n&&(o=fht(e,n,r),void 0===o&&(o=fht(t,n,r))),o}class jht{constructor(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.logger=eht.create("interpolator"),this.options=e,this.format=e.interpolation&&e.interpolation.format||(e=>e),this.init(e)}init(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};e.interpolation||(e.interpolation={escapeValue:!0});const{escape:t,escapeValue:n,useRawValueToEscape:r,prefix:i,prefixEscaped:o,suffix:s,suffixEscaped:a,formatSeparator:l,unescapeSuffix:c,unescapePrefix:u,nestingPrefix:d,nestingPrefixEscaped:h,nestingSuffix:p,nestingSuffixEscaped:f,nestingOptionsSeparator:g,maxReplaces:m,alwaysFormat:y}=e.interpolation;this.escape=void 0!==t?t:dht,this.escapeValue=void 0===n||n,this.useRawValueToEscape=void 0!==r&&r,this.prefix=i?cht(i):o||"{{",this.suffix=s?cht(s):a||"}}",this.formatSeparator=l||",",this.unescapePrefix=c?"":u||"-",this.unescapeSuffix=this.unescapePrefix?"":c||"",this.nestingPrefix=d?cht(d):h||cht("$t("),this.nestingSuffix=p?cht(p):f||cht(")"),this.nestingOptionsSeparator=g||",",this.maxReplaces=m||1e3,this.alwaysFormat=void 0!==y&&y,this.resetRegExp()}reset(){this.options&&this.init(this.options)}resetRegExp(){const e=(e,t)=>e&&e.source===t?(e.lastIndex=0,e):new RegExp(t,"g");this.regexp=e(this.regexp,"".concat(this.prefix,"(.+?)").concat(this.suffix)),this.regexpUnescape=e(this.regexpUnescape,"".concat(this.prefix).concat(this.unescapePrefix,"(.+?)").concat(this.unescapeSuffix).concat(this.suffix)),this.nestingRegexp=e(this.nestingRegexp,"".concat(this.nestingPrefix,"(.+?)").concat(this.nestingSuffix))}interpolate(e,t,n,r){let i,o,s;const a=this.options&&this.options.interpolation&&this.options.interpolation.defaultVariables||{};function l(e){return e.replace(/\$/g,"$$$$")}const c=e=>{if(e.indexOf(this.formatSeparator)<0){const i=kht(t,a,e,this.options.keySeparator,this.options.ignoreJSONStructure);return this.alwaysFormat?this.format(i,void 0,n,{...r,...t,interpolationkey:e}):i}const i=e.split(this.formatSeparator),o=i.shift().trim(),s=i.join(this.formatSeparator).trim();return this.format(kht(t,a,o,this.options.keySeparator,this.options.ignoreJSONStructure),s,n,{...r,...t,interpolationkey:o})};this.resetRegExp();const u=r&&r.missingInterpolationHandler||this.options.missingInterpolationHandler,d=r&&r.interpolation&&void 0!==r.interpolation.skipOnVariables?r.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables;return[{regex:this.regexpUnescape,safeValue:e=>l(e)},{regex:this.regexp,safeValue:e=>this.escapeValue?l(this.escape(e)):l(e)}].forEach((t=>{for(s=0;i=t.regex.exec(e);){const n=i[1].trim();if(o=c(n),void 0===o)if("function"===typeof u){const t=u(e,i,r);o="string"===typeof t?t:""}else if(r&&Object.prototype.hasOwnProperty.call(r,n))o="";else{if(d){o=i[0];continue}this.logger.warn("missed to pass in variable ".concat(n," for interpolating ").concat(e)),o=""}else"string"===typeof o||this.useRawValueToEscape||(o=rht(o));const a=t.safeValue(o);if(e=e.replace(i[0],a),d?(t.regex.lastIndex+=o.length,t.regex.lastIndex-=i[0].length):t.regex.lastIndex=0,s++,s>=this.maxReplaces)break}})),e}nest(e,t){let n,r,i,o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};function s(e,t){const n=this.nestingOptionsSeparator;if(e.indexOf(n)<0)return e;const r=e.split(new RegExp("".concat(n,"[ ]*{")));let o="{".concat(r[1]);e=r[0],o=this.interpolate(o,i);const s=o.match(/'/g),a=o.match(/"/g);(s&&s.length%2===0&&!a||a.length%2!==0)&&(o=o.replace(/'/g,'"'));try{i=JSON.parse(o),t&&(i={...t,...i})}catch(l){return this.logger.warn("failed parsing options string in nesting for key ".concat(e),l),"".concat(e).concat(n).concat(o)}return i.defaultValue&&i.defaultValue.indexOf(this.prefix)>-1&&delete i.defaultValue,e}for(;n=this.nestingRegexp.exec(e);){let a=[];i={...o},i=i.replace&&"string"!==typeof i.replace?i.replace:i,i.applyPostProcessor=!1,delete i.defaultValue;let l=!1;if(-1!==n[0].indexOf(this.formatSeparator)&&!/{.*}/.test(n[1])){const e=n[1].split(this.formatSeparator).map((e=>e.trim()));n[1]=e.shift(),a=e,l=!0}if(r=t(s.call(this,n[1].trim(),i),i),r&&n[0]===e&&"string"!==typeof r)return r;"string"!==typeof r&&(r=rht(r)),r||(this.logger.warn("missed to resolve ".concat(n[1]," for nesting ").concat(e)),r=""),l&&(r=a.reduce(((e,t)=>this.format(e,t,o.lng,{...o,interpolationkey:n[1].trim()})),r.trim())),e=e.replace(n[0],r),this.regexp.lastIndex=0}return e}}function Iht(e){const t={};return function(n,r,i){const o=r+JSON.stringify(i);let s=t[o];return s||(s=e(ght(r),i),t[o]=s),s(n)}}class Ght{constructor(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.logger=eht.create("formatter"),this.options=e,this.formats={number:Iht(((e,t)=>{const n=new Intl.NumberFormat(e,{...t});return e=>n.format(e)})),currency:Iht(((e,t)=>{const n=new Intl.NumberFormat(e,{...t,style:"currency"});return e=>n.format(e)})),datetime:Iht(((e,t)=>{const n=new Intl.DateTimeFormat(e,{...t});return e=>n.format(e)})),relativetime:Iht(((e,t)=>{const n=new Intl.RelativeTimeFormat(e,{...t});return e=>n.format(e,t.range||"day")})),list:Iht(((e,t)=>{const n=new Intl.ListFormat(e,{...t});return e=>n.format(e)}))},this.init(e)}init(e){const t=(arguments.length>1&&void 0!==arguments[1]?arguments[1]:{interpolation:{}}).interpolation;this.formatSeparator=t.formatSeparator?t.formatSeparator:t.formatSeparator||","}add(e,t){this.formats[e.toLowerCase().trim()]=t}addCached(e,t){this.formats[e.toLowerCase().trim()]=Iht(t)}format(e,t,n){let r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};const i=t.split(this.formatSeparator).reduce(((e,t)=>{const{formatName:i,formatOptions:o}=function(e){let t=e.toLowerCase().trim();const n={};if(e.indexOf("(")>-1){const r=e.split("(");t=r[0].toLowerCase().trim();const i=r[1].substring(0,r[1].length-1);"currency"===t&&i.indexOf(":")<0?n.currency||(n.currency=i.trim()):"relativetime"===t&&i.indexOf(":")<0?n.range||(n.range=i.trim()):i.split(";").forEach((e=>{if(e){const[t,...r]=e.split(":"),i=r.join(":").trim().replace(/^'+|'+$/g,""),o=t.trim();n[o]||(n[o]=i),"false"===i&&(n[o]=!1),"true"===i&&(n[o]=!0),isNaN(i)||(n[o]=parseInt(i,10))}}))}return{formatName:t,formatOptions:n}}(t);if(this.formats[i]){let t=e;try{const s=r&&r.formatParams&&r.formatParams[r.interpolationkey]||{},a=s.locale||s.lng||r.locale||r.lng||n;t=this.formats[i](e,a,{...o,...r,...s})}catch(s){this.logger.warn(s)}return t}return this.logger.warn("there was no format function for ".concat(i)),e}),e);return i}}class Tht extends tht{constructor(e,t,n){let r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};super(),this.backend=e,this.store=t,this.services=n,this.languageUtils=n.languageUtils,this.options=r,this.logger=eht.create("backendConnector"),this.waitingReads=[],this.maxParallelReads=r.maxParallelReads||10,this.readingCalls=0,this.maxRetries=r.maxRetries>=0?r.maxRetries:5,this.retryTimeout=r.retryTimeout>=1?r.retryTimeout:350,this.state={},this.queue=[],this.backend&&this.backend.init&&this.backend.init(n,r.backend,r)}queueLoad(e,t,n,r){const i={},o={},s={},a={};return e.forEach((e=>{let r=!0;t.forEach((t=>{const s="".concat(e,"|").concat(t);!n.reload&&this.store.hasResourceBundle(e,t)?this.state[s]=2:this.state[s]<0||(1===this.state[s]?void 0===o[s]&&(o[s]=!0):(this.state[s]=1,r=!1,void 0===o[s]&&(o[s]=!0),void 0===i[s]&&(i[s]=!0),void 0===a[t]&&(a[t]=!0)))})),r||(s[e]=!0)})),(Object.keys(i).length||Object.keys(o).length)&&this.queue.push({pending:o,pendingCount:Object.keys(o).length,loaded:{},errors:[],callback:r}),{toLoad:Object.keys(i),pending:Object.keys(o),toLoadLanguages:Object.keys(s),toLoadNamespaces:Object.keys(a)}}loaded(e,t,n){const r=e.split("|"),i=r[0],o=r[1];t&&this.emit("failedLoading",i,o,t),n&&this.store.addResourceBundle(i,o,n,void 0,void 0,{skipCopy:!0}),this.state[e]=t?-1:2;const s={};this.queue.forEach((n=>{!function(e,t,n,r){const{obj:i,k:o}=oht(e,t,Object);i[o]=i[o]||[],r&&(i[o]=i[o].concat(n)),r||i[o].push(n)}(n.loaded,[i],o),function(e,t){void 0!==e.pending[t]&&(delete e.pending[t],e.pendingCount--)}(n,e),t&&n.errors.push(t),0!==n.pendingCount||n.done||(Object.keys(n.loaded).forEach((e=>{s[e]||(s[e]={});const t=n.loaded[e];t.length&&t.forEach((t=>{void 0===s[e][t]&&(s[e][t]=!0)}))})),n.done=!0,n.errors.length?n.callback(n.errors):n.callback())})),this.emit("loaded",s),this.queue=this.queue.filter((e=>!e.done))}read(e,t,n){let r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0,i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:this.retryTimeout,o=arguments.length>5?arguments[5]:void 0;if(!e.length)return o(null,{});if(this.readingCalls>=this.maxParallelReads)return void this.waitingReads.push({lng:e,ns:t,fcName:n,tried:r,wait:i,callback:o});this.readingCalls++;const s=(s,a)=>{if(this.readingCalls--,this.waitingReads.length>0){const e=this.waitingReads.shift();this.read(e.lng,e.ns,e.fcName,e.tried,e.wait,e.callback)}s&&a&&r<this.maxRetries?setTimeout((()=>{this.read.call(this,e,t,n,r+1,2*i,o)}),i):o(s,a)},a=this.backend[n].bind(this.backend);if(2!==a.length)return a(e,t,s);try{const n=a(e,t);n&&"function"===typeof n.then?n.then((e=>s(null,e))).catch(s):s(null,n)}catch(Rmt){s(Rmt)}}prepareLoading(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=arguments.length>3?arguments[3]:void 0;if(!this.backend)return this.logger.warn("No backend was added via i18next.use. Will not load resources."),r&&r();"string"===typeof e&&(e=this.languageUtils.toResolveHierarchy(e)),"string"===typeof t&&(t=[t]);const i=this.queueLoad(e,t,n,r);if(!i.toLoad.length)return i.pending.length||r(),null;i.toLoad.forEach((e=>{this.loadOne(e)}))}load(e,t,n){this.prepareLoading(e,t,{},n)}reload(e,t,n){this.prepareLoading(e,t,{reload:!0},n)}loadOne(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";const n=e.split("|"),r=n[0],i=n[1];this.read(r,i,"read",void 0,void 0,((n,o)=>{n&&this.logger.warn("".concat(t,"loading namespace ").concat(i," for language ").concat(r," failed"),n),!n&&o&&this.logger.log("".concat(t,"loaded namespace ").concat(i," for language ").concat(r),o),this.loaded(e,n,o)}))}saveMissing(e,t,n,r,i){let o=arguments.length>5&&void 0!==arguments[5]?arguments[5]:{},s=arguments.length>6&&void 0!==arguments[6]?arguments[6]:()=>{};if(this.services.utils&&this.services.utils.hasLoadedNamespace&&!this.services.utils.hasLoadedNamespace(t))this.logger.warn('did not save key "'.concat(n,'" as the namespace "').concat(t,'" was not yet loaded'),"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!");else if(void 0!==n&&null!==n&&""!==n){if(this.backend&&this.backend.create){const a={...o,isUpdate:i},l=this.backend.create.bind(this.backend);if(l.length<6)try{let i;i=5===l.length?l(e,t,n,r,a):l(e,t,n,r),i&&"function"===typeof i.then?i.then((e=>s(null,e))).catch(s):s(null,i)}catch(Rmt){s(Rmt)}else l(e,t,n,r,s,a)}e&&e[0]&&this.store.addResource(e[0],t,n,r)}}}function Mht(){return{debug:!1,initImmediate:!0,ns:["translation"],defaultNS:["translation"],fallbackLng:["dev"],fallbackNS:!1,supportedLngs:!1,nonExplicitSupportedLngs:!1,load:"all",preload:!1,simplifyPluralSuffix:!0,keySeparator:".",nsSeparator:":",pluralSeparator:"_",contextSeparator:"_",partialBundledLanguages:!1,saveMissing:!1,updateMissing:!1,saveMissingTo:"fallback",saveMissingPlurals:!0,missingKeyHandler:!1,missingInterpolationHandler:!1,postProcess:!1,postProcessPassResolved:!1,returnNull:!1,returnEmptyString:!0,returnObjects:!1,joinArrays:!1,returnedObjectHandler:!1,parseMissingKeyHandler:!1,appendNamespaceToMissingKey:!1,appendNamespaceToCIMode:!1,overloadTranslationOptionHandler:function(e){let t={};if("object"===typeof e[1]&&(t=e[1]),"string"===typeof e[1]&&(t.defaultValue=e[1]),"string"===typeof e[2]&&(t.tDescription=e[2]),"object"===typeof e[2]||"object"===typeof e[3]){const n=e[3]||e[2];Object.keys(n).forEach((e=>{t[e]=n[e]}))}return t},interpolation:{escapeValue:!0,format:e=>e,prefix:"{{",suffix:"}}",formatSeparator:",",unescapePrefix:"-",nestingPrefix:"$t(",nestingSuffix:")",nestingOptionsSeparator:",",maxReplaces:1e3,skipOnVariables:!0}}}function Oht(e){return"string"===typeof e.ns&&(e.ns=[e.ns]),"string"===typeof e.fallbackLng&&(e.fallbackLng=[e.fallbackLng]),"string"===typeof e.fallbackNS&&(e.fallbackNS=[e.fallbackNS]),e.supportedLngs&&e.supportedLngs.indexOf("cimode")<0&&(e.supportedLngs=e.supportedLngs.concat(["cimode"])),e}function Rht(){}class Dht extends tht{constructor(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;var n;if(super(),this.options=Oht(e),this.services={},this.logger=eht,this.modules={external:[]},n=this,Object.getOwnPropertyNames(Object.getPrototypeOf(n)).forEach((e=>{"function"===typeof n[e]&&(n[e]=n[e].bind(n))})),t&&!this.isInitialized&&!e.isClone){if(!this.options.initImmediate)return this.init(e,t),this;setTimeout((()=>{this.init(e,t)}),0)}}init(){var e=this;let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=arguments.length>1?arguments[1]:void 0;this.isInitializing=!0,"function"===typeof t&&(n=t,t={}),!t.defaultNS&&!1!==t.defaultNS&&t.ns&&("string"===typeof t.ns?t.defaultNS=t.ns:t.ns.indexOf("translation")<0&&(t.defaultNS=t.ns[0]));const r=Mht();function i(e){return e?"function"===typeof e?new e:e:null}if(this.options={...r,...this.options,...Oht(t)},"v1"!==this.options.compatibilityAPI&&(this.options.interpolation={...r.interpolation,...this.options.interpolation}),void 0!==t.keySeparator&&(this.options.userDefinedKeySeparator=t.keySeparator),void 0!==t.nsSeparator&&(this.options.userDefinedNsSeparator=t.nsSeparator),!this.options.isClone){let t;this.modules.logger?eht.init(i(this.modules.logger),this.options):eht.init(null,this.options),this.modules.formatter?t=this.modules.formatter:"undefined"!==typeof Intl&&(t=Ght);const n=new xht(this.options);this.store=new mht(this.options.resources,this.options);const o=this.services;o.logger=eht,o.resourceStore=this.store,o.languageUtils=n,o.pluralResolver=new Aht(n,{prepend:this.options.pluralSeparator,compatibilityJSON:this.options.compatibilityJSON,simplifyPluralSuffix:this.options.simplifyPluralSuffix}),!t||this.options.interpolation.format&&this.options.interpolation.format!==r.interpolation.format||(o.formatter=i(t),o.formatter.init(o,this.options),this.options.interpolation.format=o.formatter.format.bind(o.formatter)),o.interpolator=new jht(this.options),o.utils={hasLoadedNamespace:this.hasLoadedNamespace.bind(this)},o.backendConnector=new Tht(i(this.modules.backend),o.resourceStore,o,this.options),o.backendConnector.on("*",(function(t){for(var n=arguments.length,r=new Array(n>1?n-1:0),i=1;i<n;i++)r[i-1]=arguments[i];e.emit(t,...r)})),this.modules.languageDetector&&(o.languageDetector=i(this.modules.languageDetector),o.languageDetector.init&&o.languageDetector.init(o,this.options.detection,this.options)),this.modules.i18nFormat&&(o.i18nFormat=i(this.modules.i18nFormat),o.i18nFormat.init&&o.i18nFormat.init(this)),this.translator=new _ht(this.services,this.options),this.translator.on("*",(function(t){for(var n=arguments.length,r=new Array(n>1?n-1:0),i=1;i<n;i++)r[i-1]=arguments[i];e.emit(t,...r)})),this.modules.external.forEach((e=>{e.init&&e.init(this)}))}if(this.format=this.options.interpolation.format,n||(n=Rht),this.options.fallbackLng&&!this.services.languageDetector&&!this.options.lng){const e=this.services.languageUtils.getFallbackCodes(this.options.fallbackLng);e.length>0&&"dev"!==e[0]&&(this.options.lng=e[0])}this.services.languageDetector||this.options.lng||this.logger.warn("init: no languageDetector is used and no lng is defined");["getResource","hasResourceBundle","getResourceBundle","getDataByLanguage"].forEach((t=>{this[t]=function(){return e.store[t](...arguments)}}));["addResource","addResources","addResourceBundle","removeResourceBundle"].forEach((t=>{this[t]=function(){return e.store[t](...arguments),e}}));const o=nht(),s=()=>{const e=(e,t)=>{this.isInitializing=!1,this.isInitialized&&!this.initializedStoreOnce&&this.logger.warn("init: i18next is already initialized. You should call init just once!"),this.isInitialized=!0,this.options.isClone||this.logger.log("initialized",this.options),this.emit("initialized",this.options),o.resolve(t),n(e,t)};if(this.languages&&"v1"!==this.options.compatibilityAPI&&!this.isInitialized)return e(null,this.t.bind(this));this.changeLanguage(this.options.lng,e)};return this.options.resources||!this.options.initImmediate?s():setTimeout(s,0),o}loadResources(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Rht;const n="string"===typeof e?e:this.language;if("function"===typeof e&&(t=e),!this.options.resources||this.options.partialBundledLanguages){if(n&&"cimode"===n.toLowerCase()&&(!this.options.preload||0===this.options.preload.length))return t();const e=[],r=t=>{if(!t)return;if("cimode"===t)return;this.services.languageUtils.toResolveHierarchy(t).forEach((t=>{"cimode"!==t&&e.indexOf(t)<0&&e.push(t)}))};if(n)r(n);else{this.services.languageUtils.getFallbackCodes(this.options.fallbackLng).forEach((e=>r(e)))}this.options.preload&&this.options.preload.forEach((e=>r(e))),this.services.backendConnector.load(e,this.options.ns,(e=>{e||this.resolvedLanguage||!this.language||this.setResolvedLanguage(this.language),t(e)}))}else t(null)}reloadResources(e,t,n){const r=nht();return e||(e=this.languages),t||(t=this.options.ns),n||(n=Rht),this.services.backendConnector.reload(e,t,(e=>{r.resolve(),n(e)})),r}use(e){if(!e)throw new Error("You are passing an undefined module! Please check the object you are passing to i18next.use()");if(!e.type)throw new Error("You are passing a wrong module! Please check the object you are passing to i18next.use()");return"backend"===e.type&&(this.modules.backend=e),("logger"===e.type||e.log&&e.warn&&e.error)&&(this.modules.logger=e),"languageDetector"===e.type&&(this.modules.languageDetector=e),"i18nFormat"===e.type&&(this.modules.i18nFormat=e),"postProcessor"===e.type&&yht.addPostProcessor(e),"formatter"===e.type&&(this.modules.formatter=e),"3rdParty"===e.type&&this.modules.external.push(e),this}setResolvedLanguage(e){if(e&&this.languages&&!(["cimode","dev"].indexOf(e)>-1))for(let t=0;t<this.languages.length;t++){const e=this.languages[t];if(!(["cimode","dev"].indexOf(e)>-1)&&this.store.hasLanguageSomeTranslations(e)){this.resolvedLanguage=e;break}}}changeLanguage(e,t){var n=this;this.isLanguageChangingTo=e;const r=nht();this.emit("languageChanging",e);const i=e=>{this.language=e,this.languages=this.services.languageUtils.toResolveHierarchy(e),this.resolvedLanguage=void 0,this.setResolvedLanguage(e)},o=(e,o)=>{o?(i(o),this.translator.changeLanguage(o),this.isLanguageChangingTo=void 0,this.emit("languageChanged",o),this.logger.log("languageChanged",o)):this.isLanguageChangingTo=void 0,r.resolve((function(){return n.t(...arguments)})),t&&t(e,(function(){return n.t(...arguments)}))},s=t=>{e||t||!this.services.languageDetector||(t=[]);const n="string"===typeof t?t:this.services.languageUtils.getBestMatchFromCodes(t);n&&(this.language||i(n),this.translator.language||this.translator.changeLanguage(n),this.services.languageDetector&&this.services.languageDetector.cacheUserLanguage&&this.services.languageDetector.cacheUserLanguage(n)),this.loadResources(n,(e=>{o(e,n)}))};return e||!this.services.languageDetector||this.services.languageDetector.async?!e&&this.services.languageDetector&&this.services.languageDetector.async?0===this.services.languageDetector.detect.length?this.services.languageDetector.detect().then(s):this.services.languageDetector.detect(s):s(e):s(this.services.languageDetector.detect()),r}getFixedT(e,t,n){var r=this;const i=function(e,t){let o;if("object"!==typeof t){for(var s=arguments.length,a=new Array(s>2?s-2:0),l=2;l<s;l++)a[l-2]=arguments[l];o=r.options.overloadTranslationOptionHandler([e,t].concat(a))}else o={...t};o.lng=o.lng||i.lng,o.lngs=o.lngs||i.lngs,o.ns=o.ns||i.ns,o.keyPrefix=o.keyPrefix||n||i.keyPrefix;const c=r.options.keySeparator||".";let u;return u=o.keyPrefix&&Array.isArray(e)?e.map((e=>"".concat(o.keyPrefix).concat(c).concat(e))):o.keyPrefix?"".concat(o.keyPrefix).concat(c).concat(e):e,r.t(u,o)};return"string"===typeof e?i.lng=e:i.lngs=e,i.ns=t,i.keyPrefix=n,i}t(){return this.translator&&this.translator.translate(...arguments)}exists(){return this.translator&&this.translator.exists(...arguments)}setDefaultNamespace(e){this.options.defaultNS=e}hasLoadedNamespace(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!this.isInitialized)return this.logger.warn("hasLoadedNamespace: i18next was not initialized",this.languages),!1;if(!this.languages||!this.languages.length)return this.logger.warn("hasLoadedNamespace: i18n.languages were undefined or empty",this.languages),!1;const n=t.lng||this.resolvedLanguage||this.languages[0],r=!!this.options&&this.options.fallbackLng,i=this.languages[this.languages.length-1];if("cimode"===n.toLowerCase())return!0;const o=(e,t)=>{const n=this.services.backendConnector.state["".concat(e,"|").concat(t)];return-1===n||2===n};if(t.precheck){const e=t.precheck(this,o);if(void 0!==e)return e}return!!this.hasResourceBundle(n,e)||(!(this.services.backendConnector.backend&&(!this.options.resources||this.options.partialBundledLanguages))||!(!o(n,e)||r&&!o(i,e)))}loadNamespaces(e,t){const n=nht();return this.options.ns?("string"===typeof e&&(e=[e]),e.forEach((e=>{this.options.ns.indexOf(e)<0&&this.options.ns.push(e)})),this.loadResources((e=>{n.resolve(),t&&t(e)})),n):(t&&t(),Promise.resolve())}loadLanguages(e,t){const n=nht();"string"===typeof e&&(e=[e]);const r=this.options.preload||[],i=e.filter((e=>r.indexOf(e)<0&&this.services.languageUtils.isSupportedCode(e)));return i.length?(this.options.preload=r.concat(i),this.loadResources((e=>{n.resolve(),t&&t(e)})),n):(t&&t(),Promise.resolve())}dir(e){if(e||(e=this.resolvedLanguage||(this.languages&&this.languages.length>0?this.languages[0]:this.language)),!e)return"rtl";const t=this.services&&this.services.languageUtils||new xht(Mht());return["ar","shu","sqr","ssh","xaa","yhd","yud","aao","abh","abv","acm","acq","acw","acx","acy","adf","ads","aeb","aec","afb","ajp","apc","apd","arb","arq","ars","ary","arz","auz","avl","ayh","ayl","ayn","ayp","bbz","pga","he","iw","ps","pbt","pbu","pst","prp","prd","ug","ur","ydd","yds","yih","ji","yi","hbo","men","xmn","fa","jpr","peo","pes","prs","dv","sam","ckb"].indexOf(t.getLanguagePartFromCode(e))>-1||e.toLowerCase().indexOf("-arab")>1?"rtl":"ltr"}static createInstance(){return new Dht(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},arguments.length>1?arguments[1]:void 0)}cloneInstance(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Rht;const n=e.forkResourceStore;n&&delete e.forkResourceStore;const r={...this.options,...e,isClone:!0},i=new Dht(r);void 0===e.debug&&void 0===e.prefix||(i.logger=i.logger.clone(e));return["store","services","language"].forEach((e=>{i[e]=this[e]})),i.services={...this.services},i.services.utils={hasLoadedNamespace:i.hasLoadedNamespace.bind(i)},n&&(i.store=new mht(this.store.data,r),i.services.resourceStore=i.store),i.translator=new _ht(i.services,r),i.translator.on("*",(function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];i.emit(e,...n)})),i.init(r,t),i.translator.options=r,i.translator.backendConnector.services.utils={hasLoadedNamespace:i.hasLoadedNamespace.bind(i)},i}toJSON(){return{options:this.options,store:this.store,language:this.language,languages:this.languages,resolvedLanguage:this.resolvedLanguage}}}const Nht=Dht.createInstance();Nht.createInstance=Dht.createInstance;Nht.createInstance,Nht.dir,Nht.init,Nht.loadResources,Nht.reloadResources,Nht.use,Nht.changeLanguage,Nht.getFixedT,Nht.t,Nht.exists,Nht.setDefaultNamespace,Nht.hasLoadedNamespace,Nht.loadNamespaces,Nht.loadLanguages;const Lht=JSON.parse('{"cover_report_title":"Thermal Inspection Report","cover_footer_generated_by":"Generated by","cover_footer_powered_by":"Powered by","cover_footer_before_printing":"Please consider your environmental responsibility before printing this PDF","table_of_contents_title":"Table of contents","asset_infos_title":"Asset information","asset_infos_overview":"Overview","asset_infos_asset_name":"Asset name","asset_infos_area":"Area size","asset_infos_total_power":"Total power","asset_infos_map_and_division":"Map and Division","asset_infos_inspection_history":"Inspection History","asset_info_inspection_date":"Inspection date","methodology_title":"Methodology","methodology_all_in_one":"All-in-One Software Suite","methodology_section_2.1":"This report was generated using SkyVisor, your in-house asset management software for solar and wind industries.","methodology_automatic_data_acquisition":"Automatic Data Acquisition","methodology_section_2.2_1":"SkyVisor Solar enables thermal drones to seamlessly track custom solar farm layouts while capturing visual and thermal images on the go. The drone adjusts to terrain elevation, panel orientation, and solar azimuth, enabling high-resolution, standardized data collection with unmatched precision.","methodology_section_2.2_2":"The fully automated inspection can be monitored on-site with the SkyVisor Mobile App on the drone remote controller, allowing for annotations of defects.","methodology_data_analysis":"Data Analysis","methodology_section_2.3_1":"Data collected is processed through our user-friendly SkyVisor Web Platform, enabling custom methods and categorization. To prepare the data for analysis, the data is first preprocessed, which entails identifying modules and conducting pre-categorization. Next, the SkyVisor AI pipeline is deployed, employing machine learning and deep learning methods for initial defect detection. Human analysis concludes the process, ensuring comprehensive defect analysis and actionable insights.","methodology_section_2.3_2":"Bring cutting-edge technology into your daily toolbox and unlock the full potential of your assets with SkyVisor!","methodology_IEC":"IEC Standard Compliance","methodology_section_2.4_1":"This inspection aligns with the guidelines outlined in the IEC TS 62446-3 Standard, which outlines the requirements for testing, documentation, and maintenance of photovoltaic modules and plants through outdoor infrared thermography.","methodology_section_2.4_2":"Part 3 of the IEC 62446 specifies the procedures for conducting outdoor thermographic (infrared) inspections of PV modules and plants while they are in operation. It focuses on utilizing passive techniques, meaning inspections occur under standard system operating conditions in natural sunlight without any external power or irradiation sources.","methodology_term":"Term","methodology_meanT_definition":"Average temperature within a photovoltaic module frame in \xb0C.","methodology_maxT_definition":"Highest temperature reached in one or several point of the solar module, expressed in \xb0C.","methodology_deltaT_definition":"Temperature difference between MeantT and MaxT in \xb0C.","methodology_defects_categorization":"Defects Categorization","methodology_damage":"Damage","methodology_action":"Action","methodology_next_step":"Next step","methodology_damage_1":"Cosmetic","methodology_damage_2":"Damage below wear and tear","methodology_damage_3":"Damage below wear and tear, physical impacts","methodology_damage_4":"Serious damage","methodology_damage_5":"Critical damage","methodology_action_1":"No need for immediate repairs","methodology_action_2":"Repair only if other damages are to be repaired","methodology_action_3":"Repair to be performed within the next 6 months","methodology_action_4":"Repair to be performed in the next 3 months, monitor damage","methodology_action_5":"Immediate action required, contact technical support","methodology_next_step_continue":"Continue operation","methodology_next_step_5":"STOP! Safety not ensured!","results_title":"Results","results_operational_summary":"Operational summary","results_equipment":"Equipment","results_generated_by":"Report generated by","results_generated_on":"Report generated on","results_operational_details":"Operational details","results_date":"Date","results_time":"Time","results_irradiance":"Irradiance","results_gsd":"GSD","results_rtk":"RTK used","results_operational_conclusions":"Operational conclusions","results_statistics":"Statistics","results_modules_impacted":"Total modules impacted","results_defects_resolved":"Defects resolved","results_change_status":"Change status ","results_breakdown_charts":"Defect breakdown charts","results_breakdown_type":"Breakdown by type","results_breakdown_severity":"Breakdown by severity","results_breakdown_temperature":"Breakdown by temperature delta","results_breakdown_table":"Defect breakdown master table","results_severity":"Severity","defects_analysis_title":"Detailed defects analysis","defects_analysis_area_stats":"Area stats","defects_severity":"Severity:","defects_status":"Status:","defects_status_ongoing":"Ongoing","defects_status_resolved":"Resolved","defects_type":"Type:","defects_deltaT":"DeltaT:","defects_maxT":"MaxT:","defects_modules_impacted":"Modules impacted:","defects_root_cause":"Root cause:","defects_next_step":"Next step:","defects_attachment_zero":"This defect has no attachements.","defects_attachments":"This defect has $t(comments, { \\"count\\": {{comments}} }) and $t(files, { \\"count\\": {{files}} }) attached.","comments":"one comment","comments_other":"{{count}} comments","files":"one file","files_other":"{{count}} files","defects_attachment_comments_one":"This defect has one comment attached.","defects_attachment_comments_other":"This defect has {{count}} comments attached.","defects_attachment_files_one":"This defect has one file attached.","defects_attachment_files_other":"This defect has {{count}} files attached.","defects_more_details":"See more details ","end_of_report":"END OF REPORT","defect_one":"Defect","defect_other":"Defects","defects_count":"Defects count","definition_one":"Definition","definition_other":"Definitions","here":"here","inspection_method":"Inspection method","localize_with_gmaps":"Localize with GMaps","note":"Note:","open_on_skyvisor":"Open in SkyVisor","severity":"Severity","severity_category":"Severity category","subasset_one":"SubAsset","subasset_other":"SubAssets","total_sev":"Total/Severity","total_type":"Total/Type"}'),Vht=JSON.parse('{"cover_report_title":"Rapport d\u2019inspection thermique","cover_footer_generated_by":"G\xe9n\xe9r\xe9 par","cover_footer_powered_by":"Avec la technologie","cover_footer_before_printing":"Pensez \xe0 l\u2019environnement avant d\u2019imprimer ce PDF","table_of_contents_title":"Table des mati\xe8res","asset_infos_title":"Informations sur le site","asset_infos_overview":"Vue g\xe9n\xe9rale","asset_infos_asset_name":"Nom du parc","asset_infos_area":"Taille de la zone","asset_infos_total_power":"Puissance totale","asset_infos_map_and_division":"Carte et divisions","asset_infos_inspection_history":"Historique d\u2019inspections","methodology_title":"M\xe9thodologie","methodology_all_in_one":"Une suite de logiciels tout-en-un","methodology_section_2.1":"Ce rapport a \xe9t\xe9 g\xe9n\xe9r\xe9 gr\xe2ce \xe0 SkyVisor, votre solution internalis\xe9e de gestion d\u2019actifs pour les industries photovolta\xefques et \xe9oliennes.","methodology_automatic_data_acquisition":"Acquisition automatique des donn\xe9es","methodology_section_2.2_1":"SkyVisor Solar permet \xe0 des drones thermographiques d\u2019inspecter en totale autonomie des parcs photovolta\xefques gr\xe2ce \xe0 une prise d\u2019images visibles et thermiques continue. Le drone s\u2019adapte \xe0 l\u2019altitude du terrain, \xe0 l\u2019orientation des panneaux et \xe0 l\u2019azimut du soleil, permettant une r\xe9colte de donn\xe9es standardis\xe9es et de haute r\xe9solution, avec une pr\xe9cision in\xe9gal\xe9e.","methodology_section_2.2_2":"L\u2019inspection 100 % automatis\xe9e peut \xeatre supervis\xe9e sur site gr\xe2ce \xe0 l\u2019application mobile SkyVisor accessible depuis la t\xe9l\xe9commande du drone, permettant ainsi d\u2019annoter des d\xe9fauts.","methodology_data_analysis":"Analyse des donn\xe9es","methodology_section_2.3_1":"Les donn\xe9es collect\xe9es sont trait\xe9es par notre plateforme web qui permet de personnaliser les proc\xe9d\xe9s et la cat\xe9gorisation. Pour pr\xe9parer l\u2019analyse, les donn\xe9es sont d\u2019abord pr\xe9trait\xe9es, ce qui consiste \xe0 identifier les modules et \xe0 effectuer une pr\xe9-cat\xe9gorisation des d\xe9fauts. Ensuite, le pipeline SkyVisor AI est d\xe9ploy\xe9, utilisant ainsi des m\xe9thodes d\u2019apprentissage automatique et d\u2019apprentissage profond pour la d\xe9tection des d\xe9fauts. Une analyse manuelle vient conclure le processus, garantissant une analyse d\xe9taill\xe9e des d\xe9fauts.","methodology_section_2.3_2":"Int\xe9grez une technologie de pointe \xe0 vos outils et lib\xe9rez tout le potentiel de vos parcs avec SkyVisor !","methodology_IEC":"Conformit\xe9 aux normes IEC","methodology_section_2.4_1":"Cette inspection est conforme aux directives \xe9nonc\xe9es dans la norme IEC TS 62446-3 Standard, qui d\xe9crit les exigences relatives aux tests, \xe0 la documentation et \xe0 l\u2019entretien des fermes et modules photovolta\xefques par thermographie infrarouge en ext\xe9rieur.","methodology_section_2.4_2":"La troisi\xe8me partie de la norme IEC 62446 sp\xe9cifie les proc\xe9dures afin d\u2019effectuer des inspections thermographiques (infrarouge) en ext\xe9rieur de modules et fermes PV pendant leur fonctionnement. Sont conseill\xe9es plus pr\xe9cis\xe9mment l\u2019utilisation de techniques passives, dans des conditions de fonctionnement standard et avec un \xe9clairage naturel, sans aucune source d\u2019alimentation externe ou d\u2019irradiation.","methodology_term":"Terme","methodology_meanT_definition":"Temp\xe9rature moyenne du module photovolta\xefque en \xb0C.","methodology_maxT_definition":"Temp\xe9rature maximale atteinte sur un ou plusieurs points du module en \xb0C.","methodology_deltaT_definition":"Diff\xe9rence de temp\xe9rature entre MeanT et MaxT en \xb0C.","methodology_defects_categorization":"Cat\xe9gorisation des d\xe9fauts","methodology_damage":"Dommage","methodology_action":"Action","methodology_next_step":"Prochaine \xe9tape","methodology_damage_1":"Esth\xe9tique","methodology_damage_2":"Dommage sup\xe9rieur \xe0 l\u2019usure normale","methodology_damage_3":"Dommage sup\xe9rieur \xe0 l\u2019usure normale, impacts physiques","methodology_damage_4":"Dommage important","methodology_damage_5":"Dommage critique","methodology_action_1":"Pas besoin de r\xe9parations imm\xe9diates","methodology_action_2":"R\xe9paration seulement si r\xe9paration d\u2019autres dommages","methodology_action_3":"R\xe9paration \xe0 faire dans les 6 prochains mois","methodology_action_4":"R\xe9paration \xe0 faire dans les 3 prochains mois, surveiller les d\xe9gats","methodology_action_5":"Action imm\xe9diate n\xe9cessaire, contacter le support technique","methodology_next_step_continue":"Continuer l\u2019op\xe9ration","methodology_next_step_5":"STOP ! S\xe9curit\xe9 non assur\xe9e !","results_title":"R\xe9sultats","results_operational_summary":"R\xe9sum\xe9 de l\u2019op\xe9ration","results_equipment":"\xc9quipement","results_generated_by":"Rapport g\xe9n\xe9r\xe9 par","results_generated_on":"Rapport g\xe9n\xe9r\xe9 le","results_operational_details":"D\xe9tails de l\u2019op\xe9ration","results_date":"Date","results_time":"Heure","results_irradiance":"Irradiance","results_gsd":"GSD","results_rtk":"RTK utilis\xe9","results_operational_conclusions":"Conclusions de l\u2019op\xe9ration","results_statistics":"Statistiques","results_modules_impacted":"Nombre total de modules impact\xe9s","results_defects_resolved":"D\xe9fauts r\xe9solus","results_change_status":"Changer le statut ","results_breakdown_charts":"Graphiques de r\xe9partition des d\xe9fauts","results_breakdown_type":"R\xe9partition par type","results_breakdown_severity":"R\xe9partition par s\xe9v\xe9rit\xe9","results_breakdown_temperature":"R\xe9partition par diff\xe9rence de temp\xe9rature","results_breakdown_table":"Tableau g\xe9n\xe9ral de r\xe9partition des d\xe9fauts","results_severity":"S\xe9v\xe9rit\xe9","defects_analysis_title":"Analyse d\xe9taill\xe9e des d\xe9fauts","defects_analysis_area_stats":"Statistiques de la zone","defects_severity":"S\xe9v\xe9rit\xe9 :","defects_status":"Statut :","defects_status_ongoing":"En cours","defects_status_resolved":"R\xe9solu","defects_type":"Type:","defects_deltaT":"DeltaT :","defects_maxT":"MaxT :","defects_modules_impacted":"Modules impact\xe9s :","defects_root_cause":"Origine :","defects_next_step":"Action :","defects_attachment_zero":"Ce d\xe9faut n\u2019a pas de fichier attach\xe9.","defects_attachments":"Ce d\xe9faut a $t(comments, { \\"count\\": {{comments}} }) et $t(files, { \\"count\\": {{files}} }) attach\xe9s.","comments":"un commentaire","comments_other":"{{count}} commmentaires","files":"un fichier","files_other":"{{count}} fichiers","defects_attachment_comments_one":"Ce d\xe9faut a un commentaire attach\xe9.","defects_attachment_comments_other":"Ce d\xe9faut a {{count}} commentaires attach\xe9s.","defects_attachment_files_one":"Ce d\xe9faut a un fichier attach\xe9.","defects_attachment_files_other":"Ce d\xe9faut a {{count}} fichiers attach\xe9s.","defects_more_details":"Voir plus de d\xe9tails ","end_of_report":"FIN DU RAPPORT","defect_one":"D\xe9faut","defect_other":"D\xe9fauts","defects_count":"Nombre de d\xe9fauts","definition_one":"D\xe9finition","definition_other":"D\xe9finitions","here":"ici ","inspection_method":"M\xe9thode d\u2019inspection","localize_with_gmaps":"Localiser avec GMaps","note":"Note :","open_on_skyvisor":"Ouvrir sur SkyVisor","severity_category":"Cat\xe9gorie de s\xe9v\xe9rit\xe9","severity":"S\xe9v\xe9rit\xe9","subasset_one":"Zone","subasset_other":"Zones","total_sev":"Total/S\xe9v\xe9rit\xe9","total_type":"Total/Type"}'),Fht=JSON.parse('{"cover_report_title":"Thermografie-Inspektionsbericht","cover_footer_generated_by":"Erzeugt von","cover_footer_powered_by":"Angetrieben durch","cover_footer_before_printing":"Bitte denken Sie an Ihre Verantwortung f\xfcr die Umwelt, bevor Sie diese PDF-Datei ausdrucken","table_of_contents_title":"Inhaltsverzeichnis","asset_infos_title":"Anlage Informationen","asset_infos_overview":"\xdcbersicht","asset_infos_asset_name":"Name der Anlage","asset_infos_area":"Gr\xf6\xdfe der Fl\xe4che","asset_infos_total_power":"Gesamtleistung","asset_infos_map_and_division":"Karte und Einteilung","asset_infos_inspection_history":"Inspektionsverlauf","asset_info_inspection_date":"Inspektionstermin","methodology_title":"Methodologie","methodology_all_in_one":"All-in-One-Softwarepaket","methodology_section_2.1":"Dieser Bericht wurde mit SkyVisor erstellt, Ihrer In-house Asset-Management-Software f\xfcr die Solar-, Bau- und Windindustrie.","methodology_automatic_data_acquisition":"Automatische Datenerfassung","methodology_section_2.2_1":"SkyVisor Solar erm\xf6glicht Thermaldrohnen die nahtlose Verfolgung benutzerdefinierter Solaranlage-Layouts und die Erfassung von visuellen und thermischen Bildern w\xe4hrend der Fahrt. Die Drohne passt sich an die H\xf6he des Gel\xe4ndes, die Ausrichtung der Module und den Sonnenazimut an und erm\xf6glicht so eine hochaufl\xf6sende, standardisierte Datenerfassung mit un\xfcbertroffener Pr\xe4zision.","methodology_section_2.2_2":"Die vollautomatische Inspektion kann vor Ort mit der SkyVisor Mobile App auf der Drohnenfernbedienung \xfcberwacht werden, so dass M\xe4ngel notiert werden k\xf6nnen.","methodology_data_analysis":"Datenanalyse","methodology_section_2.3_1":"Die erfassten Daten werden \xfcber unsere benutzerfreundliche SkyVisor-Webplattform verarbeitet, die benutzerdefinierte Methoden und Kategorisierungen erm\xf6glicht. Um die Daten f\xfcr die Analyse vorzubereiten, werden sie zun\xe4chst vorverarbeitet, d. h. es werden Module identifiziert und eine Vorkategorisierung vorgenommen. Anschlie\xdfend wird die SkyVisor-KI-Pipeline eingesetzt, die maschinelles Lernen und Deep-Learning-Methoden f\xfcr die erste Fehlererkennung verwendet. Die menschliche Analyse schlie\xdft den Prozess ab und gew\xe4hrleistet eine umfassende Fehleranalyse und umsetzbare Erkenntnisse.","methodology_section_2.3_2":"Bringen Sie modernste Technologie in Ihren t\xe4glichen Werkzeugkasten und sch\xf6pfen Sie mit SkyVisor das volle Potenzial Ihrer Anlagen aus!","methodology_IEC":"Einhaltung von IEC-Normen","methodology_section_2.4_1":"Diese Inspektion entspricht den Richtlinien der Norm IEC TS 62446-3, in der die Anforderungen f\xfcr die Pr\xfcfung, Dokumentation und Wartung von Photovoltaik-Modulen und -Anlagen durch Infrarot-Thermografie im Freien beschrieben sind.","methodology_section_2.4_2":"Teil 3 der IEC 62446 spezifiziert die Verfahren zur Durchf\xfchrung von thermografischen (Infrarot-)Pr\xfcfungen von PV-Modulen und -Anlagen im Freien, w\xe4hrend diese in Betrieb sind. Der Schwerpunkt liegt auf der Anwendung passiver Techniken, d.h. die Pr\xfcfungen erfolgen unter Standard-Betriebsbedingungen bei nat\xfcrlichem Sonnenlicht ohne externe Strom- oder Strahlungsquellen.","methodology_term":"Begriff","methodology_meanT_definition":"Durchschnittliche Temperatur der Innenseite des Solarmoduls in \xb0C.","methodology_maxT_definition":"H\xf6chste Temperatur, die an einem oder mehreren Punkten des Solarmoduls erreicht wird, ausgedr\xfcckt in \xb0C.","methodology_deltaT_definition":"Temperaturdifferenz zwischen MinT und MaxT in \xb0C.","methodology_defects_categorization":"Kategorisierung von Fehlern","methodology_damage":"Schaden","methodology_action":"Aktion","methodology_next_step":"N\xe4chster Schritt","methodology_damage_1":"Kosmetisch","methodology_damage_2":"Sch\xe4den unterhalb der Abnutzung","methodology_damage_3":"Sch\xe4den unter Abnutzung, physikalische Einwirkungen","methodology_damage_4":"Schwere Sch\xe4den","methodology_damage_5":"Kritischer Schaden","methodology_action_1":"Keine Notwendigkeit f\xfcr sofortige Reparaturen","methodology_action_2":"Reparatur nur, wenn andere Sch\xe4den zu beheben sind","methodology_action_3":"Die Reparatur muss innerhalb der n\xe4chsten 6 Monate durchgef\xfchrt werden.","methodology_action_4":"Reparatur in den n\xe4chsten 3 Monaten durchf\xfchren, Sch\xe4den \xfcberwachen","methodology_action_5":"Sofortige Ma\xdfnahmen erforderlich, kontaktieren Sie den technischen Support","methodology_next_step_continue":"Betrieb fortsetzen","methodology_next_step_5":"STOPP! Sicherheit nicht gew\xe4hrleistet!","results_title":"Ergebnisse","results_operational_summary":"Operative Zusammenfassung","results_equipment":"Ausr\xfcstung","results_generated_by":"Bericht erstellt von","results_generated_on":"Bericht erstellt am","results_operational_details":"Operative Einzelheiten","results_date":"Datum","results_time":"Zeit","results_irradiance":"Bestrahlungsst\xe4rke","results_gsd":"GSD","results_rtk":"RTK verwendet","results_operational_conclusions":"Operative Schlussfolgerungen","results_statistics":"Statistik","results_modules_impacted":"Betroffene Module insgesamt","results_defects_resolved":"Behobene Defekte","results_change_status":"Status \xe4ndern ","results_breakdown_charts":"Fehlerdiagramme","results_breakdown_type":"Aufschl\xfcsselung nach Art","results_breakdown_severity":"Aufteilung nach Schweregrad","results_breakdown_temperature":"Aufschl\xfcsselung nach Temperaturdelta","results_breakdown_table":"Stammtabelle der Fehleraufschl\xfcsselung","results_severity":"Schwere","defects_analysis_title":"Detaillierte Fehleranalyse","defects_analysis_area_stats":"Bereich Statistiken","defects_severity":"Schweregrad:","defects_status":"Status:","defects_status_ongoing":"Laufend","defects_status_resolved":"Gel\xf6st","defects_type":"Typ:","defects_deltaT":"DeltaT:","defects_maxT":"MaxT:","defects_modules_impacted":"Module betroffen:","defects_root_cause":"Ursache:","defects_next_step":"N\xe4chster Schritt:","defects_attachment_zero":"Dieser Fehler hat keine Anhaftungen.","defects_attachments":"Dieser Fehler hat $t(comments, { \\"count\\": {{comments}} }) und $t(files, { \\"count\\": {{files}} }) angeh\xe4ngt.","comments":"einen Kommentar","comments_other":"{{count}}  Kommentare","files":"eine Datei","files_other":"{{count}} Dateien","defects_attachement_comment_one":"Dieser Fehler hat einen Kommentar beigef\xfcgt.","defects_attachement_comment_other":"Dieser Fehler hat {{count}} Kommentare angeh\xe4ngt.","defects_attachement_file_one":"Dieser Fehler hat eine Datei angeh\xe4ngt.","defects_attachement_file_other":"Dieser Fehler hat {{count}} Dateien angeh\xe4ngt.","defects_more_details":"weitere Details anzuzeigen ","end_of_report":"ENDE DES BERICHTS","defect_one":"Fehler","defect_other":"Fehler","defects_count":"Anzahl der Defekte","definition_one":"Definition","definition_other":"Definitionen","here":"hier","inspection_method":"Inspektionsmethode","localize_with_gmaps":"Lokalisieren mit GMaps","note":"Hinweis:","open_on_skyvisor":"Auf SkyVisor ge\xf6ffnet","severity":"Schweregrad","severity_category":"Schweregrad","subasset_one":"SubAsset","subasset_other":"SubAssets","total_sev":"Gesamt/Schweregrad","total_type":"Gesamt/Typ"}'),zht=JSON.parse('{"cover_report_title":"Informe de inspecci\xf3n t\xe9rmica","cover_footer_generated_by":"Generado por","cover_footer_powered_by":"Con tecnolog\xeda","cover_footer_before_printing":"Considere su responsabilidad medioambiental antes de imprimir este PDF","table_of_contents_title":"\xcdndice","asset_infos_title":"Informaci\xf3n sobre el activo","asset_infos_overview":"Visi\xf3n general","asset_infos_asset_name":"Nombre del activo","asset_infos_area":"Superficie","asset_infos_total_power":"Potencia total","asset_infos_map_and_division":"Mapa y divisi\xf3n","asset_infos_inspection_history":"Historial de inspecciones","asset_info_inspection_date":"Fecha de inspecci\xf3n","methodology_title":"Metodolog\xeda","methodology_all_in_one":"Soluci\xf3n todo-en-uno","methodology_section_2.1":"Este informe se ha generado con SkyVisor, su software de gesti\xf3n de activos para los sectores de la energ\xeda solar y la energ\xeda e\xf3lica","methodology_automatic_data_acquisition":"Adquisici\xf3n autom\xe1tica de datos","methodology_section_2.2_1":"SkyVisor Solar permite a los drones t\xe9rmicos realizar un seguimiento perfecto de las plantas solares mientras capturan im\xe1genes visuales y t\xe9rmicas sobre el terreno. El dron se ajusta a la elevaci\xf3n del terreno, la orientaci\xf3n de los paneles y el azimut solar, lo que permite recopilar datos estandarizados de alta resoluci\xf3n con una precisi\xf3n inigualable.","methodology_section_2.2_2":"La inspecci\xf3n totalmente automatizada puede supervisarse in situ con la aplicaci\xf3n m\xf3vil SkyVisor en el mando del dron, lo que permite anotar los defectos.","methodology_data_analysis":"An\xe1lisis de datos","methodology_section_2.3_1":"Los datos recogidos se procesan a trav\xe9s de nuestra plataforma web SkyVisor, de f\xe1cil uso, que permite m\xe9todos y categorizaci\xf3n personalizados. Para preparar los datos para el an\xe1lisis, primero se preprocesan, lo que implica identificar m\xf3dulos y realizar una precategorizaci\xf3n. A continuaci\xf3n, se despliega la IA de SkyVisor, que emplea m\xe9todos de aprendizaje autom\xe1tico y aprendizaje profundo para la detecci\xf3n inicial de defectos. El an\xe1lisis humano concluye el proceso, garantizando un an\xe1lisis exhaustivo de los defectos y una visi\xf3n procesable.","methodology_section_2.3_2":"Incorpore tecnolog\xeda de vanguardia a su caja de herramientas diaria y libere todo el potencial de sus activos con SkyVisor.","methodology_IEC":"Conformidad con las normas CEI","methodology_section_2.4_1":"Esta inspecci\xf3n se corresponde con las directrices de la norma IEC TS 62446-3, que describe los requisitos para la comprobaci\xf3n, documentaci\xf3n y mantenimiento de m\xf3dulos y plantas fotovoltaicas mediante termograf\xeda infrarroja en exteriores.","methodology_section_2.4_2":"La parte 3 de la norma IEC 62446 especifica los procedimientos para realizar inspecciones termogr\xe1ficas (infrarrojos) de m\xf3dulos y plantas fotovoltaicas mientras est\xe1n en funcionamiento. Se centra en la utilizaci\xf3n de t\xe9cnicas pasivas, lo que significa que las inspecciones se realizan en condiciones de funcionamiento est\xe1ndar del sistema, con luz solar natural y sin fuentes externas de energ\xeda o irradiaci\xf3n.","methodology_term":"T\xe9rmino","methodology_meanT_definition":"Temperatura media dentro un m\xf3dulo fotovoltaico en \xb0C.","methodology_maxT_definition":"Temperatura m\xe1xima alcanzada en uno o varios puntos del m\xf3dulo solar, expresada en \xb0C.","methodology_deltaT_definition":"Diferencia de temperatura entre MeantT y MaxT en \xb0C.","methodology_defects_categorization":"Categorizaci\xf3n de defectos","methodology_damage":"Da\xf1os","methodology_action":"Acci\xf3n","methodology_next_step":"Siguiente etapa","methodology_damage_1":"Est\xe9ticos","methodology_damage_2":"Da\xf1os inferiores al desgaste","methodology_damage_3":"Da\xf1os inferiores al desgaste, impactos f\xedsicos","methodology_damage_4":"Da\xf1os graves","methodology_damage_5":"Da\xf1o cr\xedtico","methodology_action_1":"Sin necesidad de reparaciones inmediatas","methodology_action_2":"Reparar s\xf3lo si hay que reparar otros da\xf1os","methodology_action_3":"Reparaci\xf3n a realizar en los pr\xf3ximos 6 meses","methodology_action_4":"Reparaci\xf3n a realizar en los pr\xf3ximos 3 meses, vigilar da\xf1os","methodology_action_5":"Se requiere una acci\xf3n inmediata, p\xf3ngase en contacto con el servicio t\xe9cnico","methodology_next_step_continue":"Continuar la operaci\xf3n","methodology_next_step_5":"\xa1PARE! \xa1Seguridad no garantizada!","end_of_report":"FINAL DEL INFORME","results_title":"Resultados","results_operational_summary":"Resumen operativo","results_equipment":"Equipamiento","results_generated_by":"Informe generado por","results_generated_on":"Informe generado el","results_operational_details":"Detalles operativos","results_date":"Fecha","results_time":"Tiempo","results_irradiance":"Irradiancia","results_gsd":"GSD","results_rtk":"RTK utilizado","results_operational_conclusions":"Conclusiones de la operaci\xf3n","results_statistics":"Estad\xedsticas","results_modules_impacted":"Total de m\xf3dulos afectados","results_defects_resolved":"Defectos resueltos","results_change_status":"Modificar estado ","results_breakdown_charts":"Gr\xe1ficos de desglose de defectos","results_breakdown_type":"Desglose por tipo","results_breakdown_severity":"Desglose por severidad","results_breakdown_temperature":"Desglose por delta de temperatura","results_breakdown_table":"Tabla principal de desglose de defectos","results_severity":"Severidad","defects_analysis_title":"An\xe1lisis detallado de defectos","defects_analysis_area_stats":"Estad\xedsticas de la zona","defects_severity":"Severidad:","defects_status":"Estado:","defects_status_ongoing":"En curso","defects_status_resolved":"Resuelto","defects_type":"Tipo:","defects_deltaT":"DeltaT:","defects_maxT":"MaxT:","defects_modules_impacted":"M\xf3dulos afectados:","defects_root_cause":"Causa principal:","defects_next_step":"Siguiente etapa:","defects_attachment_zero":"Este defecto no tiene ning\xfan anexo.","defects_attachments":"Este defecto tiene $t(comments, { \\"count\\": {{comments}} }) y $t(files, { \\"count\\": {{files}} }) adjuntos.","comments":"un comentario","comments_other":"{{count}} comentarios","files":"un archivo","files_other":"{{count}} archivos","defects_attachment_comments_one":"Este defecto tiene un comentario adjunto.","defects_attachment_comments_other":"Este defecto tiene {{count}} comentarios adjuntos.","defects_attachment_files_one":"Este defecto tiene un archivo adjunto.","defects_attachment_files_other":"Este defecto tiene archivos {{count}} adjuntos.","defects_more_details":"Ver m\xe1s detalles ","defect_one":"Defecto","defect_other":"Defectos","defects_count":"N\xfamero de defectos","definition_one":"Definici\xf3n","definition_other":"Definiciones","here":"aqu\xed","inspection_method":"M\xe9todo de inspecci\xf3n","localize_with_gmaps":"Localizar con GMaps","note":"Nota:","open_on_skyvisor":"Abrir en SkyVisor","severity":"Severidad","severity_category":"Categor\xeda de severidad","subasset_one":"Subactivo","subasset_other":"Subactivos","total_sev":"Total/Severidad","total_type":"Total/Tipo"}');Nht.use(Lut).init({lng:JKe,fallbackLng:JKe,interpolation:{escapeValue:!1},resources:{en:{solarPdf:Lht},fr:{solarPdf:Vht},de:{solarPdf:Fht},es:{solarPdf:zht}}});const Bht=Nht,Uht=e=>{let{inspectionIds:t}=e;const[r,i]=(0,n.useState)(new Map),[o,s]=(0,n.useState)(!1);(0,n.useEffect)((()=>{s(!0);(async()=>{const e=t.map((e=>vV(e)));try{const n=await Promise.all(e),r=new Map;t.forEach(((e,t)=>{r.set(e,n[t])})),i(r)}catch(Rmt){i(new Map)}finally{s(!1)}})()}),[JSON.stringify(t)]);return{mobileDataMap:r,getMobileDataPerInspection:e=>{const t=r.get(e);return t||{}},isLoading:o}},Wht=()=>{var e;const t=sn(),{search:r}=t,{inspectionId:i,campaignId:o}=an(),s=new URLSearchParams(r),a=null!==(e=s.get("language"))&&void 0!==e?e:void 0,l="true"===s.get(fAe.WITH_DETAILS),c=(0,n.useMemo)((()=>{var e,t,n,i,o,s,a;const l=new URLSearchParams(r);return{severities:null===(e=l.get(fAe.SEVERITIES))||void 0===e||null===(t=e.split(","))||void 0===t?void 0:t.map(Number),defects:null===(n=l.get(fAe.DEFECTS))||void 0===n?void 0:n.split(","),deltaT:null===(i=l.get(fAe.DELTA_T))||void 0===i||null===(o=i.split(","))||void 0===o?void 0:o.map(Number),maxT:null===(s=l.get(fAe.MAX_T))||void 0===s||null===(a=s.split(","))||void 0===a?void 0:a.map(Number),status:l.get(fAe.STATUS)}}),[r]),[u,d]=(0,n.useState)([]),[h,p]=(0,n.useState)(),[f,g]=(0,n.useState)(0),[m,y]=(0,n.useState)(new Map),[v,_]=(0,n.useState)(0),[b,x]=(0,n.useState)(Yut),[S,w]=(0,n.useState)(new Map),E=(0,n.useMemo)((()=>!i),[i]),[P,C]=(0,n.useState)(),A=(0,n.useCallback)(((e,t)=>{const n={...t};let r=!1;for(const i in n)r&&(n[i]+=1),i===e&&(r=!0);x(n)}),[]);(0,n.useEffect)((()=>{Bht.changeLanguage(a)}),[a]),(0,n.useEffect)((()=>{(async()=>{try{if(i){const e=await PA(i);return void d([e])}{const e=await(async e=>{const t=await Ey("/campaigns/".concat(e,"/inspections"),{method:"GET"});if(t&&200===t.status)return await t.json();return!1})(o),t=await Promise.all(e.map((e=>PA(e.id))));t.sort(((e,t)=>e.subAsset.name.localeCompare(t.subAsset.name))),d(t)}}catch(e){}})()}),[i,o]);const k=(0,n.useMemo)((()=>{var e;return null!==(e=null===u||void 0===u?void 0:u.map((e=>e.id)))&&void 0!==e?e:[]}),[u]),j=(0,n.useMemo)((()=>{const e=new Set;return u.forEach((t=>e.add(t.subAsset))),Array.from(e)}),[u]),I=(0,n.useMemo)((()=>{const e=u.map((e=>new Date(e.inspectionDates.inspected).toLocaleDateString(void 0,{year:"numeric",month:"numeric",day:"numeric"})));return[...new Set(e)]}),[u]),G=(0,n.useMemo)((()=>0===u.length?{name:"",id:""}:u[0].asset),[u]),{defectsMap:T,defectToAnnotationsMap:M,annotationsMap:O}=J9e({inspectionIds:k,withAnnotations:!0,filters:c}),{getPhotoGSDData:R}=VAe({inspectionIds:k}),{getPanelsInfosForInspection:D}=JAe({inspections:u}),{mobileDataMap:N,getMobileDataPerInspection:L}=Uht({inspectionIds:k}),{getRTKStatusPerInspection:V}=c4e({inspectionIds:k});(0,n.useEffect)((()=>{if(!O)return;const e=Array.from(O.keys());(async()=>{const t=e.map((e=>{const t=O.get(e);if(!t)return;const n=t.map((e=>BCe(e)));return JV(e,n)})),n=(await Promise.all(t)).flat(),r=new Map;n.forEach((e=>{Object.entries(e).forEach((e=>{let[t,n]=e;r.set(t,n)}))})),y(r)})()}),[O]),(0,n.useEffect)((()=>{if(!G.id)return;(async()=>{const e=await TT(G.id),{company:t,totalPower:n}=e;g(n);const r=await CB(t);if(!r.logoName)return;const i=encodeURIComponent(r.logoName);if(i.toLowerCase().includes("skyvisor"))return;const o=await Phe("Logo/".concat(i));p(o)})()}),[G]),(0,n.useEffect)((()=>{if(!o)return;(async()=>{const e=await MV(o);C(e.name)})()}),[o]);const{MapOverlaysComp:F,subAssetsMapProvidersMap:z}=hCe({assetId:G.id,only:e=>e.showOnPDF,computeDefaultVisible:e=>e.showOnPDF}),B={inspections:u,isCampaign:E,campaignName:P,asset:G,totalPower:f,subAssets:j,inspectionDates:I,logoUrl:h,defectsMap:T,cropsUrlMap:m,defectToAnnotationsMap:M,mobileDataMap:N,getPhotoGSDData:R,getPanelsInfosForInspection:D,MapOverlaysComp:F,subAssetsMapProvidersMap:null!==z&&void 0!==z?z:new Map,pagination:{tableOfContentsMap:S,setTableOfContentsMap:w,totalPages:v,increment:()=>_((e=>e+1)),incrementSectionPages:A,sectionPages:b,setSectionPages:x},getMobileDataPerInspection:L,getRTKStatusPerInspection:V,withDetails:l},U=(0,Sp.c)({typography:{fontFamily:"Raleway, sans-serif"}});return(0,Ae.jsx)($dt,{context:B,children:(0,Ae.jsx)(Me,{theme:U,children:(0,Ae.jsx)(Zdt,{})})})},Hht=e=>{let{assetType:t}=e;const n=b(Tf),r=b(jf).filter((e=>e.type===t)),i=r.filter((e=>"active"===e.status)),o=r.length-i.length,s=i.reduce(((e,t)=>t.totalPower?e+t.totalPower:e),0);return(0,Ae.jsxs)(ws,{item:!0,xs:12,sm:6,display:"flex",flexDirection:"column",gap:1,alignItems:"stretch",children:[(0,Ae.jsxs)(hj,{sx:{backgroundColor:t===HB.WIND?jp:Hp,paddingX:"1rem",paddingY:".5rem",color:"white",height:"100%"},children:[(0,Ae.jsx)(h8,{title:t.charAt(0).toUpperCase()+t.slice(1),avatar:t===HB.WIND?(0,Ae.jsx)(Ufe.c,{sx:{fontSize:"3rem"}}):(0,Ae.jsx)(Wfe.c,{sx:{fontSize:"3rem"}}),titleTypographyProps:{variant:"h4",fontWeight:"bold"},sx:{paddingBottom:0}}),(0,Ae.jsx)(npe,{children:n?(0,Ae.jsx)($y,{color:Dp}):i.length?(0,Ae.jsxs)(Ae.Fragment,{children:[(0,Ae.jsx)(vu,{sx:{fontSize:"1.2rem"},children:"".concat(i.length," ").concat(wq("asset",i.length))}),(0,Ae.jsx)(vu,{sx:{fontSize:"1.2rem"},children:"".concat(Ly(s,0).toLocaleString("fr-FR")," kW of total power")})]}):(0,Ae.jsx)(vu,{sx:{fontSize:"1.2rem"},children:"No assets"})})]}),o>0&&(0,Ae.jsx)(vu,{color:t===HB.WIND?jp:Hp,children:"".concat(o," inactive asset").concat(o>1?"s":"")})]})};var qht=__webpack_require__(15040);const Xht=()=>{const[e,t]=(0,n.useState)(""),[r,i]=(0,n.useState)(""),[o,s]=(0,n.useState)(!1),[a,l]=(0,n.useState)(!1),[c,u]=(0,n.useState)(!1),[d,h]=(0,n.useState)(!1),[p,f]=(0,n.useState)(),[g,m]=(0,n.useState)(),y=on(),v=()=>{s(!1),t(""),i(""),h(!1),u(!1),f("")};return(0,Ae.jsxs)(ws,{item:!0,xs:12,md:6,children:[o?(0,Ae.jsxs)(vj,{gap:2,alignItems:"start",children:[(0,Ae.jsx)(iE,{id:"existing-password",label:"Existing password",type:"password",value:e,onChange:e=>{t(e.target.value),u(!1),l(!1)},onBlur:e?async()=>{if(ho.currentUser&&ho.currentUser.email){try{await ho.signInWithEmailAndPassword(ho.currentUser.email,e),u(!0)}catch(Rmt){l(!0)}l(!0)}}:()=>"",sx:{width:"100%"},error:!!e&&a&&!c,helperText:e&&a&&!c?"Incorrect password.":"",required:!0}),(0,Ae.jsx)(iE,{id:"new-password",label:"New password",type:"password",value:r,onChange:e=>i(e.target.value),sx:{width:"100%"},required:!0}),(0,Ae.jsx)(ohe,{validateText:"Update password",onValidate:async()=>{if(c&&d&&e&&r&&ho.currentUser){f(""),m("");try{await(async(e,t)=>{const n=await Ey("/users/".concat(e,"/password"),{method:"POST",body:JSON.stringify({password:t})});if(!n.ok){const e=await n.text();throw new Error(null!==e&&void 0!==e?e:"An error has occured")}})(ho.currentUser.uid,r),m("Your password has been updated successfully. You will now be disconnected."),v(),setTimeout((()=>{gB(),y.push("/login")}),2e3)}catch(Rmt){var t;f(null!==(t=Rmt.message)&&void 0!==t?t:"An error has occurred while updating your password. Please try again later or contact support if the problem persists.")}}},onCancel:v,validateDisabled:!c||!d||!e||!r}),(0,Ae.jsx)(pM,{severity:"info",children:"Updating the password will disconnect you from the platform."}),(0,Ae.jsx)(NB,{password:r,onValidityChange:h})]}):(0,Ae.jsx)(ev,{label:"Change password",onClick:()=>s(!0),variant:"outlined",textColor:Gp,frontIcon:(0,Ae.jsx)(qht.c,{})}),p&&(0,Ae.jsx)(pM,{severity:"error",sx:{width:"100%",marginTop:2},children:p}),g&&(0,Ae.jsx)(pM,{severity:"success",sx:{width:"100%",marginTop:2},children:g})]})},Yht=()=>{const{userProfile:e}=Pfe(),[t,r]=(0,n.useState)(),[i,o]=(0,n.useState)(),[s,a]=(0,n.useState)(),[l,c]=(0,n.useState)(!1),[u,d]=(0,n.useState)(),[h,p]=(0,n.useState)(),f=(0,n.useCallback)((async()=>{if(!e||!e.company)return;const t=await CB(e.company),n=await Phe("Logo/".concat(t.logoName));a(n)}),[e]);(0,n.useEffect)((()=>{e&&(r(e.firstName),o(e.lastName),f())}),[e,f]);const g=(0,n.useMemo)((()=>t&&i&&t.trim()&&i.trim()),[t,i]);return e?(0,Ae.jsx)(PF,{pageTitle:"My profile",left:(0,Ae.jsx)(CF,{title:"My profile"}),center:(0,Ae.jsx)(jF,{responsive:!0}),children:(0,Ae.jsxs)(ws,{container:!0,padding:"1rem",gap:"1rem",height:"100%",width:"100%",children:[(0,Ae.jsx)(ws,{item:!0,xs:12,md:6,marginX:"auto",children:(0,Ae.jsxs)(vj,{gap:3,children:[(0,Ae.jsxs)(hj,{children:[(0,Ae.jsx)(h8,{title:"Account information",titleTypographyProps:{variant:"h6"},sx:{backgroundColor:"#eceff1"}}),(0,Ae.jsx)(npe,{children:(0,Ae.jsxs)(ws,{container:!0,columnSpacing:6,rowSpacing:2,children:[(0,Ae.jsx)(ws,{item:!0,xs:12,padding:0,children:(0,Ae.jsxs)(vj,{direction:"row",gap:2,alignItems:"center",children:[s&&(0,Ae.jsx)("img",{src:s,alt:"Company logo",style:{maxWidth:"6rem"}}),(0,Ae.jsx)(vu,{variant:"h5",color:Gp,children:e.company})]})}),(0,Ae.jsx)(ws,{item:!0,xs:12,md:6,children:(0,Ae.jsxs)(vj,{gap:2,alignItems:"start",children:[(0,Ae.jsx)(iE,{id:"first-name",label:"First name",value:null!==t&&void 0!==t?t:"",onChange:e=>{c(!0),r(e.currentTarget.value)},required:!0,sx:{width:"100% "}}),(0,Ae.jsx)(iE,{id:"last-name",label:"Last name",value:null!==i&&void 0!==i?i:"",onChange:e=>{c(!0),o(e.currentTarget.value)},required:!0,sx:{width:"100% "}}),(0,Ae.jsx)(cu,{title:"To update your email, please contact us at support@skyvisor.fr",placement:Wy()?"bottom":"right",children:(0,Ae.jsx)(iE,{id:"email",label:"Email",value:e.email,disabled:!0,sx:{width:"100% "}})}),l&&(0,Ae.jsx)(ohe,{onCancel:()=>{r(null===e||void 0===e?void 0:e.firstName),o(null===e||void 0===e?void 0:e.lastName),c(!1)},onValidate:async()=>{if(d(""),p(""),!e||!e.uid||!t||!i)return;const n={firstName:t.trim(),lastName:i.trim()};try{await(async(e,t)=>{const n=await Ey("/users/".concat(e),{method:"PATCH",body:JSON.stringify(t)});if(!n.ok){const e=await n.text();throw new Error(null!==e&&void 0!==e?e:"An has error occured")}})(e.uid,n),p("Your account information has been updated successfully.")}catch(o){d("An error occurred while updating your account information. Please try again later or contact support if the problem persists.")}c(!1);const r={...e,...n};localStorage.setItem("_user",JSON.stringify(r))},validateText:"Update profile",validateDisabled:!g}),u&&(0,Ae.jsx)(pM,{severity:"error",sx:{width:"100%"},children:u}),h&&(0,Ae.jsx)(pM,{severity:"success",sx:{width:"100%"},children:h})]})}),(0,Ae.jsx)(Xht,{})]})})]}),(0,Ae.jsxs)(ws,{container:!0,spacing:3,children:[(0,Ae.jsx)(Hht,{assetType:HB.WIND}),(0,Ae.jsx)(Hht,{assetType:HB.SOLAR})]})]})}),(0,Ae.jsx)(ws,{item:!0,flexGrow:1,height:"100%",children:(0,Ae.jsx)(Q5,{})})]})}):(0,Ae.jsx)("p",{children:"Error fetching the user profile"})},Kht=globalThis,Zht=Kht.ShadowRoot&&(void 0===Kht.ShadyCSS||Kht.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,$ht=Symbol(),Jht=new WeakMap;class Qht{constructor(e,t,n){if(this._$cssResult$=!0,n!==$ht)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=e,this.t=t}get styleSheet(){let e=this.o;const t=this.t;if(Zht&&void 0===e){const n=void 0!==t&&1===t.length;n&&(e=Jht.get(t)),void 0===e&&((this.o=e=new CSSStyleSheet).replaceSync(this.cssText),n&&Jht.set(t,e))}return e}toString(){return this.cssText}}const ept=function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];const i=1===e.length?e[0]:n.reduce(((t,n,r)=>t+(e=>{if(!0===e._$cssResult$)return e.cssText;if("number"==typeof e)return e;throw Error("Value passed to 'css' function must be a 'css' function result: "+e+". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.")})(n)+e[r+1]),e[0]);return new Qht(i,e,$ht)},tpt=Zht?e=>e:e=>e instanceof CSSStyleSheet?(e=>{let t="";for(const n of e.cssRules)t+=n.cssText;return(e=>new Qht("string"==typeof e?e:e+"",void 0,$ht))(t)})(e):e;var npt,rpt,ipt;const{is:opt,defineProperty:spt,getOwnPropertyDescriptor:apt,getOwnPropertyNames:lpt,getOwnPropertySymbols:cpt,getPrototypeOf:upt}=Object,dpt=globalThis,hpt=dpt.trustedTypes,ppt=hpt?hpt.emptyScript:"",fpt=dpt.reactiveElementPolyfillSupport,gpt=(e,t)=>e,mpt={toAttribute(e,t){switch(t){case Boolean:e=e?ppt:null;break;case Object:case Array:e=null==e?e:JSON.stringify(e)}return e},fromAttribute(e,t){let n=e;switch(t){case Boolean:n=null!==e;break;case Number:n=null===e?null:Number(e);break;case Object:case Array:try{n=JSON.parse(e)}catch(e){n=null}}return n}},ypt=(e,t)=>!opt(e,t),vpt={attribute:!0,type:String,converter:mpt,reflect:!1,hasChanged:ypt};null!==(npt=Symbol.metadata)&&void 0!==npt||(Symbol.metadata=Symbol("metadata")),null!==(rpt=dpt.litPropertyMetadata)&&void 0!==rpt||(dpt.litPropertyMetadata=new WeakMap);class _pt extends HTMLElement{static addInitializer(e){var t;this._$Ei(),(null!==(t=this.l)&&void 0!==t?t:this.l=[]).push(e)}static get observedAttributes(){return this.finalize(),this._$Eh&&[...this._$Eh.keys()]}static createProperty(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:vpt;if(t.state&&(t.attribute=!1),this._$Ei(),this.elementProperties.set(e,t),!t.noAccessor){const n=Symbol(),r=this.getPropertyDescriptor(e,n,t);void 0!==r&&spt(this.prototype,e,r)}}static getPropertyDescriptor(e,t,n){var r;const{get:i,set:o}=null!==(r=apt(this.prototype,e))&&void 0!==r?r:{get(){return this[t]},set(e){this[t]=e}};return{get(){return null===i||void 0===i?void 0:i.call(this)},set(t){const r=null===i||void 0===i?void 0:i.call(this);o.call(this,t),this.requestUpdate(e,r,n)},configurable:!0,enumerable:!0}}static getPropertyOptions(e){var t;return null!==(t=this.elementProperties.get(e))&&void 0!==t?t:vpt}static _$Ei(){if(this.hasOwnProperty(gpt("elementProperties")))return;const e=upt(this);e.finalize(),void 0!==e.l&&(this.l=[...e.l]),this.elementProperties=new Map(e.elementProperties)}static finalize(){if(this.hasOwnProperty(gpt("finalized")))return;if(this.finalized=!0,this._$Ei(),this.hasOwnProperty(gpt("properties"))){const e=this.properties,t=[...lpt(e),...cpt(e)];for(const n of t)this.createProperty(n,e[n])}const e=this[Symbol.metadata];if(null!==e){const t=litPropertyMetadata.get(e);if(void 0!==t)for(const[e,n]of t)this.elementProperties.set(e,n)}this._$Eh=new Map;for(const[t,n]of this.elementProperties){const e=this._$Eu(t,n);void 0!==e&&this._$Eh.set(e,t)}this.elementStyles=this.finalizeStyles(this.styles)}static finalizeStyles(e){const t=[];if(Array.isArray(e)){const n=new Set(e.flat(1/0).reverse());for(const e of n)t.unshift(tpt(e))}else void 0!==e&&t.push(tpt(e));return t}static _$Eu(e,t){const n=t.attribute;return!1===n?void 0:"string"==typeof n?n:"string"==typeof e?e.toLowerCase():void 0}constructor(){super(),this._$Ep=void 0,this.isUpdatePending=!1,this.hasUpdated=!1,this._$Em=null,this._$Ev()}_$Ev(){var e;this._$ES=new Promise((e=>this.enableUpdating=e)),this._$AL=new Map,this._$E_(),this.requestUpdate(),null===(e=this.constructor.l)||void 0===e||e.forEach((e=>e(this)))}addController(e){var t,n;(null!==(t=this._$EO)&&void 0!==t?t:this._$EO=new Set).add(e),void 0!==this.renderRoot&&this.isConnected&&(null===(n=e.hostConnected)||void 0===n||n.call(e))}removeController(e){var t;null===(t=this._$EO)||void 0===t||t.delete(e)}_$E_(){const e=new Map,t=this.constructor.elementProperties;for(const n of t.keys())this.hasOwnProperty(n)&&(e.set(n,this[n]),delete this[n]);e.size>0&&(this._$Ep=e)}createRenderRoot(){var e;const t=null!==(e=this.shadowRoot)&&void 0!==e?e:this.attachShadow(this.constructor.shadowRootOptions);return((e,t)=>{if(Zht)e.adoptedStyleSheets=t.map((e=>e instanceof CSSStyleSheet?e:e.styleSheet));else for(const n of t){const t=document.createElement("style"),r=Kht.litNonce;void 0!==r&&t.setAttribute("nonce",r),t.textContent=n.cssText,e.appendChild(t)}})(t,this.constructor.elementStyles),t}connectedCallback(){var e,t;null!==(e=this.renderRoot)&&void 0!==e||(this.renderRoot=this.createRenderRoot()),this.enableUpdating(!0),null===(t=this._$EO)||void 0===t||t.forEach((e=>{var t;return null===(t=e.hostConnected)||void 0===t?void 0:t.call(e)}))}enableUpdating(e){}disconnectedCallback(){var e;null===(e=this._$EO)||void 0===e||e.forEach((e=>{var t;return null===(t=e.hostDisconnected)||void 0===t?void 0:t.call(e)}))}attributeChangedCallback(e,t,n){this._$AK(e,n)}_$EC(e,t){const n=this.constructor.elementProperties.get(e),r=this.constructor._$Eu(e,n);if(void 0!==r&&!0===n.reflect){var i;const o=(void 0!==(null===(i=n.converter)||void 0===i?void 0:i.toAttribute)?n.converter:mpt).toAttribute(t,n.type);this._$Em=e,null==o?this.removeAttribute(r):this.setAttribute(r,o),this._$Em=null}}_$AK(e,t){const n=this.constructor,r=n._$Eh.get(e);if(void 0!==r&&this._$Em!==r){var i;const e=n.getPropertyOptions(r),o="function"==typeof e.converter?{fromAttribute:e.converter}:void 0!==(null===(i=e.converter)||void 0===i?void 0:i.fromAttribute)?e.converter:mpt;this._$Em=r,this[r]=o.fromAttribute(t,e.type),this._$Em=null}}requestUpdate(e,t,n){if(void 0!==e){var r,i;if(null!==(r=n)&&void 0!==r||(n=this.constructor.getPropertyOptions(e)),!(null!==(i=n.hasChanged)&&void 0!==i?i:ypt)(this[e],t))return;this.P(e,t,n)}!1===this.isUpdatePending&&(this._$ES=this._$ET())}P(e,t,n){var r;this._$AL.has(e)||this._$AL.set(e,t),!0===n.reflect&&this._$Em!==e&&(null!==(r=this._$Ej)&&void 0!==r?r:this._$Ej=new Set).add(e)}async _$ET(){this.isUpdatePending=!0;try{await this._$ES}catch(e){Promise.reject(e)}const e=this.scheduleUpdate();return null!=e&&await e,!this.isUpdatePending}scheduleUpdate(){return this.performUpdate()}performUpdate(){if(!this.isUpdatePending)return;if(!this.hasUpdated){var e;if(null!==(e=this.renderRoot)&&void 0!==e||(this.renderRoot=this.createRenderRoot()),this._$Ep){for(const[e,t]of this._$Ep)this[e]=t;this._$Ep=void 0}const t=this.constructor.elementProperties;if(t.size>0)for(const[e,n]of t)!0!==n.wrapped||this._$AL.has(e)||void 0===this[e]||this.P(e,this[e],n)}let t=!1;const n=this._$AL;try{var r;t=this.shouldUpdate(n),t?(this.willUpdate(n),null!==(r=this._$EO)&&void 0!==r&&r.forEach((e=>{var t;return null===(t=e.hostUpdate)||void 0===t?void 0:t.call(e)})),this.update(n)):this._$EU()}catch(n){throw t=!1,this._$EU(),n}t&&this._$AE(n)}willUpdate(e){}_$AE(e){var t;null!==(t=this._$EO)&&void 0!==t&&t.forEach((e=>{var t;return null===(t=e.hostUpdated)||void 0===t?void 0:t.call(e)})),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(e)),this.updated(e)}_$EU(){this._$AL=new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$ES}shouldUpdate(e){return!0}update(e){this._$Ej&&(this._$Ej=this._$Ej.forEach((e=>this._$EC(e,this[e])))),this._$EU()}updated(e){}firstUpdated(e){}}var bpt;_pt.elementStyles=[],_pt.shadowRootOptions={mode:"open"},_pt[gpt("elementProperties")]=new Map,_pt[gpt("finalized")]=new Map,null!==fpt&&void 0!==fpt&&fpt({ReactiveElement:_pt}),(null!==(ipt=dpt.reactiveElementVersions)&&void 0!==ipt?ipt:dpt.reactiveElementVersions=[]).push("2.0.4");const xpt=globalThis,Spt=xpt.trustedTypes,wpt=Spt?Spt.createPolicy("lit-html",{createHTML:e=>e}):void 0,Ept="$lit$",Ppt="lit$".concat(Math.random().toFixed(9).slice(2),"$"),Cpt="?"+Ppt,Apt="<".concat(Cpt,">"),kpt=document,jpt=()=>kpt.createComment(""),Ipt=e=>null===e||"object"!=typeof e&&"function"!=typeof e,Gpt=Array.isArray,Tpt=e=>Gpt(e)||"function"==typeof(null===e||void 0===e?void 0:e[Symbol.iterator]),Mpt="[ \t\n\f\r]",Opt=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,Rpt=/-->/g,Dpt=/>/g,Npt=RegExp(">|".concat(Mpt,"(?:([^\\s\"'>=/]+)(").concat(Mpt,"*=").concat(Mpt,"*(?:[^ \t\n\f\r\"'`<>=]|(\"|')|))|$)"),"g"),Lpt=/'/g,Vpt=/"/g,Fpt=/^(?:script|style|textarea|title)$/i,zpt=e=>function(t){for(var n=arguments.length,r=new Array(n>1?n-1:0),i=1;i<n;i++)r[i-1]=arguments[i];return{_$litType$:e,strings:t,values:r}},Bpt=zpt(1),Upt=(zpt(2),zpt(3),Symbol.for("lit-noChange")),Wpt=Symbol.for("lit-nothing"),Hpt=new WeakMap,qpt=kpt.createTreeWalker(kpt,129);function Xpt(e,t){if(!Gpt(e)||!e.hasOwnProperty("raw"))throw Error("invalid template strings array");return void 0!==wpt?wpt.createHTML(t):t}const Ypt=(e,t)=>{const n=e.length-1,r=[];let i,o=2===t?"<svg>":3===t?"<math>":"",s=Opt;for(let l=0;l<n;l++){const t=e[l];let n,c,u=-1,d=0;for(;d<t.length&&(s.lastIndex=d,c=s.exec(t),null!==c);){var a;d=s.lastIndex,s===Opt?"!--"===c[1]?s=Rpt:void 0!==c[1]?s=Dpt:void 0!==c[2]?(Fpt.test(c[2])&&(i=RegExp("</"+c[2],"g")),s=Npt):void 0!==c[3]&&(s=Npt):s===Npt?">"===c[0]?(s=null!==(a=i)&&void 0!==a?a:Opt,u=-1):void 0===c[1]?u=-2:(u=s.lastIndex-c[2].length,n=c[1],s=void 0===c[3]?Npt:'"'===c[3]?Vpt:Lpt):s===Vpt||s===Lpt?s=Npt:s===Rpt||s===Dpt?s=Opt:(s=Npt,i=void 0)}const h=s===Npt&&e[l+1].startsWith("/>")?" ":"";o+=s===Opt?t+Apt:u>=0?(r.push(n),t.slice(0,u)+Ept+t.slice(u)+Ppt+h):t+Ppt+(-2===u?l:h)}return[Xpt(e,o+(e[n]||"<?>")+(2===t?"</svg>":3===t?"</math>":"")),r]};class Kpt{constructor(e,t){let n,{strings:r,_$litType$:i}=e;this.parts=[];let o=0,s=0;const a=r.length-1,l=this.parts,[c,u]=Ypt(r,i);if(this.el=Kpt.createElement(c,t),qpt.currentNode=this.el.content,2===i||3===i){const e=this.el.content.firstChild;e.replaceWith(...e.childNodes)}for(;null!==(n=qpt.nextNode())&&l.length<a;){if(1===n.nodeType){if(n.hasAttributes())for(const e of n.getAttributeNames())if(e.endsWith(Ept)){const t=u[s++],r=n.getAttribute(e).split(Ppt),i=/([.?@])?(.*)/.exec(t);l.push({type:1,index:o,name:i[2],strings:r,ctor:"."===i[1]?eft:"?"===i[1]?tft:"@"===i[1]?nft:Qpt}),n.removeAttribute(e)}else e.startsWith(Ppt)&&(l.push({type:6,index:o}),n.removeAttribute(e));if(Fpt.test(n.tagName)){const e=n.textContent.split(Ppt),t=e.length-1;if(t>0){n.textContent=Spt?Spt.emptyScript:"";for(let r=0;r<t;r++)n.append(e[r],jpt()),qpt.nextNode(),l.push({type:2,index:++o});n.append(e[t],jpt())}}}else if(8===n.nodeType)if(n.data===Cpt)l.push({type:2,index:o});else{let e=-1;for(;-1!==(e=n.data.indexOf(Ppt,e+1));)l.push({type:7,index:o}),e+=Ppt.length-1}o++}}static createElement(e,t){const n=kpt.createElement("template");return n.innerHTML=e,n}}function Zpt(e,t){var n,r,i,o,s;let a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:e,l=arguments.length>3?arguments[3]:void 0;if(t===Upt)return t;let c=void 0!==l?null===(n=a.o)||void 0===n?void 0:n[l]:a.l;const u=Ipt(t)?void 0:t._$litDirective$;return(null===(r=c)||void 0===r?void 0:r.constructor)!==u&&(null!==(i=c)&&void 0!==i&&null!==(o=i._$AO)&&void 0!==o&&o.call(i,!1),void 0===u?c=void 0:(c=new u(e),c._$AT(e,a,l)),void 0!==l?(null!==(s=a.o)&&void 0!==s?s:a.o=[])[l]=c:a.l=c),void 0!==c&&(t=Zpt(e,c._$AS(e,t.values),c,l)),t}class $pt{constructor(e,t){this._$AV=[],this._$AN=void 0,this._$AD=e,this._$AM=t}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(e){var t;const{el:{content:n},parts:r}=this._$AD,i=(null!==(t=null===e||void 0===e?void 0:e.creationScope)&&void 0!==t?t:kpt).importNode(n,!0);qpt.currentNode=i;let o=qpt.nextNode(),s=0,a=0,l=r[0];for(;void 0!==l;){var c;if(s===l.index){let t;2===l.type?t=new Jpt(o,o.nextSibling,this,e):1===l.type?t=new l.ctor(o,l.name,l.strings,this,e):6===l.type&&(t=new rft(o,this,e)),this._$AV.push(t),l=r[++a]}s!==(null===(c=l)||void 0===c?void 0:c.index)&&(o=qpt.nextNode(),s++)}return qpt.currentNode=kpt,i}p(e){let t=0;for(const n of this._$AV)void 0!==n&&(void 0!==n.strings?(n._$AI(e,n,t),t+=n.strings.length-2):n._$AI(e[t])),t++}}class Jpt{get _$AU(){var e,t;return null!==(e=null===(t=this._$AM)||void 0===t?void 0:t._$AU)&&void 0!==e?e:this.v}constructor(e,t,n,r){var i;this.type=2,this._$AH=Wpt,this._$AN=void 0,this._$AA=e,this._$AB=t,this._$AM=n,this.options=r,this.v=null===(i=null===r||void 0===r?void 0:r.isConnected)||void 0===i||i}get parentNode(){var e;let t=this._$AA.parentNode;const n=this._$AM;return void 0!==n&&11===(null===(e=t)||void 0===e?void 0:e.nodeType)&&(t=n.parentNode),t}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(e){e=Zpt(this,e,arguments.length>1&&void 0!==arguments[1]?arguments[1]:this),Ipt(e)?e===Wpt||null==e||""===e?(this._$AH!==Wpt&&this._$AR(),this._$AH=Wpt):e!==this._$AH&&e!==Upt&&this._(e):void 0!==e._$litType$?this.$(e):void 0!==e.nodeType?this.T(e):Tpt(e)?this.k(e):this._(e)}O(e){return this._$AA.parentNode.insertBefore(e,this._$AB)}T(e){this._$AH!==e&&(this._$AR(),this._$AH=this.O(e))}_(e){this._$AH!==Wpt&&Ipt(this._$AH)?this._$AA.nextSibling.data=e:this.T(kpt.createTextNode(e)),this._$AH=e}$(e){var t;const{values:n,_$litType$:r}=e,i="number"==typeof r?this._$AC(e):(void 0===r.el&&(r.el=Kpt.createElement(Xpt(r.h,r.h[0]),this.options)),r);if((null===(t=this._$AH)||void 0===t?void 0:t._$AD)===i)this._$AH.p(n);else{const e=new $pt(i,this),t=e.u(this.options);e.p(n),this.T(t),this._$AH=e}}_$AC(e){let t=Hpt.get(e.strings);return void 0===t&&Hpt.set(e.strings,t=new Kpt(e)),t}k(e){Gpt(this._$AH)||(this._$AH=[],this._$AR());const t=this._$AH;let n,r=0;for(const i of e)r===t.length?t.push(n=new Jpt(this.O(jpt()),this.O(jpt()),this,this.options)):n=t[r],n._$AI(i),r++;r<t.length&&(this._$AR(n&&n._$AB.nextSibling,r),t.length=r)}_$AR(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this._$AA.nextSibling,t=arguments.length>1?arguments[1]:void 0;for(null===(n=this._$AP)||void 0===n||n.call(this,!1,!0,t);e&&e!==this._$AB;){var n;const t=e.nextSibling;e.remove(),e=t}}setConnected(e){var t;void 0===this._$AM&&(this.v=e,null===(t=this._$AP)||void 0===t||t.call(this,e))}}class Qpt{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(e,t,n,r,i){this.type=1,this._$AH=Wpt,this._$AN=void 0,this.element=e,this.name=t,this._$AM=r,this.options=i,n.length>2||""!==n[0]||""!==n[1]?(this._$AH=Array(n.length-1).fill(new String),this.strings=n):this._$AH=Wpt}_$AI(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this,n=arguments.length>2?arguments[2]:void 0,r=arguments.length>3?arguments[3]:void 0;const i=this.strings;let o=!1;if(void 0===i)e=Zpt(this,e,t,0),o=!Ipt(e)||e!==this._$AH&&e!==Upt,o&&(this._$AH=e);else{const r=e;let a,l;for(e=i[0],a=0;a<i.length-1;a++){var s;l=Zpt(this,r[n+a],t,a),l===Upt&&(l=this._$AH[a]),o||(o=!Ipt(l)||l!==this._$AH[a]),l===Wpt?e=Wpt:e!==Wpt&&(e+=(null!==(s=l)&&void 0!==s?s:"")+i[a+1]),this._$AH[a]=l}}o&&!r&&this.j(e)}j(e){e===Wpt?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,null!==e&&void 0!==e?e:"")}}class eft extends Qpt{constructor(){super(...arguments),this.type=3}j(e){this.element[this.name]=e===Wpt?void 0:e}}class tft extends Qpt{constructor(){super(...arguments),this.type=4}j(e){this.element.toggleAttribute(this.name,!!e&&e!==Wpt)}}class nft extends Qpt{constructor(e,t,n,r,i){super(e,t,n,r,i),this.type=5}_$AI(e){var t;if((e=null!==(t=Zpt(this,e,arguments.length>1&&void 0!==arguments[1]?arguments[1]:this,0))&&void 0!==t?t:Wpt)===Upt)return;const n=this._$AH,r=e===Wpt&&n!==Wpt||e.capture!==n.capture||e.once!==n.once||e.passive!==n.passive,i=e!==Wpt&&(n===Wpt||r);r&&this.element.removeEventListener(this.name,this,n),i&&this.element.addEventListener(this.name,this,e),this._$AH=e}handleEvent(e){var t,n;"function"==typeof this._$AH?this._$AH.call(null!==(t=null===(n=this.options)||void 0===n?void 0:n.host)&&void 0!==t?t:this.element,e):this._$AH.handleEvent(e)}}class rft{constructor(e,t,n){this.element=e,this.type=6,this._$AN=void 0,this._$AM=t,this.options=n}get _$AU(){return this._$AM._$AU}_$AI(e){Zpt(this,e)}}const ift=xpt.litHtmlPolyfillSupport;null!==ift&&void 0!==ift&&ift(Kpt,Jpt),(null!==(bpt=xpt.litHtmlVersions)&&void 0!==bpt?bpt:xpt.litHtmlVersions=[]).push("3.2.0");var oft,sft;class aft extends _pt{constructor(){super(...arguments),this.renderOptions={host:this},this.o=void 0}createRenderRoot(){var e,t;const n=super.createRenderRoot();return null!==(t=(e=this.renderOptions).renderBefore)&&void 0!==t||(e.renderBefore=n.firstChild),n}update(e){const t=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(e),this.o=((e,t,n)=>{var r;const i=null!==(r=null===n||void 0===n?void 0:n.renderBefore)&&void 0!==r?r:t;let o=i._$litPart$;if(void 0===o){var s;const e=null!==(s=null===n||void 0===n?void 0:n.renderBefore)&&void 0!==s?s:null;i._$litPart$=o=new Jpt(t.insertBefore(jpt(),e),e,void 0,null!==n&&void 0!==n?n:{})}return o._$AI(e),o})(t,this.renderRoot,this.renderOptions)}connectedCallback(){var e;super.connectedCallback(),null===(e=this.o)||void 0===e||e.setConnected(!0)}disconnectedCallback(){var e;super.disconnectedCallback(),null===(e=this.o)||void 0===e||e.setConnected(!1)}render(){return Upt}}aft._$litElement$=!0,aft.finalized=!0,null===(oft=globalThis.litElementHydrateSupport)||void 0===oft||oft.call(globalThis,{LitElement:aft});const lft=globalThis.litElementPolyfillSupport;null===lft||void 0===lft||lft({LitElement:aft});(null!==(sft=globalThis.litElementVersions)&&void 0!==sft?sft:globalThis.litElementVersions=[]).push("4.1.0");const cft=e=>(t,n)=>{void 0!==n?n.addInitializer((()=>{customElements.define(e,t)})):customElements.define(e,t)},uft={attribute:!0,type:String,converter:mpt,reflect:!1,hasChanged:ypt},dft=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:uft,t=arguments.length>1?arguments[1]:void 0,n=arguments.length>2?arguments[2]:void 0;const{kind:r,metadata:i}=n;let o=globalThis.litPropertyMetadata.get(i);if(void 0===o&&globalThis.litPropertyMetadata.set(i,o=new Map),o.set(n.name,e),"accessor"===r){const{name:r}=n;return{set(n){const i=t.get.call(this);t.set.call(this,n),this.requestUpdate(r,i,e)},init(t){return void 0!==t&&this.P(r,void 0,e),t}}}if("setter"===r){const{name:r}=n;return function(n){const i=this[r];t.call(this,n),this.requestUpdate(r,i,e)}}throw Error("Unsupported decorator location: "+r)};function hft(e){return(t,n)=>"object"==typeof n?dft(e,t,n):((e,t,n)=>{const r=t.hasOwnProperty(n);return t.constructor.createProperty(n,r?{...e,wrapped:!0}:e),r?Object.getOwnPropertyDescriptor(t,n):void 0})(e,t,n)}function pft(e){return hft({...e,state:!0,attribute:!1})}const fft=1;class gft{constructor(e){}get _$AU(){return this._$AM._$AU}_$AT(e,t,n){this.t=e,this._$AM=t,this.i=n}_$AS(e,t){return this.update(e,t)}update(e,t){return this.render(...t)}}const mft=(e=>function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return{_$litDirective$:e,values:n}})(class extends gft{constructor(e){var t;if(super(e),e.type!==fft||"class"!==e.name||(null===(t=e.strings)||void 0===t?void 0:t.length)>2)throw Error("`classMap()` can only be used in the `class` attribute and must be the only part in the attribute.")}render(e){return" "+Object.keys(e).filter((t=>e[t])).join(" ")+" "}update(e,t){let[n]=t;if(void 0===this.st){this.st=new Set,void 0!==e.strings&&(this.nt=new Set(e.strings.join(" ").split(/\s/).filter((e=>""!==e))));for(const e in n){var r;n[e]&&(null===(r=this.nt)||void 0===r||!r.has(e))&&this.st.add(e)}return this.render(n)}const i=e.element.classList;for(const s of this.st)s in n||(i.remove(s),this.st.delete(s));for(const s in n){var o;const e=!!n[s];e===this.st.has(s)||(null===(o=this.nt)||void 0===o?void 0:o.has(s))||(e?(i.add(s),this.st.add(s)):(i.remove(s),this.st.delete(s)))}return Upt}});var yft,vft,_ft,bft,xft,Sft,wft,Eft,Pft,Cft,Aft,kft,jft,Ift,Gft,Tft,Mft,Oft,Rft,Dft,Nft,Lft,Vft,Fft,zft,Bft,Uft,Wft,Hft,qft,Xft,Yft,Kft={d:(e,t)=>{for(var n in t)Kft.o(t,n)&&!Kft.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},o:(e,t)=>Object.prototype.hasOwnProperty.call(e,t),r:e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})}},Zft={};Kft.d(Zft,{w:()=>Imt});var $ft={};Kft.r($ft),Kft.d($ft,{templates:()=>Ugt});var Jft={};Kft.r(Jft),Kft.d(Jft,{templates:()=>Wgt});var Qft={};Kft.r(Qft),Kft.d(Qft,{templates:()=>Hgt});var egt={};Kft.r(egt),Kft.d(egt,{templates:()=>qgt});var tgt={};Kft.r(tgt),Kft.d(tgt,{templates:()=>Xgt});var ngt={};Kft.r(ngt),Kft.d(ngt,{templates:()=>Ygt});var rgt={};Kft.r(rgt),Kft.d(rgt,{templates:()=>Kgt});var igt={};Kft.r(igt),Kft.d(igt,{templates:()=>Zgt});var ogt={};Kft.r(ogt),Kft.d(ogt,{templates:()=>$gt});var sgt={};Kft.r(sgt),Kft.d(sgt,{templates:()=>Jgt});var agt={};Kft.r(agt),Kft.d(agt,{templates:()=>Qgt});var lgt={};Kft.r(lgt),Kft.d(lgt,{templates:()=>emt});var cgt={};Kft.r(cgt),Kft.d(cgt,{templates:()=>tmt});var ugt={};Kft.r(ugt),Kft.d(ugt,{templates:()=>nmt});var dgt={};Kft.r(dgt),Kft.d(dgt,{templates:()=>rmt});var hgt={};Kft.r(hgt),Kft.d(hgt,{templates:()=>imt});var pgt={};Kft.r(pgt),Kft.d(pgt,{templates:()=>omt});var fgt={};Kft.r(fgt),Kft.d(fgt,{templates:()=>smt});var ggt={};Kft.r(ggt),Kft.d(ggt,{templates:()=>amt});var mgt={};Kft.r(mgt),Kft.d(mgt,{templates:()=>lmt});const ygt=(e=>{var t={};return Kft.d(t,e),t})({LitElement:()=>aft,css:()=>ept,html:()=>Bpt}),vgt=(e,t,n)=>{let r=e[0];for(let i=1;i<e.length;i++)r+=t[n?n[i-1]:i-1],r+=e[i];return r},_gt=e=>{return"string"!=typeof(t=e)&&"strTag"in t?vgt(e.strings,e.values):e;var t};let bgt=_gt,xgt=!1;const Sgt="lit-localize-status";class wgt{constructor(e){this.__litLocalizeEventHandler=e=>{"ready"===e.detail.status&&this.host.requestUpdate()},this.host=e}hostConnected(){window.addEventListener(Sgt,this.__litLocalizeEventHandler)}hostDisconnected(){window.removeEventListener(Sgt,this.__litLocalizeEventHandler)}}const Egt=e=>e.addController(new wgt(e));class Pgt{constructor(){this.settled=!1,this.promise=new Promise(((e,t)=>{this._resolve=e,this._reject=t}))}resolve(e){this.settled=!0,this._resolve(e)}reject(e){this.settled=!0,this._reject(e)}}const Cgt=[];for(let Set=0;Set<256;Set++)Cgt[Set]=(Set>>4&15).toString(16)+(15&Set).toString(16);const Agt="\x1e",kgt="h",jgt="s";const Igt=new WeakMap,Ggt=new Map;function Tgt(e,t,n){if(e){var r;const i=null!==(r=null===n||void 0===n?void 0:n.id)&&void 0!==r?r:function(e){const t="string"==typeof e?e:e.strings;let n=Ggt.get(t);return void 0===n&&(n=function(e,t){return(t?kgt:jgt)+function(e){let t=0,n=8997,r=0,i=33826,o=0,s=40164,a=0,l=52210;for(let c=0;c<e.length;c++)n^=e.charCodeAt(c),t=435*n,r=435*i,o=435*s,a=435*l,o+=n<<8,a+=i<<8,r+=t>>>16,n=65535&t,o+=r>>>16,i=65535&r,l=a+(o>>>16)&65535,s=65535&o;return Cgt[l>>8]+Cgt[255&l]+Cgt[s>>8]+Cgt[255&s]+Cgt[i>>8]+Cgt[255&i]+Cgt[n>>8]+Cgt[255&n]}("string"==typeof e?e:e.join(Agt))}(t,"string"!=typeof e&&!("strTag"in e)),Ggt.set(t,n)),n}(t),o=e[i];if(o){if("string"==typeof o)return o;if("strTag"in o)return vgt(o.strings,t.values,o.values);{let e=Igt.get(o);return void 0===e&&(e=o.values,Igt.set(o,e)),{...o,values:e.map((e=>t.values[e]))}}}}return _gt(t)}function Mgt(e){window.dispatchEvent(new CustomEvent(Sgt,{detail:e}))}let Ogt,Rgt,Dgt,Ngt,Lgt,Vgt="",Fgt=new Pgt;Fgt.resolve();let zgt=0;const Bgt=(e=>{var t={};return Kft.d(t,e),t})({customElement:()=>cft,property:()=>hft,state:()=>pft}),Ugt={s182ab2d6c997515f:"\u0414\u043e\u0431\u0430\u0432\u044c\u0442\u0435 \u0435\u0433\u043e \u043d\u0430 \u0433\u043b\u0430\u0432\u043d\u044b\u0439 \u044d\u043a\u0440\u0430\u043d, \u0447\u0442\u043e\u0431\u044b \u043f\u043e\u043b\u0443\u0447\u0438\u0442\u044c \u0434\u043e\u043f\u043e\u043b\u043d\u0438\u0442\u0435\u043b\u044c\u043d\u044b\u0435 \u0432\u043e\u0437\u043c\u043e\u0436\u043d\u043e\u0441\u0442\u0438 \u0438 \u0443\u0434\u043e\u0431\u0441\u0442\u0432\u043e \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u044f.",s1b9047d53d9f9d22:'2) \u041d\u0430\u0436\u0430\u0442\u044c "\u041f\u043e\u0434\u0435\u043b\u0438\u0442\u044c\u0441\u044f"',s37a9e8aec5713460:"\u041f\u043e\u0434\u0440\u043e\u0431\u043d\u0435\u0435",s5c6aad7a7e4a1437:'3) \u041d\u0430\u0436\u0430\u0442\u044c "\u041d\u0430 \u044d\u043a\u0440\u0430\u043d \xab\u0414\u043e\u043c\u043e\u0439\xbb"',s6196153c4b0c1ea0:"\u0423\u0441\u0442\u0430\u043d\u043e\u0432\u0438\u0442\u044c",s922329d6f6213590:"\u0414\u043e\u0431\u0430\u0432\u0438\u0442\u044c \u0432 Dock",sa5ef80b4bb9b39f8:"\u0421\u0432\u0435\u0440\u043d\u0443\u0442\u044c",sa7551383d1897fcc:'2) \u041d\u0430\u0436\u043c\u0438\u0442\u0435 "\u0414\u043e\u0431\u0430\u0432\u0438\u0442\u044c \u0432 Dock"',sba52286c21552a4e:"\u0423\u0441\u0442\u0430\u043d\u043e\u0432\u0438\u0442\u0435 \u044d\u0442\u043e \u043d\u0430 \u0432\u0430\u0448\u0435 \u0443\u0441\u0442\u0440\u043e\u0439\u0441\u0442\u0432\u043e, \u0447\u0442\u043e\u0431\u044b \u043f\u043e\u043b\u0443\u0447\u0438\u0442\u044c \u0434\u043e\u043f\u043e\u043b\u043d\u0438\u0442\u0435\u043b\u044c\u043d\u044b\u0435 \u0432\u043e\u0437\u043c\u043e\u0436\u043d\u043e\u0441\u0442\u0438 \u0438 \u0443\u0434\u043e\u0431\u0441\u0442\u0432\u043e \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u044f.",sc79fd7641eb9a975:"\u0421\u043f\u0440\u044f\u0442\u0430\u0442\u044c \u0418\u043d\u0441\u0442\u0440\u0443\u043a\u0446\u0438\u044e",scdaf4bbff76674c8:"\u041d\u0430 \u044d\u043a\u0440\u0430\u043d \xab\u0414\u043e\u043c\u043e\u0439\xbb",sdfe23506a3b0cdc8:"1) \u041e\u0442\u043a\u0440\u044b\u0442\u044c \u0432 Safari \u0431\u0440\u0430\u0443\u0437\u0435\u0440\u0435",se740f75b95a51807:"\u0414\u043e\u0431\u0430\u0432\u044c\u0442\u0435 \u0435\u0433\u043e \u0432 Dock, \u0447\u0442\u043e\u0431\u044b \u043f\u043e\u043b\u0443\u0447\u0438\u0442\u044c \u0434\u043e\u043f\u043e\u043b\u043d\u0438\u0442\u0435\u043b\u044c\u043d\u044b\u0435 \u0432\u043e\u0437\u043c\u043e\u0436\u043d\u043e\u0441\u0442\u0438 \u0438 \u0443\u0434\u043e\u0431\u0441\u0442\u0432\u043e \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u044f.",sfea652f6580ff086:"\u042d\u0442\u043e\u0442 \u0432\u0435\u0431-\u0441\u0430\u0439\u0442 \u0438\u043c\u0435\u0435\u0442 \u0444\u0443\u043d\u043a\u0446\u0438\u043e\u043d\u0430\u043b \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u044f."},Wgt={s182ab2d6c997515f:"Daha iyi bir deneyim ve kolay eri\u015fim i\xe7in Ana Ekran\u0131n\u0131za ekleyin.",s1b9047d53d9f9d22:"2) Gezinme \xe7ubu\u011funda Payla\u015f'a bas\u0131n",s37a9e8aec5713460:"Daha Fazla",s5c6aad7a7e4a1437:"3) Ana Ekrana Ekle'ye bas\u0131n",s6196153c4b0c1ea0:"Y\xfckle",s922329d6f6213590:"Dock\u2019a Ekle",sa5ef80b4bb9b39f8:"K\xfc\xe7\xfclt",sa7551383d1897fcc:"2) Dock\u2019a ekleye bas\u0131n",sba52286c21552a4e:"Daha iyi bir deneyim ve kolay eri\u015fim i\xe7in cihaz\u0131n\u0131za y\xfckleyin.",sc79fd7641eb9a975:"Talimatlar\u0131 gizle",scdaf4bbff76674c8:"Ana Ekrana Ekle",sdfe23506a3b0cdc8:"1) Safari taray\u0131c\u0131s\u0131nda a\xe7\u0131n",se740f75b95a51807:"Daha iyi bir deneyim ve kolay eri\u015fim i\xe7in Dock\u2019a ekleyin.",sfea652f6580ff086:"Bu site uygulama i\u015flevselli\u011fine sahiptir."},Hgt={s182ab2d6c997515f:"F\xfcgen Sie es zu Ihrem Startbildschirm hinzu, um eine umfassende Erfahrung und einen leichten Zugriff zu erhalten.",s1b9047d53d9f9d22:"2) Dr\xfccken Sie auf Teilen in der Navigationsleiste",s37a9e8aec5713460:"Mehr",s5c6aad7a7e4a1437:"3) Dr\xfccken Sie Hinzuf\xfcgen zum Startbildschirm",s6196153c4b0c1ea0:"Installieren",s922329d6f6213590:"Zum Dock hinzuf\xfcgen",sa5ef80b4bb9b39f8:"Weniger",sa7551383d1897fcc:"2) Dr\xfccken Sie auf Zum Dock hinzuf\xfcgen",sba52286c21552a4e:"Installieren Sie es auf Ihrem Ger\xe4t f\xfcr eine umfassende Erfahrung und einen leichten Zugriff.",sc79fd7641eb9a975:"Anleitung ausblenden",scdaf4bbff76674c8:"Hinzuf\xfcgen zum Startbildschirm",sdfe23506a3b0cdc8:"1) In Safari-Browser \xf6ffnen",se740f75b95a51807:"F\xfcgen Sie es zu Ihrem Dock hinzu, um eine umfassende Erfahrung und einen leichten Zugriff zu erhalten.",sfea652f6580ff086:"Diese Website verf\xfcgt \xfcber App-Funktionalit\xe4t."},qgt={s182ab2d6c997515f:"A\xf1\xe1delo a tu pantalla de inicio para una experiencia amplia y acceso f\xe1cil.",s1b9047d53d9f9d22:"2) Presionar Compartir en la barra de direcciones",s37a9e8aec5713460:"M\xe1s",s5c6aad7a7e4a1437:"3) Presionar A\xf1adir a pantalla de inicio",s6196153c4b0c1ea0:"Instalar",s922329d6f6213590:"A\xf1adir al Dock",sa5ef80b4bb9b39f8:"Menos",sa7551383d1897fcc:"2) Presionar A\xf1adir al Dock",sba52286c21552a4e:"Inst\xe1lalo en tu dispositivo para una experiencia amplia y acceso f\xe1cil.",sc79fd7641eb9a975:"Esconder instrucciones",scdaf4bbff76674c8:"A\xf1adir a pantalla de inicio",sdfe23506a3b0cdc8:"1) Abrir en el navegador web Safari",se740f75b95a51807:"A\xf1\xe1delo a tu Dock para una experiencia amplia y acceso f\xe1cil.",sfea652f6580ff086:"Este sitio tiene funcionalidad de aplicaci\xf3n."},Xgt={s182ab2d6c997515f:"Voeg het toe aan je startscherm voor een uitgebreide ervaring en gemakkelijke toegang.",s1b9047d53d9f9d22:"2) Druk op delen in de navigatiebalk",s37a9e8aec5713460:"Meer",s5c6aad7a7e4a1437:"3) Druk op Toevoegen aan het startscherm",s6196153c4b0c1ea0:"Installeren",s922329d6f6213590:"Toevoegen aan Dock",sa5ef80b4bb9b39f8:"Minder",sa7551383d1897fcc:"2) Druk op Toevoegen aan Dock",sba52286c21552a4e:"Installeer het op je apparaat voor een uitgebreide ervaring en gemakkelijke toegang.",sc79fd7641eb9a975:"Instructie verbergen",scdaf4bbff76674c8:"Toevoegen aan het startscherm",sdfe23506a3b0cdc8:"1) Open in Safari-browser",se740f75b95a51807:"Voeg het toe aan je Dock voor een uitgebreide ervaring en makkelijke toegang.",sfea652f6580ff086:"Deze site heeft app-functionaliteit."},Ygt={s182ab2d6c997515f:"\u03a0\u03c1\u03bf\u03c3\u03b8\u03ad\u03c3\u03c4\u03b5 \u03c4\u03bf \u03c3\u03c4\u03b7\u03bd \u03bf\u03b8\u03cc\u03bd\u03b7 \u0391\u03c6\u03b5\u03c4\u03b7\u03c1\u03af\u03b1\u03c2 \u03b3\u03b9\u03b1 \u03b5\u03ba\u03c4\u03b5\u03c4\u03b1\u03bc\u03ad\u03bd\u03b7 \u03b5\u03bc\u03c0\u03b5\u03b9\u03c1\u03af\u03b1 \u03ba\u03b1\u03b9 \u03b5\u03cd\u03ba\u03bf\u03bb\u03b7 \u03c0\u03c1\u03cc\u03c3\u03b2\u03b1\u03c3\u03b7.",s1b9047d53d9f9d22:"2) \u03a0\u03b1\u03c4\u03ae\u03c3\u03c4\u03b5 \u039a\u03bf\u03b9\u03bd\u03bf\u03c0\u03bf\u03af\u03b7\u03c3\u03b7 \u03c3\u03c4\u03b7 \u03b3\u03c1\u03b1\u03bc\u03bc\u03ae \u03c0\u03bb\u03bf\u03ae\u03b3\u03b7\u03c3\u03b7\u03c2",s37a9e8aec5713460:"\u03a0\u03b5\u03c1\u03b9\u03c3\u03c3\u03cc\u03c4\u03b5\u03c1\u03b1",s5c6aad7a7e4a1437:"3) \u03a0\u03b1\u03c4\u03ae\u03c3\u03c4\u03b5 \u03a0\u03c1\u03bf\u03c3\u03b8\u03ae\u03ba\u03b7 \u03c3\u03c4\u03b7\u03bd \u03bf\u03b8\u03cc\u03bd\u03b7 \u0391\u03c6\u03b5\u03c4\u03b7\u03c1\u03af\u03b1\u03c2",s6196153c4b0c1ea0:"\u0395\u03b3\u03ba\u03b1\u03c4\u03ac\u03c3\u03c4\u03b1\u03c3\u03b7",s922329d6f6213590:"\u03a0\u03c1\u03bf\u03c3\u03b8\u03ae\u03ba\u03b7 \u03c3\u03c4\u03b7\u03bd \u03a0\u03c1\u03cc\u03c3\u03b2\u03b1\u03c3\u03b7",sa5ef80b4bb9b39f8:"\u039b\u03b9\u03b3\u03cc\u03c4\u03b5\u03c1\u03b1",sa7551383d1897fcc:"2) \u03a0\u03b1\u03c4\u03ae\u03c3\u03c4\u03b5 \u03a0\u03c1\u03bf\u03c3\u03b8\u03ae\u03ba\u03b7 \u03c3\u03c4\u03b7\u03bd \u03a0\u03c1\u03cc\u03c3\u03b2\u03b1\u03c3\u03b7",sba52286c21552a4e:"\u0395\u03b3\u03ba\u03b1\u03c4\u03b1\u03c3\u03c4\u03ae\u03c3\u03c4\u03b5 \u03c4\u03bf \u03c3\u03c4\u03b7 \u03c3\u03c5\u03c3\u03ba\u03b5\u03c5\u03ae \u03c3\u03b1\u03c2 \u03b3\u03b9\u03b1 \u03b5\u03ba\u03c4\u03b5\u03c4\u03b1\u03bc\u03ad\u03bd\u03b7 \u03b5\u03bc\u03c0\u03b5\u03b9\u03c1\u03af\u03b1 \u03ba\u03b1\u03b9 \u03b5\u03cd\u03ba\u03bf\u03bb\u03b7 \u03c0\u03c1\u03cc\u03c3\u03b2\u03b1\u03c3\u03b7.",sc79fd7641eb9a975:"\u0391\u03c0\u03cc\u03ba\u03c1\u03c5\u03c8\u03b7 \u039f\u03b4\u03b7\u03b3\u03b9\u03ce\u03bd",scdaf4bbff76674c8:"\u03a0\u03c1\u03bf\u03c3\u03b8\u03ae\u03ba\u03b7 \u03c3\u03c4\u03b7\u03bd \u039f\u03b8\u03cc\u03bd\u03b7 \u0391\u03c6\u03b5\u03c4\u03b7\u03c1\u03af\u03b1\u03c2",sdfe23506a3b0cdc8:"1) \u0391\u03bd\u03bf\u03af\u03be\u03c4\u03b5 \u03c4\u03bf\u03bd \u03c0\u03b5\u03c1\u03b9\u03b7\u03b3\u03b7\u03c4\u03ae Safari",se740f75b95a51807:"\u03a0\u03c1\u03bf\u03c3\u03b8\u03ad\u03c3\u03c4\u03b5 \u03c4\u03bf \u03c3\u03c4\u03b7\u03bd \u03a0\u03c1\u03cc\u03c3\u03b2\u03b1\u03c3\u03b7 \u03b3\u03b9\u03b1 \u03b5\u03ba\u03c4\u03b5\u03c4\u03b1\u03bc\u03ad\u03bd\u03b7 \u03b5\u03bc\u03c0\u03b5\u03b9\u03c1\u03af\u03b1 \u03ba\u03b1\u03b9 \u03b5\u03cd\u03ba\u03bf\u03bb\u03b7 \u03c0\u03c1\u03cc\u03c3\u03b2\u03b1\u03c3\u03b7.",sfea652f6580ff086:"\u0391\u03c5\u03c4\u03cc\u03c2 \u03bf \u03b9\u03c3\u03c4\u03cc\u03c4\u03bf\u03c0\u03bf\u03c2 \u03ad\u03c7\u03b5\u03b9 \u03bb\u03b5\u03b9\u03c4\u03bf\u03c5\u03c1\u03b3\u03b9\u03ba\u03ae \u03b5\u03c6\u03b1\u03c1\u03bc\u03bf\u03b3\u03ae\u03c2."},Kgt={s182ab2d6c997515f:"Ajoutez-le \xe0 votre \xe9cran d'accueil pour une exp\xe9rience \xe9tendue et un acc\xe8s facile.",s1b9047d53d9f9d22:"2) Appuyez sur Partager dans la barre de navigation",s37a9e8aec5713460:"Plus",s5c6aad7a7e4a1437:"3) Appuyez sur Ajouter \xe0 l'\xe9cran d'accueil",s6196153c4b0c1ea0:"Installer",s922329d6f6213590:"Ajouter au Dock",sa5ef80b4bb9b39f8:"Moins",sa7551383d1897fcc:"2) Appuyez sur Ajouter au Dock",sba52286c21552a4e:"Installez-le sur votre appareil pour une exp\xe9rience compl\xe8te et un acc\xe8s facile.",sc79fd7641eb9a975:"Masquer les instructions",scdaf4bbff76674c8:"Ajouter \xe0 l'\xe9cran d'accueil",sdfe23506a3b0cdc8:"1) Ouvrir dans le navigateur Safari",se740f75b95a51807:"Ajoutez-le \xe0 votre Dock pour une exp\xe9rience \xe9tendue et un acc\xe8s facile.",sfea652f6580ff086:"Ce site poss\xe8de des fonctionnalit\xe9s d'application."},Zgt={s182ab2d6c997515f:"\u0414\u043e\u0434\u0430\u0458\u0442\u0435 \u0433\u0430 \u043d\u0430 Home Screen \u0437\u0430 \u0448\u0438\u0440\u043e\u043a\u0435 \u043c\u043e\u0433\u0443\u045b\u043d\u043e\u0441\u0442\u0438 \u0438 \u043b\u0430\u043a \u043f\u0440\u0438\u0441\u0442\u0443\u043f.",s1b9047d53d9f9d22:"2) \u041f\u0440\u0438\u0442\u0438\u0441\u043d\u0438\u0442\u0435 Share \u0443 \u043d\u0430\u0432\u0438\u0433\u0430\u0446\u0438\u043e\u043d\u043e\u0458 \u0442\u0440\u0430\u0446\u0438",s37a9e8aec5713460:"\u0412\u0438\u0448\u0435",s5c6aad7a7e4a1437:"3) \u041f\u0440\u0438\u0442\u0438\u0441\u043d\u0438\u0442\u0435 Add to Home Screen",s6196153c4b0c1ea0:"\u0418\u043d\u0441\u0442\u0430\u043b\u0438\u0440\u0430\u0458",sa5ef80b4bb9b39f8:"\u041c\u0430\u045a\u0435",sa7551383d1897fcc:"3) \u041f\u0440\u0438\u0442\u0438\u0441\u043d\u0438\u0442\u0435 Add to Dock",sba52286c21552a4e:"\u0418\u043d\u0441\u0442\u0430\u043b\u0438\u0440\u0430\u0458\u0442\u0435 \u0433\u0430 \u043d\u0430 \u0432\u0430\u0448\u0435\u043c \u0443\u0440\u0435\u0452\u0430\u0458\u0443 \u0437\u0430 \u0448\u0438\u0440\u043e\u043a\u0435 \u043c\u043e\u0433\u0443\u045b\u043d\u043e\u0441\u0442\u0438 \u0438 \u043b\u0430\u043a \u043f\u0440\u0438\u0441\u0442\u0443\u043f.",sc79fd7641eb9a975:"\u0421\u0430\u043a\u0440\u0438\u0458 \u0443\u043f\u0443\u0442\u0441\u0442\u0432\u043e",sdfe23506a3b0cdc8:"1) \u041e\u0442\u0432\u043e\u0440\u0438\u0442\u0435 \u0443 Safari \u043f\u0440\u0435\u0433\u043b\u0435\u0434\u0430\u0447\u0443",se740f75b95a51807:"\u0414\u043e\u0434\u0430\u0458\u0442\u0435 \u0433\u0430 \u0443 \u0432\u0430\u0448\u0443 Dock \u0437\u0430 \u0448\u0438\u0440\u043e\u043a\u0435 \u043c\u043e\u0433\u0443\u045b\u043d\u043e\u0441\u0442\u0438 \u0438 \u043b\u0430\u043a \u043f\u0440\u0438\u0441\u0442\u0443\u043f.",sfea652f6580ff086:"\u041e\u0432\u0430\u0458 \u0441\u0430\u0458\u0442 \u0438\u043c\u0430 \u0444\u0443\u043d\u043a\u0446\u0438\u043e\u043d\u0430\u043b\u043d\u043e\u0441\u0442 \u0430\u043f\u043b\u0438\u043a\u0430\u0446\u0438\u0458\u0435.",s922329d6f6213590:"Add to Dock",scdaf4bbff76674c8:"Add to Home Screen"},$gt={s182ab2d6c997515f:"Dodaj do swojego Ekranu G\u0142\xf3wnego, aby uzyska\u0107 bogate do\u015bwiadczenie i \u0142atwy dost\u0119p.",s1b9047d53d9f9d22:'2) Wybierz "Udost\u0119pnij"',s37a9e8aec5713460:"Wi\u0119cej",s5c6aad7a7e4a1437:'3) Wybierz "Dodaj do Ekranu G\u0142\xf3wnego"',s6196153c4b0c1ea0:"Zainstaluj",s922329d6f6213590:"Dodaj do Docka",sa5ef80b4bb9b39f8:"Mniej",sa7551383d1897fcc:'2) Wybierz "Dodaj do Docka"',sba52286c21552a4e:"Zainstaluj na swoim urz\u0105dzeniu, aby uzyska\u0107 bogate do\u015bwiadczenie i \u0142atwy dost\u0119p.",sc79fd7641eb9a975:"Ukryj instrukcj\u0119",scdaf4bbff76674c8:"Dodaj do Ekranu G\u0142\xf3wnego",sdfe23506a3b0cdc8:"1) Otw\xf3rz przegl\u0105dark\u0119 Safari",se740f75b95a51807:"Dodaj do swojego Docka, aby uzyska\u0107 bogate do\u015bwiadczenie i \u0142atwy dost\u0119p.",sfea652f6580ff086:"Ta strona posiada funkcje aplikacji."},Jgt={s182ab2d6c997515f:"\u0414\u043e\u0434\u0430\u0439\u0442\u0435 \u043d\u0430 \u0414\u043e\u043c\u0430\u0448\u043d\u0456\u0439 \u0435\u043a\u0440\u0430\u043d \u0434\u043b\u044f \u0437\u0440\u0443\u0447\u043d\u043e\u0433\u043e \u0434\u043e\u0441\u0442\u0443\u043f\u0443 \u0442\u0430 \u0448\u0438\u0440\u0448\u0438\u0445 \u043c\u043e\u0436\u043b\u0438\u0432\u043e\u0441\u0442\u0435\u0439.",s1b9047d53d9f9d22:"2) \u041d\u0430\u0442\u0438\u0441\u043d\u0443\u0442\u0438 \xab\u041f\u043e\u0434\u0456\u043b\u0438\u0442\u0438\u0441\u044f\xbb",s37a9e8aec5713460:"\u0414\u0435\u0442\u0430\u043b\u044c\u043d\u0456\u0448\u0435",s5c6aad7a7e4a1437:"3) \u041d\u0430\u0442\u0438\u0441\u043d\u0443\u0442\u0438 \xab\u041d\u0430 \u041f\u043e\u0447\u0430\u0442\u043a\u043e\u0432\u0438\u0439 \u0435\u043a\u0440\u0430\u043d\xbb",s6196153c4b0c1ea0:"\u0412\u0441\u0442\u0430\u043d\u043e\u0432\u0438\u0442\u0438",s922329d6f6213590:"\u0414\u043e\u0434\u0430\u0442\u0438 \u043d\u0430 Dock",sa5ef80b4bb9b39f8:"\u0417\u0433\u043e\u0440\u043d\u0443\u0442\u0438",sa7551383d1897fcc:"2) \u041d\u0430\u0442\u0438\u0441\u043d\u0443\u0442\u0438 \xab\u0414\u043e\u0434\u0430\u0442\u0438 \u043d\u0430 Dock\xbb",sba52286c21552a4e:"\u0412\u0441\u0442\u0430\u043d\u043e\u0432\u0456\u0442\u044c \u043d\u0430 \u0432\u0430\u0448 \u043f\u0440\u0438\u0441\u0442\u0440\u0456\u0439 \u0434\u043b\u044f \u0437\u0440\u0443\u0447\u043d\u043e\u0433\u043e \u0434\u043e\u0441\u0442\u0443\u043f\u0443 \u0442\u0430 \u0448\u0438\u0440\u0448\u0438\u0445 \u043c\u043e\u0436\u043b\u0438\u0432\u043e\u0441\u0442\u0435\u0439.",sc79fd7641eb9a975:"\u0421\u0445\u043e\u0432\u0430\u0442\u0438 \u0406\u043d\u0441\u0442\u0440\u0443\u043a\u0446\u0456\u044e",scdaf4bbff76674c8:"\u041d\u0430 \u041f\u043e\u0447\u0430\u0442\u043a\u043e\u0432\u0438\u0439 \u044d\u043a\u0440\u0430\u043d",sdfe23506a3b0cdc8:"1) \u0412\u0456\u0434\u043a\u0440\u0438\u0442\u0438 \u0432 Safari \u0431\u0440\u0430\u0443\u0437\u0435\u0440\u0456",se740f75b95a51807:"\u0414\u043e\u0434\u0430\u0439\u0442\u0435 \u043d\u0430 \u043f\u0430\u043d\u0435\u043b\u044c Dock \u0434\u043b\u044f \u0437\u0440\u0443\u0447\u043d\u043e\u0433\u043e \u0434\u043e\u0441\u0442\u0443\u043f\u0443 \u0442\u0430 \u0448\u0438\u0440\u0448\u0438\u0445 \u043c\u043e\u0436\u043b\u0438\u0432\u043e\u0441\u0442\u0435\u0439.",sfea652f6580ff086:"\u0426\u0435\u0439 \u0441\u0430\u0439\u0442 \u043c\u0430\u0454 \u0444\u0443\u043d\u043a\u0446\u0456\u0457 \u0434\u043e\u0434\u0430\u0442\u043a\u0443."},Qgt={s182ab2d6c997515f:"\u5c07\u5176\u52a0\u5165\u4e3b\u5c4f\u5e55\uff0c\u4ee5\u7372\u5f97\u66f4\u8c50\u5bcc\u7684\u9ad4\u9a57\u548c\u4fbf\u6377\u8a2a\u554f\u3002",s1b9047d53d9f9d22:"2) \u9ede\u64ca\u5217\u8868\u4e0a\u7684\u5206\u4eab\u6309\u9215",s37a9e8aec5713460:"\u8a73\u7d30\u8cc7\u8a0a",s5c6aad7a7e4a1437:"3) \u9ede\u64ca\u52a0\u5165\u4e3b\u756b\u9762",s6196153c4b0c1ea0:"\u5b89\u88dd",s922329d6f6213590:"\u6dfb\u52a0\u5230Dock\u6b04",sa5ef80b4bb9b39f8:"\u7c21\u77ed\u8cc7\u8a0a",sa7551383d1897fcc:"2) \u9ede\u9078\u6dfb\u52a0\u5230Dock\u6b04",sba52286c21552a4e:"\u5728\u60a8\u7684\u88dd\u7f6e\u4e0a\u5b89\u88dd\u5b83\uff0c\u4ee5\u7372\u5f97\u66f4\u8c50\u5bcc\u7684\u9ad4\u9a57\u548c\u4fbf\u6377\u8a2a\u554f\u3002",sc79fd7641eb9a975:"\u96b1\u85cf\u5b89\u88dd\u6d41\u7a0b",scdaf4bbff76674c8:"\u5c07App\u52a0\u5165\u4e3b\u756b\u9762",sdfe23506a3b0cdc8:"1) \u5728Safari\u4e0a\u700f\u89bd\u6b64\u7db2\u9801",se740f75b95a51807:"\u5c07\u5176\u52a0\u5165\u4f60\u7684Dock\u6b04\uff0c\u4ee5\u7372\u5f97\u66f4\u8c50\u5bcc\u7684\u9ad4\u9a57\u548c\u4fbf\u6377\u8a2a\u554f\u3002",sfea652f6580ff086:"\u6b64\u7db2\u7ad9\u5177\u6709\u61c9\u7528\u7a0b\u5f0f\u529f\u80fd\u3002"},emt={s182ab2d6c997515f:"\u5c06\u5176\u6dfb\u52a0\u5230\u4e3b\u5c4f\u5e55\uff0c\u4ee5\u4eab\u53d7\u66f4\u5168\u9762\u7684\u4f53\u9a8c\u5e76\u4fbf\u4e8e\u8bbf\u95ee\u3002",s1b9047d53d9f9d22:"2) \u70b9\u51fb\u5217\u8868\u4e0a\u7684\u5206\u4eab\u6309\u94ae",s37a9e8aec5713460:"\u8be6\u7ec6\u8d44\u8baf",s5c6aad7a7e4a1437:"3) \u70b9\u51fb\u6dfb\u52a0\u5230\u4e3b\u5c4f\u5e55",s6196153c4b0c1ea0:"\u5b89\u88c5",s922329d6f6213590:"\u6dfb\u52a0\u5230Dock",sa5ef80b4bb9b39f8:"\u7b80\u77ed\u8d44\u8baf",sa7551383d1897fcc:"2) \u6309\u4e0b\u6dfb\u52a0\u5230Dock",sba52286c21552a4e:"\u5728\u60a8\u7684\u8bbe\u5907\u4e0a\u5b89\u88c5\uff0c\u4ee5\u4eab\u6709\u66f4\u5168\u9762\u7684\u4f53\u9a8c\u548c\u4fbf\u6377\u7684\u8bbf\u95ee\u3002",sc79fd7641eb9a975:"\u9690\u85cf\u5b89\u88c5\u6d41\u7a0b",scdaf4bbff76674c8:"\u5c06App\u6dfb\u52a0\u5230\u4e3b\u5c4f\u5e55",sdfe23506a3b0cdc8:"1) \u5728Safari\u4e0a\u6d4f\u89c8\u6b64\u7f51\u9875",se740f75b95a51807:"\u5c06\u5176\u6dfb\u52a0\u5230\u60a8\u7684Dock\uff0c\u4ee5\u4eab\u53d7\u66f4\u5168\u9762\u7684\u4f53\u9a8c\u5e76\u4fbf\u4e8e\u8bbf\u95ee\u3002",sfea652f6580ff086:"\u6b64\u7f51\u7ad9\u5177\u5907app\u7684\u529f\u80fd\u6027\u3002"},tmt={s182ab2d6c997515f:"Aggiungilo alla schermata principale per un'esperienza pi\xf9 completa e un accesso facile.",s1b9047d53d9f9d22:"2) Premi Condividi nella barra di navigazione",s37a9e8aec5713460:"Pi\xf9",s5c6aad7a7e4a1437:"3) Premi Aggiungi alla schermata principale",s6196153c4b0c1ea0:"Installa",s922329d6f6213590:"Aggiungi al Dock",sa5ef80b4bb9b39f8:"Meno",sa7551383d1897fcc:"2) Premi Aggiungi al Dock",sba52286c21552a4e:"Installalo sul tuo dispositivo per un'esperienza pi\xf9 completa e un accesso facile.",sc79fd7641eb9a975:"Nascondi istruzioni",scdaf4bbff76674c8:"Aggiungi alla schermata principale",sdfe23506a3b0cdc8:"1) Apri nel browser Safari",se740f75b95a51807:"Aggiungilo al Dock per un'esperienza pi\xf9 completa e un accesso facile.",sfea652f6580ff086:"Questo sito ha funzionalit\xe0 di app."},nmt={s182ab2d6c997515f:"P\u0159idejte jej na plochu pro roz\u0161\xed\u0159en\xe9 vyu\u017eit\xed a snadn\xfd p\u0159\xedstup.",s1b9047d53d9f9d22:"2) Stiskn\u011bte tla\u010d\xedtko Sd\xedlet na naviga\u010dn\xedm panelu",s37a9e8aec5713460:"Vice",s5c6aad7a7e4a1437:"3) Stiskn\u011bte tla\u010d\xedtko P\u0159idat na plochu",s6196153c4b0c1ea0:"Nainstalovat",s922329d6f6213590:"P\u0159idat do Docku",sa5ef80b4bb9b39f8:"M\xe9n\u011b",sa7551383d1897fcc:"2) Stiskn\u011bte P\u0159idat do Docku",sba52286c21552a4e:"Nainstalujte si jej na sv\xe9 za\u0159\xedzen\xed pro roz\u0161\xed\u0159en\xe9 vyu\u017eit\xed a snadn\xfd p\u0159\xedstup.",sc79fd7641eb9a975:"Skr\xfdt instrukce",scdaf4bbff76674c8:"P\u0159idat na plochu",sdfe23506a3b0cdc8:"1) Otev\u0159ete v prohl\xed\u017ee\u010di Safari",se740f75b95a51807:"P\u0159idejte jej do sv\xe9ho Docku pro roz\u0161\xed\u0159en\xe9 vyu\u017eit\xed a snadn\xfd p\u0159\xedstup.",sfea652f6580ff086:"Tento web m\xe1 funkce aplikace."},rmt={s182ab2d6c997515f:"Legg den til p\xe5 Hjem-skjermen din for \xe5 f\xe5 en bedre brukeropplevelse og raskere tilgang.",s1b9047d53d9f9d22:"2) Trykk p\xe5 Del-knappen i navigasjonslinjen",s37a9e8aec5713460:"Mer",s5c6aad7a7e4a1437:"3) Velg Legg til p\xe5 Hjem-skjerm",s6196153c4b0c1ea0:"Installer",s922329d6f6213590:"Legg til i Dock",sa5ef80b4bb9b39f8:"Mindre",sa7551383d1897fcc:"2) Velg Legg til i Dock",sba52286c21552a4e:"Installer den p\xe5 enheten din for \xe5 f\xe5 en bedre brukeropplevelse og raskere tilgang.",sc79fd7641eb9a975:"Skjul instruksjoner",scdaf4bbff76674c8:"Legg til p\xe5 Hjem-skjerm",sdfe23506a3b0cdc8:"1) \xc5pne i Safari",se740f75b95a51807:"Legg den til i Docken din for \xe5 f\xe5 en bedre brukeropplevelse og raskere tilgang.",sfea652f6580ff086:"Denne siden har app-funksjonalitet."},imt={s182ab2d6c997515f:"Adicione \xe0 Tela de In\xedcio para uma melhor experi\xeancia e mais f\xe1cil acesso.",s1b9047d53d9f9d22:"2) Pressione Compartilhar na barra de endere\xe7o",s37a9e8aec5713460:"Mais",s5c6aad7a7e4a1437:"3) Pressione Adicionar \xe0 Tela de In\xedcio",s6196153c4b0c1ea0:"Instalar",s922329d6f6213590:"Adicionar ao Dock",sa5ef80b4bb9b39f8:"Menos",sa7551383d1897fcc:"2) Pressione Adicionar ao Dock",sba52286c21552a4e:"Instale no dispositivo para uma melhor experi\xeancia e mais f\xe1cil acesso.",sc79fd7641eb9a975:"Ocultar Instru\xe7\xf5es",scdaf4bbff76674c8:"Adicionar \xe0 Tela de In\xedcio",sdfe23506a3b0cdc8:"1) Abra no navegador Safari",se740f75b95a51807:"Adicione ao Dock para uma melhor experi\xeancia e mais f\xe1cil acesso.",sfea652f6580ff086:"Este site possui funcionalidade de aplicativo."},omt={s182ab2d6c997515f:"\u30db\u30fc\u30e0\u753b\u9762\u306b\u8ffd\u52a0\u3057\u3066\u3001\u5e45\u5e83\u3044\u4f53\u9a13\u3068\u7c21\u5358\u306a\u30a2\u30af\u30bb\u30b9\u3092\u5b9f\u73fe\u3057\u3066\u304f\u3060\u3055\u3044\u3002",s1b9047d53d9f9d22:"2) \u30ca\u30d3\u30b2\u30fc\u30b7\u30e7\u30f3\u30d0\u30fc\u3067\u5171\u6709\u3092\u62bc\u3059",s37a9e8aec5713460:"\u5c55\u958b",s5c6aad7a7e4a1437:"3) \u300c\u30db\u30fc\u30e0\u753b\u9762\u306b\u8ffd\u52a0\u300d\u3092\u62bc\u3059",s6196153c4b0c1ea0:"\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb",s922329d6f6213590:"Dock\u306b\u8ffd\u52a0",sa5ef80b4bb9b39f8:"\u6298\u308a\u305f\u305f\u3080",sa7551383d1897fcc:"2) \u300cDock\u306b\u8ffd\u52a0\u300d\u3092\u62bc\u3059",sba52286c21552a4e:"\u30c7\u30d0\u30a4\u30b9\u306b\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3059\u308b\u3053\u3068\u3067\u3001\u3088\u308a\u5145\u5b9f\u3057\u305f\u4f53\u9a13\u3068\u7c21\u5358\u306a\u30a2\u30af\u30bb\u30b9\u3092\u5b9f\u73fe\u3067\u304d\u307e\u3059\u3002",sc79fd7641eb9a975:"\u8aac\u660e\u3092\u975e\u8868\u793a",scdaf4bbff76674c8:"\u30db\u30fc\u30e0\u753b\u9762\u306b\u8ffd\u52a0",sdfe23506a3b0cdc8:"1) Safari\u3067\u958b\u304f",se740f75b95a51807:"\u30c9\u30c3\u30af\u306b\u8ffd\u52a0\u3057\u3066\u3001\u5e45\u5e83\u3044\u4f53\u9a13\u3068\u7c21\u5358\u306a\u30a2\u30af\u30bb\u30b9\u3092\u5b9f\u73fe\u3057\u3066\u304f\u3060\u3055\u3044\u3002",sfea652f6580ff086:"\u3053\u306e\u30b5\u30a4\u30c8\u306f\u30a2\u30d7\u30ea\u6a5f\u80fd\u304c\u3042\u308a\u307e\u3059\u3002"},smt={s182ab2d6c997515f:"L\xe4gg till p\xe5 hemsk\xe4rmen f\xf6r att f\xe5 en b\xe4ttre anv\xe4ndarupplevelse och enklare \xe5tkomst.",s1b9047d53d9f9d22:"2) Tryck p\xe5 Dela-knappen i verktygsf\xe4ltet",s37a9e8aec5713460:"Mer",s5c6aad7a7e4a1437:"3) V\xe4lj L\xe4gg till p\xe5 hemsk\xe4rmen",s6196153c4b0c1ea0:"Installera",s922329d6f6213590:"L\xe4gg till i Dock",sa5ef80b4bb9b39f8:"Mindre",sa7551383d1897fcc:"2) V\xe4lj L\xe4gg till i Dock",sba52286c21552a4e:"Installera den p\xe5 din enhet f\xf6r att f\xe5 en b\xe4ttre anv\xe4ndarupplevelse och enklare \xe5tkomst.",sc79fd7641eb9a975:"G\xf6m instruktioner",scdaf4bbff76674c8:"L\xe4gg till p\xe5 hemsk\xe4rmen",sdfe23506a3b0cdc8:"1) \xd6ppna i Safari",se740f75b95a51807:"L\xe4gg till i Dock f\xf6r att f\xe5 en b\xe4ttre anv\xe4ndarupplevelse och enklare \xe5tkomst.",sfea652f6580ff086:"Denna webbsajt har app-funktionalitet."},amt={s182ab2d6c997515f:"\ub354 \ub9ce\uc740 \uae30\ub2a5\uacfc \uc26c\uc6b4 \uc811\uadfc\uc744 \uc704\ud574 \ud648 \ud654\uba74\uc5d0 \ucd94\uac00\ud574\uc8fc\uc138\uc694.",s1b9047d53d9f9d22:"2) \ub0b4\ube44\uac8c\uc774\uc158 \ubc14\uc5d0\uc11c \uacf5\uc720 \ubc84\ud2bc \ub204\ub974\uae30",s37a9e8aec5713460:"\ub354\ubcf4\uae30",s5c6aad7a7e4a1437:"3) \ud648 \ud654\uba74\uc5d0 \ucd94\uac00 \ubc84\ud2bc \ub204\ub974\uae30",s6196153c4b0c1ea0:"\uc124\uce58",s922329d6f6213590:"Dock\uc5d0 \ucd94\uac00",sa5ef80b4bb9b39f8:"\ub2eb\uae30",sa7551383d1897fcc:"2) Dock\uc5d0 \ucd94\uac00 \ubc84\ud2bc \ub204\ub974\uae30",sba52286c21552a4e:"\ub354 \ub9ce\uc740 \uae30\ub2a5\uacfc \uc26c\uc6b4 \uc811\uadfc\uc744 \uc704\ud574 \uae30\uae30\uc5d0 \uc124\uce58\ud574\uc8fc\uc138\uc694.",sc79fd7641eb9a975:"\uc548\ub0b4 \uc228\uae30\uae30",scdaf4bbff76674c8:"\ud648 \ud654\uba74\uc5d0 \ucd94\uac00",sdfe23506a3b0cdc8:"1) Safari \ube0c\ub77c\uc6b0\uc800\uc5d0\uc11c \uc5f4\uae30",se740f75b95a51807:"\ub354 \ub9ce\uc740 \uae30\ub2a5\uacfc \uc26c\uc6b4 \uc811\uadfc\uc744 \uc704\ud574 Dock\uc5d0 \ucd94\uac00\ud574\uc8fc\uc138\uc694.",sfea652f6580ff086:"\uc774 \uc0ac\uc774\ud2b8\ub294 \uc571 \uae30\ub2a5\uc744 \uac00\uc9c0\uace0 \uc788\uc2b5\ub2c8\ub2e4."},lmt={s182ab2d6c997515f:"\u1794\u1793\u17d2\u1790\u17c2\u1798\u179c\u17b6\u1791\u17c5\u1780\u17b6\u1793\u17cb\u1795\u17d2\u1791\u17b6\u17c6\u1784\u17a2\u17c1\u1780\u17d2\u179a\u1784\u17cb\u178a\u17be\u1798\u178a\u17be\u1798\u17d2\u1794\u17b8\u1791\u1791\u17bd\u179b\u1794\u17b6\u1793\u1793\u17bc\u179c\u1794\u1791\u1796\u17b7\u179f\u17c4\u1792\u1793\u17cd\u1780\u17b6\u1793\u17cb\u178f\u17c2\u179b\u17d2\u17a2\u1793\u17b7\u1784\u1784\u17b6\u1799\u179f\u17d2\u179a\u17bd\u179b\u1794\u17d2\u179a\u17be\u17d4",s1b9047d53d9f9d22:"2) \u1785\u17bb\u1785\u179b\u17be \u1794\u17ca\u17bc\u178f\u17bb\u1784\u1785\u17c2\u1780\u179a\u17c6\u179b\u17c2\u1780 \u1793\u17c5\u1780\u17d2\u1793\u17bb\u1784\u179a\u1794\u17b6\u179a\u1791\u17b7\u179f\u178a\u17c5",s37a9e8aec5713460:"\u1794\u1784\u17d2\u17a0\u17b6\u1789\u1794\u1793\u17d2\u1790\u17c2\u1798",s5c6aad7a7e4a1437:"3) \u1785\u17bb\u1785\u179b\u17be \u1794\u1793\u17d2\u1790\u17c2\u1798\u1791\u17c5\u1780\u17b6\u1793\u17cb\u1795\u17d2\u1791\u17b6\u17c6\u1784\u17a2\u17c1\u1780\u17d2\u179a\u1784\u17cb\u178a\u17be\u1798",s6196153c4b0c1ea0:"\u178f\u17c6\u17a1\u17be\u1784",s922329d6f6213590:"\u1794\u1793\u17d2\u1790\u17c2\u1798\u1791\u17c5\u1780\u17b6\u1793\u17cb Dock",sa5ef80b4bb9b39f8:"\u1794\u1784\u17d2\u17a0\u17b6\u1789\u178f\u17b7\u1785",sa7551383d1897fcc:"2) \u1785\u17bb\u1785\u179b\u17be \u1794\u1793\u17d2\u1790\u17c2\u1798\u1791\u17c5\u1780\u17b6\u1793\u17cb Dock",sba52286c21552a4e:"\u178f\u17c6\u17a1\u17be\u1784\u179c\u17b6\u1793\u17c5\u179b\u17be\u17a7\u1794\u1780\u179a\u178e\u17cd\u179a\u1794\u179f\u17cb\u17a2\u17d2\u1793\u1780\u178a\u17be\u1798\u17d2\u1794\u17b8\u1791\u1791\u17bd\u179b\u1794\u17b6\u1793\u1793\u17bc\u179c\u1794\u1791\u1796\u17b7\u179f\u17c4\u1792\u1793\u17cd\u1780\u17b6\u1793\u17cb\u178f\u17c2\u179b\u17d2\u17a2\u1793\u17b7\u1784\u1784\u17b6\u1799\u179f\u17d2\u179a\u17bd\u179b\u1794\u17d2\u179a\u17be\u17d4",sc79fd7641eb9a975:"\u1794\u17b7\u1791\u1780\u17b6\u179a\u178e\u17c2\u1793\u17b6\u17c6",scdaf4bbff76674c8:"\u1794\u1793\u17d2\u1790\u17c2\u1798\u1791\u17c5\u1780\u17b6\u1793\u17cb\u1795\u17d2\u1791\u17b6\u17c6\u1784\u17a2\u17c1\u1780\u17d2\u179a\u1784\u17cb\u178a\u17be\u1798",sdfe23506a3b0cdc8:"1) \u1794\u17be\u1780\u1793\u17c5\u1780\u17d2\u1793\u17bb\u1784\u1780\u1798\u17d2\u1798\u179c\u17b7\u1792\u17b8 Safari",se740f75b95a51807:"\u1794\u1793\u17d2\u1790\u17c2\u1798\u179c\u17b6\u1791\u17c5\u1780\u17b6\u1793\u17cb Dock \u178a\u17be\u1798\u17d2\u1794\u17b8\u1791\u1791\u17bd\u179b\u1794\u17b6\u1793\u1793\u17bc\u179c\u1794\u1791\u1796\u17b7\u179f\u17c4\u1792\u1793\u17cd\u1780\u17b6\u1793\u17cb\u178f\u17c2\u179b\u17d2\u17a2\u1793\u17b7\u1784\u1784\u17b6\u1799\u179f\u17d2\u179a\u17bd\u179b\u1794\u17d2\u179a\u17be\u17d4",sfea652f6580ff086:"\u1782\u17c1\u17a0\u1791\u17c6\u1796\u17d0\u179a\u1793\u17c1\u17c7\u1798\u17b6\u1793\u1798\u17bb\u1781\u1784\u17b6\u179a\u1787\u17b6\u1780\u1798\u17d2\u1798\u179c\u17b7\u1792\u17b8\u17d4"},cmt=new Map([["ru",$ft],["tr",Jft],["de",Qft],["es",egt],["nl",tgt],["el",ngt],["fr",rgt],["sr",igt],["pl",ogt],["uk",sgt],["zh",agt],["zh-CN",lgt],["it",cgt],["cs",ugt],["no",dgt],["pt",hgt],["ja",pgt],["sv",fgt],["ko",ggt],["km",mgt]]),{getLocale:umt,setLocale:dmt}=(hmt={sourceLocale:"en",targetLocales:["cs","de","el","es","fr","it","ja","km","ko","nl","no","pl","pt","ru","sr","sv","tr","uk","zh","zh-CN"],loadLocale:async e=>cmt.get(e)},function(e){if(xgt)throw Error("lit-localize can only be configured once");bgt=(e,t)=>Tgt(Lgt,e,t),xgt=!0}(),Vgt=Rgt=hmt.sourceLocale,Dgt=new Set(hmt.targetLocales),Dgt.add(hmt.sourceLocale),Ngt=hmt.loadLocale,{getLocale:()=>Vgt,setLocale:e=>{var t;if(e===(null!==(t=Ogt)&&void 0!==t?t:Vgt))return Fgt.promise;if(!Dgt||!Ngt)throw Error("Internal error");if(!Dgt.has(e))throw Error("Invalid locale code");zgt++;const n=zgt;return Ogt=e,Fgt.settled&&(Fgt=new Pgt),Mgt({status:"loading",loadingLocale:e}),(e===Rgt?Promise.resolve({templates:void 0}):Ngt(e)).then((t=>{zgt===n&&(Vgt=e,Ogt=void 0,Lgt=t.templates,Mgt({status:"ready",readyLocale:e}),Fgt.resolve())}),(t=>{zgt===n&&(Mgt({status:"error",errorLocale:e,errorMessage:t.toString()}),Fgt.reject(t))})),Fgt.promise}});var hmt;class pmt{constructor(){this.icons=[{src:""}],this.screenshots=void 0,this.short_name="PWA",this.name="Progressive web application",this.description="Progressive web application"}}const fmt=ygt.css(yft||(yft=js([".gallery{position:relative;--scrollbar-background-color:#fff;--scrollbar-thumb-color:rgb(146, 146, 146);--scrollbar-thumb-hover-color:rgb(100, 100, 100);--nav-btn-background-color:#fff;--nav-btn-fill-color:#141414}.gallery .gallery_scroller{scroll-snap-type:x mandatory;overflow-x:auto;overflow-y:hidden;display:flex;align-items:center;padding:10px 13px;padding-bottom:10px;margin:0 10px;-webkit-overflow-scrolling:touch}.gallery .gallery_scroller img{border-radius:6px;max-height:min(45vh,500px);box-shadow:0 3px 10px 0 rgba(0,0,0,.15);scroll-snap-align:center;scroll-snap-stop:always;position:relative}.gallery .gallery_scroller img+img{margin-left:15px}.gallery .gallery_scroller::-webkit-scrollbar{width:4px;height:2px}.gallery .gallery_scroller::-webkit-scrollbar-thumb{background:var(--scrollbar-thumb-color);border-radius:4px}.gallery .gallery_scroller::-webkit-scrollbar-thumb:hover{background:var(--scrollbar-thumb-hover-color)}.gallery .gallery_scroller::-webkit-scrollbar-track{background:var(--scrollbar-background-color);border-radius:4px}.gallery .gallery_scroller .scroller_wrap{display:flex;flex-direction:row;padding-right:13px}.gallery .btn{position:absolute;display:flex;align-items:center;-webkit-user-select:none;user-select:none;top:50%;transform:translateY(-50%);height:30px;width:30px;border-radius:50%;background-color:var(--nav-btn-background-color);box-shadow:rgba(0,0,0,.3) 2px 4px 4px 1px;background-repeat:no-repeat;opacity:.8;z-index:1}.gallery .btn.prev{left:5px}.gallery .btn.prev svg{margin-left:4px}.gallery .btn.next{right:5px}.gallery .btn.next svg{transform:rotate(180deg);margin-left:6px}.gallery .btn:hover{box-shadow:rgba(0,0,0,.5) 2px 4px 4px 1px;cursor:pointer;opacity:1}.gallery .btn svg{width:20px;height:20px}.gallery .btn svg path{fill:var(--nav-btn-fill-color)}.gallery.apple_desktop{--scrollbar-background-color:rgba(0, 0, 0, 0.1);--scrollbar-thumb-color:rgb(100, 100, 100);--scrollbar-thumb-hover-color:rgba(0, 0, 0, 0.85)}.gallery.apple_desktop .gallery_scroller{margin:0;padding-top:15px}.gallery.apple_desktop .btn{height:26px;width:26px;box-shadow:rgba(0,0,0,.3) 0 2px 2px 1px}.gallery.apple_desktop .btn:hover{box-shadow:rgba(0,0,0,.3) 0 2px 2px 1px}.gallery.apple_desktop .btn:active{filter:brightness(95%)}.gallery.apple_desktop .btn:active .svg{filter:brightness(110%)}.gallery.apple_desktop .btn svg{width:12px;height:auto;opacity:1}.gallery.apple_desktop .btn svg{margin-left:7px}.gallery.apple_mobile .btn.prev svg{margin-left:7px}.gallery.apple_mobile .btn svg{width:16px;height:auto}.gallery.apple_desktop .btn,.gallery.apple_mobile .btn{opacity:1}@media(hover:none)and (pointer:coarse){.gallery .btn.next,.gallery .btn.prev{display:none}.gallery_scroller::-webkit-scrollbar{display:none}}@media(prefers-color-scheme:dark){.gallery{--scrollbar-background-color:#424242;--nav-btn-background-color:#555555;--nav-btn-fill-color:#fff}.gallery.apple_desktop{--scrollbar-thumb-color:var(--nav-btn-fill-color);--scrollbar-background-color:var(--nav-btn-background-color);--scrollbar-thumb-hover-color:var(--nav-btn-fill-color)}.gallery.apple_desktop .btn:active{filter:brightness(110%)}.gallery.apple_desktop .btn:active .svg{filter:brightness(90%)}}"])));var gmt=function(e,t,n,r){var i,o=arguments.length,s=o<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,r);else for(var a=e.length-1;a>=0;a--)(i=e[a])&&(s=(o<3?i(s):o>3?i(t,n,s):i(t,n))||s);return o>3&&s&&Object.defineProperty(t,n,s),s},mmt=function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};let ymt=class extends ygt.LitElement{constructor(){super(...arguments),this.screenshots=[],this.theme="default",this.calcScrollSize=()=>{const e=this.shadowRoot.querySelector("#paginated_gallery");if(!e)return;const t=e.querySelector(".gallery_scroller");if(!t)return;const n=Array.from(t.querySelectorAll("img"));if(!n)return;const r=n.find((e=>e.offsetWidth+e.offsetLeft>=t.scrollLeft));return r?{scroller:t,item:r}:void 0},this.scrollToNextPage=()=>{const e=this.calcScrollSize();e&&e.item.nextElementSibling&&e.scroller.scrollTo({top:0,left:e.scroller.scrollLeft+e.scroller.clientWidth+e.item.nextElementSibling.clientWidth/2,behavior:"smooth"})},this.scrollToPrevPage=()=>{const e=this.calcScrollSize();e&&e.item.previousElementSibling&&e.scroller.scrollTo({top:0,left:e.scroller.scrollLeft-e.scroller.clientWidth-e.item.previousElementSibling.clientWidth/2,behavior:"smooth"})},this._init=()=>{}}static get styles(){return fmt}firstUpdated(){const e=this.calcScrollSize();e&&setTimeout((()=>{e.scroller.scrollTo({top:0,left:0})}),300)}connectedCallback(){super.connectedCallback(),this._init()}render(){return ygt.html(Eft||(Eft=js(["",""])),((e,t,n,r)=>ygt.html(vft||(vft=js(["",""])),e?ygt.html(_ft||(_ft=js(['<div id="paginated_gallery" class="gallery ','"><div class="gallery_scroller"><div class="scroller_wrap">','</div></div><span class="btn prev" @click="','">','</span><span class="btn next" @click="','">',"</span></div>"])),t,e.map((e=>ygt.html(bft||(bft=js(['<img draggable="false" src=\'',"'>"])),e.src))),r,"default"!=t?ygt.html(xft||(xft=js(['<svg id="arrow-left" viewBox="0 0 23.023 18.518"><path fill="currentColor" d="M0 9.253c0 .305.134.586.378.818l8.106 8.093c.244.232.5.342.793.342.598 0 1.075-.44 1.075-1.05 0-.293-.11-.586-.306-.769l-2.734-2.783-4.834-4.407-.256.598 3.93.244h15.442c.635 0 1.075-.451 1.075-1.086s-.44-1.087-1.075-1.087H6.152l-3.93.245.256.61 4.834-4.419 2.734-2.783a1.09 1.09 0 0 0 .306-.77C10.352.44 9.875 0 9.277 0c-.293 0-.549.098-.818.366L.38 8.436c-.247.23-.38.511-.38.816Z"/></svg>']))):ygt.html(Sft||(Sft=js(['<svg id="arrow-left" viewBox="0 0 96 96"><path d="M39.3756,48.0022l30.47-25.39a6.0035,6.0035,0,0,0-7.6878-9.223L26.1563,43.3906a6.0092,6.0092,0,0,0,0,9.2231L62.1578,82.615a6.0035,6.0035,0,0,0,7.6878-9.2231Z" fill="%23999" fill-rule="evenodd"/></svg>']))),n,ygt.html(wft||(wft=js(['<svg height="15" width="15"><use href="#arrow-left"></use></svg>'])))):""))(this.screenshots,this.theme,this.scrollToNextPage,this.scrollToPrevPage))}};gmt([(0,Bgt.property)(),mmt("design:type",Object)],ymt.prototype,"screenshots",void 0),gmt([(0,Bgt.property)(),mmt("design:type",String)],ymt.prototype,"theme",void 0),ymt=gmt([(0,Bgt.customElement)("pwa-gallery")],ymt);const vmt=ymt,_mt=(e,t,n)=>{const r=new CustomEvent(t,{detail:{message:n}});e.dispatchEvent(r)};class bmt{static isAppleMobile(){return!(!(["iPhone","iPad","iPod"].includes(navigator.platform)||navigator.userAgent.match(/Mac/)&&navigator.maxTouchPoints&&navigator.maxTouchPoints>2)||!("serviceWorker"in navigator))}static isAppleDesktop(){const e=navigator.userAgent.toLowerCase();if(navigator.maxTouchPoints||!e.match(/macintosh/))return!1;const t=/version\/(\d{2})\./.exec(e);if(!(t&&t[1]&&parseInt(t[1])>=17))return!1;const n=!!document.createElement("audio").canPlayType('audio/wav; codecs="1"'),r=!!new OffscreenCanvas(1,1).getContext("webgl");return n&&r}static isStandalone(){return!!(window.matchMedia("(display-mode: standalone)").matches||"standalone"in navigator&&!0===navigator.standalone)}static async getInstalledRelatedApps(){if("getInstalledRelatedApps"in navigator)try{await navigator.getInstalledRelatedApps().then((e=>e))}catch(e){}return[]}static async isRelatedAppsInstalled(){return!!(await this.getInstalledRelatedApps()).length}static eventInstalledSuccess(e){_mt(e,"pwa-install-success-event","App install success (Chromium/Android only)")}static eventInstalledFail(e){_mt(e,"pwa-install-fail-event","App install failed (Chromium/Android only)")}static eventUserChoiceResult(e,t){_mt(e,"pwa-user-choice-result-event",t)}static eventInstallAvailable(e){_mt(e,"pwa-install-available-event","App install available")}static eventInstallHowTo(e){_mt(e,"pwa-install-how-to-event","App install instruction showed")}static eventGallery(e){_mt(e,"pwa-install-gallery-event","App install gallery showed")}static normalizeManifestAssetUrls(e,t){const n=new URL(t,document.location.href);[...e.icons||[],...e.screenshots||[]].forEach((e=>{e.src=new URL(e.src,n).href}))}}var xmt=function(e,t,n,r){var i,o=arguments.length,s=o<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,r);else for(var a=e.length-1;a>=0;a--)(i=e[a])&&(s=(o<3?i(s):o>3?i(t,n,s):i(t,n))||s);return o>3&&s&&Object.defineProperty(t,n,s),s},Smt=function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};let wmt=class extends ygt.LitElement{constructor(){super(...arguments),this.props={name:"",description:"",icon:""},this.install={handleEvent:()=>{}},this.hideDialog=()=>{},this.disableClose=!1,this._callInstall=()=>{this.install.handleEvent()},this._callHide=()=>{this.hideDialog(),this.setupAppearence()},this.bindedElement=null,this._saveBodyStyle=document.body.style.overscrollBehaviorY,this.dragMobileSheet=(e,t,n)=>{if(!e||!t||!n)return null;let r=0;const i=t.clientHeight+n.clientHeight,o=e=>e.clientY||(e.changedTouches&&e.changedTouches.length?e.changedTouches[0].clientY:0),s=e=>{window.addEventListener("mouseup",a),window.addEventListener("mousemove",l),window.addEventListener("touchend",a),window.addEventListener("touchmove",l),r=o(e)-t.getBoundingClientRect().top,document.body.style.overscrollBehaviorY="none"},a=t=>{if(document.body.style.overscrollBehaviorY=this._saveBodyStyle,!this.disableClose&&o(t)>=window.innerHeight-25)c(t,window.innerHeight+50,!0);else if(window.innerHeight-o(t)>e.clientHeight/2.5){c(t,window.innerHeight-e.clientHeight);try{bmt.eventGallery(this.getRootNode().host)}catch(t){}}else c(t,window.innerHeight-i-35)},l=t=>{const n=o(t);this.disableClose&&window.innerHeight-n<70||n<=window.innerHeight-e.clientHeight+r||(e.style.setProperty("transition","none"),e.style.setProperty("--translateY","translateY(".concat(n-r,"px)")))},c=(n,r,c)=>{window.removeEventListener("mouseup",a),window.removeEventListener("mousemove",l),window.removeEventListener("touchend",a),window.removeEventListener("touchmove",l),window.innerWidth>=768||(!r&&o(n)>=window.innerHeight-i?e.style.setProperty("--translateY","translateY(calc(100vh - ".concat(i,"px))")):e.style.setProperty("--translateY","translateY(".concat((r||o(n))+35,"px)")),e.style.setProperty("transition","transform 500ms cubic-bezier(0.4, 0, 0, 1) 0s"),c&&(t.removeEventListener("mousedown",s),t.removeEventListener("touchstart",s),setTimeout(this._callHide,250)))};return t.addEventListener("mousedown",s),t.addEventListener("touchstart",s,{passive:!0}),c(new MouseEvent("mouseup"),window.innerHeight-i-35),{touchElement:t,listener:s}},this.setupAppearence=()=>{var e,t,n;this.bindedElement&&(this.bindedElement.touchElement.removeEventListener("mousedown",this.bindedElement.listener),this.bindedElement.touchElement.removeEventListener("touchstart",this.bindedElement.listener)),this.bindedElement=this.dragMobileSheet(null===(e=this.parentElement)||void 0===e?void 0:e.parentElement,null===(t=this.parentElement)||void 0===t?void 0:t.getElementsByClassName("touch-header")[0],null===(n=this.parentElement)||void 0===n?void 0:n.getElementsByClassName("body-header")[0])},this._init=()=>{this.setupAppearence(),window.addEventListener("resize",this.setupAppearence)}}firstUpdated(){this._init()}createRenderRoot(){return this}connectedCallback(){super.connectedCallback()}render(){return ygt.html(Aft||(Aft=js(["",""])),((e,t,n,r)=>ygt.html(Pft||(Pft=js(['<div class="touch-header" id="touch-header"></div><div class="body-header"><div class="icon"><img src="','" alt="icon" class="icon-image"></div><div class="about"><div class="name"><label>','</label></div><div class="hostname">','</div></div><button class="material-button primary install" @click=\'',"'>","</button></div>",""])),n,e,location.hostname,r,bgt("Install"),t?ygt.html(Cft||(Cft=js(['<div class="description">',"</div>"])),t):""))(this.props.name,this.props.description,this.props.icon,this._callInstall))}};xmt([(0,Bgt.property)({type:Object}),Smt("design:type",Object)],wmt.prototype,"props",void 0),xmt([(0,Bgt.property)({type:Object}),Smt("design:type",Object)],wmt.prototype,"install",void 0),xmt([(0,Bgt.property)(),Smt("design:type",Object)],wmt.prototype,"hideDialog",void 0),xmt([(0,Bgt.property)(),Smt("design:type",Object)],wmt.prototype,"disableClose",void 0),wmt=xmt([(0,Bgt.customElement)("pwa-bottom-sheet")],wmt);const Emt=wmt,Pmt=ygt.css(kft||(kft=js(['#pwa-install-element{-webkit-user-select:none;user-select:none}#pwa-install-element .install-dialog{--text-color-normal:#212121;--background-color:#fff;--border-bottom-color:#DBDCDE;--scrollbar-background-color:#fff;font-family:Roboto,"Segoe UI",system-ui;position:fixed;display:inline-block;opacity:0;visibility:hidden;z-index:2147483001}#pwa-install-element .install-dialog.chrome{max-width:380px;width:90%;min-height:90px;margin:0 auto;right:150px;left:auto;background-color:var(--background-color);filter:drop-shadow(0 5px 15px rgba(0, 0, 0, .3));font-size:15px;color:var(--text-color-normal);border-radius:8px;top:-100px;transition:top .5s ease-in-out,opacity .8s ease-in-out,max-height .35s ease-in-out}#pwa-install-element .install-dialog.chrome.available{opacity:1;top:28px;visibility:visible}#pwa-install-element .install-dialog.chrome .dialog-body{display:grid;grid-template-columns:70px 1fr}#pwa-install-element .install-dialog.chrome .dialog-body .icon{display:flex;align-items:flex-start}#pwa-install-element .install-dialog.chrome .dialog-body .icon .icon-image{width:48px;height:48px;margin:0 auto;margin-top:10px;border-radius:6px}#pwa-install-element .install-dialog.chrome .dialog-body .about{display:grid;grid-template-rows:30px auto}#pwa-install-element .install-dialog.chrome .dialog-body .about .hostname,#pwa-install-element .install-dialog.chrome .dialog-body .about .name{padding:0 5px;overflow:hidden}#pwa-install-element .install-dialog.chrome .dialog-body .about .name{font-weight:500;font-size:18px;line-height:24px;margin-top:5px;align-items:flex-start;display:flex}#pwa-install-element .install-dialog.chrome .dialog-body .about .name label{text-overflow:ellipsis;word-break:break-all;white-space:nowrap;overflow:hidden}#pwa-install-element .install-dialog.chrome .dialog-body .about .hostname{font-size:13px;font-weight:400;opacity:.7;line-height:14px;overflow-x:hidden;text-overflow:ellipsis;text-align:left;word-break:break-all;white-space:nowrap}#pwa-install-element .install-dialog.chrome .dialog-body .about+hr{margin-top:10px}#pwa-install-element .install-dialog.chrome .dialog-body .description{font-weight:400;line-height:20px;grid-column:1/3;padding:0 6px;margin:10px 5px 5px;display:-webkit-box;-webkit-line-clamp:5;-webkit-box-orient:vertical;max-height:115px;overflow:hidden;overflow-y:auto;text-overflow:ellipsis;text-align:left}#pwa-install-element .install-dialog.chrome .dialog-body .app-description{font-size:13px;margin-bottom:10px}#pwa-install-element .install-dialog.chrome .dialog-body .app-description::-webkit-scrollbar{width:4px;height:4px}#pwa-install-element .install-dialog.chrome .dialog-body .app-description::-webkit-scrollbar-thumb{background:#929292;border-radius:4px}#pwa-install-element .install-dialog.chrome .dialog-body .app-description::-webkit-scrollbar-thumb:hover{background:#646464}#pwa-install-element .install-dialog.chrome .dialog-body .app-description::-webkit-scrollbar-track{background:var(--scrollbar-background-color);border-radius:4px}#pwa-install-element .install-dialog.chrome .dialog-body .install-description{font-size:14px}#pwa-install-element .install-dialog.chrome .dialog-body hr{height:1px;width:100%;grid-column:1/3;background-color:var(--border-bottom-color);border:none;margin:0}#pwa-install-element .install-dialog.chrome .dialog-body .action-buttons{display:grid;grid-template-columns:50% auto;grid-column-start:1;grid-column-end:3;gap:10px;padding:10px 10px}#pwa-install-element .install-dialog.chrome .dialog-body .action-buttons .primary{grid-column-start:2}#pwa-install-element .install-dialog.chrome .dialog-body pwa-gallery{grid-column:1/3;max-height:0;opacity:0;transition:opacity ease-in-out .5s,max-height .5s ease-in-out;overflow:hidden}#pwa-install-element .install-dialog.chrome.gallery pwa-gallery{transition:opacity .3s ease-in-out .2s,max-height .5s ease-in-out;max-height:70vh;opacity:1}#pwa-install-element .install-dialog.mobile{--touch-header-color:#DBDCE0;top:0;max-width:414px;width:100%;bottom:auto;left:0;right:0;transition:none;transform:translateY(100vh);border-radius:0;border-top-left-radius:15px;border-top-right-radius:15px;padding-bottom:35px}#pwa-install-element .install-dialog.mobile .dialog-body{grid-template-columns:1fr}#pwa-install-element .install-dialog.mobile .dialog-body .touch-header{height:30px;width:100%;padding-top:10px;box-sizing:border-box;cursor:grab}#pwa-install-element .install-dialog.mobile .dialog-body .touch-header:active{cursor:grabbing}#pwa-install-element .install-dialog.mobile .dialog-body .touch-header::before{content:"";width:40px;height:5px;border-radius:3px;background:var(--touch-header-color);margin:0 auto;display:block}#pwa-install-element .install-dialog.mobile .dialog-body .body-header{display:grid;grid-template-columns:max-content 1fr max-content;grid-gap:15px;padding:18px 20px;padding-top:0;border-bottom:1px solid var(--border-bottom-color)}#pwa-install-element .install-dialog.mobile .dialog-body .body-header .install{text-transform:capitalize;height:40px;padding:0 23px}#pwa-install-element .install-dialog.mobile .dialog-body .body-header .about{grid-template-rows:auto auto;grid-gap:6px}#pwa-install-element .install-dialog.mobile .dialog-body .body-header .about .name{padding:0;line-height:20px;font-size:16px}#pwa-install-element .install-dialog.mobile .dialog-body .body-header .about .hostname{font-size:14px;font-weight:400;opacity:.7;line-height:14px;overflow-x:hidden;text-overflow:ellipsis;word-break:break-all;white-space:nowrap;padding:0}#pwa-install-element .install-dialog.mobile .dialog-body .body-header .icon .icon-image{margin:0;width:45px;height:45px}#pwa-install-element .install-dialog.mobile .dialog-body .description{padding:15px 20px 0;margin:0;margin-bottom:15px;-webkit-line-clamp:6;max-height:150px}#pwa-install-element .install-dialog.mobile .dialog-body pwa-gallery{max-height:100%;padding-bottom:15px;opacity:1}#pwa-install-element .install-dialog.mobile .material-button{border-radius:20px}#pwa-install-element .install-dialog.mobile.available{--translateY:translateY(calc(100vh - 85px));opacity:1;top:0;visibility:visible;transform:var(--translateY)}#pwa-install-element .material-button{--text-color-primary:#fff;--text-color-secondary:#374fc6;--background-color-primary:#374fc6;--background-color-ripple:#fff;position:relative;display:inline-block;box-sizing:border-box;border:none;border-radius:6px;padding:0 16px;min-width:64px;height:36px;vertical-align:middle;text-align:center;text-overflow:ellipsis;text-transform:uppercase;box-shadow:0 3px 1px -2px rgba(0,0,0,.2),0 2px 2px 0 rgba(0,0,0,.14),0 1px 5px 0 rgba(0,0,0,.12);font-family:Roboto,"Segoe UI",BlinkMacSystemFont,system-ui,-apple-system;font-size:14px;font-weight:500;line-height:37px;overflow:hidden;outline:0;cursor:pointer;transition:box-shadow .2s}#pwa-install-element .material-button.primary{color:var(--text-color-primary);background-color:var(--background-color-primary)}#pwa-install-element .material-button.secondary{background-color:rgba(0,0,0,0);color:var(--text-color-secondary);box-shadow:none}#pwa-install-element .material-button.secondary::after,#pwa-install-element .material-button.secondary::before{background-color:var(--background-color-primary)}#pwa-install-element .material-button.secondary:active,#pwa-install-element .material-button.secondary:hover{box-shadow:none}#pwa-install-element .material-button.secondary.close{height:26px;min-width:26px;line-height:0;margin-right:0;margin-left:auto;padding:0;border-radius:50%}#pwa-install-element .material-button.secondary.close svg{width:16px;fill:var(--text-color-secondary)}#pwa-install-element .material-button.secondary.close::after{width:25px;height:25px;border-radius:50%}#pwa-install-element .material-button.secondary.close::before{border-radius:50%}#pwa-install-element .material-button::before{content:"";position:absolute;top:0;bottom:0;left:0;right:0;background-color:var(--background-color-ripple);opacity:0;transition:opacity .2s}#pwa-install-element .material-button::after{content:"";position:absolute;left:50%;top:50%;border-radius:50%;padding:50%;width:32px;height:32px;background-color:var(--background-color-ripple);opacity:0;transform:translate(-50%,-50%) scale(1);transition:opacity 1s,transform .5s}#pwa-install-element .material-button:hover{box-shadow:0 2px 4px -1px rgba(0,0,0,.2),0 4px 5px 0 rgba(0,0,0,.14),0 1px 10px 0 rgba(0,0,0,.12)}#pwa-install-element .material-button:hover::before{opacity:.08}#pwa-install-element .material-button:hover:focus::before{opacity:.3}#pwa-install-element .material-button:active{box-shadow:0 5px 5px -3px rgba(0,0,0,.2),0 8px 10px 1px rgba(0,0,0,.14),0 3px 14px 2px rgba(0,0,0,.12)}#pwa-install-element .material-button:active::after{opacity:.32;transform:translate(-50%,-50%) scale(0);transition:transform 0s}@media(prefers-color-scheme:dark){#pwa-install-element .install-dialog{--text-color-normal:#fff;--background-color:#1e1e1e;--border-bottom-color:#404140;--scrollbar-background-color:#424242}#pwa-install-element .install-dialog.mobile{--touch-header-color:#3f403f}#pwa-install-element .install-dialog .material-button{--text-color-primary:#1B222C;--text-color-secondary:#a7c7fa;--background-color-primary:#a7c7fa}}@media(max-width:767px)and (min-height:495px){#pwa-install-element .install-dialog.chrome.mobile{display:inline-block}#pwa-install-element .install-dialog.chrome{display:none}}@media(min-width:768px),(max-height:495px){#pwa-install-element .install-dialog.chrome.mobile{display:none}#pwa-install-element .install-dialog.chrome{display:inline-block}}@media(max-height:420px){#pwa-install-element .install-dialog.chrome .dialog-body .description{-webkit-line-clamp:3;max-height:70px}}@media(hover:none)and (pointer:coarse){#pwa-install-element .install-dialog.chrome .dialog-body .description::-webkit-scrollbar{display:none}}']))),Cmt=ygt.css(jft||(jft=js(['#pwa-install-element .install-dialog.apple{--text-color-normal:#333;--text-color-description:#333;--background-color:rgba(255, 255, 255, 0.8);--text-color-button:#fff;--background-color-button:#fff;--background-color-button-active:#DBDAE0;--border-bottom-color:rgba(0, 0, 0, 0.1);--icon-how-to-color:#527AFB;font-family:system-ui,-apple-system,HelveticaNeue,BlinkMacSystemFont,Roboto,"Segoe UI";max-width:380px;width:auto;margin:0 auto;right:0;left:0;font-size:15px;color:var(--text-color-normal);bottom:0;transition:transform .4s cubic-bezier(.33,1,.66,1),opacity .5s cubic-bezier(1,0,1,-2),border .35s ease-in-out;overflow:hidden;pointer-events:none;opacity:0;visibility:visible;transform:translateY(100%);will-change:opacity,transform}#pwa-install-element .install-dialog.apple.dialog-body{display:grid;grid-template-columns:95px 1fr;grid-template-rows:1fr auto;grid-template-areas:"icon description" "welcome welcome" "how-to how-to" "gallery gallery" "button button";border-radius:10px;border-bottom:1px solid transparent;background-color:var(--background-color);filter:drop-shadow(0 5px 15px rgba(0, 0, 0, .5));backdrop-filter:blur(8px);-webkit-backdrop-filter:blur(8px)}#pwa-install-element .install-dialog.apple.dialog-body .icon{display:flex;align-items:center;grid-area:icon;border-bottom:1px solid var(--border-bottom-color)}#pwa-install-element .install-dialog.apple.dialog-body .icon .icon-image{width:64px;height:64px;margin:0 auto;border-radius:6px}#pwa-install-element .install-dialog.apple.dialog-body .close{height:26px;min-width:26px;line-height:0;margin-right:7px;margin-top:7px;margin-left:auto;padding:0;border-radius:50%;opacity:.5;outline:0;color:var(--text-color-normal);border:none;background-color:rgba(0,0,0,0);cursor:pointer;transition:opacity .2s ease-in-out,background-color .2s ease-in-out;grid-area:description}#pwa-install-element .install-dialog.apple.dialog-body .close svg{fill:var(--text-color-normal);width:18px}#pwa-install-element .install-dialog.apple.dialog-body .close:active,#pwa-install-element .install-dialog.apple.dialog-body .close:hover{opacity:1;background-color:var(--background-color-button)}#pwa-install-element .install-dialog.apple.dialog-body .about{display:grid;grid-template-rows:35px 60px;border-bottom:1px solid var(--border-bottom-color);grid-area:description}#pwa-install-element .install-dialog.apple.dialog-body .about .description,#pwa-install-element .install-dialog.apple.dialog-body .about .name{padding-right:15px;overflow:hidden}#pwa-install-element .install-dialog.apple.dialog-body .about .name{font-weight:600;padding-top:10px;padding-right:10px;line-height:22px;align-items:flex-start;display:flex}#pwa-install-element .install-dialog.apple.dialog-body .about .description{font-size:12px;line-height:15px;margin-bottom:15px;overflow-y:auto;color:var(--text-color-description)}#pwa-install-element .install-dialog.apple.dialog-body .welcome-to-install{font-size:15px;grid-area:welcome;text-align:left;font-weight:400;padding:15px;width:auto;border-bottom:1px solid var(--border-bottom-color)}#pwa-install-element .install-dialog.apple .action-buttons{grid-area:button;grid-column-start:1;grid-column-end:3;padding:15px}#pwa-install-element .install-dialog.apple .dialog-button{display:grid;height:50px;width:100%;line-height:50px;border-radius:8px;color:var(--text-color-normal)}#pwa-install-element .install-dialog.apple .dialog-button.button{border:none;outline:0;font-family:system-ui,-apple-system,HelveticaNeue,BlinkMacSystemFont;cursor:pointer;-webkit-user-select:none;user-select:none;font-weight:400;font-size:17px;padding:0;margin:0;background-color:var(--background-color-button)}#pwa-install-element .install-dialog.apple .dialog-button.button.install{padding:0 15px;text-align:left}#pwa-install-element .install-dialog.apple .dialog-button.button.install .button-text{opacity:0;display:flex;align-items:center;justify-content:space-between;transition:opacity .4s ease-in-out .1s;overflow:hidden}#pwa-install-element .install-dialog.apple .dialog-button.button.install .button-text>span{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}#pwa-install-element .install-dialog.apple .dialog-button.button.install .button-text>svg{flex-shrink:0;width:20px}#pwa-install-element .install-dialog.apple .dialog-button.button.install .button-text.show{opacity:1;visibility:visible;width:auto;height:auto}#pwa-install-element .install-dialog.apple .dialog-button.button.install .button-text.hide{opacity:0;position:absolute;width:0;height:0;visibility:hidden}#pwa-install-element .install-dialog.apple .dialog-button.button.gallery{display:flex;align-items:center;min-width:50px;width:auto;margin-right:15px}#pwa-install-element .install-dialog.apple .dialog-button.button.gallery #pwa-gallery{margin:0 auto;width:23px;fill:var(--text-color-normal)}#pwa-install-element .install-dialog.apple .dialog-button.button:active{background-color:var(--background-color-button-active)}#pwa-install-element .install-dialog.apple .how-to-body{opacity:0;max-height:0;overflow:hidden;transition:opacity ease-in-out .5s,max-height .5s ease-in-out;grid-area:how-to}#pwa-install-element .install-dialog.apple .how-to-body .how-to-description{display:grid;-webkit-user-select:none;user-select:none;grid-auto-columns:1fr;grid-template-rows:1fr 1fr 1fr;gap:10px;padding:15px;padding-bottom:0}#pwa-install-element .install-dialog.apple .how-to-body .how-to-description .description-step{display:inline-flex;flex-direction:row;gap:15px;align-items:center;font-size:14px}#pwa-install-element .install-dialog.apple .how-to-body .how-to-description .description-step .svg-wrap{position:relative;display:inline-flex;flex-shrink:0;color:var(--icon-how-to-color);width:50px;height:50px;align-items:center;border-radius:6px}#pwa-install-element .install-dialog.apple .how-to-body .how-to-description .description-step .svg-wrap #pwa-add,#pwa-install-element .install-dialog.apple .how-to-body .how-to-description .description-step .svg-wrap #pwa-safari,#pwa-install-element .install-dialog.apple .how-to-body .how-to-description .description-step .svg-wrap #pwa-share{margin:0 auto}#pwa-install-element .install-dialog.apple .how-to-body .how-to-description .description-step .svg-wrap #pwa-share{margin-bottom:4px;transform:scale(.9)}#pwa-install-element .install-dialog.apple .how-to-body .how-to-description .description-step .svg-wrap #pwa-add{transform:scale(.8);fill:var(--text-color-normal)}#pwa-install-element .install-dialog.apple .how-to-body .how-to-description .description-step .svg-wrap #pwa-safari{transform:scale(.92)}#pwa-install-element .install-dialog.apple .how-to-body .how-to-description .description-step .svg-wrap .step-count{position:absolute;line-height:12px;top:3px;left:4px}#pwa-install-element .install-dialog.apple .how-to-body .how-to-description .description-step .step-text{font-weight:600;text-align:left}#pwa-install-element .install-dialog.apple pwa-gallery{grid-column:1/3;max-height:0;opacity:0;transition:opacity ease-in-out .5s,max-height .5s ease-in-out;overflow:hidden}#pwa-install-element .install-dialog.apple pwa-gallery+.action-buttons{display:flex}#pwa-install-element .install-dialog.apple.available{opacity:1;pointer-events:unset;transform:translateY(0);transition:transform .5s cubic-bezier(.33,1,.66,1),border .35s ease-in-out}#pwa-install-element .install-dialog.apple.gallery pwa-gallery{transition:opacity .3s ease-in-out .2s,max-height .5s ease-in-out;max-height:70vh;opacity:1}#pwa-install-element .install-dialog.apple.how-to .dialog-body{border-bottom:1px solid #e0e0e0}#pwa-install-element .install-dialog.apple.how-to .how-to-body{opacity:1;max-height:400px;overflow-y:auto;transition:opacity .3s ease-in-out .2s,max-height .5s ease-in-out}#pwa-install-element .install-dialog.apple.desktop{--text-color-normal:rgba(0, 0, 0, 0.85);--text-color-description:rgba(0, 0, 0, 0.85);--icon-how-to-color:rgba(0, 0, 0, 0.50);--background-color:rgb(246 246 246 / 85%);--background-color-button:#c6c1c6;--background-color-button-active:linear-gradient(0deg, rgba(64,121,250,1) 0%, rgba(84,144,251,1) 100%);--border-bottom-color:rgb(185 185 185);grid-template-columns:1fr;grid-template-rows:1fr auto;grid-template-areas:"icon" "description" "welcome" "how-to" "gallery" "button";gap:0;column-gap:0;padding:16px;max-width:260px;background:var(--background-color);border:1px solid var(--border-bottom-color)}#pwa-install-element .install-dialog.apple.desktop .icon{height:64px;padding-bottom:16px}#pwa-install-element .install-dialog.apple.desktop .icon .icon-image{border-radius:10px;width:52px;height:52px;filter:drop-shadow(0 1px 1px rgba(0, 0, 0, .15))}#pwa-install-element .install-dialog.apple.desktop .close{grid-area:icon;background:var(--background-color-button);opacity:1;height:20px;min-width:20px;margin-right:-5px;margin-top:-5px}#pwa-install-element .install-dialog.apple.desktop .close svg{width:14px}#pwa-install-element .install-dialog.apple.desktop .about{display:flex;flex-direction:column;align-items:center}#pwa-install-element .install-dialog.apple.desktop .about .name{font-size:13px;line-height:16px;font-weight:700;padding:0}#pwa-install-element .install-dialog.apple.desktop .about .description{padding:16px 0;margin:0;padding-top:10px;border-bottom:1px solid var(--border-bottom-color);min-width:100%}#pwa-install-element .install-dialog.apple.desktop .about .description,#pwa-install-element .install-dialog.apple.desktop .welcome-to-install{text-align:center;font-size:11px;line-height:14px}#pwa-install-element .install-dialog.apple.desktop .about,#pwa-install-element .install-dialog.apple.desktop .icon,#pwa-install-element .install-dialog.apple.desktop .welcome-to-install{border:none}#pwa-install-element .install-dialog.apple.desktop .welcome-to-install{padding:0;padding-top:16px}#pwa-install-element .install-dialog.apple.desktop .action-buttons{padding:0;padding-top:16px}#pwa-install-element .install-dialog.apple.desktop .action-buttons .dialog-button.button{font-size:13px;font-weight:400;padding:6px 8px;border-radius:6px;height:auto;line-height:18px}#pwa-install-element .install-dialog.apple.desktop .action-buttons .dialog-button.button.install{color:#fff;background:var(--background-color-button-active);transition:background .3s ease-in-out .1s,color .3s ease-in-out}#pwa-install-element .install-dialog.apple.desktop .action-buttons .dialog-button.button.install svg{transform:none;width:18px}#pwa-install-element .install-dialog.apple.desktop .action-buttons .dialog-button.button.gallery{width:30px;min-width:30px;margin-right:10px;background:var(--background-color-button)}#pwa-install-element .install-dialog.apple.desktop .action-buttons .dialog-button.button.gallery #pwa-gallery{width:14px;transition:transform .4s ease-in-out}#pwa-install-element .install-dialog.apple.desktop .close:active,#pwa-install-element .install-dialog.apple.desktop .dialog-button.button:active{filter:brightness(105%)}#pwa-install-element .install-dialog.apple.desktop .close:active .button-text,#pwa-install-element .install-dialog.apple.desktop .dialog-button.button:active .button-text{filter:brightness(90%)}#pwa-install-element .install-dialog.apple.desktop .how-to-body .how-to-description{padding:0;padding-top:16px;grid-template-rows:1fr 1fr}#pwa-install-element .install-dialog.apple.desktop .how-to-body .how-to-description .description-step{font-size:12px;gap:16px}#pwa-install-element .install-dialog.apple.desktop .how-to-body .how-to-description .description-step .svg-wrap{width:32px;height:32px;color:var(--icon-how-to-color)}#pwa-install-element .install-dialog.apple.desktop .how-to-body .how-to-description .description-step .svg-wrap #pwa-share{width:16px;margin-bottom:2px;transform:none}#pwa-install-element .install-dialog.apple.desktop .how-to-body .how-to-description .description-step .svg-wrap #pwa-add{width:18px;transform:none}#pwa-install-element .install-dialog.apple.desktop.gallery #pwa-gallery{transform:rotate(180deg)}#pwa-install-element .install-dialog.apple.desktop.how-to .action-buttons .dialog-button.button.install{color:var(--text-color-normal);background:var(--background-color-button)}@media(min-width:667px){#pwa-install-element .install-dialog.apple{top:0;bottom:unset;transform:translateY(calc(-100% - 40px));right:28px;left:auto}#pwa-install-element .install-dialog.apple.available{top:28px;bottom:auto;max-height:calc(95vh - 28px)}}@media(min-width:667px)and (max-width:1366px){#pwa-install-element .install-dialog.apple{right:max(28px,env(safe-area-inset-right,28px));left:auto}}@media(max-width:666px){#pwa-install-element .install-dialog.apple .description-step .step-text{font-size:13px}#pwa-install-element .install-dialog.apple.available{bottom:20px;max-height:calc(85vh - 20px)}#pwa-install-element .install-dialog.apple.dialog-body{filter:drop-shadow(rgba(0, 0, 0, .5) 0 0 15px)}}@media(max-width:428px){#pwa-install-element .install-dialog.apple.dialog-body{max-width:100vw;filter:drop-shadow(rgba(0, 0, 0, .5) 0 -5px 10px);border-bottom-left-radius:0;border-bottom-right-radius:0}#pwa-install-element .install-dialog.apple.dialog-body .action-buttons{padding-bottom:max(15px,env(safe-area-inset-bottom))}#pwa-install-element .install-dialog.apple.dialog-body.available{bottom:0;max-height:85vh}}@media(max-height:548px){#pwa-install-element .install-dialog.apple.dialog-body.available{overflow-y:auto;max-height:calc(90vh - 28px - env(safe-area-inset-bottom,0px))}}@media(max-height:600px){#pwa-install-element .install-dialog.apple pwa-gallery{overflow-y:auto}}@media(prefers-color-scheme:dark){#pwa-install-element .install-dialog.apple.dialog-body{--text-color-normal:#fff;--text-color-description:#9E9AA1;--background-color:rgb(25 25 25 / 90%);--background-color-button:#353535;--background-color-button-active:#454545;--border-bottom-color:#353535}#pwa-install-element .install-dialog.apple.dialog-body .close:active,#pwa-install-element .install-dialog.apple.dialog-body .dialog-button.button:active{filter:brightness(105%)}#pwa-install-element .install-dialog.apple.dialog-body .close:active .button-text,#pwa-install-element .install-dialog.apple.dialog-body .dialog-button.button:active .button-text{filter:brightness(90%)}#pwa-install-element .install-dialog.apple.dialog-body.desktop{--text-color-description:var(--text-color-normal);--icon-how-to-color:#bcb8b6;--background-color:rgb(45 45 45 / 90%);--border-bottom-color:#5b5b5b;--background-color-button:#6d6765;--background-color-button-active:linear-gradient(0deg, rgba(59,108,200,1) 0%, rgba(66,123,250,1) 100%);outline:1px solid #1c1c1c;color-scheme:dark}}']))),Amt=(e=>{var t={};return Kft.d(t,e),t})({classMap:()=>mft});var kmt=function(e,t,n,r){var i,o=arguments.length,s=o<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,r);else for(var a=e.length-1;a>=0;a--)(i=e[a])&&(s=(o<3?i(s):o>3?i(t,n,s):i(t,n))||s);return o>3&&s&&Object.defineProperty(t,n,s),s},jmt=function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};let Imt=class extends ygt.LitElement{constructor(){var e;super(...arguments),e=this,this.manifestUrl="/manifest.json",this.icon="",this.name="",this.description="",this.installDescription="",this.disableDescription=!1,this.disableScreenshots=!1,this.disableScreenshotsApple=!1,this.disableScreenshotsChrome=!1,this.manualApple=!1,this.manualChrome=!1,this.disableChrome=!1,this.disableClose=!1,this.externalPromptEvent=null,this.platforms=[],this.userChoiceResult="",this.isDialogHidden=JSON.parse(window.sessionStorage.getItem("pwa-hide-install")||"false"),this.isInstallAvailable=!1,this.isAppleMobilePlatform=!1,this.isAppleDesktopPlatform=!1,this.isUnderStandaloneMode=!1,this.isRelatedAppsInstalled=!1,this._manifest=new pmt,this._howToRequested=!1,this._galleryRequested=!1,this._install={handleEvent:()=>{window.defferedPromptEvent&&(this.hideDialog(),window.defferedPromptEvent.prompt(),window.defferedPromptEvent.userChoice.then((e=>{this.userChoiceResult=e.outcome,bmt.eventUserChoiceResult(this,this.userChoiceResult)})).catch((e=>{bmt.eventInstalledFail(this)})),window.defferedPromptEvent=null)},passive:!0},this.install=()=>{this.isAppleMobilePlatform||this.isAppleDesktopPlatform?(this._howToRequested=!0,this.requestUpdate()):this._install.handleEvent()},this._hideDialog={handleEvent:()=>{this.isDialogHidden=!0,window.sessionStorage.setItem("pwa-hide-install","true"),this.requestUpdate()},passive:!0},this._hideDialogUser=()=>{bmt.eventUserChoiceResult(this,"dismissed"),this.userChoiceResult="dismissed",this.hideDialog()},this.hideDialog=()=>{this._hideDialog.handleEvent()},this.showDialog=function(){let t=arguments.length>0&&void 0!==arguments[0]&&arguments[0];e.isDialogHidden=!1,t&&(e.isInstallAvailable=!0),window.sessionStorage.setItem("pwa-hide-install","false"),e.requestUpdate()},this.getInstalledRelatedApps=async()=>await bmt.getInstalledRelatedApps(),this._howToForApple={handleEvent:()=>{this._howToRequested=!this._howToRequested,this._howToRequested&&this._galleryRequested&&(this._galleryRequested=!1),this.requestUpdate(),this._howToRequested&&bmt.eventInstallHowTo(this)},passive:!0},this._toggleGallery={handleEvent:()=>{this._galleryRequested=!this._galleryRequested,this._howToRequested&&this._galleryRequested&&(this._howToRequested=!1),this._galleryRequested&&bmt.eventGallery(this),this.requestUpdate()},passive:!0},this._init=async()=>{if(window.defferedPromptEvent=null,this._checkInstalled(),!this.disableChrome){const e=e=>{window.defferedPromptEvent=e,e.preventDefault(),this.platforms=e.platforms,this.isRelatedAppsInstalled||this.isUnderStandaloneMode?this.isInstallAvailable=!1:(this.isInstallAvailable=!0,bmt.eventInstallAvailable(this)),"accepted"===this.userChoiceResult&&(this.isDialogHidden=!0,bmt.eventInstalledSuccess(this)),this.requestUpdate()};null!=this.externalPromptEvent?setTimeout((()=>e(this.externalPromptEvent)),300):window.addEventListener("beforeinstallprompt",e)}window.addEventListener("appinstalled",(e=>{window.defferedPromptEvent=null,this.isInstallAvailable=!1,this.requestUpdate(),bmt.eventInstalledSuccess(this)}));try{var e;const t=await fetch(this.manifestUrl),n=await t.json();if(!t.ok||!n||!Object.keys(n))throw Error("Manifest not found");bmt.normalizeManifestAssetUrls(n,this.manifestUrl),this.icon=this.icon||null!==(e=n.icons)&&void 0!==e&&e.length?n.icons[0].src:"",this.name=this.name||n.short_name||n.name||"",this.description=this.description||n.description||"",this._manifest=n}catch(n){var t;this.icon=this.icon||(null===(t=this._manifest.icons)||void 0===t?void 0:t[0].src)||"",this.name=this.name||this._manifest.short_name||"",this.description=this.description||this._manifest.description||""}},this._requestUpdate=()=>{this.requestUpdate()}}static get styles(){return[Pmt,Cmt]}async _checkInstalled(){this.isUnderStandaloneMode=bmt.isStandalone(),this.isRelatedAppsInstalled=await bmt.isRelatedAppsInstalled(),this.isAppleMobilePlatform=bmt.isAppleMobile(),this.isAppleDesktopPlatform=bmt.isAppleDesktop(),this.isAppleMobilePlatform||this.isAppleDesktopPlatform?this.isUnderStandaloneMode||(this.manualApple&&this.hideDialog(),setTimeout((()=>{this.isInstallAvailable=!0,this.requestUpdate(),bmt.eventInstallAvailable(this)}),1e3)):this.manualChrome&&this.hideDialog()}connectedCallback(){(e=>{"nb"===e.slice(0,2)&&(e="no");try{cmt.get(e)?dmt(e):dmt(e.slice(0,2))}catch{}})(navigator.language),this._init(),vmt.finalized,Emt.finalized,super.connectedCallback()}willUpdate(e){this.externalPromptEvent&&e.has("externalPromptEvent")&&"object"==typeof this.externalPromptEvent&&this._init()}render(){return this.isAppleMobilePlatform||this.isAppleDesktopPlatform?ygt.html(Xft||(Xft=js(["",""])),((e,t,n,r,i,o,s,a,l,c,u,d,h,p,f)=>{const g=!i&&a.screenshots&&a.screenshots.length;return ygt.html(Nft||(Nft=js(['<aside id="pwa-install-element"><article class="install-dialog apple ',' dialog-body"><div class="icon"><img src="','" alt="icon" class="icon-image" draggable="false"></div>','<div class="about"><div class="name">','</div><div class="description">',"</div></div>",'<div class="how-to-body"><div class="how-to-description">','<div class="description-step"><div class="svg-wrap"><svg id="pwa-share" width="25" height="32" viewBox="0 0 17.695 26.475"><g fill="currentColor"><path d="M17.334 10.762v9.746c0 2.012-1.025 3.027-3.066 3.027H3.066C1.026 23.535 0 22.52 0 20.508v-9.746C0 8.75 1.025 7.734 3.066 7.734h2.94v1.573h-2.92c-.977 0-1.514.527-1.514 1.543v9.57c0 1.015.537 1.543 1.514 1.543h11.152c.967 0 1.524-.527 1.524-1.543v-9.57c0-1.016-.557-1.543-1.524-1.543h-2.91V7.734h2.94c2.04 0 3.066 1.016 3.066 3.028Z"/><path d="M8.662 15.889c.42 0 .781-.352.781-.762V5.097l-.058-1.464.654.693 1.484 1.582a.698.698 0 0 0 .528.235c.4 0 .713-.293.713-.694 0-.205-.088-.361-.235-.508l-3.3-3.183c-.196-.196-.362-.264-.567-.264-.195 0-.361.069-.566.264L4.795 4.94a.681.681 0 0 0-.225.508c0 .4.293.694.703.694.186 0 .4-.079.538-.235l1.474-1.582.664-.693-.058 1.465v10.029c0 .41.351.762.771.762Z"/></g></svg></div><div class="step-text">','</div></div><div class="description-step"><div class="svg-wrap">','</div><div class="step-text">',"</div></div></div></div>",'<div class="action-buttons">','<button class="dialog-button button install" @click=','><span class="button-text ','">','</span><span class="button-text ','"><span>','</span><svg viewBox="0 0 25 25"><use href="#pwa-add"></use></svg></span></button></div></article></aside>'])),(0,Amt.classMap)({available:l,"how-to":h,gallery:f,desktop:d}),s,o?"":ygt.html(Lft||(Lft=js(['<button type="button" title="close" class="close" @click=\'','\'><svg viewBox="0 0 24 24"><path d="M5.3 18.7c.2.2.4.3.7.3s.5-.1.7-.3l5.3-5.3 5.3 5.3a1.08 1.08 0 0 0 .7.3 1.08 1.08 0 0 0 .7-.3c.4-.4.4-1 0-1.4L13.4 12l5.3-5.3c.4-.4.4-1 0-1.4s-1-.4-1.4 0L12 10.6 6.7 5.3c-.4-.4-1-.4-1.4 0s-.4 1 0 1.4l5.3 5.3-5.3 5.3c-.4.4-.4 1 0 1.4z"/></svg></button>'])),c),e,t||location.hostname,r?"":ygt.html(Vft||(Vft=js(['<div class="welcome-to-install">',"</div>"])),n||"".concat(bgt("This site has app functionality.")," ").concat(bgt(d?"Add it to your Dock for extensive experience and easy access.":"Add it to your Home Screen for extensive experience and easy access."))),d?"":ygt.html(Fft||(Fft=js(['<div class="description-step"><div class="svg-wrap"><svg id="pwa-safari" viewBox="0 0 20.283 19.932" width="24" height="24"><g fill="currentColor"><path d="M9.96 19.922c5.45 0 9.962-4.522 9.962-9.961C19.922 4.51 15.4 0 9.952 0 4.511 0 0 4.512 0 9.96c0 5.44 4.521 9.962 9.96 9.962Zm0-1.66A8.26 8.26 0 0 1 1.67 9.96c0-4.61 3.672-8.3 8.281-8.3 4.61 0 8.31 3.69 8.31 8.3 0 4.61-3.69 8.3-8.3 8.3Z"/><path d="m5.87 14.883 5.605-2.735a1.47 1.47 0 0 0 .683-.673l2.725-5.596c.312-.664-.166-1.182-.85-.84L8.447 7.764c-.302.136-.508.341-.674.673L5.03 14.043c-.312.645.196 1.152.84.84Zm4.09-3.72A1.19 1.19 0 0 1 8.77 9.97c0-.664.527-1.201 1.19-1.201a1.2 1.2 0 0 1 1.202 1.2c0 .655-.537 1.192-1.201 1.192Z"/></g></svg></div><div class="step-text">',"</div></div>"])),bgt("1) Open in Safari browser")),bgt("2) Press Share in Navigation bar").replace(d?"2)":"0)","1)"),d?ygt.html(zft||(zft=js(['<svg id="pwa-add" viewBox="0 0 23.389 17.979" width="25" height="25"><g fill="currentColor"><path d="M1.045 3.291v1.377h20.937V3.291Zm2.021 14.688h16.895c2.05 0 3.066-1.006 3.066-3.018V3.027C23.027 1.016 22.012 0 19.961 0H3.066C1.026 0 0 1.016 0 3.027v11.934c0 2.012 1.025 3.018 3.066 3.018Zm.02-1.573c-.977 0-1.514-.517-1.514-1.533V3.115c0-1.015.537-1.543 1.514-1.543H19.94c.967 0 1.514.528 1.514 1.543v11.758c0 1.016-.547 1.533-1.514 1.533Z"/><path d="M4.2 14.014c0 .508.35.85.868.85h12.92c.518 0 .87-.343.87-.85v-1.465c0-.508-.352-.85-.87-.85H5.068c-.517 0-.869.342-.869.85Z"/></g></svg>']))):ygt.html(Bft||(Bft=js(['<svg id="pwa-add" width="25" height="25"><g><path d="m23.40492,1.60784c-1.32504,-1.32504 -3.19052,-1.56912 -5.59644,-1.56912l-10.65243,0c-2.33622,0 -4.2017,0.24408 -5.5267,1.56912c-1.32504,1.34243 -1.56911,3.17306 -1.56911,5.50924l0,10.5827c0,2.40596 0.22665,4.254 1.55165,5.57902c1.34246,1.32501 3.19052,1.5691 5.59647,1.5691l10.60013,0c2.40592,0 4.2714,-0.24408 5.59644,-1.5691c1.325,-1.34245 1.55166,-3.17306 1.55166,-5.57902l0,-10.51293c0,-2.40596 -0.22666,-4.25401 -1.55166,-5.57901zm-0.38355,5.21289l0,11.24518c0,1.51681 -0.20924,2.94643 -1.02865,3.78327c-0.83683,0.83685 -2.30134,1.0635 -3.81815,1.0635l-11.33234,0c-1.51681,0 -2.96386,-0.22665 -3.80073,-1.0635c-0.83683,-0.83684 -1.04607,-2.26646 -1.04607,-3.78327l0,-11.19288c0,-1.5517 0.20924,-3.01617 1.02865,-3.85304c0.83687,-0.83683 2.31876,-1.04607 3.87042,-1.04607l11.28007,0c1.51681,0 2.98132,0.22666 3.81815,1.06353c0.81941,0.81941 1.02865,2.26645 1.02865,3.78327zm-10.53039,12.08205c0.64506,0 1.02861,-0.43586 1.02861,-1.13326l0,-4.34117l4.53294,0c0.66252,0 1.13326,-0.36613 1.13326,-0.99376c0,-0.64506 -0.43586,-1.02861 -1.13326,-1.02861l-4.53294,0l0,-4.53294c0,-0.6974 -0.38355,-1.13326 -1.02861,-1.13326c-0.62763,0 -0.99376,0.45332 -0.99376,1.13326l0,4.53294l-4.51552,0c-0.69737,0 -1.15069,0.38355 -1.15069,1.02861c0,0.62763 0.48817,0.99376 1.15069,0.99376l4.51552,0l0,4.34117c0,0.66252 0.36613,1.13326 0.99376,1.13326z"/></g></svg>']))),bgt(d?"2) Press Add to Dock":"3) Press Add to Home Screen"),g?ygt.html(Uft||(Uft=js(["<pwa-gallery .screenshots=",' .theme="','"></pwa-gallery>'])),a.screenshots,d?"apple_desktop":"apple_mobile"):"",g?ygt.html(Wft||(Wft=js(['<button class="dialog-button button gallery" @click=',">","</button>"])),p,d?ygt.html(Hft||(Hft=js(['<svg id="pwa-gallery" viewBox="0 0 10 6"><path d="m1.102 2.21 3.169 3.24c.22.222.462.333.729.333a.94.94 0 0 0 .378-.083 1.19 1.19 0 0 0 .347-.25L8.89 2.21a.8.8 0 0 0 .246-.593.838.838 0 0 0-.118-.44.884.884 0 0 0-.312-.311.84.84 0 0 0-1.063.167L4.854 3.92h.299L2.359 1.033a.868.868 0 0 0-.642-.286.822.822 0 0 0-.43.119.935.935 0 0 0-.312.312.863.863 0 0 0-.115.44c0 .116.02.223.057.32a.898.898 0 0 0 .185.272Z"/></svg>']))):ygt.html(qft||(qft=js(['<svg id="pwa-gallery" width="26" height="26" viewBox="0 0 23.538 18.022"><path d="M2.79 18.022h17.958c1.834 0 2.79-.969 2.79-2.778V2.791C23.538.969 22.582 0 20.748 0H2.791C.956 0 0 .956 0 2.79v12.454c0 1.835.956 2.778 2.79 2.778zM.879 2.83C.878 1.55 1.55.88 2.816.88h17.906c1.228 0 1.938.671 1.938 1.95v12.067L16.756 9.47c-.517-.414-.995-.685-1.615-.685-.607 0-1.085.22-1.576.672L8.927 13.59l-1.938-1.796c-.426-.387-.853-.607-1.382-.607-.504 0-.879.207-1.305.594L.878 14.986zm6.46 6.356a2.39 2.39 0 002.377-2.39c0-1.304-1.072-2.39-2.377-2.39a2.401 2.401 0 00-2.39 2.39 2.393 2.393 0 002.39 2.39z"/></svg>'])))):"",u,h?"show":"hide",bgt("Hide Instruction"),h?"hide":"show",bgt(d?"Add to Dock":"Add to Home Screen"))})(this.name,this.description,this.installDescription,this.disableDescription,this.disableScreenshots||this.disableScreenshotsApple,this.disableClose,this.icon,this._manifest,this.isInstallAvailable&&!this.isDialogHidden,this._hideDialogUser,this._howToForApple,this.isAppleDesktopPlatform,this._howToRequested,this._toggleGallery,this._galleryRequested)):ygt.html(Yft||(Yft=js(["",""])),((e,t,n,r,i,o,s,a,l,c,u,d,h)=>{const p=()=>({available:l,gallery:h}),f=!i&&a.screenshots&&a.screenshots.length;return ygt.html(Ift||(Ift=js(['<div id="pwa-install-element"><div class="install-dialog chrome ','"><div class="dialog-body"><div class="icon"><img src="','" alt="icon" class="icon-image" draggable="false"></div><div class="about"><div class="name"><label>',"</label>",'</div><div class="hostname">',"</div></div>"," "," ",'<div class="action-buttons">','<button class="material-button primary install" @click=\'',"'>",'</button></div></div></div><div class="install-dialog chrome mobile ','"><div class="dialog-body"><pwa-bottom-sheet .props='," .disableClose="," .install="," .hideDialog=","></pwa-bottom-sheet>","</div></div></div>"])),(0,Amt.classMap)(p()),s,e,o?"":ygt.html(Gft||(Gft=js(['<button class="material-button secondary close" @click=\'','\'><svg viewBox="0 0 24 24"><path d="M5.3 18.7c.2.2.4.3.7.3s.5-.1.7-.3l5.3-5.3 5.3 5.3a1.08 1.08 0 0 0 .7.3 1.08 1.08 0 0 0 .7-.3c.4-.4.4-1 0-1.4L13.4 12l5.3-5.3c.4-.4.4-1 0-1.4s-1-.4-1.4 0L12 10.6 6.7 5.3c-.4-.4-1-.4-1.4 0s-.4 1 0 1.4l5.3 5.3-5.3 5.3c-.4.4-.4 1 0 1.4z"/></svg></button>'])),c),location.hostname,t?ygt.html(Tft||(Tft=js(['<div class="description app-description">',"</div>"])),t):"",r?"":ygt.html(Mft||(Mft=js(['<hr><div class="description install-description">',"</div>"])),n||"".concat(bgt("This site has app functionality.")," ").concat(bgt("Install it on your device for extensive experience and easy access."))),f?ygt.html(Oft||(Oft=js(["<pwa-gallery .screenshots=","></pwa-gallery>"])),a.screenshots):"",f?ygt.html(Rft||(Rft=js(['<button class="material-button secondary" @click=\'',"'>","</button>"])),d,bgt(h?"Less":"More")):"",u,bgt("Install"),(0,Amt.classMap)(p()),{name:e,icon:s,description:t},o,u,c,f?ygt.html(Dft||(Dft=js(["<pwa-gallery .screenshots=","></pwa-gallery>"])),a.screenshots):"")})(this.name,this.description,this.installDescription,this.disableDescription,this.disableScreenshots||this.disableScreenshotsChrome,this.disableClose,this.icon,this._manifest,this.isInstallAvailable&&!this.isDialogHidden,this._hideDialogUser,this._install,this._toggleGallery,this._galleryRequested))}};kmt([(0,Bgt.property)({attribute:"manifest-url"}),jmt("design:type",Object)],Imt.prototype,"manifestUrl",void 0),kmt([(0,Bgt.property)(),jmt("design:type",Object)],Imt.prototype,"icon",void 0),kmt([(0,Bgt.property)(),jmt("design:type",Object)],Imt.prototype,"name",void 0),kmt([(0,Bgt.property)(),jmt("design:type",Object)],Imt.prototype,"description",void 0),kmt([(0,Bgt.property)({attribute:"install-description"}),jmt("design:type",Object)],Imt.prototype,"installDescription",void 0),kmt([(0,Bgt.property)({attribute:"disable-install-description",type:Boolean}),jmt("design:type",Object)],Imt.prototype,"disableDescription",void 0),kmt([(0,Bgt.property)({attribute:"disable-screenshots",type:Boolean}),jmt("design:type",Object)],Imt.prototype,"disableScreenshots",void 0),kmt([(0,Bgt.property)({attribute:"disable-screenshots-apple",type:Boolean}),jmt("design:type",Object)],Imt.prototype,"disableScreenshotsApple",void 0),kmt([(0,Bgt.property)({attribute:"disable-screenshots-chrome",type:Boolean}),jmt("design:type",Object)],Imt.prototype,"disableScreenshotsChrome",void 0),kmt([(0,Bgt.property)({attribute:"manual-apple",type:Boolean}),jmt("design:type",Object)],Imt.prototype,"manualApple",void 0),kmt([(0,Bgt.property)({attribute:"manual-chrome",type:Boolean}),jmt("design:type",Object)],Imt.prototype,"manualChrome",void 0),kmt([(0,Bgt.property)({attribute:"disable-chrome",type:Boolean}),jmt("design:type",Object)],Imt.prototype,"disableChrome",void 0),kmt([(0,Bgt.property)({attribute:"disable-close",type:Boolean}),jmt("design:type",Object)],Imt.prototype,"disableClose",void 0),kmt([(0,Bgt.state)(),jmt("design:type",Object)],Imt.prototype,"externalPromptEvent",void 0),Imt=kmt([(e,t)=>(e.addInitializer(Egt),e),(0,Bgt.customElement)("pwa-install")],Imt);const Gmt=()=>(0,Ae.jsxs)(Ae.Fragment,{children:[(0,Ae.jsx)(ln,{children:(0,Ae.jsxs)(nn,{children:[(0,Ae.jsx)(Zt,{path:"/login",exact:!0,component:kB}),(0,Ae.jsx)(Zt,{path:"/register",exact:!0,component:jB}),(0,Ae.jsx)(Zt,{path:"/forgot-password",exact:!0,component:MB}),(0,Ae.jsx)(Zt,{path:"/reset-password",exact:!0,component:VB}),(0,Ae.jsx)(Zt,{path:"/results/:sharedId",exact:!0,component:Rtt}),(0,Ae.jsx)(Zt,{path:"/results/campaign/external/:externalLink",exact:!0,component:Olt}),(0,Ae.jsx)(Zt,{path:"/inspections/:inspectionId/solar-pdf",exact:!0,children:(0,Ae.jsx)(Wht,{})}),(0,Ae.jsx)(Zt,{path:"/results/campaign/:campaignId/solar-pdf",exact:!0,children:(0,Ae.jsx)(Wht,{})}),(0,Ae.jsx)(IEe,{path:"/backOffice/3dwind",exact:!0,children:(0,Ae.jsx)(Flt,{})}),(0,Ae.jsx)(IEe,{path:"/backOffice/3dsolar",exact:!0,children:(0,Ae.jsx)(Blt,{})}),(0,Ae.jsx)(Afe,{children:(0,Ae.jsxs)(nn,{children:[(0,Ae.jsx)(jo,{path:"/",exact:!0,children:(0,Ae.jsx)(Eut,{})}),(0,Ae.jsx)(jo,{path:"/outsource/history",exact:!0,children:(0,Ae.jsx)(AEe,{})}),(0,Ae.jsx)(IEe,{path:"/backOffice",exact:!0,children:(0,Ae.jsx)(jEe,{})}),(0,Ae.jsx)(jo,{path:"/assets",exact:!0,children:(0,Ae.jsx)(e8,{mode:"assets"})}),(0,Ae.jsx)(jo,{path:"/assets-wind",exact:!0,children:(0,Ae.jsx)(e8,{type:HB.WIND,mode:"assets"})}),(0,Ae.jsx)(jo,{path:"/defects-wind",exact:!0,children:(0,Ae.jsx)(e8,{type:HB.WIND,mode:"defects"})}),(0,Ae.jsx)(jo,{path:"/assets-solar",exact:!0,children:(0,Ae.jsx)(e8,{type:HB.SOLAR,mode:"assets"})}),(0,Ae.jsx)(jo,{path:"/defects-solar",exact:!0,children:(0,Ae.jsx)(e8,{type:HB.SOLAR,mode:"defects"})}),(0,Ae.jsx)(jo,{path:"/global-map-wind",exact:!0,children:(0,Ae.jsx)(e8,{type:HB.WIND,mode:"map"})}),(0,Ae.jsx)(jo,{path:"/global-map-solar",exact:!0,children:(0,Ae.jsx)(e8,{type:HB.SOLAR,mode:"map"})}),(0,Ae.jsx)(jo,{path:"/assets/createwind",exact:!0,children:(0,Ae.jsx)(ofe,{mode:"create",type:HB.WIND})}),(0,Ae.jsx)(Bat,{path:"/assets/createsolar",exact:!0,children:(0,Ae.jsx)(zat,{})}),(0,Ae.jsx)(jo,{path:"/assets/editwind/:assetId",exact:!0,children:(0,Ae.jsx)(nct,{})}),(0,Ae.jsx)(Bat,{path:"/assets/editsolar/:assetId",exact:!0,children:(0,Ae.jsx)(Vat,{})}),(0,Ae.jsx)(jo,{path:"/assets/:assetId/:subAssetId",exact:!0,children:(0,Ae.jsx)(rfe,{})}),(0,Ae.jsx)(jo,{path:"/assets/:assetId",children:(0,Ae.jsx)(Kpe,{})}),(0,Ae.jsx)(jo,{path:"/results/campaign/:campaignId",children:(0,Ae.jsx)(Olt,{internal:!0})}),(0,Ae.jsx)(jo,{path:"/inspections/ongoing",exact:!0,children:(0,Ae.jsx)(cz,{})}),(0,Ae.jsx)(jo,{path:"/inspections/new",exact:!0,children:(0,Ae.jsx)(Mtt,{})}),(0,Ae.jsx)(jo,{path:"/inspections/reports",exact:!0,children:(0,Ae.jsx)(sct,{})}),(0,Ae.jsx)(jo,{path:"/inspections/:inspectionId",exact:!0,children:(0,Ae.jsx)(Ttt,{})}),(0,Ae.jsx)(jo,{path:"/inspections/:inspectionId/planned",exact:!0,children:(0,Ae.jsx)(Ttt,{selectedPage:Pke.INSPECTED})}),(0,Ae.jsx)(jo,{path:"/inspections/:inspectionId/inspected",exact:!0,children:(0,Ae.jsx)(Ttt,{selectedPage:Pke.INSPECTED})}),(0,Ae.jsx)(jo,{path:"/inspections/:inspectionId/uploaded",exact:!0,children:(0,Ae.jsx)(Ttt,{selectedPage:Pke.UPLOADED})}),(0,Ae.jsx)(jo,{path:"/inspections/:inspectionId/annotated",exact:!0,children:(0,Ae.jsx)(Ttt,{selectedPage:Pke.ANNOTATED})}),(0,Ae.jsx)(jo,{path:"/inspections/:inspectionId/analyzed",exact:!0,children:(0,Ae.jsx)(Ttt,{selectedPage:Pke.ANALYZED})}),(0,Ae.jsx)(jo,{path:"/inspections/:inspectionId/:photoId",exact:!0,children:(0,Ae.jsx)(Ttt,{selectedPage:Pke.UPLOADED})}),(0,Ae.jsx)(jo,{path:"/inspections/:inspectionId/defect/:defectId",exact:!0,children:(0,Ae.jsx)(Ttt,{selectedPage:Pke.ANALYZED})}),(0,Ae.jsx)(jo,{path:"/inspections/:inspectionId/annotated/defect/:defectId",exact:!0,children:(0,Ae.jsx)(Ttt,{selectedPage:Pke.ANNOTATED})}),(0,Ae.jsx)(jo,{path:"/uploader",exact:!0,children:(0,Ae.jsx)(Vfe,{})}),(0,Ae.jsx)(jo,{path:"/profile",exact:!0,children:(0,Ae.jsx)(Yht,{})}),(0,Ae.jsx)(jo,{path:"/forbidden",exact:!0,component:rct}),(0,Ae.jsx)(jo,{path:"/*",exact:!0,component:yn})]})})]})}),void 0!=Hy()&&(0,Ae.jsx)("pwa-install",{})]}),Tmt=Boolean("localhost"===window.location.hostname||"[::1]"===window.location.hostname||window.location.hostname.match(/^127(?:\.(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)){3}$/));function Mmt(e,t){navigator.serviceWorker.register(e).then((e=>{e.onupdatefound=()=>{const n=e.installing;null!=n&&(n.onstatechange=()=>{"installed"===n.state&&(navigator.serviceWorker.controller?(console.log("New content is available and will be used when all tabs for this page are closed. See https://cra.link/PWA."),t&&t.onUpdate&&t.onUpdate(e)):(console.log("Content is cached for offline use."),t&&t.onSuccess&&t.onSuccess(e)))})}})).catch((e=>{console.error("Error during service worker registration:",e)}))}const Omt=document.getElementById("root");if(Omt){(0,S.C)(Omt).render((0,Ae.jsx)(n.StrictMode,{children:(0,Ae.jsx)(u,{store:Sy,children:(0,Ae.jsx)(me,{children:(0,Ae.jsx)(Me,{theme:Jp,children:(0,Ae.jsx)(w.c,{children:(0,Ae.jsx)(Ve,{dateAdapter:$e,children:(0,Ae.jsx)(Gmt,{})})})})})})}))}!function(e){if("serviceWorker"in navigator){if(new URL("",window.location.href).origin!==window.location.origin)return;window.addEventListener("load",(()=>{const t="".concat("","/service-worker.js");Tmt?(!function(e,t){fetch(e,{headers:{"Service-Worker":"script"}}).then((n=>{const r=n.headers.get("content-type");404===n.status||null!=r&&-1===r.indexOf("javascript")?navigator.serviceWorker.ready.then((e=>{e.unregister().then((()=>{window.location.reload()}))})):Mmt(e,t)})).catch((()=>{console.log("No internet connection found. App is running in offline mode.")}))}(t,e),navigator.serviceWorker.ready.then((()=>{console.log("This web app is being served cache-first by a service worker. To learn more, visit https://cra.link/PWA")}))):Mmt(t,e)}))}}({onUpdate:e=>{e.waiting&&e.waiting.postMessage({type:"SKIP_WAITING"})}})})()})();